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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f65068b340764574dbfebbc61828c9b7fe411d7 | 2f4437893e1a9ecf0a2e380eab5b552c889bde8d | /app/tests/basic/inf1_inf2.py | fa28705313151c3b2ed84d34042a7b145d95fe41 | [
"MIT"
] | permissive | EBaalhuis/TI4_battle_sim | 85e9eae97240ce49ceda74c7b56482ec4308ff3f | c139ca71d98f320f780cbfc6297d5d1d1ad08a0b | refs/heads/main | 2023-03-24T13:17:12.036201 | 2021-03-25T21:11:43 | 2021-03-25T21:11:43 | 328,025,930 | 4 | 2 | MIT | 2021-03-25T16:57:13 | 2021-01-08T22:27:08 | Python | UTF-8 | Python | false | false | 600 | py | import os
import sys
sys.path.insert(1, os.path.join(sys.path[0], '../../..'))
import app.calculator.calculator as calc
from app import testing_helpers
attacker, defender, options, tol = testing_helpers.defaults()
# target source: http://alphamou.se/ti4calc/
target = [4, 9, 87] # target percentages; [tie, attacker,... | [
"ebbaalhuis@gmail.com"
] | ebbaalhuis@gmail.com |
a7f37d7825f23e51b5abe2fd578e1945767f3fea | 835a938c2adce722dc7130aa8d1ea56576a4e443 | /subfig.py | 08aad91746cadade3ead7316dde7332c8395b459 | [] | no_license | pdicerbo/destr | cd5af011ce1fd95484cf08250c764e294fe24087 | e7580ce71af8bc2d5d4f76a0ffc78e5ae9b197a0 | refs/heads/master | 2021-01-18T07:55:40.151670 | 2015-02-20T15:10:29 | 2015-02-20T15:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,051 | py | import numpy as np
import os
import string
from bisect import bisect_left # for BilinearInterpolation
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import colorsys
#from matplotlib import rc
matrix_Logdelta_LogT_H2 = 'matrix_modif_Logdelta_LogT_H2.dat'
matrix_Logdelta_LogT_H2_tcool = 'matrix_modif_L... | [
"dicerbo@lapoderosa.oats.inaf.it"
] | dicerbo@lapoderosa.oats.inaf.it |
fa27bce37bd4a31c0734171d2f4b56a9949bad56 | d52413173437ba73ecdf822ca895e659f00a8ce7 | /kiwibackend/application/module/artifact/migrations/0003_auto_20151209_1606.py | 66ae6b692b0125f17dbbc5170a7fce62dbc9ac44 | [] | no_license | whiteprism/mywork | 2329b3459c967c079d6185c5acabd6df80cab8ea | a8e568e89744ca7acbc59e4744aff2a0756d7252 | refs/heads/master | 2021-01-21T11:15:49.090408 | 2017-03-31T03:28:13 | 2017-03-31T03:28:13 | 83,540,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('artifact', '0002_auto_20150914_0908'),
]
operations = [
migrations.AddField(
model_name='artifact',
... | [
"snoster@163.com"
] | snoster@163.com |
18435b988db2adb2d750faf0e9145a409d01aff3 | daa464da92a33a10ae6ead5bbd51b1e63fcbddfb | /miniProject/main/plot.py | 868fb4192f3b648e2b65f3dc3ce9052438e2825c | [] | no_license | lzddzh/cs5234 | 53234e4c1a61b1af01a0caa77253a16aed573bda | d07bcdf8517dd9403cfe582d01be751b444c9ea2 | refs/heads/master | 2020-05-29T08:49:57.118957 | 2017-02-11T13:18:59 | 2017-02-11T13:18:59 | 69,001,785 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | f = open("The Monkey's Paw.txt")
content = f.read()
lines = content.strip().split();
num = [int(x) for x in lines]
array = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
for each in num:
array[each] += 1
s = 0
for each in array:
s += each
for i in range(0, len(array)):
array[i] = (array[i] + 0.0) / s
print s, array
| [
"7077804@qq.com"
] | 7077804@qq.com |
f24cb68aa5f6a89d1cf9f9d97a614e601f5bed0f | b83bd2709729ac2eb65026ba6e377d619371369a | /examples/move_mouse.py | 68532b2392f3324b465d53030f8bcac5a3564b4a | [] | no_license | main1015/pygame-demo | cbc36a1066497346a14c016c5904106740ef0aac | a6bebfdc7f21ec675f29155f039d410431785050 | refs/heads/master | 2021-01-22T05:05:20.932704 | 2013-07-04T09:37:05 | 2013-07-04T09:37:05 | 11,117,996 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | # -*- coding: utf-8 -*-
__author__ = 'Administrator'
# Sample Python/Pygame Programs
# Simpson College Computer Science
# http://cs.simpson.edu
'''
使用鼠标移动一个图形
'''
import pygame
# Define some colors
black = ( 0, 0, 0)
white = ( 255, 255, 255)
blue = ( 50, 50, 255)
green = ( 0, 255, 0)
dkgreen ... | [
"446740010@qq.com"
] | 446740010@qq.com |
9a48e22f8eaa6712d2b8bb9c83b468a5f54e3fc2 | 249dfff2a8f1f2b0df042baf7eadb1147f641daa | /task2.py | e4aec93d7e449c33b7f8333687c24b2ef06b9fe5 | [] | no_license | sheilatruong96/portalInterview | dd71a97430113e83a8c907670af547fe53e0ae83 | 0358ca7efb635f0f82911bf1702cf039fe29b3fc | refs/heads/master | 2021-08-15T15:13:43.871423 | 2017-11-17T22:17:24 | 2017-11-17T22:17:24 | 111,150,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | from datetime import datetime
##create data structure that contains/represents all the information
events = ["Interview at the Portal: Feb 23 2017 3:00PM - 4:30PM",
"Lunch with Cindy: Feb 25 2017 12:00PM - 1:00PM",
"Dinner with John: Feb 24 2017 5:00PM - 5:30PM",
"Conference: Feb 24 2017 11:00AM - 4:30PM"]
eventDi... | [
"noreply@github.com"
] | sheilatruong96.noreply@github.com |
088237f546d90336685ac5b4adec442668b908d9 | 1349b8d3077b84bf7f21d437c32f72c3d471cee6 | /src/controller.py | 797b0b29781d3a54c8bcaa48b416297831f964cc | [] | no_license | gustavollps/youbot | 6d95c446db3a3701acd999b7adabf37cf8b107c8 | c364ce1bd322e030ec74b8cb44c311f97dca3717 | refs/heads/master | 2020-09-17T04:27:03.928914 | 2019-11-28T21:14:42 | 2019-11-28T21:14:42 | 223,988,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | import rospy
from geometry_msgs.msg import Twist
from utils import *
class Controller:
kp = 0.4
ki = 0.01
kd = 0.5
I = 0
error = 0
old_error = 0
cmdvel_pub = None
vellim = 0.8
move_kp = 1
move_kp_fast = 2
def __init__(self, cmdvel_pub):
self.cmdvel_pub = cmdvel_pu... | [
"gustavollps@gmail.com"
] | gustavollps@gmail.com |
4a375ac9b82ae9d25d1b1f41d7dda93abbf0da48 | 08bf92d4ab2ae84b75ef71cc2fa09873a45015a4 | /app/venv/lib/python3.6/copy.py | 6c1d950706c13a1b7092a2c08ddd89250a8f9ce8 | [] | no_license | afeierman/listen-local | 2986e827f4d5400475520f8be1c6ac74b66f6b2b | 2d95419a6120e37665d3f2c3a22f37de25448f69 | refs/heads/master | 2021-01-22T06:36:51.247035 | 2018-03-27T19:55:46 | 2018-03-27T19:55:46 | 81,772,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | /home/andrew/miniconda3/lib/python3.6/copy.py | [
"andrew.feierman@gmail.com"
] | andrew.feierman@gmail.com |
d701a9fdfa6f370314ed7cd6527b7b4e96d03442 | 24f4815ba8a325169ec2b3faa0ff26627368901c | /7.user input and while loops/7.2.4 break.py | a7e6a6f4fb8aa53b3fc01d652357afcef78539e8 | [] | no_license | gahakuzhang/PythonCrashCourse-LearningNotes | b57d9328fe978acdb344faa60ed255b953742aeb | d0c0ee7f85dbc276cb42312f5cdb023d3cbe35ae | refs/heads/master | 2021-09-01T21:17:52.775832 | 2017-12-28T17:05:03 | 2017-12-28T17:05:03 | 111,400,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #7.2.4 using break to exit a loop
#while True开头的循环会的不断运行,直到遇到break
#break不执行余下的代码并退出整个循环
prompt="\nPlease enter the name of cities you have visited: "
prompt+="\n(Enter 'quit' when you are finished.) "
while True:
city=input(prompt)
if city=='quit':
break
else:
print("I'd love to g... | [
"noreply@github.com"
] | gahakuzhang.noreply@github.com |
d92da44aeec3f2cba4f058a3ea8914c7a10221aa | 198da4f1c3e9ab4880a7e84e5a208f080778f85d | /apps/organization/adminx.py | 557b8576e27746935b6b7d2802b4a324705f35e7 | [] | no_license | cdmonkey/MxOnline | 11645a9a72d0bd6980ed9eb295cc462774d06867 | 7380e1e5710e1f7b949299d413e786331d40f32c | refs/heads/master | 2020-03-27T17:10:20.409425 | 2018-08-30T06:05:33 | 2018-08-30T06:05:33 | 146,700,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | __author__ = 'cdmonkey'
__date__ = '2018/8/3 15:58'
import xadmin
from .models import City, CourseOrg, Teacher
class CityAdmin:
list_display = ["name", "desc", "add_time"]
search_fields = ["name", "desc"]
list_filter = ["name", "desc", "add_time"]
class CourseOrgAdmin:
list_display = ["name", "de... | [
"brucemx@qq.com"
] | brucemx@qq.com |
345d3711ce3a62958820b876e58f7dff7835e2a4 | af9d9043a83a751f00f7b805533d87ccce330d21 | /Portfolio/Prophy Science/test_task/app/migrations/0002_keyphrase_exist.py | 197e667e522e8a81097b327d8155de69d7d95913 | [] | no_license | HeCToR74/Python | e664b79593a92daa7d39d402f789812dfc59c19f | f448ec0453818d55c5c9d30aaa4f19e1d7ca5867 | refs/heads/master | 2023-03-08T13:44:19.961694 | 2022-07-03T19:23:25 | 2022-07-03T19:23:25 | 182,556,680 | 1 | 1 | null | 2023-02-28T15:30:01 | 2019-04-21T16:26:48 | HTML | UTF-8 | Python | false | false | 425 | py | # Generated by Django 3.0.6 on 2021-01-24 11:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='keyphrase',
name='exist',
... | [
"noreply@github.com"
] | HeCToR74.noreply@github.com |
ee372759b920eeecc32a7ab4c1a17a49fdf1a5fc | ad65c833df24cf7aeacc1f9c953e3ef15701bda5 | /djangofour/first_app/migrations/0001_initial.py | b7aa5975474c0e7bb65bbfa83f90b8244fd9320d | [] | no_license | 098anu098/django-deployment | cb3d15edd90d34a8976a33905f2bdef2b751194a | 2640cec0edd8b7a39febceb2c9479ac5ef9da319 | refs/heads/master | 2022-09-23T10:29:19.251290 | 2020-06-05T08:42:53 | 2020-06-05T08:42:53 | 269,566,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # Generated by Django 3.0.6 on 2020-06-04 16:35
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"098anu098@gmail.com"
] | 098anu098@gmail.com |
ba011fc53d95bdff7c0a68055d7286baae096113 | 16db9aee91f511ee18736177befeaf32488a06cb | /randomNumber_backup_to_start_task14.py | 2a99c5b530b7fcab2f399657fa1ad204195b7ee0 | [] | no_license | AdotHahn/Course | 9324c35982f5fbcd6d10acd18db518672a29cfd4 | 01b32e12ae0dff6b38c17869ec4fbddad7384770 | refs/heads/master | 2020-05-31T07:19:09.484835 | 2019-06-04T08:42:21 | 2019-06-04T08:42:21 | 190,162,838 | 0 | 0 | null | 2019-06-04T08:41:13 | 2019-06-04T08:41:13 | null | UTF-8 | Python | false | false | 1,273 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# team: teammember 1, teammember 2, teammember 3
# expert of exercise block 1: teammember 1
# temptest
# what is happening to me?
import random
import time
import sys
from matplotlib import pyplot as plt
def get_random_number_with_randint(start, end):
num = random... | [
"baltasar.ruechardt@ds.mpg.de"
] | baltasar.ruechardt@ds.mpg.de |
cb1b755acd76f9db92cf7cb4a054a194126f2c56 | 2cf87feeebfe128d6c60067e82e5b28b3a84ae45 | /aracle/data/make3dslices.py | a5b16c308b96da0c083019c4adf28e64496bd654 | [
"MIT"
] | permissive | jiwoncpark/aracle | b536fbea39480b7af96daff1a9c51d2a7f131866 | 20aabe27ce65b738b77192242dc89eda612f945e | refs/heads/master | 2020-06-03T15:21:35.386628 | 2019-11-12T17:49:34 | 2019-11-12T17:49:34 | 191,626,657 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,320 | py | import drms #pip install drms, astropy, sunpy , skvideo
import numpy as np
import astropy.units as u
import shutil
import os
import datetime
import matplotlib.pyplot as plt
import skvideo.io
from astropy.io import fits
from matplotlib.pyplot import imshow
from PIL import Image
from sunpy.map import Map
from datetime im... | [
"jiwon.christine.park@gmail.com"
] | jiwon.christine.park@gmail.com |
97176f4b2cf2a2706ba0989eee781b449a4cf6b0 | 14cdc1353affd01ec9f96c31cd51549d82364b2c | /test/IECore/OptionsTest.py | f257f594de42cc75781eb2db60bfa267e5f96a44 | [] | no_license | dsparrow27/cortex | f787cdcc271388986cd24ee27b48999ae71ef194 | 5e985efa860aec22a0c8ec6cebf9e682f65eca73 | refs/heads/master | 2021-08-19T06:30:36.881268 | 2017-11-23T08:26:13 | 2017-11-23T08:26:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | ##########################################################################
#
# Copyright (c) 2012, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of sou... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
583da391bcd6fac86e125c68704ba1188b5c76af | 25112659fe41d94b5c046f0a17d6508a218f920a | /controllers/practica_3_1/funciones_manipulador.py | d4b3e89f271fce08031a8e993cd559860a723052 | [] | no_license | lfrecalde1/KUKA_YOU_BOT_MANIPULADOR | c5e36bf2750484a2726cad707bd90f9b1eecdf9f | 5200b80c3c1fbdf5a760b1ac6fe378b5767fadac | refs/heads/main | 2023-01-11T12:40:36.195768 | 2020-11-24T03:43:31 | 2020-11-24T03:43:31 | 315,459,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,866 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
def grafica(sty,titulo,x,y,z,etiqueta,ejex,ejey,ejez,color):
mpl.style.use(sty)
ax=plt.axes(projection="3d")
ax.set_title(titulo.format(sty), color='0')
ax.set_xlabel(ejex)
ax.set_ylabel(ejey)
ax.set_zlabel(ejez)
... | [
"lfrecalde1@espe.edu.ec"
] | lfrecalde1@espe.edu.ec |
d5604b226c72488919b888f5ef1f7ef51ab130b7 | 1631ca8e5cc7fa7e7d2ac307fefab490bb307ab7 | /function_filePathCheck.py | dad0375d21938bb07060cf5ca7394f61692c2190 | [] | no_license | jacksalssome/StandardFormatTranscoder | 5350d7ba1edf05f58299619d350df6fa53946008 | 29e6a38f0326301743c99b0cb65a0872e1fc7984 | refs/heads/main | 2023-07-16T01:56:26.790527 | 2023-07-08T15:28:49 | 2023-07-08T15:28:49 | 321,584,824 | 14 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | from colorama import Fore
import sys
import re
import os
def filePathCheck(currentOS, inputArg):
if currentOS == "Windows" and len(inputArg) <= 3: # <= 3 equals C:\ (root dir)
print(Fore.YELLOW + "Can't run in root of drive, input has to be like: " + Fore.RESET + "-i \"D:\\folder\"")
elif currentOS =... | [
"jacksalssome@hotmail.com"
] | jacksalssome@hotmail.com |
1aa86a3850c8d370b0a3bfe7231bb14804fde80b | 248e87db5d7819962ca9b68afcb5b33cb68d219f | /apps/login_regis/migrations/0001_initial.py | 6337eb3cbf6404875506ae744b04e8388079e209 | [] | no_license | Acyu83/pythonblackbelt2 | c4b2ca571a516a3aec3178d2970582b8071390e6 | 0e1732d099327af4bf23abaaaf5304a458a833ba | refs/heads/master | 2021-01-17T11:10:10.999793 | 2017-03-06T03:56:41 | 2017-03-06T03:56:41 | 84,026,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-22 21:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"acyu83@gmail.com"
] | acyu83@gmail.com |
49716fffe1d3d747365e83abe99f48f2a62222a2 | be5c86e8fe3f5836b7d2097dd5272c72b5b28f15 | /binary-search/Python/0374-guess-number-higher-or-lower.py | bca7b49cffd223314f15f7da64b8be501150cf07 | [
"Apache-2.0"
] | permissive | lemonnader/LeetCode-Solution-Well-Formed | d24674898ceb5441c036016dc30afc58e4a1247a | baabdb1990fd49ab82a712e121f49c4f68b29459 | refs/heads/master | 2021-04-23T18:49:40.337569 | 2020-03-24T04:50:27 | 2020-03-24T04:50:27 | 249,972,064 | 1 | 0 | Apache-2.0 | 2020-03-25T12:26:25 | 2020-03-25T12:26:24 | null | UTF-8 | Python | false | false | 523 | py | # The guess API is already defined for you.
# @param num, your guess
# @return -1 if my number is lower, 1 if my number is higher, otherwise return 0
def guess(num):
pass
class Solution(object):
def guessNumber(self, n):
left = 1
right = n
while left < right:
mid = (left + ... | [
"121088825@qq.com"
] | 121088825@qq.com |
1095576a2812ddaaae40317c51f9a41d639a7ada | bbb68a670f242fe80f321d85701a917e670847d5 | /library_app/models/library_book.py | 84057c5674df74b47245046868fb8d182892b985 | [] | no_license | Aaron-97/test | 7f3606f6fe51797d1d8329ff790e9cd47f512a65 | c7bcfab9280fbc760499cb94acf56f75f14d00b9 | refs/heads/master | 2023-01-09T23:40:07.239037 | 2020-11-09T08:03:59 | 2020-11-09T08:03:59 | 311,197,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | from odoo import api, fields, models
from odoo.exceptions import Warning, ValidationError
class Book(models.Model):
_name = 'library.book'
_description = 'Book'
# String fields
name = fields.Char('Title', required=True)
isbn = fields.Char('ISBN')
book_type = fields.Selection(
[('pape... | [
"2291177920@qq.com"
] | 2291177920@qq.com |
a8e39f0d7e65c4e87997c24e78265589babf0581 | 97841ea896bad4098350243e35580e8fe968d220 | /src/maml.py | 6007461a4f3e693525956861b8287af22655668f | [
"MIT"
] | permissive | gthecht/mandril-project | f5863ac5caee4789b439b4b20f3f288d780df3ba | b1232706d8b77210ec3ed2fee4d809f2faacdd3e | refs/heads/main | 2023-03-19T05:24:49.345063 | 2021-02-28T18:26:52 | 2021-02-28T18:26:52 | 313,941,452 | 0 | 0 | MIT | 2020-12-09T14:48:51 | 2020-11-18T13:21:42 | null | UTF-8 | Python | false | false | 9,297 | py | #!/usr/bin/env python
import utils
import solver as Solver
import gridworld as World
import gaussianfit as Gfit
import numpy as np
import matplotlib.pyplot as plt
import time
class Mandril:
def __init__(
self,
N=100,
batch_size=20,
meta_lr=0.1,
size=5,
p_slip=0,
... | [
"gdhecht@gmail.com"
] | gdhecht@gmail.com |
f70776b1699a7ac825b34acd41be2609e970d1fc | 507e912bc890813f138b019b9afe30456b02a1f7 | /pycfm/model.py | b3e02521f39d74116b80a00cd2f58d6587a04667 | [
"BSD-3-Clause"
] | permissive | nils-werner/pyCFM | 0393f8629883a3ffd440988171a7e105aa191de8 | 130eaf8b9ec819d44ce574cf97aa97b06e4d7ede | refs/heads/master | 2021-01-20T16:30:49.571668 | 2016-03-11T15:01:36 | 2016-03-11T15:01:36 | 53,676,018 | 0 | 0 | null | 2016-03-11T15:21:14 | 2016-03-11T15:21:14 | null | UTF-8 | Python | false | false | 3,189 | py | import numpy as np
import tqdm
try:
from opt_einsum import contract as einsum
except ImportError:
from numpy import einsum
def hat(P, At, Ac, eps=None):
if eps is None:
eps = np.finfo(float).eps
return eps + einsum('abfj,tj,cj->abftc', P, At, Ac)
def nnrandn(shape):
"""generates randoml... | [
"mail@faroit.com"
] | mail@faroit.com |
83027b62ac40aff7b463752f943ed54795863c91 | d5ef24edc540f4dcc48a26d19ee95a3de302c55f | /classes/objects/Classroom.py | 96551c65cd65075058e117a098ab409e31365ec2 | [] | no_license | Yoske62/nadav | 526275e1501116263d4b293b0308f52bd7bd9848 | 588fcd7f509da111f82cbea2788c6940f645233c | refs/heads/master | 2020-03-27T21:06:55.690948 | 2018-09-09T05:35:48 | 2018-09-09T05:35:48 | 147,115,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | class Classroom(object):
def __init__(self,Id: int, Name: str, Capacity: int, Notes: str):
self.Id = Id
self.Name = Name
self.Capacity = Capacity
self.Notes = Notes | [
"yoske62@gmail.com"
] | yoske62@gmail.com |
1fdeb7595c4c3e0ed8c1014b6e108291cd62d892 | c745592e6002d0efb6b18a71554ec1e6bebf8ca4 | /article/admin.py | 492755ed705d3411707556cec007becb084f6c0a | [] | no_license | Melish76/FirstProject_DJ | c001715c6178e868789084fc16f7b01a8974609a | e38e1d8f83f9132f0f98cec0e41c4515681616e9 | refs/heads/master | 2020-09-29T04:49:33.248469 | 2019-12-09T21:32:37 | 2019-12-09T21:32:37 | 226,955,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from django.contrib import admin
from .models import Article,Comment
# Register your models here.
@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
list_display=["title","author","created_date","content"]
list_display_links=["title","created_date"]
search_fields=["title"]
list_filter=["cre... | [
"meleyke.huseynova03@gmail.com"
] | meleyke.huseynova03@gmail.com |
f25fdbddc9fdfd5ca2a2de6f20f15a4640927b86 | 3ebb50b403ab32fccfab9279232682f1ef9005bf | /accounts/tests/test_views.py | bc42629b08a65c01768fbda34d5cf4a35350f4ea | [] | no_license | leoalmeidab/tdd-project | 69a6c8c046e89ef5e090e6b9c308b12cd01fbbb8 | 2b5ce5fac153124addffd1796ae37a1b94f4daf5 | refs/heads/main | 2023-07-01T14:16:02.987515 | 2021-08-13T22:57:17 | 2021-08-13T22:57:17 | 392,769,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from django.test import TestCase
import accounts.views
from unittest.mock import patch
class SendLoginEmailViewTest(TestCase):
def test_redirects_to_home_page(self):
response = self.client.post('/accounts/send_login_email', data={
'email': 'edith@example.com'
})
self.assertRedi... | [
"leonardobrito@dcc.ufmg.br"
] | leonardobrito@dcc.ufmg.br |
7cca7a15eb838322918f35d63c3ebf8e698d8601 | 2008aa05fc64a4787d6f2f0f9cdce4ce98dc9fe2 | /app/bootstrap/Directories.py | df88728830263ae9b801bf0902648127c3d5350a | [] | no_license | filljoyner/web-traffic-classifier | a7ff503a52287bf9f863e58f735dde564c960f96 | 38b2fe9cadc60d0610364a08204b85c0c62fb507 | refs/heads/master | 2020-06-24T08:40:58.655140 | 2019-07-26T02:09:14 | 2019-07-26T02:09:14 | 198,917,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from app.components.FileSystem import FileSystem
class Directories:
dirs = {
'base': None,
'logs': None,
'workspace': None
}
def __init__(self):
self.put('base', FileSystem.cwd())
self.put('logs', self.get('base') + '/logs')
self.put('workspace', self.get('... | [
"filljoyner@gmail.com"
] | filljoyner@gmail.com |
a995f929cf702e3cf0ce056d4ed20bda47b8f3d4 | ad6cc209b3251c2074920a893afcb48831af6dc1 | /word_count.py | 8eeb5a5efea83d6e3d3254384ea359306f820db3 | [] | no_license | ackendal/transcriptTools | 762efaadbef043c7e077b7b96ba1f63552a743c9 | 0ceefeb367dddae034264e9faee41e9407eac201 | refs/heads/master | 2022-11-23T23:37:18.075033 | 2020-07-29T16:34:36 | 2020-07-29T16:34:36 | 283,545,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | #!/usr/bin/env python3
""" Alex Kendal, V00872134 *
* A program that reads a file and outputs a count of how *
* many words of all lengths it finds are in the file. *
* This list of counts can be sorted or unsorted (default) *
* and printed with or without (default) a list of the *
* words o... | [
"ackendal@gmail.com"
] | ackendal@gmail.com |
7b2892cad079451cba41a6e4aedb3f7b79329670 | 7e43049360db50a8f9cdcf1ca4e531bb0d2bfc84 | /Simulation_29_ROIs_WhiteNoiseInput.py | a05f5f4a89d9d9bfdcb99bab7e37cab42fcdb998 | [] | no_license | OliverMount/LargeScaleNetwork | 9543a57f56aa7945acf49a942f6685dcb1cf46b7 | f522e203c5de44bb0695bdb78dae170bd35e8f4f | refs/heads/master | 2023-04-12T23:25:36.845497 | 2021-04-20T02:23:09 | 2021-04-20T02:23:09 | 344,648,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,379 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 29 15:26:04 2021
@author: olive
"""
#------------------------------------------------------------------------------
# Necessary modules
#------------------------------------------------------------------------------
from __future__ import divisio... | [
"j.olivermount@gmail.com"
] | j.olivermount@gmail.com |
00e434dbbfdc3a5a3c273251e6fcb2d07db1ba31 | 881c5baa69c6d43b05e56ce439c6c373b01644c9 | /serve/predict.py | 7b1e3dcb90e8f854304c3270120a2960faee637b | [
"MIT"
] | permissive | nitingupta180/sentiment-analysis | 8fff2988d16a70c76923227d464ad76b78aebe91 | 8d9ef710259f73d1a333560dd2a03fb7868c5ca3 | refs/heads/main | 2023-02-02T05:05:37.434928 | 2020-12-19T08:25:37 | 2020-12-19T08:25:37 | 322,539,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
from model import LSTMClassifier
from utils import review_to_words, convert_and_pad
def model_fn(mod... | [
"noreply@github.com"
] | nitingupta180.noreply@github.com |
4bfc954d67403dfc2b0f37cb258ad7d0fa939d04 | 0975a61b8b6d416892541f8d57425b7959418127 | /011兔子生兔子.py | 624e091deb7280202630e34bdab22e588eabaef8 | [] | no_license | minisstep/Runoob | 91757ebafba1b26964626ddc8a5dc67b0819c951 | 9aaf8a2b309e360d50192aa748ca2edfb9ec44e0 | refs/heads/master | 2020-04-24T18:05:06.717245 | 2017-06-10T22:49:22 | 2017-06-10T22:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # -*- encoding: utf-8 -*-
__author__ = 'xgj1010'
__date__ = '2017/6/1 14:34'
"""
题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?
程序分析:兔子的规律为数列1,1,2,3,5,8,13,21....
"""
a = 1
b = 1
for i in range(1, 22):
a, b = b, a+b
print b
| [
"869624090@qq.com"
] | 869624090@qq.com |
7fe354c98d8d01ba22505c5e5c51b733782f34d6 | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/googlecloudsdk/api_lib/ml/vision/util.py | d48320c61c682ef73501c2c44fe8ff497a756db5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 2,070 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
41ba002d0b21ec0578f9bb7ef6d86ce45f0e7959 | b3b93c7db04c60c42fc4db58f1731a33a14fd621 | /python_oop/product/product.py | f73922c8449f0b60e9e6e82f2fa7bee0ed570326 | [] | no_license | scottcdudley/python_stack | 97d6d90179c26cc59cf926c5dcf45a6e99a918e0 | ac3c6fdedc19711a65d8467b65c96a3938e9c2a1 | refs/heads/master | 2020-03-23T20:31:22.410044 | 2018-07-23T17:24:15 | 2018-07-23T17:24:15 | 142,043,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | class Product(object):
def __init__(self, price, item_name, weight, brand):
self.price = price
self.item_name = item_name
self.weight = weight
self.brand = brand
self.status = "for sale"
self.display_info()
def sell(self):
self.status = "sold"
return self
def add_tax(self, tax):
return self.pric... | [
"scott.dudley@hotmail.com"
] | scott.dudley@hotmail.com |
b8b7d3f5077d58a59b998dd73967b10c99685258 | fddda95237f380caf022a84c7949e979dc62777f | /app/main/views.py | fc82df790404030af7a35ae1fa557963ef7a449b | [] | no_license | xxxxsk/learn_flask | 0caa6d919469ccf5c910b76c92e30ca3cf3823cf | 3279d70846255cceef78ffdc00025751ca28e6de | refs/heads/master | 2022-12-09T09:50:58.735108 | 2019-01-08T12:22:19 | 2019-01-08T12:22:19 | 161,746,831 | 0 | 0 | null | 2022-09-16T17:54:49 | 2018-12-14T07:17:53 | Python | UTF-8 | Python | false | false | 10,092 | py | from flask import render_template, redirect, url_for, abort, flash, request,\
current_app, make_response
from flask_login import login_required, current_user
from flask_sqlalchemy import get_debug_queries
from . import main
from .forms import EditProfileForm, EditProfileAdminForm, PostForm,\
CommentForm
fro... | [
"1306237818@qq.com"
] | 1306237818@qq.com |
14dfa0a6647e1c79cd33c076529270c16b054056 | 09933dafbbc12fe20c405362850ffbf315b01a58 | /src-tag-ent/gen_data.py | fbddab6277c97047553db17485a2206acc0a6875 | [] | no_license | johndpope/advrelation | 1ce1fd4ffc0b7abbea2762c3a8941b469c4f7cf5 | bc77dcfa8669d612aded6a053fff6766798bed14 | refs/heads/master | 2020-03-22T22:55:48.664711 | 2018-03-03T04:43:11 | 2018-03-03T04:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import tensorflow as tf
import config as config_lib
from inputs import dataset, semeval_v2
tf.logging.set_verbosity(tf.logging.INFO)
config = config_lib.get_config()
semeval_text = semeval_v2.SemEvalCleanedTextData(
config.semeval_dir, config.semeval_train_file, config.semeval_test_file)
# length statistics
s... | [
"lzh00776@163.com"
] | lzh00776@163.com |
671509fb4a1c6376bd546e9658ab0498782e94ab | bece006a37d0041d36416bc888afc96db4046f87 | /BACK/CYBEROPS-master/KAFKA/main_consumer_emotion.py | 4c5685945dfabb36fe9e260c2a52ee72b2e4dc45 | [] | no_license | acorredera/CyberOps | fdd8bca69db1ae98ce4cf36e010286e07972754b | 14f1a8a9c09864af5d84094ae8f8c2f41124d8c4 | refs/heads/master | 2023-03-18T05:16:41.961552 | 2022-09-27T05:07:46 | 2022-09-27T05:07:46 | 134,832,725 | 0 | 1 | null | 2023-03-03T00:49:14 | 2018-05-25T09:10:33 | Jupyter Notebook | UTF-8 | Python | false | false | 872 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import NewsCore.dao.EmployeeDAOImpl as dao
import KAFKA.Consumer as consumer
import settings as settings
if __name__ == "__main__":
#variables
ip_DCOS_cassandra = settings.ip_DCOS_cassandra
keyspace = settings.keyspace_ca... | [
"noreply@github.com"
] | acorredera.noreply@github.com |
c53c1612861b020945bf712d8bad9215e5e30760 | 8b2b3f9e706a13caeae1c58eaf9c8421cb7155e0 | /Source/FetchData/Fetch_Data_Stock_CHN_Daily.py | 20696a43119f5f91a09aa99a355d3f8610ccddd3 | [
"MIT"
] | permissive | hyy1101/StockRecommendSystem | 809ce2c001c0df395cc2953bf3a2e6254a591c02 | 188dd006d23a0280106a79895885ad4f9acb4cea | refs/heads/master | 2020-12-02T16:15:19.536621 | 2017-07-07T03:29:21 | 2017-07-07T03:29:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,916 | py | import sys, os, time, datetime, requests, warnings, configparser
import pandas as pd
import numpy as np
import tushare as ts
import concurrent.futures
from tqdm import tqdm
cur_path = os.path.dirname(os.path.abspath(__file__))
for _ in range(2):
root_path = cur_path[0:cur_path.rfind('/', 0, len(cur_path))]
cur... | [
"bluelight598@hotmail.com"
] | bluelight598@hotmail.com |
cf7421dbfc41eb8a9f6c8c4c9cbaf20c7230e672 | 7c2bc909efb6db08e57ed3dbff801bece3ac24c8 | /0x04-python-more_data_structures/10-best_score.py | 26dee3325ad643adcaaaa3e9d95024c01c2e8e0f | [] | no_license | EstephaniaCalvoC/holbertonschool-higher_level_programming | 9ed1009702b6aacb3b82b890e1798052adf40f33 | 93c6206b07d6cb51bcbee0bea4054343fca51fad | refs/heads/master | 2023-04-24T19:30:07.828255 | 2021-05-12T19:55:29 | 2021-05-12T19:55:29 | 319,314,341 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/usr/bin/python3
def best_score(a_dictionary):
"""Return a key with the biggest integer value"""
return max(a_dictionary, key=a_dictionary.get) if a_dictionary else None
| [
"2177@holbertonschool.com"
] | 2177@holbertonschool.com |
de9e3acfbffdda6fd7604526072436235d2acd6a | 55ebfaee562197eb29694ee7d95d4073239bede1 | /webserver4.py | 9240a1bc8f206992a76f876e395754ad60698250 | [] | no_license | YuriyZaliznyuk/RestaurantMenu | 573561f7389c86db167dd36aaf2a5f8dd6d3e48a | 6af4511625718aabe5b9ee5ea0ccee6fd499b44d | refs/heads/master | 2021-03-12T21:56:57.893046 | 2015-07-17T15:37:07 | 2015-07-17T15:37:07 | 38,889,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,650 | py | from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import cgi
# import CRUD Operations from Lesson 1
from database_setup import Base, Restaurant, MenuItem
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
# Create session and connect to DB
engine = create_engine('sqlite:///restau... | [
"yuriy.zaliznyuk@gmail.com"
] | yuriy.zaliznyuk@gmail.com |
e0b39a708b67f44501522e21058f0a57a5d4d895 | 727d968a63a6dfdd05a7e0f7abc1a3be7a910ca3 | /covid_api_github.py | 0869f9779309cd74f0c016051880af43e0697ef9 | [] | no_license | ericstar20/COVID19_api | 3a4501f905172b9705e72798af8d9bb4027a2a9a | 4313e073992a975878088135a09cf9bc6e951175 | refs/heads/master | 2022-11-27T21:54:06.581868 | 2020-07-17T16:27:04 | 2020-07-17T16:27:04 | 280,244,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,926 | py | def covid_api_sql():
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# API
import requests
import json
# DB
import pymysql
from sqlalchemy import create_engine
pymysql.install_as_MySQLdb()
# AWS
import aws_config
# Set up API keys to get acces... | [
"noreply@github.com"
] | ericstar20.noreply@github.com |
c4fd4774aaf0e10c3720251b62ae4f7fd5eca3ae | 437428a48278b4e9bc04e1b8acbb33199f409376 | /modules/exploit/unix/cctv/goahead_password_disclosure.py | ae2a949fa5f2033187282244644b19db5808d163 | [
"MIT"
] | permissive | happylaodu/HatSploit | 06d18ba2590456241ba61273d9f3d662a8bb26ec | 9d53f3db85ce38483c6e7d16570ac233c5dd93cf | refs/heads/main | 2023-04-30T20:18:37.090185 | 2021-06-02T20:23:08 | 2021-06-02T20:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,399 | py | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# 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 without limitation the rights
# to... | [
"enty8080@gmail.com"
] | enty8080@gmail.com |
e0d4813f092a2ac5c5e8a38b53dd058711758ebb | cf6e0374bede75062e9da39895ae576d07f4839c | /extract-AP-Images/extract-AP-images.py | 7f422fcd27470e9b79c3e843b759dd4804357a3a | [] | no_license | gingmar/semfio-ekahau | 6e74017f699e8aa895b70cf3b62ad39d4096fd4a | fa04ed243c51093e4f82b8e2f25fe02d6eeae66d | refs/heads/master | 2023-07-07T16:57:43.054514 | 2021-08-24T01:25:56 | 2021-08-24T01:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | """
Written by Francois Verges (@VergesFrancois)
This script will extract all image notes attached to an AP objects of an
Ekahau project file (.esx). It will place the pictures in a new directory.
Sub directories will be created for each floors.
This script will also work if you have multiple pictures per AP note
Cur... | [
"fverges@semfionetworks.com"
] | fverges@semfionetworks.com |
ef567234d6477e2d147942c523b0ffd84b76b2c7 | 8f453ebb619acb23d2925f7ceb9b0c244e645390 | /ClassifyParkinsons.py | 0f2b46ca449a357c52c165eda6b0830490adb626 | [] | no_license | pranithasurya/MachineLearning | 5fa6927d03a29ac5ec60a0cab1096bafdc6b80fe | 2d07da75335867eba1591841351c3db351d07c23 | refs/heads/master | 2021-01-10T05:17:50.137654 | 2016-01-18T05:48:16 | 2016-01-18T05:48:16 | 49,853,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | import numpy as np
from sklearn import svm
from sklearn.metrics import accuracy_score
def loadData():
file=open("parkinsons/data")
line=file.readline()
result=[]
while(line!=''):
a=line.split()
a=map(float,a)
result.append(a)
line=file.readline()
a=np.array(result)
print a
return a
def loadTrueClass()... | [
"pranitha.andalam@gmail.com"
] | pranitha.andalam@gmail.com |
ec20e0f130c9b07be9f40df8385ecc71d1678676 | 1b3fc35ada474601a76de3c2908524336d6ca420 | /day07/作业/tencent/tencent/settings.py | d96bd9dfc78cc95ce6fafa6d33a2745ee7a9c4af | [] | no_license | dqsdatalabs/Internet-worm | db3677e65d11542887adcde7719b7652757a3e32 | 62f38f58b4fa7643c482077f5ae18fff6fd81915 | refs/heads/master | 2022-01-16T14:29:52.184528 | 2018-12-25T08:46:08 | 2018-12-25T08:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | # -*- coding: utf-8 -*-
# Scrapy settings for tencent project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topic... | [
"aaa1058169464@126.com"
] | aaa1058169464@126.com |
b2625f2e12494973dd673cb354d1c0ce6a6f5a40 | 9ffc948ff6633a1876883b97f3b2ce12e733e094 | /Programs/catnames.py | c384d4079a5d7d8d65d696da554445d95ca9ad64 | [] | no_license | SrinuBalireddy/Python_Snippets | b529c4b93e774970a7e5a7961fdca89cc4732b46 | f032887b1c7ec261aa70adf03bcf0a43acef75ad | refs/heads/master | 2022-12-18T17:37:36.488430 | 2020-09-08T09:59:36 | 2020-09-08T09:59:36 | 274,892,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | # Write your code here :-)
catnames = []
while True:
print('Enter you cat name')
name = input()
if name == '':
break
catnames = catnames+[name]
print('Your cat names are')
for names in catnames:
print(' '+names)
| [
"srinuuipath@gmail.com"
] | srinuuipath@gmail.com |
554e52f3092452144023bde3ebfbf39ccb24dc5c | 773869c5d8c85c56027bc453ad2cb3cd0fd8d46a | /pie chart.py | e7d14d2d8262b1b467d4db21051dff1292ffbcc4 | [] | no_license | saikiran335/python-projects | c8ac60f3977f5cc693b4c373a06b6b325edd8ffa | bb1409c427fd99f2c180fc24bc76d401717aee78 | refs/heads/master | 2023-05-01T17:10:15.851278 | 2021-05-25T10:23:06 | 2021-05-25T10:23:06 | 365,147,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import matplotlib.pyplot as plt
slices=[5,2,7,8]
activities=['sleeping','eating','walking','talking']
cols=['r','b','g','c']
plt.pie(slices,
labels=activities,
colors=cols,
startangle=90,
shadow=True,
explode=[0,0.1,0.2,0.3],
autopct='%1.1f%%')
plt.title('pie chart')
pl... | [
"saisaikiran335@gmail.com"
] | saisaikiran335@gmail.com |
94dabe5bc97142793e56abc7a975599c561890d5 | a707013b51935acd329814d8cc9dc408911a9cfa | /cmsplugin_configurableproduct/migrations/0007_auto__del_field_cproducttypesplugin_template__add_field_cproducttypesp.py | 9af2b6d9d79304ef9ebdfa2b05f3bdf7b6242d78 | [
"BSD-2-Clause"
] | permissive | ZibMedia/cmsplugin-configurableproduct | 2d4ff3b4f09210a6d448251b9bdec01d0214b344 | 65269b3ce697ac78ddff14168eed9b6883eb98f0 | refs/heads/master | 2021-01-24T01:28:47.826763 | 2013-05-28T11:17:22 | 2013-05-28T11:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,090 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'CProductTypesPlugin.template'
db.delete_column('cmsplugin_cproducttypesplugin', 'templat... | [
"zeno.jiricek@urpages.net"
] | zeno.jiricek@urpages.net |
7849b2b7c4842ebe127760a458ab217b97e6dfe3 | 1f6a162de77fca1d74af3f341ec815825c15f54c | /strings.py | 0ded33a6a410dd31407cdbdaee0c8749509fe68d | [] | no_license | nickdevp/pysamp | 8b96f93ad15b7caa080f4790b240a68476ff7461 | 22fdf234878bf62400cb7604ab582cf9c46a491f | refs/heads/master | 2021-01-13T01:31:27.335085 | 2015-06-28T21:12:43 | 2015-06-28T21:12:43 | 38,157,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py |
from __future__ import print_function
# == REPLACEMENT ==
# NOTE: case insensitive replacement requires 're' module
text = "Hello World World"
print(text) # "Hello World World"
print(text.replace("World", "Nick")) # "Hello Nick Nick"
print(text.replace("World", "Nick", 1)) # "H... | [
"nickdevp@outlook.com"
] | nickdevp@outlook.com |
52009571a059032b36dab76217410a7d0c185d26 | cd5c8ac975b9a78d020815d05be60bfebd263329 | /9/9.7.py | 3a074c179819850b02122551742fe6a5edaabba2 | [] | no_license | ttlttl/PythonCookBook-study | 10dbc72398d62de4e0c625eb3b61c7e084792f2f | 7c8a496874f34fb9efc57335644d2cd67839144d | refs/heads/master | 2021-01-21T04:59:50.554195 | 2016-06-15T14:37:59 | 2016-06-15T14:37:59 | 48,616,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
利用装饰器对函数参数强制执行类型检查。
inspect.signature()函数允许我们从一个可调用对象中提取出参数签名信息。
"""
from inspect import signature
from functools import wraps
def typeassert(*ty_args, **ty_kwargs):
def decorate(func):
if not __debug__:
return func
sig = signature(fu... | [
"wangmingape@gmail.com"
] | wangmingape@gmail.com |
1f0bb8225ed57a6b8199fb94bf797a376b9c23ea | 8201e0e2ab1c528e6b445f12c19c4f39f14ab8da | /08-16/formatting.py | 2e0aa9f20eceefb5db017adea2c62694ea7428dd | [] | no_license | ucsb-cs8-m18/code-from-class | c8d1d3af8f35e29edd8d9b66694662219e956029 | 5658ac2dca3a29e948e14456e6adbea222bce209 | refs/heads/master | 2020-03-25T16:02:55.666072 | 2018-09-12T18:03:17 | 2018-09-12T18:03:17 | 143,912,380 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | month = 8
day = 16
year = 2018
# separate things between commas with the empty string
print(month, "/", day, "/", year, sep="")
print(str(month) + "/" + str(day) + "/" + str(year))
print(month, day, year, sep="/")
# "...{}..." is a format string
print("{0}/{1}/{2}".format(month, day, year))
print("{1}/{0}/{2}".fo... | [
"lawtonnichols@gmail.com"
] | lawtonnichols@gmail.com |
491d28bb4be3205a28e15b1faebc1cd701d2860f | 80d5031342288c188dc7a73bbe07c4770c5b8a6f | /domain/game/ended.py | 2339bea3b00d1919cd2d75c7fb01cf04c305d3c4 | [] | no_license | theodormanolescu/hero | 19b2d6b897e88400ebdb93b07514255d925d5257 | a05226437c1430c698c54c4b54ccb99fcc57309e | refs/heads/master | 2023-06-04T04:35:13.273992 | 2021-06-22T19:17:27 | 2021-06-22T19:17:27 | 379,178,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from application.event_interface import EventInterface
class Ended(EventInterface):
def __init__(self, fights: int, rounds: int):
self.fights: int = fights
self.rounds: int = rounds
def get_name(self) -> str:
return 'game_ended'
| [
"thedor.manolescu@emag.ro"
] | thedor.manolescu@emag.ro |
084c743b67522a9f0ccc3613ab455aa6bbf74ee1 | 633d7e9174c967b0f77830c630ec0a7e7cbee901 | /src/task3/1_hindi_bengali_bilstm_sa_jdil/bengali_preprocess.py | ca527cf9b7f5e326cc4335f59d6386e6609cfbd4 | [
"MIT"
] | permissive | pritiyadav888/nnti_hindi_bengali_sentiment_analysis | d9694de7092ec9a51041113647c606aaeb70d8e2 | 0583ed0817824ad83f458f3be5bfab7b6e13a629 | refs/heads/main | 2023-07-27T02:39:55.202261 | 2021-09-10T14:48:33 | 2021-09-10T14:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | import re
"""
Performs basic text cleansing on the unstructured field
and adds additional column to the input dataframe
"""
class Preprocess:
def __init__(self, stpwds_file_path):
"""
Initializes regex patterns and load stopwords
"""
self.USERNAME_PATTERN = r'@([A-Za-z0-9_]+)' ## re... | [
"sk28671@gmail.com"
] | sk28671@gmail.com |
b120a89e2d2dd9e418954d016dc61f794cb03dc7 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/domainregistration/v20201001/domain_ownership_identifier.py | 0686f0d099df8d96bf3e28acd50d6042d8b40850 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,342 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
92133a5ef112f17025321f25820ce497167582b9 | aa2e2765185122be8f5cff48c7fbce999f02435a | /script/ModelAndTest.py | 8693a74848de0157f0c044d8058fc489eecb7761 | [] | no_license | Lightmann/BatchNormGD | ee904a944a757438040c9203163a2d108da556c0 | 22225684cc3525073ca8ecf4712fa4226f39743c | refs/heads/master | 2020-05-20T11:15:27.161145 | 2019-05-08T06:37:32 | 2019-05-08T06:37:32 | 185,545,206 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,708 | py | # coding: utf-8
# 2018-08-17
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import os
# save and load
import pickle # import cpickle as pickle
def data_save(data,filename):
f = open(filename, "wb") # *.dat
pickle.dump(data, f)
f.close()
def data_load(filename):
return pic... | [
"noreply@github.com"
] | Lightmann.noreply@github.com |
f8402862660ad7fbd0eaa5701600977ee84be1b3 | 3ef1689e0bc15c6928df73768a53fc831811a7cd | /2.add-two-numbers.py | f9ebe10af8d681949ace78d9113b832d94dbc384 | [] | no_license | liruochen1998/lc | 4b32d9ce05048858628ae6163cc0f3487223b666 | 8a04c6c53feaefed6376c70cf8063a300a3b85b0 | refs/heads/master | 2020-04-30T09:27:41.850579 | 2019-09-23T00:18:06 | 2019-09-23T00:18:06 | 176,747,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | #
# @lc app=leetcode id=2 lang=python
#
# [2] Add Two Numbers
#
# https://leetcode.com/problems/add-two-numbers/description/
#
# algorithms
# Medium (30.60%)
# Total Accepted: 795.2K
# Total Submissions: 2.6M
# Testcase Example: '[2,4,3]\n[5,6,4]'
#
# You are given two non-empty linked lists representing two non-ne... | [
"liruochenv@gmail.com"
] | liruochenv@gmail.com |
00609455e8b9cf838c4f51da7dbb1f2d844d980a | 37bdd47e37ba53bc856b90d2ed313ef6a9446321 | /main/AREA/area.py | 293ceda6e4fc572dffbce9709237b9b4851c01aa | [
"BSD-3-Clause"
] | permissive | TSG405/Unit-Converter | 07823a4be4a3d4314693473ce79c39edd65eb6c6 | 98bdedc8130614ef41ba775b67488fb93df4b2da | refs/heads/main | 2023-02-19T09:09:13.636394 | 2021-01-10T07:20:25 | 2021-01-10T07:20:25 | 322,889,559 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | # LOGICAL FUNCTION
def convert_SI(val, unit_in, unit_out):
# WITH BASE "SQUARE-METRES"...
SI = {'s-km':1000000, 's-mile':2590000, 's-m':1.0, 'hectare':10000, 's-yard': 0.836127, 's-ft': 0.092903, 's-in': 0.00064516, 'acre': 4046.86}
return (float(val * SI[unit_in] / SI[unit_out]))
# DRIVER FUNC... | [
"noreply@github.com"
] | TSG405.noreply@github.com |
044453674225f4f7f80b35df6406430f80efa084 | cdf99a1d50ef2eae92736aa387e8c9766784d717 | /src/player.py | c818172979b4e3b825ed4f346703395370eaa7aa | [] | no_license | JoseLooLo/Defeat-the-Night | aea81a0d39daa88f57091584389abb776d87c128 | 61262b18dbd72479a16d5702a9875a627910bd81 | refs/heads/master | 2020-05-17T21:34:12.866871 | 2019-06-22T17:29:43 | 2019-06-22T17:29:43 | 183,975,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,178 | py | import os, sys
import pygame
import time
from src.colision import Colision
from src.weapon import Weapon
class Player(pygame.sprite.Sprite):
def __init__(self, settings, camera, playerID):
pygame.sprite.Sprite.__init__(self)
self.settings = settings
self.playerID = playerID
self.camera = camera
self.weapon... | [
"joseloolo@hotmail.com"
] | joseloolo@hotmail.com |
5fdb4b233dd4fdfcfd42200e296d2938286f979a | f3c27ed7c4e2b9f4df497f7371cfd585d3b0bba4 | /Submissions/team_forecast/Bits and Pieces/Step10.py | 74e41bdb80def8d4b3182b5cb0f5c6cea284df5d | [] | no_license | genoonan/homework-genoonan | f69c7e0a6bd744d8d960fdf7c689b0afa9af09a8 | a4bd1e5ab73d2185668a6d2c333cd64c4a487b97 | refs/heads/master | 2023-01-27T22:07:37.471752 | 2020-12-08T12:41:05 | 2020-12-08T12:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,559 | py | # %%
# Import the modules we will use
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
import datetime
import urllib.request as req
import urllib
import scipy
# %%
def weekly_min1(month1, day_more, day_less):
'''Function (weekly_min1):
... | [
"gillianerin@gmail.com"
] | gillianerin@gmail.com |
9164ce0de0c4b054d9f1697160fdb022c4602817 | d68554f9194e949020c62af92ad94c1ce137a29a | /web/hello.py | 8bde944011b0e44cf89e50e69b61b8689799137a | [] | no_license | 7colorlotus/pythonLearn | f60c9cbc0be0a42f3676f59cbdabe1e7947c8527 | e4e6a0d1ad3d389002cb96b8367618b32d5be4e8 | refs/heads/master | 2020-05-22T06:57:39.084279 | 2019-07-19T07:11:08 | 2019-07-19T07:11:08 | 64,715,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #hello.py
def application(environ,start_response):
start_response('200 OK',[('Content-Type','text/html')])
body = '<h1>Hello,%s!</h1>' % (environ['PATH_INFO'][1:] or 'web')
return [body.encode('utf-8')]
| [
"626477293@qq.com"
] | 626477293@qq.com |
d5d74faabbe533b0b669c36f2c141f32fc8b63aa | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/arrays/categorical/test_analytics.py | 6aa36525fd6980d29cb1249c01c9b0434bf179be | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 14,794 | py | import re
import sys
import numpy as np
import pytest
from pandas.compat import PYPY
from pandas import Categorical, Index, NaT, Series, date_range
import pandas._testing as tm
from pandas.api.types import is_scalar
class TestCategoricalAnalytics:
@pytest.mark.parametrize("aggregation", ["min", "... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
9c42d50f0f0b0b1619ddb3499c1f61feff741ba5 | 5453391441c10fa474a565bbb044b9448e8aeda5 | /tests/invalid_snippets/semicolon.py | 8fa9fe5ceefbb9151fa838e44046eadb163611b7 | [] | permissive | deeplook/pyteen | 9778f3d510c8a6e3052566c5d7994797c20c855e | dc1b2e430d8ce0528544f1cf8dc8c6c1b1acc2ef | refs/heads/master | 2022-12-15T14:33:31.507934 | 2020-07-22T17:19:52 | 2020-09-06T14:11:43 | 281,739,027 | 2 | 0 | MIT | 2020-08-09T21:17:17 | 2020-07-22T17:16:01 | Python | UTF-8 | Python | false | false | 135 | py | # This is invalid because it has semicolon(s).
# The following comment is to make "black" skip any reformating:
# fmt: off
pass; pass
| [
"gherman@darwin.in-berlin.de"
] | gherman@darwin.in-berlin.de |
2b2c376870f94639e8fbc6fbeeed5da072e92f03 | 8ee93a9093150e6b1984e4630c17eaf3d948ee87 | /server.py | e4260daaff217d71edd612fe9cb5ad81e7d90d9c | [] | no_license | bensalkield/Photo-Frame-Controller | 7ecb2be0166919f46ed639a586fc513190083775 | 4c64cea107d64cf0b0a07aa42ce55332795cf4bb | refs/heads/master | 2020-07-15T01:25:25.969482 | 2019-08-30T19:48:25 | 2019-08-30T19:48:25 | 205,447,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | import cherrypy
import os.path
import time
import subprocess
from os import listdir
from jinja2 import Template
import sys
def load_template(path):
with open(path, 'r') as f:
return Template(f.read())
def display_photos(path):
photos = [os.path.join(path, f) for f in listdir(path) if os.path.isfile(os.p... | [
"benjaminsalkield@benstation.connect"
] | benjaminsalkield@benstation.connect |
a7eaaf704b1ca43d729d3db96987a74947dc2a7e | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/dashboards/admin/networks/urls.py | 4cd1b60079c3d722609128d7ad46956075f117f1 | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | # Copyright 2012 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
478e33139e3bc44a7eca1b0d21226643e584e4a6 | bf0bf48bf94672c952a204c9a74c1b508a898293 | /tests/test_nnrf.py | 2bd5b17a920ef10b64c3a6650b715263842daea9 | [
"BSD-3-Clause"
] | permissive | paradoxysm/nnrf | dcb9b7e764275841ace606b56f7ba2f260bac226 | 4d83e7c03dffd564d6856ff963c7aa85bb96c73c | refs/heads/master | 2022-08-02T12:32:42.315918 | 2020-05-22T02:16:35 | 2020-05-22T02:16:35 | 262,668,598 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | import pytest
import numpy as np
from sklearn.datasets import load_breast_cancer, load_iris
from nnrf import NNRF
dataset = load_breast_cancer()
data = dataset['data']
data = (data - np.mean(data, axis=0)) / np.std(data, axis=0)
min, max = data.min(axis=0), data.max(axis=0)
data = (data - min) / (max - min)
target = ... | [
"jeffreyc.wang@mail.utoronto.ca"
] | jeffreyc.wang@mail.utoronto.ca |
7b988acb4a602789c8db156a458b749d69b1e0fa | d7824dc42ac64fcc3c785fed8ff2c7d287945456 | /setup.py | 802d0923ba1d755c679baca4d67114deb6a06777 | [] | no_license | astrosat/dat-utils | 363f262ad366ce18c4db7f666d5d6a58b1880502 | 5bee23c0a3e76b786aaf53e36ad3222a36c6f11c | refs/heads/master | 2023-04-25T21:58:40.016488 | 2021-05-26T12:38:13 | 2021-05-26T12:38:13 | 239,556,126 | 0 | 0 | null | 2021-05-26T12:38:14 | 2020-02-10T16:19:01 | Python | UTF-8 | Python | false | false | 1,214 | py | import os
from setuptools import find_packages, find_namespace_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.md")) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# dynamically... | [
"allyn.treshansky@gmail.com"
] | allyn.treshansky@gmail.com |
881d43562a8e3903e35292bc3823831af8a8f2b3 | 43ef9e99db7596655cc9e726800ddc3efc2ddff1 | /AscendingPattern.py | fdf3b332573855a7ca9acbd809f67f129ae6d5b2 | [] | no_license | sikinder/Python-Projects | 790da09e72428daa2ad2c0280d257eef0da64afc | 58bea1f604f0253aceff18a2bede8f5ff6c759e2 | refs/heads/master | 2021-06-23T17:12:32.228287 | 2021-01-22T15:30:41 | 2021-01-22T15:30:41 | 183,131,442 | 0 | 0 | null | 2019-04-24T02:54:48 | 2019-04-24T02:27:02 | Python | UTF-8 | Python | false | false | 177 | py | lines = int(input("Enter lines for pyramid: "))
space = " "
star = "* "
for i in range(0,lines+1):
print((lines+1)*space, end = '')
print(i*star)
lines = lines - 1
| [
"sikinderbaig@gmail.com"
] | sikinderbaig@gmail.com |
a1c5733dbc7160a32ce830d02b4fdf2f96a3a2fa | cab96d3588f188e22798ddfd43ec153b7f472a2a | /code/wkmeans/main.py | 86e17afd3535d0f8bce899aaabffcb5818c398a5 | [] | no_license | aligator4sah/TAME | 79308b41ffa5a9e5ae5df5376942a769612a591b | a1fe28d997fb463d5ad9c85b7aee7cebbbb89f29 | refs/heads/master | 2023-08-19T06:21:50.738544 | 2020-12-17T01:33:01 | 2020-12-17T01:33:01 | 680,073,183 | 0 | 0 | null | 2023-08-18T09:22:10 | 2023-08-18T09:22:05 | null | UTF-8 | Python | false | false | 2,324 | py | # coding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import os
import sys
sys.path.append('../tools')
sys.path.append('../imputation')
import copy
import time
import numpy as np
from sklearn import metrics
from sklearn.cluster import spectral_clustering
import random
import json
from glob import glob... | [
"1094990538@qq.com"
] | 1094990538@qq.com |
3b09f9cd2a8533357819a76a96b46897eb6cbcd3 | 7939b7ab91519d1f88656847174207a76ee4c1d5 | /Python Programs Fall 2018 /Assignments/M6-A6/testBankAccount.py | f79baa223e305a4df9c3adcee3746f0720a85d31 | [] | no_license | eliefrancois/Python | 832d8f9a66a9f7d93d6bf153ac71cad9f1c6691f | f5ac08caaeecdb1d4f347451be33a8314ebc9d06 | refs/heads/master | 2020-08-08T05:03:14.486647 | 2019-10-08T18:48:24 | 2019-10-08T18:48:24 | 213,724,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import bankAccount
import datetime
myObject = bankAccount.bankAccount(123456,10000,2.5,datetime.datetime.today())
myObject.withdraw(3500)
myObject.deposit(500)
print(myObject.getBalance())
print(myObject.getMonthlyInterest())
print(myObject.getDateCreated().strftime("%a %b %d %H:%M:%S %Z %Y"))
| [
"noreply@github.com"
] | eliefrancois.noreply@github.com |
e6189bce06455473f3b957791389e8dc1850167b | 197c7d084aec186c0335637b005a4dc99bb18e3a | /initial/singly_linked_list/singly_linked_list.py | 957ae5688219659f6c0a908b10944c21bfddffec | [] | no_license | Aszalea-Calderon/cs-py-data-structures | 521bda53c6bf2af11104093de0c3f3b3d41b43e2 | abbe10c85d85d078bc316019434f39da00dbcf85 | refs/heads/main | 2023-03-05T06:40:14.302740 | 2021-02-08T18:55:59 | 2021-02-08T18:55:59 | 337,243,989 | 0 | 0 | null | 2021-02-09T00:01:36 | 2021-02-09T00:01:35 | null | UTF-8 | Python | false | false | 2,109 | py | class Node:
"""
A class representation of a DoublyLinkedList Node.
Each Node will store
(1) a value (could be of any type) and
(2) a reference to the next_node Node in list.
"""
def __init__(self, value):
self.value = value
self.next = None
def __repr__(self):
... | [
"chaz-kiker@lambdastudents.com"
] | chaz-kiker@lambdastudents.com |
c88ac0275bde4912997ca35567020060cd5e0c47 | a8b678342127aff21759b5b877d00c94234f7f7e | /Module.py | 26ca99ebb7222221b8e5dd36078f0c74b8040016 | [] | no_license | sonkute96/hocPython | 099c6909b64f8f49e19ec7586d95ef3588bcd2e5 | bba1e90dbe8fd12ed4632a06f3c3815ea12d0988 | refs/heads/master | 2021-01-25T00:55:55.369391 | 2017-06-18T15:48:15 | 2017-06-18T15:48:15 | 94,696,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | class Song(object):
def __init__(self, lyrics):
self.lyrics = lyrics
def sing_me_a_song(self):
for line in self.lyrics:
print line
happy_bday = Song(["happy birthday","hello son"])
happy_bday.sing_me_a_song()
| [
"phamson@Phams-MacBook-Pro.local"
] | phamson@Phams-MacBook-Pro.local |
8b1336a8a8e9dcca112c2c475884faf365aae111 | 852dae69fda38885bc87efa3f30fc5244ba10896 | /Documents/pythoncode/webscrapping_prax.py | 8acfddb24dbbff7b7ce535d73f965d00763e3895 | [] | no_license | brandon-todd/alien_invasion_game | 5c9bb6d5fd2e570ee1e01e16854d2aad6c8cce10 | c1c2ade8ad17fd37e5d4193251e313cca16903bc | refs/heads/master | 2023-03-15T01:51:02.941347 | 2021-03-18T20:11:54 | 2021-03-18T20:11:54 | 337,286,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import json
import selenium
from selenium import webdriver
import time
import io
import schedule
import tim... | [
"brandon-todd@users.noreply.github.com"
] | brandon-todd@users.noreply.github.com |
05edffa7e780d484e73b82f8ab0728af5e752681 | abbe7809ab9c3915b40e67f87dd5ff109a0bfa75 | /Curso em vídeo/Ex 009 - tabuada.py | e886040a4baf5a03dd2a58127b02140cce9c21f9 | [
"MIT"
] | permissive | Ianashh/Python-Testes | 0c3428a6195d9fbaff6c03a244faf0bbb35f6004 | 83d9e2775833272279b52320f141d759ec952858 | refs/heads/main | 2023-07-22T10:38:22.662317 | 2021-09-02T06:41:50 | 2021-09-02T06:41:50 | 381,902,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | n = int(input('Digite um numero para ver sua tabuada: '))
cores = {'limpa':'\033[m',
'vermelho':'\033[31m',
'verde':'\033[32m',
'amarelo':'\033[33m',
'azul':'\033[34m',
'lilas':'\033[35m',
'ciano':'\033[36m'}
formatação = {'negrito':'\033[1m',
'sublinh... | [
"82633785+Ianashh@users.noreply.github.com"
] | 82633785+Ianashh@users.noreply.github.com |
3ca35f3537a824472f63b7833626c34abcf1e3e6 | befafdde28c285c049b924fa58ce6240a4ae8d3c | /python_solution/Backtracking/40_CombinationSumII.py | 3c2f5d5b703d0d38f2bbe30c891c104f20adad1e | [] | no_license | Dimen61/leetcode | 3364369bda2255b993581c71e2b0b84928e817cc | 052bd7915257679877dbe55b60ed1abb7528eaa2 | refs/heads/master | 2020-12-24T11:11:10.663415 | 2017-08-15T14:54:41 | 2017-08-15T14:54:41 | 73,179,221 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | class Solution(object):
def combinationSum2(self, candidates, target):
"""
:type candidates: List[int]
:type target: int
:rtype: List[List[int]]
"""
enable_lst = [False for i in range(target+1)]
enable_lst[0] = True
candidates.sort()
f... | [
"dimen61@gmail.com"
] | dimen61@gmail.com |
ab2af8fd45aea04162d59882a3ea970e181727bc | 7bcb08ac43dc6eaca141a0259c33d057d3ec8fd4 | /app.py | 7f7abde535203b00bc2bc0af799b1197ab241215 | [
"MIT"
] | permissive | Salvador1994/Sistema_Bottle | 133a585fd69a8797eb92ec98d978b6d7d15f5f4b | 4ff8a39e7e7f5cf678070cf00e38b05ad2ced654 | refs/heads/master | 2020-04-03T10:32:57.655145 | 2018-10-29T11:13:39 | 2018-10-29T11:13:39 | 155,196,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from bottle import route, run
from bottle import request, template
from bottle import static_file, get
from bottle import error
import os
# static routes
@get('/<filename:re:.*\.css>')
def stylesheets(filename):
return static_file(filename, root='static/css')
@get('/<filename:re:.*\.js>')
def javascript... | [
"noreply@github.com"
] | Salvador1994.noreply@github.com |
2cfaa7079668d65dafd05f8f281097e1876581ab | 9a7f865d0128319183cb43b05fbbb76d2366a1c9 | /sluggen/migrations/0001_initial.py | e0cc4cf0130f8e914ced082f1a2dec4c107784fe | [
"MIT"
] | permissive | colonoh/longcat | 5bed18237c78e76222126e90ae16706b4dec9070 | d5d6044517b36a1e48ba79836ddb43793da0f91b | refs/heads/master | 2021-10-08T05:50:49.844173 | 2020-04-24T05:58:09 | 2020-04-24T05:58:09 | 253,127,249 | 0 | 0 | MIT | 2021-09-22T18:50:13 | 2020-04-05T00:43:12 | Python | UTF-8 | Python | false | false | 829 | py | # Generated by Django 3.0.5 on 2020-04-12 01:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Slug',
fields=[
('id', models.AutoField(aut... | [
"steve.j.warner@gmail.com"
] | steve.j.warner@gmail.com |
68ea54b45f3ec24b7664171fa63a5404d46fb985 | e7143b374352cf06d2ac020bff7072563e7f99e1 | /rr.py | ceddb020257b4f88e59d7b21cdcdc593e6751623 | [] | no_license | zhouguangying1/test | 3373bc2c8537ec6af56028ce3aa3230c54b1e319 | b76004b5de0e835a269278db715536f54252dee4 | refs/heads/master | 2022-12-30T01:10:57.615909 | 2020-10-18T09:56:29 | 2020-10-18T09:56:29 | 305,017,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | print('test4444444')
| [
"394973674@qq.com"
] | 394973674@qq.com |
6ca24cbab5b079882c41eb88ffe91a506f7f9f9b | 4e3231ea01eeb45d2e357841a1874c68bce5fdb9 | /number_guess.py | c265efeff97eaa938a2eddec1f1b6050bd3e8f1d | [] | no_license | J4Jeffort/Jeffort | 85fbad0f583a3e9be767777a2b6feae9415174e4 | 027bcff69a2ea78434184fc2f07951e649c803b4 | refs/heads/main | 2023-03-13T19:48:04.543359 | 2021-03-06T05:45:38 | 2021-03-06T05:45:38 | 324,704,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | from random import randint
from number_guess_art import logo
easy = 10
hard = 5
#Function to check user's guess against actual answer.
def check_answer(guess, answer, turns):
"""checks answer against guess. Returns the number of turns remaining."""
if guess > answer:
print("Too high...")
return... | [
"noreply@github.com"
] | J4Jeffort.noreply@github.com |
2ac8a07f272d1eb7508a454f238f56c51236845b | 5f918e33bd1bf13b74b0bf36e8b56d4599fef719 | /contrib/devtools/update-translations.py | ea23131b5a7733fb1f95e0a0fa2637caf38662c4 | [
"MIT"
] | permissive | RareShares/RareShares | 37cfc84993813b62d92467490cb0f23f0ad25d98 | 106421188cf0feee76f364e205eeb9d4ea32e99e | refs/heads/master | 2021-01-25T14:22:23.509429 | 2018-03-10T13:41:26 | 2018-03-10T13:41:26 | 123,686,817 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,664 | py | #!/usr/bin/python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Run this script from the root of the repository to update all translations from
transifex.
It will do the following... | [
"raresharesoffical@gmail.com"
] | raresharesoffical@gmail.com |
8c951a4ff5799e9f19a66c7679c2cbb6760522b1 | 593ecc21a7164ec293f23d75423e71ab3d9f3c54 | /LC29.py | 4851f8eb59c6ba7f464b3e832b78b17bb3b30c3a | [] | no_license | luckmimi/leetcode | e297c11960f0c72370523e5594d789bc4d55cf7c | 2257c6202e823a5cd71b630441c430f1bd08a896 | refs/heads/master | 2022-07-11T22:36:02.634148 | 2022-06-30T22:57:20 | 2022-06-30T22:57:20 | 214,880,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | class Solution:
def divide(self, dividend: int, divisor: int) -> int:
sign = -1 if (dividend < 0) ^ (divisor < 0) else 1
a = abs(dividend)
b = abs(divisor)
res = 0
while b<= a:
mul = 1
tmp = b
while a >= (tmp <<1):
... | [
"noreply@github.com"
] | luckmimi.noreply@github.com |
8353ef4acb242fe986fdb33c56b988044cd5b5a2 | b0c38490e306ba76b5d8509feb902b9cfb1f6c3c | /0007.ReverseInteger.py | 50240080df86bd10c6a3d818e57aaf6c73b3142b | [] | no_license | hopkeinst/leetCode | d67234983a5c92aa1e2a1ed986c82bc8ab4edee7 | e43d23f9581f6a13c59b558f4d04e2f469eb146e | refs/heads/main | 2023-06-08T15:14:25.827666 | 2021-06-22T17:53:40 | 2021-06-22T17:53:40 | 379,353,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class Solution:
def reverse(self, x: int) -> int:
if x < 0:
x = x*(-1)
strInt = str(x)
strInt = strInt[::-1]
y = (int(strInt))*(-1)
else:
strInt = str(x)
strInt = strInt[::-1]
y = int(strInt)
minimo = (2**31)... | [
"hopkeinst@gmail.com"
] | hopkeinst@gmail.com |
5fd1184dce2377d92e2ff473b987d718c97bf42f | 5bd3122d230471b048429f5e9c49a0b39c8a54fc | /Atcoder_contests/ARC/R102A.py | 5e0b5a9bf32372b1adfd5381f0b6c1bc75432986 | [] | no_license | nao1412/Competitive_Programing_Codes | e230e2fa85027e41c5ee062083801bb299effe9b | 98c29b5ba75e75502cf27fcf365a7aedcd6c273c | refs/heads/main | 2023-06-05T18:45:59.733301 | 2021-06-23T15:02:25 | 2021-06-23T15:02:25 | 374,061,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | import sys
sys.setrecursionlimit(10**7) # 再帰回数を増やす
import math
def I(): return int(input())
def LI(): return list(map(int, input().split()))
def MI(): return map(int, input().split())
def S(): return input()
def LS(): return list(map(str, input().split()))
def H(n): return [input() for i in range(n)]
mod = 10**9 + 7
d... | [
"naoya_greeeen_0720@icloud.com"
] | naoya_greeeen_0720@icloud.com |
2c40659ad32ee2fff91d40dfffe5d5e7891e4a47 | fc7d6fa5267d2770e4ddb327da048811a3f5ba11 | /echo/tests.py | 551ff1913cfe0e4eddffcf95e0c06b906ad12cb1 | [
"MIT"
] | permissive | Xorcerer/cookiecutter-playground | ba53af3b276f15eed5167c60517213b7a5a6e84f | 6b58f5437ef06127f4cb4e8ce510d77cb45b7b69 | refs/heads/master | 2021-04-09T17:15:19.539970 | 2018-03-20T15:14:41 | 2018-03-20T15:14:41 | 125,874,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | import json
from django.test import TestCase
# Create your tests here.
class EchoViewTestCase(TestCase):
def test_echo_basic_call(self):
response = self.client.get('/api/v1/echo?msg=hello-world')
self.assertEqual(response.status_code, 200)
content = json.loads(response.content)
self... | [
"xorcererzc@gmail.com"
] | xorcererzc@gmail.com |
b78816d355385165c2d46725802b6c6001eae314 | b1c99061474c4e2f2653f6f3d83931c949c58b13 | /Basic/chapter3/ReplaceTest.py | 1f7aca0428b31758f691b5eb62156031c05dd93f | [] | no_license | hyperaeon/python | df75346040a5ccc588e21b0d761493c59e1a4fe3 | 21d10ef7af3227d29092a6720666c0db8e418ec4 | refs/heads/master | 2016-09-14T08:58:53.794960 | 2016-04-26T05:34:56 | 2016-04-26T05:34:56 | 57,100,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | __author__ = 'hzliyong'
cookie = '_da_ntes_uid=3LhpAfObU48aiOR0b28yZYXv;'
cookie = cookie.replace(';','')
print(cookie)
list
type = 'a'
if type == 'a':
list = 'type a'
if type == 'b':
list = 'type b'
print(list) | [
"hzliyong@corp.netease.com"
] | hzliyong@corp.netease.com |
35864f483211ec58d910fa7a044c9451e6081165 | c6dcf176b57c2d7f55d758ae41c13898ac691353 | /Quikok/amigo/migrations/0001_initial.py | 0f187487bf27080960c482cf677fd52b8267c0c5 | [] | no_license | chikuku/QUIKOK | 137c4ed5bb902bee1864c1786f3a2fa8658a1ac0 | 7a292671a355ae58f3889036d8da199b3801d321 | refs/heads/master | 2023-05-29T15:39:28.764786 | 2021-05-19T13:57:11 | 2021-05-19T13:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # Generated by Django 3.1.5 on 2021-03-17 14:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='exam_bank_sales_set',
fields=[
('id', model... | [
"tamio.chou@gmail.com"
] | tamio.chou@gmail.com |
b7b297c84c0c3d1db89a06f2929ee93d987e0691 | eab1abf41e3e1bd276258be7aedfb4f2dfcc1b1e | /web/mydjango/geoapp/admin.py | 3d75606cf3e3ff9b2630865dc8782c03b65cc335 | [] | no_license | javiermaly/docker-python3-django2-postgres-postgis-geodjango-nginx | 1732e0df8d1bd4624b3385ac6757b48060814814 | 8ea5f2c9ed90013bab76b468d44e7cbabf8122f6 | refs/heads/master | 2021-11-25T14:47:09.901801 | 2018-03-26T01:03:39 | 2018-03-26T01:03:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from django.contrib import admin
from .models import GeoAlgo
@admin.register(GeoAlgo)
class GeoAlgoAdmin(admin.ModelAdmin):
list_display = ['nombre']
search_fields = ['nombre'] | [
"andres@data99.com.ar"
] | andres@data99.com.ar |
a844d9a4c5e02b4c709aab42b1439a95c95de7e6 | 4e5eb9d9273bc85fc8464393ae7a96a40dc6f37f | /contacts/app/migrations/0001_initial.py | 2dd8376e947f09b461173442e79c469ad513a4af | [] | no_license | Vaishali1219/contacts | de5acddd084b5a71554139ee07cc26638fa29dde | 2dd3c86f280dbd3018ca2950c6916c354f29ad5e | refs/heads/master | 2022-12-04T14:33:47.117406 | 2019-10-27T11:18:06 | 2019-10-27T11:18:06 | 217,843,907 | 0 | 0 | null | 2022-11-22T04:46:50 | 2019-10-27T11:18:30 | Python | UTF-8 | Python | false | false | 855 | py | # Generated by Django 2.2.4 on 2019-10-23 15:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(... | [
"46643151+Vaishali1219@users.noreply.github.com"
] | 46643151+Vaishali1219@users.noreply.github.com |
3c0948318554ab6edf9a4f53a5192b3d04e696dd | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/profile_2018_03_01_hybrid/network/vnet_gateway/_list_learned_routes.py | 789b238597180231c9dcdc90049d592a0ae04769 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 6,877 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e7d33cb382cca997ef56c3849ba3489bc73be785 | fd90b8efa1daaec44b54797e549e0f738f4a5897 | /jianzhioffer/16. 数值的整数次方.py | b6c886f4358eab1f50ae4aa820f45932b011e28a | [] | no_license | ddz-mark/LeetCode | 2a622eeb655398ca9ebd9feee93a52cd114a77c4 | d557faf87374ad8c65634ee9d9e572b88a54913a | refs/heads/master | 2021-07-12T06:58:57.162657 | 2021-04-18T13:25:03 | 2021-04-18T13:25:03 | 244,403,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | # 实现函数double Power(double base, int exponent),求base的exponent次方。不得使用库函数,同时不需要考虑大数问题。
#
# 示例 1:
#
# 输入: 2.00000, 10
# 输出: 1024.00000
# 示例 2:
#
# 输入: 2.10000, 3
# 输出: 9.26100
# 示例 3:
#
# 输入: 2.00000, -2
# 输出: 0.25000
# 解释: 2-2 = 1/22 = 1/4 = 0.25
# 思路一:优化方法,将指数分为奇数和偶数,偶数的话可以 x=x*x
# 判断奇偶的方法:对于(m+n) & 1,若结果为0,则(m+n)是偶数;若结... | [
"dudaizhong@126.com"
] | dudaizhong@126.com |
02b17aabc9903be3583d686b43c3f0bb89d31eb6 | 757583830dd0fd637841f63374dd932a18cd314c | /tests/test_math_service.py | 3e81dc65e1027eebec5bd23f114abbcaa51d17b8 | [] | no_license | garmstrong87/mathservice | ec3dd038af7e61b70c8ee9014f1e2cdf2716f0bb | e311d50649cecc9fbae460c61d23fb327785dcf6 | refs/heads/master | 2016-09-05T15:22:49.797492 | 2013-12-14T16:40:17 | 2013-12-14T16:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,986 | py | #
# test_function_service.py - Perform unit tests to validate mappings and responses for the service.
#
import unittest
import json
from flask import Flask
import mathservice
import MathServiceError
class TestServiceFunctions(unittest.TestCase):
def setUp(self):
self.app = Flask(__name... | [
"glenn@development.(none)"
] | glenn@development.(none) |
a30be694eca63a88eff2b727822bab6367cf71fe | d0dfd680e92e9b32f24e6e034571ad4323a58103 | /src/yeahml/information/write_info.py | e25421e67c2746d55a8337851f10397129d59851 | [
"Apache-2.0"
] | permissive | yeahml/yeahml | 6d1523d01300532f19c54d8e9c320420df66ee5c | b51faff6625db5980151a4a5fac7bb49313df5c1 | refs/heads/master | 2023-08-11T16:49:41.181953 | 2020-11-14T20:33:58 | 2020-11-14T20:33:58 | 137,613,449 | 4 | 1 | Apache-2.0 | 2023-06-02T18:45:48 | 2018-06-16T22:11:19 | Python | UTF-8 | Python | false | false | 1,138 | py | import json
import pathlib
from typing import Any, Dict
def write_build_information(
model_cdict: Dict[str, Any], meta_cdict: Dict[str, Any]
) -> bool:
full_exp_path = (
pathlib.Path(meta_cdict["yeahml_dir"])
.joinpath(meta_cdict["data_name"])
.joinpath(meta_cdict["experiment_name"])
... | [
"jackbburdick@gmail.com"
] | jackbburdick@gmail.com |
1f17b50472da33c1556fc91a3bb78c6d64b9f62a | 997b9c4a79be49f3b1077d8a41f240c2e858bd58 | /src/.pycharm_helpers/docutils/statemachine.py | 317624e693c29d4ee186c792a60d52dd525b1a88 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | akiokio/centralfitestoque | 746b46c2e197b2fdfd84cb52e6e39962ae951984 | 7de35908852fb8e5e24720a37f4f4063c6c52be2 | refs/heads/master | 2020-05-17T02:48:48.433499 | 2013-11-10T14:00:46 | 2013-11-10T14:00:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,006 | py | # $Id: statemachine.py 6388 2010-08-13 12:24:34Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A finite state machine specialized for regular-expression-based text filters,
this module defines the following classes:
- `StateMachine`, a state m... | [
"akio.xd@gmail.com"
] | akio.xd@gmail.com |
0beec97f573151df61de82f9967c3d1b03d1668c | 46a1ff4b289e95691b7525cb4b6b1e5688c58f55 | /users/migrations/0017_auto_20180411_2134.py | 6c695bf0313e39afda5a16dbaf00ce4719d20d29 | [] | no_license | hakujyo/blogproject | cc1293a9fe8bee283d9a9ea7abb90f7e2ef40629 | 3aa1c680bde9eb2249d96a0028a135305cc5863d | refs/heads/master | 2021-09-15T00:28:21.445134 | 2018-05-22T20:32:57 | 2018-05-22T20:32:57 | 114,651,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # Generated by Django 2.0 on 2018-04-11 13:34
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0016_auto_20180411_1603'),
]
operations = [
migrations.AlterField(
model_n... | [
"hakujyo0518@gmail.com"
] | hakujyo0518@gmail.com |
33ee38e07d156d430139a621d07d3c3ca342f8c7 | 3c6b74eaeacb72a4de4af17eeab76889a78c5b56 | /tensorflow/testClassify.py | 24b6d069785414f3040dabff98ad31c0c1b79356 | [] | no_license | tkz1996/selfdrivingcar | 86aaad9b43e9b1fb2a261b9fcf56bc4a8e05de72 | 928bc11797036deb46342e5ca5cb990d38ebabe6 | refs/heads/master | 2023-06-16T14:16:58.350637 | 2021-07-16T15:45:43 | 2021-07-16T15:45:43 | 338,084,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import tensorflow as tf
from tensorflow import keras
import numpy as np
from cv2 import imread, IMREAD_GRAYSCALE
pathToFolder = 'laneDirectionModel/'
model = keras.models.load_model(pathToFolder)
model.summary()
image = imread('test.jpg', IMREAD_GRAYSCALE)
image = np.expand_dims(image, -1)
image = np.expand_dims(image... | [
"tkz1996@live.com"
] | tkz1996@live.com |
f60472dc9f2c47ee9077d7de07554b3dae6f0215 | 5c72f7709e501bd0ca3c5dc1e1f21cfffda13582 | /rebench/model/measurement.py | 40af4d69df6564115af83afce35a6769e7585c55 | [] | no_license | lhoste-bell/ReBench | 74ccb400aa5f262b56659afac3b7db873bd6a8d2 | 0f5c678b045b5208e9a2bed01629c780bef52da5 | refs/heads/master | 2021-01-17T07:57:14.440676 | 2016-05-23T19:25:58 | 2016-05-23T19:25:58 | 60,706,933 | 0 | 0 | null | 2016-06-08T15:06:26 | 2016-06-08T15:06:25 | null | UTF-8 | Python | false | false | 2,563 | py | # Copyright (c) 2009-2014 Stefan Marr <http://www.stefan-marr.de/>
#
# 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 without limitation the
# rights to use, cop... | [
"git@stefan-marr.de"
] | git@stefan-marr.de |
ce4e263dde23b1fdcc64494a2f9403ddfdfb1d07 | f5f40cee05de885ee059bcf4760e16f3f01ed23c | /ims/exceptions.py | c359b0a8626603fd8084e35af12b1dcce84a8c5e | [] | no_license | MarsWizard/imagebank | 68693207d71024bd0cdc608984d80fc0c7b6f751 | 916a9f087194052e77751fd8d52c930e77a7b04d | refs/heads/master | 2021-04-17T16:57:55.356760 | 2020-10-20T05:34:23 | 2020-10-20T05:34:23 | 249,460,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | ERROR_OBJECT_NOT_FOUND = 10001
PARAMETER_REQUIRED = 10002
INVALID_IMAGE_FILE = 10003
class ImsException(BaseException):
def __init__(self, error_code, error_msg):
self.error_code = error_code
self.error_msg = error_msg
class InvalidImageFile(ImsException):
def __init__(self):
... | [
"pbleester@gmail.com"
] | pbleester@gmail.com |
477f89560ab67fce9dddcc436863915129dc25bd | 707bd0e873ae25146f1341b40d8efbf5134025af | /unifypage/migrations/0004_auto_20161021_0933.py | 781e95f7baa886a438135233d4469070f9415423 | [] | no_license | yosmangel/djangoLn2x | 76acd748adfddb5b21ad3e0342e3d7eb19b81bc9 | 24d068458e8271aacfa98d762c0dc117e65d41cf | refs/heads/master | 2021-04-27T07:55:36.488176 | 2017-06-01T17:48:26 | 2017-06-01T17:48:26 | 122,641,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-21 08:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('unifypage', '0003_auto_20161020_1746'),
]
operations = [
migrations.RemoveF... | [
"yosmangel_yk@hotmail.com"
] | yosmangel_yk@hotmail.com |
371df3e6878cc771e173581fde70c7a4c4345bbc | 10450b2dcc29b47c9773065db3b3767481b9cbe0 | /setindex.py | 78d78fbfef2ad9044dcab693df10fb6c2c009607 | [] | no_license | YukiKis/deepage | c6ff1e18a09a5a35cc4ee8b291c008493b4c92a3 | c9d0e4a0eabd97d425d941e59765757f595ee03d | refs/heads/master | 2023-01-23T02:39:38.655383 | 2020-12-09T15:33:06 | 2020-12-09T15:33:06 | 319,202,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 7 23:36:59 2020
@author: s1430
"""
import pandas as pd
df = pd.read_csv("sample_index.csv")
print(df)
print(df.set_index("state"))
print(df.set_index(["state", "age"]))
print(df.set_index(["state"], drop=False))
print(df.set_index(["state"], append=True))
print(df... | [
"s143068@gmail.com"
] | s143068@gmail.com |
027cf4e57a5d81205b343ce7fc1c856aeb43e5f9 | 0125a43527a0cd4775aa264401360037bbadf6c2 | /load_people_assigned.py | 35938303f6bec3d955ebe4c113892b8fc3ef0b15 | [] | no_license | HsiuPing/BMSE_2_HW5 | 34d69b47e115293a1a0972c0a3caf8cdb6563533 | 0846ef0df14df09a04c7b99e998ec03873b8bd29 | refs/heads/master | 2021-04-27T00:09:18.787201 | 2018-03-04T04:55:09 | 2018-03-04T04:55:09 | 123,758,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,396 | py | """ Main program that loads related people from a file
:Author: Arthur Goldberg <Arthur.Goldberg@mssm.edu>
:Date: 2018-02-21
:Copyright: 2018, Arthur Goldberg
:License: MIT
"""
import sys
import argparse
import logging
import related_person
from related_person import Gender, RelatedPerson, RelatedPersonEr... | [
"noreply@github.com"
] | HsiuPing.noreply@github.com |
f2b7180d176b4eec46c3794ea9526f5ec48beb91 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform_v1beta1/services/migration_service/transports/base.py | 3405e5f21603a2bae9a6b0b1b8a675b832545a71 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 7,763 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
5a30388c978d42ea4fa0fd92c353044d84de3910 | 0603abc3e7936a77ef399203341d416116077865 | /cli_lic/configuration.py | e83dd2632e0a9535502deef9ddcc45cde311ee01 | [] | no_license | novvv/api_lic | 97ddbe70c1b77171a2e3820b72a02ef3eba9e12c | ad00863818c18f84b556774205119102dbefb4dd | refs/heads/master | 2020-03-31T14:14:51.267998 | 2019-04-12T10:48:32 | 2019-04-12T10:48:32 | 152,286,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,083 | py | # coding: utf-8
"""
LICENSE API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.0.19
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import urllib3
import... | [
"novvvster@gmail.com"
] | novvvster@gmail.com |
fad8117f1daed26a450221f93a2411e385332a25 | efd99210b16aa74040ae7caf938ae6843043eb37 | /community/admin.py | 381d8b709fb9a47ef17862ee11cd737978c85277 | [] | no_license | Bourkekev/ms4-power-fitness-gym | 6fd5465403e45ea0cc89650bf001a53069bc4b7a | fb4c6219a57d4ffe994739b4e80a20f12681225c | refs/heads/main | 2023-03-22T08:09:23.657835 | 2021-01-30T12:22:17 | 2021-01-30T12:22:17 | 310,539,738 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | from django.contrib import admin
from .models import MessageTopic, MessagePost
class MessagePostAdmin(admin.ModelAdmin):
"""
Create the admin interface for Messages
"""
readonly_fields = (
'message',
'topic',
'created_at',
'updated_at',
'created_by',
'up... | [
"bourkekev@gmail.com"
] | bourkekev@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.