blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57db87c9797abc2707a464d3b187ceba70140495 | f3b233e5053e28fa95c549017bd75a30456eb50c | /CDK2_input/L1Q/1Q-17_MD_NVT_rerun/set_1ns_equi_1.py | 6e267d5a25d2c1095b57350c91596b9b1a2e1503 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/CDK2/L1Q/MD_NVT_rerun/ti_one-step/1Q_17/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
25d5976832ad59276a925791f17f1af25df88294 | 869153aa415924529a3dc739df098c5d4bb83ce4 | /17_contour/2_approxpoly.py | 510e1441c6bea77de31e526f8100e5df2c9a617f | [] | no_license | ccwu0918/class_opencv_python | b8c4dfb64e3fa84ba4b79b96c31b98600ae4c829 | fa15bcd23eb388359180a00ce096b79ec0bdc2ec | refs/heads/main | 2023-06-28T05:54:05.010580 | 2021-08-05T12:53:09 | 2021-08-05T12:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | import cv2
RECT, HEXAGON = 0, 1
frame = cv2.imread("./images/poly.png")
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
edged = cv2.Canny(gray, 50, 150)
edged = cv2.dilate(edged, None, iterations=1)
contours, hierarchy = cv2.findContours(edged, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
print('=== 處理前')
print('矩形點... | [
"shinjia168@gmail.com"
] | shinjia168@gmail.com |
27aab3a9cc7d68c1f9995b8141f2835218ef5fa5 | 9aaa39f200ee6a14d7d432ef6a3ee9795163ebed | /Algorithm/Python/099. Recover Binary Search Tree.py | e52e96232688e101cc8945d37d8bb4ed53c5c8a1 | [] | no_license | WuLC/LeetCode | 47e1c351852d86c64595a083e7818ecde4131cb3 | ee79d3437cf47b26a4bca0ec798dc54d7b623453 | refs/heads/master | 2023-07-07T18:29:29.110931 | 2023-07-02T04:31:00 | 2023-07-02T04:31:00 | 54,354,616 | 29 | 16 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | # -*- coding: utf-8 -*-
# @Author: WuLC
# @Date: 2016-07-03 20:01:22
# @Last modified by: WuLC
# @Last Modified time: 2016-07-03 20:01:47
# @Email: liangchaowu5@gmail.com
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# ... | [
"liangchaowu5@gmail.com"
] | liangchaowu5@gmail.com |
1bab0b849a1e1e4e3abed62cacf5cf2d4d838a36 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/E/eirikst/postliste-risr-kommune.py | 53a2cf8607cef901cdcca0d7cbed4121d934916b | [] | 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 | 8,408 | py | # -*- coding: UTF-8 -*-
# Based on the scraper advanced-scraping-pdf
# See also
# https://views.scraperwiki.com/run/pdf-to-html-preview-1/?url=http%3A%2F%2Fwww.stortinget.no%2FGlobal%2Fpdf%2Fpostjournal%2Fpj-2012-05-09.pdf
import scraperwiki
import json
from BeautifulSoup import BeautifulSoup
import datetime
import da... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
3dce37f70d0e342a89d689ef5496ace1bf7fb07e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_014/ch47_2020_04_13_13_29_30_615294.py | 5ec09dffb565c008c5f35752896118970f26a078 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def estritamente_crescente(lista):
i = 0
lista_nova = []
while i < len(lista):
if lista[i+1] > lista[i]:
lista_nova.append(lista[i+1])
i += 1
return lista_nova | [
"you@example.com"
] | you@example.com |
0aaa9a9fc44222dce38e3bae24286b8df567512b | 16e69196886254bc0fe9d8dc919ebcfa844f326a | /edc/subject/consent_old/forms/consent_catalogue_form.py | b9b24101a14789ffb046f04fa0cfa7ea7a8d8238 | [] | no_license | botswana-harvard/edc | b54edc305e7f4f6b193b4498c59080a902a6aeee | 4f75336ff572babd39d431185677a65bece9e524 | refs/heads/master | 2021-01-23T19:15:08.070350 | 2015-12-07T09:36:41 | 2015-12-07T09:36:41 | 35,820,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from edc.base.form.forms import BaseModelForm
class ConsentCatalogueForm (BaseModelForm):
def clean(self, consent_instance=None):
cleaned_data = self.cleaned_data
return cleaned_data
| [
"ew2789@gmail.com"
] | ew2789@gmail.com |
a07c61061a32428c289217787b8315b3a1f0900a | ab2f1f18f64d9f2d49a4eea5c6a78ee1275662de | /trex_client/external_libs/scapy-2.3.1/python2/scapy/__init__.py | 443b36753f7f543c88564c4b8abe0f9bd5fd84ad | [
"MIT"
] | permissive | alwye/trex-http-proxy | d09d7fabe60add4a445e5ceb71f5f2a6d209e0a0 | e30f5af03aaaad518b5def6e1804c3741dd5d0c6 | refs/heads/master | 2021-08-16T22:32:56.643253 | 2021-06-08T19:52:35 | 2021-06-08T19:52:35 | 60,734,923 | 4 | 3 | MIT | 2021-06-08T19:39:18 | 2016-06-08T22:27:35 | Python | UTF-8 | Python | false | false | 458 | py | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
Scapy: create, send, sniff, dissect and manipulate network packets.
Usable either from an interactive console or as ... | [
"alzverev@cisco.com"
] | alzverev@cisco.com |
e2478d9052aaf48da3b02682e1e7e55c5fca3f5b | db3caf3438942838bd1b948f57cdc9dc729b1ab0 | /data_loader/multitask_classify_loader.py | e05c1d4aaef4e56139a290cb9221becd29aaf961 | [] | no_license | HELL-TO-HEAVEN/iswc2020_prodcls | 711fb7506f86f887edcc712bc962d8c42259c9a0 | ef83dcd6cc7055a2edbc7628ca76a11c0a09d4bd | refs/heads/master | 2023-01-24T11:41:15.259735 | 2020-11-18T11:31:04 | 2020-11-18T11:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,378 | py | # -*- coding: utf-8 -*-
"""
@author: Alex Yang
@contact: alex.yang0326@gmail.com
@file: multitask_classify_loader.py
@time: 2020/5/21 21:12
@desc:
"""
import os
import nltk
import numpy as np
from tensorflow.keras.utils import Sequence, to_categorical
from config import NLTK_DATA
from utils import pad_sequence... | [
"2041462766@qq.com"
] | 2041462766@qq.com |
9329443d1478f64209887aa32825726f941e27ba | 1b36425f798f484eda964b10a5ad72b37b4da916 | /posthog/migrations/0222_fix_deleted_primary_dashboards.py | ef8d4a6cc13d5483ef0aa1cd227c44747efb0d4c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dorucioclea/posthog | 0408baa2a7ae98e5bea352c516f741ddc17c0a3e | 8848981baf237117fb22d28af0770a0165881423 | refs/heads/master | 2023-01-23T11:01:57.942146 | 2023-01-13T09:03:00 | 2023-01-13T09:03:00 | 241,222,000 | 0 | 0 | MIT | 2020-02-17T22:34:37 | 2020-02-17T22:34:36 | null | UTF-8 | Python | false | false | 2,831 | py | import structlog
from django.db import connection, migrations
from django.db.models import Q
# 0220_set_primary_dashboard set the primary dashboard for teams, but
# it didn't account for deleted dashboards. This migration fixes projects
# that have a primary dashboard set to a deleted dashboard.
def fix_for_deleted_... | [
"noreply@github.com"
] | dorucioclea.noreply@github.com |
ce041d314e8b73e5a06532fc7a6ea5a036ac0a5b | 6547747b93196f4f4d74248de81e943cdd253d3e | /projects/views.py | 6e9a7b56a0beef4fee5c92c2dfd926ef3ebfe757 | [] | no_license | cyberkuroneko/PCN_CODEV_project | 1551fa2768dc1a08f452636c42191e380ea602f6 | 66e5004ad045ad9d83f880affbf6cfa60eab2706 | refs/heads/master | 2022-12-18T08:55:07.879527 | 2020-09-12T07:06:43 | 2020-09-12T07:06:43 | 294,866,626 | 0 | 0 | null | 2020-09-12T04:03:16 | 2020-09-12T04:03:16 | null | UTF-8 | Python | false | false | 198 | py | from django.views.generic import ListView
from .models import Projects
# Create your views here.
class ProjectsHomePageView(ListView):
template_name = 'projects_home.html'
model = Projects | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
de03e9aca5ea4d28dfd81d74ba7ff87890be777f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03015/s226920110.py | 5c2c5ed57fb8a4d7c4a1620946f7cbd6703e4a3e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | MOD = 10**9+7
L = input()
N = len(L)
ans = 0
c = 0
for i in range(N):
if L[i] == '1':
ans += pow(3,N-i-1,MOD)*pow(2,c,MOD)
ans %= MOD
c += 1
ans += pow(2,c,MOD)
ans %= MOD
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3aa2ceaf8175c3dc9b6b0f5c72ae1b49efbe0cc4 | 597c4f48332251552a602122bb3d325bc43a9d7f | /chapter11_dynamic_programming/04_recursive_memo/02_memo_recursive.py | 74fcfce3fb9665a82e4dde4dd6df3caee6c34d14 | [] | no_license | Kyeongrok/python_algorithm | 46de1909befc7b17766a57090a7036886361fd06 | f0cdc221d7908f26572ae67b5c95b12ade007ccd | refs/heads/master | 2023-07-11T03:23:05.782478 | 2023-06-22T06:32:31 | 2023-06-22T06:32:31 | 147,303,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
# => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
n = 10
memo = [0] * n
print(memo, len(memo))
def checkMemo(memo, n):
if memo[n] == 0:
return memo
else:
n = n - 1
memo[n] = n
checkMemo(memo[n], n)
result = checkMemo(memo, n)
print(result) | [
"oceanfog1@gmail.com"
] | oceanfog1@gmail.com |
359abbbcf3e86f4744a33647da97ba7bd44c27b7 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Python/Core/Lib/hotshot/log.py | a8655b0a99f0d251de073b6e4842948aa55050c8 | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,436 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: log.py
import _hotshot
import os.path
import parser
import symbol
from _hotshot import WHAT_ENTER, WHAT_EXIT, WHAT_LINENO, WHAT_DEFINE_FILE, WHAT_DEF... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
620f06ddbdef017d8c36b66631587e5dfd47c971 | e322d01555aebbcf9f23a68fa9160e75d4397969 | /YouCompleteMe/third_party/ycmd/third_party/racerd/scripts/run_wrk_benchmarks.py | 85985137ca89c3ec08b6f907c789b7fd518d499d | [
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-3.0-only"
] | permissive | liqiang0330/i3ForDebian9 | 3b2bb5ce104f25cadab7a57cdc7096fadeb4a9ef | 37a63bdaf18dab847e57d328cdcb678668ab6207 | refs/heads/master | 2022-10-25T13:30:26.723690 | 2018-03-17T05:22:55 | 2018-03-17T05:22:55 | 162,018,419 | 1 | 1 | Apache-2.0 | 2022-10-08T20:30:23 | 2018-12-16T16:11:57 | Python | UTF-8 | Python | false | false | 3,139 | py | #!/usr/bin/env python
# vim: ts=4 sw=4 et cc=80 tw=79
import subprocess
import tempfile
import os
from os import path
# Support overriding RACERD. Assume racerd is on path by default.
if os.environ.has_key('RACERD'):
RACERD = os.environ['RACERD']
else:
RACERD = 'racerd'
def get_scripts_dir():
"""
Re... | [
"yuan705791627@gmail.com"
] | yuan705791627@gmail.com |
933df71bf9732ccc8ea0ee553ba02320d8126c6e | 9a8416deb357d9d0714c3b09dc2c70e8fffa05e7 | /Collect/MOD12/__init__.py | 5eac4f4f7da1cb1c2bcd13bde5033ead4cf5d375 | [
"Apache-2.0"
] | permissive | ali1100/wa | 055d0989bb414e443319ee996a8049b5051a9e74 | 700e5014533c45f38a245c3abdeacc537cb307bc | refs/heads/master | 2021-05-13T12:03:02.161649 | 2018-09-19T06:51:41 | 2018-09-19T06:51:41 | 117,149,867 | 0 | 1 | Apache-2.0 | 2018-09-19T06:38:19 | 2018-01-11T20:29:13 | Python | UTF-8 | Python | false | false | 798 | py | # -*- coding: utf-8 -*-
"""
Authors: Tim Hessels
UNESCO-IHE 2016
Contact: t.hessels@unesco-ihe.org
Repository: https://github.com/wateraccounting/wa
Module: Collect/MOD12
Description:
This module downloads MOD12 LC data from
http://e4ftl01.cr.usgs.gov/. Use the MOD12.LC_yearly function to
download and create ... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
ba0f5ce1975bf1f8c6ce378a443255fcb0443019 | 79f42fd0de70f0fea931af610faeca3205fd54d4 | /base_lib/ChartDirector/pythondemo_cgi/finance.py | 932f4132e25cedc156bfb1d23e9cb27aa6704e2e | [
"IJG"
] | permissive | fanwen390922198/ceph_pressure_test | a900a6dc20473ae3ff1241188ed012d22de2eace | b6a5b6d324e935915090e791d9722d921f659b26 | refs/heads/main | 2021-08-27T16:26:57.500359 | 2021-06-02T05:18:39 | 2021-06-02T05:18:39 | 115,672,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,765 | py | #!/usr/bin/python
from FinanceChart import *
# Create a finance chart demo containing 100 days of data
noOfDays = 100
# To compute moving averages starting from the first day, we need to get extra data points before
# the first day
extraDays = 30
# In this exammple, we use a random number generator utility to simula... | [
"fanwen@sscc.com"
] | fanwen@sscc.com |
fa46f790dc1f979f39ed1aee253c88fa73042a0a | b8f160d2e8c09d5fdce7171924765b74edb97141 | /page/gouwuche_page.py | c0b3a147f1fc40bfc6b6c43f52c26d943ad66baf | [] | no_license | danyubiao/mryx | 7bf3e0f2bae42ef2fe4c9238569194c767b3f754 | 2325c7854c5625babdb51b5c5e40fa860813a400 | refs/heads/master | 2023-01-05T01:17:28.259444 | 2020-10-20T02:02:20 | 2020-10-20T02:02:20 | 304,574,484 | 0 | 6 | null | 2020-10-20T02:02:21 | 2020-10-16T09:04:01 | Python | UTF-8 | Python | false | false | 933 | py | # @Time : 2020/10/19 11:00
# @Author : 白光华
# @Email : 1277987895@gmail.com
# @File : gouwuche_page
# @Project : app测试
"""购物车封装定位"""
import self
from appium import webdriver
from time import sleep
from appium.webdriver.common.mobileby import MobileBy as By
from selenium.webdriver.support.wait import WebDriverWait
from ... | [
"you@example.com"
] | you@example.com |
fdc5040420ae8c8fccd6fcbcfd6571e629ec3fe2 | 3a1fea0fdd27baa6b63941f71b29eb04061678c6 | /src/ch08/instructions/references/ArrayLength.py | 1e62ebf2864f856112a9c4c1871c01f914b060df | [] | no_license | sumerzhang/JVMByPython | 56a7a896e43b7a5020559c0740ebe61d608a9f2a | 1554cf62f47a2c6eb10fe09c7216518416bb65bc | refs/heads/master | 2022-12-02T17:21:11.020486 | 2020-08-18T06:57:10 | 2020-08-18T06:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: ArrayLength.py
@time: 2019/9/17 21:31
@desc: arraylength指令用于获取数组长度,只需要一个操作数,即从操作数栈顶弹出的数组引用。
"""
from ch08.instructions.base.Instruction import NoOperandsInstruction
from ch08.rtda.Frame import Frame
class ARRAY_LENGTH(NoOperandsInstruction):
de... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
38475fa87788a196aa49972f1a1cf47a600c69cf | 000c243b4c30bd089867f73ca1bcfede1c3ef801 | /catkin_ws/build/mapviz/mapviz/cmake/mapviz-genmsg-context.py | a2f6c76c8fcf220d76e8e24263350aab52a67984 | [] | no_license | dangkhoa1210/SLAM-AND-NAVIGATION-FOR-MOBILE-ROBOT-OUTDOOR-INDOOR- | b4d9bf2757d839d9766d512c2272731300320925 | 7273ea9e966353440d3993dcba112bc0a2262b98 | refs/heads/master | 2023-07-15T14:07:17.123812 | 2021-09-02T10:12:30 | 2021-09-02T10:12:30 | 402,361,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = ""
services_str = "/home/khoa/catkin_ws/src/mapviz/mapviz/srv/AddMapvizDisplay.srv"
pkg_name = "mapviz"
dependencies_str = "marti_common_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "marti_common_msgs;/home/khoa/catkin_... | [
"dangkhoaphamdang1210@gmail.com"
] | dangkhoaphamdang1210@gmail.com |
905e03a56f2de81f5788eb73a86993424cd54536 | 4a9e5f6f2bd6f8768533bc250b7f0bb8efb9620c | /hackerearth/ALGO_Semi/A.py | ca9b80f57b8303df7bdccf36bc10c081d92073c9 | [
"MIT"
] | permissive | akshaynagpal/competitive-programming | 28c9a6070d82ce9140a7173ddbb0080ac5b3e1fc | 0a54f43e3e0f2135c9c952400c5a628244b667d1 | refs/heads/master | 2021-01-18T22:40:59.078826 | 2017-04-22T18:44:25 | 2017-04-22T18:44:25 | 41,152,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | import itertools
import sys
num_tests = int(raw_input())
for i in range(num_tests):
x, y, z = raw_input().split()
a = int(x)
b = int(y)
q = int(z)
q_list = [int(i) for i in raw_input().split()]
add = a + b
sub = max(a,b) - min(a,b)
adder_list = [a,b,add,sub]
for query in q_list:... | [
"akshay2626@gmail.com"
] | akshay2626@gmail.com |
bf6df2386f449624250a877f305d84c85d383dc2 | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/projects/sfb532demo/assess_shell/lcc_table_hf_RFEM_.py | 245d825388e379a9febd6ad314699c3f43a77dc7 | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 56,520 | py | '''
Created on Jun 29, 2010
@author: alexander
'''
from enthought.traits.api import \
HasTraits, Directory, List, Int, Float, Any, Enum, \
on_trait_change, File, Constant, Instance, Trait, \
Array, Str, Property, cached_property, WeakRef, \
Dict, Button, Color, Bool, DelegatesTo, Callable
from enthou... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
a9767ff8584097a72971d1e8644b417eb926a01d | 78d23de227a4c9f2ee6eb422e379b913c06dfcb8 | /LeetCode/846.py | 384d03f6466286d2c3fad09a5cdd6413b61dcffb | [] | no_license | siddharthcurious/Pythonic3-Feel | df145293a3f1a7627d08c4bedd7e22dfed9892c0 | 898b402b7a65073d58c280589342fc8c156a5cb1 | refs/heads/master | 2020-03-25T05:07:42.372477 | 2019-09-12T06:26:45 | 2019-09-12T06:26:45 | 143,430,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from collections import Counter
class Solution:
def isNStraightHand(self, hand, W):
"""
:type hand: List[int]
:type W: int
:rtype: bool
"""
L = len(hand)
if L%W != 0:
return False
counter = Counter(hand)
while counter:
... | [
"sandhyalalkumar@gmail.com"
] | sandhyalalkumar@gmail.com |
0cf52c06d5eb89b3b7872b6c884f54600c6c493f | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/dyson_local/vacuum.py | 24dc1f8dd48f166658531d591b7f870cd2bb09db | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 8,333 | py | """Vacuum platform for Dyson."""
from typing import Any, Callable, List, Mapping
from .vendor.libdyson import (
Dyson360Eye,
VacuumEyePowerMode,
VacuumHeuristPowerMode,
VacuumState,
)
from homeassistant.components.vacuum import (
ATTR_STATUS,
STATE_CLEANING,
STATE_DOCKED,
STATE_ERROR,... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
2fecfee104269eac54eb1ff97981413680f0aca5 | 60ca69e2a4c6b05e6df44007fd9e4a4ed4425f14 | /beginner_contest/183/A.py | 0c3a7cb3882bd72537672f3fac59c59a477676b3 | [
"MIT"
] | permissive | FGtatsuro/myatcoder | 12a9daafc88efbb60fc0cd8840e594500fc3ee55 | 25a3123be6a6311e7d1c25394987de3e35575ff4 | refs/heads/master | 2021-06-13T15:24:07.906742 | 2021-05-16T11:47:09 | 2021-05-16T11:47:09 | 195,441,531 | 0 | 0 | MIT | 2021-05-16T11:47:10 | 2019-07-05T16:47:58 | Python | UTF-8 | Python | false | false | 131 | py | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
x = int(input())
if x >= 0:
print(x)
else:
print(0)
| [
"204491+FGtatsuro@users.noreply.github.com"
] | 204491+FGtatsuro@users.noreply.github.com |
03873d4ea28c94d0fce1511dcf5e24a1225b1d9c | 3fa7b041caf5dfe8e10d2086bc3127859e610227 | /python2/2/knock12.py | 5f22d6b6bfe7e69c59c395befd593b2fb8ad9add | [] | no_license | himkt/nlp-100knock | 693b71e1d3ef5d65276d2694f309a7e39b5e002c | 3be136307271f0aa5f46aef366bac0c53513c5ca | refs/heads/master | 2020-04-16T15:14:19.962351 | 2016-08-19T10:30:43 | 2016-08-19T10:30:43 | 32,132,964 | 31 | 4 | null | 2021-03-05T14:39:46 | 2015-03-13T06:02:54 | Jupyter Notebook | UTF-8 | Python | false | false | 623 | py | # -*- coding: utf-8 -*-
# @author = himkt
# 2015/07/16
'''
12. 1列目をcol1.txtに,2列目をcol2.txtに保存
各行の1列目だけを抜き出したものをcol1.txtに,
2列目だけを抜き出したものをcol2.txtとしてファイルに保存せよ.
確認にはcutコマンドを用いよ.
'''
f = open('../data/hightemp.txt', 'r')
f_col1 = open('./col1.txt','w')
f_col2 = open('./col2.txt','w')
for line in f:
col1, col2, temp... | [
"himkt@klis.tsukuba.ac.jp"
] | himkt@klis.tsukuba.ac.jp |
9de9ff070cc553ba6c7017ee27c8c3c37ec80577 | aa0d55b2aa22da0af6545ce0da46d04dbdc3bffc | /cpgames/core/games/breakoutclone/modules/utils.py | f8df36ce3d52ef56483f54fbabdceb11d2d70859 | [
"Apache-2.0"
] | permissive | cyanghsieh/Games | 19fdad463cf12cbd503a399ed2700c0dae615714 | 07767df6d181b9eae89ce0a8b883d19afb450cc1 | refs/heads/master | 2023-05-11T11:11:09.777569 | 2023-02-22T14:28:18 | 2023-02-22T14:28:18 | 283,113,319 | 0 | 0 | MIT | 2020-07-28T05:49:13 | 2020-07-28T05:49:12 | null | UTF-8 | Python | false | false | 551 | py | '''
Function:
工具函数
Author:
Charles
微信公众号:
Charles的皮卡丘
'''
'''导入关卡文件'''
def loadLevel(levelpath):
brick_positions = []
fp = open(levelpath, 'r', encoding='utf-8')
y = -1
for line in fp.readlines():
if (not line.strip()) or (line.startswith('#')):
continue
else:
... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
f6e89855368091cfa463917ef3abf2fed8677d25 | e540a64d8a23ee83b3d2a5842636a2ea7486a52f | /test_petcd/test_unit/client_get_64a46cd84bc94765b8a167e7f6582eab.py | 31be52dca66015fffe2eeb5d46d462c3d7b5578f | [
"Apache-2.0"
] | permissive | alunduil/petcd | 27066c735667d1de2308a165b5c8dfe59f3d2dc7 | a9579259b6ecc12182cc57a0549a7618c0c70a27 | refs/heads/master | 2021-01-22T16:26:14.682404 | 2015-07-25T15:26:54 | 2015-07-25T15:26:54 | 46,867,580 | 0 | 0 | null | 2015-11-25T14:47:20 | 2015-11-25T14:47:19 | null | UTF-8 | Python | false | false | 1,495 | py | # Copyright 2015 Alex Brandt
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"alunduil@alunduil.com"
] | alunduil@alunduil.com |
4e5e90b4a520933dfbc2f413ddc16e9fa3593d1a | d7315d1769ea60f50604673bc7b677a69de2a940 | /code/step1/fdr_test.py | fdc6c0bfa44279a1f9ebd4de060b0dfc1cc8c1b9 | [] | no_license | hoon4233/Stock-Prediction | 405226de24be6751e5d3bb6f481cae98f6053959 | 10ffdd3399fc8e207637cc85e8450aa4f9bd47b2 | refs/heads/master | 2023-04-27T19:50:13.768265 | 2021-05-06T03:12:53 | 2021-05-06T03:12:53 | 364,770,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | import FinanceDataReader as fdr
df = fdr.DataReader('005930')
print(df)
| [
"wogns3141@gmail.com"
] | wogns3141@gmail.com |
0d04e6bc9a229cb2cd1c8e3d668a8821c929b8d8 | 223b7276b54fee31f1510145ac4c4e13c6b6a3e0 | /HearthStoneSpider/tools/remote_server.py | 3cb8649cedbf55d55671b9f396de4bb25c38b519 | [] | no_license | CoderEnko007/HearthStoneSpider | 6c2d5e63fc6ee64e4838d5b77937da66972fcd82 | 7bafa78c10dcdf3d17dd33a0fbf9abfe7726284a | refs/heads/master | 2023-02-18T11:05:16.644753 | 2022-09-18T07:01:58 | 2022-09-18T07:01:58 | 144,394,353 | 0 | 0 | null | 2023-02-07T21:53:30 | 2018-08-11T15:00:25 | HTML | UTF-8 | Python | false | false | 2,973 | py | import json
import requests
from urllib.parse import urljoin
class HSServer(object):
def __init__(self, path=None):
# self.host = 'http://127.0.0.1:8001'
self.host = 'http://47.98.187.217'
self.url = urljoin(self.host, path)
def set_url_path(self, path):
self.url = urljoin(self... | [
"yf381966217@163.com"
] | yf381966217@163.com |
4cb20d9c4f026d16c353ff24d766471117d06273 | d4eb113c44c86322b3811513a7286d176f106eb6 | /experiments/convolutional_autoencoder_perturbations/rotated+scaled-precip/autoencoder.py | 9f8144f085411691ebeb36578a3dcb59a2b63136 | [] | no_license | philip-brohan/Machine-Learning | 67a2eb780383b3436da4fef1d763f39d255ae696 | dc53b9c336d5f12272257f327abe49dec436ea04 | refs/heads/master | 2021-03-27T12:33:07.518279 | 2020-04-30T19:38:02 | 2020-04-30T19:38:02 | 56,614,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | #!/usr/bin/env python
# Convolutional autoencoder for 20CR prmsl fields.
# This version is all-convolutional - it uses strided convolutions
# instead of max-pooling, and transpose convolution instead of
# upsampling.
# This version uses scaled input fields that have a size (79x159) that
# match the strided convolu... | [
"philip@brohan.org"
] | philip@brohan.org |
ea167fb8ab273f422a67ad5fd1577b556d59819c | 04a540847c1333c987a1957fd8d31197c594f6bb | /programmers/64063_1_2.py | bb87f123a44803709df076a015cef03e5372985c | [] | no_license | k8440009/Algorithm | fd148269b264b580876c7426e19dbe2425ddc1ab | a48eba0ac5c9f2e10f3c509ce9d349c8a1dc3f0c | refs/heads/master | 2023-04-02T16:06:10.260768 | 2023-04-02T11:04:32 | 2023-04-02T11:04:32 | 200,506,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # 호텔 방 배정 (효율성 x)
# https://programmers.co.kr/learn/courses/30/lessons/64063
def solution(k, room_number):
answer = []
room = dict()
for room_key in room_number:
key = room_key
while(key in room):
key += 1
room[key] = 1
answer.append(key)
#print(answer)
re... | [
"k8440009@gmail.com"
] | k8440009@gmail.com |
1f7e64d2a7a01b64856c7764d77116c496b38347 | 4f4776eb69cbea9ee1c87a22732c5d778855c83a | /leetcode/Number_of_1_Bits.py | 836df79c90ca983c9a66722751cf1ec02cb6fddf | [] | no_license | k4u5h4L/algorithms | 4a0e694109b8aadd0e3b7a66d4c20692ecdef343 | b66f43354792b1a6facff90990a7685f5ed36a68 | refs/heads/main | 2023-08-19T13:13:14.931456 | 2021-10-05T13:01:58 | 2021-10-05T13:01:58 | 383,174,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | '''
Number of 1 Bits
Easy
Write a function that takes an unsigned integer and returns the number of '1' bits it has (also known as the Hamming weight).
Note:
Note that in some languages, such as Java, there is no unsigned integer type. In this case, the input will be given as a signed integer type. It should not... | [
"kaushal.v.bhat@gmail.com"
] | kaushal.v.bhat@gmail.com |
48435a69a8fa1ee0cb211e9fecb08f31c62ba1b8 | bdc5e23423fa88fa98940950515325d4e5d516b4 | /xpath.py | 3c143c849e6fae213cdcabc2a00a4cb573af6fd9 | [
"MIT"
] | permissive | kolabszar/Xpath | 7a2c6792e909b51df3bdee032eaf3d172221f5ea | d708b3ef199ca6b99dd4ca343ddac450516d1b58 | refs/heads/master | 2023-03-22T14:06:07.251488 | 2021-03-12T09:24:30 | 2021-03-12T09:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,118 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# pylint: disable=R,W,E,C
"""
Author : Nasir Khan (r0ot h3x49)
Github : https://github.com/r0oth3x49
License : MIT
Copyright (c) 2016-2025 Nasir Khan (r0ot h3x49)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate... | [
"r0oth3x49@gmail.com"
] | r0oth3x49@gmail.com |
cb3e9d5028d506ecb974097cec8f232e8f767507 | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/hyperlink/_url.py | 993333f25cd5d26614b2dcf5be0a7ab5c515342e | [] | no_license | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,134 | py | # -*- coding: utf-8 -*-
u"""Hyperlink provides Pythonic URL parsing, construction, and rendering.
Usage is straightforward::
>>> import hyperlink
>>> url = hyperlink.parse(u'http://github.com/mahmoud/hyperlink?utm_source=docs')
>>> url.host
u'github.com'
>>> secure_url = url.replace(scheme=u'h... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
a6f1ee88d3be933a37a62eb2d070d8032201a492 | 24f664aa2344d4f5d5e7b048ac4e85231715c4c8 | /datasets/me_db/tests/integration_tests/conftest.py | 205f1f009297ae600813291058172b6b97e9018b | [
"MIT"
] | permissive | speycode/clfuzz | 79320655e879d1e0a06a481e8ec2e293c7c10db7 | f2a96cf84a7971f70cb982c07b84207db407b3eb | refs/heads/master | 2020-12-05T13:44:55.486419 | 2020-01-03T14:14:03 | 2020-01-03T14:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py | # Copyright 2018, 2019 Chris Cummins <chrisc.101@gmail.com>
#
# 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 restriction, including without limitation the rights to
# use, copy, modi... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
7def0c19f5d2bf3212b2a2cf63953f42fc2debb6 | 2fb7188adb6f52023485d8a775e4ecbf96331b81 | /PixelGeometry/calculateRMS.py | eaba86ec104f0376ab2dd280fa35e239332310ec | [] | no_license | amassiro/dEdxCalibration | f5c580247041b4477a118772bbda9b924ae1103a | 837eb440711983ddd0a283ec0cf3582c4a454d24 | refs/heads/master | 2020-03-24T03:31:45.099672 | 2019-11-08T13:09:40 | 2019-11-08T13:09:40 | 142,422,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | import os
# example of file name:
# plots_run/cc_add_layer_3_eta_5_BPIX.root
list_files = []
for root, dirs, files in os.walk("plots_run/"):
for filename in files:
if "cc_add_" in filename and ".root" in filename :
#print(filename)
list_files.append(filename)
#print "list_files = ... | [
"massironi.andrea@gmail.com"
] | massironi.andrea@gmail.com |
0ad22ff0946074d30f09ea1f71b87a7bc97ec4db | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/u9a.py | 2ac685ce8df552fd9ee52ecdb37a8d04c6f14181 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
77976fb5e42151e942abbc439cf84f1d10eb52d3 | 066ee4df594a5dc90335d271b9d5a1b1e2a4d34c | /y/google-cloud-sdk/platform/google_appengine/lib/docker/tests/fake_api.py | 861c8b35104b0f17514fbb2acea7c40a4e1866dd | [
"LGPL-2.1-or-later",
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ychen820/microblog | a2d82447525325ec58285c2e5db58b79cceaca1b | d379afa2db3582d5c3be652165f0e9e2e0c154c6 | refs/heads/master | 2021-01-20T05:58:48.424357 | 2015-04-28T22:03:09 | 2015-04-28T22:03:09 | 32,948,331 | 0 | 2 | BSD-3-Clause | 2020-07-25T05:04:35 | 2015-03-26T19:45:07 | Python | UTF-8 | Python | false | false | 10,155 | py | # Copyright 2013 dotCloud 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 t... | [
"ychen207@binghamton.edu"
] | ychen207@binghamton.edu |
7a567594c1e7adc2858272c848dcbaa3f69ad25b | a9c3db07c29a46baf4f88afe555564ed0d8dbf2e | /src/1018-largest-perimeter-triangle/largest-perimeter-triangle.py | 0a77f6046ef72192ef87f5b340d5bb1cb593a6eb | [] | no_license | HLNN/leetcode | 86d2f5b390be9edfceadd55f68d94c78bc8b7644 | 35010d67341e6038ae4ddffb4beba4a9dba05d2a | refs/heads/master | 2023-03-13T16:44:58.901326 | 2023-03-03T00:01:05 | 2023-03-03T00:01:05 | 165,402,662 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # Given an integer array nums, return the largest perimeter of a triangle with a non-zero area, formed from three of these lengths. If it is impossible to form any triangle of a non-zero area, return 0.
#
#
# Example 1:
#
#
# Input: nums = [2,1,2]
# Output: 5
# Explanation: You can form a triangle with three side len... | [
"Huangln555@gmail.com"
] | Huangln555@gmail.com |
a40ca002ab664eb7d143fa43e4065c311d103456 | 8c7be58d2ddb6d1d10b93cb1139d2376be9fd07d | /naive_chatbot/predictor_pb2.py | c5bb06e1718c3cad08cebb4bfb529397d2cb7a66 | [] | no_license | zhouziqunzzq/MiraiGo-DD-naive-chatbot | c47e630cf38dd1b67ec4ccda2769a5db4a49608c | a69143c306a7e91e9262cec82ea1a8af8afecb45 | refs/heads/main | 2023-04-27T19:43:57.272470 | 2021-05-16T23:40:53 | 2021-05-16T23:40:53 | 343,130,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 7,834 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: predictor.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.proto... | [
"zhouziqun@cool2645.com"
] | zhouziqun@cool2645.com |
6ec8eb0c7925f1935b91bc24f5fc9ba37f80f94e | 3a4549470cb0e6e55c98522ba08ce629d60960ea | /froide/foirequest/migrations/0014_auto_20180111_0738.py | 6ac2c84671c22abd5063ab69c08f7dae915f3e1f | [
"MIT"
] | permissive | lanmarc77/froide | 4e28d3e33017b3e776a7eb13d63c7b71bdb3bc68 | bddc8bb27c8a7c2a959003dda724194948bc381a | refs/heads/main | 2023-03-17T03:02:01.277465 | 2021-03-06T16:37:26 | 2021-03-06T16:37:26 | 345,137,125 | 0 | 0 | MIT | 2021-03-06T16:13:09 | 2021-03-06T16:13:09 | null | UTF-8 | Python | false | false | 779 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-11 06:38
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('team', '0001_initial'),
('foirequest', '0013_auto_2... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
a9f89df989abb980a1262104c411c0d54f5ed4f1 | f75609812d20d46a9f94ee0cfdb91c321d26b63d | /_python/python_OOP/ReverseList.py | bce461e45a9c3d243043de9f60d6131bff3880a7 | [] | no_license | IanAranha/Python2021 | eff47a20451f61b144b17f48321a7b06308aadca | d9769b8b387b77753b77f6efe3a9a270a1f158d3 | refs/heads/main | 2023-04-02T08:20:24.382913 | 2021-04-10T22:27:10 | 2021-04-10T22:27:10 | 345,918,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def reverseList(list):
mid = int(len(list)/2)
for i in range(0, mid):
print("Swapping", list[i], list[len(list)-1-i])
list[i], list[len(list)-1-i] = list[len(list)-1-i], list[i]
return list
| [
"ianorama@gmail.com"
] | ianorama@gmail.com |
9a1921c0fab1929c7b32e8be96af2137df25ab32 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_014/ch21_2020_03_04_16_45_58_943718.py | 00d24fdcc27af6720298b24527260aeea05098a5 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | a = input ('Quantos dias?')
b = input ('Quantas horas?')
c = input ('Quantos minutos?')
d = input ('Quantos segundos?')
print(a,b,c,d)
| [
"you@example.com"
] | you@example.com |
271dec9f5adcad66f6210b0577ceeb4e167480f9 | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/scratch/jakub/xdomain/examples/2D_sep_f.py | 1084bb4e78de58c3c36540538e88662be0ba3cde | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 4,901 | py | '''
Created on Sep 23, 2009
@author: jakub
'''
if __name__ == '__main__':
from ibvpy.api import FEDomain, FERefinementGrid, FEGrid, TStepper as TS,\
BCDofGroup,BCDof, RTraceDomainListField
from ibvpy.core.tloop import TLoop, TLine
from ibvpy.mesh.xfe_subdomain import XFESubDomain
... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
cff565e39aba802e39091d4bd9ce442f20ad1c56 | 87ad372898e793faf1ad89f4bb3b6e84a8002131 | /tests/unit/FundManager/test_set_next_time_lock.py | 8ce922c052d511d6829b68fa62421a68b8fab166 | [] | no_license | atsignhandle/unagii-vault-v2 | 6a9a96c11d34257bc3fdae57455ec3b2f9c0029a | 548f715f34329eb5abebffe40acbeb56a31cb6f3 | refs/heads/main | 2023-08-27T00:59:48.080152 | 2021-09-28T02:47:36 | 2021-09-28T02:47:36 | 413,448,825 | 0 | 0 | null | 2021-10-04T14:07:37 | 2021-10-04T14:07:36 | null | UTF-8 | Python | false | false | 405 | py | import brownie
import pytest
def test_set_next_time_lock(fundManager, user):
timeLock = fundManager.timeLock()
# not time lock
with brownie.reverts("!time lock"):
fundManager.setNextTimeLock(user, {"from": user})
tx = fundManager.setNextTimeLock(user, {"from": timeLock})
assert fundManag... | [
"tsk.nakamura@gmail.com"
] | tsk.nakamura@gmail.com |
152a0575c29496fc966528cfe473fc4a02bb05aa | a4364a0ee3dd9aa057c049771319c628b88b1b8d | /week5/file.py | 90250ed1abed55b0f11a3670aecbae07c9106e37 | [] | no_license | lsh931125/altole | 22e69c98af2fd673fa2dc40d58b64a6ebc0ce577 | 15afc3d511ed5be56ea091e9842408b362ad79e3 | refs/heads/main | 2023-04-10T16:15:14.865549 | 2021-04-12T14:13:59 | 2021-04-12T14:13:59 | 336,302,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # writedata.py
f = open("새파일.txt", 'w',encoding='utf-8')
for i in range(1, 11):
data = "%d번째 줄입니다.\n" % i
f.write(data)
f.close() | [
"you@example.com"
] | you@example.com |
88cf61b2fac3023bb2a72c2fb2afef1483328050 | 29da2ca6def1270be13a3096685a8e5d82828dff | /CIM15/IEC61970/Informative/InfWork/WorkStatusEntry.py | e3719f0ca36369573702570e2383844ff6dcbd92 | [
"MIT"
] | permissive | rimbendhaou/PyCIM | 75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3 | d578bb0bf1af344342bd23344385ed9c06c2d0ee | refs/heads/master | 2022-04-28T01:16:12.673867 | 2020-04-16T02:19:09 | 2020-04-16T02:19:09 | 256,085,381 | 0 | 0 | MIT | 2020-04-16T02:15:20 | 2020-04-16T02:08:14 | null | UTF-8 | Python | false | false | 2,108 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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 restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"rwl@thinker.cable.virginmedia.net"
] | rwl@thinker.cable.virginmedia.net |
a65c657ece078bdf1546ffad0971554575ffe0ec | 3d947e8502aa677398f4f8e102f6dc10dfa4a8ae | /apps/workpoint/admin.py | 1dd68861a9eef366fa3b43767a789c59b15a8e05 | [] | no_license | wd5/3gspeed | 400f65996a168efb2322e736f47de7d5667bb568 | 9451605898541bd8f912ed84d23c74e500b49595 | refs/heads/master | 2016-08-08T22:02:08.798728 | 2012-09-11T01:50:37 | 2012-09-11T01:50:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from django import forms
from apps.utils.widgets import Redactor
from sorl.thumbnail.admin import AdminImageMixin
from models import Ability, Distinct, City, Point, SpeedAtPoint, ModemType, Operator
class AbilityAdmin(AdminImageMixin, admin.ModelAdmin):
lis... | [
"steeg.xs@gmail.com"
] | steeg.xs@gmail.com |
72934dd176732ebd3730bd794e8e20805878afb9 | 3ab5cc24ce16f937fbc0d8906b5a3a3e95fd08f2 | /Kapittel-03/fasit_3.py | 1ec0549290b8def11279486f0b77f7251cdb2572 | [] | no_license | magnusoy/Python-Grunnleggende | 8aaf4ed5b373f17233bdcf38f52f5a1fa90db5bd | 984e04e285b46d920c51c92095223fee0766fa29 | refs/heads/master | 2023-02-24T21:38:35.823047 | 2021-01-19T19:37:02 | 2021-01-19T19:37:02 | 295,389,253 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | """
Oppgave 1
Gjør om all teksten i variabelen til store bokstaver.
"""
txt = "vI LæReR om PYTon i dETte kurSEt"
txt2 = txt.upper()
print(txt2)
"""
Oppgave 2
Slutter teksten med: pappesker?
"""
txt = "Her var det veldig mange tomme pappesker"
result = txt.endswith("pappesker")
print(result)
"""
Oppgave 3
Finn ut... | [
"magnus.oye@gmail.com"
] | magnus.oye@gmail.com |
11cc25e0f718e43bfcb3c39dc12f902e4724bdf2 | c5be6a92f216957d340474b58507606a38c10f5f | /course-files/projects/project_01/option1_graphics/main.py | 5b91603f485c3f9fdd9db91d718b32be8446b708 | [] | no_license | eecs110/winter2019 | 0b314c35e886b8099368ed7dfd51b707ab73c0c2 | f4107207ca1c9c10b78bdbb74fd82410b00ee363 | refs/heads/master | 2020-04-11T10:09:28.100445 | 2019-03-21T18:00:25 | 2019-03-21T18:00:25 | 161,705,160 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from tkinter import Canvas, Tk
import helpers
import utilities
import helpers
import time
gui = Tk()
gui.title('My Terrarium')
# initialize canvas:
window_width = gui.winfo_screenwidth()
window_height = gui.winfo_screenheight()
canvas = Canvas(gui, width=window_width, height=window_height, background='white')
canvas.... | [
"vanwars@gmail.com"
] | vanwars@gmail.com |
fb6cac8ca7336dff94c7a117a60d6edc63f4e026 | 19316c08712a502b1124f2b55cb98bfcbcca7af5 | /dev/docs-old/advanced/v1 cookbook/uses/2017-12-19 search abf for comments/go.py | 742202ac1771508baccbc0fe5b6b22965932ae34 | [
"MIT"
] | permissive | swharden/pyABF | 49a50d53015c50f1d5524242d4192718e6f7ccfa | 06247e01ca3c19f5419c3b9b2207ee544e30dbc5 | refs/heads/main | 2023-08-28T02:31:59.540224 | 2023-08-17T16:34:48 | 2023-08-17T16:34:48 | 109,707,040 | 92 | 39 | MIT | 2023-04-06T00:37:29 | 2017-11-06T14:39:21 | Jupyter Notebook | UTF-8 | Python | false | false | 405 | py | import glob
import sys
import os
sys.path.insert(0,os.path.abspath("../../../src/"))
import pyabf
if __name__=="__main__":
PATH=R"X:\Data\projects\2017-01-09 AT1-Cre mice\2017-01-09 global expression NTS\data"
for fname in sorted(glob.glob(PATH+"/*.abf")):
abf=pyabf.ABF(fname)
if not abf.commen... | [
"swharden@gmail.com"
] | swharden@gmail.com |
ddd8b19f908ab3f029b6724dfada7b82a7cf029c | 19af5a32468f39e8fa198901b6585ca485aca0ca | /sketches/particle/particlesystem.py | 669112dca09c760ea2c1c201df79b2ce2046e4dd | [
"MIT"
] | permissive | kantel/nodebox1 | 9bf8f4bd5cd8fde569cb235a60be2bda4607ab76 | 9f9e8fe3cb7f033e55c4a52fe106c6b3fd849406 | refs/heads/master | 2022-05-18T12:12:14.314978 | 2022-04-09T16:04:00 | 2022-04-09T16:04:00 | 92,529,020 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | # Particle-System
# Nach dem Processing (Java) Sketch von Daniel Shiffmann
# aus: The Nature of Code, o.O. 2012, Seite 149ff
size(560, 315)
speed(30)
colormode(RGB)
from pvector import PVector
#---------------------Klassendefinitionen ------------------------
class Particle(object):
def __init__(self, l):
... | [
"joerg@kantel.de"
] | joerg@kantel.de |
952ec57240ec0cd076b3210096804a21425ada68 | 839ed24e7ecf66b6983f4f2629ef87b90c02d41e | /C/python3/c025.py | babcf7bbffb550765c70a42db073bacaff42438b | [] | no_license | ht0919/ProgrammingExercises | 86634153be11d08ba45c8d06bf2574b48974a2a6 | 5a9dc356603e3a54d7fdd9d8780c8851f7f37928 | refs/heads/master | 2020-04-04T07:32:09.083569 | 2018-10-17T04:28:37 | 2018-10-17T04:28:37 | 25,193,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | M = int(input()) # 1回に運べる枚数
N = int(input()) # FAXが届く回数
first = True
cnt = 0
for i in range(N):
tmp = input().rstrip().split(' ')
x = int(tmp[0]) #時
y = int(tmp[1]) #分
c = int(tmp[2]) #枚数
if first == True:
# 最初のケース
h = x
p = c
first = False
else:
# 2回め以降のケ... | [
"ht0919@gmail.com"
] | ht0919@gmail.com |
a7b89ed666f90f741189709714a0d769e456603a | 9dc496421cc79235c6ad4a5207de52ec2298b0dd | /post/migrations/0005_auto_20190117_1443.py | 1eab8ae327ec6f5836545c39540e0aa3ad2f1b77 | [] | no_license | m0nte-cr1st0/my-first-blog | f9494189566984c62f16e579830074e539d19bd8 | 56aa3804253ea6c80560b6b5fcc6534614a0ac5f | refs/heads/master | 2020-04-17T14:21:11.979436 | 2019-01-22T11:36:20 | 2019-01-22T11:36:20 | 155,852,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 2.1.5 on 2019-01-17 12:43
from django.db import migrations, models
import post.models
class Migration(migrations.Migration):
dependencies = [
('post', '0004_auto_20190117_1429'),
]
operations = [
migrations.AlterField(
model_name='post',
nam... | [
"dinamo.mutu111@gmail.com"
] | dinamo.mutu111@gmail.com |
261b1e853ef38fe2040e5be44aa5017d5c600f5c | f76b743338f48bef09bdf9447cf230719b0a3c76 | /深度学习/分数阶微分/赵骞/mnist_loader.py | e0a9c01d325e95807daebd1d75c81bde7434d8c0 | [] | no_license | shao1chuan/regression | ca71a165067f7407a598f593d61e1df24632a42e | 4ec9e40b1eafb697f89e956d1c625d8bb8c10ada | refs/heads/master | 2023-08-23T01:30:05.924203 | 2021-10-13T14:32:43 | 2021-10-13T14:32:43 | 329,070,549 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | """
mnist_loader
~~~~~~~~~~~~
A library to load the MNIST image data. For details of the data
structures that are returned, see the doc strings for ``load_data``
and ``load_data_wrapper``. In practice, ``load_data_wrapper`` is the
function usually called by our neural network mycode.
"""
#### Libraries
# Standard l... | [
"4448445@qq.com"
] | 4448445@qq.com |
4ac51470ec597cda7528073e0c5c0b5d8d5a926f | 4a50774fb00196e0bb57edf47a442e30dc1aa5be | /ฝึกเขียน/For_loop/mainloop.py | 614d7b696686ddbf50faf163e35196e13cb38ec3 | [] | no_license | Sittisukintaruk/learning-Coding-Self-Python | 1124581aba4ebb01bcdee85e328a67d9c061931f | b0d2cad76a54ab94ceed3b456eca48eb09225aa3 | refs/heads/master | 2023-02-16T21:48:57.310708 | 2021-01-13T18:10:57 | 2021-01-13T18:10:57 | 298,890,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import math
def fact (n):
if n >= 0:
if n == 0 or n == 1 :
return 1
else:
f = 1
for i in range(2 ,n+1):
f = f * i
return f
else:
return math.nan
def permut(n , k):
return fact (n) / (fact (n - k))
def com... | [
"fah78963214@gmail.com"
] | fah78963214@gmail.com |
5c5537d89bd2cf5d80512c0fb6160539d94352fb | 870599f68f29701f6dc0c9911183ee1127a0e8f1 | /attend/solver.py | 179bdf6840c56b4794e687c8988ec6f2264ce95d | [] | no_license | rubenvereecken/attend | dc8168df8fde45421ed1f02a8dc519fc07b836ee | d5fedeec589956ba86c11a93709ad2c7d4f01fcf | refs/heads/master | 2021-03-27T20:50:00.543071 | 2017-09-29T09:42:16 | 2017-09-29T09:42:16 | 95,661,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,082 | py | import tensorflow as tf
import numpy as np
from time import time
from collections import OrderedDict
from .util import *
from attend.log import Log; log = Log.get_logger(__name__)
from attend import util, tf_util
import attend
class AttendSolver():
def __init__(self, model, update_rule, learning_rate, stats_ever... | [
"rubenvereecken@gmail.com"
] | rubenvereecken@gmail.com |
16786f8c9d2bef2bd6ac9518fcf57cc7fc19e607 | 73770ddb5441f589742dd600545c555dd9922ae8 | /db_scripts/versions/d2c4a25c3c1d_v30_course_tree.py | 824db58eae92c5499013a31689236ed782979526 | [] | no_license | annndrey/trainingsite | c200a203c7a5fe832de70e9497a93df3745d63ef | 6dce55dc25b2a6f5285a8cfba1fbd7d83dbbe96b | refs/heads/master | 2020-03-29T16:11:06.336532 | 2018-09-24T12:53:55 | 2018-09-24T12:53:55 | 150,102,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,792 | py | """V30_course_tree
Revision ID: d2c4a25c3c1d
Revises: a24e5727c770
Create Date: 2017-08-11 17:37:18.038419
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'd2c4a25c3c1d'
down_revision = 'a24e5727c770'
branch_labels = None
de... | [
"annndrey@trololo.info"
] | annndrey@trololo.info |
6c833c96e9b2d68d9022c12b7ad1c058fa95fa67 | 4252102a1946b2ba06d3fa914891ec7f73570287 | /pylearn2/datasets/tfd.py | 2a8cff8eaf7353dfa2b022826fe526b825b96b87 | [] | no_license | lpigou/chalearn2014 | 21d487f314c4836dd1631943e20f7ab908226771 | 73b99cdbdb609fecff3cf85e500c1f1bfd589930 | refs/heads/master | 2020-05-17T00:08:11.764642 | 2014-09-24T14:42:00 | 2014-09-24T14:42:00 | 24,418,815 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,795 | py | import numpy as np
from pylearn2.datasets import dense_design_matrix
from pylearn2.utils.serial import load
from pylearn2.utils.rng import make_np_rng
class TFD(dense_design_matrix.DenseDesignMatrix):
"""
Pylearn2 wrapper for the Toronto Face Dataset.
http://aclab.ca/users/josh/TFD.html
Parameters
... | [
"lionelpigou@gmail.com"
] | lionelpigou@gmail.com |
7445fa91b3c0c18b7a57868865369d11968c26c3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_196/ch25_2020_03_11_11_18_42_760637.py | 290e11d5e107eaf55948946794c96f9f115582db | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | a = float (input("Qual a velocidade?"))
b = float (input("Qual o ângulo de lançamento?"))
g = 9.8
from math import sin
d = ((a**2)*(sin*(2*b)))/(g)
if (100-d)==2 or (100-d)<2:
print ("Acertou!")
elif d < 98:
print ("Muito perto")
else:
print ("Muito longe")
| [
"you@example.com"
] | you@example.com |
3860aeb9a171e0c0407f824c7a3b97b4b7518ba3 | ed682f663f29d43f45ece61afe8925055ecec161 | /wsconnections/counter/views.py | 0621dfc7e6f7a03bad8cbd26459756653f7f3035 | [] | no_license | aaronbassett/django-ws-connections | 0f24493c157748d809d623d610f6f21e27dbdba2 | 675b2431ee80bf76aee744a904eee0e284324678 | refs/heads/master | 2020-05-09T13:28:11.611876 | 2019-04-10T19:56:55 | 2019-04-10T19:56:55 | 181,153,357 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from django.views.generic import TemplateView
from nanoid import generate
class CountersWrapperView(TemplateView):
template_name = "counter/index.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['nanoid'] = generate(size=6)
return context... | [
"me@aaronbassett.com"
] | me@aaronbassett.com |
6477f7f8502a7098015934e5eb7e18a92b6d2f88 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03469/s126935227.py | 78a20b768e62235c2f99c198722cfc536c92ce38 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | wrong_date = input()
exact_date = wrong_date.replace('7', '8', 1)
print(exact_date) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
82b25688d4151650c665230d32673cf1ff5e9ffc | 038a78e9496a4887fde09ebd406d3c23866a7b80 | /lookout/core/tests/__init__.py | b585b6e9dfbe6d5e1b466609f330c1b9da2d0b7d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | warenlg/lookout-sdk-ml | e07305c913b6a933634f669cb425ea2dffd92937 | de36358b711baff61ee407c01b8086cea45537e5 | refs/heads/master | 2020-04-06T11:37:23.060886 | 2019-02-28T10:59:36 | 2019-02-28T10:59:36 | 157,424,280 | 0 | 0 | null | 2018-11-13T18:07:37 | 2018-11-13T18:07:36 | null | UTF-8 | Python | false | false | 97 | py | from lookout.core.test_helpers import server
if not server.exefile.exists():
server.fetch()
| [
"vadim@sourced.tech"
] | vadim@sourced.tech |
1a4049be4c964247c6ed69d9dbb126d7e5729c14 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/deviceupdate/v20200301preview/__init__.py | ed784172151ec8f045708ca4679c6f49841e4023 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .account import *
from .get_account imp... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
3557914301b9c6b30c03271309e557c40ac31c24 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/devices/v20200301/iot_dps_resource.py | 24ff4aa176709c49c612e62feff015417f73edda | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 7,270 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
5cede28da970acd0decfb0e8f209f2c2e9e56a86 | 9d734ff697cadaf79ec645a1440a8d690977a97e | /code/py/robbie/execution/execsrclink.py | 4bbb0873fab2dd33561a1cd60a3c30b1abdddb70 | [] | no_license | karapuz/quad | 85ed26f6479e58c3d88b50ac98c51007fcefaf83 | e2e436eedfb01212a112e787b483db925b063f96 | refs/heads/master | 2021-06-05T12:19:35.298605 | 2016-10-26T12:07:55 | 2016-10-26T12:07:55 | 58,860,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,192 | py | '''
AUTHOR : ilya presman, 2016
TYPE: : lib
DESCRIPTION : execution.execsrclink - fixlink for the exec source
'''
import traceback
import quickfix as quickfix
import robbie.fix.util as fut
import robbie.execution.util as execut
from robbie.util.logging import logger
from robbie.echo.stratutil import EX... | [
"ilya.presman@gmail.com"
] | ilya.presman@gmail.com |
2976ea7ae45914e9623b137b7d0c8dbd805a632f | f71273e5a2c4382ad990e350dfd58b702db56fdf | /app/migrations/0002_hashtag.py | 79996242ffd39f4eb93d96ffb79c5a15687fff46 | [] | no_license | jangheeseung/Django_pr | dcb6c4596b61a8f524964f735b726087c763ad7c | 94dfe789b361ddb6cf28575d42238f85f8d25129 | refs/heads/master | 2023-04-27T08:07:16.398124 | 2019-06-02T07:19:07 | 2019-06-02T07:19:07 | 189,816,258 | 0 | 0 | null | 2022-11-22T03:33:52 | 2019-06-02T07:15:27 | Python | UTF-8 | Python | false | false | 497 | py | # Generated by Django 2.2 on 2019-05-21 15:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Hashtag',
fields=[
('id', models... | [
"gmltmd121@gmail.com"
] | gmltmd121@gmail.com |
bb4c204fd838cabab66d96bd22ffe3b75aba2054 | 2bba4782f9085d2c0c324f6668709a81e482e095 | /secao06/ex39.py | 60905c0de2ffaf50db15faaf89b89564324145f2 | [] | no_license | Saccha/Exercicios_Python | 886ae07392f006226688b8817bf17a7a52020ef9 | e54203cb8754180f0fe120ee60c462c2e74c86e3 | refs/heads/main | 2023-04-18T06:44:42.243579 | 2021-04-18T03:49:30 | 2021-04-18T03:49:30 | 346,230,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | """
39. Faça um programa que calcule a área de um triângulo, cuja base e altura
são fornecida pelo usuário. Esse programa não pode permitir a entrada de dados inválidos,
ou seja, medidas menores ou iguais a 0.
"""
base = int(input("Digite o tamanho da base do triângulo: "))
if base > 0:
altura = int(input("Digite o... | [
"noreply@github.com"
] | Saccha.noreply@github.com |
421b77d86e1828dc04ab6239fe78cafe93a062c5 | d6e53e37c394acab024696b15c2da0a53a00d317 | /zanhu/news/tests/test_urls.py | d11cf8b1a85d2fb9e98a5ab9fc6d0c7b5a5636e7 | [] | no_license | 3pacccccc/zanhu | 04943ebefb32bac5668287c75dd1e6793010760d | c4ee76ef6018ae98cab7ea53255feeae83c8dfaf | refs/heads/master | 2022-12-13T21:24:18.136698 | 2019-07-21T17:19:15 | 2019-07-21T17:19:15 | 191,209,450 | 4 | 0 | null | 2022-12-08T05:17:22 | 2019-06-10T16:57:02 | CSS | UTF-8 | Python | false | false | 636 | py |
from test_plus import TestCase
from django.urls import reverse, resolve
class TestUserURLs(TestCase):
def setUp(self):
self.user = self.make_user()
def test_detail_reverse(self):
self.assertEqual(reverse('users:detail', kwargs={'username': 'testuser'}), '/users/testuser/')
def test_deta... | [
"351489917@qq.com"
] | 351489917@qq.com |
8fbf4dbd5b542b886e1093c883ec70240afca7aa | 3be42b83a15d022f5863c96ec26e21bac0f7c27e | /tensorflow_probability/python/bijectors/categorical_to_discrete_test.py | 9ed4b7e54dc20c538567c8a95c95853e66ff5711 | [
"Apache-2.0"
] | permissive | ogrisel/probability | 846f5c13cddee5cf167b215e651b7479003f15d2 | 8f67456798615f9bf60ced2ce6db5d3dba3515fe | refs/heads/master | 2022-11-09T10:53:23.000918 | 2020-07-01T23:16:03 | 2020-07-01T23:17:25 | 276,580,359 | 2 | 1 | Apache-2.0 | 2020-07-02T07:37:58 | 2020-07-02T07:37:57 | null | UTF-8 | Python | false | false | 5,842 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
cb90f482637e3cc11e4a5c03d5017b231addd2d6 | 2e5c9b0e0cd6a9e0185a27675b405f0458334c1c | /pyarchinit/pyarchinit_Schedaind_mainapp.py | b876200713b124ed23f490bdd04a81ccf093ab9b | [] | no_license | pyarchinit/deleting_pyarchinit_beta_test_qgis2 | 80e59501dcf9f444e255c7a9111af3b19f2c1a6b | f0e0e2fad43e55207c4a122f4fa4083ce0e9eef2 | refs/heads/master | 2021-01-10T18:37:36.546306 | 2013-09-29T13:23:24 | 2013-09-29T13:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,710 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
/***************************************************************************
pyArchInit Plugin - A QGIS plugin to manage archaeological dataset
stored in Postgres
-------------------
begin : 2007-12... | [
"pyarchinit@gmail.com"
] | pyarchinit@gmail.com |
d1110e2cb826366becbe3ad092ac71f92eaa8b9b | bb3c7f1af8520ec1ba117353819af1066d098b35 | /Backend/ShipEzy/settings.py | eead43054d37953888167f2c0e1321fc750a47f1 | [] | no_license | RitikaSingh02/ShipEzyy | fc36cab264848d61090d4a0824cde7f453b8fcc6 | a00e86afd39efcfe99a2e770cbde5d15ff8fdae0 | refs/heads/master | 2023-07-11T21:50:58.788964 | 2021-07-30T15:56:05 | 2021-07-30T15:56:05 | 394,031,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | import os
from dotenv import load_dotenv
load_dotenv('./.env')
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = os.environ.get('secret_key')
DEBUG = True
ALLOWED_HOSTS = ['*']
INSTALLED_APPS = [
'django.co... | [
"ritika2002singh@gmail.com"
] | ritika2002singh@gmail.com |
9e0d5240635da3a56ff4da7586e70ff3ae30616e | 84abce44bd0278fa99e9556168290675f399834c | /EcalAlCaRecoProducers/config/reRecoTags/Cal_Nov2016_ped_v1.py | d5be47190da438134c7f8e99b01ad280f2f89499 | [] | no_license | ECALELFS/ECALELF | 7c304c6b544b0f22a4b62cf942f47fa8b58abef0 | 62a046cdf59badfcb6281a72923a0f38fd55e183 | refs/heads/master | 2021-01-23T13:36:31.574985 | 2017-06-22T12:26:28 | 2017-06-22T12:26:28 | 10,385,620 | 1 | 9 | null | 2017-06-30T12:59:05 | 2013-05-30T15:18:55 | C++ | UTF-8 | Python | false | false | 725 | py | import FWCore.ParameterSet.Config as cms
# Official GT for september re-reco
# pedestal tags produced by Jean for pedestal studies:
# 6a9a2818932fce79d8222768ba4f2ad3f60f894c payload is used (first Bon pedestal run of 2016, Apr)
from CondCore.ESSources.CondDBESSource_cfi import *
#CondDBConnection.connect = cms.stri... | [
"shervin.nourbakhsh@cern.ch"
] | shervin.nourbakhsh@cern.ch |
f7a2fb5e4a3b14443a444dcc6a0e365dd6f4e98b | 4076cbced07fa1d62f8f947471899bdb19ce2624 | /tests/test_cloudformation/fixtures/vpc_single_instance_in_subnet.py | 78f2a82d5d2af91b925b39ea33cf7d93ddde0746 | [
"Apache-2.0"
] | permissive | andresriancho/moto | 7afbc8b543342d9774bb865cdaeccbefa5adcb87 | c65ff170b2f483b4ff630d3256959751c7afe3a5 | refs/heads/master | 2020-12-26T04:55:27.092585 | 2014-08-20T17:52:23 | 2014-08-20T17:52:23 | 15,454,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,770 | py | template = {
"Description": "AWS CloudFormation Sample Template vpc_single_instance_in_subnet.template: Sample template showing how to create a VPC and add an EC2 instance with an Elastic IP address and a security group. **WARNING** This template creates an Amazon EC2 instance. You will be billed for the AWS resour... | [
"spulec@gmail.com"
] | spulec@gmail.com |
1f802b207229f09d76b481f39de935bcd569ef13 | 6db8aba817161dc573f16cde185f4a1c02c753e0 | /KadaneAlgo.py | b019a9517f32915d97e6d71d177e4028b4821033 | [] | no_license | Prakashchater/Leetcode-array-easy-questions | 456153a13397c895acae6550dad8f1b1851ff854 | 7c5d40f9d68dbf61f4a61a33d9b54f769473b057 | refs/heads/main | 2023-06-19T14:01:52.483440 | 2021-07-22T19:44:40 | 2021-07-22T19:44:40 | 354,926,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | """
# Time: O(N) Space: O(1)
def kadaneAlgo(arr):
maxsum = 0
currsum = 0
for i in range(len(arr)):
currsum = currsum + arr[i]
if currsum > maxsum:
maxsum = currsum
if currsum < 0:
currsum = 0
return maxsum
if __name__ == '__main__':
arr = [5, -4... | [
"prakashchater@gmail.com"
] | prakashchater@gmail.com |
1331240bbd0b83d5db30d30dc807f04821e2ffaa | 927b50cdaf1c384c8bbf6f13816d0ba465852fd8 | /main/admin.py | 28531a2a583252a8277b2b1e07b6cbe1b50faae0 | [
"MIT"
] | permissive | jhabarsingh/DOCMED | f37d336483cffd874b0a7db43677c08a47bd639c | 8a831886d3dd415020699491687fb73893e674c5 | refs/heads/main | 2023-04-26T06:45:10.409633 | 2021-05-19T14:37:53 | 2021-05-19T14:37:53 | 316,683,855 | 3 | 5 | MIT | 2021-02-21T13:32:33 | 2020-11-28T07:51:22 | JavaScript | UTF-8 | Python | false | false | 341 | py | from django.contrib import admin
from main.models import UserCategory, Patient, Doctor, Appointment, Prescription, Contact
# Register your models here.
admin.site.register(UserCategory)
admin.site.register(Patient)
admin.site.register(Contact)
admin.site.register(Doctor)
admin.site.register(Appointment)
admin.site.re... | [
"jhabarsinghbhati23@gmail.com"
] | jhabarsinghbhati23@gmail.com |
f485063b77515a897b7551e37b28a77deb3059e6 | 700577285824a21df647aba584d51420db59c598 | /OpenColibri/allauth/socialaccount/providers/oauth2/views.py | 669a16b17622bb341dac4351bf60494a8bf28ae9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | epu-ntua/opencolibri | 2c05acc43ef1b1c86608f6e729a4f83773b01b73 | 78e2411f78a0213b3961145cfe67cd52398cea70 | refs/heads/master | 2016-09-11T02:39:43.798777 | 2014-04-06T11:30:39 | 2014-04-06T11:30:39 | 15,764,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,973 | py | from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from allauth.socialaccount.helpers import render_authentication_error
from allauth.socialaccount import providers
from allauth.socialaccount.providers.oauth2.client import (OAuth2Client,
... | [
"smouzakitis@epu.ntua.gr"
] | smouzakitis@epu.ntua.gr |
eca051c8d2c5c42eb02bcae3847065a964ac1b97 | 721c11ed6bc1bfd1898290baebea5cd065ab84d1 | /train/jfda/detector.py | f7f25571a52fe73b3147ab2d87628a8ff80ddb94 | [
"MIT"
] | permissive | cnanyi/MTCNN | 1cea91027bbcb750a04e9c324f9319daf74bbf74 | 33d171a93e25f65e3de4e39aa31b75585cd70be2 | refs/heads/master | 2023-02-08T22:39:35.000375 | 2021-01-03T09:29:00 | 2021-01-06T14:50:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,981 | py | # pylint: disable=bad-indentation, no-member, invalid-name, line-too-long
import math
import cv2
import caffe
import numpy as np
from utils import crop_face, Timer
class JfdaDetector:
'''JfdaDetector
'''
def __init__(self, nets):
assert len(nets) in [2, 4, 6, 8], 'wrong number of nets'
self.pnet, self.... | [
"1293830063@qq.com"
] | 1293830063@qq.com |
c738ca9f29e6ac11acd68e45f8559240446bfa5b | b7da8d949067a6a7c3a177693ba1bc1f1fe4d533 | /quantdigger/branches/quantweb/demo/backup/dstushare.py | 5a9cb6ddd582847d0365cd348ccd8339f0c35624 | [] | no_license | sunlandli/stock | 422722d14405e368f7f295ef2ef7c40e880cd4ef | 0112f70335d5ae17b05093ac7c36824a41caf88c | refs/heads/master | 2021-07-15T15:21:45.834055 | 2017-10-19T07:05:13 | 2017-10-19T07:05:13 | 100,480,563 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | # -*- coding: utf-8 -*-
import pandas as pd
import tushare as ts
import cache as cc
# tsshare的get_h_data接口默认只取一年
# 所以这里使用一个很早的时间强制获取所有历史数据
_VERY_EARLY_START = '1988-12-12'
def _process_dt(dt):
return str(pd.to_datetime(dt).date()) if dt else None
def _process_tushare_data(data):
data.open = data.open.astype... | [
"sunlandli@tom.com"
] | sunlandli@tom.com |
667ab42b912802cfb95982deef3a8ed88a2b595b | 0a88cb38439a3e19dd4d4f052895c94f19979649 | /box/Scripts/migrate-script.py | ceadc22465e8cc343d82766ee1a183e9d804415d | [] | no_license | pace-noge/online_shop | a9427fbb2eff205af87f03c0bbb3585a37bb697f | ac20010d4046c86b399217cab09267c890a777c2 | refs/heads/master | 2020-05-18T03:03:16.364749 | 2013-02-15T06:28:28 | 2013-02-15T06:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | #!C:\EmeraldBox\box\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'sqlalchemy-migrate==0.7.2','console_scripts','migrate'
__requires__ = 'sqlalchemy-migrate==0.7.2'
import sys
from pkg_resources import load_entry_point
sys.exit(
load_entry_point('sqlalchemy-migrate==0.7.2', 'console_scripts', 'migrate')()
)
| [
"nasa.freaks@gmail.com"
] | nasa.freaks@gmail.com |
61c2511bc853396c22902d39e5574a0bff6f5c68 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D12A/CODECOD12AUN.py | b336b95e699e8b394f68b938224e628f94b6e90f | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,651 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD12AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'FTX', MIN: 0, MAX: 9},
{ID: 'RFF'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
5e5f8bba2d3970f3c9198111bf0ec501b57389a9 | 7e4c86df42e3c4780e9b01026c904769f6dc39ec | /class-35/demos/graph/test_graph.py | 2f7a9fb4b5e07ca80c434c89c3572f1c68ba882f | [] | no_license | everydaytimmy/seattle-python-401d16 | 3a85c55204471ae11ce31cf0b6fc688eea7aee9f | 372a4c097f6c217098d1f8a420a37168e2c6229f | refs/heads/main | 2023-06-25T03:55:06.288698 | 2021-07-13T19:08:31 | 2021-07-13T19:08:31 | 370,841,803 | 0 | 0 | null | 2021-05-25T22:20:32 | 2021-05-25T22:20:32 | null | UTF-8 | Python | false | false | 2,714 | py | """
Implement your own Graph. The graph should be represented as an adjacency list, and should include the following methods:
add node
Arguments: value
Returns: The added node
Add a node to the graph
add edge
Arguments: 2 nodes to be connected by the edge, weight (optional)
Returns: nothing
Adds a new edge between t... | [
"jb.tellez@gmail.com"
] | jb.tellez@gmail.com |
b68210d8b6efbf80cbe001da472b636f94873e39 | 18be742be30452764865a830abb2327ab779b01d | /ARP/ARPClient/main.py | bb2b1e3ee48188b03819be13f30bea51a684ac9a | [] | no_license | mhdr/Thesis | 06823914a1f9eca7d75501844c15ac20435cf754 | 9242d25143cc2fcbf768ca0d01dc80a7521fdf6c | refs/heads/master | 2021-01-10T06:30:44.860331 | 2016-01-02T05:28:48 | 2016-01-02T05:28:48 | 46,107,026 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,572 | py | import socket
import threading
from colorama import Fore
from datetime import datetime
from datetime import timedelta
import os
import time
from Message import Message
counter=0
mac_list=[]
timer_initial_value=5
timer=timer_initial_value
is_traffic_blocked=False
def get_counter():
lock=threading.BoundedSemapho... | [
"ramzani.mahmood@gmail.com"
] | ramzani.mahmood@gmail.com |
48c55f7e8add217fd0d8ebd93b3e5374465ab76c | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/gaming/v1/gaming-v1-py/google/cloud/gaming/__init__.py | 89c8b7badaaf852bab45a5e7dbfdc0a57e9e0f73 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,404 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
393109ee8fa16eb9b5501ef98f949f56c88d7743 | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /cpmpy/euler1.py | 6979ed7c3f6ecb14b65e563e98144779fb1776eb | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 1,443 | py | """
Project Euler problem 1 in cpmpy.
http://projecteuler.net/index.php?section=problems&id=1
'''
If we list all the natural numbers below 10 that are multiples of 3 or 5,
we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
'''
Using Constraint Modeling fo... | [
"hakank@gmail.com"
] | hakank@gmail.com |
cbffa1fcedb73a4050e1a2aa7b4fd171ff4888b8 | c71f575fd537a7eb1fe2a68e7f350e8461baeeae | /pytext/data/contextual_intent_slot_data_handler.py | cf3870a7d2fc5a10f48a9eb30866a5d6fcada624 | [
"BSD-3-Clause"
] | permissive | orchestor/pytext | bfe6fc5e6010fd1cadf374cb05c18f892ebee0f4 | eaba52f9757654dc384adee0d37732bdda7634de | refs/heads/master | 2020-05-14T11:03:14.747987 | 2019-04-15T23:24:34 | 2019-04-15T23:29:17 | 181,771,040 | 1 | 0 | NOASSERTION | 2019-04-16T21:36:43 | 2019-04-16T21:36:43 | null | UTF-8 | Python | false | false | 9,389 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Any, Dict, List
from pytext.config.contextual_intent_slot import (
ExtraField,
ModelInput,
ModelInputConfig,
TargetConfig,
)
from pytext.config.field_config import DocLabelConfig, WordLabel... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
15779bacd0de6d82ef5a73e93bd98f8348762423 | 8e939e0f075a14377d87e0eb7729e4f0818f1df9 | /zarc/old/views_2017-05-21-00:37:34.py | 94112e6a1affd874baef018a6d3f7c1f0238331d | [
"MIT"
] | permissive | mimcomp/caseke | 072d076c9442c19916d8f71ec25fa45676031914 | 3c0749a431bb2e2c82bcb292d528c748bea8b1ba | refs/heads/master | 2020-06-02T15:42:24.159728 | 2019-06-03T16:34:09 | 2019-06-03T16:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,520 | py | # coding: utf-8
# AUTOGENERATED BY gen_script.sh from kpony4.py
# Copyright (C) Nyimbi Odero, Sun May 21 00:31:54 EAT 2017
import calendar
from flask import redirect, flash, url_for, Markup
from flask import render_template
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder.view... | [
"nyimbi@gmail.com"
] | nyimbi@gmail.com |
0c15e3f95e19147d72f251d03c7fadef4f1ac626 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_041/ch23_2019_04_02_12_34_31_027536.py | 3c83817e385509191b67c91a0d4fb30eb41e21ab | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | def verifica_idade(idade):
if idade>21:
return 'Liberado EUA e Brasil'
elif idade>=18 and idade<=21:
return 'Liberado BRASIL'
else:
return 'Não está liberado' | [
"you@example.com"
] | you@example.com |
b5d8e0977a892778bc9c2ddbb5b7885a79e76cee | 20021a5bc80f2649269cfb7e1b7f10d6f6b6a839 | /POCScan/information/jsp_conf_find.py | 1374f06350e84617bc93cab0f8a3c56987e7a055 | [] | no_license | polosec/SZhe_Scan | bddd1f53452c44837a6ddf902546975879449e11 | d5e20991530de763c374b5a3c6e8db689bff5265 | refs/heads/master | 2022-07-19T09:31:05.840747 | 2020-05-19T14:57:07 | 2020-05-19T14:57:07 | 265,748,880 | 0 | 1 | null | 2020-05-21T03:49:48 | 2020-05-21T03:49:47 | null | UTF-8 | Python | false | false | 957 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: java配置文件文件发现
referer: unknow
author: Lucifer
description: web.xml是java框架使用的配置文件,可以获取敏感信息
'''
import sys
import requests
import warnings
from termcolor import cprint
class jsp_conf_find_BaseVerify:
def __init__(self, url):
self.url = url
def run(s... | [
"2585614464@qq.com"
] | 2585614464@qq.com |
dbf639cc2ed00a1b48e93b1cfeba7c265bbfc258 | fdfd0d6cf04509eb642c1065240df297b8b7bf91 | /tests/helpers.py | 7b1d59c37a6f8cad92e6a3c07223c8a013893308 | [
"BSD-3-Clause"
] | permissive | lnielsen/cernservicexml | 747902c102f3e25e4c941c8aef29acb62bf73078 | 3f1691a81fd0534678a32acd2a352de4de55a82e | refs/heads/master | 2021-01-20T13:47:33.100484 | 2015-06-16T15:10:48 | 2015-06-16T15:10:48 | 37,516,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
#
# This file is part of CERN Service XML
# Copyright (C) 2015 CERN.
#
# CERN Service XML is free software; you can redistribute it and/or modify
# it under the terms of the Revised BSD License; see LICENSE file for
# more details.
"""Test helpers."""
from __future__ import absolute_import, p... | [
"lars.holm.nielsen@cern.ch"
] | lars.holm.nielsen@cern.ch |
dfe3ebea885fdd94e4bb398302f5e26a34f93f98 | df5e91385e3a4c89116a111a10ff460e4e380b86 | /manage.py | a8efacc67cdd1f80836e5c4953be5ad41c29f50d | [] | no_license | taojy123/TBspider | 820a2da618fff5c49633954e7f411bcff263158c | 8b6844f2d8d0d9639e0e69af29517ef639ec4d26 | refs/heads/master | 2020-12-24T15:49:13.380774 | 2014-03-07T12:49:58 | 2014-03-07T12:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tbspider.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"taojy123@163.com"
] | taojy123@163.com |
3ae564ec2995618a677d2ebe236c5f0ae443ef5e | e6683202f97190f8a5230fbb0b99d9692f10872c | /core/lib/dns/rdtypes/ANY/SSHFP.py | b6ed396f1d2897efeb5c6ce2155c58ad87a41ff7 | [
"MIT"
] | permissive | swagkarna/arissploit | 0ae6ba9c91aa8a1160597f052462a1030276688d | b0a58f61afc12ac78c65e0275dfa5e4d1e44989e | refs/heads/master | 2020-09-28T18:51:40.741777 | 2019-12-08T21:54:15 | 2019-12-08T21:54:15 | 226,839,315 | 3 | 0 | MIT | 2019-12-09T09:57:43 | 2019-12-09T09:57:43 | null | UTF-8 | Python | false | false | 2,829 | py | # Copyright (C) 2005-2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "... | [
"noreply@github.com"
] | swagkarna.noreply@github.com |
b639fbb2299a12acf5adfa56c7eb10aefd3818fb | 3b5c46ce2daa75e1e157838d0f6cfd92469471a0 | /plastering/inferencers/scrabble_helper.py | a69252ea56f5e2fdc8ae172faddd96b0a3c939dc | [
"MIT"
] | permissive | plastering/plastering | 1b4e9c04fce4b26b22fe5ade05af9baf644b4eaa | 26ffeecb38844ebb122fde5d9bd2276a7b4150a0 | refs/heads/master | 2023-04-04T07:50:59.087529 | 2021-05-17T23:31:40 | 2021-05-17T23:31:40 | 149,086,461 | 37 | 17 | MIT | 2023-03-24T23:19:24 | 2018-09-17T07:32:17 | Python | UTF-8 | Python | false | false | 3,071 | py | from collections import defaultdict
import pdb
from pkg_resources import resource_string
from io import StringIO
import pandas as pd
from ..metadata_interface import LabeledMetadata, RawMetadata
def elem2list(elem):
if isinstance(elem, str):
return elem.split('_')
else:
return []
def csv2j... | [
"bk7749@gmail.com"
] | bk7749@gmail.com |
50854a154c4b01f862c232713478f59d981e5b6d | f34a81fa55a80130e2f70197e011cccb9dee063f | /python/oreilly_intermediate_python/unit6_scraping/scraper3.py | 53731b7e6bcce199400ed90c7903128ae2c3e0bd | [] | no_license | ilyarudyak/data_science | 7d71ecdf17cc68be33b598ae2e51cba48b5b3aab | deb992b2760c4fea7f39f64089f6c1884f3fdb51 | refs/heads/master | 2020-05-27T11:10:32.679938 | 2017-02-22T21:29:26 | 2017-02-22T21:29:26 | 82,545,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from urllib.request import urlopen, urlretrieve
from urllib.parse import urljoin
from bs4 import BeautifulSoup
import os
baseUrl = "https://apod.nasa.gov/apod/archivepix.html"
archiveHtmlStr = urlopen(baseUrl).read()
for link in BeautifulSoup(archiveHtmlStr, "html.parser").findAll("a", limit=10):
imgBaseUrl = ur... | [
"ilyarudyak@yahoo.com"
] | ilyarudyak@yahoo.com |
3f9e10788f14ab2cd56b8d0fcd5113a3d30b5a99 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Hans.CMN/Serif_8/pdf_to_json_test_Hans.CMN_Serif_8.py | 2f64816c501918d27c2ac1dc0830fcb5c2325910 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Hans.CMN/Serif_8/udhr_Hans.CMN_Serif_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
7048b0d769e8eb1e550e5e242e33d057e16460c5 | fe4df940d16f8a9657028ee53a1780cccd32c817 | /Python/test_roman_numerals.py | 6fdd59f316e790b6f9ddf90e47a3baa9b1f53240 | [
"BSD-2-Clause"
] | permissive | Kwpolska/roman_numerals | 2e6d700d9852d5072d96524d73169445e7288753 | 887e648a39fa73583f4b7cf330436f94bf88325e | refs/heads/master | 2020-08-01T16:01:15.539378 | 2018-01-01T00:00:00 | 2017-12-31T18:33:35 | 73,572,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | # -*- encoding: utf-8 -*-
# Test Suite for Roman Numeral Converter
# Copyright © MMXVI-MMXVIII, Chris Warrick.
# All rights reserved.
# License: 3-clause BSD, see main file for details.
"""Test suite for Roman Numeral Converter."""
import pytest
from roman_numerals import to_roman, from_roman
def test_to_roman():
... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
70e24b5ae7a71fda9781af5c5d9bfe6cd088dd29 | e70b678712a355a0b51632728c7781b0bdcf29f4 | /Algorithms/Python/Contains-Duplicate-II.py | fdaf86c10320f2d83fdd79f38c2eb8f4dff4022d | [] | no_license | keyi/Leetcode_Solutions | b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af | 69e4e969b435ff2796bd7c4b5dad9284a853ab54 | refs/heads/master | 2020-05-21T23:36:20.450053 | 2018-11-11T03:45:28 | 2018-11-11T03:45:28 | 33,714,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | class Solution(object):
def containsNearbyDuplicate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: bool
"""
dic = collections.defaultdict(list)
for i in range(len(nums)):
if nums[i] in dic:
for x in dic[nums[i]]:
... | [
"yike921012@gmail.com"
] | yike921012@gmail.com |
6e1c6809f055a02678b42764cbc0f8d5eb360592 | d9b53673b899a9b842a42060740b734bf0c63a31 | /leetcode/python/easy/p119_getRow.py | f635d4dcaee648ef09c71c18a2b7eb6440bc7cc5 | [
"Apache-2.0"
] | permissive | kefirzhang/algorithms | a8d656774b576295625dd663154d264cd6a6a802 | 549e68731d4c05002e35f0499d4f7744f5c63979 | refs/heads/master | 2021-06-13T13:05:40.851704 | 2021-04-02T07:37:59 | 2021-04-02T07:37:59 | 173,903,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | class Solution:
def getRow(self, numRows): # 进阶到O(K)空间复杂度核心点是扩充上一个数组
l_data = [1]
if numRows == 0:
return [1]
for i in range(numRows):
for j in range(i + 1):
if j != i:
l_data[j] = l_data[j] + l_data[j + 1]
l_data = [1]... | [
"8390671@qq.com"
] | 8390671@qq.com |
61cfc91b56eeabeaa0e59ead7dfb135142cd761e | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/anagram/src/334.py | dcd298320ef99f702d1ae67f9b29bf6905ed5ce5 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 252 | py | from itertools import permutations
def detect_anagrams(word, anagrams):
return [x for x in anagrams if x.lower() != word.lower() and x.lower() in set([a.lower() for a in anagrams]).intersection(["".join(p) for p in permutations(word.lower())])]
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
4a6218d1fe1d17ba0f622a6721c1ecf9f6a001cf | f75ec2c20c3208350d310038a2cd0a67253b44df | /example/petstore/apis/pet/updatePetWithForm.py | 858c0b878074e4e9ffc1a6be75fb2b60d1c1cbb1 | [] | no_license | vichooz/swagger_codegen | e53f59f3cd2c080157863698f932a606705db4e4 | 8238356075eea4218b2e6a645c7ea2b8826b1044 | refs/heads/master | 2022-08-03T04:32:49.291426 | 2020-05-27T06:09:28 | 2020-05-27T06:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from __future__ import annotations
import pydantic
import datetime
import asyncio
import typing
from pydantic import BaseModel
from swagger_codegen.api.request import ApiRequest
def make_request(self, petid: int, name: str = ..., status: str = ...,) -> None:
"""Updates a pet in the store with form data"""
... | [
"n10101010@gmail.com"
] | n10101010@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.