blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
5c128414d787d0002b8b156994c5ce715b7071c9
69e37937bca4dc0a2df384c62033e805433d799c
/finalProject651/finalProject651/urls.py
7891d9512b07fedf9177943a5742275772e2d919
[ "MIT" ]
permissive
o0baozi0o/Collaborative-Editor
5217db349ce682f2ef6f1954aed02eb96c311864
0f5abc10114bca507323ac14aa71a8fa96608bfa
refs/heads/master
2021-01-19T18:44:38.888907
2017-04-23T17:39:50
2017-04-23T17:39:50
88,377,817
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
"""finalProject651 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
[ "baozi@dhcp-wifi-8021x-155-41-100-200.bu.edu" ]
baozi@dhcp-wifi-8021x-155-41-100-200.bu.edu
4cce8382c68d039180c6284d5c76f461eac33466
794bf9c9ca0db8d3503755525aad3c7a0f5a5bc6
/pyramid_tutorial/tests.py
199c0ff2c654c08ca52acad5e2564c01a23a8204
[]
no_license
kdowney-cars/Pyramid-Tutorial
86935a0b3fc104f949dc9a699782f97457a71610
bc4acd8fda573cfcf42d58a859120d07fe6a8013
refs/heads/master
2021-01-19T12:58:40.415796
2011-08-27T22:09:30
2011-08-27T22:09:30
2,280,998
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
import unittest from pyramid.config import Configurator from pyramid import testing def _initTestingDB(): from sqlalchemy import create_engine from pyramid_tutorial.models import initialize_sql session = initialize_sql(create_engine('sqlite://')) return session class TestMyView(unittest.TestCase): ...
[ "kdowney@cars.com" ]
kdowney@cars.com
04a72843674890d185caccf422d3b6323efd2c35
2c0e45cfe1629f30ee8916c1266e0925e08f6e2f
/class_01/qstn.py
27f8114dc59fa64466eee3917c3c2fb6881f10d1
[]
no_license
shashankth7/Perceptron_Summer_2017
a801be9c1fe410a7f28b1d50b1b5dc11933f0aa7
b0dd343eef24c7fb5523d5f7bef90c2ef6030eea
refs/heads/master
2021-06-21T21:46:31.445086
2017-08-10T10:53:42
2017-08-10T10:53:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
"""class A(): x = 1 a = A() print a.x b = [A() for ix in range(5)] # for ix in range(5): # b.append(A()) for ix in b: print ix.x b[2].x = 10 for ix in b: print ix.x""" class Obj: def __init__(self, x=0, y=10): self.x = x self.y = y objects = [Obj(1, 0), Obj(70, -1), Obj(11, -1), Obj(4, 2), Obj(-1, 10)]...
[ "skd.1810@gmail.com" ]
skd.1810@gmail.com
809cc7a01d4fff06a0417eebcd46cb2e5e99dd93
585738b31db9676196d9a37a2e62d2e80234c8ce
/QDrillerPlugin/generatesection_dialog.py
23e329322de9c257dc2e359378ee1f3f3a74e0e0
[]
no_license
valheran/QDriller
9e943e835c7e7ed22cfa7ff2b141d8e2dc7be08f
d19882c08d9ce6abe321dd5072d782e902888755
refs/heads/master
2021-01-22T05:10:33.714921
2015-06-01T06:11:51
2015-06-01T06:11:51
33,072,071
1
0
null
2015-04-09T08:56:51
2015-03-29T12:31:18
Python
UTF-8
Python
false
false
1,792
py
# -*- coding: utf-8 -*- """ /*************************************************************************** generatesection_dialog A QGIS plugin Drillhole visualisation tools ------------------- begin : 2015-03-30 git sha ...
[ "valheran@gmail.com" ]
valheran@gmail.com
2ed3a5b98157652f32bdc847a800f0a7fa6321cf
984672ca80fafb806200c970e6bec72f4fca6866
/Exercise/Py47/Py47.py
db69e1c8d80730038c953317c224dfca8086b0a2
[]
no_license
shudongW/python
c3b8eaa8cf228348698ef2ce1a2e1ec3ff85e301
020213d40810aa01eabebbb48b91489c57c9d7f7
refs/heads/master
2020-03-15T05:39:12.056210
2018-05-17T09:34:38
2018-05-17T09:34:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
#-*- coding:UTF-8 -*- #笨办法学编程py3---测试nosetests class Room(object): def __init__(self,name,description): self.name = name self.description = description self.paths = {} def go(self,direction): return self.paths.get(direction,None) def add_paths(self,paths): self.path...
[ "178200623@qq.com" ]
178200623@qq.com
6551610ecfb2b88f83584e0d8ec132ec441c3a32
41000f1d38394dde3534945567f45cc52ce2f096
/jackalope/handlers/taskrabbit.py
d695fa24897f6c3129c09fc9db9f668de2c27554
[]
no_license
sendjack/jackalope
b1187e7fededb95873b571058224d03aaf6767a0
6ba787d682fd3c28678207faf9fd75db645b5b3f
refs/heads/master
2021-01-21T12:39:35.371257
2013-04-08T22:02:27
2013-04-08T22:02:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
""" taskrabbit ---------- Callback handlers for any notifications from Task Rabbit. """ from model.worker.transformer import FIELD from model.worker.task_rabbit_employee import TASK_RABBIT, TASK_RABBIT_FIELD from .vendor import TaskVendorHandler, CommentVendorHandler class TaskRabbitTaskHandler(TaskVen...
[ "hammer@sendjack.com" ]
hammer@sendjack.com
1f4cf2e86e44b06a13d2291d800440d4aed7ea8a
52a4d5042e64efb2a51fbcb1f1e2fc93dd13c7f8
/src/c_update.py
e8fed36127c59032c5b4d0ffb4b9f7966a90ad42
[]
no_license
arutunyan-gv/telegram_bot
fcb12e26c933a0ead6f8d428d341cf09295faefc
27b74ce9340e4457294c3ae76ede3f5fe9cf9405
refs/heads/master
2023-02-27T02:31:02.300848
2021-02-03T10:31:23
2021-02-03T10:31:23
335,587,328
0
0
null
null
null
null
UTF-8
Python
false
false
1,950
py
# -*- coding=utf-8 -*- from prefs.config import SEARCHES, SNAPSHOTS, SETTINGS, ADMINS, EXTENSIONS from src.telegram_helper import reply_func from src.db_helper import run_query_ro, run_query_rw from src.c_help import help_chapter def read_settings(dictionary, query): table = run_query_ro(query) commands = []...
[ "gv.arutunyan@gmail.com" ]
gv.arutunyan@gmail.com
a9eb1713de5ea004dd314f3e1f8b5f1a2d0650ef
0acaea4afbb39c1767cc9290e4e8d2c292030f8d
/connections.py
79ddaf51b0e4368bf865d05de3d0be86ee4562f5
[]
no_license
Gokulapriya98/python
1a530558c33411c1dd7a64c8229d87b533dc0397
325d0f4e16a1f62e89cb517de069e1be057a68fd
refs/heads/master
2020-06-12T16:52:10.625703
2019-07-09T05:39:01
2019-07-09T05:39:01
194,363,920
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
import mysql.connector cnx = mysql.connector.connect(user='admin', password='admin123', host='127.0.0.1',database='priya', auth_plugin='mysql_native_password') print(cnx)
[ "noreply@github.com" ]
noreply@github.com
5451fbf1abf096bcb5d1ed606afc1f7a274816ee
47ccad21a4157f380b0b5a08fd7b7d55a5327918
/identity-resolution/notebooks/identity-graph/nepytune/visualizations/pie_chart.py
85c13ceb2f78cfdcfabe5834504815422b6a696b
[ "MIT-0" ]
permissive
austinkline/aws-admartech-samples
c8c2c2d36a528a17a5797e31b47368717ffe79c3
de30dd21a9ffbbfce216bab789bb50b59540a953
refs/heads/master
2023-01-09T22:14:04.693588
2020-11-13T19:03:12
2020-11-13T19:03:12
312,659,135
0
0
NOASSERTION
2020-11-13T19:03:13
2020-11-13T18:55:05
null
UTF-8
Python
false
false
3,031
py
import colorlover as cl import plotly.graph_objects as go from plotly.subplots import make_subplots def show(data): type_labels, type_values = zip(*data["type"].items()) device_labels, device_values = zip(*data["device"].items()) browser_labels, browser_values = zip(*data["browser"].items()) fig = ma...
[ "triggan@gmail.com" ]
triggan@gmail.com
f599806afc0260a92a675e2b5f1bb13700ba321f
705bdf06663023cfc05c7abf716f64bf23958519
/inventory/migrations/0005_product_stock.py
75d130398bc20586b368f6865268d99a2ac914b0
[]
no_license
dovjay/django-stock-chain
36e710fbcfb1427e170322ad1d5e8ee7c2747d77
8dbcc03a236544eb3141f2342264f2fa839d6e4a
refs/heads/development
2021-07-20T23:34:06.425258
2021-02-05T08:11:26
2021-02-05T08:11:26
249,880,414
0
0
null
2021-06-10T22:49:50
2020-03-25T03:42:53
HTML
UTF-8
Python
false
false
393
py
# Generated by Django 3.0.4 on 2020-03-26 03:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inventory', '0004_auto_20200326_1038'), ] operations = [ migrations.AddField( model_name='product', name='stock', ...
[ "dovansanjaya24@gmail.com" ]
dovansanjaya24@gmail.com
db60067a452bba8447a1a851b57f2b98726e5a3d
6fd5d30cf21716893388442eb0f9c16e13b91315
/others/educational_dp_contest/b.py
4e1ab3220f3f00816eaef66a7a858f7f6b4a9b32
[]
no_license
mgmk2/atcoder-python
23d45f3195977f1f5839f6a6315e19cac80da2be
beec5857a8df2957ff7b688f717d4253b4196e10
refs/heads/master
2021-06-09T20:00:22.500222
2021-05-04T15:36:39
2021-05-04T15:36:39
179,711,330
1
0
null
null
null
null
UTF-8
Python
false
false
270
py
n, k = map(int, input().split()) h = list(map(int, input().split())) dp = [0 for _ in range(n)] for i in range(1, n): hi = h[i] x = 2 * 10 ** 9 for j in range(1, min(k, i) + 1): x = min(x, dp[i - j] + abs(hi - h[i - j])) dp[i] = x print(dp[-1])
[ "mgmk2.dev@gmail.com" ]
mgmk2.dev@gmail.com
643046e25434e6f3f0c920cb0ea56cb7d5886afd
7e8fd85526fcdb2bc44e44506b43c4f3c478d720
/src/piazza/migrations/0017_auto_20210326_1432.py
2fe01757be56d4580bc44d6f30ddaec547a0a5ba
[]
no_license
artkuzmics/C
4d981702944d233052a67f1973b62bacec8683f6
2d5fc0f400f53fd56e0b6125035cffcc355bc092
refs/heads/main
2023-03-30T15:42:37.554513
2021-03-30T18:22:55
2021-03-30T18:22:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
# Generated by Django 3.0 on 2021-03-26 14:32 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('piazza', '0016_auto_20210326_1405'), ] operations = [ migrations.AlterField( ...
[ "art@Arts-iMac.local" ]
art@Arts-iMac.local
c6978cba244464649a7929e2966a6b9218cdb069
1f10ed9fd1f1ef56505619464ef0fc0a0507977c
/src/source/currencies.py
bd8c0d306e5213317046d800298362eb2e112da8
[]
no_license
marcelkawski/currency-pl
149fbd979c2254e5c7e459fe587873175d9ec921
8655bd60f0a06c9c686eff808f0dc1160888a406
refs/heads/master
2023-03-07T18:53:44.705646
2021-02-18T11:40:46
2021-02-18T11:40:46
318,784,245
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
class Currencies: currencies = {}
[ "marcel.kawski1@gmail.com" ]
marcel.kawski1@gmail.com
9f6e55e39976e7abeb35f12ef07eb44d0a55f640
15568ba8df1a66e75c6166eb2b0e9837e95064b4
/ppp/member/migrations/0002_auto_20200720_2248.py
c36cdae40ed621a09146831b7113d5aeafff3947
[]
no_license
jalacardio/newppp
b8055a9883797b64c1f3f1ad62386de45a0f478d
28e37147c0c47e759fc740902d93834689cf9d21
refs/heads/master
2023-01-15T18:29:41.818081
2020-11-12T16:22:13
2020-11-12T16:22:13
299,981,398
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Generated by Django 3.0 on 2020-07-20 22:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('member', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='last_login', fi...
[ "leonardyang@supermicro.com.tw" ]
leonardyang@supermicro.com.tw
821f7029ef1f5d93e671b7a24b7561fb281208f6
9baa449f2084f42506932f253f69401d38633d1d
/main.py
8a07ef3466331638697569e1c9d52bbaa9492c7c
[]
no_license
zhengyong106/BrandSpider
cb78c3105f1e5d50632612ac2be5d5174ec95a1e
29471c702b18e48f57aa0c9c2b1e4c76e34e96f0
refs/heads/master
2020-04-01T11:16:10.374563
2018-10-21T16:38:55
2018-10-21T16:38:55
153,154,714
2
0
null
null
null
null
UTF-8
Python
false
false
191
py
# -*- coding:utf-8 -*- from scrapy.cmdline import execute import sys import os sys.path.append(os.path.dirname(os.path.abspath(__file__))) execute("scrapy crawl leijichengjiao".split(" "))
[ "zhengyong@tydic.com" ]
zhengyong@tydic.com
cab0c9e28d93678ddafd2edcde1685b4ba839ad6
f9e8733ed87858b12bfee6b70ccdddd6a616b60a
/20.py
6badb135fd1461e5e92cc11509094f285c4ec15f
[]
no_license
MajestyLee/leetcode_TopInterview
c1c9c923d3bf42cd4777bb2a2ccd21654a7c6dbb
30b7d5acec716b7d754141835fc8bafe4411437e
refs/heads/master
2020-04-01T12:19:20.837383
2018-11-06T02:13:44
2018-11-06T02:13:44
153,200,785
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
''' Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Note that an empty string is also considered valid. Exa...
[ "binjie_lee@163.com" ]
binjie_lee@163.com
280291543587999631b2d70414fa5e69efd4fe65
5a26a820b34ed5bfb988d43446110f581e92f44e
/todo_pro/settings.py
ffbc6ae9af9dd41b03ac427de88caf0483910fc3
[]
no_license
haricudant/ToDo
b3ed3debc2ea9aa0200ed26081dc7642e84496f6
fbf31647f438d228c7fe546a8ec9adbfe02f8f42
refs/heads/master
2021-02-08T17:54:18.172782
2020-03-01T16:08:37
2020-03-01T16:08:37
244,180,827
0
0
null
null
null
null
UTF-8
Python
false
false
3,210
py
""" Django settings for todo_pro project. Generated by 'django-admin startproject' using Django 2.1.3. 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/ """ import os ...
[ "hnarayanan5@gmail.com" ]
hnarayanan5@gmail.com
f285dbaa62e68fd334122fe5c8f2c43ba9ff3801
5deb698b92fce783391a6dcb9fcd9d3df84bc239
/demo.py
839ad60719c5fb4e649958683cbf05f96ab884b4
[]
no_license
YONGBAAM/SpineChallenge
9a94acb51ba188dfadd989f0401fea80a6afd90f
89eb91e9a843990565452c63533ce9cfbd72b463
refs/heads/master
2022-05-31T23:26:41.141313
2022-03-20T06:03:24
2022-03-20T06:03:24
235,288,466
0
1
null
null
null
null
UTF-8
Python
false
false
6,204
py
import numpy as np import matplotlib.pyplot as plt import os from PIL import Image import scipy.io as spio path = './boostnet_labeldata' training_data_path = path + '/data/training' training_label_path = path + '/labels/training' plot_save_path = './label_plots' label_path_all = os.listdir(training_label_path) labe...
[ "jokester59@naver.com" ]
jokester59@naver.com
b9225503622b86e3ec228234c66b993523b55503
af7918556ee00c2a9fcc3ba1ccabe96fd97608d9
/shell/Outputs/logger.py
cc903b42aa7957571472c174295cb3c5c1e697f7
[ "MIT" ]
permissive
shipcod3/Shellsploit
ea3fbe9a863bad83a2033aac57dfeef4645a97ca
3df35f2542a3b66dd2c1576d37ccb9c5098dd075
refs/heads/master
2021-01-15T18:31:35.571866
2016-01-25T19:39:25
2016-01-25T19:39:25
50,404,888
1
0
null
2016-01-26T05:09:33
2016-01-26T05:09:33
null
UTF-8
Python
false
false
885
py
#------------------Bombermans Team---------------------------------# #Author : B3mB4m #Concat : b3mb4m@protonmail.com #Project : https://github.com/b3mb4m/Shellsploit #LICENSE : https://github.com/b3mb4m/Shellsploit/blob/master/LICENSE #------------------------------------------------------------------# from random...
[ "b3mb4m@tuta.io" ]
b3mb4m@tuta.io
312ce01ed5508cc564e474d31419ca393398a83f
59f021cb84bbb3f05fc9058036aab8b5da740cfd
/estimation/kinematics.py
b13cd95de44a678daf26243980447652359675cf
[]
no_license
aerorbtx/samples
2317a2621a49487f6f55b64822b593e1ec09acc8
ef33033e81996f31982590acc0fc059d0653047f
refs/heads/master
2020-04-06T07:06:35.776857
2016-09-10T20:24:19
2016-09-10T20:24:19
65,229,780
0
0
null
null
null
null
UTF-8
Python
false
false
3,391
py
import numpy as np import math def ptDist(pt1, pt2): d = pt1 - pt2 return math.sqrt(np.dot(d.transpose(),d)) def ptImpact(m, b, r_candle, cdl_ctr, pt0): A = (1.0 + m**2) B = 2 * (m * (b - cdl_ctr[1]) - cdl_ctr[0]) C = ((b - cdl_ctr[1])**2 + cdl_ctr[0]**2 - r_candle**2) poi_x = np.roots(np....
[ "marriott.jack@gmail.com" ]
marriott.jack@gmail.com
79c4982c18484a42aa175dd54a7a35bb773e09bc
2d442324b7107f794033ec14b82f3a655e60a37f
/webdjango/ormModel/views.py
3015de586aed3a71c90795da398e7d85f9f1fb57
[]
no_license
elephantTo/python_learn
a4f261ee91ebeb7eb2842bb1dc66559304f73544
8c97f851fc30b97224cc9e1d812c91b42c3b6025
refs/heads/master
2021-04-06T10:38:08.786007
2018-08-07T00:52:03
2018-08-07T00:52:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,050
py
from django.shortcuts import render from django.db import models from .models import Book,Category,Article,agg_Publisher,agg_Author,agg_Book,agg_BookOrder from djangoTemplate.models import FrontUser from django.http import HttpResponse from django.db.models import Avg from django.db import connection # Create yo...
[ "578997662@qq.com" ]
578997662@qq.com
466302e21e152bea5aae3dd9eb896173e1b81c39
e9c88ec2b409df0d418d95a2c5b38de70161c1d5
/app/views.py
89764fde621e34d8cd211b66c0b26d0bcd2d4b5a
[ "MIT" ]
permissive
excal04/scanviz
49448d31f4498320a6de7132984fa221881ecf9d
a66ba1fdab475bf62bd6c0107b3ef4667bac4e4d
refs/heads/master
2023-01-24T00:56:12.018011
2019-10-26T04:25:50
2019-10-26T04:25:50
70,698,752
0
0
MIT
2022-12-26T20:15:09
2016-10-12T12:41:23
HTML
UTF-8
Python
false
false
3,035
py
""" views.py: views module for scanviz web app author: Jeff date: 10/2016 """ import json from datetime import datetime, date from flask import render_template, redirect, url_for, session, flash, request, g from config import ELASTIC_SCAN_INDEX, ELASTIC_SCAN_DOC_TYPE, UPLOAD_LOC from app import app, es from forms impo...
[ "excalibrus04@gmail.com" ]
excalibrus04@gmail.com
ac79ae50eecd5b13e6d228e2ad6c4ca41dbad6db
619eeaa9234d02f478c9985391322a1dbb19ba71
/models.py
1983ac31303f004ce8e10c5d6166eae1d24a2458
[]
no_license
ravg95/filmowa-anqeta
4ee894c3bc103195d5d439b395071c1790e3c5b8
ba1d2444f0b99f193becbc73961ebd42d66d86d7
refs/heads/master
2022-12-14T14:23:46.385333
2019-10-23T19:42:32
2019-10-23T19:42:32
213,427,118
0
0
null
2022-12-08T06:42:02
2019-10-07T16:01:48
Python
UTF-8
Python
false
false
1,828
py
from flask_appbuilder import Model from sqlalchemy import Column, ForeignKey, Integer, String, DateTime, UniqueConstraint import datetime from main import db class Rating(db.Model): __tablename__ = "rating" id = db.Column(db.Integer,primary_key=True) session_id = db.Column(db.Text(), db.ForeignKey('sessio...
[ "rafgeb@gmail.com" ]
rafgeb@gmail.com
86d8e57cb4fca48342ea4c75873866cd12814068
e6d40a1789fd32bb190635c682acfd031fa200a8
/venv/Scripts/pip3-script.py
87360cb823975a1000ae6a1697b5f03b1eff8de8
[]
no_license
hemangibavasiya/AudioToSpeech
a46ebe877cb313311d90fdf05780d79024c7892e
a9643ed5286b8b73b5ed9ee7284cc5f05a3a1fbc
refs/heads/master
2022-12-17T20:55:48.699017
2020-09-21T05:03:01
2020-09-21T05:03:01
297,233,868
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
#!C:\Users\Hemangi.Bavasiya\PycharmProjects\AudioToSpeech\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?...
[ "hemangibavasiya08@gmail.com" ]
hemangibavasiya08@gmail.com
036aad658300bff6391d2817d4406e28cf1041db
f9a54e2c7d4b87ff494251f60e01235f8000d69c
/pluto_convert.py
c72763ef29d741cb076301074ae589d1552aa6c9
[ "MIT" ]
permissive
aszadzinski/BINA-simulation
8e61ab9134fab69e8b6d65215c0b0685da79e7ee
11c32e5abcd117a9d79d550d8d90028a0cc05835
refs/heads/master
2023-08-28T14:30:45.879957
2019-10-22T11:25:00
2019-10-22T11:25:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
#!/usr/bin/env python3 from sys import argv with open("output_raw.evt",'r') as file: lines = file.readlines() ignore = [i for i in range(len(lines))] ignore = ignore[::4] newlines = [] for i in ignore[:-3]: for j in range(1,4): temp = lines[i+j].split() for vec in ...
[ "albert.szadzinski@protonmail.com" ]
albert.szadzinski@protonmail.com
f0716619569b500fc2433ad837d3076436dad240
7259dbcc9e32502945d362caa43d4ad380cd04ea
/企业数据库爬虫/enterprise-info-spider-master/qichacha_spider.py
87ce667e7aedf4e08b47e7e9fa9afdd10b40ea9c
[ "MIT" ]
permissive
Doraying1230/Python-Study
daa143c133262f4305624d180b38205afe241163
8dccfa2108002d18251053147ccf36551d90c22b
refs/heads/master
2020-03-29T13:46:13.061373
2018-07-26T15:19:32
2018-07-26T15:19:32
null
0
0
null
null
null
null
GB18030
Python
false
false
7,207
py
# -*- coding: gbk -*- from bs4 import BeautifulSoup import requests import xlrd import xlwt from xlutils.copy import copy import time import winsound #企查查网站爬虫类 class EnterpriseInfoSpider: def __init__(self): #文件相关 self.excelPath = 'enterprise_data.xls' self.sheetName = 'details' s...
[ "2829969299@qq.com" ]
2829969299@qq.com
828a25e8e7bc96ed9dc323886aa1b47245e66420
50a4af2cc044fe9fb6b2dfb4f612bdefb18153b6
/src/seasons/models.py
7d19ce506a2fe325365b2a4a07377a403bbd7068
[ "MIT" ]
permissive
pawelad/nba-rank
45bbc2aa798c40ef811d9c617eb4768b7cebd90d
ff9f80609c25435307608002ee3b36951e337043
refs/heads/master
2022-07-15T15:53:01.385873
2016-08-14T16:48:20
2016-08-14T16:48:20
53,074,080
1
0
null
null
null
null
UTF-8
Python
false
false
2,823
py
from django.db import models from django.utils.translation import ugettext_lazy as _ from django_extensions.db.models import TimeStampedModel from trueskill import Rating, MU, SIGMA class Season(TimeStampedModel, models.Model): abbr = models.CharField( verbose_name=_("season"), max_length=16, ...
[ "pawel.ad@gmail.com" ]
pawel.ad@gmail.com
e3b6daf4afa3a6c1d997f41a17ccdc72323baac7
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/aio/operations_async/_vpn_site_links_operations_async.py
1d926c77f371ce3542dd2c6a7b9deb2b8a378567
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
8,418
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
noreply@github.com
5121b71195a1b12b9128355e076bfc38b72f7453
09653acdd8ae79826b4fc7456d7e35322f0f27a8
/second.py
51d6bc212e026427c5454f3a47e6eb7fda4d0d53
[]
no_license
jannza/aima
ea2d7515b86089593cebef4c399016957433fcbd
99b7116257b463f82ad3de5ac8451815f2b052a1
refs/heads/master
2020-05-18T06:59:12.820969
2013-12-19T13:56:05
2013-12-19T13:56:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,747
py
import logic import itertools KB = logic.PropKB() #initial state KB.tell(logic.expr("At_0(Flat, Axle) & ~At_0(Flat, Ground) & ~At_0(Flat, Trunk)")) KB.tell(logic.expr("~At_0(Spare, Axle) & ~At_0(Spare, Ground) & At_0(Spare, Trunk)")) # KB.tell(logic.expr("At_0(Flat, Axle) & At_0(Spare, Trunk)")) # #initial locati...
[ "jaanus.kaljund@gmail.com" ]
jaanus.kaljund@gmail.com
cfa054562d3a40b9a8a30a44717fbb5aa551f138
4d0d0aec77a98e637f88f76f28b2349187a73232
/peterfilter.py
b0728e23e7273d28d5d79eaf0dc1c239700102a8
[]
no_license
wukong4430/UnderGraduatedPaper
7c27fdbee80b79622ad6a02028f919ed04309ce3
4d2bc662f4104f3351aa29da016639c936ab4f10
refs/heads/master
2020-03-08T12:52:14.951738
2018-04-30T01:38:01
2018-04-30T01:38:01
128,141,072
0
0
null
null
null
null
UTF-8
Python
false
false
3,854
py
# -*- coding: utf-8 -*- # @Author: Kicc Shen # @Date: 2018-04-26 12:39:35 # @Last Modified by: Kicc Shen # @Last Modified time: 2018-04-26 15:48:50 from Processing import Processing import numpy as np import math class peter_filter: def __init__(self, X_src, y_src, X_tar, y_tar): self.X_src = X_src ...
[ "948209147@qq.com" ]
948209147@qq.com
3f4646c2837a40a78c375c8b3891626f2fd21970
99b857cc7d419f01a2396e99558f3f68ddb0f806
/mdp/mdp_optimizer.py
1582cf91a620557ad163320e29f211e929ca7e6e
[]
no_license
kylebillemeyer/rl
5d288fa2ff9963ea87afba1f4ac0872c0674f42c
8b3aa93955389f858aaaaed7c391195d90048d7e
refs/heads/master
2021-01-20T08:06:33.357842
2017-05-22T13:42:34
2017-05-22T13:42:34
90,094,454
0
0
null
null
null
null
UTF-8
Python
false
false
6,095
py
import numpy as np """ mdp * [N x A] * int int -> [N x 1]: A model-free prediction algorithm that uses a first pass monte carlo solution to estimate the value function of an unknown. Note, this function cheats a bit and uses the underlying mdp structure to perform the operation on all states. In a real model-free sc...
[ "kbillemeyer@learnvest.com" ]
kbillemeyer@learnvest.com
5cddde05175442e01856c2095941d4bcca1dac66
2d19bc07e5d4b9fba2fe0b04a79ca36727cede52
/Project Euler/29/distinct-powers.py
c3a8e04adee7b5424bb250af2f6e68dfe2a6c5f8
[]
no_license
BobbyRobillard/Elixir
951ca3c2bfb8b828b35d3136e1198aed661f74d0
15e174213839b3890e867665f5fe44b0887d0115
refs/heads/master
2020-06-16T19:39:39.769706
2020-04-28T00:26:38
2020-04-28T00:26:38
195,681,600
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
import math powers = [] for i in range(2, 101): for j in range(2, 101): result = math.pow(i, j) if result not in powers: powers.append(result) print("Length: {0}".format(str(len(powers))))
[ "robillard123@gmail.com" ]
robillard123@gmail.com
8ab82917bd1e0a487afc6ae3b6072199632ea5d6
1bd83c1f26ed0e88565a5c5488f4385d0500e7d1
/runner2.py
5d45f8aaa29755e10a5b6610a86426f30e83cf3e
[]
no_license
Anthony9698/Cache_Sim
e5bd13aede296ec618d75c68a7b8f9cbb930496a
478b5f429c8989df68ef5f82160804ee26474f69
refs/heads/master
2022-01-08T11:21:54.796772
2019-04-24T00:39:56
2019-04-24T00:39:56
180,197,125
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
#!/usr/bin/python3 import os import time cache_size = 1 block_size = 2 assoc = 1 while assoc != 16: if cache_size == 128 and block_size == 64: cache_size = 1 block_size = 4 assoc *= 2 elif cache_size == 128: block_size *= 2 cache_size = 1 command = 'wine CacheSi...
[ "anthonyviera4@gmail.com" ]
anthonyviera4@gmail.com
ffd4868ef6adfa7d751b9fe0b724b9a431f08b62
dd3b8bd6c9f6f1d9f207678b101eff93b032b0f0
/basis/AbletonLive10.1_MIDIRemoteScripts/KeyLab_Essential/control_element_utils.py
1d3916431220d03ee69e2b372a11411263145ba9
[]
no_license
jhlax/les
62955f57c33299ebfc4fca8d0482b30ee97adfe7
d865478bf02778e509e61370174a450104d20a28
refs/heads/master
2023-08-17T17:24:44.297302
2019-12-15T08:13:29
2019-12-15T08:13:29
228,120,861
3
0
null
2023-08-03T16:40:44
2019-12-15T03:02:27
Python
UTF-8
Python
false
false
1,915
py
# uncompyle6 version 3.4.1 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10) # [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/KeyLab_Essen...
[ "jharrington@transcendbg.com" ]
jharrington@transcendbg.com
a73c541166f512552c31b4b2d31993274081860d
698512c01048fcefcc14583089ef2e8c7962923a
/Python_Projects/Data_Visualization/Chap16_downloading_data/death_valley_highs_lows.py
66910b06e49634b5849c6f4d9d8d8527b304dbd1
[]
no_license
Miguel-Tirado/Python
c76cb9846c9a2b9c6b3c4827cdb95042f4e5d447
227def380c64095c3040c848aa035ac46d26d079
refs/heads/main
2023-04-16T12:15:03.301275
2021-04-30T16:39:48
2021-04-30T16:39:48
346,443,032
0
0
null
null
null
null
UTF-8
Python
false
false
1,257
py
import csv from datetime import datetime import matplotlib.pyplot as plt filename = 'data/death_valley_2018_simple.csv' with open(filename) as f: reader = csv.reader(f) header_row = next(reader) # Get dates and high and low temperatures from this file. dates, highs, lows = [], [], [] for row in ...
[ "miguel.e.tirado11@gmail.com" ]
miguel.e.tirado11@gmail.com
0fa530a2384a6164dd95472a6f131da270803772
81053b39d353ee640af7c2f4daf61f454c1dd7d4
/Day4/day4_1.py
a13e8ba38e543b5a566cb687bd1f26ec4c600967
[]
no_license
KristiDalipaj/AdventCalendar
06a17a3a2559cf5d90c871057dede069d8a93468
da51e905c6b81cf86c49b92c9407d0d043121bfd
refs/heads/master
2021-08-31T06:03:51.666589
2017-12-20T13:43:56
2017-12-20T13:43:56
114,452,310
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
f = open("a.txt", "r") sum = 0 i = 0 for s in f: i+=1 #s = f.readline() s = s[:-1] lst = s.split(" ") dict = {} for index in range(len(lst)): val = 1; if lst[index] in dict : val = dict[lst[index]] +1 dict[lst[index]] = val else : dict[lst[index]] = 1 print (dict) for key in dict...
[ "noreply@github.com" ]
noreply@github.com
ee7b1b708cd89f4ead76a1c1b9e618d5b534ce4a
84b7b6ac061825ba5acad50f4b572387ae1877e2
/swaggerconformance/response.py
1c44a163fa016081f513052c5910d14eac485813
[ "MIT" ]
permissive
crunchr/swagger-conformance
8f4cb2ac28b10d600a9d4b28263916901afbad0c
e1d2288117d5c35dba9203a02d5a2a72c56403ca
refs/heads/master
2021-05-07T21:06:46.215568
2017-04-25T19:28:48
2017-04-25T19:28:48
108,993,697
0
0
null
2017-10-31T12:39:28
2017-10-31T12:39:27
null
UTF-8
Python
false
false
1,067
py
""" A response received to a Swagger API operation. """ import logging __all__ = ["Response"] log = logging.getLogger(__name__) class Response: """A response received to a Swagger API operation. :param raw_response: The raw response. :type raw_response: pyswagger.io.Response """ def __init__(...
[ "olipratt@users.noreply.github.com" ]
olipratt@users.noreply.github.com
5d4039762c1eee0e166cb3b34c6d6e2041476e07
931164b1792dfca30180f6479ef8dc9868710080
/app.py
173fd7e380f6882b31c9b6b812ad48baccf8f6b3
[]
no_license
2510lucky/WEB_APP
d0ad20569fce1287984309441cff7461df24a706
70f95cfef28653b5b857e62addfd74a25043a076
refs/heads/master
2022-12-26T18:58:53.938730
2020-09-30T20:37:23
2020-09-30T20:37:23
300,055,789
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SECRET_KEY'] ='secret-key' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.db' db = SQLAlchemy(app) from routes import * if __name__=='__main__': app.run(debug=True)
[ "luckygargroxx2510@gmail.com" ]
luckygargroxx2510@gmail.com
4d188660f15633cc041221dc5eaf3701df426fe0
87870da8c8a954603f8d9a7f014a07c91c2851a9
/Exercicios/ex_088.py
03992f4b602b4eb6cab2927e6e5baae1d413b1bb
[ "MIT" ]
permissive
antoniosereno95/Python_Curso_em_Video
ac587d6ab3024f4c7a6cc761e07a685cfea2ad41
d706cba9ca7e5670881e5e06bceb5538971e99c0
refs/heads/main
2023-08-01T21:43:43.621458
2021-10-06T23:16:42
2021-10-06T23:16:42
414,398,859
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
import random q = int(input('quantos jogos devo fazer? ')) for i in range(q): jogo = [0,0,0,0,0,0] for j in range(6): flag = True while flag ==True: r = random.randint(1, 61) for k in range(len(jogo)): if int(r)==int(jogo[k]): ...
[ "antoniojsereno@gmail.com" ]
antoniojsereno@gmail.com
d8b0ec7d669c5c836b829c5a55a8e132ebb34fc6
0911c412ae28a19cc30fc92aa73121d4545c3476
/atividade_avaliativa/exerc_06.py
6ed8eebf747141bcc7de7021f5a987b9d87949a4
[]
no_license
niviacampos/CursoBlue_Mod1
6a69bed39e4c7d2f7a1c04e23af19bbe6dab13e4
db647fa02167722c571672d488ff70526a6bcd08
refs/heads/main
2023-05-02T11:48:38.452854
2021-05-24T21:58:53
2021-05-24T21:58:53
365,411,829
0
0
null
null
null
null
UTF-8
Python
false
false
1,497
py
# 06 - Utilizando listas faça um programa que faça 5 perguntas para uma pessoa sobre um crime. As perguntas são: # "Telefonou para a vítima?" # "Esteve no local do crime?" # "Mora perto da vítima?" # "Devia para a vítima?" # "Já trabalhou com a vítima?"  # O programa deve no final emitir uma classificação sobre a part...
[ "noreply@github.com" ]
noreply@github.com
acca18b4a8a032cadd293e0ff0784e8c030def0c
d5dca98583fcc96d18bb01e67cc25b24312a837c
/pygame/words.py
01c885db05c2e5440b9c52ad726947fbc9b1653f
[]
no_license
shushmitadas99/Devsnest
b97e518e1763bdf086fc7e09a99de2cb0a5fb2bc
5210503e3fe53861d08f6795ce6804821e44ceca
refs/heads/main
2023-06-05T05:15:55.520382
2021-06-25T01:55:58
2021-06-25T01:55:58
368,608,198
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
words_list = [ 'devsnest', 'coding', 'developer', 'code', 'computer', 'python', 'java', 'programming', 'development', 'moderator', 'discord', 'gaming', 'software', 'hardware', 'games', 'react', 'pygame', 'technology', 'it', 'streaming', ...
[ "shushmitadas@trentu.ca" ]
shushmitadas@trentu.ca
416d4394033392ded2eb456e57afc384e280d8f0
60ffbaba15276ffebe4346e66e5cf07ab2ed96e1
/home/forms.py
4c5fc0ecf82fb6d5ae2fa64d69e230a3fb45b8ab
[]
no_license
jboyy/superboy
d7fcda734423d8f5dd0546a4e594f8f04571749e
c801689a27fb3c304ebfd53d1ce5d66661a5eed8
refs/heads/main
2023-06-26T06:09:21.889995
2021-07-24T15:37:20
2021-07-24T15:37:20
389,129,722
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
from blogcomment import models from django import forms class CommentForm(forms.ModelForm): class Meta: model= models.BlogComment fields = ['name','content']
[ "jboyy4real@gmail.com" ]
jboyy4real@gmail.com
1bdb41223af879cb9d0b43af9b812aa66dba8d2c
5faadd12f76cc0341b4ff04502605edfeb8c6542
/lesson3/calc_eigen_values.py
2534f96f5a7a62e68ca639d8a235cd8aaebecfbf
[]
no_license
redpoint13/IntroToDataScience
e6de65be578f85c32f44a15131438089b9ae9033
9c825212450471500c00368a909b210dac128ad4
refs/heads/master
2021-01-10T05:06:33.552806
2015-12-30T18:25:39
2015-12-30T18:25:39
46,679,850
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
import numpy as np import pandas as pd from scipy import linalg as LA A = pd.read_csv('turnstile_data_master_with_weather.csv') #A = np.random.randint(0, 10, 25).reshape(5, 5) #print A e_vals, e_vecs = LA.eig(A) print e_vals
[ "redpoint13@gmail.com" ]
redpoint13@gmail.com
1599974338578869309b2c2edc0ddfd986a22d5e
0b106c3c614e6f8fc7df4d8349ef80de38ae9d43
/expressionParenthesisPermutations.py
b87fc3cde3050eed1570a7651c54517dcd3ebda8
[]
no_license
shengng325/LeetCode.py
b28142421544ea6f04a84785429e79da46d4a1d6
ab8f72fbec259773f1b2ddadadec52f3132908ab
refs/heads/master
2023-02-21T08:11:56.930960
2021-01-17T04:00:40
2021-01-17T04:00:40
317,896,294
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
def expressionParenthesisPermutations(string): result = [] if '+' not in string and '-' not in string and '*' not in string: result.append(int(string)) else: for i in range(0, len(string)): char = string[i] if not char.isdigit(): leftParts = expressionParenthesisPermutations(string[0:i]) rightParts...
[ "shengng325@gmail.com" ]
shengng325@gmail.com
3ef11cf4535bfd2dd7e8800eadf31777a454cce7
b1679911a25ac874e67469c9dee5a4a926a7378b
/qtile/utils.py
93abdf452723250eec937c5304bd339b78b11227
[]
no_license
ClintonKildepstein/qtile.org
4264bbf3725d052295f00ff3724e9f884cdbf884
5b5f5327e5a12218c58162b22cadc31f1b78e2e5
refs/heads/master
2023-08-01T00:47:47.650294
2021-03-18T20:12:21
2021-03-18T20:16:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
import os import yaml from django.conf import settings def load_data(name): ''' Load a YAML fixture and return the data ''' path = os.path.join(settings.BASE_DIR, 'data/{0}.yaml'.format(name)) return yaml.safe_load(open(path, 'r').read())
[ "derek.payton@gmail.com" ]
derek.payton@gmail.com
3795cd5e4432d0e60900990422a8f1c2321fdf11
850ed2ee4aaf5c10644955673a9fd1c3ddafaf33
/posweb/models/SaleItem.py
851fc854490fcc8183fcf4b31ca6a261d2c888f8
[]
no_license
amente/posweb
aff564f0e74374386ad708c996b2bab63fbb5081
065ffe3d07e2ba28174d32a49899023320e74f22
refs/heads/master
2020-07-09T20:18:04.615990
2014-10-10T01:40:39
2014-10-10T01:40:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
from sqlalchemy import ( Column, Index, Integer, Text, ) from shared import DBSession, Base class SaleItemCache(object): def __init__(self): self.dCache = {} def __getitem__(self, key): pass class SaleItem(Base): __tablename__ = "saleItems" id = Column(Integer, pr...
[ "hasith@vidanamadura.net" ]
hasith@vidanamadura.net
e6f9f6137f902eb1ee7c68acf7c996c98ad8a9f9
0a0bc9b3cf05b7fd421d9c0d7238ff739bf72753
/StudentV4BE/urls.py
f09fdbc30d0ba16ed966cf307c7fceed37aed7bf
[]
no_license
RobotZQ/StudentV4BE
fadd4c4e340d22217e75aa3265a6d75a81d4adf7
874db9f4aa1b465d14ae94211ce13b2da824f9ee
refs/heads/master
2023-04-26T15:19:19.357006
2021-05-21T14:01:03
2021-05-21T14:01:03
357,087,754
1
1
null
null
null
null
UTF-8
Python
false
false
1,803
py
"""StudentV4BE URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-b...
[ "979922324@qq.com" ]
979922324@qq.com
237267518c9648d4058ed146b2ab8ed15ae6e932
2183b81fdbbd8df6aae6f10d2b7fb36c2eb82be6
/student_accomodation/views/leadgenration.py
30f13daa51986ea661e5da6a59e1c60ec4d4838e
[]
no_license
sumittarwey/homeinabroad
e3ac40112ba1f9a38e8994ef4cb89538e908d588
fcf887837b43f4fa79ef495fb8ba4da227d270ee
refs/heads/master
2022-11-19T15:59:07.057382
2020-07-02T12:27:46
2020-07-02T12:27:46
257,499,216
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
from student_accomodation.serializers.leadgenrationserializers import LeadGenerationSerializer from rest_framework import generics from student_accomodation.models import LeadGeneration from django.db.models import F class list(generics.ListCreateAPIView): queryset = LeadGeneration.objects.all() serializer_cla...
[ "sumittarwey2268@gmail.com" ]
sumittarwey2268@gmail.com
0ff2859360e9fabe9831161c47e4249cdedd0f7c
413e6908754e0c5c49f288a304ab904a77dfa0f4
/cfehome/settings.py
16d8543d4f04489b7b91f1df1bdcd3c598a04f28
[]
no_license
matgeo-2008/rest-api-2
8a8402acc3cb27e73ab1e04dd8ddb39ac3141649
a84b07237b9519b4161c647ac816b3b659eeb5c6
refs/heads/master
2020-03-09T10:57:44.301985
2018-04-10T08:02:48
2018-04-10T08:02:48
128,749,594
0
0
null
null
null
null
UTF-8
Python
false
false
3,507
py
""" Django settings for cfehome project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
[ "mac@Mathews-MacBook-Air.local" ]
mac@Mathews-MacBook-Air.local
656c6d683b6a8f42253b65cb68903a33c5722d97
1cd7a7416d4525c4f39479d54928b8d26ae48177
/infixtopostfix.py
84d9ff1aaf5a4014e12a25a2d483fa9488fa40c1
[]
no_license
abianusha19/CompetitiveProgramming
a2727c5ed772b026cae9916a28b200c27a0fd862
904497c612c3a830c3723fd49f510c59e98222b5
refs/heads/master
2021-01-05T05:37:09.262996
2020-02-23T10:33:56
2020-02-23T10:33:56
240,899,689
0
1
null
null
null
null
UTF-8
Python
false
false
1,844
py
class infixtopostfix: def __init__(self): self.stack=[] self.rev=[] self.result=[] def push(self,x): self.rev.append(x) def priority(self,i): p1=['+','-'] p2=['*','/'] p3=['^'] if i in p1: return 1 elif i in p2: return 2 elif i in p3: ret...
[ "noreply@github.com" ]
noreply@github.com
c6bbac994b78f8cd29b3fe3fc976543d69366759
330b667c023494525a4a7ad202c010c66e0213c5
/setup.py
889b6967ab39c2408ea7e4fd751fc0b6252ca58a
[ "MIT" ]
permissive
terry07/py-wellrng
2ac601b8ddf1f803596394b230333f7f2e97b913
c70820fba8677bd5e8ddec33976a4fd3c3694b8f
refs/heads/master
2021-01-17T06:27:56.826715
2014-06-12T08:23:22
2014-06-12T08:23:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
from distutils.core import setup setup( name = 'py-wellrng', packages = ['py-wellrng'], # this must be the same as the name above version = '0.1', description = 'A replacment for the default random lib using WELL1024a RNG', author = 'Raphael Stefanini', author_email = 'stef.raphael@gmail.com', url = 'htt...
[ "rphl@rphl.net" ]
rphl@rphl.net
633c5c59bb595a872b055023be218df006fd679a
00e58944bb5e1f14e427887abffe9f8a7f63da0b
/Неделя 2/минимальный_делитель.py
672bf77eb8d554f9ff2908ff32190082f204a357
[]
no_license
homosociologicus/coursera_py_basics
323367e0097a06491030080992c06d6565230568
795965b83b509697d7e74cb701aba92f3fb13de6
refs/heads/master
2022-11-21T19:53:06.665399
2020-07-26T20:55:01
2020-07-26T20:55:01
262,435,643
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
N = int(input()) i = 2 while (N % i) != 0: i += 1 print(i)
[ "56775261+homosociologicus@users.noreply.github.com" ]
56775261+homosociologicus@users.noreply.github.com
d7487a0ad67a3cc0d9eabfe0bbfeb284c3a18c3f
80c8d3bc0298fec7e46b748a11f6a63ebf56d2f5
/experiments/data/k-mer14.py
e94738661eed56068685749f14ad2961f6c89bfd
[]
no_license
laureanorp/HPC_Lab3_singularity
74c015acc5c35451f2f2147af29fa5bf0bf0fdd2
34fb4bf08aa825cdb9cb70442d64a5e1264675c9
refs/heads/master
2023-02-23T23:32:41.215265
2021-01-27T14:41:11
2021-01-27T14:41:11
333,169,631
0
0
null
2021-01-27T14:41:12
2021-01-26T17:55:53
C++
UTF-8
Python
false
false
759
py
def convert(c): if (c == 'A'): return 'C' if (c == 'C'): return 'G' if (c == 'G'): return 'T' if (c == 'T'): return 'A' print("Start") opt = "ACGT" s = "" s_last = "" len_str = 14 for i in range(len_str): s += opt[0] for i in range(len_str): s_last += opt[-1] pos = 0 counter = 1 while (s != s_la...
[ "laureano.ruiz.perez@gmail.com" ]
laureano.ruiz.perez@gmail.com
52fa03519391b192963ded7ab87c7e8fe05a7fab
7654aa47e4b91c0077cc0c8040fe35bde91d08aa
/flaskk/venv/bin/pytest-benchmark
c772ed6ec111dac32f586fbfc9876e1bd04bb356
[]
no_license
nithinjith40/Django
c3c05c9d9f8eecdeb98e891323d3cc00dd451e27
cf7ab1d49aac64d69daa0425f79e226cd9d5bd82
refs/heads/master
2022-11-07T19:15:48.986523
2020-01-08T14:40:27
2020-01-08T14:40:27
231,874,993
0
1
null
2022-10-12T07:27:04
2020-01-05T06:02:42
Python
UTF-8
Python
false
false
242
#!/home/expert/flaskk/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pytest_benchmark.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "nithinjith40@gmail.com" ]
nithinjith40@gmail.com
56d7c4773e79b81c1cfd6de92045d50f3ee78864
b7c8f15a87925595353161c6c3fc0d1b5c51193f
/hdf5_analysis_example.py
3cbce5d8a0ba84869e02fc682d9f59c3ece86fea
[ "MIT" ]
permissive
laofei177/vpic_reconnection_tutorial
a58821bde2bb1e5f02eb09a99ba1a502bf17d99a
7ba13578fe34615a118f3d98446ea94ad2b3d188
refs/heads/main
2023-03-26T06:13:37.652159
2021-03-28T03:59:54
2021-03-28T03:59:54
353,336,627
0
1
null
null
null
null
UTF-8
Python
false
false
4,117
py
import math import h5py import matplotlib.pylab as plt import numpy as np from matplotlib import rc # rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) # for Palatino and other serif fonts use: rc('font',**{'family':'serif','serif':['Palatino']}) rc('text', usetex=True) plt.rcParams['figure.dpi'] = 100...
[ "4249978+xiaocanli@users.noreply.github.com" ]
4249978+xiaocanli@users.noreply.github.com
2490cd4e851810ee2c2c8142647f0b3513ed71e5
43a0cfdae89d13f94943c238b78b96d8187baf3c
/thread-count-wait1.py
c0d76756fbeb1cd0c98919fa9f60c713a584f980
[]
no_license
reallybigmistake/hello-world
cfc0ba3fcce6ba31adc2f2df8983a89d37381c41
8cd97d2fbd4e72991c73fe266625489900add685
refs/heads/master
2021-01-19T02:19:50.992761
2017-04-05T07:48:15
2017-04-05T07:48:15
87,271,664
0
0
null
2017-04-05T07:48:15
2017-04-05T05:57:19
Python
UTF-8
Python
false
false
504
py
import _thread, time stdoutmutex = _thread.allocate_lock() numthreads = 5 exitmutexes = [_thread.allocate_lock() for i in range(numthreads)] def counter(myId, count, mutex): for i in range(count): time.sleep(1/(myId+1)) with mutex: print('[%s] => %s' % (myId, i)) exitmutexes[myId].acquire() for ...
[ "maxl@maxl-PC.brite.local" ]
maxl@maxl-PC.brite.local
b6d0ee1afef4261e4dbba8942af00b85a1c0d5e8
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_269.py
8befbf4df1bb76a09bb487be7dd1b88cba7aa3d5
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
# Setting up Django on an internal server (os.environ() not working as expected?) sys.path.append('/path/to/flup/egg/flup-1.0.1-py2.5.egg')
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
2bd592fbef1d115f7081ec97b4f9ad7f1bb0f2dd
afa8259e6be4e76af4e84f8bd30d65cf9f193dfa
/scripts/list_numbers.py
28723f026be84a66ee71b0e3fb0972668862d26b
[]
no_license
Xiaofei-git/pfb2017
a7e3a6e8fc35e02f1e0d4afc689c1daa5887673b
5304fef843628d4faccaf33d1317cc8681656038
refs/heads/master
2021-07-16T05:19:23.448948
2017-10-16T19:58:38
2017-10-16T19:58:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
#!/usr/bin/python3 numbers = [0,1,2,3,4] for num in numbers: print(num)
[ "sofia2341@gmail.com" ]
sofia2341@gmail.com
301614a7fce2108fa79f2dce31b4c051240ef640
5b86a0a86666e16b8468d6e0fe41667b91a06798
/1807/08day/02-5050.py
b864bf41f4a662218a83351ea3ced8b319ae218c
[]
no_license
nijunge/1807-2
17e58a3528e30189e306baf32f24c1119eb54d22
738731c12954c2c25b9c45f20a44e9b8bbdca1f4
refs/heads/master
2021-09-22T07:06:08.425165
2018-09-06T08:16:39
2018-09-06T08:16:39
143,671,063
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
""" i = 1 a = 0 while i <101: print(i) a+=i i+=1 print(a) """ i = float(input("请输入起始值")) a = float(input("请输入终止值")) x = 0 while i < a+1: print(i) x+=i i+=1 print(x)
[ "2105825483@qq.com" ]
2105825483@qq.com
2f891888f7a4c5c413d0e63f574494f3fd7eccff
5fd41fac9a4bcd605b665bb9fd10f0b4f3a6f6b5
/graph/S_1_2.py
02ca84dbf59a432ce107d6faa1836c93f22fa3ab
[]
no_license
dabeiT3T/Aha-Algorithms-in-Python
b26ba6bff0f51179873bfe07d37c884391557ad6
62f7578e2a0deaf3d44dc135e8c9a5a0e28dc4be
refs/heads/master
2020-03-16T21:00:55.310918
2018-11-29T07:40:02
2018-11-29T07:40:02
132,981,203
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
#!/usr/bin/env python3 ''' 5 5 <= V, E 1 2 <= G 1 3 1 5 2 4 3 5 1 2 3 5 4 <= print answer ''' # read _v, _e = map(int, input().split()) # init G ''' 0 inf inf inf 0 inf inf inf 0 ''' G = [ [0 if i == j else float('inf') for j in range(_v)] for i in range(_v) ] for i in range(_e): x,...
[ "dabei.status404@gmail.com" ]
dabei.status404@gmail.com
7d153d08075565a364cc834abe9dc572466338c7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02860/s048515681.py
334230f5adc64b662ea1dc6547263c681aabddfc
[]
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
675
py
import sys import math import itertools import bisect from copy import copy from collections import deque,Counter from decimal import Decimal def s(): return input() def i(): return int(input()) def S(): return input().split() def I(): return map(int,input().split()) def X(): return list(input()) def L(): return list(i...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6cc23b0fdf16aa3ccec0ce8552c82f0d5b343307
088906c28ae301f1ba2e0cab92150db34c5fc934
/ckeditor_uploader/urls.py
4c14a4bc6b6f63721b4cdcf1704f0ebb756bbe84
[]
no_license
bytesun/sunorth
0f57d1871371dfdcab7320dbaba3f9409f757fc4
0a3a6aeb10967b4bc1be452a93dc2b5677261dad
refs/heads/master
2021-07-17T01:53:45.447240
2017-10-22T14:57:37
2017-10-22T14:57:37
103,062,096
0
0
null
null
null
null
UTF-8
Python
false
false
712
py
from __future__ import absolute_import import django from django.conf.urls import url from django.contrib.admin.views.decorators import staff_member_required from django.views.decorators.cache import never_cache from . import views if django.VERSION >= (1, 8): urlpatterns = [ url(r'^upload/', views.uploa...
[ "orcfeng@gmail.com" ]
orcfeng@gmail.com
d75890733daf5c92f160599e47e239a60b42b67f
2b76680a289e4e336d34eafb2c75b355ca44dc13
/bindings/python/setup.py
a3d86e73270dc589957976e11d962727a26ef27c
[ "Apache-2.0" ]
permissive
RobertBeckebans/audaspace
c638a0a544da20b86610c7cc46e91d26b5088e61
1bdd6d347eb1d08f04b1629b3552963227e48d8d
refs/heads/master
2020-05-29T11:40:22.724639
2014-11-12T11:41:16
2014-11-12T11:41:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
from setuptools import setup, Extension # python setup.py build # LD_LIBRARY_PATH=../../../build python # import sys # sys.path.append('/data/Work/Computer/Programming/Audaspace/audaspace/bindings/python/build/lib.linux-x86_64-3.3') audaspace = Extension('aud', include_dirs = ['@PYTHON_SOURCE_DIRE...
[ "nexyon@gmail.com" ]
nexyon@gmail.com
2cd364b8fad091451b59eb00b29f9d1dc121bf75
3965b85eb40009dd7c8718cfc1ebb304dc64f416
/Opencv3/data2/6/demo4.py
7fe7129641e84e98d23ba99f0c19e69698d39831
[]
no_license
ljwwwiop/python_share
2ce8cb9617cad0cac9750b06c7c9a5992809a61b
ab4474b7028f363075c8650d8323e5a89e28f0b9
refs/heads/master
2022-04-22T23:47:45.459810
2020-04-26T15:13:22
2020-04-26T15:13:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,734
py
''' 图像分割 分水岭算法(有噪声一定先降噪) 流程 1输入图像 2灰度 3二值化 4距离变换 5寻找种子 6生成Marker 7分水岭变换 8输出 ''' import cv2 as cv import numpy as np # 分水岭算法 def watered_demo(img): # 高斯模糊 cv.pyrMeanShiftFiltering(img,10,100) dst = cv.medianBlur(img, 15) gray = cv.cvtColor(dst,cv.COLOR_BGR2GRAY) ret,binary = cv.thres...
[ "1206957838@qq.com" ]
1206957838@qq.com
d2c2c29c2a242f7d640d41d8769008222b0e4cc0
9949737f588a1edfb0bda43316f136ec9c24df10
/245/ani.py
dc91771a90674757d9c643a31d4140ebffad60f6
[]
no_license
crheacofc/UndergradMath
05c856ca817d0509fac47a322dcf3842c688f4d6
ee8d3dada0a3f7447dfa6c07f144c22d57f47b53
refs/heads/master
2021-07-04T22:06:43.609109
2017-09-26T16:29:30
2017-09-26T16:29:30
104,909,560
0
0
null
null
null
null
UTF-8
Python
false
false
3,862
py
# -*- coding: utf-8 -*- """ Created on Fri Nov 20 10:37:24 2015 @author: crhea """ # -*- coding: utf-8 -*- """ Created on Fri Nov 20 09:59:21 2015 @author: crhea """ import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib.colors import cnames from matp...
[ "crhea@g.cofc.edu" ]
crhea@g.cofc.edu
c62323d930d87daef428e24ed618e1428cf9da94
744abbec228b55b0338cf170235492116e369f45
/XFJ/XmApi/test_casc/Home_Signed_Tail_casc.py
e2c77280a43f012c05cc0ec12db1aa9626a1013d
[]
no_license
yebenxiaozhang/Projects_xfj
7555e47f5a64c6613da8b40b954a912f1b2ab8e4
29999c8980b962b08ac42b4e89dce4faf344ced4
refs/heads/master
2023-06-19T23:46:03.373540
2021-07-16T14:08:28
2021-07-16T14:08:28
309,929,185
0
0
null
null
null
null
UTF-8
Python
false
false
4,660
py
"""幸福小秘-成交跟踪 需求:只能输入成交的客户、或者经纪人手机号4位数 """ from XFJ.PubilcAPI.FlowPath import * # 第二步 编写测试用例 """ 1、输入成交的客户、是否可以查询结果 2、输入成交的经纪人手机号4位 是否可以查询到结果 3、输入未成交的客户、 4、输入挞定的客户 5、输入非数字 是否有相应的提示 6、输入数字过长 是否有相应的提示 """ class TestCase(unittest.TestCase): """小秘——成交跟踪""" def __init__(self, *args, **kwargs): super(Test...
[ "736297001@qq.com" ]
736297001@qq.com
c9ca76d3d2b620f9b209d5521f9e25c825758d9b
e2f507e0b434120e7f5d4f717540e5df2b1816da
/146-ternary.py
dbce45217ce273bc5aaaaf0e6e0901268894e40e
[]
no_license
ash/amazing_python3
70984bd32ae325380382b1fe692c4b359ef23395
64c98940f8a8da18a8bf56f65cc8c8e09bd00e0c
refs/heads/master
2021-06-23T14:59:37.005280
2021-01-21T06:56:33
2021-01-21T06:56:33
182,626,874
76
25
null
null
null
null
UTF-8
Python
false
false
165
py
# Need a ternary operator? # Use conditional expression for i in range(1, 5): # is i odd or even? oe = 'odd' if i % 2 else 'even' print(f'{i} is {oe}')
[ "andy@shitov.ru" ]
andy@shitov.ru
facbcdb10fd8a34d6313a52d26bd90eb2725fc20
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_10/models/array_connection_get_response.py
446709419359e61c9298c8f1d19c42cf13e2fbd8
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
4,259
py
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.10, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.10 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import t...
[ "azaman@purestorage.com" ]
azaman@purestorage.com
847df896de8df2034263c361aafc473537a9e84a
e6f975f57258048dc1d3ed46b335c8771ccb01d2
/GAN/milestone.mnist/refer_mnist.py
49a800a2f137c03f1da0fee1d998dc66239e9fce
[ "MIT" ]
permissive
2018HCIntern/2018HCIntern
386f70124bb206ef337360c47438b6fc49c92831
bbc887c064b97056b6027045be1d6eb3f1ce2a35
refs/heads/master
2021-05-11T23:08:53.588476
2018-02-14T03:56:03
2018-02-14T03:56:03
117,510,413
2
4
MIT
2018-02-07T09:25:53
2018-01-15T07:14:09
Jupyter Notebook
UTF-8
Python
false
false
5,017
py
from __future__ import print_function import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable # Training settings parser = argparse.ArgumentParser(description='PyTorch MNIST Example')...
[ "gompu123@gmail.com" ]
gompu123@gmail.com
0da12a23f46262db349fee4ba3799830c82c928f
772f27c0c7e3f2df230736d3259c1a831994a887
/src/analysis/bigtemp.py
f61cd2a4ed4c5f17e0e9c6c3881ea7b061bb426a
[ "BSD-3-Clause" ]
permissive
Jacques-Florence/schedSim
04008b2da3495a4f213d9e89fb03a85ccc8e16c1
cd5f356ec1d177963d401b69996a19a68646d7af
refs/heads/master
2021-05-07T17:48:43.879031
2017-11-27T01:02:08
2017-11-27T01:02:08
108,736,406
1
0
null
null
null
null
UTF-8
Python
false
false
297
py
import matplotlib.pyplot as plt print "hello world" f = open("reports/temperatureReport.txt") line = f.readline() print line time = [] temp = [] for line in f: entry = line.split(":") time.append(float(entry[0])) temp.append(float(entry[1])) f.close() plt.plot(time, temp, 'ro') plt.show()
[ "jacques.p.florence@gmail.com" ]
jacques.p.florence@gmail.com
a9eb5f9adcda46627ab985f0f8455a43ec516c95
4db58330a9f134b40f5e3b40067a52ccca19da12
/tglib/tests/prometheus_tests.py
6785a9603a4d8cf8d59a23d95ae9dc773ad18d27
[ "MIT" ]
permissive
terragraph/tgnms
b46e6d7406a132380ac2046d1c98dba7d7e4afd2
93c0c4bef28c1ed15dc61e9fd340a9faef4902e3
refs/heads/main
2023-09-03T09:42:42.442610
2022-12-14T19:11:19
2022-12-14T19:11:19
353,065,567
15
17
MIT
2023-08-17T17:17:05
2021-03-30T16:19:24
JavaScript
UTF-8
Python
false
false
9,534
py
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import re import asynctest from tglib.clients.prometheus_client import PrometheusClient, PrometheusMetric, ops from...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
d9d955e2cbca2fa678bcf7faf3564bb289e5af4b
0f79fd61dc47fcafe22f83151c4cf5f2f013a992
/BOJ/2251.py
a6e41c3b07cae2ca059d66b9444e8ab8d313c5c8
[]
no_license
sangm1n/problem-solving
670e119f28b0f0e293dbc98fc8a1aea74ea465ab
bc03f8ea9a6a4af5d58f8c45c41e9f6923f55c62
refs/heads/master
2023-04-22T17:56:21.967766
2021-05-05T12:34:01
2021-05-05T12:34:01
282,863,638
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
""" author : Lee Sang Min github : https://github.com/sangm1n e-mail : dltkd96als@naver.com title : 물통 description : BFS """ from collections import deque A, B, C = map(int, input().split()) visited = [[False] * 201 for _ in range(201)] def calc(a, b): global q if not visited[a][b]: visited[a][b] ...
[ "dltkd96als@naver.com" ]
dltkd96als@naver.com
51039aaf928c6e38b84bd9456a353a4e62c60352
c3e5bbdc7efa768a3af1d9395441800886d309d5
/src/minimization/minimization.py
e9954cb5917ea8b4bf0280edbe77ff050775d1ac
[]
no_license
davibobsin/Horus
773749a7f770373141d4c943d4fae9a4024ef7e5
38beefdb7b27d59de6f006f2db6a96ce4a29fe5b
refs/heads/master
2020-03-28T14:32:07.250089
2019-06-04T00:50:42
2019-06-04T00:50:42
148,496,028
0
1
null
null
null
null
UTF-8
Python
false
false
7,928
py
"""This script derives the most probable profile of a regular prism from the measurements of a camera""" import matplotlib.pyplot as plt import numpy as np from scipy import optimize from scipy.cluster.hierarchy import fcluster, linkage from scipy.spatial.distance import squareform from camera import Camera from sect...
[ "pedro.fr.morais@gmail.com" ]
pedro.fr.morais@gmail.com
2feaa8a3c7306194722b7faf9e73d72cedf303ba
b0a7df57997b63e049401464a77b56249f43c9ba
/petrol_station_system/__manifest__.py
2467da5d898f24e1b461ece307a6fb72276b88c4
[]
no_license
darlamichhane/OdooModules
9447e523a359298db60bd0c85174c303b2de93aa
1c94bc8157456b9250cc7a42dcd42af214902355
refs/heads/master
2020-12-09T10:56:08.691053
2020-07-26T17:15:42
2020-07-26T17:15:42
233,283,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,330
py
# -*- coding: utf-8 -*- { 'name': "Petrol Station Management System", 'version': 'PSIMS-1.0', 'summary': """Manage Petrol Station Information System""", 'description': """This Module Manage Petrol Station Information System""", 'author': "Utshav Ghimire", 'company': 'Sayapatri Technology', '...
[ "lamichhanedarshan@gmail.com" ]
lamichhanedarshan@gmail.com
9d4fd5e0c553161ab2e595fadaf22623ab69a6d0
65704e2b644e6c21bc50807d25ace6ee150afd0f
/web/project/models_test.py
5598efbc7b6fb7a63a73bdb8483a87b29dd95102
[ "MIT" ]
permissive
rubenwap/Daily
968dbb57151cb2ca9262252d37acf2bf1358500b
6501926b3eff25da60a7272f8b394aeb9f259df3
refs/heads/master
2021-06-06T11:01:01.422654
2019-08-22T10:40:32
2019-08-22T10:40:32
107,892,562
2
0
MIT
2021-03-20T01:17:49
2017-10-22T18:39:26
JavaScript
UTF-8
Python
false
false
274
py
import os import models import unittest import tempfile class modelsTestCase(unittest.TestCase): def test_empty_db(self): rv = models.create_api.get('/api/') assert b'No entries here so far' in rv.data if __name__ == '__main__': unittest.main()
[ "rubensanchezgarcia@gmail.com" ]
rubensanchezgarcia@gmail.com
8bdb443082fa9fe82cc2c73f8f2937d6f033574a
10a0fa58b99312dd6853fff744b48e359decc40a
/sofutomo/urls.py
6f1dca94088b3975e160bfe27be84127e9dbeeb1
[]
no_license
django-iori/bandfriends
e5fe176a0d7805cd856f8681b41cf0010b402a9e
e097eb423fe357611a003b5caf9fb00fe9e57e1b
refs/heads/master
2023-07-31T09:24:55.819083
2021-09-17T16:30:15
2021-09-17T16:30:15
405,573,218
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
"""sofutomo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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-base...
[ "iori4321999@gmail.com" ]
iori4321999@gmail.com
7ea26a36c680a685587d647cbcaa3f974142f6c8
f5226bf0b33c556d92ece4bc6e8718654cd3fc5c
/IDS_Deeplearning/MLP_nets.py
90f77f0e0b62bac0bce02f554abf7cf27e74fada
[ "MIT" ]
permissive
holytemple/DeepLearning_IDS
3cafc06f125825f04832c619ec0486d28aee1f54
bdb1bc0a9ff113563796853058eab43056c5380d
refs/heads/master
2022-04-25T19:03:44.051931
2020-04-26T22:07:57
2020-04-26T22:07:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,028
py
from sklearn.neural_network import MLPClassifier from sklearn import model_selection # cross_val_score from sklearn.metrics import precision_score, precision_recall_fscore_support import numpy as np # MORE INFO: http://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPClassifier.html # Training data: ...
[ "clazarom@hawk.iit.edu" ]
clazarom@hawk.iit.edu
d94e381ba8b81c1d856d41d573d66a57415d6c5a
e61bd7e6632ae57834659a093628159597beeab5
/tests/locator.py
72a8948effd329c7d766f347f47d542aff608344
[]
no_license
batatone/AV2TAV2021.1
4e6255ac3c9d01b10b58602ecbdf3cdb16d27d0b
35adc0ffd2dce3e83f8662818039f0b551b57d70
refs/heads/master
2023-06-25T17:01:31.007078
2021-07-20T02:35:37
2021-07-20T02:35:37
387,648,245
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
from selenium.webdriver.common.by import By class MainPageLocators(object): """A class for main page locators. All main page locators should come here""" GO_BUTTON = (By.ID, 'submit') class SearchResultsPageLocators(object): """A class for search results locators. All search results locators should c...
[ "pedrohportocarrero@gmail.com" ]
pedrohportocarrero@gmail.com
7942776927a978188b0a944b293ba33811c03608
72f153bd36709ef442b6bf49516f9d6312fc52f7
/students/migrations/0050_auto_20171119_1758.py
5cd2ab71161212c3b4a7298b86318ab78ecce229
[]
no_license
sabinusi/fypBackended
421a6132d7b4dd669eea4b5ee3dac6530174fcbd
02554f37ba3b3bbf3ee03281f5b75af9cac9b6d5
refs/heads/master
2020-03-23T15:18:46.580040
2018-07-21T03:03:51
2018-07-21T03:03:51
141,737,469
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-19 14:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('students', '0049_auto_20171108_0925'), ] operation...
[ "mteijulius98@gmail.com" ]
mteijulius98@gmail.com
d626db6ccf34087b1f0c1f1b1f9a1947717d0114
6f746a10104bbf07b8dcb1446d4fd05a81f7d528
/manual.py
b7b11bfed5792d524ac754618768d063db9d7cdc
[]
no_license
srishabh26/project
86666e248c71c2a420fc543df695e5c52339f6ac
f1783e1da0478ae4a7ff3e7ea112e63c5c42d3b7
refs/heads/master
2020-12-30T09:58:34.104826
2017-08-03T16:36:53
2017-08-03T16:36:53
99,248,019
0
0
null
null
null
null
UTF-8
Python
false
false
1,447
py
#!/usr/bin/python print "Content-Type:text/html" print import commands import operator import os import cgi import cgitb cgitb.enable() t=commands.getstatusoutput("nmap -sP 192.168.56.0-255 | grep 'Nmap scan'| awk '{print $5}'") commands.getstatusoutput("touch /now/file1.txt") f1=open("/now/file1.txt",'wrt') f1.write(...
[ "bitmesrarishabh26@gmail.com" ]
bitmesrarishabh26@gmail.com
da5def1d289f5279c5f5974e7fee349bff40d76d
579f794e83bfb7f15f8db6c6700b04e014962767
/python_server.py
7cfe93d18d391f52173f2c7a1f7053f3b0500d5b
[ "Apache-2.0" ]
permissive
mavlyutovrus/books_ocr
e31728785ceb0f4293815b3a910d2f8e85e66a65
e033c676bc2fb432f1820ee752573c0d0f5315db
refs/heads/master
2021-01-22T04:54:17.444752
2015-08-05T15:15:35
2015-08-05T15:15:35
39,854,726
0
0
null
null
null
null
UTF-8
Python
false
false
7,503
py
import numpy import time from datetime import timedelta import BaseHTTPServer import urlparse import urllib2 import json import os import sys from assign_page_numbers import upload_page_data def merge_blocks(first, second): return ( (min(first[0][0], second[0][0]), max(first[0][1], second[0][1])), ...
[ "m-ceros@yandex.ru" ]
m-ceros@yandex.ru
65d2241ac76d4aae7a55345dc850a0577c4b935e
5eae461b1935874a5dd1a7314d6586aadd083f76
/Trees/trim_binary_search_tree.py
2b66eb1a8548269248cfbab229c381c8bcd4552f
[]
no_license
tuantla80/Data-Structure-and-Algorithm
92d0c6cb6cf8d1c19025af00beaab8b0e99641cd
1412f4e0dae33dc2bb7d20ca07f6cf7a2ac42455
refs/heads/master
2020-05-04T14:52:53.337125
2020-01-22T16:11:16
2020-01-22T16:11:16
179,214,154
2
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
""" Problem: Given the root of a binary search tree (BST) and 2 numbers min and max, trim the tree such that all the numbers in the new tree are between min and max (inclusive). The resulting tree should still be a valid binary search tree. Ref: https://en.wikipedia.org/wiki/Binary_search_tree https://www.geeksforgeek...
[ "tuantla80@gmail.com" ]
tuantla80@gmail.com
a4b19de9b958c2c4d7f83c0e579f40c2fb76724f
63b8e0cce35d7e6ba8f8e94294d4300902cf47b0
/src/seminar/group_917/seminar_06_09/repository/repository_exception.py
0420d3daaed010247d191a9699e51d900b8ea2a1
[]
no_license
912-CUCONU-MARIA/FP
722e77b459ccffc56788614640c80876d5120b0a
367935f3c1320260d2e53bebf841a89cffc31dcd
refs/heads/main
2023-09-05T02:39:14.994359
2021-11-12T18:52:57
2021-11-12T18:52:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
class RepositoryException(Exception): def __init__(self, message): self._message = message @property def message(self): return self._message def __str__(self): return self._message
[ "arthur@cs.ubbcluj.ro" ]
arthur@cs.ubbcluj.ro
38321c6cc509187802168e77bee167a033d8c856
cdaa3fea8e92010caf0c5abd82f98092000eb770
/python/build/lib/dynamixel_sdk/robotis_def.py
a54e6e8bf29cf6bcb24d9a2fcb5f0214315d8ac2
[]
no_license
degibbons/TheoTheRobot
4a1ad8e121a380811d8f7f5b507825307ae20bf2
d195891f45fbfe5b973c8a83f7023065b4dd3642
refs/heads/master
2023-06-19T05:30:49.504624
2021-07-14T21:00:43
2021-07-14T21:00:43
295,028,325
1
0
null
null
null
null
UTF-8
Python
false
false
2,113
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # Copyright 2017 ROBOTIS CO., LTD. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obta...
[ "noreply@github.com" ]
noreply@github.com
1791b1c95ca407ce116c93b10189f8b1acf6f6a7
3e2ea4d833a7c7511251d3df28eb91b4a1762d21
/projeto/projeto/settings.py
978964177b362986ff837afcce1339a064287ea6
[]
no_license
UesleiJf/django-docker
1bc9da52b1ef25fea1b8dc4b836798dac36141a8
efbfacdd4c3cf43e049a8ca396553f3ffb701a19
refs/heads/master
2021-06-24T13:11:01.545244
2019-12-05T00:39:36
2019-12-05T00:39:36
212,711,060
1
0
null
2021-03-19T22:42:22
2019-10-04T01:02:23
Python
UTF-8
Python
false
false
3,347
py
""" Django settings for projeto project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
[ "uesleijf@gmail.com" ]
uesleijf@gmail.com
4837e0f2e8333a0f809ef8ca31bc658d1cf1a15e
ee3f16b398eac17027f2910054ea93176f89d994
/scrapy_test_task/web_crawl/web_crawl/spiders/gaz_spider.py
c3fd5a099fd74951ff42cc6b50206af893f4525c
[]
no_license
FE1979/Scrapy_test_task
50dd87d62c079f18e35b849adec7abca15cee869
e721ecc33b49c2b74f99947b934bbb10085a54fb
refs/heads/master
2022-11-09T23:04:39.906579
2019-07-03T03:58:16
2019-07-03T03:58:16
192,884,832
0
0
null
2022-11-04T19:35:15
2019-06-20T08:52:11
Python
UTF-8
Python
false
false
2,505
py
import scrapy import time from scrapy.loader import ItemLoader from web_crawl.items import VacancyItem class GazpromSpider(scrapy.Spider): name = 'gaz_spider' base_url = 'https://www.gazpromvacancy.ru/' start_url = base_url + 'vacancies/' count = 0 def start_requests(self): yield scra...
[ "ronin911@gmail.com" ]
ronin911@gmail.com
669d3d389b683c155d5e63ee53d083d6d33985a3
1aaba2be0479b43a76f3e85ea62cad8d42827d49
/lib/pymedphys/_experimental/wlutz/pylinacwrapper.py
6235b8067c04ba22fe53286afd5b0f5215d6a0b9
[ "Apache-2.0" ]
permissive
changran/pymedphys
a44a9aa9ec375c17ea73815c1a8e2a6a5a002c1e
164a7a5c6051ab4c8fd6efdb79c3bfb0684b65df
refs/heads/main
2023-07-30T21:32:07.697743
2021-09-10T11:37:02
2021-09-10T11:37:02
407,394,958
1
0
Apache-2.0
2021-09-17T03:42:49
2021-09-17T03:42:48
null
UTF-8
Python
false
false
8,650
py
# Copyright (C) 2020 Cancer Care Associates and Simon Biggs # Copyright (C) 2019 Cancer Care Associates # 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/LI...
[ "me@simonbiggs.net" ]
me@simonbiggs.net
abd36f4c899df2253c2c005d0b07894d8344e61d
c9cf83cab2bf6a84800b0b8871b36182950bda01
/Beam-Deflection-Visualiser-master/choice4.py
79b2d1c14c3a8d220e073b254403f9e06d20b035
[]
no_license
1zjz/Beam-Deflection-Visualiser
76097f4b51eda7a086f663a83b290afb5efe8f2a
22d000cc82db74021a329c6caa8c0286ff422df4
refs/heads/master
2023-03-21T22:01:10.989841
2017-12-10T16:57:28
2017-12-10T16:57:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,490
py
#--------------------------Initialization-------------------------------------------- import pandas as pd import numpy as np import os from display_menu import * #defining menu options to display save_menu_options= np.array(["Change Directory", "Stay in the current directory", ...
[ "noreply@github.com" ]
noreply@github.com
b60c5932de176922174d1a077fe4313b1fe8a10f
684e4122fae5b2879483f796964804e055e7e755
/utils/logging.py
0f3ee95562592c7faea1af9cf48e12d51353a6f4
[]
no_license
paultsw/wavenet-speech
bf2273fe0fa9f682b2242715cde2c7fa810d6e51
7ad943d9cc7a6872a14bba5239a99755f70db4cd
refs/heads/master
2021-10-24T23:23:29.048869
2019-03-29T20:10:28
2019-03-29T20:10:28
100,305,982
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
""" General logging class for PyTorch training loops. """ import os import torch class Logger(object): """ Abstracted class to expose logging methods to a series of files on the run directory. """ def __init__(self, run_dir): """ Construct logger and keep files open. """ ...
[ "paulswtang@gmail.com" ]
paulswtang@gmail.com
73bc23fd4fe805aefa5137d844e5ab841fbfef68
5cad23c80ce4e22603a14d21eac48fa76517595c
/tfidf.py
958a5490e0dc729853e33b3cdf9c4a23a9e2d09d
[]
no_license
cramraj8/adrc-clustering
4f8e63b62be4bbe986679894487d89423fb26a05
d033452b9cadd40833e49c297077244383239370
refs/heads/master
2021-06-13T11:13:14.003846
2017-04-06T17:36:46
2017-04-06T17:36:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
import itertools import math import numpy as np from collections import Counter def get_features_names(documents): features = list(set(itertools.chain(*[document.split() for document in documents]))) return features def get_idf(features, documents): idf = [] k = len(documents) for feature in features: x = sum...
[ "mohammed@c-ac-19-212.wireless.emory.edu" ]
mohammed@c-ac-19-212.wireless.emory.edu
f57544563f9837de0e195be045203d9f161b95b2
48e8667e34a872175229e092e3bf33bfce5bdb53
/movie/forms.py
074a086356a9f42d4da49bc08674137fce4ed52d
[]
no_license
abhishakvarshney/imdb
ecd33869ca428e399ec5abe9110214d9dbda1b4c
051fcf4de88b25360a527e5965325a66c2b3c7a6
refs/heads/master
2022-12-02T18:13:52.939996
2020-08-30T12:25:30
2020-08-30T12:25:30
291,211,658
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
from django import forms class UploadJSONFileForm(forms.Form): file = forms.FileField()
[ "abhishakvarshney@gmail.com" ]
abhishakvarshney@gmail.com
1f4544b3507b52901f1baf3fd47d4e23e168167c
7358c9c73ea8a156a5f34a16fce59f20e3d14a4b
/archive/apps/admin/projects.py
51ef35563c5cebb62ae81ce13acca948fc59ec0e
[]
no_license
trevorhreed/junta
852af2c47dcf50f6598d4c05fd9deff73278d9fe
bd082ecbbd8824e2ae36957b5412eda8db1d9e46
refs/heads/master
2021-01-19T06:35:45.918533
2014-02-02T00:14:38
2014-02-02T00:14:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
from libs import mdb from libs.apps import BaseApp from libs.projects import Project, ProjectPhases, ProjectController class ProjectsApp(BaseApp): def get(self): self.context['projects'] = Project.query() self.context['phases'] = ProjectPhases.TypesByKey self.render('/admin/projects/projects_main') def upda...
[ "trevorhreed@gmail.com" ]
trevorhreed@gmail.com
c8d0b3e1722280a5bcad69f3261cef189a32fdc1
cc096d321ab5c6abf54fdcea67f10e77cd02dfde
/flex-backend/pypy/translator/squeak/opformatter.py
a1f3132c2c53ed7d2ff14f785c9db8e670ae7c58
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
limweb/flex-pypy
310bd8fcd6a9ddc01c0b14a92f0298d0ae3aabd2
05aeeda183babdac80f9c10fca41e3fb1a272ccb
refs/heads/master
2021-01-19T22:10:56.654997
2008-03-19T23:51:59
2008-03-19T23:51:59
32,463,309
0
0
null
null
null
null
UTF-8
Python
false
false
7,202
py
from pypy.rlib.rarithmetic import r_int, r_uint, r_longlong, r_ulonglong from pypy.translator.squeak.codeformatter import CodeFormatter from pypy.translator.squeak.codeformatter import Message, Self, Assignment, Field def _setup_int_masks(): """Generates code for helpers to mask the various integer types.""" m...
[ "lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d" ]
lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d
5d4a0628630cfb39b3ac6c56399a0527cb5f0fd6
4ed2ecfbbad9b86e483e436bf09dacc2a5bc4839
/setup.py
ba4a697ce1d4c6a9ce2643360a1707992509c665
[]
no_license
adamdeprince/directory-1
cd142718b40bad1aa53124890d15e82bb4a51dbc
f09f856890db6127895a9584734296add8bbf60f
refs/heads/master
2021-01-17T18:18:31.151826
2016-09-06T18:16:49
2016-09-06T18:16:49
67,522,585
0
0
null
2016-09-06T15:46:48
2016-09-06T15:46:48
null
UTF-8
Python
false
false
561
py
try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension setup(name='directory', author = 'Adam DePrince', author_email = 'adam@pelotoncycle.com', url = 'https://github.com/pelotoncycle/dir', version='0.0.4', description="Expose...
[ "adam@pelotoncycle.com" ]
adam@pelotoncycle.com
c0f801066fbe4fbc488aa4f53aa2bdb9aa7d3d50
c4b30476c2b9e771ce600d9866610752001eab7d
/project_offer/interface/migrations/0005_auto_20190809_0003.py
24689e53db30e99c5bf2f34fcdc2744ee0fb690e
[]
no_license
dev-kanishk/project-offers
1d5701997f1a6862c8e5547b5880f2aa4f7f9958
1c850aad494ffb6c390e437c39238f9251736399
refs/heads/master
2022-07-25T08:56:20.673443
2020-05-22T17:09:01
2020-05-22T17:09:01
173,722,967
0
0
null
null
null
null
UTF-8
Python
false
false
1,671
py
# Generated by Django 2.1.5 on 2019-08-09 00:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('interface', '0004_comments'), ] operations = [ migrations.CreateModel( name='offer_images', ...
[ "dev-kanishk" ]
dev-kanishk
7cfaebc2206dcf028b358be036617c9466daa7ba
b4874cbd7299492277ad28441bad05e6348307f2
/dummies/zerg/twelve_pool.py
8794fd0f17c5215f414c095498ee3bcfa1555e53
[ "MIT" ]
permissive
MadManSC2/sharpy-sc2
7d405578413c7a8f8fc1e4030ad719d7fe5df10a
13950357df2db58033daab24f076e3ae83f0b2a8
refs/heads/master
2021-01-05T03:38:58.038563
2020-03-07T20:35:24
2020-03-07T20:35:24
240,865,466
1
0
MIT
2020-02-16T09:38:05
2020-02-16T09:38:04
null
UTF-8
Python
false
false
2,983
py
from sharpy.general.extended_power import ExtendedPower from sharpy.managers.roles import UnitTask from sharpy.plans.acts import * from sharpy.plans.acts.zerg import * from sharpy.plans.require import * from sharpy.plans.tactics import * from sharpy.plans.tactics.zerg import * from sharpy.plans import BuildOrder, Step,...
[ "aki.vanttinen@sedgestudios.com" ]
aki.vanttinen@sedgestudios.com
a25f33555b672c081f922302c3bca67aeac3a460
1f447da23a11510e091d60254e66139a185c1a8b
/controllers/xbox1-first-attempt/xbox1_dev.py
43413e2c35b3f993fff8cdd401ca2087563e1a51
[]
no_license
johnmorse/R2D2
467e1e84045b8d59851e1b9c71fc3e124395a01e
bf35225d5c72f9dac9fbb557ac80fcf1670e86ab
refs/heads/master
2021-03-31T15:45:52.767707
2020-05-09T23:12:47
2020-05-09T23:12:47
248,117,217
1
0
null
null
null
null
UTF-8
Python
false
false
5,609
py
#!/usr/bin/python """ XBOX1 Joystick controller MUST RUN WITH !!SUDO!! """ #from __future__ import print_function #from future import standard_library #standard_library.install_aliases() from builtins import str from builtins import range import pygame #import requests #import csv #import configparser import xbox1_defi...
[ "johnm@mcneel.com" ]
johnm@mcneel.com
4fc731bd9b6781222a0222650015ec85079efab2
3b10afd8f25b4de3d875b9e518606c6e28e265a4
/Project_1/Q4.py
a634a5d07f399ff7ff08772d06625a2665420a54
[]
no_license
denisdenisenko/Python_proj_1
44446779888c77eac869b27a077ebd45f3f5a37e
dd1572fcea35e200db14288a0cdcb86b62b00bd6
refs/heads/master
2023-03-05T18:10:16.090230
2021-02-19T18:41:16
2021-02-19T18:41:16
340,458,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
def domain_with_max_messages_sent(given_file): """ Printing the domain with maximum messages sent :param given_file : .txt :return: void """ # name = input('Enter file:') file_to_handle = None try: file_to_handle = open(given_file) except: print('File cannot be opened...
[ "denis.denisenko@gmail.com" ]
denis.denisenko@gmail.com
017db2c5f91aa1d7b05705a8c583be8bbb404b2d
8b670d2f44f2b8081402ca36b2e1845b7a7c17f7
/modeler/api/timeseries_archive.py
39f2405ad5b712d79baed3c701f2b7a85a5f0c68
[]
no_license
ZackLeirdahl/StockModeler
03fcdd6232a83e18c33a324402cac9f9251bba7c
bedeeb1e64120550f07a7acb19158d6ae4d6f22f
refs/heads/master
2021-10-13T01:04:12.719813
2021-09-28T16:09:38
2021-09-28T16:09:38
203,873,858
0
1
null
null
null
null
UTF-8
Python
false
false
2,767
py
import pandas as pd def append_change(func): def wrapper(self, df): df = func(self, df) df[df.iloc[:,1].name+'_change'] = [0] + [round(df.iloc[i,1] - df.iloc[i-1,1],4) for i in range(1, df.shape[0])] df[df.iloc[:,1].name+'_changePercent'] = [0] + [round(100*(df.iloc[i,2] / df.iloc[i-1,1]),2...
[ "zackleirdahl@gmail.com" ]
zackleirdahl@gmail.com
7eca167313115265ce2b0d62dbcbf552cb1591f2
0c3b10d6f4a8c7684e840713e8e08f00a82a5c6e
/sw/radiotuner/frontend/tui.py
3f5dfb64f20600c52bd00524d69033ff70199bbc
[ "MIT" ]
permissive
diallodavid/pi-radio-bonnet
024073c3927c9e4ac2a46bf67e693c74f9e799fd
8b43468ff1ac23d57fef9f57c4f39fed36f827a6
refs/heads/master
2022-11-30T06:09:58.607368
2020-07-30T17:25:35
2020-07-30T17:25:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,175
py
import curses import time def TUI_main(tui_q, player_q): # Initialize Terminal User Interface stdscr = curses.initscr() curses.noecho() curses.cbreak() stdscr.keypad(True) stdscr.nodelay(True) win = curses.newwin(32, 12, 0, 0) curses.curs_set(False) # Initialize colors curses....
[ "ibon@zalbide.com" ]
ibon@zalbide.com