blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a65a63285083680dabfe3fa0d2dc9a41bd1a99ed | e6128661adb532ba51e5bbedb2297bd2c317295a | /mysite/post/urls.py | d5899efaa538a1bf559fc2d513d19e2d60aa9c9a | [] | no_license | jding05/camagru | df2aefb562053c549d7a4b251aa2ad335691b10c | 1e9f20d1b01027a849908475dc82e3dd40c5ef6c | refs/heads/master | 2020-07-11T13:08:03.232756 | 2019-09-18T06:51:34 | 2019-09-18T06:51:34 | 204,548,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.urls import path
from . import views
app_name = 'post'
urlpatterns = [
path('<int:post_id>/', views.post, name='post'),
]
| [
"jeffding05@gmail.com"
] | jeffding05@gmail.com |
dc2ac181fa84de102a929a4dfb8be7ea70c45802 | de1da39dbab74f5ea756dd0687cd48c01db973b4 | /event_details/views.py | b9119c84efd3d96b5ee124411339302b3cda8dd8 | [] | no_license | madhavthatavarthi/events | e4c9c20a2cc514b77d683ac0920a7de1d96b38b4 | fc8f2fe16fc2425f56ffe3e5fc6f6459063860a8 | refs/heads/master | 2021-01-10T07:49:32.497908 | 2015-11-27T04:16:34 | 2015-11-27T04:16:34 | 46,959,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.shortcuts import render,render_to_response,RequestContext
# Create your views here.
def home(request):
return render_to_response("signup.html",locals(),context_instance=RequestContext(request)) | [
"madhavkrishna"
] | madhavkrishna |
43d4c7d2d7bb6f1ecbf5e63561d6f9a6cec1f7ee | b891b6f5f51750a95c4b4ad5766cc63431ad2799 | /config.py | 0618a3ed2bdd25bc6efb6da48cbc927c5bb0eb49 | [
"MIT"
] | permissive | dennisnyamweya/pitching | b12a75f5681289ee70cab65eeb19da5c35c7e718 | 9c338d3f496f9855b0a9233579f9aa4d3c0d6464 | refs/heads/master | 2022-09-26T13:55:22.784323 | 2019-08-06T04:27:52 | 2019-08-06T04:27:52 | 200,616,118 | 0 | 0 | MIT | 2022-09-16T18:07:47 | 2019-08-05T08:36:44 | Python | UTF-8 | Python | false | false | 821 | py | import os
class Config:
"""Main configurations class"""
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://moringa:123@localhost/pitchy'
SECRET_KEY = "try harder"
UPLOADED_PHOTOS_DEST = 'app/static/photos'
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 58... | [
"denisnyamweya813@gmail.com"
] | denisnyamweya813@gmail.com |
0f044e4f3f68770327f60b306ca346a9a878c576 | 665ee950548f3461b8bb6d9f1cf863e025f35592 | /DSA/lab4/postfix.py | be5bf4d2a68d1eaa2c196b94b5eb99a23599642d | [] | no_license | CinnamonRolls1/it-3rd-sem | 09b863be2aa7ebf2ffa04c1d2973b0e1494e4cd1 | bf349729b6411f93aa231a1afaabbae9aae9316b | refs/heads/master | 2020-04-28T16:35:11.998437 | 2019-03-27T18:22:49 | 2019-03-27T18:22:49 | 175,416,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from Mystack import Stack
def post(inp):
S=Stack()
data=inp.split()
for i in range(0,len(data)):
if(data[i]=="+" or data[i]=="-" or data[i]=="*" or data[i]=="/" or data[i]=="^"):
a=S.Pop()
b=S.Pop()
if(data[i]=="^"):
op="**"
else:
op=data[i]
result=b+op+a
S.Push(str(eval(result)))
el... | [
"chinmayanks@gmail.com"
] | chinmayanks@gmail.com |
9c7e0ec9ac281a7e422bfd1d6657a9deae3fdd71 | 5b9035dbfe0750e9933728f9631ad7a183dd3429 | /18/01/Pool.py | 370cc9e9856dfee8cce0818fc689057d3fd7a977 | [
"CC0-1.0"
] | permissive | pylangstudy/201709 | 271efbd4f337d912d0ca958a621eb2a040091528 | 53d868786d7327a83bfa7f4149549c6f9855a6c6 | refs/heads/master | 2021-01-21T12:16:21.950493 | 2017-09-30T00:02:34 | 2017-09-30T00:02:34 | 102,058,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | import weakref
import csv
class ConstMeta(type):
class ConstError(TypeError): pass
def __init__(self, name, bases, dict):
super(ConstMeta, self).__init__(name, bases, dict)
import sys
sys.modules[name]=self()#ConstMetaを継承したクラスのモジュールに、そのクラスのインスタンスを代入する
def __setattr__... | [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
192ae0766437c0f8325e7e24b989514be2a9acce | 853c4d3fb663d15020c6fe94b061f8954e663b75 | /camera/rotate.py | c99d98d7167e8863adea834a7ec517f671715a8b | [] | no_license | woody1/ultimate-coop | 1c9be18f96b8bc7d28fcce40815575c9825b146b | 0a49954db310146b6f1c51ca5d3eda3cd48f8c7b | refs/heads/master | 2021-04-27T00:13:14.540932 | 2018-07-01T22:07:00 | 2018-07-01T22:07:00 | 123,773,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # USAGE
# python rotate.py --image ../images/trex.png
# Import the necessary packages
import numpy as np
import argparse
import imutils
import cv2
# Construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required = True,
help = "Path to th... | [
"andrew.wood@aswood.com"
] | andrew.wood@aswood.com |
e6790effcd437b560f2f787aba0b6d9062b9e38e | 6437a3a4a31ab9ad233d6b2d985beb50ed50de23 | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/paramiko/sftp.py | 075e6e9b4e62c0ecd9c3279fdf58e28f5b90d4e0 | [] | no_license | sreyemnayr/jss-lost-mode-app | 03ddc472decde3c17a11294d8ee48b02f83b71e7 | 3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa | refs/heads/master | 2021-05-02T08:50:10.580091 | 2018-02-08T20:32:29 | 2018-02-08T20:32:29 | 120,813,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,534 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"ryanmeyersweb@gmail.com"
] | ryanmeyersweb@gmail.com |
6ac36163854dd13d2c92218c9807c03332434326 | 4fa8cfafce33c496fcd413fc364420be4084649b | /asd.py | 091ed8aba0bb3f0179a680e35ca9bd4597f9f12e | [] | no_license | mayankbaweja/spyChat | 285125cc7523a23e94925f8ad8c3eb58429a62ad | c79f9526e0fdd4b1ab34b851dc851c4aac33318f | refs/heads/master | 2021-01-11T13:38:10.791113 | 2017-06-22T08:33:46 | 2017-06-22T08:33:46 | 95,042,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,992 | py | from spy_details import spy, friends
STATUS_MESSAGES = ['My name is Bond, James Bond', 'Shaken, not stirred.', 'Keeping the British end up, Sir']
friends = []
print "Hello! Let\'s get started"
question = "Do you want to continue as " + spy['salutation'] + " " + spy['name'] + " (Y/N)? "
existing = raw_input(question... | [
"mayankbawejarow@gmail.com"
] | mayankbawejarow@gmail.com |
65fab0f23d52d3f46ac42fad5d82624ddc8e7e38 | ff705c5705356c187c301e948b99967fc2435187 | /train_test_split.py | a4d02467d9785356c508c973fc58002478c4cf26 | [
"MIT"
] | permissive | lionheartX/tensorflow-on-ios-tutorial | c2a2ea0b8fe8736788b7e74dc74c69708f5aa0ad | 11a0d75d1cdfd5a4ddf38c7021c6ef4b72690409 | refs/heads/master | 2021-01-19T13:46:09.567686 | 2019-02-15T03:28:22 | 2019-02-15T03:28:22 | 88,108,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import numpy as np
import pandas as pd
df = pd.read_csv("voice.csv", header=0)
# convert "male" to 1, "female" to 0
labels = (df["label"] == "male").values * 1
labels = labels.reshape(-1, 1)
del df["label"]
data = df.values
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = trai... | [
"zhengxiong@Zhengs-MBP.phub.net.cable.rogers.com"
] | zhengxiong@Zhengs-MBP.phub.net.cable.rogers.com |
521b4bf3657fd33b18f0dd8c026ee69df493d283 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/batch_create_subnet_tags_request.py | 9c6ab367a7d382993a6806837feaf9a13b280a97 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,003 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchCreateSubnetTagsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7cba573d124732e085623171026581c88a2edeaa | f18c35ae7c7388635f55db529b59be7f19d5987a | /watch_files.py | 976e6bd3cbf7e626352dbb04469c327b349295d5 | [] | no_license | seichten/misc_code | 408ed5e605fce21269adcaa35ed301f4de6f5925 | eb638de87f294440e63f9baf742b4307247da807 | refs/heads/master | 2021-04-30T05:33:52.755434 | 2018-02-13T18:31:47 | 2018-02-13T18:31:47 | 121,419,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | #!/usr/bin/python
#imports
import os, time
path_to_watch = "."
before = dict ([(f, None) for f in os.listdir (path_to_watch)])
while 1:
time.sleep (10)
after = dict ([(f, None) for f in os.listdir (path_to_watch)])
added = [f for f in after if not f in before]
removed = [f for f in before if not f in after]... | [
"seichten@Steves-MacBook-Pro.local"
] | seichten@Steves-MacBook-Pro.local |
c0f84c701d6083a055c56a3db2f06fafc53a65f1 | 19ec1116024bebfe16d099f273bd3997b212f594 | /FinancePython/strategy_tester/ResultsAnalyser.py | c5e023ef831ce5f75993d87f3206530e38a5596c | [] | no_license | GBelzoni/BigGits | 6058f3e89016ad8d39dfe4de339c76e547529032 | daa538eca30459bd38a6d7332a27a3b38fac5875 | refs/heads/master | 2016-09-05T16:06:33.263000 | 2014-05-10T17:54:19 | 2014-05-10T17:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,357 | py | '''
Created on Jun 23, 2013
@author: phcostello
'''
import pandas as pd
import numpy as np
class ResultsAnalyser(object):
'''
This class analyses fitted trade strategy object
'''
def __init__(self, data, valueIndex = 'Value', referenceIndex = None):
'''
Takes a pandas dataframe objec... | [
"patrickhcostello@gmail.com"
] | patrickhcostello@gmail.com |
a46fecac9727adfacec6925c15238c20644f428e | 6b10c1831b9c1c0811721a9ddb79344bb167ecd1 | /src/test.py | e0a74680ae01466ad4f736be50bd5ef99b2f5699 | [] | no_license | P79N6A/SPM | 2f08afcbaa5aa93c4f8d06dcbca58fb7dd2e2c2e | 1b30d142eba33935d0b2ccc557e8aababb89bcc4 | refs/heads/master | 2022-01-06T20:54:49.116074 | 2019-06-24T09:45:56 | 2019-06-24T09:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | import tensorflow as tf
import numpy as np
fpout = "./data/multi_data7_tech/multi_data7_tech.tfrecord"
tfrecord_out = tf.python_io.TFRecordWriter(fpout)
labels = np.random.randint(1, size=3)
job_id = 1
jd_lens = 100
jd = np.random.randint(100, size=500)
exp_id = 1
cv = np.random.randint(100, size=500)
cv_lens = 100
... | [
"30405886+quyuanhang@users.noreply.github.com"
] | 30405886+quyuanhang@users.noreply.github.com |
45c90cf1fc2e6869723fb00206100b42cde389a4 | edc6ae341cb650649ca0d96159f781fac905fcbe | /drfpasswordless/migrations/0003_callbacktoken_type.py | 2160ae2ece198a58ce8554be709f970c5bb85b6c | [
"MIT"
] | permissive | aaronn/django-rest-framework-passwordless | a7535670017b05f4d268d582758dd8330577fb0a | 36592eae58f616e3068bd393d06a33e3179b96c8 | refs/heads/master | 2023-08-22T06:43:47.065797 | 2022-04-11T07:39:47 | 2022-04-11T07:39:47 | 86,131,730 | 661 | 159 | MIT | 2023-02-11T15:35:24 | 2017-03-25T04:13:14 | Python | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.0.2 on 2020-01-22 08:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('drfpasswordless', '0002_auto_20200122_0424'),
]
operations = [
migrations.AddField(
model_name='callbacktoken',
name... | [
"aaronykng@gmail.com"
] | aaronykng@gmail.com |
e51a10704b21eba948418b3b0608279531ad9304 | 820a8706cb535e3cf7a3117f71f3c7a134213db5 | /ck/__init__.py | 16628df672c2491c589570e9b1892ea41fdabf82 | [
"MIT"
] | permissive | hczhcz/PyCK | f96138d20c3a864772ba565c0c0bb199bac5b462 | 7ed085fc6d85e2bfb5ca2258acc143b0bbfecff0 | refs/heads/master | 2022-05-22T23:41:41.214603 | 2022-03-25T16:55:18 | 2022-03-25T16:55:18 | 228,528,170 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from ck import query
from ck import session
sql_render = query.sql_render
sql_template = query.sql_template
LocalSession = session.LocalSession
PassiveSession = session.PassiveSession
RemoteSession = session.RemoteSession
| [
"h.cz@qq.com"
] | h.cz@qq.com |
1f2aacb82ddc3822eb489608fe1777f32da5ede4 | dee2a051e71809a3b9466eb2a709c7aa36c6704e | /examples/Ch12/ch12_ex.py | b2cd540faa26939c327b455c6482180d3d09cfd6 | [] | no_license | MRGibson-code/adv_finance | e0f15cbd71e6494b38c5c73fe131d3731597518b | 240ce03e53fc6eead469a1ce7a220510a78c437e | refs/heads/master | 2022-01-23T00:10:09.724135 | 2019-07-27T15:36:35 | 2019-07-27T15:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import numpy as np, scipy.stats as ss, pandas as pd, datetime as dt
from random import gauss
from sklearn.ensemble import RandomForestClassifier
from adv_finance.model_selection import kfold
def numBusinessDays(date0, date1):
m, date0_ = 1, date0
while True:
date0_ += dt.timedelta(days=1)
if ... | [
"changwan.jang@gmail.com"
] | changwan.jang@gmail.com |
6aba396a479895a42694694b4f4d0f13154ed4bc | da687718aa8ce62974090af63d25e057262e9dfe | /cap18-Interface-GUI-Tkinter/extras/02_tutopoint/08_listBox.py | 2d5af720f62d7bbd09ee2a26784e198af2b8b98a | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #!/usr/bin/env python3
from tkinter import *
top = Tk()
Lb1 = Listbox(top)
Lb1.insert(1, "Python")
Lb1.insert(2, "Perl")
Lb1.insert(3, "C")
Lb1.insert(4, "Julia")
Lb1.insert(5, "Djago")
Lb1.insert(6, "Go")
Lb1.pack()
top.mainloop() | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
c3510b8e32803abd9c8fb318b92fc3a4e94bc876 | bfbc5d128904df01c24624087c25bfa8c1b83d5c | /predict | 16e1a8db2699a9e758b230e72dc7d80a5ff18146 | [
"MIT"
] | permissive | BeckResearchLab/detect_plasmid | 2873cc9e71f1026ca426169d058671ac1dfe4ef9 | 82eb6c50d38d6ef3313c067c88a34b6c8d585990 | refs/heads/master | 2020-05-26T05:15:06.157152 | 2019-06-19T03:12:26 | 2019-06-19T03:12:26 | 188,118,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | #!/usr/bin/env python
from selene_sdk.utils import load_path
from selene_sdk.utils import parse_configs_and_run
import hdf5_sampler
configs = load_path("predict.yml", instantiate=False)
parse_configs_and_run(configs)
| [
"dacb@uw.edu"
] | dacb@uw.edu | |
e7df45b7ded4c930ed230c0ad000487f48fca1f9 | ba892a138af61bfc14df4188ac39831a4e47b0e9 | /sender.py | 6e26e4241f9d79f05426188feb3f38cf184b046a | [] | no_license | evanslyke31/nvidiaScraper300 | 849b21d552a13f22fe84de0cd6df076895d7581a | a29f9b8adc462760fbc2372eec2916b065d5ab3f | refs/heads/main | 2023-05-04T03:06:34.854808 | 2021-05-19T04:18:52 | 2021-05-19T04:18:52 | 368,741,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import requests
# api-endpoint
URL = "http://localhost:10025"
def post_url(p):
try:
r = requests.post(URL, p, timeout=1.5)
print(r.text)
except requests.Timeout:
pass
except requests.ConnectionError:
pass
| [
"erik@vslyke.com"
] | erik@vslyke.com |
f7578912268121935ff7b08d02a5f14e4a2b2de7 | 524def768283baa62fad3cb27b49a603f50d45fd | /Scikit-Learn/Hands_On_Book/2_Housing_Prices/visualization.py | 1075ee5502d1f75e64d6afea932fb960c7333bce | [
"MIT"
] | permissive | chirag2796/Machine-Learning | 5a203982aab529d329aa5423923fef51c50715d9 | 2caa38e71778f88ca3f2dcd09e4b866fdb16a058 | refs/heads/master | 2021-06-26T14:48:41.181075 | 2021-02-13T10:53:54 | 2021-02-13T10:53:54 | 206,116,496 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import pandas as pd
import matplotlib.pyplot as plt
DATASET_FILEPATH = r"D:\Dev\Datasets\Structured\Housing_California\housing.csv"
def load_housing_data(dataset_filepath=DATASET_FILEPATH):
return pd.read_csv(dataset_filepath)
def visualization():
housing = load_housing_data()
print(housing.head())
p... | [
"chirag2796@gmail.com"
] | chirag2796@gmail.com |
7093d968d9c6d31ca4896394e28feddfd8af82b8 | f746f5687ef904c47dce0c245648bb02c086187c | /flask_rak/__init__.py | dcd3e9cbbe9535d3b1def7231d8cad5ffeb32d09 | [
"Apache-2.0"
] | permissive | Huong-nt/flask-rak | 658a8e803a08f394f4c64fa1ead67406e56f5548 | e7182249a13b0147c648c445012d7257e5536bfc | refs/heads/master | 2023-08-04T01:24:38.727904 | 2022-06-09T15:33:52 | 2022-06-09T15:33:52 | 137,741,832 | 3 | 1 | Apache-2.0 | 2023-07-20T13:14:14 | 2018-06-18T11:08:21 | Python | UTF-8 | Python | false | false | 300 | py | import logging
logger = logging.getLogger('flask_ask')
logger.addHandler(logging.StreamHandler())
if logger.level == logging.NOTSET:
logger.setLevel(logging.WARN)
from .core import (
RAK,
session,
context
)
from .models import (
audio,
statement,
question,
dialog
) | [
"nguyentienhuong93@gmail.com"
] | nguyentienhuong93@gmail.com |
c1e15eed65f2e8beab04a51a52886557bec04f5a | 3ef414e9bcdabc28f21a5876e0e936fe5a800bd9 | /app.py | 68939326ffb785efb5dca065299730533fd19b40 | [] | no_license | josekey/EXPD-App | 92fc251bd560dcb253e5b4b6d91fbfacfa68d3b5 | 9b0adc07464be21b90ccdac5565a4d3bb6946f76 | refs/heads/main | 2023-08-12T02:07:11.509657 | 2021-10-12T22:56:00 | 2021-10-12T22:56:00 | 416,517,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,705 | py | # libraries to work with data
import fitbit
import gather_keys_oauth2 as Oauth2
import pandas as pd
import numpy as np
import datetime
# web app libraries
from flask import Flask, flash, jsonify, redirect, render_template, request, session
## error catching and security
from werkzeug.exceptions import default_excep... | [
"jose.key@yale.edu"
] | jose.key@yale.edu |
5d390c0d1256d7b6979f0a7e5a1f7fe3d99fefc5 | cfb3a3e1ff9d52eb78eeaf8cc5862b0b15646cf1 | /211014-fujitsu/opentuner/test/interface_v4.py | 6244f9a22a3e3d1861567d3716316c4d44a48786 | [] | no_license | smallcat9603/simgrid | 792faf6a4962eea4c504a30238ce4c1c35f0f322 | ac3047342bb298825e945a10fa7fe72a0180232d | refs/heads/master | 2023-04-05T00:56:46.146355 | 2022-10-28T16:14:30 | 2022-10-28T16:14:30 | 154,488,781 | 2 | 0 | null | 2023-03-16T07:36:22 | 2018-10-24T11:23:00 | Python | UTF-8 | Python | false | false | 14,874 | py | # v1, modified by smallcat 211207, add new objective (simulated time) for simgrid use
# v2, modified by smallcat 220623, add new objective (FLOPS) for HPL, HPCG (Kashiwa FPGA)
# v3, modified by smallcat 220706, handle output error & overtime
# v4, modified by smallcat 220725, obtain output result when interrupted (hpl... | [
"huyao0107@gmail.com"
] | huyao0107@gmail.com |
41c37a24bdba0202091ebf7d2291ade3c34a7c33 | 2649bdbeb09a9efcd37162cacb58d8bc4727d8e7 | /userLog/urls.py | 3fa198f6a3e028f81c7aee31ed7df55d6e3e3fee | [] | no_license | vishwajeet1/testapp | 04fbf1091ab6b5875acd1d44ac86f5a29ee296f8 | 71d803bc11be29633cc6662c87365fdfe3fbd4c8 | refs/heads/master | 2021-01-14T19:28:15.129707 | 2020-02-27T09:55:18 | 2020-02-27T09:55:18 | 242,730,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.urls import path
from . import views
urlpatterns = [
path('reg', views.regUser, name='reg'),
path('login', views.logUser, name='login'),
] | [
"vishwajeetrai1996@gmail.com"
] | vishwajeetrai1996@gmail.com |
14406fa396769941c35ccce3423f5848cfded786 | 8c5b0237239073623d34d186f18009581bcf2dd9 | /Trainingporject/settings.py | 91036b99dffe23de71829250d2f514366c7ee870 | [] | no_license | nikesh65/Django_Final-Project | f7b4963b545ceee1dd6347e4938109510f47df2d | d5db28ddf3945a6f0c94abbbd903f65512b98d4c | refs/heads/master | 2021-01-01T18:04:45.973131 | 2017-07-24T23:08:25 | 2017-07-24T23:08:25 | 98,238,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | """
Django settings for Trainingporject project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import... | [
"nikeshvempati2@gmail.com"
] | nikeshvempati2@gmail.com |
b7142c88313140b8e28b232b599a63ad00f37da9 | a9943c862683fd5e67250c14723914c42eb98d1a | /products/migrations/0001_initial.py | a9b80134bf3e776c3c5799a0846e7dd8c487f4c6 | [] | no_license | PeterLenting/e-commerce | 8e0509c2b5f121cb356ea26c274522ee7b326b13 | dd2ee9a6decbb1c659fbafd3159d0c184377f60b | refs/heads/master | 2022-12-06T01:43:53.327596 | 2019-12-07T13:20:28 | 2019-12-07T13:20:28 | 225,182,704 | 0 | 0 | null | 2022-11-22T04:53:00 | 2019-12-01T15:22:00 | Python | UTF-8 | Python | false | false | 764 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-12-03 12:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Produ... | [
"pplenting@gmail.com"
] | pplenting@gmail.com |
3228ec8b612fb5b3888a4537f30a36c4ee0e60c3 | 361b038a681e8235e74cb4fd73c471ea3d815b84 | /lib/utilpath.py | 3484a674fd1af99038c8e373c5022021d36465b5 | [] | no_license | adityamandlekar/SpringBootMS-mvc-Customer | 334d7403449821c35376003dd10aa251ea6e5e85 | 83f4b0877b5a982eccd1cd85fc9d45323d3484ab | refs/heads/master | 2020-12-01T10:32:02.854479 | 2020-01-03T18:07:58 | 2020-01-03T18:07:58 | 230,607,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | from utils.ssh import _search_file
from utils.version import get_version
from VenueVariables import *
class utilpath():
"""A test library providing keywords for running, starting, starting CHE processes.
"""
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
ROBOT_LIBRARY_VERSION = get_version()
COMMA... | [
"kim.tresner@thomsonreuters.com"
] | kim.tresner@thomsonreuters.com |
225db887957a51c3312d2e5222ce9fbdec03efcb | 8f8b81e83fbab89b201134d2e6d9800dcaf65686 | /hooks/filters.py | e4e72794252fe1e00ca25d24b5b633a98cafef84 | [] | no_license | ivanprjcts/equinox-hooks | 574f4505fffae217c75c2fa4389ac144e308d40e | feb7a5afec80e9838f772756dda91500d6d1500d | refs/heads/master | 2021-01-12T14:17:24.806688 | 2016-10-25T09:11:52 | 2016-10-25T09:11:52 | 68,961,142 | 0 | 0 | null | 2016-09-23T02:19:48 | 2016-09-22T20:50:11 | null | UTF-8 | Python | false | false | 174 | py | from rest_framework import filters
from hooks.models import Hook
class HookFilter(filters.FilterSet):
class Meta:
model = Hook
fields = ['application'] | [
"ivan.martin@11paths.com"
] | ivan.martin@11paths.com |
35d3746ad9ab339ff3343895ff7b2c65031f1349 | 87753fe14bd352504fc239bfdff1a65d1c7969a8 | /src/ecocloud_wps_demo/processes/anuclim_daily_extract_netcdf4.py | 5f98afe640e7cd645278479414001649565048ae | [] | no_license | ausecocloud/ecocloud_wps_demo | 3909372d3abd45ff3ecd62806b72800047f13178 | bb412704ddf09d2b5c207b191d9c2e62c7b07937 | refs/heads/master | 2020-04-04T17:59:21.955498 | 2019-01-21T23:35:29 | 2019-01-21T23:35:29 | 156,145,270 | 0 | 1 | null | 2019-01-14T23:12:53 | 2018-11-05T01:46:13 | Python | UTF-8 | Python | false | false | 8,743 | py | import csv
import datetime
from itertools import takewhile, repeat
import logging
import operator
import os
from netCDF4 import Dataset
import numpy as np
from pywps import Process
from pywps import ComplexInput, ComplexOutput, LiteralInput, Format
from pywps.validator.mode import MODE
#from netCDF4 import Dataset
... | [
"g.weis@griffith.edu.au"
] | g.weis@griffith.edu.au |
3739f0b84f86b376235cade51f9071d7d62c8b18 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /eraBhwF8HkJDAa2pS_7.py | 4d28a63e1772e975610e4ed6a58348f01d38c9a7 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | """
A group of pirates each have a distribution of gold coins, which can be
represented as a list:
[3, 9, 4, 5, 5]
# Pirate 1 has 3 gold, Pirate 2 has 9 gold, etc.
The difference between each pirate's share of gold and that of the richest
pirate is represented as:
[6, 0, 5, 4, 4]
# Since 6 = 9 - 3... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
30c21e876340341847ba611f6954e68f9b332293 | b4ac14d7d64e4f7b54adebca47a27387fa58dfbd | /test_env/爬虫框架测试.py | 14c15c1c879c73ca29cdb7a08031ab8ec56ac190 | [] | no_license | 7azumi/PythonWorkspace | 7853372273641ac3ebe8125973590f06a28e4acd | 5e8edb046be7186aef2511f5b0454bf089851c72 | refs/heads/master | 2020-03-20T10:38:03.999130 | 2019-05-12T13:47:15 | 2019-05-12T13:47:15 | 137,378,520 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # pyspider
import pyspider
# Scrapy
import scrapy
# scrapy-redis
import scrapy_redis | [
"louis2387939301@gmail.com"
] | louis2387939301@gmail.com |
899e40f317b28fcd4497c5f7376c874b13e236ed | 4e62baa76a467df274413b2cb71d11489827136b | /build/husky/husky_viz/catkin_generated/pkg.develspace.context.pc.py | 6b9a45c727bef3b94cf22ef296e76353e42bc5cc | [] | no_license | JoaoBAlmeida/desafio_final | 401d93c07781c98df69a1df497bcee4e569f663c | 2446c1a0fac2b6f67bdc46f8bfa7e0191d038faf | refs/heads/master | 2023-02-01T15:55:05.504061 | 2020-12-18T09:17:17 | 2020-12-18T09:17:17 | 322,544,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "husky_viz"
PROJECT_SPACE_DIR = "/home... | [
"jpbarbosinha@gmail.com"
] | jpbarbosinha@gmail.com |
94b90aa5337726bd3bf5333e48be635a3f5f706e | 2d0c367b56927e4c97116a2b26c2309a858e5c84 | /code/B_visual_sign_intensity_estimation/EDA/check_train_distribution.py | 1d4f7d42c870393e834b9e5be70f8edf4def0bd2 | [] | no_license | alfonmedela/ASCORAD | 2850f415c1c58784a6fb29accdab85dd3a090de8 | 95d6d33a7915f6f020703c174a74cdbff250d327 | refs/heads/master | 2023-06-24T14:59:34.694665 | 2021-07-23T23:11:31 | 2021-07-23T23:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | ###########################################
# Author: Alfonso Medela #
# Contact alfonso@legit.health #
# Copyright: Legit.Health #
# Website: https://legit.health/ #
###########################################
# Imports
import json
import os
import numpy as np
impo... | [
"alfonso@legit.health"
] | alfonso@legit.health |
ccfd5b63b8247da67441654aac90f787e029ef46 | a6a32f38e7d7eb7e73bbf99d5d116c76d07a363a | /vue_uikit/vues/apps.py | 5e96791204f4bd6e6d4a54f01d103a866d8a38e7 | [
"Unlicense"
] | permissive | Xpf123131123/django-web | d137746cf349fb2651f0ae67ee4e19b878fbe244 | 0ee018d6bd102378177f41b3cebca1f8c61a0b5c | refs/heads/master | 2021-04-27T03:54:02.139929 | 2018-02-27T09:59:14 | 2018-02-27T09:59:14 | 122,721,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class VuesConfig(AppConfig):
name = 'vues'
| [
"pengfeixu@pengfeixudeMacBook-Pro.local"
] | pengfeixu@pengfeixudeMacBook-Pro.local |
5eb8fe8ce341d9e6d317583c49a79f9eb878a0f2 | 4003025e83fba4b71b000a644b3d3b3ead356f6e | /hello.py | 8b1ee50cfdb181aae85a77a9fabd175d1009e964 | [] | no_license | DSR007/woc_assignments | 679b76f0df678c42794749066902e15008d7b273 | 17de705fdb07ebf4bf34880596c8ea111d576535 | refs/heads/master | 2021-08-28T07:03:26.721725 | 2017-12-11T14:13:55 | 2017-12-11T14:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | print('Hello World')
print('What is your name?')
inName=input()
print('Hello'+inName)
print('Nice to meet you :)')
print('How old are you?')
inAge=input()
print('Your age is '+str(int(inAge)))
| [
"noreply@github.com"
] | noreply@github.com |
cffe50dd97a932ebc3250fdbf9a6349b509f3431 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/powerbidedicated/azure-mgmt-powerbidedicated/generated_samples/create_auto_scale_vcore.py | 67ad65f12c53cbe937f4d46b56b858ef521762f8 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,885 | 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 |
ee7358a3297e1b86ffe16f03447bbb5fa211b7df | b99b32fb0b4597bee94809ebd3b2ddae43064bee | /landmark_detection/menpofit/math/correlationfilter.py | 2b80d9e1b419f80ff46311e072543bc34e8aa2a5 | [] | no_license | HongwenZhang/ECT-FaceAlignment | c0129dc2aa20bc2bdba03a9ed1cabebcd5e5d848 | e94b446db73fca5ba751d6d9a81d42633208f228 | refs/heads/master | 2023-01-29T14:25:19.502350 | 2020-12-13T09:18:55 | 2020-12-13T09:18:55 | 111,511,579 | 31 | 19 | null | null | null | null | UTF-8 | Python | false | false | 14,354 | py | import numpy as np
from numpy.fft import fft2, ifft2, ifftshift
from scipy.sparse import spdiags, eye as speye
from scipy.sparse.linalg import spsolve
from menpofit.math.fft_utils import pad, crop
def mosse(X, y, l=0.01, boundary='constant', crop_filter=True):
r"""
Minimum Output Sum of Squared Errors (MOSSE... | [
"hongwen.zhang@cripac.ia.ac.cn"
] | hongwen.zhang@cripac.ia.ac.cn |
9973ef4dd3e776c8b7798507c3dfbd1efd958796 | 847cd47774cf2e3335fb989662aba6748174b37a | /cellphy/tracking_analyzer_gui/utils.py | 3190a020285e472d2190f96b57c4b3af6858c7d2 | [] | no_license | zeroth/cellphy | cc39fa6807d8f46230089740c2543eaa7ee903bb | fb3d857cbaa0540e45427366668cf5fb5969c36f | refs/heads/master | 2023-05-13T22:55:51.270050 | 2023-05-01T04:10:44 | 2023-05-01T04:10:44 | 151,184,057 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from PyQt5.QtCore import QFile
OUTPUT_FILE = QFile
# def print(self, *args, sep=' ', end='\n', file=None): # known special case of print | [
"abhishek.patil@student.unsw.edu.au"
] | abhishek.patil@student.unsw.edu.au |
412354dd10998bf72bc427f1882857eed5d7345a | b4b95c1e3ab70b332596bda4f008cd077fda6b66 | /week4/day4/hero_project/hero_project/settings.py | 21c5ca234a53139ed25c0c958d84d8c99e7dc311 | [] | no_license | johnjdailey/wf-2020-11-15 | 863952f0267a90191d0cf36869d870746530545f | 2f4f6789914be8f5ae2e107c8b2d3762c8330b01 | refs/heads/main | 2023-03-20T19:14:31.403918 | 2021-02-24T08:08:10 | 2021-02-24T08:08:10 | 364,556,774 | 1 | 0 | null | 2021-05-05T11:40:07 | 2021-05-05T11:40:07 | null | UTF-8 | Python | false | false | 3,123 | py | """
Django settings for hero_project project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"CBaut@users.noreply.github.com"
] | CBaut@users.noreply.github.com |
896dfb5f50363046d705420cf1d4635764de6422 | b1c271e8c69c5dad361ddf4b9415a0818db061ea | /Brain-Tumor-Segmentation-3D-UNet-CNN-master/create_predictions.py | 7777d835a1742a3e1ce6a456d8f788c922f4ccab | [] | no_license | ssh6189/2020.05.12 | 105e9947d9a6f340120d90aae5edf7c90de44379 | a12fab4c477c54ee11a1b58fa207b548ad5e310d | refs/heads/master | 2022-07-23T13:07:18.240311 | 2020-05-14T12:34:19 | 2020-05-14T12:34:19 | 263,185,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,663 | py | import pickle
import numpy as np
import copy
import nibabel as nib
from tifffile import imsave
from unet_utils import crop_img, weights_dir, data_dir, pred_dir, DataGenerator, create_model
from keras.models import load_model
from keras import backend as K
from keras.engine import Model
K.tensorflow_backend.set_image_di... | [
"ssh6189@naver.com"
] | ssh6189@naver.com |
47daba207724ebb21bf6d8b3e8804ae9c50685bf | 11578eb1332c3835d2e87ea3f5a134bdcf878277 | /blog/models.py | 4f65f073589406303536cd1bf7700116f9ee7f5c | [] | no_license | xuefeng-huang/flask-app | 3c1561e2f577a5d27f79feec36eb5a1be2f6e72c | 733c94eb81ad363dffd7c0a1857f1413068203d3 | refs/heads/master | 2021-01-09T21:52:24.281304 | 2016-01-01T16:11:28 | 2016-01-01T16:11:28 | 48,087,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from flask_init import db
class Blog(db.Model):
id = db.Column(db.Integer, primary_key = True)
name = db.Column(db.String(80))
admin = db.Column(db.Integer, db.ForeignKey('author.id'))
def __init__(self, name, admin):
self.name = name
self.admin = admin
def __repr__(se... | [
"timhxf@gmail.com"
] | timhxf@gmail.com |
fd8b5422d5e49efc63e6d6162b1ba642e6cc2260 | 9158645371be57fcab53d4f3ee5df0153a5c111e | /avdjango/avdjango/urls.py | 2116cd37d7009d051a5981446344c2cf2673bc24 | [] | no_license | rajatvijay/demo-django | 51063246bdb2197d09bf5d181e28f7b204feede3 | a3dad144c0888e4c08e91f4e759c6d6dbb838bc0 | refs/heads/master | 2021-01-02T09:39:20.676674 | 2017-08-04T06:21:01 | 2017-08-04T06:21:01 | 99,265,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """avdjango URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"rajatvijay5@gmail.com"
] | rajatvijay5@gmail.com |
8af671173d0dc4dd8dc6573304bd98d13fa81bc3 | d792dae3e5f24af2b1cf65641cf0fe242028092f | /manage.py | 6404850b3667f8dd963b758c1c917d72f640a8f9 | [] | no_license | angwinner/robot-a-tron | ac79d975ee00dca4ee3089d58fde787915631489 | d07bc3dd3b370cfff9b592308502683ffee5a290 | refs/heads/master | 2021-01-10T13:50:36.898572 | 2016-02-10T18:53:02 | 2016-02-10T18:53:02 | 51,461,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CF_Robot.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"awinner@comcast.net"
] | awinner@comcast.net |
d76568dec057241b650414033a7585fd422344b3 | 549317bc0a7230ec163914c75f75dd008900c57b | /pyroomacoustics/tests/test_room_is_insided.py | 3d49962456b8076f646ddc7bbaee2b7887245503 | [
"MIT"
] | permissive | oucxlw/pyroomacoustics | 0bb633427cd7ce3e93392cdc9d0bc3afc5f2dbf3 | 0adc91579c9c6daf1b73d2c4863a9fc66b308dbb | refs/heads/master | 2023-06-17T17:43:49.743201 | 2021-07-21T05:36:46 | 2021-07-21T05:36:46 | 288,884,904 | 1 | 0 | MIT | 2021-07-21T05:36:47 | 2020-08-20T02:22:54 | Python | UTF-8 | Python | false | false | 2,248 | py |
import numpy as np
import pyroomacoustics as pra
def test_room_is_inside():
# fix the seed for repeatable testing
np.random.seed(0)
# This was a problematic case
# if the source is placed at the same height as one of the corners
# the test would fail, even though the source is in the room
fl... | [
"fakufaku@gmail.com"
] | fakufaku@gmail.com |
f76e2a9511e5d7f982695f3e4c56ae5960b336e7 | 771d7c30e9984eb07ba88f0feb2a52c0ee510549 | /备份/1804爬虫/爬虫文件/第三天 (1)/mzcookie_opener.py | c7d9dc7b5c5721f122a7802a30b94c735c19698d | [] | no_license | 1615961606/-test | 5eae5cab4e82136ecf8f4cbdb9990c3bb9e4839f | 81a822d303a07310dafe2af612f932d9f34503c3 | refs/heads/master | 2020-03-19T01:07:01.851584 | 2019-04-08T10:54:35 | 2019-04-08T10:54:35 | 135,523,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | #有时候我们需要将获取到的cookie保存在本地文件中,
# 我们需要使用到MozillaCookieJar
from http import cookiejar
from urllib import request
#1设置一个文件名,将cookie保存在这个文件下
filename = 'cookie.txt'
#2.创建一个cookiejar对象,用来管理和存储cookie
mz_cookiejar = cookiejar.MozillaCookieJar(filename)
#3.创建一个HTTPCookieprocessor处理器对象,管理cookiejar
handler = request.HTTPCookiePr... | [
"c1615961606@163.com"
] | c1615961606@163.com |
19f978c7ec7833ea27b68bf101b917f2fbc6e14e | eac4c6efb63446193305bef5c86294daf2e51427 | /bot/tasks.py | a7084b6eda1218861e9c5ededfba717de0a46d7a | [
"MIT"
] | permissive | smrf1093/boardroom-telegram-bot | 5b8b355e277cc3e1a061202058d8d8b0f65a489d | 1499287dd1a292fc4c7765d4d526f653d3c91a1d | refs/heads/main | 2023-08-07T15:29:28.351726 | 2021-09-16T07:45:39 | 2021-09-16T07:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,370 | py | from datetime import datetime
from hashlib import sha256
import json
from typing import Any
from celery import task
import redis
import telegram
from telegram import InlineKeyboardButton
import yaml
from bot.handlers.boardroom_api_client import BroadroomAPIClient
from bot.handlers.bot import Bot
from bot.handlers.but... | [
"hhio618@gmail.com"
] | hhio618@gmail.com |
43d0eb0df43e30b3df136c5ae530f950599e059c | 7d9b3acfaca7dae831451b314ec5bab785883920 | /learning_about_articulation/tripodcontroller.py | 94268a141a12641145bb198d021f23f960d4043f | [] | no_license | ripl/sofa_getting_started | 4b8dd28f2f8ed449f219b46f1aabd26e48bffd0f | a53bab01358e270b784d60ae0dbb0419d4303c33 | refs/heads/master | 2023-01-29T15:38:48.816309 | 2020-12-03T18:48:09 | 2020-12-03T18:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | import Sofa
from tutorial import *
from splib.numerics import RigidDof
from splib.animation import animate
from splib.constants import Key
from tripod import Tripod
def setupanimation(actuators, step, angularstep, factor):
"""This function is called repeatidely in an animation.
It moves the actuators by tra... | [
"amackeith@uchicago.edu"
] | amackeith@uchicago.edu |
4ea705cf35d2c66e11c9dad7cbda764317f47d3c | 9edc36b8650f4da8e94158b01e5cddb1508d0e1a | /Hangman/main.py | dd08a356a7da289d49af97516b78b7135e912e30 | [] | no_license | Helabrak/Hangman | 16408990abadc669ab1781d23953c03f8fcaa7b7 | 591c0a2eeb3315a01e21ec2f598667983868e540 | refs/heads/main | 2023-06-02T13:43:57.988189 | 2021-06-25T13:56:17 | 2021-06-25T13:56:17 | 375,385,801 | 0 | 1 | null | 2021-06-14T13:14:19 | 2021-06-09T14:33:21 | Python | UTF-8 | Python | false | false | 629 | py | from utils.game import Hangman
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your s... | [
"noreply@github.com"
] | noreply@github.com |
fe9b544861f2e8263b1dea8c2a129d52c24d23b5 | eec6f1eb4c7cd775b974eb2186182240fe740e5f | /apps/funds/tests/test_api/__init__.py | 466938249246032b11021c8b5e85bae36c5cc206 | [
"MIT"
] | permissive | GiannisClipper/payments | 3c73a53c15aab87f8be1dc6912c88ead6f8b315d | 94e08144597b3f4cd0de8485edf3f5535aeb9da6 | refs/heads/master | 2020-08-04T06:54:43.687665 | 2019-11-16T10:00:01 | 2019-11-16T10:00:01 | 212,040,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | from django.urls import reverse
from funds.tests import FundsTests
from core.tests.test_api import APITests
ROOT_URL = reverse('funds:root')
BY_ID_1_URL = reverse('funds:by-id', kwargs={'id': 1})
BY_ID_2_URL = reverse('funds:by-id', kwargs={'id': 2})
BY_ID_0_URL = reverse('funds:by-id', kwargs={'id': 0})
LIST_URL = r... | [
"strunstrun@gmail.com"
] | strunstrun@gmail.com |
5024a2a7f4957aa6ab3acd88d72c74a6ddfd05f5 | 6b215717c944aef71cd63bcb486dc9afda3e46ba | /25.06.21/Catalan Numbers and RNA Secondary Structures.py | 9b12bed163b4abea54ba4cf673a7323e3f6b63f9 | [] | no_license | nikita494/BioInf | 61a5f3549f211e27950e0aa404f8ec2b8d7bc946 | 98dc020903edc0fdaa0cfef28accf437ba2c8020 | refs/heads/master | 2023-06-05T19:49:15.425638 | 2021-06-29T17:51:30 | 2021-06-29T17:51:30 | 381,425,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | #http://rosalind.info/problems/cat/
from Bio import SeqIO
POSSIBLE_EDGES = {'A': 'U', 'U': 'A', 'C': 'G', 'G': 'C'}
def cached(fun):
def cached_fun(*args):
if args not in cached_fun.cache:
cached_fun.cache[args] = fun(*args)
return cached_fun.cache[args]
cached_fun.cache = dict()
... | [
"nn494@yandex.ru"
] | nn494@yandex.ru |
6bc4ad6ab8e5bcc38ecc70274a150941384fc984 | 030693debf789e136db3f6813115d639c4776394 | /Problems_on_DS_and_Algo/balanced_equation.py | 1ab4bad3644299e65f43eea3c20ad1f344636eb1 | [] | no_license | soumilk91/Algorithms-in-Python | 713161aa7578b24102d2e870a88899f950f4cb80 | bead95e7b1bd8b270562e72fc297a302f30e371c | refs/heads/master | 2021-01-17T08:22:30.863858 | 2018-07-30T14:53:00 | 2018-07-30T14:53:00 | 83,884,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | """
Author: Soumil Ramesh Kulkarni
Question: Find if the given expression is balanced.
eg: {(3+5)*[5-3]} == Balanced because every opening bracket has a corresponding closing bracket and their position is correct
eg: {(3+5)[}] == Not Balanced because the position of opening and closing brackets is not corr... | [
"soumilk91@gmail.com"
] | soumilk91@gmail.com |
a8454ba423800670c11278f5cd42c1a5c4349738 | 75ab2f47f0a31e712f2168451414c03aa8b9e230 | /store/migrations/0026_auto_20201024_2351.py | f0c6226c0f36f0e71b3d4c29676181c9e7bbadee | [] | no_license | imaxaliev/TechnoHub | b369c9decf7a740132b3878e7e675a311ad8521e | c49e1ee2c62e7389eeb1053123cceb7dab6d83ca | refs/heads/master | 2023-01-27T13:52:53.356008 | 2020-12-13T13:30:06 | 2020-12-13T13:30:06 | 320,065,849 | 0 | 0 | null | 2020-12-13T13:30:08 | 2020-12-09T20:01:16 | JavaScript | UTF-8 | Python | false | false | 1,497 | py | # Generated by Django 3.0.8 on 2020-10-24 20:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0025_auto_20201007_2251'),
]
operations = [
migrations.AlterField(
model_name='order',
name='creation_date'... | [
"anxious-mind"
] | anxious-mind |
bfb3defb1bd2a98972ae6ccf5639f1562af73997 | f8d8fd41d46cd27fae88f0b25b64de38912acf0b | /config.py | 00f12c19a292be3bf00847f5e3bf07d3b8207bfa | [] | no_license | suyash1/notify | 3e2d8476fa0a057e6967329b544532e384287e73 | 298a66a3973a20003706508e8dceb7adaa16e142 | refs/heads/master | 2021-06-22T17:01:14.491805 | 2019-08-21T07:14:11 | 2019-08-21T07:14:11 | 203,305,207 | 0 | 0 | null | 2021-03-20T01:33:56 | 2019-08-20T05:23:08 | Python | UTF-8 | Python | false | false | 518 | py | '''
All the project configuration goes here
@Author: Suyash
'''
class BaseConfig(object):
'''
base configuraion common to all
'''
APP_NAME = 'Pre-Launch'
APP_VERSION = '0.0.1'
class DeveloperConfig(BaseConfig):
'''
Developer config goes here specific to dev envt
'''
pass
clas... | [
"suyash.srivastava@icflix.com"
] | suyash.srivastava@icflix.com |
1d615179de74153ade40cc98b022c227b1f39af6 | be881603d2bfdfe9cd325f866f384f5d5e451a33 | /werewolf/migrations/0005_auto_20170903_2253.py | ffdd88dd59fe91f9d785f9adf9a0f2dee13690c5 | [] | no_license | tuchang/arcadia19th | c6308a45e4829bdbbc20d4122a2989efda6f79bb | 89979b0d1a40cec28d76233e2fa6b7f853a13499 | refs/heads/master | 2020-11-30T17:33:08.163548 | 2018-09-01T08:26:04 | 2019-07-29T04:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-09-03 22:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('werewolf', '0004_auto_20170903_1946'),
]
operations = ... | [
"st09d23@gm.ibaraki-ct.ac.jp"
] | st09d23@gm.ibaraki-ct.ac.jp |
0e26073101df751e8d715c82ccaac37a322f3dc8 | 43ec1c06825a39c31b976906f7bded21c19b6019 | /google/cloud/talent_v4beta1/services/company_service/transports/grpc_asyncio.py | 32721d7b8b24d7c2b9346e0eda6240b2ea168341 | [
"Apache-2.0"
] | permissive | renovate-bot/python-talent | b70b036c9d5a6b2887ef428fca853940df067c4b | 0413f5114256b8a8c2c157b33aa0cbc1eb9feca5 | refs/heads/master | 2023-06-07T05:27:59.879356 | 2021-08-30T16:12:17 | 2021-08-30T16:12:17 | 238,039,237 | 0 | 0 | Apache-2.0 | 2020-02-03T19:01:22 | 2020-02-03T19:01:22 | null | UTF-8 | Python | false | false | 16,345 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
f832f81e49e1c70f75a87ad822f0a71408bcd878 | dc221edce0ad617aac3b9ad8f4f347ff84f56bf9 | /.history/env/sim_20200805143251.py | 242268c2da33aec8fc7e1b122fd06d49cdc6e028 | [] | no_license | zlm05170/cacontroller | 310014c83ecf130643230eba87990e635fe1575f | e76d2eb5d58d6adfe7823e0dcd0059027c52b6bc | refs/heads/master | 2022-12-21T08:05:58.315017 | 2020-09-23T11:45:07 | 2020-09-23T11:45:07 | 284,527,141 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | class Sim():
def __init__(self):
self.running = True
self.actor_list = []
def isRunning(self):
return self.running
def update(self):
for actor in self.actor_list:
actor.update()
def add_actor(self):
print(0)
sim = Sim()
while sim.isRunning():
... | [
"angelxx05170@gmail.com"
] | angelxx05170@gmail.com |
22acebc9454b91d6e1d29c887db23097e628ea00 | 18c2f5aaf7ff820b48659ccbb0085f48d8266d2e | /lfp_atn_simuran/recording_mappings/CanCSRCa.py | 726f96c4abaa983d3764206b17290bb1abbc9912 | [
"MIT"
] | permissive | cafalchio/lfp_atn | 4b156af0388da23bd73970a9fce1a3f63d87a477 | ae2166f9d0356adc7f5eb3726b39af2a129c89f1 | refs/heads/main | 2023-06-05T01:40:12.263716 | 2021-06-28T16:51:30 | 2021-06-28T16:51:30 | 339,232,594 | 1 | 1 | MIT | 2021-06-28T16:51:31 | 2021-02-15T23:12:23 | Jupyter Notebook | UTF-8 | Python | false | false | 2,521 | py | """
The simuran_base_params is used to initialize the
the simuran_params file in each recording data session
that is a child directory of starting directory.
This should contain information about the recording,
such as the number electrodes in the recording.
"""
def setup_signals():
"""Set up the signals (such a... | [
"seankieran.m@hotmail.com"
] | seankieran.m@hotmail.com |
478663d8b84ec9fc2f4332bd2e172fd5c729194d | 01786e5d2a46c0e5958d5caedaed780f04d2fc9d | /Main.py | 674c8fd3530f1f310db07f6180f920106ccf9fa4 | [
"MIT"
] | permissive | lockwoodgary/TopCoder_TokyoBusRoute | 34787952981e7776cf43a6192eb2e78ace458049 | 3fd00200ad477ad5e1d568a9a26b6dfb2cd981e0 | refs/heads/master | 2022-03-12T03:58:33.228464 | 2019-10-03T01:21:11 | 2019-10-03T01:21:11 | 212,474,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,998 | py | import json
import pip
import sys
import subprocess
def install(package):
subprocess.call([sys.executable, "-m", "pip", "install", package])
install('numpy')
install('pandas')
install('matplotlib')
import numpy as np
import pandas as pd
from matplotlib import path as mplPath
import matplotlib.py... | [
"noreply@github.com"
] | noreply@github.com |
d8458f6e25f605602bc2ada1071b2c5365b26943 | 54c08823016949aa23ff1d372cf70778e6f88758 | /raylab/policy/model_based/sampling_mixin.py | bea9c129c44620da8d861320dda315db82a141cb | [
"MIT"
] | permissive | jCrompton/raylab | b4d41c446bc4d8d9ea42ebfdfad59c61956bfe98 | 9773d6fb942c06c65fe5297a8275f86649966abd | refs/heads/master | 2022-11-05T21:59:06.704075 | 2020-06-08T15:36:20 | 2020-06-08T15:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,338 | py | """Environment model handling mixins for TorchPolicy."""
from dataclasses import dataclass
from typing import List
import numpy as np
import torch
from dataclasses_json import DataClassJsonMixin
from numpy.random import Generator
from ray.rllib import SampleBatch
from torch.nn import Module
@dataclass(frozen=True)
c... | [
"angelolovatto@gmail.com"
] | angelolovatto@gmail.com |
88c81310c694092a2f288b858519b4dc9d54fdca | 0b38b3d237044b605a519e1aadb298e254c96a6a | /app.py | 98eaa7437e240c19d9f07fb20498e32121e58693 | [] | no_license | imapex/boilerplate | 100355bec3414bd0874fc47e5ff8cdad4464b054 | 810a2de2ceb6120dd57a64324c6b8581113d348f | refs/heads/master | 2023-02-03T19:54:25.074233 | 2019-08-22T15:13:21 | 2019-08-22T15:13:21 | 64,156,013 | 2 | 4 | null | 2023-02-02T06:13:08 | 2016-07-25T17:53:14 | HTML | UTF-8 | Python | false | false | 862 | py | from flask import Flask, render_template, request
from flask_restful import Api
from views.topology import topology
from views.dashboard import dashboard
from views.device import device_list
from views.patterns import patterns
from api.device import Device
from api.topology import Topology
app = Flask(__name__)
api = ... | [
"kecorbin@cisco.com"
] | kecorbin@cisco.com |
2f4e406f9f5837bc009df3d31a95a101765efba3 | b8a2cb1d6996f46e541e9f3a387feb3e27e39fdf | /greedy/huffman_codings.py | 7cd3fdc6a0d3b7602053f4da8f51b95140b9a9f5 | [] | no_license | TDress/py-algorithms | 489dba40442cd84e10d52d30a843bb660c4e522d | c851a79955130f7cc09943654efcc2ffe3ea69d6 | refs/heads/master | 2018-09-29T14:07:11.584501 | 2018-07-24T14:56:14 | 2018-07-24T14:56:14 | 113,503,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | from lib import assertion
from data_structures.HeapPriorityQueue import HeapPriorityQueue
from data_structures.LinkedBinaryTree import LinkedBinaryTree
# Value to use for internal nodes of the huffman tree (in place of a character).
INTERNAL = 'INTERNAL'
def frequencies(S):
"""Helper function for creating a frequ... | [
"Thomas.Dressler1@gmail.com"
] | Thomas.Dressler1@gmail.com |
f775a3ddda1d9c0cd465722424efcb08afc3d637 | 7d30d729921f1deb3a407deb24ca23a98b161cad | /utils/tests_fetcher.py | cdc79f371163ca5c84fe907f441bb223b0ca5f5d | [
"Apache-2.0"
] | permissive | lockon-n/transformers | 80933a4205d92d03c1d128bb64a1efd4781986c5 | 518dd1277efdf0c5561565cfcb08ef82c631cde2 | refs/heads/main | 2023-03-16T14:12:57.270878 | 2022-05-16T12:17:25 | 2022-05-16T12:17:25 | 238,400,408 | 0 | 0 | Apache-2.0 | 2020-02-05T08:19:06 | 2020-02-05T08:19:05 | null | UTF-8 | Python | false | false | 25,794 | py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
d5cef2e00f454fd9f411fdcf13e2d4e8683f9b11 | d5b8de22c7098d8ecae20a4b1beb55feaee1816e | /src/tools/crowd/upper_bound_analysis.py | 1cae9076aada34949e095cee166c45533469bf4b | [] | no_license | ywzcode/AML-Project | 451ffe433a07690bc28d6465118f787c25e9398c | c9b019c42bf69a8887e49217eb5271dc0279c46e | refs/heads/master | 2020-08-03T09:46:26.797954 | 2019-09-30T15:48:03 | 2019-09-30T15:48:03 | 211,707,083 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,989 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import _init_paths
import os
import json
import cv2
import numpy as np
import time
#
from datasets.dataset_factory import dataset_factory
from opts import opts
from pycocotools.cocoeval imp... | [
"yinwen312@icloud.com"
] | yinwen312@icloud.com |
19ce787c0187e571741c9be4fbdd0617ea82340c | 55ab2e75bcdd44766e14efb339ddfd0b9fdeb474 | /tensornetwork/block_sparse/linalg_test.py | dea6bc0f81266bada4fe15dbd3d53fb235557aab | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | marine008/TensorNetwork | 732c5ca7dec8dac28a40884d06ef392110ac6945 | 46be7df93bcaf7fc95cd09c9a3210db9e63098f1 | refs/heads/master | 2022-12-05T06:53:40.264321 | 2020-09-04T06:32:52 | 2020-09-04T06:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,782 | py | import numpy as np
import pytest
from tensornetwork.block_sparse.charge import (U1Charge, fuse_charges,
charge_equal, BaseCharge)
from tensornetwork.block_sparse.index import Index
from tensornetwork.block_sparse.blocksparsetensor import (ChargeArray,
... | [
"noreply@github.com"
] | noreply@github.com |
e35f76e578a9be895bc6fe5bd17d24525b6c2d83 | 5ae01ab82fcdedbdd70707b825313c40fb373fa3 | /scripts/charonInterpreter/parsers/MaterialBlock/IncompleteIonizationDonor/charonLineParserIonizationEnergy.py | 2ef6d351a57e960f50d56e19dfefba626502aca9 | [] | no_license | worthenmanufacturing/tcad-charon | efc19f770252656ecf0850e7bc4e78fa4d62cf9e | 37f103306952a08d0e769767fe9391716246a83d | refs/heads/main | 2023-08-23T02:39:38.472864 | 2021-10-29T20:15:15 | 2021-10-29T20:15:15 | 488,068,897 | 0 | 0 | null | 2022-05-03T03:44:45 | 2022-05-03T03:44:45 | null | UTF-8 | Python | false | false | 5,602 | py |
from __future__ import print_function
import copy
class charonLineParserIonizationEnergy:
"IonizationEnergy parser"
def __init__(self):
# Register the parsing keys
self.parserName = "IonizationEnergy"
self.parsingKey = "ionization energy"
self.parsingKeyOptional = []
... | [
"juan@tcad.com"
] | juan@tcad.com |
f5cae6c0fbd9b77938034ddb756e6d62c252712d | d9483c6e3b58e4b12865e4211eedd538d73563a8 | /weather_deshboard/dashboard/views.py | e2124cb6c928b6d9bd6235d4b18205bd758a1d33 | [] | no_license | mst101097/Weather_dashboard | 48c025f3bb089f66da9449b49f9669fb0a49ba6a | f8ef58a2aed4a2caf6158f9e58b831903636324f | refs/heads/main | 2023-02-05T15:40:15.669213 | 2020-12-28T09:25:11 | 2020-12-28T09:25:11 | 324,966,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | from django.shortcuts import render
from django.http import HttpResponse
from .forms import CityForm
from .models import City
from .helper import get_weather_data
# Create your views here.
def home(request):
form = CityForm()
if request.method == 'POST':
form = CityForm(request.POST)
if form.i... | [
"singh.1097.mohit@gmail.com"
] | singh.1097.mohit@gmail.com |
7a931973374055e17434ab14e669de6c173dd22e | 95be6dd58574688bc0725bca659d1872b0ee31ab | /main.py | 17500e9f9b90392fba51c877dceb979b066651d2 | [] | no_license | kfash/hero-might-and-magic-old | 260c15006f402346614037d63bc1d76cdc070201 | 5490faa66b701ac32ca18927a5386daf4877737f | refs/heads/master | 2020-09-29T15:51:22.061517 | 2019-12-10T08:39:10 | 2019-12-10T08:39:10 | 227,067,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py |
from Hero import*
from magic import*
from interface import*
from unit import*
import time
def start():
global hero_1
global hero_2
global units_1
global units_2
global all_units
hero_1 = hero()
hero_2 = hero()
units_1 = []
units_2 = []
for i in range (1, 7):
un = melee... | [
"noreply@github.com"
] | noreply@github.com |
0c61bf946290c9f29985a24c5d3dfeb69ba61c5e | 533aae7f57e0d4441dc194e17cba861ae844145f | /test/dlc_tests/ecs/mxnet/inference/test_ecs_mxnet_inference.py | 83da18729a9c77d8d1be6e440322fa54a19fb16b | [
"Apache-2.0"
] | permissive | bfscapital/deep-learning-containers | b82b339c9db82f7b318a5b0b33486502b3719c90 | 8be8f1d77d1054141fc4504d41ad349b9a5bfc26 | refs/heads/master | 2022-11-23T17:48:07.243888 | 2020-07-24T20:43:25 | 2020-07-24T20:43:25 | 282,283,260 | 0 | 0 | null | 2020-07-24T17:50:26 | 2020-07-24T17:50:25 | null | UTF-8 | Python | false | false | 4,429 | py | import pytest
import test.test_utils.ecs as ecs_utils
import test.test_utils.ec2 as ec2_utils
from test.test_utils import request_mxnet_inference_squeezenet, request_mxnet_inference_gluonnlp
from test.test_utils import ECS_AML2_CPU_USWEST2, ECS_AML2_GPU_USWEST2
@pytest.mark.parametrize("ecs_instance_type", ["c5.18xl... | [
"noreply@github.com"
] | noreply@github.com |
84442f858cf23a277156002041062239855c2fd2 | b8fe7c1769a274964d289d05c1594f2d9f702560 | /devel/lib/python2.7/dist-packages/mavros_msgs/msg/_Param.py | f381bb69fd314372e108aa5a3242a0ff31759278 | [] | no_license | amilearning/mavros_ws | f3f19c98562cb6fab00e3735b5798dc8fc65652f | b822676abb0a36fe34f7e4064a162db0ddd75fe5 | refs/heads/master | 2023-06-30T08:27:45.134723 | 2021-07-16T06:52:35 | 2021-07-16T06:52:35 | 386,538,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | /home/hojin/drone_ws/ethz_ws/mavros_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_Param.py | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
d438f3168a5323bf67a09fe407b3545cf86b9c57 | 0c6f664ba0d45fb7a4fe8b90fe1d8e8140107caa | /toolkit/datasets/otb.py | 16da34c8c4dedea8dfd7093c20d0b20fb95ad22e | [
"Apache-2.0"
] | permissive | ZZXin/ta-siamrpn | 82caf688356e2f3112cb6ff32ba5d3ba545f1f44 | 89f79953225006ff15719ac0d4e35755505fd95b | refs/heads/master | 2022-12-18T11:53:51.215373 | 2020-09-23T06:59:30 | 2020-09-23T06:59:30 | 297,878,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | import json
import os
import numpy as np
from PIL import Image
from tqdm import tqdm
from glob import glob
from .dataset import Dataset
from .video import Video
class OTBVideo(Video):
"""
Args:
name: video name
root: dataset root
video_dir: video directory
init_rect: init rec... | [
"ZZXin00016@163.com"
] | ZZXin00016@163.com |
1c1bcf30733075771513d13705f0634f918e2b6a | d534c39e479e114b961af2d2741085d0777e4bd3 | /python_prac_learning/tutorials/button.py | 388576d33013448864939b6d9e913e4a4de74c3e | [] | no_license | sarfarazkhan007/github_sarfaraz | 7a99dbbdc36b8830a5632b72e45f582857375ffa | ff2006cb01591f53dd7e8bb3e1ab1df1aaf83d17 | refs/heads/master | 2021-07-08T17:47:41.743330 | 2017-10-05T03:02:22 | 2017-10-05T03:02:22 | 105,843,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import os
import tkinter
# clear the screen
os.system("clear")
#tkMessageBox.showinfo( "NTAL EXP 1", "Enter your choice from the menu: \n1) dig \n2) whois \n3) ping \n")
inp = input("Enter your choice from the menu: \n1) dig \n2) whois \n3) ping \n")
#if (inp == "3"):
#target = raw_input("Enter the url or ip addre... | [
"sarfarazkhan00720@gmail.com"
] | sarfarazkhan00720@gmail.com |
3b41a58b2b71aad818e0551a1a63dd66bbc6e21b | 87c5898d591ab6ef6701a763c2c79d028c335ee3 | /src/scavenger/schedule/adaptiveprofilingscheduler.py | ba1707c2e0deb1046b329d7ab0290e11429d0c35 | [] | no_license | madsdk/scavenger-library | b08b8daa3e2be6c002bff5a613a92356fc5cfa5a | 02fa97950caa8df66f8de383348555a0e5e014ce | refs/heads/master | 2020-06-08T20:23:26.838451 | 2010-12-09T14:08:01 | 2010-12-09T14:08:01 | 1,135,193 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,682 | py | """
This is the adaptive profiling scheduler that adapts its scheduling information
to the user defined expression given in the decorator. The developer may thus
designate that running time varies with the size or value of one or more inputs.
"""
from __future__ import with_statement
from scheduler import Scheduler, S... | [
"madsdk@gmail.com"
] | madsdk@gmail.com |
f97649e91f29132d6817af44d97041b4b29d7814 | 9692f529e44ecfaa7aff358048aa873a24e362ae | /web/post_taobao.py | 28d695ddddf5f27320c5db37bd98e1e4f19c5094 | [] | no_license | ytf513/python_code | 2b8c86a23724fcd81b2dabe8d58238c7be0e59c5 | 94c56927f090f2b01814c56c6320fd0de02ec2a2 | refs/heads/master | 2021-01-10T21:55:40.663689 | 2017-12-15T09:17:18 | 2017-12-15T09:17:18 | 35,019,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | import urllib
import urllib2
def get_taobao_api_data(app_para_dct):
content = ""
if app_para_dct:
para_dct = {}
para_dct['a'] = 'a'
para_dct['b'] = 'b'
url = """http://gw.api.taobao.com/router/rest"""
para_data = urllib.urlencode(para_dct)
f = urllib2.urlopen(url, para_data)
c... | [
"ytf513@gmail.com"
] | ytf513@gmail.com |
992b7069029519092d72456201574267601b14b1 | 6f6b74b1a33fdbd727c7a14592037dd6ee05e538 | /app125.py | 31c63fad2a6426e2dfeebbec99729c7bc3bdec42 | [] | no_license | AayushiRockz/PRO-C125-MODEL-VIEW-CONTROLLER | 13c15f7b8a82ba5ce8f11633e4be5c596dc526ec | 466306ebe02683767bfbac21626abc76f7b48b2f | refs/heads/main | 2023-06-26T13:52:59.519593 | 2021-07-16T04:36:08 | 2021-07-16T04:36:08 | 386,509,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from flask import Flask , jsonify ,request
from PRO125_classifier import get_prediction
app = Flask(__name__)
@app.route("/pred-alphabet",methods=['POST'])
def predict_data():
image = request.files.get("alphabet")
prediction = get_prediction(image)
return jsonify({
"prediction":predi... | [
"noreply@github.com"
] | noreply@github.com |
7b467a5ce495f0c34fd90554a6137aa7533ec5b5 | c7ee5fc80b586ca779c17bff472ce483ef49044a | /week10/Hackerrank/splitandjoin.py | e50dd4f144232bc0a53d3caf7bc41824b522d2a6 | [] | no_license | sarsembin/webdev2019 | 3507ed52cef3a0d37e26c545b65b433e3f7f3e4d | faf1b4933b5527df4370adc5c7eecf8ca25c6e1c | refs/heads/master | 2020-04-19T09:24:16.842015 | 2019-05-14T04:28:45 | 2019-05-14T04:28:45 | 168,109,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | def split_and_join(line):
line =line.split(" ")
line = "-".join(line)
return line
if __name__ == '__main__':
line = input()
result = split_and_join(line)
print(result) | [
"daur2000@gmail.com"
] | daur2000@gmail.com |
ccc930872db9b84576dba7d79eab40da04985f9b | 3b3da9d7d9022f9a91b7bd9b7ace8a7464664975 | /aoc_21_1.py | 12d32120fab97bbcd686a38701b266b6d0acef81 | [] | no_license | Showherda/aoc2020 | 4623d53101befb282c126118e92aeb2cf3a149bf | e44d2f32bc5fdc261d9fd64660b94a3abc893562 | refs/heads/main | 2023-02-01T16:13:51.841184 | 2020-12-22T08:40:58 | 2020-12-22T08:40:58 | 319,851,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | f=open('input.txt')
alr={}
evr=set()
cnt={}
for v in f:
i=v.index('(contains ')
tmp=v[i+10:].split(',')
for c in v[:i].split():
evr.add(c)
cnt[c]=cnt.get(c, 0)+1
for c in tmp:
try:
alr[c.strip(' ,)\n')].append(set(v[:i].split()))
except:
alr[c.strip(' ,)\n')]=[set(v[:i].split())]
pss=set()
for u in al... | [
"noreply@github.com"
] | noreply@github.com |
6cde22ca76794bdc0861913673bb979d11961795 | 9dfa39949f320d415614496464d688e43515ba31 | /post/migrations/0014_auto_20181229_0257.py | cd8036a49507a318de8a8f52da877ea0c4156c36 | [] | no_license | mfurkanyuceal/Django-myBlog | 4c35f6ee62f4797da3d4de03c4c8be9e774f5bf9 | d5605c825b727bc4588d06be2eeffe65432f90e7 | refs/heads/master | 2020-04-29T07:28:12.584370 | 2019-03-16T10:09:22 | 2019-03-16T10:09:22 | 175,953,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # Generated by Django 2.1.4 on 2018-12-28 23:57
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('post', '0013_auto_20181229_0056'),
]
operations = [
migrations.AlterField(
model_name='post',
name='c... | [
"furkanyuceal58@gmail.com"
] | furkanyuceal58@gmail.com |
5894f692c5bb6e9cfcaf2b2d6ac89820ae3c166c | 28fee073bb990ed67e023c87fafb8baf035f09eb | /02/d02.py | 654c3d08970413a4eddd9f0bf217b86002e3a974 | [] | no_license | Leftfish/Advent-of-Code-2019 | 26073a4907e2c741b63921fb03238ad41a831db1 | 5806589f9deba2b19a7bb5f8715874c37c3cce41 | refs/heads/master | 2020-09-25T02:20:54.032881 | 2020-01-01T20:01:06 | 2020-01-01T20:01:06 | 225,896,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | print("Day 2 of Advent of Code!")
def is_opcode(code):
return code == 1 or code == 2 or code == 99
def execute(commands, pos):
code = commands[pos]
if is_opcode(code):
if code == 1:
a, b, c = commands[pos+1], commands[pos+2], commands[pos+3]
commands[c] = commands[a] + comm... | [
"bohdan@bohdanwidla.pl"
] | bohdan@bohdanwidla.pl |
7d41b30ed78b8b2b0274008e2dd827b812ad3c4b | 69e6c93e5d9cc0ad3fcc8d595aff95c71609f13e | /tests/test_nh_32bit.py | 2fe18a2a1d465780ee3c2bc08a8405deba44d4fa | [
"GPL-2.0-only",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | atsgen/tf-vrouter | 2d27e233774bc5116e964c403f3332df7633afc7 | c95daa24744bdeb4839f63ebd057552f18404171 | refs/heads/master | 2023-02-16T15:37:58.986288 | 2021-01-15T06:45:23 | 2021-01-15T06:45:23 | 290,211,517 | 0 | 0 | BSD-2-Clause | 2020-08-25T12:40:00 | 2020-08-25T12:39:59 | null | UTF-8 | Python | false | false | 3,288 | py | #!/usr/bin/python
import os
import sys
sys.path.append(os.getcwd())
sys.path.append(os.getcwd() + '/lib/')
from imports import * # noqa
# anything with *test* will be assumed by pytest as a test
class TestNh32(unittest.TestCase):
@classmethod
def setup_class(cls):
ObjectBase.setUpClass()
O... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
3b83fe21a415f165de630e3cc722bd0f13440d18 | e7a880109066a74765c3a40cb5e12fb6b82713ce | /kew_editing/front/urls.py | 2d3897290764f8627da39e83ace484d611880a79 | [] | no_license | hybridsteve/kew_editing | 5c1b533bfa457ffd53c5412ad78d28ff68394ef0 | 0ec55e8c73517290bc600a43b832942e9687cf5a | refs/heads/master | 2020-04-19T21:37:23.669053 | 2013-08-19T06:48:36 | 2013-08-19T06:48:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('front.views',
# Main site patterns:
url(r'^$', 'home', name='kew_default_home'),
url(r'^home', 'home', name='kew_target_home... | [
"stephen.wagner@hybrid-learning.com"
] | stephen.wagner@hybrid-learning.com |
2bfb92e971e49dd8f9155f22e38bd47bb23d8394 | 44d1e6fdf130974f828981d815dc0f2ada1130db | /manage.py | f5508e0364502791092bc9eb2c685ccb0f116091 | [] | no_license | liqd/django_zbp | d889e2822790965b40e97df1e34e8f53cbdcb25c | 82c7f2fa2e688d2f4dbb65fadc32bb119f219e90 | refs/heads/main | 2023-08-31T05:19:18.401075 | 2023-06-14T16:42:28 | 2023-06-14T20:12:11 | 54,026,786 | 1 | 1 | null | 2023-09-14T16:56:36 | 2016-03-16T11:39:05 | Python | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_zbp.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"magdalenanoffke@puschel.speedport_w_921v_1_39_000"
] | magdalenanoffke@puschel.speedport_w_921v_1_39_000 |
be1359b70184d1e64a11f018283a5e2a63db6e37 | da08aecb8644b9c5807b4224c431978a4c3b22de | /EMSXFullSet_Python/EMSXSubscriptions.py | 691e0a9bb58af06cb54fb68b14c7af087b19f3c5 | [] | no_license | christianreimer/emsx_api_repository | 9382f9d9ca3db9aee5c86fb8e69455167c06ddd2 | a9682f0e372095501332c064ce0d3e67b86207b2 | refs/heads/master | 2021-01-18T03:13:02.045035 | 2017-03-21T01:04:42 | 2017-03-21T01:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,337 | py | # EMSXSubscriptions.py
import blpapi
import sys
ORDER_ROUTE_FIELDS = blpapi.Name("OrderRouteFields")
SLOW_CONSUMER_WARNING = blpapi.Name("SlowConsumerWarning")
SLOW_CONSUMER_WARNING_CLEARED = blpapi.Name("SlowConsumerWarningCleared")
SESSION_STARTED = blpapi.Name... | [
"terrence.kim@gmail.com"
] | terrence.kim@gmail.com |
95d1074bd31e768504afb22ad76d8b1591ba9d0e | 36ec7aee200e3116b48b57779be79bf114d5de60 | /catkin_ws_paulischmidt/build/bline_detection/catkin_generated/pkg.installspace.context.pc.py | 357eb18570210434c55ae2f1b3665eef85ff0041 | [] | no_license | MarcelSchmidt89/RobotikWS19 | 1742629595442968651fffa0f82977320fb2ae02 | 5c8263a8a7ee88e64eaf6c99d291a684db81ae69 | refs/heads/master | 2020-08-18T08:07:28.107706 | 2020-01-24T14:22:40 | 2020-01-24T14:22:40 | 215,767,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "bline_detection"
PROJECT_SPACE_DIR = ... | [
"hiyop@live.de"
] | hiyop@live.de |
141cdf073eba87447e04afe683e7d304141d170d | 10920b11a22a20f9a7f63157818327f3c4e41888 | /Final_Project_BIR/Robot_arm/demo_002.py | 1a17f31ef610acdfaaa212131cad6479e3b77a34 | [] | no_license | dsall/computerv | e331b3d025c8cec0119b789107d1fef18d08f02a | 40671d618c31ad9d9b20fc902a218a8e281098bc | refs/heads/master | 2021-09-15T09:33:08.495580 | 2018-05-29T23:41:42 | 2018-05-29T23:41:42 | 135,363,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | import numpy
from arm import Arm
from board import Board
a = Arm.connect()
b = Board.connect(verbose=True)
while 1:
pot = b.get_pot()
pho = b.get_photo()
fx = round(numpy.interp(pot, [0, 1], [190, 210]))
fy = round(numpy.interp(pot, [0, 1], [-200, 200]))
fz = round(numpy.interp(pot, [0, 0.5, 1], ... | [
"djiby45@outlook.com"
] | djiby45@outlook.com |
ab4bf069e0ff12936faff9bab15b3ba3b8c52727 | 4f360520a5824e4d3236ec1cf35a97ecf366ccef | /python_write_excel_to_mysql.py | cee0e8bcbbde032a0d1e183a25dc9d5a4b29ba03 | [] | no_license | danxinzhujian/python_excel_sql | 04d9fdb971e0f0667765f22f7800960064d35ad2 | c22204077447eee1917b5fb4a4a3d431c0a48c7a | refs/heads/master | 2021-07-23T04:13:56.210763 | 2021-07-21T04:21:17 | 2021-07-21T04:21:17 | 237,753,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,391 | py | # -*- coding: utf-8 -*-
import xlrd
import pymysql
import threading
import datetime
import os
import re
# 生成用于生成数据库表的sql
def generate_create_table_sql(column_name_list):
table_sql = 'create table table_all ('
if len(column_name_list) > 0:
table_sql = table_sql + column_name_list[0] + ' va... | [
"noreply@github.com"
] | noreply@github.com |
8628a60c63271cc8c37d919d431b24d0afe95d45 | d0389779076006aad5e5a35ba74cf58340c9c374 | /MulseMedia/Olfaction_Haptic Detection/Testing.py | 419c5e3b368d2eeb21b56f4691833f33d537f9c6 | [] | no_license | sextonj5/Automatic-CNN-based-Enhancement-of-360-Video-Experience-with-Multisensorial-Effects | b627e9dced2bdf8bc55e1477e79430058cb84bea | df88bf29bb2696b6c1c5387b9f1e504908f4af27 | refs/heads/main | 2023-07-25T07:47:39.211504 | 2021-08-25T22:08:41 | 2021-08-25T22:08:41 | 399,589,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,248 | py | import torch
from torch.autograd import Variable as V
import torchvision.models as models
from torchvision import transforms as trn
from torch.nn import functional as F
import os
from PIL import Image
import winsound
correct = 0
incorrect = 0
total = 0
right = [243, 48, 342, 279, 319, 151, 112, 167, 19... | [
"noreply@github.com"
] | noreply@github.com |
37b53d420486df7030ee6727a9bb4e5d031b98de | d5463d1efdf17941ca3fd79ef106a3db9be48fbc | /booktest/admin.py | 61b22a340409278043c70630021506ed840b0214 | [] | no_license | holyzhang1314/test11 | 8d81a408f67bbd010c15429eecfe70ce82ab60c8 | 24f927a87d4e96a0a5632e73408c9c5abce5c8ab | refs/heads/master | 2020-03-19T00:13:35.110758 | 2018-05-30T15:39:18 | 2018-05-30T15:39:18 | 135,464,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from django.contrib import admin
from booktest.models import BookInfo,HeroInfo
# Register your models here.
class BookInfoAdmin(admin.ModelAdmin):
list_display = ['id','btitle','bpub_date']
class HeroInfoAdmin(admin.ModelAdmin):
list_display = ['id','hname','hgender','hcomment']
admin.site.register(Boo... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
1b2cdbc008eeca3c2ee2c654507b359c7b04f98b | 20f69fe1bfab6784808bf3b06ab43c733a1b0b5d | /connector.py | d06990d484f317d8b0c5394f381051873b1ccf94 | [] | no_license | artfadeev/aprilContest-localrunner | 419a510c4046f3f7183e179a5a325b6982be92e7 | 04e62c8eb04c16b58a025459b38c3d3a112b36d5 | refs/heads/master | 2020-05-03T06:22:41.132441 | 2019-06-29T20:41:47 | 2019-06-29T20:41:47 | 178,471,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from subprocess import PIPE, Popen
class Connector():
def __init__(self, command):
self.process = Popen(command, stdin=PIPE, stdout=PIPE)
def write(self, message):
try:
message = '{}\n'.format(message).encode()
self.process.stdin.write(message)
self.process.... | [
"noreply@github.com"
] | noreply@github.com |
a0a502804a0a586196a6908d5aaf11ca39db16b0 | 45d18bc33216ff712a08c17cf78a2bc5c8656c53 | /Utilities/MS_UT_Stack2Dir.py | a6533118b46e76f56bec90a679a74b2a3469e5cd | [] | no_license | JaneliaSciComp/MetaSegmenter | 5fe6329c4b52f8aaa5d62cf114b1a9b8206ce17a | 6db3e8e26677b49be999773daee6ea475985df55 | refs/heads/master | 2021-08-11T13:04:54.513331 | 2017-11-13T18:50:20 | 2017-11-13T18:50:20 | 29,359,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | #! /usr/local/python-2.7.6/bin/python
#
# Copyright (C) 2015 by Howard Hughes Medical Institute.
#
# Purpose: given a segmentation stack,
# produce a directory of RGB files
import os, sys, re, h5py
import tifffile as tiff
import numpy
from skimage.morphology import label
from scipy.ndimage import measurements
from sk... | [
"denisovg@hhmi.org"
] | denisovg@hhmi.org |
cd06528d280db293ff86454a04722d9165ad5f64 | 108081171f5e9131f74c601ead7d55e48f7cbedd | /base/migrations/0003_product_image.py | 17ebcfcbe2592d6b6988f241a71f6d2a64e0829d | [] | no_license | ian038/django-react-supplement-store | d1afdcfcada226b726150a859017ec56b8f2fb62 | 734ab137068e11e4524a3782e12bf17e4fa9e689 | refs/heads/main | 2023-08-07T08:13:09.376212 | 2021-10-05T03:55:52 | 2021-10-05T03:55:52 | 412,133,453 | 0 | 0 | null | 2021-10-04T18:35:27 | 2021-09-30T16:08:13 | JavaScript | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.2.7 on 2021-10-01 16:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0002_order_orderitem_review_shippingaddress'),
]
operations = [
migrations.AddField(
model_name='product',
n... | [
"ianphua3@gmail.com"
] | ianphua3@gmail.com |
55cdab17ec901a8ffa6a81925a110187b10d8bae | 43160e9b2210fb20e479c2e5e5d3fd2bf2257f06 | /game/forms.py | 172c1e6ddb338e158b5c8383cbb0f85ef9250eef | [] | no_license | divilian/ack-wire | 60e7fdd9487502a9b497fc12150e7958e1b41640 | ead03b1409103493c67e90538411ef18ac49ba5e | refs/heads/master | 2023-05-26T14:57:08.649803 | 2020-04-03T13:41:08 | 2020-04-03T13:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.db import models
from django.forms import ModelForm
from .models import Game
class GameForm(ModelForm):
class Meta:
model = Game
fields = ['name', 'users']
| [
"nathan@theselfs.org"
] | nathan@theselfs.org |
b7ab6b965d93d7f35c0afff80685ffb4a1e42305 | f115984d89ee91e1fefa7bd0546f60db251dfee6 | /herg-real-data/fit-full2vclinleak.py | 4acedcf938ceadc4884a65115c703c0a6b52626b | [
"BSD-3-Clause"
] | permissive | CardiacModelling/VoltageClampModel | f483fc3ad2129f75e377df210b9b91b1cdcb7565 | f30271da75e3c70526e53fb51dc12b317ab3b714 | refs/heads/master | 2023-07-05T10:07:59.771334 | 2021-03-03T11:05:35 | 2021-03-03T11:05:35 | 227,666,074 | 3 | 0 | BSD-3-Clause | 2021-03-03T11:04:46 | 2019-12-12T17:58:13 | Python | UTF-8 | Python | false | false | 8,270 | py | #!/usr/bin/env python2
from __future__ import print_function
import sys
sys.path.append('../lib/')
import os
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import pints
import model as m
from parameters import full2vc
from parameters import full2vc_fix, full2vc_fix_typical_v... | [
"chonloklei@gmail.com"
] | chonloklei@gmail.com |
47396015b2690488e9061caecb1ed01578a5be1c | 9a735a775a2243f8f1582f52e462bd1f211ef778 | /fetch_qualtrics.py | 433527262de01e390487c7d04b2d50732a011220 | [] | no_license | aculich/qualtrics-scripts | a2e9fa82c5bd8d47c106461c5ea881859148bec6 | ba7070cedca79c692840f88ec1f5723a6fedaa38 | refs/heads/master | 2020-09-26T08:14:20.047388 | 2019-12-07T00:39:31 | 2019-12-07T00:39:31 | 226,213,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,727 | py | #!/usr/bin/env python
# configure saving to Google Drive
### We can auto upload the file to google drive
#from google.colab import drive
#drive.mount('/content/gdrive', force_remount=True)
#root_dir = "/content/gdrive/My Drive/"
#
import requests
import zipfile
import json
import io, os
import sys
import datetime
fr... | [
"aculich@gmail.com"
] | aculich@gmail.com |
fa3a1c7dc5841b9a1f6b5f0dc876c827ea15a115 | 9e84a433007ed4f6b2f9fc40f17a6fc5deb8603c | /frontbackend/Polaris/migrations_bak/0032_auto_20190514_1130.py | 5143de7c52d0c09775f5fb48da2b2e4d6aa5af9b | [] | no_license | wellwang1993/glbs | 8a654bcd2b5e06a823112b6f07f324753f8a1034 | a96cd8a949bfae06026c2b9f9fa2ec0230997932 | refs/heads/master | 2020-05-16T04:56:07.019399 | 2019-07-26T11:22:21 | 2019-07-26T11:22:21 | 182,794,117 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Generated by Django 2.1.2 on 2019-05-14 11:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Polaris', '0031_tb_fact_dnszone_info'),
]
operations = [
migrations.RemoveField(
model_name='tb_fact_view_info',
name='view_... | [
"root@localhost"
] | root@localhost |
c6aabf9bb04b6c5f151ac01e844bdefdc7b49cb2 | 6a2a4f97009e31e53340f1b4408e775f3051e498 | /Iniciante/p2139.py | 4fe3e0111f40176ba65920fe08df23ba24da9d0c | [] | no_license | rafacasa/OnlineJudgePythonCodes | 34c31f325cccb325f074492b40591ad880175816 | 030c18f9020898fdc4f672f9cc17723236e1271d | refs/heads/master | 2023-07-15T12:09:45.534873 | 2023-06-27T00:24:03 | 2023-06-27T00:24:03 | 250,595,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from datetime import datetime
while True:
try:
mes, dia = map(int, input().split())
data = datetime(day=dia, month=mes, year=2016)
natal = datetime(day=25, month=12, year=2016)
if data > natal:
print('Ja passou!')
continue
if data == natal:
... | [
"rafaelluizcasa@gmail.com"
] | rafaelluizcasa@gmail.com |
f9deb1dc5ce6c59443b706d26b0acf2b3b1c18bd | 91f675664006f0208bc78af422c6c5904effabe5 | /utils/textprocessor.py | b5b59ddd368f2aa1fe8de66a398424534029461e | [
"MIT"
] | permissive | rsolar/ftprop-nlp | 1a562ba3d7d68843cb495464f9e845b4c920715c | d51cb355c764110979cda26ee9b06f9a95521987 | refs/heads/master | 2020-03-17T20:54:51.325294 | 2018-06-04T14:12:55 | 2018-06-04T14:12:55 | 133,934,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | import re
from string import punctuation
from nltk.tokenize import casual_tokenize
from nltk.tokenize.casual import URLS
def clean_tweet(tweet):
tweet = re.sub(r"https?://\S+", "", tweet)
# tweet = re.sub(URLS, "", tweet)
toks = casual_tokenize(tweet, preserve_case=False, reduce_len=True, strip_handles=T... | [
"hwrlwhyq@gmail.com"
] | hwrlwhyq@gmail.com |
0ff63352251fa125ff1dc108accc2e3a87a60abc | 4230ef93b6345a0ff0aec59f7f80b7b5834f8f25 | /enti/database.py | 1e236ba2c101069231441f1a69234cc1722ed1b2 | [] | no_license | jrgoulet/enti | 259cac68b3c819de43c803cabb22a28484b3edc3 | 31f8c02f2f2f35956253e4935d9aae3e714697ee | refs/heads/master | 2020-03-10T08:39:02.624207 | 2018-04-17T14:18:59 | 2018-04-17T14:18:59 | 129,289,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,182 | py | # -*- coding: utf-8 -*-
import os
from contextlib import contextmanager
from time import sleep
from celery import Task
from sqlalchemy import create_engine
from sqlalchemy import event
from sqlalchemy import exc
from sqlalchemy.orm import sessionmaker, scoped_session
from enti.extensions import celery, log
from enti... | [
"jrgoulet@gmail.com"
] | jrgoulet@gmail.com |
0a245b54458469b01243464d6f75b5d93d0ab07e | 039640b3392e707c524cf77429ddeb8560313385 | /country_code_checker.py | 02799c93e2bb7030b4e00956caa97a2419ee7ac0 | [] | no_license | Mohammad-420/User_Account | 0c3f2a6cb075b8ece05b3ff23f3bae01d0808109 | e17a4789057b55cec94927649fb06cbfb94b2309 | refs/heads/main | 2023-06-12T22:34:46.028272 | 2021-06-29T09:11:29 | 2021-06-29T09:11:29 | 380,084,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | def getCountryCode(country: str):
if country.lower() == 'iran':
return '+98'
elif country.lower() == 'usa':
return '+1'
else:
return None | [
"noreply@github.com"
] | noreply@github.com |
91a65c63c15cb0bde63bf4673864e1a6d59e05f3 | becf6ce3fbe62eb29b43eb624514d834a1c3a03b | /pi.py | 0fff9b49c721af3e174b2dab1f49bcf163d34ed6 | [] | no_license | jcueto1998/chem160module2 | 140c020dbcb15714b64b43c54233efed0e559146 | a239e13756696d9c6da54ca70e54c0730b9d10a4 | refs/heads/master | 2022-12-09T23:42:27.605119 | 2020-09-06T21:09:46 | 2020-09-06T21:09:46 | 292,724,311 | 0 | 0 | null | 2020-09-04T02:02:42 | 2020-09-04T02:02:41 | null | UTF-8 | Python | false | false | 242 | py | import random, math
inside = 0
ntrials = 100000
for i in range(ntrials):
x=random.random()
y=random.random()
if (x*x+y*y)<1.0:
inside+=1
pi=4.*inside/ntrials
print("N=%d Error=%8.5f "%(ntrials, pi-math.pi)) | [
"noreply@github.com"
] | noreply@github.com |
3050b4d85af15ca45677912023d5350374ed9985 | 1e72a41284b6249f4ddd358ca5749946b508a1a2 | /carpoolapp/carpool/settings.py | 72d08776927b1a85b933d4b2a8e44a53a10b6975 | [] | no_license | ffavero/travelplan | d67f830096df9afb9605ee744a9c4b6829c9f27d | f7ee832513e0f462672f59f2c323b49969180571 | refs/heads/master | 2020-04-10T20:33:44.876383 | 2011-05-08T00:08:22 | 2011-05-08T00:08:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,550 | py | # Django settings for carpool project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
... | [
"francesco@blackmac.(none)"
] | francesco@blackmac.(none) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.