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
ef1db9e22c21827eb0398501a7637b0032bce8a1
e561a6225346bd7b45355194b4ac53f8866c42e4
/transiter_ny_mta/transiter_ny_mta/alertsparser.py
a42b87ace705bfa063ff15189f7388055db91e13
[ "MIT", "Apache-2.0" ]
permissive
jamespfennell/transiter-ny
5005cc67c6ce1477ce99b9c3decde7101bd47dba
5952f8c204358b271fc4abafba9aab1ca3787493
refs/heads/master
2023-05-09T17:01:56.742970
2021-06-16T02:16:15
2021-06-16T02:16:15
157,099,383
3
2
null
null
null
null
UTF-8
Python
false
false
4,420
py
import enum import os from transiter.parse import Alert from transiter.parse import gtfsrealtime from .proto import alerts_pb2 as gtfs_rt_pb2 class NyctBusPriority(enum.Enum): UNKNOWN = 0 NYCT_BUS_PRIORITY_NO_SCHEDULED_SERVICE = 1 NYCT_BUS_PRIORITY_SUNDAY_SCHEDULE = 2 NYCT_BUS_PRIORITY_SATURDAY_SCHE...
[ "jamespfennell@gmail.com" ]
jamespfennell@gmail.com
50fb0ace9918425efc89a81fbe619b4056b38b2b
f4c9a3515aeb78f82fccac4a65fac1c22c77d3f4
/Windows.py
6a09aa67dd860a6974875b5d215a3bc28d12568c
[]
no_license
fredricklamar/Windows-Schedule-Shtdown-Program
3180162e862576855d05f3f41f34dbcb22dfb2cb
05e0fc502c92daf1030eda9b1751ccda93d22a94
refs/heads/main
2023-01-22T15:41:38.776120
2020-11-24T22:25:59
2020-11-24T22:25:59
315,761,335
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
import os class Shutdown: def __init__(self): pass def ByMinutes(minute=6): minute = int(minute * 60) os.system('shutdown /s /t {} /c "THE SYSTEM WILL SHUTDOWN IN THE NEXT {} MINUTES (Fredrick_Lamar)"'.format(minute, int(minute/60))) def ByHours(hour=60): hour = int(h...
[ "noreply@github.com" ]
fredricklamar.noreply@github.com
b750259ce124ef286fff24e3c5e426b1daef1811
efb2fb6090dff63ba9df0fdf6bec895215f7b365
/untitled5.py
f4f313fd82f93cafd4e970076f1f247f19f7c3df
[]
no_license
patheisen/first-one
f94fefd9df2485e7723b920f2592ecb427d1d575
80eacb41683cc22fee03f301534471eaa79d820a
refs/heads/master
2020-12-19T10:57:22.485107
2020-01-26T03:09:17
2020-01-26T03:09:17
235,712,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
# -*- coding: utf-8 -*- """ Created on Fri May 4 00:13:07 2018 @author: paul """ okchar = "hlc" info = "a" low = 0 high = 100 guess = int((low+high)/2) print('Please think of a number between 0 and 100!') print('Is your secret number ' + str(guess) + ' ?' ) info = input('Enter h to indicate the gue...
[ "noreply@github.com" ]
patheisen.noreply@github.com
52ee72f998113f142208a89bb6d1e6818b4f2d24
2d0315bf15d9b52df7be724329aaf7c3494923e7
/Chandao_ui/run_cases.py
f46b81377d5563af8264deb8161a0c211562416b
[]
no_license
tchudi/hudi
5872eb7d962a762e865b50970e34549af78e75ba
e25f6c935e53ca8558f075cec444864175e9eb0f
refs/heads/master
2022-11-06T05:56:58.168330
2020-06-28T08:41:20
2020-06-28T08:41:20
275,278,356
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
#!/usr/bin/env python # -*- coding:utf-8 -*- __auth__ = 'HUDI' import unittest import HTMLTestRunner_cn import sys import time sys.path.append(r'D:/Chandao_ui') if __name__=="__main__": casespath='./cases/' report='./reports/'+time.strftime('%Y%m%d%H%M%S',time.localtime())+'_report.html' discover=unitt...
[ "1561483023@qq.com" ]
1561483023@qq.com
ce8bc8e8c5475a8d2ed27e43305f5fd02ca3d509
da481ac79daaa68df0219e92b0d80a1a7aed1bf6
/python/example/run_all_tests.py
747477c1ca24629cf95203798b913aa2369a40a8
[]
no_license
PeterZhouSZ/diff_pd
5ebad8f8d361a3ac4b8c7fb25c923b85e01c8a31
45bf74bc1b601d0aba7cc5becc3d2582136b5c0b
refs/heads/master
2023-07-06T10:56:59.660391
2021-08-13T04:21:07
2021-08-13T04:21:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,144
py
import sys sys.path.append('../') from importlib import import_module from py_diff_pd.common.common import print_ok, print_error if __name__ == '__main__': # If you want to add a new test, simply add its name here --- you can find their names from README.md. tests = [ # Utilities. 'render_quad...
[ "taodu@csail.mit.edu" ]
taodu@csail.mit.edu
caf3c7ebeaefbe93d9c64fc405ae223a3ab5b018
872cf0b3a412342c9c33c1b3ed934385d270792a
/HC_Test/mayw3 _Test/boundaries.py
1df00fbe089660cad154f24cae203172941c15fd
[]
no_license
h0uter/shero_localization_simulation
46d75e2696d5a51e4ad8865eb30fb2dffe2d841b
bb7b5470d67060fc1091f2a3f4fa0fbe1d0ec797
refs/heads/master
2020-05-18T18:01:54.446826
2019-05-16T14:15:03
2019-05-16T14:35:30
184,572,061
0
0
null
null
null
null
UTF-8
Python
false
false
4,330
py
from Tkinter import * from math import sin, cos, pi, fabs from numpy import sign import sys class boundaries(object): def __init__(self,world_size,wall_width): self.world_size = world_size self.wall_width = wall_width self.parray = [] # Consider preallocation for faster memory access...
[ "halithan96@hotmail.com" ]
halithan96@hotmail.com
65dfab2bd4785e0a84b4dc18766ff005a340741f
86c5a40ade24f7d6aab5145192f72b601fdf0b14
/api/models.py
f615a34d9f422472d5c4478663f4d5678cbd73f3
[]
no_license
jingchaoluan/OCRService
93c32e3c9682ef22d08beeac295bfd385532dba5
734d45b3fe292b6214aba129587e7e693631c293
refs/heads/master
2021-10-18T18:46:06.557687
2019-01-17T22:12:57
2019-01-17T22:12:57
93,561,105
5
1
null
null
null
null
UTF-8
Python
false
false
527
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from languages.fields import LanguageField from .validators import validate_image_extension class UploadedImage(models.Model): # The model used in OCR recognition to proces this image imagelanguage = LanguageField(defa...
[ "jingchaoluan@gmail.com" ]
jingchaoluan@gmail.com
fe3657f499c9f10b71a26ef58326f2f95d5634cb
6c4486ab599fd5dea9006e41cdb89db54b47b77c
/tests/products/NGP_OBLIC_Create_Ballpark.py
92f3d21ced7693e315f188073ea8a95c59c80077
[]
no_license
kenito2050/Python-Page-Object-Framework-Example
28ba61cdc1498374be4fc088a1348e0acb754dc2
2a3a3e6c74dc7ec7c9acce41030e9487925b9b0c
refs/heads/master
2020-04-02T15:52:24.286208
2018-10-25T01:46:24
2018-10-25T01:46:24
154,587,117
0
0
null
null
null
null
UTF-8
Python
false
false
5,830
py
from xml.etree import ElementTree as ET import xlrd import time from pages.producer_center.ballpark.ballpark_Indication import BallPark_Indication from pages.producer_center.ballpark.ballpark_PAF import BallPark_PAF from pages.producer_center.ballpark.ballpark_download_send import BallPark_Download_Send from pages.prod...
[ "kvillarruel@nasinsurance.com" ]
kvillarruel@nasinsurance.com
2958eecfff5d168b9defe4a24e536c251c58de46
db331fb24e5b95131413c8d5cebc880674dd30f7
/foundation/migrations/0009_title_img2.py
d49553924ebcef455145509d19762fb843f2a4e0
[]
no_license
kmvit/personalsite
78fb18f428e3c95219d9145cb22bdefdf8896bf9
5da20e853055affdad4e6d21f36bae6cfe7507b7
refs/heads/master
2021-06-18T13:34:03.800622
2017-04-07T12:40:24
2017-04-07T12:40:24
27,366,313
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('foundation', '0008_auto_20141201_2156'), ] operations = [ migrations.AddField( model_name='title', n...
[ "kmv-it@yandex.ru" ]
kmv-it@yandex.ru
2027baa13a86b80c2c4129115502adb7fc1464ee
5ff670221e85384c4bf1a0eb377bcffb66caa1c5
/plot_histogram.py
ff091c4e7fe9bcfe28aa736f5ca00eaa9e036775
[]
no_license
jiejieautonomous/util_scripts
54cb62c635fb0146126bb3e94e05652a9e6f4d7c
db1c953eb2acf251b1dd5d22285ec59199fc75e6
refs/heads/master
2021-09-26T14:46:48.386992
2018-10-31T00:37:44
2018-10-31T00:37:44
109,363,071
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
import numpy as numpy import matplotlib.pyplot as plt with open("steering.txt") as file: data = numpy.loadtxt(file) data = numpy.array(filter(lambda x: x>-5, data)) plt.hist(data) plt.title("Gaussian Histogram") plt.xlabel("Value") plt.ylabel("Frequency") plt.savefig("histogram.png", dpi = 300) plt.show()
[ "32581447+jiejieautonomous@users.noreply.github.com" ]
32581447+jiejieautonomous@users.noreply.github.com
ff2b1e0c24570a6af8dd3afc556dc6a113bf32bd
6703e02500b0c6133b88a6cdcb7d697aab548a43
/utils/camera.py
a974fe66cff3977e75b750ab10c9cea24259409f
[]
no_license
volrath/aigames
f127b852efedd161f5bac257215e19f4d1c157a8
385d243c44d2c967ed3f6df10e44886f332745c2
refs/heads/master
2020-06-04T20:28:22.175879
2009-04-08T09:19:02
2009-04-08T09:19:02
196,714
4
0
null
null
null
null
UTF-8
Python
false
false
2,169
py
import pygame from pygame.locals import * from utils.locals import MAIN_VIEW, SIDE_VIEW, TOP_VIEW class Camera: """ Models an opengl camera """ def __init__(self, position=(0.,0.,0.), view=(0.,0.,0.), up=(0.,1.,0.)): self.position = {'x': position[0], 'y': position[1], 'z': position[2]} ...
[ "volrath.fp@gmail.com" ]
volrath.fp@gmail.com
e065d8213af8822e9badd779144dceb7ce76d332
6896a34d8f53fa31a3dbae8505eec15836a1382f
/tests/test_queen.py
74bfcda81bcaeb12effe9ff1644866459387440a
[]
no_license
mymorkkis/gamesroom
851dd04a992058d88dbe7db750c041a7850e1db1
267c5ff7ba761cb2e3f94b0219fcb99cdf1a83f4
refs/heads/master
2022-02-03T14:02:27.463480
2022-01-14T14:26:57
2022-01-14T14:26:57
140,058,904
0
0
null
2022-01-14T14:27:47
2018-07-07T06:29:46
Python
UTF-8
Python
false
false
950
py
"""Test module for Queen game piece.""" import pytest from src.game_enums import Color from src.games.game import Coords from src.game_pieces.queen import Queen @pytest.fixture(scope='module') def queen(): """Setup Queen start coords. Return Queen""" game_queen = Queen(Color.BLACK) game_queen.coords = Co...
[ "mveasey87@gmail.com" ]
mveasey87@gmail.com
4e5eb16ce8074b0b1e7cff77d6541d6dc9348b78
7f2c4de1b179524f9380376111f293c81ba57502
/authentication/urls.py
7f6bdc8a9493410054924e63b4745789b8035662
[]
no_license
archibishop/IOT-Dashboard
a3db5c1ae44a52cb354f6a2c956be1fb94609ad9
572b2a9eb23040752ff042c30694685e1b31bbcd
refs/heads/develop
2022-12-10T10:05:54.624103
2019-08-15T08:11:01
2019-08-15T08:11:01
196,520,261
1
0
null
2022-12-08T05:59:17
2019-07-12T06:18:34
HTML
UTF-8
Python
false
false
296
py
from django.urls import path from . import views urlpatterns = [ path('', views.Index.as_view(), name='index'), path('login', views.Login.as_view(), name='login'), path('signup', views.SignUp.as_view(), name='signup'), path('signout', views.Logout.as_view(), name='signout'), ]
[ "noreply@github.com" ]
archibishop.noreply@github.com
20713c09f61f91f229e758ab20e5ff3bd78ac04a
7a850daa2fd2aca0a84fd4c8c6e27fb4ae9cfc20
/Part 2/Chapter 11/Apriori_example(Listing_6).py
ac3e27220a2e12aaf214535d0bc02ce686273a4c
[]
no_license
knut0815/Book
e327d9df10729ed7ab958f0f5004bff706889bc0
ee2ff6604ac9df31bbad72d3e7693063597bfe70
refs/heads/master
2020-09-29T04:06:37.431783
2018-06-16T10:42:40
2018-06-16T10:42:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
#import statements from apyori import apriori #get the transactions transactions = [ ['A','B','C'], ['A','C'], ['B','C'], ['A','D'], ['A','C','D'] ] #apply apriori results = list(apriori(transactions,min_support = 0.5)) print(results[0]) print(results[1]) print(results[2])
[ "amd.srinivas@gmail.com" ]
amd.srinivas@gmail.com
a70eeb7b35e008a538944e58aa7d3ee6fb68255d
e6accded005467d24c40282fa3bdb6046a0db207
/Leet_Code/Longest_Palindrome.py
c904b7bc35ffbd8fea32a9cd516607a429a819cb
[]
no_license
holynekk/Competitive-Programming
12bacb55c0ebc8ce88ce908d06554e7ab0044fb2
30adfc5dbfc393c8acaa4ef504bbe0d2bc38fc8a
refs/heads/master
2023-09-01T17:56:02.875474
2023-08-29T13:22:02
2023-08-29T13:23:20
248,493,149
1
0
null
null
null
null
UTF-8
Python
false
false
415
py
class Solution: def longestPalindrome(self, s: str) -> int: char_dict = {} for char in s: if char_dict.get(char): char_dict[char] += 1 else: char_dict[char] = 1 total = 0 for x in char_dict.values(): total += x - x%...
[ "e238109@metu.edu.tr" ]
e238109@metu.edu.tr
9a742c9056cf5f650c3b533766a3db05037ea9ef
fa0740b723e516c64a79e11805a673c51f6c4224
/ilang/Samplers.py
52372bf07b4938cf709a73fa4bb370715e95b477
[ "BSD-2-Clause" ]
permissive
spedemon/iLang
5ab3ba2f4b2c4f7f6d77809278bf91122a49e1a6
fb64d14183b3658a4cf27eb8cff95c1483703c64
refs/heads/master
2021-01-23T21:34:02.741985
2018-06-27T21:38:36
2018-06-27T21:38:36
13,264,500
2
1
null
null
null
null
UTF-8
Python
false
false
33,008
py
# ilang - Inference Language # Stefano Pedemonte # Aalto University, School of Science, Helsinki # Oct 2013, Helsinki # Harvard University, Martinos Center for Biomedical Imaging # Dec 2013, Boston __all__ = ['Sampler'] from ilang.Graphs import Node, ProbabilisticGraphicalModel, name from ilang.Tracers import ...
[ "stefano.pedemonte@gmail.com" ]
stefano.pedemonte@gmail.com
a27f3a20b6fa8d1ba378c1d002f8540193ad314f
e547f7a92e7a1c1d79f8631f9e8ee8a93879a4eb
/src/repairs/orig_10.py
c3ab8fcb1de9b539ab3376dd8e20fd33d3a46618
[]
no_license
gsakkas/seq2parse
3c33ec7bc6cc6e4abd9e4981e53efdc173b7a7b9
7ae0681f1139cb873868727f035c1b7a369c3eb9
refs/heads/main
2023-04-09T12:29:37.902066
2023-01-18T21:32:12
2023-01-18T21:32:12
417,597,310
7
1
null
null
null
null
UTF-8
Python
false
false
47
py
a = 5 if 0 =< a < 10: print("test passé")
[ "george.p.sakkas@gmail.com" ]
george.p.sakkas@gmail.com
ffe252fc9f13e3ef55fa6cc9c12b9faff80dcad3
9155e552eaffac9cb046c9977579e149e9edc785
/bin/gunicorn_paster
e1641f6ab0bfd44b836f5e737f328e92de9a3513
[]
no_license
Mahmoudalqannas/Upskilling_project
e89b12b059085bdcf75da6bbdee8ae42bbae746f
60cc653be399ce28973a45a0cff1614c8421cdbe
refs/heads/master
2022-12-09T14:13:26.432963
2020-01-24T16:36:21
2020-01-24T16:36:21
236,038,863
0
0
null
2022-12-08T05:25:54
2020-01-24T16:25:38
Python
UTF-8
Python
false
false
271
#!/home/mahmoud/Desktop/website_from_github/github_website/bin/python3 # -*- coding: utf-8 -*- import re import sys from gunicorn.app.pasterapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "alqannas.m.94@gmail.com" ]
alqannas.m.94@gmail.com
e1777656b213d4c2844b2c00100ec25284c3bbdb
5a5e3e838ee72d9e2922192e6e0f240340ef6540
/visual_novel/visual_novel/context_processors.py
6e67bbd1726d615df0f6a60c8a3fcc09137c1903
[ "MIT" ]
permissive
dolamroth/visual_novel
6c89787079cf48dc0d0d70ca7ad3be3da97ae741
e3f1b13187e0fff5f6c94af907e0944b45f85fdc
refs/heads/develop
2023-07-26T19:50:42.472442
2022-11-22T11:54:26
2022-11-22T11:54:26
124,779,991
8
4
MIT
2023-09-10T13:37:13
2018-03-11T17:15:56
Python
UTF-8
Python
false
false
293
py
def global_settings(request): return { 'custom_admin_header_settings': _admin_custom_header_settings() } def _admin_custom_header_settings(): admin_header = dict() admin_header['header_title'] = 'Администрирование vn-russian' return admin_header
[ "noreply@github.com" ]
dolamroth.noreply@github.com
97fd14465e013db61fed8ed0b72b9e7fbdbe377a
ac4b821ae9ab3306e59059a40d3e3e74d18aa80b
/Glitch/Client/Messaging.py
6aa357ae72d6761f3e97fe276029ae64ab7abc65
[]
no_license
tylerreisinger/glitch_bot
ed8bd076df232e23dee8f0a4ceccf05cf5c797e3
6d6ee0d984f403bcc5ab7b73882c6c47b9190943
refs/heads/master
2020-06-27T22:21:34.815614
2016-11-22T20:23:25
2016-11-22T20:23:25
74,510,199
0
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
from Glitch.Events.Messaging import RoomOpenedEvent class ChatManager(object): def __init__(self, globalId, helpId): self._globalId = globalId self._helpId = helpId self._openRooms = [] def SendLocalChatMessage(self, client, message): return client.SendPacket('local_cha...
[ "reisinger.tyler@gmail.com" ]
reisinger.tyler@gmail.com
39f268f529d0a918c58b042419c5517ca79f2909
2f499e10aa3a55da76354a2a426ff8d5dd8fbd9d
/crepes_bretonnes/blog/migrations/0008_contact.py
318c592af92df0a453fde40c4378c5930cddc1e6
[]
no_license
OtmanAndour/Projet-8-Cours-OC
d16a81a7a2fb5211a96866d86faec4288655ec26
f31eb141ba5679b08f3ae1725b930e27cd32b75f
refs/heads/master
2020-05-19T06:13:00.603002
2019-05-09T13:29:44
2019-05-09T13:29:44
184,867,772
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
# Generated by Django 2.2 on 2019-05-05 09:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0007_article_slug'), ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', ...
[ "andour.otman@gmail.com" ]
andour.otman@gmail.com
a0a4f5653ab88ed2135ff8bf01ab21870eb8ee7d
aeb76e7e5be21cab34407cea229a45f196b3caf1
/src/analysis/math_utils.py
1125e4af15a129eb659a5c6549d2fd6c1841f99e
[ "MIT" ]
permissive
Frama-99/Whisking-Analysis
63bfb0490400e3e23f369de34dd3fa9fba09d632
46552e20eb84582857848ec44b034844fbe191a4
refs/heads/master
2023-02-21T23:04:31.574307
2021-01-02T06:29:15
2021-01-02T06:29:15
263,380,319
2
0
MIT
2020-05-20T02:30:05
2020-05-12T15:43:52
Python
UTF-8
Python
false
false
1,901
py
import numpy as np from scipy.spatial import distance as dist def regress(df_x, df_y, df_likelihood, start_df_ind, end_df_ind, frame): # print("Regressing frame", frame) x_arr = df_x[start_df_ind:end_df_ind, frame] y_arr = df_y[start_df_ind:end_df_ind, frame] ind_to_delete = np.array([]) for bp_...
[ "ma990801@gmail.com" ]
ma990801@gmail.com
036cc5c5eb1b3c9b6e0a55d8c7af30556fad3348
b47ee8aed3c76d1a9222f3563bb6592f7e9d6eed
/ASSIGNMENT 5/3.1.N_asterisks.py
3ca0e5683ce007be022dad84de43395528538705
[]
no_license
ranjithkumar121/Python
3697554852335d9af8683a554a3f36e146ab109e
5af562edca1a792141974d26962415533c12045e
refs/heads/main
2023-06-19T00:18:08.191503
2021-07-12T07:05:18
2021-07-12T07:05:18
347,558,862
0
0
null
null
null
null
UTF-8
Python
false
false
57
py
n=int(input()) for i in range(n): print("*",end='')
[ "noreply@github.com" ]
ranjithkumar121.noreply@github.com
3e8474ef201455aa5739a31fe47a4749d1b82850
e6f4e3afd16a7ee5c7a8fb61f7ed697ce88ef4c4
/Pro2/abcpp/abcpp/treeplot.py
c8a4ebaadf40cfd0ca32ddbb58e1a29142193621
[]
no_license
xl0418/Code
01b58d05f7fae1a5fcfec15894ce0ed8c833fd1a
75235b913730714d538d6d822a99297da54d3841
refs/heads/master
2021-06-03T21:10:31.578731
2020-11-17T07:50:48
2020-11-17T07:50:48
136,896,128
0
0
null
null
null
null
UTF-8
Python
false
false
5,549
py
import sys, os import platform if platform.system() == 'Windows': sys.path.append('C:/Liang/abcpp_master8/abcpp') elif platform.system() == 'Darwin': sys.path.append('/Users/dudupig/Documents/GitHub/Code/Pro2/Python_p2') from dvtraitsim_py import DVSim from dvtraitsim_shared import DVTreeData, DVParam import n...
[ "xl0418@gmail.com" ]
xl0418@gmail.com
446770e0649d43b764b19c811db9a3848df664ba
6cd5ab1d73196765266b746c18079ea43f901c58
/shop/migrations/0003_order.py
051671a9c5651bc532e95e32e380f222a132171b
[]
no_license
val-h/mercator
e128967e72de780de4d18d82ee3e3676a241d971
77cff19a987e2905bafcbff579d2567492317a20
refs/heads/main
2023-07-19T18:40:15.001354
2021-09-03T14:45:33
2021-09-03T14:45:33
382,549,535
1
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
# Generated by Django 3.2.5 on 2021-07-20 13:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('shop', '0002_alter_image...
[ "valentin97mirchev@gmail.com" ]
valentin97mirchev@gmail.com
c01a85edbe50705d0130f3d5a07c86dfb7ab36ac
f82b6f095b4c83b6f3c8691c0e56c2acb026749a
/cluster_identification/lanthipeptide_gb_mining.py
78391cbb99cf2881c4e3c1eeb49b4a042e09a018
[]
no_license
mcwalker-group/reimagined-octo-funicular
27a1e01bf3f09f96b03bacb7178b8aa3068174cc
6be1cfb1ba5265aafecdc0cabc4e774f0921596f
refs/heads/master
2020-09-15T14:54:44.575718
2019-11-26T16:52:10
2019-11-26T16:52:10
223,482,137
0
0
null
null
null
null
UTF-8
Python
false
false
4,582
py
from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.Alphabet import IUPAC import re import os import time import find_cluster import pep_processing import glob acc = 'lanC-like.acc' #file with cluster accessi...
[ "noreply@github.com" ]
mcwalker-group.noreply@github.com
b973f93f7d741dfd49d54492b0d5b830f78b4317
7c5f1ee6440b810d8cc0ded97ad6c2b3216d7caa
/assignment1/project_params.py
2a1db91442ad080bdf5c9820f150b0ca9c17ff32
[]
no_license
ChristianFusco/homework_ai
2114e905bd4a730812bc109cec6a98436cf5debd
7970b58e492e9482deac5d177940d2a96846ca96
refs/heads/master
2021-01-23T08:29:30.330719
2017-10-18T15:48:42
2017-10-18T15:48:42
102,526,172
0
0
null
null
null
null
UTF-8
Python
false
false
1,789
py
# Author: Christian Fusco # Class: CSI-480-01/02 # Assignment: Python Practice # Date Assigned: ??? # Due Date: 9/11/2017 # # Description: # A short introduction to python. # # Certification of Authenticity: # I certify that this is entirely my own work, except where I have given # fully-documented references to the wo...
[ "christian.fusco@mymail.champlain.edu" ]
christian.fusco@mymail.champlain.edu
79b729366e1e6dd4733ec4c9c4f4199ddbfb9d6a
7b91755b1c777248050f3cadf23ed34d1f10adef
/Section3/14.py
86af53d07f05b5c224b8112a78a39b964bf71c05
[]
no_license
JAntonioMarin/PythonBootcamp
ef2976be0204df44e0c56a521628c73a5d274008
6e4af15b725913d3fda60599792e17d7d43d61d2
refs/heads/master
2021-01-06T16:52:57.537678
2020-03-26T17:36:50
2020-03-26T17:36:50
241,406,222
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
print('hello') print("world") print('this is also a string') print(" I'm going on a run ") print('hello \nworld') print('hello \tworld') print(len('hello')) print(len('I am')) # Coding Exercise 2: Quic Print Check print("Hello World")
[ "avalanch.psp@gmail.com" ]
avalanch.psp@gmail.com
cb52f9c28303ef6fe3c1b1de5b15d447c04d65a9
9b32151fc41719c6292be9d787c5a43aeb1d42ca
/boloo_app/views.py
e7c9b2cc1fd6c76ff66e925e41379d55bdd4a481
[]
no_license
vinzane123/assignment
05fd7f41535e16054a7565a1c5d3099b976f3214
cd555a9f5c19dca540f9a4ff241b2bed1cdbc6ce
refs/heads/master
2022-12-12T19:19:41.066236
2020-02-13T06:49:04
2020-02-13T06:49:04
240,072,450
0
0
null
2022-12-08T03:36:16
2020-02-12T17:26:14
Python
UTF-8
Python
false
false
10,421
py
from django.shortcuts import render from django.http import HttpResponse,JsonResponse from django.views.decorators.csrf import csrf_exempt import datetime import json import re import requests import os import time from celery import group import asyncio from final_bol.settings import client_id,client_secret,URL_CLOUD ...
[ "vinodhpolamarasetty@gmail.com" ]
vinodhpolamarasetty@gmail.com
366b123835d76c2d1d9da799e97242bd5b6eb115
051c3ee44478265c4510530888335335ec9f7fdf
/ML_Applications/CNNs/Mutants/Mutants_generated_by_MutPy_(code)/mutants_resnet/mutants_resnet_model_VERML_basedOn_nas_fix4_deterministic/227.py
db2b7a8e3c4f11397abeacd5d10e97ec30844aa5
[]
no_license
PinjiaHe/VerifyML
b581c016012c62d8439adfce0caef4f098b36d5e
3bd7c49e45720c1cdfe0af4ac7dd35b201056e65
refs/heads/master
2020-03-25T19:40:39.996370
2018-01-30T08:58:58
2018-01-30T08:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,666
py
"""Contains definitions for the preactivation form of Residual Networks. Residual networks (ResNets) were originally proposed in: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 The full preactivation 'v2' ResNet variant implemented in this modu...
[ "anurag.bms@gmail.com" ]
anurag.bms@gmail.com
6992fdef849f4eac389603da73bf111c08fa1ab7
badd20c8bca2ac72bff2d4563fb82f73267a32eb
/Ground_Station/GUI/Release/Tethered_Flight_2.0/login_functions.py
38b792bac492c38926329fca6bdf2977b333889f
[ "GLWTPL" ]
permissive
EagleEyeisu/FlightSoftware
08d4f584782fa1621fe8a05d2199ce107e90f0ce
af7e03976db98527b7072a8a35ba7b9769b59d4f
refs/heads/master
2020-12-03T21:38:57.673055
2020-02-11T02:05:37
2020-02-11T02:05:37
66,887,916
3
4
null
2019-01-24T04:19:12
2016-08-29T23:18:52
Python
UTF-8
Python
false
false
3,676
py
############################################################# # # Property of Eagle Eye. # # Authors: # Jared Danner # ############################################################# from tkinter import * import globals as g class Login_Terminal(): def __init__(self): """ Initialization function for t...
[ "jareddanner3@gmail.com" ]
jareddanner3@gmail.com
44c60c0e1278fc5c2b982c62e1a100195ea7daee
3f518acd890391d11304abea9d876513530aa987
/src/models.py
5185b6604a3228b651b25161489649222d4fc7f3
[]
no_license
PKUGoodSpeed/Futures
88325ffc98a6eebbec7b80b70d4469ea05604153
24e9960d58bdd5b3331b4dfe60969789000cad00
refs/heads/master
2021-05-09T19:22:21.891106
2018-02-06T00:59:34
2018-02-06T00:59:34
118,639,969
1
0
null
null
null
null
UTF-8
Python
false
false
5,778
py
''' Constructing keras models ''' ## Math and dataFrame import numpy as np import pandas as pd import plotter ## Traditional Machine Learning from sklearn.linear_model import Ridge, LogisticRegression from sklearn.model_selection import train_test_split, cross_val_score from sklearn.feature_extraction.text import Coun...
[ "zebo@ginkgo-llc.com" ]
zebo@ginkgo-llc.com
b13d8791da0cebf4917a14b354b40afbad5d5415
b7e48b1b0a5a24ff61ced3ae90c7f3f4e15e0630
/21-30/ex_29.py
dbb2337c0346848036d111d12f42fb1ffa44752f
[]
no_license
Tubesocrates/LPHW
0d011bf348518e2026abb3b1073105237033bb3e
10f06e69dae8d2e11d5d26bea20a6e60f85faf2f
refs/heads/master
2020-06-29T02:28:32.621512
2019-12-05T22:06:44
2019-12-05T22:06:44
200,411,992
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
people = 20 cats = 30 dogs = 15 if people < cats: print("Too many cats! The world is doomed!") if people > cats: print("Not many cats! The world is saved!") if people < dogs: print("The wrld is drooled on!") if people > dogs: print("The world is dry!") dogs += 5 if people >= dogs: print("Peopl...
[ "josh.johnson.w@gmail.com" ]
josh.johnson.w@gmail.com
f06eb07b2769c485c79383ffe3d9e63c0e6da8e7
c76ecb867227c5b298e0b17fe1d3f61e1e18e0fd
/test/functional/test_runner.py
ea1dc818c401ef86a156aaeda5e409c65a610e77
[ "MIT" ]
permissive
elspero-project/elspero
841eb940b002ea0c5d0f8282679c144ef1a3dc37
229dade3027a4cc8a8fabffb420b313a635725ad
refs/heads/master
2020-07-09T01:17:49.627706
2019-08-24T13:42:03
2019-08-24T13:42:03
164,885,736
0
1
null
null
null
null
UTF-8
Python
false
false
20,238
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
[ "progof031@gmail.com" ]
progof031@gmail.com
d2ceef1ca292ea9cd0711209f50a4b101e5b5373
df0ffee7c8085a5809cfa447e50bb2e5ae59fdec
/train.py
061c0e8ec0d33537ab5a4a7bc4b592483c5af7f8
[ "MIT" ]
permissive
harisreedhar/keras-cnn-1drnn-ctc
c0a4e97b601554ceaf7d63d7dc10674f4e287cb3
e27f717c2c8af75f4774c62a81f70f46c4e8eadf
refs/heads/master
2022-04-23T16:00:04.213077
2020-04-19T14:05:48
2020-04-19T14:05:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,016
py
import os import logging from keras_htr import get_meta_info, LEREvaluator, decode_greedy from keras_htr.generators import LinesGenerator from keras_htr.models.encoder_decoder import ConvolutionalEncoderDecoderWithAttention from keras_htr.models.cnn_1drnn_ctc import CtcModel from tensorflow.keras.callbacks import Callb...
[ "supernovaprotocol@gmail.com" ]
supernovaprotocol@gmail.com
4ace2fc1e8c91a478f8a30d4c05304b114ee661f
ce3497b16da38be061b4381785c5fb3258a4bce5
/src/scripts/rms_test.py
6359856564e6ffae084fdc178fc3f488681ad76f
[]
no_license
dsr373/mirrors
13f390aa805b7824f7457acfaaf0d0a81630c4b5
b64a4edab8b4c917cc9129330e001ca79b8e4cc8
refs/heads/master
2021-02-07T11:56:40.714244
2019-04-29T14:10:02
2019-04-29T14:10:02
244,022,607
0
0
null
null
null
null
UTF-8
Python
false
false
2,399
py
#!/usr/bin/python3 import os import numpy as np import matplotlib.pyplot as plt import matplotlib from util import * FONTSIZE = 18 CAPSIZE = 7 FIT_LABEL = "$y={:4.4f}x{:+4.4f}$" FIT_INFO = "Slope: {:4.6f} +/- {:4.6f}\nIntercept: {:4.6f} +/- {:4.6f}" FIGSIZE = (9, 8) def plot_depth(data): xs = np.array(data[0]...
[ "seremet.dan@gmail.com" ]
seremet.dan@gmail.com
a823d40e45f948799c58daf72f5a9314e5da1b4c
25e481ef7fba79285f4c8a7fa2e81c8b2b7f9cce
/saleor/core/permissions.py
093869518cad2dc41e345780942a66464273b61a
[ "BSD-2-Clause" ]
permissive
arslanahmd/Ghar-Tameer
59e60def48a14f9452dfefe2edf30e362878191d
72401b2fc0079e6d52e844afd8fcf57122ad319f
refs/heads/master
2023-01-31T04:08:26.288332
2018-06-07T18:02:01
2018-06-07T18:02:01
136,231,127
0
0
NOASSERTION
2023-01-11T22:21:42
2018-06-05T20:28:11
Python
UTF-8
Python
false
false
957
py
from django.contrib.auth.models import Permission MODELS_PERMISSIONS = [ 'order.view_order', 'order.edit_order', 'product.view_category', 'product.edit_category', 'product.view_product', 'product.edit_product', 'product.view_properties', 'product.edit_properties', 'product.view_sto...
[ "arslanahmad085@gmail.com" ]
arslanahmad085@gmail.com
2e92cd81e512454e2d3f9a8e81c11d227c03b534
534a13a18fc93b5c163f76edb88ab9d97813b9c9
/contacts/contacts.py
10cb337bcae559d1391401451305a48756071458
[]
no_license
B0Kimm/Study
83312b7fa32ed677ed90123d3f551b139c2ecdd0
16fbdc1360c16d855656f78d4f929e64dd1d4622
refs/heads/master
2022-12-29T13:38:16.126029
2020-10-16T10:44:23
2020-10-16T10:44:23
297,597,368
0
0
null
null
null
null
UTF-8
Python
false
false
4,605
py
class Contact : def __init__(self, name, phone, email, addr) : # pass # 위 파라미터를 보고 나머지 완성 self.name = name #self.name과 name은 서로 다른 존재인데, 값을 할당하므로써 연결 self.phone = phone self.email = email self.addr = addr # ^^속성/값을 정의 def print__info(self) : print(f'이름 : {self.nam...
[ "bo.kim0226@gmail.com" ]
bo.kim0226@gmail.com
cdcb7f7408bf2bd203429928d9ca2240c1d4e1fd
ba36953039e986a589cd711f0a36d71361e18fa3
/test3.py
c65e1f37e8aced6e0dae6ca907d0b8aaea588852
[]
no_license
ShiroOYuki/Face_Tracking
be223fcab11ba3ad83d28fcfe3b8a81812b5f113
aa258b1aa3866f440ec501dbecd07b3cfc16e3f2
refs/heads/main
2023-08-18T03:53:19.508252
2021-09-23T04:51:48
2021-09-23T04:51:48
398,284,240
0
0
null
null
null
null
UTF-8
Python
false
false
868
py
import serial import numpy as np import matplotlib.pyplot as plt ser = serial.Serial() ser.baudrate = 9600 ser.port = "COM7" ser.open() count = 0 l2 = [] while True: i,j = 0,0 l = [] while i<8: while j<8: data = ser.read() try: val = int(int.from_bytes(data...
[ "63907529+ShiroOYuki@users.noreply.github.com" ]
63907529+ShiroOYuki@users.noreply.github.com
a1a780150649a93bfbd4a2688d95448739078148
2cec023820d2662271274bc85929620445dd5524
/np/wsgi.py
8f66592145abf9c5028828ea6c055dc4560e19b1
[]
no_license
Destarossa/belblog
fedd638717cb5ee06d86f7da00b3666013267791
7236e8cdafdfe1973ef4e4d65cb7673a5c6f976d
refs/heads/master
2022-09-10T02:01:42.710964
2020-05-26T01:00:24
2020-05-26T01:00:24
266,903,557
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
""" WSGI config for np project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_M...
[ "simoko9900@gmail.com" ]
simoko9900@gmail.com
f6200c41fbfc26030afb9f8196b7c6948fbc18be
ecf0d106831b9e08578845674a457a166b6e0a14
/OOP/inheritance_EXERCISE/restaurant/project/food/dessert.py
6f120937221db42a44dd44819bf082a0f5df016c
[]
no_license
ivo-bass/SoftUni-Solutions
015dad72cff917bb74caeeed5e23b4c5fdeeca75
75612d4bdb6f41b749e88f8d9c512d0e00712011
refs/heads/master
2023-05-09T23:21:40.922503
2021-05-27T19:42:03
2021-05-27T19:42:03
311,329,921
8
5
null
null
null
null
UTF-8
Python
false
false
288
py
from project.food.food import Food class Dessert(Food): def __init__(self, name: str, price: float, grams: float, calories: float): super().__init__(name, price, grams) self.__calories = calories @property def calories(self): return self.__calories
[ "ivailo.ignatoff@gmail.com" ]
ivailo.ignatoff@gmail.com
9a9f2f15e46689e698a6cf1af6e148036e507196
0444e53f4908454e2e8ab9f70877ec76be9f872c
/reportng/migrations/0025_auto_20161204_2336.py
76552396407602970196277f9a8d5e618d06029d
[ "MIT" ]
permissive
dedayoa/keepintouch
c946612d6b69a20a92617354fef2ce6407382be5
2551fc21bb1f6055ab0fc2ec040c6ba874c2838f
refs/heads/master
2020-03-22T12:53:44.488570
2018-08-17T13:00:51
2018-08-17T13:00:51
140,069,262
1
1
null
null
null
null
UTF-8
Python
false
false
487
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-12-04 22:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reportng', '0024_auto_20161204_2123'), ] operations = [ migrations.AlterFie...
[ "dedayoa@gmail.com" ]
dedayoa@gmail.com
f9d6c58a95f2f31a18cae1c8b336fef90528b0c9
fbd2c939318d02fd843f904547a448b1fd3b91e6
/jingtum/admin.py
61e358b24a9585acdbeec1487ff755195b7d9607
[]
no_license
moactum/moacscan
2d862ecb80920260ad94edaf216951e71b705409
2c81a62965815b8d95346a11e14c30b6503c262a
refs/heads/master
2020-03-20T08:09:37.137056
2018-09-21T15:34:20
2018-09-21T15:34:20
129,925,266
1
0
null
null
null
null
UTF-8
Python
false
false
1,253
py
from django.contrib import admin from .models import * from decimal import Decimal # Register your models here. #@admin.register(Currency) #class CurrencyAdmin(admin.ModelAdmin): # list_display = ('name','issuer') # #@admin.register(Agent) #class AgentAdmin(admin.ModelAdmin): # list_display = ('name','wallet','user') ...
[ "lospringliu@gmail.com" ]
lospringliu@gmail.com
17537cbc584d4ebb28f1282403dee16b24b6a73c
d116cecc8504278f8bbdb99502f42377a92363f0
/ddpg.py
17f6179610bc84326afa256086bdb4e8bee14c35
[]
no_license
tedrepo/rnnDPG
6a4fb2921259c71ac2d3804990a3b60a410c7afd
42e9c7e28f6a333efa079a6707596db7b7f1e6d5
refs/heads/master
2020-04-04T02:04:12.898615
2017-04-06T14:12:41
2017-04-06T14:12:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,316
py
#! /usr/bin/env python #coding=utf-8 import numpy as np from actor import ActorNet #actor network only add state in input and output from critic import CriticNet #critic network only change in input from collections import deque from gym.spaces import Box,Discrete import random from tensorflow_grad_inverter import gra...
[ "niulyhappy@126.com" ]
niulyhappy@126.com
0c95d56e27f26ed4f9b3ece520aff48e271f9e18
a2e9b05815df63be0b052d492be5eea8d96f68b9
/0x0B-python-input_output/4-from_json_string.py
29574b9baf864e00e0d7141b819abe6dc4650daf
[]
no_license
jhonnjc15/holbertonschool-higher_level_programming
c903e7e361ac8b93fde79570f390cef65aa07f7f
f2259aa478428709d945ee22d6796ad594133890
refs/heads/main
2023-08-10T16:45:00.581756
2021-09-24T03:43:46
2021-09-24T03:43:46
361,815,970
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
#!/usr/bin/python3 """Modue that returns an object represented by a JSON string""" import json def from_json_string(my_str): """ Function that returns an object represented by a JSON string Args: my_str: string to convert """ return json.loads(my_str)
[ "jhonatanjcca@gmail.com" ]
jhonatanjcca@gmail.com
9591b223d52310912c74667e3148d1398f10c830
124fe233f9cc86898756b3c0fc2988c69001f670
/tests/test_stat.py
212f9eec83cf924d08398be7ee3032045c77594c
[ "MIT" ]
permissive
jon-rd/jc
0c4e043ccc40fdf7a0771d48cec4d86321fc4588
1e18dd30a824b0463f0cad86e0da7094c47d34f9
refs/heads/master
2023-04-16T01:39:16.961164
2021-03-05T19:50:37
2021-03-05T19:50:37
351,145,638
0
0
MIT
2021-04-14T14:13:28
2021-03-24T16:14:42
null
UTF-8
Python
false
false
2,659
py
import os import json import unittest import jc.parsers.stat THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class MyTests(unittest.TestCase): def setUp(self): # input with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/stat.out'), 'r', encoding='utf-8') as f: ...
[ "kellyjonbrazil@gmail.com" ]
kellyjonbrazil@gmail.com
bfc343124d28802e0f4bd2ba30267e0ec368741c
3d7351a55677f2a8b4d6b87fca9ef52d8e99aa2b
/Tarea1/lista.py
284026a9accffef9f8541fd46c9cad36c9b6e05d
[]
no_license
DerekCI/CursoPython
20a9cdafd6938e005c493eb86422745e3f77d702
e12720aa91ff2a8f6d5692cc09b8031f5688f672
refs/heads/master
2020-05-23T08:35:57.501936
2019-05-21T19:29:21
2019-05-21T19:29:21
186,691,132
2
1
null
null
null
null
UTF-8
Python
false
false
48
py
lista = [1, 2.5, 'kereD', [5,6] ,4] print(lista)
[ "derekcortez16@gmail.com" ]
derekcortez16@gmail.com
cd6aeebc876b91d8c75a9e3409a6df032f249b28
0e61ff85fba6fa4f3ea6e2a6cccd033d95242523
/FizzbuzzApi/endpoints/metricsEP.py
710e73b9c7f376a18b4d90cf7a8766333b156a84
[]
no_license
phenixzr/FizzbuzzApi
876fba5a6ea093d5c14034275cff1feaa3f09343
b3d54b6eb312a5507254469f792b6fba6190bfe8
refs/heads/master
2023-01-06T03:30:04.842897
2020-10-30T10:47:13
2020-10-30T10:47:13
306,697,092
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
""" Handle metrics endpoint This module contains the endpoint code behind the metrics """ from flask_restful import Resource from FizzbuzzApi.database.fizzBuzzRQ import FizzBuzzRQ from FizzbuzzApi import swagger class MetricsEP(Resource): """ MetricsEp class Class that handle users query behind '/v1/metrics...
[ "phoenixzr@hotmail.fr" ]
phoenixzr@hotmail.fr
d92dab64ead092890dbcea7bf09ab6f8f52ac179
cef1e1ede623f22a433ce299fecc803a8e3dea4f
/FlaskAPI/requests.py
37d04620a49dd56509f0f7115005e0a7323ab3c6
[]
no_license
nathankts/ds_salary_proj
8d29c9026b24bcc56daef157fecb1677e3332ef3
a597f81cd13628af5b8876b5bd20d614a2db829d
refs/heads/master
2022-12-19T19:32:24.324541
2020-11-01T17:19:06
2020-11-01T17:19:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
# -*- coding: utf-8 -*- """ Created on Sun Nov 1 13:55:03 2020 @author: Nathan """ import requests from data_input import data_in URL = 'http://127.0.0.1:5000/predict' headers = {"Content-Type": "application/json"} data = {"input": data_in} r = requests.get(URL,headers=headers, json=data) r.json...
[ "noreply@github.com" ]
nathankts.noreply@github.com
b0dd547c60357b7f4540d9f1064f30da3da49bfb
3b89c0a97ac6b58b6923a213bc8471e11ad4fe69
/python/CodingExercises/Median.py
9fca643773716391f6ec77c8b200529cd534e8b8
[]
no_license
ksayee/programming_assignments
b187adca502ecf7ff7b51dc849d5d79ceb90d4a6
13bc1c44e1eef17fc36724f20b060c3339c280ea
refs/heads/master
2021-06-30T07:19:34.192277
2021-06-23T05:11:32
2021-06-23T05:11:32
50,700,556
1
3
null
null
null
null
UTF-8
Python
false
false
454
py
# Find median of an Array of numbers def Median(ary): ary.sort() print(ary) if len(ary)%2!=0: mid=int(len(ary)/2) return ary[mid] else: idx1=int(len(ary)/2)-1 idx2=int(len(ary)/2) return (ary[idx1]+ary[idx2])/2 def main(): ary=[5, 89, 20, 64, 20, 45] ...
[ "kartiksayee@gmail.com" ]
kartiksayee@gmail.com
bfce9d136fc8f0d5498c2c68464b5e93bbfc3feb
5cd515be8878b1091787ab64a0fb1485c97de570
/scrape/wsdot.py
7aed27c452a0e11c3d96e96dad3b96af3620f764
[]
no_license
arimar/uw_python
9f2787f1f5c53b6e5151e618ad9a3b9726b91e65
155599aac2a1cd1d15483f9b2ac21977ee00f107
refs/heads/master
2021-01-25T03:54:20.961503
2012-03-06T08:27:46
2012-03-06T08:27:46
3,138,324
0
0
null
null
null
null
UTF-8
Python
false
false
2,359
py
import urllib2 from BeautifulSoup import BeautifulSoup page_north = urllib2.urlopen('http://www.wsdot.wa.gov/small/Seattle/TravelTimes/nbtimes.aspx') page_south = urllib2.urlopen('http://www.wsdot.wa.gov/small/Seattle/TravelTimes/sbtimes.aspx') soup = BeautifulSoup(page_north) print "********************************...
[ "rtarima@yahoo.com" ]
rtarima@yahoo.com
3db0ebeb7b9b731c2659609646a1967a56c83c38
0b04bd3f290b44d0f862ccdce98b9013d52a6e73
/Alumno/models.py
a6727984dee8a02ed1a509af4bd9b37c447f984e
[]
no_license
JosePablo24/ProyectoArq
6a621ece702fb65300bc511273f11d5299ab55b9
d069e6574be06462c0b217d42fd2e225ec8aadc6
refs/heads/master
2022-12-13T19:11:12.681625
2019-07-02T00:14:41
2019-07-02T00:14:41
194,610,063
0
0
null
2022-12-08T05:17:49
2019-07-01T06:08:04
Python
UTF-8
Python
false
false
475
py
from django.db import models from django.utils import timezone class Alumno(models.Model): name = models.CharField(max_length=100, null=False) lastname = models.CharField(max_length=100, null=False) matricula = models.IntegerField(null=False) delete = models.BooleanField(default=False) ...
[ "173198@ids.upchiapas.edu.mx" ]
173198@ids.upchiapas.edu.mx
65ba12265ec9faffe3d18ec718e81ba5893e0a1e
d659810b24ebc6ae29a4d7fbb3b82294c860633a
/aliyun-python-sdk-unimkt/aliyunsdkunimkt/request/v20181212/ScanCodeNotificationRequest.py
5835e1a20aefefe670ace4df8bd671a5268d659a
[ "Apache-2.0" ]
permissive
leafcoder/aliyun-openapi-python-sdk
3dd874e620715173b6ccf7c34646d5cb8268da45
26b441ab37a5cda804de475fd5284bab699443f1
refs/heads/master
2023-07-31T23:22:35.642837
2021-09-17T07:49:51
2021-09-17T07:49:51
407,727,896
0
0
NOASSERTION
2021-09-18T01:56:10
2021-09-18T01:56:09
null
UTF-8
Python
false
false
5,343
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
1bfcccd0824e4ca8c220ab6704e8af747eda13f3
39abed06d538d56ad7e535e29aea8c180e3c3f6d
/test/unit3/test_skulpt_bugs.py
28d306365b5edfcf4fb72f561ff928a983e48039
[ "MIT", "Python-2.0" ]
permissive
s-cork/skulpt
2172f302caa7a49833452e61fc78adff8480c28b
6bee457af620e7ffaebf7253058bf40ac158774e
refs/heads/master
2023-08-09T19:40:24.076195
2022-03-24T06:07:52
2022-03-24T06:07:52
233,208,223
3
1
NOASSERTION
2023-06-09T10:01:56
2020-01-11T09:38:40
Python
UTF-8
Python
false
false
562
py
"""Unit tests for zero-argument super() & related machinery.""" import unittest class A: def __init__(self, foo): self.foo = foo def __str__(self): return f"{self.__class__.__name__}({self.foo})" class B(A): def __init__(self, foo): super().__init__(foo) class TestSuper(unitte...
[ "stu@anvil.works" ]
stu@anvil.works
83b787cef85760658c0b52721ba002a699117420
06e392c3f81d8828872e3fa8467ec77c08a842ca
/TextUtils/textutils/textutils/asgi.py
3994cc54891b6274457d08d03c69fbd143121fd5
[]
no_license
Takshit-hub/textutiles
65648ef12ff6e7252020a2429c2df411acd8c60d
11e1deac8b00d14caf36efdf4d2c3e7bbcdda2ff
refs/heads/main
2023-06-05T07:38:15.135845
2021-06-29T04:19:18
2021-06-29T04:19:18
381,236,376
1
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" ASGI config for textutils project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefaul...
[ "noreply@github.com" ]
Takshit-hub.noreply@github.com
66598ec0257be4760b1dc38c8228fa5050235c13
6929a33a7259dad9b45192ca088a492085ed2953
/solutions/0062-unique-paths/unique-paths.py
1ac2c0fb3f2cb34e18806ccd977c68cdb4bb37c1
[]
no_license
moqi112358/leetcode
70366d29c474d19c43180fd4c282cc02c890af03
fab9433ff7f66d00023e3af271cf309b2d481722
refs/heads/master
2022-12-10T01:46:14.799231
2021-01-14T05:00:09
2021-01-14T05:00:09
218,163,960
3
0
null
2022-07-06T20:26:38
2019-10-28T23:26:47
Python
UTF-8
Python
false
false
1,747
py
# A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). # # The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below). # # How many possible unique paths are there?...
[ "983028670@qq.com" ]
983028670@qq.com
98069a81fbaa6a06cc3c4916d85f71be1d7c1600
35c9290b3ff2d7cf4b3a21c6f94a64e63118a049
/main.py
321d20f3e14f40e637abb73577aa8d26875d4e80
[]
no_license
jjhb94/user-signup
48016a4390b22f63d72b84ccd5a8003144b925dc
016fedea8a3d04de2471f5fa2aa760aa7c2d3f5d
refs/heads/master
2020-05-09T10:09:09.621336
2019-04-22T22:31:16
2019-04-22T22:31:16
181,029,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
from flask import Flask, request, render_template, redirect app = Flask(__name__) app.config['# DEBUG'] = True form = "" @app.route("/", methods=['POST']) def validate(): email_name = request.form["Email-Address"] user_name = request.form["User-name"] #this takes the number field and converts it into...
[ "jjhb94@gmail.com" ]
jjhb94@gmail.com
8cbae2a065e974ac1f1a2a114a2c7be79f3abaa6
ebbb4ddb66ab045418a97323ddcf3325acf8c97e
/parse_nyt_data.py
2b221d03b9ec3d63537ab88c1a1cf035e377417e
[]
no_license
ChrisSettles/Covid-Parsing
0094f29824609607f5472c3ca0643fc7f36ea35a
fb34805e08dcfc2d575a54cd1661694cd8236343
refs/heads/master
2022-12-18T22:43:21.128679
2020-09-24T04:13:19
2020-09-24T04:13:19
298,166,416
0
0
null
null
null
null
UTF-8
Python
false
false
1,626
py
import re from file_utils import loadWithJSON """ Example: $ python parse_nyt_data.py "Harrisonburg city,Virginia" "harrisonburg.json" """ def ParseNytData(county_name, output_file): """ Translate us-counties.csv into output_file.json containing data from the specified county Args: county_...
[ "settl2cr@dukes.jmu.edu" ]
settl2cr@dukes.jmu.edu
48550667dcad6e61ccf7be37b6ea931ba0700e3b
b4597b281be2f4d74d8aad992421ad3b94000afd
/authenticate/asgi.py
845dc4a57f857b7fd5403ad2c30bd874d2280927
[]
no_license
orashar/Authentication-django
02f96379494af28a1f49fbbacfd2504e39711f5f
0d10c8b9613a2d503d063f64ef4af41b6fd12973
refs/heads/main
2023-06-25T12:11:16.760454
2021-08-02T11:17:40
2021-08-02T11:17:40
391,919,775
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for authenticate project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "omparashar15@gmail.com" ]
omparashar15@gmail.com
b751b838ec055e7b1789f7bbb82d99bf24bd5cf0
0f82c3d0df1bf4338d4063a39cf3418ce6329ceb
/plotter/collisions.py
d8f5432f1c1074ddd4341a8de027553ab878f527
[]
no_license
migdiluca/brownian-motion
818640e7e41610b42ada9784ab2140cb65c8c048
108d83595a796963c3d71ed23b9022daceab2ab3
refs/heads/master
2023-03-21T18:39:25.363764
2021-02-26T17:49:18
2021-02-26T17:49:18
251,134,704
0
0
null
null
null
null
UTF-8
Python
false
false
1,588
py
import numpy as np import matplotlib.pyplot as plt import os import seaborn as sns import plotter.utils as utils def collisions(): print("-> Collisions selected") default = utils.ask_boolean("Do you want to use default values? 'y' for yes and 'n' for no : ") step = 0.0001 if not default: st...
[ "fastiz@itba.edu.ar" ]
fastiz@itba.edu.ar
2bebb31050c1eea8eec0d868ef0ad1ce49749f7d
38bee274b237e508175be4c37bf357621ed50195
/pde/pdes/allen_cahn.py
f1a80a46cb539fbec959f00de2c5a1ab654a3641
[ "MIT" ]
permissive
anna-11/py-pde
26f0110266fdb21803e665447b1204bedb401d78
5b596af5f224e3ec2a7fbea8f87fab3896c19642
refs/heads/master
2023-06-17T09:13:34.026794
2021-07-09T12:10:36
2021-07-09T12:10:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,296
py
""" A Allen-Cahn equation .. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de> """ from typing import Callable # @UnusedImport import numpy as np from ..fields import ScalarField from ..grids.boundaries.axes import BoundariesData from ..tools.docstrings import fill_in_docstring from ..tools.numba import jit, n...
[ "david.zwicker@ds.mpg.de" ]
david.zwicker@ds.mpg.de
035aa0580f5943d33600d1ea742202449cb869e4
38414a2b54ff2776678330766650bbc1f575fcc1
/my_web/my_web/estudios/admin.py
4b8d7e48f4539054adf45c028c86779895a502e9
[]
no_license
LuisEnVilla/django-101
00d97b16b97a2159be2a70d42c68cd019e30ac9d
2814939ca4edbdcb58b26a721dee87ee2817af7b
refs/heads/master
2020-09-16T02:40:59.920733
2019-12-14T18:35:12
2019-12-14T18:35:12
223,624,130
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
from django.contrib import admin from .models import ( Estudio, Collector, Estudio, Airports, BlackList, Messages, Template, Alerts ) from .forms import ( EstudioForm, CollectorForm, AirportsForm ) class EstudioAdmin(admin.ModelAdmin): list_display = [ ...
[ "villak.hardware@gmail.com" ]
villak.hardware@gmail.com
64a46a0e8a622a238a2bd3fdd226486f3294a4ab
09358a436bd67831287f613f50fd384d8f0ce5cd
/movie/manage.py
65c28f46e6436a4dc8cbda85c8dd6007d6912337
[ "BSD-2-Clause" ]
permissive
caoluyang8/movie
f8b2bb7763d69c701449f9eb08dc5edb5a1ceaa4
6f655706c2f50e21bdd34d210393e842fd2b26ba
refs/heads/master
2020-04-09T17:22:45.364538
2018-12-05T07:37:37
2018-12-05T07:37:37
160,475,794
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
from App import create_app from flask_script import Manager from flask_migrate import MigrateCommand app = create_app('default') manager = Manager(app) manager.add_command('db',MigrateCommand) #添加迁移命令 if __name__ == '__main__': manager.run()
[ "caoluyang123@hotmail.com" ]
caoluyang123@hotmail.com
ffdda12127a32d5479a0a0c19b57ad4e578eb08b
e349e33c04b153a041847e443c27c4e35a57508a
/ex1.py
b3f2a1f2d0606e91c48f94f77069ba970e9c9285
[]
no_license
pmorel92/pythonpractice
85f0ae6983bc041fa71567f26304804a68aa6a14
3c369a5e49921436916aee600ce438f239112d65
refs/heads/master
2021-05-02T07:19:02.880627
2018-02-27T23:37:55
2018-02-27T23:37:55
120,813,434
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
print("Hello World!") print("Hello Again!") print("I like typing this.") print("This is fun") print('Yay! Printing.') print("I'd much rather you 'not'") print('I "said" do not touch this.')
[ "philippe.a.b.morel@gmail.com" ]
philippe.a.b.morel@gmail.com
8c987f3e7fcca91265fa510ed17ea01cb6f62bab
b2487a96bb865cfa0d1906c4e66a4aea9b613ce0
/pynfb/setup.py
fa813e333cb6ac1dadf94028ece66e8e86523568
[]
no_license
gurasog/nfb
1ccbbc7d507525cff65f5d5c756afd98ad86a7c6
9ff2c736c5d764f48d921bad3942c4db93390a5d
refs/heads/master
2022-12-14T23:06:56.523586
2020-09-07T07:36:01
2020-09-07T07:36:01
273,970,746
0
0
null
2020-06-21T19:30:38
2020-06-21T19:30:37
null
UTF-8
Python
false
false
164
py
from cx_Freeze import setup, Executable setup( name = "pynfb", version = "0.1", description = "Python NFB", executables = [Executable("main.py")] )
[ "smtnm@ya.ru" ]
smtnm@ya.ru
3b1cd110da952347980a3612228464215c98bf2c
b6c2e153d483173190fc8c9449b3a9843752ee27
/usando a classe os.py
8ff3773482a15b99a9202fa43b676ec35c1166dd
[]
no_license
joaoplay16/python
3a63605bf5545a706f3a9af34fc25a29e6b75b26
80ccaedd78130624b56754eda4cfd55c7b831cd4
refs/heads/master
2021-01-25T08:00:50.849336
2017-06-13T16:27:37
2017-06-13T16:27:37
93,696,581
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
#qpy:2 #-*-coding:utf8;-*- #qpy:2 #qpy:console import os os.chdir ('/mnt/extSdCard/shell/') files = os.listdir('/mnt/extSdCard/shell/') for i,item in enumerate (files): if '.bak' in item: os.remove(item) files.remove(item) print (i+1, files[i])
[ "joaoplay16@gmail.com" ]
joaoplay16@gmail.com
7068cd1a48b33608e96d44cb373c184c516b7e18
40c8f9a8756951f632bdde205c0ec22fda096180
/多线程/02.py
63e056961fc6e62002088b742964fffe8226f0ee
[]
no_license
longjingsan/Task
92a8e21ba0265284475f5088d927ee3147fa002f
115b6c308d96320c8ad3c5fdc8b30d4738dc26fd
refs/heads/master
2021-06-24T14:05:01.271642
2020-12-04T04:44:20
2020-12-04T04:44:20
186,412,297
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
''' 利用time函数,生成两个函数 顺序调用 计算总的运行时间 ''' import time import _thread as thread def loop1(): # ctime 得到当前时间 print('Start loop 1 at :', time.ctime()) # 睡眠多长时间,单位是秒 time.sleep(4) print('End loop 1 at:', time.ctime()) def loop2(): # ctime 得到当前时间 print('Start loop 2 at :', t...
[ "longying6@163.com" ]
longying6@163.com
51e0d8b610045991056392a7a0dcf54788db77b0
7cd9937b5d090378dd9f394470a9e35287c94ce2
/Terminal.py
086333b86718e619fe6dc38dfb506ed1488625b8
[]
no_license
DreadPirateRobertsX/bakalarka-python
ccc1c6e8b5c1e131c64d94101de8a2ab03c63f63
667de4904b1c9cf386b3d5620e3e089555d9a2a2
refs/heads/master
2023-05-02T23:18:30.117819
2021-05-15T20:24:39
2021-05-15T20:24:39
352,699,095
0
0
null
null
null
null
UTF-8
Python
false
false
2,798
py
from os import listdir, path import analyser class MyTerminal: actual_path = "/" def __init__(self, output_path, case_name): self.output_path = output_path self.case_name = case_name def terminal_init(self): print("Prikazy: ls, cd, show, exit") print("root:" + self.actual...
[ "l.kurtiniak99@gmail.com" ]
l.kurtiniak99@gmail.com
ead48a72f50b4aac0ca1df81220cdcd7fae7836e
ce66721d166ca07e6df97243ea086f156690e94a
/wf_example/__openerp__.py
24b872bdc0843ba46ec0646184171d46aa07f1f0
[]
no_license
prbo/odoo-yard
060ad954f729e27e4016f3773a665562197fd5a7
40397d7130f9a3bac41b8238807faa10553a89f2
refs/heads/master
2021-05-14T14:38:18.081327
2018-02-21T04:26:13
2018-02-21T04:26:13
115,975,615
0
1
null
null
null
null
UTF-8
Python
false
false
873
py
# -*- coding: utf-8 -*- { 'name': "wf_example", 'summary': """ Example of running workflow """, 'description': """ Long description of module's purpose """, 'author': "Your Company", 'website': "http://www.yourcompany.com", # Categories can be used to filter modul...
[ "sukmohadi.probo@gmail.com" ]
sukmohadi.probo@gmail.com
8c39520c67d7de9db0fc8291e96d0c580255b953
472b62f12c625569981de06675aa0c09aeead479
/testingProject/c17/carservice_17_4_13.py
fa6e312c885b09b05c7cb588fe7c832ead5dfe10
[]
no_license
hheungsu/python_study
5d77b35d7e0b7f859b4ea4f599fcb73cfd92599c
f42b45b2bbcd73cf7729975da9745b7cf0dfe224
refs/heads/master
2020-03-26T20:02:54.083018
2018-09-04T15:17:49
2018-09-04T15:17:49
145,301,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
#17.4.13 연습문제 (운행 마일수 입력받아 다음 정기점검서비스까지 남은 운행 마일수와 서비스종류출력 : 장기서비스 12000마일, 단기서비스 6000마일) # -> 문제를 살짝 바꿔봄 앞으로 받아야할 서비스종류,횟수, 그리고 남은 마일수 #1.import 패키지 import re #2.변수선언 IS_NUMERIC = "^[-+]?\\d+(\\.\\d+)?$" # 숫자구분을 위한 정규표현식 상수 s_unit = [12000,6000] # 서비스별 계산단위 s_unit_t = ["장기...
[ "noreply@github.com" ]
hheungsu.noreply@github.com
5791749056bb1317c8fdb744e1481fa000cb63e6
4668bc07bdbb7734d1005e946959944a7b49b9b7
/cookOff/DSIMP/AMZ_COIN_GAME.py
de39804e94e7908a7a13f50026f99fc047163845
[]
no_license
rjoshi47/DSmax
a91a11cfac3e0aa282d3119744a322c882df16ff
f41e042b434a95dd8f41b65ea31204b35f8981c4
refs/heads/master
2021-06-06T18:56:14.744503
2020-03-06T18:52:39
2020-03-06T18:52:39
123,318,217
1
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
''' Created on Apr 27, 2018 @author: devuser https://practice.geeksforgeeks.org/problems/max-possible-amount/0 Given a row of n coins of values v1 , v2 ... vn, where n is even. We play a game against an opponent by alternating turns. In each turn, a player selects either the first or last coin from the row, removes ...
[ "noreply@github.com" ]
rjoshi47.noreply@github.com
3f017622fbfb44222dc155a544b055feccde4336
61aa319732d3fa7912e28f5ff7768498f8dda005
/src/arch/x86/isa/insts/x87/control/__init__.py
01a1e68baf2dbd685876e00b5d56637618e0e383
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
TeCSAR-UNCC/gem5-SALAM
37f2f7198c93b4c18452550df48c1a2ab14b14fb
c14c39235f4e376e64dc68b81bd2447e8a47ff65
refs/heads/main
2023-06-08T22:16:25.260792
2023-05-31T16:43:46
2023-05-31T16:43:46
154,335,724
62
22
BSD-3-Clause
2023-05-31T16:43:48
2018-10-23T13:45:44
C++
UTF-8
Python
false
false
2,479
py
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
[ "sroger48@uncc.edu" ]
sroger48@uncc.edu
c8a1aa47f68e4e60549ea1cffa6d097807847063
286ca23d49975980b6cffb584bb43f7f89b8e828
/git_to_dbfs/__init__.py
ed579744bb661e4dcee1e50d97abc1e0774f161a
[]
no_license
geekspeed/git_to_dbfs_function
3bc5e941a39b41f146a877783e59fee7d5c4e46b
529342cc8fad264dc48cdce6db9a32eca68a8e82
refs/heads/master
2023-02-07T18:57:40.964947
2020-12-29T11:08:40
2020-12-29T11:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,459
py
""" Http Triggered Azure Function that listens for WebHook Notifications from GitHub. It detects if any file under a specific version folder got changed during a Push operation to a branch in the Git repo. If so, it uploads all the files in that version folder to DBFS in Databricks. Path to files: {base_path}/{version...
[ "alejacma@microsoft.com" ]
alejacma@microsoft.com
2afdb57eab044afe99e33d860d27954f8e41cc34
19c1a2a26ad300364df0c17d1840258e99503207
/001_PyExam/PyExam/Lambda_map_filter_reduce_exam.py
16a7dcb694b12e646c0d6b5015a7cd0e8afd06e6
[]
no_license
SeungeonBaek/RL-study-2019
2436eac89a2cf77adf6d9cab3ab6f47872679e0d
a3dd181a5feead245571e6c3dcd969843a0f37f5
refs/heads/master
2021-06-15T12:29:15.338403
2021-03-11T15:40:18
2021-03-11T15:40:18
163,930,302
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
# -*- coding: utf-8 -*- """ Created on Sat Dec 30 11:34:45 2017 @author: seung eon """ a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] x = list(map(lambda x : str(x) if x % 3 == 0 else x, a)) # 1. lambda 안에서 if를 쓸때는 콜론을 붙이지 말아야 한다. # 2. lambda 안에서 if를 쓰면 else를 사용해야만 한다. # 3. lambda 안에서 if를 쓸 때, elif는 사용하지 못 한다. print(x) b = [...
[ "bsewo5959@gmail.com" ]
bsewo5959@gmail.com
6acb16f98d8359da33fd1cc43c2280aa2ea356c0
5e411e5d8115543d0d82442f91d2a6862c0fe3fa
/17_Python/17_01/17_01.py
45d96027c27b8a7d2a769b9bbfc67e960cc3ea9c
[]
no_license
ucczs/AoC_2020
1a1ed1bc50570baa09829ddbf8cb887b788fe52b
b8842ada5db8e84fc12c4e0adfa1c0f7888317ac
refs/heads/master
2023-08-06T08:51:11.485234
2021-09-26T20:01:39
2021-09-26T20:01:39
317,323,083
0
0
null
null
null
null
UTF-8
Python
false
false
5,589
py
import numpy as np import itertools class MapCoordiante: def __init__(self, activeState, neighboursActive): self.activeState = activeState self.neighboursActive = neighboursActive class Map: # map[Z][Y][X] def __init__(self, xMax, yMax, zMax): self.xMax = xMax self.yMax = y...
[ "aron-freyer@gmx.de" ]
aron-freyer@gmx.de
a1bedc398853d8b1dd57e39be2a6dab67594e559
a657618ff7e803e621383afab910511435ba7003
/scripts/rrt.py
131d3ab2b23a8f05a1170aa2cecc63c48fb04424
[]
no_license
olisolomons/L310_capture_the_flag
68c3b02f8f7cd94451bc57643540b72ceb0ebc1f
c44a76b66f52232557d67cc41c753055cdbbba98
refs/heads/main
2023-04-17T23:14:49.891062
2021-04-28T10:55:19
2021-04-28T10:55:19
356,313,810
0
0
null
null
null
null
UTF-8
Python
false
false
13,109
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import matplotlib.pylab as plt import matplotlib.patches as patches import numpy as np import os import re import scipy.signal import yaml # Constants used for indexing. X = 0 Y = 1 XY = slice...
[ "oli.solomons@gmail.com" ]
oli.solomons@gmail.com
0205cb7c18f9277828eccec7d92e4d06ab52a34d
b4b900170acb702b12aa77c2708f59ec2107fa49
/fasta_processing/orf_finder.py
5d1fcc1afc1b946527f622a2845d8b87e749d1f9
[]
no_license
wegnerce/python_scripting
cf6435d0fa2ad41615c6ff06d44f28449904272c
6230d3f0489c67af18db5b13e48e888018b2cceb
refs/heads/main
2023-04-11T23:28:39.990998
2021-04-28T06:43:17
2021-04-28T06:43:17
362,132,027
0
0
null
null
null
null
UTF-8
Python
false
false
1,197
py
# -*- coding: utf-8 -*- """ Created on Fri Feb 21 12:03:40 2014 @author: calle """ from Bio import SeqIO #define an empty list to keep sequences of interest seq_interest = [] start_codons = ["ATG"] stop_codons = [] #boolean variables to check for presence of start/stop codons start_present = 0 stop_present = 0 #fun...
[ "noreply@github.com" ]
wegnerce.noreply@github.com
69628797f663b05bbab9e369a9e73cf62efc7e1a
b58bcba0e4fceb3ec24dc76b98ed9bcaf7d3b83b
/Titanic/Train.py
2cd3bbd05433e9ea2d47d9e7c95ff250193340fc
[]
no_license
BigSorry/Python
31bcec4d59fc6fd10ade37d44720a098d79d7a21
1f4163f86908ec4901042fd02f155b8a4289cbb2
refs/heads/master
2020-04-12T23:56:03.565845
2019-05-04T21:40:35
2019-05-04T21:40:35
162,834,075
0
0
null
null
null
null
UTF-8
Python
false
false
8,089
py
import pandas as pd from pandas import ExcelWriter import numpy as np import matplotlib.pyplot as plt import seaborn as sns import re import math from sqlalchemy import create_engine from itertools import chain, combinations from sklearn.ensemble import RandomForestRegressor def conditionalProb(trainingSet, columnNam...
[ "lexmeulenkamp@hotmail.nl" ]
lexmeulenkamp@hotmail.nl
e5d16253be4e6acf935b5f0a9f5efd3b50cd720c
24c3f3b611524fffa45999d13cbe272a1aafe706
/{{ cookiecutter.repo_name }}/setup.py
83888b0a3557511b7268af3297771056b785e654
[]
no_license
przor3n/cookiecutter-lux-python
87c9b00eebebc3a78539e0061c3a7e2a835c0736
4953aea360977a897009cd39780b30425d32b75f
refs/heads/master
2020-05-17T01:05:46.502456
2019-01-18T12:27:02
2019-01-18T12:27:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,734
py
{{ cookiecutter.shebang_python }} {{ cookiecutter.shebang_coding }} import sys import types from io import StringIO from os import path as op from os.path import join from textwrap import dedent from typing import List from setuptools import ( find_packages, setup, ) from setuptools.command.test import test ...
[ "alexk3y@gmail.com" ]
alexk3y@gmail.com
4e8fd8c8644cf64ebd25778d79246ac8d49da118
86f6f6df5e240a5d646aa3bd0bbb15442f2d0a69
/data0506/클래스사용하기/mysqlcrud/mysql.create.py
a1634dfe266913771fd71f41d9a84d9063aecc09
[]
no_license
hanking356/python_practice
39ef2129f9a599153acfd81ad46e64d3f8be1abe
df2a1558b781c2fe18245bb9a8a03391ae5f4b9e
refs/heads/master
2023-04-22T02:17:41.085233
2021-05-05T08:08:43
2021-05-05T08:08:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
import db연결.mysql연결모듈 as db id = input('아이디를 입력하세요') pw = input('패스워드를 입력하세요') name = input('이름을 입력하세요') tel = input('전화번호를 입력하세요') db.create(id, pw, name, tel)
[ "hgh0601@gmail.com" ]
hgh0601@gmail.com
c2568db3ed9af7c59ba95dc30e283b4abd83d2a1
e9adf4bb294b22add02c997f750e36b6fea23cdc
/nw/nw_logic/nw_rules_bank.py
432c3a0479a0241af1dc0f9ec9c891ae0851037a
[ "BSD-3-Clause" ]
permissive
bairoliyaprem/python-rules
5aa70dbf6d9efde0d95dda4b6397e36788c22cfa
ca7ab0addf60179ea61fddad6cd65c77a6792de1
refs/heads/master
2022-12-17T22:15:47.745660
2020-09-29T00:39:03
2020-09-29T00:39:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,863
py
import sqlalchemy from sqlalchemy_utils import get_mapper from python_rules.exec_row_logic.logic_row import LogicRow from python_rules.rule import Rule from python_rules.rule_bank.rule_bank import RuleBank from nw.nw_logic import models from nw.nw_logic.models import Customer, OrderDetail, Product, Order, Employee d...
[ "valjhuber@gmail.com" ]
valjhuber@gmail.com
d51a645e1fce3af1f391bfed76a7e9e9fd2dc9b9
709903ed88d19c8a86048533eec471b158ced454
/Python/简明Python教程-沈洁元-已完成/Using_file.py
a62045e640ca0ee7de89b8996db6fa1b11502d63
[]
no_license
veahow/Learning
be821f1479796e112eb9bc63ba58e7136f13ac80
157e8141945ca90535e52fa5780d13f101ee6d00
refs/heads/master
2021-01-17T17:38:47.844919
2018-01-26T15:21:04
2018-01-26T15:21:04
95,526,505
2
0
null
null
null
null
UTF-8
Python
false
false
561
py
#!/usr/bin/python # Filename : Using_file.py poem = '''\ Programming is fun When the work is done if you wanna make your work also fun: use Python! ''' f = open('poem.txt', 'w') # open for 'w'riting f.write(poem) # write text to file f.close() # close the file f = open('poem.txt') # if no mode is specified, ...
[ "veahow@gmail.com" ]
veahow@gmail.com
52a463acbd891fb557ee2bf6cb384be40812b812
b9b3ace86b9e464553cae1e6a89a5b50bc3c33a7
/Mark2.py
71fe87e1a0a54859acf13eed94e25adfb5892b33
[]
no_license
JacksonMartin/Markov-Chain
5bc3438a18ad57053f91371e047371f9945dfb73
d4251db2d70200f84597ad3655c2d803aa73c9ce
refs/heads/master
2020-05-01T11:15:55.444295
2019-03-24T16:35:37
2019-03-24T16:35:37
177,438,359
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
import random def marktable(text, lengths): table = {} for i in range(len(text)-lengths): key = text[i:i+lengths] if key in table: table[key]= table[key]+1 else: table[key]=1 return table def newchar(array, string): chance = {} total ...
[ "noreply@github.com" ]
JacksonMartin.noreply@github.com
8d01a9dc4ec9494ef182b9b6409a4fb3d8c512f3
2b83d3c8a9935dc18e99b553008ba3e008f2d05d
/requiez/models/mrp_mps_report.py
342f5c6ad0431123795b01b4862eed2eda887cab
[]
no_license
GustavoRequiez/grqz13
af0bce91f8906ec64edc6cf37e490f239c53a478
cc4a82a268b00224d9b26b2c8102a4d078ad2d79
refs/heads/master
2023-02-20T22:23:34.943947
2020-10-05T21:11:35
2020-10-08T22:53:32
300,013,433
0
1
null
2020-10-08T22:53:34
2020-09-30T18:20:15
null
UTF-8
Python
false
false
11,872
py
# -*- coding: utf-8 -*- ############################################################################### # # Odoo, Open Source Management Solution # Copyright (C) 2017 Humanytek (<www.humanytek.com>). # Rubén Bravo <rubenred18@gmail.com> # # This program is free software: you can redistribute it and/or modif...
[ "37423070+GustavoRequiez@users.noreply.github.com" ]
37423070+GustavoRequiez@users.noreply.github.com
198763b2333b3ce1acca310904e81671162058a6
a9c0664c3dd30595c127c258b79203c952537ee5
/predict.py
600250c84c46e9d2729dddde819610720bd752d6
[]
no_license
didriksg/facial_expression_detection
c965412f930d285ab88a5e15592ea1f3079b9ab6
bcdeb279eee1783ac29534b4b303fecf1af26344
refs/heads/master
2020-07-10T17:16:10.802993
2019-08-25T16:21:11
2019-08-25T16:28:14
204,319,695
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
from copy import deepcopy import cv2 import numpy as np from keras.engine.saving import load_model import utils WEIGHT_PATH = 'models/checkpoints/weights_051.hdf5' BASE_TEST_DATA = 'test/' def predict(): model = load_model(WEIGHT_PATH) while True: path_to_image = str(input('Image name: ')) ...
[ "kiddid96@gmail.com" ]
kiddid96@gmail.com
b0ed69722012b25fcc6de4946e499f5816fadccf
44cf8a92e4db1a650a13efa5cebd29b734fa0827
/Polynomial/gnrdouble.py
7bffb0110cdf8885f0fe924a745c45473ab04ab3
[]
no_license
shesl-meow/DataStructure
9b6eee3e9b461a22f525c7108e106d6a5083d287
ff9bc069faeb4126baab9979023068cf467d8371
refs/heads/master
2021-10-09T14:08:31.937891
2018-12-29T01:01:40
2018-12-29T01:01:56
92,643,459
3
0
null
null
null
null
UTF-8
Python
false
false
260
py
import random def gnr(): rng = random.randint(0,10) lst = [] for i in range(rng): lst.append( random.uniform(-10,10) ) lst.append( random.randint(-10,10) ) return [rng] + lst print( ' '.join([str(t) for t in gnr() + gnr()]) )
[ "1184249450@qq.com" ]
1184249450@qq.com
81cdca29ca642ae0cd547bd3bd57586ad5b175f4
7639d35c849510a81e50214ecc1b8035fb48decf
/howclustered.py
b4121c5de0d8609fe8de623f08060b9ae6ff2e6c
[]
no_license
frogsicle/anno_from_m8
365d0c2b41fee2aebddfdeea566d938491597e52
077786aaa116a3fab02215575869cafee2aa865f
refs/heads/master
2021-01-01T16:40:27.846638
2015-08-21T10:31:49
2015-08-21T10:31:49
41,105,292
0
0
null
null
null
null
UTF-8
Python
false
false
1,334
py
import sys class BlastLine: def __init__(self, line): entries = line.split() self.qid = entries[0] self.hid = entries[1] startend = [int(x) for x in entries[8:10]] self.start = min(startend) self.end = max(startend) def __str__(self): return str(self.__...
[ "alisandra@bangor.plabipd.de" ]
alisandra@bangor.plabipd.de
70dba3a5e9010b86b28a295772cc14004ed57a05
5966317682d400778b8988087e4c5b26f4f07ff9
/new sorts/o.py
4b8ac10e5babf93aee475c6d18dc80072db08324
[]
no_license
glushenkovIG/PythonTasks
7e3e344422e2f30c1fecf299a6bcb2e4efda7a09
245592ddb79ee7a569d5f069feb351b2377cc9d0
refs/heads/master
2020-03-17T17:34:23.387872
2018-05-17T09:50:35
2018-05-17T09:50:35
133,793,601
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
A = list(map(int, input().split())) n = int(input()) A = A[n:23 - n - (23 - n) % 7] min_sum = sum(A[:7]) for i in range(0, len(A), 7): sum_ = sum(A[i:i + 7]) if sum_ < min_sum: min_sum = sum_ print(min_sum)
[ "glushenkov.ig@phystech.edu" ]
glushenkov.ig@phystech.edu
d9c24e51040b6a9a2ca86262d7b8e28bd164dc56
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/learnbgame_jewelcraft/ops_asset/asset_ops.py
18a52b2efc2714e9fb91c211f43e87e2ceb22cbf
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,608
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # JewelCraft jewelry design toolkit for Blender. # Copyright (C) 2015-2019 Mikhail Rachinskiy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eith...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
7ca0ee05969af630f9b2b5a8871790f4991b5c08
d55f3f715c00bcbd60badb3a31696a1a629600e2
/students/maks/9/site2/page/management/commands/hello.py
014dfc85a65d4e56ef7b7b974c84bd8f9de0f150
[]
no_license
zdimon/wezom-python-course
ea0adaa54444f6deaca81ce54ee8334297f2cd1a
5b87892102e4eb77a4c12924d2d71716b9cce721
refs/heads/master
2023-01-29T02:22:54.220880
2020-12-05T11:27:48
2020-12-05T11:27:48
302,864,112
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
from django.core.management.base import BaseCommand, CommandError from page.models import Page class Command(BaseCommand): def handle(self, *args, **options): print('Hello command!!!') Page.objects.all().delete() page1 = Page() page1.title = 'Index page' ...
[ "you@example.com" ]
you@example.com
f1aaa95c001c821b618f58c3b84cf954fa331135
80d080462d6e00d2f2a5d2f74a2b9a7b2db8640c
/tests/test_charlie.py
b248f2ac469a06aa2c7337eec92f873d5297777a
[]
no_license
NicoKc/CircusCharliePY
1eac728a3a96ba9859f0d1b4d971e5277043a60b
1476c118829bf063478c6bb490b80d626644cca6
refs/heads/master
2021-07-11T06:59:26.572439
2017-10-14T17:04:58
2017-10-14T17:04:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import unittest sys.path.insert(0, os.path.join('bin', )) from mock import Mock, MagicMock, call, NonCallableMock, patch from charlie import Charlie from iSoundManager import ISoundManager from iSpriteManager import ISpriteManager from iCollisionManag...
[ "girasoltostado@hotmail.com.ar" ]
girasoltostado@hotmail.com.ar
9ccce667f864980cd88f410af25dcadccd167d57
ce5275160f0ecf01ea7b11e6a2740982c3c5cbd3
/SelfPlayIterations.py
b72fa691ddea8673a501ab24e3ba87bfaf2a0ba5
[]
no_license
strotman-ryan/AlphaGoConnect4_V2
65d5b4ffd15650104f14b35f7ffbb8fab7634255
74333ed0e238ebb82753d91e7cb5533fa0dfa1f7
refs/heads/master
2022-12-12T03:55:00.229256
2019-12-18T03:42:06
2019-12-18T03:42:06
225,237,220
0
0
null
2022-12-08T03:15:42
2019-12-01T22:00:03
Python
UTF-8
Python
false
false
439
py
# -*- coding: utf-8 -*- """ Created on Wed Dec 4 21:47:03 2019 @author: strotman.7 """ from SelfPlay import SelfPlay from TestGameNN import TestGameNN, PolicyNN from TestBoard import TestBoard import numpy as np policyNN = PolicyNN() nn = TestGameNN(policyNN) board = TestBoard(np.array([0,0,0,0]), nn) for x in ra...
[ "ryan.strotman@gmail.com" ]
ryan.strotman@gmail.com
283ac19d96292491e8eb4d05ed900e358f846485
20a21fc54a2dc13e229310e54835cd3b219d31fe
/distributiontools/main.spec
3a19b9365052d5c0d11c1afed88abaa49b26629c
[ "BSD-3-Clause" ]
permissive
TNO/horse-module-core
ca61b5836469a4534745ea1535ae33512629c133
786a0a6a8007680e3302e53b68530e8e5838c1f2
refs/heads/master
2022-11-28T08:43:49.737258
2020-07-23T07:41:26
2020-07-23T07:41:26
281,885,607
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['horseAR\\main.py'], pathex=['C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\PyQt5', 'C:\\HORSEAR', 'C:\\programdata\\anaconda3\\lib\\site-packages\\zmq'], binaries=[], datas=[('C:\\HORSEAR\\ExtraDLL\\platforms/*.dll', '...
[ "wietse.vandijk@tno.nl" ]
wietse.vandijk@tno.nl
fa8d7f98393bd2880e3b08b30c669870a4e9915f
d51ef7f67c8ea6ee16031d1552d548cfac8b03f6
/Day 1/IF_demo.py
389efdfa76160923ecfa023e4362aff6ecde7c80
[]
no_license
Beatzoid/python-camp
02849799c743f6ca04cf3126fc016dfb9a95e769
fb3fb68eb839c0f5e46a87a9932e79a7e853b121
refs/heads/master
2023-06-14T03:13:56.833046
2021-07-02T19:40:08
2021-07-02T19:40:08
381,807,286
0
0
null
2021-07-28T01:15:42
2021-06-30T19:07:43
Python
UTF-8
Python
false
false
414
py
baseTemp = 72 while True: currentTemp = int(input("Please enter the room temperature in Fahrenheit: ")) heater = False fan = False if currentTemp < baseTemp: heater = True fan = False print("Heater on") print("Fan off") elif currentTemp > baseTemp: heater = False fan = True print("Heater off") p...
[ "43425381+Beatzoid@users.noreply.github.com" ]
43425381+Beatzoid@users.noreply.github.com
ed2303a505fefe9d25e301d1dbb33cefd73ea5da
61319c600e18acbb0ca9c2f722cf6d180b19bade
/Curso_Em_Video_Python/ex077.py
902e221145f2f8f3e1a8c69a52ff2ebd1b5071e0
[ "MIT" ]
permissive
ThallesTorres/Curso_Em_Video_Python
a5e93bd33387684830ed081dd127754d1223f90b
95ffbff5a03f11fee41df746604dfe435f385a3b
refs/heads/master
2020-09-29T06:59:33.226325
2020-04-19T21:17:22
2020-04-19T21:17:22
226,981,932
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
# Ex: 077- Crie um programa que tenha uma tupla com várias palavras (não usar # acentos). Despois disso, você deve mostrar, para cada palavra, quais são as # suas vogais. print(''' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --Seja bem-vindo! --Exercício 077 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ''') palavras = ('a...
[ "thalles.torres@pm.me" ]
thalles.torres@pm.me
65b0e7f7e7d0a9200cca22a5dcdb57d513c3c4a2
bf76896be115a048f59c1cce6562c7ef9b432d29
/Intro to Machine Learning/Week 3/Logistic Regression/Logistic.py
266bf660f7e89ad43994db9d1a8d150b9db9892c
[]
no_license
nick95a/Machine-Learning
06929b797b243b55a3c8cf6412a7de55109e66b1
314ca5eea3bc7f80ffd1fa30a9eb87a9fac2150e
refs/heads/master
2020-06-22T22:41:56.065925
2020-06-22T07:30:40
2020-06-22T07:30:40
198,420,095
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
import numpy as np import pandas as pd import math from sklearn.metrics import roc_auc_score data = pd.read_csv('/Users/nikolaymaltsev/Documents/ML/data_logistic.csv',header = None) X = np.array(data.iloc[:,1:]) Y = np.array(data.iloc[:,0]) a = 0 w1 = 0 w2 = 0 k = 0.1 C = 10 l = len(Y) x1 = X[:,0] x2 = X[:,1] n = 0...
[ "noreply@github.com" ]
nick95a.noreply@github.com
14a89a5ba3b634286c9a1c0536e2ca7579dc8711
d40f058f554c98227d07ac0383ffd93d6ffa4e56
/pyStuff/packtPub.py
6309bfde930460b12a64db51f989f5739f24a0a3
[]
no_license
alby177/Training
06af247cf441288be84969119cf05ff4fb1a28d5
abc9b300956232ca28c5788d8ad099b9d5924576
refs/heads/master
2020-03-18T17:45:55.001247
2018-06-07T17:49:40
2018-06-07T17:49:40
134,046,454
0
0
null
2018-05-27T08:46:49
2018-05-19T09:01:38
Python
UTF-8
Python
false
false
1,114
py
# Save the free book inside my account of PacktPub from robobrowser import RoboBrowser import re import sys # Add the path where the file with login credentials are sys.path.append('/Volumes/StorEDGE/Alby/Python/Sensible_documents') # Import the file with the credentials import Data home = 'https://www.packtpub.com/...
[ "" ]
56598a8f9bce613e4ce5283c300482604705aaa0
10a82eaa0e482839375d2f1af7eff4f807855b34
/application.py
555e1d4aa4ef8fb876f8f323ec1cc38474d3e7b6
[]
no_license
akashvdubey/project1
9d71dc63c803dde9896ee9579242682ec203386e
dd62fd1a0472b6524486072c38628ef1e5f5f1a7
refs/heads/master
2020-04-30T09:21:44.479109
2019-12-28T11:10:58
2019-12-28T11:10:58
176,744,855
0
0
null
null
null
null
UTF-8
Python
false
false
3,851
py
import os from flask import Flask,session,render_template,request,jsonify,redirect,url_for #from flask_session import Session from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker app = Flask(__name__) # Check for environment variable #if not os.getenv("DATABASE_URL"): #raise...
[ "akashvdubey@users.noreply.github.com" ]
akashvdubey@users.noreply.github.com
244625ed52a9ee92e1d72dacbb586ae1a2ac8037
326e9be3bd1b861db6a87e09fef31a63e46f0ab1
/hw4/hw4.py
d355676110f2a7d29725acd46f726e9f6099dd1a
[]
no_license
r06521601/ML2018SPRING
d42e88ca91a82dddb234d9667ce0da0fea31af66
50db1aef2dedb9dd435cd843c60f66ca4cf28055
refs/heads/master
2021-09-20T11:52:10.313518
2018-08-09T07:14:25
2018-08-09T07:14:25
124,334,115
0
0
null
null
null
null
UTF-8
Python
false
false
1,889
py
# coding: utf-8 # In[3]: import numpy as np import keras import pandas as pd import os import sys from keras.layers import Input, Dense from keras.models import Model from keras.optimizers import Adam from sklearn.cluster import KMeans # In[2]: def main(argv): x = np.load(argv[0]) x = x.astype('float32')...
[ "noreply@github.com" ]
r06521601.noreply@github.com
0afeb5999ec080cb71c537f47392cf78f54bbef0
02230a9ffe01aa008dc8c66c2e61c50e41b302cf
/tests/pgh6.py
2553221cae4dcd0068ece58872807530d1b0963a
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
UKHomeOffice/python-pghash
62905f37ddd0d138935cfeab02471e9b1650cac6
25212aeaeec8e418a00adda53d8ca2198cab4a5a
refs/heads/master
2021-03-22T03:00:23.331296
2018-02-27T11:23:18
2018-02-27T11:23:18
109,151,603
1
1
MIT
2018-02-27T11:23:19
2017-11-01T15:54:25
Python
UTF-8
Python
false
false
857
py
from __future__ import division import random from collections import defaultdict import pghash results = defaultdict(int) seed = random.random() pg=pghash.pghgen(seed=seed) rolls = 1000000 for i in range(0,rolls): r = pg.hash((i,)).random() if r < 0.0001: results[0.0001]+=1 ...
[ "philip.hibbs@digital.homeoffice.gov.uk" ]
philip.hibbs@digital.homeoffice.gov.uk