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
06c4c42339a21a48beb2f36e732d68e67d891e1c
15f3626e06043cffeb42c99ac8f7e389d81116e0
/emmer/utility/emmer_bench.py
e6dfd17e92546640ecc752bc6238b2806b40adee
[ "MIT" ]
permissive
isabella232/emmer
11b46c0a91020d921225e21e98bcd2f99bc3bea9
1435310b2b4e63844700cbe26746d5c7ee0008e0
refs/heads/master
2021-05-28T08:46:36.646653
2014-02-25T02:59:06
2014-02-25T02:59:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,154
py
emmer_bench.py
#!/usr/bin/env python """ emmer_bench Furiously nukes the TFTP server with file requests, abandoning some and being illegal in some cases. May or may not later be extended to be more customizable. """ import gflags import os import random import socket import sys import threading import time sys.path.append(os.pa...
be3d016b9baddc1707771192ed6584e056612cff
850d9144c07f6d081156f32d6bafaf625a532971
/widgets/files_manager.py
5b0e22783c1cad7486dcaf397dff98d813587b4f
[]
no_license
ifara/wingedbox-client
829258d8606719fd75047e37fe0a5ea3d6e978f7
bb45b237b478debda05c83d8b6342fdc0e1e02a7
refs/heads/master
2021-01-20T10:41:54.591324
2010-11-17T19:00:44
2010-11-17T19:00:44
34,582,994
0
0
null
null
null
null
UTF-8
Python
false
false
7,803
py
files_manager.py
from PyQt4.QtGui import QWidget from PyQt4.QtGui import QMessageBox from PyQt4.QtGui import QApplication from PyQt4.QtGui import QPushButton from PyQt4.QtGui import QIcon from PyQt4.QtGui import QLabel from PyQt4.QtGui import QLineEdit from PyQt4.QtGui import QFileDialog from PyQt4.QtGui import QVBoxLayout from PyQt4.Q...
0bf77ea4eefe7b76fa47d3ba92814f40da08a6ca
8738e21bdd4108c9ddbba0863e67a6645777286a
/app.py
8695a900dd5ea2bee15c4ec6b3acb66a978efdc7
[]
no_license
dancingCamel/Portfolio
1c30a1a24d1bdaacfb11f877f412fc3f225f7547
5e09561bb9e5e33de741e329ccdef73c21a443c4
refs/heads/master
2023-05-11T14:58:24.668144
2022-09-15T21:11:57
2022-09-15T21:11:57
234,318,507
0
0
null
2023-05-02T00:23:45
2020-01-16T12:47:57
HTML
UTF-8
Python
false
false
768
py
app.py
import os from flask import Flask from flask_restful import Api from db import db from resources.index import Index from resources.projects import Projects app = Flask(__name__) api = Api(app) # Configurations app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get( 'DATABASE_URL', 'sqlite:///data.db') app.config...
4272b1c085c39bf11cf69c953a13ff1dc9021926
75000fc26e0110f475d33ff4c818c7f77de9f17f
/SchoolSystem/teacher/models.py
24edf0e9bf045a3c00745a4206919a96a5c8c9e2
[ "MIT" ]
permissive
fallprojects/SchoolSystem
87a686e6ea35ea2ddd360321a35c09e55b0063cd
39138aa3539e75f108c168bfe7205cf2571bd7e6
refs/heads/master
2023-02-01T15:10:00.921052
2020-12-10T10:29:51
2020-12-10T10:29:51
317,192,228
0
0
null
null
null
null
UTF-8
Python
false
false
1,223
py
models.py
from django.contrib.auth.models import User from django.db import models from pupils.models import Class,Pupils class Teacher(models.Model): user = models.OneToOneField(User,on_delete=models.SET_NULL,null=True) first_name = models.CharField(max_length=50,null=True) last_name = models.CharField(max_length=5...
b37bd14b69c00b5a87911bad9cde607e2a30cce3
56620ace5d5dfee8b1c97ac86b6d5628338b3247
/GP_Sample.py
aaf1925327665c661265f763969bb36e8b466d69
[]
no_license
Jane11111/GP_Process
aaff487fb0033ff720f4e0851cdc8c1028a34b2d
72304b6360e9e04914b2d3632aff3b2dd7efdcb3
refs/heads/master
2022-04-17T13:24:05.400561
2020-04-12T15:19:22
2020-04-12T15:19:22
255,110,647
0
0
null
null
null
null
UTF-8
Python
false
false
1,411
py
GP_Sample.py
# -*- coding: utf-8 -*- # @Time : 2020-04-12 17:17 # @Author : zxl # @FileName: GP_Sample.py import numpy as np from scipy.interpolate import spline import matplotlib.pyplot as plt def gaussian_kernel(x,y,l=1): return np.exp(-(x-y)**2/(2*l*l)) def laplace_kernel(x,y,l=1): return np.exp(-abs(x-y)/(2*l*l)...
dbd0ff9962e0f4b4afdb9ae86778885fc48c12fb
1c8d13d1ae081188fcbde3c327164fe77ae8590b
/l10n_tr_tax_office/__manifest__.py
f0bdb562868881c47caab4932e6e773ec53e653d
[]
no_license
aaltinisik/customaddons
5f624008b167b860b183f17f0812f5adafc8908e
c04e2b9730db07848c153d8245d2df65ec4e2c8f
refs/heads/12.0
2023-08-31T23:31:05.802190
2023-08-28T06:50:25
2023-08-28T06:50:25
21,519,767
15
21
null
2023-09-08T08:45:44
2014-07-05T12:40:07
Python
UTF-8
Python
false
false
525
py
__manifest__.py
{ 'name': 'Turkey - Tax Office', 'version': '1.0', 'category': 'Localization', 'author': 'Codequarters,OnurUgur', 'website': 'http://www.codequarters.com', 'summary': 'Adds tax offices in Turkey', 'description': """ Turkey - Tax Office ==================================================== Ad...
a20d6c84d8aa787a0c386c1efc88d296b05ced32
fd26807cb283a3c0f6a5b23478ec140b47b3870c
/Leccion06/main.py
594be14f6d1ba6d3dd33f473f0da59a0663f9736
[]
no_license
gabo32/UniversidadPython
2491f0f1d733929ccd2663178eeca4b50a349dd6
4ad5471482c3509878bec0689c220fd65beb32fd
refs/heads/main
2023-08-14T20:16:42.692474
2021-09-20T18:28:46
2021-09-20T18:28:46
389,759,402
0
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
main.py
def miFuncion(nombre, apellido): print('Saludos desde mi funcion') print(f'Nombre: {nombre}, Apellido: {apellido}') miFuncion('Juan', 'Perez') miFuncion('Karla', 'Lara') # indica que puede regresar un int pero no es obligatorio def sumar(a: int = 0, b: int = 0) -> int: return a + b resulta = sumar(1, ...
b6517297d7b02330dd8d4742be99c16e3b0bacc4
3e37ecf3331b7ded978354c5c8598966f41d5ceb
/gh_easing/easing_geometry.py
c62eb8d54072231f8fcd420f80302a777b593cc1
[]
no_license
naysok/GH_Easing
5586ce8ccabe6f0414e4c27ddefa6e479ab2bed1
09291c7b6b54c53730722eb9c64e9995691b7c2c
refs/heads/master
2022-12-05T12:19:19.178953
2020-08-24T18:49:15
2020-08-24T18:49:15
289,964,681
0
0
null
null
null
null
UTF-8
Python
false
false
2,335
py
easing_geometry.py
import rhinoscriptsyntax as rs from . import easing_p class Easing_Geometry(): def remap_number(self, src, old_min, old_max, new_min, new_max): return ((src - old_min) / (old_max - old_min) * (new_max - new_min) + new_min) def easing_2pt(self, p0, p1, mode, res): x0, y0, z0 =...
e57c166afbb986629e719001498c59b401f3915d
f94e4955f9d16b61b7c9bff130b9d9ee43436bea
/extra_credit/project04.py
6095db576ca6ebe38fa1e56c18dc8b7bc235806f
[]
no_license
j2chu/dsc80-sp19
bd1dade66c19b920a54b0f8551fd999185449f86
dd48210a7cbadfb6470104b275f34085437e4766
refs/heads/master
2020-06-01T23:22:32.727488
2019-06-07T01:46:11
2019-06-07T01:46:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,172
py
project04.py
import os import pandas as pd import numpy as np import requests import time import re # --------------------------------------------------------------------- # Question # 10 (Extra Credit) # --------------------------------------------------------------------- def evaluate_models(tokens): """ Extra-Cr...
da737aae7d5642c743d511f81bce7bacd5d68d47
e70481c6ddbd4f07a54f65f8dd13c7582bb072ce
/stock_web/apps.py
24de22fb4ba7e377b89c55fa299d0664a7e1ada7
[]
no_license
kjthoward/Django-Stock-Database
102cc8dda7a8649d7286343d5eb61ecd66af005e
3a14fdd471e598dca9a513809d86eb7dcebf295d
refs/heads/master
2023-09-04T04:30:10.971448
2023-08-03T15:54:48
2023-08-03T15:54:48
230,972,882
2
4
null
2023-08-28T17:21:11
2019-12-30T20:03:12
Python
UTF-8
Python
false
false
228
py
apps.py
from django.apps import AppConfig class StockWebConfig(AppConfig): name = "stock_web" verbose_name = "Stock Database Tables" def ready(self): from scheduler_top import scheduler scheduler.start()
bccad76b67676f8c8cd322df57ad54567781334d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03086/s674379690.py
2faa831dcd4fe8c152e444f7861d6574e2ead031
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
s674379690.py
import sys lines = [s.rstrip("\n") for s in sys.stdin.readlines()] input = lines.pop(0) acgt = tuple("ACGT") max_num_list = [] max_num = 0 for c in input: if c in acgt: max_num += 1 else: max_num_list.append(max_num) max_num = 0 max_num_list.append(max_num) print(max(max_num_list))
9e695e448cc5495249d2fbd221a0cedb2ed6f305
853d7901c4bdc7db8e655092c9939741b4f86161
/617.py
d99172486e7221aeaf32938a7b70d84c3619eb3f
[ "MIT" ]
permissive
wilbertgeng/LeetCode_exercise
904d6a3f91d94f451b40f3760131aefaa8584b3b
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
refs/heads/main
2023-03-16T01:25:00.514922
2021-03-15T06:12:59
2021-03-15T06:12:59
347,856,240
0
0
null
null
null
null
UTF-8
Python
false
false
1,330
py
617.py
"""617. Merge Two Binary Trees""" # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution(object): def mergeTrees(self, t1, t2): """ :type t...
616cfc3c13081388178bc48b66e72d8883a9187d
66078c9248bc4b593014f23c1b27f9941516f150
/hepData/hepatitis_distribution.py
c72067592b9dc813fae7d3e691a5d29d37920464
[]
no_license
weinoh/ml-hepatitis
a733db65f8594ef3c82a3692cdc34e18abe63ad5
9ee7336c65c1eb8ca2bdc7d271dbc3f6d0bebedf
refs/heads/master
2020-03-29T20:20:50.018495
2018-09-26T04:50:34
2018-09-26T04:50:34
150,307,742
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
hepatitis_distribution.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Feb 25 17:35:29 2018 @author: krechnitz """ from hepatitis_projection import * import matplotlib.pyplot as plt i = 0 j = 1 mean = np.ones((80,1))*X.mean(0) index = [0,13,14,15,16,17] header = ['Age','Bilirubin','Alk Phosphate' ,'SGOT','Alb...
4d7ef91e9cfe3c6ffe61b99e6aa77ab3fd58347d
2dca3b87dabba2f90b38d31a5d282d5297d78ca2
/worker/tasks.py
e774ac4edd06d576b6b41e2b3b208f7f9e7595cf
[]
no_license
maei1337/flask_celery_redis
e276f041edc5554d502062fcde235350219c5c7c
b55e65ece04e2f7ca7aa40e55af8b8bd1073e549
refs/heads/master
2020-04-21T21:14:29.136407
2019-02-09T14:15:25
2019-02-09T14:15:25
169,872,242
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
tasks.py
from celery import Celery import time celery = Celery( 'tasks', broker='redis://redis:6379', backend='redis://redis:6379' ) @celery.task(name='mytasks.add') def add(zahl, b): time.sleep(5) return zahl + b
d6c6fe1a499039d073be1c08d3279439b7d1e53a
28f8a21b5d4b961477f105bddeb36654a6cc3d57
/TopAnalysis/TopUtils/python/genParticlePruning_cfi.py
0f3b1f12cb36611c61fb68535032a16935d24ccd
[]
no_license
fcostanz/NTupler
316be24ca3c8b9784def7e0deea3fd5ead58f72e
adc566a93ad4973fe61a1a9a24ceaabc3973a7ed
refs/heads/master
2016-09-06T03:57:21.982267
2014-02-17T10:01:14
2014-02-17T10:01:14
16,286,291
0
1
null
null
null
null
UTF-8
Python
false
false
506
py
genParticlePruning_cfi.py
import FWCore.ParameterSet.Config as cms from SimGeneral.HepPDTESSource.pythiapdt_cfi import * ## collection of generator level muons that originate ## from W-bosons prunedGenParticles = cms.EDProducer("GenParticlePruner", src = cms.InputTag("genParticles"), select = cms.vstring( "keep+ pdgId = {W-}", ## keep...
dc41dc8fcd2d34ac4c340a191c62f76f9300b636
8b90a22d3126aee2ad8f0046854b8a9a72f5b8d0
/utils/TUM_RGBD_utils/getting_file_list.py
98eec8662929b63647f0d45f6c349b9fed369a8d
[]
no_license
ICRA-2021/robust_360_8PA
dc70baf1621b04d820b3530536289bb3512a6119
26bb098c966fde9d19b80e8280826de8d1396ccd
refs/heads/master
2023-08-15T09:37:09.740564
2021-09-13T07:28:44
2021-09-13T07:28:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
706
py
getting_file_list.py
import os from file_utilities import * if __name__ == '__main__': path = '/home/kike/Documents/Dataset/TUM_Omnidirectional/T2/T2_orig' files_path = path + "/images" assert os.path.isdir(files_path) list_files = list_files(files_path, key=".png") list_names = [get_file_name(name) for name in list_...
770124c9088f38c040fbe7f7a0744678b9c3f98d
8df89880e75134777c3a685fc4f909b539c87aa1
/import.py
1e2d7931d7185ab463b46999cf75e3f90c4a33a7
[]
no_license
Grism/Docker
93df90003084173b2eb9e3d4162a1d9c38479de3
5545e20a24dbcdc988eb0cc63aadbc15a9cf19ca
refs/heads/master
2020-12-03T08:16:58.992108
2017-06-29T15:23:27
2017-06-29T15:23:27
95,679,519
0
0
null
null
null
null
UTF-8
Python
false
false
22
py
import.py
#test with print "1"
ecfa2453aefba022547e492e1bedc876d28363c5
96ae6c7a0d3c33a1795ec5be0420b9787df89915
/wikiScrapers.py
c9765fa558d21cceef62e6a2742ae7e2a6ae0dba
[]
no_license
KevinDly/MabiFoodScraper
89e9927ce76f22a9831fac49878d864cc5644ecb
8c6483cddee98419aa3a714024e75b63daafa2df
refs/heads/master
2023-09-01T15:24:54.660964
2021-10-21T23:41:12
2021-10-21T23:41:12
406,559,376
0
0
null
null
null
null
UTF-8
Python
false
false
3,516
py
wikiScrapers.py
#Check for commandline arguments import re def scrapeFoodTable(table, recipeKey): #Locate the tbody of the table tbody = table.find('tbody') #List out all trs in the tbody. trList = tbody.find_all('tr', recursive=False) tableDict = {} currHead = []; #Some recipes dont conform ...
c3865b40b98476eed39b8f28b296650571ba55d2
00c3c710911bfe58e2b40cd9efb8260c75570075
/Pyspark/map.py
ebb19b990cc59cd52d5df103d9ad7800c8a804d1
[]
no_license
krishdb38/Data_Analysis
74cb83ceccfdf3efa02d1b15eefd35789a9e2d01
09a5d45002937adf350b154f8ca57eaf6c7a6964
refs/heads/master
2022-11-25T22:57:29.662890
2022-11-17T13:20:05
2022-11-17T13:20:05
208,673,365
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
map.py
""" A new RDD is returned by applying a function to each element in the RDD.In the following example, we form a key value pair and map every string with a value 1 """ from pyspark import SparkContext sc = SparkContext("local", "Map app") words = sc.parallelize( ["scala", "java", "hadoop", "spark", ...
935043355dfd6f42bcafc50b7a93d80c0d4fd41c
a45b32d60a17f0b97dc756a5f13cae99678ea28e
/project/project_codes/codes/exchange.py
9aceb5f49bbe0af988872bee93ef711138d8a8cf
[]
no_license
jjabbour/MCSC-6030G
c5947225928890b949647d4aead9de35e4ae9c36
936aeaa8f2942809b6c0c529596f5b57638e6ba3
refs/heads/master
2021-01-12T06:46:49.939510
2016-12-19T03:23:21
2016-12-19T03:23:21
76,824,346
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
py
exchange.py
from mpi4py import MPI def assign_aliases(u): return (u[1,1:-1], u[-2,1:-1], u[0,1:-1], u[-1,1:-1]) def exchange1d(cart1d, u, left, right): u_left, u_right, u_left_ghost, u_right_ghost = assign_aliases(u) cart1d.Send( u_left, dest=left ) cart1d.Recv( u_right_ghost, source=right ) cart1d.Send( u_ri...
ba2d895b0d0633aeda0921eb93d8ba2e88fd7e6f
f3a48e3da4ce9a344428e5377e5bda2d70b85806
/src/julytestsid.py
ab85c25771ebe420e09d1455bd977857eb0f59bc
[]
no_license
Davidzy/testsautogen
e5ca3101757c07f02cf6796247e5b19bfab9833c
e7a0b19930e14c90adee983f11362463765ad3af
refs/heads/master
2020-06-02T19:54:07.408971
2019-09-23T03:01:48
2019-09-23T03:01:48
191,289,335
0
0
null
null
null
null
UTF-8
Python
false
false
2,217
py
julytestsid.py
papers_list = [ [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,1,2,21,31,1,2], [16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,3,4,3,4,22,32,3,4], [31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,1,20,5,6,23,33,5,6], [46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,6,17,7,8,24,34,7,8], ...
96cb16a339b946525a443be767ad94cf1a259f22
8e264ec4fd8ce446549ee17b78a370db1a519978
/HomeScreen.py
95c055487c7f2657db3e1a370647c6e190a31ec6
[]
no_license
Cassius-P/Sudoku
b4dedfd423b5f8bd32f308812a3f38fdd3a1aa95
bb62b16eceaa88b2be812c231d4bd06a19a00d4c
refs/heads/main
2023-02-23T17:01:44.243412
2021-01-31T22:19:25
2021-01-31T22:19:25
321,988,244
0
0
null
null
null
null
UTF-8
Python
false
false
2,323
py
HomeScreen.py
from PyQt5.QtGui import QFont, QResizeEvent, QColor, QIcon from PyQt5.QtWidgets import * from PyQt5 import QtCore, QtGui from Game import * class HomeScreenC(QMainWindow): def __init__(self): super().__init__() self.w = None # No external window yet. self.setWindowTitle("Sudoku Launcher")...
3bf20896f23a71ea2e740cab08361691c05389d6
0a3c3c64d240d0292553d4291de0e8ebdd385a06
/code/python/main.py
265348799ae1d6446a06261263293b1a7c883dde
[]
no_license
tomgorb/Big-Data-2019
3ca38c4be2ca584207bc01bbce7349547a11da4e
0442e02d61aa3a1adb7955f10e6772ce613a40e9
refs/heads/master
2022-11-15T14:47:52.961890
2020-07-04T12:04:04
2020-07-04T12:04:04
276,930,834
0
0
null
null
null
null
UTF-8
Python
false
false
7,982
py
main.py
import os import sys import yaml import time import logging import argparse import warnings warnings.filterwarnings("ignore", "Your application has authenticated using end user credentials") from datetime import datetime, timedelta from google.oauth2 import service_account from google.cloud import bigquery, storage ...
0a8ef20c003bc75daa7b0c7536fc9eebd0d3bb87
8f2b0e182040d413462c3f65eff7e255f161c3d4
/Programmers/DFS,BFS/단어변환.py
bf032e938515b1312028b3ce22a9f2d9dd36477b
[]
no_license
irissooa/Algorithm-with-Python
e68404bcc6e639b0a7b305f6b02a23c5217b9b3c
941fbf6b05e4f89f46e5a7c90c04f0f7ca98d548
refs/heads/master
2023-08-04T06:33:41.073378
2023-08-01T15:04:18
2023-08-01T15:04:18
342,212,453
0
0
null
null
null
null
UTF-8
Python
false
false
1,526
py
단어변환.py
''' begin이 target으로 변환돼야되는데 한번에 한개의 알파벳만 바꿀수 있고 그 단어가 words에 있는 단어야 된다. 1. begin과 target이 다른 것을 words에 있는 단어 중 begin과 같은 단어가 1개 차이나고 target과 begin이랑 공통되는 것이 1개 더 많아야된다. 2. 바뀐 것으로는 다시 바뀌지 않게 words에서 뺴줌 ''' def solution(begin, target, words): answer = 0 bigin_target_cnt = 0 for i in range(len(begin)): ...
ea18f9e9687a39ff89a2ed410a51f32b38383e10
66153b1864abee82006e060438887862ae9577c5
/L7/L7_4.py
55893f7b1152db93bed3cc3fdea99a83cb3e3dc7
[]
no_license
ArvinZJC/BUAAHND_G2T2_Python
d05f3399b13394252f2a187f9915f33bdb03b5f9
1f5ad1a894559717c13cae6c683a3a984ee05ad6
refs/heads/master
2021-06-03T13:19:58.120021
2020-02-18T20:20:35
2020-02-18T20:20:35
147,664,826
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
L7_4.py
# 第8章.pptx, P118 - 122, program that uses a Frame control from tkinter import Tk, Frame, Label, Button winForm = Tk() frame = Frame(winForm, height= 300, width = 100) label = Label(frame, text = "test") button = Button(frame, text = "OK") frame.pack() label.pack() button.pack() winForm.mainloop()
1f0f0b623f80545633635e45a6ad77484de98b54
f9b8db83e9fc1e05581c86b81412a74f58c8315d
/catacomb/settings.py
3a35ed88707edc2b19a58c5adf1faa7edebf0f57
[ "MIT" ]
permissive
mitchjeitani/catacomb
35ffb5719123f91ed22c0235d60f2ea7b3885efe
9b710319a769d532902cb1f7bfecd94155c4e2bf
refs/heads/develop
2021-09-18T12:11:01.292121
2018-07-14T05:43:33
2018-07-14T05:46:46
109,692,751
32
3
MIT
2018-07-14T05:46:47
2017-11-06T12:31:59
Python
UTF-8
Python
false
false
524
py
settings.py
# Configuration naming. CONFIG_DIR_NAME = ".catacomb" CONFIG_FILE_NAME = ".catacomb_config" TOMB_DIR_NAME = "tombs" TOMB_DEFAULT_FILE_NAME = "default" # Default user configuration. DEFAULT_CONFIG = { "open_tomb_name": TOMB_DEFAULT_FILE_NAME } DEFAULT_EDITOR_UNIX = "vi" DEFAULT_EDITOR_WIN32 = "edit" DEFAULT_EDITO...
ab054602585d611a5da6b83829a2b8fc698eb29a
3ee33f070a4ce5304aa6049b840602b614060357
/stats.py
641cdc109d1169a86a00fec3be7bb5c4ac77022e
[]
no_license
verajohne/Animal_model_analysis
0cddc95257ea6c671a27d27b357189d7eb7534a9
abcd5cc4f6dc5aa0ea90d1ecbcb8a79f330262ea
refs/heads/master
2021-01-18T01:43:05.939023
2016-01-09T10:39:35
2016-01-09T10:39:35
30,038,781
0
0
null
null
null
null
UTF-8
Python
false
false
4,694
py
stats.py
from __future__ import division import numpy as np import matplotlib.pyplot as plt import seaborn as sns from scipy.stats import norm import scipy.io import dataset_time as dst import scipy.stats ''' For plotting of data Some of these functions are particular to the structure of the dataset ''' def plot_cdf(lists):...
f2bc64ffed8e0e117077d9d5406a3ba6a29b9d76
868f3faa6de6990a82247ae97d858e66a358dff4
/Python/EX18.py
95cf6ae9ab8544c215ee739439ef9900a307796a
[]
no_license
vamerico/Programacao
bfef6a03971e0b0064650f65f2ab26338fd76176
f5863a575ac266848c5bdcdc31cb39df78591a6e
refs/heads/main
2023-09-06T03:28:07.996317
2021-11-22T23:56:12
2021-11-22T23:56:12
401,510,178
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
EX18.py
alt = float(input('Digite a sua altura em (m): ')) peso = float(input('Digite o seu peso (em Kg): ')) sexo = input('Digite o sexo (m - masculino / f - feminino): ') imc = peso / (alt * alt) if(sexo == 'm'): if(imc<20): print("Voce esta abaixo do peso") elif(imc>=25): prit("Voce...
942d1f18967f52196eca308e6055cbb500afaca3
017a0e2c26455cf8a7a120fb21de7c8acf8e34b6
/3_longest_substring.py
c94944c8514001a4ca30e60518298ebd02daeae2
[]
no_license
csliubo/leetcode
06ee285ac84657a6010f53a1555c05eb0e9075ab
cd9a4d261830180a59bc92cc706fe0dd2f1746f9
refs/heads/master
2021-01-19T04:38:17.386615
2020-03-03T07:12:00
2020-03-03T07:12:00
63,233,492
0
0
null
null
null
null
UTF-8
Python
false
false
33,636
py
3_longest_substring.py
# -*- coding:utf-8 -*- __author__ = [ '"liubo" <liubo.cs@hotmail.com>' ] class Solution(object): def lengthOfLongestSubstring2(self, s, current_len=0): """ :type s: str :rtype: int """ chars = {} if s.__len__() <= current_len: return current_len ...
196ec2187e0cc1edc2df271f366a1b4b3f07d6fb
b2403817f9221ee3550130572a808194ef4f3fda
/Search Technique/SequentialSearch.py
7eee72a481f6a5512f73459cbe7e7ded65722ed4
[]
no_license
xaviergoby/Python-Data-Structure
e962444ef5b1313c3facbf1fcc315af182b73a26
eaaf31ea98d63e812a75c1d6ecb8722b9c0cf142
refs/heads/master
2020-04-13T00:24:40.896592
2018-11-27T11:51:36
2018-11-27T11:51:36
162,844,732
1
0
null
2018-12-22T21:46:29
2018-12-22T21:46:29
null
UTF-8
Python
false
false
1,266
py
SequentialSearch.py
__author__ = 'Sanjay' def seqSearch(aList, item): pos =0 found = False while pos<len(aList) and not found: if aList[pos] == item: found = True else: pos = pos +1 return found #as per book def sequentialSearch(alist, item): pos = 0 found = False wh...
6c79ae63b52020597f37cf1cc09ad3625585b8a6
ea15bc5135737cc995645719cff23579a7059a2d
/PythonZipModule/util/exec7za.py
dcb7684531af90906cb4fea8ddb9e73d66fef8b1
[]
no_license
mdamire/PythonZipModule
2ac546dac5ef17c52d3f7687cba5545b2026b57b
03375be268da1167c1be99cfa9dcee06cce923fa
refs/heads/master
2023-07-08T23:31:15.746882
2021-08-18T09:51:19
2021-08-18T09:51:19
397,599,812
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
exec7za.py
"""Create A module to execute 7za command""" import subprocess from .zipcomplete import ZipComplete class Exec7za(): def __init__(self, *param): self.args = list(param) def add_args(self, *param): self.args.extend(param) def get_args(self) -> list: return ['7za'] + self.args ...
8c804eaf6959f2b2d8f6ea9a8377662e2b7f739e
d173d2ea66a1f3551a73c60195a1a6fef50c7b45
/weatherProcessing/shuffle.py
48640c735fd0ac4f6928b34718f652bbc064c1d2
[]
no_license
tbreimer/snowdayNetwork
5a370654f2f2e4230cd5a9335fcbeb1815846745
0e3acfa0f22a01378be4db33048bd8ec3a66a8fd
refs/heads/master
2023-04-15T18:23:52.658121
2023-04-07T15:41:01
2023-04-07T15:41:01
199,741,813
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
shuffle.py
# Shuffles combinedDataNormalized.csv, outputs as combinedFinal.csv (Seen in network folder as train.csv) import csv import random r = csv.reader(open('combinedDataNormalized.csv')) lines = list(r) newLines = [] finished = False # Preserves dictionary lines as first line firstLine = lines[0] del lines[0] newLines....
e240d817f1c1f521d77b47458cb5f43682ab374c
ba7d33152b5747dfc2ca2f60498f4c610fb5b44f
/npz_to_wav.py
8b374c9ca61a2417bec4b2505842fb62d61f9f9c
[ "MIT" ]
permissive
spragunr/echolocation
d2912330b5df3421860e53c2cd442b92e95b0789
f78bd53afc3ff965f38f871fe3463da3a2820a35
refs/heads/master
2021-01-21T18:38:55.522203
2017-11-22T20:06:45
2017-11-22T20:06:45
92,067,308
1
0
null
null
null
null
UTF-8
Python
false
false
330
py
npz_to_wav.py
""" Create wav files from recorded audio stored by ros_record.py Usage: npz_to_wav.py NPZ_FILE """ import sys import numpy as np import scipy.io.wavfile RATE = 44100 data = np.load(sys.argv[1]) audio = data['audio'] for i in range(audio.shape[0]): scipy.io.wavfile.write('fizz{0:0>4}.wav'.format(i), RATE, audi...
06a1cde30a005277924d3132e736bd0b447e202c
3e2d60982063c8eda6d4d0fed4b809d60908dfb8
/src/pyglottolog/references/elpubbib.py
9c65ac26c927565e70b52b7fe6a629373e0b09b2
[ "Apache-2.0" ]
permissive
SimonGreenhill/pyglottolog
fb165d838f1e8be481ca17baf3ed8d7b8fd3866f
1e0aa0cdc5ae35906c763f9219c6db9b976f8d38
refs/heads/master
2022-05-30T08:13:10.139705
2022-04-28T10:58:31
2022-04-28T10:58:31
181,015,674
0
0
Apache-2.0
2019-11-13T10:46:09
2019-04-12T13:39:31
Python
UTF-8
Python
false
false
4,108
py
elpubbib.py
import re import pathlib import tempfile import subprocess import requests from clldutils.source import Source try: from bs4 import BeautifulSoup as bs # noqa: N813 except ImportError: # pragma: no cover bs = None LS_INDEX = 'http://www.elpublishing.org/language-snapshots' LC_INDEX = 'http://www.elpublishi...
c7f416b18cdbf13865f7a468b9373787db92577f
b86751679397f4c5a9f850ceaa78e4a2d2c6400a
/forms/registration.py
3cf61d3056d92c170f0dd16db1d700b808cd6e3d
[]
no_license
mrhitman/dgma
81450bd1226e73a9ef4523b5784794b8ad7990b9
41ebcfffca5cdd1a9c3dd14c9045bd0ee0fa7cf4
refs/heads/master
2021-01-21T14:23:25.828037
2016-11-16T20:58:07
2016-11-16T20:58:07
58,486,715
0
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
registration.py
from flask_wtf import FlaskForm from wtforms import PasswordField, validators, StringField from wtforms.ext.sqlalchemy.fields import QuerySelectField from wtforms.fields.html5 import DateField from models.cathedra import possible_cathedras class RegistrationForm(FlaskForm): name = StringField('Имя', [validators....
3a654099d8aebd10630f1f31e1464e42221e3309
cc286ebaea25155bc6e8b0fee6f342911b11efa5
/send.py
4d7ce8d2fc06738226c035e766bf3cdae9f1d177
[]
no_license
yakovd33/Python-Outlook-Automations
91040132cd96f4ed109c2155e5f02288cf32d400
b26b919e11e3f2061a34587028beb05a540de80c
refs/heads/main
2023-08-01T03:07:07.781339
2021-09-24T11:26:09
2021-09-24T11:26:09
398,596,159
0
0
null
null
null
null
UTF-8
Python
false
false
5,532
py
send.py
from time import sleep import win32com.client as client import tkinter as tk from tkinter import filedialog, Text from tkcalendar import * import os import threading username = "careers@hunted.co.il" root = tk.Tk() timing_frame = tk.Frame(root, relief= 'sunken', pady=10) hour_txt = tk.Entry(timing_frame) cal1 = Calen...
b8f943a3e8d71063bfbc7a38231a9d9a7753c494
55e2c9bc701a18c20ee62ed61c5ec1965554b022
/128 - Advanced Lessons - __name__ And __main__.py
4f065c413fdaeeacbf9ae224a50274651569f7c7
[]
no_license
kira-Developer/python
9ec8105a045bfbde445d6e4b8309865da81cb479
a77ad8236cd544de7cb355df9f655e9cf6299300
refs/heads/main
2023-02-24T17:57:18.973883
2021-01-27T13:56:53
2021-01-27T13:56:53
333,436,288
3
0
null
null
null
null
UTF-8
Python
false
false
843
py
128 - Advanced Lessons - __name__ And __main__.py
# ------------------------------------------------- # -- Advanced_Lessons => __name__ And "__main__" -- # ------------------------------------------------- # if __name__ == "__main__": # - __name__ => Built In Variable # - "__main__" => Value Of The __name__ Variable # Executions Methods # - Directly => Execute the Pyt...
e216e4eab3916c1352fdb5e1e0fc5b131381cd5e
11b0a1d32ab4f476529aba332bb36890037b9f50
/buildd-test.py
d012180cc2cb8a31b02ca4cd2d79262d7b7c3070
[]
no_license
troglobit/pybit
52086d4d599a31fc035567c2bf9f0de80d85688a
24da1efb7517267d1645ede8db8cbdf32463a662
refs/heads/master
2023-09-04T00:36:26.874254
2012-11-02T16:30:34
2012-11-02T16:30:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,398
py
buildd-test.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # buildd-test.py # # Copyright 2012 Neil Williams <codehelp@debian.org> # # 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 Founda...
b2b8e1b2f9f0b23fa156bc34ea51243a7e2f9e8f
bcc26858268d10891a09c254151344b77d836ee4
/vissl/meters/accuracy_list_meter.py
5f588d0aca7143b2b8b6e1eb32b7b910f739bc29
[ "MIT" ]
permissive
pzharrington/vissl
99f1e8222aec9612c7ce4f18d5e3f8ccbd1c90c5
b647c256447af7ea66655811849be1f642377db8
refs/heads/master
2023-06-17T18:46:17.432537
2021-07-19T23:56:41
2021-07-19T23:56:41
356,419,979
1
0
MIT
2021-07-06T19:08:50
2021-04-09T23:15:42
Jupyter Notebook
UTF-8
Python
false
false
6,061
py
accuracy_list_meter.py
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import pprint from typing import List, Union import torch from classy_vision.generic.util import is_pos_int from classy_vision.meters import A...
603ed16376d063f1eab92921f342429af3689611
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/dockerized-gists/896657/snippet.py
ac31fbc8bce01b1d4b418a62216f9be1225dc3d5
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
711
py
snippet.py
# The following will have an average running time of T(n) = O(n^log(6,0.83)) = O(n^9.8) def gravitysort(l, i=0, j=0): if not j: j = len(l)-1 if l[j] < l[i]: swap(l, i, j) if j-i > 1: t = (j-i+1)/6 gravitysort(l, i, j-t) gravitysort(l, i+t, j) gravitysort(l, i, j-t) gravitysort(l, i+t, j) gravitysort(l, i...
bc890f0f40a7e9c916628d491e473b5ecfa9bb9b
e7b5c3b5574d97ab9e045e2a1cde5157efc132e0
/Source_Code/Restaurant_Environment/simulatedtempiot.py
5234da701ed8a239a05b8486b38339164dc114d9
[]
no_license
JanaranjaniPalaniswamy/Safety-Monitoring-in-Restaurants-based-on-IoT
1deff7c4d82f7e115c5aff47a3d58c89ef147255
b564d8966dc51ffb08ee22bdb9e3afd4db730bba
refs/heads/master
2023-03-30T08:17:27.458493
2021-04-03T22:38:52
2021-04-03T22:38:52
279,384,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,492
py
simulatedtempiot.py
from random import random import numpy as np class TemperatureSensor: sensor_type = "temperature" unit="celsius" instance_id="283h62gsj" #initialisation def __init__(self, average_temperature, temperature_variation, min_temperature, max_temperature): self.a...
fe597ad4462b1af3f3f99346c759c5fa8a7c14f4
b6ad1e9a4c2b020d2cba3cba902dd23db8c0b3cf
/Task5/check_ip_or_mask.py
95f98d2bbeef215ece392d46b4c4279b85d6235c
[]
no_license
Orfey95/Python-tasks
158a3800b53603f49183415461effa6ce9c9a1ba
a528814bb0bab205c79cd9ec47afa61cefac9aba
refs/heads/master
2020-12-13T22:12:59.882506
2020-03-24T11:59:20
2020-03-24T11:59:20
234,545,406
0
0
null
null
null
null
UTF-8
Python
false
false
1,345
py
check_ip_or_mask.py
def check_ip_or_mask(temp_str): IPv4_regex = (r'(?:[0-9]{1,3}\.){3}[0-9]{1,3}') temp_list_ip_mask = re.findall(IPv4_regex, temp_str) binary_temp_list_ip_mask = [] temp_binary_ip_mask = '' for x in range(len(temp_list_ip_mask)): split_ip_address = re.split(r'\.', temp_list_ip_mask[x]) ...
0528d7761cbbf3dbe881ff05b81060f3d97e7f6c
95565fbf6c2418e3a9e4e43e3982da0220dd6881
/satella/coding/concurrent/monitor.py
2dc44cec3e8599c740bc23a1969f33f87f285bb1
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
piotrmaslanka/satella
6adc649bcbcd3ba596650f9c0bfca15cb0ec3a96
8dd3d4741c11717f9473b7fdc4b242dfcade7aa9
refs/heads/develop
2023-06-23T03:38:19.810958
2023-06-08T16:11:39
2023-06-08T16:11:39
7,431,872
14
1
MIT
2023-01-07T22:14:14
2013-01-03T23:02:52
Python
UTF-8
Python
false
false
7,677
py
monitor.py
import collections import copy import threading import typing as tp from ..decorators.decorators import wraps from ..typing import K, V, T class Monitor: """ Base utility class for creating monitors (the synchronization thingies!) These are NOT re-entrant! Use it like that: >>> class MyProtec...
8c336edddadbf4689721b474c254ded061ecf4b5
05bcc07844ed6221e15deae4b87067d92650e718
/scram/__init__.py
e2030a186297ed0e2ff63ce9a3949ca66b427a04
[]
no_license
mlazeroff/Scram
cb854e0babcbbc895f16a1bc91a5f4aa005b99b7
395c2e649d17d41c404823685c45f491f1e8ee69
refs/heads/master
2022-09-08T21:00:33.433115
2020-06-04T20:25:27
2020-06-04T20:25:27
268,933,537
0
0
null
2020-06-04T20:25:28
2020-06-02T23:56:24
Python
UTF-8
Python
false
false
34
py
__init__.py
from . import scramsha1, scrammer
0fb288e3ab074e021ec726d71cbd5c8546a8455b
a4f82d58ef57bdeab7e1d74b5e1c699c34fe2914
/tests/unit/runners/test_net.py
dcf43abecab2ee99fc60aa17261ade111002f8c1
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
dmurphy18/salt
298a2174342f619c34c617b84f9490c376c3e604
a210dbc25fa96bdadb21308753f30ea52a6a387e
refs/heads/master
2023-08-17T08:19:58.930822
2022-08-03T13:16:22
2022-08-03T13:16:22
27,693,778
1
0
Apache-2.0
2022-08-02T23:45:40
2014-12-08T02:20:49
Python
UTF-8
Python
false
false
1,601
py
test_net.py
import shutil import tempfile import salt.runners.net as net from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock from tests.support.runtests import RUNTIME_VARS from tests.support.unit import TestCase, skipIf @skipIf(not net.HAS_NAPALM, "napalm module required for this tes...
b12c8d0cb1cd1e48df6246fe3f16467b2db296e0
957430d23fea111f5e743ad19fea1ceffc0c7fc6
/mtinkerer/utils.py
ad1ba098ba4555a10cc7182ed30f6c9b613f9fe0
[ "MIT" ]
permissive
Legutier/mtinkerer
a44058d63b882745c911442e58767dd35d4a2ac8
9afd810b12f85917661e88d28b1b8e5d6e0904a4
refs/heads/master
2020-05-02T10:11:45.632274
2019-03-27T03:35:44
2019-03-27T03:35:44
177,890,777
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
utils.py
import sys def dir_slash(): slash = '/' if 'win' in sys.platform: slash = '\\' return slash
a09bc84a14718422894127a519d67dc0c6b13bc9
2362668c14383c0b2eda5b0cc087f282dfa93af4
/ABC-B/24.py
fc3b96e94f777826a6d740bf4d0123900f6265ce
[]
no_license
50m-regent/kyopro
e7a46280e97ae352b9ab1eb4283678c0b8c9175f
0656c567a4043bfe6ee369238e1399b6f3f17ca3
refs/heads/master
2021-06-24T21:59:08.116700
2020-11-23T04:25:30
2020-11-23T04:25:30
171,856,284
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
24.py
#n = int(input()) #s = input() n, m = map(int, input().split()) #s, t = input().split() #n, m, l = map(int, input().split()) #s, t, r = input().split() #a = map(int, input().split()) #a = input().split() a = [int(input()) for _ in range(n)] #a = [input() for _ in range(n)] #t = input() #m = int(input()) #p, q = map(in...
330b843501e0fdaff21cc4eff1ef930d54ab6e8d
c003974bdd772be5332b6937e0e26e3066bda2a3
/temp_analysis.py
bff38776f9c52b87c303719660a568d86e8df336
[]
no_license
mmocchetti/cmsc396h-group-project
655ebd10174a46a40864bb8c5c9197cc64f8c19c
59bb2212003ab87ef4f25de63b929471f4193ef7
refs/heads/master
2020-03-13T18:23:37.638659
2018-05-13T02:21:23
2018-05-13T02:21:23
131,234,839
0
0
null
null
null
null
UTF-8
Python
false
false
7,246
py
temp_analysis.py
''' Temperature Container ''' class TempHolder: range_start = 0 range_end = 0 star_count_lst = [0,0,0,0,0,0] counter = 0 def __init__(self, in_range_start, in_range_end): self.range_start = in_range_start self.range_end = in_range_end self.counter = 0 self.s...
28d8f9d9b39c40c43a362e57a7907c0a38a6bd05
a1ce3cd263b8ca05211b6d2ff1c11d3634a7cab4
/PyToads.py
75732488bf72814c4dc4a6aefa409a66f5236af3
[]
no_license
pclbusto/zelda
1372e842348cc3b1646be316966d744742f0f021
4675564d43fede6ba77956ba882c6fcee3fa4ef1
refs/heads/master
2021-05-06T10:50:09.817941
2020-05-25T05:05:11
2020-05-25T05:05:11
114,176,361
0
0
null
null
null
null
UTF-8
Python
false
false
3,007
py
PyToads.py
""" Platformer Game """ import arcade import os from Toad_arcade import Toad # Constants SCREEN_WIDTH = 1920 SCREEN_HEIGHT = 1080 SCREEN_TITLE = "PyToads - Battletoads reimplementation" # Constants used to scale our sprites from their original size CHARACTER_SCALING = 1 TILE_SCALING = 0.5 COIN_SCALING = 0.5 MOVEMENT_S...
b51591de921f6e153c1dd478cec7fad42ff4251a
167c6226bc77c5daaedab007dfdad4377f588ef4
/python/ql/test/query-tests/Security/CWE-090-LdapInjection/ldap3_bad.py
2edb986fccfc801349189a70dedbbbbcd58d88b9
[ "MIT", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-other-copyleft", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Python-2.0" ]
permissive
github/codeql
1eebb449a34f774db9e881b52cb8f7a1b1a53612
d109637e2d7ab3b819812eb960c05cb31d9d2168
refs/heads/main
2023-08-20T11:32:39.162059
2023-08-18T14:33:32
2023-08-18T14:33:32
143,040,428
5,987
1,363
MIT
2023-09-14T19:36:50
2018-07-31T16:35:51
CodeQL
UTF-8
Python
false
false
1,009
py
ldap3_bad.py
from flask import request, Flask import ldap3 app = Flask(__name__) @app.route("/normal") def normal(): """ A RemoteFlowSource is used directly as DN and search filter """ unsafe_dc = request.args['dc'] unsafe_filter = request.args['username'] dn = "dc={}".format(unsafe_dc) search_filte...
aefe18923cb1a41b149618237eb03e7893bff279
0058d375c7aefbd5a43321c3a654754d9d004854
/edsa_recommender.py
814730f4039641ccc79a89fd72d0d79cba8e2af2
[]
no_license
bmsimang/unsupervised-predict-streamlit-template
06656c4a2867e484275621f5886230ed7ed371dc
e276008d898220270c948bb14722c9728ad1f27e
refs/heads/master
2022-11-23T08:43:38.941070
2020-07-28T14:54:05
2020-07-28T14:54:05
277,538,416
0
1
null
2020-07-28T12:44:44
2020-07-06T12:40:44
Python
UTF-8
Python
false
false
20,984
py
edsa_recommender.py
""" Streamlit webserver-based Recommender Engine. Author: Explore Data Science Academy. Note: --------------------------------------------------------------------- Please follow the instructions provided within the README.md file located within the root of this repository for guidance on how ...
c168d1a28f92105209e67c8024b495c23853315c
81f22c3c76e9136c27915ebb1b05b5cc8e539156
/hebChatbot/User.py
7e713ca4ec3b47d8cefe701fb0228110c03896b7
[]
no_license
RnDteam/CCai
9a4870d9a0a6d88a579ddadc271779d246af3cea
8913edf078c9dea732578dbe3ca2d85e9a632d74
refs/heads/master
2021-01-11T17:59:28.500829
2017-02-20T11:31:11
2017-02-20T11:31:11
79,892,554
1
2
null
2017-02-14T10:09:10
2017-01-24T08:26:37
HTML
UTF-8
Python
false
false
2,598
py
User.py
import States class User(): def __eq__(self, other_user): if self.CURRENT_STATE == other_user.CURRENT_STATE \ and self.CURRENT_ENTITY == other_user.CURRENT_ENTITY \ and self.CURRENT_ACTION == other_user.CURRENT_ACTION \ and self.is_clear == other_user.is_clea...
72d34363bc0c9ae602197b0b8475693a364034d9
e5a20362b2f9b17055cb95d56dc8dea2059205fb
/after_twittr/autoscale.py
bf64a9e42ce6103b0534331e79863b3d6224141a
[]
no_license
uchenna-j-edeh/dailly_problems
0c97d1ab3c91756abf625a04e3bb6e0cd6e3405c
7bd47232704297851f8acdd9331f90da96c732af
refs/heads/master
2023-08-17T12:27:00.640834
2023-08-07T17:03:00
2023-08-07T17:03:00
158,981,409
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
autoscale.py
from math import ceil def finalInstances(instances, averageUtil): # Write your code here current = instances c = 0 while c < len(averageUtil): print(averageUtil[c]) if averageUtil[c] >= 25 and averageUtil[c] <= 60: # 25 c = c + 1 elif averageUtil[c] < 25: # 23 ...
55951539f71a89994f2e5ce8804b9c0199bee97d
26ce6e80b3212ab71170294ff5aae74c07116070
/videoproject/videoproject/utils/pagenation.py
1f57552d4768fb9f66d1c25bd09e40e69eb6ece5
[]
no_license
PeterPZhang/VODProject
a92778fcdd3538d7de7332359ba6149ecca6a09e
c92e7c5366824c394dc059abbed8a8973e091232
refs/heads/master
2020-04-29T23:07:01.015278
2019-05-05T09:19:43
2019-05-05T09:19:43
176,467,795
1
0
null
null
null
null
UTF-8
Python
false
false
1,745
py
pagenation.py
# -*- coding: utf-8 -*- """ __author__ = 'peter' __mtime__ = '2019-03-27' # Follow the master,become a master.              ┏┓      ┏┓             ┏┛┻━━━━━━━┛┻┓             ┃    ☃    ┃             ┃  ┳┛  ┗┳  ┃             ┃     ┻    ┃             ┗━┓      ┏━┛               ┃      ┗━━━━┓               ┃ 神兽保佑   ...
2f852598ec78c7605ae95629d82ba8b8e084067d
2942458f4990b1d50b799b21e2494f4769e8925b
/Ejercicios/Semana 04/coprimos.py
c9e1ec6843a8daad2d4d3d4f319ab79ea0e36a6b
[]
no_license
moonstar-x-edu/cc1002-fcfm
5699daa8306e66d0665392eea9a1a3b0ee736f65
783b2df3151fdcdf4564df7df35b3917ed52cab6
refs/heads/master
2021-10-09T01:17:31.248463
2018-12-19T17:16:47
2018-12-19T17:16:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,950
py
coprimos.py
# mayorComunDivisor : int, int -> int # calcula el mayor comun divisor entre dos enteros positivos # mayorComunDivisor(12, 25) -> 1 def mayorComunDivisor(a, b) : assert type(a) == int and a>=0 assert type(b) == int and b>=0 # caso base, llegamos al resultado if b == 0 : return a if a == b : ...
e39fa6d8423e07e791c8e6370f9ac2e5391dbf76
68397356868a7e79a0f6daeac246b72e69c520c0
/Python/SimpleTools/gen-descrs.py
446137d9e4cdc15ac90a2a51b7d1a166adb1eafb
[]
no_license
joel-s/portfolio
7b48b2b54d42dce4906d2ce0418a76fbd7829e2a
4b45f0c9bbf1647ef7865e0d2616b78030a27389
refs/heads/master
2021-01-19T00:56:14.382200
2017-07-29T01:05:24
2017-07-29T01:05:24
15,810,728
0
0
null
null
null
null
UTF-8
Python
false
false
1,666
py
gen-descrs.py
#!/bin/env python2 """ Read text from stdin and create .desc files that describe JPG images. The .desc files are used by "curator" as image subtitles on a web site. This code could definitely use more comments. """ import sys import os import glob import commands if not os.path.exists("01"): print "d'oh!" s...
079f04321a746a36e7b503cc13d7b756276cc42f
e007465ebedab6e048346a2ca6434596bf2cca17
/exercise/A01_随机数产生与排序输出.py
b5226a5ff4a62f5b9ecf0035cc04f9a6e30545d3
[ "MIT" ]
permissive
0xChrisJL/easy-python
00273ded63bb1f55b6b2617bf97a2294ed9500de
9d9e6f68f0178f05eec1296d56016bf7d8a7fc54
refs/heads/master
2023-06-16T05:03:22.345911
2021-06-27T18:33:43
2021-06-27T18:33:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
A01_随机数产生与排序输出.py
import random num_list = [random.randint(1,100) for i in range(10)] num_list.sort(reverse=True) print(num_list)
3af4f027aae00c325c266d9224d79d8891fc81d3
ec9041ff2b20e2093e35699bf842b4e4cec1bb1f
/Python/findcharacters.py
7f335a3c971e211b45583be7a2e9c5da6e7032b3
[]
no_license
BlairBejan/DojoAssignments
7a8e5a2aa8765cd0b127d307fd6169222f883856
c286bf077a5ad293938163ba0315b73ef9fad23e
refs/heads/master
2021-01-19T20:49:31.070573
2017-07-05T00:19:04
2017-07-05T00:19:04
88,562,572
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
findcharacters.py
def findcharacters(x, y): new_arr = [] for i in range(len(x)): if x[i].find(y) > 0: new_arr.append(x[i]) print new_arr # findcharacters(["this", "that", "the", "thing"], "i")
dac4f41d59a42e21bc1b337576c02ff145f0b79b
0882e913e3809af3af975b55bf4ee76922aa95dc
/Blog/migrations/0011_auto_20160825_1412.py
c4c6a375343b4cfb639af89937f167a06b510e40
[ "MIT" ]
permissive
hknyldz/BlogProject-1
61219211ec440aceda0fd1a83cb7dc39e5cfd03e
4457e7bff17b62a306698fd3eeeaaf2e901e73b2
refs/heads/master
2020-07-03T20:36:11.488126
2016-11-20T14:16:05
2016-11-20T14:16:05
74,232,769
0
0
null
2016-11-19T20:11:25
2016-11-19T20:11:24
null
UTF-8
Python
false
false
820
py
0011_auto_20160825_1412.py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-25 14:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Blog', '0010_auto_20160825_1106'), ] operations = [ migrations.AddField( ...
a72748c01c7c4e92d840fa04017a7b6503df2f28
6df80e03b2db4697e0478bc7094d8f4e614bccd4
/example2.py
1cea1851aa8f10411d4c05d5d1a5171c1f21bb74
[]
no_license
codebynao/python
6f51210112f5713cf7768312d074964f941d14eb
da3e4981f8362117577324427e6fc989d5bf2fa5
refs/heads/master
2021-09-15T03:01:22.011321
2018-05-24T16:36:07
2018-05-24T16:36:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
example2.py
def g(a,b,c=1): return a + b + c print(g(2,2)) def h(a, b, c): return {'a': a, 'b' : b, 'c' : c} print(h(a = 1, c = 2, b = 3)) def i(*t): return t print(i(1,2,4)) def j(**d): return d print(j(a = 1, b = 2, c = 4))
a0f034569d2f46532ac0ce7c751efa8424a02d43
08b563efa1d9a990f4c278a2db3a22115f0e5b8c
/twitter.py
f728cabd97780ef0f8f44a6b1112ed39d4b92f65
[]
no_license
pedramsafaei/TwitterBot
98412d3ef37ba9c9f85eaea48d20490f77a51c08
c0203761f0b17b117e9104e6888c278e071fc752
refs/heads/master
2022-04-09T04:06:31.705385
2020-03-05T06:00:51
2020-03-05T06:00:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,900
py
twitter.py
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By import time class TwitterBot: # initializing our bot def __init__(self, username, password): # username and pass so we can log in self.username = username sel...
8cbe473ac361cb9ca1e7f849ae2dea28c609a940
35ce34f52b2b8c48f87c07d6171243f62fa7f135
/main.py
f82ae05b5c327000fd062520dae1557c06a6ffe0
[]
no_license
haozhima88/guess-the-number-haozhima
84063ddd7d110dd21c71fddbea9abab89e98739b
432c8f86e6cfc919f438c31200e217b450acfa2a
refs/heads/master
2023-06-16T09:04:47.796844
2021-07-15T10:02:37
2021-07-15T10:02:37
386,243,700
0
0
null
null
null
null
UTF-8
Python
false
false
1,582
py
main.py
#Number Guessing Game Objectives: # Include an ASCII art logo. # Allow the player to submit a guess for a number between 1 and 100. # Check user's guess against actual answer. Print "Too high." or "Too low." depending on the user's answer. # If they got the answer correct, show the actual answer to the player. # Trac...
9c0dcd9ac1a219f6fcd7cab16bd6f6808a3f82f6
09fdeb6fc055afe8371381cd78550988b83715f7
/iamblooddonor/blog/views.py
0080da85972a4d1d7e6c8cb40c711ac3e61a4a6c
[]
no_license
nazmul629/Social-Project
fbfca252b0cb480c629f4bd3a638ed61916375ff
a970c73924271d912982401609c592f32422e729
refs/heads/master
2020-04-22T05:17:18.250288
2019-06-23T16:52:01
2019-06-23T16:52:01
170,154,132
1
0
null
null
null
null
UTF-8
Python
false
false
2,153
py
views.py
from django.contrib.auth.models import User from django.shortcuts import get_object_or_404 from django.shortcuts import render from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.views.generic import ( ListView, DetailView, CreateView, UpdateView, DeleteView ) ...
56c1ca147124abcf9ebde4a93bdd395e697b9853
91f32423e9d78582c20fe3c55374c538f2d6af35
/app/dao/file.py
f5477cef973342fcf37ed053ec02b080906ef71b
[ "MIT" ]
permissive
fredsonchaves07/ruifma
df9d3d6a6748cba21c9b4b7a2da2455208c0bd14
197222a16d475586e7f4674be0c2e0f36dccd5ae
refs/heads/main
2023-03-31T06:10:44.802180
2021-04-09T21:20:23
2021-04-09T21:20:23
356,366,042
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
file.py
from app.db import db from app.db.models import File def create_file(filename, path): file = File(name=filename, path=path) db.session.add(file) db.session.commit() return file.id def find_file(file_id): file = File.query.filter_by(id=file_id).first() return file def update_file(filenam...
1be7d06474d0b26ab543d70b1a3a0a2df6adda82
d6f50a9aa40272d66d17a4561f4252e70a80e5aa
/net_test.py
fe0b7f2c428fd3de852dc00ba4bf90e416575b1a
[]
no_license
ManUtdMoon/Gym-Carla
96f848e9c9d86d2888a77b67d16a1836c06b5621
cb2e69c825af5bfb93da153d2c5f2933739f92b3
refs/heads/master
2022-07-05T13:26:58.447608
2020-04-06T07:32:31
2020-04-06T07:32:31
243,408,588
2
0
null
null
null
null
UTF-8
Python
false
false
3,578
py
net_test.py
#!/usr/bin/env python # Copyright (c) 2019: Jianyu Chen (jianyuchen@berkeley.edu). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import gym import gym_carla import carla import cv2 import time from Model import PolicyNet, QNet, Args import torc...
fcbe92aa6e90aea3bf3af5ceb5c094fb46b0f30c
a95b6ef888f4e3c66079fb88de748ad899e2da17
/firmware/recorder/client.py
5703f615243ecf10b1d6debbfbe707a50c7db549
[ "MIT", "CC-BY-SA-4.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
onolab-tmu/blinky
1ffae87b3e9d67ceeeddc1f04899e1afb50eb942
36392bcb6ddef1d7dbc01760ead0d5a0247e8f81
refs/heads/master
2022-05-02T08:51:50.808674
2020-02-18T06:19:56
2020-02-18T06:19:56
142,418,498
7
5
MIT
2021-06-08T06:33:12
2018-07-26T09:21:55
C++
UTF-8
Python
false
false
3,300
py
client.py
# -*- coding:utf-8 -*- from __future__ import print_function from argparse import ArgumentParser from socket import SO_REUSEADDR, SOCK_STREAM, error, socket, SOL_SOCKET, AF_INET import os, errno, time, sys, traceback, wave, struct parser = ArgumentParser(description="Client for Blinky recorder") parser.add_argument( ...
4b4e0536e50a7a7e9474162c4afbb8fada1523c8
c5cc6c81105786441ddfcadc00e20bd1c0774850
/dnn_template/SimpleTrainMAX.py
06b090eb303d46758f61c2c469c05d73602c2691
[]
no_license
mewixz/Particle
8a9b47a33fc830782145ec8029bfd2434aa13512
e6dce7b12830d4864c231a55e0f9ad95ea171af9
refs/heads/master
2022-10-31T13:46:21.944113
2022-10-15T19:26:43
2022-10-15T19:26:43
119,643,303
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
SimpleTrainMAX.py
from TrainClassifiers import main import sys params = {"input_path" : "/beegfs/desy/user/kasieczg/v0/", "output_path" : "./", "inputs" : "constit_lola", "boost" : True, "model_name" : "test_lola_boost_0", ...
cbc1d0e4a68ba0a44273da5c5141b889efb72b16
9ea1a4233c424ab76e0cf62ce245555bd53f746f
/code/nn.py
6d42d43c88036a6203159d20981145a1d50d9c79
[]
no_license
mshagirov/cs5242
10f1cff19b5785c1af0f46e91a0128ea7a4262a1
5b3f68df48165a369b480f61ebd36934966c3bca
refs/heads/main
2023-01-08T20:21:10.968743
2020-11-18T06:03:36
2020-11-18T06:03:36
305,249,239
0
0
null
null
null
null
UTF-8
Python
false
false
8,483
py
nn.py
# useful functions for model training and saving, etc. __all__ = ['train_model', 'predict_check', 'predict_test'] import time import copy import torch from os import path import glob from skimage.io import imread def train_model(model, optimizer, data_loaders, num_epoc...
a8e475028e18abfab754dd125ae44a353223ba90
245a3f8cea6f232bf3142706c11188b51eb21774
/examples/cnn/models/RNN.py
a767952f3bdd089ce040017d8518f5585d13ccc0
[ "Apache-2.0" ]
permissive
initzhang/Hetu
5bfcb07e62962fbc83def14148f8367fab02625a
447111a358e4dc6df5db9c216bdb3590fff05f84
refs/heads/main
2023-06-20T18:37:21.760083
2021-07-27T04:37:48
2021-07-27T04:37:48
389,848,768
0
0
Apache-2.0
2021-07-27T04:32:57
2021-07-27T04:32:57
null
UTF-8
Python
false
false
1,871
py
RNN.py
import hetu as ht from hetu import init import numpy as np def rnn(x, y_): ''' RNN model, for MNIST dataset. Parameters: x: Variable(hetu.gpu_ops.Node.Node), shape (N, dims) y_: Variable(hetu.gpu_ops.Node.Node), shape (N, num_classes) Return: loss: Variable(hetu.gpu_ops.Node.N...
f6e58a291fb94cdcb4b6397ac135f2b620e6c570
69aae40fbe697dc010b57f9ddcea300da3509824
/p.154.py
474d738fe753c5f635c85f175b87ee121e74d2a9
[]
no_license
eunseo5355/python_school
ad34336d37490169c4ff2a760f88e01697c9f083
695e070e915f4b312691cfb4ec12c26531b0b2ce
refs/heads/master
2022-03-24T00:28:58.069406
2019-11-27T15:55:09
2019-11-27T15:55:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
p.154.py
""" for 문 이용하여 팩토리얼 계산하기 """ num = int(input()) sum = 1 for i in range(1, num+1): sum *= i print(sum) print("----------------") j = 1 sum2 = 1 a = num while j <= num: sum2 *= a j += 1 a -= 1 print(sum2)
1f5b2c891dd0670f13f150aa60e2abc44ec7ef5d
1f12fb1596b69be5b0d41610c2471f0ce1225fdd
/deployer/client.py
ab537cb41ac22945d88e1c964f47501d823832b7
[]
no_license
aemaet/arccn
ff60a8f642dce55816ff53fcf8804f61f3caf6af
f2f7fecdf143db22d5c62e66f884fd5b52a8defc
refs/heads/master
2021-01-17T17:03:34.792728
2016-12-18T18:07:33
2016-12-18T18:07:33
62,617,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
client.py
import socket, pickle, time, threading import sys import subprocess from cmd import Cmd ''' def runthread(start,cmd): print "started" while cmd: tmp = int(time.time() - start) print tmp, cmd[0].time if int(time.time() - start) >= cmd[0].time: cmd[0].run() cmd.pop(0) continue time.sleep(1) ''' def run...
c440b4646e897033b8a17bcaf3ea856613bea4a4
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Geometry/HcalEventSetup/python/HcalTopology_cfi.py
56054509b5c1bd553ecd4183209ed04b6f32c4cf
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
375
py
HcalTopology_cfi.py
import FWCore.ParameterSet.Config as cms import Geometry.HcalEventSetup.hcalTopologyIdeal_cfi hcalTopologyIdeal = Geometry.HcalEventSetup.hcalTopologyIdeal_cfi.hcalTopologyIdeal.clone() import Geometry.HcalEventSetup.hcalTopologyConstants_cfi as hcalTopologyConstants_cfi hcalTopologyIdeal.hcalTopologyConstants = cms...
44fd224d8be4df82b5648d0b2f636089ec7312a3
df1fb8a82fce607f747f7dd92da456e0694fbca8
/binary_search.py
ffb431798ee3a538ac1793d8a14c42395ddab1d3
[]
no_license
anuar-a/DSA-Algorithmic-toolbox
2e2f1500bf5bee4d835473582fa83d977585ccb9
59b49edfbb37f559032bc539167f3ef13bff2f9f
refs/heads/master
2023-04-02T14:56:00.173654
2021-03-28T10:52:28
2021-03-28T10:52:28
352,303,835
0
0
null
null
null
null
UTF-8
Python
false
false
651
py
binary_search.py
# Uses python3 import sys def binary_search(a, left, right, x): if right < left : return -1 mid = round((right + left)/2) if x == a[mid-1]: return mid - 1 else : if x < a[mid-1]: return binary_search(a, left, mid - 1, x) else: return binary_search...
db249b7373ffa16c9659e623cdcf05660ec1322d
895218def1099e77714ceeba5c69ca03a7c64780
/manipulacao_arquivos.py
5bd7ec1a725f79199b8d08e385da6889f646faa0
[]
no_license
alexpinheiropf/course-python
0d4272fc396fd7ff57cd4d2a0a84a90fabbb337d
1128954ec417401ed1ec6ba45bf7bb03c57c5bca
refs/heads/master
2023-03-13T04:04:45.945799
2021-03-02T18:07:21
2021-03-02T18:07:21
275,246,021
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
manipulacao_arquivos.py
# Ler um arquivo arquivo = open("arquivo.txt") texto_completo = arquivo.read() # Funcao para abrir arquivos print(texto_completo) # Criar um arquivo w = open("arquivo2.txt", "w") # Criar arquivo w.write("Esse eh o meu arquivo") # Colocar texto dentro do arquivo w.close() # Eh importante fechar um arquivo depois d...
d05a21b35825822d410f78af6b7af9998675e6c9
9afc0f18f9059b0493a4ca32ed962ddbc8f584c6
/portfolioRest/models.py
1cbdb7495b874622cfaa56d803e82de001bea97e
[]
no_license
berkgaffaroglu/Portfolio
6464f00c364b8511a82b0b05145d937d52d6175f
ba6a7060426e907350b29f3d7a2e7a3e720fc641
refs/heads/master
2023-04-14T06:20:49.130487
2021-05-02T10:54:13
2021-05-02T10:54:13
291,141,512
1
0
null
null
null
null
UTF-8
Python
false
false
3,275
py
models.py
from django.db import models from django.utils.text import slugify class Project(models.Model): title = models.CharField(max_length=255) slug = models.SlugField(unique=True, max_length=255, blank=True, null=True) image = models.ImageField(blank=True, upload_to='images/') description = models.TextField(...
d6561bfc99721cd864195a426d59584a82f7b1a7
7ea54d963967abcb691ec52a85b3db60fa3c3e19
/Module_Use.py
8af7d5e943ef41533d36b04434fecf6349709db3
[]
no_license
Jasonmes/Single_link_list
63bca59ee15afa8c605c0bb1717b28d7a846e48f
610053c213a357a8f9969fcf39299a424412474c
refs/heads/master
2020-03-21T10:53:12.793449
2018-06-24T11:28:13
2018-06-24T11:28:13
138,476,277
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
Module_Use.py
# def Modele(): # print("欢迎进入模块的世界") zhang = ["张三", 18, "man"] lisi = ["李四", 28, "female"] laowu = ["老五", 34, "gay"] feiwu = ["废物", 189, "freak"] # 全部名片 Lu = [zhang, lisi, laowu, feiwu] # 新建名片 def Creat_NewName(): New_One = [] newname = input("新的名字:") New_One.append(newname) newage = int(input("年...
ca201d6479361589d64caad0476b77bc20a0c4a6
f026413d86042ed892b7de8757f3e86495681aeb
/indexer/db_manager.py
24705850f9026942602315d6f91aa64d071b6329
[]
no_license
ribicnejc/data_processing_and_indexing
238842f80f263daac255ba5ac2a76a950d90742f
805a44765e3b66bba8befe6299b3bb79c2f09fb1
refs/heads/master
2020-05-20T21:16:46.058765
2019-05-28T20:23:45
2019-05-28T20:23:45
185,758,696
0
0
null
null
null
null
UTF-8
Python
false
false
1,997
py
db_manager.py
import sqlite3 class DBManager: def __init__(self): self.conn = conn = sqlite3.connect('inverted-index.db') self.cur = conn.cursor() def create_the_database(self): self.cur.execute(''' DROP TABLE IF EXISTS IndexWord; ''') self.cur.execute(''' ...
d485fcee9f9b5c45573c01cf33727538ccbbac8f
e93643b8d6c6ced8029f9b4f1903c21a71ec670a
/exercices/007/solution.py
5f5b8d96d56a424ebafd854b076c25c984354f61
[]
no_license
AxelSeg/course-material
90593087d320da8ad2948e90300e7028a78769aa
4690d1321f7068d4f10ab4867a97f0369e4e52de
refs/heads/master
2021-01-14T14:18:56.975990
2014-09-26T08:28:30
2014-09-26T08:28:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
solution.py
# -*- coding: utf-8 -*- """ Created on Mon Sep 22 11:36:01 2014 @author: Axel """ a = "Hello world !" for i in range (0, len(a)): print(a[i])
56f066f206595773e2214c75487ae071f0179dec
3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be
/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/gkehub/v1alpha1/gkehub_v1alpha1_messages.py
09972f8b5186dedb33122630b1012a3071c981e7
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
twistedpair/google-cloud-sdk
37f04872cf1ab9c9ce5ec692d2201a93679827e3
1f9b424c40a87b46656fc9f5e2e9c81895c7e614
refs/heads/master
2023-08-18T18:42:59.622485
2023-08-15T00:00:00
2023-08-15T12:14:05
116,506,777
58
24
null
2022-02-14T22:01:53
2018-01-06T18:40:35
Python
UTF-8
Python
false
false
173,337
py
gkehub_v1alpha1_messages.py
"""Generated message classes for gkehub version v1alpha1. """ # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding from apitools.base.py import extra_types packa...
46d67e6b6df5962f157841226df7b4ac282e6b11
9adc810b07f7172a7d0341f0b38088b4f5829cf4
/rlkit/torch/vae/skew/common.py
b133910c1713203117e455a44257efd79c04dc2a
[ "MIT" ]
permissive
Asap7772/railrl_evalsawyer
7ee9358b5277b9ddf2468f0c6d28beb92a5a0879
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
refs/heads/main
2023-05-29T10:00:50.126508
2021-06-18T03:08:12
2021-06-18T03:08:12
375,810,557
1
0
null
null
null
null
UTF-8
Python
false
false
2,857
py
common.py
import math import numpy as np from matplotlib import pyplot as plt from rlkit.visualization import visualization_util as vu class Dynamics(object): def __init__(self, projection, noise): self.projection = projection self.noise = noise def __call__(self, samples): new_samples = sampl...
565aa42fc5fc3f243f52eae580bd7006f4e82b20
25c5ca719eb689c69da1db5e1bb25eaadd74ec49
/train_zetafold.py
82997da3e3cb594b767780569ea59b0401a37eb8
[ "MIT" ]
permissive
benrogboe/zetafold
b847137e94737f4d34a5388b6dd35d3fa4e84548
3b8e34ef9b826088010d74c4ef32f9fc6f8f41ca
refs/heads/master
2020-04-13T04:02:01.295552
2018-12-23T19:31:25
2018-12-23T19:31:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,958
py
train_zetafold.py
#!/usr/bin/python from __future__ import print_function from zetafold.parameters import get_params from zetafold.data.training_examples import * from zetafold.training import * from scipy.optimize import minimize import numpy as np from multiprocessing import Pool import math import argparse import __builtin__ parser ...
19ad5526bb7e3614580f9795eae90addb1db3ff0
48d8c2ac3f3cdc89ecb9779c53bbd2b67b0ad62f
/medsysApp/vacunas/admin.py
dbe54403a4b24cf479456a6a5c4198be64efc50e
[]
no_license
raultedesco/medsys_pediatria
fb45a2b6e2f69cc76a94098485f44715d21b73d9
d249276ad4f01a0e241ef8d9be4c91d6fec88dc9
refs/heads/master
2021-02-26T00:14:57.085963
2020-11-02T16:32:35
2020-11-02T16:32:35
245,479,447
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
admin.py
from django.contrib import admin from .models import vacuna_periodo,vacuna_tipo,vacuna # Register your models here. admin.site.register(vacuna_periodo) admin.site.register(vacuna_tipo) admin.site.register(vacuna)
acfa541241c89ca59ddb1a844a3dfa61b68381f9
9a9f16ebba1a915fee815065c6607ba4414cb248
/euler/level1/problem27.py
ca1d77109017623f07687708dc9ab9839cdaffa6
[]
no_license
cmeury/playground
59822ca581b856ae7e90fe6abc9bc613e27b2db8
c6679080a8900aa3ac62256dd9093a1945c38629
refs/heads/master
2016-09-05T22:44:34.879431
2014-05-19T19:52:08
2014-05-19T19:52:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
problem27.py
class MaxNumPrime: def __init__(self): self.prime_memo = {} self.consec_memo = {} def check_prime(self, x): if x in self.prime_memo: result = self.prime_memo[x] else: result = True for i in range(2,x,1): if x % i == 0: ...
e0a99ffc57135be6d345b97c8121a6b7657ed162
8e2f0c94adb0b1e0b250bf526ab9d9994d489803
/day6.py
d3a050b00a517864ffaac329e3081c21ac37129b
[]
no_license
TM2500/adventofcode2020
6710d8d0f89293e7a084c4c315953ff65e7f4ae6
a474529774c864c0e4672b5bae1f8ae1f800daaa
refs/heads/main
2023-02-02T06:18:20.919062
2020-12-19T09:23:41
2020-12-19T09:24:13
318,193,739
0
0
null
null
null
null
UTF-8
Python
false
false
1,303
py
day6.py
#!/usr/bin/python3 import string def group_answers_any(group): seen = [] for p in group: for a in p: if a not in seen: seen.append(a) return len(seen) def group_answers_every(group): common = {} for p in group: for a in p: if a in common: ...
6d8aab7ebcfc9b3ccdd41557fe0ab62469ffd189
2ba800657b4efd48e7f69a51e7edb41d58e0852a
/map_maker/scripts/nodevisualizer.py
61d0c61f9d3614fcdf9f81d04c01c2437e66e7af
[]
no_license
braraki/flyingcar_vizplan
04f198cf88fb0ca08ca351522a0c7e315b030518
379396000f362935b0cbe22420516d2ab8db9309
refs/heads/master
2020-04-16T10:53:21.936852
2017-07-05T19:25:15
2017-07-05T19:25:15
65,336,599
0
0
null
null
null
null
UTF-8
Python
false
false
23,249
py
nodevisualizer.py
#!/usr/bin/env python import rospy from map_maker.srv import * from map_maker.msg import * from planner.srv import * from planner.msg import * from interactive_markers.interactive_marker_server import * from visualization_msgs.msg import * from geometry_msgs.msg import Point import math import random import tf im...
7420e5fe99e9f3205e7bad6bedbb5adb8a60ac83
ae4bdf898597b80307e0e358ed0ef380177de5c4
/pgm42.py
9ef14eceaa1df58da19edbb2f9aaac76915ace03
[]
no_license
abdulazees15/ck4
1c3fcd78bf8fc4cf30fa816921e2d4e6725759ad
34a4cb5ee8784e57a8e3723b15fc37cd26fa59b4
refs/heads/master
2020-05-29T14:42:15.966125
2019-05-29T10:33:49
2019-05-29T10:33:49
189,199,701
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
pgm42.py
a,b=input().split() if(a>l): print(l) elif(a>l): print(k) else: print(l)
810f6b784b996d5f0a2f034149753afb1c40bebf
ce62979b45d01aa90eccd760f9ec30621a1793d9
/number_range_500_1000_divided_by_3_and_6.py
7b23fe1348f81572f71faa419362405d0f1bdd2c
[]
no_license
douangtavanh/python-homework
851d71ee64f452b71000ae08ee3021cac0c6e332
82a0cbb8a459cbf6a95587af9db4cf341e2f24ef
refs/heads/master
2021-09-11T01:13:17.143762
2018-04-05T13:05:38
2018-04-05T13:05:38
117,407,345
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
number_range_500_1000_divided_by_3_and_6.py
number = 499 numberdivided3 = 0 numberdivided6 = 0 print("Number divided by 3:\n") while (number < 1000): number += 1 if ((number % 3) == 0): numberdivided3 += 1 print(number, "\n") number = 499 print("Number divided by 6:\n") while (number < 1000): number += 1 if ((number % 6) == 0): ...
a17d55719b6b8abb3e3d2e31eec25a642690016b
1858a41a4ad4541932ecfed8812c94ca7da35657
/placelist/urls.py
bcce6f8cea32b05516d237b77febfc6335d9f9f7
[]
no_license
NearGreenPhilly/placelister
3b299108894b8934a826d6a70132331e17b985ad
e05867246e80e3be4a4d354030d7770141440dc3
refs/heads/master
2021-01-22T13:30:32.884994
2016-11-22T03:54:21
2016-11-22T03:54:21
100,657,547
0
0
null
2017-08-18T00:48:08
2017-08-18T00:48:08
null
UTF-8
Python
false
false
369
py
urls.py
from django.conf.urls import include, url from django.contrib import admin from listr import views from listr.api import ListResource list_resource = ListResource() urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^listr/', include('listr.urls')), url(r'^api/', include(list_resource.urls)), ...
b68e76427357580b05154e22da1628985a73464f
695e7bc6598aea427cd386f50ebb4f549415194f
/songline/test_songline.py
fd3e243ffef7dbb706171b2e89e1031b2ef6a25a
[]
no_license
khunhrang/Python_Self_Learning
3e42c2bf81aaddb1826411434759760a270056c9
df569abbd13f2e32615f018126ebda92ec36917a
refs/heads/master
2022-10-31T12:54:56.667421
2020-06-18T01:13:10
2020-06-18T01:13:10
270,151,939
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
test_songline.py
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> import songline >>> token = 'PQQKK4EptkiKM9QAl1YHcdaKXi4rShQIxlBj7Ogznpa' >>> messenger = songline.Sendline(token) >>> messenger.sendtext('สวัสดีจร้...
ba98ad857d051e7118151fd80e7cccdbc0be93c1
3a7ef818a37b88d7165d2ecd364584f30c9d89dd
/src/api.py
a5deb4be9144eb8e6b817db95fbe721d40d4e6e8
[]
no_license
David-Fde/Docker-Api-Project
31eedf771bb65a1a259dcde775369507879003fc
e50ffdc0cfc70dda68d78f259b3543e3e481e542
refs/heads/master
2023-08-07T19:02:10.315268
2019-12-10T17:29:07
2019-12-10T17:29:07
224,880,556
0
0
null
2023-07-22T23:00:32
2019-11-29T15:39:36
Jupyter Notebook
UTF-8
Python
false
false
1,684
py
api.py
from bottle import route, run, get, post, request import random from bson.json_util import dumps from connections import db, coll import json import datetime import functions as fnc @get("/") def get_all(): return dumps(coll.find()) @get("/<user>") def get_user(user): return dumps(coll.find({"userName":user}...
2615c45e00a7255653796478e4025ed784da54d9
4a6e922798fda652ff3497c948c98042e179a5a0
/etude_vo/stock_vo/generate_map_dept.py
97a605fa30285ef4d302d02d150de614c5db4142
[]
no_license
arnaudmalinsky/Rapport_apprentissage
adfd3f6cab0570dc04ed841767229f01eab94de3
e5e130ea8cafea3e0be50dd0fe25cb48a1ca29a6
refs/heads/main
2023-08-14T17:22:34.339423
2021-09-23T12:50:38
2021-09-23T12:50:38
409,574,134
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
generate_map_dept.py
import pandas as pd from cmaps.layers import PlainLayer, Choropleth from cmaps.map import Map from cmaps.tools import Cut, CustomBinsColor from cmaps.legends import Legend PROJECT_DATA_FOLDER_PATH = "/home/container/notebooks/bases/missions-cways/webinauto_stock_vo/" FINAL_OUTPUT_FILE_PATH = ( PROJECT_DATA_FOLDER...
2fe48bf96e8bf5610aa8f5d577b5688b2589a491
655a74010df149ff54a865c9ed1876080ebc01ce
/izpit_novi_01/nal_01.py
5acfbe381266e8bc439c9141556f17c4296189da
[]
no_license
Lasni/python_exams
7d0cd0f42ff9435d9cb38d2284e814b3853c7fa4
36d3c62ed1a895336db2b7751c1c798c32d7f090
refs/heads/master
2020-07-26T06:33:39.678755
2016-08-29T16:10:11
2016-08-29T16:10:11
66,780,966
1
0
null
null
null
null
UTF-8
Python
false
false
573
py
nal_01.py
import math def average(lst): assert len(lst) > 0 return float(sum(lst)) / len(lst) def pearson_r(lst1, lst2): assert len(lst1) == len(lst2) n = len(lst1) assert n > 0 avg_x = average(lst1) avg_y = average(lst2) diff_prod = 0 xdiff2 = 0 ydiff2 = 0 for i in range(n): ...
b29a0a6db12cc582acb6c1dc74bc95ea5e9d49dd
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/python-flask/generated/openapi_server/models/com_day_cq_replication_impl_transport_binary_less_transport_handler_properties.py
0aaad1fce915bc1c120a378cb24d7c68c321f383
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422092
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
Python
false
false
4,149
py
com_day_cq_replication_impl_transport_binary_less_transport_handler_properties.py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server.models.config_node_property_array import ConfigNodePropertyArray # noqa: F401,E501 from openapi...
3a1e0524a69b2fcc1ffc113376f3b819674810fd
3b1c70b067fa4aa7f48548df8be0b4791fb40b41
/utils/np_utils.py
35fbf5b2a931a38bdcee1f75f5e1323a7afb7490
[]
no_license
YuboLuo/budgetrnn_backup
e3096bb94800c9d7643b05b1a7ea024751f6c747
30efee9d00bead7eec6e9a20ca9fc6472f887b2d
refs/heads/master
2023-07-31T10:24:03.691351
2021-09-24T16:36:15
2021-09-24T16:36:15
377,605,020
0
0
null
null
null
null
UTF-8
Python
false
false
2,918
py
np_utils.py
import numpy as np from typing import List, Union, Any, Dict, Optional, Tuple from collections import namedtuple from utils.constants import SMALL_NUMBER, BIG_NUMBER def index_of(arr: np.ndarray, value: Union[int, float]) -> int: assert len(arr.shape) == 1, 'Array must be 1 dimensional' idx = -1 for i i...
af0154780ce75302dec1512c7b648c9105354161
880c096b101bdccd6e7da38136ff470a9d5f3057
/altair/utils/save.py
797210b3f01f2df271f04b09f0919e8d884cdce5
[ "BSD-3-Clause" ]
permissive
altair-viz/altair
1e9f4e8d340810af54f3b029890f94453b8d29fd
ec13a671d53419f371b629d449f719240d1f1756
refs/heads/main
2023-08-31T13:30:05.690723
2023-08-30T13:58:07
2023-08-30T13:58:07
42,757,577
7,992
813
BSD-3-Clause
2023-08-30T11:16:59
2015-09-19T03:14:04
Python
UTF-8
Python
false
false
7,100
py
save.py
import json import pathlib import warnings from .mimebundle import spec_to_mimebundle from ..vegalite.v5.data import data_transformers from altair.utils._vegafusion_data import using_vegafusion def write_file_or_filename(fp, content, mode="w", encoding=None): """Write content to fp, whether fp is a string, a pat...
ea8e4b2b63e673fa731473579c893231065e5250
1223197b7a122a9e0d5e8620c14742ca48696ed3
/jewelry_store/store/migrations/0017_auto_20190312_2048.py
a965f007de2a8fa4924531ca318bc2be46807af3
[]
no_license
Masergik/djangolearning
72d61dfc91956468c3b1d38f0f09f9e710b71eb7
e0b5eb520130d5866070144f5b94352cd3bdd2e5
refs/heads/master
2020-04-17T15:48:58.939311
2019-03-15T17:04:50
2019-03-15T17:04:50
166,714,514
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
0017_auto_20190312_2048.py
# Generated by Django 2.1.5 on 2019-03-12 20:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('store', '0016_auto_20190312_2045'), ] operations = [ migrations.AlterModelOptions( name='productimage', options={'verbose_na...
0d13c5dd912ae53d440ee7016589fcb5cdff6fb5
ff9b46bb1659a09ff51d6324ebd5d69f0f83d870
/iris_from_scikit/pipeline/iris_pipeline.py
d8a889a4955fa0ace544ab4ea128c64f4e9a1a10
[]
no_license
tuyet-pham/Machine-Learning
2d3ef371275bac8b45d05ec3c8bdccf2aa4bee3d
bd5886dd8e505d40b06e1ee435ee8a428315cbc0
refs/heads/main
2023-01-18T20:24:19.557763
2020-12-03T15:24:43
2020-12-03T15:24:43
304,299,176
0
0
null
null
null
null
UTF-8
Python
false
false
1,748
py
iris_pipeline.py
from sklearn import datasets from sklearn.model_selection import train_test_split import pydot from io import StringIO # from sklearn.cross_validation import train_test_split iris = datasets.load_iris() X = iris.data y = iris.target """ We are using train_test_split to make our lives of splitting data easier :'...
5b283b6b7051380b5a8fe7433d1edd3350cd4723
e6654e1b15e720f85746b0fb364e369784050446
/lib/train/trainers/semantic_segm.py
ce93e450cb56798f476f2e3e0745c7d6fe2ddd88
[ "Apache-2.0" ]
permissive
f121606/OrigNet
d10993fdf5a95ff9bcaa0ed9eebab56dfbe04539
3684b1c53fc401b4d6b6c129d46ddb76a29294df
refs/heads/main
2023-08-22T13:22:47.692979
2021-09-24T04:11:58
2021-09-24T04:11:58
409,793,448
0
0
Apache-2.0
2021-09-24T01:24:05
2021-09-24T01:24:03
null
UTF-8
Python
false
false
1,437
py
semantic_segm.py
import torch import torch.nn as nn from yacs.config import CfgNode from lib.train.metricses import make_metrics class NetworkWrapper(nn.Module): """ ネットワークからの出力と教師データに基づいて損失を計算する機能をラップする 画像を入力,出力をそのクラスラベルとする画像分類に特化したモデルを作成する """ def __init__(self, cfg: CfgNode, network): super(NetworkWra...
686483e0bb6934bd5c8b4a2bc99e19b2f64d7e8c
0b7bf7712c3cf69bb1f8b0d9bb2c44f28a8fdda7
/utils/codex.py
ce8d393644122fd372a5444fce698db355e8c627
[]
no_license
singh-sumit/Final-Contact-Book
6a63ff15bd0758d59684b26dbc7b70fa4d74cdcf
560dd6e5beaf7b30f16adfbc25b9d8ec0252c1d0
refs/heads/master
2023-08-13T00:54:24.147693
2021-09-23T10:44:15
2021-09-23T10:44:15
409,956,860
0
0
null
null
null
null
UTF-8
Python
false
false
17,148
py
codex.py
[{'country': 'Afghanistan', 'country_repr': 'AF', 'area_code': ['93']}, {'country': 'Albania', 'country_repr': 'AL', 'area_code': ['355']}, {'country': 'Algeria', 'country_repr': 'DZ', 'area_code': ['213']}, {'country': 'American Samoa', 'country_repr': 'AS', 'area_code': ['1-684']}, {'country': 'Andorra', 'country...
87e838500da7ab0ef79e7e69e3d3c3bd69a57afc
d6c9e11410586cfbc822afa49e9b35e9a291165a
/custom_invoices/__init__.py
58e6ddf7e898dab4567f4ed2647969a01e8ce0b7
[]
no_license
davidandorf/alfateh
81cf8067dd3ae4972d7022fbd1a6ea4830ea1a6a
b08c2ce44f1ae0d89bd7d5f0bdecd5549e1e09e3
refs/heads/master
2016-09-06T11:50:58.841111
2015-08-13T11:21:26
2015-08-13T11:21:26
34,796,323
0
1
null
null
null
null
UTF-8
Python
false
false
28
py
__init__.py
from . import custom_invoice