blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
8c650db903e4c481af2d57614db70fd99846e0d2
6ebb264379c41c8e22bf89bb482d56de1a2f2e50
/tests/unit/test_sum.py
fe4cc3aa315276e8d4f493317f4ece75063ae710
[]
no_license
axen22/unitTest3
864cce48660312398db3546382375f720e74b7ac
38b9e7b37941def9c8a90665107b87a6579925a2
refs/heads/master
2020-07-28T07:04:10.491348
2019-09-18T15:43:33
2019-09-18T15:43:33
209,346,149
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
#another way to do this #target = __import__("my_sum.py") #sum = target.sum import unittest from fractions import Fraction from my_sum import sum class TestSum(unittest.TestCase): def test_list_int(self): """ Test that it can sum a list of integers """ data = [1, 2, 3] re...
[ "53572480+axen22@users.noreply.github.com" ]
53572480+axen22@users.noreply.github.com
c2fd4c3fec6f8deacabcdb8e6a1f219e8f2805bd
a20f21f0737002e3fb3e8345c42f2f46aaefab7d
/Weather Report/TwitterToMongo.py
558b800e0079be39bccb42359abeb41838cac9c4
[]
no_license
akokaz1/PMG
22a5c2dad1d38de013f73b314365e01890aeddff
a9db139d728765ef6c03140eba2f2c6861b37e91
refs/heads/master
2021-01-20T07:57:00.178171
2016-12-02T14:46:46
2016-12-02T14:46:46
68,720,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,955
py
from twython import TwythonStreamer from pymongo import MongoClient client = MongoClient() db = client.twitter tweets = db.twitterdata tweeter = [] class MyStreamer(TwythonStreamer): def on_success(self, data): if data ['lang'] == 'en': tweeter.append(data) tweets.insert(...
[ "alikokaz@live.co.uk" ]
alikokaz@live.co.uk
d705d8ae5e78e993dd20c7d1b1c4e43f687428c5
490ed3946708791a188c6f375b1986ba1fb7d386
/build/lib/keras_bert_ner/utils/.ipynb_checkpoints/predict-checkpoint.py
3efcaa50da311647a86771cd08b39325e51e3874
[ "MIT" ]
permissive
gm19900510/keras-bert-ner
123c40487b5a20d6be49b1d808a832ccd3d2a489
6b37b23623544e7e1ec59a0b12ac92bff2b69182
refs/heads/master
2020-09-01T12:11:13.456500
2019-10-31T09:50:24
2019-10-31T09:50:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,697
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import codecs import pickle import numpy as np from keras.models import load_model from ..bert4keras.layers import custom_objects from ..bert4keras.utils import Tokenizer from...
[ "liushaoweihua@yiwise.com" ]
liushaoweihua@yiwise.com
46e7c0ebfd167b48434b11d94b7ebaa0bb8cb136
2cad173dd3d6a378d805592eb71ce7261d5c3f98
/Get Files From Directory Dynamically.py
2c2c91a352b777dfe8c93333dd85c599f1ac5526
[]
no_license
souravbanerjeewb/Code
b4ae2fd2d1157d98c5d01ad2c2e3fe5758f0a17e
bd1bcdc06a4b1a03c067cf34aeb6ae5000dc8732
refs/heads/master
2023-01-04T08:10:24.710146
2020-10-27T17:25:15
2020-10-27T17:25:15
112,154,810
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
import glob, os #*****Define the directory****** os.chdir("D:/Files")#***Change the directory as requered #*****Loop to get the txt files and display the name for file in glob.glob("*.txt"): print(file)
[ "noreply@github.com" ]
souravbanerjeewb.noreply@github.com
65aad1bfe5b4d4756f2c8145c69dbdeaceda54b0
061fbd9e1d9bed1c88d5660211e9172401d5c108
/venv/bin/easy_install
e3a56dc6a003370abaaa757ad43060e0d5c2f3fd
[]
no_license
PrachiJani13/mypythonproject
5838302f1b9dd433dd9daf248f51d012072f7eaf
3aa81e5d1175f4f369e49eb0faee046ee1668b1c
refs/heads/master
2020-09-17T11:08:07.125757
2019-11-26T02:35:00
2019-11-26T02:35:00
224,083,299
0
0
null
null
null
null
UTF-8
Python
false
false
277
#!/Users/prachijani/workspace/myprojectpython/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "prachi.jani@sjsu.edu" ]
prachi.jani@sjsu.edu
ab8659e73eca39e44cbcc460da6ce495f4024307
1b8ffe50059dff352206da41d40a6cab12744864
/PortScanner.py
cc6cd65670f145625b93d510c0c9d7f1efcc60bc
[]
no_license
XD-Coffin/PortScanner
f4bca444a98115aee5eaa6e11e7b77f23a069ab7
299e3947ee0fc84c3af80370498fe357f1aabe60
refs/heads/master
2022-12-20T08:58:47.745548
2020-10-20T00:41:31
2020-10-20T00:41:31
305,545,491
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
import socket import sys import os import time os.system("color a") s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) host = input("Enter the host's ip address you want to scan: ") print(""" 1. Specific Port 2. All 1000 Ports """) option = int(input("Enter the option you want to use: ")) if option == 1: ...
[ "np01nt4a190175@islingtoncollege.edu.np" ]
np01nt4a190175@islingtoncollege.edu.np
e98c9e6e4e8e98f0eb86148a6604600fbb0f969e
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part002645.py
26c00d84fbe342c060edabef02fe3c69582a4427
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
2,821
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
002d43df6b57bde48d6fb3e45f4ec7e76b5e5901
bf0b6a4973f2c565e71fb3c0171ee2039464fa55
/duckietown_rl/vae.py
abd23b158ece8ca81ee87d15f51cc7233499e464
[]
no_license
duckieT/duckietown_rl_ddpg_vae
d891d5dc15bc05fbe2c0e5f4281beb363c660de1
739210584fb9a4028887a3e2d420a1b3686952b1
refs/heads/master
2020-04-18T06:42:09.426461
2018-11-14T06:03:19
2018-11-14T06:03:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,592
py
from __future__ import print_function import torch from torch import nn, optim from torch .nn import functional as F from torchvision .utils import save_image import numpy as np # hyperparameters input_image_size = (480, 640) input_image_channels = 3 image_dimensions = input_image_channels * input_image_size [0] ...
[ "richielyl@hotmail.com" ]
richielyl@hotmail.com
4db5502b3cb8b1723df8a7ac89467e02e213fda7
d83f50302702d6bf46c266b8117514c6d2e5d863
/counting-bits.py
f875bfed4d8a2d111f435b9c52cfced316a0c179
[]
no_license
sfdye/leetcode
19764a6bdb82de114a2c82986864b1b2210c6d90
afc686acdda4168f4384e13fb730e17f4bdcd553
refs/heads/master
2020-03-20T07:58:52.128062
2019-05-05T08:10:41
2019-05-05T08:10:41
137,295,892
3
0
null
null
null
null
UTF-8
Python
false
false
250
py
class Solution: def countBits(self, num): """ :type num: int :rtype: List[int] """ ones = [0] * (num + 1) for i in range(1, num + 1): ones[i] = ones[i & (i - 1)] + 1 return ones
[ "tsfdye@gmail.com" ]
tsfdye@gmail.com
4f0d5c22413bdaacf869bf9cbd12d47bcc73f375
1dc753d68b234b10193962f58d306bd91957eb6d
/college/college/doctype/student_achievements/student_achievements.py
66884338ed30206d53469c0ed0ba413e759ab9c7
[ "MIT" ]
permissive
harshith187/college
e8612134e47c48ad721840f684362f7348e9bad4
d9ae21734dcde70397aead827e57fbbdcdeb98c9
refs/heads/master
2020-07-20T12:36:27.601134
2020-05-25T13:53:57
2020-05-25T13:53:57
206,641,495
0
4
NOASSERTION
2020-05-25T15:05:16
2019-09-05T19:27:37
Python
UTF-8
Python
false
false
266
py
# -*- coding: utf-8 -*- # Copyright (c) 2019, mvit ise and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class StudentAchievements(Document): pass
[ "frappe@ubuntu.vm" ]
frappe@ubuntu.vm
10b624301331e971b74b1e971ab0f51ee36867b2
30bc1657a930cb90902a36c9e7e16e5d31ae2341
/processDEM.py
dc3e54b92ab043e2dc05f0ffeec6c562a8882b1b
[]
no_license
Jubeku/DEM_processing
26918dc620d216ebcd4ab9cbeb6763e87669c0fc
0577dd5939ec4ea93bcada5faac6690feb8c0044
refs/heads/master
2020-08-26T16:59:03.106098
2019-10-29T16:01:04
2019-10-29T16:01:04
217,081,467
3
0
null
null
null
null
UTF-8
Python
false
false
2,548
py
#!/usr/bin/env python """ This script allows to repair, filter, and crop 2d DEM files. Input parameters have to be specified in a file named 'input.txt'. """ import numpy as np from modules.classTopo import Topo from modules.m_PLOTS import plotDEM def main(): ### INPUT # Read input parameter with open(...
[ "julian.b.kuehnert@gmail.com" ]
julian.b.kuehnert@gmail.com
18993d6a9980af00334c5b5db42135f52700e93a
925f9291b8d98468f17ff8b8e5d54006193ddcd0
/bookstore/urls.py
36c6e936740001e428aba08ea0fa667cda50af5b
[]
no_license
hamzabelatra/DjangoBookStore
7c058469acef22228463580f6c343cb591e626eb
5cbffd37bd093a497d18c131b532256cee19b2d9
refs/heads/master
2023-08-09T11:10:11.895251
2021-09-20T20:18:50
2021-09-20T20:18:50
408,589,362
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
"""bookstore URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "hamzabelatra1@gmail.com" ]
hamzabelatra1@gmail.com
1253ef78db264c7b83bead8bbc79f13fb57fd0b9
2bdf073b9788c446342643296c6b68c353b0a5c6
/rareapi/views/tag.py
eab977834ef18b2af0bd99de48da0dfffcf18616
[]
no_license
nss-day-cohort-50/rare-api-rowdy-roadtrippers
f07819362a97b0b02d945c9e932ecf18375c01ea
25122375b4f07b738a65c4bac21ff300379d831b
refs/heads/main
2023-09-03T12:57:04.390337
2021-11-18T17:34:05
2021-11-18T17:34:05
428,313,351
0
0
null
2021-11-18T17:34:06
2021-11-15T15:14:38
Python
UTF-8
Python
false
false
1,501
py
from django.core.exceptions import ValidationError from rest_framework import status from django.http import HttpResponseServerError from rest_framework.viewsets import ViewSet from rest_framework.response import Response from rest_framework import serializers from rareapi.models import Tag class TagView(ViewSet): ...
[ "matthew.singler@gmail.com" ]
matthew.singler@gmail.com
d0e81ba6dd79dc29f6b5cd9958451e5b589b5712
66c723d0137c0de9fdfc4a90d3405a8b3c60a7bd
/n_step_lstm/n_step_lstm.py
cc632b6a6ca0f68a32b0e7c8f828d8f30373bd32
[]
no_license
afcarl/test-chainer-performance
5ccb1d451791dd96633a1bb0f7e9438688f006ad
e0802e8421f4a07b839c44ceb90cfdf188ec4b84
refs/heads/master
2020-03-16T11:27:36.202733
2017-02-21T07:21:45
2017-02-21T07:21:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,796
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import chainer import numpy as np # 長さ順にソートしておく x1 = chainer.Variable(np.array([0, 1, 2, 3, 4], dtype=np.int32)) x2 = chainer.Variable(np.array([4, 5, 6], dtype=np.int32)) x3 = chainer.Variable(np.array([4, 5], dtype=np.int32)) x_data = [x1, x2, x3] batchsize = len(x_dat...
[ "nanigashi03@gmail.com" ]
nanigashi03@gmail.com
65e893cd076a735f16f7fe5a29f4a839759724bc
8dc333b7823c2cc5f4bb4adb75da37dcab06495f
/Section1.py
f0b657a08e18c2e71c97fe025deaf7856ec5a962
[]
no_license
Mud-Fire/Math_Homework
cdb3c7729d7799a4ceeed2b506a239d305d5a608
119c26ab4c544e7652ac449661d2a39cd8b79480
refs/heads/master
2021-05-07T15:03:10.286846
2017-11-08T11:44:11
2017-11-08T11:44:11
109,968,365
0
0
null
null
null
null
UTF-8
Python
false
false
999
py
# -*- coding: utf-8 -*- """ Created on Thu Oct 12 12:53:13 2017 @author: zb """ #获取需要计算的项数 strN = input("Please enter an integer greater than 2:") countN = int(strN) #记录精确值 sumExact = 0.5 * (1.5-1/countN - 1/(countN+1)) #记录从小到大加法运算的和 sumOrder = 0 #记录从大到小加法运算的和 sumReOrder = 0 #每次循环的N值初始化 countNOrd...
[ "noreply@github.com" ]
Mud-Fire.noreply@github.com
837f178ec38d14871743e1d84aa11312970b3087
ae9f2d64c8d0fc711d426e80e41bbce158ab7a4e
/build/config.gypi
8529efc74c687d82ee2470bca8a5e886d916f502
[]
no_license
aitchkhan/Real-Time-Chat-with-Node-js
2863c3b9a173d1807acd5696decb74f66ddd79a7
201b7c6126c28f09415699521b6401349bf5cee3
refs/heads/master
2021-01-23T16:40:01.118218
2015-11-08T12:46:42
2015-11-08T12:46:42
34,112,637
1
0
null
null
null
null
UTF-8
Python
false
false
1,524
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 0, "host_arch": "x64", "icu_data_file": "icudt54l.dat", "icu_d...
[ "aitchkhan@gmail.com" ]
aitchkhan@gmail.com
bbf45532ab46317e7c548a735d5a2663e074b126
e9263f1f1a780e831464626ffcc74a9eeb2b2f12
/print_request.py
6ea534ce1cc3bef70a40a813e279197625d05893
[]
no_license
OPEOStudio/kraft_bootstrap
bd26bb9bdd187961b36a2a1753f325fe45515a06
e5e0e07694cd792aa82107832714d3a90696e6ac
refs/heads/master
2020-04-06T18:57:23.106134
2019-01-16T10:05:12
2019-01-16T10:05:12
157,719,675
0
0
null
null
null
null
UTF-8
Python
false
false
1,268
py
import requests import json ### PRINT THE REQUEST # Script to print the request, to make sure that all the right request elements are being sent # DOESN'T WORK FOR NOW def print_r(string, url, data, headers, params): # Put headers, params back into dictionnary #print("headers: "+headers) ## Allowed me to test that ...
[ "36651512+musiquarc@users.noreply.github.com" ]
36651512+musiquarc@users.noreply.github.com
25859d62514ea506faa2e5384810904d8205659b
78560437a0cc6c1e34ab654c32f5fab465530aeb
/EstruturaSequencial/16_Casa_tintas.py
33770d4450d1d1c267287eb062f08bf53000ce0c
[]
no_license
StefanOliveira/ExerciciosPython
bec15ab3fb0c10aebde1e2d8e5992fd9b77bb2c8
f7b51276e2e2ed7bb4160615b49a5df24c50e248
refs/heads/master
2020-03-20T14:26:51.306691
2018-08-20T19:33:16
2018-08-20T19:33:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
nQtdMts = float(input('Informe a area em metros que será pintada: ')) nLitros = nQtdMts / 3.0 nLatas = int(nLitros / 18.0) if (nLitros % 18 != 0): nLatas += 1 print ('Você precisa de',nLatas,'latas de tinta') print ('Total a pagar:',nLatas * 80)
[ "noreply@github.com" ]
StefanOliveira.noreply@github.com
e74628558b410dabd6460047e5def4308c79a579
d153be2b35d7274bfadc305af19ee5f6827efb07
/captain_console/cart/migrations/0004_auto_20200514_2204.py
3ecf0942392a7f84050e3aac1fef658200e62178
[]
no_license
bjorgvin16/verklegt2
1796ee6b4e8e4a6ab8fe5f1776109d56e4777d05
f833243c5f48e54817fe105f33ce216ec66c3c6c
refs/heads/master
2022-07-26T03:04:14.805467
2020-05-15T23:08:53
2020-05-15T23:08:53
259,272,640
1
0
null
null
null
null
UTF-8
Python
false
false
481
py
# Generated by Django 3.0.6 on 2020-05-14 22:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0003_order_orderdate'), ] operations = [ migrations.RemoveField( model_name='order', name='quantity', ...
[ "margriette123@gmail.com" ]
margriette123@gmail.com
2933d2996ff2c284d1fd6b90cd4dfcbf24fdc883
8953c8dce654ae32a80adf873376ea5566daead7
/eif3a_full_m6aReader.py
5854751b65e91f4e21efdba142d57127f35c3467
[]
no_license
yuxuanwu17/m6a_dp
5e17e86b2ea2133e69beec0eab8abc7877d90276
f3a5966f9abcce7077839024a71f01a139689967
refs/heads/master
2022-11-20T15:06:34.470254
2020-07-21T14:27:15
2020-07-21T14:27:15
280,642,621
0
0
null
null
null
null
UTF-8
Python
false
false
7,201
py
#%% # To pkeras_model=None training, we import the necessary functions and submodules from keras import pandas as pd import numpy as np from keras.models import Sequential from keras.layers.core import Dropout, Reshape, Dense, Activation, Flatten from keras.layers.convolutional import Conv1D, MaxPooling1D from keras.op...
[ "yuxuan.wu17@gmail.com" ]
yuxuan.wu17@gmail.com
f346c7f538f075ee8c1577c89e089a80c6232447
571322962890d461a6b142b42f6ed66be23fb299
/blog/admin.py
a6493140ae0a0212665647a59d6e8f86f532b104
[]
no_license
Cyapy/my-first-blog
e94b1e012b2760506a091f9d32018d31fbd237a8
ec94ef330634377a2f6844de5989ad0cb594c970
refs/heads/master
2020-07-23T10:58:54.566605
2019-09-10T10:59:43
2019-09-10T10:59:43
207,536,238
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
from django.contrib import admin #from .models import Company from .models import Post #admin.site.register(Company) admin.site.register(Post)
[ "cz.arnold1977@gmail.com" ]
cz.arnold1977@gmail.com
a49e2c4eeddaf540dfd5ba698a9805c8b952a483
c9f3ecbf78f890ff598591e6bf326b79f7b22608
/Python/Chapter 1/ex32.py
84d63a023dcbb5ab1aa4d9b366425ad84de0ea83
[]
no_license
bomcon123456/DSA_Learning
f17ceacadaf0398e233c9740d9d24ee5fc76fa69
d943ec1aa7315d0e34fd3505ccb5a62a415ecf73
refs/heads/master
2020-06-25T08:58:50.280816
2020-01-02T02:36:17
2020-01-02T02:36:17
199,265,954
1
0
null
null
null
null
UTF-8
Python
false
false
535
py
def ex32(): c = "" res = 0 plusNext = False while True: c = input() arr = c.split(" ") if len(arr) == 1: if c == "+": res = res plusNext = True elif c == "=": print(res) return res ...
[ "termanteus@aos-iMac.local" ]
termanteus@aos-iMac.local
a160ac123f2a744d1d10d17cfc24c6bec46d13dd
a5bd2739e15716de801d621e6a756c943cb937e4
/states/base/_grains/reboot_required.py
f8aa8cad002ccccebb1d1d44b3ecc72277a3fcf3
[]
no_license
ashmckenzie/salt
00be6ec559769c7aff84f3ed97eb2162ee6bfcc4
dc67b06e99ad61f203752867ce54dc31a48b9800
refs/heads/master
2020-12-23T11:16:58.096353
2017-06-21T00:28:26
2017-06-21T00:28:26
33,473,549
1
0
null
null
null
null
UTF-8
Python
false
false
168
py
# -*- coding: utf-8 -*- import os.path def reboot_required(): grains = {} grains['reboot_required'] = os.path.isfile('/var/run/reboot-required') return grains
[ "ash@the-rebellion.net" ]
ash@the-rebellion.net
7d1d73ca2a8cb31e859f930a208e08029fffaba2
650e8c0eef602308e61a6d3c9476bb550c3e4a8c
/StartingOutWithPy/Chapter 02/ProgrammingExercises/09_C_to_F_temp_converter.py
af802349730447421820e6c8bf6b9b99b15d352f
[]
no_license
cosmos512/PyDevoir
7895d21d70c94074cacab79ca55dc1fca00bd514
3eabad164a62c7ef7919e7847033e67e7b0644a3
refs/heads/master
2021-01-23T18:59:21.136075
2014-08-03T20:10:25
2014-08-03T20:10:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
# Write a program that converts Celsius temperatures to Fahrenheit temperatures. # The formula is as follows: # 9 # F = - C + 32 # 5 # The program should ask the user to enter a temperature in Celsius, and then # display the temperature converted to Fahrenheit. C = float(input('What is the Celsius ...
[ "lunlunart@gmail.com" ]
lunlunart@gmail.com
f6c9eb2dd9064e19a427efac7876905fb88841f9
9093f2a305bba661ae671134648a251612226c83
/manage.py
aaa2b9aa399e90031f7f7112abf86277daa20ef1
[]
no_license
Regaron/ECommerce
7b631290f0d709f0d9c52663f705ee0db9e6564e
55c70e4a9a24192f80906f1d6893fc3dc96e2355
refs/heads/master
2020-03-25T04:35:31.878809
2019-11-16T14:07:53
2019-11-16T14:07:53
141,599,613
0
0
null
2018-07-26T04:35:43
2018-07-19T15:38:22
Python
UTF-8
Python
false
false
541
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ECommerce.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Ar...
[ "sujanbudhathoki123@gmail.com" ]
sujanbudhathoki123@gmail.com
c36efc1843c3021c334a94bbf23e9898a24991eb
d0235e8259db910f577f418c644f2861b10df3ab
/rectangle_teddybear.pyde
4c1bd4dd6e664665136a64109ccded12a53fd6b7
[]
no_license
Ganesh2608/CG
6b865f35da6f11066defb0bc9cbcef067098ca16
aa926e54d0089cf22c110f13a01d7313129fc705
refs/heads/master
2020-03-27T13:19:45.141485
2018-11-12T06:33:12
2018-11-12T06:33:12
146,603,090
0
0
null
null
null
null
UTF-8
Python
false
false
664
pyde
def setup(): #global viewport; size(700,800); #viewport = createGraphics(); def draw(): fill(255); rect(200,120,95,70); #head rect(225,190,45,160); #body line rect(270,215,80,27); #hands rect(145,215,80,27); #hands rect(270,323,80,27); #legs rect(14...
[ "noreply@github.com" ]
Ganesh2608.noreply@github.com
fcaa9a254056832dd56dc34f39f25cba73e8989e
b04d95eb1d2769945b9d93f223d93815796206f7
/simulation/execution/startSimulation.py
7e9fc845db74aaca641f7c3fff0bad9605023008
[]
no_license
DrRoad/Traffic-Simulation-in-SUMO-and-statistics-generator
19cbca58f55b3ac64ed598641d3c69afa3edbe52
c37627c5f32afbac904657d092d149db62cc9148
refs/heads/master
2022-01-09T03:06:44.135211
2019-07-23T19:52:43
2019-07-23T19:52:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,196
py
import os import sys import argparse import uuid import datetime import requests from lxml import etree import input_preprocessing as ip if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) else: sys.exit("please declare environment variable 'SUMO_HOME'...
[ "ge36voj@mytum.de" ]
ge36voj@mytum.de
509e9d56682a9e7858514eff9ca4d13b748a8656
4ad9ae34e6d015ef865e93db71ac909531561ebe
/main.py
c65492feaa5b6e0797b04be2a760656191b624be
[]
no_license
chetanpujari5105/100DaysOfCodeInPython2021-Day-7
951e51cc420d5ea5dc2a6ee32e979e12ba466348
25055f6aa2030d27df0e721ced0a716404ccffa5
refs/heads/main
2023-02-13T21:45:10.933264
2021-01-10T18:18:43
2021-01-10T18:18:43
328,449,335
0
0
null
null
null
null
UTF-8
Python
false
false
901
py
states_of_america = ["Delaware", "Pennsylvania", "New Jersey", "Georgia", "Connecticut", "Massachusetts", "Maryland", "South Carolina", "New Hampshire", "Virginia", "New York", "North Carolina", "Rhode Island", "Vermont", "Kentucky", "Tennessee", "Ohio", "Louisiana", "Indiana", "Mississippi", "Illinois", "Alabama", "Ma...
[ "noreply@github.com" ]
chetanpujari5105.noreply@github.com
c1cc453fc746b6bc98f3d3c7890760918bc8317e
5080f19c30738bff67e49eff7b91d3ba4315cd21
/practice_pizza2020/test.py
ceb9be11a12ed3a579279bbd924093222874d8ef
[]
no_license
VincentZ-42/HashCode2020
ad1edb71c20500f7ed0ab9b600e1fef926a839be
d30b3ae2549549dd133e134e3c3c77ecea0a5fb8
refs/heads/master
2021-01-07T12:59:54.862461
2020-02-20T22:57:09
2020-02-20T22:57:09
241,702,219
0
0
null
null
null
null
UTF-8
Python
false
false
3,443
py
# **************************************************************************** # # # # ::: :::::::: # # test.py :+: :+: :+: ...
[ "vzhao@e1z1r4p3.42.us.org" ]
vzhao@e1z1r4p3.42.us.org
7725728c4396eab46cc3164cd5889e7d901b4a5f
5a760a0ff2a1655e3fbddd621a181378ea092fcc
/StarWebBuilder/timeout.py
0586ada83fff4c9164333ee84c45b29f1a458022
[ "MIT" ]
permissive
taschetto/sublimeSettings
7f8292737b6f413718d7e076b9bd08e0ef8a297d
64bcb568c240b851efc914b102e0c57e1553d8c5
refs/heads/master
2020-03-26T05:45:59.888806
2016-09-14T15:34:11
2016-09-14T15:35:07
26,015,128
1
0
null
null
null
null
UTF-8
Python
false
false
550
py
from functools import wraps import errno import os import signal class TimeoutError(Exception): pass def timeout(seconds=10, error_message=os.strerror(errno.ETIME)): def decorator(func): def _handle_timeout(signum, frame): raise TimeoutError(error_message) def wrapper(*args, **kwargs): signal...
[ "gtaschetto@gmail.com" ]
gtaschetto@gmail.com
7948a9e20dfc18adb728f35ea7d8d4a1387faf1a
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2408/60670/279400.py
462432fde739ac9f0e437d3408deb95a44e663a4
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
360
py
def isPrime(x): for i in range(2,int(x**0.5)+1): if x%i!=0: return False return True def factorial(n): t=1 for i in range(1,n): t*=i return t%1000000007 n=int(input()) numOfPrime=0 for i in range(1,n+1): if isPrime(i): numOfPrime+=1 print((factorial(numOfPri...
[ "1069583789@qq.com" ]
1069583789@qq.com
d482fc54652390d38a71486ad7896776534966ae
64ad122b299e457e2b37fddf9b059bdbf5858ca8
/src/pose_estimation/scripts/image_processor.py
b2db59ae85d4feec36eb2651722ef72e9337183a
[]
no_license
faheinrich/pose_project
8218d140f6020bc56bad1ef7ac3a40e53a6a3053
23e4283358940f662e7b12d1ad98d7ebc3c2efe6
refs/heads/main
2023-05-12T21:06:14.628014
2021-06-01T20:27:19
2021-06-01T20:27:19
365,174,377
0
0
null
null
null
null
UTF-8
Python
false
false
4,045
py
#!/usr/bin/env python3 # Description: # - Subscribes to real-time streaming video from your built-in webcam. # # Author: # - Addison Sears-Collins # - https://automaticaddison.com # Import the necessary libraries import rospy # Python library for ROS from sensor_msgs.msg import Image # Image is the message type from ...
[ "faheinrich98@gmail.com" ]
faheinrich98@gmail.com
955a3394f44e953f1a4c30c5c454af78e16f84da
a2477654a0fb85f9507389ff7a4b4a8bcc1641fa
/trydjango1-11/src/restaurants/migrations/0003_auto_20170926_1624.py
5708b2f804f86a92b2d7213e1dbc4f79de3a24b5
[]
no_license
ervinpepic/Django-11-Restaurant-app
6ae1e2dec7571b0180ea991ca80b9b83d00cdb1b
a6bd976130c70621e6149ee64c61e1cdcec2acba
refs/heads/master
2022-10-18T08:34:11.496044
2017-11-25T19:57:36
2017-11-25T19:57:36
111,400,182
0
1
null
2022-10-10T08:12:45
2017-11-20T11:13:00
Python
UTF-8
Python
false
false
416
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-09-26 16:24 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('restaurants', '0002_restaurant_location'), ] operations = [ migrations.RenameModel(...
[ "ervin.hack@gmail.com" ]
ervin.hack@gmail.com
85dedc26a7d0b18671e3606cefba8011ec6f33a6
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_156/521.py
ca8aafaec283d6e9fa857be6020a6168166a825e
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,635
py
#!/usr/bin/python3 import sys import math ncases = int(sys.stdin.readline().strip()) for t in range(1, ncases+1): d = int(sys.stdin.readline().strip()) values = sys.stdin.readline().strip().split() pancakes = [int(x) for x in values] pancakes.sort(reverse=True) best = pancakes[0] # Node for...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
a4bc6700762042ba729d57d355527709795f6f6f
a19068d77efe49808ea54a2cdb1f64036248fbee
/experiments/CNN_BasicExpmnt.py
61e841bdc706f2ff930a4c5325f94355a6b8fb27
[]
no_license
sarneetk/NLP-Project
6facb81a9307684f90c237192fcc824534dbfff5
e5c483a763d5818365f8280292ac586638ba10ee
refs/heads/master
2023-03-25T21:04:20.632517
2021-03-21T04:19:01
2021-03-21T04:19:01
344,712,064
0
1
null
null
null
null
UTF-8
Python
false
false
4,309
py
# CNN for the IMDB problem from tensorflow import keras from keras.datasets import imdb from keras.models import Sequential from keras.layers import Dense from keras.layers import Flatten from keras.layers.convolutional import Conv1D from keras.layers.convolutional import MaxPooling1D from keras.layers.embeddin...
[ "noreply@github.com" ]
sarneetk.noreply@github.com
36815ed5dbc21619f0e347fd9614d4889ea71b0d
bfb882c400956861fccd40bf1fb53cd6ddcba41e
/hagelslag/processing/__init__.py
947f56449e95c6deffd11da0f81a50f94c71a716
[ "MIT" ]
permissive
stsaten6/hagelslag
3b1b07cf424997686b3320c538a188c790232bd7
6b7d0779a0b0ac4bd26fbe4931b406fad1ef9f9e
refs/heads/master
2020-03-10T17:38:44.528943
2018-04-12T20:50:38
2018-04-12T20:50:38
129,504,847
2
0
MIT
2018-04-14T09:58:37
2018-04-14T09:58:37
null
UTF-8
Python
false
false
524
py
from .EnhancedWatershedSegmenter import EnhancedWatershed from .EnsembleProducts import MachineLearningEnsembleProducts, EnsembleProducts, EnsembleConsensus from .Hysteresis import Hysteresis from .ObjectMatcher import ObjectMatcher, TrackMatcher from .ObjectMatcher import mean_minimum_centroid_distance, centroid_dista...
[ "djgagne@ou.edu" ]
djgagne@ou.edu
fad84be7b3588e086eaa4f7158e430de704c6e85
e35d35b22f11be27f439900e97248b7cab7aa85e
/client.py
beb1d0771d531e912584b4e968bc4f762d483a90
[]
no_license
jkaria/chat-server
e1903912e047180077eb4b2bf9b7d2db1637fe33
b92e0af97a1d4105d070b15951c91d7e406c39ab
refs/heads/master
2020-03-20T23:08:22.980615
2018-06-22T04:14:42
2018-06-22T04:14:42
137,831,155
0
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
import websocket import _thread as thread import sys import re import json def on_message(ws, message): print(f"received > {message}") def on_error(ws, error): print(f"error > {error}") def on_close(ws): print("Server connection closed") def on_open(ws): def run(*args): msg_format = re.comp...
[ "" ]
f21193e2e28fe1cc390d4ae97c312250c7ab7a79
947577e28fc58aa7505cc4da0de5ed454c7229ea
/DataStatistics/config/conf_database.py
c9f7c7a7d70b2da3783ef587323eb50427be3d7c
[]
no_license
chuxuan909/Tornado
32064f110d49af8ff93b93ba9a8af1bb481452dc
8946405de99dad8720c92248b9ebd06bdfe3c61f
refs/heads/master
2020-09-05T14:08:20.462058
2019-11-08T09:52:40
2019-11-08T09:52:40
220,128,751
1
0
null
null
null
null
UTF-8
Python
false
false
2,731
py
#!/usr/bin/env python # -*- coding:utf-8 -*- from sqlalchemy import create_engine #mysql连接配置 database_config={ "passwd":"xxxxxxxxx", # 数据库密码 "user":"xxx", # 数据库用户 "url":"xxx.xxx.xxx.xxx", # 数据库地址 "port":3306, # 数据库连接端口 "dbs":{'userdb1':'gHa...
[ "305958872@qq.com" ]
305958872@qq.com
2354d06939d6c72e5399a441a3e3c362fe7451e0
65e2f1f1daaaf175b09d0863f6ed77c77129fed6
/c/personal/algo_007/programming_assignments/algo_002/1/prim/prim_bkp.py
a4a4efd5fb5b32000cb176f21d8e90f7d077059b
[]
no_license
ausanyal/code
86b010613eb5b9dc0ada717e0db8e21f4ede8961
a359f9cfb650d57ce88c39dc0e15dce19a5324bd
refs/heads/master
2021-01-01T15:39:34.985446
2018-05-07T01:47:02
2018-05-07T01:47:02
97,669,433
0
0
null
null
null
null
UTF-8
Python
false
false
3,539
py
#!/usr/bin/python import sys import collections from decimal import Decimal f = open('input', 'r') lines = f.readlines() nv = 0 ne = 0 d = {} for line in lines: if ne == 0: nv,ne = line.split(' ') else: u,v,e = map(int, line.split(' ')) if u not in d.keys(): d[u] = {} ...
[ "aubin.sanyal@gmail.com" ]
aubin.sanyal@gmail.com
feb3861b0c0a06a508fdf4a0748c05fe0b8f72be
0f00c8a02e8dc1d8136b2afc92338108f92cc6ae
/recipes/mrbayes/run_test.py
40033ea2ed9721ad50dfc69b067eccb43cef93ff
[]
no_license
faircloth-lab/conda-recipes
3714f5be83753261bf3abc70454bdf6b7028c8d6
75a520a75a357ea47ee80262f3c3a6dfe1b0715f
refs/heads/master
2021-01-20T07:07:05.705307
2015-06-16T13:50:18
2015-06-16T13:50:18
12,671,015
2
6
null
null
null
null
UTF-8
Python
false
false
1,416
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ (c) 2013 Brant Faircloth || http://faircloth-lab.org/ All rights reserved. This code is distributed under a 3-clause BSD license. Please see LICENSE.txt for more information. Created on 30 December 2013 16:33 PST (-0800) """ import unittest import subprocess class...
[ "brant@faircloth-lab.org" ]
brant@faircloth-lab.org
8c49afcd2557458371bc37031be00356b871799d
092e00ae8389811929a381637b73dcb2303fefeb
/blog/domain/user.py
338592ec2da4b0e0020f532f84602d13ba2ace07
[]
no_license
uiandwe/rest_framework_ex
33cfb73e386785009b1d012a3dfa6909bdc74ab3
8130bcf9a6ffd67b91906c85d66ed9d8d453bab8
refs/heads/master
2022-11-27T20:56:26.911462
2021-10-12T07:46:17
2021-10-12T07:46:17
234,095,110
0
0
null
2022-11-22T05:17:55
2020-01-15T14:12:34
Python
UTF-8
Python
false
false
220
py
# -*- coding: utf-8 -*- class User: def __init__(self, email, username): self.email = email self.username = username def __repr__(self): return "{}, {}".format(self.email, self.username)
[ "uiandwe@gmail.com" ]
uiandwe@gmail.com
01963dfede8f5f05b7ffa0c3d4400f87db8be7ca
eae1829b4a629571a9e3821760cf6c7e2547b300
/cifar_asgd_new.py
dfb193cce4191c71d4b11ca0ad712fe51cb6f42a
[]
no_license
zdpau/Sync-Async_PS
1b3131a3a7d135bb3d62896ca3dd74ba6d18aa30
86a1c71960b70d86cad9c6f97a8a3932a1cb79ff
refs/heads/master
2021-07-21T10:16:34.547532
2018-12-19T09:29:39
2018-12-19T09:29:39
140,381,470
0
0
null
null
null
null
UTF-8
Python
false
false
5,144
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import ray import tensorflow as tf import cifar10 import cifar10_train import time from collections import deque import random import sys numLoops = 5000 FLAGS = tf.app.flags.FLAGS # tf.ap...
[ "noreply@github.com" ]
zdpau.noreply@github.com
c0c5bf3b9e293f9e815bdb6e73677906bd3d0e31
fad2c9d62fbc48230af447c980e641626c86c1d5
/users/apps.py
1231bc80c02815a3287789710efca12d72d86056
[]
no_license
marcoapr/django-lab
65a50d9736d52fddcf84cdf47c3b84f918e5b1d7
35856afa988ac619643919b50a11d8de2bfba856
refs/heads/master
2020-04-02T20:06:57.508267
2018-10-26T01:22:54
2018-10-26T01:22:54
154,758,517
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
""" User app configuration. """ from django.apps import AppConfig class UsersConfig(AppConfig): """ User app config """ name = 'users' verbose_name = 'Users'
[ "mperez@unitedvirtualities.com" ]
mperez@unitedvirtualities.com
3e2e4ac2bfe11f943d6d864dc62bf236447cab5b
b8800f65c2955768b58c7d7fbd89647a644daed6
/blog/models.py
b1d723e885fb9838448eac3c9471705c1f03e512
[]
no_license
revianblue/my-first-blog
791ae3db3f788a337c3db0986f11930eeff77e26
a06af2e7f344e2e54be0ff677bfe403a721fea7e
refs/heads/master
2021-01-20T01:04:46.380012
2017-04-24T13:38:10
2017-04-24T13:38:10
89,220,972
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
from django.db import models from django.utils import timezone class Post(models.Model): yazar = models.ForeignKey('auth.User') baslik = models.CharField(max_length=200) yazi = models.TextField() yaratilma_tarihi = models.DateTimeField(default=timezone.now) yayinlanma_tarihi = models.DateTimeField(...
[ "araserbilgin@gmail.com" ]
araserbilgin@gmail.com
48489ccc71bb088f7c28deb51e9c47dcd3617c1c
43226c0909e4164c4f69f1e462e6d089100131ee
/leap year yes or no.py
d610078f8b940c1822590c71a8c7421509a33a61
[]
no_license
subashbabu97/leapyear
8bf9e0449b65305c423350c5117d744304bee68b
5cf9440abd8468f469dcf6fe30b43f54df84f92c
refs/heads/master
2020-05-31T22:55:34.982996
2019-06-06T06:51:11
2019-06-06T06:51:11
190,529,094
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
a=int(input("Input:")) b=a%4 if b==0: print("Output:yes") else: print("Output:no")
[ "noreply@github.com" ]
subashbabu97.noreply@github.com
291145b4c5ed899fc48d811be2dd62caa2b32b4a
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/4010/819004010.py
23f27f88966ad294e1ec85c55e27af7395e422d6
[]
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
1,730
py
from bots.botsconfig import * from records004010 import recorddefs syntax = { 'version' : '00403', #version of ISA to send 'functionalgroup' : 'JB', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BOS', MIN: 1, MAX: 1}, {ID: 'CUR', MIN: 0, MAX: 1}, ...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
51086a37acacb82ec4da2e56fe316b05793a58d1
2335e7d1c10d800abb10b4432465f29a4456548d
/setup.py
721f1b8d75682c30d9183bd741ff5d826e50db7d
[ "LicenseRef-scancode-warranty-disclaimer", "EFL-2.0" ]
permissive
deathbybandaid/Sopel-StartupMonologue
48a7e85ca117c630cf8039af76a0bbaea91ff5a1
f495344cee379e66ec5022e1e7edf15f075c758c
refs/heads/master
2020-05-09T11:18:01.564022
2019-04-27T14:12:38
2019-04-27T14:12:38
181,074,314
0
0
null
null
null
null
UTF-8
Python
false
false
1,434
py
# -*- coding: utf-8 -*- from __future__ import print_function import os import sys from setuptools import setup, find_packages if __name__ == '__main__': print('Sopel does not correctly load modules installed with setup.py ' 'directly. Please use "pip install .", or add {}/sopel_modules to ' '...
[ "sam@deathbybandaid.net" ]
sam@deathbybandaid.net
9f0e3f8373e8127285738a76f06d09c19699634c
7a3dec909e1a36622c66a743968a631644a1e830
/src/uploaders/tests/test_xml_uploader.py
2609bba6e75a537948f5c989832786ccf1820c27
[ "MIT" ]
permissive
fares-data-build-tool/fdbt-reference-data-service
c8388e2f7912e3ef678968efb876935d3aa438e3
d60506edf24c723a7d56a7ff7b6586f1c1e9989d
refs/heads/develop
2021-07-19T13:26:33.707021
2021-04-22T15:10:02
2021-04-22T15:10:02
247,682,844
2
0
MIT
2021-04-28T10:56:41
2020-03-16T11:16:35
Python
UTF-8
Python
false
false
3,533
py
import os from unittest.mock import patch, MagicMock import boto3 from txc_uploader.txc_processor import download_from_s3_and_write_to_db, extract_data_for_txc_operator_service_table, collect_journey_pattern_section_refs_and_info, collect_journey_patterns, iterate_through_journey_patterns_and_run_insert_queries from ...
[ "noreply@github.com" ]
fares-data-build-tool.noreply@github.com
5cb33ac9f43d4cdcb1e19f70d4624b4fa4b74cb0
6a7cf44a3cdce674bd0659f81f830826caac34e1
/Lessons/lol.py
0c454d9399717a381f486f94fb7b1c9387163d25
[]
no_license
Ethansu/Random-Python
9f1b6198968091cd3f356ad2962d0efdc455c76a
4b1b18e1cb6c04f1195082c5d0899f476e234a55
refs/heads/master
2021-05-06T02:10:18.163866
2017-12-17T00:53:14
2017-12-17T00:53:14
114,498,985
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
#import unittest #from homework_6 import Car def lol(x): return (x + 1) / 4
[ "jingchunsumacc@gmail.com" ]
jingchunsumacc@gmail.com
e134d1f0bece4a5e209fd10eaedcb6493c8f17b2
e67b0c01d7244f1c635d7c2e12157076bcd2efbc
/finalproject/app.py
c4341f5d265bdc737da29944cf08361513cc42c2
[]
no_license
SonjaGrusche/LPTHW
0a7de74101db1b0ae62ffc35d4fac990c894ae14
12483e97373c9e0aa9e8785b20bb34e1e5b4b36a
refs/heads/master
2021-01-12T15:52:06.404665
2017-03-21T10:27:53
2017-03-21T10:27:53
71,830,953
0
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
from flask import Flask, session, request from flask import url_for, redirect, render_template from random import randint import resources app = Flask(__name__) @app.route('/', methods=['GET']) def start_get(): return render_template('start.html') @app.route('/questionnaire', methods=['GET']) def questionnaire_g...
[ "sonja.grusche@stud.leuphana.de" ]
sonja.grusche@stud.leuphana.de
10515479aab3316ae2f634ef92fdf2aed4b5593f
464be1d96c23380f2f4d646490928c5995d199c2
/leet/l36.py
431afc4e7274d4fc3a944ab25cc23ffd50b5292a
[]
no_license
TatsuLee/pythonPractice
4c8d83fabd01b36b480c8ef1b9ff656a8d09b026
628c536007d131ff91f2057d863c029b2efb1bb1
refs/heads/master
2021-07-24T16:46:53.914031
2017-10-28T10:21:28
2017-10-28T10:21:28
68,804,117
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
class Solution(object): def isValidSudoku(self, board): """ :type board: List[List[str]] :rtype: bool """ # generate 3 empty list to store scaned nums row = [set() for i in range(9)] col = [set() for i in range(9)] grid = [set() for i in range(9)] ...
[ "dli37@hawk.iit.edu" ]
dli37@hawk.iit.edu
364d6a8b4e45dedb56ee9f02ada48d814d3f2292
4ccc8d6e163b156e06a5c107a6a28681184a8a03
/2021/day_05.py
7f2b6f57581f3a8cc0b6db5b969eb1f474bb5c19
[]
no_license
mmercedes/adventofcode
798925a2b8403948c16d68b9e195c148d0a69b8a
306cffadafb48863277295cf9ed56e95699d92e6
refs/heads/master
2022-01-01T09:25:38.974142
2021-12-14T18:33:07
2021-12-14T18:33:07
159,980,279
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
#!/usr/bin/env python import re def lookup_insert(m, x, y): if x not in m: m[x] = {} if y not in m[x]: m[x][y] = 0 m[x][y] = m[x][y]+1 def insert_line(m, x1, y1, x2, y2): dx = 1 if (x1 < x2) else -1 dy = 1 if (y1 < y2) else -1 i, j = (x1, y1) lookup_insert(m, x2, y2) ...
[ "matthewmercedes@gmail.com" ]
matthewmercedes@gmail.com
8de417f20989172bfac0cbb257285314d44a4cb5
09d81c119fb88b73c0968e6d384898ec1a65bb36
/lab5/lab5/settings.py
7990e2f20bbb476fd206cc294ebb34cc91767911
[]
no_license
n10florin/nfir1917
8a92f5c3c32aecdaf56114ed205edbefa8f66902
11aca585d9b4d3bd17cd7fe8136967c2effe4c68
refs/heads/master
2021-04-12T09:54:08.639211
2018-05-17T11:28:46
2018-05-17T11:28:46
126,162,496
0
0
null
null
null
null
UTF-8
Python
false
false
3,154
py
""" Django settings for lab5 project. Generated by 'django-admin startproject' using Django 2.0.5. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os # Bu...
[ "n10florin@gmail.com" ]
n10florin@gmail.com
172e416bfd9fae185c8298b4930fcd1fbb386ef6
8625b3616fa4a8aaf836c26e344bb39552a13c7b
/plugins/reactionCounterPlugin.py
475ba07ec02c9f2bc78e4c15fc71888a5890a772
[ "MIT" ]
permissive
Avishek-Paul/SlackAssistant
06fa2049676206833aa661487d10518c03ea9466
4cb41fe62526dc26381c6ca6bc420b1104a8da2f
refs/heads/master
2023-01-08T08:41:43.910145
2020-11-11T01:10:05
2020-11-11T01:10:05
311,824,817
0
0
null
null
null
null
UTF-8
Python
false
false
3,564
py
import config from slackclient import SlackClient class reactionCounterPlugin: def __init__(self): self.keywords = ['!rankings', '!Rankings', '!ranking', '!Ranking', 'reactionBased'] self.client = SlackClient(config.bot_token) self.db = config.mongoClient def execute(self, event): ...
[ "avishek97paul@gmail.com" ]
avishek97paul@gmail.com
8d00b1ee6bc068f204efbd23dc93e6b7be30deb3
36c170d204310f4e5985bd5c024a286acae36aba
/Labs/seminar/functii.py
930df547edf5d8709c42ecbf513a6d063922f248
[]
no_license
petrediana/Analiza-Datelor
7cc6d1f31f6d7407e702d2cc29b9baa7ca1cda8c
23d2282a0a662fe778aae5ec9d90e32c353bdec0
refs/heads/master
2020-08-04T05:52:36.700366
2019-12-10T08:20:54
2019-12-10T08:20:54
212,029,364
1
0
null
null
null
null
UTF-8
Python
false
false
657
py
import numpy as np import pandas as pd # trimit matricea ierarhie si cate clase vreau sa trimit def partitie(h, k): n = np.shape(h)[0] + 1 # numarul de instante c = np.arange(n) # primii n clusteri for i in range(n - k): k1 = h[i, 0] k2 = h[i, 1] # se formeaza cluster ...
[ "noreply@github.com" ]
petrediana.noreply@github.com
b341b840a33dfd2e49d09afbc302f4239a84611c
b983d66bb053966d46b7ff0cc7bea4142d8fe852
/src/states.py
ca19928ba363470c4fd331d5e211ff3a03e33dbe
[ "MIT" ]
permissive
povle/vk-engineers
d4104c39c1846bc5b4250702b0da486bc8e01645
bff0c3ac244dffc79baeed423db5a5dc814f04b8
refs/heads/master
2023-07-28T06:52:36.184954
2021-09-07T21:15:44
2021-09-07T21:15:44
305,855,459
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
class StateError(Exception): pass USER_NEW = 'user_new' USER_INIT = 'user_init' USER_DEFAULT = 'user_default' ADMIN_DEFAULT = 'admin_default' ADMIN_BROADCAST_GROUP_SELECTION = 'admin_broadcast_group_selection' ADMIN_MESSAGE_INPUT = 'admin_message_input' ADMIN_RECEIVER_GROUP_SELECTION = 'admin_receiver_group_sele...
[ "pasha@blinov.co" ]
pasha@blinov.co
55c13d8cf177119f3b0b4ac0b18bc121cc4f8d62
f64e31cb76909a6f7fb592ad623e0a94deec25ae
/tests/test_p1494_parallel_courses_ii.py
dbf8cbae087e98cebaed176c651d916aaa595833
[]
no_license
weak-head/leetcode
365d635cb985e1d154985188f6728c18cab1f877
9a20e1835652f5e6c33ef5c238f622e81f84ca26
refs/heads/main
2023-05-11T14:19:58.205709
2023-05-05T20:57:13
2023-05-05T20:57:13
172,853,059
0
1
null
2022-12-09T05:22:32
2019-02-27T05:58:54
Python
UTF-8
Python
false
false
1,391
py
# flake8: noqa: F403, F405 import pytest from leetcode.p1494_parallel_courses_ii import * solutions = [ minNumberOfSemesters, ] test_cases = [ ( [ 13, [ [12, 8], [2, 4], [3, 7], [6, 8], [11, 8], ...
[ "zinchenko@live.com" ]
zinchenko@live.com
468a03cc09e3982d357c914a5bd468274a433c55
d5466ac9513c4cf9addb01fd89b4220696352054
/DRL/envs/airsim/airsimcarenv.py
eea010e1a42e301f1c07418e08f5c8fc8e98aa45
[]
no_license
sanketh1691/Don-t-Crash
99f6bb61f53751d227b31d84bd593945dde04e12
9edd845b750d450de0c21543c3a82d19a8571cbc
refs/heads/master
2023-01-18T21:06:23.052387
2020-11-24T03:26:03
2020-11-24T03:26:03
315,507,066
1
0
null
2020-11-24T03:23:39
2020-11-24T03:23:38
null
UTF-8
Python
false
false
4,790
py
import logging import math import numpy as np import random import time import gym from gym import spaces from gym.utils import seeding from gym.spaces import Tuple, Box, Discrete, MultiDiscrete, Dict from gym.spaces.box import Box from envs.airsim.myAirSimCarClient import * logger = logging.getLogger(__name__) cla...
[ "jaiminpa@usc.edu" ]
jaiminpa@usc.edu
e19eeb31f0acad784dc3dad13eaa2bef568c94a5
ed72d3f672d3298e9a2a4e9ff31915f9275bbf46
/flight.py
a1043999b4044de661e6b6935f51b0bc6b746643
[]
no_license
KirtMorgan/model_airport
93810ceffce89ab670be7e10d1e0d44b7505e04e
e640a78e6afccb10f5f15646c696afd22027756a
refs/heads/master
2020-05-17T00:03:51.525043
2019-04-29T14:30:19
2019-04-29T14:30:19
183,386,849
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
from passenger import * from plane import * class Flight: def __init__(self, origin_destination='', plane=''): self.origin_destination = origin_destination self.plane = plane self.passengers_list = [] def add_plane(self, plane): self.plane = plane def add_origin_destinatio...
[ "kirtmorgan@live.com" ]
kirtmorgan@live.com
78e368fb716111fadb4e8ba88e1ddd8e34f363a5
98b0d740346ad9aecd228b9a8ebb8e818908ce03
/hr-1.py
0d51517045973153f9d6f31c16975b8fb25a1e6b
[]
no_license
alexisbellido/python-examples
8c63156a2800a584a8aff0909325e38acbe49163
e6a4f61d9cd18588987430007e28ef036971764b
refs/heads/master
2022-10-16T08:28:15.312916
2022-09-30T15:55:31
2022-09-30T15:55:31
240,379,353
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
def hi(name): return f'Hi, {name}' if __name__ == '__main__': # people = [input().split() for i in range(int(input()))] # print(*name_format(people), sep='\n') #################### people = [ 'John', 'Mike', ] # print(hi(people[0])) # print(hi(people[1])) # print(*h...
[ "alexis@ventanazul.com" ]
alexis@ventanazul.com
9e783b4e701f26b5c214da0138af22e4c3c66562
f2ac9260dfa7483cd54a30700bb952e10acbc1bb
/fit_lr.py
27c2ea1089ad19bf4212c6e4d9de0bab81cb012f
[]
no_license
kudkudak/compound-activity-prediction
94dd9efd2ff7ba5c95ebb71ce1766eb6b8882aac
d55e6ecb4e3de74d40b1a37950449f60df1a2ca4
refs/heads/master
2016-09-15T21:35:54.930142
2015-01-14T13:09:19
2015-01-14T13:09:19
27,130,096
2
0
null
null
null
null
UTF-8
Python
false
false
4,056
py
from misc.utils import * from misc.experiment_utils import get_exp_options, print_exp_header, \ save_exp, get_exp_logger, generate_configs, print_exp_name from data_api import prepare_experiment_data, prepare_experiment_data_embedded, get_raw_training_data from sklearn.metrics import matthews_corrcoef, accuracy_sc...
[ "staszek.jastrzebski@gmail.com" ]
staszek.jastrzebski@gmail.com
b1671f8ccb003ceab564735e721f938521ca0ce4
66edf859b44d1e020bf61f5c1ca3a1d2c0952e2e
/rooters-2019/xsh/exploit.py
0fc6fbe4ebce1c3def064de17762d48b54086f86
[]
no_license
farazsth98/CTF
5f40fe745ad2c6f4697c203532517dc93c88cc08
d2de238538c112ce1ac3aab939460c03b3f0f732
refs/heads/master
2023-04-13T20:29:09.611005
2021-04-24T17:53:05
2021-04-24T17:53:05
216,312,857
8
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
#!/usr/bin/env python2 from pwn import * elf = ELF('./xsh') libc = ELF('./libc.so.6') def start(): if not args.REMOTE: return process('./xsh') libc = ELF('./libc.so.6') else: return remote('35.192.206.226', 5555) libc = ELF('./libc-remote.so.6') def execute(cmd): p.recv()...
[ "faraz.abrar9@gmail.com" ]
faraz.abrar9@gmail.com
97e53dbcc10f19ff3e71ee359e01ac2874a34773
0bdcbad65988ffa36a20e46228e39a55c5af3c47
/src/get_files_not_in.py
b6c62ef31ce35ecaa9667b9b879ab6fc4b123093
[ "MIT" ]
permissive
mpaloni/pioneer
abdc2d38eb79759aa2d9d5df6cc63c823ba74101
c49efa2e071307b2534ca2abe7560f57683d2d9e
refs/heads/master
2020-04-19T02:46:43.360350
2019-01-28T07:07:40
2019-01-28T07:07:40
167,914,384
0
0
MIT
2019-01-28T07:00:52
2019-01-28T07:00:51
null
UTF-8
Python
false
false
1,637
py
import os import argparse import csv import shutil def main(): print("Started") #define parameters # parser = argparse.ArgumentParser(description='PIONEER Zeta') # parser.add_argument('--first', type=str, help='Subject on the left side of the operator') # parser.add_argument('--second', type=str, help='Subject ...
[ "noreply@github.com" ]
mpaloni.noreply@github.com
4fafdb60d2714fc699c55d2ce9bc473bfcffb686
b3b68efa404a7034f0d5a1c10b281ef721f8321a
/Scripts/simulation/situations/complex/university_mixer_situation.py
bdd94a7c82a8c319385d8ae99bf8517a96e6a57b
[ "Apache-2.0" ]
permissive
velocist/TS4CheatsInfo
62195f3333076c148b2a59f926c9fb5202f1c6fb
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
refs/heads/main
2023-03-08T01:57:39.879485
2021-02-13T21:27:38
2021-02-13T21:27:38
337,543,310
1
0
null
null
null
null
UTF-8
Python
false
false
5,087
py
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\situations\complex\university_mixer_situation.py # Compiled at: 2019-10-19 01:32:53 # Size of source...
[ "cristina.caballero2406@gmail.com" ]
cristina.caballero2406@gmail.com
a47a860993c205588ad7942665c79c7af1f7846f
ee5f91fdc5d63cb1668185de611e5d0e363a006f
/Untitled1.py
ada39f951b0541519b131fe64018622e6177ad55
[]
no_license
vikram-sreedhar/Pulmonary-Fibrosis
38b9f020049e3fab197556a2f6b4fa71e9b6fe9b
267f1d041f61cf86892c94aa946b89eac2b9f60b
refs/heads/master
2022-12-17T06:21:44.062236
2020-09-27T20:01:13
2020-09-27T20:01:13
299,106,153
0
0
null
null
null
null
UTF-8
Python
false
false
24,383
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import os # In[2]: # Visualisation libraries import matplotlib.pyplot as plt # In[3]: import seaborn as sns sns.set() from plotly.offline import init_notebook_mode, iplot import plotly.graph...
[ "noreply@github.com" ]
vikram-sreedhar.noreply@github.com
b2d0b95a6c5ee67ad0f1af6a3d34aaa04e489b4c
25297ce593e7b5d8c7035f5992fd38538e8a4b6d
/ecom/api/order/urls.py
47d94c48d82bb40e3382f9a0b258f2eae19c2d76
[]
no_license
abhishek0405/MaskBazaar
fb2d955ba1fc73a8719cf23b3318972ae7455b7c
71975fc7ab930859786719579821f6100fe7981d
refs/heads/main
2023-01-07T13:48:14.201049
2020-11-22T14:29:21
2020-11-22T14:29:21
315,051,042
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
from rest_framework import routers from django.urls import path, include from . import views router = routers.DefaultRouter() router.register(r'',views.OrderViewSet) #'' as this invoked only when /api/product so no need to add extra urlpatterns =[ path('add/<str:id>/<str:token>',views.add,name='order.add'), pat...
[ "abhishekanantharam123@gmail.com" ]
abhishekanantharam123@gmail.com
2a6ed3ab36186dc4b2907c6eccfff147841622dd
bc28f8fe941caf281261afa1641868e743ecb5ab
/Google_APAC_Round_E/Beautiful_Numbers/Beautiful_Numbers.py
07ce6d570af05b0e1e80e6cd90d4524fcd142a89
[]
no_license
anubhavshrimal/CompetitiveProgrammingInPython
9fc6949fb3cd715cfa8544c17a63ffbe52677b37
2692c446d49ec62d4967ed78a7973400db7ce981
refs/heads/master
2021-07-05T08:17:15.182154
2018-05-29T02:26:25
2018-05-29T02:26:25
60,554,340
7
6
null
2021-05-24T17:46:16
2016-06-06T19:18:27
Python
UTF-8
Python
false
false
465
py
import numpy as np test = int(input()) for t in range(1, test+1): num = int(input()) n1, n2 = abs(np.roots([1, 1, -(num-1)])) if int(n1) != n1 or int(n2)!= n2: ans = num-1 else: if n1 == 1 or n1 == -1: ans = n2 elif n2 == 1 or n2 == -1: ans = n1 ...
[ "anubhavshrimal@gmail.com" ]
anubhavshrimal@gmail.com
923b0ab9979233ab582fe107d680fdaa2f83e04e
f6a639ad7782fa5e05905224e01aeefc7204a66f
/punto_2/animacion.py
34e80f3465c84af1886dff168d53833977c71bf2
[]
no_license
Angelicarjs/AngelicaMoreno_taller5
16b62ffd750f4ee1fb475e66be359cb63fd58441
a0cb6164ee6f017f0c67004500d0f48b15e11ee3
refs/heads/master
2020-03-12T08:16:02.383897
2018-05-14T22:00:53
2018-05-14T22:00:53
130,523,842
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
import numpy as np import matplotlib.pyplot as plt from matplotlib import animation #Importa datos data = np.loadtxt('cuerda.txt') x = data[0,:] y = data[1,:] fig, ax = plt.subplots() #Dimensiones en x y y de la grafica ax.set_xlim(( 0, 100)) ax.set_ylim((-5, 1))
[ "noreply@github.com" ]
Angelicarjs.noreply@github.com
686ebbced947976bbb1149d1b104178043ff8612
aafb41aab45562dfe08b2f142025a670dc4c5b80
/scripts/ffhs-na-semesterarbeit/utils/utils.py
376cc2c16a15cfccf108bd3c70e5d083df74c7b1
[]
no_license
samuelblattner/ffhs-na-semesterarbeit
1a61b55b60793557dd9b5d3b9ab025e8869fcbbd
c59d878806ab53fbc91b8861e820c1956f344fb3
refs/heads/master
2020-04-09T23:39:09.285217
2018-12-06T22:41:47
2018-12-06T22:41:47
160,662,796
0
0
null
null
null
null
UTF-8
Python
false
false
13,179
py
from random import random from typing import Tuple, List, Dict from dateutil import parser EUROPEAN_COUNTRIES = ( 'Albania', 'Andorra', 'Austria', 'Belarus', 'Belgium', 'Bosnia and Herzegovina', 'Bulgaria', 'Croatia', 'Czech Republic', 'Denmark', 'Estonia', 'Finland', ...
[ "samworks@gmx.net" ]
samworks@gmx.net
7054d92c14a1e6c568fc15281f3341cce89ae817
4c2136ab05913beba890b4127c2f608be4798ed2
/(0, '')/py/fc_session.py
751c6d3892c8e00fd0baf22a85673c65224e1427
[]
no_license
Dyutee/test
345adcd1769cba0f468090bcc311f4d379ea5f1e
b8b3718922bafbac1bad3802f6c885d777e1bb08
refs/heads/master
2021-01-12T04:19:45.511927
2016-12-29T07:25:29
2016-12-29T07:25:29
77,588,025
0
0
null
null
null
null
UTF-8
Python
false
false
4,517
py
#!/usr/bin/python import cgitb, sys, header, common_methods cgitb.enable() sys.path.append('/var/nasexe/storage') import storage_op import sys,os from lvm_infos import * from functions import * import san_disk_funs check_fc = san_disk_funs.fc_target_status(); fc_target=san_disk_funs.fc_list_targets() fc_ip = '' ses ...
[ "dyuteemoy46@gmail.com" ]
dyuteemoy46@gmail.com
d3c0c2a4b226f7e7de023845098715c9f079029c
6484cdf98189f5f5736950c81a9d8d30e0f0c0db
/notifications/serializers.py
488db18520ad943f4fc0b50ec121588e37fe25bd
[]
no_license
AlexFrundin/great_app_example
e0e9c91f06bfba76058f3af5b113a9399945bf6c
23225e7e88f2ee51359d23cac2200b32b8bd6e20
refs/heads/main
2023-05-30T15:02:22.035811
2021-06-17T06:40:06
2021-06-17T06:40:06
339,434,159
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
from rest_framework import serializers from .models import Notification # This class is use for serialize the data of user profile details class NoitifcationListSerializer(serializers.ModelSerializer): created_on = serializers.DateTimeField(format="%d %b %Y") class Meta: model = Notification ...
[ "aleksey.frundin@gmail.com" ]
aleksey.frundin@gmail.com
fefa024de214cfeafa5d85b6923b4b92572e46fb
583c92b827d741f2385560a75de6d125d888be1b
/classics_proxy_client/exceptions.py
210bd4cd7815f0f358d47f53315b996b6d4cc04d
[]
no_license
kyunghyuncho/classics-proxy-client
9686e72aae830bfe8072648505419ddc5c18df5a
5bfaf30106ba5456a5c2787f0cf8a1cacff10a00
refs/heads/master
2022-07-01T05:08:22.608264
2020-05-11T04:30:45
2020-05-11T04:30:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,761
py
# coding: utf-8 """ Classics Proxy API Proxy API for fetching Classic Sino-Korean Literature from various corpora # noqa: E501 The version of the OpenAPI document: 1.0 Generated by: https://openapi-generator.tech """ import six class OpenApiException(Exception): """The base exception class f...
[ "iyi@snapchat.com" ]
iyi@snapchat.com
a6fd335e1fab30bfd003446f4f96dc56ec322e38
0c08d190ebf4ac4469f1e5931171b84916d0ada8
/Assignment 2/Static Slicing/main.py
a530f3e9d4e7431ada82f1bd3fc7b4aedfe992c5
[]
no_license
Janahan10/SOFE-3980-Assignments
95ef56c01c02a1125fcddb1b9ad58b376cf0066f
a2830b4da3f110e82e031384f46a5200809ab154
refs/heads/main
2023-03-30T22:15:41.680013
2021-03-28T17:42:44
2021-03-28T17:42:44
343,180,490
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
#!/usr/bin/python import sys def parse(statement, cur_line): if statement in cur_line: return True return False file = open("Source.txt", "r") line_number = 1 for line in file: if parse(sys.argv[1], line): print('line ', line_number, ':', line.strip()) line_number += 1 file.clos...
[ "janahanravi10@gmail.com" ]
janahanravi10@gmail.com
5bfc7e94eef873db0f1be62c6ed282820f1cecc0
96cba510d390756372ba32ac8e7893db283f1c22
/index.py
a14f38f37eb6899a16614fb171649c00ea355912
[]
no_license
tjdnws1201/web2-python
f71f505ced95352eead5ca26d924535fbdc10542
a4bf85df37ba2f3944dc9c9576580e501e3c0d37
refs/heads/master
2021-01-01T13:29:18.457819
2020-02-24T16:30:24
2020-02-24T16:30:24
239,299,630
0
0
null
null
null
null
UTF-8
Python
false
false
1,279
py
#!python print("Content-Type: text/html") # HTML is following print() import cgi, os, view, html_sanitizer sanitizer = html_sanitizer.Sanitizer() form = cgi.FieldStorage() if 'id' in form: title = pageId = form["id"].value description = open('data/'+pageId,'r').read() title = sanitizer.sanitiz...
[ "noreply@github.com" ]
tjdnws1201.noreply@github.com
cafc4911927a1bc3db70b0421caa2bd1947264dc
5928d9dcf1ff48f5c9d1a491fd170886d4af4b9e
/walltime1s/time_diff.py
2d35bd10713fac06055fb9354a1c9da5a913e757
[]
no_license
xyongcn/qemu-tprof
1ad76dd166eea692487153359c1d61a237eeb42c
7c30f139e2d662d2bbc6d3a0925053b194f4e3bc
refs/heads/master
2016-09-05T21:15:59.188610
2014-12-15T07:58:06
2014-12-15T07:58:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
#!/usr/bin/python import sys log=sys.stdin def get_tusec(p_line): words=line.split(":") words2=words[1].split(",") sec=words2[0].strip() usec=words2[1].strip() tusec=int(sec)*1000000+int(usec) return tusec line=log.readline() t1=get_tusec(line) while True: line=log.readline() if not...
[ "myming@ubuntu-xyong.(none)" ]
myming@ubuntu-xyong.(none)
cc4ca8bee5f7c9548c5afea6850d0cc031ab24e8
4cd5d0ed28ae52277ba904ea70eb9ac234eced0c
/RedditDigest.py
7072fd945ea5716f6272005fe9da061b6df0fb76
[]
no_license
LiamHz/AutoPy
b30f672c69fb96e501d3434b28f6dd224546c39f
9be71fea5e33a8cb715d407d91ea1eced177eca0
refs/heads/master
2021-07-08T12:47:02.485285
2019-03-06T16:47:37
2019-03-06T16:47:37
142,188,514
1
1
null
null
null
null
UTF-8
Python
false
false
2,450
py
# Send the top posts of the past day from selected subreddits import praw import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText # Read user credentials from external file f = open("AuthenticationCredentials.txt","r") lines = f.read().splitlines() EMAIL_USERNAME = lines[1]...
[ "liam.hinzman@gmail.com" ]
liam.hinzman@gmail.com
b0e91394bff1be5dfe354c640ced42e3fac6041c
e46c52607c763675e00182c5bdd3bb61ce0c6f48
/lib/core/cert.py
b493f50f3bce4da1b182a21e7d05e5fae694e18c
[]
no_license
atlassion/PacketSenderLite
a610833380b19c59b3ae3a7de49fbd03fffffa28
3ff9db1e791deedfb2d7c638f94cd9cb5daa4a63
refs/heads/master
2023-06-09T15:03:28.278597
2021-06-22T11:49:08
2021-06-22T11:49:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,659
py
from hashlib import sha256, sha1, md5 from typing import List from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.x509 import Certificate __all__ = ['convert_bytes_to_cert', 'get_certificate_domains'] # noinspection PyUnresolvedReferences,PyProtectedMember,PyBroa...
[ "shadow.bfs@gmail.com" ]
shadow.bfs@gmail.com
7cc1e02baa1ff8a47e4b543d8df9d4f42f3110fc
2ea2631c1c7fd49d5c177f4b804b8470bdd62a82
/sievePlot.py
707c12b294296830c2404c227e276f6c54faeee4
[]
no_license
Shichimenchou/CS4700FinalProject
abf733e83ee248eff98bb8ca6bc1d0d6a8e772fa
b80480bae028c714b5c8f812e2aa587c3f1092e4
refs/heads/master
2022-04-23T20:29:59.202388
2020-04-28T05:34:10
2020-04-28T05:34:10
259,216,985
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
from pylab import * t = arange(10, 31) cpp = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 2, 4, 9, 20, 41, 83, 173] julia = [0.000038, 0.000065, 0.00012, 0.00027, 0.00058, 0.0011, 0.0021, 0.0048, 0.0084, 0.018, 0.041, 0.094, 0.21, 0.61, 1.03, 2.05, 4.21, 9.77, 26.62, 76.77, 379.12] python = [0.00025, 0.00058, 0.0010, 0....
[ "linsonphillip@yahoo.com" ]
linsonphillip@yahoo.com
54efaf34fa4aca4b31c9b4fe6d36b5dd4d65d9f7
14e6cf117d502517805639ee5850ec4a78654765
/backend/bestdeal/urls.py
e0372b2dacb48c1dced46fd457e18a6f81846225
[]
no_license
viikt0r/pythonproject
cf05590b20798bbc12985f30eabf2970d262a5d1
e7d9f49fdf206f297641fada0a861f1e307cd4b3
refs/heads/master
2023-01-06T00:43:27.587484
2019-06-05T17:16:19
2019-06-05T17:16:19
157,125,370
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
from os import listdir from os.path import join, isdir from django.urls import path, include from pythonproject.settings import BASE_DIR from rest_framework_swagger.views import get_swagger_view schema_view = get_swagger_view(title='Bestdeal API') API_DIR = 'bestdeal/api/' entities = [directory for direct...
[ "esteve.viktor@gmail.com" ]
esteve.viktor@gmail.com
31affbaa13b3b6dbe80804986e0fff5b1236c8cd
63e903bd5448de49d666d00ae1cef76ba7e41b93
/venv/Scripts/pip3.8-script.py
986a0efffcb314557212eb151bb063f4e90a870c
[]
no_license
North-Poplar/untitled1
0958c01dfa92700876fd6a97a206cbd6c52175a2
06b1b025a7a2f66ce1d81a9e4ec1e164259cdb3a
refs/heads/master
2022-11-11T18:21:33.833494
2020-07-04T14:55:54
2020-07-04T14:55:54
277,105,098
1
0
null
null
null
null
UTF-8
Python
false
false
419
py
#!C:\Users\18505\PycharmProjects\untitled1\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a...
[ "2481253805@qq.com" ]
2481253805@qq.com
e139bb21e3e65931f79037851b518967a20f1bdf
6ce7ec83576e8021d050f86cd4c696a142f1798a
/final_exam/02.problem.py
3bca39f6d99a95ed5fcbb067e335e57b32331afe
[]
no_license
Nanko-Nanev/fundamentals
2707e20900dc779b96d453c978e8e74f1fb86fa4
f46a655ff32bbfe6f3afeb4f3ab1fddc7a0edc89
refs/heads/main
2023-02-09T18:39:55.305854
2021-01-07T10:30:37
2021-01-07T10:30:37
326,507,304
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
import re pattern = r"^(\$|%)(?P<tag>[A-Z]{1}[a-z]+)\1:\s\[(?P<t1>[0-9]+)\]\|\[(?P<t2>[0-9]+)\]\|\[(?P<t3>[0-9]+)\]\|" n = int(input()) for i in range(n): data = input() result = re.match(pattern, data) if result: obj = result.groupdict() tag = (obj['tag']) a = chr(int(obj['t1'])) ...
[ "75886522+Nanko-Nanev@users.noreply.github.com" ]
75886522+Nanko-Nanev@users.noreply.github.com
3d07439a0606060f4f49825121ce14c2c92590b0
e6c506beafef296be2f60c3809b36c96c7374224
/左旋转字符串.py
87a697603b995532a2bcc0e42f07e4a2dc49236e
[]
no_license
Liubasara/pratice_code
d435c982379e377e3cb657d77e207f4f51f5e3b5
353363780b0918802e9457aee8ec2a8acc0c24fb
refs/heads/master
2023-08-18T01:29:00.676510
2023-08-10T11:09:11
2023-08-10T11:09:11
137,707,904
0
0
null
2023-01-08T07:34:21
2018-06-18T03:54:33
JavaScript
UTF-8
Python
false
false
72
py
if __name__ == "__main__": a = [1,2,3,4,5,6] print a[1:]+a[:1]
[ "followsin@gami.com" ]
followsin@gami.com
a5b48a72bcda4d1aa680865c3ef883043afe3f26
ff01890e8c6090cd7519da93a96d96a11235ec94
/utils/flow_resolver/protocol.py
74c97372118610e128a1103c7b503297c8b19ec5
[ "Apache-2.0" ]
permissive
DeckerCHAN/shadowsocks
707fbd19448919462bf9249c0e8feb557b9db1dc
29afedb748b0ca2051def24b3bed430f522b4adf
refs/heads/master
2021-01-15T21:30:02.355942
2015-05-09T05:09:49
2015-05-09T05:09:49
32,707,288
0
0
null
2015-03-23T02:38:19
2015-03-23T02:38:19
null
UTF-8
Python
false
false
100
py
__author__ = 'Decker' class ProtocolType: TCP = 1, UDP = 2, HTTP = 3, UNKNOWN = -1
[ "DeckerCHAN@gmail.com" ]
DeckerCHAN@gmail.com
3586db050a69dcf9aa2c251478a20d1daa1a8560
7eed53aaefbac57b374b31946ea2b26ff55e0e44
/scripts/poc-7segment.py
d165774207b3d24e307b319de89e547f22bcc962
[]
no_license
Nickardson/tracy-the-turtle-projects
580b268a7ab3b9abc47c343a1e7cf4462ffc746b
0545c2cd42b6a22544794b207ac2bc51475268da
refs/heads/master
2022-12-12T07:54:19.942076
2020-03-06T01:01:56
2020-03-06T01:01:56
237,668,470
0
0
null
2022-12-11T22:53:59
2020-02-01T19:45:42
Python
UTF-8
Python
false
false
2,182
py
from turtle import Screen, Turtle screen = Screen() screen.setup(950, 200) screen.register_shape('segment', ((-14.5, 0), (-12, 2.5), (12, 2.5), (14.5, 0), (12, -2.5), (-12, -2.5))) # <=> SCALE = 1.75 # arbitrarily scale digits larger or smaller CURSOR_SIZE = 25 # maximum dimension of our custom turtle cursor SPA...
[ "taylorgratzer@yahoo.com" ]
taylorgratzer@yahoo.com
bc74fafeb39a89942c02e53e1e406997948fc37a
d78e6d49aeb50b9a408ed0d423e96df3be7850e3
/prototypes_v1/ui_v0/server/env/bin/flask
2a0105ea5ea486926b7b370d5e8891df932ff422
[]
no_license
jdunjords/birds-iview
77e3fb0815d10fbf971c10b7b28c99a947ef628c
e8da36a46f49827eebf16b6acbb6b3967de41f4c
refs/heads/master
2023-03-06T06:23:43.801460
2021-02-09T01:35:47
2021-02-09T01:35:47
295,505,143
0
0
null
null
null
null
UTF-8
Python
false
false
265
#!/Users/jordancolebank/Desktop/programming/capstone/server/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jordancolebank@Jordans-MacBook-Air-3.local" ]
jordancolebank@Jordans-MacBook-Air-3.local
0a6a1c337560a7be7affe868a65af85fb574f072
15581a76b36eab6062e71d4e5641cdfaf768b697
/LeetCode_30days_challenge/2021/February/Peeking Iterator.py
1c47322e8ae397e80fa7c43ca73eea44f3a2c292
[]
no_license
MarianDanaila/Competitive-Programming
dd61298cc02ca3556ebc3394e8d635b57f58b4d2
3c5a662e931a5aa1934fba74b249bce65a5d75e2
refs/heads/master
2023-05-25T20:03:18.468713
2023-05-16T21:45:08
2023-05-16T21:45:08
254,296,597
0
0
null
null
null
null
UTF-8
Python
false
false
1,642
py
# Below is the interface for Iterator, which is already defined for you. # # class Iterator: # def __init__(self, nums): # """ # Initializes an iterator object to the beginning of a list. # :type nums: List[int] # """ # # def hasNext(self): # """ # Returns true if...
[ "mariandanaila01@gmail.com" ]
mariandanaila01@gmail.com
2c535cfcb097e6b1a7f0880f3a022b2d331efe16
b6c6d71b2c0c00540a6387ddd1e27db096d2f442
/AIlab/certainty_facor.py
85096f6a6ca860f1b181765f697481ee593bca29
[]
no_license
raghavdasila/General-programs
26bb5daddd054f8e6d56924ecb87884e687c8a53
a9f2899ad2b048291793bbdf3dac808b571f9f13
refs/heads/master
2021-07-07T05:30:52.374798
2017-10-05T04:40:17
2017-10-05T04:40:17
104,132,884
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
if __name__=="__main__": print "Medicine Accuracy Testing (Enter percentages)" print "Enter sensitivity" se=float(raw_input())/100.0 print "Enter Specificity" sp=float(raw_input())/100.0 print "Enter percentage of users" up=float(raw_input())/100.0 print "Enter population" p=float(raw_input()) pv=(se*up)/(se*...
[ "noreply@github.com" ]
raghavdasila.noreply@github.com
12772ef7ee948e7a258e8f3156c4960d0078d2b9
37ca51c6c0b21b9b6efbc437bca34f433384ffee
/solution/bit_map/no_16_power.py
e7912d98fad93dc217ff4e334db2a44507a87e3a
[ "MIT" ]
permissive
LibertyDream/algorithm_data_structure
2ea83444c55660538356901472654703c7142ab9
5d143d04d001a9b8aef30334881d0af56d8c9850
refs/heads/master
2020-05-18T00:52:59.457481
2019-12-31T09:21:46
2019-12-31T09:21:46
184,074,211
0
0
null
null
null
null
UTF-8
Python
false
false
1,165
py
'''面试题16:数值的整数次方 实现函数 double Power(double base,int exponent),求base的exponent次方。 不得使用库函数,同时不需要考虑大数问题 ------------- Example input:2,3 output:8 --------------- 功能、边界、负面测试,错误返回方式 ''' def power(base:float, exponent:int): if not isinstance(exponent, int): raise TypeError('exponent must be an integer') if a...
[ "mfx660@163.com" ]
mfx660@163.com
a50627fd3992ca3c5b4930f7a1ab9aff7f483375
d08dc239a3eda6de61be9c128976bb6d199a6721
/final_project/image_search/search_img/server.py
6fd6f1183bcfe59602119754c5dd3cf19b96efdd
[]
no_license
NataKuskova/vagrant-final_project
7ac87ec4623a4a30b9d225a58f83cf7b9f37407d
d3f624a99c3d1d65d0321f8e90070c847e7b8cd3
refs/heads/master
2021-01-11T00:52:58.463215
2016-10-10T07:09:19
2016-10-10T07:09:19
70,456,312
0
0
null
null
null
null
UTF-8
Python
false
false
10,320
py
from autobahn.asyncio.websocket import WebSocketServerProtocol, \ WebSocketServerFactory import asyncio import asyncio_redis import logging import json FORMAT = u'%(filename)s[LINE:%(lineno)d]# %(levelname)-8s ' \ u'[%(asctime)s] %(message)s' logging.basicConfig(format=FORMAT, level=logging.DEBUG) # f...
[ "natasga.kuskova@gmail.com" ]
natasga.kuskova@gmail.com
d7ce23f53fe0a65a72e04d05fb3d4fc24bc04900
973e19eb630d38dc1c9aaf5662199257afc38786
/usaspending_api/references/models/toptier_agency.py
bb9f3109a7f02e7fea17ec1cfeb604dfe382929c
[ "CC0-1.0" ]
permissive
Violet26/usaspending-api
40e424c333c59289a2d76db4274e1637f2fcea7c
3e2b54662bb27217f4af223d429b09c112a01a5a
refs/heads/dev
2022-12-15T22:04:36.837754
2020-02-14T18:20:21
2020-02-14T18:20:21
241,180,147
0
0
CC0-1.0
2022-12-08T06:22:57
2020-02-17T18:35:00
null
UTF-8
Python
false
false
682
py
from django.db import models class ToptierAgency(models.Model): toptier_agency_id = models.AutoField(primary_key=True) create_date = models.DateTimeField(auto_now_add=True) update_date = models.DateTimeField(auto_now=True) toptier_code = models.TextField(db_index=True, unique=True) abbreviation = ...
[ "barden_kirk@bah.com" ]
barden_kirk@bah.com
92e7d30756b64afbf77cb481a3bf486bdcc1f546
c02f0785a36f970e72239acb73a8ed14e580d2c9
/interview/interview_preparation_kit/warmup/challenges/sock_merchant/sock_merchant.py
df985956bfa5a017e5801d5c4107f8a8a06efe26
[]
no_license
Nyakama/hacker_rank
f6fca0fea20a583e6c0e4b11d3e46c0c11c7e051
fe611c1f9bde7233d5c1e4d9b3e58594193434ea
refs/heads/master
2022-12-13T09:17:24.093312
2020-08-29T00:03:57
2020-08-29T00:03:57
290,355,187
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
#!/bin/python3 import math import os import random import re import sys from collections import Counter # Complete the sockMerchant function below. def sockMerchant(n, ar): sum=0 for val in Counter(ar).values(): sum+=val//2 return sum if __name__ == '__main__': fptr = open(os.environ['OUTPUT_...
[ "lungile.nyakama@gmail.com" ]
lungile.nyakama@gmail.com
24eb3295d972efef909d1fed9ece99c0780b2a84
83bd3d644c8feb0b57ac44b681fee4650677c186
/Commonstruct/TriangleSlice.py
c9fe4b5b4c43f7755f393bffcfb60bd5863f3c0d
[]
no_license
theForgerass/3DPointCloud
389d2af938c1cdb0650811db0485afacfefd2c76
e42fe100a82b87264ab26aebdd4168492ae79b93
refs/heads/master
2020-06-04T04:09:06.555579
2019-06-05T10:32:51
2019-06-12T10:57:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
""" 三角面片结构 """ from Commonstruct import Point3D from Commonstruct import Triangle class TriangleSlice: __slots__ = ('_facet', '_vertex') def __init__(self, facet=Point3D(), vertex=Triangle()): """ 三角面片初始化函数 :param facet: 法向量 :param vertex: 顶点(3个) """ self._fa...
[ "614490648@qq.com" ]
614490648@qq.com
050fbf37649611034d2d17fa1d8f6eaaec527045
99b784550a6d306147c022c8d829800b0fbb8c68
/Part_1_Basics/Chapter_9_Classes/number_served.py
c4bf3cff3db3a73bcf0555f68427754403f58a40
[]
no_license
apuya/python_crash_course
116d6598f656d8fed0b4184edbce8e996cd0f564
0b2e8a6e9849a198cfb251706500a919d6f51fe7
refs/heads/main
2023-06-03T22:41:03.203889
2021-06-16T04:07:28
2021-06-16T04:07:28
367,812,531
0
0
null
null
null
null
UTF-8
Python
false
false
2,282
py
# Python Crash Course: A Hands-On, Project-Based Introduction To Programming # # Name: Mark Lester Apuya # Date: 06/12/2021 # # Chapter 9: Classes # # Exercise 9.4 Number Served: # Start with your program from Exercise 9-1 (page 162). Add an attribute # called number_served with a default value of 0. Create an insta...
[ "contact@mapuya.com" ]
contact@mapuya.com
a5b7854d74583f2b5913bc129ba9fe75b8003d23
fe2aa0c918f2dd7950414757fe0d1b73c3cb75a4
/votesystem/vote/migrations/0002_remove_poll_name.py
d7773cc24a907bb7edcf12ab3b09786ba5fdf6c2
[ "MIT" ]
permissive
majaeseong/votesystem
6b705f7a2aedce692607de315e5652c44ecd0ce2
624fadca0251a81c0417f3a3a23f3d6c38b1cf33
refs/heads/master
2020-04-14T06:15:58.589054
2019-01-07T05:31:55
2019-01-07T05:31:55
163,681,655
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
# Generated by Django 2.0.9 on 2018-12-30 11:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('vote', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='poll', name='name', ), ]
[ "cpontina@naver.com" ]
cpontina@naver.com
9ae2cd4efdde3a7a2959e488d8dc87e026f832c1
f1d2d069d905572bec0d740a476e70f7a9ea3a1f
/src/main/python/game.py
252d821510edc3db2e1dc4a7a70a46ed66cda5be
[]
no_license
shahchiragr/IoT
312d75f74dbae4cf82bf7af35fb7dd0ae803efba
282613e0cf8d8eda79dcac7907802a8b6b083b6b
refs/heads/master
2021-01-20T19:13:15.704424
2016-07-27T05:27:34
2016-07-27T05:27:34
64,192,817
0
0
null
null
null
null
UTF-8
Python
false
false
1,499
py
#import necessary libraries import RPi.GPIO as gp,random, time #set variable for easy pin reference switchR = 19 #red switch switchB = 26 #blue switch ledR = 13 ledG = 6 ledB = 5 #initialize GPIO pins gp.setmode(gp.BCM) gp.setup(switchR, gp.IN, pull_up_down=gp.PUD_DOWN) gp.setup(switchB, gp.IN, pull_up_down=gp.PUD_DO...
[ "chirag_r_shah@hotmail.com" ]
chirag_r_shah@hotmail.com
0b507bfacaa250eea6dafb6b5078efa843c7bb81
99356336a59b6c63de99156d2147fe3e4c1d13ac
/implementations/rest/bin/rest.py
d2f7d390dbbcb6b5d8db6386eca027e72521c0d2
[ "Apache-2.0" ]
permissive
splunkdevabhi/SplunkModularInputsPythonFramework
1ee157fe59feced526db1a278794406c0242acf2
04b69c29d95ef4c125bc9766e71d26620e1369db
refs/heads/master
2020-12-26T01:13:42.298552
2015-10-14T17:05:38
2015-10-14T17:05:38
48,684,067
3
1
null
2015-12-28T09:07:31
2015-12-28T09:07:30
null
UTF-8
Python
false
false
32,429
py
''' Modular Input Script Copyright (C) 2012 Splunk, Inc. All Rights Reserved ''' import sys,logging,os,time,re,threading import xml.dom.minidom import tokens from datetime import datetime SPLUNK_HOME = os.environ.get("SPLUNK_HOME") RESPONSE_HANDLER_INSTANCE = None SPLUNK_PORT = 8089 STANZA = None SESSION_TOKEN = N...
[ "ddallimore@splunk.com" ]
ddallimore@splunk.com
5a6cba04c45e10f428b0c7903415372b7a0ae2c4
85af8bcd480794a413e27c114b07bfae50447437
/Python/PycharmProjects/aula 7/desafio 015.py
b734a05b4dd97dccb6dfef94c114d18952a788af
[ "MIT" ]
permissive
MarcelaSamili/Desafios-do-curso-de-Python
83974aeb30cc45177635a6248af2f99b3fdbd3fa
f331e91821c0c25b3e32d2075254ef650292f280
refs/heads/main
2023-05-31T20:07:56.844357
2021-07-05T12:30:18
2021-07-05T12:30:18
375,374,975
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
# Escreva um programa que pergunte a quantidade de Km percorridos por um carro alugado e a quantidade de dias pelos quais ele foi alugado. # Calcule o preço a pagar, sabendo que o carro custa R$60 por dia e R$0,15 por Km rodado. km = float(input('Qualtos KM voce percorreu com o carro?KM')) dias = int(input('Quantos dia...
[ "marcela.santos10.b@gmail.com" ]
marcela.santos10.b@gmail.com
c2f2d1e2fa978cbe1369c0ec85d70b4be9c746c9
66f5ab6d5f78d304350ec4dd734b5d30cb8423f7
/first.py
c60dbcc76e375946b5952d2d0841112066974bb0
[]
no_license
akuppam/Py_programs
4695819bbe744bed6c04b6a5cbde67da6dae0e98
65c7f9830c6a8602b65ae6a5b273453efdd846ac
refs/heads/master
2021-01-19T01:13:53.999056
2017-04-04T20:36:50
2017-04-04T20:36:50
87,232,275
0
0
null
null
null
null
UTF-8
Python
false
false
16
py
print "good one"
[ "noreply@github.com" ]
akuppam.noreply@github.com
432927ddc73c6e066d33be9506269fb5c92f748b
14a4e6e0bf76c68e471794088a5e2a95d6ce4b5a
/test.py
687e974121098855cd758ed1256dea7e645205ec
[]
no_license
yuzhengfa/test
e16c2479baf159d887a117481398513349bd8cb0
63dbe2534a346b86bd77e70c829a6e4ccb886128
refs/heads/master
2020-04-30T09:12:53.099485
2019-03-20T14:58:58
2019-03-20T14:58:58
176,740,165
0
0
null
null
null
null
UTF-8
Python
false
false
10,333
py
# coding: utf-8 # In[17]: import pandas as pd import numpy as np import re # In[18]: #对drector清洗: def sub_name(str1): first_name = [] a = str1.split(',') for i in a: i = re.sub('[ ]','',i) if i[0].encode( 'UTF-8' ).isalpha(): first_name.append(i) else:...
[ "794191669@qq.com" ]
794191669@qq.com
9740ebd46f4efaf866df9077cf36f71f266f2f83
1f4c19a1bc91c09b3b5b54346b67c913363f7cd0
/ctpn/layers/target.py
d8c13115572c3aeffa3a30d87192baf4332b5894
[ "Apache-2.0" ]
permissive
ximingr/ctpn-with-keras
d80bcd753a8d82c4504b8635f43f8253cadb878d
d78d74bbf55cbf5d4867e363eb417c1590a8fd52
refs/heads/master
2020-07-06T11:32:24.968182
2019-09-27T05:42:32
2019-09-27T05:42:32
203,003,267
0
0
Apache-2.0
2019-09-27T05:42:33
2019-08-18T12:57:43
Python
UTF-8
Python
false
false
10,031
py
# -*- coding: utf-8 -*- """ File Name: Target Description : 分类和回归目标层 Author : mick.yi date: 2019/3/13 """ from keras import layers import tensorflow as tf from ..utils import tf_utils def compute_iou(gt_boxes, anchors): """ 计算iou :param gt_boxes: [N,(y1,x1,y2,x2)] :pa...
[ "ximing.fr@gmail.com" ]
ximing.fr@gmail.com