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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
260e0a514e1da67dfebf1f15683649ad98d25110 | 918 | py | Python | src/backend/marsha/core/utils/jitsi_utils.py | insad-video/marsha | 1e6a708c74527f50c4aa24d811049492e75f47a0 | [
"MIT"
] | null | null | null | src/backend/marsha/core/utils/jitsi_utils.py | insad-video/marsha | 1e6a708c74527f50c4aa24d811049492e75f47a0 | [
"MIT"
] | null | null | null | src/backend/marsha/core/utils/jitsi_utils.py | insad-video/marsha | 1e6a708c74527f50c4aa24d811049492e75f47a0 | [
"MIT"
] | null | null | null | """Utils for jitsi"""
from datetime import timedelta
from django.conf import settings
from django.utils import timezone
import jwt
def create_payload(room, moderator=True):
"""Create the payload so that it contains each information jitsi requires"""
token_payload = {
"exp": timezone.now()
+ ... | 25.5 | 80 | 0.668845 |
260f70e32d8dcbedd3be143cdb372b3adae4699c | 1,356 | py | Python | python/code_challenges/hashtable/test_hashtable.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | python/code_challenges/hashtable/test_hashtable.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | python/code_challenges/hashtable/test_hashtable.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | from hashtable import Hashtable
| 22.983051 | 50 | 0.672566 |
261019984f7fcb844ce180e8d6381fbe39be01a7 | 65,879 | py | Python | Code/CustomObjects.py | dluke/lex-talionis | 1e02bcd4afdd22737aa3450bbcb269e69551bc39 | [
"MIT"
] | 1 | 2019-07-02T12:50:46.000Z | 2019-07-02T12:50:46.000Z | Code/CustomObjects.py | dluke/lex-talionis | 1e02bcd4afdd22737aa3450bbcb269e69551bc39 | [
"MIT"
] | null | null | null | Code/CustomObjects.py | dluke/lex-talionis | 1e02bcd4afdd22737aa3450bbcb269e69551bc39 | [
"MIT"
] | null | null | null | import os, pickle, re
import GlobalConstants as GC
import configuration as cf
# Custom Imports
import MenuFunctions
import Utility, Image_Modification, Engine, InputManager
import logging
logger = logging.getLogger(__name__)
# === Simple Finite State Machine Object ===============================
... | 45.781098 | 154 | 0.579441 |
26155a333ec0b9d8dbde784e29edc2aabd3bd42b | 1,707 | py | Python | tests/test_characters.py | uliang/BloodSword | fc7e173ce56989c48009ec86d834072f9f2e70ac | [
"BSD-2-Clause"
] | null | null | null | tests/test_characters.py | uliang/BloodSword | fc7e173ce56989c48009ec86d834072f9f2e70ac | [
"BSD-2-Clause"
] | null | null | null | tests/test_characters.py | uliang/BloodSword | fc7e173ce56989c48009ec86d834072f9f2e70ac | [
"BSD-2-Clause"
] | null | null | null | import pytest
from bloodsword.characters.sage import Sage
from bloodsword.characters.warrior import Warrior
from bloodsword.descriptors.armour import Armour
def test_character_initialization(warrior, sage):
assert str(
warrior) == "<Name:Warrior Fighting Prowess=8 Psychic Ability=6 Awareness=6 Endurance... | 25.863636 | 98 | 0.741652 |
2616d68573a5381dc443c6d189b9ad8fa29013e9 | 201 | py | Python | examples/nod.py | Antoniii/In_Rust_We_Trust | 43513b4a34b2d7e20950db9a0ac811721db06a1a | [
"MIT"
] | null | null | null | examples/nod.py | Antoniii/In_Rust_We_Trust | 43513b4a34b2d7e20950db9a0ac811721db06a1a | [
"MIT"
] | null | null | null | examples/nod.py | Antoniii/In_Rust_We_Trust | 43513b4a34b2d7e20950db9a0ac811721db06a1a | [
"MIT"
] | null | null | null |
n1 = int(input(" n1: "))
n2 = int(input(" n2: "))
print(" = ", nod(n1,n2))
print("K = ", int((n1*n2)/nod(n1,n2))) | 18.272727 | 40 | 0.547264 |
2616fa0e716ad26e2e73aae0033703cf5ccaa90b | 2,417 | py | Python | UML2ER/contracts/HContract03_IsolatedLHS.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | UML2ER/contracts/HContract03_IsolatedLHS.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | UML2ER/contracts/HContract03_IsolatedLHS.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z | from core.himesis import Himesis, HimesisPreConditionPatternLHS
import uuid
| 29.839506 | 102 | 0.679355 |
261a000d9348f195b1440a4cf608cb7c86cce74a | 7,359 | py | Python | tests/test_mappings.py | cpenv/cpenv | 07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39 | [
"MIT"
] | 15 | 2017-02-14T04:16:59.000Z | 2021-10-05T15:20:02.000Z | tests/test_mappings.py | cpenv/cpenv | 07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39 | [
"MIT"
] | 32 | 2015-11-04T15:53:50.000Z | 2021-12-12T03:28:23.000Z | tests/test_mappings.py | cpenv/cpenv | 07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39 | [
"MIT"
] | 2 | 2017-02-24T16:30:39.000Z | 2021-09-24T05:26:05.000Z | # -*- coding: utf-8 -*-
# Local imports
from cpenv import mappings
from cpenv.compat import platform
def test_platform_values():
'''join_dicts with platform values'''
tests = {
'implicit_set': {
'osx': 'osx',
'linux': 'linux',
'win': 'win',
},
'imp... | 27.055147 | 75 | 0.467455 |
261aa67b18ad9245d7a07ef83e4b670e255e83ff | 98 | py | Python | src/db.py | jpocentek/flask-project-template | 0ba32002d847b04243181485d3c2ec146beb991b | [
"MIT"
] | null | null | null | src/db.py | jpocentek/flask-project-template | 0ba32002d847b04243181485d3c2ec146beb991b | [
"MIT"
] | null | null | null | src/db.py | jpocentek/flask-project-template | 0ba32002d847b04243181485d3c2ec146beb991b | [
"MIT"
] | null | null | null | """Database class."""
from flask_sqlalchemy import SQLAlchemy # type: ignore
db = SQLAlchemy()
| 16.333333 | 55 | 0.72449 |
261cb72cdb5369f93d2ed990d5292c026f4a45f8 | 3,313 | py | Python | logial_puzzle/logical_puzzle.py | Adeon18/logical_puzzle | 9a5d210bed51a779ceb5b15f720fdecf1860ff76 | [
"MIT"
] | null | null | null | logial_puzzle/logical_puzzle.py | Adeon18/logical_puzzle | 9a5d210bed51a779ceb5b15f720fdecf1860ff76 | [
"MIT"
] | null | null | null | logial_puzzle/logical_puzzle.py | Adeon18/logical_puzzle | 9a5d210bed51a779ceb5b15f720fdecf1860ff76 | [
"MIT"
] | null | null | null | '''
https://github.com/Adeon18/logical_puzzle
'''
# There are now proper commits in this repository becouse I
# created 1 repo for 2 tasks and then had to move
import math
def check_rows(board: list) -> bool:
'''
Check for row correction in board.
>>> check_rows(["**** ****", "***1 ****", "** 3****", "... | 29.318584 | 78 | 0.543616 |
261cd8b29762935b9416a0a01f195708019addab | 1,528 | py | Python | tests/test_signing.py | apache/incubator-milagro-mfa-server | b33dfe864ff0bcb8a26a46745b9c596d72d22ccf | [
"Apache-2.0"
] | 21 | 2016-09-18T19:13:58.000Z | 2021-11-10T18:35:30.000Z | tests/test_signing.py | apache/incubator-milagro-mfa-server | b33dfe864ff0bcb8a26a46745b9c596d72d22ccf | [
"Apache-2.0"
] | 3 | 2016-09-21T14:58:41.000Z | 2019-05-29T23:35:32.000Z | tests/test_signing.py | apache/incubator-milagro-mfa-server | b33dfe864ff0bcb8a26a46745b9c596d72d22ccf | [
"Apache-2.0"
] | 15 | 2016-05-24T11:15:47.000Z | 2021-11-10T18:35:22.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.510638 | 91 | 0.744764 |
261cf1e1d0b31aa16744bdc1d7356972182ab39f | 587 | py | Python | src/symplectic/test/test_jsonformat.py | pysymplectic/symplectic | bdb46157757eb6e1e12fd3694fdbd0bbf18a70db | [
"MIT"
] | null | null | null | src/symplectic/test/test_jsonformat.py | pysymplectic/symplectic | bdb46157757eb6e1e12fd3694fdbd0bbf18a70db | [
"MIT"
] | 1 | 2017-11-15T22:38:40.000Z | 2018-01-24T02:28:29.000Z | src/symplectic/test/test_jsonformat.py | pysymplectic/symplectic | bdb46157757eb6e1e12fd3694fdbd0bbf18a70db | [
"MIT"
] | null | null | null | import tempfile
import unittest
from symplectic import jsonformat
| 25.521739 | 62 | 0.531516 |
261ded6e9abcc1091124bde1d09dfb13cef1f119 | 2,285 | py | Python | yatube/posts/tests/test_forms.py | ShumilovAlexandr/hw03_forms | e75fd9a4db1fa7091205877f86d48613febf1484 | [
"MIT"
] | null | null | null | yatube/posts/tests/test_forms.py | ShumilovAlexandr/hw03_forms | e75fd9a4db1fa7091205877f86d48613febf1484 | [
"MIT"
] | null | null | null | yatube/posts/tests/test_forms.py | ShumilovAlexandr/hw03_forms | e75fd9a4db1fa7091205877f86d48613febf1484 | [
"MIT"
] | null | null | null | import shutil
import tempfile
from django import forms
from django.test import Client, TestCase
from django.urls import reverse
from posts.forms import PostForm
from posts.models import Group, Post, User
from django.conf import settings
TEMP_MEDIA_ROOT = tempfile.mkdtemp(dir=settings.BASE_DIR)
| 27.865854 | 91 | 0.615755 |
261e064420fd7dcd06ca3011998456030259d91a | 8,460 | py | Python | python_module/test/unit/functional/test_functional.py | WestCityInstitute/MegEngine | f91881ffdc051ab49314b1bd12c4a07a862dc9c6 | [
"Apache-2.0"
] | 2 | 2020-03-26T08:26:29.000Z | 2020-06-01T14:41:38.000Z | python_module/test/unit/functional/test_functional.py | ted51/MegEngine | f91881ffdc051ab49314b1bd12c4a07a862dc9c6 | [
"Apache-2.0"
] | null | null | null | python_module/test/unit/functional/test_functional.py | ted51/MegEngine | f91881ffdc051ab49314b1bd12c4a07a862dc9c6 | [
"Apache-2.0"
] | 1 | 2020-11-09T06:29:51.000Z | 2020-11-09T06:29:51.000Z | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | 32.045455 | 88 | 0.61513 |
261ea5255801b00d98a0de6fa447d7ccb3d9504f | 2,964 | py | Python | workflows/pipe-common/pipeline/common/container.py | msleprosy/cloud-pipeline | bccc2b196fad982380efc37a1c3785098bec6c85 | [
"Apache-2.0"
] | 126 | 2019-03-22T19:40:38.000Z | 2022-02-16T13:01:44.000Z | workflows/pipe-common/pipeline/common/container.py | msleprosy/cloud-pipeline | bccc2b196fad982380efc37a1c3785098bec6c85 | [
"Apache-2.0"
] | 1,189 | 2019-03-25T10:39:27.000Z | 2022-03-31T12:50:33.000Z | workflows/pipe-common/pipeline/common/container.py | msleprosy/cloud-pipeline | bccc2b196fad982380efc37a1c3785098bec6c85 | [
"Apache-2.0"
] | 62 | 2019-03-22T22:09:49.000Z | 2022-03-08T12:05:56.000Z | # Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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
#
# Unless required by appli... | 39 | 114 | 0.619096 |
261ef34aec94e0b7c7ad1e655cd7ebdf1e882520 | 243,870 | py | Python | code/learning/nominalization.py | ktwaco/nlproject | 16f02158fecdfe55a73a2c5c1e78376da935b50d | [
"Apache-2.0"
] | null | null | null | code/learning/nominalization.py | ktwaco/nlproject | 16f02158fecdfe55a73a2c5c1e78376da935b50d | [
"Apache-2.0"
] | null | null | null | code/learning/nominalization.py | ktwaco/nlproject | 16f02158fecdfe55a73a2c5c1e78376da935b50d | [
"Apache-2.0"
] | null | null | null | nominalization_list=["Buddhism",
"Catholicity",
"Catholicism",
"Doppler",
"evangelicality",
"Frenchness",
"Gaussianity",
"Gothicness",
"Indianness",
"Irishness",
"Jewishness",
"Malthusianism",
"mosaicity",
"Nordicness",
"northernness",
"Polishness",
"Protestantism",
"regency",
"Welshness",
"abandonment",
"abasement",
"... | 16.549267 | 53 | 0.755804 |
26200a7b0fdb3b7f678a0edc56db44b7bab13d20 | 2,029 | py | Python | tests/test_bulk_stats.py | sixy6e/eo-tools | 9e2772a5f15e04f6f7e3941541381544247ae1f2 | [
"Apache-2.0"
] | 3 | 2018-04-24T05:57:35.000Z | 2019-07-23T13:06:11.000Z | tests/test_bulk_stats.py | sixy6e/eo-tools | 9e2772a5f15e04f6f7e3941541381544247ae1f2 | [
"Apache-2.0"
] | 1 | 2015-06-17T04:39:23.000Z | 2015-06-17T04:39:23.000Z | tests/test_bulk_stats.py | sixy6e/eo-tools | 9e2772a5f15e04f6f7e3941541381544247ae1f2 | [
"Apache-2.0"
] | 2 | 2016-04-04T10:23:27.000Z | 2020-02-28T08:43:49.000Z | #!/usr/bin/env python
# ===============================================================================
# Copyright 2015 Geoscience Australia
#
# 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
... | 27.794521 | 81 | 0.609167 |
2620addb6c0a2614912637726159387427b444d3 | 2,516 | py | Python | python-skylark/skylark/tests/nla/test_nla.py | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 86 | 2015-01-20T03:12:46.000Z | 2022-01-10T04:05:21.000Z | python-skylark/skylark/tests/nla/test_nla.py | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 48 | 2015-05-12T09:31:23.000Z | 2018-12-05T14:45:46.000Z | python-skylark/skylark/tests/nla/test_nla.py | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 25 | 2015-01-18T23:02:11.000Z | 2021-06-12T07:30:35.000Z | import unittest
import numpy as np
import El
import skylark.nla as sl_nla
from .. import utils
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(NLATestCase)
unittest.TextTestRunner(verbosity=1).run(suite) | 25.938144 | 79 | 0.543323 |
2620ea952fc9ad7c4d6a79e6e5fedbfdc07b3d8b | 563 | py | Python | tut 9 blurring.py | arpit456jain/open-cv-tuts | 2ef213b9522a145fa51342d8a1385222cbe265c3 | [
"MIT"
] | null | null | null | tut 9 blurring.py | arpit456jain/open-cv-tuts | 2ef213b9522a145fa51342d8a1385222cbe265c3 | [
"MIT"
] | null | null | null | tut 9 blurring.py | arpit456jain/open-cv-tuts | 2ef213b9522a145fa51342d8a1385222cbe265c3 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread("images/watter.jpeg")
img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
kernel = np.ones((5,5),np.float32)/25
dst1 = cv2.filter2D(img,-1,kernel)
blur = cv2.blur(img,(5,5))
g_blur = cv2.GaussianBlur(img,(5,5),0)
median_blur = cv2.medianBlur... | 21.653846 | 66 | 0.687389 |
2621a6ccabece576b91cf545a302da60ca663e33 | 302 | py | Python | oauth2_provider/http.py | manelclos/django-oauth-toolkit | c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | oauth2_provider/http.py | manelclos/django-oauth-toolkit | c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2018-03-27T11:33:23.000Z | 2018-03-27T11:33:23.000Z | oauth2_provider/http.py | manelclos/django-oauth-toolkit | c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-02-13T11:53:48.000Z | 2021-02-13T11:53:48.000Z | from django.http import HttpResponseRedirect
| 37.75 | 83 | 0.774834 |
2621c3a515fc4c1d4a5faef8759aaadc1e7eaeca | 8,587 | py | Python | backend/main.py | jinjf553/hook_up_rent | 401ce94f3140d602bf0a95302ee47b7ef213b911 | [
"MIT"
] | null | null | null | backend/main.py | jinjf553/hook_up_rent | 401ce94f3140d602bf0a95302ee47b7ef213b911 | [
"MIT"
] | null | null | null | backend/main.py | jinjf553/hook_up_rent | 401ce94f3140d602bf0a95302ee47b7ef213b911 | [
"MIT"
] | null | null | null | import time
from datetime import timedelta
from random import choice
from typing import List, Optional
from fastapi import Depends, FastAPI, File, UploadFile
from fastapi.staticfiles import StaticFiles
from passlib.context import CryptContext
from pydantic import BaseModel
from sqlalchemy.orm import Session
from conf... | 37.995575 | 448 | 0.584721 |
262261b72d2641412ed943023fa74d4339a36852 | 7,665 | py | Python | mmdet/models/losses/iou_losses.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 65 | 2021-12-30T03:30:52.000Z | 2022-03-25T01:44:32.000Z | mmdet/models/losses/iou_losses.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 1 | 2021-12-31T01:51:35.000Z | 2022-01-01T14:42:37.000Z | mmdet/models/losses/iou_losses.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 7 | 2021-12-31T09:25:06.000Z | 2022-03-10T01:25:09.000Z | #! /usr/bin/env python
# coding=utf-8
# ================================================================
#
# Author : miemie2013
# Created date: 2020-10-15 14:50:03
# Description : pytorch_ppyolo
#
# ================================================================
import torch
import torch.nn as nn
import to... | 35.486111 | 119 | 0.562818 |
2624bc257e8f901aa965ba0e22d2dad3a916b18b | 312 | py | Python | assignments/assignment2/solutions/Jlopezjlx/src/src/account/forms.py | Jlopezjlx/python-mentorship | d104205bb9330ed5fc0ade433fb9a5aae5df4585 | [
"Apache-2.0"
] | 1 | 2019-04-07T12:26:20.000Z | 2019-04-07T12:26:20.000Z | assignments/assignment2/solutions/Jlopezjlx/src/src/account/forms.py | Jlopezjlx/python-mentorship | d104205bb9330ed5fc0ade433fb9a5aae5df4585 | [
"Apache-2.0"
] | null | null | null | assignments/assignment2/solutions/Jlopezjlx/src/src/account/forms.py | Jlopezjlx/python-mentorship | d104205bb9330ed5fc0ade433fb9a5aae5df4585 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth import get_user_model
from .models import Account
from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
User = get_user_model() | 22.285714 | 70 | 0.759615 |
2624f3ec627e513d71eae77da294d30a7ee77f1c | 489 | py | Python | pygame_gui/elements/__init__.py | jtiai/pygame_gui | 3da0e1f2c4c60a2780c798d5592f2603ba786b34 | [
"MIT"
] | null | null | null | pygame_gui/elements/__init__.py | jtiai/pygame_gui | 3da0e1f2c4c60a2780c798d5592f2603ba786b34 | [
"MIT"
] | null | null | null | pygame_gui/elements/__init__.py | jtiai/pygame_gui | 3da0e1f2c4c60a2780c798d5592f2603ba786b34 | [
"MIT"
] | null | null | null | from .ui_image import UIImage
from .ui_button import UIButton
from .ui_horizontal_slider import UIHorizontalSlider
from .ui_vertical_scroll_bar import UIVerticalScrollBar
from .ui_label import UILabel
from .ui_screen_space_health_bar import UIScreenSpaceHealthBar
from .ui_tool_tip import UITooltip
from .ui_drop_down_me... | 40.75 | 62 | 0.887526 |
262e2a6baf3b88e437fd423ee773c563521113f5 | 337 | py | Python | src/movie.py | cannibalcheeseburger/RaMu-Discord-bot | 6644cec0d249e6a5061ed16035102f97f9fc7ba7 | [
"MIT"
] | 2 | 2020-05-28T12:50:33.000Z | 2020-05-29T09:06:01.000Z | src/movie.py | cannibalcheeseburger/RaMu-Discord-bot | 6644cec0d249e6a5061ed16035102f97f9fc7ba7 | [
"MIT"
] | 2 | 2021-03-31T19:55:09.000Z | 2021-12-13T20:42:08.000Z | src/movie.py | cannibalcheeseburger/RaMu-Discord-bot | 6644cec0d249e6a5061ed16035102f97f9fc7ba7 | [
"MIT"
] | null | null | null | import imdb | 25.923077 | 43 | 0.581602 |
263290a43a7fd76dbddf7ceb014df04f20ba0371 | 7,249 | py | Python | micropy/project/modules/packages.py | MathijsNL/micropy-cli | 2dec0ca3045a22f6552dc3813bedaf552d4bad2c | [
"MIT"
] | null | null | null | micropy/project/modules/packages.py | MathijsNL/micropy-cli | 2dec0ca3045a22f6552dc3813bedaf552d4bad2c | [
"MIT"
] | null | null | null | micropy/project/modules/packages.py | MathijsNL/micropy-cli | 2dec0ca3045a22f6552dc3813bedaf552d4bad2c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Project Packages Module."""
import shutil
from pathlib import Path
from typing import Any, Union
from boltons import fileutils
from micropy import utils
from micropy.packages import (LocalDependencySource, PackageDependencySource,
create_dependency_source)
fr... | 32.95 | 100 | 0.572769 |
2636d97a76008661a130b2893ade3f12667ed659 | 361 | py | Python | soxs/background/__init__.py | gb-heimaf/lynx-x-ray-observatory | a1e5a17cab3763975e0d3dc0840f0359de8c8087 | [
"BSD-3-Clause"
] | 10 | 2020-05-08T01:38:18.000Z | 2021-09-30T16:55:49.000Z | soxs/background/__init__.py | gb-heimaf/lynx-x-ray-observatory | a1e5a17cab3763975e0d3dc0840f0359de8c8087 | [
"BSD-3-Clause"
] | 7 | 2018-10-03T11:56:01.000Z | 2021-08-12T17:54:51.000Z | soxs/background/__init__.py | gb-heimaf/lynx-x-ray-observatory | a1e5a17cab3763975e0d3dc0840f0359de8c8087 | [
"BSD-3-Clause"
] | 6 | 2016-11-17T21:15:22.000Z | 2021-04-10T11:42:24.000Z | from .foreground import make_foreground
from .point_sources import make_ptsrc_background, \
make_point_sources_file, make_point_source_list
from .instrument import make_instrument_background
from .spectra import BackgroundSpectrum, \
ConvolvedBackgroundSpectrum
from .events import add_background_from_file
from ... | 45.125 | 51 | 0.869806 |
2636fef4d07451a8ef4cb29191498d6952487c63 | 3,945 | py | Python | backup/guitemplates/endofsessiondialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | backup/guitemplates/endofsessiondialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | backup/guitemplates/endofsessiondialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'endofsessiondialog.ui'
#
# Created by: PyQt4 UI code generator 4.11.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
try:
_e... | 60.692308 | 156 | 0.78834 |
2637a434166fe45c22b4c9ec763b7c85c5947d98 | 8,679 | py | Python | test/test_logic.py | peteut/ramda.py | d315a9717ebd639366bf3fe26bad9e3d08ec3c49 | [
"MIT"
] | null | null | null | test/test_logic.py | peteut/ramda.py | d315a9717ebd639366bf3fe26bad9e3d08ec3c49 | [
"MIT"
] | 12 | 2017-09-03T15:25:48.000Z | 2020-04-11T15:22:01.000Z | test/test_logic.py | peteut/ramda.py | d315a9717ebd639366bf3fe26bad9e3d08ec3c49 | [
"MIT"
] | 1 | 2020-04-11T07:36:47.000Z | 2020-04-11T07:36:47.000Z | import ramda as R
from ramda.shared import eq
from .common import get_arity
import pytest
try:
from collections.abc import Callable
except ImportError:
from collections import Callable
def describe_all_pass():
def describe_any_pass():
def it_report_wheter_any_preds_are_satisfied(odd, gt20, lt5):
... | 26.460366 | 80 | 0.57449 |
263cf4e525b99a26c7f1cf3f1ee37f07078de9e0 | 7,168 | py | Python | src/covid19/dash_forecast.py | marhoy/covid19 | b53f7b812edea46bca6b27ac106d2363ee5d44d5 | [
"MIT"
] | null | null | null | src/covid19/dash_forecast.py | marhoy/covid19 | b53f7b812edea46bca6b27ac106d2363ee5d44d5 | [
"MIT"
] | null | null | null | src/covid19/dash_forecast.py | marhoy/covid19 | b53f7b812edea46bca6b27ac106d2363ee5d44d5 | [
"MIT"
] | null | null | null | """The dash-tab with forecast data."""
from typing import List
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
from dash.dependencies import Input, Output
import covid19.forecast
from covid19.data import DAY_ZERO_START
f... | 32 | 87 | 0.410435 |
263d7e9a9f0a66a08ad20dffde0a31855dd85fee | 145 | py | Python | 1132.py | barroslipe/urionlinejudge | a20d8199d9a92b30ea394a6c949967d2fc51aa34 | [
"MIT"
] | null | null | null | 1132.py | barroslipe/urionlinejudge | a20d8199d9a92b30ea394a6c949967d2fc51aa34 | [
"MIT"
] | null | null | null | 1132.py | barroslipe/urionlinejudge | a20d8199d9a92b30ea394a6c949967d2fc51aa34 | [
"MIT"
] | null | null | null | x = int(input())
y = int(input())
if x > y:
x, y = y, x
soma = 0
for i in range(x, y + 1):
if i%13 != 0:
soma += i
print(soma) | 12.083333 | 25 | 0.448276 |
263e270fa7c082211ad5f457c9821af9b682d010 | 91 | py | Python | contract-event-listener/src/config/__init__.py | xcantera/demo-provide-baseline | 985f391973fa6ca0761104b55077fded28f152fc | [
"CC0-1.0"
] | 3 | 2020-11-17T23:19:20.000Z | 2021-03-29T15:08:56.000Z | contract-event-listener/src/config/__init__.py | xcantera/demo-provide-baseline | 985f391973fa6ca0761104b55077fded28f152fc | [
"CC0-1.0"
] | null | null | null | contract-event-listener/src/config/__init__.py | xcantera/demo-provide-baseline | 985f391973fa6ca0761104b55077fded28f152fc | [
"CC0-1.0"
] | 1 | 2020-12-11T00:26:33.000Z | 2020-12-11T00:26:33.000Z | from .schema import ( # noqa
Config,
SQSReceiver,
LogReceiver,
Receiver
)
| 13 | 29 | 0.615385 |
263e3167efd7fced0be59c8dcec4e3dcbfdbafc7 | 193 | py | Python | CodeForces/579A. Raising Bacteria/Raising Bacteria.py | tameemalaa/Solved-Problems | 9e8bc96eb60f200787f2682e974ec6509a7c1734 | [
"MIT"
] | null | null | null | CodeForces/579A. Raising Bacteria/Raising Bacteria.py | tameemalaa/Solved-Problems | 9e8bc96eb60f200787f2682e974ec6509a7c1734 | [
"MIT"
] | null | null | null | CodeForces/579A. Raising Bacteria/Raising Bacteria.py | tameemalaa/Solved-Problems | 9e8bc96eb60f200787f2682e974ec6509a7c1734 | [
"MIT"
] | null | null | null | # Solution by : Tameem Alaa El-Deen Sayed
n = int(input())
c= 0
while n >= 1 :
if n % 2 == 0 :
n = n /2
else:
n = n -1
n = n / 2
c = c + 1
print (c) | 16.083333 | 41 | 0.393782 |
263f1ba2adc1731ba0f7b0bae1afb72287535d53 | 11,877 | py | Python | Vaccine_page/vaccine_maps_population.py | ScilifelabDataCentre/Covid_portal_vis | f41c1fe3b3d271b4d414378d622443f066a69d71 | [
"MIT"
] | null | null | null | Vaccine_page/vaccine_maps_population.py | ScilifelabDataCentre/Covid_portal_vis | f41c1fe3b3d271b4d414378d622443f066a69d71 | [
"MIT"
] | 2 | 2021-02-24T11:59:16.000Z | 2021-04-27T07:48:50.000Z | Vaccine_page/vaccine_maps_population.py | ScilifelabDataCentre/Covid_portal_vis | f41c1fe3b3d271b4d414378d622443f066a69d71 | [
"MIT"
] | 7 | 2021-02-18T14:50:03.000Z | 2021-11-11T11:41:07.000Z | import plotly.express as px
import plotly.graph_objects as go
import pandas as pd
import json
import os
from vaccine_dataprep_Swedentots import (
df_vacc_lan, # data on 1st 2 doses
third_vacc_dose_lan, # data on 3rd dose
# df_vacc_lders_lan, # a switch to age data for 1st and second doses?
SCB_popul... | 31.841823 | 129 | 0.613707 |
263ffe0fb0dfe081b932ef96364418b62b9cad91 | 1,520 | py | Python | regression/other/pybindgen/classes/gen.py | ExternalRepositories/shroud | 86c39d2324d947d28055f9024f52cc493eb0c813 | [
"BSD-3-Clause"
] | 73 | 2017-10-11T17:01:50.000Z | 2022-01-01T21:42:12.000Z | regression/other/pybindgen/classes/gen.py | ExternalRepositories/shroud | 86c39d2324d947d28055f9024f52cc493eb0c813 | [
"BSD-3-Clause"
] | 29 | 2018-03-21T19:34:29.000Z | 2022-02-04T18:13:14.000Z | regression/other/pybindgen/classes/gen.py | ExternalRepositories/shroud | 86c39d2324d947d28055f9024f52cc493eb0c813 | [
"BSD-3-Clause"
] | 8 | 2017-11-22T14:27:01.000Z | 2022-03-30T08:49:03.000Z | # Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
# other Shroud Project Developers.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (BSD-3-Clause)
#
########################################################################
"""
Generate a module for classes using PyBi... | 33.043478 | 97 | 0.623026 |
26406e10e1297a7c9003be939dfb3100b8150501 | 9,995 | py | Python | stanCode_Projects/my_photoshop/blur.py | EricCheng8679/sc-projects | 85f478ecf4c04f3ee79fd4c911a7122b286aff06 | [
"MIT"
] | null | null | null | stanCode_Projects/my_photoshop/blur.py | EricCheng8679/sc-projects | 85f478ecf4c04f3ee79fd4c911a7122b286aff06 | [
"MIT"
] | null | null | null | stanCode_Projects/my_photoshop/blur.py | EricCheng8679/sc-projects | 85f478ecf4c04f3ee79fd4c911a7122b286aff06 | [
"MIT"
] | null | null | null | """
File: blur.py
-------------------------------
This file shows the original image(smiley-face.png)
first, and then its blurred image. The blur algorithm
uses the average RGB values of a pixel's nearest neighbors.
"""
from simpleimage import SimpleImage
BLURRED_SCALE = 9
def blur(old_img):
"""
:param old_... | 63.66242 | 118 | 0.561681 |
26406e146753c756d9c6b32ec6a428c03630d569 | 650 | py | Python | app/__init__.py | Moobusy/learnpython | a9a35dec18fcdc4238e83f881c6e308667ec7029 | [
"MIT"
] | null | null | null | app/__init__.py | Moobusy/learnpython | a9a35dec18fcdc4238e83f881c6e308667ec7029 | [
"MIT"
] | null | null | null | app/__init__.py | Moobusy/learnpython | a9a35dec18fcdc4238e83f881c6e308667ec7029 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Docer
~~~~~~
A document viewing platform.
:copyright: (c) 2015 by Docer.Org.
:license: MIT, see LICENSE for more details.
'''
from flask import Flask
from flask.ext.mongoengine import MongoEngine
from app.frontend import frontend as frontend_blueprint
from app.backend import backend a... | 24.074074 | 81 | 0.747692 |
2641b42023211ee1b539a62e50d934444683d94e | 953 | py | Python | main.py | ghosh-r/text_scraper_for_bengali_poems | da148a0e8680fe365d4177fe269be875b0150c5c | [
"Apache-2.0"
] | null | null | null | main.py | ghosh-r/text_scraper_for_bengali_poems | da148a0e8680fe365d4177fe269be875b0150c5c | [
"Apache-2.0"
] | null | null | null | main.py | ghosh-r/text_scraper_for_bengali_poems | da148a0e8680fe365d4177fe269be875b0150c5c | [
"Apache-2.0"
] | null | null | null | from typing import List
from sys import argv
from tqdm import tqdm
from time import sleep
from random import uniform
from bs4 import BeautifulSoup
import requests
from get_pages_urls import get_list_pages
from get_urls import get_urls_per_page
from write_poem import write_poem
if __name__ == '__main__':
main(r... | 24.435897 | 75 | 0.713536 |
2641f16660f596ae7a11f3f894108dc509f1b570 | 12,597 | py | Python | aliens4friends/models/tinfoilhat.py | noi-techpark/solda-aliens4friends | 65f65f4e6775405e3098b2bac3f5903ff1c56795 | [
"Apache-2.0"
] | null | null | null | aliens4friends/models/tinfoilhat.py | noi-techpark/solda-aliens4friends | 65f65f4e6775405e3098b2bac3f5903ff1c56795 | [
"Apache-2.0"
] | null | null | null | aliens4friends/models/tinfoilhat.py | noi-techpark/solda-aliens4friends | 65f65f4e6775405e3098b2bac3f5903ff1c56795 | [
"Apache-2.0"
] | null | null | null | # SPDX-FileCopyrightText: NOI Techpark <info@noi.bz.it>
#
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import List, Dict, TypeVar, Optional
from copy import deepcopy
from deepdiff import DeepDiff
from .base import BaseModel, DictModel, ModelError
from aliens4friends.commons.utils import sha1sum_... | 30.28125 | 108 | 0.688656 |
2642eef0ddc241add30d3eac4bb4b4cb887bc80f | 276 | py | Python | teachers_sample_codes/spotkanie_3/01b_wheater_json.py | programujemy-python/programuj-w-zespole-test | 865f96e5be6ab4e3a7f15b9e446a1c0cbae06472 | [
"MIT"
] | 2 | 2022-01-31T20:21:18.000Z | 2022-02-22T10:54:41.000Z | teachers_materials/spotkanie_3/01b_wheater_json.py | abixadamj/Popojutrze-Progr-mujemy | d6f5a4de799a486024f799c4c392fdc1419654b8 | [
"MIT"
] | null | null | null | teachers_materials/spotkanie_3/01b_wheater_json.py | abixadamj/Popojutrze-Progr-mujemy | d6f5a4de799a486024f799c4c392fdc1419654b8 | [
"MIT"
] | 1 | 2022-03-07T11:23:58.000Z | 2022-03-07T11:23:58.000Z | # przykad wykorzystania biblioteki requests
import requests
params = {
'format': 'j1',
}
api_result = requests.get('https://wttr.in/Varsavia', params)
api_response = api_result.json()
for elem in api_response:
print(f"Klucz: {elem} ma warto {api_response[elem]}")
| 25.090909 | 61 | 0.724638 |
264442fc8af628ec3988bcd2a6d680b881abb966 | 1,327 | py | Python | Ejercicio1.py | Rauulito/EjercicioPOO | 400ebbe4395548541b5023d8a410ddfa283f88f7 | [
"Apache-2.0"
] | null | null | null | Ejercicio1.py | Rauulito/EjercicioPOO | 400ebbe4395548541b5023d8a410ddfa283f88f7 | [
"Apache-2.0"
] | null | null | null | Ejercicio1.py | Rauulito/EjercicioPOO | 400ebbe4395548541b5023d8a410ddfa283f88f7 | [
"Apache-2.0"
] | null | null | null |
libro = Libro("El Palomo","Carlos Rodriguez","Edelvives","180","Aventuras","330")
print("Titulo:"+libro.titulo,"Autor:"+libro.autor, "Editorial:"+libro.editorial,"Precio base:"+libro.precioBase,"Gnero:"+libro.genero,"Nmero de pginas:"+libro.nPaginas) | 33.175 | 171 | 0.669932 |
26445917b8f6b4bc76b5e11b529d19936fabc446 | 12,938 | py | Python | dataPrepScripts/CreateTensor.py | strixy16/Clairvoyante | 2bf60f9fc54d51518730d94cb05ffdf3a51f0176 | [
"BSD-3-Clause"
] | 171 | 2017-07-24T00:35:48.000Z | 2022-03-24T08:28:59.000Z | dataPrepScripts/CreateTensor.py | strixy16/Clairvoyante | 2bf60f9fc54d51518730d94cb05ffdf3a51f0176 | [
"BSD-3-Clause"
] | 45 | 2018-10-30T07:37:42.000Z | 2021-12-30T07:53:24.000Z | dataPrepScripts/CreateTensor.py | strixy16/Clairvoyante | 2bf60f9fc54d51518730d94cb05ffdf3a51f0176 | [
"BSD-3-Clause"
] | 27 | 2017-07-23T21:43:50.000Z | 2021-02-27T01:07:29.000Z | import os
import sys
import argparse
import os
import re
import shlex
import subprocess
import signal
import gc
import param
is_pypy = '__pypy__' in sys.builtin_module_names
cigarRe = r"(\d+)([MIDNSHP=X])"
base2num = dict(zip("ACGT", (0,1,2,3)))
stripe2 = 4 * param.matrixNum
stripe1 = param.matrixNum
def OutputAln... | 41.335463 | 185 | 0.552713 |
26461c895574afc6d2e5c0139208bf8be78b66bf | 2,405 | py | Python | setup.py | ssjunnebo/MultiQC_NGI | 1ca18747256324f1ddcb9ecd68159b2114718e71 | [
"MIT"
] | 3 | 2017-02-03T14:18:30.000Z | 2019-10-24T14:57:57.000Z | setup.py | ssjunnebo/MultiQC_NGI | 1ca18747256324f1ddcb9ecd68159b2114718e71 | [
"MIT"
] | 27 | 2015-10-16T16:20:10.000Z | 2017-07-03T14:28:40.000Z | setup.py | ssjunnebo/MultiQC_NGI | 1ca18747256324f1ddcb9ecd68159b2114718e71 | [
"MIT"
] | 8 | 2016-04-20T10:33:29.000Z | 2021-03-25T09:01:58.000Z | #!/usr/bin/env python
"""
MultiQC_NGI is a plugin for MultiQC, providing additional tools which are
specific to the National Genomics Infrastructure at the Science for Life
Laboratory in Stockholm, Sweden.
For more information about NGI, see http://www.scilifelab.se/platforms/ngi/
For more information about MultiQC, s... | 34.855072 | 96 | 0.63368 |
2648b74d5b48d2d6ff54adeaeb4a4c006edab254 | 3,106 | py | Python | utils/emails.py | rajattomar1301/HomeWorks-Initial | be7e6b6db2f7cf414a1f488e2efc473a95d9338a | [
"MIT"
] | null | null | null | utils/emails.py | rajattomar1301/HomeWorks-Initial | be7e6b6db2f7cf414a1f488e2efc473a95d9338a | [
"MIT"
] | 6 | 2021-03-18T22:07:14.000Z | 2022-03-11T23:39:30.000Z | utils/emails.py | rajattomar1301/HomeWorks-Initial | be7e6b6db2f7cf414a1f488e2efc473a95d9338a | [
"MIT"
] | null | null | null | import re
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
domain = "127.0.0.1"
| 31.06 | 120 | 0.716355 |
264a808d413bbf67e35dd4e04d0a267eaeacb3ac | 200 | py | Python | thinkpython_allen_downey/exercise_12_1.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null | thinkpython_allen_downey/exercise_12_1.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null | thinkpython_allen_downey/exercise_12_1.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null |
print(sumall(1,2,3,4,4,5,6,7))
print(sumall(1,2,34))
numbers = 1,2,3,4,5,6,6,7,8,9
print(sumall(*numbers))
| 18.181818 | 30 | 0.595 |
264d60d6576e248900b90821956e258de5d4ec82 | 866 | py | Python | core/admin.py | isGroba/petLost | 582851481a80c2e4645425d6b27830e2b7d44376 | [
"MIT"
] | 4 | 2017-06-16T11:19:56.000Z | 2018-12-20T10:06:51.000Z | core/admin.py | isGroba/petLost | 582851481a80c2e4645425d6b27830e2b7d44376 | [
"MIT"
] | 4 | 2017-06-06T10:36:32.000Z | 2017-06-11T20:26:47.000Z | core/admin.py | isGroba/petLost | 582851481a80c2e4645425d6b27830e2b7d44376 | [
"MIT"
] | 3 | 2017-06-06T06:54:48.000Z | 2018-10-11T22:32:27.000Z | from django.contrib import admin
from .models import Color, Pet, Publication
admin.site.register(Pet, PetAdmin)
admin.site.register(Publication, PublicationAdmin)
admin.site.register(Color, ColorAdmin)
| 27.0625 | 92 | 0.67552 |
264fec7de161d7ec6768ac23aa7065cdd2a16bae | 1,781 | py | Python | newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py | JamilHossain/news-please | 6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf | [
"Apache-2.0"
] | null | null | null | newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py | JamilHossain/news-please | 6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf | [
"Apache-2.0"
] | null | null | null | newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py | JamilHossain/news-please | 6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf | [
"Apache-2.0"
] | null | null | null | from copy import deepcopy
from bs4 import BeautifulSoup
from .abstract_extractor import AbstractExtractor
from ..article_candidate import ArticleCandidate
| 32.381818 | 109 | 0.658057 |
26501096fb0d6e0fc4401d923fa758cce0b9b091 | 853 | py | Python | entity/cards/LETL_017H/LETL_306.py | x014/lushi_script | edab2b88e3f0de8139de2541ab2daa331f777c0e | [
"MIT"
] | 102 | 2021-10-20T09:06:39.000Z | 2022-03-28T13:35:11.000Z | entity/cards/LETL_017H/LETL_306.py | x014/lushi_script | edab2b88e3f0de8139de2541ab2daa331f777c0e | [
"MIT"
] | 98 | 2021-10-19T16:13:27.000Z | 2022-03-27T13:27:49.000Z | entity/cards/LETL_017H/LETL_306.py | x014/lushi_script | edab2b88e3f0de8139de2541ab2daa331f777c0e | [
"MIT"
] | 55 | 2021-10-19T03:56:50.000Z | 2022-03-25T08:25:26.000Z | # -*- coding: utf-8 -*-
from hearthstone.entities import Entity
from entity.spell_entity import SpellEntity
| 32.807692 | 183 | 0.644783 |
26532987010eba65d4709e37e7fe8bdb8b2276d8 | 346 | py | Python | gravityinfraredco2sensor/__init__.py | osoken/py-gravity-infrared-co2-sensor | 242885e16d2bb0c43d8abbb9807f9932c8209427 | [
"MIT"
] | 1 | 2020-12-28T06:25:25.000Z | 2020-12-28T06:25:25.000Z | gravityinfraredco2sensor/__init__.py | osoken/py-gravity-infrared-co2-sensor | 242885e16d2bb0c43d8abbb9807f9932c8209427 | [
"MIT"
] | null | null | null | gravityinfraredco2sensor/__init__.py | osoken/py-gravity-infrared-co2-sensor | 242885e16d2bb0c43d8abbb9807f9932c8209427 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__description__ = 'Python driver and logging app ' +\
'for Gravity infrared CO2 sensor'
__long_description__ = 'Python driver and logging app ' +\
'for Gravity infrared CO2 sensor'
__author__ = 'osoken'
__email__ = 'osoken.devel@outlook.jp'
__version__ = '0.0.0'
__package_name__ = '... | 23.066667 | 58 | 0.716763 |
2653fcf693b549d95fda5d96dd6ca0e935afb6e0 | 1,414 | py | Python | src/main.py | fortytw0/vizwiz | 36563806d9bf13c8924577141b02bd2552aa48d6 | [
"MIT"
] | null | null | null | src/main.py | fortytw0/vizwiz | 36563806d9bf13c8924577141b02bd2552aa48d6 | [
"MIT"
] | null | null | null | src/main.py | fortytw0/vizwiz | 36563806d9bf13c8924577141b02bd2552aa48d6 | [
"MIT"
] | null | null | null | import os
import time
from src.models.model1 import CBD
from src.utils.train_utils import TrainGenerator
from tensorflow.keras import losses, optimizers, callbacks
train_data = TrainGenerator('train')
val_data = TrainGenerator('val')
epochs = 10
model_dir = 'models/'
log_dir = 'logs/'
cbd = CBD('models/', 'logs/'... | 26.185185 | 98 | 0.710042 |
265421a849a89a636ad43bddadaa5357b6a066c0 | 1,142 | py | Python | models/PSim_net.py | PoChunChen1012/synthesizing_human_like_sketches | ec2ba76cda3f658c21b5484bd478e0d4cee52fc6 | [
"MIT"
] | 46 | 2020-03-13T14:30:35.000Z | 2021-12-19T11:55:31.000Z | models/PSim_net.py | PoChunChen1012/synthesizing_human_like_sketches | ec2ba76cda3f658c21b5484bd478e0d4cee52fc6 | [
"MIT"
] | 2 | 2020-07-17T07:48:35.000Z | 2020-10-16T15:35:30.000Z | models/PSim_net.py | PoChunChen1012/synthesizing_human_like_sketches | ec2ba76cda3f658c21b5484bd478e0d4cee52fc6 | [
"MIT"
] | 2 | 2020-03-20T18:50:52.000Z | 2021-12-06T04:03:01.000Z | import torch.nn as nn
from models.PSim_alexnet import PSim_Alexnet
import torch
from utils import utils
| 33.588235 | 100 | 0.627846 |
26551b53033df1ef4c846dd69a18ee414d9ea7ce | 26 | py | Python | lib/__init__.py | mswilkhu1/ssense | 59987a3c492591c8217811e79a63f25652f0295c | [
"MIT"
] | null | null | null | lib/__init__.py | mswilkhu1/ssense | 59987a3c492591c8217811e79a63f25652f0295c | [
"MIT"
] | null | null | null | lib/__init__.py | mswilkhu1/ssense | 59987a3c492591c8217811e79a63f25652f0295c | [
"MIT"
] | null | null | null | from . import conf_reader
| 13 | 25 | 0.807692 |
2655d6c7fb66b3c5d656b8a6666cd3a7c01d406b | 271 | py | Python | plus-minus.py | saketsuman07/hacker-rank-solutions | 9055acf2e710b1a9caefe542b2b5e39b050e59fb | [
"MIT"
] | null | null | null | plus-minus.py | saketsuman07/hacker-rank-solutions | 9055acf2e710b1a9caefe542b2b5e39b050e59fb | [
"MIT"
] | null | null | null | plus-minus.py | saketsuman07/hacker-rank-solutions | 9055acf2e710b1a9caefe542b2b5e39b050e59fb | [
"MIT"
] | null | null | null | n = float(raw_input())
v = map(int, raw_input().strip().split())
pos = float(len(filter(lambda x: x > 0, v))) / n
neg = float(len(filter(lambda x: x < 0, v))) /n
zer = float(len(filter(lambda x: x == 0, v))) / n
print "%.3f" % pos
print "%.3f" % neg
print "%.3f" % zer
| 24.636364 | 49 | 0.571956 |
2657fe93d76911db915b716f3764d580739be1b3 | 297 | py | Python | api/config.py | libamen/libamen | bcf5c07ec6af25c0e5bd5703075638b46965412d | [
"Apache-2.0"
] | null | null | null | api/config.py | libamen/libamen | bcf5c07ec6af25c0e5bd5703075638b46965412d | [
"Apache-2.0"
] | null | null | null | api/config.py | libamen/libamen | bcf5c07ec6af25c0e5bd5703075638b46965412d | [
"Apache-2.0"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
basedir = os.path.abspath(os.path.dirname(__file__))
| 13.5 | 52 | 0.703704 |
2658babc747f1ce1026574efd7275014f53e2fd0 | 2,219 | py | Python | sustainableCityManagement/main_project/Bus_API/process_bus_delays.py | Josh-repository/Dashboard-CityManager- | 6287881be9fb2c6274a755ce5d75ad355346468a | [
"RSA-MD"
] | null | null | null | sustainableCityManagement/main_project/Bus_API/process_bus_delays.py | Josh-repository/Dashboard-CityManager- | 6287881be9fb2c6274a755ce5d75ad355346468a | [
"RSA-MD"
] | null | null | null | sustainableCityManagement/main_project/Bus_API/process_bus_delays.py | Josh-repository/Dashboard-CityManager- | 6287881be9fb2c6274a755ce5d75ad355346468a | [
"RSA-MD"
] | 1 | 2021-05-13T16:33:18.000Z | 2021-05-13T16:33:18.000Z | import requests
import json
from ..Config.config_handler import read_config
| 42.673077 | 133 | 0.54484 |
26599d13bfb32c3212e18f860f5d6d06e7a58aef | 3,576 | py | Python | generate/julia/ffi.py | Luthaf/Chemharp-bindgen | 7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8 | [
"MIT"
] | null | null | null | generate/julia/ffi.py | Luthaf/Chemharp-bindgen | 7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8 | [
"MIT"
] | 2 | 2018-02-25T21:46:45.000Z | 2018-11-19T22:39:54.000Z | generate/julia/ffi.py | chemfiles/bindgen | 7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8 | [
"MIT"
] | null | null | null | # -* coding: utf-8 -*
"""
This module generate the Julia interface declaration for the functions it
finds in a C header. It only handle edge cases for the chemfiles.h header.
"""
from generate.julia.constants import BEGINING
from generate.julia.convert import type_to_julia
from generate import CHFL_TYPES
TYPE_TEMPLA... | 26.10219 | 148 | 0.631991 |
265aad51cd825c5cd3fa7bde6bb29b6e88376717 | 648 | py | Python | op_interface/xgemm.py | LukasSlouka/TF_XNN | 152698a5da5ed6fff9ec4337e8dca4a1a396b458 | [
"MIT"
] | 3 | 2018-05-19T19:41:28.000Z | 2019-03-04T12:40:32.000Z | op_interface/xgemm.py | LukasSlouka/TF_XNN | 152698a5da5ed6fff9ec4337e8dca4a1a396b458 | [
"MIT"
] | null | null | null | op_interface/xgemm.py | LukasSlouka/TF_XNN | 152698a5da5ed6fff9ec4337e8dca4a1a396b458 | [
"MIT"
] | null | null | null | from tensorflow.python.framework import ops
from tensorflow.python.ops import math_ops
from .utils import get_xmodule
xmodule = get_xmodule()
xgemm = xmodule.xgemm
| 28.173913 | 70 | 0.723765 |
265ab7b03cf9ea1a66d9ea39dcb79842ad35aa0c | 1,004 | py | Python | Chapter05/nlp40.py | gushwell/PythonNLP100 | c67148232fc942b1f8a72e69a2a5e7a3b76e99bd | [
"MIT"
] | 2 | 2020-01-09T14:48:41.000Z | 2021-11-20T20:33:46.000Z | Chapter05/nlp40.py | CLRafaelR/PythonNLP100 | c67148232fc942b1f8a72e69a2a5e7a3b76e99bd | [
"MIT"
] | null | null | null | Chapter05/nlp40.py | CLRafaelR/PythonNLP100 | c67148232fc942b1f8a72e69a2a5e7a3b76e99bd | [
"MIT"
] | 2 | 2020-01-09T14:48:40.000Z | 2021-11-20T20:33:59.000Z | # 5:
import re
if __name__ == '__main__':
main()
| 23.904762 | 63 | 0.456175 |
265bf6359ab14ac666621994354747be0e20755e | 1,096 | py | Python | test/TestUtils.py | priscillaboyd/SPaT_Prediction | 4309819e1f8d8e49f2e7fc132750102322e1504a | [
"Apache-2.0"
] | 7 | 2017-07-10T09:18:19.000Z | 2022-03-22T02:47:12.000Z | test/TestUtils.py | priscillaboyd/SPaT_Prediction | 4309819e1f8d8e49f2e7fc132750102322e1504a | [
"Apache-2.0"
] | 36 | 2017-06-27T15:04:27.000Z | 2017-10-21T12:39:12.000Z | test/TestUtils.py | priscillaboyd/SPaT_Prediction | 4309819e1f8d8e49f2e7fc132750102322e1504a | [
"Apache-2.0"
] | 2 | 2017-11-01T03:26:55.000Z | 2019-06-01T20:20:31.000Z | import os
import shutil
import unittest
from tools.Utils import root_path, output_fields, create_folder_if_not_exists, results_folder
if __name__ == "__main__":
unittest.main()
| 28.842105 | 93 | 0.70073 |
265f8fd62d80164aa1cff86121914b68ce2ea3c8 | 650 | py | Python | pwned/searchpass.py | nverhaaren/code-samples | 2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673 | [
"MIT"
] | null | null | null | pwned/searchpass.py | nverhaaren/code-samples | 2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673 | [
"MIT"
] | 2 | 2017-08-10T02:40:57.000Z | 2017-08-12T00:56:48.000Z | pwned/searchpass.py | nverhaaren/code-samples | 2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673 | [
"MIT"
] | null | null | null | #! /usr/bin/python
import hashlib, getpass
import sys
if len(sys.argv) > 1 and sys.argv[1] == '-s':
sha = True
else:
sha = False
while True:
try:
passhash = hashlib.sha1(getpass.getpass()).hexdigest().upper()
if sha:
print passhash
except EOFError:
print
br... | 19.69697 | 70 | 0.481538 |
2661899145bc08ac1035d9320ae8710c8aceeb71 | 14,728 | py | Python | electricpy/conversions.py | engineerjoe440/electricpy | 03155a34ea024b61a9a6c41241cd664d0df0fb6b | [
"MIT"
] | null | null | null | electricpy/conversions.py | engineerjoe440/electricpy | 03155a34ea024b61a9a6c41241cd664d0df0fb6b | [
"MIT"
] | null | null | null | electricpy/conversions.py | engineerjoe440/electricpy | 03155a34ea024b61a9a6c41241cd664d0df0fb6b | [
"MIT"
] | null | null | null | ################################################################################
"""
`electricpy` Package - `conversions` Module.
>>> from electricpy import conversions
Filled with simple conversion functions to help manage unit conversions and the
like, this module is very helpful to electrical engineers.
Built to ... | 23.266983 | 81 | 0.577404 |
2661e35125a9440b7263e4c2e760872c0ae79dad | 1,713 | py | Python | app/pages.py | mvasilkov/terrible-mistake | 4f40a9719786ad3df0aea521dfeda234e3329714 | [
"MIT"
] | null | null | null | app/pages.py | mvasilkov/terrible-mistake | 4f40a9719786ad3df0aea521dfeda234e3329714 | [
"MIT"
] | null | null | null | app/pages.py | mvasilkov/terrible-mistake | 4f40a9719786ad3df0aea521dfeda234e3329714 | [
"MIT"
] | null | null | null | import html
from .models import Post, Session
TEMPLATE_BASE = '''<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>noname</title>
<link rel="stylesheet" href="/static/app.css">
</head>
<body>
%s
</body>
</html>
'''
TEMPLATE_FORM = '''
<form action="... | 23.465753 | 68 | 0.54174 |
266247aa06f4461cb7db5adf2fdddc88aebe5a2f | 761 | py | Python | seqauto/management/commands/reload_illumina_flowcell_qc.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | seqauto/management/commands/reload_illumina_flowcell_qc.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | seqauto/management/commands/reload_illumina_flowcell_qc.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | """
https://github.com/SACGF/variantgrid/issues/1601
Need to trigger reloads of bad metrics, so we die properly
"""
import logging
from django.core.management.base import BaseCommand
from seqauto.models import IlluminaFlowcellQC
from snpdb.models import DataState
| 24.548387 | 75 | 0.687254 |
26649d1e4db6d0705a327b9183a318d36350f178 | 446 | py | Python | ssig_site/auth/migrations/0003_user_interest_events.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | null | null | null | ssig_site/auth/migrations/0003_user_interest_events.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | 61 | 2018-02-22T11:10:48.000Z | 2022-03-11T23:20:25.000Z | ssig_site/auth/migrations/0003_user_interest_events.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | 2 | 2018-02-10T11:26:52.000Z | 2018-02-21T12:14:36.000Z | # Generated by Django 2.0.2 on 2018-03-08 12:49
from django.db import migrations, models
| 22.3 | 58 | 0.605381 |
2665879f29151dd4bf50f5357e2d4d3726e90112 | 391 | py | Python | Google Drive/Learning/Python/DataScience/Classes/Dog.py | mobiusworkspace/mobiuswebsite | 73eef1bd4fc07ea318aad431de09eac10fc4da3a | [
"CC-BY-3.0"
] | null | null | null | Google Drive/Learning/Python/DataScience/Classes/Dog.py | mobiusworkspace/mobiuswebsite | 73eef1bd4fc07ea318aad431de09eac10fc4da3a | [
"CC-BY-3.0"
] | null | null | null | Google Drive/Learning/Python/DataScience/Classes/Dog.py | mobiusworkspace/mobiuswebsite | 73eef1bd4fc07ea318aad431de09eac10fc4da3a | [
"CC-BY-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 17 01:08:13 2020
@author: OAdeoye
"""
bingo = Dog("Bingo")
bingo.respond_to_command("Bingo")
bingo = Dog("Winco")
bingo.respond_to_command("Bingo") | 19.55 | 47 | 0.618926 |
26665c848e7389ad3807abd7e96f3f0161f6a4ff | 704 | py | Python | tests/test_query.py | tikazyq/google-analytics-api-wrapper | 91ffc1d6b4cb810aea20541153d64730873903b9 | [
"MIT"
] | 6 | 2015-03-11T01:38:54.000Z | 2021-07-09T21:40:12.000Z | tests/test_query.py | QPC-database/google-analytics-api-wrapper | 91ffc1d6b4cb810aea20541153d64730873903b9 | [
"MIT"
] | null | null | null | tests/test_query.py | QPC-database/google-analytics-api-wrapper | 91ffc1d6b4cb810aea20541153d64730873903b9 | [
"MIT"
] | 1 | 2021-07-09T21:40:13.000Z | 2021-07-09T21:40:13.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
from datetime import datetime, timedelta
from analytics_query import analytics_query as aq
START_DATE = (datetime.now() - timedelta(7)).strftime('%Y-%m-%d')
END_DATE = (datetime.now() - timedelta(1)).strftime('%Y-%m-%d')
start_date = '2015-03-03'
end_date = '... | 24.275862 | 92 | 0.674716 |
2669475d57fe48eb8f470f059b2de2b3e28b5b3e | 2,864 | py | Python | GameManager.py | redxdev/Matching | 6d65933a64bf0f22a18a27c675cb8e95f4161e08 | [
"MIT"
] | 1 | 2016-05-06T10:23:24.000Z | 2016-05-06T10:23:24.000Z | GameManager.py | redxdev/Matching | 6d65933a64bf0f22a18a27c675cb8e95f4161e08 | [
"MIT"
] | null | null | null | GameManager.py | redxdev/Matching | 6d65933a64bf0f22a18a27c675cb8e95f4161e08 | [
"MIT"
] | null | null | null | from WordList import WordList, WordCard
import pygame
| 28.929293 | 94 | 0.50419 |
266b073ce320af6c6412a8f34133f369b56ae914 | 1,687 | py | Python | src/main.py | ekim1919/TDAGo | 014db546dae3dedb4f7206288333756fc358ed8a | [
"MIT"
] | null | null | null | src/main.py | ekim1919/TDAGo | 014db546dae3dedb4f7206288333756fc358ed8a | [
"MIT"
] | null | null | null | src/main.py | ekim1919/TDAGo | 014db546dae3dedb4f7206288333756fc358ed8a | [
"MIT"
] | null | null | null | from plot import *
from experiments import *
import warnings
warnings.filterwarnings("ignore") #Ignore warnings for now
import sys
import os
import argparse
if __name__ == '__main__':
main()
#Test routines
#Animation routines
#Persistence Diagrams?\
#Go analysis features.
#Ideas
#How to interpret H_1 points o... | 35.145833 | 212 | 0.740368 |
266b7396a2ed1939667431e7fe0b116000780021 | 1,358 | py | Python | script/python3/util/env.py | setminami/IrControl | bcdd44b7f6aeca75226cdcfc611dc63032c38949 | [
"MIT"
] | null | null | null | script/python3/util/env.py | setminami/IrControl | bcdd44b7f6aeca75226cdcfc611dc63032c38949 | [
"MIT"
] | 2 | 2018-09-21T11:53:28.000Z | 2018-12-30T03:37:23.000Z | script/python3/util/env.py | setminami/IrControl | bcdd44b7f6aeca75226cdcfc611dc63032c38949 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# this made for python3
from os import environ
def expand_env(params, verbose=False):
""" dotenv like function, but not dotenv """
for key, val in params.items():
_print('try %s, %s'%(key, val), verbose)
if isinstance(val, dict):
_print('ORDEREDDICT', verbos... | 39.941176 | 122 | 0.54271 |
266c5f9566178c353cbde59b14658db79e486f2e | 236 | py | Python | script/pipeline/setup/setup.py | cpuabuse/py-deployment-automation | aea0c48ac4c5a81f2e027c984ab65f911ad29d0d | [
"0BSD"
] | 1 | 2020-02-23T22:35:28.000Z | 2020-02-23T22:35:28.000Z | script/pipeline/setup/setup.py | cpuabuse/py-deployment-automation | aea0c48ac4c5a81f2e027c984ab65f911ad29d0d | [
"0BSD"
] | null | null | null | script/pipeline/setup/setup.py | cpuabuse/py-deployment-automation | aea0c48ac4c5a81f2e027c984ab65f911ad29d0d | [
"0BSD"
] | null | null | null | """
A file for setup.
"""
# Metadata
__author__ = "cpuabuse.com"
__copyright__ = "cpuabuse.com 2019"
__license__ = "ISC"
__version__ = "0.0.1"
__email__ = "cpuabuse@gmail.com"
__status__ = "Development"
# Minimum python version is 3.6 | 18.153846 | 35 | 0.711864 |
266efdf5f618ad871cc4108d4a51b575ba968601 | 6,392 | py | Python | Kinkajou/python/admin/opencode.py | app858216291-github/Kinkajou-shop | ee1e841e26407b1dcbd14601e5fe34b6422eba29 | [
"MIT"
] | null | null | null | Kinkajou/python/admin/opencode.py | app858216291-github/Kinkajou-shop | ee1e841e26407b1dcbd14601e5fe34b6422eba29 | [
"MIT"
] | null | null | null | Kinkajou/python/admin/opencode.py | app858216291-github/Kinkajou-shop | ee1e841e26407b1dcbd14601e5fe34b6422eba29 | [
"MIT"
] | null | null | null | from admin.upload import FileUploadField, ImageUploadField
from flask_babelex import Babel
from flask_admin._compat import urljoin
from flask import redirect
from flask_admin._compat import quote
from flask_admin.contrib.fileadmin import FileAdmin
from flask_admin import Admin, BaseView, expose
from flask_admin.... | 37.380117 | 184 | 0.571339 |
267010ecd5efb0c3498de085c2712903abc79773 | 4,137 | py | Python | liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py | aviemzur/incubator-liminal | 88174a6fe519f9a6052f6e5d366a37a88a915ee4 | [
"Apache-2.0"
] | 1 | 2021-03-24T08:23:03.000Z | 2021-03-24T08:23:03.000Z | liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py | liorsav/incubator-liminal | 88174a6fe519f9a6052f6e5d366a37a88a915ee4 | [
"Apache-2.0"
] | null | null | null | liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py | liorsav/incubator-liminal | 88174a6fe519f9a6052f6e5d366a37a88a915ee4 | [
"Apache-2.0"
] | null | null | null | import json
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
_IS_SPLIT_KEY = 'is_split'
| 28.93007 | 87 | 0.555958 |
2670f782ce4049f02c248c80f13a94aafff1be8d | 1,440 | py | Python | game/content/ghplots/__init__.py | AmkG/gearhead-caramel | 0238378295a09b4b33adb2ec0854fa06b0ad7b1b | [
"Apache-2.0"
] | null | null | null | game/content/ghplots/__init__.py | AmkG/gearhead-caramel | 0238378295a09b4b33adb2ec0854fa06b0ad7b1b | [
"Apache-2.0"
] | null | null | null | game/content/ghplots/__init__.py | AmkG/gearhead-caramel | 0238378295a09b4b33adb2ec0854fa06b0ad7b1b | [
"Apache-2.0"
] | null | null | null | import inspect
from . import actionscenes
from . import dd_combatmission
from . import dd_customobjectives
from . import dd_distanttown
from . import dd_homebase
from . import dd_intro
from . import dd_lancedev
from . import dd_main
from . import dd_roadedge
from . import dd_roadedge_propp
from . import dd_roadstops
f... | 26.181818 | 110 | 0.758333 |
2671a284c0ed4b2cd6f0faa0d1f0db0edd38447c | 27,696 | py | Python | reV/handlers/collection.py | pjstanle/reV | c22c620749747022a65d2a98a99beef804849ee6 | [
"BSD-3-Clause"
] | 37 | 2020-03-04T05:24:23.000Z | 2022-02-24T14:39:49.000Z | reV/handlers/collection.py | pjstanle/reV | c22c620749747022a65d2a98a99beef804849ee6 | [
"BSD-3-Clause"
] | 174 | 2020-03-03T18:18:53.000Z | 2022-03-08T22:00:40.000Z | reV/handlers/collection.py | pjstanle/reV | c22c620749747022a65d2a98a99beef804849ee6 | [
"BSD-3-Clause"
] | 16 | 2020-08-10T13:43:36.000Z | 2021-11-19T22:43:36.000Z | # -*- coding: utf-8 -*-
"""
Base class to handle collection of profiles and means across multiple .h5 files
"""
import logging
import numpy as np
import os
import sys
import psutil
import pandas as pd
import time
import shutil
from warnings import warn
from reV.handlers.outputs import Outputs
from reV.utilities.except... | 35.326531 | 79 | 0.55239 |
267391fe6f529c4f578f96fdbf6f647ec6e040d3 | 964 | py | Python | utility/templatetags/to_price.py | hosseinmoghimi/waiter | 9f5f332b6f252a29aa14f67655b423fd9c40fba3 | [
"MIT"
] | 1 | 2021-12-02T11:16:53.000Z | 2021-12-02T11:16:53.000Z | utility/templatetags/to_price.py | hosseinmoghimi/waiter | 9f5f332b6f252a29aa14f67655b423fd9c40fba3 | [
"MIT"
] | null | null | null | utility/templatetags/to_price.py | hosseinmoghimi/waiter | 9f5f332b6f252a29aa14f67655b423fd9c40fba3 | [
"MIT"
] | null | null | null | from core.errors import LEO_ERRORS
from django import template
register = template.Library()
from utility.currency import to_price as to_price_origin
from utility.num import to_horuf as to_horuf_num,to_tartib as to_tartib_
def separate(price):
try:
price=int(price)
except:
return N... | 18.538462 | 72 | 0.65249 |
2674b3c10e1e9d8ebf4b7b0491fb0687920f7025 | 3,119 | py | Python | Python/maximal-rectangle.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | 1 | 2022-01-30T06:55:28.000Z | 2022-01-30T06:55:28.000Z | Python/maximal-rectangle.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | null | null | null | Python/maximal-rectangle.py | RideGreg/LeetCode | b70818b1e6947bf29519a24f78816e022ebab59e | [
"MIT"
] | 1 | 2021-12-31T03:56:39.000Z | 2021-12-31T03:56:39.000Z | # Time: O(m*n)
# Space: O(n)
# 85
# Given a 2D binary matrix filled with 0's and 1's,
# find the largest rectangle containing all ones and return its area.
# Ascending stack solution.
# DP solution.
if __name__ == "__main__":
matrix = ["01101",
"11010",
"01110",
"1111... | 31.505051 | 91 | 0.430907 |
2676b926254be1cabd4bc81bb9a3da1c42ddb39a | 299 | py | Python | Maximum_Increase.py | Milon34/Python_Learning | b24efbba4751ed51758bf6b907e71f384415a9d5 | [
"MIT"
] | null | null | null | Maximum_Increase.py | Milon34/Python_Learning | b24efbba4751ed51758bf6b907e71f384415a9d5 | [
"MIT"
] | null | null | null | Maximum_Increase.py | Milon34/Python_Learning | b24efbba4751ed51758bf6b907e71f384415a9d5 | [
"MIT"
] | null | null | null | n=int(input())
a = [int(s) for s in input().split(' ')]
increment=1
max_increment=1
for i in range(1,n):
if a[i]>a[i-1]:
increment=increment+1
else:
max_increment=max(max_increment,increment)
increment=1
max_increment=max(max_increment,increment)
print(max_increment) | 24.916667 | 50 | 0.672241 |
2676fe4e4181d8ea15429d8939404231084cca25 | 8,869 | py | Python | makechart.py | preeve9534/signalk-sensor-log | 7f6afd188b1ed95dad0b4d798f66d145a1f10978 | [
"Apache-2.0"
] | null | null | null | makechart.py | preeve9534/signalk-sensor-log | 7f6afd188b1ed95dad0b4d798f66d145a1f10978 | [
"Apache-2.0"
] | null | null | null | makechart.py | preeve9534/signalk-sensor-log | 7f6afd188b1ed95dad0b4d798f66d145a1f10978 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from SocketServer import TCPServer, StreamRequestHandler
import socket
from subprocess import call
import datetime
import json
import re
import sys
import os
CONF = {}
RRDTOOL = '/usr/bin/rrdtool'
PERIODS = []
CHART_BACKGROUNDCOLOR = '#000000'
CHART_CANVASCOLOR = '#000000'
CHART_DIRECTORY = '/tmp/'... | 49.272222 | 209 | 0.560379 |
267701db0df3dc5669a6ef8609e548969a09888e | 410 | py | Python | way/python/exercises/various/turtle_draws/turtle_spiral_name.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | way/python/exercises/various/turtle_draws/turtle_spiral_name.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | way/python/exercises/various/turtle_draws/turtle_spiral_name.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | #
import turtle
t = turtle.Pen()
turtle.bgcolor("black")
colors = ["red", "yellow", "blue", "green"]
# gui text input
name = turtle.textinput(" ", " ?")
for x in range(100):
t.pencolor(colors[x%4])
t.penup()
t.forward(x*4)
t.pendown()
t.write(name, font=("Arial", int((x + 4)... | 22.777778 | 61 | 0.592683 |
26796efa4885d9b90f7bb3e4e595ebd4603db189 | 1,537 | py | Python | config/base_config.py | xuyouze/DropNet | edbaeb72075b819b96e1ca66e966999a40d3645e | [
"Apache-2.0"
] | 1 | 2021-06-28T06:27:06.000Z | 2021-06-28T06:27:06.000Z | config/base_config.py | xuyouze/DropNet | edbaeb72075b819b96e1ca66e966999a40d3645e | [
"Apache-2.0"
] | null | null | null | config/base_config.py | xuyouze/DropNet | edbaeb72075b819b96e1ca66e966999a40d3645e | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
# @Time : 2019/5/15
# @Author : xuyouze
# @File Name : base_config.py
import importlib
import os
import sys
import torch
import logging
from .dataset_config import build_dataset_config
from .logger_config import config
__all__ = ["BaseConfig"]
| 23.646154 | 91 | 0.709824 |
267b0451a5289dfdcefad895acd9541e3d77721e | 814 | py | Python | test/test_utils.py | fact-project/ratescan | 69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4 | [
"MIT"
] | null | null | null | test/test_utils.py | fact-project/ratescan | 69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4 | [
"MIT"
] | null | null | null | test/test_utils.py | fact-project/ratescan | 69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4 | [
"MIT"
] | null | null | null | from fact.io import read_data
#
# def test_joinOnTimesFromRunDB():
# from ratescan.utils import joinOnTimesFromRunDB
#
# df = read_data("test/test.hdf5", key="ratescan")
#
# df_res = joinOnTimesFromRunDB(df)
| 29.071429 | 96 | 0.701474 |
267b7ae665db4a183786b0a16f0d7887f1bbb20e | 4,080 | py | Python | rbac/cli/cli_test_auth.py | shawnmckinney/py-fortress | ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf | [
"Apache-2.0"
] | 16 | 2018-03-19T02:19:01.000Z | 2021-12-30T15:24:40.000Z | rbac/cli/cli_test_auth.py | shawnmckinney/py-fortress | ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf | [
"Apache-2.0"
] | 1 | 2021-12-18T16:46:04.000Z | 2021-12-18T16:46:04.000Z | rbac/cli/cli_test_auth.py | shawnmckinney/py-fortress | ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf | [
"Apache-2.0"
] | 2 | 2018-03-14T21:48:43.000Z | 2018-03-19T03:25:40.000Z | '''
@copyright: 2022 - Symas Corporation
'''
import sys
import pickle
import argparse
from rbac.util import global_ids
from rbac.model import Perm, User
from rbac import access
from rbac.util import RbacError
from ..cli.utils import print_user, print_entity
from rbac.cli.utils import (
load_entity, add_args, ADD,... | 34.576271 | 132 | 0.554412 |
267b9ff6b529eb0367e6acbbd247f37b5d0c7a4d | 1,678 | py | Python | httprider/presenters/utility_functions_presenter.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 27 | 2019-12-20T00:10:28.000Z | 2022-03-09T18:04:23.000Z | httprider/presenters/utility_functions_presenter.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 6 | 2019-10-13T08:50:21.000Z | 2020-06-05T12:23:08.000Z | httprider/presenters/utility_functions_presenter.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 7 | 2019-08-10T01:38:31.000Z | 2021-08-23T05:28:46.000Z | from httprider.core.generators import utility_func_map
| 34.958333 | 78 | 0.6764 |
267d4a279fad22068d75718ec410431f6a3cbe63 | 12,745 | py | Python | ensembling_sgd.py | suswei/RLCT | e9e04ca5e64250dfbb94134ec5283286dcdc4358 | [
"MIT"
] | null | null | null | ensembling_sgd.py | suswei/RLCT | e9e04ca5e64250dfbb94134ec5283286dcdc4358 | [
"MIT"
] | null | null | null | ensembling_sgd.py | suswei/RLCT | e9e04ca5e64250dfbb94134ec5283286dcdc4358 | [
"MIT"
] | null | null | null | import argparse
import numpy as np
import os
from numpy.linalg import inv
import torch
import torch.nn as nn
from torch.utils.data import TensorDataset
import torch.optim as optim
from torch.distributions.multivariate_normal import MultivariateNormal
from torch.distributions.uniform import Uniform
from torch.distribut... | 42.342193 | 175 | 0.612475 |
2681adb86e53921fccea1f698b21e0752d4e5ac6 | 1,764 | py | Python | edge_server/script_server.py | Dspatharakis/alphabot-ppl | 1f234548bf3fc7d447663f94cfa49591724563b0 | [
"MIT"
] | null | null | null | edge_server/script_server.py | Dspatharakis/alphabot-ppl | 1f234548bf3fc7d447663f94cfa49591724563b0 | [
"MIT"
] | null | null | null | edge_server/script_server.py | Dspatharakis/alphabot-ppl | 1f234548bf3fc7d447663f94cfa49591724563b0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import requests
import json
import time
import sys
import subprocess
import csv
import json
import numpy as np
if __name__ == "__main__":
main()
| 34.588235 | 196 | 0.549887 |
2683c81a292c3d694af782d7d6d9714cc7c5d078 | 5,264 | py | Python | madic/tests/test_io.py | dcroote/madic | fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563 | [
"BSD-3-Clause"
] | 2 | 2017-12-08T03:24:22.000Z | 2017-12-13T10:22:09.000Z | madic/tests/test_io.py | dcroote/madic | fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563 | [
"BSD-3-Clause"
] | null | null | null | madic/tests/test_io.py | dcroote/madic | fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563 | [
"BSD-3-Clause"
] | null | null | null | import os
import pandas as pd
import numpy as np
from pandas.testing import assert_series_equal
from madic import io
def test_load_skyline_transition_report():
report_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
'../../examples/'
... | 37.6 | 79 | 0.510448 |
2688264518d4b814e3d6dda29397dc244b099dd8 | 226 | py | Python | plot.py | arthtyagi/makefile | d64c38ddad63c7f90dd23c26e3f398229aa7dfa4 | [
"MIT"
] | null | null | null | plot.py | arthtyagi/makefile | d64c38ddad63c7f90dd23c26e3f398229aa7dfa4 | [
"MIT"
] | null | null | null | plot.py | arthtyagi/makefile | d64c38ddad63c7f90dd23c26e3f398229aa7dfa4 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
x = []
y = []
with open('points') as f:
for point in map(lambda x: x.split(), f.readlines()):
x.append(int(point[0]))
y.append(int(point[1]))
plt.scatter(x, y)
plt.show()
| 17.384615 | 57 | 0.588496 |
2689410c8429db9fcdde4ffcfbc17820cb6d3055 | 509 | py | Python | pos_debranding/__manifest__.py | jromeroarg/itpp-labs_pos-addons | ec688a1b06999dc2fa408623a79e93356bf900b3 | [
"MIT"
] | null | null | null | pos_debranding/__manifest__.py | jromeroarg/itpp-labs_pos-addons | ec688a1b06999dc2fa408623a79e93356bf900b3 | [
"MIT"
] | null | null | null | pos_debranding/__manifest__.py | jromeroarg/itpp-labs_pos-addons | ec688a1b06999dc2fa408623a79e93356bf900b3 | [
"MIT"
] | 1 | 2020-08-20T04:21:42.000Z | 2020-08-20T04:21:42.000Z | # Copyright 2015-2018,2020 Ivan Yelizariev
# License MIT (https://opensource.org/licenses/MIT).
{
"name": "POS debranding",
"version": "13.0.1.0.0",
"author": "IT-Projects LLC, Ivan Yelizariev",
"license": "Other OSI approved licence", # MIT
"category": "Debranding",
"support": "help@itpp.dev",... | 31.8125 | 52 | 0.624754 |
268a1a32773db807fdd5256fd06cf225b0146c23 | 335 | py | Python | drafts/vanish_explode_gradients/freeze_lower_layers.py | quanhua92/deeplearning_tutorials | 32fec492ca21c248dd1fb234db0a95a532df3469 | [
"MIT"
] | 1 | 2017-07-06T13:00:36.000Z | 2017-07-06T13:00:36.000Z | drafts/vanish_explode_gradients/freeze_lower_layers.py | quanhua92/deeplearning_tutorials | 32fec492ca21c248dd1fb234db0a95a532df3469 | [
"MIT"
] | null | null | null | drafts/vanish_explode_gradients/freeze_lower_layers.py | quanhua92/deeplearning_tutorials | 32fec492ca21c248dd1fb234db0a95a532df3469 | [
"MIT"
] | null | null | null | import tensorflow as tf
# We will train all layers except hidden[12]. Therefore, Layers 1 and 2 are frozen
train_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope="hidden[34]|outputs")
loss = None # Your loss is here
train_op = tf.train.GradientDescentOptimizer(learning_rate=0.01).minimize(loss, var_l... | 47.857143 | 100 | 0.79403 |
268c51ed50d4a8d0b92613024c9ad4e9c61f0c83 | 371 | py | Python | Statistics/PopulationMean.py | cadibemma/Statistical-Calculator | 4135487577af9e17b51317e72d7b07c09390f3f6 | [
"MIT"
] | 1 | 2020-06-27T22:14:11.000Z | 2020-06-27T22:14:11.000Z | Statistics/PopulationMean.py | cadibemma/Statistical-Calculator | 4135487577af9e17b51317e72d7b07c09390f3f6 | [
"MIT"
] | 28 | 2020-06-28T15:03:56.000Z | 2020-07-07T16:29:27.000Z | Statistics/PopulationMean.py | cadibemma/Statistical-Calculator | 4135487577af9e17b51317e72d7b07c09390f3f6 | [
"MIT"
] | 1 | 2020-06-27T14:33:20.000Z | 2020-06-27T14:33:20.000Z | # from Calculator.Addition import addition
from Calculator.Division import division
| 28.538462 | 51 | 0.684636 |
268d50e291169e0e5fc4a8c8469d8e4d8109bcce | 585 | py | Python | code/app/configuration/configuration.py | WesleyAdriann/discord_bot_dota | 8a2921ee548f2fc6066bf15e7aed6688037dd434 | [
"MIT"
] | null | null | null | code/app/configuration/configuration.py | WesleyAdriann/discord_bot_dota | 8a2921ee548f2fc6066bf15e7aed6688037dd434 | [
"MIT"
] | null | null | null | code/app/configuration/configuration.py | WesleyAdriann/discord_bot_dota | 8a2921ee548f2fc6066bf15e7aed6688037dd434 | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
| 34.411765 | 93 | 0.676923 |
268f327d0be7b5ea3314ce2aea07749bbbce81aa | 908 | py | Python | grpc_examples/sending_image/client.py | iwmq/coding_notes | 8e406124bcd2dbf3228e945701e952c3a12025c6 | [
"MIT"
] | null | null | null | grpc_examples/sending_image/client.py | iwmq/coding_notes | 8e406124bcd2dbf3228e945701e952c3a12025c6 | [
"MIT"
] | null | null | null | grpc_examples/sending_image/client.py | iwmq/coding_notes | 8e406124bcd2dbf3228e945701e952c3a12025c6 | [
"MIT"
] | null | null | null | """
The Python implementation of the GRPC image client.
Modified from grpc/examples/python/helloworld/greeting_client.py.
"""
from __future__ import print_function
import logging
from io import BytesIO
from PIL import Image
import grpc
import image_pb2
import image_pb2_grpc
if __name__ == '__main__':
logging... | 25.222222 | 78 | 0.718062 |
26931376c81cc95ed098daf30d28fcc4518c0ee9 | 1,842 | py | Python | bot/NFQ.py | cyber-meow/Robotic_state_repr_learning | d74fe372bea0b1cf42107450a8c3344a99279e91 | [
"MIT"
] | null | null | null | bot/NFQ.py | cyber-meow/Robotic_state_repr_learning | d74fe372bea0b1cf42107450a8c3344a99279e91 | [
"MIT"
] | null | null | null | bot/NFQ.py | cyber-meow/Robotic_state_repr_learning | d74fe372bea0b1cf42107450a8c3344a99279e91 | [
"MIT"
] | null | null | null |
import numpy as np
from sklearn.neural_network import MLPRegressor
from sklearn.exceptions import NotFittedError
from inter.interfaces import QLearning
from utility import set_all_args
| 29.238095 | 76 | 0.58089 |
26941f15190450548abb826ab5e7dae30c53951d | 1,062 | py | Python | database/chemprop/endpoint_acceptable_parameters.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | database/chemprop/endpoint_acceptable_parameters.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | database/chemprop/endpoint_acceptable_parameters.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | import datetime
from database.chemprop.endpoints import Endpoints
from database.chemprop.parameters import Parameters
from database.database_schemas import Schemas
from sqlalchemy import Column, Integer, String, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from database.base import Base
| 37.928571 | 80 | 0.785311 |
13fa947a98ef38378e4092dccc8d0f5bf6aced03 | 2,009 | py | Python | label_mapping.py | YoushaaMurhij/CenterPoint_Segmentation_Head | 0610c1da18994f494a8609d983ffa21d62d7d876 | [
"MIT"
] | null | null | null | label_mapping.py | YoushaaMurhij/CenterPoint_Segmentation_Head | 0610c1da18994f494a8609d983ffa21d62d7d876 | [
"MIT"
] | null | null | null | label_mapping.py | YoushaaMurhij/CenterPoint_Segmentation_Head | 0610c1da18994f494a8609d983ffa21d62d7d876 | [
"MIT"
] | null | null | null | label_name_mapping = {
0: "unlabeled",
1: "outlier",
10: "car",
11: "bicycle",
13: "bus",
15: "motorcycle",
16: "on-rails",
18: "truck",
20: "other-vehicle",
30: "person",
31: "bicyclist",
32: "motorcyclist",
40: "road",
44: "parking",
48: "sidewalk",
49: ... | 14.992537 | 31 | 0.442509 |
13fb266bbbe1b42018ffaaf4a8dc92668ab6d95f | 137 | py | Python | src/__init__.py | gitlabbin/zookeeper-kazoo-barrier-snippet | 2ab88fa3735b61dd9a94e0e0294e88a12c458ee3 | [
"MIT"
] | null | null | null | src/__init__.py | gitlabbin/zookeeper-kazoo-barrier-snippet | 2ab88fa3735b61dd9a94e0e0294e88a12c458ee3 | [
"MIT"
] | null | null | null | src/__init__.py | gitlabbin/zookeeper-kazoo-barrier-snippet | 2ab88fa3735b61dd9a94e0e0294e88a12c458ee3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import absolute_import
if __name__ == '__main__':
main() | 13.7 | 38 | 0.693431 |
13fca46c746999501de84f40b50ef047a4b2c610 | 295 | py | Python | archives/02/tootle/tests/test_state.py | asmodehn/caerbannog | 47bb1138190748041a4c0d02e522c0924a9af962 | [
"MIT"
] | 1 | 2019-01-22T20:57:45.000Z | 2019-01-22T20:57:45.000Z | archives/03/footle/tests/test_state.py | asmodehn/functional-python | 47bb1138190748041a4c0d02e522c0924a9af962 | [
"MIT"
] | 3 | 2019-03-14T17:33:39.000Z | 2019-03-14T18:09:42.000Z | archives/03/footle/tests/test_state.py | asmodehn/caerbannog | 47bb1138190748041a4c0d02e522c0924a9af962 | [
"MIT"
] | null | null | null | from state import TurtleState
# TODO : improve... but with useful things for illustrating the point...
| 15.526316 | 72 | 0.671186 |
13fe23236e035adcc7cad3112d9cc94bfc4481fa | 66,843 | py | Python | TransitionListener/transitionFinder.py | tasicarl/TransitionListerner_public | b231467e731f51521a85dd962cc08da07eca8226 | [
"MIT"
] | null | null | null | TransitionListener/transitionFinder.py | tasicarl/TransitionListerner_public | b231467e731f51521a85dd962cc08da07eca8226 | [
"MIT"
] | null | null | null | TransitionListener/transitionFinder.py | tasicarl/TransitionListerner_public | b231467e731f51521a85dd962cc08da07eca8226 | [
"MIT"
] | 1 | 2021-11-04T08:12:10.000Z | 2021-11-04T08:12:10.000Z | """
The transitionFinder module is used to calculate finite temperature
cosmological phase transitions: it contains functions to find the phase
structure as a function of temperature, and functions to find the transition
(bubble nucleation) temperature for each phase.
In contrast, :mod:`.pathDefomration` is useful for ... | 40.412938 | 222 | 0.585536 |
13fecb8c46693f75faf20fe0071fb2ddb03a2ed2 | 3,720 | py | Python | red-scare/instance-generators/make-words.py | Sebastian-ba/DoDoBing | 6edcc18de22ad76505d2c13ac6a207a2c274cc95 | [
"MIT"
] | 3 | 2017-09-25T11:59:20.000Z | 2017-11-20T12:55:21.000Z | red-scare/instance-generators/make-words.py | ITU-2019/DoDoBing | 6edcc18de22ad76505d2c13ac6a207a2c274cc95 | [
"MIT"
] | 6 | 2017-09-25T12:04:51.000Z | 2017-11-13T07:51:40.000Z | red-scare/instance-generators/make-words.py | ITU-2019/DoDoBing | 6edcc18de22ad76505d2c13ac6a207a2c274cc95 | [
"MIT"
] | null | null | null | import sys
import random
import networkx as nx
from write_nx_graph import write_graph
uncommons = set() # Everything except the 3300 common words in SGB
f = open ('data/words.txt','r')
words = []
for line in f:
if len(line)>0 and line[0] == '*': continue
word = line.strip()[:5]
words.append(wo... | 36.116505 | 109 | 0.470968 |
13ff78cbd83636d6edec29d58b60fdaa0be4d91a | 7,490 | py | Python | scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py | dongxuemin666/RNA-combine | 13e178aae585e16a9a8eda8151d0f34316de0475 | [
"Apache-2.0"
] | 7 | 2021-09-03T09:11:00.000Z | 2022-02-14T15:02:12.000Z | scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py | dongxuemin666/RNA-combine | 13e178aae585e16a9a8eda8151d0f34316de0475 | [
"Apache-2.0"
] | null | null | null | scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py | dongxuemin666/RNA-combine | 13e178aae585e16a9a8eda8151d0f34316de0475 | [
"Apache-2.0"
] | 2 | 2022-01-10T13:07:29.000Z | 2022-01-11T22:14:11.000Z | #!/usr/bin/env python2
#
# Strelka - Small Variant Caller
# Copyright (c) 2009-2018 Illumina, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# at your... | 41.153846 | 192 | 0.633111 |
cd0344b2d15b20e60fd3ab647958bb726ead940c | 2,750 | py | Python | qiskit_neko/backend_plugin.py | garrison/qiskit-neko | 50c6f0f6975425c7ff86417cedc094e984dc5d1c | [
"Apache-2.0"
] | 5 | 2022-01-11T16:07:48.000Z | 2022-02-01T22:05:34.000Z | qiskit_neko/backend_plugin.py | garrison/qiskit-neko | 50c6f0f6975425c7ff86417cedc094e984dc5d1c | [
"Apache-2.0"
] | 1 | 2022-02-03T14:10:57.000Z | 2022-02-03T14:10:57.000Z | qiskit_neko/backend_plugin.py | garrison/qiskit-neko | 50c6f0f6975425c7ff86417cedc094e984dc5d1c | [
"Apache-2.0"
] | 1 | 2022-03-07T15:06:21.000Z | 2022-03-07T15:06:21.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 36.184211 | 87 | 0.704 |