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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ddecfc8cb11d9c0029f0d99237baea75bb36a83 | 4f878cc67a5d447c0a7f76539db82719998d885e | /dash/tut/callback/7.py | 5ebbc8b38b8bc5c986155ca9b69e6de2b8bc7e19 | [] | no_license | masknugget/webapp_lowcode | 91110340c5cfd4d4e11dbea77826e42a3998a84c | fffe73ad87cf02e703529d20f034fb13c2add5ff | refs/heads/main | 2023-06-24T14:46:28.841698 | 2021-07-25T15:32:18 | 2021-07-25T15:32:18 | 389,378,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
import dash_design_kit as ddk
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_styl... | [
"946883098@qq.com"
] | 946883098@qq.com |
20afee652131381186c1524e777baef2bc3b5d6f | 058f6cf55de8b72a7cdd6e592d40243a91431bde | /tests/llvm/dynamic/test_warning_dont_abort/test.py | 09517e76e3243740f057aabb1099d60f3b7704e8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/FPChecker | 85e8ebf1d321b3208acee7ddfda2d8878a238535 | e665ef0f050316f6bc4dfc64c1f17355403e771b | refs/heads/master | 2023-08-30T23:24:43.749418 | 2022-04-14T19:57:44 | 2022-04-14T19:57:44 | 177,033,795 | 24 | 6 | Apache-2.0 | 2022-09-19T00:09:50 | 2019-03-21T22:34:14 | Python | UTF-8 | Python | false | false | 2,790 | py | #!/usr/bin/env python
import subprocess
# returns: tuple (error, op, file, line)
#
#+-------------------------- FPChecker Warning Report --------------------------+
# Error : Underflow
# Operation : ADD ... | [
"ilaguna@llnl.gov"
] | ilaguna@llnl.gov |
5eb0f81eef5b851f797d1d1d90714e03fb12a7bb | 5b08be996658aaae39306876d45c3a32ad8a0b43 | /roles/mbs/frontend/files/mbs.wsgi | e3c7bd5223607ce2abadb37107f3c5caaa926cc5 | [] | no_license | henrysher/fedora-infra-ansible | 84be23908bbbfee93da67b3bdaeb34f4efc193cb | 30418756785eb4079a7adb4a6d4f11ec59dd8e08 | refs/heads/master | 2021-01-23T17:07:45.846157 | 2019-12-13T14:38:07 | 2019-12-13T14:39:59 | 15,855,480 | 22 | 10 | null | 2017-07-26T10:47:23 | 2014-01-13T02:05:44 | JavaScript | UTF-8 | Python | false | false | 127 | wsgi | #-*- coding: utf-8 -*-
import logging
logging.basicConfig(level='DEBUG')
from module_build_service import app as application
| [
"rbean@redhat.com"
] | rbean@redhat.com |
8efcb3ae7a5a57096b4757b7a4f0fb639e5c59c8 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/odps/df/expr/errors.py | 7aa847a990aed1665fdf166912a16ec6059475df | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2017 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | [
"noreply@github.com"
] | wangyum.noreply@github.com |
2c557f523e47a0593ccd02f8d8c509ceaf504d3a | 71460476c5f5ebdca719def124f1a0650861fdab | /mint_work/custom/client_plan_upgrade/models/__init__.py | 0280776e04b90ee44aff3b2999f96ed1c2b472d6 | [] | no_license | merdhah/dubai_work | fc3a70dc0b1db6df19c825a3bf1eef2a373d79c0 | e24eb12b276a4cd5b47a4bd5470d915179872a4f | refs/heads/master | 2022-01-07T11:22:07.628435 | 2018-10-17T13:37:24 | 2018-10-17T13:37:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # -*- coding: utf-8 -*-
# Copyright 2015 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from . import res_user
from . import ir_module_module
# from . import models_new
| [
"asghar0517@gmail.com"
] | asghar0517@gmail.com |
87b18f2181d9c52a66be0587a9b7b20999510dae | df191de3e8c14e10c2a78318c987371a59f1465c | /sturgisbank/settings.py | 3ddf4b654f66cb06f5a09d5e445759ea81d4e601 | [] | no_license | daniel-kanchev/sturgisbank | 500c1cb6351b839bd5d30f6d914f1a1c2fada783 | eb0e1122374c675d00937fe9b4a3f2931b665497 | refs/heads/main | 2023-04-05T04:38:37.418610 | 2021-04-02T07:43:47 | 2021-04-02T07:43:47 | 353,945,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | BOT_NAME = 'sturgisbank'
SPIDER_MODULES = ['sturgisbank.spiders']
NEWSPIDER_MODULE = 'sturgisbank.spiders'
USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0',
ITEM_PIPELINES = {
'sturgisbank.pipelines.DatabasePipeline': 300,
}
FEED_EXPORT_ENCODING = 'utf-8'
ROBOTSTXT_OBEY = ... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
35eb78d6f9cd10f98b78a299d6e86811bd229b75 | b0cdec1a01255ca65da18433e9d2620c7fad181c | /manabot | d1182b224cb929bf6746b9839887d17a75dfaa00 | [
"MIT"
] | permissive | DronMDF/manabot | c7f05b90c1f0c125a3f30961c39dea642c64f8f1 | b412e8cb9b5247f05487bed4cbf4967f7b58327f | refs/heads/master | 2021-09-05T03:03:50.885632 | 2018-01-23T20:48:39 | 2018-01-23T20:48:39 | 112,320,984 | 1 | 0 | MIT | 2018-01-23T20:48:40 | 2017-11-28T10:27:35 | Python | UTF-8 | Python | false | false | 342 | #!/usr/bin/env python3
import sys
from tb import Application, ConfigFromArgs, ConfigFromFile, ConfigFile, ConfigDefault
app = Application(
ConfigFromArgs(
sys.argv,
ConfigFromFile(
ConfigFile(
ConfigFromArgs(
sys.argv,
ConfigDefault({'config': '/etc/manabot.conf'})
)
),
ConfigDefault({... | [
"dron.valyaev@gmail.com"
] | dron.valyaev@gmail.com | |
63cea6c8d102f66e4c4a8db82a3cb4d7ea41b7e5 | b5e4c4e3abb7f87bfd70ecd912810e2562cecdc5 | /section6/venv/Lib/site-packages/aniso8601/resolution.py | e118112f415bc40aef09eecf2ffc5985b075cfd2 | [] | no_license | chandshilpa/flaskapi | a89822707dc02f9c588af04f1f33f82a55b627b3 | 5f229d59d155e68e026566919d292c831ea00ed4 | refs/heads/master | 2022-12-09T10:59:14.563256 | 2019-01-08T17:33:46 | 2019-01-08T17:33:46 | 164,698,842 | 0 | 1 | null | 2022-12-07T16:24:53 | 2019-01-08T17:21:32 | Python | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Brandon Nielsen
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
from aniso8601 import compat
class DateResolution(object):
Year, Month, Week, Weekday, Day, Ordinal = li... | [
"chandsandeep700@gmail.com"
] | chandsandeep700@gmail.com |
3d6124c3ce877101be4b17672474a2c7edb48eb4 | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pandas/tests/series/test_period.py | bf3096fd0a0d6d69bae147ecab6fa870afcc4eb3 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,977 | py | import numpy as np
import pandas as pd
import pandas._testing as tm
import pytest
from pandas import DataFrame, Period, Series, period_range
from pandas.core.arrays import PeriodArray
class TestSeriesPeriod:
def setup_method(self, method):
self.series = Series(period_range("2000-01-01", periods=10, freq="... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
9058c8094f9714649dceace28ed2e34cb079ee65 | 86857aa31757eb76afbbb6e1f803ebfb09375dd9 | /leetcode/leetcode208.py | 3af676c22ac75436e566917418a9800d87fc0c44 | [] | no_license | jingxiufenghua/algorithm_homework | 075efb3122e20411141d64c8e25d97411a2c7a1c | 5cd8a6c99c463ce01f512379bcb265b7f0b99885 | refs/heads/master | 2023-05-14T15:59:20.272453 | 2021-06-04T02:43:53 | 2021-06-04T02:43:53 | 337,891,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import collections
class Node(object):
def __init__(self):
self.children = collections.defaultdict(Node)
self.isword = False
class Trie(object):
def __init__(self):
self.root = Node()
def insert(self, word):
current = self.root
for w in word:
current = cur... | [
"2450392436@qq.com"
] | 2450392436@qq.com |
48c1a46f49c2ca8c340460b91ea52a5cd294d71c | 839fb68043bd3a827f6ed6d123844922419284e9 | /Chapter09/named_font_demo.py | 487217ec0f1a2a61dfcf1c7648af3d62d5a52c56 | [
"MIT"
] | permissive | LihengGong/Python-GUI-Programming-with-Tkinter-2E | 15220f2487686a04c82451fd212b6fc6095a888a | 9e9c7468982992d87358be09c11c2cfaaaecd615 | refs/heads/main | 2023-08-25T12:18:10.976232 | 2021-10-20T19:49:01 | 2021-10-20T19:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import tkinter as tk
from tkinter import font
root = tk.Tk()
for name in font.names():
font_obj = font.nametofont(name)
tk.Label(root, text=name, font=font_obj).pack()
namedfont = tk.StringVar()
family = tk.StringVar()
size = tk.IntVar()
tk.OptionMenu(root, namedfont, *font.names()).pack()
tk.OptionMenu(root, fa... | [
"me@alandmoore.com"
] | me@alandmoore.com |
a0d98bf52dab4cccef405a7ad9db5e5e13ff8a44 | 1a54763c0774679bffa193db3f41781ca68b0e96 | /concurrence/day04/thread_server.py | 977cf317fd26cc11412820949f9c7163ac61e832 | [] | no_license | RRCHcc/python_net | 137e6e50b5cd1c71a9decdd1ba18509177ba2f4e | 795d4e56e49101c3c0a81230a1d928454ddd2544 | refs/heads/master | 2020-05-30T10:54:47.744245 | 2019-06-01T03:17:35 | 2019-06-01T03:17:35 | 189,685,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | """
基于threading的多线程网络并发
重点代码
1. 创建监听套接字
2. 循环接收客户端连接请求
3. 当有新的客户端连接创建线程处理客户端请求
4. 主线程继续等待其他客户端连接
5. 当客户端退出,则对应分支线程退出
"""
from socket import *
from threading import Thread
import os, sys
def handle(c):
print("客户端:", c.getpeername())
while True:
data = c.recv(1024)
... | [
"2570629639@qq.com"
] | 2570629639@qq.com |
b64b5c88b20511547667b6a44d8a76558febd6fc | 2153a7ecfa69772797e379ff5642d52072a69b7c | /library/test/test_compiler/testcorpus/60_try_except2.py | 4e4922306ec4d45af73a96485697855a890c93e1 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Python-2.0"
] | permissive | KCreate/skybison | a3789c84541f39dc6f72d4d3eb9783b9ed362934 | d1740e08d8de85a0a56b650675717da67de171a0 | refs/heads/trunk | 2023-07-26T04:50:55.898224 | 2021-08-31T08:20:46 | 2021-09-02T19:25:08 | 402,908,053 | 1 | 0 | NOASSERTION | 2021-09-03T22:05:57 | 2021-09-03T22:05:57 | null | UTF-8 | Python | false | false | 125 | py | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
try:
a
except Exc:
b
except Exc2:
c
| [
"emacs@fb.com"
] | emacs@fb.com |
eb7d099aa8ea32a713245571c139a2c0b88358e4 | d05c946e345baa67e7894ee33ca21e24b8d26028 | /machine-learning/blur-faces/blur_faces.py | dfe4f59dbc9e72ed7e87a6080f10cc661b823695 | [
"MIT"
] | permissive | x4nth055/pythoncode-tutorials | 327255550812f84149841d56f2d13eaa84efd42e | d6ba5d672f7060ba88384db5910efab1768c7230 | refs/heads/master | 2023-09-01T02:36:58.442748 | 2023-08-19T14:04:34 | 2023-08-19T14:04:34 | 199,449,624 | 1,858 | 2,055 | MIT | 2023-08-25T20:41:56 | 2019-07-29T12:35:40 | Jupyter Notebook | UTF-8 | Python | false | false | 1,882 | py | import cv2
import numpy as np
import sys
# https://raw.githubusercontent.com/opencv/opencv/master/samples/dnn/face_detector/deploy.prototxt
prototxt_path = "weights/deploy.prototxt.txt"
# https://raw.githubusercontent.com/opencv/opencv_3rdparty/dnn_samples_face_detector_20180205_fp16/res10_300x300_ssd_iter_140000_fp16... | [
"fullclip@protonmail.com"
] | fullclip@protonmail.com |
fd7413e2f751d25f991c8131197624b90234bd14 | 5fbdbbd4d1f5b0f7c729f355d3ab930d7b55a726 | /dataDriver_text2.py | b0e45f24e59e20f51e59722b2bc0a20a59bf8bcc | [] | no_license | Shuimoningxiang/untitled | 28fb6b4b87116899ba907cca830e0e2119671546 | b3a7ca3de754a0173ed52e47012c279a91a64763 | refs/heads/master | 2021-09-04T18:52:19.162715 | 2018-01-21T09:48:53 | 2018-01-21T09:48:53 | 118,321,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import csv
import os
# path = os.path.dirname(__file__)
# final_path=path+"\date\huiyuan.csv"
# print(final_path)
def readData():
path = os.path.dirname(__file__)
final_path = path + "\date\huiyuan.csv"
print(final_path)
result=[]
#file=open(final_path,'r')
with open(final_path,'r') as file:
... | [
"51Testing"
] | 51Testing |
41307a9f906dff5abb6d4e40b6ba58cd075e4c69 | a7a54bd1ac92e6054a67f8db0bde14e7eb77c7d1 | /2-5a.py | 4dbf24765a421fe8c3f79e0e5a8dc157981384ae | [] | no_license | xjr7670/corePython | 88bc2f1f05e293b8ce0b7aa8acb8abcf37a8252a | 1692cfc327ea9a065ee83b6b63005a8bf53001ba | refs/heads/master | 2021-01-21T12:58:56.683048 | 2016-05-18T08:36:46 | 2016-05-18T08:36:46 | 49,134,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
n = 0
while n <= 10:
print n
n += 1
| [
"xjr30226@126.com"
] | xjr30226@126.com |
f15daef86f2215d4497e0a7d238f99f873f1f3aa | 1a5a9bfa6ee62c328fc6ab828ad743c555b0f23a | /catagory/JianzhiOffer/stage-02/0365-count-1-in-binary.py | 02c5d9bde729f707f70f94ba181e303c223f577a | [] | no_license | zzy1120716/my-nine-chapter | 04b3e4d43a0d8086e5c958b81a3dc4356622d65f | c7bf3eed366b91d6bdebb79d0f11680cf7c18344 | refs/heads/master | 2020-03-30T03:07:14.748145 | 2019-05-15T13:07:44 | 2019-05-15T13:07:44 | 150,670,072 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | """
365. 二进制中有多少个1
中文English
计算在一个 32 位的整数的二进制表示中有多少个 1。
样例
样例 1:
输入:32
输出:1
解释:
32(100000),返回 1。
样例 2:
输入:5
输出:2
解释:
5(101),返回 2。
挑战
如果整数有 n 位,并且有 m 位个 1。你能在 O(m) 的时间内解决它吗?
"""
class Solution:
"""
@param: num: An integer
@return: An integer
"""
def countOnes(self, num):
# write your co... | [
"zzy1120716@126.com"
] | zzy1120716@126.com |
e3ac173a9d20800dfaa66659a5124a52142bea7e | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeBroadcastTablesRequest.py | d33911f1b7888ef609601e7b7c689d0667b53a31 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,841 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
dc4be56ccb5ec62054aa914932f6e87516dcd00d | 0d734e7ad1f230d7a93aedd80abf7edb1aa31231 | /backend/manage.py | 8107d7ff914cb8f357397d2a87da2a4de9151c6c | [] | no_license | crowdbotics-apps/tuto-22970 | cda398d8b4ff71f5dee6683afd35eb37fac1813a | 3f8cc18d5e2e36aa98a097ec46d32f7dafb3dae0 | refs/heads/master | 2023-01-24T05:47:50.562325 | 2020-11-25T08:16:04 | 2020-11-25T08:16:04 | 315,871,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tuto_22970.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
372099bae0f1de2a220ba354ff3740ff7033ab95 | c138dd6db6969112188ff330dd99dcabcc1718bb | /flap/views.py | 2ff8048b3b37b5ec221ef1fc2fc3e21e96778ddf | [] | no_license | mnebuerquo/flip-flap | 946c3ac8226fa42bce2578048d6e29fcef862690 | 436fd42b80d5c27c426cc887192696854b849703 | refs/heads/master | 2021-01-23T04:33:56.600476 | 2017-03-26T16:37:29 | 2017-03-26T16:37:29 | 86,210,312 | 0 | 0 | null | 2017-03-26T05:38:29 | 2017-03-26T05:38:29 | null | UTF-8 | Python | false | false | 107 | py | from django.shortcuts import render
def index(request):
return render (request, "flap/index.html")
| [
"jasonemize@gmail.com"
] | jasonemize@gmail.com |
f66168c7f02a410dbb138535e1f3375b0ccbae9d | 87bd02d63966ed1539d107497b8fdbf931b02121 | /2018/07/aoc2018_07_part1.py | 1d03f024bb78b9ff72538dc5542137e8fd5f4757 | [] | no_license | kajott/adventofcode | c4764d97d4ad4045a7f055862a11077c7e155ea3 | 60f51bce5de5e94eb3763970f0524d281bc1978b | refs/heads/master | 2023-01-06T16:27:23.716873 | 2022-12-29T13:56:47 | 2022-12-29T13:56:47 | 161,079,423 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import re,collections as C
D=C.defaultdict
l,g,r=D(int),D(set),""
for a,b in(re.findall(r'\b\w\b',x)for x in open("input.txt")):g[a]|={b};l[a]+=0;l[b]+=1
while l:
x=min((c,x)for x,c in l.items())[1]
for y in g[x]:l[y]-=1
r+=x;del l[x]
print r
| [
"keyj@emphy.de"
] | keyj@emphy.de |
ffc10c964ddda8442bd5f414c795f7f8c76c2c05 | 9c3765dba0b249eb0a8da92076d2ae01291fc0e7 | /not_done/py_not_started/euler_306.py | 391ec906144e93d97cc62d77050ca4dc0c03555d | [] | no_license | saetar/pyEuler | 3a021f95a1856775bef87b38c753049b04282b80 | f0af7092e16c2109028b4b1aa5bed7a0057d3fe9 | refs/heads/master | 2020-03-21T12:05:15.430454 | 2018-06-15T03:50:50 | 2018-06-15T03:50:50 | 138,535,115 | 0 | 0 | null | 2018-06-25T02:40:43 | 2018-06-25T02:40:42 | null | UTF-8 | Python | false | false | 1,279 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ~ Jesse Rubin ~ project Euler ~
"""
Paper-strip Game
http://projecteuler.net/problem=306
The following game is a classic example of Combinatorial Game Theory:
Two players start with a strip of n white squares and they take alternate turns.
On each turn, a player picks two... | [
"jessekrubin@gmail.com"
] | jessekrubin@gmail.com |
c0f66b8b7bbe8922ed6c8bcc3fa84e62fd9fccf7 | 90df3cbdea7146a62e55cd74366aac8601d5da27 | /test_geweke.py | e89b12df62af6dd4defe1db8231750c4075a3e1f | [] | no_license | mattjj/gslrandom | fd7d13fea77640078b6a40b510136507399097f8 | 98eee548bdd14680393ac53cfc2536dd67e0efb3 | refs/heads/master | 2021-01-21T20:16:24.504708 | 2015-06-10T21:26:30 | 2015-06-10T21:47:29 | 36,503,828 | 0 | 0 | null | 2015-05-29T12:45:05 | 2015-05-29T12:45:05 | null | UTF-8 | Python | false | false | 2,136 | py | """
A simple Geweke test. I'm afraid there might be a slight bias toward
sampling the first entry in the multinomial.
"""
import os
import numpy as np
np.random.seed(1234)
from scipy.stats import probplot, beta
import matplotlib.pyplot as plt
from pybasicbayes.distributions import Multinomial
from pybasicbayes.util.te... | [
"scott.linderman@gmail.com"
] | scott.linderman@gmail.com |
6c78ccfccb734995304f041d3de5d2726e9d1b63 | 1a220abd21c56728aa3368534506bfc9ced8ad46 | /95.COS/2급/모의고사 3회/03.py | 2a1980856327f4a9abae0ae30e2455e9771fbf18 | [] | no_license | JeonJe/Algorithm | 0ff0cbf47900e7877be077e1ffeee0c1cd50639a | 6f8da6dbeef350f71b7c297502a37f87eb7d0823 | refs/heads/main | 2023-08-23T11:08:17.781953 | 2023-08-23T08:31:41 | 2023-08-23T08:31:41 | 197,085,186 | 0 | 0 | null | 2023-02-21T03:26:41 | 2019-07-15T23:22:55 | Python | UTF-8 | Python | false | false | 1,515 | py | # 체조 경기를 진행하고 있습니다. 지금 연기한 선수의 연기 완성도를 채점하는 E점수를 결정하려고
# 합니다. E심판은 모두 6명이며, 각 심판들은 100점 만점에서 시작하여 실수에 따라 점수를 감점합
# 니다. E심판의 점수 중 최고점과 최저점을 제외하고 나머지 심판들의 점수 평균을 최종 E점수로
# 정합니다. 단, 이때 소수점 이하는 버립니다.
# 예를 들어 6명의 E심판이 채점한 점수가 [90, 80, 70, 85, 100, 90]라면, 가장 높은 점수인 100점
# 과 가장 낮은 점수인 70점을 제외하고 나머지 점수의 평균을 구하게 되면 85점입니다. 소수점 ... | [
"43032391+JeonJe@users.noreply.github.com"
] | 43032391+JeonJe@users.noreply.github.com |
d6fa91da5175175095b83b4070163dce36509ec6 | cc08e9349a14620409dee0bdcf1420976352cf0d | /04_algorithm/06day/걍 품/시간개념.py | 88a829bdbc1897644a4272fafeda435eef97a762 | [] | no_license | Nyapy/TIL | b3f611177d3c54d224c9983b5bedc62abddeeaae | c3c52ad33963628674de4c1dcf8aed53f67af177 | refs/heads/master | 2023-01-11T19:37:02.693660 | 2020-07-04T04:31:41 | 2020-07-04T04:31:41 | 195,938,004 | 2 | 2 | null | 2023-01-07T11:25:27 | 2019-07-09T05:22:47 | Python | UTF-8 | Python | false | false | 879 | py | import sys
sys.stdin = open('시간개념.txt')
T = int(input())
for tc in range(T):
time1 = list(map(int, input().split(':')))
time2 = list(map(int, input().split(':')))
abs_sec1 = 3600*time1[0] + 60*time1[1] + time1[2]
abs_sec2 = 3600 * time2[0] + 60 * time2[1] + time2[2]
if abs_sec1 < abs_sec2:
... | [
"nyapy@naver.com"
] | nyapy@naver.com |
df7b984513c24df772aa36fd5577fb62ddef4f6b | 317d199d36556ecf5da06c660cb5cb655a86ea09 | /Challenges/rock_paper_scissors/rps.py | 2c085d2ad3e8be9dc50b3dedb02c4919fd2764ed | [] | no_license | baubrun/Challenges-PY | e109126a64a20128202e03c2ed359c179f523dcd | e2ca45cbca264f5790ce303807e25810a5d8d977 | refs/heads/master | 2022-12-17T03:24:43.308680 | 2020-09-14T12:37:24 | 2020-09-14T12:37:24 | 262,485,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | """
Rock, Paper, Scissors
Create a function which takes two strings
(p1 and p2 — which represent player 1 and )
as arguments and returns a string stating the winner
in a game of Rock, Paper, Scissors.
Each argument will contain a single string:
"Rock", "Paper", or "Scissors".
Return the winner according to the f... | [
"baubelf@gmail.com"
] | baubelf@gmail.com |
dd1a5f7306470c09c8a4e5d4fe2278049dc1ce9d | 22bf910b64283b3c15cc4d80542e83fa89e9f09d | /monero_glue/messages/WipeDevice.py | 57631812883ce5dcd80f84abc1ac8053d0c0c93c | [
"MIT"
] | permissive | ph4r05/monero-agent | 24ed1aa17d6616b2ae6bcdb7b9997f982f8b7b5d | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | refs/heads/master | 2022-10-18T06:30:43.550133 | 2021-07-01T16:27:56 | 2021-07-01T16:27:56 | 126,215,119 | 24 | 5 | MIT | 2022-09-23T22:53:44 | 2018-03-21T17:18:21 | Python | UTF-8 | Python | false | false | 309 | py | # Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
except ImportError:
pass
class WipeDevice(p.MessageType):
MESSAGE_WIRE_TYPE = 5
| [
"dusan.klinec@gmail.com"
] | dusan.klinec@gmail.com |
0622bc92b933929fb78f1de42eaa6d2f4aabd814 | 5529b621f65eb855d381932d313c3ca3ed7090f6 | /process.py | 3fefdbc5e4572e2687c390407c0f36aa6bf92646 | [
"MIT"
] | permissive | isabella232/tennis-ages | c39f2d84414890f2ff27537ef0fa1c34ac4476e3 | 8334101e2b1a7484c540be3650d36e7e04a1e40b | refs/heads/master | 2021-06-01T06:03:52.412498 | 2016-04-12T21:43:34 | 2016-04-12T21:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | #!/usr/bin/env python
from dateutil.parser import parse
from datetime import date
def process():
today = date.today()
with open('USA_-_womens_national_rankings.txt') as f:
content = f.readlines()
for line in content:
line = line.strip()
try:
if line != '16 March 2016':... | [
"davideads@gmail.com"
] | davideads@gmail.com |
a35149d6c702cf84d3536ab6faea773b9a9352c4 | f483545d7765c25d1b315027726dbd74bc77b98a | /pkgTest/test01.py | 6b2ec89adba360cdc59828357cf5ee48a105cf72 | [] | no_license | niceman5/pythonProject | e51b44a50776100a63443d7da850ba4b8b00f5eb | 3589fd200b56f68b856d2b4d2031c2a1135168a0 | refs/heads/master | 2023-07-10T16:12:57.756944 | 2023-06-27T08:13:54 | 2023-06-27T08:13:54 | 135,047,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | import tomllib
import os
import sys
from ucrmpkg import database
from ucrmpkg import log
| [
"niceman555@gmail.com"
] | niceman555@gmail.com |
60176f9b42f14ac88d509ed03458e028dfa605e5 | 2caa47f0bdb2f03469a847c3ba39496de315d992 | /Contest/Tenka1-2018-Beginner/c/main.py | ce4eaf625bb1b68df7eb761a8a5387da31561e15 | [
"CC0-1.0"
] | permissive | mpses/AtCoder | 9023e44885dc67c4131762281193c24b69d3b6da | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | refs/heads/master | 2023-03-23T17:00:11.646508 | 2021-03-20T12:21:19 | 2021-03-20T12:21:19 | 287,489,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #!/usr/bin/env python3
N, *a = map(int, open(0))
n = N//2 - 1
a.sort()
print(2*sum(a[n+2:]) - 2*sum(a[:n]) + a[n+1] - a[n] - (min(a[n]+a[n+2], 2*a[n+1]) if N%2 else 0))
| [
"nsorangepv@gmail.com"
] | nsorangepv@gmail.com |
4efca2e0d72033c9a358908f0fefa68c97baabe1 | 6f97d4e47b4e8bceb6a43ffe417656c06c077d3e | /remoting/curl.py | 8cd4f1dda3a1ea9c22c0862d599245cf83853dda | [] | no_license | getwingm/remoting | b35a47317e7d8c0b728a4462628663242eac6381 | e5a8dc483ffc0935fde49a75ccf13160f2d7f9a8 | refs/heads/master | 2020-04-03T08:08:07.362362 | 2014-05-22T19:29:20 | 2014-05-22T19:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import pycurl
import StringIO
def curl(url, headers=None, socks_host=None, socks_port=None):
# if socks_port is given, it should be an integer
c = pycurl.Curl()
c.setopt(pycurl.URL, url)
if socks_host or socks_port:
c.setopt(pycurl.PROXY, socks_host or 'localhost')
c.setopt(pycurl.PROX... | [
"io@henrian.com"
] | io@henrian.com |
2b7ec4e81348d282b660f2e7f30fc016dede1ddd | 4aa7a4d0525095725eb99843c83827ba4806ceb1 | /my_mini_project/Deep_Learning/Dense/cpi_Dense.py | 762335816729d70a0ee09cf85ececcf612a71eb4 | [] | no_license | seonukim/Study | 65a70f5bdfad68f643abc3086d5c7484bb2439d4 | a5f2538f9ae8b5fc93b5149dd51704e8881f0a80 | refs/heads/master | 2022-12-04T17:04:31.489771 | 2020-08-21T00:35:15 | 2020-08-21T00:35:15 | 260,144,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,010 | py | import pandas as pd
import numpy as np
import warnings
warnings.filterwarnings('ignore')
from keras.models import Sequential, load_model
from keras.layers import Dense, Dropout
from keras.layers import LeakyReLU
from keras.callbacks import EarlyStopping
from sklearn.preprocessing import StandardScaler, RobustScaler
fr... | [
"92.seoonooo@gmail.com"
] | 92.seoonooo@gmail.com |
7d6ed1ced3438d158b7dcef576862fc4d9ad0ad7 | 17f527d6936397270183a35d7097e0a99de16cb5 | /rasen_book/basic_2/rooted_tree.py | 547f143bb94346f4c29666f256d70fd860307d0a | [] | no_license | ryosuke071111/algorithms | e942f043d08c7c7e2c926ed332ee2b8c44bdf0c5 | 867764450cc0f2a709fa2f743d9a0d95001e9296 | refs/heads/master | 2020-05-14T17:14:39.314064 | 2019-04-17T12:58:12 | 2019-04-17T12:58:12 | 181,888,623 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | NIL = -1
class Node: #ノード作成
def __init__(self):
self.parent = NIL
self.left = NIL
self.right = NIL
def getDepth(u): #深さを調査
d = 0
while T[u].parent != NIL: #親がいたら
u = T[u].parent #上に上る
d += 1 #深さカウント+1
return d
def getChildren(u): #子供調査
c = T[u].left... | [
"ryosuke0711993@gmail.com"
] | ryosuke0711993@gmail.com |
11bd35fefb742454ba0670f53928bb4eff176cef | c8a04384030c3af88a8e16de4cedc4ef8aebfae5 | /stubs/pandas/core/groupby/base.pyi | 40914d2704f18b8f4cd75c1dd593da5818d0e209 | [
"MIT"
] | permissive | Accern/accern-xyme | f61fce4b426262b4f67c722e563bb4297cfc4235 | 6ed6c52671d02745efabe7e6b8bdf0ad21f8762c | refs/heads/master | 2023-08-17T04:29:00.904122 | 2023-05-23T09:18:09 | 2023-05-23T09:18:09 | 226,960,272 | 3 | 2 | MIT | 2023-07-19T02:13:18 | 2019-12-09T20:21:59 | Python | UTF-8 | Python | false | false | 775 | pyi | # Stubs for pandas.core.groupby.base (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name
# pylint: disable=relative-beyond-top-level,line-too-long,arguments-differ
# pylint: disable=no-member,too-few-pub... | [
"josua.krause@gmail.com"
] | josua.krause@gmail.com |
e3baf2fee82699caed0d28245f9d8a0a4b2a00e3 | e1b2b4215a08c1ef8df03d68a933f538bcab1176 | /projects/migrations/0001_initial.py | d8d64fe140786f7801ed16527fb13b74f355dde3 | [
"MIT"
] | permissive | wanguinjoka/Awwards | 4ed1d232dbe49167e3b15c3854c2d21455966673 | 23218076075601cb899a8ed28c11c2bd561e8f1c | refs/heads/master | 2020-04-01T20:37:55.332604 | 2018-10-19T14:45:54 | 2018-10-19T14:45:54 | 153,613,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-10-18 16:08
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depend... | [
"wangui.njoka@gmail.com"
] | wangui.njoka@gmail.com |
c57020eb0fb14e7f7a51cb39ffeac16321b07756 | 01fdd206c8c825b30870bdd3f6e75f0aa113b849 | /test/record/parser/test_response_whois_co_ug_property_status_unconfirmed.py | 44fbcad55857c7be4ea983289a09e1f7bed4becc | [
"MIT"
] | permissive | huyphan/pyyawhois | 0fbc5a7d64a53ae6e3393fdc1c7ff0d0ac5f22b5 | 77fb2f73a9c67989f1d41d98f37037406a69d136 | refs/heads/master | 2021-01-23T22:42:55.989651 | 2015-09-19T16:40:06 | 2015-09-19T16:40:06 | 23,335,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py |
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
# spec/fixtures/responses/whois.co.ug/property_status_unconfirmed
#
# and regenerate the tests with the following script
#
# $ scripts/generate_tests.py
#
from nose.tools import *
from dateutil.parser impo... | [
"dachuy@gmail.com"
] | dachuy@gmail.com |
8fbeb9f6b161fe0dfa306a2b9f8b05576bf7ffa5 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/astropy/nddata/tests/test_nddata_base.py | 68b51c55334f9432d9bc581bd6d936d30d2a03ae | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,463 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# Tests of NDDataBase
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from ..nddata_base import NDDataBase
from ...tests.helper import pytest
class MinimalSubclass(NDDataBase):
def __init... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
58d5dde0bff26df07a3835833b1fc51873e23df9 | f3baf8b850c896231b4c254a22567fd5d7a5035c | /Aula 16/web.py | 414a87d388f65424a1221b6bf05f757182fcd896 | [
"MIT"
] | permissive | Katakhan/TrabalhosPython2 | e1c23119ef582038ceea0004c872c00778fd326e | ab47af0ff3c00922857578e58a1a149d9e65e229 | refs/heads/master | 2020-09-21T02:15:04.505791 | 2020-03-19T13:23:41 | 2020-03-19T13:23:41 | 224,650,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from flask import Flask, render_template
from Faixa import ler
app = Flask(__name__)
@app.route('/lista')
def listar_faixas():
return render_template("lista.html", nome = 'Lista de Faixas', lista = ler)
app.run() | [
"antoniorafaelgastaldi@hotmail.com"
] | antoniorafaelgastaldi@hotmail.com |
46ab140e843abff2a8e2d248dbce509b67ef8b61 | 76fa4bc242502bcd9dfe1053c964318b94acc6d8 | /numpy/append.py | bcd3aa63ba9ec11c6e64df626596ef2678090f2e | [] | no_license | phani-1995/Week3-python_libraries | 720156098ccab5301a58e39a4dd7af5a19a08008 | 1347b8dfd4980b37471a54ce991c967fdcb32e2b | refs/heads/master | 2021-04-01T17:42:54.855954 | 2020-03-23T06:50:18 | 2020-03-23T06:50:18 | 248,204,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | import numpy as np
a=[10,20,30]
print("The original array is: ",a)
x=np.append(a, [40,50,60,70,80,90])
print("The new array is : ",x)
| [
"phanindrajallavaram@gmail.com"
] | phanindrajallavaram@gmail.com |
c580d300800cfbb77da8334c268c8ffd851841c6 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/msData/datatypes/Facets/NCName/NCName_enumeration004.py | 63150c8aeb21fe8810124ca42d4b34c1600604f2 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 267 | py | from output.models.ms_data.datatypes.facets.ncname.ncname_enumeration004_xsd.ncname_enumeration004 import FooTypeFoo
from output.models.ms_data.datatypes.facets.ncname.ncname_enumeration004_xsd.ncname_enumeration004 import Test
obj = Test(
foo=FooTypeFoo.FOO
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
d87578492b072196777372c73ee2c551e194668f | 6bcf8b136d45b53e75c0a6a75d8545188acb8190 | /sourmash_lib/fig.py | f07bef297252769c2b0b82042e37022426f2bab7 | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | swamidass/sourmash | 2dab03a86842f868242c18f4b1b6307891eeb389 | fb7a6c1ac1a86ef4adc8b7385c664e947ed1b365 | refs/heads/master | 2021-01-21T06:30:18.211742 | 2017-03-01T05:01:57 | 2017-03-01T05:01:57 | 83,241,616 | 0 | 0 | NOASSERTION | 2022-08-20T14:57:30 | 2017-02-26T21:21:56 | Standard ML | UTF-8 | Python | false | false | 1,900 | py | #! /usr/bin/env python
"""
Make plots using the distance matrix+labels output by ``sourmash compare``.
"""
try:
import numpy
import scipy
import pylab
import scipy.cluster.hierarchy as sch
except (RuntimeError, ImportError):
pass
def load_matrix_and_labels(basefile):
"""Load the comparison matr... | [
"titus@idyll.org"
] | titus@idyll.org |
4b9b537852edb55ab74e630264c5c984a186c436 | d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496 | /com.CheckProofing/2020/Test_w_42_TV_Deals/test_w_42_TV_Deals_EPP_QLEDTV8K_url_segment.py | 8cf211361608f5a284cf6ec475af2d53c5196aa7 | [] | no_license | ahmed-test001/python | 21a27248c4571a13c0ed4dccab256aede1beea3a | eab59b9a54fae1a51fbc18c391599eb3b0e28b3d | refs/heads/master | 2023-03-10T21:00:54.634028 | 2021-02-27T05:31:58 | 2021-02-27T05:31:58 | 342,778,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,124 | py | import json
from urllib.parse import urlparse, parse_qs
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
import unittest
import sys
import os
import logging
sys.path.appen... | [
"ahmedu.ferdous@gmail.com"
] | ahmedu.ferdous@gmail.com |
e06905c6d21fcca68df17ac398d343813c1d928f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bustles.py | 9306899ef63702f12adbd82507903dfabaf4bc2a | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.nouns._bustle import _BUSTLE
#calss header
class _BUSTLES(_BUSTLE, ):
def __init__(self,):
_BUSTLE.__init__(self)
self.name = "BUSTLES"
self.specie = 'nouns'
self.basic = "bustle"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b2a86de7c43392511773de33a9a6735fbd37638c | 7761628d276bc2fd6e17ac5ccc244ca4a6d97f6d | /day12/modules/myssh.py | a53f9f92035f890a126219862dd0205c55df215f | [] | no_license | cooshko/PythonHomework | 252306b0392667ae019a291f1bfec4a96a24f9eb | 187a4924697e2e5d23bb00e7ec62987c48fe80dc | refs/heads/master | 2021-01-11T03:03:41.165085 | 2017-06-12T04:32:21 | 2017-06-12T04:32:21 | 70,857,475 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,981 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author : Coosh
import os, sys, datetime, paramiko, socket, logging, json, types
APP_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(APP_ROOT)
LOG_DIR = os.path.join(APP_ROOT, 'log')
DATA_DIR = os.path.join(APP_ROOT, 'data')
# window... | [
"coosh@qq.com"
] | coosh@qq.com |
b658a230e27e99b5d27f1fcc2463356dd690aff3 | 4173d689e0c4c6da971b4743dd58d5039b2d76ff | /tests/test_scrapbook_host.py | ec0fdb1c91232e05efce11c88165931d14bd06c8 | [
"MIT"
] | permissive | vsc55/PyWebScrapBook | a2a4443431630775bde17826d89947ef85dfe713 | 9fb8a744b1ced53ee401f3fdf14cf6993ab9f52a | refs/heads/master | 2023-01-31T16:23:31.489910 | 2023-01-23T19:23:59 | 2023-01-23T19:23:59 | 208,370,334 | 0 | 0 | MIT | 2023-01-23T18:31:48 | 2019-09-14T01:02:59 | Python | UTF-8 | Python | false | false | 24,083 | py | import os
import re
import tempfile
import time
import unittest
from unittest import mock
from webscrapbook import WSB_DIR, Config, util
from webscrapbook.scrapbook import host as wsb_host
from webscrapbook.scrapbook.host import Host
from . import TEMP_DIR
def setUpModule():
"""Set up a temp directory for testi... | [
"danny0838@gmail.com"
] | danny0838@gmail.com |
12a4375cf4891bb40aac4e72c72a86695597729b | 48460db1a6fdc6c09845c86cf5fa257f1a32f08a | /leetcode/medium/1041_Robot_Bounded_In_Circle.py | 6384889f67c7af592d411faf5355890bbe147bed | [] | no_license | MichalBrzozowski91/algorithms | 9d0b085621ed94b1aff5473663fbdc686463cd8d | ae57535b574a800c6300eae7d55b21f2432c3baa | refs/heads/master | 2022-12-20T08:00:59.385002 | 2020-09-30T16:32:33 | 2020-09-30T16:32:33 | 290,835,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | class Solution:
def isRobotBounded(self, instructions) -> bool:
# We calculate composition of all instructions
direction = 0 # 0: North, 1: West, 2: South, 3: East
movement = {0: [0,1],1: [-1,0],2: [0,-1],3: [1,0]}
position = [0,0]
for letter in instructions:
if l... | [
"noreply@github.com"
] | MichalBrzozowski91.noreply@github.com |
c2fa30fea223b2b9791202b3d3ab0002c0d0074c | e41f4530175b15edfe52b4f3cf9b5c8c4d93ce17 | /veriloggen/core/module.py | 5ab6d6f32de4c82e192566aac76e5a3237426f89 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | foreverstream/veriloggen | ae12caa27531efdfd9cbc8d38e0d0275901b0157 | e61f28e19a6edd5a6485ba0dc541c6185d3482c2 | refs/heads/master | 2022-12-03T13:51:27.965735 | 2020-05-03T12:59:21 | 2020-05-03T12:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,823 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
import collections
import copy
import re
import veriloggen.core.vtypes as vtypes
import veriloggen.core.function as function
import veriloggen.core.task as task
import veriloggen.core.rename_visitor as rename_visitor
cl... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
16eba7e91dddfc9fd58fd0bdfcb6fc0faaaa7bc4 | 89e6c3548fbdd06178aae712de1ff19004bc2faa | /my_django/contrib/staticfiles/utils.py | 5a69ad055a37f4d7a0a0c72ea6dd79f935e9a6a7 | [] | no_license | bhgv/ublog_git.hg.repo-django.python-engine | a3f3cdcbacc95ec98f022f9719d3b300dd6541d4 | 74cdae100bff5e8ab8fb9c3e8ba95623333c2d43 | refs/heads/master | 2020-03-23T01:04:07.431749 | 2018-07-25T12:59:21 | 2018-07-25T12:59:21 | 140,899,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import os
import fnmatch
from my_django.conf import settings
from my_django.core.exceptions import ImproperlyConfigured
def matches_patterns(path, patterns=None):
"""
Return True or False depending on whether the ``path`` should be
ignored (if it matches any pattern in ``ignore_patterns``).
"""
if ... | [
"bhgv.empire@gmail.com"
] | bhgv.empire@gmail.com |
189f40d1033967adf12fbea0e2054173d1ae1b2c | f89cd872172489785df20354c7a78bc332c4d894 | /countBlackCells.py | dbc2324dc696ab6595a7dfc80610d2c8f328cf04 | [] | no_license | amararora07/CodeFights | d565ed21b1f5c2fbe4d902159db61bee8244e1c8 | 51e3cb75eb32d22dac60f380b1f5b87822678c20 | refs/heads/master | 2021-09-06T15:45:08.716269 | 2018-02-08T06:06:52 | 2018-02-08T06:06:52 | 109,230,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | def countBlackCells(n, m):
s=n+m
while m:
n%=m
n,m=m,n
return s-n+2*(n-1)
| [
"noreply@github.com"
] | amararora07.noreply@github.com |
cdd92af8c583df98a026b684150ffdee3db66b54 | c56ee3cf2a97ae7fc043bd90e26ad5e34b87328f | /.venv/Lib/site-packages/pip/_internal/commands/wheel.py | c36acd229ba85ef1b3b4f6b228713e369f56bb42 | [
"MIT"
] | permissive | LuckJMG/ImprovedReplace | a88cab845ab894e3e8cb9591bc4e5611b43d403e | e59ad89c43f901d409215353a7403781fb689c7e | refs/heads/main | 2023-02-27T07:40:26.746185 | 2021-02-02T03:04:18 | 2021-02-02T03:04:18 | 235,675,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,377 | py | # -*- coding: utf-8 -*-
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
import logging
import os
import shutil
from pip._internal.cache import WheelCache
from pip._internal.cli import cmdoptions
from pip._internal.cli.... | [
"lucas.mosquera13@gmail.com"
] | lucas.mosquera13@gmail.com |
8b405f00dab70862c334598b6c1021a7e457cf2c | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/pkt.py | 634432923d2acf078394fbc0fcdf3e231639cda8 | [] | 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 |
b80e40afc308d64a20780da4e4481dcccaa2cb8a | f36856f1fe47f66d7181d4bc026bfb6fc9a215e2 | /code/train.py | 723b3bac4a2c9802ecf1f3c0294dc2934b62cfb6 | [] | no_license | TrendingTechnology/ROS | 5776bc7faa419c74164703d486092dc4ac9a7bce | bceef4d9dc505f55322a4c25fb8071f49e7a5671 | refs/heads/master | 2023-01-10T15:39:48.464872 | 2020-08-07T13:48:54 | 2020-08-07T13:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,169 | py | import sys
import argparse
from steps_separation_adaptation import Trainer
import numpy as np
import torch
import os
def get_args():
parser = argparse.ArgumentParser(description="Script to launch training",formatter_class=argparse.ArgumentDefaultsHelpFormatter)
#domains
parser.add_argument("--source", he... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
d49ee13b8846f6305e8ae4ead7f5b99135202e48 | b1b77bb1ed47586f96d8f2554a65bcbd0c7162cc | /SPOTIFY/crtauth/crtauth/ldap_key_provider.py | d89c6427c32275e73dd6181b9b384991f5fb2e4a | [
"Apache-2.0"
] | permissive | DanHefrman/stuff | b3624d7089909972ee806211666374a261c02d08 | b98a5c80cfe7041d8908dcfd4230cf065c17f3f6 | refs/heads/master | 2023-07-10T09:47:04.780112 | 2021-08-13T09:55:17 | 2021-08-13T09:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,057 | py | # Copyright (c) 2011-2017 Spotify AB
#
# 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 w... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
f65d9423059940465bbccc546b180b8afb0b29bf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02730/s566992327.py | fed7821775b5c54933a78f29905ba5d357c3433d | [] | 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 | 397 | py | s = input()
n = len(s)
# 全体が回文かどうか
if s != s[::-1]:
print('No')
# 1文字目から(N-1)/2文字目までからなる文字列が回文かどうか
elif s[:(n-1)//2] != s[:(n-1)//2][::-1]:
print('No')
# Sの(N+3)/2文字目からN文字目までからなる文字列が回文かどうか
elif s[(n+3)//2-1:] != s[(n+3)//2-1:][::-1]:
print('No')
else:
print('Yes') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d77758ec0bb4fa4a66f45609ff6dbd6ec4ca67cb | 41f39d013ae3cb2b3ca4230c77b9037cc9c894f6 | /sandbox/ex2/algos/batch_polopt.py | 5e0c8f8994dab4f854a29f37542f4bce4f3f98ce | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | sokol1412/rllab_hierarchical_rl | 162aec9bb06e271d12333fa072fb44d692c26301 | 6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57 | refs/heads/master | 2020-03-07T07:37:39.510301 | 2018-08-19T11:54:56 | 2018-08-19T11:54:56 | 127,353,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,997 | py | from rllab.algos.base import RLAlgorithm
from rllab.sampler import parallel_sampler
from rllab.sampler.base import BaseSampler
import rllab.misc.logger as logger
import rllab.plotter as plotter
from rllab.policies.base import Policy
import numpy as np
class BatchSampler(BaseSampler):
def __init__(self, algo):
... | [
"wlasek1412@gmail.com"
] | wlasek1412@gmail.com |
cfe96d0459f4c3746b821a72c6a44b9327591521 | 77fdfa980f6d923d8fccb7eefdcadadad6f7cdcc | /blog_project/settings.py | 100e3cc9aa7b6ed04e934d16820cd2d42f3d71f2 | [] | no_license | joegotflow83/tdd_blog | fe72657a361a6203bcebc1ff64a831c3c307e871 | 254d44de3037bfaeee4495c6a1620afbfe87c7fb | refs/heads/master | 2021-01-18T18:42:11.594528 | 2016-07-31T00:20:44 | 2016-07-31T00:20:44 | 63,269,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,371 | py | """
Django settings for blog_project project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import ... | [
"joe@absolutod.com"
] | joe@absolutod.com |
fe41008bb2ab32968ed7dc245a83ccd70bb5c1db | cd0a284c47fb03121e05284b6d5f2940ea6457ba | /fb/dfs-bfs/207-course-schedule.py | 7b8325d06c0f32426434b8845cabd8b291aed9f0 | [] | no_license | franktank/py-practice | 5803933c07c07a06670f83b059806385d0d029fa | 1dec441f1975d402d093031569cfd301eb71d465 | refs/heads/master | 2021-03-22T04:33:20.818891 | 2017-11-14T03:40:54 | 2017-11-14T03:40:54 | 101,592,046 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | """
There are a total of n courses you have to take, labeled from 0 to n - 1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
Given the total number of courses and a list of prerequisite pairs, is it possible for you to finish all ... | [
"fliangz96@gmail.com"
] | fliangz96@gmail.com |
bbf45a6ca2e4e02d5dc77888323c239edcc5f744 | fce5eda4745578557f7120104188c2437529b98f | /listas_tipos/dicionario/muitos_usuarios.py | 1558b8ec7959ad7e558fc063ca69369b76826a28 | [] | no_license | weguri/python | 70e61584e8072125a4b4c57e73284ee4eb10f33b | d5195f82428104d85b0e6215b75e31ee260e5370 | refs/heads/master | 2022-12-01T08:26:36.248787 | 2020-08-23T03:30:46 | 2020-08-23T03:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | """
Dicionário em um dicionário
Podemos aninhar um dicionário em outro dicionário
"""
usuarios = {
'alberteinstein': {
'nome': 'albert',
'sobrenome': 'einstein',
'pais': 'alemanha'
},
'stephenhawking': {
'nome': 'stephen',
'sobrenome': 'hawking',
'pais': ... | [
"welguri@gmail.com"
] | welguri@gmail.com |
a7569d7922515885e8dd93423d4e71b1c36dbd34 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/NCSCCyberAsssessmentFramework/Scripts/EntryWidgetNCSCResultsD/EntryWidgetNCSCResultsD.py | 173f34e55128e5321c9d1b28478b0aade2266374 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 1,005 | py | import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
incident = demisto.incidents()
cafdresult = incident[0].get("CustomFields", {}).get("cafdresultraw", {})
if type(cafdresult) != dict:
cafdresult = json.loads(cafdresult)
total = len(cafdresult)
non_compliant_count = (
le... | [
"noreply@github.com"
] | demisto.noreply@github.com |
22ff77002f20b413ed20ffcd59834f91fd70bff6 | 3aa334fe55b2d618726395167cd75dd37ae9ec27 | /testapp/management/commands/bootstrap.py | 08950d431e442356eac5db34e6b440b6ef3ea179 | [
"BSD-3-Clause"
] | permissive | nishitchittora/django-saml-sp | cd143539c83258d6fd62059f8efb89323b91e282 | 879036f1f90febdf4eed1ef74b2288074736fbec | refs/heads/master | 2023-05-29T03:28:37.768564 | 2021-03-27T02:43:46 | 2021-03-27T02:43:46 | 372,801,911 | 0 | 0 | BSD-3-Clause | 2021-06-01T11:15:20 | 2021-06-01T11:15:19 | null | UTF-8 | Python | false | false | 1,872 | py | from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from sp.models import IdP
class Command(BaseCommand):
help = 'Bootstraps the SP with a default "admin" user and a local test IdP.'
def handle(self, *args, **options):
User = get_user_model()
if... | [
"dcwatson@gmail.com"
] | dcwatson@gmail.com |
263e182dab5e386359c971120c177a398de757ba | d6d874fe9e1607a859e9484fdc5bce09b3f76472 | /Pipeline/the_LATEST/latest_MAYA/maya_SCRIPTS/pickrunner - Copy (3)/controller/engine_0001.py | 9fbf2e97230181255c7175805dee4d28ab0d535b | [] | no_license | tws0002/pop2-project | c80095cc333195ebb9ffa2199e2c3a3446d0df0c | 6886f05d54ec77b66d13b4eaafe8a66ac49f2f41 | refs/heads/master | 2021-01-11T20:53:19.982950 | 2016-03-10T10:31:29 | 2016-03-10T10:31:29 | 79,202,989 | 1 | 1 | null | 2017-01-17T07:56:09 | 2017-01-17T07:56:09 | null | UTF-8 | Python | false | false | 4,399 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
An enhanced, lightwight, user-defined hierarchy between nodes in Maya
"""
# IMPORT STANDARD LIBRARIES
import os
import sys
sys.path.append("F:\transfer\to_monty\the_LATEST\latest_MAYA\maya_SCRIPTS\pickrunner")
# sys.path.append("F:\transfer\to_monty\the_LATEST\... | [
"colinvfx@gmail.com"
] | colinvfx@gmail.com |
100f0ca4721ee11c998081da3d0f5e77aa5f7323 | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_Mchi-51_Mphi-100_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_230000_1_cff.py | 2db28a4584cc1a9ea955ef9cf2afefed22984ff8 | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,067 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:53147', '1:53395', '1:53244', '1:53534', '1:54333', '1:58243',... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
548d7e455a7fbe253bb7e27b83098b05012f1446 | 402537ee248b91a127772f7ce00a4b2f93fe1d06 | /chapter10/src/src/allocation/domain/commands.py | cb656444bf546659c1bd27074c8bdb424ac020c7 | [] | no_license | babjo/architecture-patterns-with-python | 56ac7b1801cf658fc912ffa7b22398d015d8ee8f | 705a68b34b2c11e2eb18b11444819f964ab6fce9 | refs/heads/master | 2023-07-14T23:01:51.246828 | 2021-08-25T13:25:06 | 2021-08-25T13:25:06 | 394,334,509 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from typing import Optional
from dataclasses import dataclass
from datetime import date
class Command:
pass
@dataclass
class Allocate(Command):
orderid: str
sku: str
qty: int
@dataclass
class CreateBatch(Command):
ref: str
sku: str
qty: int
eta: Optional[date] = None
@dataclass
... | [
"kd980311@naver.com"
] | kd980311@naver.com |
302247df466f9f53facf141a2738300d61ef8a04 | 584ce08fd638b2481e61b00da22ae70290cb0e2d | /main/forms.py | e54ec2919a4ddecb88435e72ec1d36138d69f316 | [] | no_license | CHIRAG202/Tutoria-Project | dedef5581ea72f47be5965f5c783a7176aa17fb2 | 133520fbd8b4154d3b1b777a13e179dfd062c438 | refs/heads/master | 2021-08-23T02:10:20.378763 | 2017-12-02T11:42:28 | 2017-12-02T11:42:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | from django import forms
from django.contrib.auth.models import User
from main.models import Student, Sessions, Tutor
class UserForm(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput())
class Meta():
model = User
fields = ('username', 'password', 'email')
# remov... | [
"rohaksinghal14@gmail.com"
] | rohaksinghal14@gmail.com |
7e1027a626b96efa1718ab2aad192f93f8db7e12 | 8981fd540c4857edbaf4162e9ca08e86c5625b80 | /capital.py | 792693b711ad1a9c52b0f3f748a65d7a48a526fb | [] | no_license | DylanQiu/CheckioProject | c37a149795b076665b6b05ff1b2d4af9f701c840 | 386fd5aee694ddc7efe7dab1aa1a1f4610a0fb0b | refs/heads/master | 2021-07-19T13:15:07.708474 | 2017-10-24T04:57:13 | 2017-10-24T04:57:13 | 104,953,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | def find_message(text):
"""Find a secret message"""
uppers = [l for l in text if l.isupper()]
s = ''.join(uppers)
return s
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert find_message("How are you? Eh, ok. Low or Lower? Ohhh.") ... | [
"32313210+DylanQiu@users.noreply.github.com"
] | 32313210+DylanQiu@users.noreply.github.com |
3185c772f0e736ae4fc5a2c5fa54f50793bfac2a | ef14d37fc87a191b36b5b70c39b02b0d193f9fe0 | /futuregreen/people/urls.py | 5cef8b0730140b238ffbcfa32a611ae77ea5c14b | [] | no_license | dmeehan/futuregreen | 9f608b69255761011a525e349fb583669e8dacaa | 835c455503a75658d8b744df643158ac6575b737 | refs/heads/master | 2020-12-19T01:19:08.975895 | 2017-06-21T13:21:03 | 2017-06-21T13:21:03 | 2,144,649 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # people/urls.py
from django.conf import settings
from django.conf.urls.defaults import *
from django.views.generic import ListView, DetailView, TemplateView
from futuregreen.people.views import EmployeeDetailView, EmployeeListView
urlpatterns = patterns('',
url(r'^$', EmployeeListView.as_view(), name = 'person_... | [
"dmeehan@gmail.com"
] | dmeehan@gmail.com |
2751b3b5e76bad7aaf1ba7884f8ec09cb869c56d | ecff4b18a49ce5952c5f9125dc027cebdecf10a8 | /azure-mgmt-logic/azure/mgmt/logic/models/workflow_secret_keys.py | ab2f480de04cdc5157f1b5b10bfb7d0ed53826c9 | [
"Apache-2.0"
] | permissive | jehine-MSFT/azure-sdk-for-python | a56c18020ecd5f4c245c093fd6a33e1b1d7c95e1 | 6d0f94b39406eab374906c683bd2150217132a9c | refs/heads/master | 2020-12-06T19:17:38.153819 | 2016-04-08T21:03:16 | 2016-04-08T21:03:16 | 55,809,131 | 0 | 0 | null | 2016-04-08T20:54:00 | 2016-04-08T20:54:00 | null | UTF-8 | Python | false | false | 1,608 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
38bdd4206acfc59ea9b3adf745d3103f4eed2c66 | b3d4198406ec727b29eb3429433aa3eec0c80ead | /CBF/membership/admin.py | dd61fd70bef33ea626b5e552b20d0d4d0d3be629 | [] | no_license | aqt01/CBF | 7c9148aa1e5eed9524082cecef74f9571e1f5889 | 4769b11d26dad1a1dfff718e042f78564b13f671 | refs/heads/master | 2020-06-12T18:00:26.528230 | 2018-03-22T00:34:25 | 2018-03-22T00:34:25 | 75,782,721 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.contrib import admin
from .models import SocialMedia, Member
class SocialMediaInLine(admin.TabularInline):
model = SocialMedia
extra = 1
class MemberAdmin(admin.ModelAdmin):
inlines = [
SocialMediaInLine,
]
list_display = ['name', 'email', 'role_description']
admin.site.reg... | [
"lowell.abbott@gmail.com"
] | lowell.abbott@gmail.com |
071427cf0bd1245c7ad847bbd11ee1d6c3f23146 | 4971e12aabbc3f80b18a558ef3c4dec4cc847b7b | /tools/benchmark/wsgiapp.py | 138d53e036808cb8575a827326398aea9e30a507 | [
"MIT"
] | permissive | AmesianX/skitai | 3d6a10f8d5a64ea3174d31dfbe19562fca3f30b1 | d8ed2a02986f8bb0013a593c083a2ca97818f6d2 | refs/heads/master | 2020-05-18T09:42:58.026212 | 2019-02-27T06:39:38 | 2019-02-27T06:39:38 | 184,334,658 | 1 | 0 | null | 2019-04-30T21:34:09 | 2019-04-30T21:34:09 | null | UTF-8 | Python | false | false | 125 | py |
DEBUG = True
def app (env, start_response):
start_response ("200 OK", [("Content-Type", "text/plain")])
return ['pong']
| [
"hansroh@gmail.com"
] | hansroh@gmail.com |
c32b16b42a4384da77bdc4d6e8b0b0fe32ef1331 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/support/azext_support/_utils.py | 9429828d972a0884f8f6269b4854ae1ae5c694b5 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 2,174 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
04abc664f35460d59c8be0e6ce737af05ee1140d | d7b9b490c954c7a9160b69f8ce2c907ef4681ecb | /sponsors/migrations/0017_sponsorbenefit_added_by_user.py | f304cd76bece2385330c80321b7225cdc2430663 | [
"Apache-2.0"
] | permissive | python/pythondotorg | 00db93a4b1789a4d438806d106d9cee3349ad78c | c4ee749942227ca75c8e670546afe67232d647b2 | refs/heads/main | 2023-08-28T20:04:24.735314 | 2023-08-03T19:12:29 | 2023-08-03T19:12:29 | 6,127,047 | 1,131 | 646 | Apache-2.0 | 2023-08-24T15:57:04 | 2012-10-08T16:00:15 | Python | UTF-8 | Python | false | false | 435 | py | # Generated by Django 2.0.13 on 2020-11-20 14:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("sponsors", "0016_auto_20201119_1448"),
]
operations = [
migrations.AddField(
model_name="sponsorbenefit",
name="add... | [
"noreply@github.com"
] | python.noreply@github.com |
cd6217740f6dc93ee83304e31a2062ebd5bf0370 | 9499922b6d2e2652a5beccafdb57ea35e7f58970 | /templates/openwisp2/urls.py | aa3a020b690d1659b6c1439f03afdb449ac142dc | [
"BSD-3-Clause"
] | permissive | stepura/ansible-openwisp2 | 2d49fe3804df0427cf8006e4346acc7e889d52ce | 1c11882bed03e4f11be15b4d0395c8e9bd30492e | refs/heads/master | 2020-05-21T14:41:34.562597 | 2017-03-10T15:34:50 | 2017-03-10T15:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | from django.conf.urls import include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django_netjsonconfig.admin_theme.admin import admin, openwisp_admin
openwisp_admin()
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
# controller URLs
# used by devices to download... | [
"nemesis@ninux.org"
] | nemesis@ninux.org |
f7384a4409b3afbb1d03580ef40cd8a2c46553f3 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/bSx.py | 57c10c6a7f431e5af471cd44dd45dae84ca55d69 | [] | 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 |
0ad12506076a948181b82d4c9316d29569a3451a | 36132d1a4a2669775fbf1f86f6c4b1f341c6a85e | /aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/ListThingModelVersionRequest.py | 8177b8219b21fcea3e5f60edbf5cd5b9577252e2 | [
"Apache-2.0"
] | permissive | ghosthgy/aliyun-openapi-python-sdk | 0f676e47d0df51d9e0727a0ae00ed9c86fe756f8 | eb809a296864f29f8fce6e82adf29fdeedb41c0a | refs/heads/master | 2023-03-26T00:49:11.347883 | 2021-03-25T09:25:14 | 2021-03-25T09:25:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
c8f86134a84120155ebc8043bfd218ea17981057 | a2098c9c8d39cc9e392f21de64c7ced0549d6f1f | /custom/blog/feeds.py | e022cd27429659435e03ba70731e061570513524 | [] | no_license | dmitryro/divorcesus | 23fe394b0d065f635ecb11eed945cc4fcb9bb829 | 8ecedb2b8a019e63f37702888dd12e994a75105e | refs/heads/master | 2022-12-11T17:20:13.348413 | 2020-10-01T17:27:57 | 2020-10-01T17:27:57 | 56,432,086 | 0 | 1 | null | 2022-12-08T02:22:29 | 2016-04-17T11:05:27 | JavaScript | UTF-8 | Python | false | false | 910 | py | from django.contrib.syndication.views import Feed
from django.utils import feedgenerator
from custom.blog.models import Post
from django.utils.feedgenerator import Atom1Feed
from django.core.urlresolvers import reverse
import datetime
class RssSiteNewsFeed(Feed):
title = "Divorces U.S. Feed"
link = "/blog/"
... | [
"dmitryro@gmail.com"
] | dmitryro@gmail.com |
af2569704f85afa754bf1a09f1bb6e3bf339a63d | 021c96f56992bfb58da4973a3b0067ca3298585c | /branch/sqlgen2/sample/toolbox/rtorrent/infopart.py | 15f881db4c5295f6f9c6933408c87f500c3172f7 | [] | no_license | BackupTheBerlios/useless-svn | 3818ec28f74be9ad4b43f7261ebbe50c4efea3d7 | a38ecbb06063d09bf50c284e9fd3f7d9c0e5f3a1 | refs/heads/master | 2021-01-25T10:30:05.919994 | 2012-11-13T20:25:26 | 2012-11-13T20:25:26 | 40,749,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | from qt import QWidget
from qt import PYSIGNAL, SIGNAL
from kdecore import KURL
from kdeui import KMessageBox
from useless.kdebase.htmlpart import BaseInfoPart
from base import MyUrl
from infodoc import RtorrentDocument
class RtorrentInfoPart(BaseInfoPart):
def __init__(self, parent, name='RtorrentInfoPart')... | [
"umeboshi@70758ab2-d2f7-0310-a994-9f7f813c4004"
] | umeboshi@70758ab2-d2f7-0310-a994-9f7f813c4004 |
ebbd242f0378e77644f277eea227a316fa7e5f7b | 0729e5a36e75e938b04570ad1515bc9958088a50 | /kopipasta/migrations/0002_auto_20210420_1015.py | 49d94aa250b85cf1d1c0f8d38e416480aaab9ca1 | [] | no_license | multiscripter/kopipasta-django-sqlite | 42c17f0815e807349025ae99222a76ec23e0b0aa | b25cabebc8fdf323ff4535cb921450b8faa427ec | refs/heads/master | 2023-04-06T13:51:15.007595 | 2021-04-24T20:27:47 | 2021-04-24T20:27:47 | 360,644,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # Generated by Django 3.2 on 2021-04-20 10:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kopipasta', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id',... | [
"ILL-JAH@yandex.ru"
] | ILL-JAH@yandex.ru |
c889e40298be02aa6d96c57ddc5d869b79642c8f | 39486c9763e9955c6f0d2bc8459ce8151d2611eb | /python/ThirteenTeV/RPVStop_M_1300_LDQ331_TuneCUETP8M1_tauola_13TeV_pythia8_cfi.py | 573e9ed13d59e9dac0cf2ba87bfbda5a6b98d094 | [] | no_license | rafaellopesdesa/genproductions | 299220881fb8e464fb10ce076d8a21af5d082ae6 | efbcffdf67970eaa06a2f54ae91bb7b585928ffb | refs/heads/master | 2021-01-24T04:43:36.562016 | 2017-01-20T13:27:13 | 2017-01-20T13:27:13 | 46,142,369 | 0 | 0 | null | 2015-11-13T19:23:28 | 2015-11-13T19:23:28 | null | UTF-8 | Python | false | false | 18,609 | py | SLHA_TABLE="""
# SOFTSUSY3.2.4
# B.C. Allanach, Comput. Phys. Commun. 143 (2002) 305-331, hep-ph/0104145
# B.C. Allanach and M.A. Bernhardt, arXiv:0903.1805
# B.C. Allanach, M. Hanussek and C.H. Kom, arXiv:1109.3735
Block SPINFO # Program information
1 SOFTSUSY # spectrum calculator
2 3.2.4 ... | [
"saptaparna.bhattacharya@cern.ch"
] | saptaparna.bhattacharya@cern.ch |
c723e01098140dae38ba2781b5263766148e056c | 6ac2631c256f156d4ddf169e6c67f1fe66ebcaaf | /081/pyteacher/app_base/models.py | bfd1736a59fa47f89e025fc3e617a5e1ee89ba2d | [] | no_license | kasaiee/how-to-pyteacher | 101f106aeeed1b34756cecf502337ff8ee584ff5 | 074a57533f53fd1b8c7f37cd11dbc3b32ab8a08f | refs/heads/master | 2022-12-10T23:50:46.851784 | 2019-07-15T19:31:03 | 2019-07-15T19:31:03 | 187,372,111 | 6 | 4 | null | 2022-12-08T01:55:05 | 2019-05-18T15:08:03 | null | UTF-8 | Python | false | false | 6,187 | py | from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
import jdatetime
from django.utils.timezone import localtime
from django.db import models
from django.urls import reverse
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import Gen... | [
"1tapciran@gmail.com"
] | 1tapciran@gmail.com |
721db38f5608aae8294e9b5c455423a9532f1398 | 250db406ad4a62e3d576e55b979bcfdc3407f226 | /Leetcode分类/7. LinkedList/Leetcode_86_Partition List/my_solution.py | 4eb4526fd86b4a98a47fac363c9b88d4e4013760 | [] | no_license | chenshanghao/Interview_preparation | 0830f0e461a2fe287b8ec24ae761974f50268767 | 4e7701d32990604c16ba18a8083c2108c0232306 | refs/heads/master | 2020-04-25T02:36:19.499364 | 2019-06-10T04:51:00 | 2019-06-10T04:51:00 | 172,446,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def partition(self, head, x):
"""
:type head: ListNode
:type x: int
:rtype: ListNode
"""
lowerList = ... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
73f01ba1318b8cf9b7f36cc8844270b1e79095d8 | 35fd40fbc4cfa46272c4031b9ca0cb88572e3fa4 | /xmonitor/tests/functional/db/base.py | dc3dd29373804c9b3a5cd2422cc7817988fff656 | [
"Apache-2.0"
] | permissive | froyobin/xmonitor | 3d662541387226a4ff1c18ef450fdc77a769d0b8 | 092dcaa01f834353ffd8dd3c40edf9e97543bfe8 | refs/heads/master | 2020-12-23T22:33:15.758127 | 2016-06-30T06:18:05 | 2016-06-30T06:18:05 | 62,284,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99,802 | py | # Copyright 2010-2012 OpenStack Foundation
# Copyright 2012 Justin Santa Barbara
# Copyright 2013 IBM Corp.
# 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
#
#... | [
"froyo.bin@gmail.com"
] | froyo.bin@gmail.com |
e2966c2a118b6034281b5b1b5ed6e51dfc5c0cf6 | a62fad21b7d00360e08a4c2666ced6e0a938d772 | /blood_finder_api/blood_finder_api/asgi.py | 56c9802576900480eb5889e63e5f485e18ea4841 | [] | no_license | NumanIbnMazid/blood-finder | 46153efc5094601d628c16f685fb3d4a68e259ac | 95ace66f7e9a5460389940cfc6341cfb218b7148 | refs/heads/master | 2023-07-29T16:47:30.723456 | 2021-09-13T11:23:00 | 2021-09-13T11:23:00 | 405,943,320 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | """
ASGI config for blood_finder_api 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
# os.environ.setdefault('D... | [
"numanibnmazid@gmail.com"
] | numanibnmazid@gmail.com |
d17f43149aafd5d87d8b4ef49f3a0806a3ccffcc | 04b2e1c38fc64b8fd1020dfd5232eb3034f6cc1a | /ui/LogPlotSwitcher.py | 4d37292d20ada961aa6c953beeab4ff74c2930c8 | [
"Apache-2.0"
] | permissive | Kevin2599/GRIPy | faac3c0ffb98fc26094349bcc40c3522bd53b76b | 9cd79dded7f57b52515410a9bcb0a8cead48bfdd | refs/heads/master | 2020-04-13T17:27:51.655974 | 2018-08-29T20:39:09 | 2018-08-29T20:39:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,939 | py | # -*- coding: utf-8 -*-
import wx
from wx.combo import BitmapComboBox
from collections import OrderedDict
from om.Manager import ObjectManager
class Dialog(wx.Dialog):
def __init__(self, parent, colors, color_names, i_color, welluid, lims, loguid, *args, **kwargs):
if 'on_ok_callback' in kwargs:
... | [
"adrianopaulo@gmail.com"
] | adrianopaulo@gmail.com |
3177575f51e0cd6e73acce8e9bef8aea053bfe42 | 9a38733c268e4a715c70c2bedba10433ddad3380 | /test_GCR_on_miniImagenet.py | 6e4d9a5131fb6b44729a971b08e179abb0b76661 | [] | no_license | lwj2018/few-shot | bca3d7d4148f607cc70e1a1c1e5847a0428ed53e | d2c5fc14f519f81e2e29e6abea6affe82e122b61 | refs/heads/master | 2021-05-17T21:52:10.277842 | 2020-04-08T11:26:38 | 2020-04-08T11:26:38 | 250,967,777 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | import os.path as osp
import time
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from datasets.mini_imagenet_drop500 import MiniImageNet2
from datasets.samplers import CategoriesSampler_train_100way, CategoriesSampler_val_100way
from models... | [
"lwj19970331@gmail.com"
] | lwj19970331@gmail.com |
fe5b66641f2aca7c783d08749756abe3c80ddca8 | 6fa3835d8193ed0ccf69804a142bc35aeb79c1ed | /pitcoin_mainnet_node_edition/pitcoin_modules/block/__init__.py | ebb5570be622e276d054aa7bcfd02b4d002babb9 | [] | no_license | akorunska/pitcoin_block_explorer | fca6dc81351946b6f9c88d2b962b0369df08ea49 | 73f5e3b380602c3ae12a370af9bd58f35ffbbd71 | refs/heads/master | 2021-07-01T06:34:18.772029 | 2020-10-25T10:20:43 | 2020-10-25T10:20:43 | 185,462,462 | 0 | 0 | null | 2020-10-25T10:20:44 | 2019-05-07T19:05:34 | Python | UTF-8 | Python | false | false | 61 | py | from .block import Block
from .merkle import get_merkle_root
| [
"akorunska@gmail.com"
] | akorunska@gmail.com |
898f4f336d98d93c12cdc2ef9a7995f33a80704b | c44904609923bbc20812ddc1f875ffb182f98518 | /Day 4 - Beginner - Randomisation and Python Lists/1. Random Exercise/main.py | 0df72c8cf8e418a612a922577f52721843005366 | [] | no_license | ceteongvanness/100-Days-of-Code-Python | a3f7b88a25aedbfe3cc5633cadf09fa746c2a2ec | 272b68c8d720f2d25e05245d41c7b8fff2851ddd | refs/heads/master | 2023-03-11T05:13:32.823152 | 2021-02-20T00:31:02 | 2021-02-20T00:31:02 | 310,734,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import random
test_seed = int(input("Create a seed number: "))
random.seed(test_seed)
randomSide = random.randint(0, 1)
if randomSide == 1:
print("Heads")
else:
print("Tails") | [
"ceteongvanness@hotmail.com"
] | ceteongvanness@hotmail.com |
3863c03fc4e7392c2e05fb2378a9748752bc107b | 2186fdd8350d6dc72340a65c2cc1d345c2c51377 | /Python/Django/NinjaGold_project/NinjaGold_project/settings.py | a9422c5e56fbce0a0d010f6279270ef269389415 | [] | no_license | umanav/Lab206 | 2b494712b59585493e74c51089223696729eb716 | 31f0b098aa6722bbf7d2ad6e619fa38f29cab4d5 | refs/heads/master | 2020-03-10T07:54:25.904503 | 2018-04-12T15:37:20 | 2018-04-12T15:37:20 | 129,273,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | """
Django settings for NinjaGold_project project.
Generated by 'django-admin startproject' using Django 1.11.12.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""... | [
"umanav@amazon.com"
] | umanav@amazon.com |
3cc902946a6b0a3ee3e399f506011de912eece59 | 07e396e3682465cd753d5c99ef06f9f70c374816 | /Test_scripts/homerest_rest_framework.py | 3de208f2c2b5c59ade5ec780ffc954b9710e9514 | [] | no_license | DavisDeco/Django-RestAPI | d1ac04346f32e3e9122a485e7cebd81c73253f2e | f88135437c3fe40f27fe214adca05905a1c80e92 | refs/heads/master | 2022-12-25T20:33:00.659364 | 2019-12-13T09:10:57 | 2019-12-13T09:10:57 | 227,798,733 | 0 | 1 | null | 2022-12-08T06:16:24 | 2019-12-13T09:03:55 | Python | UTF-8 | Python | false | false | 1,102 | py | import json
import requests
import os
ENDPOINT = "http://127.0.0.1:8000/api/status/"
image_path = os.path.join(os.getcwd(),"Arifu_Logo_Transparent.png")
def do_img(method='get', data={}, is_json=True, img_path=None):
header = {}
if is_json:
headers['content-type'] = 'application/json'
data = ... | [
"you@example.com"
] | you@example.com |
bd0d602e44529f3602a633fba72b2687e55f1fa0 | e573b586a921084f29a36f8e2de5afcae2c65ff8 | /tasks/part_3/replacement_3.py | 7fbd0023900ac766dbda655780824a8c8f5546a5 | [] | no_license | HannaKulba/AdaptiveTraining_English | e69c8a0c444c1fa72b4783ba837cb3d9dc055d91 | 46497dc6827df37f4ebb69671912ef5b934ab6f0 | refs/heads/master | 2020-12-28T15:05:25.762072 | 2020-02-19T14:39:22 | 2020-02-19T14:39:22 | 238,381,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | import sys
import re
for line in sys.stdin:
line = line.rstrip()
result = re.sub(r'\b(a|A+)+\b', 'argh', line, 1)
print(result)
| [
"anna.mirraza@gmail.com"
] | anna.mirraza@gmail.com |
2f39634fd8bf356dc61b2936c783b74ddf7e856d | e5b69a84c6e6a3e4b658dbfc07dda1394320dea5 | /config/includes.chroot/usr/lib/gedit/plugins/smart_highlight/smart_highlight.py | 8f9dc419979f841e57473a0867e52ddb2a333436 | [] | no_license | vikashpatty/kali | 2e384fad383ee643a19579ca8c5381d47e122ab9 | 13a91c2b2997d0db23d4b2f9c4f198768fa857af | refs/heads/master | 2020-03-08T21:54:34.399588 | 2014-02-08T02:02:28 | 2014-02-08T02:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,630 | py | # -*- encoding:utf-8 -*-
# smart_highlight.py is part of smart-highlighting-gedit.
#
#
# Copyright 2010-2012 swatch
#
# smart-highlighting-gedit is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
8a0208ea6f4f05a60f00b54f6cdd4233171e6574 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_055/ch85_2020_05_09_19_47_41_223416.py | 40546593ba1c709f5bd32f0a8ecff9073cf49f93 | [] | 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 | 450 | py | ocorrencias_banana = 0
with open('macacos-me-mordam.txt', 'r') as arquivo:
texto = arquivo.read()
for string in texto:
for l in range(len(string) - 1):
if string[l] == 'b' or 'B' and string[l + 1] == 'a' or 'A' and string[l + 2] == 'n' or 'N' and string[l + 3] == 'a' or 'A' and string[l + 4]... | [
"you@example.com"
] | you@example.com |
62c2725da0cb80c3f6d53c537923e3046ad1c8ad | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/p6k.py | 593c4262fcdfe6029b71f89aa8fa95c8bbd57ce8 | [] | 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 |
2e0c46b2e3309b3b760e0fa11ae5d3a7644321bf | 19fdaccb11ba28ddf73ad88cfe7d158e6872b4a7 | /Projects_csld/common/redis_token.py | 1f1f7d87eaaab69d6792073dfc3bf03a931af22f | [] | no_license | basheGG/CSLD | 130a243780d65d596a146cb0894bf0355b5165fb | 286c5cbcab1487ecc36724fb1221bc07f021db45 | refs/heads/master | 2020-09-20T05:28:07.185000 | 2019-11-27T09:30:40 | 2019-11-27T09:30:40 | 224,388,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import redis
import json
r = redis.Redis(host='127.0.0.1', port=6379, password='', db=1, decode_responses=True)
class Token():
Token = ""
Id = ""
Type = ""
Permissions = []
def LoadToken(self, token):
print('***********************************************')
print(token)
p... | [
"admin@example.com"
] | admin@example.com |
df401df878b31aa05c781a01902a20325731ffd7 | b99195cf2d181dec5c31aa7e58d747f474153802 | /MyScripts/while.py | 41f7991f03b0f4fdd67f02483f2687fc06f96852 | [] | no_license | eldadpuzach/MyPythonProjects | b1b4d56a822fd781c7c4c7a9e4bb5408c180c187 | 3a961a7c265caf1369067d98e94564f01f1bde74 | refs/heads/master | 2020-03-20T18:07:43.319331 | 2019-02-13T22:07:10 | 2019-02-13T22:07:10 | 137,570,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | x = 0
while x < 10:
print('Current counter is {0}'.format(x))
x +=1 | [
"eldadpuzach@gmail.com"
] | eldadpuzach@gmail.com |
c176e3f41b84dbe540dacb097d32f02880d5c6f0 | c4feb6227cc68e96c7454ee7682a91f6f6afd164 | /supervised_learning/0x08-deep_cnns/5-dense_block.py | 3c0f8e19dbbbc41427fb787ed218f4146de7e322 | [] | no_license | Karenahv/holbertonschool-machine_learning | 4b7ae5ad4cd1f06f8bae87a509d11b5c8069f8c9 | 884db3d605c2d0eee968f03ce7f525f2a557f261 | refs/heads/master | 2022-12-24T16:17:34.753055 | 2020-09-30T02:09:08 | 2020-09-30T02:09:08 | 255,319,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | #!/usr/bin/env python3
"""builds a dense block as
described in Densely Connected
Convolutional Networks"""
import tensorflow.keras as K
def dense_block(X, nb_filters, growth_rate, layers):
""" builds a dense block as
described in Densely Connected
Convolutional Networks"""
kernel_init = K.initial... | [
"you@example.com"
] | you@example.com |
2c96ac1a2773232924361a5a429b20d26afb2287 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/130/usersdata/162/33622/submittedfiles/al8.py | f937fc1c073c5b47ba4a97a0d3fd006ae097d61d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | # -*- coding: utf-8 -*-
n=int(input('Digite o valor de n:'))
i=1
for i in range(1,(n+1),1):
fatorial=fatorial*i
print(fatorial)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
91ad66dae791a33f3cf1c674c9da232c59a763ab | a5eab1deb33a380a48444b836c871f0c93307e47 | /conkit/io/tests/test__iotools.py | d4ea7801c48c3147051277ccc5d876f640778c48 | [
"BSD-3-Clause"
] | permissive | xiangf/conkit | a425131bef2da193da0fe9100213b1cd5a40ce01 | 633978d4665dcf99f28c6e35e602e91c37c49229 | refs/heads/master | 2021-04-05T23:49:27.750815 | 2018-02-26T12:36:04 | 2018-02-26T12:36:04 | 125,077,426 | 0 | 0 | null | 2018-03-13T15:57:26 | 2018-03-13T15:57:26 | null | UTF-8 | Python | false | false | 3,868 | py | """Testing facility for conkit.io._iotools"""
__author__ = "Felix Simkovic"
__date__ = "21 Nov 2016"
import os
import unittest
from conkit.io import _iotools
class Test(unittest.TestCase):
def test_create_tmp_f_1(self):
fname = _iotools.create_tmp_f()
self.assertTrue(os.path.isfile(fname))
... | [
"felixsimkovic@me.com"
] | felixsimkovic@me.com |
153e0370ae6af4a26ea68a01c9d3909b89fac7dc | 2ca4d75dc00c20b886f16855d62d3cce444bb301 | /testsuits/test_baidu_search1.py | a928b1fbb78ffae2c522cce0168010df06d3edb8 | [] | no_license | christinecoco/python_automation | d81103aed00910595e662b581ef4350c16a9c316 | bad2e90d0ae23f3d34096d7cc6682b94702a8730 | refs/heads/master | 2020-05-23T22:37:47.718254 | 2019-05-16T07:43:15 | 2019-05-16T07:43:15 | 186,977,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | #coding=utf-8
import time
import unittest
# import sys
# reload(sys)
# sys.setdefaultencoding('utf-8')
from framework.browser_engine import BrowserEngine
from pageobjects.baidu_homepage import HomePage
class BaiduSearch(unittest.TestCase):
@classmethod
def setUpClass(cls):
"""
测试固件的setUp()的代码,主... | [
"tester@test.com"
] | tester@test.com |
f88ea05adf755edb13e91361742fe7015daeadda | a37c48267bfb8476476dad7219c4e3329f9e2991 | /Packs/GreyNoise/Integrations/GreyNoise/GreyNoise.py | 98eeec36b1c94bd69939479030148fc54d968818 | [
"MIT"
] | permissive | adambaumeister/content | 611ce9fba412a5eb28fbefa8a43282e98d3f9327 | 01b57f8c658c2faed047313d3034e8052ffa83ce | refs/heads/master | 2023-03-09T18:16:18.623380 | 2022-07-13T18:11:09 | 2022-07-13T18:11:09 | 274,290,989 | 2 | 0 | MIT | 2023-03-06T12:22:17 | 2020-06-23T02:36:53 | Python | UTF-8 | Python | false | false | 36,582 | py | from CommonServerPython import *
""" Imports """
import urllib3 # type: ignore
import traceback
import requests
import re
import copy
from typing import Tuple, Dict, Any
from greynoise import GreyNoise, exceptions, util # type: ignore
from greynoise.exceptions import RequestFailure, RateLimitError # type: ignore
... | [
"noreply@github.com"
] | adambaumeister.noreply@github.com |
c361fd4c9c62df1c52bbd066ad265b76e4f5d3bd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/exp-big-1450.py | 4af975f9d49d0f7c1af22e4f2dc895b6dd87fb17 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | # Compute x**y
def exp(x: int, y: int) -> int:
a: int = 0
a2: int = 0
a3: int = 0
a4: int = 0
a5: int = 0
def f(i: int) -> int:
nonlocal a
nonlocal a2
nonlocal a3
nonlocal a4
nonlocal a5
def geta() -> int:
return a
if i <= 0:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.