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
0876173fd1f555042d62cbc00e18c573e8086aac
66e9207731dad5cefcf54ddad80607c269409d7b
/csv_creation1/24_oct/csv_format.py
7a4e5c247ff6f9577cafda5f14d05763f54c3330
[]
no_license
PawarKishori/Alignment1
2949df14734680264e0597c764086060e61ae704
d824957037b7a0c585d9751485e485e3b9f20679
refs/heads/master
2020-05-24T16:36:22.745901
2020-01-21T07:41:03
2020-01-21T07:41:03
187,359,528
0
0
null
null
null
null
UTF-8
Python
false
false
20,356
py
csv_format.py
import csv import re log=open('file_missing_log','a') flag=0 flag4=0 flag5=0 flag6=0 flag7=0 flag8=0 flag9=0 flagg=0 flag10=0 flag11=0 flag12=0 flag13=0 flag14=0 flag15=0 flag16=0 try: f=open("word.dat",'r').readlines() n=len(f)-1 except: flag=1 log.write("E_id_word_dictionary.dat not found\n") try: ...
5684173b4a3acc3ff2965fdab1efeccf5c448624
e5353b42445dae7e667e622c9e6f72a8ad2e0e38
/src/launch_autoplay.py
448d481759d0961527bc4f321432aaf5a43957b7
[]
no_license
LogicRL/MontezumaRevenge
2f7debd62fd6c890b5d1454ca91bab3b8de72ccc
35b8ef9915c5edf38f67444e20a6f0e5e3308340
refs/heads/master
2021-04-27T02:14:14.146598
2018-05-05T21:30:47
2018-05-05T21:30:47
122,692,772
2
1
null
2018-05-05T21:30:48
2018-02-24T01:59:38
Python
UTF-8
Python
false
false
11,962
py
launch_autoplay.py
#!/usr/bin/env python """ launch_autoplay.py Launch the Montezuma Revenge game with automatic playing and learning. """ __version__ = "0.0.1" __author__ = "David Qiu" __email__ = "dq@cs.cmu.edu" __website__ = "http://www.davidqiu.com/" __copyright__ = "Copyright (C) 2018, David Qiu. All rights re...
c26e28f4dcaf4f14bba463bd6a40a7d80740a5af
d7984fa2e3101ff0420c39c9605c12febae7c132
/bin/printsizes.py
a4463a2f401f0e3b85241be47cc456d86b54a4f0
[]
no_license
travisgoodspeed/goodtag
82750c9634a7a76171fa4e938094795024824218
e527da9f04c74052398716049ef8c6ab0b976294
refs/heads/master
2020-09-06T11:53:29.173165
2020-01-02T03:33:07
2020-01-02T03:33:07
220,416,562
67
3
null
null
null
null
UTF-8
Python
false
false
1,583
py
printsizes.py
#!/usr/bin/python2 ## Quick little pyelftools script to test the size of an rf430frl152h ## firmware image, warning the user if it looks too big. from __future__ import print_function import sys from elftools.elf.elffile import ELFFile from elftools.elf.sections import SymbolTableSection def process_file(filename...
bf6876e7c7fae6521a6b33894926feff6abe8e80
f4ba4a00cae6c43a3c91f522cd415c82ae2e0a57
/random-map.py
8e9cfb82c5431f4cebf228265096dd7655b68ccd
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
angramainyu74/fettler
3457feffed6189072312e073773fad082ff99612
ad4ebfe8660f2a2911d8f4c294984df22c1b6b91
refs/heads/master
2020-05-26T07:20:14.211266
2017-03-19T17:30:53
2017-03-19T17:30:53
82,468,795
3
1
null
null
null
null
UTF-8
Python
false
false
4,776
py
random-map.py
#!/usr/bin/python import sys import json import random import time squares_per_side = 6 mapx = 9 mapy = 6 timeout = 5 connector_bias = 0.99 # chance to favour selecting tiles that have more connections, 0.0 for no bias #------- tile_total=mapx*mapy if connector_bias > 0.0: timeout *= 4 random.seed() with open('fin...
6c2c12aa6e91b6431f6eb536159c0188152f8033
c3f4eb0189bc9c91e54bdb8bb52bce5bc95f9dd2
/lib/cfg.py
727d6959c5e03884f1f5a3a3647f2cfa7ccef078
[]
no_license
Diatronmax1/Clairxo
b98bcbaefe61ddd0fde8b0458147d2f203187c3c
b2aa2d149f563146120274fab0b567b3bf43db78
refs/heads/master
2020-12-26T14:53:21.164195
2020-02-01T00:27:49
2020-02-01T00:27:49
237,543,867
0
0
null
null
null
null
UTF-8
Python
false
false
4,796
py
cfg.py
import pickle import os from shutil import copy2 class CFGFile(): def __init__(self, path): self.name = '' self.path = path self.serverFolder = '//azmain/data/Transfer/LambertC/QuixoServer/' self.userPath = self.serverFolder + 'users.txt' self.transferPath = self.serverFolde...
9551410c5a4d472fc4a329b6f162522fab6ee11c
cc882424ef5bd004ddf6bb9ecb177b041210e578
/Algorithm.py
fc8d9c1e3e47f061e2061582c7a875c82aadd505
[]
no_license
abhi811/Airfoil-shape-optimization
d668a5b488ac643a2020d930dd84eb7656f995bc
70a4c4ef73a379666e351e105a0a8079f62ceb48
refs/heads/master
2020-06-01T19:20:32.058105
2019-06-09T04:45:53
2019-06-09T04:45:53
190,898,770
1
1
null
null
null
null
UTF-8
Python
false
false
4,547
py
Algorithm.py
import random from math import * from AirfoilShapeGeneration import * from xfoil_dat import * import sys import os filelist = [ f for f in os.listdir(".") if f.endswith(".dat") ] for f in filelist: os.remove(f) # print f filelist = [ f for f in os.listdir(".") if f.endswith(".log") ] for f in f...
00bbef7e407f276aba47a1b77d07966e9d88262d
9ed52f40dc3b62a5def8745ebf8bd5eaf72c630c
/final_project/rosa/player.py
3f4c9f0ea25404ecebf3630fc3a96bb0f33b1fef
[]
no_license
tzuhsuancheng/Programming-for-Business-Computing
5ed24f08e5372bf244be4f8054862e412c1c5384
6152b9c270392814d53fde2375fa649aee262675
refs/heads/master
2020-07-14T15:07:46.127256
2019-08-30T17:20:07
2019-08-30T17:20:07
205,340,242
1
0
null
null
null
null
UTF-8
Python
false
false
6,629
py
player.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 12 18:19:22 2019 @author: Howard-001 """ import pygame as py from pygame import * import random class Player(py.sprite.Sprite): x = 100 y = 460 road = 3 road_height = 57 boost = False def __init_...
7edd168a9b85c76d423e7eae47b143ca9ef82963
3d76b4e3fb7ed91558cdf4f1bdbd69d9ca7b52bc
/utilities/recommender_backend.py
deb5026cd30f4915189ff12da83efeb27f248cec
[ "MIT" ]
permissive
Puneethnaik/recommender_system
3ab3b8e9f4dea559453a9d9650235920c0d31413
ca52d0b839452e389a3a56fd7549af4f47e1aea2
refs/heads/master
2022-12-22T21:28:22.178620
2020-08-10T04:51:07
2020-08-10T04:51:07
142,377,181
1
0
MIT
2022-12-12T01:55:43
2018-07-26T02:23:35
HTML
UTF-8
Python
false
false
763
py
recommender_backend.py
import Recommender import sys import json def read_in(): lines = sys.stdin.readlines() return json.loads(lines[0]) ''' this is the bridge between nodejs and python arguments made by the nodejs backend :argv1 : userID :argv2 : number of neighboring users needed :argv3 : number of movies ...
28514f1978dcd679b30863b2e4ecc6c267e194a2
a6527182850a62316aaf87c1d7f4f2986324fae3
/week3assignments.py
21c7f736bcaaacd4fbb97166b2794b4ebc572a1e
[]
no_license
jintianshang/jintianshang2
dcbaf794864f0b9b60a2d0e5c36f34ed37166136
dfc2870e40ac388bcb049c7204cf15533adcf687
refs/heads/master
2021-05-23T12:26:08.026424
2020-05-09T16:25:20
2020-05-09T16:25:20
253,285,478
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
week3assignments.py
import random r = random.randint(1, 9) messages1 = ['Concentrate and ask again', 'My reply is no', 'Outlook not so good', 'Very doubtful'] messages2 = ['It is certain', 'It is decidedly so', 'Yes definitely', 'Reply hazy try again', 'Ask again later',] def getAnswer(answerNumber): if ...
14ca88ff0a6bb721fc5abe0b238d88eb406e7b81
95aea376b1d2bb1cec424a7a64ab625fb4a83651
/eit_pipeline/tasks/io.py
c15e3b091a9830b89a5101116c6683ff25ba782e
[]
no_license
dgrims/imaging_prefect_pipeline
b76054ac31598c133c29c632e629e2d9823d47fc
a07f1144c44816a07f066b80828be0a4721a40e9
refs/heads/master
2022-11-11T02:42:42.292358
2020-06-10T19:04:02
2020-06-10T19:04:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
io.py
from prefect import task from rydanalysis import AbsorptionImaging, OldStructure, ExpSequence, ReferenceAnalysis, RectangularMask, EllipticalMask from pathlib import Path from eit_pipeline.functions.xr_utils import remove_multiindex import xarray as xr @task def seq_from_old_structure(path): assert Path(path).is_d...
745e990aeb5cdff87344394f6f6dc1378d8e6bc0
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/_downloads/33afb12cc8627dba1bc2540f3e949b70/pythonic_matplotlib.py
49f9a8cac624db34b22e8091a424ca4008a6fe29
[]
no_license
matplotlib/matplotlib.github.com
ef5d23a5bf77cb5af675f1a8273d641e410b2560
2a60d39490941a524e5385670d488c86083a032c
refs/heads/main
2023-08-16T18:46:58.934777
2023-08-10T05:07:57
2023-08-10T05:08:30
1,385,150
25
59
null
2023-08-30T15:59:50
2011-02-19T03:27:35
null
UTF-8
Python
false
false
79
py
pythonic_matplotlib.py
../../stable/_downloads/33afb12cc8627dba1bc2540f3e949b70/pythonic_matplotlib.py
e9c7830689c7c619c7c907ffa3821dde230bb8bd
b6fac7637506df806e2e6f39fc5cdc382bf87a54
/learn.py
06ea160f9a640bbffc414aa28bc880d799774b96
[]
no_license
dwt136/WTFS
78a970d612d9d0ce77ef03713bf72b7c9f732b03
f5f0c0f0e1d61fff2d89f50f6f51a1540f42e52a
refs/heads/master
2016-08-11T09:24:01.898992
2015-06-07T11:42:13
2015-06-07T11:42:13
36,856,259
0
0
null
null
null
null
UTF-8
Python
false
false
8,793
py
learn.py
from gevent import monkey; monkey.patch_all(dns=False) from const import * from pyquery import PyQuery as pq import requests import urlparse, urllib, urllib2, cookielib import gevent import re import os import random import mimetypes import string _BOUNDARY_CHARS = string.digits + string.ascii_letters forbidden_file_...
07576e81a401c71123b9e04a8ef01cafc1702b89
d5328dabe3381e391a98a1f42dc5059fe71fb439
/python/route/t2.py
52133dab675105a02219de6210d1a52f81c4d5a6
[]
no_license
defrank/playground
98feba92cc7868e505cff37d8cd7171b6885f3b0
91f8418bd8ee52bced83cb8721ceb79e7b519eb9
refs/heads/master
2022-11-28T08:30:19.295004
2020-08-04T22:54:58
2020-08-04T22:54:58
285,118,571
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
t2.py
from typing import Dict, Set AIRPORTS: Set[str] = { # name of airport } TICKETS: Dict[str, Dict[str, int]] = { # src: {dest: count} } def k_hops(start: str, destination: str, a: int) -> bool: """ n airport m tickets: * origin * dest exactly k flights O(n^k) where n is number of...
1fbea6e634a8c5861a68c66d98f2819377f4689a
4f10d383f1e46a07500e80d8e0a182f95dbc9506
/MIklTest2_Week2_17_ Checkers.py
d028cdb3aead540a226200cab185c893adcf21eb
[]
no_license
michail82/TestMikl
d8c6ee9181f9427464c5a44e6e651883e8b2a6db
b36a06366d4d5b55b35056b5617521479b684e0d
refs/heads/master
2020-09-01T10:00:53.149294
2020-05-06T08:32:09
2020-05-06T08:32:09
218,935,852
0
0
null
null
null
null
UTF-8
Python
false
false
2,454
py
MIklTest2_Week2_17_ Checkers.py
a = int( input() ) b = int( input() ) c = int( input() ) d = int( input() ) if a <= c and b <= d: if a % 2 == 1 and b % 2 == 1: if c % 2 == 1 and d % 2 == 1: print( "Yes" ) elif c % 2 == 0 and d % 2 == 0: print( 'Yes' ) else: print( 'No' ) elif a % 2 =...
38d6ffedbc8302bc3f617c03cf00fa70d69a836f
1e4e9925a6a7c2b0c975a68ca33eaa42ce3a455e
/Ch08/serena_counter.py
feeeffddfd6fb481f112f79bcb78bb246fa1c74b
[]
no_license
jtwool/mastering-large-datasets
b5b1291a0056974dc793dfeaf73d1c6a6277fa4d
dfe78716cbd4150c2facc95035e00c2f6c15a16d
refs/heads/master
2022-12-11T23:27:27.136918
2020-10-06T12:10:06
2020-10-06T12:10:06
220,113,563
66
31
null
2022-12-08T05:23:39
2019-11-07T00:00:46
Jupyter Notebook
UTF-8
Python
false
false
579
py
serena_counter.py
from mrjob.job import MRJob from functools import reduce def make_counts(acc, nxt): acc[nxt] = acc.get(nxt,0) + 1 return acc def my_frequencies(xs): return reduce(make_counts, xs, {}) class SerenaCounter(MRJob): def mapper(self, _, line): fields = line.split(',') if fields[10] == 'Serena Willi...
bfd4c5174c9d6e6796b98602acc3d3d3717a02be
920f3d19d20ebe550353cb8239813a5c39c40995
/empresa_xyz/migrations/0008_auto_20181118_1831.py
92b8f9ae2eae982acfbdc409a525014b8aba0071
[]
no_license
Lenmarck/EBI_Test
370d852663849f3c932e8714d44f760eeccf422c
cfa74afda98352160a396fd30abc88a633ef79f0
refs/heads/master
2020-04-07T06:52:45.449920
2018-11-19T03:40:23
2018-11-19T03:40:23
158,153,868
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
0008_auto_20181118_1831.py
# Generated by Django 2.1.3 on 2018-11-18 18:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('empresa_xyz', '0007_auto_20181118_1831'), ] operations = [ migrations.AlterField( model_name='servico', name='comiss...
cda2e4e431c933c29aab21797926b145d30e75a8
7d7d0f2586be35ffa6a459a8683f23963bc5a191
/Projeto1/e.py
99dd17529d966d425a2d984f13ea829aa32a5d67
[]
no_license
29medium/PL_Project
945b3308bc4f6d4526378a6ff0a209701aa237fe
bba4fdd9545da40f3a645bec0f50b6797ccacc2e
refs/heads/main
2023-05-05T21:51:35.070067
2021-05-30T22:10:35
2021-05-30T22:10:35
342,917,462
0
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
e.py
import re from graphviz import Digraph dot = Digraph() processes = set() idP = 0 def incrementa(): global idP idP += 1 return str(idP) while True: data = input("Introduzir ano >> ") try: data = int(data) break except ValueError: print("Valor Inválido") familyRE = re.c...
f79d557db48226e8f9d53ea2a8447c4453106d0b
3d8d2a74832fe5126ea03e3c5d988b3a59e689d6
/ex13.py
bbfe8ccd79d80d9680969c5392a140a6de51777c
[]
no_license
chriskylin/mystuff
e721aba9ff2d409f536e5e22ccf5cac3b46b4cee
64694385a120a65081f93420d708c141567bfd01
refs/heads/master
2020-03-10T12:20:51.866205
2018-04-25T08:52:17
2018-04-25T08:52:17
129,375,989
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
ex13.py
from sys import argv script,first,second,third = argv print ("The script is called:", script) print ("Your first variable is:", first) print ("Your secod variable is:", second) print ("Your third variable is:", third) score = input(script) print (score)
e1e571b9039017167e20a9a505fc2c6efd38926c
67839677da32a4d5afa5e3595206949b0297767a
/examples/ge_example/ge_example/repo.py
3f5f58b02161dd003996fceaa69bc21b16e4bf7c
[ "Apache-2.0" ]
permissive
nikie/dagster
c7c10f2fe8c388e9173fa90c51c540e0616b3a9e
c33387d987a0f8f223ea0e540cd1977a74e81635
refs/heads/master
2022-08-29T11:10:07.623296
2022-07-30T05:15:52
2022-07-30T05:15:52
226,950,944
0
0
Apache-2.0
2019-12-09T19:30:57
2019-12-09T19:30:57
null
UTF-8
Python
false
false
129
py
repo.py
from dagster import repository from .ge_demo import payroll_data @repository def ge_example_repo(): return [payroll_data]
7deb022f9edf65498270377e2895215483886cad
8721461ff8c2b916c9eb6cb94b078beda2805df8
/frequency2size_chart_creator.py
0e4abbc468db5c82e155c695b70c74e823c7628a
[]
no_license
mariahayder/sp_icp_ms_result_manager
c14648fbc212d16fdd374278b8ba5fcd198d4de3
7277753ba329b10181ca83eebe1675b2e9e12b91
refs/heads/master
2022-12-27T21:59:39.634255
2020-10-01T14:28:00
2020-10-01T14:32:52
300,304,874
0
0
null
null
null
null
UTF-8
Python
false
false
2,714
py
frequency2size_chart_creator.py
#-*- coding: utf-8 -*- from openpyxl import Workbook, load_workbook from openpyxl.chart import BarChart, Series, Reference from openpyxl.chart.layout import Layout, ManualLayout import os from find_smpl_number import * from find_true_smpl_name import * from smpl_grouping_by_content import * import string #FILENAME='0...
db8d096c04d800e2ec1d0792cdd51e7e696bd230
9fcdc32375a4e56e608427ec2247caf186a09f0c
/androcg.py
064b4459473212ca522e85c0343cf9c98f435375
[ "Apache-2.0" ]
permissive
chubbymaggie/androguard
e430faaf662fc0e19a3ba08a2faf4d411f2bd4d5
c44938ae2886d8729138c6d27e9e29d457219bba
refs/heads/master
2020-04-06T04:47:37.628748
2018-12-03T10:06:52
2018-12-03T10:06:52
24,182,634
0
0
Apache-2.0
2018-12-03T10:06:52
2014-09-18T09:43:26
Python
UTF-8
Python
false
false
1,747
py
androcg.py
#!/usr/bin/env python3 from argparse import ArgumentParser from androguard.cli import androcg_main def create_parser(): parser = ArgumentParser(description="Create a call graph based on the data" "of Analysis and export it into a graph format.") parser.add_argument("APK", nargs=1, help="The APK ...
b64dc47ae25facbf134da6e85d809030f71cf570
7edd1e840e638890df15a6474195c3729ef29e82
/src/friday/hands/teclado.py
73ffbec49313e32af0f75d2017a8ae6eb0ad6a0b
[]
no_license
ghardoim/goku
5e61c1650655b0e17f466b7aa6b748dec93ff2ed
3ad9361f3eecb94a09b66b7a0ae45486980136c8
refs/heads/master
2023-02-27T20:53:50.671395
2021-02-02T01:15:34
2021-02-02T01:38:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
teclado.py
import pyautogui as auto import pyperclip as clip import time as time def ctrl(letra, shift = ""): auto.hotkey("ctrl", shift, letra) def alt(tab = ""): auto.hotkey("alt", tab) def tecla(letra): auto.press(letra) def esc(tempo): time.sleep(tempo) auto.press("esc") time.sleep(tempo) def enter(tempo): t...
cd630931c0f9f05838c76775abb2c955c8e5d778
5af5dead49bc2007ceffe90b69a37c9d347b8388
/fund info/fund_infoV1/DatabaseHandler.py
9e19ce3ead3cf286f0f1fa18975129a719a9a682
[]
no_license
nettik/spiders
14695cc858e8c32adc887fdccb7aedc0242043ba
2570feee8ea676c7165f56bf80dfcab50535c345
refs/heads/main
2023-04-17T18:06:17.592191
2021-05-02T12:56:47
2021-05-02T12:56:47
362,474,477
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
DatabaseHandler.py
import pymysql class DatabaseHandler(object): def __init__(self, host, username, password, dbname): self.__host = host self.__username = username self.__password = password self.__dbname = dbname self.__conn = pymysql.NULL self.__cursor = pymysql.NULL def __de...
22264aa07e95b3f1a602bbd3178a64084946eeef
38326821bca19e3cfdfb07c56c85c0d5688807d1
/gsheet.py
b14286f731bf2af0d8176ca037017534db0fd7a6
[]
no_license
Mailstorm-ctrl/StratBotPublic
ce998dc06234bce02611867b7bed045b53433e4f
922a4b9872e8d79c53d46fd4cf7d8498161c45b7
refs/heads/master
2020-06-22T06:52:40.154962
2019-06-25T01:56:40
2019-06-25T01:56:40
197,663,904
0
0
null
2019-07-18T22:16:23
2019-07-18T22:16:23
null
UTF-8
Python
false
false
686
py
gsheet.py
import gspread from oauth2client.service_account import ServiceAccountCredentials from itertools import zip_longest class Sheet: def __init__(self): scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive'] creds = ServiceAccountCredentials.from_json_keyfile_name('StratRouletteK...
e3aee31fc29f0d5b38a3c1cd77b09d133fe47788
759df8c3a0333a47b79335a34423f4f2e4c3e8bf
/day2/day2_part1.py
121cf1341ba6ffe9213475dad260168c42ff6f79
[]
no_license
semajson/aoc2020
06cf0c4ed464ccb62ab5d0814e224c33d22489a1
1c44288927173d2741a4fa20751f74f7e51b1f16
refs/heads/main
2023-02-13T20:20:55.230460
2021-01-03T21:31:38
2021-01-03T21:31:38
318,312,943
0
0
null
null
null
null
UTF-8
Python
false
false
1,815
py
day2_part1.py
import sys sys.path.append("./..") from utils import time_algo # Part 1 def get_input(filename): my_file = open(filename, "r") content = my_file.readlines() return [line.rstrip() for line in content] class PasswordRule: def __init__(self, lower_limit, upper_limit, letter): self.letter = st...
2407dde00f54001353782943ee9e250770542e7a
37b3683df6b23a0f4cba04585774bd201b33a2b9
/spotify_stats/migrations/0004_alter_stream_id.py
f2ddd6a92ab0b9d70b90ac46356d87af7be928e9
[]
no_license
Krzysztof21/SpotifyStats
09470058dc460d49cba07dcd4f52e15a7c608f19
95120c17783b6f17b2979ad485caf61b7f572778
refs/heads/main
2023-08-22T04:55:13.685661
2021-09-04T10:12:35
2021-09-04T10:12:35
393,110,351
0
0
null
2021-09-02T17:21:11
2021-08-05T16:33:52
Python
UTF-8
Python
false
false
445
py
0004_alter_stream_id.py
# Generated by Django 3.2.5 on 2021-08-01 09:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('spotify_stats', '0003_alter_track_id'), ] operations = [ migrations.AlterField( model_name='stream', name='id', ...
cfe1bddc8ed35e5a5b3f93e18743344907c22724
eb52de1cb511baec52178d47e5a8f6c70ea62720
/UnicodeInfo.roboFontExt/lib/jkUnicode/aglfn.py
8bfc523b9cdd535d898ec9ce36825190fecd8d40
[]
no_license
jenskutilek/RFUnicodeInfo
dd28ae526fb4012dac74b44a27707854e311221c
75aa23cfc9fb81267c5f319f0f05711798ae302c
refs/heads/master
2021-12-27T15:08:49.961184
2021-10-21T09:29:15
2021-10-21T09:29:15
79,478,362
5
1
null
null
null
null
UTF-8
Python
false
false
1,448
py
aglfn.py
# -*- coding: utf-8 -*- from re import compile from .aglfnData import nameToUnicode # Build reverse dictionary unicodeToName = {value: key for key, value in nameToUnicode.items()} def getUnicodeForGlyphname(name): """Return the Unicode value as integer or None that is assigned to the specified glyph name. I...
7015b3ad96acc2d2baeab4d9aec1302c8b9b2c00
f377aae61e7ce8409f94339224eba44d0298de53
/My First Game Using Python.py
f31e16f3de8656e8c46f7000c11756e83d89df05
[]
no_license
dhruv4500/Python-Doctor
af7a88cd3316216e7cc11bd6869bb77f327107b2
330697b42de802290289ac81f5297a6b5854a359
refs/heads/main
2023-04-30T15:23:56.598663
2021-05-18T09:09:12
2021-05-18T09:09:12
368,467,291
0
0
null
null
null
null
UTF-8
Python
false
false
3,187
py
My First Game Using Python.py
# My First Game Using Python #Game On Squaring numbers #Patterns, Table of a number, Printing a factorial #And a report Card """Following is for asking normal ...
3680aec32bd310f9eaae2e2c95f9c48b8cfd6422
3e7f58f18e2ca6b32ff4786451628322880bc2dc
/RubicCube.py
ad3a030c736327bcda7f40842ca16a1e2302e968
[ "MIT" ]
permissive
a52hepof/RubikCube_2021
b0387c357cccac32ffe0ca13553db7b440cb9960
835cebdb4a7a7c2239eac68801226e7b9bd02268
refs/heads/main
2023-04-06T18:41:20.845694
2021-04-08T08:39:56
2021-04-08T08:39:56
344,847,282
0
0
MIT
2021-03-05T15:10:10
2021-03-05T15:10:09
null
UTF-8
Python
false
false
26,038
py
RubicCube.py
import numpy as np class RubicCube: def __init__(self): # For debugging purposes, it is interesting that each little face has a different name self._top = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']] self._left = [['j', 'k', 'l'], ['m', 'n', 'o'], ['p', 'q', 'r']] self._front...
84690866df406bbb41fd72d784589f857aa2effb
9a885bafb312c875a409f3ec8d0619ffe511cc17
/PyMieScatt/Inverse.py
66c8e8d8fbb9b7bc9dbacf192beff2520960ab4b
[ "MIT" ]
permissive
bsumlin/PyMieScatt
071e4f96a68d6a8326ddfae2e169c52994c82a81
68452856dd1e712d1f5b10a5a01ae0230255db95
refs/heads/master
2023-04-07T06:47:12.331866
2023-04-03T18:05:45
2023-04-03T18:05:45
97,879,552
98
41
MIT
2021-05-25T14:03:09
2017-07-20T21:26:22
Python
UTF-8
Python
false
false
32,549
py
Inverse.py
# -*- coding: utf-8 -*- # http://pymiescatt.readthedocs.io/en/latest/inverse.html from PyMieScatt.Mie import Mie_ab import numpy as np import matplotlib.pyplot as plt from matplotlib.contour import QuadContourSet from matplotlib.collections import LineCollection from scipy.ndimage import zoom from scipy.integra...
d55997fae0be30afee01599b70388b01dfe7d6ac
7d253d471e6bac1ed98bb25643cfe22a5c338660
/Google-Code-Jam-2012/qualificationA.py
1404de194703827d9537b04c6173b127232dc439
[]
no_license
bitoffdev/contestCode
8987fea7dde8e3366ac11f23ceead3d1b5a6def4
61b1653d34e42bdbccf170b04ec069930e4e69de
refs/heads/master
2021-05-26T18:36:13.107283
2013-11-19T01:26:29
2013-11-19T01:26:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
qualificationA.py
#Google Code Jam 2012 Qualification Round #Problem A. Speaking in Tongues from sys import argv script, infile, outfile = argv data = [line.rstrip('\n') for line in open(infile)] data.pop(0) english= " abcdefghijklmnopqrstuvwxyz" google = " ynficwlbkuomxsevzpdrjgthaq" i = 1 output = open(outfile,"w") for item in data: ...
e1a4706c7f85258c303bb830806e0d35a8323758
f8247cf2abc435b63a9bbe8d56c959c95a18cbd8
/neighbours/models.py
18d9f82fca75646b06c8a4c3050c821ffb87c47e
[]
no_license
ekirill/example_neighbor_search
be8aa7432833ab34d98d909679971e1a51801144
33e71daa6a63f411423810eb580c54edc2d7b190
refs/heads/master
2020-03-23T14:45:39.646088
2018-08-15T21:19:28
2018-08-15T21:19:28
141,697,488
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
models.py
from .application import db class Member(db.Model): __tablename__ = 'members' name = db.Column(db.String(128), primary_key=True, nullable=False) x = db.Column(db.Float, nullable=False) y = db.Column(db.Float, nullable=False) def __init__(self, name, x, y): self.name = name self.x ...
85e9253fa95c6380ec8f91f8034881038c4e1961
5a614e44e0ccb93712be8be53a2c1b10577418c5
/tumblog/blog/views.py
22dbb2bc8cebf01afe1790a31492ab7641a9cbeb
[]
no_license
G-C62/tumblog
588864c0f7a4b595f2897869fdb27ca99c9b0e08
18bde44e5adc8dfecc52724c0c1ba7fe1e28d386
refs/heads/master
2021-04-26T14:44:25.715296
2016-04-05T07:33:44
2016-04-05T07:33:44
54,947,632
0
0
null
null
null
null
UTF-8
Python
false
false
4,564
py
views.py
from django.shortcuts import render from django.http import HttpResponse from django.shortcuts import redirect from django.shortcuts import get_object_or_404 from blog.models import Post from django.core.paginator import Paginator from django.core.paginator import PageNotAnInteger from django.core.paginator import Empt...
7adca63431a50f124f878a0e1363f2db0f1c0d7b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03085/s555859269.py
250f33e271085c83a4b5cb2484980e40bbdbad7b
[]
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
604
py
s555859269.py
# AtCoder 星には四種類の塩基 A, C, G, T が存在し、A と T、C と G がそれぞれ対になります。 # 文字 bが入力されます。これは A, C, G, T のいずれかです。塩基 # b と対になる塩基を表す文字を出力するプログラムを書いてください。 # 標準入力から 文字列 b を取得する b = input() # 塩基 b と対になる塩基を探して出力する output_srt = 'None' if b == 'A': output_srt = 'T' elif b == 'C': output_srt = 'G' elif b == 'G': output_srt = 'C'...
28690b8b11080e82fdf6ec1b5c83e2d6e10b18ad
262dc6801faec271a91de9d928f9b63e93c80409
/zmq_video_python/server.py
7e8700ec220e65b99ef05c0d3cc6def7aef7836b
[]
no_license
Greendogo/zmq_opencv_video_examples
0255674118026555ee0812a3f281d960a84992f4
6a52dfcc6c1e8906ff0643ff0d67ac7fbaad314c
refs/heads/master
2020-12-03T06:44:23.017123
2017-06-29T02:02:04
2017-06-29T02:05:50
95,725,785
1
0
null
null
null
null
UTF-8
Python
false
false
716
py
server.py
#Based on code found on this Stack Overflow post: #https://stackoverflow.com/questions/43817161/how-to-send-opencv-video-footage-over-zeromq-sockets import cv2 import zmq import base64 context = zmq.Context() footage_socket = context.socket(zmq.PUB) footage_socket.bind('tcp://*:20') footage_socket.setsockopt(zmq.CONF...
cdeeae9c96fb56a29d205b88b7985e42fbc82f19
6423c6e91e16c717566c02d318081b876709bf70
/study_django/comments.py
70d85daf27234303e0092f104977332a31b55fdb
[]
no_license
JogSottot/study_django
3e43907626bf595f911197656b4b6449734f234d
830b739e02c6ab4e810cbcb0e8edfe1dfd5c225c
refs/heads/master
2016-09-13T17:21:45.001171
2016-05-19T21:32:44
2016-05-19T21:32:44
59,244,176
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
comments.py
#Create project "mysite" # C:\Users\nazarenkov\Documents\PYTHON\Projects\Django_sentdex_tutorial>django-admin startproject mysite #run server # C:\Users\nazarenkov\Documents\PYTHON\Projects\Django_sentdex_tutorial\mysite>python manage.py runserver #stop server ctrl+fn+Insert(pause) #run(add files) new app "webapp" #...
796135b15a723b0e6ca00dc07e529df2e7fb3d7a
9dba16d2b7b4090cf2ddf877041a4ee2cd726112
/agents/agents.py
45a35e49108d44bdb24470bd97491deaadbaf1db
[]
no_license
nathan-miller23/cs285_proj_gridworld
56b5dbf5af88ac238789e49e24cbc9359e0285d3
e7db3cb4947a2089f4ecde60ef364e44259e46c4
refs/heads/main
2023-06-09T19:02:53.544216
2021-06-14T20:45:39
2021-06-14T20:45:39
317,424,286
0
0
null
2020-12-21T07:31:00
2020-12-01T04:28:42
Python
UTF-8
Python
false
false
569
py
agents.py
import numpy as np class Agent(): def __init__(self, observation_space, action_space): self.observation_space = observation_space self.action_space = action_space def action(self, observation): probs = self.action_probs(observation) return np.random.choice(len(probs), p=probs)...
4fc5276b0cbf34889547e495223e57a15c90165b
7aecab27c231c5207f26a1682543b0d6c5093c06
/server/dancedeets/util/deferred.py
c53741fd231fbd439d6ce6b6fc6ee7e568e3f889
[]
no_license
mikelambert/dancedeets-monorepo
685ed9a0258ea2f9439ae4ed47ebf68bb5f89256
4eff1034b9afd3417d168750ea3acfaecd20adc6
refs/heads/master
2022-08-10T07:16:32.427913
2018-04-15T22:05:58
2018-04-15T22:05:58
75,126,334
24
2
null
2022-07-29T22:28:45
2016-11-29T22:04:44
Python
UTF-8
Python
false
false
325
py
deferred.py
from google.appengine.ext.deferred import * from google.appengine.ext import deferred def defer(*args, **kwargs): # Since defer() itself adds in a target header regardlesss, # we cannot pass in a hostname here at all. kwargs['_target'] = taskqueue.DEFAULT_APP_VERSION return deferred.defer(*args, **kwa...
a5079edfc1df5c3080801072184f53aa6aab8442
3119bda86736a216b5847b9d00fd7f65ea7f8646
/MHD/FEniCS/MHD/Stabilised/SaddlePointForm/Test/SplitMatrix/ScottTest/Lshaped/Laplacian/Lshaped.py
ea219a7c8958eb882b83c3631f8f4dfbe2baf560
[ "MIT" ]
permissive
wathen/UBC
5004f0c1c81d0ab931d3269d09b562b78553af59
35524f40028541a4d611d8c78574e4cf9ddc3278
refs/heads/master
2021-09-18T15:50:28.820698
2018-07-16T22:44:30
2018-07-16T22:44:30
56,339,239
3
3
null
null
null
null
UTF-8
Python
false
false
38,558
py
Lshaped.py
import petsc4py import sys petsc4py.init(sys.argv) from petsc4py import PETSc import mshr from dolfin import * import sympy as sy import numpy as np import ExactSol import MatrixOperations as MO import CheckPetsc4py as CP def Domain(n): # defining the L-shaped domain # domain = mshr.Rectangle(Point(-1., -1.)...
97b551d15f9c06fa0535fb6fa9033d1d554700aa
82105a9401e69aa93bfbbd665d67642f54ba9b0e
/fetchwx.py
3edad16ad3ad767d40e443f8cd9eda85deb90eaa
[]
no_license
jairpinho/ESP8266-WiFi-Marquee
5efe1bb834c4ed2c040a31560e37255f487d5c35
6fb51182c5684e38e51123ca377ddcacdf30ad5b
refs/heads/master
2022-11-26T09:20:42.099445
2020-08-12T15:55:13
2020-08-12T15:55:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,694
py
fetchwx.py
import urllib, json # DEFINE HOST TO QUERY host = "10.0.1.10" # GATHER THD DATA (TEMP,HUMIDITY,DEWPOINT) url = "http://" + host + ":8080/json.htm?type=devices&rid=6" response = urllib.urlopen(url) data = json.loads(response.read()) thd = data["result"] # GATHER WIND DATA (WIND,SPEED,DIRECTION) url2 = "http://" + host +...
7fa950aa11212c4f64f67ce384fb4bbbb3b59a3b
543e4a93fd94a1ebcadb7ba9bd8b1f3afd3a12b8
/maza/modules/payloads/cmd/php_reverse_tcp.py
2592569126b0fd94ad593db734e2aa1ea03caed4
[ "MIT" ]
permissive
ArturSpirin/maza
e3127f07b90034f08ff294cc4afcad239bb6a6c3
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
refs/heads/master
2020-04-10T16:24:47.245172
2018-12-11T07:13:15
2018-12-11T07:13:15
161,144,181
2
0
null
null
null
null
UTF-8
Python
false
false
582
py
php_reverse_tcp.py
from maza.core.exploit import * from maza.modules.payloads.php.reverse_tcp import Payload as PHPReverseTCP class Payload(PHPReverseTCP): __info__ = { "name": "PHP Reverse TCP One-Liner", "description": "Creates interactive tcp reverse shell by using php one-liner.", "authors": ( ...
a4c0746bf613d0bdb7d71c5fe690776c4f4a31e4
b0d46f5a12241c0a02382498c8d2c9539faadfac
/getFavs.py
adfbca0e0fe94911a3f07bd34d1bb669cebe9a39
[]
no_license
elhorowitz/Craigslist_Python
0dc04432eef7b72e0007ee2fdce8e81e0115ed52
7569f5d5d2c18c27055109d6752d7b52a4967d6f
refs/heads/master
2021-01-15T18:46:13.958523
2014-01-20T18:31:19
2014-01-20T18:31:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,572
py
getFavs.py
import urllib2, re, csv, time from BeautifulSoup import BeautifulSoup #Get your favs page def getFavs(url, cookie): realURL = "%s" %url + "favorites?fl=%s" %cookie # Get the main page script = urllib2.urlopen(realURL).read() # Parse it with BeautifulSoup tree = BeautifulSoup(script) ...
d9c49a63370859a0d4b8c94b2cb86ae1790e5ddd
98420fdd66b8dce46ef88cd34fcace36777fa232
/py3/venv_local_package_tests/start.py
95aa3843ddae5e272add0e4fc28dcf93d690182a
[]
no_license
Daiver/jff
f972fe7464f78ba6008a036b697ea3f04b7010a4
33d6a781af8d7f6ae60c25e10051977af2fef1b9
refs/heads/master
2023-04-07T06:33:41.487938
2022-05-03T10:07:32
2022-05-03T10:07:32
12,180,634
1
1
null
2023-04-03T19:25:00
2013-08-17T15:03:14
C++
UTF-8
Python
false
false
106
py
start.py
import test_package.awesome_module import test_package.awesome_module2 test_package.awesome_module.foo()
4d46665d76b3b3b3fcec1e3b19c4564209b7378c
76d7c737e7cdfa4b5388646230d773daca4a0ba7
/pg_pars.py
5a8440d38ebfb07387395574d4be3b988f001b1f
[]
no_license
Lysovenko/wd2epub
c48dcfea186eacc0bfa572bfebef66e8a355cbb2
06e2e544fab83147356b03fe3a06bc067b14b706
refs/heads/master
2021-01-10T19:04:54.663400
2015-06-11T17:02:33
2015-06-11T17:02:33
33,563,422
0
0
null
null
null
null
UTF-8
Python
false
false
30,163
py
pg_pars.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- "parse html page" # wd2epub (C) 2013 Serhiy Lysovenko # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or (at # y...
bf9af9436fca43668049ac51edac7e47a1f452f1
4bb4aa6494385266db9c1fb193ff889e2537ec01
/lastNameAndFirstName.py
4f73c182ff1b83f3a2ed8c41651eb6838afe6c35
[]
no_license
nywogud/python
cc0cb3382b36a4dcdb144642b95df845ac798f2c
d85cd14fada61dc6ad8a051e28367ea73a952322
refs/heads/master
2023-02-08T15:46:13.244611
2020-12-17T07:33:03
2020-12-17T07:33:03
312,201,399
0
0
null
null
null
null
UTF-8
Python
false
false
1,122
py
lastNameAndFirstName.py
def lastNameAndFirstName(*names): # 여러개의 리스트를 매개변수로 준다. for name in names: print("{} {}".format(name[0], name[slice(1,10)])) print() lastNameAndFirstName("제갈선희", "곽철용이", "김고오니", "고 광렬이", "저 아세요?") def vocaList(**words): # 여러개의 딕셔너리를 매개변수로 준다. for key, value in words.items(): print("{0}...
26641c3cd9d40c0d41fffd4322d1dd2976145c03
50e539aa32595a4ff429f0478532f52615b5d467
/FinalExam/Q2/FinalExamQ2.py
6685a6f115f60463f4205751b24b5032113453e5
[]
no_license
dawsboss/Math471
4fe233ae3027263e37ea98126ea27ee1f25b3ba0
931a01ab44fafc25e1a35d3f27011ccd8ae3e0b1
refs/heads/master
2023-01-28T01:18:26.069239
2020-12-14T16:55:07
2020-12-14T16:55:07
291,696,974
0
0
null
null
null
null
UTF-8
Python
false
false
2,818
py
FinalExamQ2.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 14 08:28:02 2020 @author: grant Find roots using Newton's Method 2. (50 pts.) Consider the function f (x) = x/2 − sin(x). Code Newton’s Method in Python to show that f has a root on the interval [1,3]. Also, write Python code which uses the Newton...
31d4297bd393149c07f8a01abe8be4f181f3da70
c240096b394399aeb755b3d0442b0410a17800ad
/wsgi.py
8b23c6154151a8b4bb1fb9d5cce2cb892c2462f3
[]
no_license
okam/botverde
158aecd0d8338b72383e2fa0533f98d16190052f
9237f15929aeedcbaf8856003b6b234180cd71ad
refs/heads/master
2023-03-22T18:21:04.329040
2015-09-30T17:36:36
2015-09-30T17:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,399
py
wsgi.py
#!/usr/bin/python2.7 # -*- coding: utf8 -*- import glob import os import StringIO import json import logging import random import urllib import urllib2 import tweepy import requests BASE_URL = 'https://api.telegram.org/bot' Token = '109206957:' #ticker bot VERDE #TOKEN = '110309400:' #rabit bot logging.basicConfig(l...
a16c2f23772195d4527c171a8eb67d1590e73671
bc77e2e06964679cdcfcea9697de5ec4f0f3d6df
/main.py
52a3d89b89e46b060d35ca08d779291460fb8d9d
[]
no_license
vteja10092001/Ping-Pong-game
7d11a3e769601ee3b04a04c5723e634fe57ff01f
a6194d42d71b2cd17229d0ebfd43079398e14239
refs/heads/main
2023-06-16T10:38:40.427951
2021-07-07T10:27:17
2021-07-07T10:27:17
383,757,534
0
0
null
null
null
null
UTF-8
Python
false
false
1,729
py
main.py
from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import NumericProperty,ReferenceListProperty,ObjectProperty from kivy.vector import Vector from kivy.clock import Clock from random import randint class Paddle(Widget): score=NumericProperty(0) def bounce_ball(self,ball): ...
ebb010ee0882ecdff969f04dcbd1845c431a6f5b
ff0f179276a386ded4f48eaafb9b9443bf3c48ce
/Poisson.py
e7a73b1d48a890f2a9fdba4cfddb164de9e6259f
[]
no_license
marinlauber/my-numerical-recipes
75401307b5dec50b7563f2f10e706c18f876b660
e3a14cce9e6f6a791a3b7f83b31bedded5d7c8d6
refs/heads/master
2021-03-02T13:35:58.232162
2020-11-13T15:01:06
2020-11-13T15:01:06
245,872,347
1
0
null
null
null
null
UTF-8
Python
false
false
1,351
py
Poisson.py
import numpy as np from scipy.linalg import solve_banded,solve import time from scipy import sparse # random profile def Gaussian(x, v=3., sigma=1.): return np.exp(-(x - v)**2 / (2 * sigma**2)) / (np.sqrt(2 * np.pi)* sigma) # number of grid points N = 100 # build ugly matrix print('scipy.linalg.solve() :...
bdb404de8eabd9fa1e1069d3c7b9d18161750701
455c3bf71ccb4ba1eb4a8751aa6b00cb4c070fb3
/testlio/tcpdump.py
9d507584fb2ea943cd131efb1e7256c94fc7575b
[]
no_license
angrycaptain19/testlio-automation-py
b6f3f4569c4bd2055efa60f7167714b380584c65
9836e46fd51d2869d6f0552fa16d3837920a5d05
refs/heads/master
2023-09-02T16:01:01.736142
2018-11-18T08:25:49
2018-11-18T08:25:49
428,675,675
0
0
null
2021-11-16T14:18:10
2021-11-16T13:54:37
null
UTF-8
Python
false
false
11,153
py
tcpdump.py
import threading import re import pytz from datetime import datetime, timedelta from time import sleep local = threading.local() class SearchOn(): PATH = 'path' BODY = 'body' def init(tcpdump_file_name='./dump.txt', host='pubads.g.doubleclick.net', time_zone_name='US/Eastern'): local.tcpdump_file_name ...
4a8bcd48e2f3fd75640ca7555b7af1ae5a20cf7a
a5f631b382e999cfcb3960a10a79f1ba950130fa
/Discrete3DHull_Pytorch.py
3ab05a154b4bb9f0ae6bc11050b62c677a8f7bb6
[ "MIT" ]
permissive
NoOneUST/BoatSimulation-PyTorch-Numpy
87ed5fb07dc0c1632c5abce4722d9720ddc20ccc
92094c7f1170eb6f2872b78444864d70d5857831
refs/heads/master
2022-04-04T08:19:16.267888
2019-11-03T16:11:30
2019-11-03T16:11:30
198,061,138
3
2
null
null
null
null
UTF-8
Python
false
false
17,086
py
Discrete3DHull_Pytorch.py
import itertools from matplotlib import pyplot as plt import numpy as np import torch from mpl_toolkits.mplot3d import Axes3D import os os.environ["CUDA_VISIBLE_DEVICES"] = "1,2,3" showMode = True finalMode = True degreeAngleList = [120, 140] def showMat(Mat): return Mat.cpu().numpy() RightMomentList = [0, 0]...
1a6f7d4313e5faee53c5431d6a5d105303f0c783
629ae0f8f78d3156d2660ac3d4aceb2bb2ce3338
/test3.py
586964d9a51d9d87f012350eca550506dbf11d34
[]
no_license
rahulmundwani/test_project
2d55429343a614247043469615239b1293cb1415
9d44b80106ad10fa01ce4b8fd50125eb79882b3f
refs/heads/master
2022-11-26T03:22:36.397506
2020-07-23T05:11:27
2020-07-23T05:11:27
281,597,576
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
test3.py
print("test3") print("modified in test branch")
3639083116a7e22cbc9f2b36aaa7d04821305c8a
6a1cb15713715e59709ba77100cb4c7663a6170f
/maas-bridge-precise.py
2cb12060c64849dc3938639f01acab53af4088d0
[]
no_license
dooferlad/jujuWand
c0d4c156b57aa446523a4b30ea9a133371af3724
abb8a297bd7837298c8c3cbbb536b757cd3931ab
refs/heads/master
2020-04-06T13:26:12.789375
2016-10-04T15:06:32
2016-10-04T15:06:32
45,688,872
0
1
null
2016-02-22T10:12:06
2015-11-06T15:09:45
Python
UTF-8
Python
false
false
214
py
maas-bridge-precise.py
#!/usr/bin/python3 from wand import bootstrap, clean def main(): controller = 'maas-precise' clean(controller) bootstrap(controller, params={'to': 'zoe.maas'}) if __name__ == '__main__': main()
1f82cec3b095a629ba44c931beb45874d5d66043
2a7f5332464657738472c45e4d42f5aaee151fe3
/flaskproject/forms.py
0d2f48822f02454e29ba1a78691cbf7484a73437
[]
no_license
PatrykDrzazga/SurgerySite
633bdea49d298c00517fc0e0efab427b2587c788
9953728d8cd493a81cc345ce9ac44bea7d416f72
refs/heads/master
2020-04-27T08:27:24.828001
2019-04-29T20:37:38
2019-04-29T20:37:38
174,171,063
0
0
null
null
null
null
UTF-8
Python
false
false
2,252
py
forms.py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, IntegerField, SubmitField, SelectField, SelectMultipleField, widgets, DateField, TextAreaField from wtforms.validators import DataRequired, Length, Email, EqualTo import datetime from flaskproject.models import User, Doctor, Visit from wtfo...
123cf967c367dfa33621e35c23b4e636454e977a
17141621e0ba9b69a7e9e2e6c55c05f4f05f6816
/Game2048/Edit_gif.py
4b4d9f1899bad7cdcf46a31f89c5789db50ed0a5
[]
no_license
Nathanesteve/project_2048
b88372a949842de02ce59de4c009ae5824bbc2e6
ad15fae5703a744b15f403e2fc521786425236d9
refs/heads/master
2023-04-20T17:04:36.685719
2021-04-25T21:55:03
2021-04-25T21:55:03
345,104,426
0
14
null
2021-04-19T10:47:25
2021-03-06T13:46:28
Python
UTF-8
Python
false
false
353
py
Edit_gif.py
import imageio from pathlib import Path # Create Gif and remove each .png file image_path = Path('Game2048/temp') images = list(image_path.glob('*.png')) image_list = [] for file_name in images: image_list.append(imageio.imread(file_name)) # Creates the gif in current directory imageio.mimwrite('Game2048/Your_g...
7849fb6a93184d80fd29d5dfb03522b53a2eb442
bdb3716c644b8d031af9a5285626d7ccf0ecb903
/code/reasoningtool/kg-construction/QueryHMDB.py
fc864bc0126fc36fba9311f97f62c48477ff15a7
[ "MIT", "Apache-2.0" ]
permissive
RTXteam/RTX
97d2a8946d233d48cc1b165f5e575af21bda4b26
ed0693dd03149e56f7dfaf431fb8a82ace0c4ef3
refs/heads/master
2023-09-01T21:48:49.008407
2023-09-01T20:55:06
2023-09-01T20:55:06
111,240,202
43
31
MIT
2023-09-14T16:20:01
2017-11-18T21:19:13
Python
UTF-8
Python
false
false
2,652
py
QueryHMDB.py
''' This module defines the class QueryHMDB. QueryHMDB class is designed to communicate with HMDB APIs (xml format) and their corresponding data sources. The available methods include: * get_compound_desc(hmdb_url) ''' __author__ = 'Deqing Qu' __copyright__ = 'Oregon State University' __credits__ = ['Deqing Qu', ...
4b240b3eada9a38fc45efc7781d09e69805d805b
8ed3b7d6f2afcba0162481235c67a51c6a0b0d83
/apps/suppliers/admin.py
e64089fdfbce0b4e53c440c7a7d54089b557f737
[]
no_license
jeszytanada/management_inventory_pjt
200c12d06f25e19a78c926e81d6ae05fcaa874d3
c2bf33cf5ea1e3194a4c5705c69296204a11ebd2
refs/heads/master
2021-01-12T16:37:23.976797
2016-10-26T05:40:03
2016-10-26T05:40:03
71,419,898
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
admin.py
from django.contrib import admin from .models import Supplier, SupplierContact class SupplierAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['supplier_name']}), ('Person', {'fields': ['supplier_contact_person'], 'classes': ['collapse']}), ('Other INFO', { 'classes': ('...
26748230a328e7c13aa7c46fd9c753897eb9462a
83f83c523130722ee930586e0cf14a902954a4a4
/WEEK 1/longestcommprefix.py
fb40e0023688926206fb1e73d3bf2b316d41328f
[]
no_license
bhavesh-09/addskilleetcode
d9921daa69dbbcbaaceb1396004fa2bddce7ed39
53748dffeaa54b956a029e4fdc8635b1a1f93dea
refs/heads/main
2023-02-09T22:04:37.091715
2021-01-04T06:57:39
2021-01-04T06:57:39
305,788,406
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
longestcommprefix.py
class Solution: def longestCommonPrefix(self, strs): if len(strs)==0: return "" m=len(strs[0]) for i in range(len(strs)): m =min(len(strs[i]), m) l="" i=0 while i<m: c=strs[0],[i] for j in range(1,len(strs)): ...
713f44c7ab23c7702a962f1a063ded8f2203773b
770d460598e8defedade74a722ccc2980e8e6382
/theta_13tev_global/AutoTHETADatacard.py
1b6d9c4293eac653d8e392775d0892ea54ac6926
[]
no_license
pmandrik/FCNC_tqg_stat
e7d34a4f85d490017e26e76472a0e9ad48380c77
3a1566589d77a3b3f55c667762db6a13fa435239
refs/heads/master
2021-08-22T08:07:19.976753
2021-06-15T11:58:59
2021-06-15T11:58:59
185,886,259
0
0
null
2021-05-11T12:29:17
2019-05-09T23:37:25
C++
UTF-8
Python
false
false
22,617
py
AutoTHETADatacard.py
# -*- coding: utf-8 -*- """ ///////////////////////////////////////////////////////////////////////////// Author : P.S. Mandrik, IHEP Date : 13/03/17 Version : 0.5.0 ///////////////////////////////////////////////////////////////////////////// Python module AutoTHETADatacart.py pro...
673fcff3a8c647686d239c1fb89a2f50ccc085a9
91628f217b4dab7036b4f658672bab9c96ac1047
/codeshool/lesson01.py
8ff12d14489b587f9bcb068de83b260201fee714
[]
no_license
r3mas/python_tutorial
37f1c568f645c1d743968bd71dd8729521c10f89
74744ac38dbeef51b6ff39221e4de32ec14603b4
refs/heads/master
2021-01-13T04:41:15.960883
2018-01-18T17:09:43
2018-01-18T17:09:43
79,503,417
2
0
null
2018-01-18T17:09:44
2017-01-19T22:54:30
Python
UTF-8
Python
false
false
116
py
lesson01.py
# -*- coding: utf-8 -*- dog_age = 10 dog_multiplier = 7 human_age = dog_age * dog_multiplier print '%s' % human_age
3fc341ea07f97f7e47ecd6f4596d7f6f26e7ae97
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5631989306621952_1/Python/GrayFox/A.py
faa613124e37db0fe01829f12fb5affd6b093862
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
334
py
A.py
t = int(input()); for i in range(t): s = raw_input(); r = s[0]; front = []; tail = ""; l = s[0]; for c in s[1:]: if c>= l: l=c front.append(c) else: tail = tail+c front = "".join([c for c in reversed(front)]) print "case #%s: %s" %(i+1,...
1bcdb713e27d60423954a37428559879a7daed10
3f88eeefb088898e1c837d1ea7f267e7291a0eed
/demo04-read-model.py
be1d42e2a8d938f747a8b4aaaaea4ce810de47c8
[]
no_license
cmxiaocai/scikit-learn-demo
c01c6811053c5e9cf6d17b73969e8a33c0213926
8ca5ae32ec87b6603f9e898119839d12f409fd23
refs/heads/master
2020-03-18T06:09:29.405671
2018-05-22T07:46:38
2018-05-22T07:46:38
134,379,107
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
demo04-read-model.py
#!/user/bin/env python # -*-coding:utf-8-*- ''' 读取模型 ''' import jieba import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.naive_bayes import MultinomialNB from sklearn.externals import joblib # 测试 docs = [ "8道蒸...
ab1cb2cbc7ddf770468517a61949c5966130a625
0d36df290078643754a830c610e12fa232183994
/lib.py
b885c919666018eb73019b18c04f811539c685ce
[]
no_license
Gennady0107/fuel_01_homework
f5f7a98a5682df1e677df5f24b2e899586a92507
1a2560efd74242a9d18122f2dbe1258aab953954
refs/heads/master
2020-04-27T01:28:29.171697
2019-03-07T11:17:36
2019-03-07T11:17:36
173,966,657
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
lib.py
def fuel_calc(litr_in_tank, l_100km): """ >>>fuel_calc(10,5) 200 """ distance_for_refueling = litr_in_tank / l_100km * 100 return distance_for_refueling
07d2fd08b7f3dc17173c2ba3de86ead987d3d098
4346bef2becb5872be35a855fefa6342e122eb60
/Defending_IP4_address.py
95a0350d0a55967c105a360086abaeada82522d8
[]
no_license
helaleh/Leet_Code
6f4eeb474a44bee14094c335e2b509753a15506c
e96ef959934abc6f7b200794a8e976f5d7c2e5d0
refs/heads/master
2022-11-11T17:10:00.813983
2020-07-01T08:10:21
2020-07-01T08:10:21
272,511,809
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
Defending_IP4_address.py
def defangIPaddr(address): res="" b=[] for i in list(address): if i ==".": b.append("[.]") else: b.append(i) return res.join(b)
67c2f2197e27024fb004512324c888cf06f072a6
25a24ff7302040254a0baec244968591488567af
/archive-bioinformatics-2/bio2-wk2/bio2-wk2-3_read-pairs.py
345f0ab456b7c59610011857fbb47c56addea6ff
[]
no_license
loibucket/biopy
719dfb3c4623d17b2b07473bb7d0b517013c3d74
f2490e0f90fcea44ce7daa3acbbc5b46215a7be2
refs/heads/main
2023-07-16T05:29:02.264495
2021-09-03T03:44:17
2021-09-03T03:44:17
370,835,987
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
bio2-wk2-3_read-pairs.py
def read_pairs(seq, k, d): lst = [] for i in range(len(seq)-k-d-2): b = i + k + d lst.append("("+seq[i:(i+k)]+"|"+seq[b:(b+k)]+")") lst.sort() return("".join(lst)) if __name__ == "__main__": seq = "TAATGCCATGGGATGTT" k = 3 d = 2 print(read_pairs(seq, k, d))
790f54b2506a92d4cd612a5020c4c62025d7ad89
cb94e3eeccd320c4bb6c65dee5274beff7b108e8
/src/continued/data.py
c84471e746c297c9de3f83413a81a1344b3b25e8
[ "MIT" ]
permissive
blubberdiblub/ContinuED
1fb45b145cd537d23727ec3be07bef0ddeed0355
8dae07163575e6e24406094acb0e2ef43589ce61
refs/heads/main
2023-04-03T19:19:53.422915
2021-04-05T18:49:25
2021-04-14T16:37:39
357,005,190
0
0
null
null
null
null
UTF-8
Python
false
false
8,560
py
data.py
#!/usr/bin/env python3 from numbers import ( Real as _Real, ) from .types import ( Attr as _Attr, Data as _Data, ) from .types import Coords, L class Body(_Data): name: str = _Attr(key='Body') id: int = _Attr(key='BodyID') type: str = _Attr(key='BodyType') class Cargo(_Data): name: ...
e35f04cd02d276b35ed01b750e5b8c9c058d9be6
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03612/s230763489.py
ac4269d3b808ce7450741254479c682aa0a95af3
[]
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
224
py
s230763489.py
n = int(input()) p = list(map(int,input().split())) c = 0 for i in range(n-1): if(p[i] == i+1 and p[i+1] == i+2): p[i],p[i+1] = p[i+1],p[i] c += 1 for i in range(n): if(p[i] == i+1):c += 1 print(c)
e0bffbe20cb347072a6c38e51e47596d1f5952e2
bc447b7972b605f6751ab6e449fc43a09da6e4f5
/Ana_pipeline.py
9d651395bf08653e9812fd490163083b008c490f
[]
no_license
pgris/For_git
39cf809b1a101fcada35efe59468822b9e7c800f
de7fe86f465a0deecb6795ee591eb0bc4e4310a6
refs/heads/master
2020-04-04T16:20:52.453231
2018-11-04T11:13:36
2018-11-04T11:13:36
156,073,884
0
0
null
null
null
null
UTF-8
Python
false
false
19,304
py
Ana_pipeline.py
import numpy as np import h5py from astropy.table import Table import pylab as plt from SN_Rate import SN_Rate import numpy.lib.recfunctions as rf from matplotlib import colors as mcolors from scipy import interpolate import sncosmo from SN_Telescope import Telescope import astropy.units as u colors = dict(mcolors.BAS...
f12e69cc59ee6de0211a489f13448aaf330899d8
39c5473fe9b036d4d1b45ca874df7e8ed63d731a
/app/mod_bot/bonus_calc.py
55799ef86e63acd605e4ae69dc2285fa1dbdab75
[]
no_license
dennischan9451/python-flask-sqlalchemy
a9ec0198d3a4064beda4fdc00dfeab0476437c8a
001e5282dfeb0e693a9ac52e46dde6f83b51f404
refs/heads/master
2022-12-20T05:55:33.429963
2020-10-05T16:13:01
2020-10-05T16:13:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
bonus_calc.py
class Bonus: def __init__(self): super().__init__() self.pv_to_sv = 0.3
49615707884c6ba45fa14bc276e2110c626946ab
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2394/60829/277531.py
551dd75d73e54e7bd09f1e95b0e012e880be7754
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
279
py
277531.py
n=int(input()) for l in range(n): a=int(input()) b=[int(x) for x in input().split(" ")] count=0 for i in b: if not i==0: count += 1 print(str(i)+" ",end='') for i in range(0,len(b)-count): print("0 ",end='') print()
6fa26b964fb8139f57a155cf89cd51453eca2130
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnleur.py
23eca450fd4a39e60f1776f9fd0a23f232bdac28
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
477
py
nnleur.py
ii = [('CookGHP.py', 2), ('WilkJMC3.py', 1), ('LeakWTI3.py', 1), ('PettTHE.py', 6), ('AubePRP.py', 1), ('AdamWEP.py', 2), ('ClarGE2.py', 1), ('CarlTFR.py', 1), ('KiddJAE.py', 33), ('BuckWGM.py', 2), ('WestJIT2.py', 13), ('DibdTRL2.py', 3), ('SoutRD2.py', 8), ('MedwTAI2.py', 2), ('MereHHB3.py', 1), ('HowiWRL2.py', 1), (...
ce9adf5127d21a9893dc98138baa71b5757dc2c9
0b47550972af109be58d721d51b3c263bc04669a
/config.py
e18241dcf582c83ccd78b1abd3a69b792b4f539f
[]
no_license
seanodonnell/tinyrssfeedadder
caa2a1ff08f4ac555295793e81f976e52c3d3d0b
af0d7aacad9da5f4775b3e5c9741044ee7e299e2
refs/heads/master
2021-01-19T13:53:14.488310
2005-09-24T00:31:24
2005-09-24T00:31:24
14,724,816
1
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
config.py
#!/usr/bin/env python app="tinyrssfeedadder" name="Tiny RSS Feed Adder" description="A easy way to add feeds to your tiny rss installation" author="Sean O'Donnell" authorURL="http://blog.odonnell.nu" uid='0a2ae0-4a29-4a42-aef2-dc50c5e555dc' major_version = 0 minor_version = 0 build_version = 0 in_development = True ...
4afc60db14cbf5ec07c221428a090a621d739609
a2f65792af720bc5c805d3dd59f98a46fab5c433
/coinaddrng/validation.py
3d567843a1644049969b611f95b9335b4dca3489
[ "MIT" ]
permissive
cpleonardo/coinaddr
d66d2286e56e062ff4aae08544effe036429c1b2
16b16c49fc165951cb3c50dd28a2e9ed79680fa3
refs/heads/master
2023-02-16T02:55:57.813955
2021-01-06T22:22:55
2021-01-06T22:22:55
325,395,744
0
1
MIT
2021-01-06T22:22:56
2020-12-29T22:01:14
null
UTF-8
Python
false
false
18,648
py
validation.py
# pylint: disable=no-member """ :mod:`coinaddr.validation` ~~~~~~~~~~~~~~~~~~~~~~~~ Various validation machinery for validating cryptocurrency addresses. """ import re from hashlib import sha256 import functools import operator from zope.interface import implementer, provider import attr import sha3 import base58ch...
8a75526a50116c6ee7569888e8dcaf34562a0bcb
05e39916e4399e7e5df589d04968b18e2d6469f9
/8a.py
a4726e1a23fddb62b2b2a259130ff7bca7df2540
[]
no_license
shilpa2020/python
a74b92c865a288dd9354c11feb3ca93d4eeca5c0
2caaf41b9bd396be1a5d92456019ce75df7172ac
refs/heads/master
2020-06-07T14:24:10.866281
2019-08-03T06:19:42
2019-08-03T06:19:42
193,040,866
1
2
null
null
null
null
UTF-8
Python
false
false
79
py
8a.py
n=int(input()) sum1=0 while(n>0): sum1=sum1+n n=n-1 print(sum1)
e7e94da77192dfa9ec1012ae94383dc7a3661309
634f84bf03a945835e386e4266435af9a979fca6
/blogapp/migrations/0002_artical_banner_category_link_recom_tag.py
7f41eb8780aec11cb00c0169b4915ea8c57f5ec0
[]
no_license
ghwcw/django-myblog
ba26f972f5d1f8695c19e1dca89214dd747a7664
d7e791da5cd5f2088de0b67693b90abdaa79609c
refs/heads/master
2023-04-30T14:33:25.747572
2021-04-24T13:34:24
2021-04-24T13:34:24
199,271,367
2
0
null
2023-04-21T20:34:33
2019-07-28T10:10:04
Python
UTF-8
Python
false
false
5,171
py
0002_artical_banner_category_link_recom_tag.py
# Generated by Django 2.2.1 on 2019-05-25 22:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import extraapps.DjangoUeditor.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(set...
3bf79b3914ad6b4799278d8447ebea8627f26f91
ca17b548dc9747c1a99e1f0cf8bb491174315462
/scripts/xmms2_add.py
fbcaf16325757075dd00c05f226836cd186968a0
[]
no_license
frostyplanet/frostyplanet
3b17563503a6edfe3fbe5a78994ac8a59a398361
dea60928ed427503eed3d0f3c55a58e04f95e112
refs/heads/master
2021-08-11T09:06:02.021007
2021-08-07T18:56:16
2021-08-07T18:56:16
3,716,918
1
0
null
null
null
null
UTF-8
Python
false
false
657
py
xmms2_add.py
#!/usr/bin/env python # coding:utf-8 import os import sys import subprocess def usage(): print "%s [target]" % (sys.argv[0]) os.exit(1) def main(): if len(sys.argv) != 2: usage() return cmd = None if subprocess.call(("which", "xmms2")) == 0: cmd = "xmms2" elif subproce...
2446a5a9d5f86e3e3c9cc50493effcf3b4eb39ce
60fe31b09220dabe9f296431f45646bac37d818d
/dict включены все числа до n индексация начианется с 1.py
899a552a39a5059d21ee0aeccabacf91f7e604bf
[]
no_license
Allan823/ColingPython-p1
3034a6e4ab76083865965e0ce43270012fabc799
85987b74f320654b0b153fcc021d7e0744617797
refs/heads/main
2023-05-02T14:17:40.987542
2021-03-31T17:13:56
2021-03-31T17:13:56
338,791,995
0
1
null
null
null
null
UTF-8
Python
false
false
69
py
dict включены все числа до n индексация начианется с 1.py
n = int(input()) d = {i: i * i for i in range(1, n + 1)} print(d)
6c1b292b1a749a7fb43c8634b2e4616d7e44c4df
08dce0f86e348c4cff0b4e3ebcbcabf9767c87f2
/main.py
2d63640f7bcf2e072da7f598ffc6e540a0a0bab4
[]
no_license
Lotaif/ProjetoTCC
5ac04e20d8982dedefe873c4756e77cbb5f8517c
da09403713b92d20d6540531a26093e7b169e13b
refs/heads/main
2023-02-13T03:39:40.962370
2021-01-05T01:14:17
2021-01-05T01:14:17
325,824,932
0
0
null
null
null
null
UTF-8
Python
false
false
4,384
py
main.py
import os import openpyxl import csv from split import split from sendfiles import send_files from parse import parse_row import unicodecsv columns_to_delete = [8, 13, 14, 15, 18, 21, 24, 26, 30, 55, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 73, 75, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98...
543d7f3b15cdb0dbb9c3021ef73d34e8662c83e6
c038edc390db7f1dd33f1618efd259347a72c8c5
/61-70/case70.py
351109d97140e8f385a3f12c03da27212d856357
[]
no_license
MirroAi/python-100
0777a0982f739cde7b3ec6383da90cfe782aba53
9596b26e11691e6ec6268f007bf870f50b268119
refs/heads/master
2020-07-15T08:16:06.488122
2020-01-20T10:46:15
2020-01-20T10:46:15
205,519,913
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
case70.py
# -*- coding: utf-8 -*- # @Author: MirrorAi # @Date: 2020-01-10 21:26:14 # @Last Modified by: MirroAi # @Last Modified time: 2020-01-10 21:28:52 # 写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度 def get_length_of_string(s): return len(s) def main(): s = input("请输入字符串:") print("字符串长度为 %d" % get_length_of_strin...
cfb4a681d2c3fd3af606d3c24fd946588c9dd092
d0f76694c1dad6bacd188a9f283496926412b9e3
/AnalizadorLdP.py
762dd27694cfaa204cfa64146239d6d16855d2cc
[]
no_license
sfdelgadop/Lenguajes-de-Programacion
a5e1252066fd4686c989e079b45bd9169067880a
724a42626ddc8dac2117b39893d9018749267762
refs/heads/master
2020-05-24T18:49:31.806587
2019-06-26T12:55:53
2019-06-26T12:55:53
187,417,385
1
0
null
null
null
null
UTF-8
Python
false
false
18,259
py
AnalizadorLdP.py
f = open("2.txt", "r") p = [] for x in f: p.append(x) f.close() Tokens = [] set_keys = {'TRUE', 'FALSE', 'SI', 'NO', 'and', 'archivo', 'caso', 'const', 'constantes', 'desde', 'eval', 'fin','hasta', 'inicio', 'lib', 'libext', 'matriz', 'mientras', 'not', 'or', 'paso', 'subrutina', 'programa', 'ref','r...
4cd83bdbabeeac2133bf063b08efa18f4a17bae6
06002f5580fc70f4a04af562afa4ee2d230a865b
/shanbenyoumeiba.py
57a34605ae0630427e5955cfb982d8f22c50adf9
[]
no_license
procedure-ape/-python-
64c0bd9a294c46c278d744378f4930277b11578a
fac5e1bc1d4410c7db9d3d808a335771982f2f8a
refs/heads/master
2022-12-18T13:02:14.911202
2020-09-17T07:12:34
2020-09-17T07:12:34
289,151,357
0
0
null
null
null
null
UTF-8
Python
false
false
651
py
shanbenyoumeiba.py
# 爬取杉本有美吧所有杉本有美的图片 import re import requests import urllib from fake_useragent import UserAgent ua = UserAgent() url='https://tieba.baidu.com/p/2166231880?red_tag=0132652500' headers={ 'Host': 'tieba.baidu.com', "User-Agent": ua.random } res=requests.get(url=url,headers=headers) def resMatch(data): reg...
7750c1d8d2146a6b964958f4516c6fea0b709ccd
d2466571a227a94752bfc55991f43eaf6de3d869
/Love babbar 450.py
702f26da4962bf81bef81bf8a3afb8186e9e7528
[]
no_license
123rohitkumar/logical-programs
6c7bc108759c311cd295e24e846c1cd1636c8935
9e391b9ea1e132b8974f481527ff6f6a6d44332d
refs/heads/master
2023-05-02T06:24:02.824153
2021-05-22T05:28:51
2021-05-22T05:28:51
369,723,175
0
0
null
null
null
null
UTF-8
Python
false
false
3,665
py
Love babbar 450.py
#Q1)Reverse the array #list1 = [1,2,3,4,5,6,7] # list2=[] # n = len(list1) # for i in range(n): # list2.append(list1[n-i-1]) # print(list2) # i = 0 #list1 = [1,2,3,4,5,6,7] # n = len(list1) # while n>0: # print(list1[n-1]) # n = n-1 # list1.reverse() # print(list1) #Q2)Find the maximum and minimum eleme...
0b8660578424e07b89b07c548861b59f6c0d5cee
ad17918cd6644c07b560a2dbde812d53d9b356b7
/challenges/fizzbuzz.py
74cf16fc9719d71e54774e42117a6f1060ed10ee
[]
no_license
MichaelRandall/mypy_portfolio
a7713109bc8a762fe212e6d60c401daa9fda9147
f75cdd68803a3e514894bf5a99480f75602141bb
refs/heads/master
2020-03-31T07:16:28.503624
2018-10-14T21:31:00
2018-10-14T21:31:00
152,014,995
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
fizzbuzz.py
#!/usr/local/bin/python # given a list of integers, prints fizz for any value that is a multiple of 3 # prints buzz for any value that is a multiple of 5, and for any value that # is a multiple of 3 and 5 prints fizzbuzz import sys for numstr in sys.argv[1:]: num = int(numstr) if num % 3 == 0 and num % 5 == ...
0ede2eb78301cb60a399955491b759ccddc951ba
f43fc046bdcdadc4718a4de6a056b0f17ec038b4
/tests/mock_google/logging.py
2b12ec42f7ec839bee8c99499091938f04e7931b
[ "Apache-2.0" ]
permissive
YWMditto/mrjob
cb5ac1d4e7b55a50c808d3a8203745bffbf3211d
acfcdda93e2d1cd1fde7cd52b30280293ae3376f
refs/heads/master
2021-05-19T11:15:34.502642
2020-03-27T21:35:20
2020-03-27T21:35:20
251,668,334
1
0
NOASSERTION
2020-03-31T16:45:41
2020-03-31T16:45:40
null
UTF-8
Python
false
false
3,581
py
logging.py
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
01dfc6fb27561a79f01abb6a8ee86627e9f4fbc9
f26717ecbb80ce6c95b43caafc8eba4b4fc311aa
/stack_r_all.py
6e5d379bb02740821ca59deec88b872e7e57aa88
[]
no_license
bezze/scrapfilm
f42c764da66fffecc475a8cc2531319d278bce9f
935004cafd68f0a424eb1cd7c1c7718f4fad26d8
refs/heads/master
2021-01-25T07:11:33.593310
2018-05-05T00:53:38
2018-05-05T00:53:38
80,696,758
0
0
null
null
null
null
UTF-8
Python
false
false
2,033
py
stack_r_all.py
#!/usr/bin/env python3 """ Esto recorre las carpetas i_run, toma los archivos r_all.npy y v_all.npy, y los junta en un gran archivo stack_all_{MODE}.npy INPUTS Explicit: {MODE} cm, ee, gr M start run N end run Implicit: r_all.npy <- savescrap.py v_all.np...
59d3c9e9f9455db39571bdbb9ae1fc6e90fb91f6
99419ed874c894a5b071a65f4fdc65ad3d5c2959
/most-frequent.py
6feba12670a69f18b30cdb1881127e1ddf828a6f
[]
no_license
amyhashemi/python-practice-problems
645013cf63d5e3ca3ed7e773027256c951b329a8
247268b2350e886503b575818f2984f5b7b8aa8a
refs/heads/master
2022-01-24T08:47:53.950755
2019-07-29T04:40:51
2019-07-29T04:40:51
197,996,286
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
most-frequent.py
arr = [1, 3, 1, 3, 2, 3] class mostFrequent: ''' Finds and returns the most frequent item occurring in an array ''' def Solve(self, arr): max_item = None max_count = -1 count = {} for item in arr: if item not in count: count[item] = 1 ...
f0e6e6cdb1a73547baa321e5d95d6fa23cb508d8
ac24305d7abe090303dae7165cc1fce03630b440
/iFruitFly_v2.0/setup_ifruitfly.py
882f31a4eef77565d28e0af71c12da16896bec1b
[]
no_license
AdnanMuhib/iFruitFly
daeba25940a56933cd13f5602c9a1c4a37c676b6
1faef5aec4aaf91151901797b921c34aff40e28b
refs/heads/master
2021-06-21T11:25:50.734684
2019-10-08T12:35:20
2019-10-08T12:35:20
98,302,629
3
1
null
2019-10-08T12:35:21
2017-07-25T12:15:59
Python
UTF-8
Python
false
false
10,528
py
setup_ifruitfly.py
#################################################################### ##########################-Header File-############################# #################################################################### #Built in libraries from shutil import copy2 from time import gmtime, strftime import subprocess import os imp...
770a1f875c6cad09427c3d96168cc95564181103
06653c59567bc434f7f28ed0fa5de130464167b6
/BAEK JOON/2869.py
8a388c206d1caa7c1dce5f70f30cd1851eb07532
[]
no_license
JI-YOUN-PARK/Python3
ee7cb075d459037d230d8ab4fb41d30b204c19ed
2b58b10f3bce143266a5a47aba7b22904f6ee8e8
refs/heads/master
2023-05-02T15:56:12.955486
2021-05-19T09:37:10
2021-05-19T09:37:10
277,689,495
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
2869.py
A, B, V = map(int, input().split()) go = (V-B)/(A-B) if (go == int(go)): print(int(go)) else: print(int(go) + 1)
762123b2f5929d4716b3635a1b8951f5df2a4cfb
a3df02b97744b588717338183595a1a7451b5685
/PDFManipulations.py
302919b3220eef49be3bb21870fba300daa7f60d
[]
no_license
ShlomieLiberow/PenTestingPractise
3ce4d276e0ca81ff4f326373d6fb821a91b4ff23
4f401b06771583b8ade080f111925522ac0ed665
refs/heads/master
2020-04-15T15:22:17.335203
2016-09-24T18:47:32
2016-09-24T18:47:32
55,059,147
2
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
PDFManipulations.py
from PyPDF2 import PdfFileWriter, PdfFileReader output = PdfFileWriter() input = PdfFileReader(open("aicode.pdf", "rb")) # print how many pages input1 has: print("document1.pdf has {} pages.".format(input.getNumPages())) doc_info = input.getDocumentInfo() for meta_data in doc_info: print(doc_info[meta_data]) out...
756555b9bddef08b7523fe07b6dbe537a43ad4c2
66fd5e1faf9520897c5f717d18e0cf60a4185a96
/awss3listall-capi/s3listall.py
638c1ea7b400797ae9359827731428819cdcfcb2
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
dileep143123/aws-python-examples
994bff0e5646f5073333b8412883b761c2687bb9
fe88df550cc567b3d3951225fee7e4c2ceaf9577
refs/heads/master
2023-08-26T14:40:12.727207
2021-11-01T16:01:19
2021-11-01T16:01:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
s3listall.py
#!/usr/bin/python # -*- coding: utf-8 -*- # s3listall.py # It is an example that handles S3 buckets on AWS. # It uses Client API (low-level) of Boto3. # List information about all S3 buckets and the objects they contain. import sys import boto3 import botocore def main(): # Create an S3 Client s3_client = bo...
b7ed7aa9ec9621ad8b72bc455b34985c20a71865
c29a0c6977b8b1ac5f855dd75aee74b9d86edc8b
/TFlite-model-conversion/rfcx_frame.py
475ad9359356357a2984109aa2693a31bbe26bbb
[]
no_license
Hodor-98/Audio-classification-for-interactive-lighting
72b37a1a1ebba1d9d0f25eba6e8c9d6d94d4c3f8
3f14599734dace13b65f8b7c612c020f31178b80
refs/heads/master
2023-08-17T08:06:41.871473
2021-09-17T10:26:58
2021-09-17T10:26:58
406,753,590
0
0
null
null
null
null
UTF-8
Python
false
false
1,063
py
rfcx_frame.py
import numpy as np import tensorflow as tf class RfcxFrame(tf.Module): def __init__(self, model, sample_rate, audio_length_secs, class_names, codec): self.model = model self._sample_rate = sample_rate self._context_width_samples = int(sample_rate * audio_length_secs) self._class_nam...
076db979dfc821031840923a047da3a623037f0a
dd7a73ca7f2a435b09ac89fa00d7568e1cac8d22
/QuickInstall/JFDestructionSkin/JFDestructionSkin.py
b46fe998c5b9b0656a02cdb7c7e58e389b8dc565
[]
no_license
VicYu1983/mayaPython
f3121e9354525d9f9c99aa5f916b80de3f1afcce
2670caf7ae1a589e609274e419e73cb2b7c0abba
refs/heads/master
2020-03-29T21:28:42.069248
2019-07-17T10:12:11
2019-07-17T10:12:11
150,368,880
0
0
null
null
null
null
UTF-8
Python
false
false
3,141
py
JFDestructionSkin.py
import maya.cmds as cmds import maya.mel as mel import pymel.core as pm def copyKeys(fromObj, toObj, frameCopyStart = 0, frameCopyEnd = 100): cmds.copyKey(fromObj, time=(frameCopyStart, frameCopyEnd)) cmds.pasteKey(toObj, o='replace', time=(frameCopyStart, frameCopyEnd)) def createLocator( fromName, pos )...
8a60381504efd6d6f084f5665a5845a53d3a5a90
0a233e587d54ecf02401638cbd1af422877af456
/selenium_python.py
0a6218274c56a4ebc7cf32dc8a7a04f0610a5f95
[]
no_license
NIOLA623/Automation-Testing
c820f5cc6e28c565c825504d8fc220b16c5a0525
359655011d7e2c3714b82a09e7d59d8e4c735bd1
refs/heads/main
2023-07-10T21:41:24.340530
2021-08-13T16:03:52
2021-08-13T16:03:52
395,699,924
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
selenium_python.py
from selenium import webdriver chrome_driver = webdriver.Chrome(executable_path='C:\Web Drivers\chromedriver.exe') chrome_driver.get('http://www1.demoautomationtesting.in/?tm=1&subid4=1626967725.0024798727&kw=Process+Automation&KW1=Automated%20Web%20Testing&KW2=Automated%20Testing%20Tools&KW3=Web%20Application%20Te...
7fb209bf78c81720d4966e122de4f111ccf62a29
ad467e66a4ca79c8f58f6f6b6ff145e3a614b2bb
/Assignment 4/Part3-FastApi-Pytest-Docker/download.py
235b2c53fc07fe2557069d84eb84da890e7814cf
[]
no_license
guravtanvi/Big-Data-Systems-and-Int-Analytics-INFO-7245
376383f787bcbc5f6165e26d40d6839c07e7a92b
55201d7cbb1e5ba35b87ff9e577312f4992862f8
refs/heads/master
2023-05-03T12:19:48.600515
2021-05-20T17:02:27
2021-05-20T17:02:27
367,551,442
5
0
null
null
null
null
UTF-8
Python
false
false
385
py
download.py
import boto3 # Downloading the pre trained model from s3 bucket s3 = boto3.resource('s3') # Replace the below with your s3 bucket where the model is stored bucket = 'assignment4-model-store' print("Downloading model from {} bucket...\n".format(bucket)) s3.Bucket(bucket).download_file('model_state_dict.bin', './model...
940e34935e8231a891b7e20676088ab906e34785
97a818fd366221c92a2ade0445135740cfee4fa8
/app/controllers/pms_data_upload_controller.py
90f7fe7c65c7832471e5ce3e57aefa0138c5ea2c
[]
no_license
f228476653/parking_server_code_v2
e55cbeeb1f7dd2640b547a27bf0680c1f5bd2b5c
00eb1a81d120bd2978d97a02c77af01148142454
refs/heads/main
2023-02-10T16:19:35.137510
2020-12-31T00:33:15
2020-12-31T00:33:15
325,676,426
0
0
null
null
null
null
UTF-8
Python
false
false
2,043
py
pms_data_upload_controller.py
import json from collections import OrderedDict from app.controllers.controller import Controller from app.config.models import Account from app.util.console_helper import ConsoleHelper from app.decorators.authorize import authorize from app.services.pms_data_uplaod_service import PmsDataUploadService from app.c...
7199bcfe477cfb92d5fc73a1fc654664b6621b39
304c039c89c6ff89499f75ba96410f53b7e0bcfd
/python-practice/find_eldest_sysargv.py
cd9a144f14afbd6d1a2ef48621dff3957712ec51
[]
no_license
pdbure15/python-practice
673628db963c91a6e8e63093980c8b2e406e0c91
cd1cfd7367b267e3075b5d5bc933d2e59ea350bf
refs/heads/master
2020-03-31T18:56:30.368638
2018-10-10T19:42:35
2018-10-10T19:42:35
152,479,236
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
find_eldest_sysargv.py
import sys def findDupes(lst1, lst2): ''' Ques1 - Find common elements between two lists ''' result = [] for num in lst1: if num in lst2 and num not in result: result.append(num) return result def findEldest(data): ''' Ques2 - Read command line arguments and return the name of eldest person Check f...
a9a71a4a7aaf7ed1e1a0ea3ac8e2d7ef5386f926
bb302caf5ff9a23b992972b0ba7c936366a0080e
/rest_um_signup.py
a0d956e7e7b7a68296b248740f90f68aa813e4bd
[]
no_license
sibtainyes/lambda-automate
e816ad2a42eb5d26ca92de0e2dc7521bdfa7d790
a9609b5e5f827cfe8b0fbb9280f2de14e3ebc23e
refs/heads/master
2021-01-25T01:16:12.624540
2017-08-02T07:17:48
2017-08-02T07:17:48
94,743,680
0
0
null
null
null
null
UTF-8
Python
false
false
6,983
py
rest_um_signup.py
import json import boto3 from imports.models.central_system import CentralSystem from imports.models.installations import Installations from boto3.dynamodb.conditions import Key from imports.models.user import User from imports.user_level import UserLevel from imports.constants import Constants from imports.defaults i...
a39c078c0accccf6555aef844915439e512acd5c
011c0eecd3ce6a33019e2679fd0ce3bd1c79ebed
/fail.py
37afb34b9a51b12e285d594743781c54e7344f1c
[]
no_license
Shichimenchou/DailyTodo
714f5417dff5aa3de743ee60441027174327d065
cad58efd29cda7829e846b4436284d34faef7d6e
refs/heads/master
2023-01-01T15:31:44.764586
2020-10-23T04:08:55
2020-10-23T04:08:55
300,763,318
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
fail.py
import sys import os import datetime today = datetime.date.today() d = today.strftime('%b-%d-%Y') os.chdir(os.path.expanduser('~') + '/Projects/Dailies/') f = open('History/' + d, 'r') old = f.readlines() count = 0 line = -1 arg = '' for i in range(1, len(sys.argv)): arg += sys.argv[i].lower() + ' ' arg = arg.rs...
d4e7a99c33c48a0de1b67e88fca167ee67c23a6d
34d83512484755f28ed0bf72dd9bd47fbb0f97be
/api/category/views.py
78c9e7b6997ff26040c0ba40e9b6c60e1bd05c95
[]
no_license
hemik000/self-ordering-restaurant-backend
87989a7a6df8afb37db3f8d7b556c68a7cd15629
da83829962e876d986fab31dfeca50ebee91a9ad
refs/heads/master
2023-03-25T14:00:31.465984
2021-03-25T05:05:35
2021-03-25T05:05:35
290,226,062
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
views.py
from .serializers import CategorySerializer from rest_framework.generics import ListAPIView, ListCreateAPIView from .models import Category from rest_framework.permissions import AllowAny # Create your views here. class ListCategory(ListCreateAPIView): queryset = Category.objects.all() serializer_class = Cat...
b398e23d88f451cd6378ee93e0b61990499e8318
f30739cacf945f79d610327f1a3c0f003ba99718
/sensor_sim.py
5995eafe8c6e8fa6681271afd8ddac0a646205ce
[]
no_license
Thalamus-AT/nomad-firmware
191101527f5e9462dc90ef378be889b58ce2e35f
72524ed8471560dc81b4e5008bfd305c56961359
refs/heads/master
2020-03-30T09:45:20.013266
2019-04-29T18:03:45
2019-04-29T18:03:45
151,090,860
1
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
sensor_sim.py
import time # ============================================================== # This file is exclusively used to simulate the sensor_driver # file when it is actually connected to the sensors. This is # done so the program can be tested on a device which isn't the # Raspberry Pi. # =====================================...