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
f539e3db8f931c5fc19a558b9601189e62acd7c1
1b2774a7ff794a79f6191d8112ff879c32c7db10
/dados_cyd.py
88bd3ae793be82872773b4c8704a4995f730b95c
[]
no_license
GabrielGuzAng/Variables
35fcd4a7f0f94823a6590cd62ec64e88c2d6daa3
8aee696a670923f3975a685c345a9a0a929d8f6d
refs/heads/master
2022-08-08T21:40:00.747594
2020-05-24T17:20:28
2020-05-24T17:20:28
262,873,398
0
0
null
null
null
null
UTF-8
Python
false
false
2,328
py
dados_cyd.py
import random dado1= random.randint(1,6) dado2= random.randint(1,6) dado3= random.randint(1,6) dado4= random.randint(1,6) #print("\n los dados dicen: dado1=%i dado2=%i dado3=%i dado4=%i \n"%(dado1,dado2,dado3,dado4)) menor=min(dado4,dado3,dado2,dado1) suma=dado1+dado2+dado3+dado4 Fuerza=suma-menor print("\n Fuerza...
a1734b84b04a910b41ac6df0a9920e0aa3fd4e44
0a7711063b30b1566ade3cc07f105292e32fe6d6
/scrapy_test/apps/web_scraper/event_handlers.py
749bab5a7c28e703ee774d17155181a200174a64
[]
no_license
huokedu/dynamic-scrapy
e150a1fc6894e39d6bae37c602a592d57cd22c51
31a47e9810f2039cfe33653e09d7d03242764723
refs/heads/master
2021-01-17T21:33:17.810250
2013-10-05T17:28:19
2013-10-05T17:28:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
event_handlers.py
from django.dispatch import receiver from scrapy_test.aggregates.listing.models import Listing from scrapy_test.aggregates.listing.signals import created, deleted from scrapy_test.apps.web_scraper.services import web_scraper_tasks @receiver(created, sender=Listing) def listing_sanitized_create_checker_callback(sender...
bbd3972b52d50bad87e5e0ec1ae22df362f967e4
e3003b90705653b1aab04b75b8c767f8b94e1446
/seamo/support/query_dynamodb.py
1a69cc21af683770af144e887fe0076f009ecdc5
[ "MIT" ]
permissive
dahcase/Seattle-Mobility-Index
e89aff82e1a7cb444b0ac695fad27cd56bce689b
a23e3665b96544ffc0746be533cf2939637b41e4
refs/heads/master
2021-10-07T02:40:23.389186
2018-08-17T23:51:44
2018-08-17T23:51:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,848
py
query_dynamodb.py
# coding: utf-8 # In[3]: import json import os import os.path import boto3 import decimal from pandas.io.json import json_normalize import constants as cn # In[4]: # Helper class to convert a DynamoDB item to JSON. class DecimalEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, decimal...
2c3a7dac097b995c7f86d1d24565ac0be7099d36
6f34eea00fcebbfb2f0eeb5f716c9ad9d29389e3
/quiz-game-start/data.py
f699dea312568bf0ec8769f1af67ec1b9f5c4450
[]
no_license
JAG-010/PythonPractice
a42b3664a3b58908c4a0ed86b81d081fdeb0c851
b8bcd28c092565fcf9e0537642574488a5ed8e16
refs/heads/master
2023-05-10T03:27:33.312314
2021-05-26T00:18:27
2021-05-26T00:18:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,380
py
data.py
question_data = [ { "category": "General Knowledge", "type": "boolean", "difficulty": "easy", "question": "Video streaming website YouTube was purchased in it's entirety by Facebook for US$1.65 billion in stock.", "correct_answer": "False", "incorrect_answers": [...
6523b64d915153c5600f072aa377c95a73671803
2ef200380e0771625ce5851ecea24ab9907856b1
/blog/posts/models.py
e5e1f6013e4d5993db95a21646c55f2504c58ee6
[ "MIT" ]
permissive
YakhyaevRasul/blog
5750a1a9fe48726db838401337bf15f60ede4863
5b9a263511e2ac4763aa0b66490985a42da123e8
refs/heads/master
2021-03-01T23:12:32.708034
2020-03-11T05:44:19
2020-03-11T05:44:19
245,820,183
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
models.py
from django.db import models from django.contrib.auth import get_user_model import uuid import os def recipe_image_file_path(instance, filename): """Generate file path for new recipe image""" ext = filename.split('.')[-1] filename = f'{uuid.uuid4()}.{ext}' return os.path.join('', filename) class Pos...
3a326aeb9e0e91da21d9239a7d501d7763c984a2
64f533b4b8755d19eca18f9d707dc4fa89abecec
/inventm/apps.py
e71ddd173852e6101de7b95103aea4d715d330c2
[]
no_license
munriver/pb-inventm-assig
0ec041986aa064dcb3c6233eca0aa438fde5dd93
1d803a4bfedd1bab7fd09db1fbb91adaf5c36a9c
refs/heads/master
2020-04-03T09:08:50.409862
2018-10-29T05:22:10
2018-10-29T05:22:10
155,155,532
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
apps.py
from django.apps import AppConfig class InventmConfig(AppConfig): name = 'inventm'
dbe49603a76917774de211caceb71a3230d0a1ae
3ec28bc24c597163fb776cfbf107fe6e67250c4b
/src/FileParser/SettingsParser.py
55351099765ad3409b061656a5c692749ed27e61
[]
no_license
josefutbult-school/D7032E-Exam
e59291d7fc801c0e4d167323e597127b93d89abd
477e273ec09bfda8ecf4f477379226fd83ccc465
refs/heads/master
2022-12-30T15:15:48.316253
2020-10-25T23:01:25
2020-10-25T23:01:25
300,034,073
0
0
null
null
null
null
UTF-8
Python
false
false
2,714
py
SettingsParser.py
from pathlib import Path from json import load, dump from json.decoder import JSONDecodeError from io import UnsupportedOperation from FileParser.path import get_root_dir # This class is responsible for loading in a json file containing stored settings from different runtimes. # It should print a message if a file i...
9b7864adc4b1d55e8ba8f40fa699fe61f55fcac9
c0bfdbbc996fc2d7f2e799d02bdb57b9d6b391da
/#Numpy.py
27ee0e02ce38f21895cf4e605821636c98196234
[]
no_license
BenCrittenden/PythonLessons
799156db05342ad8001af2405140ed14168a4564
7ff7c7ec320e2523eecd0819e579e1f0fa3929f2
refs/heads/master
2021-08-08T02:37:17.564074
2017-11-08T18:02:42
2017-11-08T18:02:42
110,105,015
0
0
null
null
null
null
UTF-8
Python
false
false
2,706
py
#Numpy.py
#Numpy ''' A brief tutorial on basic numpy numpy allows you to work with vectors and matrices a bit more easily ''' # create a zero vector with length 3 v = np.zeros(3) # n by m matrix of ones M = np.ones((3,4)) # array of arrays (a 2x3 array) A = np.array([[1,2,3],[4,5,6]]) #you can also create arrays based...
1e4dcf4836acc785cd8e329180caa0739fe2f6e8
475fae37ee5a0365ddf2e7d0b99759e86cf8d6c5
/lib/util.py
3ec5f613c6ef6ebf5ba366bca584d7d1610766eb
[]
no_license
imclab/evernote-publisher
fe488f46eb6f822d45e2cd86c9158cc1c4a02cbc
93f42c21991ba965a85fe4ce98f0945240f04dc3
refs/heads/master
2021-01-18T15:14:57.671010
2013-09-08T23:42:09
2013-09-08T23:42:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
util.py
# -*- coding: utf-8 -*- """ EverNote WebClipper publisher. @author Jay Taylor [@jtaylor] @date 2013-06-30 """ def fileGetContents(fileName, flags='r'): with open(fileName, flags) as fh: return fh.read()
c4eda95136b3716f0d7b2b978106df907438e7d4
af10644ed52f29b025e0f21cb74ba52022b2a4f7
/財金指標/Building_Permits_crawler.py
2f2e55fde4e4341826fa9be5128b7dba3352111d
[]
no_license
Jyun777/YuJyun
897b0e457f8e039aede80f504234551566115382
289d29ef00f0a9a1f63b7fc427a46f5faf06f1ad
refs/heads/master
2020-04-30T16:11:44.335305
2019-03-21T12:09:05
2019-03-21T12:09:05
176,941,324
1
0
null
null
null
null
UTF-8
Python
false
false
592
py
Building_Permits_crawler.py
from selenium import webdriver import pandas as pd import time url = "https://www.census.gov/construction/bps/uspermits.html?fbclid=IwAR02DAW5FBC-At1R0g8qV_kFxrry7aIK5l1lfb--XDCLehPDUIlQ6r0lz8c" options = webdriver.ChromeOptions() prefs = {'profile.default_content_settings.popups': 0, 'download.default_directory': './...
6981fe0e7b27f2cce9cf7be2fe78ddb4bff14f71
aee0c631b219dfb2bc5f56f2f1962bd909c9cfa7
/build/plasma/out/usr/local/lib/python3.4/dist-packages/plasma-1.0-py3.4-linux-x86_64.egg/plasma/lib/analyzer.py
a40b19d1b3fe0ad9eb9477ae3f887c47c96ee7d3
[]
no_license
osospeed/albani
ebdb5b59b1b014ea50091fb76c59f7c837dbfd07
97622671d10c29af83922b24dd1cd58fd5384172
refs/heads/master
2021-01-21T04:51:01.859381
2016-07-09T20:51:43
2016-07-09T20:51:43
44,938,739
2
4
null
null
null
null
UTF-8
Python
false
false
18,364
py
analyzer.py
#!/usr/bin/env python3 # # PLASMA : Generate an indented asm code (pseudo-C) with colored syntax. # Copyright (C) 2015 Joel # # 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 ...
64434deb704854190881a2e6c5dc64735ec1cc06
3d946b25155dc74d95954711ea1e8780c7f08142
/som/clean_data.py
981f84d9059e0d477067b6a917b8c2560b09e722
[]
no_license
danilito19/big-songs
49fc2481de92e0abf4dbbadd0cc10cd176198c1e
fe1a0fa1c4945e5186f7afd10556d55e7374175a
refs/heads/master
2020-12-24T20:14:32.015202
2016-06-06T18:29:04
2016-06-06T18:29:04
56,807,227
0
2
null
2016-06-06T18:29:05
2016-04-21T21:38:45
Python
UTF-8
Python
false
false
4,157
py
clean_data.py
import csv import string MAX_NORM = 1 MIN_NORM = 0 MAX = "max" MIN = "min" LABELS = [] def column_to_number(alpha_column): ''' Takes column labels as they are in excel (i.e., "A", "AB", etc.) and translates them to the corresponding number ''' #add exception for incorrect value types given for ...
c9612b1909aef7963eaa54c45ab961286d7ceea5
fc2acfc2ff3d3c91ab1080cbc5c883065709548d
/patientclass1.py
4eb46ff704b93df1648da3caca311b63e99d0ce2
[]
no_license
stdio-ghana/patient-group
ed33cd664f46ec5c893e4f278c8559272541ffb8
e9f8ece9b4ad7af082eb14b7a255c87219accd65
refs/heads/master
2020-04-16T09:20:22.577486
2014-06-20T07:14:12
2014-06-20T07:14:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,108
py
patientclass1.py
import random class Patient: user = [] id= 0 def __init__(self): pass def autoId(self): global id startId = 1 idInterval = 1 if(id == 0): id = startId else: id = id + idInterval return id def registerPatient(self, ...
d56e7c17c4848c96e797bb9b297d175f621d12d1
a7ed997a14c6857de088d2adc2910cde7924118f
/test.py
a05413f1e67b18db6a9cb2bbdbaff9705a4507ae
[]
no_license
Pepslee/kaggle
5d982567307a9cc19ec7cc54d6e6f06e5ee63a93
d72b5d0de2bf42b44b8433def82113b9c88f7916
refs/heads/master
2020-04-07T20:44:47.561647
2019-10-24T12:46:09
2019-10-24T12:46:09
158,701,298
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
test.py
import cv2 import numpy as np from scipy import ndimage import glob import os from dsel import my_io path = '/media/panchenko/75b9aae6-291e-4314-90c2-b27cf3e3f5cd/tf_semantic_segmentation/static_test/22_8.tif' img, geo = my_io.load_image(path, 'BIP') img = img * [6, 5, 10, 2] img = cv2.resize(img.astype(np.float32),...
af25b62a8e71f575d581c7dced39b8a2dd6da03c
d97b91a4178f311ad4fe69025940fd103641437b
/olivertwist/__init__.py
1e3f7e8cc85ae05b3019a652dd923aa6516baa29
[ "Apache-2.0" ]
permissive
awshepard/oliver-twist
5b0997132b381380acc58ffd528d4c88964f1796
5bb9b2cddc097d89d4a3eff78c63036682dd19f8
refs/heads/main
2023-09-01T04:46:16.661402
2021-03-24T14:25:03
2021-03-24T14:25:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
__init__.py
# -*- coding: utf-8 -*- """Oliver Twist. Copyright (C) 2020, Auto Trader UK Created 15. Dec 2020 13:56 """
18502046595ef930e15a4c3eb691dedccc6ae839
b0f1e0b3bdba2aa69905c9fd6e0434273175c0c4
/tests/helloworld.py
5af658302a29418f63a1c52851bafeff9c3ad6d6
[ "MIT" ]
permissive
ayresbarcelos/deep-learning
ddd8160e9a9037f4cf34a4fd667c7ca4bee9c9ac
19d3219251cf9fcde9ed69620ec704de304e43e0
refs/heads/master
2021-08-26T04:41:49.807027
2017-11-21T15:56:48
2017-11-21T15:56:48
107,720,449
0
0
null
2017-10-20T19:54:03
2017-10-20T19:54:03
null
UTF-8
Python
false
false
225
py
helloworld.py
import tensorflow as tf cte = tf.constant('hello, world!') x = tf.placeholder(tf.int16) y = tf.placeholder(tf.int16) with tf.Session() as sess: print(sess.run(cte)) print(sess.run(x + y, feed_dict={x: 1, y: 2}))
f19955ec686bf6f35eb8853f2cb53747e3ad2b69
48eed564d6efcb0be69d55dcc3b3521093d8211b
/new/looks_to_s3/main.py
7bc97d1a7160478721473f66cee5b86db3be03a7
[]
no_license
SubhamoySengupta/image-aws-local
86ec61bc9547f126f9ad61ae96bfb3bfb88a55ae
f9a826ca26106017656c867b4af882a0920b342c
refs/heads/master
2021-01-19T17:41:02.142896
2017-08-22T16:11:46
2017-08-22T16:11:46
101,082,675
0
0
null
null
null
null
UTF-8
Python
false
false
1,522
py
main.py
import modules import os import urllib from subprocess import Popen, PIPE local_path = '/run/user/1000/gvfs/smb-share:server=192.168.0.51,share=hyve/looks' path = os.path.dirname(os.path.realpath(__file__)) base_url = 'https://s3-ap-southeast-1.amazonaws.com/hyve-users/' local_look_list = modules.trim.get_local_look_...
0c2c1f1eda3ce8a22e8d194e88288cc85b380eb6
c4cc3af7dd48687cb1e34ae7a89e51f5e11fbe2f
/hogar/economia/views2/salario.py
7524d04e7b0047b4c50362cc09ed54fb12742795
[]
no_license
BadiaValdes/DjangoCodeFarm
2e5dad53043f0accc6eaaedf385297e710f2ceaa
a00857e98d35f781a6b2561c2e491f2f563b97e5
refs/heads/main
2023-06-12T00:30:25.613238
2021-06-21T16:11:06
2021-06-21T16:11:06
341,701,200
1
0
null
null
null
null
UTF-8
Python
false
false
3,783
py
salario.py
from django.shortcuts import render from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse, HttpResponseRedirect from django.views.generic.edit import DeleteView, CreateView, UpdateView from django.views.generic.detail import DetailView from django.views.generic.list impor...
95a1e7689af4560d5929413db183e58005ff6b40
c391881c27e859d7e1790a9f2527c3227af2b600
/business/login_business.py
7da0065e0b45149a1461825168e714a3fa33fd33
[]
no_license
liwei0027/appium_android_framework
f1fdd94165ba9fa15123f3c5db0ce9253a1ed968
51e5436c8681c7d5ea6bda00ebb137511ca5d3a0
refs/heads/master
2020-03-15T11:50:04.558810
2018-06-01T10:50:35
2018-06-01T10:50:35
132,129,626
0
0
null
null
null
null
UTF-8
Python
false
false
1,014
py
login_business.py
#coding=utf-8 from handle.login_handle import LoginHandle class LoginBusiness: def __init__(self,i): self.login_handle=LoginHandle(i) def login_pass(self): #self.login_handle.click_merchant() self.login_handle.send_phoneNum('17600695527') self.login_handle.send_password('123456'...
5b8eb379268fe59aaf28f6374c431ffd01d1395b
c243cff9218b72b4171a3fc294607fa830561d08
/11_Test_Greedy/NownS/coin_cannot(이해x).py
d601757d8b0cd749707787c822caeb5b2fde0e2d
[]
no_license
ISANGDEV/Algorithm_Study
31e65cc6916be92d2a56aef1ad18eacb5b04f787
0eec5e3b2321f521e617d7bdc99fca8a4103f0bb
refs/heads/main
2023-07-24T08:18:20.794903
2021-09-01T14:05:54
2021-09-01T14:05:54
347,665,106
0
0
null
2021-09-01T14:03:32
2021-03-14T14:51:24
Python
UTF-8
Python
false
false
244
py
coin_cannot(이해x).py
n = int(input()) coin = list(map(int,input().split())) coin.sort(reverse=True) value = 1 for i in coin: if value < i: break value += i print(value) #?? 이해가 잘 안감(책 답안 확인했는데, 이해가 안가요...)
312b90b1aa6db98e12dcaa37279bbda8b29f3f2c
4cfe3c9263af74457ff2c42c2270646c20bda40f
/Linux/main.py
47331282c167363414b3926067254881fcae373f
[]
no_license
lubnik2005/cyberpatriot
d3985ca9fba26020f61f49c48bf6490dafbc93b9
3bee2b1accac3e89a2dc4f72e7a744418db2d631
refs/heads/master
2023-05-31T14:41:14.072513
2021-06-11T04:21:57
2021-06-11T04:21:57
108,580,643
0
0
null
null
null
null
UTF-8
Python
false
false
9,766
py
main.py
#!/usr/bin/env python3.5 import os, sys, subprocess, pwd, grp, glob # import apt from helpInfo import helpInfo # Import the necessary packages from consolemenu import * from consolemenu.items import * from pprint import pprint class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' ...
115bf22ed9b5e44f769cabb5b11b5e8a404edd1b
36821b9fcdbefe88a60f584e7d39695ca5fe6177
/codeforces/1534/B.py
b410c89f4d378423b5c87657403acd85da65524d
[]
no_license
shubham409/CodeSubmits
231fc40a64ad97323e558ba2fa252c62f34c7809
5da4d9cc87d4ac8f54175723c2acf77fc5784f21
refs/heads/master
2023-06-26T06:17:30.255973
2021-06-03T18:24:00
2021-07-29T20:35:01
329,399,083
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
B.py
t=int(input()) for _ in range(t): n=int(input()) a=list(map(int,input().split())) a=[0]+a+[0] ans=0 for i in range(1,n+1): if(a[i]>a[i-1] and a[i]>a[i+1]): ans+=a[i]-max(a[i-1],a[i+1]) a[i]=max(a[i-1],a[i+1]) for i in range(1,n+1): ans+=max(0,a[i]-a[i-1])+...
b07f14f74ec519c440311a1ac5da3b449e56aa26
30b97efb2f36f81aa684d16d19e0e2db17f2967d
/Prgrammers/lv2/N개의 최소공배수.py
51d4e3bb4dace43da327fc713261981f27b9a75f
[]
no_license
jmseb3/bakjoon
0a784a74c6476ef51864e2ada9d2551c7c7979eb
a38db54e851372059b0e45add92e43e556835e62
refs/heads/main
2023-08-25T08:43:04.579785
2021-10-01T08:40:37
2021-10-01T08:40:37
362,287,450
2
0
null
null
null
null
UTF-8
Python
false
false
168
py
N개의 최소공배수.py
from math import gcd def solution(arr): answer = arr[0] for idx in range(1,len(arr)): answer = answer *arr[idx]//gcd(answer,arr[idx]) return answer
3527a94be83b406296f448fb3b140ad528a86af6
852eea0cdc1711ccb1cec9b9b112c07b5b310bde
/Approche_dynamique/CONVERSATION_HISTORY.py
29dcc95c18c8d541ef0033ba0da3873acbdf6ad5
[]
no_license
PorteAntoine/IHM_PEPPER_CPE2017
bc961d7a991e3336b734b822c6b9a72aad7a3f39
330744398ea3fc1e34e2bec80586f3afb05a2030
refs/heads/master
2021-09-05T07:53:04.499061
2018-01-25T11:34:40
2018-01-25T11:34:40
114,677,120
0
4
null
2018-01-09T08:31:36
2017-12-18T18:58:32
Python
UTF-8
Python
false
false
7,063
py
CONVERSATION_HISTORY.py
from __future__ import division import sys import time import subprocess from naoqi import ALProxy from naoqi import ALBroker from naoqi import ALModule from optparse import OptionParser from akinator import Answerthequestion from TabletModule import TabletModule # global variables NAO_IP = "192.168.1....
acf24e8948687d9510e0222059ec185d733d542b
19581cccff1bb4e9f8e81856c9dca0315a9088e7
/server_proxy.py
9e72314e57415b82994e6baad28b458dac4acc39
[]
no_license
woshihj/Penetrate
eec0c3f78db6a0d0bca0a4405032ee6e097de69e
b31d626d734d87437f2a7cbe9f35376963a6ec45
refs/heads/master
2020-05-24T19:01:34.547484
2019-03-10T16:25:45
2019-03-10T16:25:45
187,423,740
0
1
null
2019-05-19T02:06:47
2019-05-19T02:06:47
null
UTF-8
Python
false
false
12,873
py
server_proxy.py
import socket import select from time import sleep from threading import Thread, current_thread, Lock from protocol import Protocol from common import Module from loguru import logger as log class ConnectionListManager: """ 客户端Socket连接队列管理器 """ def __init__(self): self.__list = [] self...
49c3aa32f218b54aeac92d84fc8bfa48b17c29d1
ed20004069c04b42f8c46ac1caa91be7fc7135b6
/apps/mydata/migrations/0001_initial.py
9cdd66c2aa880e38b7d5e2a04b30cff45d335fdc
[]
no_license
whccx/curriculum
661f8faf128c1175928430a7e8a5ef846ba265a6
8e979b71198aa838cd3eb5c1160a03b5482849dd
refs/heads/master
2020-03-27T20:24:47.872287
2018-09-06T11:18:55
2018-09-06T11:18:55
147,067,246
0
0
null
null
null
null
UTF-8
Python
false
false
3,994
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-08-12 17:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Departme...
70d4640f6f3c8ccfeaeb0aa63d5c402673b6fb6b
fb524e95b9646f74c868cae4cdedf03cf9dba938
/minumbers.py
2d4e0afe13c17803300ea7f88ef3b180fed2c9a7
[]
no_license
Micky71/cplx_root
d5af0798efed4f3e352f519fabbede9d280942f1
dbdefeee33c922a2c5899b470f8aee71ff286932
refs/heads/main
2023-07-02T11:19:08.236185
2021-07-22T14:26:33
2021-07-22T14:26:33
387,170,419
0
0
null
null
null
null
UTF-8
Python
false
false
39,324
py
minumbers.py
#!/usr/bin/env python # coding: utf-8 # In[1]: import ipywidgets as widgets from ipywidgets.widgets import Layout import matplotlib.pyplot as plt import math import numpy as np from IPython.display import display import threading import ctypes import re from time import sleep, time # In[2]: ...
4224df44cb7f59107e3367aae05db104e6936b83
78e39bd4bd3d0861c1e248c33a2a49b4d7ecd1c4
/Problems/Calculating S V P/task.py
d6b613de4a8fdffddcbafc6b6b37dac8423d49b8
[]
no_license
ajmalbinnizam/simplechattybot
ef45093cb91ad85dfe78c524fd1d28967bf0c3cf
64d52762d843be9807e89f4983870dcc5d1807c2
refs/heads/master
2022-12-11T12:34:38.699761
2020-09-04T19:05:51
2020-09-04T19:05:51
277,601,489
1
0
null
null
null
null
UTF-8
Python
false
false
162
py
task.py
a = int(input()) b = int(input()) c = int(input()) sumof = 4 * (a + b + c) sur = 2 * (a * b + b * c + a * c) vol = a * b * c print(sumof) print(sur) print(vol)
9248373d4d983153b430f3c5bad81af7a4469339
11c6597967304dfb416d9970f9ef02c3dee7e7dd
/events/urls.py
37742118a02f2591d91bdeaa68e514186fdc6dc0
[]
no_license
davert0/sherpany
70e34bdb794691810966017726f8751274f06af3
6a0f049fee75faac049cf3af4406240b58fd2eb9
refs/heads/master
2023-05-01T07:46:22.232164
2021-05-12T09:46:32
2021-05-12T09:46:32
362,462,776
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
urls.py
from django.urls import path from .views import * urlpatterns = [ path('', HomeView.as_view(), name='home'), # path('register/', register, name='register'), # path('login/', user_login, name='login'), path('add_event/', add_event, name='add_event'), # path('logout/', user_logout, name='logout'), ...
39a7b18fed12b8bbc0e89cebacfb92b9cc9e5e0f
7ae17e16013650f213ea382023852970bb84c148
/src/stock/urls.py
d7296084d9e775af0e62f54ef597aefbc266cc90
[]
no_license
hardworkdev/management-stock
edb681a40c7e18d264a54c9d56925f5a2d75dc3a
7ec2ae877aade1818da41d0ac6c17fe40cea6b26
refs/heads/master
2020-07-23T18:05:06.769535
2019-12-16T17:47:30
2019-12-16T17:47:30
207,660,463
0
0
null
2019-12-16T18:00:21
2019-09-10T20:48:49
JavaScript
UTF-8
Python
false
false
1,970
py
urls.py
from django.urls import path from .views import * urlpatterns = [ path('', home, name="home"), path('fourniseur', fourniseur_list , name="list_fourniseur"), path('fourniseur/create', create_fourniseur , name="create_fourniseur"), path('fourniseur/<int:pk>/update', update_fourniseur , name="update_fou...
7032459dcea1b630dd4bb9ce928798d1965580d0
1a7502d65fa4d2672435de1f4357e5b9844af455
/clerk/migrations/0003_auto_20210402_1602.py
bb256603ca4fc31aa78be3243082d1515a516fdd
[]
no_license
ahmedatef1610/INKuisitor-Backend
c2447cea2b99ea0b448e7440ca699318dfebb175
df3c1fa0e129c01e9e1606a15c5ea09c931c0cfb
refs/heads/main
2023-06-10T23:40:21.617039
2021-07-06T19:02:32
2021-07-06T19:02:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
0003_auto_20210402_1602.py
# Generated by Django 3.1.7 on 2021-04-02 14:02 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('clerk', '0002_client_images'), ] operations = [ migrations.RenameModel( old_name='images', new_name='image', ...
4f7a49b4a304e59355dc8e9f7cc613f6267612ac
de86c1fa8cdf30cc7fb163defe144076ae06c604
/P2/task4.py
e1ff616bcc4ae5798df76281f6cbab0f49c2e5e2
[ "MIT" ]
permissive
manuelamercado/structures-algorithms-nanodegree-projects
6ec11274b002274ead2274818579651c814de711
7dd7d715f81bc0136df909fa7df436968ec0de1e
refs/heads/main
2023-07-04T03:00:00.032207
2021-08-13T12:20:57
2021-08-13T12:20:57
395,642,274
0
0
MIT
2021-08-13T12:20:58
2021-08-13T12:13:07
null
UTF-8
Python
false
false
1,897
py
task4.py
''' Dutch National Flag Problem Given an input array consisting on only 0, 1, and 2, sort the array in a single traversal. You're not allowed to use any sorting function that Python provides. Note: O(n) does not necessarily mean single-traversal. For e.g. if you traverse the array twice, that would still be an O(n) so...
96236b78badfa1f9f3c6fec3d438bd57c04e74cf
33cbbbe3c8ec53302e8db0b0e2a5a7daf14a911b
/env/Scripts/django-admin.py
c2ff5ae3eb546809ed5088af7c327f0ed6ea40dd
[]
no_license
minhaz-engg/Real-State-Application
34d38c1b5b30114c4694db27014ac28742df1953
c1bbb3f7dbd9fc85540f83d4df22aa366e2ad32f
refs/heads/master
2023-03-10T18:24:03.967293
2021-03-03T02:32:19
2021-03-03T02:32:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
django-admin.py
#!d:\githubpoint\reactdjango\real state application\realest_estate\env\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
0f890a8bbc54eea8f61ad533e315d7afd83d7098
a2263666d895a8965f7646bdc0e803fe8a4098b4
/Files_cleaner.py
3e5cf85a1afb1a5626048bdc31b7c085107a3ea7
[]
no_license
yash112-lang/Python-Clutter-Cleaner
bbb5d6e219c3e4e54c20abb86e6aeb2b6f9d6ff3
e1295e17453f018a5817281b0883f53f12bdfa59
refs/heads/master
2022-09-26T09:39:38.768226
2020-06-04T13:58:35
2020-06-04T13:58:35
269,371,924
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
Files_cleaner.py
import os files = os.listdir() # files.remove(Files_cleaner.py) print(files) try: def CheckIfDoesntExist(folder): if (folder not in files): os.makedirs(folder) CheckIfDoesntExist("Images") CheckIfDoesntExist("Documents") CheckIfDoesntExist("Media") #M...
6aa4b8f07851b025670e3b384ec4114a0225ea3d
54cedcf24f093a0940a2bb2475fe3f2d91547b9a
/setup.py
6ea9f1f46e2f0114f91632b309d2bc2bf1c265e8
[ "BSD-3-Clause" ]
permissive
criteo-forks/nbconflux
bdbe69d901231d1cd2b0c5841d96ba1552879c73
138d7c793bbcdfe5f63abd20112295f46d2752ee
refs/heads/master
2023-07-20T11:52:25.934892
2023-07-19T09:37:08
2023-07-19T09:37:08
246,239,713
4
2
BSD-3-Clause
2023-07-19T09:37:09
2020-03-10T07:54:43
Jupyter Notebook
UTF-8
Python
false
false
1,004
py
setup.py
import versioneer from setuptools import setup, find_packages try: with open('README.md') as f: long_description = f.read() except: long_description = '' print('Failed to load README.md as long_description') setup( name='nbconflux', version=versioneer.get_version(), cmdclass=versioneer...
f66265259939f028460942924fe775bf8af8831a
b996c1fff95aaca6ea1129c29231660a02af8d57
/src/lab11/1_conflict_count.py
0bbb01c2a7a0b404bcc93a4bb03ebdd392836dfd
[]
no_license
fallaciousreasoning/COSC367-Labs
4a587e227213649ce369b986e85d64791cf02808
33627257ece9a7b96d87bf8ad4e7ce03627aaff2
refs/heads/master
2021-01-24T17:52:22.157357
2015-11-12T00:01:17
2015-11-12T00:01:17
43,665,491
1
1
null
null
null
null
UTF-8
Python
false
false
654
py
1_conflict_count.py
__author__ = 'jayha_000' def conflict_count(assignments): conflicts = 0 for i in range(len(assignments)): for j in range(i + 1, len(assignments)): x, y = j - i, assignments[j] - assignments[i] if x == 0 or y == 0: continue r = abs(x / y) if r == 1: ...
48b036dde33654ef3365a70786fe1734d945e20d
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/coen_markets.py
2d68b12e2d145605f7e1eb3a0958b99e7a314c24
[ "CC0-1.0", "MIT" ]
permissive
alltheplaces/alltheplaces
21b9f8b4ace1352e52ae7b8f8825a930d2cb033e
1bcbb55cfcf06f2c714465570711f6e83f205c22
refs/heads/master
2023-08-30T19:45:35.098658
2023-08-30T17:51:54
2023-08-30T17:51:54
61,166,935
453
176
NOASSERTION
2023-09-14T17:16:40
2016-06-15T01:09:18
Python
UTF-8
Python
false
false
2,316
py
coen_markets.py
import scrapy from scrapy.selector.unified import Selector from locations.hours import OpeningHours, day_range, sanitise_day from locations.items import Feature class CoenMarketsSpider(scrapy.Spider): name = "coen_markets" item_attributes = {"name": "Coen", "brand": "Coen Markets"} start_urls = ["https:/...
2e676900a647e048be42bbd9b655383962f47182
16b872cda972de1d5f2662832c96943f1014ab16
/ball_cml_tcheck.py
290402d2c10b4e20539be653b55ff342a1c8af1c
[]
no_license
magluva/IN1900
f636b1b5d968adfbaec1aa1b440a7825e20f1262
c44e9a533ce1f5f69715f1a4871d9610c93ddcc2
refs/heads/master
2021-04-28T18:18:37.696879
2018-02-17T15:37:11
2018-02-17T15:37:11
121,866,131
0
0
null
null
null
null
UTF-8
Python
false
false
1,664
py
ball_cml_tcheck.py
# Importing ball_main import ball_main as parent import sys def main(): # calling event_handler function() from ball_main args = parent.event_handler() try: # Checks if lim_check() returns True. # Will ask for input until it return False (This means accepted values) w...
c307fa6a1f9faecce3d601c4095adcbafe4fda86
a880704a5a3a272060bea5f649dff106cfdd65f4
/ycsettings/settings.py
df107f2a71b0b5dd62cc0220b4e4a7c63b7e17b0
[ "Apache-2.0" ]
permissive
skylander86/ycsettings
7e3368f63775f95782d0c9fcab26fbf28fa5d0ce
3f363673a6cb1823ebb18c4d640d87aa49202344
refs/heads/master
2021-07-07T05:47:12.919627
2017-10-02T11:25:17
2017-10-02T11:25:17
104,711,266
2
0
null
null
null
null
UTF-8
Python
false
false
17,805
py
settings.py
__all__ = ['Settings', 'parse_n_jobs', 'MissingSettingException'] from collections import OrderedDict, Mapping import configparser import importlib from io import TextIOWrapper from itertools import chain import json import logging from multiprocessing import cpu_count import os import pickle import re from tempfile ...
f2b3e7bb51a2586ceeab427499ce0f4f001e3087
452262a4a4a6cf57d87e6098aa267079c09018be
/my_help.py
dd19b930151b8a020fcdd376751922de208e5a40
[]
no_license
lijian103/demo_py_opencv
aae6b58679e9489b8eda412f55cc6ba67a84176f
0233da7176c7ad676b357eb5e04723dc3e984175
refs/heads/master
2020-06-14T23:55:34.756958
2019-07-09T06:20:41
2019-07-09T06:20:41
195,158,653
6
0
null
null
null
null
UTF-8
Python
false
false
156
py
my_help.py
import sys from PyQt5.QtWidgets import * out = sys.stdout sys.stdout = open(r"./my_help_txt.txt", 'w') help(QTextEdit) sys.stdout.close() sys.stdout = out
9446be92a0efb8f50efb3abf7a8a7edbe5eba858
dd7cea52237e1e5870a50746686e92e531eb0c11
/config.py
7a1d494376de838ff5a33d21f81705f440a96205
[]
no_license
rtous/quakebreak
cbda42d11325659f28365200af93db00bf9292f2
1cbab3dc7a01589e2863534542165dae310fecdb
refs/heads/master
2020-08-09T21:19:38.213002
2019-11-08T09:53:08
2019-11-08T09:53:08
214,176,373
0
0
null
null
null
null
UTF-8
Python
false
false
6,707
py
config.py
import configparser import argparse import sys import os STRING = 0 INT = 1 FLOAT = 2 BOOLEAN = 3 class Config(object): def __init__(self, args): if args.config_file_path is not None: if not os.path.isfile(args.config_file_path): print ("[config] \033[91m ERROR!!\033[0m Config...
1b511f911773dd51c5ce6ac0ce9e474e074ca24e
023b69c692e19364fd7c52500c9809232899cc1f
/files for presentation/client.py
6a286228300bed365a2868526ff90926658cad70
[ "Apache-2.0" ]
permissive
HanZhang-psych/Dual-Eye-Tracking
135454e453e2fb1b968b68d7069f0ede4adb8c5d
0a72078b5a3b7b5d5ff886a3898a888e10c2075f
refs/heads/master
2021-05-31T07:11:35.357176
2016-05-06T10:43:29
2016-05-06T10:43:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,490
py
client.py
#!/bin/env python """ A client represents a user with an eye tracker. It sends its eye tracking data to the server, and receives data of all the other clients from the server. """ """ Copyright 2016 Meng Du Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file e...
176dd522c77102b585f33de3e91c98108f77098c
721a6866355b45cd9d3aa20b8d77667d10332b4e
/LucasSobralv3.py
83bfbb7285315f094a182be0c28cb03f82644408
[]
no_license
LTSobral/Treinamento_Python_ETL_ITIX
6e583a9963f30f2c7b4edfa78386698676f3f7cc
4bb8a72aa7348bc48730a97dfc160159ea9355f3
refs/heads/master
2023-05-02T13:25:13.765742
2021-05-25T19:58:57
2021-05-25T19:58:57
366,725,795
0
0
null
null
null
null
UTF-8
Python
false
false
3,896
py
LucasSobralv3.py
import pandas as pd def shape_head_dtypes(df): print("\n", df.shape, "\n\n", df.head(10), "\n\n", df.dtypes, "\n\n") df_cad_loja_a = pd.read_excel('Datasets/CadastroLoja_A.xlsx') df_cad_loja_b = pd.read_excel('Datasets/CadastroLoja_B.xlsx') df_tp_cliente = pd.read_excel('Datasets/TipoCliente.xlsx') df_vendas...
234776c4db1fb654bb38e97cf20e7d20e1576c59
13de8e0eab3b8ad81f67afd01fc7b291cea907a1
/Algorithms on Strings/Programming-Assignment-1/non_shared_substring/non_shared_substring.py
8789790585655d3bf5982b846b51ba1e03b1b687
[]
no_license
Ragnaroki127/Data-Structure-and-Algorithms-
d22e5fbbf30984f1fcddf7828ae8de487e7c62b9
41bff4704622fd9e40fe40270fa9088cbae105d0
refs/heads/master
2022-11-13T07:35:39.113707
2020-07-03T09:41:28
2020-07-03T09:41:28
275,595,703
1
0
null
null
null
null
UTF-8
Python
false
false
3,066
py
non_shared_substring.py
# python3 import sys sys.setrecursionlimit(1000000) class Node(): def __init__(self, start_ind, length, node_id): self.start_ind = start_ind self.length = length self.node_id = node_id self.children = [] def add_node_to_tree(current_node, i, text): flag = 1 for...
d06232ba33e78794b7b360224637921f2547d0fb
99747123c4a1cdb98cfb6b484c5be7e269ced9f5
/project/docker+k8s/慕课网docker/docker教程课件/chapter4/labs/labs/flask-skeleton/tests/base.py
2411f855ca4a6bbf22cd3e8ff950b2940784d8ba
[ "Apache-2.0", "MIT" ]
permissive
CodingSoldier/java-learn
0dea60617be635d6d028cd3c4302bd2975526dbf
114358e63c41a1884ca660b70e13ed25bc12fbc6
refs/heads/master
2023-05-28T14:46:52.437585
2023-05-12T09:07:34
2023-05-12T09:07:34
113,655,752
27
20
Apache-2.0
2023-05-12T09:10:03
2017-12-09T08:51:50
Java
UTF-8
Python
false
false
563
py
base.py
# Copyright 2016 Cisco Systems, Inc. # All rights reserved. from flask_testing import TestCase from skeleton.server import app, db from skeleton.server.models import User class BaseTestCase(TestCase): def create_app(self): app.config.from_object('skeleton.server.config.TestingConfig') return ap...
4674e27b2a14961c3dc3301df36e694623072b83
fba38c8e24c8786b1fc9ae6e0a6c645740d7ee68
/src/testcode/common/bde_api_helper.py
851a66acbaed74f5f8cff5489d20d13d6581aeed
[]
no_license
fuxiaotingbupt/REST-API-Test
a0cd17166b71b163ece2aa5b0ca15a2431521bdf
457611554d9b55523df6877b008266d581c9916a
refs/heads/master
2021-01-10T21:30:46.871771
2015-03-23T07:45:28
2015-03-23T07:45:28
20,247,236
1
0
null
null
null
null
UTF-8
Python
false
false
12,610
py
bde_api_helper.py
#! /usr/bin/env python import json import logging import urlparse import httplib import time import restHelper #Configure logging from src.testcode.common import Constants logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) logger.addHandler(logging.StreamHandler()) class Connection(): def __...
aaddd01276dfd3f36a551ea8343391ce010d10aa
c73df523f119676d8026f1021cec6dc79ff340a1
/src/ball_tracking/main_ball.py
9a88f146655df45ca5d39badf2fd48e67844a9c4
[]
no_license
PMBayer/EV3_Image_Navigation
eef97eafef340337d18d7def659a56a6f38654b0
964fdabe190a59790a31770068b52a4588d2c594
refs/heads/master
2023-06-27T08:09:43.679328
2021-07-14T16:23:59
2021-07-14T16:23:59
377,775,978
0
0
null
null
null
null
UTF-8
Python
false
false
1,129
py
main_ball.py
#!/usr/bin/env python3 import socket import sys import traceback import cv2 from green_ball_tracking import track, Exit # HOST INFO HOST = '192.168.1.2' PORT = 50000 # Debug Print def debug_print(*args, **kwargs): print(*args, **kwargs, file=sys.stderr) def create_client_socket(): client_socket = socket...
19fcabf3b5ea092b1937f3e598017ce7737f27a6
bb0f370930b3b1aa0433b0d85ad4cc3e7c186286
/playlist.py
30848af12252b03e0c0c4eededfd08c41917b663
[]
no_license
brentonklassen/lyricscreen
9f2d97533fc823865d2d252c148b34b5cae92872
f877f7923139b5ca1852579bd308bdec81c75d45
refs/heads/master
2021-01-15T18:32:25.995118
2015-02-22T15:53:24
2015-02-22T15:53:24
31,517,054
0
0
null
2015-03-02T00:46:50
2015-03-02T00:46:50
null
UTF-8
Python
false
false
4,191
py
playlist.py
""" Daniel "lytedev" Flanagan http://dmf.me The song class containing all Song data and the logic for parsing a song from a text file. """ import sys from song import Song from os import path from map import Map playlists_dir = path.abspath(path.dirname(__file__) + "/Playlists/") class Playlist(object): def __in...
2005597054f28d9206a52589656ecd6dd1458257
f23bfc1de80e2ce75492d52146f62a0bd5575881
/Quicksort/quicksort.py
e527c8b62fc1a4ffd7f742f8cbdc147b5e87b58f
[]
no_license
amirajnigam/Practice_Code
040a1f782ff05318fae6f2ea32f4b67de1e91d8e
eb75b6c1a196cc8f5c4414492b6b399ecac31fec
refs/heads/master
2023-03-01T13:40:23.042423
2021-02-10T05:25:57
2021-02-10T05:25:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
quicksort.py
class Solution: def sortArray(self, nums: List[int]) -> List[int]: length = len(nums) if length <= 1: return nums else: pivot = nums.pop() items_greater = [] items_lower = [] for item in nums: if item > pivot: ...
a8a6140d6c40dd4adb629f33c6b45f214a85a016
aefd9c6f574a18f50ff50541983f84499573afe1
/ocr.py
8928ad7e1381c01aed8885cc398bdde644d1a16b
[]
no_license
voiddeveloper/OCR_hangul_extraction
dfae08fa2b7abcb4051f5a91f839a1d5fc3d0ab7
e024f12739348d168780f3f153f16ce14417aef8
refs/heads/master
2021-05-18T10:36:35.888999
2020-03-27T08:57:26
2020-03-27T08:57:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,008
py
ocr.py
from PIL import Image import PIL.Image as pilimg import cv2 import time import numpy as np """ 마지막 작업일자 : 2019년 11월 13일 - 15:40분 이 코드는 이미지에서 텍스트 영역만을 추출해내기 위해 전 처리 작업을 하는 코드이다. 목적은 이미지에서 글자의 영역 주변에 네모박스를 그린 후에, 영역이 쳐진 부분을 잘라내어 새로운 이미지를 만드는 것. 과정은 아래와 같다. 1. 전 처리할 이미지 열기 - 사용할 이미지는 basic_image에 저장 2. 이미지 사이즈 조정 - 고정된 이...
e3a8f34844d836ab7565c0e226bb2bb6ef65c82d
5b7d72f360212a3797869fc458cdbd7cdab61c4f
/rokucli/discover.py
92f6a39459da42f262d82a99415f2fe45e1b611b
[ "MIT" ]
permissive
ncmiller/roku-cli
7b72cf4b2b55e57a877fc62fddea252e0d90ec45
6990df804840fbc69d892a47bc655b15ed425e28
refs/heads/master
2022-08-23T11:16:26.174517
2022-07-30T14:54:37
2022-07-30T14:54:37
54,206,743
57
9
MIT
2022-07-30T14:54:38
2016-03-18T14:20:10
Python
UTF-8
Python
false
false
1,348
py
discover.py
from roku import Roku from builtins import input import re def discover_roku(): """ Search LAN for available Roku devices. Returns a Roku object. """ print("Searching for Roku devices within LAN ...") rokus = Roku.discover() if not rokus: print("Unable to discover Roku devices. " + ...
90822c6ace8393dabad467c0f32c52dc1c9cc340
c878ec02118250b7ab2a21e1d56120e768d4ca28
/mainRecycleApp/import_publicRecycleBins.py
a1ad0c02cfe832027a3182c48ae62e56d55fd614
[]
no_license
rafaellichen/Recycling-System
22d7cbcf16bef4e905ac6b3d8fbb97abb6ebcb5e
1be21ef73d44e215db06c46272c48baea0408d49
refs/heads/master
2022-12-19T05:06:49.580125
2018-04-04T18:23:43
2018-04-04T18:23:43
104,966,185
0
3
null
2022-12-07T23:49:44
2017-09-27T03:12:00
JavaScript
UTF-8
Python
false
false
458
py
import_publicRecycleBins.py
"""Helper Import script to import the CSV data into the Django Public Recycle Bins Model""" import csv from mainRecycleApp.models import PublicRecyclingBin DATA = csv.reader(open("../static/data/publicbins.csv"), delimiter=",") for row in DATA: bins = PublicRecyclingBin() bins.borough = row[0] bins.site...
a3f3f71a8cc297c1a0c6503e12d053bc7ff5fa14
63454fd1329ae793c8bd961f2e90f70192a500bc
/danutils/cuda/datatools.py
c40c5e5a9f9cf5a30325fb73e7afca806a0935b7
[]
no_license
dplepage/danutils
1ac1f6cda69a44bceca69b75bb61921200a61042
58144a246bf4b3156c51df35e96c397ad0fec119
refs/heads/master
2020-06-05T12:53:47.776584
2013-03-15T21:42:00
2013-03-15T21:42:00
842,137
0
0
null
null
null
null
UTF-8
Python
false
false
3,032
py
datatools.py
''' A collection of helper functions to move data to and from the GPU. ''' def ndarrayToTexref3d(data,texref): """Copy a 3D numpy array to texture memory and bind it to texref """ # I'm not sure why order should be F, not C, but this seems to work! if data.dtype == bool: wasbool=True data =...
a035c2a7ae3abec3ffbdffd09a1beedb34065230
4eeefbd45e7fa4242be951ac3b7d793a0ec65daf
/test_pytests/example3/test_examples.py
4b7b269df991dcc4e82a4c177f453a53f663edf7
[]
no_license
junteudjio/pytest-tutorial
9389b20f8a6806bc5ec9d623f73e33b6c88a1f70
83e44b54f797a7a6ac95a57a831d726fd805b0fb
refs/heads/master
2022-04-25T11:31:52.290352
2020-04-28T21:43:58
2020-04-28T21:43:58
259,757,530
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
test_examples.py
import pytest @pytest.mark.slow @pytest.mark.integration def test_http_call(): pass @pytest.mark.slow def test_http_call2(): pass @pytest.mark.fast @pytest.mark.unit def test_add(): pass @pytest.mark.unit def test_add2(): pass
df43fd46f1f5535dac3a35d37c909387f01f9602
7a87d66518ed17558d40190b4b94368d29252fc5
/conf/pacman-opt.py
23fadcc3b6cb597fcc18a345ea1a506e6682cb93
[ "MIT" ]
permissive
ph20/packer-blackarch
d31bc547c614b951fbcdd687324278bdd7a7651a
9ec25869cc1726d0dd3addeb220319ab7bb95905
refs/heads/master
2022-05-09T15:20:25.351880
2020-06-05T00:10:12
2020-06-05T00:10:12
82,209,475
3
2
MIT
2022-03-06T17:52:59
2017-02-16T17:54:33
Shell
UTF-8
Python
false
false
2,926
py
pacman-opt.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import shutil import sys import re SECTION_PATTERN = re.compile(r'\[([^\]]+)\]') PACMAN_CONF = '/etc/pacman.conf' PACMAN_CONF_TMP = PACMAN_CONF + '.tmp_' PACMAN_CONF_BACK = PACMAN_CONF + '.back' def section_iterator(input_): section_ = None output_ = ...
b53b565701a640be38e4859c7421c8b6e3381666
f6ec8f05a591bbc1d461b03c9822163f45b99a88
/quiviz/__init__.py
26bf862964c011253b7add5484a6d22aeb60861b
[ "MIT" ]
permissive
cedias/Quiviz
fafdbbf3f00dc8116b1bba4aed1bc10b2992bf15
669b0bab552e9d06b5c285807ed8879d4bddfd3b
refs/heads/master
2021-05-03T21:12:04.226704
2018-07-05T09:08:07
2018-07-05T09:08:07
120,377,858
1
1
MIT
2018-07-05T09:08:08
2018-02-06T00:01:31
Python
UTF-8
Python
false
false
1,126
py
__init__.py
from .quiviz import * import logging import sys import os import json from pathlib import Path #Find or create folder if Path.exists(Path.home()/".quiviz_rc"): with open(Path.home()/".quiviz_rc") as config: config_data = json.load(config) base_path = Path(os.path.expanduser(config_data.get("log_ba...
849be4891d89d342fc798617148055476a468e5f
699ff10c347dc9b6d5af7f531a1c941dbfecd558
/leetcode/python/passedProblems/57-insert-interval.py
4e51f3c6a9a6ccd7a35759e94c04c9f4bc26d978
[]
no_license
iampkuhz/OnlineJudge_cpp
71a7637c54d81be2aa066a6132aab31b798bbe6b
737b9bac5a73c319e46cda8c3e9d729f734d7792
refs/heads/master
2021-01-10T10:16:37.589855
2017-03-06T12:45:20
2017-03-06T12:45:20
24,891,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,716
py
57-insert-interval.py
#!/usr/bin/env python # encoding: utf-8 """ Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start times. Example 1: Given intervals [1,3],[6,9], insert and merge [2,5] in as [1,5],[6,9]...
ae1c54104c6d9c1d4f5d5e19298e078b86fb92f0
7e160a9e4b54189cdb80734d1ec1c5dfa20c9245
/Module/mAth.py
f835282c57e88439cfbed5befb9eb90eaf557b03
[]
no_license
HeumC/HeumCheol
451055ff751cc4db0089fe2bdcaa9a9038208a4a
f503cf8e528584be5d3e606ea9c0f3276bd87d19
refs/heads/master
2022-12-18T03:41:43.110629
2020-09-21T00:16:36
2020-09-21T00:16:36
289,812,126
0
0
null
null
null
null
UTF-8
Python
false
false
23,114
py
mAth.py
import math from Module import helper MathConstant_Pi = math.pi MathConstant_e = math.e MathConstant_UltiLowNum = 0.00000000000000000000000000000000000000000000000000000000001 MathConstant_UltiHighNum = 999999999999999999999999999999999999999999999999999999999999 from enum import Enum, unique @unique class Relevance...
954723f78c775500a7effa21378268f139f7ae09
fb849405fe40da154298504e0cb6f63c4d36f226
/python/isogram/isogram.py
4a65d8c0969b3fd826b1d657e254ff5948dfed2e
[]
no_license
rharyadi/exercism
ea993f638231d25909abaa9a2896c9ed2cfe4687
3ab465f20670bc4bbedc240c571903bbe6bd6975
refs/heads/master
2020-12-30T16:28:12.807270
2017-05-25T05:21:46
2017-05-25T05:21:46
90,991,533
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
isogram.py
def is_isogram(setring): setring = setring.lower() for c in setring: if setring.isalpha() and setring.count(c)>1: return False return True
352c73b0e2c8766c2b744e265379e4c624075fc9
a3f4b6065078e35d827894967d152a7cd023e51f
/curiosity_mask/train_walker.py
4428dcca44b33dd114d2fb385ef2b140e15333ee
[ "MIT" ]
permissive
machineteaching-io/stable-baselines
979aaee79b5c106ef1b71e90c78d95a342e4726c
58c218de12d61d313bc5e9877a505668ff0bf661
refs/heads/master
2020-08-22T17:41:51.160192
2020-07-28T21:18:47
2020-07-28T21:18:47
216,449,592
1
2
null
2019-10-21T00:58:33
2019-10-21T00:58:33
null
UTF-8
Python
false
false
19,940
py
train_walker.py
import os import sys import warnings import numpy as np import tensorflow as tf from gym.spaces import MultiDiscrete import stable_baselines.common.walker_action_mask as walker from stable_baselines import PPO2, A2C from stable_baselines.common.policies import MlpPolicy from stable_baselines.common.vec_env import Dumm...
a906d160ce5773a4232807cf56019755926ce1c8
a00ca713a0bd3953d56b05cdc0eb4e511bebe2e6
/ConversationGames/conversationgames.py
acdb480b772fa7977822052a9e7c80b515397231
[]
no_license
CatClawed/AtelierCogs
36e86ab943f67b675b086ddb55bdbb7f32d45539
3427b04651aabcb3b80970408f10cd99a4e04069
refs/heads/master
2023-07-18T12:58:47.192932
2021-08-27T05:32:38
2021-08-27T05:32:38
300,487,783
0
0
null
null
null
null
UTF-8
Python
false
false
41,346
py
conversationgames.py
import discord from redbot.core import commands, Config from random import randint BaseCog = getattr(commands, "Cog", object) class ConversationGames(BaseCog): """Conversation games""" def __init__(self): self.config = Config.get_conf(self, identifier=763123) default_global = { "...
8839484b392a134115148df57322a7794908238b
d9b28bce6d832c768d9dd13527b8e8b202522eb6
/5일차/삼성 sw test 18 토너먼트 카드게임.py
87a41227e46644ea7656c9625909e8f585c134a8
[]
no_license
jay-95/SW-Academy-Intermediate
7535341cb73df1719a620262ebac191f6132a42b
505ee8cf284465dd6a89ee11dd6b607ad05464f6
refs/heads/master
2021-05-18T10:13:35.449453
2020-03-30T05:21:54
2020-03-30T05:21:54
251,206,363
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
삼성 sw test 18 토너먼트 카드게임.py
def R_S_P(left, right): if (Card_List[left-1] == Card_List[right-1]): return left elif (Card_List[left-1] == 2 and Card_List[right-1] == 1) or (Card_List[left-1] == 1 and Card_List[right-1] == 3) or (Card_List[left-1] == 3 and Card_List[right-1] == 2): return left return right def Winner(st...
cb6a8893979fafd92d2fd5c38cf9d969019a79e1
e22eeb5256e17a96a98b3ff25433aec2d641cd2c
/openstack/dns/v2/recordset.py
09f37b4f4fbae3c08172a3cbae3c1de772036b10
[ "Apache-2.0" ]
permissive
openstack/openstacksdk
b4b95fd7869653feea5a3b783e9a5c588235c039
d474eb84c605c429bb9cccb166cabbdd1654d73c
refs/heads/master
2023-09-03T22:50:03.398512
2023-07-27T14:09:35
2023-08-29T16:28:46
16,223,378
124
130
Apache-2.0
2023-09-06T02:52:47
2014-01-25T02:48:00
Python
UTF-8
Python
false
false
2,480
py
recordset.py
# 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, software # distributed under t...
af3868027468003cb1f805c8ceb890ba24dd4af3
38fcefd669647388d8aa58089cbecc18e0059f35
/LM/PYTHON/Ejercicios alternativas/Ejercicio 5.py
8a867e2cc269ff8a0944f0df3c272ce7a7dd70af
[]
no_license
ManuelLoraRoman/Apuntes-1-ASIR
42309fa4effc576cf1d475c96156a58a1e7af879
bcbba6ada3b398720261d4a083aa45b670a61af1
refs/heads/main
2023-01-20T05:44:35.218782
2020-11-28T21:44:07
2020-11-28T21:44:07
316,726,841
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
Ejercicio 5.py
#Escribe un programa que pida un nombre de usuario #y una contraseña y si se ha introducido "pepe" y "asdasd" #se indica "Has entrado al sistema", sino se da un error. nombre = input("Nombre de usuario:") contraseña = input("Contraseña:") if nombre == "pepe" and contraseña == "asdasd": print("Has entrad...
c374d8283ad052e417cdb5a1ebaca19a490f9003
21b6f23951aa54e3c59a8a284f69599817f5c5ad
/break.py
c45aa3f00ba71d639e36da444fff9a17c6f57e94
[]
no_license
syladiana/basic-python-b3
1f94d70acdab93815dbc146bdbaeb5a3e715ea50
36ade0a5b7fbb488af53878b7430bfb4647e2238
refs/heads/main
2023-03-01T23:40:25.318183
2021-02-07T14:37:52
2021-02-07T14:37:52
328,089,939
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
break.py
for i in range(5): if i == 3: break print(i) text = input("Masukkan code:") while True: if text == "stop": break print("Hasil : {}".format(text)) print("======================") text = input("Masukkan code:")
91de8402fb344a071ce4e93b5e018dea1666ed02
503b2bf945db5eb16c4eef0ecb04132fe194efc3
/run_pgir.py
29f07691d7c1a7c5e91235a409fff18d49009fd7
[ "MIT" ]
permissive
douglasgoodwin/BoredomCuriosity
fc20307e894a6128df7e7b2431cd3ce710252248
918aecf5092d8c82c3a72ecd1e0387235601462b
refs/heads/master
2021-10-15T22:26:05.774710
2019-02-06T01:46:16
2019-02-06T01:46:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,042
py
run_pgir.py
# pgir, policy gradients from intrinsic reward sample # replace pedl reward and value functions altogether with Unif(-1, 1) samples. import torch, random, os, pdb, copy, random, pickle, agents import numpy as np import torch.nn as nn import torch.multiprocessing as mp import torch.optim as optim import pandas as pd fro...
1672432d630c5d65b8869b0e0927ec0b16798844
16c52fdfecd66d1c1f2cd2be8a5d1c0707c96512
/gputest.py
99031cbcf7fcf999b32c2cf198318c89625a0546
[ "MIT" ]
permissive
Gratheon/models-bee-classifier
9d26d3d18a522eb68bb7b404b5321e55bb833fdc
4477c993f6e179900507c880de0ffa4ebfdf49fb
refs/heads/master
2022-12-20T20:18:27.755774
2020-07-31T11:08:42
2020-07-31T11:08:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
gputest.py
# to test gpu import tensorflow as tf from tensorflow.python.client import device_lib print(tf.test.is_built_with_cuda()) print(device_lib.list_local_devices())
b1400b2b50d9f45d91525573913e505c3fc286f8
fb7d154ca73ca995fede3f6913ab960dea481cd5
/Project Euler/lattice_paths.py
8299ba17cf99d23fda3e6bcf23156cf8ba0d0f24
[]
no_license
georgyjose/competitive_coding
f93090d9223ae2cee8835d1f847343242b7daa70
023810faee6752e9e8c0a687385177099c32cbe0
refs/heads/master
2021-06-26T22:32:50.599683
2020-10-01T05:03:05
2020-10-01T05:03:05
143,545,816
0
0
null
2020-10-01T05:06:03
2018-08-04T16:41:22
Python
UTF-8
Python
false
false
93
py
lattice_paths.py
from itertools import permutations a=list(permutations(range(400),2)) print(len(a)//((2*19)))
bf7a0b4f009f04b0799ae98dd60ed07b005e897d
6c95ccf96eaf9afb965563a7531a54e4c52bef0e
/zodiac.py
fc823a27a29f0acff781d000f46ad4d922b78e6a
[]
no_license
Annish1234/My-python-files
c0f2ec235b381fb742b11cbf97158a30a1a9a4b3
a064bd01bb173ba3ed8c5b371bcdffe9830abd1f
refs/heads/master
2021-01-22T10:46:14.835454
2018-10-06T05:19:39
2018-10-06T05:19:39
102,338,497
0
1
null
null
null
null
UTF-8
Python
false
false
243
py
zodiac.py
#!/usr/bin/python3 print("") print("press 1 for aries. ") print("press 2 for capricorn") Userinput= int(input("whats your zodiac??")) if (Userinput == 1): print (" you are good ") if (Userinput == 2): print ("you are naive")
b5d09cbeb7ad3a5af386f02799313d0800049961
3028c553b93a5344eaeba262740e79b33cca7ef0
/spot/urls.py
9059483a29891441617764764ebe876878067fd0
[]
no_license
sureboy/xiaorizi
368bd6cf50ea1343041d9974a8801ceacced08a0
c766a1b17b3d45555538f6d76fbf06c3319430fc
refs/heads/master
2020-05-18T10:47:53.204213
2015-06-02T09:08:06
2015-06-02T09:08:06
35,405,755
2
1
null
null
null
null
UTF-8
Python
false
false
1,246
py
urls.py
from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^get_json_img/(?P<query>[\w-]+)/$', 'spot.views.get_json_img', name='get_json'), url(r'^get_json_txt/(?P<query>[\w-]+)/$', 'spot.views.get_json_txt', name='get_json'), url(r'^get_json_code/(?P<query>[\w-]+)/$', 'spot.views.get_jso...
a8120dbcfbf76de10e24fb829d91f83f8a8bac3f
d25325d2ae1e917d96f458fa699d2c9ccbae367f
/minmax.py
de5ee5c3e0333abb02fd7dba80f65aebee3e1ee6
[]
no_license
anntheknee/ultimate_tic-tac-toe
b1c0457bc35382ded2fabe757fef296dce513faf
7a55a919731586505584a2db72687f6d2b327f1f
refs/heads/master
2022-06-12T18:33:37.488064
2020-05-07T03:54:38
2020-05-07T03:54:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,844
py
minmax.py
import numpy as np import math import random import copy from tic_tac_toe import * from player import * from ultimate_ttt import * class minmax(): def __init__(self, depth = 3): self.depth = depth self.blockLocation = None def algorithm(self, board, marker, positions): mustBlock = Fals...
bf71563b93cce1ecab68a1484d7f48124f7ea828
11c53ccc6698f002f24a5ab4ce20bd5f4958e112
/main.py
5d79bf7d72fc1f93d14cb7d56024e7e19c477a04
[]
no_license
TDGyou/Spider_raw
4c76e8c9fc61f2af3c2aa16701a018fa3a32454d
efd7a8ec19754193b12d30780f8da31138aa585e
refs/heads/master
2020-04-26T12:59:58.722240
2019-03-03T11:42:13
2019-03-03T11:42:13
173,567,341
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
main.py
''' 此原生爬虫项目旨在实现对直播平台(本项目以pandaTV为例)上某分类(本项目为Dota2)的主播人气\ 进行排行,并得出排行榜 ''' from get_html import get_html from refine_data import refine_data from sort import sort from show_rank import show_rank class Spider(): html = 'null' data = 'null' rank = [] def __get_html(self): Spider.html = get_html...
ae750d9dc1172e4b215a3f37627e0a40a4e247fe
02c384d0562f2135c4ac14ffd30daf6f71f9e6de
/awards/migrations/0003_project.py
8863391621f156b3453aac0d0488be4f3704d189
[ "MIT" ]
permissive
J-Okoto/Project-Awards
f8cf2da086013a5f5fb1fc92447fd02f93b30b36
b881a84eadac359143bb3a4ab41dee179d438242
refs/heads/master
2023-01-19T23:12:14.702702
2020-10-29T13:07:42
2020-10-29T13:07:42
307,055,874
0
0
null
null
null
null
UTF-8
Python
false
false
1,992
py
0003_project.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-10-27 13:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import tinymce.models class Migration(migrations.Migration): dependencies = [ migra...
bf85b2d21dcbf030130425c0a03b5f39abd004da
f16cd4ab1b5b393e239ef1fa29e8d0d891366c96
/ext/extsetup.py
183eaad0f46a54a5141290b8c8e58d2526e23f9e
[]
no_license
ColdHumour/ProjectEulerToolkit
0d35df4ecef55c508e831f57fc355e44df32da58
b1ac6eba7b9718261f0d6e3a68c3c04c3ff75280
refs/heads/master
2022-06-20T02:39:27.374067
2022-05-24T08:00:50
2022-05-24T08:00:50
40,105,494
2
1
null
null
null
null
UTF-8
Python
false
false
1,011
py
extsetup.py
# -*- coding: utf-8 -*- from importlib import import_module from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize from Cython.Distutils import build_ext import numpy as np extensions = [] EXT_FILES = ['c_formula_int64', 'cpp_formula_int64', 'cpp_polynomial_int...
3ad871f9de315b49ae10fbb560176c7a26264402
d1ae229529c1c43b008523d65897cf889b9bd356
/paxos/requests.py
cfab9077f6afd6e5896c9e0068ca56ae090f8a64
[]
no_license
osimola/codekata
456f5bf8d4556d20d5721d3a58d4d6fc8c632a49
d1b09bd8dc7a799633f449f4fd13f23ae9d19c06
refs/heads/master
2023-08-31T03:30:28.348391
2023-08-27T19:52:15
2023-08-27T19:52:15
16,188,078
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
requests.py
from collections import namedtuple class Propose(namedtuple('Propose', ['number', 'resource'])): def __repr__(self): return "ProposeRequest: {}({})".format( self.resource, self.number) class Accept(namedtuple('Accept', ['number', 'resource','value'])): def __repr__(self): return "A...
63f3276ad888fd4ed7a11df9c9fa4a0851859336
b92817366e7c7e3739414863b1f3e09b4a141054
/Opgave 2.py
484493b690305b5eb1f71f0cc3e97144e30a1a24
[]
no_license
anelbusuladzic/AbuPython
5ddce2a69f9f8cca38325e6b02472e42457ba340
45305d829ef5f0a0b2d8562a1e2fd6b097a03913
refs/heads/master
2020-04-22T14:42:25.396665
2019-02-13T06:26:15
2019-02-13T06:26:15
170,452,830
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
Opgave 2.py
"""----------------- Opgave 2 Anel Busuladzic -----------------""" mit_navn = "Hej, mit navn er Anel" print(mit_navn)
5d25f038b60397c89a5ab6f46df799c0fb8ec4b7
a4c836d21d015ccaff1a049f4650f550653e222b
/raindrops.py
308c15c373b956a0317a8452d52c3b9de29b02bd
[]
no_license
chigozieokoroafor/DSA
3fb97c137edc68f6e6cb144a97fbd6e2aa6d4b61
4b034a9ca9b215ceb5b73d4a99db1184fba6d7cb
refs/heads/main
2023-07-12T02:44:30.031848
2021-08-10T21:12:17
2021-08-10T21:12:17
389,757,111
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
raindrops.py
def convert(number): if (number%3, number%5, number%7) == (0, 0, 0): return "PlingPlangPlong" elif (number%3, number%5) == (0, 0): return "PlingPlang" elif (number%3, number%7) == (0, 0): return "PlingPlong" elif (number%5, number%7) == (0, 0) : return "PlangPlong" el...
31a82936eda2b9a18a382e95fbe20e316f442682
288dc5bae00181c95c5bf952343314f3a216fd9a
/GUI/Python-GUI-Programming-Cookbook-Second-Edition/practise/ch01/first.py
689628f90803b9e0160fe4fa0b37e34b6c1eebd7
[ "MIT" ]
permissive
joyc/python-book-test
93cd32fcf9bf12260b1a91893971c38499347120
968913d7b8b3baba2b755d9edcdacef850ab4b61
refs/heads/master
2022-12-11T14:38:04.661344
2019-03-11T15:27:20
2019-03-11T15:27:20
96,122,367
0
1
null
2022-12-08T02:09:53
2017-07-03T14:57:26
Python
UTF-8
Python
false
false
524
py
first.py
import tkinter as tk from tkinter import ttk win = tk.Tk() win.title("第一个Python GUI程序") # win.resizable(False, False) # ttk.Label(win, text="标签A").grid(column=0, row=0) a_label = ttk.Label(win, text="标签A") a_label.grid(row=0, column=0) def click_me(): button.configure(text="-- 已经被点击过 --") a_label.config...
1f84aa33784e00a6cf899ff6b0443facb3455b44
120831b1cfb117b549c9b7e361849fe77893b93c
/rank.py
2f3387916caec81e80c6f5f499335b070fd0e0c4
[]
no_license
FarmHackNL/plot-rankr
913a57adf3dfaf67721c8900c067e0e1f6922147
3bfeaaa1bdc4aba837ce2c5fd2e162654cb55a06
refs/heads/master
2021-01-19T05:31:05.432059
2016-06-28T08:54:49
2016-06-28T08:54:49
61,936,896
1
0
null
null
null
null
UTF-8
Python
false
false
2,366
py
rank.py
from shapely.geometry import asShape, mapping from json import load, dump from rasterstats import zonal_stats import numpy as np import rasterio import subprocess def shrink(): """Remove pixel bordering effect by shrinking plots through a negative buffer.""" with open('data/percelen-sat.geojson') as f: ...
ce9a9fd05498b519376164e31c1fdd75b0a9c181
c772843fdbb20770e122128ddcd301ae0a6ef6db
/maintenance/scripts/update_cert.py
ada2cdcf9b7c293e0c875e298bb53ceb2a4b8906
[ "MIT" ]
permissive
sillsdev/TheCombine
677064c3994771e323b47c6412483cd9b86709a9
f5694cfff9147263afedc1ca167f74ef001a6334
refs/heads/master
2023-08-16T15:53:15.696363
2023-08-16T12:50:34
2023-08-16T12:50:34
190,267,526
21
21
MIT
2023-09-14T21:57:00
2019-06-04T19:36:53
JavaScript
UTF-8
Python
false
false
5,253
py
update_cert.py
#!/usr/bin/env python3 """ Check the expiration time of the TLS secret and update if needed. check_cert.py will update the current certificate for the NUC from the secret stored in the AWS_S3_BUCKET. It will update the certificate under the following conditions: - the NUC is connected to the Internet - there are le...
a83e2d4a2c5c587cd60c6daca99eb8ffc0012c14
dd1e26d1863839f356638b7f78621d3b46852faa
/users/models.py
e39aa6632ad08319c28262297573d3c36b620844
[ "MIT" ]
permissive
hashinclude72/upes-fipi-jigyasa
f3546b78bcc10565efbb90789b2915e231b8ad4e
08e95f6c5c5384280f1a26ce9e4bc613bc53be05
refs/heads/master
2022-12-17T06:56:50.980931
2019-08-28T14:33:51
2019-08-28T14:33:51
174,395,328
2
2
MIT
2022-12-08T01:41:14
2019-03-07T18:02:49
Python
UTF-8
Python
false
false
670
py
models.py
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver class User_details(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) team_count = models.Intege...
171502ce962ddef76e6549f805bca09be6be1ccd
b4093b46cf3465d39cde8b7699c40f009edfc3a8
/src/DroneVision/DroneVision_src/hardware/PinControl.py
26456e23ffbf9e3aa29b4cf549e43356f7efb015
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hansehe/Wind-Blade-Inspection
c90626fceee8202a2c3fe7aa31f37b0101c494f8
b600f29d6afc92cad1acc6beae7b5b7dac8aab92
refs/heads/master
2021-07-10T15:19:18.476926
2020-05-27T09:26:52
2020-05-27T09:26:52
93,496,485
22
9
null
null
null
null
UTF-8
Python
false
false
3,239
py
PinControl.py
''' Author: Hans Erik Heggem Email: hans.erik.heggem@gmail.com Project: Master's Thesis - Autonomous Inspection Of Wind Blades Repository: Master's Thesis - CV (Computer Vision) ''' import time from Settings.Exceptions import PtGreyError ''' @brief Pin control class. Control a pin on the microcontroller @par...
dc292fd06a6b34d0d79b750933252b99f6432b50
00d88e0a1b7fdb43fba8fa0228a6b0d2065b2ab1
/taskmanager/src/modules/tasks/domain/description.py
6b02d984a99b0116c0d69c34f14d1dbad5ae488d
[ "MIT" ]
permissive
acostapazo/event-manager
344dc2ff570fa5d4dc279e54dc677d79188a0c9b
614c91af19fad39f766ffa1b9a3d1e783f06c72e
refs/heads/master
2023-05-25T14:26:37.628450
2020-04-20T11:30:54
2020-04-20T11:30:54
257,256,781
0
0
MIT
2023-05-22T21:39:21
2020-04-20T11:16:12
Python
UTF-8
Python
false
false
844
py
description.py
from typing import Any from meiga import Result, Failure, Error, Success from petisco import ( ValueObject, EmptyValueObjectError, ExceedLengthLimitValueObjectError, ) LENGTH = 200 class Description(str, ValueObject): def __new__(cls, description, length=LENGTH): description = None if desc...
bf2e49f270cc025ecf1f951e010fbc8c79217aa3
eafa08e1368ae1a40959ddf688774c51c5e19f9e
/algorithms/find_digits.py
b4a5597ffa8fab5e4fe41eeb4130f5467b46b359
[]
no_license
almirms/hackerrank
c17ccffbdd0fc34c328e86bb0243d93e7d54f0c7
8737fbc5a3289e51306974c6b55813e5fc5e0854
refs/heads/master
2021-01-22T11:11:41.311014
2016-09-29T00:08:17
2016-09-29T00:08:17
68,400,306
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
find_digits.py
#!/usr/bin/python3 """ https://www.hackerrank.com/challenges/find-digits """ def obtain_digits(number): return [int(x) for x in list(str(number))] def quantity_divisible_numbers(number, dividends): count = 0 for dividend in dividends: if dividend != 0 and number % dividend == 0: coun...
4d2f1bb6929314f69483b9b0fd6dce618af3fdc2
fd59da28c795ca2d8f581971c85ab85777c608cd
/python基础语法/语言基础/day14-异常和学生管理系统/studentSystem/__init__.py
ff1e9b1bedaf245e0430d502d4a2f2e61a693d6b
[]
no_license
huananana/pythonStudy
fadd4ac31ba17b7382426de381b9ed3bf15eb414
284c97cf69d275b8f3e919aa09fc345a609cbd1b
refs/heads/master
2020-12-01T05:36:17.414337
2020-01-16T05:51:07
2020-01-16T05:51:07
230,567,743
2
0
null
null
null
null
UTF-8
Python
false
false
40
py
__init__.py
"""__author__=桃花寓酒寓美人"""
750f95e7306823e6f61c29525a5f4df699598750
b3e61cbfb1e3763fc8b3cfb57b3b406f6ffaadc0
/app/__init__.py
73abfc38cd46372e316555fd9b7cad1bd0602d4f
[]
no_license
kevinore/Challenge-Python-L1
2eac8c8e7c74397cadc533f11acf1499b1727e90
dccac0206ec7842115ded2817643ec17b0ce66cd
refs/heads/main
2023-05-14T05:58:01.585737
2021-06-08T15:39:36
2021-06-08T15:39:36
369,930,240
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
__init__.py
import os from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from config import Config, REGIONS_API, REGIONS_API_KEY, COUNTRIES_API from flask_httpauth import HTTPBasicAuth db = SQLAlchemy() app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) migrat...
7b8c5bd13ce748099400156a4a3f9181dd09bafb
875bb84440094ce058a2ec25a661a7da6bb2e129
/algo_py/boj/bj1208.py
8be6a8447db7c30a2991790dc66053075a73e5d0
[]
no_license
shg9411/algo
150e4291a7ba15990f17ca043ae8ab59db2bf97b
8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d
refs/heads/master
2023-06-22T00:24:08.970372
2021-07-20T06:07:29
2021-07-20T06:07:29
221,694,017
2
0
null
null
null
null
UTF-8
Python
false
false
632
py
bj1208.py
import sys sys.setrecursionlimit(10**6) input = sys.stdin.readline n, s = map(int, input().split()) num = sorted(list(map(int, input().split()))) res = 0 valDict = dict() def dfs(i, val): if i == n//2: try: valDict[val] += 1 except: valDict[val] = 1 return dfs...
b2985f72e5966d9ef77b141c55476d46c2f66dc9
4597d219ad8849b4e80cfbda6e75600449db2de9
/pythonProject/window6.py
bdc580900306070845fe78376a34e8dc9748cd18
[]
no_license
pass0585/Python
660b88375bf2a50f19520ba3460542bcd4af7f29
917e5c1b1050a97a24069a1157489618aa45c6e1
refs/heads/main
2023-06-24T01:45:25.225249
2021-07-28T07:35:05
2021-07-28T07:35:05
382,979,157
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
window6.py
from tkinter import * from tkinter import messagebox ##함수선언 def myFunc(): messagebox.showinfo("강아지버튼", "강아지가 귀엽지?") #메인코드 window = Tk() photo = PhotoImage(file = "C:\GitRepository\Python&iot\Python\Image\GIF/dog.gif") button1 = Button(window, image = photo, command = myFunc) button1.pack() window.mainloop()
dc8763db41fa89588f01a217bcb6c2826a8f8222
64d2a9c411d5c05e9bd58338584464cafda034db
/Apresentações Pŕaticas/Web Service/Django Application/music/migrations/0001_initial.py
00ef0252e774453778362a67d14e5c86ff60f2ed
[]
no_license
eduschadesoares/oficinaDeBanco
bf76080646364711ceadff8c72d1c85fa127edc2
c9b316d05c4693785619934ea2f1d00bdccd3d18
refs/heads/master
2020-03-21T08:42:01.972198
2018-11-21T02:23:31
2018-11-21T02:23:31
138,359,628
1
0
null
null
null
null
UTF-8
Python
false
false
3,192
py
0001_initial.py
# Generated by Django 2.0.6 on 2018-06-29 06:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Band', fields=[ ...
a922150fe2a5d072e9af2d6e6517f4b3331bbd24
0c6b47f5647fa048e701c743bd61e05667b3b569
/101_Common_Dialogs/SingleChoiceDialog/SingleChoiceDialog_extended.py
6d71f760043fd89d8cc039f127f48b68adacdd13
[]
no_license
pythonthings/wxPython-Sample-Apps-and-Demos
bbfa5c307c08bd0e732083a7e7ec0aaefa234033
65e6828e92217445367420c9c2ebb4a7ed9a1d6e
refs/heads/master
2022-10-02T18:41:01.697132
2020-06-10T00:18:15
2020-06-10T00:18:15
281,526,555
1
0
null
2020-07-21T23:32:51
2020-07-21T23:32:51
null
UTF-8
Python
false
false
2,743
py
SingleChoiceDialog_extended.py
#!/usr/bin/env python # -*- coding: utf-8 -*- #-Imports---------------------------------------------------------------------- #--wxPython Imports. import wx #- wxPython Demo -------------------------------------------------------------- __wxPyOnlineDocs__ = 'https://wxpython.org/Phoenix/docs/html/wx.SingleChoiceDia...
e67f074345ac28f35e51c65e374a9699de56fc6d
ad6c48a1e8049c37a133da552c9c55de1f89848c
/acessoDados/migrations/0005_auto_20210221_2312.py
ddce9b685a222d3be259d49a2a0e7898125ca08b
[]
no_license
FelipeMarchioli/projetoAcessoDados
deb7d2c914e4e9329e7a7b57e2c372d86fed406d
22706fb975e6547905fa0f7053b6b002a83dedd0
refs/heads/main
2023-03-09T13:17:27.301213
2021-02-24T03:34:49
2021-02-24T03:34:49
340,666,164
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
0005_auto_20210221_2312.py
# Generated by Django 3.0.8 on 2021-02-22 02:12 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('acessoDados', '0004_auto_20210221_2236'), ] operations = [ migrations.AddField( model_name='dados'...
79f121114510c162c243a9cbeb37cb907f5523c5
52a56e034cd10fffca8771ad93f289b4cc7102ad
/packages/api/egapro/models.py
a87c8bf8d2361799c2dfb5fba75686bf88a64afe
[ "Apache-2.0" ]
permissive
SocialGouv/egapro
b3aa65d6ab94b44bb7d3cd8b56b030faebdcbafa
741140d03add979d529430adc6da44f46221af1c
refs/heads/master
2023-08-16T19:15:56.737482
2023-08-07T15:51:58
2023-08-07T15:51:58
180,343,984
12
13
Apache-2.0
2023-09-13T15:04:18
2019-04-09T10:36:08
TypeScript
UTF-8
Python
false
false
3,226
py
models.py
from typing import Literal, Union from naf import DB as NAF from egapro.utils import delete_keypath from . import constants class Data(dict): def __init__(self, data=None): if isinstance(data, Data): data = data.raw super().__init__(data or []) # Emulate **kwargs. def __geti...
50e4cec3b22016abedd55433e2c5cd408226ffe6
305183319055a25c6e3bb84c7d6f747849617a58
/proj1/eventsMod.py
f967ce2bb391b808975becb0bf3b0488b978db42
[ "MIT" ]
permissive
Snouserz/github-slideshow
858c3488c2527b43638d722d70dcf4477dba9cf6
2650a0ba8cebf1035fff9d891c66df22fbcc88b1
refs/heads/main
2023-02-27T00:20:37.010394
2021-02-02T21:55:15
2021-02-02T21:55:15
335,416,615
0
0
MIT
2021-02-02T21:37:36
2021-02-02T20:36:13
Ruby
UTF-8
Python
false
false
1,331
py
eventsMod.py
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class User(db.Model): id = db.Column(db.Integer, primary_key = True) username = db.Column(db.String(24), unique = True, nullable=False) pw_hash = db.Column(db.String(64), unique = True, nullable=False) #one to many my_events = db.relationship('Event', ...
6577edf6dba4c669b01c5ef9e82bfa2b6e11f511
7d34f623f5788c4983cbeefaca81eea02e1c8e4a
/app/application.py
bf0c8c98610447f3326e37b9cd25600bdfa349d2
[]
no_license
kapucko/antares
99744b94cbee25ce6bf08783072fe428fc9ef3ac
8d789c96d45dbf9e8d7e4786300725d641f232d9
refs/heads/master
2021-07-25T08:01:50.462401
2017-11-05T22:03:49
2017-11-05T22:03:49
109,619,968
0
0
null
null
null
null
UTF-8
Python
false
false
999
py
application.py
import base64 import logging from aiohttp import web import rapidjson as json from .api import setup_sport_routes from .models import setup_tables async def request_logger(app, handler): logger = logging.getLogger('request_logger') logger.setLevel(logging.DEBUG) logger.addHandler(logging.FileHandler('req...
42a795dbe10ce8c38a3bc27255498e35ca200c75
6042b980c7bfdfb25db6151f3aadafd72c791acf
/parsetab.py
4a844fcfd6adc1e0d327fdfea6ace752c1277058
[ "BSD-2-Clause-Views" ]
permissive
HashSalmon/PyBool
d3bad7a0685f7af2ac4132c907131d842001eb26
7d28c20a287a0d371f4553c8527c55e17bf28cb0
refs/heads/master
2021-05-27T06:10:02.598961
2014-06-25T22:06:41
2014-06-25T22:06:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,779
py
parsetab.py
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = '\xd1\xad\x15a\x05\xc2\xadAz\xed\x9c\xed\x12\x11\xd8t' _lr_action_items = {'ASSIGNOP':([4,],[8,]),'EQOP':([11,12,13,16,17,18,25,26,27,28,29,30,],[-12,-13,22,22,-6,22,-5,-8,-10,-7,2...
d5e6422231cf61bfaa9fdb76a9b09f591646a124
6206452b17a6c4c576fc67a2c66dc3da27c93ef3
/utils/__init__.py
37d5929412504af522613d29ddb5f7a7352b6908
[ "MIT" ]
permissive
neptune1997/PyTorchText
e0bfaa06d315a748f6e7133076231779b33dc942
7372b6ed270d82ee8020fdee69a9e0fb865204b9
refs/heads/master
2020-04-09T17:32:03.530116
2018-12-19T08:34:03
2018-12-19T08:34:03
160,483,554
1
0
MIT
2018-12-05T08:13:08
2018-12-05T08:13:07
null
UTF-8
Python
false
false
75
py
__init__.py
from .calculate_score import get_score from .optimizer import get_optimizer
021cfd7a54a9c50b482e31371d84d78a7f56e905
194c7318262b28ad9172a80d6208ae4d540e6da8
/makegigapan2.py
3e01c890be5f5e6a6963a476ad4432e0ab3242d2
[]
no_license
rainwoodman/mb2
5628d35f01582399d58a5d382ac3647f48438ce7
d540b5fd4bc77c4c2dea6e3b30a13c3b56ce7ecd
refs/heads/master
2020-06-14T14:22:47.975955
2014-02-18T19:36:53
2014-02-18T19:36:53
11,908,018
0
1
null
null
null
null
UTF-8
Python
false
false
5,587
py
makegigapan2.py
import sharedmem from gaepsi.render import * from matplotlib import cm from sys import argv from gaepsi.snapshot import Snapshot from gaepsi.gaplot import create_cosmology import os.path from gaepsi.compiledbase.geometry import Cubenoid from sys import argv execfile(argv[1]) # center = [ 62995.8671875, 40180.12109375...
1ac7b4431bd396013538f059be34659c766e320b
454d94fc163d7a005e1e294d65208acfae0a0520
/numadFunctions.py
e94fd59241401cb9f479e6ef8f76ff4a3d444984
[]
no_license
benjaminjenett/wind
74a549f99f35d19482b8ef4bb5855096d658d259
60e432d2c9db2e1a50958ab17b19d125d5552ac5
refs/heads/main
2023-07-20T04:42:31.831085
2021-09-02T23:07:05
2021-09-02T23:07:05
399,901,892
0
0
null
null
null
null
UTF-8
Python
false
false
5,443
py
numadFunctions.py
import numpy as np import pandas as pd import sys,os wd = os.path.dirname(os.path.realpath(__file__)) libpath = os.path.join(wd,'lib') if libpath not in sys.path: sys.path.append(libpath) import numadInterface as numad numadfolder = os.path.join(wd,'IEA-3_4_NuMAD') numadfile = os.path.join(numadfolder,'IEA-3_4_NuM...
28e6e71db80c66540256a1900a6bee4c40f5e820
ab2d9afdca8c6eeb0317f62938908a26f814b218
/omniIMF_old.py
afd3b50ce0b650a7769b56bdcccdbca0da2a9a82
[]
no_license
ReedOnly/masterReed2017
c746d9aa63881d634e3272482e27f79a98a43dd7
4acbea98f947bbd2d5436c42abe2b20ec337a4a0
refs/heads/master
2020-05-28T07:41:26.884384
2017-06-10T23:38:00
2017-06-10T23:38:00
93,967,885
1
0
null
null
null
null
UTF-8
Python
false
false
2,817
py
omniIMF_old.py
#Code used for finding RFEs and making the plots used in the Master Theisis of Kristian Reed #Written by Kristian Reed 10.06.2017 # -*- coding: utf-8 -*- # for python 2/3 compatibility from __future__ import division, print_function # import the module import nompy # we also need the Python built-in date...
8084c773fdaec1da449ed14de88830a459323df3
9fd4f11f22288653c36326dd9a70afa19735b73a
/scripts/parse_134k.py
c34b9e84fac55b123ed5ca3eac493b5198679295
[ "MIT" ]
permissive
hwpang/learn134k
2d5fc296795b697296930d76a5073a700ce01763
7f6558cdf49782f231faeba32ae34a59408a021b
refs/heads/master
2021-09-15T23:44:44.591505
2018-06-12T23:05:26
2018-06-12T23:05:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,242
py
parse_134k.py
#!/usr/bin/env python # -*- coding:utf-8 -*- import argparse import glob import os from l134k.structure import Structure from l134k.energy_data import freq_scale_factors from l134k.util import pickle_dump def main(): data_dir, out_file, ignore_file, names_file = parse_args() structs = [] ignore = set()...