blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
1321f390d4d467a80c5cb7d9b5a52bf2268a07f4
2444bb41e796af35b3b96045e09aff68619e6e43
/demonhunter/nodes/honeypots/telnet/__init__.py
2656bec787c9c8117990f9d7aa1ac498f221dee3
[ "MIT" ]
permissive
skrtu/DemonHunter
e597e88832abf010107ae7858c59f2a5ae0ead55
b0381be864066a08033d60abbb59091fad4cc84f
refs/heads/master
2023-08-31T11:55:02.152791
2017-05-20T12:13:19
2017-05-20T12:13:19
91,222,157
1
1
MIT
2023-08-22T00:17:11
2017-05-14T05:27:00
Python
UTF-8
Python
false
false
6,419
py
from demonhunter.nodes.honeypots import BaseHandler, BaseHoneypot import asyncio import time from io import BytesIO from telnetlib import ( LINEMODE, NAWS, NEW_ENVIRON, BINARY, SGA, ECHO, STATUS, TTYPE, TSPEED, LFLOW, XDISPLOC, IAC, DONT, DO, WONT, WILL, SE, NOP, TM, DM, BRK, IP, AO, AYT, EC, EL, EOR, ...
[ "s.hamzelooy@gmail.com" ]
s.hamzelooy@gmail.com
f5a7d15f96f0160398e8a0648bf712cde91eda4a
2198abd6e37195dbb64b46effa11c6fad1de3b4e
/PyQuantum/Base/BaseCavity.py
808ec90081d3b9be593e1a1cc0068439d818cc8f
[ "MIT" ]
permissive
deyh2020/PyQuantum
179b501bea74be54ccce547e77212c7e1f3cd206
78b09987cbfecf549e67b919bb5cb2046b21ad44
refs/heads/master
2022-03-24T08:11:50.950566
2020-01-05T02:07:59
2020-01-05T02:07:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,783
py
# ===================================================================================================================== # PyQuantum.Tools from PyQuantum.Tools.Assert import Assert, FILE, LINE from PyQuantum.Tools.Print import cprint from PyQuantum.Tools.Hz import to_Hz # ================================================...
[ "alexfmsu@mail.ru" ]
alexfmsu@mail.ru
e0f4e59e877e522f04c690b6fd9a082cb4c27e0c
6bed3dbf6695807afff38fd996c7a421629eb69c
/app/config/settings/base.py
119fd49fd796cbc36126cbb237141f8a37e0f217
[]
no_license
sungmin414/blog_ec2_deploy
acd29d889f4e32a6c9d100a2ba45b01d7fcd9b97
a4520c50f2a117c402b62b3ab75ab7291ee68314
refs/heads/master
2022-12-10T07:58:20.150204
2019-06-04T05:26:06
2019-06-04T05:26:06
190,133,448
0
0
null
2022-12-08T05:12:48
2019-06-04T05:12:03
Python
UTF-8
Python
false
false
3,084
py
""" Django settings for EC2 Deploy project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import jso...
[ "sungmin3231@gmail.com" ]
sungmin3231@gmail.com
ba52e094ae05c486bba0d57cccb1ac669ac35a78
a8eb4cce5fd98a87d601e4382748584ac862a5fe
/day_05/Person.py
acfa6f2332380f0b3eb2df4d62d267b37ad92f9f
[]
no_license
hjkkhj123/digitech_python_study
cdab3881cd461c15b83018e1e2215eda2105081f
b730109337ab5fa120df95bd86477eea56e71b32
refs/heads/master
2020-09-21T05:02:14.408350
2020-01-06T01:29:13
2020-01-06T01:29:13
224,686,695
0
1
null
2020-01-06T01:29:15
2019-11-28T15:55:37
Python
UTF-8
Python
false
false
2,568
py
class Person: age = "" address = "" def __init__(self, name): self.name = name def eat(self): print(self.name + Person.age + Person.address + "eat") def sleep(self): print(self.name + "sleep") def work(self): print(self.name + "work") """ if __name__ == ...
[ "kdsnop@gmail.com" ]
kdsnop@gmail.com
910a138b1e6c5992a018e6e2e1190eef7ee0ffe6
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03997/s072632431.py
09bfbae45b87119f9efc0682b237b4031146c195
[]
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
149
py
data = [int(input()) for i in range(3)] result = (data[0]+data[1])*data[2]*0.5 if result == int(result) : print(int(result)) else : print(result)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
20daf05aea0fa8e530fef20d28b5773864012bf5
0afa97c49cbeb01a4e76cd5969724451b11ba0ae
/rancher_metrics_collector/metrics_collector/models/environments.py
6dc375d651de7a954fcb47de992d90baff5745b4
[ "Apache-2.0" ]
permissive
Fufuhu/RancherMetricsCollector
2504db1b69815a19312c70cefd6114046efee8a4
cd91ca1b6eb175c89648903e4ebdc35cba9422fd
refs/heads/master
2021-01-23T04:33:43.979758
2017-04-03T15:48:14
2017-04-03T15:48:14
86,209,157
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
from django.db import models class RancherEnvironments(models.Model): id = models.CharField(max_length=20, primary_key=True)
[ "e238058r@hotmail.co.jp" ]
e238058r@hotmail.co.jp
65a23331417e82ec88a630617318260a15e9c2b0
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/Sourcem8/pirates/piratesgui/StatRowGui.py
8cea39a1a8fadb7be262d8ae5ed22abe731ec02a
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
3,060
py
# File: S (Python 2.4) from direct.gui.DirectGui import * from pandac.PandaModules import * from pirates.piratesgui import PiratesGuiGlobals class StatRowGui(DirectFrame): Width = PiratesGuiGlobals.TMCompletePanelWidth - PiratesGuiGlobals.GridSize Height = PiratesGuiGlobals.TMCompletePageHeight / 7 def _...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
9cb981e664fb0131c3647fccc4515598850a59d8
f24050f9be7f089ebe97857b4d6dc67a7dda17a8
/poetry/pirandello/urls.py
77604925a6bb2404cafe54c386fce30814bd057c
[]
no_license
ntsourakis/regulus-python
63bffdfbf5ba5c09e60e3d729d310edfd961d79b
91830264e0476ccaaf7ccec83e8bb8ca32a9a4fe
refs/heads/master
2020-04-24T10:33:49.220740
2019-04-29T17:11:33
2019-04-29T17:11:33
171,897,806
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
from django.urls import path from django.contrib import admin from django.urls import path from django.conf.urls import url from rest_framework.authtoken.views import obtain_auth_token from . import views urlpatterns = [ path('', views.PirandelloPageView, name='home'), path('init/', views.Pirande...
[ "Nikolaos.Tsourakis@unige.ch" ]
Nikolaos.Tsourakis@unige.ch
3695fb890eb7bed26c6496aa4c614459c2f4c7a0
5818c29bcdf7d04ab572d82250c2003ad56a38d7
/app/api/endpoints/cancel_order.py
0a49aee4b758ab48ccade2c9889c17b251fedcf7
[ "MIT" ]
permissive
sammchardy/binance-chain-signing-service
3cf8db1479e97a379b7e45040b03b5f103797e03
5ae1a0eab358e40dd79c9d375fc5b3b8f48fc64d
refs/heads/master
2022-05-02T23:24:12.926444
2019-06-29T12:08:45
2019-06-29T12:08:45
181,307,375
8
5
MIT
2021-05-13T20:27:23
2019-04-14T12:43:23
Python
UTF-8
Python
false
false
2,511
py
from fastapi import APIRouter, Depends, BackgroundTasks, Body from binance_chain.messages import CancelOrderMsg from config.config import WalletConfig, UserSettings from api.models.schema import SignCancelOrderSchema from api.constants.constants import WalletPermission from api.utils.wallet import get_wallet, increme...
[ "hello@sammchardy.net" ]
hello@sammchardy.net
106484a106e4bbfdd686f817cc0089ec4cb341f8
4acc08d2c165b5d88119df6bb4081bcfaca684f7
/PythonPrograms/python_program/pattern16.py
c8527da796163004972886b4f0323d4f2657fc9a
[]
no_license
xiaotuzixuedaima/PythonProgramDucat
9059648f070db7304f9aaa45657c8d3df75f3cc2
90c6947e6dfa8ebb6c8758735960379a81d88ae3
refs/heads/master
2022-01-16T04:13:17.849130
2019-02-22T15:43:18
2019-02-22T15:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
for i in range(5): for j in range(5): if i%2==0 and j%2==0: print("1",end="") elif i%2!=0 and j%2!=0: print("1",end="") elif i%2!=0 and j%2==0: print("0",end="") elif i%2==0 and j%2!=0: print("0",end="") else: print() print() ''' 10101 01010 10101 01010 10101 '''
[ "ss7838094755@gmail.com" ]
ss7838094755@gmail.com
603116c345732ccda52d2e46735cb83479d83c4d
b66bf5a58584b45c76b9d0c5bf828a3400ecbe04
/week-04/3-graphics/6.py
c397dca86c82fdde7e7bdc8512a77d902038cd7b
[]
no_license
greenfox-velox/szepnapot
1196dcb4be297f12af7953221c27cd1a5924cfaa
41c3825b920b25e20b3691a1680da7c10820a718
refs/heads/master
2020-12-21T08:11:41.252889
2016-08-13T10:07:15
2016-08-13T10:07:15
58,042,932
0
1
null
null
null
null
UTF-8
Python
false
false
245
py
from tkinter import * # create a 300x300 canvas. # draw a green 10x10 square to its center. root = Tk() canvas = Canvas(root, width='300', height='300') canvas.pack() canvas.create_rectangle(140, 140, 160, 160, fill="green") root.mainloop()
[ "silentpocok@gmail.com" ]
silentpocok@gmail.com
07387294c12d97c3b0a542fdccfba296652ed0f6
8030f08fb746650816044904ec0dd2d552c8a09c
/vh-mail/__init__.py
b4f4250a2a07b9147cccda8fcadd0ce478c42387
[ "MIT" ]
permissive
Eugeny/ajenti-v
87f644521080e3d97d43c81a5e2aec813cb0e773
d3b760865ec8f01dd3b693dd51320d36eb7303f1
refs/heads/master
2022-09-20T13:48:53.405477
2022-08-25T18:58:42
2022-08-25T18:58:42
12,405,098
153
94
MIT
2022-08-25T18:58:43
2013-08-27T12:13:33
Python
UTF-8
Python
false
false
298
py
from ajenti.api import * from ajenti.plugins import * info = PluginInfo( title='Ajenti V Mail', icon='envelope', dependencies=[ PluginDependency('vh'), PluginDependency('main'), PluginDependency('services'), ], ) def init(): import api import main
[ "john.pankov@gmail.com" ]
john.pankov@gmail.com
8a30c74ecaeb8a39276c174cff160ae0cdec639d
0e25dc15ae9efce8bfd716d4d2041da07767968b
/qbench/benchmarks/QLib/OPENQL_converted/benstein_vazirani_13b_secret_1.py
a9965bcb0dbddc90549985088fac1bb378b9ac9c
[]
no_license
alxhotel/crossbar-bench
f608fc0062b4f8a5162ec33d61c0204aaf27b6ff
3bf7536e7697d29c3089b0ba564ba22d39698b88
refs/heads/master
2021-07-13T16:06:50.085838
2020-10-04T23:39:05
2020-10-04T23:39:05
213,409,122
3
1
null
null
null
null
UTF-8
Python
false
false
3,912
py
from openql import openql as ql import os import argparse def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W...
[ "alxmorais8@msn.com" ]
alxmorais8@msn.com
a8755c47d4f0d2865ef6998a3fbd7ddcaf3f8f76
72228e166badfe7114f48c6fa415ed252454fdda
/ad2020/dec20/part1.py
f00137fb00f50e153a43a8aef920d58728d1aa15
[]
no_license
jorendorff/advent-of-code
3098e75626cc965f43d3c08a9016bfda5d8d3620
9985cd25da73bb0606732693c10c8ccb4cf94563
refs/heads/main
2023-01-09T00:39:04.522766
2022-12-25T05:15:29
2022-12-25T05:15:29
163,777,160
3
0
null
null
null
null
UTF-8
Python
false
false
4,161
py
from lib.advent import * SIZE = 10 class Tile: """A single orientation of a tile, including its id and bitmap.""" def __init__(self, id, rows): self.id = id self.rows = rows self.edge_code = int(''.join(rows[0]).replace('.', '0').replace('#', '1'), 2) def turn(self): ""...
[ "jason.orendorff@gmail.com" ]
jason.orendorff@gmail.com
cd3c86169591d60f6e11438faa787763e18909df
e3e7e069b1b66c5d63319a23a2201a38171df23f
/dataUpdate/model/tradingInfo.py
f39dc579bc0a04dc9b33682d60a4600ac17a32b1
[]
no_license
webclinic017/backtrader_learning
b6ba1199ac31b5bbad0ce7abe7e4fca912cb9c8a
dfa5202a99af96273d49a4e92412c3b0d3c724a7
refs/heads/main
2023-08-18T17:44:20.751035
2021-10-09T08:43:29
2021-10-09T08:43:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
from dataUpdate import Base from sqlalchemy import Column, Integer, String,Float,DateTime,Boolean class TradingInfo(Base): __tablename__ = 'TradingInfo' __table_args__ = {'extend_existing': True} id = Column(Integer, primary_key=True) code = Column(String(100),index=True) time = Column(DateTime,i...
[ "wuzifan0817@gmail.com" ]
wuzifan0817@gmail.com
5f048937456e86e9e7a2d9c6467d51953c70fe17
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2007.2/desktop/freedesktop/dbus/comar/service.py
797ae3ed5ac3b59f2abf60b96954d7c89f89476b
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
from comar.service import * import os serviceType = "local" serviceDesc = _({"en": "DBUS Desktop Message Bus", "tr": "DBUS Masaüstü İletişim Sistemi"}) serviceDefault = "on" @synchronized def start(): # create universally unique id if not os.path.exists("/var/lib/dbus/machine-id"): ru...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
27a172dd4e87508be5194dc2bc5fc174775d1e32
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0101_0150/LeetCode107_BinaryTreeLevelOrderTraversalII.py
8e97445542fa6088e7ab531f630e18cbe2f7626b
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
1,183
py
''' Created on Feb 1, 2017 @author: MT ''' # Definition for a binary tree node. class TreeNode(object): def __init__(self, x, left=None, right=None): self.val = x self.left = left self.right = right class Solution(object): def levelOrderBottom(self, root): """ :type ro...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
f7b5094dade2bb8a3c782482e8606780076a7d31
9fa547b23ebd17f1508260fe571886e7da564f97
/venv/bin/easy_install
cfee0abacb158e68a6d61dc1fb2031b0551d3024
[]
no_license
serhiisad/sc_l3
2218292e1cd189729092ecb6106f89618eeda337
44ab35fb1ef33bfbd0af9efebb418fa0a9cee49e
refs/heads/master
2020-03-19T05:32:12.024381
2018-06-03T21:36:44
2018-06-03T21:36:44
135,941,831
0
0
null
null
null
null
UTF-8
Python
false
false
469
#!/home/serhiisad/PycharmProjects/SoftwareComponents_LABS/wordcloud/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install' __requires__ = 'setuptools==28.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(...
[ "serhiisad.kpi@gmail.com" ]
serhiisad.kpi@gmail.com
0cbfc530a4990ef26b5bee4c233a6c616e0c1ea9
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/slack/sensor.py
4e65fdfc26df3863ff124fb2bd16b9858e6abe4b
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
1,548
py
"""Slack platform for sensor component.""" from __future__ import annotations from slack import WebClient from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssist...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
258fc932054613b615806af725851751749fa262
952abfc855d0fca89200f1e428aac9a87f1d3295
/test/keras31_split_test.py
e18e5a943bfa2fc8c2baa02ee30ad8be971d2e07
[]
no_license
TaeYeon-kim-ai/STUDY_1.py
7570b4510bf8d9791447efe3a97a9668a1cabe06
e14392c706b7e51e40f1ac68555e26558e25b38f
refs/heads/master
2023-06-03T09:04:13.498591
2021-06-21T17:10:47
2021-06-21T17:10:47
329,834,933
1
0
null
null
null
null
UTF-8
Python
false
false
1,178
py
import numpy as np a = np.array(range(1, 11)) # a에 0~10까지 집어 넣는다 size = 5 # 데이터를 5개씩 끊어서 리스트 구성 (5개씩 끊어서) 5개 열로 구성함 def split_x(seq, size): aaa = [] for i in range(len(seq) - size + 1 ): #for반복문 i를 반복해라 size + 1 까지 subset = seq[i : (i + size)] #seq를 구성해라 i(1)부터 i+size(5)까지 aaa.append(subset)...
[ "lovehjty@gmail.com" ]
lovehjty@gmail.com
fc1b0d6444a5c462b62185c5fec5a28a8e8ca082
cbe264842df4eae3569b28ed4aae9489014ed23c
/books/PythonAutomate/scheduling/wake_up.py
0f9e713269b9e6c7e4642a0ea140e58bf9118920
[ "MIT" ]
permissive
zeroam/TIL
31e176c2f4c3e1ef72b1155353690cc2f7160f96
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
refs/heads/master
2021-07-23T01:43:34.135033
2021-07-10T06:47:17
2021-07-10T06:47:17
167,952,375
1
0
null
null
null
null
UTF-8
Python
false
false
260
py
"""wake_up.py 5초 뒤 깨어나는 스레드 실행 """ import threading, time def take_a_nap(): time.sleep(5) print("Wake up!") print("Start of program") thread_obj = threading.Thread(target=take_a_nap) thread_obj.start() print("End of program")
[ "imdff0803@gmail.com" ]
imdff0803@gmail.com
2ed63552ff18ca4592b4fcd91b6bcfdd35d23e66
ad543afad68c91f7a4a8c1302825595de5aa81f8
/checkio/Dialogues.py
2da00d470bcddefc23dd59727c467e78068061cd
[]
no_license
taivy/Python_learning_projects
44473dd0e2102fab6a21590292c39b1a752b5500
769f99253b12f980f09cddc675efd462b89dc7f0
refs/heads/master
2020-04-01T02:44:20.025064
2018-12-02T11:56:15
2018-12-02T11:56:15
152,793,037
1
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
VOWELS = "aeiou" class Chat: def __init__(self): self.dialog = [] def connect_human(self, obj): self.human = obj obj.chat = self def connect_robot(self, obj): self.robot = obj obj.chat = self def show_human_dialogue(self): out = [] for i in sel...
[ "aie803ef4g@gmail.com" ]
aie803ef4g@gmail.com
e9ef6acfe4483b3c31abdedaefe1704298779625
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/long/Schema+Instance/NISTXML-SV-IV-atomic-long-fractionDigits-1-3.py
db06c9667cc4f86b67268ca8b7151a6a8f0969a8
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
282
py
from output.models.nist_data.atomic.long.schema_instance.nistschema_sv_iv_atomic_long_fraction_digits_1_xsd.nistschema_sv_iv_atomic_long_fraction_digits_1 import NistschemaSvIvAtomicLongFractionDigits1 obj = NistschemaSvIvAtomicLongFractionDigits1( value=673029236492377779 )
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
e299e0e21ec377e4b8bf4085e81c9d9e1b5435c6
a1232023595eed48bf3d56c0c1dcb8f05cdc261a
/228. Summary Ranges/_228.py
d0ccfcf322ca156d7a9ce2d731c7dea86587c831
[]
no_license
NKcell/leetcode
2393ec3f8dc0e26b9ff098a592e4ffa9d7b774b8
88dec1c2106950e82819a0dd16425a9ee8fdaca4
refs/heads/master
2020-07-24T05:27:42.269903
2020-05-06T07:45:07
2020-05-06T07:45:07
207,814,442
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
class Solution: def summaryRanges(self, nums): if not nums: return [] start = nums[0] last = nums[0] res = list() for i in nums[1:]: if i == last+1: last = i else: if last == start: res.ap...
[ "517343690@qq.com" ]
517343690@qq.com
effc812964bfdd70069ed0b31f67a75b3354c7ef
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_noisy2816.py
5d53a9256da6e43bddd95461c1410608be44dca0
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,172
py
# qubit number=4 # total number=38 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
3c78320b46fd324af4ed68e548fd181e5a520125
e780a5bd72f98ca2513c993d64a85b08578166a6
/buildout-cache/eggs/plone.app.iterate-3.3.7-py2.7.egg/plone/app/iterate/event.py
398ee4709f0a31be1bdc81a2025ecc2d0d08d5d4
[]
no_license
vedantc98/Plone-test
023246597ffe848e2a49b9f65742ff49127b190b
9fd520fc78481e2c0b9b7ec427821e7f961c777e
refs/heads/master
2021-03-30T22:14:33.368739
2018-03-11T19:22:58
2018-03-11T19:22:58
124,671,713
0
0
null
null
null
null
UTF-8
Python
false
false
2,658
py
# -*- coding: utf-8 -*- ################################################################## # # (C) Copyright 2006 ObjectRealms, LLC # All Rights Reserved # # This file is part of iterate. # # iterate is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publis...
[ "vedantc98@gmail.com" ]
vedantc98@gmail.com
a64ec165e40cf190a636307e27b89da9086cd0e6
905b8c5fcf45923db0b614943ad9f3abc065dd9e
/benchmark/tabix_bench.py
431cd6fe42548124dfaff9e2aeb78562ddfd43e6
[ "MIT" ]
permissive
Munchic/pysam
316f13825abc32d8a9e7c1c2221ae7a338ad80d9
38fd53b521b99373e223a2ad42ec596124e98050
refs/heads/crypto
2020-03-20T15:14:31.113184
2018-06-20T21:19:35
2018-06-20T21:19:35
137,507,823
0
0
MIT
2018-06-26T19:36:41
2018-06-15T16:07:16
C
UTF-8
Python
false
false
2,349
py
import gzip import pysam import timeit iterations = 5 repeats = 100 print ("repeats=", repeats, "iterations=", iterations) fn_compressed = '/tmp/windows_small.bed.gz' fn_uncompressed = '/tmp/windows_small.bed' def test_python_compressed(): '''iterate through with python.''' f = gzip.open( fn_compressed) ...
[ "andreas.heger@gmail.com" ]
andreas.heger@gmail.com
e170bd5271e3104dc3e262a1e2f5eb6a872b7ecb
077a17b286bdd6c427c325f196eb6e16b30c257e
/00_BofVar-unit-tests/07_32/remenissions-work/exploit-BofVar-31.py
e426caf9ce442a1d5be98f41a8fb518aff8b0212
[]
no_license
KurSh/remenissions_test
626daf6e923459b44b82521aa4cb944aad0dbced
9dec8085b62a446f7562adfeccf70f8bfcdbb738
refs/heads/master
2023-07-08T20:25:04.823318
2020-10-05T06:45:16
2020-10-05T06:45:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
779
py
from pwn import * import time import sys import signal import sf target = process("./chall-test_BofVar-07-x86") gdb.attach(target, execute="verify_exploit") bof_payload = sf.BufferOverflow(arch=32) bof_payload.set_input_start(0x5a) bof_payload.add_int32(0x28, 0xfacade) bof_payload.add_int32(0x24, 0xdead) bof_payload...
[ "ryancmeinke@gmail.com" ]
ryancmeinke@gmail.com
863fc37358f8b1e7bbf23fbd0bbca50f70a787da
3cadd532d9a8bc517e2495edd19e76d60139095e
/handling/Rethrow.py
0502bcf94fd1623088860aeec28a93103f88d2e0
[]
no_license
razzaksr/SasiPython
008294af60e254e6d6721ea2ad19bb4a33e95801
af4ece0ebffe7ece7ba56a60b56f26fa7c646e3f
refs/heads/master
2023-02-09T23:03:13.939063
2021-01-11T02:45:21
2021-01-11T02:45:21
309,238,360
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# raise keyword used to rethrow stats1={ "Company":['Accenture','Wipro','TCS','Infoview','MindTree'], "Year":[2006,2002,2018,2016,2012], "Count":[67,10,6,32,19], "Day":[1,4,2,1,2] } def getInfo(): try: column = input("Tell us on which title based info you need: ") print(stats1[colu...
[ "razzaksr@gmail.com" ]
razzaksr@gmail.com
440996441f71d5199a09126ecbb504393a2ed217
6dedbcff0af848aa979574426ad9fa3936be5c4a
/cengal/io/asock_io/versions/v_0/base.py
338b1cc53dbf557599cf7ea8577ffc47a9789f25
[ "Apache-2.0" ]
permissive
FI-Mihej/Cengal
558d13541865e22006431bd1a1410ad57261484a
d36c05f4c90dfdac7296e87cf682df2f4d367e4b
refs/heads/master
2023-06-08T00:39:39.414352
2023-06-05T21:35:50
2023-06-05T21:35:50
68,829,562
10
1
null
null
null
null
UTF-8
Python
false
false
6,005
py
#!/usr/bin/env python # coding=utf-8 # Copyright © 2012-2023 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space> # # 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:...
[ "gtalk@butenkoms.space" ]
gtalk@butenkoms.space
2ce4c8e5bcb7935dead879b6296c40e0bb804baa
08a6c7edf3008f5b48e17f3ed9e835341a2858f3
/Turtle2.py
f01a15b5d4754f2064cfcf9f46cd763e1ea71825
[ "MIT" ]
permissive
dougiefresh1233/MyoTurtle
864e0b6e7f61618847328d8b0d5584db9da84c1b
ce83c592ded43446546108d9086f0236b7ead72d
refs/heads/master
2016-08-11T10:06:26.329359
2015-10-14T03:22:15
2015-10-14T03:22:15
44,026,156
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
#!/usr/bin/python ''' DON'T TOUCH THESE FIRST LINES! ''' ''' ============================== ''' from PyoConnect import * myo = Myo(sys.argv[1] if len(sys.argv) >= 2 else None) ''' ============================== ''' ''' OK, edit below to make your own fancy script ^.^ ''' # Edit here: import time import turtle def o...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
18bce944d26661b8b63483c0169cbcc64ff45598
5466fb1aafba1697d39145a9ff123ee01edab119
/python/thermlib/convertSkewToTemp.py
5dc110004c9648103fde8ac136f5ff4fb1294a19
[]
no_license
sasaxuan/A405
9b9af33eb2e3d7d035009c3174a14894b6571211
3990ff0477c20bbefba8c9730592897cf2300be8
refs/heads/master
2020-04-11T09:12:30.932177
2012-03-30T05:06:02
2012-03-30T05:06:02
3,391,750
4
0
null
null
null
null
UTF-8
Python
false
false
839
py
"""This is the docstring for the convertSkewToTemp.py module.""" import numpy as np def convertSkewToTemp(xcoord, press, skew): """ convertSkewToTemp(xcoord, press, skew) Determines temperature from knowledge of a plotting coordinate system and corresponding plot skew. Parameters - - - -...
[ "paustin@eos.ubc.ca" ]
paustin@eos.ubc.ca
947b8c9731e8277623de794fcea92d580940ae4e
2ba5e4665e45ae72cd8dc92b83452e1ff896ed12
/app2/migrations/0004_companyregister.py
d295cabf0299a44ee036bcc0e7b0fa7347115537
[]
no_license
prasadnaidu1/Prasad_Educational
f28e15098a3a3bf16a1c2029022c18b107879196
f6d638a68d00bb9d361939db3511db6cbc4b1bc5
refs/heads/master
2020-04-08T11:11:54.510029
2018-11-27T07:48:28
2018-11-27T07:48:28
159,296,855
1
0
null
2018-11-27T07:52:19
2018-11-27T07:52:19
null
UTF-8
Python
false
false
809
py
# Generated by Django 2.1.1 on 2018-10-24 08:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app2', '0003_student'), ] operations = [ migrations.CreateModel( name='companyregister', fields=[ ('...
[ "vamsikrishna6668@gmail.com" ]
vamsikrishna6668@gmail.com
5e9c348bd752b4ebb7348e357dbe92ba0548d79a
7ce909830e4df4418725a9fa3ac1c1f4a1872089
/venv/Lib/site-packages/ase/gui/defaults.py
4953ad2c8991ee6a76370a692e5083f9db0a0790
[]
no_license
Pratiksha1317/e-shop
421a71c78111f433f6d04e1e8678b35a179038ea
6299b76c0504c5a7f7e94271aba9907a8ce77719
refs/heads/master
2023-05-29T17:34:15.726262
2021-06-12T11:58:35
2021-06-12T11:58:35
376,225,246
0
0
null
null
null
null
UTF-8
Python
false
false
1,153
py
"""This is a module to handle generic ASE (gui) defaults ... ... from a ~/.ase/gui.py configuration file, if it exists. It is imported when opening ASE-GUI and can then be modified at runtime, if necessary. syntax for each entry: gui_default_settings['key'] = value """ import runpy gui_default_settings = { 'gui...
[ "partugurav@gmail.com" ]
partugurav@gmail.com
2ea86344e148b1a806ba0c8b646e65518279b733
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R4/benchmark/startQiskit426.py
71014707cc63b02ff9a1fef2599d5cd7653a6086
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,464
py
# qubit number=3 # total number=11 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
52367806029092cd99c37c314fd624e3fc0bf4cc
a0f57bb37d6703178fc0509f882a77682e51963c
/taxcalc/tests/test_responses.py
ab82c8631ebdd20c40ce4427ceef166a8f7376a3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
ClarePan/Tax-Calculator
b483b8b3e9518901e54f7fc8cf26fcf7a9baff57
d2d6cb4b551f34017db7166d91d982b5c4670816
refs/heads/master
2020-03-24T01:08:38.947865
2018-07-23T19:40:17
2018-07-23T19:40:17
142,324,095
1
0
null
2018-07-25T16:10:22
2018-07-25T16:10:22
null
UTF-8
Python
false
false
2,631
py
""" Test example JSON response assumption files in taxcalc/responses directory """ # CODING-STYLE CHECKS: # pycodestyle est_responses.py # pylint --disable=locally-disabled test_responses.py import os import glob import pytest # pylint: disable=unused-import # pylint: disable=import-error from taxcalc import Calculat...
[ "martin.holmer@gmail.com" ]
martin.holmer@gmail.com
3883615ee3cc7a0fa2d9f23b38efd33f0a7afae0
8f9b3d2dd13b8a677bc0832ce0c5caa1e92c295d
/python_learning/sci/ch 10/Receipe_2b.py
a5c4e8f507650b92d0bdd682cd332f701d1f018d
[]
no_license
abiraja2004/shiyanlou
df27e1f3a60c8521f7d058f9a2cd2cccd098282c
2785461fb37c12af4a67ad9cb915c8935916835d
refs/heads/master
2020-03-08T09:58:10.731439
2018-02-12T06:23:54
2018-02-12T06:23:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
def build_model(x,y): estimator = SGDRegressor(n_iter = 10, shuffle=True,loss = "squared_loss", \ learning_rate='constant',eta0=0.01,fit_intercept=True, \ penalty='none') estimator.fit(x,y) return estimator def model_worth(model,x,y): predicted_y = model.predict(x)...
[ "sunbao@corp.netease.com" ]
sunbao@corp.netease.com
9b426dd16534934529276d9481fea90e6f793670
03a210fac12f08bf66eedaa6c39431df0e980fb2
/0x0F-python-object_relational_mapping/relationship_state.py
bc7147664c461c6b2ce0b17a2a48f1bd0ecd1120
[]
no_license
jhosep7/holbertonschool-higher_level_programming
9107daee8c6642dcbfc7d7a3957c5fdd97b3f8e2
c16437413b6b6995d6631851a9e1c0aeb24e18e4
refs/heads/master
2020-09-29T04:00:11.969366
2020-05-15T13:37:11
2020-05-15T13:37:11
226,944,654
1
0
null
null
null
null
UTF-8
Python
false
false
621
py
#!/usr/bin/python3 """Improve model_state.py as relationship_state.py""" from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, backref from sqlalchemy import Column, Integer, String Base = declarative_base() class State(Base): """Class State""" __tablename__ = "sta...
[ "jodia.ms@outlook.com" ]
jodia.ms@outlook.com
695fa8b6a4c27fe4f96378ee5d13775e00a03b54
6b37deabac3116e65bc869035cf8cfa50f22590c
/abc/abc185/a_abc_preparation/main.py
37dda31437b9ae83bcb0e2a42e7b72bafb9470cd
[]
no_license
hiromichinomata/atcoder
92122a2a2a8b9327f4c8dc0e40889e8dc0321079
82216622d9040e95239b4a21e973cb12e59d7f6e
refs/heads/master
2022-10-05T04:00:44.509719
2022-08-14T04:46:49
2022-08-14T04:46:49
176,891,471
2
0
null
null
null
null
UTF-8
Python
false
false
137
py
#!/bin/python3 import sys input = sys.stdin.readline def main(): a = list(map(int, input().strip().split())) print(min(a)) main()
[ "git@hiromichinomata.com" ]
git@hiromichinomata.com
c27cfc2a607df2e9f3c80e5f195a85b76935f78d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02709/s867521241.py
29f85eb67ac0c912a1e2809f4e35bb49f8f8c4ab
[]
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
188
py
e=enumerate n,a=open(0) n=int(n) d=[0]+[-1e18]*n for j,(a,i)in e(sorted((int(a),i)for i,a in e(a.split()))[::-1]):d=[max(t+a*abs(~i-j+k+n),d[k-1]+a*abs(~i+k))for k,t in e(d)] print(max(d))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7bb39de93b655de7c1298d921ab195e28d3e9874
51c5c4c8c9d3f88c3f4eb4265e9c796b6ca8dd82
/app/users/models.py
b8d82668ad961210b57c3c059c2cc31b4d8aad0c
[ "Unlicense" ]
permissive
ahmedelfateh/event_app
1685db63ba3a0fd88708b8db5f05145b78135502
d98c22b839f91b5e233011f885ff326e430f1c38
refs/heads/master
2023-02-22T14:02:33.849896
2021-01-25T09:23:04
2021-01-25T09:44:12
332,111,462
0
0
null
null
null
null
UTF-8
Python
false
false
1,872
py
from django.contrib.auth.models import AbstractUser, UserManager as BaseUserManager from django.db import models from django.urls import reverse class UserManager(BaseUserManager): # pylint: disable=arguments-differ def _create_user(self, username, email, password, **extra_fields): """[summary] ...
[ "elfateh.dev@gmail.com" ]
elfateh.dev@gmail.com
890de6ed911815f321266fdafdfc4500263f0f9b
a98899845ed5dc112f50e2824082c8dc49941ed8
/project/api/migrations/0099_auto_20170719_1229.py
f58cec77a0084882110d53a8d3a32831c568f823
[ "BSD-2-Clause" ]
permissive
talexb/barberscore-api
9d6c48eca5233b530e2c02251b004b0b1d72c429
2320a75d9b49368f5eb1e00e5e5f32f5c79484a1
refs/heads/master
2021-01-15T11:57:34.970439
2017-08-07T14:42:57
2017-08-07T14:42:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-19 19:29 from __future__ import unicode_literals from django.db import migrations import django_fsm class Migration(migrations.Migration): dependencies = [ ('api', '0098_auto_20170718_1534'), ] operations = [ migrations.Rem...
[ "dbinetti@gmail.com" ]
dbinetti@gmail.com
d0e5d4ab42d5e290dada60c2f8b4211555c1de6e
5959a8f6170fb2ad412944255b4a761362d97a08
/src/valet/urls.py
9af4a3264278073698891aaf99b30f1a63885d7f
[]
no_license
bchuey/valet
7bd59e93023c5eaa915ed1fcca76a588202c5063
2aae705c718a5b10cc9fbe4b2e93ad819e1328c2
refs/heads/master
2016-08-11T22:14:58.720776
2016-04-26T17:49:51
2016-04-26T17:49:51
54,831,477
0
0
null
null
null
null
UTF-8
Python
false
false
2,733
py
"""valet URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "bchuey415@gmail.com" ]
bchuey415@gmail.com
90688f7089e22fd950e94031d7993dcc4e49812a
4e02d5b0b1b0739553fd40bbbdfb0d02c9830350
/0901_Online_Stock_Span.py
ce5b3af372fe53d6de68e501700b5e81320d916d
[]
no_license
bingli8802/leetcode
b039ab6af62f0c8992463393f561caafd21056e6
a509b383a42f54313970168d9faa11f088f18708
refs/heads/master
2023-03-29T03:11:45.801090
2021-03-23T22:55:16
2021-03-23T22:55:16
279,321,659
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
class StockSpanner(object): def __init__(self): # 全局变量用来储存(股票价格,跨度) self.stack = [] def next(self, price): """ :type price: int :rtype: int """ cnt = 1 # 如果当天股票价格大于前一天 就把跨度加一 前一天pair删掉 while self.stack and self.stack[-1][0] <= price: ...
[ "noreply@github.com" ]
bingli8802.noreply@github.com
21056589de8950c9477104dc5b98c28c94188d0e
ba6adee3c96f8ae56e266ec014a8411c5b776d13
/experiments/transfer/yolo_air_progression.py
7696d757d229093f0dc630dd911066112f52ddc0
[ "MIT" ]
permissive
alcinos/auto_yolo
7bfa97c0e0bc609de52bd15fe9fe9aa2701b4129
78727596f937b38d4de47dd9f0a7cc8c6104323f
refs/heads/master
2020-05-18T19:22:26.307837
2019-04-30T13:42:42
2019-04-30T13:42:42
184,607,522
0
0
MIT
2019-05-02T15:39:08
2019-05-02T15:39:08
null
UTF-8
Python
false
false
1,646
py
from auto_yolo import envs readme = "" durations = dict( long=dict( max_hosts=1, ppn=6, cpp=2, gpu_set="0,1", wall_time="24hours", project="rpp-bengioy", cleanup_time="20mins", slack_time="5mins", n_repeats=6, step_time_limit="24hours"), build=dict( max_hosts=1, ppn=3, cpp=2, g...
[ "eric.crawford@mail.mcgill.ca" ]
eric.crawford@mail.mcgill.ca
0e11e37cd5784d598a688ca4968135d2e6936286
88a5dae03f0304d3fb7add71855d2ddc6d8e28e3
/main/module/services/__init__.py
0cf84c96638f6a129d9481c046be01dcd74cb828
[ "Apache-2.0" ]
permissive
huangpd/Shape
eabb59781ac6a055f7b7036fef926023cbcd4882
fddbbb765e353584752066f7c839293ebd10c4df
refs/heads/master
2020-03-26T13:04:22.224367
2018-05-10T09:06:10
2018-05-10T09:06:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
#-*-coding:utf-8-*- from flask import Blueprint services_blueprint = Blueprint( 'services', __name__, url_prefix = "/services" ) from . import views
[ "root@localhost.localdomain" ]
root@localhost.localdomain
85ed0d54cce29befc7fdb35b380c4fd99be95286
cd4676555fc1066b5a84320ebbb1d4623066380d
/crusoe_observe/cms-component/cmsscan/scanner/scanner.py
2a2e30b64332ed3d4e7ebf52165a71c96268da83
[ "MIT" ]
permissive
wumingruiye/CRUSOE
3ca542fa5362caf404593acfc4b01eb8f9b4d5f4
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
refs/heads/main
2023-07-01T21:40:09.538245
2021-08-05T14:07:03
2021-08-05T14:07:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,708
py
#!/usr/bin/python3.6 """ Module is used for acquiring information about Content management systems """ import json import subprocess import structlog import pkg_resources def parse(data_path, out_path, cpe_path, logger): """ Parse output of scanning and map CMS names and versions to the CPE format :para...
[ "spaceks@ics.muni.cz" ]
spaceks@ics.muni.cz
2bdb1bdc3a25bc6893cc14805a37f3f577754930
426bafd4d3359c7859b58314d0fe94bdc0af3d54
/classbaseview/util/pager.py
04193c529108fbe16e92c6d0d056a2b6b6cae008
[]
no_license
heqiang/Rest_Framwork
5b37b5d102db5639a288c5397ee0099d0e4b3711
9d6215e65dcb269b97adac17af548fb74377dea8
refs/heads/master
2022-12-24T03:20:12.656639
2020-10-12T08:48:24
2020-10-12T08:48:24
290,705,103
1
0
null
null
null
null
UTF-8
Python
false
false
331
py
from rest_framework import serializers from classbaseview import models class PagerRoleSerizers(serializers.ModelSerializer): class Meta: model = models.Role fields = "__all__" class PagerUserSerizers(serializers.ModelSerializer): class Meta: model = models.UserInfo fields ...
[ "1422127065@qq.com" ]
1422127065@qq.com
7451cc512de53b3336ff7a72b4916c0e0516981e
043deb0abe306b2e66d24eb90201270a2e97b377
/pdfplumber/__init__.py
755060c44e9108d189abdde4838208cf13e0a5a7
[ "MIT" ]
permissive
elaOnMars/pdfplumber
e2b8086cae98d0c65738a9550950e28e5dbad0d8
bb49ac8f031eb34dc1ed15d0c52b320139ba97af
refs/heads/master
2021-01-21T19:15:40.860977
2016-04-13T02:32:04
2016-04-13T02:32:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
from pdfplumber.pdf import PDF import pdfplumber.utils import pdfminer import pdfminer.pdftypes pdfminer.pdftypes.STRICT = False pdfminer.pdfinterp.STRICT = False VERSION_TUPLE = (0, 4, 3) VERSION = ".".join(map(str, VERSION_TUPLE)) def load(file_or_buffer, **kwargs): return PDF(file_or_buffer, **kwargs) open = ...
[ "jsvine@gmail.com" ]
jsvine@gmail.com
78dfb2004745297ed6699bd23f175f1d5c436157
8cb8bfd2dae516612251039e0632173ea1ea4c8a
/register_schedule.py
d28189f5498e29b5dc99ba6bed07e0c003c94691
[]
no_license
nyzsirt/lift-prod
563cc70700d26a5812a1bce0bd9795998dce6e99
9a5f28e49ad5e80e422a5d5efee77a2d0247aa2b
refs/heads/master
2020-04-22T01:05:42.262876
2019-02-09T13:31:15
2019-02-09T13:31:15
170,003,361
1
0
null
2019-02-10T17:11:50
2019-02-10T17:11:50
null
UTF-8
Python
false
false
1,814
py
from apscheduler.schedulers.background import BackgroundScheduler import atexit # from apscheduler.triggers.interval import IntervalTrigger class ScheduleController: def __init__(self): self.scheduler = BackgroundScheduler() # self.scheduler.add_job() def run_schedules(self): try: ...
[ "mutlu.erdem@soft-nec.com" ]
mutlu.erdem@soft-nec.com
09c1bc4ccea9ef86d9425803e7c064328c869b4b
85b4069d336f9b2b8ee7db4a8b0a74a848ebf5c5
/training/rule.py
f3d2a9a031e1673ba455b878b86b5ff59fb8c8e2
[ "MIT" ]
permissive
GavinPHR/Parser
f3391ec8bbc6f07bedb97887ef490a53747e48d6
3e7dd453d756526105edf8cacd35c72481940c0e
refs/heads/main
2023-01-06T22:24:17.775762
2020-10-25T23:24:00
2020-10-25T23:24:00
300,986,979
1
0
null
null
null
null
UTF-8
Python
false
false
1,175
py
import config def hash_forward(a, b, c): """ 20 bits for each position, should be more than enough for any grammar """ return (a << 40) ^ (b << 20) ^ c class Rule3: """ Encapsulation for a 3rd order rule """ def __init__(self, a, b, c): """ a -> b c where a, b, c are ...
[ "gavinsweden@gmail.com" ]
gavinsweden@gmail.com
530ecacaf6b351b5be5753d8b9cac4feb02c1622
1c39d98a7f4be6939bcbacbf3b4f7d9610bf2ea9
/0.Basis/3.Algorithoms/Completed/2.365.二进制中有多少个1.py
50b72188b34052dd7866ec17aaf4489be4688620
[]
no_license
vlong638/VL.Python
03ae0da96164d9cd2de521faea2cb86e68152bc8
06499fa1f7f7e4b4ae9f9e470c04f78bce86a7b1
refs/heads/master
2021-01-13T11:01:29.137801
2016-11-04T05:47:09
2016-11-04T05:47:09
69,540,586
0
0
null
null
null
null
UTF-8
Python
false
false
675
py
class Solution: # @param num: an integer # @return: an integer, the number of ones in num #计算在一个 32 位的整数的二进制表式中有多少个 1. #上述二进制指计算机所存储的二进制,对于负数则是反码 def countOnes(self, num): # write your code here if num<0: count=1 num-=1 num=2**31-1^num ...
[ "vlong638@163.com" ]
vlong638@163.com
6bdd8b13eadd1bc84bb3ebd486557bc65d4df08a
fd7406dcf3f898bd5b82a0ee4306e02c1d1b4970
/testcase/operation_testcase/testAppOrderOperation.py
3e88255cbaf11f7553698eff7c87fbf78ff95c85
[]
no_license
18786262315/zidonghuaapi
e5f979fc599f8bca08e7e5cfbd58943fe36b75d3
28145f13231e9df76a33894b82c0e552afb485fc
refs/heads/master
2020-03-26T01:48:13.018859
2018-08-11T12:32:51
2018-08-11T12:32:51
144,383,122
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
# -*- coding: utf8 -*- import unittest from AthenaTest.common.loadDatas import * import sys import importlib importlib.reload(sys) class TestAppOrderOperation(unittest.TestCase): def setUp(self): self.datafile = '../../datacase/operation_datacase/app_order_operation.xls' def test_orderOpration(self)...
[ "843092012@qq.com" ]
843092012@qq.com
9c4bb8b7a0466595031ec210faf09c620e24fd7b
b9a3269b0bf34e4c6634b4807accfdf6bb1c6709
/8.2_EqiLeader.py
edf77c4f777c486efde2ad769a5476d6efa1e368
[]
no_license
bingli8802/codility
6a4d78c0d88329418b968865d1d1f619f9598e54
38c4c61a5857beeacfbe8c05e6e11064c62ff08f
refs/heads/main
2023-02-24T03:16:11.289160
2021-01-24T06:04:06
2021-01-24T06:04:06
332,120,712
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") import collections def solution(A): # write your code in Python 3.6 dic = dict(collections.Counter(A)) leader, times = max(dic.items(), key = lambda x: x[1]) left = 0 equiCnt = 0 for i, v in enumerate(A): ...
[ "noreply@github.com" ]
bingli8802.noreply@github.com
dd1c28ae84c6bb0be12cb38f6600ea552ddd15b1
d26c51a13125e038194bd296cdefbdc6189e718e
/pip_services_runtime/cache/CacheEntry.py
1757b9f147b84efef75829513d45041497fe26f5
[ "MIT" ]
permissive
pip-services-archive/pip-services-runtime-python
0ec2f61ca800d67ed2221a9b18362346c4ae97c5
70eca1ffc44bfdc45c9c65b0ee347fa578368849
refs/heads/master
2020-05-20T18:32:44.087193
2017-03-10T01:22:18
2017-03-10T01:22:18
84,504,584
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
# -*- coding: utf-8 -*- """ pip_services_runtime.cache.CacheEntry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cache entry implementation :copyright: Digital Living Software Corp. 2015-2016, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ import time class CacheEn...
[ "seroukhov@gmail.com" ]
seroukhov@gmail.com
db5c9284d765a056043d6f26d0736751c580e8c7
b835a371d6e96e3bf01e157825367fa8cb977101
/website/authors/forms/article.py
27e32f697404ce775fc37b0b5629d70bf5f34db2
[ "MIT" ]
permissive
SebastiaanZ/minigigscyclingteam
c832858c5164c66782a082301bf46df15ded7fc4
6c8c4f7ae41a5b01a551c592dc81fd37fd4f686e
refs/heads/master
2022-11-29T18:22:58.005902
2020-01-28T22:15:42
2020-01-28T22:15:42
196,997,653
0
0
MIT
2022-11-22T05:16:55
2019-07-15T12:49:03
HTML
UTF-8
Python
false
false
870
py
"""Forms related to articles.""" import django.forms from website.home.models import Article from website.utils import ClearableImageInput class NewArticleForm(django.forms.ModelForm): """Form to create a new article.""" cover_image = django.forms.ImageField( required=False, widget=ClearableImageInp...
[ "33516116+SebastiaanZ@users.noreply.github.com" ]
33516116+SebastiaanZ@users.noreply.github.com
f09856ac41127c4cbe851f071ba981bf1ff552fc
2bae1b187f8fd7d10d9bfdd3f8cb68897fb81ca7
/test_min_strat1.py
6eaa2d558161739d19b9273c3451322b17c31419
[]
no_license
JoshuaChi/pyktrader
82f1ad783fc95540b3c50d7082eb26e0496f53f2
abdbd119dc65f0a48f6a88c07bad9853b6304d9d
refs/heads/master
2021-01-18T18:32:53.184319
2015-02-27T10:52:03
2015-02-27T10:52:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
import pandas as pd import numpy as np import mysqlaccess as mdb import datetime if __name__ == '__main__': x = mdb.load_min_data_to_df('fut_min','m1501',datetime.date(2014,9,1),datetime.date(2014,11,5),minid_start=1501, minid_end=2059) y = mdb.load_min_data_to_df('fut_min','RM501',datetime.date(2014,9,1),dateti...
[ "harvey_wwu@hotmail.com" ]
harvey_wwu@hotmail.com
a65da4b529b40f9844542d63158e1551a64cb2fd
aa4d19f8c9ca7f02109a0c6f7929c19f72e12dad
/scripts/artifacts/knowCwatchnear.py
b4bec6cd110766bcd0f686900d323e68cef0e9ee
[ "MIT" ]
permissive
thehappydinoa/iLEAPP
e152bd7ab781e5303c0f953bcdae39cbb326e698
6dbc38270620c786e4efc47437aba80519c46cdb
refs/heads/master
2022-11-24T16:59:47.636644
2020-07-21T23:36:46
2020-07-21T23:36:46
281,523,450
2
1
MIT
2020-07-21T23:09:37
2020-07-21T23:09:36
null
UTF-8
Python
false
false
2,650
py
import glob import os import pathlib import plistlib import sqlite3 import json from packaging import version import scripts.artifacts.artGlobals from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows def get_knowCwatchnear(files_found, repor...
[ "abrignoni@gmail.com" ]
abrignoni@gmail.com
8793f9951e66f24ff93f5d56f23b4f9c0ac036bb
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_template_group_request.py
843d1a7bba937b18a7a556281fb64312811cf019
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,694
py
# coding: utf-8 import re import six class CreateTemplateGroupRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is jso...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
52d78592f5958b5941c96041f8c017059a7f09a2
af259acdd0acd341370c9d5386c444da6a7a28a6
/Unsupervised-Learning-in-Python/01-Clustering-for-dataset-exploration/07-Clustering-the-fish-data.py
e23df258f016c097a4ae35180cd630fa3ca3f0ee
[]
no_license
pace-noge/datacamp
fcd544f6478040660f7149b1a37bfd957eef9747
eeffb8af233e7304c0f122a48e6b4f78ee7c650e
refs/heads/master
2020-07-04T12:41:29.635167
2019-09-17T10:11:39
2019-09-17T10:11:39
202,289,041
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
""" Clustering the fish data You'll now use your standardization and clustering pipeline from the previous exercise to cluster the fish by their measurements, and then create a cross-tabulation to compare the cluster labels with the fish species. As before, samples is the 2D array of fish measurements. Your pipeline i...
[ "noreply@github.com" ]
pace-noge.noreply@github.com
03323238a9e624d143d475be84f404a3fb1fb320
d8606229e131748ac7c638ef920e484dbcbd7db4
/bhadrasana/functional_tests/selenium_test.py
65e8536bab89015d37b118a206eab84c455b7164
[]
no_license
IvanBrasilico/bhadrasana
f19adc6d459ad12d757022074c4d6579ab4c5e4b
4478c4b39345e1d7eafb63486f801c40b43c1efb
refs/heads/master
2021-04-30T04:46:49.890948
2020-01-31T13:48:19
2020-01-31T13:48:19
121,543,775
0
1
null
null
null
null
UTF-8
Python
false
false
7,338
py
"""Histórias de Usuário e testes. Este módulo contém os Histórias de Usuário e testes funcionais que testam o comportamento descrito no Caso de Usuário A classe SeleniumTestCase implementa um Servidor de Testes para utilização e métodos reutilizáveis para os testes de cada História de Usuário Classe LoginPage pode s...
[ "brasilico.ivan@gmail.com" ]
brasilico.ivan@gmail.com
a3eeff9416a69777ade5ef3f13218eb3c897c86a
551d993b15f7e54635cc11d7ed3ee45a2e9aacc6
/AAE/Chainer implementation/adversarial-autoencoder-master/sequential/sequential.py
5d21412b75f41cefc2d8268c111428313669660b
[ "MIT" ]
permissive
hendrikTpl/GAN_models
6185a3c112a8b45205bdd4c556164b6153fbec19
8234c7f04be39d20fe09f81511b591deab9152a9
refs/heads/master
2021-10-25T16:52:13.239290
2019-04-05T15:28:06
2019-04-05T15:28:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,595
py
import copy, json, types import chainer import layers import functions from util import get_weight_initializer class Sequential(object): def __init__(self, weight_initializer=None, weight_std=None): self.layers = [] self.links = [] self.built = False self.weight_initializer = weight_initializer # Normal / Gl...
[ "1019636836@qq.com" ]
1019636836@qq.com
bc8acd8686f2c28c81a3e8620ef9fe0cd4c160d9
244189d49a3967b4b002af73f40ca8e8064c4771
/modules/exploits/linux/http/axis_srv_parhand_rce.rb
ef9c1908894fd218e81766aa3a2fb4aafe292151
[ "MIT" ]
permissive
darkcode357/thg-framework
7540609fb79619bdc12bd98664976d51c79816aa
c1c3bd748aac85a8c75e52486ae608981a69d93a
refs/heads/master
2023-03-01T05:06:51.399919
2021-06-01T14:00:32
2021-06-01T14:00:32
262,925,227
11
6
NOASSERTION
2023-02-10T23:11:02
2020-05-11T03:04:05
Python
UTF-8
Python
false
false
3,997
rb
## # This module requires Metasploit: https://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## class MetasploitModule < Msf::Exploit::Remote Rank = ExcellentRanking include Msf::Exploit::Remote::HttpClient include Msf::Exploit::CmdStager def initialize(info = {}) ...
[ "darkocde357@gmail.com" ]
darkocde357@gmail.com
df26af080d5615c6658a6c0f180ef778c214eaf2
8e1be167066e30eff91c26c0757211cf3cf8b016
/django/full_stack/semi_restful_tv_shows/apps/tv_shows/models.py
df3d4d9374f683ca654fb0ac33aafd2af16640f5
[]
no_license
dojo-solutions/online-ft-python
074d0ba968f5a77eaec1bca0904232f2aa29051a
b4f6941d0bba376d121a40a6429b815d5b03c32f
refs/heads/master
2020-04-21T11:52:31.390772
2019-03-02T01:27:54
2019-03-02T01:27:54
169,542,448
0
1
null
null
null
null
UTF-8
Python
false
false
363
py
from django.db import models # Create your models here. class Show(models.Model): title = models.CharField(max_length=255) network = models.CharField(max_length=255) release_date = models.DateTimeField() description = models.TextField() created_at = models.DateTimeField(auto_now_add=True) updat...
[ "wes@tao.team" ]
wes@tao.team
528fda483ee8519dcc5a2799c6f7101519b7992c
6998ae14f14846e699ba93736d79631242ae7779
/api/make_traindatas/decomposition.py
7ec9e23b9adb25553d80226594427367accffc08
[]
no_license
shimakaze-git/cute-or-beautiful-judge
d032e0226f66b475bfb020a6d414b0e3cadfd674
fe81eda023105a018e95d40103644af1111fd0d0
refs/heads/master
2020-04-05T22:24:42.537231
2018-11-15T08:03:34
2018-11-15T08:03:34
157,255,480
0
0
null
null
null
null
UTF-8
Python
false
false
1,914
py
# -*- coding: utf-8 -*- #!/usr/bin/python ''' Created on 2018/11/13 @author: shimakaze-git ''' from sklearn.decomposition import PCA # features class Decomposition: """ 次元削減を行う """ def __init__(self, n=2): self.pca = PCA(n_components=n) def transform(self, features): """ 次元削減処理 """ ...
[ "shimakaze.soft+github@googlemail.com" ]
shimakaze.soft+github@googlemail.com
f33173da3e20252dda85c922b51143c15e5fc111
ecff4b18a49ce5952c5f9125dc027cebdecf10a8
/azure-mgmt-logic/azure/mgmt/logic/models/content_hash.py
5ecdefbf6c602f41f22f14b0bc20cd570dbf1ab4
[ "Apache-2.0" ]
permissive
jehine-MSFT/azure-sdk-for-python
a56c18020ecd5f4c245c093fd6a33e1b1d7c95e1
6d0f94b39406eab374906c683bd2150217132a9c
refs/heads/master
2020-12-06T19:17:38.153819
2016-04-08T21:03:16
2016-04-08T21:03:16
55,809,131
0
0
null
2016-04-08T20:54:00
2016-04-08T20:54:00
null
UTF-8
Python
false
false
1,422
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. All rights reserved. # # 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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
18e3009eb6b53fa7c1dbb4f2415bf13258536739
fcdfe976c9ed60b18def889692a17dc18a8dd6d7
/robots/dynamixel/rhp12rna/enable.py
2c9aa854d7a64e34b53291ba31690bd84692feec
[]
no_license
akihikoy/ay_test
4907470889c9bda11cdc84e8231ef3156fda8bd7
a24dfb720960bfedb94be3b4d147e37616e7f39a
refs/heads/master
2023-09-02T19:24:47.832392
2023-08-27T06:45:20
2023-08-27T06:45:20
181,903,332
6
3
null
null
null
null
UTF-8
Python
false
false
231
py
#!/usr/bin/python #Enable dynamixel. from dxl_util import * from _config import * #Setup the device dxl= TDynamixel1(DXL_TYPE) dxl.Id= DXL_ID dxl.Baudrate= BAUDRATE dxl.Setup() dxl.EnableTorque() #dxl.DisableTorque() dxl.Quit()
[ "info@akihikoy.net" ]
info@akihikoy.net
863a716bd4b32b6172fa92bfb455b3231f5d3bb3
0f35af8556f5e8af92c6f09c493509f5bb8f16b5
/slide33_CapitalizedValue.py
2c7ae7aae4770f8e68696c49adc73178fd9d290d
[]
no_license
mattjegan/describing-descriptors
9b8f7de933835ff793c64677f2190b2d53e1db03
08d53feb79db53b07b42166254cc6a173159ddb7
refs/heads/master
2020-03-26T19:43:45.720964
2018-09-01T23:55:07
2018-09-01T23:55:07
145,282,867
6
1
null
null
null
null
UTF-8
Python
false
false
545
py
from weakref import WeakKeyDictionary class CapitalizedValue(object): def __init__(self): self.data = WeakKeyDictionary() def __get__(self, instance, owner): if instance is None: return self return self.data[instance] def __set__(self, instance, value): self.d...
[ "matthewj.egan@hotmail.com" ]
matthewj.egan@hotmail.com
e17f4d164665194d10c80882f6565b94c1bc83d3
10d17864a685c025bb77959545f74b797f1d6077
/capitulo 08/08.38.py
3bfd70a9fc8f42eefbf25d6ba24685b32a702db6
[]
no_license
jcicerof/IntroducaoPython
02178d2dfcaa014587edbd3090c517089ccef7c2
02e619c7c17e74acdc3268fbfae9ab624a3601dd
refs/heads/master
2020-04-24T18:12:21.422079
2019-02-23T05:14:43
2019-02-23T05:14:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
############################################################################## # Parte do livro Introdução à Programação com Python # Autor: Nilo Ney Coutinho Menezes # Editora Novatec (c) 2010-2019 # Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8 # Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3 # Terce...
[ "jose.cicero@gmail.com" ]
jose.cicero@gmail.com
d3b324320bddc4772ed6ffe4e519d282865112b7
e94bb02e2cf26c9eefb4e5752f8909dfb32ca0c5
/jsonPython/aula36-json/aula36-json.py
7a72ca11bf9c248494aca672eb4b88dd0aefa7dc
[]
no_license
motovmp1/pythonJson
5331b2a5118beccd676fc09c6ba6863b8cf07d8d
63293d2100e8eee4a8fed281ccc203669fa67c1f
refs/heads/master
2023-08-13T11:25:10.650785
2021-10-05T19:30:45
2021-10-05T19:30:45
408,231,018
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
import json # cuidado, json format estiver errado o python retorna erro e nao eh facil verificar carros_json = '{"marca": "honda", "modelo": "HRV", "cor": "prata"}' carros = json.loads(carros_json)
[ "vinicius.mpinho@gmail.com" ]
vinicius.mpinho@gmail.com
30ce0c0782931301114e8956adad7bb50b6013c0
79856fd6179d798b0669ddac5d14d67c70d3e481
/0x07-python-test_driven_development/101-lazy_matrix_mul.py
712f8bae21d7c508f878288a329cb301ac9acc27
[]
no_license
JwowSquared/holbertonschool-higher_level_programming
d1790a09bf8d673ea95a6f81a0dbe032ce2defca
de38ca2de13e0c7ca097f03de068f249af694a47
refs/heads/master
2023-03-07T03:02:40.569025
2021-02-25T23:02:42
2021-02-25T23:02:42
291,763,839
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
#!/usr/bin/python3 """This module holds the function lazy_matrix_mul, for Python 0x07 Task 7""" def lazy_matrix_mul(m_a, m_b): """Multiply two matrices together with numpy""" try: import numpy return numpy.matmul(m_a, m_b) except: raise
[ "Jdwagner1@hotmail.com" ]
Jdwagner1@hotmail.com
05884cb56e7ca89542d2ea2b97eee96a4ecbbae1
a31c21bcc4486fd44dd2c5b7f364e8f0320f7dd3
/mitmproxy/mitmproxy/proxy/protocol/http1.py
713c48a76aa14b72a93f6c64521c2c70f73346dd
[ "MIT" ]
permissive
SynthAI/SynthAI
0cb409a4f5eb309dfc6a22d21ac78447af075a33
4e28fdf2ffd0eaefc0d23049106609421c9290b0
refs/heads/master
2020-03-19T12:49:07.246339
2018-06-07T23:27:51
2018-06-07T23:27:51
136,542,297
3
1
null
null
null
null
UTF-8
Python
false
false
2,544
py
from mitmproxy import http from mitmproxy.proxy.protocol import http as httpbase from mitmproxy.net.http import http1 class Http1Layer(httpbase._HttpTransmissionLayer): def __init__(self, ctx, mode): super().__init__(ctx) self.mode = mode def read_request_headers(self): return http.H...
[ "foxxymoxxy@secmail.pro" ]
foxxymoxxy@secmail.pro
b74f9f6663377f79387bfc1bed4171db2692465a
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4175/codes/1807_2569.py
bc7eecf4f6402e8985fb6316d883e2df0784e89e
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
150
py
from numpy import * x = array(eval(input())) d=0 m=sum(x)/size(x) for i in x: d += (i - m)**2 w = d / (size(x)-1) q = sqrt(w) print(round(q,3))
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
960af0fbc4b53a489b2f4cea8b197253bc66829d
32257983a6aa9b6f719ce8835e789c94df8b9346
/trending/urls.py
269060a4357f02d0a0628a2ba2ccac656228b011
[]
no_license
alireza-shirmohammadi/MySite
2b165260460ea2a74769b0ceb81e520b26307a64
4537069f0ba50ac46f265d0157195f91bac5d853
refs/heads/master
2023-07-26T13:50:52.249782
2021-01-30T10:55:06
2021-01-30T10:55:06
303,093,825
2
0
null
null
null
null
UTF-8
Python
false
false
367
py
from django.contrib import admin from django.conf.urls import url,include from . import views urlpatterns = [ url(r'^panel/trending/$', views.trending_add, name='trending_add'), url(r'^panel/trending/del/(?P<pk>\d+)/$', views.trending_del, name='trending_del'), url(r'^panel/trending/edit/(?P<pk>\d+)/$', vie...
[ "alireza.sh076@gmail.com" ]
alireza.sh076@gmail.com
e2f5031af4da966cf0d03ea5e9caeec988efb591
eec83e69230aca5bc59fc2b33510fff85441285a
/Lab4/src/mail_send.py
fd6679afb8f086aebbf1509b6d973795b4cf2638
[]
no_license
UTMUniverStuff/NetworkProgrammingLabs
1ceb75c368dfd94e7996bedf4151bd42325492f1
cff2cef5d882f5d4eefe70ceeef6a4126983d758
refs/heads/master
2022-01-18T08:01:09.983980
2019-04-28T19:23:37
2019-04-28T19:23:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,771
py
import sys import smtplib import optparse from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders def build_arg_options(): option_parser = optparse.OptionParser() option_parser.add_option( '-e', '--email', ...
[ "terman.emil@gmail.com" ]
terman.emil@gmail.com
80d38c01f3a6d6568313587ef1dcbf86c37094ae
1ef8f7206acbaadcddd2441ca91fb6e23e2f5688
/liquidbox/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/domain/emails.py
eaa0455019cb419c08c7720f6929e3b586aac778
[]
no_license
kurosouza/liquidbox
a103636645502f1ea7f34187e68100107baadab2
1dcb004a1555ae1fa7d2cd398784a92dc81210e3
refs/heads/master
2022-04-24T13:49:40.995795
2020-04-23T22:57:19
2020-04-23T22:57:19
258,054,267
0
0
null
null
null
null
UTF-8
Python
false
false
892
py
import abc from typing import NamedTuple, NewType, Dict, Any from jinja2 import Template EmailAddress = NewType('email', str) default_from_addr = EmailAddress('issues@example.org') TemplateData = Dict[str, Any] class MailTemplate(NamedTuple): subject: Template body: Template class MailRequest(NamedTuple): ...
[ "=" ]
=
0a4097cae02a4967b72780e4394b70e0bc500de3
e3c8f786d09e311d6ea1cab50edde040bf1ea988
/Incident-Response/Tools/grr/grr/server/grr_response_server/output_plugins/elasticsearch_plugin.py
876ad95d8dca42999445283fa301cb852b806cd0
[ "Apache-2.0", "MIT" ]
permissive
foss2cyber/Incident-Playbook
d1add8aec6e28a19e515754c6ce2e524d67f368e
a379a134c0c5af14df4ed2afa066c1626506b754
refs/heads/main
2023-06-07T09:16:27.876561
2021-07-07T03:48:54
2021-07-07T03:48:54
384,988,036
1
0
MIT
2021-07-11T15:45:31
2021-07-11T15:45:31
null
UTF-8
Python
false
false
5,648
py
#!/usr/bin/env python """OutputPlugin that sends Flow results to an Elasticsearch cluster. Configuration values for this plugin can be found in core/grr_response_core/config/output_plugins.py The specification for the indexing of documents is https://www.elastic.co/guide/en/elasticsearch/reference/7.1/docs-index_.htm...
[ "a.songer@protonmail.com" ]
a.songer@protonmail.com
d2e42e4dde95a6f8a7a72a0c0bbd240c64b762e5
a8735c1ea27ac59b825adac83deecdfdf6d0a296
/assembler/errors.py
8d77f3c9ffe53be109671e81e2dde7d21af5fc43
[ "MIT" ]
permissive
paulscottrobson/next-hla-5
87714f550d34e1ce15232ef339366b354bad9bdc
39403a026f8e7653d14be18fcef062d6cb1b1db3
refs/heads/master
2020-04-13T06:10:48.394004
2018-12-30T10:21:00
2018-12-30T10:21:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
# *************************************************************************************** # *************************************************************************************** # # Name : errors.py # Author : Paul Robson (paul@robsons.org.uk) # Date : 27th December 2018 # Purpose : Exceptions # # ***********...
[ "paul@robsons.org.uk" ]
paul@robsons.org.uk
d6b0668f293f31c2c0b2056d8ef28ea59bfa5eca
5946112229fe1d9a04b7536f076a656438fcd05b
/dev_env/lib/python3.8/site-packages/pygments/lexers/pony.py
dede584d7cafa46661d6a702c78ad9d970a8723b
[]
no_license
Gear-Droid/openCV_study_project
3b117967eb8a28bb0c90088e1556fbc1d306a98b
28c9a494680c4a280f87dd0cc87675dfb2262176
refs/heads/main
2023-05-14T14:27:42.284265
2021-06-05T00:16:09
2021-06-05T00:16:09
307,807,458
0
1
null
null
null
null
UTF-8
Python
false
false
3,362
py
# -*- coding: utf-8 -*- """ pygments.lexers.pony ~~~~~~~~~~~~~~~~~~~~ Lexers for Pony and related languages. :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexer import RegexLexer, bygroups, words from pygme...
[ "Vladi003@yandex.ru" ]
Vladi003@yandex.ru
b361ec0c7822b140ee71cc38d7cf6989c9cc6294
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayEcoMycarRentcarOutorderSyncModel.py
01684532ef8060bf611782f03df43285080c4fc1
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
6,977
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayEcoMycarRentcarOutorderSyncModel(object): def __init__(self): self._carlife_vehicle_id = None self._drop_off_store_name = None self._drop_off_time = None sel...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
56d5983e041f56b91bbeb052ac86e992a62638d5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02622/s769626136.py
8019fc2f6cd54c95eabf2f5f3d13a46915c2c799
[]
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
170
py
import sys s = sys.stdin.readline().replace('\n','') t = sys.stdin.readline().replace('\n','') res = 0 for i in range(len(s)): if s[i] != t[i]: res += 1 print(res)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
aa8bbcf3efca0164a070f17a9d8bbb5a80d15eba
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/6010/836006010.py
383d0f6c85fa404945225b5589481ec840c3998d
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
2,292
py
from bots.botsconfig import * from records006010 import recorddefs syntax = { 'version': '00601', 'functionalgroup': 'RQ', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BCO', MIN: 1, MAX: 1}, {ID: 'ITD', MIN: 0, MAX: 99999}, {ID: 'CTB', MIN: 0, MAX: 5}, {ID: 'CTP', MIN: 0, MAX:...
[ "doug.vanhorn@tagglogistics.com" ]
doug.vanhorn@tagglogistics.com
90478e0490ea5532d4ff261b832145379542f597
e96cc817c768915eeff46027ded14e759e8042ff
/填坑记录/过程测试/test2.py
287d1963787a8238580cb5b81e2d0a28055010f9
[]
no_license
fovegage/learn-python
e22a32207cf513ba0f8c3428e9c00138987c2359
93b8d3513769a0b7d492a7b515f289fe3f1efc4a
refs/heads/master
2023-06-08T13:44:57.274677
2023-05-29T05:52:35
2023-05-29T05:52:35
148,493,932
6
0
null
null
null
null
UTF-8
Python
false
false
163
py
# -*- encoding: utf-8 -*- # @File:test2.py # @Author:fovegage # @Contact:fovegage@gmail.com # @Created Time:2019/8/26 14:57 # @Version:1.0 def t(l): if
[ "fovegage@gmail.com" ]
fovegage@gmail.com
44cb067ae3cd4965d59438999faed25afd7d0c13
b87f66b13293782321e20c39aebc05defd8d4b48
/maps/build/Traits/examples/demo/Standard_Editors/Popup_versions/TreeEditor_demo.py
ddc23c998cb1f874bdcd4486aca50c0c832ec523
[]
no_license
m-elhussieny/code
5eae020932d935e4d724c2f3d16126a0d42ebf04
5466f5858dbd2f1f082fa0d7417b57c8fb068fad
refs/heads/master
2021-06-13T18:47:08.700053
2016-11-01T05:51:06
2016-11-01T05:51:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,915
py
""" Demonstrates using the TreeEditor to display a hierarchically organized data structure. In this case, the tree has the following hierarchy: - Partner - Company - Department - Employee """ from enthought.traits.api \ import HasTraits, Str, Regex, List, Instance from enthought.traits.u...
[ "fspaolo@gmail.com" ]
fspaolo@gmail.com
f15c71e9f5663091c2b4db8b233bbb3afe54c68c
fd326562890d4f1987c384fc7c60374938231222
/Fundamentals/Dictionaries/Bakery.py
41ee2dc03e0929aa706851a5f899a4cb91543350
[]
no_license
miro-lp/SoftUni
cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4
283d9328537919de49f7f6a301e58593bae9ca2a
refs/heads/main
2023-08-23T21:22:07.856226
2021-08-25T15:10:18
2021-08-25T15:10:18
318,134,101
2
1
null
2021-08-10T12:51:54
2020-12-03T09:03:08
Python
UTF-8
Python
false
false
145
py
text = input().split(" ") bakery_menu = {} for i in range(0, len(text) - 1, 2): bakery_menu[text[i]] = int(text[i + 1]) print(bakery_menu)
[ "miro_lp@abv.bg" ]
miro_lp@abv.bg
a83610f8cabf8102c73046361000ec4dda5ea584
22a5d684341cee8f1095c3fe193f01f40f8121db
/2018/Practice/A. Number Guessing/2018-p-a.py
159371851c6752f86e654f67930d9ec05a4c6267
[]
no_license
andy1li/codejam
161b1db6faab372a4c2c4ce5956942387c650bed
3aa6ab1673064b8c80b5f56422bd496b372b30f3
refs/heads/master
2022-06-28T02:42:53.980149
2022-06-27T20:15:11
2022-06-27T20:15:11
53,395,936
6
4
null
null
null
null
UTF-8
Python
false
false
663
py
# 2018 Practice Session - A. Number Guessing # https://codejam.withgoogle.com/2018/challenges/0000000000000130/dashboard import sys def run(n, a, b) -> None: # print(f'{n}, {a}, {b}', file=sys.stderr) for _ in range(n): guess = (a+b) // 2 print(guess, flush=True) res = input() ...
[ "li.chenxing@gmail.com" ]
li.chenxing@gmail.com
858ec0b7606e1bfedacaf7dd76de944cebf70ae7
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/TensorFlow2/Recommendation/WideAndDeep/data/outbrain/nvtabular/utils/feature_description.py
80db5b1bd0aef366d6696887f901a392241022ad
[ "Apache-2.0" ]
permissive
NVIDIA/DeepLearningExamples
fe677521e7e2a16e3cb0b77e358f9aab72f8c11a
a5388a45f71a949639b35cc5b990bd130d2d8164
refs/heads/master
2023-08-31T20:57:08.798455
2023-08-23T10:09:12
2023-08-23T10:09:12
131,881,622
11,838
3,124
null
2023-08-28T16:57:33
2018-05-02T17:04:05
Jupyter Notebook
UTF-8
Python
false
false
2,253
py
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # 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 a...
[ "kkudrynski@nvidia.com" ]
kkudrynski@nvidia.com
8fe1bbd19fa95d939d63474781b78ca352480c98
eab0ec43806fb7f010ec0673370038f07c5ceefe
/NflmCA/Consumer_Analytics/migrations/0053_user_user_type.py
78498b7701b83b9bfd0774c35e6c06fe8693490e
[]
no_license
tanaypatil/custom-django-admin
023d915ce061a312d51d79f6b2135d744b07af15
5d6743468c03b642c7a059db681df3f83d71eff4
refs/heads/master
2020-06-13T03:53:18.067184
2019-06-30T14:32:19
2019-06-30T14:32:19
194,525,226
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
# -*- coding: utf-8 -*- # Generated by Django 1.10a1 on 2017-12-21 13:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Consumer_Analytics', '0052_fbeducation_additional'), ] operations = [ migra...
[ "tanaypatil197@gmail.com" ]
tanaypatil197@gmail.com
e72c1913dbe27d68ce3b1a498bbc2e04a749c113
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/lite/testing/op_tests/rank.py
f51391baf3de69381204d26dff28b83c8e1b1161
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
1,803
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
12677d63b680f922a47ba4fd288c81d417da8b23
c529e7a106844a07c46afa450182d3831712bf65
/store_backend/users/tests/test_views.py
cb998240017a77eaec919a603e545699cdbccce5
[ "MIT" ]
permissive
mairin/ChRIS_store
f3800354eef91cd9b666005a85c3afafa987a1c2
cf13c18f9108bf0a24dccedb75d00ce2df9591b3
refs/heads/master
2022-11-24T07:09:42.928855
2020-07-28T16:25:10
2020-07-28T16:25:10
283,259,140
1
0
MIT
2020-07-28T15:52:18
2020-07-28T15:52:16
null
UTF-8
Python
false
false
7,378
py
import logging import json from django.test import TestCase from django.contrib.auth.models import User from django.urls import reverse from rest_framework import status from plugins.models import PluginMeta, PluginMetaStar class UserViewTests(TestCase): """ Generic user view tests' setup and tearDown ...
[ "jbernal0019@yahoo.es" ]
jbernal0019@yahoo.es
35ed3e6516bd3e28116ba8d027473787294c65be
fe3b5aa2c5513499446aa4b4674ab5f9b4dfc717
/handlers/competition/test/delete.py
a8899585e246119c404a9f151c5bd112d918624c
[ "MIT" ]
permissive
Baltasarq/cn-escualos
681266db0b4f2d977583d2a54996eb72d5c8fcaa
48838cc05c6827e99958ae01c5314eacf8584cce
refs/heads/master
2021-01-21T13:07:36.730473
2019-11-29T10:42:52
2019-11-29T10:42:52
91,807,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,678
py
#!/usr/bin/env python # CNEscualos (c) Baltasar 2016-19 MIT License <baltasarq@gmail.com> import time import logging import webapp2 from model.member import Member from model.competition import Competition class DeleteTestCompetitionHandler(webapp2.RequestHandler): def get(self): # Check if the user i...
[ "baltasarq@gmail.com" ]
baltasarq@gmail.com
a887fdadb63d3dbdce9f11f03776e969deac8e5f
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/nilearn/2016/4/extmath.py
72584740d3148231264653f7e5e20a54fa7e3bb8
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
2,006
py
""" Extended math utilities """ # Author: Gael Varoquaux # License: BSD import numpy as np try: # partition is available only in numpy >= 1.8.0 from numpy import partition except ImportError: partition = None def fast_abs_percentile(data, percentile=80): """ A fast version of the percentile of the a...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
4b6d550b89fac7e6db2e3c5699f940352e4b8351
a902f15bd2cbf49874a5fa3476bb261fdfea6240
/easy/232.py
828d9d703cc30f85cd91a6b4553754651d8a5443
[]
no_license
WhiteBrownBottle/LeetcodeDaily
3a611dcb01a6e3d6a3e9eff32a0f9017772420d1
934c4ad9696359371a6250956dd50f455bdaa6a1
refs/heads/master
2021-02-22T01:46:47.264525
2020-04-17T07:57:39
2020-04-17T07:57:39
245,367,819
0
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
class MyQueue: def __init__(self): """ Initialize your data structure here. """ self.instack = [] self.outstack = [] def push(self, x: int) -> None: """ Push element x to the back of queue. """ self.instack.append(x) def pop(self) ...
[ "958255724@qq.com" ]
958255724@qq.com
189442850c9dfe1438a181165595cff89832aa95
09301c71638abf45230192e62503f79a52e0bd80
/besco_base/besco_base/general_base/amount_to_text_en.py
5f627b748651b9702e0fdd4c15f11a778d12b08d
[]
no_license
westlyou/NEDCOFFEE
24ef8c46f74a129059622f126401366497ba72a6
4079ab7312428c0eb12015e543605eac0bd3976f
refs/heads/master
2020-05-27T06:01:15.188827
2017-11-14T15:35:22
2017-11-14T15:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,068
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the...
[ "son.huynh@nedcoffee.vn" ]
son.huynh@nedcoffee.vn
20201273f710e5b548b50d262bbdd6facad4d3e8
4e71ca91734df1645156b504e0c059e454f0dd6d
/ic/src/xml_file.py
ac308cd30ae3a748bcec28063567ecd045904bb7
[]
no_license
XHermitOne/icregistrator
a35304058258e302a31a108e897cc5597ffa642b
9b8901dba449df1dbdff75b8ba94a2a4310df54d
refs/heads/master
2022-02-22T06:50:03.684960
2019-10-31T06:50:19
2019-10-31T06:50:19
115,382,967
0
0
null
null
null
null
UTF-8
Python
false
false
8,673
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Источник данных абстрактного XML файла. Переменные могут читаться из XML файла методом указания пути. Например: root/Documents/1/Document/Title/value """ import os import os.path import glob from ic.utils import log from ic.utils import journal from ic.utils import e...
[ "xhermitone@gmail.com" ]
xhermitone@gmail.com
1ea75a45f7577e8d6e72e075dfce6cf8e44c7d82
cfdfabea68a16f61676467b176dc8f086b71d22e
/arango/response.py
414df9ccb6f777aa1b0eba67eaaeb9923b6ab3fb
[ "MIT" ]
permissive
jobel-code/python-arango
14fd85a77e041646602dc808f07f3b14320e2389
5641c5d34f7523e68b8bf4b8b540cb95326a75cf
refs/heads/master
2020-04-12T20:07:31.085475
2019-02-21T15:20:37
2019-02-21T15:20:37
162,726,557
0
0
NOASSERTION
2019-02-21T15:20:38
2018-12-21T14:59:42
Python
UTF-8
Python
false
false
2,692
py
from __future__ import absolute_import, unicode_literals __all__ = ['Response'] import json class Response(object): """HTTP response. :param method: HTTP method in lowercase (e.g. "post"). :type method: str | unicode :param url: API URL. :type url: str | unicode :param headers: Response hea...
[ "joohwan.oh@outlook.com" ]
joohwan.oh@outlook.com
e2972f0df25844279cc1effb17bc3157e78522e4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03449/s792793151.py
7766553d45da22c761597eba5cb80fbd802f6154
[]
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
443
py
N = int(input()) A = [list(map(int,input().split())) for i in range(2)] B = [[0 for i in range(N)] for j in range(2)] B[0][0] = A[0][0] for i in range(2): for j in range(N): for x, y in [[0, -1], [-1, 0]]: id = i+x jd = j+y if id < 0 or id >= 2 or jd < 0 or jd >= N: con...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3e2d2d63bfb684cee306b463117cbad65a9bfba3
50f0dfe2b2c1c0f381a6a4df48d2656ae3156edb
/Week4_HW/HW_1/Ex2.py
46b4c144acd28734ab4725de37cfeb2f73eb594a
[]
no_license
TomaszSzyborski/edX_HarvardX_PH526x
f5bd4eafd6257bfec807f65f657bbbc6becf80a5
040924312fcac78ecdd8c8f1e03bbe09e4a90f5c
refs/heads/master
2021-01-11T23:50:32.250681
2017-01-17T13:10:50
2017-01-17T13:10:50
78,635,871
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
cluster_colors = ["red", "orange", "green", "blue", "purple", "gray"] regions = ["Speyside", "Highlands", "Lowlands", "Islands", "Campbelltown", "Islay"] region_colors = {k:v for k, v in zip(regions, cluster_colors)} print(region_colors)
[ "tomasz.szyborski@gmail.com" ]
tomasz.szyborski@gmail.com
420cdd273f8037dac07fc61c7a82c86d621887c8
d4c9b86ecad93af83f6734060e9ae2015ec04f41
/couresra/Wheel_of_Fortune_game/docs/read_json.py
699fc9fb0d673c415cfb90cc4da0abfcb4250199
[]
no_license
steellsas/fundementals1
88786f6542744f191f068a5027b16f873b8aa602
09fcdcc2fbbca26794bda10271aa8c386b96247c
refs/heads/master
2023-04-23T05:45:07.998595
2021-05-09T19:06:34
2021-05-09T19:06:34
358,950,422
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
import json import random def read_from_file(): with open("wheel.json", 'r') as f: r1 = f.read() print(type(r1)) w = json.loads(r1) print(w) read_from_file() #print (p, c) #category, phrase = getRandomCategoryAndPhrase()
[ "aplienius@gmail.com" ]
aplienius@gmail.com
8931bcfe90de4145bba49b14b48758dffaa33cd9
298d25b3af492e1336c38912703cfa7ef2a89634
/06.py
d96385c6be0587badfa5163d3adeff2962647249
[]
no_license
daluzi/CodeInterview
5571d03d71767a95a44455cd5965770e0b9aecfe
806d22b105487df21073156613349ebddb7a0534
refs/heads/main
2023-04-20T13:23:32.782223
2021-05-06T12:02:19
2021-05-06T12:02:19
343,105,475
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
# -*- coding: utf-8 -*- ''' @Time : 2021/3/1 19:33 @Author : daluzi @File : 06.py ''' # 剑指 Offer 06. 从尾到头打印链表 # 输入一个链表的头节点,从尾到头反过来返回每个节点的值(用数组返回)。 class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def reversePrint(self, head: ListNode) -> List[int]: ...
[ "1210415250@qq.com" ]
1210415250@qq.com