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 sequence | 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.776000 | 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.466000 | 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.864000 | 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.943000 | 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.120000 | 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.994000 | 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.593000 | 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.363000 | 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.407000 | 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.098000 | 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.021000 | 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.579000 | 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.670000 | 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.762000 | 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.642000 | 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.393000 | 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.261000 | 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.716000 | 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.473000 | 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.463000 | 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.574000 | 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.256000 | 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.749000 | 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.678000 | 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.189000 | 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.393000 | 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.099000 | 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.810000 | 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.438000 | 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.798000 | 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.809000 | 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.925000 | 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.629000 | 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.128000 | 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.720000 | 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.180000 | 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.065000 | 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.619000 | 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.517000 | 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.117000 | 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.449000 | 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 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 5