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
6bfe87154662e3fda25870253634c1baaba568e7
381517f2b7a4310c030e352540d030e8bac00d4e
/ExportUnsafe.py
bc53fece1bec9d8618ab4234018fe5e0466623d5
[]
no_license
d0vine/ghidra_scripts
6eacda2a78ec27579cde112b5dfd512bf8f71f98
46fc1412d94b3574577deba56f7476391b8bec3b
refs/heads/master
2020-06-28T04:29:28.600068
2019-08-11T20:52:09
2019-08-11T20:52:09
200,143,067
1
0
null
null
null
null
UTF-8
Python
false
false
2,185
py
ExportUnsafe.py
#Export unsafe function references #@author: Krzysztof '_0kami' Marciniak (F-Secure) #@category Functions import csv import re MAX_ARGS = 5 unsafe = { # arg count "memcpy": 3, "_memcpy": 3, "memmove": 3, "_memmove": 3, "RtlCopyMemory": 3, "RtlMoveMemory": 3, "RtlCopyBytes": 3, "RtlZeroMemory": ...
efe592ec793951ea98aafa8e6f42502836416738
d62e3fa71f03d286e6f08f6eeab7f6d7d042361b
/mysite/settings/__init__.py
5fcce55cd2e3dd2e84775766ac2acc80bb8fdc60
[]
no_license
SingularityUniversity/impact-api
af5c5c02c3ce440fda8996f61fe4d9438c2e9bab
981739bc70f4d4940751d946ff2989c6cfb8da94
refs/heads/master
2022-12-10T00:17:45.711543
2018-01-19T23:29:53
2018-01-19T23:29:53
118,178,703
0
0
null
2021-06-10T18:02:31
2018-01-19T21:08:48
Python
UTF-8
Python
false
false
106
py
__init__.py
from mysite.settings.local import * # SECURITY WARNING: keep the secret key used in production secret!
85db0c07668416d2ddffa5ab9879ebfa1c8aecad
dd4622390bb7122db37a889e647f28004a265ccd
/1806101073刘玉江/practice/Day0319/leetcode1.py
b685b95ab5f2b0c31f969c87469b3c5a18b11a43
[]
no_license
gschen/where2go-python-test
c8adaa095aa8a095401f98c7b3f8f17c72d0532d
eb9e6011b8d33fa45a6b1ef853affd01a296db21
refs/heads/master
2022-12-13T19:45:09.874691
2020-10-15T13:12:52
2020-10-15T13:12:52
211,591,156
4
1
null
2022-12-05T07:46:12
2019-09-29T02:35:00
Python
UTF-8
Python
false
false
430
py
leetcode1.py
def longestPalindrome(s): import collections dic=collections.Counter(s) res = 0 res1 = 0 for i in dic: if dic[i] % 2 == 0: res += dic[i] elif dic[i] % 2 == 1 and dic[i] != 1: res = res + dic[i] res -= 1 res1 = res1 + 1 else: ...
e8767a6387d52352b97ff89ae7e1041172a9cd0d
8bef52bf4a7fb9f38d83f6ebcab6a63c83bcaf4e
/api/models.py
cdeb42903bd3a0f35c646d7c17736d4fce78a377
[]
no_license
huyhoang1996vn/rest
bb0a5839e67793e3c01bdc9305342069617e20af
3d7fa0d162a42f42669c8fc924137343d3a9803d
refs/heads/master
2021-09-17T18:20:31.227843
2018-07-04T08:08:28
2018-07-04T08:08:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
models.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models # Create your models here. class User(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=100, blank=True, default='') email = models.CharField(max_length=100, blank=True, def...
6e89ec0b5d05ba79c9c4c05dcf13a2feca6cd947
e16c9c7ddc163fd09de178b2a0b95fe519547eae
/configure
8bb3a7fc74438fdc8d2392cca2af070eacce5480
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
nchaimov/taucmdr
77f3be02df2dd15aa7a5d72172e5b4558ea01f75
dfe560084e47dc6aa9932c2db3763648d91e1f5c
refs/heads/master
2021-04-15T10:24:17.560531
2017-06-01T17:05:09
2017-06-01T17:05:09
null
0
0
null
null
null
null
UTF-8
Python
true
false
10,711
configure
#!/usr/bin/env python # # Copyright (c) 2015, ParaTools, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # (1) Redistributions of source code must retain the above copyright notice, # thi...
f9f8a23a05b560b54de0fb43fca9df7e93f3442f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/2521.py
3c4b882808b5dec450fd59745718df598b52854b
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
2521.py
def isDone(pencakes): for p in pencakes: if p == '-': return False return True def pencake_sorting(pencakes, cnt): answer = 0 pencakes = list(pencakes) while not isDone(pencakes): for i in range(len(pencakes)): if pencakes[i] == '-': for j in range(cnt): if i+j >= len(pe...
5f497bd30fc383cd1b75ee6786df7a008547e1b9
577deef387c471f5149d4f7ada74446b44f152fa
/UsingANN.py
faec0f17285820cbcba9b033fb5fb40d74f7e01c
[]
no_license
AnveshGupta/Performance_Analysis_Of_ml_Methods
ad2f6362442f37d07d499788746ad46d7919686a
4485f6c3572e1c42eb1caca84b2f75f8d1a9f242
refs/heads/master
2022-04-25T14:56:09.497258
2020-05-05T06:28:17
2020-05-05T06:28:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,427
py
UsingANN.py
import numpy as np import pandas as pd data = pd.read_csv('Churn_Modelling.csv') x= data.iloc[:,3:13].values y = data.iloc[:,13].values from sklearn.preprocessing import LabelEncoder, OneHotEncoder le1 = LabelEncoder() x[:,1] = le1.fit_transform(x[:,1]) le2 = LabelEncoder() x[:,2]= le2.fit_transform(x[:,2]...
b6817af8749b34c69a04cd6f84db15e7cab50822
5c0f4e2e06b213d9f3e73a38ed2df9f8a80ce4fc
/chrony/exceptions.py
dc533b8dbdaf3791df13f3880d15d9fed922b1b9
[ "MIT" ]
permissive
optimdata/chrony
a93bdbb7b43c35884c6b691f0c9276737dcbaf90
e073f5683a395cd3732a2974f6509a7298dc4848
refs/heads/master
2021-01-17T12:13:53.410827
2016-04-04T12:52:30
2016-04-04T12:52:30
45,338,199
3
1
null
2015-11-03T15:24:32
2015-11-01T11:48:14
Python
UTF-8
Python
false
false
250
py
exceptions.py
# -*- coding: utf-8 -*- class BadLengthsError(ValueError): pass class OverlapError(ValueError): pass class NotSortedError(ValueError): pass class IntegrityError(ValueError): pass class HasTimezoneError(ValueError): pass
72e4657e4550fcaaeb5991af02772fda3b18d0dd
ea1bec234e26cf4c3b1b19f0e696fe5f03a69576
/ejemplo2.py
72b712eb8775ea88dc79a111585b9e892e770765
[]
no_license
ProgFuncionalReactivaoct19-feb20/clase03-jecueva1997
ac800e625dfc3ba82b54cf826536106005335de0
e49b90e7554196a08e96ff3387c7d06c2659a5a8
refs/heads/master
2020-08-15T09:24:52.129783
2019-10-15T16:17:45
2019-10-15T16:17:45
215,316,463
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
ejemplo2.py
""" append: acumulador autor: jecueva11 """ # datos datos = [1, 2, 10, 11, 12, 13] resultado = [] # utilizacion de un condicional for i in datos: if i%2==0: resultado.append(i) # imprecion del resultado print(resultado)
db217c3573bc6f7498e77326ce419800b502417b
c47eb503c8434b6c833278671409a7999fc7e1a2
/sonar_2.py
dd45d17a4d239ff5a5e8bb1ee6287246ae0d5540
[]
no_license
cferreir/sonar_pi
51fdcf5f5e8cd501dc254a5703cd308b42df186b
6247bc4a89be5b3e85cd4e6bb9aff9cbdd5facde
refs/heads/master
2020-04-08T12:52:30.545512
2018-12-05T23:02:01
2018-12-05T23:02:01
159,365,168
0
0
null
null
null
null
UTF-8
Python
false
false
5,975
py
sonar_2.py
#! /usr/bin/python # Written by Dan Mandle http://dan.mandle.me September 2012 # Enhanced by Carlos Ferreira Oct 26 2018 # License: GPL 2.0 import os from gps import * from time import * import time import threading import requests import json #Libraries import RPi.GPIO as GPIO #GPIO Mode (BOARD / BCM) GPIO.setmode...
14785a0deb6f279fe77a626636a20769970b2f2e
74649c1220c68ad0af79e420d572e3769fcd7a53
/mlprodict/onnxrt/ops_whole/session.py
4d2516ef75f50d1a96704dd1c64c20b1a5524a7c
[ "MIT" ]
permissive
sdpython/mlprodict
e62edcb428700cb2c4527e54e96431c1d2b36118
27d6da4ecdd76e18292f265fde61d19b66937a5c
refs/heads/master
2023-05-08T10:44:30.418658
2023-03-08T22:48:56
2023-03-08T22:48:56
112,469,804
60
13
MIT
2023-04-19T01:21:38
2017-11-29T11:57:10
Python
UTF-8
Python
false
false
5,954
py
session.py
# -*- encoding: utf-8 -*- """ @file @brief Shortcut to *ops_whole*. """ import json import numpy class OnnxWholeSession: """ Runs the prediction for a single :epkg:`ONNX`, it lets the runtime handle the graph logic as well. :param onnx_data: :epkg:`ONNX` model or data :param runtime: runtime to b...
3b3574d0cccda3c8d6afe24c9420f73950d61383
a722d5f6a65335bbe47abbaa0896f60fd604a7f8
/venv/lib/python2.7/site-packages/braintree/sub_merchant_account/sub_merchant_account.py
6cce1705d083fa7923b6c42d4587918fc31a3775
[]
no_license
ansario/campusthrift-og
0a654ca7bd18b3ab00833dffe38e1ef0606f3350
3e84746989f0e6a65fd5c61924d8e46fd769165d
refs/heads/master
2023-01-09T04:11:21.584882
2017-02-13T22:02:17
2017-02-13T22:02:17
59,326,745
0
0
null
2022-12-26T20:23:56
2016-05-20T21:11:57
Python
UTF-8
Python
false
false
1,172
py
sub_merchant_account.py
from braintree.configuration import Configuration from braintree.resource import Resource from braintree.sub_merchant_account import DirectorDetails, BusinessDetails, FundingDetails class SubMerchantAccount(Resource): class Status(object): Pending = "pending" def __init__(self, gateway, attributes): ...
23fe864377600643ad79e10b44a2e03d31547b56
bc20d0b30af8525faf91b47bbb9f7c6946c1f46d
/avlist.py
65b56ca70eb889ecee84cb03e4faea37e29be751
[]
no_license
olegphpgithub/PythonNSISUnit
7693df03750aed140b0248771df51455342b8c8b
6c7a89016ba73cb50e4907c523c0b8e8db8587b9
refs/heads/master
2023-05-13T05:17:28.294732
2023-05-02T09:24:42
2023-05-02T09:24:42
191,113,805
0
0
null
null
null
null
UTF-8
Python
false
false
2,078
py
avlist.py
import os from collections import OrderedDict import mysql.connector from datetime import datetime import openpyxl from openpyxl.utils import get_column_letter from openpyxl.styles import Alignment import openpyxl.styles from openpyxl.styles.borders import Border, Side from openpyxl import Workbook from local_setting...
e3fadf7f21afa3f92a84bcaa308d4d47a68d198e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02552/s094953888.py
5837dec7aeadb9e19cf4fba92c2f7b06f9cb0f4b
[]
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
41
py
s094953888.py
print(0) if int(input())==1 else print(1)
1dec94d3da7cfad303abd277400d60911b3cade3
80eb3a969dd07ce49b31350bcef1747c96653139
/mem2.py
0a171c8280be3417497b4eeed812a6a1b7f455b5
[]
no_license
MiguelEscajeda/Practicas
0f37471f322d0e60a3e9cc76bac3cb23a41002ec
65d94f4becd5954b474e3b8629e2d0095d58384c
refs/heads/main
2023-04-19T14:17:07.226335
2021-05-08T01:57:19
2021-05-08T01:57:19
364,335,952
0
0
null
2021-05-06T22:41:28
2021-05-04T17:32:29
Python
UTF-8
Python
false
false
6,106
py
mem2.py
# Miguel Angel Escajeda Anaya # A00829399 # 07/Mayo/2021 # En este curso tuve la oportunidad de ver mas a fondo la implementacion de la libreria freegames y turtle para # el desarrollo de videojuegos, ademas de permitirme retomar el lenguaje de python y ampliar mi conocimiento en # este, tambien fue una oportunida...
4102f8881b616fa562154154d353a7a6b45881ce
34ef54c04b369a6161c6f8a649868a47122a2d89
/env/Lib/site-packages/Bio/SwissProt/KeyWList.py
fa27d9aec3e779e88ddcb1ceebdda9fa3818cf80
[ "MIT" ]
permissive
abner-lucas/tp-cruzi-db
f70ad269c50a2db24debd1455daeddaa2ebd3923
595c5c46794ae08a1f19716636eac7430cededa1
refs/heads/bioinformatica
2023-05-18T23:23:23.458394
2021-06-14T02:13:17
2021-06-14T02:13:17
351,864,250
2
2
MIT
2021-06-13T19:52:18
2021-03-26T17:40:20
Python
UTF-8
Python
false
false
3,490
py
KeyWList.py
# Copyright 1999 by Jeffrey Chang. All rights reserved. # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """Code to parse the keywli...
846385486488d4990eeecad2452a4558f68fc617
bb70ce0464e40d6e928b250c36444a69c4b5e329
/cogs/errors.py
bad9a95e8afbff7956a975ea089f863267975e47
[]
no_license
pikaninja/dpy-template-bot
4ca1197ae41066609dcf26d7d1773e8a39e37dd2
499f5082ff11cdb2ea90a48d28d4bb9036e2dc0a
refs/heads/main
2023-04-22T18:39:53.337797
2021-05-14T16:45:47
2021-05-14T16:45:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,343
py
errors.py
import traceback import logging from typing import TYPE_CHECKING, Tuple from discord.ext.commands.errors import CommandError from utils import BaseCog, Codeblock, CustomBot import discord from discord.ext import commands class ErrorHandler(BaseCog): __slots__ = ("bot", "ignored_errors", "_logger") if TYPE_C...
7152224d867363af122486b6bae2057074df3ca9
d1de6039fb75620fa35015c77988a1163d7da9e8
/test.py
6a4bcdbc90e8c7992a6e2b287c086b370100c7fc
[]
no_license
karasikov/SoundSignals
95fdc254a6da52fd11bd93a444e71e3e9b7804dd
c7009c3201624bd24574a1513b61570d76645730
refs/heads/master
2021-01-10T09:40:44.471138
2016-08-19T19:58:05
2016-08-19T19:58:05
43,417,323
0
0
null
null
null
null
UTF-8
Python
false
false
1,122
py
test.py
#!usr/bin/env python #coding=utf-8 import pyaudio import wave import numpy as np import struct import re import sys def main(): try: wav_file = sys.argv[1] frames_shift = int(sys.argv[2]) except: print "Usage: python", sys.argv[0], "<wav_file> <frames_shift>" ex...
b795f3bd19819b45e246fd3bfe5880737c4c708d
9747ca5d4a11ceb0fab210d82a175fffd2701e2d
/dataCook2.py
f74da5f14fc7309967eca7eae71a2a1246df52c0
[]
no_license
miR172/coevoNet
93fa469943081377116428c515a89f921ee08eaa
1689fe63a5f33eaab9c843d0fbf0362a8182b3c5
refs/heads/master
2021-03-12T22:35:51.724275
2013-12-09T04:25:49
2013-12-09T04:25:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,921
py
dataCook2.py
import sys, math, linecache import fileProcess as fp import basicFunction as bf import blastSeq as bs log=bf.savelog("makeMultipleAlign") log.go() blastResultList = open("data/blast/list.txt").readlines() forwardlist = [] #forward direction of blast backwardlist = [] #backward direction of blast for i ...
40d8f46f77ba1a55e26cf4ccbc8f95e8d5a2e015
c61048be972f6ed520a967821e24959e434bbe09
/mysite/book/urls.py
b92e9abaf0f69a146da767ae44114bbe679d5bc4
[]
no_license
mebusw/ATDD-BookStore
265293af9b117466df263e1405ab0399355d554a
4f7f5f1b7293096e5c68243c99894a951e5c1824
refs/heads/master
2022-07-23T07:56:37.266438
2022-06-12T07:15:34
2022-06-12T07:15:34
9,558,427
3
1
null
null
null
null
UTF-8
Python
false
false
2,072
py
urls.py
from django.conf.urls import patterns, url from book import views urlpatterns = patterns('', # ex: /polls/ url(r'^$', views.index_view, name='index'), # ex: /polls/5/ url(r'^book/(?P<book_id>\d+)/$', views.detail_view, name='detail'), # ex: /polls/5/results/ # url(r'^(?P<book_id>\d+)/results/$'...
d22d340455ea50b9330c392a42591adcee992f6c
8d97d090a2205e758cb62814166023fc4c6d7579
/myapp/background_task_file.py
fd5e924478fd0467d559430131e3cd3c052c9247
[]
no_license
singlasahil221/todoList
fd20775255bc0c26dda22ea93380c81fe24b3980
76edc66ee5cfac427fd2b6b6e78d172fe01bb77a
refs/heads/master
2022-12-11T22:05:05.269249
2019-04-16T06:12:21
2019-04-16T06:12:21
179,281,931
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
background_task_file.py
from background_task import background from django.core.mail import send_mail from django.conf import settings from myapp.models import Todo from django.contrib.auth.models import User from myapp.serializers import UserSerializer, TodoSerializer, RegistrationSerializer @background(schedule=10) def task_notifier(): ...
a009c8e05fd72fc9ad01625e5aa5a54d5174288f
eea4283f6d4b28193cd0d95a377de514ccef9798
/firstu_rewards/firstu_rewards/doctype/customer/customer.py
0c38fe10db48766c6eab8cf30fd406c2f1bdfa39
[ "MIT" ]
permissive
fadilsiddique/firstu_rewards
5cb983f212f37559a4cb5fb66448a76d5a4f33f5
3df54cfc9f43ef6f4df97aa09320a096c534f446
refs/heads/master
2023-02-25T23:27:19.204908
2021-02-03T13:32:20
2021-02-03T13:32:20
335,540,428
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
customer.py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Tridz and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.core.doctype.user.user import generate_keys class Customer(Document): def before_save(sel...
fd598b6fccfe0bcb781331de0610b620de63eba7
1f0b1ccb732fdb1a3e9d7cef174dae9c0b545d94
/jcml/jc/urls.py
a68d998950defdcf40362200ff851cf6a06fa890
[]
no_license
learnerhouse/jcml
ebf2817c97929de6e7a6db405e42f7a4548e3d21
b2e799a25a886373c99ddd477c26b0e599c21a99
refs/heads/master
2020-12-02T08:07:13.431485
2017-08-15T02:54:05
2017-08-15T02:54:05
96,770,177
1
0
null
null
null
null
UTF-8
Python
false
false
516
py
urls.py
from django.conf.urls import url from django.contrib import admin import jc.views as views urlpatterns = [ url(r'^$', views.index), url(r'^article/(?P<article_id>[0-9]+)$', views.article_page,name='article_page'), url(r'^edited_page/(?P<edited_id>[0-9]+)$', views.edited_page,name='edited_page'), url(r'...
f81d49d84d0d8487344e83478e070127a9fdc10e
361de4c321644bc0b230197a85ebe37bc06d5a24
/RudePortScanner.py
3caeafce9fa0757e1c59438248e72ed7bf562644
[]
no_license
tiagovdaa/rudeportscanner
1d9fb81c9c9a70f6f995b7aca504e50b42cd151b
19fda4b0824217fd713faa1887120c66519832c6
refs/heads/master
2020-11-26T19:36:10.519617
2019-12-20T18:19:30
2019-12-20T18:19:30
229,187,561
0
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
RudePortScanner.py
# # RudePortScanner # # Autor: Tiago Almeida (tiagovdaa@gmail.com) # https://github.com/tiagovdaa/rudeportscanner.git # import socket import sys def connect_to_ip(ip, port): try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((ip, port)) return sock except Exce...
be4844f270bf1f15ef4d66465c286185d95a65df
8909bc189dd1f2aef230eb3632b798552c7b28a8
/item.py
0c62ba9592430a0109ec9e011751dd8b3664cd94
[]
no_license
robertwarnes/CP1404-Assignment-02-2016
c67116a805fdc88765f5251ab3cfdb4e1a495a52
953a1388bc79b0b4453189e63ecc5b0d22c3e09f
refs/heads/master
2021-01-18T21:24:43.849798
2016-06-03T06:40:16
2016-06-03T06:40:16
60,324,610
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
item.py
class Item(): def item(self): import csv FILENAME = "items.csv" in_file = open(FILENAME) self.items = csv.reader(in_file, delimiter = ',') self.names = [] self.descriptions = [] self.prices = [] self.states = [] ...
cbd149c88a77fc2e3c0e8dd325985336b0102c24
99665d4169713f7e9fac64a499e3405581739f22
/visualRef/migrations/0003_star.py
7ae60fe6a577f4d639b71f6835bf58ed5d3539c8
[]
no_license
yellowshower/VisRef
570c4b0afe22b32322f317f753ea1fc35a9551b8
10ffdfecb5313023918ba2520c36b02a1497b9ea
refs/heads/master
2021-09-15T04:41:24.013218
2018-05-26T10:49:10
2018-05-26T10:49:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
0003_star.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-11-15 13:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('visualRef', '0002_sum'), ] operations = [ migrations.CreateModel( ...
129677c82566ad589dd97c2e4c357e5e1835c6e3
d7d08f2b6562197601e2759720d9ac125616f0df
/poker/tests/test_models/test_model_round.py
25d4e76fd4fbb28d9537ec45323f9fd1656746d6
[]
no_license
hansoncyu/poker
b199ab9d64e12cde4b7b4ae34a94ffb5e3085e96
70f482890150f09e32364400840308214e64a2b2
refs/heads/master
2020-05-04T02:30:06.725862
2019-04-01T19:18:22
2019-04-01T19:18:22
178,927,551
1
0
null
null
null
null
UTF-8
Python
false
false
1,559
py
test_model_round.py
def test_award_winners_one(four_player_round): winner = four_player_round.players[0] four_player_round.pot = 100 before_award = winner.player_status.money winnings = four_player_round.award_winners([winner]) assert winner.player_status.money == before_award + 100 assert len(winnings) == 1 ...
47c09c7f290ff1c0277c197fd9cfe77f7af584a9
2f4f50ee09136a6f44f19f25b35c9a6221edc72f
/tengku_website/models/__init__.py
0a0d3fc7480274ecef8be4572fb1a87f2d6afe8d
[]
no_license
planetodooofficial/tengku
51d5bf836031fe00ecd84cdbaf8736cf005c3546
6c7f8f1b7373bda790cf51ecf7db8b977b8e63c5
refs/heads/master
2022-12-27T23:29:22.243953
2020-10-15T12:57:05
2020-10-15T12:57:05
298,167,963
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
__init__.py
from . import website_partner from . import res_city from . import type_org_multi_select
fba6ba611b73607b7ae9d3e43293e2b20ef53bf8
cdb86b65cb5a68564dc94bf299db91a472d1dacf
/meKMeans.py
9bcfee1bfbc94f5613e5f25d1cb8d80c9ffe1e31
[]
no_license
abcshia/python-kmeans
efed119f660d00cb0421e564bf941039b733a066
2f021feed917b115a7126919dd045d47d80eef3f
refs/heads/master
2020-08-29T18:58:28.997202
2019-10-28T20:32:52
2019-10-28T20:32:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,019
py
meKMeans.py
# # Get this current script file's directory: # import os,inspect # loc = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) # # Set working directory # os.chdir(loc) import numpy as np from scipy.spatial import distance import copy ## class class DataPoint: def __init__(sel...
61c6b55a21e93f799a025485563971783245df11
fea74d42c0f2d5cd04e83faf35f520c1bf39e55f
/Python files/Numerical_Solution/delta_evsVplot.py
ee443c448b657b01d957f65dbc716ae72c76966f
[]
no_license
mmartinmendez/SVV-Flight_Dynamics
377b83d6afd5e073fdbc79952422a4e85fe57115
6a8053f949b761d092156955cd212deae2c099bb
refs/heads/master
2021-01-22T04:44:04.334195
2015-03-20T08:34:15
2015-03-20T08:34:15
31,599,770
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
delta_evsVplot.py
import matplotlib.pyplot as plt import numpy as np def delta_evsVplot(delta_e,V, value=None): if len(delta_e) != len(V): raise IOError("arrays are not of equal lenght") # Vinv = V**-1 de_polyfit = np.polyfit(V,delta_e,2) de_polyfit = np.poly1d(de_polyfit) plt.figure() x = np.linspace(min...
48a16354c52b73c468f538b08b0be97fab1012b9
40351a7c4316886eb640cc4b2980bfd515e14431
/client/barometer.py
58de0e5cdbd3b7c4c817d908b28fc3c0dbd66a0d
[]
no_license
chrskly/hab
db433142fdc2c48b67066dae894288f8c6f64483
5a0ec2ea6892a2124db388f5cb86909eb1b3a00e
refs/heads/master
2021-01-20T06:23:08.745241
2018-03-12T23:35:08
2018-03-12T23:35:08
89,871,733
0
0
null
null
null
null
UTF-8
Python
false
false
3,938
py
barometer.py
# Barometer import smbus import time class barometer: def _write(self, data): for c in range(50): try: self.bus.write_byte(self.address, data) except Exception, e: continue return def _read(self, command, data): for c in ra...
c5fdab1502682abd7fd262bccb1cd5cfff9c9da3
e8f348c725822016834e2f8f4ee79d14192c2de3
/010.py
9271bafc3df5604683f5b6d5565c836f241430e0
[]
no_license
vaziridev/euler
7b9a28680a06318685059957dec9fa01b523b4b4
7d307bc4b3456a19f94eb486aa11f67b8e2c665f
refs/heads/master
2020-03-25T06:31:04.018849
2018-08-17T19:01:59
2018-08-17T19:01:59
143,506,969
0
0
null
null
null
null
UTF-8
Python
false
false
558
py
010.py
#ProjectEuler: Problem 10 #Find the sum of all primes below two million. import math import time def main(): sumPrime = 2 start = time.time() for i in range(3, 2000000, 2): if isPrime(i): sumPrime += i elapsed = time.time() - start print("Sum of primes < 2000000 = %s. Found in %...
eb394f667b8e3fa7b20b5040d82f2dc252a5a7cd
765977c7b44d3b45f2be7d6cbacf40ed663a054e
/operators/operator.py
51965c3faad935bc2c54cd48e76431a35f434eef
[ "Unlicense" ]
permissive
vasujammula/inventorymgmt
25f8f30fac4a3989cf5aee8f247df1916693d352
bb381c576aecb312e45dbeae995e24fefdbb8660
refs/heads/master
2022-07-07T04:28:10.962933
2022-07-03T06:32:41
2022-07-03T06:32:41
74,207,915
1
0
null
null
null
null
UTF-8
Python
false
false
408
py
operator.py
#!/usr/bin/env python #i=10 #j=20 #k=i+j v1=input("Please enter value1:") v2=input("Please enter value2:") a=v1+v2 s=v1-v2 print "SO YOU ENTERED %s and %s"%(v1,v2) print "v1 is of type"+str(type(v1))+"v2 is of type"+str(type(v2)) print "SO YOU ENTERED"+str(v1)+"and"+str(v2) print "ADDITION OF v1 and v2 is :",a print "S...
3bef8f8e492fe9913393cc0ddb9c66680d81d6f0
6d13de0d1ca89badfb76c677ffa8d7e2829677cb
/beaconWeb/REST/urls.py
706e11cfe981994f3c65ce11f26336c6da698c2c
[]
no_license
jasjitsingh85/beaconweb
08a2b97346aea6db87dd19567c39a0d99f383ae8
269c6683f759fd7e75d13ea9eec8ad63ee24df53
refs/heads/master
2021-01-13T03:43:09.308401
2016-12-24T16:12:15
2016-12-24T16:12:15
77,268,841
0
0
null
null
null
null
UTF-8
Python
false
false
6,652
py
urls.py
from django.conf.urls import patterns, url from beaconWeb.REST.views.user_profile import UserProfileAPI from beaconWeb.REST.views.hotspot import HotspotAPI from beaconWeb.REST.views.content import ContentAPI from beaconWeb.REST.views.invite import InviteAPI from beaconWeb.REST.views.hotspot_follow import HotspotFollowA...
15d945f4984f45e2c2ae4ca970471fd4bd960c7b
0fed3d6c4a6dbdb49029913b6ce96a9ede9eac6c
/NowCoder/90/I.py
fdb73d74267408dce1045cc89c93093f9416bc2b
[]
no_license
87ouo/The-road-to-ACMer
72df2e834027dcfab04b02ba0ddd350e5078dfc0
0a39a9708a0e7fd0e3b2ffff5d1f4a793b031df5
refs/heads/master
2021-02-18T17:44:29.937434
2019-07-31T11:30:27
2019-07-31T11:30:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
12
py
I.py
print("ac")
2ece4be9938da8d12300b0c19b56040e71d12f4f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02984/s966298227.py
59f7635311a1f3b7b65540dae462365cf6eb9a28
[]
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
164
py
s966298227.py
N = int(input()) A = list(map(int, input().split())) s = sum([A[i] * (-1) ** i for i in range(N)]) for i in range(1, N + 1): print(s) s = 2 * A[i - 1] - s
3530849dee9258c907641ed792378ba91577fe6e
e1e1dc7239630a062e5845205629b575419894ad
/resync/test/test_resource_file.py
9b0e31c5fcd636159f33bba61e72281d5455fafb
[]
no_license
pombredanne/sync-oai
a01ed8814f0d4017d229929625b882286227b462
50d20e7f6b6212a032b55bf4c0975a64c25dba4a
refs/heads/master
2020-04-08T04:25:46.069428
2012-11-02T11:10:15
2012-11-02T11:10:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
968
py
test_resource_file.py
import unittest import re from resync.resource import Resource from resync.resource_file import ResourceFile class TestResourceFile(unittest.TestCase): def test1_create(self): r = Resource('a', timestamp=1234) rf = ResourceFile( resource=r ) self.assertEqual( rf.uri, 'a' ) self.ass...
bd9d4e9078b1dc36440c321d453b53d14ed15b8c
13b6eecfda23fda25650581816311f42811e5c10
/pyconsg/pyconsg/models.py
6dcf75e648ca3b284955b1a8523cde6881068917
[]
no_license
boatswain/pyconsg
06c0a10318d3a771c1615ac23fd603d1747ed381
21c95a15377194c71e1e604689cc7a3446e74f1e
refs/heads/master
2021-01-18T20:52:59.275804
2013-10-21T09:46:06
2013-10-21T09:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
models.py
""" Monkeypatching the Slot model to make handling the Presentaiton admin easier. """ from symposion.schedule.models import Slot def slot_unicode(self): try: room = self.rooms[0] except IndexError: room = 'n/a' return "%s %s (%s - %s) [%s]" % ( self.day, self.kind, self.start, sel...
11f11b79608604f000ff2ab835c64e7cb1bbf3f8
5782a7c5b750e4256ca55e2f3b905c7d6bd25dbf
/Song.py
7ef2d70a3c778c774ece7da22cb73d9a3d418419
[]
no_license
mcgurck164/Lyrics-Database
df14bbdf09165517e2a60dfd68b36be4f95a14cd
d8f562c2840a33107763f1a13baa4b67f1de8418
refs/heads/master
2020-06-23T15:31:27.824411
2019-09-21T06:41:14
2019-09-21T06:41:14
198,664,657
0
0
null
null
null
null
UTF-8
Python
false
false
1,681
py
Song.py
# -*- coding: utf-8 -*- class Song(): def __init__(self, artist, record, year, song_title, lyrics, link_to_lyrics): self.artist = artist self.record = record self.year = year self.song_title = song_title self.lyrics = lyrics self.link_to_lyrics = link_to_lyr...
df3df6c81ea2aadfab1447e0c25cdb883fe5e8b5
bc0827b3c7585c02fea0b9ad5015d8181f713e8f
/archive/pond/pond - PYTH/sql.py
ffb32f79d05a3586344bdfe50215e870d750f598
[]
no_license
juanleroux/rplc
b11055bd5598f19d37ceaf60fdfd7fda45dc76c5
a074430cd89cf269f5449c7659a2c4427b87fa71
refs/heads/master
2016-09-06T04:33:38.159248
2014-09-03T04:21:33
2014-09-03T04:21:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,889
py
sql.py
import time import datetime import os import sqlite3 # unused sensors temp1 = 0.0 temp2 = 0.0 humidity = 0 baro = 0.0 # used sensors temp_pond_top = 0.0 temp_pond_bot = 0.0 temp_pond_out = 0.0 temp_shed_top = 0.0 temp_shed_bot = 0.0 seen = [] StartTime = int(time.time()) now = datetime.datetime.now() sec = int(now.s...
3d65389cd4c6e37779eb81be9e690c03490bd800
f256c98a3b3b6d79ad666c1631be6b6a7a702636
/08异常处理finally.py
2b6c7a6633b968f08a1f810a82ded06678ec3080
[]
no_license
Codewyf-top/python-learning
87e1ec227da465f353c540b17a1e366e6ca714fa
afb5f7ac6689780892130cfd50c07c9f2cb27cbe
refs/heads/master
2023-07-11T16:15:03.196402
2021-08-15T22:29:40
2021-08-15T22:29:40
255,283,790
1
0
null
null
null
null
UTF-8
Python
false
false
946
py
08异常处理finally.py
# -*- coding: utf-8 -*- """ @Time : 21/12/2020 20:13 @Auth : Codewyf @File :08异常处理finally.py @IDE :PyCharm @Motto:Go Ahead Instead of Hesitating """ import sys try: f = open('file.txt', r) .... # some data processing except OSError as err: print("OS error: {}".format(err)) except: print('Unexpected...
6d4bc2679cad14d4ab8ffb37529eed29b7b8dd62
fa8fc12ad82ac01bb8bdebeaed646e43be4b79c6
/gateway/safebox/db.py
911fa7923d4616bf86cd21d11ad2cf82d99afa28
[ "MIT" ]
permissive
dustinengle/smart-mailbox
cc05449afd87b560c0b0b5f8d1f3ba48d5b16ab6
7b0abd8ed31c28d38a620e680ae24b8e02c94905
refs/heads/master
2023-01-20T05:13:42.886327
2019-12-30T21:25:19
2019-12-30T21:25:19
201,510,330
0
1
MIT
2022-12-30T01:24:44
2019-08-09T17:09:17
Python
UTF-8
Python
false
false
1,403
py
db.py
import binascii import sqlite3 import time conn = sqlite3.connect('safebox.db') cur = conn.cursor() def close(): conn.close() def init(): cur.execute('CREATE TABLE IF NOT EXISTS boxes (key)') cur.execute('CREATE TABLE IF NOT EXISTS packets (op, data, time)') cur.execute('CREATE TABLE IF NOT EXISTS p...
b35d26dfa2ef30e46f665d7f7eb0993ea205374d
65fbf630001c02e5b1c43b737e157f42a48aa90a
/POI.py
72274f4ead82cd1eeac644fd6e423cde9fe390c8
[ "MIT" ]
permissive
keim-hs-esslingen/simple-robofleet
d3542bd845de57a5787bfb032dc0be91d4673c4b
05772193cacc231ea3730038b512024ac67bf45e
refs/heads/main
2023-08-24T09:06:35.537860
2021-10-11T09:22:13
2021-10-11T09:22:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
POI.py
# ============================================================================= # Created at the Esslingen University of Applied Sciences # Department: Anwendungszentrum KEIM # Contact: emanuel.reichsoellner@hs-esslingen.de # Date: February 2021 # License: MIT License # =================================================...
102535950322df9bd073e825ddfaf24c2f3339de
116f9eb96ce132622707f3bce35f9c9bd4169c8c
/DesignApp/admin.py
1119393da2773080c43c95e56645fdfd69bdda9c
[ "MIT" ]
permissive
sayakray111/App_Folder
022e597e820dad689f084d515d869c46638a1518
7cf966efb4bbff6dfb9b364198220fde062f0a7f
refs/heads/master
2022-12-08T02:00:33.059370
2020-09-09T08:15:46
2020-09-09T08:15:46
293,363,530
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
admin.py
from django.contrib import admin from .models import User_Details,Building_Details admin.site.register(User_Details) admin.site.register(Building_Details)
7623372348ee637bd64a3f4118cd2bab888b6f3c
ccbebac9aa1b42752b5702ee4c0d44a0a0186ceb
/app/storage/views.py
d9587211ea938ae083ac8aa557f29e6f504beef3
[]
no_license
rencesar/ifpb-os
41f62a7ba0c51ce1c025ad9e4afdcb80140895c0
9b183d389f21c6aa315cb6b9347b0f77ca3dc899
refs/heads/master
2021-07-14T00:01:54.068553
2019-02-12T12:42:51
2019-02-12T12:42:51
147,384,089
0
0
null
2019-01-21T08:10:19
2018-09-04T17:35:45
Python
UTF-8
Python
false
false
730
py
views.py
from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from .models import Section from .serializers import SectionSerializer @api_view(['GET', 'POST']) def section_list(request): if request.method == "GET": queryset = Section.objects....
b3275b72d6ac0aeb778cb85715d4dbf6fef146ed
5d1044ef2af68ee2586f6b928ff433dfa98cff6f
/tutorials/img2txt/configuration.py
7ed4f85d4fe6b20d4e1e0fd7c5b919a6bd9a1648
[]
no_license
liuxiahuiyi/tensorflow-examples
0acb6635f4c9774cd60c68564c84a396efa116ef
014545a4a05cbe29da65e1e6054891094d4c42ee
refs/heads/master
2021-05-15T06:32:33.304179
2018-05-14T09:24:04
2018-05-14T09:24:04
113,762,715
0
0
null
null
null
null
UTF-8
Python
false
false
3,914
py
configuration.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function class TrainConfig(object): """Wrapper class for model hyperparameters.""" def __init__(self): """Sets the default model hyperparameters.""" # File pattern of sharded TFRecord file containing Seque...
a1f99583507bf98c7baf8b4a89d6c745cf6fd044
90c3cf42bfab526763eeaf8475c0898755db9fd9
/lexicon.py
d6f14e323d4bbab37503ddae6e0ef5d10936aa1c
[]
no_license
94imain/IRterm_server
8da7fdaaee10ece12b0bfe8ddea3c410eced5fb0
272829f54fe0639c401034f78f223c0794a1b20c
refs/heads/master
2021-08-29T17:35:23.555910
2017-12-14T13:35:31
2017-12-14T13:35:31
114,254,610
1
0
null
null
null
null
UTF-8
Python
false
false
2,700
py
lexicon.py
import sys import re, collections import pandas as pd from konlpy.tag import Twitter,Kkma word_lists = [] search = open('bad_Emotional_Word_Dictionary_RES_v1.2.txt', encoding='utf-8') search_list = search.read() search_list = search_list.split('\n') search_list = search_list[30:-1] for sl in search_list: word = ...
987b0b4fcf32070d51a617021c22b902b6a1f32a
b6d2f788e449f4f7f35acb2907da9d178d9a0a8c
/lambda_function.py
200572769312971ecbec36309dde611cc5b4fd77
[]
no_license
iolate/lambda-ses-lmtp
1c6ea0ad4c14bdf817e75ee6e346f6142d42efd8
a152edb9f7bf663093aa5efac107e6a596366e45
refs/heads/main
2023-07-06T10:37:12.804697
2021-08-10T16:41:54
2021-08-10T16:41:54
393,767,469
0
0
null
null
null
null
UTF-8
Python
false
false
4,499
py
lambda_function.py
import sys, os, re, base64, json, boto3 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'packages')) class Globals: def __init__(self): pass def get_db(self): if not hasattr(self, 'mysql_db'): self.mysql_db = self.db_connect() return self.mysql_db def db_connect(self): import pymysql connect_...
a7abcab51c87ff4b0e8d42f7c1d486e34057fa19
fdbcab10e571167c1d47e72451b9cd82a9857643
/conf/config.py
3293d7338690a6a2bf68da82d7115c2bcb86739a
[]
no_license
geodynamics-liberation-front/wallander
b09948034ef0a6853ec553f4258518033029e3cd
1a0305f81441de0ceae8213436af0b2f304e1f36
refs/heads/master
2021-01-17T13:02:51.127823
2016-08-02T17:58:36
2016-08-02T17:58:36
56,521,178
0
0
null
null
null
null
UTF-8
Python
false
false
5,370
py
config.py
import os import logging import site import importlib import wallander from logging.handlers import TimedRotatingFileHandler # The loger for this module LOG=logging.getLogger(__name__) LOG.setLevel(logging.WARN) # The name of the loggers to configure LOGS=[ {'module':__name__,'log':'LOG','level':logging.DEBUG,'add_ha...
04742b186f0990a5ab889951a2fbea8e4ad78c7b
8f48d12b88048e424ebb0d72ca6dfab5cf12ae0f
/1001_1499/1256.py
82fef8072bd05c31889ba21ba161c11739ab3679
[]
no_license
renjieliu/leetcode
e1caf13c18a8107ed9252588b339fb76bcb1b246
4668b64fcb9320b6c316d8608fc61911ce43b6c7
refs/heads/master
2023-03-18T18:16:06.187741
2023-03-14T20:31:59
2023-03-14T20:31:59
128,823,819
7
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
1256.py
class Solution: def encode(self, num: int) -> str: # find the diff b/w the number and 2**i - 1, replace the 2**i - 1 to 000..and add the diff if num == 0: return "" elif num == 1: return "0" elif num == 2: return "1" else: i = 0 ...
01fad2787cb412245b24ecbdc33ba913a23ea684
734ba54960c6150164bfccc91063512066cc2fbf
/CodeSamples-Python/LPTHW-PythonCourse-ex33-WhileLoops-RepeatTilFalse.py
444d790af2c1cebe55cd34bcfe39d7d4533b8178
[]
no_license
cikent/Portfolio
8cff76e7249ac83bcbe11034357b6b07e3007c9d
e5c4261c2c452f01656c7af612498fd1fe099289
refs/heads/master
2021-06-22T13:18:21.320010
2020-03-29T23:54:21
2020-03-29T23:54:21
224,490,142
1
0
null
2021-06-02T01:25:44
2019-11-27T18:09:41
Python
UTF-8
Python
false
false
795
py
LPTHW-PythonCourse-ex33-WhileLoops-RepeatTilFalse.py
# declare an increment variable i = 0 # declare the empty list called numbers numbers = [] # create a While Loop that will execute forever while i is less than 6 while i < 6: # print to screen a format string for the element in the list with Focus print(f"At the top i is {i}") # add the value of i to the e...
2276342d79bf7f766e763513e309dd5eb89ab459
325956b1c20daba57f1dcb5a696ff8a77d0f779a
/main_app/migrations/0022_auto_20200402_1349.py
6e06a5dd34d4e91952a5202c9c2a2e3f9982b4a2
[]
no_license
Magiteku/bookinner_website
610fda87555a68330608b79f7e4e0cc6d91e8622
515a271d648812f59901a44f0049ab469c200da4
refs/heads/master
2021-02-11T06:28:58.450998
2020-04-02T15:43:09
2020-04-02T15:43:09
244,464,406
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
0022_auto_20200402_1349.py
# Generated by Django 3.0.3 on 2020-04-02 11:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main_app', '0021_auto_20200401_1528'), ] operations = [ migrations.AlterField( model_name='livre', name='resume', ...
33fdbedd37c713c12bccc48fec26aa83ada2ff8a
3157cd25646f7abcb601d86d4b831730d0a3c12c
/functional.programming2.py
afd8312abb0bf4880d345bc7d9a08b016714f31e
[]
no_license
AsanalievBakyt/classwork
cf2c33e2c294cd6cbcb0dd6f2d0020d8160e5593
584a9aaf55b074908ad4bb80041154e6763ab1bd
refs/heads/master
2023-06-09T23:19:51.335469
2021-07-01T08:50:04
2021-07-01T08:50:04
381,965,489
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
functional.programming2.py
import random l1 =[random.randint(1,10000) for i in range(10000)] def func1(obj): if obj > 9500: return obj # print(list(filter(func1, l1))) data = [ {"2021-06-01":['john','sue','maksim','jyldyz','bill gates']}, {"2021-06-02":['sue','maksim','bakyt']}, {"2021-06-03":['boris the blade', 'john'...
cc7dac4c1ee41bf34ccc0abe75a8f04865716960
a39596aee5fd109794899a4c6e007449e97c1668
/test.py
5fb261be212b1d5e8da0c8e6a7a4689b5f873603
[]
no_license
otipapajim/projectbz
1a6d7795d135a2ef6e8ff40ce4ed99787c01106f
d129c48b01187bc355d247c6ccff0a423c343ce8
refs/heads/master
2023-08-31T12:28:05.310659
2021-10-31T21:00:24
2021-10-31T21:00:24
423,157,752
0
0
null
null
null
null
UTF-8
Python
false
false
2,965
py
test.py
#!C:\Users\Sigma\AppData\Local\Programs\Python\Python39\python.exe print("content-type: text/html\n\n" ) print("<!DOCTYPE html>") print("<html lang='en'>") #Begin Head print("<head>") print("<title> Run a Test </title>") print("<meta charset='UTF-8'>") print("<meta name='viewport' content='width=device-width, initial-...
299792a4031708612d9aaf7633596394932c6e71
e95b4e7e6fd77470322ec40cee155e06b1589cde
/MineSweeper/MineWindow.py
f0b33957be3ecc584d72a20586fb51cc268b0df9
[]
no_license
Epoxider/PythonScripts
c340806599dc05c2ac2c4a57133df6313c9f331d
16badd197eb2bfd263569c872c27366d0211c3a9
refs/heads/main
2023-03-06T05:50:32.848749
2021-02-07T18:34:32
2021-02-07T18:34:32
328,323,860
4
0
null
null
null
null
UTF-8
Python
false
false
3,959
py
MineWindow.py
import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * from MineModel import * class MineWindow(QMainWindow): def __init__(self): super(MineWindow, self).__init__() self.width = 10 self.height = 10 self.numberOfBombs = 10 self.model ...
5c6e7d486be507f34ead21196cbcf4c9e4310e5a
68f04ff1df8dc61636db7a015b752e313ca21dfa
/PythonBootCamp/RPSmanvsComp.py
028087d7072c45a085ca4a876eb0e750f21a9b68
[]
no_license
himanshusoni30/PythonProjects
5497352055aaf53b5ebda2c98651a6a5763ef496
239130a97d74596e3a4ca4c3566ee2b0156f7418
refs/heads/master
2022-12-20T00:13:17.585447
2020-09-18T19:11:38
2020-09-18T19:11:38
296,708,644
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
RPSmanvsComp.py
import random print("......rock.....") print("......paper.....") print("......scissors.....") Human = input("Human choice: ").lower() print() Computer = random.randint(1,3) #1 - paper, 2 - rock, 3 - scissors if Computer == 1: Computer = "paper" print("Computer chose: paper") elif Computer == 2: Computer = "rock" p...
03d371ae1a7e409aef6029c353f31b0d24c32afc
9b330967585293d0ee1bb7919899765991f91d4b
/clearContainers.py
31831cf5165930d5636894fcd77b876e73c12950
[ "Unlicense" ]
permissive
UAlbanyArchives/aspacemigration
bae5f7ace497f7cc13b8676ecc1cdcc6507f4e3e
024e3ab611b8ed9cdb8d606568c8375919aa7608
refs/heads/master
2021-01-19T03:49:02.911114
2017-06-09T17:17:16
2017-06-09T17:17:16
87,335,539
9
0
null
null
null
null
UTF-8
Python
false
false
583
py
clearContainers.py
from archives_tools import aspace as AS loginData = AS.getLogin() session = AS.getSession(loginData) repo = "2" count = 0 box = "start" start = 1 end = 50 while (box != None): range = str(start) + "-" + str(end) print range for box in AS.getContainers(session, repo, range, loginData): count = count + 1 if len(...
bf7445055da4cb8b0d196daaac0434338344ba7f
caf7de30cb6d689bdfb622069ae2b1b5863fa96a
/twitter_user_group.py
6befb365442c29b963a25b5209b2187d0b7978bd
[]
no_license
ZekangZhouKGR/twitter_bot
d5802b633b73911c8d399b07a77532c77d95a32f
4ea58609fb628ae82a42bdd37bc2d7654cbeaf28
refs/heads/master
2022-04-18T16:00:09.950530
2020-04-14T09:58:12
2020-04-14T09:58:12
255,572,185
5
0
null
null
null
null
UTF-8
Python
false
false
529
py
twitter_user_group.py
from . import mylogging as logging def like_pair(host): like_pair = None return host,like_pair def reply_pair(host): reply_pair = None return host,reply_pair def repost_pair(host): repost_pair = None return host,repost_pair def cofollow_pair(host): cofollow_pair = None return host,cofollow_p...
f91c4fc7593f09da402c49c57ebbb681d8ca8433
e8b743d54283bdd7c63f40d2403dcfc5068abbb0
/DMOJ/DMOPC/Dr. Henri and Seeing Stars.py
052f45285cce9a2dd788a6ce41d5ff67e6a18e37
[]
no_license
LeonDong02/contest-solutions
59c8f6102fe397df5186da6865855d549cd13156
2a4201e947b65602ec16e5ae22c1dbca5a6552a2
refs/heads/master
2020-04-13T03:27:55.427536
2020-02-09T04:33:47
2020-02-09T04:33:47
162,932,594
1
0
null
null
null
null
UTF-8
Python
false
false
256
py
Dr. Henri and Seeing Stars.py
r, x, y = map(int, input().split()) stars = [list(map(int, input().split())) for i in range(3)] stars.sort(key=lambda x: x[2]) if (x - stars[0][0])**2 + (y - stars[0][1])**2 < r**2: print('What a beauty!') else: print('Time to move my telescope!')
271418abd4eefe6eab15c3297b3dd8984484b6d7
e952521bed67b0c044555d255698fa5148330fe4
/test/hid_tset.py
6e053344437d58aca437ab6098f3e7ea529a8d0a
[]
no_license
mustvvvics/water
3d36f3863c9a693a246b1342aca13514e36d9877
df1d2ac2cee40589d525a1a9c35e1222ac33fc5f
refs/heads/main
2023-06-14T12:50:58.903081
2021-07-08T13:26:44
2021-07-08T13:26:44
361,159,686
2
0
null
null
null
null
UTF-8
Python
false
false
267
py
hid_tset.py
file = "/dev/hidraw0" # def readTemperature(): while(1): fp = open(file,'rb') buffer = fp.read(4) buffer = buffer[2:] # print(buffer) buffer = int.from_bytes(buffer, byteorder="big") #311 buffer /= 10 print(buffer) # return(buffer)
3ee173c844c78c0e8dd1459f543be37c0cbfc9f5
5f32cbc08ed2b44fd3689dd125161f00c11519b1
/asab/proactor/service.py
eec6ea6b57461e136f4ff4cd931e83ef83448462
[ "BSD-3-Clause" ]
permissive
albertchristian92/asab
eaaeb2b593c4a887ce26f3ba3a2d06d661c65eac
ab6e62a00a0d0e79e5dfebafdda8ff6f18973ffe
refs/heads/master
2022-12-31T18:36:45.330007
2020-10-27T10:26:51
2020-10-27T10:26:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
763
py
service.py
import asab import concurrent.futures class ProactorService(asab.Service): def __init__(self, app, service_name): super().__init__(app, service_name) self.Loop = app.Loop max_workers = asab.Config.get('asab:proactor', 'max_workers') try: max_workers = int(max_workers) except BaseException: max_work...
4890d49bd2484d59ced3be5463690029e9e00406
1303d437d60f585567078a0ffa3d7bf251ee1951
/app/api/resources/runs.py
c346df9ce0ecdd45ef78273431025c86ae6fc37b
[ "MIT" ]
permissive
MonashBioinformaticsPlatform/RNAsik-REST
92a3ff2b0a105bfb11079802ebdbd703551bd5be
9e109a20b09a26341b77034e5bd363c7529d7e0e
refs/heads/master
2016-08-12T16:47:14.800420
2015-10-14T00:29:07
2015-10-14T00:29:07
44,213,916
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
runs.py
# -*- coding: utf-8 -*- from flask import request, g from . import Resource from .. import schemas class Runs(Resource): def get(self): return [{"name": "this is a test run name"}], 200, None def post(self): ## steve debug code import time now = time.strftime("%c") ...
a7933985fefc16f34d2e8a66fd2a46ba20903783
77fd60c4b7e7885b2ec4ca5203edf9489f6f37dc
/nipy/labs/datasets/transforms/transform.py
91e6ab3fc35d48d23d687b987917803423e366f8
[ "BSD-3-Clause" ]
permissive
nipy/nipy
156f379adbc07b259e25012662510b1f64aac4c5
7eede02471567487e454016c1e7cf637d3afac9e
refs/heads/master
2023-04-06T14:56:36.303421
2023-04-05T19:40:24
2023-04-05T19:40:24
642,344
275
115
BSD-3-Clause
2023-04-05T19:40:25
2010-05-02T10:00:33
Python
UTF-8
Python
false
false
7,437
py
transform.py
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ The base Transform class. This class defines the Transform interface and can be subclassed to define more clever composition logic. """ ################################################################...
26b415bb4323d958ea3b9a2b5104f131854d232b
126cbc1871069f9a86fca8b85270718144701c64
/os.py
2f339ddf336e8ccf3ed174581eaae8f75e0abbfd
[]
no_license
jennhsiao/local_scripts
e11c9bb2e2679f28a195cef461faba79a8e85d3b
df0e7189bbec3da439ee4707c48499bd213a6441
refs/heads/master
2022-04-28T08:35:53.744969
2020-04-14T21:35:44
2020-04-14T21:35:44
255,733,218
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
os.py
import os print(os.listdir()) print(os.getcwd()) for dirpath, dirnames, filenames in os.walk('Users/etismeimet/Desktop'): print('current path:', dirpath) print('directories:', dirnames) print('files:', filenames) print() print(dir(os.path))
bb11f31f7a585825c9e6cb420bca4784f7bee2da
04d1a77ef2ff04ee54dba904636916f9d3f3c177
/turbinia/turbiniactl.py
37be21a49fcfc7bb601f174cab2d9195fe66b81e
[ "Apache-2.0" ]
permissive
joachimmetz/turbinia
196041b4ffd70c56b5769f4a17db5f22a2828c8a
a756f4c625cf3796fc82d160f3c794c7e2039437
refs/heads/master
2022-05-28T23:46:58.845448
2022-02-18T00:36:52
2022-02-18T00:36:52
191,294,238
1
0
Apache-2.0
2019-06-11T04:33:17
2019-06-11T04:33:17
null
UTF-8
Python
false
false
42,306
py
turbiniactl.py
#!/usr/bin/env python # # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
f060af5a7127238c1b504f3c8e31f91475735997
ac1146f911692c412ac7e567edc4192290f8b144
/day8/sol1.py
6e6d3081ad4b65e5719762fe3da10f553199eb6b
[]
no_license
mapio/advent-of-code-2019
482371104f62e7ed607760c0cd68d88ff4a98f6d
5d71f29eb94705d22cde404aa27aca63346e9224
refs/heads/master
2021-07-14T13:55:53.013201
2020-12-01T08:04:20
2020-12-01T08:04:20
225,240,668
3
0
null
null
null
null
UTF-8
Python
false
false
285
py
sol1.py
from collections import Counter X, Y = 25, 6 with open('input.txt') as inf: IMG = inf.read().strip() split = 0 min_z = X * Y while split < len(IMG): c = Counter(IMG[split:split + X * Y]) split += X * Y if c['0'] < min_z: min_z = c['0'] res = c['1'] * c['2'] print(res)
ebd084ee1e34a42cdb67298ca04194075aaad7d7
4be2c72579486ad04a00db0349028de96d2dce89
/scripts/Helios/commands/Toggle Ghosting.py
dd660b242ac22236d686a05370bb1746b105742e
[]
no_license
italic-r/maya-prefs
6a617d40beee8937186b4699c5cead44e01c2d40
aa21e5e2938dc2698ce5f555ee74a594e08aed2b
refs/heads/master
2021-09-09T16:31:00.411349
2018-03-18T01:40:10
2018-03-18T01:40:10
86,961,959
16
8
null
null
null
null
UTF-8
Python
false
false
209
py
Toggle Ghosting.py
import maya.mel as mel import maya.cmds as mc obj = mc.ls(sl=1) shape = mc.listRelatives(obj[0]) isGhosted = mc.getAttr(shape[0] + '.ghosting') if isGhosted: mc.UnghostObject() else: mc.GhostObject()
a63897782aec3b9d15edfb8a0d0085d3af627810
3fed1053b40843e5f926338e20693315ba559ee9
/practice_session_2018/bathroom_stalls/solution.py
2ebbbf80b424a05e6f6783adc477eee2e2a86f64
[]
no_license
ahcub/codejam
8b25631733f4aab47fb3b22d6579261e748a5adb
5574479530508a85eff84d3a2304d61219c2f724
refs/heads/master
2020-04-18T19:14:17.602777
2019-02-20T11:42:41
2019-02-20T11:42:41
167,707,175
1
0
null
null
null
null
UTF-8
Python
false
false
570
py
solution.py
t = int(input()) for ti in range(1, t+1): n, k = map(int, input().split()) prev_n = n remaining_n = 0 other_n = n while k > 0: prev_n = n remaining_n = n % 2 remaining_k = k % 2 if k != 1 else 0 n = (n // 2) other_n = prev_n - n - 1 k //= 2 if...
d7db4d7aeb73f659b396a8937dcae012e0b04af4
8d1fada2115c14d0b3c266acbd8229b429e57724
/straintables/skdistance/_anosim.py
eee867991cae9a755beee70a49afd3a7a17a1f68
[ "MIT", "BSD-3-Clause" ]
permissive
Gab0/straintables
9ad03056d11f984c63cbff4409c03e587deb3084
549b292e5b6ab22e03373483cd27236aa2f635eb
refs/heads/master
2021-11-26T13:53:55.442005
2021-11-20T11:18:43
2021-11-20T11:18:43
162,063,031
0
0
null
null
null
null
UTF-8
Python
false
false
8,566
py
_anosim.py
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
1b33b402eaf1c1ee1870596e1383bb264825e482
b09221b5f3276666a40fb4d85784797da7954ced
/courses/views.py
a430bab3c6f642b1bf21605407768eda977fc7e0
[]
no_license
olegpy/ooniversity_django_courses_03
0d22bd0f98cf4f5447cb1af0e432a52682347ec7
6aff187d8211f75674b1ae01b5615c964007b5e7
refs/heads/master
2021-01-17T19:14:23.894129
2015-12-17T18:20:02
2015-12-17T18:20:02
45,922,168
0
1
null
2015-11-10T15:47:37
2015-11-10T15:47:36
null
UTF-8
Python
false
false
6,377
py
views.py
from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.core.urlresolvers import reverse_lazy from django.contrib import messages from courses.models import Course, Lesson from pybursa.views import MixinTitle import logging logger = logg...
e100864ab4e10913282a2828cb53f41c74ca96f2
c24b28c0dc4ad8f83845f4c61882f1e04d49b5cd
/Good_to_Know/Callback-basics/slider.py
91bc8d4dde812b43e60e73924c386752387c7a30
[]
no_license
Coding-with-Adam/Dash-by-Plotly
759e927759513d96060a770b1e0b0a66db13f54f
9f178f1d52536efd33827758b741acc4039d8d9b
refs/heads/master
2023-08-31T17:23:02.029281
2023-08-08T05:12:50
2023-08-08T05:12:50
234,687,337
1,293
1,822
null
2023-07-31T15:47:07
2020-01-18T05:36:28
Jupyter Notebook
UTF-8
Python
false
false
794
py
slider.py
from dash import Dash, dcc, html, Output, Input, State, callback import plotly.express as px app = Dash(__name__) app.layout = html.Div([ dcc.Slider(10,20, step=1, value=12, id='my-slider'), dcc.Markdown(children='This is the Title of the App', id='text-displayed', style={'fontSize':10}) ]) @callba...
b901671bf9772302a95d004dff989dff27756d9e
5f9313e7e1797b542e8d48857ef8c2f817c2132b
/core/forms.py
20236c67947c1b7ee754358e82bde6a15acf75db
[]
no_license
avaakash/Covid-Resources
064f073361a8cee585f40f07a78cc92580f3cff1
a42b748c06eb1fc9cae7187f7d2ded2e1ce1c6ff
refs/heads/main
2023-04-08T15:58:47.412407
2021-04-22T15:28:17
2021-04-22T15:28:17
360,495,870
0
0
null
2021-04-22T13:57:04
2021-04-22T11:32:52
Python
UTF-8
Python
false
false
460
py
forms.py
from django import forms from .models import ResourcesPost, ResourcesRequest class AddResourceInformation(forms.ModelForm): class Meta: model = ResourcesPost fields = ['title', 'link', 'location', 'last_update_on', 'description', 'contacts'] class AddResourceRequest(forms.Mode...
386ffba49f2537fd6f54e65646625cef8a612359
9d92e2024f22906d1be5f93aa3b61edf6c51ee18
/Python32/Project3/oval.py
2eb966fa9b862b4d17d2f40118aa1e6d2a196f20
[]
no_license
ronitdag/Stocks
63eddeb96591cbf01b8a923c27bb9d7cc98c908c
528789c5504bb0b9fdf65fc75802e21f118af375
refs/heads/master
2021-01-10T04:28:06.011296
2016-01-30T03:34:54
2016-01-30T03:34:54
50,688,783
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
oval.py
import tkinter class Simple_ovals: def __init__(self): self._root_window=tkinter.Tk() self._canvas=tkinter.Canvas( master=self._root_window, height=400, width=400, padx=10, pady=10, sticky=tkinter.N+tkinter.S+tkinter.E+tkinter.W)
52f9fe6440a11b7124f118cc1fea33b8470315cc
c6e765561a0457e9b97d5ee71a40d9539c8241b5
/Exercises/Exercise/Session #2 Mutable and Immutable Structures- String and Lists/Session #2 Exercises/4_remDup.py
56670f498acb733a7067643c28ce8b317754abea
[]
no_license
hm-thg/machine-learning-and-data-mining
9fb6ff8d15358acd362f0b9bc1838f7f3603e791
2dc38cfbbecfc1f9fc025d1c11ef2370c58734dd
refs/heads/master
2023-04-04T23:12:27.402381
2021-03-27T07:19:52
2021-03-27T07:19:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
4_remDup.py
def removeDuplicates(lst1): ''' Objective: To return another list without any duplicates from the input list Input Parameter: lst1- list with duplicate elements Return Value: lst2 - list without duplicate elements ''' lst2 = [] for el in lst1: if el not in lst2: lst1.inse...
1d52811b3b95bb20083b67f3e141c42fe2ea3a86
2fac19c71ae3e8be8ed957ce8331bffdb2a65f1c
/tests/rest/exporter/tests_int.py
c8f9b74cf70061652338cbffa9de02dc076728cf
[ "LicenseRef-scancode-public-domain" ]
permissive
cdcs-repos/core_exporters_app
725a317c8195c308753b718e559ac86ec353832c
6e8be848a4e8b5578cafb28648ad882fd0eb3732
refs/heads/master
2020-04-22T17:36:11.138911
2018-11-28T20:24:47
2018-11-30T16:02:58
170,547,244
0
0
null
2019-02-13T17:11:44
2019-02-13T17:11:43
null
UTF-8
Python
false
false
4,139
py
tests_int.py
"""Integration tests for exporter rest api """ from bson import ObjectId from rest_framework import status import core_exporters_app.rest.exporters.views as exporter_views from core_main_app.utils.integration_tests.integration_base_test_case import MongoIntegrationBaseTestCase from core_main_app.utils.tests_tools.Mock...
8ac78c98ea0a8a09a33d0682c05fb71de5b592fd
a4e4fb16d7792b371585543579859e0b8f66b4e8
/grocery/views.py
9c30bcef1cab3ad8158b24e4b95ed2ef072430aa
[]
no_license
rochakravi/dj_ang
57a5e139635ea64365d8e47005c69ea5dc12a661
c65cb52d0adf87bb482648608614280c82bc4adb
refs/heads/master
2021-05-12T19:07:00.490990
2018-01-11T09:58:32
2018-01-11T09:58:32
117,082,192
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
views.py
from django.shortcuts import render from django.views.generic import TemplateView # Create your views here. class HomePageView(TemplateView): def get(self, request, **kwargs): return render(request, 'index.html', context=None) class LinksPageView(TemplateView): def get(self, request, **kwargs): ...
9b529850308594716dcb71fc377d4bdde220e6fa
badb8a6f9a9ed90a6c1ed29fa224e1d92fd0d29d
/Script/python/course03_if_else.py
cfe2acf3d024329f336efa12714408aaecb40b49
[ "MIT" ]
permissive
Kenec/DevOps
ef52f0bbb9e8aff3e6898c1bd197fe287e0cb561
7af8a93cc15841b0ecc1dd245f169840175f3208
refs/heads/master
2021-06-30T16:17:08.588177
2019-06-13T07:37:39
2019-06-13T07:37:39
147,538,479
0
1
MIT
2018-09-30T17:08:10
2018-09-05T15:17:19
Python
UTF-8
Python
false
false
1,038
py
course03_if_else.py
#!/usr/bin/env python import sys def Authenticate(): validPassword = 'secret' inputPassword = raw_input('Please Enter Your Passowrd: ') if validPassword == inputPassword: print 'You have access!' else: print 'Access Denied!' sys.exit(0) print 'Welcome' def checkAge(): if len(sys.argv...
18594738cd7bf03d13595a03f91a7ce9bc21bfa6
5d91e93840d70b658df51ff7ba1985a0cefcdaec
/files-in-subdir.py
f53f86f5b34b6848b8e59c9a363e0e974d8159a5
[ "MIT" ]
permissive
raedfarhan/python-files-in-subdir
84737a0b9bc5f75070f2b45aa7c787e496c664ec
105160fd72293e1e334f704a784bf29c224fe3a7
refs/heads/main
2023-02-08T20:27:34.641310
2020-12-23T08:47:13
2020-12-23T08:47:13
323,849,716
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
files-in-subdir.py
import os with os.scandir('images') as entries: print("###############_start_###############") for entry in entries: # List all files in a directory using os.listdir basepath = "images/" + entry.name for entry1 in os.listdir( basepath): if os.path.isfile(os.path.join(basepath, entry1)): p...
181c63931314e7adb6526d14c6b88447be86d14a
fbbc4eabb67c6fe976462ef4f8ffe732ebb167f2
/snipyt.py
33b1656c46948d4f5ee10824a9f417b51240dd8e
[]
no_license
lostrootpass/snipyt
0c19e54cccb6f066d7e3a0a999520d26ebc2f1ea
e2bb3be0802bdf174caef4a8a1f513cba208ec72
refs/heads/master
2021-01-16T23:24:24.602791
2016-07-31T20:14:07
2016-07-31T20:14:07
64,613,793
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
snipyt.py
#!/usr/bin/env python import web urls = ( '/', 'index', '/([a-zA-Z0-9\-_]+)\/?([0-9]+),?((?<=,)[0-9]+)?\/?((?<=\/)[01]{1})?/', 'player', ) app = web.application(urls, globals()) templates = web.template.render("templates") class player: def GET(self, id, start, end, loop): return templates.base(templ...
dee31c5082ba49020bfe5c9c119866430da1cd13
93cb8398a40425f1d679da08a92981166f0a870c
/client.py
efaa4cec96bc139457c3289be8ed2885ed28cc2b
[]
no_license
rajatmehra2307/SystemPracticum
765a8dc701dcc58b52c04e5f09a5a77008982c04
e2d828e90178fcf733b8cba8a75569977a420426
refs/heads/master
2020-12-30T11:52:39.967822
2017-05-23T08:52:55
2017-05-23T08:52:55
91,434,880
1
0
null
null
null
null
UTF-8
Python
false
false
5,992
py
client.py
import socket import os import subprocess import cookielib import urllib2 import time import mechanize import string import Tkinter import tkMessageBox server_ip = "10.8.17.141:5000" def checkHotspot(): with open(os.devnull, 'w') as devnull: is_master = subprocess.check_output("iwconfig | grep Master | wc -c",s...
14c482cf9fd35d15d7a2b185dca3c9d07d0dd94b
a21aa3bbfecbc04b186b8284b71bad71a69063a6
/09.py
3ce6004055ce4ba19c648bb3ee9b2b9d50ef8671
[]
no_license
ArnaudMarcille/ProjectHeuler
777ec82db8a8864b177c4935e82224be9243d919
a6d6ce361668ab9c7b2600a03f7f929c358e3b31
refs/heads/master
2022-11-15T01:01:17.074996
2020-07-06T15:15:49
2020-07-06T15:15:49
277,572,045
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
09.py
target = 1000 def IsTriplet(a, b, c): return (a*a + b*b == c*c) result = 0 for a in range(1,target): for b in range(a, target): for c in range(b, target): if IsTriplet(a,b,c) and a + b + c == target: result = a * b * c print(a) print(b) ...
4d548240e2346573ad2095aab243ceae8fc99f3c
fe03eab6477db3f7f3667eefe369dd89d457a58f
/Run3Detector/analysis/timingCalibration/upgradeCalibration.py
cd32f82e9459b7ab799ab9988cbb7cb9325427b2
[]
no_license
milliQan-sw/milliqanOffline
c64a56173797cd00b9243e4ca7196515081834e6
4df6cb4a16ea88feea82b99f9f8c356dbce863cc
refs/heads/master
2023-08-23T13:39:17.513848
2023-08-17T20:16:20
2023-08-17T20:16:20
123,949,343
3
7
null
2023-09-13T06:59:02
2018-03-05T16:47:13
Python
UTF-8
Python
false
false
19,410
py
upgradeCalibration.py
import ROOT as r import pickle import os import copy r.gROOT.SetBatch(True) r.gStyle.SetOptFit(11111) beamOn = True fNameTag = 'Run3' # fNameTag = '423' cosmicHeightSelections = {} b2Delta = 16 topPanels = [68,72] # inputFile = r.TFile("/Users/mcitron/milliqanOffline/milliqanScripts/inputFiles/postTS1/allPhysicsPostPu...
16128c4f59a2112dfa1baa34008e0e8503e06a32
6e527894bab6f767c0b6ce5ea04fbbf8874d2ec7
/app.py
5d534a305c98a75b21ebb5022ea61be976a4e82d
[]
no_license
igorbeor/py_lesson2
fd5cab669dc1bbbd24b378bf94f8bda5a4b24a4b
0de267b20b91d184a554c91791b660f6e4ca43ac
refs/heads/master
2020-08-22T14:08:16.753783
2019-10-20T19:20:26
2019-10-20T19:20:26
216,411,828
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
app.py
from turtle import Screen, Turtle from self_filling_curves import l_system, draw_curve if __name__ == '__main__': # drow gosper curve gosper_axiom = 'XF' gosper_rules = { 'X': 'X-YF--YF+FX++FXFX+YF-', 'Y': '+FX-YFYF--YF-FX++FX+Y' } gosper_curve = l_system(gosper_axiom, gosper_r...
1b7c3ebf70cc73a32f3347d271f68b338c9c24c4
470dfd9d8196f1c943eff7aa1f1a8445d064d3f4
/django/src/pedidos_feios/migrations/0021_remove_produto_pagamento_irregular.py
ea2ea3a49e3689601c8760a69c32a39d5ff95a9d
[]
no_license
legmartini/ugly_manager
d195e0e3b6f1f6b1ac7c85531e256594a363b369
feeaacf22bafb0d7264522186a427afc53748039
refs/heads/master
2023-01-30T11:49:51.281559
2020-12-10T18:24:50
2020-12-10T18:24:50
316,091,632
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
0021_remove_produto_pagamento_irregular.py
# Generated by Django 3.1.2 on 2020-11-26 00:34 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('pedidos_feios', '0020_auto_20201125_1955'), ] operations = [ migrations.RemoveField( model_name='produto', name='pagamento_i...
7499a875d0f0cc82d69957a4f574ca325f6e6470
6ffc398b4a27c339f24938e8a0b9c565e33539ce
/reportdesigner.py
2837999a64507bf6211387283cb75293132b3678
[]
no_license
zwlyn/awesome-pdf
8f4483d717130a54545f2ba8b05313da99103039
8223929db5433c7b4ed61bceb4f5808c12e1ad85
refs/heads/master
2023-01-24T23:52:35.415117
2020-04-05T12:05:31
2020-04-05T12:05:31
253,162,782
2
0
null
2023-01-05T10:50:08
2020-04-05T05:31:20
Python
UTF-8
Python
false
false
1,335
py
reportdesigner.py
#!/usr/bin/env python # -*- coding: utf_8 -*- import sys, os if ((3, 0) <= sys.version_info <= (3, 9)): sys.path.insert(0, os.sep.join([os.getcwd(), "site-packages-37"])) elif ((2, 0) <= sys.version_info <= (2, 9)): sys.path.insert(0, os.sep.join([os.getcwd(), "site-packages-27"])) from tornado.wsgi import WSG...
a9bdb3428735ef877e7e64a98ba182a9d7937c41
b6980d43d621ff305ea85015980809da243a5ff6
/TestCases/辖区总览/test_resource.py
a8bdbe73ea709bd176a46f73e16356c9c6709dde
[]
no_license
XuejJtt/ZHAF
1aeb97028b914bd0fdc24d2f6133c4321c5e4bb4
0647ae094e8c70b859a061ca86d565d4a7dd9ea7
refs/heads/master
2023-03-07T06:31:45.889488
2021-02-19T03:36:36
2021-02-19T03:36:36
290,436,775
0
0
null
null
null
null
UTF-8
Python
false
false
12,096
py
test_resource.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/10/14 14:55 # @File : test_resource.py # @Software: PyCharm import pytest from Common.log import Log from Common import dir_config from PageObjects.index.first_page import First_Page import time from TestDatas.辖区总览 import resource_data as T from Common...
2b75611d019770c5c28a386d6e6982015d1e41c5
055a84426d347bc1e09d59ba79db04e92cc2a56d
/main.py
01d5b704d427af839543df6b876ccbd73278409d
[ "MIT" ]
permissive
JordanOberstein/InnerCircle
296aeadee2d80f812b62cf4bc8ef9ef48760d7c9
3d2fdcad18876532f6c5199bb80a827fbd438d5d
refs/heads/master
2022-04-08T08:43:25.630249
2020-03-10T15:37:44
2020-03-10T15:37:44
235,208,873
0
0
null
null
null
null
UTF-8
Python
false
false
22,673
py
main.py
# Program by Jordan Oberstein # Based on the the 1981 board game InnerCircle, (Milton Bradley company) import random import sys import os from colored import fg, bg, attr from board1 import B1 from board2 import B2 from board3 import B3 from board4 import B4 COLORIZE_BOARD = True HARD_MODE = False def flatten(l):...
f3d7ac95805917a402af38037ad4bdba1385d3d5
2a2b7a698c4dffe76057530ade4bcdd6b440ee89
/leetcode/30_days/04th.py
96dfe07209dbc522a29a0c423e78b29375875962
[]
no_license
pawangeek/Python-codes
e1794866b05ea734906396e4718daaec5b7d12dd
5b6e0ca50825906a3ba3e3e614fc07444d679833
refs/heads/master
2021-08-03T11:40:08.606340
2021-07-19T16:37:09
2021-07-19T16:37:09
194,699,596
1
0
null
2021-03-27T11:18:16
2019-07-01T15:32:14
Python
UTF-8
Python
false
false
392
py
04th.py
# Move Zeroes # https://leetcode.com/explore/challenge/card/30-day-leetcoding-challenge/528/week-1/3286/ # Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. # Have to do it inplace nums = [0,1,0,3,12] for i in range(len(nums)): i...
6a30c97abfeca1ff6a4d27e933cb996cb5087f62
4a037133e894c773f08f7422b9752914bd143098
/c7/test/test_nursery.py
58f6bb353435028424a793d5b7bc8390be0ada78
[]
no_license
hg-mirrors/pypy_stmgc
103fe1cc090f8f62e7cd1e6a27e420c184dba034
4559627e3cff3f1f49ec82c26b87b92be41d4bec
refs/heads/master
2023-03-02T10:02:30.075774
2017-02-26T13:46:46
2017-02-26T13:46:46
411,568,995
0
0
null
null
null
null
UTF-8
Python
false
false
8,114
py
test_nursery.py
from support import * import py class TestNursery(BaseTest): def test_nursery_full(self): lib._stm_set_nursery_free_count(2048) self.start_transaction() self.push_root_no_gc() lp1 = stm_allocate(2048) # no collection here self.pop_root() # self.push_root(...
788b3cab5a549ba6661fc11ba4df5475089daf5e
27efef2873ea42ae3f3bf671fa6127012ab4a2e1
/src/FlaskRTBCTF/utils/migrate.py
8296ff9b4f140e847f3d7524c998a9053c899b8f
[ "MIT" ]
permissive
mostwanted002/RTB-CTF-Framework
544bb2f0ff6edea44ba21fd66d9c75833d4f7b34
c3ed3498231ba8d0099d46c6440633beb174cfd7
refs/heads/master
2020-08-05T00:57:15.377323
2020-07-14T18:15:39
2020-07-14T18:15:39
279,642,965
0
0
MIT
2020-07-14T16:52:36
2020-07-14T16:52:35
null
UTF-8
Python
false
false
55
py
migrate.py
from flask_migrate import Migrate migrate = Migrate()
a0b1db5025dfd9a73c4ba176272253c6a5551502
10ef1ae1d33e75909f5834e0820653d7376be475
/questions/1896. Minimum Cost to Change the Final Value of Expression/mini.py
a6619ea9eb735c8295b49150fd68b98132121b95
[]
no_license
shenxiaoxu/leetcode
4f40c6537af4aeff2c5be3b1f282300d3ee1e621
e69b4af96b42b3ee04e4134203bf748c1cb0aadb
refs/heads/main
2023-07-07T03:14:32.738175
2021-08-18T05:03:19
2021-08-18T05:03:19
312,491,747
2
1
null
null
null
null
UTF-8
Python
false
false
1,764
py
mini.py
''' You are given a valid boolean expression as a string expression consisting of the characters '1','0','&' (bitwise AND operator),'|' (bitwise OR operator),'(', and ')'. For example, "()1|1" and "(1)&()" are not valid while "1", "(((1))|(0))", and "1|(0&(1))" are valid expressions. Return the minimum cost to change ...
811fe38aa87b40e527e74376ba01b55c14c4372d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02900/s387063528.py
5d8b2f92113ffcdd48980494ffddf3413b967b29
[]
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
287
py
s387063528.py
import math A, B = map(int, input().split()) gcd_ab = math.gcd(A, B) factors = set() i = 2 while i <= math.ceil(math.sqrt(gcd_ab)): if gcd_ab%i == 0: factors.add(i) gcd_ab = gcd_ab // i else: i += 1 factors.add(gcd_ab) factors.add(1) print(len(factors))
9a18bd1cba0602927fcce7a58cebf06e29bd1588
4857e540c7c383dad86a180cd619ee83f0bfcb9c
/leetcode/word_break.py
9ac7424dfd049046134dbb2fd42b114c1d0c8e04
[]
no_license
lamida/algorithms-drills
03ac6e4fea4a11b94686f98f04d39c7171c0e9c1
0421452a3ae0fa9a21e10e890818f8409ced896c
refs/heads/master
2023-07-28T07:27:56.857066
2021-09-01T23:02:44
2021-09-01T23:02:44
260,995,350
0
0
null
null
null
null
UTF-8
Python
false
false
1,373
py
word_break.py
# https://leetcode.com/problems/word-break from typing import Set, List class Solution: def wordBreak(self, s: str, wordDict: Set[str]) -> bool: # we can alternatively use @lru_cache in python def wb(s: str, wordDict: Set[str], start: int, memo: List[bool]) -> bool: if len(s) == start: ...
6abe8e59976a0d44529c8aaeccc71fdd974f8305
5f3e4791764cc4c34318280a286efc90b9245e16
/python/include/ubiquity/exceptions.py
1fb15e6949c2621f56a9ecbb585ec72e6fca5dee
[]
no_license
afdaniele/ubiquity
2963b5295f21a9ae10361929b7791bb48fab7656
eb4d1019f89403dd2627c3ec5aa1346212ba699a
refs/heads/master
2020-12-31T22:10:29.121354
2020-02-11T07:34:29
2020-02-11T07:34:29
239,047,726
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
exceptions.py
class WaveParseError(Exception): pass class JSONParseError(Exception): pass
8e53f1470a399a82d64cd93a94baeaa4d30668c6
b8d672c9d305a23403716f5486c13cd638707f01
/organizing_data.py
e3004efb5d69ed24c5c21f3f2cc5be8428ad771c
[]
no_license
MeeSeongIm/object_oriented_programming_py
5b42200f135c89e0e8eaec5f1ca14058773e9fb1
9ce28a7bf3e753f4a3e0a6c4b3ce1e6c87ee0bba
refs/heads/master
2016-08-06T12:26:13.989448
2014-11-02T17:42:33
2014-11-02T17:42:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,426
py
organizing_data.py
# Python file. Sorting identity. class Person(object): is_admin = False # member variable is_employee = False is_customer = True def __init__(self, first_name, last_name, address, phone, email, dob, ssn, credit_card, debit_card, bank): self.first_name = first_name self.las...
c0b6291d29ee28a62ff2d71829788297cd1a46ae
794563feae7e548a847d6d9d564b2829778c3ede
/TexasHoldEmDemoClient.py
2121ab4633251a9c1addbb83e606aecda5a605a0
[]
no_license
Thyrst/TexasHoldEm_Python
25eaac4c51a9d5b3f842d1c1f2dd61c78db98e51
e43129dff8bfd1307d1251aeafb346e2285fb57f
refs/heads/master
2021-01-01T04:37:18.707901
2017-07-14T09:19:36
2017-07-14T09:19:36
97,210,367
0
0
null
2017-07-14T08:14:48
2017-07-14T08:14:48
null
UTF-8
Python
false
false
22,607
py
TexasHoldEmDemoClient.py
import tkinter import tkinter.messagebox import requests import time import threading from Table import Table from TexasHoldEm import calculate_move from tkinter import BOTH, END, LEFT TITLE_TEXT = 'Texas Hold \'EM Demo Client' BUTTON_WIDTH = 16 BOT_ID_LABEL_ROW, BOT_ID_LABEL_COLUMN = (0, 0) BOT_ID_LAB...
0baf6f7eeb06915923f6998a925cd6c9d0753b41
96a2d9f084942b07eb16803490b610f938a01ff9
/signup/models.py
23ad8037e63df80af4c61c56626dd4f92052dc61
[]
no_license
gsussman/amormetrics
38f15fc94a6484883034ffa62f886baf0006f6bc
a141f4a8bc363e427c15b51cfa13e620006a8516
refs/heads/master
2021-01-10T10:56:58.472212
2018-01-19T17:16:16
2018-01-19T17:16:16
48,751,622
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
models.py
from __future__ import unicode_literals # Create your models here. from django.db import models from django.utils import timezone class EmailSignup(models.Model): first_name = models.CharField(max_length=25) last_name = models.CharField(max_length=25) email = models.EmailField(max_length=254) def __str__(self):...
4483f730b085d18898ea75f44356023fbcab3d30
f80ba45b841de9ccbac959901dc929e8fa6aa7a7
/tests/Http.py
9a862fbd4e0ca7b3b6405b89e748b567f74ba610
[]
no_license
zuston/ztool
4136670309bee1795b503fb5f65b672e6541ed5a
457806610094b185e46c95ee669cc3764bbfcfef
refs/heads/master
2021-01-12T04:36:25.142661
2017-01-12T15:36:00
2017-01-12T15:36:00
77,686,508
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
Http.py
#!coding:utf-8 import sys sys.path.append("..") from ztool import Http hp = Http.Http() hp.closeProxy() code,res,msg = hp.open("http://www.baidu.com") print code,res
239d76274e4381702c444c1cfbed5bc39ef7a359
7a774ebb92f7ee2a5a85eecdd84dc7a272fbd835
/app/routes/emailroutes.py
583861df312aad560bb68edeb5aa5a77a984f80d
[]
no_license
scottjr632/sheppardhanger-manager
b88c3857d765831922f4bbad134bb57eed2cfaed
272e7b53c249d5587aae75118337c620cd788b06
refs/heads/master
2022-12-12T02:47:56.923626
2019-09-21T19:51:01
2019-09-21T19:51:01
182,488,376
0
0
null
2022-12-08T05:14:01
2019-04-21T04:12:26
JavaScript
UTF-8
Python
false
false
3,390
py
emailroutes.py
import os import sys from flask import make_response, jsonify, current_app from flask import Blueprint from flask import request import app.utils as utils import app.models.email_helpers as helpers import app.business.templates.email_templates as templates mod = Blueprint('emailroutes', __name__) @mod.route('/temp...
eab8ce7ccaa0341b2a0dec80004d56b139e224ac
bacc519e7a08b1fd982b81793a9d8be6816da073
/srvup/courses/migrations/0009_auto_20180810_1645.py
ef1d9c083f5e71669462a3217e68561130c6ecf4
[]
no_license
AnkitMethwani/SRVUP
9f7e4cdb6a596053f550c6a3daad80702b89c3be
433e9347d586cc4b59d4ed6e56b6f6b765becd29
refs/heads/master
2020-04-12T17:37:58.268073
2018-12-21T01:51:31
2018-12-21T01:51:31
162,651,534
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
0009_auto_20180810_1645.py
# Generated by Django 2.0.7 on 2018-08-10 11:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0008_mycourses'), ] operations = [ migrations.AlterField( model_name='mycourses', name='courses', ...