repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
defchen/LearningPython | 850,403,574,402 | 6c6d6adf8bb666987fe66f6fccbd517d0d402fd4 | 061fa1504d59e24bc379c4c91670f926aa516d07 | /learning/spider/spider_to_1024.py | 29d2d579f17ade1d2f38a0c8b5056246a91167ed | [] | no_license | https://github.com/defchen/LearningPython | a5189c643fee667e0705bce24e385bf7e4288ae5 | eaae52dd7aef3ba97b333b784f2fcf8b9ba5002b | refs/heads/master | 2021-01-22T10:46:34.776815 | 2017-02-15T07:53:31 | 2017-02-15T07:53:31 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
"""
@Author: liujinjia
@Date: 2017-02-15 13:52:42
@Project : LearningPython
@File : spider_to_1024.py
@Last Modified by: liujinjia
@Last Modified time: 2017-02-15 15:49:05
"""
import requests
from bs4 import BeautifulSoup
class Spider:
""" 1024 img spider """
start_url = 'http://www.dxlymm.com/thread080... | UTF-8 | Python | false | false | 2,033 | py | 3 | spider_to_1024.py | 3 | 0.596353 | 0.54066 | 0 | 67 | 29.268657 | 132 |
IsaacYAGI/python-ejercicios | 2,327,872,276,990 | 8498ba69e4cc5c5f480644ac20d878fb2a632bee | 50b69776bee7ad3a6068235c6c8981c06a17629a | /tema39-biblioteca-estandar-python/ejercicios-propuestos/ejercicio_propuestos1_tema39.py | aec8b8678f361a8deff93de03c4eb45b80a56732 | [] | no_license | https://github.com/IsaacYAGI/python-ejercicios | 665db9b6286d4840e8fa9c2d9b42b1389753b806 | fe8d9b96a7e947dd3fa992dfac39049fa68935c5 | refs/heads/master | 2021-06-04T11:03:53.466163 | 2017-07-29T03:17:15 | 2017-07-29T03:17:15 | 98,049,960 | 3 | 3 | null | false | 2021-02-24T05:07:15 | 2017-07-22T18:20:42 | 2017-07-22T20:33:05 | 2021-02-24T05:06:37 | 23 | 0 | 1 | 0 | Python | false | false | '''
Confeccionar un programa que genere un número aleatorio entre 1 y 100 y no se muestre.
El operador debe tratar de adivinar el número ingresado.
Cada vez que ingrese un número mostrar un mensaje "Gano" si es igual al generado o "El número aleatorio el mayor" o "El número aleatorio es menor".
Mostrar cuando gana el j... | UTF-8 | Python | false | false | 1,588 | py | 30 | ejercicio_propuestos1_tema39.py | 29 | 0.663717 | 0.656764 | 0 | 54 | 28.259259 | 147 |
jordanfalcao/tensorflow2-deeplearning | 7,756,710,980,553 | e491237e5c49d13e4363c4bcd0dd5fda87ca745f | 6c64e6c286db85d8f57cdaf79f2e3a6109209bb2 | /10-Deployment/01_my_basic_model.py | 3aecceebbd6e086c156880dfb63e41bee7287843 | [] | no_license | https://github.com/jordanfalcao/tensorflow2-deeplearning | 0f929a6429057c3da19e382245ab493e08b0c18a | 2d88d4cb888226cfda7ac4c163fceb452aba103a | refs/heads/main | 2023-07-10T17:58:09.864395 | 2021-08-19T23:29:00 | 2021-08-19T23:29:00 | 383,968,761 | 0 | 0 | null | false | 2021-08-05T22:44:38 | 2021-07-08T01:34:38 | 2021-08-04T19:42:33 | 2021-08-05T22:44:37 | 36,592 | 0 | 0 | 0 | Jupyter Notebook | false | false | # -*- coding: utf-8 -*-
"""01-My-Basic-Model.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1mwM8WLV4fZGkmgwC4EVh91Hfz2bqfUR9
# DEPLOYMENT
**Welcome to deployment section! In this section of the course, we will go through the entire deployment ... | UTF-8 | Python | false | false | 5,143 | py | 70 | 01_my_basic_model.py | 36 | 0.720537 | 0.706145 | 0 | 186 | 26.650538 | 636 |
takecian/ProgrammingStudyLog | 13,984,413,562,158 | 46099aa352116e9ec26130b601e61b559c60c7fe | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /AtCoder/typical_dp/006c.py | 2e87c3a9bfb5a07e9b900a274e0044898c002dc6 | [] | no_license | https://github.com/takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | false | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | 2022-07-04T14:37:10 | 2022-12-09T06:15:18 | 18,241 | 3 | 0 | 7 | Python | false | false | # https://beta.atcoder.jp/contests/abc006/tasks/abc006_3
# a + b + c = N
# 2a + 3b + 4c = M
N, M = map(int, input().split())
#
# ans_a = -1
# ans_a = -1
# ans_a = -1
#
# for a in range(N+1):
# rest = N - a
# for b in range(rest+1):
# c = rest - b
# if c < 0:
# break
# if 2 ... | UTF-8 | Python | false | false | 902 | py | 883 | 006c.py | 861 | 0.370288 | 0.310421 | 0 | 46 | 18.608696 | 64 |
sntzhd/sntzhd_back | 5,617,817,273,287 | a3b60d92805b9955365f9eccdc031a62f67b9ee2 | 8424f7ca88935497df49544e60e9ed48a6243e0e | /backend_api/indication/endpoints.py | b15d252109df992eaa34b10641e96eede5b7ae34 | [] | no_license | https://github.com/sntzhd/sntzhd_back | 622996d0ea917f4a24fbb74620fb130266979078 | 13128989bd53657d55c5154f56e56a5944f7b771 | refs/heads/master | 2023-05-24T09:25:05.120897 | 2021-06-13T11:16:58 | 2021-06-13T11:16:58 | 367,019,313 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from fastapi import Depends, FastAPI, HTTPException, APIRouter
from backend_api.db.sql_app import crud, database, models, schemas
from backend_api.db.sql_app.database import db_state_default
database.db.connect()
database.db.create_tables([models.Item])
database.db.close()
router = APIRouter()
async def reset_db_st... | UTF-8 | Python | false | false | 796 | py | 37 | endpoints.py | 32 | 0.69598 | 0.69598 | 0 | 31 | 24.709677 | 66 |
EmaSMach/info2020 | 12,970,801,279,010 | 8e13fbe8b71dccad22b43ca25bbdb368d8776d0a | fdb8d96d06cb7e74153a178fd17b449e89f44cd0 | /desafios/complementarios/condicionales/desafio16_descuento_camisas.py | 1183312cd82977baba879c036daddeb3c2dd341f | [] | no_license | https://github.com/EmaSMach/info2020 | c84916521d2dd21040419cb469c76c589b98be89 | a184dc376cb5e0b894a32d01681b71c824d993d3 | refs/heads/master | 2022-12-06T08:52:34.994922 | 2020-08-24T02:57:40 | 2020-08-24T02:57:40 | 273,131,222 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Desafío 16
# Hacer un programa que calcule el total a pagar por la compra de camisas.
# Si se compran tres camisas o mas se aplica un descuento del 20% sobre el
# total de la compra y si son menos de tres camisas un descuento del 10%.
cantidad_camnisas = int(input("Camisas Compradas: "))
precio_camisa = float(inp... | UTF-8 | Python | false | false | 528 | py | 67 | desafio16_descuento_camisas.py | 67 | 0.719165 | 0.6926 | 0 | 17 | 30 | 75 |
Colorpinpoint/pyspades-userscripts | 8,486,855,423,698 | 7d1293b78c5de507e828d9512a246869993c9615 | 87df4bda6d6da9b1ce0360328a372c54037e4264 | /zombies.py | c6ed0877c75ab263f9846bbed0182904367f4b8f | [] | no_license | https://github.com/Colorpinpoint/pyspades-userscripts | 58910c3ca3c3b31d5f9c8d76b5a55e97c083fd10 | e0c24f10312d9f72031723747c48fbd456e780bf | refs/heads/master | 2016-10-10T11:35:46.593848 | 2012-07-30T03:23:18 | 2012-07-30T03:23:18 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pyspades.server import orientation_data, grenade_packet, weapon_reload, set_tool
from pyspades.common import coordinates, Vertex3
from pyspades.world import Grenade
from commands import add, admin
from math import sin, floor, atan2
from pyspades.constants import *
from pyspades.server import block_action
from pysp... | UTF-8 | Python | false | false | 9,454 | py | 5 | zombies.py | 4 | 0.576687 | 0.568542 | 0 | 212 | 43.599057 | 120 |
newasu/FaceRecognitionPython | 11,957,188,952,317 | 2692af2249efecee8bd76aebecd71882c942d08e | db6ba700742584d71bd2f9f1d66627060235bb49 | /Scripts/testscript_11.py | c909039f83568b5e7a7f880f21920b507cd34489 | [] | no_license | https://github.com/newasu/FaceRecognitionPython | 27119747e53975a4c19fcf4b89682a4df7498606 | 536bcfeb852fd1c4f93b59636fbb6182b5e9996f | refs/heads/master | 2021-07-21T05:20:40.363671 | 2021-02-01T08:38:04 | 2021-02-01T08:38:04 | 237,888,319 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Add project path to sys
import sys
sys.path.append("./././")
# Import lib
import pandas as pd
import numpy as np
import os
import glob
import cv2
from mtcnn.mtcnn import MTCNN
import tensorflow as tf
from keras_vggface.vggface import VGGFace
from keras_vggface import utils
# Import my own lib
import others.utilit... | UTF-8 | Python | false | false | 4,195 | py | 55 | testscript_11.py | 52 | 0.626222 | 0.610727 | 0 | 129 | 31.51938 | 155 |
coreygirard/harbor | 1,374,389,557,538 | 8875bbcb2bd4c9233439d324a82aa844ff0ef69f | 7725ec91175db3e86edf0c5396f0b0dcc680ada1 | /harbor/src/outline.py | 21269e9c931db22a31f2a55923030bd0a170582a | [] | no_license | https://github.com/coreygirard/harbor | c4bf7829cd3cf5dca61f437321912c90a5a9988c | 6ab255562e200eb47f6262e48e0b55978d83fd59 | refs/heads/master | 2021-09-28T16:29:14.407065 | 2018-11-18T08:16:56 | 2018-11-18T08:16:56 | 113,496,312 | 8 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
'''harbor: readme/how/outline
{
OUTLINE
readme: README.md
badges
what
why
how
intro
outline
patterns
todo
PATTERNS
title:
# {title}
section:
### {section}
}[code]
{The outline section of the `.harbor` file must be preceded by `OUTLINE`.
This section specifies the names of the files to... | UTF-8 | Python | false | false | 3,148 | py | 19 | outline.py | 14 | 0.435197 | 0.431385 | 0 | 120 | 25.225 | 95 |
RiskIQ/msticpy | 10,488,310,144,212 | 6e074d0ba4b9b69fdaae8da88c6bbd6723070bd4 | 373cd41477438cc8826cd2a2f8689be84f486339 | /tests/datamodel/test_txt_df_magic.py | baf52606e5003c930809ff733806e64c924c83ef | [
"LicenseRef-scancode-generic-cla",
"LGPL-3.0-only",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"ISC",
"LGPL-2.0-or-later",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"LGPL-2.1-only",
"Unlicense",
"Python-2.0",
"LicenseRef-scancode-python-cwi",
"MIT",
"LGPL-2.1-or-later",
"GPL-2.... | permissive | https://github.com/RiskIQ/msticpy | cd42d601144299ec43631554076cc52cbb42dc98 | 44b1a390510f9be2772ec62cb95d0fc67dfc234b | refs/heads/master | 2023-08-27T00:11:30.098917 | 2021-06-17T22:54:29 | 2021-06-17T22:54:29 | 374,787,165 | 1 | 0 | MIT | true | 2021-09-16T19:05:43 | 2021-06-07T20:05:09 | 2021-07-29T16:04:07 | 2021-09-16T19:05:41 | 23,582 | 1 | 0 | 0 | Python | false | false | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Test Te... | UTF-8 | Python | false | false | 3,973 | py | 374 | test_txt_df_magic.py | 244 | 0.627234 | 0.590486 | 0 | 105 | 36.838095 | 85 |
dillan08/PAT | 781,684,062,325 | 08e87b9bdd29e7d1b764f9b07d92253075c6a074 | 5528290429e3e98be841dc8a8ea504aa657f0187 | /interesesCRUD/views.py | e8c553c895fefe3dd57a29fd08f1766b37a34d77 | [] | no_license | https://github.com/dillan08/PAT | ac8973c2ccd9efbd8692bce4173dfc3e307e5a5a | 39a75bc2a29bcaf7457c886989f291623dcd465d | refs/heads/development | 2020-09-15T01:44:55.021752 | 2016-10-21T13:29:08 | 2016-10-21T13:29:08 | 67,364,883 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from rest_framework import viewsets
from rest_framework.response import Response
from rest_framework import status
from interesesCRUD.serializer import InteresSerializer
from nucleo.models import Interes
# Create your views here.
class InteresVS(viewsets.ModelViewSet):
serializer_class = InteresSerializer
qu... | UTF-8 | Python | false | false | 701 | py | 37 | views.py | 36 | 0.758916 | 0.754636 | 0 | 19 | 35.842105 | 89 |
cccgp/Machine-Learning-Algorithms | 7,206,955,150,475 | 5f190bacf4f98973372152479e50f67ffa0e52eb | 105683b026cee117aa6d684b7450b3bb0d83094e | /hmm/tests/test_hmm.py | 41b174adbc4152748a5e2ef878a1ad9b1679cffa | [] | no_license | https://github.com/cccgp/Machine-Learning-Algorithms | 72debf53e89f4223ff45ebd3ca68587e39632d1e | ea1768ffc23f9ffb2d46172eb12c036f28ee09e6 | refs/heads/master | 2020-04-24T18:03:42.579276 | 2019-02-28T03:18:02 | 2019-02-28T03:18:02 | 172,168,321 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from hmm.hmm import Hmm
import time
def test_hmm():
A = np.array([[0.5, 0.2, 0.3], [0.3, 0.5, 0.2], [0.2, 0.3, 0.5]])
B = np.array([[0.5, 0.5], [0.4, 0.6], [0.7, 0.3]])
PI = np.array([0.2, 0.4, 0.4])
O = np.array([0, 1, 0])
model = Hmm()
model.forward(A, B, PI, ... | UTF-8 | Python | false | false | 452 | py | 17 | test_hmm.py | 16 | 0.462389 | 0.376106 | 0 | 20 | 20.6 | 69 |
Sergey-Laznenko/Stepik | 6,880,537,646,653 | c7c6b0dedae60d9d54c88dc2bd58a64d326b0447 | f7463bd0ab18b41611d5ac725f65d3db3a3a7a1d | /Generation Python - A Beginner's Course/13_Functions/13.4(return)/6.py | 935283dad1bd12b2d645cfb70defe4c8b60e6d5c | [] | no_license | https://github.com/Sergey-Laznenko/Stepik | f81c5aeead3fbd20628129d60ccce92b34724b97 | 5e1a1a76c3f6ed487cf8fc847913c890c8eac840 | refs/heads/master | 2022-12-28T19:01:48.670540 | 2020-10-18T15:23:58 | 2020-10-18T15:23:58 | 279,022,462 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Напишите функцию convert_to_miles(km), которая принимает в качестве аргумента расстояние в километрах
и возвращает расстояние в милях.
"""
def convert_to_miles(km):
return km * 0.6214
num = int(input())
print(convert_to_miles(num))
| UTF-8 | Python | false | false | 341 | py | 299 | 6.py | 298 | 0.729508 | 0.709016 | 0 | 12 | 19.333333 | 101 |
rnlascano/PyMonitorMQTT | 2,473,901,179,691 | 33f9b7682705b5204739d6236b545afc16525e48 | b74c7f4cb3a460566e43b476e19b080eb93cc85f | /Sensors/RamSensor/RamSensor.py | ec07b9e9756583e4bb3ed1e1daee7fa47954a560 | [] | no_license | https://github.com/rnlascano/PyMonitorMQTT | 37e87fe7748ef0476b5c425ea50f5169adcfe578 | c991a130bec808c16a0c02959cce379e3adef6fb | refs/heads/master | 2022-12-05T01:18:24.762188 | 2020-08-31T19:50:46 | 2020-08-31T19:50:46 | 291,809,554 | 0 | 0 | null | true | 2020-08-31T19:50:47 | 2020-08-31T19:46:04 | 2020-08-31T19:46:06 | 2020-08-31T19:50:46 | 817 | 0 | 0 | 0 | null | false | false | import psutil
from Sensors.Sensor import Sensor
TOPIC_RAM_PERCENTAGE = 'ram_used_percentage'
class RamSensor(Sensor):
def Initialize(self):
self.AddTopic(TOPIC_RAM_PERCENTAGE)
def Update(self):
self.SetTopicValue(TOPIC_RAM_PERCENTAGE, self.GetSystemRam())
def GetSystemRam(self):
... | UTF-8 | Python | false | false | 356 | py | 15 | RamSensor.py | 13 | 0.707865 | 0.705056 | 0 | 16 | 21.25 | 69 |
extreme-developers/ShoppingOnline | 6,176,163,013,801 | 02685eea4e054c6dd198f6cb3e56eb851c0da1c7 | 356bbc95f450735840b5be1fffabc67d300f607a | /apps/mobiles/migrations/0005_typicalspecification_wifi.py | 80b24616892e319a81710a0a5c55d4c6ed11bafb | [] | no_license | https://github.com/extreme-developers/ShoppingOnline | fb78be9ccd998e06143a890bbd68ba09b23c12f9 | d4606315f1c2ee29e30a1cb47ee5dac3a3d640ac | refs/heads/master | 2020-06-10T01:33:58.642777 | 2018-03-08T12:51:00 | 2018-03-08T12:57:32 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-10-17 09:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mobiles', '0004_auto_20171017_0843'),
]
operations = [
migrations.AddField(
... | UTF-8 | Python | false | false | 523 | py | 138 | 0005_typicalspecification_wifi.py | 92 | 0.596491 | 0.528265 | 0 | 20 | 24.65 | 103 |
yiziqi/vega | 249,108,142,850 | 5f4b681f5556dc4ae36768d60652d48500413922 | 6bd21a64c5fbeba1682c3e65221f6275a44c4cd5 | /vega/networks/__init__.py | 9059f749e06ac4778ff9da8bcc68db5b581fcf33 | [
"MIT"
] | permissive | https://github.com/yiziqi/vega | e68935475aa207f788c849e26c1e86db23a8a39b | 52b53582fe7df95d7aacc8425013fd18645d079f | refs/heads/master | 2023-08-28T20:29:16.393685 | 2021-11-18T07:28:22 | 2021-11-18T07:28:22 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | UTF-8 | Python | false | false | 1,821 | py | 217 | __init__.py | 197 | 0.660077 | 0.654585 | 0 | 50 | 35.42 | 89 |
harrylee0810/TIL-c9 | 6,107,443,514,638 | 9fb23a2fe750fdd680bfe31d8f9f1ed0d81858cf | bb193c259e7efd696921496b92ec45dfdf3fe5a1 | /django/auth/posts/admin.py | 014a0dc9c082b3bd771df69a635927566165c6c7 | [] | no_license | https://github.com/harrylee0810/TIL-c9 | 6f6526ac03690d29fb278f5c7903f90c254a510b | 4a811e20d9ae9df17cf41c33047e4c876cacc8a8 | refs/heads/master | 2020-04-17T17:18:15.261578 | 2019-02-12T08:59:29 | 2019-02-12T08:59:29 | 166,777,152 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import Post, Comment
#내용도 같이 보이게 admin 페이지를 커스터마이징 할 필요 있음
class PostAdmin(admin.ModelAdmin):
list_display = ('title','content','created_at','updated_at',)
# Register your models here.
admin.site.register(Post, PostAdmin)
admin.site.register(Comment) | UTF-8 | Python | false | false | 350 | py | 14 | admin.py | 11 | 0.753289 | 0.753289 | 0 | 12 | 24.416667 | 65 |
zjulyx/LeetCodePython | 2,276,332,684,502 | 7bd8021086d7ffb64013d31d27be4850b291826c | ccb288ffd441565d6dd40de7746325d51b7722d5 | /Medium/面试题 08.14. 布尔运算.py | b0e7861d10b0e5739a33b7aab4ab89b3dfc618d4 | [] | no_license | https://github.com/zjulyx/LeetCodePython | 1dfbe765859dc90a13d2db2629bbbbd025bea94c | 8953a8f7db215df169691b411e7eba47e5ac3632 | refs/heads/master | 2020-03-26T21:53:25.716728 | 2020-03-26T10:40:04 | 2020-03-26T10:40:04 | 145,415,356 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 给定一个布尔表达式和一个期望的布尔结果 result,布尔表达式由 0 (false)、1 (true)、& (AND)、 | (OR) 和 ^ (XOR) 符号组成。实现一个函数,算出有几种可使该表达式得出 result 值的括号方法。
# 示例 1:
# 输入: s = "1^0|0|1", result = 0
# 输出: 2
# 解释: 两种可能的括号方法是
# 1^(0|(0|1))
# 1^((0|0)|1)
# 示例 2:
# 输入: s = "0&0&0&1^1|0", result = 1
# 输出: 10
# 提示:
# 运算符的数量不超过 19 个
# 通过次... | UTF-8 | Python | false | false | 2,393 | py | 787 | 面试题 08.14. 布尔运算.py | 784 | 0.430269 | 0.37655 | 0 | 64 | 28.25 | 121 |
King-Of-Game/Python | 17,154,099,400,376 | 6a6001c98f3f8ee05081bd7e1c0074b0663510c6 | 36afa271f080459adf1014cd23f4be9f954dfee6 | /Example/date/生成日历.py | 356d0d16c377d1ae4ad432132a237cf0249658d6 | [] | no_license | https://github.com/King-Of-Game/Python | b69186a7574ce1c0b7097207cfe9a2eb38a90bc0 | 643b9fd22efd78f6679735f23432943a57b5f5bb | refs/heads/master | 2023-05-25T05:35:14.473114 | 2021-10-24T12:52:21 | 2021-10-24T12:52:21 | 151,251,434 | 3 | 0 | null | false | 2023-05-01T20:51:50 | 2018-10-02T12:34:04 | 2021-10-24T12:52:41 | 2023-05-01T20:51:50 | 90,134 | 1 | 0 | 3 | HTML | false | false | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# __author__ : YiXuan
# __date__ : 1/17/2021 1:15 PM
# __software__ : PyCharm
'''
使用内置模块:calendar 生成日历
'''
import calendar
# 生成日历
def generateCalender():
while True:
input_txt = input('***日历(输入q退出)***\n:')
if input_txt in ['q', 'Q']:
... | UTF-8 | Python | false | false | 701 | py | 250 | 生成日历.py | 213 | 0.497512 | 0.477612 | 0 | 34 | 16.735294 | 47 |
kate-melnykova/Scientific-functions | 163,208,790,147 | 6578105d74c3193e99407a39c6a97ee5a75c1cd5 | f965d7db19fb8e032fa1b7dc028522a47ba9307d | /calcs/main.py | abd5bd45206521e35f0de41ede9eeeb88f5b68b0 | [] | no_license | https://github.com/kate-melnykova/Scientific-functions | 8da976a45933ac062404ae1ef957c336388a302a | 697cedf42845efddd4d7ebc92d4237604df9014d | refs/heads/master | 2020-06-05T09:33:29.463310 | 2019-09-07T05:36:44 | 2019-09-07T05:36:44 | 192,393,110 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from time import time
from flask import Blueprint
from flask import flash
from flask import url_for
from flask import redirect
from flask import request
from flask import render_template
from flask_login import LoginManager, UserMixin, login_required,\
login_user, logout_user, current_user
import json
from redis i... | UTF-8 | Python | false | false | 3,763 | py | 23 | main.py | 12 | 0.623173 | 0.620516 | 0 | 125 | 29.112 | 97 |
zufishantaj/mycodebase | 2,259,152,830,516 | 43511dba102fa440f60d2ec79e4e14ae258f1db1 | 39fbaaa26779579ca1a6cfde95520425ae66ed89 | /Class2/second.py | ac26dd91d29f0fc2abf8f49822a93717278e1c8e | [] | no_license | https://github.com/zufishantaj/mycodebase | 02eb7d846a69bba2de1df27c068919a00c3f4d8c | 74cba0a315bd129eff86190fbf4421ba28ab9a92 | refs/heads/master | 2022-12-31T19:14:01.574948 | 2020-10-27T20:26:16 | 2020-10-27T20:26:16 | 268,316,063 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | print('Please enter your name')
x=input()
print("Hello, "+ x)
| UTF-8 | Python | false | false | 64 | py | 63 | second.py | 42 | 0.640625 | 0.640625 | 0 | 3 | 19.666667 | 31 |
tingleshao/leetcode | 704,374,681,878 | b6d9264107aaef6b00363629f1af6e7bda770158 | 02425f5fffe5f46961c3167c46302ef84c6e48a4 | /palindrome_partitioning/main.py | 0c58ebc78f553d215972a5b91fda0237e68af093 | [] | no_license | https://github.com/tingleshao/leetcode | 583718b5e58c3611f3db352d82017ba1d4482f18 | e2c589a1e81282e1c3deb6dfc5cace595acb841b | refs/heads/master | 2021-01-23T03:43:31.256959 | 2015-01-23T18:00:25 | 2015-01-23T18:00:25 | 29,308,438 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Solution:
# @param s, a string
# @return a list of lists of string
def partition(self, s):
result = []
output = []
self.DFS(s,0,output,result)
return result
def isPalindrome(self,s,start,end):
# print start
# print end
while start < end:
... | UTF-8 | Python | false | false | 880 | py | 148 | main.py | 147 | 0.506818 | 0.5 | 0 | 37 | 22.810811 | 45 |
ShangSky/YangShop | 9,637,906,647,953 | ab56abe248bf279b90c3100a06cc82f5ad7a1d7f | 6a96f3ed9cdffd3548845b44931e99345d7ba231 | /FoodShop/apps/goods/admin.py | cb1b08c1a72d35974b57a5c688dda21aaabe7f41 | [] | no_license | https://github.com/ShangSky/YangShop | ffca8c4d6e8468288dd6ce3e45e740e9cdc600ef | d2a7d0c1155fd7627d8bf7427bc72e9f2ee15fe9 | refs/heads/master | 2020-06-22T12:45:11.749754 | 2020-06-06T03:17:04 | 2020-06-06T03:17:04 | 197,717,146 | 2 | 1 | null | false | 2021-04-08T19:34:38 | 2019-07-19T06:43:01 | 2020-06-06T03:17:31 | 2021-04-08T19:34:35 | 2,954 | 2 | 1 | 13 | Python | false | false | from django.contrib import admin
from .models import Goods, GoodsBanner, Category, IndexBanner
admin.site.site_header = admin.site.site_title = admin.site.index_title = '阳哥商城后台管理'
@admin.register(Goods)
class GoodsAdmin(admin.ModelAdmin):
pass
@admin.register(GoodsBanner)
class GoodsBannerAdmin(admin.ModelAdmin... | UTF-8 | Python | false | false | 507 | py | 67 | admin.py | 43 | 0.775967 | 0.775967 | 0 | 23 | 20.304348 | 84 |
pmontu/indian_farming | 11,854,109,739,581 | 7d30e2a5dad381de4e7cf912d2ac11bad4e532b9 | c2a663f9892510c6069a23bc75710758476585b1 | /usermgmt/serializers.py | 787edacdbfc84ded032cfa0e75d014864579cd62 | [] | no_license | https://github.com/pmontu/indian_farming | 6e7f663520a8dcd162a7b654b61f86119c86da24 | bdf3270d70c9ca487d52fdba7a865830ecd31580 | refs/heads/master | 2021-01-21T05:23:04.678827 | 2017-02-27T05:44:34 | 2017-02-27T05:44:34 | 83,179,818 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib.auth.models import User
from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from .models import CustomUser
class UserSerializer(serializers.Serializer):
id = serializers.IntegerField(read_only=True)
username = serializers.CharField(validators=[Uniq... | UTF-8 | Python | false | false | 983 | py | 20 | serializers.py | 18 | 0.713123 | 0.710071 | 0 | 27 | 35.444444 | 95 |
verma7/dcos-cassandra-service-new | 15,513,421,897,305 | 1370135a4616813c94d1bd380fe2ab22c84b2766 | 8a421507d3f46eee694f91813dd39a403de57dd5 | /cli/dcos_cassandra/cassandra_utils.py | 9cd9aa10b675bfbfca574cd954ed0caba2cea3cd | [
"Apache-2.0"
] | permissive | https://github.com/verma7/dcos-cassandra-service-new | c3e557df8cec2583f07e1457c6aff016461d1054 | 0e02914513e191b7b78d14f2b0b2525a092363ff | refs/heads/master | 2020-04-05T00:35:26.189989 | 2016-10-05T00:32:19 | 2016-10-05T00:48:59 | 67,839,518 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #
# Copyright (C) 2015 Mesosphere, 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... | UTF-8 | Python | false | false | 1,641 | py | 146 | cassandra_utils.py | 127 | 0.648995 | 0.642291 | 0 | 62 | 25.467742 | 74 |
vilmarferreira/recibo_1 | 2,113,123,918,256 | 135a106ccb8e97cdb998bcf048b863a09f52d856 | e5b8d3fd12423648c9f0675d3b89b75fcd5a560b | /core/form.py | 887f5137369e4a98f4e024537b351e1ca8d6918f | [] | no_license | https://github.com/vilmarferreira/recibo_1 | 834cca4e64121f87a05ef976920ce5ffe2a36890 | 1fab47df4408609063bd40f563f1e7bc1e32c589 | refs/heads/master | 2020-04-13T17:11:22.393386 | 2018-12-27T22:26:47 | 2018-12-27T22:26:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django import forms
from dal import autocomplete
from core.models import Receipt, Person
class ReceiptForm(forms.ModelForm):
person = forms.ModelChoiceField(queryset=Person.objects.all(),widget=autocomplete.ModelSelect2(url='person-autocomplete'))
class Meta:
model=Receipt
exclude= () | UTF-8 | Python | false | false | 317 | py | 9 | form.py | 4 | 0.753943 | 0.750789 | 0 | 11 | 27.909091 | 126 |
parmarjh/graph-analytics-course | 8,315,056,726,242 | 77f5b9fd6ef6bbc943dda37c5369a3f6182a39b7 | bfccc163836369bb5e4b8a180ae0bda14bbdf6c2 | /lecture-4/flows/flows.py | c086e520ad56c4a27c0f948b3c5b162c2b267407 | [] | no_license | https://github.com/parmarjh/graph-analytics-course | dcec11eeb1d197b65a22f4e5cbadf509682d3912 | 0f04b0b743817f2f465e861938d055e644eefaeb | refs/heads/master | 2023-08-15T15:59:49.099725 | 2021-09-28T03:54:52 | 2021-09-28T03:54:52 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import networkx as nx
import matplotlib.pyplot as plt
import pprint as pp
G = nx.read_edgelist('./graph-flow.txt', nodetype=str,
data=(('capacity', int),), create_using=nx.DiGraph())
pos = nx.spring_layout(G)
nx.draw(G, pos, with_labels=True, node_color="#f86e00")
flow = nx.maximum_flow(G, _s=... | UTF-8 | Python | false | false | 467 | py | 87 | flows.py | 51 | 0.640257 | 0.631692 | 0 | 19 | 23.578947 | 74 |
Pycord-Development/pycord | 16,363,825,413,142 | 709a8ca05db1f5d451dc6888781042788a38536b | 681d42ab5a237b580436eab6271768aefee3048e | /discord/types/__init__.py | 79e1e68bb7fbb6d1e91c2b0a2303a2f13c701158 | [
"MIT"
] | permissive | https://github.com/Pycord-Development/pycord | d2555f7e08f0eea29653ee1e4f6fb7847a859500 | a3bd2a04fbd7ac0cec5a119cc9b360965aaaab8e | refs/heads/master | 2023-08-29T07:10:24.810548 | 2023-08-29T01:37:00 | 2023-08-29T01:37:00 | 400,837,389 | 2,960 | 941 | MIT | false | 2023-09-11T20:15:37 | 2021-08-28T16:18:37 | 2023-09-11T14:24:43 | 2023-09-11T20:15:36 | 15,833 | 2,540 | 433 | 93 | Python | false | false | """
discord.types
~~~~~~~~~~~~~~
Typings for the Discord API
:copyright: (c) 2015-2021 Rapptz & (c) 2021-present Pycord Development
:license: MIT, see LICENSE for more details.
"""
| UTF-8 | Python | false | false | 183 | py | 126 | __init__.py | 79 | 0.666667 | 0.601093 | 0 | 9 | 19.333333 | 70 |
mygit2014/vulnexipy | 1,889,785,645,290 | c3685fe893985e37b544d2340587e1a515291041 | 5508a6634049bc83627f65337c1070c8f4c6d2e0 | /cve_2015_1397.py | f7b9742bd9b0324875c13ebb2095dca1ab1425c1 | [] | no_license | https://github.com/mygit2014/vulnexipy | 6163e5e77724a4be5babf8afd76f4be5143c5845 | c7dc0d4dabf48893baf0dc5c7b614cc62b5016e8 | refs/heads/master | 2023-04-21T10:45:56.438431 | 2021-05-10T10:38:26 | 2021-05-10T10:38:26 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import sys
import base64
import argparse
from log_colors import *
# SQL injection vulnerability in the getCsvFile
# function in the Mage_Adminhtml_Block_Widget_Grid
# class in Magento Community Edition (CE) 1.9.1.0
# and Enterprise Edition (EE) 1.14.1.0
# allows remote administrators to execute arbit... | UTF-8 | Python | false | false | 3,042 | py | 87 | cve_2015_1397.py | 83 | 0.60092 | 0.583498 | 0 | 64 | 46.515625 | 114 |
georgecai904/directconnect | 2,173,253,453,747 | f4ab26c97aa5f8e894145f10f9bb97de079ffc3d | d7d8a8b8ba443538db5465f21e1f0771c5f77d2e | /core/tests/test_sign_up.py | 8e51b7f5f008ca331d55dd4df1b7e67bba7bffa1 | [] | no_license | https://github.com/georgecai904/directconnect | cbe8462c166394d47d830633b2f460c4ec1b552b | 30c59ea4beda330cca313e9274261cc2e8bc5cde | refs/heads/master | 2021-04-19T00:57:34.798017 | 2017-07-12T14:40:20 | 2017-07-12T14:40:20 | 94,593,817 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.test import TestCase
from core.forms import NewUserForm
from django.contrib.auth.models import User
class AuthTest(TestCase):
def test_sign_up(self):
data = {
"username": "georgecai904",
"password": "testpassword",
"email": "mail@georgecai.com"
}
... | UTF-8 | Python | false | false | 400 | py | 55 | test_sign_up.py | 35 | 0.6225 | 0.6125 | 0 | 14 | 27.571429 | 49 |
AboveColin/Webtechnologie_Project | 2,130,303,791,987 | 79cbbdec93ca9c1682af74834effe370c4cd51ff | 27aeefb14007ba389d937dfbe79eae09226db056 | /stage/forms.py | e3e40f452d0084470868a0f50b1e75f2d0e4e3c6 | [] | no_license | https://github.com/AboveColin/Webtechnologie_Project | bf97041c6d397e9acd19d627c05c271cf3766e48 | ef1462c1243aa212438c77ad04b3479daa18b230 | refs/heads/main | 2023-07-18T23:11:49.809803 | 2021-09-20T09:02:16 | 2021-09-20T09:02:16 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, SelectField
from wtforms.validators import data_required, Email, EqualTo
from wtforms import ValidationError
from stage.models import User, Begeleider
# A form where a user can login using a submit button, his username a... | UTF-8 | Python | false | false | 1,201 | py | 19 | forms.py | 7 | 0.741049 | 0.741049 | 0 | 22 | 52.409091 | 140 |
decayboy/Lean.Algorithms | 11,106,785,430,372 | a1b646f2cd56db07f4df24173cdfed201097f7b6 | 3aa19b823a911968725605dd6d2019b92e96a477 | /Python/GoogleTrends.py | c3e376b65ae40d03381f8ee6168b701dfb4db63e | [
"Apache-2.0"
] | permissive | https://github.com/decayboy/Lean.Algorithms | 884c08dd1a23a4bebc75df1aa7bf298c85248126 | 0109addf768fea511ffb05ef164653797d097245 | refs/heads/master | 2020-04-15T02:54:34.925488 | 2019-01-20T06:25:29 | 2019-01-20T06:25:29 | 164,328,522 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import numpy as np
from datetime import timedelta
### <summary>
### Utilizes the monthly Google trends search term "debt" to anticipate potential price movements.
### Contrast other search terms and assets to produce interesting results.
### </summary>
class BasicTemplateAlgorithm(QCAlgorithm):
... | UTF-8 | Python | false | false | 3,141 | py | 2 | GoogleTrends.py | 1 | 0.610315 | 0.590258 | 0 | 68 | 45.191176 | 151 |
marcenavuc/battle_city | 13,700,945,710,554 | 9ef0f7027bed2c91dfbe9fe9bddfd8a3b6cc9c14 | 17dfa7fc4e5a37fb2ef8d67126c2a633a1210a9e | /battle_city/game_objects/tanks.py | f0f21e9c414cad894fc04b86397efefb5d8e3931 | [] | no_license | https://github.com/marcenavuc/battle_city | c404c528ebb3f273f1aa2d4ac91acf8891fb52da | 75c164d73b6d060fbb4a052fad41fcfafc5687f1 | refs/heads/main | 2023-02-10T00:31:57.629343 | 2020-12-30T15:38:18 | 2020-12-30T15:38:18 | 305,317,156 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import logging
import random
import time
import pygame
from battle_city.config import RESPAWN_TIME
from battle_city.game_objects import Missile
from battle_city.game_objects.game_object import Directions, Movable,\
GameObject
logger = logging.getLogger(__name__)
class Tank(Movable):
image = "media/images/t... | UTF-8 | Python | false | false | 3,806 | py | 35 | tanks.py | 26 | 0.602995 | 0.595901 | 0 | 119 | 30.983193 | 79 |
JMHOO/planet-insight | 4,629,974,775,692 | 5e98067d0ebf3f4aa3ecd7ba12eb83f53db5a6a0 | 79659f16658fadd105295497c84193b8017eb68a | /package/insight/agent.py | 5042c0db4bd7853f0e484860558230ad6706fb34 | [] | no_license | https://github.com/JMHOO/planet-insight | 13a0652849f1c2b08d8a9b7968c24a4085b04ff8 | d2a40459b3d2bdd5bfedb8f3707e19bc5e2e7678 | refs/heads/master | 2021-09-11T00:54:29.128438 | 2018-04-05T05:09:32 | 2018-04-05T05:09:32 | 103,308,427 | 3 | 2 | null | false | 2018-04-05T05:09:33 | 2017-09-12T18:46:05 | 2018-01-12T01:43:54 | 2018-04-05T05:09:33 | 436 | 2 | 1 | 1 | JavaScript | false | null | from .storage import DBJobInstance, DBWorker
import docker
import platform
import threading
from random import randint
from time import sleep
from simple_settings import LazySettings
import os
settings = LazySettings('insight.applications.settings')
class LocalDockerRunner():
def __init__(self, cli, gpu_count, ... | UTF-8 | Python | false | false | 5,755 | py | 61 | agent.py | 49 | 0.550304 | 0.548045 | 0 | 167 | 33.45509 | 127 |
Bibek-Bhandari/argument-mining-assignment | 19,430,432,073,296 | 536d6d45526ee94b3f6b9bb8a0c1a847b25af466 | 6329df89021c2adf5f12f44a503bb415db58f9b7 | /argument-mining-assignment/code/evaluation.py | 6a06b7c21569e9cc38f54c4d79aa44788c8d3e7e | [] | no_license | https://github.com/Bibek-Bhandari/argument-mining-assignment | dae14e26863f317f156157a332e9c81f69db727d | 13587b43cde29f3e5d0565b49b831a1fb8ace3c8 | refs/heads/master | 2022-10-17T10:54:56.720217 | 2020-05-29T17:16:11 | 2020-05-29T17:16:11 | 266,842,567 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import argparse
from sklearn.metrics import f1_score
def evaluation(path_to_ground_truth_bio, path_to_pred_bio):
'''
Computing F1-score for each of the major-claim, claim, premises, and non-argumentative classes
'''
gt_bio = [x.split('\t') for x in open(path_to_ground_truth_bio).readlines() if x !='... | UTF-8 | Python | false | false | 1,015 | py | 6 | evaluation.py | 5 | 0.649261 | 0.642365 | 0 | 31 | 31.741935 | 118 |
pandrian75/pastiche | 14,645,838,516,754 | 35149e7df278e3a0dcebb329d51dc33ebd6490b2 | f3fd212093c372ba4da2ef3644eb65bf454616ba | /populate_db.py | 3f4be66a3e394b0739de4abf622aa7a3e1e565b0 | [] | no_license | https://github.com/pandrian75/pastiche | 00ffb57fc5bba97aa190a44f59257b124e18a5fa | 0422dd6fed6f7d5660256be602eade00b0f35d53 | refs/heads/master | 2016-08-09T14:33:17.180641 | 2008-07-31T07:53:16 | 2008-07-31T07:53:16 | 50,779,665 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
import pastiche
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'pastiche.settings'
from datetime import datetime
from dada.models import Item, Event, Link, Location, Note, Tag, Task
from django.contrib.auth.models import User
def empty_table(table):
for o in table.objects.all():
... | UTF-8 | Python | false | false | 4,582 | py | 14 | populate_db.py | 6 | 0.639241 | 0.579005 | 0 | 228 | 18.096491 | 93 |
fran757/tdlog | 2,516,850,876,334 | 21cab59ab42aacf10e899abbcccb6f43b42c65e0 | 477f1c24269b0c6f4a2ae58569bcb2d21b07a2d2 | /test_game.py | 5653216af8cf36705011d864c66c3d66144e4d66 | [] | no_license | https://github.com/fran757/tdlog | 9a9f368ad3fe1e798f3a2770e03f529e5fa7a5b4 | 74f7b2251de916f3dc870aacd7d701e599004c5d | refs/heads/master | 2022-04-06T02:25:18.065547 | 2020-02-04T10:21:20 | 2020-02-04T10:21:20 | 218,588,437 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import unittest
from model import Grid
from control import Game
def fixture_name(name):
"""return appropriate filename"""
return os.getcwd() + "/fixtures/" + name + ".txt"
def build_fixture(name):
"""build game from fixture name"""
return Game(Grid(fixture_name(name)), None)
def extract_... | UTF-8 | Python | false | false | 1,648 | py | 16 | test_game.py | 15 | 0.621966 | 0.620146 | 0 | 64 | 24.75 | 87 |
kanzure/pokecrystal-demo | 386,547,101,625 | b1a1a3a31aa41d6534dd4c81b67284836e479d71 | 77aef3246236c192850e419eb04c6fae0a7697ba | /extras/tests.py | 61f46d6cb8d6f8f859f6b5682bd2c0dc608efe5e | [] | no_license | https://github.com/kanzure/pokecrystal-demo | ce61540f8d0fff4ddd253d15f9718201ef838b23 | 9ec5b0d12b1b3c0e164cb41cca8442989b3ada66 | refs/heads/master | 2016-09-06T21:34:58.619212 | 2013-05-16T13:58:10 | 2013-05-16T13:58:10 | 9,989,839 | 3 | 2 | null | false | 2013-05-16T13:58:11 | 2013-05-10T20:33:17 | 2013-05-16T13:58:10 | 2013-05-16T13:58:10 | 404 | null | 7 | 5 | Assembly | null | null | # -*- coding: utf-8 -*-
import os
import sys
import inspect
from copy import copy
import hashlib
import random
import json
from interval_map import IntervalMap
from chars import chars, jap_chars
from romstr import (
RomStr,
AsmList,
)
from item_constants import (
item_constants,
find_item_label_by_i... | UTF-8 | Python | false | false | 37,500 | py | 147 | tests.py | 8 | 0.613095 | 0.585065 | 0 | 1,014 | 35.976331 | 95 |
naveenpras/listapi | 16,363,825,397,813 | 5e6b9fcacf6e5eb10a881358691f786ecefa8c95 | a8b3877bec390809d446e66ce130e1907b3998f5 | /apiservice/utils.py | a6c22e1532d2ca3a045cae1da97ad7990276d53e | [] | no_license | https://github.com/naveenpras/listapi | d42dbcfb459bbabe7e23e2dfd1ea8c9b76c9f31e | d4c439468e7c3329baf6879040a9fb34824bc7f3 | refs/heads/master | 2015-08-11T23:55:16.517765 | 2015-06-24T05:56:09 | 2015-06-24T05:56:09 | 20,580,908 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from elasticutils import S
import logging
logger = logging.getLogger(__name__)
class Utils():
def searchItemAndGetCategory(self,item):
logger.debug("Finding Category for:" + item)
#searchstring = item.lower()
searchstring = item
logger.debug("Getting category using match for:" + se... | UTF-8 | Python | false | false | 1,608 | py | 28 | utils.py | 17 | 0.536692 | 0.530473 | 0 | 37 | 42.486486 | 97 |
ssurkovs/planerka | 15,479,062,143,907 | f48b644b8025c6ab106dcc3c6eea0c3158924d77 | 56429de82e9539f6165d3ead31b0762e7bd7dd12 | /views/login.py | 681c7c2f21714af0cf26a679b8fea36a16c6429f | [] | no_license | https://github.com/ssurkovs/planerka | 9f2ce82ac3e772764b2bd6b600d83930db516a78 | 8d9abe46b62ba96687e0dddcd9b517504d210970 | refs/heads/master | 2018-10-28T20:09:29.117364 | 2018-10-25T16:08:05 | 2018-10-25T16:08:05 | 112,482,528 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from hashlib import md5
from flask import request, session
from flask_login import LoginManager, login_user, logout_user, current_user
import pickle
from datetime import timedelta
from uuid import uuid4
from redis import Redis
from werkzeug.datastructures import CallbackDict
from flask.sessio... | UTF-8 | Python | false | false | 4,386 | py | 45 | login.py | 27 | 0.624271 | 0.619837 | 0 | 133 | 31.218045 | 102 |
OPSRv/backend-mangust | 4,801,773,443,131 | ace675d8cf9fc162ba3bf2f0379d84a623f0f7cc | 1bfdd8eb9857468ad44a522c5b81409f6e4e14e9 | /advertising/urls.py | 792a3f69bf35b478ec46bad4e5f7d208ac3dda44 | [] | no_license | https://github.com/OPSRv/backend-mangust | 75238af8e807b253971b1bee3f87d533fc7cbef3 | 7b40518be0b0c0bbed1da148f7ced18fe05e7be7 | refs/heads/main | 2023-08-14T00:28:49.449284 | 2021-10-14T01:18:34 | 2021-10-14T01:18:34 | 415,135,478 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from . import views
urlpatterns = [
path('api/advertising/', views.AdvertisingList.as_view()),
]
urlpatterns = format_suffix_patterns(urlpatterns)
| UTF-8 | Python | false | false | 244 | py | 33 | urls.py | 33 | 0.778689 | 0.778689 | 0 | 9 | 26.111111 | 62 |
CIMAC-CIDC/cidc-api-gae | 8,753,143,388,037 | 7406f78845076c45e53f7f6f4d45f59e119b19e0 | 7a8c854cb3c4bfe58ecb0a98a4b96e9fa0ee84f3 | /tests/models/test_csms_api.py | 86207f7248a5d2e2995898f0905b0ea9e1f02005 | [
"MIT"
] | permissive | https://github.com/CIMAC-CIDC/cidc-api-gae | 026eeaa5775817538e0adec4d26d31b7f1d944cf | 0c3b02ffd69473bb4b6f81343c1ff3c4d4486031 | refs/heads/master | 2023-08-08T13:24:42.778281 | 2023-07-27T02:32:40 | 2023-07-27T02:32:40 | 194,138,223 | 2 | 6 | MIT | false | 2023-08-16T18:15:01 | 2019-06-27T17:38:32 | 2023-02-21T13:13:07 | 2023-08-16T18:14:59 | 2,978 | 1 | 2 | 1 | Python | false | false | import os
os.environ["TZ"] = "UTC"
from copy import deepcopy
import pytest
from cidc_api.models import TrialMetadata
from cidc_api.models.csms_api import *
from cidc_api.config.settings import PRISM_ENCRYPT_KEY
from cidc_schemas.prism.core import (
_check_encrypt_init,
_encrypt,
set_prism_encrypt_key,
)
... | UTF-8 | Python | false | false | 17,910 | py | 126 | test_csms_api.py | 114 | 0.492295 | 0.490061 | 0 | 458 | 38.104803 | 88 |
Rus159/muiv-timetable-bot | 18,305,150,623,873 | 56f2187b8da4e1be73fadf7fcd1ade1b0a7c6afc | 1271d05adf77d535e382c93e6cd75cbce200fee2 | /excel.py | ec56c1e90b1e3e31e75cebf2d6be8a2ca7818543 | [] | no_license | https://github.com/Rus159/muiv-timetable-bot | 796c6f06e76f31388e396ca3acef797b5c604cc4 | 4645c2c989e6eaee47bd39d959eadf883655530d | refs/heads/master | 2023-01-19T02:43:31.678452 | 2020-11-29T17:16:35 | 2020-11-29T17:16:35 | 313,402,101 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Unnamed 0: Дни недели
Unnamed 1: Дата
Unnamed 2: Время
Unnamed [3-n]: [1-(n-2)] группа
'''
import pandas as pd
import parse_link
import urllib
import logging
logging.basicConfig(format="%(levelname)s %(asctime)s %(message)s")
urllib.request
url = parse_link.parse()
filename = list(url.split('iblock/'))[1][4:]
urll... | UTF-8 | Python | false | false | 2,353 | py | 5 | excel.py | 4 | 0.623845 | 0.607567 | 0 | 78 | 28.153846 | 111 |
zedaster/ImaevIntensive | 10,282,151,722,780 | bc6c7fc6f6879547d26cffac1a37d67c0ad997f7 | 2825bf6479e08dfead428ff9f29f28d5c23d953e | /16/16_11.py | 2f18132bfc5ecd68500598c256eabc34eb66d1cf | [] | no_license | https://github.com/zedaster/ImaevIntensive | bc459187dace7946d8ad75a04e058748134aeac4 | b91760fa23f25ce2d19778781f35416c177ab881 | refs/heads/main | 2023-06-22T00:24:47.039208 | 2021-07-20T10:40:54 | 2021-07-20T10:40:54 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import functools
@functools.lru_cache()
def F(n, m):
if m == 0:
return n
else:
return F(m, n%m)
count = 0
for n in range(100, 1000+1):
for d in range(100, 1000 + 1):
| UTF-8 | Python | false | false | 199 | py | 177 | 16_11.py | 157 | 0.537688 | 0.447236 | 0 | 14 | 13.142857 | 34 |
dikatok/udacity-aind-term1 | 5,016,521,840,808 | 2764c978e55549e8affbeb820eade28b834fe879 | f36f112a6790159ed7cdc5de1a525cd6d64584bc | /P1-Sudoku/solution.py | 53b465e160b6691792022117850f1def16a0b43a | [] | no_license | https://github.com/dikatok/udacity-aind-term1 | 86f91e1c00032ce9109f084caa46f01a542439bd | c53ea60f9f28165935b6cbdf226da18b0d0f462f | refs/heads/master | 2021-07-01T08:31:13.299267 | 2017-09-20T07:51:38 | 2017-09-20T07:51:38 | 102,087,648 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
def cross(A, B):
"Cross product of elements in A and elements in B."
return [a + b for a in A for b in B]
rows = 'ABCDEFGHI'
cols = '123456789'
# list all positions in sudoku grid
boxes = cross(rows, cols)
# list every row units (from top to bottom)
row_units = [cross(r, cols) for r in rows]
# list every c... | UTF-8 | Python | false | false | 7,767 | py | 4 | solution.py | 1 | 0.615682 | 0.600103 | 0 | 214 | 35.285047 | 114 |
CodingClubBITSP/Qrious-19 | 7,352,984,042,712 | e7691cedfca2af6fdbd9ade309d7a30a4a87deaa | 0f6e2a896d91d10b1266e1b4c8721961a7ece6f2 | /myapp/urls.py | 1b5b9324ded5e58aff64194af3a8ca8bed202104 | [] | no_license | https://github.com/CodingClubBITSP/Qrious-19 | 7762781f3b1db1ff7cffb4a388ead9da021cbe41 | bc7009520b1402c16b46186fae1a03dee52d3f93 | refs/heads/master | 2022-12-23T13:49:09.432737 | 2020-03-11T04:59:50 | 2020-03-11T04:59:50 | 163,874,632 | 1 | 9 | null | false | 2022-12-08T01:42:38 | 2019-01-02T18:19:45 | 2022-10-05T13:06:04 | 2022-12-08T01:42:37 | 13,558 | 1 | 10 | 6 | JavaScript | false | false | from django.conf.urls import url
from myapp.views import home, roulette, loading, l_out, quiz, userdat, intro, getquestion, leaderboard_view, realitychange, postanswer
urlpatterns = [
url(r'^$', home, name='myapp-home'),
url(r'^loading$', loading, name='myapp-load'),
url(r'^roulette$', roulette, name='myap... | UTF-8 | Python | false | false | 916 | py | 13 | urls.py | 5 | 0.657205 | 0.657205 | 0 | 18 | 49.888889 | 134 |
candyer/exercises | 16,776,142,259,279 | 733aec84608ce9a18c9d6bdd6e344d68f10005b8 | 8beb54fd35b16fc2f7fd8a503b5cac3c5d4cbf24 | /Dynamic Programming/min_coins.py | e67d02ec1a6f005e79fadec67a4aabe5a72a49ed | [] | no_license | https://github.com/candyer/exercises | e4797ad7117be0b077d6fbf41419cc2a0e9e5645 | f72eba251ed2d8fd2dfb09277ec000c75c3c8fb7 | refs/heads/master | 2021-07-12T19:42:58.141564 | 2021-03-28T22:30:46 | 2021-03-28T22:30:46 | 41,252,522 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# Given a list of N coins, their values (V1, V2, ... , VN), and the total sum S.
# Find the minimum number of coins the sum of which is S (we can use as many coins of one type as
# we want), or return -1 that it's not possible to select coins in such a way that they sum up to S.
def solve(coins, target):
dp = [-1]... | UTF-8 | Python | false | false | 646 | py | 50 | min_coins.py | 50 | 0.591331 | 0.534056 | 0 | 18 | 34.833333 | 100 |
FCeoni/python_fundamentals | 4,664,334,486,513 | d7e7cf0d445d7a8bec88eb66900ff4de19f19a7e | 9c879aeed2205dfb3a7a91b2acfa93379b0a3831 | /Exercicios/4_GAME/personagem..py | b77c4b34e1674616de4d40e62df9559d050e257f | [] | no_license | https://github.com/FCeoni/python_fundamentals | 48d1db2104dc0a2acc69298ba0f582b1c8a13b54 | 568949bf899fbf73d917bab392ca8f71a952b2d2 | refs/heads/master | 2021-03-08T01:34:25.802973 | 2020-03-13T20:57:10 | 2020-03-13T20:57:10 | 246,031,426 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from random import randint
class Personagem:
def __init__(self):
self.hp = 100
self.xp = 0
self.mp = 100
self.nivel = 1
self.esquiva = 0
def subirNivel(self):
if self.xp > (99 * self.nivel):
self.nivel += 1
print("... | UTF-8 | Python | false | false | 1,221 | py | 22 | personagem..py | 17 | 0.496721 | 0.47377 | 0 | 49 | 23.877551 | 53 |
danieltrujillo003/myth-girls | 6,373,731,475,118 | 92b47bdd3b352c9c40408a9ce117c381d1ac3fef | 29d038e0f73a30e69d02b54b860f980162702f47 | /chicas/models.py | d45ee47e5e4cc1474a85a027c39b83b56e63b6a4 | [] | no_license | https://github.com/danieltrujillo003/myth-girls | 862e6bfb7e1b3617df964d5c95b441886dc0bb34 | 69dd4e7fb33334aa63204a403ab70ae8e20f1b86 | refs/heads/master | 2021-01-12T12:31:35.454662 | 2016-11-01T12:28:29 | 2016-11-01T12:28:29 | 72,534,622 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
#from django.contrib.auth.models import User
class new_entry(models.Model):
SPACES = (
('1', 'modal1'),
('2', 'modal2'),
('3', 'modal3'),
('4', 'modal4'),
)
name = models.CharField(max_length=128)
entry = models.TextField(max_length=128)
... | UTF-8 | Python | false | false | 425 | py | 11 | models.py | 9 | 0.595294 | 0.56 | 0 | 18 | 22.611111 | 58 |
frreiss/Refactored-MAX-Object-Detector | 5,377,299,079,261 | 97d0f165b1428f13d7449e3a39a8037b0d45afd9 | 7900f61eefb06de9636d7aabb31dfb501b3a791e | /tensorflowjs/convert.py | fec7352351306de6abf0df2650b753d2e380bc89 | [
"Apache-2.0"
] | permissive | https://github.com/frreiss/Refactored-MAX-Object-Detector | 9c02f7a661f2ca960b8ab574a55a5c9950f381b2 | eed1aa3fa1aec8dc0a2821006263379788951868 | refs/heads/master | 2022-07-09T03:06:20.251056 | 2019-06-14T17:50:59 | 2019-06-14T17:50:59 | 173,006,626 | 2 | 2 | Apache-2.0 | false | 2022-06-25T01:00:19 | 2019-02-27T23:31:05 | 2019-06-14T17:51:03 | 2022-06-25T01:00:16 | 99 | 1 | 2 | 5 | Python | false | false | # import tensorflow as tf
import tensorflowjs as tfjs
from tensorflowjs.converters import tf_saved_model_conversion_pb
saved_model_path = "../saved_model_js"
output_path = "web_model"
def convert_to_tfjs(input_dir, output_dir):
# Reference: https://github.com/tensorflow/tfjs-converter/blob/0.8.x/python/tensorflow... | UTF-8 | Python | false | false | 784 | py | 18 | convert.py | 17 | 0.69898 | 0.696429 | 0 | 25 | 30.4 | 116 |
Desiiii/Kumiko | 6,158,983,142,997 | c9bf4489d837f47a8a5cb0a230c7c2f32eb48414 | 1dfab618268f76cb0946c47506f5e6f6cc9f0864 | /cogs/currency.py | 9bca5559f1e0be8850380e8eadcac1c0a9fc5b15 | [
"MIT"
] | permissive | https://github.com/Desiiii/Kumiko | fc602dfd8764f1774e2b44d42f6b30b0bb0d02cd | 8602a042fd87bd9d54d18dc0cc4aaf15700e297e | refs/heads/master | 2021-09-14T23:03:48.791583 | 2018-05-21T19:14:46 | 2018-05-21T19:14:46 | 113,623,786 | 3 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pymysql
import discord
import json
import random
import traceback
import requests
import asyncio
from discord.ext import commands
from .utils.tools import *
from .utils.db import *
with open('config.json', 'r') as f:
config = json.load(f)
class Currency:
def __init__(self, bot):
... | UTF-8 | Python | false | false | 17,276 | py | 16 | currency.py | 15 | 0.532866 | 0.522789 | 0 | 368 | 44.921196 | 194 |
Kaemer1645/Numerator | 11,544,872,118,891 | 15b3d72807a52d714883572e3a88f947f6deb6de | ca360ae75cd82c0836b072dd6b446986b6e96301 | /gui.py | d7c14c882396172dd1940def3fb5b251664d50ce | [] | no_license | https://github.com/Kaemer1645/Numerator | aec2dfd37af7c98ae61dae9a5b664f516fa15c7a | b5ddd87b4ac64328f97eaf954c731647d95226dc | refs/heads/main | 2023-02-06T08:13:33.232973 | 2020-12-23T22:01:52 | 2020-12-23T22:01:52 | 310,949,513 | 0 | 0 | null | false | 2020-11-14T23:16:47 | 2020-11-07T23:19:35 | 2020-11-08T13:04:56 | 2020-11-14T23:16:46 | 17 | 0 | 0 | 0 | Python | false | false | # This Python file uses the following encoding: utf-8
import sys, shutil
from PySide2.QtUiTools import QUiLoader
from PySide2.QtWidgets import QApplication, QFileDialog, QPushButton, QLineEdit
from PySide2 import QtXml
from PySide2.QtCore import QFile, QIODevice
from PySide2 import QtXml
from numerator import Numerator... | UTF-8 | Python | false | false | 3,667 | py | 5 | gui.py | 4 | 0.602672 | 0.597764 | 0 | 103 | 34.601942 | 131 |
daniel-reich/turbo-robot | 4,612,794,887,956 | fc668b0f4beb102abcf466f2f54e0323dd94b77f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /k9usvZ8wfty4HwqX2_2.py | 6df3da8982061b94fd50d4d07581a39b1c4e148e | [] | no_license | https://github.com/daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Create a function to check whether a given number is **Cuban Prime**. A cuban
prime is a prime number that is a solution to one of two different specific
equations involving third powers of x and y. For this challenge we are only
concerned with the cuban numbers from the **first equation**. We **ignore**
the cub... | UTF-8 | Python | false | false | 1,045 | py | 8,294 | k9usvZ8wfty4HwqX2_2.py | 8,294 | 0.644444 | 0.605797 | 0 | 39 | 25.461538 | 77 |
alexisdenisew/finalproj | 17,798,344,500,159 | 5c3d355db23dce040139a7fcece8c5c3e9beda85 | adad38555b9fa6857e1e5ef697d84a16b91b986e | /bubble/peepthis/apps.py | 87dcaf3566d3693cc847bcee784437920d61decd | [] | no_license | https://github.com/alexisdenisew/finalproj | 6723d71a123a9509dae9ef9c72c47633d12e22bc | 7d25a3934474198fa5e357750447ccbaf95d8a53 | refs/heads/master | 2021-01-20T02:22:49.518058 | 2017-08-24T16:40:21 | 2017-08-24T16:40:21 | 101,317,949 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.apps import AppConfig
class PeepthisConfig(AppConfig):
name = 'peepthis'
| UTF-8 | Python | false | false | 91 | py | 14 | apps.py | 3 | 0.758242 | 0.758242 | 0 | 5 | 17.2 | 33 |
mramirid/Metode_Numerik | 5,171,140,624,888 | 68295d1111f468c2bde405c11f26ed6efd5d76ae | df0e76ed7314475123a1adfe72b7010faacd3152 | /Biseksi.py | f955c2e7c5d67c99cd1c6444a89c27a5f91346e7 | [] | no_license | https://github.com/mramirid/Metode_Numerik | 4963610c87300807b1d204beb0b318fe74fcc383 | f1c741941b288a32da04ac68da71aee652f72546 | refs/heads/master | 2020-04-03T01:08:03.052475 | 2019-01-10T12:58:20 | 2019-01-10T12:58:20 | 154,920,536 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 25 20:50:25 2018
@author: mramirid
Metode biseksi; f(x) = x^2 - e^x + 5
"""
import pandas as pd
from Fitur.parser import Parser
from Fitur.plot import Plot
persamaan = input('Persamaan\t: ')
batas_bawah = float(input('Batas bawah\t: ')) # a
batas... | UTF-8 | Python | false | false | 1,684 | py | 9 | Biseksi.py | 8 | 0.634204 | 0.614608 | 0 | 69 | 23.42029 | 83 |
KowalskiThomas/PyMessenger | 11,450,382,841,626 | 24e509749f10cbf1ebaa3afd1e383dd7387fd5b2 | 0a8ee7e412d2c81c9c34135f190ea7b75dc5f04b | /bot.py | 73e7a329880e0a6ff89cb45590d8bc368cb8b5a4 | [] | no_license | https://github.com/KowalskiThomas/PyMessenger | 3736aa2ce1de17f511018c2dffada058254f3138 | ede15f17fad0223572c577acfebbea5301799f9b | refs/heads/master | 2020-04-21T07:36:43.061761 | 2019-02-24T16:40:33 | 2019-02-24T16:40:33 | 169,396,284 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
from statesmanager import StatesManager
from server import Server
# NotificationType, ContentType, QuickReply
from classes import Message, MessagingEntry
from function_registry import FunctionRegistry
import utils
DEFAULT_API_VERSION = 2.6
class User:
def __init__(self, bot, id_: int):
s... | UTF-8 | Python | false | false | 6,077 | py | 14 | bot.py | 13 | 0.544841 | 0.543854 | 0 | 202 | 29.084158 | 118 |
HCPLab-SYSU/SSGRL | 2,576,980,411,050 | e2284607c76b2a47965af282653a15e40afc1e71 | f0f444c6d3f7a51a3847baf2983fd35eba2d9702 | /utils/transforms.py | 3cde45c9d55a73408150d681e9254bf25f8447af | [] | no_license | https://github.com/HCPLab-SYSU/SSGRL | 3204addf61917e11c370ecea10b64c7476825441 | ea47ccb2cf55ff37c5a91fc5a6974bdbc9ab6679 | refs/heads/master | 2022-05-20T06:29:26.612648 | 2022-04-27T13:12:25 | 2022-04-27T13:12:25 | 200,573,386 | 164 | 42 | null | false | 2022-01-22T07:01:20 | 2019-08-05T03:09:08 | 2022-01-19T20:28:27 | 2020-05-20T02:07:27 | 3,638 | 135 | 28 | 16 | Python | false | false | from datasets.vgdataset import VGDataset
from datasets.cocodataset import CoCoDataset
from datasets.voc07dataset import Voc07Dataset
from datasets.voc12dataset import Voc12Dataset
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
def get_train_test_set(train_dir, test_dir, train_anno, ... | UTF-8 | Python | false | false | 2,995 | py | 15 | transforms.py | 11 | 0.558264 | 0.535893 | 0 | 52 | 56.596154 | 114 |
victorskl/panelapp | 17,643,725,664,771 | 273ff28b8464704d8b37e53dd97a87dd2f51d0d7 | 01df468685c9f393b9559cb68df349ef7abcf5a6 | /panelapp/accounts/tests/test_permissions.py | b6143147770483d8de8b2301c92f3bbdb893eb3b | [
"Apache-2.0"
] | permissive | https://github.com/victorskl/panelapp | 481af901472cd960da2d0abf17239b8d484524be | 4dfdd31f6036db5cb4e692961ef9bcbe92d39a23 | refs/heads/master | 2020-05-07T16:28:08.946472 | 2019-01-23T11:04:41 | 2019-01-23T11:04:41 | 180,684,104 | 1 | 0 | null | true | 2019-04-11T00:28:26 | 2019-04-11T00:28:26 | 2019-04-03T14:24:17 | 2019-04-10T12:20:03 | 4,147 | 0 | 0 | 0 | null | false | false | from django.contrib.auth.models import Group
from accounts.tests.setup import TestMigrations
class PermissionsTest(TestMigrations):
migrate_from = '0005_auto_20170816_0954'
migrate_to = '0006_auto_20180612_0937'
app = 'accounts'
def test_groups(self):
self.assertEqual(Group.objects.filter(nam... | UTF-8 | Python | false | false | 515 | py | 128 | test_permissions.py | 123 | 0.718447 | 0.650485 | 0 | 13 | 38.615385 | 86 |
DPNT-Sourcecode/CHK-tixr01 | 14,705,968,059,264 | 0af4759b2ab7b7bace259c0c365a0f18316e8b64 | f7ee15e1381e7157acd2d01abd5d6c99fab7f565 | /test/solutions/test_checkout_1.py | 70d424bc4e095f6df910aa5d475d00acb2227256 | [
"Apache-2.0"
] | permissive | https://github.com/DPNT-Sourcecode/CHK-tixr01 | 19f7adbd1d584ae9c12546af78a133aaae80bd98 | 82595223b2be38156b87d3c52a1236f07c756f59 | refs/heads/master | 2021-04-03T09:24:54.110120 | 2018-03-10T18:30:29 | 2018-03-10T18:30:53 | 124,686,799 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from lib.solutions.checkout import checkout
import pytest
@pytest.mark.parametrize('test_string, expected_price', [
('EE', 80),
('EEEEBB', 160),
('BEBEEE', 160),
('EE', 80)
])
def test_checkout(test_string, expected_price):
assert checkout(test_string) == expected_price
| UTF-8 | Python | false | false | 278 | py | 3 | test_checkout_1.py | 3 | 0.701439 | 0.665468 | 0 | 12 | 22.166667 | 57 |
anyuhanfei/study_PyQt5 | 10,539,849,761,002 | 5bfe818633912b91cb057908d72c1e625e419e85 | 46bff46d767e16e4b78221db2d040b3346b83c18 | /016~032-QObject/025~026-QObject-类型判定/026-QObject-类型判定-案例.py | 0e143835b730077c0f5228e28f0c7c7e8113ff9d | [] | no_license | https://github.com/anyuhanfei/study_PyQt5 | ef5a537795ff979838481ac2253dfe65b32a7796 | ed9f0595abfde3b0b3ba0f5dce2acd9dc9d2ef1d | refs/heads/master | 2020-12-09T04:24:21.821808 | 2020-06-08T09:52:57 | 2020-06-08T09:52:57 | 233,191,765 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
026-QObject-类型判定-案例
创建一个窗口, 包含多个QLabel或其他控件, 将包含在窗口内所有的QLabel控件, 设置背景色cyan
'''
import sys
from PyQt5.QtWidgets import QWidget, QLabel, QApplication, QPushButton
class Window(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle('026_QObject_类型判定_案例')
self.resize(500, 5... | UTF-8 | Python | false | false | 1,281 | py | 274 | 026-QObject-类型判定-案例.py | 271 | 0.605042 | 0.570495 | 0 | 45 | 22.8 | 84 |
Sourabhchrs93/star-wars-api | 12,326,556,183,343 | ea7e008016b2f80a36a1bcfd33df3998d9809751 | a82ae3ca1b7da64e5e0ea224fbf8b89a5f0d4154 | /src/services/db_services.py | 537cda6cb55b753dd0b0fd26f1483d7a50f4dade | [] | no_license | https://github.com/Sourabhchrs93/star-wars-api | ec38a2ecf73bbe6c1e40093adc6063961d335c58 | acd4754643a38f495ae3efab00141a830d33e3d6 | refs/heads/master | 2020-05-23T01:09:41.270738 | 2019-05-15T10:43:37 | 2019-05-15T10:43:37 | 186,583,455 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import csv
class LocalDatabase:
def __init__(self, file_path):
self.file_path = file_path
def is_exist(self, data_str):
data_str = "{0}\n".format(data_str)
with open(self.file_path, 'r') as f:
file_data = f.readlines()
if data_str in file_data:
return ... | UTF-8 | Python | false | false | 1,208 | py | 11 | db_services.py | 10 | 0.477649 | 0.471026 | 0 | 44 | 26.454545 | 68 |
elementc/monica-tests-yeagerized | 15,144,054,728,995 | f3ad294ff7176d3a71cc417c0a49933d5b1119bf | 4aae1d0f3e4f862f452e39cd19cf5fa16dfb932b | /pages/dashboard.py | 29f3919bf648465ca5f168ec8130621722aa83f1 | [] | no_license | https://github.com/elementc/monica-tests-yeagerized | 4c3c43fd837dd515ba642eddfc8ec14a313a3f7c | b7528ffc2d3466a9fffc29b064513fefe4373bd3 | refs/heads/master | 2021-01-22T23:58:47.225864 | 2017-11-29T08:11:18 | 2017-11-29T08:11:18 | 102,428,998 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from .header_page import HeaderPage
from selenium.webdriver.common.by import By
class DashboardPage(HeaderPage):
dashboard_selector = (By.CSS_SELECTOR, "div.dashboard")
def initial_status(self):
# make sure there is a dashboard div visible...
self.driver.find_element(*self.dashboard_selector)
... | UTF-8 | Python | false | false | 360 | py | 24 | dashboard.py | 24 | 0.725 | 0.725 | 0 | 10 | 35 | 59 |
SEA-group/wowp_scripts | 9,689,446,254,646 | 94f82dc83caf03914aa9c59eaea5782541a1dc3f | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/gui/HUD2/features/control/__init__.py | 0f90dffc160b5b7c5dd4a1c6a0aa7c22a7a7b672 | [] | no_license | https://github.com/SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Embedded file name: scripts/client/gui/HUD2/features/control/__init__.py
pass | UTF-8 | Python | false | false | 79 | py | 1,504 | __init__.py | 1,016 | 0.772152 | 0.759494 | 0 | 2 | 39 | 74 |
geekandglitter/SiteEvents | 18,614,388,275,606 | 95454914285417a245f4865305bd5af0b632a1fb | 00dd39d7d4975fec18987649fa4c86ad3434d7b6 | /SiteEventsAPP/context_processors.py | 89ce2105d8834a27832896f403445880ed2afa93 | [] | no_license | https://github.com/geekandglitter/SiteEvents | 44a68645cc82711a5ba27de89ac1560882e39d6e | 6bb01b30ca4b9103d28ff8d931ff58b61d431643 | refs/heads/master | 2020-05-04T23:06:43.631667 | 2019-07-10T19:58:01 | 2019-07-10T19:58:01 | 179,533,268 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Context processor allows the base html to have a view associated with it. We need it for the navbar dropdown.
def companies(request):
from os import listdir # listdir searches through a given path
dirlist = listdir('static/csv/')
return {'comps': dirlist}
| UTF-8 | Python | false | false | 273 | py | 28 | context_processors.py | 14 | 0.728938 | 0.728938 | 0 | 7 | 38 | 111 |
rbelew/OakCrime | 12,378,095,787,796 | 41a8b6ff01489e1edda511a804bc830b534d0a36 | cbe32e9c7e790d72789e9d5d3ad7924fc1aa0811 | /showCrime/dailyIncid/management/commands/parse_UCR.py | 46bc77a0f0c401a59415babefebc60f1ae7c9855 | [] | no_license | https://github.com/rbelew/OakCrime | 91eb2ce3b98ad2f2822c9a72cdb894b1fec7b129 | ac6194c7c6930ab5b9552bb2e0f169fa01c71dd7 | refs/heads/master | 2021-01-09T20:51:09.495083 | 2020-08-01T21:56:29 | 2020-08-01T21:56:29 | 10,574,718 | 14 | 14 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding=utf8
''' parse_UCR_pdfquery
parse OPD weekly UCR reports
leans heavily on pdfplumber, esp. its TABLE extraction
https://github.com/jsvine/pdfplumber says:
Works best on machine-generated, rather than scanned, PDFs. Built on pdfminer and pdfminer.six.
Created on Nov 3, 2017
update 12 Feb 19
@author: rik
... | UTF-8 | Python | false | false | 10,597 | py | 76 | parse_UCR.py | 34 | 0.638366 | 0.621537 | 0 | 394 | 25.832487 | 129 |
MarkusH/django-migrations-benchmark | 489,626,306,798 | cf0331a469d22fe17b3a425481dbc39c7ede1a9e | 10fbe5526e5f0b8588b65f70f088cd86b6e9afbe | /wyxbcga/migrations/0005_xqjugixefj_bbwlhkxvqd.py | d4af67b61f7d87e0c026ca0cf67c49075fed16b8 | [] | no_license | https://github.com/MarkusH/django-migrations-benchmark | eb4b2312bb30a5a5d2abf25e95eca8f714162056 | e2bd24755389668b34b87d254ec8ac63725dc56e | refs/heads/master | 2016-09-05T15:36:45.250134 | 2015-03-31T23:44:28 | 2015-03-31T23:44:28 | 31,168,231 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ysgxuyu', '0005_auto_20150218_1622'),
('wyxbcga', '0004_remove_xqjugixefj_xvbpvsvwrw'),
]
operations = [
migrations.... | UTF-8 | Python | false | false | 509 | py | 540 | 0005_xqjugixefj_bbwlhkxvqd.py | 540 | 0.603143 | 0.561886 | 0 | 20 | 24.45 | 93 |
petemarshall77/RoboMagellan-2016 | 10,213,432,243,445 | efabceb49fa2410a4095190b34d4da95c0a91cec | ad567674f2731deda506b0c2c98dfc2aba3a5d1d | /utils.py | 84e72990c449094d658c035e5f2c3c1996defa14 | [] | no_license | https://github.com/petemarshall77/RoboMagellan-2016 | 0f657fcc22cabcef74d5f9e5a2fb144d6d2c6557 | 2edc3d3632204d4a194c8792f6366baf35d028ed | refs/heads/master | 2021-01-10T18:44:37.913033 | 2016-03-30T02:01:03 | 2016-03-30T02:01:03 | 37,494,879 | 1 | 0 | null | false | 2015-12-20T20:38:38 | 2015-06-15T22:31:52 | 2015-12-17T20:13:27 | 2015-12-20T20:38:38 | 45 | 0 | 0 | 0 | Python | null | null | import math
class Utils:
@staticmethod
def get_distance_and_bearing(from_lat, from_long, to_lat, to_long):
from_lat = Utils.degrees_to_radians(from_lat)
from_long = Utils.degrees_to_radians(from_long)
to_lat = Utils.degrees_to_radians(to_lat)
to_long =Utils.degrees_to_radians(t... | UTF-8 | Python | false | false | 1,154 | py | 22 | utils.py | 21 | 0.598787 | 0.574523 | 0 | 32 | 35.0625 | 82 |
WangYi-star/MyPythonCode | 17,978,733,114,688 | 20c0fa6644c31416635c28bccacb2c0c07b4c9f2 | 79b06a6091865a1802c39b7c6bc8ef51eecc23ae | /homework2/question2.py | a5327b6425b883607d595dee55a53fc78ea6466b | [] | no_license | https://github.com/WangYi-star/MyPythonCode | 416543148b13328276a2f9461aedd522ee9423ac | 61dd8e781fa595aa7e8456438d69d4de9275cdbc | refs/heads/master | 2021-07-20T00:30:19.890224 | 2020-06-25T07:06:09 | 2020-06-25T07:06:09 | 244,940,357 | 0 | 0 | null | false | 2021-03-20T04:25:44 | 2020-03-04T15:49:48 | 2020-06-25T07:06:35 | 2021-03-20T04:25:42 | 3,674 | 0 | 0 | 1 | Python | false | false | # -*- encoding: utf-8 -*-
'''
@File : question2.py
@Time : 2020/03/08 20:25:58
@Author : xdbcb8
@Version : 1.0
@Contact : xdbcb8@qq.com
@WebSite : www.xdbcb8.com
'''
# here put the import lib
'''
编写一个函数,接收n个数字,求这些参数数字的和;
'''
def getsum():
sum=0;
n=int(input("请输入数字个数:"))
print("请输入数字:")
for i in range(... | UTF-8 | Python | false | false | 478 | py | 99 | question2.py | 92 | 0.582915 | 0.525126 | 0 | 23 | 16.304348 | 28 |
crisfelip/programacion1 | 17,343,077,948,171 | eded8790846e0c91af45c62b2394893b87bd28c0 | 07290ade70dc658eda30150e2eaf9c60d490cd1f | /clases/examenes/quiz2.py | 53ea4da908c7ff1a7fc5500976b32fcf02378fa2 | [] | no_license | https://github.com/crisfelip/programacion1 | 5d1aea0a3f9ac733c5663c25d6b9263f6ea44a01 | 5fb1a81ba6ac34e875a4bc4fe54ccde34b0d7bf7 | refs/heads/main | 2023-05-26T23:28:24.992906 | 2021-05-27T13:08:14 | 2021-05-27T13:08:14 | 335,283,296 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | Temperatura_Corporal = [36,37,38,35,36,38,37.5,38.2,41,37.4,38.6,39.1,40.3,33]
preguntamenu = '''buen dia espero te encuentres bien
1- conversion de temperatura
2- clasificacion de temperatura
3- temperatura max y min
4- salir
escoga una opcion para continuar '''
preguntaconversion = '''
c- te... | UTF-8 | Python | false | false | 2,336 | py | 29 | quiz2.py | 28 | 0.667808 | 0.640411 | 0 | 81 | 27.851852 | 86 |
x92499/CTES | 13,056,700,604,629 | bfcbfd29eab3d804308534b133aefa26e12f1dc2 | 18994bb4bac9d7e62d19479e234c44f0b9e1197c | /add_ice_storage_to_plant_loop_for_load_flexiblity/analysis/performance.py | 87296c85b76b7cdd7c74e67fc9241dacc681361d | [
"BSD-2-Clause"
] | permissive | https://github.com/x92499/CTES | 935a92395153df97915afa281a44f024d5c2796b | ac068a320ad5aa216d675d7f6239fdc8f879859b | refs/heads/master | 2020-12-29T23:26:11.468852 | 2020-06-22T16:08:44 | 2020-06-22T16:08:44 | 209,821,176 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Ice Performance Curve Function
# Karl Heine, 9/2019
# This function calculates the maximum ice discharge rate
# Ref. E+ Engineering Reference, section 15.1.2, (p. 791 in v. 9.1.0)
def ice_performance (soc, return_temp, supply_temp, ice_cap, flag):
# Import req'd packages
import numpy as np
# Ice Stora... | UTF-8 | Python | false | false | 1,849 | py | 9 | performance.py | 6 | 0.587345 | 0.551109 | 0 | 49 | 36.734694 | 119 |
kacpert20/project-jumper | 2,576,980,383,241 | 570b901b50708ba3d10805835af0312e902027b4 | 12493b1fbcf498e9267a7037e2f96991089e2a86 | /project-jumper-00.py | 2599e7ce840d69da7d2335c7af5e21c4140f6ddf | [
"MIT"
] | permissive | https://github.com/kacpert20/project-jumper | 515fe704583fbb35202ca12ca431763e16d8b7ae | a66a42c18cf952337720d0104d777f9307c5aac4 | refs/heads/main | 2023-03-01T12:14:43.813537 | 2021-02-12T10:54:05 | 2021-02-12T10:54:05 | 338,280,075 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # to jest komentarz
import pgzrun
WIDTH = 474
HEIGHT = 842
def draw():
screen.blit("background.jpeg", (0,0))
pgzrun.go()
| UTF-8 | Python | false | false | 131 | py | 1 | project-jumper-00.py | 1 | 0.648855 | 0.587786 | 0 | 12 | 9.916667 | 41 |
Kakanaporn/Django50Hrs_ByUncleEngineer | 16,664,473,118,449 | 3aea92236098df5331126c71f1dddcb237a75a2e | 1d1606ff0b94e70bc486d5d6c9691b5a7544937e | /myapp/templatetags/custom_tags.py | e3ffa47eac098028f73f8878b2574cf3e010840c | [] | no_license | https://github.com/Kakanaporn/Django50Hrs_ByUncleEngineer | 738574d27663b573ba93bd1a4967f8a7cbe5ee37 | f1b50382d5c1b6c985af94881b13d450f8222c75 | refs/heads/master | 2023-02-27T11:14:13.526425 | 2021-01-11T09:34:43 | 2021-01-11T09:34:43 | 328,596,749 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #custom tags {% load custom_tags %}
from django import template
from ..models import Allproduct,Category
register = template.Library()
@register.simple_tag
def hello_tag(): #{% hello_tag %}
return '<-----Hello Tag----->'
@register.simple_tag
def show_allproduct():
count = Allproduct.objects.count()
ret... | UTF-8 | Python | false | false | 462 | py | 21 | custom_tags.py | 9 | 0.692641 | 0.692641 | 0 | 21 | 21.047619 | 49 |
korposdavid/ask-mate-python | 9,216,999,823,649 | 026d39cb3336effc95e1b2f5c0c3200f2af17675 | 66296cae3cba84dfddb5c168bc2e13eb5fcda482 | /util.py | 13f1e7ed6d5fe1cc0ba13032f9c680a57d1c9756 | [] | no_license | https://github.com/korposdavid/ask-mate-python | 5bbef0d458c22d8e3ff9b4261443c4696dae1664 | 227b152fe81c9bdbdf4b381f6404adb33061c153 | refs/heads/master | 2020-05-23T02:25:56.696366 | 2019-06-14T10:42:57 | 2019-06-14T10:42:57 | 186,602,594 | 0 | 1 | null | true | 2019-05-14T10:48:33 | 2019-05-14T10:48:33 | 2018-10-10T08:53:40 | 2019-04-25T12:36:01 | 9 | 0 | 0 | 0 | null | false | false | from datetime import datetime
import bcrypt
import data_manager
def date_now():
dt = datetime.now()
return dt.replace(microsecond=0)
def hash_password(plain_text_password):
hashed_bytes = bcrypt.hashpw(plain_text_password.encode('utf-8'), bcrypt.gensalt())
return hashed_bytes.decode('utf-8')
def v... | UTF-8 | Python | false | false | 651 | py | 21 | util.py | 4 | 0.711214 | 0.703533 | 0 | 22 | 28.590909 | 89 |
nicy1/hmm | 12,601,434,055,948 | 8f02346540ce66b23522276890642859b8bf49ce | cd0768362e80de0aeccea77e8380213189f86271 | /Benchmark/arima/readfile.py | beebb9b90e03df69f9078d1c12ec1917ffbbeb4e | [] | no_license | https://github.com/nicy1/hmm | bfbdb4184db788d5a2afca6f5f78de6e8dce25cb | bfeb52ebf26c7ba0493628b6dab8d0ac94b9a43b | refs/heads/master | 2023-02-02T23:04:38.720606 | 2020-12-22T15:31:05 | 2020-12-22T15:31:05 | 264,662,691 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
import csv
from collections import OrderedDict
# ==========================================================================
class reader:
def __init__ (self, filename):
self.filename = filename
def read_csv (self):
table = {"0":0.0, "1":1.0, "2":2.0, "4":3.0, "5":4.0}
... | UTF-8 | Python | false | false | 592 | py | 32 | readfile.py | 18 | 0.402027 | 0.376689 | 0 | 24 | 23.708333 | 76 |
elliotgreenlee/machine-learning-examples | 11,897,059,416,904 | c5e92eb05549798981622341d659c94cf7cde43b | f294bb670f6c15d4143e567af8222845055c9f12 | /basic_machine_learning/polynomial_regression/project1.py | f6bb88f2d29398bf78125f8097db53d2f6a9e221 | [] | no_license | https://github.com/elliotgreenlee/machine-learning-examples | 52bc0ce76c5839ca93932116769f1c8767a0c4fd | 05cf87a06a9c03185883793bea4055c69a4a2194 | refs/heads/main | 2023-04-01T08:13:24.654570 | 2021-04-14T02:28:05 | 2021-04-14T02:28:05 | 357,742,621 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from Data import *
from PolynomialRegression import PolynomialRegression
import numpy as np
import math
def rmse(real, prediction):
error = 0
for r, p in zip(real, prediction):
error += math.pow(r - p, 2)
error = math.sqrt(error / (len(real) * 1.0))
return error
def r_squared(real, predict... | UTF-8 | Python | false | false | 3,223 | py | 128 | project1.py | 49 | 0.627056 | 0.617127 | 0 | 118 | 26.313559 | 92 |
anzehuang/walrus | 10,256,381,913,006 | 3aa9b963a6a03e5a3b6977e3c68747b0d46d8f75 | 0779b0bb26e948ed9bc53a977d1082072bdd463b | /walrus/pylib/pyweixin.py | 5af377f439ea2e231628de2c0423a6fdeb0a3114 | [] | no_license | https://github.com/anzehuang/walrus | b1945909034f1ce2f4f4abfd6cdd69acf9af3cf6 | 2f3e9fa880ed8a0dae0114198cdad9f1ff6e61dc | refs/heads/master | 2015-08-12T13:38:15 | 2014-07-16T10:07:31 | 2014-07-16T10:07:31 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# coding:utf-8
import urllib
import urllib2
#from poster.encode import multipart_encode
#from poster.streaminghttp import register_openers
Sender = "walrus_admin"
def send_weixin(receiver, msg, flag=0):
'''
接口使用说明:
注意:消息中的中文字符串前面不要加'u'
1. flag == 0: text, 文字,默认值
eg. msg = "微信报警... | UTF-8 | Python | false | false | 4,240 | py | 160 | pyweixin.py | 94 | 0.47269 | 0.382338 | 0 | 100 | 38.18 | 106 |
AryeYellow/PyProjects | 11,201,274,744,751 | f56ff5dfd689588672678e868f8b3732d0c68690 | 0cf87d20da6438f6b6831a4d385ecd88d9b5a45e | /Keras/TextGeneration/cnn_train.py | 4c94ce9c1b2fb429e467cbf34a3fe0d9c71ab79a | [] | no_license | https://github.com/AryeYellow/PyProjects | 038a221f6b027e1b024c3effc957dc8709f4f974 | fcbf3a4c7fc7f1cdd989f7eb1dc389a9af6540e6 | refs/heads/master | 2020-05-21T04:06:37.991879 | 2019-10-29T11:18:49 | 2019-10-29T11:18:49 | 185,904,582 | 25 | 23 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np, os
from collections import Counter
from keras.utils import to_categorical
from keras.models import Sequential, load_model
from keras.layers import Conv1D, MaxPool1D, GlobalMaxPool1D, Dense
from TextGeneration.conf import *
from warnings import filterwarnings
filterwarnings('ignore') # 不打印警告
... | UTF-8 | Python | false | false | 2,984 | py | 78 | cnn_train.py | 29 | 0.592031 | 0.576869 | 0 | 89 | 29.865169 | 82 |
ZJanPei/PyQtLearn | 8,126,078,133,835 | dbe63a9ebaa211b4a48c4f89243ed8ccd33a2235 | 53fc3ca7147b646100950b08741a19546c3ebf88 | /ui/ui_Main.py | 605edc334341186d0879e7223b4ba4da82159d34 | [] | no_license | https://github.com/ZJanPei/PyQtLearn | 33721a0857e32470718c1db17e06f52818c59ed7 | 0611ab838640bbd73452e717ed4cc1cfac41d3c1 | refs/heads/master | 2020-03-16T15:31:10.621833 | 2018-05-15T03:40:20 | 2018-05-15T03:40:20 | 132,746,992 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Main.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Main(object):
def setupUi(self, Main):
Main.setObjectName("Main")... | UTF-8 | Python | false | false | 844 | py | 16 | ui_Main.py | 14 | 0.688095 | 0.665476 | 0 | 25 | 32.56 | 70 |
Buguemar/PIIC19 | 17,961,553,265,553 | 0c077ab4c57cc2ce3aa11284318a3d093d2b3221 | e083533a1b00eb49acaa6ca6773b4e5605ba92ee | /code/obj1/old_stuff/run_GAF.py | 2623234492850ec8f243c29588352b7ae1453956 | [] | no_license | https://github.com/Buguemar/PIIC19 | 913729c2c77ca8712e9dfc4ab817e0f277dd8ba7 | 54a5743b8660b8209c9b70d65e1cef04f7622575 | refs/heads/master | 2023-06-06T17:46:37.755334 | 2021-07-15T08:16:08 | 2021-07-15T08:16:08 | 184,789,297 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# coding: utf-8
from IPython.display import display, Image
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os, sys ,gc, math, time
from PIL import Image
from keras.layers import *
from keras.models import Sequential
from keras import backend as K
from optparse import OptionParser
op = O... | UTF-8 | Python | false | false | 4,677 | py | 181 | run_GAF.py | 23 | 0.617276 | 0.608724 | 0 | 132 | 34.424242 | 219 |
momentum-cohort-2018-10/w1d2-house-hunting-Komor-RP | 7,645,041,811,256 | 5cbc5d98bfb67df99d21da5643543e461660b156 | 9d324f74bd7c383e283bf5e0e71f13c34a862ae4 | /house-hunting.py | 98ba2c1e9fd31ee73bc03a08580ea9b9f5613afc | [] | no_license | https://github.com/momentum-cohort-2018-10/w1d2-house-hunting-Komor-RP | 2fca593860575771dd4ed638262956ba79523214 | f25768e24f299d2c61f5cb4997d31fc17208eb6d | refs/heads/master | 2020-04-03T16:00:59.193308 | 2018-10-30T14:29:40 | 2018-10-30T14:29:40 | 155,387,463 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | annual_salary = input("Enter your annual salary: ")
portion_saved = input("Enter the percent of your salary to save, as a decimal: ")
rate_of_return = input("Enter the expected annual rate of return [0.04]: ")
total_cost = input("Enter the cost of your dream home: ")
portion_down_payment = input("Enter the percent of y... | UTF-8 | Python | false | false | 1,166 | py | 1 | house-hunting.py | 1 | 0.684391 | 0.669811 | 0 | 32 | 35.46875 | 109 |
sannareddy/openerp-heimai | 6,476,810,718,139 | 0b74134e6c0a2cbb3e0a3060522bf84ee4563f8e | a2ac73af04a07bb070cd85c88778608b561dd3e4 | /addons/account_followup/account_followup.py | 121234d91da0b2c3b342cc9dd054ad7e95d5ba92 | [] | no_license | https://github.com/sannareddy/openerp-heimai | c849586d6099cc7548dec8b3f1cc7ba8be49594a | 58255ecbcea7bf9780948287cf4551ed6494832a | refs/heads/master | 2021-01-15T21:34:46.162550 | 2014-05-13T09:20:37 | 2014-05-13T09:20:37 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | /usr/share/pyshared/openerp/addons/account_followup/account_followup.py | UTF-8 | Python | false | false | 71 | py | 9,135 | account_followup.py | 1,609 | 0.859155 | 0.859155 | 0 | 1 | 71 | 71 |
diaopk/group_project | 1,056,562,001,897 | a0a1b102db22815ead8057ff8bae54ff7ebc4900 | 60973db6a73f846d101f8456768c921d0333ca47 | /pc.py | 33071e07d77bf53bcfa95b516b434953635e9b0b | [] | no_license | https://github.com/diaopk/group_project | 547400873684361e546801dbdd3d0990730a563a | 427837af551bca3df0ec12adedb554174a18ab49 | refs/heads/master | 2021-01-20T08:01:56.251769 | 2019-09-13T15:57:22 | 2019-09-13T15:57:22 | 90,089,519 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/...
# This script defines a Photo Manager that implements the iterator protocol
# to store and orgnise photos
# ,and a Photo object
# Import required modules
from picamera import *
from datetime import datetime
from os import listdir
from re import search
# Photo Manager
class Photo_Manager:
def __init__(s... | UTF-8 | Python | false | false | 4,140 | py | 13 | pc.py | 11 | 0.583816 | 0.577778 | 0 | 123 | 32.658537 | 86 |
bryanmartineze/proyectos-python | 652,835,042,584 | 8f6fc993ef071e2e5b749dfd56f8420de6747b09 | 1f3763d72d284d81a88de8e1b1f83c89c3811479 | /tuples/tuples.py | 92c48ded8a25b32c069e6d7fe8edf4a9b42e1b12 | [] | no_license | https://github.com/bryanmartineze/proyectos-python | c56a5028cc4743b5d4b91dedc554645207e8b2d2 | c575de3cee365fba25a7fddc6ce56d27d6adbac1 | refs/heads/master | 2023-07-26T03:42:33.390950 | 2021-08-26T00:03:35 | 2021-08-26T00:03:35 | 393,833,114 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Las tuplas son variables que pueden guardar una colección de datos
coordenadas = (3, 5)
#Las tuplas son inmutables, que no pueden cambiarse ni modificarse
# print(coordenadas)
# #Podemos mostrar el numero de una tupla
# print(coordenadas[1])
#Podemos crear listas de tuplas
lista_de_coordenadas = [(3,5), (6,4), (... | UTF-8 | Python | false | false | 361 | py | 15 | tuples.py | 14 | 0.738889 | 0.702778 | 0 | 16 | 21.5625 | 67 |
berayboztepe/Examples | 10,161,892,647,235 | cbf92bf84e70aefbd19490a2cf5fab623cc6c0d3 | 95d309891dcec0a27a81a6930b1846e4b8bec131 | /Project Euler/project-euler-32.py | 6c7f3969422adcc79eb9db17c53cbc66b2157d7d | [] | no_license | https://github.com/berayboztepe/Examples | ef4ed8c68d442115862509118ae70d911c464f1d | 3d2abb6918d183245436444b164ae7b0268c521a | refs/heads/main | 2023-04-29T23:08:00.117527 | 2022-11-14T19:42:03 | 2022-11-14T19:42:03 | 308,640,780 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example,
# the 5-digit number, 15234, is 1 through 5 pandigital.
# The product 7254 is unusual, as the identity, 39 × 186 = 7254, containing multiplicand, multiplier, and product is 1 through 9 pandigital.... | UTF-8 | Python | false | false | 2,487 | py | 91 | project-euler-32.py | 52 | 0.417538 | 0.383749 | 0 | 80 | 29.075 | 140 |
marcellacornia/mlnet | 9,079,560,877,836 | 4041d0163c8a23d82e43b6dbce126fe370b3b87b | 7f8a7db3c33973e91688357663cd92f280e639fe | /utilities.py | c339528cdde192f03aca786124eef39846e849c3 | [
"MIT"
] | permissive | https://github.com/marcellacornia/mlnet | f3ff5647983ef584bd684b612a1b1db8a6541103 | bf6e4a9905915a2bddad2cbe45ac35524fd788c5 | refs/heads/master | 2021-11-20T11:34:01.721948 | 2021-10-26T14:05:12 | 2021-10-26T14:05:12 | 67,144,952 | 104 | 41 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import division
import cv2
import numpy as np
def padding(img, shape_r=480, shape_c=640, channels=3):
img_padded = np.zeros((shape_r, shape_c, channels), dtype=np.uint8)
if channels == 1:
img_padded = np.zeros((shape_r, shape_c), dtype=np.uint8)
original_shape = img.shap... | UTF-8 | Python | false | false | 2,623 | py | 4 | utilities.py | 3 | 0.563096 | 0.53069 | 0 | 73 | 33.958904 | 119 |
YX577/aqualord | 12,524,124,639,742 | 68250f59ba97619bc62c9fd9ffdd46fbd6e5b403 | fe9ea4a12c38998c93e9caced4b745d3bc0a7977 | /rdr6min/basin_precipitation.py | 7974eddcde03ff013cd173f96ce59c2123dd6418 | [] | no_license | https://github.com/YX577/aqualord | d07d710ed3221d55c086eb9d669b7bdc9b247e71 | bc837db55f156b7cb85f83ff253905ec9c5cdeaf | refs/heads/master | 2022-11-26T10:15:23.002380 | 2020-07-29T12:53:06 | 2020-07-29T12:53:06 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''流域内的雷达测雨数据和雨量站数据的融合'''
import project_util
from geojson_utils import point_in_multipolygon, json
import numpy as np
import conditional_merge
def calculate_average_precipitation(geojson_file, precipitation_data, x_start_index, y_start_index, x_end_index,
y_end_index):
"""根据给定... | UTF-8 | Python | false | false | 3,180 | py | 28 | basin_precipitation.py | 11 | 0.646097 | 0.621748 | 0 | 66 | 44.424242 | 145 |
snake1597/Scikit_learn | 7,945,689,504,977 | f251de253e6be677fd998ffd6d28315a55458069 | 0c19b05ca828c18cafed11456d4755e7733ba75a | /DecisionTree.py | 6294f8c34d3c31c2077b1471c11b0fa750faf1f8 | [] | no_license | https://github.com/snake1597/Scikit_learn | c14e4b0335bb3654ce474e430f18865289ad1d1f | 5e876146f4f53fe07dbf0847b23e4baadb488894 | refs/heads/master | 2020-07-10T19:56:00.179110 | 2019-08-26T00:46:00 | 2019-08-26T00:46:00 | 204,355,369 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from sklearn import datasets, tree, metrics
from sklearn.cross_validation import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import confusion_matrix
from sklearn.cross_validation import cross_val_score
wine = datasets.load_wine()
x_data = wine.data
y_data = wine.targ... | UTF-8 | Python | false | false | 1,009 | py | 2 | DecisionTree.py | 2 | 0.732408 | 0.726462 | 0 | 31 | 30.548387 | 84 |
luisnarvaez19/Proyectos_Python | 3,367,254,367,249 | 275ec4089b0e1ec38910c3841f500897a9071bf7 | 560fc121079581f0568d6aa59a14053015da08be | /edu/cursoLN/practica1/creciente.py | b6f5c782db7b7059c9f5320182619e430471f4b3 | [] | no_license | https://github.com/luisnarvaez19/Proyectos_Python | 1f5c31d3592ec5fb2594d1f4b0163338d5751951 | 45dc51ce9d93f0b7e96eff9ca7100bd4b69e172e | refs/heads/master | 2021-06-21T13:02:22.901541 | 2021-03-17T23:57:58 | 2021-03-17T23:57:58 | 199,532,892 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
9. Escribir un programa en Python que detecte si se han introducido en orden creciente
tres números introducidos por el usuario.
'''
x = 5
y = 9
z = 2
if x > y and y > z:
print('Si se han introducido en orden creciente')
else:
print('No se han introducido en orden creciente')
'''
9. Escr... | UTF-8 | Python | false | false | 1,406 | py | 2,230 | creciente.py | 159 | 0.563079 | 0.53742 | 0 | 101 | 12.831683 | 90 |
eea/eea.docker.flis | 1,348,619,775,629 | 45c429131fdc2cd6b40891029fbb7d4578f515f7 | c8687527a70d7e11610560adb8e86dd69585b4aa | /code/pages/wagtail_hooks.py | cf7154af788d95d33f5ee27b1384fbfeeafef5fa | [
"BSD-3-Clause"
] | permissive | https://github.com/eea/eea.docker.flis | 0d69964687eca81a9d43aff3bdd3a8598a9d22f7 | 9bc78d9bf3436e9539f15a6a0ba9c2fd7a030907 | refs/heads/master | 2023-08-01T05:36:40.303785 | 2017-07-06T17:08:36 | 2017-07-06T17:08:36 | 94,788,064 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf import settings
from django.utils.html import format_html_join, format_html
from wagtail.wagtailcore import hooks
from .admin import *
@hooks.register('insert_editor_js')
def editor_js():
js_files = [
'pages/js/tweak_richtext_buttons.js',
]
js_includes = format_html_join('\n', '<s... | UTF-8 | Python | false | false | 921 | py | 142 | wagtail_hooks.py | 68 | 0.655809 | 0.653637 | 0 | 26 | 34.423077 | 103 |
malk321/master-python | 18,313,740,567,271 | 85c579ed54a07e7d1734062ded504938926689ab | 53b6447da398945a7f9e918f6de3cf6b711a8b9a | /INF413/tp2/tp2.py | 54c3b0041d0eaa976900eb77a3bbd068892f6de1 | [] | no_license | https://github.com/malk321/master-python | 0642636e850f2f1f58fb98f3d976d4313fe5a43c | 42f13603eaa48213de3e47951d394199ad10ebcf | refs/heads/master | 2020-04-16T23:02:27.668865 | 2017-02-26T21:57:17 | 2017-02-26T21:57:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding : utf-8 -*-
import math, random, sys
# Authors: Benoit PORTEBOEUF, Morgan ROBIN
# Date: 10.09.2015
# Course: MAJ INF-413
########################################
## ##
## K-MEANS ALGORITHM IMPLEMENTATION ##
## ##
#####... | UTF-8 | Python | false | false | 9,111 | py | 72 | tp2.py | 52 | 0.619471 | 0.61091 | 0 | 321 | 27.380062 | 271 |
Arthur264/rest_blog | 15,307,263,455,143 | d0f5a53bee85b67105e7e4777835b62c1c7e2613 | 93a07a2b9910ec54c99404b34f2ca16086c50f85 | /posts/migrations/0002_auto_20180430_1601.py | f6f69d9af74806a5b4ebc19e049a5f71e66d55b4 | [] | no_license | https://github.com/Arthur264/rest_blog | 426e810ba4668f367f5dcde9ac328b98edd4b66d | cb1782208cf6c071fc54447aa5f849d20951b1ba | refs/heads/master | 2023-01-06T05:24:49.102544 | 2018-05-02T12:38:01 | 2018-05-02T12:38:01 | 126,502,369 | 0 | 1 | null | false | 2022-12-26T20:15:15 | 2018-03-23T15:12:55 | 2018-05-02T12:38:18 | 2022-12-26T20:15:13 | 1,245 | 0 | 1 | 11 | Python | false | false | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-30 16:01
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0001_initial'),
]
operations = [
migrations.RenameField(
mode... | UTF-8 | Python | false | false | 1,134 | py | 45 | 0002_auto_20180430_1601.py | 42 | 0.502646 | 0.483245 | 0 | 45 | 24.2 | 49 |
nonsoo/ExamTimetable | 13,709,535,644,111 | dce8121f9cf622099537b878c74871981cfa5294 | 941918352a200b12cbfa6fe6102d9070701a1c27 | /Databases(Assignment 3)/queries.py | d13d9e897d4abf9c8cb6a3ef8945acf215d301ac | [] | no_license | https://github.com/nonsoo/ExamTimetable | 1eec6402467bffe1e5141e745f0dd3be47833770 | 6ed26198afbdb38c2b445fbfa29042a16c1a667c | refs/heads/main | 2023-02-19T01:57:32.926457 | 2021-01-23T14:54:40 | 2021-01-23T14:54:40 | 332,234,972 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sqlite3
from make_tables import check_courses
def run_query(db, query, args=None):
"""(str, str, tuple) -> list of tuple
Return the results of running query q with arguments args on
database db."""
conn = sqlite3.connect(db)
cur = conn.cursor()
# execute the query with the given args p... | UTF-8 | Python | false | false | 11,007 | py | 3 | queries.py | 3 | 0.631053 | 0.591805 | 0 | 285 | 37.621053 | 78 |
iffanux/vstutils | 7,078,106,113,876 | b0b6b66f4a4931d65bd0c64cf4b4a600bbb43695 | 51a62a14ef31f7001f0eade4e30813eb0b0a7147 | /vstutils/__init__.py | fc023e801b2b1a5a97432914de90bd16538a8d3f | [
"Apache-2.0"
] | permissive | https://github.com/iffanux/vstutils | 62b3c122a884c6deef8e2f42a90c298706de8faa | 4ff1a21a8fe0641895af758680a116d2bd8056aa | refs/heads/master | 2020-05-16T18:22:08.978787 | 2019-04-24T08:15:30 | 2019-04-24T08:15:30 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # pylint: disable=django-not-available
__version__ = '1.9.5'
| UTF-8 | Python | false | false | 61 | py | 2 | __init__.py | 1 | 0.672131 | 0.622951 | 0 | 2 | 29.5 | 38 |
n0miya/ProblemSet | 2,448,131,360,651 | 06efdbdfa183104d07f0750287ab52ba280772a5 | c942f480783cad493b4804d666337265a308fddd | /Coding_Competency/LeetCode/617_Merge_Two_Binary_Trees.py | dee58eda4222e0018de50d85d7615c099378f920 | [] | no_license | https://github.com/n0miya/ProblemSet | bb1346cd9d2cf98b0cd16227385e30656b90d4f5 | dd82722398f082ee7a4fbf2d14fdaa456a9c32d5 | refs/heads/main | 2023-05-07T10:46:21.410285 | 2023-05-04T17:34:02 | 2023-05-04T17:34:02 | 370,749,594 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from typing import Optional
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def mergeTrees(self, root1: Optional[TreeNode], root2: Optional[TreeNode]) -> Optiona... | UTF-8 | Python | false | false | 818 | py | 999 | 617_Merge_Two_Binary_Trees.py | 573 | 0.632029 | 0.600244 | 0 | 25 | 31.72 | 107 |
zcwist/dx2x2 | 283,467,866,103 | 83e5d78323e5674dbd0be2603cce9df0f34fdb2c | 2f849e5abab4688bb39cd2f31607605506c33234 | /database/DBTester.py | f878cfbd1fb7985fe6c37c78c7733a5509a515f5 | [] | no_license | https://github.com/zcwist/dx2x2 | e3935b47308197650dd0964cc970274f936dc80a | 1b65ef30cfcba320336dbf34708dc3768fb100c3 | refs/heads/master | 2022-12-10T23:07:06.321355 | 2018-07-02T04:17:19 | 2018-07-02T04:17:19 | 94,134,604 | 0 | 1 | null | false | 2021-06-01T22:18:49 | 2017-06-12T19:51:08 | 2018-07-02T04:17:55 | 2021-06-01T22:18:49 | 6,510 | 0 | 1 | 5 | JavaScript | false | false | from DBAccess import *
from addData import *
if __name__ == "__main__":
for x in range(10):
print get_user_name("001")
print get_user_name("002") | UTF-8 | Python | false | false | 166 | py | 31 | DBTester.py | 13 | 0.578313 | 0.53012 | 0 | 7 | 22.857143 | 34 |
SFDO-Tooling/CumulusCI | 9,663,676,454,828 | ef34eb7a0af94bfe747f570cbc648bbf59481670 | 6564f42640e11689c2ddb6b92325afe6fddc6a6f | /cumulusci/robotframework/SalesforcePlaywright.py | 9eba2edf11d0a0f6159b009b5fffedb74faa98f1 | [
"LicenseRef-scancode-free-unknown"
] | permissive | https://github.com/SFDO-Tooling/CumulusCI | 32d4509fa8a36905cfc84fd6283403fd7f4b78c4 | 9ccf3c9566f78c6e9102ac214db30470cef660c1 | refs/heads/main | 2023-08-18T04:53:55.733027 | 2023-08-11T20:52:08 | 2023-08-11T20:52:08 | 15,592,459 | 226 | 134 | BSD-3-Clause | false | 2023-09-14T05:09:26 | 2014-01-02T20:01:31 | 2023-08-31T22:41:13 | 2023-09-13T23:57:42 | 100,017 | 336 | 228 | 175 | Python | false | false | import re
import time
from Browser import SupportedBrowsers
from Browser.utils.data_types import KeyAction, PageLoadStates
from robot.utils import timestr_to_secs
from cumulusci.robotframework.base_library import BaseLibrary
from cumulusci.robotframework.faker_mixin import FakerMixin
from cumulusci.robotframework.uti... | UTF-8 | Python | false | false | 8,596 | py | 715 | SalesforcePlaywright.py | 511 | 0.621219 | 0.61738 | 0 | 220 | 38.072727 | 90 |
renankemiya/exercicios | 6,640,019,441,822 | 4d5b79d7c7fc339f6caed8cacbac9a902fdacaa3 | cb5d1d9098f65c3ad0eaf966d297e8e9158bfb77 | /matematica/calculo/soma.py | 391e83a205ebeec025b9d43a55a936d3cbefcb56 | [
"MIT"
] | permissive | https://github.com/renankemiya/exercicios | a6b6790589e6f5628683a288a3daf25d06fd810d | 669f38acc2e85f84003bfaaccbfbaeb9211dd599 | refs/heads/master | 2022-12-15T03:43:56.902440 | 2020-09-14T20:09:31 | 2020-09-14T20:09:31 | 278,484,771 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def soma(parcela, parcela_2):
'''Essa função soma duas parcelas
:param parcela:
:param parcela_2:
:return:
'''
return parcela + parcela_2
if __name__ == '__main__':
print(soma(1, 2)) | UTF-8 | Python | false | false | 213 | py | 52 | soma.py | 50 | 0.57346 | 0.549763 | 0 | 10 | 20.2 | 37 |
priv-kweihmann/oelint-adv | 19,507,741,482,771 | a28e0668249758c66f445b5b84489e91181481d7 | 708ac9f1e466258b71c057cf64a4f5580467d2d4 | /oelint_adv/rule_base/rule_var_src_uri_srcrevtag.py | 0af862f898ac7c1936b9107a1f7e2356a3e919e5 | [
"BSD-2-Clause"
] | permissive | https://github.com/priv-kweihmann/oelint-adv | 93237344ed7c54030a95214b18180b703008ba2d | 6aab44abbe689fde96b32112f41a176a7959606d | refs/heads/master | 2023-08-24T19:51:35.550808 | 2023-08-23T15:31:56 | 2023-08-23T15:31:56 | 173,965,564 | 39 | 24 | BSD-2-Clause | false | 2023-09-11T14:04:29 | 2019-03-05T14:50:13 | 2023-08-26T17:11:59 | 2023-09-11T14:04:28 | 752 | 43 | 19 | 10 | Python | false | false | from oelint_adv.cls_rule import Rule
from oelint_parser.cls_item import Variable
from oelint_parser.helper_files import get_scr_components
from oelint_parser.parser import INLINE_BLOCK
class VarSRCUriSRCREVTag(Rule):
def __init__(self):
super().__init__(id='oelint.vars.srcurisrcrevtag',
... | UTF-8 | Python | false | false | 1,739 | py | 184 | rule_var_src_uri_srcrevtag.py | 171 | 0.521564 | 0.519264 | 0 | 36 | 47.305556 | 107 |
Vincent105/python | 19,043,885,006,010 | b5f11ac38ecac4ebbbcef346e3bc882d8bf42447 | a974de6285db76b669937e9619a805c226bb11a6 | /01_Python_Crash_Course/0701_input_while/07T403_while_fill_dictionary.py | 6927fc7b867688c08ed976922bcb01a2827bfed0 | [] | no_license | https://github.com/Vincent105/python | 1b3f753e6b9db711e320b53c3e0a04c9fc818c37 | 65351234310a81a85331b0f11aef42507868774d | refs/heads/master | 2021-08-03T21:06:57.977065 | 2021-07-30T09:02:56 | 2021-07-30T09:02:56 | 185,359,652 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | responses = {}
active = True
while active:
name = input("What's your name?")
place = input("If you could visit one place in the world, where would you go?")
responses[name] = place
repeat = input("Would you like to keyin another respond? (yes/ no)")
if repeat == 'no':
active = False
print("\n--- Results --... | UTF-8 | Python | false | false | 425 | py | 542 | 07T403_while_fill_dictionary.py | 471 | 0.642353 | 0.642353 | 0 | 17 | 24.058824 | 80 |
open-toontown/open-toontown | 14,980,845,944,249 | 73969146fe54bf9c64ffe6550cdff185f22e1b21 | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /toontown/uberdog/TTSpeedchatRelay.py | 1bb965c253ded0f449d25f0e29e6489e29e900e0 | [
"BSD-3-Clause"
] | permissive | https://github.com/open-toontown/open-toontown | bbdeb1b7bf0fb2861eba2df5483738c0112090ca | 464c2d45f60551c31397bd03561582804e760b4a | refs/heads/develop | 2023-07-07T01:34:31.959657 | 2023-05-30T23:49:10 | 2023-05-30T23:49:10 | 219,221,570 | 143 | 104 | BSD-3-Clause | false | 2023-09-11T09:52:34 | 2019-11-02T22:24:38 | 2023-09-04T15:56:21 | 2023-09-11T09:52:34 | 7,389 | 123 | 63 | 34 | Python | false | false | from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal
from direct.directnotify.DirectNotifyGlobal import directNotify
from otp.otpbase import OTPGlobals
from otp.uberdog.SpeedchatRelay import SpeedchatRelay
from otp.uberdog import SpeedchatRelayGlobals
class TTSpeedchatRelay(SpeedchatRelay):
... | UTF-8 | Python | false | false | 635 | py | 1,547 | TTSpeedchatRelay.py | 1,538 | 0.777953 | 0.777953 | 0 | 16 | 38.6875 | 92 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.