blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
d64d55d1aeb625a0e43a8d555b74bf5a888f8a8f
649bd422025e421d86025743eac324c9b882a2e8
/exam/1_three-dimensional_atomic_system/dump/phasetrans/temp34_3000.py
e6089fe169558168aa44be1272a45d35b984b004
[]
no_license
scheuclu/atom_class
36ddee1f6a5995872e858add151c5942c109847c
0c9a8c63d9b38898c1869fe8983126cef17662cd
refs/heads/master
2021-01-21T10:52:28.448221
2017-03-07T23:04:41
2017-03-07T23:04:41
83,489,471
0
0
null
null
null
null
UTF-8
Python
false
false
68,921
py
temp34_3000.py
ITEM: TIMESTEP 3000 ITEM: NUMBER OF ATOMS 2048 ITEM: BOX BOUNDS pp pp pp 8.1228523350533521e-01 4.6387714766493971e+01 8.1228523350533521e-01 4.6387714766493971e+01 8.1228523350533521e-01 4.6387714766493971e+01 ITEM: ATOMS id type xs ys zs 8 1 0.123412 0.0633351 0.0657448 35 1 0.059133 0.121034 0.0648012 130 1 0.061705...
8f0495ef90d35e77f563edb5936b98650ce3ebfb
0c1840d2a54f757a9366cb8458e233b630f9907f
/graphGenerator.py
f3d73a94f5a17fb1cb94cc934879801ce0b4c4e8
[]
no_license
ramosjanoah/kp-mspick
d49fe0a6132aec71b66d98766c2f44b4eff1625b
83aa0140b52f283211bb31d530fdd56c3e3a7b85
refs/heads/master
2021-06-28T19:36:32.884827
2017-09-17T02:06:03
2017-09-17T02:06:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,800
py
graphGenerator.py
import matplotlib.pyplot as plt import networkx as nx import pandas as pd maxDegreeCentrality = 0 maxBetweenessCentrality = 0 maxClosenessCentrality = 0 minDegreeCentrality = 99999999999 minBetweenessCentrality = 99999999999 minClosenessCentrality = 99999999999 trx = pd.DataFrame() graph = {} iterated = {} if not 'su...
5064fa9bd42c9390794134315b4dc4155498bbed
e2ba5beda6f10b1f6529c1a3505da8bd18ef2941
/waiter.py
185f2e9c92d8dc01c6aa39c76f2dd988f47fd0ea
[]
no_license
tharunkumarreddy007/myprojects
2307b79bc8ab31d5967e29c3aaf59430aad13e04
60ff00a15546b821d8e4388837ab1c555356ec30
refs/heads/master
2020-09-25T06:12:15.416092
2019-12-16T05:38:08
2019-12-16T05:38:08
225,935,444
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
waiter.py
import boto3 ec2=boto3.rsource('ec2') waiter=ec2.get_waiter('instance_stopped') ec2.stop() waiter.wait(Instanceids="instanceid")
cb862ceff652660da57b9215546b4568328f6b88
aa69d20bfc647a556e3c1cb7de08354bc6c68d47
/LeetCode算法/884两句话中的不常见单词.py
9d2c449d6b4beb7a0494b2674600f2ba920539cb
[]
no_license
GrandJune/Leetcode
1797a1d5e70d58758aa6372a48d645cc3e3292de
3bb0eb90adea0f4da0a621e89c3eac0dcc088aae
refs/heads/master
2022-02-28T07:53:01.462519
2022-01-11T12:25:42
2022-01-11T12:25:42
158,706,003
0
0
null
null
null
null
UTF-8
Python
false
false
1,122
py
884两句话中的不常见单词.py
# -*- coding: utf-8 -*- # @Time : 2019/1/6 14:00 # @Author : Junee # @FileName: 884两句话中的不常见单词.py # @Software : PyCharm # Observing PEP 8 coding style A = "this apple is sweet" B = "this apple is sour" a = A.split(' ') print(a) class Solution(object): def uncommonFromSentences(self, A, B): ...
81e4d0c82dad9b0a0fb3278d5bcaa05b72c652fb
663db56a354a13cca25dd840f38c9a1882e188ea
/light/autobahn/find-matches.py
afab6d74b4286d5c27c4c03c4c60dbfae5580511
[]
no_license
acorg/light-matter
70aad2942676678b9d704ec8f3b832c6e5ddd63a
3e848dfa66f5fd07f1fb709abc935baff9f43d87
refs/heads/master
2022-01-25T13:18:06.178005
2019-06-23T21:49:55
2019-06-23T21:49:55
24,291,049
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
find-matches.py
import asyncio import argparse from autobahn.asyncio.wamp import ApplicationRunner from light.autobahn.component import Component from light.wamp import addArgsToParser class FindComponent(Component): NAME = 'find' @asyncio.coroutine def onJoin(self, details): what = self.config.extra['what'] ...
33ffc22cbdf9a5baec86684684af4cb93eb378e4
7535a564ab15d57e17cf3b3f95144a94a7c4e6aa
/字符串翻转.py
447ae9dfac79088352ca4d2ec903cfd03abc73b0
[]
no_license
Hongjiao1999/noobPython
da73ab49ab2a6efd3ba2cad82311e51cc0081a89
e5b8e9c55be61704f15759da116d2ee51e3cb777
refs/heads/master
2021-03-08T03:14:05.840195
2020-03-10T15:03:22
2020-03-10T15:03:22
246,312,911
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
字符串翻转.py
# 方法1 str1 = "hello world" print(str1[::-1]) # 方法2 from functools import reduce str2 = "hello world" print(reduce(lambda x, y: y + x, str2))
fd13a581c97df175a020ea0e6227672b92dca8f4
0939f62e653a81f1d6afd0c04b5fc916ccfe4dde
/content/posts/pytest-and-containers/mariadb_container_v1.py
7f2fc240176b5da9d6406335d38f668d379afb7b
[]
no_license
larsks/blog.oddbit.com
cd4958dcfd017852f42d1f1b380e378c41787d50
7181a002fd2553bcec5cd42603349c778aa10528
refs/heads/main
2023-08-28T00:06:13.209069
2023-07-27T14:31:40
2023-07-27T14:34:47
22,327,735
2
0
null
2023-07-27T14:35:05
2014-07-28T02:00:57
Python
UTF-8
Python
false
false
412
py
mariadb_container_v1.py
import docker import pytest @pytest.fixture def mariadb_container( docker_client, ): """Create a MariaDB container""" container = docker_client.containers.run( "docker.io/mariadb:11", detach=True, environment={ "MARIADB_ROOT_PASSWORD": "secret", "MYSQL_PWD":...
726ebbea9cf748577807dcf61c8e0365dfaba70d
988eeaf95d633ecebe28241a62a55a6d7731426e
/guessingGame.py
a31135ddc28461ecbce527cb5e2432a940a3d427
[]
no_license
Yatharthg12/project-97
564a0f013c791007433907fe55753e76893bd9dd
bc24b7a14666a7444930a24be09c40ef3589eddc
refs/heads/main
2023-08-12T07:01:00.079120
2021-10-07T13:26:30
2021-10-07T13:26:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
guessingGame.py
import random number = random.randint(1,9) chances = 0 print("Guess a number between 1 and 9") while chances < 5: guess = int(input("Guess your number")) print(guess) if guess == number: print("Congratulations, you won!!!") break if guess < number: print("Your g...
b442fe1b9b0e2db6e3780e3357d96962304b3fc4
40ec373dafac028472b803cef99eb294df2d9188
/picasa/admin.py
1f5ec702561d44bff0500e696871dfb85ee09621
[]
no_license
vladmos/photoblog
c1c5700e44c043fea871496450a29faae9304684
805cf1aae864f765f74cb7feab6f4caec11b25d1
refs/heads/master
2020-04-25T12:44:46.099660
2012-09-25T20:01:33
2012-09-25T20:01:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
admin.py
from django.contrib import admin from models import PicasaAlbum, PicasaPhoto admin.site.register(PicasaAlbum) admin.site.register(PicasaPhoto)
14679ce4946cca0f04098e6a22e22a421617d331
7da96fe406d32f2cc4c0bbd9406639ad26bd2f94
/tasks/generation/scoring.py
0d0c9590cd4612186610000dd4174d5d67d8a546
[]
no_license
marcopodda/mol
60b69fb0edc52f25c2d80297d7a66e0578445617
f2312362b82a6303594b149a53222e579c168781
refs/heads/master
2022-12-25T21:16:08.701319
2020-08-09T13:37:38
2020-08-09T13:37:38
285,219,074
2
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
scoring.py
from pathlib import Path from rdkit import Chem from moses import get_all_metrics from core.mols.split import join_fragments from core.utils.vocab import Vocab from core.utils.serialization import load_yaml, save_yaml def convert_metrics_dict(metrics_dict): for k in metrics_dict.keys(): metrics_dict[k] ...
9eda73dd248fac6685c45c9631d56d4b29053c45
f5bc995276c2df56f282f297811d53a86a509a2a
/setup.py
0d66d7bcacf6608af1f95a3fcf974424ab7a0958
[ "MIT" ]
permissive
powellb/seapy
6accdba97ef8bb7e8d1f94f6bbfacfeab68381ca
b6f7c524c2cb12564ce70e89b5f2b5cfae8a3d32
refs/heads/main
2023-02-05T21:03:10.502447
2023-01-22T22:27:15
2023-01-22T22:27:15
37,238,172
30
22
MIT
2023-01-22T22:54:34
2015-06-11T03:54:10
Python
UTF-8
Python
false
false
2,552
py
setup.py
# -*- coding: utf-8 -*- from __future__ import division, absolute_import, print_function import os import sys import platform from setuptools import find_packages from numpy.distutils.core import setup from numpy.distutils.misc_util import Configuration # Only way to get --noopt defaulted into the build environment #...
09b5add388634d23d7bf1634c02ec88360068899
898a72a46342b17b09def7aaf3d6618d46f5faf5
/projects/views.py
dd5592377af18cd3612a2fa270924c3836fc8740
[]
no_license
avjasso/devsearch
a44eba72f08ad10fbedefcc7071d43e3fd2f91e6
f2264513c4c440ad9671ae3d6ddc4ca23506360e
refs/heads/main
2023-07-25T20:51:52.211144
2021-09-07T06:35:29
2021-09-07T06:35:29
403,481,681
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
views.py
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def projects(request): msg = "Hello, you are on the projects page" return render(request, 'projects/projects.html', {'message': msg}) def project(request, pk): return render(request, 'projects/single-proj...
cedbd6a648081f6e3d2cbe230c53c481309baa5b
b671bf5fcbc8977e795fe7603b5146cdef6cbb86
/seq2sql_prototype/seq2sql_prototype/__init__.py
88783acb1caeac7acd19d97a53ab67ce6ec7430b
[ "MIT" ]
permissive
robertozerbini/NLP2SQL
a535f5e01b70889ef98968006e96f8e17e4bfa5f
3a136f75621cc94076b981a50f18d5a459185271
refs/heads/master
2020-03-17T10:12:36.927529
2017-12-08T07:29:07
2017-12-08T07:29:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
82
py
__init__.py
# coding: utf-8 """ Init for Seq2Sql_prototype quepy. """ from primary import *
5cecf8424f64d01311c7bb3227a49a28cafb0f2d
382df78024f588acea08039a0b0a9e24f297b6a3
/python/pandas/example.py
6eafc5e33c988cb6454b86b10d1977cf962027c7
[]
no_license
id774/sandbox
c365e013654790bfa3cda137b0a64d009866d19b
aef67399893988628e0a18d53e71e2038992b158
refs/heads/master
2023-08-03T05:04:20.111543
2023-07-31T14:01:55
2023-07-31T14:01:55
863,038
4
1
null
2020-03-05T06:18:03
2010-08-26T01:05:11
TeX
UTF-8
Python
false
false
3,255
py
example.py
#!/usr/bin/env python # - * - coding: utf-8 - * - # http://d.hatena.ne.jp/dichika/20120819/1345385529 # http://pandas.pydata.org/pandas-docs/stable/ import pandas as pd import matplotlib.pyplot as plt from pandas import DataFrame import xlrd # xlsを読み込む際に必要 import numpy as np import sqlite3 # データフレームを作る smp = {'stat...
180754426180c9b9c8bb9bc30b0424dfec30446b
b785549e66a6c5a6e8b00218acc54ffd4efdb2f0
/pythonCrashCourseWork/Chapter 9/11/users.py
af02e17dd2b23a7846393a35a19c4fcd83ad322e
[]
no_license
RyanMolyneux/Learning_Python
970ae92abac65dc0881a7aaef1f74322c0c7fbdd
e9a613da2f9d24c0a0cd54d84542b9f7c7d5c13c
refs/heads/master
2021-01-21T20:11:30.780622
2017-09-20T18:38:18
2017-09-20T18:38:18
92,203,140
0
0
null
null
null
null
UTF-8
Python
false
false
1,440
py
users.py
#Classes class User(): """Class for creating user accounts.""" #Constructor def __init__(self,first_name,last_name,age,email,pet_name,password): """Constructor for user class.""" self.first_name = first_name self.last_name = last_name self.age = age self.email = email self.pet_name = pet_n...
03dd5ef5492f6a5807b6266cc8ffd735378bc5db
a191d813c56e84f9db3cfc95757a2d0fb9e328dc
/generator_test.py
3f4351c5fcb5131866692397cac1ef212bf95231
[]
no_license
GP-IJS/IJS-Data-Fusion
c238064f3aed368bb0c6ca3699d8834d66a7dfff
6068f7ec1e01d4cfd0d293a7fa9f484e897dd06b
refs/heads/master
2020-03-28T12:14:08.533042
2018-09-11T08:07:29
2018-09-11T08:07:29
148,281,118
0
0
null
null
null
null
UTF-8
Python
false
false
1,434
py
generator_test.py
from crossovers import ArithmeticCrossover from local_search import GradientDescentAdam, GradientDescent from local_search_PNMTF_poly import S2NormRegularization from matrix_utilities import construct_problem, get_NMTF_problem import numpy as np import tensorflow as tf #np.random.seed(42) #dims=[6,5,6] #ks=[2,3,3] #n...
fb534b444dda36e1178a0ba119e4926dfdc488fd
2bf429e92948fccff5d6b0e936e18ef93f284204
/api/chalicelib/aws/__init__.py
cac009dda1a6123a82cc5cea820330354dedc85a
[ "MIT" ]
permissive
t-kigi/nuxt-chalice-aws-app-template
da0932368e76b829da971e7a1e1568f72ded0b96
d413752004976911938d2fc26aa864ddae91a34f
refs/heads/main
2023-06-03T11:28:47.842518
2021-06-15T08:55:58
2021-06-15T08:55:58
348,241,114
0
0
MIT
2021-06-15T08:55:58
2021-03-16T06:41:29
Python
UTF-8
Python
false
false
533
py
__init__.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ AWS リソース操作のためのモジュールです。 """ import boto3 from typing import Optional def create_session(profile: Optional[str] = None, region: Optional[str] = None) -> boto3.session.Session: """ boto3 用の session を生成します """ region = region or 'ap-northeast-1' ...
bde50d617b6aae9770dd04d436c438387a8d8c22
8c24ae455147a1153c837def52ff60403b47c1e4
/exercise5/legendre_poly_plot.py
6ef5620b24c9c571ac3d06bf73e6043a7f216815
[]
no_license
rahulporuri/num_methods_in_prog
ccc2fa51a6a6430d6a985624dd82d1d6cbe76581
d4397324e401031c2b8718ca80e821cbe4dde8b2
refs/heads/master
2021-01-02T22:32:21.501310
2015-10-07T03:36:48
2015-10-07T03:36:48
29,176,581
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
legendre_poly_plot.py
import matplotlib.pyplot as plt from scipy.special import lpmv import numpy as np y1 = lpmv(0,0,np.linspace(-1,1,101)) y2 = lpmv(0,1,np.linspace(-1,1,101)) y3 = lpmv(0,2,np.linspace(-1,1,101)) y4 = lpmv(0,3,np.linspace(-1,1,101)) y5 = lpmv(0,4,np.linspace(-1,1,101)) y6 = lpmv(0,5,np.linspace(-1,1,101)) x = np.linspace...
db5bec51b659bce4446730844cc2853cf08b2283
23e5b5e2d8e7bcfa8c7f59fa156ed3036a593f28
/scripts/data/change_classes.py
0bdcac8332726e90dcbd2e3e60f28169ccf4d3f9
[ "MIT" ]
permissive
jfajkowski/stock-market-forecasting
c75f8eba64cf88a11793ed73c889a962cbf1852e
6a0ae5a0cfe39263a0f448f062cd01283281a0d8
refs/heads/master
2021-10-10T20:00:33.735511
2019-01-16T12:57:58
2019-01-16T12:57:58
160,040,609
0
0
null
null
null
null
UTF-8
Python
false
false
1,533
py
change_classes.py
import matplotlib.pyplot as plt import pandas as pd ChangeColumn = 'Change' ClassColumn = 'Class' # %% Load data djia = pd.read_csv("./data/raw/DJIA_table.csv", sep=',') combined = pd.read_csv("./data/raw/Combined_News_DJIA.csv", sep=',') # %% Calculate relative change in index value diff = ((djia['Close'] - djia['O...
73af2744b717eed463ee6385e357e6d4690fb168
a36d478e881fef9ede03232cf3ef6e034e541ef2
/llxPy/broswer.py
3937d5b1b2cff0a0ad5387f6672e125257eb4b1e
[]
no_license
lilixiang5473/one
dbb922531e552ed2c8461758cb23bff88b351b53
4cec39888d9a9d1cfbbddd075815557342605a54
refs/heads/master
2023-02-13T18:21:01.475111
2021-01-04T02:20:56
2021-01-04T02:20:56
326,543,956
0
0
null
null
null
null
UTF-8
Python
false
false
1,620
py
broswer.py
# 操作浏览器 import time from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains # 鼠标事件 driver = webdriver.Chrome() driver.get("https://www.fameex.com") def eleDragFunc(driver,targetPath,startPath,endPath): # driver.switch_to.frame("x-URS-iframe") actions = ActionChains(dri...
67aad3ae411369e9e2acb1eefde91fa9bada1698
c120e76263d1429f2e884e3c37edeaac74d4be65
/webscraping/Data.py
1acf2e97e7d604fd9b9ecebc026585bbdcb620c7
[]
no_license
ec505/EE461L-sp19-owl-team
bb79c16f425dd4c088f5968155baf8733076509f
a37b73d0790f45a11a4e151aa6633c9befbdb890
refs/heads/master
2023-01-11T03:27:08.484167
2019-07-02T18:58:40
2019-07-02T18:58:40
168,780,459
0
7
null
2022-12-26T20:51:01
2019-02-02T01:13:34
Python
UTF-8
Python
false
false
4,342
py
Data.py
from bs4 import BeautifulSoup import requests import time import pandas as pd from selenium import webdriver from selenium.webdriver.common.keys import Keys def txsmartscape(): url = "http://www.txsmartscape.com/plant-search/get-plant-data.php" #http://www.txsmartscape.com/plant-search/plant-details.php?id=968 ...
93acbb29b09d6c5b0663c5d9b05d489f96c3c254
a82f1f748462d019f4e708532cf75a9b18532912
/test.py
540fb79b65a15c07ff44143573b115f033982a32
[ "MIT" ]
permissive
stefanxinhong/QDA
70312a878c54faabe3afd1c81a89dbae9c2e35e0
6ad29ec9b6708153673b003a3705ed1659eefade
refs/heads/master
2021-05-28T16:52:31.066380
2014-07-19T20:59:50
2014-07-19T20:59:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
test.py
from __future__ import division import sys import copy sys.dont_write_bytecode = True """ Testing QDA """ def test_QDA(): from QDA import QDA x = [ [2.95, 6.63], [2.53, 7.79], [3.57, 5.65], [3.16, 5.47], [2.58, 4.46], [2.16, 6.22], [3.27, 3.52], ] ...
5fc4000521749ceb502f722d083c45161746c16d
27e06a771e16007738e64f9c01cf8a3a83e3c1ef
/DTIGCMC/main.py
6480d1b9d39e28ca9dddbd5473e6300fb65489d3
[]
no_license
myrabbitisverycute/GCMCDTI
7ffd78cca360b1ba2a46ba90beaf12d589953b5a
229814af44277da2a29c92e07b74f9ada69c3d59
refs/heads/main
2023-07-06T09:21:35.320849
2021-08-01T12:58:38
2021-08-01T12:58:38
391,625,956
1
0
null
null
null
null
UTF-8
Python
false
false
5,332
py
main.py
import os import numpy as np import pandas as pd from random import sample import matplotlib.pyplot as plt from scipy import interp import warnings import torch import torch.nn as nn import torch.nn.parallel import torch.optim as optim from torch.autograd import Variable from torch.utils.data import BatchSa...
ffc3bc4ec1131fc7c60cbcb3b7405a21857f2ca8
29da9de71a8c0514e3bd7328635daf93f32921e5
/app.py
a6177a1241c2f93484cc84b4a2e85df1c863b131
[]
no_license
dorodnyyDmitry/pythonweb
6834f1f4f2aa22747d96c28e7f4ce6309c7580fc
b2f51d3ff7731822665360631af552bce352d15d
refs/heads/main
2023-02-17T22:52:18.991311
2021-01-20T14:24:43
2021-01-20T14:24:43
331,329,928
0
0
null
null
null
null
UTF-8
Python
false
false
1,473
py
app.py
from flask import Flask, jsonify, request from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////contacts.db' db = SQLAlchemy(app) class Contact(db.Model): id = db.Column(db.Integer, primary_key = True) name = db.Column(db.String, nullabl...
301f0dfb57aa81997a1923945e5f8f145cc56063
d38a1348f6b3453c88429daf284a2c1ae9dd0ac7
/ConfigSwitcher.py
8e93ded80983de870caa670a5734c195b6fa1708
[]
no_license
devlat/cswitcher
02a5278835a3bc4227d85e7722b547ee6943a0c9
ec51dcc827f65a41d1f528974c6802bc58e10b21
refs/heads/master
2021-07-12T00:01:16.854031
2017-10-16T05:46:17
2017-10-16T05:46:17
106,929,813
0
0
null
null
null
null
UTF-8
Python
false
false
2,769
py
ConfigSwitcher.py
#! -*- coding: utf-8 -*- from __future__ import print_function import fileinput, re """ Класс, для переключения конфигурации NGINX. """ class ConfigSwitcher(): __FRONTEND = 1 __BACKEND = 2 # Признак: открыт frontend или backend __TYPE = None def __init__(self, path): try: sel...
391beb3fd12da799bc1808ca77693826cf9ba2c2
f16ffa3745aceb198b8da9154abcffbad941f3af
/books/admin.py
d37eb7e161e8ac54f87e2b9c87dea30d278a8c12
[]
no_license
GeonwooVincentKim/Django_Template_Test
a4efc4fe04f6e51f325d21818d5f7085e7792ec7
d16a1e3c7e2b3faa3a0b6bf56b7319fa05951e7f
refs/heads/master
2020-12-03T06:47:37.305412
2020-01-31T01:48:42
2020-01-31T01:48:42
231,231,540
0
0
null
null
null
null
UTF-8
Python
false
false
1,952
py
admin.py
from django.contrib import admin from .models import Publisher, Author, Book # Register your models here. class AuthorAdmin(admin.ModelAdmin): list_display = ('first_name', 'last_name', 'email') search_fields = ('first_name', 'last_name') class BookAdmin(admin.ModelAdmin): list_display = ('title', 'publ...
fd7345514d41ce7420c1cd4c38047bf103c00e4f
78e5593c9f720942651b62975e7e15c66509a3ed
/alexBot/cogs/flight.py
2f300cc99376b47a592ab8db6f01a861386cac1e
[ "MIT" ]
permissive
mralext20/alex-bot
f37f99cee382e1072d46ef911dd1103154f61946
0e0a4365afa29fc5a8f8db2b747751f547b5be73
refs/heads/main
2023-09-04T05:11:42.560977
2023-08-30T04:09:48
2023-08-30T04:09:48
101,717,627
8
10
MIT
2023-07-08T03:02:05
2017-08-29T04:06:28
Python
UTF-8
Python
false
false
5,471
py
flight.py
import logging from datetime import datetime, timezone import avwx import discord import geomag import humanize from avwx.exceptions import BadStation from discord.ext import commands from alexBot.tools import Cog log = logging.getLogger(__name__) class Flight(Cog): wmm = geomag.WorldMagneticModel() fligh...
8a02b432d0566d60a64a1e5b0f5090b2a7d3e410
042f6a4c213197d9da029f3a27ec5094ababee33
/Players/PBATPlayer.py
58b9b997e94a73e959ad8983630ff2b8c2cb31b0
[ "Apache-2.0" ]
permissive
jokvedaras/game-framework
322890655de687b4681818c7b6d168a6ee6b5532
9ff60e15d1beff54f94e280501929664ce59afe7
refs/heads/master
2021-01-09T06:22:55.958669
2015-01-04T05:50:51
2015-01-04T05:50:51
26,843,658
0
0
null
null
null
null
UTF-8
Python
false
false
3,439
py
PBATPlayer.py
__authors__ = 'Pat and Tony' import random import Player import Message class PBATPlayer(Player.Player): # self variables player_list = [] rock_cut = .3 paper_cut = .6 total = 10 name = None # finds a player and his information def find_player(self, person): found_player = Fa...
8778a8865eac4da73f0c633bb26cb096a6b44811
7faf47aaacbc5cce01e6676c0a2136a8c6943b65
/stock_screener/urls.py
d1603f1847ed4a55bf9d4b224bd860520ef1c6a1
[]
no_license
webclinic017/Django_REST
42b74b52570d3cee5412bd5c2f7247e8a7302eb5
3dcf7b72e38c4d53ab6df1849564e7dc43048882
refs/heads/master
2023-07-20T22:03:09.316145
2021-09-08T11:35:35
2021-09-08T11:35:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,602
py
urls.py
"""stock_screener URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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...
1f9632cf516915c131800fa5e07a0170f6aca224
03645491131b82b3dc178539ace283c55708b497
/bank/management/commands/export_csv.py
127ec0381dd0257fc8e6f4a271500335ea8306d9
[]
no_license
qrames/video_bank
1f029df1c1307e4721cc6d4d15dc1492a0991352
bc208e57d69e8edc2f1d7de934a8a623c30a2db8
refs/heads/master
2020-04-04T19:58:49.084650
2018-11-15T14:43:47
2018-11-15T14:43:47
156,228,733
0
0
null
null
null
null
UTF-8
Python
false
false
1,721
py
export_csv.py
from django.core.management.base import BaseCommand import csv from django.utils import translation from bank.models import Movie, MovieGenre class Command(BaseCommand): def handle(self, *args, **options): translation.activate('fr') with open('movies.csv', 'w') as mycsvfile: writer ...
aa9608a4c214c89323448b8a0283df5974e68c51
64088cb43ea95b6a809f7e80c9e31c7e13c146e8
/test/test_compare.py
aa9560a937d012fea0a16701013247064d5bff0a
[ "MIT" ]
permissive
baokui/GPT2-Chinese
840271617d4bd25517750762030357fe1301e11a
9847c015b3817abf9ae19b0a7380814f25cad02e
refs/heads/master
2020-12-12T03:32:54.841338
2020-08-06T03:39:26
2020-08-06T03:39:26
234,031,341
0
1
null
2020-01-15T08:13:03
2020-01-15T08:13:02
null
UTF-8
Python
false
false
4,809
py
test_compare.py
# -*- encoding: utf-8 -*- import json import gpt_gen import gpt_gen_thread import sys from Config_compare import * def read_excel(path_source1,index=0): import xlrd workbook = xlrd.open_workbook(path_source1) # 打开excel文件 sheets = workbook.sheets() table = workbook.sheet_by_name(sheets[index].name) # 将...
072acc4ef4b633dcd803d074965b5f2787112dfe
48cedd8f2cc73f6001d45627903b3da9c990edbd
/scripts/fabfile_local.py
7144df1ad233c68ebac6a16cd2522eb7ed9636a5
[]
no_license
ssidhanta/WeaQL
b11d7b597abc816945381bc18af292471cb061fb
60ada1a573be88297b8b20fc8a96584aa9140562
refs/heads/master
2021-09-05T19:28:31.242684
2018-01-30T15:00:04
2018-01-30T15:00:04
119,550,427
0
0
null
null
null
null
UTF-8
Python
false
false
16,245
py
fabfile_local.py
from fabric.api import env, local, lcd, roles, parallel, cd, put, get, execute, settings, abort, hide, task, sudo, run, warn_only import time import sys import xml.etree.ElementTree as ET from sets import Set import logging import shlex import subprocess, signal import os from parser import parseConfigInput #---------...
9690a74307ad0237c610f412a1b59a1602879261
f05c85d9e3fcab4606feccc404d4b77e8942489e
/tbdd_pdm_web/api_blueprints/users.py
9a0aad605bae17654f9f75edfadb5a5d888c1e56
[]
no_license
rickvavilin/tbdd_pdm
1b17a291a9d9782cf959b6909d217aff61157703
82c6d7cb5064c17b02d5d3515dc6221928f11dd7
refs/heads/master
2020-03-27T01:30:55.145648
2018-09-28T05:24:47
2018-09-28T05:24:47
145,718,146
0
0
null
null
null
null
UTF-8
Python
false
false
3,967
py
users.py
from flask import Blueprint, request, Response, current_app, session, jsonify import flask_sqlalchemy from tbdd_pdm_core.api import exceptions, users, groups __author__ = 'Aleksandr Vavilin' db = flask_sqlalchemy.SQLAlchemy(current_app) node = Blueprint('users', __name__) @node.route('', methods=['GET', 'POST']) de...
94593a80b4c5b7a37b59b4227f9c685547aff1e2
f72a7d2a7431b7f771db4e0a42711d3fdcc02a49
/006-CPF_CEP/cadastro_CPF_Censo.py
e775f00582374865225cd67fd2dfd2788d46adc3
[]
no_license
diegoPaladino/BOT_CENSO_2021
60087dc30e42351d62105e0a88b5f58d9410c6a4
84e69ea1f8f36907f483ce437025909f46626f03
refs/heads/master
2023-07-10T04:50:43.718171
2021-08-20T22:44:56
2021-08-20T22:44:56
380,965,998
0
0
null
null
null
null
UTF-8
Python
false
false
1,403
py
cadastro_CPF_Censo.py
# cadastro de CPF e CEP do aluno no Censo 2021 import pyautogui as p import pyperclip as pp import tkinter as tk import time as t # declarations def alert(): p.alert('Começar CPF?') def select_opera(): p.moveTo(x=225, y=-22,duration=0.2) p.click() t.sleep(0.2) def copy_CPF_box(): p.moveT...
cff33aada556b6d330aa8039fb691824556fcf9e
635fd0858ffbfed22bb8646abc3db8e90d445326
/scrapy_framework/MahmudAhsan/webscrap/wlog.py
8e6ba60f11f8f469fde48561600d729588a383ee
[ "MIT" ]
permissive
ayman-tareq/webscraping
3c698a6460886c38f5538a110659445b24d72fca
35b3fe3d869c78856667cdb537a5f067fdc4c9ac
refs/heads/main
2023-05-04T13:55:34.931810
2021-05-23T21:11:19
2021-05-23T21:11:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
wlog.py
import logging def set_custom_log_info(filename): logging.basicConfig(filename=filename,level=logging.INFO) def report(e:Exception): logging.exception(str(e))
4bec0d2b4a702f32cba68b6ed540f6aff262ac2b
e92ccd2db621d70c75eb412e49789494a2620967
/algo/binarysearch.py
85423d2ecadaaa02ca74436193c55a8ba0cf9f7a
[]
no_license
hgkang9/TIL
fb25e610c8d869014f21c370f2fc1089a9d157da
72476b974ab3283d19eec8359cb2efdf8bfd4d59
refs/heads/master
2020-04-14T10:17:25.116015
2019-05-10T08:40:37
2019-05-10T08:40:37
163,782,787
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
binarysearch.py
arr = [2,3,4,1,5,7,6] arr.sort() search = 4 n = len(arr) start = 0 end = n-1 mid = (start + end) // 2 for i in range(n): if search < arr[mid]: end = mid-1 mid = (start + end) // 2 if end == 0: print("없음") break elif search == arr[mid]: print("성공") ...
155eee7f958fb37850598a0761dba1fb96190c02
13c7f4c9230a0ee1c7ef6944843ec1fe01e0f81e
/isolated_nodes_check.py
e41e044d81e9b5bf795b151ed9608dc20729a1b5
[]
no_license
ks8/glassML
1284a35ea854d3da235784859e2d6e30376a9519
a52e43275d6d392e199b973a2af324db766a539e
refs/heads/master
2020-04-16T05:23:13.285750
2019-07-11T18:43:48
2019-07-11T18:43:48
165,303,078
4
0
null
null
null
null
UTF-8
Python
false
false
1,544
py
isolated_nodes_check.py
# Function for checking if there are any isolated nodes in a dataset # Import modules import argparse from argparse import Namespace from pprint import pformat from compose_PyTorch import Compose from distance_PyTorch import Distance from GlassDataset_PyTorch import GlassDataset from nngraph_PyTorch import NN...
3cec053edd7c5ef0d75b28dea463285b2d0445d7
8b6bcf428973101ab29a2c70805847b0d5b9768c
/gui_wizard_label.py
9ddfe85abaeaa9cb2f182c1e30c5ebe1d4679c95
[ "MIT" ]
permissive
Yepoleb/rct3installer
1be133584b6282c09000186d00c6b00adc07f823
099919f5dd677366988ef69a0e2ca58fc9432838
refs/heads/master
2021-06-30T08:49:44.258599
2017-09-18T15:07:17
2017-09-18T15:07:17
103,954,550
1
0
null
null
null
null
UTF-8
Python
false
false
5,142
py
gui_wizard_label.py
import sys from PyQt5.QtWidgets import (QApplication, QWizard, QWizardPage, QLabel, QVBoxLayout, QHBoxLayout, QLineEdit, QPushButton, QFileDialog, QCheckBox, QProgressBar) from PyQt5.QtCore import Qt PROGRAM_NAME = "RollerCoaster Tycoon 3" PAGE_INTRO = 0 PAGE_INSTALLER = 1 PAGE_PREFIX_EXISTS = 2 PAGE_CREATIN...
d8aa5348ef7a46de98ca5ec17ab6b12ebeb30b1a
f2a86122a24f9ee7ff4ed76ac100fcc91c0cb0cf
/my_lab3.py
91397bf6aa2be7e24a156e97b520e5f45464ee30
[]
no_license
fredlind/medicalCNN
85311a097ac577303c975feb663ab39108fc5346
61511eea122789608d27092c2c9d7ee5a6c9e5c8
refs/heads/main
2023-08-04T22:43:03.377107
2021-09-22T10:12:42
2021-09-22T10:12:42
408,796,532
0
0
null
null
null
null
UTF-8
Python
false
false
21,444
py
my_lab3.py
#!/usr/bin/env python # coding: utf-8 # # Assingment 3 - Generative Models # ### Course: Convolutional Neural Networks with Applications in Medical Image Analysis # # Office hours: Minh - Thursdays (odd weeks) 13.15--16.00, Attila - Wednesdays (even weeks) 08.15--12.00, Tommy - Monday May 31, 13.15-15.00 # # Hello a...
f8798c0abfca5b54fcd16fc2b7322f5d8d81c30a
4151705d873af486f359ebc60427c4e439044510
/old_files_not_used/legacy/scripts/v-2.1/merge_first_s4.py
b02b7c83a11e7afb6f1964921198dff425ca1349
[]
no_license
GW-HIVE/bioxpress
375e74221ff8841049530cf5c60eb440436d8d1f
6ca86916958c08b88985b745a3f795c0156d85e3
refs/heads/main
2023-08-12T08:12:53.736967
2021-10-08T13:53:26
2021-10-08T13:53:26
392,076,238
1
1
null
2021-10-08T13:53:27
2021-08-02T19:51:53
Python
UTF-8
Python
false
false
675
py
merge_first_s4.py
res=open('/data/knowledgebases/bioxpress/BioXpress_interface_tumor_Hiseq_final.txt','w') #res=open('/data/knowledgebases/bioxpress/BioXpress_interface_overall_final.txt','w') #data1=open('/data/knowledgebases/bioxpress/BioXpress_interface_overall_v2.0.txt') #data1=open('/data/knowledgebases/bioxpress/BioXpress_inter...
8b9a285f291aab97e269add0c2479c28539e3b0f
5e48fa0a32f59f465ed0f6bee7d35db3e2c21197
/python-005.py
299dd75a094f343f36c53438d9bd864a39a89528
[]
no_license
lindo-zy/python-100
11ce0cc21ece107317643cfd402df84e9b0f3b8e
0fd7f9db03102577789e73e63a6b908814d11010
refs/heads/master
2021-07-13T17:04:42.910083
2017-10-19T09:08:51
2017-10-19T09:08:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
python-005.py
#!/usr/bin/python3 # -*- coding:utf-8 -*- ''' 题目:输入三个整数x,y,z,请把这三个数由小到大输出。 程序分析:我们想办法把最小的数放到x上,先将x与y进行比较, 如果x>y则将x与y的值进行交换,然后再用x与z进行比较, 如果x>z则将x与z的值进行交换,这样能使x最小。 ''' L1 = input('请输入三个整数(空格分隔):') L2 = L1.split() L2.sort() print(L2)
b4066e01a110c4567d9619a58f42c7b01d8d6e2e
cc5e1a78d2e33b847eaa9f352e9b3d315e8648a4
/iris/7.py
03d9c535783b9ae6d765baa334b1a0d03594531f
[ "MIT" ]
permissive
PandaWhoCodes/my_ml_journey
f1d98bf37d008fbb7af19eef8006e7fb0fc2b6cc
5a82e4340cb33d137495638cf134efce65ac7fac
refs/heads/master
2020-03-17T11:59:58.278277
2018-11-06T10:02:33
2018-11-06T10:02:33
133,570,842
1
0
null
null
null
null
UTF-8
Python
false
false
22,034
py
7.py
import matplotlib.pyplot as plt import numpy import numpy as np import math """------------------------------------------------- Name : calCovariance() Input = 4*n matrix, mean of Iris data Output = 4*4 covariance matrix Description : calculate covariance for each component ----------------------------------------...
9181de12fc8b672997a3017512cd06b01d328ecd
2b86301d5ad3fecaa5a300cabfe6b4dfc82b78ed
/venv/Lib/site-packages/jupyter_client/tests/test_kernelmanager.py
69a728db714458e3769b5017ef3cf0c4782fc0d4
[ "MIT" ]
permissive
sserrot/champion_relationships
72823bbe73e15973007e032470d7efdf72af3be0
91315d6b7f6e7e678d9f8083b4b3e63574e97d2b
refs/heads/master
2022-12-21T05:15:36.780768
2021-12-05T15:19:09
2021-12-05T15:19:09
71,414,425
1
2
MIT
2022-12-18T07:42:59
2016-10-20T01:35:56
Python
UTF-8
Python
false
false
13,534
py
test_kernelmanager.py
"""Tests for the KernelManager""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import asyncio import json import os import signal import sys import time import threading import multiprocessing as mp import pytest from async_generator import async_generator, yi...
31462c1c2a10caef9d7c180fcfb00f4ffb1df7ba
2ba2fb402459933a20fdc02c34578e8720d5d5e2
/Python/valid_parantheses.py
e3edcee52c868c2126c8b6c1a27013dec349ecfb
[]
no_license
aaron-iglesias/Leetcode
ff38f8cd2e8d2730ecc453582aa7ca0967079885
fd9703f15bbd11df5e703c7590d4254714bdde5b
refs/heads/master
2021-06-13T05:40:18.323847
2017-01-25T20:09:48
2017-01-25T20:09:48
79,502,360
1
0
null
null
null
null
UTF-8
Python
false
false
594
py
valid_parantheses.py
# Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. # The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. class Solution(object): def isValid(self, s): st = [] for c in s: ...
52a32e67e6e76fd295b8afb9f30af5be5746b846
ca3d6e6683f4736792fc93352424c6e6d216ab4d
/chapter3_project/app.py
1e92aa00548a0837d96c803319107d1bc7a8a6ab
[ "MIT" ]
permissive
msg4rajesh/Building-Data-Science-Applications-with-FastAPI
11ac071583002b15bc955fc3bc72ab86d2800222
99b472d8295a57c5a74a63d8184ac053dc4012f2
refs/heads/main
2023-07-16T09:48:48.536002
2021-08-26T05:02:39
2021-08-26T05:02:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
app.py
from fastapi import FastAPI from chapter3_project.routers.posts import router as posts_router from chapter3_project.routers.users import router as users_router app = FastAPI() app.include_router(posts_router, prefix="/posts", tags=["posts"]) app.include_router(users_router, prefix="/users", tags=["users"])
80460fded8897a2c1bcf73f435ae38636085760c
552e4f19e6558aa73428333d98d47a2baa0b9e03
/tensorflow/modeling.py
83cf591be23b5f6190e7ad41416050244345d9bf
[ "MIT" ]
permissive
yyht/Funnel_Transformer
6c17ad12bb6ab5dcbd3f6161b830237dc61add26
4b35a794d5e122a8054471863a52d4eac1c39dcd
refs/heads/master
2022-12-08T08:47:59.692029
2020-08-24T07:35:04
2020-08-24T07:35:04
279,195,871
0
1
null
null
null
null
UTF-8
Python
false
false
48,797
py
modeling.py
# Lint as: python3 """Funnel-Transformer Model.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import os from absl import flags import tensorflow.compat.v1 as tf import ops ##### Model configuration flags.DEFINE_string("overwrite_keys", d...
e388690b4e65ce5ae19984337fd2eb66786938e6
4571c822ae4bd219c34e41e332bad6e948e26488
/Divide_and_Conquer.py
24d1e76ce98205c8f553524e3a47ad309ca2088f
[]
no_license
PeterRissberger/CS325
aadcdb49666693b0fc5a10582ea48b274b05cded
b563c3846a48f8e03c0ed0ba1f13f1c29f7875ba
refs/heads/master
2021-01-17T12:01:29.275666
2015-04-27T06:01:14
2015-04-27T06:01:14
34,291,485
0
1
null
null
null
null
UTF-8
Python
false
false
1,359
py
Divide_and_Conquer.py
import sys from functools import wraps sys.setrecursionlimit(4000) #Scans 'MSS_Problems.txt' and returns an array of arrays contained in the file def scanInput(): infile = open('MSS_Problems.txt', 'r') outfile = open('MSS_Results.txt', 'w') string = infile.read() string = string.translate(None, '[...
d49ae3796772983863409c82777d75c76e464b7d
f64fa94d8a80459870c582ea6267cee300c18328
/Lab7/cw11.py
f5b97805d93c4843966ca24231fb52b4633fc890
[]
no_license
Bijuu3010/Wd_2021
8e9551f676494dfc148764d55f663566bacc1efc
312510ed19b84a1caed561ec8dabf4201d4b54b8
refs/heads/main
2023-05-08T13:44:33.924946
2021-05-26T13:12:35
2021-05-26T13:12:35
346,389,818
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
cw11.py
import numpy as np macierz = np.arange(0, 12) print(macierz) macierz_1 = macierz.reshape(3, 4) print(macierz_1.ravel()) macierz_2 = macierz.reshape(4, 3) print(macierz_2.ravel()) macierz_3 = macierz.reshape(2, 6) print(macierz_2.ravel()) # Są takie same
1444021cd6f194ec9576b665489f2e40dd3c7d82
d4e7110cce6f9a470fcca87ec83b1148b26b9b53
/Extract_data_SAT.py
4980b4256924693c0ee75155c3941eea13d4886b
[]
no_license
Brice313/Map_output_process
f4297aa44dd97246b4293c4da1faee8f2b901228
0d4d51fddaa160c1457fa5483a1c7830c4ab833c
refs/heads/master
2021-01-22T03:30:09.710915
2017-06-02T10:26:34
2017-06-02T10:26:34
92,382,419
0
0
null
2017-06-01T09:27:16
2017-05-25T08:32:06
Python
UTF-8
Python
false
false
4,013
py
Extract_data_SAT.py
# coding: utf-8 # In[63]: from __future__ import print_function import os # ### Code for SATDB # Link: # FF speed=5 # V/C=12 # Delay=14 # Cruise Time=15 # Tot Time=17 # Actual Flow=24 # Distance=6 # # Node: # V/C=2 # Delay Time=3 # Arrive Flow=5 # # In[1]: def...
98449694962d8be9a8edb0b1b829078a15f93111
8951e6277d6a8f64247e366257feca9b60767bb4
/Chapter4/cube.py
1440d63a894bc28fdc0ba7b5409a3a08eb8dfc11
[]
no_license
starlis13/CIT228
264fe6b224cec6dbaf9565b4bd91ca0578c138ca
1a991f8ad999f3c1734c039ec52eac248536bf16
refs/heads/master
2023-03-26T21:20:24.413844
2021-03-22T02:47:39
2021-03-22T02:47:39
328,866,916
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
cube.py
# Exercise 4-8 print("I can't believe I'm making cubes. Borg would be pleased.") cubes = [] for number in range(1,11): print(number * number * number) # Exercise 4-9 print('') print("Now do it as a comprehension!") cubes = [value**3 for value in range(1,11)] for cube in cubes: print(cube)
86be1437409bf44a0e2eb5d9a54e1fcfdf8255fd
334a42cef44d31c8efce4d188f3788da40f44b31
/education_platform/apps/pages/forms.py
6fb3f62209208024f152b082d275e9f53bed6012
[ "MIT" ]
permissive
elifnurkarakoc/django-education-platform
0e32f1bd5c91517fb0cbf3609bf970cf69f9da50
a8430e436c0bc7ac95be51a0b54e7c726576e38c
refs/heads/main
2023-06-15T11:00:11.340334
2021-07-08T15:21:07
2021-07-08T15:21:07
383,474,676
0
1
null
null
null
null
UTF-8
Python
false
false
926
py
forms.py
from django import forms from django.forms import fields from .models import Contact class ContactForm(forms.ModelForm): first_name=forms.CharField(widget=forms.TextInput(attrs={ 'class':"form-control" , 'placeholder':"Your firstname" })) last_name=forms.CharField(widget=forms.TextInput(att...
ff344443a74772cda4f39a54837d113f4f5c8dc3
6c7e2d64bdbb76014f58ab1a6d155e2575477c0f
/admin.py
f99183d93f20b951ffe40c28029e0b34cd3cb8e5
[]
no_license
creepykedi/callcenter
137b07d8b733247e880bee26f8c1565b5b749eb5
57257a402e05eac2027c4b1a06a4ecfa7e641aee
refs/heads/master
2023-07-21T07:57:49.291352
2021-08-30T20:44:24
2021-08-30T20:44:24
316,991,354
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
admin.py
from django.contrib import admin from .models import Table, Main, Sources, Contractor # Register your models here. admin.site.register(Main) admin.site.register(Table) admin.site.register(Sources) admin.site.register(Contractor)
e6e2f9659ed563e6332f2bd40da7750b19e866c8
7b7564c2c776cd7f722ca55722df28d79948d502
/Python/1_Stepik/3.2.7/step.py
bb13c5c1829be8d75266fbafd73198b09e15fea9
[]
no_license
gedfalk/sources_and_stuff
27cddef098f902b4d4fa0e7ddb274257c51f8efa
7dd02a972a536df7852dc2756dcd7cddc396a7c9
refs/heads/master
2023-09-04T21:59:05.562588
2021-11-22T15:45:47
2021-11-22T15:45:47
423,908,274
1
0
null
null
null
null
UTF-8
Python
false
false
952
py
step.py
# Регулярные выражения в Python ''' Все упражнения от 3.2.7 до 3.2.15 ''' import sys import re ''' pattern = 'cat' for line in sys.stdin: line = line.rstrip() if len(re.findall(pattern, line)) > 1: print(line) ''' ''' pattern = r'\bcat\b' pattern = r'z...z' pattern = r'\\' pattern = r'\b(\w+)\1...
dbe5a99e58cc1ad0ff5dacb2be2ed8ccf0a911c5
e76bf266147b4b77f40425c5c8730dd55a4108fd
/videoentryphone-raspberrypi/KeypadManager.py
6f365e86405799b3394dc6f82f09b04cb6bf73ad
[]
no_license
BarKar96/IntelligentBiometricEntryphone
d8c28ec725565b6d8d48112b2b9388b7bc1c7fd8
5b5ac312f2c51b3be383a0092512b4460d23c28a
refs/heads/master
2020-04-29T03:27:58.521601
2019-03-15T11:53:58
2019-03-15T11:53:58
175,810,719
0
0
null
null
null
null
UTF-8
Python
false
false
1,263
py
KeypadManager.py
import RPi.GPIO as GPIO import time import queue import SoundPlayer from threading import Thread global q global keypadActivated q = queue.Queue() keypadActivated = False GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) MATRIX = [ [1,2,3,'A'], [4,5,6,'B'], [7,8,9,'C'], ['*',0,'#','D']...
ce5fb6424a54baa56d2a2546b901faeac33bba0c
9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612
/19100105/quan0523/d12_training2.py
6a95c0af75a5b2cc39fcc9932cecdb789af03de0
[]
no_license
shen-huang/selfteaching-python-camp
e8410bfc06eca24ee2866c5d890fd063e9d4be89
459f90c9f09bd3a3df9e776fc64dfd64ac65f976
refs/heads/master
2022-05-02T05:39:08.932008
2022-03-17T07:56:30
2022-03-17T07:56:30
201,287,222
9
6
null
2019-08-08T15:34:26
2019-08-08T15:34:25
null
UTF-8
Python
false
false
802
py
d12_training2.py
import requests from pyquery import PyQuery import mymodule.stats_word from wxpy import * bot = Bot() my_friend = bot.friends().search('权')[0] # 找到好友 my_friend.send('send me something') # 发送消息给这个好友 @bot.register(my_friend) def reply_my_friend(msg): print(msg) if msg.type =='Sharing': # 如果是公众号内容进行统计词...
ae2830c3741bbfe2894e81f2bd05d1412f9f0ff3
e378c8a55023c0cbbd9d3a6817b174af058c49df
/models/base_model.py
2b663e8a2db8a4c189e0e301f9b437a1bf246736
[ "BSD-3-Clause" ]
permissive
sidney001/dml_cross_entropy
0e9496bc160115bd687784264952a19b603df4b6
f0dbc12715e205c1fe5e0105126b51d27ed7525e
refs/heads/master
2023-02-02T07:55:00.204623
2020-12-18T22:36:43
2020-12-18T22:36:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,600
py
base_model.py
from typing import Tuple, Optional import torch import torch.nn as nn import torch.nn.functional as F class BaseModel(nn.Module): def __init__(self, num_classes: int, num_features: int, dropout: float = 0., detach: bool = False, ...
b23ce3a136b6d675701a0aa42bcfa835b4ac6583
8dbe2b3d108c084b0409be8877b1c1f317f8a4d6
/sketch.py
bdc6b2a0bc77c5364974a722d1e12e6728001587
[ "MIT" ]
permissive
Janggwan/sketch
7a2c8d92cc94e76ce564fa7bd5a8d2f641507248
b3c0477178bc3cbffef64ce404764b981f297521
refs/heads/master
2021-01-18T10:01:01.154787
2016-01-28T14:50:21
2016-01-28T14:50:21
50,404,717
0
0
null
2016-01-26T05:05:10
2016-01-26T05:05:10
null
UTF-8
Python
false
false
25,049
py
sketch.py
#!/usr/bin/env python from __future__ import division, print_function import logging import os FORMAT = '[%(asctime)s] %(name)-15s %(message)s' DATEFMT = "%H:%M:%S" logging.basicConfig(format=FORMAT, datefmt=DATEFMT, level=logging.INFO) import sys import theano # Automatically detect we are debugging and turn on m...
f4dbd149143e69f6ff6b161de97045607e36a9ea
287338c043ed86f1218d8a361bdd159f2c309f11
/tests/modules/import_alias.py
91f813a08112a280057dd07cec2c4fd2cc5a5893
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
dusty-phillips/pyjaco
cb90f7b3f5b1bce793b71ef26907a0c98ac0f260
066895ae38d1828498e529c1875cb88df6cbc54d
refs/heads/devel
2021-05-28T18:16:31.031882
2012-03-18T21:15:10
2012-03-18T21:35:02
3,058,134
3
0
MIT
2020-01-01T09:19:12
2011-12-27T18:18:31
Python
UTF-8
Python
false
false
167
py
import_alias.py
from imported.alias_fns import foo as bar from imported.alias_classes import spam as eggs # call imported function bar() # call imported class e = eggs() e.msg()
3c25de755216e360c6f0d46edd9e802ac7765917
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_playhouses.py
1700a9c6971fbf4ffaada81d136e2bb9da7ad8b6
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
_playhouses.py
from xai.brain.wordbase.nouns._playhouse import _PLAYHOUSE #calss header class _PLAYHOUSES(_PLAYHOUSE, ): def __init__(self,): _PLAYHOUSE.__init__(self) self.name = "PLAYHOUSES" self.specie = 'nouns' self.basic = "playhouse" self.jsondata = {}
afe49cedef5747508f5ab040ca6a6c3ee7632b3a
42039ed90ae26cb431b9b0e1db19a93fc2bf01b4
/python_client/src/wellcome_storage_service/downloader.py
48feda5eced7a70c65b017d5b0abc1a80da13c0a
[ "MIT" ]
permissive
h4l/storage-service
7eab35d58e72659669a15ba25d43089757513222
05524e25dfc55f4fe6e2101e1be2850bec691564
refs/heads/main
2023-06-21T03:10:53.262780
2021-07-19T16:08:28
2021-07-19T16:08:28
387,693,877
0
0
MIT
2021-07-20T06:23:35
2021-07-20T06:23:34
null
UTF-8
Python
false
false
3,751
py
downloader.py
# -*- encoding: utf-8 import abc import os import shutil import tarfile import tempfile try: from collections.abc import ABC except ImportError: # Python 2 from abc import ABCMeta as ABC from ._utils import mkdir_p def _choose_provider(location): if location["provider"]["id"] == "amazon-s3": r...
417d1e2cf0fb3deaf8be8734a98ff9e3d0867c52
3dd61a495905e534af8bf5cbc31401a06586b231
/Views/AddBookView.py
5959b8b5fc845d1b77231824d2a8b48b3f5bf18d
[]
no_license
kentoroceo/Library-Inventory-System
e6e301c4d239f38ce89e1b927f6599182462f602
395908db8f745878b3f68579fe1bdc4330589122
refs/heads/master
2023-02-23T16:34:42.731801
2021-01-28T21:21:29
2021-01-28T21:21:29
306,031,837
0
0
null
null
null
null
UTF-8
Python
false
false
3,921
py
AddBookView.py
from PyQt5.QtWidgets import QWidget, QSizePolicy, QMessageBox from PyQt5.QtCore import pyqtSlot from Views.AddBookViewUI import Ui_AddBook from PyQt5 import QtCore, QtGui, QtWidgets #AddBookView class communicates with UI that connects to a controller to perform backend operations class AddBookView(QWidget): def ...
99670ef9c551894d909dd63f6d76ececfe661463
cc0ade18c983411aa49cd68f63ddf633557ff270
/Models.py
4e9297c8a0820a4448dc88c611e60609d8f4efab
[]
no_license
luishoracio/Hidromedidores
bd431721b821ab1d3652bf6aa832fb513fe1789c
78cec0e929b46b15e03ef322be230343e684368a
refs/heads/master
2020-06-03T05:35:02.653069
2015-06-25T23:50:16
2015-06-25T23:50:16
38,079,874
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
Models.py
__author__ = 'luishoracio' class Cola: id_test = None id_origen = None version = None mensaje = None def __init__(self, id_test = None, id_origen = None, version_msg = None, mensaje = None): self.id_test = id_test self.id_origen = id_origen self.version = version_msg ...
4d9f133beaa30cc7990cba2202b01d531eaff004
6b9d5ba937920147633b123c48539cf19cfd0635
/app.py
1080b2eda535cf5e0e9cbc6a682cc4fda5ec33e1
[ "MIT" ]
permissive
smcl/RPiEOS
dd4b9b02859659b2991d8209add73a2b6849025a
4be7fc08303b6d1818ef09ed4611c74cde096397
refs/heads/master
2021-01-10T03:24:41.266928
2016-01-12T00:39:23
2016-01-12T00:39:23
49,267,190
0
0
null
null
null
null
UTF-8
Python
false
false
4,110
py
app.py
import cherrypy from cherrypy.lib import static from cherrypy.lib.static import serve_file from datetime import datetime import json import os import sys import sqlite3 from mako.template import Template from mako.lookup import TemplateLookup from threading import Thread from threading import Event #import RPi.GPIO as...
8b5b558a6cf5b2d5ce4c14001c9dd75074a11a7a
a4ff406a77830753286673ae22b4490a649320fb
/baiduimage/test.py
b5b762dabc282b23ab88781ad9d018858bf486c2
[]
no_license
lilipopololo/pycrawl
9a32f13dbb46fffa220686bdc81329675a9b5d52
d528df602ed228955f14560dc89907074c72ee72
refs/heads/master
2020-03-14T02:32:01.358113
2018-04-28T11:04:53
2018-04-28T11:04:53
131,400,779
0
0
null
null
null
null
UTF-8
Python
false
false
1,643
py
test.py
# -*- coding: utf-8 -*- ''' 目标:百度识图 http://image.baidu.com 时间:3-30 15:10 作者:yjw V:1.0 ''' import requests import json import re headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" } url = "http://image.baidu.com/pcdutu/a_...
265caab0d6b4dd300d262a04037cbf0786ddbf26
5f3575d3b5e733767f960f03783b4fa8fbd44a58
/naive_convnet.py
d629cd40addd3d836b1759cad6eff20131dd1950
[]
no_license
MrXu/dogs_vs_cat
7900c35ce13cef402db9e08f9a8405aa929e4432
48c483aeb456fc5b62254dc2c4f8e39ec47b99ba
refs/heads/master
2021-01-12T17:46:49.853538
2016-10-24T03:20:57
2016-10-24T03:20:57
71,644,692
1
1
null
null
null
null
UTF-8
Python
false
false
3,010
py
naive_convnet.py
from keras.models import Sequential from keras.layers import Convolution2D, MaxPooling2D from keras.layers import Activation, Dropout, Flatten, Dense from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img import tensorflow as tf import os from keras.utils.visualize_util import pl...
3377cfa47b6bce0ad6ce63792d4b0bd1c1cf6564
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02233/s597002071.py
7d97231bd12270c44a5f424c15b7e6cc0d6f65a8
[]
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
173
py
s597002071.py
n = int(input()) n1 = 1 n2 = 1 result = 0 if n < 2: result = 1 else: for i in range(n-1): result = n1 + n2 n2 = n1 n1 = result print(result)
1ce17774ba43300fdb3a0680a89b244d8b68f0c1
f4e53c29db213daa3c3e2f117547c6263b8dfe6f
/python/sudoku.py
555def6a6d0ab0738f6874062b9cb82b8b279d1b
[]
no_license
VilleSalonen/sudoku-solver-bit-arithmetic
a9222a3d2037e482c1c9c311a15788fdce247c3c
6a6d99baa1f68c827d24d35e0d40324869e2b7eb
refs/heads/master
2022-06-09T19:04:35.321506
2022-06-01T11:51:40
2022-06-01T11:51:40
7,065,336
1
0
null
null
null
null
UTF-8
Python
false
false
238
py
sudoku.py
import sys from sudoku_utils import * from sudoku_logic import * def solve_input(input): table = initialize(input) table = solve(table) return table if __name__ == '__main__': print_human_table(solve_input(sys.argv[1]))
78435ff9d6f1b54cea334da446dd47165d34f7a0
dfee9df52a9ed851e2efbcb62b00af36f69a5310
/PySem3/lab3/cw1.py
a6629aa48061f5b5dc83c04486be3e1d83733157
[]
no_license
are-you-real/pyton
518eeb8b4145b31fed83d00aa604c9bc90190edf
8570df556fc0409d87c989ac1481bcce0949b1a5
refs/heads/master
2022-12-04T09:14:09.737106
2020-08-21T22:11:50
2020-08-21T22:11:50
287,969,323
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
cw1.py
import math pi=3.1415 fi=[] A=15 y=[] for i in range(50): fi.append(i*2*pi/50) y=(A*math.sin(fi[i])) x=int(y) print i if x>0: print ' '*100, print '+'*x elif x==0: print ' '*100, print 0 elif x<0: x=-x print ' '*(100-x), print '-'*x
f4d83857184e26c84e4c8d5ade67503d8e19ef01
114c5b9e833f964b89746c4b5ef04819be4d9daf
/bwi/migrations/0002_auto_20170718_0905.py
8e26bafee82e00a10bc00617f95fb60c7725ebc0
[]
no_license
inwonday/pettyCash
2e08b19268306b0de76bcc58f3985016795c9540
9461b21957aaed24c61b79e86e328bf5a1d94e44
refs/heads/master
2021-01-01T19:17:03.046714
2017-09-04T05:51:15
2017-09-04T05:51:15
98,554,721
0
0
null
null
null
null
UTF-8
Python
false
false
3,670
py
0002_auto_20170718_0905.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-18 09:05 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
74a12b0e33a573f3bc0ce32b36f75c27af16f716
8130566e794e1f72211cf135224ec0cc597b8362
/Scripts/joblocationsoverall.py
2afe5d1b856f0fa092cc41656390ebfb78fe09a2
[]
no_license
snehadujaniya/SIH-2020
bbfb45f2fdd9ac2d5bf8f56bad1fecb212552a7e
1bb9459e204cf4594edf207f5580fb2cd3eee18b
refs/heads/master
2022-11-28T08:04:36.638494
2020-08-03T11:45:49
2020-08-03T11:45:49
285,644,731
0
0
null
null
null
null
UTF-8
Python
false
false
735
py
joblocationsoverall.py
import matplotlib.pyplot as plt import pandas as pd import numpy as np df = pd.read_csv("Final 2titles.csv") x = df['Location'].value_counts() dict(x) list_of_others = [] for key, value in x.items(): if value <= 5: list_of_others.append(key) for i in range(len(df)): if df.loc[i, 'Location'] in list_...
9ba4b0db019d2d6bee36c933089b8e6d8864109a
ce668943b9a2bb224cd12f4bc947a4cab56c211a
/roast/testlibs/linux/rfdc.py
8533965b7b56601a0c14c12fee0a403c9521c70d
[ "MIT" ]
permissive
WafaAbdulla-tech/roast-xilinx
6b71af4c1fc9124b722dc581004f27b8992ced4d
04f9a9b0cf92efc2561bc31518103d4f474dfa69
refs/heads/master
2023-09-04T19:23:56.559600
2021-11-17T18:17:05
2021-11-17T18:17:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
rfdc.py
# # Copyright (c) 2020 Xilinx, Inc. All rights reserved. # SPDX-License-Identifier: MIT # from roast.testlibs.linux.baselinux import BaseLinux from roast.testlibs.linux.fileops import FileOps class Rfdc(BaseLinux, FileOps): def __init__(self, console, config): super().__init__(console, config) def r...
52a90ba42f4a7d281e8518e66f431cefd00b7f3c
e2b9b562d588fb295700aefef02e6274b7213a00
/include/GHC/Classes.spec
4031995e0624ef369a1f3181ca9b6b2efc2fa6de
[ "MIT" ]
permissive
pbougou/liquidhaskell
4b8fd7a213829790cab545093b27a46da6a67df3
ad7f0cf5b86cb62fa855f3392bfa34f65225c4ed
refs/heads/develop
2021-06-23T22:32:15.201211
2020-09-29T13:13:18
2020-09-29T13:13:18
237,412,197
0
0
NOASSERTION
2020-10-05T09:51:44
2020-01-31T10:58:06
Haskell
UTF-8
Python
false
false
1,310
spec
Classes.spec
module spec GHC.Classes where import GHC.Types not :: x:GHC.Types.Bool -> {v:GHC.Types.Bool | ((v) <=> ~(x))} (&&) :: x:GHC.Types.Bool -> y:GHC.Types.Bool -> {v:GHC.Types.Bool | ((v) <=> ((x) && (y)))} (||) :: x:GHC.Types.Bool -> y:GHC.Types.Bool -> {v:GHC.Types.Bool | ((v) <=> ((x) || (y)))...
d5c7a1fee65f80af5b8245e20058d7377ae4e808
f99f30752e9bb9e023b37c731f64fb2155ac3daf
/06/argument.py
f562dd9d80446c3c899c8b92958b8fe4bc7b8b18
[]
no_license
chu83/python-basics
148ff6977f5ca04775951d90ed1f5f763c51a9ff
19fe0937842c668f604876be0aeb0962a2630dd2
refs/heads/master
2023-01-19T01:29:25.203738
2020-11-29T18:34:33
2020-11-29T18:34:33
311,258,549
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
argument.py
# 기본 인수(default parameter) def incr(a, step=1): return a+ step a = incr(10, 1) print(a) a = incr(10, 5) print(a) print('=========== 키워드 인수값(keyword parameter ===========') def area(width, height): return width * height print(area(10, 10)) print(area(width =10, height = 20)) print(area(height = 20, width=1...
a47c07224478f38d01cff080c0b7b71fd3c749e5
4dbaa3ed6a4acba224b3a467dc852e761c672584
/core.py
1d4b1df7c5716f96ed19e72afe5ef2902ac1ead6
[]
no_license
wgryglas/reDocWriter
b8ffed468f7e07ee90b5ef9f8b200c572f12437b
a660f6864528bc1a8460ff5b22a37360d36e868e
refs/heads/master
2020-08-04T07:49:03.178398
2019-12-14T16:30:22
2019-12-14T16:30:22
212,061,898
0
0
null
null
null
null
UTF-8
Python
false
false
10,143
py
core.py
import subprocess from errors import ErrorHandler from files import * from async_execution import start_process from pyqode.qt.QtCore import Signal, QObject class BaseWebsiteBuildEnvironment: rst_location = "content" theme_location = "theme" output_location = "output" server_port = "8000" def __...
c4748b58187fedd8d4d5f12bbffdadb5f85aa490
f9789d41a2c3bf9920e8f512e4bb6ba39bde3e97
/practice-problem-2.py
2df0d8916a666852333758c48265be2b8c8219b3
[]
no_license
julienisbet/python-eod-practice
da0c64899c0abf0fce2ec740653ff89cd0b8b4e1
adf998cbe3fab549c5627af50d620eaa1d123531
refs/heads/main
2023-02-23T07:00:47.777246
2020-10-07T20:49:07
2020-10-07T20:49:07
302,150,906
1
0
null
2020-10-07T20:48:29
2020-10-07T20:20:17
Python
UTF-8
Python
false
false
722
py
practice-problem-2.py
# DICTIONARY # prices = [1.25, 0.75, 2, 4, 2.25, 1.10, 1.10] toppings = ['pepperoni', 'mushrooms', 'pineapple', 'sausage', 'bell peppers', 'olives'] def formatted_price(price): return "$%.2f" % price ## Part 1 # Create a dictionary called topping_prices using zip that has the topping # name as a key and its floa...
623d9bfd5810686c3bbb459c41e6444a7e2d9a84
63b88354aa33c50e13b7be3b51e4c4cf41acf0ec
/mnistexample.py
229fff8fc70dd4e5eb158f929bd932e8c3f81bde
[]
no_license
mburaksayici/Practical-CNN-Udemy
b18a074ecece85377437b927d94708f7fea57072
89bb52a6db60ae686c6ab8c3b9eb77e6e81a48b0
refs/heads/master
2022-10-24T05:05:33.155996
2022-10-14T23:40:12
2022-10-14T23:40:12
158,319,124
4
3
null
null
null
null
UTF-8
Python
false
false
2,153
py
mnistexample.py
import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras import backend as K from keras.utils.vis_utils import plot_model import matplotlib.pyplot as plt import os os.environ['TF_CPP_MIN_...
0465a95027324ac3882cb881f9168e4bd0e61de6
98e3d9c9214882d6e97c8ca9f7f66d7cacb2e096
/OpenCv/ReadRGB.py
c36881e24bb654bff389524cde494e2c485ae36c
[]
no_license
Rinisha-Burriwar/Python
88877d6ab2fa871ad96b1a07fc4790388e214e6e
7435921642b4148d8b0a237a6262a33603df7332
refs/heads/master
2020-03-27T19:33:48.039002
2018-09-01T16:26:49
2018-09-01T16:26:49
109,276,462
0
1
null
null
null
null
UTF-8
Python
false
false
510
py
ReadRGB.py
import os import cv2 folderName = os.path.dirname(os.path.realpath(__file__)) image = cv2.imread(folderName + os.path.sep + 'nature.jpeg') imgHeight , imgWidth , channel = image.shape print("Image height = {} , Image width = {} , channel = {}".format(imgHeight,imgWidth,channel) ) blue , green , red = cv2.split(ima...
6fb598192fbe0d4998d0ac07b87b3bb496c5450f
3d3d25cc0a582b67192f884c9c54700b06cb3517
/datapoint.py
e6732cd37719d93f8e3118cf2fa41d01bd84d888
[]
no_license
teddyknox/CS311-K-Means
7cbec8e3d6bd81c05243432bdf9fbfe750e41008
91bcb195eac2b4bc6782629f527e26a52d123409
refs/heads/master
2021-01-22T02:42:54.228247
2013-04-12T20:49:07
2013-04-12T20:49:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,305
py
datapoint.py
""" Representation for a data point. Two classes: - DataPoint: a generic data Representation - WordDataPoint: an extension of DataPoint to handle "documents" data points Author: David Kauchak Date: April, 2013 """ import math import re import random class DataPoint: """ Sparse representation of a data point. ...
966aa597e6d9986f95a707a14f4c0fcd688b6d50
7fe5cb99188c7270f726b1145fc356fd2922df9d
/geoapi/src/main/python/opengis/metadata/identification.py
a4afa5245ddc5d694ff63e6d73a32919a46b7c5a
[ "Apache-2.0" ]
permissive
opengeospatial/geoapi
eedcf2d3259284fc614f7fa132c77fcef67d7ecc
7a0872373e4ad70039b5ec9be2f086081fb5c746
refs/heads/master
2023-08-17T23:37:23.874101
2023-08-10T20:02:27
2023-08-10T20:02:27
27,879,839
111
33
NOASSERTION
2021-06-28T08:08:29
2014-12-11T16:13:54
Java
UTF-8
Python
false
false
12,484
py
identification.py
# # GeoAPI - Programming interfaces for OGC/ISO standards # Copyright © 2018-2023 Open Geospatial Consortium, Inc. # http://www.geoapi.org # from abc import ABC, abstractmethod from typing import Sequence from enum import Enum class AssociationTypeCode(Enum): CROSS_REFERENCE = "crossReference" LARG...
74e7eaf085d5a6b07556946b7d9b9daddf5921f1
cf675ad885590cf3420673c66c30a7d72def2099
/python_basico/multiplicador.py
18769b19aeef80610c3814ff6ec4a6f3b68269b6
[]
no_license
joseluisquisan/hello-world
58a7ca9041ee75938a4265329e5303109df1d8e2
243767686c0253f2bfe43423d3acea0782d3bf1c
refs/heads/main
2022-12-10T05:39:17.977055
2021-06-11T22:54:55
2021-06-11T22:54:55
219,223,330
0
0
null
2022-12-08T08:30:31
2019-11-02T22:45:04
Python
UTF-8
Python
false
false
154
py
multiplicador.py
def multiply(a, b): c = a * b return c numero_1 = 2 numero_2 = 4 resultado = multiply(numero_1, numero_2) print('El resultado es ' + str(resultado))
915528e717005291ddc6a4cec6bdb3e9fd10a0b9
c4a0a3ccdf27c937d0f70bf5b26677a3a1e43c7e
/cinder/tests/unit/volume/drivers/ibm/test_ds8k_proxy.py
0964a6df1cebcc489c36fa44371b306ce8c98df6
[ "Apache-2.0" ]
permissive
LINBIT/openstack-cinder
2538e1769ae95bc166ac7743f5ddbff14a594022
04a5d6b8c28271f6aefe2bbae6a1e16c1c235835
refs/heads/linstor/master
2023-08-30T20:58:08.103197
2023-08-28T10:07:56
2023-08-28T11:04:35
103,643,517
9
6
Apache-2.0
2021-03-04T17:12:59
2017-09-15T10:07:48
Python
UTF-8
Python
false
false
203,337
py
test_ds8k_proxy.py
# Copyright (c) 2016 IBM Corporation # 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 req...
2f8fd2692e9d34cfd5f73f944fe85e7dee17af6f
b0bef6411df42e89d9c3ac1800c8558a984b1d05
/NDP_TSP_Policy/NDP_Policy_20/FT_Eval.py
4ca60c3cc377b8252936a7cfd2a39a03616e7fec
[ "MIT" ]
permissive
oujieww/DNN-DP
4c9dbdbdfc75fd6d730bce1f35304224b65a2fb0
41864a6df870391aa83c218db9dbad3465aa20e8
refs/heads/master
2023-03-15T19:27:57.652244
2020-07-14T02:31:57
2020-07-14T02:31:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,628
py
FT_Eval.py
import os import time import argparse import importlib import scipy.io import numpy as np from pdb import set_trace as bp from utils import * import torch import torch.nn as nn Train_Batch_size = 100 Batch_size = 10000 Test_num = 10000 learning_rate = 0.0001 batch_per_epoch = int(1000) def Get_del_index_from_n(num...
d2641138196f0cecce9d52fc7f6de5d89a1294f2
5451301faf5ead33af239418c3515c76354842dd
/apps/forms/user_forms.py
aaf0565c09edc03c0ccf26ac12e06305c5392df7
[]
no_license
yanzhu-prog/blog-plus
fb7bc4647271fb14ea3862feb224fa1a0b80459b
ba0d15dc9cba9e5db8f1178bacc36d967a0868ea
refs/heads/master
2022-12-17T09:07:18.612759
2019-09-28T01:07:36
2019-09-28T01:07:36
211,424,619
1
0
null
2022-11-22T04:16:31
2019-09-28T01:06:39
Python
UTF-8
Python
false
false
1,444
py
user_forms.py
from flask_wtf import FlaskForm from flask_wtf.file import FileRequired, FileAllowed from wtforms import StringField, PasswordField, Form, DateTimeField, FileField, IntegerField from wtforms.validators import Length, EqualTo class RegisterForm(Form): username = StringField(label='用户名', ...
98990ecbcc8c386809d5fd4fdd619a47553ac27b
54dc4eb7d4809f902ed8e4aa5a230578c5ab91e7
/mysocialmedia/api/posts/serializers.py
7c7fd890c606bf936b90d287f71d310437e5c3f2
[]
no_license
lufepama/sinparo-django-react
5c901d717fe4460753b49aff55a5b0dcf0961907
ff7042a69194c54421370ad1a4b89933e7256b4c
refs/heads/main
2023-03-20T23:26:28.895045
2021-03-08T23:34:44
2021-03-08T23:34:44
345,486,134
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
serializers.py
from rest_framework import serializers from .models import UserPost class UserPostSerializer(serializers.ModelSerializer): class Meta: model = UserPost fields = '__all__'
a93ddcd21db39d19a3ad360ee66dea0c6bd991d7
be1c44a5da4ca17dcc3a2c8e35d8eac359a7824a
/p2/ClsModel/‫‪NaiveBayes‬‬/src/main.py
12e8684b5215490f5e9c3204ef6243c7ea22757e
[]
no_license
zahrabashir98/Detect-Your-Political-Vision-By-Your-Texts
0412e88b766da85b0c74350e805762e6869ec099
1050c6d001fa1f92ea26a3271e9820c4bbb2a05f
refs/heads/master
2020-06-05T06:51:33.697298
2019-10-06T16:44:32
2019-10-06T16:44:32
188,612,287
0
0
null
null
null
null
UTF-8
Python
false
false
6,356
py
main.py
import math # with open("../../ClsData/train.txt") as train: # with open("test/train.txt") as train: # string = train.read().split("\n") # train.close() inp = input ("You wnat to run program for my data or your TestCase? 1/2 \n") if inp == "1": label1 = "Imam" label2 = "Shah" write_name = "Test" ...
cdbd659c282242e17a0075faf77d6d1460b36247
4620f6bed85584cf6641f8f2289445d42176ed6b
/horse/boardcut.py
d5b49e87b4695f032b7af95aa579058c9ceae933
[]
no_license
frol2103/FreeCadProjects
ad4bab28bcfd444f8cf46a5322bdef1c17704728
272bd1d43d76f67c3d7694dae277b1f10e3e7255
refs/heads/master
2021-05-16T02:59:54.365613
2017-05-22T21:59:54
2017-05-22T21:59:54
3,668,411
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
boardcut.py
from side import Side from middlepart import MiddlePart import util import Part, FreeCAD, math from FreeCAD import Base mp = MiddlePart() def makeMPs(reverse=False): fh = mp.feetHolder() lh = mp.legHolder() s = mp.seat() b = mp.back() parts = [fh,lh,s,b] fh.translate(Base.Vector(10)) lh.tr...
18298a10ac041733ee002e6e2c7965133382ac9d
60ef615983cc52363f22699441f7f0ac837953b5
/5 - Problemas com Repetição (For + While)/Fatorial.py
70088027253c38c2cf0ab1cf9b351cbefd8324d3
[]
no_license
aryelson1/Atividades-Python
90fbe72014df6a2674d124a673a205590251647e
49e0fd453227215ebadfa8c27c0af1c051135bb8
refs/heads/main
2023-08-16T04:15:12.215811
2021-10-25T23:46:09
2021-10-25T23:46:09
353,067,543
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
Fatorial.py
while True : F = 1 No = int (input()) if No == -1: break while No > 1: F = F * No No = No - 1 print (F)
f8a753ae489ded2528210d5b988be6f855d44439
f8cc0048628feab93589af78f6a43fe5b6d1aac7
/src/test_squared_gradient_magnitude_gaussian.py
80e9bfbc345c305e3ed66b0ea9da91d77ffb78cc
[]
no_license
HelenaBach/bachelor
fd639a9d37baf49c8bcb8702ee253fb14b4c2ce5
aa23b77562fb6d3295e04945f71b68f533dfcbba
refs/heads/master
2021-01-21T04:33:18.648554
2016-06-19T15:27:00
2016-06-19T15:27:00
55,350,531
0
0
null
null
null
null
UTF-8
Python
false
false
999
py
test_squared_gradient_magnitude_gaussian.py
import cv2 import numpy as np import matplotlib.pyplot as plt from skimage.filters import gaussian image = cv2.imread('../data/train/27.jpg', 0) old_image = np.copy(image) # mild smoothing of the image to reduce noise gaussian(image, sigma=0.4) sobelx = cv2.Sobel(image,cv2.CV_64F,1,0,ksize=5) sobely = cv2.Sobel(ima...
22c1465b0b6cb8d5e945941b938087312acb934d
6a4a457fafbcbdb14ee8735d0eaea062b75bdfa3
/Data Structures/Linked Lists/02-01-remove-duplicates-from-linked-list.py
4981711ad3f3a2d6fe0d47758117b142b2d15faa
[]
no_license
shash95/datastructures-and-algorithms
c7e8c35fb5b1b73b4c3fb06c9608c721574aed4b
e791220e67752dbf5860b74358eaeb4b29fa155c
refs/heads/master
2023-01-22T22:17:44.717955
2020-10-03T18:46:24
2020-10-03T18:46:24
296,938,304
0
0
null
2020-09-26T20:16:01
2020-09-19T19:31:49
null
UTF-8
Python
false
false
2,630
py
02-01-remove-duplicates-from-linked-list.py
######################################################################################################################## # Remove the duplicates from linked list ######################################################################################################################## class Node: def __init__(...
5e7551682afa73fe044d77a179efc8d594327ee8
47eebbb9aabb67ed11a677a10c935755b9b71e7a
/Leetcode/3.py
05e628629584ff3d80023f5209c4aacd4ba28f25
[]
no_license
afsalcodehack/leetcode
5feb1f3fd70f2843abf327570a43864a03df64de
d42e5d11256b5f30632d54a327f80285dbc449da
refs/heads/master
2021-07-13T09:45:23.612754
2020-11-04T19:13:13
2020-11-04T19:13:13
207,119,282
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
3.py
dict = {} dict[1] = 3 dict[1] = dict[1] + 1 print(dict)
8160f208b26f87698cf3d6a8b9940378216f2d73
a5b187c5c82b76399913c0cf7795d04a157beec2
/Tarea5.py
94137d73bca3ae5b9da09cb81d709e4ba33b8d7b
[]
no_license
ismaelpessa/T5
b4fa262717181a92901c16a5e253601f61fa5234
5405d43c0f367fe765575a653e224aea46388890
refs/heads/master
2021-01-20T19:13:19.964091
2016-06-15T00:10:32
2016-06-15T00:10:32
61,164,464
0
0
null
null
null
null
UTF-8
Python
false
false
26,698
py
Tarea5.py
import numpy as np import math import matplotlib.pyplot as plt import pyfits import random import glob from matplotlib.figure import Figure import scipy from sklearn.neighbors import KNeighborsClassifier from sklearn.naive_bayes import GaussianNB def columnas(filee,x,indicador): ## Si indicador es 1, columna es...
4937877a4ccacdd268cbbc9e56c91bb7468cf014
f257283aa53e40fd696f2d59eabac04c90cabd7e
/Operand.py
c1dfd6397f29832c42a30f937a74b214b594db81
[]
no_license
lauraashj/PythonInterpreter
654cf3f5a8ef7044088418729f98e2d9f8767efd
63f653dfc2300994d5eb648d2587b1b215f3f797
refs/heads/master
2021-01-20T01:03:30.102518
2015-09-09T19:59:06
2015-09-09T19:59:06
42,201,405
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
Operand.py
''' Created on Nov 13, 2012 @author: Laura ''' import abc class Operands(object): ''' classdocs ''' @abc.abstractmethod def getValue(self): return
58098226164aabc06a94b2cd5221b0ae71248a8f
a0b94d5c096ff0a75e7133318d18eeaa28928a1c
/爬虫/豆瓣分类榜单.py
ab792b889c16bd14332a95bc771a54d746e7a5bb
[]
no_license
zhoushujian001/homework
cf8448fc027e154592f7b9d672f644e668b146ac
55be6e18f746b25977d94024933890229c39fe57
refs/heads/master
2020-03-27T10:47:15.457753
2018-11-10T12:49:23
2018-11-10T12:49:23
146,444,975
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
豆瓣分类榜单.py
from urllib import request,parse import json head = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36' } a = int(input('请输入要查询的起始位置:'))+1 b = input('请输入要查询的电影个数:') c = input('请输入要查询的电影范围(如评分为100%-90%以内,输入100:90):') url='https://mov...
71c89bc26285016b168d154fb731d3673349bec9
c31f1c509f30dd9ac73c19d4cca7fd0c1b870b17
/ultros_site/route_manager.py
ca1781069f3ca8335c3c17f49c7a89a1400941e2
[ "MIT", "Artistic-2.0" ]
permissive
GlowstoneMC/Site
20391cbcadb90aa311764250c8eeaacef88e9d94
6d65463bfa75247e302943363b5927a34178712d
refs/heads/master
2021-05-18T09:15:28.843798
2021-01-16T16:57:57
2021-01-16T16:57:57
94,638,103
2
3
NOASSERTION
2020-01-22T08:22:20
2017-06-17T17:11:15
HTML
UTF-8
Python
false
false
3,550
py
route_manager.py
# coding=utf-8 import os import inspect import importlib import logging import falcon from pprint import pformat from mako.template import Template from mako.lookup import TemplateLookup from mimetypes import guess_type from ultros_site.base_route import BaseRoute from ultros_site.base_sink import BaseSink from u...
cf5fe83a83978ba1a47e1a9c3d6cfcf588f2db51
4f0d8bfb92b34ed86c8bc91e37afc29cb472d7ed
/bib2web/__main__.py
dc14552722fbfc6ca94239f37be8534fc5fcc835
[ "MIT" ]
permissive
Juvawa/bib2web
6d47e7747ad017eb62783756bb39bb60ee5423f0
8d6c2244e46eefee1a519f8b3b656a143aa8bd9e
refs/heads/master
2016-09-02T06:18:58.035345
2015-06-18T12:26:46
2015-06-18T12:26:46
37,621,342
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
__main__.py
from main import main import sys if __name__ == '__main__': #print sys.argv[1] #start = time() main() #end = time() #print end-start
673d3f6a5c43fa5c1edffb493b929678159a43af
ccbd29e69f22d6140518c699d4ac0e52e6e82402
/primary_algorithm/array/maxProfit.py
247d4998811f72eb89ac00267cbabdcaf1ecf089
[]
no_license
Lwq1997/leetcode-python
c78e4e7715f961eef0e66ff829a39b0709c4935a
74df49d16a41c18b95e56f3b54aaeb57ced0c8e2
refs/heads/master
2020-05-07T14:36:58.830426
2019-09-17T08:28:25
2019-09-17T08:28:25
180,601,746
0
0
null
null
null
null
UTF-8
Python
false
false
1,726
py
maxProfit.py
# -*- coding: utf-8 -*- # @Time : 2019/4/10 23:02 # @Author : Lwq # @File : maxProfit.py # @Software: PyCharm """ 假设有一个数组,它的第i个元素是一支给定的股票在第i天的价格。 如果你最多只允许完成一次交易(例如,一次买卖股票),设计一个算法来找出最大利润。 输入: [7,1,5,3,6,4] 输出: 5 解释: 在第 2 天(股票价格 = 1)的时候买入,在第 5 天(股票价格 = 6)的时候卖出,最大利润 = 6-1 = 5 。 注意利润不能是 7-1 = 6, 因为卖出价格需要大于买入...
5cac66b8c2ea4c6d2f40d9cc966cfd410cda0a31
47edbb524075e43a011050f108fb675b2d6e369d
/src/calculate_TRMM_params.py
3b26b0bb6a2fedf102700e66448c20804c5912b4
[]
no_license
xue-feng/TRMM
42e32f4e1570d1d629a1cc822524acbf400f46e1
e846a45f76d35993bcf4e41acf7309fbc262b393
refs/heads/master
2020-12-30T09:27:06.141144
2017-08-15T20:13:13
2017-08-15T20:13:13
100,411,604
0
0
null
null
null
null
UTF-8
Python
false
false
2,140
py
calculate_TRMM_params.py
import netCDF4 import numpy as np import cPickle as pickle import multiprocessing as mp def get_precip_series(ilong, ilat, j): precip = [] for yr in yrs: for d in range(1,ds[j]+1): date_stamp = str(yr) + ms[j] + str(d).zfill(2) nc_file = '../TRMM_data/3B42_Daily.'+date_stamp+'....
01423901d6da1a20b8763799789132fb107926f0
346d40f443e8f41178163ac1c4fa557dd582844d
/ic/std/dlg/wait_box.py
36ef1682603b7c2fd37decbce9c20250ef2eb975
[]
no_license
XHermitOne/icscanner
5a21dfe93e3477ac99f4e6b4fbdc624ae01eaf4b
0be4370cd21b6aa9b0a4722d546f75de0c1cad25
refs/heads/master
2021-01-23T10:57:59.796905
2019-08-30T02:31:17
2019-08-30T02:31:17
93,115,605
5
2
null
null
null
null
UTF-8
Python
false
false
5,394
py
wait_box.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Модуль диалоговых функций пользователя. """ import os import os.path import wx import wx.animate import thread import time __version__ = (0, 1, 1, 2) # Задержка между кадрами FRAME_DELAY = 0.3 ic_wait_process_dlg = None def wait_func(parent, message, ...
ec57aa123322b1cbd7965a251fa9e1f8e8b97545
4cdd5813d20f40d525b4d418df2788fa72a394bf
/Leetcode/medium/spiral-matrix.py
c93d86c4e5e9d8d91114d4a4f18ab3b713acd8be
[ "MIT" ]
permissive
das-jishu/data-structures-basics-leetcode
9baa78b49cfc1b0f5c48ef961b85b4fa9ffaf0dd
9f877ba8ed1968c21c39ebeae611ba3c448a083a
refs/heads/master
2023-08-21T06:54:57.380306
2021-10-01T02:59:51
2021-10-01T02:59:51
298,940,500
23
21
MIT
2021-10-01T02:59:52
2020-09-27T02:52:50
Python
UTF-8
Python
false
false
1,126
py
spiral-matrix.py
""" # SPIRAL MATRIX Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Input: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] Output: [1,2,3,6,9,8,7,4,5] Example 2: Input: [ [1, 2, 3, 4], [5, 6, 7, 8], [9,10,11,12] ] Output: [1,2,3,4,8,12,11,10,9...
11177aaf6ccb453e143fc5d1a2daf612c88ced24
258bc213422891dea74c86c0b7569cbb3b9fac12
/application/__init__.py
f72b531809e2f9f018868c462bb8414057614eb8
[]
no_license
hayatoise/sample-flask-sqlalchemy
60cdd82586c434b7891f1289b92cb05e19e1ed1a
d323f078f7a148b7a479b2900939db6ea065d220
refs/heads/master
2022-10-11T19:48:08.054242
2019-10-16T17:40:31
2019-10-16T17:40:31
215,608,245
0
0
null
2022-09-16T18:14:59
2019-10-16T17:41:15
Python
UTF-8
Python
false
false
282
py
__init__.py
from flask import Flask from application.database import initialize_database from application.models import User def create_app(): app = Flask(__name__) app.config.from_object('application.config.Config') initialize_database(app) return app app = create_app()