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
213 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
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
15f12889796c5ecb7f30ca28ec747dadf39e17fb
d594383e3c570accaa79c347e6d1b864fbb28cfb
/VolumeMeter/volumemeter.py
5f33ecc870057125c3838729a1ce9aad88db0de5
[]
no_license
tiwawan/BlenderAddons
1a04173a25d5f56831747435aaf1915f645bf26a
80060b723195d173ef8ad5850dc48a180ad53077
refs/heads/master
2021-01-20T11:01:43.035102
2017-08-28T19:16:00
2017-08-28T19:16:00
101,665,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,926
py
bl_info = { "name": "Volume Meter", "category": "Object", } from bpy import * import random class VolumeMeter(types.Operator): """ Volume Meter Array active object so that it appears like a sound volume meter. """ bl_idname = "object.volume_meter" bl_label = "Volume Meter" bl_opti...
[ "suken63@gmail.com" ]
suken63@gmail.com
4df46f23c7e369d02d8672af00dd27c657d333c3
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/nic_spec.py
b40e87c841b9dc1783c70313cbd1039699834425
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
5,520
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class NicSpec: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
ad1476c4e3d727a594748fbd46e8750466f874b9
f6d7c30a7ed343e5fe4859ceaae1cc1965d904b7
/htdocs/submissions/ad1476c4e3d727a594748fbd46e8750466f874b9.py
21655121ccb580a53180397a9efc156aa7c8ae71
[]
no_license
pycontest/pycontest.github.io
ed365ebafc5be5d610ff9d97001240289de697ad
606015cad16170014c41e335b1f69dc86250fb24
refs/heads/master
2021-01-10T04:47:46.713713
2016-02-01T11:03:46
2016-02-01T11:03:46
50,828,627
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
a=''.join seven_seg=lambda x:a(a(' ||| _ ___ | |||'[ord('C0WY"KJaQR'[int(l)])/k%7::7]for l in x)+'\n'for k in(49,7,1))
[ "info@pycontest.net" ]
info@pycontest.net
6bfb3e6cebe8745750a7456252c95186cfab3ee2
c9f2f85e6eefe96bf5edc172c266055a95f90e66
/aSafeReturn/forms.py
94f20d1d898a7fbbbc03a4f18d8712687fd86e28
[]
no_license
Ewha-Cyber-Boan/safe-return-map
bfcbf47758ced7dab9e022910f04eabc116ae71e
d43e603dbde246ab147c8629dcf0277504193192
refs/heads/master
2023-03-13T05:01:02.965464
2021-03-04T02:53:33
2021-03-04T02:53:33
293,231,394
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
from django import forms from .models import FromTo class FromToForm(forms.ModelForm): class Meta: model = FromTo fields = ('start_point', 'end_point') #내가 뭘 쓴걸꺄?
[ "noreply@github.com" ]
Ewha-Cyber-Boan.noreply@github.com
0f08a7de43e780c241ac24fe25e5d88f5c7bb850
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_family.py
9f2822cabc11769355cd3ba0b30e64667849668e
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
571
py
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="icicle.outsidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_na...
[ "nicolas@plot.ly" ]
nicolas@plot.ly
6b4177842effac3d475f7fccacf398685a1c8a5d
b190f8fcff95c76d2c294e14f65e626b5c7dad4a
/IoT/test.py
9b6e726072406fbf625ebc471bb3be750481f1b7
[]
no_license
alex-perez/HackathonQualcommCUU
d9ee37a51616acf34d527fa673061bdc4067dc3b
f94af918d834a26edb3ddf3adf91e0bda0894d29
refs/heads/master
2021-01-21T05:14:00.990029
2017-02-26T17:46:08
2017-02-26T17:46:08
83,153,417
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
import random import sys import time from Adafruit_IO import * ADAFRUIT_IO_KEY = 'c71578bc27d14943ad226e958d3bf25b' ADAFRUIT_IO_USERNAME = 'homeero' aio = Client(ADAFRUIT_IO_KEY) feed = aio.feeds('status') print(feed) print feed.last_value
[ "alom.perez@gmail.com" ]
alom.perez@gmail.com
c818c6d15b368b27f9b8db5e10adefad21237701
2dfaefda5db6189910d976d16b65693a4c105981
/WindowsPostServer.py
2fc6474ef164ff0c5fcdef740309e66d71f70049
[]
no_license
Beardhammer/Scripts
71d0820def9756aaff9d85a9ff7b8b11d13e15d6
424f72eda060b080ebc1e687fcf15140c3ce299c
refs/heads/master
2023-07-15T03:09:28.951261
2021-08-17T15:43:59
2021-08-17T15:43:59
241,777,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
#!/usr/bin/env python from http.server import BaseHTTPRequestHandler, HTTPServer import os import subprocess class S(BaseHTTPRequestHandler): def _set_headers(self): self.send_response(200) self.send_header('Content-type', 'text/html') self.end_headers() def do_POST(self): content_length = int(self.header...
[ "noreply@github.com" ]
Beardhammer.noreply@github.com
9a1cf02bf209ee1cfeb2fcd8be29634a534903e2
2082ab16a853e73b1d2d443a65a4baca35d03b73
/08_conjuntos.py
4671e31af8d963b35ac2e61ad7ba49e24754f53d
[]
no_license
anbreaker/ejerciciosPythonRed
cc17bc967f2facae77f43a87ae1cd426055ceea0
94100981959ae9dc03da0b2cd5ea432e093ebaab
refs/heads/master
2020-07-31T15:41:26.550094
2020-03-01T12:08:01
2020-03-01T12:08:01
209,410,988
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
# Ejercicio: Eliminar los elementos repetidos de una lista # Los conjutos se inician con set() lista = [1, 2, 3, 'hola', 2, 1, 3, 1, 2, 'hola', 3] conjunto = set(lista) print('Ver si un valor esta contenido en el conjunto--> ', 1 in conjunto) # agregando valores conjunto.add('a') conjunto.add(5) conjunto.discard(3)...
[ "antunez19@gmail.com" ]
antunez19@gmail.com
29bd10ec417372b0ac4e5030720cf98885325eb8
c994c3cc12f21778a0e49de445391daa9a359691
/12_MultiIndex.py
f178b050c2d35cabe5de3c6316777bbe01d22378
[]
no_license
lijiahaoAA/Pandas_Study
8670a573f699ad33f3e9c8434d7ea9915bb9cf20
cb70c3e7edc72f1ba0565943451ea878cbf8d01b
refs/heads/main
2023-03-19T00:09:55.114583
2021-03-13T08:53:51
2021-03-13T08:53:51
347,316,120
0
0
null
null
null
null
UTF-8
Python
false
false
1,900
py
""" 1.分层索引:在一个轴上拥有多个索引层级,可以表达更高维度数据的形式 2.可以更方便的进行数据筛选,如果有序性能更好 """ import pandas as pd pd.set_option('display.max_columns', 1000) pd.set_option('display.width', 1000) pd.set_option('display.max_colwidth', 1000) pd.set_option('display.unicode.ambiguous_as_wide', True) pd.set_option('display.unicode.east_asian_wi...
[ "1301840357@qq.com" ]
1301840357@qq.com
d055001749d4dca196410161f61ae69f0079bc69
1f65f60cd76be07ac562fffe0a5029267c821743
/training.py
2b254f6f1c3612ce3523d69f0a8016ba53919cb8
[]
no_license
aseemk11/faceid-attendance-rpi
96820bd5f1b183d73752fd40201003f87bce1d22
5ce35b42a4d0c2224083bf9213bccf78c70b379b
refs/heads/master
2022-12-06T04:04:33.453982
2020-08-16T09:21:16
2020-08-16T09:21:16
287,910,899
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
import os import cv2 import numpy as np from PIL import Image recognizer = cv2.face.LBPHFaceRecognizer_create() path = 'dataset' def getImagesWithID(path): imagePaths = [os.path.join(path, f) for f in os.listdir(path)] faces = [] IDs = [] for imagePath in imagePaths: faceImg = Image.open(ima...
[ "kanungoaseem19@gmail.com" ]
kanungoaseem19@gmail.com
2104424623f9d0dd7ea8f1674f2b54c89dd6a27c
c6ed13f7a892dbe629e5e726f6d24bfc1fb63932
/product_attachment_website/__manifest__.py
9ed8e6141832b5d9f445945bf53b0bb9614d318d
[]
no_license
Bokanovskie/ByWatosOdoo10
f86c1f57e5836fa96bb2b1afd4ba694202438156
1f95799b6ae9b00db3770d189d3c86e27c13543f
refs/heads/master
2021-06-06T14:34:56.691765
2021-04-21T16:48:32
2021-04-21T16:48:32
143,602,099
0
0
null
2018-09-16T09:36:07
2018-08-05T10:07:49
null
UTF-8
Python
false
false
935
py
# -*- coding: utf-8 -*- { 'name': "product_attachment_website", 'summary': """ Short (1 phrase/line) summary of the module's purpose, used as subtitle on modules listing or apps.openerp.com""", 'description': """ Long description of module's purpose """, 'author': "My Comp...
[ "alexandre.matis@hotmail.fr" ]
alexandre.matis@hotmail.fr
e185e0a8d0306c187a69813419c3f2bffe3f8ef2
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/pwAdsffHkxdhSwXKc_16.py
a9d24417389bf368548a6f4fbb949210895a81fd
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
import re ​ pattern = "(\w+)(?: = )(?!yes)"
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
cbd267f435273baf1c83b60f52c26299e85dc61e
b34a7f79053e2cf312e34076a2900359f73bbedd
/ex3.py
a53c7950cbaaf448991cefff05e752d82d281983
[]
no_license
zkevinbai/LPTHW
942a10b4517bbc60a65cde323ddc7489546ac91c
66e89eb53d592c1b4f15629892544e8890bd5102
refs/heads/master
2022-12-18T14:00:10.956818
2020-09-30T07:37:56
2020-09-30T07:37:56
299,842,805
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
print "I will now count my chickens:" print "Hens", 25.0 + 30.0 / 6.0 print "Roosters", 100.0 - 25.0 * 3.0 % 4.0 print "Now I will count the eggs:" print 3.0 + 2.0 + 1.0 - 5.0 + 4.0 % 2.0 - 1.0 / 4.0 + 6.0 print "Is it true that 3 + 2 < 5 - 7?" print 3.0 + 2.0 < 5.0 - 7.0 print "What is 3 + 2?", 3.0 + 2.0 print "...
[ "lkevin957@gmail.com" ]
lkevin957@gmail.com
97d1539bed50afcef0d7e0baa3186bd2c9887471
50d331aec35c1429e0d9b68822623ee9a45b251f
/IPTVPlayer/hosts/hostfilisertv.py
14e90dce85575e0ca3901bcf74824d94a03c9321
[]
no_license
openmb/iptvplayer
cd00c693adcac426214cc45d7ae5c97b9d7cbe91
bbc3f5b6f445f83639cd1ebb5992dc737bc9023d
refs/heads/master
2021-01-17T09:58:09.202306
2017-03-26T18:19:10
2017-03-26T18:19:10
83,997,131
2
1
null
null
null
null
UTF-8
Python
false
false
19,625
py
# -*- coding: utf-8 -*- ################################################### # LOCAL import ################################################### from Plugins.Extensions.IPTVPlayer.components.iptvplayerinit import TranslateTXT as _, SetIPTVPlayerLastHostError from Plugins.Extensions.IPTVPlayer.components.ihost import CHos...
[ "samsamsam@o2.pl" ]
samsamsam@o2.pl
e2e2c312a164468145b010e07965e015adc43eb0
e5e14d0f4df35aa59c198f361192009268388d46
/Main.py
83da5cd746102af8cdb01f8988a6d77f8bcceec8
[]
no_license
LeithMerrifield/MetroCard
9a3818747f9df25ff87a0eeacece2900a4c26c66
fbf126e3dc59643dfb313f71a70706ea9eff1508
refs/heads/main
2023-07-28T06:15:41.762324
2021-09-06T11:38:12
2021-09-06T11:38:12
403,501,093
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
from Location import Location from MetroLoop import MetroLoop from Person import Person import os locationList = [] for i in range(1, 13): newStop = Location("Stop {}".format(i), i - 1, 12 - i) locationList.append(newStop) mainLoop = MetroLoop("The Frankston Line", locationList) user1 = Person("Leith") use...
[ "ldjmerrifield@hotmail.com" ]
ldjmerrifield@hotmail.com
71712e1ec15e421cb14307006faeccf69597a47d
e7a2dfdc6450ec9ac71de2c6bd96b0c7342bd48d
/fixture/contact.py
3bc5b3e9c59397dc46a893253cf8f3bd9257aa57
[ "Apache-2.0" ]
permissive
serejkansk/python_training
9f6e285e6427a30ea9d9cbd4fdfe605f5c94f432
4ffab2d66b3512154f47c988e4c6bebba49d5e32
refs/heads/master
2021-04-26T23:00:07.461769
2018-05-04T14:51:32
2018-05-04T14:51:32
123,911,243
0
0
null
null
null
null
UTF-8
Python
false
false
6,876
py
from model.contact import Contact import re class ContactHelper: def __init__(self,app): self.app = app def create(self, contact): wd = self.app.wd self.open_add_new_page() self.fill_contact_form(contact) # submit contact creation wd.find_element_by_name("subm...
[ "288serega654@mail.ru" ]
288serega654@mail.ru
5b8e1c5e7204e30c9a387b1b4b3a13bcbfc31ec3
62bb4ba665be92ab6b589b08c433d2f07dce1f37
/args/base_args.py
3d6691f05068ea1832dcabeaa96c132c1b14e135
[]
no_license
cryptowealth-technology/Neural-PDE-Solver
c396bc3e58d5ce16ae5cee46ead3074e799bd8cc
c5284896d4c40ae8f5b496a41c220027ae13580f
refs/heads/master
2022-07-22T18:22:29.860394
2018-11-09T23:34:45
2018-11-09T23:34:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,180
py
import argparse import os class BaseArgs: def __init__(self): self.is_train, self.split = None, None self.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) # hardware self.parser.add_argument('--n_workers', type=int, default=8, help='number of threads') # ...
[ "juntinghsieh@gmail.com" ]
juntinghsieh@gmail.com
17f6b3138f1968e2507a1f897c7af44cf61fed90
0981ddfcd812cdd66f3509b4a052d30e098d8f44
/start-content/gerando_mensagens.py
af6f574bbb6c37ef8ad9963c8f71c3fa2e19a8c7
[]
no_license
ricardofelixmont/Udacity-Fundamentos-IA-ML
3c49532e0a3bd662d6b5262cab056281f0020689
dda2afc0e31ab94fef937be31b1b12685f447a71
refs/heads/master
2020-04-10T13:44:19.472140
2019-04-16T21:24:22
2019-04-16T21:24:22
161,058,181
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
names = input('digite os nomes: ').split().title() assignments = input('Digite os assignments: ').split() grades = input('Digite as notas: ').split() message = 'Hi {},This is a reminder that you have {} assignments left to submit before you can graduate. Your current grade is {} and can increase to {} if you submit a...
[ "ricardofelix_mont@outlook.com" ]
ricardofelix_mont@outlook.com
1f3bb0f792d476eaf347fe7437a98076b074341b
4add04cc4dad612a4014e59036d4265f71cd63de
/TF-Exam/Modeling/5)_Custom_Layers.py
df6ffbe6076c24fe01d613b4e409dbb1190a7d14
[]
no_license
blue-park/ai
58b37c9375374e33f8a02701c39a826b43bef6e8
37d633c97dd233a3e94213b82937b14fc905327d
refs/heads/main
2023-06-18T23:29:41.039596
2021-07-05T00:35:10
2021-07-05T00:35:10
370,681,525
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
import tensorflow as tf """ 이번 시간에는 간단한 커스텀 레이어를 만들어 보겠습니다. 해당 내용은 Upsampling2D와 비슷합니다. ToBe [1, 2, 3, 4] -> 각 채널별로 해당 값들이 가득차있는 3차원 텐서 (width, height, 4) """ class Custom_Layer(tf.keras.layers.Layer): def __init__(self, w, h): super(Custom_Layer, self).__init__() self.width = w self.he...
[ "parkdh72@naver.com" ]
parkdh72@naver.com
a25cbe6ae618373ae82473439730baac49b8f306
671032537d727e763ba907bf8ed085bb8a28961c
/main.py
2c6db70e1f39ba6bd15139e3436bec9bac3f8b70
[]
no_license
wz-dazhi/dou-yin-yin-yue-wang
4184053448277306ea15a31a5d3d6e120c65c929
d2b102456301e78d4cedc93ddecc46ccd0e954d2
refs/heads/main
2023-04-18T13:52:37.624195
2021-04-30T04:26:40
2021-04-30T04:26:40
362,028,391
0
0
null
null
null
null
UTF-8
Python
false
false
7,718
py
import configparser import os import threading import time from multiprocessing import Pool import requests from selenium import webdriver # 抖音最新歌曲 MUSIC_HTML = "douyinzuixingequ" # 抖音最火最热歌曲 # MUSIC_HTML = "douyinzuihuozuiregequ" # 抖音中文歌曲 # MUSIC_HTML = "douyinzhongwengequ" # 抖音DJ舞曲 # MUSIC_HTML = "douyinDJwuqu" # 抖音...
[ "742820195@qq.com" ]
742820195@qq.com
5a6434d9a3bdeaec69b62fd4db7eeaa128efe908
f66da3c9293d9f680ab54cf3c562ef5dd661137c
/docs/source/examples/index.py
731aa4fd9d3096b22bd8ae9a9f1393d90efd68fb
[ "MIT" ]
permissive
dvincentwest/gtimer
c49ef33ecdfeaf55298283cfd24953d372a3f4e5
2146dab459e5d959feb291821733d3d3ba7c523c
refs/heads/master
2022-04-21T22:08:06.103426
2016-10-05T07:44:04
2016-10-05T07:44:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
import gtimer as gt import time @gt.wrap def some_function(): time.sleep(1) gt.stamp('some_method') time.sleep(2) gt.stamp('another_function') some_function() gt.stamp('some_function') time.sleep(1) gt.stamp('another_method') print gt.report()
[ "adam.stooke@gmail.com" ]
adam.stooke@gmail.com
420fe9952d25789d462ba42a6cd0d82c5d3005e8
8a1686aeeefa80afeb0aa9f45ed72a75883458c4
/dit/divergences/maximum_correlation.py
80b8a60874ec9a78929efb6b7f35b7813c08a5da
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
heleibin/dit
70afd57f31be346e48b9b28c67fd6e019132ac36
ebd0c11600e559bf34cf12a6b4e451057838e324
refs/heads/master
2020-09-27T07:42:15.991500
2019-11-23T06:10:11
2019-11-23T06:10:11
226,466,522
1
0
BSD-3-Clause
2019-12-07T06:26:50
2019-12-07T06:26:50
null
UTF-8
Python
false
false
3,451
py
""" Compute the maximum correlation: \rho(X:Y) = max_{f, g} E(f(X)g(Y)) """ import numpy as np from ..exceptions import ditException from ..helpers import normalize_rvs svdvals = lambda m: np.linalg.svd(m, compute_uv=False) def conditional_maximum_correlation_pmf(pmf): """ Compute the conditional maxi...
[ "ryangregoryjames@gmail.com" ]
ryangregoryjames@gmail.com
51ec22fa4a3789ebde8822eb40cf8fb7046df5fc
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02646/s812265777.py
bf9bfeae85ecdf39cf4a7df800b93778ecaceb82
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
A, V = map(int, input().split(" ")) B, W = map(int, input().split(" ")) T = int(input()) if W > V: print("NO") else: if abs(A - B) <= T * (V - W): print("YES") else: print("NO") # if A - B > 0: # # 負の方向に逃げる # if (B + 10**9) / W <= T: # # print("left reach") # # T立つよりも先に端に到達してしまう場合 # Bdi...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
84ef03df3689525d6d42aa8a4d18dfefe0e53294
64e26391e66e22ba8affd7515ca0836d5fb92607
/SConscript
283eee78ec9a23976cfa93683dec539d97e4b9f5
[]
no_license
yuzhangiot/smartaudio
41fbeb8991d81272133f4d783c4629afbe3038e3
512c71275f85e4e0b6ec0097a0fa723c214f164b
refs/heads/master
2021-01-10T00:58:14.730492
2016-01-19T11:55:29
2016-01-19T11:55:29
44,382,080
0
0
null
null
null
null
UTF-8
Python
false
false
3,988
# Copyright (c) 2013-2014, AllSeen Alliance. All rights reserved. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROV...
[ "yuzhangiot@gmail.com" ]
yuzhangiot@gmail.com
8e577c03c8484472421f80c64155cd096c34ba96
2186f7ad7e54f3760f1503870f770d3262c17ab5
/scripts/SpellChecker.py
1b822a7fc7c75087e76dc937d70084436c178986
[]
no_license
HarshViijay/HandwritingRecognition-OCR
4ffb641257483f4fbf6722cef18c7500ffb7b27f
2db3ae01995105d7ba63bc43f58b6e0f368db6a6
refs/heads/main
2023-02-13T16:01:06.488675
2021-01-07T19:16:27
2021-01-07T19:16:27
326,492,680
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
from autocorrect import spell def correct_sentence(line): lines = line.strip().split(' ') new_line = "" similar_word = {} for l in lines: new_line += spell(l) + " " return new_line
[ "noreply@github.com" ]
HarshViijay.noreply@github.com
df1bbffdb1fd0a65bf1e16c82c1716c7a9e84dbb
c698fb03aa2bf034904a0310931b473b6da66fdc
/com/study/algorithm/daily/Wiggle Subsequence.py
c844d5ab6b9bac455a14c6fa53f8c5b6220137bb
[]
no_license
pi408637535/Algorithm
e46df1d07a519ab110e4f97755f461a1b2b7c308
75f4056ec6da01f7466a272871a7f7db579166b4
refs/heads/master
2021-08-29T19:19:53.368953
2021-08-22T16:30:32
2021-08-22T16:30:32
213,289,503
1
0
null
null
null
null
UTF-8
Python
false
false
3,075
py
''' 解决本题前,我们先进行一些约定: 1.某个序列被称为「上升摆动序列」,当且仅当该序列是摆动序列,且最后一个元素呈上升趋势。如序列 [1,3,2,4][1,3,2,4] 即为「上升摆动序列」。 2.某个序列被称为「下降摆动序列」,当且仅当该序列是摆动序列,且最后一个元素呈下降趋势。如序列 [4,2,3,1][4,2,3,1] 即为「下降摆动序列」。 3.特别地,对于长度为 11 的序列,它既是「上升摆动序列」,也是「下降摆动序列」。 4.序列中的某个元素被称为「峰」,当且仅当该元素两侧的相邻元素均小于它。如序列 [1,3,2,4][1,3,2,4] 中,33 就是一个「峰」。 5.序列中的某个元素被称为「谷」,当且仅当该元素两...
[ "piguanghua365@163.com" ]
piguanghua365@163.com
63d6f409962a4311535feac64bcf2dc3313284ce
c908126c119c48b4e717d7bd227f48531a4d138d
/bulletPointAdder.py
e1e284cdc2495da8a0293d5c06ffdbd00e845cd5
[]
no_license
peterpan1986/python
96c06adf1ac470d4001191db581640c7726957b0
503c3aa7fa5f9fa2497a4240cea0818110f2763a
refs/heads/master
2021-05-09T07:10:13.898600
2018-01-29T08:25:20
2018-01-29T08:25:20
119,351,268
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
#! python3 # bulletPointAdder.py - Adds Wikipedia bullet points to the start # of each line of text on the clipboard. import pyperclip text=pyperclip.paste() #Separate lines and add stars. lines=text.split('\n') for i in range(len(lines)): #loop through all indexes in the "lines" list lines[i]='* '+lines[i] # add...
[ "pantx2010@163.com" ]
pantx2010@163.com
d414045fd1baebb539135844bc46a8bc8fb336f4
c17d5626506b1377ce66b7c36313ceacb5969f0e
/walletUI/wallet/urls.py
957a757f8b8892e85babeffe30946c245e76dadc
[ "MIT" ]
permissive
avinashshenoy97/brownie-points
343d16485b728bdb6b42e5bef04e9f475555eb4f
27eb1e9a5ab685e72a5b701c0f76af44d9700960
refs/heads/master
2020-03-26T18:04:20.921878
2018-11-21T05:00:30
2018-11-21T05:00:30
145,194,762
1
0
null
null
null
null
UTF-8
Python
false
false
445
py
from django.urls import path from . import views urlpatterns = [ path('', views.wallet, name='wallet'), path('sendCoins',views.sendCoinsView.as_view()), path('getTransactionDetails',views.transactionStatusView.as_view()), path('getPublicAddress',views.publicAddressView.as_view()), path('getBalance'...
[ "anvithshetty97@gmail.com" ]
anvithshetty97@gmail.com
93a086198812bdc40ce35c6726c9eea2d43ef410
2e1b1042026b17ca8c7e1c9a9b192fe4d62bc941
/task_06_02.py
b686c32d75e160676bd0978e98457748698ca974
[]
no_license
Ljuba-Ljuba/Hometasks
b4c10960fd237309b4daa787d1faa302564f1209
2a2083c1571153e688492f7b5629964341a0c3ca
refs/heads/master
2021-07-23T10:51:13.229223
2017-11-01T11:25:08
2017-11-01T11:25:08
105,518,558
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
""" Требуется реализовать декоратор с параметрами pause, который приостанавливает выполнение функции на указанное количество секунд. В решении пригодится стандартный модуль time. Имя файла task_06_02.py Имя функции-декоратора pause Пример использования @pause(2) def func(): print('Фунция выполняется с задержкой!'...
[ "sto1000kvartir@gmail.com" ]
sto1000kvartir@gmail.com
8c226fe1619aa3b49c613dac5b3e7e313afda2ef
f6a483a73a5647cf40f9943e96d326e876dba801
/src/hook.py
3baa68a46829296c389ec56a28ebbbff41f4ba52
[]
no_license
hmirin/notion-automator
de402e817890380b8f874a353681cfeca0daf649
8323c5d6e8a445b812db290c851a5a3f0855c77e
refs/heads/master
2020-07-05T11:45:48.699249
2019-08-16T01:59:25
2019-08-16T01:59:25
202,640,472
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from abc import ABCMeta, abstractmethod from notion.block import TodoBlock, PageBlock class Hook(metaclass=ABCMeta): def __init__(self, func): self.hook = func @abstractmethod def execute(self, something): return self.hook(something) class TodoHook(Hook): def execute(self, todo: To...
[ "panda.1192@gmail.com" ]
panda.1192@gmail.com
9970e3d3297ee69f5a13f95985a80b0cbdd3fe77
520d1376ae99e52688d144a20fbf85053d09b7a8
/1.py
9d9c06406476e5f31761960a8992d7adeff29b3e
[]
no_license
kisgitter/learngit
b3b41f9fb058e79d8534c040591323e515cfa8a0
4fd1fc12982cbb5bbc4ce0c9559f8f4322d8bb19
refs/heads/master
2020-04-20T18:56:27.129373
2019-02-11T08:47:01
2019-02-11T08:47:01
166,193,771
0
0
null
null
null
null
UTF-8
Python
false
false
24
py
ao bc se dg vd ef df ea
[ "dwjwlnc@sina.com.cn" ]
dwjwlnc@sina.com.cn
e1c611fa5dc7c575083fd0a9c5023fc5eb10b062
8fdc5dd3f8f4d81e60f29076c1677ca47acde856
/tests/unit/common/middleware/crypto/test_crypto_utils.py
807924fb98e7045cdf73bd85242f449e1c7057d3
[ "Apache-2.0" ]
permissive
open-io/oio-swift
7522c908ad4fc146dbdfe922c6b440210bf710f0
be94cf2e4294cc6d37c3f3ee87e31de32dfe406e
refs/heads/master
2023-06-08T21:44:49.982481
2020-01-24T12:47:36
2023-06-05T12:57:51
32,991,975
28
26
Apache-2.0
2023-06-05T12:57:52
2015-03-27T14:52:43
Python
UTF-8
Python
false
false
1,331
py
# Copyright (c) 2015-2016 OpenStack Foundation # Copyright (c) 2018 OpenIO SAS # # 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 req...
[ "florent@fridu.net" ]
florent@fridu.net
302ef28d732c7e28242f2801a1df472ab537cbaf
098b68755ecc344150f29b334d4ef83e9ac9c43f
/Assignment3_Siam/fetch_games.py
46c13a5dd88b05a1c2190bc5a7faaf5e379febf0
[]
no_license
nbyouri/LINGI2261-AI
6595b5714b079ba423184b7ba7a8b62b520a48ac
b075fd47408018f1565f33cdcd0ea99bc858e1dd
refs/heads/master
2021-03-22T04:28:34.160521
2017-12-04T15:08:47
2017-12-04T15:08:47
105,148,296
0
0
null
null
null
null
UTF-8
Python
false
false
2,163
py
#!/usr/local/bin/python3 from lxml.html import parse RHINO_UP = 'img/20m.gif' RHINO_RIGHT = 'img/21m.gif' RHINO_DOWN = 'img/22m.gif' RHINO_LEFT = 'img/23m.gif' ELE_UP = 'img/10m.gif' ELE_RIGHT = 'img/11m.gif' ELE_DOWN = 'img/12m.gif' ELE_LEFT = 'img/13m.gif' ROCK = 'img/minirocher.gif' EMPTY = 'img/_.gif' database...
[ "youri@NetBSD.org" ]
youri@NetBSD.org
995ba26d091ef0eec1fee4cb9e0a5bf695949587
886fbd993dfda4afc402e49ef6910e631f62a1af
/2018/day16/task2.py
7e9f8b6ad3f2a434a255a20663c591ca96743be5
[]
no_license
EliTheCreator/AdventOfCode
6fb59eeddfad3592bbd6628850063259ce65899b
ee1eb7e26dba4b23eb3152dcfca9a44aff8ecc67
refs/heads/master
2022-05-03T13:53:32.837102
2022-03-03T21:10:11
2022-03-03T21:10:11
227,398,352
0
0
null
null
null
null
UTF-8
Python
false
false
2,129
py
import os import re from functools import reduce def main(): file = open("input", "r") p1, p2 = file.read().split("\n\n\n") file.close() part1 = [[[int(x) for x in re.findall(r"\d+", part)][i:i+4] for i in range(0, 12, 4)] for part in p1.split("\n\n")] part2 = [[int(x) for x in re.fin...
[ "elischmi@student.ethz.ch" ]
elischmi@student.ethz.ch
867a8ce5135318155e8e9463699c47f23b4859b6
d7016f69993570a1c55974582cda899ff70907ec
/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/get_resource_guard_proxy.py
a085c61f352a1766d44f4096824fb137a79e154c
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
1,712
py
# coding=utf-8 # -------------------------------------------------------------------------- # 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 Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
350d4e3d74e315ba1a032a5356e4b9317e7c0312
adf56026d8b046fc2401bf9c75421373585487af
/inventory/models.py
ee2c86c7d8eebff3bb497a643c765c1f0fa03814
[]
no_license
humblejok/gso_mycustomers
49bacb7c1468895d0574172d0f8b8aa5bdb816e6
f70db3530cb6c1f3440ffc8b8ccad81aac92fb37
refs/heads/master
2019-01-01T15:51:56.461240
2015-08-12T07:53:27
2015-08-12T07:53:27
34,466,349
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
from django.db import models from django.db.models import Q from container.models import Address, Email, Phone, Container, CoreModel,\ Attributes
[ "humble.jok@gmail.com" ]
humble.jok@gmail.com
f36262f258b98ef5823cbd3b3c8607c91559ec4e
32e9be6eef7e3ea6d9bd7b1236ffb36de3c1ba2c
/bulkfood4.py
bc06ff194bb8c04fea91236073cc39d699152fd9
[]
no_license
zhangzhiping-George/flupy
0d04da49a07bdc5ea400f6c0442e557717e32099
5ba230185da739fc25ceed06ef0f79b81dbb62eb
refs/heads/master
2020-04-04T04:51:41.053172
2018-11-14T03:39:36
2018-11-14T03:39:36
155,729,378
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
import model4 as model class LineItem: weight = model.Quantity() price = model.Quantity() def __init__(self, desc, weight, price): self.desc = desc self.weight = weight self.price = price def subtotal(self): return self.weight * self.price truffle = LineItem('White t...
[ "13751058453@163.com" ]
13751058453@163.com
f59123215590a17d634fd561594da622d762df34
409310799d6f3b8bc93791bd9659f197b0dd8a26
/02-CRT.py
0eba32a8ebd0264baf3b35e37b3eac5c09dda540
[]
no_license
SifanGuo/AppliedEncryption
fe61b9ec55984e53dc6db05e84acfacb1fa156ae
24c1be6e43a09dc5bac9912dd1068c8cd94823d7
refs/heads/master
2020-04-20T17:59:25.156942
2019-05-02T03:38:18
2019-05-02T03:38:18
169,005,455
0
0
null
null
null
null
UTF-8
Python
false
false
5,185
py
import Encryption1 import time def chinese_remainder(g, p, q, x): """Hopefully, I can find the answer.""" # 1st step: g mod p, g mod q p_remainder = g % p # print("{} % {} = {}".format(g, p, p_remainder)) q_remainder = g % q # print("{} % {} = {}".format(g, q, q_remainder)) # 2st step: re...
[ "todguo86@gmail.com" ]
todguo86@gmail.com
f823dbcd73106795c5bfa1ebb01fdcd07008f6b8
330014a69dda6c6dcd19f40365b4ba14733dda00
/sangyeon/hackerrank/math/polarCoordinates.py
524b4f42f970816ead30a7c0dad006802ca8bfc2
[]
no_license
kimsangyeon/synap_python
7fd148a742c20e30baa7bf37ab6fa16625b410bd
6ec45746dba0b14c6ed61ae14a99cc56f569a50c
refs/heads/master
2021-09-05T14:05:01.377360
2018-01-14T14:29:55
2018-01-14T14:29:55
103,936,583
0
2
null
2017-10-29T09:46:27
2017-09-18T12:32:18
Python
UTF-8
Python
false
false
74
py
from cmath import phase z = complex(input()) print(abs(z)) print(phase(z))
[ "dho113@naver.com" ]
dho113@naver.com
d893501915448c66c6bda1af06cc5994eb4911be
3428950daafacec9539a83809cf9752000508f63
/data_struct/10_combination.py
136a9f2a426e90a1e6863a66530fc3a6d61f865a
[]
no_license
HyunAm0225/Python_Algorithm
759b91743abf2605dfd996ecf7791267b0b5979a
99fb79001d4ee584a9c2d70f45644e9101317764
refs/heads/master
2023-05-24T05:29:12.838390
2021-06-15T16:36:33
2021-06-15T16:36:33
274,587,523
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
def combination(s): if len(s) < 2: return s res = [] for i, c in enumerate(s): res.append(c) # 추가된 부분 for j in combination(s[:i]+s[i+1:]): res.append(c+j) return res if __name__ == "__main__": data = "abc" print(combination(data))
[ "tlfgjawlq@naver.com" ]
tlfgjawlq@naver.com
b3b186a87497740c95f80ed1e6a1136ec1fb3f8a
325feeaa9955713f4ce098c8e788c0ca73ebe8e1
/FeatureLearningRotNet/architectures/NetworkInNetwork.py
ee76f17507a34d3be2565679b09b175a4ec1dfd0
[ "MIT" ]
permissive
baina23/Self-Supervised-Representation-Learning
04b22683d1063298ab1f834f52a24ab4c8a5d3d5
f8b270a987a426b614740170f075d9f3bf753e47
refs/heads/main
2023-04-11T01:52:37.460026
2021-04-28T18:02:34
2021-04-28T18:02:34
353,450,439
2
0
null
null
null
null
UTF-8
Python
false
false
6,709
py
import math import torch import torch.nn as nn import torch.nn.functional as F class BasicBlock(nn.Module): def __init__(self, in_planes, out_planes, kernel_size): super(BasicBlock, self).__init__() padding = (kernel_size-1)/2 self.layers = nn.Sequential() self.layers.add_module('Co...
[ "noreply@github.com" ]
baina23.noreply@github.com
813dd823239631c448f826c9c3dd466a894cae95
60c775d3a7e94901145701671a5a75d61fa1608c
/attempt1.py
0e33902d0cec32cecbf31a64b81bf0ff5d16adf4
[]
no_license
thesidjway/cs60012-3D-segmentation
eaadbe7361c63a65cd898efd6976407b6cec7d5d
5d5d3193b7d0024770df4ebd3e8943c1fd6f8ab5
refs/heads/master
2020-03-07T13:48:10.619056
2018-04-13T13:37:38
2018-04-13T13:37:38
127,510,345
7
1
null
null
null
null
UTF-8
Python
false
false
9,102
py
import sys import math import numpy as np import scipy.linalg import scipy.cluster import scipy.sparse import scipy.sparse.csgraph # Controls weight of geodesic to angular distance. Values closer to 0 give # the angular distance more importance, values closer to 1 give the geodesic # distance more importance delta = 0...
[ "siddharthjha@outlook.com" ]
siddharthjha@outlook.com
8360bdbce02337b5b0d8dcc33a34b850594a7837
edb918bd0df4e3d7c3220cc681a7d56043e062a1
/Main/main.py
db982e614d701081162797a26e91d7baf89a6a2b
[]
no_license
Akasen/AkasenRPGTest
035993de761b0dcbc41d21b153827532c228d081
30884201564868dcc5bcad7dd43e255ca5617d30
refs/heads/master
2020-05-18T21:03:08.860496
2013-11-21T04:12:48
2013-11-21T04:12:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,456
py
#randint to be used in the future for random variables from random import randint ###Dice Roller### def DiceRoll(x): roll = randint(1, x) return roll ##Dice End### ##Character and NPC classes## class Character(object): def __init__(self, name, MaxHP, health, strength, dexterity, stamina, armor): ...
[ "Akasen1226@yahoo.com" ]
Akasen1226@yahoo.com
4ef7a3225a9867cb4fd1b8dea1bcacd676e5a4f1
3ca33805ab72db091c27372d7e6e7f0d982d43cd
/argux_server/models/User.py
637d2618258ff3f98735432c22bb97d74e553d7d
[ "Apache-2.0" ]
permissive
gitter-badger/server-4
f239abf489c0d4d716b269104abaf0af2f07a130
07b6d4d4c5f58f8259179426feac6bf8b40dea52
refs/heads/master
2021-01-21T03:22:26.550105
2016-05-25T10:32:38
2016-05-25T10:32:38
59,810,905
0
0
null
2016-05-27T06:47:33
2016-05-27T06:47:33
null
UTF-8
Python
false
false
1,430
py
"""User Module, containing User model.""" from sqlalchemy import ( Column, Index, Integer, Text, ForeignKey, Boolean, Binary ) from sqlalchemy.orm import ( relationship ) from . import BASE # pylint: disable=too-few-public-methods class HashMethod(BASE): """Hashmethod object. ...
[ "stephan@xfce.org" ]
stephan@xfce.org
c4e1778126ccc1c4d6bd383b4dfd5d9fa5605236
cc0e964d635b6d48db9424ad1f5d8985e5332c45
/aboutTheSystem.py
109e60ba34b7df2d06a67ae166d9ff081957382a
[]
no_license
Anshika-Sharma-as/TeamTask01
efb4e31d488ab7e887fb4f188d04439f66661743
0da3b1ffd44478f2a145a3807c4757548bb3ba0c
refs/heads/main
2023-01-07T15:30:38.293806
2020-11-09T08:49:46
2020-11-09T08:49:46
311,275,971
0
0
null
null
null
null
UTF-8
Python
false
false
15,747
py
import os TGREEN = '\033[32m' TWHITE = '\033[37m' TYELLOW = '\033[33m' TBLUE = '\033[34m' TRED = '\033[31m' status = 1 def aboutSystem(): print(TGREEN, '\t \t Welcome to the System Info ') while (True): if status == 1: print(''' \t List of option to get information about the...
[ "noreply@github.com" ]
Anshika-Sharma-as.noreply@github.com
c9229487103db2f12ee73bf4d62f5c88ac2dc13e
c3a9cc3e16567d4f2b3771c6780c8cf36921582b
/Lib/site-packages/pip/_internal/pep425tags.py
bc1cdb6e5c39280f6d5b3b7c4642b2da431bccf8
[]
no_license
ugoodumegwu/imdb
19e355bda180b3ea65e62199175c84b437a1678d
3cab0542e293b89db8b9510348063e8ce3819773
refs/heads/master
2022-12-15T06:27:43.162018
2019-08-08T12:02:27
2019-08-08T12:02:27
201,245,235
0
0
null
2022-11-22T04:10:55
2019-08-08T11:35:43
Python
UTF-8
Python
false
false
13,132
py
"""Generate and work with PEP 425 Compatibility Tags.""" from __future__ import absolute_import import distutils.util import logging import platform import re import sys import sysconfig import warnings from collections import OrderedDict import pip._internal.utils.glibc from pip._internal.utils.compat import get_ext...
[ "ugoodumegwu@gmail.com" ]
ugoodumegwu@gmail.com
f2c2740bf34812d6361ee4b4a9a39f9f1a9d983b
86318359cde2629f68113f7fe097757ef8e4923a
/mep/books/migrations/0023_merge_20200406_1206.py
507c1ce7a10f2e1cdb1c549e0585c76c6e7fc95f
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
Princeton-CDH/mep-django
214f68a9c99b5025722c7301c976004edd277d9b
6103855f07c2c0123ab21b93b794ea5d5ca39aa2
refs/heads/main
2023-08-03T10:15:02.287018
2022-09-06T21:16:01
2022-09-06T21:16:01
94,891,547
6
0
Apache-2.0
2023-07-20T22:07:34
2017-06-20T13:00:00
Python
UTF-8
Python
false
false
271
py
# Generated by Django 2.2.11 on 2020-04-06 16:06 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('books', '0021_creator_type_order'), ('books', '0022_generate_work_slugs'), ] operations = [ ]
[ "rebecca.s.koeser@princeton.edu" ]
rebecca.s.koeser@princeton.edu
7998c8ea28730a710f82149eabb3c3fbd9777cf4
0ea1d55b431df5b001fa8c7485ada4e993ed3593
/crawler-not working/run.py
3db08ad4ec7eb0726280510bb6a75704449f6fb6
[ "BSD-3-Clause" ]
permissive
abhinashjain/proxyfuzzer
5dc2feacf879b5d20617d4696f66269ae83c4376
9c372390afe4cd3d277bcaaeb289e4c8ef398e5e
refs/heads/master
2021-01-01T18:36:39.749125
2017-07-26T09:20:44
2017-07-26T09:20:44
98,383,911
0
0
null
null
null
null
UTF-8
Python
false
false
1,062
py
#!/usr/bin/python import re import sys from crawler import Crawler, CrawlerCache file = open(sys.argv[1], "r") for line in file: line='https://olamoney.com' crawler = Crawler() try: crawler.crawl(line) except: pass else: (scheme,domain)=map(str,line.split('://')) # d...
[ "labor.omnia.vincit18@gmail.com" ]
labor.omnia.vincit18@gmail.com
71e5b116c7199a396e79609615af866b605be856
742f70358bb654649d8aaf3b9ace3f5ce328b673
/source/keys.py
24a7a987e8e61fe683fea1a016db8bcd495515ee
[ "MIT" ]
permissive
eneskalkanx/keyLogger
5382d3c88747afa3d9588ca533b657f628d5674b
ca7a4505d225b3b152d13b4afd1c4bcc8057c05d
refs/heads/master
2023-03-16T01:49:48.686017
2017-04-15T13:01:24
2017-04-15T13:01:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,271
py
''' Python 2.7 implementation with some additional functionality: -systeminfo data is uploaded when the file is executed -all the data uploaded to FTP server is encrypted (keys_retriever.py is used to collect/decrypt the data) -ability to take screenshot with simple kl.UploadScreenShot() -auto-downloader so you ca...
[ "noreply@github.com" ]
eneskalkanx.noreply@github.com
363bb59452b238df8f7c6f83d707770f217574b8
f6b67b8c41128ed1844d2bc2d7056d1c563df20a
/빅데이터 수집/0422/save_sqlite3.py
a3fbdf26572b7805a90bfa24eb4b3edaf974e929
[]
no_license
jes9401/bigdata_study
2606a23eaefe7e3c87ddf3b61252ed6ec858c930
cc5e2b8aa1ac0c304c7d46c285d350f6d3cab27e
refs/heads/master
2023-04-12T15:45:19.641098
2021-05-17T05:01:45
2021-05-17T05:01:45
361,152,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,859
py
import sqlite3 # top_cities.db 파일을 열고 연결을 변수에 저장합니다. conn = sqlite3.connect('top_cities.db') # 커서를 추출합니다. c = conn.cursor() # execute() 메서드로 SQL 구문을 실행합니다. # 스크립트를 여러 번 사용해도 같은 결과를 출력할 수 있게 cities 테이블이 존재하는 경우 제거합니다. c.execute('DROP TABLE IF EXISTS cities') # cities 테이블을 생성합니다. c.execute(''' CREATE TABLE cities ...
[ "jes9401@nate.com" ]
jes9401@nate.com
9c3d7fe4724d88ac9299d34dd431d80c0ae20f38
140d54bb9a1e62dda2ed2183a22558be6472ea8e
/config.py
beaf12f13d740bddaeb6788ed47db6902c87a87d
[]
no_license
grantjensen/Reversi
e71c050397efa2686d96ebd6b523c36345fcab30
87cec8233eae5ac467422a99b0478ed1486e84ed
refs/heads/main
2023-07-13T20:54:41.685759
2021-08-22T09:20:00
2021-08-22T09:20:00
396,534,719
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
""" Stores config info for training """ class TrainingConfig(): def __init__(self): self.nnetIters=60 # number of iterations of self play for nnet (default=60) self.episodes=100 # number of games to train on per iteration (default=100) self.pitgames=20 # half the number of self play game...
[ "gjensen6@wisc.edu" ]
gjensen6@wisc.edu
86b3f2d69deb2248d91d4be3c74f7213daf6915f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_84/33.py
57b6d1e3842473c752fac1c09401d02031ba1c9c
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
621
py
def solve(): r,c = map(int,raw_input().split()) a = [list(raw_input()) for _ in xrange(r)] for i in xrange(r): for j in xrange(c): if a[i][j]!='#': continue if i==r-1 or j==c-1: return None if a[i+1][j]!='#': return None if a[i+1][j+1]!='#': retur...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
b18beae3273c85da402f38b9ec0bc6ec5fee5418
c53b3e120c59557daaa2fa5b7626413105eb5965
/tendenci/apps/corporate_memberships/templatetags/corporate_memberships_tags.py
541c5e793ea1ad4b6f702a52f3951f2a8cd441e2
[]
no_license
chendong0444/ams
8483334d9b687708d533190b62c1fa4fd4690f2c
f2ac4ecc076b223c262f2cde4fa3b35b4a5cd54e
refs/heads/master
2021-05-01T03:59:18.682836
2018-07-23T06:33:41
2018-07-23T06:33:41
121,194,728
0
0
null
null
null
null
UTF-8
Python
false
false
10,075
py
import random from django.contrib.auth.models import AnonymousUser, User from django.db import models from django.template import Node, Library, TemplateSyntaxError, Variable from django.utils.translation import ugettext_lazy as _ from tendenci.apps.corporate_memberships.models import CorpMembership from tendenci.app...
[ "chendong@shinezone.com" ]
chendong@shinezone.com
5ccacaefd6625bfbe0cf2f265be54691ba3a59a4
6f115b2db5c821864a5100f414d8903ed732f2fa
/functional_tests/test_can_create_tasks.py
2ef6c80890a1c8625de78e8fa92795540f3d66ea
[]
no_license
wisecrow/XPTracker
34a67b5b5ede5b5cd47772d21e80cf4f21e26650
69fa843a7d0f417578d2c70b58ee190fef353874
refs/heads/master
2020-09-16T13:35:20.830150
2016-08-17T10:23:59
2016-08-17T10:23:59
65,898,321
0
0
null
null
null
null
UTF-8
Python
false
false
1,804
py
from .base import BaseTest class TaskCreateTest(BaseTest): def test_cannot_see_task_link_before_us_created(self): project = self.create_new_project() self.go_to_project_home(project) try: alink = self.browser.find_element_by_link_text('Tasks') except: alink =...
[ "dariusui@yahoo.com" ]
dariusui@yahoo.com
9c99e9c602c04babded94612e54aa4147608301e
265403cd620f1729176343626db909ccecc67243
/runserver.py
c80b199e83158ccb7fb8c091ddaef40bbfda8d39
[ "MIT" ]
permissive
djpnewton/beerme
a5486efe8f3a632ff479f75fde825264f8c45d42
b06564f897c5e63a6af6229aa5234ef5de4820a7
refs/heads/master
2020-04-05T23:21:15.375723
2015-07-01T07:37:02
2015-07-01T07:37:02
37,122,757
1
1
null
2015-07-05T12:26:55
2015-06-09T09:25:34
Python
UTF-8
Python
false
false
2,544
py
#!/usr/bin/python from beerme import app import os host = os.getenv('HOST', '127.0.0.1') port = int(os.getenv('PORT', 5000)) # get filenames before daemonizing app_log_filename = os.path.realpath('log/beerme.log') access_log_filename = os.path.realpath('log/access.log') def log_app(): import cherrypy from p...
[ "djpnewton@gmail.com" ]
djpnewton@gmail.com
467e17aa7e06dd81c942b746245c068437f6ae0f
587cd5c24b67fa4de78f2ccdecd56c79c8ac042d
/you_shell_not_pass/uwsgi.py
b97f9c671a2edd321e93e1e08ac7faaacea6ac62
[]
no_license
danikdanik2013/Sanic_project
52dc46523d4273a295423103af140199c39556cb
8021478385e032ad4fdf03d5bd317dda1f6110a3
refs/heads/master
2022-12-13T06:55:32.069689
2019-02-08T14:57:09
2019-02-08T14:57:09
165,872,813
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
# from you_shell_not_pass.service_api.app import app # # if __name__ == "__main__": # app.run()
[ "dpyly@softserveinc.com" ]
dpyly@softserveinc.com
794ba203af35d5b03534a7e0b017a0c01276ccd3
1fe6886057999844dda7fbb73c0937d28f1cf706
/users/migrations/0003_events.py
8233ac0be49888c392c356cea68e501ce6c2292a
[]
no_license
AkshathRaghav/timelapse.github.io
8ba7eb3baa07b2b588877ad70a05cdab5baf5f69
876f635537123c80b8aab953787cbd67ed4e1f88
refs/heads/main
2023-06-21T09:31:39.465023
2021-07-31T18:59:36
2021-07-31T18:59:36
391,381,842
0
0
null
null
null
null
UTF-8
Python
false
false
786
py
# Generated by Django 3.1.7 on 2021-03-11 17:19 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0002_delete_test'), ] operations = [ migrations.CreateModel( name='events', ...
[ "noreply@github.com" ]
AkshathRaghav.noreply@github.com
030cef8d516b00c1e83848d76f38cbc0757c517c
b3e416191a13bae3bbb60c0dede334025df6c0c0
/predict_on_images.py
96c7e7767697d55c0bc4e4278f6fac91a4aef26a
[ "MIT" ]
permissive
Santara/neuraltalkTheano
3e85e3caa0e957414365514ba46580f678e34ee0
19ca262f324a628cc50eebea19ce394cc976f890
refs/heads/master
2021-01-22T01:33:48.873360
2016-04-25T13:59:46
2016-04-25T13:59:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,793
py
import argparse import json import time import datetime import numpy as np import code import os import cPickle as pickle import math import scipy.io from imagernn.solver import Solver from imagernn.imagernn_utils import decodeGenerator, eval_split from imagernn.data_provider import prepare_data, loadArbitraryFeatures...
[ "rakshith.rs@gmail.com" ]
rakshith.rs@gmail.com
1a7a6d6691359a38be4991eefc4ff9dd19b73511
4edb067c8c748e503e154bb2b9190843f6f1684a
/tests/test_utils/test_decorators.py
99e6a477f5b2abc16262433e3225e0fbb78a035e
[ "Apache-2.0" ]
permissive
DistrictDataLabs/yellowbrick-docs-zh
5ecbdccfaff4a6822d60250719b37af9b8d37f61
3118e67f2bed561a00885e6edb2cabb3520ad66b
refs/heads/master
2021-04-09T11:00:29.709555
2019-04-06T15:23:55
2019-04-06T15:23:55
125,447,764
22
5
Apache-2.0
2019-04-06T14:52:40
2018-03-16T01:37:09
Python
UTF-8
Python
false
false
2,788
py
# tests.test_utils.test_decorators # Tests for the decorators module in Yellowbrick utils. # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Thu May 18 15:14:34 2017 -0400 # # Copyright (C) 2017 District Data Labs # For license information, see LICENSE.txt # # ID: test_decorators.py [79cd8cf]...
[ "benjamin@bengfort.com" ]
benjamin@bengfort.com
13d90ce2bd04f98e4c393f9da13e0f9847f09158
e27660afda2a5740882b73b0be6e7a5d9bcc0cbd
/receiverRPI.py
88f98c273be9807c8dc3ca53b8a9f4949b67d090
[]
no_license
martinosecchi/pyLIFI
c58897f3ee2b6393381092da49c0291fb02069a9
519491be42eeef3075180f5048cd4023cfcacd2b
refs/heads/master
2021-01-17T04:58:40.012261
2017-05-31T20:29:41
2017-05-31T20:29:41
83,050,488
0
0
null
null
null
null
UTF-8
Python
false
false
5,537
py
#!/usr/bin/python from lifiRx import lifiRx from classify import LiFiClassifierLight, manchester import sys import os from time import sleep def setpath(): exe = sys.argv[0] p = os.path.split(exe)[0] modulepath = os.path.join(p, 'alignment') sys.path.insert(0,modulepath) sys.path.insert(0,p) sys.path.insert(0,ex...
[ "smart91k@gmail.com" ]
smart91k@gmail.com
dc3e3ba7ee02dbd5d9a8dd8c61a2713c0f51d234
e25e0e8ce5ec28f52ed1829fd53bc160bebba9c0
/venv/bin/mailmail
aefcc326c45cd1820248e9904fc4033d124dc9d7
[]
no_license
Souravsumanpal/houzz
9a09b12058cf048d1a392894ce9bd6790a98f6f4
a6ebe82d3b9d4433cfe3d122e53d9479d2b1de30
refs/heads/master
2023-07-05T14:15:35.939841
2021-08-08T09:35:03
2021-08-08T09:35:03
393,916,815
0
0
null
null
null
null
UTF-8
Python
false
false
270
#!/home/shorya/workspace/Bizhues/scrapy/houzz/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from twisted.mail.scripts.mailmail import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "souravsumanpal@gmail.com" ]
souravsumanpal@gmail.com
6b652cb533300dbd6aaa32f92afb4f505dcd3a34
649e5ff8c84bfb882851f2f57de9d7dbb37b62df
/hw2/RandomForrests.py
25e53feb58e8437f9261abe9f0e29a89b8dc3f2d
[]
no_license
johansent/ML_Fall2017
2ba9a20497944ab2b184f6adffc019803ca23854
31947c7aa9649e2f4d17c94aaa7accfb1362c1ef
refs/heads/master
2021-01-20T22:02:14.915716
2017-11-06T19:51:01
2017-11-06T19:51:01
101,795,108
0
1
null
null
null
null
UTF-8
Python
false
false
2,894
py
# -*- coding: utf-8 -*- """ Created on Fri Sep 15 10:02:36 2017 @author: Kyle """ from import_data import import_data from sklearn.ensemble import RandomForestClassifier as RFC import matplotlib.pyplot as plt import sklearn import numpy as np def GrowForrest(x,y,xtest,ytest,K): errorsTrain = [] errorsTest =...
[ "sha11005@byui.edu" ]
sha11005@byui.edu
397243dd9250d0356dc9e27a00dfd091286e41c7
7233716fbf9fff94240d14770b3fc3f3ada10d9b
/devel/lib/python2.7/dist-packages/gazebo_logical_camera/msg/_LogicalCameraImage.py
2d13505c04971b0a5fc8394f5ba3c1a9f34572c3
[]
no_license
shashankseth01/E-yantra
58d42dce90667ca37f31f2cf111ee98c39468617
23432e058fce7733bd1a8399fd6edc20967fa6a3
refs/heads/main
2023-02-04T00:36:57.230996
2020-12-21T09:55:23
2020-12-21T09:55:23
316,716,460
2
1
null
null
null
null
UTF-8
Python
false
false
137
py
/home/shashank/ws_task3/devel/.private/gazebo_logical_camera/lib/python2.7/dist-packages/gazebo_logical_camera/msg/_LogicalCameraImage.py
[ "shashankseth3@gmail.com" ]
shashankseth3@gmail.com
74ac1fefd73605545a59bd97aec3f487416767ec
d99864c2675333b22181b90d047fdde894523cbb
/lamia/core/filesystem.py
06b3947f5fe227e016d2a0333e46252f06d005af
[]
no_license
Clint09/lamia
829fe4d75a223ca2eea87ab7b358b12f4968fe9e
ee4fa140812ea18ed26da593fcb592cb45302cdc
refs/heads/master
2020-04-01T18:05:14.508829
2018-10-16T15:31:06
2018-10-16T15:31:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,118
py
# -*- coding: utf-8 -*- # Copyright (c) 2018 Renat R. Dusaev <crank@qcrypt.org> # Author: Renat R. Dusaev <crank@qcrypt.org> # # 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 restric...
[ "crank@qcrypt.org" ]
crank@qcrypt.org
3546062645fad2976a9bb0f1e593e78e68733821
3b35eecc937dce2872c27f5aabb9b34b5ec93f82
/src/HardwareObjects/MaxLabSession.py
57e1874e92940cf317f29b0dc7971d071eccc9cc
[]
no_license
meguiraun/mxcube-v3
1bc0f14d4b8538f125c629c33ca60d5c1ec7b01c
af0a6af5024c037fa09814c8b2d33482b29fe887
refs/heads/master
2021-01-22T17:14:17.145284
2015-08-19T12:20:29
2015-08-19T12:20:29
39,188,792
3
0
null
null
null
null
UTF-8
Python
false
false
7,500
py
""" MaxLab Session hardware object. Adapting from original Session.py to adapt the names of data directories """ import os, time from Session import Session class MaxLabSession(Session): def __init__(self, name): Session.__init__(self, name) self.default_precision = "03" def get_base_data_d...
[ "mikel.eguiraun@maxlab.lu.se" ]
mikel.eguiraun@maxlab.lu.se
112465e55170d17e2968ce195267c88997ea8a78
f01f40e1aec3462881b69149ea975ef7a7315685
/mysite/blog/admin.py
749c53536eb700ae68a0219ac9d18de83fce7687
[ "MIT" ]
permissive
sariyanidi/academics-webpage
7c380750a3694d28b5fbbd4ba1c01200c6222027
5b1ca24167a32ec30df375ebd1e47bfff1644c36
refs/heads/master
2021-01-10T22:01:45.444062
2014-10-21T18:17:02
2014-10-21T18:17:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
from django.contrib import admin from models import Category,CodeSnippet,Project,Publication,Conference,ProjectAdmin,Code,Article,ArticleAdmin class CategoryAdmin(admin.ModelAdmin): fields = ('title',) # Register your models here. admin.site.register(Category,CategoryAdmin) admin.site.register(CodeSnippet) admi...
[ "legnav@v410.(none)" ]
legnav@v410.(none)
63546a63ea14ce3fc5fadc04ebc9988761286182
d1ddb9e9e75d42986eba239550364cff3d8f5203
/google-cloud-sdk/lib/surface/compute/instance_groups/unmanaged/delete.py
955dc6c5dfd2b844563c81ffbc6b0310d1d95757
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bopopescu/searchparty
8ecd702af0d610a7ad3a8df9c4d448f76f46c450
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
refs/heads/master
2022-11-19T14:44:55.421926
2017-07-28T14:55:43
2017-07-28T14:55:43
282,495,798
0
0
Apache-2.0
2020-07-25T17:48:53
2020-07-25T17:48:52
null
UTF-8
Python
false
false
2,378
py
# Copyright 2014 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...
[ "vinvivo@users.noreply.github.com" ]
vinvivo@users.noreply.github.com
0388593f65eabe2944078f31592e027dc709b1dd
58abc7d895dfb07818670511278e3ad43efe9d33
/数据分析练习3.py
3dc40dff836579eb57404299d2faab47b7e5f13d
[]
no_license
hzhhzh456/daima
1276da596fda5b929d94616887cc4c09c33ce468
ed0848b2241dc129fc05f3734ee1e8bd1134a745
refs/heads/master
2020-09-17T00:55:47.827604
2020-08-18T14:28:44
2020-08-18T14:28:44
223,938,503
1
0
null
null
null
null
UTF-8
Python
false
false
374
py
from math import exp,log,sqrt import re from datetime import date,time,datetime,timedelta today=date.today() print("Output #41:today:{0!s}".format(today)) print("Output #42:{0!s}".format(today.year)) print("Output #43:{0!s}".format(today.month)) print("Output #44:{0!s}".format(today.day)) current_datetime=datetime.toda...
[ "1277430572@qq.com" ]
1277430572@qq.com
d0fc9dd9fa76e4247d55fc5c7dd97bb1f29d6ac3
9d2cadf96f11ed1031bd7d3425f6cac52f8b4907
/main.py
4232e0d1218d5f349def06a03ab68034f921a28e
[]
no_license
homeiraazari/GoogleCloudPlatformSample
0bf4fb51f5431e8c53f696a5b24bf5c88d1dfe56
57e39cdf360a667f965598a78e041b4ce24683ab
refs/heads/master
2023-05-11T19:26:45.929169
2021-03-01T17:01:34
2021-03-01T17:01:34
236,600,997
0
0
null
2023-05-01T21:20:50
2020-01-27T21:39:14
Python
UTF-8
Python
false
false
841
py
from flask import Flask from flask import jsonify import pandas as pd import wikipedia app = Flask(__name__) @app.route('/') def hello(): """Return a friendly HTTP greeting.""" return 'Hello I am Homeira and I like to make AI Apps' @app.route('/name/<value>') def name(value): val = {"value": value} r...
[ "homeiraazari@gmail.com" ]
homeiraazari@gmail.com
68588cf0414fffb99cd81a0a2b52a12a52ddf85d
fdf8908c9cbee325ef9f4d7ee89d85d418fb74c0
/BDPy/Py27Lab/demo13.py
b6befe280d9d634de0432e2a1891316f834b1412
[]
no_license
icq6679166/Python
8449083f50361cf04c5ee2d27f9a0112954ec58f
2e909d433e0322dc253df725c0a9f43e3bccc898
refs/heads/master
2020-05-01T15:35:24.364810
2019-03-31T22:51:50
2019-03-31T22:51:50
177,550,554
2
0
null
2019-04-03T23:55:08
2019-03-25T09:02:38
Jupyter Notebook
UTF-8
Python
false
false
351
py
str1 = 'abcdefg1234567890' print str1[len(str1) - 1] # print str1[len(str1)] print str1[-len(str1)], str1[0] print str1[2:10] str2 = "www.uuu.com.tw" return1 = str2.split(".") print type(return1) print return1 print "@".join(return1) print "".join(return1) print str1+str2 print str2*5 print 5*str2 print '...
[ "noreply@github.com" ]
icq6679166.noreply@github.com
1808985b4ac9d43d43c5b8cc0ebbc2b85b51a3ec
51f887286aa3bd2c3dbe4c616ad306ce08976441
/pybind/nos/v7_2_0/interface/hundredgigabitethernet/storm_control/__init__.py
129d9c09e4a7d15c7a89324f305901c6ecfdcf8a
[ "Apache-2.0" ]
permissive
b2220333/pybind
a8c06460fd66a97a78c243bf144488eb88d7732a
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
refs/heads/master
2020-03-18T09:09:29.574226
2018-04-03T20:09:50
2018-04-03T20:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,095
py
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ "badaniya@brocade.com" ]
badaniya@brocade.com
455c9b48356ac380c5a8992c02e626d7fa3f969d
59813f5050594a1fe1f958f601a8288170d59400
/kvu.py
177bdd9c9a7d8f1c9a3e800a689590bfde7ac4b6
[]
no_license
Jon1ke/script
c2c84b4bf4f13736a240b831c96e297c2f1d78b9
5ad1ff94d2ef2dc3838f6c6a79c623b327e6c457
refs/heads/master
2020-05-17T09:01:11.085202
2019-04-26T12:12:02
2019-04-26T12:12:02
183,622,219
0
0
null
null
null
null
UTF-8
Python
false
false
5,773
py
# -*- coding: utf-8 -*- import sys import getopt import os from openpyxl import Workbook from openpyxl import load_workbook from openpyxl.styles import Font, Color, Fill from openpyxl.styles import colors verbose = 0 sheet_name = u"Таблица_ЗЛ" # color for mark different records rft = Font(color=colors.RED) # color f...
[ "bogdanlinke@gmail.com" ]
bogdanlinke@gmail.com
0054fe9d348ce2cdcd1627b633ac14e6c97d5d87
1c2c9db35ee7849cd298a8bd9c4d744dfcd912f4
/button.py
a0a61a722eee3f6e16bb0513ce410cc87f6ac16f
[]
no_license
AliceGreek/Python-pygame-shoot_balloon
2fd96224ed07facf2958cb22a807a9c462c024de
47434b577c4e374031208ec803700ec811f544e1
refs/heads/master
2021-05-04T17:31:09.658202
2018-02-05T08:16:14
2018-02-05T08:16:14
120,273,848
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
import pygame from pygame import font class Button(): """开始按钮类""" def __init__(self, screen, msg): """初始化按钮属性""" self.screen = screen self.screen_rect = self.screen.get_rect() self.msg = msg # 设置按钮的尺寸和属性 self.width, self.height = 200, 50 self.button_color = (0, 255, 0) self.text_color = (255, 255,...
[ "1158636487@qq.com" ]
1158636487@qq.com
169e9831bcc3567be42765c6f6d3db237d70ede8
49e3663fea29ae7fabec581ebae1fda5361effcd
/events/migrations/0003_auto__add_field_event_short_body.py
ff8f2567acac4b37f3f29ef89ba73caeb15a2d8f
[]
no_license
ikonitas/old_causenaffect
8fdabdc3108efa16046f6bdfa542f71d58a4e6eb
145f7ae82d02e39bda17aad380dac0f190f1882c
refs/heads/master
2021-05-28T08:46:49.663299
2014-02-17T21:42:36
2014-02-17T21:42:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,212
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): # Adding field 'Event.short_body' db.add_column('events_event', 'short_body', self.gf('django.db.models.fi...
[ "ikonitas@gmail.com" ]
ikonitas@gmail.com
66ca154f4d303f6e00de7f4b9762ba5f217a7a26
b452928168d9610fedf1e8c11230639fc599c88d
/Par_coordinates_Andrews_curve.py
8e3e43ff71c5f2f7ec173cafcc4e3937b93374aa
[]
no_license
anestis-tziam/Data_Visualisation
ba182e4627465962876e969b61674254d636d3b2
bd7ad2e60feaa157fe2a2ab24e213bd4b19d225b
refs/heads/master
2020-03-21T20:15:08.694460
2018-06-28T11:11:26
2018-06-28T11:11:26
138,996,101
0
0
null
null
null
null
UTF-8
Python
false
false
1,790
py
################################################################################################################################################## ################################################################################################################################################# ###########################...
[ "noreply@github.com" ]
anestis-tziam.noreply@github.com
ad26a52185caabccd3dfc136962d56741d22ba01
80bce6328c5f0c951987904af11b148c0440a83e
/rotor.py
a62f4d33f09d67b128d04a1e83fa214a434769b4
[]
no_license
disha00991/Information-Security
37dd3c515d1e2759d978b8d4f5e8663b3b0df29a
33c4361847582726395bb581c0d19f604e772b92
refs/heads/master
2021-01-17T08:06:35.914757
2016-08-26T14:26:57
2016-08-26T14:26:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,121
py
# Implement yourself #Encryption def rotor(plaintext,shift): alphabet=["a","b","c","d","e","f","g","h","i","j","k","l", "m","n","o","p","q","r","s","t","u","v","w","x","y","z"] #Create our substitution dictionary dic={} for i in range(0,len(alphabet)): dic[alphabet[i]]=alphabet[(i+shift)%len(alphabet)] ...
[ "as01hu@gmail.com" ]
as01hu@gmail.com
9c4c6adaab2653c87efba4f9e32323052ec9309e
aa0270b351402e421631ebc8b51e528448302fab
/sdk/servicebus/azure-servicebus/tests/async_tests/test_sb_client_async.py
d42e1dfd218fd8cc898361b417cdf68817ff1533
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
29,537
py
#-------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- import lo...
[ "noreply@github.com" ]
fangchen0601.noreply@github.com
ea41284abeaed9935fe87782c57638229ca46372
73832d62f4e982517f36265617c17bea3b715719
/04cem/Programming_Software_Tools/PYTHON/untitled/untitled/urls.py
675eecba0135ea31bb1e5a83c85b278aeb2fd7a1
[]
no_license
keipa/bsuir-labs
fa9018a121ec1b040bae27326607cd82ac7652a4
a7a3eca34d095568c7f8cbbe976cc91e515dc756
refs/heads/master
2021-06-15T23:37:27.249024
2020-06-09T09:33:32
2020-06-09T09:33:32
34,018,391
7
0
null
null
null
null
UTF-8
Python
false
false
764
py
"""untitled URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
[ "nichogaus@gmail.com" ]
nichogaus@gmail.com
ebc8d5be07a298d6889c755badf8ddca3fae3e24
bb2bc8b4993f737d30be90ee7c9bab98c725c61a
/workout_configs.py
91526aad4201420e25de17590ea6234c0cdead3a
[]
no_license
almcmoran1/workout_genorator
03e6f3541b07761c8812ebf5dded97be378a8396
59b1a5e48cce951e2fd5e1b891528dbef680f9fa
refs/heads/main
2023-02-16T07:07:04.606807
2021-01-11T01:48:53
2021-01-11T01:48:53
326,239,335
1
0
null
null
null
null
UTF-8
Python
false
false
757
py
configs = { "workout_override":'cardio', "days_to_generate":6, # Number of days to generate workouts "pct_days_upper_body":0.5, # percentage of workouts that are upper body "pct_days_lower_body":0.5, # percentage of workouts that are lower body "pct_days_cardio":0.0, # percentage of workouts that are cardio o...
[ "almcmoran1@gmail.com" ]
almcmoran1@gmail.com
a2015b7aa43ae1a0feefdaf35568e012477cc3fa
f6473593e6adfe6c53c8526901fa342d200596be
/multiplication-table.py
0a75c98327ab6ca27698d7b614d4f876d304b026
[]
no_license
aabhasgaur/Python-Basic-Programs
01fcd082bdece0b8e28c375e573488b2f2de5959
fdb8fd05bea89f742e3376447136d788f9941be6
refs/heads/main
2023-07-04T23:20:00.453387
2021-08-19T09:25:51
2021-08-19T09:25:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
num=int(input("Enter a number:")) print("Multiplication table of",num,":") for i in range(1,11): print(num,"X",i,"=",num*i)
[ "noreply@github.com" ]
aabhasgaur.noreply@github.com
9c70343fb4ede60d25a4826018132491b6ce3728
2daa3894e6d6929fd04145100d8a3be5eedbe21c
/tests/artificial/transf_/trend_constant/cycle_12/ar_/test_artificial_128__constant_12__20.py
53da275217edee4022050200a1f5d3f55f20f941
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Henri-Lo/pyaf
a1f73a0cc807873bd7b79648fe51de9cfd6c126a
08c968425d85dcace974d90db7f07c845a0fe914
refs/heads/master
2021-07-01T12:27:31.600232
2017-09-21T11:19:04
2017-09-21T11:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 12, transform = "", sigma = 0.0, exog_count = 20, ar_order = 0); art.process_dataset(dataset);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
5ab0d3b94426ed0ab35f14ea5e6b12b8d4f31966
ca6a197fa667d589223639d5b1e1fbda44ecd456
/due.py
e8160830ddd4debeab8af5ca6a7cee50f8e028a1
[]
no_license
fceek/Discord-Ghost-Bot
51a96d05019328508be7ad1b55d7b19d39193b55
06c536a353f4b97c6de2f8da578a14f1b5d3fd1e
refs/heads/master
2022-09-04T01:34:28.008705
2020-05-23T15:14:29
2020-05-23T15:14:29
260,094,303
2
2
null
null
null
null
UTF-8
Python
false
false
165
py
import datetime class Due: # exp: Due('date':) def __init__(self, **kwargs): self.date = kwargs.get('date') self.text = kwargs.get('text')
[ "fceek96@gmail.com" ]
fceek96@gmail.com
705620183edb59df9e17a79213dab8d28e9b028a
bb54fca36822db794a86dc0d617ffe7f58c23c93
/Abby progress update.py
12d91712d9e02f6f422f5680db6c63cfebc624eb
[]
no_license
derektoms/opentrons
c82ee95645b03a9288cc4fa0ea71a02291d3495a
6635f13034713c2dedc4f629422cb78dfedcbce9
refs/heads/master
2021-04-04T08:18:07.765977
2018-09-14T23:14:50
2018-09-14T23:14:50
124,447,150
1
1
null
null
null
null
UTF-8
Python
false
false
1,292
py
# imports from opentrons import robot, containers, load, insturments from intertools import chains # robot settings robot.head_speed(z=1000) # container set up # set tip racks tiprack = containers.load('tiprack-200ul', 'A1') # waste waste = containers.load('point', 'C2', 'waste') liquid_waste =...
[ "noreply@github.com" ]
derektoms.noreply@github.com
a5724c267a90d9ff426a1eec81a2e71f7e31c138
2d23f5d96dcd65ef9461bcfbf6eaf8f7ec5ee86c
/examples/202_coalescence/vis/rt.py
1b196263472ac957d3866f0e2e65c3afa76fa544
[ "MIT" ]
permissive
fksato/aphros
cc7a47e9be58d8c7f9c130703e2b330105445562
5c0fb6a1e0d4db3653df5fff6f1d83fe1913f461
refs/heads/master
2023-03-22T19:08:27.524359
2021-03-20T13:43:06
2021-03-20T13:43:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,112
py
#!/usr/bin/env pvbatch # state file generated using paraview version 5.8.0 from paraview.simple import * paraview.simple._DisableFirstRenderCameraReset() import argparse import os import re def Log(s): sys.stderr.write(str(s) + '\n') parser = argparse.ArgumentParser( description="Renders interface shapes ...
[ "kpetr@ethz.ch" ]
kpetr@ethz.ch
1e4797753fd3e0fcebccf3be0b971ddb534b7452
9129a791f45cd3b25d8a5da57ee6936bfe4e73a2
/learn-django/db_ORM2/one/migrations/0002_article_username.py
36eb6412db4e75d303331bc845e1d0aeff1d4ef2
[]
no_license
Sunsetjue/Django2.0
94be49ed9d65dab6398ab8f0ddd02bb1871afb6b
102bf0f2bd2d309b76f3247e396b7e83c5f6c2f8
refs/heads/master
2020-04-22T03:25:24.014196
2019-02-15T16:18:23
2019-02-15T16:18:23
170,086,151
0
0
null
null
null
null
UTF-8
Python
false
false
494
py
# Generated by Django 2.0 on 2018-12-10 08:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('two', '0001_initial'), ('one', '0001_initial'), ] operations = [ migrations.AddField( mod...
[ "10073631822qq.com" ]
10073631822qq.com
313abfe75d910fb1a8aef9d86992c76f7f76c267
e4ea569a79f2b905c4ffc316c3e547dc74901edc
/clipper/course_save.py
73bc00da9a1f3f804909c27d26e27e8980cb331c
[]
no_license
TILPJ/data_donhwi
e95800445c5100aa77e19a8a2d88f73126a00716
eced9679f51a4b5fbc60a2d2e7cead1e97d91291
refs/heads/main
2023-06-27T14:01:33.161346
2021-07-29T11:46:02
2021-07-29T11:46:02
375,333,780
0
1
null
2021-07-22T08:15:33
2021-06-09T11:38:25
Python
UTF-8
Python
false
false
2,028
py
from clipper.models import Site, Course, Chapter, Section # 섹션 정보 저장 def section_info_save(chapter, section_list): for section in section_list: data = Section(id=None, name=section, chapter=chapter ) data.save() # 챕터 정보 저장 def cha...
[ "howsitgoing@naver.com" ]
howsitgoing@naver.com
1cf19a8be8279c1e8c732b802848866e66883085
bae3294e75330cc5d1adb376b2556dc078485293
/ex19_1.py
787c7fe2620124e6768d45c8db97a51842ad1072
[]
no_license
yiyinghsieh/learn-python-the-hard-way
2187b5c39f06facb44509d427b6ca7927879dd9c
271f43d35b19ce24f9be4ad41684546ef7322e81
refs/heads/master
2020-04-07T04:54:49.920840
2019-03-07T21:04:51
2019-03-07T21:04:51
158,076,926
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
# ex19_1.py def dog_and_cat(cute_dog, cute_black_cat): print "I have %d dog!" % cute_dog print "I have %d cat!" % cute_black_cat print "There are so funny!" print "That play a game.\n" print "I cant just give the function numbers directly:" dog_and_cat(5, 6) print "Or, we can use variables from our ...
[ "yiying.hsieh6@gmail.com" ]
yiying.hsieh6@gmail.com
fe610589e16a8318efe13fefe19c225a9f4b3618
1d00e3796a495cb5f2218e0e864544f482209b08
/3.1.2.11.py
244c285c2eb9e5900fc2867c9df11435dac23ab6
[]
no_license
cf19carlosreina/Python-ReinaCarlos
b2b5fd53ba243e6d39d2040c71e9c80e55fb7a04
e3bbb2246c21593ba72b499f23ad6a0f875fc42b
refs/heads/main
2023-03-12T14:56:23.683649
2021-02-28T22:01:52
2021-02-28T22:01:52
308,089,480
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
palabraSinVocal = "" # Indicar al usuario que ingrese una palabra # y asignarlo a la variable userWord userWord = str(input("Ingresa una palabra: ")) userWord = userWord.upper() for letra in userWord: # Completa el cuerpo del ciclo. if letra == "A": continue elif letra == "E": continue elif...
[ "noreply@github.com" ]
cf19carlosreina.noreply@github.com
eb8b390796f9460b2e89e0224726870807321dab
08f11407616232a63d07cbc7a347eac1dc11aa4d
/Data/euler_chain.py
be0c6cfa63c70ac59a6907d81e13f4aec46ad2f5
[]
no_license
cwgreene/project_euler
f1daf951661285f693159e02f9ac035a25b7fea8
53499f6400fa1995bd8a9c803f30f5ccc38ccafd
refs/heads/master
2021-03-12T21:23:42.169902
2015-01-05T02:26:05
2015-01-05T02:26:05
1,182,681
1
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
import euler import time chains = {89:89,1:1} sum_time = 0 def next_chain(x): square_digits = [d*d for d in euler.digits(x)] return sum(square_digits) def next_chain_fast(x): #not that much faster global sum_time start = time.time() sum =0 prev_power = 1 power = 10 while x/(prev_power) != 0: product=(x % p...
[ "archgoon@gmail.com" ]
archgoon@gmail.com
a3f4a3a3b0f4c6329302ee714e03465366a5a8b0
7749912be6fa3811975867c1e2dc8c303eac6d55
/website/DeOldify/deoldify/dataset.py
29a329360636db9f21c908e9d18c44dddf47ef61
[ "MIT" ]
permissive
ravinitheshreddy/terzani_online_museum
0ae9b6cd6c65418483bfbf2e38502c239f6f65e7
6538e0053c9119b1bf67da930f309b22cbdece30
refs/heads/master
2023-08-22T00:44:38.141864
2021-10-12T19:34:56
2021-10-12T19:34:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
import fastai from fastai import * from fastai.core import * from fastai.vision.transform import get_transforms from fastai.vision.data import ImageImageList, ImageDataBunch, imagenet_stats import os from .augs import noisify def get_colorize_data( sz: int, bs: int, crappy_path: Path, good_path: Path,...
[ "ravinitheshreddy@gmail.com" ]
ravinitheshreddy@gmail.com
c84f2457c0b99ce8dfe2585ade854997310072ec
2b7e9f36ec05a67cb85ea474b08d508335f1e936
/idle11.py
e8ffa83f07be7414edf1227b0c933a803d36bcbe
[]
no_license
samordoch/Idle-Eleven-AutoSwipe
58d5068412149a08482c0a50bd90550c8151b7bc
988c51acceb5b9992d215c6487efa0f9a0bed005
refs/heads/main
2023-06-10T16:12:49.921270
2021-07-07T10:51:42
2021-07-07T10:51:42
383,760,652
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
import os import keyboard def swipeDefence(): # swipe cb row os.system("adb shell input swipe 60 1620 958 1621 130") # swipe gk os.system("adb R58N92V6KCH shell input swipe 330 2024 770 2024 130") def swipeSt(): # swipe over st cf os.system("adb R58N92V6KCH shell input swipe 220 728...
[ "noreply@github.com" ]
samordoch.noreply@github.com
2295a63eb9635f01641c4c2f4c1e106e694694c6
99d809e963ce1977e697a36c74932ea740688707
/2017 Senior CCC/s1.py
f383ed28a0cca50e910d4278fb076753de2537aa
[]
no_license
Noor-Nasri/Contest-Solutions
76d4d03534b9a7ae001bce49194d1ce9c39085d5
1380b2ebc5f381f7d2f833a4fb224f4fef551f3c
refs/heads/master
2021-06-21T23:57:49.645311
2020-11-22T16:14:48
2020-11-22T16:14:48
141,163,437
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
input() games1 = [0] + [int(e) for e in input().split()] games2 = [0] + [int(e) for e in input().split()] for a in range(1, len(games1)): games1[a] += games1[a-1] games2[a] += games2[a-1] for b in range(len(games1) - 1, -1, -1): if games1[b] == games2[b]: print(b) break
[ "noor.nasri@hotmail.com" ]
noor.nasri@hotmail.com
85649f26f271d7dde68054cfc16329bd9ab2ba35
cccb7c6c3af061b6703d01697714d3edff366cf7
/winrates.py
e83364d3ac62d73bea5d118e7f5c197a6f70d07c
[]
no_license
maddy302/dota2teamsuggestion
23cac8bf1c6980d0ca52977f4e53af7a707e9a97
63a2c4e215f7f85760f7a74cbae21dc168c889f0
refs/heads/master
2020-03-26T13:25:58.824573
2018-08-16T05:03:04
2018-08-16T05:03:04
144,938,778
0
1
null
null
null
null
UTF-8
Python
false
false
1,762
py
import sqlite3 import simple_heroes import random class Winrates: def load_winrates(self, database="data/matches.sqlite"): connection = sqlite3.connect(database) self.radiant_winrates = dict() self.dire_winrates = dict() for hero in simple_heroes.dota_hero_ids: matches_on_radiant = connection.execute('SELE...
[ "bsm4u2722#gmail.com" ]
bsm4u2722#gmail.com
5e70ad84a6cda2ce2c916562e762ea79f62edafc
1c0e889b5f216549160eba5fa6960078926b6f27
/flaskServer.py
a9e1fe60fe430ae1ecbd3b75de3e2629082eb37f
[ "Artistic-2.0" ]
permissive
ttm/aars
477d42f7f4627d0178ca5fabf1445d7c1819d2ef
481ea568321255ddc60b167325c545f84f3284ff
refs/heads/master
2021-01-01T17:32:55.940835
2014-12-16T06:09:05
2014-12-16T06:09:05
21,177,370
0
1
null
null
null
null
UTF-8
Python
false
false
1,102
py
#-*- coding: utf-8 -*- from flask import Flask, render_template, make_response, session, redirect, url_for, escape, request,jsonify,Response import pymongo, __builtin__, datetime, string from dateutil import parser import time as T, networkx as x, json # json.dumps #import MySQLdb, cPickle, numpy as n from maccess ...
[ "renato.fabbri@gmail.com" ]
renato.fabbri@gmail.com
62b4cfd34c72b28ab04105996da379e186d68817
656d1c23becebe3897a10ab1e7c11223aacea7d4
/python/pcasig/core/exceptions.py
bac3d9f14bb7bccf49a32cb9d15c03a3e7c0a61a
[ "BSD-3-Clause" ]
permissive
zpace/pcasig
ead2041d10eebd029518e918149ca060f49e5d1a
f659d956192125f89a17ecaf59825ce301d95455
refs/heads/master
2020-08-27T10:12:12.601803
2019-10-30T03:21:27
2019-10-30T03:21:27
217,329,365
0
0
null
null
null
null
UTF-8
Python
false
false
1,818
py
# !usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-12-05 12:01:21 # @Last modified by: Brian Cherinka # @Last Modified time: 2017-12-05 12:19:32 from __future__ import print_function, division, absolute_import class PcasigError(Excep...
[ "zpace21@gmail.com" ]
zpace21@gmail.com
cbe8aff3d8002af75c4697557ef1744bc3204f6d
ab825ee0326e98d115b6dc02bbda02b302787d46
/基礎編/パスの結合・連結/モジュール/パスの結合・連結.py
dacca7b719dece6f3e5051edcf80d20667fd444b
[]
no_license
holothuria/python_study
295dd7c30a566b5a9688b9196e25bf6e065401a0
7e98090e64d646d23a4189e0efd68c2905b78d04
refs/heads/master
2020-03-23T20:04:38.900368
2019-03-05T12:47:53
2019-03-05T12:47:53
142,019,995
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
import os PROJECT_DIR = 'C:\python-izm' SETTINGS_FILE = 'settings.ini' print(os.path.join(PROJECT_DIR, SETTINGS_FILE)) print(os.path.join(PROJECT_DIR, 'settings_dir', SETTINGS_FILE)) PROJECT_DIR = 'python-izm' print(os.path.join('C:', PROJECT_DIR, 'settings_dir', SETTINGS_FILE)) # ↑「(アルファベット一文字):」のみだと、区切...
[ "umehara.daichi@withone.co.jp" ]
umehara.daichi@withone.co.jp
9bb5532146cbe633e0698132eb5cff30192b23fb
6c5e2f64f9cba02c19fea9662db782974d87b4f5
/golden/apps/categorias/urls.py
b59563bf253721bdb14bd1294f33272b912998c1
[ "MIT" ]
permissive
FilipeSGomes/Questions
3039df39f6a68b3a269da688f99750cb8b087d3d
95bab0e911a367f81d92bb65eb24bd8741412c63
refs/heads/master
2023-01-24T12:07:41.504629
2020-11-20T23:58:18
2020-11-20T23:58:18
314,670,098
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
from django.urls import path from django.urls import path, include from django.conf import settings from django.conf.urls import url from django.contrib import admin from django.urls import path, include from django.views.static import serve from django.conf.urls.static import static from . import views urlpatterns =...
[ "filipesg@primeit.com.br" ]
filipesg@primeit.com.br
1d3868991d12658e3d6a62b13ffb329463afa9ad
6848fafa876927b375e187bba57b0a1f934c6716
/python/graph.py
50feae45224290a1663889c3a7133b7321d4c570
[ "MIT" ]
permissive
QimingZheng/AHP
b48c9b7dfdb86bb189688e46dd4669f5e9a0009f
3a8f66f10ef87f55ea92ef568a25a3e78e4392f3
refs/heads/master
2020-03-22T15:58:17.735544
2018-07-12T07:25:18
2018-07-12T07:25:18
140,293,079
1
0
null
null
null
null
UTF-8
Python
false
false
2,057
py
import pandas import math import time import random from IO import * class Graph(object): def __init__(self): self.graph = {} # vertex : neighbor_list self.master_vertex = {} # vertex : whether thie vertex is a master mirror copy (True/False) self.duplicate_vertex = {} # duplicate vertex in...
[ "qimingzheng96@gmail.com" ]
qimingzheng96@gmail.com
0a9ba42a1fa7d578b0eac801eafbc4a7820f92f3
1a8dbd07363239c79c6d217f675203dedfa93b68
/random_agent.py
faddd8f6cb58012b4723da7bb6956b3458d08280
[]
no_license
unlut/gameai_hw_final
c715ee1b313a877e140b3fa2bc73025062c2bc33
48d1639b9b5eededfaf32af2dab2cc4c9058e677
refs/heads/master
2020-05-24T16:38:19.009468
2019-05-20T07:17:49
2019-05-20T07:17:49
187,364,963
1
1
null
null
null
null
UTF-8
Python
false
false
820
py
import random class RandomAgent: def __init__(self): pass def decide_move(self, grid): # RandomAgent plays randomly rand_number = random.randint(0, 4) # convert number to direction string decided_move = "" if (rand_number == 0): decided_m...
[ "turkerunlu@hotmail.com" ]
turkerunlu@hotmail.com
14976d0852d273752f1d344b928169a91b16397d
8ea2bc53a4d6e7ad64390dd96cd361486cd74ce9
/pybulletgym/envs/roboschool/robots/pendula/interted_pendulum.py
6549b3994a557603d6ad2bd482e594a6c14e0acf
[ "MIT" ]
permissive
AmrMKayid/pybullet-gym
1f8889b8cb07bb50037343315a37210d815a6b97
b052a376580d142d1870f38c4f5ccdc75c64f4b7
refs/heads/master
2020-11-26T10:31:45.865650
2019-11-06T10:03:03
2019-11-06T10:03:03
229,044,002
1
0
NOASSERTION
2019-12-19T11:50:39
2019-12-19T11:50:38
null
UTF-8
Python
false
false
1,607
py
from pybulletgym.envs.roboschool.robots.robot_bases import MJCFBasedRobot import numpy as np class InvertedPendulum(MJCFBasedRobot): swingup = False def __init__(self): MJCFBasedRobot.__init__(self, 'inverted_pendulum.xml', 'cart', action_dim=1, obs_dim=5) def robot_specific_reset(self, bullet_c...
[ "benjamin.ellenberger@insel.ch" ]
benjamin.ellenberger@insel.ch