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
e466f7785d0653d87a42c6c611519124213450a4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03804/s238311565.py
d24c8c937628264b69ec9b555924c8f24f8947e1
[]
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
272
py
N,M = map(int, input().split()) A = [input() for _ in range(N)] B = [input() for _ in range(M)] for i in range(N-M+1): for j in range(N-M+1): C = [A[k][i:i+M] for k in range(j, j+M)] if B == C: print('Yes') exit() print('No')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f006304aea65a77abfd6fcb17a77b3924912097f
285cadabf9496439b4542fcf45ffab92e0de5e4c
/sbin/ruamel-json
5e6ed395d3f033b8da4e24d44b26a2f37b24d3e2
[]
no_license
asomov/yaml-editor
c1d54280b7902f211545e9b24b72f2922558edae
48b2f6712987db5ca987b83aacd83303b9232706
refs/heads/master
2023-08-21T16:31:53.639876
2018-02-12T21:59:36
2018-02-12T21:59:36
122,829,888
0
0
null
2018-02-25T11:27:41
2018-02-25T11:27:41
null
UTF-8
Python
false
false
302
#!/usr/bin/env python import sys import pprint import ruamel.yaml import json for doc in ruamel.yaml.load_all(sys.stdin.read(), Loader=ruamel.yaml.Loader): try: print json.dumps(doc, sort_keys=True, indent=2) except: print "Error json.dumps:", sys.exc_info()[0] raise
[ "cpan2@tinita.de" ]
cpan2@tinita.de
ca83ecd1bf929adff5bb0b13ed678c5e20523e67
8f62f80e981e66aa0b0dffb0d5d6a78dbbd9bf37
/scraper/scrape.py
d1254c7005625f1b0d39fd710e05a35e89ece2ad
[]
no_license
navidkanaani/Python-Codes
fdb0ae8560474540cbb2b3e6b7f739d9be396155
f8112e12847b4b93bb10300261c078bac4ebd291
refs/heads/main
2023-04-28T17:52:30.950480
2021-05-12T13:35:34
2021-05-12T13:35:34
340,845,243
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
import requests from bs4 import BeautifulSoup import pprint res = requests.get('https://news.ycombinator.com/') soup = BeautifulSoup(res.text, 'html.parser') links = soup.select('.storylink') subtext = soup.select('.subtext') def sort_news(hnlist): return sorted(hnlist, key=lambda k: k['votes'], reverse=True) ...
[ "navidkaen@gmail.com" ]
navidkaen@gmail.com
d5bdddaa0535d3e596e4a5c59c2125ca69bf75a7
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_367/ch8_2020_03_02_19_35_41_766365.py
90c50d0003f62e4bfadd4d65843b2c9d5316886e
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
def f(x): s=so+v*t return s v=10 t=1 s=f(x) so=0 print(s)
[ "you@example.com" ]
you@example.com
832504a27211323bfbdddfbc5b3733a6f5ac8d47
5d9c4e85c773b784f52d6ea0a492d1cd2ddbcf6f
/Project3/orders/views.py
b082fa0ef3e75aa4eff9fd67331855fa36e93a1e
[]
no_license
ntouev/CS50_Web_Programming_with_Python_and_Javascript
cc5320c5ba8f178c010883b42946eec88bfcc020
5ce0cd65a41166a1083a0a092447834ee2d61182
refs/heads/master
2020-08-18T05:08:55.621469
2019-12-24T23:48:45
2019-12-24T23:48:45
215,750,820
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
from django.http import HttpResponse from django.shortcuts import render from .models import Regular, Sicilian, Topping, Sub, Addon, Dinner_platter, Salad, Pasta # Create your views here. def home(request): context = { "regulars": Regular.objects.all(), "sicilians": Sicilian.objects.all(), ...
[ "evntouros@gmail.com" ]
evntouros@gmail.com
c7deac3ce546c1bd060412133c463d7faabfa784
06f0ae3ecaaf47b1c23e231838afa524d8446f5e
/account/migrations/0004_auto_20161013_1836.py
ad9f35d08a9de1a95a6918cf821e8ea4841cb673
[]
no_license
nakamotohideyoshi/draftboard-web
c20a2a978add93268617b4547654b89eda11abfd
4796fa9d88b56f80def011e2b043ce595bfce8c4
refs/heads/master
2022-12-15T06:18:24.926893
2017-09-17T12:40:03
2017-09-17T12:40:03
224,877,650
0
0
null
2022-12-08T00:02:57
2019-11-29T15:20:17
Python
UTF-8
Python
false
false
2,078
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-10-13 18:36 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0003_userlog'), ...
[ "nakamoto.guru.0991@gmail.com" ]
nakamoto.guru.0991@gmail.com
6c55e591a731959b085370e51d16a8f589994063
4317d2ef985f1a8f033be328c18586e5fdedd426
/cam_preview.py
4c1db1015173a264054874336b5981830f307eab
[]
no_license
jeromebyrne/rasp_motion_cam
bb5573bf5a8e0c7c8b062fd8eba89ee3849e7534
76f1fc5495bd6cbd0dc0a06cd8577a4036ebed08
refs/heads/master
2021-01-12T09:14:35.127511
2016-12-19T09:34:22
2016-12-19T09:34:22
76,804,677
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
# -*- coding: utf-8 -*- from picamera import PiCamera import datetime import time from time import sleep camera = PiCamera() camera.rotation = 180 camera.resolution = (1280, 720) sleep(1) camera.start_preview(alpha=190) sleep(120) camera.stop_preview()
[ "jeromebyrne21@hotmail.com" ]
jeromebyrne21@hotmail.com
1d762be616913683414ba9d4fde53ba80aec78a9
f4ae4fbdad07bc3e1953066281cf2f0fbed9d7e8
/src/kompos/helpers/himl_helper.py
377b5bced0618592a5dd892023a41949c976fa4f
[ "Apache-2.0" ]
permissive
adobe/kompos
de2739cb9acc2ce90029416d3676551ba9c6455c
e2d1e24b5d7f57b7e692360b5137b5b0c14e4824
refs/heads/main
2023-09-01T12:59:08.743202
2023-04-27T13:52:13
2023-04-27T13:52:13
222,483,798
19
14
Apache-2.0
2023-04-10T08:21:18
2019-11-18T15:39:35
Python
UTF-8
Python
false
false
4,086
py
# Copyright 2019 Adobe. All rights reserved. # This file is licensed to you 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 ...
[ "noreply@github.com" ]
adobe.noreply@github.com
cdbb5cbd49309f187bcb448bb7ba1b7eca201413
1eeb2bb39c2d3222542c3b9767a2c1e11b4259c5
/知乎Win7端/18_QLabel/QLabel(movie).py
c8f4029b46a3b4ee7eaa7bb6ef96c383ab88e5d5
[]
no_license
kingdelee/PyQt5
9e58cebed3436e7696914a7ead180f82534315dc
01128372dc93300198998455d2e4574af33e3487
refs/heads/master
2020-06-25T13:27:59.935234
2019-04-29T14:02:05
2019-04-29T14:02:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,233
py
#coding=utf-8 from PyQt5.QtWidgets import QWidget, QApplication, QLabel, QPushButton from PyQt5.QtGui import QMovie, QPixmap import sys class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.resize(550,300) self.setWindowTi...
[ "falcon81321@gmail.com" ]
falcon81321@gmail.com
6a7ae2173add022eeabb80f6eec8c301f4847aed
1368a4f7d33d0a577d2aaa8aaf03bbf55ca8814a
/Python/Week-6.py
3b309db895fd315a40bf0a09e91793e4dd9129f4
[]
no_license
AyaMutlaq/Facoders
362eee0bda764a48a9bd96a1fc46181337265137
84e9c0770ddd5b57290631e2c4ad56ab0bb88661
refs/heads/master
2020-04-02T22:52:03.737015
2018-11-21T21:49:55
2018-11-21T21:49:55
152,479,054
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
grade_one= {'Sami': [19, 18, 19.5, 30, 10], 'Ahmad': [15, 14, 16, 21, 7], 'Faris': [18, 19, 17, 26, 9], 'Salem': [20, 20, 19, 30, 10], 'Mahmoud': [12, 13, 11, 18, 7]} grade_two= {'Lana': [17, 19, 20, 28, 9], 'Dina': [18.5, 19.5, 20, 29, 10], 'Maha'...
[ "aya.hashem93@gmail.com" ]
aya.hashem93@gmail.com
b58656031eee017e9eafa9bc8c065da38fd67326
b2b40bfb0a6a6b0899f5185be165e6907abf0b27
/My-codes/vasp/hetero_2d-2d.py
45cf83b7c21ebe11af208897667f64d84b40450b
[]
no_license
ritesh001/Related_to_research
00d0f45fd5943811e2de9203981e5abe978c415d
310876da18e20b3a60639d730b6e40ff848576eb
refs/heads/master
2023-04-13T05:30:47.269278
2023-04-02T09:33:36
2023-04-02T09:33:36
78,549,166
1
0
null
null
null
null
UTF-8
Python
false
false
1,722
py
# coding: utf-8 # Copyright (c) Henniggroup. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, absolute_import import sys """ Compute the reduced matching lattice vectors for heterostructure interfaces as described in the paper by Zur and McGill: Jour...
[ "dasdeya@gmail.com" ]
dasdeya@gmail.com
0b8be68f52a1d5b67bb14a360d8b2a529fd34cef
47cf5a6945da3b4f469794dc210e40e8971fa80f
/examples/basic/boundaries.py
3fedf7980f0804a677ae36d3d4c9005337413e06
[ "MIT", "OFL-1.1", "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
charliekind/vtkplotter
53aee8f8e599129dbcd768c0810b6caa95addfc9
e16daac258dc0b383043575f2916ac4ea84a60b1
refs/heads/master
2022-03-08T15:29:42.218590
2022-02-16T21:01:16
2022-02-16T21:01:16
164,445,473
0
0
MIT
2019-01-07T14:35:42
2019-01-07T14:35:42
null
UTF-8
Python
false
false
354
py
"""Extract points on the boundary of a mesh. Add an ID label to all vertices.""" from vedo import * b = Mesh(dataurl+'290.vtk') b.computeNormals().clean().lw(0.1) pids = b.boundaries(returnPointIds=True) bpts = b.points()[pids] pts = Points(bpts, r=10, c='red') labels = b.labels('id', scale=10).c('dg') show(b, pts...
[ "marco.musy@gmail.com" ]
marco.musy@gmail.com
f3449d2e86ca5de75ba09d32a574ad3032a4f81c
dda8bc29ad456fd944b9129afcbf1754523fe1ed
/users/vasile/stl2gcode/stl2gcode
fec91efa93b3bff46c15fff03fd6b86d72716cc5
[]
no_license
carlossantiagoredbeltteam/teste_212390-redTeam
8a6da08dcb8319ae2db5228c3b6070753f6be67c
aacd0d9e799ed8f7aa898496af754459c31855dd
refs/heads/master
2021-01-10T13:27:21.150868
2011-07-06T17:36:46
2011-07-06T17:36:46
55,693,486
2
0
null
null
null
null
UTF-8
Python
false
false
4,168
#!/usr/bin/python ## stl2gcode generates gcode from stereolithographic triangles. This ## gcode can be fed to CNC fab machines to create physical 3D models. ## stl2gcode also generates intermediate file formats (i.e. pov and ## png files). ## Copyright (C) 2008 James Vasile <james@hackervisions.org>. This is ## fre...
[ "jvasile@cb376a5e-1013-0410-a455-b6b1f9ac8223" ]
jvasile@cb376a5e-1013-0410-a455-b6b1f9ac8223
d76ea5e54be61c71c5b587175467fb37e20c5824
60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24
/IronPythonStubs/release/stubs.min/System/Windows/Forms/__init___parts/ToolStripItemRenderEventArgs.py
5d8f56d8057176f9be000cf9e427ae8bd776780e
[ "MIT" ]
permissive
shnlmn/Rhino-Grasshopper-Scripts
a9411098c5d1bbc55feb782def565d535b27b709
0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823
refs/heads/master
2020-04-10T18:59:43.518140
2020-04-08T02:49:07
2020-04-08T02:49:07
161,219,695
11
2
null
null
null
null
UTF-8
Python
false
false
1,200
py
class ToolStripItemRenderEventArgs(EventArgs): """ Provides data for the events that render the background of objects derived from System.Windows.Forms.ToolStripItem in the System.Windows.Forms.ToolStripRenderer class. ToolStripItemRenderEventArgs(g: Graphics,item: ToolStripItem) """ def __getitem__(self,*args...
[ "magnetscoil@gmail.com" ]
magnetscoil@gmail.com
4be1d222e9b1fc87b3dfde002aba17f9c12e2a5a
9d38d7cd271eba95578e36a6d5c8f0d3dda39fe5
/fdutils/db/vendors.py
31aa9f4674ec4e5a0df8add64bca64ce3720918f
[ "MIT" ]
permissive
filintod/pyremotelogin
8e8be07b49e86b79e7fb0776c7462995a01c422e
3661a686be58415f72db5800431f945ff48324a0
refs/heads/master
2022-11-10T09:38:54.522089
2022-10-21T20:01:39
2022-10-21T20:01:39
137,921,045
1
1
MIT
2022-10-21T20:01:40
2018-06-19T17:02:17
Python
UTF-8
Python
false
false
3,074
py
import logging from .db import SQLDB SQLITE_CONNECT_STRING = 'sqlite://{file_path}' log = logging.getLogger(__name__) class OracleDB(SQLDB): DATABASE_NAME = 'oracle' PORT = 1521 DRIVER = '' def __init__(self, *args, **kwargs): self.service_name = kwargs.pop('service_name', None) s...
[ "duranto@gmail.com" ]
duranto@gmail.com
acbc656b372797c74a08ae745e3ede54e7fc6b37
7e98a457a6c6056320d1d6a5ee7cd0cace3b1638
/Foods/urls.py
3773628c6ff14cd7c5085009feef32163a3f636d
[]
no_license
buddy9747/Korean-Forum
97afeb19f009142f6b26375ff6a16608b9321f46
825c05e1abf53dbaf3af6a29777eacc8c36e5287
refs/heads/master
2020-04-20T07:43:46.367641
2019-02-01T15:32:43
2019-02-01T15:32:43
168,718,145
1
0
null
null
null
null
UTF-8
Python
false
false
420
py
from django.contrib import admin from django.urls import path from .import views from KoreanForum import settings from django.conf.urls.static import static from django.contrib.auth.views import login urlpatterns = [ path('dishes',views.food,name='food'), path('dish/detail',views.food_detail,name='food_detail')...
[ "40247883+buddy9747@users.noreply.github.com" ]
40247883+buddy9747@users.noreply.github.com
d40f19e123fa94db5564765f5ef675feef08ff99
f492c537db522a7df129cce0dc75d17d33e382c9
/Day 42/EVENDIFF.py
38a79985d1d30a408a27dd04caa3ca49400df8f9
[]
no_license
rahul-s-bhatt/ProgrammingTraning
f9f6b34649a7d7d21a0b0d4af4a862dd385e6752
dd96c2e10ad14549a37025aae7c165e2bbb64b54
refs/heads/master
2023-02-26T14:48:51.024988
2021-02-06T16:31:30
2021-02-06T16:31:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
def solve(n, arr): even, odd = 0, 0 for i in arr: if i%2 == 0: even += 1 else: odd += 1 # if odd == 0 or even == 0: # return 0 if odd > even: return even return odd for _ in range(int(input())): n = int(input()) arr = list(map(int, input().split())) print(solve(n,...
[ "noreply@github.com" ]
rahul-s-bhatt.noreply@github.com
2daa9888d7ecb2b4011a321c57530ebc68eed284
6491795a70aef2176b2b2ab49b539b8cb823dc34
/AtCoder/ABC/000-159/ABC157_C.py
6557c36465e6fd4b60388095b9118bf28e0e69c2
[ "MIT" ]
permissive
sireline/PyCode
5eacc410b23ca93344a9d095df00e1586c64b1cb
8578467710c3c1faa89499f5d732507f5d9a584c
refs/heads/master
2021-06-25T13:47:05.608192
2021-03-31T07:57:01
2021-03-31T07:57:01
221,617,081
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
ans = [-1, -1, -1] N, M = [int(n) for n in input().split()] for i in range(M): s, c = [int(n) for n in input().split()] if N == 1: if s in [1, 2]: ans = -1 break else: if ans[s-1] == -1 or c < ans[s-1]: ans[s-1] = c elif N == 2: i...
[ "m_sireline@hotmail.com" ]
m_sireline@hotmail.com
5d831dd561f618d3094e2ca79c93b7ffb966d35c
66ae73dff4bf55ff19aefabb4a79b3370aaf00cd
/modules.py
7a8e872ffa7528fee1b9aab60792874b0785095d
[]
no_license
arunprithviraj/JustAnotherRepo
39e8ec5d732e8c3693b56a3c3b1fa7c473985212
69bb6eab1381c3f471891b4724e8477660ce0402
refs/heads/master
2020-12-04T19:45:12.119124
2016-08-24T00:40:02
2016-08-24T00:40:02
66,413,382
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
def gcd(x,y): found = False count = y while not found & count >=2: if x%count == 0 and y%count ==0: return count elif count == 2: return 1 count -=1
[ "arunprithviraj@gmail.com" ]
arunprithviraj@gmail.com
75fc9f672b0add31f6054701a480f93d327f5ef7
f2bb082e3d84558f91e1e7dcc1b85d80686cab52
/experiments/rmdn_comparison/utils.py
94a4098caa2711394b1248e24ac6dbe6d09e16c5
[ "MIT" ]
permissive
Tobias-Fischer/dreyeve
2cd3027c3fec0845e5e8f8efc9b8721780a902f6
a65342d9c503ce3ec932e2229b90aaeebfd82944
refs/heads/master
2022-12-12T14:58:13.778138
2020-09-14T05:26:49
2020-09-14T05:26:49
295,305,865
0
0
MIT
2020-09-14T04:42:47
2020-09-14T04:42:46
null
UTF-8
Python
false
false
822
py
import numpy as np import scipy.stats def gmm_to_probability_map(gmm, image_size): h, w = image_size y, x = np.mgrid[0:h:1, 0:w:1] pos = np.empty(x.shape + (2,)) pos[:, :, 0] = y pos[:, :, 1] = x out = np.zeros(shape=(h, w)) for g in range(0, gmm.shape[0]): w = gmm[g, 0] ...
[ "btadvd@gmail.com" ]
btadvd@gmail.com
f065452b9ca4c551d15e102fa72384d1b75b5b1e
5a2396488632964495582d70326ae911b53c2105
/utils.py
c75a5461538482ed44c0b63772cd36e5a849de86
[ "MIT" ]
permissive
ashishsnaik/CarND-Traffic-Sign-Classifier-Project-P3
46d4c3d7d4a6f386d6fa89c43d369ecbcb24f56e
a35b2cdb14068bf0f501aff0279faf168508d043
refs/heads/master
2020-04-17T06:47:51.506724
2019-11-02T00:12:57
2019-11-02T00:12:57
166,340,412
0
0
null
null
null
null
UTF-8
Python
false
false
1,346
py
# Includes import os import csv import math import numpy as np import matplotlib.pyplot as plt # plot images def plot_images(images, titles=None, cols=3, fontsize=12): n_imgs = len(images) if images is None or n_imgs < 1: print("No images to display.") return img_h, img_w = images[0].sh...
[ "ashish.usf@gmail.com" ]
ashish.usf@gmail.com
4412244a638580cd00ff9838a86adeb2fe0aabd8
88d49250f1a2024d8046f8a5bdc2a82431d019ae
/election/main.py
bbef4f1c9093a6f76e1d22155e2d5d095f3687dd
[]
no_license
atiratree/pv248
7148dbecbe384c93f5077738f1815cc20fc8b037
cd1cbae29448bb6db828ed1fe42243391af2aeaa
refs/heads/master
2021-08-22T17:17:03.679407
2017-11-30T19:32:24
2017-11-30T19:32:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
from metadata.settings import Settings from parse.parser import Parser from plot.printer import show_max_percent_parties_bar, show_pie_chart_results if __name__ == "__main__": with open(Settings.election_file, 'r') as election: parties = Parser.import_data(election) show_max_percent_parties_bar(pa...
[ "suomiy@gmail.com" ]
suomiy@gmail.com
ed281c5055faf749262fb227155472a298769d3b
8a8db00750eace66e181b6570501e2db8f2e5851
/bridge/jobs/management/__init__.py
cd51710109a92b371acf14057a71b097923c6b05
[ "Apache-2.0" ]
permissive
vmordan/klever
1c81f2d0e84b9a1bfe64c64ec085c2aae85edbc9
52877601e252279375091e049d096d8b302717a6
refs/heads/master
2023-07-08T18:08:08.720430
2019-09-03T13:25:30
2019-09-03T13:25:30
214,371,652
0
0
null
2019-10-11T07:27:10
2019-10-11T07:27:06
null
UTF-8
Python
false
false
682
py
# # Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # h...
[ "ilja.zakharov@ispras.ru" ]
ilja.zakharov@ispras.ru
94888e140b6d56c13b41e77a0342af4f11934c5f
36d9f12f40ee37d8693f419c7200da0ffb70efc8
/django_project/users/migrations/0002_auto_20200413_1305.py
34df19872c4f44ba5d9d0766416ba8702b94faec
[]
no_license
Grizzlyblack/Django-blog
637e36819b86c49935cb3b6b346f82b85b41b567
e070ec66a5e090007395f2845e050191ff532bd1
refs/heads/master
2022-04-20T14:56:44.017740
2020-04-15T15:34:49
2020-04-15T15:34:49
255,962,332
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
# Generated by Django 3.0.5 on 2020-04-13 17:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profile', name='image', fie...
[ "ethantoth@gmail.com" ]
ethantoth@gmail.com
d656dc9394e276db60070a357ce507d0a88a2529
7a0efb7f3bfe2694253f7e0e353cd7cedd2ccddc
/test/language/optional_members/python/OptionalRecursionTest.py
b3f2f9b191168cf6552400609cd89d6f2e103fd6
[ "BSD-3-Clause" ]
permissive
gmdelc66/zserio
c8d89c99628d0ce22d06ca2dc87efffef1021e20
9e4c62a9ed10b955f6f44b2322771c1c69c16160
refs/heads/master
2023-02-24T20:33:50.299829
2021-01-20T21:35:09
2021-01-20T21:35:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,296
py
import unittest import zserio from testutils import getZserioApi class OptionalRecursionTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "optional_members.zs").optional_recursion def testParamConstructor(self): emptyBlock1 = self.api.Block(0) ...
[ "mikulas.rozloznik@eccam.com" ]
mikulas.rozloznik@eccam.com
7dddb6c500238d0cea8f035c1c7e42e0df68a696
87f618ef1f40ccfb357d680f767296df810fe40e
/sorting/insertion_sort.py
0ea7e7d89029521d5aa2cbeff9a05d6dfa3a2aa0
[]
no_license
michaeljh619/pygorithms
0c23416aba83dae5a29fcfd23f3f986334a9de50
eb1a77ca17f4b9fcb2d8a681b5b86679a1ee6515
refs/heads/master
2020-04-17T15:29:09.139126
2019-03-08T19:30:14
2019-03-08T19:30:14
166,700,705
0
0
null
null
null
null
UTF-8
Python
false
false
1,504
py
# import base class from base_sort import BaseSort class InsertionSort(BaseSort): @staticmethod def sort(list_to_sort_arg, smallest_first=True): # post filter list list_to_sort = super(InsertionSort, InsertionSort).sort(list_to_sort_arg, ...
[ "michaeljh619@yahoo.com" ]
michaeljh619@yahoo.com
6bd5b1eb329ca5ae11e3df252c0b0fd4fe966ec3
26be4ca25300fd0fe8a797203e384b71e48ea818
/plugin_tests/python_client_tests/extractID.py
d8592de368f5e8133d5f25645ed4d2f5c88aa854
[ "Apache-2.0" ]
permissive
jcfr/slicer_extension_manager
fc223bbb1d16c514212b482eb834616e9c985c83
9ab568ad091694e5a9d1079b8aa74b24847a0f8f
refs/heads/master
2023-05-26T09:42:52.030244
2018-02-16T00:24:33
2018-02-16T00:24:33
121,784,446
0
0
null
2018-02-16T18:16:58
2018-02-16T18:16:58
null
UTF-8
Python
false
false
297
py
#!/usr/bin/env python import re def extractID(file): with open(file, 'r') as f: res = re.search(r'\([a-z0-9]*\)', f.read()) if res: id = res.group(0) return id[1:-1] if __name__ == '__main__': from sys import argv print(extractID(argv[1]))
[ "pierre.assemat@kitware.com" ]
pierre.assemat@kitware.com
0344baddd74942f6dfa9887cb43835b91fa0091c
c01c931a3fd279f3f97efc6e57482f7e5ffb261f
/app/movie.py
a9616958495c9e0ad697e8f6a41bbb6a83a08db5
[]
no_license
Erikun/votatron
7fe5e8aec9f4c40f587a590a155d68df5ead1908
c5691c6f864086ac51f8739d919cc790d0e8d8ff
refs/heads/master
2020-04-16T21:16:53.856300
2019-12-31T09:58:36
2019-12-31T09:58:36
165,919,430
1
1
null
2019-02-10T18:54:26
2019-01-15T20:33:55
Python
UTF-8
Python
false
false
562
py
from flask import Blueprint, render_template, request from .movie_search import find_movie movie = Blueprint('movie', __name__, template_folder='templates') @movie.route('/', methods=["GET", "POST"]) def index(): if request.method == "GET": # User has not searched yet return render_template('mo...
[ "johan.forsberg@gmail.com" ]
johan.forsberg@gmail.com
577ad28e0d8d54fa64296f446e5c7859be5ef502
c77d62bca1ac466e8d11da90f90937cf6cfb7a80
/python/cmd/cmd_file.py
1fcd85efc6ec3ba25465585a3708c2a31186718e
[ "MIT" ]
permissive
tleonhardt/CodingPlayground
bd77cfc600edc383dedec12f12ae3f3829ad674c
c21bf5a7e3cfcf64d75122ea83f41daa9b2e73d4
refs/heads/master
2022-09-24T14:52:09.513488
2022-08-25T02:26:17
2022-08-25T02:26:17
67,437,634
0
1
null
null
null
null
UTF-8
Python
false
false
809
py
#!/usr/bin/env python import cmd class HelloWorld(cmd.Cmd): """Simple command processor example.""" # Disable rawinput module use use_rawinput = False # Do not show a prompt after each command read prompt = '' def do_greet(self, person): """greet [person] Greet the named pers...
[ "todd.leonhardt@gmail.com" ]
todd.leonhardt@gmail.com
ab5d49d700059376c4757cd72b98eda77a4aa424
af7ab3c9d189caf4a22b2a83a03da4560dba6166
/generated/administration_data/ProjectGroupNVL.py
ecfbd7d52940e8b4e4ed99db2d462d107784fe38
[]
no_license
Eggwise/unit4_python_api
43418d16d84abb73ddd843b8b268883f02ff996b
421195392e408bd9e14bda0851817c5ab835ebaf
refs/heads/master
2021-01-15T13:43:21.486918
2016-09-19T14:10:02
2016-09-19T14:10:02
68,611,588
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
import requests, json from generated.base.unit4_base import Unit4Base class ProjectGroupNVL(Unit4Base): def get_projectGroupNVL(self, database, ): request_args = locals() url_template = 'api/{database}/ProjectGroupNVL' url = url_template.format(**request_args) #print(url) ...
[ "dev@eggwise.com" ]
dev@eggwise.com
3397b7a6f1fc43ae58b57648be387a037cb8dd77
bb6bcc19922db5da3a9411e2dff07a0e10f6a760
/CCC/tally.py
7626e9dbcd2d3183798162268448550013b77e89
[]
no_license
sayali7242/Masters-Project
bc38f7fcadf7c14d595a02bf64ef8b24b83df62e
c344821feebff8b1073a5c6884c37607ef2f0b00
refs/heads/master
2023-03-04T20:03:08.939360
2021-02-09T23:23:07
2021-02-09T23:23:07
327,779,254
0
0
null
null
null
null
UTF-8
Python
false
false
3,791
py
#This is a multi-threaded implementation of CCC calcualtion using bit-arrays. import pandas as pd import numpy as np import itertools import sys import time import networkx as nx import threading df = pd.read_csv('combined_'+sys.argv[1]+'_case_ctrl', header=None) nanlist = list(open('NaNs_'+sys.argv[1]+'_combined'...
[ "sayali.patil@wustl.edu" ]
sayali.patil@wustl.edu
b50dbcd8ef4284854ab218413bc4eb9053e13840
bf0d17d391727934f72111d4276edbf826101558
/second.py
5af6749d13f830317375974fec6f972837179d0e
[]
no_license
AlSavva/OpenEduCourses
065c1e89ae0c315a6b3b8e818c3579f6ce95c0c0
ac82e7e7f9e953019a06645155e6a8a709263ad6
refs/heads/master
2023-01-19T22:10:17.237315
2020-11-24T19:47:36
2020-11-24T19:47:36
309,606,657
0
0
null
null
null
null
UTF-8
Python
false
false
721
py
# Дан файл, каждая строка которого может содержать одно или несколько целых # чисел, разделенных одним или несколькими пробелами. # Вычислите сумму чисел в каждой строке и выведите эти суммы через пробел # (для каждой строки выводится сумма чисел в этой строке). with open('input 2.txt', 'r', encoding='utf-8') as infil...
[ "savva2003@gmail.com" ]
savva2003@gmail.com
0d10bdf8508fb39ac7efdf6bd9797a558f348bc8
bb150497a05203a718fb3630941231be9e3b6a32
/framework/e2e/jit_legacy/api/test_expm1.py
e7e0445fa77c3a48d93e6a09ca4071cb9a28bda3
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
2,636
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ test expm1 """ import pytest import paddle import numpy as np from jitbase import Runner from jitbase import randtool @pytest.mark.jit_expm1_vartype def test_jit_expm1_base(): """ @paddle.jit.to_static def fun(...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
bb8805a0c049ef3c8a48b08db0c87e10b7aa861f
962243439b52e556b58ebf28b33b7b47030108de
/exp/exp.py
38952a71f8afe162cbc2471a4cd209904ecee931
[]
no_license
shuochen365/FreeViewSynthesis
aa42b448d6dc219741b45a31b84ff53dfd055300
36011f10dd51ed29eb9893e3471f4a62833ce23c
refs/heads/master
2023-01-03T03:54:55.797875
2020-10-27T08:03:10
2020-10-27T08:03:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,299
py
import torch import numpy as np import sys import logging from pathlib import Path import PIL import dataset import modules sys.path.append("../") import co import ext import config class Worker(co.mytorch.Worker): def __init__( self, train_dsets, eval_dsets="", train_n_nbs=1, ...
[ "gernotriegler@gmail.com" ]
gernotriegler@gmail.com
8bc2a9f9de60ea39da1602e62b943f17a7d40338
084684d625db6c51c2c1d6a7f9c163d621dc9f11
/test/testngpp-1.1/scripts/testngppgen/DataProviderParser.py
62620d46ab71798ca9019bb0c84e44d4bd142160
[ "MIT", "GPL-3.0-or-later", "LGPL-3.0-only" ]
permissive
mswdwk/code_test_records
a9938f356d140aa921402d4f049d408bc9c6d2a5
aec5c92d48b07c834b66d4f8b17a789e9bac7531
refs/heads/master
2023-08-23T09:39:01.706418
2023-08-17T06:10:01
2023-08-17T06:10:01
122,560,853
1
0
MIT
2023-02-25T00:13:07
2018-02-23T02:04:29
C++
UTF-8
Python
false
false
4,022
py
#!/usr/bin/python from Message import * from Phase1Result import * from DataProvider import DataProvider import re ########################################################## class DataProviderParser: ####################################################### def __init__(self, provider, file, line_number): s...
[ "mswdwk@outlook.com" ]
mswdwk@outlook.com
46927816b49f900a06d9d75dea661ad5d224e625
5a64af98434fa5802150e0bbc72d0a4c2aac49bb
/test_z_flow_three.py
ee41772d2677b89026b9375c1b21165d5050d736
[]
no_license
doujs666/zsph_ft_ui
cf59b5e519d7c058bf2d272c120570bd44814790
9904e47cfc4bce8759b4ff158e8a85391d8c7772
refs/heads/master
2022-02-14T03:47:30.877904
2019-07-29T06:33:15
2019-07-29T06:33:15
198,366,492
0
0
null
null
null
null
UTF-8
Python
false
false
5,371
py
# coding=UTF-8 from base import BaseSeleniumTestCase from page.total_flow import TotalFlow from page.loan_list import LoanList from page.contract_list import ContractList from page.credit_audit_loan_list import CreditAuditLoanList from page.historical_list import HistoricalList from page.index import Index from utiliti...
[ "281545444@qq.com" ]
281545444@qq.com
bebfef255f99252a4039a33872bee1b9d8ed755b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03303/s057999643.py
9314276089795c5e76ee4d045719ed4ff71127cb
[]
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
128
py
from math import ceil S=input() w=int(input()) s="" for i in range(len(S)): if i%w==0: s="".join((s,S[i])) print(s)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
91ac74029c7acf545a80322780898230f2e207a8
4217dbba217f6ec58ba631ce499c53a65260f3af
/Lab Activity/Murtadha/Plots/stackbar.py
4dbfd094a69c69cb306dd29f674bf5ea7de8fee9
[]
no_license
XCaramellX/ITSC-3155
cfb1044fa1251404a29f428b39d9558f7fa8eca4
425d4b5e2ff9f9f121de1f591bb18e36713a598a
refs/heads/main
2023-08-28T00:49:55.804588
2021-11-09T21:32:00
2021-11-09T21:32:00
404,490,011
0
0
null
2021-11-09T21:32:00
2021-09-08T20:44:12
HTML
UTF-8
Python
false
false
1,662
py
import pandas as pd import plotly.offline as pyo import plotly.graph_objs as go # Load CSV file from Datasets folder df = pd.read_csv('../Datasets/CoronavirusTotal.csv') # Removing empty spaces from State column to avoid errors df = df.apply(lambda x: x.str.strip() if x.dtype == "object" else x) # Creating unrecover...
[ "45076915+MurtadhaM@users.noreply.github.com" ]
45076915+MurtadhaM@users.noreply.github.com
844c023a3f996d35ed9bbbb6c3c0bf3c3828dbdf
26ae1682ae6c063e1bf0f98144845da05ef285c9
/FCN/Assignments/Upreti-Divyansh-HW3/PartC/start.py
81a9f2b6eea9d0abda6762951d7ea192b7f14b4a
[]
no_license
dupreti93/Stony-Brook-University
b1af66999703c87ae5c437effd7a0c5747bb4ce1
2bc2c959c8fcac56f5b7f7dd710b28b6d3f1694f
refs/heads/master
2023-07-12T02:44:06.651759
2019-05-04T23:07:51
2019-05-04T23:07:51
184,950,745
0
0
null
null
null
null
UTF-8
Python
false
false
2,299
py
#!/usr/bin/python """ Example network of Quagga routers (QuaggaTopo + QuaggaService) """ import sys import atexit # patch isShellBuiltin import mininet.util import mininext.util mininet.util.isShellBuiltin = mininext.util.isShellBuiltin sys.modules['mininet.util'] = mininet.util from mininet.util import dumpNodeCo...
[ "noreply@github.com" ]
dupreti93.noreply@github.com
9b1c65c72f1bdc01f7f7853556d0f7f3d2eab80c
5d65097828ce3029c458126f7ce93facb80944dd
/demo/urls.py
276c4aa60144f8eab1437b63b68e0ac6123c0d7f
[ "CECILL-B", "LicenseRef-scancode-cecill-b-en" ]
permissive
breard-r/django-npb
45c14524cedaa4e4b7ca09403b2bea42fbb535db
c70e1677e40a1a27d357377f3156ffea051ba56c
refs/heads/main
2021-11-14T17:52:00.295839
2021-09-15T10:40:13
2021-09-15T10:40:13
121,009,317
1
0
NOASSERTION
2021-05-04T04:10:59
2018-02-10T11:22:57
Python
UTF-8
Python
false
false
1,128
py
"""demo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "rodolphe@what.tf" ]
rodolphe@what.tf
dfa7b7317a9f3883b650a9344d3199730f7b4308
77a014156f639330f10162b79e6fa31fce7e88f9
/adminacttools/acttools/KAP_actions.py
ca060a0fda7c0a5c9fde9cb762749deabcf23207
[ "Apache-2.0" ]
permissive
tmbx/teambox-acttools
1d50e6cdc2c78fb31f1bf8da05897971439645c5
4ca2e0a59d37cfa9756047e9655f6a769b688a9e
refs/heads/master
2016-09-05T19:12:05.439175
2013-05-16T19:56:42
2013-05-16T19:56:42
3,780,293
0
1
null
null
null
null
UTF-8
Python
false
false
6,589
py
# # Copyright (C) 2010-2012 Opersys inc. # # 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 agreed to...
[ "karim.yaghmour@opersys.com" ]
karim.yaghmour@opersys.com
c0f08d3cdba32cd4ce1ac2444183d881175a00c1
7ddc5d778a5d7d866b60af7549cfe1d20c7e46b9
/shell/communication_serialization/python/serialization.py
6045fc486e79c3337f763809bbc4d847fb523f22
[]
no_license
05dirnbe/neural_network_control
cc4de3466493831b5f015596d912b6a864dd4f37
9041364004c1a71fec85222f00af8e45efe27135
refs/heads/master
2021-03-22T03:28:20.881654
2017-05-11T02:01:31
2017-05-11T02:01:31
88,581,468
0
0
null
null
null
null
UTF-8
Python
false
false
9,108
py
import logging from collections import defaultdict import numpy as np import flatbuffers import configuration import Buffers.Integer import Buffers.IntegerArray import Buffers.IntegerMatrix import Buffers.Spike import Buffers.SpikesArray import Buffers.String class Serializer_Operations(object): def __init__(self...
[ "mtd@mpi-inf.mpg.de" ]
mtd@mpi-inf.mpg.de
1328c1cea5c5eeecd8a910a65bfc89740039a841
d6190abda288086f6e8e1497bd595c2447c81788
/for_1.py
8ec56284f6d48f1e10e1fb8fefdb6d3683d7dfd9
[]
no_license
user801/aid1807
2fdd3c9a806e285f15a901f384d96d1bca3f4bc1
c5ad0e250b9398a50d4bec5d9ee4baa29fdd3879
refs/heads/master
2021-03-29T16:46:43.630204
2020-03-17T10:49:53
2020-03-17T10:49:53
247,968,026
0
0
null
null
null
null
UTF-8
Python
false
false
1,878
py
# s = "ABCDE" # for ch in s: # print("ch -->", ch) # 重複執行 ch 綁定 A B C D E # else: # print("for 語句執行else子句") # print("程序退出") #上面跑出的程式 # ch --> A # ch --> B # ch --> C # ch --> D # ch --> E # for 語句執行else子句 # 程序退出 # 練習: # 任意輸入一個字符串,判斷這個字符串中有幾個空格' ' # (要求不允許用S.count方法) # 建議使用for語句實現 # s = input("請輸入一段字...
[ "lvze@tedu.cn" ]
lvze@tedu.cn
0c3733d1070912526214d127e0345cc62e7fa825
8da91c26d423bacbeee1163ac7e969904c7e4338
/pyvisdk/do/host_virtual_switch_bond_bridge.py
f3c52636e92fe47048e84abef1415d561aeb96d2
[]
no_license
pexip/os-python-infi-pyvisdk
5d8f3a3858cdd61fb76485574e74ae525cdc7e25
1aadea0afbc306d09f6ecb9af0e683dbbf961d20
refs/heads/master
2023-08-28T02:40:28.789786
2020-07-16T04:00:53
2020-07-16T04:00:53
10,032,240
0
1
null
null
null
null
UTF-8
Python
false
false
1,104
py
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def HostVirtualSwitchBondBridge(vim, *args, **kwargs): '''This data object type describes...
[ "jmb@pexip.com" ]
jmb@pexip.com
7b871c3927796dc5c8f7832c9f12853a9ad8aefd
f7f705a5fc5b622b6ecec1d52643b59bc07c77ba
/ibis/__init__.py
2695fcec5ebaa6b0f2f95685de335d9edc9195c6
[ "MIT" ]
permissive
0x174/ibis
0ab0a2c76dc34f5ead43647f260d0c2a7a2288e7
5108848c1d45326b3c65213b2f8deaa88fd29be6
refs/heads/main
2023-06-05T14:00:10.170620
2021-07-02T13:44:16
2021-07-02T13:44:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
from ibis.utility.graphing import ( plot_graph, )
[ "jackson@justjackson.dev" ]
jackson@justjackson.dev
9d5ff74a624e8e7f092708078ba2bb94c79a64ad
6a14702c187139b9189f0d7d5468c98ce03b6560
/study/printf.py
4a47b6c5116a84a045385be0255b5471e4251535
[]
no_license
boboivo/python-learning
902b736fee24facbd773ccac6e6af42ad4663e5e
67a4267d12b8fab94e955d76cacd29af697288d3
refs/heads/master
2023-04-28T09:51:10.850980
2019-09-29T10:27:33
2019-09-29T10:27:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
printf = "printf" print(f"hello {printf}")
[ "zhaihw0417@163.com" ]
zhaihw0417@163.com
ac32b412881960fdd135b19553dcbd0e51766288
7ab6b53f5b359fe779113de39c758735664f0bd3
/robinhoodbot/transact.py
11f51c47d80cd9d76c5c1962bad0034812f8dd23
[ "MIT" ]
permissive
tstromberg/naivete
74426ce52b590e407661774b1835b535301c45a9
7c731cf63ccb7e0a1218a3e0839f3a9933a3bcf8
refs/heads/master
2023-07-21T20:06:28.230397
2021-09-09T04:11:47
2021-09-09T04:11:47
347,766,497
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
import logging import typing import robin_stocks.robinhood as rh def sell(symbol: str, holdings, dry_run: bool): """ Place an order to sell all holdings of a stock. Args: symbol(str): Symbol of the stock we want to sell holdings_data(dict): dict obtained from get_modified_holdings() method ...
[ "t+github@stromberg.org" ]
t+github@stromberg.org
b42158d184982e9ad4ca929ed7ead3ec46d58790
5749fb2dbb0e5489e1d06a835f89fbc9aff8de67
/wakeuproulette/urls.py
122e4611d01e8c4afcefbce23bdd944fba0b1d82
[]
no_license
axsaucedo/wakeuproulette
73d37abbd08765c2627b752528a7ddf57a102996
ecc9a6972e6bb419b71f7a97c21402e0a09ba74a
refs/heads/master
2021-06-11T15:50:18.612512
2017-01-24T17:10:01
2017-01-24T17:10:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,022
py
from django.conf.urls import patterns, include, url from wakeup import views from django.conf import settings from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', views.home, name='home'), # Serving Calls url(r'^wakeuprequest/(?P<schedule>.+)$', views.wakeUpRequest,...
[ "axsauze@gmail.com" ]
axsauze@gmail.com
5027b0fb17f1ba02e70846105a5c9ac76f5424c3
3f8af8c8d5efd90c0a09bb38b2a980ced3e38117
/ml_play_template_SVM.py
8e031ab59aa09090fe5d0b4b1bb3477cd3372456
[]
no_license
z50215z/homework4
fc85d115fd991a9e17f8961e8ea439b6a6e2a255
a6dfd652127d014a5228770d92783990238b4552
refs/heads/master
2020-09-15T11:36:28.175507
2019-11-22T16:03:32
2019-11-22T16:03:32
223,433,469
0
0
null
null
null
null
UTF-8
Python
false
false
2,876
py
"""The template of the main script of the machine learning process python MLGame.py -r arkanoid 1 -i ml_play_template_20191007.py """ import games.arkanoid.communication as comm from games.arkanoid.communication import ( \ SceneInfo, GameInstruction, GameStatus, PlatformAction ) def ml_loop(): """Th...
[ "noreply@github.com" ]
z50215z.noreply@github.com
58602f9b202b25c612a5d109093a409a38444000
4ebd36dafd421ca9988515b74891df8a03deb1b2
/nerodia/locators/class_helpers.py
5530916f410882d74bc6db44ec61aff8aacd980d
[ "MIT" ]
permissive
rbojjasba/nerodia
dac4a6610a5418ed5949467c5ac244394cc35bd0
2ad87cfd813f5d6201fe6b6aec6ae3ff5a39b7d9
refs/heads/master
2020-03-11T15:15:15.592182
2018-04-10T19:57:05
2018-04-10T19:57:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
from importlib import import_module import nerodia class ClassHelpers(object): # private @property def _locator_class(self): from .element.locator import Locator return getattr(self._import_module, 'Locator', Locator) @property def _element_validator_class(self): from .e...
[ "lucast1533@gmail.com" ]
lucast1533@gmail.com
d02975c051cf9929e7b311cc6691548310b7b564
f3b233e5053e28fa95c549017bd75a30456eb50c
/thrombin_input/1b/1b-7a_MD_NVT_rerun/set_6.py
881a105f8345f565a65eb50af369073a75f4648b
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
import os dir = '/mnt/ls15/scratch/users/songlin3/run/thrombin/ligand_final/final/1b_resp/MD_NVT_rerun/ti_one-step/1b_7a/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_6.in' temp_pbs = filesdir + 'temp_6.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
36618e6283984050bcdc80283bae3eac795fcf08
d10c6b9095744daf0c5057b233b7fef46ca7c0f5
/board/migrations/0002_board_delete.py
294d3a4f1b9c10d739b0c58201e9b9184b3fae31
[]
no_license
lucy74310/pysite
8cad7d9c9e694deadf0285243c31edb7c94c5c99
2d0d2bf39e8689b25ddd5a7639ec092fb22f4489
refs/heads/master
2020-06-07T02:46:21.591985
2019-06-25T10:37:05
2019-06-25T10:37:05
192,876,774
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
# Generated by Django 2.2.2 on 2019-06-21 08:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('board', '0001_initial'), ] operations = [ migrations.AddField( model_name='board', name='delete', field=...
[ "lucy74310@gmail.com" ]
lucy74310@gmail.com
a2f3efc48199e3f32398aa20acd4b4332eb5fbae
98637e287a2513a29fde79e68d7ae859061cfaaf
/scripts/python/skin-depth.py
0b37ea058a0d4c158f9820ab317112ee3dd8fd32
[]
no_license
mtgeoma/geomamt
0c8075089fad5e8e997b269105b6895ed69408ae
827079e295c0641f7236b276f7951bedb99e3a9f
refs/heads/master
2016-09-01T22:09:18.886194
2015-06-15T12:09:55
2015-06-15T12:09:55
32,728,686
5
3
null
null
null
null
UTF-8
Python
false
false
1,414
py
#!/usr/bin/env python # coding=utf-8 # para calcular o skin-depth (sd) # ./skin-depth.py rho=100.0 T=3.94784176044E-4 # para calcular o rho # ./skin-depth.py sd=100.0 T=3.94784176044E-4 # para calcular o período # ./skin-depth.py sd=100.0 rho=100.0 import sys import string import math if (__name__=="__main__"): ...
[ "mtgeoma@gmail.com" ]
mtgeoma@gmail.com
b3f0cb2910d9bd6bedc063fcf011924df10a94dd
a38a295b2538537e04d9865c003e1f611544cff8
/Les 3/3_4.py
ba5fd4c4f6c8a6b109ced59c9ae261a874f466cc
[]
no_license
LuukHendriks99/Python
0bfd3b9584d0fd18742d985fd6c2e465b2f5b13c
970b1e189a589c817750bb3e966e77e6bdf3f00e
refs/heads/master
2021-07-20T06:33:18.130667
2017-10-30T13:39:36
2017-10-30T13:39:36
103,111,085
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
lijst = [ 'maandag', 'dinsdag', 'woensdag' ] for l in lijst: print(l[:2])
[ "luukhendriks13" ]
luukhendriks13
8c05e056ded7e00bcc15f720813339c9efb1cf94
834394ad9550fe0f2f016b9ad2f8ba9a40513519
/Models/Model_1/Tests/TestRunner.py
0cd7a0b400ce251f9cd4a2010d8681837ab44028
[ "MIT" ]
permissive
akanimax/toxic-comment-identification-tensorflow
fd7239df03de11eb1d3964b79b7257c953126123
a1d065639d8b518c0ac1dc53e98e09642e258bb6
refs/heads/master
2021-05-15T04:16:26.674628
2018-03-19T14:39:35
2018-03-19T14:39:35
119,345,551
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
""" The main script that combines all the tests for this package in a suite and runs it """ import unittest from test_GraphCreator import TestGraphCreator def create_suite(): # create the suite object suite = unittest.TestSuite() # add all the tests in the suite suite.addTest(unittest.makeSuite(Test...
[ "animesh.karnewar@mobiliya.com" ]
animesh.karnewar@mobiliya.com
5f84763466fcb2b5ad06c86609b902fe79823db0
bec56b9cc4691dd221a7aafd96cabdf83fe974a5
/web-containerised/tests/test_information.py
2819a7509fc34f6bf4174531e011bd194064028d
[]
no_license
foad/bootcamp-project-monorepo
48be3a5489a73309c6c0ef8e720e07850eea1c7b
66ec4d46d3f3685bd1738a090640305e6935cfe6
refs/heads/master
2022-01-12T20:57:32.735457
2019-08-05T14:49:44
2019-08-05T14:49:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
from skyjourneys import create_app def test_privacy_page_load(client): response = client.get('/privacy') assert response.status_code == 200 assert b'Privacy' in response.data
[ "daniel.foad@sky.uk" ]
daniel.foad@sky.uk
3f0fb8acec1c4a040c53734126341421e6a699b5
a1b7381d396af61cdb11e9d2eeabf3c3d84f516f
/olive/store/mongo_connection.py
ddb75fc41d9360430cd110b7be42d9aec0f54516
[]
no_license
alirezastack/olive
7771503d4d796d114938610cadd8a8e501348a13
3a3496ed58328e0eb412513d1764f1e20b368461
refs/heads/master
2023-05-26T02:45:43.866082
2019-11-24T15:15:32
2019-11-24T15:15:32
219,418,765
0
0
null
2023-05-22T22:32:13
2019-11-04T04:42:38
Python
UTF-8
Python
false
false
855
py
from olive.patterns import singleton from pymongo import MongoClient @singleton class MongoConnection: def __init__(self, cfgs, app): self._app = app self._service = cfgs['appname'] self._client = MongoClient(**cfgs) self._app.log.debug('connecting to {} mongoDB server...'.format(...
[ "alireza.hosseini@zoodroom.com" ]
alireza.hosseini@zoodroom.com
67b65c2e358b25ecfa254975629b4a3d6533cb96
0b7fefef8f7173003adcd2ac3b9067763f7ac79d
/kik.py
90a54466aa54327a6e2e25e11d967a3784913253
[ "MIT" ]
permissive
earthexploration/Masters-thesis
e2b854e60a4cb2fc953b6bb0cdd4d6ac1552a441
56d1086f54cfa5887f5ea4bb8bb31a4670a83bfb
refs/heads/main
2023-06-10T15:04:07.589551
2021-07-07T20:29:46
2021-07-07T20:29:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
# -*- coding: utf-8 -*- """ Created on Wed Oct 7 20:49:34 2020 @author: erlin """ import hyperspy.api as hs import matplotlib.pyplot as plt import numpy as np import kikuchipy as kp filepath = 'filename' #Filepath to raw data s = kp.load(filepath, lazy=False) #Loading raw EBSD patterns s.remove_stati...
[ "noreply@github.com" ]
earthexploration.noreply@github.com
db365a21716847e846eadc04734267b71ab23c69
69fd09dcbd3f251c756b8d87492976bf849dd5ef
/Environment.py
c50ed20b7db23f1d7424163fff05823be689ebd6
[]
no_license
ejalaa12/MLRobot
5259e03ec475110cfca57f3145c58406dcb0fa94
736525b208e45d23b0be02c542391f5642ada96c
refs/heads/master
2020-04-09T20:06:46.492355
2016-09-14T11:48:22
2016-09-14T11:48:22
68,200,878
0
0
null
null
null
null
UTF-8
Python
false
false
5,170
py
import numpy as np import matplotlib.pyplot as plt from DubinsCar import DubinsCar from geometry_toolkit import * from regulator import * from ai_regulator import AI_regulator class Environment(): "Environment where the Dubins car will wander" def __init__(self, width=300, height=300, dt=0.1, regulator=Rando...
[ "ejalaa12@gmail.com" ]
ejalaa12@gmail.com
a4c061df7c9980b76d9d90f453e302d42614969f
8d7142cd15bb05572a69ed5a434c8d9a2da94c4d
/dgsite/settings.py
b3802ecfe40f9beddb19ab3d8ed9923853364145
[]
no_license
ar-gis/dgblog
9d8129985eaebdf348a7cbbeac31c6ed076c2225
c8b5e207e5ac27addcc923ec6c97afd306b98b78
refs/heads/master
2020-04-02T01:47:57.192192
2018-10-28T09:49:29
2018-10-28T09:49:29
153,875,664
0
0
null
null
null
null
UTF-8
Python
false
false
3,279
py
""" Django settings for dgsite project. Generated by 'django-admin startproject' using Django 2.1.2. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ i...
[ "andrzej.rogozinski@astra.software" ]
andrzej.rogozinski@astra.software
66da406ee8824118201d45a6b3adc201dd249228
ea11b4dc13405f759ecf729dc9b0e0d9b13d82e7
/player.py
8427a9eb6a4a046b215fa0e4a0e8fb266b313014
[]
no_license
Jkinsella497/PyMaze
04bc5d84f99dc0c249b731c8f9f5b248e453b61b
1322dc45772b7f746a2a5513fdac6dd6e80a2d4d
refs/heads/master
2020-03-23T13:55:37.252027
2018-07-20T01:07:23
2018-07-20T01:07:23
141,645,511
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
class Player(): def __init__(self): self.x = 0 self.y = 0
[ "jake@teamzerolabs.com" ]
jake@teamzerolabs.com
28739d09f8c5e7a24cf9f76d52af2e798bbbb708
380a1f6279d9543b7f89357744082293e289ff77
/mysite/zotify/migrations/0008_member_role.py
d94914ebaca18ad8f0f2d6e003fcbc5e48e6ca39
[]
no_license
wgliwa/Zotify
8ea6658c5ddb11485c4c78173590d95e0c64a420
4b7499c5e3580f927a104daeefc43e3f51e8cb34
refs/heads/main
2023-05-23T01:35:54.887012
2021-06-08T10:29:43
2021-06-08T10:29:43
374,969,928
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
# Generated by Django 3.1.7 on 2021-05-24 09:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('zotify', '0007_auto_20210524_0133'), ] operations = [ migrations.CreateModel( name='Role', ...
[ "58432170+wgliwa@users.noreply.github.com" ]
58432170+wgliwa@users.noreply.github.com
241ab1bfa79f249ee15c2e4016344a84b52cee7b
4f1218079f90a65befbf658679721886d71f4ee8
/python/atcoder/ABC/B/b126/b089.py
359ced93c84b3de6272e57227a50c51dfd50b0a0
[]
no_license
Escaity/Library
9f57767617422a7930caf48718d18f7ebef81547
b34d8600e0a65845f1b3a16eb4b98fc7087a3160
refs/heads/master
2022-07-29T16:18:33.073738
2022-07-17T10:25:22
2022-07-17T10:25:22
238,588,249
0
0
null
2021-08-17T03:02:34
2020-02-06T02:04:08
Python
UTF-8
Python
false
false
102
py
n = int(input()) s = set(input().split()) if len(s) == 3: print("Three") else: print("Four")
[ "esk2306@gmail.com" ]
esk2306@gmail.com
c50d0fe2e4dd816c273f42f943cc81c4394df939
9331d1a084c03e8243c2355def0d5b2636f23199
/Chapter1/Ch1P3.py
395ec8dd5038a7ee923089692ed767f5220d20cb
[]
no_license
PrabuddhaBanerjee/Python
e489fa5088560682af40b84c3fa86071c854e757
9472592a8286f432d66c33e8c6ab46cb928f9f32
refs/heads/master
2022-07-10T22:00:00.547223
2020-05-18T22:02:15
2020-05-18T22:02:15
258,084,056
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
def main(): print("This program") x = input("Enter num between 0 and 1:") for i in range(10): x = 2.0 * x * (1 - x) print( x ) main()
[ "prabudh994@gmail.com" ]
prabudh994@gmail.com
867d3283eedb6f0f2fff27d4eadf093f82f3715e
afbb6f97e35884744597c764133e798a1490787a
/Python/ex13.py
0bf1782cad3e5c1e4225c66702e002d2e6cc9bef
[]
no_license
akmoore85/newcode
6f74259ef4c70ca4bc86c431c8d7e465106501d1
306b6e02d96cdc3d5833125c407159d3291f9896
refs/heads/master
2020-03-07T07:35:42.124554
2018-04-01T03:30:34
2018-04-01T03:30:34
127,353,412
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
# Write a program that asks the user how many Fibonnaci numbers to generate # and then generates them. Take this opportunity to think about how you can use functions. # Make sure to ask the user to enter the number of numbers in the sequence to generate. # (Hint: The Fibonnaci seqence is a sequence of numbers wher...
[ "akmoore85@gmail.com" ]
akmoore85@gmail.com
ea7a23f4530621019e15f8f1344c873833802e67
41dbe386398222d83eb392528dc738d30c31ecf1
/src/oxford.py
05601e6d3bc363a5b9ec1fedca6973625a65b9f1
[]
no_license
spidgorny/learn-english-by-youtube
dc00fe6f6948bd7416faf4ea84badf9e20d1706a
d7ea46035cadf95ef3a66e8b965b8503088f4267
refs/heads/master
2023-01-07T01:23:16.318036
2022-02-21T09:56:53
2022-02-21T09:56:53
188,993,746
1
0
null
2023-01-05T23:58:02
2019-05-28T09:06:30
HTML
UTF-8
Python
false
false
484
py
import requests import json from dotenv import load_dotenv import os load_dotenv() app_id = os.getenv("OXFORD_APP") app_key = os.getenv("OXFORD_KEY") language = "en-gb" word_id = "example" base = "https://od-api.oxforddictionaries.com:443/api/v2" url = base + "/entries/" + language + "/" + word_id.lower() url = base ...
[ "depidsvy@nintendo.de" ]
depidsvy@nintendo.de
21e1393d3ea043c5743c87df810d454dda2836e0
fc168aacda192a323f128190fce61890af64204e
/PlottingDrivers/PlotterABC.py
ad491bab95a8c4dc35810b2d64468895b0d07451
[]
no_license
mandersonGH/MOONJAM
ee7fe0fde2c9091e431c40ed354b9419d1cc5fa9
52d9d83270f9c1102daf4ad5379faa043596ff2d
refs/heads/master
2023-07-19T05:09:57.350697
2021-09-09T07:29:44
2021-09-09T07:29:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
''' Created on Sep 8, 2017 @author: Mande ''' import abc class PlotterABC(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod def plot(self, direc, galaxy, plotType): """Create and save plots of a certain type, of a certain galaxy in a certain directory.""" return
[ "mra21@duke.edu" ]
mra21@duke.edu
53f4a5dbd995c8d0d06462adf2753293500b5cd1
d734ea42794064f04fc7d20c02103b46e557cf83
/WikiSummary.py
1ad53060f68dce62737de58cfbe0bbeecf057ae9
[]
no_license
Rishoban/AbstractiveTextSummarization
9d0d7dc628067bda54a1cbbbdc00d5398c924d5c
44a928b8f4423ade23baaacc9d3bbec239d751c1
refs/heads/master
2020-05-04T17:41:37.673608
2019-12-28T07:03:08
2019-12-28T07:03:08
179,322,301
1
0
null
null
null
null
UTF-8
Python
false
false
7,079
py
import numpy as np import nltk nltk.download('punkt') # one time execution import csv import itertools import networkx as nx import math from nltk.stem import PorterStemmer #Read this documents file = open("Evaluation/achu5.txt", "r", encoding = "utf-8") filedata = file.readlines() stock_keywords = ['gain','annual',...
[ "rishoban27@gmail.com" ]
rishoban27@gmail.com
4940940acafc3286cbd1263ff3ba521ea825fc8b
96912c23d8ad0ab0e8c65cf2894b8d98e68b7b61
/explore/latex_basic.py
2a3b9926a622b4277b4ffe6d3d10739e09c63ae8
[]
no_license
hemanta212/hello-manim
c68f1f15ad67f252f652232e98e84c686b2054ed
30e82d6d1a144c87a392a947ad9a2b4bb6b9e253
refs/heads/master
2023-06-08T12:13:47.130624
2021-06-30T23:37:17
2021-06-30T23:37:17
301,414,235
1
0
null
null
null
null
UTF-8
Python
false
false
416
py
# Latex #!/usr/bin/env python3 from manimlib.imports import * class BasicEquations(Scene): # A short script showing how to use Latex commands def construct(self): eq1 = TextMobject("$\\vec{X}_0 \\cdot \\vec{Y}_1 = 3$") eq1.shift(2 * UP) eq2 = TexMobject(r"\vec{F}_{net} = \sum_i \vec{...
[ "sharmahemanta.212@gmail.com" ]
sharmahemanta.212@gmail.com
f4721af768f72b7661c4e6b7710c1b48368619b0
651ed932dcc3af273e2c5639db03ebf3688d833f
/07_classes_and_object/2_self_parameter.py
5dbffe394e932ec53c08d84f0ef02caa24b92e93
[]
no_license
adamcanray/canrayLearnPython
b3b470d675d786fc3efc5fcf2b43f5293c77a783
00e91d2ce080b845a642a554471b0a14cbc6e046
refs/heads/master
2020-08-20T05:44:31.815991
2019-10-23T15:27:12
2019-10-23T15:27:22
215,987,927
2
0
null
null
null
null
UTF-8
Python
false
false
820
py
# ----- header # Saatnya untuk menjelaskan parameter self yang digunakan dalam tugas sebelumnya. # ----- start reading # Perhatikan: # * Parameter self adalah konvensi Python. # * self adalah parameter pertama yang diteruskan ke metode kelas apa pun. # * Python akan menggunakan parameter mandiri untuk merujuk ke ob...
[ "adamcool180@gmail.com" ]
adamcool180@gmail.com
7303c13be3c7f4bc28364efa9549c14622515aa2
5216fa3332dd7400f64d8e359aa12c803b9615a0
/scripts/get_luts.py
83ec9328400efb7f0515bcc35ee805518341d005
[]
no_license
jlingema/uGMTfirmware
acc5c98e85a7d628f150f08a1cb959dbad4fe797
cf25041632b4ab88b844a2d6551dd5adc91ba9b6
refs/heads/master
2020-12-25T03:41:12.033549
2015-05-06T18:54:42
2015-05-06T18:54:42
32,987,956
0
0
null
2015-03-27T13:36:55
2015-03-27T13:36:54
null
UTF-8
Python
false
false
1,489
py
#!/usr/bin/env python import urllib import json import argparse import os def get_addresses(lut_type): ''' Gets the download URLs through the github-API. ''' fobj = urllib.urlopen('https://api.github.com/repos/jlingema/uGMTScripts/contents/lut_tests/lut_configuration/data/{tp}'.format(tp=lut_type)) ...
[ "joschka.lingemann@cern.ch" ]
joschka.lingemann@cern.ch
3e9a13e8c5f476f83099bb0083b9dd0f5a08aac4
b6a59f4b4ae064371e186658b5e67692026a51b0
/Settings/scripts/startup/bl_ui/properties_particle.py
0352c4e6e090be374b30889108641b4b2916f859
[]
no_license
L0Lock/Blender-Stuff
7fdb63cb91aa7f82b27ad56fb1138120f161c95d
19e20f78e84856c760717ffec1783fc9b494273d
refs/heads/master
2021-09-28T08:11:39.216097
2018-11-15T21:14:28
2018-11-15T21:14:28
109,046,228
1
0
null
null
null
null
UTF-8
Python
false
false
53,486
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "loic.dautry@gmail.com" ]
loic.dautry@gmail.com
be5ec02c737544bccc2db5410763fde85dcb258f
844871e54a514ac66871bac253164d3e3b13f4b8
/app/tracks/schema.py
458dca2a71b99da2f03457d38f3c6ce21ed0dcaf
[]
no_license
l225li/react-tracks
b469422df4a8d0c06620bb7501a2823d17f2921c
91f0ec5b7e8e20501ae28f637fee33b724de0be4
refs/heads/master
2023-01-20T02:36:36.225660
2019-06-14T16:28:07
2019-06-14T16:28:07
187,041,017
0
0
null
2023-01-03T22:15:53
2019-05-16T14:11:12
Python
UTF-8
Python
false
false
3,386
py
import graphene from graphene_django import DjangoObjectType from .models import Track, Like from users.schema import UserType from graphql import GraphQLError from django.db.models import Q class TrackType(DjangoObjectType): class Meta: model = Track class LikeType(DjangoObjectType): class Meta: ...
[ "vanessa.li104@gmail.com" ]
vanessa.li104@gmail.com
3bd8e76e4fa14b88b06d97f5cf7c41d5e07f26a1
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/COM21-HCXSTUPRXY-MIB.py
9a57eb77f230af9d2f437dffe242ba17ea37211c
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
78,414
py
# # PySNMP MIB module COM21-HCXSTUPRXY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/COM21-HCXSTUPRXY-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:26:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
ae0ca66c3b7e3f8ae0ae2cd46e59bce09d42710f
68a9c2ee2c891a13089dfefe41c09296a4eac288
/phoneBook/urls.py
82a108110f19a69a6998131982a5ed3e628bfc17
[]
no_license
nashirbekov/phoneBook
74d853a7044d56ec4e5eaa348fb95d4a3d0bb875
4c2a14beff86250a9e690f48571c4864007da91b
refs/heads/main
2023-03-12T01:24:15.302558
2021-03-01T20:11:04
2021-03-01T20:11:04
343,532,813
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
"""phoneBook URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "nashirbekov35@gmail.com" ]
nashirbekov35@gmail.com
d79aa7eb45cb64e7cbb40bd067f0333db6eb551b
4f54f4a182dbacba4b513b8b5589f83feb458545
/venv/Scripts/easy_install-script.py
fcd9faea2bc0344e7a240d6172ff3b45c8d13ccf
[]
no_license
xferrerc/RobotPractica1
e77a48db11e3feedd7e10e3de258a50c8f6c1f92
26f8634439ca2a8caa7974406c578bc83fc40198
refs/heads/master
2020-03-22T21:34:13.585997
2018-07-12T11:56:49
2018-07-12T11:57:02
140,696,835
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
#!C:\Users\Robot\PycharmProjects\RobotPractica1\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\....
[ "manu.sancho@gmail.com" ]
manu.sancho@gmail.com
41f4d29ce42fff304d6a43c393cbb732c7658691
42406776e4588bc819f14c342c5f341a46794f23
/gps/convert.py
874398a82b7457f362629eab47917963fe229380
[]
no_license
gantryyork/datasci
a0d55b645c3021db720fbf9ef32b9b53aecccf83
0707454ca25726e656921fb9c4b162a040d2a16c
refs/heads/master
2020-09-23T04:28:09.375823
2020-04-21T12:33:24
2020-04-21T12:33:24
225,401,652
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
import math def nm(km): return precision(km * 0.539957, 4) def mi(km): return precision(km * 0.621371, 4) def dms(ddeg): (r, d) = math.modf(math.fmod(ddeg, 360)) (s, m) = math.modf(math.fmod(r*60, 60)) return [int(d), int(m), int(s*60)] def ddeg(d, m, s): deg = d + (m/60) + (s/3600) ...
[ "gantry.york@gmail.com" ]
gantry.york@gmail.com
bb21f9ae3d063d9f922628645b370ffb2b47c8d6
d35daf29588b97fc7d2e2920bb2f2a837bc012e5
/ud953/vector.py
9020199d70b141332d234baa7c73d46dc58c501f
[]
no_license
xBDL/udacity
a918db67feffc9484517c668d49220af886d861d
5aeec20a8c14cdcb84e0ea459169117cf25f7460
refs/heads/master
2022-06-26T12:52:20.980140
2020-05-05T07:19:16
2020-05-05T07:19:16
258,355,024
0
0
null
null
null
null
UTF-8
Python
false
false
2,792
py
from decimal import Decimal, getcontext from math import acos, sqrt getcontext().prec = 30 class Vector(object): def __init__(self, coordinates): try: if not coordinates: raise ValueError self.coordinates = tuple([Decimal(x) for x in coordinates]) self.d...
[ "xbdl@outlook.com" ]
xbdl@outlook.com
c62007a470cd06d5e41738b79c7410e80d3d88ea
7fc22a26689eb4b3c0433aba85cba1db677bb057
/Untitled20.py
34246e4035456792ad380e65ce0ab60f6fd50354
[]
no_license
lovestudymen/Deraining
3791079a84ae4dfd0c93fbc054785bbe104c5019
4e8c8cee3dab2f99c37d42349321ec707db93cc5
refs/heads/master
2023-04-06T16:16:28.951445
2021-04-06T06:34:02
2021-04-06T06:34:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,884
py
{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "Untitled19.ipynb", "provenance": [], "authorship_tag": "ABX9TyPY9FM3dpukgutjWM5SKwbl", "include_colab_link": true }, "kernelspec": { "name": "python3", "display_name": "Python 3" } }, "c...
[ "60787846+mountainway184@users.noreply.github.com" ]
60787846+mountainway184@users.noreply.github.com
c1cae50d8c044ff6eb2486dc850b1339f83b4f78
a7c18c15e18bfed2df7a866cae3f8c213de942d6
/venv/bin/django-admin
cb6939098203b3692f2a96b1b62f5fc709f23406
[]
no_license
mitun94/Djangobin
358aa3c66aefb325640a781e0c87457a120daa36
32cd11c9f64c03f1d68a0805770c44f497ea9818
refs/heads/master
2020-03-26T04:15:22.020406
2018-08-13T15:59:32
2018-08-13T15:59:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
325
#!/home/mitun/PycharmProjects/Django_Projects/django_project/venv/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_lin...
[ "tohidulalam216@gmail.com" ]
tohidulalam216@gmail.com
e0ebfdf1d5c2c47b1b207d45d14b65460f34adea
92e3a6424326bf0b83e4823c3abc2c9d1190cf5e
/scripts/icehouse/opt/stack/glance/glance/openstack/common/strutils.py
7dc6616a75de15acd1537aa23ffefe37fa6e8007
[ "Apache-2.0" ]
permissive
AnthonyEzeigbo/OpenStackInAction
d6c21cf972ce2b1f58a93a29973534ded965d1ea
ff28cc4ee3c1a8d3bbe477d9d6104d2c6e71bf2e
refs/heads/master
2023-07-28T05:38:06.120723
2020-07-25T15:19:21
2020-07-25T15:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,508
py
# Copyright 2011 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ "cody@uky.edu" ]
cody@uky.edu
c02d354915709bfff78bdcf07d8d696ba1859875
ea0fb59afa9c1d6579ab28b001ab47dc0096ca5d
/Node Status Monitor/Python v2.7/libs/common.py
7707a2be087db6d7946c7ce9baff496697f2a0fd
[]
no_license
catchpoint/Community-Scripts
98255eb8ba4c11ff0c77bf275a77471db7ec3a41
e05716950e7f38416d20bf980a9fe3b660751ad9
refs/heads/main
2022-03-14T17:45:27.623625
2022-03-01T19:25:57
2022-03-04T16:36:07
122,093,072
2
1
null
2022-03-04T16:36:09
2018-02-19T16:56:28
Python
UTF-8
Python
false
false
5,858
py
import json import logging from configparser import ConfigParser import os.path from os import path import application_constants from api import get_catchpoint_token,fetch_catchpoint_node_deatils from logger import info_logger,error_logger # Config config = ConfigParser() config.read(os.path.join(os.path.dirname(__fil...
[ "github@michaelkozicki.com" ]
github@michaelkozicki.com
c35bdda591a1ae160a5260f373355342cddc478f
f58918aab441e891290f1ca05ba5c3105b1e1499
/rbac/admin.py
d1ea098433a2af02999e432af15b7b7a253b47fd
[]
no_license
silence-cho/Rbac
3ff3f09aa548ea69b2050b4b845a34b19ded9179
45a09dfca81648ab0b1db67a426938b6a4eba085
refs/heads/master
2020-04-01T02:12:14.706410
2019-03-28T06:50:31
2019-03-28T06:50:31
152,768,990
2
0
null
null
null
null
UTF-8
Python
false
false
368
py
from django.contrib import admin # Register your models here. import models from django.contrib.admin import ModelAdmin class UserConfigure(ModelAdmin): list_display = ['name','role'] admin.site.register(models.User,admin_class=UserConfigure) admin.site.register(models.Role) admin.site.register(models.Permissi...
[ "silence_cho@163.com" ]
silence_cho@163.com
d83cf0765ba46b9ddc92052a9ecd0e3dd1eea18d
4902dc4d15a1b80d28d060b7f47f05e2185a660e
/huffman.py
a29fa65f995b887bf1896b0a2b70a86ab17712f7
[]
no_license
surprise3465/HeartSound-Compression
0f998eedc344f0bbd85f9c25a9696efebe9677a2
cf0b6dbfa326c6144a0fee5049d2c9887ad2e9ee
refs/heads/master
2021-04-09T14:52:16.671378
2018-08-23T09:32:39
2018-08-23T09:32:39
125,540,470
1
0
null
null
null
null
UTF-8
Python
false
false
6,039
py
import numpy as np import copy class HuffNode(object): """ 定义一个HuffNode虚类,里面包含两个虚方法: 1. 获取节点的权重函数 2. 获取此节点是否是叶节点的函数 """ def get_wieght(self): raise NotImplementedError( "The Abstract Node Class doesn't define 'get_wieght'") def isleaf(self): raise NotImplement...
[ "spirit3465@sina.com" ]
spirit3465@sina.com
f1242611192ff0c62762bd5d2b56d409622fa446
2a289759aed74103db31d23f983f8a94c0e44ab0
/FunixLesson/Codelearn/HamPython.py
494250379981fa9bfb5a826dcc4b3472521ee8e4
[]
no_license
pandare130691/FunixGit
a79401c97b3a8715aeba726b9cbb3b4bcd10f9be
40cc353c4c6b51dabd041a7401ba21016f542fe9
refs/heads/main
2023-02-12T03:15:10.697902
2021-01-15T17:04:11
2021-01-15T17:04:11
324,597,475
1
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
#1 def sum_of_list(lst): ans = 0 for i in lst: ans += i return ans lst = [] n = int(input()) for i in range(n): lst.append(int(input())) print(sum_of_list(lst)) #2 def max3(a, b, c): ans = a for i in [a,b,c]: if(i>ans): ans = i return ans a = int(input()) b = int(input(...
[ "phanxuandung09h5@gmail.com" ]
phanxuandung09h5@gmail.com
79d3ca7185cfabf9fb13e19308253dc419c828d9
2f954ab39ec135fed31325596063fdf0d553613d
/src/conanfile-h195.py
93b7b66160198112f77c6299dccfb531320a92ae
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
Esri/palladio
7e2946b2f3e188895ec0258a336d3b44e32b2146
8dc99d5cd3dfee79d7c1cc6b17ba2087c7cbe0e0
refs/heads/main
2023-08-28T21:41:11.831215
2023-07-13T08:51:59
2023-07-13T08:51:59
30,315,957
104
22
Apache-2.0
2023-07-13T08:52:01
2015-02-04T19:11:20
C++
UTF-8
Python
false
false
783
py
import os from conans import ConanFile class PalladioConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def requirements(self): self.requires("catch2/2.13.7") if "PLD_CONAN_HOUDINI_VERSION" in os.environ: self.requires("houdini/{}@sidefx/...
[ "chr11115@esri.com" ]
chr11115@esri.com
e39954b99947b29743c56e5a794eefbe6f1ae82f
29d6216a5ca58b68776ff5d1534b30549f07bb1a
/enrich-ssl.py
16a7c0b0587de6ecc37374841dec0d2676e0bbf8
[]
no_license
cudeso/digital-footprint-light
9e958343cdaba3519c0634cb8d81e0f4d21d51db
060d8bc7d855f379af249937cb8825f6f2cf3a0f
refs/heads/master
2022-08-07T09:15:35.705161
2022-07-25T11:21:38
2022-07-25T11:21:38
217,532,379
2
0
null
null
null
null
UTF-8
Python
false
false
5,749
py
import os import json import random import requests import socket import warnings from ipwhois import IPWhois from datetime import datetime import time from time import sleep basepath = os.path.dirname(os.path.realpath(__file__)) + '/' log_suspicious = basepath + 'suspicious_domains.log' log_suspicious_json = basepat...
[ "noreply@github.com" ]
cudeso.noreply@github.com
d69b743b1add535c69e1d83e6680e19ee5e67bc3
5a33d2a369d5cba8348ead5f3f9f0a57029db5ce
/SecPy.py
598a9955ee3ec4b0735953984dea142d896bcbee
[]
no_license
HelianMartins/SecPy
220453cd917b109ae493c6db61c3a7308825f08a
a71995d87ea7e81c7a98d91e2b79d495a4edc580
refs/heads/master
2022-06-24T20:04:20.294540
2020-05-10T19:40:04
2020-05-10T19:40:04
262,855,264
0
0
null
null
null
null
UTF-8
Python
false
false
19,219
py
# altor : Helian Martins import banelib import os def secpy(): def clear(): os.system('clear') or None clear() print(" =====================================") print(" #### ###### #### ##### # # ") print(" # # # # # # # # ") print(" #### ##### # # # # ") print(...
[ "noreply@github.com" ]
HelianMartins.noreply@github.com
ea94c660c332c7831fda74aa5659f4c874998483
ac713c0c573c7980c50be791ff789bca5dc35917
/gte460/wsgi.py
342080188645b398c6f80f961a5a924a370f3be8
[]
no_license
aristodemos/gte460
0f6c64c6db6f3c4c11f84ec5868b1f8cc7495166
b31ee2da719c1ff3e02bba1ac0138b2c53b31c54
refs/heads/master
2020-06-06T13:18:12.483779
2014-06-10T18:00:55
2014-06-10T18:00:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
""" WSGI config for gte460 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/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gte460.settings") from django.core.wsg...
[ "a.rpiko@gmail.com" ]
a.rpiko@gmail.com
4a509ced8a8371d22676ed9916b2c6281c81013e
48093bb65c5683475d7e7db0625025150fb03f97
/Q-learning maze/Q_Learning.py
81698b9e555d72f53d0ea4704a1c2c08bef03921
[]
no_license
HITLB17/basic_RL
ee682ba319e857f4dd24f8785106f544febd64ae
0c497e109d3fee347339fbc453a2a37848752556
refs/heads/master
2020-05-31T21:45:36.316266
2019-08-04T08:25:47
2019-08-04T08:25:47
190,505,669
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
"""" most of this code copied from morvan this part is a Q-learning algorithm for finding a optimal path in a maze Q(s,a) = Q(s,a) + learning_rate * [reward + gamma* max_a'{Q'(s',a')} - Q(s,a)] """ import numpy as np import pandas as pd class QLearningTable: def __init__(self, actions, learning_rate = 0.01, rewar...
[ "17b904042@stu.hit.edu.cn" ]
17b904042@stu.hit.edu.cn
9666a9a73114d3023bc7e7166da3745bb5daedc3
43973d97eb15d48a1af2e53ce8538e76a6a40c1a
/.virtualenvs/mysite-virtualenv/bin/django-admin
b5ee6cd0db1dd5f382e69eec2e22b8c3bc94e901
[]
no_license
satyamsammi/fcon
5693ea7be7804c6e26323088a00a12e802432222
8c2478e4b7479cd0d34fa110c79b0c24c9ecb4b4
refs/heads/master
2021-01-17T08:07:26.579950
2016-07-26T11:40:52
2016-07-26T11:40:52
62,948,130
0
0
null
null
null
null
UTF-8
Python
false
false
305
#!/home/fcon/.virtualenvs/mysite-virtualenv/bin/python3.4 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "fcon@fff5562e8198" ]
fcon@fff5562e8198
d1b1803bbb5a573a95d3ae340beec996d30a8766
2f95c4762e0d57e97da6c291228761e3a8c8e938
/vvdatalab_nifi_flow_generator/models/processors/creations/create_processor_routeonattribute.py
5ae53f7a28bfd6d46636621e0c7284f4f00594f4
[]
no_license
felipelobasrocha/nifi_flow_generator
9964050a6834fb15434f2f8ece16b1d26afe192c
6dea7c27250e3447e5febf6a6e55625f413ec62c
refs/heads/master
2020-08-24T22:00:43.115585
2019-10-22T21:40:34
2019-10-22T21:40:34
216,914,965
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
from nipyapi import canvas, nifi from .create_processor import CreateProcessor class CreateProcessorRouteOnAttribute(CreateProcessor): type = None def __init__(self, process_group, processor_name, processor_location, processor_config): CreateProcessor.__init__(self, process_group, processor_name, pro...
[ "felipelobas@gmail.com" ]
felipelobas@gmail.com
d1414f16cce1d099928c9824e36401395b01d041
4305b79e7e23221f3f58060da282e3a4c1115516
/ex17.py
38cc56a0321d56835ca1c33395ac8ddea80579f6
[]
no_license
Cathryne/Python
da533636431513bba82b75a25efd67f02d4712e8
b520f270205264e8856dba0923b5aeeb1d813a25
refs/heads/master
2020-06-04T21:56:27.481723
2015-03-01T16:56:19
2015-03-01T16:56:19
23,039,947
0
1
null
null
null
null
UTF-8
Python
false
false
684
py
# Exercise 17: More Files # http://learnpythonthehardway.org/book/ex17.html from sys import argv from os.path import exists script, from_file, to_file = argv print "Copying from %s to %s..." % (from_file, to_file) # sequential combination of file opening and content reading in_data = open(from_file).read() print "T...
[ "katrinleinweber@MAC.local" ]
katrinleinweber@MAC.local
b69f5c9d38a5d66f3802e83800a79da6780808d5
32d9d4d2804996d2c0b3283727594d30770797f0
/app.py
77c8eb199a777011a8a31c2e4cea973f5f2b4fb0
[ "MIT" ]
permissive
ianforrest11/dash
55a269e15336b13d8925aa4e56d11b177b25c489
7e10e5ebf5d5ce6ba8d77e50990d36848b1e8e8c
refs/heads/master
2022-12-02T07:32:11.181695
2019-08-29T16:01:09
2019-08-29T16:01:09
204,800,986
0
0
MIT
2022-11-22T04:15:13
2019-08-27T22:29:06
Jupyter Notebook
UTF-8
Python
false
false
1,699
py
import dash import dash_bootstrap_components as dbc """ https://github.com/facultyai/dash-bootstrap-components dash-bootstrap-components provides Bootstrap components. Plotly Dash is great! However, creating the initial layout can require a lot of boilerplate. dash-bootstrap-components reduces this boilerplate by p...
[ "ianforrest11@gmail.com" ]
ianforrest11@gmail.com
fae5bcfb182d6c5898546cad55b36967f10e7dfa
37feae2d674f5d492691d8dacde5f5d2a7bc763b
/lr/apps.py
16ec0bfbd8af261119993adadfa2b4be6d199abd
[]
no_license
HansWan/LoveRelay
6097b59a3d7c6a24f0567c552a313a3fb325a6ce
58f553f81e499d07fabfaf3f86109cb46fca21c6
refs/heads/master
2021-09-21T00:58:19.108066
2018-08-18T06:56:55
2018-08-18T06:56:55
118,108,611
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
from django.apps import AppConfig class LrConfig(AppConfig): name = 'lr'
[ "thelastchoice@vip.sina.com" ]
thelastchoice@vip.sina.com
c167087c5de0258595432b19c6eab24944bf5cc3
36126f91a2d5903483b84ba2d8be77e160803058
/examples/python/deterministic_paths.py
3f8d8e0ab3a502deaaed71a38504c425db042893
[ "Apache-2.0" ]
permissive
open-risk/transitionMatrix
9962bb2656eb637ba56afc3adecf42bbe68f9593
d05e75cbc251f01842dd8c5ce225894b988f4d99
refs/heads/master
2023-03-05T08:01:20.816425
2023-02-22T20:46:38
2023-02-22T20:46:38
110,365,127
73
29
Apache-2.0
2022-12-08T11:37:12
2017-11-11T17:25:08
Python
UTF-8
Python
false
false
1,885
py
# encoding: utf-8 # (c) 2017-2022 Open Risk, all rights reserved # # TransitionMatrix is licensed under the Apache 2.0 license a copy of which is included # in the source distribution of TransitionMatrix. This is notwithstanding any licenses of # third-party software included in this distribution. You may not use this...
[ "openrisk@outlook.com" ]
openrisk@outlook.com
f6ba1d6a3fdd7328ee6a1ca2d8f7286f9c4224d6
7ade08349d2181eec4956b6f224c72f59341d833
/Caesar Shift/Caesar Shift.py
59bd98cfb5607942f3de949424ce3ad25b92d60d
[]
no_license
MadhavMenon1007/Smaller-Projects
72d0cfba12f93eeef71f5ac7c201268450b453c1
773aa6a101891ad7592c5bed1fb056798b51f8cf
refs/heads/main
2023-06-12T04:33:55.204795
2021-07-07T06:02:03
2021-07-07T06:02:03
374,316,624
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
def caesar_shift(phrase, key): list_of_chars = [i for i in phrase] encrypted_list = [] encrypted_message = "" for i in list_of_chars: if i == " ": list_of_chars.remove(i) encrypted_list.append(chr(ord(i)+key)) return encrypted_message.join(encrypted_list) ...
[ "noreply@github.com" ]
MadhavMenon1007.noreply@github.com
ddc36023cd9ece79efda06105a15c8d2ae25987e
c003d5341804370e7311284c1ddc2ef2d9ab175e
/train.py
24d618f87dd772c7603cd166b9ba9825806efe97
[]
no_license
SamirYousuf/AutoEncoder
b09062bb171d85d8c4b8d5bd380f5b247cffcb4c
b2483a21473fd7d506b18615a94328246488597d
refs/heads/master
2020-04-06T23:02:04.203570
2018-11-16T11:10:28
2018-11-16T11:10:28
157,855,614
0
0
null
null
null
null
UTF-8
Python
false
false
3,982
py
# This is the main training script that we should be able to run to grade # your model training for the assignment. # You can create whatever additional modules and helper scripts you need, # as long as all the training functionality can be reached from this script. # Add/update whatever imports you need. from keras i...
[ "noreply@github.com" ]
SamirYousuf.noreply@github.com
fc70be99402b8f210c571deaa997b0a968e80c8a
639df091214a02e6b3e069c173048120d53c25d0
/PS6_EncryptionApplyCoder.py
572eb75e4e2aa57f279418b88a6b0c39aca540cb
[]
no_license
VamsikrishnaNallabothu/MITx-My-Python-Work
98b5c0a041688f1d278583fc2a2f6238f46889b6
34b8f8c7ed387528c7c145e254eb224160a9220c
refs/heads/master
2016-09-06T13:58:23.396134
2015-08-14T22:25:19
2015-08-14T22:25:19
40,645,450
1
0
null
null
null
null
UTF-8
Python
false
false
500
py
#EncryptionApplyCoder.py def applyCoder(text, coder): """ Applies the coder to the text. Returns the encoded text. text: string coder: dict with mappings of characters to shifted characters returns: text after mapping coder chars to original text """ encodedT = '' # For each letter in th...
[ "vamsikrishna.nallabothu@sjsu.edu" ]
vamsikrishna.nallabothu@sjsu.edu
2faa8732c420dc76b27e2eda26ec8fea1a5ba3ab
9947d1e328a3262a35a61385dc537c3dc557ab7d
/TensorFlow-Poems-master/model.py
bbc6b813c1e22dc56e257aabd4f1d6187cc34ca8
[]
no_license
nuass/lzh
d0a7c74a3295523d1fe15eeaa73997fc04469f06
3cb1cf1e448b88ade226d113a7da4eab7bbb5c09
refs/heads/master
2021-02-06T06:10:32.772831
2019-06-10T08:54:49
2019-06-10T08:54:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,693
py
# -*- coding: utf-8 -*- import tensorflow as tf import numpy as np def rnn_model(model, input_data, output_data, vocab_size, rnn_size=128, num_layers=2, batch_size=64, learning_rate=0.01): """ construct rnn seq2seq model. :param model: model class 模型种类 :param input_data: input data plac...
[ "1581627402@qq.com" ]
1581627402@qq.com