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
e2f11ab2079570533c3369298dd720499a044f3a
daa11e8314601006873c075149443700bcec6ded
/HanPNG.py
0d88c393d7cec5b727538a30e7d417b794b3127e
[]
no_license
lijiaotou/MyTest
37ea1718fcb69e751f0efd1d858fe99ca298dd65
8dc881bf0305b7de9c68d63ef6cd62c0019dcd28
refs/heads/master
2022-01-08T18:53:33.301483
2019-05-05T02:01:31
2019-05-05T02:01:31
117,218,082
0
0
null
null
null
null
UTF-8
Python
false
false
8,945
py
HanPNG.py
import os import random import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np mode = "train" char_size = 3755 Epochs = 1 Batch_size = 300 learning_rate = 0 checkpoint_dir = '/aiml/dfs/checkpoint/' train_data_dir = '/aiml/data/train/' test_data_dir = '/aiml/data/test/' data_dir = "/aiml/da...
311278d09970d5cc1a741416ce16caf8ed2a2023
9763bebc410cced34f1760295bf9c5d267e255d8
/flipkart_trial/flipkart_trial/spiders/flipkartMobiles.py
15d4fa6a5da479fda340512884efff4efafe7203
[]
no_license
abhik-99/scraping_exercises
04fae60e0463b973163a9f24109448a2825f015f
6a7c8f07c02dfacce9d7a3409ad14cd4d9d1292c
refs/heads/master
2022-12-11T06:47:56.727907
2020-09-09T13:15:36
2020-09-09T13:15:36
261,237,849
0
0
null
null
null
null
UTF-8
Python
false
false
1,715
py
flipkartMobiles.py
# -*- coding: utf-8 -*- import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule class FlipkartmobilesSpider(CrawlSpider): name = 'flipkartMobiles' allowed_domains = ['www.flipkart.com'] start_urls = ['https://www.flipkart.com/search?sid=tyy&page=1'] ...
4e1b12676e9293b52d78254825f150a42892be70
6dc184dfe4579303575813d4408ef9b9f41972dd
/create_enum.py
01ad8614292cbe1cefb342c4f85a8d641a3513f5
[]
no_license
iahmad-khan/python-handson-CERN-4day
746ee7544ea2ff5de021fbedb80a45efd94128b9
52e5e5f0cccc1a67c9c7ac5151677e7c1af71b74
refs/heads/master
2021-01-10T10:16:40.026850
2016-03-21T13:39:38
2016-03-21T13:39:38
52,614,979
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
create_enum.py
#!/usr/bin/python def my_enum(seq): return zip(range(len(seq)),seq)
9c9b04a2bcdd6e8837254732247298aed0fb731d
ba9dad7aa48b0c5d7e1358053bb18f25e135e4eb
/Section 11: Modules and Functions/tkinterdemo.py
e05c55a6f915ecd9da15116fa158ff10a4b31cb8
[]
no_license
tarunparmar/udemy_learning_python
0f7bc12fcdce2dbf599abc5360c45d5ae4c6cb56
8f29286396e06a708fa55f568c76fbdcd056af46
refs/heads/master
2020-03-23T17:12:05.559861
2018-08-03T04:51:20
2018-08-03T04:51:20
141,848,453
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
tkinterdemo.py
try: import tkinter except ImportError: # on python 2 import Tkinter as tkinter print(tkinter.TkVersion) print(tkinter.TclVersion) tkinter._test()
d4da2166b179dabbf668d9610187f92fc4e1b860
ace1cf74efd5beea9762e811af933f59b0fcb33c
/myworks/migrations/0009_auto_20190713_0545.py
d8d0985fb1d2a0eb08b976ade46d1bc0778a27bf
[]
no_license
eclipse229/portfolio_app
631ea39457940d10cecc42a669e6634fb979f0a8
30bd17752bfa1d2fd50e27e3db28e37470ca8387
refs/heads/master
2021-06-17T22:16:59.113008
2019-08-18T16:17:18
2019-08-18T16:17:18
196,764,414
2
0
null
2021-06-10T21:51:55
2019-07-13T20:40:18
CSS
UTF-8
Python
false
false
698
py
0009_auto_20190713_0545.py
# Generated by Django 2.1 on 2019-07-13 05:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myworks', '0008_auto_20190713_0540'), ] operations = [ migrations.RemoveField( model_name='portfolio', name='image', ...
2f2cf551cae5463e048af50f4ec3710556cf7660
970bd9a7db93ff1cbdc50ce3e4ad88b72f79cfd5
/sandbox/sysadmins/network/vip-visual_dev/vipviz/__init__.py
b5054b0ce271a823f1d5dbde1e3eb45effc09ee8
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
rcarreon/robc_main
3f3b3cd3f871dbd9ac77a8c737992f65f28194d8
c7ce7712963a497857a27f2b3e610614f77511d4
refs/heads/master
2022-12-15T04:44:39.730831
2017-10-01T22:41:05
2017-10-01T22:41:05
14,350,788
0
2
null
2022-11-24T10:35:49
2013-11-13T01:46:03
C
UTF-8
Python
false
false
733
py
__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from pyramid.config import Configurator from sqlalchemy import engine_from_config from .models import initializeSQL def main(global_config, **settings): """ This function returns a Pyramid WSGI application. """ engine = engine_from_config(settings, 'sqlalchemy...
48f3e8e9540c994c0c3e5b3e49f2942d0e2bbdf1
aaa720e9b506f5eeff395073d723d07d8e815018
/5 week/range 3.py
c9905d7997db790948a704b5cceb89208f6a0cff
[]
no_license
constklimenko/PY
2a26389b17fcce83da664d42d2405abbcf642bf8
1c1e951f03236a46d2cbda7bc5e00372d86b3f50
refs/heads/master
2022-10-09T19:48:51.083248
2019-07-16T09:31:58
2019-07-16T09:31:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
range 3.py
"""Дано натуральное число n. Напечатайте все n-значные нечетные натуральные числа в порядке убывания.""" n = int(input()) a = 10**(n - 1) b = a * 10 for x in range(b - 1, a, -2): print(x)
fe13330f382bfdb63a7a1fda283d20fa382db5df
e28cc87e75474c9f7de9d9ed31ab844b20ba5e00
/P1-3-Ord/HackerRank/HeapSort.py
2195681870a99aaec47f05130801dc5ed53481bf
[]
no_license
BraulioAO/EDyA2
a2a629d5d0672868757034ce08c49371978d5805
14bdf5c27ae2c8e5b3ab3a68b961e5c673e12026
refs/heads/master
2020-04-17T20:54:54.765936
2016-11-12T05:52:58
2016-11-12T05:52:58
66,607,214
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
HeapSort.py
import sys comps = 0 def heapify_rec(list,i): global comps if(2*i+1 <= len(list)-1): comps+=1 if(list[2*i] < list[2*i+1]): max = 2*i+1 else: max = 2*i comps+=1 if (list[i] < list[max]): aux = list[i] list[i] = list[max] list[max] = aux heapify_rec(list,max) ...
b7f8182f9ab8b8f4b0852febbc5d776b83cae7d8
56a23966f31340d72e247080759f24c2a5767b7a
/code/week4_bayesianNN_logistic.py
0ef4c8e65c0d2d10193f464c44719c226a68cfea
[]
no_license
cwcyau/PhD_DNNpractice
3b3a03d3c0fb4bb95a01c7cc0eb8a306bf2c4987
c78efd83cca7c44f884e6815ea857edea71763b7
refs/heads/master
2023-01-13T10:15:24.438386
2020-11-19T18:46:34
2020-11-19T18:46:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,629
py
week4_bayesianNN_logistic.py
###################################### # 2. Bayesian NNs on logistic regression ###################################### # A simple example for regression # Importing the necessary modules import torch import torch.nn as nn import torch.optim as optim import numpy as np from torch.autograd import Variable from blit...
dde5a8bfb7e46da4c61024d83713b64b69f8fb23
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/src/desktop/manage_entry.py
2314233c38209935f9114892f128d80efc16510a
[ "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", "GPL-3.0...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
10,373
py
manage_entry.py
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
1340f885628cf16787a0b562294604c3258cd4a3
f3d19947dbc0eab2c6658f5246180b83e7ef8f42
/preprocessing_sst2.py
1529906097773007f16f82b3de8e74a09bf079c9
[]
no_license
h4rr9/TextConvNet
6dfdaa13f4cdad468deb16f3a93d764e2e3b9635
d312f2aa99757b9477b430d18f4ec8adb1c81c53
refs/heads/master
2020-05-18T05:35:39.020054
2019-05-16T19:03:58
2019-05-16T19:03:58
184,209,520
1
0
null
null
null
null
UTF-8
Python
false
false
4,564
py
preprocessing_sst2.py
import pandas as pd import numpy as np from gensim.models import KeyedVectors from tqdm import tqdm import operator import time import re import pickle as pk tqdm.pandas() def file2DataFrame(path): "saves the polarity dataset into a csv file for easy processing" test_file = open(path + "\\" + "sst.binary.tes...
589fe5a49bcf865b26aa11e223c5a253fff34e04
b51fcaacf7a43cfc4e378b27090c652ed5bd8ee2
/pyfxnode/pyfxnode/datanode.py
f13dc903450a9111ac635f90bddce08e40c60037
[]
no_license
tetocode/fxarb
56526308eb91616eb60b13152ad03dab73de7ca4
00261dc6832047375499363af2db44efa2d36008
refs/heads/master
2022-10-18T16:45:51.971435
2020-06-03T16:19:39
2020-06-03T16:19:39
269,136,511
0
0
null
null
null
null
UTF-8
Python
false
false
3,781
py
datanode.py
import logging import socket import threading import time from typing import Tuple, Any, Dict, Union, Iterable import socketpool from .rpcclient import RPCClient from .rpcserver import RPCServer from .server import Server from .udpserver import UDPServer, UDPHandler from .utils import pack_to_bytes class DataNode(U...
6c0062b997e0ab53236ae5af6742a42adce2d579
df5c5115bbda65cbb28b5398a9f6976c770bae99
/scripts/users_django.py
cd6944b26b823e7d9e4f9efc957cc5e5909435ac
[ "Apache-2.0" ]
permissive
dvalcarce/filmyou-web
7d83fb11a12185ad1c4d77f3b21a06b49556b71d
c989207268397777a1e8791b73263281effa1588
refs/heads/master
2020-04-05T02:26:55.379447
2014-06-27T11:07:49
2014-06-27T11:07:49
11,605,873
0
1
null
null
null
null
UTF-8
Python
false
false
1,080
py
users_django.py
# !/usr/bin/env python2 # -*- coding: utf-8 -*- import sys from django.contrib.auth.models import User from userena.models import UserenaSignup from userena import settings as userena_settings """ This script will create Netflix users on Django. Default password is '1234'. Instructions: $ python manage.py shell...
d48f9b39f73ce837ef1636667f7d6a25ea948401
0ab5a413ef9e332dd9b3110b0a1ab9ecd662f647
/week1/python/thresholding.py
7ab383d251e8f1e8d4c52ee40e73a73a5520e73f
[]
no_license
alexprivalov/Computer-Vision-for-Faces-2018
5358640b48195843a5712f62793d9e9d5ec008c6
0c31f4d961983fd12fea05c952fca04ccaabbdb4
refs/heads/master
2020-04-04T16:18:08.424525
2018-11-04T11:53:53
2018-11-04T11:53:53
156,072,237
2
0
null
null
null
null
UTF-8
Python
false
false
848
py
thresholding.py
# Copyright 2017 BIG VISION LLC ALL RIGHTS RESERVED # # This code is made available to the students of # the online course titled "Computer Vision for Faces" # by Satya Mallick for personal non-commercial use. # # Sharing this code is strictly prohibited without written # permission from Big Vision LLC. # # For li...
787be136b2d8cc1b1fbea0745ca45bba44b14cf6
e9cce00482348db09dd83766841011bd0f2f7f2c
/early_bird_ticket/resprune_50.py
5ca225b6028e83dcc721addc69b4670b99400d12
[ "MIT" ]
permissive
hwang595/Pufferfish
1eb0574bea25dc3d4468997bcacdf3be93f2c3fe
3f7a271a5cf48638013748275d17232a70479865
refs/heads/main
2023-06-24T11:34:41.963230
2021-07-20T16:34:00
2021-07-20T16:34:00
343,628,946
5
0
null
null
null
null
UTF-8
Python
false
false
22,466
py
resprune_50.py
import argparse import numpy as np import os, sys import torch import torch.nn as nn from torch.autograd import Variable from torchvision import datasets, transforms from compute_flops import print_model_param_nums, print_model_param_flops import models from models import * #from models.preresnet_imagenet import Basi...
e216554e976d0be7c6a709374e9fdc48ae9149bd
e944d912def98d7546d17c4303169f52517348ca
/beginners/03_collections/01_lists/02_create_list.py
a225e8f5ce90ae085e0e0507acbb5d79b44bed39
[]
no_license
balajich/python-crash-course
0710854de3cd04695f969cbfe774ef336f707f48
e62b578f7dc93f6a47fbae00dac2d496b985fe8d
refs/heads/master
2021-07-30T16:00:45.392119
2021-07-29T11:41:49
2021-07-29T11:41:49
192,034,679
9
0
null
null
null
null
UTF-8
Python
false
false
297
py
02_create_list.py
''' Various ways to create list ''' if __name__ == "__main__": # Create list l = [1, 2, 3] print(l) l1 = [] # Create empty list l1.append(1) l1.append(2) l1.append(3) print(l1) # List can have multiple data types in it l2 = [1, 'a', 1.1] print(l2)
57b679376eb897d502221ba2142e41798662f9c5
29d60a87dfb85fdbdb5c4d36e380f7f5e0ccf9fa
/CSV_representation/main.py
e7686dc86ee0667974fbf8b2b98d6669669b556e
[]
no_license
fatfat0/codewars_kata
8aea627b535c072557eb02f61ec574020d083268
a01560aa0d9ebeff24e775e50bdf05cbcb3631a8
refs/heads/master
2023-03-06T18:17:10.452116
2021-02-02T21:52:32
2021-02-02T21:52:32
328,206,368
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
main.py
def toCsvText(array): result = [] for line in array: result.append(','.join([str(i) for i in line])) return '\n'.join(result)
0162ca0cd6fc5eb27e260c01d70139c426508e87
1a41bed5bfae25cb06163126cbc2e6d28b18d7c9
/myApp/urls.py
796d63551a023b6da9db57a4f5150d257f1937af
[]
no_license
IgaIgs/web-app-gamification-fdm
5ae9fc92daf50e3468e0aabe447bf669c9632203
d365b19e6258a557438da05cdf0f48ec306e8706
refs/heads/master
2023-06-28T17:44:25.240582
2021-07-28T10:48:11
2021-07-28T10:48:11
347,339,127
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
urls.py
"""myApp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
73050e11bec69294e9789dd809b72804bfc3013f
ee88d3aaba1708bbb7779aab5ca696ff26b626dc
/python/cpc/states/base_states.py
fc19a8caf3df922e2adc00fff19aeb3eb5a43a94
[ "BSD-3-Clause" ]
permissive
cbschaff/benchmark-rrc
f72a4e507940a615c75cd68ecef50dcafc22e573
6fb12eecbaa778c60c5728dba4414330c901b09b
refs/heads/master
2023-06-28T07:29:53.683087
2021-08-03T15:31:30
2021-08-03T15:31:30
363,255,977
12
4
BSD-3-Clause
2021-08-04T09:10:31
2021-04-30T20:50:58
Python
UTF-8
Python
false
false
46,271
py
base_states.py
import time import numpy as np import pybullet as p from scipy.spatial.transform import Rotation as R from mp.states import State from mp.utils import Transform from cpc.states import utils from mp.grasping import get_planned_grasp from mp.grasping.grasp_sampling import GraspSampler CUBE_SIZE = 0.0325 DAMP = 1E-6 EPS...
62221393a53998a4802a176546bb0f7929a14737
1dd6a8d7b171348b3f73b320bb11badf7b0fcba0
/unregister/models.py
d4e643dc9bb48fb6895c20c491b314862990dfdf
[]
no_license
unicefuganda/rapidsms-unregister
366552136f4009ea6a4302fa5737b5433a5aff70
00523bc36daee35ffb251108dff138a7aa332ec2
refs/heads/master
2020-05-31T13:26:31.971942
2013-10-28T12:04:04
2013-10-28T12:19:41
2,215,108
0
1
null
null
null
null
UTF-8
Python
false
false
2,229
py
models.py
from django.db import models from rapidsms.models import Connection from rapidsms_httprouter.models import mass_text_sent, Message from poll.models import poll_started from django.db.models.signals import pre_save import logging log = logging.getLogger(__name__) class Blacklist(models.Model): connection = models....
53fbcdaa95020a41fe82ef4c8c4e5e2a56f49b77
684ddb111ea523227a2b2bfbe31ed6f31fbf9a77
/Unified_Model/Examples/Prediction_Result_Return.py
442106e232069e5d0704fb35ba37feab777b8e1c
[]
no_license
zjg540066169/QI
3bdfb8fd269f8937a36bbe83c7719bb1261dc8b0
e67f7f04da954098f2bc67a176e88ba737157e51
refs/heads/master
2020-04-01T22:49:02.948652
2020-02-27T01:36:22
2020-02-27T01:36:22
153,728,000
0
0
null
null
null
null
UTF-8
Python
false
false
2,732
py
Prediction_Result_Return.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jul 13 09:18:44 2019 This class is a subclass of Prediction_Result_Return_base to send the message prediction result . @author: jungangzou """ from Unified_Model.Based_Class.Prediction_Result_Return_base import Prediction_Result_Return_base import tim...
428430e4c138e1a7bb022963d6e7266b9427e7d6
4d2a27b5a4810b9d2b31cf67c12c517f46e83218
/Code/DaJuan/Python/Lab1_Grade.py
d19aab0d072cfdfb105e813b503929da3ca23323
[]
no_license
sbtries/Class_Polar_Bear
3e8251b653c110b069b59e13390a1da9f33fa291
48ea73df4c241b7ddd07c8fb0a2f310c50b2d06c
refs/heads/main
2023-08-25T01:52:38.423468
2021-10-12T07:43:38
2021-10-12T07:43:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
Lab1_Grade.py
import random #<----import random for extra challenge 1 grade = input("Enter a test score: ")#<---3.1 numgrade = int(grade) opp_score = random.randint(0, 101)#<--Extra challenge 1 difference1 = numgrade - opp_score difference_low = opp_score - numgrade # Extra Challenge 2 ext_Chall2 = numgrade % 10 if ext_Ch...
0a2611d803829ef7a89fb25563f73ac27712d9c3
8393edc1b4d7bfa0093fafc8d5ef3732bbc398ff
/pages/login_page.py
214dfb98eecfd4a52bdafa19f948e2b5ad42d1a8
[]
no_license
amol-a-kale/framework_pom
cd22029602793981501bba5ff97ea66655cb1c7f
024a3f1db7addcfb914b656a481459a9a8a0420f
refs/heads/master
2022-11-25T23:31:11.090777
2020-07-17T12:01:12
2020-07-17T12:01:12
280,405,084
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
login_page.py
class Login: def __init__(self, driver): self.driver = driver username = "//form/div/input[@type='text']" password = "//input[@type='password']" login = "(//button[@type='submit'])[2]" def getusername_box(self): return self.driver.find_element_by_xpath(self.username) def getp...
e3c87700aeb3812238b18bb74f8fb89f846a3821
d6b91276cea2fa0e860005ef3cb5720060502be1
/study_summary/src/FileWriter.py
7999ac6b240dd1773ef448d84a58e456c63cd036
[]
no_license
cherbie/lineartools
8c4f59332fefd08ff8512d34946ddf47cfc5a3cc
7f8ccc25b9d9d0d900df0ef90abba75c8a141114
refs/heads/master
2022-11-14T01:48:53.626937
2020-07-06T14:56:29
2020-07-06T14:56:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,073
py
FileWriter.py
import os from openpyxl import Workbook ''' Class responsible for the writing of the output xlsx file ''' class FileWriter: ''' @param dirname - name of the output directory @param name - file name to be placed within the output directory @param tabs - list of tabs to be included in output xlsx file ...
9856428dc0e53179ad677c2e14212232851bba1f
f55cf40688c5a8e3447cdc86216aaf24fcc3c384
/decorate/decorator_param.py
1b6730068a3e366773f859ca5e7b02f2be83a144
[]
no_license
saifulazad/LearnPython
aa0d9ee2f4ae35e8fdefc14cbc15dfec623af67a
2459e481d320a9fe79ed9d662acb9577a240bce0
refs/heads/master
2021-01-18T13:54:01.315246
2016-10-31T08:54:14
2016-10-31T08:54:14
69,938,210
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
decorator_param.py
from functools import wraps def debug(prefix = ''): def decorate(func): msg = func.__qualname__ @wraps(func) def wrapper(*args, **kwargs): print(prefix + msg) return func(*args, **kwargs) return wrapper return decorate @debug(prefix='***') def add(...
cf71f9d719a6ff21314ee72539e8bc36a8090aad
b4dc61698469d5d9432006a299246e183e457044
/Src/lib/utils/tests/test_Fm.py
27d15cc6d9c22d83fbd363f849c2c4d680dd01f8
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
svn2github/pyquante
77630edd041a5adaed490b1275c0f2068d818a42
e46827bb23c61480244818ec979583aaf526ea47
refs/heads/master
2020-05-27T21:23:13.786745
2016-09-06T14:21:56
2016-09-06T14:21:56
83,676,122
1
1
null
null
null
null
UTF-8
Python
false
false
168
py
test_Fm.py
# A formula that works of Boys Function from scipy.integrate import quad from scipy import exp def Fm(m,x): return quad(lambda t: t**(2*m) * exp(-x*t**2), 0, 1)[0]
27d9eb4116478e50b2397bcf59e58c6b007b9309
6a5c25a6a29474da8b8bc3356b1880d02dc026af
/PythonHomework/homework1.py
7b2f4bfd016c07d73efa6836b041d3091b5a71eb
[]
no_license
c3730915/Python_spider
68b1357ded7960d5896a827586c57af05fb5013a
c9e7a9c1ac70decda16fe701aea9fafb423d8c44
refs/heads/master
2023-04-13T02:14:34.359409
2021-04-27T06:07:00
2021-04-27T06:07:00
292,221,071
1
2
null
2020-09-08T05:16:06
2020-09-02T08:14:09
Python
UTF-8
Python
false
false
1,002
py
homework1.py
import urllib import bs4 def askURL(url): head = { "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36" } #请求头,伪装成浏览器 request = urllib.request.Request(url, headers=head) html = "" try: response = urllib.reque...
b5500c8d286f7e59bb2a8c1fdad3b9938ccb4304
3b8c07e1ab4420240a7d81c21ce18e8f703d5bc0
/week-1/стоимость покупки.py
4c4c92e8d8cd7d1f84c1de0fed7e40ef3d958c36
[]
no_license
dima-panchenko/Python
891b7f8c4a606d4f29a5cb2190fef1aff8e7064a
1d2b6667a67263472e3394eec55c813e88373deb
refs/heads/master
2021-01-04T00:48:06.200445
2020-04-19T14:58:14
2020-04-19T14:58:14
240,309,443
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
стоимость покупки.py
A = int(input()) B = int(input()) N = int(input()) cost = (A * 100 + B) cost1 = cost * N print(cost1 // 100, cost1 % 100)
150a19dde6f835fa88f7e8105b1f9d5dcb70fd78
ec117666bc113e8fa8e6f76b36780f11c492cb91
/shopyoapi/uploads.py
5516e74ea8dac54bab77631e575b27aca535a25c
[ "Apache-2.0" ]
permissive
shopyo/MarketFlow
cec9a8b093945e3ba64c133f02d10df5e367bc16
3e440ffadfc495def62359ffd7cb465c1fad1dc2
refs/heads/main
2023-05-06T08:17:22.178409
2021-05-21T18:38:09
2021-05-21T18:38:09
369,617,784
6
1
null
null
null
null
UTF-8
Python
false
false
1,250
py
uploads.py
import datetime import uuid from werkzeug.security import generate_password_hash from app import app from shopyoapi.init import db from modules.box__default.admin.models import User from modules.box__default.settings.models import Settings def add_admin(email, password): with app.app_context(): user = U...
a8418c0974b45ce78077eb993fd62abc12ac10a0
1c98212bc5c392120830b854d1321d8e4fedc70d
/11.py
8b54e52e1877066217c66456d095f45c56c777aa
[]
no_license
elutk/work
194ba300449f9a51283b6baacc41bbaececa26a5
8c315d36a6a9412cabfb20aab391fa47d7d0af71
refs/heads/master
2020-08-10T13:18:55.124385
2019-12-26T20:02:46
2019-12-26T20:02:46
214,351,111
2
3
null
2019-10-11T05:49:56
2019-10-11T05:31:37
null
UTF-8
Python
false
false
991
py
11.py
#имя проекта: work #номер версии: 1.0 #имя файла: 11.py #автор и его учебная группа: Е. Уткина, ЭУ-120 #дата создания: 05.11.2019 #дата последней модификации: 26.12.2019 #описание: Имеется коробка со сторонами: A × B × C. Определить, пройдёт ли она в дверь с размерами M × K #версия Python: 3.8 A = int(input("Вв...
c10874564a3f556d06af3d33ce9c075371a929b8
410ef1dd9e716ae7353eed867bd415ef0c0757fa
/scraping_webpage_gcp/Cheques BCRA/1- bajada/_02_transforma_datos.py
afc9bf6b7ab86245c29cbbb672dfc25440be47a5
[]
no_license
laiunce/helpfull_code
ba428a90ab91a5faa0c4609ae16aaa75836cdd02
bf297622a4dab2f0760de2279c4334a5c8705971
refs/heads/master
2020-04-18T14:46:57.956372
2019-04-10T03:44:27
2019-04-10T03:44:27
167,597,641
0
0
null
null
null
null
UTF-8
Python
false
false
7,096
py
_02_transforma_datos.py
# -*- coding: utf-8 -*- import re import pandas as pd import zipfile import os def cuil_cuit_cdi(data): columna=[] for row in data[0]: columna.append(str(row[0:11])) return pd.DataFrame(columna) def nro_cheque(data): columna=[] for row in data[0]: columna.append(...
402e5e193a5a3dd2956131e1ef47ef615d0f933d
000e97eb3953e442cd0813b95b22ce3e456f680d
/setup.py
667d7175036a31112e8c17c18b08ea0457c580fb
[]
no_license
dncnbuck/hdr
0e4aa556d376d51e261896aae7c7a0f510d5d804
688597fbfc09ff86e8f55e972a80298f4ca903c7
refs/heads/main
2023-04-10T02:19:48.137187
2021-04-22T09:06:52
2021-04-22T09:06:52
342,338,718
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
setup.py
from setuptools import setup, find_packages import re with open('version', 'r') as properties_file: properties = properties_file.read() version = re.search(r'version=([0-9.\-A-Za-z]+)', properties).group(1) setup( name='hdr', version=version, description="Python project", classifiers=[], keywo...
b9c89857fb9139b458ba4ab5c13020e7f15d2db0
45321298d1b2267f4abe3b74f51e4b997230f987
/backend/config.py
2a89076c0040c3bf8f7f045d0d944201ea7ea432
[]
no_license
JoshSanch/cs411proj
dd9d29149d228c240853cfd20f2cad5831f4a244
1ea719adec1ed5e8ecb76ba475cb00cca5b95789
refs/heads/main
2023-04-19T07:16:27.108048
2021-04-30T03:33:41
2021-04-30T03:33:41
353,794,472
1
0
null
null
null
null
UTF-8
Python
false
false
346
py
config.py
from os import environ, path from dotenv import load_dotenv basedir = path.abspath(path.dirname(__file__)) load_dotenv(path.join(basedir, '.env')) class Config: SQLALCHEMY_DATABASE_URI = environ.get("DATABASE_URI") SQLALCHEMY_ECHO = False SQLALCHEMY_TRACK_MODIFICATIONS = False REQUEST_PASSWORD = envir...
df535926cfac7bb0e682145df1affdca693d2e1d
e4b50a6b31101985edabd8242457463e87b25876
/primenumbers.py
016102655388f0cc37c4cb6b99c2d7259c2e11c5
[]
no_license
NoneNgai/Codium-Test
ba30f3add3bd0dcf8e9bc6e96dd5b79ba3459ca8
a89502448215e794cb6369ca929d5e170b3e9012
refs/heads/main
2023-07-12T22:04:19.827080
2021-08-12T15:00:51
2021-08-12T15:00:51
395,340,241
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
primenumbers.py
# Medium 1. Write a program that finds all prime numbers up to n for input n. Example Output: while True: x = int(input("Enter range of number you want to find prime numbers: ")) if(x>=0): break; def prime(n): div = 0 for i in range(1,n+1): if(n%i==0): div += 1 if(...
601e9d921a7387f20fe41e122c54ff75dfa461d6
22896e62b5e892c1b295fd84e37dc412f6687f30
/fredirc/client.py
fdd9cc829846341b78cb9df4d77514833e643e34
[ "BSD-2-Clause" ]
permissive
worblehat/FredIRC
28beb171112c52c493117ddc96c0b35eda1e2fc0
b2bc4ab3a816b61cd6d02a1a1425e30a5a73bdc7
refs/heads/master
2021-06-04T06:10:55.060731
2020-09-26T15:07:09
2020-09-26T15:07:09
15,224,318
4
3
null
2015-10-08T19:43:26
2013-12-16T11:39:30
Python
UTF-8
Python
false
false
23,882
py
client.py
# Copyright (c) 2014 Tobias Marquardt # # Distributed under terms of the (2-clause) BSD license. """ Classes related to the basic IRC-client implementation of FredIRC. """ __all__ = ['IRCClient'] import asyncio import codecs import logging import time from fredirc import messages from fredirc.errors import Connecti...
542192f9a7baf6461068462c2c394ae493b2665d
cf7b827958166c8569eb58deb511cc3f07567741
/in_Python_v2/1817 Finding the Users Active Minutes.py
31cdad1d2c4f560ac22574b99d7d157b5a18e927
[]
no_license
YangLiyli131/Leetcode2020
e4e36eb36b1983f73b0e733455b4a7953dfebe6d
20623defecf65cbc35b194d8b60d8b211816ee4f
refs/heads/master
2023-08-22T06:00:55.924112
2021-09-18T19:04:15
2021-09-18T19:04:15
251,426,203
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
1817 Finding the Users Active Minutes.py
class Solution(object): def findingUsersActiveMinutes(self, logs, k): """ :type logs: List[List[int]] :type k: int :rtype: List[int] """ d = {} for x in logs: a,b = x[0], x[1] if a not in d: d[a] = set() ...
46cf709ff3fc206e1e4bb6c9bb0cefac9d8a97b9
ade0514f19210b4df851ddd24b30696b3d3cad76
/main.py
c716cade89b672e067d0bf3373823da9f611e522
[ "Apache-2.0" ]
permissive
ariel415el/SoundEventDetection-Pytorch
269dee223dd8cda06a8cc868c45ae080634a76e1
22591921bb84aace01ae4605506fb95892935689
refs/heads/main
2023-06-08T13:16:51.507311
2021-07-02T10:53:44
2021-07-02T10:53:44
320,398,562
6
0
null
null
null
null
UTF-8
Python
false
false
6,841
py
main.py
import argparse import os import torch from torch.utils.data import DataLoader from train import train from utils.common import WeightedBCE def get_spectogram_dataset_model_and_criterion(args): from dataset.spectogram.spectograms_dataset import preprocess_film_clap_data, SpectogramDataset, preprocess_tau_sed_dat...
081d55474eae02b6d58b96fe1a44e5ab0b8188bc
0bc399e4054192b901263844d481fb27ee391aa9
/collibra_core/api/attribute_types_api.py
653062fb2e01807f69c0d875eb9c2c34c825d4a9
[]
no_license
chorvathdev/collibra-core
342509234fc8c91a3bcf3b91a54444c7c313ceed
db7ae3fb57df088ce3512801ba7a2bfccd0508c5
refs/heads/master
2022-12-11T19:33:29.487697
2020-08-31T23:29:46
2020-08-31T23:29:46
291,847,090
4
3
null
null
null
null
UTF-8
Python
false
false
51,866
py
attribute_types_api.py
# coding: utf-8 """ Collibra Data Governance Center Core API <p>The Core REST API allows you to create your own integrations with Collibra Data Governance Center.</p><p><i>Create custom applications to help users get access to the right data.</i></p> # noqa: E501 The version of the OpenAPI document: 2.0...
9de44533b58040778a7b6f6fa36f80de2fb007e6
1a639d185f9c883b7bebf33c577c58b22ac93c7e
/concurrent_parallel_2/02_producer_consumer_processes.py
8a45afb9c2ee7b9670cd45574cf9db7b8bb7e120
[]
no_license
gofr1/python-learning
bd09da5b5850b1533a88b858690ed4380b55d33e
19343c985f368770dc01ce415506506d62a23285
refs/heads/master
2023-09-02T15:42:27.442735
2021-11-12T10:17:13
2021-11-12T10:17:13
237,828,887
0
0
null
2021-11-12T10:17:14
2020-02-02T20:03:42
Python
UTF-8
Python
false
false
1,053
py
02_producer_consumer_processes.py
#!/usr/bin/env python3 # threads for i/o # processes for cpu # import threading import multiprocessing as mp import queue import time # serving_line = queue.Queue(maxsize=5) serving_line = mp.Queue(5) def cpu_work(work_units): x = 0 for _ in range(work_units * 1_000_000): x += 1 def soup_producer(s...
e574f8cbadce8919f5f97869a0c2921580858710
0e3762c430a27e3392bf76bf70b672f02df7017e
/links/links_Estacio.py
5775b0995a240d9a45e5a7a4315c2c914e99ff83
[]
no_license
herbertsds/labore_scraps
447afb80688ac94994c1fa87f3526e3a144009b7
d4dba24787309d0ce7335fc841ffee7f7254b4be
refs/heads/master
2021-04-17T15:02:25.510310
2020-03-26T23:38:18
2020-03-26T23:38:18
249,453,399
0
0
null
2020-03-23T14:28:21
2020-03-23T14:28:20
null
UTF-8
Python
false
false
1,790
py
links_Estacio.py
link = [ "https://www.linkedin.com/school/estacio/people/?facetFieldOfStudy=101409", "https://www.linkedin.com/school/estacio/people/?facetFieldOfStudy=100564", "https://www.linkedin.com/school/estacio/people/?facetFieldOfStudy=101460", "https://www.linkedin.com/school/estacio/people/?facetFieldOfStudy=...
6f34c3b7719f21c2cdec11499c979d5be9e9ce08
6708f98857f408f86359876410ca183317d3a3ab
/cursoPython/aula7a.py
c5ac9136f9d79d3c88a3fd57d2c919ca8a908d83
[]
no_license
diegohbrandl/aprendendo-python
cce58c26b7f9705ae05a5012cdbaf05113d3f475
8383e7a81fc1b8bfa511a470936ea35e5591da6e
refs/heads/master
2022-07-02T16:27:21.044452
2020-05-12T18:59:37
2020-05-12T18:59:37
263,365,303
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
aula7a.py
n1 = int(input('digite o valor 1 >>> ')) n2 = int(input('Digite o valor 2 >>> ')) s = n1 + n2 m = n1 - n2 mu = n1 * n2 d = n1 / n2 e = n1 ** n2 di = n1 // n2 print('A soma >> {}\n subtração >> {}\n multiplicação >> {}\n divisão >> {}\n elevação >> {}\n divisão inteira >> {}\n'.format(s, m, mu, d, e, di))
b8424e59ea00efe0744efb590cfb29927bdba5aa
3ae6eede1a64548787cc11cce780b72aa394f7ba
/Prueba.py
a711cb1ad982d57735bd0d00b968980fc86e3d7c
[]
no_license
jorgeSalazar19/Computacion-Grafica
a1a14c57df92f538d64b2adb8dec985892591c82
d059f444e73eb35193a034889fdf83df71e1ed2f
refs/heads/master
2021-01-11T02:45:31.923101
2016-10-14T17:17:25
2016-10-14T17:17:25
70,931,216
0
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
Prueba.py
import pygame ANCHO = 640 ALTO = 480 BLANCO = [255,255,255] NEGRO = [0,0,0] ROJO = [255,0,0] VERDE = [0,255,0] AZUL = [0,0,255] if __name__ == "__main__": pygame.init() pantalla=pygame.display.set_mode((ANCHO,ALTO)) fondo = pygame.image.load("Fondo.jpg") Sp = pygame.image.load("Warturtle.png") Sp_X = 100 Sp...
93b63e55d4ba3930ecded591ae86c12267ca2a79
c5f7019c52cd91a3d9505943b9d866539f2fb0bc
/synapse/tools/cellauth.py
6e3e518684ed9e4d95718227615cbf3d754ab4c3
[ "Apache-2.0" ]
permissive
vertexproject/synapse
ce31699fcb10cb2c870d448915f4d4524247e2d0
1808dff78921b4bfdb451a12ee5d03427a5295b9
refs/heads/master
2023-09-03T23:48:26.584015
2023-08-31T20:34:35
2023-08-31T20:34:35
37,228,107
307
63
Apache-2.0
2023-09-14T21:53:32
2015-06-10T23:29:41
Python
UTF-8
Python
false
false
12,030
py
cellauth.py
import os import sys import asyncio import logging import functools import traceback import contextlib import synapse.exc as s_exc import synapse.common as s_common import synapse.glob as s_glob import synapse.telepath as s_telepath import synapse.lib.cmd as s_cmd import synapse.lib.output as s_output import synapse....
cf573af397c3a86f3c5382f8aa0611c6f2639456
bb8ff001b2ec26769f696b78ef183bdcbc9f9171
/LABS/Lab21/ls.py
fa5015b51e8951e1b52ef72ae75d7e311b67dc5f
[]
no_license
LiangJoshua/CS152
0e2910e897a4c2fbb88f9184bc8b6719ee4ece3d
379d721c93c7c7a44439f2554c5d3b7396fecd54
refs/heads/master
2020-03-29T20:53:17.356083
2018-12-07T20:50:48
2018-12-07T20:50:48
150,337,000
2
0
null
null
null
null
UTF-8
Python
false
false
257
py
ls.py
import subprocess # Be cautious using "shell=True". # Bad things can happen if a user controls the command. p = subprocess.Popen("ls -l", shell=True, stdout=subprocess.PIPE) for bline in p.stdout: line = bline.decode('utf-8').rstrip('\n') print(line)
0388aa2413daeb6fe6001f8d162a3c4314ca43f8
4d2238210813c1581bf44f64d8a63196f75d2df4
/craking/exercise1/heapsort.py
09eb402cce00430dcf4354653d6886058dff1741
[]
no_license
wwtang/code02
b1600d34907404c81fa523cfdaa74db0021b8bb3
9f03dda7b339d8c310c8a735fc4f6d795b153801
refs/heads/master
2020-12-24T14:10:33.738734
2012-12-14T04:24:47
2012-12-14T04:24:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,677
py
heapsort.py
""" heapsort first, write the max heapify function, which takes O(lg(n)) second, build a max heap, which costs O(n) And then, retrieve the max value, and re-heapify the rest heap, overall runtime is O(nlgn) """ def maxHeapify(arr,i,last): """ arr is the input arr, i is the index from which start to heapify heap...
3368ee680b028dd43d2769c7e9a4ed3c14d226a1
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/burness_tensorflow-101/tensorflow-101-master/serving/train_mnist_softmax4serving.py
1c95f7f91054144b83cfa2c25dffca5982c50e68
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
3,380
py
train_mnist_softmax4serving.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import tensorflow as tf import time import json import sys sys.path.append('../') from algorithm import input_data FLAGS = tf.app.flags.FLAGS tf.flags.DEFINE_string("data_dir", "../algorithm/...
764345be12b67916a2acd033bdce0c0645c53988
60d6b8501d0be546437b26a6ee1f9fab97ec3897
/platypush/entities/sensors.py
0542c01f16e1103405045dbef868a78331549fb2
[ "MIT" ]
permissive
BlackLight/platypush
68284a85b2f9eef303d26b04530f075927b5834a
446bc2f67493d3554c5422242ff91d5b5c76d78a
refs/heads/master
2023-08-31T21:01:53.519960
2023-08-29T22:05:38
2023-08-29T22:05:38
109,421,017
265
25
MIT
2023-09-01T23:15:49
2017-11-03T16:56:24
Python
UTF-8
Python
false
false
5,832
py
sensors.py
import json import logging from typing import Optional, Union from sqlalchemy import ( Boolean, Column, Float, ForeignKey, Integer, JSON, String, ) from platypush.common.db import Base from .devices import Device logger = logging.getLogger(__name__) class Sensor(Device): """ Ab...
9f0930502971861ef87d6ff040ed9b9748c04b99
dbb518a7dbc2ac7170d45121a717d40f505caad0
/sak/commands/release.py
31db20fc41950a165592984cf8b57d7269113921
[]
no_license
steffenschroeder/sak
a777ca3ff44c5b2d7af6d56f93ad6d08817a28f4
db32b6446df366c5d1c0c2668c516321913a9771
refs/heads/master
2021-08-30T23:31:10.021701
2017-12-19T20:57:16
2017-12-19T20:57:16
114,809,020
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
release.py
def release(name): print "Releasing " + name
aeaf149a18afa3e91afedd0ba28fad19e5a7a6e4
6481f7532fef50e1dbe9e6d590cc1c298faedfba
/python/RPi/switch.py
afa6e14bb55f790c08904863e80a53446e29e752
[]
no_license
christopher-lawrence/Astronomy
684901979cecb6ec25b378f994146ee8a7328413
43760dd19d8427e9b17d7f39b0daec4be9407408
refs/heads/master
2021-05-28T07:50:40.605190
2015-01-27T23:24:16
2015-01-27T23:24:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
switch.py
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) input = 11 output = 23 GPIO.setup(input, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.setup(output, GPIO.OUT) GPIO.output(output, GPIO.LOW) try: while True: print(GPIO.input(input)) GPIO.output(output, GPIO.input(input)) except KeyboardInterrupt: GPIO.cleanup() ...
f3e1e321bbaaecfbb8de00852f1a351deb6f8c21
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/github/komand_github/actions/add_issue_label/schema.py
aca3416082545ed9aa63a7f71607d159b777297f
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
1,571
py
schema.py
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Adds a label to an issue" class Input: ISSUE_NUMBER = "issue_number" LABEL = "label" ORGANIZATION = "organization" REPOSITORY = "repository" class Output: SUCCESS = "success" class A...
66f2751f706540a9d05a6906231d62691a4cd310
0c831d3cf69628fd5b91e757dede7d6d6db09734
/crawler-3-multithreading.py
d46b7ffd5b99e2209a2bf8b11142ca1a16a9645d
[]
no_license
Chisanan232/Crawler
e9c81ac51830f984e0db331cb7703d5afa9287dc
8941f65bc63fce9edb044449eab11854eb5a2a22
refs/heads/master
2021-07-10T12:58:22.444995
2020-07-13T05:51:38
2020-07-13T05:51:38
163,063,401
1
0
null
null
null
null
UTF-8
Python
false
false
17,951
py
crawler-3-multithreading.py
from bs4 import BeautifulSoup from requests.adapters import HTTPAdapter from tomorrow import threads import requests import random import time import csv import sys import os class DefineParameter: def __init__(self, save_path, year_initial, year_conclude): self.path = save_path se...
f0000f1d93c374eb001a53ea2dde7a8ba4e1d6cc
b47df287b851737ccb5d418691113f897d4d23e2
/InsertCustomerLoginData.py
b36e3a0e5a49887f77bd4017f387bb2acafaa5b9
[]
no_license
dpraja/postgresheroku
ed32f3066dfb3a5b9ca1e4ba2bea03cf9e6c44ec
c2930c7e027ea5607abe9620d849914e36f2cafe
refs/heads/master
2018-09-27T18:47:10.237840
2018-08-25T08:04:26
2018-08-25T08:04:26
118,090,506
0
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
InsertCustomerLoginData.py
import json import datetime import psycopg2 from flask import Flask,request,jsonify app = Flask(__name__) #@app.route('/InsertCustomerLoginData',methods=['POST']) def insertcustomerlogindata(request): business_login_id = request.json['business_login_id'] customer_login_mobile = request.json['custome...
d286bde49d756fbd2b6f94eeeb43bc00880e1959
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/musiqu.py
e6230a350395f1114ad14dac2d9edc5903bf8bee
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
85
py
musiqu.py
ii = [('WestJIT2.py', 1), ('FerrSDO2.py', 1), ('HogaGMM.py', 13), ('MackCNH2.py', 1)]
fb01252e9a677efbb65d792cd458114e7cc4803f
50a06da34fd4eb2d6295f217c7f8df4972bb4757
/tools/disclosures/declarations/views.py
f55f59c5c2c5c563e109df3913c00ca34a780b48
[]
no_license
dormouse-jenny/smart_parser
4ef05b6e392e5d7dc0d0dd887712a11038c810d1
1954822935ab9154edbdee8d000442758604a731
refs/heads/master
2022-12-05T21:32:26.655260
2020-08-20T05:28:17
2020-08-20T05:28:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,345
py
views.py
from . import models from django.views import generic from django.views.generic.edit import FormView from .documents import ElasticSectionDocument, ElasticPersonDocument, ElasticOfficeDocument, ElasticFileDocument from declarations.input_json import TIntersectionStatus from django import forms import json import loggin...
088c561aaaf7752007073f718fc71d562921469e
67c8af94e85c640881e79686fdd223803d30758c
/nhentai_new2.py
0c9cfcc40e454b644e07f7bb6d8bd5830741d075
[]
no_license
AnnieBrighton/nhentai
2ab866a87f8e19257c0c9df9eb54f079cd037365
53437758c3352b30ada54c2541be9d3e8a7da008
refs/heads/master
2023-02-09T09:02:37.661422
2022-12-13T11:28:00
2022-12-13T11:28:00
89,824,250
4
0
null
null
null
null
UTF-8
Python
false
false
12,543
py
nhentai_new2.py
#!/usr/bin/env python # coding: utf-8 import requests import lxml.etree import sys import codecs import re import time import os import zipfile import getopt import shutil import errno import select import logging from time import sleep from threading import Thread from queue import Queue from subprocess import Popen ...
32573aba7c767f8ae7af9a05c29ac70019bbd1ed
b683c80bbf9e38caf40a653deb72f70ee417c526
/handlers/chat.py
fba133b7d47a2503c30f17c618d723fe6d0f15de
[]
no_license
qs649299546/ChatServer
0060739c84150d4be5073716f51505274b725f7d
07cdf2178386b00ad8dc3a7700d190cddefb4a5e
refs/heads/master
2020-05-05T08:03:43.464065
2019-04-06T15:25:57
2019-04-06T15:25:57
179,848,876
1
0
null
null
null
null
UTF-8
Python
false
false
9,372
py
chat.py
import copy import json import requests from tornado.websocket import WebSocketHandler from sqlalchemy import or_ from models.chat import UserMessage from .base import BaseApiHandler from settings import UPSTREAM endpoint = 'message/user_message' class ChatWebsocketHandler(BaseApiHandler, WebSocketHandler): co...
0d56d0b792b9028222e25e419eaa22941cc7ede1
8752020f19da2eb2511d26964a5d98a39792db8b
/wsgi/test_data.py
f4f75ea7119288cdd6ec8ba08d2c6ad3e19c6e77
[]
no_license
pamuditha/Tracking-System
cba07fd2a13f38447e1cba5802d63b1ba32154cb
341e1581f4adfaae7885874ff8f9f79d437d3201
refs/heads/master
2020-06-01T10:14:46.112769
2015-07-22T13:43:14
2015-07-22T13:43:14
32,061,185
0
0
null
null
null
null
UTF-8
Python
false
false
1,018
py
test_data.py
import random from pymongo import MongoClient from traffic_const import Const class TestData: def insertTestData(self,latitude,longitude): #6.914892, 79.972245 sliit location plat=latitude plon=longitude client=MongoClient(Const.MONGODB_URL) db=client.trafficm...
e86db22728e742cfe65940a0b35f3c09f1acae4f
9151a90de1ca3360cb4ffd82534a73ee55a9ee19
/EarthwormGame.py
386aad962b60b3d96eba61ce3ea0e3845f457e8b
[]
no_license
gooriiie/PythonAlgorithm
c595b31099ede85531b5e6e3e1bde1e33725182d
3d984ba4ab5a9e2c52ab188d645460363561e4a9
refs/heads/main
2023-07-12T17:06:19.281464
2021-08-20T05:01:59
2021-08-20T05:01:59
354,237,827
0
0
null
null
null
null
UTF-8
Python
false
false
4,665
py
EarthwormGame.py
import sys n = (int)(input()) # 정사각형 크기 k = (int)(input()) # 사과의 개수 turnNumber = (int)(input()) # turn 방향전환 횟수 global earthworm # 지렁이 머리부터 꼬리까지 판에 위치하는 index를 리스트에 저장 earthworm = [[1, 1]] global earthwormSize # 지렁이의 크기 earthwormSize = 1 global direction # 지렁이가 향하는 방향 direction = "R" global arr # 판을 위...
adaa94088668ee53ae10a887b90ff692dd1f0018
a30fd3fbb3cc20eec07cd4878214b29ebe89af33
/Chapter3/task3-2.py
c6f104a85a5d9134aee9e4dfbf7bd4d8b8ecf4f3
[]
no_license
cmdtvt/R421-python-course
310cbffe727ea39dc184b4e34d1c73c2a1fde01a
bdf23396bbce31ce97e6d1e74c4e2e48b1ba42b4
refs/heads/master
2023-08-16T13:22:02.170134
2021-10-10T09:21:06
2021-10-10T09:21:06
404,047,329
0
0
null
null
null
null
UTF-8
Python
false
false
1,438
py
task3-2.py
''' The second exercise takes another step towards more realistic programming structures. In this exercise the idea is to create an if-structure, which has another if-structure inside it. Basically the idea is to implement the following structure: ######################### if [selection]: [code] if [selection]: ...
caf32beabc96ac2b60b531e38afa637be1bdca1a
d7cfcee8da3707caa6b48f0869d26f59e0006d59
/boolean.py
04f826db93181f0b99ec1ff947f0a11dfaf561d4
[]
no_license
seungbinpark/H-omiez
65103dca7e00303f8645aae9a01d68d45ff66612
8b53223c78a166941ad842d37e0b77c2b4bb33cb
refs/heads/master
2023-01-04T05:53:39.981552
2020-10-30T15:01:13
2020-10-30T15:01:13
298,144,088
0
0
null
2020-09-24T02:05:20
2020-09-24T02:05:19
null
UTF-8
Python
false
false
365
py
boolean.py
#Number print(1)#Integer #String print('Hello world') #Boolean print(True) #참 print(False) #거짓 #Expression print(1+1) print('Hello '+'world') #Hello world #Comparison operater print(1==1) #True print(1<2) #True print(2<1) #False #Membership operater print('world' in 'Hello world') #True import os.path...
fe8b3d881591ae9c2767ba85f265c9ed4569ff77
2c292153098a84c0c066b926723d02524a2dd544
/kadai3/mysh.py
e76158329fad95f54003206e8f29d80496c778bb
[]
no_license
kasai05/mashup_py
7520a33b54062bee1727aa79a3db6613b6832de3
b46bd156b14f16d74ebd790d28498bacd919168f
refs/heads/master
2021-04-30T06:26:58.402715
2018-02-13T22:19:08
2018-02-13T22:19:08
121,443,165
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
mysh.py
import os import datetime from cmd import Cmd class MyShell(Cmd): prompt = "mysh> " def __init__(self): Cmd.__init__(self) def do_pwd(self, arg): print os.getcwd() def do_cd(self, arg): if len(arg) <= 0: os.chdir('/Users/Yosuke/') else: os.chdi...
1122e80061fbfcb967455a30d7feefac37370078
97754f94d3da05b13a20a3197f6ae560023e4ff0
/setup.py
1414cbcf9c6c73bd3931e07b231edea36865a353
[ "Apache-2.0" ]
permissive
hammer-space/hstk
0d7fc65044b87c462d4f35a964325cac31335219
562403d00036616e843df5fe18afbf9fda4c1c62
refs/heads/master
2022-07-25T04:11:22.290718
2022-07-12T20:43:48
2022-07-12T20:43:48
190,076,219
7
4
Apache-2.0
2022-07-12T19:18:32
2019-06-03T20:18:38
Python
UTF-8
Python
false
false
2,572
py
setup.py
from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() # Internal build release_file = None tmp_release_file = 'RELEASE' for i in range(10): if ...
0a36461aa224ad1550505648ce6661796f35f27c
9a0630b0bcb0bb099b20c0dc6730cf953e32592b
/learn/test3.py
3cd0a680ddc14530ed266636b877b91119e065b5
[]
no_license
smile121386/Practise-hand
ecc69d0fc098a13f54ac29ce69a24f7983984a0a
0027a1338ce0af2cbd66c5cdf79b5f7ae358f860
refs/heads/master
2021-07-08T20:05:54.403512
2021-01-18T03:12:42
2021-01-18T03:12:42
226,027,867
3
0
null
null
null
null
UTF-8
Python
false
false
1,852
py
test3.py
# class MyClass: # def __init__(self, name, score): # self.name = name # self.score = score # # def info(self): # print("学生:%s; 分数:%s"%(self.name, self.score)) # # def get_score(self): # return self.score # # def set_score(self, score): # if score >= 0 and score <...
42212fb12250e488fdd3aaf227daae3bec90cbd4
374764ff8bc5c46f0856c3234d164e8c111dd1c3
/rename_labels.py
e8d8184aed6b8fe5656fc37709a439b28650c0cd
[ "MIT" ]
permissive
Brent-Lab/LabelMe-Image-Annotation-Tools
5340d340fbb452d3e5ae1061476cd2e398645383
8bfbafc51217e8f4d676352a9e7f3702f1df17ba
refs/heads/master
2022-12-15T17:31:27.982385
2020-08-07T22:57:36
2020-08-07T22:57:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
rename_labels.py
import os import sys import utilities src_folder_name = sys.argv[1] def rename_labels(src_folder_dir): annotations = utilities.get_all_annotations(src_folder_dir) labels = utilities.get_all_labels(annotations) print("Labels: ") for i in range(len(labels)): print(str(i) + ": " + label...
4f190732c4eda69e27ef40d2427822b5021fa4d5
94f4bb0f6e43b2eb2f1bdb284a580b76121fa9af
/016.py
b258e22eac05d5fad94b284f4274ded6257867ab
[]
no_license
huosan0123/leetcode-py
f1ec8226bae732369d4e1989b99ab0ba4b4061c4
22794e5e80f534c41ff81eb40072acaa1346a75c
refs/heads/master
2021-01-25T11:48:17.365118
2019-09-12T15:45:34
2019-09-12T15:45:34
93,934,297
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
016.py
class Solution(object): def threeSumClosest(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ # two pointer if len(nums) < 3: return nums.sort() result = nums[0] + nums[1] + nums[2] - target fo...
ddeba1a748e7e917d843b46768e2e78823ce4f37
571620b50c790a364a7f38fd6624dd7f5b1ac479
/tvdb_mp4.py
be372c7b95a0d0cefdbfaeca81a366b7f9f6c257
[ "MIT" ]
permissive
drikqlis/sickbeard_mp4_automator
f7a454718498275d50fbd2e266cc73c9d9cc1dd3
c3928968c570dfdbb6f3882d8f1c1c0245a80537
refs/heads/master
2021-07-02T06:20:33.698157
2021-02-22T17:04:26
2021-02-22T17:04:26
223,762,208
0
0
MIT
2020-01-09T09:11:26
2019-11-24T15:02:06
Python
UTF-8
Python
false
false
11,356
py
tvdb_mp4.py
import os import sys import requests try: from StringIO import StringIO except ImportError: from io import StringIO import tempfile import time import logging import tmdbsimple as tmdb from mutagen.mp4 import MP4, MP4Cover from extensions import valid_output_extensions, valid_poster_extensions, tmdb_api_key ...
0cef6897ed19cf1e585f7ff07c8cff038ea22559
4f73e4a89696d57d6dac173bcc44cbdc73c10381
/tests/unit/v0x04/test_controller2switch/test_get_config_reply.py
ba276bca231313ff7915d5b5ec69cb7948ad1dfe
[ "MIT", "Python-2.0" ]
permissive
kytos/python-openflow
c64fd3614c48625896851439eb77624a3c9e3268
89940bed83f8e792f5ed5c9f12346016cd380d6f
refs/heads/master
2022-11-21T04:08:21.576256
2021-05-31T19:58:09
2021-05-31T19:58:09
54,393,307
53
49
MIT
2022-12-01T18:16:02
2016-03-21T13:58:31
Python
UTF-8
Python
false
false
543
py
test_get_config_reply.py
"""Config Reply message tests.""" from pyof.v0x04.controller2switch.get_config_reply import GetConfigReply from tests.unit.test_struct import TestStruct class TestGetConfigReply(TestStruct): """Config Reply message tests.""" @classmethod def setUpClass(cls): """Configure raw file and its object i...
1d360347142a1313028fe6fe09ecc9b4fe9f7b04
4a83064213f386fb0c543c5f97d491d247306ae4
/app/webdavclient.py
3ccc1857dd1d9a535ed65919bad8950c7cccc992
[]
no_license
HBDK/Snap-Shipper-Docker
79cc679659253326989bf4904adee83078a225d9
cee474f3a61664a72afeb105b91dd8d98ecb8ab8
refs/heads/main
2023-02-12T10:07:23.747190
2021-01-10T13:27:23
2021-01-10T13:27:23
304,105,309
0
3
null
2021-01-10T13:27:24
2020-10-14T18:42:58
Python
UTF-8
Python
false
false
460
py
webdavclient.py
from webdav3.client import Client class WebDavClient: def __init__(self,settings): self._settings = settings self.client = Client(self._settings["WebDavClient"]) self.Name = self._settings["Name"] self.UpRemotes() def UpRemotes(self): self.Remotes = self.client.list...
dbbdf8e2dcb5e0f457b0447797a497ee2e214397
b55a184f2f19f66b4d18126d8dc2177bfd356946
/scipy2018_demo/demo.py
8fd085d5799e3bf0d8775226c71f38cc68a8c67f
[ "MIT" ]
permissive
IntelPython/composability_bench
86df10a6c5fdd997c13663a700796fe9c73b8e64
f0b9504c9e743bdb0d619f1fb6ac90dd1114d9c5
refs/heads/master
2023-09-02T14:36:16.553721
2023-03-06T18:17:01
2023-03-06T18:17:01
82,825,260
13
6
MIT
2023-06-16T15:53:03
2017-02-22T16:14:05
Python
UTF-8
Python
false
false
245
py
demo.py
import time, numpy as np from multiprocessing.pool import ThreadPool p = ThreadPool() data = np.random.random((2000, 2000)) for j in range(3): t0 = time.time() p.map(np.linalg.qr, [data for i in range(10)]) print(time.time() - t0)
bd678d8ef4a7029c6242d3e5616b29a3080468eb
940c1981ecf76ad6258cb2f9e3588e1c804d1557
/2주차_연습/2. k번째 작은 원소(힙).py
bd3d75d51e477f3555d5c3febc2b50402d72d70f
[]
no_license
k906506/2020-Algorithm
a3f295fda972f3bc2319652a8b4bcbeb17b8de20
188f8c18b48d12aea7c00f8ed256a248ac37295c
refs/heads/master
2023-07-05T06:42:02.542812
2021-08-30T04:52:54
2021-08-30T04:52:54
401,218,078
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
2. k번째 작은 원소(힙).py
import heapq def kth_smallest(arr, k): min_heap = [] for e in arr: heapq.heappush(min_heap, e) for _ in range(k): result = heapq.heappop(min_heap) return result num = int(input()) for i in range(num): a = int(input("k값을 입력해주세요.")) int_list = list(map(int, input().split())) ...
ca06909883ced0de7d3fbdd5c96a1a2b10954b73
11bd042207eb4394cdd04f531d774cbc2fc31c09
/pexpect_tst.py
e8541e4da041437b35d743f43e091b54c8d9116f
[ "Apache-2.0" ]
permissive
sbyount/pynet_test
688a8f97b71648b1fa45b5d58b9348f9e2d9cf18
a82e73cdac57f263361b287b543543ace4c7984c
refs/heads/master
2021-01-11T20:06:04.000463
2017-03-26T13:57:17
2017-03-26T13:57:17
79,038,824
0
0
null
null
null
null
UTF-8
Python
false
false
821
py
pexpect_tst.py
#!usr/bin/env python import pexpect from getpass import getpass import sys def main(): ip_addr = '184.105.247.70' username = 'pyclass' port = 22 password = '88newclass' ssh_conn = pexpect.spawn('ssh -l {} {} -p {}'.format(username, ip_addr, port)) #ssh_conn.logfile = sys.stdout ssh_conn....
b410641ece6b89bebdd84ff4c7b7f86effc1dada
40d8201aa6b52bf95990859458d98692c6503b1f
/external/package_managers/dnf.py
840809f15622e47b72dc2108b1b618bbb68981d5
[ "Apache-2.0" ]
permissive
dennisklein/spack-external
bf66692fe831de1299336e3c09086fb4b6ebfe91
c912dae79f8e482fe734a11a447cb29e4eeccc90
refs/heads/master
2022-04-20T18:57:54.669692
2020-04-16T23:57:33
2020-04-17T00:01:57
255,455,189
0
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
dnf.py
# Copyright 2020 GSI Helmholtz Centre for Heavy Ion Research GmbH, Darmstadt # Copyright 2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) # import llnl.util.tty as tty from spack.archite...
c93fa4b4296227d96b422e20da455e60e2ea8db9
3e157ec26e1301ba259c85deeb6fe62eb3b85da3
/python/fundamentals/functions_interm2.py
b42c28439d0f699ea880c80e8b80fb608da0da6c
[]
no_license
ceantolentino06/PythonStack
95b9bf77ab1c96ce8d94ef2537ddcdd041149dac
dcf45c0c0904f4823ec9402b3465ef9bd4588e20
refs/heads/master
2020-07-23T19:43:35.295047
2019-09-10T23:53:55
2019-09-10T23:53:55
207,684,061
0
0
null
null
null
null
UTF-8
Python
false
false
1,611
py
functions_interm2.py
# 1. Update Values in Dictionaries and Lists x = [ [5,2,3], [10,8,9] ] students = [ {'first_name': 'Michael', 'last_name' : 'Jordan'}, {'first_name' : 'John', 'last_name' : 'Rosales'} ] sports_directory = { 'basketball' : ['Kobe', 'Jordan', 'James', 'Curry'], 'soccer' : ['Messi', 'Ronaldo', 'Rooney'...
aceee2881529025c50bc30ac83dc1cf7e6caca23
e222d6262dc5ed350c64d907c0217b31714b92a1
/PS3/PS3.3.py
6a693327aa58745e1f0ab1c1bdf0f57aef45e3d4
[]
no_license
AlexKaracaoglu/Randomness-and-Computation
9c8febefcc0383c3b5385b8bb7aee83781d6e5b7
6b6679d63de985357d3cad8dbd5bcdfbd07c2aff
refs/heads/master
2021-05-10T00:33:40.005468
2018-01-25T00:49:31
2018-01-25T00:49:31
118,840,828
0
0
null
null
null
null
UTF-8
Python
false
false
889
py
PS3.3.py
#Alex Karacaoglu #To run, run the module then do final(n) and sub in n as a pretty big number #And you should get something pretty close to .000118 as found in the previous #part of the problem import random import string def toString(list): a = len(list) s ='' for i in range(a): s = s + list[i] ...
647ea9aae701cd38512c48c113e2e84698d0948d
e7666ca9f00597345d5b5a854308061e3c674c89
/Quizee/main_start.py
5bb62d64345bb26129ced03f340851a7f345ec5a
[]
no_license
Nehaa1999/Python-Project
6dc9a536d7ebe93feee42b0bc36add98a9dd50d1
b3a6ef1cccb2af58b4c2efd241ad9f4fae01848c
refs/heads/master
2022-11-14T09:09:01.184846
2020-07-11T06:48:52
2020-07-11T06:48:52
278,805,140
0
0
null
null
null
null
UTF-8
Python
false
false
6,051
py
main_start.py
# from tkinter import * #imports tkinter package available in python # def start_main_page(): #function definition of start_main_page # def start_game(args): #function definition of start game # main_window.destroy() # if args == 1: #if arguement equals one # from Options import Anima...
8d91f147718d636ee2a3a1ab8d2b4c5ef1bc3313
5eeff78e5aa536f64169a5fcdf66b2440ea9f6a2
/hr/urls.py
cd8e325cdb9f446ef54e6961786d60bc4bf7c0d3
[]
no_license
srikanthpragada/PYTHON_30_APR_2018_WEBDEMO
948f89d67f47d22c3ecf8331a4645cd2569a68cf
c9d90a9b7a1b11dc04d8496c6be6c9acfdaee599
refs/heads/master
2020-03-18T11:11:28.036078
2018-06-10T06:33:59
2018-06-10T06:33:59
134,655,970
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
urls.py
from django.urls import path, re_path from django.views.generic import TemplateView from . import rest_views from . import views urlpatterns = [ #path('addjob/', views.addjob), path('addjob/', views.JobView.as_view()), path("listjobs/", views.ListJobView.as_view()), path("searchjobs/", views.SearchJob...
9e6500b011925060c320a59793c1f90feddc8f3c
e183d386cf8d4a6a7872f630c2b6c83d68fe26b5
/noxfile.py
fee566e25a224d522eb7fa6bb6084885537cf3e4
[ "Apache-2.0" ]
permissive
fairhopeweb/doltpy
e76481c67be869a80e468191c8f68e94210a5931
be7f9bc1ad1e570e08ded341ee16f04e3114f8d9
refs/heads/master
2023-07-06T07:24:59.898425
2021-08-09T14:15:21
2021-08-09T14:15:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
noxfile.py
from distutils.dir_util import copy_tree import os import pathlib import shutil import tempfile import nox @nox.session(python=["3.8", "3.7", "3.6"]) # @nox.parametrize("numpy", ["1.17.5"]) # @nox.parametrize("pillow", ["^5.4.0"]) def tests(session): with tempfile.TemporaryDirectory() as tmp_dir: base_di...
20854c5486cae6a1141b40f12b7029979949224d
02b417a1263161385493540d521e5318eaaa0fb7
/dependencies/functions.py
fa31956bef75fc1832f50d14bd6cf1cecd0bbb72
[]
no_license
riordant/soccer-arbitrage
40e60b69924163f1741fbc6cfdf2d67dbb657279
fd7ed1a290364651d4fd30b38096f37c6c1db2bd
refs/heads/master
2021-01-22T21:57:54.523011
2017-05-29T14:43:47
2017-05-29T14:43:47
92,746,006
0
1
null
null
null
null
UTF-8
Python
false
false
14,401
py
functions.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys sys.path.append('/Users/tadhgriordan/Documents/AutoArb/main') import os import requests from inspect import currentframe from datetime import datetime from datetime import date import time import arrow from selenium import webdriver #import main from main import ...
6e70fb5800e698eefe8ba832587384dc2642f2cc
05a70c12df808455100598d8a6fdb5635c641ab8
/Ago-Dic-2019/DanielM/PracticaUno/6.7_People.py
d646bb3e6234b5859dd6a80a9f1c5edd2a90fde8
[ "MIT" ]
permissive
Jonathan-aguilar/DAS_Sistemas
991edcc929c33ba9bb8bc84e741b55c10a8420a3
4d02efc64161871084df1bff258112351e5d1241
refs/heads/development
2023-07-24T12:26:54.698452
2021-09-02T20:52:26
2021-09-02T20:52:26
289,764,892
1
0
MIT
2021-09-02T20:52:27
2020-08-23T20:54:55
Python
UTF-8
Python
false
false
1,021
py
6.7_People.py
# 6-7. People: Start with the program you wrote for Exercise 6-1 (page 102). # Make two new dictionaries representing different people, and store all three dictionaries in a list called people. # Loop through your list of people. As you loop through the list, print everything you know about each person. # This is an e...
8762e071d0ed93f6b61c2076a791fe99d9616522
8a7a2f53cf0d94eb84a9c781d22777f973b630b9
/check04a.py
75d773d6bdaa31d36d4f00de549948c79fed532a
[]
no_license
cjense77/python_oop
56814179f3cab97f8ef478b644b92670572eb153
39a23d3a828230d501264ed6b614e74b7b00127c
refs/heads/master
2021-08-24T07:30:39.501093
2017-12-08T16:57:35
2017-12-08T16:57:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
check04a.py
class Person: def __init__(self, name='anonymous', bday='unknown'): self.name = name self.bday = bday def display(self): print('{} (b. {})'.format(self.name, self.bday)) class Book: def __init__(self, title='untitled', ...
6d14d97e9957d21e59de0edb1a6107369fe77670
8fff8faa8b8f87447e8fecd49b53093c77bab7c7
/tweepy_trc/models.py
b2bd754cfd9bf615b74d2de1c87579c42546aaea
[ "MIT" ]
permissive
palevell/tweepy-trc
fa52febac15366e8ee772c7759343e8e2497d4f6
6d0b9b5d52b2923c3b0ac15037af38bb14a75cb7
refs/heads/master
2020-09-06T17:12:35.688774
2019-11-14T16:03:41
2019-11-14T16:03:41
220,490,076
0
0
null
2019-11-08T16:46:44
2019-11-08T15:02:52
Python
UTF-8
Python
false
false
2,021
py
models.py
# -*- coding: utf-8 -*- from os.path import expanduser, join import tweepy from munch import * from .config import Config from .utils import yaml_load class TrcFile(Munch): """ This returns a collection of Tweepy api objects (one for each account in the .trc or .twurlrc file.) """ def __init__(self): self.__...
312da7136388c310f6aa98807f622bbb6e298981
bcefdb51b0a38c8c780613e36b7bb24dc7a74036
/coronavirus_api_noelia_otazo.py
c06f2358c97113cc3edf392806654ada07e4fd21
[ "Apache-2.0" ]
permissive
NoeliaO/coronavirus_API
77d744d8b16b527b5122c402658a0e2433c20491
be6695dc2a63d62afa2d668d638c617f7e01db07
refs/heads/master
2022-07-17T01:30:39.729532
2020-05-11T11:02:22
2020-05-11T11:02:22
261,996,104
0
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
coronavirus_api_noelia_otazo.py
import json from pathlib import Path import requests import os #La dirección de la API es: https://api.covid19api.com/ try: def sumario(): api_address="https://api.covid19api.com/summary" resp = requests.get(api_address) if resp.status_code==200: json_data=json.loads(re...
2327cae5468b24f24cdc53af4b95df2f08d98c42
152f8c72bcb315bc0cf40ec389a97898cbc057c3
/_sadm/plugin/service/munin_node/deploy.py
123179ce16efda5984d17b5c53b37d2a312b97b1
[ "BSD-3-Clause" ]
permissive
jrmsdev/pysadm
0a205cf7b4bf647461d480403051b5f88f82090b
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
refs/heads/master
2022-06-11T07:33:53.847565
2019-11-13T04:25:00
2019-11-13T04:25:00
186,210,706
1
0
BSD-3-Clause
2022-06-03T22:45:36
2019-05-12T04:19:14
Python
UTF-8
Python
false
false
988
py
deploy.py
# Copyright (c) Jeremías Casteglione <jrmsdev@gmail.com> # See LICENSE file. from _sadm.utils import systemd, path from _sadm.utils.cmd import call, callCheck from _sadm.utils.sh import mktmp __all__ = ['deploy'] # run as root at last pass sumode = 'post' def deploy(env): _autoconf(env) _prune(env) systemd.resta...
ef0b3f57bda4372b2eb56ca8143ab6855c4b4d8c
73f5ea5de6828c22bd4f7cb9773956fc4e6301cc
/算法与数据结构/《数据结构与算法:Python语言描述》/链表/linked_list.py
49708c2845ee7d8b067cee7cb321541786585b7a
[]
no_license
yuryqwer/Learn-CS
aa9a6389cf2ea1955c6ffdabb10cdb1ef8932af8
18d702c56a7018d34a62d22f9cb485ad700f6b1e
refs/heads/main
2022-12-27T00:51:23.889385
2020-10-11T16:07:19
2020-10-11T16:07:19
302,850,561
0
0
null
null
null
null
UTF-8
Python
false
false
6,809
py
linked_list.py
class LNode: def __init__(self, elem, next_=None): self.elem = elem self.next = next_ class LinkedListUnderflow(ValueError): pass class LList: """ 单链表 高效的首端加入/删除 低效的尾端加入/删除 """ def __init__(self): self._head = None def is_empty(self): return self....
b9331381f83cdd9d5c5b8e09eb40a0318f1c8bdf
83a3e5f641e495c7cdcb9f1dd4272faa744bfe10
/users/urls.py
0112652b0292aa28b9b63bd00c3002011bc802e7
[]
no_license
johnsletvoldhafenrichter/hawkward_store
86943c0de14a13a0616770837cc04207b25b79ff
cc9808fd603be530ace63952881f603d595d266c
refs/heads/master
2022-12-21T14:08:32.570017
2020-09-30T21:37:21
2020-09-30T21:37:21
294,116,096
0
1
null
null
null
null
UTF-8
Python
false
false
248
py
urls.py
from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('', views.users, name='users'), path('update_or_create_user/', views.update_or_create_user, name='update_or_create_user'), ]
d5c2bfdca5e203847842e0edd9dfc1993498cb16
d7b7101fe1eb81b1d2e6ceb73ce98235ea51b13d
/helppme/__init__.py
ee14e81e49ffe6fc9a509ce033e2caf0191ea021
[]
no_license
chenghanlee/SNG
a3c240164a061e1daca631c0d7b4fbbc6554d6ea
4c7c4ea0a545b4557f642ce700c0d3c08cf8650f
refs/heads/master
2020-03-31T01:58:27.807336
2012-01-15T05:58:49
2012-01-15T05:58:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,348
py
__init__.py
from flask.ext.mongoengine import MongoEngine from flask.ext.celery import Celery from flask.ext.login import current_user, LoginManager from flask.ext.markdown import Markdown from werkzeug.contrib.cache import RedisCache from helppme.globals import app, db, categories, sorts, date_ranges, \ ...
30263a5924690fdef1beaae51b535f0c3440e5c5
9368625de2072266999edc2116bebad611ad8cb1
/print1.py
e7bda4449bbbcc839fddf5f6b0941a51573511da
[]
no_license
oguzsoft/Python_Learning
cbc30bfde35b1bcc5b3f0952460691296ff87b59
33dfdd8b43e0da362941ca7575d09f1e6aee4e99
refs/heads/master
2021-06-16T16:41:58.158103
2017-05-09T12:56:00
2017-05-09T12:56:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
print1.py
#!/usr/bin/env python #-*- coding: utf-8 -*- #Kullanıcıdan string türünde bir veri alma ve aldığı veriyi isim değişkenine atama işlemi isim = input("Adınızı Giriniz : ") #isim değişkenini ekrana yazdırma. print("Girdiğiniz isim:",isim)
6be82caced0f7a5d42d3ccab8f9aff02ea60c881
c8bf812f43ea7d513345c09a4185923cc40757bd
/Print/generic/cupslib/mk-from-mxmldoc
0cefaf38bcd7d780c559be6ee86b1fb9a42b36e3
[]
no_license
mwichmann/lsbspec
9c7bc96dd1786bdfa6f0da10ccbb5e434d87b576
cd1e9dde66732d45a2ac28e6cfac645cb6410c3a
refs/heads/master
2021-01-11T08:37:39.082326
2015-09-23T23:14:57
2015-09-23T23:14:57
76,282,269
0
1
null
null
null
null
UTF-8
Python
false
false
8,076
mk-from-mxmldoc
#!/usr/bin/python # mk-from-mxmldoc: mxmldoc to DocBook converter # Copyright 2007 The Linux Foundation. # Written by Jeff Licquia <licquia@linux-foundation.org>. # This utility converts documentation as generated by mxmldoc for the # CUPS APIs into DocBook suitable for use with the LSB Printing # Specification. It ...
9b82e76e2fc9c8d6ed7eba222c4d89ed61ed3198
b6a0c3b94d40f11831a4c52435d85d81d8edbfa4
/furport/migrations/0015_profile_following.py
6d80c7c13425880ca01999571ba6b673f018f220
[ "MIT" ]
permissive
lapi-hotel-group/furport-back
ccef8cdc4bb76577511c31d07822f5014df7eb8d
d212bf74f779c160cc1b9dd05bf935407efe6152
refs/heads/master
2023-06-07T07:35:47.283075
2020-08-31T09:32:29
2020-08-31T09:32:29
276,877,186
2
2
NOASSERTION
2021-04-29T21:50:47
2020-07-03T10:51:38
Python
UTF-8
Python
false
false
448
py
0015_profile_following.py
# Generated by Django 3.0.8 on 2020-07-15 00:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("furport", "0014_profile_avatar")] operations = [ migrations.AddField( model_name="profile", name="following", field=m...
6f39c404c6c780680d904709cfb608614979e242
a1d87e5f11a9ac5caa2cb6f1e526098f7d58eec0
/shortest_distance_to_a_character_821.py
035288bc8bfff8d5c456f999f24bf5e65490e123
[ "MIT" ]
permissive
cthi/LeetCode
24be0c215a591eb6e5e85d7ff22c6fc0ae7283a0
fbeb077e382ab4c4e8d8cc4707b9f1a9f33c5a89
refs/heads/master
2021-01-11T03:42:01.724700
2018-10-21T18:38:24
2018-10-21T18:38:24
71,417,848
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
shortest_distance_to_a_character_821.py
class Solution: def shortestToChar(self, S, C): """ :type S: str :type C: str :rtype: List[int] """ shortest = None output = [float('inf') for i in range(len(S))] for i, c in enumerate(S): if c == C: shortest = i ...
2609bb42cbf6db9af8c71b8ae0e636e95452ed83
17aeae8426c00aac4b72fa8e9ce05a26b8c8ad19
/Condicionales/Ejercicio5.py
3053e8e1755afa305a5a0cbfea27701cfbf475d0
[]
no_license
cristianvalenz/Python
db337d282a41af4e7de883b3c6833bdc8b312eba
1462e769948039c8ba266f0eb6fbe7dbc65dea8d
refs/heads/master
2022-07-01T07:12:27.540613
2020-05-06T20:10:40
2020-05-06T20:10:40
259,677,505
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
Ejercicio5.py
precio = float(input("Precio : ")) descuento = precio * 0.15 final = precio - descuento print(f"El total a pagar es {final:.2f}")
85ca6cdb60ee79d0bbf317325d20ff8ebca6ac08
fe3c4ae090dea0d2f4ded5ab2003eb16a4ea62bb
/Estadisticas.py
f51a13403310d3ae127d41298a3c2280aa5dba86
[]
no_license
PelElMejor/DadosJuego
c00a6772c161f2d7fa17c4f35ae25e0da808a2ae
09cace5c21409b649b252f9c034ee3f7c8ebeea3
refs/heads/master
2021-03-22T13:02:27.936195
2020-03-14T23:30:04
2020-03-14T23:30:04
247,367,621
0
0
null
null
null
null
UTF-8
Python
false
false
3,198
py
Estadisticas.py
import os import time from Juego import * from Jugador import * class Estadisticas: def __init__(self, Juego, fecha, hora): #Constructor de la clase self.Nombre = Juego.Jugador.Nombre self.TipoJuego = Juego.Descripcion self.fecha = fecha self.hora = hora def Cr...
3acf52effe00c1f6d1f55ac5a145ac0b21fd90fd
cea0accb1ba8625e60f891ba4917d4f827d17900
/FightAgain/树/层次遍历/671. 二叉树中第二小的节点.py
95cd861dce556dfd02fcfb63f24a5beebab82ac6
[]
no_license
OucMan/LeetCode
b623f44c306d8515ba8af9ab1b72f29ca6bebe23
ef13b43da713fefcf6983b1037081ef10a947143
refs/heads/master
2021-07-24T02:46:14.251514
2021-06-17T02:25:28
2021-06-17T02:25:28
253,480,227
0
0
null
null
null
null
UTF-8
Python
false
false
1,681
py
671. 二叉树中第二小的节点.py
# 题目 给定一个非空特殊的二叉树,每个节点都是正数,并且每个节点的子节点数量只能为 2 或 0。如果一个节点有两个子节点的话,那么该节点的值等于两个子节点中较小的一个。 更正式地说,root.val = min(root.left.val, root.right.val) 总成立。 给出这样的一个二叉树,你需要输出所有节点中的第二小的值。如果第二小的值不存在的话,输出 -1 。 # 思路 假如根节点为空,直接返回-1,假如根节点没有子节点,直接返回-1,然后保存左右两个子节点的值L,R,假如L和根节点的值一样大,那么对于对于整棵树来说,第二小节点可能也是左子树的第二小节点,同理,对于右子树也是这样,使用递归得到两个子树的...
90a8a27cf77b7755064ed2f2989dd5c5c16e3191
72758205d6e7815c93a5d1f831f711f834ab762f
/Worrawat-6230407098-lab2/dict.py
a8a3f12525b2a74694c60521edb0602acf1046c7
[]
no_license
ArtWorrawat/6230407098-oop-labs
4f263237a0d912afae529250dfbe5263f2312fa2
5670d6d7edc2dcf85da5933a8ed2ed04b3bef3b8
refs/heads/master
2023-01-24T20:37:56.494591
2020-11-20T14:45:58
2020-11-20T14:45:58
284,872,890
1
0
null
null
null
null
UTF-8
Python
false
false
299
py
dict.py
directory = {"Jane Doe":"+27 555 5367", "John Smith":"+27 555 6254", "Bob Stone":"+27 555 5689"} directory["Jane Doe"] = "+27 555 1024" directory["Anna Cooper"] = "+27 555 3237" print(directory["Bob Stone"]) print(directory.get("Bob Stone")) print(directory.keys()) print(directory.values())
8681dfe2d8563ba0d12a8afc9772f7cd1eea9c2a
921759cd3cdc5d68790dfc22e69ac51b97065c72
/src/tests/ftest/io/seg_count.py
be5d901fb62dc1aef832e45273a15a55ab9ade0b
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
the-original-dude/daos-1
c440774754e3f7a486f82130f747a9bb9e5814c5
686772dcb7cc9adaab811545310f0cec0894ec1c
refs/heads/master
2020-06-23T00:17:20.028114
2019-07-22T22:44:53
2019-07-22T22:44:53
198,442,469
0
0
Apache-2.0
2019-07-23T14:01:23
2019-07-23T14:01:22
null
UTF-8
Python
false
false
6,990
py
seg_count.py
#!/usr/bin/python ''' (C) Copyright 2018-2019 Intel Corporation. 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 applic...
50555fe3c7805eb9fe9bfa1da03acf46999d05e4
0c57f59646ffdec88a11f2b9975036b28af9d37e
/hsvd.py
37cad0546005a38c714747f5a116963147fcc052
[]
no_license
jeffrey-hokanson/McMillanDegree
04992d1b047a0976f3ae3bc69f521527e6e125a9
e87f99bcb24819102ddc3d9cd5ed24ffdf08c62f
refs/heads/master
2021-01-24T17:05:48.121218
2018-02-28T14:48:55
2018-02-28T14:48:55
123,225,176
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
hsvd.py
from scipy.sparse.linalg import svds from hankel import Hankel import numpy as np def mkV(omega, n): V = np.zeros((n, len(omega)), dtype = np.complex) for i, om in enumerate(omega): V[:,i] = np.exp(om * np.arange(n)) return V def hsvd(y, p): """ """ n = y.shape[0] l = int(np.floor(n/2)) H = Hankel(y[:l+1]...
125b74252ef7dbb57cf532d1900d2ef5c2f52f43
13bcf432ff2340b8326c996c786dd0a24c3340e1
/pynos/versions/ver_7/ver_7_0_0/yang/brocade_event_handler.py
4bef9163868e15c3986a033a45d756c2e40c24a5
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
factioninc/pynos
ba4bff5d1fd92f313460e9249989d199eb508c50
bd8a34e98f322de3fc06750827d8bbc3a0c00380
refs/heads/master
2023-04-30T09:37:30.328991
2017-05-16T18:23:56
2017-05-16T18:23:56
126,568,607
0
0
Apache-2.0
2023-04-21T18:19:22
2018-03-24T05:22:08
Python
UTF-8
Python
false
false
9,746
py
brocade_event_handler.py
#!/usr/bin/env python import xml.etree.ElementTree as ET class brocade_event_handler(object): """Auto generated class. """ def __init__(self, **kwargs): self._callback = kwargs.pop('callback') def event_handler_event_handler_list_name(self, **kwargs): """Auto Generated Co...
33ed0c686cd8c89bc8efdd52859a0af2bf9e0a47
3083b45d5478c895455d99d353b11b93a540c742
/deque.py~
2aeb8b40a10ccfe26155bd31f6fdbeb7f3f7967c
[ "MIT" ]
permissive
ksooraj2610/Get_the_Sum
f0e8f8c87522b548b31a804bb2603fae6672c1da
95ede2cb986cfd09b64039862c27f4d714c1bc97
refs/heads/master
2016-08-10T08:08:49.692258
2016-03-02T13:23:14
2016-03-02T13:23:14
52,704,169
0
0
null
null
null
null
UTF-8
Python
false
false
1,670
deque.py~
from stackArray import MyStack import random class deque: def __init__(self): self.deque=MyStack() self.temp=MyStack() self.deq=self.deque.stack def size(self): return self.deque.size() def empty(self): return self.deque.isEmpty() def full(self): if (self.deque.size() == self.deque.max_stack...
a87d67a12e7c535512e2836dc2e64add692537f6
bb294893f609560d46a8080f74cca32eeee40989
/13.py
a5ea9520f2a7c05e44faa63e64eeb19debeac6bd
[]
no_license
shDupont/pythonsList.py
6da4e4245c2f499a186e034b96766cb7524c4b4d
9f7bb9a5bbbf70c3bea4f8a95ffa23da83d7cf19
refs/heads/master
2020-08-05T05:31:17.990741
2019-10-15T21:46:24
2019-10-15T21:46:24
212,414,425
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
13.py
quantidade = int(input("Digite o número desejado:")) def funcao4(linhas): for linha in range(0,linhas+1,1): for preencher in range(1,linha+1,1): if preencher!=linha: print(preencher, ",", end=" ") else: print(preencher) print(funcao4(quantidade))
2605de67e6ba70488b7e4a412aed339fef5db3ef
646fe6626360c6daae1afe2cad2dfd75f48c7c23
/yw652/interval/interval.py
b77254a19fb4df63eec4dc3fd08c1367f6919b9d
[]
no_license
LeiLu199/assignment6
c7adfb783aabfc4a01e8aff28b337072c6edb7ad
0c4378154f41e2726ef97effa056e17af6130fe6
refs/heads/master
2021-01-14T13:57:26.030866
2014-11-04T00:45:13
2014-11-04T00:45:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,187
py
interval.py
from .intervalFunction import * from .Exceptions import * class interval: ''' construct an interval object ''' def __init__(self, interval_string): if isValidInterval(interval_string): # if an interval is valid, then initialize all the parameters based on the info list ...