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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e0a0431b921c67132029866d0dc9a2fe708b565 | e0268b6e868fcaaf6fc9c42b720e014c3ae41a20 | /scripts/make_bu_data.py | ee30a5f8470d550046a3ed6c5170a7e7aee29344 | [
"MIT"
] | permissive | gradio-app/ImageCaptioning.pytorch | 79208726dd09e1e532863af56c7a900b576cbca2 | 436d900d01139dc402b24425c60679409e0c9051 | refs/heads/master | 2022-11-15T03:27:38.775656 | 2020-07-12T22:44:30 | 2020-07-12T22:44:30 | 279,639,722 | 1 | 1 | MIT | 2020-07-14T16:37:47 | 2020-07-14T16:37:46 | null | UTF-8 | Python | false | false | 1,889 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import base64
import numpy as np
import csv
import sys
import zlib
import time
import mmap
import argparse
parser = argparse.ArgumentParser()
# output_dir
parser.add_argument('--downloaded_feats', d... | [
"rluo@ttic.edu"
] | rluo@ttic.edu |
dff2b536322cbc8ac24cd00ed962fdad5d4bbba2 | 592961def9fe287a31e117649f1ac1e97b085a9b | /venv/lib/python2.7/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py | a6582e6dd5b515ec3783b7ecc3ed81adffc4f3cb | [] | no_license | Rushin95/The_Trip_Planner-Lyft_vs_Uber | 62f03a1df8c6a0268089f50f4e80ec3d9b6b9870 | 4eeea4029eb4df047471b92065455a6828232293 | refs/heads/master | 2021-01-19T11:52:47.766019 | 2018-05-03T23:59:58 | 2018-05-03T23:59:58 | 82,268,914 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from __future__ import absolute_import, division, unicode_literals
from . import base
try:
from collections import OrderedDict
except ImportError:
# noinspection PyUnresolvedReferences
from ordereddict import OrderedDict
class Filter(base.Filter):
def __iter__(self):
for token in base.Filter... | [
"juancpinzone@hotmail.com"
] | juancpinzone@hotmail.com |
ce037214f60bd6c8975b5e9da15eaaa6acd30d83 | 685038d4be188fa72e9dba1d2213a47ee3aa00a2 | /ECOS2021/Demands/Inputs/Surveys/A/S3/Oct_S3_A.py | f3bb6b79446fe8f081e16398f9239662c9c7acc0 | [] | no_license | CIE-UMSS/Tradeoff-between-Installed-Capacity-and-Unserved-Energy | e5599e4e4ac60b97f0c4c57c5de95e493b1b5ac4 | 459f31552e3ab57a2e52167ab82f8f48558e173c | refs/heads/master | 2023-06-01T18:09:29.839747 | 2021-06-19T15:56:26 | 2021-06-19T15:56:26 | 343,720,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 31 14:33:07 2020
@author: alejandrosoto
Script for 2 class of household in Raqaypampa.
"""
# -*- coding: utf-8 -*-
"""
@author: Alejandro Soto
"""
from core import User, np
User_list = []
#User classes definition
HI = User("high income",1)
Us... | [
"asm19971997@gmail.com"
] | asm19971997@gmail.com |
f7dcb326ef51e4e6daaee6b946678ccd86fbbeef | 1f030e5f0768c9243cd018a0630e3c3708e37499 | /readfiles.py | 0af8adba299af860900dae4496c8ec332d362d9f | [
"MIT"
] | permissive | ilona-asa/LDSAproject | ba5b876e4cdfc1593462cca59f4857043f932878 | a30ba715a8bea4d9ab7bebad56b7c66c77a2d1c3 | refs/heads/master | 2020-12-30T12:00:50.721364 | 2017-06-19T17:14:28 | 2017-06-19T17:14:28 | 91,493,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | #!/usr/bin/env python
import os
rootdir ='/home/alekodu/Downloads/Large Datasets for Scientific Applications/Miniproject/enron_mail_20110402/maildir'
for user in os.listdir(rootdir):
for sent in os.listdir(rootdir+'/'+user):
if (sent == 'sent_items'):
for mail in os.listdir(rootdir+'/'+user+'/'+sent):
#p... | [
"alekodu@gmail.com"
] | alekodu@gmail.com |
57e19bf0eacc2c9dc6bfd1452ebf6c427e698494 | 311ce6fbe1b264f2b656ba235371e756695dca53 | /forcing/dot_in/aestus1_A1_ae1/make_dot_in.py | 3e296f6d56c6863053a5285cd0f5d84cb28cdf8f | [
"MIT"
] | permissive | parkermac/LiveOcean | 94bc9cb9fba1bdc2e206488e0e2afadfafeabb34 | 4bd2776cf95780a7965a18addac3c5e395703ce5 | refs/heads/master | 2022-11-30T10:21:50.568014 | 2022-11-21T16:32:55 | 2022-11-21T16:32:55 | 35,834,637 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,180 | py | """
This creates and poulates directories for ROMS runs on gaggle. It is
designed to work with the "BLANK" version of the .in file,
replacing things like $whatever$ with meaningful values.
"""
import os
import sys
fpth = os.path.abspath('../../')
if fpth not in sys.path:
sys.path.append(fpth)
import forcing_func... | [
"p.maccready@gmail.com"
] | p.maccready@gmail.com |
3aa40b19ea5dfacf313cd9d32dcac22f722576df | 5ea7eb2c34eec0ea2ce5d7556cc910aa2bae47ad | /定期禁用端口/sock_date.py | d07760797603f244ae3845d2aa8fab6c33adc2af | [] | no_license | lihuacai168/python_learning | b644b2573f2900e4459e734ec895c8ceb6f64f39 | ba1d02f9e306394d173042a41595b9770e645672 | refs/heads/master | 2021-05-04T16:50:07.223850 | 2020-03-28T15:16:03 | 2020-03-28T15:16:03 | 120,259,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | # -*- coding: utf-8 -*-
import datetime,os
# dict for sock and date
dict = {}
# 输入需要禁用的端口和日期
def my_input():
socks = input("please input sock that need to be banned:")
date = input("please input validity period for the sock:")
save(socks, date)
# save sock as key,date as value to dictionary
def save(so... | [
"lihuacai168@gmail.com"
] | lihuacai168@gmail.com |
e2e40d5891dce3971a5ced4be320735fdf96b935 | d56f1f35e3d5ad361ae1e31f56badd8b192010eb | /python/sample.py | 1eccfe46f2dc43ed40f705bc2977281aeeef1660 | [] | no_license | v-stickykeys/bitbit | 2c62c7239d278e34f4f4414890151b0e7d90bafc | 81541a78fda00cc8c53dc326c99b3118e90d0541 | refs/heads/master | 2021-10-02T22:34:26.544609 | 2018-12-02T01:16:26 | 2018-12-02T01:16:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def hello():
return 'Hello, Unit Test'
| [
"dgm97@cornell.edu"
] | dgm97@cornell.edu |
7f26625263c11326ea38eeafc3642e708fe7a559 | 8606814015cc13920052acb9c1218cb57c796941 | /aws_emr_launch/constructs/base.py | f919a0a63344232e84e81be12aa86ef7644c7576 | [
"MIT-0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | salilbhadauria/emr-custom | a92d55f6a39584631f911908fec399dd4ff9910f | 6cf3a6f6fd517bc1e036eaa69e1f3ac0fca270ec | refs/heads/master | 2023-02-12T02:00:10.868302 | 2021-01-05T09:34:45 | 2021-01-05T09:34:45 | 317,466,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import os
from aws_cdk import core
from logzero import logger
from aws_emr_launch import __product__, __version__
def _tag_construct(construct: core.Construct):
suppress_tags = os.environ.get('SUPPRESS_EMR_LAUNCH_DEPLOYMENT_TAGS', '').lower() in \
('1', 't', 'true', 'y', 'yes')
if not s... | [
"chamcca@amazon.com"
] | chamcca@amazon.com |
c6f6ba2d9b4e9d5fb450005f0c441d8158549d6f | 7f7239ca087141faf3706994a5209ed0c1f8c21f | /Python Crash Course/Chinese Version/第三章 列表简介.py | cbbafaf34e9db381a4208a1b71434e1ee83d6da6 | [] | no_license | xiemeigongzi88/Python_Beginners | f81bfaec6a3f607c18514d9c7c3d93271652cc8c | 72a85cbd132ecab2c0d607f06d5e21002628795f | refs/heads/master | 2021-07-01T14:39:43.346280 | 2020-10-30T17:52:47 | 2020-10-30T17:52:47 | 173,500,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,183 | py | 第三章 列表简介
Page 26 - 33
Page 26
3.1 列表是 什么?
列表:
由一系列按照 特定顺序排列的元素组成
其中元素之间可以没有任何关系
用 [] 来表示列表
bicycles=['trek','cannondale','redline','specialized']
print(bicycles)
OUT:
['trek', 'cannondale', 'redline', 'specialized']
3.1.1 访问列表元素
bicycles=['trek','cannondale','redline','specialized']... | [
"noreply@github.com"
] | xiemeigongzi88.noreply@github.com |
e89c16444708539db0d248af6c6a7d2e548fe9e7 | 3343c4e998f7748f6a5f9fb198baa798ede3cee0 | /python/video processing/homework_02_11_201921017_이지우.py | ac22ed341c010c361d2639c7a75ac8796b0465fc | [] | no_license | jwo29/prj | c8bf028d63c255ba95814cdaf5a1303ee8c19256 | 6e7d5cefa36ae47ffea167e21f2ff926eda6008f | refs/heads/main | 2023-08-30T03:07:36.730416 | 2021-10-17T16:39:19 | 2021-10-17T16:39:19 | 406,631,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | # 4-11
import numpy as np
import cv2 as cv
olive, violet = (128, 128, 0), (221, 160, 221)
def onChangeThickness(value):
global thickness
thickness = 1 if value == 0 else value
def onChangeRadius(value):
global radius
radius = 1 if value == 0 else value
def onMouse(event, x, y, flag, param):
glob... | [
"jwo2955@gmail.com"
] | jwo2955@gmail.com |
df585f561e1bd0f95edb526fd662fc99e5cba754 | f56fda98a93cedcec33a7d9fbb330e5cf78031e1 | /Leetcode/45. Jump Game II.py | b2d963b2956cda7d0acaeac20324868e1d0d0149 | [] | no_license | GuanzhouSong/Leetcode_Python | 7a2bac42203fb6c0b671153d9e300eb0c73d39d1 | dbb9be177c5e572eb72a79508bb6e24f357d54b3 | refs/heads/master | 2021-09-25T04:10:09.217565 | 2018-10-17T22:31:41 | 2018-10-17T22:31:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import sys
class Solution:
def jump(self, nums):
mintimes = [0] + [sys.maxsize] * (len(nums) - 1)
for i in range(0, len(nums) - 1):
for j in range(1, min(nums[i] + 1, len(nums) - i)):
mintimes[i + j] = min(mintimes[i + j], mintimes[i] + 1)
return mintimes[-1]
s = Solution()
nums = [6, 2,... | [
"guanzhou.song@gmail.com"
] | guanzhou.song@gmail.com |
556f62ce6e5bfe7f12088bb5d8be6eec651c0602 | 7a5609ef2852f2ded0f4ffc8076a38143e0ae1c8 | /图灵机器人聊天.py | 8c5d065f40e33f3e14d7ca5240e303db79ed097b | [] | no_license | yzulzf/TalkingAi | 1c560f25c0e8198a2e9b219f6b94cbaaa6e318e3 | b87c4e1067d8d477e0abb7d62a439539447404f9 | refs/heads/master | 2022-03-01T03:14:57.251040 | 2019-09-18T07:49:28 | 2019-09-18T07:49:28 | 124,658,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # coding=utf-8
import requests
import json
key='a8a0f074197d4ab5a67dac988240fbbc'
while True:#//主循环
info = input('\n我:')#//输入对话信息
url = 'http://www.tuling123.com/openapi/api?key='+key+'&info='+info#//组成url
res = requests.get(url)#//得到网页HTML代码
res.encoding = 'utf-8'#//防止中文乱码
jd = json.loads(res.text... | [
"lzfjj@qq.com"
] | lzfjj@qq.com |
382ab283e99868eb7c25aae590e703339aa079d0 | f4b694982027ac362de1e9d6755f2943d0355a06 | /DECSKS-12 -- debugging the recast from DECSKS-09 by comparing with v1.2/v1.2/DECSKS/lib/diagnostics.py | e4234421bf17641907309887eb6c7504590672c3 | [] | no_license | dsirajud/IPython-notebooks | 55275e44191c16f5393571522787993f931cfd98 | 6ad9d978c611558525fc9d716af101dc841a393b | refs/heads/master | 2021-01-15T15:33:57.119172 | 2016-07-13T20:08:29 | 2016-07-13T20:08:29 | 35,054,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,472 | py | import DECSKS
import numpy as np
import sys # to retrieve smallest float for lower bound tolerance
def HighPrecisionE(number):
"""Converts a number into a string object
while retaining a chosen degree of precision. This
is designed to evade the truncation that is involved
with str() so that outputs can... | [
"sirajuddin@wisc.edu"
] | sirajuddin@wisc.edu |
eec5c4fa0f644a545fc9a9cee45cc61cdb1b4f19 | 6ac0b1b3b86ae78e81daa52e685f57f55f93fcbd | /restaurante/migrations/0017_auto_20190701_1602.py | e21954c964f0e4d13573649ecb686015db443247 | [] | no_license | NicolefAvella/blog_Restaurante | e789d32a06303541ee59c71adb4edc9f7c45e45c | 3de7e0a809a2978822cd026f057899ba692bc9ce | refs/heads/master | 2022-05-01T02:17:50.357433 | 2019-07-02T15:18:22 | 2019-07-02T15:18:22 | 194,179,752 | 0 | 0 | null | 2022-04-22T21:46:37 | 2019-06-28T00:22:53 | Python | UTF-8 | Python | false | false | 881 | py | # Generated by Django 2.2.2 on 2019-07-01 21:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('restaurante', '0016_auto_20190630_1616'),
]
operations = [
migrations.AlterField(
model_name='c... | [
"nicolef.avella@uptc.edu.co"
] | nicolef.avella@uptc.edu.co |
e0fead7054f8729113d251c9efebcfdfc90f6514 | 14cc8a9947a0a6623dd354767107883bc575d209 | /web_auto_pro/page/addbugpage.py | eb9dfeecc17b8e782a4c8d8bf8230a2a6aae0f14 | [] | no_license | lstesterhh/ls_web_auto_project | 3a4f935840b4355c3e318e9ceeb72b2e41161934 | 947ed0b6ca2764f999420d8a66eb6eec0532904f | refs/heads/master | 2021-04-01T03:18:01.243261 | 2020-03-19T06:29:42 | 2020-03-19T06:29:42 | 248,152,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | #coding:utf-8
from case.basway import base
from selenium import webdriver
import time
class Addbug(base):
loc_test=("xpath",'.//*[@data-id="qa"]/a')
loc_bug=("xpath",'.//*[@data-id="bug"]/a')
loc_tibug=("xpath",".//*[text()='提Bug']")
loc_yxbb=("xpath",'.//*[@class="chosen-choices"]/li')
loc_truck... | [
"1142816528@qq.com"
] | 1142816528@qq.com |
7461c4581310fb6c776ce5069f7790960fc23f59 | 322f5e4711492f69858be712fc391cf9fdfda398 | /proxylab-handout/nop-server.py | b38faf7b6ba7e04203a303bbf3cc620d49b7a5dc | [] | no_license | RedemptionC/csapp-3e-lab | 8b0ef2f14855658c404304be45a3255b60ff42ed | e79b72bf7fd89639c1502f15bcfd4e7b596b124d | refs/heads/master | 2021-06-21T12:14:10.654061 | 2021-04-24T13:53:02 | 2021-04-24T13:53:02 | 209,988,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | #!/usr/bin/python3.6
# nop-server.py - This is a server that we use to create head-of-line
# blocking for the concurrency test. It accepts a
# connection, and then spins forever.
#
# usage: nop-server.py <port>
#
import socket
import sys
#create an INET, STREAMing socke... | [
"842391412@qq.com"
] | 842391412@qq.com |
c9fb1db790544b2d33dafa3e7e4c3f65558c695c | bfaf6c5659d57b50f6d99bc1492a352bf26923b9 | /evennumbers.py | 36b98f0e3b764e3aad16461c68c5e90c095e72da | [
"MIT"
] | permissive | BjornChrisnach/Basics_of_Computing_and_Programming | 537108dcf9974e8abc50571066a1a6df96915c87 | 45cb99d2b5060b23db20b84384f7b35b72ef8029 | refs/heads/main | 2023-05-30T05:11:20.636542 | 2021-06-17T18:08:25 | 2021-06-17T18:08:25 | 376,010,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | print("Please enter a positive integer: ")
number_of_numbers = int(input())
for i in range(2, (number_of_numbers*2) + 1, 2):
print(i)
| [
"41198499+BjornChrisnach@users.noreply.github.com"
] | 41198499+BjornChrisnach@users.noreply.github.com |
b668b0abab5e11cdc720fd2cf1af244fcc9727a3 | f2bb0e8ea0e0ae747238055a5669ed8b44095f81 | /api/__init__.py | 7c4f18948535976fc9f083e800619c67f21ad732 | [] | no_license | Rareseal94/NoteAPP | c94e203913dba9d2e336759b52ffe451222e6525 | d2026caec2eac44acf6c19a5364d9ebe180a5d49 | refs/heads/main | 2023-08-15T14:28:43.131868 | 2021-09-14T16:56:22 | 2021-09-14T16:56:22 | 406,454,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import logging
from config import Config
from flask import Flask, g
from flask_restful import Api, Resource, abort, reqparse
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_marshmallow import Marshmallow
from flask_httpauth import HTTPBasicAuth
from flask_apispec.extension import Fl... | [
"Gerk94@mail.ru"
] | Gerk94@mail.ru |
9feacf0a85e2b4cb750a3f12f786d8971b96efc5 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc042/B/4081354.py | 8eea907c466a07c6b45bfcd05fcae80479294c1a | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python3
p = complex(*list(map(int, input().split())))
N = int(input())
li = [complex(*list(map(int, input().split()))) for _ in range(N)]
li += [li[0]]
m = min(((p - a) / (b - a)).imag * abs(b - a) for a, b in zip(li, li[1:]))
print(m) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
b46b992f72c74596ded6b403282b96a1c9815f17 | 0be52e0a7d788088bc5a79559b9bb2532d17a210 | /lib/ldapalchemy/gui/objectclass.py | 816364f2e85f773f981efbb11c3af1ab708a6e60 | [] | no_license | clebergnu/ldapalchemy | e3439a6b45ab9b9b45fc2548faf7b8fe402586c7 | af3b021a5b9ebad337c6665a56b6428f42daf18c | refs/heads/master | 2021-01-20T09:01:38.517110 | 2010-10-20T17:15:42 | 2010-10-20T17:15:42 | 1,009,678 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,966 | py | # -*- Mode: Python; coding: iso-8859-1 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## This file is part of LDAPAlchemy
## Copyright (C) 2007 Cleber Rodrigues <cleber.gnu@gmail.com>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public Li... | [
"cleber.gnu@gmail.com"
] | cleber.gnu@gmail.com |
17cc8fa97f6368e616ebe185f8ba427f717efcee | bc5e26509ad2130202034474338b17ad4119a886 | /kmtshi/wsgi.py | cb9ceda02e6236b01348844fd6f568571975bc3a | [] | no_license | mdrout/kmtshi | 21ea45839bfc29a74053fd1b323476e63dc5708d | 6d208c98c590e75d2b1cbcc148852e632579d17c | refs/heads/master | 2021-09-13T05:45:13.042223 | 2018-04-25T15:47:09 | 2018-04-25T15:47:09 | 73,971,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for kmtshi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"mrdrout@gmail.com"
] | mrdrout@gmail.com |
284a5ef774fda9b4dfaa331c91ef901575bb3aff | 1cc69dfdcf664a26f2f7d64d803343e3d0165515 | /4_Brave_Knight/braveKnight.2.py | 37c36d335823e9f2ac1c21b1654c52f19fda8e29 | [] | no_license | juanlluva/Tuenti_Challenge_8 | 69827bbbe8af052507fa942d8f181d1e1d55f858 | 36371029815709bf6a0d789d22731bd85a7d7322 | refs/heads/master | 2020-04-22T04:33:49.884820 | 2019-02-23T01:37:05 | 2019-02-23T01:37:05 | 170,127,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,994 | py | import sys
from collections import deque, namedtuple
# we'll use infinity as a default distance to nodes.
inf = float('inf')
Edge = namedtuple('Edge', 'start, end, cost')
def make_edge(start, end, cost=1):
return Edge(start, end, cost)
class Graph:
def __init__(self, edges):
# let's check that the d... | [
"jlluva5@gmail.com"
] | jlluva5@gmail.com |
26350657c516bdbc078319c35b32e08da7e3bf3c | 26a47d3afb403d5307a1eaaae0bf43c90e8e16a0 | /creme_fraiche/views/home.py | 6a336c5c49583ad4b0f418f5a8b533d53742e6fa | [] | no_license | makewhatis/creme-fraiche | e7336b3418a6acff1236a35a9514aefe41835df5 | 8f7dc441de354b45db2a1520432329f3b17094e1 | refs/heads/master | 2021-01-22T04:42:02.553244 | 2013-04-23T03:16:30 | 2013-04-23T03:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | from pyramid.response import Response
from pyramid.view import view_config
from pyramid.view import forbidden_view_config
from pyramid.security import authenticated_userid
from pyramid.security import remember
from pyramid.security import forget
from pyramid.httpexceptions import HTTPFound
from pyramid.httpexceptions ... | [
"david@makewhatis.com"
] | david@makewhatis.com |
bfcab4cecd2a7d8e3946cf55d03659e839d25b3d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/82/usersdata/165/44623/submittedfiles/decimal2bin.py | b07134dde6b2df7bd468626e44d12cc75e301ed4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf-8 -*-
n=int(input('digite n:'))
i=0
soma=0
while n>0:
resto=n%10
soma=soma+resto*(2**i)
n=n//10
i=i+1
print(soma)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c17fd3267ac51e7a4fda177e6d131a4b06b9b26d | ab41437412fb5b94c4d9618402242171adb9f24a | /PasswordGenerator-project/generator/views.py | 7958ed9f68efd15463fad8e1da14396556f260f9 | [] | no_license | GeranMS/django3-password-generator | 9968949985188f3db324b2dbeed58f387259fe19 | a0bd442a3e83df9f3f350eccd1cbf168ac6cda85 | refs/heads/master | 2022-11-24T18:16:33.837422 | 2020-07-21T10:53:08 | 2020-07-21T10:53:08 | 281,373,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | from django.shortcuts import render
from django.http import HttpResponse
import random
# Create your views here.
def home(request):
password_dict = {'password':'ihidguyuy'}
return render(request, 'generator/home.html', password_dict)
def about(request):
return render(request, 'generator/about.html')
de... | [
"geranms1@gmail.com"
] | geranms1@gmail.com |
c9d87b0c2efd5f04ba999abcec54d97fb11bb1c3 | a916bf443953f25535d8a929e44a194805cbc832 | /dataStructures3.py | e620dea8ebcbece3a6c24bbef4b2bf482e70ccd6 | [] | no_license | TanujSharma369/258286_DailyCommits | 7eeaca0ce1af48add06fe81c0d162300f104d351 | 313d9f7d6daf47b6ac595291f6a4135e062a698a | refs/heads/master | 2023-04-20T08:45:13.554589 | 2021-05-19T07:23:06 | 2021-05-19T07:23:06 | 358,884,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | under_10 = [x for x in range(10)]
print('under_10:' +str(under_10))
squares = [x*x for x in under_10]
print('squares:' +str(squares))
odds = [x for x in range(10) if x%2==1]
print('odds:' +str(odds))
sentence = 'I love 2 go t0 the store 7 times a w3ek'
nums = [x for x in sentence if x.isnumeric()]
print('nums:' + ''... | [
"tanuj.com"
] | tanuj.com |
a99f1838906b7f0cea9a4ddabadca266b47cebdd | 89a5f9bdc33ed649bacf15e837f61729ee322faf | /Python (diff tasks)/pytask3-25.py | 1b097cba6780bc1a13fd6d56156877b4407c876a | [] | no_license | gonnawanna/univertasks | 65a1d93ffbf876ad7ea432f9be321dbe17da2770 | 2b1bd28f997dbcf37ce03794550c851b78f58fb3 | refs/heads/master | 2020-05-25T04:26:52.450991 | 2019-05-20T11:25:25 | 2019-05-20T11:25:25 | 187,625,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import numpy as np
a = np.random.random_integers(-2,3,[3,4])
print(a)
counter = (a == 0).sum(axis=0)
a = np.vstack((a, counter))
counter = (a == 0).sum(axis=1)
a = np.column_stack((a, counter))
print(a) | [
"withintruth@yandex.ru"
] | withintruth@yandex.ru |
cb9b3aee824c57b21f29ee6facc88b380fc9eb68 | a0265b6b2350586a3c4e5b52c593129d291bb9ca | /synthetic/synthetic_cov.py | ee8285482027937aef0f48639349edfc68f94749 | [] | no_license | yowald/elliptical-losses | ed3ae0f58a49abecfa7dc76516e6e4ac969dee05 | 0497e4b6863f300e5d05f46d0704c786a59fa986 | refs/heads/master | 2020-08-28T17:57:06.604507 | 2020-01-04T16:22:53 | 2020-01-04T16:22:53 | 217,775,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,820 | py | """Functions to generate synthetic data and run experiment.
flags control number of variables, sparsity parameter, seed etc.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# from absl import app
# from absl import flags
import os
import sys
import nu... | [
"noreply@github.com"
] | yowald.noreply@github.com |
2406f8d30bec4dab92a9975052e0714bba593eaf | 986853c69a9dfc13ca5303f7e56db028f114a744 | /fiboncci series.py | 22ec2d5e8c79f99d8c5335d34f7f44ed266123e6 | [] | no_license | omee1/Python | 78320d04f48eab1a9b929fca92813be36e33a302 | ba94ecbb0afd2f99b70e3bfd2b4837d0d4fce354 | refs/heads/master | 2023-08-18T17:01:29.977259 | 2021-10-21T09:22:13 | 2021-10-21T09:22:13 | 419,625,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def series(n):
a=0
b=1
count=0
while count<n:
print(a,end=",")
c=a+b
a=b
b=c
count +=1
num=int(input("enter the no"))
print(series(num)) | [
"noreply@github.com"
] | omee1.noreply@github.com |
e58cfb3de60cd764e85865be181cffa7c8b60191 | 81f2653de884d9b27c4f921ee8b2761ef65098db | /main.py | 8ded70c9b58c8deb91be512a7ffa6b4c6dbc216c | [] | no_license | vnikaski/epidemic_simulation | fa2b084b2281ef34dd200b1bde971a9365afc1f7 | 8aba4ac026bfc4b35405964435512703f7adcba7 | refs/heads/master | 2021-05-19T13:40:37.081479 | 2020-03-31T20:55:47 | 2020-03-31T20:55:47 | 251,729,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,666 | py | import numpy as np
from random import randint, random
from matplotlib import pylab
from matplotlib.animation import FuncAnimation
import argparse
def update_neighbours_for_cell(map: np.array, direction: str, i: int, j: int, r: int):
"""
Updates number of Moore's neighbours in the distance of r from t... | [
"noreply@github.com"
] | vnikaski.noreply@github.com |
64511cc39b9c27659b5e2ed5fe9709459794abfe | 811ea65e1b91f03410bc3e0af6712e4e59048109 | /luis.py | ddbecd0e8d24b7e267c71de59c0aaf9568a13c4b | [] | no_license | fartuk/TrackML | 40de40cffb48cd20ddc5d6ed9b129be57dfd332b | 610181123aa3d78c6c60ff43e818a1a3b0821fe7 | refs/heads/master | 2020-03-22T14:08:37.468116 | 2018-08-05T09:05:56 | 2018-08-05T09:05:56 | 140,156,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,965 | py | import numpy as np
import pandas as pd
import os
from trackml.dataset import load_event, load_dataset
from trackml.score import score_event
from multiprocessing import Pool
from sklearn.neighbors import KDTree
cnt = 0
for event_id, hits, cells, particles, truth in load_dataset('../storage/track_ml_data/train_5.zip... | [
"fattakhov@unim.su"
] | fattakhov@unim.su |
4dd509fbf559746d31fc3753d3ebf3f12f580c3d | c7598e64bc54c5aa437d7867db00c90090eb228e | /RG_average_user.py | 3c5e8eaf74ee278ed897f221ce49c03617f09272 | [] | no_license | lucaleporini/FixationSaccadesAnalysis | 43d98c280589efa73ff60b4b46b93646ab601ccc | e682d5ae251326dc8b3278cc75d85cf9d46f84b6 | refs/heads/master | 2022-04-26T01:28:21.346144 | 2020-04-29T14:41:45 | 2020-04-29T14:41:45 | 259,948,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,443 | py | """
QUESTO SCRIPT PYTHON PERMETTE DI TRASFORMARE I RAW DATA OTTENUTI DA EYE TRACKER
VENGONO PULITI DA VALORI DI BLINK (0,0) E DA VALORI NON AMMESSI O FUORI DALLO SCHERMO
VENGONO CALCOLATE DISTRIBUZIONI SULLA BASE DELLA MEDIA DEGLI UTENTI --> SOMMA DELLE FREQUENZE / N° DI UTENTI
"""
# OBIETTIVO: individuare statistiche... | [
"48446501+lucaleporini@users.noreply.github.com"
] | 48446501+lucaleporini@users.noreply.github.com |
1a5893451ff5bbe931aadaa91de200ba69929bd2 | 98054c8b4b50ce31b5cfa37afd6513d97e279fb8 | /recipes.py | 6425ef887619c5e8179bf233e0f731d2a7543a43 | [
"MIT"
] | permissive | teichopsia/poe_craftingrecipes | 0a38f0cdc005991a1ac0c51e334f3cb145f93c4f | 1d19e1f950fbda6b6e0980cf3ffb06438216384c | refs/heads/master | 2020-04-18T17:42:55.500604 | 2019-01-26T12:49:56 | 2019-01-26T12:49:56 | 167,662,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118,064 | py | mods = {
"Prefix":
{
"+# to maximum Life":
[
[1, '+(15 - 25) to maximum Life', '1<span class=\"alt\"></span>', ['am', 'bd', 'be', 'bo', 'gl', 'he', 'qu', 'ri', 'sh'], 'Default'],
[2, '+(26 - 40) to maximum Life', '6<span class=\"transmute\"></span>', ['am', 'bd', 'be', 'bo', 'gl', 'he', 'qu', 'ri', ... | [
"xanthic42@gmail.com"
] | xanthic42@gmail.com |
37a024c9f7fb0d090e1597c0898fc90ded145af4 | bf02d02dad536f48dff434aae2b737d58d9ef216 | /mysite/mysite/settings.py | 57fbd51bd69a684e35624379b4a2f0ff6f672a68 | [] | no_license | myselfsai/project1 | f59d090829782f46770a0d360a9f88928a8f720f | ac74079040beb2dd74dbefe7c2faba01126355b7 | refs/heads/master | 2021-01-15T12:02:12.123298 | 2020-01-24T05:13:28 | 2020-01-24T05:13:28 | 99,643,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"noreply@github.com"
] | myselfsai.noreply@github.com |
13daa325c738b21366101b6991ee7c31d9dcb811 | dd80be06f1d8ef04e94ea2fe1cc970a8d58a087a | /iniciante/python/1185.py | 2fa9b1f2f22f5e2af1cca983806bddfdcf93d53c | [] | no_license | quatroka/urionlinejudge | 600231e9ef9850cee8f1d7b6e3f635b030868165 | d94e777f95cbf95fa5d7455faba3aa5f4bac1cf3 | refs/heads/master | 2023-01-12T14:09:46.683526 | 2023-01-02T23:14:55 | 2023-01-02T23:14:55 | 56,419,228 | 3 | 1 | null | 2016-11-04T19:04:37 | 2016-04-17T04:40:11 | Python | UTF-8 | Python | false | false | 413 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
OP = input()
DATA = []
for i in range(0, 12):
DATA_AUX = []
for j in range(0, 12):
DATA_AUX.append(float(input()))
DATA.append(DATA_AUX)
RESULT = 0
COUNT = 0
for x in range(0, 11):
COUNT += 11 - x
for y in range(0, 11 - x):
RESULT += D... | [
"monteiro.leonardosantos@gmail.com"
] | monteiro.leonardosantos@gmail.com |
8284303e2d78a6089a9fd4c7ccbb37454b2e67c4 | 503d2f8f5f5f547acb82f7299d86886691966ca5 | /atcoder/abc200_c.py | e206350c17a0371913a9b0f7696b9550c9039895 | [] | no_license | Hironobu-Kawaguchi/atcoder | 3fcb649cb920dd837a1ced6713bbb939ecc090a9 | df4b55cc7d557bf61607ffde8bda8655cf129017 | refs/heads/master | 2023-08-21T14:13:13.856604 | 2023-08-12T14:53:03 | 2023-08-12T14:53:03 | 197,216,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | # https://atcoder.jp/contests/abc200/tasks/abc200_c
from collections import Counter
n = int(input())
a = list(map(int, (input().split())))
for i in range(n):
a[i] %= 200
cnt = Counter(a)
ans = 0
for i, v in cnt.items():
if v>=2:
ans += v*(v-1) // 2
print(ans)
| [
"hironobukawaguchi3@gmail.com"
] | hironobukawaguchi3@gmail.com |
e7c26e50bd6e4c25ab1b9b130752e585a2be96cd | 4d1614ba0104bb2b4528b32fa0a2a1e8caa3bfa3 | /exp/motivation/more_ports_exp/exp_result.py | bb856678abe4af31e07beb1358da96f738d59094 | [
"MIT"
] | permissive | Lossless-Virtual-Switching/Backdraft | c292c87f8d483a5dbd8d28009cb3b5e263e7fb36 | 4cedd1403c7c9fe5e1afc647e374173c7c5c46f0 | refs/heads/master | 2023-05-24T03:27:49.553264 | 2023-03-01T14:59:00 | 2023-03-01T14:59:00 | 455,533,889 | 11 | 4 | MIT | 2022-04-20T16:34:22 | 2022-02-04T12:09:31 | C | UTF-8 | Python | false | false | 2,972 | py | def load_result_file(path):
results = []
with open(path) as f:
r = Result()
for line in f:
if line.startswith('==='):
results.append(r)
r = Result()
continue
name, val = line.split(':')
if name == 'total ports':
... | [
"sarsanaee@gmail.com"
] | sarsanaee@gmail.com |
55e546f6119a07a5c3ec899c648a6d4fb3a1b7f0 | 1b29279e1517cb331657539825d0b6259582d00d | /hdrstats.py | b64985b3ecdbe30431cf81221b380822baaa8439 | [
"Unlicense"
] | permissive | OCHA-DAP/dap-scrapers | 1671a0f52ce19150dacae724394f893f87508f5e | 3beb34acfe5bf5f2fd7d2a15857264a1e65bcf08 | refs/heads/master | 2022-01-18T17:38:23.097214 | 2021-12-22T20:19:56 | 2021-12-22T20:19:56 | 13,861,733 | 4 | 2 | null | 2016-03-31T17:18:08 | 2013-10-25T13:42:20 | Python | UTF-8 | Python | false | false | 5,440 | py | import re
import lxml.html
import requests
import xypath
import StringIO
import messytables
#from hamcrest import equal_to, is_in
from orm import session, Value, DataSet, Indicator
import orm
import dateutil.parser
#import re
indicator_list = """
100106
38906
68606
89006
101406
98706
57506
38006
69706
103006
105906""".... | [
"dragon@scraperwiki.com"
] | dragon@scraperwiki.com |
443b2b91dc9daca8881db0e7a62c89c4519e69c5 | 5369083ed1f0feed1770783ca52fdc46da8a8ad3 | /scrips/jogo_da_velha.py | 8c3d7c7cd62d93ffc47a171fcbe9b8d5268dd8a5 | [
"MIT"
] | permissive | ericxlima/ILoveCoffee | 6e2b4ba3226fe3736a62bf20e77953f38d89c457 | 88a3fbc1a0233993870e2fdb59b614c5d6040f24 | refs/heads/master | 2022-12-23T13:14:32.681034 | 2020-10-02T20:24:42 | 2020-10-02T20:24:42 | 289,762,978 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,852 | py | import json
from time import sleep
class JogoDaVelha:
def __init__(self, nick):
self.nick = nick
self.other_nick = None
self.tentativas = 0
self.matriz = [[' ' for _ in range(3)] for _ in range(3)]
self.other_player()
if self.other_nick:
self.jogar()
... | [
"eric.vinlima@gmail.com"
] | eric.vinlima@gmail.com |
c344c8404ac954642b6f02f8f20bca296c731bae | 5fc6b5a420b9cb2a7d5102df55b0b5248f8199e1 | /pypykatz/commons/winapi/local/function_defs/live_reader_ctypes.py | aa2bae8f03b5ebc283d8a225b8ccda4bdf88894b | [
"MIT"
] | permissive | ASkyeye/pypykatz | 8e1c598d57017fd400b9a8d830ed314be7562b96 | 8ad07f2f6f0c4904f9a77c711f693d6c794a7fb4 | refs/heads/master | 2021-07-03T13:48:34.350145 | 2020-11-14T22:50:30 | 2020-11-14T22:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,565 | py | import os
import sys
import ctypes
import enum
import logging
from pypykatz import logger
from .ntdll import *
from .kernel32 import *
from .psapi import *
class WindowsMinBuild(enum.Enum):
WIN_XP = 2500
WIN_2K3 = 3000
WIN_VISTA = 5000
WIN_7 = 7000
WIN_8 = 8000
WIN_BLUE = 9400
WIN_10 = 9800
#utter microsoft... | [
"info@skelsec.com"
] | info@skelsec.com |
42b0472c75cbd948eeebe12a39aafb7d5520a233 | 6e1544e3fd4089d21930155d717739ea3b4a2243 | /boards/migrations/0002_topic_views.py | f7b47dc1c95160d7bcbfbbaa3e9fb8bbdd096156 | [] | no_license | Vivo1994/django-boards | 55c969d342ff8d317705a52e3b92c09d7f9b5a69 | 18ff5ac6540ddf105b3c10792724343b77c8579f | refs/heads/master | 2023-01-23T01:58:50.342384 | 2020-11-21T10:30:11 | 2020-11-21T10:30:11 | 314,772,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.1.2 on 2020-11-07 09:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('boards', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='topic',
name='views',
field=... | [
"aku@ankka.com"
] | aku@ankka.com |
79f62a7ee6eb1f0d6df192c475af8fec47ca39a9 | ea5af064f6583c4dc244627f67bf51a9119347a9 | /crypto.py | 4c6a27ad97768b78070c68886cdd9f351d4f73f8 | [] | no_license | celiyan/PyPassManager | 034c10cfe594d365822dc836e0f0143e02ac25e3 | fda994b44b7a003825e16bbcaffd07cf094e04b7 | refs/heads/master | 2022-12-19T19:51:29.714559 | 2020-10-15T05:16:37 | 2020-10-15T05:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | from Crypto.Cipher import AES
from os import urandom
def pad(txt):
"AES CBC requires the number of plaintext bytes to be a multiple of 16, so we pad it to the nearest multiple. Takes&Returns bytes object."
padding_length = AES.block_size - len(txt)%AES.block_size
# we pad with a character = to the padding length... | [
"replituser@example.com"
] | replituser@example.com |
2c54bc3cfc9044c00be36b2b9217dea19a54c10e | 25d24cc1caf00fc16fc8ddba88a92b05e2fcb25c | /hw1/bc.py | 10e902273eac0a1ee5d4e2c3d73ecaf0556d644d | [
"MIT"
] | permissive | doviettung96/homework | 037de25c8ee93b1c82b72c52f5c410b14413e721 | eb8e16f0fb4b2365408eadedf533dbf6d744bbe9 | refs/heads/master | 2020-04-25T05:14:51.512485 | 2019-04-25T01:27:49 | 2019-04-25T01:27:49 | 172,536,222 | 0 | 0 | null | 2019-02-25T15:52:44 | 2019-02-25T15:52:44 | null | UTF-8 | Python | false | false | 2,772 | py | import os
import pickle
import tensorflow as tf
import numpy as np
import tf_util
import gym
import load_policy
def build_model(training_data, env, config):
from keras.models import Sequential
from keras.layers import Dense, Lambda
from keras.optimizers import Adam
from sklearn.utils import shuffle
... | [
"doviettung96@github.com"
] | doviettung96@github.com |
c4f4c920eb95280fe07fd2f0e167237bbef954b7 | 3dd44550b479890bc13965b04f85ee568b22ba30 | /PREP/L7 - Lists&Tuples in Python-Part 2.py | bbb63062a1822401ecd4ea49a1336026a1158474 | [] | no_license | BedirT/Python-Class-2019 | 5e41b1dd76ddc86c2a5d023e3df0bf4c9afda5a2 | 97f30ca9ef7c565cbf32b257b34cfa2ae2eaf3f3 | refs/heads/master | 2020-04-22T14:13:02.619234 | 2019-04-19T22:13:27 | 2019-04-19T22:13:27 | 170,435,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | """
Lecture 7: Lists & Tuples Part 2
Momentum Learning
Introduction to Python
M. Bedir Tapkan
"""
# Prepending or Appending Items to a List
# You can't append one item, you have to append a list
# ls += 20 # Wrong
# Methods That Modify a List
# append
# ls.append(<obj>)
# We also can append a list
# extend
# ls.... | [
"mtapkan@na.edu"
] | mtapkan@na.edu |
ccbd6c3d4162bd05e08640574311e4d27fb3a947 | 7ac0a328386478c615e395d9b4761543fa30e68b | /server/appElevation/config.py | e813c62639fb6058fc3f256414b4f83033cafecf | [] | no_license | dzhen19/winterhacks20 | 2e6c47ad99bde51bfd0de3ae5f3b462cafb2c760 | 19b53bcf0e87c7b6fddefc7350790c6b5fb96f46 | refs/heads/main | 2023-06-23T21:04:48.293908 | 2021-08-02T15:15:09 | 2021-08-02T15:15:09 | 322,659,729 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | api_key="AIzaSyAHDNSaU9mGMTLk2gb1tuAUWWo6MkCRlhk"
| [
"dzhen001@gmail.com"
] | dzhen001@gmail.com |
9ea1070cae4c16524eb8794b5d79ee1e19e2d7f7 | a44dd48829823ce92522c855279a41f10bda1481 | /docker-pyspark-pytest/examples/streaming/streaming/constant.py | e9a2ef0350ed5c5ce4dd18d134b6bb33f371e3ee | [] | no_license | i05nagai/docker-sandbox | f6b56f5ad283c7e74b6f1127e20c1b367eb79909 | 5b9d46cd396d67ba241ec9bc4a5d7ce6ad1699d7 | refs/heads/master | 2023-09-04T12:52:03.444928 | 2023-08-28T11:24:36 | 2023-08-28T11:24:36 | 124,549,748 | 2 | 0 | null | 2023-08-28T11:24:38 | 2018-03-09T14:19:07 | C++ | UTF-8 | Python | false | false | 815 | py | import os
STREAM_READER_KAFKA_DEFAULT_OPTIONS = {
"kafka.bootstrap.servers": os.environ.get('KAFKA_BOOTSTRAP_SERVERS'),
"kafka.security.protocol": "SASL_SSL",
"kafka.sasl.mechanism": "PLAIN",
"kafka.ssl.truststore.location": os.environ.get('KAFKA_SSL_TRUSTSTORE_LOCATION'),
"kafka.ssl.truststore.pa... | [
"i05nagai@gmail.com"
] | i05nagai@gmail.com |
3407ab894c95d7feda5e091ba5fdbbe5e030a782 | 229983fdd1475a4e38a24aeb97499fda7175622d | /moye/apps/users/apps.py | 423ae4e5abf0d0efad2a88b1a5cef151fcfccf62 | [] | no_license | shangshanzhishui/moye | 651a2e7ba6ae931531e0f8c3b74d4b5b88b9a891 | 0168316f313475f0bfcda06e2faf9e50dfd83bc1 | refs/heads/master | 2020-03-09T00:24:27.933179 | 2018-04-07T02:13:58 | 2018-04-07T02:13:58 | 128,487,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | # _*_ encoding: utf-8 _*_
from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'
verbose_name = u'用户信息'
| [
"photoncomputer@163.com"
] | photoncomputer@163.com |
fe349e425c50cb0f517d63394f143894ac478af4 | 12e90368507792ef0ed9152d0b23852979455f95 | /src/run.py | a4a573d5a364ca56397c4bae87218ec87c162b40 | [] | no_license | KomorIksDe/KocchiBot--Twitch | a8dd8c670b4924e94729b26b86d5d61de47e901f | 075332eae8a569a12e1e729992550f5be8ed14ac | refs/heads/master | 2021-01-09T05:56:54.845886 | 2017-02-03T21:37:49 | 2017-02-03T21:37:49 | 80,871,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import socket
import string
import time
from cfg import *
from bot import readMessage
sock = initSocket()
start = int(time.time())
while True:
for line in str(sock.recv(1024)).split('\\r\\n'):
parts = line.split(':')
if len(parts) < 3:
continue
if "QUIT"... | [
"noreply@github.com"
] | KomorIksDe.noreply@github.com |
d235aec102d27ca4fae3b8e5d215f502675ae6fb | 17c366bf8aa9fed59fb3d91db06142860cb9ce38 | /nbs/examples/mnist_blocks.py | 14043be821f6c97c3bf782edb3b9b4b097f38029 | [
"Apache-2.0"
] | permissive | dienhoa/fastai | 3f4884f9fb96f9e5199e33b959478dfa0bbfa0d4 | fdce0330e05ae02db90c3456f9fc2827c3cf86a0 | refs/heads/master | 2022-04-14T06:27:52.994595 | 2022-04-13T21:24:27 | 2022-04-13T21:24:27 | 154,803,492 | 0 | 0 | Apache-2.0 | 2018-10-26T08:38:44 | 2018-10-26T08:38:43 | null | UTF-8 | Python | false | false | 422 | py | from fastai.vision.all import *
splitter = GrandparentSplitter(train_name='training', valid_name='testing')
mnist = DataBlock(blocks=(ImageBlock(PILImageBW), CategoryBlock),
get_items=get_image_files, splitter=splitter, get_y=parent_label)
if __name__ == '__main__':
data = mnist.dataloaders(unta... | [
"j@fast.ai"
] | j@fast.ai |
a1b2a37c189f9f9b1cfd4951375d3f8f54555c37 | b05de4075070be000ae46e83aa2f8c16dba92873 | /HW3/rkolhe_Q4.py | 9477e602a00de6d616d81c8d58270b0ec4b7fecc | [] | no_license | indu2407/ncsu-csc591-privacy | 5ef2b51233f77457a1627d3d605b13c62feb9cb4 | 6481a89124ec8046f4af9d949c2f2144bda05d12 | refs/heads/master | 2023-03-15T02:25:30.380189 | 2020-03-16T01:18:28 | 2020-03-16T01:18:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | """Reads a har file from the filesystem, converts to CSV, then dumps to
stdout.
"""
import argparse
import json
from urllib.parse import urlparse
from tld import get_tld
import networkx as nx
import matplotlib.pyplot as plt
from adblockparser import AdblockRules
def readfile(filename):
rules = []
with open(fil... | [
"rutvik.kolhe97@gmail.com"
] | rutvik.kolhe97@gmail.com |
e84ec7fc630e4899800b726dad66cfa35fc0a9bc | bf9059d1a04ba37d0e6548c5f09481aac5aa3b2e | /lesson/4.4.MaxCounters.py | c7f117fe90fc75fa50dbbbc27778930a18fdfddc | [] | no_license | peistop/Codility | d61539b3c2c354370a90b23a42d6a60eda7a434a | d200ac8820d4a966e2b3f6e43e3d2d6bd2756755 | refs/heads/master | 2020-03-23T04:13:17.023669 | 2018-09-14T01:36:52 | 2018-09-14T01:36:52 | 141,070,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | """
1. MaxCounters
Calculate the values of counters after applying all alternating operations:
increase counter by 1; set value of all counters to current maximum.
Medium: 100
"""
def solution(N, A):
# write your code in Python 3.6
if len(A) == 0:
return []
counters = {key + 1: 0 fo... | [
"peistop@itri.org.tw"
] | peistop@itri.org.tw |
703a4ce0e381a16155fc695889d3ab6e62f0261b | 2cee87831997f906ff0b1972cb72e294eadabb56 | /dags/my_dag.py | dc59b47a0734921c1e23856350dc63fe2ed3ba6b | [] | no_license | Cattleman/airflow_play | 2c643b5021379c8974111cc83466ef7386a09016 | b64b2ccabe4eac79aee1986540c8071f9df5cf30 | refs/heads/master | 2022-07-24T21:29:03.949536 | 2020-05-17T00:24:57 | 2020-05-17T00:24:57 | 264,552,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | # Airflow related
from airflow import DAG
from airflow.operators.python_operator import PythonOperator
from airflow.operators.bash_operator import BashOperator
# other packages
from datetime import datetime
from datetime import timedelta
# DS stack
import pandas as pd
import numpy as np
import matplotlib.pyplot as pl... | [
"i.f.hensel@gmail.com"
] | i.f.hensel@gmail.com |
84be026c4a9decd8c8cbeb0044e6269de46348c9 | c383840367c09a4aa3762d224b17b742fe53eb31 | /GANs_Advanced/DiscoGAN/train_DiscoGAN_org.py | 081a29ab949a0e8e7a706e48f2d192a1060b2e74 | [] | no_license | qzq2514/GAN | 04f3f1ff6437d6805369f28b207a8f726a112d11 | a313deb08884c2ce60d4fc3834b79a8518e38f44 | refs/heads/master | 2020-09-21T17:32:00.913453 | 2020-01-17T05:02:18 | 2020-01-17T05:02:18 | 224,866,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,800 | py | from tensorflow.examples.tutorials.mnist import input_data
from tensorflow.python.framework import graph_util
import tensorflow.contrib.slim as slim
from DataLoader import Pix2Pix_loader
from net.DiscoGAN import DiscoGAN
import tensorflow as tf
import numpy as np
import scipy.misc
import os
os.environ['CUDA_VISIBLE_DEV... | [
"qzq2514@outlook.com"
] | qzq2514@outlook.com |
d269849313594626cefa3b6fccafcc19ca0a84c5 | ab951846417e1fa57d12a9f28975c723940ef265 | /main.py | 4dd179705898aa647726584c587462e0ef28f5d6 | [] | no_license | arivvid27/Task-Manager | 72991eb8e5d647efcbf94fa58651a8db4444d1e7 | a2e51821c0581b702ccd338b3cd503d4e15d151d | refs/heads/master | 2023-06-11T07:20:29.411924 | 2021-07-02T20:17:34 | 2021-07-02T20:17:34 | 383,537,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | import os
from replit import db
from time import sleep
Admin_user = os.environ['Admin_user']
Admin_password = os.environ['Admin_password']
username = input('Account Username? > ')
if username == Admin_user:
pass_check = input('What is the password? > ')
if pass_check == Admin_password:
print("Access Granted")
o... | [
"63670445+arivvid27@users.noreply.github.com"
] | 63670445+arivvid27@users.noreply.github.com |
4094d314cd1e46974e37b771806677fe883de139 | 7801f4405de1b21f40dcd3dc07d4dfcc512a5e0d | /backend/base/models.py | af602bad05d8f769ae45015d6e4bac4a25957517 | [] | no_license | ioannisgkouzionis/surgery-management | 9420c87ff7a17edd929f7900b545a403ce2a07d0 | b059cde784607c26cb770fcfc630a482c90a606c | refs/heads/master | 2023-04-27T11:24:22.899106 | 2021-05-18T00:08:28 | 2021-05-18T00:08:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | from django.db import models
from django.contrib.auth.models import User
class Staff(models.Model):
id = models.AutoField(primary_key=True, editable=False)
firstName = models.CharField(max_length=200, null=True, blank=True)
lastName = models.CharField(max_length=200, null=True, blank=True)
email = mod... | [
"pearce.p.allen@gmail.com"
] | pearce.p.allen@gmail.com |
cb4ed431777e8b10a7599b169d74a3f947751042 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v5/googleads-py/tests/unit/gapic/googleads.v5/services/test_ad_service.py | 8c1b9a30e2d2d599c646bfa72dbe5b188716250f | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,485 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
e3890f86efe95e867f60a04ad1fb1640b5b9c625 | 6a253ee7b47c5f70c826bbc97bb8e33cd1dab3b6 | /4.Working with Dask Bags for Unstructured Data/Filtering vetoed bills.py | f6f1b993c692dc6f8cda3afb05d26a40595ed1aa | [] | no_license | Mat4wrk/Parallel-Programming-with-Dask-in-Python-Datacamp | 19a646d6d16ff46173964c25639ff923407c8f32 | 535f69b78adb50cffc7f402f81ddff19f853eea1 | refs/heads/main | 2023-03-06T19:52:39.495066 | 2021-02-13T13:27:06 | 2021-02-13T13:27:06 | 338,565,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # Filter the bills: overridden
overridden = bills_dicts.filter(veto_override)
# Print the number of bills retained
print(overridden.count().compute())
# Get the value of the 'title' key
titles = overridden.pluck('title')
# Compute and print the titles
print(titles.compute())
| [
"noreply@github.com"
] | Mat4wrk.noreply@github.com |
fb4d4b99fef64675afb65af92c4e6b71f2d5ac46 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/M/markbrough/afd_1.py | 711852c3ee8cd7a769192a8717034ae07c1ec594 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,542 | py | import scraperwiki
from lxml import html
from urllib2 import urlopen, Request, URLError
import re
import string
URL = "http://www.afd.fr/base-projets/listerProjets.action?page=%s"
def cleanURL(data):
expression=re.compile("(\S*);jsessionid=(\S*)\?(\S*)")
d = expression.match(data)
return d.group(1)+"?"+d... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
eec978dc429c647715528b35b8aaba6d196cfb81 | 6e1887eaa730ff764e6cff692a07e85cc2713e83 | /tests/test_run_aster_solver.py | 42c000e5b732a1ef02cb3f5831f924793c27c829 | [] | no_license | zhanxiangqian/salome | 145759ec75698d49ab686ed196f78b815f42414d | 62592c0f17be823caad8ea71cd52841acbab6185 | refs/heads/master | 2021-01-23T07:44:50.832028 | 2017-04-14T09:29:47 | 2017-04-14T09:29:47 | 86,442,922 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,804 | py | """Run the Aster solver and control the process execution.
"""
import os.path as osp
import unittest as UT
import subprocess as SP
import aster_s.astk as AS
import salome_aster_tests as ST
from aster_tests import build_srv
RUNNING, ENDED, UNKNOWN = [object() for idx in range(3)]
class Process(object):
"""Imi... | [
"1074919969@qq.com"
] | 1074919969@qq.com |
2522f1e735fd1af2dc665b46ccf68c5b5980e0a3 | 7223da9c7d2fb4d00b8323657aec81926ec03cdb | /ex31.py | 479aa8a60372bf6ee8120ee7a900d59895827f49 | [] | no_license | diango/Lessons | dc72bf5fd2a76d393147a4721ad8407da8f11838 | 210e2e5a99cd50daaf1fb00ee9e618171ba7e2d9 | refs/heads/master | 2020-03-08T04:25:38.659824 | 2018-05-01T19:23:40 | 2018-05-01T19:23:40 | 127,921,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | print("""You enter a dark room with two doors.
Do you go through door #1 or door #2?""")
door = input("> ")
if door == "1":
print("There's a giant bear here eating a cheese cake.")
print("What do you do?")
print("1. Take the cake.")
print("2. Scream at the bear")
bear = input("> ")
if bear =... | [
"maraberouz@hotmail.fr"
] | maraberouz@hotmail.fr |
ccd7c753cf3f1a7e04ca7b256c5f92fffcc69c25 | 3b2e30a6f082b4b21818eae44ea2f55fc25e7aa2 | /project/cart/views.py | 51a36c3411656d1a5ebb2b1e76ab2d20290d4d53 | [] | no_license | alekseykonotop/online_store_django | d9e9941ddedd783b38b5592ab2a3af5e35f0c2ee | 183cb3680b5b8f90457ea144dafaa96c13a3433d | refs/heads/master | 2020-07-30T09:13:57.449081 | 2019-11-07T19:46:58 | 2019-11-07T19:46:58 | 210,168,644 | 0 | 0 | null | 2020-06-05T23:07:09 | 2019-09-22T15:19:34 | JavaScript | UTF-8 | Python | false | false | 942 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.views.decorators.http import require_POST
from store.models import Product, Category
from .cart import Cart
from .forms import CartAddProductForm
@require_POST
def cart_add(request, product_id):
cart = Cart(request)
product = get_obj... | [
"alekseykonotop@gmail.com"
] | alekseykonotop@gmail.com |
f1d243252c282fc20b9b21eb64bdaddf232ed8df | 89adb97f457c4730275d2eb4ac2e47e4860b878f | /mnoogle/jobs/migrations/0002_auto_20190409_0602.py | d4bfc21933ff31b84cee43bc5d41996c024ad5e1 | [] | no_license | ajay-banstola/Mnoogle | 4bfe3da5bed62f2ec87c456108c883f1bf8dac8e | 177f290d7ef8d080d9432630fcf29d0df78162ad | refs/heads/master | 2022-10-29T21:05:20.887692 | 2019-04-10T15:55:50 | 2019-04-10T15:55:50 | 165,762,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # Generated by Django 2.1.7 on 2019-04-09 00:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('jobs', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='jobs',
old_name='Job_Id',
new_name=... | [
"ajay.banstola@gmail.com"
] | ajay.banstola@gmail.com |
e39c0eb015805450cfadbbbadee7c3c216b162cf | 0e1fbfa23989dd5679d272b12c1e3d2080f2feb2 | /tests/data/config/t.py | 9f085ae675b33900f73434c3a7d631f7f24fb98d | [
"Apache-2.0"
] | permissive | LuGuo1920/mmcv | dae1003f63ce23d5cfc58b27c0c620a61cc5323e | 76d9bf1efb052785fea95cb157288a102976a49e | refs/heads/master | 2023-05-30T08:11:36.148373 | 2021-06-28T09:31:36 | 2021-06-28T09:31:36 | 381,047,895 | 1 | 0 | Apache-2.0 | 2021-06-28T13:49:28 | 2021-06-28T13:49:27 | null | UTF-8 | Python | false | false | 173 | py | _base_ = ['./l1.py', './l2.yaml', './l3.json', './l4.py']
item3 = False
item4 = 'test'
item8 = '{{fileBasename}}'
item9 = {{ _base_.item2 }}
item10 = {{ _base_.item7.b.c }}
| [
"noreply@github.com"
] | LuGuo1920.noreply@github.com |
de9a0e66038745dc64eb6405022bb285c909ecff | a4ac472bf2da27c008701bec8fd6d127a8d82279 | /public_html/textmine.py | 68c899bd21ef41a6738a1a9810bf9be855107e9b | [] | no_license | LeviKuperus/MaurisAnabolic | 358d346428e7cd03f239aea41eca1f90a4350c80 | ee64ba408e0e8274fc143a641f7a8593eb73545e | refs/heads/master | 2021-01-19T08:55:02.756897 | 2014-06-25T12:20:11 | 2014-06-25T12:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | #!/usr/bin/env python
# numpy and biopython are required -- pip install numpy biopython
# -*- coding: utf-8 -*-
from Bio import Entrez
from Bio import Medline
MAX_COUNT = 10
TERM = ("mtor")
abstracts = []
titles = []
def fetch_abstract(pmid):
handle = Entrez.efetch(db='pubmed', id=pmid, retmode='xml')
xml_d... | [
"levikuperus@hotmail.com"
] | levikuperus@hotmail.com |
f178b663d0ee93882d7f0f23f79762c86c9a62b3 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/ReverseRepo/YW_NHG_SHHG_019_GC028.py | 697b950c9b5b4c9f6d0da0feb24a47bcfb16928d | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
a7541c57545e14ba213ebab9391759bb91f25980 | 1165df824267975944decfd83baea842c94429bd | /app/app/settings.py | f8c8875b543938a1e17b7aac10fddd0a36d41d2c | [] | no_license | Salvoid/classroom-assistance-system | 79721372aa7c93d88aef68bd8c61fdbfd92cb339 | 4212b5348f6384d4892643347b2a6f9d6eff006d | refs/heads/main | 2023-04-20T07:20:52.030856 | 2021-05-20T09:54:06 | 2021-05-20T09:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,793 | py | """
Django settings for pp
Generated by 'django-admin startproject' using Django 2.2.18.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Build paths i... | [
""
] | |
26cb68b12f6852ef885417963ed3f227dde4232b | ad6681ec221fddc78956d45182f22bd8f1aae8e1 | /基础班/python基础班作业/zuoye5.py | d7778e78f4774e78cf7432ba9bdc60433604db33 | [] | no_license | caoxp930/MyPythonCode | cb2428fd7078100df0b118f64713b7db76fe1e23 | 6b7e17b23fbaddcc69812ba7a14a0a5ad548ad4b | refs/heads/master | 2023-03-15T01:22:17.847582 | 2021-03-02T12:37:09 | 2021-03-02T12:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # -*- coding: utf-8 -*-
for i in range(1,10):
for j in range(1,i+1):
print(j,'*',i,'=',i*j,end='\t')
if i == j:
print() | [
"jxxaizwt@icloud.com"
] | jxxaizwt@icloud.com |
c8214a41a82f875f402de97e2db11c439208e33c | cf2ec51dfcb2d6777b5045137d2bcfe62afdec8c | /upvcarshare/core/templatetags/core_tags.py | 9e4b4acedbe5f435252e61b22be188f25d1f1041 | [] | no_license | morrme/upvcarshare | c4b8b1587370e7931d8b5d6c78b948188617795c | 189c91c608d0b61f6b68ef5c49a2546fdbbe38a2 | refs/heads/master | 2021-01-22T22:07:52.611880 | 2017-05-29T14:57:36 | 2017-05-29T14:57:36 | 88,732,669 | 0 | 0 | null | 2017-04-19T10:33:58 | 2017-04-19T10:33:58 | null | UTF-8 | Python | false | false | 1,295 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function, absolute_import
from django import template
from django.conf import settings
from django.http import QueryDict
from journeys import DEFAULT_GOOGLE_MAPS_SRID
from journeys.helpers import make_point
register = template.Library()
@regist... | [
"marcosgabarda@gmail.com"
] | marcosgabarda@gmail.com |
698600cd6ef3db2cc2a39fdfc8019f5de78b9103 | c24c0879b5498e6a4e68da58acfc459900370ea5 | /Common/Message.py | 9fc1d9b9114efd2a63552f24a2ade744fa0784a6 | [
"MIT"
] | permissive | RajivSIyer/Smart-Chat-Application | 1ddec9eca524b7e5453dea9f6fdabe88da541b5a | fbfd8c45397fa27bc37bd6383ff01ca770369396 | refs/heads/main | 2023-08-30T23:25:42.273109 | 2021-10-07T05:35:30 | 2021-10-07T05:35:30 | 407,154,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | import json
import time
class Message(object):
def __init__(self, datetime, from_user, to_user, msg_str):
self.datetime = datetime
self.from_user = from_user
self.to_user = to_user
self.msg_str = msg_str
def to_Json(self):
return json.dumps(self, indent=4, default=self.... | [
"rajiviyer97@gmail.com"
] | rajiviyer97@gmail.com |
7912959123d546558f08965faeb681242c792b57 | 7995802110b659d5bea414dee95beaec0ef6a399 | /blog/migrations/0007_department_project.py | 27ce9e6402b267ecd846f025da5a917fc72c88ea | [] | no_license | jonjeden/jje_blog | 120c63c414f87356305c0820e9844cf7837a63de | f3eef982fa2e7ed10f73c9a3a8abc36dd1469de8 | refs/heads/master | 2021-01-18T12:00:14.330366 | 2016-12-15T19:19:34 | 2016-12-15T19:19:34 | 68,279,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-11-10 06:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_auto_20161107_2231'),
]
operations = [... | [
"jonjeden@gmail.com"
] | jonjeden@gmail.com |
188fdf6b0b163a2125f6a2108407d757622cc485 | 2ae26de885b7e64525028cf3d13be6cb43d39b44 | /xiaoxiang/Python人工智能(小象学院)/4、Python机器学习1/lect04_codes/qhp_Test_proj/main.py | d011f1ef095e9aa84f643a4e850da2342a736ff4 | [] | no_license | cheneyshark/Learn_Myself | 79c25e8fabc224343937d97bff644b0a6d565ffc | df69ac077c52ff01807aa34235569d1205a78c25 | refs/heads/master | 2021-03-16T05:48:49.707129 | 2018-03-12T11:06:00 | 2018-03-12T11:06:00 | 112,348,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | # coding: utf-8
"""
作者: qhp
版本: 1.0
日期: 2018/03
文件名: main.py
功能: 主程序
任务:使用scikit-learn建立不同的机器学习模型进行手机价格等级预测
"""
import os
import config
import pandas as pd
from sklearn.model_selection import train_test_split
from matplotlib import pyplot as plt
import seaborn as sns
impor... | [
"qihepeng@qihepengdeMacBook-Pro.local"
] | qihepeng@qihepengdeMacBook-Pro.local |
6895eb25c9f06392b002af645b8194900af063e1 | 01d070d9b1df07828cceafe079450186d7e1ad76 | /npy/lsh_server.py | 17f30299eddb00aa02a9c5ae9bc7c8b7b3321f62 | [] | no_license | ivychill/face_rec_server | 781f05c85d5d205bf9f9b39940ad94d7d4694960 | 2b736a581cb13080ce75f2d9f0f86b696e69fc41 | refs/heads/master | 2020-07-01T13:39:27.117998 | 2019-08-08T05:38:03 | 2019-08-08T05:38:03 | 201,185,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,996 | py | # -*- coding: utf8 -*-
# ! /usr/bin/python
'''
ChangeLog:
#2018-7-19 为工作线程加保护,避免异常情况下,无法响应
#2018-08-02 根据Hash Server接口设计V1.0文档修改
'''
from __future__ import division
import numpy as np
import falconn as fc
import time
import threading
import zmq
import sys, getopt
import pickle
import collections
import traceback
impor... | [
"1099661897@qq.com"
] | 1099661897@qq.com |
699c3359bb35aef01fa3958e089dbe89a112baae | 8728e817b9f8faac0f2bcf3ee5e9980b148b735a | /journal/models.py | 86ca7270400988150eead6bb34926b0a14289ba2 | [
"MIT"
] | permissive | anjaliujjainia/lifetab | 9b9c06879b7ba07ab187bae09cf509222dbf83d5 | 186481b262069db65aa670cfa6a181813ffbb4b0 | refs/heads/master | 2021-08-25T07:00:55.938945 | 2015-01-26T18:31:45 | 2015-01-26T18:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from django.db import models
from model_utils.models import TimeStampedModel
class Entry(TimeStampedModel):
FEELING_CHOICES = (
('HAPP', "happy"),
('SADD', "sad"),
('NOST', "nostalgic"),
('CURI', "curious"),
('WOND', "wonderful"),
)
is_protected = models.BooleanField(default=False)
title = models.CharFi... | [
"devs4v@gmail.com"
] | devs4v@gmail.com |
ccb254e11f8e18de6c2d464655ee04f09aeeab04 | 007c1bb62ee70fb387b24bac9387da90745a85db | /inelastic/direct_geometry/tests/dgreducetestmerlin.py | 59fd074e376de7fcda16efd860473b6252660fce | [] | no_license | mantidproject/scripts | fc14040f0674fda31b28bbc668a923fecc00fe99 | f5a7b79825c7bdd8977e1409967bce979e4ca690 | refs/heads/master | 2021-01-17T11:36:00.426451 | 2017-08-25T13:01:26 | 2017-08-25T13:01:26 | 3,379,430 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | from qtiGenie import *
from PySlice2 import *
inst='mer'
iliad_setup(inst)
ext='.raw'
#mapfile='one2one_094'
mapfile='rings_113'
#det_cal_file must be specified if the reduction sends out put to a workpsace
cal_file='6399'
#load vanadium file
wb_run="6399"
LoadRaw(Filename=wb_run,OutputWorkspace="wb_wksp",LoadLogFiles... | [
"jon.taylor@stfc.ac.uk"
] | jon.taylor@stfc.ac.uk |
50a5d75f3d7217583197bf761b30017f22f0c514 | 0f53f71e67b43223acb0f0159c9ee6f41f64240a | /SentimentAnalyzer.py | 3bdf34e84a5c4472d90d16ca1f3a161ab628ce55 | [] | no_license | sarmadabbas80/Machine-Learning-Examples | ab964457bf3a3cd911eed4c2228b8435d741134d | fe7f8dc59d272533f7ea3766743a4fb613d51d10 | refs/heads/master | 2020-03-08T01:23:37.732619 | 2018-05-08T01:14:44 | 2018-05-08T01:14:44 | 127,829,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | import tweepy
from textblob import TextBlob
consumer_key = 'mba5W3n1iJ3K2kFw44aV7cLHi'
consumer_secret = 'QeRcuB2xabQpFVPMQEinCMKVfIOuzAU1hQkgBdDwW1J23bzyWV'
access_token = '272531257-MPf9Ag88Zmlih2c4454h8XpgzR7HTQMELQe0UL4o'
access_token_secret = 'ZDQ4xOFLMfiKFqk697amgLSp81YW5U2fFv9JUak6lXf8Q'
auth = tweep... | [
"sarmadabbas@gmail.com"
] | sarmadabbas@gmail.com |
993373ece26b6d2f719365e62ecfd6b8c80ba87e | dfd9e07ad1e6a7e7a1d864bde4bb2ec3e391a576 | /problems/0001-0010/0001-two-sum/brute-force/solution.py | eadd84699c683e4f8ab4c98a3f785dc101dcb92c | [] | no_license | shc261392/leetcode-solutions | 4210e83553420f91e8dc2631d10290e84172e93f | 57052e3c4bf584129c5ef6468051bc622f1259a4 | refs/heads/master | 2020-12-31T09:00:16.804893 | 2020-02-14T16:22:55 | 2020-02-14T16:22:55 | 238,964,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | class Solution:
def twoSum(self, nums: 'List[int]', target: 'int') -> 'List[int]':
for index_a, value_a in enumerate(nums):
for index_b, value_b in enumerate(nums):
if index_a == index_b:
continue
if value_a + value_b == target:
... | [
"shchien@dt42.io"
] | shchien@dt42.io |
bfdf797a277a954891aa63c31ebe81a0ff9bd739 | 943db78bc97cab709cbb17e32b8172606d69b360 | /async_handsmart.py | b92a26e6385b6afd68f1a5d3847ce41419d10c80 | [] | no_license | ns1202-j/hnd | bcb6e76c83037b3f9d298732c0831d495d44ba08 | 7ab993883580cfb727bb6023953736e18a6149bc | refs/heads/master | 2023-06-11T20:07:16.500038 | 2021-07-09T21:07:12 | 2021-07-09T21:07:12 | 384,523,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,305 | py | import time
import requests
import board
import busio
import asyncio
import threading
import urllib.request
import RPi.GPIO as GPIO
import adafruit_vl53l0x
from adafruit_vl53l0x import VL53L0X
import threading
from threading import Thread
GPIO.setup(26, GPIO.IN) # señal entrada
GPIO.setup(11, GPIO.OUT) #señal apagado... | [
"jesus@novas-soluciones.mx"
] | jesus@novas-soluciones.mx |
b7ab56752c0350c54b5d11f7ff3d52afaae01b29 | 1db72cee9afd1d013205466478a67c902a0c3930 | /firstapp/urls.py | 445eb9f006f5d76cae88e982e94c91c1a4ba1483 | [] | no_license | kawiraanitah/Rendering-basic-html-using-django | f9bb41ca9f437d4653ee130b75f2a94eb37cce03 | cc940fbcef8fc49b9626349f52b7add446b3971c | refs/heads/master | 2021-07-21T19:35:25.882325 | 2017-09-18T13:56:15 | 2017-09-18T13:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | """anitahkawira_django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home... | [
"annitahkawira@gmail.com"
] | annitahkawira@gmail.com |
56d6ad634bebea67a2301e8f6388da48db7a0e97 | 64fae387fd7170e1395edbf8467d4dc04a0258f9 | /event_application/urls.py | 7334e82640445385ba4cfd3aa16ce70a2bf77e7b | [] | no_license | nspilman/personal-django-server | 79d5dc01a5861e5dfa889b235d1be4fa559b5bce | 4a7a09012b06880fb2f0d63a01c820bddf604eb6 | refs/heads/master | 2022-12-08T06:11:22.459358 | 2021-01-03T06:15:28 | 2021-01-03T06:15:28 | 179,366,344 | 0 | 0 | null | 2022-12-08T03:12:32 | 2019-04-03T20:35:58 | JavaScript | UTF-8 | Python | false | false | 850 | py | from django.urls import path
from django.conf.urls import include
from django.conf.urls.static import static
from django.conf import settings
from . import views
urlpatterns = [
path('',views.AllEvents.as_view()),
path('users/', views.Users.as_view()),
path('login/',views.Login_Class.as_view()),
path(... | [
"Nate.Spilman@gmail.com"
] | Nate.Spilman@gmail.com |
2a12af5857a968fd024dccf5178760d33619d0ea | 6aa7ff9aaa9be965ac2969684680920782de711b | /djangoProject/api/model/guard/studentsGuard.py | c1c5a013134f47d59eb87f6536a55c08e564509f | [
"MIT"
] | permissive | jorgejimenez98/django-guadria-obrera-uc | 80d67cb4590622f16c69ea93c5c478ff7f920d8c | d0095250613694c969d471cb1bb35635f546d82e | refs/heads/master | 2023-07-26T12:03:49.669730 | 2021-09-03T09:46:25 | 2021-09-03T09:46:25 | 402,413,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from django.db import models
from ..person.student import Student
from .guard import Guard
from .dutyShift import DutyShift
class StudentsGuard(models.Model):
guard = models.ForeignKey(Guard, on_delete=models.PROTECT, related_name='studentsGuards')
assistance = models.BooleanField(default=False)
... | [
"georgeguitarra07@gmail.com"
] | georgeguitarra07@gmail.com |
a6a06bdd0516202480eb8748f797f82b9b0b9b49 | 56515c399947a9078a9b6b73ecaa7b455aa61a3a | /venv/Scripts/easy_install-script.py | b8424e6bb0b74845e7face3b62816515157a8884 | [] | no_license | ishimtsev/Secret_sharing | 0a6a52e3b326fb3db4898af88f2503d4e05366ee | 6a609802e957a326ed1e7ac40e11217ea9725fc0 | refs/heads/master | 2020-09-14T19:29:37.478861 | 2019-11-21T17:42:58 | 2019-11-21T17:42:58 | 223,230,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!C:\Users\Ivan\PycharmProjects\Secret_sharing\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\.p... | [
"ivan199863@gmail.com"
] | ivan199863@gmail.com |
122734a9363ec340c61f73c2a29c53e1ee6cf657 | c204100919a3711059b9155d7b995109055e468a | /authorization/serializers.py | 2659ede4240ab284a855ef6591ee599650e784c4 | [] | no_license | Mercyplus/Authorization | 8f439e04f34c2490cec1ee218868816204bfd0ee | 898a8007f2d98e8c9fd9f094a99c9dc11549d084 | refs/heads/main | 2023-04-03T02:11:09.972190 | 2021-04-06T16:07:23 | 2021-04-06T16:07:23 | 355,245,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | import os
import hashlib
import binascii
from bip32utils import BIP32Key
from eth_keys import keys
def generate_memo(m):
memo_str = os.urandom(8)
m.update(memo_str)
memo_str = binascii.hexlify(memo_str + m.digest()[0:2])
return memo_str
def init_profile(user, is_social=False, metamask_address=None,... | [
"sobachka1966@mail.ru"
] | sobachka1966@mail.ru |
2d6f42b49f96827079ca82d4e83b489775bfc4a8 | f7c45b28a126ed15e2b5d09a4a657111a2b04582 | /login.py | 9c385bcd7b0cae7a1817245048ba3bf36ed549a2 | [] | no_license | dhivyaganesan14/MEDIPASS | a0509560790744bb257edeebf425daf2e69f2f69 | 0c73e17b7b842a769e95eef3a5d33542e37325b2 | refs/heads/main | 2023-06-21T04:44:36.593922 | 2021-07-22T04:17:11 | 2021-07-22T04:17:11 | 388,323,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | from flask import Flask
from flask.ext.login import LoginManager
from pymongo import MongoClient
from flask.ext.wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired
from flask import request, redirect, render_template, url_for, flash
from flask.ext.login import logi... | [
"57910148+dhivyaganesan14@users.noreply.github.com"
] | 57910148+dhivyaganesan14@users.noreply.github.com |
0c06a17c693143b6e7567310dfe57772ba8c8838 | 0c84329f5d1e4e9070cece982ac827644d8a1893 | /venv/bin/django-admin.py | 0b14e2b786d4bbc36959ba6df3a029dc36316065 | [] | no_license | Tiyas-13/LC | 955deece0ecf1fc42e6a5d5fcc287ff0fca63679 | ef45b44198532173c37793b9b0e8905ad7739f57 | refs/heads/master | 2020-06-09T16:30:02.176987 | 2019-07-02T22:10:50 | 2019-07-02T22:10:50 | 193,467,920 | 0 | 0 | null | 2019-07-02T22:10:51 | 2019-06-24T08:44:05 | Python | UTF-8 | Python | false | false | 137 | py | #!/home/hp/LC/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"deytiyas@gmail.com"
] | deytiyas@gmail.com |
1af5d6920fedf21d7e84131671e71e2e543d90e3 | 7b09b290a99dd6901991f2b64c73e29011c768ff | /FileDeleter/FileDeleter.py | 89660bba4c34e76c0675185e5fb33532bed35ead | [
"Apache-2.0"
] | permissive | zjutkz/UsefulPyScript | 5e637b99ec352148417cabe5d263c7d9071082e6 | e0cf077b71ff352e5e48d4b4ab54aa297ffe1d02 | refs/heads/master | 2021-01-23T06:26:08.051782 | 2017-06-01T06:55:05 | 2017-06-01T06:55:05 | 93,023,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
import os
import sys
import logging
def delete(path):
delFile(path)
def changeEnv(path):
os.chdir(path)
def delFile(path):
if len(path) != 4:
logging.error('Please input the right paramters')
sys.exit(0)
changeEnv(path[1])
hitCount = 0
for parent, d... | [
"kangzhe@weidian.com"
] | kangzhe@weidian.com |
270d5dd6dc7d1ac5dfdf0eeb82eaa30901b3cb1c | 18dba2f82e17873e5e8161e74bc714ef88b09b36 | /realestate/estatebase/migrations/0044_auto__add_localitytype__add_field_locality_locality_type.py | a5aaef7a8313514f2c8f3e1d85d08d0dbfdeaacf | [] | no_license | sanchellius/estate-agent | 8013573624b62ea3b6362fa0c22edf8371ca6966 | 53c15c2f2c970bd432ae579b5aa6f76ab2fbac49 | refs/heads/master | 2021-01-17T21:15:35.988578 | 2016-07-25T21:51:24 | 2016-07-25T21:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,365 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'LocalityType'
db.create_table('estatebase_localitytype', (
('id', self.gf('djang... | [
"picasso75@yandex.ru"
] | picasso75@yandex.ru |
774d14b2179139ab271f99c788c217d85202583e | f61db5940e29773aba8fc342a21de00e91a5ab2e | /base/day9/02python操作文件.py | a7f6d0023d40ea4faa5dadda9bbcdb01e1cb4462 | [] | no_license | liyaozr/project | c17a9dcbcda38fe9a15ec4c41a01242a13695991 | 0b0fc10e267ceb19f6792b490fede177035459fe | refs/heads/master | 2020-11-29T18:38:03.297369 | 2020-03-10T01:11:00 | 2020-03-10T01:11:00 | 230,190,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | """
============================
Author:柠檬班-木森
Time:2020/1/13 20:28
E-mail:3247119728@qq.com
Company:湖南零檬信息技术有限公司
============================
"""
"""
python操作文件
open的常用参数:
第一个:要打开的文件名字或者文件路径
第二个参数:文件打开的模式
r:只读模式
rb:只读模式,以二进制的编码格式去打开文件
第三个参数:
encoding:用来指定打开文件的编码格式(使用rb的时候,不需要加该参数)
"""
# 读取同级目录下的文件,... | [
"lyz_fordream@163.com"
] | lyz_fordream@163.com |
df2718b59f6ac327ec4384944482bf00a1f784d2 | 1ab57fa76576134e734a26bebd813c2fa1dc23c6 | /License Plate Recognition/Main.py | ae88f150ceefe03001cc0b02cd603f04d91d2dbf | [] | no_license | AkbulutSemiha/BusStopViolationDetection | 03e99b6626e1db6344bbe8a7bc5c5e09309d2863 | 0d847eb31005ab0505cc175fc1b18b85d10cb708 | refs/heads/master | 2021-06-05T05:09:05.652140 | 2021-06-03T17:00:59 | 2021-06-03T17:00:59 | 175,631,053 | 0 | 0 | null | 2019-03-14T13:47:22 | 2019-03-14T13:47:22 | null | UTF-8 | Python | false | false | 8,418 | py | # Main.py
import cv2
import numpy as np
import os
import DetectChars
import DetectPlates
import PossiblePlate
import time
import json
from subprocess import call
from datetime import datetime
from firebase import firebase
firebase=firebase.FirebaseApplication('your_firebase_table_url') #Like 'https://tablocezali.fireba... | [
"pinarkocak1839@gmail.com"
] | pinarkocak1839@gmail.com |
de1275ebc2f6aa4b9161b36c637abba3cfb8339b | 055b7c4c2118e6e862cfae344d722e8e90534cb4 | /config.py | 5aa53ff4827b52082755f58b81f4fb855ebf1ae7 | [] | no_license | Omulosi/iReporter | 745b3194f5a06371ca01c4d790cac763a09cf89f | db80d76b84d786330fb389d94c2623cbbad13be9 | refs/heads/develop | 2022-12-09T13:42:32.856875 | 2019-04-23T04:14:27 | 2019-04-23T04:14:27 | 158,638,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py |
'''
instance.config
------------------
This module provides default configuration values.
'''
import os
from datetime import timedelta
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config:
'''
Base configurat... | [
"mulongojohnpaul@gmail.com"
] | mulongojohnpaul@gmail.com |
042f5e499527272b2d4e800785c81729348eedd8 | 8a049b6dcf9c497a4753488d75e265aed585afd0 | /tests/seeder.py | e3704b4a72b23112b0b6c4c9ef3bf6354b8011b5 | [
"MIT"
] | permissive | ayeowch/bitnodes | d05901098eec6157f9fbd4a1aa2bcbdb1ce4d168 | c73c3e4a07bfce37267708964de37891cab4850c | refs/heads/master | 2023-07-05T22:24:15.769017 | 2023-05-07T06:41:29 | 2023-05-07T06:41:29 | 9,957,678 | 562 | 295 | MIT | 2023-06-22T00:41:26 | 2013-05-09T11:08:52 | Python | UTF-8 | Python | false | false | 12 | py | ../seeder.py | [
"500869+ayeowch@users.noreply.github.com"
] | 500869+ayeowch@users.noreply.github.com |
efdb806d91f39a06a1b0fe783e20d18f226f6f1a | b793302e56ab40b82892191a3b3bbd916c9c0f47 | /searsh_info.py | a3beb04645cc954b5921a45d3ec6e85ffd13900b | [] | no_license | yuanfeisiyuetian/5gc-fuzz | 5b06f053d64b5504a1667a5beb695936ce1a1381 | 13f1943a0d9e6cc79e2a2e8089e56ca31c1e5edb | refs/heads/master | 2023-08-11T23:08:38.530392 | 2021-10-06T07:19:59 | 2021-10-06T07:19:59 | 411,973,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | import json
from urllib.parse import urlparse,parse_qs
from argparse import Namespace
from pyjfuzz.lib import *
file = "traffic.json"
def mergefile():
file1 = "traffic-new1.json"
file2 = "traffic-new2.json"
file3 = "traffic-new3.json"
filelist = [file1,file2,file3]
with open(file,"w") as f:
... | [
"13051593033@163.com"
] | 13051593033@163.com |
5aebaeac9d49f1e3296ab91ff35786d10b6a5bc9 | 82e1c98b20f0544b4d8b121f9802c691892afdfc | /WWW.CSE.MSU.EDU/CONTROL/PolygonalNumber.py | 7efdb71bc5ac4a38956e4d78a095dc4f69aa146c | [] | no_license | bang103/MY-PYTHON-PROGRAMS | 14d7876bd9a232285e971b42479251537e472e59 | e407a39ffa35d1ce87bc1846807bf446717c4b24 | refs/heads/master | 2021-01-17T13:32:42.097396 | 2016-07-11T14:34:29 | 2016-07-11T14:34:29 | 40,480,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | #August 12, 2015
#http://www.cse.msu.edu/~cse231/PracticeOfComputingUsingPython/
from __future__ import print_function
import math
print("On input of a perfect square, Output the two triangles that make up the square.")
while True:
inp=raw_input("Input Q/q to Quit OR Input a perfect square ---> ")
... | [
"noreply@github.com"
] | bang103.noreply@github.com |
5b4340d2fb0becab274fe7b90e6f405b21c093d2 | 1eb4ba4922c7a02d3a3f62edf0e085c3c16a0c04 | /FinancePoll/polls/migrations/0034_remove_sessionprofile_profile_text.py | 328b437ed736d694ee0deb0c8483e6f43798705f | [] | no_license | salaarkhan-dev/pollsapi | 97e89523bc3222d5c66b747e38adc1537fcf56bb | cec5e71dba49b2e3e4a7314df0984a74135692b9 | refs/heads/master | 2023-02-03T05:10:26.340305 | 2020-12-14T13:34:43 | 2020-12-14T13:34:43 | 321,355,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # Generated by Django 3.1.4 on 2020-12-10 11:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0033_auto_20201210_1658'),
]
operations = [
migrations.RemoveField(
model_name='sessionprofile',
name='profile_text... | [
"salaarkhan311@gmail.com"
] | salaarkhan311@gmail.com |
2355da4fe0a15ebbd2427a4c7f7b891e2e2ad149 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/pose_estimation/Hourglass_for_PyTorch/mmpose-master/demo/mmdetection_cfg/faster_rcnn_r50_fpn_1x_coco.py | 4fb90266f00299d6ac45e49f928e81c2c3eb7535 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,403 | py | # -*- coding: utf-8 -*-
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 app... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
d8617dbffb9e744b3c064d7bd38454da73dd0324 | 975fe0b2e2723edda1e8ac35bfb99110d38daf32 | /Henesys/manage.py | da58debd3d9007536e6dfae9c84484d9b349c100 | [] | no_license | 8639sung/Project_Henesys | d5573afaed5fd3db0b5e78fa6d1b87a4e53549a4 | a0247c787e54981f0adb4ebbd94a8c8e42476ded | refs/heads/master | 2023-05-31T03:06:10.607755 | 2021-06-08T19:54:02 | 2021-06-08T19:54:02 | 365,383,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Henesys.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"8639sung@gmail.com"
] | 8639sung@gmail.com |
e2c1a3b15e791dc636e2fea98abc833535fff39f | 0d09b2008bf79d7ab8dbb1d9eeb564a6be03c350 | /src/helper.py | c2144ae55b2b99091413b35b3e1c08b7fc0d5508 | [] | no_license | ankur09011/pythonjsonxml | c4c5cd5d2fc19b240e5b653088e57e2018c6a93e | 1cf4e16b660b015c9dc46c2cdfb8d3b77e42d9a9 | refs/heads/master | 2020-04-12T15:04:16.455057 | 2018-12-20T17:03:25 | 2018-12-20T17:03:25 | 162,570,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,238 | py | """
Helper Functions/Classes:
This module contains generic helper functions/classes which are needed throughout for consistency.
"""
from __future__ import unicode_literals
import collections
import logging
import numbers
from random import randint
CONVERTOR_LOG = logging.getLogger("convert_data_to_xml")
# ini... | [
"ankur09011@gmail.com"
] | ankur09011@gmail.com |
084e617921030d38fd4eb4eebaf5f5132af4ded3 | 9ee07d45459451d0c68dab820361f45ead5835d5 | /james_main.py | 8ed3081d9f97bd5f35049687d092b0742843f73d | [] | no_license | LeonChen66/James-docx | eae06fe6d883ca6c3f183b5d0cd03e0a73270e38 | 0562018771b7c9f4639ad9220a41b6b8231943da | refs/heads/master | 2020-12-30T15:43:04.691396 | 2019-01-09T21:56:52 | 2019-01-09T21:56:52 | 91,172,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,993 | py | # -*- coding: UTF-8 -*-
from PyQt5 import QtWidgets, QtGui
import sys
import docx
from os import mkdir,chdir,system
from james import Ui_Form # import qt designer's gui
from datetime import datetime
from dateutil.relativedelta import relativedelta
class mywindow(QtWidgets.QWidget,Ui_Form):
def __init__(self):
... | [
"leo0215667@gmail.com"
] | leo0215667@gmail.com |
ba190de8b4de0297f1e0b734184bf21440191948 | 31cdde2bda93df838399f26fd4fcf0f2f7989a5c | /budget/migrations/0006_auto__add_field_budgetuser_coop.py | 495a4e661790ba21a7819cec4a769a2b2936fc84 | [] | no_license | SteveXian/budget_app | e2ca586db1de8d2af392cfb254a0222059262f10 | 3c610eddfd0aa447cc0299c96762321ce1e2b397 | refs/heads/master | 2021-01-01T19:21:18.127896 | 2013-12-02T12:11:12 | 2013-12-02T12:11:12 | 12,254,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'BudgetUser.coop'
db.add_column(u'budget_budgetuser', 'coop',
self.gf('... | [
"monkxly@gmail.com"
] | monkxly@gmail.com |
a63da102a2acf98b669db92d9339476678717586 | b19b7924906ae27393624f0eff48d7acd0808776 | /chromedriver/Lesson 2.3 step 6.py | ed9f9cd75fdc395b27e9ea43c094542ee4a4383c | [] | no_license | VladislavEkimov/QAtesting | ac9059699a17de89a09547a13caf250ffc5d4148 | a2e501af5b8f8421f12e74f9d9061409a7074f51 | refs/heads/master | 2023-07-28T17:15:47.213178 | 2021-09-14T09:32:24 | 2021-09-14T09:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | import os
from selenium import webdriver
import time
import math
try:
browser = webdriver.Chrome()
url = 'http://suninjuly.github.io/redirect_accept.html'
browser.get(url)
button = browser.find_element_by_css_selector("[type='submit']")
button.click()
new_window = browser.window_handl... | [
"33995288+vlaf27449@users.noreply.github.com"
] | 33995288+vlaf27449@users.noreply.github.com |
bc3798906716aa41be8beb4ecc2a2c58459a8f86 | dc767b48d46e2f6b9851ce61914e880fc95fe520 | /myshop/shop/migrations/0001_initial.py | cca6008d38c1c259f458a69c4f61f46f334c2252 | [] | no_license | EdmilsonSantana/django-by-example | c06081a1a3915aaf3996d017fea91c8273cbe2e0 | 7c895b55b8f6fcc05a2d5cd2181bf207dc9256fc | refs/heads/master | 2021-01-12T02:58:49.261515 | 2017-02-28T20:05:29 | 2017-02-28T20:05:29 | 78,144,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-16 23:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"edmilsonsantana2@hotmail.com"
] | edmilsonsantana2@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.