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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
952b3d75732ae11da3e647c86bc4e5258444150e | 242b8f14ed221979a1211c9dfea9750d1dc847b3 | /app/__ini__.py | 6f184298c8bb73efc0785b548027da9dea09d546 | [
"MIT"
] | permissive | Jonathpc/company-flaskapp | f7a221f1409a0596fffa36aab0e99336190b1615 | 1e0e5631e8131f4f4a58d1810fbe5a0e44e2e148 | refs/heads/master | 2022-11-13T05:18:47.195236 | 2020-07-15T02:42:08 | 2020-07-15T02:42:08 | 279,735,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from flask import Flask
app = Flask(__name__)
if app.config["ENV"] == "production":
app.config.from_object("config.ProductionConfig")
elif app.config["ENV"] == "development":
app.config.from_object("config.DevelopmentConfig")
else:
app.config.from_object("config.ProductionConfig")
from app import ... | [
"noreply@github.com"
] | Jonathpc.noreply@github.com |
a673490634f6d5ccbf0aab99ff19ac353dd7567a | c21faf85627b1cfd96494aac73cc40e5f11ebb46 | /results/test_188.py | 0b34ac896ae50c37329c5d2aad8aae65d061d40a | [] | no_license | ekkya/Cyclomatic-Complexity | d02c61e009087e7d51738e60605875741532b878 | 172db2efdd974f5abad964e335552aec974b47cb | refs/heads/master | 2021-08-28T17:13:14.718314 | 2017-12-12T22:04:13 | 2017-12-12T22:04:13 | 112,042,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 102,256 | py | """
Author: Ankit Agarwal (ankit167)
Usage: python google.py <keyword>
Description: Script googles the keyword and opens
top 5 (max) search results in separate
tabs in the browser
Version: 1.0
"""
import webbrowser, sys, pyperclip, requests, bs4
def main():
if len(sys.argv) > 1:
keyword =... | [
"ekkya@tcd.ie"
] | ekkya@tcd.ie |
6c907dbb07bf1ef1ce4fdced214be391d28b2ca8 | eda9187adfd53c03f55207ad05d09d2d118baa4f | /python3_base/python_class_method.py | 4bb8dc5866ce970db1d955879a443c4426f31c41 | [] | no_license | HuiZhaozh/python_tutorials | 168761c9d21ad127a604512d7c6c6b38b4faa3c7 | bde4245741081656875bcba2e4e4fcb6b711a3d9 | refs/heads/master | 2023-07-07T20:36:20.137647 | 2020-04-24T07:18:25 | 2020-04-24T07:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
'''
@Author: Yan Errol
@Email:2681506@gmail.com
@Date: 2019-05-20 17:22
@File:class_method.py
@Describe:静态方法
'''
from math import sqrt
class Triangle(object):
def __init__(self, a, b, c):
self._a = a
self._b = b
self._c = c
@staticmeth... | [
"2681506@gmail.com"
] | 2681506@gmail.com |
b6db4caaa1b3f409974642244d2e45e58bea2b74 | d94d22ab20a11ab6c473d8aba4038c97f75806c4 | /python小栗子/t57.py | c34766c279355c2457734c45293ae01587fccbaf | [] | no_license | songszw/python | a1d0419b995df13aee5997d24c09dccab91ac9e0 | 5135a3efcdcc2a37f7321ae19271c9315f48bcaf | refs/heads/master | 2020-02-26T16:24:28.411919 | 2017-04-26T09:08:41 | 2017-04-26T09:08:41 | 71,195,225 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | print('|--- 欢迎进入宋氏通讯录 ---|')
print('|--- 1:查询联系人资料 ---|')
print('|--- 2:插入新的联系人 ---|')
print('|--- 3:删除已有联系人 ---|')
print('|--- 4:退出通讯录程序 ---|')
contacts = dict()
while 1:
num = int(input('please enter the number you want to do: '))
if num==1:
name = input('please enter the name you waht to... | [
"noreply@github.com"
] | songszw.noreply@github.com |
3b1ef4589a9160918ff64aa8241df8fa9664909d | cd2efd6a8f7a8c7eec88e03c18932171c78ee69b | /app/api/crud.py | c4d36257fac50aaa8778262b4f86fcead832ff7d | [] | no_license | Milchdealer/ragna0-vendings | db3d895387c28482c84650d8c1d40628d1f8b63a | f8350ff489cefb3105c5ff89fc93ecf52811877d | refs/heads/main | 2023-02-08T01:35:39.021253 | 2020-12-15T15:50:18 | 2020-12-15T15:50:18 | 321,670,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | """
CRUD endpoints for the API.
"""
from datetime import datetime
from sqlalchemy import func
from sqlalchemy.orm import Session
from scraper.src import db as model
def get_vendings_latest(db: Session):
latest = db.query(func.max(model.Vending.run_id)).one()[0]
return db.query(model.Vending).filter(mode... | [
"teraku@teraku.de"
] | teraku@teraku.de |
198dda57318ae5a0180b8547867dd3d1b3034380 | 4df33fdbf9d00919ba99e3dff90dc08c65269ff8 | /app/request.py | 13ff6cf1510522b73c45757fa4c1428087eff6d1 | [
"MIT"
] | permissive | theonilahtash/News-Highlights | 89a0911d9884788fde5b56a4c582e556883dd84d | d50d81ba63dc3de3941c2a65d3d7c08c802ef604 | refs/heads/master | 2020-04-05T10:49:11.961749 | 2018-11-14T08:59:34 | 2018-11-14T08:59:34 | 156,811,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,353 | py | import urllib.request,json
from .models import Source
from .models import Articles
from . import main
# News = news.News
# Articles = articles.Articles
#Getting api key
api_key = None
#Getting the news base url
# base_url = None
base_url='https://newsapi.org/v2/sources?&category={}&apiKey={}'
#Getting the articles ... | [
"theonilahtash@gmail.com"
] | theonilahtash@gmail.com |
1b59163e267a1c4ca5354b123286b31c6efaf4ad | 1105e5a86af5fba61bac894a485d42f5e075e029 | /Client_machine/Test/04_pyshark/live_inf.py | 96a6b77f61cc3cc7f335a3329eba32386d564fd2 | [] | no_license | baoquocnguyen/HAS | 7d0de1a5a94f5aadb249df9d7c517e94cc510070 | 7a9df72ded8c32145e0b338b6761ee8acd857482 | refs/heads/master | 2021-07-05T08:21:25.806871 | 2017-09-29T10:12:07 | 2017-09-29T10:12:07 | 105,249,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import pyshark
capture = pyshark.LiveCapture(interface='ens160')
capture.sniff(timeout=10)
capture
for packet in capture.sniff_continuously(packet_count=5):
print 'Just arrived:', packet
print '############:', packet['ip'].dst
#def print_callback(pkt):
# print 'Just arrived:', pkt
#capture.apply_on_packets... | [
"baoquoc.nguyen@orange.com"
] | baoquoc.nguyen@orange.com |
daa50c983df30fee70ede9c50eeba583cdcbcea9 | 1bd27697b31a0f9916500b6ffe48102ddb63f0d5 | /compute_total_intronic_composition_dm_melanogaster.py | 672a8280e99b259aac5b33f0000e2bc164be6c0c | [] | no_license | rhondene/Misc_bioinformatics | 60eb77bde02957d47ae758a4da3e3f92c14e556d | 48ef12183d33a4393cb5b63853fe24fc5603ca1e | refs/heads/master | 2022-06-22T19:51:51.454325 | 2022-06-20T19:01:58 | 2022-06-20T19:01:58 | 197,657,023 | 2 | 1 | null | 2019-10-31T22:38:56 | 2019-07-18T21:06:07 | Python | UTF-8 | Python | false | false | 4,428 | py | """Author: Rhondene Wint
Purpose: Using intron-only bed file and the genome gtf file to extract the transcript witht the longest
intron for each gene in D.melanogaster in order to compute total intronic composition in D.melanogaster
You can also use this output to download these intronic sequences from flybase or e... | [
"noreply@github.com"
] | rhondene.noreply@github.com |
706cb3178cf5d5edfbbc2dabb13877b5af9ec5fb | 2a4d311b3949ac6921745de038b456059b60c061 | /fab_utils/fabfile/upstart.py | 1b831bb147ea43bb637c3d2b38a984cb5d4d098b | [] | no_license | jonathanmarmor/fab-utils | ec2684a55c47062f3c26fb02121013ca30b593e2 | 73808fefba877be0dcb6760aba099eb7b45a68bc | refs/heads/master | 2021-01-10T09:55:26.547383 | 2013-05-09T18:46:15 | 2013-05-09T18:46:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | from fabric.api import task, run, sudo, execute
from fabric.contrib.files import upload_template
@task
def start(service_name):
sudo('initctl start {}'.format(service_name))
@task
def stop(service_name):
sudo('initctl stop {}'.format(service_name))
@task
def restart(service_name):
result = sudo('initc... | [
"jm@ex.fm"
] | jm@ex.fm |
c40402e723acadf3f972ad05fd151038b1f037eb | 73c3d705d2849e300af44f1f423527d55cb5dfaf | /tsim/core/network/endpoint.py | 8bb21085431781c33d1c3d0a8502057dd8247a23 | [
"MIT"
] | permissive | eduardomezencio/tsim | 366d0ffa1baf14a447ce626cc47b0734ffbb8e06 | 60ac63152a98fd7dabb59c66367bca216e6a7370 | refs/heads/master | 2023-03-19T01:38:28.027648 | 2021-03-13T03:55:51 | 2021-03-13T03:55:51 | 282,103,131 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | """Endpoint class."""
from __future__ import annotations
from enum import Enum
class Endpoint(Enum):
"""Endpoints of a Way."""
START = 0
END = 1
@property
def other(self) -> Endpoint:
"""Get the opposite endpoint."""
return Endpoint.END if self is Endpoint.START else Endpoint.S... | [
"eduardomezencio@protonmail.com"
] | eduardomezencio@protonmail.com |
d89d6629586383af05bc3f8d4f0ee681a7e0143c | e6ff0823bf0bd21214582e74c6a277153372e41e | /website1/website1/wsgi.py | 69fd7c443fbd3c111c40db6ac67e0d499e924a4b | [] | no_license | DarkerPWQ/Amazon | 573295b60f024ee345a898fb8fb7ec6116055c09 | c5e8e46d7664854a26b6ef84b1d33cd02abb440c | refs/heads/master | 2021-01-11T00:20:09.142432 | 2016-10-11T07:31:03 | 2016-10-11T07:31:04 | 70,566,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for website1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import sys
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "website1.settings")
from d... | [
"584371093@qq.com"
] | 584371093@qq.com |
b4f910b51a755afc1ed0f93bd5283b676fd72f78 | 8f2308656cb33d245e66ae0647dbc12e9323cd57 | /Week 1/Grocery_App/todo.py | ae08b848501eb73a7a3a483a6fdc0f71a3f15f72 | [] | no_license | Garton67/Digitalcrafts | c906d81fdf8b3f8a1aec197d115c4f47b1438d09 | 84fef9bcc8defcbe38a4b2b7b824cd82e6bbb881 | refs/heads/master | 2023-08-02T13:39:27.214321 | 2021-09-17T05:05:37 | 2021-09-17T05:05:37 | 384,536,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | tasks = []
def add_task(user_input, tasks):
task = input("Enter the task: ")
priority = input("Enter the priority (high/medium/low): ")
todo = {"task": task, "Priority": priority}
tasks.append(todo)
return tasks
def view_task(user_input, tasks):
if len(tasks) == 0:
print("You have n... | [
"50034619+Garton67@users.noreply.github.com"
] | 50034619+Garton67@users.noreply.github.com |
36641dbb4d592eb32dae7fdb53a0d1aaec0d5277 | 72a9976d9e6c11459134521cc1e9d3ee0becf765 | /knowledge/urls.py | 851d34685226756f84e602d6a9f1cb923e3863c1 | [] | no_license | vinaykumar1908/082021i | a0f69745b726baa3a4981208b040956073a57597 | 85950350f17781e791b87718eeecc1f65d39a056 | refs/heads/master | 2023-08-28T00:36:05.818798 | 2021-09-16T18:24:27 | 2021-09-16T18:24:27 | 400,771,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from django.urls import path, include
from .views import PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView, UserPostListView
from . import views
urlpatterns = [
path('', PostListView.as_view(), name='kblogHome'),
path('kuser/<str:username>', UserPostListView.as_view(), name='kuser-po... | [
"vinaaykumar1908@gmail.com"
] | vinaaykumar1908@gmail.com |
100efc94fe97678e4d050167f49f1a7ead921301 | 4dd87e032760f77855727a36c02ab670d9ca8ff8 | /file-uploader/appengine_config.py | 21778b35475168809f3e6b5f3adbd15fdeca3de6 | [] | no_license | ramuta/gaedevs-examples | 09f14ae4fd444d898483f303aead08fd93839935 | f8a077bad98a2f40739d59321aad67dad6407c54 | refs/heads/master | 2020-04-08T09:56:13.315017 | 2018-11-27T17:01:33 | 2018-11-27T17:01:33 | 159,246,286 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | from google.appengine.ext import vendor
vendor.add('libs')
| [
"matej.ramuta@gmail.com"
] | matej.ramuta@gmail.com |
52544a68196b2e0b07ee8c06ab9dee21967ae929 | 7f0eb1b364d7762a95146126cd8d9dcc470f0b10 | /main.py | 36d2dce80a99645bc7eeeeeee59bc9078f64f03a | [] | no_license | dudulangjiao/NLP_Speech | 46395b640092d3a98d159fda5afd560d1e3abf9c | f54ba70072d176f3259eab87b9da407f707764e8 | refs/heads/master | 2020-04-28T22:50:56.649472 | 2019-03-31T08:20:38 | 2019-03-31T08:20:38 | 175,234,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,230 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from models.base import LtpProcess
from models.other import process_page
from pyltp import SentenceSplitter
import mysql.connector
import time
def main():
"""从讲稿数据库取出文本内容,交给ltp处理。"""
print('程序开始运行......')
time_start_main = time.time()
cnx = mysql.connector.co... | [
"lin_bo_lin@126.com"
] | lin_bo_lin@126.com |
21b5a3e7546bab907c383a15e03edce15bad86b0 | 7af6aac4433d1a7da6213ae3b3310d9157587eab | /common/do_mysql.py | 1fc1b5fd5dd5739a351f104b30f33c8ddf45d824 | [] | no_license | Leihj/newest-code-api | ec9c074f381b64d793ce965000319ac566ee7fb7 | 67c3d5f2118623f2934b038e2f18a1a9828f85be | refs/heads/master | 2022-12-21T04:06:51.887419 | 2019-08-01T08:01:48 | 2019-08-01T08:01:48 | 199,588,319 | 1 | 0 | null | 2022-12-08T05:20:06 | 2019-07-30T06:23:21 | Python | UTF-8 | Python | false | false | 2,461 | py | # -*- coding: utf-8 -*-
# @File : do_mysql.PY
# @Date : 2019/7/9-11:58
# @Author : leihuijuan
# @Emali : huijuan_lei@163.com
import pymysql
from common.logger import get_log
from common.config import config
logger=get_log(__name__)
class Do_Mysql:
def __init__(self):
self.host=config.get_str("DB... | [
"leihuijuan18607353919"
] | leihuijuan18607353919 |
509b043958ecf41f0f38c5f2c9c22a9f3826f34b | 074279d6b63c9cd25c1353624710ed1fb422b30f | /j2ee模式-前端控制器模式.py | 53e5ab14544ddcb6c8ff3233c365a535f8179b88 | [] | no_license | qqizai/python36patterns | edd106f496a1aa7eda5d9070a6d82f142a808621 | 39052df13db9a54cb8322d87edbc2dbe6ff06a07 | refs/heads/master | 2022-11-12T14:01:32.341802 | 2020-06-29T02:23:46 | 2020-06-29T02:23:46 | 281,970,231 | 0 | 1 | null | 2020-07-23T14:13:31 | 2020-07-23T14:13:30 | null | UTF-8 | Python | false | false | 2,562 | py | # -*- coding: utf-8 -*-
# @Author : ydf
# @Time : 2019/10/9 0009 15:32
"""
前端控制器模式(Front Controller Pattern)是用来提供一个集中的请求处理机制,所有的请求都将由一个单一的处理程序处理。该处理程序可以做认证/授权/记录日志,或者跟踪请求,然后把请求传给相应的处理程序。以下是这种设计模式的实体。
前端控制器(Front Controller) - 处理应用程序所有类型请求的单个处理程序,应用程序可以是基于 web 的应用程序,也可以是基于桌面的应用程序。
调度器(Dispatcher) - 前端控制器可能使用一个调度器对... | [
"909686719@qq.com"
] | 909686719@qq.com |
e225625a7101aae65a7497d1bbd3476b83a2339a | 983e8054677b225a3adfde8610c45089562a14e1 | /src/AST/StatementType/WhileStatement.py | bdba04ed35ed57b19e5be6f05ccd5f6337b4afcd | [] | no_license | Roooooobin/final-project-for-Practice-of-Compiler-Construction | 792c8e621b891d0936db7eb788b60d28f8d7b5bf | c1fa44080fa3612b73c5e709693e6419412a2d10 | refs/heads/master | 2020-08-27T23:05:43.109765 | 2019-11-08T01:41:56 | 2019-11-08T01:41:56 | 217,514,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | """
# -*- coding: utf-8 -*-
# @FileName: WhileStatement.py
# @Author : Robin
# @Time : 2019/11/2 8:58
"""
from src.AST.Statement import Statement
from src.utils import padding
class WhileStatement(Statement):
def __init__(self, expression, statement, symbol_table):
Statement.__init__(self)
sel... | [
"35558127+Roooooobin@users.noreply.github.com"
] | 35558127+Roooooobin@users.noreply.github.com |
596bac80eab215fb0ec1623425822f1414b5821e | d9f1d1a9201d0a717ddc6ce6ff8181a252d686f4 | /apps/applications/earbud/qcc512x_qcc302x/QCC3020-AA_DEV-BRD-R2-AA/dfu/20190514144426/scripts/20190514144426.py | 32db395178f1250940a2be41f5e8642bd0aa6d17 | [] | no_license | hfutxqd/QCC_DEV | a9f155938a0cba26551d45e48813fd33e1c39c56 | fa440e13297f7e178803a6b5756a23332acd3ef5 | refs/heads/master | 2022-01-04T23:50:03.527914 | 2019-05-15T01:38:20 | 2019-05-15T01:38:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | #!/usr/bin/env python
# Automatically generated input script for dfu_file_generator.py
dfu_image_parameters = {
"gen_flash_image": "True",
"bank": "bank1"
}
flash_device_parameters = {
"block_size": 65536,
"boot_block_size": None,
"alt_image_offset": 2097152
}
host_tools_parameters = {
"devki... | [
"xihu.fang@bolutek.com"
] | xihu.fang@bolutek.com |
d81ca3d2f986e4c7af9c64432aef10385266e46b | 8cc30a27835e205a3476783106ca1605a6a85c48 | /amy/workshops/migrations/0066_merge.py | ef0455252831a8b0cfaf3e51343f4267be07ade1 | [
"MIT"
] | permissive | gaybro8777/amy | d968edc78bbd3f63f3353450334721628dbbc0f4 | 3cf99aed58a0f0acf83d2645a30d8408208ccea9 | refs/heads/develop | 2023-03-07T22:08:28.692700 | 2021-02-23T18:06:06 | 2021-02-23T18:06:06 | 341,930,505 | 0 | 0 | MIT | 2021-02-24T17:22:08 | 2021-02-24T14:40:43 | null | UTF-8 | Python | false | false | 304 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('workshops', '0064_dc_instructor_badge'),
('workshops', '0065_multiple_memberships'),
]
operations = [
]
| [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
b096305b5cc4c3410d6bd9eabf721a6570288e92 | f28c8f8e53ed41b6d1bccd02ba1d50045e214762 | /sortSpecial.py | 402474e07c3ed0c928f6ba9c8b4da838dd008841 | [] | no_license | keyplay/pythonLearning | 3461f5bcae54f8464f2617131f9a84630c417b4c | b8fccf0fbf0a835e30b9280d7369149ee967e481 | refs/heads/master | 2020-07-23T15:49:51.438309 | 2016-12-19T15:33:21 | 2016-12-19T15:33:21 | 66,745,818 | 0 | 0 | null | 2016-09-10T12:06:50 | 2016-08-28T02:39:37 | Python | UTF-8 | Python | false | false | 187 | py | #! python2.7
# sortSpecial.py - sort the tuple by name.
def by_name(t):
return t[0]
L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 88)]
L2 = sorted(L, key=by_name)
print L2
| [
"noreply@github.com"
] | keyplay.noreply@github.com |
134b914fc5e20015e1f5c86296b15c48c344eab8 | d7e9cdf4e92388b897066010c1b8d12d22ada267 | /arduino/code/Nano_A0A1_LCDPrint.py | e94e78a7071271cb88b519007f71f1bd0b71e976 | [] | no_license | adavidson32/EOTG | 700c146944c98ea88f4288bed97e7ab7f738996a | 8ad02cfb0e71e972b7a8789ffaba2a60ab2d29ee | refs/heads/master | 2020-05-26T13:55:54.343848 | 2017-04-25T18:43:40 | 2017-04-25T18:43:40 | 85,002,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | include "LCD LIB HERE"
int A0_samples = 0; // value read from the pot
int A1_samples = 0;
void setup() {
Serial.begin(115200);
}
void loop() {
A0_samples = analogRead(0);
A1_samples = analogRead(1);
Serial.print("A0: "); Serial.print(A0_samples); Serial.print(" \t A1: "); Serial.println(A1_samples);
... | [
"noreply@github.com"
] | adavidson32.noreply@github.com |
3b20726f7cd79414687d2480e0d2043e30abc44a | 5996263a6285f6388c1a60bf4abf81c3bd199ffb | /src/house_prices_functions.py | 03d02839f650bec90b04631d2b149a74d98fbf95 | [] | no_license | hamedrazavi/house_price_prediction_kaggle | c175169073e640b816f8ba152067d506688dec34 | c4395f40939200fe91fcb484ca061a3aa2696065 | refs/heads/master | 2020-03-14T11:30:24.127043 | 2018-07-20T11:46:26 | 2018-07-20T11:46:26 | 131,591,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,630 | py | import seaborn as sns
from matplotlib import pyplot as plt
from sklearn import model_selection, ensemble, linear_model
from sklearn.kernel_ridge import KernelRidge
import lightgbm as lgb
import xgboost as xgb
from sklearn import metrics
import pandas as pd
def PlotCorr(df, feature):
sns.barplot(x=df[feature], y=d... | [
"srazavi@biorobpc30.epfl.ch"
] | srazavi@biorobpc30.epfl.ch |
f9023a1da5efba1124204d1d8a76778d9c15c29d | d18f74c0683fa412833fc7b68f737226dcf0f5df | /setup.py | 70e68c224d914b125b04f0aa01c8f602ff39fa0f | [] | no_license | phymhan/gomoku | ab22b19c2f59ea63aba3015f2b3ce53bf1b440e5 | e48e215fe24236ccccfa5edb0709a22bed4624b9 | refs/heads/master | 2021-08-28T23:06:50.620937 | 2017-12-13T07:49:45 | 2017-12-13T07:49:45 | 114,087,358 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | import cx_Freeze
executables = [cx_Freeze.Executable("fivechessonline21.py")]
cx_Freeze.setup(
name = "Five-Chess",
options = {"build_exe": {"packages": ["pygame"],
"include_files": ["./sources/pics/board.png",
"./sources/pics/cp_k_29... | [
"hanligong@gmail.com"
] | hanligong@gmail.com |
03f2726d315572406a731e6e09cafe15414c11c8 | b5020ca3f914d5f8ce1cde36376e37fa5f8b1322 | /weirdtextapi/weirdtextapi/wsgi.py | 57b28f1a806c42ec84b76a40c491de144f8a54c1 | [] | no_license | michalilski/weird-text-api | 848fc10a89b6671c46b2694108abea64c978267b | d60b132c9a4663b6b8482e4bc5d6af272d7d8eea | refs/heads/main | 2023-05-14T19:03:17.096316 | 2021-05-24T13:49:20 | 2021-05-24T13:49:20 | 370,341,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for weirdtextapi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"michal_ilski@icloud.com"
] | michal_ilski@icloud.com |
54fdb90defd17f79a01648b7ef2c33d62cb46d3b | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /cpmpy/sliding_sum.py | 01b48796c45a4a65f16a0e45cf1d93b7cf1cdcf1 | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 1,355 | py | """
Sliding sum constraint in cpmpy.
From Global Constraint Catalogue
http://www.emn.fr/x-info/sdemasse/gccat/Csliding_sum.html
'''
sliding_sum(LOW,UP,SEQ,VARIABLES)
Purpose
Constrains all sequences of SEQ consecutive variables of the collection VARIABLES so that the
sum of the variables belongs to interval [LOW, U... | [
"hakank@gmail.com"
] | hakank@gmail.com |
45f9289d172657a7370a84867608022b3c9ae240 | e502d7d14fe9366f4ec25c6a55f974175a18dfcc | /backend/app.py | f6c312f11c6bfa07e0d1def8eb0d5fa2857e316d | [] | no_license | GameGodS3/donation-page | e8cb3adaa77e429ee7a577f62d662273620f8a2c | 11e4ea469e14bb4927fd58b8f36cadc82006d50d | refs/heads/master | 2023-01-09T23:27:50.344687 | 2020-04-21T10:47:50 | 2020-04-21T10:47:50 | 254,671,524 | 0 | 0 | null | 2020-11-09T09:37:27 | 2020-04-10T15:38:08 | CSS | UTF-8 | Python | false | false | 1,139 | py | from flask import Flask, request, render_template, session
import json
import requests
import razorpay
import os
KEY = os.environ['KEY']
SECRET = os.environ['SECRET']
client = razorpay.Client(auth=(KEY, SECRET))
app = Flask(__name__)
@app.route('/health', methods=['GET'])
def health_check():
"""
To check if th... | [
"gopikrishnans1996@gmail.com"
] | gopikrishnans1996@gmail.com |
4dd7cea9ac0e15ebbe0465448d35c50ca6cc3924 | f72c5434750740d01b046c2227baf88349112911 | /266B.py | c75d2cf6210a85707642a410bc52e900fccf749d | [] | no_license | urishabh12/practice | 00145e024daccacc3f631fae3671951f9e2d6f5a | 17143214a024b87a76afc6b4c33b8725885a78a1 | refs/heads/master | 2022-12-27T02:23:09.406093 | 2021-07-10T06:50:12 | 2021-07-10T06:50:12 | 193,316,611 | 0 | 0 | null | 2022-12-14T04:46:18 | 2019-06-23T06:59:51 | Jupyter Notebook | UTF-8 | Python | false | false | 342 | py | n,t=map(int, input().split())
s=input()
l=list(s)
for j in range(t):
i=0
while True:
if i>=len(l):
break
try:
if l[i]=='B' and l[i+1]=='G':
l[i],l[i+1]=l[i+1],l[i]
i+=2
else:
i+=1
except:
i+=1... | [
"urishabh42@gmail.com"
] | urishabh42@gmail.com |
a2b499ca95fb6dc521d0ed5ec7895c3d990795b7 | 32ba389bb5eec73c75db287d25644c3107270787 | /1--50/12. Integer to Roman.py | d85ceb91e9610db0ff7883f05e4db32a5a6f741d | [] | no_license | lulalulala/leetcode | 9297d7b5d7cb9a834f08f60d3d3d11f928c3d99a | a5f511073e59eaf877f1b90be3a8b2a3e1a1d6a7 | refs/heads/master | 2020-03-22T06:51:40.335752 | 2018-11-10T13:32:53 | 2018-11-10T13:32:53 | 139,662,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | """Example 1:
Input: 3
Output: "III"
Example 2:
Input: 4
Output: "IV"
Example 3:
Input: 9
Output: "IX"
Example 4:
Input: 58
Output: "LVIII"
Explanation: C = 100, L = 50, XXX = 30 and III = 3.
Example 5:
Input: 1994
Output: "MCMXCIV"
Explanation: M = 1000, CM = 900, XC = 90 and IV = 4."""
class Solution:
def ... | [
"1366648494@qq.com"
] | 1366648494@qq.com |
c73953e48af931827b1da62eb65e647668cfd10d | 5e45f1d1d9f58aa1456777b0d75334d6efd43840 | /challenges/hackerrank/algorithms/dynamic/max_subarray/python/max_subarray.py | 7a4bd11931255b0775dd3b4438356b773e6b06e1 | [] | no_license | missingdays/nerdy.school | 604953dc9b3c38a0f71793f066ce2707aa980dae | 051673e0ebc54bc2f7e96a6477697d1d528dc45c | refs/heads/master | 2021-01-17T08:10:19.558851 | 2016-06-06T15:29:01 | 2016-06-06T15:29:01 | 59,897,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2015 missingdays <missingdays@missingdays>
#
# Distributed under terms of the MIT license.
"""
Maximum subarray problem solution
"""
def max_subarray(array):
curr_sum = 0
curr_index = 0
best_sum = 0
best_start_index = 0
... | [
"rebovykin@gmail.com"
] | rebovykin@gmail.com |
878bdb34e11bc1501de1b6b0dfd2018dfcf3aa4a | 63191be7f688591af69263972d68423d76fb5f74 | /geekshop/adminapp/views/categories.py | b42b65dd0c4181601279fe52418c7aef8c7ee7a5 | [] | no_license | IliaNiyazof/Django | 5eee4c226a1f06178fdbb5626444fff406886de7 | 052cb4f3f142c4224454ebac9fb27f63de9cbc47 | refs/heads/master | 2021-07-19T05:52:56.620026 | 2020-06-05T16:17:47 | 2020-06-05T16:17:47 | 166,776,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | from django.contrib.auth.decorators import user_passes_test
from django.shortcuts import render, HttpResponseRedirect, reverse, get_object_or_404
from mainapp.models import ProductCategory
from adminapp.models.categories import ProductCategoryEditForm
@user_passes_test(lambda u: u.is_superuser)
def categories(request... | [
"IFHRJCFY@yandex.ru"
] | IFHRJCFY@yandex.ru |
600a20e0412cec0307760847c1f728edf555ecb4 | 68f3c53b7701565e60951ebe5287cbff1cc9cbbc | /myWebsiteBuilder/views.py | a89227511fa99049af95e8d1a6347f013c73ba06 | [] | no_license | vishveshjain/websiteBuilder | adea7224167940287698dd189efbd72b1ca3c87e | 997f848b40a32cada6565179ef082f33d5e66880 | refs/heads/master | 2023-06-16T06:14:56.131037 | 2021-07-18T22:48:50 | 2021-07-18T22:48:50 | 383,830,410 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,159 | py | from django.http.response import JsonResponse
from django.shortcuts import redirect, render
from rest_framework.parsers import JSONParser
from .models import aboutMe, contactForm, websiteDetail,socialLink
from .forms import ContactForm, websiteDetailForm
from .serializers import websiteSerializer
from django.views.deco... | [
"Vishvesh2851994@gmail.com"
] | Vishvesh2851994@gmail.com |
a7e3426263f54ac3afb4be232a310b06048ae37e | b199a222da41b8bf0e1b131a1c15b86e5eafbef2 | /Phase1/day15/homework.py | 1b1133ce156652f63993e02f941ac37affe9ff3f | [] | no_license | Nagisama4/Learn-python | 8e72714ba33d7b2b29de05f0207d4d9de8e1ee9b | 7a038d0ce5e1d98e12f6dd5d96ba2e8c7f7acce4 | refs/heads/master | 2020-04-28T04:39:55.118748 | 2019-06-05T00:42:52 | 2019-06-05T00:42:52 | 174,987,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | import math
class Company:
def __init__(self, name):
self.name = name
def salary(self):
raise NotImplementedError()
class Programmer(Company):
def __init__(self, name, basement = 0, profit = 0):
super().__init__(name)
self.basement = basement
self.profit = profit
def salary(self):
re... | [
"noreply@github.com"
] | Nagisama4.noreply@github.com |
620463d168213b56d9a8697f28f277ae7230f533 | 250d29acc7f868105328a0a4a010151e2977c987 | /Week02/Homework6.py | b5ec361c6d93a0044d77a1b300627472709aef7c | [] | no_license | nghiahhnguyen/Data-Science-Course-1-by-Ha-Xuan-Nguyen | 255401b31217bbc2d32f114df76bef6dc018124c | e366d49813e782e9e1fd558cfd0dd80e58e24303 | refs/heads/master | 2022-01-29T06:17:23.097140 | 2018-10-01T02:52:45 | 2018-10-01T02:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | M = [[1, 2, 3, 4, 5],
[3, 4, 2, 5, 6],
[1, 6, 3, 2, 5]]
m = len(M)
n = len(M[0])
l = []
for i in range(n):
cnt = 0
for j in range(m):
cnt += M[j][i]
l.append(cnt)
print(l)
| [
"34543734+huunghia160799@users.noreply.github.com"
] | 34543734+huunghia160799@users.noreply.github.com |
5c07062055fe3db9f15c9dcad65e2c571e705ce2 | c51cefe6e00a2b50b155f8a635729a4cf8504c1f | /setup.py | eb0708f8e753845c33ea72705d663bef5755a5c9 | [] | no_license | Raph40/Exame_package | c56d8e2781f570ac17602b9da824d908461f69ed | 07ed1d18a4a9b630cd7db170627cfc4732f0d48b | refs/heads/master | 2022-11-11T14:57:03.633566 | 2020-07-03T11:36:02 | 2020-07-03T11:36:02 | 276,882,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from distutils.core import setup
setup(name='hello',
version='1.0',
descriptation='Hello Discriptation Module',
author='Rafael'
author_email='rafajoselopes@gmail.com'
url='https://github.com/Raph40/Exame_package.git'
py_module=['Exame_package']
)
| [
"noreply@github.com"
] | Raph40.noreply@github.com |
c587ec7413230286af6334350f20af42130ac04a | fa3f5dcfb0e01bffb823cd584db095d4bdcb3183 | /build/py_action_pkg/launch/maze_action_srv.launch.py | 541ad20c1cc8e9e23586b00098f9d2059ca09b0e | [] | no_license | adrianChoi11/ros2_gcamp | 59511a17b4c53da24db7fb5b65233770ae39e9c8 | 584a47d4566e52d578ec3a74f6387603825ca074 | refs/heads/master | 2023-08-28T14:37:56.559831 | 2021-10-06T02:00:08 | 2021-10-06T02:00:08 | 412,407,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | /home/apple/gcamp_ros2_ws/src/gcamp_ros2_basic/py_action_pkg/launch/maze_action_srv.launch.py | [
"choiyh1875@gmail.com"
] | choiyh1875@gmail.com |
5ece7943d3c757b1fec275554e2faaa97e44ca30 | 462232447fc046828a26dbc8a2225835bc812c1e | /labelpick.py | 05c390a9a85a97a6de3546e0ee41649546bb8b6a | [] | no_license | xmxoxo/Text-Opinion-Mining | 74e6bef618a8c55fa20a114f8b68b426269e984f | 3b6b2a14070eb3cf9446260f87d21a32ef5ed185 | refs/heads/master | 2023-02-22T22:58:04.496770 | 2021-01-29T01:52:50 | 2021-01-29T01:52:50 | 204,389,839 | 40 | 18 | null | 2019-08-26T03:38:39 | 2019-08-26T03:38:39 | null | UTF-8 | Python | false | false | 11,667 | py | #!/usr/bin/env python3
#coding:utf-8
__author__ = 'xmxoxo'
'''
NER预测结果提取工具
自动分析指定目录下的label_test.txt和token_test.txt,
提取出已经识别的结果,并保存到result_test.txt中
提取后的格式如下:
```
index 位置索引,从0开始
txt 文本内容
label 标签
```
提取结果样例:
```
index txt label
5 金庸 PER
65 提婆达多 PER
309 帝释 P... | [
"xmxoxo@qq.com"
] | xmxoxo@qq.com |
489ee2dd4085318fa62c0d200e0001c0a15b6d01 | 38181cfc62625ca146e4911ebe9c1713124b3c81 | /counter.py | d3c3565ea35faa1a3757ce50a1bb9091c2b4dff7 | [] | no_license | hthomas60/Toolbox-Pickling | 86adec981ba8e8f4097de30cbb6846c9289afec8 | 2bd5ee350ced1af6c3a880016cfa53ad006e70ea | refs/heads/master | 2021-07-24T02:50:28.325198 | 2017-11-02T15:31:49 | 2017-11-02T15:31:49 | 109,283,399 | 0 | 0 | null | 2017-11-02T15:30:23 | 2017-11-02T15:30:22 | null | UTF-8 | Python | false | false | 2,361 | py | """ A program that stores and updates a counter using a Python pickle file"""
from os.path import exists
import sys
from pickle import dump, load
import pickle
import os.path
def update_counter(file_name, reset=False):
""" Updates a counter stored in the file 'file_name'
A new counter will be crea... | [
"noreply@github.com"
] | hthomas60.noreply@github.com |
91feb4ba59077254f4d6a9ed644bd5d3663554bf | 60bb3ef7dd8a147761918f1fa021918d6898202d | /.history/main_20210623141903.py | eee65d95a67254bb6a9d60f7a4da85315eba9d6c | [] | no_license | sanjayMamidipaka/bbtautomationscripts | c1d29d9ea5c0fa982a53895b10db50b66e475c8f | 12c35a3459cb0ead71ae616b2efad21c555cf8a0 | refs/heads/master | 2023-06-06T06:25:09.152797 | 2021-06-23T18:21:34 | 2021-06-23T18:21:34 | 362,836,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,370 | py | import pandas as pd
import numpy as np
import csv
import xlsxwriter
from timeprofile import timeprofile
from masterdata import masterdata
from virtualReference import virtualReference
from keyfigures import keyfigures
from planninglevels import planninglevels
from attributesaskf import attributesaskf
from attributes im... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
415c39978ef734344c8c0e19216d0d80366e3e2d | f7db5372865fc77a048d19be47612852ae7225f8 | /teams_fbv/views.py | 1ac43a12b4105930216376480818e3d18993ac15 | [] | no_license | deannariddlespur/djangocrudapp | 73540ea4290ffec9fc6bfb985e218d08b4c4446b | 3269777115bf7877ea9b5542a400462a78f12003 | refs/heads/Team | 2016-09-10T19:52:22.609437 | 2015-08-13T19:46:14 | 2015-08-13T19:46:14 | 40,374,589 | 0 | 1 | null | 2015-08-13T19:46:14 | 2015-08-07T18:20:20 | HTML | UTF-8 | Python | false | false | 1,291 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.forms import ModelForm
from teams_fbv.models import Team
class TeamForm(ModelForm):
class Meta:
model = Team
fields = ['name', 'pages']
def team_list(request, template_name='teams_fbv/team_list.html'):
team = Team.ob... | [
"webdevdea@gmail.com"
] | webdevdea@gmail.com |
36d9c91d69aca7968a17522c7b514c8a5289ecbf | 5fc40a32fcd5e0ce07dc7d565f59f526217e2ead | /candle.py | 879895d3828a90fbfa37c6f18cdbde4eedf92ec9 | [] | no_license | steiryx/raspberrypi-app | b276d75cda3ad8bba5f30f29600bb0bbd2297021 | b8abfe890f16211090da5ed9712512aebb2d0e8e | refs/heads/master | 2020-12-06T02:46:36.049250 | 2016-11-03T15:18:47 | 2016-11-03T15:18:47 | 65,949,665 | 0 | 0 | null | 2016-11-03T15:18:48 | 2016-08-17T23:38:31 | Python | UTF-8 | Python | false | false | 1,306 | py | import RPi.GPIO as GPIO
import time
import random
#Set the PWM output we are using for the LED
LED = 18
def setup():
global pwm
# GPIO uses broadcom numbering (GPIO numbers)
GPIO.setmode(GPIO.BCM)
# Set the LED pin as an output
GPIO.setup(LED, GPIO.OUT)
# Start PWM on the LED pin at 200Hz wi... | [
"steiryx@yahoo.com.ph"
] | steiryx@yahoo.com.ph |
241837974835bf97cb4b70de61bc88a3abd55f74 | 78bc431cec6d56fbf10771fbb36419c12ee97001 | /_archive/oauth.py | 83bb63d0449114c9eed41952e440e59219ca6438 | [] | no_license | njligames/email_sender | c9cb7a7d7a4719e182c2c1dffba4fcc578b896f1 | 2a0da7309e97ce7ee9b6e85235e84e06a0b3f2c5 | refs/heads/master | 2021-01-11T12:07:29.147215 | 2016-12-22T23:32:54 | 2016-12-22T23:32:54 | 76,519,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | import json
import flask
import httplib2
from apiclient import discovery
from oauth2client import client
app = flask.Flask(__name__)
@app.route('/')
def index():
return flask.redirect(flask.url_for('static', filename='oauth2callback'))
return flask.redirect(flask.url_for('static', filename='oauth2callback'))... | [
"jamesfolk@Jamess-MacBook-Pro.local"
] | jamesfolk@Jamess-MacBook-Pro.local |
b99ba968add596a4b3cd78f541624aaa17f3ccc0 | dc685792ffd8bbc7e1cc69747203ebba2a7eea3a | /wikipedia_table/wikipedia_table/items.py | 30a3d9fc7b28e0394ec286574ca5214a71b64f4c | [] | no_license | zinon/scrapy | f702f96fb7b357d8144492e4c1137b40359a8507 | 652166a90d8acab142174f8036fc6ea627fa8eb7 | refs/heads/master | 2022-10-16T16:23:15.520027 | 2020-06-08T12:53:15 | 2020-06-08T12:53:15 | 266,174,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class WikipediaTableItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"zinonas@x1.fritz.box"
] | zinonas@x1.fritz.box |
21d99fda2332a08a6c601961863dace125bdfbf5 | aa5180780d25acf66d5b9ff53c0ef7d0e7768e72 | /pageRank.py | 129e49530e6a73b060dc386960f1132f42687c0e | [] | no_license | AnnnndOpen/miniSE | ab72bc0691ccdb7dcb729c583fdbe994fed60b66 | 871e2ae08b80704224aef93d8f1e00b915668f8c | refs/heads/master | 2021-09-02T06:51:11.143031 | 2017-12-31T06:54:21 | 2017-12-31T06:54:21 | 115,848,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,078 | py | import os
import json
def pageRank():
fInput=open('bookkeeping.json','r')
dic1=json.load(fInput)
fInput.close()
dica={}
dich={}
dic2={}
dicr={}
for value in dic1.values():
dica.setdefault(value,float(1))
dich.setdefault(value,float(1))
dicr.setdefault(value,float(... | [
"harold.jiang@outlook.com"
] | harold.jiang@outlook.com |
a8cbba0de93781000809b93f8575857658d4e504 | f36968a6d3195bdd2c56fd5dc47abb29bd627b0a | /fuzzers/cfctx_dataflow_svf_llc/fuzzer.py | c63a725311e5851cb81826e56454963bd405c328 | [
"Apache-2.0"
] | permissive | threatintel-c/fuzzbench | 1ef7b1da56c856948a0a9d5b2b1728a760660c6f | d620aa9b152ac11314eab2aa64910679398dfbea | refs/heads/master | 2023-07-13T22:11:14.737617 | 2021-08-27T16:15:49 | 2021-08-27T16:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # 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 agreed to in writing, softw... | [
"noreply@github.com"
] | threatintel-c.noreply@github.com |
6b2ebd43502013dff3246b7e195a17343a75b527 | b6dc31c578fbec0d028701a946670a884530a2c2 | /pythonDictionaries_Exercise2.py | 29cdce8b36cac285d5845750e83adf9eb9015264 | [] | no_license | dustinblainemyers/Digital_Crafts_Day5 | a324e6d75d7bd3d28a9ea361d7f209b9ce8c0865 | f29a9afc2dd8292601092d274d9d8ca3990fc1e3 | refs/heads/master | 2020-12-14T03:44:00.243459 | 2020-01-17T20:49:44 | 2020-01-17T20:49:44 | 234,626,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #python nested dictionaries exercise
ramit = {
'name': 'Ramit',
'email': 'ramit@gmail.com',
'interests': ['movies', 'tennis'],
'friends': [
{
'name': 'Jasmine',
'email': 'jasmine@yahoo.com',
'interests': ['photography', 'tennis']
},
{
'name': 'Jan',
'email': 'jan@hotma... | [
"dustinblaine.myers@gmail.com"
] | dustinblaine.myers@gmail.com |
ad56100aae986b9d39225d2009c1864556132f8f | 5a7a3447d434a458a7bb63f2aa11b64c284d5492 | /test/image_load.py | 834165562d2d100c68a6bd98d20ca2faaea7dd90 | [] | no_license | woshimayi/mypython | 35792e12036a7a05f12d3ef7006637b2b03f0e2e | 7f1eb38e8585bf6d2f21d3ad0f64dace61425875 | refs/heads/master | 2023-09-01T08:59:12.301836 | 2023-08-30T05:30:54 | 2023-08-30T05:30:54 | 130,017,052 | 4 | 0 | null | 2018-12-02T16:18:14 | 2018-04-18T06:50:36 | HTML | UTF-8 | Python | false | false | 622 | py | #coding=utf-8
import urllib
import re
def getHtml(url):
page = urllib.urlopen(url)
html = page.read()
return html
def getImg(html):
reg = r'src="(.+?\.jpg)" pic_ext'
imgre = re.compile(reg)
imglist = re.findall(imgre,html)
x = 0
for imgurl in imglist:
urllib.urlretrieve(imgurl,... | [
"woshidamayi@Gmail.com"
] | woshidamayi@Gmail.com |
ef9743d94d29deebd30fc55ae31439a2db8b093d | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW06_20210715222321.py | fcf2188b6928a2756355ea80e53ded7f525f6620 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,763 | py | """
Georgia Institute of Technology - CS1301
HW06 - Text Files & CSV
Collaboration Statement:
"""
#########################################
"""
Function Name: findCuisine()
Parameters: filename (str), cuisine (str)
Returns: list of restaurants (list)
"""
#########################################
########## WRITE FUN... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
c505acbdebad70a8f1c3c18f825107eeff1f405a | a7971eb657d01b9d20373be128273d9d608ed0c6 | /problems/rlpy/Representations/Fourier.py | a0fc3aa7804ed1c4b988a43dce6023f1b08792aa | [] | no_license | yijiawang1/RSBO | 99dda028612ac43d4c9ba4177a9ccbc27d5e7110 | edbdcdce94c839857e04e4129cb7770f63e17336 | refs/heads/master | 2023-04-27T12:29:06.095076 | 2023-04-24T20:21:16 | 2023-04-24T20:21:16 | 238,536,148 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | """Fourier representation"""
from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import super
from future import standard_library
standard_library.install_aliases()
from builtins import map
from past.utils im... | [
"58349385+rlbo@users.noreply.github.com"
] | 58349385+rlbo@users.noreply.github.com |
27b40d5f4d6e34ca94bb8678bc5ab493499da234 | a1431c25ebd62daead742e0120a16253c4cf67ca | /env/bin/rst2pseudoxml.py | f5df7e1eeb081261c7377ab286cc4b34ed5a0fc3 | [] | no_license | KonradMarzec1991/my_MDB | f840cbf495c23272b3e39db68c241219a60d63bd | d77339a4c37a3d7ae21b6d28bd9644ce15130f10 | refs/heads/master | 2022-04-29T10:15:37.109422 | 2019-11-03T20:13:57 | 2019-11-03T20:13:57 | 207,375,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/home/konrad/PycharmProjects/my_mdb/env/bin/python3
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"""
try:
import lo... | [
"konrimarzec@gmail.com"
] | konrimarzec@gmail.com |
cda99f750bc8ce22a58a5fcbe1b2f645c9ea9e7b | 0872b38585605d2a61b6b5f8819724b84850cb38 | /dashboard/admin.py | 869037259ea247c7bd00454fbba28989af86aa5d | [] | no_license | Ceribit/notichart | 90b775f1baa87ec14db22808c843379b834b40db | 2f1429cc4f413201b707080387cbdb1288f22e8b | refs/heads/master | 2020-03-22T04:11:27.687980 | 2018-07-05T05:31:58 | 2018-07-05T05:31:58 | 139,479,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Notes
# Register your models here.
admin.site.register(Notes)
| [
"ceribit@gmail.com"
] | ceribit@gmail.com |
98e70e75d9edd1588cd18c4c8ded0686dd961158 | 3e3ae24a7cc47a0edc950c3ab5a046a8a889f092 | /selfpowers.py | 4a447e019a8ad2507879e05390ef7ff7a66d62eb | [] | no_license | diolaoyeyele/euler-programs | c5e79d8e2555fb2798ccfc04f654ca1d1e48b11b | 554c76962783114fbc975f09de6dc80e1e04059d | refs/heads/master | 2020-03-18T01:57:04.253683 | 2018-05-20T16:22:46 | 2018-05-20T16:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py |
d = []
def series(n):
while n > 0:
d.append(n**n)
n -= 1
series(10)
sum(d)
10405071317
d = []
series(1000)
print(sum(d))
print(len(str(9110846700)))
| [
"didi.oyeyele@gmail.com"
] | didi.oyeyele@gmail.com |
1a17c0e753532ecf7f5f5d0b99fb308e5ec83ca9 | bdcab42a9124d7a3878a904076170bd4bff7451f | /src/hessian/random_sample_points.py | 44047bd5934ab4c7ec808b9b9c3a87972695717a | [] | no_license | hwang595/data_augmentation_playground | aa30685213083bb271ae56996d8aff831ef975ab | 5b11a5d5c2d9254b5ffa293eebf8e3e6269edd69 | refs/heads/master | 2021-01-25T09:14:30.059368 | 2020-03-01T21:33:06 | 2020-03-01T21:33:06 | 93,801,194 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,705 | py | import numpy as np
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
DIST_ = 20
def rand_point_generator(point_num=None):
'''
we want y \in [1.5, 2.5], x \in [-0.5 0.5] for datapoints with label 1
we want y \in [-0.5, 0.5], x \in [1.5 2.5] for datapoints... | [
"hongyiwang@cs.wisc.edu"
] | hongyiwang@cs.wisc.edu |
4891003b91c46f136ba3b75ab7e48fc4bc66ceaf | 8cfc885d0d461a8dac456e819c69d763c6d21169 | /sirepo/modules.py | 3235090615af2b9a8b8f17f97a65613435151fd2 | [
"Apache-2.0"
] | permissive | radiasoft/sirepo | 07763cfed492b2b796394d2e15cab54061cd9a74 | baa21720a1749c49c291f040796da5ee4f2ae8f5 | refs/heads/master | 2023-08-22T07:24:47.736445 | 2023-08-18T20:06:04 | 2023-08-18T20:06:04 | 37,476,480 | 56 | 30 | Apache-2.0 | 2023-09-14T01:56:12 | 2015-06-15T16:16:24 | JavaScript | UTF-8 | Python | false | false | 2,383 | py | # -*- coding: utf-8 -*-
"""initialize modules based on mode
:copyright: Copyright (c) 2022 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from pykern.pkcollections import PKDict
from pykern.pkdebug import pkdc, pkdlog, pkdp
import importlib
def import_and_init(name... | [
"noreply@github.com"
] | radiasoft.noreply@github.com |
dd1298ed530cf7f181af02b10acee55f73549f85 | c444997e83ef7e88f6b617a324e7ac66541c1574 | /Q4/q4.py | 9e25d048cf90bb8af0b7ccc9d1a4bd89cfc029d9 | [] | no_license | YoheiSaito/LogMonitoring | 1386c8122e187874331307f519af7c87925d1c10 | c951055a80fd4dc13472b955f394211b147a05b2 | refs/heads/master | 2023-03-31T01:58:44.004036 | 2021-04-08T11:21:50 | 2021-04-08T11:21:50 | 355,876,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,059 | py | #!/usr/bin/env python3
import sys, os
import argparse
import csv
import math
import re
from datetime import datetime, date
def main():
try:
# 1 コマンドライン引数を解析し, 入力ファイル名を決定する.
args = parseCommandLine()
# 2 決定された入力ファイルを読み込み以下の形式で集計する.
data = parseCSV(args.log_file)
# 3 2で集計さ... | [
"teyo.13324@gmail.com"
] | teyo.13324@gmail.com |
07ad821ad3e0604ebbb247747904fb17811db18e | f6e9cbe9b23f17e47a6305174fdb35ca1aa2a84f | /lib/miband2constants.py | 510dc553d14c8c0bd4703cb36e5313c905c6dc8e | [] | no_license | xoan/PyBand2 | 843d76122b41dacce6a77488061a534da776613c | da93949c6dc135dc30a4e2631769c644868084fc | refs/heads/master | 2020-03-21T22:32:12.789973 | 2018-06-29T09:37:46 | 2018-06-29T09:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,573 | py | UUID_SVC_MIBAND = "0000fee0-0000-1000-8000-00805f9b34fb"
UUID_SVC_MIBAND2 = "0000fee1-0000-1000-8000-00805f9b34fb"
UUID_CHAR_AUTH = "00000009-0000-3512-2118-0009af100700"
UUID_SVC_ALERT = "00001802-0000-1000-8000-00805f9b34fb"
UUID_CHAR_ALERT = "00002a06-0000-1000-8000-00805f9b34fb"
UUID_SVC_ALERT_NOTIFICATION = "00001... | [
"trigork@gmail.com"
] | trigork@gmail.com |
be3034c5966a720e78812520ab4c3d13cd6e0f6f | 3ea89d88f05c5814fd2baa2bb3fc32bec64037a8 | /class/ajax.py | 9c87afc8e39f080a05074dd11bd86e17b5dee231 | [] | no_license | jiuin1104/Happy_Panel | 5e8d7a7666b6bb672c2f51ad652d2f848007ce58 | 757fd6129948589d2b17a67ea1e47d276ccdc5bb | refs/heads/main | 2023-03-04T03:45:22.334924 | 2021-02-23T15:27:02 | 2021-02-23T15:27:02 | 341,596,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,127 | py | #coding: utf-8
# +-------------------------------------------------------------------
# | 宝塔Linux面板
# +-------------------------------------------------------------------
# | Copyright (c) 2015-2016 宝塔软件(http://bt.cn) All rights reserved.
# +-------------------------------------------------------------------
# | Autho... | [
"colin0055@foxmail.com"
] | colin0055@foxmail.com |
327f91a56b1e16ae43e885378f571cc26fc8b87c | 2c3ad939c59c347a0d282fd5011cf6eb4309cbae | /Neues Textdokument.py | 9fd931bdf5682dced31e64e64bb15c7280be6f21 | [] | no_license | msleibi/Servers-Authorization-and-CRUD | 9bc10a3e5f0b2abe6d3061c91ab6906a9527f909 | 8cc883a92ea93f5c090848e90440008da1dad851 | refs/heads/master | 2020-06-04T02:52:46.949236 | 2019-07-31T19:22:49 | 2019-07-31T19:22:49 | 191,842,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | from flask import Flask, render_template, request, redirect, url_for, flash
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem
app = Flask(__name__)
engine = create_engine('sqlite:///restaurantmenu.db')
Base.metadata.bind = engine
DBSess... | [
"msalibi83@gmail.com"
] | msalibi83@gmail.com |
475f56cddea7da88cb0c4c18cc4e1649dc2a16ba | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_8/models/keytab_file_base64.py | e7f84a50b47b69c9b000c62ecaa4a1e8b70b635e | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 2,912 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.8, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
54aa25a623bcd141ceb60503e4862c6560334415 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_340/ch79_2020_04_08_17_16_37_430613.py | 3692e00bb61b220fb835ac8e529d71a5ac2851ad | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def monta_dicionario(lista1, lista2):
dicionario={}
for i in range(len(lista1)):
dicionario[lista1[i]]=lista2[i]
| [
"you@example.com"
] | you@example.com |
63709722f02bfa86517a0dc1d5711143b4ff4af5 | 222108085d7c2bcd758a18efa405bcd8cd98f8b7 | /server/code/seed/stages.py | 1176fe1a6c366625a7bbc5b57788af0acd0565e4 | [] | no_license | mattdillabough/cnatra-lms | 13a201b078d30d789dc99e01b78c72e67ca671dc | 045d87e2ab7119348e4671dd3a8974815a9d3713 | refs/heads/master | 2023-04-19T17:58:42.602716 | 2021-04-23T18:49:51 | 2021-04-23T18:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # python imports
# project imports
from models.stages import StageModel
# records to insert
stages = [
{
'stage': 'N',
'stage_name': 'Navigation'
}
]
# function to insert
def insert_stages():
# delete records (if any)
StageModel.objects().delete()
# loop thr... | [
"aneesh.kodali@gmail.com"
] | aneesh.kodali@gmail.com |
2a93de28f79bb717067bf87f3759571d9769cc98 | 7584372f28ce3b7337de570277ac743f047a0095 | /crawler/utils/dockerevent.py | 96083be033e50bbbb82d2d4cf7c476d28af22dfb | [
"Apache-2.0"
] | permissive | maheshbabugorantla/agentless-system-crawler | c87f35830024db3e274ad9340fbe1e4f31921cf7 | 376cc211b0037f4e2a9cc7df39127325dae4e39e | refs/heads/master | 2020-09-13T07:56:35.664099 | 2019-07-15T20:16:32 | 2019-07-15T20:16:32 | 222,702,730 | 0 | 0 | Apache-2.0 | 2019-11-19T13:28:49 | 2019-11-19T13:28:48 | null | UTF-8 | Python | false | false | 469 | py | """
Docker container event object
"""
class DockerContainerEvent(object):
def __init__(self, contId, imgId, event, etime):
self.contId = contId
self.imgId = imgId
self.event = event
self.eventTime = etime
def get_containerid(self):
return self.contId
def get_imgag... | [
"nadgowda@us.ibm.com"
] | nadgowda@us.ibm.com |
3c87dcbcbbeaa1e6728588cac549519c87b9defb | 195fa04f47a56ae17b98223c7085e93f7b3ce167 | /transfer/买家OCR数据导入/asyncExport.py | 320b11d9d0f04e1fc1d68c85aab07f285c695ab6 | [] | no_license | huanghuizhou/pyTest | d2d0e4ecd242f116f8d2dc3691c3d27c9c7d26fd | 65ea660874edb7e02b5c34f00e072fc8d519c3cd | refs/heads/master | 2022-08-12T01:15:07.778255 | 2019-07-31T04:03:19 | 2019-07-31T04:03:19 | 149,726,497 | 0 | 0 | null | 2022-07-29T22:34:01 | 2018-09-21T07:27:36 | Python | UTF-8 | Python | false | false | 7,470 | py | #!/usr/bin/env python3
# coding=utf-8
import json
import logging
import os
import sys
import threading
import time
from concurrent import CountDownLatch
from queue import Queue, Empty
import pymysql
from dns import resolver
from pymysql.connections import Connection
# MYSQL_HOST = '192.168.2.203'
# MYSQL_PORT = 3306
... | [
"huanghuizhou@egtcp.com"
] | huanghuizhou@egtcp.com |
bc7a7b4bbd1891c00f0473aa1e114615174c94d0 | b364d4e4c2d66821c4256add68e8e964ba405ac0 | /gdp1/EscapeFromTheProgrammingLab/src/constants.py | 75f9b894de9115034b4db2fbc63b55e8b7eca81c | [] | no_license | brendanv7/VanAllen-GameDesign | bf318ca05308eacb9444a6282147b4326b225733 | 11ff0ba4dca198cfee5027f1934719dd69e23358 | refs/heads/master | 2023-03-21T05:05:48.822632 | 2021-03-11T17:49:29 | 2021-03-11T17:49:29 | 346,785,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
LIGHT_GREY = (190, 190, 190)
DARK_GREY = (100, 100, 100)
TAN = (230, 210, 180)
LIGHT_BLUE = (150, 185, 225)
SCREEN_WIDTH = 1000
SCREEN_HEIGHT = 721
| [
"brendan.vanallen1@marist.edu"
] | brendan.vanallen1@marist.edu |
ff93f81a89b9f25fa80f463b60f894e744aea0dd | 69a36ca23409b994a31759bad58971b197cad236 | /config/settings.py | 3445021fab5cfbc2c6ca87cdbd98f719463686c2 | [] | no_license | matt700395/awesome_repo | 56601cf817106df0e210e78c7bb1f11af1e60c3a | d49b1e55b6ade24f1f2058319ac6859b45e511bc | refs/heads/master | 2023-08-27T16:45:15.570115 | 2021-11-11T14:16:06 | 2021-11-11T14:16:06 | 427,026,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,346 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.
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 os
# Bu... | [
"matt7003@korea.ac.kr"
] | matt7003@korea.ac.kr |
5f9961456622b0f6d96037bb0a22309da6be1c47 | 957fda191066427f6e9ed3341e097b44bd9c9622 | /src/zzsn2021/utils/rundir.py | cee50dbaf550492b0b7a5acbd949e37a38288f3b | [
"MIT"
] | permissive | uuukaaasz/template | a9839fd5ca0f5445372bd1d6d5714e5712b7680c | 0cea7744701bb702d563acbf0cbd9ecf371f45bf | refs/heads/main | 2023-04-15T09:52:13.745674 | 2021-04-22T17:18:07 | 2021-04-22T17:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from __future__ import annotations
import os
from datetime import datetime
import coolname # type: ignore
from dotenv import load_dotenv
load_dotenv()
def setup_rundir():
"""
Create a working directory with a randomly generated run name.
"""
date = datetime.now().strftime("%Y%m%d-%H%M")
name =... | [
"karol@piczak.com"
] | karol@piczak.com |
c474ddcdc642369145b11ba23644182f63331500 | 116a4a2fcd3e9c3d216f96103006c707daa6001a | /HelloDjango/apps/awards/migrations/0017_auto_20200726_0254.py | 1dccd60f9a05a0237dcea616506c43eae765cb60 | [] | no_license | Eldar1988/a_white_birds | 22d743ed1fa651062f070c0e81b7ac665be7a72a | 0430d5322b3a55b6f55e9541675d6670f5d8a518 | refs/heads/master | 2022-12-18T20:23:26.293059 | 2020-09-15T04:27:59 | 2020-09-15T04:27:59 | 283,169,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # Generated by Django 3.0.6 on 2020-07-25 20:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awards', '0016_juryapproved_project'),
]
operations = [
migrations.RemoveField(
model_name='jury',
name='user',
... | [
"elfarych@gmail.com"
] | elfarych@gmail.com |
ca4f2e41e9d066e4f5f7ccdf3227ca710af932bf | bd831e22b73e570abccd66d510c9e72224f34af6 | /tests/clients/test_rest_client.py | 98db7ea5c21208efdc09ae77ae2d95221f4f1f1a | [
"Apache-2.0"
] | permissive | binderjoe/sdu-commons | b971c56b1335bc281feba04dd123e506cc88650f | 7c6b609aced4beb166754c589db7dfc22239a7df | refs/heads/master | 2020-05-24T04:10:48.201303 | 2019-05-16T19:14:35 | 2019-05-16T19:14:35 | 187,087,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | import json
import pytest
import responses
from osdu_commons.clients.rest_client import (HttpClientException, HttpServerException, HttpUnrecognizedException,
RestClient)
TEST_BASE_URL = 'https://example.com'
@pytest.fixture()
def rest_client():
return RestClient(ba... | [
"jbinder@Joes-MBP.guest.corp.microsoft.com"
] | jbinder@Joes-MBP.guest.corp.microsoft.com |
cdbcd65e95134f17dda941cd57c63ebf20839815 | 5e277e986ed8e9e8cff4317cc75b24df0f0342ed | /python/PromonXmlParser/PromonXmlParser.py | 79a7028bc9a4a79897fe0f367758ed695c138936 | [] | no_license | kimgudtjr/python | 57322ff78ff3e99b39f0b105c1706231e1403167 | aff09c9025e0dd2a68d9c9eb97bc63ab27f465e5 | refs/heads/master | 2021-01-01T18:01:56.004679 | 2014-05-29T06:55:26 | 2014-05-29T06:55:26 | 19,400,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,291 | py | import xml.etree.ElementTree as ET
import re
import getopt
import sys
import os
import sqlite3
class CSigDbInto:
def __init__(self,a_sToolName,a_sFilePath,a_sRegPath):
self.m_sToolName = a_sToolName
self.m_sFilePath = a_sFilePath
self.m_sRegPath = a_sRegPath
def InsertData(self):
self.m_db = sqlite3.c... | [
"kimgudtjr@naver.com"
] | kimgudtjr@naver.com |
97419284e839b43eb605855d9914c0f755e16bfd | 42d6e6251a8cbb1e8fab33d94b0a5ce33467bee1 | /fabpress/tasks/fs.py | 400599c169945ccb8bb2008ae6a8bbaf5bea6603 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | agateblue/fabpress | f392d24cdb29a5eb85554e4b941ba5abb2a81168 | 5036575f5e80cf22fac355691537899e4e692891 | refs/heads/master | 2021-05-27T23:52:58.811715 | 2014-10-29T10:16:06 | 2014-10-29T10:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import base
import os
from fabpress import utils
from fabric.api import hide, warn_only
class WPFilesDrop(base.ConfirmTask, base.TargetTask):
"""Remove all files of target, including target directory"""
name = "drop"
def operation(self, target):
comm... | [
"contact@eliotberriot.com"
] | contact@eliotberriot.com |
65c63d03ce6dae0284f287af1d709c0f3f9895b9 | c0377e118c629965a42a05198bb9f2faa789db5f | /AGC044/A.py | ede868bb89e312bd9601ae597d15e634a1cf32f4 | [] | no_license | Craft055/AtCoder | 0e3a078951b1cc3c991d3d18b15b6ddc697c8f1f | 40011b7033717726de593f2781331d4c67b10dd1 | refs/heads/master | 2023-03-01T11:08:29.611377 | 2021-02-07T17:27:35 | 2021-02-07T17:27:35 | 240,670,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,516 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def input():
return sys.stdin.readline()
def check_minus(coin_num, x, n, d):
sub_x = n - x
return coin_num + sub_x * d
def check_exponentiation(coin_num, plus_coin, multi, x, n, d):
coin_num += plus_coin
x *= multi
if x >= n:
... | [
"craftsman.jvyeu@gmail.com"
] | craftsman.jvyeu@gmail.com |
12513ea2b9098c18f048fcf10de5c443839e434d | 44b1ba9b6587a341ff79319de0a3c7d387988fbc | /accurate_demand/sys/vis.py | 50a4c53504195befe545f612a67f7f165f7777fb | [] | no_license | charmainewu/A-Deep-Learning-Perspective-on-Storage-Control | 93a65964d3612861bfca2b911fe5af1c2baad160 | f6fa9866495973b6d85d51b7a63c4a2ec237d7dc | refs/heads/master | 2022-11-28T00:36:18.548827 | 2020-07-28T15:30:34 | 2020-07-28T15:30:34 | 283,249,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 1 18:55:05 2020
@author: jmwu
"""
import warnings
warnings.filterwarnings("ignore")
from scipy.stats import norm
from sklearn import mixture
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense, Dropout, LSTM
... | [
"charmainewu@users.noreply.github.com"
] | charmainewu@users.noreply.github.com |
68d35f37ee51ac6ecc23ab134a6f07354933595d | fdf166ebd78925e94bc34f2a58395173e9736b34 | /upbeat/upbeat/urls.py | 7cda2c4247b8cf58e1e66b9563542fa5105eaf1a | [] | no_license | RommelMC/UpBeat | bc2d5997fd5fa0cd37ab2f7020468224c39f8aef | 01ba260f2dfe0f1d8643516857d3077c071c53ae | refs/heads/master | 2021-01-24T16:19:23.027116 | 2018-02-27T20:21:07 | 2018-02-27T20:21:07 | 123,182,906 | 0 | 0 | null | 2018-02-27T20:16:23 | 2018-02-27T20:16:22 | null | UTF-8 | Python | false | false | 763 | py | """upbeat 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-bas... | [
"Rommel@Rommels-MacBook-Pro-2.local"
] | Rommel@Rommels-MacBook-Pro-2.local |
85a392d9adcd3c2433a4d76b8092bc3e7b0784f2 | df757c3b91f5bb4463f4f42d6823bc86cd0681d4 | /tests/e2e/iothub_e2e/aio/test_infrastructure.py | a2b02490f19900e0c3bf25cdf7d643b92541042c | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | BertKleewein/azure-iot-sdk-python | c40475fd45a3f465227217de3095d922615bc105 | f3e84fc448b023e147502ceb81d0b1389d0bbcfa | refs/heads/main | 2023-06-21T03:36:28.965410 | 2023-05-09T17:18:15 | 2023-05-09T17:18:15 | 247,747,815 | 0 | 0 | MIT | 2022-05-09T15:13:47 | 2020-03-16T15:32:21 | Python | UTF-8 | Python | false | false | 951 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
import pytest
import uuid
@pytest.mark.describe("ServiceHelper object")
class TestServiceHelper(object):
@pytest.mark.it("returns None when wait_for_event_ar... | [
"noreply@github.com"
] | BertKleewein.noreply@github.com |
c0cee1075b023c67dbe7a78d32cc9f8113950192 | 995aba01536c8ee1be6ccdd36e2ee90861687253 | /Rosalind/Adafruit_TCS34725_pigpio.py | 127ef417ad5f4e06c39f2322d7393418c5658309 | [] | no_license | profshanks/A_Stage_Robot | 54155da6e3436e8432625e98a100e4bbda3a8516 | 067b621f28cb5e204f8372dc8eb6c0c42e09608c | refs/heads/master | 2023-04-13T11:18:43.716296 | 2023-04-08T07:03:06 | 2023-04-08T07:03:06 | 143,154,728 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,163 | py | '''
The following adaptation of Tony D's Adafruit_TCS34275 module was hacked
together by Michael Greminger and Sam Shanks on 7/31/18 to allow the TCS34725
sensor to be operated remotely (one RPi controlling another across a WiFi
hotspot) using the pigpio library and daemon.
Tony D's original code has been commented ou... | [
"yeboa037@umn.edu"
] | yeboa037@umn.edu |
770c81235aff3f5430684a2acb08650f166984fa | 4f712782a533415a5062c5aaf8444ebb13839ff0 | /20200910_3/generator.py | a226489ada911e40a6cb083faf306b8576c6d60a | [] | no_license | TheGhost8/pythonprac | 607517d2db95959f78396e4654c03aa4099755cc | 6167e7c6803a5e9509dce0742cac8d62bf70f96a | refs/heads/master | 2023-05-04T14:57:42.669597 | 2021-05-17T09:09:33 | 2021-05-17T09:09:33 | 292,591,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | import random as rd
values = []
values.append(eval(input()))
for i in range(9): values.append(rd.randint(1,100))
print(values) | [
"vantank36@gmial.com"
] | vantank36@gmial.com |
4bc5adb9d6b6ee939e6b179dd53b509d2566a42f | a730bc9d3b37c2b0765d13420b7fee0c24bc00f7 | /components/models/exterior.py | ca011b7ee8041d9ac097fe2f819a94bb90981fca | [] | no_license | Aarongold1869/VanBuilder | fc2b442f5712552c1240c392c746cafe6ad3748d | 4c360d5094fdfc2d47c554542decd45a6395c0c3 | refs/heads/main | 2023-07-21T18:51:04.791821 | 2021-09-01T21:03:23 | 2021-09-01T21:03:23 | 382,648,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | from django.db import models
from .categories import Category
# External Components
class ExteriorPaint(models.Model):
category = models.ForeignKey(Category,on_delete=models.PROTECT,default=None)
brand = models.CharField(max_length=30, null=True, blank=True)
color = models.CharField(max_length=30, null=Tr... | [
"aarongold1869@gmail.com"
] | aarongold1869@gmail.com |
dfaf750523ecbc531bef85d4f708bf9d7cb86301 | 4e5d7fef1eaee614560042a4128575ea0681b19a | /gem5art-env/lib/python3.6/codecs.py | 86c35b99bbc3ca082d8935403c523cffdedc29dc | [] | no_license | JinpengMiao/gem5_cache | eeeb3260aecfb8a61800933dee8488eb0bc562b1 | d218f78dc1708eacfd3250ed3cff5ed00011b5b8 | refs/heads/master | 2022-11-12T08:42:00.467107 | 2020-07-06T20:23:49 | 2020-07-06T20:23:49 | 277,221,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | /home/jinpeng/.pyenv/versions/3.6.9/lib/python3.6/codecs.py | [
"jinpeng.miao@outlook.com"
] | jinpeng.miao@outlook.com |
5531a83724096dfb63aacb9d71bde66816f09bb7 | a4ef92a5333c393d6351f1b92a224bc9a73ca393 | /machine-learning-maths/newtonmethods.py | 333e5c591c56286983abc41a6b1e52e8643dc3ce | [] | no_license | dksingh04/python_projects | d3375d933768596bbb24132c66e22963455f5708 | 8f4be4ce0433ee2ba142fbf0e09657f41dec8a14 | refs/heads/master | 2021-07-06T11:57:24.588164 | 2018-12-27T17:39:24 | 2018-12-27T17:39:24 | 43,363,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | '''
𝑦(𝑥)=𝑎0 +(𝑥−𝑥1)𝑎1 +(𝑥−𝑥1)(𝑥−𝑥2)𝑎2 +⋯+(𝑥−𝑥1)(𝑥−𝑥2)...(𝑥−𝑥𝑛)𝑎𝑛
where a0 = y1^1, a1 = y2^2 .... an = yn+1^(n+1)
yi^(j+1) = (yi^j - yj^j) / (xi - xj) where j = 1,2,3, 4 ... n and i = j+1 ... n+1
for e.g. y2^2 = (y2^1 - y1^1) / (x2 - x1) and y1^1 = y1 and y2^1 = y2 so on.
So in mathematical t... | [
"deepaksingh04@gmail.com"
] | deepaksingh04@gmail.com |
3a5f45accdfdbdc6c8d87ba4039032fc700555aa | 214bd135c12027aa8aef8180ad9ce1c05edc0237 | /Metrix.py | 9babf84eee186aaec38a26dfac3637597f3302bd | [] | no_license | Tanvish-IITG/BTP | c848da3002e40d596028927d7ed8d350c8b8c803 | 64d5f7f1139356a58ad9ee17c8f981e4c6d3b459 | refs/heads/master | 2023-08-21T19:04:43.563677 | 2021-10-15T03:59:28 | 2021-10-15T03:59:28 | 415,786,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | import torch
def IOU(y,label):
predicted_label = torch.argmax(y,dim = 1)
intersection = torch.stack([torch.logical_and(label == i,predicted_label == i).sum() for i in range(8)])
union = torch.stack([torch.logical_or(label == i,predicted_label == i).sum() for i in range(8)])
return torch.div(intersectio... | [
"Tanvish2001@gmail.com"
] | Tanvish2001@gmail.com |
ec6e3a87299b3f0b27c39ebb22357a57cd9e2f35 | 04afb34356de112445c3e5733fd2b773d92372ef | /Sem1/FP/S13/venv/Scripts/pip-script.py | ecfdd60747e705166efa7dda1830c8ac7fb753a9 | [] | no_license | AndreeaCimpean/Uni | a4e48e5e1dcecbc0c28ad45ddd3b0989ff7985c8 | 27df09339e4f8141be3c22ae93c4c063ffd2b172 | refs/heads/master | 2020-08-21T19:12:49.840044 | 2020-05-15T17:22:50 | 2020-05-15T17:22:50 | 216,222,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!D:\Facultate\UniRepo\Sem1\FP\S13\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"andreeacimpean.910@gmail.com"
] | andreeacimpean.910@gmail.com |
51071e102616ea0cafa25dbfadf9afbdc6a732f2 | 33d018fdd6ce541c617c22cce68680d1d63b6b8f | /ATL/ast_to_halide.py | 2dc2c49927934cfe6daf9579be8cd0093b91c9fc | [
"BSD-2-Clause"
] | permissive | Playfloor/atl | 82465fe55bc1c326ef2e28f311bb8f81a3832c41 | d8cb8f9b9e4f596fc9d3e4628ec69cecf623d0e8 | refs/heads/master | 2023-04-04T05:35:04.970642 | 2021-04-14T19:21:57 | 2021-04-14T19:21:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,134 | py |
from .prelude import *
from . import atl_types as T
from .frontend import AST
from .halide_ir import HIR, HIR_CPP_String
from .halide_ir import CJit as HIR_CJit
from fractions import Fraction
import numpy as np
# --------------------------------------------------------------------------- #
# ----------------------... | [
"gilbert@gilbertbernstein.com"
] | gilbert@gilbertbernstein.com |
71144ae74963ba84857ba71318cfb877dd80fabe | d01660d73df1ddd594304e2d761945209ef9b6a4 | /src/UIDonation.py | 7e74d8d35c5e0f0587852a105e036e49d5eb35b0 | [
"MIT"
] | permissive | cpepe/Astibot | 791df87cd7093dba3c7a9d448744c79f3114298d | 7a54c14b4334d1373fcb13c366102c4633405a52 | refs/heads/master | 2023-07-19T01:51:47.860698 | 2021-09-02T18:24:31 | 2021-09-02T18:24:31 | 400,248,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,370 | py | import math
from pyqtgraph.Qt import QtCore, QtGui
from PyQt5.QtWidgets import QFrame
from PyQt5.Qt import QIntValidator
from PyQt5.Qt import QDoubleValidator
import ctypes # Message box popup
import TradingBotConfig as theConfig
class UIDonation(QtGui.QWidget):
STR_CHECKBOX_AUTHORIZATION_TEXT = "... | [
"noreply@github.com"
] | cpepe.noreply@github.com |
9ef068591ef73db8438f5bb5d3d6af12f69f50e4 | a3e5717ff98340e81a1b0c58f1b59dea55392299 | /nemo/collections/asr/models/classification_models.py | 5b331e0707d9bd30c67b53dc517e365aea06d001 | [
"Apache-2.0"
] | permissive | Tpt/NeMo | 92a11ff79f99f79609b073932491822cab1d3f07 | e816905e286df545ce344e865ea6cf8e4b0c85ca | refs/heads/main | 2023-04-06T03:41:15.246247 | 2021-03-09T22:47:18 | 2021-03-09T22:47:18 | 346,297,599 | 0 | 0 | Apache-2.0 | 2021-03-10T09:15:22 | 2021-03-10T09:15:21 | null | UTF-8 | Python | false | false | 31,493 | py | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | Tpt.noreply@github.com |
4ff92b2ddacd27174d22952fad5f04a0b925d449 | f41637236b5f8c35a62c475e6b6bfb3026bc171e | /6.ArmstrongNumber.py | e968bdd227f58091ee6e15d68491bd05877660c3 | [] | no_license | rahulmis/ProblemSolvingWithPython | 5ba48984df21b9a0d5aa66bd07554e7e6d9a31ff | 2cffb7c1cc3e2a09a30541cb8a93f8ae4a868227 | refs/heads/master | 2023-01-20T07:47:52.453165 | 2020-11-28T07:25:15 | 2020-11-28T07:25:15 | 258,501,552 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | ####### 153 is ArmStrong ?
# 153 = (1**3)+(5**3)+(3**3)
# 153 = 1 + + 125 + 27
# 153 = 153 It Is a Armstrong Number
####### 21 is ArmStrong ?
# 21 = (2**2)+(1**2)
# 21 = 5 It Is Not a Armstrong Number
def ArmStrong(n1):
for i in range(1,n1+1):
n = i
s = str(n)
cc = 0
for i in range(... | [
"rahul.pm259.rm29@gmail.com"
] | rahul.pm259.rm29@gmail.com |
f0d12ffbb5b2a2710606cfa66dd46a0043678345 | daca7d8eaf207caf1413a46aae9dc2c86879d29b | /integration_tests/test_rally.py | 0bd7e019f16fef6ba0fb64e71ca487f39721849c | [] | no_license | OddBloke/centipede | aeba863605f310a3a7c5c06e9c0a31428a5d53e7 | 6fe3d73c79e93ada6d09b04029fadd8ae8682fed | refs/heads/master | 2016-09-06T10:05:13.397317 | 2011-12-20T17:25:47 | 2011-12-20T17:25:47 | 3,011,972 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | import requests
from nose.tools import assert_true
def test_ui():
# This test assumes the UI is running on http://127.0.0.1:8001 and is
# configured to communicate with a Centipede instance configured with
# Glasses Direct credentials. It also assumes that US26 has not been
# modified since the test ... | [
"daniel@daniel-watkins.co.uk"
] | daniel@daniel-watkins.co.uk |
eaea0c0d7d5806b6958ff04ebd0d712d4cb036af | abfea5e33f8807154d21ce27540a6de5281715b2 | /other_train/train_num_labels.py | 810954b5e5d0989b7c499de28e1e1bb89b448eb5 | [
"Apache-2.0"
] | permissive | aaxwaz/youtube-8m | c341fbc723f17e720f11bd57c392ae06ef44e0f7 | 3c3ceae83173d6b9eaef6072308a2804ba56bcf5 | refs/heads/master | 2021-09-20T08:36:12.886488 | 2018-08-07T03:15:50 | 2018-08-07T03:15:50 | 143,671,410 | 0 | 0 | Apache-2.0 | 2018-08-06T03:25:03 | 2018-08-06T03:25:03 | null | UTF-8 | Python | false | false | 28,661 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"weimin@bb128-106-17-62.singnet.com.sg"
] | weimin@bb128-106-17-62.singnet.com.sg |
53b86d32c30e6b4c77462a29c5f4aa14ed4d539f | 341c2d65456f078d71a36bf884ed7e9447ee58ce | /AttProj/AttProj/settings.py | cf10280ce84c281071f9c681713d2ac8aae0295d | [] | no_license | HammurabiCode/ZYAttention | 0f933df13a47ff1ed47e62c3bd92cf11fa99376c | 0c49df94433d222df73c4774d16f6d4790a7046b | refs/heads/master | 2021-09-07T22:20:18.062566 | 2018-03-02T02:19:46 | 2018-03-02T02:19:46 | 105,235,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,266 | py | """
Django settings for AttProj project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"ranab@qq.com"
] | ranab@qq.com |
ffd865cba0f03999b1660056776ba841aa79f26e | 835f01535a33d2d7ea7450bb9a93be79b6f02adf | /Tout/MPSI1/Informatique/tp 17.06.py | fe914fb4b31e8c403e378c2755e940e2419441d7 | [] | no_license | OnlyAtN1ght/Info-2K19 | 8d338254186846d86fa1ba5aad41ec1bd5b78f4e | 19634fa43d14c0fdf08642f0ac620bdbcdb5a6cb | refs/heads/master | 2020-04-15T06:41:47.249921 | 2019-06-24T17:06:32 | 2019-06-24T17:06:32 | 164,469,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import matplotlib.pyplot as plt
import numpy as np
import math
def dichotomie(f,a,b,e,borne=False):
while b-a>e:
c=(a+b)/2
if f(a)*f(b)<=0:
b=c
else:
a=c
if(borne):
print(a,b)
return a
f=lambda x:x**3-3*x+2
g=lambda x:np.exp(x)-1-x**2
h=lambda x... | [
"simon.provot12@gmail.com"
] | simon.provot12@gmail.com |
c128a8fa36affaec3993dafefcfcb0b3c4b39c6c | f786209eec7afd96da1e6d17ab70a2a1a5600060 | /dependence/cocos2d-x-3.0beta2/template/multi-platform-js/proj.android/build_native.py | 561a0e89811478d9801290c1ea9b3c225b1957b9 | [] | no_license | pcjbird/MUIEditor | 47a1125c1d43301ff40b061af74b47b2a0114c3c | 27faa531fb6b952a7139229e4da3b109a42733d2 | refs/heads/master | 2021-01-20T13:47:38.343165 | 2014-07-09T05:21:21 | 2014-07-09T05:21:21 | 17,281,030 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,563 | py | #!/usr/bin/python
# build_native.py
# Build native codes
import sys
import os, os.path
import shutil
from optparse import OptionParser
def get_num_of_cpu():
''' The build process can be accelerated by running multiple concurrent job processes using the -j-option.
'''
try:
platform = sys.platform
if platform =... | [
"pcjbird@hotmail.com"
] | pcjbird@hotmail.com |
d600955f4d15ef0c2f02da65a5b111866a9f6a6d | 5f27b1540e2d8f0dfe45b036d8a2381dc94a614b | /src/comments_post.py | 6443f7737ecdfae688327f91cec5bcc6878f0e5e | [] | no_license | benji6/serverless-demo | f6d2beea2f5abc330d722b06b16e9dd5710a83ab | 76145423e59585f75cc64706c6827e762629b41e | refs/heads/master | 2020-05-05T10:11:40.339074 | 2019-04-07T08:49:33 | 2019-04-08T16:13:38 | 179,934,261 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import boto3
from boto3.dynamodb.conditions import Key
from datetime import datetime
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('comments_demo')
def handler(event, context):
item = {
'body': event['body'],
'dateCreated': datetime.now().isoformat(),
'userId': 'test-user',
}
table.pu... | [
"benji2357@gmail.com"
] | benji2357@gmail.com |
276c5eac0755d7e57d5eb0995fc692a9bc0b349e | f38bb187847005fc121bec01fe10042358004a87 | /introduction/firstprgoram.py | afffd90e68926b02d9b75ef0e157882d27a59167 | [] | no_license | loyolastalin/Python_Training_2020 | 17aaee735711ef3b4673479fb06f34fbf8bdba0b | dcee3c17615ff567b57afb67abbb45d63d72812a | refs/heads/master | 2023-08-14T23:44:43.897149 | 2021-10-05T08:20:28 | 2021-10-05T08:20:28 | 278,421,132 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | '''
Write a prgram to get two inputs from the use
and perfom addition operation and show the result
'''
# comments
" asdfsdf"
'''
'''
# Use input34
a = int(input("Enter the first number"))
b = int(input("Enter the second number"))
# processing
c = a + b
# Writting/ printing
print("The sum is " + c )
| [
"loyolastalin@gmail.com"
] | loyolastalin@gmail.com |
24fe9249b9c948114976eb03ee082aeb308f3db5 | 0907738cae581720a27b17d7a8f26dca22d777d1 | /iso/iso_ellipse.py | 85371eeeb7f538e1f8760dcc6a2c049552776b54 | [] | no_license | jyshangguan/hst_images | a9e9174214129fc986044532f32fd9e56b59f90a | 09e696eed949b41ef5c3581405b8f344c5cc1361 | refs/heads/master | 2021-05-28T11:41:18.613103 | 2015-02-14T08:11:43 | 2015-02-14T08:11:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | #This script is to run the stsdas.analyse.isophote.ellipse.
#Obtain the isophotes for galaxy with other sources in the image masked.
import os
import sys
import time
from pyraf import iraf
#This function is to read the input parameter file.
def ReadParList(file_name):
f = open(file_name)
lines = f.readlines()
... | [
"shangguan@pku.edu.cn"
] | shangguan@pku.edu.cn |
07ee5ca8244bc40fdcfdffc0e184e8d66225d837 | 91d13f45f8527c368ebc6e44c75142a043f0583b | /test_zappa_cookiecutter/users/tests/test_drf_urls.py | 5c5a28e94cb0566c442fdcd429e5dbf1a914a39c | [
"MIT"
] | permissive | Andrew-Chen-Wang/cookiecutter-django-lambda | 6beed03d82eeecf95281c7f03a279c9c8b2ca85c | c4c64e174f653205c399ffa683918141f2f058d7 | refs/heads/master | 2022-11-16T12:20:00.589856 | 2020-07-19T20:19:41 | 2020-07-19T20:19:41 | 280,943,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import pytest
from django.urls import resolve, reverse
from test_zappa_cookiecutter.users.models import User
pytestmark = pytest.mark.django_db
def test_user_detail(user: User):
assert (
reverse("api:user-detail", kwargs={"username": user.username})
== f"/api/users/{user.username}/"
)
as... | [
"acwangpython@gmail.com"
] | acwangpython@gmail.com |
2bde1ba2abecbf9bf4d93ea2ea5458d64f41f428 | df9f39af208d6928f29705cb81ab160ec04f1f2e | /intentClassifyer.py | b12d58c54f6bcb169369bf628a5fbc0f2ff24933 | [] | no_license | aust1nsoz/Intro_Intent_Classification | 5e0fbc4fa377dfea4a7534eaf68e2f0220439169 | 3834c2b8bff9e8a3d7fd8671b9dc3183606eb5e8 | refs/heads/master | 2020-07-16T08:31:03.541170 | 2019-09-25T23:38:53 | 2019-09-25T23:38:53 | 205,754,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | # -*- coding: utf-8 -*-
#Import Needed things
import numpy as np
import pandas as pd
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.stem.lancaster import LancasterStemmer
import nltk
import re
from sklearn.preprocessing import OneHotEncoder
import matplotlib.pyplot as plt
from kera... | [
"austinsorenson96@gmail.com"
] | austinsorenson96@gmail.com |
a23d7b936809668c97dda106824c90e5f5105e0a | c1bc3bcb7d08851c57f28281bd932e7e4f0fd4b4 | /tasks_editor/forms.py | 8ad06f5278d5ae2d6ae2632c118b90bbd4a6cec4 | [] | no_license | tykva43/tasks_app | a4d07727d1e1a72efa39d99ade8ff56915b2e295 | 43bff9e55a95d8071a7dd7bee884887dc7cd42ef | refs/heads/master | 2023-04-13T18:48:38.598854 | 2021-04-28T08:55:03 | 2021-04-28T08:55:03 | 362,354,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.forms import Textarea
from task.models import Task, Group, TaskList
class TaskForm(forms.ModelForm):
def __init__(self, user, group, *args, **kwargs):
super(TaskForm, s... | [
"krikunova.olga@mail.ru"
] | krikunova.olga@mail.ru |
cff3803c5fb1185e6c3cbc89bd1ad5be3e322f61 | 8a0dd0e3d987482af35ae1813e4f64bce3d7ab4d | /examples/webhook/flask_skeleton.py | ef9510b07d806880f7c7befaf43cafe1f8ea3c0d | [
"MIT"
] | permissive | NextVisionDevelopers/telepota | a230e2e61762739f8ef30d589ed552f5486fb93c | 78bbd2bd9836edca5309016dc13262e5adf4c3ff | refs/heads/master | 2023-07-10T19:52:02.416666 | 2021-08-27T11:08:29 | 2021-08-27T11:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | import sys
from flask import Flask, request
import telepot
from telepot.loop import OrderedWebhook
"""
$ python2.7 flask_skeleton.py <token> <listening_port> <webhook_url>
Webhook path is '/webhook', therefore:
<webhook_url>: https://<base>/webhook
"""
def on_chat_message(msg):
content_type, chat_type, chat_id... | [
"josephkiurire@gmail.com"
] | josephkiurire@gmail.com |
221eabeb7855ab26b445ce0626620cf82ea4dd10 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/series/a713022194c640d79ae14ee2e504dd88.py | eb7a127a4563a635852c50f164844820a748ca91 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 221 | py | def slices( N, size ):
if (size == 0 and len(N) > 0) or (len(N) < size):
raise ValueError('Bad input!')
return [ [ int(d) for d in N[s:s+size] ]
for s in range( len(N) - size + 1 ) ]
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
deca411428980e2f3479946e16bec2cf5d7bc3c3 | 516932b326f58f9dc7c008e379f80cafd820acc0 | /src/helixtariff/test/logic/test_user_tariff.py | efde456f49fbfc657f1b000a05a4043a1fc4b16b | [] | no_license | sand8080/helixtariff | ffa4021fac16876bbbad8a4a8f1c53a9e4fd71d7 | 0bb56ad9e954509961db6bf636bce3a541709b93 | refs/heads/master | 2020-12-24T14:57:01.276045 | 2012-07-12T14:59:56 | 2012-07-12T14:59:56 | 1,605,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | import unittest
from helixcore.error import RequestProcessingError
from helixtariff.test.logic.actor_logic_test import ActorLogicTestCase
class UserTariffTestCase(ActorLogicTestCase):
u_id = 22
def test_add_user_tariff(self):
t_id = self._add_tariff('tariff one', currency='RUB')
self._add_u... | [
"sand8080@gmail.com"
] | sand8080@gmail.com |
9cc9a464a6dc4cce9662b5e9dc7d486f065d16bd | a59996c5ded42b065817b1393d57c8c8e1105d9d | /numbers.py | a7ecf0342f166069fb23b66213fe5d4c981a3d42 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ElliotEvins/dsc-git-merge-lab-onl01-dtsc-ft-052620 | 4f2634458a101003bfdc5b02bff22a3c91fb9476 | b2387d4a112ef3f4b0b207595272ba261f3632c0 | refs/heads/master | 2022-09-12T00:13:16.606904 | 2020-05-27T19:49:04 | 2020-05-27T19:49:04 | 267,405,602 | 0 | 0 | NOASSERTION | 2020-05-27T19:14:08 | 2020-05-27T19:14:04 | null | UTF-8 | Python | false | false | 36 | py | for i in range(10):
print(i**3)
| [
"ElliotWEvins@gmail.com"
] | ElliotWEvins@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.