blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39d3c65e4d93784ae062ff36808bf9d14da2a29c | 3133bae8bc6cd35e81cba6a7695ee9a3831035e3 | /scenario_util.py | f282589c221ae71718a00b400aba36ffb55e0d07 | [
"Apache-2.0"
] | permissive | chrisgarcia001/Jepson-2014-2015 | 79e93f18fd5de107e852119ebd24274ae77947c6 | d257d5f66d82c31d884bf8be4513ff70420aa04b | refs/heads/master | 2021-01-17T07:33:53.862615 | 2019-06-18T20:35:43 | 2019-06-18T20:35:43 | 42,882,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,580 | py | # --------------------------------------------------------------------------------------
# Author: cgarcia@umw.edu
# About: This file contains utility functions and classes used specifically in
# running scenarios and generating result reports
# -------------------------------------------------------------------... | [
"chrisgarcia001@gmail.com"
] | chrisgarcia001@gmail.com |
15d7ea48d653c4315a963b1fbdfb91c15ea276e2 | b41e47e8cfad55bb7af75bc603b96968058e0163 | /logloader.py | 55eb63f504ef1613d9737db5555f1e154e735fa6 | [
"Apache-2.0"
] | permissive | xaviercallens/xLogReducer | bb4d2c59b648570741bd98a5107c83e3e748e5ba | 40005419022c02454eca7b027d76b99b3dfad543 | refs/heads/main | 2023-08-30T15:09:46.591898 | 2021-11-11T02:22:57 | 2021-11-11T02:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,656 | py | import sys
import pandas as pd
import re
import multiprocessing as mp
from itertools import groupby, count, chain
import numpy as np
import json
import os
import io
import time
class LogLoader(object):
def __init__(self, headLength, isMulti, headRegex, maxLength):
self.headLength = headLength
self.i... | [
"theweijy@gmail.com"
] | theweijy@gmail.com |
bb9d408626f63725098b97755d18a10ce482a59a | 162ef444a06fa20293f177411b9c04359eda7c87 | /azure_sensor.py | 1169564cb761570d6283b6465332857a8af224cb | [] | no_license | tonggehuang/Wavetronix_raw_info_pull | ffccfda7555f9c2008dfa3aa0a27f0ac620ef628 | 2dbe77b2e11d9c5b7c52e080db0e728c5ae03f9b | refs/heads/master | 2021-04-30T05:52:52.166997 | 2018-05-31T16:14:52 | 2018-05-31T16:14:52 | 121,428,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import os
import sys
import time
import urllib.request
from urllib.request import urlopen
import xml.etree.ElementTree as ET
import pandas as pd
import numpy as np
from numpy import nan
import csv
url = "http://reactorfeeds.org/feeds/stations"
request = urllib.request.Request(url, headers={"Accept" : "text/xml"})
con... | [
"tongge@iastate.edu"
] | tongge@iastate.edu |
1bc81292000ed7c0f0c42230c96b7d67c221d340 | d66daf048f77c6c1e1afda219d7ae7535d1e304d | /regex.py | 346d9e456c92b276b8b07f0acd1f6893e2b93641 | [] | no_license | a373690629/aid2008new | 3693ebf8add5194981a6a9a2589538f8398e5b41 | 362cc064def239a22e4b1f67f8f92d8dc554dc77 | refs/heads/main | 2023-01-23T15:57:20.369765 | 2020-11-27T12:15:14 | 2020-11-27T12:15:14 | 316,488,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | """
regex.py re模块 功能函数演示1
"""
import re
# 目标字符串
s = "Alex:1994,Sunny:1996"
pattern = r"(\w+):(\d+)" # 正则表达式
# re 模块调用findall
l = re.findall(pattern,s)
print(l)
# compile 对象调用findall
regex = re.compile(pattern)
l = regex.findall(s,0,12)
print(l)
# 按照正则表达式匹配内容切割字符串
# l = re.split(r'[:,]',s)
l = re.split(r'[^\w]',s... | [
"pengpeng@tedu.cn"
] | pengpeng@tedu.cn |
1b64fccb8e1ce49bc1d6132d58eb7f7fe9f2f8f4 | a85350f29dc8606a2618aa4d25da0a5399b7b860 | /app/app.py | 8251bf117b5a48430660e1a11e9327bf3e6e73ff | [
"MIT"
] | permissive | cvkumar/flask-ml-app | 0c57c8824712e912e72583891e97352d93e26203 | 8b00802b436b3429498fbbfdec9e4ed68d18f721 | refs/heads/master | 2020-03-27T00:11:38.799060 | 2018-08-23T19:55:11 | 2018-08-23T19:55:11 | 145,601,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,020 | py | import os
from flask import Flask
from flask import request
from flask import jsonify
from sklearn import svm
from sklearn import datasets
from sklearn.externals import joblib
from sklearn.model_selection import train_test_split
from uuid import uuid4
from datetime import datetime
import pony.orm as pny
import dat... | [
"kumarcal@grinnell.edu"
] | kumarcal@grinnell.edu |
2ce28c9741f1e29848d62927caff39bfc99158dc | 71a8a118b6389376805d290f2c3826f4802e40ef | /Macys/macys_main.py | 4d2fab5623bab4679ed2cc997b52b3c9a49b4eb6 | [] | no_license | nayanatharap/Forever21-Macy-s | 515489b872a21e3c0a7b7846bd253e012914f78e | 46b5dc426c445c7ce61cf83fcb052db922926db1 | refs/heads/master | 2020-03-19T14:44:13.239176 | 2018-07-06T02:26:31 | 2018-07-06T02:26:31 | 136,637,228 | 0 | 0 | null | 2018-06-16T19:47:07 | 2018-06-08T15:36:15 | Python | UTF-8 | Python | false | false | 5,241 | py | import bs4 as bs
from urllib.request import Request, urlopen
import macys_parse, json
import pandas as pd
import tqdm, time, os
import logging
import requests
exp_name = 'Macys_' + time.time().__str__()
logging.basicConfig(filename=exp_name + ".log", level=logging.INFO)
output_path = "./" + exp_name + "_da... | [
"noreply@github.com"
] | nayanatharap.noreply@github.com |
4f764adf3e826852a0a68cb380add6a7e7217da9 | 1b5184494d625dade6195eae0c46160077029108 | /lab2/suffix_tree_fast.py | 68a1abb696a7bd93a950427b601706bd1519d601 | [] | no_license | MatiXOfficial/Text-Algorithms | c5e40dd30b07bdc087527da037b883a3b048dabb | ed12a797f2ace962c1a67f8e04fcece36cbf648d | refs/heads/master | 2021-02-09T04:36:18.402412 | 2020-06-13T20:25:51 | 2020-06-13T20:25:51 | 244,047,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | class Node:
text = ''
def __init__(self, start=None, end=None, parent=None, depth=0, children=None):
self.start = start
self.end = end
self.link = None
if children is None:
self.children = []
else:
self.children = children
self.parent = p... | [
"mateuszkocot99@gmail.com"
] | mateuszkocot99@gmail.com |
7ce054927b3fc0f78d68e85c4844a342a9585343 | c49e8d7a1c0c245fd0edc604f5d7f7b1ce6f2ca6 | /Ciclo1/Unidad 1/Clases/Unidad 2/for.py | 9c823093a90b63f62094d6f0c345c7f774f25da0 | [] | no_license | mmedinar/FundamentosProgramacion | 71e7706e0218cba461f9d1f9306b3ff9a1f9d11e | c8539678b943b55f00b7877e9e1cd04eaa0cd271 | refs/heads/master | 2023-05-31T05:25:47.845896 | 2021-07-02T00:03:40 | 2021-07-02T00:03:40 | 382,183,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # for " variable" in "elemento iterable"
# pass
# for numeros in range(0,11):
# print(numeros, end= f'\n')
# x = ["manzanas", "peras", "bananas", "melones", "fresas"]
# for i in x:
# print(i)
# for pares in range(2,101,2):
# print(pares, end=' ')
# print()
# for i in range(65,91):
# print(f"{i}... | [
"mmedinar@gmail.com"
] | mmedinar@gmail.com |
b3078452785160519520e6a33bf24e1caf6d1245 | b4cb46c13705dad47531a898adacd95da3c36df6 | /polls/models.py | cf9f6631aa8e84711cc0cc6650914887ddfc93b3 | [
"MIT"
] | permissive | zhaogp/oxygen | 3912a8d8a6dc1494cfea60e117e8feff860c10ab | 2e11cb7c7ea2d533afbed51f9bb2de7ba19cfd31 | refs/heads/master | 2021-01-03T13:21:43.632290 | 2018-06-03T15:36:13 | 2018-06-03T15:36:13 | 100,777,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from django.db import models
import django.utils.timezone
import datetime
class Question(models.Model):
question_text = models.CharField(max_length=120)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def is_published_recently(self):
ret... | [
"zhaoguoping@jd.com"
] | zhaoguoping@jd.com |
9e520d57b80b500c66ebe24c19c9c823c4b24120 | e93fac3fdf589e7ba0ffa0a43b0b883ee4aa33b5 | /code/test2.py | 39048053d641464ba4c9f1ebe2bdf958f20a75d6 | [] | no_license | Alexanderkorn/A3-project | 6d1c2d66b5ab34f65781029d9e75c2eadd1927ff | e3a0c7c47a88cec3e3f21590ca46483199af05a5 | refs/heads/master | 2021-01-13T00:49:21.565076 | 2015-10-30T15:07:32 | 2015-10-30T15:07:32 | 44,971,434 | 1 | 1 | null | 2015-10-28T11:36:55 | 2015-10-26T13:52:05 | Python | UTF-8 | Python | false | false | 2,789 | py | __author__ = 'alexander'
#import mmap
#f = open('passwords.txt')
username=input("gebruikers naam:")
password=input("Wachtwoord:")
#s = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
if username and password in open('passwords.txt').read():
print("true")
else:
print("false")
""""
while password == 'lol':
... | [
"alexanderkorn7@gmail.com"
] | alexanderkorn7@gmail.com |
e90e6e54ec62d2abead5decf5e250852cfd2bbac | 0496f51d9d67eaa54945c47f5078c313e6ee5506 | /Unit Automation/YAML/test.py | dc747e2da1f05058ff8ae8d19b5265048b0305c9 | [] | no_license | jhearn85/automation_wip | 2d98ca5fb2de49fd29004d150710ba7c47a438a3 | 47c7e66427c74f00171045973af14fbbee37277c | refs/heads/master | 2023-04-15T03:37:42.187091 | 2021-04-07T04:57:02 | 2021-04-07T04:57:02 | 331,192,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py |
import sys
import yaml
from jinja2 import Environment, FileSystemLoader
from netmiko import ConnectHandler
from datetime import datetime
import os.path
def user_input():
description = input("Give a Description: ")
IP_Address = input("Give your IP: ")
user_input.desc = description
user_... | [
"hearnjameson@gmail.com"
] | hearnjameson@gmail.com |
77f57daeac7db77db887d0574452a3a1e5356270 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_kindlier.py | 8f1161ba660b3d1a9e7bc4e58b5918fb23e3990e | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py |
from xai.brain.wordbase.adverbs._kindly import _KINDLY
#calss header
class _KINDLIER(_KINDLY, ):
def __init__(self,):
_KINDLY.__init__(self)
self.name = "KINDLIER"
self.specie = 'adverbs'
self.basic = "kindly"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e85845f60ab0a44155867e1e7a3ef9de3a93c75f | 2161b5699f4d6ea3d5c420b69aa01259ebb5cb82 | /my_app.py | 29e5a66e026b35b718cfc1ab45418090741785a8 | [
"MIT"
] | permissive | evature/webhooks | e6683765b3b8a9b8e794c0bdde07ae0fb56f9726 | 28e473968ba1b3eb61b5e60f1ddf8e2c4bb31e6b | refs/heads/master | 2021-01-20T20:48:26.870143 | 2016-09-29T11:22:42 | 2016-09-29T11:22:42 | 64,929,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,815 | py | # encoding: utf-8
'''
Created on Jul 12, 2016
@author: Tal
Demo implementation of applicative webhooks for the Evature BotKit = http://www.evature.com/docs/botkit.html
It is meant to be as simple as possible.
To achieve max simplicity, it is based on Zappa + Flask, deployed to AWS Lambda.
This is Zappa - https://git... | [
"tal@evature.com"
] | tal@evature.com |
061f704f78dd82afc0cfadd3da7489a155b9c579 | 2b21a7423f31163f0571161501477e6262a22b55 | /jackdaw/nest/api/session.py | 9fefb7c25d34ee248c3b282c7a2054f868cd55bd | [] | no_license | hartl3y94/jackdaw | e2ae9e98cb97a7f1b3c0545042b0985220316720 | 3876298e1568fe8d811e86668e428a5fd937cd5a | refs/heads/master | 2023-04-03T06:36:04.850552 | 2021-03-30T20:26:43 | 2021-03-30T20:26:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py |
from jackdaw.dbmodel.netsession import NetSession
from jackdaw.dbmodel.adcomp import Machine
from jackdaw.dbmodel.aduser import ADUser
from flask import current_app
def session_list(domainid):
db = current_app.db
sessions = {}
for mid, mname, session in db.session.query(Machine.id, Machine.sAMAccountName, NetSessi... | [
"info@skelsec.com"
] | info@skelsec.com |
01c96ced74400e481508f74bf645b0675e074697 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_stilettos.py | 4433d008834892f1cf17787b6c5aa487efa15f64 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _STILETTOS():
def __init__(self,):
self.name = "STILETTOS"
self.definitions = stiletto
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['stiletto']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3bb1a6919eadc7c1ba52345e456c4e94b78f4016 | 1b3fc35ada474601a76de3c2908524336d6ca420 | /design/design/spiders/artop.py | ee2aa5b7a63a36f995205766d85258cf1ae5f7c3 | [] | no_license | dqsdatalabs/Internet-worm | db3677e65d11542887adcde7719b7652757a3e32 | 62f38f58b4fa7643c482077f5ae18fff6fd81915 | refs/heads/master | 2022-01-16T14:29:52.184528 | 2018-12-25T08:46:08 | 2018-12-25T08:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | import scrapy
from design.items import DesignItem
import json
import re
data = {
'channel': 'artop',
'evt': 3,
'company': '上海浪尖工业设计有限公司'
}
class DesignCaseSpider(scrapy.Spider):
name = 'artop'
allowed_domains = ['www.artop-sh.com']
category = {'2cf03': '智能科技', '01e9b': '家居家电', '6... | [
"noreply@github.com"
] | dqsdatalabs.noreply@github.com |
1717915a7b2b26e15950547533e5f928c10aac90 | a7e150089cc4d29da5247feccb6c8b7e578c5027 | /fileconvert/word2txt.py | 9d464cb9cbfe4f941ae551c3080194c624b44363 | [] | no_license | ligangyuan/pyreggmail | 8cf5d9000ca486a79a1b3de6e65fb5fe8ecfb4c6 | b442a73bd21ee4d7a399d1559d13612db104e591 | refs/heads/master | 2022-12-28T07:08:00.422405 | 2020-10-10T06:10:38 | 2020-10-10T06:10:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | # coding=utf-8
"""
Description: Word文件转化TXT文本
Author:伏草惟存
Prompt: code in Python3 env
Install package: pip install pypiwin32
"""
import fnmatch
import os
from win32com import client as wc
'''
功能描述:word文件转存txt文件,默认存储当前路径下;用户可以指定存储文件路径。
参数描述:1 filePath:文件路径 2 savePath: 指定保存路径
'''
def Word2Txt(... | [
"xiongxiangquan@gmail.com"
] | xiongxiangquan@gmail.com |
49865944dba7af70ad85c560b04fc695073ae8cf | a32c8f71664d55e397aac4c7e1dc2835994c5995 | /workspace/algolrithm_1/12-loop_PLUS_MINUS.py | 3bc979f84ff7cbd3f3f2b0f0a19de7bffa60f3f0 | [] | no_license | slowlove729/test | 3789385999da0ff1f2a2660b9fb6acc29a510d71 | 9d1ac9a5aab328f0ff547e22e3a06a5d687e8844 | refs/heads/main | 2023-06-19T01:47:01.485870 | 2021-07-17T08:35:16 | 2021-07-17T08:35:16 | 386,877,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | print("+ - 기호를 반복 출력하는 프로그램")
for i in range(int(input("몇개를 출력 할까요 : "))):
if i % 2 == 0:
print("+", end="")
else:
print("-", end="")
print()
| [
"slowlove729@naver.com"
] | slowlove729@naver.com |
932020f19572143afa24a2dc21ee02a5656912fc | bb72621c10dd6a3cee04c8b75e60e4e88786f791 | /chp15/color_dict.py | 007d5af9ddb25a4b9d04c5402255b29fe07120da | [] | no_license | BenU/thinkPython | 8fcb0ad63ab62dd3dbf54db8acf2124a3b2ee666 | 325bb9827b071d78494e06819db67e23428ff6e7 | refs/heads/master | 2021-01-01T06:05:08.684841 | 2012-04-22T14:05:53 | 2012-04-22T14:05:53 | 3,540,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,523 | py | """ Code example from Complexity and Computation, a book about
exploring complexity science with Python. Available free from
http://greenteapress.com/complexity
Copyright 2011 Allen B. Downey.
Distributed under the GNU General Public License at gnu.org/licenses/gpl.html.
"""
import re
# the following is the conten... | [
"benjamin.d.unger@gmail.com"
] | benjamin.d.unger@gmail.com |
e084aacacd2f025e8fc92c9a2090102d13937f36 | 2648f57ebd565a96e4e4f6272411b587bfac3394 | /__init__.py | 43c7086b5ee33312d8826b7287e001336ca7a6ae | [] | no_license | FuJianTech/TodayHot | e372380a4f6a8b4cf28b5dc9de051e76398deead | 3e8909f01ffe41dde466a50a94fb2d995219b52c | refs/heads/master | 2022-12-21T15:19:21.107741 | 2020-09-09T07:10:06 | 2020-09-09T07:12:01 | 292,454,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | # 这个文件请勿删除,用来导入包使用 | [
"dorians5689@gmail.com"
] | dorians5689@gmail.com |
0671c253c33bf2f166a0cd75968a5cc47fe484cd | 30bf8dcb27be8cea604b2578d13b836d4944650d | /linear.py | 1d8bf872504b0a4cf8010780833620816bef1050 | [] | no_license | yshu/221-project | 39ca6ab520461caae74d75bbee6643716ad0b20a | 9b8a6cc0b88b416333a7c5281e9a3fcc1730efbf | refs/heads/master | 2020-05-15T19:44:16.397723 | 2019-06-06T23:49:29 | 2019-06-06T23:49:29 | 182,463,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,044 | py | import tensorflow as tf
import tensorflow.contrib.layers as layers
import gym
from progressbar import Progbar
from util import *
import os
import numpy as np
import sys
from gym import wrappers
from collections import deque
from replay_buffer import ReplayBuffer
class config():
env_name = "Pong-v0"
r... | [
"sunnyyujie@gmail.com"
] | sunnyyujie@gmail.com |
a1f2ab82603f9a36953e31f203b6f23bcd2bc7ea | 1e65989631b28777ea9440d81851d8feacecd9c2 | /ss.py | edb741935ca992f88c75ab2c022eb5758c41787c | [] | no_license | pcamateur/pyt | 3e2f51c497c3cf57aabec986e6801388c5b36052 | 7b4912587a360a241fff5a340c815c2070ba299e | refs/heads/master | 2023-08-25T13:19:49.411968 | 2023-08-03T14:46:18 | 2023-08-03T14:46:18 | 172,338,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from time import time as t
s = t()
li = list()
# datas = [a for a in range(5, 50000) if a % 2 != 0]
# for x in datas:
for x in range(5, 50000):
for y in range(2, x):
if x % y == 0:
break
else:
li.append(x)
e = t()
# print(li)
print(len(li))
print(e - s) | [
"pcamateur@outlook.com"
] | pcamateur@outlook.com |
60efcabdf54a0dee2f46e3e9330960626fa4990e | a616bb193e867342138c10c5f1dabe3fb724ff44 | /build/baxter_common/baxter_maintenance_msgs/cmake/baxter_maintenance_msgs-genmsg-context.py | 59d5c7721e1a43d008f667c7ab691b173995fcd5 | [] | no_license | erueda/ros_ws | c2a5ee8627e5996c5d7dd438a38abdba1ae23a54 | c88fcff1c8a0db790cc0237150349ed2f64622a3 | refs/heads/master | 2016-08-11T07:15:33.537558 | 2016-04-14T09:28:01 | 2016-04-14T09:28:01 | 55,764,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/user/ros_ws/src/baxter_common/baxter_maintenance_msgs/msg/CalibrateArmData.msg;/home/user/ros_ws/src/baxter_common/baxter_maintenance_msgs/msg/CalibrateArmEnable.msg;/home/user/ros_ws/src/baxter_common/baxter_maintenance_msgs/msg/TareData.msg;/h... | [
"ernestorueda@gmail.com"
] | ernestorueda@gmail.com |
97a6a7782e055cddefadc02fbcb1c9f43a065e00 | 7f52724110a12d7721f3bbb7a0fce0c4b1c3dd97 | /gameserver/fb_open_graph_to_sql.py | fe685d6683b82038f09530b599d2202d570d79c9 | [
"MIT"
] | permissive | cssp1/assignment1 | 896cb69e8ff43e26658c65ea16b079f87eebef9a | 0839fc589cb52e7384c446593db79e0c2ea737d5 | refs/heads/master | 2023-03-10T08:03:56.954064 | 2022-07-20T04:02:15 | 2022-07-20T04:02:15 | 29,496,198 | 0 | 2 | null | 2023-02-17T17:56:53 | 2015-01-19T20:52:53 | JavaScript | UTF-8 | Python | false | false | 8,597 | py | #!/usr/bin/env python
# Copyright (c) 2015 Battlehouse Inc. All rights reserved.
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file.
# dump "log_fb_open_graph" from MongoDB to a MySQL database for analytics
import sys, time, getopt
import SpinConfig
import SpinNoSQL... | [
"dmaas@spinpunch.com"
] | dmaas@spinpunch.com |
ce6f4a8467d898e56fdbda95b48575d8483b051d | a6b4b072f47aa6b8fa86eee636b1bf7d6666f010 | /uplink/types.py | 4c32f5a22c1a29270e09735cc3d5d63af6044fe7 | [
"MIT"
] | permissive | plucena24/uplink | ea796f2198f4c907e9d2268159e100174e63f285 | b80c790d45da4b3bdd8ec3909ba99025c51a0b7c | refs/heads/master | 2023-08-21T14:22:13.528707 | 2017-11-08T19:18:34 | 2017-11-08T19:18:34 | 110,165,549 | 0 | 0 | MIT | 2023-08-08T19:45:02 | 2017-11-09T20:58:10 | Python | UTF-8 | Python | false | false | 12,331 | py | """
This module implements the built-in argument annotations and their
handling classes.
"""
# Standard library imports
import collections
import inspect
# Local imports
from uplink import converter, exceptions, interfaces, utils
__all__ = [
"Path",
"Query",
"QueryMap",
"Header",
"HeaderMap",
... | [
"raj.pritvi.kumar@gmail.com"
] | raj.pritvi.kumar@gmail.com |
e32cfd7255003e19bdc7b19d7ab4593542306db2 | 1dad81adfb52bc22f554243142d78e6ffa42c570 | /app/migrations/0010_auto_20210918_0900.py | 8a0a71a3d0375ef0d8d29f3ede3e31999c663d7b | [] | no_license | Mowzak/django-shop | 9f54fab1bd227c997d01eb0854e36084f8c351f4 | 0910bc691edb31177f3a7aed297bbd5881145ba3 | refs/heads/master | 2023-08-01T23:57:43.021327 | 2021-10-03T07:14:28 | 2021-10-03T07:14:28 | 388,475,908 | 0 | 0 | null | 2021-07-25T10:49:40 | 2021-07-22T13:41:01 | CSS | UTF-8 | Python | false | false | 706 | py | # Generated by Django 3.0.4 on 2021-09-18 04:30
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0009_auto_20210918_0854'),
]
operations = [
migrations.AddField(
model_name='checkout',
... | [
"mahdiyadi044@gmail.com"
] | mahdiyadi044@gmail.com |
2158adf2dc099b6e5433af8821dd81f1164c63f5 | 06debb37acfdc5038514a9b86c086186d04b04b7 | /APIR80/migrations/0014_auto_20190111_2214.py | 0436b0b769e016f44f05f2e3ba4f4d3094f9971d | [] | no_license | cadgo/django-chkp | f772062a8d1ca589862f95c3116d318984dd3593 | 516328a9919f34b14f93dc63e023fd3428f8d344 | refs/heads/master | 2023-08-31T14:04:01.039238 | 2019-09-29T23:07:36 | 2019-09-29T23:07:36 | 149,029,791 | 2 | 3 | null | 2019-01-30T18:59:34 | 2018-09-16T19:43:33 | Python | UTF-8 | Python | false | false | 1,313 | py | # Generated by Django 2.1.5 on 2019-01-11 22:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('APIR80', '0013_mgmtserverobjects_mgmtserverfilepathnetworksobjects'),
]
operations = [
migrations.AlterField(
model_name='mgmtse... | [
"carlos@UbuntuAnsible.4ghqaf2pfwlupave34ssco3ame.bx.internal.cloudapp.net"
] | carlos@UbuntuAnsible.4ghqaf2pfwlupave34ssco3ame.bx.internal.cloudapp.net |
2bac0ce50e8e7a4861d21295d30dddce01e3dada | d059e76c71d7b639308fc67c70d2e51ff70705e5 | /tests/module_test.py | 31c44357ff87ec92d1e5eaf000aa78c24c655e1a | [
"BSD-2-Clause"
] | permissive | alexxroche/redis-dump-load | e12cdd10aabd5a55589c19a4a769d8dc3d278073 | 696015ae35097bf7d4ed9aff557f432dd1bb7f88 | refs/heads/master | 2021-01-17T01:03:17.601107 | 2015-04-26T02:15:20 | 2015-04-26T02:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | import redisdl
import unittest
import json
import os.path
from . import util
try:
from io import StringIO, BytesIO
except ImportError:
from StringIO import StringIO
class ModuleTest(unittest.TestCase):
def setUp(self):
import redis
self.r = redis.Redis()
for key in self.r.keys('*'):... | [
"oleg@bsdpower.com"
] | oleg@bsdpower.com |
829c62427a21d1b27b4d0a5d13c03a1f4eb76862 | e9ac78d1c5f83dea452e330b0efec087aeb33743 | /assignment-2/12.py | d5d96089340890495858a17982c5f0e464a3d1fe | [] | no_license | bytesagar/iw-assignments | 9af4e8e40b19b32f17377df7c97fc43db1065e99 | c5cb8540affe8452a0b00e6382d74fad9f50039a | refs/heads/main | 2023-03-05T05:38:59.787071 | 2021-02-14T03:43:00 | 2021-02-14T03:43:00 | 338,722,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | string = input("enter a string")
print("Lower" + string.lower())
print("Upper" + string.upper())
| [
"sagarkarki076@gmail.com"
] | sagarkarki076@gmail.com |
3ffcccb9c24c45d88a2bb9f2dbcf065d7916a192 | 60965c77f553371e0055be8c9a0f28e2babf19c7 | /charts.py | bbb76f952ec86e9489f289339b38bfed08df8b56 | [] | no_license | Sravya2007/Project-135-Interpreting-Results | 18509e70f2b0c5dffa0db63b2cff65c42445461d | f7f739b2d2e4edec87e13ee81221e54c0b85b6fa | refs/heads/master | 2023-05-18T11:28:06.940337 | 2021-06-09T11:50:25 | 2021-06-09T11:50:25 | 375,332,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | import pandas as pd
import matplotlib.pyplot as plt
star_data = pd.read_csv("habitable_star_data.csv")
star_name = star_data["Star Name"]
distance = star_data["Distance (ly)"]
mass = star_data["Mass (M☉)"]
radius = star_data["Radius (R☉)"]
gravity = star_data["Surface Gravity (m/s²)"]
plt.figure()
plt.ba... | [
"noreply@github.com"
] | Sravya2007.noreply@github.com |
8478ffa64a2427dc93d0e03c6c70b86448cab486 | 7e93826a8305f8b7977bf511fc2eaafbc782809b | /dtshare/option/option_commodity.py | feb9dcdb9cb99c6d034994008dfd59ce1d32b253 | [] | no_license | SuperPcBull/dtshare | 71defe13ad12c56f6ea1f548e0ee42d166e4aff8 | 996b249078f3295c019e592d5ae5c135033d1c6d | refs/heads/master | 2021-03-15T22:12:25.937314 | 2020-03-11T01:58:30 | 2020-03-11T01:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,862 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Author: Tong Du
date: 2019/9/30 13:58
Email: dtshare@126.com
desc: 获取商品期权数据
说明:
(1) 价格:自2019年12月02日起,纤维板报价单位由元/张改为元/立方米
(2) 价格:元/吨,鸡蛋为元/500千克,纤维板为元/立方米,胶合板为元/张
(3) 成交量、持仓量:手(按双边计算)
(4) 成交额:万元(按双边计算)
(5) 涨跌=收盘价-前结算价
(6) 涨跌1=今结算价-前结算价
(7) 合约系列:具有相同月份标的期货合约的所有期权合约的统称
(8) 隐含... | [
"dtshare@126.com"
] | dtshare@126.com |
d91cb988e6267df64db44f867a1eeccff5e773b8 | 87ad372898e793faf1ad89f4bb3b6e84a8002131 | /tests/unit/UnagiiToken/test_approve.py | c37a007c87b27f55f23e9b564580ea5328e8a0ab | [] | no_license | atsignhandle/unagii-vault-v2 | 6a9a96c11d34257bc3fdae57455ec3b2f9c0029a | 548f715f34329eb5abebffe40acbeb56a31cb6f3 | refs/heads/main | 2023-08-27T00:59:48.080152 | 2021-09-28T02:47:36 | 2021-09-28T02:47:36 | 413,448,825 | 0 | 0 | null | 2021-10-04T14:07:37 | 2021-10-04T14:07:36 | null | UTF-8 | Python | false | false | 1,250 | py | import brownie
from brownie.test import given, strategy
import pytest
@pytest.fixture(scope="function", autouse=True)
def setup(fn_isolation):
pass
@given(
owner=strategy("address"),
spender=strategy("address"),
amount=strategy("uint256"),
)
def test_apprpve(uToken, owner, spender, amount):
tx =... | [
"tsk.nakamura@gmail.com"
] | tsk.nakamura@gmail.com |
20deb90846ad288a2d94d9b45fbff6c904bc0e54 | c105e5cf2a1eec2e04398d7b50030b6c97d6a04b | /poker/poker/urls.py | 984103b63bef0c8ccbdaa477f76d9779a5545822 | [
"MIT"
] | permissive | chitty/poker_base | 845e464fa68de93de6ff79eaba77b91e45be1788 | 913c13b89a0c4e4c0ec7e3b01495a96309a02f26 | refs/heads/master | 2021-01-20T19:21:43.628307 | 2016-07-20T16:33:47 | 2016-07-20T16:33:47 | 61,395,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^holdem/', include('holdem.urls')),
url(r'^admin/', include(admin.site.urls)),
]
| [
"chitty.carlosj@gmail.com"
] | chitty.carlosj@gmail.com |
d2fa208268124115fb8707888efbde6813276ac2 | 75e1a56916469d9fc9695cc9d5b8d216578f9e53 | /aaweb/views/investors.py | 8ac1d0e61f8bcfbfa55ca7d5fa6af1b81c04cb75 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | cpelite/astorian-airways | f1cc496688bf52df763cb3d952b6623c27172e67 | 55498f308de7a4b8159519e191b492675ec5612a | refs/heads/master | 2021-09-14T12:20:14.632632 | 2018-05-13T18:01:54 | 2018-05-13T18:01:54 | 255,722,246 | 0 | 0 | null | 2020-04-14T20:46:50 | 2020-04-14T20:46:49 | null | UTF-8 | Python | false | false | 274 | py | # -*- coding: utf-8 -*-
from flask import render_template
from aaweb import app
from aaweb.models import Company
@app.route('/investor/relations.html')
def view_investor():
companies = Company.select()
return render_template('investor.html', companies=companies) | [
"christian.koepp@cs.tum.edu"
] | christian.koepp@cs.tum.edu |
0142110cb2437b1407ba2fed98e5650f4fcd115c | de16cd6a0302278e4e5c30a97902b974ee4cc70c | /app.py | 9c48c8869ff2430a4effec0761da6cfa37db7ce6 | [] | no_license | GaryG484/Mission-to-Mars | 4798caf02326fcd666aa550cdf6dcf3ee47a120b | 9a06c92a4e69320c1a8cd6e51fae899586fdb280 | refs/heads/main | 2023-08-23T08:34:54.040300 | 2021-09-22T00:13:15 | 2021-09-22T00:13:15 | 398,110,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,335 | py | # This is where we'll use Flask and Mongo to begin creating our web app
# begin by importing our tools
from flask import Flask, render_template, redirect, url_for
from flask_pymongo import PyMongo
import scraping
# Let's break down what this code is doing.
# The first line says that we'll use Flask to render a tem... | [
"85652494+GaryG484@users.noreply.github.com"
] | 85652494+GaryG484@users.noreply.github.com |
6afbde266297ea50d91e24346d4e03987b62c63f | 37c677551f6b11fb6ec93c35d45c8f52d9b483a0 | /calc_factories.py | f06b2fb6370f2479602701dca121c32154d57e60 | [] | no_license | 70akaline/nested_scripts | 735e1ee5868596a80633d5b1d1c36ce5bb95c9d1 | c69306bd51fda90fd04b33e6f72f2b6d6edfcef1 | refs/heads/master | 2021-09-05T23:23:16.165209 | 2018-01-31T16:09:16 | 2018-01-31T16:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,305 | py | from data_containers import nested_data
from data_containers import cumul_nested_data
from data_containers import cellular_data
from data_containers import dca_data
from data_containers import dca_plus_data
from data_containers import nested_edmft_data
from action_cautionaries import impose_real_valued_in_imtime_numpy
... | [
"jaksa.vucicevic@gmail.com"
] | jaksa.vucicevic@gmail.com |
b4704758b099b19c9b67d81b6b07934ef05ee775 | b3bbda776072fdf8829e7a94bff9817d3d0a346f | /project_fraud/lib.py | 68052e346f90de05871d0dd8c23bd36b918bc55b | [] | no_license | ayo-byte/project_fraud | 34684913f027c5bcd61d7e20c28ec3efd79cf954 | 9e68a0b42ec9344ae37daa157484a8776f1bf931 | refs/heads/master | 2023-01-14T16:06:19.168399 | 2020-11-24T16:01:44 | 2020-11-24T16:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | # -*- coding: UTF-8 -*-
# Copyright (C) 2018 Jean Bizot <jean@styckr.io>
""" Main lib for project_fraud Project
"""
from os.path import split
import pandas as pd
import datetime
pd.set_option('display.width', 200)
def clean_data(data):
""" clean data
"""
# Remove columns starts with vote
cols = [x f... | [
"mrum98@gmail.com"
] | mrum98@gmail.com |
2fdd63775b26a6bfdc169b203a9f78c1f457ac39 | 6e6bea7799ba68eeb956b6f6b88c784f90871f27 | /src/app/dbManager/DBTool.py | 45d1ee154c33ca3ac514f18ac5bfdacba9e70be2 | [] | no_license | jeanhao/hackday2017 | 6f5488057f82541b4a53f580f923c431498ed61e | 6dcfb99c0de24d02fac6898aa807cac9cf33dafe | refs/heads/master | 2021-01-23T16:13:19.502319 | 2017-06-04T03:32:33 | 2017-06-04T03:32:33 | 93,287,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | # -*- coding: utf-8 -*-
from mosql import query, mysql, util # @UnusedImport
# 将data数据插入字典中,若不指定key,则插入data中所有数据
def insert(table, data , keys=None):
if keys:
if type(data) == list:
vals = []
for obj in data:
vals.append([v for k, v in obj if k in keys])
... | [
"jeanheo@foxmail.com"
] | jeanheo@foxmail.com |
e0e18357155d553b59b57f813ce1be268b44de94 | 386f597647a09ed0a65ff56af746a2f8f70ff6c5 | /bus_card.py | fb87c268f73808d98e1eca0ce733541e038d3f4f | [] | no_license | baixiao9/self-python-practice | 3332caa6c809d3463a5e58faf09f191fa33919e3 | df7bbeafecb24738924e51ec3c8873e790ef725f | refs/heads/master | 2020-03-21T07:11:32.069032 | 2018-06-26T09:01:01 | 2018-06-26T09:01:01 | 138,261,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | #-*- coding: utf-8 -*-
# 2018-06-22
# 公交卡计算
sum = 0
for _ in range(30):
for i in [2.5,5]:
if sum < 100:
sum = i + sum
elif 100<=sum<150:
sum = 0.8*i + sum
elif sum>= 150:
sum = 0.5*i +sum
print('Totally cost:%s' %(sum))
| [
"40483495+baixiao9@users.noreply.github.com"
] | 40483495+baixiao9@users.noreply.github.com |
5be45d425ef04a70bea62b97cbcccc6dacd9675b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/135/usersdata/179/46636/submittedfiles/OBI.py | 6f6a0899cabeb0aa77f1ee146c9a5cc9b55abaca | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
n=int(input('digite n :'))
p=int(input('digite p :'))
cont=0
i=1
while i>=n:
x=int(input('digite x :'))
y=int(input('digite y :'))
if (x+y)>=p:
cont=cont+1
i=i-1
print(cont) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f2852592f4337fabff8b02e1967870e5387ff334 | 159c9d6d8132b06b0e9cdbfd2412c98755f9242e | /loginUi.py | e128bc646a7ccdf554e754daf28a959653fa0b80 | [] | no_license | leodpj/loginAPP | 4de1c6f60515b02eeffc6af08ad9e05fa716cbc7 | 47387d66697e60d3f33c25a017ef2e2981510f6d | refs/heads/master | 2023-07-17T15:49:20.489406 | 2021-08-13T23:00:16 | 2021-08-13T23:00:16 | 395,821,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,019 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'login2.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
import sys
class Ui_Form(object):
def setupUi(self, Form):
Form.setObj... | [
"leodpj@gmail.com"
] | leodpj@gmail.com |
6f1ef249d90f148ff63557d7c2fb9305368862ab | 6fb24d8425ece3b02683031fa445ae4041ae8150 | /templates/clasificacion-de-bosque/clasificacion-de-bosque_1.1.py | ec58d2f8cd7d804c49ebb0ecc038c458b87b1bcb | [] | no_license | OpenDatacubeIDEAM/cdcol-workflows | 60c0fad713e09659cf36de238288e5956b655971 | dac26a5bd22e0796d6bb9b015dc8841532c7d409 | refs/heads/master | 2021-06-25T19:04:55.196501 | 2021-02-27T15:14:29 | 2021-02-27T15:14:29 | 204,059,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | import airflow
from airflow.models import DAG
from airflow.operators import CDColQueryOperator, CDColFromFileOperator, CDColReduceOperator
from airflow.operators.python_operator import PythonOperator
from cdcol_utils import dag_utils, queue_utils, other_utils
from airflow.utils.trigger_rule import TriggerRule
f... | [
"aa.vivas@uniandes.edu.co"
] | aa.vivas@uniandes.edu.co |
c97056cd28f7aa533c943b339d3e36084c0704e9 | 9d29ca19feddfb774e990ccef6903206ecdb4ea1 | /src/binarize_coco_data.py | 437c8d664a54138e3b9ffa2c22fcb71e1e8c92ef | [] | no_license | rasoolims/ImageTranslate | 180f5d6c310f7eb028bc3246e12ff7a5ab7b4fa8 | 51593a845a95fa3d05fc722a7c6a33077ee267be | refs/heads/master | 2023-06-23T14:21:13.985028 | 2022-09-29T18:57:06 | 2022-09-29T18:57:06 | 250,050,377 | 5 | 1 | null | 2023-06-12T21:28:44 | 2020-03-25T17:49:40 | Python | UTF-8 | Python | false | false | 3,163 | py | import json
import marshal
from optparse import OptionParser
from textprocessor import TextProcessor
id2path = lambda path: "".join(["".join((12 - len(path)) * ["0"]), path, ".jpg"])
caption_format = lambda caption: " ".join(["<en>", caption, "</s>"])
caption_data = lambda annotation: (id2path(str(annotation["image_i... | [
"rasooli.ms@gmail.com"
] | rasooli.ms@gmail.com |
941bed558f06a3184463dd125586129fc4b7b9ee | 67117705720a3e3d81253ba48c1826d36737b126 | /Wk8_STRANDS/error_ks_2samples.py | f805256dfd4811d66b28e65afcfa106bdf8499ee | [] | no_license | pyliut/Rokos2021 | 41f0f96bc396b6e8a5e268e31a38a4a4b288c370 | 70753ab29afc45766eb502f91b65cc455e6055e1 | refs/heads/main | 2023-08-13T17:29:30.013829 | 2021-09-26T19:01:35 | 2021-09-26T19:01:35 | 382,092,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 7 16:27:34 2021
@author: pyliu
"""
import numpy as np
from integrate_pdf import *
import matplotlib.pyplot as plt
def error_ks_2samples(t_obs1, t_obs2, plot_graph = True):
"""
Calculate Kolmogorov-Smirnov Distance of between 2 samples
Paramete... | [
"noreply@github.com"
] | pyliut.noreply@github.com |
7c0b6cc4bb467321b0cce421dfdd1146c1f3941f | a499fbdd93f85a286505433a08afc25d84c8ff04 | /tests/python/unittest/test_tvmscript_roundtrip.py | 7c123afdc4d0611bfeeb1358ef530686ba4a217b | [
"Apache-2.0",
"Zlib",
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | elphinkuo/tvm | a81e0ccc5950a1473efdcdbb8263de9adbe36787 | 9df2ae8eaa8b394013182a7ad09ac57fe401f80e | refs/heads/main | 2023-08-05T07:41:18.652097 | 2021-09-28T00:38:26 | 2021-09-28T00:38:26 | 411,311,927 | 2 | 0 | Apache-2.0 | 2021-09-28T14:51:56 | 2021-09-28T14:17:46 | null | UTF-8 | Python | false | false | 131,414 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | elphinkuo.noreply@github.com |
854fa51141498bed3aae4d718f526074f037de86 | a3bb788789181c7fa7b7dec1f997425334437087 | /tests/test_logo_into_svg.py | 469645e5aa632fb590b7cc0f997b540c508acd8b | [
"MIT"
] | permissive | tekiela/loev3go | b7153ff01bf02a2a03ef489a8bbae1b1a24d4301 | 497f6bd0f9c13d19b3b638e356a143699019513b | refs/heads/master | 2020-08-06T16:53:24.320837 | 2019-04-01T07:51:35 | 2019-04-01T07:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | #!/usr/bin/python3
# Run two hardcoded LOGO programs using and save the canvas afterwards.
import src.LogoIntoSVG
lis=src.LogoIntoSVG.LogoIntoSVG()
lis.run_logo_emit_svg(
"""to square
repeat 4 [ fd 10 rt 90 ]
end
square
""", "test-square.svg")
lis.run_logo_emit_svg(
"""to gen :lo :hi :step
make "x []
while [ :... | [
"bojar@ufal.mff.cuni.cz"
] | bojar@ufal.mff.cuni.cz |
aef77fdb620292e37981149a8dd9a65be37cb592 | 9f56b67705bfcafef541773a4334815abbc53eb2 | /methOverload.py | 7af87df161663dc178ac293a2508f311c551c5f9 | [] | no_license | sukanyabag/Object-Oriented-Programming--Python | 5527543cc89b2d8bf60173d5042bc52f9d5a98b2 | e40cbc9ec099ca8194a79e6f5c3b784c982ba931 | refs/heads/main | 2023-07-18T20:10:42.981001 | 2021-09-12T14:27:01 | 2021-09-12T14:27:01 | 370,100,780 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | class OverloadDemo:
def multiply(self,a,b):
print(a*b)
def multiply(self,a,b,c):
print(a*b*c)
m=OverloadDemo()
m.multiply(5,10)
'''
op-
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-in... | [
"noreply@github.com"
] | sukanyabag.noreply@github.com |
1affd7776d599b99f55b334bed89947f4fe0514d | 320dab5b2295ed25f02f041b0901cd7451f45662 | /cosmoslib/utils/mpi.py | 3fd80b093b2759ca6c73c6ab76f9c94e148e1b39 | [
"MIT"
] | permissive | guanyilun/cosmoslib | fdf920ef580f58ada85ba2b3283c02a4924c48d5 | fc035ac15b93ec6aaac08221be3ff32488476e1e | refs/heads/master | 2023-03-03T14:17:34.735739 | 2023-02-28T20:29:41 | 2023-02-28T20:29:41 | 159,537,157 | 1 | 1 | MIT | 2021-12-14T13:30:49 | 2018-11-28T17:07:38 | Python | UTF-8 | Python | false | false | 599 | py | """mpi wrapper imported from pixell to reduce dependency on pixell for
simple things. Notes from original script: Utilities for making mpi
use safer and easier.
"""
from __future__ import print_function
import sys, os, traceback
class FakeCommunicator:
def __init__(self):
self.size = 1
self.rank ... | [
"zoom.aaron@gmail.com"
] | zoom.aaron@gmail.com |
84a710c4d394127df391e8fe17826da9b9740378 | 22af2e48c0720878568e356c766dfb5cabc67a10 | /mlrecobooks/plotter.py | 6cd6125eaf958c95546972d9d18ae74ee06bb60a | [] | no_license | samyBadjoudj/ml-reco-books-python | fd3d407b91772bce1e367a8644dcebdb17e7b64f | e3c3cbb3e134a96cb50d0b1762bd0073554f1a84 | refs/heads/master | 2022-09-15T02:31:31.555063 | 2020-06-03T13:25:02 | 2020-06-03T13:25:02 | 263,127,199 | 0 | 1 | null | 2020-06-03T13:25:03 | 2020-05-11T18:40:42 | Python | UTF-8 | Python | false | false | 1,655 | py | import matplotlib.pyplot as plt
import numpy as np
import mlrecobooks.data_extractor as ml
def plot_distances(data):
distances_ = data["distances"] # sorted(data["distances"], key=lambda d: d["value"])
plt.yticks(np.arange(0, distances_[-1]["value"] + 2, step=0.5))
plt.bar(ml.get_book_distance_titles(dist... | [
"samy.badjoudj@gmail.com"
] | samy.badjoudj@gmail.com |
fab2f1755281a273c3b1b0d6f33ff645418908b6 | 38fa210fb605e7cfdc039aa2168e1224b6261884 | /eve_prVoting/wsgi.py | 4fd01c341a1458764a5d3a505c3ffb6278c47765 | [] | no_license | NCHUSG/eve_prVoting | c4ac639a1c36bc41465fc23069d7a1d1d0a7616e | d1cca39816804898021ff2cf397f67368bafa06f | refs/heads/master | 2021-01-10T20:01:13.001055 | 2015-04-13T10:51:04 | 2015-04-13T10:51:04 | 33,862,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for eve_prVoting project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eve_prVoting.settings")
from dja... | [
"qas612820704@gmail.com"
] | qas612820704@gmail.com |
1dcec55534fb5df9bee784f3b8d9245a58335b79 | f1d3dbcb8a1f979ddbe02dd24967e3c32a83f997 | /33.py | 45e0e9d08ee0f99b147123407eeafa3e5ec8ae8b | [] | no_license | shenbufan/runoob-Python-100 | 212d8007f45317f4f9841abfa0fd9eec2ee0c31a | bd83a642052c64dc9eb95ca16e9a6c6df295619a | refs/heads/master | 2020-03-14T05:40:34.779879 | 2018-04-29T05:50:34 | 2018-04-29T05:50:34 | 131,469,253 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | s='efbtbteb'
x=','.join(s)
print x | [
"chenleiy@foxmail.com"
] | chenleiy@foxmail.com |
b79e17aca4a083d90c9be00c429eebd71d5bfdfd | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-Cocoa/Examples/Foundation/Scripts/rendezvous.py | b9650105a6e032f47a25075b050bc659b61b2e6e | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | #!/usr/bin/env python
"""
This script using NSNetServiceBrowser to look for local HTTP servers.
"""
from __future__ import print_function
import objc
from Foundation import NSObject, NSRunLoop, NSNetServiceBrowser, NSDate
objc.setVerbose(1)
class PrintingResolverDelegate(NSObject):
def netServiceDidResolveAddress_... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
ddb87afed26972677d497c7d11989d7ff15aa9a2 | 4b3a4c65e7a4d7cd4bb7f99e1391d06e290cbc67 | /main.py | ddc112797b49deca1c522450aa94e9847cf5029a | [] | no_license | muliarska/Vigenere_Cipher | 313c2967f5f180a6e4ace181daf964aa27bcc24d | 5650fdb09b37f0bc24ed46ddfc98316db9e17d03 | refs/heads/master | 2022-09-12T16:23:05.153252 | 2020-06-01T11:31:50 | 2020-06-01T11:31:50 | 268,071,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | """Representing an APP"""
from flask import Flask, render_template, request
from vigenere_cipher import VigenereCipher
APP = Flask(__name__)
@APP.route('/', methods=['GET'])
def main():
"""Returns home page"""
return render_template('index.html')
@APP.route('/result', methods=['POST', 'GET'])
def result_pa... | [
"yana.muliarska@gmail.com"
] | yana.muliarska@gmail.com |
1e5d170703bb9e35e4cab163bb473ec204f9ff87 | ccc1026b5156949d8a41a73ebe4ea648057a782c | /Answer_06.py | cd3804caf614d42b1ada3edadfe71b821165247a | [] | no_license | joeljo2104/hacktoberfest_21_CP | c6e9da0200a969bbf1a3d2f5a74b34bb5b85a809 | 396e9fdc6fe565add161468729f9ea14a3025053 | refs/heads/main | 2023-09-01T12:20:19.730924 | 2021-10-21T09:19:14 | 2021-10-21T09:19:14 | 419,602,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | for t in range(int(input())):
n = int(input())
L = [int(s) for s in input().split()]
R = [int(s) for s in input().split()]
Index = []
for i in range(n):
Index.append( (L[i] * R[i] , R[i], i) )
Result = sorted(Index, key = lambda e: (e[0], e[1], n-e[2]), reverse = True)
print(Result[... | [
"42415617+joeljo2104@users.noreply.github.com"
] | 42415617+joeljo2104@users.noreply.github.com |
48db549a284d5650092a3311dfe71b784812afe2 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/foodDistribution_20200629175740.py | 3fc43f7ad7607fb8e59d6e03cc628ae97433ce9f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | def food(arr):
# removes the item at index 0
sandwiches = arr.pop(0)
while sandwiches > 0:
highest = -1
maxred = -1
for i in range(len(arr)):
if arr[i] > 0:
currDiff = 0
if i > 0:
currDiff = currDiff + abs(arr[i]-arr[i-1])
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7003566794da2f9b7dced58889d7079aee2c4e80 | 506a5dbf6818ba64efa3b411a7297d8cfee3695c | /Capstone2/parallax.py | d84934cd1c7902016549663314f11ef637b0850b | [] | no_license | Its-a-me-Ashwin/2Dto3D | 5af0c57aebb89cf7c1aacddacfba94706728422b | 664a456b14b5e8528305c0145ff0e8bdfaf8ad46 | refs/heads/master | 2023-03-21T16:10:33.524352 | 2021-03-09T11:56:56 | 2021-03-09T11:56:56 | 289,682,081 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | from detect import getCameraPosition,getDistanceToMarker
import cv2
import numpy as np
from math import sqrt,sin,cos,tan
convert = 3.1415/180.0
# measured in (cm)
# angles in radians
camDict = {
"f" : 20,
"view":(57,43),
"res" : (640,480)
}
def rotatePoint(x,y,z):
... | [
"noreply@github.com"
] | Its-a-me-Ashwin.noreply@github.com |
cd4159d17f93ad7f0881371ae0c2741aa2ba0c65 | d26c51a13125e038194bd296cdefbdc6189e718e | /pip_services_runtime/clients/__init__.py | e50653cced8b6b22de66112b5d09d1a28a824c02 | [
"MIT"
] | permissive | pip-services-archive/pip-services-runtime-python | 0ec2f61ca800d67ed2221a9b18362346c4ae97c5 | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | refs/heads/master | 2020-05-20T18:32:44.087193 | 2017-03-10T01:22:18 | 2017-03-10T01:22:18 | 84,504,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # -*- coding: utf-8 -*-
"""
pip_services_runtime.clients.__init__
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dependency clients module initialization
:copyright: Digital Living Software Corp. 2015-2016, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
__all__ = ['A... | [
"seroukhov@gmail.com"
] | seroukhov@gmail.com |
6e2bdc1aaa30cf640a7dcc0ed90c80e6d4711d72 | 851bf93c8a3970f16f335a33cb713132024904ef | /Day00-14/code/Day10/ex4.py | 06f1f654bb152f32adf73322d5fab1163c9f8d14 | [] | no_license | zujl123/Python-100Days | dbfb3c9bca4cee08147bb92b0efe2b050c04d2e9 | 3d77b6c7fb8e730ecd82e3327978309474a3fa33 | refs/heads/master | 2023-05-30T13:41:24.898106 | 2020-09-26T01:15:11 | 2020-09-26T01:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | """
引发异常和异常栈
Date: 2018-03-13
"""
def f1():
raise AssertionError('发生异常')
def f2():
f1()
def f3():
f2()
f3()
| [
"skygit@126.com"
] | skygit@126.com |
3280d35e4105c391611078f28c6b528dd7482b2a | f7110aaab742fc92179302c5874691078ed05158 | /the_wall/the_wall_app/migrations/0001_initial.py | d1132291b5efbbd216af46aa6b7d31072de7f3b7 | [] | no_license | Moha327/python_extra | 0f9252a46a652ffe83d97cd0d6906a1835c2abbf | a3e1b31831578484c651d76bfd01173fe9d6eb10 | refs/heads/master | 2023-05-23T14:03:21.962212 | 2021-06-16T13:50:06 | 2021-06-16T13:50:06 | 377,511,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | # Generated by Django 2.2.4 on 2021-05-28 16:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"m7amad9595@outlook.com"
] | m7amad9595@outlook.com |
38fbdd5bfe0da831b87a2a757f0547cacfffc892 | 954973c1ddaff15347e27ce45a72559bbef1db1f | /api_wrapper/libpixyusb_swig/get_blocks.py | bfa49d18b1becd7498288b167ef72fc82d28a4d9 | [] | no_license | Zaki-/api_wrapper | aa4ae37c26c67efebb9d8d64a17b9392c89a03e0 | c9d67606839fc6b2c298d46f1a605eb40287fda7 | refs/heads/master | 2021-01-10T14:46:10.805674 | 2015-12-10T06:35:34 | 2015-12-10T06:35:34 | 47,715,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | from pixy import *
from ctypes import *
import ctypes
import api
import os
import time
import sys
import struct
# Pixy Python SWIG get blocks example #
print ("Pixy Python SWIG Example -- Get Blocks")
# Initialize Pixy Interpreter thread #
pixy_init()
class Blocks (Structure):
_fields_ = [ ("type", c_uint),
... | [
"pi@MIN.(none)"
] | pi@MIN.(none) |
a2ae5772aab2ba8ec97cdaaf08f66b953a566ba6 | 90e986d37d83ceabddd8d6300f09a0acea3772f8 | /prepare_ligand4.py | 91dd62f26fa319d7260ee7fd0fce2baa8b2032cd | [] | no_license | AmauryOvalleMaqueo/Project_week3 | a8b2daf2a584d0b160bfa8671fda90d495aaf828 | af9fb41af4d3ef09c87137bb618bb7a39de52d5d | refs/heads/master | 2021-05-05T01:02:28.071956 | 2018-01-30T11:03:19 | 2018-01-30T11:03:19 | 119,523,084 | 0 | 0 | null | 2018-01-30T10:52:18 | 2018-01-30T10:52:18 | null | UTF-8 | Python | false | false | 9,228 | py | #!/usr/bin/env /home/test/MGLTools-1.5.6/bin/pythonsh
#
#
#
# $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/Utilities24/prepare_ligand4.py,v 1.10 2010/07/31 00:14:13 rhuey Exp $
#
import os
from MolKit import Read
from AutoDockTools.MoleculePreparation import AD4LigandPreparation
if __name__ == '__mai... | [
"a.ovalle.maqueo@student.rug.nl"
] | a.ovalle.maqueo@student.rug.nl |
7fd6b79f34e457b9696acf97e858fbd5b3c61b9a | 6c5963f7943faa1662f89a48da16d132664bf704 | /test1.py | 27039db9885167ec5f14341f3c669eeea2875e0f | [] | no_license | ArmGono/exepermental | 292f0ff622f6f3c67a3960ac733260289967813e | 51a4956ac7e5c8e0d01db21ff657dc05a939e248 | refs/heads/master | 2021-05-06T00:23:58.071778 | 2018-01-12T14:57:21 | 2018-01-12T14:57:21 | 117,253,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py |
from Tkinter import *
def donothing():
filewin = Toplevel(root)
button = Button(filewin, text="Do nothing button")
button.pack()
root = Tk()
menubar = Menu(root)
filemenu = Menu(menubar, tearoff=0)
filemenu.add_command(label="New", command=donothing)
filemenu.add_command(label="Open", command=donothing)
fil... | [
"admin@armrus.net"
] | admin@armrus.net |
407083d7eb61e9434b8c2bba66744abbcb075fc0 | bf0b9cf4eeff63cf69c527d6428ed09dbd27a97c | /signaldemo/signal_demo_app/models.py | 5a3eb57ab847c2453cc3e7c3cf45a737591f32f7 | [] | no_license | sammaurya/django_signal_demo | 2d01156b03dbed222c12e81aea92cdd243f2b72d | d91e99d36ef8c0989dbbe692af35542791da9f77 | refs/heads/master | 2022-10-27T10:00:14.180115 | 2020-06-01T11:27:24 | 2020-06-01T11:27:24 | 268,501,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from django.db import models
# Create your models here.
class UserProfile(models.Model):
first_name = models.CharField(max_length=150)
last_name = models.CharField(max_length=150)
username = models.CharField(max_length=150, primary_key=True)
email = models.EmailField()
created_by = models.DateTime... | [
"sammaurya196@gmail.com"
] | sammaurya196@gmail.com |
1495e55cfb32899ec170afb7f2b156c62356f21c | 09376d059b8898ff637c4e4190619bf0ca8f536a | /python_scripts/standard_star.py | 84f2fdee2080818d2fc2c5619a7e311c4bccc44d | [] | no_license | samvaughan/KMOS_reduction | d954917db2242641d8c2f3447e3d09399245f3c8 | 7c4358c84e326a2829b01364ce3bc3826acaf9b7 | refs/heads/master | 2021-01-18T15:54:13.349330 | 2017-08-15T15:22:49 | 2017-08-15T15:22:49 | 100,390,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | py | """
Take a folder containing observations of a telluric star.
Make a .sof file of those observations, as well as the required calibrations.
Make the requried output directories.
Run the esorex recipe kmos_std_star with that .sof file
"""
import sys
import os
import argparse
from astropy.io import fits
import glob... | [
"sam.vaughan@physics.ox.ac.uk"
] | sam.vaughan@physics.ox.ac.uk |
bb8ce9acbb13856c54c27b49ea8749c8003a528e | 0a181da79fbd1354d5cad0e3c6abafff7011006b | /week9/day04.py | 3f32dd3dad9f088eaf3133087bbe637f9e081b8a | [] | no_license | vibhor-vibhav-au6/APJKalam | 14b08520f3fd9b08cc700d130e4c278ffce90c50 | bf747787d5585df4e48b7cc9bf4ca8a353a81aa3 | refs/heads/master | 2023-06-05T06:07:49.523004 | 2021-06-22T04:37:24 | 2021-06-22T04:37:24 | 365,747,187 | 7 | 5 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | '''Find whether an array is subset of another array:'''
def subsetHelper(arr1,arr2):
# arr1 = [1,2,3]
# arr2 = [2,2,2,3]
for i in arr1:
if arr2.count(i) < arr1.count(i):
return False
return True
def subset(arr1, arr2):
if len(arr1) >= len(arr2):
return subsetHelper(arr2,arr1)
else:
return... | [
"53352793+vibhor-vibhav-au6@users.noreply.github.com"
] | 53352793+vibhor-vibhav-au6@users.noreply.github.com |
f5baa97cee2609c7e575f7e42302d4e1c8060fe1 | c214cf3758518d58aa420ba287888ffecf5cf981 | /scripts/twosides/twosides.py | fb05ae121a0dd257c0a7eb7820d369f431f73814 | [] | no_license | Fimwu7/gnn-ddi-ibm-umass | df2542b14a96288e1dc237ea6bb8f4fc51cf1a3d | d325e10fa4cb47d86ec77ce759170163d76115f3 | refs/heads/main | 2023-05-23T15:13:13.621106 | 2021-06-21T00:37:11 | 2021-06-21T00:37:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | r""" Replace drug ids in twosides database with corresponding drugbank ids.
"""
import pandas as pd
import numpy as np
TWOSIDES = '../../data/twosides/TWOSIDES.csv'
TWOSIDES_TO_DB = '../../data/twosides/rxnorm-drugbank-omop-mapping-CLEANED.tsv'
NEW_TWOSIDES = '../../data/twosides/TWOSIDES_DB.csv'
def main():
wi... | [
"rishabhgupta@umass.edu"
] | rishabhgupta@umass.edu |
eca6db22f7240cc2fe93f3c8294c9566e37070a4 | 33a6519cf8dd7e7a1c54e2ecc7335a31055dd1ca | /src/test_arm/arm/listener.py | a490e14b80f2991832012c4d338e8173b5e5c208 | [] | no_license | joehjhuang/team4_arm_ws | c014cee5d16a8cc6057b90474ade391f169bb8f9 | 0f67d0b0dc3891d85fc5a8fb2321fe2ea064a8ca | refs/heads/master | 2021-08-23T15:45:24.026335 | 2017-12-05T13:42:12 | 2017-12-05T13:42:12 | 112,145,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import String
def callback(data):
rospy.loginfo(rospy.get_caller_id() + "I heard %s", data.data)
def listener():
rospy.init_node('listener',anonymous=True)
rospy.Subscriber("chatter",String,callback)
rospy.spin()
if __name__ == '__main__':
listener()
| [
"joehuang@mit.edu"
] | joehuang@mit.edu |
57242d8a647160217b314b3932dcfd3d2e9e382e | 1ef8931c3daec617cf06799246e346146d500135 | /diypedia/api/views.py | 8cacc18306b5a41cdc32283e1130d70b7d792299 | [] | no_license | allmy3/DIYpedia-clone-Django | b17ad383be5662685a0a4ed34b0ce03fdef992fb | 238e4bdf72bfd9ab342b731d244318bf1232a21f | refs/heads/main | 2023-07-13T22:06:00.322249 | 2021-08-12T14:07:15 | 2021-08-12T14:07:15 | 395,338,953 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from rest_framework.response import Response
from rest_framework.views import APIView
from posts.models import *
from users.models import *
from .serializers import PostListSerializer, PostDetailSerializer, CategoryCreateSerializer, CategorySerializer
class PostListAPIview(APIView):
def get(self, request):
... | [
"79646356+allmy3@users.noreply.github.com"
] | 79646356+allmy3@users.noreply.github.com |
426da1a0244539ea8cc8154d7640df96e5aef3fc | b23a2f17713479e4116f4a32a7e961900e8cc5f6 | /getfile.py | 3351489704aaabfe2576e20de72ba4e39793a724 | [] | no_license | nkoster/gpgchat | 065b47aaa3203d95541b60015b2e93be84b323ec | aaf9b68334b731da7be2488c7dfb4249ad869f60 | refs/heads/master | 2020-03-23T12:31:23.167382 | 2018-07-24T00:12:12 | 2018-07-24T00:12:12 | 141,564,215 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | import gi
import os
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GObject
class GetFile(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="Choose a File")
origin = os.path.dirname(os.path.realpath(__file__))
vbox = Gtk.Box(orientation=Gtk.Orientation.VERT... | [
"n.koster@portavita.eu"
] | n.koster@portavita.eu |
4279c2961966ea407c9bb4122a1b4d94c4ef2d81 | bb1fa823f9e99814343ac567279ac0c61b733f4c | /random.py | 794d48d9668f2fb7ee4b8bf914c9eb9ec8ac2d65 | [] | no_license | knockcat/Python | 430679ae88c0b6b2eba52c4ae40fc91c6ced7814 | 1441b2e0c662fa00b30e829a2b219b6f2d7942dc | refs/heads/main | 2023-08-17T10:08:51.553700 | 2021-10-11T14:06:01 | 2021-10-11T14:06:01 | 410,287,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | '''
Create a program using random.random() which generates numbers in a range a to b
def generateRandoms(a,b):
rerurn N
'''
import random
print(random.random())
def generateRandoms(a,b):
N = random.randrange(a,b)
return N
print(generateRandoms(10,489)
| [
"noreply@github.com"
] | knockcat.noreply@github.com |
3f290a195113dd6a7d88952146a0350d3c4005df | fb426133a4d2af01ae95bb16b57ac167ee809e4b | /envs/data_utils.py | a559e07314912457c6a0da963a54714d62c513d1 | [
"MIT"
] | permissive | hpi-sam/RL_4_Feedback_Control | 83a7cac4c66f96365135a769ae3e9cc3ba4df63c | 7e30e660f426f7f62a740e9fd4dafb32e3222690 | refs/heads/main | 2023-06-07T06:28:55.321712 | 2021-06-22T09:57:26 | 2021-06-22T09:57:26 | 378,118,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,945 | py | import sys
from scipy import stats
from tqdm import tqdm
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams["font.family"] = "Times New Roman"
import warnings
warnings.filterwarnings("ignore")
ROUNDED_ACCURACY = 4
def transform_data(data: pd.DataFrame) -> pd.DataFrame:
transforme... | [
"rachel.brabender@student.hpi.de"
] | rachel.brabender@student.hpi.de |
27eab4cbe98168742d3f6ccf3d5325268d87fdc4 | ebf2024bd355f66f7ccb7d96345250522c4aa298 | /yoti_python_sdk/version.py | 70e0898b716e1ce7c38fc51d5c14ae402d9c61f4 | [
"MIT"
] | permissive | blockchain-Bobby/yoti-python-sdk | 1af4d5f971343133f81699827ecb8b8b48720c7c | 14e89e159a23176f1b1c84ff49d845e7e54b421f | refs/heads/master | 2020-05-27T23:49:27.004758 | 2019-04-23T10:13:03 | 2019-04-23T13:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | # -*- coding: utf-8 -*-
__version__ = "2.7.1"
| [
"echarrod@users.noreply.github.com"
] | echarrod@users.noreply.github.com |
d210b2cc0dd16f39a0b573034a3ead4fbef0ae4b | 54e7532c89d8c88c86b50d8b4966b21df4732416 | /maml_examples/cluster_maml_trpo_cheetah.py | 795a9001970a5ea4321f9a07be5d5977684a56e8 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | chi6/Model-based-meta-learning-rl | e6facccc139c1f7d8afb17e7d9ff92a64d7ac65f | fda134dcbd87ef3e91f339ea2f836f28ec5f7784 | refs/heads/master | 2020-03-25T04:33:49.083196 | 2018-08-03T08:52:56 | 2018-08-03T08:52:56 | 143,401,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py |
from sandbox.rocky.tf.algos.maml_trpo import MAMLTRPO
from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline
from rllab.baselines.gaussian_mlp_baseline import GaussianMLPBaseline
from rllab.envs.mujoco.half_cheetah_env_rand import HalfCheetahEnvRand
from rllab.envs.mujoco.half_cheetah_env_rand_direc... | [
"chi.zhang@horizon.ai"
] | chi.zhang@horizon.ai |
f56b768381f0da04743a6976acf4ff2dafa9ea41 | 09c689c2d7db4fd80d0809048585919a2772ce2a | /proiect.py | 2d7365754502d30713e7040f03231ed5767bdc4b | [] | no_license | RotaruGeorge/Proiect.LP.image_color_space | d2ed1c0fcbd5c8f4937abff1906b5b14d75f750b | 34a2fd2e63027144f1f88a44124aa654e8b9e1a5 | refs/heads/main | 2023-05-09T00:06:14.173241 | 2021-05-24T05:55:27 | 2021-05-24T05:55:27 | 365,841,324 | 1 | 1 | null | 2021-05-20T05:53:53 | 2021-05-09T20:24:22 | Python | UTF-8 | Python | false | false | 3,245 | py | import cv2
import numpy as np
from tkinter import *
from tkinter import filedialog
import os
import tkinter as tk
from PIL import Image, ImageTk
from PIL import Image, ImageFont, ImageDraw
def stackImages(scale,imgArray):
rows = len(imgArray)
cols = len(imgArray[0])
rowsAvailable = isinstance(i... | [
"noreply@github.com"
] | RotaruGeorge.noreply@github.com |
5cd800c170ee03a8adb3ac3339e617e5d8a29474 | 094f8021f4afa10edb83d0e613890624f9268e3e | /vision_test.py | b087c9105554668bd9e95b97c7d99aa89e098e91 | [] | no_license | mdose/Xibbit | 3fe3ce1b46fcd646ef04a46a5f1199c664856852 | 23be84cbadbe22d506da03453db16db765ed5157 | refs/heads/master | 2022-12-17T04:17:28.382647 | 2018-01-30T05:50:27 | 2018-01-30T05:50:27 | 99,608,797 | 0 | 0 | null | 2022-12-08T00:37:19 | 2017-08-07T18:43:43 | Python | UTF-8 | Python | false | false | 710 | py | import io
import os
# Imports the Google Cloud client library
from google.cloud import vision
from google.cloud.vision import types
# Instantiates a client
client = vision.ImageAnnotatorClient()
# for each artwork run everything below
# The name of the image file to annotate
file_name = os.path.join(
os.path.di... | [
"megan.e.dose@gmail.com"
] | megan.e.dose@gmail.com |
9e54a89ace4cb633ba4d375d05e8a5ed12718b7f | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/fifth/rank_2aq1_C.py | 803fc6f7cced548af7722d0cfac6e9f911e4ec98 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
741a2eade9a96c9ce55757c4ca24892457cdad15 | 41ca5def1befabece018da6102bb79b3baba6370 | /Options_V2.py | b13a28047534709972f7d216cab470c74a43eaa4 | [] | no_license | CesarKagohara/options | 498ec122df64a1d3ad8354c78a8118f0c344a991 | dc9ce040baa3f8abc53b7154bf0733f8ae42abfa | refs/heads/master | 2023-07-02T08:53:43.919404 | 2021-08-12T17:38:28 | 2021-08-12T17:38:28 | 275,586,098 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | #!/usr/bin/env python
# coding: utf-8
# In[44]:
import pandas as pd
import requests
import json
import numpy as np
from datetime import date
from pandas.tseries.offsets import BDay
def b3sa_Options(token):
r = requests.get(token)
vJson = json.loads(r.content)
vJson['token']
optionList = 'https://arq... | [
"53622177+boxveil@users.noreply.github.com"
] | 53622177+boxveil@users.noreply.github.com |
94589aa547fcc98cedf05d1daaeb74814cf76e32 | 2f5972af16cd8264b775d53a21d08d145f554b1e | /api/api.py | 5130a2b4676942d39f73ba4dd5ef6f8e63ca0a8d | [] | no_license | Bill4869/reclycloth | 6d874ad8734dbcf9583ec0ac6762f91152edbbcf | 2ab0e71a314cdfbcd3d42a388b1ca33ed8642188 | refs/heads/main | 2023-08-29T20:44:21.679071 | 2021-10-10T06:29:22 | 2021-10-10T06:29:22 | 414,591,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,312 | py | from pydantic.main import BaseModel
from fastapi import FastAPI
from PIL import Image
from fastapi import FastAPI, Request, File, UploadFile
from typing import List
import io
import cv2
import base64
import numpy as np
from skgtoimg import skech2img
from skgtoimg_shoes import skech2img_shoes
from gen_mask import gen_m... | [
"chanvongnaraz.khampasith.vl@tut.jp"
] | chanvongnaraz.khampasith.vl@tut.jp |
c55deeff8c7eb2de39cdc09670d1bb9f2cdd8518 | a3c264f6d04ee21fab3240de20655efccd231b40 | /password_manager_app/models.py | 754f72022a77fa3a1914ff07b47e7d5039b3bc92 | [] | no_license | JacekEjsmont/PasswordManager | 19a3c824685ca275e3ee5b07ea9eba4dd838278f | c84115172d4e929f22709d3fe77a8e427ad5299f | refs/heads/master | 2022-12-09T13:25:36.347987 | 2018-11-14T09:58:29 | 2018-11-14T09:58:29 | 156,843,737 | 0 | 0 | null | 2022-12-08T01:17:33 | 2018-11-09T10:02:02 | Python | UTF-8 | Python | false | false | 427 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Entry(models.Model):
site_name = models.CharField(max_length=20)
site_url = models.URLField()
login_name = models.CharField(max_length=20)
login_password = models.CharField(max_length=30)
user... | [
"jacek.ejsmont@gmail.com"
] | jacek.ejsmont@gmail.com |
924e7157f296dca05fe05d28ec7c1ab78be05493 | 65d730c548eb08650d7d279b2382b25e6d89518d | /entity/nonce.py | 77307045e478d9fea473466109a8f85735655ff5 | [] | no_license | zooeZuo/MI_eSE | c33da76226a8d06ed17793e030afdc7b7cf0dbd0 | c532fcaa5a3b73a80f51d01b1312d76d8aed67fb | refs/heads/master | 2020-03-09T16:26:57.853369 | 2018-04-10T06:33:23 | 2018-04-10T06:33:23 | 128,885,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# date :2018/1/
# discription :
# vision :
# copyright :All copyright reserved by FMSH company
__author__ = 'zuodengbo'
import random
base = [str(x) for x in range(10)] + [chr(x) for x in range(ord('A'), ord('A') + 6)]
# 二进制to十进制
def bin2dec(str_num):
r... | [
"zooe.zuo@foxmail.com"
] | zooe.zuo@foxmail.com |
099dd6bad485d4212982d773b3a35f5e21d0d0ec | 85f87d9475639047f1f85b29b608386fbe968e3d | /py/day_04/solve.py | c07e55d3f9b9fa13124d4556861594b0e985a91b | [
"MIT"
] | permissive | Thundzz/advent-of-code-2020 | 0a7154a54e258ae078e8c9b6c00bc7164df4a945 | 17a66c20340357e44d61d8a6fd92bbf860f51195 | refs/heads/main | 2023-02-06T12:27:37.629049 | 2020-12-25T18:42:47 | 2020-12-25T18:42:47 | 317,969,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,260 | py | from collections import namedtuple, Counter
from operator import add, mul
from functools import reduce
def parse_field(raw_field):
return raw_field.split(":")
def parse_input(filename):
with open(filename) as file:
lines = [l.strip() for l in file.readlines()]
passports = []
passport = {}
for line in lines:
... | [
"yacinenew@gmail.com"
] | yacinenew@gmail.com |
70988926cd823593d4fc66c9e0c48b210f99b7ac | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/statsmodels/stats/gof.py | 1ae102ea9d91e9c46090866a204b6ab8d7d3d984 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 16,592 | py | '''extra statistical function and helper functions
contains:
* goodness-of-fit tests
- powerdiscrepancy
- gof_chisquare_discrete
- gof_binning_discrete
Author: Josef Perktold
License : BSD-3
changes
-------
2013-02-25 : add chisquare_power, effectsize and "value"
'''
from statsmodels.compat.python import r... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
035e0656aea599dd700ee14ad8f6ce0b6188591d | ef76dd094c83343af4e5f305320b500f13fe635f | /user/decorator.py | 6b19467ec47254acb68c392342ab45edc2148343 | [] | no_license | keywookkim/11-WeWantedExplorers-backend | aaa8c0a4756fb84d556caca83049156acd3ccd3e | 588e67388153e34699011eb1cfba10aaf6266ebf | refs/heads/master | 2023-08-13T17:03:58.692981 | 2021-07-02T00:33:32 | 2021-07-02T00:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | import bcrypt
import jwt
from django.http import JsonResponse
from wwe.settings import SECRET_KEY, ALGORITHM
from .models import UserAccount
def signin_decorator(func):
def wrapper(self, request, *args, **kwargs):
if not request.headers.get('Authorization', None) :
... | [
"42701133+soheon-lee@users.noreply.github.com"
] | 42701133+soheon-lee@users.noreply.github.com |
e0445908419c92743dbb47292ef27376cbbdcffb | d49eff68460d328627d59d651fafb48810d76f8e | /test.py | 25ed9a1967e97158546fe84768cfff4320a6d89c | [] | no_license | Ronaldo009/genPlanByGA | 2661fa4f657edf07762dd3149568d13943f38067 | 0ac0b1aeec8d3b83607f88437229ecc7d62e9de0 | refs/heads/master | 2021-01-21T22:10:21.658824 | 2017-06-23T03:25:40 | 2017-06-23T03:25:40 | 95,179,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/6/13 上午11:50
# @Author : Huang HUi
# @Site :
# @File : test.py
# @Software: PyCharm
import random
GIVEN_QUERY = {'days': [4,14], 'countries': [{'country_id': 28, 'day': None}],
'regions': [{'region_id': 2, 'day': None}, {'region_id': 27, 'day':... | [
"693012166@qq.com"
] | 693012166@qq.com |
1a9fdad84082ad62c188334c8445b608a7a5a019 | e36c5a91306f8d8cf487368d3a1dfae4c03da3c0 | /build/kobuki/kobuki_rapps/catkin_generated/pkg.installspace.context.pc.py | 372c7404214955533195ccc02886f75fca384f77 | [] | no_license | DocDouze/RobMob | 84ae5b96a16028586c9da2008f7c7772bdaa1334 | 6a2e7505eb2207d61b1c354cfd255075b1efbc73 | refs/heads/master | 2020-04-11T07:24:28.958201 | 2018-12-17T11:56:54 | 2018-12-17T11:56:54 | 161,607,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | 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 = "kobuki_rapps"
PROJECT_SPACE_DIR = "/h... | [
"quentin.aubailly@gmail.com"
] | quentin.aubailly@gmail.com |
d90fd35bf40e7a1f2b6daeb33e81655229a263b7 | bf2055e49649d849874bd997d84b80eb9ae5cfaf | /app/config/settings/production.py | 10d395de3a4fe62e5ccd0275b974071c2e19802f | [] | no_license | jmichalicek/bash-shell.net | 99b2fb7b99c7838065703329cf01707b3a4c0737 | 225f21c05289362c91d23561f3d32123e642ca94 | refs/heads/main | 2023-08-31T10:25:01.152443 | 2023-08-25T13:26:38 | 2023-08-25T13:26:38 | 12,030,543 | 3 | 1 | null | 2023-08-25T13:26:40 | 2013-08-11T03:17:14 | Python | UTF-8 | Python | false | false | 455 | py | import os
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from .base import *
sentry_sdk.init(
dsn=os.environ.get('SENTRY_DSN', ''),
integrations=[DjangoIntegration()],
# Since I have no traffic, this might be really low
traces_sample_rate=0.2,
# If you wish to asso... | [
"jmichalicek@gmail.com"
] | jmichalicek@gmail.com |
a13a7592a7f4d8f2714173051ff6dfe2495563d5 | 7134a4b998b6c353fdb113c49d80965753661b42 | /marltoolbox/experiments/rllib_api/amtft_various_env.py | f6900c8bcfbed26d0c4e1219d03eea149f0418aa | [
"MIT"
] | permissive | xingxiaoyu1109/marltoolbox | 806b8ad720055a01c663ef15880b7808b460c5a2 | cae1ba94ccb44700b66a32e0734a0f11c9c6c7fe | refs/heads/master | 2023-05-07T14:56:37.367845 | 2021-06-02T15:54:27 | 2021-06-02T15:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,420 | py | import copy
import logging
import os
import ray
from ray import tune
from ray.rllib.agents import dqn
from ray.rllib.agents.dqn.dqn_torch_policy import postprocess_nstep_and_prio
from ray.rllib.utils import merge_dicts
from ray.rllib.utils.schedules import PiecewiseSchedule
from ray.tune.integration.wandb import Wandb... | [
"maxime.riche@geoapi-airbusds.com"
] | maxime.riche@geoapi-airbusds.com |
84cc6b5087235720d2d70cc3a974c5b7ffb22590 | 41b8504bc0a7f2aaedd2f4986c3e66fcae7d9b2b | /pyoembed/data_types/rich.py | 8ec6615f222fd87f7d50c6e76bde486707bb55ed | [
"BSD-3-Clause"
] | permissive | conversence/pyoembed | b15124dc092c8863e01ab1128f888bfc21a889b7 | f3d819418877565cd88839054bd826ad79d4f9cf | refs/heads/master | 2020-05-25T14:55:30.936629 | 2020-05-01T18:25:10 | 2020-05-01T18:25:10 | 187,857,180 | 0 | 0 | BSD-3-Clause | 2019-05-21T14:44:37 | 2019-05-21T14:44:36 | null | UTF-8 | Python | false | false | 167 | py | from pyoembed.data_types import BaseDataType
class RichDataType(BaseDataType):
priority = 3
name = 'rich'
required_fields = ['html', 'width', 'height']
| [
"rafael@rafaelmartins.eng.br"
] | rafael@rafaelmartins.eng.br |
68f6a28d48852a7385fe6d0e1fde46a273192a95 | 741d9469b5dce73f1a91525ee0495402f3e3db53 | /posts/views.py | 62c2916c80dede5b914a0833c23c6b1367cd2546 | [] | no_license | adcabrod/Pr-ctica3djangopython | 241fa168c25b88eacaa246106d8550eed9155c82 | c09d52926cb6816fec6a04b8f64a46e8e8b0277b | refs/heads/master | 2021-01-09T06:01:28.843336 | 2017-02-03T23:30:27 | 2017-02-03T23:30:27 | 80,878,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,502 | py | from django.shortcuts import render
from posts.models import Post
from django.contrib.auth.models import User
from django.http import HttpResponseNotFound, HttpResponse
from django.views import View
from django.utils import timezone
from django.shortcuts import render
from posts.models import Post
from django.contrib.a... | [
"adriancabrod@gmail.com"
] | adriancabrod@gmail.com |
1336583395efc34384b1a523b1411becf3b1882a | a19ebd3f326c4f2a8dad58bda6de946ac8366e02 | /catkin_ws/build/tf2_ros/catkin_generated/pkg.develspace.context.pc.py | 168e25456249981067feddeffee6e2f74274a093 | [] | no_license | pynpyn/ballbotRepo | c9a1ba431c071ea8298cb42b01fcc03438acbdda | 84e8740f7c945fd6e8b70584d46a8402fa9aa973 | refs/heads/master | 2020-04-01T22:14:21.101449 | 2018-11-14T17:58:11 | 2018-11-14T17:58:11 | 153,697,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/yinan/ballbotRepo/catkin_ws/src/geometry2/tf2_ros/include".split(';') if "/home/yinan/ballbotRepo/catkin_ws/src/geometry2/tf2_ros/include" != "" else []
PROJECT_CATKIN_DEPENDS = "actionlib;action... | [
"pynpyn1016@gmail.com"
] | pynpyn1016@gmail.com |
09a2b490113541fcea24bf983ccd3be258fb29d0 | 71536013ef36dfca22f43f822d5c8f5c42d763da | /testfile.py | 871798321c4f73a51f07240d4f2e079f71a266eb | [] | no_license | jerryneal/TradeChart | 9b179c541778fd3417c80f9e9d89aaf1c068ca42 | 51dbc269bd4697751ad1ad68c3e700b89439e159 | refs/heads/master | 2021-01-12T11:27:29.305368 | 2016-12-03T15:47:05 | 2016-12-03T15:47:05 | 72,930,614 | 0 | 0 | null | 2016-11-22T16:12:38 | 2016-11-05T14:17:50 | Python | UTF-8 | Python | false | false | 976 | py | from time import time
from math import exp, sqrt, log
from random import gauss, seed
if __name__ == '__main__':
seed(20000)
t0 = time()
# Parameters
S0 = 100. #Initial Value
K = 105. # strike price
T = 1.0 # Maturity
r = 0.05 # riskless short rate
sigma = 0.2 # volatility
M = 50
... | [
"mckenzo12@live.com"
] | mckenzo12@live.com |
a13b7f305965e6ed44d45a697ccf6e784f56af46 | 77e7e25a625504774a10ec3aac196370e135640e | /youtubeclone_api/comments/serializers.py | e26532d3c4593fa2814a65d6cdc482ed501af6a7 | [] | no_license | DaveyCrockett/YouTube_Clone_API | e9817810caede21b0b495463341dd22bace95bc7 | 45b74108b8a10ee8e63be3b2972199126adacb79 | refs/heads/main | 2023-05-18T23:54:21.611857 | 2021-06-02T13:53:58 | 2021-06-02T13:53:58 | 370,783,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from rest_framework import serializers
from .models import Comment
class CommentSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = ['comment', 'commentId', 'videoId'] | [
"augustspies22@gmail.com"
] | augustspies22@gmail.com |
f42db6bb9776d4f80162c4e50b2a19955c741082 | 625ccb2daedc094862cda12eb8805884912462c2 | /FigforResponse/R_3_3/code/runvConv.py | 78cf227d00aa337e83c63795ad0ddf29ffb559d3 | [] | no_license | shunsunsun/vConv-Figures_and_Tables | 4a5bf20f18aa6f44e6ec2fcc9f265aa510e71928 | e1813d43352eb763fd0c8b5b90b4c92e83792fe4 | refs/heads/main | 2023-04-13T11:56:11.641674 | 2021-04-30T02:53:44 | 2021-04-30T02:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import os
from datetime import datetime
def tictoc():
return datetime.now().minute + datetime.now().second + datetime.now().microsecond * (10 ** -6)
def vConv(filename):
"""
use memechip
:param InputFile: fasta file
:return:
"""
DataRoot = "../../../data/chip-seqFa/"
tmp_cmd = "pyth... | [
"lijy@mail.cbi.pku.edu.cn"
] | lijy@mail.cbi.pku.edu.cn |
6f93a99b11370bb5c25429eb3103be6ed4897061 | df7807bb90d2bc3ad6dab75e50bba34a7f497c17 | /Rollar-Coaster.py | a676d4c3c39f655d2597876658408c5ecaa988f2 | [] | no_license | DhruvUpadhyaya/Python | 68b7f09252c9d6ad0c48f08ebb67d275557ad71e | d80891ac1bd8b7f7f61d62aebb2f9f7253cbc946 | refs/heads/main | 2023-03-30T13:58:00.133932 | 2021-04-11T12:28:38 | 2021-04-11T12:28:38 | 354,930,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | #Rollar Coaster Ticket project
print('Welcome to Rollar Coaster ride')
height = float(input('Enter your height in m '))
age = int(input('Enter your age '))
total=0
if height > 120:
print('You can ride')
if age<12:
print('You need to pay $5')
total=5
elif age<=18:
print('You need to p... | [
"2793dhruv@gmail.com"
] | 2793dhruv@gmail.com |
4bc673e6bf00bef90ef3ddde63aedb247acdb117 | 032a59902e47f6843ac9c76f6e27eb1d4a78c27d | /scripts/python/blend_sat/grid_convert.py | 851b413692424e4d6da518c70edca3055d81b5bc | [
"Apache-2.0"
] | permissive | OSADP/Pikalert-Vehicle-Data-Translator- | 17411c602879eb4fb080201973b4a966f9405a4b | 295da604408f6f13af0301b55476a81311459386 | refs/heads/master | 2021-03-27T12:02:18.535636 | 2017-04-03T16:09:38 | 2017-04-03T16:09:38 | 25,056,408 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | #! /usr/bin/env python
import os,sys
import time
import name_schema
import index_file
import log
import tim
convert_command = "grid_convert"
def grid_convert(pres_time, infile_path, var_names_file, cdl_file, output_dir, out_index_file, logfile, input_base, output_base, testing):
success = 0
logfile_path = ... | [
"bpetzke@ucar.edu"
] | bpetzke@ucar.edu |
9a37239d6928f07f2fd778ce45b6b806d19ff203 | 617f1b605be66e00d6a8c006db96e8131ad9d4ff | /xtreme_vision/Segmentation/__init__.py | f9b4fe2d2eecfd5dd1d074699964034ab891f202 | [
"MIT"
] | permissive | AsadRasheed-AR/Xtreme-Vision | 8d7b5966c0c2c267538c27c0858ec0f4cf2807c3 | 2e09e6972c6b2752bc37f8356fafda151acacd0d | refs/heads/master | 2023-03-26T11:34:04.459514 | 2021-03-27T03:08:40 | 2021-03-27T03:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,031 | py | """
MIT License
Copyright (c) 2020 Adeel <kingadeel2017@outlook.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mod... | [
"kingadeel2017@outlook.com"
] | kingadeel2017@outlook.com |
8f6fa2943fb0344752b6d9c6e9e3ab31b645f8ed | 0b67d0a09cd97c51af1b81833996e1ae1faa82a6 | /python/extract_line.py | db5782d7b667d3c03a7217a60e8f2893e3ae2ebb | [] | no_license | draemonash2/codes | 6bf56ca92d0ef06df41817721be3772ee5d77b79 | 47fe44714c072c4b48a9e56dba086053a5930706 | refs/heads/master | 2023-08-27T20:44:14.455438 | 2023-08-27T06:25:06 | 2023-08-27T06:25:06 | 7,755,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | #!/usr/bin/env python3
# usage : python3 extract_line.py <infile> <outfile>
import re
import sys
def main():
args = sys.argv
if len(args) == 3:
pass
else:
print('Arguments are too short')
return 0
in_file_name = args[1]
out_file_name = args[2]
pattern = r'(\[... | [
"draemon_ash3@yahoo.co.jp"
] | draemon_ash3@yahoo.co.jp |
d07f0b06b191ac9fd9da7bb745f538817f7787ec | ff50e1efc0e6272f64efc0e25465915b08c805c1 | /Course_1_Python_Programming/Notebook_2.py | f04b90ee6af88aa29e3deac2d8d940ebaba51d86 | [] | no_license | DemetriusStorm/study_stepic | b97c8c88ae64d5c5dee217b42543cd5096b32802 | 341832a3bf45e63dcbedad2f1f50e55fccc13965 | refs/heads/master | 2021-06-12T12:03:37.992559 | 2021-04-30T10:05:40 | 2021-04-30T10:05:40 | 184,598,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | import turtle
'''
forward(X) Пройти вперёд X пикселей
backward(X) Пройти назад X пикселей
left(X) Повернуться налево на X градусов
right(X) Повернуться направо на X градусов
penup() Не оставлять след при движении
pendown() Оставлять след при движении
shape(X) Изменить значок черепахи (“arrow”, “turtle”, “circle... | [
"demetrius.storm@gmail.com"
] | demetrius.storm@gmail.com |
4a8034df0f5f993a502e6fa757a5ff67607e4b9a | f9eccb11c3962d4c9193f232d8e3d6ffc3110b12 | /1st/load_vgg.py | fb89396f1f3910f525aac8b867ee8c4727549a9a | [] | no_license | ninopira/study_pytorch | 57c17b3af1110b32621624c80ac5276783ef738e | 1dbb356d68d9ceeab1aeb0f33aa3648d73e59ac2 | refs/heads/master | 2022-04-09T15:08:47.228955 | 2020-03-23T04:37:46 | 2020-03-23T04:37:46 | 243,179,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,479 | py | # パッケージのimport
import numpy as np
import json
from PIL import Image
import matplotlib.pyplot as plt
import torch
import torchvision
from torchvision import models, transforms
# PyTorchのバージョン確認
print("PyTorch Version: ", torch.__version__)
print("Torchvision Version: ", torchvision.__version__)
use_pretrained = Tru... | [
"nino0114hira@gmail.com"
] | nino0114hira@gmail.com |
4e6b20554863b6c56ab9512114ee081741cb2a08 | 8be39fd741cbbb08439433188ca1bc59ee5cf11f | /data_handler/data_parser.py | 126a9f7a129ef094c81285efdd97d74724bc3838 | [
"MIT"
] | permissive | tpimentelms/fast-conversational-banking | ca1e699261f989f3b535a50782062c000985ba1e | b9d3ddfe3adb78522fafab91c2d20495db063dda | refs/heads/master | 2021-03-16T21:30:51.253223 | 2018-02-28T20:30:15 | 2018-02-28T20:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,739 | py | import re
import torch
from torch.autograd import Variable
from .language_dict import LanguageDict, EOS_token, PAD_token
class DataParser(object):
def __init__(self, max_len, cuda=True, quiet=True):
self.max_len = max_len
self.input_max_len = 0
self.output_max_len = 0
self.quiet... | [
"tiagopms@gmail.com"
] | tiagopms@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.