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
53efb1b43b70b3101b6476239411059c2e4a1abe
7441abd39a113bfdb6e555336524fe0b4f42cb9b
/demo.py
fdf6b53e8de30cb09380cb7afa21bb185f9b7ea6
[]
no_license
maytech/quatrix-api-python-demo
ba44baeecade41d26390f09bfd61c5e4ea49896c
315db624a1ea9e59572bf9532f05d0b97ae80627
refs/heads/master
2023-06-26T08:51:50.499438
2023-06-11T22:17:24
2023-06-11T22:17:24
29,586,256
0
0
null
null
null
null
UTF-8
Python
false
false
3,004
py
demo.py
#!/usr/bin/env python # encoding: utf-8 import time import urlparse import argparse import requests from services.api import MaytechAPI from services.api import MaytechAuth from errors import RequestError from errors import AuthorizationError def make_temp_dir(root_id, api): folder = api.post('file/makedir', ...
21bf0e99f922389d70f587ce8f7d85a8714a7ec9
57c01e380ae4c438afbc79976ec682e35a9afe83
/dimensions.py
0f3de6b1ebeb0d82e4efe623158b67cb83eeff41
[]
no_license
M1sterDonut/Exercises_Python-Crash-Course_Eric-Matthes
05c9b0fd9efd9d3e00b6faf36b0455814eccad6b
d8ca58b563b5d1d48da0b55b48da40299ec4ee28
refs/heads/master
2021-01-22T21:32:19.160230
2017-05-22T22:16:34
2017-05-22T22:16:34
85,439,661
0
0
null
2017-04-09T22:46:18
2017-03-18T23:57:14
Python
UTF-8
Python
false
false
325
py
dimensions.py
dimensions = (200, 50) print (dimensions[0]) print (dimensions[1]) for dimension in dimensions: print (dimension) dimensions = (200, 50) print ("original dimension:") for dimension in dimensions: print (dimension) dimensions = (400, 100) print ("\nModified dimensions:") for dimension in dimensions: print (dimensi...
be73d17e5d0f59d3e3254fd1e4f2cc23367e1d19
f61e9a899fcb2725fc1ffa3a46398e4c56cefc1a
/scripts/instcat_trimmer.py
33bd5523cba3074da740352b24808b15f57921ec
[ "BSD-3-Clause" ]
permissive
LSSTDESC/DESC_DC2_imSim_Workflow
048200688cee10d69dd0463095029b2f9b59e189
87a768ebab5c237940642796cecd1a3fff8e2b61
refs/heads/master
2021-07-10T14:22:25.720008
2020-06-11T13:13:45
2020-06-11T13:13:45
143,213,657
0
1
BSD-3-Clause
2020-05-04T20:43:29
2018-08-01T22:12:52
Python
UTF-8
Python
false
false
1,602
py
instcat_trimmer.py
import json import os.path import sys import trim_sensors from progressdb import ProgressDB def determine_instcat_work(instcat_list, outfile): """Determine how many sensors each visit will take and the number of objects to simulate. Then output a single json file containing a list of all the work to ...
e98cc7dea6cd6feb2a2930297a52db0b41dcc6b4
63391ed75ced5a527747ea897627e432cef2e1cb
/tests/serializers/test_toml_serializer.py
a310485f1132494a462b4e3fec489c2291b44e65
[ "MIT" ]
permissive
datafields-team/python-benedict
82fd1c7947f4e097e11cc2427dd4b152799fd123
307a3914d1bc3ed6f353d4dcacc3f2b540b4dea8
refs/heads/master
2022-04-16T11:32:14.947405
2020-03-13T12:56:18
2020-03-13T12:56:18
272,068,989
0
1
MIT
2020-06-13T19:00:01
2020-06-13T19:00:00
null
UTF-8
Python
false
false
266
py
test_toml_serializer.py
# -*- coding: utf-8 -*- from benedict.serializers import TOMLSerializer import unittest class toml_serializer_test_case(unittest.TestCase): def test_decode_toml(self): # TODO pass def test_encode_toml(self): # TODO pass
2e8d88189490c15d3924afa5401c00a0fbad0fc2
8d9b3584502a2eb87ad9619c96ba8ed60cb428d1
/homework/03/hw-03-youens-clark/w_variation_demo.py
de01eee7bd415a386dfa0ab3981851e366ffc999
[ "MIT" ]
permissive
kyclark/info521
045d190cc91b7afe4c733d41f39d24aaa6b4cc28
8dd2fe23b89971f87c8c697e08cec84c8488ab9d
refs/heads/master
2020-03-27T04:07:15.016963
2019-05-02T16:45:38
2019-05-02T16:45:38
145,913,293
0
0
null
null
null
null
UTF-8
Python
false
false
2,837
py
w_variation_demo.py
#!/usr/bin/env python3 # w_variation_demo.py # Port of w_variation_demo.m # From A First Course in Machine Learning, Chapter 2. # Simon Rogers, 01/11/11 [simon.rogers@glasgow.ac.uk] # The bias in the estimate of the variance # Generate lots of datasets and look at how the average fitted variance # agrees with the theo...
0b081d029bbd6c0078f1397539897bf7f425a2ce
f9c458f642f23776857ede82b2ec9a8733492d8f
/arrays/charcopy.py
fe5c082e4aa979652e9df0637a7f341a49a518a8
[]
no_license
Priya-Mentorship/Python4Everybody
942e786528ae35e632dbf44cbf22a10f080338b7
81905ce6b795cfd315a1774df54565f414678bfc
refs/heads/main
2023-02-14T01:30:16.104233
2021-01-08T00:49:43
2021-01-08T00:49:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
charcopy.py
from array import * vals = array('u',['p','r','i','y','a']) print(vals) newArr = array(vals.typecode,(a for a in vals)) print(newArr)
82502ca1e096d5f6c38c651fd0663f371b0f94de
0fdd5e6377b33e93412b62eed4aff42e4bca279d
/capm/urls.py
769d4a09959d371c345eefa8c6b8c011cf8c1c0e
[]
no_license
tjquinn1/fin
b47ea4460ef0c6ca0132826c1418787e12d242ce
362c578e0ccbbfcfd1b993de88f480bdc22d7ccf
refs/heads/master
2021-05-08T08:29:36.578073
2017-10-24T17:06:13
2017-10-24T17:06:13
107,038,752
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
urls.py
from django.conf.urls import include, url from . import views urlpatterns = [ url(r'^$', views.home, name='capm_home'), url(r'^capm_list/$', views.capm_list, name='capm_list'), url(r'^new/$', views.add_capm, name='capm_form'), url(r'^capm_list/(?P<capm_id>[0-9]+)/$', views.capm_detail, name='detail'), ...
31f7c0f9840e24a54c5bc928ea6bdb62a9f5883d
fb64c62e00e251228da28cdf8e9d35b44d37efe8
/insertion_sort.py
127bdf8dafde076d38991a910db71c93497c896f
[]
no_license
Manisha-Lakhe/sorching_doughnut
cc9c7ab414636d6af94481beefb090af0e58028e
04631e024e9db8c30b62be952e2d3f5421c5ac67
refs/heads/main
2023-07-04T06:52:58.426172
2021-07-31T10:25:45
2021-07-31T10:25:45
390,271,957
2
4
null
2021-07-29T10:29:44
2021-07-28T08:21:49
Python
UTF-8
Python
false
false
189
py
insertion_sort.py
li = [] li = list(map(int,input().split())) for i in range(len(li)): for j in range(i + 1,len(li)): while li[i] > li[j]: li[i] , li[j] = li[j] , li[i] print(li)
dde2d2bc3a91ed887bf9f5ef11eddaf5841c4124
23ac7a46d1dd97680a298a90eb107fb99049df32
/F2BAutomationPython/envSetup.py
696c580ae8c7e7e8925e162f8cc67f75b0d61c28
[]
no_license
Dzanan91/Automation
6e2d68c16005e20956c4e1232b27a97ebb6e45d9
e8d10c000ee9494a0b83d86af29603d0019c20aa
refs/heads/master
2022-12-11T12:10:04.837205
2019-09-11T15:42:59
2019-09-11T15:42:59
147,038,533
0
0
null
null
null
null
UTF-8
Python
false
false
765
py
envSetup.py
import unittest import datetime from selenium import webdriver import HtmlTestRunner class Testenvironment(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome("C:\\Users\\T440s\\Desktop\\Selenium\\chromedriver.exe") self.driver.get("https://www.myf2b.com/reports/reports_landing_page...
740263098efdea11e96bf7e6733ee099e7dfb59c
f37978530be6cf40bd7b4e5dbaf63f779114ff95
/src/bioregistry/curation/clean_name_suffixes.py
79721aed49e915a9fafcb04e32b9eb3d2cc70071
[ "MIT", "CC0-1.0", "CC-PDDC", "CC-BY-4.0" ]
permissive
biopragmatics/bioregistry
03d983e96b65681352d0eddbe39902059d299e6d
a05af7e42f60109f01133e3072bb673423b74dd3
refs/heads/main
2023-08-30T21:02:44.854342
2023-08-30T01:10:16
2023-08-30T01:10:16
319,481,281
77
28
MIT
2023-09-12T08:21:24
2020-12-08T00:33:21
Python
UTF-8
Python
false
false
679
py
clean_name_suffixes.py
"""Remove uninformative suffixes in names of resources.""" import click from tabulate import tabulate import bioregistry suffixes = ["id", "accession"] @click.command() def _main(): rows = [] registry = bioregistry.read_registry() for prefix, resource in registry.items(): name = bioregistry.get...
b26c9718e8cc60d72e8ea2af6296a43920c96f59
3cbf1cd315668dcbe4ee6564bcf8fc8440c2ebaa
/06/hass.python
c3ce9a9041fa581b6a6996f5982125926f638ae0
[]
no_license
superpanic/nand2tetris
7bed2b80fb59fd47a01a5c60a7fe25ab2cd9f085
2494db42dbaab12a0a2d989df2181526764edfb5
refs/heads/master
2020-05-02T03:37:15.583692
2019-04-19T14:48:53
2019-04-19T14:48:53
177,732,818
0
0
null
null
null
null
UTF-8
Python
false
false
5,796
python
hass.python
#!/usr/bin/env python # -*- coding: utf-8 -*- """hass.python – a hack assembler""" import sys import os import re symbols = { 'SP':0, 'LCL':1, 'ARG':2, 'THIS':3, 'THAT':4, 'R0':0, 'R1':1, 'R2':2, 'R3':3, 'R4':4, 'R5':5, 'R6':6, 'R7':7, 'R8':8, 'R9':9, 'R10':10, 'R11':11, 'R12':12, 'R13':13, 'R14':...
6ed5cc35ec064f84f843cb6df0816ae4cdba313b
332f507d6679712c9da64dd5001a0ad6632b1ad0
/utils/drawBoundingBoxes.py
b4a9336fd3e30d0aee4442fe393929bd24ed9601
[ "MIT" ]
permissive
yoojinhwang/baboon-tracking
937af4f2b03f10e59af4d629f217faa297e87c8d
bd48814f837f29096160b8f0007b63f64e7d18de
refs/heads/master
2022-11-06T01:42:46.724443
2020-06-24T18:06:09
2020-06-24T18:06:09
266,682,571
0
0
MIT
2020-05-25T04:27:18
2020-05-25T04:27:18
null
UTF-8
Python
false
false
1,388
py
drawBoundingBoxes.py
#this script runs with the inputs already being of the format (xlt, ylt) (xbr,ybr) #import packages import cv2 import numpy as np import re #refer to txt files groundtruthfolder = "../groundtruth_drawing/" hypothesesfolder = "../hypotheses_drawing/" #frame number, which frame to compare frame_num = 81 #files that y...
a280efd986977a5c359c69ad4a42c7b87cb26adf
ec931a060101378833b677e1f25830b7b2a572b9
/bokehplotting3.py
0cfb66c44babc74add6d6c3c0451fc58bc587b38
[]
no_license
samgarratt/pycav
edd02d23a9f2a1ccf68289756567ade670fdcd7d
570f3001ab76216f1009160d84190918ca2817dd
refs/heads/master
2021-01-20T19:52:54.085968
2016-06-29T13:18:26
2016-06-29T13:18:26
62,134,093
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
bokehplotting3.py
#here begins bokehplotting.py from bokeh.plotting import figure, output_file, show from bokeh.io import output_notebook x = [0.1*i for i in range(10)] y1 = [i/(i+1) for i in x] y2 = [i/(i+2) for i in x] y3 = [i/(i+3) for i in x] output_notebook() #create a figure object p = figure(x_range = [0,1.0], tool...
0f963e933154f5b2c093e71555358057003d7d82
c3a2e414e4d4ee884ceb3b30085d078bac8ba2db
/vmcloak/data/db_migration/versions/add_mac_columns.py
e4e2a190b52bd4bd0a43c40d52bfa150976db23f
[]
no_license
korkin25/vmcloak
0e75228c1e693ac78e4e40a6361d1dcdee9e851e
dc9e513692bc12b05d3912d9f802ffc0548cb24c
refs/heads/master
2022-03-13T04:47:00.120668
2022-01-25T14:47:55
2022-01-25T14:47:55
247,331,239
0
0
null
2020-03-14T18:26:27
2020-03-14T18:26:26
null
UTF-8
Python
false
false
644
py
add_mac_columns.py
# Copyright (C) 2021 Hatching B.V. # This file is part of VMCloak - http://www.vmcloak.org/. # See the file 'docs/LICENSE.txt' for copying permission. """Add mac column to image and snapshot Revision ID: f5b14c62e62c Revises: 5a5957711538 Create Date: 2021-11-03 15:12:45.181910 """ # Revision identifiers, used by A...
d835504946ea395e590a14d307713afee78d694f
d592ce27189cc90aa823527344ac341d849852e6
/scripts/simple_het_ramsey_ss.py
b8ca4ca5311adb70f6b617a9ddb4c8f030d87248
[]
no_license
shizelong1985/optimal_policy
fb4a39bbe142d6ac2fb6fe94294685fd0c045898
94da3ff58e3cbe008144266d4a38e62ea07fbf20
refs/heads/master
2023-05-31T05:56:59.129605
2021-06-25T19:26:32
2021-06-25T19:26:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,646
py
simple_het_ramsey_ss.py
"""Replicating/extending the preliminary results in the `simplest possible het agent ramsey steady state` notebook""" import copy import numpy as np import matplotlib.pyplot as plt import sequence_jacobian as sj import sequence_jacobian.models.krusell_smith as ks from src.models.simple_het import simple_het_ramsey_re...
b45331f5522cc517dabb3887f115a2dd79512f9b
5d5b3aafe91604e0758dab1aac83059eb40b963a
/HW4/main.py
430e6feb10d265a6d352f1bd68b0dc5f50c2104b
[]
no_license
moscalej/Deep_learning_hw
2616226637b3baaadd578a1cdc9c607a1b83e033
12347da8201d0b21ac82ce71a4d89409bd918fca
refs/heads/master
2020-03-15T22:55:48.997863
2019-10-18T15:47:55
2019-10-18T15:47:55
132,383,224
0
0
null
null
null
null
UTF-8
Python
false
false
2,066
py
main.py
### """ Authors : Zachary Bamberger Alejandro Moscoso summary : This Scrip is use for Building and training our model, here we load the the sequences from imdb preprocess then, create a model and call backs for monitoring and optimize the ...
f545c5c6e305c85bf8d59019f712d0b3c01116a9
336f3f4f8dac067884e9f6a2ed0e1a07e6d27ac8
/max-lines.py
06d590fa79b0dc54f6c8d1923d09647d6719f2e1
[]
no_license
EdHurtig/MaxLines
25b8b28dc98485a8fedc71abbe32c8029982bb1e
469c791847655ae46f5485b954853314dcc33e66
refs/heads/master
2016-09-03T06:35:04.470357
2013-05-11T04:05:39
2013-05-11T04:05:39
9,994,664
0
1
null
null
null
null
UTF-8
Python
false
false
812
py
max-lines.py
import csv with open('test.csv', 'rb') as f: reader = csv.reader(f, delimiter=',', quoting=csv.QUOTE_NONE) headers = reader.next() minlens = [] maxlens = [] # building the arrays with the correct length for cell in headers : minlens.append(len(cell)) maxlens.append(len(cell)...
e7ea2944f852838fdf4c3baf375def5553a566ce
7847f0ddc1a74a9dc63eadfc719698be179a65ab
/expenses/urls.py
ac57aa61c2eb478f415bb6b73a1d72fdf5f544ff
[]
no_license
withyeah/xai-hackathon
0715a2629eb346f5b533b292995c5f1bb7007085
ac764a3e7c0f3a196789a221e8ad5013948dfd3a
refs/heads/master
2021-04-07T14:47:41.893183
2021-03-26T06:27:11
2021-03-26T06:27:11
248,684,017
0
0
null
2021-03-26T06:27:12
2020-03-20T06:28:16
Python
UTF-8
Python
false
false
251
py
urls.py
from django.urls import path from .views import SpentView, StatisticsMonthlyView urlpatterns = [ path('spent/', SpentView.as_view(), name='spent'), path('statistics/<int:month>', StatisticsMonthlyView.as_view(), name='monthly-statistics'), ]
828aeb4ae635bfeb52b64104e6e11f663585ed7a
ee77893b8b34b41c2614c825ac457c7ee0a21223
/buffon.py
384aba56ba4c1fbf07a93d85dd9a4abd9619aa26
[]
no_license
jucastro5/pi-estimations
d568e47070fa3368c33785a149873a47495acc72
364494881d4718461bbebd063ee8bd7f18c0018d
refs/heads/master
2020-05-04T14:59:26.633633
2019-04-03T05:52:08
2019-04-03T05:52:08
179,218,932
0
0
null
null
null
null
UTF-8
Python
false
false
3,075
py
buffon.py
import numpy as np import matplotlib.pyplot as plt def buffon(iterations = 100, noprint=False): if noprint==False: print("\ntossin' {} needles....".format(iterations)) #how long the needle is. .5 is half the length between the floorboards. #setting it to 1 (or length between floorboards) results in p...
1692302e06f770b55acfc0646ae77ffc05085393
9634f0db827616083864203533ad24e151673f5f
/main.py
a2bb9656c9eaa67fc8dca50798d4f8d089ecca08
[]
no_license
gda2048/Advanced-17
d9d562437c7a2a90a0b53f49bbbf6f802699dfe5
7929fe04ce12c839d9e2b83055378777f3c62a6b
refs/heads/main
2023-04-09T02:25:07.924824
2021-04-02T06:22:22
2021-04-02T06:22:22
353,926,010
0
0
null
null
null
null
UTF-8
Python
false
false
3,090
py
main.py
from collections import Counter import numpy as np import pandas as pd from sklearn import metrics, preprocessing from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics import f1_score from sklearn.preprocessing import StandardScaler from sklearn.svm import SVC samples_to_test = 2 vectorizer...
19dd343c18f18c2178a6604680f1d782238cfa87
2184bc1cfe5182108ab55f79ff6f4d0f7ffc26e6
/fix_annotations.py
c4439ee679d1ffeb9f91ca0d8423efc44a3a3e11
[]
no_license
gedankenstuecke/LasalliaAnnotationRedo
61e173ec2460b794c3842f1ad6a70243cceec0f4
63ad256233bdaa56d4fe363c336421d8381d9112
refs/heads/master
2020-07-17T00:16:47.234181
2019-09-23T08:45:28
2019-09-23T08:45:28
205,898,899
0
0
null
null
null
null
UTF-8
Python
false
false
2,907
py
fix_annotations.py
from collections import defaultdict import glob OMA_NAMES = [ 'Clagr3_prot', 'Usnflo1_prot', 'Xanpa2_prot', 'umbilicaria_muehlenbergii2'] GO_FILES = { "Clagr3_prot": 'cladonia.annot', "umbilicaria_muehlenbergii2": "umbilicaria.annot", "Usnflo1_prot": "usnea.annot", "Xanpa2_prot": "xanthoria.an...
233e5551742384900258f2d75c559bb7cd27102f
4a814f5243d7db4cb72b10f602a9f30a5c62d14b
/Examples/IO/025.py
6b051ac3b4642bcf49b8d41e8d61099bdc40a454
[ "MIT" ]
permissive
MingyuZuo/APythonTour
d6dbba34d1fa2d82be771c627e52efb5d5b78f2f
86b8ba5131db7b71ae06373a21353bbce7bde1ee
refs/heads/master
2020-04-24T10:53:22.718539
2018-09-01T04:04:17
2018-09-01T04:04:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
546
py
025.py
#!/usr/bin/python # -*- coding: utf-8 -*- # 文件读写 try: f = open('../../LICENSE', 'r') print(f.read(100)) # print(f.readlines()) # print(f.read()) f.close() finally: if f: f.close() with open('../../LICENSE', 'r', encoding='utf-8') as f: print(f.read()) with open('../../python_...
a11b11aa121bbcdbc18f93d327f78d1fd387bb12
8e53852cc7abc714f9f3f9e9a05f13920c582c8d
/deckz/compiling.py
d9e9c0c0f0ee249618865a0c05d9e153b7f0399f
[ "Apache-2.0" ]
permissive
m09/deckz
0a7b88f3c2f418bf784fc2f67fac74b31213eaf9
93c3b3150d6f1e03147cb49e304376696714ed21
refs/heads/main
2021-05-22T21:15:10.852782
2021-05-12T16:20:44
2021-05-12T16:20:44
253,099,121
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
compiling.py
from pathlib import Path from subprocess import run from typing import Optional from attr import attrib, attrs from deckz.settings import Settings @attrs(auto_attribs=True, frozen=True) class CompilePaths: latex: Path build_pdf: Path output_pdf: Path build_log: Path output_log: Path @attrs(aut...
d93c6bfd34182beb57d6b66f22acfeaca95020b0
c64ae55d9459507d117ce74cfe877f31ed50d48a
/boj/dp/b1912/1912.py
3b9d03d58551eb4be72e084a5153dfbe81fe5504
[]
no_license
Ahnyezi/algorithm-python
5d34ff327471dc7876f9b9985e190fe24b2f97ac
d331c42f42a57777327cadcc47cff6ef95670002
refs/heads/master
2023-02-28T15:25:11.334713
2021-02-07T17:29:20
2021-02-07T17:29:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
844
py
1912.py
# 연속합 # 연속된 몇 개의 수를 선택해서 합이 가장 큰 합 구하기 # 1차 # import sys # input = sys.stdin.readline # N = int(input()) # seq = list(map(int,input().split())) # # dp = [0] * 100001 # dp[1] = seq[0] # # if N > 1: # for i in range(2,N+1): # dp[i] = max(dp[i-1],seq[i-2]+seq[i-1],seq[i-1]) # # print(dp) # 예제 충족 못시킴 # 2차 imp...
78628e8e0a5049dc1342167bf4247e5673f3f4ba
39fc76b3cd0c795877a51370a0569844df22c195
/Aula9/aula9-3-web.py
0ab11d51b476eef7c191567fc51d3b9e45fa7907
[]
no_license
Lucasbertilima/PythonPro
403e0735ebaf8e824ea5c26b6ebf5d7903c5d652
fe450464c88a9655624b24b4d741c8a4189a3f13
refs/heads/master
2023-03-20T19:09:53.207624
2020-03-09T14:47:50
2020-03-09T14:47:50
220,218,860
0
0
null
2021-03-20T02:48:18
2019-11-07T11:16:03
Tcl
UTF-8
Python
false
false
152
py
aula9-3-web.py
# Web from flask import Flask,render_template app = Flask(__name__) @app.route('/') def inicia(): return render_template('inicio.html') app.run()
887df8a4173a601cd4ae4f84bf412e83838fa7f3
794dc8e2d1e07e665cc72ebf1501ba43aadad2c9
/NLPRuleEditor/401_OLD/backend/server.py
bed82f1d0f0f075bbb1f72fd930bb35581cf8101
[ "MIT", "GPL-2.0-only", "BSD-3-Clause", "GPL-3.0-only", "Apache-2.0", "CDDL-1.0", "BSL-1.0" ]
permissive
vjirgale/BIMkit
1297599b4ade5e2745cca5c4be549c5ce1504933
612e21980dd7eb934756398ccaabb5d63df42da7
refs/heads/main
2023-06-18T07:42:46.232169
2021-07-17T00:49:57
2021-07-17T00:49:57
390,941,141
1
0
Apache-2.0
2021-07-30T05:23:58
2021-07-30T05:23:57
null
UTF-8
Python
false
false
1,969
py
server.py
from flask import Flask, request, abort from flask_cors import CORS from flask_socketio import SocketIO, emit from parsing import Parser import json app = Flask(__name__) cors = CORS(app,resources={r"/api/*":{"origins":"*"}}) socketio = SocketIO(app, cors_allowed_origins="*") parser = Parser() @app.route('/api/test') ...
03685a6807a74dccd6192529d6d69e339f9a49d1
94eb45d61a86e8bbe8dbb6699caefe4bcd2a882e
/dinners/urls.py
9188c7702da87ea1c9624e82421a00fb6a62066b
[]
no_license
dgouldin/lazybear_old
1150f1c86af9dee9f95bdfc925383706564ab31d
07582fb51efb32171146162d164bfdb35ae4af94
refs/heads/master
2020-04-15T09:48:02.095408
2013-02-25T18:19:10
2013-02-25T18:19:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
urls.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.conf.urls import patterns, include, url from .views import (dinner_group_default_reservation, dinner_group_reservation, thanks) urlpatterns = patterns('', url(r'^$', dinner_group_default_reservation, name='di...
b4f09b962add0f6a2b2957b18cfe0c3c03021272
91d2aabad111039fd58fbd9742e29b7c720a892b
/fables/parse.py
018fbc9df4f4fbf2dd8cc8e1e3fc4a536dc7c672
[ "Apache-2.0" ]
permissive
thomasjohns/fables
07ee769196e5618ad2ddc92924691a182a051e2f
2cdbabc32a11862b3ffa1b3c202a223809391d02
refs/heads/master
2023-06-23T00:13:00.648641
2021-08-06T14:59:51
2021-08-06T14:59:51
185,246,183
0
0
null
null
null
null
UTF-8
Python
false
false
9,371
py
parse.py
""" Define visitor of functions for nodes of the detection tree. Each visitor will either generate tables based on the node type or will make a call to its children nodes to generate tables e.g. a Zip node will look at all of its child files for tables to generate. The visitor does inspection on the node to decide wha...
7782f1c586599a4864220a601aa057d16b03e7ad
d05c946e345baa67e7894ee33ca21e24b8d26028
/machine-learning/nlp/sentiment-analysis-vader/sentiment_analysis.py
8f64d27b6f1c9adbe7685253c46c5222838b75a5
[ "MIT" ]
permissive
x4nth055/pythoncode-tutorials
327255550812f84149841d56f2d13eaa84efd42e
d6ba5d672f7060ba88384db5910efab1768c7230
refs/heads/master
2023-09-01T02:36:58.442748
2023-08-19T14:04:34
2023-08-19T14:04:34
199,449,624
1,858
2,055
MIT
2023-08-25T20:41:56
2019-07-29T12:35:40
Jupyter Notebook
UTF-8
Python
false
false
951
py
sentiment_analysis.py
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer # init the sentiment analyzer sia = SentimentIntensityAnalyzer() sentences = [ "This food is amazing and tasty !", "Exoplanets are planets outside the solar system", "This is sad to see such bad behavior" ] for sentence in sentences: ...
d01089ae0d9869a6bf0f6314ef9137c4ff10e3a4
580daabe415797bdf3156d9067c6514c11e0d303
/fetchArtistRecords.py
ef7f623371b64a49a687c637e37fa5a3402a285f
[]
no_license
tlgould/artist-data-getty
33a87c034668b111d90cd3855997c06f932f2885
9fa3705bbdeea2455a0617e508515864e2f06152
refs/heads/master
2021-01-01T04:48:15.118250
2018-07-10T22:55:47
2018-07-10T22:55:47
97,250,535
0
0
null
null
null
null
UTF-8
Python
false
false
3,346
py
fetchArtistRecords.py
''' Created on 17 Jul 2017 Main code to read in CSV file, fetch ULAN id's and names. @author: tgould ''' import csv import unicodecsv import argparse from artistRecord import artistRecord def readCSVFile(FilePath): with open(FilePath, 'rU') as f: reader=csv.reader(f, delimiter=',') return list(rea...
ac284df905ddee6b7a27359eac5a9a01849ac9bb
4a8951d017d8a79a1058815f33ddd9f01e488fe4
/store_page_links.py
faa8663e875f0d256c072f6b776f7fe4be5394ad
[]
no_license
danport899/hollywood_rankings
664c6d8704f91b4a1fad7c34b2f46cd07f5083ad
a28648a66bdb05370d24bad5a99d7075ddbe3f15
refs/heads/master
2020-03-14T15:46:30.878605
2018-05-01T16:13:14
2018-05-01T16:13:14
131,683,843
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
store_page_links.py
from urllib.request import urlopen from urllib.error import HTTPError from bs4 import BeautifulSoup import time import csv target_year_list = [2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2000] link_list= [] def get_all_links(foobar): number_list = [1,2,3,4,5,6,7,8,9,10...
a305a48d023d1aff2722a67655eaa8177a8f3b62
34d0ab151b91f670fb0f83fc31847b48283d32ac
/code/SSL/MonoDepth/train.py
be0eda5664df1a06067b9caf1d9377b6a0c88d6f
[]
no_license
Full-Stack-Typhoon/Autonomous-Driving
e479ed4ef79626cb84ee5158f0264f4de9db3e60
3b94be6c295f881b1738944167cc90236ee7e7a3
refs/heads/master
2023-02-23T18:07:41.699955
2020-07-27T06:14:26
2020-07-27T06:14:26
282,748,283
3
0
null
null
null
null
UTF-8
Python
false
false
394
py
train.py
# Digging into Self-Supervised Monocular Depth Prediction (https://github.com/nianticlabs/monodepth2 code modified for our purpose from __future__ import absolute_import, division, print_function from trainer import Trainer from options import MonodepthOptions options = MonodepthOptions() opts = options.parse() i...
d6d33e38ab95bc31d2fdc8d9424f78a0bdf344c4
e695418ad9af72885a20ef89c4d31e2ad85e64b1
/python_wrapper/sorpproplib/data/create_json_file.py
4d2e20b13dc181f95156e86b46673cf6133a7aa8
[]
permissive
zhiyaoYang/sorpproplib_JSON
5d94f1d0296326695f04e89dff593e7fd7a36a1c
ecfb5223848eef10cea8b4c2f2a1910d716d0867
refs/heads/master
2021-10-30T20:31:45.227934
2021-10-11T20:42:17
2021-10-11T20:42:17
112,425,677
0
0
MIT
2021-10-11T20:41:29
2017-11-29T04:16:54
C++
UTF-8
Python
false
false
33,309
py
create_json_file.py
""" Created on Thu Mar 5 17:55:58 2020. @author: Engelpracht """ # %% Import relevant libraries. # from json import dumps from os import listdir from os.path import isfile, join from typing import Union from pandas import read_csv, DataFrame, Series # %% Define global constants used to read *.csv-files and to cre...
9bb668340d1bde8ede7c067e03d9530568285700
66722915d915866ba8e624b7de9e279ffaef1d4f
/handtracker/collision_avoidance.py
d7211871815cc34b74d4dbb52c09d5bef3156273
[]
no_license
JuanesHe/thesisSK
7fbb44d17646877d687573531a757759ee82e182
5a52039cb253c8898b3fb04c34bf59b0f6137c21
refs/heads/master
2020-12-18T09:38:58.819328
2020-02-26T10:53:54
2020-02-26T10:53:54
235,332,673
0
0
null
null
null
null
UTF-8
Python
false
false
6,695
py
collision_avoidance.py
import time import sys import urx import numpy as np import keyboard import json import numpy as np from numpy.linalg import inv import triad_openvr import sys interval = True xo = 0.012 yo = 0.01 zo = 0.211 x = 0.05254006385803223 y = 1.0358047485351562 z = 1.0186753273010254 v = triad_openvr.triad_openvr() try...
0534ef9a7eaa18291cb408f627398adffd719a28
9f7bf32113bd439ca25c01b1edf912af24da4689
/py_file_ext/delete_file_extensions.py
f8c1cb96a79ab48b2f24d4c61f5fbc2590f73ea7
[]
no_license
gabubellon/one_shoot
d1440caab77b9a5dd8884cf9699d96ecab5a1596
b1e275778ba5b336ffd87784cb4a1e662890eee7
refs/heads/master
2021-06-24T15:15:08.428045
2020-10-02T17:05:54
2020-10-02T17:05:54
130,882,015
0
0
null
2020-10-02T17:05:55
2018-04-24T16:15:49
Jupyter Notebook
UTF-8
Python
false
false
2,641
py
delete_file_extensions.py
#!python3 import os import argparse def get_extesions_del(path): with open(path) as f: ext = f.read().splitlines() return ext def get_files_to_del(path, ext): files = [] # r=root, d=directories, f = files for r, d, f in os.walk(path): for file in f: if check_extensio...
0ca704accc04e13891231bb96536c7b5580d8893
4993f105c305586b2e8b5fcf5e9f6c6c6a6520af
/src/threads.py
06adb3eb2a991a942dd5f7a7df651bd16d371dcc
[]
no_license
BrownEmmett/rpi-display
ba6f6ccfa27bba0c9aa62de3a242cfd29e837345
6b157fcdaffbe45cca462f53b13041ba08c5231c
refs/heads/master
2020-03-07T14:47:40.332192
2018-01-25T10:33:47
2018-01-25T10:33:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,516
py
threads.py
from threading import Thread from datetime import datetime import events from display import device from constants import HOURS def start_flow(): global thread_flow events.brightness_dependent_on_time_mode.set() thread_flow = Thread(target=brightness_flow) thread_flow.start() def start_time_dependen...
05478beec82961d6b088b5c9bd91238e2eba19c6
f182c4daf80e0e815d9f75d88b3ffdef05faf699
/basic/012sys.py
d4b2686089b3f4a13f17e6a21b32e675602caa04
[]
no_license
ron-weasley/python-practice
9b79879614f18d94cd89b302e4cbcd13b3d756b6
3f6eecf5d1595a0c532b6581ff319a7b5bc7bcd4
refs/heads/master
2020-12-09T11:19:49.861117
2020-01-11T20:03:17
2020-01-11T20:03:17
233,289,431
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
012sys.py
import sys import os print (sys.builtin_module_names) print (sys.copyright) print (sys.getrecursionlimit()) print (sys.getsizeof(os.path.realpath('002list&tuple.py'))) print("Float value information: ",sys.float_info) print("\nInteger value information: ",sys.int_info) print("\nMaximum size of an integer: ",s...
63c14e7d8eaf4ab146535e041c1ea45d1c1a1a88
d68a2dcadb29f3c1bbf9a15b9b67b0f1f00f668a
/User/models.py
428192d34f61ab769ec7f436ff25e40cd4e68853
[]
no_license
naveenr414/Collaborate
d269993fc90442ca63457015f4295d3d34523f7e
acc4512873bf12f1cb3cd4c2633dd7d4bd2224d8
refs/heads/master
2021-01-10T07:01:45.468314
2015-12-06T22:34:11
2015-12-06T22:34:11
46,990,458
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
models.py
from django.db import models # Create your models here. class User(models.Model): username = models.CharField(max_length=20) password = models.CharField(max_length=200) firstName = models.CharField(max_length=30) lastName = models.CharField(max_length=30) email = models.EmailField()
d0fe053c3c85fc7285cb259b601eb85b744a885d
4a54e1c0b2f5f0bf2640596293cdce5a72d0f858
/python_basics/checkerboard.py
a7ce51fdcbee4546e082ea7a9f2a993647beafcf
[]
no_license
py1-10-2017/RaphyR-py1-10-2017
a1d5c8da3cb8b255c9e7dda0646c9a67f1c33fb2
b9d54f76f65773ea9cd4819aa1746245d4b5692d
refs/heads/master
2021-08-26T09:45:33.945845
2017-11-23T04:45:44
2017-11-23T04:45:44
106,359,620
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
checkerboard.py
# firstRow = '*' # secondRow = [] # while len(firstRow) < 56: # # first line # if len(firstRow) == 7: # firstRow = firstRow + '\n' + '-' # if len(firstRow) == 16: # firstRow = firstRow + '\n' + '*' # elif len(firstRow) % 8 == 0 and firstRow[-1] == '*': # firstRow = firstRow + '\n...
72c3258ddb7119a410634eb5f0798746cfd36f90
f9971d3e43906efc450f13270eea9104ddfb8157
/bikeshare/bikeshareapp/models.py
547da9fb638fde47b7ecbcd9e97d9f627322e183
[]
no_license
EuanMason/BikeShare
0c92b8caeb986d5d712f4a791f2fcf950b2500c9
c8c6f9abf9fda24623e2a3a84c08414b51bed25f
refs/heads/master
2023-08-06T19:38:57.529337
2021-10-11T12:06:47
2021-10-11T12:06:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,944
py
models.py
from django.db import models from django.utils import timezone class Wallet(models.Model): """ Model to represent the table Wallet - Which is to manage the user's money Attributes: WalletID (int): Id of the wallet Credit (int): Available money PaymentMethods (int) : Possible ways to pa...
8bd4d8b74a1876da2bc77f62b7dbf1f9f46905fd
251d6d11e807fa47fd1bad1f070b727500b17fd5
/shares/models.py
1a0bca133f951eb0a05ddd72a305401b774791ba
[]
no_license
khokhlov/dinv
a0964403a930f479fb744d90c4dbad887ba9810c
7943b533808c913ec3564aa28ada485f857609ee
refs/heads/master
2020-05-26T13:06:42.975971
2017-03-10T12:02:30
2017-03-10T12:02:30
82,479,422
0
0
null
null
null
null
UTF-8
Python
false
false
17,462
py
models.py
#coding: utf-8 from __future__ import unicode_literals import datetime import csv from decimal import Decimal from django.db import models import django from django.db.models.signals import post_save, post_delete from django.db import transaction from dinv.utils import daterange from securities.models import ShareHi...
ac63f8ff8f2eac8688b4053d7355c591fb6caa7b
f1cb02057956e12c352a8df4ad935d56cb2426d5
/LeetCode/1351. Count Negative Numbers in a Sorted Matrix/Solution.py
2cea992382a1246035e3ff1db697435299c314aa
[]
no_license
nhatsmrt/AlgorithmPractice
191a6d816d98342d723e2ab740e9a7ac7beac4ac
f27ba208b97ed2d92b4c059848cc60f6b90ce75e
refs/heads/master
2023-06-10T18:28:45.876046
2023-05-26T07:46:42
2023-05-26T07:47:10
147,932,664
15
2
null
null
null
null
UTF-8
Python
false
false
669
py
Solution.py
class Solution: def countNegatives(self, grid: List[List[int]]) -> int: # Time Complexity: O(N + M) if grid[0][0] < 0: return len(grid) * len(grid[0]) low = 0 high = len(grid[0]) - 1 col = 0 while low < high: mid = high - (high - low) // 2 ...
1cec7e9019d2b25992fbc6fe6b8a0f7e079e496e
d5f4b09c38cef1ae6ea22c70bd13316661fa1fcb
/Recorder/GuiSikuli.py
9c3446034af6924a76903ce69852ac41ba6d3fcb
[ "MIT" ]
permissive
ExtensiveAutomation/extensiveautomation-appclient
fa4ec42c762c0941c104b679374113b9eac8d0a0
66f65dd6e4a48909120f63239f630147c733df3f
refs/heads/master
2023-08-31T00:04:03.766489
2023-08-18T08:30:01
2023-08-18T08:30:01
168,972,301
2
1
null
null
null
null
UTF-8
Python
false
false
51,754
py
GuiSikuli.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------- # Copyright (c) 2010-2020 Denis Machard # This file is part of the extensive automation project # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Le...
37124a697a16892fdf01d4494ce7bda19a5be161
57d209ce6fc9af31d6ead21f4a36d59e9bc544c4
/sm.py
704f3c70cb277befbbd558575b673f49c8a9cfff
[]
no_license
ultranaut/smpy
77a88d59c623a8585fc004988e6ee61dc44c5575
811754a1ace8fb63169a9c6d24da7fd4687e252c
refs/heads/master
2020-04-13T17:52:49.487341
2012-10-21T00:43:06
2012-10-21T00:43:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,392
py
sm.py
#!/usr/bin/python import os import re import pprint import sys from urlparse import urlparse def parse_entry(entry): """Parse a line from the Apache log Log entries are of this format: 127.0.0.1 - - [23/Dec/2010:13:10:30 -0500] "GET /favicon.ico HTTP/1.1" 200 1406 127.0.0.1 - - [23/Dec/2010:13:10:30 -0500] "G...
cbf5c14a04e68d0dc2ea69c789333abe498ef091
3a0244e24c65ebcad73596d7729c428c32d9fab8
/Exercicios/ex026.py
b15269f7f824fc54b0d9926e49c0d242e8a80e8c
[]
no_license
MarcosFantastico/Python
0536d5abeb4693832dc7ddc70873523673f30c16
7df40d5a3838a9cbccde3dbcfea1235e4f75e1db
refs/heads/main
2023-08-11T10:32:34.103131
2021-09-20T15:06:54
2021-09-20T15:06:54
341,661,701
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
ex026.py
print('\033[34mFrases\033[m') frs = str(input('Digite uma frase qualquer: ')).strip() a = frs.upper().count('A') a_f = frs.lower().find('a') + 1 a_l = frs.upper().rfind('A') + 1 print('A letra \033[4;32m"A"\033[m aparece {} vezes\n' 'Ela aparece pela primeira vez na posição: {}{}{}' '\nPela última ve...
3f0ca53ae3594c14f6fa4d85fe32a2d2da9f2810
0a3c453c20f6e9904400c7a1df0f750e2da2a1e3
/Teams_available_Automation.py
cb92c131c013234851f18191d7cd9706640ce215
[]
no_license
nishanthtnoorithaya/Spyder
173bd48a106f2ba06c2e1ff82b062369b97bd314
cf4420a8deaac80e092b737e637c2e7cae106bb9
refs/heads/main
2023-04-22T22:13:19.883391
2021-05-06T12:39:23
2021-05-06T12:39:23
353,620,078
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
Teams_available_Automation.py
# -*- coding: utf-8 -*- """ Created on Thu Apr 1 15:44:24 2021 @author: Nishanth T (Junior Python Developer) """ import pyautogui as pg #print(pg.size()) # Specifies the complete size of the laptop/Desktop. pg.moveTo(1167,745, duration = 1) # This will move cursor to taskbar, where the teams app...
a2f45dcc8647a0e0fffe6916cf3c58a3d197e50d
fdd47ce5213287b47ffb0e1a47782f90ecb6584f
/quick_sort.py
836ec3ce22380c21566e8894d42c61819a9bfe33
[]
no_license
mango-days/quick-sort
b6e3b04a7a75550e9d38dd97df7b4702cd000202
a7b463dc2186edbb4cb1d364dc72c5d075d0df76
refs/heads/main
2023-09-02T13:18:40.092954
2021-11-05T16:54:28
2021-11-05T16:54:28
425,022,055
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
quick_sort.py
array = [1, 4, 9, 3, 5, 2, 8, 6, 7] def quick (array): if (len(array)>1): pivot = array[-1] i=-1 for j in range (0, len(array)-1, 1): if (array[j]<pivot): i+=1 temp= array[i] array[i]=array[j] array[j]=temp a...
08db8db91019c9796daea00322f331eeac3c8ce7
54a25d2d27d6e02fda703f9c8b825b10aab6e9d2
/mnet/apps.py
8abbcb99741b19845c4727040c5c562a0b0618c0
[]
no_license
Pwang-je/Proj_music
95f3c08d467a0e1030713c009fae32599045aa90
282719481e4e4ac8e1063de05516a39895a349bb
refs/heads/master
2020-04-13T04:48:55.871334
2018-12-27T08:55:05
2018-12-27T08:55:05
162,972,058
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
apps.py
from django.apps import AppConfig class MnetConfig(AppConfig): name = 'mnet'
55e3b83b6b1b0f6a8a72fe5346e68e5b4c07b1a3
2dfbd1328e4dd6dc9852d52e90cd627b402059e1
/OOPALL/OOP/classA.py
40f2a9a60a41a03ad802d367c24f4d9becb0b4da
[]
no_license
Bappy200/Python
2817bcb32bf751033fadc960694704a546055e47
0ad3d53cc204af361890182585cdf9bd3ec9a199
refs/heads/main
2023-03-01T05:29:32.994940
2021-02-12T23:08:36
2021-02-12T23:08:36
338,268,623
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
classA.py
class Parrot: species = 'bird' def __init__(self,name,age): self.name = name self.age = age def displayData(self): print('Name is : '+self.name) print('Age is : ',self.age) print('Species : '+self.species) ob = Parrot('shlik',12) ob.displayData()
b19220908ee66bf8052b1612ba831b825b1f0851
1a53f21d53b2712405c31a37c1a90b9b99bfaffe
/usage.py
af995191200cde2fae201257b03ad3347c67cf5b
[]
no_license
mimota1994/qlearning_fog
c226bdb401931f0111d478014f34d04a0b41ae2a
9f7f09a4b5d6a6fa840098222f40f84029fc11a3
refs/heads/master
2020-03-17T10:39:00.628521
2018-05-15T13:42:25
2018-05-15T13:42:25
133,519,848
0
0
null
null
null
null
UTF-8
Python
false
false
3,622
py
usage.py
#_*_encoding:utf-8_*_# from maze_brain import QLearningTable from env import Maze import numpy,pandas from greedy import greedy #qtable对于任务到来的反应 def arrive(state ,resource): #挑选动作以及执行完动作之后的资源数,如果状态不存在,会在qtable中加入这个状态 action,resource_ = RL.choose_action(str(state),resource) if action==0: ...
49d3fc023e4bef56ce7f78fb5bd847b1fef5c82e
2a5b8de846314d3882f8fcc90ce91fb45321f4d8
/tests/test_shops.py
7828f64e0a82fe3d1ca25e0fb3d638d3e072655a
[]
no_license
helderm/tictail_task
ab87f38922a770d5d53ba243e61477d1b60b4ac2
796d5c49f07c47459e7f63d1db5f3242887dd449
refs/heads/master
2021-01-23T09:39:38.334009
2017-09-06T10:57:29
2017-09-06T10:57:29
102,588,344
0
0
null
null
null
null
UTF-8
Python
false
false
7,926
py
test_shops.py
# -*- coding: utf-8 -*- from server.shops import Shops from mock import mock_open, patch import pytest as pyt import uuid class TestShops(object): def setUp(self): self.shops = Shops() def test_load_shops(self): shops = Shops() # test file does not exits with pyt.raises(IOErr...
a49e74717eabb50440f5dbfcda37165f0bd082f1
5fe72bb13baf3649058ebe11aa86ad4fc56c69ed
/hard-gists/5057356/snippet.py
f934f58eda51b087a18a68646764d6fee6adcf4d
[ "Apache-2.0" ]
permissive
dockerizeme/dockerizeme
8825fed45ff0ce8fb1dbe34959237e8048900a29
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
refs/heads/master
2022-12-10T09:30:51.029846
2020-09-02T13:34:49
2020-09-02T13:34:49
144,501,661
24
20
Apache-2.0
2022-11-21T12:34:29
2018-08-12T21:21:04
Python
UTF-8
Python
false
false
740
py
snippet.py
# Variation of the 'Basic Scene' template that shows every # touch in a different (random) color that stays the same # for the duration of the touch. from scene import * from colorsys import hsv_to_rgb from random import random class TouchColors (Scene): def setup(self): self.touch_colors = {} def draw(self): ...
5c243c5d84920e4997ba0840d64a02b1d956b6b1
d717bd9765920164c8098f05f769e7fa1e220676
/extras/hgext/hgattic/__init__.py
123a6c47a97cdad0846124a899120a5b6ea27805
[]
no_license
KyhleOhlinger/COS301-Group-4_B
76ddb9123aba545add484d4622e7cc5efc3afca6
7cc3f974e9adffb2effd5ed7c18d6485e0656961
refs/heads/master
2021-01-10T19:22:55.801672
2015-02-27T10:42:18
2015-02-27T10:42:18
30,792,618
1
0
null
null
null
null
UTF-8
Python
false
false
39
py
__init__.py
#!/usr/bin/python from attic import *
517b901342a05231fb1bbb7856d61aa5f412a1f1
0a3220f457c4dff11d3cba3c9e1fb33eba5304ed
/resources/accounts/group.py
316c7df764666765c0c0b423acc15f56ee34f444
[]
no_license
linchqd/Ops
64083585aa6318d505510382a4199a0046ba572a
f8c41b0702a223752f4a483329ed98c3b6091020
refs/heads/master
2021-03-20T17:15:31.087532
2020-03-16T09:15:09
2020-03-16T09:15:09
247,220,506
0
0
null
null
null
null
UTF-8
Python
false
false
5,724
py
group.py
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ from flask_restful import Resource, reqparse, request, abort from flask import g from resources.accounts.models import Group from resources.accounts.MaSchema import GroupSchema, UserSchema, User, Role, Permission from libs.auth import permission_required class Groups(...
7bb3bf5ee23f49aa78c917ab9c846ffdeb378e6d
f6ec475f0e63927789ba59e891b420ec49e3a52a
/src/pyvision/edge/canny.py
f9612dffd05396a733f44cbf899be7435fb6ebe5
[ "BSD-3-Clause" ]
permissive
bolme/pyvision
49fac06a1c19bab25a6b7e93c4d1b90131854c1f
caa4e0254f55c5c8f3464807556b9414ea731293
refs/heads/master
2021-11-29T00:49:00.396251
2021-11-14T05:12:21
2021-11-14T05:12:21
22,430,656
47
41
null
null
null
null
UTF-8
Python
false
false
4,110
py
canny.py
# PyVision License # # Copyright (c) 2006-2008 David S. Bolme # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, thi...
710951a7eea85d98664c9993f96513ae2ea7159c
f2dd978f5926dc6f419bdc8de8ac7c0b39a6f206
/A3C/agent.py
bb92185c1d5833eb179f111aef75c69b643d1e0b
[]
no_license
OnePear96/INF581-RL_Project
9743c10dbc387e84677e9c37be901c1d6987cb58
e48ad9806abe09fcf40fbc23472c85f76c0dad85
refs/heads/master
2023-08-08T23:35:44.769814
2020-03-11T11:59:05
2020-03-11T11:59:05
243,987,407
0
0
null
2023-07-23T07:13:58
2020-02-29T14:53:42
Python
UTF-8
Python
false
false
2,661
py
agent.py
import torch.nn as nn import torch import torch.nn.functional as F class Agent(nn.Module): def __init__(self, **kwargs): super(Agent, self).__init__(**kwargs) self.init_args = kwargs self.h = torch.zeros(1, 256) self.norm1 = nn.BatchNorm2d(4) self.norm2 = nn....
bf8bf3dfd38e4058cd5e24973bade28fddee1645
bb20c199e5d767d15961741dccc09d33bdeb245e
/example/example/spiders/pga_spider.py
2e3da174d5ced3bd5149b3c359a8b98a02f319bd
[]
no_license
realJDD/PGA
7742e2738969acbc450211f112c67bbaf12a97c4
03bad04f56e2e01500c4107da3e663bcc1ed0fe9
refs/heads/master
2020-06-23T20:22:11.422568
2019-08-05T21:43:23
2019-08-05T21:43:23
198,742,318
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
pga_spider.py
import scrapy class pgaSpider(scrapy.Spider): name = "PGA" start_urls = [ 'https://www.pgatour.com/players.html' ] def parse(self, response): all_players = response.css('span.name') for players in all_players: yield { # 'Name' : players.css("a").xp...
b77b2449a8c8325d6e8e20315f4b0443cc86caac
83da4ab954a019f3994811add2c9f2a0a93f75bd
/blockpy/blockpy/game.bpy.py
925c8db984ee759a01e0663e7a064785d862dc10
[ "MIT" ]
permissive
heartleth/blockpy
0bf964c0031c708cbc6974f1b098f479b8d2d41b
c07f903cd2dc8625976610e8e98b40b4d18fa5f1
refs/heads/master
2022-09-25T18:31:06.306398
2020-05-31T04:25:05
2020-05-31T04:25:05
268,206,822
3
0
null
null
null
null
UTF-8
Python
false
false
49
py
game.bpy.py
for i in range(10): print(str(i))
38372a388f0089a07213382c77e9a96c6cf1bbb2
feac7521750d0757d08f24dd705fbb63bea67676
/core/account/forms.py
0ac5807dc8a001a8a913db4525632095f3919fbe
[ "MIT" ]
permissive
itsnamgyu/fooddeuk
9dec1834bf864ac8fcb94855bcf14bb121e08972
0fda87f709e509c1aebaa409e1a8be2f301c52a7
refs/heads/master
2023-03-19T18:06:05.948594
2021-03-07T05:50:05
2021-03-07T05:50:05
286,177,882
7
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
forms.py
import hashlib from django import forms from django.utils.translation import gettext_lazy as _ import allauth class SignupForm(allauth.account.forms.SignupForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields["first_name"] = forms.fields.CharField( ...
e63366fb6238c6d4b14a9f02c95e092d8830762d
d75b1d3437c9b9632ef0454bcad3929e46ab3a9d
/Project03/django_project/p3app/urls.py
eee806758ec064bd5ba39079b4cd80adf0e70e96
[]
no_license
kanh3/CS1XA3
10944ec53b63d3254afcbd8efa4bdb4fd06de89e
9b75a6f9968da8d71dfaf266db8f9834abd6e7d2
refs/heads/master
2020-04-15T13:01:15.728802
2019-04-25T12:36:05
2019-04-25T12:36:05
164,698,471
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
urls.py
from django.urls import path from . import views urlpatterns = [ path('register/', views.register_user , name = 'p3app-register_user') , path('login/', views.login_user , name = 'p3app-login_user') , path('logout/', views.logout_user, name = 'p3app-logout_user'), path('userinfo/', views.user_info , na...
877bb4a02c695a24e7fcbcc06d56534399c0040f
d76c1fa4b63379c7f9b707026035711abf5439fb
/CursoEmVideo/ex033.py
56aa4f3f1e44db938c8f2e6cac64a266a39bf7f5
[]
no_license
wvcastro42/PythonUdemyFS
3711bdf76368602df56e9478158f8d742a614e99
45670c35971d74fa4f0bba5004f9110a0b5d63ba
refs/heads/master
2023-08-01T13:11:27.217883
2021-09-15T22:34:31
2021-09-15T22:34:31
280,216,858
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
ex033.py
num1 = int(input('Digite o primeiro número: ')) num2 = int(input('Digite o segundo número: ')) num3 = int(input('Digite o terceiro número: ')) print('Menor número: {}'.format(num1 if (num1 < num2 and num1 < num3) else num2 if (num2 < num1 and num2) < num3 else num3)) print('Maior número: {}'.format( num1 if (num1 > n...
9dabd1eefa74d4a1d92d8b91ae88ad1a1eb12c88
238e8834d41096a1d343834cab131dc6cf501a19
/test_vae.py
3f2d40e66aec983a7dc5ec8d0902631b323fcbc3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
xuchen-ethz/UPG-GAN
a4ef0ca9dc673d25ea52e5382288edce3631ab03
b2d2f2f2a36edb4b92495056d207ca10c3b8c621
refs/heads/master
2021-08-30T00:21:20.834821
2021-08-17T08:28:38
2021-08-17T08:28:38
137,863,212
6
0
null
null
null
null
UTF-8
Python
false
false
2,768
py
test_vae.py
import os from options.test_options import TestOptions from data.data_loader import CreateDataLoader from models.models import create_model from util.visualizer import save_images_vae from itertools import islice from util import html import numpy as np # helper function def get_random_z(opt): z_samples = np.rando...
83b5e0e9e71f9ec42639067d95e379a338d195f9
ce63cec7c28611bb0c43bd503996718716246538
/reagent/model_managers/world_model_base.py
b6a19da23732368382cfe34178fb0a0e749a7252
[ "BSD-3-Clause" ]
permissive
mcx/ReAgent
70cbf5484656c8bdf722155e0eacac0385a3e276
57b58a8b3a6b74bb87a197b73a6cd108ddad895e
refs/heads/master
2023-08-10T15:37:02.664394
2021-10-14T01:52:49
2021-10-14T01:53:55
329,295,166
0
0
BSD-3-Clause
2021-10-14T02:16:26
2021-01-13T12:04:53
Python
UTF-8
Python
false
false
3,296
py
world_model_base.py
#!/usr/bin/env python3 import logging from dataclasses import replace from typing import Dict, Optional, Tuple from reagent.core.dataclasses import dataclass from reagent.core.parameters import NormalizationData, NormalizationKey from reagent.data.data_fetcher import DataFetcher from reagent.data.manual_data_module im...
d9e0d139e9b69f89c40c73af2b6673ed3afc97b9
5f27187d8e80400bce7ebc976d5f9dfac5d9c9cb
/dna/serializers.py
8adb42d1ef31e14e0646ee5b391f17468e490382
[]
no_license
gitsierra/ginkgo_task
2f2785f2e173d552cc141d4d5756a324242289f6
fb5281d2b68245f2a7041d05323bcb83bcec7469
refs/heads/main
2023-03-22T16:28:54.990492
2021-03-08T17:35:26
2021-03-08T17:35:26
329,421,475
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
serializers.py
from rest_framework import serializers from .models import DNA class DNASerializer(serializers.ModelSerializer): class Meta: model = DNA fields = ( 'id', 'sequence', 'matching_partner', 'checked_at' )
e24c7637ba02d0f0855c8012b1af2b8ee5c6d96d
1bc6cff26ab76a9389d0b3a910555acd024014c4
/keyboards.py
17c0b4d7fd34ec56779e7e5cc06d420e516ba1ab
[]
no_license
SimonBorin/trek_bot
309436502ff713cb16d06fb2a4d239a85be5155d
82ad72b9e0f40a9fc9bc4ffa09053a5a30de31c9
refs/heads/master
2022-02-09T16:12:20.151282
2022-02-06T17:48:39
2022-02-06T17:48:39
219,005,196
0
0
null
2019-11-22T12:59:10
2019-11-01T14:52:11
Python
UTF-8
Python
false
false
3,977
py
keyboards.py
from telegram import InlineKeyboardMarkup, InlineKeyboardButton def build_menu(buttons, n_cols, header_buttons=None, footer_buttons=None): menu = [buttons[i:i + n_cols] for i in range(0, len(buttons), n_cols)] if header_buttons: menu.insert(0, [header_butto...
78ba474704cc242fc871676f18623bc860000a5e
8fff69dda77ae5a2d8cd358b9a1252620be33dd5
/slack_channel/slack_message_broker.py
c725d98a7120935505cc998a5fc9b1946a8fbf12
[ "MIT" ]
permissive
jamstruth/bottomly
4bc02c9e7900bed6de649217649308abd7eda941
a305c3c0dab241e866f6ab8edeac3f878e6084aa
refs/heads/master
2023-05-05T17:05:16.110670
2022-11-18T13:33:55
2022-11-18T13:33:55
125,026,864
0
0
null
2018-03-13T09:37:02
2018-03-13T09:37:02
null
UTF-8
Python
false
false
2,027
py
slack_message_broker.py
# coding=utf-8 import logging from slack_sdk import WebClient from slack_sdk.errors import SlackApiError from config import Config, ConfigKeys class SlackMessageBroker(object): def send_reaction(self, slack_event_to_react_to): logging.info("Sending reaction") try: client...
062c87afb4bd1650b0253376b6e6fad626e83218
36d4c9a57b53f5e14acb512759b49fe44d9990d8
/pfadsai/10-mock-interviews/social-network-company/on-site-question1.py
d037ab86542f5a2593e4619447e35e19c3b7914e
[]
no_license
yosef8234/test
4a280fa2b27563c055b54f2ed3dfbc7743dd9289
8bb58d12b2837c9f8c7b1877206a365ab9004758
refs/heads/master
2021-05-07T22:46:06.598921
2017-10-16T18:11:26
2017-10-16T18:11:26
107,286,907
4
2
null
null
null
null
UTF-8
Python
false
false
1,279
py
on-site-question1.py
# On-Site Question 1 - SOLUTION # Problem # Given a list of integers and a target number, write a function that returns a boolean indicating if its possible to sum two integers from the list to reach the target number # Requirements # Try pen/paper before coding out your solution # You can not use an integer element ...
752388ce2eb95420609845ea219c38b61c7ec1d4
b566639ffc5e70878f4b5fa0975c4892350302eb
/model/__init__.py
8cfd1074325043ca93df476cabfa247613a00fc6
[]
no_license
lyfb/NNS
4527873878bd331545c315b3a9fbd2d437822f9b
7e8f17a57914d9f356724044bd7111cbaed12019
refs/heads/master
2022-01-04T22:18:47.330554
2019-05-20T04:53:00
2019-05-20T04:53:00
null
0
0
null
null
null
null
GB18030
Python
false
false
494
py
__init__.py
import importlib import os import sys models = [] def create(config): # 将model文件夹加入到import的搜索路径里 currentDir = os.path.dirname(__file__) if currentDir not in sys.path: sys.path.append(currentDir) module = importlib.import_module(config['name']) searcher = module.Searcher.build(config['con...
8118c2ba4db8553cba12bbfeb131e4f24974f891
6696f7e0650f8130ea16388437caa953a8e7a552
/ev3sim/devices/colour/ev3.py
23aac3d16460c9d6a7a6cb9d7227851e0dedbfd6
[ "BSD-3-Clause" ]
permissive
LenTheSpaceWolf/ev3sim
4554317f2118eca9674f0d90d42b9ccd403acb92
407c078cc1212c9d38009f051907b038602b4c6c
refs/heads/main
2022-12-26T08:17:37.901646
2020-10-08T10:07:54
2020-10-08T10:07:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,898
py
ev3.py
from ev3sim.devices.base import Device, IDeviceInteractor from ev3sim.devices.colour.base import ColourSensorMixin from ev3sim.simulation.loader import ScriptLoader from ev3sim.simulation.randomisation import Randomiser from ev3sim.visual.manager import ScreenObjectManager from ev3sim.visual.utils import worldspace_to_...
2750294c32b41d72d92bda8f4b7d97cd71e59a4a
3388ea2dbdd3505f509ab84eaca95e47915c2077
/lbrynet/core/HashBlob.py
4d1521d0b8b9798f1e66d4a752844c6f64d3ccfe
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
shyba/lbry
b90e2f0a2bdde9d8120f155f2d63666b92472e51
ab3278c50a8b7b5a8e9486a1c52be3d5e0c18297
refs/heads/master
2021-01-01T06:25:15.036021
2017-07-14T18:44:03
2017-07-14T18:44:03
97,425,109
0
0
MIT
2020-07-28T16:51:36
2017-07-17T02:01:58
Python
UTF-8
Python
false
false
13,747
py
HashBlob.py
from StringIO import StringIO import logging import os import tempfile import threading import shutil from twisted.internet import interfaces, defer, threads from twisted.protocols.basic import FileSender from twisted.python.failure import Failure from zope.interface import implements from lbrynet import conf from lbry...
a93a1a469bd91f9a93008cf80328b60a94f3304d
bd757d761bd8d7e88bf6361512fb472dc8a32acb
/Mathematics/Convert Celsius To Fahrenheit.py
7f2a0fdf4f5c3bddf35d55343a4f2b4b355d1698
[]
no_license
jainish-jain/GeeksforGeeks
276987d1db14dbea5f016dd48874aba201af6a93
f1d7aed37d73bbac414f9ae0d56ce882d78f1cc1
refs/heads/master
2022-11-21T00:44:43.869356
2020-07-24T14:49:46
2020-07-24T14:49:46
281,741,736
1
0
null
null
null
null
UTF-8
Python
false
false
440
py
Convert Celsius To Fahrenheit.py
#{ #Driver Code Starts #Initial Template for Python 3 import math # } Driver Code Ends #User function Template for python3 ##Complete this function def cToF(C): #Your code here return int((C*9/5)+32) #{ #Driver Code Starts. def main(): T=int(input()) while(T>0): C=int(input(...
eb2473596d45515434106a2225f4184fcdb760f3
4e5c278994743da4751b005b0b9ac288057f901e
/main_app/urls.py
edb3ce8a028a24640c02859bfcc1f079e600e7eb
[]
no_license
miniglock/Punitentiary
ca0b55d4145701737a1af2c54aafbb1c817391f5
b50711cb22377add1cbf8ed0936e4bb0f91343e4
refs/heads/master
2021-09-23T18:55:31.640916
2020-02-13T17:12:07
2020-02-13T17:12:07
246,632,082
0
0
null
2021-09-22T18:44:05
2020-03-11T17:07:24
Python
UTF-8
Python
false
false
1,081
py
urls.py
from django.urls import path from . import views urlpatterns = [ path("", views.home, name="home"), path("jokes/nsfw_jokes/", views.nsfw_jokes, name="nsfw_jokes"), path("jokes/create/", views.JokeCreate.as_view(), name="jokes_create"), path("jokes/<int:joke_id>/", views.jokes_detail, name="jokes_detail...
fd41ce40d404dca96a5ff879d1a5242683bbc03e
1e8b8bd6d6bab32d6430b352670449958fd7838e
/django_app/mysite/views/kadai_test_plus.py
b577c5001ef25aa07cb62f5d206484df51a785ce
[]
no_license
hiro01060815/S-m-System
b643fbdb0bd03aa1d6049b30c88e6cdaead0f762
54366bdadfc5e15dcdf9587a7a61e8cef91caa7c
refs/heads/aaa
2023-01-28T01:35:34.582795
2020-12-04T18:40:07
2020-12-04T18:40:07
289,881,235
0
0
null
2020-10-12T17:59:39
2020-08-24T09:14:33
JavaScript
UTF-8
Python
false
false
4,734
py
kadai_test_plus.py
from mysite.models import CoursesTaken, UserCTInfo, KadaiInfo, UserKadaiInfo, UserTestInfo, TestInfo from django.db.models import * from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect, get_object_or_404 from mysite.forms import KIForm, UKIForm, TIForm from django.http...
3288619d39eb4b60537c8b410f9822c7615bebbe
8ed251a7e662645a61d18138ee7442669f9d26fb
/test/test_integration.py
95aa9b2ab7c302c981b157247e84659b7c3d8105
[ "MIT" ]
permissive
gaborfodor/wave-bird-recognition
73ac5cc6c34a78988e9688d750a469b93f7066ee
6feafdbae82746e3e7b0f6588a9158aa8336309a
refs/heads/main
2023-05-13T01:10:37.173286
2021-06-02T10:21:06
2021-06-02T10:21:06
373,102,632
17
3
null
null
null
null
UTF-8
Python
false
false
709
py
test_integration.py
from birds.display_utils import geo_plot from birds.pann import load_pretrained_model, read_audio_fast, get_model_predictions_for_clip, BIRDS def test_prediction_works(): test_bird = 'comrav' model = load_pretrained_model() y = read_audio_fast(f'./data/audio/{test_bird}.mp3') predictions = get_mode...
0d72b82ce579367deb5603a68d146fb228acc99c
da44d6af15b04e7722d139573609aad4846e9823
/MyPrint.py
02a1adf556f8135eaa02d9800af353580c0b9bb4
[]
no_license
MengYangy/Building-extraction-software-
8b982f28d3864d869b7d1bec4511313344875428
73c8e5f4cb5629ae5f3aa17e3c5beda43267f31d
refs/heads/main
2023-06-07T09:15:16.513842
2021-06-22T06:58:51
2021-06-22T06:58:51
379,170,621
1
0
null
null
null
null
UTF-8
Python
false
false
569
py
MyPrint.py
import time import cv2 as cv # import tensorflow as tf import sys def myPrint(p): # img = cv.imread(r'D:\ttt\data\labs\0.png') # w,h,_ = img.shape # for i in range(w): # for j in range(h): # time.sleep(0.5) # print(img[i,j,:]) # a = tf.math.add(img[i, j, :], i...
c1fcb768698744d439b16443337d6c72295a26b6
d3851680df14a7288716ca1f0f4ffc77352b0085
/works/Python/python ex-5/task-8.py
4a31085fa45d0d0d59a5872b396bc89dc07ef6cb
[]
no_license
Kha1ig/PragmatechFoundationProject
fc6a65133aa4bbc6d5e00ae702c1fe1bcdc5e821
dc469ee5f658114c24e23ea42802ba73378a783c
refs/heads/master
2023-09-01T12:14:20.740403
2021-10-17T12:05:54
2021-10-17T12:05:54
392,282,396
0
1
null
null
null
null
UTF-8
Python
false
false
154
py
task-8.py
import random user=int(input('eded daxil edin: ')) mylist = [] for i in range(0,100): x = random.randint(1,100) mylist.append(x) print(mylist)
0cb47bc3f6a3c4e454610ab9c74de0a9cc80ad1e
a381e504d7a3a643feb1fcc6a51c39bc100b4b1d
/mhdata/cfg.py
ab7375387842fe952d49e310835ce4e85e0e07e7
[ "MIT" ]
permissive
TanukiSharp/MHWorldData
fd7865bfa8bc3c049a5e29baad6b8a9e49c61a89
d7994fced091608a72a3f8e873fe9835f4e49504
refs/heads/master
2020-03-27T13:23:32.259219
2018-09-01T12:52:30
2018-09-01T12:52:30
146,606,370
0
0
MIT
2018-08-29T13:45:44
2018-08-29T13:45:44
null
UTF-8
Python
false
false
1,090
py
cfg.py
""" Contains configuration data for interacting with the source_data folder. These are hardcoded here as this is meant to be a dumping ground. Source_data is not actually user configurable. For customized data loading, use mhwdata.io directly. """ supported_ranks = ('LR', 'HR') "A mapping of all translations" all_l...
24f7b0feeea7001a13df176c38a7490242098cd0
fe55f5b3a19cdbe536bad98261867e61b887257a
/findik-web/comar/package.py
9bade23415e6cfc4f103e7da925e5a6e3d82652f
[]
no_license
hkerem/pisi-packages
d1e79394a7e7110ca1f1d07b98569ffa3d4b722d
d6c209ece822ad81cf74944ffe655677062a7d38
refs/heads/master
2016-09-06T19:36:26.154284
2010-03-15T08:59:13
2010-03-15T08:59:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
package.py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 H. Kerem Cevahir <kerem@medratech.com> # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt import os def backupAndReplace(path): os.system('/bin/mv -f /etc/apache2/' + path + ' ...
0ff2811e8dbb8a03d92426306eb1f2283a0f0ec9
d381bb6643d03a41b6e25e0469eb85040d1aaf19
/pyobjc-framework-PencilKit/PyObjCTest/test_pkdrawing.py
c39f7d7e90576318960680d7f77ff47db6b28749
[ "MIT" ]
permissive
5l1v3r1/pyobjc
5e18a11adc4b5b74bb5b5d939c2cb0a29824c6a6
efecb479c3cf32ec1d36abfb9b7d7c8cfd4ede6d
refs/heads/master
2022-12-15T00:13:31.609738
2020-08-28T07:52:16
2020-08-28T07:52:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
test_pkdrawing.py
import sys from PyObjCTools.TestSupport import TestCase, min_os_level if sys.maxsize > 2 ** 32: import PencilKit class TestPKDrawing(TestCase): @min_os_level("10.15") def test_constants(self): self.assertIsInstance(PencilKit.PKAppleDrawingTypeIdentifier, str) @min_os_leve...
2a03a16d34daf151be799ee32c886711b24050e0
d368cf17a076dd58404baca957f34a027d467e03
/explode.py
5590bfa7515dd75eeeffd78a54cc162c42b672db
[]
no_license
anujsedhai/ChainReaction
0c518b0ef0bba6d38619ca3f827d32dea7be749d
80218f39d9db93ac50ecc5fc628a2f77e6059930
refs/heads/main
2023-06-30T04:48:49.207290
2021-08-08T12:30:36
2021-08-08T12:30:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,948
py
explode.py
import pygame import threading import sys import time class Explode: def adjustCell(self): nextGen = [] for blist in self.blastList: x, y, n, d = blist[0], blist[1], blist[2], blist[3] tag = "circle_" + str(x) + "_" + str(y) + "_" self.cells[x][y][0] = self.ce...
c9f58850ff17dee85375c596043ca59018bbf052
80a847e2d7729da44bccd435f7b0c1242a886205
/resources/ci/common/prepare_appversion.py
bd26318ee76df5e137005fef0e7d1286fc129822
[ "MIT" ]
permissive
aerinon/ALttPDoorRandomizer
26cc97802f8cd6a817aab9e92d5784405611ab33
4dce2762f15a2de7afb50b19bbd49c5a50edda80
refs/heads/DoorDev
2023-08-17T07:24:00.115778
2023-08-07T19:24:36
2023-08-07T19:24:36
203,828,345
52
44
MIT
2023-09-14T14:35:25
2019-08-22T15:59:43
Python
UTF-8
Python
false
false
577
py
prepare_appversion.py
import common import os # for env vars from shutil import copy # file manipulation env = common.prepare_env() # set tag to app_version.txt if not env["GITHUB_TAG"] == "": with open(os.path.join(".","resources","app","meta","manifests","app_version.txt"),"w+") as f: _ = f.read() f.seek(0) f.wr...
f834a0468ecfbdac1aedcd5e64ca333c4dd6fbd7
13188c3534685d99904b278527d13df18c111a9f
/flask_backend/denoise/callbacks/callbacks.py
27e1f0805f9404fa3a2bff40fcd2ff28a0332b6e
[]
no_license
hdragos/cadf
078e232e4bb374039f3cd0b27114788fda607fd9
c09145a57bb49c20b4db1b0fdbdececba33ae42d
refs/heads/master
2023-01-13T22:59:35.317046
2020-06-30T10:25:58
2020-06-30T10:25:58
244,034,981
1
0
null
2023-01-05T08:42:16
2020-02-29T20:15:36
JavaScript
UTF-8
Python
false
false
1,591
py
callbacks.py
import json from tensorflow.keras.callbacks import Callback class LoggerCallback(Callback): def __init__(self): super().__init__() def on_train_begin(self, logs=None): print("Starting model training!") def on_train_end(self, logs=None): print("Ending model training!") def o...
93c0790a71638cd092fb4d0f89ce10f39be61e4d
5d4f427621ad520d2af323e09c23804aae2045b2
/ur_operator/crds/monitor.py
86586f0a527fdedfb7c99e87daadc1b7658eb43d
[ "MIT" ]
permissive
TrendingTechnology/uptimerobot-operator
46d9533b339e334c235890a7bd7868e6cdb958f1
25cdca5ec06e15d05ddd5ed4b13b20082fbb8889
refs/heads/master
2023-03-09T19:06:36.669467
2021-02-17T22:46:02
2021-02-17T22:46:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,313
py
monitor.py
#!/usr/bin/env python3 import base64 import enum import json import kubernetes.client as k8s_client from k8s import K8s from .constants import GROUP from .utils import camel_to_snake_case class MonitorType(enum.Enum): HTTP = 1 HTTPS = 1 KEYWORD = 2 PING = 3 PORT = 4 HEARTBEAT = 5 @enum.un...
ce9c7b81e560d170d329bfbd8448b510c234a342
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/horseman.py
3e696b42a88d53d6b202b97d323144e49b50e0c4
[]
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
759
py
horseman.py
ii = [('CoolWHM2.py', 1), ('WilbRLW4.py', 2), ('AubePRP2.py', 1), ('LeakWTI2.py', 5), ('WilbRLW5.py', 1), ('LeakWTI3.py', 1), ('PettTHE.py', 1), ('ClarGE2.py', 1), ('CarlTFR.py', 2), ('AinsWRR3.py', 14), ('CrokTPS.py', 2), ('ClarGE.py', 2), ('IrviWVD.py', 1), ('GilmCRS.py', 2), ('DaltJMA.py', 1), ('AinsWRR.py', 3), ('M...
1ed522d61c9700fff4523bbacb686ba7627d93cf
385ed58325dd0cc75bdb9fd3e61c5e005f7a4f28
/source/tuyoo/src/poker/entity/dao/gamedata.py
c135a1a6ddea8c545f28f5d76882399583ca090d
[]
no_license
csirui/hall37
17dfa4e4f1f8bf719d0c11ac7738fa4c14fd06db
5c4eb4b2bf57bbbee4731470c830d8d81915d603
refs/heads/master
2021-09-04T03:55:12.460035
2018-01-15T15:12:30
2018-01-15T15:12:30
117,560,615
0
3
null
null
null
null
UTF-8
Python
false
false
4,934
py
gamedata.py
# -*- coding: utf-8 -*- """ Created on 2015-5-12 @author: zqh """ from poker.entity.dao import daoconst, daobase from poker.servers.util.direct import dbplaytime from poker.servers.util.rpc._private import user_scripts from poker.util import strutil def getGameAttrs(uid, gameid, attrlist, filterKeywords=False): ...
6227725bea1a286624acc584f7a76d2e4d9c48f7
2eee2da886d2574f030b22771e707e32f56cbaed
/chaospy/distributions/collection/pareto1.py
b88c0e81a7c52b3c55e4a1c556b66060eed63504
[ "MIT" ]
permissive
lblonk/chaospy
1759f050229d1365802320d9b13f6195ec55a72c
1759a4307c6134b74ce63ff44973195f1e185f94
refs/heads/master
2022-11-12T19:50:15.108219
2020-07-03T11:13:42
2020-07-03T11:13:42
276,879,282
0
0
MIT
2020-07-03T11:03:14
2020-07-03T11:03:13
null
UTF-8
Python
false
false
1,541
py
pareto1.py
"""Pareto type 1 distribution.""" import numpy from scipy import special from ..baseclass import Dist from ..operators.addition import Add class pareto1(Dist): """Pareto type 1 distribution.""" def __init__(self, b): Dist.__init__(self, b=b) def _pdf(self, x, b): return b * x**(-b-1) ...
c4e584aefa129d1d0843b18081fcb62ec4c021a2
0a19a56f1d0285aa27107f1f202c5e366f6d303c
/logic_operation/batch_img2logic.py
e1885749abd09e9746115ec7395bd0fec3270850
[]
no_license
luoolu/pore_throat
8d8396cfbd91ada68aa32e68735079d370652304
16a92dad924d58656090944b2ad55c2205e02d7b
refs/heads/master
2022-12-13T16:22:59.405359
2020-09-13T03:11:09
2020-09-13T03:11:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,240
py
batch_img2logic.py
# -*- coding: utf-8 -*- # @Time : 2020/9/4 下午4:10 # @Author : Luo Lu # @Email : argluolu@gmail.com # @File : img2logic.py # @Software: PyCharm import glob import os import cv2 import numpy as np if __name__ == '__main__': base_name = '' counter = 0 for filename1 in sorted(glob.glob('/home/luolu/...
686ebd331a76707e0ca688a7cc354fdedbc3434b
3391e1f609820ede518766b70435cc10b03cb9ed
/lanefind_gui.py
dfbe19324cd73be4967a65d11b6407be9b5219d2
[ "MIT" ]
permissive
tmssmith/utils_archive
9667a9bcd712de86071ebfba3323e7f821aa9570
b60b25ce769ed985820842009ba2e72daba0a9b5
refs/heads/master
2021-05-23T09:04:31.063455
2020-04-09T08:02:44
2020-04-09T08:02:44
253,212,630
0
0
null
null
null
null
UTF-8
Python
false
false
6,917
py
lanefind_gui.py
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import cv2 import os import argparse import PolygonDrawer as pd import HoughGUI import extrapolate_lines as el vertices = np.array([[100,530],[440,320],[520,320],[900,530]],np.int32) class LaneFinderGUI: def __init__(self, image,...
93a2246f0757ce645cc8a7950923a2e35f411b4c
5987e27b2f375ce4bb6744e938019e39172edf3a
/BatchTranscode.py
57eac9a13eb5b72410e4391a8bbcc0b12b597cbf
[]
no_license
brobzilla/handbrake-batch-transcode
86760b6eae14046c914fff9ee7c1b15958bec3ba
5ed26ee12a4f1bbd561544232aa69949e8e2cf58
refs/heads/master
2021-01-01T18:03:20.495742
2015-02-24T14:00:51
2015-02-24T14:00:51
29,531,577
4
0
null
null
null
null
UTF-8
Python
false
false
5,319
py
BatchTranscode.py
import sys, time from subprocess import Popen from os import walk, path, makedirs, utime from guessit import guess_file_info AVCONV = "avconv" class TransCoder(object): def __init__(self, outputroot): """ This is basically a constructor.""" self.setOutputRoot(outputroot) self.verifyOutput...
830b0354a05a2c2868b9a5873ea8b6a6f5f39de1
061802b6d367bb86ac17da2013591b4b2572751b
/deployment/dockerutils/image_utils.py
bc41ead8c131822a3bf7ed6ae4053f9b43e40669
[]
no_license
demokratikollen/demokratikollen
8e1aeab442b12b8f020efd71eef9175e7d4ac719
1cc7c892e589c2a255caab8c101a410273179351
refs/heads/develop
2021-01-17T05:09:47.549756
2019-02-03T17:43:12
2019-02-03T17:43:12
24,204,589
2
0
null
2017-06-16T09:39:32
2014-09-18T20:49:23
Python
UTF-8
Python
false
false
896
py
image_utils.py
from docker import Client cli = Client(base_url='unix://var/run/docker.sock') def getImages(): return cli.images() def isImagePresent(image_name): image = cli.images(name=image_name) return len(image) > 0 def getImageID(image_name): image = cli.images(name=image_name) if len(image) == 0: return None retur...
3493b132ef659b92e89b1b67ae06615678907341
c0c7921aadad51bc4be75afeadee42e78b99a355
/LeetCode/332/118.py
81faaa8c5f9a0ace869cc1d64b01f1b25ec91f63
[]
no_license
dark-shade/CompetitiveCoding
b16a6da180170112e47233e4289207cfccecac1b
9fbff783fd37f21a0df73a2085b724eec72bbf82
refs/heads/master
2021-04-28T14:40:16.142140
2020-10-03T05:10:33
2020-10-03T05:10:33
121,969,107
0
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
118.py
""" 44 ms class Solution: def generate(self, numRows: int) -> List[List[int]]: if numRows < 1: return [] triangle = [[1]] for r in range(1, numRows): row = [] for i in range(r + 1): if i == 0: ...
e2225bdaf2e6c36fa89f2ab26d4673ce8ed06284
271320d817714d23897062dccd70bf09b8eee6f8
/classutil/scrape.py
d2a5260be6b5c7d2a9e95835f9c2aacab759a544
[]
no_license
uint0/classutil
596ba247b89ab6affae2533079cc55f47048dd65
50da72ea16dd6d9b7444949d5a91a48cb0c7ad07
refs/heads/master
2022-10-18T10:48:58.004401
2020-06-04T08:50:13
2020-06-04T08:50:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,703
py
scrape.py
import os import re import requests from functools import reduce from bs4 import BeautifulSoup from classutil.data_types import Course, Component from dateutil import parser import sys from multiprocessing.pool import ThreadPool ROOT_URI = 'http://classutil.unsw.edu.au/' def log(*message, enabled=True): if enable...
821ad3b70e6021d89a6640f0712de1b648feae27
0f9d5170e6a1c69c40b9c45b9a81da2b492ccb98
/models/cliente.py
86f8fa08ef660b1d7b1004b2e14e6666156419ea
[]
no_license
IsaiasDimitri/sale-control-gui
830e5b67c48669855cf0d15ab39885dd81efa396
7d0db5cc37d238986a37a49fec333cf91b45b0ca
refs/heads/master
2022-12-03T17:40:18.694238
2020-08-20T00:47:54
2020-08-20T00:47:54
288,858,646
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
cliente.py
from .base_model import BaseModel class Cliente(BaseModel): _VALID_KEYWORDS = ['nome', 'cpf', 'cnpj', 'email', 'telefone', 'data_criacao'] def __init__(self, **kwargs): super().__init__(table= "clientes") for k, v in kwargs.items(): if k in self._VALID_KEYWORDS: seta...
e9527f4310b3b2c9a81d6c95a14f864d0a841e50
6c07c12a865de0571df4343271578041a9a48775
/train.py
43c319709520ae947732dfbd668f2c8c74c12e71
[]
no_license
Ryanshuai/Fader_Networks
7300a9669fd5f05f75816c262c32251e277093dc
65a8539ae9f200290eec92956a62b94542da88d0
refs/heads/master
2021-09-01T10:15:34.903903
2017-12-26T12:01:05
2017-12-26T12:01:05
114,607,035
0
3
null
2017-12-26T12:01:07
2017-12-18T07:03:31
Python
UTF-8
Python
false
false
3,102
py
train.py
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import argparse from src.utils import initialize_log from src.model import AutoEncoder, LatentDiscriminator, PatchDiscriminato...
156a3e9d99d19deaf820bfbb4e6a94d7624d1080
4668bac9bd194cfae35516339e752070bae3dec7
/mr.py
8af88f00ee0adc59c882c0e68f48fb819dfa88a0
[]
no_license
Kingdon065/Rename
8191158bff85cdc46da43296433217140bb85c43
9369a87f7fa83ba01c19de66880ac345643a794b
refs/heads/master
2020-04-06T23:55:39.207200
2018-12-18T21:29:45
2018-12-18T21:29:45
157,885,271
1
0
null
null
null
null
UTF-8
Python
false
false
2,070
py
mr.py
#! python3 # main.py import sys, re, os import argparse from rename import * def run(): parse = argparse.ArgumentParser( prog='mr', description='batch renaming files under a specified path' ) parse.add_argument( '-p', '--path', nargs=1, help='specify path' ) parse.add_argument( '-pre', '--prefix'...
faeb5a7fb0cb824595343a9646496dba162efbbc
d231660a58604ec32f5a9a40558daa8456360dd3
/askmasala/apps/clients/models.py
6b53693669a23cb8c3838bac4fd1b3b097a364c3
[]
no_license
gout-tech/ask-masala
34f8830c569a236eb2e5d33852935adbc76f0b44
f778af5995e8802045e50033baa1f4ff11b02650
refs/heads/master
2023-05-09T06:05:38.679739
2020-10-30T14:15:47
2020-10-30T14:15:47
194,424,193
0
2
null
2023-04-21T20:33:05
2019-06-29T16:05:30
HTML
UTF-8
Python
false
false
451
py
models.py
from django.db import models class Clients(models.Model): image = models.ImageField(upload_to = 'media/Person_images', help_text='Upload an image with 200 x 100, size: 2.8 kB (2,783 bytes') hov_image = models.ImageField(upload_to = 'media/Person_images', help_text='Upload an image with 200 x 100, size: 2.8...
2464e6a66df9a23d9ee7dee60a14a894454ca5e5
427238d6c388593c50a6574ce59b2fbca065026a
/hotel/update_staff.py
b2560f4fe38c32a28ef0b3a311009d308643edd6
[]
no_license
monieshravichandrran/Bentley-Hotels
9453b3fcf44d5c9aa47312e4fea17a42283b4b3a
7ca316d93a4ea51fa4fdace4b6364bc39abc2150
refs/heads/main
2023-07-26T12:33:46.218447
2021-09-02T08:44:43
2021-09-02T08:44:43
397,857,987
0
0
null
null
null
null
UTF-8
Python
false
false
13,151
py
update_staff.py
''' Update Staff page ''' from tkinter import * import tkinter as tk from PIL import ImageTk import sqlite3 class Upd_staff(tk.Frame): def __init__(self,parent,controller): tk.Frame.__init__(self,parent) self.grid(row=0, column=0, stick="nsew") self.bg = ImageTk.PhotoImage(file="i...
c54abf3840ce55c8e835c9a8c1284662fdc5ae28
5b5d1372dfce3001eb577bb0f1d97866d92f357b
/babik/fields.py
3413dc7954859dbcf96a1b26eefbc1a3757f8cd5
[]
no_license
karanlyons/django-babik
2a44e3ea969e2719cc07e8469ef85e562e9e711d
60205eaa464263f062f352c08f20aa6521715901
refs/heads/master
2021-01-10T09:40:40.865648
2015-12-28T18:56:46
2015-12-28T18:56:46
48,557,670
0
1
null
null
null
null
UTF-8
Python
false
false
7,703
py
fields.py
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- from __future__ import division, absolute_import, print_function, unicode_literals import simplejson as json from psycopg2.extras import Json, register_default_jsonb from django.forms.widgets import Select from django.contrib.postgres.fields import JSONField from djan...
74c1ff2242024f409f5b2b8833581ce71b1e950b
e299c247c9ff7d48207cc9ef5c17e7ddf9e0970f
/build/lib/subpydence/__init__.py
a4eef671053a7bd3178182f003b5a38749329859
[]
no_license
ecpease/subpydence
abb14a4efa8ca28e3a03aa6638ca7066424881fd
9f1ac7e2d22f7e91bbbea4a966717d630d739969
refs/heads/master
2021-04-18T18:32:03.794578
2019-04-29T14:03:40
2019-04-29T14:03:40
126,719,748
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
__init__.py
import ttim # from .compaction import classsss from .subpydence import *
a3fe9030dff853803dc72b8dd94b8365b1de1e7a
4c3bc399e7acc5d146fb9944136904c260f95f6e
/11.2.py
8354a7101ec5347fa712a20c184bef35e75327c1
[]
no_license
Gerry84/Python-for-everybody
e6cff1d155ed73a307df8555acc917ba31bbe4d5
488f0bf273a310efa7e459734d9a2ea4434695f8
refs/heads/master
2022-11-15T17:00:22.254577
2020-07-06T01:19:08
2020-07-06T01:19:08
277,157,369
0
0
null
2020-07-06T01:19:09
2020-07-04T17:37:38
Python
UTF-8
Python
false
false
425
py
11.2.py
#11.2 import re try: fhand = open('mbox-short.txt') except: print("Can't open file") exit() count = 0 total = 0 l = list() for lines in fhand: lines = lines.rstrip() revision = re.findall('New Revision:.([0-9.]+)', lines) if len(revision) > 0: for num in revision: total = to...