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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dae4ecb5884d1cc97297a64c1834d03c9fdee1c8 | da3bfb9783d1341b7766b9e472de3b2c710ff99b | /setup.py | 6abed9f661bf9afd1eade9247f816e74a9d68a88 | [
"MIT"
] | permissive | ml-ai-nlp-ir/Utter-More | 7d74fb5206ef01e72a46218bd33218eb806aff10 | 98bed9468547cb4f2eb9df1209a9020e4be5d0a5 | refs/heads/master | 2020-03-25T11:54:48.411260 | 2018-07-31T10:05:42 | 2018-07-31T10:05:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | from setuptools import setup, find_packages
import re
with open('README.md', 'r') as f:
long_description = f.read()
with open('utter_more/__init__.py', 'r') as f:
setup_file = f.read()
version = re.findall(r'__version__ = \'(.*)\'', setup_file)[0]
name = re.findall(r'__name__ = \'(.*)\'', setup_file)[0]
setu... | [
"jscott12009@gmail.com"
] | jscott12009@gmail.com |
5fdc3c4390e08eb72b6130d9e29542a87bf81fe3 | 00062339eecba8d0d7eac283816c29c57417ee14 | /sqaure.py | 8e6c1c8341a39b1c1e0e1fd177b4c7c9e3f09aea | [] | no_license | tomtch/python_pixel_art | cce2ba22a78842e31b1b6c6119f80d13e43edcb2 | ea8599ef68a15a80a921e0980852bc780bcf5e64 | refs/heads/main | 2023-07-13T16:17:40.813523 | 2021-09-10T11:11:27 | 2021-09-10T11:11:27 | 405,012,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import turtle
from datetime import datetime
from tkinter import Image
t = turtle.Turtle()
t.color("#3C9118", "cyan")
t.begin_fill()
for x in range(1,4):
t.forward(100)
t.left(90)
t.forward(100)
t.end_fill()
t.penup()
t.forward(150)
t.left(90)
t.pendown()
t.begin_fill()
for x in range(1,4):
t.forward(100... | [
"tomtch18@gmail.com"
] | tomtch18@gmail.com |
d3fd4d5f5e723479c84cb518ed1e8f3a9e5420fc | 2d45ffc02f9ff348f6a995e72dd3d839dbca94c5 | /RandAugment/train.py | c854b9ab75c67a93d32584cdfde24c81b69a3aca | [
"MIT"
] | permissive | yuanxing-syy/pytorch-randaugment | 5c8fb9edb2657207879b398d7288f9c6eb9b7355 | dab97f8c1f45e291e4b89e0776c00fce49d95a18 | refs/heads/master | 2020-09-28T21:30:06.145147 | 2019-12-06T07:38:38 | 2019-12-06T07:38:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,932 | py | import itertools
import json
import logging
import math
import os
from collections import OrderedDict
import torch
from torch import nn, optim
from torch.nn.parallel.data_parallel import DataParallel
from tqdm import tqdm
from theconf import Config as C, ConfigArgumentParser
from RandAugment.common import get_logger... | [
"curtis.abcd@kakaobrain.com"
] | curtis.abcd@kakaobrain.com |
e7ef7fa6fef016bc2e8239b3f17ab4d671eb424a | 33a48e4a9a6781106fc33a1c13ad708484a69274 | /queen.py | 6fe92d474ba4859bb18065ad2d7059e9737f8145 | [] | no_license | Fazziekey/AI_project | 9569a780f06a528116d91f0ac0bc547a1d91a218 | 6a69d2ea914ec5dbc0107c064e21ffb7b976c1c9 | refs/heads/main | 2023-06-08T10:21:20.565925 | 2021-06-28T13:57:38 | 2021-06-28T13:57:38 | 349,648,844 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,997 | py | # Developer:Fazzie
# Time: 2021/3/2116:23
# File name: queen.py
# Development environment: Anaconda Python
import numpy as np # 提供维度数组与矩阵运算
import copy # 从copy模块导入深度拷贝方法
from board import Chessboard
'''
# 初始化8*8八皇后棋盘
chessboard = Chessboard()
# 在棋盘上的坐标点(4,4)落子
chessboard.setQueen(4,4)
# 方法一,逐子落子
# 选择False不打印中间过程棋盘... | [
"1240419984@qq.com"
] | 1240419984@qq.com |
8143bc8f5472437617a95328464fcab857018571 | b8e79ccbcb68b7dd0342f4b64af99cad5cba2b1e | /Face_recognition_opencv_django/urls.py | 34a3a9594d9f549f12e6029d37b1250cabca6563 | [] | no_license | scekic/Face_Recognition_OpenCV_Django | 83e67e9d5abe3d4af986552de3715891324d0ace | 5c73c8303a9cd3fe18f680bb92de6e5e20e11e4a | refs/heads/master | 2022-09-17T12:33:28.442653 | 2020-06-04T11:16:27 | 2020-06-04T11:16:27 | 269,309,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | """Face_recognition_opencv_django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, n... | [
"scekic.luka@gmail.com"
] | scekic.luka@gmail.com |
23033e06f849b85dadc20b94437ee03c24802976 | c7f43c4cc0ee84a5fe246b67f51e30b8d726ebd5 | /keras/keras09_mlp.py | 44099b84aa0e9f80008f67c742b96110ca820afa | [] | no_license | 89Mansions/AI_STUDY | d9f8bdf206f14ba41845a082e731ea844d3d9007 | d87c93355c949c462f96e85e8d0e186b0ce49c76 | refs/heads/master | 2023-07-21T19:11:23.539693 | 2021-08-30T08:18:59 | 2021-08-30T08:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import numpy as np
# x = np.array([1,2,3,4,5,6,7,8,9,10]) # 스칼라가 10개인 벡터 x
x = np.array([[1,2,3,4,5,6,7,8,9,10],
[1,2,3,4,5,6,7,8,9,10]]) # 스칼라가 10개인 벡터가 두 개인 행렬
y = np.array([1,2,3,4,5,6,7,8,9,10])
print(x.shape) #(10,) - 스칼라가 10개라는 의미 ----> (2, 10)
| [
"hwangkei0212@gmail.com"
] | hwangkei0212@gmail.com |
5d179adcafd7f73af265964dd7da77cb55ba8b2e | ce03bb849969449a7df149c5cfc46d9fbf7b267e | /app.py | 6d12b8c861a513334daddcea28380fd5fdc5502a | [] | no_license | MineYaman/OtomatikSesTranskripsiyonu | 31ec8dece5f55a887be60b28a03b2a3ee28c0994 | 927dfad4ed7ab89cdc0c6c24f13d8aeebdc05c6a | refs/heads/master | 2022-12-04T08:54:37.241191 | 2020-09-02T15:51:21 | 2020-09-02T15:51:21 | 292,323,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,630 | py | from flask import Flask,render_template,url_for,request
import pandas as pd
import pickle
import re
from sklearn.feature_extraction.text import CountVectorizer
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import punkt
from nltk.corpus.reader import wordnet
from nltk.stem import WordNetLemmatizer
fr... | [
"mnyaman04@gmail.com"
] | mnyaman04@gmail.com |
3a7a2558b686ecc6eafbb7ffb04cd3c616b7751b | 025adca8ce56eb0113ca44ce1254bc8127d8d604 | /com/Tools/MyPoco/foundation/information.py | f30acecc528a06a20c8326fb75c8530da306a029 | [] | no_license | yuzhujiutian/RobotizationTest | c141ac60c00a3fe000ee9ddbf31317b150e8f377 | 4652e21b75ac2b3630f0377164c28a3611b11b5b | refs/heads/master | 2022-09-25T07:17:38.596744 | 2020-06-04T12:41:09 | 2020-06-04T12:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,246 | py | # _*_coding:utf-8 _*_
# !/usr/bin/python3
# Reference:********************************
# encoding: utf-8
# @Time: 2019/11/6 14:58
# @Author: 洞洞
# @File: information.py
# @Function:框架基础类,不要直接在脚本中调用,编写辅助脚本使用MyPocoObject类
# 用于拓展框架函数使用
# @Method:
# Reference:********************************
import configparser
i... | [
"342714677@qq.com"
] | 342714677@qq.com |
0c8dab75f3ff866ab6e4102f5e25974642afc211 | 22e2887c3f37af58238a966d919cba45b2908ec1 | /plugin.video.ChristianTV/FuckNeulionService.py | e8c42e02beb1e0c976466e1ba29a473b59474634 | [] | no_license | kodiwizard/repository.kodiwizard | 29a54f47c74c97f3249ac77bd5f6392b36863787 | c45db8ac5fbc185e18abfb8de7fa69a9403aca69 | refs/heads/master | 2020-03-13T17:29:33.954084 | 2019-01-22T22:39:18 | 2019-01-22T22:39:18 | 131,218,210 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | import subprocess
import sys
subprocess.call("/usr/bin/python /storage/.kodi/addons/plugin.video.white.devil/jars/FuckNeulionService.py &", shell=True)
| [
"thomasnz@hotmail.com"
] | thomasnz@hotmail.com |
790dc7efa12d0f58d79f64aa3d58cd003eeb702e | 61f4833bc5af1cf841db607d38e01294b471068e | /source/T7_Graphs/P3_Maizes/L7_WayFinder1.py | a676a28009f0100d825994d8209ec12fac911e2e | [] | no_license | krenevych/algo | 5936297834d95d3e79b4e37a6edb5d17e62572bc | 883c62f7846dde84204ea09a31fa1ce18ad2a98d | refs/heads/master | 2023-05-26T03:52:25.491238 | 2023-05-19T05:48:34 | 2023-05-19T05:48:34 | 146,658,064 | 8 | 19 | null | 2023-03-05T12:04:28 | 2018-08-29T21:01:02 | Python | UTF-8 | Python | false | false | 2,513 | py | from source.T5_LinearStructure.P1_Stack.L_1_Stack import Stack
from source.T7_Graphs.P3_Maizes.L2_ShowMaze import showMaze
from source.T7_Graphs.P3_Maizes.L4_ReadMazeFromFile import readMazeFromFile
from source.T7_Graphs.P3_Maizes.L5_Wave import wave
di = [0, -1, 0, 1] # Зміщення по рядках
dj = [-1, 0, 1, 0] # Зміще... | [
"Krenevych"
] | Krenevych |
5bb5c4b02a0bc44e5dc8e8d0385746704ce0e2bf | d989c42f7122b783bbf330fbb194c8872c947424 | /deutschland/dwd/model/warning_nowcast.py | ed2f3f91637ac4e2040d7329d57b3e024f96839d | [
"Apache-2.0"
] | permissive | auchtetraborat/deutschland | 3c5c206cbe86ad015c7fef34c10e6c9afbc3b971 | fdc78d577c5c276629d31681ffc30e364941ace4 | refs/heads/main | 2023-08-24T08:17:51.738220 | 2021-10-20T19:35:46 | 2021-10-20T19:35:46 | 403,704,859 | 0 | 0 | Apache-2.0 | 2021-09-06T17:19:21 | 2021-09-06T17:19:20 | null | UTF-8 | Python | false | false | 11,997 | py | """
Deutscher Wetterdienst: API
Aktuelle Wetterdaten von allen Deutschen Wetterstationen # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from deutschland.dwd.model_utils import ( # noqa: F401... | [
"wirthra@gmail.com"
] | wirthra@gmail.com |
a75f3d6ce4ca8f601dfb55f9cad6a8c16d8b3f44 | 014ba73c9c3decfa8aa9285843631e5c98570cbd | /Database/load_db_tool.py | ddc0e8f2c5103aa1b7325940196c7bf09475cd5a | [] | no_license | CSPB-3308/Travel-Recommender | e8c14161029f418f1e35473ef3c63695e0b84166 | c243990e6b530b05b975c04c07a8ba03acb6835b | refs/heads/master | 2023-01-28T22:00:40.867905 | 2020-12-12T01:53:57 | 2020-12-12T01:53:57 | 296,483,890 | 0 | 0 | null | 2020-11-23T02:59:07 | 2020-09-18T01:39:37 | Python | UTF-8 | Python | false | false | 1,293 | py | #!/usr/bin/env python3
import os
import sys
import query_db
if __name__ == '__main__':
if len(sys.argv) != 3:
print("Usage: load_db_tool.py [-D, -d, -a, -l] [filename]")
print("-D: Destination File\n -d: Dining File\n -a: Attractions File\n -l: Lodging File")
else:
fileTy... | [
"brhi6213@colorado.edu"
] | brhi6213@colorado.edu |
a01bdca1898fdadec08676b45c4bfbf7d587cc88 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_397/ch6_2020_03_04_19_39_52_514053.py | d80fe50cbca06aa26b98b832df81cd9961a2fad3 | [] | 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 | 61 | py | def celsius_para_fahrenheit (C):
F= C*9/5+32
return F | [
"you@example.com"
] | you@example.com |
58021783ebe0d148a20a82e782c7f7581be8d74d | 7fc09f7de6c571c52348c1a40ed8b90c53cade22 | /optical.py | f3d6dd04aa31edbfe002d9502ff59d2b2cf9f819 | [] | no_license | rachidasen/Content-Based-Video-Classification | baf8bf22044cd522bbc124e1ee29d95eb13dfaef | 256311209655ea22a67f544fff8802e62c90a670 | refs/heads/master | 2021-09-29T03:19:04.026202 | 2018-11-23T08:14:33 | 2018-11-23T08:14:33 | 54,796,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | import cv2
import sys
import os
import glob
import numpy as np
# list of all classes
def gen_frame(path):
classes=('basketball','diving','horse_riding','soccer_juggling','swing','trampoline_jumping','walking','biking',
'golf_swing','tennis_swing','volleyball_spiking');
# get the parent directory w... | [
"rachidasen@users.noreply.github.com"
] | rachidasen@users.noreply.github.com |
f1e7f09a5a72760fa6841d7afb3fe30b0752ed3f | 1fab020c04b1dcd0d2d528d68f9eeec33797d8bb | /library/system/migrations/0011_studentissued.py | acb96463fc9d949f4ee8477b3ca602b8435fe6f8 | [] | no_license | riya-mistry/LibraryManagementSystem | 88ff19ecc4126f07b8d1b3b73b85763775d3c1db | 87d73c0dea80e0046e2ce3fe113f84885bb59691 | refs/heads/master | 2022-04-21T11:56:33.982036 | 2020-04-22T15:16:22 | 2020-04-22T15:16:22 | 257,936,509 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | # Generated by Django 3.0.1 on 2020-01-29 11:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0001_initial'),
('system', '0010_delete_studentissued'),
]
operations = [
migrations.Cre... | [
"riyamistry2904@gmail.com"
] | riyamistry2904@gmail.com |
dfae22d85da588a85268d051bfcf5c3d95ee9746 | 59b464d7c6b44f3bae33ded569b2ce0e9c8f897d | /Learning_projects/SimpleITK_pruebas/pruebas/ImageRegistrationMethodDisplacement1.py | 13854acc22a7409d40499ee12593a02dd3bdc622 | [] | no_license | Rmartin20/Regim-project | 6ef48495f95d5b8907a925a2e9af20efad99bdb1 | 7ebe18dfabf733172a75fa28862640639664432d | refs/heads/master | 2020-03-29T20:50:06.913419 | 2018-09-27T16:52:34 | 2018-09-27T16:52:34 | 150,333,511 | 0 | 0 | null | 2018-09-25T21:51:42 | 2018-09-25T21:51:41 | null | UTF-8 | Python | false | false | 3,967 | py | from __future__ import print_function
import SimpleITK as sitk
from PIL import Image
import sys
import os
def command_iteration(method):
if method.GetOptimizerIteration() == 0:
print("\tLevel: {0}".format(method.GetCurrentLevel()))
print("\tScales: {0}".format(method.GetOptimizerScales()))
pr... | [
"fandig27@gmail.com"
] | fandig27@gmail.com |
4cf44b39fa07b6be387b485b0852216579c88b72 | 6cd3060abd6c7467715f73f276d2f4d5f9f5175c | /backend/apps/api/offers/__init__.py | e94327a9d2bba8a28321b8930fb73db377105e1f | [] | no_license | Digitize-me/gpb-corporate-application | 3e2ef645d34802621badc630ab445d15428aeb5e | d59d146e131b49a670e3ac4752ea91aa7e148e51 | refs/heads/master | 2022-11-07T16:39:39.876126 | 2020-06-20T22:53:22 | 2020-06-20T22:53:22 | 273,590,113 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | default_app_config = "apps.api.offers.apps.OffersConfig"
| [
"wsxxx2016@yandex.ru"
] | wsxxx2016@yandex.ru |
b74694eff0fe4b7585e4284a0e8af80807315e0a | 9a88de8e9295db765889626d7345976fc385964e | /4thSec/q39.py | 43bacb8c75cdca9e0443bcdb557da64f3ee72eb5 | [] | no_license | rhi222/100fungo | cbf0fef420afdad8f2754bc799ac7b4f66624fc3 | 3d6c5fed9f6533b2f78e877347220090c985d3be | refs/heads/master | 2021-01-12T15:53:45.179887 | 2017-05-05T09:45:02 | 2017-05-05T09:45:02 | 71,901,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 39.py
from q30 import tabbed_str_to_dict
from q36 import get_frequency
from pprint import pprint
from collections import defaultdict
# https://docs.python.jp/3/library/collections.html#collections.defaultdict
import matplotlib.pyplot as plt
from matplotlib.font_manager i... | [
"ryouhei222@gmail.com"
] | ryouhei222@gmail.com |
e2bcbcc8eabdb541cdd13185af9f8b4f40943c05 | 79bf34ad2894c92a8ad887404225295595313958 | /ex44d.py | 3641234825b4c46314357fee5adaa74cce562d33 | [
"MIT"
] | permissive | sogada/python | 98ac577a18d709a13ace2a56d27e675edeeb032b | 4bdad72bc2143679be6d1f8722b83cc359753ca9 | refs/heads/master | 2020-04-21T00:12:44.872044 | 2015-10-29T20:18:02 | 2015-10-29T20:18:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | class Parent(object):
def override(self):
print "PARENT override()"
def implicit(self):
print "PARENT implicit()"
def altered(self):
print "PARENT altered()"
class Child(Parent):
def override(self):
print "CHILD override()"
def altered(self):
print "CHIL... | [
"alexander.liggett@gmail.com"
] | alexander.liggett@gmail.com |
5bdd168eca6ca9a05b5765cb0375fb4bd7b45dc1 | 16f0171b1aecb8d104a208df4953884a9ab97b26 | /googlenet_regression/get_regressions_batch.py | 5412aac0db52a3a1cebf4611c8f5168f70565739 | [] | no_license | gombru/LearnFromWebData | 97538dd91822a0e2a7d12084cde0d9dbf64f3c70 | 163447027c856004836abe40d9f653ec03da0702 | refs/heads/master | 2020-03-24T23:12:43.819864 | 2018-08-01T12:25:10 | 2018-08-01T12:25:10 | 143,123,717 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | import caffe
import numpy as np
from PIL import Image
import os
caffe.set_device(0)
caffe.set_mode_gpu()
test = np.loadtxt('../../../datasets/SocialMedia/word2vec_mean_gt/test_InstaCities1M.txt', dtype=str)
# test = np.loadtxt('../../../datasets/WebVision/info/test_filelist.txt', dtype=str)
#Model name
model = 'WebV... | [
"raulgombru@gmail.com"
] | raulgombru@gmail.com |
7b2c7f166d834ca3fb1cae9d6917b6f754616c21 | e5caec1d30321442d4db893a24edadcaf0b11046 | /blog/migrations/0004_all_ks_join.py | 87edb04f5ebbcc92d682041ebef2c7257a8423a8 | [] | no_license | cqcum6er/my-first-blog | 6e6002f2570c8cd65d20bb9e66d9f2fc75450e7c | ab4f6bc2ee6cd94fff6025b00539473d92889dce | refs/heads/master | 2020-05-21T04:40:33.390634 | 2019-03-16T01:14:35 | 2019-03-16T01:14:35 | 36,615,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20180617_1227'),
]
operations = [
migrations.CreateModel(
name='all_ks_join',
fiel... | [
"ericsun1221@yahoo.com"
] | ericsun1221@yahoo.com |
da8e583410219e642e0741762147c28e7668e431 | dd916f3c772aa40e19764e47f6ebfc3eff28f8a7 | /lcd.py | 548a699bf551582ffbaa981529cf4e92c29dfccb | [] | no_license | StefanTobler/LCD-Countdown | 955b61490c8f1571ff0947cff2ff64cbf5711462 | 359eda59197af8ce4ac1290b565d365e105bdbea | refs/heads/master | 2021-09-08T09:34:32.355809 | 2021-08-29T18:44:36 | 2021-08-29T18:44:36 | 176,606,300 | 0 | 0 | null | 2021-08-29T18:44:37 | 2019-03-19T22:10:21 | Python | UTF-8 | Python | false | false | 4,729 | py | #!/usr/bin/python
#--------------------------------------
# ___ ___ _ ____
# / _ \/ _ \(_) __/__ __ __
# / , _/ ___/ /\ \/ _ \/ // /
# /_/|_/_/ /_/___/ .__/\_, /
# /_/ /___/
#
# lcd_16x2.py
# 16x2 LCD Test Script
#
# Author : Matt Hawkins
# Date : 06/04/2015
#
# http://www.raspberrypi-spy... | [
"toblerlstefan@gmail.com"
] | toblerlstefan@gmail.com |
9fb299e45736f5f8f6af63943be50b8b47cbe70a | 1143562f0967cc54dff14ffa6dcc96b5b8c1e0ee | /material_inventory/material_inventory/wsgi.py | ffb656dc363106aea55808cd6c7663486281eca1 | [] | no_license | emmadeyi/material_inventory | 61278a1b60390506636b543a956aeebf0cf08770 | e24ee6e470149596762d022386f9bad55ec5f802 | refs/heads/master | 2022-06-27T18:26:53.787121 | 2020-05-08T11:08:25 | 2020-05-08T11:08:25 | 258,782,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for material_inventory 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"emma.madeyi.nuetion.com"
] | emma.madeyi.nuetion.com |
d9bb751f34c8e257138dea53f4f9867ddfaf4d38 | 522ef4ac3fcf82c54cec31e494f3ad86fb2fa0cf | /apps/users/views.py | 151cdac264a1a0aa4b565f6d81d01517b973dd07 | [] | no_license | yanshigou/hydrology_mgmt | 845b124ee7fc726db83024458d222ca6edd71acf | 701149c7beebaca169ad7183434dc2004963e6cf | refs/heads/master | 2022-04-09T00:28:15.470710 | 2019-12-30T02:56:55 | 2019-12-30T02:56:55 | 209,734,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,325 | py | # -*- coding: utf-8 -*-
from django.views import View
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, JsonResponse
from django.contrib.auth.hashers import make_password
from django.shortcuts import render
from rest_framework.views import APIView
from .forms impo... | [
"569578851@qq.com"
] | 569578851@qq.com |
703e0d49a29534beecd05b5fb4f1fd007feb877c | c820df8279e788e88a2e5476a781228bf15075ad | /RoHii | 2fa6294c4d68a5ea5f89f70bbe5c4d4555094f8f | [] | no_license | ROoHii/RoHll | c7ead0fcdaf8477029725e212f11099bff2713d7 | 3103bbde23f36763ecfc0171f03ea7e8831c0daf | refs/heads/main | 2023-01-03T04:35:59.108306 | 2020-10-30T09:19:29 | 2020-10-30T09:19:29 | 308,580,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,316 | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | ROoHii.noreply@github.com | |
6caf2d70cd85ad7bafa882404400345e53f618be | b32caab19ed8fac30cf48e226441602924f1ed1f | /utils.py | 7377d3f4e33fc68c4a0475198a785291cd1657bf | [] | no_license | Wooyong-Choi/attn_style_transfer | be38bc332580b7e5d53aa4096a9b63369d6dadcc | f25bb4860df290b2c89e3c3916aa671380344bf8 | refs/heads/master | 2020-04-26T12:50:34.517368 | 2019-03-08T15:16:54 | 2019-03-08T15:16:54 | 173,562,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | import torch
def sequence_mask(lengths, hops, max_len=None):
"""
Creates a boolean mask from sequence lengths.
"""
batch_size = lengths.numel()
max_len = max_len or lengths.max()
return (torch.arange(0, max_len)
.type_as(lengths)
.to(lengths.device)
.repeat(b... | [
"whdrmt12@gmail.com"
] | whdrmt12@gmail.com |
ccefa8887b00d5bd6d1144590d3eed54c5d81ae5 | 5ffa1d127fc8dfdad5f7cc5abb3dff447b76a749 | /Sudoku_Python_Shell/src/ConstraintNetwork.py | 1e0416953102934da7e0dba348a8de494be62f09 | [] | no_license | APM150/Sudoku-AI | b5b904f4e53bed43f1cf0af45f331edf72dd585a | 4f944c34e41d3f9d83a37947ee3d6b98e9c8b6a1 | refs/heads/master | 2022-11-23T18:21:14.981549 | 2020-07-27T01:34:36 | 2020-07-27T01:34:36 | 279,459,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,983 | py | import Variable
import Constraint
import SudokuBoard
from math import floor
"""
CSP representation of the problem. Contains the variables, constraints, and
many helpful accessors.
"""
class ConstraintNetwork:
# ==================================================================
# Constructo... | [
"xujohnathan021@163.com"
] | xujohnathan021@163.com |
543836db6a97bcf00b8154a8dffb531a23679736 | 32d031f9af37ff70505359f8add5fc44e645fd15 | /api/serializers.py | eb1b1b02439906890bee85ff94370717409d7eab | [] | no_license | Kirom/MovieRaterApi | cfc4851a80f9429e2c866d271638c234cddfaa40 | 3a904afe6813f692cd9f113e0ac6206c1d47434d | refs/heads/master | 2022-11-22T00:46:08.765712 | 2020-07-21T12:41:57 | 2020-07-21T12:41:57 | 277,317,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from rest_framework.authtoken.models import Token
from api.models import Movie, Rating
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'password')
ext... | [
"Vityamirono@yandex.ru"
] | Vityamirono@yandex.ru |
31f0668321cda6ff20e8d3f7aa3f9f8b8d439fd4 | af6c3a769f3abfd3fd65cca1fa7f713d175c968f | /parse_cf_yaml_files.py | 041aa7e2e4ee1a6c5559e5fc95372b8c21c06f3c | [] | no_license | vigneshkarthy3/Automation_Scripts | b72d8041a036314e23f1509ca9f186ae7d447683 | 751ef13b70980391ad16fdc9820f5e3f8e742f0b | refs/heads/master | 2022-12-28T20:34:50.246083 | 2022-12-18T12:35:08 | 2022-12-18T12:35:08 | 294,160,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import os
import yaml,glob
os.chdir(r'testing')
resultdir="result"
files = glob.glob("*.yaml")
for file in files:
resultfile=resultdir+"\\"+file
new_dict={}
with open(file) as f:
docs=yaml.load(f, Loader=yaml.FullLoader)
for each in docs["applications"]:
try:
new_dict["appnam... | [
"vigneshkarthy3@gmail.com"
] | vigneshkarthy3@gmail.com |
db6f9e619cc3eb6af96cb90589f32f741554459c | c78ce4f66cc964c230ad60fbf2ced6b4811eab89 | /0x10-python-network_0/6-peak.py | ab8163dbefd2215b422669954178d075b0be06a2 | [] | no_license | jebichii/holbertonschool-higher_level_programming-1 | 89026557909851dd775ae355f036db89ebd9adb9 | 741953aa479af90e8eac6f1315415eff4a20224f | refs/heads/master | 2023-03-15T14:58:27.062528 | 2020-06-11T07:21:23 | 2020-06-11T07:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/python3
"""
Provides a function to find a peak element in an unsorted list of integers
"""
def find_peak(integers):
"""
Finds a peak element in an unsorted list of integers
"""
if not integers:
return None
if len(integers) == 1:
return integers[0]
if len(integers) ==... | [
"pdeyoreo@gmail.com"
] | pdeyoreo@gmail.com |
366291ef3ecbe926e4c8e8c393691c15ae25005f | d599925c5eb90d03daa29bd6c749876a55380f52 | /main.py | 7f102609bc215a0af29755cfd10d679edd03911a | [] | no_license | jmelton22/informed_search | 364e421599498235c14cb3df6d42c321c3317363 | 39a49836ce82691657d05ba83fb35b797da3cb02 | refs/heads/master | 2020-08-29T19:33:28.522944 | 2019-09-30T15:01:01 | 2019-09-30T15:01:01 | 218,148,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,054 | py | #!/usr/bin/env python3
import heapq
from node import Node
import grid as g
import math
from random import choice
def informed_search(grid, start, goal, greedy=True, manhattan=True):
"""
Handles initialization of data structures for grid search.
"""
visited, unexplored, path = [], [], []
heuri... | [
"jmelton22@gmail.com"
] | jmelton22@gmail.com |
ea8ec717a90f286bfe885c6bc8ed63825d7f93cc | 4fcc4decad928d8df4fcfe2f519485acb38b112a | /users/urls.py | 418fffb9176b0de0db485338bf5a528497538b72 | [] | no_license | Timibreez/saveBlog | 04b7305b17ab329903b90ab3420260693a8d5a6c | e117d7b8281da146b39fb386a23cdec96365d7d3 | refs/heads/master | 2022-07-29T10:03:28.908881 | 2020-05-20T01:14:46 | 2020-05-20T01:14:46 | 265,412,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.urls import path, include
from . import views
app_name = 'users'
urlpatterns = [
path('signup', views.signup_user, name = 'signup'),
path('login', views.login_user, name = 'login'),
path('logout', views.logout_user, name = 'logout'),
] | [
"fftimi@gmail.com"
] | fftimi@gmail.com |
e6e21ac6bb4063b76eaa2241febd3f41d69cd517 | c6422f55de89cc1773ab637e199bc839a0149f11 | /simulators_investigation/system_id/misc/calculating_t2w.py | 509d25519e48f73535fc202a2214f4b4db55f9e5 | [] | no_license | maliesa96/quad_sim2multireal | 5e552a64c365844285554b51895fe7c1c856a7cf | 5ae30cbb90d26a73184f745a1710b952e1d28c88 | refs/heads/master | 2020-12-26T23:19:50.100550 | 2020-03-07T21:10:33 | 2020-03-07T21:10:33 | 237,683,646 | 0 | 0 | null | 2020-02-01T21:57:59 | 2020-02-01T21:57:58 | null | UTF-8 | Python | false | false | 5,383 | py | #!/usr/bin/env python
import argparse
import numpy as np
import os
import sys
from flight_data_reader import reader
import matplotlib.pyplot as plt
from scipy import signal
def normalize(v):
norm = np.linalg.norm(v)
if norm == 0:
return v
return v / norm
def scale_action(action):
"""
scaled and clip the act... | [
"hanspal.pushpreet@gmail.com"
] | hanspal.pushpreet@gmail.com |
d3644245fbb6e118e01fef312221feff42ab5904 | 892c35f72f46f145c3f3860c1c29f1f4503ef9a6 | /solid/management/commands/solid_utils.py | bf76df8227f11afddcb1cdf4ef3e92ed3ccaa1ab | [] | no_license | pymmrd/tuangou | aaa2b857e352f75f2ba0aa024d2880a6adac21a8 | 8f6a35dde214e809cdd6cbfebd8d913bafd68fb2 | refs/heads/master | 2021-01-10T20:31:55.238764 | 2013-11-13T13:53:53 | 2013-11-13T13:53:53 | 7,911,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import os
from django.conf import settings
def gen_dest_tmpl(html, tmpl, flag=None):
tmpl = tmpl.replace('dy_tags', 'tags')
sub_dir, filename = tmpl.rsplit('/', 1)
if flag:
filename = flag
tmpl_dir = os.path.join(settings.TEMPLATE_DIRS[0], sub_dir)
if not os.path.exists(tmpl_dir):
... | [
"zg163@zg163-Lenovo-IdeaPad-Y470.(none)"
] | zg163@zg163-Lenovo-IdeaPad-Y470.(none) |
ecd943fe32764b5d003c08d7e59fdf912e1f3c46 | fc943d383a566a7d0970829142f7c0bc2f69038c | /Digit.py | 36fc00afddf67dc7e1fe23ac93f8439d59a69f7b | [] | no_license | shivangisrivastava0408/Hackerearth_accepted_solutions | 52f84a97fa36c5d003e3563811d065e515bb4e2f | d8edb5346dd69f1090ea5af7098faefde4fdde83 | refs/heads/master | 2020-04-04T09:26:56.432975 | 2019-03-17T14:35:17 | 2019-03-17T14:35:17 | 155,818,466 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | n=raw_input()
p=0
for w in n:
p+=1
print p
| [
"noreply@github.com"
] | shivangisrivastava0408.noreply@github.com |
267c53035abe4b5d31f3e45735b277a207985313 | 83734cb05c768686b45aa1459e3d220151d60b7c | /options/base_options.py | 78e8d225ee928ac718e2d4a0f735e804e1975028 | [] | no_license | guofenggitlearning/RED-Net | b8924d477ec0e05a4da11b2b7c24e2ca0b3fae81 | e7d6159794e2f3563f1d764328eafdc0df0dc4f0 | refs/heads/master | 2020-08-15T09:50:29.447425 | 2018-07-19T03:01:04 | 2018-07-19T03:01:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | # Xi Peng, May 2017
import argparse
import os
from utils import util
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser()
self.initialized = False
def initialize(self):
self.parser.add_argument('--data_dir', type=str, default='./dataset',
... | [
"peter.pen.ac@gmail.com"
] | peter.pen.ac@gmail.com |
e3ae61193e0a2880e6eb878f379a07f656630931 | a722faf9fb50c794555861bb4858c3ed8a7a25f3 | /contest/atcoder/abc095/D/main.py | 7f2f0044567a122b8832c3dbfb0972c08712b132 | [] | no_license | ar90n/lab | 31e5d2c320de5618bc37572011596fee8923255d | 6d035e12f743e9ba984e79bfe660967b9ca8716b | refs/heads/main | 2023-07-25T17:29:57.960915 | 2023-07-22T12:08:18 | 2023-07-22T12:08:18 | 77,883,405 | 4 | 0 | null | 2023-07-17T08:45:14 | 2017-01-03T04:15:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,428 | py | #!/usr/bin/env python3
import sys
from collections.abc import Iterable
from math import *
from itertools import *
from collections import *
from functools import *
from operator import *
try:
from math import gcd
except Exception:
from fractions import gcd
def solve(N: int, C: int, x: "List[int]", v: "List[in... | [
"argon.argon.argon@gmail.com"
] | argon.argon.argon@gmail.com |
0b576136cc62e8b69cc2c0e9b5bd5a1105ee8654 | d6d754aecc1f1dde8a168bdcd1ff85916c9b2ea5 | /backend/venv/bin/pip3.7 | 83c466b4c03cb4082166cfc8be1009c33d21cdf2 | [] | no_license | roxywilcox/CS338-COVID-19-Project-1-Team-1 | 2b30dd11211c5f5685ad9ed60e1e18d214d997cd | 7a2f23770b35ca34d5ea9598cfbd7741fb3a6928 | refs/heads/master | 2022-10-06T12:46:39.514553 | 2020-06-09T21:44:55 | 2020-06-09T21:44:55 | 261,042,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | 7 | #!/Users/aniface/northwestern/CS338/covid/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__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])
... | [
"stella.lee.lzr@gmail.com"
] | stella.lee.lzr@gmail.com |
848c1caad27107184ca3491a4c986e2c04f6352c | 82542073a6b9fa75e8c6e2c94bdea5b10edfda75 | /Only_Python/chatbot/generate_ticket.py | 563e1ff775e2d975ce4f3802e43d77a0c63bcd95 | [] | no_license | ilya-jurawlew/my_projects | a19d8f723588e77ab35fd3e2a8ba60d1f37a2036 | bdf9e6a47587e61fd98eaa94def868430023c31d | refs/heads/master | 2023-08-19T21:48:30.203953 | 2021-10-27T11:55:24 | 2021-10-27T11:55:24 | 366,669,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | import os
from io import BytesIO
import requests
from PIL import Image, ImageDraw, ImageFont
from cairosvg import svg2png
TEMPLATE_PATH = os.path.abspath('files/ticket_base.png/')
FONT_PATH = os.path.abspath('files/Roboto-Regular.ttf/')
FONT_SIZE = 20
BLACK = (0, 0, 0, 225)
NAME_OFFSET = (270, 125)
EMAIL_OFFSET = ... | [
"jurawlew@mail.ru"
] | jurawlew@mail.ru |
656ab23cb73ce77eabb15f38db88a3db0ed76209 | 7ad0e68255b0ec053a5a16fa6e6c8bee06d89902 | /amr_seq2seq/utils/amr.py | f1302a79495eddd06bb746df9e4ab25b174f78ec | [
"MIT"
] | permissive | YerevaNN/amr_seq2seq | e4333b6e9a3ea3fcdfe0a9d6233c465c8da06be4 | 7c76def8e26e06d4a8a279b5db7ae404465ec9b0 | refs/heads/master | 2020-04-24T15:49:42.193589 | 2019-02-22T15:42:16 | 2019-02-22T15:42:16 | 172,084,003 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,770 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
"""
AMR (Abstract Meaning Representation) structure
For detailed description of AMR, see http://www.isi.edu/natural-language/amr/a.pdf
"""
from collections import defaultdict
import sys
import logging
logger = logging.getLogger('amr_postprocessing')
# change this if ... | [
"mahnerak@gmail.com"
] | mahnerak@gmail.com |
4c7fa45bccdd601c393212979c83c051cf06b4bd | e045b8b682eb2935deaf9b607d327665430a35d0 | /Basic Programs/electricitybill.py | ceee7f738cae51c46c0f3f2996116935e8526ab1 | [] | no_license | surendhar-code/Python-Programs | bf97a58db94eed9a6a133b0a6eb50ece6428bc96 | cd8116f2b3beb07e84ae7445895f8a94f14d1977 | refs/heads/main | 2023-05-09T21:22:29.155906 | 2021-06-01T04:17:11 | 2021-06-01T04:17:11 | 343,982,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | units = int(input("Enter the units consumed : "))
if units <= 100:
amount = units*3.00
elif units <=200:
amount = 3.25*units
elif units <= 500:
amount = 700.00 + 4.60 * (units - 200)
else:
amount = 2080.00 + 6.60 * (units - 500)
print("Units = ",units, " Amount : ",amount) | [
"65447707+surendhar-code@users.noreply.github.com"
] | 65447707+surendhar-code@users.noreply.github.com |
7d78d5177729f5f665749df5e38b164a5b32171a | f7a06c4b919c4ced76f260602c3835bda4c9180e | /config.py | 081924999b26c51c97ed6fc3eaff0391afa72210 | [
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | eelcovv/proteus | d060c7afcde4a24b119c01f507aaaacc6584314a | 80c4310d2fa43be2c70fe73914425134debd0139 | refs/heads/master | 2021-01-17T22:41:37.863572 | 2015-02-11T23:13:25 | 2015-02-11T23:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | import os
from os.path import join as pjoin
import sys
prefix = os.getenv('PROTEUS_PREFIX')
if not prefix:
prefix = sys.exec_prefix
PROTEUS_INCLUDE_DIR = pjoin(prefix, 'include')
PROTEUS_LIB_DIR = pjoin(prefix, 'lib')
platform_extra_compile_args = []
platform_extra_link_args = []
platform_blas_h = None
platform... | [
"aron@ahmadia.net"
] | aron@ahmadia.net |
8523b61b15c1d7c42690069d07d5e2e61b04e428 | 2023fa470a2df0c5feda1f57c87752c80366de83 | /03_函数式编程/06_匿名函数.py | 66c5876953c192dee138821dd476ac3a34e3fdeb | [] | no_license | lmmProject/python_01 | 73d53b2b65cc56db936de765b5b9472dc856f59a | f51d24fb054e970c847e448b6ff176b851e1f9fc | refs/heads/master | 2020-03-18T06:18:51.455204 | 2018-11-10T10:05:43 | 2018-11-10T10:05:43 | 134,387,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | # 匿名函数
# 当我们在传入函数时,有些时候,不需要显式地定义函数,直接传入匿名函数更方便。
print(list(map(lambda x: x*x, [1, 2, 3, 4, 5])))
# 匿名函数有个限制,就是只能有一个表达式,不用写return,返回值就是该表达式的结果。
f = lambda x : x*x
print(f)
print(f(5))
#装饰器
# 假设我们要增强now()函数的功能,
# 比如,在函数调用前后自动打印日志,但又不希望修改now()函数的定义,
# 这种在代码运行期间动态增加功能的方式,称之为“装饰器”(Decorator)。
# 本质上,decorator就是一个返回... | [
"752634866@qq.com"
] | 752634866@qq.com |
d4d1963c6252b5ad2e2682a181032d5405da8128 | 8f9e85d98b89bab6b1ba84c8b11745d4b7fd2d69 | /src/circledetection/circle-detection.py | bfce65700f939d25d6e9b7140f8680e629609d2e | [] | no_license | Echaflo/python_opencv_image_manipulation | 1faaa39ca21d78aed1ada9871e825f6aca563ea6 | 7a0d792de5e5608843cb7ef19f068aab3a83c168 | refs/heads/master | 2023-08-11T22:36:42.217725 | 2019-01-20T07:00:01 | 2019-01-20T07:00:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import numpy as np
import imutils
import cv2
from matplotlib import pyplot as plt
#
bgr_img = cv2.imread('../../resources/omr-imgs/omr-1.png') # read as it is
if bgr_img.shape[-1] == 3: # color image
b, g, r = cv2.split(bgr_img) # get b,g,r
rgb_img = cv2.merge([r, g, b]) # switch it to rgb
gray_img =... | [
"asmmahmud@gmail.com"
] | asmmahmud@gmail.com |
d86d741f2fbdcb9846d35a7f23203bd2c06de2c4 | 1c21d0b6bab27159e3cbc7cf2ad7e24b79b47d65 | /bmi/migrations/0004_suggestion.py | e0cc0e2c316ddeb5542331dcd96a97356ed446b5 | [] | no_license | ctijstha/proj | 7fa5ad58cbdacc31f53ec80cdd6d86f51ab6fd76 | 10b9e36f7bf74336e6c7a938294f68bf4815347d | refs/heads/main | 2023-07-11T06:38:18.790931 | 2021-08-02T04:18:58 | 2021-08-02T04:18:58 | 391,814,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Generated by Django 3.1.7 on 2021-04-25 10:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bmi', '0003_auto_20210425_1532'),
]
operations = [
migrations.CreateModel(
name='Suggestion',
fields=[
... | [
"chitij165@gmail.com"
] | chitij165@gmail.com |
e00fdd7472a73b96d2f82a944a235a269d71e7d1 | 8eeef7742573a8b671648d94e448d5614272c5d6 | /Python3/Employee_Info.py | 2806742ccfad84fb0e73100ca146307f0ba832dc | [] | no_license | damodardikonda/Python-Basics | 582d18bc9d003d90b1a1930c68b9b39a85778ea7 | fd239722fc6e2a7a02dae3e5798a5f1172f40378 | refs/heads/master | 2023-01-28T16:22:19.153514 | 2020-12-11T06:36:49 | 2020-12-11T06:36:49 | 270,733,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | class Emp_Info():
'''Ky re Zaatya , Madarchod , Lavdya , Chinnal , Randi ,..........'''
def __init__(s , ename ,esal , comp , eid):
s.e1 = ename
s.e2 = int(esal)
s.e3 = comp
s.e4 = eid
def Info(x):
aa = 2
print(aa)
print("My name is %s " %(x.e1))
... | [
""
] | |
2ba363627f58aa5a01f3a6fc9d241a1c6e47de87 | 9d8e2928b026cc4050598f6f9ef59066a8349f61 | /hacking-game/setup.py | e5384aa2feea975aa3e2e0124533607cc5ff5af3 | [] | no_license | davidlyfr/python-learning | 843c1b1ef914fb9e8b2dcdd24135416ef0dcc832 | f6de7dbb0dceb97e52c79008faaa74d8e2569dff | refs/heads/master | 2021-01-15T16:48:09.715946 | 2018-02-20T22:09:16 | 2018-02-20T22:09:16 | 99,727,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = [
'description': 'Hacking Game',
'author': 'David Lynch',
'url': 'URL to get it at.',
'download_url': 'Where to download it.',
'author_email': 'davelynch45@gmail.... | [
"davelynch45@gmail.com"
] | davelynch45@gmail.com |
20053c07eb4c7606786ad0eb7bbae67c68b3aaf3 | f20e5f22fa3d5c7c868ea7d1850ca5f78529350d | /string_index.py | 1faeafeceb4f7c7c2a99e39cee823fac26cf6b8e | [] | no_license | KenRishabh/BtechCSE | f40e83f17042d3d49c0c491e612e1138e6974b84 | 1897120b973fc9a342143baefc64ecde126a19f9 | refs/heads/main | 2023-04-27T10:38:02.010519 | 2021-05-06T13:18:37 | 2021-05-06T13:18:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #string indexing
language = "Rishabh"
#position(index number)
#R=0 , -7
#i=1 , -6
#s=2 , -5
#h=3 , -4
#a=4 , -3
#b=5 , -2
#h=6 , -1
print(language[-1]) | [
"noreply@github.com"
] | KenRishabh.noreply@github.com |
5edbe851415c7f12fe01314ef03eec162a7e5354 | 1afa1b1929d1cd463cd9970174dd58ce2ca6eb1e | /configs/deeplabv3plus/deeplabv3plus_r101-d8_512x512_40k_voc12aug.py | 9e3cd3501becb0dd284113d675963a2c474b247b | [
"Apache-2.0"
] | permissive | CAU-HE/CMCDNet | 2328594bf4b883384c691099c72e119b65909121 | 31e660f81f3b625916a4c4d60cd606dcc8717f81 | refs/heads/main | 2023-08-08T17:21:57.199728 | 2023-07-28T07:34:40 | 2023-07-28T07:34:40 | 589,927,845 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | _base_ = './deeplabv3plus_r50-d8_512x512_40k_voc12aug.py'
model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
| [
"flyhxn@qq.com"
] | flyhxn@qq.com |
69a3ef5ba87477ee91fea7adbf43cc3563a04e62 | 97f1f0c3c767f5b81d33ab879e4e37809b201660 | /HelloEclipse/python/textReplacement.py | 26565552aa41a6267828fc7fda77b48538197fb0 | [] | no_license | norhanelzanaty92/hello | 7481689d22ffde6cfc7bf3d2c3145239e864e8e8 | 56378da210c14c024c765955f6e19db24e9ccdc9 | refs/heads/master | 2021-01-10T05:45:29.831470 | 2016-04-02T13:19:56 | 2016-04-02T13:19:56 | 55,295,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,673 | py | import sys
import re
import os.path
#adding the header to the file
def Addingtofile(Headerfile,ASMfile):
f1=open(Headerfile,'r')
f2=open(ASMfile,'r')
lines1=f1.readlines()
lines2=f2.readlines()
f1.close()
f2.close()
f2=open(ASMfile,'w')
for line in lines1:
f2.write(line)
for line in lines2: ... | [
"m.mamdooh@mamdooh"
] | m.mamdooh@mamdooh |
020e733c9e884550d43c2b341cebf6129d819ed9 | f01597b46110214c3823e762b0e46455d67930f7 | /multidb_router_app/data_handler.py | 2342ceb8375c703de4c8cc43cd9cb352d16d39ce | [] | no_license | yshlodha/multidb_router | 3f128399391b7a40668117d60d29f7c34d805dc3 | ce7769be4c2b0f10ccec375f72f5fd6dd5fe1e46 | refs/heads/master | 2020-03-10T00:03:13.877376 | 2018-04-11T12:24:58 | 2018-04-11T12:24:58 | 129,072,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | from .models import *
def get_product_list(user):
"""
:param user:
:return:
"""
product_list = []
try:
dbuser = DatabaseUser.objects.get(user__username=user.username)
dbs = dbuser.databases.all()
for db in dbs:
products = Product.objects.using(db.name).filte... | [
"yshlodha03@gmail.com"
] | yshlodha03@gmail.com |
f925b0bbc8dff7cade5763ea534cd301ea570730 | d36471a481ff0ff71aa277d14928a48db9b6140b | /melons.py | 1ecfacead0e3930d7b11d129e6adb944e4fa10f5 | [] | no_license | Quynhd07/melons-classes | ca0e47f694cc6337136ca2431f7a856e9135b3ea | f668d5fd97dd7c3a37bd26bbfe2310324fdd388c | refs/heads/master | 2020-12-30T00:40:33.897567 | 2020-02-07T21:05:17 | 2020-02-07T21:05:17 | 238,799,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | """Classes for melon orders."""
class AbstractMelonOrder():
"""An abstract base class that other Melon Orders inherit from."""
def __init__(self, species, qty):
"""Initialize melon order attributes."""
self.species = species
self.qty = qty
self.shipped = False
def get_to... | [
"you@example.com"
] | you@example.com |
136d2a167c8d553bc5631b9273a93ef436f3759d | c8a1b6fba433fd1d685d01e8edc5e25d1263a785 | /lib/python3.7/tempfile.py | 28a0f20e40e5697aa9c8aa046f4cade2f3b75b84 | [] | no_license | eaduart/dmsWeatherStation | b99e35cc78a03ce74714b6052c274580a25defb6 | 52b6f727f808cef8fe9b368d8b421a200f3bc563 | refs/heads/main | 2023-02-07T19:17:52.695403 | 2021-01-02T08:53:17 | 2021-01-02T08:53:17 | 326,067,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | /Users/eduarte@us.ibm.com/anaconda3/lib/python3.7/tempfile.py | [
"eduarte@us.ibm.com@Edwards-MacBook-Pro-2.local"
] | eduarte@us.ibm.com@Edwards-MacBook-Pro-2.local |
4776c9684c14116959aaa73abbf7a29bfac6a229 | bdc9a3263ad2f58aa2d3dffde2ce78d3b51c71fd | /Archive/intensive_snn_tests/intensive_snn_tests_16.py | bc02e601e708b874787ccd3d376d7a879fb9b98b | [] | no_license | yjod22/Framework_SNN | 15a7ee783fa50daadf6f28302a55809def7ec3c3 | 7beec46414745d59a5d7a59395bd6447bed4a58a | refs/heads/master | 2022-04-07T07:54:36.731178 | 2020-02-20T14:32:07 | 2020-02-20T14:32:07 | 188,841,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,419 | py | #
###############################################################################
# #
# Copyright (c) #
# All rights reserved. #
# ... | [
"yjod22@naver.com"
] | yjod22@naver.com |
b943ead1eacea576c10699349c9f96e7cc928967 | 2a53f6b341fad4c317d05d2302ce9243a028869c | /htmlmth/evasions/html/generate_encodings_py.py | 7ea90438e5798fd96b128fa6cff80849349a4e5b | [
"MIT"
] | permissive | OldSecureIQLab/htmlmth | 2cc5472f1086fed5d7e57b3e03446afe12a2e116 | 74d23ca2fa53e11b2587251d2f71c8f275548182 | refs/heads/main | 2023-08-11T15:48:57.838412 | 2021-09-15T17:13:40 | 2021-09-15T17:13:40 | 336,342,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,366 | py | # Too lazy to create evasions/html/encodings.py by hand
document = ""
document += """from . import TransformFunction, string_to_tfarg_function, mime_type_based_transform, normalized_headers_to_tfarg_function
import htmlmth.mods.http
import htmlmth.mods.html
# This file was generated by generate_encodings_py.py"
"... | [
"CreatePhotonW@gmail.com"
] | CreatePhotonW@gmail.com |
b2d73bf7801bce94f947af621d2658b3dbbd6969 | 0b980e227018f631579e20187e60d7140e301eaf | /canstick2.py | 2323717881ad16a8731c05d281457a0facd6a51e | [] | no_license | saleelpk95/3D-Thinning | 91854ad04ca9e066e0caaa0daee9bceab4a7f605 | 197152089d29c983545f72807178185069cd1bb3 | refs/heads/master | 2021-01-15T20:09:47.397326 | 2017-11-22T19:42:59 | 2017-11-22T19:42:59 | 99,848,810 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,261 | py | widthGrid = 7
heightGrid = 1
depthGrid = 7
lookup = [ # 80 entries
{ 'x': 2, 'y': 0, 'z': 0 }, # layer 0 ( voxel 0 )
{ 'x': 3, 'y': 0, 'z': 0 }, # layer 0 ( voxel 1 )
{ 'x': 4, 'y': 0, 'z': 0 }, # layer 0 ( voxel 2 )
{ 'x': 5, 'y': 0, 'z': 0 }, # layer 0 ( voxel... | [
"saleelpk95@gmail.com"
] | saleelpk95@gmail.com |
b5603b0c427e91c8e8c47439c7e4f5c9e0981c81 | 57cd8d92675227a16f54c6cf3fe2a7266221364b | /google-blog-converters-r79/lib/googleappengine/python/google/appengine/api/apiproxy_stub_map.py | 716498f8344a2ec50b288fe5e79e7b360509d2d3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | hylom/pyblosxom2wp | 7265cb39cacccffb7fd333f545b76953502f9c92 | fa500acb2b7be96d9371958970be55eddbd7fc3c | refs/heads/master | 2016-09-05T20:15:27.197969 | 2009-12-01T16:55:29 | 2009-12-01T16:55:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,264 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"hylom@silver.local"
] | hylom@silver.local |
4cfe8f1a65903b6bafb4740fff874b3e4108493f | ab8b338fe5c7b522241feb4f7bb71950509c7a06 | /python/problem26.py | f1f67ebd383b6069f831fa61e3e8acb5df4e4932 | [] | no_license | amomin/proje | 5d111fa413a493809356cafecb3a2c017bc29f21 | 480f08b028cd56eb99a1c3426508d69ffe578f05 | refs/heads/master | 2016-09-06T18:18:28.652006 | 2015-02-28T20:26:28 | 2015-02-28T20:26:28 | 24,754,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | def repFraction(d):
# returns a list representing the decimal expansion of 1/d
r_0 = 1
k = 1
digitList = []
remainderList = [1]
doRepeat = 1
while (doRepeat == 1):
while (d > r_0*10**k):
k = k+1
digitList.append(0)
remainderList.append('s')
# Now d <= r_0*10^^k
x = r_0*10**k/d
rem = r_0*10**k - ... | [
"amomin@evermight.com"
] | amomin@evermight.com |
2d283c29a7787686b4bcf6f95235d830ff3d30c7 | 2359121ebcebba9db2cee20b4e8f8261c5b5116b | /configs/d4_16.py | 9cb1b39825a598c084e3817351bc0cf9c8b9f6e7 | [] | no_license | EliasVansteenkiste/plnt | 79840bbc9f1518c6831705d5a363dcb3e2d2e5c2 | e15ea384fd0f798aabef04d036103fe7af3654e0 | refs/heads/master | 2021-01-20T00:34:37.275041 | 2017-07-20T18:03:08 | 2017-07-20T18:03:08 | 89,153,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,394 | py |
#config a6 is equivalent to a5, except the normalization
import numpy as np
import lasagne as nn
from collections import namedtuple
from functools import partial
import lasagne.layers.dnn as dnn
import lasagne
import theano.tensor as T
import data_transforms
import data_iterators
import pathfinder
import utils
import... | [
"Elias.Vansteenkiste@gmail.com"
] | Elias.Vansteenkiste@gmail.com |
192d6fe790c62907ebf8671fffb1cdeac974733b | 12508b7481a5910e7f5568c99afa3f1e1d487066 | /catkin_ws/build/darknet_ros_msgs/catkin_generated/generate_cached_setup.py | 7134d326bd259fe991c20c3ee337778e524273c8 | [] | no_license | lkj10/ros_study | 1aabc439b5d17d19ce623a8bce6d5d9645d3f238 | a2ada1854fff366338b5906709b7efb098332212 | refs/heads/master | 2023-06-05T15:01:43.511785 | 2021-06-18T08:06:51 | 2021-06-18T08:06:51 | 373,006,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"lee_10_@naver.com"
] | lee_10_@naver.com |
a428a98e63d7caddab5315749f13cd186356343f | e054c2961fadf721fda9f48946862b7a0eb68448 | /rabbitmq_to_http_proxy.py | 288337a81ac08c08b19cfc82f4e86ae17b3fc650 | [
"MIT"
] | permissive | tomasrasymas/rabbitmq-http-proxy | 96587ee12bd01b7d1fa247f046683f37581ef4e6 | d475716e59f4dccf24d67e96adb5ec245f74c728 | refs/heads/master | 2022-12-17T21:53:28.877333 | 2018-02-19T15:58:11 | 2018-02-19T15:58:11 | 122,070,949 | 2 | 0 | MIT | 2022-12-08T00:52:27 | 2018-02-19T14:05:15 | Python | UTF-8 | Python | false | false | 2,992 | py | import json
import requests
from argparse import ArgumentParser
from rmq_consumer import RmqConsumer
def str_to_dict(string):
try:
return json.loads(string)
except:
return None
class RabbitMqToHttpProxy(RmqConsumer):
def __init__(self, url, exchange, queue, routing_key='#', queue_type='t... | [
"tomas@dutrys.com"
] | tomas@dutrys.com |
0d36f928a95de75fd5dda09a45c0dd309b68f161 | 4504b178f456cd81283d0ebd25e5740a3a7062e5 | /correos y usuarios/NodoCabecera.py | 51262c9cbca9cd78e6a396ce318167cda01d0d4d | [] | no_license | spartan0614/Users | 22e398b539ee71f858264d4c637a11a89fa5732c | 0bbb7fc305036a0cc13be24b0e74050116f7b0f3 | refs/heads/master | 2021-01-21T10:52:44.778104 | 2017-03-05T22:28:55 | 2017-03-05T22:28:55 | 83,497,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | class NodoCabecera(object):
def __init__(self, x):
self.x = x
columna = ListaVertical()
self.siguiente = None
self.anterior = None | [
"62442joss@gmail.com"
] | 62442joss@gmail.com |
ca0f4f3aaa6d703204567dde081e416ee6d3b5b8 | 785ff68f2557422a3ad4bee9e8a9459ffe1a9128 | /src/dj_asana/apps.py | ff9026cb87bbf8e60d847d2c14990d4cdd7638a0 | [] | no_license | Saumyaoec/Todo-asana-new- | d42f7e87166ec0aff81e3f93e29dfeae6614b7cf | ee9ea8b30037ddb0d51b08a63dbca880fd824206 | refs/heads/master | 2023-08-12T00:27:48.062101 | 2021-10-05T07:47:53 | 2021-10-05T07:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.apps import AppConfig
class DjAsanaConfig(AppConfig):
name = 'src.dj_asana'
verbose_name = 'Asana'
| [
"adil.e.amirov@ya.ru"
] | adil.e.amirov@ya.ru |
6d08539928c9747db4f35f25def1d75569fdf93d | 94f4bb0f6e43b2eb2f1bdb284a580b76121fa9af | /309.py | c3f3545e6d6ca9a6f20a760dd5959d614480e83e | [] | no_license | huosan0123/leetcode-py | f1ec8226bae732369d4e1989b99ab0ba4b4061c4 | 22794e5e80f534c41ff81eb40072acaa1346a75c | refs/heads/master | 2021-01-25T11:48:17.365118 | 2019-09-12T15:45:34 | 2019-09-12T15:45:34 | 93,934,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
copied.
"""
cash0_pre, cash0, hold1 = 0, 0, float("-inf") # initialization is key!
for price in prices:
old = cash0
cash0 = max(cash0, hold1 +... | [
"lc_286@126.com"
] | lc_286@126.com |
c0a323d6563dda7c8ac2b49d827352f6379ba03d | caed98915a93639e0a56b8296c16e96c7d9a15ab | /DP/stocks/Stock_II.py | 5ec46fcd78856a48fdfcf6ebdb61c059e7384e15 | [] | no_license | PiyushChandra17/365-Days-Of-LeetCode | 0647787ec7e8f1baf10b6bfc687bba06f635838c | 7e9e9d146423ca2c5b1c6a3831f21dd85fa376d5 | refs/heads/main | 2023-02-13T10:41:36.110303 | 2021-01-17T11:58:51 | 2021-01-17T11:58:51 | 319,974,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | class Solution:
def maxProfit(self, prices: List[int]) -> int:
return sum(max(prices[i+1]-prices[i],0)for i in range(len(prices)-1))
| [
"noreply@github.com"
] | PiyushChandra17.noreply@github.com |
6d50dfec0241037b9962a1323d3b563449edf513 | fd0d0c8ecfa0da47cfcac35a6ffb4537235d3702 | /eportal/urls.py | f300d964010587be10fe559dd997868d511faae0 | [] | no_license | mohandutt134/eportal | 16b0e69a668837a854ef410e1224eaac172bccf3 | e39d004061b64bfb1016fbbb7aabc60c92b78cf3 | refs/heads/master | 2021-07-25T21:47:38.022787 | 2019-04-18T15:21:12 | 2019-04-18T15:21:12 | 254,024,373 | 0 | 0 | null | 2021-06-10T22:44:39 | 2020-04-08T08:06:52 | HTML | UTF-8 | Python | false | false | 1,789 | py | from django.contrib import admin
from django.conf.urls import *
from student import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^attendance/', include('attendance.urls')),
url(r'^quiz/', include('quiz.urls')),
url(r'^notification/', include('notification.urls')),
url(r'^accounts/... | [
"vibhanshu86@gmail.com"
] | vibhanshu86@gmail.com |
d322b77825b27b31a958a4e43548fe58c0b1e526 | 9e0796e19634e191cfa08f6244305cf85454d6b0 | /core/common_data.py | fe10de394e8e2b3a532804863d26c2a04c1f9e40 | [
"BSD-2-Clause"
] | permissive | tanshinepan/interface_auto_test | 53a3094fca4f54878813cef8f4519dcf301ee2a0 | 9c2b177bd2ad60b5e1e8b1f3c7e06d6a534e9c00 | refs/heads/master | 2022-07-13T03:52:15.739207 | 2020-05-13T10:38:46 | 2020-05-13T10:38:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | #coding=utf-8
"""
存放用户的数据
全局变量
用例集变量
用例变量
"""
#全局变量
global_vars={}
#用例集变量,每个用例集运行时会初始化
testsuite_vars={}
#用例变量,每个用例执行时会初始化
testcase_vars={}
#api template的模板集合
api_template_dic = {}
#testsuite测试用例集数据保存的集合
testsuite_dic = {}
#testsuite测试用例集数据保存的集合
testsuite_list = []
#测试用例数据
testcase_list=[]
#当前执行的测试用例集名字,其实就是用例集... | [
"huaizheng.xie@shuyun.com"
] | huaizheng.xie@shuyun.com |
5acd1660ba5455bc1084047dc66d3485dde5efb6 | fb9c24e1e27c930881f54a0d609683983c726cec | /main/migrations/0032_auto_20210326_1139.py | 9fac8da7459eaeeeeff9e17fe2d1e1408b18388e | [] | no_license | Safintim/flower-shop | 6ba28f3f82912bcedd8c7d1e259557cda729410e | 92c0b7488b5370fc5512d6ce85f0e76a2a55bdbd | refs/heads/master | 2023-04-08T18:48:43.866959 | 2021-04-14T10:18:06 | 2021-04-14T10:18:06 | 254,976,051 | 0 | 0 | null | 2020-06-06T08:55:36 | 2020-04-11T23:50:58 | Python | UTF-8 | Python | false | false | 371 | py | # Generated by Django 3.1.7 on 2021-03-26 11:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0031_auto_20210326_1118'),
]
operations = [
migrations.DeleteModel(
name='Callback',
),
migrations.DeleteModel(
... | [
"timurtlt96@mail.ru"
] | timurtlt96@mail.ru |
d023b130f65e19950fb31e48e224df3d98fde7be | 97b5e5b1f634012ac1a0552e9ebf9f23881c9bb7 | /openmm_equilibration.py | 725168f98e652b9efc6b1e270e8bc449594dc628 | [
"MIT"
] | permissive | mikeoconnor0308/HTMD-Adaptive-OpenMM | ce5884b090b72369224df64b1849a98d6f28eeaa | 0a994b1a2c0f48a1c7653e0042716799430e5c98 | refs/heads/master | 2021-05-14T15:37:15.167517 | 2018-01-02T14:22:21 | 2018-01-02T14:22:21 | 115,997,346 | 2 | 2 | null | 2018-01-02T11:34:45 | 2018-01-02T09:19:49 | Python | UTF-8 | Python | false | false | 3,704 | py | """
Loads a pdb file (+ dcd file if required) minimizes and equilibrates using Amber10 forcefield & implicit solvent.
It also outputs an AceMD .coor file for compatibility with HTMD's adaptive sampling.
For follow up use in adaptive sampling in HTMD.
"""
#/usr/bin/env python3
from __future__ import print_function
from ... | [
"mikeoconnor0308@gmail.com"
] | mikeoconnor0308@gmail.com |
04ffc83362365411680d47c2fd4221c7a4424d62 | 3d325da9ac51d1b47cc06e3aec5fdad0aaccd248 | /alarm.py | a75dbbfe4e2327a526314b3dae0818156b260ca5 | [] | no_license | bkanuka/kodi_alarm | 4613d7a840d8c9ab23faed59a9f799796dd2f772 | 47842c4d8f10d04c2cbd280f322bc69c03a70937 | refs/heads/master | 2016-09-06T13:13:37.140130 | 2015-08-30T18:02:22 | 2015-08-30T18:02:22 | 39,732,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | import sys
import time
from harmony_control import Harmony
from kodi_control import Kodi
from amp_control import Amp
EMAIL='bkanuka@gmail.com'
PASSWORD='lookout'
HARMONY_IP='HarmonyHub'
HARMONY_PORT=5222
KODI_IP='kodi.home.bkanuka.com'
KODI_PORT=8080
print 'init'
harmony=Harmony(HARMONY_IP, HARMONY_PORT, EMAIL, PASSW... | [
"bkanuka@gmail.com"
] | bkanuka@gmail.com |
6895432cdb44dcd345003bed6d3af69f1745cbce | 2c7f99ff86d1786d133df13a630d62e7dcc63fab | /google/cloud/dialogflow_v2/services/conversation_profiles/transports/base.py | 5768948c216410b18bbda0988ae8fa09340f5c83 | [
"Apache-2.0"
] | permissive | rlindao/python-dialogflow | 2141b7181506210c6cfffb27bb9599ad21261c28 | 8958e562bb159b00bb1fc0fa97e5ffd35dea058d | refs/heads/master | 2023-04-06T15:09:14.888871 | 2021-04-16T21:34:24 | 2021-04-16T21:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,312 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | rlindao.noreply@github.com |
01504108aee0443c04b0634dcab1846110c965b7 | 32d32081f03ec813faed9559300d633761cd275c | /dbhelper.py | b0e54dc865e9473f76938b9bba860cc0c8f703cb | [] | no_license | jjsalomon/internship-sample-code | 5bb7c7358c01bb387c0e5f300f6bb7c32d49d62d | 766f8e1f99cfb0f5ad0ebab360442da22e6d4a52 | refs/heads/master | 2021-01-19T19:39:55.452384 | 2017-08-23T16:01:38 | 2017-08-23T16:01:38 | 101,199,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,771 | py | # -*- coding: utf-8 -*-
import sqlite3
class DatabaseHelper():
# This class is a singleton instance
__instance = None
@staticmethod
def getInstance():
if DatabaseHelper.__instance == None:
DatabaseHelper()
return DatabaseHelper.__instance
'''Constructor'''
def _... | [
"jsalomo1@ms.ds.uhc.com"
] | jsalomo1@ms.ds.uhc.com |
0b9347644b1ad62f3f1deb8668c660a135c70885 | e89509b453632747077bc57dbec265a7703d5c7c | /list/listappend.py | a2ddb719341f157c2047747bdda0aa142f51df03 | [] | no_license | Madhav2108/udemy-python-as | a9dcfdbfdc1bb85471aa66de77957e962a7c5486 | 0bc6a501516618fb3c7ab10be6bc16c047aeec3f | refs/heads/master | 2023-03-30T11:25:16.064592 | 2021-03-30T18:10:46 | 2021-03-30T18:10:46 | 286,001,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | List = []
print(List)
List.append(1)
List.append(2)
List.append(4)
print(List)
for i in range(1, 4):
List.append(i)
print(List)
List.append((5, 6))
print(List)
List2 = ['For', 'Geeks']
List.append(List2)
print(List)
List.insert(3, 12)
List.insert(0, 'Geeks')
print(List)
List.extend([8... | [
"noreply@github.com"
] | Madhav2108.noreply@github.com |
4b0ce440690b330210af5adef191674bf778c002 | 352d34bd1288b3484f134edddec261ff106c67be | /data_handling_scripts/climex_time_series_length.py | 11a0edbecaf3d37d37520fdcda6378f9cadab2e0 | [
"MIT"
] | permissive | thanosargiriou/climex | 01b44bbdec2261642129393114522272d6d157fe | 73971c56f9afb054ed088843995e9e48e694d8ea | refs/heads/master | 2023-07-01T04:58:09.770410 | 2021-08-03T18:04:12 | 2021-08-03T18:04:12 | 304,844,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | """
Reads the daily_data_allstations_20210319.csv file and finds the time - series length for each station and parameter
Thanos Argiriou, 2921-07-11, LAPUP
"""
import pandas as pd
params = ['TN', 'TG', 'TX', 'DTR', 'RR'] # Meteorological parameters to be processed
# params = ['TN']
# Reads the datafile
df = pd.rea... | [
"athanarg@gmail.com"
] | athanarg@gmail.com |
1ac4822dd02e34f946f4183122d8a6b5ec804d02 | ba949e02c0f4a7ea0395a80bdc31ed3e5f5fcd54 | /problems/greedy/Solution678.py | f37f62721d5aa37063dd666a0d011a7ac22e9daa | [
"MIT"
] | permissive | akaliutau/cs-problems-python | 6bc0a74064f6e9687fe58b13763da1fdf2e1f626 | 9b1bd8e3932be62135a38a77f955ded9a766b654 | refs/heads/master | 2023-05-11T22:19:06.711001 | 2021-06-04T11:14:42 | 2021-06-04T11:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | """ Given a string containing only three types of characters: '(', ')' and '*',
write a function to check whether trightBoundarys string is valid. We define
the validity of a string by these rules:
Any left parenthesis '(' must have a corresponding right parenthesis ')'. Any
right parenthesis ')' must... | [
"aliaksei.kaliutau@gmail.com"
] | aliaksei.kaliutau@gmail.com |
3971c8ab3be504b2d034eba31fa56669b8617dd8 | 97146f81bb9f80371ef261998eb5ba51230ad636 | /portfolio/models.py | 65cd11c88ac65a4482f0b50bad31e54cf3cb65a1 | [] | no_license | camiloGmz/my-first-blog | 69cfd985b73d8e72d9ace94d650fc1e66efb9f74 | e297b00ea13eb463285fa78adf65e8230e29a60d | refs/heads/master | 2020-05-31T04:18:44.897823 | 2019-06-20T02:30:41 | 2019-06-20T02:30:41 | 190,096,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | from django.db import models
# Create your models here.
class Project(models.Model):
title = models.CharField(max_length=200, verbose_name='Titulo')
description = models.TextField(verbose_name='Descripción')
image = models.ImageField(verbose_name='Imagen', upload_to="projects")
created = models.DateTim... | [
"camilo07@utp.edu.co"
] | camilo07@utp.edu.co |
b18f2725fed0c7d7320443034e222fa535f61df9 | a889ab9b402424b0cfdf5f14da62bd4e747270a2 | /GithubApi.py | 3d94ba6e5a0cf715d48c9d2e73ee35d9e701cbb0 | [] | no_license | prerana-agale/Github_Integration | cea00a0334ad02ee8fbbc635bc54dce512f819e0 | 89b380938817c58c6d2c64bf73f4cd73907d4cce | refs/heads/master | 2023-01-10T01:54:16.287728 | 2020-11-11T06:16:23 | 2020-11-11T06:16:23 | 308,229,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | import requests
from pprint import pprint
from secret import Token_Value
API_URL = "https://api.github.com"
GITHUB_TOKEN = Token_Value
headers = {
"Authorization": "token " + GITHUB_TOKEN,
"Accept": "application/vnd.github.inertia-preview+json"
}
user_details = requests.get(API_URL + "/user", headers=headers)... | [
"Prerana.Agale@blueconchtech.com"
] | Prerana.Agale@blueconchtech.com |
7cf3f299b8843e75852a43bf7620ada06c806026 | 1439bf1f4127331306aa9abc2153170073b3f171 | /src/catalog/views.py | 0f27b4f3e01f844e3af061d98ad5a077a0a158e3 | [
"MIT"
] | permissive | xgerinx/skillsitev2 | 6c6ac7bfdfc19dea46ea8a57498a12d1a9120a1b | 860d1c1214de125346c0accc4ec4b8953297231b | refs/heads/master | 2023-08-25T05:57:04.704007 | 2021-10-26T09:41:20 | 2021-10-26T09:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | from rest_framework.generics import RetrieveAPIView, ListAPIView, get_object_or_404
from rest_framework import status
from rest_framework.response import Response
from rest_framework.permissions import AllowAny
from rest_framework_simplejwt.authentication import JWTAuthentication
from rest_framework.viewsets import Gen... | [
"xi.forwork.ix@gmail.com"
] | xi.forwork.ix@gmail.com |
9ea9323c06957ea63a4699fe72b9431a47cd9117 | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/313.super-ugly-number.py | 704a9e40a9a97991c2693e51d1623cb6c3511bc7 | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | #
# @lc app=leetcode id=313 lang=python3
#
# [313] Super Ugly Number
#
# https://leetcode.com/problems/super-ugly-number/description/
#
# algorithms
# Medium (43.02%)
# Total Accepted: 67.2K
# Total Submissions: 156.3K
# Testcase Example: '12\n[2,7,13,19]'
#
# Write a program to find the n^th super ugly number.
#
... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
de49b4fb64c81096e931547635d5aad4087c37b0 | ba9267a02d30f00ede218c238408d3a0833e9b90 | /9.chapter/09_12_pr.py | 736768e808e78a8cf153bef9e3d9c88632fc2b6d | [] | no_license | Niraj-Suryavanshi/Python-Basic-Program | dae6a89eb25fda8a8780e97b8e291c24db5ddbeb | 7e01210a547b9e0c78bd747abd9ae8ccc519dd37 | refs/heads/main | 2023-08-11T05:59:06.770332 | 2021-09-14T18:58:24 | 2021-09-14T18:58:24 | 406,478,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | with open("this.txt")as f:
content=f.read()
with open("copy.txt","w")as f:
f.write(content) | [
"nirajsuryavanshi561@gmail.com"
] | nirajsuryavanshi561@gmail.com |
6c87426b542d1abe69697bbadc042bbe7343942b | ee4ecc3c526322dc42c2d2bcf6a9982694da5d69 | /other/clrs/14/03/07.test.py | b349eec398176b98a6e752fb0837a12aba2c2153 | [] | no_license | skanev/playground | 77d0f35a7e932021c9da8ce4f9095be9ac8a5c1e | 07b88d789391e34d71a74722b0b42b328b1f3c62 | refs/heads/master | 2023-04-15T14:07:42.719874 | 2022-12-20T09:12:00 | 2022-12-20T09:12:16 | 191,557 | 212 | 108 | null | 2023-04-12T05:33:25 | 2009-05-03T16:41:17 | Scheme | UTF-8 | Python | false | false | 1,698 | py | import unittest
import random
from os import path
filename = path.join(path.dirname(__file__), '07.py')
exec(open(filename).read())
def overlapper(rectangles):
for i in range(0, len(rectangles) - 1):
one, *others = rectangles[i:]
for other in others:
if other.overlaps(one):
... | [
"stefan.kanev@gmail.com"
] | stefan.kanev@gmail.com |
5f23d9830b94d4b6209d4050700114bf38faa25c | de5001910545361f1443ab6743131f1035dc4aee | /Numpy/01_N-dimen.py | 9c80ee73f7866cd9b5d6c2e7cea1bc0210b95a68 | [] | no_license | DucThanh1997/Khoa_luan | 04c2a4a4b408f43eeb9a18f2519186de887a619b | fcaef88f22f393078eb8e1bebf134c4916d3b40e | refs/heads/master | 2022-11-29T23:02:47.528585 | 2019-12-31T14:55:26 | 2019-12-31T14:55:26 | 186,123,267 | 0 | 1 | null | 2022-11-28T15:58:12 | 2019-05-11T11:14:34 | Python | UTF-8 | Python | false | false | 1,355 | py | import numpy as np
x = np.array([[1, 2, 3], [4, 5, 6]], np.int16)
print("mảng x: ", x)
print("\n")
print("in cột 2 của x: ", x[:, 1])
print("\n")
print("in dòng 1 của x: ", x[0, :])
print("\n")
print("\n")
y = np.array([[[1, 2, 3], [4, 5, 6]], [[-1, -2, -3], [-4, -5, -6]]], np.int16)
print("mảng 2 c... | [
"noreply@github.com"
] | DucThanh1997.noreply@github.com |
e04ef3b1cbd752b86f154186d48662ed0bc3505e | 4565e949c16af3e11d8b0fcbe737971974162988 | /app1.py | 26256d04febf96fd6d1e16feffc76e32629aa2d6 | [] | no_license | Kappalize/git-github | 69a4165de6e1d23aa445b848e1894fa19860de97 | f1085b10f03eff66c3bcc2eb003cd8dda19a18c0 | refs/heads/master | 2020-04-22T13:11:35.211188 | 2019-03-07T03:30:02 | 2019-03-07T03:30:02 | 170,400,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py |
def main():
namibia()
angola()
def namibia():
bird = 5000
print(f'Namibia has {bird} bird.')
def angola():
bird = 3000
print('Angola has {bird} bird.')
main()
| [
"noreply@github.com"
] | Kappalize.noreply@github.com |
8f146c6797bd36f47f97f9b1f2f25369e0da9fe9 | 976e242dcebfa105b406784c94be70b631f0b9d2 | /pwnable.kr/starcraft/solve.py | 19074356ac460432c79fed64e331ce3c10f1df08 | [] | no_license | whszzzzzz/ctfwriteup | 7ef9f239211e17140e156ad168a788c36c2a339e | 8fab747c2eafa8874c446c3add9c10769af85c99 | refs/heads/master | 2021-06-19T15:10:28.159827 | 2017-07-07T07:54:44 | 2017-07-07T07:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | from pwn import *
s = remote('192.168.0.85',1234)
s.interactive()
| [
"mashirogod@gmail.com"
] | mashirogod@gmail.com |
1a6408cf2bf15c07c9977aa6de6ea73d2bf257f7 | 289559fe935ca8f0437854c7cc55b2bcd81f3e09 | /config.py | 0a6e5ff4b04f60d99951d65790fbc38a641aac01 | [] | no_license | aSimonSheng/origin | 4463ffbb29134f081f94749d38d300256b60562c | 0a89a57171f6bd6b248db1afe5db287f791ff4bb | refs/heads/master | 2020-03-19T19:33:36.691073 | 2018-06-19T12:53:07 | 2018-06-19T12:53:07 | 136,862,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | # -*-coding:utf-8-*-
import redis
import logging
class Config(object):
# 普通配置
DEBUG = True
SECRET_KEY = 'akdjhaidiagdgag'
#数据库配置
SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@192.168.223.141:3306/information'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
#... | [
"aSimonSheng@outlook.com"
] | aSimonSheng@outlook.com |
afb53abd9153e5aa6e56688b5411afd6c282a5ab | 4c617db46fb3eeb80a9acd9549d59307929a74dd | /test.py | 8e446be3ec2c0cb205a4de57a2912a65913bfe63 | [] | no_license | mAzurkovic/PyElements | 79e0c771311b56254083531f1bf6223a4ce8d4b5 | e8f5276bc1059e3a070e94cf97894330ca23625d | refs/heads/master | 2020-12-25T16:25:03.895084 | 2016-08-05T17:51:40 | 2016-08-05T17:51:40 | 40,604,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | import pyelements as elements
print elements.get_by_name("Hydrogen")
| [
"mattias@zurkovic.com"
] | mattias@zurkovic.com |
ee247b71130125baa5f05f0fafa6ddf3753e5211 | 49e8d7b7075a4676c012d9ecf71dc978bd8f3174 | /Competitive/Day14/constructBSTfromPreoreder.py | c120b05b28f01eb4877220cb5cde32ecef9c0b91 | [] | no_license | eban12/compettitive_programing-cs478- | 3e06011ffb86172995dc69124832e0f69c85544e | 0c0f2e77a4ae989bbf249618bc11825561e9bc1c | refs/heads/master | 2021-07-13T05:34:02.988023 | 2020-12-02T12:11:26 | 2020-12-02T12:11:26 | 225,411,991 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def bstFromPreorder(preorder: List[int]) -> TreeNode:
if len(preorder) == 0:
return None
left = []
right = []
r = preorder[0]
for i in preo... | [
"noreply@github.com"
] | eban12.noreply@github.com |
81f2637a8ed5c8510fcc5945d5235d911e45462f | 7c68212791621363da7f007b1ef449597937d20c | /day_1/operator_shorthand.py | 7070ebe9f8fe49ba7490762189795e3db53c65f3 | [
"MIT"
] | permissive | anishLearnsToCode/python-workshop-8 | c1ad5c2f06b435b612acc28544180b47c86fb24f | 0f64bfa7cf175283181b6e7f51a5e3b80d4b6b60 | refs/heads/main | 2023-02-07T11:55:48.372944 | 2021-01-03T08:41:33 | 2021-01-03T08:41:33 | 325,730,441 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # variable [operator]= var_2 / value
# i = i + 1 --> i += 1
# result = result + i --> result += i
# var /= 5 --> var = var / 5
# i *= 3--> i = i * 3
# prod %= 10 --> prod = prod % 10
| [
"anish_@outlook.com"
] | anish_@outlook.com |
33fbb86f0c1d4774178156a30d673684559ba579 | ced56909016fb7c2175c3911fc8481bd5fdf0800 | /pytext/metric_reporters/disjoint_multitask_metric_reporter.py | 83d419bc152137138df46faa0ff3715e14e05512 | [
"BSD-3-Clause"
] | permissive | coderbyr/pytext | e258a3aae625e6a2fd386b60f25ac44a7b4149fe | 72c1ad835a30bef425494b02a6210f2e3232b1a4 | refs/heads/master | 2022-11-20T09:11:44.991716 | 2020-07-20T22:05:42 | 2020-07-20T22:07:15 | 281,286,078 | 1 | 0 | NOASSERTION | 2020-07-21T03:32:42 | 2020-07-21T03:32:41 | null | UTF-8 | Python | false | false | 4,013 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Dict, Optional
from pytext.common.constants import BatchContext
from .metric_reporter import MetricReporter
AVRG_LOSS = "_avrg_loss"
class DisjointMultitaskMetricReporter(MetricReporter):
lower_is_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b05b3a6a6396536b1612af4847b1d785dc4f0807 | 764aee352f4f9d6b4c30f01f1d00c4d2d58c4f39 | /venv/bin/chardetect | 18def21d0c4a41fc745b7faedb0b6e10c7ed2b74 | [] | no_license | swsachith/dataAPI-flask | 6d2866dc812cb630ce25ab996071399decedadb1 | fe33f8b75374d5e5ae3606f27a2a1a9751b3ce5d | refs/heads/master | 2021-06-11T23:51:43.744532 | 2021-05-25T15:54:50 | 2021-05-25T15:54:50 | 153,512,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/Users/swithana/git/imls/dataAPI-python/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"swsachith@gmail.com"
] | swsachith@gmail.com | |
14c865664a58431c88b01845092d21e804f2e15a | b999989d482489912af19903e0346ada046d8995 | /python/broadinstitute_cmap/clue_api_client/test_macchiato_queries.py | a842ce02b25af177118e68d7ad9711eb3ca4b503 | [
"BSD-3-Clause"
] | permissive | zhaoli2017/l1ktools | 979c6a238e2c81ea013b8eddc141008a8c95f3c1 | 6e9c89cf3a8e8d14f2b495932ae04a454ea5eb68 | refs/heads/master | 2021-01-19T21:20:16.562481 | 2017-03-27T22:48:26 | 2017-03-27T22:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | import unittest
import setup_logger
import logging
import test_clue_api_client
import macchiato_queries as mq
__authors__ = "David L. Lahr"
__email__ = "dlahr@broadinstitute.org"
logger = logging.getLogger(setup_logger.LOGGER_NAME)
cao = None
test_brew_prefix = "test_brew_prefix_for_test_macchiato_queries"
test_st... | [
"dlahr@broadinstitute.org"
] | dlahr@broadinstitute.org |
a566a7e2e4d20ec72b89062af4c532ed1123f14f | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/list_port_statistics_response.py | 13b10f29de59c0c0d34e2530004b515adf013fcb | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,349 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListPortStatisticsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3eab1b761be0160d622ff707caaff063326f4b71 | 6c5ce1e621e0bd140d127527bf13be2093f4a016 | /ex021/venv/Scripts/easy_install-3.7-script.py | e7deca8d0b6f3b28588ce8d8072d461ed000115f | [
"MIT"
] | permissive | ArthurAlesi/Python-Exercicios-CursoEmVideo | 124e2ee82c3476a5a49baafed657788591a232c1 | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | refs/heads/master | 2022-12-31T13:21:30.001538 | 2020-09-24T02:09:23 | 2020-09-24T02:09:23 | 268,917,509 | 0 | 0 | null | null | null | null | ISO-8859-2 | Python | false | false | 508 | py | #!C:\Users\User\Documents\github-MeusRepositórios\Python-Exercicios-CursoEmVideo\ex021\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__... | [
"54421573+ArthurAlesi@users.noreply.github.com"
] | 54421573+ArthurAlesi@users.noreply.github.com |
536f0f4c79b3a562c018f6d57f29211e768b5a38 | 40cb46b3f9ec1dd792578e8f423e3fa02e844ec2 | /tools/ExplicitGameToSlugsTranslator/translator.py | 5bea04c1b6c3a8fd6a946efb560ff77d1885d54f | [] | no_license | tuc-es/guisynth | ac83acfc6c3086a38a06b7c1aa9543e69531d369 | 46e71eb37361aa42b5eb47139ef799a3a116faf6 | refs/heads/master | 2021-11-22T13:59:21.241793 | 2021-08-05T11:17:13 | 2021-08-05T11:17:13 | 185,566,388 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,440 | py | #!/usr/bin/env python3
#
# Translates a game for GUISynth to a specification file for slugs.
#
# Reads from stdin, writes to stdout
import os, sys
# Check preamble
firstLine = sys.stdin.readline()
if firstLine.strip()!="UVWBasedGame":
print("Error: Expected a UVWBasedGame.",file=sys.stderr)
sys.exit(1)
# Decl... | [
"rehlers@uni-bremen.de"
] | rehlers@uni-bremen.de |
caec9dc5aef8d0e7b90c14f7279598cbf41b4316 | c5a413defa9410ab9c286733eb5926faecd57967 | /gpio_sync.py | b62d7e326876dbab393e179aadcba042811dcfa2 | [] | no_license | StevenWang30/tx2_sync | 4f01519b193e504e22e48b8ee535f8e44d7bc722 | 9dbb98208976643dbb85a15c477c380b14139833 | refs/heads/main | 2023-01-04T16:04:35.653847 | 2020-11-01T09:34:39 | 2020-11-01T09:34:39 | 309,049,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import Jetson.GPIO as GPIO
import time as time #引用需要用的库
lidar_trigger = 11
camera_trigger = 13
GPIO.setmode(GPIO.BOARD)
# GPIO.setup(lidar_trigger, GPIO.OUT)
# GPIO.setup(camera_trigger, GPIO.OUT)
#
# trig = 0
#
# try:
# while (True):
# if trig % 10 == 0:
# GPIO.output(lidar_trigger, GP... | [
"swangcy@connect.ust.hk"
] | swangcy@connect.ust.hk |
5aff8eeaf3871181bde40cf06cdc1e1796769831 | 44632954ff66bc603851f7d5d64a720326324dfe | /party/models.py | 9e43be5b94bac07e1f18d7596e658c9149306e8b | [] | no_license | yangliclai/partygo | 95ff8f0e298a5ae5c3e2d8d5ffe86f1038048bf6 | 54f7c320a35e6d58fd8bb2fd2d882abe646df1e1 | refs/heads/master | 2020-03-18T22:52:54.304965 | 2018-05-31T04:44:15 | 2018-05-31T04:44:15 | 135,371,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from application import db
from user.models import User
class Party(db.Document):
name = db.StringField(required=True)
place = db.StringField(required=True)
location = db.PointField(required=True)
start_datetime = db.DateTimeField(required=True)
end_datetime = db.DateTimeField(required=True)
p... | [
"yangliclai@gmail.com"
] | yangliclai@gmail.com |
62b098b0cfa04bde31dd06873998aa6dfb5082de | 83ad3bfdc3fa5e5b657dff7cd386789b2c6478dd | /face_detection_fr_hog.py | fb0cd44499f5c8840030677171b65aad2703c976 | [] | no_license | amombofortune/Face-detection-with-OpenCV | 7a0af5b99b3851a6a8b779a2949c5c9307cf6bed | 50ba4787d18a9d8f5d14441bf9e11beeb45390aa | refs/heads/main | 2023-07-11T21:39:53.458345 | 2021-07-05T08:10:35 | 2021-07-05T08:10:35 | 383,062,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | """
Face detection using face_recognition HOG face detector
"""
import cv2
import face_recognition
from matplotlib import pyplot as plt
def show_img_with_matplotlib(color_img, title, pos):
""" Show an image using matplotlib capabilities """
img_RGB = color_img[:, :, ::-1]
ax = plt.subplot(1, 2, pos)
... | [
"82210852+amombofortune@users.noreply.github.com"
] | 82210852+amombofortune@users.noreply.github.com |
194af4a318b3024867f3c0710f450671889ab563 | e81e8a033e38bc0d46d58e7ee7e33e77d3242d57 | /Food/views.py | 1602bf914418ee1b214fd25e923ae8d15e50b801 | [] | no_license | vthdat/-Django-WebsiteCanTinProject | 116530efd959a3e6563a6e43a22cff8992d3d9b2 | 76fefcd1ed7c4acced3976abd80c4e4d711a567c | refs/heads/master | 2023-07-30T06:42:10.789337 | 2020-07-16T18:39:04 | 2020-07-16T18:39:04 | 277,478,650 | 0 | 0 | null | 2021-09-22T19:31:17 | 2020-07-06T07:57:31 | JavaScript | UTF-8 | Python | false | false | 2,936 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.views.generic import ListView, DetailView
from .models import Food
from cart.forms import CartAddFoodForm
from cart.cart import Cart
# Create your views here.
class FoodListView(ListView):
model = Food
template_name = 'food_list.html... | [
"vd.thanhdat@gmail.com"
] | vd.thanhdat@gmail.com |
e781738d385aeb71213da6c16ad550345f8a5af5 | 71c1ce0ef45aee12066a56b4e7bf2f5d8a95f9c2 | /foodsecurity/foodsecurity/middlewares.py | b82601c0976a812927e51fdf9926cabe5bd76ff0 | [] | no_license | chengchaoccss/crawlproject | 4c26f8255f62e9099f084fb32ef7bd045c84a11c | 7bb02d8314492ed7221ef6054e2b7f1a0bc15a3a | refs/heads/master | 2021-01-05T03:58:21.392217 | 2020-02-17T09:29:17 | 2020-02-17T09:29:17 | 240,871,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,029 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
import random
class FoodsecuritySpiderMiddleware(object):
# Not all methods need to be defined. If a method is not de... | [
"Alfred_CC@outlook.com"
] | Alfred_CC@outlook.com |
18e73ec24b79d119113170322f4767f8acfe8a9d | c1e93f2110db91b22609762aa1c9cfcf608c0975 | /music/migrations/0011_auto_20200524_1957.py | 6f544b80b074449c1e56729154243316ae5072bb | [] | no_license | eliyajoseph7/music_app | 6f49979726b65cc9b664602acd263d2b787128b0 | 802780e6186f7cd3ba27a4b1c21f09f701c7cb1e | refs/heads/master | 2022-07-04T22:54:22.775210 | 2020-05-24T19:44:38 | 2020-05-24T19:44:38 | 264,457,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 3.0.2 on 2020-05-24 16:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0010_aboutme'),
]
operations = [
migrations.RenameField(
model_name='aboutme',
old_name='hobby',
... | [
"exaveryeliya20@gmail.com"
] | exaveryeliya20@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.