blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d1ed5e5d5c7e1e261072abdc86f3a3ae34c7bb1 | df976d2717f81ae450e7604a072888e5a8406681 | /english/components/helpers/Lingualeo/service.py | 247f10d19922fff14e46d81d5dd79fca99fdd2f6 | [] | no_license | andrey-ladygin-loudclear/pyhelper | 3bddfab247a063040c945a9556c40d7f4f5ad25e | ad4d36cd9971ed6c8cfda4a8e6626a532cf28f51 | refs/heads/master | 2021-04-28T09:48:30.802463 | 2018-02-19T11:13:18 | 2018-02-19T11:13:18 | 122,050,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | import urllib
import urllib2
import json
from cookielib import CookieJar
class Lingualeo:
def __init__(self, email, password):
self.email = email
self.password = password
self.cj = CookieJar()
def auth(self):
url = "http://api.lingualeo.com/api/login"
values = {
... | [
"andrey@gmail.com"
] | andrey@gmail.com |
8d1f72263bb65e91c6157f313d579fcb11c7bc71 | 3fa81f1a8328bc1b4290d0a6ed20d737eefd416f | /LESSON_4/hw_7_lesson_4.py | 00bddf038c8f2a9923e7a8c54519a189e726754c | [] | no_license | EvgeniiGrigorev0/home_work-_for_lesson_2 | 86a0942b638bed0691ae34d93dc9fec1febca269 | 55d54af21d3bef237993a21bd1f5803198596de8 | refs/heads/main | 2023-03-08T16:51:38.626838 | 2021-02-16T10:15:20 | 2021-02-16T10:15:20 | 331,285,530 | 0 | 0 | null | 2021-02-16T10:15:22 | 2021-01-20T11:27:17 | Python | UTF-8 | Python | false | false | 947 | py | # 7. Реализовать генератор с помощью функции
# с ключевым словом yield, создающим очередное
# значение. При вызове функции должен создаваться
# объект-генератор. Функция должна вызываться
# следующим образом: for el in fact(n). Функция
# отвечает за получение факториала числа, а в цикле
# необходимо выводить только пер... | [
"vllljacksonlllv@gmail.com"
] | vllljacksonlllv@gmail.com |
9d45a3627adcd5fafdac9dfc0c4659ab89a4240b | cec3c2f5b67f018384c16d308a3f4ad5d3ba93af | /hr/filters.py | 30dc039d0e33be3182bc6bd416b19fe23b134f4a | [] | no_license | levenkoevgeny/amia_social | 37bddd59c194bb1714b82b7de32982469db87723 | 32ed973e56440b90757ae2e5c52143fa3f9c7ed1 | refs/heads/main | 2023-08-14T05:55:25.432038 | 2021-09-27T18:54:36 | 2021-09-27T18:54:36 | 309,278,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | import django_filters
from institution.models import Institution, Vacancy
from social_profile.models import SocialProfile, Language, Skill
LEVELS = (
(1, 'Beginner'),
(2, 'Pre-Intermediate'),
(3, 'Intermediate'),
(4, 'Upper-Intermediate'),
(5, 'Advanced'),
(6, 'Proficiency'),
)
class Vacancy... | [
"levenko.evgeny@yandex.by"
] | levenko.evgeny@yandex.by |
518283948377e77df23160ba4af13072e741f671 | ed294013f059de740560fc8228dcf39133adb659 | /Phyton Sample Codes/20180113-Hipotenus.py | 93dec59b07ef73df3cced1bb4aaaccec1c7e05ad | [] | no_license | thegentdev/Python | 382154cddcba8b71c153b515ae02f8ced0f12e2c | 8bdeae285db4960e3356c5fdbbc482f36cb61c14 | refs/heads/master | 2021-09-05T17:00:09.233698 | 2018-01-29T20:30:39 | 2018-01-29T20:30:39 | 113,296,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # 2 dik kenarı verilen üçgenin hipotenüsünü bulan program.
#BayMFE
import math
import sys
kontrol=True
###################################################################################################
def dikKenarAl():
d1 = int(0)
d2 = int(0)
try:
d1 = int(input("Lütfen 1.dik kenar uzunluğunu g... | [
"34301812+bayMFE@users.noreply.github.com"
] | 34301812+bayMFE@users.noreply.github.com |
70a47262417eb8338e700cb3dffe2d3c6f5780f9 | 9168edc2a50f75ef848fb44ec6203ef12f9b59b0 | /lock_server.py | da75b8f5d4ec9d87079022d470842b8bcf498e1c | [] | no_license | Anubhavj02/DistributedFileSystem | 9b0c6e38f7934ce6fec82af942a389eaca084d7d | f110d08c8a63fa7b69e26a691d477464cd157ae8 | refs/heads/master | 2021-05-06T15:17:01.984729 | 2017-12-15T23:46:48 | 2017-12-15T23:46:48 | 113,508,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,210 | py | import argparse
from flask import Flask
from flask import request
from flask import jsonify
import server_messages_list
app = Flask(__name__)
@app.route('/lock_server/getLockStatus', methods=['GET'])
def get_file_lock_status():
"""function to get the status of the file lock
"""
file_path = request.args... | [
"jainan@tcd.ie"
] | jainan@tcd.ie |
9687b8061923b77a640b2858b548b5c5094f9dbf | 7016b8056c81f5c2d5b1a5c252b091a51a82a8a5 | /python/sikher_splash.py | 09f21e7a91a0b8faf8c0e4e5e114793777d39379 | [] | no_license | sikher/sikher-gurbani-searcher | 8d649b9247fdf5a7730c7eb6103b8904dfdaa539 | 2dca582a0cac63c3b77a02ea69f51caeeaaec2ff | refs/heads/master | 2016-09-02T04:46:55.360823 | 2015-03-13T21:07:01 | 2015-03-13T21:07:01 | 32,145,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # -*- coding: utf8 -*-
# Module: sikher_splash.py
# Purpose: to show a splash screen on startup
# Created: Jasdeep Singh 24/09/2005
# To Do: Add Code to Show What's Loading
# Place this status text in bottom right of splash screen
import wx
try:
import psyco
psyco.profile()
except:
pr... | [
"jasdeep@simplyspiritdesign.com"
] | jasdeep@simplyspiritdesign.com |
196d0fac47d59e2fb1d63ec31d2ed35843ac5a5f | ec930ed441f433e4043c99f1fe8423ac52fccefb | /passwordretry.py | 608ef8cc2e2cca8311d0ce17448d88ec087bc58c | [] | no_license | mickeywangweb/passwordretry | 1fee7150cda879cf48fa59ccdb7fdf911f404e41 | 0ffe22353c02b7750db2f4891708b1b651095d78 | refs/heads/master | 2022-12-17T23:13:21.525898 | 2020-09-19T04:30:45 | 2020-09-19T04:30:45 | 296,782,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # 密碼重試程式
# 先在程式碼中 設定好密碼 password = 'A123456'
# 讓使用者(最多輸入三次密碼)= while
# 如果輸入正確 就印出"登入成功"
# 如果不正確 就印出 "密碼錯誤!還有_次機會"
password = 'a123456'
i = 3 # 剩餘機會
while i > 0:
pwd = input('請輸入密碼')
if pwd == password:
print('登入成功!')
break # 逃出迴圈
else:
i = i - 1
print('密碼錯誤!')
if i > 0:
print ('還有' , i, '次機會')
else... | [
"a0958062058@gmail.com"
] | a0958062058@gmail.com |
079b30c78df9dd50284154e930503a009f9f941b | 69210707f3d8c0cca93c62e5760f3b004e8b394a | /03.Intro_To_TensorFlow/Week_3/01.Qwiklabs_Scaling_TensorFlow_With_Cloud_AI_Platform/taxifare/trainer/model.py | e08eadced6f3eec1c14f8913b4f6f795c6aa1348 | [] | no_license | mujahid7292/ML_With_TensorFlow_On_GCP | b22285463ffabbe201f3c494ddb6b0040827f1ac | 713a588cf8ee05dcb06ace6659953afd1079fe87 | refs/heads/master | 2023-04-08T09:28:06.103151 | 2020-11-19T06:17:13 | 2020-11-19T06:17:13 | 244,292,498 | 1 | 0 | null | 2023-03-25T00:11:58 | 2020-03-02T05:59:59 | Jupyter Notebook | UTF-8 | Python | false | false | 4,902 | py | #!/usr/bin/env python
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | [
"mujahid7292@gmail.com"
] | mujahid7292@gmail.com |
679060941e13f1994c2a6668adbc6846b0629918 | da5ae2fa857fd08a565a10a2858e50fc58a06eda | /test/hhhh.py | 67440849807640590c2ec719e44b970788014e18 | [] | no_license | sandengjiubanv/Python_OldBoy | 51b1488673e7e3220fd429023f4a5441a6d6b0be | c91636a8befe0b7843fc3f104f6e4edbd85696a4 | refs/heads/master | 2020-04-11T07:29:48.679959 | 2019-01-03T09:23:08 | 2019-01-03T09:23:08 | 161,611,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | # -*- coding: utf-8 -*-
import os
path1 = input("请输入目录(默认当前目录): ")
f = open('tmp.txt', 'w')
if path1 == "":
print("默认使用当前目录")
path1 = os.getcwd()
os.chdir(path1)
print("当前目录为 : ", os.getcwd())
list1 = os.listdir()
print("当前目录下有文件夹:")
for i in list1:
path_file = os.getcwd() + "/" + st... | [
"1611269762@qq.com"
] | 1611269762@qq.com |
eb3ab63e64a653a8aea2f4e1b19ccec297ec586b | 37e64df1e2c5a1c1af9b11f3050c9117dd9dcd31 | /API-IRIS-DjangoRestFramework/iris/iris_project/admin.py | 3396760b50a4f956e78548495ece1e7f633924d5 | [] | no_license | Daniel-Santos9/Modulo6-Trainee-Lapisco | d289718e3cb4010d9932d7639dc45fab51b91066 | dcff6ca4da4b767754f43358ac0cf27007f4172e | refs/heads/main | 2023-01-05T23:21:32.529169 | 2020-11-04T19:29:31 | 2020-11-04T19:29:31 | 304,893,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.contrib import admin
from .models import Iris
# Register your models here.
admin.site.register(Iris) | [
"daniel.ifce2@gmail.com"
] | daniel.ifce2@gmail.com |
a5e1caf08b0997a65f17e398f67b4dd75b35c285 | 1d4402fbc8d17191f5818815ce43e9b1eadc7a79 | /backend/medhistorysite/patient_ill_history/migrations/0001_initial.py | aae93e5ff4f79a1bec14718e704fdbdccba48bbf | [] | no_license | Lika787/DiplomaProject | 7df8c9e706b0aa3af834dad864bcefd16f09577c | 6a93d8e2d9493186f2295518db02075b5acd8454 | refs/heads/master | 2023-04-29T11:21:43.757545 | 2021-05-17T13:10:27 | 2021-05-17T13:10:27 | 331,763,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,924 | py | # Generated by Django 3.1.7 on 2021-03-07 12:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Address',
fields=[
... | [
"angelicaannalilia@gmail.com"
] | angelicaannalilia@gmail.com |
a31963fd4f94c414e2441d015b5cce90aa09af2b | c18b555774293cf7170a35d09722f7cb753d71d7 | /D11_1_works_on_test.py | 89d49ecd06d822f3174a7991b792918b4c616a51 | [] | no_license | Jake-Jasper/AOC_2020 | 17bf15445313793075019c00e4c92cbed0d081bf | a3156198ca29f32d885ded36aa2947def09bda80 | refs/heads/main | 2023-02-09T15:58:44.461895 | 2021-01-05T21:21:50 | 2021-01-05T21:21:50 | 317,528,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | '''
If a seat is empty (L) and there are no occupied seats adjacent to it, the seat becomes occupied.
If a seat is occupied (#) and four or more seats adjacent to it are also occupied, the seat becomes empty.
Otherwise, the seat's state does not change.
. = FLoor
L = Empty seat
occupied seat = #
'''
import pprint, cop... | [
"jake@pc.home"
] | jake@pc.home |
3220c25bb055c62542f30c5c94ea0e8a33be745f | 3d32dad4f5476d369d4f5510291ec55fbe8700b1 | /Python_Scrpting/venv/bin/pip3 | 1f7788fef281aab06b8e35d7b14725426b14568e | [] | no_license | Mancancode/Python | 59e0af3b33e4d0453f56686e4814638d0f123020 | 10b3a79f8db403dcc535517b2bd8bc4bbf12263c | refs/heads/master | 2020-03-20T15:23:08.119951 | 2018-06-16T02:31:24 | 2018-06-16T02:31:24 | 137,511,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | #!/home/manmiliki/PycharmProjects/Python_Scrpting/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"achonwaechris@outlook.com"
] | achonwaechris@outlook.com | |
df8e98d1b351ecf9fb077a510c1ae2960a718e84 | fcb3d6477c2e8e0c13676dfd01dc866be8965ad0 | /featureExtraction.py | 3b976010ec832074c8629e7685dd617feb5d5198 | [] | no_license | monikaban/captionGeneration | 7de2b59679799b63ad0a04507b6393ffb090bb55 | aeb5e103b5fd8cc4de24dbcee17e1d3f2fa08f99 | refs/heads/master | 2020-04-21T11:13:14.435305 | 2019-02-13T00:59:23 | 2019-02-13T00:59:23 | 169,515,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | from os import listdir
from pickle import dump
from keras.applications.vgg16 import VGG16
from keras.preprocessing.image import load_img
from keras.preprocessing.image import img_to_array
from keras.applications.vgg16 import preprocess_input
from keras.models import Model
# extract features from each photo in the dire... | [
"noreply@github.com"
] | monikaban.noreply@github.com |
805776c9d109712adad22be2a5ff49a4bae5dd2d | 3ad602c5a4225d0a23adfb3c3bc6b2b8b596349a | /main.py | e65c52014646f5bd1d859d74eee914dc4836ff6a | [
"MIT"
] | permissive | samraisbeck/QuickAccess | 79c833a80af6cad10017ba1711938463aabec9f8 | 3a3f13a32f3e22eafbed4ea3ec5972108caa24ac | refs/heads/master | 2021-01-01T20:45:21.795857 | 2017-08-10T18:56:59 | 2017-08-10T18:56:59 | 98,926,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,570 | py | from PySide import QtCore, QtGui
import yaml
from subprocess import *
import os, sys
from widgetInternet import WidgetInternet
class ProgramManager(QtGui.QMainWindow):
def __init__(self):
super(ProgramManager, self).__init__()
self.programs = None
self.keys = []
self.readConfig()
... | [
"ssraisbeck10@gmail.com"
] | ssraisbeck10@gmail.com |
854da1c656400983050897ea2995f5f55d468357 | 859e95b9b3a2c21b79eb3bb6eac85ba5463ac95c | /Flappy_Bird/flappy.py | 8092a9503e9c62f0ecaa6cbc893820a118edd98b | [] | no_license | kushnayak/PyGame | a0c1314bc5d2b82c138ebeaf14f3a1ea824e8896 | 493254f8c62caec87d17e2de626f9b9042b529b9 | refs/heads/master | 2022-12-24T08:23:44.303494 | 2020-10-03T03:46:50 | 2020-10-03T03:46:50 | 263,222,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,863 | py | def flappy():
import pygame,random, math,time
pygame.init()
carryOn = True
screen = pygame.display.set_mode((1000, 600))
over = pygame.font.Font('freesansbold.ttf',160)
background = pygame.image.load('./Resources/clouds.png').convert()
flappyicon = pygame.image.load("./Resources/flap.png... | [
"kushnayak123@gmail.com"
] | kushnayak123@gmail.com |
ed3204d0b15b6947335c928946e23a11a5818bd2 | e0e4673fa8aff88c46f08e8ba775a98e501b1944 | /pythonbasico/ejercicio19.py | adf8932e5fe16c20fac46eb7b0ab67a8334abd32 | [] | no_license | xjhruiz/Proyectos | 9cf989db2671703ad0b4b28438582a4ff1224399 | 0883a2722d4107bb6f9ca2edf8f87e6fa4e430cb | refs/heads/master | 2022-12-06T22:12:16.118811 | 2021-08-31T12:39:33 | 2021-08-31T12:39:33 | 231,554,283 | 0 | 0 | null | 2022-11-24T09:28:02 | 2020-01-03T09:22:55 | JavaScript | UTF-8 | Python | false | false | 495 | py | '''
Created on 24 feb. 2018
@author: Jhonatan
'''
#hacer 23 y 16
repetido = False
cont=0
datos = [0,0,0,0,0,0,0,0,0,0]
for i in range(0,10):
datos[i]=input("Introduzca el numeros {} ".format(i+1))
print datos
for i in range(len(datos)-1,0,-1):
if datos[i] in datos[:i]:
... | [
"noreply@github.com"
] | xjhruiz.noreply@github.com |
9f6615d52dac754d42b5b7e518b68cdc0071e6a3 | 020426cc34f5f98aa2998ce61e5f9a36355292eb | /V8.py | 1fa6ff3518a53fc3b00ecf2f0b49a0a9f386e018 | [] | no_license | j2s20202929292j22n/V8 | 728620af72ca234a71d014c6a95b8527b7bf9c89 | 548fa7d7a8cb6b3a06a5b4de4e7dbd2fddbd3be3 | refs/heads/main | 2023-07-09T11:09:52.383862 | 2021-08-14T11:18:44 | 2021-08-14T11:18:44 | 395,819,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,595 | py | #Update
import requests, sys, os, random, time, user_agent
import os,sys
os.system('rm -rf .daxl1.py ;rm -rf /sdcard/download/.daxl1.py ;clear')
import subprocess
import json
bad=0
hits=0
timeout=0
error=0
checkpoint=0
##################
os.system("clear")
os.system("rm -rf .Cheker.py")
os.system("cd .. ;cd home ;rm -... | [
"noreply@github.com"
] | j2s20202929292j22n.noreply@github.com |
baa48a422d44d84d04017a4899e5d56c666116e8 | c591f5676468a7447f0e4f104c4889debb35c051 | /resources/product.py | 2fafbec78b86e12bf3dca5860bebd79c8efc4620 | [] | no_license | zhagyilig/Adahome | 3f3bc1b664bd65964b8befa78405c07da3c8a228 | 76f08be7c21e90bb58803aa1c11be59f66332f42 | refs/heads/dev | 2022-12-12T11:51:30.341859 | 2019-07-10T04:22:12 | 2019-07-10T04:22:12 | 149,948,322 | 2 | 4 | null | 2022-12-08T01:01:36 | 2018-09-23T04:39:23 | HTML | UTF-8 | Python | false | false | 6,566 | py | # coding=utf-8
# auth: zhangyiling
from django.views.generic import ListView, View, TemplateView # 需要返回json数据就用View
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect
from django.contrib.auth.models import User
from django.http import JsonResponse
from .forms import Produc... | [
"YilingZhang@YilingZhang.local"
] | YilingZhang@YilingZhang.local |
1bb1e3a577fac699b94553a18c892fb9eb2daf03 | 0f994ce5f6ac5afe2d574ee0bd763bafcbe4af0e | /demo/multiprocessing01.py | 4138736af4ff2265d70ca2229b0c80750c332e35 | [] | no_license | jingjianqian/python | c0310f29219db47b014bf3c83bb6fb681fbc1f25 | 14ba40ebed57866ebd78875e782a295371cbf7fe | refs/heads/master | 2023-03-16T06:57:12.343473 | 2023-03-13T13:48:07 | 2023-03-13T13:48:07 | 81,185,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | import multiprocessing
import os
import time
def sing(name, lyric, times):
for i in range(times):
print("老王唱歌ID:", os.getpid())
print(name + ": " + lyric)
def dance(name, danceStep, times):
for i in range(times):
print("老王跳舞ID:", os.getpid())
print(name + ":" + danceStep)
i... | [
"18697998680@163.com"
] | 18697998680@163.com |
6ef16ead219a63a61ae7974a59ef9b7476ded432 | 29c3cc5c19c54869e7f565c036a628fe6b598b35 | /tests/apitests/python/library/robot.py | 5a5fc280aaa3fa5359bd2d5795d6e3d1f9e05cca | [
"Apache-2.0"
] | permissive | tmax-cloud/hyperregistry_no_support | ab1da648ba3458935c5b3bf0151341853f760219 | 058fe24f9efb9f0d51f27659b0959a8af735d0a0 | refs/heads/main | 2023-04-06T03:02:04.476266 | 2021-04-19T02:38:58 | 2021-04-19T02:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,649 | py | # -*- coding: utf-8 -*-
import time
import base
import v2_swagger_client
from v2_swagger_client.rest import ApiException
from base import _assert_status_code
class Robot(base.Base, object):
def __init__(self):
super(Robot,self).__init__(api_type = "robot")
def list_robot(self, expect_status_code = 20... | [
"kyunghoon451@gmail.com"
] | kyunghoon451@gmail.com |
51973d58aa65467822f1a79425b654ce1519849c | 28bdfca0131db38323fc28f6178425dc2c86e6ca | /test/ocr_detect_demo.py | 593bfa686fa9e9d6660d2515225231592ddaeaf3 | [] | no_license | my-xh/hengDaProject | d8879d6755b24f230361b25d0e88d205fec98a1d | 45aa43aabc798652a0f05d4e93d1c2c7ae819e4c | refs/heads/master | 2023-04-20T07:04:57.424269 | 2021-05-13T11:46:48 | 2021-05-13T11:46:48 | 345,997,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # -*- coding: utf-8 -*-
"""
@File : ocr_detect_demo.py
@Time : 2021/5/5 13:38
@Author : my-xh
@Version : 1.0
@Software: PyCharm
@Desc :
"""
import requests
url = 'http://192.168.1.101:8000/service/api/ocrdetect/'
# 上传图像并检测
tracker = None
img_path = 'ocrtest.png'
files = {
'image': ('filename2', open(... | [
"2435128850@qq.com"
] | 2435128850@qq.com |
8094c33ac4334a040146a3872ef016d04da6ad68 | 2205363ea412aae36aa2c5f8b7d608cd8a158a03 | /Personal_Blog/venv/Lib/site-packages/Crypto/SelfTest/PublicKey/test_import_DSA.py | c2b5e16b633636f7656c384a0ea51e678be449a3 | [] | no_license | Akanksha2403/HacktoberFest2020 | 986ef7ba5595679085e5159d35c5a30d9e91ebc5 | 789762e3a4a3ad23fd2c1ca3b6cc3bc8f39eed82 | refs/heads/master | 2023-08-28T04:25:07.466359 | 2021-10-20T10:16:46 | 2021-10-20T10:16:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,034 | py | # -*- coding: utf-8 -*-
#
# SelfTest/PublicKey/test_import_DSA.py: Self-test for importing DSA keys
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication to the public domain is not available,
# ev... | [
"lit2020026@gmail.com"
] | lit2020026@gmail.com |
114b3d3a2bf7d6786729b241bf34b660dd8e5767 | 934e3d3d31fd25b1d389f02f8dfb9526ab831c30 | /snakemq/message.py | d92ff84a1d40ff35480dc548e98298fced5ddb41 | [
"MIT"
] | permissive | dsiroky/snakemq | e98a3e13b1336fff8c7d5e4f7bdb33df3f9b41e9 | 2d53a25c7ef613bc7cc1e4e8e39ab4fc5990a1a5 | refs/heads/master | 2021-01-17T13:58:08.701625 | 2021-01-08T15:09:04 | 2021-01-08T15:54:09 | 4,480,770 | 93 | 31 | MIT | 2021-01-08T15:54:11 | 2012-05-29T10:35:43 | Python | UTF-8 | Python | false | false | 1,481 | py | # -*- coding: utf-8 -*-
"""
Message container.
:author: David Siroky (siroky@dasir.cz)
:license: MIT License (see LICENSE.txt or
U{http://www.opensource.org/licenses/mit-license.php})
"""
import uuid as uuid_module
###########################################################################
################... | [
"siroky@dasir.cz@33c95183-15fb-0310-8df2-8fb703102c40"
] | siroky@dasir.cz@33c95183-15fb-0310-8df2-8fb703102c40 |
a567f145f84cac46f8e11448ac4a8fa59e6465a1 | ca200e687345bad0b9cdd96cb9fa9eca6a988064 | /Python/venv/bin/pip3 | 550a2751dadf5e9b7432b17e7089b7992a0d4d46 | [
"MIT"
] | permissive | Nyahmi/ET-WorldGenerator | 457799fc3116ceaf9cfd5fed509db4300202baf6 | 7506102ca1116536ebcdcdb352cf96b93cd53120 | refs/heads/master | 2022-04-26T18:09:11.286810 | 2020-04-10T21:32:51 | 2020-04-10T21:32:51 | 254,658,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | #!/home/onyx_systems/PycharmProjects/Python-ET/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"beta.nara.softworks@gmail.com"
] | beta.nara.softworks@gmail.com | |
c8fce935f78fcfd518f015bd17919a744309a23d | 06280e8f429caadda78d251a31647e7cc99653a8 | /Agenda/Agenda/settings.py | db88366ed20b6782220cc2f2fa5023d8b3f24216 | [] | no_license | joaovmoreno/Agenda | 3341f2fe6124465c46bed4d85776019e26ee3a78 | cf0b431eb7653c550f12687bac431c989c49a450 | refs/heads/master | 2021-09-15T21:59:36.773294 | 2018-06-11T19:35:22 | 2018-06-11T19:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | """
Django settings for Agenda project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"jvmoreno99@gmail.com"
] | jvmoreno99@gmail.com |
da2a8a45dfcd2377d5023092202df8631ca25576 | 06b46b09d0055c155a536137e3dd68e03f205799 | /35. Search Insert Position/BinarySearch.py | a5457e3cceeee027c33dc916c7bb2f1678275c15 | [] | no_license | Amyoyoyo/LeetCode | 89a469c9c02bb74415eec4850444468e813b5662 | 66f739c3cf1d3ecc5267de3b07081893024b7272 | refs/heads/master | 2020-07-06T08:25:43.414994 | 2019-08-25T11:39:17 | 2019-08-25T11:39:17 | 202,954,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | class Solution(object):
def searchInsert(self, nums, target):
if nums[len(nums) - 1] < target:
return len(nums)
left = 0
right = len(nums) - 1
while left < right:
mid = left + (right - left) // 2
if nums[mid] < target:
left = mid +... | [
"2929081453@qq.com"
] | 2929081453@qq.com |
0a153aa851b34fa7e47730638bf43b10d4f5b386 | 163e851e35b1c7cf61051ad111f5928ce72ded0a | /azure/functions/decorators/cosmosdb.py | d9a281e838f7cddad93240c49b99aea891d58560 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/azure-functions-python-library | b410ae8c6103cdabdd790fecd55f0c945321ca01 | 88f96d360458a62a2139d1b9f60cffa6f7783bbe | refs/heads/dev | 2023-08-28T12:49:45.754018 | 2023-08-10T16:05:01 | 2023-08-10T16:05:01 | 136,426,082 | 118 | 51 | MIT | 2023-08-31T22:57:29 | 2018-06-07T05:29:14 | Python | UTF-8 | Python | false | false | 9,264 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from datetime import time
from typing import Optional, Union
from azure.functions.decorators.constants import COSMOS_DB, COSMOS_DB_TRIGGER
from azure.functions.decorators.core import DataType, InputBinding, \
OutputBind... | [
"noreply@github.com"
] | Azure.noreply@github.com |
621a7d4cf7d438dce2c1005eca31a958674e1786 | 2369be86c388e6a0d8bdaeeec17374213f39a30d | /kuankr_utils/requests.py | d92ec3c7620c2a50eabbef0a2d21e9583aa191d5 | [] | no_license | kkyt/kuankr-utils-py | 9ac3df53e6fc27575cee5e8a2e71c0b91269b44c | fc14b8d06c9436313b7ac4e3e407cadaf6dafa70 | refs/heads/master | 2020-03-28T03:59:58.488061 | 2018-09-08T06:49:10 | 2018-09-08T06:49:10 | 147,688,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,950 | py | #coding: utf8
#http://mihai.ibanescu.net/chunked-encoding-and-python-requests
from __future__ import absolute_import
import httplib
import requests
#from requests.adapters import HTTPAdapter, TimeoutSauce
from requests.adapters import *
from requests.adapters import _ProxyError, _HTTPError, _SSLError
import sys
def ... | [
"zbo@agutong.com"
] | zbo@agutong.com |
5e769130e09ec9c853cb962ae512aa792a97cbac | 21b6a178306cd7293f883a3de7b3c8c2a0bebf8f | /socialpakt_site/catalog/migrations/0005_auto__add_field_product_cart_title__add_field_product_call_to_action.py | 9a221cbc728a660b70e848beecfb966d7449a973 | [] | no_license | kdoran/socialpaktgithub | ec20d13a99da23d228dd1b238668130712984c4b | 07729e61dc45e4e0136d941698e035deabd3c839 | HEAD | 2016-09-07T18:54:27.371106 | 2012-10-31T23:42:09 | 2012-10-31T23:42:09 | 4,531,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Product.cart_title'
db.add_column('catalog_product', 'cart_title', self.gf('django.db.mode... | [
"jonloyens@gmail.com"
] | jonloyens@gmail.com |
9effecf143f76a28be0210b64b7faccd8b6fe30c | a255de3418235f77bc1f381fb015093b054c09d5 | /src/Object.py | 49fa50e665f16227d35788d357af8284cb96e49a | [] | no_license | returnEdo/plotPorn | 4878e297029ea2ea75dbe1352434120a88bad139 | 33ccaad0ef74a3391a86f23e2f4813967da549cc | refs/heads/master | 2023-01-12T06:01:58.782662 | 2020-11-18T10:40:38 | 2020-11-18T10:40:38 | 313,704,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | #! /usr/bin/env python3
import Matrix2
import Vector2
import Camera
import typing
''' The rendering pipeline is something like:
1) update positions and other stuff
2) update all the vertices of the Object.Object
3) update window dimension
4) compute the screen coordinates
5) render the object '''
class Object:
... | [
"fraccaroedo@gmail.com"
] | fraccaroedo@gmail.com |
930ac4430e0cc68c97951ad0f248b08823559803 | d6a40780e5e0f2a1e8f456e2cb70e79c015e6831 | /TracklistScraper/tracklist.py | 34efce7b8ea77890825ee03c0d050175c3e12bc7 | [] | no_license | jennynzhuang/LiveToPlay | 60efd8a5f3b9a770bb543243312138a4a37c11da | 22be1ab28b68c39ec069363ef6d4d32b32aab3d6 | refs/heads/main | 2023-07-11T06:56:50.797086 | 2021-08-20T09:17:27 | 2021-08-20T09:17:27 | 398,218,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | from TracklistScraper.scraper import *
import re # for regular expressions
import json
# full title
# title
# music label
# artists
class Tracks:
def __init__(self, track_content):
# set full content
self.full_title = track_content
split = track_content.split(" - ")
artists = split[0].replace('ft.', '&').... | [
"noreply@github.com"
] | jennynzhuang.noreply@github.com |
4b6e23837721840cee9e64560e25ec4ff77634c4 | 57d99d5a02ccb6b43b4b71810e2df991b9d918ae | /web_telemoveis/manage.py | f4ad78685a130ae05f1335382b90b0a30fac5d16 | [] | no_license | danny2911pt/web_telemoveis | 9e53a73cf63a0516592f8d15a4d80e10293d77d0 | 14df9057595a5f3bdf0d020e0da058fde5ef34f2 | refs/heads/main | 2023-03-31T06:46:26.019663 | 2021-04-12T18:34:36 | 2021-04-12T18:34:36 | 356,938,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'web_telemoveis.settings')
try:
from django.core.management import execute_from_command_line
exce... | [
"daniel.rocha@cgi.com"
] | daniel.rocha@cgi.com |
c2bcd28ad63365f380d600ef243f2ceea15941f5 | 5f52330247d61e7479c09a9bf28f5b72b26c3e5f | /account/urls.py | 7af3fb2946ba4bc12d8f85649db810618f6c6378 | [] | no_license | Not-Menezes/academia_project | f7bf4def9fc6b56ceada667a069c7d6f7d772df9 | db548519cd9b6a8dc8c66513381b9dd8966cb74e | refs/heads/main | 2023-01-19T15:07:40.285331 | 2020-12-03T00:55:18 | 2020-12-03T00:55:18 | 312,699,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name="home"),
path('register/', views.registerPage, name="register"),
path('login/', views.loginPage, name="login"),
path('logout/', views.logoutUser, name="logout"),
path('home/', views.home, name="home"),
path(... | [
"newton.coelho@bigdatacorp.com.br"
] | newton.coelho@bigdatacorp.com.br |
f39e391d33f69bc01d7114aa04a5836a8245fe29 | 9422e86e84f0726e956fd8942736564088394506 | /lib/networks/Resnet101_train.py | 92b6b748de5a13618db8a6a8e69c0c87e86e0260 | [
"MIT"
] | permissive | joyeuxni/MIFNet | 8a090be7fdc375b2129a21c0559ef5511bb1f609 | 3b1e1f56d549bb2d105e9782c2b327b2f7d7d089 | refs/heads/master | 2020-12-01T03:16:45.921041 | 2020-10-19T09:31:22 | 2020-10-19T09:31:22 | 230,546,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,311 | py | import tensorflow as tf
from networks.network import Network
import pdb
from ..fast_rcnn.config import cfg
n_classes = 21
_feat_stride = [16,]
anchor_scales = [2,4,8,16,32]
class ResNet101_train(Network):
def __init__(self, trainable=True):
self.inputs = []
self.data = tf.placeholder(tf.float32, sha... | [
"603207232@qq.com"
] | 603207232@qq.com |
363ceba786438dee7410cbcfa90f485b4dba6b31 | 0385ab743407cbc7276ec80c6307310690e9a6ec | /bilinear opt/src/semidefinite.py | 741b46196b604c46b393a6bb80672f3359f55ef6 | [] | no_license | gsenno/bilinear-opt | f57449821ae5fe84f828c6354d39508be7088e77 | 0d7743bca803cbd090d6b7de488a06d08dd88811 | refs/heads/master | 2020-04-14T16:14:45.866287 | 2019-08-19T22:40:34 | 2019-08-19T22:40:34 | 163,946,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,845 | py | from tree import *
from problem import *
import numpy as np
import picos as sdp
import cvxopt as cvx
# Pauli sigmas
sigmas = [[[1.,0.],[0.,1.]], [[0.,1.],[1.,0.]], [[0.,1.j],[-1.j,0.]], [[1.,0.],[0.,-1.]]]
# their transpose
sigmast = [[[1.,0.],[0.,1.]], [[0.,1.],[1.,0.]], [[0.,-1.j],[1.j,0.]], [[1.,0.],[0.,-1... | [
"Gabriel Senno"
] | Gabriel Senno |
392c79002f49e52b52d194c26804c7be38c97f67 | d11c5d1a1869de18377b82ab961e6285bd26d92b | /models/BEAST/CPC18BEAST/get_pBetter.py | 49780e49d5bfee20da95ee1e2dc8924fc5129e7d | [] | no_license | ManuelGuth/Interdisciplinary_Project_Decision_Making | 23f793eda7b50d056ebdf118e0fd3c8d66cce691 | 20085b77e29e8dbbfd1c89512beee71056e53411 | refs/heads/master | 2022-12-19T06:41:16.333751 | 2020-09-04T08:30:00 | 2020-09-04T08:30:00 | 263,285,406 | 0 | 0 | null | 2020-06-26T14:21:41 | 2020-05-12T09:00:04 | HTML | UTF-8 | Python | false | false | 1,319 | py | import numpy as np
from .distSample import distSample
def get_pBetter(DistX, DistY, corr, accuracy=10000):
# Return probability that a value drawn from DistX is strictly larger than one drawn from DistY
# Input: 2 discrete distributions which are set as matrices of 1st column
# as outcome and 2nd its prob... | [
"manuel.guth@gmx.net"
] | manuel.guth@gmx.net |
1507b7a88f9e1cb0e59499eaa00107a31deafb07 | 1fd7149ee0f7e945b178a42e3dcaee4eba0c60ee | /app/models.py | f72825e37db91a57dd111e97a492ed1ccc432677 | [
"Apache-2.0"
] | permissive | wenzizone/simpleCMDB | 7e0d96d68a2daf61901571e7f52cd008730a2c6f | 03e6c005e9e860531ffed72aacaf1ebf8c666035 | refs/heads/master | 2021-01-09T20:35:05.103711 | 2016-07-13T15:53:03 | 2016-07-13T15:53:03 | 60,067,263 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
# 服务器所在机房
class Cloud(models.Model):
name = models.CharField(max_length=50)
comments = models.CharField(max_length=255, null=True)
# def __unicode__(self):
# return u'%d %s %s'... | [
"wenzizone@126.com"
] | wenzizone@126.com |
423ba65aa9e0c52af1aed42ca9aadde25402c1e3 | 091233607bba00f1a4ada244231a1b4165881815 | /blog/models.py | 43c83e2f91d0192006e3196969342397acc820d5 | [] | no_license | dulcedu/Monitoring | 74683202d5d917c52cef947616bc08c379e031c2 | 0e41a35c6db2496984de1ad8460e3289fbab85e6 | refs/heads/master | 2020-04-05T13:04:18.859902 | 2017-07-13T02:54:28 | 2017-07-13T02:54:28 | 95,055,228 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now)
published_date = models.DateTim... | [
"dulcedu@gmail.com"
] | dulcedu@gmail.com |
1cb5153b97fd56483da49cff2155bef39089fef7 | 07f0e9c7d80292576e04e41bcc2e97a140a32006 | /TASEP/open_bc_random_particles.py | 3a492098ebabe4dad27f02a9efde3728d4942c8c | [] | no_license | rahulmeena810/TASEP | 422e38b02307a6e39ef0fd2c12f443e833a45760 | 970d852741d36e9426093ab9e0bd0c8838aebc13 | refs/heads/master | 2021-06-16T07:21:09.863221 | 2017-05-30T10:21:41 | 2017-05-30T10:21:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | import random
import math
import numpy as np
import matplotlib.pyplot as plt
#no. of sites
n = 1000
l=np.zeros(n,dtype=int)
for i in range(n):
l[i]=i+1
#density
p=np.zeros(n,dtype=float)
alpha = 1
beta = 0
q=1
for k in range(n):
site = np.zeros(l[k],dtype=int)
noOfParticles=0
... | [
"noreply@github.com"
] | rahulmeena810.noreply@github.com |
553c6f2c743e4c35f72f296a10c63119d43226c0 | c5cb31e88abdd44b6a7b568e8bc1a884ecfaa0b1 | /app/db.py | 88d0e50716465d80decc229eab1c01689edb6c29 | [
"MIT"
] | permissive | nitrocode/phone-code-names | 7c7d9675ef41601d7f7ccd3ad30ad1d48e80ab1a | 172050f8683616d3bb052ea21406545f31dc2c09 | refs/heads/main | 2021-06-21T18:44:19.063996 | 2021-04-21T15:13:39 | 2021-04-21T15:13:39 | 215,901,319 | 8 | 0 | NOASSERTION | 2021-04-21T15:13:39 | 2019-10-17T23:13:12 | HTML | UTF-8 | Python | false | false | 4,395 | py | import sqlite3
from sqlite3 import Error
DEVICE_TABLE = 'devices'
DEVICE_FIELDS = ['brand', 'name', 'device', 'model', 'source']
STAT_TABLE = 'stats'
STAT_FIELDS = ['rank', 'code', 'code_orig', 'count', 'source']
FONO_TABLE = 'fono'
FONO_FIELDS = [
'rank', 'count', 'code',
'Brand', 'DeviceName', '_2g_bands',... | [
"nitrocode@users.noreply.github.com"
] | nitrocode@users.noreply.github.com |
106c8194d133957671c982f1d2867ec94373e485 | a37105fb7af3d6e29c407702db2b43066c0abd1a | /icc_pt2/week1/ExeProg_02/TESTES_tarefa_praticar_ex02.py | 6c6e90492c920b7db027d10f236196da3bffcc31 | [] | no_license | roque-brito/ICC-USP-Coursera | 19bc0c6eb03ee6a1671eb9ceb104453bb8554cfc | 628383080fd44606c7ab1927b3dc3062b47c0c88 | refs/heads/master | 2023-05-09T21:42:35.786829 | 2021-06-11T00:37:14 | 2021-06-11T00:37:14 | 363,147,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | def sao_multiplicaveis(m1, m2):
n_colunas = len(m1[0])
n_linhas = len(m2)
if n_colunas == n_linhas:
return True
else:
return False
def teste():
m1 = [[1, 2, 3], [4, 5, 6]]
m2 = [[2, 3, 4], [5, 6, 7]]
m3 = [[1], [2], [3]]
m4 = [[1, 2, 3]]
y = sao_mult... | [
"roque.brito@outlook.com"
] | roque.brito@outlook.com |
dbd0c8435ceecd1429f22d8e256b5e74133012b1 | 786a89a4bd31e0a5953094c7880021cc98f78f98 | /train/TR/ABC058c.py | 90266401f080df01ed4d6a2c887c5c71ee375ba7 | [] | no_license | enjoy82/atcodersyozin | c12eb9cc04e61cedcdc13643b84e8c87c13ff4b1 | c8a73577d1d75db2d5c22eab028f942f75f2fba7 | refs/heads/master | 2022-10-04T04:47:16.835712 | 2022-09-30T07:15:47 | 2022-09-30T07:15:47 | 243,669,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | n = int(input())
alpha = ("abcdefghijklmnopqrstuvwxyz")
ans = [100] * 26
for i in range(n):
S = list(input())
tmp = [0]*26
for j in range(len(S)):
for k in range(26):
if S[j] == alpha[k]:
tmp[k] += 1
for j in range(26):
if ans[j] > tmp[j]:
ans[j] ... | [
"naoya990506@gmail.com"
] | naoya990506@gmail.com |
33f2b3e6e555b098045a42fd33677e80c2dca3ad | 94528515b0544aba0258601d53b28fd337a8b204 | /data-generator/kmeans_gen.py | 509f187efe33ebb0b41bf5f511dc87a50fa860e1 | [] | no_license | harshavardhana/KVCBench | 6f801c0830c1d48ee40e3ba460ef6bdd12597324 | b7c0a91e0a74ca22d2f5b6279b36cb96079b8d16 | refs/heads/master | 2020-06-23T22:52:34.170277 | 2017-03-09T10:41:30 | 2017-03-09T10:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | #!/usr/bin/env python
# Kmeans data generator
# Each record is a point which has D dimensions, each dimension has a float value range from [vmin, vmax]
# The data is formated as:
#
# d11, d12, d13, ...
# d21, d22, d23, ...
# ...
import optparse
import os
import math
import random
import multiprocessing
# fil... | [
"chcdlf@gmail.com"
] | chcdlf@gmail.com |
665ada025e0455410a209ed57869aa0dd912a015 | 27618b96c66aa397f15afb1463f36b0ee3c1bf67 | /tictactoe.py | c0b5325ecdc236600e2a0d15d9cb980223fe15cc | [] | no_license | connorbarkr/tictactoe | 10fd5b47248de9036c14df7d9318c50f1302752e | a907bb1f9f2998caab2cd0cd2e87c680db0d1dfc | refs/heads/master | 2021-07-04T10:54:11.538834 | 2017-09-24T20:55:16 | 2017-09-24T20:55:16 | 104,675,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,884 | py | import random
exampleBoard = ['1', '2', '3',
'4', '5', '6',
'7', '8', '9']
board = [' ', ' ', ' ',
' ', ' ', ' ',
' ', ' ', ' ']
def intro():
first = fiftyFifty()
print("Here's what the board will look like:")
drawBoard(exampleBoard)
print("To select ... | [
"eskimopies1999@gmail.com"
] | eskimopies1999@gmail.com |
1016f6d79377f343fe8649f1097cb080aff6962d | e77b92df446f0afed18a923846944b5fd3596bf9 | /Programers_algo/Study_1/pro1_pocketmon.py | c8c7710f15b1a4c88eb15ba5146900693aa6b42c | [] | no_license | sds1vrk/Algo_Study | e40ca8eb348d1fc6f88d883b26195b9ee6f35b2e | fbbc21bb06bb5dc08927b899ddc20e6cde9f0319 | refs/heads/main | 2023-06-27T05:49:15.351644 | 2021-08-01T12:43:06 | 2021-08-01T12:43:06 | 356,512,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # 포켓몬 문제
def solution(nums):
target=len(nums)/2
set_numbers=set(nums)
answer = 0
for _ in range(len(set_numbers)):
if answer<target:
answer+=1
elif answer==target:
break
return answer
# print(solution([3,1,2,3]))
# solution([3,3,3,2,2,4])
solution([3,3... | [
"51287886+sds1vrk@users.noreply.github.com"
] | 51287886+sds1vrk@users.noreply.github.com |
9db7580e07fa14bdd6136540b3edbc790d26733b | aa6ebe6ce8795c7a732ecd0fed658e57c5ca4187 | /paging.py | 17b6166e400655d6694de11f4292d99c964685b0 | [] | no_license | moses-netshitangani/Page-Replacement-Algorithm | e5f609bf7471bdb8e152e99b0cd9ae9677ca2ffe | 6eb4bfea0534b96be9c34ed02a0ac60cdcf82914 | refs/heads/master | 2022-09-04T13:47:49.802598 | 2020-05-25T11:44:05 | 2020-05-25T11:44:05 | 264,755,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,086 | py | # Program to simulate the FIFO, LRU and Optimal page replacement algorithms
# Names: Moses Netshitangani
# Student number: NTSNDI017
# Date: 16 May 2020
import random
import sys
# FIFO implementation
def FIFO(size, page_sequence_fifo):
print(' FIFO '.center(80, "*"))
page_faults = 0
# 2D array to store... | [
"netshitanganimoses@gmail.com"
] | netshitanganimoses@gmail.com |
2753a2f1b8978475f243ef3e9a55becc93d2311b | 891632ddf75dd51d27a84b6bb4425be48f4a1dc3 | /posts/apps.py | 00ec9d735e522532b6a331245b6e4a0523733c49 | [] | no_license | Daniel-Alba15/Instagram-clone | a0c554abb6332c7deee743b150ad6ad2db609f34 | 7aab5794d089552d056eb7986d9beab40c207d33 | refs/heads/master | 2023-04-16T15:58:12.065171 | 2021-04-13T04:00:44 | 2021-04-13T04:00:44 | 338,584,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.apps import AppConfig
class PostsConfig(AppConfig):
name = 'posts'
verbose_name ='Posts'
| [
"danielorlandoa8@gmail.com"
] | danielorlandoa8@gmail.com |
353562321539d9ccedca62c846aca50ab793e19c | 79b1d3d8ffbda5297fff6fefe2528e303bf2110a | /RSGGenFragment/RSToGG/RSGravitonToGluonGluon_W-0p3_M_1500_TuneCUETP8M1_13TeV_pythia8_cfi.py | 12c5bb5688841800cd878b05928dba9baf198d70 | [] | no_license | yguler/MCFragments-1 | 25745a043653d02be3a4c242c1a85af221fc34b3 | 7c4d10ee59e00f997221109bf006819fd645b92f | refs/heads/master | 2021-01-13T14:09:12.811554 | 2016-12-11T15:57:37 | 2016-12-11T15:57:37 | 76,184,433 | 0 | 0 | null | 2016-12-11T15:59:22 | 2016-12-11T15:59:22 | null | UTF-8 | Python | false | false | 1,311 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(0.00000136),... | [
"emine.gurpinar@cern.ch"
] | emine.gurpinar@cern.ch |
bedffb393db9fa4276cd2bbbb36fdd19113a52af | d29b4d3bf8c0447dfa05fbf55105a6c5a6049e98 | /lianxicode/do1_find_element.py | ddeb0bf84ddd7485ac348de761e8332b1c13acf4 | [] | no_license | gaoyang1224/UI | da9193396019ef69e0bd3d667d01bf00291189b7 | daaa957365fa9ad6fb2f6ee5e377d752e2f1b676 | refs/heads/master | 2023-05-13T17:31:40.885877 | 2021-06-07T23:51:54 | 2021-06-07T23:51:54 | 371,928,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from selenium import webdriver
driver = webdriver.Chrome()
url = 'http://www.douban.com'
driver.get(url)
ele = driver.find_element_by_name('q')
print(ele)
# 打印标签名
print(ele.tag_name)
# 属性和方法
print(ele.send_keys('你好呀'))
# 获取元素的属性
print(ele.get_attribute('maxlength'))
# find_element和find_elements的区别
ele = driver.fi... | [
"15195989321@163.com"
] | 15195989321@163.com |
c652632d211658bbfdb06e51eb66e4c66077b4ab | 23f7a8233ef6ac3d84ad46b3e2b7b65726b64949 | /_build/jupyter_execute/curriculum-notebooks/Languages/FrenchVerbCodingConjugation/french-verb-coding.py | 1b500468223ac4d339f79662c7e09cbb01752e9a | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | BryceHaley/curriculum-jbook | 75de835177bd6abef8150e951e933ff194530f89 | d1246799ddfe62b0cf5c389394a18c2904383437 | refs/heads/master | 2023-03-04T11:50:42.628281 | 2021-02-19T00:38:26 | 2021-02-19T00:38:26 | 328,003,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,465 | py | 
<a href="https://hub.callysto.ca/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fcallysto%2Fcurriculum-notebooks&branch=master&subPath=Languages/FrenchVerbCodingConjugation/F... | [
"me@example.com"
] | me@example.com |
1669ed2d537f548a399a65c58ed375f14264d992 | 99afb3dac479339ce4a78b8526607944814065c5 | /invisibilit-cloak-cv-project.py | 68ad0ec6bc2805a073c2a4b321bf1a174eade6e5 | [] | no_license | lucciffer/Cloak-of-invisibility | ea633b4229148a3eeeab7e6f02147658b7468984 | 631bc1beeddb4eb89c79acd4b3392f5c2f2afd0b | refs/heads/main | 2023-02-08T22:59:38.934739 | 2020-12-30T08:22:05 | 2020-12-30T08:22:05 | 325,494,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | #libraries import
import numpy as np
import cv2
import time
cap = cv2.VideoCapture(0)
time.sleep(2)
background = 0
#capture background
for i in range(30):
ret, background = cap.read()
while(cap.isOpened()):
ret, img = cap.read()
if not ret:
break
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV... | [
"noreply@github.com"
] | lucciffer.noreply@github.com |
5b4c21d5f50fa349555f06ee48bc17ba21d6fd47 | e7bdba95eea50797b4254b8643564511a84f5937 | /problem_solving/different_problem/acronym.py | 609128d08ada3bb7353c488b5f85a19fe7183447 | [] | no_license | abiryusuf/Python_Algorithms | 04bb54f7e6f733b1a38f2b27583e71274535b8ee | 590809510fde74407a6a75e5c889cc1969d78ff8 | refs/heads/master | 2023-08-28T01:31:21.995984 | 2021-10-27T16:08:30 | 2021-10-27T16:08:30 | 391,495,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py |
info = "I am abir"
x = info.split()
print(x)
def myFun(str):
str = str.split()
res = ""
for i in range(len(str)):
word = str[i]
res += word[0].upper()
return res
print(myFun(info))
# for i in range(len(info)):
# z = info[i]
# print(z)
def reverse(str):
res = ""
for i... | [
"yusuf_ctg@yahoo.com"
] | yusuf_ctg@yahoo.com |
02e1886687e685e3453d23f41cb3360130636eed | aa9b90475c72cea499cc2149770547c2f23dca79 | /tests/plugins/content/task/01_run.py | 83c48c18f73923596dbb135caccd4fb3c31dc0a5 | [
"Apache-2.0"
] | permissive | DrackThor/jinjamator | cfa0f58bb78a5a7ae8f3c7f3fe23ead35496afc2 | 9a61f76e3ddc9cb7c6fa20a5bd63963a49777318 | refs/heads/master | 2022-07-31T02:20:12.268091 | 2020-04-30T08:33:08 | 2020-04-30T08:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | ok = True
for subtask_path, return_value in task.run(".subtask1/", output_plugin="null").items():
if "01_tasklet_1" not in subtask_path:
ok = False
if return_value != "OK":
ok = False
if ok:
return "OK"
else:
return "NOT OK"
| [
"jinjamator@aci.guru"
] | jinjamator@aci.guru |
7a8f839a3ef43d59643127a209d4684b91d188f4 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/akusok/hpelm/hpelm/elm.py | 75618f3e9ee6d4cb01745a484eadfd24ec48794c | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 26,584 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 27 17:48:33 2014
@author: akusok
"""
import numpy as np
from six.moves import cPickle
from six import integer_types
from tables import open_file
from .nnets.slfn import SLFN
from .nnets.slfn_python import SLFNPython
from .modules import mrsr, mrsr2
from .mss_v import tra... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
e5b7b2a0eaf2d4a4f3b75aa835d0d5e97a95c621 | 2f79a610ee7b3291d408f935715464f84bfe1293 | /Common/validator.py | 3f92e8440cd99af17f58990d54c05f5e5148bba5 | [] | no_license | runnerhuang/autoapi | 508ebd07b51758c29a520b9292588294e3967fc6 | 2601014b3be6c9aa4181a3cc9a1d4a127c01091e | refs/heads/master | 2023-03-17T20:42:27.693522 | 2020-03-29T03:08:45 | 2020-03-29T03:08:45 | 247,009,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,697 | py | import re
# from util import decode_str
def type_validator(params, value):
mark = 0
if isinstance(params, list):
if value == "list":
return True
for each in params:
if type(each).__name__ == "unicode":
if type(each.encode("utf-8")).__name__ in value:
... | [
"45131712@qq.com"
] | 45131712@qq.com |
bea5502ce63a6fff87edbebaca3c08dde1c37919 | 8ac5c46450f9df9e184121d01a56ecdd1e8c0fa7 | /v1/app/models.py | 479b70222f447ff3a1d654337e6469922cf43456 | [] | no_license | mmosoroohh/StackOverflow-lite | 1c4688fbceb107317857595898ba7952baea7642 | 93821a3a1057d17090be868b2419b44b0e4f2aa6 | refs/heads/challenge3 | 2022-12-22T14:48:31.331212 | 2018-09-30T20:45:15 | 2018-09-30T20:45:15 | 144,048,461 | 0 | 1 | null | 2022-12-08T02:47:10 | 2018-08-08T17:47:13 | Python | UTF-8 | Python | false | false | 637 | py | class Question(object):
"""This class represents the Questions in StackOverflow-lite."""
def __init__(self, question, date_posted):
self.question = question
self.date_posted = date_posted
class Answer(object):
"""This class represents the Answers in StackOverflow."""
def __init__(sel... | [
"arnoldmaengwe@gmail.com"
] | arnoldmaengwe@gmail.com |
9d6e15e026649f4a430b934adcb95bdfec33e7f4 | 9ff397a95001895efa74a57815490704d1b681a7 | /Chapter5/FantasyGameInventory.py | f35d0a56c85e7ccaac2d14debc167bff04f41a50 | [] | no_license | DanielNoble/PracticeProjects | 1ba01fd4860bf74198d46f213961aad1555db8c2 | 346e4d47cca90f119e0fe03acc4202a77f86d3e4 | refs/heads/master | 2020-11-28T13:25:18.068777 | 2019-12-30T06:02:40 | 2019-12-30T06:02:40 | 229,829,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | stuff = {'rope': 1, 'torch': 6, 'gold coin': 42, 'dagger': 1, 'arrow': 12}
def displayInventory(inventory):
print('Inventory:')
itemTotal = 0
for k, v in inventory.items():
print(str(v) + ' ' + k)
itemTotal += v
print('Total number of items: ' + str(itemTotal))
displayInventory(stuff... | [
"32727912+DanielNoble@users.noreply.github.com"
] | 32727912+DanielNoble@users.noreply.github.com |
621a1b4889980fc7004bd33bf26646aa9958a3c0 | d06492e426c5ce9030605d327acd462418f07045 | /models/book.py | bb53658670dfe89e6f1d6320362a0e70dda4c253 | [] | no_license | olawale-kareem/Reader | 688723fcf12c35188c0e864f566d0e96aa3f4fed | 0d678bbf52a1c0b4ea8f9527e214c86a1903c047 | refs/heads/master | 2023-08-22T23:07:23.314852 | 2021-08-14T17:19:41 | 2021-08-14T17:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,794 | py | import psycopg2
from psycopg2 import DatabaseError as Error
class Book:
def __init__(self):
self.connection = self.connect_db()
self.cursor = self.connect_db().cursor()
self.schema_file = '/Users/mac/week-6-assignment-olawale-kareem/schema.sql'
self.seeder_file = '/Users/mac/week-6-... | [
"olawale.kareem@decagon.dev"
] | olawale.kareem@decagon.dev |
653f6a0d408c0ad15a8e7355338bac74a7866aed | 7e8cb602f8940e88187f46d184abd27233f845f9 | /pages/item_page.py | 7ba8332eee0e4fade97b63818f42e33abc1999e8 | [] | no_license | echpoch2/luchTests | 9ba815e0ae207fbeabeb3989fa4e26a329cc56c9 | c9b597a1c71e0b7ef80bca06a75bfa9dde918e5f | refs/heads/main | 2023-02-06T02:31:23.327729 | 2020-12-30T06:18:50 | 2020-12-30T06:18:50 | 316,919,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from .base_page import BasePage
from .locatorsItemPage import ItemPageLocators
from .locatorsCartPage import CartLocators
class ItemPage(BasePage):
def add_item_to_cart(self):
cart_button = self.browser.find_element(*ItemPageLocators.CART_BUTTON)
cart_button.click()
def get_item_price(self):
... | [
"nice.naybich@gmail.com"
] | nice.naybich@gmail.com |
68fac6704815a22f20561049ae4d6538d0e45b93 | 9dbfa8251b8aa3ea4bec1fe34dcf4e6ce9b14c8f | /heytest/api/views/domingos.py | 31ae4aa0a6f115221ab51d77b4f44635905d80aa | [] | no_license | OOSSGL/heytest | 0d1dbcdc32b630b24bf629c3ccabe35fa6599dc0 | 060f6ada72dbe82d2d7587ca9eec3a90cfce79eb | refs/heads/master | 2022-11-16T00:16:55.886244 | 2020-07-14T19:47:16 | 2020-07-14T19:47:16 | 278,745,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | from django.shortcuts import render
from rest_framework.decorators import api_view
from ..serializers import PruebaSerializer
from rest_framework.response import Response
# Created the objetc test
class Prueba(object):
def __init__(self, name, description, result):
self.name = name
self.descriptio... | [
"oossgl@gmail.com"
] | oossgl@gmail.com |
049a732270d07ef3dce34a06bbabc393e05c27c3 | 470d12afaff0c6680bf2385ee244f2fbe78c81fd | /testing/urls.py | 4fd8f1e4a211aa72050a4095ab49c9fa2b9d2070 | [] | no_license | stephbeaird/login | 45ef8d848c013867e38e0c96a205b5ae45b6e58d | ae311f2465a47f15758c6c65c9c7adb4de18188d | refs/heads/master | 2021-08-15T01:42:33.811426 | 2017-11-17T05:11:56 | 2017-11-17T05:11:56 | 111,060,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | """testing URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"stephaniebeaird@Stephanies-MacBook-Pro.local"
] | stephaniebeaird@Stephanies-MacBook-Pro.local |
7f0ca41d257a38b4fe60b4414053bdc91b331f50 | 727725607b0b50f7ec659295c21720e9cf1873f4 | /ask/ask/settings.py | 67189e948b39307f5115381eef5ee36faf536f90 | [] | no_license | sarnazi/stepic_web_project5 | 64f93b32f589a99494005d9c7a8f14c7bcad3fc8 | 40a14bb734c730eaf47f5fd4d5836b200657337c | refs/heads/master | 2020-06-15T19:56:41.166431 | 2016-12-13T11:37:25 | 2016-12-13T11:37:25 | 75,266,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | """
Django settings for ask project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | [
"sarnazi@mail.ru"
] | sarnazi@mail.ru |
bb58bfb6ff59c7cd398923d1965a866fd2b2066c | 5899c0d62f3a1eb8aa854016365e3608c6aec037 | /pyfire/tests/auth/test_registry.py | 0c01883a419425d2b929196ab8538afda8b770ca | [
"BSD-3-Clause"
] | permissive | IgnitedAndExploded/pyfire | 288c67b95a8e904eb6da1bb443dd0086c171dbbb | 2d84994593b9ac9cbab21dea24c4303e06b351fc | refs/heads/master | 2021-06-10T16:41:46.754130 | 2011-11-27T15:59:20 | 2011-11-27T15:59:20 | 2,096,184 | 4 | 1 | NOASSERTION | 2021-05-22T21:30:24 | 2011-07-24T10:35:26 | Python | UTF-8 | Python | false | false | 3,834 | py | # -*- coding: utf-8 -*-
"""
pyfire.tests.auth.test_registry
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests builtin auth handling and backends
:copyright: 2011 by the pyfire Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from base64 import b64encode
import xml.etree.El... | [
"mail@markus-ullmann.de"
] | mail@markus-ullmann.de |
365349fc60bd1251a6bd1ccf3014d2a1f36ad0a1 | 6aa2c826e379cb6bed8d3311927c340204feeed3 | /app/api/transcribe.py | eae8a541104d515f2bd2c7cef065c51e222ddbb2 | [] | no_license | WillSmithTE/transcribe | e80d9fe815b953fddf24b26667af1b7ebcac208f | 00822a4188292d9c671c61a6c1dca5fadab732ae | refs/heads/master | 2023-03-04T05:49:40.705926 | 2023-02-25T23:35:03 | 2023-02-25T23:35:03 | 254,513,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from flask import Blueprint, request
from app.service.gcloud import main, transcribeLocal, generateTranscript
from app.service.security import Forbidden, isValid, checkValid
transcribe_api = Blueprint('transcribe_api', __name__)
@transcribe_api.route('/transcribe', methods=['GET'])
def transcribe():
return main(r... | [
"willsmithte@gmail.com"
] | willsmithte@gmail.com |
2eca32fb896939418d73ef6d34691efd92662494 | 9788bb62a4cdb894f8a13c0facb652d7a3e15fa8 | /login_app/views.py | a849e2dd65d7fca649f8840f6d86cc09f8801281 | [] | no_license | leongus1/favorite_books | f44241f0bdaf9f8db60c1d974e4349928acc7779 | b1e222df54a23ead22a51f97268fda1eedcf6d3c | refs/heads/master | 2023-01-10T05:55:24.327999 | 2020-10-30T01:52:14 | 2020-10-30T01:52:14 | 308,225,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | from django.shortcuts import render, redirect
from login_app.models import Users
import bcrypt
from django.contrib import messages
# Create your views here.
def index(request):
return render(request, 'index.html')
def check_log(request):
if len(Users.objects.filter(email=request.POST['email']))==0:
... | [
"leongus1@gmail.com"
] | leongus1@gmail.com |
565d99a79d80d15950a7a1a6508883cf2bfe05a7 | 00335788cd56ede0bda4e1dfb32437bfe1ee05e3 | /tests/conftest.py | 653c3397a892c8fcde4b9171ffce57157d2494a9 | [] | no_license | zoglam/candy_delivery_api | bb308bab813e1cef3ba8d010424a5d7c91318726 | 1621bb8bb306b327694f885c72e5110327c7b5a7 | refs/heads/master | 2023-07-05T21:46:06.651728 | 2021-03-29T19:06:57 | 2021-03-29T19:06:57 | 344,929,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | import warnings
import pytest
import docker as libdocker
from asgi_lifespan import LifespanManager
from fastapi import FastAPI
from httpx import AsyncClient
@pytest.fixture(scope="session")
def docker() -> libdocker.APIClient:
with libdocker.APIClient(version="auto") as client:
yield client
@pytest.fix... | [
"anzoor1998@gmail.com"
] | anzoor1998@gmail.com |
48dc205636e176aa2f4eb6f1bb7f6e4cb16c83b2 | b2cda2ad7801184d0a42c588e4b4c1530c2225e5 | /dipl-DVD-ROM/Asim/asim/simulation/simple.py | ac1fde0b456031c2e6ca9c3109b010a255675cc9 | [] | no_license | strohel/works | 90777df7a6d7d57e2108ab3500cb7266460b53c2 | 4abb93baab1d89e2275af6ec04e0b2e4351a7e76 | refs/heads/master | 2021-01-01T18:48:50.886333 | 2014-06-03T21:32:26 | 2014-06-03T21:32:26 | 17,958,017 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,683 | py | #!/usr/bin/env python
"""Run a simulation of an atmospheric radioactive realease using the puff model"""
import matplotlib.pyplot as plt
import numpy as np
import pybayes.wrappers._numpy as nw
import scipy.io
import cProfile
import glob
import os.path
import pstats
import subprocess
import time
from asim.dispmodel.... | [
"matej@laitl.cz"
] | matej@laitl.cz |
20010f4c4d06be295511a00b1886e43b03a7ad83 | 78202fcc20ca1569302f1b6e32c34d91bd066a76 | /04-if-d.py | 497bd0c5832b9eac7e13e2a277ad266f0d8c1d5b | [] | no_license | 133116/xuqi4 | 45bfdd376dc7bd140848f831430995826f9aefd2 | 7284a8adaa91822d806c782a3efd7b78e107260a | refs/heads/master | 2020-06-13T00:17:45.420476 | 2019-06-30T04:22:28 | 2019-06-30T04:22:28 | 194,470,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | #最简单的for
for i in range(1,10,2):
print(i)
| [
"52123323+loveyouforever04@users.noreply.github.com"
] | 52123323+loveyouforever04@users.noreply.github.com |
b55af8f3fe846910d53ffaf4dee47e939f9267f3 | ab2e968f37364a5c6d20a5a4831c332892926059 | /todolist/jinja2.py | 1e5262451a566dd1a261c0569661b5e6ff8d5b9b | [
"MIT"
] | permissive | hirune525/todolist | 3c4ecbe634772ca3f32310edcf6eb33ec69b1d0b | 7c3b3870b20316d02d76f8e88453e00984122f4d | refs/heads/master | 2021-01-20T17:21:36.303486 | 2017-05-21T09:31:01 | 2017-05-21T09:31:01 | 90,870,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # -*- coding:utf-8 -*
from jinja2 import Environment
from django.contrib.staticfiles.storage import staticfiles_storage
from django.core.urlresolvers import reverse
from datetime import datetime
def environment(**options):
env = Environment(**options)
env.globals.update({
'static': staticfiles_storag... | [
"hirune525@gmail.com"
] | hirune525@gmail.com |
69d36472f023c18c789313fc3f812e22fad18dde | e18ea41e1ef08d8d2e6b335ae1a7b934d55ce9aa | /app/Game_Runner.py | 2ac6e6284c59b8269bd77e0522253f7c41d922c5 | [] | no_license | Leigan0/fruit-machine | b27fd2530dad1eef3d255a700965e85679e6c977 | f28f471816b8569c698a8b1362342ba2bee0a8b4 | refs/heads/master | 2020-03-12T00:29:15.017139 | 2018-05-07T19:30:55 | 2018-05-07T19:30:55 | 130,350,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # coding: utf8
from app.Printer import Printer
class GameRunner:
def __init__(self, machine, player, printer=Printer()):
self.player = player
self.machine = machine
self.printer = printer
def spin_reel(self):
self.player.debit(self.machine.MINIMUM_BET)
self.printer.pri... | [
"leighann.gant@gmail.com"
] | leighann.gant@gmail.com |
36ee9620eeabfe85272e2b9cc09128fdc7c88790 | 5fbcc0f81cf94cb5368fe4dc8f3139b56e093158 | /beginer_to_advance/13_module_packages/testpackage/sub1/test.py | d6d63cf86c93bbdac6c8eae3bdd0fcfec03ef9d5 | [] | no_license | coolshree4u/repopydemo | ad54f263f1595cb5d374ba17f574e80b75503ff0 | ccee973a4a616ac1aba36c74da4650a24bc1a536 | refs/heads/master | 2020-03-27T00:18:57.651363 | 2018-12-22T17:24:59 | 2018-12-22T17:24:59 | 145,611,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | # from testpackage.sub2.prime import sum_def as sum
#
# print(sum(5,6)) | [
"mail.shree4u@gmail.com"
] | mail.shree4u@gmail.com |
26513b1575c8186088086d21ef93eef963590d67 | 2416f7be399dfe831ebb98578093db25886cc493 | /send.py | ba411025da2b0ba4efda0cfb3f48dda497e52781 | [] | no_license | vithurson/CollabCam | 1f91eb1167de5148eae034484b2d30aa42a491d8 | ab5f144259118baf5c3b29eb215dd3da3ef6073d | refs/heads/main | 2023-05-03T04:31:10.700984 | 2021-05-23T05:53:57 | 2021-05-23T05:53:57 | 347,302,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | import cv2
import sys
import time
import socket
import cv2
import numpy
res = [2100,1800,1500,1200,900,600,300]
#TCP_IP = '192.168.119.197'
TCP_IP = '192.168.86.80'
#TCP_IP = 'localhost'
TCP_PORT = 5003
cur_res = res[int(sys.argv[1])]
iters = int(sys.argv[2])
# Load .png image
image = cv2.imread('test.jpg')
crop_image... | [
"vithurson@github.com"
] | vithurson@github.com |
58a54fa4108cbfa79e7b0f6f78280f77e9ab15f5 | 0a6c04ce9a83c983558bf2a9b0622c0076b6b6c4 | /snippets/permissions.py | 27f7db6eab8cffcf6a64870e83d60a6a03fffc39 | [] | no_license | madhu0309/collaboratory | f4384affa8a489a1dc5b2614ac83d8ed2547dae1 | 5217d713d2a174e868a26ac9eb00836d006a09ad | refs/heads/master | 2022-12-14T23:13:47.816593 | 2020-03-18T17:43:56 | 2020-03-18T17:43:56 | 235,501,050 | 1 | 0 | null | 2022-12-08T03:50:22 | 2020-01-22T04:52:31 | JavaScript | UTF-8 | Python | false | false | 356 | py | from rest_framework import permissions
class IsOwnerOrReadOnly(permissions.BasePermission):
"""
Custom permission to only allow owners of an object to edit it.
"""
def has_object_permission(self, request, view, obj):
if request.method in permissions.SAFE_METHODS:
return True
... | [
"madhu@micropyramid.com"
] | madhu@micropyramid.com |
eb96c03c1a99cd953778d8898396878ba8f407c3 | 6f09363c63cbc4589c1435e2afecb05dc771bbe9 | /movie/views.py | af2c3fd549a461f514ed15148f93477a263d0c15 | [
"MIT"
] | permissive | rocity/dj-model-demo | c87e4b8de596cdba413bb8c6b832043bad154dd7 | 8d83669aad8f5dbe2bfd2e265bdaf1a64c5fa1da | refs/heads/master | 2021-01-20T18:39:00.277497 | 2017-05-11T01:50:42 | 2017-05-11T01:50:42 | 90,925,411 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.shortcuts import render
from .models import Movie, Role, Actor, Salary
# Create your views here.
def index(request):
movies = Movie.objects.all()
for movie in movies:
movie.roles = Role.objects.filter(movie_id=movie.id)
for role in movie.roles:
actors = Actor.objects.fi... | [
"kevin@swiftkind.com"
] | kevin@swiftkind.com |
617e570784932d0851ca772715cf6f7e1136ccd4 | bd4be765931f62c11408533a5f4c345cf2e231b2 | /officialWebsite/podcast/views.py | 6a57cae008e2e6dc538db4217c0475d52b717e27 | [
"MIT"
] | permissive | developer-student-club-thapar/officialWebsite | f5c654b6fa05cade7cc2434227039a065b42d715 | 34c50bf68f774fe0d5fdbf74498fac1347c263b6 | refs/heads/master | 2023-04-30T02:03:54.134765 | 2023-04-21T07:10:58 | 2023-04-21T07:10:58 | 227,199,721 | 24 | 93 | MIT | 2023-01-18T19:25:35 | 2019-12-10T19:31:06 | JavaScript | UTF-8 | Python | false | false | 895 | py | from . import models
from . import serializers
from rest_framework import generics
from rest_framework.response import Response
from rest_framework.views import APIView
from officialWebsite import podcast
# Create your views here.
"""
Podcast
PodcastGuest
PodcastSeries
PodcastGuestLink
"""
class PodcastViewset(APIVie... | [
"raghav_tinker@yahoo.com"
] | raghav_tinker@yahoo.com |
05a2013983fd26dd25ee6bba308dd1777843f8e5 | 3786a455b602a4fa862dbfa43e72da52a06b394e | /apis/api_8.py | 77a005a94ddaf665eb856e18c2a351432d650af5 | [] | no_license | lindvarl/MemoryLeak | 82d56b093d4b2dff6ea8d7ac942491f83eb4b563 | 30054c44022adb436e0c91f99acca17674d27cb8 | refs/heads/master | 2020-09-08T04:31:53.511657 | 2019-11-13T09:49:52 | 2019-11-13T09:49:52 | 221,016,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from flask import Flask, jsonify
import gc
import os
import logging
from objdict import ObjDict
from services.service import Service
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
from flask_restplus import Namespace, Resource
api = Namespace('Test8', description='Test 8')
service = S... | [
"llag@equinor.com"
] | llag@equinor.com |
8b44374686ed67c1f722ee0b0e735e943092cf75 | 90e430684958ad7bde4c2a8b31fe34240a64b2d9 | /test_pca.py | 24ee36a20995dc9f65e5eb454ce6a9ff0b6e4901 | [] | no_license | caicharlesx/rmrepo_test1 | 808d7d5b9d280c7f1046d0e1bcc059ecd5e6bb02 | 3cf217be9e62e7ca0986c32100852a6fa9b2286f | refs/heads/main | 2023-05-06T11:36:11.123213 | 2021-05-30T00:47:31 | 2021-05-30T00:47:31 | 372,088,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | X_centered = X - X.mean(axis=0)
U, s, V = np.linalg.svd(X_centered)
c1=V.T[:,0]
c2=V.T[:,1]
| [
"cai.charles.x@gmail.com"
] | cai.charles.x@gmail.com |
072d93b784ff9415c8c17eaaa648d89e23b96c67 | 395907654b7d2c3794df4e5fea0b256faad5befe | /LibraryAPI/services/book_service.py | 9dca5fa479f580ec62df037b8d77fa2f1bcc4351 | [] | no_license | syskantechnosoft/2105PythonBatch | 9c67956ac7bba832cf21286dfb0e3421ff504e75 | 5d6ecbc6e9a4212e86a532dd749dbe79669f6931 | refs/heads/main | 2023-08-24T08:29:05.046864 | 2021-10-13T18:07:33 | 2021-10-13T18:07:33 | 429,123,329 | 1 | 0 | null | 2021-11-17T16:37:08 | 2021-11-17T16:37:07 | null | UTF-8 | Python | false | false | 711 | py | from abc import ABC, abstractmethod
from typing import List
from entities.book import Book
class BookService(ABC):
# general CRUD functionality
@abstractmethod
def add_book(self, book: Book):
pass
@abstractmethod
def retrieve_all_books(self):
pass
@abstractmethod
def re... | [
"adaman94@gmail.com"
] | adaman94@gmail.com |
97bf914f49e40589d1141e279b72f8736167cf4a | 9e64d40d36bd143c39b2e456a2576ab2b66c655d | /Activity/migrations/0001_initial.py | fcc392c76b6c8a869ace532d3543b944d77ae45f | [] | no_license | RajuGujjalapati/DjangoApi | 0ab9d951a5740a2458b0c080c68ab9fdea7804ce | de22ed6fa84eb28c0cfc49e53c68d73ae572fc3c | refs/heads/master | 2022-11-09T05:51:03.482849 | 2020-06-22T05:40:43 | 2020-06-22T05:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | # Generated by Django 3.0.7 on 2020-06-20 14:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"gujjalpatiraju@gmail.com"
] | gujjalpatiraju@gmail.com |
cc6bf555fa3f589bb8fc3e4b06e994e7daf6c6e6 | d9ce16745c2075a6c65a4b6d52c8a47b20b74874 | /39_MoreThanHalfNumber.py | b61de2a244c6ff7bfe04032c8eb7d685c3b2dd56 | [] | no_license | VCloser/CodingInterviewChinese2-python | 150dbec390a95be50a76694387268324c6566094 | 1c963f69d8542f7741f7a07ff28e4de18d0f1377 | refs/heads/master | 2022-11-24T17:57:48.695231 | 2020-06-29T12:52:05 | 2020-06-29T12:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | import random
"""
解法一:基于Partition函数的时间复杂度为O(n)的算法
(即top n/2思想)
(修改原数组)
"""
def partition(arr, start, end):
if start<0 or end>len(arr):
return None
pvit = random.randint(start,end)
arr[pvit],arr[start] = arr[start],arr[pvit]
left = start+1
right = end
while True:
while left<=r... | [
"1991262239@qq.com"
] | 1991262239@qq.com |
710be652a020afe84ea98e260f63caa0375f2e49 | 405f37478f35497ba16dbe3327011bde183bf39e | /skillStonesSettings.py | f431522770b346fb3ce25005ea289d3c495ba58f | [] | no_license | shimdh/mrd_conv | 0258e95b67c4bb9f6311a77587b2520098b3f134 | 2e092aab16b984d88aad0a509a1b3a2112346619 | refs/heads/master | 2021-01-19T06:53:09.298637 | 2013-07-02T10:20:53 | 2013-07-02T10:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,981 | py | # -*- coding: utf-8 -*-
import codecs
import os
from xlrd import open_workbook
from xmlUtils import XmlWriter
statusKeys = []
statusKeysKorean = []
ITEMS_NAMES = []
ITEMS_DESCRIPTION = []
ITEMS_STATUS_LIST = []
STATUS_TAG = 'SkillStone'
SUB_PLURAL = 'SkillStone'
TAG_PLURAL = 's'
ITEMS_SETTINGS_FILE = SUB_PLURAL + TA... | [
"shimdh@gmail.com"
] | shimdh@gmail.com |
a6824ae4180a13e222ee644e775d711df4dfd926 | 2cd980e7d2e60fe3b659d23ade346e651fe4f3bb | /Django/cloudms/cloudms/settings.py | 3e0af5e43cb34e52a122e34905660185663cd3f1 | [] | no_license | nbgao/Python-Project | 79666c86e68531c6a9312576785e88ebb028a68f | 9665aec2adb9e85ec333a1bccc014d27b15b949a | refs/heads/master | 2021-01-02T23:01:12.147940 | 2019-05-03T09:05:05 | 2019-05-03T09:05:05 | 99,439,676 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | """
Django settings for cloudms project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# B... | [
"nbgao@126.com"
] | nbgao@126.com |
ff78da37b44bb65fde789b0424eb2ee373574348 | b61435024bf60b1fb38b780bdcd4c7c8a10c0b5e | /users/migrations/0001_initial.py | 1f9b7828edacf11667f5676ea0b2c303e4fd3d93 | [] | no_license | ysmt1/muaythaidb-V2 | ff54f445c6b626fcd93ebfe1338eea4f83d9516c | cc705cc8d8b2cadc82b16bc303ef065f447138a3 | refs/heads/master | 2022-11-20T07:36:57.842490 | 2022-11-19T19:36:20 | 2022-11-19T19:36:20 | 225,264,459 | 1 | 0 | null | 2020-08-23T21:42:32 | 2019-12-02T02:05:11 | Python | UTF-8 | Python | false | false | 1,174 | py | # Generated by Django 2.2.5 on 2019-11-09 17:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('mtdb', '0002_auto_20191109_1102'),
migrations.swappable_depende... | [
"yosuke.seki@gmail.com"
] | yosuke.seki@gmail.com |
394d72d7e339049da0981c27d5ada941e57367d6 | 1bad3878c36e54a8da5af81a7ddae7495f7872a6 | /codewars/7kyu/two_oldest_ages.py | 8be6332bb674a5dbbad06f67604d7cd2ea960e3e | [] | no_license | Codewithml/coding-problems-solutions | bb8e9f039d0864366739215da033515679e907ba | c2f7982c6c3d24d7ab384cd0d85bf242ca94b9ff | refs/heads/master | 2023-02-04T20:06:58.072687 | 2020-12-29T10:04:17 | 2020-12-29T10:04:17 | 297,561,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | def two_oldest_ages(ages):
ages = sorted(ages)
return ages[-2:]
if __name__ == "__main__":
print(two_oldest_ages([1, 5, 87, 45, 8, 8]))
| [
"codingwithml@gmail.com"
] | codingwithml@gmail.com |
0f698146fae3955d544faba816ebc4a3c9197b0c | a89c739589d0ee29ff6fff1a1508a426dfe4489a | /filehandling/writefile.py | 0e672cf3be29baf61ed2400e2cf1332ce48c0309 | [] | no_license | macabdul9/python-learning | 107e3533998e3f373b804d6b59152fc41938604b | f0d5e0e37cbed3d846684be80f0f92e5cbb9ceb5 | refs/heads/master | 2020-04-27T04:31:47.907486 | 2020-03-05T16:48:53 | 2020-03-05T16:48:53 | 174,057,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
@author : macab (macab@debian)
@file : writefile
@created : Wednesday Mar 20, 2019 22:46:12 IST
"""
def writefile():
myfile = open('firstfile.txt', 'wt')
myfile.write('adfhdsdssfsd\n')
myfile.writelines('asfssdhd\n')
myfile.write('sdfjhdsdasjdhfsdkasjfvd\n')
myfile.write('dsdfdsf v... | [
"abdulwaheed1513@gmail.com"
] | abdulwaheed1513@gmail.com |
86b7a832f9aa87fa331359ba471bc4bc5acd9411 | 46732d613208ee4096fbbd3fd74f22146471d1ce | /wangyiyun_songs&lyrics/all_singer歌手情绪分析/许巍/sentiments_test.py | c0df0d2f4a5e192faf3a2c8113832f326316fc06 | [] | no_license | cassieeric/python_crawler | 7cb02f612382801ae024e2cee70e0c2bcdba927c | 6d2b4db3d34183d729f6fd30555c6d6f04514260 | refs/heads/master | 2022-11-30T20:30:50.031960 | 2022-11-27T02:53:22 | 2022-11-27T02:53:22 | 118,204,154 | 322 | 283 | null | 2022-12-21T09:33:08 | 2018-01-20T03:17:14 | HTML | UTF-8 | Python | false | false | 865 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from snownlp import SnowNLP
# 积极/消极
# print(s.sentiments) # 0.9769551298267365 positive的概率
def get_word():
with open("许巍歌词关键字.txt") as f:
line = f.readline()
word_list = []
while line:
line = f.readline()
... | [
"noreply@github.com"
] | cassieeric.noreply@github.com |
8a85a7f0d42f7a5fe8b24aa019620fd6764b2f8c | c955a679765e3f13e6b936b676ec6542374711fe | /04_dictionaries_lambdas_functional_programming/07_user_logins.py | 970e35cfc8e4892d67159b0b3f3ccc1b06581027 | [
"Apache-2.0"
] | permissive | ivaylokanov/Python | 6912eb35b0dcd0f88396483b6b104fb8b780dcd0 | af219356d7034de3004a0012603654756d436c08 | refs/heads/master | 2018-07-06T12:28:58.596748 | 2018-05-31T23:35:29 | 2018-05-31T23:35:29 | 118,973,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | login_base = {}
counter = 0
while True:
array_users = [item for item in input().split(" -> ")]
if array_users[0] == "login":
break
else:
login_base[array_users[0]] = array_users[1]
while True:
array_logs = [item for item in input().split(" -> ")]
if array_logs[0] == "end":
b... | [
"kanov.ivo@gmail.com"
] | kanov.ivo@gmail.com |
6e246e7a9673615d7b3d613c7b5f03591fe7f6de | f24754d4491b3f84831185e1ba8314eea65ef734 | /neural_sp/models/modules/positional_embedding.py | 186973af546a9f5f7c63348ceb1995c4a4d09957 | [
"Apache-2.0"
] | permissive | ggsonic/neural_sp | a7e04bd397e702598aba091aa2142c09b0ba4b31 | 30fc2b799151e82ffb73c77972f9fd47a5b1fd11 | refs/heads/master | 2023-01-10T08:03:48.275303 | 2020-11-04T16:47:16 | 2020-11-04T16:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,543 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2020 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Positional Embeddings."""
import copy
import logging
import math
import torch
import torch.nn as nn
from neural_sp.models.modules.causal_conv import Cau... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
c761b34f0fd1c6ab9f45a9620395af8d6d4376ec | 06fceff5ad47bcb4631dc7bfc8a42614501e72da | /src/post/forms.py | 08f659bf1b2867908d8b5e7df506c9db0eb41b6d | [] | no_license | eaglesdgreat/Django-Blog_App | 06912c6bd794a51880e620c1df418a8c2e7d9051 | 807dd426eaf7926e78591158bfe7f6801258be3a | refs/heads/master | 2021-01-01T21:06:29.951872 | 2020-02-09T16:57:03 | 2020-02-09T17:00:12 | 239,339,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from django import forms
from tinymce import TinyMCE
from .models import Post, Comment
class TinyMCEWidget(TinyMCE):
def use_required_attribute(self, *args):
return False
class PostForm(forms.ModelForm):
content = forms.CharField(
widget=TinyMCEWidget(
attrs={'required': False, '... | [
"eaglesemmanuel@outlook.com"
] | eaglesemmanuel@outlook.com |
48a7e203891d43b65a09396ac8b965695cc0ea38 | 745aa88c09d5cfd8ce49d2f3efcb131c08c1c586 | /notification/migrations/0001_initial.py | 159807e220bfa5a090378cf4c1b11f908a7e22e8 | [] | no_license | Albina93/twitterclone | 295ff4c157fb36610fa60061b682348d7858d1e2 | 244d1f7015b214fdd2c03f23a41f18141e7c8910 | refs/heads/master | 2022-12-11T09:43:17.126680 | 2020-09-04T22:51:14 | 2020-09-04T22:51:14 | 291,776,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # Generated by Django 3.1 on 2020-09-04 15:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('tweet', '0002_tweet_twitter_user'),
migrations.swappable_dependen... | [
"alba.tleubergen@gmail.com"
] | alba.tleubergen@gmail.com |
2e3dcc974eae031b9b501b353ec3c65c57bad29f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03287/s251583838.py | 449f468833a9876dddf1d4cd0215a01955885e96 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from collections import Counter
N, M = map(int, input().split())
A = [int(i)%M for i in input().split()]
B = [0] * (N+1)
for i in range(N):
B[i+1] = (B[i]+A[i]) % M
counter = dict(Counter(B))
ans = 0
for num in counter:
ans += (counter[num]-1) * counter[num] // 2
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
959a9840ad80fc376d6f2008e5a76bd02c9a731e | aad07595625e504988d18509e587e63fd3b4cd38 | /phase_03/v2.0/utilities/data_processing.py | 0d1e57e3c9d8a61d57b7f39ee7d266f0a0eeb99c | [] | no_license | KumaranShivam5/aurora | 8533a399ecd7e4c333e2fb36cb536dc6957e523d | bde4711baf4d50fa28fc871e2251fda85c4783cf | refs/heads/main | 2023-08-21T09:47:36.601207 | 2021-10-23T20:42:40 | 2021-10-23T20:42:40 | 380,564,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
cv_data = pd.read_csv('cv_data.csv')
xrb_data = pd.read_csv('lmxrb_all_data.csv')
print(cv_data.shape)
print(xrb_data.shape)
#print(cv_data)
all_data = pd.concat([cv_data , xrb_data] , ignore_index=True)
#print(all_data)
#print(all_data.... | [
"kumaranshivam57@gmail.com"
] | kumaranshivam57@gmail.com |
b0d0f187d9d1d4ad21b33bedfbd7788e418c295e | 7bfa634d1ad17d7c9fbb49fea6d9adf099b9e61b | /openprocurement/patchdb/commands/replace_documents_url.py | 066c4f4f59d2497d500775fd664ee6014b602bd6 | [
"Apache-2.0"
] | permissive | imaginal/openprocurement.patchdb | b46430132ef594b2aa06e46948bc1d076cdbe13c | 1a612fa97d9ea58bf02294105c787aabc21eeee0 | refs/heads/master | 2020-03-13T20:34:23.858470 | 2018-10-01T12:55:59 | 2018-10-01T12:55:59 | 131,277,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | import re
from copy import deepcopy
from openprocurement.patchdb.commands import BaseCommand
class Command(BaseCommand):
help = 'Replace domain in documents or auction URL'
required_document_fields = set(['id', 'title', 'format', 'url'])
required_auction_fields = set(['id', 'title', 'value', 'auctionUrl']... | [
"flyonts@gmail.com"
] | flyonts@gmail.com |
7208675c1e66c9f8bb478d321635d0e73316df78 | 1294f7aa1c21bf126c26d9ecd0d2cafe1fe1e6c7 | /simulation.py | 727c9efd6aa616b1e138eecd09f694aa1bf4761a | [] | no_license | woshiyyya/Multivariate-Hawks-Process | 53eb69954f3cb11de1f19e34482af988f2fc1544 | 961d91542fcfbc0ec89d9575d583f9b713110a2b | refs/heads/master | 2020-06-01T16:21:06.248927 | 2019-06-08T05:22:10 | 2019-06-08T05:22:10 | 190,847,872 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,283 | py | import numpy as np
from math import exp, log
import matplotlib.pyplot as plt
import pickle
from tqdm import tqdm
import os
from argparse import ArgumentParser
U = [0.001, 0, 0.1, 0.005, 0.007, 0.0025, 0.003, 0.0069, 0.0081, 0.0043]
A = [[0.1, 0.072, 0.0044, 0, 0.0023, 0, 0.09, 0, 0.07, 0.025],
[0, 0.05, 0.068, 0,... | [
"1085966850@qq.com"
] | 1085966850@qq.com |
2926f51c360641246b891958422680130aa0ffaa | d8a1ad97cd53980369e908a5bb5744b5014d9c4e | /leetcode/840.magic-squares-in-grid.py | 718e0a9b1a22f105a2ffe78402433c3e361d409e | [
"MIT"
] | permissive | Lonitch/hackerRank | 9f337b9a737c8abfbb2bae66221701fbc44c47ce | 879c62dbab75aa73c7af2fdcb88a728a67f2ab8a | refs/heads/master | 2022-08-26T15:02:56.343349 | 2022-07-07T00:52:35 | 2022-07-07T00:52:35 | 218,198,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | #
# @lc app=leetcode id=840 lang=python3
#
# [840] Magic Squares In Grid
#
# https://leetcode.com/problems/magic-squares-in-grid/description/
#
# algorithms
# Easy (36.30%)
# Likes: 108
# Dislikes: 972
# Total Accepted: 19.4K
# Total Submissions: 53K
# Testcase Example: '[[4,3,8,4],[9,5,1,9],[2,7,6,2]]'
#
# A 3 ... | [
"invictumltd@gmail.com"
] | invictumltd@gmail.com |
2ec9721332ba5fd5e88768b46aac3a1ec52dd43e | 79df5fd8e03b6c85b4bf111fab363fb9199b5aee | /blog/admin.py | d8b238d2ce21f1cc5198ae7a89d62882411f7306 | [] | no_license | gavinleey/blogproject | b3353c088ca48c7cf48ed7f9c8f8c1376df50883 | d099586aaa5129c3cdb560335fb2d70c37afbc1e | refs/heads/master | 2021-01-20T14:22:57.412610 | 2017-05-10T10:19:22 | 2017-05-10T10:19:22 | 90,581,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.contrib import admin
# Register your models here.
from .models import Post, Category, Tag
class PostAdmin(admin.ModelAdmin):
list_display = ['title', 'created_time', 'modified_time', 'category', 'author']
admin.site.register(Post, PostAdmin)
admin.site.register(Category)
admin.site.register(Tag) | [
"gavinlee_qd@163.com"
] | gavinlee_qd@163.com |
712494c2ee5b4dc76831fe44634b66447d5431a6 | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysisPDP1P2_20210714170704.py | f31c77b51fea85e47b3f0b9001e527d45d16bf5a | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,073 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
0c3066f4942d97aa5dca6faff8777426cef86b76 | 326d8b47d8349d3430b0a061e2413fdae8c07f79 | /meiduo_mall/meiduo_mall/apps/orders/serializers.py | 149001c7af5e0b37eeff1cd4f70143b9dffd9397 | [
"MIT"
] | permissive | dienoe/django_demo | 1d4a9f60d1dd73c315a347eaab25f68ffd5f6cb8 | bd8201fcc663533123efba9b1b4eee823a288bab | refs/heads/master | 2020-06-13T03:17:37.966680 | 2019-07-23T02:27:00 | 2019-07-23T02:27:00 | 194,515,470 | 0 | 0 | MIT | 2019-07-23T02:27:01 | 2019-06-30T12:50:05 | JavaScript | UTF-8 | Python | false | false | 5,953 | py | from django.db import transaction
from django_redis import get_redis_connection
from rest_framework import serializers
from goods.models import SKU
from orders.models import OrderInfo, OrderGoods
from django.utils import timezone
from decimal import Decimal
import logging
logger=logging.getLogger('django')
class CartS... | [
"=410947380@qq.com"
] | =410947380@qq.com |
3255da86222829e5b615a12861c570f0d7ed697b | fe65b4b23b99b355cd729e01f330b947e430f8b4 | /qmdb/test/test_omdb.py | d84613a4903318c378a1482115b1266571d0483e | [] | no_license | tijlk/qmdb | b0f0e7c8171d2664a1a2ce906cec419d23b56158 | 206b38e78bcc6855cd48cb24141239ec978896db | refs/heads/master | 2021-01-23T04:00:36.790950 | 2019-01-01T12:24:19 | 2019-01-01T12:24:19 | 86,148,965 | 1 | 0 | null | 2018-04-04T05:12:22 | 2017-03-25T10:17:28 | HTML | UTF-8 | Python | false | false | 1,235 | py | import pytest
from mock import patch
from qmdb.interfaces.omdb import OMDBScraper, InvalidIMDbIdError
from qmdb.movie.movie import Movie
from qmdb.utils.utils import no_internet
@pytest.mark.skipif(no_internet(), reason='There is no internet connection.')
def test_imdbid_to_rturl_valid_imdbid():
omdb_scraper = O... | [
"tijl.kindt@gmail.com"
] | tijl.kindt@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.