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
26d549f85782238ba7487a01fd9b8e7ce07f6600
2aea6400898c8494ff616cfce9ce9afc67b57479
/TrackDevBaseHandler.py
39e37487c6c9143885e518f05743ffe6745b5525
[ "Apache-2.0" ]
permissive
hiramegl/AaMakro5oul
0b961bb330e01d0359209557c2b942ab1abf519f
fda92a4da1182965eea8bb4c508afdf43e2a8704
refs/heads/master
2020-04-30T04:15:12.791104
2019-05-26T09:44:44
2019-05-26T09:44:44
176,606,859
3
0
null
null
null
null
UTF-8
Python
false
false
41,772
py
TrackDevBaseHandler.py
# ****************************************************************************** # This file is part of the AaMakro5oul project # (An OSC/MIDI controller for Ableton Live with DJ features) # # Full project source: https://github.com/hiramegl/AaMakro5oul # # License : Apache License 2.0 # Full license: https://githu...
0e248f2b2cd35a856c0501be8dd2a3841f120fe4
8b2e948267717439dea392246822645f0715ee9c
/src/config.py
e6493c10b154d446e1a4ae128118fcc6733eba56
[]
no_license
AthosPap/DB-Publishing-House
8f65be775526598c0aecbb0d73f5c8cc864e3fe3
52e7f426690b3279b9eac67763acdd21fc7d1bfd
refs/heads/main
2023-02-16T13:45:39.972453
2021-01-14T13:39:50
2021-01-14T13:39:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
config.py
global username, password, host, dbname, languages,groupA, groupB username = 'db20_up1053718' password = 'up1053718' host = '150.140.186.221' dbname = 'project_db20_up1053718' # username = 'root' # password = '$QLPassword1' # host = 'localhost' # dbname = 'ekdotikos_iqos' languages = ["Greek","English","...
e24c66cfe3e68e57b3841b8234c09490e9f3ef6b
b6387119e8484e51e88f2f13f6ac79470db08c2a
/MediaMarkt OutletTVs.py
2f4ec8e0a09e55142bba43bb1984ea744f1fd9d8
[]
no_license
Omaraqlan/DatabricksTV
17bbaeca6fbd558ef16e2d85eb2e8a5bad3dfe26
09b37683c2148e80f4d1d7a7bc9fc59fc5662867
refs/heads/main
2023-03-04T08:20:13.988569
2021-02-12T09:02:40
2021-02-12T09:02:40
338,265,267
0
0
null
null
null
null
UTF-8
Python
false
false
1,948
py
MediaMarkt OutletTVs.py
# Databricks notebook source storage_account_name = "pythonoqmm" storage_account_access_key = "stgAb+W2UIHuXV3elbtAKRrubLsweoYvo4DZ6Mxc3h6/YtT+fdlPtPpfw0C8vKbyQc41FogKek+POaAuo2iCYw==" # COMMAND ---------- file_location = "wasbs://pythonmm@pythonoqmm.blob.core.windows.net/OutletTv.csv" detfile_location = "wasbs://pyt...
be51c61c7ca911f67682e62e7b158ed02915d96e
7b83c3614048266946521c29bea1e558b86e1e3e
/script/util.py
0f66388872b3962a01aa66ec43bd81450bed1fe1
[]
no_license
BowenXiao/Social_Camera_FT_Test_Uiautomator
205af8b3ff58351cfc61eadd1dc0cd1b4b9b7994
d713a8db5755374d3e219ca326faa05ed3d6c914
refs/heads/master
2021-07-05T19:01:40.922073
2014-06-20T15:35:58
2014-06-20T15:35:58
18,875,575
0
0
null
2021-06-01T21:59:08
2014-04-17T11:06:59
Python
UTF-8
Python
false
false
13,879
py
util.py
#!/usr/bin/python # coding:utf-8 from uiautomatorplug.android import device as d import commands import re import subprocess import os import string import time import sys ################################################################################################################## ADB = 'adb' ADB_S...
9b522c78c738e1234af71b18512ab0aae558b88c
e1dad47738ac8a1e5777d8ff5157c06fe2300638
/python/p008.py
2e607fa7c6fe1a61501af0b50baeb0c23a08d2b1
[]
no_license
dliggat/project_euler
b1ff0b6dee8e46a2be0df62f74b0c1d1d7c07592
1a307403925ab5d4f1f7e9e195dac8c80c2cd8eb
refs/heads/master
2021-01-13T04:33:45.871974
2012-01-27T00:11:05
2012-01-27T00:11:05
2,493,590
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
p008.py
#!/usr/bin/python def main(): """Computes the greatest product of 5 consecutive integers.""" val = """ 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 668...
0a31713b410cc229f5de35d70f17bc80808273c6
db0b537705b0671f527a8d406f13fb1de5b49616
/data/test_dataset/Python/greater_than.py
81758230a07a9ca797cfefd975e9b48860302b77
[]
no_license
rakeshamireddy/Automatic-Code-Translation
7e43d9232b1af2f9e1c62e76c1720f9469bdd842
9c4d0b040ee2eaccdcec8d8321f262d748c5c4b0
refs/heads/master
2023-04-22T23:29:55.205930
2021-05-15T03:06:03
2021-05-15T03:06:03
299,511,652
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
greater_than.py
def greater_than(): a = 10 b = 2 return True if a > b else False
79f0dfcfab01e8f3b68fa976d3b836f9b1136168
65b76ea9c7fe007d1237df7ee2c2df5a925f5ed8
/rotas/demo_api.py
46acce8870116867504db24281f877ba75848f25
[]
no_license
LNogueira93/api_mockada
84a468dde650635e6106e1c7e4d43cf904ac6f27
9830bd7a615ea1b5e0867fe4469801e7476f83e3
refs/heads/master
2022-12-21T19:41:06.557104
2020-09-27T05:19:08
2020-09-27T05:19:08
298,957,352
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
demo_api.py
from flask import Blueprint, jsonify, request, Flask, render_template from flask_cors import CORS from services.demo_services import \ listar as service_listar app = Flask(__name__) CORS(app,resources = {r"/*": {"origins": "*", 'Access-Control-Allow-Origin': '*'}}) demo_app = Blueprint('demo_app', __nam...
f802e22580f33f422bf5c184fbc79bbaf547f2a6
b117bd913891735677ceb64ced2687ee83f88134
/jobs/jobs/items.py
75f0ee2447d8fd795579456dfcaa5dfb4349ba59
[ "Apache-2.0" ]
permissive
py-wuhao/spider
127aa9b8a0161496b78d74404ab2a9bac5165109
f78fcfe6e1b0d9caa36fa71467a1eb0ff11f28fe
refs/heads/master
2020-05-28T02:06:29.416931
2019-06-01T13:43:14
2019-06-01T13:44:08
188,849,516
0
0
null
null
null
null
UTF-8
Python
false
false
948
py
items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.loader import ItemLoader from scrapy.loader.processors import TakeFirst, MapCompose, Join import re class JobsItemLoader(ItemLoader): d...
04042fad1c36e1db439713ddc014a87dc6c1eddf
07e4be710990cb2e823cd05f42c4c41070788414
/kafka_consumer.py
dc29c6622053e6225c113820c3979a79e5d72f9e
[]
no_license
PTLG/python_systemfssecurity
33d620df4ac2899c9acb9e918754ffdf77fc4bc4
cb7e7b3cbe45ae57a14ba63867b85a975864dd72
refs/heads/master
2021-09-07T09:00:45.252259
2018-02-20T18:56:22
2018-02-20T18:56:22
117,799,878
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
kafka_consumer.py
from kafka import KafkaConsumer consumer = KafkaConsumer(bootstrap_servers="localhost:9092") consumer.subscribe(['informations_about_device']) #the topic name of subscribed data is very, VERY important for streamRecords in consumer: print(streamRecords[6]) """kafka producer could read some data generated by ...
9115b714bae29db9a700f728b5ecb10735cfb679
50aba603b931adc751fdfff3bd3876f421a832cd
/Problems/easy/Implementation/beautifull_days_movie.py
b85344ce55d5edebf34f795888b50c3a12d8ec60
[]
no_license
MasterKali06/Hackerrank
83b890054d5abd833780f5460bd68a7c790eed9f
76531e1fc554b3db994a0e3c1d68496b09ec50fa
refs/heads/main
2023-02-01T21:49:41.947658
2020-12-17T16:51:19
2020-12-17T16:51:19
320,816,218
2
0
null
null
null
null
UTF-8
Python
false
false
354
py
beautifull_days_movie.py
''' https://www.hackerrank.com/challenges/beautiful-days-at-the-movies/problem ''' def beautifulDays(i, j, k): day_count = 0 for day in range(i,j+1): reverse_day = int(str(day)[::-1]) x = abs(day - reverse_day) if x % k == 0: day_count += 1 day += 1 print(day...
0ab1e086a21a12bd066c22e0b91b0c92749a1d0a
793e41c7a15c873ee449ced530cbf839dd3356b3
/month01/day05/demo04.py
59f4de2bd7de61f938a6cfc7b453d24bc8ac5a3b
[]
no_license
guhaigg/python
684a3667fef6abcd4ab2617228e9b2786131f4b1
9346a02a8788b6cd07fa3e947809aab7c89570dc
refs/heads/main
2023-08-06T16:46:26.525425
2021-09-18T01:11:23
2021-09-18T02:17:48
407,390,972
1
0
null
null
null
null
UTF-8
Python
false
false
985
py
demo04.py
""" 列表list: """ # 3. 定位 # -- 索引 # -- 切片 list_name = ["陈志斌", "张庭瑜", "周天奇"] # 读取 print(list_name[0]) # 通过切片读取数据时:会创建新容器,拷贝旧数据 print(list_name[:2]) # 修改 list_name[0] = "陈陈" # 通过切片修改数据时:依次将右侧可迭代对象元素存入左侧 list_name[-2:] = ["小张", "小周"] # list_name[-2:] = [] # list_name[1:1] = ["小张","小周"] # list_name[-2:] = "悟空" # list_...
d9afeb1bbef7e9936c82ea659bea74ec89fbe2eb
f85ae819fc1e00151f4dd52cf5a4203202dc02bd
/Common.py
f4c379c14ea886b91b3afc15c74cde56c794815a
[]
no_license
rickkidmanautobots/python_auto
91547fb1a0696778dcb42281f6306c892906e8a8
309c299f32c7180df184c14c6d77d788ee9a79fd
refs/heads/master
2020-12-12T20:39:20.785878
2020-02-20T23:53:02
2020-02-20T23:53:02
234,224,100
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
Common.py
import requests def fib(n): if n <= 1: return n else: return fib(n-1) + fib(n-2) cards_api_url = 'https://deckofcardsapi.com/api/deck' def shuffledeck(): request = requests.get(cards_api_url + '/new/shuffle/', verify=False).json() return request def drawcard(deck): cards = re...
427a30f93705d48c190a21e49bec08777e9fb4f4
1ff19d6701d0c0cd2dd63862d50fed9d1acb0dda
/Hacker_Rank/python/strings/string_text_wrap.py
b4474343a1ded0b28160ea042069ab52b3710abb
[]
no_license
anujaraj10/hacker_rank
44d965a8b825e987107686f6eb8b8ae6a98d0636
5bf871dfb99e93ed86e8bf8839f5934a17c78462
refs/heads/master
2021-01-11T00:12:32.322527
2017-10-26T11:49:10
2017-10-26T11:49:10
70,578,652
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
string_text_wrap.py
#text wrap #You are given a string S and width w. #Your task is to wrap the string into a paragraph of width w. import textwrap S=raw_input('') w=raw_input('') if 0<len(S)<1000 and 0<int(w)<len(S): print textwrap.fill(S,int(w)) #The textwrap module provides two convenient functions: wrap() and fill(). #The fil...
0102e9011e77eea0d90d6f1f479a1ee3f6f55195
c5c5cef406407c41b570e136fd6de03386a470d0
/0x1C-makefiles/5-island_perimeter.py
766c504a89831832554743c95a7de22c723f46fb
[]
no_license
josecaro02/holbertonschool-low_level_programming
7cea4fca8b26d28fc5f85ecd18e3801fe98dcaa7
32a7d12205713df3fed3a6920e943d811a030a0e
refs/heads/master
2020-07-28T09:30:26.182587
2020-04-17T02:05:40
2020-04-17T02:05:40
209,380,581
1
1
null
null
null
null
UTF-8
Python
false
false
1,087
py
5-island_perimeter.py
#!/usr/bin/python3 """ Program that finds the perimeter of an island of ones in a grid """ def island_perimeter(grid): """ Island perimeter function that returns the perimeter """ if (not grid or len(grid) == 0): return (0) perimeter = 0 for i in range(len(grid)): for j in range(len(g...
a2d91cdb1d229827d242125f5cd449fb44b3526c
61e12917e0bd83cbb138f34f2c7f221399478930
/15ThreeSum/15ThreeSumBinarySearch.py
82c2681f6c02ae9972ff6bd58998c59312ee04bc
[]
no_license
dabslee/Leetcode
9fb924f4ba6866ec297b293aa9806636d5a509ff
0b3ef745e46f634628f9d94e72b2f3cdd287ec5f
refs/heads/master
2023-07-28T22:32:52.210920
2021-09-12T15:07:10
2021-09-12T15:07:10
401,146,356
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
15ThreeSumBinarySearch.py
# Complexity O(n^2 lg n) def binarySearch(dct, val): left = 0 right = len(dct) - 1 while right >= left: mid = (right + left) // 2 if dct[mid] > val: right = mid - 1 elif dct[mid] < val: left = mid + 1 else: return mid return -1 class ...
ecd76a15ca4d376e61bedebf43612c880ad895c6
e9b511ae4d23d069542bc19eea6219864a48f2c4
/python/0020_Valid_Parentheses.py
ec16df91986b8b0fe6d21b2900773b770ee1c7f2
[]
no_license
gakaki/myLeetCode
e6b8d9fcce41b1ed0102b987447f3d11305b7145
d2a9d9c195ade8eeec47358fa627d2f7d9d470b0
refs/heads/master
2023-01-04T20:27:26.445341
2020-10-23T14:08:25
2020-10-23T14:08:25
288,974,506
0
0
null
null
null
null
UTF-8
Python
false
false
1,953
py
0020_Valid_Parentheses.py
import unittest # https://leetcode-cn.com/problems/valid-parentheses/ # 20. 有效的括号 # 使用堆栈方法 # Time O(1)x n push stack pop stack o(1) # Space O(n) # # 给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。 # # 有效字符串需满足: # # 左括号必须用相同类型的右括号闭合。 # 左括号必须以正确的顺序闭合。 # 注意空字符串可被认为是有效字符串。 class Solution(object): def isValid(self, ...
28e08600450e8f337bb5cf21b028cce1ea5564db
9efca7748798b950ca67a173838cb278217e845e
/lab5.py
51668a633fd9ed4a7a802c47f46560b7ebe9a1e5
[]
no_license
michaelbeneamatobruno/BYU_BIO165_Introduction-to-Bioinformatics
cbd08c40c525f0891f2ab1aa5e460dbbbccaa55f
5ee9b5a70c43989684ec9a904d1ecbab60e43b04
refs/heads/master
2021-01-19T09:27:17.292119
2017-02-15T22:30:50
2017-02-15T22:30:50
82,112,416
1
0
null
null
null
null
UTF-8
Python
false
false
5,707
py
lab5.py
#DNA Analysis Toolbox ~ lab 5 #lets party import re import sys #Input- input will always be fasta file, always retrieved from the command line (i.e. use sys.argv) #Arguments that you need to code for # -g = GC% # -r = reverse compliment # -s = transcription # -t = translation # -c = counting nucletotides #---------...
cfc87e2e026bc88b7679c2d6a9f31fcb165c4fd9
adfc7a0c9db833dd998c330ad2342b5a79ed44b0
/proxy_spiders/mimvp/mimvp_proxy.py
61a8477bcf99d32a24ed0d50729ccc69bf161247
[]
no_license
mickelfeng/ProxyPool-1
938e852bf557c1b065679b090dd74dcc5c6907f4
d5dfc21f0656dada39e0870ced189c4d18fd7f47
refs/heads/master
2021-01-13T06:03:52.659214
2017-06-11T08:20:32
2017-06-11T08:20:32
95,078,486
3
1
null
2017-06-22T05:36:09
2017-06-22T05:36:09
null
UTF-8
Python
false
false
2,106
py
mimvp_proxy.py
import requests from bs4 import BeautifulSoup from PIL import Image import re from .recognize import CaptchaRecognize, convert_image import logging import time headers = { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en...
fdbf283d32f7cd9b3f5628200b24fc2eab94c6fc
e00be418462a215ce8010fa093dd3d605c43dcc2
/raspberryPi_source_code/FYP_py/camera-python-opencv-master/camera-opencv/04-knn_ocr/knn_random.py
e9c740f8fb984d28b07ea1850e5a5359f4117600
[ "Apache-2.0" ]
permissive
wAikAp/Intelligent-Energy-Management-System-for-Buildings-INB
9e75dfc58f3742d3eb5a62151163b44134dfb53d
ea6da21da83eb19a2f5c61f833b09337c80f497e
refs/heads/master
2023-03-23T13:23:09.517395
2022-04-06T16:40:06
2022-04-06T16:40:06
243,515,643
13
5
Apache-2.0
2023-03-03T23:28:59
2020-02-27T12:36:50
C#
UTF-8
Python
false
false
1,268
py
knn_random.py
#!/usr/bin/python # # knn_random.py # Visualize the KNN classification result with random data # # Author : sosorry # Date : 2017/01/12 # Origin : http://docs.opencv.org/2.4/modules/ml/doc/k_nearest_neighbors.html # Usage : python knn_random.py import cv2 import numpy as np import matplotlib.pyplot as plt # Featur...
17c4722bb0eadbbb1f14d8aca9600082062f95fa
c733e6b433914a8faba256c7853f5cf2cd39c62a
/Python/Leetcode Daily Practice/DP/Minimum Coin Change.py
5ef444b83dfcb049d33a45bd3350122fcca94d06
[]
no_license
YaqianQi/Algorithm-and-Data-Structure
3016bebcc1f1356b6e5f3c3e588f3d46c276a805
2e1751263f484709102f7f2caf18776a004c8230
refs/heads/master
2021-10-27T16:29:18.409235
2021-10-14T13:57:36
2021-10-14T13:57:36
178,946,803
1
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
Minimum Coin Change.py
def count_change_top_down(denominations, total): def dfs(idx, total): if total == 0: return 0 if idx >= len(denominations) or total < 0: return float("inf") if dp[idx][total] == -1: cnt1 = float("inf") if denominations[idx] <= total: ...
f61c265b1a48f287356f6b99812cbdd6e500a1c9
51ce07a419abe50f49e7bb6a6c036af291ea2ef5
/3.Algorithm/07. Tree/공통조상.py
5a85e05d1d2face44a97c9a2cde4a99bdc34857a
[]
no_license
salee1023/TIL
c902869e1359246b6dd926166f5ac9209af7b1aa
2905bd331e451673cbbe87a19e658510b4fd47da
refs/heads/master
2023-03-10T09:48:41.377704
2021-02-24T10:47:27
2021-02-24T10:47:27
341,129,838
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
공통조상.py
def size(pp): global cnt if pp: cnt += 1 size(tree[pp][0]) size(tree[pp][1]) def find(n1, n2): n1_a, n2_a = [], [] while tree[n1][2]: n1_a.append(tree[n1][2]) n1 = tree[n1][2] while tree[n2][2]: n2_a.append(tree[n2][2]) n2 = tree[n2][2] fo...
5a5606e5c50237325d5a26f2f2b3f97d79de1fac
133499d3d89dc1eb74de71e9593c26a6012f4982
/section7/7-3.py
7b19dd556697cdc77bcbdfc5747912589a9cb4ab
[]
no_license
wang55www/pythonStudy
4cf67a6c3106f627d21a80f1d2ac355ae03391bd
994ac1f945d753ec9f65a3d809814552d54656d9
refs/heads/master
2021-05-15T04:11:06.365961
2018-02-13T09:18:17
2018-02-13T09:18:17
119,946,111
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
7-3.py
# coding:utf-8 # 计算出文件的长度 import os if __name__ == "__main__": print os.stat("./test.txt")[6]
8854e594014513a058015379c47f2644e4b6b413
4c06c2f0ec1e0f0e4f01b0208ce5c6b81587198c
/preprocess.py
4b361dd5e4562cb328119dbb360843f2d61f773e
[]
no_license
GWSoT/Reinforcement_Learning_Atari
2da4f2c4c9a51a503271bf65c634a41c75802670
f1553cf6f5651642185f9337917f2e95504e7cae
refs/heads/master
2020-03-26T06:30:21.443434
2018-08-13T16:52:20
2018-08-13T16:52:20
144,608,463
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
preprocess.py
from PIL import Image import numpy as np import cv2 def rgb_to_gray(img): return cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) def resize(orig_img, new_width, new_height): return cv2.resize(orig_img, (new_width, new_height)) def get_initial_state(state, num_of_states, output_width, output_height)...
cc38ee2e03f7cfbea81b26a53f92e0d7723b2501
2ce46e0e82fca0c69228e56e38f33bbb198f9f04
/homework/homework_appium_pytest_siye/TestData/investment_testdata.py
227aa84245b5232f99ed170279a2c801624a9117
[]
no_license
seesun1/LemonClass
157ad65e0818bd76e4edafcc7e0889b89109d961
39fc70d467079ed8e9a229f03858160bf8d37926
refs/heads/master
2021-09-15T08:04:00.517038
2017-12-25T14:26:30
2017-12-25T14:26:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
investment_testdata.py
# -*- coding: UTF-8 -*- #!/usr/bin/env python # @Time : 2017/12/7 21:26 # @Author : SiYe # @PROJECT_NAME : LemonClass # @File : investment_testdata.py # @Software: PyCharm #------------------------------------------------------------------------------- #标名 bid_name = "123】【平】" #投资人 investor = "土小姐" #金额 amoun...
9ff374b112ee6c1c973b6516d5ea0baf8d59e07f
35a0b95f5a13f2cf3ae92d554a65fac00262b5db
/api_key_hash-example.py
73e1b341ba161200e283e81361a789d24812874e
[ "MIT" ]
permissive
chettiyar/SPARKZZZ
8463237480478c1f990edd5b41fa85912afec41d
b9ed22887210c977e3750c0511e8a290c2042b3f
refs/heads/master
2022-12-28T17:42:43.188297
2020-10-16T16:07:56
2020-10-16T16:07:56
298,184,122
1
0
MIT
2020-09-24T06:06:36
2020-09-24T06:06:35
null
UTF-8
Python
false
false
179
py
api_key_hash-example.py
# SPARKZZZ 2020 # get App id and App hash from My telegram.org # api id will be 5 digits # api hash will be 32 digits api id = 12345 api hash = "11223344556677889900AABBCCDDEEFF"
559b10b739a63006f6eac211e5142961273a217c
0e9b3eae54496f1e51d2176eba2a68293d8c87db
/Q10.py
21444bdf78e128495de5900ab7b54901abfdf647
[]
no_license
iamabdil/python_competition
e376656c940b5dc2e2b85754f35001f2e06bf6dd
7485c1be5e16438222a53c069acffc068f59a2aa
refs/heads/main
2023-04-21T19:51:34.017020
2021-05-16T17:07:27
2021-05-16T17:07:27
329,109,664
0
0
null
null
null
null
UTF-8
Python
false
false
1,726
py
Q10.py
''' Q10: Create a function called summary that gets a list of filenames as a parameter. The input files should contain a floating point number on each line of the file. Make your function read these numbers and then return a triple containing the sum, average, and standard deviation of these numbers for the file. http...
ac37b2690beac8b0e23728ac4fba86c21bb602e3
0dc3a85e0bc7534e4aaaa0038cac8c9469dab96e
/test/Real/Pack/BlockPack/gen-pack.py
892b5f070138f16e5f88ce1e0004f1b5ab9f21e5
[ "MIT" ]
permissive
dbunker/SABR
ccf7dfd89a1711f3a1fffe6dee42093a310affc3
556fd9d9e152c3067ea873e401d68d7656284808
refs/heads/master
2021-05-04T11:54:38.456096
2015-07-07T18:32:24
2015-07-07T18:45:12
2,114,860
12
3
null
2013-12-17T18:06:34
2011-07-27T19:48:12
C
UTF-8
Python
false
false
2,461
py
gen-pack.py
# this will write out the the TBL of the z bin packing problem # which is to fit long-z shaped pieces into a 5x5x5 cube # shape # O O # O O O # 25 peices print 'Start' start = """ Sym { 0 1 } Board{ 000 001 002 003 004; 010 011 012 013 014; 020 021 022 023 024; 030 031 032 033 034; 040 041 042 043 044; ...
d63df7e41ce47da49f6202663106cee720d5ac16
07d6ebf6777a455c03beee7764119beb8e1901ff
/nursery_app/views/CustomerViews.py
f234e0ef6f6967a217b8b118946491533b8302c7
[]
no_license
Mohammed-Rifad/NewPanchayath
6f45aca2bc1eb09579ed3c38d182454504189bc9
37ae94c311935f6a0146a432559da89d8afb2eeb
refs/heads/master
2023-08-14T05:31:31.064222
2021-10-12T13:38:42
2021-10-12T13:38:42
416,306,515
0
0
null
null
null
null
UTF-8
Python
false
false
2,598
py
CustomerViews.py
from django.http.response import HttpResponse from django.shortcuts import render,redirect from ..models import CustomerDetails, NurseryProduct,CartDetails from datetime import date, datetime,timedelta from ..services import AddToCart, getProductFeatures def CustomerHome(request): return render(request,'Customer/C...
4098f57d5421c6ba58b4b01bdfb2d5cc970196cb
65115c74a076cb876d00a9fcdfbf10c9bba5d790
/小论文代码/fenlei1.py
9e5c4a8f25b3b1c8dccd4ed5066762170af32ac8
[]
no_license
WInryR/GraduationProject
6364502609024d681597b37041afa49584328cf2
04e55b32993b7591815e30383d57d243d8334341
refs/heads/master
2020-05-16T23:15:01.996940
2019-04-25T06:03:29
2019-04-25T06:03:29
183,343,191
0
0
null
null
null
null
UTF-8
Python
false
false
1,542
py
fenlei1.py
# -*- coding: utf-8 -*- """ Created on Mon Apr 22 14:44:36 2019 @author: Winry """ import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib import font_manager from sklearn.ensemble.gradient_boosting import GradientBoostingClassifier from sklearn import metrics from sklearn.model_selecti...
8dc0ba3277967adad141fb65a8291fc937369592
b4fb80a3233d2d6f128be31d3e783c81ae63f5d7
/ditto/network/urls.py
6fe228184ac04c2d8dfdfe90b7117e9aee0c46fa
[ "BSD-3-Clause" ]
permissive
Kvoti/ditto
f50516c6330ef968e1b4a7b2cd5c59f350802ea2
eb4efb241e54bf679222d14afeb71d9d5441c122
refs/heads/master
2021-01-15T12:03:28.227742
2015-11-12T13:42:25
2015-11-12T13:42:25
28,145,877
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
urls.py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url, include from . import views urlpatterns = patterns('', url(r'^$', # noqa views.home, name="home"), url(r'^people/$', views.PeopleView.as_view(), name="people"), url(r'^config/', include('configuration.url...
1b7794d6378ee17358a2441d3d574b1c7f55939c
b2ed721862e97523557d123c6938d052514eec8b
/player.py
a3a908e829146ab018528a282dc10656fb420c2a
[]
no_license
SodaCookie/QuestBook
6478bb010f0dc90255927f29c83c56fd6e771ff4
fa8cd4bf970bf61952f9101deb58c98a20a3850f
refs/heads/master
2021-01-16T00:22:12.455267
2015-05-16T00:33:45
2015-05-16T00:33:45
31,994,461
0
0
null
null
null
null
UTF-8
Python
false
false
10,258
py
player.py
from item import * from constants import * from builtin_moves import * import pickle import math import random class Player: def __init__(self, name): self.name = name self.effects = [] self.moves = [] self.add_move(testing) self.add_move(abilities["magic-bolt"]) se...
94e36d3c296789d2564ad21ec2647529d512f52d
3bb4e579a904fbea352fe632cc458f63ecc87480
/DigiClock/app.py
d8d5ee207f408408f8132473f0961ba3474499c6
[]
no_license
jatin009/Python_Basic_Practice
fbce2a61399f813e08806182adc8e929d0186eaf
eb2cd5da0a5803e4ae530c4d4f2a37b8f751a1eb
refs/heads/master
2020-09-28T01:59:03.378837
2020-09-06T05:36:50
2020-09-06T05:36:50
226,662,334
0
1
null
null
null
null
UTF-8
Python
false
false
463
py
app.py
import tkinter as tk from datetime import datetime window = tk.Tk() window.geometry("50x50") hour_text_var = tk.StringVar(window) def updateTime(): hour_text_var.set(datetime.now().strftime("%H:%M:%S")) lbl.after(1000, updateTime) lbl = tk.Label(window, textvariable=hour_text_var, ...
91f8baf9b1e1e549220101af07721dcd27d019d7
bc1c804b45463fe783eeb0d87c61731009d53351
/main.py
f3d1d64ed8b0029f0822259b270773ede04f3a6e
[]
no_license
bluegene92/sane_project2
4ac52ad885d3e9caec240ae1e8f5bbf1bad84764
d3b126bf8afd262066ba426e623539433ab562dc
refs/heads/master
2023-01-07T07:52:34.802172
2020-11-16T18:23:20
2020-11-16T18:23:20
301,268,278
0
0
null
null
null
null
UTF-8
Python
false
false
8,611
py
main.py
import sys import numpy import cv2 import time import pyaudio from PyQt5.QtCore import pyqtSignal, pyqtSlot, Qt, QThread from PyQt5 import QtGui, uic, QtWidgets from models import VideoThread, Camera from speech_timer import TimerThread from threading import Thread from ibm_watson import SpeechToTextV1 from ibm_watson....
b75c256cd63129135ee0f3b23fffe6ffe94e7aaa
332ec4dae8eef0a9f5257e74f8a010b62c651e0c
/algorithms/parse/number.py
8a69b6bc20bf515345127868313db6d04d719bb4
[]
no_license
scidam/algos
ad5843adab1d960a8bbf8369021b93d91365686b
760586d97c8f1b8ae30d9291f7834e54c466cf80
refs/heads/master
2023-08-31T13:27:04.517112
2023-08-27T11:36:02
2023-08-27T11:36:02
150,822,155
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
number.py
# Number validation # "0" => true # " 0.1 " => true # "abc" => false # "1 a" => false # "2e10" => true # " -90e3 " => true # " 1e" => false # "e3" => false # " 6e-1" => true # " 99e2.5 " => false # "53.5e93" => true # " --6 " => false # "-+3" => false # "95a54e53" => false TOKEN_TYPES = ('DIG', 'MINUS', 'P...
9748f73a802f69bdfd14aec3f74ac7fcb383851a
1d59ab624a0dae9326b69d6b99f822baabc12475
/Estimators/Classifiers/EEGClassifiers/ARmodel.py
83e1ca749219b63d4b1f11d8070702574f85e440
[]
no_license
brandonlist/Nyewa
0df7cbd096844a159da6b4491ce6776e4c74f83d
0067b0f301da77fb2a145e1acdcba05f5d43d53d
refs/heads/master
2023-01-04T21:19:12.520008
2020-10-25T08:11:12
2020-10-25T08:11:12
299,050,472
0
0
null
null
null
null
UTF-8
Python
false
false
6,299
py
ARmodel.py
from Estimators.Utilis.TorchExt import Expression,square,safe_log,get_conved_dims from torch.nn import init import torch from Estimators.NetworkTrainner.Fitters.NeuralNetworkFitters import VanillaFitter import numpy as np from Estimators.Utilis.TorchExt import make_dot from torch import nn class ShallowConvNet(nn.Mod...
0a56e58a3cfc8ab0012d637e51defd4a9e94d84b
69ca5329ef76e2dc5dec927bf57479fa83026f68
/actions/wall_to_hand_action.py
4e2f8a787b6c6e98047178337472af701236d274
[]
no_license
mflood/mahjong
ed06d3c7fc852a32b437c5832bbcdd75b85c2408
4f18918e0fff624368207190ce1f106f9ff6156e
refs/heads/master
2021-01-06T00:47:26.284472
2020-02-29T15:29:26
2020-02-29T15:29:26
241,181,000
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
wall_to_hand_action.py
from actions import GameAction class WallToHandAction(GameAction): def __init__(self, wall, hand, tile_chooser): super().__init__() self.wall = wall self.hand = hand self._tile_chooser = tile_chooser # for undo state self._wall_state = None self._hands_stat...
5a7997a8a0551d732d4621502aa1a2cb3e30eb27
6d227a8fb32a82d7a16782ee08839bb76f70cbc8
/dipon2txt_v7.py
ddce9fa3fce8b2bdc2eaa51c5558b9354ab43aae
[]
no_license
zbzb00zbzb/VW-ZDC-Calculate
c07cd6036f56121c18a2c861c0a14a7886aef5ad
d6c701682e964740a70bb372c3e1bf253cc2717a
refs/heads/master
2021-09-22T07:06:27.688700
2018-09-06T08:45:57
2018-09-06T08:45:57
109,580,640
1
0
null
null
null
null
UTF-8
Python
false
false
17,532
py
dipon2txt_v7.py
from openpyxl import Workbook from openpyxl import load_workbook import operator from array import array import re #from Excel import * from bs4 import BeautifulSoup import bs4 import os,os.path import shutil import sys import PyQt5.QtCore from PyQt5.QtCore import pyqtSignal, QObject from PyQt5.QtWidgets i...
af2b417b4dc17c9cf5ef3aaaa9e92699bfe7cfc8
e39c02880a62c73c541c7f368468e89de16fb61c
/Midterm/problem4.py
e4f2feec3330f1bd1636fd4c814c2b26ebcc752f
[]
no_license
gp22/MIT-6.00.1x
f336e6f32ec28c2b8114cd9cf4c02dcdb551bd0a
5c7434e36c537e014123a39da5515bb03f8c7216
refs/heads/master
2021-01-12T18:07:28.993374
2016-10-21T07:34:15
2016-10-21T07:34:15
71,331,634
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
problem4.py
def closest_power(base, num): ''' base: base of the exponential, integer > 1 num: number you want to be closest to, integer > 0 Find the integer exponent such that base**exponent is closest to num. Note that the base**exponent may be either greater or smaller than num. In case of a tie, return...
df5b98e4153de333dc92aba3eabbf9cc5a32b31e
c881aa8381ee5b462b9170d195128f7cacc38c4a
/lino_care/lib/care/layouts.py
e7e8d5b8b7ba3460fbda42a0d9cae14a3c1695c3
[ "AGPL-3.0-only" ]
permissive
lino-framework/care
98a339a6986dfa8c5b2afaba9908ccd33111eb41
dd489780ed0cf7ad61ed640f801b678df4d192d4
refs/heads/master
2021-07-11T02:03:38.979197
2021-04-30T11:37:11
2021-04-30T11:37:11
90,506,648
0
1
BSD-2-Clause
2018-08-23T06:14:31
2017-05-07T03:36:59
Python
UTF-8
Python
false
false
339
py
layouts.py
from lino.api import rt # TODO: why is this being ignored? # rt.models.notes.Notes.detail_layout = """ # date:10 time event_type:25 type:25 # subject project # company contact_person contact_role # id user:10 language:8 build_time # body:40 #outbox.MailsByController:40 # skills.DemandsByDemander skills.AssignableWork...
e92955b8b2c0a60ea040cc07c73b6d63e728b06c
ddde000fd1aca7f509d9fc65a56907700654bd2b
/pyg_test3.py
7dfb15a913cbcd7f81fe2c5861081b2d708b9037
[]
no_license
ytchx1999/PyG-GNN-Test
cc0f338ef31562dc8fe0faed951949effa293c9a
4731b38e892728d35a594bfed83f3588936275aa
refs/heads/main
2023-03-02T08:02:08.999561
2021-02-08T08:42:54
2021-02-08T08:42:54
332,389,630
8
0
null
null
null
null
UTF-8
Python
false
false
7,138
py
pyg_test3.py
from torch_geometric.datasets import Planetoid from torch_geometric.datasets import Reddit import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np # from torch_geometric.nn import GCNConv from GATConv import GATConv from torch_geometric.nn import SAGEConv from t...
a76b4617dc92047e7e20e0d6584a612f53cb831f
04d3c7455d8d536e38ffc4efc177da6a0d367637
/Python_LAB/tests.py
f3c297fcadf50119238a722fa148679d993d4388
[]
no_license
Alihamdy2496/ITI_intensive_course_Low_speed_self_driving_vehicles_track
b9c2e4b91e43eabe0bcf91b39b2ab38377529b3b
12bdf70e686f41fcf98c5c0bf62425cc0f5dbb9d
refs/heads/main
2023-06-03T22:58:32.051606
2021-06-26T06:51:45
2021-06-26T06:51:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
tests.py
from lab3 import * import time start_time = time.time() Q_1() print("--- %s seconds ---" % (time.time() - start_time)) #Q_2() #Q_3() #Q_4() #Q_5() #Q_6() #Q_7() #Q_8() #####Q_9#### # str=Q_9() # str.get_String() # str.print_String() #####Q_10#### # car=Q_10() # car.get_velocity() #Q_14() #Q_15() #Q_1...
6617d62141e8b3f417589c87b5f430414ae34d37
d59d6d0b4bbf0766062e5d2ecb2e71cb155ca204
/mysql4py/dbapi.py
7b45a1a18cf97cf454f0bf99534793816428f682
[]
no_license
abg/mysql4py
40cd05c4bd13943ff74425a5f4729c9aa5d58a47
f209d1df88c18b2991df55204e68d0440e0eb5be
refs/heads/master
2021-01-10T21:31:55.911193
2011-04-17T08:52:20
2011-04-17T08:52:20
925,792
0
0
null
null
null
null
UTF-8
Python
false
false
9,237
py
dbapi.py
"""DBAPI 2.0 interface""" import codecs import errors from channel import connect_unix, connect_tcp from protocol import Protocol from conversions import TYPE_MAP from paramstyle import paramstyles as _paramstyles from parser import OptionFile DEFAULT_OPTION_PATHS = ['/etc/mysql/my.cnf', '/etc/my.cnf', '~/.my.cnf'] D...
1920273d7f25160357aee24a1fb77e70547b7bfd
d0cb58e1658d4b5b88bdc07e497dc8092707ae02
/2020/10october/21PandasDataSeries28.py
63ff80aac74ea6870663db86b8d9d2ba8c27f8f4
[]
no_license
June-fu/python365
27f9b753d38ade549d59aa8f2d8bda0fb8b1e20c
242033a4b644a7566fbfa4dba9b60f60aa31fe91
refs/heads/master
2021-07-02T21:42:28.454091
2021-05-04T15:08:44
2021-05-04T15:08:44
233,629,713
0
0
null
2020-01-13T15:52:58
2020-01-13T15:36:53
null
UTF-8
Python
false
false
779
py
21PandasDataSeries28.py
#!/usr/bin/python ''' # @ Author: june-fu # @ Create Time: 2020-12-09 21:44:20 # @ Modified by: june-fu # @ Modified time: 2020-12-09 21:44:22 # @ Description: Write a Pandas program to get the day of month, day of year, week number and day of week from a given series of date strings ''' import pandas as pd fr...
61a7b87533681f8ff2e30432016a09ce9212609c
758e6e21577a98427924043d4cdf7e37307d6151
/post/admin.py
ea802e2ac9a5243d5f0bead8b1f9d6b181540813
[]
no_license
SasinduDilshara/PollsApp
132299a9e312c4e3cc333f7c973c967ca221c7b7
4213d898d6b69e6cc11e6fb7eff478536826a165
refs/heads/master
2020-08-09T06:25:18.661073
2019-11-02T18:10:34
2019-11-02T18:10:34
214,020,099
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
admin.py
from django.contrib import admin from .models import Post from .models import PostLike # Register your models here. admin.site.register(Post) admin.site.register(PostLike)
1da4e97be8c025b67c3debf8a67619acfd2e5f7e
4c6e9bce7a640059089c4d20b02995075954c363
/ex_4-toggle-switch/simulate-gardner-toggle.py
ffca31a4605922bdd926cbf46b2e5bdc5e306cef
[]
no_license
zcqsntr/physics_for_biologists_exercises
9c980a9e99d21f83c96bbc14f5858a5e018d935f
cb0e4c43c97d7475d38e4e1543029074c5467270
refs/heads/master
2022-11-05T11:19:27.163760
2020-06-29T15:43:40
2020-06-29T15:43:40
275,848,420
0
0
null
null
null
null
UTF-8
Python
false
false
1,592
py
simulate-gardner-toggle.py
# script for numerical integration of the dimerisation example from numpy import * from scipy import * from scipy.integrate import odeint from scipy.optimize import fsolve import matplotlib.pyplot as plt def funcp(y, t, p): a1 = p[0] a2 = p[1] beta = p[2] gamma = p[3] du = -y[0] + a1/(1 ...
9b2a4fe9ee7f9edcc9b118041ea51d2249a0633a
8b3d45bdf25eb4e57a99d8376ee596ac98c08000
/FirstProject/Interview/urls.py
625ec0bcfff704b562f3b6bb64c2a1c78093e81c
[]
no_license
kaustubh-jawale/avengers-repo
bc6d867ee90af380e68aedfa42b42ae1cb1bd5de
8d469bd552f2cc8c464eeae7393099a88866720c
refs/heads/master
2023-07-19T17:04:11.955829
2021-08-31T07:44:50
2021-08-31T07:44:50
398,219,508
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
urls.py
from django.contrib import admin from django.urls import path from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ path('', views.welcome,name="welcome"), path('home/',views.home,name="home"), path('register_both/', views.register_both, name="r...
7ffd96eb30ee7a31cf8b44db1bdae7d7958203ba
ec99010e1c3d7960c1723dfe35b76c73cfbbfe22
/scripts/geodata/openaddresses/formatter.py
ce7002cb2ccc4744defee89a9f6c88022f3bd6e6
[ "CC-BY-4.0", "MIT" ]
permissive
openvenues/libpostal
d8270049f45feccd1b961c65bb435d1b42d22db6
1fe1f0af1f328487e7397560e1b45beb6200ed85
refs/heads/master
2023-08-16T14:44:06.615711
2023-07-06T21:16:05
2023-07-06T21:16:05
31,570,906
3,876
466
MIT
2023-08-21T21:23:36
2015-03-03T00:21:31
C
UTF-8
Python
false
false
33,488
py
formatter.py
# -*- coding: utf-8 -*- import csv import ftfy import itertools import os import random import re import six import yaml from geodata.addresses.units import Unit from geodata.address_expansions.abbreviations import abbreviate from geodata.address_expansions.address_dictionaries import address_phrase_dictionaries from...
63af2477216b9d6273cf27c6f7c757c864305aca
72bf5a6b62c00191de88171e08ab666577363b87
/misc_scripts/destroy_local_crawl_job.py
31b4be4501b07e1e0e7a4f2b6dff460e33bbe6f3
[ "MIT" ]
permissive
gongchengshi/atrax_deployment
413f3a1f78091d14c26af859fd97cc40f65c5aec
50aa9a67197f3e5ae0cd8a534f6a5b06a0e2c819
refs/heads/master
2020-06-12T17:31:22.560295
2016-12-07T01:32:44
2016-12-07T01:32:44
75,787,338
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
destroy_local_crawl_job.py
import os import redis import sys from atrax.common.constants import LOCALHOST_IP, DEFAULT_REDIS_PORT from atrax.management.local_env.crawl_job_controller import LocalCrawlJobController from aws import USWest2 as AwsConnections import shutil job_name = sys.argv[1] def reset_seen_urls(): print "resetting seen url...
5b32c1c2093d426e3521f48c0b4cdff7127ad334
a6ab6f3d39c7871b7adcf7bec54c59ea71aab346
/src/cassava/pipelines/predict/pipeline.py
41d8a80034b05f0cf1d947c2d7f3472d69d562c7
[]
no_license
btseytlin/kaggle_cassava
182271837e1863a7ff023253ea73c029da8b5731
77fbb96eb15d23a573c16395c8f3afff61d88ec0
refs/heads/main
2023-02-16T15:11:01.904439
2020-12-30T15:01:05
2020-12-30T15:01:05
317,873,166
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
pipeline.py
from kedro.pipeline import Pipeline, node from .nodes import predict_submission def create_pipeline(**kwargs): return Pipeline( [ node( predict_submission, ["cv_results", "train", "test_images_torch_2020", "sample_submission", "parameters"], "su...
a363c7ff2e0fe06806c167bed3356f6654f2decc
762fec02e9906014a09ceb283e40ab55306a680b
/python/lib/log.py
fe2c0990a43f5a480febc732e84a76c7b7273f0c
[ "Apache-2.0" ]
permissive
yangkechuan/wiki
beb2b5badd84364bb3391a917a362398343e548e
f643e6fbd1ce670647b90c00514a37ff2ebcc52f
refs/heads/master
2022-11-03T02:53:15.072842
2022-10-09T16:26:44
2022-10-09T16:26:44
88,225,881
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
log.py
# -*- coding:utf-8 -*- __author__ = '夜微凉' import logging # create logger and set global level logger = logging.getLogger() logger.setLevel(logging.DEBUG) formatter = logging.Formatter(fmt='[%(asctime)s] %(levelname)s [%(filename)s : %(funcName)s, %(lineno)d] %(message)s', datefmt='%Y-...
003c822b0e48c7199a2a7045da6f52e5f3ca09da
9ea8490d646e99f821a9cf97bb398b957d5c5288
/candidate/views.py
33c852820f2ef7e02f7eeb95c1683c974c62c02c
[]
no_license
daniel0001/Dragula_Applicant
87b2b06aa346ea411bedc82857b98ab1d0f050a8
2c75d31ee3888bcf09131bd86e31a1df39fc98f2
refs/heads/master
2020-12-02T19:25:07.616779
2017-07-05T15:42:21
2017-07-05T15:42:21
96,336,017
0
0
null
null
null
null
UTF-8
Python
false
false
2,291
py
views.py
from django.shortcuts import render, get_object_or_404, redirect from .forms import NewCandidateForm from django.utils import timezone from .models import Candidate from django.contrib.auth.decorators import login_required def applicant_tracker(request): candidateList = Candidate.objects.filter(deactivated_date=...
a0f01144ca8dc917eb13e212d30aa74cdb2a2a02
2672ab5199dc2dd925a906eed887c89aa1bb893a
/src/ecommerce/forms.py
96d61af1db4a31afe6dfcef8b1e790604fcea316
[]
no_license
kallesi/ecommerce-store
3d3ea8bee18a8c74abf77ef8c1adbc0acca32c26
7f108aadbb491287ef701e89bb3255fba5ff3451
refs/heads/master
2023-03-08T23:53:21.757716
2021-02-22T11:44:04
2021-02-22T11:44:04
340,950,049
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
forms.py
from django import forms class ContactForm(forms.Form): fullname = forms.CharField( widget=forms.TextInput( attrs={ "class":"form-control", "placeholder":"Your full name" } ) ) email = forms.EmailField( widget=f...
9f1e6b3f48d88651341d76589f70ebaf04037967
acf33cca63c1fe2b0322332c035f0728dda5f73e
/cybercybercyber.py
848e3d2075c1ef7eb004f8eaf7533c988f18c5df
[ "MIT" ]
permissive
DakotaNelson/cyber-ranker
b0d3adc1a961966a4ab026f249b58bff320667db
77e9b1e53736c46adcc6fbb51c5056d714330333
refs/heads/master
2020-09-24T12:19:18.803828
2015-09-24T21:18:31
2015-09-24T21:18:31
40,785,459
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
cybercybercyber.py
import scrapy from scrapy.crawler import CrawlerProcess import sys from cyberscraper.cyberspider import CyberSpider startUrl = sys.argv[1] process = CrawlerProcess({ 'ITEM_PIPELINES': { 'cyberscraper.cyberpipelines.DedupePipeline': 100, 'cyberscraper.cyberpipelines.CountCybers': 900 }, #L...
5bf73d9740a3e224cd0b04bcb74247c2437e94b0
b348e96d823ddee32be0b6e1b540567012f6a801
/requests/viewst.py
fbcb0b37821b79287cbca784ad6eafbcc8bacbb6
[]
no_license
temaia/vibpc
d85f05d3cbddb6d1bb1b054f212eebbf047e22eb
94dbd0f18d23920722d4c147bc6e23f0720814d6
refs/heads/master
2020-03-28T06:27:27.903771
2018-12-13T08:41:34
2018-12-13T08:41:34
147,835,797
0
0
null
2018-12-13T08:41:35
2018-09-07T14:39:14
Python
UTF-8
Python
false
false
24,557
py
viewst.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals # -*- coding: utf-8 -*- from django.core.urlresolvers import reverse #from django.contrib.auth import logout #from django.views.generic import RedirectView from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpRespon...
58927aa8f60e38c229a81bd69a30c190fc5033fb
f8310d24744ecea4a4f77d8a763038111e91286a
/DefangIP.py
c7d26cf4f1ac4a20136982c1f4ed807bdc9fd2ac
[]
no_license
abhinavathankar/Leetcode
ee80425bc687093a7d9347f3f40491abe42a6e12
881fc2ee309fab8902deb18f4280f89997deb5eb
refs/heads/master
2022-09-07T21:12:11.722185
2020-05-30T07:32:48
2020-05-30T07:32:48
264,448,086
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
DefangIP.py
""" Given a valid (IPv4) IP address, return a defanged version of that IP address. A defanged IP address replaces every period "." with "[.]". Example 1: Input: address = "1.1.1.1" Output: "1[.]1[.]1[.]1" """ def defangip(address): s='' for i in address: if i=='.': s=s+'[.]' e...
4131073dd13e5fe711949e90057bb041bb7e8194
9f045bc980601742a479af78f74f0d589a1364a6
/models/noticiasModel.py
6b2fd60f0b409cd354fd889055240805682f8e3f
[]
no_license
bopopescu/pythonMVC
dec086bc9118dd7d5c4dbcf07b7c3c32320d7980
c076e203efbee5e95baca9c027b0ee535cca385d
refs/heads/master
2022-11-19T01:27:31.402800
2019-02-12T12:01:41
2019-02-12T12:01:41
282,085,037
0
0
null
2020-07-24T00:27:54
2020-07-24T00:27:53
null
UTF-8
Python
false
false
3,502
py
noticiasModel.py
from application.Model import * import mysql.connector import cgi from math import ceil class noticiasModel(Model): def __init__(self): Model.__init__(self) pass def index(self): cursor= self.query("SELECT * FROM acerca") for cursor in cursor: acerca=cursor["acerca"] ...
b8b8be035919682516fadc4e5f516bff5b8ab0b8
39d93e6699ef6c82a5a5ead648b5dcdff0d654a6
/migrations/versions/e759ca20884f_.py
69f28de678505c49dba1bd99a85b5f0061832b22
[ "MIT" ]
permissive
baronrustamov/gsevpt
84e3937ea992ee846f765c222b082b30cd488c97
5fb716469c6b252908cd0e0b38231afc9aa7b157
refs/heads/main
2023-08-28T14:35:36.894850
2021-10-14T13:10:43
2021-10-14T13:10:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
e759ca20884f_.py
"""empty message Revision ID: e759ca20884f Revises: 4a5c083c649b Create Date: 2021-09-08 14:38:28.975242 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "e759ca20884f" down_revision = "4a5c083c649b" branch_lab...
6b721995b2249588e74c99ac74bd13375298830d
7a08cd7c18c680405d4cccfbf69960aa2d5640b8
/Microsoft-Course-EDX/final-exam-v1.py
18c110e7baae9ed049a71505ae6d7f8ca0ccc89f
[]
no_license
vkdhara55/Microsoft-EX-Python-Fundamaentals
57174e63e1b726c9f7c7d8e8393af90325ae2026
3d15427fda2db79daed82f42a2575e5d5e400ff2
refs/heads/master
2021-07-22T04:33:17.443338
2017-11-01T02:32:20
2017-11-01T02:32:20
109,071,281
1
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
final-exam-v1.py
!curl https://raw.githubusercontent.com/MicrosoftLearning/intropython/master/elements1_20.txt -o elements1.txt def get_names() : while True : if(len(input_list) < 5): input_string = input("Enter the name of an element: ").strip().lower() if not input_string : continu...
ada3db96ac6c6ae69fc6d2320c4a6a473cafe052
0e3d605c4f6e80d6136360d763baf96d7b7557d9
/source/user_based_collaborative/euristic_user_based_cf.py
068c69021dc405d29d922cde6d5217f0fd6a0a07
[]
no_license
davideCremona/recSysCompetition
1948263f961b83cb780f0bbb2682e63839f2384f
f221807fe8a5a66cbbfc3fff50d23d0daf7af11f
refs/heads/master
2021-01-11T04:34:25.932731
2016-11-18T11:20:48
2016-11-18T11:20:48
71,134,312
0
0
null
null
null
null
UTF-8
Python
false
false
2,447
py
euristic_user_based_cf.py
#!/usr/bin/python # -*- coding: utf-8 -*- import pandas as pd import numpy as np import math import time from datetime import datetime top_popular = ["2778525","1244196","1386412","278589","657183"] """ dizionario user-items """ print "-------------------------" print "Start User-Items Dict" now = datetime.now() ti...
b5198200bda10df31065ed929f8ab3e4ff3f0483
5dffdcb0275dd57cb90e1f463a8a694ef38fc1e5
/s3_bucket_upload.py
ec66ec0b31769f390b9f706dbb2ced87c4f1913a
[]
no_license
Iamnikhilramesh/Pipelines
28edefc5dcc764ad5767d5e6047dab5ae4d6d6cf
3198c40197edb480e95f459c1ce175920d4408f0
refs/heads/main
2023-03-27T05:36:46.278558
2021-03-26T13:42:41
2021-03-26T13:42:41
351,794,189
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
s3_bucket_upload.py
# -*- coding: utf-8 -*- """s3_bucket_upload.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1W15rcSlBs5AuqGXYHAegwadr-s209jmk """ import boto3 import os access_key = "AKIAJL2IQX7Z5KVSM5ZQ" secret_access_key = "RxPBAtZN14lD0uSVTG48scZLek+udyJSEA2...
59dc33522f8002763cf9e7e1dfa9bab882363fb0
c2b68289c4c3cda1015c1a34dc8e6aaa9e0acaad
/dublinbike/com/dublinbike/fast/set_up_database.py
1c0167e246ec05071239bafd832c73fcb1fbd75d
[]
no_license
Nosleep2008/Dublin_Bike_Fast_Team
5da7ab026124cafade42fdbe0cbef4aac3d17cc4
4bcb181ed7848a6d156cd37abfec3d1a5e2b51a8
refs/heads/master
2021-04-19T13:09:46.052665
2020-04-19T21:16:37
2020-04-19T21:16:37
249,606,674
1
2
null
null
null
null
UTF-8
Python
false
false
3,917
py
set_up_database.py
import sqlalchemy as sqla from sqlalchemy import create_engine import traceback import glob import os from pprint import pprint import simplejson as json import requests import time from IPython.display import display import pandas as pd import pymysql import datetime ''' def getWeather(): url = "https://samples....
734e3b5bdb31a51fc091566d1fe34e7e6f9ea43a
4064e589f0e56fb5cac5d2c09ef7e33152c8da33
/septa.py
b46d56926224f8e05640f147fa604ff9354e0e26
[ "Unlicense" ]
permissive
mammon1234/Septa_Information_Search
d41affda4d069f2f3dcb9aef632dccd04588ea3f
5c6a04aa5a255ad9771a373000760bbbab39beb0
refs/heads/master
2020-04-17T06:33:52.569887
2016-08-30T20:20:27
2016-08-30T20:20:27
66,973,561
0
0
null
null
null
null
UTF-8
Python
false
false
2,668
py
septa.py
from time import sleep from selenium import webdriver import re def septa(str1,str2,str3,str4,str6): driver = webdriver.Firefox() driver.get('http://www.septa.org/') sleep(3) fromAddress = driver.find_element_by_xpath("//div[@class='septa_destination_container']/input[@id='from']") fromAdd...
f3fb981ce9ba170f2ec0155a1fbc83c70fefa63d
5e249e7f2e9146c24d221fd1088e38bda5e65b0e
/pythonwork/whoareyou.py
f8451bf13b0ee8207ab7c58da37372d95b93cbfd
[]
no_license
karinaadcock/my-isc-work
3d5f547c6d328c963eff32c179e46c7a02ee3711
e1e94ece373128ea1d778dd34254146c0361e589
refs/heads/master
2021-08-15T07:48:47.351082
2017-11-17T15:36:39
2017-11-17T15:36:39
110,551,742
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
whoareyou.py
name = 'Ag' if name == 'Fred': print 'Hi Fred' elif name == 'Ag': print 'Hello' else: print 'who are you?'
96b9303b29a59811f9a52f26d0006c9b1c365945
0d83a2beada30798a262dc6c5aec74afc0c6d654
/project_main/test.py
ac87d9ea177908edee53c41e87988bd2ba69eca8
[ "Apache-2.0" ]
permissive
krist-jin/flask_rest_template
6a48446ab33fb5f1713649fc0e3476c947e2896a
a19bea14159dd9ae4272f70d9e649f8907194cab
refs/heads/master
2021-01-10T08:34:50.630854
2015-12-18T00:22:27
2015-12-18T00:22:27
48,144,242
1
0
null
null
null
null
UTF-8
Python
false
false
207
py
test.py
import requests for i in xrange(10000): print i # res = requests.get("http://127.0.0.1/ad") # print res.content requests.post("http://127.0.0.1/impression",data={'aid': 2, 'timestamp': 3})
4fb983ba24d25cd7c584695d566295c0d2d047e0
b0fa605c419ebc8011aecaff5d85b313e7b7ff9b
/data/process_data.py
c87e5669d4764601627351b74da0511064d29958
[ "MIT" ]
permissive
nilaychauhan/Disaster-Relief-Response
ef60816881dd46f464384cefaa9bc8697885f8c9
5797a4f4d205e02d4380a3dad7b75489bb2684b9
refs/heads/main
2023-03-12T03:08:46.316696
2021-02-27T13:34:52
2021-02-27T13:34:52
341,216,373
5
1
null
null
null
null
UTF-8
Python
false
false
2,346
py
process_data.py
import sys import pandas as pd from sqlalchemy import * def load_data(messages_filepath, categories_filepath): """ This function load datasets input: messages and categories datasets output: Combined data containing messages and categories """ # load messages datas...
783b478ef95226ea9b873eaead266b9aaf1bda54
6ae3d03876489957e64f086707305aaf145df6e6
/ptm/utils.py
5aee87a4037a8c51bfb20d319fac465a18b7e69d
[ "Apache-2.0" ]
permissive
Devyadav1994/python-topic-model
85828732a689c03c145f3a24e01de8bc934f62d3
dd1299d68588212454b62f77fc4fbfcba4ef8e6c
refs/heads/master
2022-12-31T03:20:29.079820
2020-10-11T09:41:23
2020-10-11T09:41:23
300,224,730
0
0
Apache-2.0
2020-10-01T09:37:55
2020-10-01T09:37:54
null
UTF-8
Python
false
false
3,161
py
utils.py
import numpy as np from six.moves import xrange def sampling_from_dist(prob): """ Sample index from a list of unnormalised probability distribution same as np.random.multinomial(1, prob/np.sum(prob)).argmax() Parameters ---------- prob: ndarray array of unnormalised probability distr...
d626824bf21a059b9282cb0fdf9606147033bd2a
f76d67001ca65df09ae9fecfdec3add1f21bed86
/rotationPoint.py
7ef90f3cf2fc682d04acee0244f2f4d96f2034ce
[]
no_license
JohannWentzel/interviewcake-solutions
a69d12eeea01abc2ed68c4478556374900590b46
0f2d33379bbf2f0dd6082f547b3d47d9014f1338
refs/heads/master
2021-04-28T20:25:40.181287
2018-02-19T21:34:18
2018-02-19T21:34:18
121,925,009
1
0
null
null
null
null
UTF-8
Python
false
false
553
py
rotationPoint.py
def rotationPoint(words): low = 0 high = len(words) - 1 index = (low + high) // 2 while low <= high: index = (low + high) // 2 if words[index] < words[index - 1]: return index if words[index] < words[low]: high = index else: low = index return index if __name__ == '__main__': words = [ ...
7d5182b19a28d930e94b421927f4bff4edead78b
57b38c6115db979af7faf0e110dcf90965ca12d7
/main/templatetags/custom_tags.py
ee549423a5c6f7e058ac1daa5b36b75c23b21ca0
[]
no_license
davit-gh/postcard
b05d58bb1400794e33eaae8eac1ea7b57f8ce3d0
3d248b70392925e3e168fb8c187c4f100b6d9c24
refs/heads/master
2020-07-29T04:38:24.474770
2016-11-24T15:37:54
2016-11-24T15:37:54
73,682,875
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
custom_tags.py
from django import template from main.forms import ContactusForm register = template.Library() @register.simple_tag def get_contact_form(*args): return ContactusForm()
033c822fea1b38df31fdc6098b23fba1839c5fd3
a215f2ca3c9f4e107b1e70ea74f3658b2dd0691d
/douban movie.py
2c9cb238a3d0b67dd11b1003ef82ed37c47fc93f
[]
no_license
chmjackychm/Web_Scraping_with_Python
3bffe5a52f23fa2cdc0f4960e46bca54c2101573
4c90555c1124b5adf4215fdb59b7e1c66df7e920
refs/heads/master
2021-01-17T12:48:48.148321
2016-07-22T17:59:18
2016-07-22T17:59:18
57,133,827
0
0
null
null
null
null
UTF-8
Python
false
false
2,461
py
douban movie.py
# coding: utf-8 # In[98]: from selenium import webdriver import selenium.webdriver.support.ui as ui from bs4 import BeautifulSoup import time import datetime # In[99]: today = datetime.datetime.today() # In[100]: ps = 'C:/Users/jchen5/Downloads/phantomjs-2.1.1-windows/bin/phantomjs.exe' # In[101]: driver = webd...
89a99d188a1c014d1d4f69dc43f9a482aa3f77e3
0233f6789d96813ce4f7171bb8b32f0db8bc49c5
/app.py
ae9bea7a6ac21f96fba49a263ee3ae777a67e88a
[]
no_license
jis56/Sqlalchemy-Challenge
649bcf4e1e7b616a723d94604ad9f387c3548c9b
96ddfc12928c9796382b19229e4dca4ff074096c
refs/heads/main
2023-01-21T03:36:06.399242
2020-12-01T21:13:41
2020-12-01T21:13:41
315,420,713
0
0
null
null
null
null
UTF-8
Python
false
false
2,737
py
app.py
import numpy as np import datetime as dt import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify engine = create_engine("sqlite:///Resources/hawaii.sqlite") Base = automap_base() Base.prepare(engi...
2f57846c6ef78ff6025f5f0ee9909a66e6abf722
67d99e91e5633566620f7546ea7975b7e3c85bb1
/Classifier/createTrainingData.py
c5b3eb1ab6838d3e2beb92908101b5dfe9111b6c
[]
no_license
pmolijn/P2P-Research
f07911810f827b8a7f17e638d833f0c940cbed18
583ad094b93bb6c2b19e709a3d0ab1fc7bb11176
refs/heads/master
2021-01-13T01:15:15.642697
2014-10-14T22:52:13
2014-10-14T22:52:13
25,229,838
1
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
createTrainingData.py
from GLOBALS import * DATALIMIT = 120000 #takes DATALIMIT examples and puts it in necessary format for training folders1 = os.listdir(AGGREGATESDIR) csvfiles = [] for eachfolder in folders1: folders2 = os.listdir(AGGREGATESDIR + eachfolder) for eachname in folders2: name = AGGREGATESDIR + eachfolder + '/'+ eachnam...
63a48267f66239c191deedb53c2481fab9ed2e24
b15068912e4ae26acc69e9265a1de199204042e8
/scripts/scp_api.py
00c8b61e39ff21f0ebe311cc37d7f5335fbae2c0
[]
permissive
broadinstitute/single_cell_portal
70a4df8c12c15aa41250d3d7d9fcee7d7dfdcfeb
eea1917586f0598eb81c24b8318383a3521fae2b
refs/heads/master
2022-07-16T15:52:48.240907
2021-10-26T18:40:21
2021-10-26T18:40:21
64,143,550
46
25
BSD-3-Clause
2022-06-22T04:37:45
2016-07-25T14:55:50
HTML
UTF-8
Python
false
false
41,129
py
scp_api.py
# -*- coding: utf-8 -*- """Python library for interacting with SCP REST API This library is used in client code like manage_study.py. You can find documentation on the upstream REST API that this module wraps at: https://singlecell.broadinstitute.org/single_cell/api/swagger_docs/v1 """ import requests import urllib...
4ba0da3c9057c78d4adc4ed55b20e4691574fa57
274a81c5ed47d46cc67217eb223a6a64c537e8e6
/right shif.py
24e5f3a01fab92eada6e437f5ff52c8e15900197
[]
no_license
Ankit-Developer143/Practice-Python
0ac1d9dcf9649f0598f5f3d412e2c97a084e6a5c
75602bc13796eb4453033331921109da0f18be1f
refs/heads/master
2023-02-24T18:19:37.494400
2021-01-28T16:19:52
2021-01-28T16:19:52
260,185,861
0
0
null
null
null
null
UTF-8
Python
false
false
82
py
right shif.py
import math def right(x,y): return(math.floor(x>>y)) print(right(-24,2)) //-6
3cb98faf7f8876d1d5f08c91f58ca00dadd2e2c5
c8971fa872ada12d5333555ad10a1af2b0b765d3
/setup.py
a716eab41b4e57f2ae0e6d2e96d0d7651e1d930c
[]
no_license
amy-caali/py-k4a
aefd700fb6e9ce6eba6f2141d7551fdf7d3b25c1
64c732d67fdc7c57070fcb8912027707aea0d902
refs/heads/master
2020-08-08T06:59:36.706309
2019-09-16T05:57:05
2019-09-16T05:57:05
213,769,062
2
0
null
2019-10-08T22:36:21
2019-10-08T22:36:20
null
UTF-8
Python
false
false
231
py
setup.py
from distutils.core import setup, Extension setup(name = 'k4a', version = '1.0', \ ext_modules = [Extension( 'k4a', libraries= ['k4a'], sources= [ 'capture.c', 'gen.c', 'device.c', 'module.c', 'types.c'])])
1593d6d1a6167291a77a2998926192f78095555f
06c65ab35dcdf1586b6918ab104c117569f9d9a9
/main.py
02f022ac98123268664cd60e9441a04642689056
[]
no_license
Doreamonsky/im2latex
33e96a282afa761a7b59ec7a737067dff1c42422
e1a8c612dd400d06d2c752af8d5613e95ffcdc7f
refs/heads/master
2022-12-15T17:26:06.944004
2020-09-18T16:45:57
2020-09-18T16:45:57
296,679,941
0
0
null
2020-09-18T16:53:24
2020-09-18T16:53:24
null
UTF-8
Python
false
false
2,723
py
main.py
import os import json import shutil import torch post_part = False with open('param1.json', 'r') as file: param = json.load(file) misc_param = param['misc'] fine_tune_param = param['fine_tune'] jerry_preprocess_param = param['jerry_preprocess'] train_param = param['train'] infer_param = param['inference'] # misc...
ce3f5cdea7c3cac01b81bbcb379bfe765d63e7ce
df2c89030313c6f0c26712740223c7349638bd3a
/SudokumanagerTest.py
313ecfc4542d3fa6fde55499ab14a4bec0353e24
[]
no_license
gzucolotto/sudoku
f110dc34ef0af71945bd1370040d337b092f97d3
2ecd84f7e7624154801fb885439cb45c9a27354f
refs/heads/master
2021-01-19T02:34:50.555223
2017-04-04T19:19:33
2017-04-04T19:19:33
73,502,009
0
0
null
null
null
null
UTF-8
Python
false
false
6,184
py
SudokumanagerTest.py
#!/usr/bin/python import unittest2 as unittest import sudokumanager as sm class SudokumamagerTestCase(unittest.TestCase): def test_sudokumanager(self): output = sm.index_grid() expected = ("| 0, 0, 0, 0|| 0, 1, 0, 1|| 0, 2, 0, 2|| 0, 3, 1, 0|| 0, 4, 1, 1|| 0, 5, 1, 2|| 0, 6, 2, 0|| 0, 7...
36d70f52c6c1facc891fdc31e514aa3bdbea6aee
49f4ce40b86eb4f0b2eb349b52c5060e774cc27d
/Numpy/mypy_线条样式.py
abb9b67c6a50744adbee0ca4301ad557a2dd1c85
[]
no_license
yukaixue/spyder
a9493a637b44e5cf358885e7389fcd9bffb56b7e
d09fe88f7158641909a3bec6f02c4fad031ae3f5
refs/heads/master
2021-01-03T04:51:16.272070
2020-03-23T13:20:29
2020-03-23T13:20:29
239,930,324
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
mypy_线条样式.py
# -*- coding: utf-8 -*- """ Created on Mon Mar 23 16:57:21 2020 @author: Administrator """ import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 10, 100) #使用legend()添加图例,给iplot方法添加参数label plt.plot(x, x+0, '--g', label='1') plt.plot(x, x+1, '-.r', label='2') plt.plot(x, x+2, ':b', label='3') plt.plot...
d5ecf9d9456087f280e3b82b6c72ea781297defb
dd5a1e4cb81b1c7f86d7bf4f5d916236b9d3a17e
/bi/settings/__init__.py
27421bb20d4a19568c32c2e55a6d7b5a95bb9cb2
[]
no_license
Srinidhi-SA/mAdvisorProdML
3329b5cae9f1059675ac78f68ee1c6404df91c06
7d5d2faafcd0b2e5d35fa0e486bc3617f8e30a9e
refs/heads/main
2023-06-04T21:03:15.028883
2021-06-21T14:48:09
2021-06-21T14:48:09
364,507,786
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
__init__.py
from __future__ import print_function from __future__ import absolute_import try: from .configs.localConfigs import * except: from .configs.sampleConfigs import * from bi.tests.testConfigs import * def get_test_configs(jobType,testFor = None): print(jobType) # from configs.localConfigs import * # f...
45d1e7b256a0bf5d083cf6586b1df4782f949748
45d9a460a394498c1a7549c9a2c87ea85b455def
/Components/CommonPonents/FormLeftWordComponent/Inputs/base_input.py
2cd85a475cdddfa30ec5019a4eb2be4091e479c8
[]
no_license
linhaoi1997/UIAutoDemo
731c235c06ede5d7b66dba217ada9f5a82ef1da4
c01c8a63a47bcde0f055ea5cc04e573ba0e384f8
refs/heads/master
2023-07-04T23:03:27.555696
2021-07-22T01:47:02
2021-07-22T01:47:02
387,370,965
1
0
null
null
null
null
UTF-8
Python
false
false
1,820
py
base_input.py
from selenium.webdriver.common.keys import Keys from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement from abc import ABCMeta, abstractmethod class BaseInput(metaclass=ABCMeta): """所有input的基类""" FOCUS_LOCATOR = ".." LABEL_LOCATOR = ".//label/...
5c3ab34064828455b80ce7ae7250c98885b7028f
487551850738acaa145fd6134a4c531144443e12
/scripts/awsConfig/deleteAwsDevice.py
27a2822bbfa1b691736eb631211243ac29c39dbd
[]
no_license
raarts1995/bedsensor
7ef53a7296371b5347f4a3f073f5174040ccbf4d
138b98933e0736ff8dabe012217fd183e103519b
refs/heads/master
2020-04-29T02:50:07.732632
2019-05-29T13:25:35
2019-05-29T13:25:35
175,785,208
0
0
null
null
null
null
UTF-8
Python
false
false
4,122
py
deleteAwsDevice.py
import boto3 import json import subprocess ''' A) Flash ESP32 software 1) retrieve MAC address (using esptool.py if necessary) B) Setup AWS IoT and DynamoDB: 1) create thing (thingName: mac address) 2) create keys and certificates 3) attach certificates to device C) Flash ESP32 SPIFFS 1) store created certifica...
1a2ae36d4821945c0e3680966065244f6eae8617
d63068fd70e1b9e3cb58e17baca4896033a893dd
/counting_test.py
4fb18a43acfbd4171c2578592054bcf921ba9506
[]
no_license
rwhite5279/sorting_algorithm_analysis
70dcf2b15eaa2f92b36fee4a19263649d6e05bda
733acedb77989c2b0f5b9d5cca4385c17f0092d6
refs/heads/main
2023-04-06T06:23:25.246585
2021-04-10T01:24:42
2021-04-10T01:24:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
counting_test.py
from counting_sort import counting_sort import matplotlib.pyplot as plt import time import random def runTests(): times = [] sizes = [] for size in range(0, 1000000, 10000): sizes.append(size) list = [] for i in range(size): list.append(random.randrange(size)) st...
400ce650c3d9f2170c8b79a18ea6cd42820c6860
226d192b3c3374f125c845723c7ebc35a40b2e84
/__init__.py
80844c179a92afde952e9d603f6af3e8dc6ccce0
[ "MIT" ]
permissive
alaanlimaa/openAccountBank
b0d9712ff48db186a3ed05c1b9a5084e6da56de9
a81f04a9e355ae997bf8edc4e304770c4e33943d
refs/heads/main
2023-06-15T12:06:58.888870
2021-07-20T17:29:37
2021-07-20T17:29:37
387,866,486
0
0
null
null
null
null
UTF-8
Python
false
false
1,550
py
__init__.py
def gerar_numero_conta(): from random import randint contanum = [] for i in range(1, 10): if i == 8: contanum.append('-') else: n = randint(0, 9) contanum.append(n) numero = ''.join(map(str, contanum)) return numero def escolha_banco(): impor...
81a10136317c3797830d877dfa48ecd98470bca3
0989070eca649478cbd5efa68bd15cd2a5b1e5a0
/VideoFacesDetection/processing/views.py
a9c77cecbf5b4f79e7dbd69f59f9996f2749c5bc
[]
no_license
almois27/test
8aae1a63e38770a110be8f3fc6af8af49879b29c
1d8690e1ecd4298d2c3299516fbbc9a2472be540
refs/heads/main
2023-07-01T09:25:44.594362
2021-08-08T11:07:24
2021-08-08T11:07:24
391,986,708
0
0
null
null
null
null
UTF-8
Python
false
false
3,895
py
views.py
from django.http import HttpResponse, Http404, HttpResponseRedirect from django.shortcuts import render,redirect from django.urls import reverse from django.db import transaction import json import multiprocessing from celery.result import AsyncResult from VideoFacesDetection.celery import app from .tasks import face_d...
4cc2597fa8b869b2067f94d073435ce8f622790f
d752cd38a6973d6d334c5e0f2797c85b7232786b
/market/views.py
2aa079850650813143e05303e55f215f1d6fc595
[]
no_license
pritish0803/krishi-1
0fb6fc263fc0378edc5878c49850b0f0ad059395
40926dabe0669d2f82c1a37f38bb782838ef61e7
refs/heads/master
2020-03-09T02:40:09.366520
2017-11-20T16:03:34
2017-11-20T16:03:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
views.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.template import loader from models import Market,market_crop_price from tables import MarketTable,market_crop_priceTable # Create your views here. from django.http import HttpResponse from django_tables2 i...
785271957339dd5f412de209543fc6bdbbdc3df3
3e2543afe1bb70e5a4ad3cf67d94629fa68c79c8
/setup_database.py
158c5994d00f9a3a055e6442b8fbfb5b2d0ede32
[]
no_license
WHKcoderox/chatbot-template
e0397045760ed0d78ac0f787a5e65f3119126d06
aab8425e69df75d0ccba8a7350e66477b7546cf8
refs/heads/master
2020-03-18T17:56:18.776409
2018-06-01T03:19:31
2018-06-01T03:19:31
135,061,525
0
0
null
null
null
null
UTF-8
Python
false
false
1,792
py
setup_database.py
import sqlite3 def fix_single_quote(string): # SQL typically messes up when there's single quotes. The workaround is to make two single quotes. limit = len(string) i = 0 while i < limit: if string[i] == '\'': string = string[:i+1] + string[i:] # this duplicates the single quotes. ...
7f396ee237a136d967159b011e151d3ec006fbd2
80042f14afb54f5d99c3399b329256e544f170b0
/g1/binarygenome.py
5c3e031a1174adbb321bee3cb7c5b693aaf19248
[]
no_license
mozboz/genalgo
27ac8b45a2595c329ed275f24e5b030abd2e3215
bc928f542efd67d25d48cf132f867cf10430f309
refs/heads/master
2021-08-19T03:27:55.708173
2021-01-10T17:39:44
2021-01-10T17:39:44
51,472,326
2
2
null
2016-02-14T16:46:47
2016-02-10T21:09:07
Python
UTF-8
Python
false
false
1,941
py
binarygenome.py
import random class Runner(object): # this language is wrong, genome is the class, dna is the string def __init__(self, genomeType): self.genome = genomeType() # steps through dna from start to end, returns final information left in this cell def run(self, dna): # assume dna is 32 bi...
0b3e83cd1ed8657e9409585bba02f41db40a01bf
7f474dfe49e5644db4633a5820e68ac597b84219
/twengage/like_tweets.py
1541426acf158ae945227e4c2ed56d4d617a629b
[]
no_license
zoran4516/tw-backend
c4918f528f01629af7a0a91057ef8f414fb54e0b
ece37af63a061e3c2d75a95534fbaa292ebe1edb
refs/heads/master
2023-02-05T08:15:14.227995
2019-10-28T12:05:27
2019-10-28T12:05:27
170,778,338
1
0
null
null
null
null
UTF-8
Python
false
false
2,571
py
like_tweets.py
from Particle.requests_manager import RequestsManager from Particle.session import Session from Particle.actions import Actions from Particle.Extractors import tweets from collections import OrderedDict import random import time class LikeTweets(object): def __init__(self, username, password): self.user...
f78a4b03cedc28ff38828cf8108b4c5d19c2eacc
24f6ba511545d5cd2860bed27f9e10b5686fd041
/pysite/views/main/jams/index.py
0cd9a2871c5573eb3c301b8ad13ccb005257fba1
[ "MIT" ]
permissive
landizz/site
8a68fcc282e6bf56a6f90b10de1a4e7d4e8a5428
bc87a43b3fc1ff3424b1c9603b0a35b28f2c3896
refs/heads/master
2020-04-17T19:55:20.483103
2019-01-19T23:03:13
2019-01-19T23:03:13
166,884,262
0
0
MIT
2019-01-21T21:59:42
2019-01-21T21:36:58
CSS
UTF-8
Python
false
false
1,708
py
index.py
import rethinkdb from pysite.base_route import RouteView from pysite.mixins import DBMixin class JamsIndexView(RouteView, DBMixin): path = "/jams" name = "jams.index" table_name = "code_jams" teams_table = "code_jam_teams" def get(self): query = ( self.db.query(self.table_na...
f5ba9b32630651af8a814c952907620653382022
4ed3980b16537edd45534d183f4676da2f544bf8
/Python_codes/DemoHelloWorld.py
12933a739c192bcac21cc42c10a5db1afec08896
[]
no_license
Amit32624/Python
fdb16a5b7343ce57b44da32b0a78296f07f9170d
09b5d95a05d4a64301b682148e72713c65129a27
refs/heads/master
2023-06-09T15:44:54.107561
2021-07-04T21:33:41
2021-07-04T21:33:41
326,266,886
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
DemoHelloWorld.py
''' Created on 12-Jun-2017 @author: mohan.chinnaiah ''' print("Hello from Python");
865063763f1f9350446f89a0427fcfb5058497fb
64a0223b1ef9e99c1f065956495a4eed80296edc
/Main.py
34c2d33b22a8fd6dbc4fd6daa92ed1ad714e10ee
[]
no_license
Klaethis/ML_Final
1c4bfd3adb45fbb1f1b0ccfa8614b1e4aed2e907
a6fb6144576e9b3ffbc648b7482502ee3129b11d
refs/heads/master
2022-04-23T23:27:23.041630
2020-04-28T20:34:12
2020-04-28T20:34:12
242,282,209
0
0
null
null
null
null
UTF-8
Python
false
false
13,201
py
Main.py
from mlxtend.data import loadlocal_mnist from MnistNumber import MnistNumber import numpy as np import time MAX_READ_NUMBERS = 500 def main_task(): # Grab the mnist training data mnist_training_img_data, mnist_training_lbl_data = loadlocal_mnist(images_path="./Training_Data/train-images.idx3-ubyte", ...
78d816d8d57dbc5ea1947577765f8e669dfefb2d
a895d49bc28a5ca3fa01c1f8fc6c63ebc17413f7
/host-software/keyplus/version.py
89dc07a789c01a4de9c21854099122ca75502ea8
[ "MIT" ]
permissive
emilytrau/keyplus
e25f936d00f9b5cf6e6eb4c212906257e60403dc
dcc80d15e1b41811bfcc6dd162dc5faaa8f05ad6
refs/heads/main
2022-11-03T21:18:56.950011
2022-10-27T11:39:49
2022-10-27T11:39:49
131,074,667
0
0
null
null
null
null
UTF-8
Python
false
false
24
py
version.py
__version__='0.4.0pre1'
4fa0a07f1ed9b36961f67ebc2ecf945b8cd467f0
6c5b3ce91bc64c186c4a534b32bb04fd6f2a66f9
/bladra.py
34078e6a60a89b98dca1c070790b33262659b943
[]
no_license
Hexfall/Almennt
7b7470d3784aef8775184b0e61edf8b06d4ef9f0
48340ac09e4c91a37eeeda4109133682b106a140
refs/heads/master
2021-06-27T19:19:29.198057
2020-09-29T16:25:49
2020-09-29T16:25:49
147,345,298
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
bladra.py
def find(lis, target): for i in range(len(lis)): if lis[i] == target: return i toskur, taska = [int(i) for i in input().split()] rod = [int(i) for i in input().split()] nr = find(rod, taska) if nr == 0: print('fyrst') elif nr == 1: print('naestfyrst') else: print('{} fyrst'.format(n...
34c2849e48941f07c483cb78f38af7c2ace528a7
9e33f284057ad113a0bbdad4293259d9d67362ff
/week4_divide_and_conquer/2_majority_element/majority_element.py
efc7a8b7442d727ca34166b959322bbca21b3c44
[]
no_license
xwilchen/Data_Structures_and_Algorithms
b1582abf721a785eb2b0cb17f99d910c82fec04c
f1167e7f535152f965112033ca27d9c211f68a1e
refs/heads/master
2022-12-29T01:39:12.292797
2020-10-17T21:21:27
2020-10-17T21:21:27
296,471,515
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
majority_element.py
# Uses python3 import sys def get_majority_element(a): count = {} for n in a: if n not in count: count[n] = 1 else: count[n] += 1 if max(count.values()) * 2 > len(a): return 1 else: return -1 if __name__ == '__main__': input = sys.stdin.read(...
686b1eb96bd8f2fa1fe42144f9b93b83e1632239
879a79bc2232949abbfe54da37e8fd8f94a9d6ce
/USACO Comp Problems/Bronze 2020 January/Bronze 2020 Jan 3/Bronze_2020_Jan_3 3.py
39a0a814648833532e1b6e2fb655f0c0e852335b
[]
no_license
pranjalc1/USACO-Python-Practice
54dc1aa5d2e8eb52cca4863d3fb99bcc1def787c
356b7d3f673d47180847fa8f4db49aa9058344e7
refs/heads/main
2023-07-05T00:22:14.570305
2021-09-04T00:10:01
2021-09-04T00:10:01
380,648,048
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
Bronze_2020_Jan_3 3.py
filein = open('race.in.txt','r') fileout = open('race.out.txt','w') # read input text = filein.readlines() K,N = int(text[0].split()[0]),int(text[0].split()[1]) del text[0] Xs = [int(text[i]) for i in range(N)] filein.close() # inspired by official solution answers = {} i = 1 dist = [0 for x in Xs] numchanges = [0 ...
73bc60774718f89064487bc88f0dd4851af28e77
ceb9db29894e557f83d6de1da256db7e4ba9e938
/therm.py
9d3c2c673a213aed19bf9142af81df6b89a18c82
[]
no_license
jonahmajumder/homeserver
dee158f8a47ac950b61fd17e1873ccc500912c91
fbdbd1db4c607debc15ecb461543388833273a56
refs/heads/main
2023-07-18T23:26:15.208837
2021-09-20T02:43:55
2021-09-20T02:43:55
330,493,988
0
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
therm.py
import os import glob import re import random import threading class ThermometerError(Exception): pass class Thermometer: GLOBPATH = '/sys/bus/w1/devices/28*/w1_slave' def __init__(self, *args, **kwargs): self.path = self.get_path() self.active = False self._value = float('nan') os.system('modprobe w...
48e3440bb4bb63b421543bb4f475ab50bf5573db
2328b2896eb499fdf979b13d7b0f61e1afb1825d
/dec-to-bin.py
81b7c62cc06be5124428fafc08710a83ea25e92f
[]
no_license
Poobalan1210/data-structures-python
ff2f371cab7884c83267b509bc2f6298b67342ce
a61224555e7e9b6f80b516455732f4a470a65708
refs/heads/main
2023-01-29T20:58:31.095653
2020-12-14T07:30:12
2020-12-14T07:30:12
318,141,423
1
0
null
null
null
null
UTF-8
Python
false
false
368
py
dec-to-bin.py
from stack import stack def convert_int_to_bin(dec_num): while dec_num >0: d=dec_num%2 s.push(int(d)) dec_num=dec_num//2 if __name__ =="__main__": dec=int(input()) s=stack() convert_int_to_bin(dec) #print(s.print()) str1="" for i in range(len(s.items)): x=...
48c40264a74f524e69db90e039b236ec61f23aa0
a2e638cd0c124254e67963bda62c21351881ee75
/Python modules/TMS_SendExpiredTrade_FX.py
b63227353d30473baf979bbdaa60efac79ab0da1
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,462
py
TMS_SendExpiredTrade_FX.py
import ael import TMS_TouchTrades_FX from time import clock '''======================================================================================= Purpose : This Module touches expired trades in front in order for the expired trade : status to be sent to TMS Department and De...
c3542ae3a42a287f62b02e2b5168b31dba17da1f
18397e517c58e2bc2e66ae5b602062924fd264b7
/examples/matplotlib/plot1.py
af25878f8eaacfb3c7a5789165554dffb2565489
[]
no_license
redmage123/pythonfortooldevelopers
247b85e28e57471a3ccbaae897d678e8e5fc604b
a9dd8a3adaebd372fabd55e5613a528478897b70
refs/heads/master
2021-06-12T05:12:08.973544
2017-03-12T10:41:25
2017-03-12T10:41:25
72,557,974
1
0
null
null
null
null
UTF-8
Python
false
false
312
py
plot1.py
#!/usr/bin/python3 import matplotlib.pyplot as plt x = [1,2,3] y = [5,4,7] x2 = [1,2,3] y2 = [10,14,12] plt.xlabel('Plot Number') plt.ylabel('Important variable') plt.title("My first graph\nIt's teh awesome!") plt.plot(x,y,label = 'First Line') plt.plot(x2,y2,label = 'Second Line') plt.legend() plt.show()
2dd09001c655df97b6980f49613416ad06100bf1
b3c47795e8b6d95ae5521dcbbb920ab71851a92f
/Leetcode/Algorithm/python/3000/02359-Find Closest Node to Given Two Nodes.py
c895bed778e36ac1d60db9309a8832bf786d92f7
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Wizmann/ACM-ICPC
6afecd0fd09918c53a2a84c4d22c244de0065710
7c30454c49485a794dcc4d1c09daf2f755f9ecc1
refs/heads/master
2023-07-15T02:46:21.372860
2023-07-09T15:30:27
2023-07-09T15:30:27
3,009,276
51
23
null
null
null
null
UTF-8
Python
false
false
690
py
02359-Find Closest Node to Given Two Nodes.py
INF = 10 ** 10 class Solution(object): def closestMeetingNode(self, edges, node1, node2): n = len(edges) d1, d2 = {}, {} self.dfs(node1, edges, d1, 0, set()) self.dfs(node2, edges, d2, 0, set()) mini = -1 minv = INF for i in xrange(n): v ...
f61a0f4f6c144e813eea83a2a0ec18da9db0cffa
5de2c2f4a418c7e5d28feae3ab0734ffa6d1d963
/course-4-automatic-data-pipelines/project-data-pipelines-with-airflow/plugins/operators/stage_redshift.py
48ad5354ce902d0394f62dc8fcfd0eb7d1b93ac8
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
robstraker/data-engineering-nanodegree-udacity
e2771ca91ef8e912d1d3c14d03fb106d07cb82ef
4986f6098fe3197e40b1dabd803f009cba518439
refs/heads/master
2023-03-21T23:07:52.195819
2021-03-09T22:44:33
2021-03-09T22:44:33
346,160,218
0
0
null
null
null
null
UTF-8
Python
false
false
3,127
py
stage_redshift.py
from airflow.hooks.postgres_hook import PostgresHook from airflow.contrib.hooks.aws_hook import AwsHook from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults class StageToRedshiftOperator(BaseOperator): ui_color = '#358140' staging_events_copy = """ ...