blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3bfc6ac061b55a266b1c95954b0565b4af7d275 | 3c847175b995991414bda789eabda8c9b150af4a | /python_unit/Text/Ex1-06.py | 6fca67b3344a6d9232448baaf73616d918243692 | [] | no_license | DamoM73/10-Digital-Technologies | 4ed0149b1c94eecf31e4f6060d79219ad8690832 | 5bf20cacf2b323bee8fcf1ee2260808e86d8f7c2 | refs/heads/master | 2023-05-01T07:02:29.146224 | 2021-05-20T03:17:42 | 2021-05-20T03:17:42 | 294,894,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | # Ex1-06.py
print(40 % 11)
| [
"40050142+DamoM73@users.noreply.github.com"
] | 40050142+DamoM73@users.noreply.github.com |
4b76f46c7c8d6b7fd82d90108746de5dfea15448 | cbcfc902453bacc1295c2303b47e719a7fc65c33 | /icons_rc.py | 89e5b5b03aa22a1cd0a125588f17c0295ca93ef8 | [] | no_license | amosmilimu/python_library_management | 74bd358f489b5ffdd648a8b4e97214d570709926 | 65c39aa6b9bc9c5179a3b63ae5395457db72e582 | refs/heads/master | 2023-01-01T14:05:39.149782 | 2019-05-26T17:15:10 | 2019-05-26T17:15:10 | 306,744,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121,857 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.11.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x14\x44\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\xe1\x... | [
"amosahindukha@gmail.com"
] | amosahindukha@gmail.com |
a5fca84975a4e3dfb34455f5e7b01b794fe7e60a | 7c67952f1c18d42f283f395d02294e148f3dd349 | /export/contpics/management/commands/clearcache.py | 07854c2d53d63178577a62010dbc7ca9f21ca6ab | [] | no_license | 314casso/cportal | cfb4cc9e53819950177728bc5d42e47f2aa3d45e | a0a2043616241429571ec1b99302dada49af1485 | refs/heads/master | 2022-12-11T07:19:14.209367 | 2021-10-05T21:27:00 | 2021-10-05T21:27:00 | 110,969,703 | 0 | 0 | null | 2022-12-07T23:47:26 | 2017-11-16T12:37:59 | HTML | UTF-8 | Python | false | false | 231 | py | from django.core.management.base import BaseCommand
from django.core.cache import cache
class Command(BaseCommand):
def handle(self, *args, **kwargs):
cache.clear()
self.stdout.write('Cleared cache\n')
| [
"it-support2@ruscon.global"
] | it-support2@ruscon.global |
c50323201c702b08b9666e9e2405ecc6c12de017 | bef75e670a63977ef785bd85bf4688ea7ecb29f4 | /codes/img_dl/img/angeleyes/face_alignment.py | 883549531693f941335d9b1b58c5bd07c5f0314a | [] | no_license | zhoujieluoaaa/AngelEyes | ceaf3628dbeb9744ef25b8170a100dba244161c1 | 36bcae932bf02c969480c1165c092feada2b7b93 | refs/heads/master | 2022-08-18T01:59:12.355826 | 2020-02-23T04:25:08 | 2020-02-23T04:25:08 | 266,714,637 | 0 | 0 | null | 2020-05-25T07:37:13 | 2020-05-25T07:37:12 | null | UTF-8 | Python | false | false | 2,165 | py | # -*- coding: UTF-8 -*-
import cv2 as cv
import math
import dlib
from fileConfig import *
from matplotlib import pyplot as plt
"""
人脸对齐模块
"""
# 根据人脸关键点进行仿射变换,水平人脸
def warpAffineImg(img):
eyes = getEyes(img)
# 当获取到正常的2个关键点时进行水平操作
if len(eyes) == 2:
# 关键点1
x, y, w, h = eyes[0]
x1 = (... | [
"282699766@qq.com"
] | 282699766@qq.com |
bac4bd7c3df92b7430698abd8e08aa7c5cb95fe3 | 992974c18747392c95b8aed3b6478257378453a8 | /2-11Python 邮件发送测试运维报警必备/testDIng/ding02.py | 1ebffaa05cca2e6e015a3a399cfec27caa18417d | [] | no_license | xuegod6/xuegod_code_standard | d78137076683c6655f0db8282b2a05e4c0d8f6e2 | ba31355c81fa734fb08c8fd11ac7cb2e9924c603 | refs/heads/master | 2020-05-01T15:46:04.988371 | 2019-03-25T10:12:08 | 2019-03-25T10:12:08 | 177,554,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # -*- coding: utf-8 -*-
# @Time : 2019/3/18 17:15
# @Author : if
# @File : ding01.py
# @Software: PyCharm
import requests
import json
url= "https://oapi.dingtalk.com/robot/send?access_token=e1b9f69f6d839a2aeb2bc2e777a589cba6b597ef7fd2bb2d8a91f1eb301e14b4"
def WriteLogByDing(content):
headers = {
"C... | [
"3440037784@qq.com"
] | 3440037784@qq.com |
d241d0cecd2423436c35bfec8356acfb6a9962c1 | 1abcfe11e193ec840c1ec0969d36e9bd0916f61f | /source/platform_tools/lib/unix.py | 400730f64f01ae3f8b15b6811a3472d6a5fc905c | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-3-Clause"
] | permissive | jcushman/password_change_tool | ed690070f8de4ceede1a20ac74f62b990c9433d6 | efbf2968eef9d4e1f9b9053384b65386c918b75d | refs/heads/master | 2020-07-20T18:06:06.311266 | 2014-08-27T13:50:33 | 2014-08-27T13:50:33 | 22,996,875 | 1 | 0 | null | 2015-01-19T18:13:26 | 2014-08-15T17:13:15 | Python | UTF-8 | Python | false | false | 107 | py | import os
import pwd
from .base import *
def get_username():
return pwd.getpwuid(os.getuid()).pw_name | [
"jcushman@gmail.com"
] | jcushman@gmail.com |
30de6a994f7d376773837088a9918ecdff2c76b5 | 5c55577989c748269572b2c290a68dd357b33992 | /contrib/seeds/generate-seeds.py | a332481d2dd71e99ff0d8226400b498a38e9f1b8 | [
"MIT"
] | permissive | Nanakshahiworld/nanakshahicoin-core | 23630bd9fe51b82fb1ebd8deb15e15c9ad5d45d3 | 8a74516d6ffe1ba1e89fc1d63e3874c2cb4fbb63 | refs/heads/master | 2023-06-23T04:31:30.721282 | 2021-07-12T12:37:27 | 2021-07-12T12:37:27 | 385,234,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the dir... | [
"mws@email.com"
] | mws@email.com |
5fc9de607bdaa68d4ec4e8b2d7404fe5927a985f | ee6c534c24ef6eab3a368adf51f4450515b8f199 | /V2/formula/bin/genwallet | a723924db4e12b3eab600f3ab7524e90ee703d5f | [] | no_license | jamangi/DockerHeartsSecurity | 1965f690f8e2959418d27df6d2425298ca140361 | 8873c1f8aa1c7b304be114cef9c88a5ba8a93f5a | refs/heads/master | 2020-03-28T16:59:16.629502 | 2018-08-24T17:37:29 | 2018-08-24T17:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | #!/home/blockness-site/mit/formula/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pycoin==0.80','console_scripts','genwallet'
__requires__ = 'pycoin==0.80'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.... | [
"root@ip-172-31-40-68.us-east-2.compute.internal"
] | root@ip-172-31-40-68.us-east-2.compute.internal | |
d27d3af2bdcba02d17e1eab4c19c711a2074e5b4 | e45d2faad9389886a82ff5176853b1ff6e37caae | /argparse/055_argparse_add_argument_nargs_questionMark.py | c28aa7baa511d22b3e9de4adc7c5adf3ead24488 | [] | no_license | allenmo/python_study | 6320aa4cd80fe46ccf73076015c67bdcb6338d30 | 7aff5d810ca6e791d62235d57c072a8dc14457ca | refs/heads/master | 2021-03-24T12:00:33.079530 | 2016-11-22T23:35:58 | 2016-11-22T23:35:58 | 55,770,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--foo', nargs='?', const='c', default='d')
parser.add_argument('bar', nargs='?', default='d')
print parser.parse_args('XX --foo YY'.split())
print parser.parse_args('XX --foo'.split())
print parser.parse_args(''.split())
| [
"allen02403@gmail.com"
] | allen02403@gmail.com |
1a3e9cae56843f2b9167840ccb12e915ec8f7161 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /SqbyWYwqChQroXfhu_10.py | ada02ff817a159ee3621064c542db76a15142950 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py |
def lower_triang(arr):
for i in range(len(arr)):
for j in range(len(arr[0])):
if j > i:
arr[i][j] = 0
return arr
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d8dd37e7b646ee21ba7b7a4d98c4d5d3ca194944 | d730f4196de6a277280c815ea36b8e001aae1f5e | /script/plantcv_script/vis_sv_z1_L0_e82.py | 61a3ad6cf52260a45f27aa7518fadb4b72db1937 | [] | no_license | maxjfeldman/Feldman_Ellsworth_Setaria_WUE_2017 | 40c83110a5e2959eef559e46316b77e625ac55da | 8c88886b7f6ce3e0453eaba74ccadb0f319d3b1d | refs/heads/master | 2021-03-31T01:39:41.370384 | 2018-08-07T01:36:00 | 2018-08-07T01:36:00 | 125,002,668 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,973 | py | #!/usr/bin/env python
import sys, traceback
import cv2
import os
import re
import numpy as np
import argparse
import string
import plantcv as pcv
def options():
parser = argparse.ArgumentParser(description="Imaging processing with opencv")
parser.add_argument("-i", "--image", help="Input image file.", requir... | [
"maxjfeldman@gmail.com"
] | maxjfeldman@gmail.com |
78ad653bda4fe0bb743b72f0f9938f240fc28738 | 1929ce01411908ebe5f04f9db4ae1c7afef085e1 | /home/migrations/0002_load_initial_data.py | ab7698763aa5dbf140368dc4b936b332fafab746 | [] | no_license | crowdbotics-apps/wislister-15050 | 81ad2bc3b804de790adb0606c0902915269c4990 | 2e7d08e9359d011448187a428a90ef21638ade5f | refs/heads/master | 2022-12-10T08:08:17.564321 | 2020-03-25T06:57:42 | 2020-03-25T06:57:42 | 249,908,377 | 0 | 0 | null | 2022-12-08T06:06:15 | 2020-03-25T06:57:27 | Python | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "wislister"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7bf73dd438e550b2f8c4ecfe6bb22f458f3710eb | 71a22585cb84ab3e5155fc71d7ebc3a545480245 | /bin/concord_vcf-excel.py | 10f54a0cb73c496108cccae80388a8f7db037ca5 | [
"MIT"
] | permissive | rohandavidg/CONCORD-VCF | efcdf5f5c243c51beda1d8bfbb6ccbda0ef157a7 | 852aeb442db027b154e6c846f99d884e848554b9 | refs/heads/master | 2021-01-20T14:38:50.422446 | 2018-07-15T19:37:43 | 2018-07-15T19:37:43 | 90,637,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,159 | py | #!/dlmp/sandbox/cgslIS/rohan/Python-2.7.11/python
"""
This script compares the concordance
between a vcf and workbench excel
"""
import vcf
import os
import openpyxl
import csv
import argparse
import os
import collections
from do_logging import configure_logger
from csv_to_dict import parse_csv
import pandas as pd
im... | [
"gnanaolivu.rohandavid@mayo.edu"
] | gnanaolivu.rohandavid@mayo.edu |
2d5e608579841a44031e64c373d497d78288e98e | 80f2fa4f1f4d56eef9471174f80b62838db9fc3b | /xdl/xdl/python/backend/mxnet/convert_utils.py | 1182f929bb080337b4f5368b36c8a279477309a7 | [
"Apache-2.0"
] | permissive | laozhuang727/x-deeplearning | a54f2fef1794274cbcd6fc55680ea19760d38f8a | 781545783a4e2bbbda48fc64318fb2c6d8bbb3cc | refs/heads/master | 2020-05-09T17:06:00.495080 | 2019-08-15T01:45:40 | 2019-08-15T01:45:40 | 181,295,053 | 1 | 0 | Apache-2.0 | 2019-08-15T01:45:41 | 2019-04-14T10:51:53 | PureBasic | UTF-8 | Python | false | false | 3,191 | py | # Copyright 2018 Alibaba Group. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"yue.song@alibaba-inc.com"
] | yue.song@alibaba-inc.com |
fbbf41e20be5395b5cedd28452d900cf6fb809a4 | e523350624c7c52efcedb8db27ec0538f4bb1038 | /seaborn_barplot_2.py | 9b6b229b6f6e00d09911dce35858828bd4cd549f | [] | no_license | ritishadhikari/seaborn_sns | 6159fbf10e69adc9410b41dd8c0447874a6dbc93 | 963c1124b72a49bcd8c0c7c31308f619e44fab4a | refs/heads/master | 2020-04-15T13:16:31.129329 | 2019-01-08T18:34:48 | 2019-01-08T18:34:48 | 164,710,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
tips = sns.load_dataset('tips')
print("The Original Dataframe :\n",tips.head(20), "\n")
sns.barplot(x='smoker', y='tip', hue='sex',data=tips, color = 'red',estimator=np.mean,ci=95,saturation=0.9)
plt.show() | [
"noreply@github.com"
] | ritishadhikari.noreply@github.com |
1a2e355faf337ab3dc16989fc15b19e1aa45b599 | 830d4343dff8b086b7651aec38b0510c71d51350 | /club_test.py | 029311147e2233212c0d20444b922f91ddf75442 | [] | no_license | mahoneym/club_recommendations | 6a8b1e129c9ba6e804a80816191d305b03e6fc19 | 82319f6489c726016cead5326b9e2aa57c9c0acb | refs/heads/master | 2022-06-22T01:20:48.693984 | 2020-05-11T04:03:58 | 2020-05-11T04:03:58 | 237,346,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,382 | py | ####### CLUB_TEST.PY #######
####### This tests clubs being added to the recommender and the connections between the clubs #######
####### The file also tests the recommendations- makes sure the recommendations are not redundant to the user #######
import recommender
def addMiniClubs():
recommendObject.addClub('C... | [
"mahoneym6@xavier.edu"
] | mahoneym6@xavier.edu |
1b48bec1b165716c0aa02a8a4e20761b4daf6fdc | 33317fc1ad49ec8ea0637d3233529c6e9f07f0fd | /Topics/Taking input/Sum/main.py | fde3c76e2a3ce2973c8181c86d39f7c755866244 | [] | no_license | KJRG/JBA-Zookeper | e827085b8154a4193367d893349c021dc5099a52 | 0e3b16fec57555b0c8847d9ea28b8acf58568aac | refs/heads/main | 2023-07-02T20:35:00.466433 | 2021-08-09T20:22:38 | 2021-08-09T20:22:38 | 394,077,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | # put your python code here
a = int(input())
b = int(input())
c = int(input())
print(a + b + c)
| [
"kjrgalka@gmail.com"
] | kjrgalka@gmail.com |
8470b45483b504a9ac0a11ddad19a85fd67badf5 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /爬虫1905/day07/07_maoyanspider.py | a58245ebcd950ce02c7237e81b5a8a7f1daa3da5 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from selenium import webdriver
url = 'https://maoyan.com/board/4'
browser = webdriver.Chrome()
browser.get(url)
# 基准xpath: [<selenium xxx li at xxx>,<selenium xxx li at>]
li_list = browser.find_elements_by_xpath('//*[@id="app"]/div/div/div[1]/dl/dd')
for li in li_list:
item = {}
# info_list: ['1', '霸王别姬', '主演:... | [
"598467866@qq.com"
] | 598467866@qq.com |
c541f2802ebffca62be0c4882bad19b4bcc54d6e | f618551d2c0833083e98a5450e6e29493b82cc44 | /atbash.py | fd509f3574eed6dd984abeae282eb3b8489e66e2 | [
"Apache-2.0"
] | permissive | maartenweyn/kerstpuzzel | d53e00b8065a1c171d85bdb9eded7ac47d31db75 | 705132a136f6c15af31e088b8b526290cf7c964a | refs/heads/master | 2021-06-23T12:25:40.899500 | 2020-12-04T08:10:42 | 2020-12-04T08:10:42 | 163,280,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import argparse
import sys
#atbash
def substitute(c):
if c.isalpha():
if ord(c) in range(97,123):
return chr(109 + (110 - ord(c)))
elif ord(c) in range(65,91):
return chr(77 + (78 - ord(c)))
else:
print("should not happen")
return(c)
else:
#print(c)
return(c)
def main... | [
"maarten@wesdec.be"
] | maarten@wesdec.be |
d024c13cf49eca4412c6d4008e60bc3b289d8d1b | 91dc500582226d8154a6ebf5584a0433ba067923 | /src/python/pants/backend/javascript/package/rules_integration_test.py | 64ec7f23f3ee2d25f2df3d9c06bc792c59af8406 | [
"Apache-2.0"
] | permissive | rhysyngsun/pants | e16681cd6aa9d537bbacca533dae75351de869b9 | 07dbcdb9c70914c9dad07c3b307e0152e5e2fdee | refs/heads/main | 2023-05-25T09:21:55.740759 | 2023-05-01T22:10:01 | 2023-05-01T22:10:01 | 364,435,546 | 1 | 0 | Apache-2.0 | 2021-05-05T01:55:00 | 2021-05-05T01:54:59 | null | UTF-8 | Python | false | false | 3,490 | py | # Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import json
from pathlib import Path
from textwrap import dedent
import pytest
from pants.backend.javascript import package_json
from pants.backend.jav... | [
"noreply@github.com"
] | rhysyngsun.noreply@github.com |
31302281fcbfdfec5abeba9a5b219e5645aa6dd1 | 3e7b3544edb20dcb56a2fcbaf55f4e6250f7c8a6 | /Back_End/Rules_Engine/TestProject/Engine.py | fae2314e80c1c3950f4d821794a9e3257a7ff5ef | [
"MIT"
] | permissive | KuanYuLai/Senior-Project | b5603f929abb7f495605e2c4adae1e5db86b7ac9 | 4eca2974d27ea437adacde63ac42e1221eb2ff7e | refs/heads/master | 2022-12-19T08:12:03.200424 | 2021-04-03T11:50:52 | 2021-04-03T11:50:52 | 214,487,511 | 0 | 0 | MIT | 2022-12-12T13:27:42 | 2019-10-11T16:54:27 | Java | UTF-8 | Python | false | false | 1,338 | py | import os
import urllib2
import requests
import json
import string
import pprint
url = "http://localhost:8080/new"
#headers = {'Content-type': 'application/json'}
#POST Call
print("== Firing POST call...\n")
'''
r = requests.post(url, json={
"customer": "HP",
"paperType": "PaperThatNeedsBA",
"numPages": 100,
"ma... | [
"yorklai0523@gmail.com"
] | yorklai0523@gmail.com |
852490d729b985e69d687a1f0ed8e5043d18b59a | bc539788b876773e294383863252c1637de9eb7f | /scrapy/PycharmProjects/Reptile/automation_Testing/pageobjects/primeur.py | b5765198c8c00001d1762535bb5b9cbf98cb42fa | [] | no_license | umsung/scrapy | 4eb56bf74f3e617e49dcdec61cf77010eb912f4f | deacd9f289159c5af114b0dd3110448ad7eb43e8 | refs/heads/master | 2020-05-31T14:11:46.530793 | 2019-10-16T01:32:25 | 2019-10-16T01:32:25 | 190,321,772 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,548 | py | from framework.base_page import BasePage
import time
from selenium.webdriver.common.by import By
import random
from framework.logger import *
logger = Logger('Primeur').getlog()
class Primeur(BasePage):
navbox = (By.XPATH, "//*[@class='navbox']/a[4]")
gopage = (By.XPATH, '//*[@id="gopage"]')
... | [
"545699233@qq.com"
] | 545699233@qq.com |
6f8a641192f1aaf90c5bd3d01f58ebb533305dcc | b908a130b334a45ccef4f47982ab0a25c70994c9 | /patroni/dcs/kubernetes.py | 44276da873a273a5f67652128a07a865c8fefe62 | [
"MIT"
] | permissive | sieginglion/patroni | be35f55915fc2376e3b7a90ec40213db8b5d5e32 | 7eb76618e1db8ee4e0ce3735787988e94d012679 | refs/heads/master | 2022-11-22T22:13:51.306062 | 2020-07-07T05:39:29 | 2020-07-07T05:39:29 | 277,726,614 | 0 | 0 | MIT | 2020-07-07T05:37:49 | 2020-07-07T05:37:48 | null | UTF-8 | Python | false | false | 29,322 | py | from __future__ import absolute_import
import datetime
import functools
import json
import logging
import socket
import sys
import time
from kubernetes import client as k8s_client, config as k8s_config, watch as k8s_watch
from urllib3 import Timeout
from urllib3.exceptions import HTTPError
from six.moves.http_client i... | [
"noreply@github.com"
] | sieginglion.noreply@github.com |
1dcf12b1f2fb6edc7da95d007f8cff9713f38f54 | ebfce89c5a0bd47493fa6c412c8de3272af2faab | /cluster_scripts/sum_contrasts_updownNC_genelist.py | fe181091fb82d969fcfc231c98bfb61064ec8019 | [] | no_license | bmmoore43/MotifDiscovery | d16d126bdb70e9692b25b67030c9a6863f5e7205 | f56c5b06aae83b031f2bfdd9cec9d12cc0e728a6 | refs/heads/master | 2021-10-23T06:35:39.467095 | 2021-10-13T18:32:18 | 2021-10-13T18:32:18 | 126,842,378 | 1 | 1 | null | 2020-12-21T16:55:10 | 2018-03-26T14:35:20 | Tcl | UTF-8 | Python | false | false | 2,723 | py | ##script used to combine multiple contrast files into a matrix
import os, sys
inp = open(sys.argv[1], "r")
FCind = int(sys.argv[2]) #indice where Fold change is
pind = int(sys.argv[3]) #indice where pvalue is
output1 = open(str(sys.argv[1])+"_upclassfile.txt","w")
output2 = open(str(sys.argv[1])+"_dwnclassfile.txt","w... | [
"john3784@msu.edu"
] | john3784@msu.edu |
f38e4a6e5d5e342e6e134410c2ba51aee904f887 | 3c2f29b1844fbabeb6b323ad56add9eb2d307455 | /application.py | a57deb23cfca9f10bd6035f50e09c48ffef6928d | [] | no_license | Lewis-Matt/cs50_birthdays | 88bdb08a03e0fcfc4891042a253323c205e313b4 | 3cb1eca84a411b08d9152d1773cdfab33c4ff572 | refs/heads/main | 2023-08-03T02:05:05.505221 | 2021-09-17T16:30:28 | 2021-09-17T16:30:28 | 407,609,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | import os
from cs50 import SQL
from flask import Flask, flash, jsonify, redirect, render_template, request, session
# Configure application
app = Flask(__name__)
# Ensure templates are auto-reloaded
app.config["TEMPLATES_AUTO_RELOAD"] = True
# Configure CS50 Library to use SQLite database
db = SQL("sqlite:///birthd... | [
"noreply@github.com"
] | Lewis-Matt.noreply@github.com |
315ca408f25d186f78cd65e36e4c5ce03515203a | 6bc255aa3c97083553e849b79cffb230bf222e7c | /boxoffice/src/constants.py | 4fb8ae5be6d360334d82c17511384687090f3f62 | [] | no_license | Mewse/KubeArena | d38307321beb607e573302af0b4f87158ad5c5b4 | 8e7a2e470306dd84851f4cf764141ccf429b14d9 | refs/heads/master | 2020-05-04T13:06:51.618318 | 2019-04-05T14:59:44 | 2019-04-05T14:59:44 | 179,147,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import os
import logging
# ENV
MONGO_URL = os.environ.get("MONGO_URL", "localhost")
MONGO_PORT = os.environ.get("MONGO_PORT", 27017)
LOG_LEVEL = os.environ.get("LOG_LEVEL", logging.INFO) | [
"marfu2@hotmail.co.uk"
] | marfu2@hotmail.co.uk |
c657e759470d0739e933d07c39e581af51b347e2 | 010352013ea13422cb241778943e66d799e016d3 | /t2t/events/migrations/0003_auto_20160320_1331.py | d0e1acc4be4d1f18b416bdc2686ed6c1693e246d | [] | no_license | romesh33/django_mango_site | 944a2e4be6927f5530b30c327ede8ccdaa69d368 | 42d4ff0d6765f3c825bdf2a1dab2e9bb8c1d8e24 | refs/heads/master | 2020-04-07T05:26:24.682262 | 2017-07-03T08:47:01 | 2017-07-03T08:47:01 | 52,063,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0002_event_description'),
]
operations = [
migrations.AlterField(
model_name='event',
name... | [
"r.sheyko@gmail.com"
] | r.sheyko@gmail.com |
c0564e087f19828cb3a305e1bf9f59f902f51c4c | 4d038087c4ee1b5c55561a8551d71706b3848881 | /solutions/beginner/fctrl2.py | 5fcb969233c759cc72352eedb878425a20e9ccd8 | [] | no_license | chesstrian/codechef | ecb9d347f375254399c8660a645d6578380475c7 | 411271a7a094e0672c363a73993f9b494d982d1f | refs/heads/master | 2021-01-11T08:28:37.040866 | 2016-12-23T16:29:53 | 2016-12-23T16:29:53 | 76,754,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | def array2str(k):
k.reverse()
return ''.join(map(str, k))
def multiply(a, k):
result = []
temp = 0
for d in a:
aux = d * k + temp
result.append(aux % 10)
temp = aux / 10
while temp > 0:
result.append(temp % 10)
temp /= 10
return result
def fact... | [
"chesstrian@gmail.com"
] | chesstrian@gmail.com |
e941e57d6f7ead9c4ef53253d011429530b54883 | 924145b41ee093407010a3f5d722ab5bc992aff0 | /userprofile/migrations/0002_auto_20200422_1201.py | 8ec5bef07beb86abb800b09a40ac20080b7ea027 | [] | no_license | wufan57/DailySystem | 2bdd4ff322e1976f0d39edbce6b6d6feee66bc21 | 8f305fc7a222cca48f24c00b3daef48538fb2595 | refs/heads/master | 2022-06-06T22:01:25.353533 | 2020-04-27T03:04:45 | 2020-04-27T03:04:45 | 258,797,410 | 1 | 1 | null | 2020-04-26T09:39:44 | 2020-04-25T14:35:49 | Python | UTF-8 | Python | false | false | 382 | py | # Generated by Django 2.2.6 on 2020-04-22 12:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='nikename',
... | [
"369639715@qq.com"
] | 369639715@qq.com |
76cc32dab0e453a33031798b55e518246beb07f6 | ad919afea775bb2f48f179118a5d63ee233cc26c | /leapyear.py | 9f25ac5db64ad57ecfc3703ec6294929b3d67aba | [] | no_license | kalaibenjamin/kalai | 44bfba0ca4cb62222dd67bccf49ac7d45452dfeb | 196c51f71bf64d75747b87ad2bb9ecc971f992ac | refs/heads/master | 2020-04-17T11:09:45.264014 | 2019-02-25T08:51:26 | 2019-02-25T08:51:26 | 166,530,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | year=2010
if(year%4==0):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | kalaibenjamin.noreply@github.com |
d4904062a28e2e276b5c1bed9bfe50d0cdbf3099 | 7cb947ce7b8d3a50a7031942bc693b32c43ab37c | /benchmark.py | 85eab89ebe196e7f785b2c8cae22830b5b5a0e38 | [] | no_license | singlasahil14/fisheries | 68a2e480977b6ba56e8708d20d2e4a97b4e810f6 | 34c60c61e233cff91f7857f701bd3171b1969651 | refs/heads/master | 2021-01-22T19:03:49.507502 | 2017-03-17T11:56:48 | 2017-03-17T11:56:48 | 85,152,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from os import listdir
import numpy as np
data_path ='data/'
# Get filenames and class ids
fnames = listdir(data_path+'test/')
num_rows = len(fnames)
fnames = np.expand_dims(np.asarray(fnames), 1)
print(fnames.shape)
probs = np.tile([0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1], (num_rows,1))
print(probs.shape)
to_submit = np.hs... | [
"ubuntu@ip-172-31-18-31.eu-west-1.compute.internal"
] | ubuntu@ip-172-31-18-31.eu-west-1.compute.internal |
f7f65d5c4ad35e5e0c536b18d40b2578c0d2b217 | 9eed60240390bdf9e1e588e9025e56dc80c2ea42 | /Q-Learning/Arm/testing.py | c0b1d293d18e5dcabb6c9dcb6b80d964b6bcd19f | [] | no_license | HuangBo-Terraloupe/poppy-project | 4099527b6ebf132109b002021faad95bf9945978 | 029776ebe3feebfe1b5d39ad05926d86dbf6a4c2 | refs/heads/master | 2021-01-01T19:40:34.728201 | 2017-07-28T11:35:59 | 2017-07-28T11:35:59 | 98,643,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,266 | py | #!/usr/bin/python
import numpy as np
np.set_printoptions(precision=4)
import os
import sys
import threading
import time
from collections import deque
# import own modules
import agents
import goals
import q_networks
import pyglet_draw
ARM_LENGTH_1 = 15.1
ARM_LENGTH_2 = 10.1
ANGULAR_ARM_VELOCITY = 1.0*np.pi/180.0
GO... | [
"bo.huang@terraloupe.com"
] | bo.huang@terraloupe.com |
7d01e183785d5e83b659afa1585c56df1eb04c62 | 32b5ef58e96a05131284d58721a1699a0df595ad | /baselines/ppo1/run_cartpole.py | 9b1f12c5518b43351b04ebfda4b0b0c6a3dd487d | [
"MIT"
] | permissive | brucewayne1248/baselines | 38dcb0914be4f498d74ee6bea92c9be32d9437be | 8c430c9993dc9d96b7da4f4c1585e3caae42d555 | refs/heads/master | 2020-03-19T01:43:24.887535 | 2018-06-03T16:40:25 | 2018-06-03T16:40:25 | 135,567,502 | 0 | 0 | null | 2018-05-31T10:12:28 | 2018-05-31T10:12:27 | null | UTF-8 | Python | false | false | 1,370 | py | #!/usr/bin/env python
from baselines.common import set_global_seeds, tf_util as U
from baselines import bench
import os.path as osp
import gym, logging
from baselines import logger
import sys
import tensorflow as tf
from argparse import ArgumentParser
def train(env_id, num_timesteps, seed):
from baselines.ppo1 imp... | [
"andreasserov@gmx.de"
] | andreasserov@gmx.de |
db257f01d05f43934f9a2d669ea816fc19e505b2 | 9bfa071120d9f0ada404a361b5b8fd0c6cf5bbea | /WeatherApp/weather/models.py | 9dce8ede2a19e240a27647bd842db52fe4b738c1 | [
"MIT"
] | permissive | smahesh29/Weather-App | 72f386be7bc7f121043127e6bb4de9fc998dfad5 | 5ebf04553c8eb087b80470e217385c8e3ff4ce33 | refs/heads/master | 2023-02-18T17:34:19.337884 | 2023-02-05T15:32:37 | 2023-02-05T15:32:37 | 182,313,671 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
from django.db import models
class City(models.Model):
name = models.CharField(max_length=25)
def __str__(self):
return self.name
class Meta:
verbose_name_plural = 'cities' | [
"noreply@github.com"
] | smahesh29.noreply@github.com |
778d12b9f4087d805c4cfdeab661e09c2720df7f | ec10a8c108378283ab7cb43f2ce1420c0d7b9a33 | /python_skipthought_training/training/homogeneous_data.py | 7d3dd9e413c340ee9533f3eabaca26422e9fbf42 | [
"Apache-2.0"
] | permissive | PervasiveWellbeingTech/inquire-web-backend | e4b5b2b7e2e68d77d204da4c2bdf77b7a75019ad | 0a078943701472897c288ca1f2683ed749685e92 | refs/heads/master | 2022-12-15T09:34:53.861137 | 2020-10-01T19:48:50 | 2020-10-01T19:48:50 | 215,445,087 | 1 | 0 | Apache-2.0 | 2022-12-08T04:26:49 | 2019-10-16T03:04:52 | Python | UTF-8 | Python | false | false | 5,364 | py | import numpy
import copy
class HomogeneousData():
def __init__(self, data, batch_size=128, maxlen=None):
self.batch_size = 128
self.data = data
self.batch_size = batch_size
self.maxlen = maxlen
self.prepare()
self.reset()
def prepare(self):
self.caps =... | [
"phdowling@users.noreply.github.com"
] | phdowling@users.noreply.github.com |
f401590d59a37bad47b69a3ac5761ac91679d359 | a946351ad9c645d40d3a3b701dd64f6e15d1da6d | /debugwindow.py | c48b498c81f50bd841f9aed731876ed62bd10c3b | [] | no_license | jconcepcion9/profhacks2020 | e9b2a5adf5ba30a299b004bb96b7ef5c31591fc2 | 502c601df05b8f3a729a3b52439dd36f55a4e0dc | refs/heads/master | 2021-02-07T11:23:37.838135 | 2020-03-01T14:19:58 | 2020-03-01T14:19:58 | 244,019,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import tkinter
### Debug window. used to keep track of changing variables in the system for debugging
class DebugWindow:
def __init__(self):
self.window = tkinter.Tk()
self.window.title("debug")
self.window.geometry("200x100")
self.width = tkinter.Label(self.window)
... | [
"dylanpaulmcrae@gmail.com"
] | dylanpaulmcrae@gmail.com |
abdf89c5080048c52de0ea9df0e6c46e7b37a946 | 4856b1ba711e8e3272955c93d6775e9d7ce4b9c1 | /plugins/util/strip_formatting.py | 86d646fa420ab48a14a75af0e94cc2699a5754fc | [] | no_license | Alligator/homero | e47e5f60fdd842e35dc4993aef479753c51def24 | 4e871d2eae32b055248b835be93c19ba7b6d2eec | refs/heads/master | 2020-12-29T02:44:25.497550 | 2017-02-14T12:35:22 | 2017-02-14T12:35:22 | 2,377,362 | 4 | 4 | null | 2013-10-07T16:24:58 | 2011-09-13T09:41:31 | Python | UTF-8 | Python | false | false | 136 | py | import re
regex = re.compile("(\x03|\x02|\x1f)(?:,?\d{1,2}(?:,\d{1,2})?)?", re.UNICODE)
def strip(text):
return regex.sub('', text)
| [
"enemy.forest.brigade@gmail.com"
] | enemy.forest.brigade@gmail.com |
4fdc4e52fc5d77fde7c8c94cc1236cc7de3f4d2c | dbb3d229e81577f8098b05a70dc43170ed880d9f | /ToolForInstallation.py | 2ef9a827e37ef22887a775f84ad94cf0c73fb953 | [] | no_license | mchaudh4/Breadcrumb-Network | be4098f10e6fc7bccda92c1f60580f4004a1ab1d | 552144a5f2fc54107cc62935947d5a5c105ac76d | refs/heads/master | 2020-12-03T00:44:53.042840 | 2020-01-01T01:02:10 | 2020-01-01T01:02:10 | 231,161,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,369 | py | #*********************************************************************************************************#
# University of North Carolina at Charlotte #
# ECE Department #
# ... | [
"mchaudh4@uncc.edu"
] | mchaudh4@uncc.edu |
f532c394301a2e1e5fed05812acb7a283301a4f5 | 4013a41bea22609a7140c591a790eaeaef4f3fa6 | /RConst_GA.py | aeb15fee212087bbb3393156589d1ed275711773 | [] | no_license | jacksonl8799/CRN_XOR | c8fe1f2775ee57ff9a5c18233e4519075f180e11 | 5f32cc047888dfe96e2dd0c4038a16d8278f5f86 | refs/heads/master | 2020-07-12T10:03:27.878673 | 2019-08-27T22:56:03 | 2019-08-27T22:56:03 | 204,787,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | import numpy as np
import random
import json
def breed(parent1, parent2):
crossover1 = []
crossover2 = []
mutation_rate = 0.05
gene1 = int(random.random() * len(parent1))
gene2 = int(random.random() * len(parent2))
start = min(gene1, gene2)
end = max(gene1, gene2)
for i in range(star... | [
"noreply@github.com"
] | jacksonl8799.noreply@github.com |
ca45637cab7c76c9e3599ee5d6192a27b11ad629 | e3006d4e904507faed50a87977c4d1f1edea9d32 | /of_tutorial_router.py | 0c11712f53a18a8f056df893d90da615f6c87bbd | [] | no_license | rvsrinivas/Open-Flow-Implementation-in-Python | 0cf7103e5191e66061b8b14bfaf7340a05d79bf1 | e09714b3e6dae28ce52cffb700ea100afd944324 | refs/heads/master | 2021-01-20T18:39:45.234226 | 2016-08-01T23:41:56 | 2016-08-01T23:41:56 | 64,708,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,650 | py | from pox.core import core
import pox
log = core.getLogger()
import pox.lib.packet as pkt
from pox.lib.packet.ethernet import ethernet, ETHER_BROADCAST
from pox.lib.packet.ipv4 import ipv4
#from pox.lib.packet.icmp import icmp
from pox.lib.packet.arp import arp
from pox.lib.addresses import IPAddr, EthAddr
... | [
"reddyv@usc.edu"
] | reddyv@usc.edu |
e4b0a657158e02ff6654900e7b70f31c94ad3d5c | 48f9a82371492ff91a8ae755d05f57271383dcf1 | /domain/shared/repository.py | d4081d58d44f56d13d468b228a58d41957ef0af8 | [] | no_license | jsok/scribbly | dd1c94026c825e1cf82d9ff5e0593e3da91e4632 | d9ea59e9533e07074aba49ea1d4979bf2fdbc5d8 | refs/heads/master | 2020-06-04T08:59:56.683678 | 2014-05-24T02:03:43 | 2014-05-24T02:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Repository(object):
"""
Abstract base class for Repository pattern.
"""
def create(self, obj):
raise NotImplementedError()
def find(self, id):
raise NotImplementedError()
def store(self, obj):
raise NotImplementedError()
def delete(self, id):
raise N... | [
"jonathan.sokolowski@gmail.com"
] | jonathan.sokolowski@gmail.com |
27287afcccfbd4bc54d87afa1e7641a076731786 | a7499ef790ce0ba1787af963333729b57a19b340 | /Assignments/Assign4/forloop.py | 8f2e60985e643d55f8f032959bd6b495c390a3d8 | [] | no_license | akankshajogdand/Py | 55961f28da5237545b7c23a37a03fdf4340a5a96 | f43202e640ff4695b38a02394dadcf4bf149f5db | refs/heads/main | 2023-03-17T23:34:53.081592 | 2021-03-22T16:54:17 | 2021-03-22T16:54:17 | 350,373,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | n=int(input('How many numbers do you want to enter'))
a=[]
for i in range(n):
b=int(input('Enter number'))
a.append(b)
print(a)
add=a[0]
sub=a[0]
multiply=a[0]
div=a[0]
intdiv=a[0]
mod=a[0]
power=a[0]
for i in range(0,len(a)-1):
add+=a[i+1]
sub-=a[i+1]
multiply*=a[i+1]
div/=a[i+1]
intdiv/... | [
"noreply@github.com"
] | akankshajogdand.noreply@github.com |
24067a14c5940569ef02e573aa1f1c79572c488a | 99955a9189d0a451f82acdd8f78607c0ff92b34f | /RPi_DrawBridge.py | c2abfbf6a181ab78ba3e63880180232e11f0c92c | [] | no_license | lock-wire/RPi_DrawBridge | 241c4e6852fdd665cb142761facab24137267714 | df7b73ab2c3eb9b3af65eff11681ce3d3cb590c5 | refs/heads/master | 2021-06-14T22:17:37.245575 | 2017-04-09T17:24:10 | 2017-04-09T17:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | #Author: Peter Di Giorgio
#Date: 09042017
#Version: 1.0
#Purpose: Drawbridge script for BSidesAugusta STEM.
import RPi.GPIO as GPIO
import time
#Set the GPIO mode for BCM numbering
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
#Input Pins
PSHBTNPIN17 = 17
PSHBTNPIN27 = 27
GPIO.setup(PSHBTNPIN17,GPIO.IN,pull_up_do... | [
"noreply@github.com"
] | lock-wire.noreply@github.com |
902d8da060cde82e6163d0f342dfc3f5800667f6 | 5c8e72f0f253edf80d5a961076a7e7953b32d542 | /07day/基数和偶数.py | 65ab3e5466e70b7fb53ce10a0357e0a5ebe99142 | [] | no_license | 1264799190/1803 | 7bf081189d547b1792f30f38a9e5baae9aae3cfb | 3c8e1e560f77a578a048615005730022bd2cc435 | refs/heads/master | 2021-04-18T22:25:40.532729 | 2018-04-20T07:44:14 | 2018-04-20T07:44:14 | 126,920,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | nu = int(input(' '))
if nu%2==0:
print('%d偶数'%nu)
else:
print('%d奇数'%nu)
| [
"1264799190@qq.com"
] | 1264799190@qq.com |
9caa0a55e144b6e14c9cb2a644b72b93caec68d8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02407/s588681694.py | 198ea6576032a9e20876cd8043d50eef73ac6a9b | [] | 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 | 182 | py | num = int(input())
data = list(map(int, input().split()))
lengh = len(data)
for tmp in range(lengh):
if tmp == lengh-1:
print(data.pop(-1))
else:
print(data.pop(-1), end=" ")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9263c57dd28fb452ad627425abcd58a0cfd560e5 | 2bf49358e1b91534d4fda0c33208d61a4087acbf | /array/PascalsTriangleII/PascalsTriangleII.py | 8ff69527e12d60bee72afd17f44768be77546372 | [] | no_license | walkerzhao/leetcode | f3b2db0cdd5e437e9ab1216e789d760abbb542f9 | 867e9969c815538b23072797e961a0d5f2ff87b3 | refs/heads/master | 2021-05-28T08:05:48.440627 | 2015-01-11T14:39:39 | 2015-01-11T14:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | __author__ = 'zy'
class Solution:
# @return a list of integers
def getRow(self, rowIndex):
list = [1]
for i in range(1, rowIndex+1):
temp = 1
for j in range(1, i):
last_number = temp
temp = list[j]
list[j] = list[j] + last_... | [
"zy901002@gmail.com"
] | zy901002@gmail.com |
4aaa89bf42a48e49cf2fe53b41381bb08e9bf81d | d277bd875848ce0fb36d5e9dc91d3515df184e1c | /twa_app/students/view.py | f851a59b775ddc688585e63c88aa5e64ab2daa2c | [] | no_license | taegeukwarrior/twa-service | 458fccfdcdb5700cb059c87ff0abe5cfa3e6f5d6 | c42daa1945c88f510d28613e1037366039f880c8 | refs/heads/master | 2021-01-22T17:48:33.728318 | 2017-08-18T16:59:59 | 2017-08-18T16:59:59 | 100,733,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | import json
from flask import request, jsonify, Blueprint, abort
from flask.views import MethodView
from twa_app import db, app
from twa_app.students.model import Students
students = Blueprint('students',__name__)
class StudentsView(MethodView):
def get(self, twa_stu_id=None, page=1):
if not twa_stu_id:
... | [
"afif.hendrawan@gmail.com"
] | afif.hendrawan@gmail.com |
d8c510ac36f05a539af1b20c4b5cc8c38d4b28d1 | ca4569e3701f23e466181aa17af28561b8976ab5 | /RestAPIView/urls.py | 3b82d72083908c9bbba580459261f63697c5c866 | [] | no_license | Vigneshwaran3112/Django-RestAPI-for-all-Views- | 3a5b5548c376a9a97b702905bff2174951f2b9d0 | f784de32f11ef816203444384a1dad98d395fb5f | refs/heads/master | 2023-04-10T12:50:13.433646 | 2021-04-09T10:11:29 | 2021-04-09T10:11:29 | 356,225,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | """RestAPIView URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"vigneshwaran@vgts.tech"
] | vigneshwaran@vgts.tech |
7ea3c63d5d323878c06c542503c76d3eef1b9121 | 300de5d713bef424f1d52f19817fd758b1510e71 | /test_fixture2.py | ec6fbfbf3f828e7b6c8b45dabe25d5f02d18a648 | [] | no_license | GrigK/stepic_autotests | ba02c8147a0a2ec993a6e07345fe29da5c52b49e | 62bc1c12a5e7170a2b10de086a8b07da967aca4b | refs/heads/master | 2020-08-05T02:33:59.188146 | 2019-10-03T18:46:48 | 2019-10-03T18:46:48 | 212,363,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | import pytest
from selenium import webdriver
link = "http://selenium1py.pythonanywhere.com/"
@pytest.fixture
def browser():
print("\nstart browser for test..")
browser = webdriver.Chrome()
return browser
class TestMainPage1:
# вызываем фикстуру в тесте, передав ее как параметр
def test_guest_sh... | [
"FrendsTeamApp@gmail.com"
] | FrendsTeamApp@gmail.com |
ef20e3ceb655c68d199313ab683ae21251abd6e0 | 08076f017acb7c3138b0ac35de4cac9f19c7404d | /Config.py | 61423947e6ee273b31c19d6c1f8d391767f265a4 | [] | no_license | wangsin/PyMES | 368532af5c985751a35febe5b827c0cbd6a6abd4 | 9c6dd71325aebc303e09efad7e6ab2aac2c75337 | refs/heads/master | 2023-02-21T21:13:10.339228 | 2019-07-07T14:04:20 | 2019-07-07T14:04:20 | 193,727,735 | 3 | 0 | null | 2023-02-02T06:32:12 | 2019-06-25T14:49:00 | Python | UTF-8 | Python | false | false | 874 | py | # import pymysql
class TestingConfig:
WTF_CSRF_ENABLED = False
WTF_CSRF_SECRET_KEY = 'BD88xTI0gNYkVpLY'
SECRET_KEY = 'BD88xTI0gNYkVpLY'
MAIL_SERVER = 'smtp.163.com'
MAIL_PORT = int('465') or int('994')
MAIL_USE_TLS = 'true'.lower() in ['true', 'on', '1']
MAIL_USERNAME = ''
MAIL_PASSWOR... | [
"wang_sin@163.com"
] | wang_sin@163.com |
98144d083d85463a1bb494da5d77a6563a3bcd9c | eca028f615391c28faa22fdf8ae955423f73f445 | /tk26.py | 10abe69a6eab7290ac4051560c5d03e594039bf0 | [] | no_license | kishornava/tkinter_sample | d813bf2cba6fd34e199ac0dbef9989174227ebb2 | 23ede628417dd8116f30d301c9449b37e28132f5 | refs/heads/main | 2023-03-01T18:52:16.256541 | 2021-02-03T00:57:53 | 2021-02-03T00:57:53 | 332,957,232 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | #-*- coding: utf-8 -*-
#tk26.pyw
import tkinter as tk
def print_selpoint():
sel_start = txt.index("sel.first")
sel_end = txt.index('sel.last')
print(txt.get(sel_start , sel_end))
root = tk.Tk()
txt = tk.Text(width=30, height=5)
bt = tk.Button(text='SAVE', command = print_selpoint)
[widget.pack() for widget ... | [
"ne19008@azec.ac.jp"
] | ne19008@azec.ac.jp |
c9b64c4bfdc00788592a94875e52019ca0453b03 | 2451f5297cdad588f5c1450336bf4de7cd38ebd8 | /hotline/styles/__init__.py | a1af3599f2045b6c43336f947b7e68c0dffaddfa | [
"MIT"
] | permissive | danbradham/hotline | 45aebfa2e3ef53b5782dfcd006351daeed8b45ac | 267037d2b783f2fd5ed9ad16afaad9a51e821a5f | refs/heads/main | 2021-12-15T02:05:22.577499 | 2021-07-03T13:12:11 | 2021-07-03T13:12:11 | 11,076,114 | 16 | 3 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | # -*- coding: utf-8 -*-
import os
import sys
from glob import glob
this_module = sys.modules[__name__]
this_package = os.path.dirname(__file__)
for file in glob(os.path.join(this_package, '*.css')):
with open(file, 'r') as f:
data = f.read()
style_name = os.path.basename(file).split('.')[0]
setatt... | [
"danielbradham@gmail.com"
] | danielbradham@gmail.com |
b1159fafc24bc513627ba31c35d9f0208fb1d6a7 | d2a818967193f8f7f9e980ef5ba7decea6cb1065 | /L1Trigger/L1TMuonEndCap/python/fakeEmtfParams_2017_MC_cff.py | 3343034d1d16d8aaf7170908508f36e31701472f | [
"Apache-2.0"
] | permissive | panoskatsoulis/cmssw | 1f5bfc6664856032db6609fad1b793d63b31afa6 | 5e32e53f9a775ea197e83fdb1462f99d4c9cb1a9 | refs/heads/l1t-integration-CMSSW_9_2_8 | 2022-08-14T15:22:14.881299 | 2017-09-01T06:17:20 | 2017-09-01T06:17:20 | 102,378,833 | 0 | 1 | null | 2021-02-12T12:09:50 | 2017-09-04T16:01:18 | C++ | UTF-8 | Python | false | false | 1,459 | py | import FWCore.ParameterSet.Config as cms
## Fills CondFormats from the database
from CondCore.CondDB.CondDB_cfi import CondDB
CondDB.connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
## Fills firmware, pT LUT, and PC LUT versions manually
emtfParamsSource = cms.ESSource(
"EmptyESSource",
record... | [
"abrinke1@cern.ch"
] | abrinke1@cern.ch |
ce5951450a4cd865151ae115b4118a18ee34d959 | d7d53826ab804a3d0f229b0a189f2626d4ebe99b | /platforms/renren/renren_python/__init__.py | ab12380bfd9707774f6d9c67043474655e297150 | [] | no_license | zbcbcbc/xiaomaifeng | 6e299e7f1d13dbca95af7a1e46d66dd0d1c86b08 | 91b7da9404678227d3c2c4a446777be6dacdedb7 | refs/heads/master | 2020-12-02T16:58:26.661967 | 2016-09-04T17:53:51 | 2016-09-04T17:53:51 | 67,359,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | # -*- coding: utf-8 -*-
from renren import *
from config import * | [
"viczhang1990@gmail.com"
] | viczhang1990@gmail.com |
598ae4caedeee35e6cdfba91c14d8cd52d21c054 | d27e74517e9fc9c6135b3e9cbc4d20ef161ce19b | /src/test.py | 88ba341d96f19c308a029b2f8810578111397a96 | [] | no_license | arijitpingle/sms_urgency_classifier | 4b700829a826b724b556d913c5e7d236163b2b32 | 48310423b8ccd7629b2726e24bf5f8e268bf8384 | refs/heads/master | 2020-04-01T07:41:57.953873 | 2018-10-14T14:12:38 | 2018-10-14T14:12:38 | 152,999,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | from bayes import Bayes, URGENCIES
from sys import argv
import json
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
f = open(argv[1], 'r')
json_str = f.read()
message_list = json.loads(json_str)
bae = Bayes(message_list)
bae.train()
test_data = open(argv[2], 'r')
test_data = test_data.read()
t... | [
"adrianisuru@gmail.com"
] | adrianisuru@gmail.com |
a4e38e8b8bb297957628bddc0b782f7e6ce758bb | a74ebe21cc1bbc50fc58ea619ba3348a4160e19d | /messages/serializers.py | 04e585e1d1eef46d18789958bca438de01e67a3d | [
"MIT"
] | permissive | sharebears/pulsar-messages | 61e47a373fcd6ea6d9d51a1ea21cb6020603fa9d | 723faa7be560f97f9a349e23b395239ccc10161f | refs/heads/master | 2020-07-06T00:15:03.036290 | 2019-08-17T03:53:44 | 2019-08-17T03:53:44 | 202,827,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | from core.mixins import Attribute, Serializer
from messages.permissions import MessagePermissions
class PrivateConversationSerializer(Serializer):
id = Attribute(permission=MessagePermissions.VIEW_OTHERS)
topic = Attribute(permission=MessagePermissions.VIEW_OTHERS)
last_response_time = Attribute(permissio... | [
"lights@tutanota.de"
] | lights@tutanota.de |
e4ea78c96244c3c27762cf80dadd47b2b440727b | 2f55b677c3aa98cc42049b6b2e4d3a153fa3871e | /handlers/user/Ban_handler.py | 9dbd942df777a99ec422310e68e953884efe00cb | [] | no_license | LANneeer/RoL-12 | 7645db5ab7f9487466fa5ad2bfd832439d56c7fc | 132fd865c92742101fcfddb6f3b37fae9483fc52 | refs/heads/master | 2023-02-17T19:49:18.595008 | 2020-11-11T20:59:37 | 2020-11-11T20:59:37 | 309,628,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,201 | py | from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters import Command
from aiogram.types import Message
from filters import Teacher
from keyboards.default import Teachers_buttons
from keyboards.default.Menu_buttons import back, yes_or_no
from loader import dp, db
@dp.message_handler(Command('ban')... | [
"0penguin@mail.ru"
] | 0penguin@mail.ru |
d329b2cd6d4a5903a8e80856a3e172c043c5220e | cdcf13d780edee591b6163ab88aa58462621b99a | /filters/collapse_code.py | 0987a3d780391f5619567fbe74196eb1b85f00bf | [] | permissive | BenPortner/panflute-filters | 5dc7c41a575aa4da298762796fa62d0af58e0ab6 | 4b35c68f95eb411fa511d889ff7c8d08db17a700 | refs/heads/master | 2020-08-24T06:46:52.916104 | 2020-04-08T12:33:23 | 2020-04-08T12:33:23 | 216,778,050 | 0 | 0 | BSD-3-Clause | 2020-04-06T12:10:48 | 2019-10-22T09:45:11 | Python | UTF-8 | Python | false | false | 893 | py | import panflute as pf
def prepare(doc):
doc
pass
def collapse(elem, doc):
if isinstance(elem, pf.CodeBlock) and "html" in doc.format:
content = [
pf.RawBlock("<details>", format="html"),
pf.RawBlock(
"""
<summary onclick="this.inn... | [
"noreply@github.com"
] | BenPortner.noreply@github.com |
2e3c052783f0ff1ba45dabbbc577d57b18a0a00e | fcb24a57bb349d90e69b96cef2b20bb06dca90cf | /HelloWorld.py | 66bc7c3b2c44002232e9375bc075a2433372a0ee | [] | no_license | Ayush2222/GitLearningRepo | 6f40a6b5d328ffe817a4142bcc3f87c57f6c723d | bb8e37236f0195964e874e3f5b3d45b50c6e8aec | refs/heads/main | 2023-04-25T09:11:49.111687 | 2021-05-11T12:25:41 | 2021-05-11T12:25:41 | 366,365,798 | 0 | 0 | null | 2021-05-11T12:18:11 | 2021-05-11T11:58:26 | Python | UTF-8 | Python | false | false | 80 | py | print("Hello World!")
print("in dev branch")
print("New changee in dev branch") | [
"4826.stkabirnav@gmail.com"
] | 4826.stkabirnav@gmail.com |
0eab3457417937f30d56e1532deddd214a0642b0 | a218fa92b3b98a1e7dde5dddaec596284018199a | /management/admin.py | 8c2e881598b7ff0b8462978341cf94e96a372ab0 | [] | no_license | ukrduino/MULTYDOM | cc7f557393377b63e671a39b4cedb9647a9e782b | 7061b176d4a11c58d61648ce54beaa41e423e75d | refs/heads/master | 2016-09-06T07:32:44.365853 | 2016-01-15T09:45:02 | 2016-01-15T09:45:02 | 30,238,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | from django.contrib import admin
from management.models import Dollar, PriceIndex
# класс для перенастройки отображения класса Dollar в админке
class DollarAdmin(admin.ModelAdmin):
# возможность просматривать записи Dollar в виде таблицы
list_display = ["dollar_date", "dollar_to_hrn", "dollar_active"]
# рег... | [
"blacksun@mail.ru"
] | blacksun@mail.ru |
a5658222541866b4f60deb069512be992943cf57 | bcd3fffcbf4bc43b896d5cb1e787f5082a2adb18 | /models/models.py | c16475ce6bbbaef90262e6ebc3e9192461783557 | [] | no_license | davidpatalejos/Rusia | e409513ad4f443ade9f0903052c74757d025c2d1 | bf4984d4cac3867501856c3429ec45ec61967b6f | refs/heads/master | 2020-04-09T15:32:40.003491 | 2018-12-04T22:54:28 | 2018-12-04T22:54:28 | 160,429,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,296 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
import datetime
import time
# class rusia(models.Model):
# _name = 'rusia.rusia'
# name = fields.Char()
# value = fields.Integer()
# value2 = fields.Float(compute="_value_pc", store=True)
# description = fields.Text()
#
# @api.depend... | [
"davidpat.sistemas@gmail.com"
] | davidpat.sistemas@gmail.com |
0849a8f3ae4967918963852dc4c3560d04704001 | 6d97e875fb6a3dea9780d918efe33dfd59ac137d | /python/analysisSettings.py | a55ccd8f080ca88a450c60fb86a02defc6c6a6ce | [] | no_license | acarvalh/tth-htt | 0a1350efcf76f425057c809f74d92ae3d719d008 | c6bb3f2bfb6620c858d29c800be1ae1e2246904a | refs/heads/master | 2021-06-20T05:29:35.657498 | 2018-06-02T01:34:37 | 2018-06-02T01:34:37 | 104,874,635 | 0 | 0 | null | 2017-09-26T11:10:10 | 2017-09-26T11:10:10 | null | UTF-8 | Python | false | false | 9,242 | py | # Integrated luminosity
# Reproduced https://github.com/HEP-KBFI/tth-nanoAOD/blob/4564463eed45251a4fd274ed754b1a37bae8e98e/test/datasets_data_2017_v2.txt#L33
# Official figures: https://hypernews.cern.ch/HyperNews/CMS/get/luminosity/761/1.html
lumi_2017 = 41.529e+3 # 1/pb (uncertaintiy: 2.3%)
# Systematic uncertaintie... | [
"karlehataht@gmail.com"
] | karlehataht@gmail.com |
ee59ae50464cd4581612b674f257e9d69934c6fb | 8641b6f180880ffc85f3822d316cf6dba6d09c19 | /1234/day01/HelloDjango/meituan/views.py | 6d6aeeca43a03330dcfae7e9cfd9fc181cfa54eb | [] | no_license | cgm1904443271/iscgm | 3922b29ea0c8d3b75b719faaafe0ce3a0a146848 | f11ca752ede004d89a6e6fde1d61d0147a23904f | refs/heads/master | 2020-04-25T21:29:11.253232 | 2019-04-03T00:58:33 | 2019-04-03T00:58:33 | 173,081,080 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import random
from django.http import HttpResponse
from django.shortcuts import render
# 视图函数,第一个参数必须是 request
from meituan.models import Student
def index(request):
return HttpResponse('首页')
def home(request):
return HttpResponse('<h1>home页面</h1> <p>hello</>')
def cart(request):
# 返回模板
return... | [
"1904443271@qq.com"
] | 1904443271@qq.com |
3e67bcdc5dd27d91b6398521997718c00acac0f1 | 3e3df1e9dc5c392aab6d8aff4a8034ce1ad5baa3 | /platzigram/settings.py | c2994fa2d1b18ff58fb084c7b865fef8e5e8741e | [] | no_license | RosoPenaranda/platzigram | b29c3c6672940dc3c514e0124218376989f011b2 | a0d6a931d494cceae7ca4d9dcd0e931aed3e4f8a | refs/heads/master | 2020-06-30T05:02:56.125762 | 2019-09-12T21:34:23 | 2019-09-12T21:34:23 | 200,734,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,592 | py | """
Django settings for platzigram project.
Generated by 'django-admin startproject' using Django 2.2.4.
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... | [
"rosopenaranda@gmail.com"
] | rosopenaranda@gmail.com |
b1d304adb28ec74b6cefaf9bf5f7fc43287d2269 | 3f753e58f6b2afcf8e56ce348e62c054a6689952 | /settings/base.py | 7159f53849a8dc86b10a1b619621c3a54ad89a8a | [] | no_license | Code-Institute-Submissions/we_are_social | a2e0af83359cc364199cb1f9d66b5cccdbebb018 | 803d7b1361703a3875fc75b825c63cb641f5d60d | refs/heads/master | 2021-01-10T23:11:56.186039 | 2016-09-08T20:48:18 | 2016-09-08T20:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | import os
import dj_database_url
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '_34saw!bco()q8$4(_5iyik-+nmr+u7jrsfywjq)guc9+j%==c'
ALLOWED_... | [
"osullivan_anne@hotmail.com"
] | osullivan_anne@hotmail.com |
6018dab5f8e4927e4a5341283fbff284f74d476e | deb1e334aff13137e403f99a06e7f4aa8a381b68 | /Rand.py | 8bf5be129699b569aae66fd9ba66b56c0a364259 | [] | no_license | zolotaryovandriy/python_ex | 1acb5a708b306a6f4eb14029394dd3532490bc05 | c1de6b03540d7f5a22dfb4dcf6d8d561ac222e1a | refs/heads/main | 2023-02-22T10:19:41.778468 | 2021-01-24T17:23:13 | 2021-01-24T17:23:13 | 332,506,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | import random
a = input('Введите число которое выпадет с погрешностью +-5; 50 - 100 :')
number = input( random.uniform(50, 100))
print( 'Надеемся что Вы выиграли' + number ) | [
"zolotaryovandriy@gmail.com"
] | zolotaryovandriy@gmail.com |
9adb62c8bf8191c8c7857c5e2d3fa53dcb0c5689 | 91ece21bd41fa46d3a827c4385c2ea400ce62d69 | /acuicultura/migrations/0003_auto_20190602_0353.py | 11c7c86756d84bfa47fe7a86134b2c327c81fc02 | [] | no_license | JySa65/insopesca | be25a18c5c26c5957e72228f1996d7e060912e05 | 5247d7322068bb9ea9a453b6455e55482b5fb3b7 | refs/heads/master | 2022-12-09T13:34:43.230237 | 2019-06-04T04:57:50 | 2019-06-04T04:57:50 | 149,946,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # Generated by Django 2.1 on 2019-06-02 07:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('acuicultura', '0002_auto_20190528_2344'),
]
operations = [
migrations.RemoveField(
model_name='tracing',
name='illegal_superfa... | [
"r.a.s.g65@gmail.com"
] | r.a.s.g65@gmail.com |
31bf2ad3b5ec40eec46af9f48af087783b130625 | 774ec82a830916c6e58c07e392c9309256872db4 | /old/rpc_server.py | 004d2ee0f99093b172849f3228f6e6093cb6e183 | [] | no_license | jdutreve/zeromq | f1b94d74df733bc5dea403044af5b243039a7017 | c2de346eef723e38c93765dc46c4ad25e058e148 | refs/heads/main | 2023-01-11T04:37:57.745590 | 2020-11-15T10:24:51 | 2020-11-15T10:24:51 | 313,004,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | #
# Paranoid Pirate worker
#
# Author: Daniel Lundin <dln(at)eintr(dot)org>
#
# restart DEALER socket when queue restarts (timeout to receive queue heartbeat)
# heartbeat to queue so queue unregisters this worker when unresponsive
#
import time
import sys
from random import randint
from datetime import datetime... | [
"noreply@github.com"
] | jdutreve.noreply@github.com |
ac1759ce2d930b6a54b473931f0fc615dc55f1a1 | ef01de6cdc1304621f7f8b567d1b18784613624a | /pasman/routes.py | 621c04bf4cd2307de0b845ac598a73d02f54e304 | [] | no_license | Panas18/PasswordManager-Flask | 64ceceb14e69a7077fafbc6786641cbcc618d260 | ae7b5cef9a37958fb23a4ddf1016671da0501064 | refs/heads/main | 2023-05-08T11:22:15.665229 | 2021-05-26T05:04:33 | 2021-05-26T05:04:33 | 362,016,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | from flask import render_template, url_for, flash, redirect, request
from pasman import app, db
from pasman.models import User, Post
from pasman.forms import RegistrationForm, LoginForm, AddPostForm
from flask_login import login_user, login_required, logout_user, current_user
posts = [
{
'app': 'Facebook',... | [
"panas.tiwary18@gmail.com"
] | panas.tiwary18@gmail.com |
f99888b7ad7daf1ae97e4d12dc081f88315f05d6 | fe0fa687ef2bc58f38ba0d3ee49dbfc6bb2b2532 | /myboard/myboard/asgi.py | e88a43c9ec23996439429b2e54fdd4002237b5c9 | [] | no_license | Melady-Veter/Final | 7f83a0c783727ee1e9b591bb8f361e8613e19263 | c4c78708de525a38af33a8b5a70577f17426f2de | refs/heads/main | 2023-06-23T11:19:57.988589 | 2021-07-22T17:28:36 | 2021-07-22T17:28:36 | 388,542,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for myboard project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"noreply@github.com"
] | Melady-Veter.noreply@github.com |
21128ee6c0d0b8546410bb8b6c20cf3f49681fc8 | a6eca57cfe5961437ec60e48ec91a85b842cbfda | /tools/CreateKernel.py | d449ba5dcdedcf5225ec1bcda063f97f3ac5c041 | [] | no_license | fortmeier/CUrnel | 149979b597b4748d1aebc2be1b267deef0fb4beb | beb0bbe850bf421b0c6dbc5230a6b629e78455a4 | refs/heads/master | 2020-07-03T09:53:39.102081 | 2014-06-06T09:11:15 | 2014-06-06T09:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | from sympy import *
from sympy.parsing.sympy_parser import *
#U = symbols("U")
#U = MatrixSymbol('U', 3, 3)
#U_x = MatrixSymbol('U_x', 3, 3)
#U_y = MatrixSymbol('U_y', 3, 3)
Z = Matrix([[0,0,0],[0, 0, 0],[0,0,0]])
i = Matrix([[0,0,0],[0, 1, 0],[0,0,0]])
d_dx = Matrix([[0,0,0],[-0.5, 0, 0.5],[0,0,0]])
d_dy = d_dx.tr... | [
"fortmeier@imi.uni-luebeck.de"
] | fortmeier@imi.uni-luebeck.de |
82f35a425a76ffb00a3a496e30d02db6a5bfb2f2 | 51997d50564d366d08829f23e47963ce1ce5bf2d | /doc/source/conf.py | 0c6bb5158106643351970818096f59afbefc37de | [
"BSD-2-Clause"
] | permissive | magicicada/simple_network_sim | 0e0c86c981c7a01988785936f3fab7f87f451c03 | f7d31bb97052951658a5954ecba2ffe8fc3f2aa7 | refs/heads/master | 2023-04-20T13:25:13.628351 | 2020-07-17T13:21:13 | 2020-07-17T13:21:13 | 256,522,296 | 2 | 1 | NOASSERTION | 2021-05-04T13:08:45 | 2020-04-17T14:15:43 | Python | UTF-8 | Python | false | false | 2,160 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"bob.turner.uk@gmail.com"
] | bob.turner.uk@gmail.com |
fa124ae1000dfb25e11780f6a3e0bfed4690739f | c6c61ae056151292b84cb8840bc90120bdea0152 | /payment_bridge/tests/common.py | 1a1c907589d6f1860c4644e7e52c44c1170984d4 | [] | no_license | zbyte64/active_merchant_compat | a61bd0a1dbdbd2e76af71264aff0cefc606f1cfc | e9a95563c8c7afec684b13ff40836a8177c3a0f2 | refs/heads/master | 2021-01-25T08:55:06.816324 | 2012-11-28T19:54:51 | 2012-11-28T19:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | import base64
import json
import unittest
import yaml
import os
from payment_bridge.wsgi import BaseDirectPostApplication
global_config = {}
inpath = os.path.join(os.getcwd(), 'gateways.yaml')
if os.path.exists(inpath):
infile = open(inpath)
global_config = yaml.load(infile) or {}
else:
print "Please crea... | [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
df618b7b46265ab61656a131e4bfe1b8ab4cbe3b | cd80e6220e6504a84992f2f0bc8583966acd8f59 | /backend/users/urls.py | bde025820c4a9333fcaa0ad7ba7649bff56d9baf | [] | no_license | lisc119/Invoice-Manegement-System | ae370ce84d3afef2e8263fb43c063563f31dfe71 | 789405bc964c5dd504f4741cff7c7ebf79a33861 | refs/heads/master | 2023-05-12T03:49:55.349646 | 2021-06-01T16:25:06 | 2021-06-01T16:25:06 | 372,894,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django.urls import path
from users.views import ListUsersAPIView, RetrieveUpdateMeAPIView, RetrieveCertainUserAPIView
urlpatterns = [
path('me/', RetrieveUpdateMeAPIView.as_view()),
path('list/', ListUsersAPIView.as_view()),
path('<int:id>/', RetrieveCertainUserAPIView.as_view()),
]
| [
"mjchoo119@gmail.com"
] | mjchoo119@gmail.com |
01295a0d92bc3c004412caa7def585dc5331f46a | d5a6ad0eabe229f025f7852f57331c0c464b21fd | /14-7.py | ac936f9b46feb496725ada8b61e64605b561a6d0 | [] | no_license | t4kenn/python | 6bb7462a6e1a156b1c63c9e697c7e04f2b4445f5 | fb269671301761454916eaf7b9979a120e112c1c | refs/heads/master | 2023-08-11T01:34:07.468003 | 2021-09-22T00:52:23 | 2021-09-22T00:52:23 | 409,018,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #n = '東京都千代田区神田神保町'
#print(n[3:11])
n = '東京都千代田区神田神保町'
m = '東京都'
l = n.index(m)
print(n[l + len(m):]) | [
"ykh2135151@stu.o-hara.ac.jp"
] | ykh2135151@stu.o-hara.ac.jp |
bb265573bca6780955499682631dfaf3391ba923 | efd06747a3c1a88f514c4a202179a1596e439727 | /final_project/utils.py | 0e499e27615edf5e95986dd23ef32ba0fae159c7 | [] | no_license | alisonsu/BMI_203_Final_Project | a023563a8a19c9179377d5be3ffc146cee56e30b | a778127d7ee081dad517a551e2991295677628f2 | refs/heads/master | 2021-01-22T20:34:54.106650 | 2017-03-24T00:28:51 | 2017-03-24T00:28:51 | 85,332,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 6 10:27:42 2017
@author: alisonsu
"""
import numpy as np
from Bio import SeqIO
def read_pos_seqs(filename):
# read positive sequences
pos_seqs = []
file = open(filename,"r")
for line in file:
line=line.strip("\n")
... | [
"alison.nc.su@gmail.com"
] | alison.nc.su@gmail.com |
26aaf551caec67575a4427ee341ee566808a1f6e | 16790cc99b4f28107463ef5dfa42fcab2f8d6d1c | /m3u8_Thread_Demo.py | 07ecaea0a78318c259525b15f6cd4be812ed8b84 | [] | no_license | liu1185616638/seleniumDemo | ce19523f53fdc55eb46e693e8f2566db9e8c8722 | 618a111a83f21c9d647bc6f99e90e2db1e363a79 | refs/heads/master | 2020-09-23T20:24:51.870254 | 2020-05-09T00:35:15 | 2020-05-09T00:35:15 | 225,578,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,039 | py | import time
import threading
# 使用 threading 模块创建线程
import queue
# 优先级队列模块
# 线程优先级队列(Queue)
import datetime
import requests
import os
import urllib3
# Python的urllib3软件包的证书认证及警告的禁用
urllib3.disable_warnings()
# m3u8是本地的文件路径
m3u8_path = "E:\\PySpider\\playlist.m3u8"
# request请求头,若无可能被禁止访问
header = {
"User-Agent": "Moz... | [
"17521587865@163.com"
] | 17521587865@163.com |
e3f10a7582e6fc5d779950e44c40a5806c9fe248 | b7f45072d056b80ed49e6bcde91877d8576e970d | /ImageJ/py/test_close_non_image_window.py | 2cd2c6e0e90d945001ede2dac8896cf07f92104b | [] | no_license | jrminter/tips | 128a18ee55655a13085c174d532c77bcea412754 | f48f8b202f8bf9e36cb6d487a23208371c79718e | refs/heads/master | 2022-06-14T08:46:28.972743 | 2022-05-30T19:29:28 | 2022-05-30T19:29:28 | 11,463,325 | 5 | 8 | null | 2019-12-18T16:24:02 | 2013-07-17T00:16:43 | Jupyter Notebook | UTF-8 | Python | false | false | 470 | py | from ij import IJ, ImagePlus, WindowManager, Prefs, ImageStack
import jmFijiGen as jmg
IJ.run("Close All")
# load an image and create a Result Window and a ROI Manager
imp = IJ.openImage("http://imagej.nih.gov/ij/images/blobs.gif")
imp.show()
IJ.setAutoThreshold(imp, "Default");
IJ.run("Convert to Mask")
IJ.run(imp, ... | [
"jrminter@gmail.com"
] | jrminter@gmail.com |
e0be8474480ff509c76d647a5246e2bc05ddc9bc | 80df6cfab0ec1174905a3af73949c57ca21dc616 | /mybank/mybank/forms.py | d591386e1ef20d4461f6ce48e2b44ba37eace21f | [] | no_license | yaskev/mybank | 7e0d9c92008598d8081d5a8519ab26b831324ebe | 0e512c0d62faf7c334440ba83ac28a4b8a3e210d | refs/heads/master | 2021-11-25T06:47:01.775386 | 2021-11-22T16:16:43 | 2021-11-22T16:16:43 | 181,752,417 | 0 | 0 | null | 2021-11-22T15:54:30 | 2019-04-16T19:20:31 | Python | UTF-8 | Python | false | false | 1,816 | py | from django import forms
from django.contrib.auth.models import User
from .models import Client, Admin, Account
class SignUpForm(forms.Form):
name = forms.CharField(max_length=30)
surname = forms.CharField(max_length=30)
email = forms.EmailField()
password1 = forms.CharField(widget=forms.PasswordInpu... | [
"yaskevich.san@mail.ru"
] | yaskevich.san@mail.ru |
b95621f25de89448ebb11eabe3dd22fe354e7d25 | b674e66eec637f8feea870c8038452fbcba30e8f | /GUI/__init__.py | 4af11d2da3c36280f66035237365dc9d66ba939d | [] | no_license | tftangming/Speech_Recognization | 9d23faad113ffa1e34cd815810c6d6d96fb5b570 | cadb335175a109f40f43da808e5033d81071986e | refs/heads/master | 2020-11-27T15:10:02.847844 | 2019-12-23T04:32:49 | 2019-12-23T04:32:49 | 229,503,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 19-8-5 下午3:24
# @Author : tangming
# @File : __init__.py.py | [
"925308546@qq.com"
] | 925308546@qq.com |
9f01576496cb4c9d50a0ee3a2f27855afb652cc9 | 4a761d25954a9dd9aafbcac677a62e83e6785ba3 | /test/functional/wallet_keypool.py | 0d3ecabfd8b88457820969f172ce41e1b83e630a | [
"MIT"
] | permissive | CONCRETE-Project/CONCRETE | 4dce6c776857d0fccef094f29aae1228796bd03c | f446b5335bff7f7a6a1ffeba97777339539263b0 | refs/heads/master | 2022-12-02T16:07:03.999082 | 2020-08-24T21:25:18 | 2020-08-24T21:25:18 | 256,929,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the wallet keypool and interaction with wallet encryption/locking."""
from test_framework.test_fr... | [
"ziofabry@hotmail.com"
] | ziofabry@hotmail.com |
1affd33230193b12d483349ee0b177e42bced241 | 3b3a0af6195a73bf94cbacac2c52e17481250ce1 | /19-dataIE/data-path.py | 3cdae968665d62a00ddf2a2aa717982cf7337ea8 | [] | no_license | Pratyusha-Isukapalli/pyanalytics | 877c8ef84c593ad9a6c1412e69e5ede1c003cbb8 | 3ba3e99146a5509fc8ece92a33d8f0e48cf6e76d | refs/heads/master | 2022-12-29T15:39:49.379488 | 2020-10-09T09:02:33 | 2020-10-09T09:02:33 | 293,048,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | #data import
import pandas as pd
import numpy as np
import os
os.getcwd()
os.listdir()
os.listdir(os.getcwd())
#when using fwd slash use single
df1 = pd.read_csv('data/iris.csv')
df1.head()
df1
#change for your folder
df1a = pd.read_csv('E:/pywork/pyProjects/duanalytics/pyAnalytics/data/iris.csv')
df1a.head()
#when... | [
"um20216@stu.ximb.ac.in"
] | um20216@stu.ximb.ac.in |
3eaa2f0853847a046bda6a70d158aaf6e5df3db3 | c98a98486663b2fd4654e9d0b80b57776f6b4db8 | /python/src/main/python/Q048.py | 6b8e71213053e2fbb28bcfbce5727ec2f21605ea | [] | no_license | renkeji/leetcode | 6ae31d63cd4819ebd2a69be0665d04907fc8cc3c | 1d40d357ff20a0560656727a07bf3e1c00dc4cb8 | refs/heads/master | 2020-05-22T04:24:48.263249 | 2017-05-21T22:26:05 | 2017-05-21T22:26:05 | 41,816,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | from src.main.python.Solution import Solution
# You are given an n x n 2D matrix representing an image.
#
# Rotate the image by 90 degrees (clockwise).
#
# Follow up:
# Could you do this in-place?
class Q048(Solution):
def rotate(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: vo... | [
"kren@apple.com"
] | kren@apple.com |
af3a768529efb8bb50385450db2321e290882c18 | f0d583a064cc53510d8b00b42ac869832e70bf41 | /facerecognition/evaluate/FaceCropper.py | 6826195a7621246c2a234747f1b31805e68464ca | [] | no_license | PaulZoni/nn | 918d543b4b2d955ff991da70ce4e88d4d94d13c8 | 25a81579499c893584b040f536ddbef254197f4e | refs/heads/master | 2020-04-27T19:05:10.968050 | 2019-06-27T12:22:16 | 2019-06-27T12:22:16 | 174,564,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | import cv2
import numpy as np
class FaceCropper(object):
CASCADE_PATH = "/home/pavel/PycharmProjects/nn/facerecognition/evaluate/haarcascade_frontalface_default.xml"
frontal_face_extended = "/home/pavel/PycharmProjects/nn/facerecognition/evaluate/haarcascade_frontalcatface_extended.xml"
def __init__(self... | [
"polykovpavel23@gmail.com"
] | polykovpavel23@gmail.com |
e874ce17a476b6813ee430fd51b64ccbb202365f | e174e13114fe96ad2a4eeb596a3d1c564ae212a8 | /Python for Finance Analyze Big Financial Data by Y. Hilpisch/Code of Python For Finance/4375OS_03_Code/4375OS_03_22_dir2_default_input_value.py | 2c4bf3307842ec868e3d734bbc87c545bf5e7179 | [] | no_license | Kevinqian0501/python_books | c1a7632d66dceb46db439f7cbed86d85370aab42 | 0691e4685af03a296aafb02447e3585db55ce461 | refs/heads/master | 2021-08-30T19:27:03.985464 | 2017-12-19T05:56:31 | 2017-12-19T05:56:31 | 104,145,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | """
Name : 4375OS_03_22_dir2_default_input_value.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 12/25/2013
email : yany@canisius.edu
paulyxy@hotmail.com
"""
# with a default input value
def dir2(path='c:\python32'):
fr... | [
"kevin@Qians-MacBook-Pro.local"
] | kevin@Qians-MacBook-Pro.local |
ed10a62d6c4e332c4e7f897f3fd7836ee23d853e | b2ad1c09cecf59066ddf4ff94dbe7337c6a66788 | /Mackup/Library/Application Support/IntelliJIdea2016.2/python/helpers/pycharm/django_manage_commands_provider/_parser/parser.py | f2b28ae0f864ef9c9d8d7195a69f42a30c8d1802 | [] | no_license | goaxe/mac-backup | 04af44310c8143e744d9ae37b02813bd48b6bb25 | a75e70f11eb277cebaf6d7385e17364f895ace87 | refs/heads/master | 2021-01-09T06:24:26.824307 | 2017-02-05T09:40:33 | 2017-02-05T09:40:33 | 80,982,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | # coding=utf-8
"""
Exports data from optparse or argparse based manage.py commands and reports it to _xml.XmlDumper.
This module encapsulates Django semi-public API knowledge, and not very stable because of it.
Optional env var ``_PYCHARM_DJANGO_DEFAULT_TIMEOUT`` sets timeout (in seconds) to wait for each command t... | [
"jian.huang@hulu.com"
] | jian.huang@hulu.com |
0e266919ea78b49136e3fa48756b2e0ad863ee7f | 6390a7f030cc6b2ff61237e41360af2d270e1efb | /tests/numpy/type.py | bf439e924a092a27e2e2c855344ea182de7bcdd3 | [
"MIT"
] | permissive | davidkellis/py2rb | b999ca4c3b9316d19ac42c6d57fbbc158ee35700 | 4518a1549cfacc25a1ea3c736bca3de15a123878 | refs/heads/master | 2023-06-22T05:32:16.209823 | 2021-07-05T01:55:53 | 2021-07-05T01:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # coding: utf-8
import numpy as np
print(np.int8)
print(np.int16)
print(np.int32)
print(np.int64)
print(np.int)
print(np.uint8)
print(np.uint16)
print(np.uint32)
print(np.uint64)
print(np.uint)
print(np.float32)
print(np.float64)
| [
"naitoh@gmail.com"
] | naitoh@gmail.com |
d2b0b64e206a08eb56d94b97f103f05db00b3bd8 | b064cd7c02c09c719b760c2ed246ab872c3b1d10 | /load_rawdatasets.py | acd659a549d042855544a7503a8caacd30a3cac9 | [
"LicenseRef-scancode-public-domain",
"PDDL-1.0"
] | permissive | RawDataLabs/covid-19-zme | b1b735173f364d3236ecfc8d7cb4b09e6b12ea84 | 2f7b41285899b8f6bc6c188b7a3e1fc7d0768bdc | refs/heads/master | 2021-12-08T09:53:18.142179 | 2020-07-25T10:49:13 | 2020-07-25T10:49:13 | 249,985,389 | 0 | 1 | null | 2021-11-16T22:12:56 | 2020-03-25T13:26:28 | Python | UTF-8 | Python | false | false | 1,392 | py | from dataflows import Flow, load, dump_to_path
BASE_URL = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/'
CONFIRMED_GLOBAL = 'time_series_covid19_confirmed_global.csv'
DEATH_GLOBAL = 'time_series_covid19_deaths_global.csv'
RECOVERED_GLOBAL = 'time_series... | [
"spinualin@gmail.com"
] | spinualin@gmail.com |
9d8d944c3fccad32dc7ad6bdecfd96e7272969e4 | 8d93507834e7988e73eb80624c3a2ed99b7d4832 | /train.py | a7786efcf391cfa9fe9cfb26f44f61ecf5582f2e | [] | no_license | yiwangde/test_sin | bb13b7de3a83afb718d5bf7c420c5e1b890e9167 | aa6d4175b053ad6783d578f3c1ec6343ea7e661f | refs/heads/master | 2022-12-02T03:29:20.981607 | 2020-08-08T10:54:36 | 2020-08-08T10:54:36 | 286,020,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | # -*- coding: utf-8 -*-
from PIL import Image
import pandas as pd
from torchvision import models
import torch
import torch.nn as nn
import torch.optim as optim
from torchvision import transforms
from torch.utils.data import Dataset, DataLoader
import time
import os
import dataset
from PIL import ImageFile
... | [
"noreply@github.com"
] | yiwangde.noreply@github.com |
6b94cc6f96b64548b8a6f5d1eb93e9473a97fb84 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/lib/pymodules/python2.6/papyon/event/profile.py | dc2baa746dd1841a536a99b43d7b2b21fd559ad9 | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | /usr/share/pyshared/papyon/event/profile.py | [
"root@xinli.xinli"
] | root@xinli.xinli |
3bcac51412ed5429045597b8726842d62f5fa34b | 33163a004dba6bc15ab274312b73dde3e421940b | /yunionclient/common/exceptions.py | ea229626fd96c875af369755c4a6e10d23232b90 | [
"Apache-2.0"
] | permissive | yousong/python_yunionsdk | 2d1b4cc4dfb4adeeb57a41e6a134fcf4ad844985 | 9e03d962ea5ef16e68090b659a1ee6d499c93555 | refs/heads/master | 2020-08-29T21:49:16.482221 | 2019-06-06T08:51:14 | 2019-06-06T08:51:14 | 218,182,249 | 0 | 0 | Apache-2.0 | 2019-10-29T01:53:57 | 2019-10-29T01:53:56 | null | UTF-8 | Python | false | false | 3,962 | py | """
Exception definitions.
"""
import json
class CommandError(Exception):
pass
class NoTokenLookupException(Exception):
"""This form of authentication does not support looking up
endpoints from an existing token."""
pass
class EndpointNotFound(Exception):
"""Could not find Service or Region... | [
"qiujian@yunionyun.com"
] | qiujian@yunionyun.com |
ced1b7d4acd1d81bbeec043f45408eae3dc34782 | 3b263be3e5bc5b2224b08247a1795f30c73d4000 | /code/simulations/ForSimRORa.py | 9d7b12c124a91fbd52b15d90539aab0587a486cf | [
"MIT"
] | permissive | neurorestore/neuraldynamicplatform | 6c737a44aaffe7eea6caa0dfd24932bda59eb308 | ac32df03a8892dafdf9765c6148b60ccdd34f1d6 | refs/heads/master | 2021-02-10T16:18:06.524627 | 2020-03-02T17:10:43 | 2020-03-02T17:10:43 | 244,397,953 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,622 | py | from mpi4py import MPI
from neuron import h
from ForwardSimulation import ForwardSimulation
from cells import AfferentFiber
import random as rnd
import time
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
from tools import firings_tools as tlsf
import pickle
from ... | [
"andreasrowald@Andreass-MacBook-Air.local"
] | andreasrowald@Andreass-MacBook-Air.local |
6ce1ecdee7a9cf38ba86c1d204e66bc1e333df8e | 1e44be3a406d6473bc075c1a88add39851e82c30 | /LabVIEW/LabVIEW data processing/plot multiple spectral sweeps MAT.py | d7e2255affc9f474fe0ee6c814baaa2a900ea228 | [] | no_license | philddphil/latest-python | f0894227a7354b1f393fa83c6fe938e76e5b3479 | 6eea637cd39c22d8a7c465569b591fae75b01f16 | refs/heads/master | 2022-02-02T21:21:44.563796 | 2022-01-06T16:01:22 | 2022-01-06T16:01:22 | 148,301,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,550 | py | ##############################################################################
# Import some libraries
##############################################################################
import sys
import os
import glob
import time
import re
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import csv
imp... | [
"philldolan@gmail.com"
] | philldolan@gmail.com |
1343447d884966d58eae60eff8a5d897df8e129a | 0aec617440075b73e5da64cd1477b6a098ed864c | /data_structures/recursion/binary_search.py | 496f81ebb3311fb3e671c99933525b63e1203629 | [
"MIT"
] | permissive | severian5it/udacity_dsa | 0b1512cc8c5125149d6be6f78fa14446e7ab5c25 | e47f27b0179961d6107fe46a236ac7d887fe6816 | refs/heads/main | 2023-03-07T02:24:37.299599 | 2021-02-14T10:34:50 | 2021-02-14T10:34:50 | 316,949,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #bear in mind, this is log(n)
def binary_search(arr, target):
return binary_search_func(arr, 0, len(arr) - 1, target)
def binary_search_func(arr, start_index, end_index, target):
if start_index > end_index:
return -1
mid_index = (start_index + end_index) // 2
if arr[mid_index] == target:
... | [
"pierluca@amazon.com"
] | pierluca@amazon.com |
4bec30e32f464792a0a19bf3305e7da6e5ff7283 | 5e3894f90e18781cad9c27705258b0b0e020c4c6 | /src/celerypoc/tasks.py | d8be5603e15d67fa3dfd2450f4f0051681745afa | [] | no_license | AkharazOmar/celerypoc | 958376fb63925240a0b8e8dd3982781324a293b6 | 585e44d40dd612ebe0a283345c36c815795a163e | refs/heads/master | 2021-01-01T22:23:56.305490 | 2020-02-08T19:29:32 | 2020-02-09T20:36:08 | 239,369,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | import time
from celery import chain
from celerypoc.mycelery import app
class TaskResult:
def __init__(self, value):
self.value = value
@app.task()
def add(x, y):
if isinstance(x, TaskResult):
x = x.value
return x + y
@app.task()
def mul(x, y):
if isinstance(x, TaskResult):
... | [
"omar.akharaz@gmail.com"
] | omar.akharaz@gmail.com |
848d339858bad32396b1fdf3d22fb791d96932f2 | 9f1418ff8bb57d650040c088e559ccfabd41ae6d | /hotels/models.py | b20f265584c1757d1f037a0792f84e8667475ef3 | [
"MIT"
] | permissive | Wandji69/Hotel-Manager | 681b16f96624c73d1b70e116e8de529eb2a39bd1 | 5ee6316b422630009522c49d7e340c0d0b0a75c4 | refs/heads/master | 2021-02-15T09:55:45.901228 | 2020-03-03T22:36:02 | 2020-03-03T22:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py |
import datetime
from django.db import models
from django.utils import timezone
# Create your models here.
class Hotel(models.Model):
desc_text = models.CharField(max_length=200)
act_date = models.DateTimeField('active_date')
def __str__(self):
return self.desc_text
def active_date(self):
... | [
"peng.akebuon2468@gmail.com"
] | peng.akebuon2468@gmail.com |
35cf6768de0e3842129e0041750855196e92c9ae | cab8220f0b29c44c553304173ba539c356ce5c61 | /main-2.py | 5bff1494cdc84f77a8208259d71a3ac761a5f157 | [] | no_license | sgalgalikar/itineraryplanner | 6575d9cf124f4e1365561603f3b7231473cee166 | a97bc17bc4816f6c458f063666a97ffed6eb8e74 | refs/heads/master | 2020-12-31T00:02:35.378502 | 2017-01-31T22:47:39 | 2017-01-31T22:47:39 | 80,569,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,129 | py | from secrets import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
API_HOST = 'api.yelp.com'
DEFAULT_TERM = 'Thai'
DEFAULT_LOCATION = 'Seattle, WA'
SEARCH_LIMIT = 5
SEARCH_PATH = '/v2/search/'
BUSINESS_PATH = '/v2/business/'
import base64
import cgi
import Cookie
import email.utils
import hashlib
import hmac
impor... | [
"Sanjana@D-10-157-55-167.dhcp4.washington.edu"
] | Sanjana@D-10-157-55-167.dhcp4.washington.edu |
6e001a16113bec9864c78a32faf5a2e383f9a025 | 8b46083456e5e018666890dbc8117a725bf1a203 | /DUV_HotSpot.py | 4e5ece3c6e05d01f9478a66268ad67731936673e | [] | no_license | Rikoshet-234/DreamUV | 94dcacd082ceb488d2b0ec5efbb4e7b43bee4555 | 4a565aef7b4831a47ae7c85ab2a385cb21687d72 | refs/heads/master | 2022-11-19T09:16:37.925764 | 2020-07-04T21:22:59 | 2020-07-04T21:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,007 | py | import bpy
import bmesh
import math
import random
from mathutils import Vector
from . import DUV_Utils
class HotSpotter(bpy.types.Operator):
"""Unwrap selection using the atlas object as a guide"""
bl_idname = "duv.hotspotter"
bl_label = "hotspot these bad boyz"
bl_options = {"UNDO"}
... | [
"noreply@github.com"
] | Rikoshet-234.noreply@github.com |
e72f5ccbf26be489a04386e1764a5b33b008e33a | ba383eac42dc733634147a64d379516a55222db5 | /from_rahul/logo.py | 9e45f58e1a72f45cab1633b2842b97a54a05abae | [
"MIT"
] | permissive | rahulsrma26/manim | 80ecce37e7fa087bc50900594a099c262104e3a3 | 868cacd73b7df868b4a9fff3e84b9c098c24fa67 | refs/heads/master | 2022-12-25T17:14:49.004802 | 2020-10-09T14:58:08 | 2020-10-09T14:58:08 | 262,310,509 | 0 | 0 | null | 2020-05-08T11:53:13 | 2020-05-08T11:53:13 | null | UTF-8 | Python | false | false | 3,269 | py | #!/usr/bin/env python
from manimlib.imports import *
from from_rahul.ninja import Ninja
from from_rahul.extend import *
# To watch one of these scenes, run the following:
# python -m manim rahul\example.py LogoAnimation -c #151520 -pl
# optional arguments:
# -h, --help show this help message and exit
# -p, ... | [
"rahulsrma26@gmail.com"
] | rahulsrma26@gmail.com |
69627300c20dcaa209af5570488069360af0d1e0 | e7670f4a3723c3fce0327935848d00f32c962ebc | /ui/createArithmeticQuestion.py | 494b76d14412611ade5266af09a661f56fb8f1fb | [] | no_license | rickwest/quiz-uni | 0a9a8e6adcf7071f38fb426e354088f19d0712b7 | e411880a8b40144a97d5f48dee56862c901c0532 | refs/heads/master | 2020-04-17T03:57:20.677975 | 2019-02-18T16:37:51 | 2019-02-18T16:37:51 | 166,207,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,813 | py | from PyQt5 import QtCore, QtGui, QtWidgets
from question.Question import Question, QuestionBank
from question.AutoMarkedQuestion import ArithmeticQuestion
class CreateArithmeticQuestionUi(object):
"""Create an ArithmeticQuestion ui
This class creates the ui for creating an arithmetic question."""
# se... | [
"rickwestdev@gmail.com"
] | rickwestdev@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.