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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd309d0b656942f65a5f6031b1475317b8f6cf1f | 79661312d54643ce9dcfe3474058f514b01bfbe6 | /ScikitLearn/ElasticNet_1f.py | 9591fda25cf74ca65630946558d5e9573e4ea026 | [] | no_license | davis-9fv/Project | 5c4c8ac03f5bf9db28704e63de9b004f56a52f10 | f2bd22b3ac440b91d1d1defc8da9e2ba2e67265e | refs/heads/master | 2020-03-20T22:24:07.244521 | 2019-02-28T16:58:04 | 2019-02-28T16:58:04 | 137,796,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.ElasticNet.html#sklearn.linear_model.ElasticNet
from sklearn import linear_model
from sklearn.linear_model import ElasticNet
import numpy as np
from pandas import read_csv
from sklearn.metrics import mean_squared_error
from sklearn.model_selection... | [
"francisco.vinueza@alterbios.com"
] | francisco.vinueza@alterbios.com |
e6fad7f463eff5d99f3db1845dffcc5deb54c895 | f971296ebf5f90fa0afb7d6bab3d3c53bc19a8d0 | /tests.py | 5a9cdf8b68f53c278ef2ad1cc39865d9c8f25d41 | [] | no_license | Harkishen-Singh/ss | e1595e21e2ead28b11955fd15f717238633d3f06 | 3ff1549cbb172a6b13978a08296a1301a86fe1d6 | refs/heads/master | 2020-03-18T15:22:11.246444 | 2019-03-27T18:47:37 | 2019-03-27T18:47:37 | 134,903,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | import datetime
n ='rec__' +str(datetime.datetime.now())
print(n[:10])
a = n.replace('-','_')
print(a)
from pymongo import MongoClient
url = 'mongodb+srv://harkishen:Bbsr131@cluster0-zmd3i.mongodb.net/test?retryWrites=true'
#url = 'mongodb://127.0.0.1:27017'
dbn = 'test'
client = MongoClient(url)
db = client[dbn]
coll ... | [
"harkishensingh@hotmail.com"
] | harkishensingh@hotmail.com |
05804af1aea4cd38676b0b1f786d1b77a3bb479b | 448a94888aa9198a56ab343062a3df74a88801a0 | /python/pstudy_63.py | 4678e6958cb119120ce4b15d86783a12e5cdb15e | [] | no_license | atyu30/Boringlife | 0dc06c0fc3da8838b424cf0022df415a18fd3e59 | d3387defc36b5e140562215534df5eddbe5fc702 | refs/heads/master | 2016-08-12T03:00:26.948157 | 2015-12-24T15:36:16 | 2015-12-24T15:36:16 | 48,547,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | #!/usr/bin/env python
# encoding: utf-8
'''
【程序65】
题目:一个最优美的图案。
1.程序分析:
2.程序源代码:
'''
import math
class PTS:
def __init__(self):
self.x = 0
self.y = 0
points = []
def LineToDemo():
from Tkinter import *
screenx = 400
screeny = 400
canvas = Canvas(width = screenx,height = screeny,... | [
"ipostfix@gmail.com"
] | ipostfix@gmail.com |
7806304f920b2e89d874510fbb36b9f4ee358bc7 | c589ffd51fea8491034f87f6151a161c25c11d28 | /mysite/blog/models.py | a2364200eb6d6840b91d546b0a80b06e22b124e5 | [] | no_license | AndreLovera/my-first-blog | 6dd3b03b2efb061b2b396e02b05720ceb5ede0bb | 1f4494e7d109df679a725bf0348289233652599c | refs/heads/master | 2020-03-10T23:13:15.298345 | 2018-05-09T23:18:00 | 2018-05-09T23:18:00 | 129,279,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default = timezone.now)
published_date = models.DateT... | [
"andre5228231@gmail.com"
] | andre5228231@gmail.com |
bd635375c320021a3d0767898c889244734fef02 | eea03c7c560ba6103a0ce737575af0126798480e | /Algorithm/Code09-01.py | 90b6dcf7c6c2550029bfca82bd223eb3a7c90408 | [] | no_license | jeonsun3629/TIL | e69162c4cfa1c8994972df0d35d18e72944daba8 | 4a4c016374a29e6674644fb6a83c053240946790 | refs/heads/master | 2023-06-16T12:19:08.530122 | 2021-07-14T09:32:14 | 2021-07-14T09:32:14 | 328,339,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | ## 함수 선언 부분 ##
class Graph() :
def __init__(self, size):
self.SIZE = size
self.graph = [[0 for _ in range(size)] for _ in range(size)]
## 전역 변수 선언 부분 ##
G1, G3 = None, None
## 메인 코드 부분 ##
G1 = Graph(4)
G1.graph[0][1] = 1; G1.graph[0][2] = 1; G1.graph[0][3] = 1
G1.graph[1][0] = 1; G1.graph[1][2] = ... | [
"jeonsun3629@gmail.com"
] | jeonsun3629@gmail.com |
4a69e480891dda49ef8586ab48e9e957f44d391d | 327981aeef801fec08305d70270deab6f08bc122 | /19.网络编程/TCP编程/2.客户端与服务器端的数据交互/client.py | 659f33d99bf8eb92f58accb100300281589e8207 | [] | no_license | AWangHe/Python-basis | 2872db82187b169226271c509778c0798b151f50 | 2e3e9eb6da268f765c7ba04f1aefc644d50c0a29 | refs/heads/master | 2020-03-20T12:15:44.491323 | 2018-06-15T08:24:19 | 2018-06-15T08:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # -*- coding: utf-8 -*-
import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(('192.168.43.240', 8083))
count = 0
while True:
count += 1
data = input("请输入给服务器发送的数据:")
client.send(data.encode("utf-8"))
info = client.recv(1024)
print("服务器说:", info.decode("utf-8"))
... | [
"huanji2209747841@foxmail.com"
] | huanji2209747841@foxmail.com |
b183fd247237298655d932c09b777a7f4625b802 | e6208febf7e34d4108422c6da54453373733a421 | /sdks/python/client/argo_workflows/model/io_argoproj_events_v1alpha1_open_whisk_trigger.py | b73ce18a83ef1645a3a1956f8785cb123ff59e8a | [
"Apache-2.0"
] | permissive | wreed4/argo | 05889e5bb7738d534660c58a7ec71c454e6ac9bb | 41f94310b0f7fee1ccd533849bb3af7f1ad4f672 | refs/heads/master | 2023-01-22T05:32:12.254485 | 2022-01-27T21:24:45 | 2022-01-27T22:02:22 | 233,143,964 | 0 | 0 | Apache-2.0 | 2023-01-17T19:04:43 | 2020-01-10T22:56:25 | Go | UTF-8 | Python | false | false | 13,500 | py | """
Argo Server API
You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501
The version of the OpenAPI document: VERSION
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from ... | [
"noreply@github.com"
] | wreed4.noreply@github.com |
eb6ce26a0027fcde1d6a0b3ece6d970e17dd7473 | 1d4d698be462c414cb3838cd4c5bd10798964e7d | /bship.py | 64054f623cc6b04a759b31dd45c1eed00fd0e953 | [] | no_license | gitKrystan/LearnPython | 97241b79a612c38539b21c9c5a02ac867a49f290 | 3d1960bc1c9f81620ce9abe281bf585a480d6366 | refs/heads/master | 2021-01-19T14:10:36.495565 | 2015-09-06T21:28:07 | 2015-09-06T21:28:07 | 42,017,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | from random import randint
#Create board
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print " ".join(row)
#Place ship
def random_row(board):
return randint(0, len(board) - 1)
def random_col(board):
return randint(0, len(board[0]) - 1)
ship... | [
"kmenne@gmail.com"
] | kmenne@gmail.com |
7edeb8c7beb7fbe1451d766618e132881c83ba72 | fc3c97c2ec7a01bb9883bec6a47f9cbf59695382 | /Python高级语法/多线程/多线程07.py | 9ced7b4b6f382d390c0db3582fdd936ae2180f19 | [] | no_license | guowenliang/StudyData | af2bcfb789fea09676cc3d59e96270f3b573fc7d | d57df412c9aa8b0db1c6fa161bdcf98faa366584 | refs/heads/master | 2020-08-30T06:33:59.516624 | 2020-02-06T13:52:42 | 2020-02-06T13:52:42 | 218,291,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import time
import threading
def fun():
print("start fun")
time.sleep(2)
print("end fun")
print("main thread")
t1 = threading.Thread(target=fun,args=())
t1.setDaemon(True)
t1.start()
time.sleep(1)
print("main thread end") | [
"736498007@qq.com"
] | 736498007@qq.com |
38d04cc7afed1c10a20297dcc8cab9f85f307ec5 | 6d37c05de7d73e04f87c6ed796c77144cd8fa187 | /Chapter5/Challenge6.py | 736c77478dd0b59baddd2cfa380dc27017fe4e3b | [] | no_license | eizin6389/The-Self-Taught-Programmer | edc37ed6d95e8b24f590a6cbb9c75c0e5bd4e2e3 | 9c23612dfb11d5302cb26a359d02c88886cf986c | refs/heads/master | 2022-12-08T06:47:37.541256 | 2020-08-30T07:16:01 | 2020-08-30T07:16:01 | 286,423,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | s= {"百",100,(0,1,2)}
print(s)
print(len(s))
s.add("二百")
print(s)
s.discard(100)
print(s)
s.pop()
print(s)
s.clear()
print(s)
| [
"hide@matsumotohideto-no-MacBook-Pro.local"
] | hide@matsumotohideto-no-MacBook-Pro.local |
8f6c93421feb90167cded3e1703a03a155bdfa14 | 08eb06a7e26e8fafe46c2cb5bbeca0e2d666bd97 | /tools/eggnog_mapper/data_manager_eggnog_mapper_abspath/data_manager/data_manager_eggnog.py | 3b99dd6cff6a4763cfe62dc3c15304f436c16a91 | [
"MIT"
] | permissive | bernt-matthias/tools-galaxyp | 9e558e0c4126f629ccba25160f14f2cc7a45ebc6 | 6128c982eda8bb6c7a9fd01bd9a5b8d7fc3f810d | refs/heads/master | 2023-08-17T03:10:04.843458 | 2023-08-07T10:49:17 | 2023-08-07T10:49:17 | 104,768,403 | 0 | 0 | MIT | 2022-11-25T21:24:32 | 2017-09-25T15:31:52 | JavaScript | UTF-8 | Python | false | false | 41 | py | ../../data_manager/data_manager_eggnog.py | [
"noreply@github.com"
] | bernt-matthias.noreply@github.com |
1d4091379e42c93e8139d3e1ed9db898a76a6efd | 360784acec7608c0a12fed5f2b050ef629455cd4 | /Monte Carlo Tree Search/kalah.py | 0c048e4da38388b1edd9d61ca853d1f5b090c675 | [] | no_license | jasky1640/AI-Related | cc952dadb46d190709accf3fd797ec241e8c8f35 | b05163b4497b72f2e40d39208b9b5171dac8885e | refs/heads/master | 2023-03-05T05:18:39.903942 | 2021-02-07T21:37:52 | 2021-02-07T21:37:52 | 207,665,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,560 | py | class Kalah:
def __init__(self, p):
''' Creates a Kalah board with the given number of houses
per side (plus two store pits) each containing the given.
p -- a nonnegative integer
'''
if p < 0:
raise ValueError('Number of pits must be positive: %d' % p)
... | [
"jxy530@case.edu"
] | jxy530@case.edu |
03df517b29a5e8f563dcbfa3fa5695bd4286ea5f | f0da1df09e7418ddb78a6592022611a8ddb7f221 | /setup.py | 27c773c80b08d4a6fd3269689ac958ee9d9080c7 | [
"MIT"
] | permissive | geekblogs/word-embedding | 27e425b693e72a55404a40f61414a7a995d3b410 | 9f8d10b4ea7bb9f4ad3bb04b02768735484aef2e | refs/heads/master | 2022-02-18T04:34:42.561152 | 2019-09-10T16:09:42 | 2019-09-10T16:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from os import path as os_path
# Package meta-data.
NAME = 'pyembed'
DESCRIPTION = 'Embed your own words (with word2vec).'
URL = 'https://github.com/acapitanelli/word-embedding'
AUTHOR = 'Andrea Capitanelli'
EMAIL = 'andrea@capi... | [
"andrea.capitanelli@gmail.com"
] | andrea.capitanelli@gmail.com |
bd0f4186ec3803b6054587820d05344e869dbe1b | 147acdd9dd20daafe14663cf1bc84eb26b548e47 | /SpellingCorrection_TextBlob/AutoCorrect.py | 6a16566cd7fc9c77e7761b10dff21835b49c8aa6 | [] | no_license | vxhl/PythonSonicScripts | 9a40e111c6a0cd3f08427c85f3f41ccbf7b80996 | c02ede2178f75d4f2d89da0bdde9381be1622f06 | refs/heads/main | 2023-08-12T16:13:21.971401 | 2021-09-10T14:26:50 | 2021-09-10T14:26:50 | 379,649,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from textblob import TextBlob
words = ["Machne", "Learnin"]
corrected_words = []
for i in words:
corrected_words.append(TextBlob(i))
print("Wrong words :", words)
print("Corrected Words are :")
for i in corrected_words:
print(i.correct(), end=" ")
| [
"moharibishal@gmail.com"
] | moharibishal@gmail.com |
8cb9fad16805ff1eef128d7408246c8350a45bdf | 5b683c7f0cc23b1a2b8927755f5831148f4f7e1c | /Python_Study/DataStructureAndAlgorithm/剑指Offer/Solution21py | 129b991defc62a3357595192e3b5ddc9ee1ac835 | [] | no_license | Shmilyqjj/Shmily-py | 970def5a53a77aa33b93404e18c57130f134772a | 770fc26607ad3e05a4d7774a769bc742582c7b64 | refs/heads/master | 2023-09-02T04:43:39.192052 | 2023-08-31T03:28:39 | 2023-08-31T03:28:39 | 199,372,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | #!/usr/bin/env python
# encoding: utf-8
"""
:Description:剑指Offer 21
:Author: 佳境Shmily
:Create Time: 2020/4/29 11:59
:File: Solution21
:Site: shmily-qjj.top
"""
class Solution:
def jumpFloor(self, number):
# write code here
pass
if __name__ == '__main__':
s = Solution()
| [
"710552907@qq.com"
] | 710552907@qq.com | |
912e9f2d61160a62ba86afbe70596a88625ed8c9 | 5448b5561045d4359e8ba9502131ae0010b2a49f | /ruhacks_maps.py | 97926c385bff09f8128e35c91df12eaabd4c6189 | [] | no_license | Nabstar3/RUHacks2019 | 53f014e3a83cca4befdeda581e0b31863c61d4f6 | da17feaf78238139137f0a29726f09d1acb74b9b | refs/heads/master | 2023-01-07T18:54:07.071668 | 2019-12-28T00:24:14 | 2019-12-28T00:24:14 | 187,474,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | import urllib.request, json
#"""
##
endpoint = 'https://maps.googleapis.com/maps/api/directions/json?'
api_key = 'AIzaSyCQAs4T3bVLI2RRJQN3bwsj4ZkSiQHMQUs'
##
origin = "Ryerson+University"#input('Where are you?: ').replace(' ','+')
dest = "CN+Tower"#input('Where do you want to go?: ').replace(' ','+')
mode = 'transit'#... | [
"nabeelrajabali@gmail.com"
] | nabeelrajabali@gmail.com |
c7b25385cb2dcffb1822eb57f0186e82139b4bdd | 6ba48daa6de769d240027b86c8c931c32eb44100 | /oauth/get_access_token.py | d45f69874091c6fe54c3d5aa9c1557c34548b31d | [
"MIT"
] | permissive | M31MOTH/SocialBot-1 | d08ff32b5c4dcadb55b960512688a3d6fd0e4970 | f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b | refs/heads/master | 2020-07-21T13:38:03.272776 | 2018-06-08T04:51:18 | 2018-06-08T04:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,397 | py | from requests_oauthlib import OAuth1Session
import webbrowser
REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token'
ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token'
AUTHORIZATION_URL = 'https://api.twitter.com/oauth/authorize'
SIGNIN_URL = 'https://api.twitter.com/oauth/authenticate'
def g... | [
"dev@lukfr.de"
] | dev@lukfr.de |
4a865beed91c9a8e8b4658315602570354bd4770 | f4b011992dd468290d319d078cbae4c015d18338 | /Array/counting_element_in_two_array.py | f63a8421ab898a5ab3b5dcbed4c726b0b2a93aef | [] | no_license | Neeraj-kaushik/Geeksforgeeks | deca074ca3b37dcb32c0136b96f67beb049f9592 | c56de368db5a6613d59d9534de749a70b9530f4c | refs/heads/master | 2023-08-06T05:00:43.469480 | 2021-10-07T13:37:33 | 2021-10-07T13:37:33 | 363,420,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | def counting_element(li, li1):
li3 = []
for i in range(len(li)):
count = 0
for j in range(len(li1)):
if li[i] >= li1[j]:
count = count+1
li3.append(count)
print(li3)
n = int(input())
m = int(input())
li = [int(x) for x in input().split()]
li1 = [int(x) f... | [
"nkthecoder@gmail.com"
] | nkthecoder@gmail.com |
56b18ca46d98919f0d96d158d3f17edeb2a2ad5e | 3d6974270949de1a2fd2d6319fc99d6b78f591b9 | /Hsctf/regulusRegulus_hsctf.py | 29db12653b600780ca466612e16825db266e1f56 | [] | no_license | Necron3574/CTF-Challenges | 4b698bd222eefcad082541913c9acd23e4890802 | 7e34bef431e2344cbef2a7c78ccdeb6173575145 | refs/heads/master | 2023-06-05T02:59:34.852799 | 2021-06-19T12:16:46 | 2021-06-19T12:16:46 | 276,405,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | import numpy as np
import sympy
from Crypto.Util.number import long_to_bytes,inverse
from pwn import *
import math
ans_list = []
def gcd(p, q):
if q == 0:
return p
return gcd(q, p % q)
def lcm(p, q):
return p * q // gcd(p, q)
r = remote("regulus-regulus.hsc.tf",1337)
print(r.rec... | [
"noreply@github.com"
] | Necron3574.noreply@github.com |
9d9cc1011f39088c4a1ce9c103109bc6e958670d | 7fa6619e1b9d8308e3ef0f439934c0df3e000d7f | /Greedy algorithms/sample_algorithm.py | d8816ad4b5a39e9287f6d40367d60587b4e34b6d | [] | no_license | Awinja-j/algorithms | 29677c1ce45eb9b79def073617705f3e8ebb12ce | 9c770ece952bb85bf4acffef0fc86f10e6979723 | refs/heads/master | 2022-12-26T12:19:12.949426 | 2020-09-03T23:45:56 | 2020-09-03T23:45:56 | 292,680,522 | 0 | 0 | null | 2020-10-08T22:20:04 | 2020-09-03T21:09:57 | Python | UTF-8 | Python | false | false | 106 | py | from flask import Blueprint, request, jsonify
greedy = Blueprint('greedy', __name__,url_prefix='/greedy') | [
"ingari61@hotmail.com"
] | ingari61@hotmail.com |
d7857e8040c986cb578fcb3f8736cbe77f1ee7cb | d8cbc94a4207337d709a64447acb9c8fe501c75a | /evaluation/code/utils/checkpoint.py | 0ce4488ec35b22f34e1d615616e0b445ee73a941 | [
"MIT"
] | permissive | sripathisridhar/acav100m | 6f672384fa723a637d94accbbe11a9a962f5f87f | 13b438b6ce46d09ba6f79aebb84ad31dfa3a8e6f | refs/heads/master | 2023-09-06T01:05:21.188822 | 2021-11-18T08:08:08 | 2021-11-18T08:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | import os
import shutil
from collections import OrderedDict
import torch
import utils.logging as logging
logger = logging.get_logger(__name__)
def load_checkpoint(model, state_dict, data_parallel=False):
"""
Load the trained weights from the checkpoint.
Args:
model (model): model to load the we... | [
"sangho.lee@vision.snu.ac.kr"
] | sangho.lee@vision.snu.ac.kr |
cf0dc4dba36e3efd5cb5220020bd95956a8a321a | c6be8220e29951b5164252dabc54593ac8d3e516 | /criticle/scheduling.py | ef393304d0eab3ed8b69fed82125d561097202cf | [] | no_license | rej696/2criticle2furious | e45e6a8c74711a01a593ed793933b691937b4009 | 6ea74c25da807630db4a824bbc1d090fef16fab4 | refs/heads/main | 2023-01-23T10:02:55.846361 | 2020-12-04T17:25:05 | 2020-12-04T17:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | import time
import atexit
import random
import sqlite3
import os
import click
from flask import Flask, g
from flask.cli import with_appcontext
from apscheduler.schedulers.background import BackgroundScheduler
from criticle.db import get_db
BOT_NAME = 'scheduled_poster'
BOT_PASSWORD = '12345'
def run_post_bot(app):... | [
"55083730+rej696@users.noreply.github.com"
] | 55083730+rej696@users.noreply.github.com |
702e2678b812860fd99d5d5961d919bb4fd981e8 | 6b033e3dddc280417bb97500f72e68d7378c69d6 | /V. Algorithm/ii. Site/D. BOJ/Dynamic Programming/2193.py | 4b960384965a4371013ee1182733e2531ed328a8 | [] | no_license | inyong37/Study | e5cb7c23f7b70fbd525066b6e53b92352a5f00bc | e36252a89b68a5b05289196c03e91291dc726bc1 | refs/heads/master | 2023-08-17T11:35:01.443213 | 2023-08-11T04:02:49 | 2023-08-11T04:02:49 | 128,149,085 | 11 | 0 | null | 2022-10-07T02:03:09 | 2018-04-05T02:17:17 | Jupyter Notebook | UTF-8 | Python | false | false | 267 | py | # n = 0: cnt = 0
# n = 1: 1 cnt = 1
# n = 2: 10 cnt = 1
# n = 3: 100, 101 cnt = 2
# n = 4: 1010, 1001, 1000 cnt =3
# n = 5: 10000, 10001, 10010, 10101, 10100 cnt =5
n = int(input())
dp = [0, 1, 1]
for i in range(3, n+1):
dp.append(dp[i-2] + dp[i-1])
print(dp[n])
| [
"inyong1020@gmail.com"
] | inyong1020@gmail.com |
5cca192bc89969910723722bd07c7708f99d1b5c | b89b93666122e0404e204c178351fb9df201b55d | /model.py | 8e78e216ecfea3ce314768602d8471a77f6952b9 | [] | no_license | htZhang25/classification-master | 670d5ddc1e518aa39ced603008f1d1074bb5de92 | f3af5fc930ec0266a26004bf31e89d03671fd71b | refs/heads/master | 2022-12-09T13:28:00.103008 | 2019-06-20T13:19:37 | 2019-06-20T13:19:37 | 192,743,119 | 1 | 0 | null | 2022-12-08T05:17:20 | 2019-06-19T13:57:57 | Python | UTF-8 | Python | false | false | 1,292 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Attention(nn.Module):
def __init__(self, input_dim):
super(Attention, self).__init__()
self.weight = nn.Parameter(torch.Tensor(input_dim, input_dim).uniform_(-1., 1.), requires_grad = True)
def forward(self, x):
r... | [
"1192652971@qq.com"
] | 1192652971@qq.com |
703750ec09744d696cdb0e6436ecadef91de2b13 | 939a96160d1d6d00cddc0b429977d5c153accb6b | /python/tools/tiktok/watermark.py | d1a62827a8c1d82e282539779017bc721f6d0c3a | [] | no_license | xta0/CodeBase | 755a8410fb925c49a01bab455e4fdb009631faf2 | b5bf1af1d980c889a64616d6f154e97c5b8677cb | refs/heads/master | 2023-03-03T04:21:27.923321 | 2023-01-21T02:09:53 | 2023-01-21T02:09:53 | 47,170,102 | 0 | 0 | null | 2023-03-02T07:36:39 | 2015-12-01T06:23:33 | C | UTF-8 | Python | false | false | 1,593 | py | from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
import cv2 as cv
import argparse
parser = argparse.ArgumentParser(description='')
parser.add_argument('--video', default="")
parser.add_argument('--out', default="./")
parser.add_argument('--pos', default=())
args = parser.parse_args()
def cro... | [
"taox@fb.com"
] | taox@fb.com |
872970618a04f2ca7f58bc8040f04ba42271524b | d8fd7f56537d3c4ad4c99965a0a451c5442b704f | /endlesshandsome/wsgi.py | 29a7d6b605fc1118dfa24a6ccc1d6d200ee9a31b | [] | no_license | EndlessHandsome/endless-handsome | 8febdc5edbaed973922b7c31d903d19d4361dc32 | 59f1c3e52bd43c765177288ced755b081db0c746 | refs/heads/master | 2020-04-06T06:57:24.027547 | 2016-08-19T03:51:55 | 2016-08-19T03:51:55 | 65,613,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for endlesshandsome project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
47c6b92399de2246c4e93fa4ef8ac55e20cc10bd | ab4e2883680fd0ab576d9b30be88c08f38e9562b | /examples/causalrec_clothing.py | 011036ed7d2d4fb0335efe82bcd5d637c395b016 | [
"Apache-2.0"
] | permissive | PreferredAI/cornac | 6b2ac4589dfe38a41128b0d00b7fc642a5ae41ba | b0d6fe83e9c99bfe41312059ae849ca1009a179f | refs/heads/master | 2023-08-17T18:17:52.745292 | 2023-08-13T04:51:13 | 2023-08-13T04:51:13 | 141,242,285 | 806 | 150 | Apache-2.0 | 2023-09-14T09:19:15 | 2018-07-17T06:31:35 | Python | UTF-8 | Python | false | false | 2,208 | py | # Copyright 2018 The Cornac Authors. 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
#
# Unless required by applicable ... | [
"noreply@github.com"
] | PreferredAI.noreply@github.com |
28d3d1162f07d7328b3463ee4a62994322b6de5c | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/experimentcode/Thesis/Forced/GaussianBumpoverPeriodicBed/o3fix/Run.py | 9587f565efe9f1d699e85365195fd1c81d45552c | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,675 | py | from scipy import *
from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog
import csv
import os
from Serre3 import *
from numpy.linalg import norm
from time import time
from scipy.special import erf
def copyarraytoC(a):
n = len(a)
b = mallocPy(n)
for i in range(n):
w... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
0bac063d3a631ce56e9092d9b9ec1bbbc00858ec | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /katas/kyu_7/zip_it.py | 733c9415236cc72574804bc9a23e8b2577159867 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def lstzip(a, b, fn):
return [fn(*c) for c in zip(a, b)]
| [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
b1ad9c2926085229d85f7dca89dc2f96939499e2 | ca9a9b1c9ec8508ba4a6d64ee4309a8d87469fee | /web/admin.py | bca04d8cc757a4035af64900e2c3f7f06f9b1c24 | [] | no_license | nagadeepsharma/vmegLibrary | 8ff37a37d945405e7409b57cfb4a60e8c7217e86 | 24eb5faf3ce1fdd1aa3e715b0329732ebd03e0e0 | refs/heads/master | 2023-03-11T12:34:47.712250 | 2021-02-26T11:59:10 | 2021-02-26T11:59:10 | 267,079,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.contrib import admin
from .models import Memo
from .models import Cse,Ece,Civil,Eee,Mech,Cart,All
# Register your models here.
admin.site.register(Cse)
admin.site.register(Ece)
admin.site.register(Civil)
admin.site.register(Eee)
admin.site.register(Mech)
admin.site.register(Cart)
# Register your... | [
"nagadeepchandragiri@gmail.com"
] | nagadeepchandragiri@gmail.com |
32d8b8cb24a7c119f56ac9c2052b990ff43d6860 | f057b4b94d6c1d3ce6a45cdc8c799469cbe00119 | /code/trace_regression/trace_regression.py | 63a730cbc003d3ab1c74a0c78a6303d99da5088d | [] | no_license | sellamiakrem/deep-multi-view-representation-learning | 16afa3f61bb27eb86c483c8ba03af63a2747acc1 | 9b34c297b0a173400aa87bc04208b709aac9b0fb | refs/heads/master | 2022-10-03T23:58:46.291789 | 2020-06-08T06:24:04 | 2020-06-08T06:24:04 | 259,261,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,642 | py | import numpy as np
import convexminimization as cvm
import pickle
import scipy.sparse as ssp
from sklearn.model_selection import KFold
from sklearn.metrics import mean_squared_error
from sklearn.metrics import r2_score
# import matplotlib.pyplot as plt
def load_data(fold):
# Les données dans une liste (pour com... | [
"noreply@github.com"
] | sellamiakrem.noreply@github.com |
038acbebb3f1917c1f4ef804b608c3d38056533b | d8c12aaebb28f593bf7bc47fd2b3188004e4e1a5 | /ClusteringByFastSearch&FindOfDensityPeaks.py | 53ee73f084563466d95a63755c7974277ef2c65d | [] | no_license | yz6028693/Clustering_Without_Pre-inputting_Categories | 63928d6f3d0316a4f6a84b17be31c4733eb59fae | c2987a57bbc541f092b47bb4de513cee2298faf9 | refs/heads/master | 2022-03-02T20:15:43.163925 | 2019-10-09T03:22:13 | 2019-10-09T03:22:13 | 112,286,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,632 | py | import numpy as np
import matplotlib.pyplot as plt
from math import pi, sqrt
from operator import itemgetter
import time
class ClusteringWithDensity(object):
def pol2cart(self, rho, phi):
x = rho * np.cos(phi)
y = rho * np.sin(phi)
return (x, -y)
def RandomArchimedeanSpiralPoints(sel... | [
"noreply@github.com"
] | yz6028693.noreply@github.com |
c015b2d10e279ef05a81006e31cb65634e6aa98d | f5f12848f4cb6985a355b501ba05b1cb4d0cc41c | /python/hello_world/test.py | 995959f9c7520895e937e8ed5812031692939760 | [] | no_license | dshinzie-zz/exercism | 499c0774c2b95a05befa1ce2aab94eb54cce99ae | 73addedfb578b7e591aeda6d79b3161a48b1d3e7 | refs/heads/master | 2021-06-14T05:29:43.764935 | 2017-03-31T18:31:45 | 2017-03-31T18:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | def init__(self, year):
self.year = year
def is_leap_year(self):
return self._is_divisble_by(4) and not self._is_divisble_by(100) or self._is_divisble_by(400)
def _is_divisble_by(self, num):
return self.year % num == 0
| [
"shin.daniel.d@gmail.com"
] | shin.daniel.d@gmail.com |
ef0fde3342528da0960d780262d15269aad0afbf | bbffa308bee71735e27987be37a574a38694d3a1 | /ex08/ex08.py | 52fbeae895a4ee9c1a5535ab3b30ad4db9603f7c | [] | no_license | jppiri1/16PF-C-jppiri1-2- | 03414b545bc4f1e05e92d6ccbc5ba326a9725277 | 68afbe01a5f8a1e55a114bd38f5ea2a4a2fb6595 | refs/heads/master | 2021-01-21T04:47:22.266089 | 2016-06-07T03:58:14 | 2016-06-07T03:58:14 | 54,304,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | formatter = "%r %r %r %r"
print formatter % (1, 2, 3, 4)
print formatter % ("one", "two", "three", "four")
print formatter % (True, False, False, True)
print formatter % (formatter, formatter, formatter, formatter)
print formatter % (
"I had this thing.",
"That you could type up right.",
"But it didn`t sin... | [
"CAD Client"
] | CAD Client |
074edb539567d10307ee6bb96543626e7a203e6b | e29361c8249bc8f37e84f72c24ebb76cfc02728d | /ServerTeset.py | 235340b5e1b744407b6283e9d826393d557b199b | [] | no_license | homayoonSoft/DMP | 0a2287ff02016976c4dbea715f9f9b3d1e7762c4 | ac2a22640475a9eed840b0df8933a5857919374f | refs/heads/master | 2020-05-19T13:18:14.465809 | 2015-08-25T19:44:53 | 2015-08-25T19:44:53 | 41,367,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # Echo server program
import socket
HOST = '192.168.0.5' # Symbolic name meaning all available interfaces
PORT = 50008 # Arbitrary non-privileged port
ac = 5
tamp = 6
bat= 21
in1 = 13
in2 = 19
in3 = 26
fAc= "AcFailuer"
fTamp= "Tamper"
fBat= "BatteryFailuer"
fInput= "Input"
fdata= fTamp ... | [
"homayoon.ezabadi@gmail.com"
] | homayoon.ezabadi@gmail.com |
d73ccf2d39aaf193831dac92f62a3d44013949eb | 0d661d1a81535d36934046ceb483a44dd7e6f8dd | /Cosine.py | 068ef081b92b159ba688b0aca95a1f2b870ae1aa | [] | no_license | cassiyemay/Text_Analytics | 38e2712c68712267629670e7fe9af3641843c0c6 | ad9d50667dfe320302a8c97a995ea122345fd239 | refs/heads/master | 2021-08-23T20:40:04.153178 | 2017-12-06T12:52:52 | 2017-12-06T12:52:52 | 113,315,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | import math
from collections import Counter
vector_dict = {}
def load_docs():
doc1 = ('d1', 'semantic analysis for building model')
doc2 = ('d2', 'learning latent semantic indexing')
doc3 = ('d3', 'analysis of latent structures and semantic analysis of structures')
doc4 = ('d4', 'books on latent stru... | [
"chen.zeng@ucdconnect.ie"
] | chen.zeng@ucdconnect.ie |
71973edce3476ef0427aade214f188a11ec6a1e7 | c03c3668af6e39b4822c2e9afa6f14795d40a32b | /tests/Eva_data_test.py | c45a7428b69f4854bb35c11ca961ceeb0a2edbb7 | [
"Apache-2.0"
] | permissive | automata-tech/eva_python_sdk | eb034b765d954c5f23882a8ac695d7cb0ca4d297 | 9197dbfc5fbe22ba42bea44be0f7560426aeca72 | refs/heads/development | 2023-08-09T18:16:56.689951 | 2021-11-08T13:37:14 | 2021-11-08T13:37:14 | 174,977,213 | 17 | 15 | NOASSERTION | 2023-07-25T20:07:46 | 2019-03-11T10:29:01 | Python | UTF-8 | Python | false | false | 818 | py | from evasdk import EvaError
import pytest
@pytest.mark.robot_required
class TestEva_Data:
# TODO: we may want to check the structure of the snapshot JSON object
def test_snapshot(self, eva):
snapshot = eva.data_snapshot()
assert(snapshot)
assert(snapshot['control']['loop_count'] >= 0)
... | [
"ch.c@automata.tech"
] | ch.c@automata.tech |
f34846e33b05fcd5dbd1d5dbc9edaf47e587cbd5 | 15ec207a9ffaf4834ac18379a9cd67d08f7553a7 | /cleanpkgcache | fc4d6f0f95ac60579f6b5c355d2b698f0518f813 | [
"MIT"
] | permissive | adamk33n3r/bin | 115042e1beb995174baa2e8b07cbb01293f81132 | 7757e087741f30bbeb7c5574af28a59b2873643f | refs/heads/master | 2023-04-05T12:09:17.258837 | 2021-04-12T14:33:14 | 2021-04-12T14:33:14 | 17,489,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | #!/usr/bin/python3
import os, sys, re
from itertools import groupby
if not os.geteuid() is 0:
sys.exit('Must execute as root')
def identifier(text):
return (re.findall('.+?(?=-\d)', text) + [text])[0]
if len(sys.argv) > 1:
num = int(sys.argv[1])
else:
num = 1
for root, dirs, files in os.walk('/var/... | [
"adam.g.keenan@gmail.com"
] | adam.g.keenan@gmail.com | |
45cef53e4a83b12787a6643042c6262b0882b385 | d272fc0381a435bd407455a7b9321592c40e88a0 | /labb3ex/ex8.py | e2d939c8023db02a4d5e749a84d1bcf3ced7db40 | [] | no_license | erikthomasson/Python | d121d04807cd585d7c45a4a8bc636d8937805de9 | 8aaa6a390a14609cf19e8eb1a30dc7fcff24bf24 | refs/heads/master | 2020-05-07T19:58:34.212774 | 2019-04-11T17:05:27 | 2019-04-11T17:05:27 | 180,839,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py |
tuplsort=()
lista= [(1, 'Welcome'),(2,'to'),(4,'Python'),(3,'the'),(5, 'course')]
index = 1
while index <= len(lista):
for i in lista:
if i[0] == index:
tuplsort += (i[1],)
index+=1
print(tuplsort) | [
"erik.thomasson98@hotmail.com"
] | erik.thomasson98@hotmail.com |
b13a24e3823a24c4e424b74499e043a1dba98a3f | de65c8e672e5b620619f90ce3aa7e7ec80ef2d84 | /0035_type_hinting/usage/demo2_class_as_type.py | 7f3301b9a8a79971966b42f93f965191310f37bf | [
"MIT"
] | permissive | tukeyone/jupyter_demos | 123ee76a79cff8924df015a50199c371f81fcad1 | 8aa8a0320545c0ea09e05e94aea82bc8aa537750 | refs/heads/master | 2022-11-06T20:29:20.513301 | 2020-07-04T17:25:36 | 2020-07-04T17:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | class Person:
pass
def f(p: Person):
pass
f(Person())
f(1)
f('aaa')
| [
"cai.junjie@synyi.com"
] | cai.junjie@synyi.com |
d3ced68266685dd36f55b315a30e3b253a75301c | ed9fe8d7168da525f49d5854c3fcef688a530c9f | /Emotes.py | e407437a1561c30a6dc283704e213effaf92401d | [] | no_license | jsmall53/ThunBot | 2cb36f0ec30accb56581d167911052e846a13e8a | 6b565d081c33aeda825d65937b0ac4575d22a70d | refs/heads/master | 2021-01-11T20:11:32.058158 | 2017-08-05T17:02:28 | 2017-08-05T17:02:28 | 79,062,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # This class will store emotes as well has contain methods for choosing and comparing emotes
import random
import DBInterface
class Emotes:
'''This class stores emotes usable through twitch.tv chat interface'''
# first we need to open the file containing the emotes
# its in a .txt file and each emotes is separate... | [
"jsmall53@ymail.com"
] | jsmall53@ymail.com |
b72639fefb186348b900a58c7e765b4f198fea4c | f8d0e0358cfc7774e2ade30fb041a7227f72f696 | /Project/MNIST/Actual_Picture/mnist_generate_dataset.py | 7fad26b687d9e1f1ecda401e1fd57dbd54d78c55 | [] | no_license | KimDaeUng/DeepLearningPractice | e01c99d868e7a472ca5ec9c863990e0ab4b48529 | 811f26e0859f0f7cb73d9a0ce3529fb8db867442 | refs/heads/master | 2023-04-01T02:26:14.670687 | 2021-04-03T14:08:48 | 2021-04-03T14:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | import tensorflow as tf
import numpy as np
from PIL import Image
import os
# Generate standard tfrecord of training or testing set
image_train_path = './mnist_data_jpg/mnist_train_jpg_60000/'
label_train_path = './mnist_data_jpg/mnist_train_jpg_60000.txt'
image_test_path = './mnist_data_jpg/mnist_test_jpg_10000/'
labe... | [
"daviddwlee84@gmail.com"
] | daviddwlee84@gmail.com |
5cd0cfe9fac8e2bc399ea057c6a9695b6a68d405 | 0c7de663a777604e8aa4e79b57540b1b228b6c92 | /part1/mysite/mysite/settings.py | 85d0b56d596ce3fe4fe389bcea7916fd3151bc9f | [] | no_license | ogra/django-tutorial | 39bf8abf8831bfc1cf4da5785839188397229683 | 2d5f519a1185a6b6ab2c0e3beed7bc5a3627b36b | refs/heads/master | 2016-09-08T01:12:59.528743 | 2014-08-04T02:01:13 | 2014-08-04T02:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | """
Django settings for mysite 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, ...)
imp... | [
"tos.ogura@gmail.com"
] | tos.ogura@gmail.com |
c73f34c67db7b5d63bd10104628abd4397a24505 | aed48b8de71d95ae3c1cadb72f1ef7efe7193d0d | /bin/flask | df25fe987fb2dfbb170c2fc373ec646a1c40ae20 | [] | no_license | frknltrk/videohub | 7bc77c1603803046cb182e418b1dcc990fa1d2be | d3f5fb73941abb8a38305f30d0ced3d3ffbee82a | refs/heads/main | 2023-02-05T16:46:05.929642 | 2020-12-27T22:35:25 | 2020-12-27T22:35:25 | 324,857,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/data/data/com.termux/files/home/video-project/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"furkan.unluturk@outlook.com"
] | furkan.unluturk@outlook.com | |
1fbaaa37c9e7d4d0e2c6deac7bbb8cc540139e05 | 7f42b09c84b72477284a57fcef18b322b35ef676 | /src/wres.policy/wres/policy/cmedstat.py | d5272bd13d50c153fb304dc493695011eac36354 | [] | no_license | luizferreira/cmed | f054bec365ecf04124fb4593f8613269265f6826 | a276663fe1df45d0326744e161bdd239873d6c26 | refs/heads/master | 2021-01-19T00:52:25.005971 | 2020-12-02T14:45:43 | 2020-12-02T14:45:43 | 4,264,885 | 12 | 3 | null | 2019-10-25T20:14:12 | 2012-05-08T20:01:36 | Python | UTF-8 | Python | false | false | 726 | py | # As requisicoes ao cstat agora sao assincronas. Retirar a partir de DEZ/2013
# import requests
# from Products.CMFCore.utils import getToolByName
# def request_stat_registration(context):
# prefix = 'cmed_'
# site = "http://cstat.communi.com.br/cmed_stat"
# mt = getToolByName(context, 'portal_membershi... | [
"lgustavo.fonseca@gmail.com"
] | lgustavo.fonseca@gmail.com |
5b6840976a35753859a84449e8b8048a8decffe4 | 2946333b30057db971de3f73172c97e21389968b | /Script/Question_2.py | 0d26ec90b5c50a5556cb24ccc646fcd448731644 | [] | no_license | sailepradh/Python_practise | ef274602480e146ca65f9f154d4a583e16055e10 | 9609c32a3245107e0007e23241d5eadadb65cf7f | refs/heads/master | 2021-06-14T08:49:04.460713 | 2017-04-21T15:13:06 | 2017-04-21T15:13:06 | 54,280,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
'''
In the following task we use GTF file to find further manipulation from the course as given in the website "https://nbisweden.github.io/PythonCourse/vt17/project"
'''
# Question 1 ) How many transcripts
with open ('/Users/salendrapradh/Downloads/Homo_sapiens.GRCh38... | [
"sailepradh@gmailcom"
] | sailepradh@gmailcom |
ad9c89bd8e79b7e53932b5fb45189b072c1993ae | 961c0931d62563ad41d1380dfb7191eb8a518ff2 | /test/test_remove_contact_from_group.py | 3823b8fdb22464d937e0fee95cd26cb0a330e2e1 | [
"Apache-2.0"
] | permissive | GatskevichVika/python_training | bc71155239921629bd753350a489f01b8525b995 | 80d639223fc66e5d537d490c014f2b23907a32ab | refs/heads/main | 2023-06-05T01:21:47.636918 | 2021-07-02T15:05:16 | 2021-07-02T15:05:16 | 349,970,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | from model.contact import Contact
from model.group import Group
from fixture.orm import ORMFixture
import random
db = ORMFixture(host="127.0.0.1", name="addressbook", user="root", password="")
def test_add_contact_in_group(app):
contact_list = db.get_contact_list()
if len(contact_list) == 0:
app.con... | [
"gatskevich.vika@gmail.com"
] | gatskevich.vika@gmail.com |
6d6ea4a6da71a4dd55b9827ed63099c095f2893a | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/config/configurations/list.py | 31105c5866eaeddb88a441350c50f64724d0caa9 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 2,213 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 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
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
8b9c582e5efa3d024b5ecea10ddf5049c4bdefaa | 178ead986696961c4df5597487893a4110c8ada4 | /config/urls.py | 15ad10e0e4ac4f3efee48bfbcd51b2fe2319a680 | [] | no_license | Donkey-1028/MyFirstSite | c71a129f5b2d03ccbca84202310871fb2ae0d8ec | efe7cf68df64e0e4b070cf0100abc0dd0eb33eec | refs/heads/master | 2020-11-25T10:07:30.889875 | 2019-12-18T02:53:45 | 2019-12-18T02:53:45 | 228,611,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-based ... | [
"anbo10283182@gmail.com"
] | anbo10283182@gmail.com |
3349d97d66f23100f093b22aec74b65a021064ea | 2a5d4ab9d498e413fc69212c615fbb6c6a2c6540 | /week05/exercise1.py | 6525a0b222ed14224ddbe48ec8d68c3f8ff264d5 | [] | no_license | lumengyu/python123 | 6f985f9fb75e6a08d08ebef50058c4f632c27ead | 32dc37234c90502d83f08fd50a452c5781f04c47 | refs/heads/master | 2022-02-05T12:00:39.655111 | 2019-07-29T08:49:06 | 2019-07-29T08:49:06 | 198,126,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import random
def genpwd(length):
a = pow(10, length - 1)
b = pow(10, length) - 1
return "{}".format(random.randint(a, b))
length = eval(input())
random.seed(17)
for i in range(3):
print(genpwd(length))
| [
"zgshwp@aliyun.com"
] | zgshwp@aliyun.com |
b1b89d27acde49ab2be9babcf4237350e3e3e901 | 9fcfc5d38cbc42436f643ba972b838bfa7a39ab1 | /FAHAD.PY | e9f383b930cb8a50e838752de607c46989d23086 | [] | no_license | sheikh123713/FAHADXHLA | a21464fefe174c72d0e86e167084bb49cbdb7959 | 788c4a3d4e03ff643067a0d8638a446b9d721abc | refs/heads/master | 2022-11-09T17:06:54.419099 | 2020-06-27T00:21:13 | 2020-06-27T00:21:13 | 275,270,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,290 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | sheikh123713.noreply@github.com |
61abe9787e2e68147c620f0f6ec3363dec771ddf | f3eb2a9f8b9cd43cf1c9776426c9a4ca35413e66 | /DyMRI-image_space_reg/datasets/kmnist.py | b8db44c4ed1247c8a3f8be1e37ee19e9046d1b8f | [] | no_license | danieldemarch/yang_mri | 52fc024d4c0fbb17a6950b8877f779ef1c7ba25a | 602fd2b2c28f4067d818ee401a98c6687bcf663d | refs/heads/main | 2023-02-11T22:27:18.343768 | 2021-01-09T02:20:38 | 2021-01-09T02:20:38 | 328,050,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,308 | py | import os
import numpy as np
import torch
import tensorflow as tf
image_shape = [32, 32, 2]
data_path = './data/mnist/'
train_x, train_y = torch.load(data_path + 'training.pt')
train_x, train_y = train_x.numpy(), train_y.numpy()
train_x = np.pad(train_x, ((0, 0), (2, 2), (2, 2)), mode='constant')
train_x = train_x.ast... | [
"noreply@github.com"
] | danieldemarch.noreply@github.com |
1fa28b0aa65aed60b432edff5dfd326be09701ad | 6da51a4b693d47d812cfbb1ee2b1d743ae1794c1 | /geoscript/feature/io/json.py | fa29a79500f4f5312b5964cd4e7285f7ac59cb57 | [
"MIT"
] | permissive | geoscript/geoscript-py | 412e2af097f65b4f339ed2bfd773959aca67ea5b | 28f97e7851f6d8b79712f785ef5f65ec5bf19267 | refs/heads/master | 2023-01-19T13:00:53.649044 | 2022-12-30T19:05:42 | 2022-12-30T19:05:42 | 275,684 | 24 | 16 | MIT | 2020-08-10T01:22:03 | 2009-08-12T02:26:26 | Python | UTF-8 | Python | false | false | 795 | py | from geoscript.feature import Feature
from org.geotools.geojson.feature import FeatureJSON
_fjson = FeatureJSON()
def writeJSON(f):
"""
Writes a :class:`Feature <geoscript.feature.Feature>` object as GeoJSON.
>>> from geoscript.geom import Point
>>> writeJSON(Feature({'geom':Point(1,1),'name':'one'},'1'))
... | [
"jdeolive@gmail.com"
] | jdeolive@gmail.com |
de2a5e9123899c4d2aa008f270bed4e1523f7c76 | 2ba65a65140e818787ab455ca374f99348ade844 | /hashmap_and_heap/q004_longest_consecutive_sequence.py | 30fea9fc4eba2b9a20ea220cdbe5bcb49156643d | [] | no_license | samyakjain101/DSA | 9e917f817a1cf69553b5f8ca5b739bc6f0c81307 | 632a605150704ceb5238cb77289785eb5a58201c | refs/heads/main | 2023-05-06T06:31:09.401315 | 2021-06-01T13:37:59 | 2021-06-01T13:37:59 | 340,645,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | def longest_consecutive_sequence(arr: list):
hashmap = dict()
for num in arr:
hashmap[num] = True
for key in hashmap.keys():
if key - 1 in hashmap:
hashmap[key] = False
max_streak_start_point = 0
max_streak = 0
for key, value in hashmap.items():
if value:
... | [
"samyakjain101@gmail.com"
] | samyakjain101@gmail.com |
0f33e3681f7db699c764447e50f04a6ef5d0e019 | 789f98624dcb32987ff5570c6bcd5e40b86ea433 | /FileSender.py | fcf0fbba7d85a274d60f1a159d80a6e9bbee008d | [] | no_license | youssef-itanii/Messaging-App | 2c79c5644fd64836000e5a7d43777e18bae9e15f | 6ad18b5adf224035a3cab2c418149577bc331b30 | refs/heads/master | 2022-09-22T09:54:04.949335 | 2020-05-30T01:05:04 | 2020-05-30T01:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | from Commands import Commands
import socket
from os import path
from Loggers.FileLogger import FileLogger
from Loggers.ConsoleLogger import ConsoleLogger
from inspect import currentframe, getframeinfo
from MessageSender import MessageSender
class FileSender(Commands):
def __init__(self,client):
s... | [
"noreply@github.com"
] | youssef-itanii.noreply@github.com |
6daa97e53ba7862d1bb5c814075b310eb5a81670 | 4b00a2fd9f926bab452ede4319ee948dddc84215 | /nys/fieldCreator.py | 3b2a7eaa5016999b9ad06df8737edada013718ba | [] | no_license | maketubu7/make_python3 | 64c00b37600f90d6543f919446cfe7479e883841 | 70405be146cfb83250c51d7211c06a4b6db6db93 | refs/heads/master | 2020-11-29T17:15:46.312929 | 2020-07-27T09:45:29 | 2020-07-27T09:45:29 | 230,176,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | # -*- coding:utf-8 -*-
# @Time : 2020/1/2 15:59
# @Author : dengwenxing
# @Software: PyCharm
import faker
from collections import OrderedDict
import time
from datetime import datetime, date
from random import randint
f = faker.Faker(locale='zh_CN')
'''类似的字段,调用相同的函数,前者为主函数,后者的字段都调用前者的标准函数'''
like_link_func = Ord... | [
"zhengxing@d-bigdata.com"
] | zhengxing@d-bigdata.com |
22f069322c7030e297109b7c43d5b9d3f201ba12 | aced5223f045cafde773bd408c1b84f998f26ff5 | /detect/ws.py | 91893d2365f5df8eaef8d5f31d3b0056bfe57b1c | [] | no_license | FacelessManipulator/face-detect | c219442baa28e1130d353c2ad86f454164e24a52 | 3add475663ca4d5f98d4509fc7cb7763b6cfc3cc | refs/heads/master | 2021-06-19T09:50:09.961819 | 2017-07-12T02:10:47 | 2017-07-12T02:10:47 | 74,874,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | #coding=utf-8
import tornado.web
import tornado.ioloop
import tornado.websocket
import time
from taskpool import FacedetectPool
import json
class BaseSocketHandler(tornado.websocket.WebSocketHandler):
def on_message(self, message):
detector.detect(message,self)
def on_close(self):
print 'clo... | [
"miller_maxwell@outlook.com"
] | miller_maxwell@outlook.com |
00c31c1bf5fe7b0c1adc3db697364b3a593cc6f0 | 067ff93b7775baf5d17db0be508569e3447449c8 | /test/test_sensors_operation_request.py | 72050312888bc3b1bc9217d7f98a2e0598186109 | [] | no_license | UBTEDU/Yan_ADK | c1053d307d9ef39cb1e38ad84a59cf14cb818226 | a650cafc1f6369f6c39a0ac5905d7de564b038df | refs/heads/develop | 2020-05-22T13:52:00.655169 | 2020-05-19T02:32:29 | 2020-05-19T02:32:29 | 186,366,245 | 4 | 4 | null | 2020-05-19T02:32:31 | 2019-05-13T07:19:40 | Python | UTF-8 | Python | false | false | 2,291 | py | # coding: utf-8
"""
Yanshee RESTful API
## Overview Yanshee RESTful APIs are generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server. The API service uses the [Connexion](htt... | [
"cygnus.yang@ubtrobot.com"
] | cygnus.yang@ubtrobot.com |
d8d26f7f459c57d52e0de598befe3a4d27204ee8 | f0564014bb53555a1f0fdcc09f3e18a3c30e333d | /py/chapter_5.py | 0e93088b12cf0901ae375b5465c4cac05edebbed | [] | no_license | cyanlime/StudyPython | 1c14701f65e3ea7c50591ebf42d8a01addd0e105 | 79aadd282f06f7725dc7de9a6ce8c80871c09554 | refs/heads/master | 2021-01-01T03:59:08.683508 | 2017-11-18T12:05:18 | 2017-11-18T12:05:18 | 97,099,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | #!/usr/bin/env python 3.1
a=10
b=20
print ("a added to b is %d" % (a+b))
def in_fridge():
try:
count= fridge[wanted_food]
except keyError:
count=0
return count
def make_omelet(omelet_type):
if type(omelet_type)==type({}):
print("omelet_type is a dictionary with ingredients")
... | [
"codemeow@icloud.com"
] | codemeow@icloud.com |
62aaac7b8b391f9dedc441286abfd1b735d64e50 | 56a98ae2419cffec3ba6b6c9cfec8ff75657f451 | /insta/forms.py | ed02a46dba72e1e5b12c74c2b864d8a2d79cae6c | [
"MIT"
] | permissive | kamransumar/instagram | 1e07db4e8ec2ec1f397f3cdf5dbebf16bbb0ee97 | 7feb8fe989654bad6785348e6b927b7d884bef0d | refs/heads/master | 2020-04-05T21:20:23.436394 | 2018-11-20T10:04:21 | 2018-11-20T10:04:21 | 157,216,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from django import forms
from .models import Post,Location,Profile,Comment
class LocationForm(forms.ModelForm):
class Meta:
model=Location
fields='__all__'
class PostForm(forms.ModelForm):
class Meta:
model=Post
exclude=['username','post_date','likes','profile_pic']
class Pro... | [
"kamransumar@gmail.com"
] | kamransumar@gmail.com |
67a2de749330143d6065e6a18baef586cd3f37ba | e63850d17ce9981492f1ef90d7b99f4099f9760e | /configs/sknet_v2/retinanet_sknetv2_50_fpn_1x_coco.py | 0f234195315fb7fe444617e4f3375c4c03c607c7 | [
"Apache-2.0"
] | permissive | JHuang-CV/mmdetectionV2 | 992ff7b4ea3cfcbdd466c897e9162f277ecd11ce | 0daebd72302a52769d45372e26f772a942db9982 | refs/heads/master | 2023-02-24T01:33:24.230177 | 2021-01-25T09:20:51 | 2021-01-25T09:20:51 | 298,575,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | _base_ = '../retinanet/retinanet_r50_fpn_1x_coco.py'
model = dict(
pretrained='torchvision://resnet50',
backbone=dict(
type='SKNetV2',
depth=50,
# groups=32,
# base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(typ... | [
"3222726703@qq.com"
] | 3222726703@qq.com |
969f83a6e72d90a907287749647e75d734c37fce | 4ec3965ee31407ae4a5fd2d26abf81728d346bf4 | /AULAS/módulos e pacotes/úteis.py | 83ed19a48eb51e5637c20eefd421c38c2d9c9a62 | [] | no_license | Gporfs/Python-s-projects | fe0fd560ef46846a2be904b7c89e618eecdacbbc | 2b427eb894284d894483de566fb54cef105afa44 | refs/heads/main | 2023-04-12T08:39:27.762486 | 2021-05-17T12:39:52 | 2021-05-17T12:39:52 | 368,177,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def fatorial(n):
f = 1
for c in range(1, n+1):
f *= c
return f
def dobro(n):
return n * 2
def triplo(n):
return n * 3
| [
"noreply@github.com"
] | Gporfs.noreply@github.com |
4244494da1dca6c072ce9d1be6b847fe28b4ccd6 | 723d94bc07bf41bb93ba82b9d3f1d6f21ddd6825 | /login_register/asgi.py | b55b2d88a8a06f5fbae0732e0f9f42c8c2daa913 | [] | no_license | Tanmoy07tech/login_register | a18952de12166e4bea476079137ad464207975ee | eee17e4469bc41dd974707a43040c3ec156649b7 | refs/heads/master | 2023-08-03T15:44:11.174299 | 2021-09-15T12:49:58 | 2021-09-15T12:49:58 | 406,653,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for login_register project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"Tanmoy07tech@users.noreply.github.com"
] | Tanmoy07tech@users.noreply.github.com |
0d0ffda577ccb37780d4868464ca1a94879b1103 | 0a0e622f955b548e23bf5f974c58b5a6dde714d1 | /tensorflow_estimator/python/estimator/canned/linear.py | 3ebd5d8cb98f65d917286769627a53af1050eae3 | [
"Apache-2.0"
] | permissive | brettkoonce/estimator | 7a4172542d9ec67359147c07df252632ea1c2a4e | ba2f4a069bc0ee4a96f87f4d1c1688fb9121e297 | refs/heads/master | 2020-04-09T05:18:47.974913 | 2018-12-02T00:16:26 | 2018-12-02T00:16:46 | 160,059,700 | 0 | 0 | null | 2018-12-02T15:11:38 | 2018-12-02T15:11:38 | null | UTF-8 | Python | false | false | 48,684 | py | # Copyright 2017 The TensorFlow Authors. 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
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
4be3f9d640f24034aee811f67aaff5db7f7c4544 | b7f3ff4c288c4f74155167b3b6988d74996e776a | /config/settings/test.py | 8bc402d49cd20bda381524c6ea0441d546bb2611 | [] | no_license | Bazinga0426/Jiffyticket | 2a543259de853194c089b94747368f0c1e91a6ba | 912d6c9af0a88c63a19c682d3da69a780f529abb | refs/heads/master | 2020-09-07T15:18:39.069080 | 2019-12-02T11:16:24 | 2019-12-02T11:16:24 | 220,825,077 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY",
default="7vSf1A9ya... | [
"whg0426@users.noreply.github.com"
] | whg0426@users.noreply.github.com |
9f61c533e7a05a5b9f615270c3551bd6d0379f0d | d86e14d97e3d5d7e47fc79dafbf23007b55bd4cd | /make_test_conv.py | e5ea5528de0091ef8b2837e17b7057238a514d14 | [] | no_license | baholman/Neural-Network-for-Device-Detection | ddb3806a8bd412df4321446260c4e9b0f28e82f1 | edab6b6237fbaf6b5b296ed632c917f569e04700 | refs/heads/main | 2023-02-17T22:36:05.162474 | 2021-01-14T17:05:31 | 2021-01-14T17:05:31 | 329,644,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,416 | py | #!/bin/python
import sys
# Ignore Future warning error
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
# Check that the python version being used is Python3
major_python_version = sys.version_info[0]
if major_python_version != 3:
print("ERROR: You need to use Python 3 to run ... | [
"baholman@ksu.edu"
] | baholman@ksu.edu |
1f9535c24de4ade3dac2a8f1172ea8d42b4c276f | 95089cc3d7b128b9114dce54aee39c1f3f2f348b | /article/views.py | 2ac5f9f4e7c6ad8c00661050cbaa47459de15256 | [] | no_license | Froptt/esnafCoinn | 4c672f42a860ad479ed6364b29017ae061ec5710 | 6156ea7f96683cbbe8b370ee18dc507ff04a271a | refs/heads/main | 2023-08-16T10:12:05.468815 | 2021-09-27T11:47:01 | 2021-09-27T11:47:01 | 410,757,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from django.shortcuts import render,redirect,get_object_or_404,reverse
from .forms import ContactForm
from django.contrib import messages
from django.contrib.auth.decorators import login_required
def index(request):
return render(request,"homepage.html")
def about(request):
return render(request,"about.html... | [
"fropt07@gmail.com"
] | fropt07@gmail.com |
ab38fa82d9b8cf396b4f0b59f0d022fcc182afad | ef2471b1fe707df713ea2b42f9fde65459da53fd | /python-src/nulllayout.py | 700a0e093efb49a5d92c2d33390ce38a82d73caa | [] | no_license | d3vgru/tgs-dist | ca617ee96d5de05b4f3ce243f291feeab77c0899 | ae25725eaad3f4deba0e4cc28594331d9d1d3857 | refs/heads/master | 2020-05-18T11:29:57.626193 | 2013-03-19T22:52:54 | 2013-03-19T22:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | #__all__ = ('NullLayout', )
from kivy.uix.layout import Layout
class NullLayout(Layout):
def __init__(self, **kwargs):
super(NullLayout, self).__init__(**kwargs)
| [
"knutsoned@gmail.com"
] | knutsoned@gmail.com |
4ebc0fe364653bcef0ddfc6fb1701ec2680f4745 | f33c52fe05115fb31f80b4f4e4a3e06a20ae1b9d | /03_Button widget/main.py | ab5b67e6a449b4ce089d48474df231f3118dd15a | [] | no_license | shubham25kr07/Tkinter-Basically | ef27520140cffe06fca50e07ccddeae074fa412f | 69a87076b78bb17ac16c208029573b8a28694f92 | refs/heads/master | 2022-11-09T08:58:17.798050 | 2020-06-23T15:05:24 | 2020-06-23T15:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from tkinter import *
master = Tk()
def ok():
print("Button on click!")
f = Frame(master, width=20, height=25)
f.pack_propagate(0)
f.pack(padx=10,pady=5)
x = Button(f, text="ok", fg="white", bg="lightgreen", command=ok, state=DISABLED)
x.pack(fill=BOTH,expand=1)
master.mainloop() | [
"juliaodejesusmartins@gmail.com"
] | juliaodejesusmartins@gmail.com |
fcbd61892093b56028d5617ccab23d3aca729c0a | ed12b604e0626c1393406d3495ef5bbaef136e8a | /Iniciante/Python/exercises from 1000 to 1099/exercise_1038.py | 8acf7316aa83808418ceec78f9e872c26c2019c0 | [] | no_license | NikolasMatias/urionlinejudge-exercises | 70200edfd2f9fc3889e024dface2579b7531ba65 | ca658ee8b2100e2b687c3a081555fa0770b86198 | refs/heads/main | 2023-09-01T20:33:53.150414 | 2023-08-21T07:07:32 | 2023-08-21T07:07:32 | 361,160,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | class Lanche:
def __init__(self, codigo, especificacao, preco):
self.codigo = codigo
self.especificacao = especificacao
self.preco = preco
def getCodigo(self):
return self.codigo
def totalPorQtde(self, qtde):
return self.preco*qtde
lanches = [
Lanche(1, 'Cachor... | [
"nikolas.matias500@gmail.com"
] | nikolas.matias500@gmail.com |
a52be340b6e6941cb775fd9f43ea853958806772 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /examples/render/show_all_std_line_types.py | e9df274fed178676f291164a7d5210d8cc1bb535 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 726 | py | # Copyright (c) 2019-2021, Manfred Moitzi
# License: MIT License
import ezdxf
from ezdxf.math import Vec3
from ezdxf.tools.standards import linetypes
doc = ezdxf.new("R2007", setup=True)
msp = doc.modelspace()
# How to change the global linetype scaling:
doc.header["$LTSCALE"] = 0.5
p1 = Vec3(0, 0)
p2 = Vec3(9, 0)
... | [
"me@mozman.at"
] | me@mozman.at |
964774c497ccdc6f209f0c90dd01515835d847ed | 5feca008033cd5deb6c882388f615f6193b9bf10 | /basics/class_example.py | e0b8d6dc8df4a608d47ebc09cee5a1477ee80ec0 | [] | no_license | LotusBro98/Lanat2019 | 604974f9afa8391cbd137a4f765dc071a41ebd3d | 6bf9437a47c13e061ce191411c994a6cb4de9a38 | refs/heads/master | 2020-06-23T02:30:16.471861 | 2019-07-29T20:57:24 | 2019-07-29T20:57:24 | 198,478,278 | 0 | 2 | null | 2019-07-27T15:49:51 | 2019-07-23T17:29:23 | Jupyter Notebook | UTF-8 | Python | false | false | 756 | py | class Human:
def __init__(self, name, surname, age):
self.name = name
self.surname = surname
self.age = age
def __str__(self):
return self.name + " " + self.surname + " (" + str(self.age) + ")"
def is_graduated(self):
return self.age >= 18
def grow_up(self):
... | [
"noreply@github.com"
] | LotusBro98.noreply@github.com |
e65f465ef6ae0973650e4711aa3f8175f6a0dde4 | 514624f859d435cbd40d21e10dddfb200c6f5f30 | /turbo_cloud/pipes/find_event.py | ada2b815ba73c551956fcc17ed42811abef45fe3 | [] | no_license | rtraas/turboCLOUD | fde038c23ef8bbedef83a22bccffb04e8cca7dcf | a63c53a08e20f64d8ab81ee94b67a2e62ba78f06 | refs/heads/master | 2023-06-01T22:37:54.185436 | 2021-06-16T22:41:58 | 2021-06-16T22:41:58 | 272,525,516 | 0 | 0 | null | 2020-08-09T16:55:42 | 2020-06-15T19:25:48 | HTML | UTF-8 | Python | false | false | 22,471 | py | #!/usr/bin/env python
"""
Part of the Breakthrough Listen software package turboSETI
Backend script to find drifting, narrowband events in a generalized cadence of
radio SETI observations (any number of ons, any number of offs, any pattern -
streamlined for alternating on-off sequences).
In this code, the following t... | [
"noreply@github.com"
] | rtraas.noreply@github.com |
d82527097eb6be0cd16ee1cb897870311ae2ecc9 | 34706f974615d45ed74b9e5ea7b64bf30cdbb6b5 | /lib/data_util.py | 1310ad9172c24580098411b2fd67a40e786de168 | [] | no_license | Leechung/RNN-chinese-poetry-talkback-machine | 92237d9439522829d71c5eb83be2b77fdb4bf9f7 | e739483266f1a59b2cfb628c918c532d5ca596df | refs/heads/master | 2021-01-11T23:31:01.572608 | 2017-02-20T10:28:31 | 2017-02-20T10:28:31 | 78,592,541 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | import config
from random import randint
from config import BUCKETS
'''
author: lee chung
description: this is a project for computer linguitics course.
i used cells from https://github.com/NickShahML/tensorflow_with_latest_papers, many thanks to those hardcore coders
'''
_PAD = "_PAD"
_GO = "_GO"
_EOS = ... | [
"tongleechung86@gmail.com"
] | tongleechung86@gmail.com |
2765443d9dab3cb470fb4a2a844eff84e6645762 | 3a51e7173c1b5a5088ac57f668ecb531e514e0fe | /m11_feature_importances5_diabets.py | e18b4753ce0bb3c9ed11c5bde334cc898d0c903c | [] | no_license | marattang/ml_basic | 83a167324317178701ae0ee0e2e2046293eafacc | e8e6b8c9ab7d866377eb01e50ac94ff5b1ea7a73 | refs/heads/main | 2023-07-05T03:30:24.663574 | 2021-08-22T07:06:58 | 2021-08-22T07:06:58 | 394,574,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # 피처 = 컬럼 = 열
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
from sklearn.datasets import load_iris, load_boston, load_diabetes
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import n... | [
"tlawlfp0322@gmail.com"
] | tlawlfp0322@gmail.com |
38d6b581a50ccb565f5a070b44d17e86cecfea2e | 2366117992e8e58c400e539b8932a7aab11a1371 | /auth/views.py | 638cab47a4b004b7a0ea190d4b1d38d603fc6aff | [] | no_license | Sandeep-Das-og/LMS | 124138c4e7996ff753b34ce9b7b5be7aeca0050a | 939f9bd3ae43ef24f4f9b6705867e734b68bb96f | refs/heads/master | 2023-07-15T02:24:27.694491 | 2021-08-29T10:05:02 | 2021-08-29T10:05:02 | 397,580,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from django.contrib.auth.views import LoginView, LogoutView
from django.views.generic.base import View
from django.shortcuts import redirect, render
from auth import forms
from django.contrib.auth import login
class Login(LoginView):
template_name = 'auth/login.html'
class Logout(LogoutView):
pass
class Sig... | [
"das2106sandeep@gmail.com"
] | das2106sandeep@gmail.com |
ca7c676816df7c6bc5642fab94ccb3dd2df087aa | c217a0d5c074bd58e2048bc48ad53da58286d60c | /Management software-1/nameout.py | 43ae655396c0bc317d7a0167c3ba4b0363130265 | [
"MIT"
] | permissive | Afdrif-K/py | c0768547840d5bef5039ddd317471417c291b42e | f685370236f211b9c09b8593c823dfc9a43d42ce | refs/heads/master | 2020-04-18T01:49:07.631508 | 2019-06-14T03:33:14 | 2019-06-14T03:33:14 | 167,135,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | #encoding=utf-8
import xlrd
import pymysql
from xlutils.copy import copy
import os
def out():
conn=pymysql.connect(host='localhost',user='root',passwd='12345678',db='wk')
cursor=conn.cursor()
count = cursor.execute('select Studentname from eng;')
print('has %s record' % count )
#重置游标位置
... | [
"noreply@github.com"
] | Afdrif-K.noreply@github.com |
eae8195e54b4ac035b92a081b49d11393bc03d3f | 693a7e0554d0d7f19453023cdde2ad1127ccebb5 | /character_model/simulation.py | 666792fdf45f48623c29cdc3b775ae55d32eaada | [] | no_license | tesseradecades/dnd_character_generator | 4f466adde88ca5d52d449cef41cc4226a8278328 | 9501e5e6e1370b513881e4bac3d3ab7e30f12d54 | refs/heads/main | 2023-05-31T09:49:13.716695 | 2021-06-06T01:09:58 | 2021-06-06T01:09:58 | 373,984,244 | 0 | 0 | null | 2021-06-06T01:09:58 | 2021-06-04T23:58:28 | Python | UTF-8 | Python | false | false | 1,459 | py | from random import getrandbits
from typing import List
from character_model.character import Character
from gene_model.chromosome import Chromosome, Individual
from gene_model.simulation import Simulation
class DndSimulation(Simulation):
def __init__(self, mutation_rate=0.5, population_size=4, starting_populatio... | [
"noreply@github.com"
] | tesseradecades.noreply@github.com |
ea84e1a4422f760c7b19067d981e6eaf323da1e0 | 51fa47e988b6736a0eb962f8c1fa51d32622f848 | /tests/core/test_quadratic.py | 8dda3e61f379d006ff66e36e90c9998b179d0680 | [
"MIT"
] | permissive | thirionjl/chains | 09b3081f45d9bf05d12a1e5944699803701cf14f | 31bd4b85744fd56096fcc08027e8d20ce145bf0b | refs/heads/master | 2023-08-31T20:30:02.715641 | 2020-07-24T11:17:44 | 2020-07-24T11:17:44 | 152,436,731 | 3 | 0 | MIT | 2023-09-14T15:30:38 | 2018-10-10T14:25:07 | Python | UTF-8 | Python | false | false | 993 | py | import numpy as np
import chains.core.node_factory as nf
import chains.core.optimizers as gd
from chains.core.graph import Graph
def test_quadratic():
x = nf.initialized_var('x', np.array([[0.07], [0.4], [0.1]]))
A = nf.constant(np.array([[2, -1, -2], [-1, 1, 0], [-2, 0, 4]]))
B = nf.constant(np.array([[... | [
"thirion.jl@gmail.com"
] | thirion.jl@gmail.com |
ccc1485ff378cd8a01318c69439b9c274655ec55 | 1e150f6b708ff8e140801d9f42f3bf68573e8266 | /mywebsite/views.py | a5e62e809c0439614fbfba9db5f4ac9e96139327 | [] | no_license | sherlayualinda/mywebsite | 6c2a455bcc3532ef0b02b8e2c896f06552f9df02 | a7d9ffb66b4db5f4ca86e7b03c1cadbc72734531 | refs/heads/master | 2021-04-16T13:17:20.950100 | 2020-03-23T10:01:33 | 2020-03-23T10:01:33 | 249,358,589 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User,auth
from django.core.files.storage import FileSystemStorage
from django.contrib import messages
from data.forms ... | [
"syualinda@gmail.com"
] | syualinda@gmail.com |
df398393aea5d0bd7445abc5140d3c360b258e60 | 973713f993166b1d0c2063f6e84361f05803886d | /Day01-15/02_variableTest_3.py | 0a1660b15ed013535066fbed5471a61876d4a6c4 | [
"MIT"
] | permissive | MaoningGuan/Python-100-Days | 20ad669bcc0876b5adfbf2c09b4d25fd4691061a | d36e49d67a134278455438348efc41ffb28b778a | refs/heads/master | 2022-11-17T12:24:45.436100 | 2020-07-18T02:24:42 | 2020-07-18T02:24:42 | 275,157,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
使用input()函数获取键盘输入(字符串)
使用int()函数将输入的字符串转换成整数
使用print()函数输出带占位符的字符串
"""
a = int(input('a = '))
b = int(input('b = '))
print('%d + %d = %d' % (a, b, a + b)) # 加
print('%d - %d = %d' % (a, b, a - b)) # 减
print('%d * %d = %d' % (a, b, a * b)) # 乘
print('%d / %d = %f' % ... | [
"1812711281@qq.com"
] | 1812711281@qq.com |
c0d9a9c9c899c8c181a31cbf7c2581c7873d55c1 | 314d269dfb9ce64385527faa23b81244ee6a8d4a | /Testing/Demoapp/migrations/0018_movieimg.py | 34dab44342ac0156f9e897ddcd0504fa98285c8e | [] | no_license | tomahawk9628/Web_project | 811b2c8bf02f86e5c2308462d28275db72f72d62 | 699613d19561dab7837fc0d96f027ccb138bfc4f | refs/heads/main | 2023-04-18T05:28:11.291503 | 2021-04-29T09:30:31 | 2021-04-29T09:30:31 | 362,853,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # Generated by Django 3.1.2 on 2020-11-02 17:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Demoapp', '0017_movie'),
]
operations = [
migrations.CreateModel(
name='MovieImg',
fields=[
('id', m... | [
"36316973+tomahawk9628@users.noreply.github.com"
] | 36316973+tomahawk9628@users.noreply.github.com |
b49118760b76d3b6d16d1b8d4647f94411267478 | 7ee3dd01b27b2e40913d8af95ca324b6e0a1839b | /leetcode/array/removeElement.py | bb6d4bbc8605895bad047fdc54e0b883146bc56e | [] | no_license | rodrigo-r-martins/programming-problems | 5c026a5788c2b8e47cd2b4f6809d1194a9473d9e | 1a080d0059d33bf97ee90cdc3a0d367ac3211ad6 | refs/heads/master | 2023-02-28T01:18:56.238453 | 2021-02-11T01:20:00 | 2021-02-11T01:20:00 | 271,599,071 | 0 | 0 | null | 2021-01-24T22:17:03 | 2020-06-11T16:48:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,818 | py | """
Given an array nums and a value val, remove all instances of that value in-place and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
The order of elements can be changed. It doesn't matter what you leave beyond the ... | [
"50893308+rmartins85@users.noreply.github.com"
] | 50893308+rmartins85@users.noreply.github.com |
5d9d12fe158aa1d46fd56059a5dd930cb2828ca2 | a7cf8fdf9618ac464c12f0af804de248579c34fd | /ex23.1.py | 4de9c8c5c0374c081fe938cd909f5c752ed4f4ca | [] | no_license | bradyborkowski/LPTHW | d4c62450f6481da1ed6c2e4b2ce675af705e8598 | aa3e5282c0a568447103c09e64dfcc310f6c11e5 | refs/heads/master | 2020-03-27T13:53:48.543475 | 2018-08-29T17:13:33 | 2018-08-29T17:13:33 | 146,633,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | import sys
script, one, two, three = sys.argv
print(f"{one}, {two}, and {three}")
| [
"41759710+bradyborkowski@users.noreply.github.com"
] | 41759710+bradyborkowski@users.noreply.github.com |
72af1bda3289f0881af24ea6518357125307aacc | 61b6e904a9e3d0bdf9cab361a08bd028b4ab0c77 | /tutorials/slu/train_stack_propagation_slu.py | 67399d9cbfb4af1aa1bc19c642ee71a67ba29ef5 | [
"MIT"
] | permissive | bo-ke/cybo | 81c5e94ca7c6c78fa8342b35384d6e7cacc22140 | 612f30b0466b4ed6d04f5c2128b133367b55e576 | refs/heads/master | 2023-06-04T11:46:37.612829 | 2021-06-22T13:22:34 | 2021-06-22T13:22:34 | 321,707,325 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | # -*- coding: utf-8 -*-
'''
@author: kebo
@contact: kebo0912@outlook.com
@version: 1.0
@file: demo.py
@time: 2021/03/02 21:19:27
这一行开始写关于本文件的说明与解释
'''
import tensorflow as tf
from cybo.data.dataloader import Dataloader
from cybo.data.vocabulary import Vocabulary
from cybo.models.stack_propagation_slu import StackP... | [
"itachi971009@gmail.com"
] | itachi971009@gmail.com |
350f16fb7c61863a03cce34c59fb19fd7d332c07 | 2356beb3c448ae295fa3bf3c60e4abedde473f5a | /accounts/backup/views.py | 5f3cb1f1dedbd6f5b1487fbf9671c942b8954640 | [] | no_license | steven0seagal/PhD | 645edbe39183bd8865b42558c7e0c12f63f23aef | 6e24e6f46c261e9da083c39306017b5ff934e9fa | refs/heads/master | 2023-01-20T23:19:03.551075 | 2020-11-25T16:31:31 | 2020-11-25T16:31:31 | 310,092,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,871 | py | from django.shortcuts import render, redirect
from django.contrib import messages, auth
from django.contrib.auth.models import User
from neighborhood_analysis.models import NeighAnalyzDatabase
from alignments_tools.models import ColapserDatabase, StretcherDatabase
from hmmer_fixer.models import HmmerFixerDatabase
from ... | [
"djangoadmin@vultr.guest"
] | djangoadmin@vultr.guest |
76932cd1b6b43895415a527d17b4c0e8cb38af66 | 832852c679816673f708860929a36a20ca8d3e32 | /Configurations/ssww/wz_2016/aliases.py | a756db225a536ee8ec45575ec6dd07cef7eb15b0 | [] | no_license | UniMiBAnalyses/PlotsConfigurations | c4ec7376e2757b838930dfb2615e1dc99a64e542 | 578fe518cfc608169d3418bcb63a8342d3a24390 | refs/heads/master | 2023-08-31T17:57:45.396325 | 2022-09-01T10:13:14 | 2022-09-01T10:13:14 | 172,092,793 | 0 | 13 | null | 2023-04-27T10:26:52 | 2019-02-22T15:52:44 | Python | UTF-8 | Python | false | false | 12,366 | py | import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # Full2017
configurations = os.path.dirname(configurations) # ggH
configurations = os.path.dirname(configurations) # Configurations
#aliases = {}
bAlgo = 'DeepB'
bWP =... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
cd7e960b609e7bd09f05f15573c42dcc430c91db | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /otp/speedchat/SCConstants.py | 2be1e5050c9f147748d69e0013a2c2d587f0b00e | [
"BSD-3-Clause"
] | permissive | open-toontown/open-toontown | bbdeb1b7bf0fb2861eba2df5483738c0112090ca | 464c2d45f60551c31397bd03561582804e760b4a | refs/heads/develop | 2023-07-07T01:34:31.959657 | 2023-05-30T23:49:10 | 2023-05-30T23:49:10 | 219,221,570 | 143 | 104 | BSD-3-Clause | 2023-09-11T09:52:34 | 2019-11-02T22:24:38 | Python | UTF-8 | Python | false | false | 59 | py | SCMenuFinalizePriority = 48
SCElementFinalizePriority = 47
| [
"jwcotejr@gmail.com"
] | jwcotejr@gmail.com |
a4c0f7cac515fab2dde43dae019bf1f9f9359d98 | e000416c89725db514ed5c01d7b9ef8e37c5355f | /backend/wallet/migrations/0001_initial.py | 42f6e380119fb0d9602b441bb339d9aa4929f923 | [] | no_license | crowdbotics-apps/click-time-28533 | 376f4d34b10ca3050fde3f43df51233e5b612c2d | 89f4f7e05bf04623b2822899677b6c3606968151 | refs/heads/master | 2023-06-19T06:37:55.564153 | 2021-07-07T06:12:26 | 2021-07-07T06:12:26 | 383,692,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # Generated by Django 2.2.20 on 2021-07-07 06:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('taxi_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
98e071d695e583e7aa3eb14b22d820750d37afb9 | ae69715f440336711802c919166a18b806a56f7a | /parse-ground-truth-by-frame.py | 5a7f731b4c645bb0de248b6898f53ab0ac0d2dbd | [] | no_license | muddge/springboard_capstone | 87ac3f4929b236442d8f18e2cda8a064d59618b6 | 3faf995364d8e8fb72780ca8503722f6b22cde6a | refs/heads/main | 2023-02-09T07:11:07.000199 | 2020-12-22T00:29:13 | 2020-12-22T00:29:13 | 322,063,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import os,csv
import pandas as pd
load_path = '/Users/jason/Desktop/springboard/capstone-datasets/VIRAT/virat-annotations-v2/ground-truth-in-yolo-format'
save_path_root = '/Users/jason/Desktop/springboard/capstone-datasets/VIRAT/transfer-learning/data/ground-truth'
files = os.listdir(load_path)
for f in files:
... | [
"noreply@github.com"
] | muddge.noreply@github.com |
185272721fe366dc387ebf324cad6dcf29b245f2 | 00067ae175736cbe447189a3f74159ef41e9c679 | /src/nubip/migrations/0048_auto_20210120_1957.py | f4e99f5240553ed5c6b3463d4640df38c1b64e2b | [] | no_license | dmitruyk/crm_nubip_jurnal | 0a2f713fec32ea8022e28ae55c2f4dc1ef661fc8 | ae9eacef12fddf9cce48fa74b0f286ca1e10ed80 | refs/heads/master | 2023-08-07T13:01:03.180293 | 2021-09-21T21:39:54 | 2021-09-21T21:39:54 | 305,634,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | # Generated by Django 3.1.5 on 2021-01-20 19:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nubip', '0047_auto_20210117_2200'),
]
operations = [
migrations.AlterField(
model_name='academicgroup',
name='name',... | [
"dmitruy54865792"
] | dmitruy54865792 |
5008ef68e146e2b1c04934fcf0a2e09ed44c04c9 | d4c0ffd2e597c33b29e0c070b10d2e3dd34ec7f8 | /simpleFirstApp/apiViews.py | a75857db29c60af1e6df2df5e8eed8f87445c294 | [] | no_license | WONGANM/simpleDjangoProject | 4d84f2df1ad20b6fa8422583bc0ce7b5a9018dba | 02bdd4f5954606645215ddd297a2df0aae93448b | refs/heads/master | 2023-05-24T21:15:32.642123 | 2021-04-05T13:14:36 | 2021-04-05T13:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from django.core import serializers
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from simpleFirstApp.models import Subjects, Students
@csrf_exempt
def getSubjects(request):
subject=Subjects.objects.filter(course_id=request.POST.get('course_id',''))
subject_obj=ser... | [
"supercoders.tech@gmail.com"
] | supercoders.tech@gmail.com |
247883e246f87ab8ead43cd0dbb5cd36b565e83e | e4adf6d5161daf5403e3dff6070d786c2bb2fdc2 | /serverSide/migrations/0014_auto_20210328_2154.py | 2bb24a1079363141475d10a3ec2d71a0a03c3023 | [] | no_license | Kubvv/Mimuw_WWW | 3ff16cfdd4c60b2630e36f9442a4af1a49f3d783 | 182807d70e191afda0644dee91dec5536247b931 | refs/heads/main | 2023-05-19T14:29:32.662702 | 2021-06-10T20:55:51 | 2021-06-10T20:55:51 | 375,826,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.1.7 on 2021-03-28 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('serverSide', '0013_auto_20210328_2152'),
]
operations = [
migrations.AlterField(
model_name='filesection',
... | [
"noreply@github.com"
] | Kubvv.noreply@github.com |
c486477f0f3ca9f5b5fbe9ddb63029459afe07c7 | bf9fdf83400a6d00187d59b8aa7b2a44953c5cc0 | /name_cleanup.py | 855d222f2326b4ffd8e29821975e652b52c0df09 | [] | no_license | eouai/swimming_app_dash | 72ae5cad9a423638c2e14f943919cd8c9ec284a2 | ab9e0a803845b546da9c0dab22dd15f467198c75 | refs/heads/master | 2020-03-09T20:43:08.525702 | 2019-06-18T20:55:08 | 2019-06-18T20:55:08 | 128,991,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,892 | py | import pandas as pd
# import numpy as np
# from datetime import datetime
dtypes = {'Unnamed: 0': 'int', '100 Split': 'str', '150 Split': 'str', '200 Split': 'str',
'250 Split': 'str', '300 Split': 'str', '350 Split': 'str', '400 Split': 'str',
'450 Split': 'str', '50 Split': 'str', '500 Split': 's... | [
"burtgwilliam@byu.net"
] | burtgwilliam@byu.net |
2e14dd2b46c12ca4b93d9cf358ff4e12baf474d5 | 4c648201d5f87210d89a39a0c029f9ecae206781 | /app/module/functions.py | 59ffad2d5c38e4fac73a1f6084a735dffca27d80 | [] | no_license | samhvw8/python-fastapi-boilerplate | 2f36924ec0ce7a233fa3e37fd6683aa9f5b80432 | c9c9a2235a6fd9d1ef4af4365878fe7ce06a943c | refs/heads/master | 2021-02-15T13:35:11.840751 | 2020-03-04T13:15:09 | 2020-03-04T13:15:09 | 244,903,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from loguru import logger
from .model import ResultModel
class Functions:
def __init__(self):
pass
@logger.catch
def preprocess_bizlogic(self, queryStr: str) -> str:
# bizlogic for preprocess here
return queryStr.lower()
@logger.catch
def postprocess_bizlogic(self, respo... | [
"samhv.ict@gmail.com"
] | samhv.ict@gmail.com |
1ebb7382e258c4abf52348f5f8cdcbf3ae69437d | 1500fe9ea062152becc85a01577cced0465cde52 | /landacademy/urls.py | d6983faca141d85dce6130a0e3056d9ab11c126d | [] | no_license | Xednom/gpg-ams | afe4da92384f2de1b7b69ce28e13becb103009b3 | 7c87ab639b140873dfc90ac43c7aec349aec6436 | refs/heads/master | 2022-11-06T15:22:34.761321 | 2021-05-11T03:48:08 | 2021-05-11T03:48:08 | 239,904,632 | 0 | 1 | null | 2022-11-03T02:21:18 | 2020-02-12T01:50:16 | JavaScript | UTF-8 | Python | false | false | 465 | py | from django.urls import path
from . import views
app_name="landacademy"
urlpatterns = [
path('add-land-academy-inventory', views.AddLandAcademyView.as_view(), name="add_landacademy"),
path('view-land-academy-inventory', views.LandAcademyView.as_view(), name="view_landacademy"),
path('view-o2o-smart-pricin... | [
"monde.lacanlalay@gmail.com"
] | monde.lacanlalay@gmail.com |
2e41564f963a34098d5290f20737dfeb9a220688 | 987598b6c407f23d1626fb960c1c1fd06eddbcc1 | /simpleImagesAndIcons.py | 87e1e4a21366bc46d87d3f009188e8b5594d644e | [] | no_license | lilhamad/py-desktop | 86749ffbbe8d502593619eeec6ba2d2523769d1e | 383f6ac9cb8f397c6191df80a60d73d407022fa5 | refs/heads/master | 2021-01-01T17:53:00.176170 | 2017-07-24T11:45:45 | 2017-07-24T11:45:45 | 98,184,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | from tkinter import *
from tkinter import messagebox
window = Tk()
photo = PhotoImage(file="ad.png", width=1000, height=500)
image = Label(window, image=photo)
image.pack()
def pressOne():
messagebox.showinfo("", "list.count(x) Return the number of times x appears in the list.list.sort(cmp=None, key=None, revers... | [
"lilhamad8@gmail.com"
] | lilhamad8@gmail.com |
985f9dfd45878d49f2e724d04ef753cd229efaca | 4b97fd778f3f1775eaa3ba5c42853b709f9031e9 | /src/rob1514/scripts/navigate_to_point.py | 63383e7038b67c578777c12c5c36b280933307d8 | [] | no_license | qingqingkzhou/autobot | 01ade8d02bf23a3066f1c2eed8bd61c20d9616a5 | 88277f658cb72899195d118da00a714bd088bd9e | refs/heads/master | 2022-04-19T20:30:32.715182 | 2020-04-14T03:27:45 | 2020-04-14T03:27:45 | 239,151,806 | 0 | 0 | null | 2020-04-13T03:22:36 | 2020-02-08T15:10:37 | Python | UTF-8 | Python | false | false | 3,536 | py | #!/usr/bin/env python
# TurtleBot must have minimal.launch & amcl_demo.launch
# running prior to starting this script
# For simulation: launch gazebo world & amcl_demo prior to run this script
import rospy
import json
from std_msgs.msg import String
from rob1514.srv import NavPoint
from move_base_msgs.msg import Move... | [
"qingqing.k.zhou@gmail.com"
] | qingqing.k.zhou@gmail.com |
27104a744c874c71d5916e37b398277acf2b845a | 0c427b2b8b7960bf3c1e727984532c6731328066 | /APP/forms.py | 1e073b90096a2c7b3a8ab029ca583f02c05bf928 | [] | no_license | Master-cai/flask_library | c7c3910c6f989b7f0f90a3b32eb53d421b7f431d | ebc86cbfbac67b199d06a3ec1e789b0d3fec1488 | refs/heads/master | 2020-11-24T03:34:42.063453 | 2019-12-20T09:30:01 | 2019-12-20T09:30:01 | 227,948,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField, TextAreaField, ValidationError, HiddenField, \
BooleanField, PasswordField, IntegerField, DateTimeField, DateField
from wtforms.validators import DataRequired, Email, Length, Optional, URL, EqualTo
class LoginForm(FlaskForm... | [
"719591339@qq.com"
] | 719591339@qq.com |
ed02706c8203b78c812b8159c71208e1e7196960 | 597b888dca4e9add7acdf449f8c3d8d716826ff2 | /gui/demos/listbox.py | 105c3d631bc9eb579543eeadf5002fcfc4aee71b | [
"MIT"
] | permissive | alsor62/micropython-micro-gui | a7cad669d69358599feb84011c23ac5d767adfda | 5c7d6c96b30e4936a2a4315b09e98a730f14c6db | refs/heads/main | 2023-09-04T09:54:10.946964 | 2021-11-09T11:46:59 | 2021-11-09T11:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | # listbox.py micro-gui demo of Listbox class
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2021 Peter Hinch
# hardware_setup must be imported before other modules because of RAM use.
from hardware_setup import ssd # Create a display instance
from gui.core.ugui import Screen
from gui.core.write... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.