blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc765d76018ce6cd8317283edeebe0aa3727ded8 | 86b293ef3df8a276c97db49f25e5a9c36822776e | /0x08-python-more_classes/1-rectangle.py | a89c2a3ea1af8ed99a9cdb92d6e584860d74097b | [] | no_license | tayloradam1999/holbertonschool-higher_level_programming | 3c6ceab832ad85448df320a437ddf6c39130f0dd | 70068c87f3058324dca58fc5ef988af124a9a965 | refs/heads/main | 2023-08-19T16:13:04.240756 | 2021-09-28T00:37:03 | 2021-09-28T00:37:03 | 361,856,354 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | #!/usr/bin/python3
"""
This module defines a class 'Rectangle' that
defines a rectangle based on '0-rectangle.py'
"""
class Rectangle:
"""Defines a rectangle with a private instance attribute 'width'
and 'height'"""
def __init__(self, width=0, height=0):
self.width = width
self.height = h... | [
"tayloradam1999@gmail.com"
] | tayloradam1999@gmail.com |
0d155686d2b7d638897fc2d02dc556dd3da8babb | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /other_time/last_part_and_thing/problem_or_world.py | e42537b5fd907d85a61cab4911bd521a6bc81f4a | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
#! /usr/bin/env python
def feel_eye(str_arg):
early_life(str_arg)
print('find_next_part_about_small_person')
def early_life(str_arg):
print(str_arg)
if __name__ == '__main__':
feel_eye('take_company_at_little_case')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
92bda0387d9d98eb70e6077ff9a9ac8da8450137 | dd65e3cbfa3fb5ef378e83f810d67822db396269 | /oracle_mon/views.py | 6abc95f240b3de063267206dfd9120e30846c67d | [] | no_license | ampere1984/dbmon | a385ffa43377df9a203cee443c648f846782f035 | 60a39bb311008e33e08c9df7547be6142bbef6b0 | refs/heads/master | 2020-04-22T02:45:08.430898 | 2019-01-29T09:45:37 | 2019-01-29T09:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,217 | py | #! /usr/bin/python
# encoding:utf-8
from django.shortcuts import render
from django.shortcuts import render,render_to_response
from django.http import HttpResponse, HttpResponseRedirect
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
# Create your views here.
from django.contrib.auth import ... | [
"gumengkai@hotmail.com"
] | gumengkai@hotmail.com |
01c569faba32bfac184adca54ccdb6d7303cb050 | 6b1cf01918ae2f3ad120b09f21ccde842ed2c5ba | /util/send_mail.py | 93ea52e70e5579fb237728d74c84e83cccbf39e3 | [] | no_license | exiaohao/mini_monitor | e7c10a16f6bac0f9066f7fb499a09b0d10feeba4 | c6ad0f9dac5f4de86d88ca906a7e576b56686194 | refs/heads/master | 2021-01-09T20:53:24.424991 | 2016-07-22T06:07:48 | 2016-07-22T06:07:48 | 58,460,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from smtplib import SMTP_SSL
from email.mime.text import MIMEText
from email.header import Header
from config import App
import urllib.parse
def send_mail_util(recvs, subject, msg):
s = SMTP_SSL('smtp.exmail.qq.com', 465)
s.login(App.send_mail_sender, App.send_mail_sender_passwd)
message = MIMEText(msg, '... | [
"songhao@cmee.zjxu.edu.cn"
] | songhao@cmee.zjxu.edu.cn |
8817c6128119450c0fb5105ac6f32c7a7f78a753 | c57ce2b6aab3350dedf10942f893b86951076fbc | /link/mongo/__init__.py | 092c06d8331b86e49a60f2566d0767944c5d7e11 | [] | no_license | linkdd/link.mongo | b1c5e66b0519aecdb9d5832d1f74ea1f4e7e8bd4 | 3cd9d264a4e0e44726767385add871c67af2928c | refs/heads/master | 2020-04-10T20:34:23.847508 | 2016-09-02T21:48:22 | 2016-09-02T21:48:22 | 60,538,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | # -*- coding: utf-8 -*-
__version__ = '0.10'
CONF_BASE_PATH = 'link/mongo'
| [
"david.jose.delassus@gmail.com"
] | david.jose.delassus@gmail.com |
d2755b5837aed68c45d5c4b4707b5df295306987 | 5575c1e2596f546f4277fe79ba5155aa2db9f074 | /ecommerce/shipping.py | 0d4848aca5274e49f253e177653548f23affa074 | [] | no_license | plankan39/pythontest | 521a99eeb9417ba96dba132d154f5fde5d1a0228 | 6bad96807ed1b0cd3164f1612e67300869728972 | refs/heads/master | 2023-02-26T05:43:40.885698 | 2021-01-25T12:05:30 | 2021-01-25T12:05:30 | 317,344,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | def calc_shipping(parameter_list):
"""
docstring
"""
pass
| [
"lukas.elmlund@gmail.com"
] | lukas.elmlund@gmail.com |
0ed941616c8a5ccb0dddbae4449753711b1cdffa | 9b476bc2491c132006bbd04c74e95d1924065dbd | /Lab2codec_PRAC.py | ed539769aff4726f3f8341ceb4ed5c5171f9a6a2 | [] | no_license | eoinpayne/Python | 6b949e78f574645aa0b151eaa8abff1c8632d2ba | 5e7fa7d30da5ace3821af8d19f9885481008dfcf | refs/heads/master | 2021-01-10T12:38:19.958363 | 2016-02-12T18:38:42 | 2016-02-12T18:38:42 | 51,600,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py |
def check_word(word):
if len(word) <=1:
print ("Please type word")
else:
translation = ((word[1:]) + (word[0] + "ay"))
#translation = (word[1] + "ay")
return translation
def main():
word = str(input("Enter word: "))
translation = (check_word(word))
print (transla... | [
"eoinpayne@gmail.com"
] | eoinpayne@gmail.com |
a59ca1f99c5f53cd1737d4fcb2670dc70f7ec927 | ca22c441ec0eabf61b3b415fc9be8453855481cf | /rapid/__init__.py | b47d1e365bbc7cdc678e8f7640ddc873208950a7 | [
"MIT"
] | permissive | linhao1998/rapid | cc1d45a119a4c7c3c384ad708c3220226c5c7edd | 1611e47fffac0f61e6c07ad5388eb2368a426f06 | refs/heads/main | 2023-06-16T16:24:57.498657 | 2021-07-08T14:48:47 | 2021-07-08T14:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from gym.envs.registration import register
register(
id='EpisodeInvertedPendulum-v2',
entry_point='rapid.mujoco_envs:EpisodeInvertedPendulumEnv',
max_episode_steps=1000,
reward_threshold=950.0,
)
register(
id='EpisodeSwimmer-v2',
entry_point='rapid.mujoco_envs:EpisodeSwimmerEnv',
max_episo... | [
"daochen.zha@tamu.edu"
] | daochen.zha@tamu.edu |
3e1c6cb80595d1550b9a27b99ab2478eb35a4eee | 673d37daf3ad3915b74491da55fd46f37f401eaf | /firefly/server/admin.py | 0d2d980a8bb63df9ea49c20c089e2d0ad7f0683b | [] | no_license | ruaruagerry/mahjong_firefly | 3f0d06e72061b52d153d075d1919655253c48de2 | 8f8c2f3a9b474d43ab15fb333d16028fd853f7d3 | refs/heads/master | 2022-07-15T17:09:32.941087 | 2020-05-11T15:25:05 | 2020-05-11T15:25:05 | 263,080,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | #coding:utf8
'''
Created on 2013-8-12
@author: lan (www.9miao.com)
'''
from globalobject import GlobalObject,masterserviceHandle
from twisted.internet import reactor
from twisted.python import log
from common.log import logger
reactor = reactor
@masterserviceHandle
def serverStop():
"""
停止服务
:return:
... | [
"gerry"
] | gerry |
4d5025e2c60823b309ab8b5dd652fb0b05866cc1 | d2d971ccd0dc52f2f3c448c0fb1110fd25ef09a0 | /models/multitarget/aggregation.py | a3ae91397e83b4e30368227ff5e1bbf7f90426bf | [] | no_license | stepanov2112/emergency_datahack_nss | 0400987fd3f23a57370ee7e5ebb6cfe962149081 | f91ce67a531e048d0268e7807a5bd22242d7ce59 | refs/heads/main | 2023-07-07T08:31:05.200479 | 2021-08-14T21:42:50 | 2021-08-14T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,939 | py | """НЕ ЗАБУДЬТЕ:
- отсортировать df по дате.
- перевести значения колонки в int or float.
"""
import numpy as np
import pandas as pd
from collections import Counter
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
pd.options.mode.chained_assignment = None
def occ(x: list):
c = Count... | [
"mik_sar@mail.ru"
] | mik_sar@mail.ru |
997aedd9b1fbbc378290401f2c2b7c44582d73f1 | 2c003186be02c48093798047d9e439a87a9ead22 | /Day4_20210601/homework_tcj_20210601.py | 564b099ea101624a7cfa797bd958a21052cb7652 | [] | no_license | twcxjq/python_29 | 38a7774d8814273fbf70d8e822873ccdcc3f8ca6 | 398bbdefe2b82d24412d9bff70d605f3ca7ec37d | refs/heads/master | 2023-05-13T04:07:18.945088 | 2021-06-05T14:17:05 | 2021-06-05T14:17:05 | 371,929,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,346 | py | # -*- coding:utf8 -*- #
# -----------------------------------------------------------------------------------
# ProjectName: python_29
# FileName: homework_tcj_20210601
# Author: TianChangJun
# Datetime: 2021/6/1 12:50
# Description:
# ----------------------------------------------------------------------... | [
"tianchangjun_nsu@163.com"
] | tianchangjun_nsu@163.com |
049bc00faea5418346385574bc6c905ee3785011 | dddb781a8bd9d30e59201f8a96e06b22feb2c9eb | /python/hello_world.py | 6f6d5ea62bea9b2f7fd00bec481901dc6be37ff5 | [] | no_license | elewisQA/Example | 57c799d76e8143d4afa52fdab18ff824941e1578 | 9fa8edf9f3500bf7a109d9e4392267839914b940 | refs/heads/master | 2022-12-07T21:46:12.174865 | 2020-08-20T10:53:39 | 2020-08-20T10:53:39 | 288,949,036 | 0 | 0 | null | 2020-08-20T10:53:40 | 2020-08-20T08:24:45 | Python | UTF-8 | Python | false | false | 66 | py | # This is a sample python program
print("Hello!")
print("World!")
| [
"elewis@academytrainee.com"
] | elewis@academytrainee.com |
2c813b8ed7eea428debed8bc6625f01ed1762759 | 0c5925a28299ca2149f4ca7c09cc666da947db04 | /prometheus/tornadoWS/ws_client.py | 95e4f9bc54e4d0d4340870194cf1c29b714a14ef | [
"Apache-2.0"
] | permissive | sonata-nfv/son-monitor | cdc006908429edf790e3f5ea3236c7e39752f49f | a48a15d0190f20913cf313ca28e3daabb3753285 | refs/heads/master | 2023-01-12T16:28:06.992353 | 2020-01-09T13:56:37 | 2020-01-09T13:56:37 | 53,059,670 | 5 | 9 | Apache-2.0 | 2022-12-27T14:57:57 | 2016-03-03T15:07:03 | Python | UTF-8 | Python | false | false | 846 | py | #!/usr/bin/python
## sudo pip install websocket-client
import websocket
import urllib2, json
import thread
import time
def on_message(ws, message):
print message
def on_error(ws, error):
print str(error)
def on_close(ws):
print "### closed ###"
def on_open(ws):
pass
if __name__ == "__main__":... | [
"pkarkazis@synelixis.com"
] | pkarkazis@synelixis.com |
64ee18e6b33ccd293838fbfd6a3b6a9ce8560ff3 | 0c68477d24ebb4d16d04fdabdc59a5a587347374 | /Data-Science/statics-datas.py | 8fa3fdc07dbcbcd99569845012dd409635b3eda1 | [] | no_license | Sousa83/estudos-ia | 8f55a106d5a0b35d01bbf6778b11ad461bb704ff | a6fd364de7f8ac48b029da83bbb9817db12da5a3 | refs/heads/master | 2023-08-15T04:28:46.526824 | 2021-10-07T01:08:23 | 2021-10-07T01:08:23 | 364,556,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import pandas as pd
dic = {
'students': ['ricardo', 'aline', 'herran', 'patrick', 'grabiel'],
'age': [19, 17, 18, 18, 18],
'note': [8.9, 8.9, 7.9, 10.0, 9.99]
}
df = pd.DataFrame(dic, columns=['students', 'age', 'note'])
#Maior valor: em Strings são mostrados por ordem alfabetica
#As informações são sobre os d... | [
"ricarosousa83@gmail.com"
] | ricarosousa83@gmail.com |
2765c72d48178ec65db0c1e6936c7650767cba82 | d8a23825c56920d5125c5bc2ca89fecb7ac61c4a | /integral_vector_w.py | ba9c92cdf63bf8c1eed14fdc333187d90b61d701 | [] | no_license | eranbTAU/DronDetection_ML_ALGO | 45e8f24bcf3cdc531ddf273d52b4829ab4596f00 | 22e27cb92c4b8767bde144936e5d86fa6ba89ae3 | refs/heads/master | 2022-03-29T09:59:05.458262 | 2019-12-04T11:24:09 | 2019-12-04T11:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | #ERAN BAMANI
#17.12.16
#integral_vector_w function
#===============================================
import numpy as np
import pandas as pd
import random
import cv2
import matplotlib.pyplot as plt
from GDecent import *
# --------------------------
def integralImage_sum(ii,x,y,new_width,new_length):
A =... | [
"noreply@github.com"
] | eranbTAU.noreply@github.com |
d2095f9693d06f64b5b692ae4ac6a001a0efe756 | 7ccce5e822fe204308ba25275cd94dc2232b9041 | /osha/process.py | 899ae2b1c34b13fb0254ac1cd6652431e7980a4a | [] | no_license | ecgonzalez/rp_test_develop | a84f94e9ceef5e48dfd6280301b78f748f0bf90f | 84fce90bd695fbff2651f598af9f0454b2f9707d | refs/heads/master | 2020-04-24T01:09:57.945291 | 2019-02-20T03:38:54 | 2019-02-20T03:38:54 | 171,589,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,001 | py | #https://www.osha.gov/pls/imis/establishment.html
import requests
from bs4 import BeautifulSoup
import os
import psycopg2
import time
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.ui import Select
from time import sleep
import re
import hashlib
i... | [
"edward1577@gmail.com"
] | edward1577@gmail.com |
0dac5829221d058f43409e95e5d6afb11cbbcefd | 2e2c9cf0bf1f6218f82e7ecddbec17da49756114 | /day14ddt_opnpyxl/day14_封装Hand_excel/demo5列表推导式.py | 450b10ac6ae56ab647b20b0e36b9b6e0c8cf6283 | [] | no_license | guoyunfei0603/py31 | c3cc946cd9efddb58dad0b51b72402a77e9d7592 | 734a049ecd84bfddc607ef852366eb5b7d16c6cb | refs/heads/master | 2023-03-02T20:50:02.052878 | 2021-02-05T06:17:24 | 2021-02-05T06:17:24 | 279,454,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | """
============================
Author:小白31
Time:2020/8/2 22:03
E-mail:1359239107@qq.com
============================
"""
# 生成1-100到列表
# li = []
# for i in range(1,101):
# li.append(i)
#
# print(li)
#
# print(list(range(1,101)))
# 生成 ["学号101","学号102","学号103"..."学号150"]
li = []
for i in range(101,151):
li.appe... | [
"1359239107@qq.com"
] | 1359239107@qq.com |
44550763f641d321195402710e48112bca809066 | fbcd5c97110077f67d4a7320a1cbdd1d7e2c1ab4 | /set_transformer.py | 94b6b4c26d566a7b65ff534d96cc4a5ebfe73d07 | [] | no_license | davzha/recurrently_predicting_hypergraphs | b3cd924bb50801717b2b45d204f7cfddd8051423 | c2b9a4959a1b9e3bac05ad3e5264029ccad2447d | refs/heads/master | 2023-07-30T10:04:48.500489 | 2021-09-21T09:02:52 | 2021-09-21T09:02:52 | 380,384,180 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,451 | py | """Set transformer code adapted from https://github.com/juho-lee/set_transformer (MIT License)
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
import math
class MAB(nn.Module):
def __init__(self, dim_Q, dim_K, dim_V, num_heads, ln=False):
super(MAB, self).__init__()
self.dim... | [
"hatero.w.z@gmail.com"
] | hatero.w.z@gmail.com |
2fdb7660c7e1846dad4006fc484535aefb0750e2 | f1233261dcbee20a3393e175f96e108138f1c6d1 | /instaclone/urls.py | 3fcbf096762f47e1e4c9c9462b91526695d6f197 | [] | no_license | GisangLee/instaClone | 23c0d19693b1383d3105299fc19c77093a5763db | b6ab95d9e89f979b82f53807b38fad9eb501d130 | refs/heads/master | 2022-11-06T16:55:36.195441 | 2020-06-17T02:07:54 | 2020-06-17T02:07:54 | 272,372,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | from django.conf import settings
from django.contrib import admin
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.conf.urls.static import static
from django.urls import path, include
from django.views.generic import RedirectView
from django_pydenticon.views impo... | [
"masterkorea01@naver.com"
] | masterkorea01@naver.com |
258f9b5aa4529b7a18f4aa0b5e97a1adb004730d | c7300ea4853236d35eef0bab01b4b8770f286218 | /pub/iyu/neihanduanzi.py | a244a2388fafdc383c8f86b2fa483f4318a294de | [] | no_license | yuolvv/TestPython | b1cdf724add22b005bd1fb618722c6e9f558f275 | e0f05bb017c5d3e035f6e6f09b17c93db2e3a251 | refs/heads/master | 2021-01-20T13:39:00.147447 | 2017-05-31T14:06:09 | 2017-05-31T14:06:09 | 90,511,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: 2016
@author: yuolvv
@license: Apache Licence
@file: neihanduanzi.py
@time: 2016/10/5 9:21
"""
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
import pymysql.cursors
#请求URL并把结果用UTF-8编码
resp = urlopen("http://neihanshequ.com/").read().de... | [
"yuolvv@gmail.com"
] | yuolvv@gmail.com |
755035fe63a1cd62b201b7bbffcfb1d463736a5c | 1610fe2d9c5ee000942033bc7b76d98a9d7fe6b9 | /2.py | 7756e29e40b807921234eec079f28cb8a3d7fa14 | [] | no_license | bondlee/leetcode | 806cd94cf0307f8ec38aa769b1a9c2dded497b6a | 04919147dca5b4772e3414cc2e967033c229e8e5 | refs/heads/master | 2021-01-19T01:27:05.513852 | 2016-07-23T13:57:42 | 2016-07-23T13:57:42 | 61,933,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # coding: utf-8
# Created by bondlee on 2016/5/31
if __name__ == '__main__':
pass | [
"bondlee@zju.edu.cn"
] | bondlee@zju.edu.cn |
d8523d8ab509471206516117cb9d5228bbe36542 | c45b49f5b32c0371042a625d0e2058a67e365aac | /midterm_exam/problem3.py | 050c9184f14b867654e7bd173d78734eac294389 | [] | no_license | mahendrark/Python-MOOC | 368deea274a0f2c3babd17462cee73444792165e | cd1397b5ee54ddfcbb4330b5b9ead809e6421a79 | refs/heads/master | 2021-01-06T09:52:42.861608 | 2020-02-23T20:45:38 | 2020-02-23T20:45:38 | 241,286,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # Write a Python function, twoQuadratics, that takes in two sets of coefficients
# and x-values and prints the sum of the results of evaluating two quadratic equations.
# It does not do anything else.
# That is, you should evaluate and print the result of the following equation:
# (a1∗(x1^2))+(b1∗x1)+c1+(a2∗(x2^2))+... | [
"rkmahendranath@gmail.com"
] | rkmahendranath@gmail.com |
013ad4f8eb3ba02e9770aed25cb228d75475289b | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/030d0c5ebc377ba768e6bdbbc82d64a6cfcbb7d4__main__.py | 030d0c5ebc377ba768e6bdbbc82d64a6cfcbb7d4 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 580 | py | import gi
from ghue.controller import Controller
from ghue.device.hue import HueDeviceManager
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GLib
import phue
from .application import GHueApplication
if __name__ == '__main__':
GLib.set_application_name("Philips Hue")
controller = Controller(... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
7dbd29bffaf83e67b074c5c83a4b80d149c08915 | b5d6219ac738ed05485439540f38d63d21694c51 | /DAT/ED6_DT01/T0401.帕赛尔农场.py | a052afc836ef6b9539bb500251eaf69edad7b457 | [] | no_license | otoboku/ED6-FC-Steam-CN | f87ffb2ff19f9272b986fa32a91bec360c21dffa | c40d9bc5aaea9446dda27e7b94470d91cb5558c5 | refs/heads/master | 2021-01-21T02:37:30.443986 | 2015-11-27T07:41:41 | 2015-11-27T07:41:41 | 46,975,651 | 1 | 0 | null | 2015-11-27T10:58:43 | 2015-11-27T10:58:42 | null | UTF-8 | Python | false | false | 55,311 | py | from ED6ScenarioHelper import *
def main():
# 帕赛尔农场
CreateScenaFile(
FileName = 'T0401 ._SN',
MapName = 'Rolent',
Location = 'T0401.x',
MapIndex = 13,
MapDefaultBGM = "ed60084",
Flags ... | [
"Hiromi.Kaede@gmail.com"
] | Hiromi.Kaede@gmail.com |
6fcb4d9f1f315a703aa7ce94c4508fd6a4975439 | 468c618179bfbc9e331c66762a2083527455d7d2 | /Launch.py | 100271bb9f4e87adb9059ce674944ab4419227b2 | [] | no_license | sodino/xml2plist | 31798b4af066eb2aaf22af73c902b08e4989cb42 | 51e07c2645f95050e99253d85583510b93407397 | refs/heads/master | 2023-07-08T21:50:14.651686 | 2021-08-11T07:23:40 | 2021-08-11T07:23:40 | 393,859,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,974 | py | from xml.dom.minidom import parse
import xml.dom.minidom
import os
import shutil
import PlistConst
import PlistIO
## 寻找老素材的地址
# dir_old = "/Users/sodino/NativeProjects/textconfiguration/old/"
dir_old = "/Users/sodino/IdeaProjects/xml2plist/test/"
## 转换为plist后的存储路径,要以 / 结尾
dir_plist = "/Users/sodino/IdeaProjects/xml2pl... | [
"sodino@qq.com"
] | sodino@qq.com |
36c8acfb797eb95d0cff11050a40dc75a0bd3fa0 | 8211c2cd810fe785333ace3f2823d92560c61be4 | /src/data_reader_onecommon.py | 0c9f0c8be023cd733d8c0bb89ca465509a1bf228 | [] | no_license | Alab-NII/lcfp | 4432cf51f824ad5926399e41ad2223cc0ddc3e8d | c0455805dc37dabd9f7c2a4b8cdd7e61f301e8b6 | refs/heads/master | 2022-04-13T19:12:51.668465 | 2020-04-11T15:23:14 | 2020-04-11T15:23:14 | 226,287,328 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,686 | py | # coding: utf-8
import json
import numpy as np
import os
try:
import data_reader_base
except ModuleNotFoundError as e:
import sys
sys.path += ['src']
from data_reader_base import DatasetReaderBase, VisualSelectionTaskInstance
class OneCommonDataReader(DatasetReaderBase):
task_name = 'onecommon... | [
"noreply@github.com"
] | Alab-NII.noreply@github.com |
96fa04e366583289c3563975997d9dfdfd0879b7 | 6f1dbf209cfa70a7f37de155cdc86a1687cb5734 | /venv/Scripts/easy_install-script.py | 7388155bd5ceaff8d42272cf69bd3b67b01358f3 | [] | no_license | super168168/StudentSignInSystem | 46fbb513cc32f51454ede38aad0154f8111ac3f9 | 6ddea705294d741df41ab6650f3943bbd771d78d | refs/heads/master | 2022-11-17T09:04:58.329726 | 2020-07-11T06:44:21 | 2020-07-11T06:44:21 | 278,804,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!D:\machineview\StuSigSys\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"super168168@users.noreply.github.com"
] | super168168@users.noreply.github.com |
5e8e9e4cc04b87577c04e4b09ce745dd68a85d04 | 706fcc0630a2a1befa32e8d0e9e0a61978dcc947 | /config.py | 7fcc7def7a3c78d71daf7c805bc812e5aabcc542 | [] | no_license | paulgowdy/hal_split | a8f731a5a6e77f605d45de345d1c48bbc774738d | f618a6b1a132e192f4778c237a92c86f24540ca0 | refs/heads/master | 2022-11-17T00:51:37.343265 | 2020-07-07T22:25:49 | 2020-07-07T22:25:49 | 277,934,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | BOARD_SIZE = 9
MAX_NB_SHIPS = 2
NB_SHIP_ACTIONS = 5
#TRAIN_EPISODES = 10
STEPS_PER_EP = 200
GAMMA = 0.99
PPO_BATCHES = 10000000
PPO_STEPS = 32
LOSS_CLIPPING = 0.2
ENTROPY_LOSS = 5e-2
| [
"noreply@github.com"
] | paulgowdy.noreply@github.com |
14a1346e9377eebc91bfe385c290409c7e2ee92d | 2f0cc6fb3fef1785fe056d4a82ed2610a401b63a | /tools/pylab/gfx/__init__.py | 72fd3d7cb7a73ea87ccac2c64120351c4a06dc5d | [] | no_license | tim-napoli/lab | 7a4d788b65603b2f1d9375c5cce38977b5265f3c | cbae4752fbacf18ec050805d7afc449bdf73d206 | refs/heads/master | 2021-01-12T15:07:02.325843 | 2017-10-03T18:48:49 | 2017-10-03T18:48:49 | 71,699,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | from pylab.gfx import image
| [
"timothee.napoli@laposte.net"
] | timothee.napoli@laposte.net |
df365e8db5a83aa23b10dbeeeeea6c4d09fd2a75 | be7c3f25ef4295ba006af14675d689e93f362ac7 | /algos/sorting/count_sort.py | b8d783f536eadab0357536540de2efd0cef73ff2 | [] | no_license | stayaKotov/sandbox | 4d85869515c9e6f04d6a110a69c039236c169a53 | 8dc753e488c8a59de22a68ac09e63ecc40b88a81 | refs/heads/master | 2023-06-03T22:27:10.724678 | 2021-06-19T20:29:42 | 2021-06-19T20:29:42 | 367,702,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import typing as t
class CountSort:
def __init__(self, elements: t.List):
self.elements = elements
def sort(self):
el_2_count = {}
result = []
for el in self.elements:
if el not in el_2_count.keys():
el_2_count[el] = 1
else:
... | [
"ansavinkov@ozon.ru"
] | ansavinkov@ozon.ru |
5a36613e9b97b721caae632c80b847e119156d04 | f5c44c434585fef2118b072379e9cc3edb2b694e | /webcam_utils.py | 1127d87f51aaa128f6e1a8e62ff07827f1bf01f6 | [] | no_license | TeraMind244/SmartParkingDeepLearning | 993b2bf0bbda8c23a6784aea4c246d6861a9bab8 | 5b3640e0a63472565f961c7b597374d34a5aeb2e | refs/heads/master | 2020-04-29T12:16:12.758966 | 2020-01-22T06:03:56 | 2020-01-22T06:03:56 | 176,112,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,272 | py | #import numpy as np
import cv2
import image_utils as iu
import sys
import read_data as rd
#import opencv_identifier as opencv
# %%
data = rd.get_data()
# %%
def capture_video(source):
cap = cv2.VideoCapture(source)
# Check if camera opened successfully
if (cap.isOpened() == False):
print("Una... | [
"teramind244@gmail.com"
] | teramind244@gmail.com |
27fb6b67d1b5509fe372290ee9b4ee5748234ce7 | bf4da9fc472d72aad42fb65a61d333fd5f23b0e0 | /accounts/admin.py | 98f03584fa5c0ec6d8daf3c5044cf8ad5f07f228 | [] | no_license | n0nama/storesb | 93726518834d2a1d3104584e5f7990d044b19462 | b550f63995bb2600339c92c4b5e22be488909e2d | refs/heads/master | 2020-05-16T03:09:00.550523 | 2019-04-22T08:29:41 | 2019-04-22T08:29:41 | 182,655,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | from django.contrib import admin
from .models import UserProfile, ActivationProfile, UserComments, Subscribers, Reviews
from .models import CardData, SocialNetwork # , SocialAccount,
# Register your models here.
class SocialNetworkAdmin(admin.ModelAdmin):
list_display = ("title", "network_id","updated")
list... | [
"freempt1@gmail.com"
] | freempt1@gmail.com |
2be3f71105891c23fcae4397b78ff9eeb9fd1e82 | f1d32956219c4d7f63f47031fbf8ae4b8bf15eef | /gcpbt.py | 687f5218dd6bff5de9d469bc3ddb4971bed11b19 | [] | no_license | VaishnaviPunagin/GraphColoring-ComparativeAnalysisOfAlgorithms | 9946756c8b2b9f3d27fb0b29d14b9df316afef7d | d769f37bde209d976139d0105c0ac219d98fbbce | refs/heads/master | 2022-11-06T10:07:25.951199 | 2020-06-28T18:43:53 | 2020-06-28T18:43:53 | 266,312,564 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | import time
# starting time
start = time.time()
n=0
def is_safe(n, graph, colors, c):
# Iterate trough adjacent vertices
# and check if the vertex color is different from c
for i in range(n):
if graph[n][i] and c == colors[i]: return False
return True
# n = vertex nb
def graphColoringUtil(gra... | [
"noreply@github.com"
] | VaishnaviPunagin.noreply@github.com |
b35d9f4b2981a58a702913613a20ccf0b2c12694 | 27617bdbbc666d3faccd12f1afe1fa40ea0a0c08 | /oeis.py | ff88e9c6652d0ab3caf192fec0b121e9b3507cf5 | [] | no_license | AndrewWalker/oeis | 1625cf1f0673c2ae0fa61e9e1a96d3f7cd675299 | ee128a71b7eaa52ef96364ab0997038e707913ce | refs/heads/master | 2020-04-30T11:45:38.137476 | 2013-02-14T09:17:30 | 2013-02-14T09:17:30 | 8,188,260 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,097 | py | """Access to the Online Encylopedia of Integer Sequences (OEIS)
The OEIS is accessible via a web interface at http://oeis.org/
This module uses requests to access the OEIS, and then parses a minimal
subset of the information contained there.
If you want to search for the 5 best matches for the sequence [1,2,3,4,5],
... | [
"walker.ab@gmail.com"
] | walker.ab@gmail.com |
63309f5b16e32ac3d1a5c83f1cabc9d2e02f0132 | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/workbook/test_write_workbook_view.py | 683d301b318446951f7cca09b7fc061d5ee04506 | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 4,953 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...workbook import Workbook
class TestWriteWorkbookView(unittest.TestCase):
"""
... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
e2ad0ac71e50ae293c404f706bc0dd8350d8397d | 018281e13b8fbb34f0cfe035635c1196b6f861ca | /task 21_22_Anand-Python Practice Book/6. Functional Programming/7.py | cf5043b2b01abc618311c931593a7f288de7f329 | [] | no_license | JishnuSaseendran/Recursive_Lab | dcda1e1d092cced4829e86da65942e162e70e07c | e710c4adcc650f8eeb0508a06af323c46514f444 | refs/heads/master | 2020-05-29T08:46:44.052029 | 2016-10-22T01:03:47 | 2016-10-22T01:03:47 | 69,469,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | '''
Problem 7: Implement a program dirtree.py that takes a directory as argument and prints all the files in that directory recursively as a tree.
'''
import os
import sys
a='| '
i=0
def dirtree(dir,i):
filenames=os.listdir(dir)
for filename in filenames:
if not os.path.isdir(os.path.abspath(dir+'/'+filen... | [
"jishnusaseendran@gmail.com"
] | jishnusaseendran@gmail.com |
21b9c07f5745ad1954c3ca3af77d74dac67620d0 | bfb113c3076f5b0570953583e7a2321c774d73ea | /venv/Scripts/easy_install-3.8-script.py | 88b18d55d3cfc7b1e4ca627aaafb9710ef93d7c3 | [] | no_license | gsudarshan1990/Training_Projects | 82c48d5492cb4be94db09ee5c66142c370794e1c | 2b7edfafc4e448bd558c034044570496ca68bf2d | refs/heads/master | 2022-12-10T15:56:17.535096 | 2020-09-04T06:02:31 | 2020-09-04T06:02:31 | 279,103,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!E:\Training_Projects\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"sudarshan2009@live.in"
] | sudarshan2009@live.in |
7e5b96550afe812018fe239ac8ed2783e7cc8f84 | 04d6dbf3978c83e1c807bec4f3f06a40814752e3 | /获取ip代理.py | 479da46166ed3a82f768ebaa656d8b27a00522e8 | [
"MIT"
] | permissive | Outman888/test | bccf34a789aca962fa3db7187e7fbc2d3cb78070 | af8a903ddde6cf8506effe72914bb6099d3009a9 | refs/heads/master | 2020-04-01T16:27:32.293906 | 2018-10-24T12:00:20 | 2018-10-24T12:00:20 | 153,382,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | #作者:晴天
#链接:https://www.zhihu.com/question/47464143/answer/234430051
#来源:知乎
#著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
#-*- coding:utf-8 -*-
import urllib.request
import re
import requests
import pymysql
#抓取三个网页上比较新的免费代理ip和port到_crawl
def _gaoni():
urls=['http://www.ip3366.net/free/?stype=1&page=1',
'http://www... | [
"84313379@qq.com"
] | 84313379@qq.com |
26d8aaa4d2b005645c48370b880a005933c1fdc0 | 9129a791f45cd3b25d8a5da57ee6936bfe4e73a2 | /learn-django/jango/Scripts/pip3-script.py | d5c70d9b707ed3b9eea1c0bec34cc59c4c2ec8ba | [] | no_license | Sunsetjue/Django2.0 | 94be49ed9d65dab6398ab8f0ddd02bb1871afb6b | 102bf0f2bd2d309b76f3247e396b7e83c5f6c2f8 | refs/heads/master | 2020-04-22T03:25:24.014196 | 2019-02-15T16:18:23 | 2019-02-15T16:18:23 | 170,086,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!C:\Users\l\learn-django\jango\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
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])
sys.ex... | [
"10073631822qq.com"
] | 10073631822qq.com |
543db5403219ea73e88c510b470c95cc4e6a7ff0 | 18c8a7cb838702cdf1c4d4e9f66b2cffd63130aa | /{{cookiecutter.project_slug}}/config/settings/test.py | 69b8d3be1f0ba85b3bda931e3cd01983f435d82f | [
"MIT"
] | permissive | DiscordApps/launchr | c304008a0d05bdf2d3ed77ada365f80d861f307d | 61049879591ba851ce50d1651abc7193aae4aca0 | refs/heads/master | 2022-02-26T21:22:36.656108 | 2019-10-11T13:05:35 | 2019-10-11T13:05:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY",
default="!!!SET DJ... | [
"ja.geb@me.com"
] | ja.geb@me.com |
85570c14233ea78fc115c1b370a14dfd5d0785a1 | 63ccd06dc73ae23018138979d6631554c7160794 | /experiments/sl-fmri-expt/dec2018_fmri/visual/visual_fmri_run1.py | 0d21aa5421751a9e7d2d0b6e07be1587a050b0d4 | [] | no_license | zhenghanQ/qlab | d82b318a8c10d9a4d3ab144d029ed20ac83060c7 | aaf7dd591b77b9e611366f2bacefd2b613644c83 | refs/heads/master | 2021-06-01T17:38:51.634923 | 2021-03-23T01:15:44 | 2021-03-23T01:15:44 | 128,655,996 | 1 | 0 | null | 2018-04-08T15:37:37 | 2018-04-08T15:37:36 | null | UTF-8 | Python | false | false | 148,138 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy2 Experiment Builder (v1.83.04), Wed Apr 26 09:23:33 2017
If you publish work using this script please cite the relevant PsychoPy publications
Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neurosci... | [
"qlab.udel@gmail.com"
] | qlab.udel@gmail.com |
bc198b1bbdd90d4dee4ee10abd4ca15226d57dd9 | e03ae6c0a87187d1ad24a172d1d573c2efa43117 | /homework2-5.py | 262af9fc0d870bf2a604e00ff4047150257f4911 | [] | no_license | AlSavva/Python-basics-homework | 3dc4841974d0fc5d5b1ff9ac7a50934540ab9be1 | 1d21e365c4a4524eb62b0fa1f23da848f9b066d5 | refs/heads/master | 2023-08-01T13:54:17.487022 | 2020-09-30T21:58:30 | 2020-09-30T21:58:30 | 290,989,515 | 0 | 0 | null | 2020-09-30T21:58:31 | 2020-08-28T08:12:05 | Python | UTF-8 | Python | false | false | 2,425 | py | # Реализовать структуру «Рейтинг», представляющую собой не возрастающий набор
# натуральных чисел. У пользователя необходимо запрашивать новый элемент
# рейтинга. Если в рейтинге существуют элементы с одинаковыми значениями, то
# новый элемент с тем же значением должен разместиться после них.
# Подсказка. Например,... | [
"noreply@github.com"
] | AlSavva.noreply@github.com |
d126e8fa49a599dc0ff3362ab3d9678917d6d3e1 | 32499375e19a40c33e4d7f4930bbe957f344b5fb | /regenerate-moderator-list.py | 90f87f3d66155e620c8981da80dc90c88756aa43 | [] | no_license | diazona/pingbot | 7e96c71f7cb0a2d80e00ba03dd23bc6fe21ded20 | c23ff32bfcd9041391da89fa5ffb78ebd3a653b1 | refs/heads/master | 2021-05-25T09:00:28.049885 | 2018-04-18T07:12:06 | 2018-04-18T07:12:06 | 55,352,168 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | try:
import stackexchange
except ImportError:
print('This script requires Py-StackExchange')
raise
import io
import json
import shutil
# An incomplete mapping of site codes that might be used for pinging to their
# corresponding domain names
SITE_CODE_MAPPINGS = {
'so': 'stackoverflow.com',
'su': ... | [
"diazona@ellipsix.net"
] | diazona@ellipsix.net |
1bec5a0aed0cd7b8937fbca5beced2494d070731 | e163c1e2d03d4a480bfdf323bda71ebec4f8cdbc | /API_Project/venv/Scripts/django-admin.py | 7dacfaec9b272c3ea19e9e6bf67fe45580ec4745 | [] | no_license | elenghazaryan/All-in-group-tasks | 0d09e835cc24d4c5e636d7ce61d5e786d820626c | 2e0d0c010f6e224875b36ae3c87fae1a71b3dfe8 | refs/heads/main | 2023-02-24T05:12:05.112523 | 2020-12-09T19:41:23 | 2020-12-09T19:41:23 | 334,922,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | #!c:\users\user\desktop\allin_tasks\api_project\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-... | [
"kelen_2000@mail.ru"
] | kelen_2000@mail.ru |
64592adb22e89fb479d53c7323860b590acec211 | d2d6e0a5eaf82f65da0505daa500aa7a589e637d | /rcsworld/rcs/network.py | 50d45dfd113e993ce840903b1664381a56be7227 | [
"MIT"
] | permissive | Indeximal/RailControlSystemV3 | 74280c200efc303e9047dc3451968d262e277bd8 | 4be7a368660f0ddb0830a0cfeba555b0559274aa | refs/heads/main | 2023-08-08T01:21:44.725001 | 2021-09-12T08:36:54 | 2021-09-12T08:36:54 | 405,358,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | from .point import DirectedPoint
from .block import RailBlock
def example_usage():
loop = (RailNetworkBuilder()
.start(0, -1)
.mark("start")
.track_to(1, 0)
.track_to(0, 1)
.track_to(-1, 0)
.connect_to("start")
.build())
network = (RailNetworkBuilder()
.start(-1, 1)
.mark("start")
.track_to(0, ... | [
"indeximal@gmail.com"
] | indeximal@gmail.com |
3563896c1af07e2461d9a34778a0132efd4ca7a9 | 81e72efa668ae404b6b9edd12c8f11c9f1e6319a | /Backend/app/quote_of/models.py | 521d0136fdc25fb390a5ce877d82bb15af54df0c | [] | no_license | khannatanmai/RottenTomatoes-webapp | 773e7111d939c895d88ede1f35edb962087630f4 | a0c3d58e81b5f9b15b7244242397e6b7fd9e854e | refs/heads/master | 2021-10-27T06:51:39.602911 | 2019-04-16T18:01:24 | 2019-04-16T18:01:24 | 104,780,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | from flask_sqlalchemy import SQLAlchemy
from app import db
class Quote_Of(db.Model):
__tablename__ = 'quote_of'
quote_of_id = db.Column(db.Integer, primary_key = True, autoincrement = True)
quotes_id = db.Column(db.Integer, db.ForeignKey('quotes.quotes_id', ondelete='CASCADE'))
ent_id = db.Column(db.I... | [
"khanna.tanmai@gmail.com"
] | khanna.tanmai@gmail.com |
4dfb6d16bcfe5cdc4bec9b9739e75f6880607027 | ac7abb68539f884b477c19c80d76ff1e1ef3b4cc | /Runner/Principal.py | 255a84bad72ee88bfec1f56abba2f023060cf01e | [] | no_license | Retravel/Retravel-Fin | 81f28791a926d4b6abba91711ef013c86be29aca | a58287708fb3e2032cda5e96094cb576c2fb761c | refs/heads/master | 2020-03-17T14:35:02.967645 | 2018-05-21T10:01:38 | 2018-05-21T10:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,277 | py | import pygame as pg
import random
from Runner.Options import *
from Runner.Classes import *
class Jeu :
def __init__(self) :
# initialisation de la fenêtre, etc
pg.init()
pg.mixer.init()
self.fenetre = pg.display.set_mode((LARGEUR,HAUTEUR))
pg.display.set_caption(... | [
"noreply@github.com"
] | Retravel.noreply@github.com |
826f0cd3c5eac6916f5ae7bebf7a5c54ce15cce7 | 3e550f7bd72fafbf09acf92371b93c6ea2b87146 | /testif.py | 614648e899e28b252fd578241bd7e1fdb02165cc | [] | no_license | falaqm/basicm | 0a6cd7260670742d0988c6c54bd138bb77267f7a | bb5d5d7bdeb1db14df52c80afd0aa06ec9fb4c35 | refs/heads/master | 2021-04-18T21:06:49.496637 | 2018-05-16T08:14:25 | 2018-05-16T08:14:25 | 126,450,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # usa=['atlanta','new york','chicago','baltimore']
# uk=['london','bristol','cambridge']
# india=['mumbai','delhi','bengaluru']
# city1=input("enter city: ")
# city2=input('enter city: ')
# if city1 in usa and city2 in usa:
# print('USA')
# elif city1 in uk and city2 in uk:
# print("uK")
# elif city1 in india a... | [
"mariadevops@gmail.com"
] | mariadevops@gmail.com |
d2719e8aa61923b461559fd373afeb6183e795b1 | 421f860e10431ad15b0a368d337cf5cd974b3daa | /tests/test_corpora/standard-swe/convert.py | e575f1876574b060ab586d5c6a620d42b7c15f5b | [
"MIT"
] | permissive | borsna/sparv-pipeline | 1eca7c1bce7b30d288b273df572c9a298e5c68ff | 0fe5f27d0d82548ecc6cb21a69289668aac54cf1 | refs/heads/master | 2023-02-22T04:44:33.722404 | 2020-12-07T16:45:04 | 2020-12-07T16:45:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | """Example for a custom annotator."""
from sparv import Annotation, Output, annotator
@annotator("Convert every word to uppercase")
def uppercase(word: Annotation = Annotation("<token:word>"),
out: Output = Output("<token>:custom.convert.upper")):
"""Convert to uppercase."""
out.write([val.uppe... | [
"anne.schumacher@gu.se"
] | anne.schumacher@gu.se |
cedc86c60287d2aa953379b03f884778d3db8f98 | baf080cb2ff76697daade8ca105b71d786c00fde | /util/plot_cpu.py | e957232679533d7bbca0807ec4d3c622e18023c3 | [] | no_license | bentenballer/SimulatingNetworks | d7bbf272a62f0a50043fc3ddb104b1cccb927e8d | 32a6c5914d967dc45bd91ac7faa2f67dcdb22489 | refs/heads/main | 2023-08-17T14:37:29.611721 | 2021-10-10T06:41:17 | 2021-10-10T06:41:17 | 415,506,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | '''
Plot CPU utilization of each virtual host.
'''
from helper import *
parser = argparse.ArgumentParser("Plot stacked bar chart of CPU usage")
parser.add_argument('--files', '-f',
help="File to read CPU usage from.",
required=True,
nargs="+",
... | [
"noreply@github.com"
] | bentenballer.noreply@github.com |
e58c4031eae13c74ca563b3d4e9cc76ceb6b8101 | db6ecee15f9f8d38156b402a5aa019ccdecc76e1 | /train.py | 7c75b05bbc9a84379f9bbaa2579a05c4bce56be0 | [
"Apache-2.0"
] | permissive | USTCPCS/End-to-End-Learning-for-Self-Driving-Cars | 275db7e4f940851eb338c465ea1ef636eede18bb | a8f24f10f70177e1c97659c2c4f91eee1bfeff22 | refs/heads/master | 2020-04-14T19:59:20.218401 | 2017-12-30T16:31:14 | 2017-12-30T16:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | import argparse
import os
import tensorflow as tf
from model import Nivdia_Model
import reader
FLAGS = None
def batch_eval(target, data, x_image, y, keep_prob, batch_size, sess):
value = 0
batch_num = (data.num_expamles + batch_size - 1) // batch_size
for i in range(batch_num):
batch_x, batch_y... | [
"wang_kejie@foxmail.com"
] | wang_kejie@foxmail.com |
b52e256f0a8a9c2d165f8a149cddf88616e8b42f | a4b9db38e6d9a6b18adda06c7dded17ae8a3386a | /Trie.py | 46c20e428351dcc20ee32a66d61a9c477f72f008 | [] | no_license | TeoWeber/trabalhoCPD | 4d2c0f62917c84ee7331bfa376f02a89ac6d541b | 9504d86e15f2753e330dde0202e615641445dff2 | refs/heads/master | 2020-04-09T01:42:02.424916 | 2018-12-03T02:50:30 | 2018-12-03T02:50:30 | 159,913,868 | 0 | 0 | null | 2018-12-01T05:54:54 | 2018-12-01T05:54:54 | null | UTF-8 | Python | false | false | 1,815 | py | import pickle
class Trie():
# Construtor
def __init__(self, char='RAIZ', value=-1, level=0):
self.id = id
self.char = char
self.value = value
self.children = {}
self.level = level
def __str__(self):
s = "_"*self.level + self.char + " >>> " + str(self.value)
for char in sorted(self.childr... | [
"noreply@github.com"
] | TeoWeber.noreply@github.com |
6bd1b8075da7a6011954a7dd97c91bca1878a74c | 32a73d1c9359c8edb184a09ed602f218429458b5 | /tests/apps/bad_rollback_flow_drop_column_with_notnull_app/migrations/0001_initial.py | 6dc41e4f4ce11ff4ba761a96b62f6f7d8af7e39b | [
"MIT"
] | permissive | tbicr/django-pg-zero-downtime-migrations | bf705cd4655efc3d698ffec859945e921671979f | a96fb4dea8361857ca24b05e84a9ab6f612a3bb6 | refs/heads/master | 2023-08-29T00:11:07.514299 | 2023-06-23T01:14:11 | 2023-06-24T23:31:35 | 137,562,760 | 468 | 25 | MIT | 2023-06-24T23:31:37 | 2018-06-16T07:36:35 | Python | UTF-8 | Python | false | false | 787 | py | # Generated by Django 3.1 on 2019-09-22 21:00
from django.db import migrations, models
def insert_objects(apps, schema_editor):
db_alias = schema_editor.connection.alias
TestTable = apps.get_model('bad_rollback_flow_drop_column_with_notnull_app', 'TestTable')
TestTable.objects.using(db_alias).create(fiel... | [
"pavel.tysliatski@datarobot.com"
] | pavel.tysliatski@datarobot.com |
4041ef0ddfca556771d9ad29a6c5b1bb3bfff056 | b2cb3fba925ff4c74ec6f4e9e47f6d81cf8ab314 | /10809.py | 030b749129b66912b12ed78cae0b3ef73955c312 | [] | no_license | haka913/boj | 599c693ed6c2e06b30a68d7b7e53c5a04b09a67f | 1f634b6e6036b080a876656dbf36c2dbd4f6383e | refs/heads/master | 2022-12-24T06:53:31.621957 | 2020-10-04T15:34:43 | 2020-10-04T15:34:43 | 212,800,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | s = input()
dic = [-1] * 26
for i in s:
if(dic[ord(i) - ord('a')] == -1):
dic[ord(i) - ord('a')] = s.index(i)
print(*dic)
| [
"noreply@github.com"
] | haka913.noreply@github.com |
f17ed08bf47fc77482e427e5e7c87e52a0ab5d46 | 756d50be34245115ad28e79f4dfceb5516d17225 | /relsearch.py | af268beec2663fa43b51c0f5de63ab395fea2d2b | [] | no_license | abyssonym/gg3 | f1ce189a2a70786da8b2ab78281b39615fc59af2 | 1e6adadc6765d339ebbd7ca650d9b435d56fb366 | refs/heads/master | 2021-01-18T13:51:25.702975 | 2017-11-16T22:26:30 | 2017-11-16T22:26:30 | 34,976,112 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | from sys import argv
from string import ascii_lowercase
from shutil import copyfile
filename = argv[1]
outfile = "test.smc"
searchstr = argv[2].lower()
if '.' in searchstr:
searchstr = map(int, searchstr.split('.'))
else:
numdict = dict([(b, a) for (a, b) in enumerate(ascii_lowercase)])
searchstr = [numdi... | [
"none"
] | none |
6ca3c25866e8bb939115c64e727679830d0397ed | 3514b1e55ba48b54a7834e2b834cccc8c1fed856 | /PAIS/blog/urls.py | b004ab83d1ed08ee46c2f30934558b7338d96326 | [] | no_license | clarenceehsu/blog_with_django | 540d4e57ca0367ad7494b992020847b28107adc1 | 7d13ca7057e1d2d278c2b88075fca0263e1a5e98 | refs/heads/master | 2020-06-27T21:27:16.847823 | 2019-10-07T15:12:01 | 2019-10-07T15:12:01 | 200,053,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from django.urls import path
from django.urls import re_path
from blog import views as blog_views
app_name = 'blog'
urlpatterns = [
# re_path(r'^post/(?P<pk>[0-9]+)/$', blog_views.render, name='render'),
path('<path:match>', blog_views.match, name='match'),
] | [
"clarenceehsu@outlook.com"
] | clarenceehsu@outlook.com |
82678ca0bbaa92ebe8ee87c145c0472f2d1a6f8c | 6985139dfc6b313d47d2a3e390aa97d5b95a9245 | /presensi/urls.py | 76004872647df3f9be84e279f522332dea4350eb | [] | no_license | rafiem/Attendance-Apps | 41294b19f27bf045fb7d5223acf7b54c53f2f2b8 | 449c61fd5be393513e2c58969c3f63f141ddd8fd | refs/heads/master | 2020-05-15T20:22:56.607294 | 2019-04-21T02:54:07 | 2019-04-21T02:54:07 | 182,473,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | """ghidza URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | [
"rafiemuhammad07@gmail.com"
] | rafiemuhammad07@gmail.com |
d19900843a543c71b3c6b42cd0625657db46def1 | 1714707d842bc3e465cf95449a3440a64b4ceb98 | /MSG-MIR/models/stn/local_stn.py | 67a5b2613d0d2b5a82692bc1e9094a5951cb609a | [] | no_license | BugIITheGreat/MSG-MIR | 178ff1b52ea86ebb978d4e222a0ee6d27089aea2 | c425d129ae8eb96cf81f5bd4473e72434461e613 | refs/heads/main | 2023-07-27T20:06:39.493150 | 2021-09-07T02:33:11 | 2021-09-07T02:33:11 | 403,804,562 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,011 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from .layers import DownBlock, Conv, ResnetTransformer, get_activation, TransConv
from .stn_losses import smoothness_loss, deformation_equality_loss
sampling_align_corners = False
sampling_mode = 'bilinear'
# The number of filters in each block of th... | [
"noreply@github.com"
] | BugIITheGreat.noreply@github.com |
914b43a3f40792a728183c80d318067f6bfb208e | 1278be8cb9f536b6a9c576440e2673279beded2e | /app.py | 0181a61877e31070b4ecafe09aea6524a06d4894 | [] | no_license | patrickhpatin/web-scraping-challenge | ba8dade253aa7b4d1aeec53d0ccdabc9e263bd35 | 5f591d642b5970e65494f624bbc98ac403e2edd9 | refs/heads/master | 2021-02-16T14:57:14.011696 | 2020-03-13T11:11:56 | 2020-03-13T11:11:56 | 245,018,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Dependencies
import pandas as pd
import time as time
import numpy as np
import requests
from flask import Flask, render_template, redirect, jsonify
import flask
import scrape_mars
#################################################
# Flask Setup
#################################################
app = Fla... | [
"noreply@github.com"
] | patrickhpatin.noreply@github.com |
39ce366767eb979edd3220b8406fcd87ed5005d5 | 738150687713893325accbf6fe1326651c4172e5 | /archer/core/job.py | 228b4ec7201dc4ed8641a9e35616780df73d509c | [] | no_license | vnetserg/archer | ae5e74a741e573481633a1d6019e571d5817a03d | 8f74b84f667ca82c66ead6a3ce2bde9a5e61f62c | refs/heads/master | 2020-12-24T11:17:58.001980 | 2016-11-07T02:55:28 | 2016-11-07T02:55:28 | 73,037,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py |
class Job:
'''
Class that represents a subprocess job.
It implements the functionality of starting a job, reading it's
stdout, writing to it's stdin and sending signals to it.
Also this class loads job's manifest (description of what program
expects as input and what it prov... | [
"sefomin@cisco.com"
] | sefomin@cisco.com |
5ddba1270c889ab28de1f6107a603b4c97f4d9f3 | 8b63d77758f20f688f40fce82c6210d22e104da7 | /Project challanges/PROTO/Assistant/Test/Audio bestand naar tekst/assistant.py | db8395ca024a5d3152c9212486ac55cfb012e4a0 | [] | no_license | rouwens/S2-Applicatie | effa50d959729a3ddd6259e71be2229f46dafe69 | d5a412b7019451a18f3074c18bd5a879271a5fb5 | refs/heads/main | 2023-05-05T15:56:09.200904 | 2021-05-24T14:22:21 | 2021-05-24T14:22:21 | 370,379,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import speech_recognition as sr
r = sr.Recognizer()
#r.recognize_google()
testaudio = sr.AudioFile('welcome.wav')
with testaudio as source:
audio = r.record(source)
type(audio)
output = r.recognize_google(audio)
print (output) | [
"drouwens@gmail.com"
] | drouwens@gmail.com |
68e328c9648ea200735877f178284df1e80ab990 | 1fb76677ceb77a0f6782d387e8057565f57a82cc | /colecoes-listas-vetores.py | cc7e1e31ec4e946ea634ceb30f329bc25155accc | [] | no_license | eduruiz333/python | 7c88d369eaf3ddb4d7802e67969bba0eda62f14e | 500efa1e4c9483ed1fe5ea568d3dee3abbcf61ee | refs/heads/master | 2020-02-29T14:40:17.043131 | 2017-08-28T12:29:04 | 2017-08-28T12:29:04 | 89,487,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | """
lista_qualquer = ['Aqui é um texto, bla bla bla', 122, -58.0, 'E']
lista_qualquer[3] = 'X'
lista_qualquer.append('Mais um item inserido')
print(lista_qualquer[3])
print(len(lista_qualquer))
print(type(lista_qualquer[0]))
print(type(lista_qualquer[2]))
"""
def ordena_numeros():
lista = []
print('Digite ... | [
"marcos.ruiz@easynvest.com.br"
] | marcos.ruiz@easynvest.com.br |
da7735dd9f12766395639c3be0898efd1916fa6c | d1dabd032696e16c063812ffb5d28f0c29585faf | /venv/Scripts/pip3.8-script.py | 366e18d8a8118257c8c8ed61a7c61d5cd5a3bf5c | [] | no_license | sashamerchuk/algo_lab_2 | a7f9df88a518f3325f806352720ddc10d9c93093 | 9fb9af05872de6669ce2ebf51962be6db89c8e8a | refs/heads/master | 2020-08-23T11:26:59.710387 | 2019-10-21T21:56:12 | 2019-10-21T21:56:12 | 216,605,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!C:\Users\User\Desktop\algo_lab_2\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__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])
... | [
"sashamerchuk16@gmail.com"
] | sashamerchuk16@gmail.com |
42de801c7fa9b1c00c589a99d087d02dec697b05 | 3cf9f3042a8797a6b819b67e76fe7b7b0bfe3cb8 | /SQLWITHPROFINS/deletestack.py | 807e48e3ec5f0064fac67e310195e5dd85ce1785 | [] | no_license | Melissaa12/Kindle-book-review---big-data- | 3b855ff8dfd89e816e0ee02efcc9d344928a53e1 | 14330d733c0967a0a48db801dc8f6838c17d77be | refs/heads/main | 2023-02-24T08:20:28.269120 | 2020-12-08T03:00:30 | 2020-12-08T03:00:30 | 333,365,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from re import template
import boto3, yaml, json
import sys
# file must in the same dir as script
import json
from time import sleep
#To Delete Stack
stack_name = 'DBPJT3'
cloud_formation_client = boto3.client('cloudformation',aws_access_key_id= sys.argv[1],aws_secret_access_key=sys.argv[2],aws_session_token=sys.argv[3... | [
"ryangen97@gmail.com"
] | ryangen97@gmail.com |
386c4a0c4a4eb7b1ac27de8017edc894986c9e55 | 301027bc251f9b02e10f2edefe5df7a7945839d9 | /CeldasLibres/celdas_libres/parqueaderos/urls.py | 38f115b37aa12208635a7eaad75e7b9ba062186b | [] | no_license | juczapatama/CeldasLibres | c4fb7d5c6d50167dbfacf376e833836fd0052f8b | 4578db6e880cc42289d6793518b8ba065485a21e | refs/heads/master | 2020-06-14T23:43:20.533904 | 2019-07-04T02:32:56 | 2019-07-04T02:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from django.urls import path
from .views import CrearTarifa, VerTarifas, CrearEntradaVehiculo, VerIngresados, ModificarTarifa, EliminarTarifa
urlpatterns = [
path('crear_tarifa/', CrearTarifa.as_view(), name='crear_tarifa'),
path('tarifas/', VerTarifas.as_view(), name='tarifas'),
path('ingresar-vehiculo/'... | [
"julianrojasbet@gmail.com"
] | julianrojasbet@gmail.com |
4e55a3b8932491e1702cac0fb0038ccbd6ba129d | 9e386edf894d2c79070603df95137b53e09fa63a | /packetToClick/initPacket.py | df7240fc0653b18488aeb90d932be0503a9b6d14 | [] | no_license | ecks/click2warp | d921829dba12957e6e89a4ab151a62582695a76b | 7f89842473e99890022151f6e68a0df2bc8b7344 | refs/heads/master | 2020-04-01T12:57:05.350987 | 2009-05-13T22:20:51 | 2009-05-13T22:20:51 | 33,202,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import asyncore
import socket, time
class PacketToClick(asyncore.dispatcher):
def __init__(self, host, port=7777):
asyncore.dispatcher.__init__(self)
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
self.connect((host, port))
self.buffer = "a1"
self.buffer = self.buffer.decode("he... | [
"hristo.s.asenov@8bd78f8e-2ba5-11de-9b0f-33ff132f608d"
] | hristo.s.asenov@8bd78f8e-2ba5-11de-9b0f-33ff132f608d |
e5bbcfc9133153620d7c5230df6080405c903b22 | 9450abba5b19a2cadd4118b709cf11786f72623d | /largerhhdf5.py | 12eb634e4152163bcc5493b35425d60ea8bea269 | [] | no_license | Askjensen/keras-LSTM | f21b7a1e10d66e6dc732e78e2b0a9dbaf6d74879 | b8eeaf085dd752e8f48dbdb0d170cb32471d3fed | refs/heads/master | 2021-05-07T05:05:20.789557 | 2017-11-20T13:43:46 | 2017-11-20T13:43:46 | 111,415,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | # Larger LSTM Network to Generate Text for Alice in Wonderland
import numpy
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
# load ascii text and covert to lower... | [
"Ask.Emil.Jensen@Gmail.com"
] | Ask.Emil.Jensen@Gmail.com |
761cee9bc33bc3cdd7d2e32c4faecdbf2ed7481f | bab76d8cf312ee3eae66472b6abd119903e17e8e | /CountAndSay.py | 13420321dce191e20923da4c08ead73e60c68669 | [] | no_license | lixuanhong/LeetCode | 91131825d5eca144a46abe82a2ef04ea1f3ff025 | 48d436701840f8c162829cb101ecde444def2307 | refs/heads/master | 2020-04-05T02:54:52.473259 | 2018-11-07T05:31:30 | 2018-11-07T05:31:30 | 156,494,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """
The count-and-say sequence is the sequence of integers with the first five terms as following:
1. 1
2. 11
3. 21
4. 1211
5. 111221
1 is read off as "one 1" or 11.
11 is read off as "two 1s" or 21.
21 is read off as "one 2, then one 1" or 1211.
Given an integer n, generate the nth term of the coun... | [
"lixuan.hong@gmail.com"
] | lixuan.hong@gmail.com |
6bf30575f24d2e0b2e63132edf72de8253947be6 | c0df30b792e665cafbfe620a9b12e3a3b1969b08 | /vector2.py | ea09060361b342d88cf9e91e62276b97af1d302f | [] | no_license | mffigueroa/BattleshipRL | 16f617638599781fe8f8ab54be252ac231eeaef3 | 1d5363b4f028ef3adcd02a2842b0554ddf9cf648 | refs/heads/master | 2020-05-02T18:51:48.845605 | 2019-03-28T02:24:40 | 2019-03-28T02:24:40 | 178,141,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | from operator import itemgetter
class Vector2(tuple):
__slots__ = []
def __new__(cls, x, y):
return tuple.__new__(cls, (x, y))
x = property(itemgetter(0))
y = property(itemgetter(1))
def __add__(self, other):
return Vector2(self.x + other[0], self.y + other[1])
def __sub__(self, other):
r... | [
"mikfig27@gmail.com"
] | mikfig27@gmail.com |
5dc88cb58f283310fa7eee6f9c3f583230e5d0c5 | 4554a28c6c9ef57ed3f75f36e47f211d1336266f | /engine/eventmanager/eventmanager.py | d8a97a101b02a71bbad93dbcab905d145432c5b0 | [] | no_license | jnethery/Platformer | 3a46955b5a63b4190e03c3bcb1eb1ffcadb706bb | 6d8ce9d1e07fcd7cceaa76c58679967214052f30 | refs/heads/master | 2020-06-01T04:36:17.738214 | 2014-06-22T02:05:38 | 2014-06-22T02:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | __author__ = 'josiah'
import pygame
import keyboardmanager
from engine.editor import editor
def run_event_processes():
events = pygame.event.get()
keydown_events = []
for event in events:
if event.type is pygame.KEYDOWN:
keydown_events.append(event)
keyboardmanager.run_keyboard_proc... | [
"josiah@sharpspring.com"
] | josiah@sharpspring.com |
f36bac8cb3c65b13ba04323591cf99f819b50868 | 431c8beacf2b1a54982bf2d06b3dc5cebba87c69 | /buttontest.py | 1b228e5bfeb4437a78e6f55ab31ba9c5574807e5 | [
"MIT"
] | permissive | watrt/micropython-tft-gui | 290c27ba810943033d26214b7f9ec38129fa774e | 1ae9eafccb7084093eb80354e9e30d1f02367221 | refs/heads/master | 2020-12-10T06:49:51.299653 | 2019-05-25T07:30:57 | 2019-05-25T07:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | # buttontest.py Test/demo of pushbutton classes for Pybboard TFT GUI
# The MIT License (MIT)
#
# Copyright (c) 2016 Peter Hinch
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without rest... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
bc1348aa7e3c66f0d24bdec742c4d682ff052a4a | 6a9d9ed9ee3639e20f109957643666f87bfff9a7 | /drinkmaker/recepies/models.py | 22343fe3633abc482fd45b6512765581213c0d4b | [] | no_license | thegreatdrinkmaker/drinkmaker | da06a30b7eda548014003db510a3ef3744f3e6c0 | 8e3733b1e5322f399eab951f678e3286afb94833 | refs/heads/master | 2021-01-19T22:13:21.987444 | 2017-04-19T21:16:58 | 2017-04-19T21:16:58 | 88,769,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | from django.db import models
from rawingredients.models import Ingredient
class MeasurementSize(models.Model):
name = models.CharField(max_length = 256, blank = False, null = False)
unit = models.CharField(max_length = 10, blank = True, null = True)
description = models.TextField(max_length = 500, default ... | [
"smainaly@atsclock.com"
] | smainaly@atsclock.com |
550f5009ce1e9ff9ab80bfc92868db0fb181ce46 | 0549b7bfba799c95dc9232c49569d690b2c3b536 | /src/user_info/consumables/enums.py | 1f8b6bb4da10e0c2d466498811a41009f4159541 | [] | no_license | ilof2/ELiquid | 4f74e37469366a772dfcc3dbabb77aac2b3782f8 | 675c278030c826c91bc258ef22b1fad971ec6595 | refs/heads/master | 2023-04-22T15:37:37.099888 | 2021-05-09T17:29:42 | 2021-05-09T17:29:42 | 362,571,045 | 1 | 0 | null | 2021-05-09T17:24:40 | 2021-04-28T18:34:42 | Python | UTF-8 | Python | false | false | 76 | py | from enum import Enum
class FlavorType(Enum):
VG = "VG"
PG = "PG"
| [
"noreply@github.com"
] | ilof2.noreply@github.com |
e1bc080590be397ae15d86246e7de108caaf0d0f | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/benanne_kaggle-ndsb/kaggle-ndsb-master/dihedral_ops.py | e5d8d87655fb7072e1ad79d489e425aaca16ac92 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 12,079 | py | import numpy as np
import theano
import theano.sandbox.cuda as cuda
from pycuda.compiler import SourceModule
import theano.misc.pycuda_init
class PyCudaOp(cuda.GpuOp):
def __eq__(self, other):
return type(self) == type(other)
def __hash__(self):
return hash(type(self))
def __str__(sel... | [
"659338505@qq.com"
] | 659338505@qq.com |
e41f37fe6a45d787c1021cb5256d1689e960cb4c | 2b343d1bcad14a03bf45902881cc7a2490d4af0e | /src/load.py | a40d28e946abc0fbd5d5a37bab32db175173f7ae | [] | no_license | dslaw/fatal-accidents | 3f0e2f23e94bb7ac98fad964f3908c5fbf9ff26d | fd4047850faf58f42cb6f43bd44ee131aed3b9c2 | refs/heads/master | 2023-02-13T03:16:36.954254 | 2021-01-16T16:48:48 | 2021-01-16T16:51:33 | 273,564,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | """Load to staging."""
from datetime import datetime, timezone
from io import StringIO
from pathlib import Path
from psycopg2 import sql
from typing import Dict, Iterable, List, NamedTuple, Tuple
from uuid import UUID
from zipfile import ZipFile
import csv
from src import data_mapping
from src.common import Connectab... | [
"davidsamuellaw@gmail.com"
] | davidsamuellaw@gmail.com |
9f22581ff365fe95c0f65d9ca24246c7fbe4324b | fa271dab310985513171512b01863a9722aea797 | /강의 자료/02-알고리즘/07~08-두 포인터/문제별 코드/2559-수열/solution.py | 9511d30e637710061424ea5a513b9fa7431277fb | [
"MIT"
] | permissive | norimsu/FastCampus | f2ad944f0c9ba4ace0813d31dddc75a40e8f2d5f | f6173a997f71a0335756c4407baced1aca4bb316 | refs/heads/main | 2023-06-12T05:18:26.410875 | 2021-07-03T02:37:18 | 2021-07-03T02:37:18 | 382,628,475 | 1 | 0 | MIT | 2021-07-03T13:57:49 | 2021-07-03T13:57:48 | null | UTF-8 | Python | false | false | 327 | py | import sys
si = sys.stdin.readline
n, S = list(map(int, si().split()))
a = list(map(int, si().split()))
R, sum, ans = -1, 0, n + 1
for L in range(n):
while R + 1 < n and sum < S:
R += 1
sum += a[R]
if sum >= S:
ans = min(ans, R - L + 1)
sum -= a[L]
if ans == n + 1: ans = 0
pri... | [
"dkflfkdeh@naver.com"
] | dkflfkdeh@naver.com |
8cdb72d897874d4be0eec570f41c00bf4414a993 | 329a5845bda92818c9f54d6eec84b1c928ca0b7d | /restaurant/bestellung/migrations/0001_initial.py | 5c715fb27943d3f7d06562f969951a097bf7dd26 | [] | no_license | MohamdAbdelgayed/RestaurantProjekt-with-Django | 21bdd079431adcb51b1371d39ad6dc8721912404 | a59f6db80ba208088d9a8cdab56d6c1fe3cf45ab | refs/heads/main | 2023-07-13T05:06:18.235469 | 2021-09-05T21:41:05 | 2021-09-05T21:41:05 | 400,842,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # Generated by Django 3.2.6 on 2021-08-22 18:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.BigAutoFie... | [
"esharkawy97@gmail.com"
] | esharkawy97@gmail.com |
ae3a3ffcb68e562877fe9d0be3b3cc68aac3c5be | f1be9bdd633f6d0f9e15d3acc8966eacc8d185dc | /3.py | 1ae242dde02875586e9bbff27a6cca8d9fb12293 | [] | no_license | soorajnair/pyt | aa89f6f9a0bffa7df41ef11c899e74d5118da07d | 82a79a351caeb68818879212b673b024726a9743 | refs/heads/master | 2021-05-02T06:37:41.729974 | 2018-07-03T15:35:07 | 2018-07-03T15:35:07 | 112,445,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | #! /usr/bin/python
l=[1,1,2,3,5,8,13,21,34,55,89]
nl=[]
for i in l:
if i<5:
nl.append(i)
print nl
| [
"soorajnair742@gmail.com"
] | soorajnair742@gmail.com |
bd419d0a197a5e5a99a370e45cdb53a276ac5507 | e1a846a215ca119f47216d1d2121ac03fff4d493 | /All_Contents/Cluster_EM/kmeans.py | b43243eda18e51604eea12d394b5d992f7c4c586 | [] | no_license | wqainlpdl/ML_with_Python3 | f5af1437f62a7e853c23ac0f22da6c8b702f61a7 | 5e1987e36d6a58faf7b653e9aafa2ff2724b2580 | refs/heads/master | 2020-04-05T21:42:20.609733 | 2019-01-02T16:15:04 | 2019-01-02T16:15:04 | 157,230,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | from sklearn import cluster
from sklearn.metrics import adjusted_rand_score
import matplotlib.pyplot as plt
def test_Kmeans(*data):
x,labels_true = data
clst = cluster.KMeans()
clst.fit(x)
predicted_labels = clst.predict(x)
print("ARI: %s" % adjusted_rand_score(labels_true, predicted_labels))
p... | [
"wqainlp@outlook.com"
] | wqainlp@outlook.com |
b212f30ce3a4c9af92e433cec3f79e72b4586b9f | c71a1053315e9277daf01f2b6d3b7b3f9cc77075 | /menu/urls.py | 7755a066a01883ca36d599c7d6927de8a072fdae | [] | no_license | ingafter60/dinner | f59bb42135d5dd8eb9a42bf665ea1dfc30e01937 | 08b4a33d899ffa45bb7f56b58cfef97703bd2083 | refs/heads/master | 2020-07-03T20:28:27.635316 | 2019-08-18T03:14:44 | 2019-08-18T03:14:44 | 202,040,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # menu urls.py
from django.urls import path
from menu import views
app_name = 'menu'
urlpatterns = [
path('', views.menuList, name='menuList'),
path('<slug:slug>', views.menuDetail, name='menuDetail'),
] | [
"inyoman_gurnitha@yahoo.com"
] | inyoman_gurnitha@yahoo.com |
85375cf6494e037516705f9a0e24e817069008ef | 96b6fd3cc99e00b86ec3887e314f8d5fa73f3f2f | /decorator_pattern/decorator_example.py | bb9899faf48e6f0429133ca112a59cf5647621b8 | [] | no_license | tim-ts-chu/design-pattern | 296afbe4e2a9e86ef45539975c1972864d26b0f2 | d66cc836c8040fa1765c14ca3f648386049248ad | refs/heads/master | 2020-04-23T01:40:31.822933 | 2019-03-12T16:49:52 | 2019-03-12T16:49:52 | 170,820,108 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | #!/usr/bin/python3
import decorator_module
class MochaHouseBlend(decorator_module.HouseBlend):
@decorator_module.Mocha('description')
def getDescription(self):
return super().getDescription()
@decorator_module.Mocha('cost')
def cost(self):
return super().cost()
class MilkEspresso(dec... | [
"tim.ts.chu@gmail.com"
] | tim.ts.chu@gmail.com |
894f3558e7c71d3dddc26e67f412ce6089f639f2 | 4da640cbf45783282c3e382331013eecb5553492 | /lits.py | 3a4e748a40878bc3c7453b93d1b0ef73eec3fd0b | [] | no_license | kuzeydev/mbv-python-projects | 70f455c5e33e9bfa3feddbcffb2ee776fa477706 | a166f3f6f24c33da66f474c886fa7840ec4fdc97 | refs/heads/main | 2023-07-05T03:17:55.021821 | 2021-08-31T19:25:49 | 2021-08-31T19:25:49 | 401,819,818 | 0 | 0 | null | 2021-08-31T19:25:06 | 2021-08-31T19:25:05 | null | UTF-8 | Python | false | false | 132 | py | names = ['mbv' , 'kbv' , 'bob', 'rick']
print(names [1])
print(names[-1])
names[1] = 'bugra'
print(names)
print(names[0:3])
| [
"noreply@github.com"
] | kuzeydev.noreply@github.com |
91c49178d5dce7ea6fae1aa3f8561b745143e0c8 | d8ad69f58827b45cecc4b747d40474bacf3b70c6 | /dsc_connect_app/apps.py | 7595f6e5a13d83e23b9769aa77467663706c11b0 | [] | no_license | dsckiet/dsc-connect-backend | 8cd644e5991edf43c31735bb2abb62e895ce53ae | 584b42525497991e1aa4d9dae2670d607cf0f299 | refs/heads/master | 2020-12-23T18:15:16.570009 | 2020-04-25T12:21:21 | 2020-04-25T12:21:21 | 233,260,515 | 0 | 2 | null | 2020-01-24T13:57:32 | 2020-01-11T16:21:09 | Python | UTF-8 | Python | false | false | 187 | py | from django.apps import AppConfig
class DscConnectAppConfig(AppConfig):
name = 'dsc_connect_app'
#def ready(self):
# import dsc_connect_backend.apps.dsc_connect_app.signals | [
"shashank16vasu@gmail.com"
] | shashank16vasu@gmail.com |
efe854c65e8348927573faaf27d384468a2f32dc | a90d490bf8a9df04334746acbafa5f8dad20c677 | /recipes/migrations/0009_auto_20160410_2021.py | 6dc28757abd45521c92ee402fe3f6ff6cb9d9162 | [
"MIT"
] | permissive | vanatteveldt/luctor | 8e8ffc20c05cc20a241c677bbe5400a5d71f2882 | 9871fa7afa85f36353b3f4740f73ae3e36d68643 | refs/heads/master | 2023-03-15T20:05:29.220407 | 2023-03-08T22:06:53 | 2023-03-08T22:06:53 | 14,639,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-10 20:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('recipes', '0008_auto_20160405_0044'),
]
operations ... | [
"wouter@vanatteveldt.com"
] | wouter@vanatteveldt.com |
c3ccf4e0c76e93b359190807ae0de1c11b195805 | 8dfda6368e8f566ac2b727980ad4278a43326e60 | /fc.py | ed4768fc7a6fe70bd3dd91084c5eee29d1abb4cd | [] | no_license | Stupidd-Pumpkin/Python-Projects | d5d10652034f02b41e8d7328310630adc55f81a7 | 0b88daed705504d455463690d209509ed8215b9c | refs/heads/main | 2023-03-26T10:45:03.655376 | 2021-03-27T07:13:09 | 2021-03-27T07:13:09 | 352,001,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,183 | py |
#file_name="dict.txt"
#file_list=[]
#fin = open(file_name)
#for eachline in fin:
# file_list.append(eachline.strip())
#
#print file_list
#file_set=set(file_list)
import string
#from difflib import *
f=open('dict.txt','r')
open('lists.txt','w').close()
q=open('lists.txt','a')
open('back.txt','w').close()
z=open('back.... | [
"noreply@github.com"
] | Stupidd-Pumpkin.noreply@github.com |
786f35f8876ad00ec0ef8dcc90fb1ffa18300fb8 | 2045faf65d972824d50fde231f5cd7ac855ca486 | /some_ideas/check_palindrome.py | aa46de6ccf904e79e3cb7dea4e1c180afb92cff5 | [] | no_license | varerysan/python_start_lessons | e87f1cbe01918a9dc91dc54fb25f7bb2ab50245b | 6a2aa3f0343017777ef30a117debf4160e8cf3a1 | refs/heads/master | 2020-04-02T15:40:10.725703 | 2019-11-17T04:01:53 | 2019-11-17T04:01:53 | 154,577,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py |
text = ['abc', 'aabaa', '245235', '123321']
t2 = text[::-1]
print("t2=", t2)
pal = [s for s in text if s == s[::-1] ]
print("pal=", pal) | [
"valery.mosyagin@gmail.com"
] | valery.mosyagin@gmail.com |
6f747b5fb9f472c6c4e89b6ca3610f1726436bee | a5fc521abe901fe9db46a605ec0ba71635bc308b | /managment/migrations/0001_initial.py | 059c4d114c5c4f2ebd8c9b576271218cb6f43401 | [] | no_license | revankarrajat/rms | 020b3736fb0855e547ffe7b3f91eae609cee80c7 | ed68bf427ab5612ae7f3a5308cd8075e19fc1daf | refs/heads/master | 2020-04-12T18:21:32.834786 | 2018-12-24T11:01:57 | 2018-12-24T11:01:57 | 162,676,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py | # Generated by Django 2.1.4 on 2018-12-14 06:29
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"rajatrevankar559@gmail.com"
] | rajatrevankar559@gmail.com |
171f8ff483c3386ba48cab36f6dbfbfd0b5a1471 | 72ab330a358e3d85fb7d3ce29f9da3b9fb1aa6b8 | /quickbooks/objects/timeactivity.py | 459175558f4a1afa9c1e9e0294a3ead28c38c5c9 | [
"MIT"
] | permissive | fuhrysteve/python-quickbooks | d21415c2eb0e758dece4dbdcd3890361781f9ca5 | c017355fa0e9db27001040bf45bc8c48bbd1de45 | refs/heads/master | 2021-01-21T16:04:24.393172 | 2016-01-03T17:50:50 | 2016-01-03T17:50:50 | 48,954,178 | 0 | 0 | null | 2016-01-03T17:18:51 | 2016-01-03T17:18:49 | null | UTF-8 | Python | false | false | 1,302 | py | from six import python_2_unicode_compatible
from .base import Ref, QuickbooksManagedObject, QuickbooksTransactionEntity, LinkedTxnMixin, AttachableRef
@python_2_unicode_compatible
class TimeActivity(QuickbooksManagedObject, QuickbooksTransactionEntity, LinkedTxnMixin):
"""
QBO definition: The TimeActivity ent... | [
"edward.emanuel@gmail.com"
] | edward.emanuel@gmail.com |
20c349b51d5f811b2dcc8e70aab41bb19f60d17f | c515967aaeeaffc59b61a69adb300de579a0d0c1 | /main.py | e8fd20342932567d72209a85512850b036120a03 | [] | no_license | PedroCondeOfficial/Python-Piano | 4fc1fc90cf688862051327df7d841f8127b0762f | 6f03836853f97515210d9dbcba5cbdcc342fb333 | refs/heads/master | 2020-08-07T09:03:38.186750 | 2019-10-07T13:01:45 | 2019-10-07T13:01:45 | 213,383,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,138 | py | """
Made by Pedro E. Conde
v1.0.0
10/07/2019
"""
# Imports pygame and playsound libraries to set up window and playback functions
from playsound import playsound
import pygame, sys
import pygame.locals
# Creates class called Piano
class Piano():
# Initializing function to prep... | [
"pedroconde@Pedros-MacBook-Pro.local"
] | pedroconde@Pedros-MacBook-Pro.local |
92ab9664c246ea81f1d8201f3f2d42aa6404c8c4 | 666100eef842fde48b2d478193ab5604f620ed0c | /env/lib/python3.9/site-packages/bson/dbref.py | 3c9ae5f4c997b94f31b440aaaf0a3710650b3fe4 | [] | no_license | bhavyagoel/ServerStat | 342d5dc63909fe88fe4ce0fb270c5b595471c789 | 976d5596f07f3a833ba3448aad42fea42ae901cf | refs/heads/main | 2023-09-03T03:32:07.793752 | 2021-11-17T23:33:08 | 2021-11-17T23:33:08 | 429,194,079 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | # Copyright 2009-2015 MongoDB, 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 or agreed to in writin... | [
"bgoel4132@gmail.com"
] | bgoel4132@gmail.com |
82cbd2304696415df1c92ba0cedca7acc29983b8 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/mdlyud002/question2.py | ebdc1dede1c8a1ab523e6c9a607a685c9867f7a7 | [] | 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 | 1,270 | py | # Yudhi Moodley
# Assignment 6 - Vector Calculator
# 23/04/2014
import math
vectorA = []
vectorB = []
addition = []
dotProduct = []
normalization = []
def vector_calculator():
vector1 = input("Enter vector A:\n")
vectorA = vector1.split(' ') # splits the input
vector2 = input("Enter ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
5b9b16d3f350192012b8a8d223b402d78902b5c8 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Spacy/source2.7/spacy/lang/id/tokenizer_exceptions.py | 3bba57e4cbd39db28e872da9aa8cb1051962e24a | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,722 | py | # coding: utf8
from __future__ import unicode_literals
import regex as re
from ._tokenizer_exceptions_list import ID_BASE_EXCEPTIONS
from ..tokenizer_exceptions import URL_PATTERN
from ...symbols import ORTH
_exc = {}
for orth in ID_BASE_EXCEPTIONS:
_exc[orth] = [{ORTH: orth}]
orth_title = orth.title()
... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
4b18bbafce196b41f74a02a0ded69010dc374a94 | 569db39ea53d67b695d5573e567e1b85cd83176f | /testcases/tutu/Android/AITest/__init__.py | 9596f08c4a577f19f599f5dd0c5ffe3af31631ff | [] | no_license | 1weifang/tutuandroidautotest | f38d9c86023e4d3857b04a8860f9d5ec810c485d | f3fb49eacee27682f478cb8b27a5e8f38d62e2b1 | refs/heads/master | 2022-11-15T04:48:25.333206 | 2020-07-14T03:38:16 | 2020-07-14T03:38:16 | 279,472,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2019/11/19 9:54
# @Author : Durat
# @Email : durant.zeng@sunvalley.com.cn
# @File : __init__.py.py
# @Software: PyCharm | [
"1qaz!QAZ1"
] | 1qaz!QAZ1 |
c1aecb5f5ba8e76b8436c371feeb5d0732281585 | 2f7a05fe584a948d203f0236b6f139220865aabc | /plugins/extractit/icon_extractit/actions/mac_extractor/schema.py | f38e6445d4d28a79313deafb2f2c1e1d6495cd13 | [
"MIT"
] | permissive | Kano69/insightconnect-plugins | 6671995e9c3127137f59939369ab79bdd152127d | 4dc54260470cd8a3d1cb31ae1c48ad3e8ec75194 | refs/heads/master | 2023-08-25T19:14:14.919805 | 2021-10-15T15:01:18 | 2021-10-15T15:01:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | # GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json
class Component:
DESCRIPTION = "Extracts all MAC addresses from a string or file"
class Input:
FILE = "file"
STR = "str"
class Output:
MAC_ADDRS = "mac_addrs"
class MacExtractorInput(insightconnect_p... | [
"noreply@github.com"
] | Kano69.noreply@github.com |
0e89ff008a7a7e5cdc2d5f004fae605af78a9091 | 56c9e8f4f28400fc42bb1ee9ad1615a1520854c3 | /Area.py | bb6893e43a3ece38a19467b9040e979187465b5a | [] | no_license | IbnAzeez/Python-Area | 157a9bf333dfc27ed409d4ec123056eb7b735e7a | a60d046dbdd821c4ef76a2391588a15651bf223e | refs/heads/master | 2021-04-24T05:59:30.872779 | 2020-03-25T20:53:38 | 2020-03-25T20:53:38 | 250,088,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | import math
print ('Welcome User')
print ('This program accepts the radius of a circle and returns the area as an output')
print('--------------------------------')
print('Please input radius')
radius = float(input())
Area = math.pi * radius * radius
print('Calculating Area of the Circle, wait a minute!')
print... | [
"noreply@github.com"
] | IbnAzeez.noreply@github.com |
ee1cc126f996d7479b571b66119ece007be82d74 | 21511fdabe3f0f76bba25d4d6f62fd964d090d15 | /TD02_Bitcoin_Today_practice.py | 3cffde3080ab5c72fc7e705f0f5c8e3757e3a401 | [] | no_license | lilyanB/BP-TD2-BitcoinSeed | efbc2fdb8adc67c60581bce36468327827fd9101 | 9a32f8da6e228ec8ef624054014889380c1c8782 | refs/heads/main | 2023-08-16T00:55:48.972306 | 2021-10-10T20:03:40 | 2021-10-10T20:03:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,339 | py | import secrets
import hashlib
import binascii
import unicodedata
import hmac
import ecdsa
import struct
import base58
from ecdsa.curves import SECP256k1
from ecdsa.ecdsa import int_to_string, string_to_int
from mnemonic import Mnemonic
import bip32utils
from bip32utils import BIP32Key
from bip32utils import BIP32_HARDE... | [
"noreply@github.com"
] | lilyanB.noreply@github.com |
152fe3ddd50b67a56fdbcc413e150071d290d729 | 36b1e387555398e942ccb7ed44b71ea2a036fee4 | /accounting.py | af315222d74f79dc1fd177042413722ffa956e5e | [] | no_license | RomanKhudobei/Accounting-Project | 8e99df581d3a75c182a330ad2913a8ec831c88b1 | 45a95e535578b0fa84fcb7f216c0b351886ba740 | refs/heads/master | 2021-07-18T19:01:54.389635 | 2017-10-26T21:04:27 | 2017-10-26T21:04:27 | 105,196,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,488 | py | import time
from pprint import pprint
DATABASE = {} # Data base to store accounting information
# account is special, if it doesn't have sub_account
SPECIAL_ACCOUNTS = ('01', '03', '05', '06', '08', '09', '22', '23', '24',
'25', '26', '27', '38', '39', '43', '46', '54', '55',
... | [
"noreply@github.com"
] | RomanKhudobei.noreply@github.com |
be17e52f4d57cde3138c921d58f6b8edcd9a372e | d2318b949a3503909ff9276568f2cd8b6089c009 | /djangonautic/djangonautic/urls.py | 2c5ec90c51b0748ce3f778e21500a1cef2dade9f | [] | no_license | AdrianValdes/django-blog | 1f5d1a198704ba8a3730cdb6e4975a372ab96298 | 63485e72b5ea4b0edefce5d61073462ca02a4606 | refs/heads/main | 2023-01-05T05:18:19.824663 | 2020-10-28T10:11:55 | 2020-10-28T10:11:55 | 307,976,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py |
from django.contrib import admin
from django.urls import path, include
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path("articles/", include("articles.urls")),
path("about/", views.about),
path("", views.index)
]
| [
"adrianvaldeshdz@gmail.com"
] | adrianvaldeshdz@gmail.com |
63a9b43aa118f51f86d01d2e1b256268bcdf1754 | e8dde776a6315101b25bcbd749a3c569cadb992d | /Scrapy_gs/shiyan/shiyan/items.py | 02c51063b99a73367ff56098dd12b5b8a1b8143c | [] | no_license | lsaac128/shiyanlou-code | d415e6c77a356cc4f072113622973a07d3cac27b | 620d803167544336a93687cb624093744b992370 | refs/heads/master | 2020-07-16T09:52:32.959670 | 2019-12-13T05:37:21 | 2019-12-13T05:37:21 | 205,764,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ShiyanItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title = scrapy.Field()
name = scrapy... | [
"343093497@qq.com"
] | 343093497@qq.com |
5506648e5839441f8042bcb8beadaa3a9c211d93 | ef0220b65d3ac860d33d77b6a8eef74d2df3b81b | /mod10/flask/venv/bin/wheel-3.8 | e1b86e3bb58c1e5edfcfb27af7a4be942b7afe75 | [] | no_license | safwanvk/py | b9922df211fe7f4356be3221c639cdd6d3dcf2d8 | 52482a90fb39f15846987607f1988c50f07e758b | refs/heads/master | 2022-12-12T12:21:51.335733 | 2020-09-07T08:21:49 | 2020-09-07T08:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | 8 | #!/home/safwan/xanthron/mod10/flask/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"safwanvalakundil@gmail.com"
] | safwanvalakundil@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.