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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a976abc157ca011f31dc259caf012a24e0288c1 | 00118547c207df7d0e20c4faa70651f57ea88f93 | /TestApi/urls.py | 4347a609bface106fbfd69338a29e27effc51270 | [] | no_license | maheshch123/Django_Rest_Api | 311da66cbad9b864bf391fca8e02a850751d7d25 | 290679c970f9a2bd6e12f256e14a0e5880fbb26e | refs/heads/master | 2022-11-08T20:05:02.993311 | 2020-07-06T06:51:15 | 2020-07-06T06:51:15 | 277,303,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | """TestApi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"a1nusuz7"
] | a1nusuz7 |
06322667cef027cf634ddc8793a130834965eff0 | 63685682acb59882362fd9e4294db6e7a8ad374d | /COMpiler DEsign/cd_IC/cd_ic.py | 1a885ff694bce9813f2e9093ab2836aa34ab430b | [] | no_license | GTron-1729/VirtualBox | 7c6b17f1793fcad70031700d84bd408a1307229e | 4abbae6615ca61e7a80d1f02e4e3e183f5918dd0 | refs/heads/main | 2023-03-05T22:09:18.520930 | 2021-02-19T06:19:28 | 2021-02-19T06:19:28 | 340,276,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | def IsInt(s):
try:
int(s)
return True
except ValueError:
return False
IS = {"STOP" : "00", "ADD" : "01", "SUB" : "02","MULTI" : "03", "MOVER" : "04", "MOVEM" :"05" , "COMB" : "06", "BC" :"07" , "DIV" :"08" , "READ" :"09" , "PRINT" :"10"}
AD = {"END" : "02", "START" : "01", "ORIGIN" : "0... | [
"noreply@github.com"
] | GTron-1729.noreply@github.com |
b81efd9509dfca6b45daae583390c07532597f9f | 99a951aba3eaec191a720794505602c04daeafbf | /src/settings.py | 58c42733ec854937dbb232a982a839afb2389616 | [] | no_license | jian9ang-git/Cutter2 | 6cdf1fec8e44f62c617064e09ca5677e5f812052 | 19f8793e6f8731e72dbc05e72f21d5a0046b1188 | refs/heads/master | 2023-04-04T00:13:01.054320 | 2021-04-16T14:43:04 | 2021-04-16T14:43:04 | 358,627,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,573 | py | """
Django settings for src project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from path... | [
"jian9ang1@ya.ru"
] | jian9ang1@ya.ru |
fc7c34dbe438dfb35ae275fe547efd9189d342c7 | c5ea14333ad364e3b1a698c54e84cd8980ef0497 | /OpenCV-Face-detection/liveCheck2.py | b65b2b6b31758534a2fef0a0cbdc02429c0e0204 | [
"MIT"
] | permissive | lingdantiancai/face-FD-FR | 2d0d5a48b9bf9d8dc5393723604a04ab85a91c9c | 48f1acafb4a4fc767c8d389a28e4b4e73246a7ea | refs/heads/master | 2020-03-16T01:08:21.910897 | 2018-05-29T08:41:25 | 2018-05-29T08:41:25 | 132,433,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | import urllib, sys
import ssl
import urllib.request
# client_id 为官网获取的AK, client_secret 为官网获取的SK
host = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=4a9WXWn9VtuX0bTAGDuo0iAF&client_secret=p8O7KCal5A2qmEmBgEjU6Sw6EC32kMXj'
request = urllib.request(host)
request.add_header('Content-T... | [
"lingdantiancai@163.com"
] | lingdantiancai@163.com |
0b8d320c7555f12567117dea800b9a9d89583b92 | dbfd10d75b6e2f8daca971053c8e38717520f5a1 | /problem_util_yr/batchinfer_sh/nfyy_zhusu_chunk/test_batchinfer_ProblemDecoder_chunk_xbs.py | 0fb2189663869dc9fe014b877ec39b20bb006bad | [] | no_license | 2877992943/src-201705-201907 | b0117bbdf4aadc9612f8c1bf0fc811094ac90cb6 | ff8302047d1d3a28f329c1b1008a350bb51d627e | refs/heads/master | 2021-01-03T23:03:01.314303 | 2020-03-25T08:19:38 | 2020-03-25T08:19:38 | 240,273,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,027 | py | # coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding("utf8")
""" test model with individual samples ,before batch run"""
import sys
print sys.path
from itertools import groupby
from operator import itemgetter
from problem_util_yr.infer.get_chunk_symp_sign import get_abstract
from problem_util_yr.loadDict.lab... | [
"2877992943@qq.com"
] | 2877992943@qq.com |
8a24ec7494a8f9ae7c22898ee2fd432538cdbbaa | 97df98c69b1742111a2d48a0a31aeecd959ad68f | /모듈/내장함수.py | 87a53861f7e8b3058e066bb71387526e89a0b7e7 | [] | no_license | 5d5ng/Python_Study | c3eb2a87b498b51c53240f89aff1a4903c5709cf | fdd14188deec38968040031910a029f8e7a338ef | refs/heads/master | 2022-10-17T08:09:43.163745 | 2020-06-15T04:43:19 | 2020-06-15T04:43:19 | 270,594,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #input : 사용자 입력을 받는 함수
# language = input("무슨 언어?")
# print(language)
#dir : 어떤 객체를 넘겨줬을 떄 그 객체가 어떤 변수와 함수를 가지고 있는 표시
print(dir())
import random # 외장함수
print(dir())
import pickle
print(dir())
print(dir(random))
lst = [1 , 2 , 3]
print(dir(lst))
#list of python builtin 이라고 검색해보면 내장함수 정보를 얻얼 수 있다. | [
"deo1915@gmail.com"
] | deo1915@gmail.com |
a3ec060fccd09341fcdefccc903e4ab2ef8e03c5 | 973d81b2edaea791b7f941c191507af830a839ac | /api/admin.py | 94f3998135d36a9a94950edfb9cd5cba2ef35ada | [] | no_license | pymq/abrakabra | 3dee5cbd33829fa49e8dfbf111dc354bda876501 | 849e68460cbf7f46390b6d28b25142cac0319025 | refs/heads/master | 2021-04-12T03:39:02.263625 | 2018-04-23T14:57:21 | 2018-04-23T14:57:21 | 125,816,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.contrib import admin
from .models import Article, Ticket
admin.site.register(Article)
admin.site.register(Ticket)
| [
"maksimmerzh@gmail.com"
] | maksimmerzh@gmail.com |
862d5c6502ec9a266ac632f8360b731fe3f5108f | 54ddb3f38cd09ac25213a7eb8743376fe778fee8 | /topic_14_virtual_environments/examples/where_libs.py | 6c4acda8450921793b5fae72e4601329a3c2f802 | [] | no_license | ryndovaira/leveluppythonlevel1_300321 | dbfd4ee41485870097ee490f652751776ccbd7ab | 0877226e6fdb8945531775c42193a90ddb9c8a8b | refs/heads/master | 2023-06-06T07:44:15.157913 | 2021-06-18T11:53:35 | 2021-06-18T11:53:35 | 376,595,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | print('\n--------------------------------------- Системные пакеты ----------------------------------------------------')
import sys
print(sys.prefix) # /usr
print('\n--------------------------------------- Сторонние пакеты ----------------------------------------------------')
import site
data = site.getsitepackag... | [
"ryndovaira@gmail.com"
] | ryndovaira@gmail.com |
d3d4b587937017073a905905674b5d5469e5aa24 | 61b9fc6e9acac58fdf9cab6d8310137ed9a4f83b | /blog/views.py | 8f93679c72fd6f465604345f82c5530efac76273 | [] | no_license | khushbua1/my-first-blog | 370000ce127fbe47012c57df3ec0486d43d91208 | 7a63387a26e872892388a2a0f8797294e516b0b8 | refs/heads/master | 2022-12-16T02:30:30.882818 | 2020-09-22T12:33:25 | 2020-09-22T12:33:25 | 297,565,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Post
from .forms import PostForm
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(request, 'blog/post_list.html', {'p... | [
"you@example.com"
] | you@example.com |
fb16758ec5a473a6718d937f43be4d6b51a2f5e8 | 3f6e04a01af3a3863c371bedf33c0bb1d33aae28 | /Day_7/data_checker/validation_checker.py | 2a6d5a04cd17ae4a402b9e99d7bc1ad637208b8d | [] | no_license | aakashv129/ADF_Assignment_1 | 004ec17848c676a762f13d1fe62998942ff2cc62 | ffdb8f83adae8a8fd7079dc0dd82e06612b33a0c | refs/heads/master | 2023-06-06T03:08:48.910263 | 2021-07-01T09:28:33 | 2021-07-01T09:28:33 | 378,084,910 | 0 | 0 | null | 2021-06-28T11:33:33 | 2021-06-18T08:29:34 | Python | UTF-8 | Python | false | false | 7,353 | py | """Validation Checking file"""
import datetime
import re
from datetime import date
from datetime import datetime
#pylint: disable=anomalous-backslash-in-string
#pylint: disable=too-many-arguments
def calculate_age(birthdate_date):
"""Age Calculation"""
today = date.today()
age = today.year - birthdate_dat... | [
"58223250+aakashv129@users.noreply.github.com"
] | 58223250+aakashv129@users.noreply.github.com |
bd179fb68a4c4afd1e1d63b938f8901b2a5849e9 | 8808f1cbd3a658e52d972f0762fd3c885ae03eca | /order_test/run.py | 776f74c766b522189f02dad494921d64d2042c8d | [] | no_license | baihei123456/adidashk_order | 2ba5f59ebd3b5d1443d70bb3aa6f87d79a471440 | 25053b27e762316151eb5080befaf821fd12d7f6 | refs/heads/master | 2023-02-23T05:54:01.457884 | 2021-01-30T09:11:21 | 2021-01-30T09:11:21 | 334,356,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | # -*- coding: UTF-8 -*-
from threading import Timer
import time
import order
def run():
order123()
Timer(600, run).start()
run() | [
"21846582@qq.com"
] | 21846582@qq.com |
a01c4d4d4bb27303a8935fd832804b35f6e302e2 | f7cc8d3f04d34b7d7e64e1b54ba458e4b39bce49 | /DevelopTools/git/2.20.1/package.py | 56f03b01f6f2725c97f2752ad5eaaac801b285c4 | [
"MIT"
] | permissive | cashmerepipeline/CashmereRez | 80a53af61ddb8506bb111cd16450538c3b405689 | 13a73931d715ffac27c337abcd6df97b5c47534b | refs/heads/master | 2020-05-09T12:59:28.106229 | 2019-04-17T16:39:46 | 2019-04-17T16:39:46 | 181,132,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # -*- coding: utf-8 -*-
name = 'git'
version = '2.20.1'
author = ['git']
variants = []
def commands():
import os
develop_path = os.environ["DEVELOP_TOOLS_PATH"]
env.PATH.prepend(os.path.join(develop_path, "git", "%s" % version).replace("/", os.sep))
env.PATH.prepend(os.path.join(develop_path, "git",... | [
"yes7rose@sina.com"
] | yes7rose@sina.com |
7c673a8469e80b5cf611f4fa8123db2d2a9bf00c | 88dda5e76cef286c7db3ae7e5d1a32d28f7815a3 | /reviewboard/cmdline/tests/test_console.py | db92375b2bb3014fa8de5b575a90eab562d327a0 | [
"MIT"
] | permissive | reviewboard/reviewboard | f4d3bada08ba9d6ef53add2d1fdb82bd6cc63a1e | c3a991f1e9d7682239a1ab0e8661cee6da01d537 | refs/heads/master | 2023-08-31T09:03:14.170335 | 2023-08-30T08:22:43 | 2023-08-30T08:22:43 | 285,304 | 1,141 | 353 | MIT | 2023-06-07T16:51:02 | 2009-08-22T21:39:49 | Python | UTF-8 | Python | false | false | 3,242 | py | """Unit tests for reviewboard.cmdline.utils.console."""
import io
import math
import shutil
import kgb
from django.core.management.color import supports_color
from reviewboard.cmdline.utils.console import Console
from reviewboard.testing.testcase import TestCase
class ConsoleTests(kgb.SpyAgency, TestCase):
"""... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
fb489992b890262faed58a161cf7c86e66686337 | da46ce60735b9579f95a805344ccd296cb994c6f | /RectXor/retxor.py | 09c144ee64c5de7722a4aa989f26557c9c5fa2da | [] | no_license | fletchto99/ieeextreme-11.0 | 47f82a108cd747638721f78711737f74d1ca0b45 | 85feabb3ccb88bff865a17ac04dd707e1088055f | refs/heads/master | 2021-07-13T06:55:44.483309 | 2017-10-16T14:10:35 | 2017-10-16T14:10:35 | 107,136,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | import fileinput
import math
def f(a):
res = [a,1,a+1,0];
return res[a%4];
def getXor(a, b):
return f(b)^f(a-1)
stdin = fileinput.input()
next(stdin)
for l, h, n, d1, d2 in ((int(x) for x in line.split()) for line in stdin):
#start and end X values must be computed after since we don't know where eit... | [
"fletchto99@gmail.com"
] | fletchto99@gmail.com |
81a224de45a9bc182b263b6145f5718450487f80 | cec342e42b25c28f86cf84d3ecc346b40dcff0ea | /0x03-python-data_structures/4-new_in_list.py | baf9166f7f596e6cc4f74f5e0e39f76b647ac72a | [] | no_license | kimha1030/holbertonschool-higher_level_programming | 91ed5e9d059697b493095d50abc1b7c52ef3208f | d338b38b6bca42ffa6edec9c60d8039bebe53452 | refs/heads/master | 2022-12-21T03:13:03.738021 | 2020-09-25T05:16:17 | 2020-09-25T05:16:17 | 259,394,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/python3
def new_in_list(my_list, idx, element):
new_list = my_list.copy()
if idx < 0:
return (new_list)
elif idx >= len(my_list):
return (new_list)
else:
new_list[idx] = element
return new_list
| [
"1478@holbertonschool.com"
] | 1478@holbertonschool.com |
da9e10acb00557b0fc415527f75a9fe206f6a20c | 40ddd841c9d14107aa48f7bd8326e9228910d5ab | /main.py | 5e29e2d1127ee244b2371233689db08cb6373e4c | [] | no_license | Raiserfier/2d-Face-Morphing | 956a5876d8717ca4be9b54764c7b80fb8b8bc864 | c2220d763eeecd13aaa127de854edfa97c43233f | refs/heads/master | 2020-11-29T22:07:43.553997 | 2019-12-26T09:03:06 | 2019-12-26T09:03:06 | 230,226,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,482 | py | from face_detection import face_detection
from Delaunay import delaunay, delaunay2
import cv2
import numpy as np
# 通过返回的三角点建立索引
def index_find(point, landmarks):
for index in range(len(landmarks)):
if point == landmarks[index]:
return index
# 根据原本三角形、结果三角形和差值三角形位置计算像素变换结果
def a... | [
"noreply@github.com"
] | Raiserfier.noreply@github.com |
3de507910aa9123b0c70cf6f165d6c1fb0cfd95e | 35b1f561b6214400d3ed1482a52040283018834c | /actionscript.py | 37ad9c2538a081d63107503e662d1cdd90e3415e | [] | no_license | ih8ih8sn0w/lmdump-py | d5315b8084e38a3f1edfe6d62fb418e264f9121d | 3852c3b807c7acb87809125c8c8363db5745f066 | refs/heads/master | 2021-06-06T08:20:02.145422 | 2020-02-15T03:17:30 | 2020-02-15T03:17:30 | 131,685,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,876 | py | import msvcrt as m # temp
opcodesToName = {0x00:"ActionEnd", 0x04:"NextFrame", 0x05:"PreviousFrame", 0x06:"Play", 0x07:"Stop", 0x08:"ToggleQuality", 0x09:"StopSounds", 0x0A:"Add", 0x0B:"Subtract", 0x0C:"Multiply", 0x0D:"Divide", 0x0E:"Equals", 0x0F:"Less", 0x10:"And", 0x11:"Or", 0x12:"Not", 0x13:"StrEquals", 0x14:... | [
"noreply@github.com"
] | ih8ih8sn0w.noreply@github.com |
c8fc584a12109f24ddf81fc102c0def132481d3e | a248e50edb7fb61192e2c341008585e0b37e4f01 | /math/root/root.py | d4e887885e1fe1adf3a04e7c8bf0999518a94d2d | [] | no_license | akipta/hobbyutil | 48508351a86a8f3cebcac97ede8b17097bf408e3 | 1f9bffe7f3c2b3655177e5f8e1916c476344b9c8 | refs/heads/master | 2021-01-18T17:19:05.074492 | 2014-08-28T03:37:28 | 2014-08-28T03:37:28 | 39,736,637 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,361 | py | '''
Root Finding Routines (should work with python 2 or 3)
The following functions find real roots of functions. Note you can
call them using e.g. mpmath numbers and find roots to arbitrary
precision. The functions QuadraticEquation, CubicEquation, and
QuarticEquation use functions from the math and cmath library, s... | [
"donp@localhost"
] | donp@localhost |
1398b9712eb558c5758dca5169e457768641001c | 47d75780751f820ccf6a350caa94a5605be5ac80 | /pySDC/tutorial/step_6/playground_parallelization.py | f3406ee56a8f6c2e8a73d839edc63677eaea0cc3 | [
"BSD-2-Clause"
] | permissive | ruthschoebel/pySDC | 1e8484efc89eaaf9bb71f350790a4bc08b0f2127 | de2cd523411276083355389d7e7993106cedf93d | refs/heads/master | 2022-06-07T19:50:57.181584 | 2022-05-11T12:50:29 | 2022-05-11T12:50:29 | 146,288,756 | 0 | 1 | BSD-2-Clause | 2021-08-11T12:54:48 | 2018-08-27T11:34:15 | Python | UTF-8 | Python | false | false | 2,467 | py | import sys
from mpi4py import MPI
from pySDC.helpers.stats_helper import filter_stats, sort_stats
from pySDC.implementations.controller_classes.controller_MPI import controller_MPI
from pySDC.tutorial.step_6.A_run_non_MPI_controller import set_parameters_ml
if __name__ == "__main__":
"""
A simple test progra... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
67a3f3a04613459464a4ed8759f9cb6ff4a3791c | eed51baed10ce8f80e7925d94199f40ee70c8e9e | /users/helpers.py | 7cbf139f333740f31aea320c80909f7021cccffc | [] | no_license | fortniteclipz-com/ts_test | 1b0a4e1d1ede6713a8c13c4a75bebec82270f9ae | f213b1ea20bbffc6b1fdbe6f4b87fa46be3c266d | refs/heads/master | 2022-02-04T12:25:03.218671 | 2019-06-21T18:37:55 | 2019-06-21T18:37:55 | 145,085,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | import csv
import json
import requests
COLUMNS = [
'twitch_user_id',
'twitch_user_name',
'twitch_followers',
'twitch_videos_percentage_fortnite',
'instagram',
'email',
'twitter',
'twitch_views',
'twitch_videos_count_total',
'twitch_videos_count_fortnite',
'latest_stream_id',... | [
"sachinahj@gmail.com"
] | sachinahj@gmail.com |
c7410b3413ce3080ad0184a2b5e94d3dab6b53f5 | c489dd902955d805b6753f847c4fee38281c4c2f | /VB_Classes/mouse_and_match.py | a02720bf2e9eac663595a426c04ddefa2719ab52 | [
"MIT"
] | permissive | germal/OpenCVB | f4f866abdc1910ccac5804ff8581702f38d2e93b | 312c452f3e981aa8238aa5f2d3d9928100bbeab6 | refs/heads/master | 2023-03-06T06:09:15.749020 | 2021-02-19T00:11:52 | 2021-02-19T00:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | '''
mouse_and_match.py [-i path | --input path: default ../data/]
Demonstrate using a mouse to interact with an image:
Read in the images in a directory one by one
Allow the user to select parts of an image with a mouse
When they let go of the mouse, it correlates (using matchTemplate) that patch with the image.
... | [
"bobdavies2000@gmail.com"
] | bobdavies2000@gmail.com |
e29f2e9ff22f4f8425a6cbfccab6305ed6546f73 | 3febaca6c3983d7accc2696d134423090d93bb3c | /mPyPl/mdict.py | baf45e3e91aa96e32a3f977abd78e1d00ffb7c19 | [
"MIT"
] | permissive | dbr176/mPyPl | f9160333943ff6b3b4e0137a72fde72520641e8d | c3df1d8b1535e51783be1b44222ce10dfbf11cf1 | refs/heads/master | 2020-04-18T20:21:25.991259 | 2018-11-28T21:36:28 | 2018-11-28T21:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | # mPyPl - Monadic Pipeline Library for Python
# http://github.com/shwars/mPyPl
import enum
from .utils.coreutils import getattritem
"""
Different evaluation strategies that can be used for `mdict` slots:
* `Value` - just the value stored as in normal dictionary
* `LazyMemoized` - a function is stored, which is ev... | [
"dmitri@soshnikov.com"
] | dmitri@soshnikov.com |
2fb41fcf6177477f8a6e3c023a76ca452fae2062 | 119e0fc8341c622b9f71e9de514c9674d6aa37df | /api/admin.py | 71a9e32259a985348e8106a9d799ce7b51c54b8f | [] | no_license | and2carvalho/apiDjangoMongo | 44bcbde60f231614fd85d423c9ba866efc1d7d1b | 3d82412646c99989920e8cdc2c11713110d88c63 | refs/heads/master | 2022-12-11T21:58:41.802798 | 2020-09-04T20:31:05 | 2020-09-04T20:31:05 | 292,935,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.contrib import admin
from .models import Autor, Noticia
admin.site.register(Autor)
admin.site.register(Noticia)
| [
"and2carvalho@gmail.com"
] | and2carvalho@gmail.com |
2189449b9cc2cd7a1976a6b753bfcb007e9cb6f6 | 3e61ffb39fcd79e7d7c1647ce89a6670a0416dc5 | /2-GUI/2-window-layouts/3-grid/gui.py | b39a4497e4a5a161219318d5549a0e40a6a137af | [] | no_license | adam-worley/com404 | 34b0904de32b8c361d29487f8b1e66482a15fb44 | e01f2e38a680be0a694c886a9aa0c5fbdb10cd45 | refs/heads/master | 2020-07-31T13:27:18.201443 | 2019-12-10T13:01:19 | 2019-12-10T13:01:19 | 210,617,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | from tkinter import *
class Gui(Tk):
def __init__(self):
super().__init__()
# set window properties
self.title("Newsletter")
self.configure(bg="#ccc", padx=10, pady=10)
# add components
self.__add_outer_frame()
self.__add_heading_label()
self.__add... | [
"50365867+adam-worley@users.noreply.github.com"
] | 50365867+adam-worley@users.noreply.github.com |
693341e6d7d4f8346684324303360f2ab9c7e412 | dfc0ca4068e56487939db9d1db97efb0c172055e | /app/core/tests/test_admin.py | 0416862d0d3b23e736e859bbfc47c736382d527d | [] | no_license | melisayu/recipe-app-api | a13753fb3c92db127f55e7d12ad1b7acfe62d8bd | 2f021f3866060adc0c4e9f81229dd9d021cddc83 | refs/heads/master | 2022-12-11T03:12:14.159960 | 2020-09-13T06:24:30 | 2020-09-13T06:24:30 | 293,997,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from django.test import Client, TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
def setUp(self):
self.client = Client()
self.admin_user = get_user_model().objects.create_superuser(
email='admin@yopmail.com',
... | [
"melisayuliakristin@gmail.com"
] | melisayuliakristin@gmail.com |
d0eda5cb465ef3bf2462ef042e41d7d94f39edb2 | 543ec18f1e0ba4e950f4a26eaae550f8a89617f9 | /ETC/11652.py | 4e9a076cc6467e6c6b8c6197b1d9e5783d709aa6 | [] | no_license | YUNKWANGYOU/Quiz | 287e1dcb3a9851fa7c42b6931c550b7895aea112 | 92723eedfe645ae66b130685fa5a7be7ba58c293 | refs/heads/master | 2023-08-25T17:26:29.207440 | 2021-10-23T13:17:56 | 2021-10-23T13:17:56 | 292,081,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import sys
n = int(sys.stdin.readline())
dict = {}
for i in range(n) :
num = int(sys.stdin.readline())
if num not in dict.keys() :
dict[num] = 1
else :
dict[num] += 1
max_num = max(list(dict.values())) #개수중 최대 반환
a = []
for key, value in dict.items() : #아이템 쓱 한번 훑음
if value == ma... | [
"1996yyk@gmail.com"
] | 1996yyk@gmail.com |
5e0f11dfe838ed901fe64ae8ff13718f8e6d8536 | c551be0fefd13de5f05593fcceb7f5938664dfc3 | /Backend/config/urls.py | 711ce5d0d0d64f67ff0d15bba262419cb64771d3 | [] | no_license | Take-Tetsu/rasp_training | 7ef8d450a5e14b44f57a03ecc36e0bd3a9e3ecb8 | d212e100476354a8661032a7ca480bee9f70cb9c | refs/heads/master | 2021-09-23T16:09:11.390348 | 2020-09-05T02:10:44 | 2020-09-05T02:10:44 | 246,305,228 | 0 | 0 | null | 2021-09-22T19:42:08 | 2020-03-10T13:15:11 | PLpgSQL | UTF-8 | Python | false | false | 894 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"takeyama.tohru@sharp.co.jp"
] | takeyama.tohru@sharp.co.jp |
96afdf579b1e2cde2163c2b4c6b7271e7f5f7fbe | e2032d5efbe5b3a771a6104def770c8a66e3cc95 | /problem3.py | 1473f400cf175637bd6d86376cf2738d145b636e | [] | no_license | rmvook/HW7_CMSC389R | d8359cd8fa54a6095751cbca2975d378650a757d | 8c8167ca37ca3dfa29c6aedda8db3f1ce66383b1 | refs/heads/master | 2020-03-07T15:13:31.654545 | 2018-03-31T20:15:04 | 2018-03-31T20:15:04 | 127,548,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import socket, hashlib, string, sys, os, time
host = "irc.csec.umiacs.umd.edu" # IP address or URL
port = 4444 # port
def main():
# use these to connect to the service
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
fo... | [
"rmvook@gmail.com"
] | rmvook@gmail.com |
041d8284f15d756503d3b538adeb3acc844a7f13 | 45169e140053eb97b4cc171a4c01126536c4cc4f | /05+EenvoudigeFuncties/Vis viva.py | 585786c049b80d1e91793aea0c6895275eb263d0 | [] | no_license | EmielThomaes/5WWIPython | e2357a5df133fdc3b50f0c807ca1c8d783f01eb4 | 3178be9d516e350ff743a68c17d0315985215243 | refs/heads/master | 2020-07-21T05:11:23.923329 | 2020-03-06T11:00:21 | 2020-03-06T11:00:21 | 206,760,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | from math import pi, sqrt
# invoer
afstand = float(input('afstand van de satelliet tot het middelpunt van de aarde = '))
snelheid = float(input('snelheid van de satelliet ten opzichte van de aarde = '))
# berekening
geocentrische_constante = 398600.4418 * pow(10, 9)
lengte_grote_as = (geocentrische_constante * afs... | [
"emiel.thomaes@sgsintpaulus.eu"
] | emiel.thomaes@sgsintpaulus.eu |
d2c8bad35b2e517726eb0b6570f47d80111ffddf | 6cb82a6798716a99ea481637490a5ca64afa447a | /Visualization_all_pair_cosine.py | 40098b11ad715f80b80959a8b335c9a22f8d0f20 | [] | no_license | BYOMKESHJHAIIITB/firstGit1 | e453a55f87b5977d18517986c273ed705a2f446e | e2bf2e1393c037b1dce083a082fb66574d4feed1 | refs/heads/master | 2021-01-17T08:53:16.250318 | 2016-04-18T05:22:24 | 2016-04-18T05:22:24 | 33,564,283 | 0 | 1 | null | 2016-04-18T05:22:25 | 2015-04-07T19:40:30 | Python | UTF-8 | Python | false | false | 2,647 | py | import json
import matplotlib.pyplot as plt
import numpy as np
cluster_info_file = open("pepperfry_mean_vecotor_mar_03_with_source.json","r")
def getInfoMean(seed,cluster_info_file):
cluster_info_file_inside = open("pepperfry_mean_vecotor_mar_03_with_source.json","r")
final_position = []
urlh = []
title = []
s... | [
"byomcourses@gmail.com"
] | byomcourses@gmail.com |
891c6901af6494d438f31911941663f0620ea9e8 | 58ea52e6537ab0a82d106eac1955633d57301fc6 | /authapp/urls.py | 91a5777c3f5713429951d89dfb2c1aa5d5ef8fc5 | [] | no_license | VProgramMist/geekshop | 8053d3f0dab483195dceca56063ad4906dad144b | 63899385d2a187abaf06e453109d782396a82f54 | refs/heads/master | 2023-03-25T21:29:23.883706 | 2021-03-22T08:52:51 | 2021-03-22T08:52:51 | 339,402,876 | 0 | 0 | null | 2021-03-22T08:52:52 | 2021-02-16T13:12:18 | CSS | UTF-8 | Python | false | false | 455 | py | from django.urls import path
from django.contrib.auth.decorators import login_required
import authapp.views as authapp
app_name = 'authapp'
urlpatterns = [
path('login/', authapp.UserLoginView.as_view(), name='login'),
path('register/', authapp.UserCreateView.as_view(), name='register'),
path('logout/', aut... | [
"vvvaleriyyy@gmail.com"
] | vvvaleriyyy@gmail.com |
256d5b571a6a4caff57032edceb77b9f507cec59 | 15e308ddb4d03767900a7ae52b3d01e009dd5bcb | /yapily/models/authorisation_embedded_request_response.py | ab22519a92cd841460d0c9779b4782521bcd9acb | [] | no_license | MedatechUK/yapily | be6d01df2a4d8a5f4ce8c79dcb098bd297fb884c | e4440d67a504dc6a8ec9f314e1362d5f6cf424a4 | refs/heads/main | 2023-07-07T16:53:41.059013 | 2021-08-23T06:57:23 | 2021-08-23T06:57:23 | 381,364,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,947 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
The version of the OpenAPI document: 0.0.359
Generated by: https://openapi-generator.tech
"""
import pprint
impor... | [
"simonbarnett@emerge-it.co.uk"
] | simonbarnett@emerge-it.co.uk |
2288003f49f68a310c971a85fef4031187c4e659 | c828cd876d92b1e10309909c1d4e63ae64d5dfde | /simple_python_programs/howmanyrecordsbelow.1242.py | 3af12bb214fccd2b8ea3ae085a564d25504bb60d | [] | no_license | walkergussler/random_python | 111770b2c06c0560145210073510568c5eeca564 | c7d8386d906ce4c21490b651d9f3a49ab3fa24e5 | refs/heads/main | 2023-01-09T16:39:58.916523 | 2020-11-10T07:24:18 | 2020-11-10T07:24:18 | 311,574,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #!/usr/bin/python
import sys
import os
import re
file=sys.argv[1]
f=open(file,"r")
lines=f.readlines()
f.close()
val=0
for line in lines:
splitline=line.split("\t")
val+=1
if float(splitline[2])>.1242:
print(line)
break
print(val-2)
| [
"mnz0@biolinux.biotech.cdc.gov"
] | mnz0@biolinux.biotech.cdc.gov |
2baf1a5d99f7d318b289dd5c04beb3958f6099f9 | c27c51f5c33e0431dbe7db6e18c21b249d476cfa | /OpenSource_Python_Code/pyke-1.1.1/examples/towers_of_hanoi/compiled_krb/towers_of_hanoi_bc.py | 2ba8698538eb3a35b97edcb01141d097a8eced30 | [
"MIT"
] | permissive | bopopescu/Python_Stuff | 9bef74e0db17bb5e3ba2d908ced01ee744820d80 | 9aa94a0fa5e4e802090c7b29ec88b840e304d9e5 | refs/heads/master | 2022-11-20T06:54:36.581623 | 2017-12-04T18:56:02 | 2017-12-04T18:56:02 | 282,171,169 | 0 | 0 | null | 2020-07-24T08:54:37 | 2020-07-24T08:54:36 | null | UTF-8 | Python | false | false | 19,914 | py | # towers_of_hanoi_bc.py
from __future__ import with_statement
import itertools
from pyke import contexts, pattern, bc_rule
pyke_version = '1.1.1'
compiler_version = 1
def solve(rule, arg_patterns, arg_context):
engine = rule.rule_base.engine
patterns = rule.goal_arg_patterns()
if len(arg_patterns) == len(patte... | [
"thelma1944@gmail.com"
] | thelma1944@gmail.com |
a0963ca4ea83528e9df19dcb0eb12b6b55b35657 | dfafecd03f99aa411659e03fca3ca4233e323bf3 | /PredictiveProject/PredictiveAcceptance/context_processors.py | 8f605b1a0a915263358699c3e7140b7f05fe9310 | [] | no_license | Chermaraj/PredictiveProject | 822c5c18f5e61792b3f870ada8bb0635bbd7befa | 30485d501b98976924be5e3cb0b69c6cad4d7787 | refs/heads/master | 2023-01-07T16:07:17.206303 | 2019-04-01T03:57:43 | 2019-04-01T03:57:43 | 174,879,398 | 0 | 0 | null | 2022-12-27T15:35:28 | 2019-03-10T20:50:38 | CSS | UTF-8 | Python | false | false | 299 | py | from PredictiveAcceptance.models import PredictiveUsers
def getuserName(request):
if(request.session['username']):
user = PredictiveUsers.objects.get(username=request.session['username'])
return{'userList': user}
else:
user = ['NoEmptyList']
return{'userList': user}
| [
"mchermaraj@gmail.com"
] | mchermaraj@gmail.com |
96e4b45ecec051d2bc35cb2a4b8873169812644b | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/python_re2_test_file/regexlib_1114.py | 109c76865def6cb38c127f4b4f59b0efaf53831b | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # 1114
# ^p(ost)?[ |\.]*o(ffice)?[ |\.]*(box)?[ 0-9]*[^[a-z ]]*
# POLYNOMIAL
# nums:5
# POLYNOMIAL AttackString:"po"+" "*5000+"! _1_POA(i)"
import re2 as re
from time import perf_counter
regex = """^p(ost)?[ |\.]*o(ffice)?[ |\.]*(box)?[ 0-9]*[^[a-z ]]*"""
REGEX = re.compile(regex)
for i in range(0, 150000):
ATTAC... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
e46fa6b64d83fdaa442c5a983b25d61813819cee | 5bea7fd1fed98c3124861d7cb142abba11146910 | /PL0/program.py | 2be770c7759af577d9bf3a732efe5891040899a5 | [] | no_license | handsome-fish/pl0 | b932ef5255cebfb979f1ad348248bc11cc15b1b0 | b0a0378773adaaf549ee48da84c4691fa24845fc | refs/heads/master | 2020-05-03T00:54:10.667383 | 2019-03-29T03:27:29 | 2019-03-29T03:38:35 | 178,322,546 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | # program -> block period_token
def program_block(ast):
return ast[1] | [
"1658431245@qq.com"
] | 1658431245@qq.com |
3e8959dc002cd803da25fdb901f44ec5bee9cc59 | c4c0f5d742b88106053b63a0c0e710efeb867e79 | /flowcells/migrations/0006_contamination_cctttccc.py | b8fdc76adeeda7146e84c6a9c89c6221fa37716e | [
"MIT"
] | permissive | bihealth/digestiflow-server | 0ed49c371cd59da5c331259a65cdd75ca71fab76 | 83f94d068d8592d83254a0b4271be9523334339d | refs/heads/main | 2023-02-18T05:56:13.261282 | 2022-04-21T09:43:58 | 2022-04-21T09:52:52 | 165,990,428 | 16 | 3 | null | 2023-02-16T05:17:33 | 2019-01-16T06:56:04 | Python | UTF-8 | Python | false | false | 1,500 | py | # -*- coding: utf-8 -*-
"""Add contamination ``"CCTTTCCC"``"""
from __future__ import unicode_literals
from django.db import migrations
def forwards_func(apps, schema_editor):
KnownIndexContamination = apps.get_model("flowcells", "KnownIndexContamination")
db_alias = schema_editor.connection.alias
KnownI... | [
"manuel.holtgrewe@bihealth.de"
] | manuel.holtgrewe@bihealth.de |
14f6313e88a64fbfd396d42616a65189708c8b08 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/datashare/v20201001preview/get_blob_container_data_set_mapping.py | 29bb28811a48733545b123863e9ee6d29436f6f5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,363 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
f0b17c9ee092eb0b078e03c22fa8042ac4abd3d1 | ff467df3e087362642e1362f805504023b3425c7 | /current_doctor.py | ac661752dfa717ed8be10defd31a3953f6b75990 | [] | no_license | Rishabh-Nagar/Doctor_appointment | 3de18fda342f4b747a087181554ac290efd2feb4 | 5b6ce4da7ff147f9d8080af4b8b909cbb4ff21cf | refs/heads/main | 2023-06-15T12:37:04.712226 | 2021-07-16T16:27:51 | 2021-07-16T16:27:51 | 386,699,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import sqlite3
cur_d = sqlite3.connect("current_data_doctor.db", check_same_thread=False)
cud = cur_d.cursor()
def create_current_doctor_table():
cud.execute('CREATE TABLE IF NOT EXISTS current_doctor_table(name TEXT, age INTEGER, sex TEXT, degree TEXT, cur_hosp TEXT)')
def add_current_doctor_data(na... | [
"noreply@github.com"
] | Rishabh-Nagar.noreply@github.com |
951b436e9ab532c7b4051aec778167f13acf0cf6 | f38ae6d6d38aaf6123b45105ac07251d6b82a4d1 | /tests/test_fileio.py | b35d23b0f650ccd0289c280dadd3913f1572f75f | [] | no_license | brettviren/btdtwf | 96d37a505629a52fff445244351fd90edc4071d7 | 26a5eede976c6a5287e8087cfd29f830bec6c240 | refs/heads/master | 2021-01-17T12:00:38.972031 | 2016-07-22T21:06:34 | 2016-07-22T21:06:34 | 11,324,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | #!/usr/bin/env python
from btdtwf.nodes import *
def test_fileio():
| [
"bv@bnl.gov"
] | bv@bnl.gov |
4c9b050caaa96eada935577fa77f13cd5fc42bce | 1c535f8c755b9f09f550168141c42c99b7a377c6 | /basicTxtReader.py | 8324be32e2184b33590698fdfad9e18e140109ea | [] | no_license | sametdlsk/python_Basics | bb8bdfac9f12ac0d24492e57d901789fc1dd9ec9 | ba09429c5d36d7bd5ba96d022bb8ef23b7066307 | refs/heads/main | 2023-08-17T09:54:27.509739 | 2021-09-29T20:37:17 | 2021-09-29T20:37:17 | 411,822,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # -*- coding:utf-8 -*-
"""
Bu kodlar Python ile Pycharm editörü kullanılarak yazılmıştır.
Bu kod basit metin dosyası okuyucusudur.
These codes are written using the Pycharm editor in Python.
This code basic txt reader,
used keyboard library.
"""
import keyboard
xname = input("Dosya yolunu giriniz, Daha... | [
"noreply@github.com"
] | sametdlsk.noreply@github.com |
63ab4c664e6390740bcf440088b411351a2e1e9a | 9805edf2b923c74cf72a3cfb4c2c712255256f15 | /python/322_coin_change.py | 5bab0ce6427d8e79bee25ffbef31ab0675ca3a91 | [
"MIT"
] | permissive | jixinfeng/leetcode-soln | 5b28e49c2879cdff41c608fc03628498939b0e99 | 24cf8d5f1831e838ea99f50ce4d8f048bd46c136 | refs/heads/master | 2022-10-12T17:02:53.329565 | 2022-10-06T03:21:56 | 2022-10-06T03:21:56 | 69,371,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | """
You are given coins of different denominations and a total amount of money
amount. Write a function to compute the fewest number of coins that you need to
make up that amount. If that amount of money cannot be made up by any
combination of the coins, return -1.
Example 1:
coins = [1, 2, 5], amount = 11
ret... | [
"ufjfeng@users.noreply.github.com"
] | ufjfeng@users.noreply.github.com |
94d1f5e3f98f0e32c793d9288b12588bc92de180 | 1d0a4750e216f301ec49a247bf7bf07cd61fa29f | /app/models/upload_application_feature.py | bbd46d549bb7aaf9567880cc1cba4b89566f574e | [] | no_license | smoothbenefits/BenefitMY_Python | 52745a11db2cc9ab394c8de7954974e6d5a05e13 | b7e8474a728bc22778fd24fe88d1918945a8cfc8 | refs/heads/master | 2021-03-27T15:57:34.798289 | 2018-04-29T19:04:04 | 2018-04-29T19:04:04 | 24,351,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import reversion
from django.db import models
from app.models.upload import Upload
from app.models.sys_application_feature import SysApplicationFeature
@reversion.register
class UploadApplicationFeature(models.Model):
upload = models.ForeignKey(Upload, related_name="upload_application_feature_upload")
applica... | [
"eagleofpc@gmail.com"
] | eagleofpc@gmail.com |
e77c00645ed7ca19e6c51230353d6d52c9ec8bae | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /Others/past/past202112-open/f/main.py | c830367c026bccfff6cb820c71d467cba13482e6 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 1,173 | py | # -*- coding: utf-8 -*-
def main():
import sys
from collections import deque
input = sys.stdin.readline
a, b = map(int, input().split())
a -= 1
b -= 1
s = [list(input().rstrip()) for _ in range(3)]
dxy = [
[(-1, -1), (-1, 0), (-1, 1)],
[(0, -1), (0, 0), (0, 1)],
... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
2252f3a2885beacd6e8ad2168b39363e3b32dd50 | feed55181037677698055628ee40b7f1d85510c9 | /20150622/WidgetFactory_Classes.py | fd4614710c2978a9127eeae76d841feb008c0afc | [
"BSD-3-Clause"
] | permissive | lily-liang12/Summer_Project_2015 | 4a725c148e0620564874bf6c72c2c886b439a6e1 | 96c6e115dda896f18738dac36ea40c6c9267070f | refs/heads/master | 2021-06-03T15:01:42.536555 | 2016-08-26T08:34:07 | 2016-08-26T08:34:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,021 | py | """
Author: Delan Huang
Date: 06/22/2015
Purpose: Holds all of the Classes needed for CubeModel_FrontEnd.py
Version: 1.0, PyQt5
Notes:
- Slider Classes not fully functioning.
- To fix this: make class accept defaults, but still create a function
createSlider()
- CubeGraphic Class not universal, may b... | [
"noreply@github.com"
] | lily-liang12.noreply@github.com |
fed253f3f90185f4ca731d8aadc7097cf2ed874c | 4b4beafc14f4356ddf129a489ab844ad0d5acce5 | /flask_dynamo_session/__version__.py | 843f7e5f46c5d0a9c3021e1d332c193e8bf82fc7 | [
"Apache-2.0"
] | permissive | usethecodeluke/flask-dynamo-session | c87f98253e751b88aeddf6c60c2d6e6c6af458cc | 8e4aee30e2c5aedc57841c1a460311a7ff6e0cd1 | refs/heads/master | 2021-06-22T08:40:34.423007 | 2017-08-17T01:16:46 | 2017-08-17T01:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | # -*- coding: utf-8 -*-
"""flask_dyanmo_session version."""
__version__ = "0.0.3"
| [
"jaustinpage@gmail.com"
] | jaustinpage@gmail.com |
3abf4866e270b49812155e5abb75ec40a93b17ad | fe9ddaa70470fd58053607a4157c37390ba764e8 | /fixture/group.py | 03e928138e8ffb2705a7e8eec7dfba237a5dd193 | [
"Apache-2.0"
] | permissive | yakovlev-v/python_training | 68a311e6dd62e83154db3cfc6b289a46a4fb7305 | 7a6dcc1ff66ff5776f39a7be3a6c72d494c8db2f | refs/heads/master | 2021-02-07T07:49:51.181052 | 2020-03-21T14:29:54 | 2020-03-21T14:29:54 | 243,999,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | class GroupHelper:
def __init__(self, app):
self.app = app
def open_groups_page(self):
driver = self.app.driver
driver.find_element_by_link_text("groups").click()
def create(self, group):
driver = self.app.driver
# открыть страницу групп
self.open_groups_pa... | [
"vm-win7@users.noreply.github.com"
] | vm-win7@users.noreply.github.com |
a35dafa3096bfc1040e290c5dbf1e2a25c12f3f8 | 008747345b9d13ba50f164319224089dd72af7d0 | /plot_prices.py | a53fa42dcaf725edf4f2d7e9649cec13600c46e0 | [] | no_license | StephanHeijl/SMH500 | 2a6cd324ed42fc1573a245c717a3ff12b9235556 | c0c9bc2e7ace057502ebfe89ba3d6e8da9a96a9a | refs/heads/master | 2021-08-30T17:32:24.162962 | 2017-12-18T20:35:14 | 2017-12-18T20:35:14 | 106,842,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | import pandas
import matplotlib.pyplot as plt
data = pandas.read_csv("coins.csv", index_col=0).T
data.plot(kind="line")
plt.show()
| [
"root@MEMEMACHINE.localdomain"
] | root@MEMEMACHINE.localdomain |
cf8868ac8a9752a524f0f70c7583769be781029b | 2b3a7ceb8e89e730afe9438cd6b8ccf9dddfdedf | /perimeters/urls.py | b411302ffe45411acd2d4ed1620879969bf61afc | [] | no_license | komerela/perimapgit | bcf3bba9fc8b58ebcf1be2fd5dd5559d25a6a66a | fb7977dbdd9125ad20722207e6e5260129e30085 | refs/heads/master | 2020-08-27T19:15:42.833353 | 2019-12-10T01:56:41 | 2019-12-10T01:56:41 | 217,468,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from django.conf.urls import url, include
from django.urls import path
from .views import PerimetersView,PerimeterCreateView,PerimeterDetailQrView,PerimeterDetailView,PerimeterDetailMapView
app_name="perimeters"
urlpatterns=[
path('',PerimetersView.as_view(),name="all"),
path('create/',PerimeterCreateView.as... | [
"kmwongera@icloud.com"
] | kmwongera@icloud.com |
8418197daef9b6bb644ae8cf89eb63d23e702cc2 | 46c5914f08fac28712551fd6a779052c71ed6d2c | /somedifferentstuff/modules/environment.py | b08d72cd2c76326fd4027772a7c651c5cdf82279 | [] | no_license | H4ckTh4t/somedifferentstuff | 16c4519b2b767e1cf54d6822bf19a62cf16ead4d | a93033ece32d7a5aa9aa680718215d12f0e90125 | refs/heads/master | 2020-04-06T06:44:24.498659 | 2016-09-21T20:57:40 | 2016-09-21T20:57:40 | 68,715,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | import os
def run(**args):
print "[*] In environment module."
return str(os.environ) | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6913bc6610f8a603ad9877caa3c1c4c6821c0e73 | c0a1551a75e3f37041d704cd39dd03240fafbf1a | /src/contacts_api/settings.py | 1f873dad19624e132c83080d288c51f53afb5cf1 | [] | no_license | zemanel/contact-server | d650d45dbbde2f7dfb0f7ccb067b6beae548ea35 | fb521e6b59a70f55018ab40995216e98dc8d5748 | refs/heads/master | 2022-12-12T07:47:18.983752 | 2017-08-16T01:19:45 | 2017-08-16T01:19:45 | 100,430,568 | 1 | 0 | null | 2022-11-22T01:56:32 | 2017-08-16T00:27:59 | Python | UTF-8 | Python | false | false | 4,245 | py | """
Django settings for contacts_api project.
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = os.environ['DJANGO_SECRET_KEY']
DEBUG = bool(os.environ.get('DJANGO_DEBUG', False))
ALLOWED_HOSTS =... | [
"zemanel@zemanel.eu"
] | zemanel@zemanel.eu |
c934a24e9876e7a6dca9a1fabac5327edbc81a94 | aac8df9f0231e3b7b58d360b394b0c9873ecf6f6 | /src/famso/urls.py | c086f985351a899ee74f3ecb6da83fe0ce30e3d6 | [] | no_license | seivui/nicole | d6d7931b49d5048b29111175018a0ca59fc28026 | f8e902643beb43b0fc1bade8460a3b2b8ccd3f68 | refs/heads/master | 2020-05-17T17:58:13.343789 | 2014-09-16T18:37:12 | 2014-09-16T18:37:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'paris.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| [
"samaire@samaire.net"
] | samaire@samaire.net |
e8ff31f4eadf041a761df710a96602fabc804ed5 | c2bf65f35ac84c93b815c64eee4bfb15e9c1a0ee | /315.计算右侧小于当前元素的个数.py | ef6cfc298f0d912983465d1b37d08ec161dd7143 | [] | no_license | hhs44/leetcode_learn | e7651548e41176b1fd56a1565effbe076d6b280a | fd4f51a4803202a2e4fe3d97ef2b54adc218e691 | refs/heads/master | 2022-03-06T14:35:51.891389 | 2022-02-09T14:55:13 | 2022-02-09T14:55:13 | 250,731,211 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | #
# @lc app=leetcode.cn id=315 lang=python3
#
# [315] 计算右侧小于当前元素的个数
#
# @lc code=start
class TreeNode:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
self.count = 0
class Solution:
def countSmaller(self, nums: List[int]) -> List[int]:
root, n... | [
"1159986871@qq.com"
] | 1159986871@qq.com |
c5c3635c53983146a06cb84d5d46930ffef0b0db | 1cc404565448f128156d640ffe5d1c4f5a1fc783 | /socket/udp_chat2.py | a36ea45c0692f08f57ea4eabde5f24dd666490c0 | [] | no_license | apricotvillage/PyWithJu | 091baa0df5750af108537de61c79522134be6567 | 2bc685778ac91c3b0db5c552f3c65947a5ffb44e | refs/heads/master | 2022-03-31T18:20:57.230477 | 2020-02-26T16:19:24 | 2020-02-26T16:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import threading
import socket
def rece(sk):
while 1:
data, addr = sk.recvfrom(1024)
if data == b'exit':
break
print(data.decode())
def send(sk):
while 1:
msg_input = input("please input message:")
sk.sendto(msg_input.encode(), ('',9080))
if msg_in... | [
"wuyichang1990@gmail.com"
] | wuyichang1990@gmail.com |
b46bb71bada65f6a8c042daf048b538198671f01 | d09b549108ba28da1723896de4415246a36dffa0 | /LGBM/Optimimzacion_LGBM.py | 8a1f16326ca9b3e75750924dd93c3fe3a90a10e8 | [] | no_license | JorgeAsmat/Ia_Predictor | 17a500e21a71a4a095fd151201221d0c5b185b8d | cbce6ddc2a2b55e8339f9b624b38697b7002e6fa | refs/heads/main | 2023-02-08T11:43:11.071540 | 2020-12-30T18:13:25 | 2020-12-30T18:13:25 | 300,683,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,555 | py | # Librerías
import numpy as np # algebra lineal
import pandas as pd # manipulacion de datos
import matplotlib.pyplot as plt # graficas flexibles
import seaborn as sns # graficas comunes
from scipy.stats import variation # coeficiente de variación
import pdb # librería para hacer debugging si es necesario
import warni... | [
"asmat.jorge@pucp.edu.pe"
] | asmat.jorge@pucp.edu.pe |
27ba9b528c7aa59135899b8ba009ff18cdc8f98c | 8da45a19b8f02ddabb8a2ffba7cacaafd7f46cfc | /passenger_wsgi.py | 2e05e5eba87bf375ce1e5ad4b0dd76b1c463daa5 | [] | no_license | gregcodethem/blogsite_project | 2cff5627c5a4f2dad207717dd2a5b41137612b3a | 58b3a44f8646c48b0756354a6dc68ff75289e3e0 | refs/heads/master | 2023-01-09T21:45:15.428459 | 2019-12-01T21:47:16 | 2019-12-01T21:47:16 | 215,317,158 | 1 | 0 | null | 2022-12-27T15:36:12 | 2019-10-15T14:17:40 | CSS | UTF-8 | Python | false | false | 726 | py | import sys, os
cwd = os.getcwd()
INTERP = cwd+"/env/bin/python"
#INTERP is present twice so that the new python interpreter
#knows the actual executable path
if sys.executable != INTERP:
os.execl(INTERP, INTERP, *sys.argv)
cwd = os.getcwd()
sys.path.append(cwd)
sys.path.append(cwd + '/blogsite_project/blogsite')... | [
"gregname@reliant.dreamhost.com"
] | gregname@reliant.dreamhost.com |
625da2286613765bcf9ffe9e039458ad95265791 | 437fe22e3474686608135254fd82db79a49f8660 | /depthai-speaks_OAK-D.py | e0519a6eaa1fa7b4b4b3ff9cd7069fd08e58dd85 | [] | no_license | bharath5673/depthai-speaks | c74eb9575d8fc83ed9e0d0ef5d68ae3a55427b1e | b6f9b0d525251ec667f26c91d56389c58a1a118d | refs/heads/main | 2023-05-14T15:33:20.350986 | 2021-06-05T11:14:33 | 2021-06-05T11:14:33 | 372,469,813 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,046 | py | code:
#!/usr/bin/env python3
from pathlib import Path
import sys
import cv2
import depthai as dai
import numpy as np
import time
import os
import imutils
import subprocess
from gtts import gTTS
from pydub import AudioSegment
'''
Spatial Tiny-yolo example
Performs inference on RGB camera and retrieves spatial loc... | [
"s.bharath.2000@gmail.com"
] | s.bharath.2000@gmail.com |
74207abb588e1340233fa59944d778fb9dbab69b | f41471a3bff66c763b8d60f0280ac67235ecbb62 | /gewittergefahr/gg_utils/general_utils.py | 63593eb721d5952ee8c90c94b05d850762a398cc | [
"MIT"
] | permissive | cil0834/GewitterGefahr | 0f43878ba40921881c077c2218446f5fab18ba9f | 699b995b1b90344022b1644d4b758e790402894e | refs/heads/master | 2020-06-23T15:59:22.718914 | 2019-07-24T03:59:31 | 2019-07-24T03:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | """General helper methods (ones that don't belong in another "utils" module)."""
import math
import numpy
from gewittergefahr.gg_utils import error_checking
def find_nearest_value(sorted_input_values, test_value):
"""Finds nearest value in array to test value.
This method is based on the following:
htt... | [
"ryan.lagerquist@ou.edu"
] | ryan.lagerquist@ou.edu |
7fdc6939764e2354c648bee798e14b5694bbc243 | ae5eb4b2e9cfd53273bf1c4fcb6b75b2dc09ddfb | /andelabs/MaxMinTest.py | 50d37d99608f93ae3f77d22106357ef367cf303d | [] | no_license | m-amoit/Bootcamp-7 | 4e0307d2819d631a8ba78d1777d509492d34a988 | 33db32c56bd49a6809ec03bd8c4dafa7d91c35e3 | refs/heads/master | 2021-01-01T03:54:43.030784 | 2016-06-02T15:37:37 | 2016-06-02T15:37:37 | 57,123,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from unittest import TestCase
from find_max_min import find_max_min
class MaxMinTest(TestCase):
"""docstring for MaxMinTest"""
def test_find_max_min_four(self):
self.assertListEqual([1, 4],
find_max_min([1, 2, 3, 4]),
msg='should return [1,4] ... | [
"amoitjmiriam@gmail.com"
] | amoitjmiriam@gmail.com |
b228652b795046586f1ccc4eab807ab62a674da6 | 2cbd2f11cdee79dc13734bbaf38ef660bfb26f24 | /main.py | ec0da20e468269917f385a6eeda870086101e1a6 | [
"Apache-2.0"
] | permissive | CoderXDY/NoPeekNN | 2ac92a864c838ad2ac9c3a0a122ed4d64921e792 | d1ae349bc023d7c0353f8d67708add8325a78b3c | refs/heads/master | 2022-12-08T08:45:57.157218 | 2020-08-30T14:48:44 | 2020-08-30T14:48:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,390 | py | """Script for training a SplitNN"""
import argparse
from pathlib import Path
from typing import Tuple
import torch
import torchvision.transforms as transforms
from torch.utils.tensorboard import SummaryWriter
from torchvision.datasets import MNIST
from tqdm import tqdm
import syft as sy
from src import SplitNN, NoP... | [
"t.j.titcombe@gmail.com"
] | t.j.titcombe@gmail.com |
a56bdd9716876164c6213827df6a4999c6674ca0 | ce8a2fd8ec1cd1dd9e65c4da2dd23e00e5c9056b | /Trees/convert_nary_binary.py | 7d9911911ec519af17692a8a5548d7e0af1c0606 | [] | no_license | tdavchev/algorithms | ad1e76b50a67228157cc7795f80e3b3b4df350eb | 60fbee3663b2933b621fb227274adc898606df2f | refs/heads/master | 2021-09-22T15:26:43.051746 | 2018-09-11T09:32:57 | 2018-09-11T09:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | def convert_nary_binary(root):
return None
def convert_binary_nary(root):
return None | [
"t.davchev@gmail.com"
] | t.davchev@gmail.com |
db12920dd2e491b3601268ab40c4f0e08264022b | 31b85e2abc35fa633257cc372c8fa059c75241d9 | /superset/views/database/forms.py | 647d580edb0504c1eac8f3d635fbeff32bacf1ca | [
"Apache-2.0"
] | permissive | Zandut/Superset-Funnel | b28cf1c0768bfcf7ab630c622c7ca3755212bfe8 | cff832b2d584f859ceb025349b615c25afa524b7 | refs/heads/master | 2022-12-04T07:10:29.164996 | 2020-08-24T08:05:16 | 2020-08-24T08:05:16 | 288,700,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,812 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"mfauzan613110035@gmail.com"
] | mfauzan613110035@gmail.com |
87c09b0473150398ede397ba39ccd0d6e70d2da2 | 92190f39b9019571d3b5df881cf9b26882ec972d | /core/fit/migrations/0007_auto_20170112_2111.py | 6b87f670c7e4e7de3791da1ec4ca1119d5541763 | [] | no_license | nolanrbrady/FIT_Experiance | 0432192c91c575f7f6465197536a96f313ccd42f | f1bb2bb6e45ed377882ce455330782e35f870cf3 | refs/heads/master | 2021-05-14T22:48:12.671638 | 2017-10-04T23:35:59 | 2017-10-04T23:35:59 | 105,830,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-12 21:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fit', '0006_auto_20170112_2059'),
]
operations = [
migrations.AlterField(
... | [
"nolanrbrady@gmail.com"
] | nolanrbrady@gmail.com |
f3bca0873dd5c520792e27a0a366b79e878b917c | 5ab2b2a6c5e8420fa35dab332c9b9c3453d5641a | /viz/sgd_ez.py | 9b16120fa2301e346f0adb7d9fc90b7204775ded | [] | no_license | Drummersbrother/rays-2019-teamwork | d80705001722165d33c6de523e0eca372499a6e0 | ae49ff5a297c9f96f1049225af87d34ad93af1eb | refs/heads/master | 2022-04-10T19:11:53.525916 | 2020-03-05T12:28:03 | 2020-03-05T12:28:03 | 193,438,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import matplotlib.pyplot as plt
import numpy as np
import mpl_toolkits.mplot3d.axes3d as axes3d
np.random.seed(1)
fig, ax = plt.subplots(subplot_kw=dict(projection='3d'))
N = 15
step = 0.1
X, Y = np.meshgrid(np.arange(-N/2, N/2, step), np.arange(-N/2, N/2, step))
heights = (2+np.sin(X)) * (0.2 * (Y**2)) + X**2
ax.set... | [
"ilykxar@gmail.com"
] | ilykxar@gmail.com |
737c4b442cc3c836116fe4b83ad0f17e908ad474 | 662207b37b6d77b43c164b9feacdbf928790bf17 | /day3/dictionary2.py | 54ecdf16fead40bde31b032ba2d41d65ebb9c461 | [] | no_license | shamanthaka/mypython_work | fc26983488059eb59462f8ab966aaad2ab93532a | 410f655939387b709cefa4d452aa323aede1c4d7 | refs/heads/master | 2020-07-10T03:12:59.246227 | 2019-08-24T12:34:34 | 2019-08-24T12:34:34 | 204,152,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | monthConversions = {
"Jan": "January",
"Feb": "February",
"Mar": "March",
"Apr": "April",
"May": "May",
"Jun": "June",
"Jul": "July",
"Aug": "August",
"Sep": "September",
"Oct": "October",
"Nov": "November",
"Dec": "December"
}
print(monthConversions["Nov"])
print(monthC... | [
"shamanthaka.veerareddy@gmail.com"
] | shamanthaka.veerareddy@gmail.com |
62bf2861525dfc6f66b4f89ffe33502afbec465f | f4bf81d4e80468331a09401dbaeef12465aca853 | /lib/python/helpers/coveragepy/coverage/parser.py | a1d48185a2cf936ffd2056132698e92ff57f008a | [] | no_license | nottyo/intellibot | 45c41d673608a0a1291c6387f9d33ef449f18837 | 0547d987deaad90260abe33db5284eae9704eb9b | refs/heads/master | 2020-12-30T23:59:29.795725 | 2017-04-10T07:53:59 | 2017-04-10T07:53:59 | 86,574,980 | 1 | 0 | null | 2017-03-29T11:37:54 | 2017-03-29T11:37:53 | null | UTF-8 | Python | false | false | 40,569 | py | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
"""Code parsing for coverage.py."""
import ast
import collections
import os
import re
import token
import tokenize
from coverage import env
from cove... | [
"traitanit.hua@ascendcorp.com"
] | traitanit.hua@ascendcorp.com |
5592fc6db35c8c402bec95f4a492be1c4bd8cc56 | c0dfc5ccb760df1de0eec99cf9bfa4a982736096 | /nebularpy/__init__.py | 7f10e67d74d89431c6ac0dc5931d7896f074a358 | [
"MIT"
] | permissive | Alymantara/nebularpy | f5da127854491b1525c29a9bb1dd218d9d8ccdbf | 28b8f226e1de12cfbc3703f1fe6d37732271b84c | refs/heads/master | 2022-12-04T18:48:30.223716 | 2020-08-24T13:30:49 | 2020-08-24T13:30:49 | 289,933,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | __modules__ = ['nebularpy']
from .nebularpy import nebular
__version__ = "0.1.0"
| [
"noreply@github.com"
] | Alymantara.noreply@github.com |
ae64e4a0629f0895ab9860abf49c0cb067d71b2d | 19e236f55645852c89e4b938d76a7d50bb41e857 | /ml/preprocessing/preprocessing.py | 927192b4b34416f314932dfd445463cfaf19a467 | [] | no_license | rodrigo-veloso/hypothesis_testing | 5f543dc83201ca356d26d4d15c1620394abab979 | 8aa7c96ea738bd8a297ae1b7b563aca40b5e7b5a | refs/heads/main | 2023-06-20T10:35:20.386357 | 2021-07-19T14:46:21 | 2021-07-19T14:46:21 | 374,710,516 | 0 | 0 | null | 2021-07-19T14:40:10 | 2021-06-07T15:15:20 | Python | UTF-8 | Python | false | false | 2,226 | py | import pandas as pd
from ml.preprocessing.normalization import Normalizer
import logging
logging.getLogger().setLevel(logging.INFO)
class Preprocessing:
"""
Class to perform data preprocessing before training
"""
def __init__(self, normalizer_dic = None):
self.processes = []
if normal... | [
"rodrigoveloso1t@gmail.com"
] | rodrigoveloso1t@gmail.com |
979ff07cd6bd943528d457138fde2c379f63bf1f | 8ac0c16341476758e2de8bfad724b27d661fc134 | /appengine/db_objects.py | 1613b618e5fa9f90e0556dd5eea3fa201421faee | [] | no_license | mithro/chrome-buildbot-sprint | bc9e70d75e9f577fc309884cd023709b521bde84 | e41171676c9b84441a3818d08380d0a7a11cd682 | refs/heads/master | 2020-06-04T03:01:34.831129 | 2015-02-03T12:54:22 | 2015-02-03T12:54:22 | 29,504,049 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py |
from google.appengine.ext import db
class TestResults(db.Model):
"""|key_name| is the test run id."""
xml_data = db.StringProperty()
timestamp = db.DateTimeProperty()
| [
"jackhou@google.com"
] | jackhou@google.com |
d0b16a9682282c2fb53d031f24c8e3ae8eb6b10c | 7546f5995ffab909ccd87da8576461bdc58951c1 | /Scrapy/test1/test1/pipelines.py | 9cd764550453fc875521558f33d58b5c3f953bbc | [] | no_license | wskai1/Python_Study | fa6f818df3de31a37272dc013004cc982d61a6c1 | 72e668e94e3bc6b769dfc103ac62fa387d733306 | refs/heads/master | 2020-03-25T01:42:26.553100 | 2018-08-06T09:48:51 | 2018-08-06T09:48:51 | 143,252,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import codecs
import json
import os
class Test1Pipeline(object):
def __init__(self):
self.file = codecs.open('ite... | [
"1729253813@qq.com"
] | 1729253813@qq.com |
a0144fa673f04897fed9dcc53b67cbd388609a2f | 4652cea6f1aa3f29e281616ed868a07fd1865ee8 | /logics/check_pdf.py | 2557279eb60edda7efc6b93a009db59e8e2f7bef | [] | no_license | foggydae/PDFHighlight | 448db8765ea6c649cdebf5c4d3cf196b92a390a8 | c74061addbf0bf2f6472c8381dffcce2f6ea4020 | refs/heads/master | 2020-04-29T03:50:38.161352 | 2019-03-15T13:37:50 | 2019-03-15T13:37:50 | 175,825,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # coding: utf-8
import re
import os
import glob
import json
import xlsxwriter
import pypandoc
import subprocess
from pprint import pprint
path = '../dataset/20170627-rerun/'
path_done = '../dataset/20170627/'
# tex_set = set([])
# pdf_set = set([])
# for fileName in os.listdir(path):
# if re.match(r'.*\.tex', fil... | [
"foggydew3@gmail.com"
] | foggydew3@gmail.com |
c5df04801d2d1943ea345747e123517bdfb99504 | fdd9e3131ead660db9485304438993a2a249fb1f | /tests/test_npc/test_settings/test_tags/test_tag_spec_class/test_tag_spec_repr.py | d5a124a1277353e8ab982a1d48b05b2b5dbc29ea | [
"MIT"
] | permissive | aurule/npc | 6807aa0723e765cb33fe5f5b49b0f579a6207153 | 2e1b2e92e2a4908d791846f184ee7e4de2f6682e | refs/heads/develop | 2023-09-02T02:46:47.900892 | 2023-08-30T17:31:00 | 2023-08-30T17:31:00 | 47,045,977 | 14 | 2 | MIT | 2023-08-18T20:49:12 | 2015-11-29T01:40:18 | Python | UTF-8 | Python | false | false | 371 | py | import pytest
from npc.settings import TagSpec
def test_includes_tag_name():
tag_def = {"desc": "A testing tag"}
tag = TagSpec("test", tag_def)
assert "test" in repr(tag)
def test_includes_subtag_names():
tag_def = {"desc": "A testing tag", "subtags": {"with": {"desc": "A subtag"}}}
tag = TagSpe... | [
"pmandrews@gmail.com"
] | pmandrews@gmail.com |
181272a485fdc0a93b159303fa3e28cd2e1e5b66 | d6c596d487221b1ba9e2543f11d240748dd64af5 | /queryChinese/migrations/0002_auto_20150503_1925.py | b4fe6bd95fffa3677ea04776f4547f0e928d9976 | [] | no_license | noeleon930/taigiGameDB | 7b8fdd86167ebad5ee53030532e94e11bf91156d | c665f4dc3371fae73167a850dc3b7fc89c6f7b9c | refs/heads/master | 2021-01-19T06:47:51.760602 | 2015-05-04T14:30:40 | 2015-05-04T14:30:40 | 34,998,416 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('queryChinese', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='ChineseWords',
ne... | [
"noeleon930@gmail.com"
] | noeleon930@gmail.com |
cb01c5cae00b84dc908fc529a6cea38d36dec0b2 | 3043a21e89b67e7f3d1e420358ab6af41fc203b4 | /0x09-Unittests_and_integration_tests/client.py | 7c6dd375d31d82a006c4013e1b13dd5da6be56cc | [] | no_license | zacwoll/holbertonschool-web_back_end | 846ece845725d702d8a6ee0a1696e6d823362fd6 | ece925eabc1d1e22055f1b4d3f052b571e1c4400 | refs/heads/main | 2023-05-20T12:54:07.215103 | 2021-06-03T21:21:53 | 2021-06-03T21:21:53 | 348,202,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | #!/usr/bin/env python3
"""A github org client
"""
from typing import (
List,
Dict,
)
from utils import (
get_json,
access_nested_map,
memoize,
)
class GithubOrgClient:
"""A Githib org client
"""
ORG_URL = "https://api.github.com/orgs/{org}"
def __init__(self, org_name: str) -> No... | [
"zacwoll@gmail.com"
] | zacwoll@gmail.com |
0ca98942dcdc12e213d88dec4d599ebcf14faab8 | 625940efcfe2fe4962bef1266fbe926598547bff | /zipcodes.py | 0bcea81ee21f0812851fbed72744e14dcb449a76 | [] | no_license | pranavr/map-tasks | 42bd5aa68dabce06caec36e8736f0e4d55633f3b | f770d1ee35c40460bafa9ec442273f6411dee6f1 | refs/heads/master | 2020-05-18T18:22:20.858880 | 2014-08-15T16:32:09 | 2014-08-15T16:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,364 | py | import json
import geojson
def processNYregions():
basePath = '/Users/pranavramkrishnan/Desktop/Research/maps/static/data/zipcodes/'
filename = basePath + 'TEST_data.json'
jsonData = json.load(open(filename, 'r'))
zipcode_initial = {}
ny_geojson = geojson.load(open(basePath+'nyzipcodes.json','r'))
ny_regions =... | [
"pranavr@mit.edu"
] | pranavr@mit.edu |
f800559aa836755668ce25da6565da4cb733d81c | 66d590651f7faf2f45f7268f24d9803831f2db4c | /sejavoluntario/apps/users/migrations/0009_auto__add_field_beneficiario_description.py | ea04f8161955aeecba5332027f7abfcb014b6a37 | [] | no_license | gustavofarias/sejavoluntario | 0a7efe82d187ebd836db568c5983b14eb3536e0a | 8002d1ce807782dcf9a8c07291d3ec46c531c8d3 | refs/heads/master | 2021-01-23T02:29:35.643764 | 2013-06-26T20:54:04 | 2013-06-26T20:54:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,382 | py | # -*- coding: 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 'Beneficiario.description'
db.add_column('users_beneficiario', 'description',
... | [
"bug.ufrj@gmail.com"
] | bug.ufrj@gmail.com |
408729b8d20955feb61ea2cb9afeb17aa55d5d6b | 487c8a48b3868b66c0ae7c714436855c87968eaa | /node_modules/dtrace-provider/build/config.gypi | 4fd117e2ec28ac0050d8c77f9a8eeaef96bafb8d | [
"BSD-2-Clause",
"MIT"
] | permissive | nguyenndm1901/Spotify_app | f1cbc59b5a4de9b6a48fbae04bbd8d466b6a434c | 27dc3e1aaa744750ee9fc8df587a2427249b48f4 | refs/heads/main | 2023-02-13T16:58:59.756562 | 2021-01-03T14:27:59 | 2021-01-03T14:27:59 | 307,390,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,765 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"43044839+nguyenndm1901@users.noreply.github.com"
] | 43044839+nguyenndm1901@users.noreply.github.com |
f7a8a74c867b86bd82d1fe8a4bb8a8e6fbe22882 | 0bebe0a05537a060a7f107f21b5a2adc67475d04 | /mac_virtual_camera/cyclegan.py | 54499618397b32888e5b5470521e48b9011ccab5 | [] | no_license | christopher-hesse/mac-virtual-camera | c9b4aa41658f33686823c47e2ad480681a27f158 | 9762a260d45b80dedecd7e3839b7e228f8ef8a6f | refs/heads/master | 2022-11-13T15:03:28.229079 | 2020-07-06T00:37:47 | 2020-07-06T00:38:03 | 277,175,745 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,800 | py | # from https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix
import argparse
import functools
import cv2
import torch
import torch.nn as nn
IMAGE_SIZE = 256
class ResnetGenerator(nn.Module):
"""Resnet-based generator that consists of Resnet blocks between a few downsampling/upsampling operatio... | [
"48501609+cshesse@users.noreply.github.com"
] | 48501609+cshesse@users.noreply.github.com |
e1622255e97690979ddfaddd311178e9efd352fa | ff2d555425c8e32f15570d3b4b404a60f80c06d3 | /scripts/manage_docker.py | d1354353bc5ce145d96dba30a834acc0e107e2cf | [] | no_license | theydonthaveit/neo4j-admin-panel | 61c34976a3d781af155f6fd11f184124bc2f8af7 | 637d6864a7413f126e97502f9d7036d476d16467 | refs/heads/master | 2020-03-21T07:26:19.478759 | 2018-06-28T15:18:02 | 2018-06-28T15:18:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import docker
CLIENT = docker.from_env()
CLIENT.containers.run('neo4j:3.0',
command=['NEO4J_dbms_connector_bolt_listen__address=:7688',
'NEO4J_dbms_connector_bolt_advertised__address=:7688'],
ports={'7475': '7474', '7688': '7687'},
... | [
"alan@trykiroku.com"
] | alan@trykiroku.com |
51d40a2f746f1ba2d1a272ca82f3ddfc7825e94d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02621/s208244624.py | 9b225e7a79b85cb100f6ca7376b02b761256ec12 | [] | 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 | 37 | py | a = int(input())
print(a*(1+a*(1+a))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
82a3d385936b474181f00928cdd99b6cb6334b49 | 5649a06053ea9835e84e74805d8f6228399d88ec | /renren/pipelines.py | c99b965b153f7a7e032fa67141b23cee37cfe648 | [
"MIT"
] | permissive | tengbozhang/renren | cd5298aa6123241903d49d5b3c729d9f9edb900a | 4218b9306f81144ca1f8dddb71eebef511a19be8 | refs/heads/master | 2020-04-05T06:42:54.699139 | 2018-11-21T02:01:31 | 2018-11-21T02:01:31 | 156,647,657 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class RenrenPipeline(object):
def __init__(self):
self.filet = open('movie.html', 'w',encoding="utf8")
def c... | [
"tengbozhang@gmail.com"
] | tengbozhang@gmail.com |
a1394f88c68305e26ce9afb48bbe90f6a4f2a0b9 | 025f92558f8bbe06cbeaeeebe28cec47a7c2621e | /high_performance_python_2e/figures/hll_single_reg.py | 23820e05c633872221f917014c290f15bc11917d | [] | no_license | cataluna84/hpp-book | 1df8cf340398ed3976d9d28fd7ff8db839b080d4 | 2053520824896c6d79e0655f9c5940cbd1ec51f8 | refs/heads/main | 2023-03-15T00:51:45.245591 | 2021-03-30T07:04:43 | 2021-03-30T07:04:43 | 352,901,887 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/env python
import countmemaybe
import numpy as np
import pylab as py
def leading_set_bit(number):
number_binary = bin(number)
return len(number_binary) - number_binary.rfind("1")
class HLL(object):
max_index = 0
def add(self, number):
index = leading_set_bit(number)
self... | [
"mayankbhaskar007@gmail.com"
] | mayankbhaskar007@gmail.com |
8717b2e18dfd31bbca18c81aec109b4ae0ddfda3 | fb9fefb573d51e7f263ffbd0db07155996264665 | /9.py | cae41fda0a83b1c95320b146f111139aa4a4dfa8 | [] | no_license | alan7816/1206 | 7a890b957206a63d660f95130d3bc8e06751d7d4 | 3e5ef105a06b6b5f2dcebdea494a972a656c2a14 | refs/heads/master | 2020-04-09T21:26:16.875592 | 2018-12-19T09:15:18 | 2018-12-19T09:15:18 | 160,602,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import os
#建立test資料夾
os.mkdir('test')
#進入test資料夾
os.chdir('test')
#建立一個qytang1文件
qytang1 = open('qytang1', 'w')
#qytang1文件寫入test.file
qytang1.write('test file\n')
#qytang1文件寫入this is tytang
qytang1.write('this is qytang\n')
#關閉qytang1文件
qytang1.close()
qytang2 = open('qytang2', 'w')
qytang2.write('test file\n')
qytang... | [
"alan7816@gmail.com"
] | alan7816@gmail.com |
3343a8f4eb52d4e0bc68ead2311a3a6bb57112ff | 3073d7f912b6bd8d28e56a57d3cb9d7d8f2020cf | /Leetcode--Python-master/Directory2/majorityElement.py | ae3dc21c09a988665e39010ddc34be35d6868b50 | [] | no_license | sanaydevi/leetCodeSolutions | 0ffbbcc7bf0b6c1e6b0de94148a8851481d07963 | c9c0d4dbeb583eaf8ec7899310bb4665ec5035d0 | refs/heads/master | 2020-04-29T00:58:09.596042 | 2019-04-19T02:18:42 | 2019-04-19T02:18:42 | 175,714,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | '''
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 times. You may assume that the array is non-empty and the majority element always exist in the array.
Example 1:
Input: [3,2,3]
Output: 3
Example 2:
Input: [2,2,1,1,1,2,2]
Output: 2
'''
class Sol... | [
"sanaydevi@gmail.com"
] | sanaydevi@gmail.com |
8df2d8c01df005e689e69136f8335f9ca2f9df6f | 4a0c047f73458d089dc62bc2be7c3bd098a08ee2 | /data_structor/time_series.py | 906cb145585b282406f42320c92345442e3babef | [] | no_license | sunghyungi/pandas_study | b53e53d88abe733b292c06e2658e2fa21428ffca | b861724995914a4a4644c8b08b3b38070d5abc51 | refs/heads/master | 2020-11-28T02:05:22.565760 | 2020-01-08T03:09:37 | 2020-01-08T03:09:37 | 229,675,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | import pandas as pd
df = pd.read_csv('stock-data.csv')
print(df, '\n')
print(df.info(), '\n')
print()
df['new_Date'] = pd.to_datetime(df['Date'])
print("# 문자열 데이터(시리즈 객체)를 판다스 Timestamp로 변환 및 데이터 내용 및 자료형 확인")
print(df, '\n', df.info(), '\n', type(df['new_Date'][0]), '\n')
print()
df = df.set_index('new_Date')
df =... | [
"tjdgusrlek@gmail.com"
] | tjdgusrlek@gmail.com |
a5b1aeae9be59ff7de6ac8cd37fdce13f064e7a1 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/__init___parts/DataExchangeMessageSeverity.py | 6de342709fc4f481fa4443648c2bb90bb6b9eecf | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 1,011 | py | class DataExchangeMessageSeverity(Enum,IComparable,IFormattable,IConvertible):
"""
Error levels for DataExchangeLog
enum DataExchangeMessageSeverity,values: Error (2),FatalError (3),Info (0),Warning (1)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y "... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
d768a00891dd24f46827533205ca11971033d5b5 | 237cc38de0cf7a6e3661ed552ae771bd972d7438 | /utils/test_trans.py | 8f70192757c490fd0ed4f38758fe0316c82cf8b1 | [] | no_license | chydream/python | af5ad8a98c78de71e255f7b776f936c4b89c616e | e5bfef53a7770d4f323bd2877f93c8166c563695 | refs/heads/master | 2020-05-07T17:00:33.558178 | 2020-05-05T13:45:19 | 2020-05-05T13:45:19 | 180,708,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from datetime import datetime
from utils.trans.tools import gen_trans_id
from utils.work.tools import get_file_type
def test_trans_tool():
id1 = gen_trans_id()
print(id1)
date = datetime(2015, 10, 2, 12, 30, 45)
id2 = gen_trans_id(date)
print(id2)
def test_work_tool():
rest = get_file_type('G... | [
"yong.chen@doone.com.cn"
] | yong.chen@doone.com.cn |
df894dc5d1405344d71709b8a594ce781f643515 | 12ce6095072be27e330a5e968db7b52c12f1a6a9 | /Santhosh/SecondApp/views.py | d106aa00ccdb091d27ab6874518f5a7bac46f8c3 | [] | no_license | pythonlabexp/Django | 79827bfb79c2b724c5a8869dde3de213d45eba43 | 6080db48f47ad0eea6a6b18fa9b982da2ed87248 | refs/heads/master | 2020-04-15T11:03:06.689973 | 2019-01-12T06:09:19 | 2019-01-12T06:09:19 | 164,611,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request,'SecondApp/index.html') | [
"noreply@github.com"
] | pythonlabexp.noreply@github.com |
8247af0d1e8661c1113f5f7ae7a6d7be8953ddee | 194003429076a85e3cdbf89ed3c28a538ead22e9 | /csv_processor.py | 8f7b87ee4f63059069e5bbda55358d25d6caded1 | [] | no_license | GustawOhler/FootballBetsPredictor | 17a825ee5b07e127359ad5e34102ad7dce49f268 | 885649f7f644bb73d0f2010397685cd1dbb82788 | refs/heads/master | 2023-08-23T13:30:32.484975 | 2021-09-28T23:01:22 | 2021-09-28T23:01:22 | 296,716,475 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,189 | py | from enum import Enum
from typing import List, Tuple
from collections import Counter
import numpy as np
import pandas
import pandas as pd
from datetime import datetime, timedelta
from peewee import fn
from models import Season, Team, Match, League, TeamSeason, Table, TableTeam, MatchResult
from database_helper import ... | [
"gustaw@ohler.pl"
] | gustaw@ohler.pl |
5679f87ee2971ed8a994e1847ac44500ad6a53c5 | cd627f0c85e697a78a77ea9d6150a78eafbb6a7e | /profiles_api/migrations/0001_initial.py | e6f18968e30468255705b0655bb61a3755c01d32 | [
"MIT"
] | permissive | mantu0314/profiles-rest-api | 09ac8a299733d983e9f921e9898b7ec6eb76a68b | 2da0237e505053b84b706cf1afdf1c98f425c2eb | refs/heads/master | 2023-07-30T06:43:48.044675 | 2020-08-07T16:51:08 | 2020-08-07T16:51:08 | 283,555,622 | 0 | 0 | MIT | 2021-09-22T19:32:28 | 2020-07-29T17:00:38 | Python | UTF-8 | Python | false | false | 1,708 | py | # Generated by Django 3.0.8 on 2020-07-31 06:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
name='UserProfile',
... | [
"mantu031495@gmail.com"
] | mantu031495@gmail.com |
e4616a4f551a702638c5b140b6f474216a4d5515 | db8b535f422749f3606b8e085da7e908d264a85f | /ProjectStudantPython/SimpleListExercicios.py | 7ec1cf89c67ffc364216363a403e76b048c4889b | [] | no_license | thallys-moura/studies | 30497ea13ebabbdedcfd54b5051b3a8998ed04c0 | 0fcf83afc8d29c56915fa9331488420a08f895b8 | refs/heads/main | 2023-03-24T00:11:05.582993 | 2021-03-29T04:48:59 | 2021-03-29T04:48:59 | 343,241,028 | 1 | 0 | null | 2021-03-14T22:43:15 | 2021-02-28T23:47:07 | Python | UTF-8 | Python | false | false | 29,537 | py | from random import randint, random, choices
def criaExibiLista():
Lin = int(input("Quantidade de Linhas: "))
Col = int(input("Quantidade de Colunas: "))
M = []
i = 0
try:
while i < Lin:
M.append([])
j = 0
while j < Col:
M[i].append(randin... | [
"thallys-moura@outlook.com"
] | thallys-moura@outlook.com |
95b2b1a4f44b34c7d410349f928103cebabd7558 | 5bf025dc67b233a70225c194c7b37b94e719777e | /7 week/3.py | 3424435f1256ffd586021afc9fa89f89ce5e47af | [] | no_license | SunnyGrapefruit/Course | b9dc3fdb1bcc98fae14b7b639e41b843146bc210 | 241fe94973f72195f1dc0dec2ef7af4e45ae8d16 | refs/heads/master | 2020-09-16T07:55:11.002300 | 2020-01-08T17:56:33 | 2020-01-08T17:56:33 | 219,424,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | # В этой задаче вам предстоит научиться создавать ссылки.
# Вам нужно сгенерировать html-код на питоне и сдать на проверку html-файл, в котором будет таблица размером 10 на 10, которая должна содержать таблицу умножения для чисел от 1 до 10.
# Каждое число в таблице должно быть ссылкой на страницу http://<это число>.ru... | [
"wir_die_traumer@mail.ru"
] | wir_die_traumer@mail.ru |
1e1dea19b3032c109d58c3449d15ab7e38671d6e | adafae386bbffd96c5df3a29d789f8d4f68aa43e | /positivenumber.py | 742ce50962e739612117598baf20336edcd6d647 | [] | no_license | nikhilgeroge/pythonbasics | 44041d58c8a61a3358f74f268e38e636b6449635 | 6f49556e468da4b8f2e6985efe5606b12034ca20 | refs/heads/master | 2022-11-26T06:26:42.344096 | 2020-08-07T11:22:10 | 2020-08-07T11:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py |
amal=[];
n = int(input("Enter the number of terms"))
for i in range(0,n):
amal.append(int(input("Enter the term")));
print(amal);
for i in amal:
if i>=0:
print(i);
| [
"noreply@github.com"
] | nikhilgeroge.noreply@github.com |
a9855530169d7b4d62b67459b4a77e7716eb9f61 | c51b9b183b7bfb41219be0868bb01f5e166c5a7c | /server.py | 54cbca9e9b207a0e56fe5aadf72916af4b8cef0e | [] | no_license | Barathwaja/Status_Update_Bot | 2f05eb5b8b48fd8a7105a889ee5dd9aa7f087390 | abcf08cdfe547ba164917e1bd7e9188ace8ecf0d | refs/heads/master | 2020-04-01T20:38:26.838644 | 2018-10-18T12:30:23 | 2018-10-18T12:30:23 | 153,613,525 | 1 | 0 | null | 2018-10-18T11:33:25 | 2018-10-18T11:33:25 | null | UTF-8 | Python | false | false | 34,056 | py | # -*- coding: utf-8 -*-
from flask import Flask, request, abort, Response, send_from_directory
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import requests
import json
import MySQLdb
import random
from date_methods import clean_arg_for_date, clean_date_for_plot, get_month_for_plot, get_tod... | [
"sghanta05@gmail.com"
] | sghanta05@gmail.com |
7245dad299d3e839230546bf0a637f08d25cee06 | 155347f086810df5dcfdae2aceb691fcaf9286e8 | /tools/train.py | 7e8240d33c091d468a9c083e274e48b2a95d02c3 | [
"Apache-2.0"
] | permissive | Ixuanzhang/mmdet | 8458c6def6b627218e6093cb7d1fcfe12232f2e1 | a8f8397e49e3091f23262f8ace9641ee2c6be746 | refs/heads/main | 2022-12-27T15:03:51.696797 | 2020-10-09T12:11:20 | 2020-10-09T12:11:20 | 302,585,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,765 | py | from __future__ import division
import argparse
import copy
import os
import os.path as osp
import time
import mmcv
import torch
from mmcv import Config
from mmcv.runner import init_dist
from mmdet import __version__
from mmdet.apis import set_random_seed, train_detector
from mmdet.datasets import build_dataset
from ... | [
"919747402@qq.com"
] | 919747402@qq.com |
ce66b11d446572509c9d39ceaeacd60871c5eb81 | d5697fea4c5a31ac5deb25691b1c59e041b9a177 | /Data_analysis/MI_analysis.py | 065b912bfc49aec6a2597d2fa505dc1032721195 | [] | no_license | YGJW27/CV-pytorch | 63b26282f129e4198fd68747505091c26f799c48 | d5f549507e5af2783ed12cef5d7e312d57d6bb81 | refs/heads/master | 2021-06-11T11:31:27.323854 | 2021-03-30T13:11:38 | 2021-03-30T13:11:38 | 154,324,519 | 1 | 0 | null | 2019-12-11T01:39:25 | 2018-10-23T12:30:26 | Jupyter Notebook | UTF-8 | Python | false | false | 4,609 | py | import os
import glob
import pandas as pd
import networkx as nx
import numpy as np
import torch
import scipy.stats
import matplotlib.pyplot as plt
from sklearn.preprocessing import MaxAbsScaler, KBinsDiscretizer
import warnings
warnings.filterwarnings("ignore")
DATA_PATH = "D:/code/DTI_data/network_FN/"
def data_list... | [
"sheart2v@outlook.com"
] | sheart2v@outlook.com |
4733c4fada16561b0df6c63c121b491434349d75 | d3df80cdb8fff177aae5b6b2ef4fcb8a5d67dab8 | /run.py | 3837044b961ae841e19790f0708cafc242d52702 | [] | no_license | connormahern/Caled | 001aeac88f276e3f8c291b42205d2376222fd8a8 | 7fce7e9c45ec338d50a3e3dfef4cec9e56124f29 | refs/heads/master | 2023-04-07T02:16:37.201410 | 2021-04-15T18:31:58 | 2021-04-15T18:31:58 | 342,975,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import os
from main import create_app
config_name = os.getenv('FLASK_CONFIG')
app = create_app(config_name)
if __name__ == '__main__':
app.run() | [
"cjmahern@iu.edu"
] | cjmahern@iu.edu |
0b6a85e3dbcc6b4859a504f53d7a75018557849e | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/services/pages/async_client.py | 440ca336ad8b82928c46637a73125a29c4707dba | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,354 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
40baaa3338fe05e60770d2d4e7e16777ddef95b6 | 6a6ecc0cd30257ef5fc08353a6ffecc9b5ee2ac4 | /manage.py | f0a047c4a97c2ba552198ff1df0fc6063c38a9d8 | [
"MIT"
] | permissive | rozap/aircooledrescue | d144f5beb1d3be4c031f7722eaa4c00ae0b60a4a | 95c0fec2a8452205019db7e721a7da1fcc4d5507 | refs/heads/master | 2021-01-02T04:53:16.111189 | 2014-09-23T02:42:18 | 2014-09-23T02:42:18 | 22,563,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "buspeople.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"chrisd1891@gmail.com"
] | chrisd1891@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.