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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33dc3dfc91acdf0546b4037e41f01b34a182023c | ffeacff13af906bf5e7a02018a2543902f5dc8ef | /01-Python核心编程/代码/01-Python基础入门/02-变量.py | 7bc1c7bc22e85be68c5320b18334c3329a42044d | [
"MIT"
] | permissive | alikslee/Python-itheima-2019 | 457080ee83d0f5f7eaba426da0ea86405d2d5248 | 691035d5ff0e362139c7dbe82f730ec0e060fd2e | refs/heads/main | 2023-01-01T16:27:20.062463 | 2020-10-22T16:20:29 | 2020-10-22T16:20:29 | 305,959,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | """
1. 定义变量
语法:变量名 = 值
2. 使用变量
3. 看变量的特点
"""
# 定义变量:存储数据TOM
my_name = 'TOM'
print(my_name)
# 定义变量:存储数据 黑马程序员
schoolName = '我是黑马程序员,我爱Python'
print(schoolName)
| [
"lee079074256@gmail.com"
] | lee079074256@gmail.com |
a6eea0af306527465a1dc805ddefe392e87b3795 | ed7a9902168b0a5340e1bd293d3fa93cedd73149 | /hr/__init__.py | e9904d4c48e398373c63c30b70ccd20917a48a73 | [] | no_license | srikanthpragada/PYTHON_07_SEP_2018_DEMO | ec15129de5118d0765dfe920942f78f5b903ab79 | fe3782186d71a425df5f99f93e398bdc30716808 | refs/heads/master | 2020-03-28T10:10:26.637869 | 2018-10-16T03:31:51 | 2018-10-16T03:31:51 | 148,088,136 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 64 | py |
print("Importing package hr")
__all__ = ['jobfuns', 'empfuns'] | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
9d0128dc70eb0120c6494ed71e98e88372a65f88 | add5790098575fc81f774605944a682c7b301b2a | /scripts/chaos.py | 4206aab19593cd518631462d0e19aadb3ba05638 | [] | no_license | firemark/python-interpreters-benchmark | 85135df95568866527a7cfadea3a26d62f6baad2 | eb0c7ec3153579010c1e215f6030a0fc9f39dd91 | refs/heads/master | 2016-09-06T11:47:54.585586 | 2015-08-23T23:06:22 | 2015-08-23T23:06:22 | 35,060,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #from https://gist.github.com/aliles/1087520#file-chaos-py
"Logistic map iteration timing"
from itertools import islice
import time
def logistic_map(r, x):
assert r > 0, 'R must be a positive number'
assert 0 < x < 1, 'X must be a number between 0 and 1'
while True:
x = r * x * (1 - x)
yie... | [
"marpiechula@gmail.com"
] | marpiechula@gmail.com |
9a88300c76be9816dc8f4201016a2df5e67a2647 | fe5200ebd83028745f646643a086b144a54b5bbe | /source/chap7/files/graphdfs.py | a644ec6b83042855ab3813d3913ab69936d2979f | [] | no_license | kentdlee/CS2Plus | 7561220fd43b611f62a9fdc25b86ae731aa35de9 | 2056f47a6c9e7c0d3f25a093011c3bb84c909a2f | refs/heads/master | 2023-01-27T22:03:33.116038 | 2023-01-19T03:58:49 | 2023-01-19T03:58:49 | 228,526,240 | 3 | 4 | null | 2023-01-19T00:47:25 | 2019-12-17T03:36:30 | HTML | UTF-8 | Python | false | false | 7,224 | py | from xml.dom import minidom
import turtle
import math
from xml.dom import minidom
import turtle
def drawArrow(turtle):
x1 = turtle.xcor()
y1 = turtle.ycor()
turtle.right(180)
turtle.forward(8)
turtle.left(90)
turtle.forward(3)
x2 = turtle.xcor()
y2 = turtle.ycor()
turtle.backward(6... | [
"kentdlee@gmail.com"
] | kentdlee@gmail.com |
cc44e29031cd48478c4008a214d3ab556eb48bc9 | acff427a36d6340486ff747ae9e52f05a4b027f2 | /main/multimedia/misc/gd/actions.py | 042228023565d91f338fabc969069644018d6479 | [] | no_license | jeremie1112/pisilinux | 8f5a03212de0c1b2453132dd879d8c1556bb4ff7 | d0643b537d78208174a4eeb5effeb9cb63c2ef4f | refs/heads/master | 2020-03-31T10:12:21.253540 | 2018-10-08T18:53:50 | 2018-10-08T18:53:50 | 152,126,584 | 2 | 1 | null | 2018-10-08T18:24:17 | 2018-10-08T18:24:17 | null | UTF-8 | Python | false | false | 790 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
... | [
"erkanisik@yahoo.com"
] | erkanisik@yahoo.com |
0b6fc9ada6e11aede244fdf4656ba71c235dc6d2 | e1efc8e0b0e4629dea61504fbc816c0527691bd9 | /19.操作系统/6-计算机组成.py | 599824c990306f94405ce44162e609db550b9291 | [] | no_license | xiongmengmeng/xmind-technology | 2bb67a0bf92cfd660cac01f8ab3a2454423ccba5 | e2fdb6987ef805a65f0a4feb52d84383853f4b77 | refs/heads/main | 2023-07-31T07:10:29.868120 | 2021-09-11T08:18:17 | 2021-09-11T08:18:17 | 307,636,242 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)
import xmind
xmind_name="操作系统"
w = xmind.load(os.path.dirname(os.path.abspath(__file__))+"\\"+xmind_name+".xmind")
s2=w.createSheet()
s2.setTitle("计算机组成")
r2=s2.getRootTopic()
r2.setTitle("计算机组成")
c... | [
"xiongmengmeng@qipeipu.com"
] | xiongmengmeng@qipeipu.com |
152a6146d2345f4c3caf0ae61e212e199ced1eb1 | 34f3cfeac7fd5a7bbbc5e362bef8bc316f81c1d0 | /examples/hello_world.py | a949333bb699c9d60f65578b4953d65ee7b47ca1 | [
"MIT"
] | permissive | eerimoq/asn1tools | 860b3623955c12dfb9763ff4e20a805beb7436ba | de25657f7c79100d1ba5312dd7474ff3e0d0ad2e | refs/heads/master | 2023-03-16T09:28:11.924274 | 2023-03-10T20:24:34 | 2023-03-10T20:24:34 | 99,156,277 | 272 | 98 | MIT | 2023-01-03T13:40:36 | 2017-08-02T20:05:05 | Python | UTF-8 | Python | false | false | 758 | py | #!/usr/bin/env python
"""The asn1tools hello world example.
Example execution:
$ ./hello_world.py
Message: {'number': 2, 'text': 'Hi!'}
Encoded: 010203486921
Decoded: {'number': 2, 'text': 'Hi!'}
$
"""
from __future__ import print_function
from binascii import hexlify
import asn1tools
SPECIFICATION = '''
HelloWo... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
fc48e39bb0aee373153cef35813f955f5833f74f | 1aa6e732645f4603c05a1c9262f6fbb1af76b056 | /patchinfo/Sample.py | cf14f4943aea03a06512c40ef63dc666be04ea36 | [] | no_license | nauddin257/DualBootPatcher | f2831bdc72d8f94787a1d3ad94d0d85103316dd5 | 024af7ecb38ba6b4e3f1ae16ab81e32cd213864f | refs/heads/master | 2020-12-11T07:26:46.916515 | 2013-11-14T03:54:41 | 2013-11-14T03:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | # This file describes the ROM/Kernel/etc with the following information:
# - Pattern in file name
# - Patch to use
# - Type of ramdisk (if any)
# - Message to display to user
#
# Please copy this file to a new one before editing.
from fileinfo import FileInfo
import re
file_info = FileInfo()
# This is the re... | [
"chenxiaolong@cxl.epac.to"
] | chenxiaolong@cxl.epac.to |
d513893828bbf80619ff10477ea3f18b0cdf6215 | cc578cec7c485e2c1060fd075ccc08eb18124345 | /cs15211/PerfectSquares.py | f097d8aa0569feaba85550e5a0ea219fa94bdfa0 | [
"Apache-2.0"
] | permissive | JulyKikuAkita/PythonPrac | 18e36bfad934a6112f727b4906a5e4b784182354 | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | refs/heads/master | 2021-01-21T16:49:01.482561 | 2019-02-07T06:15:29 | 2019-02-07T06:15:29 | 91,907,704 | 1 | 1 | Apache-2.0 | 2019-02-07T06:15:30 | 2017-05-20T18:12:53 | Python | UTF-8 | Python | false | false | 6,693 | py | __source__ = 'https://leetcode.com/problems/perfect-squares/'
# https://github.com/kamyu104/LeetCode/blob/master/Python/perfect-squares.py
# Time: O(n * sqrt(n))
# Space: O(n)
#
# Description: Leetcode # 279. Perfect Squares
#
# Given a positive integer n, find the least number of perfect
# square numbers (for example... | [
"b92701105@gmail.com"
] | b92701105@gmail.com |
4b89a17ac220b090f950e378b29399758610f9db | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /UraniaDev_v6r1/PIDCalib/PIDPerfScripts/scripts/python/MCResampling/MakePIDdistributionsRunRange.py | b824a21ad3c2ed644ac8c5f12215c65dd3166258 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,453 | py | #!/bin/env python
from PIDPerfScripts.StartScreen import *
import ROOT
import sys
import os.path
from array import *
import argparse
#make projections
def makeprojections(hs,projlist,axes=[]):
dim=hs.GetNdimensions()
axs={}
for a in range(0,dim):
#print hs.GetAxis(a).GetName()
if str(hs.G... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
0b5ca29eaae9763b72fa05cf02e3700b7b140027 | 0912be54934d2ac5022c85151479a1460afcd570 | /Ch02_Code/GUI_tabbed_two_mighty.py | 96aa5a91f4e767b625a86a078a5ffa0a9a25fa21 | [
"MIT"
] | permissive | actuarial-tools/Python-GUI-Programming-Cookbook-Third-Edition | 6d9d155663dda4450d0b180f43bab46c24d18d09 | 8c9fc4b3bff8eeeda7f18381faf33c19e98a14fe | refs/heads/master | 2023-01-31T13:11:34.315477 | 2020-12-15T08:21:06 | 2020-12-15T08:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | '''
Created on May 1, 2019
@author: Burkhard A. Meier
'''
#======================
# imports
#======================
import tkinter as tk
from tkinter import ttk
# Create instance
win = tk.Tk()
# Add a title
win.title("Python GUI")
tabControl = ttk.Notebook(win) # Create Tab Contr... | [
"noreply@github.com"
] | actuarial-tools.noreply@github.com |
b20cc0a645c622379c65505f264a6d4367a0bd51 | c9094a4ed256260bc026514a00f93f0b09a5d60c | /tests/components/nest/test_events.py | 692507d6ff905025d88fe3a713fd7366e14966e3 | [
"Apache-2.0"
] | permissive | turbokongen/home-assistant | 824bc4704906ec0057f3ebd6d92788e096431f56 | 4ab0151fb1cbefb31def23ba850e197da0a5027f | refs/heads/dev | 2023-03-12T05:49:44.508713 | 2021-02-17T14:06:16 | 2021-02-17T14:06:16 | 50,231,140 | 4 | 1 | Apache-2.0 | 2023-02-22T06:14:30 | 2016-01-23T08:55:09 | Python | UTF-8 | Python | false | false | 9,106 | py | """Test for Nest binary sensor platform for the Smart Device Management API.
These tests fake out the subscriber/devicemanager, and are not using a real
pubsub subscriber.
"""
from google_nest_sdm.device import Device
from google_nest_sdm.event import EventMessage
from homeassistant.util.dt import utcnow
from .comm... | [
"noreply@github.com"
] | turbokongen.noreply@github.com |
509fcbdd523fa11e40a849845f97193b811db41c | 8d2a124753905fb0455f624b7c76792c32fac070 | /pytnon-month01/month01-shibw-notes/day15-shibw/project/student_system/usl.py | 4ad416702de887a3725f0e5f9c0bd4ae8cdd8769 | [] | no_license | Jeremy277/exercise | f38e4f19aae074c804d265f6a1c49709fd2cae15 | a72dd82eb2424e4ae18e2f3e9cc66fc4762ec8fa | refs/heads/master | 2020-07-27T09:14:00.286145 | 2019-09-17T11:31:44 | 2019-09-17T11:31:44 | 209,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | from project.student_system.bll import StudentManagerController
from project.student_system.model import StudentModel
class StudentManagerView:
def __init__(self):
self.__manager = StudentManagerController()
def __display_menu(self):
print('+---------------------+')
print('| 1)添加学生信息... | [
"13572093824@163.com"
] | 13572093824@163.com |
78d406860f54317f57d41d8f3bdb89b4bed931b9 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/cone/colorbar/_thicknessmode.py | 780825a965633045eb793b2aedd2476e4bbd835e | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 508 | py | import _plotly_utils.basevalidators
class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="thicknessmode", parent_name="cone.colorbar", **kwargs
):
super(ThicknessmodeValidator, self).__init__(
plotly_name=plotly_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
831330dcefafc3860800291775c941a2014c0554 | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/1426. Counting Elements/Solution.py | d1562d8f530d1dc240ef0657eef54bb2fb1ca1c0 | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from collections import Counter
class Solution:
def countElements(self, arr: List[int]) -> int:
cnter = Counter()
for num in arr:
cnter[num] += 1
ret = 0
for num in cnter:
if num + 1 in cnter:
ret += cnter[num]
return ret
| [
"nhatsmrt@uw.edu"
] | nhatsmrt@uw.edu |
4941db21d1801a4b32c8b425abfa53ba39a2daf7 | 0e7aed5eef2e1d132a7e75dd8f439ae76c87639c | /python/99_recovery_binary_search_tree.py | f33ff8d9a0ddc717ee9257ba29adfbe15bb56a73 | [
"MIT"
] | permissive | liaison/LeetCode | 2a93df3b3ca46b34f922acdbc612a3bba2d34307 | bf03743a3676ca9a8c107f92cf3858b6887d0308 | refs/heads/master | 2022-09-05T15:04:19.661298 | 2022-08-19T19:29:19 | 2022-08-19T19:29:19 | 52,914,957 | 17 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def recoverTree(self, root: Optional[TreeNode]) -> None:
"""
Do not return anything, modify ... | [
"lisong.guo@me.com"
] | lisong.guo@me.com |
9e07b5398d27a117cd0715e83244ef70c8effa19 | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0077.py | 3acdf7b01e3c58d9d3ca83d70ec1fcf15e98ba77 | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | class Solution:
def combine(self, n: int, k: int) -> List[List[int]]:
if n < k or k == 0 or n < 1:
return []
if n == k:
return [list(range(1, n + 1))]
elems = list(range(1, n + 1))
res = []
def helper(idx, cur_num, tmp):
if cur_num == k:
... | [
"lih627@outlook.com"
] | lih627@outlook.com |
9fc53681ad817b7fa251631d75071089db5d2263 | 3aafaa865594aa58d056a79fdae4d0658774d3ab | /lpot/policy/policy.py | 7c0681ec514a8231ce3bcfe65665bfd8becfff2b | [
"Apache-2.0",
"MIT",
"Intel"
] | permissive | asamarah1/lpot | 56aac0d46692e1864de2f06390ab435cd079e741 | 881bde402db387b04c2f33cc96fb817f47c4d623 | refs/heads/master | 2023-01-20T15:55:39.088923 | 2020-12-01T13:22:59 | 2020-12-01T14:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,827 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020 Intel Corporation
#
# 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
#
# Unl... | [
"feng.tian@intel.com"
] | feng.tian@intel.com |
f54e17f1039b967e95884b5985520df3dfd65637 | e71ecfe679dd8c800e8b0960d4ba68e19401a4fc | /stepik_lesson/course_512/24462_step_7/stepik_lesson_24462_step_7.py | 63695a2af1d67f45221fa836de778932c8006dcf | [] | no_license | igizm0/SimplePyScripts | 65740038d36aab50918ca5465e21c41c87713630 | 62c8039fbb92780c8a7fbb561ab4b86cc2185c3d | refs/heads/master | 2021-04-12T10:48:17.769548 | 2017-06-15T18:53:04 | 2017-06-15T18:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,536 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
"""
Вам дано описание наследования классов в следующем формате.
<имя класса 1> : <имя класса 2> <имя класса 3> ... <имя класса k>
Это означает, что класс 1 отнаследован от класса 2, класса 3, и т. д.
Или эквивалентно записи:
class Class1(Class2... | [
"gil9red@gmail.com"
] | gil9red@gmail.com |
bd9832d0c46aeb06f3e1be823cd8ddeeeff12f6b | 658e2e3cb8a4d5343a125f7deed19c9ebf06fa68 | /archived/Iris/predict_MLib.py | ad961a61d650da3d0598048dca22187b70f6101d | [] | no_license | yennanliu/analysis | 3f0018809cdc2403f4fbfe4b245df1ad73fa08a5 | 643ad3fed41961cddd006fadceb0e927f1db1f23 | refs/heads/master | 2021-01-23T21:48:58.572269 | 2020-10-13T22:47:12 | 2020-10-13T22:47:12 | 57,648,676 | 11 | 9 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # python 2.7
# import pyspark library
from pyspark import SparkConf, SparkContext
# spark_sklearn provides the same API as sklearn but uses Spark MLLib
# under the hood to perform the actual computations in a distributed way
# (passed in via the SparkContext instance).
from spark_sklearn import GridSearchCV
# i... | [
"f339339@gmail.com"
] | f339339@gmail.com |
d24fae521ef6c2f8b0e3cf7b13a138e1f4046455 | 8dbb2a3e2286c97b1baa3ee54210189f8470eb4d | /kubernetes-stubs/client/models/v1_sysctl.pyi | e638c63d5d823971ab9ff9df1684ff0940b88d6c | [] | no_license | foodpairing/kubernetes-stubs | e4b0f687254316e6f2954bacaa69ff898a88bde4 | f510dc3d350ec998787f543a280dd619449b5445 | refs/heads/master | 2023-08-21T21:00:54.485923 | 2021-08-25T03:53:07 | 2021-08-25T04:45:17 | 414,555,568 | 0 | 0 | null | 2021-10-07T10:26:08 | 2021-10-07T10:26:08 | null | UTF-8 | Python | false | false | 288 | pyi | import datetime
import typing
import kubernetes.client
class V1Sysctl:
name: str
value: str
def __init__(self, *, name: str, value: str) -> None: ...
def to_dict(self) -> V1SysctlDict: ...
class V1SysctlDict(typing.TypedDict, total=False):
name: str
value: str
| [
"nikhil.benesch@gmail.com"
] | nikhil.benesch@gmail.com |
673d91a849350b9e67aade6bec505c7dab3c0e0c | 110044654f706e920380dad2779bb32a77f1f26f | /test/scons-time/run/option/prefix.py | df13cd03a7471c885ba2284a7fdb2d97f3999c1f | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SCons/scons | 89327bb9635cee6e7cc59249edca9cd859d7d1ff | b2a7d7066a2b854460a334a5fe737ea389655e6e | refs/heads/master | 2023-09-01T19:37:03.603772 | 2023-08-28T04:32:42 | 2023-08-28T04:32:42 | 104,670,160 | 1,827 | 342 | MIT | 2023-09-14T15:13:21 | 2017-09-24T19:23:46 | Python | UTF-8 | Python | false | false | 1,756 | py | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
... | [
"knight@baldmt.com"
] | knight@baldmt.com |
03a9ddfa73884e7bfecba1c93affc417bf62874c | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /trunk/geoip_server/geoip_server.py | 694cfbf4361cb21ff3247af3076efb976476662d | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 3,070 | py | #!/usr/bin/env python
"""
<Author>
Evan Meagher
<Start Date>
Nov 26, 2009
<Description>
Starts an XML-RPC server that allows remote clients to execute geolocation
queries using the pygeoip library.
<Usage>
python geoip_server.py /path/to/GeoIP.dat PORT
Where /path/to/GeoIP.dat is the path to a legal Geo... | [
"USER@DOMAIN"
] | USER@DOMAIN |
f2d0bdcee3ce59d545e749c749eb9687f69c787a | e58f8258837fdf559cde6008ca46ecedb1735347 | /scripts/extract_changelog.py | 7cba17577c9a58cf1e5f59f53cb4544824cdc2a4 | [
"MIT"
] | permissive | Dotnester/hyperqueue | 5a4bbd4966dc5c79e48b0f2012576e418a2b8230 | cf5227c2157ab431ee7018a40bbbf0558afe4f27 | refs/heads/main | 2023-07-08T22:22:15.992034 | 2021-08-08T09:38:06 | 2021-08-08T09:38:06 | 379,584,453 | 0 | 0 | MIT | 2021-06-23T11:47:10 | 2021-06-23T11:47:09 | null | UTF-8 | Python | false | false | 1,033 | py | import sys
from os.path import dirname, abspath, join
CURRENT_DIR = dirname(abspath(__file__))
CHANGELOG_PATH = join(dirname(CURRENT_DIR), "CHANGELOG.md")
def normalize(version: str) -> str:
return version.strip().lstrip("v").lower()
def get_matching_lines(text: str, tag: str):
lines = list(text.splitline... | [
"berykubik@gmail.com"
] | berykubik@gmail.com |
839eed4612014b865c80342615cde0f6ddac614d | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/minimum-moves-to-equal-array-elements/286144821.py | dc0c0055a3678c35f3e5333e2f8ffd941978ff97 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # title: minimum-moves-to-equal-array-elements
# detail: https://leetcode.com/submissions/detail/286144821/
# datetime: Sun Dec 15 23:17:51 2019
# runtime: 300 ms
# memory: 14 MB
class Solution:
def minMoves(self, nums: List[int]) -> int:
m = nums[0]
s0 = nums[0]
for i in range(1, len(nums)... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
b809857ce9e48ae6ea3743c92b3a80ee7ad9cbd3 | c886b04cdbe32e0997d9bc0259b90575ebb2d084 | /system/vhost/zkeys_database_conf.py | 351ec5b296da0e45d04398b1a40109dfa5125e71 | [] | no_license | bmhxbai/AngelSword | 3ce7b9f9f9e6114f8d4cff15e17d1fd8225a786c | a048dbfcbcf0097c6cf683ab9cd5ce975bddcf68 | refs/heads/master | 2020-06-25T07:23:15.505146 | 2017-07-01T17:57:34 | 2017-07-01T17:57:34 | 96,964,744 | 2 | 1 | null | 2017-07-12T04:20:20 | 2017-07-12T04:20:20 | null | UTF-8 | Python | false | false | 1,256 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: 宏杰Zkeys虚拟主机默认数据库漏洞
referer: http://www.wooyun.org/bugs/wooyun-2014-048350
author: Lucifer
description: 宏杰Zkeys虚拟主机默认开启999端口,默认数据库密码zkeys可连接root。
'''
import sys
import pymysql
import warnings
from termcolor import cprint
from urllib.parse import urlparse
class zke... | [
"297954441@qq.com"
] | 297954441@qq.com |
0e02481e8375d280ec68fb8d4c16894dc62b6acb | 0bf833b379210656214b4064d0a71850352e014e | /vsCode/DL_rawLevel/DL_rawLevel/4.ANN/test.py | 3bf3a6f55736816652323c2826993e413b759991 | [
"MIT"
] | permissive | pimier15/pyDLBasic | f10168e352b94b9d77fda3c1b89a294b66fd8e4e | 80336cddbcb3ec1f70106b74ff0b3172510b769e | refs/heads/master | 2021-07-20T00:37:15.363651 | 2017-10-28T02:32:47 | 2017-10-28T02:32:47 | 107,188,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import numpy as np
ys = np.array([[1,2] , [3,4]])
#ys = np.array([1,2 , 3,4])
ts = np.array([[0,1] , [0,1]])
#ts = np.array([0,1 , 0,1])
IsOneHot = True
res = None
batch_size = ys.shape[0]
#res = -np.sum(ts*np.log(ys + 1e-7) ) / batch_size
#res = -np.sum(np.log(ys[np.arange(batch_size) , t]) ) / batch_size
ly = np.... | [
"pimier15@gmail.com"
] | pimier15@gmail.com |
fc2fa0fbaa66103a9e382ebb8547fd0c14538125 | dce4cfdae2d1e7285b92f657f2509143595f4cc3 | /loadsbroker/client/base.py | faf44a100b06fc418c09f1db7c7545768e417185 | [
"Apache-2.0"
] | permissive | loads/loads-broker | ed8a0c0b79b132a0b4e73da59a391193e9e99147 | b6134690e1bd7b07e226bee16e6f779ef0f170d9 | refs/heads/master | 2021-01-17T13:46:16.539082 | 2017-03-29T22:06:20 | 2017-03-29T22:06:20 | 23,458,608 | 7 | 1 | Apache-2.0 | 2021-04-27T19:20:00 | 2014-08-29T09:02:14 | Python | UTF-8 | Python | false | false | 599 | py |
class BaseCommand(object):
"""Base Command Class"""
arguments = {}
def __init__(self, session, root):
self.session = session
self.root = root
def __call__(self, args):
return self.session.get(self.root).json()
def args2options(self, args):
options = {}
fo... | [
"tarek@ziade.org"
] | tarek@ziade.org |
ae8ffa89543123c6624d4622af045eca5333796a | 15a961eee6a1b49aa9ec8efb3acc80e1913015f7 | /tfx/tools/cli/handler/beam_handler_test.py | 75406b979462f07fd4e6c8938a24503eebb03caa | [
"Apache-2.0"
] | permissive | tbligny/tfx | a9414824031bd7d1f6618f583fe2b7d2ef3a9a36 | e4e6e6ec271cc54f88dacb707bf0e3a8366d4b78 | refs/heads/master | 2022-05-25T13:31:57.460735 | 2020-02-11T05:03:18 | 2020-02-11T05:04:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,109 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
1900f05d4886154e7a4d78aa476492ce0db95e71 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02381/s946222912.py | 98a2c0e51de4dd78dcdf7cf46b06bc31ed0bae32 | [] | 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 | 220 | py | import math
while True:
n = int(input())
if n == 0:
break
a = 0
st = list(map(int, input().split()))
m = sum(st)/len(st)
for x in st:
a += (x-m)**2
print(math.sqrt(a/n))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
43283f9c8816b12d1b6dc5433408d6622dba55ee | 0b6966a75a4c62393a38a73df5a779228639c42c | /datasets/transforms.py | a3a47f2b8e7e0c32541ca65e91e0e49875957f43 | [] | no_license | Shuai-Xie/DEAL | 7cbec778bcc83b633a1c3319d9b00c8b0f98aa00 | 06ff3ba29196e276376a9cf8d868d54fd2db2680 | refs/heads/master | 2023-08-29T20:03:44.867280 | 2021-11-12T07:50:28 | 2021-11-12T07:50:28 | 300,126,893 | 25 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,018 | py | import torch
import random
import numpy as np
from PIL import Image, ImageEnhance, ImageOps
import constants
def mapbg(bg_idx):
"""
image bg 转成 constants.BG_INDEX, 类别从 [0,..,C-1]
"""
# bg 在首部,需要调整 实际类别 前移1位
def map_headbg(target):
target = target.astype(int)
target -= 1 # 1->0
... | [
"shuaixie@zju.edu.cn"
] | shuaixie@zju.edu.cn |
fefc83938d27fd019badb525867387ffddc88103 | 47471b8424715c1a1bc9e6745f44b89bec3add5f | /apps/account/admin.py | 536398f3e9367c65f9ffeb70845899b24cc3d01e | [] | no_license | Dimasuz/6.6_Ln_with_docker | 5f34db291afe243e8e571067e17e7b3d92145437 | d1fee864816174c0e03acc13a6849ee3277f6cec | refs/heads/master | 2023-05-27T07:09:05.187935 | 2021-06-11T20:07:14 | 2021-06-11T20:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as DefaultUserAdmin
from django.utils.translation import gettext_lazy as _
from apps.account.models import User
@admin.register(User)
class UserAdmin(DefaultUserAdmin):
list_display = (
'username', 'first_name', 'last_name',... | [
"oz.sasha.ivanov@gmail.com"
] | oz.sasha.ivanov@gmail.com |
29040bbe393c5645cee310429de8117d60756676 | 19b82e3a7610696a70d2d3fac70cf5425e61853d | /python_learning_liaoxuefeng/function_arguments.py | 432646b83e51e0d5ccf25a6b96f4f5ece8a3fc25 | [] | no_license | xieyipeng/python | 9ef5c3e3865e78aa4948c7a89aa7d2c6713122c6 | 1f4e23369e76fc0739d4c2213b6470bba9fa288c | refs/heads/master | 2021-04-15T13:09:30.338025 | 2020-03-11T03:36:03 | 2020-03-11T03:36:03 | 126,497,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | # 函数参数:
# 位置参数:
# def power(x):
# return x * x
# print(power(5))
def power(x, n=2): # 上面的power函数就没用了,修改为带有默认参数的函数
s = 1
while n > 0:
n = n - 1
s = s * x
return s
print(power(5, 4))
# 默认参数:
print(power(5)) # 必选参数在前,默认参数在后
def enroll(name, gender, age=6, city='beijing'):
print... | [
"3239202719@qq.com"
] | 3239202719@qq.com |
d0011a7ba2c397fd29dfb45dc2ba6c8850c56dfa | fd994f57661fc7960a2a47cb70283db0a4f0145f | /lampost/gameops/display.py | dded84469844a7faca54b223e24a586173763318 | [
"MIT"
] | permissive | NancyR/Lampost-Mud | 24d6ad979e99b27dd05546646694f1727af73bc1 | 7d313c34af0eadb2707242ca351013c97c720f51 | refs/heads/master | 2021-01-14T12:57:32.719005 | 2013-05-05T22:14:37 | 2013-05-05T22:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | DEFAULT_COLOR = 'default'
SYSTEM_COLOR = 'system'
ROOM_TITLE_COLOR = 'room_title'
ROOM_COLOR = 'room'
EXIT_COLOR = 'exit'
TELL_FROM_COLOR = 'tell_from'
TELL_TO_COLOR = 'tell_to'
SAY_COLOR = 'say'
COLOR_DATA = {DEFAULT_COLOR: ("Default", 0x00000),
SYSTEM_COLOR: ("System messages", 0x002288),
... | [
"genzgd@gmail.com"
] | genzgd@gmail.com |
987cbeb106b713ef40e6d165b790ddb7ead12987 | 5327317139867617bf9faff600b07e9404d68126 | /data_generate_single.py | 853f78603a9082b74101b86b581f3a9b27753c9b | [] | no_license | Doreenruirui/BCI | 9091b9b4ceb021387d199a90ed001c9f8258761a | a8c5e7e3c0ed9cbef16ddc0c5b534b210f32d400 | refs/heads/master | 2021-07-14T07:19:07.715054 | 2018-12-04T10:54:52 | 2018-12-04T10:54:52 | 131,056,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,971 | py | import random
from os.path import join as pjoin
from data_simulate import *
import datetime
def tokenize(string):
return [int(s) for s in string.split()]
def load_vocabulary(path_data):
vocab = {}
rev_vocab = {}
line_id = 0
with open(pjoin(path_data, 'vocab')) as f_in:
for line in f_in:
... | [
"ruiruidong1989@gmail.com"
] | ruiruidong1989@gmail.com |
2387e28c6307a5777130aedd6c83a0115cb3b4e6 | 0e7cdded06b219e20382edc8b855e4902c16bd1b | /task/download.py | dcacda001148129c45fb8111d59eebe14cc6e073 | [
"MIT"
] | permissive | cpausmit/FiBS | 71828b9fce4025a548bbeb8647ecfe5c37719f41 | 2a49bb3bea53201f1933dcf5a8d43e4774bcf9b8 | refs/heads/master | 2022-09-13T06:43:53.736788 | 2022-08-30T21:43:38 | 2022-08-30T21:43:38 | 55,325,041 | 0 | 1 | MIT | 2022-08-30T21:43:39 | 2016-04-03T01:57:53 | Python | UTF-8 | Python | false | false | 5,111 | py | #!/usr/bin/env python
#---------------------------------------------------------------------------------------------------
# Download exactly one file from a given xrootd location to another xrootd location.
#
# Ch.Paus (Mar 25, 2021)
#--------... | [
"paus@mit.edu"
] | paus@mit.edu |
7295512a52631127cac7a9bac633c1f3e19e03f8 | 6e423cddd8698bc662bcc3208eb7a8fdb2eb0d72 | /mlcomp/parallelm/model/constants.py | 5e8296f20d50f1acfb3eaec9e0c114645176ed6f | [
"Apache-2.0"
] | permissive | theromis/mlpiper | 7d435343af7b739767f662b97a988c2ccc7665ed | 738356ce6d5e691a5d813acafa3f0ff730e76136 | refs/heads/master | 2020-05-05T04:44:00.494105 | 2019-04-03T19:53:01 | 2019-04-03T22:02:53 | 179,722,926 | 0 | 0 | Apache-2.0 | 2019-04-05T17:06:02 | 2019-04-05T17:06:01 | null | UTF-8 | Python | false | false | 394 | py |
# Provides information about the model file path that should be fetched and used by the pipeline
METADATA_FILENAME = 'metadata.json'
# A helper file that is used to signal the uWSGI workers about new models
SYNC_FILENAME = 'sync'
# A dedicated extension that is used to avoid model file paths collisions between the
#... | [
"lior.amar@parallelmachines.com"
] | lior.amar@parallelmachines.com |
8fa5731878c882842bf2a145cc3010af0d34ccae | fe9e19372790f3f79f134b008852c028d497c7fb | /blog/migrations/0001_initial.py | 55c531ce6369adcbed4ab5de943b193fff831878 | [] | no_license | Mohamed-awad/django_blog | 9f73cbb598c4e71670f7546150fa257d494d3041 | 40b198b53dd023ee63112189863e49f2e28d19dc | refs/heads/master | 2021-05-03T16:32:04.262701 | 2018-03-24T16:06:58 | 2018-03-24T16:06:58 | 120,438,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # Generated by Django 2.0.1 on 2018-02-06 07:26
import datetime
from django.conf import settings
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_M... | [
"awadmohamed233@gmail.com"
] | awadmohamed233@gmail.com |
6d58b6cfcfe5f6bdddc5b38f1fa6e583aebad983 | f281d0d6431c1b45c6e5ebfff5856c374af4b130 | /DAY001~099/DAY87-BOJ2217-로프/smlee.py | 5bab04654a25b085dadf331133df46f33e52a89b | [] | no_license | tachyon83/code-rhino | ec802dc91dce20980fac401b26165a487494adb4 | b1af000f5798cd12ecdab36aeb9c7a36f91c1101 | refs/heads/master | 2022-08-13T09:10:16.369287 | 2022-07-30T11:27:34 | 2022-07-30T11:27:34 | 292,142,812 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | n = int(input())
arr = [int(input()) for _ in range(n)]
arr.sort(reverse=True)
result=[]
for i in range(len(arr)):
result.append(arr[i] * (i+1))
print(max(result))
| [
"noreply@github.com"
] | tachyon83.noreply@github.com |
77f992b5ee77c422b6c3b1c8bd56c87d95f7d6c4 | c6053ad14e9a9161128ab43ced5604d801ba616d | /Lemon/Python_Base/api_auto_4/__init__.py | 591e89f6ae29685aa744ea28b9493c1bb8296095 | [] | no_license | HesterXu/Home | 0f6bdace39f15e8be26031f88248f2febf33954d | ef8fa0becb687b7b6f73a7167bdde562b8c539be | refs/heads/master | 2020-04-04T00:56:35.183580 | 2018-12-25T02:48:51 | 2018-12-25T02:49:05 | 155,662,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/10/19:49
# @Author : Hester Xu
# Email : xuruizhu@yeah.net
# @File : __init__.py.py
# @Software : PyCharm
"""
代码--放在package里 数据--放在文件夹里
1.package:
common
2.directory:
datas
test_result: log report
configs
""" | [
"xuruizhu@yeah.net"
] | xuruizhu@yeah.net |
7e1f7eb16d48fbf502259148e251576c19aa8f53 | d35813d7e9ef6c606591ae1eb4ed3b2d5156633b | /python-daily/list_extend.py | 3e1ee4598d757d52be70a3c5d44b0daa750289cc | [] | no_license | JeremiahZhang/gopython | eb6f598c16c8a00c86245e6526261b1b2d1321f1 | ef13f16d2330849b19ec5daa9f239bf1558fa78c | refs/heads/master | 2022-08-13T22:38:12.416404 | 2022-05-16T02:32:04 | 2022-05-16T02:32:04 | 42,239,933 | 13 | 6 | null | 2022-08-01T08:13:54 | 2015-09-10T11:14:43 | Jupyter Notebook | UTF-8 | Python | false | false | 128 | py | animals = ['Python', 'Viper', 'Cobra']
def add_snake(snake_type):
animals.extend(snake_type)
print(animals)
add_snake('Boa') | [
"zhangleisuda@gmail.com"
] | zhangleisuda@gmail.com |
f42e215f64f793c923ad2ebc2a3027e6e38fe807 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03796/s497366765.py | 3301405c3e00a707add21602658cfa1546569d62 | [] | 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 | 110 | py | N = int(input())
power = 1
for n in range(1, N+1):
power = power % (10**9+7) * n
print(power % (10**9+7))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6fc6c184d8c93782a2b1661cc99dcafccc772bb1 | a89dbc6d2d9c44b7c4a19f297b0885e8127a3cdb | /tests/test_xvnc.py | cf04b338505f7b2d82a17bbbe6d3134bc5ccefd4 | [
"BSD-2-Clause"
] | permissive | ponty/PyVirtualDisplay | 79a6e53eaaa146665409aaa144a67faf12c38d72 | 8368c4138a09efb5bba45cc7c3ff95f602d21881 | refs/heads/master | 2023-07-05T00:33:21.167789 | 2023-03-12T07:54:41 | 2023-03-12T07:54:41 | 1,354,580 | 554 | 82 | BSD-2-Clause | 2021-04-02T20:56:40 | 2011-02-11T10:41:09 | Python | UTF-8 | Python | false | false | 1,917 | py | import tempfile
from pathlib import Path
from tutil import has_xvnc, rfbport, worker
from vncdotool import api
from pyvirtualdisplay import Display
from pyvirtualdisplay.xvnc import XvncDisplay
if has_xvnc():
def test_xvnc():
with tempfile.TemporaryDirectory() as temp_dir:
vnc_png = Path(tem... | [
"ponty@home"
] | ponty@home |
22ee0ba721abb697347257b1a5d2542edcf4c1e9 | 797e83cd492c22c8b7e456b76ae9efb45e102e30 | /chapter3_ScriptExectionContext/redirect.py | def595d1368afa8dfb1bf48215eba992e256569d | [] | no_license | skyaiolos/ProgrammingPython4th | 013e2c831a6e7836826369d55aa9435fe91c2026 | a6a98077440f5818fb0bd430a8f9a5d8bf0ce6d7 | refs/heads/master | 2021-01-23T11:20:38.292728 | 2017-07-20T03:22:59 | 2017-07-20T03:22:59 | 93,130,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | """
file-like objects that save standard output text in a string and provide
standard input text from a string; redirect runs a passed-in function
with its output and input streams reset to these file-like class objects;
"""
import sys # get built-in modules
class Output: ... | [
"skyaiolos@aliyun.com"
] | skyaiolos@aliyun.com |
dbbeccc73dc6022533c406f9b0cb7b945674c7d3 | 21e177a4d828f4e0a003e9424c4952dbc0b47d29 | /testlints/test_lint_subject_locality_name_max_length.py | 43b55f38acbf73df4543e4b07ebccf054dd11684 | [] | no_license | 846468230/Plint | 1071277a55144bb3185347a58dd9787562fc0538 | c7e7ca27e5d04bbaa4e7ad71d8e86ec5c9388987 | refs/heads/master | 2020-05-15T12:11:22.358000 | 2019-04-19T11:46:05 | 2019-04-19T11:46:05 | 182,255,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | import sys
sys.path.append("..")
from lints import base
from lints import lint_subject_locality_name_max_length
import unittest
import os
from cryptography import x509
from cryptography.hazmat.backends import default_backend
class TestSubjectLocalityNameLengthGood(unittest.TestCase):
'''test lint_subject_locality... | [
"846468230@qq.com"
] | 846468230@qq.com |
3e6b65965404c9a88926cd2f245c924f11869101 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/VBF_HToTauTau_M-120_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_66/run_cfg.py | 09d33bfcf02f1d13dc3723c60dd660d9b368a10a | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/VBF_HToTauTau_M-120_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
29a9940ae1963530c38cc81ee7feb8f6627c38e0 | f1d49f5155d63172e58547e706a4f11a2dcd2cbc | /lib/crypto/receipt.py | 5b563ba67b2fd1aee5396523b8a817bfa46ca171 | [] | no_license | rtnpro/zamboni | a831f308c994025b38616fcd039ceb856d2cafaf | 6a8cb8b5e81ed0ad72200a1586af54d9c3865d17 | refs/heads/master | 2021-01-16T19:09:07.937849 | 2012-11-06T17:19:49 | 2012-11-08T18:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | import json
import urllib2
from django.conf import settings
from django_statsd.clients import statsd
import commonware.log
import jwt
log = commonware.log.getLogger('z.crypto')
class SigningError(Exception):
pass
def sign(receipt):
"""
Send the receipt to the signing service.
This could possib... | [
"amckay@mozilla.com"
] | amckay@mozilla.com |
44e112a36cf0d7b8baf551bc5d5d8a4c9a9f32a3 | 82b536adad8c7fb2661e901af5936a81358d91dd | /test/__init__.py | a58a0123eec160adafdbf401495360ab57c118a2 | [
"MIT"
] | permissive | nickstenning/tagalog | 65fb9e6c670f9c6aef87775820143f1a5fd04a18 | c6847a957dc4f96836a5cf13c4eb664fccafaac2 | refs/heads/master | 2023-09-05T03:57:41.940595 | 2016-06-18T21:36:28 | 2016-06-18T21:36:28 | 8,113,627 | 3 | 0 | MIT | 2023-03-31T14:38:52 | 2013-02-09T19:10:08 | Python | UTF-8 | Python | false | false | 89 | py | import os
# Use UTF8 for stdin, stdout, stderr
os.environ['PYTHONIOENCODING'] = 'utf-8'
| [
"nick@whiteink.com"
] | nick@whiteink.com |
172982b7a6506280c67c338a2ed05e734620f7ea | cc4424bcbc6ca3d04c1be2effa043076816b3a12 | /Spider/VideoDownloading/shipin.py | ea67b404f6573e189a7fa5ca9ae0d133ef2b47f7 | [] | no_license | IronmanJay/Python_Project | a65a47c64b7121993be1ef38a678ffd4771ffaf1 | 91293b05eb28697f5dec7f99a0f608904f6a0b1f | refs/heads/master | 2023-06-11T07:56:18.121706 | 2023-06-07T02:31:06 | 2023-06-07T02:31:06 | 253,717,731 | 15 | 4 | null | 2022-11-21T20:51:58 | 2020-04-07T07:22:35 | Python | UTF-8 | Python | false | false | 621 | py | import requests
url = 'http://v3-default.ixigua.com/dd48e529360eaf527c9a929e8622e8d8/5d4d0a65/video/m/220c097cb8f27af496eaddb07c5d42edc601162e796e0000acb22a2eb570/?rc=M2psOGZoZ3NrbzMzZTczM0ApdSk6OjUzNTg0NDgzNTw7PDNAKTk8OTU8OzY8PDdnODM6NzNnKXUpQGczdSlAZjN1KTk0ZHIwajItcnIuMF8tLTQtMHNzOmkvNDIvNS0yLS0tMi4tLS4vaS1gY2BgLzFjY... | [
"1975686676@qq.com"
] | 1975686676@qq.com |
9c5a9a552daa857baa5ab25b8dea7fccee69eada | 372c618e3abf56f59027ba1cbfce8102a6ea2903 | /sugargame/canvas.py | 82992b3e5d2e511ef049fe38d9e16e7d2546c7d8 | [] | no_license | sugar-activities/4259-activity | 0bb728d1f49fcc01ba91c4c07a15eca3b267868e | db87efad848f073b1c45d2a5debb2d4ca8eab729 | refs/heads/master | 2021-01-19T23:15:31.307314 | 2017-04-21T05:09:21 | 2017-04-21T05:09:21 | 88,938,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import os
from gi.repository import Gtk
from gi.repository import GLib
import pygame
import event
CANVAS = None
class PygameCanvas(Gtk.EventBox):
"""
mainwindow is the activity intself.
"""
def __init__(self, mainwindow, pointer_hint = True):
Gtk.EventBox.__init__(self)
global CA... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
c1baadb28696c7b692331bd49fd54779350c9199 | ea0928f988c87c4ac04bf7dc4e9fe0b25495d22c | /append.py | 22dfbaf3ece8ee4b802feff98a716ac58f3fe026 | [] | no_license | opasha/Python | 8c7c9aa7c363d27a7628714543e674a4edc8ae13 | b3559e92c6c06753717cec5181868d0cecc9a2ac | refs/heads/master | 2021-01-19T23:54:01.438772 | 2017-05-05T04:07:56 | 2017-05-05T04:07:56 | 89,051,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | numbers = [1, 2, 3, 4, 5] # .append means to add something to the end of the list
print numbers
numbers.append(6)
print numbers
numbers.append(7)
print numbers
print list(range(10))
print range(10)
for number in range (8, 21): # for i in range (): statement
numbers.append(number)
print numbers
print numbers[::-1... | [
"username@users.noreply.github.com"
] | username@users.noreply.github.com |
07491e39d8215bad8fc61f2dfe20894595808718 | bc25195db1151a867343b5991fe51096ce2d57a8 | /tmp/portmidi/i.py | cff73824a778636fcd9c351feb4b491d5cb7f67c | [
"MIT"
] | permissive | ptone/protomidi | 04b78139c499518440afe5faecba9664ca068226 | 3dd169e66359ab17319880581771172a5867b261 | refs/heads/master | 2020-04-18T06:22:15.835383 | 2012-11-19T05:40:40 | 2012-11-19T05:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import time
import pprint
import protomidi.portmidi as io
input = io.Input('SH-201 MIDI 1')
while 1:
for msg in input:
print(msg)
time.sleep(0.001)
| [
"ombdalen@gmail.com"
] | ombdalen@gmail.com |
4568bdca6024375029e24fe57f3dd21cc996b16d | 0d560495d4e5be2004a5a08d696a1b4cb2b91742 | /backend/folk_games_25344/urls.py | 8d4f66d6cd8dc7ef11318eb019a291a2b54ca1f2 | [] | no_license | crowdbotics-apps/folk-games-25344 | 54fa818b69c50867425814ff5133c1bf87d3d2d4 | a00bf5a15f184fcfe138e84c9e386688e5121cd8 | refs/heads/master | 2023-03-29T14:24:41.695249 | 2021-03-29T15:12:24 | 2021-03-29T15:12:24 | 352,686,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | """folk_games_25344 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Cl... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3868c0327babcaf1a3a4450e0841ecd55612000f | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /hGzNSr5CSEpTsmy5W_21.py | 6ca84b106469f4b5d4ea74e03f6c62e56bbcb055 | [] | 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 | 119 | py |
def not_good_math(n, k):
if k:
a = n-1 if n%10 else n//10
return not_good_math(a,k-1)
else:
return n
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d13de3fc39daba7cccce1b46249e9f50ee05cfda | 5b771c11e8967038025376c6ec31962ca90748dd | /django_by_example_book/01_building_blog/blog/models.py | f61f39b725aead3d787f5b675f2d303f20eee4b3 | [] | no_license | AsemAntar/Django_Projects | 7135eca3b4bcb656fc88e0838483c97d7f1746e1 | 4141c2c7e91845eec307f6dd6c69199302eabb16 | refs/heads/master | 2022-12-10T06:32:35.787504 | 2020-05-26T14:43:01 | 2020-05-26T14:43:01 | 216,863,494 | 0 | 0 | null | 2022-12-05T13:31:53 | 2019-10-22T16:47:28 | Python | UTF-8 | Python | false | false | 2,066 | py | from django.db import models
from django.utils import timezone
from django.urls import reverse
from django.contrib.auth.models import User
from taggit.managers import TaggableManager
# create custom manager
class PublishedManager(models.Manager):
def get_queryset(self):
return super(PublishedManager, self... | [
"asemantar@gmail.com"
] | asemantar@gmail.com |
08b738fec65ee11ea20d6fb76dbae3a4d57f27dc | 01932366dd322ec3459db9dd85a2fd8d22a82fcb | /keras/keras41_cnn2_diabet.py | 8cfb63b0328f7edc365337ec0a562d64604f6de0 | [] | no_license | Jeong-Kyu/A_study | 653f5fd695109639badfa9e99fd5643d2e9ff1ac | 6866c88fcc25841ceae2cd278dcb5ad5654c2a69 | refs/heads/master | 2023-06-11T02:44:20.574147 | 2021-07-05T08:59:43 | 2021-07-05T08:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | #실습 : 19_1, 2, 3, 4, 5, EarlyStopping까지 총 6개의 파일을 완성하시오.
import numpy as np
from sklearn.datasets import load_diabetes
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import Dense, Input, Conv2D,MaxPool2D, Flatten
#1. 데이터
dataset = load_diabetes()
x = dataset.data
y = dataset.targe... | [
"jare92n@gmail.com"
] | jare92n@gmail.com |
71510ac89df23b353d808a6ad31c17a177af9447 | 52d324c6c0d0eb43ca4f3edc425a86cdc1e27d78 | /scripts/current/stage4_today_total.py | 494801c0c903240ab3698afb779c3c93ce742f6b | [
"MIT"
] | permissive | deenacse/iem | 992befd6d95accfdadc34fb7928d6b69d661d399 | 150512e857ca6dca1d47363a29cc67775b731760 | refs/heads/master | 2021-02-04T04:20:14.330527 | 2020-02-26T21:11:32 | 2020-02-26T21:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | """
Sum up the hourly precipitation from NCEP stage IV and produce maps
"""
from __future__ import print_function
import datetime
import os
import sys
import pygrib
from pyiem.datatypes import distance
from pyiem.plot import MapPlot, nwsprecip
import pytz
def doday(ts, realtime):
"""
Create a plot of precip... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
723c6f7bef028baa67703a89851fee5669b1e438 | 1a2bf34d7fc1d227ceebf05edf00287de74259c5 | /Django/Day09/AXF/APP/views.py | 410ab6a0ae6c42ec968dfac9b50b15f473ffb049 | [] | no_license | lzn9423362/Django- | de69fee75160236e397b3bbc165281eadbe898f0 | 8c1656d20dcc4dfc29fb942b2db54ec07077e3ae | refs/heads/master | 2020-03-29T18:03:47.323734 | 2018-11-28T12:07:12 | 2018-11-28T12:07:12 | 150,192,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | from django.shortcuts import render
from .models import *
# Create your views here.
def home(request):
#获取首页数据
#轮播数据u
wheel = MainWheel.objects.all()
nav = MainNav.objects.all()
mustbuy = MainMustbuy.objects.all()
shop = MainShop.objects.all()
shop1 = MainShop.objects.get(id=1)
mainl... | [
"411121080@qq.com"
] | 411121080@qq.com |
31ecf624d4ad0a53984e4da6628073af9caec17b | 476415b07a8ab773ac240989b481464961119b6a | /Funcionalidades/Diseño Clases/orden.py | 7406d7ba1af43e7054866541d4af804d132f09ac | [] | no_license | rtejada/Universidad-Python | c4d46a91eee2a15d3c72035aced9d28f1527fb69 | a2c8035f57f5ae269b1b968ef187180879d14163 | refs/heads/master | 2022-12-16T21:32:47.181638 | 2020-09-17T17:42:49 | 2020-09-17T17:42:49 | 284,633,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py |
class Order:
count_order = 0
def __init__(self):
Order.count_order += 1
self.__id_order = Order.count_order
self.product_list = []
def add_product(self, product):
self.product_list.append(product)
def calc_total(self):
total = 0
for i in... | [
"rtejadasilva@gmail.com"
] | rtejadasilva@gmail.com |
676934452bd736024c690192d1c1131a2e64e5b2 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_7/knnoth001/question1.py | 3099688c159642da489155736d68fff2d6c0ea97 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | '''Program that prints list of unique string of a string in the same order
Othniel KONAN
KNNOTH001
2014/04/27
'''
#VARIABLES
unik_list = []
#PROMPT THE USER TO ENTER A STRING
st = input('Enter strings (end with DONE):\n')
while st != 'DONE':
if not st in unik_list: #If it's a new string
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
ffe39281999c87161f8b9dfbad8a984c251fd2be | 3199331cede4a22b782f945c6a71150a10c61afc | /20210519PythonAdvacned/02-metaclass/hook03/user.py | b3f9c6d008e28f42933539ae1b06a6dd3ab8d1dd | [] | no_license | AuroraBoreas/language-review | 6957a3cde2ef1b6b996716addaee077e70351de8 | 2cb0c491db7d179c283dba205b4d124a8b9a52a3 | refs/heads/main | 2023-08-19T23:14:24.981111 | 2021-10-11T12:01:47 | 2021-10-11T12:01:47 | 343,345,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | "#Python is a protocol orientated lang; every top-level function or syntax has a corresponding dunder method implemented;"
from library import Base
class Derived(Base):
def bar(self):
return self.foo()
class A(Base):
def a(self):
return self.foo() | [
"noreply@github.com"
] | AuroraBoreas.noreply@github.com |
a7ddfca6859091ee1aa52cd9919e8345c630a6e9 | 065d4a661b39f4d747f1747ad6eaf4eb4144f368 | /deid/logger/message.py | 1248eece60713fe088582879714d1fd084146951 | [
"MIT"
] | permissive | howardpchen/deid | 4c52c3a6b7016b112027af530cd47fb18822a16d | 8ff05a43764669673968ed3b8b54ca11886d8b96 | refs/heads/master | 2020-04-13T06:27:29.299506 | 2019-01-12T04:03:38 | 2019-01-12T04:03:38 | 163,021,242 | 0 | 0 | MIT | 2018-12-24T20:18:05 | 2018-12-24T20:18:05 | null | UTF-8 | Python | false | false | 10,649 | py | '''
logger/message.py: Python logger base
Copyright (c) 2016-2018 Vanessa Sochat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to u... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
00f71d34637a4cb4036d4283d721b653b33e0aae | 0725ed7ab6be91dfc0b16fef12a8871c08917465 | /dp/binomial_cof.py | abe4fe8f6815852764ae85642a87766712dd4896 | [] | no_license | siddhism/leetcode | 8cb194156893fd6e9681ef50c84f0355d09e9026 | 877933424e6d2c590d6ac53db18bee951a3d9de4 | refs/heads/master | 2023-03-28T08:14:12.927995 | 2021-03-24T10:46:20 | 2021-03-24T10:46:20 | 212,151,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | def binomial_cof(n, k):
if cache[n][k]:
print ('returning from cache')
return cache[n][k]
print ('Calling binomial for n: ', n, ' k : ', k)
if k ==0 or n ==0 or k > n:
return 1
numerator = 1
for i in range(0, k):
# have to do n. n-1. n-2
numerator = numerator ... | [
"siddhesh@hackerearth.com"
] | siddhesh@hackerearth.com |
542f2773fc9b93136a8fae627f7e6a3a755e16c1 | 6df5ef4e82b506f965912df2f993c2bd59c1866d | /backend/manage.py | 6bf7a41ccbd1138324341618f40bc8566e588fa2 | [] | no_license | crowdbotics-apps/testfigma-dev-22683 | e08f3fd39b841cb48fb07f472154be32a662dff1 | 1bc3c125cbce3c7b5cc64951fb6c9f44c9251200 | refs/heads/master | 2023-06-06T02:07:57.886897 | 2021-07-01T14:14:01 | 2021-07-01T14:14:01 | 382,055,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | 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', 'testfigma_dev_22683.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c18a02ec9e309f0fce8c4230e1121427c9e9d638 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /GZhSDwwLwakxjpnoB_15.py | 6d7fd2f9496b057ace6ef5ae1b644de30829771d | [] | 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 | 85 | py |
def thirdthird(lst):
return lst[2][2] if len(lst)>2 and len(lst[2])>2 else False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e4accbc4ed7fd607ec786c88a75538e19d8293a6 | 6e57bdc0a6cd18f9f546559875256c4570256c45 | /cts/apps/CameraITS/tests/dng_noise_model/dng_noise_model.py | e8c6d19516ba3d0ff8dda59c7cfb6feba17b6d21 | [] | no_license | dongdong331/test | 969d6e945f7f21a5819cd1d5f536d12c552e825c | 2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e | refs/heads/master | 2023-03-07T06:56:55.210503 | 2020-12-07T04:15:33 | 2020-12-07T04:15:33 | 134,398,935 | 2 | 1 | null | 2022-11-21T07:53:41 | 2018-05-22T10:26:42 | null | UTF-8 | Python | false | false | 13,608 | py | # Copyright 2014 The Android Open Source Project
#
# 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 a... | [
"dongdong331@163.com"
] | dongdong331@163.com |
6bd6130c6ed40039761f0f71d944d545d53d6817 | 63e3e22fd46c07dbd18b74952b460cb7dc347466 | /peripteras/kiosks/migrations/0003_brand_category_item.py | da8d3e4017a041b0f37e0b99d2806d30435f2c9b | [
"MIT"
] | permissive | sm2x/e-peripteras | 0104dad6a4a0e2765c403c0b81dd34b2fefa847b | 39634ca07de535c6a1188af636e394a8966672ca | refs/heads/master | 2021-10-24T01:28:21.987338 | 2019-03-21T10:45:30 | 2019-03-21T10:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kiosks', '0002_auto_20160905_1531'),
]
operations = [
migrations.CreateModel(
name='Brand',
fields=[... | [
"ctefanos.t@gmail.com"
] | ctefanos.t@gmail.com |
6709fd566ee0ff20b661b59581d20d4021135340 | 942ee5e8d54e8ebe9c5c841fbfdd1da652946944 | /1001-1500/1268.Search Suggestions System.py | decc52676b284d49aeebcc99154207205fe08d97 | [] | no_license | kaiwensun/leetcode | 0129c174457f32887fbca078fb448adce46dd89d | 6b607f4aae3a4603e61f2e2b7480fdfba1d9b947 | refs/heads/master | 2023-08-31T07:30:50.459062 | 2023-08-27T07:59:16 | 2023-08-27T07:59:16 | 57,526,914 | 69 | 9 | null | 2023-08-20T06:34:41 | 2016-05-01T05:37:29 | Python | UTF-8 | Python | false | false | 1,033 | py | import collections
class Solution(object):
def suggestedProducts(self, products, searchWord):
"""
:type products: List[str]
:type searchWord: str
:rtype: List[List[str]]
"""
def dfs(p, res):
if '#' in p:
for _ in xrange (p['#'][1])... | [
"noreply@github.com"
] | kaiwensun.noreply@github.com |
8955a3578716804771d062c9949cb5bf9b88be34 | e51c261f76ecb86d85c1f7f93c0c3e4953284233 | /setup.py | c49e76f060f460899c14fea338caf86f58519c53 | [
"MIT"
] | permissive | adodo1/pyminitouch | 6f0194f3c25ab78abc89fabe9e8cd6bc19b20f54 | cefeab762277626b5a8167454467971a4c376e31 | refs/heads/master | 2020-05-20T09:48:45.430918 | 2019-03-25T06:39:26 | 2019-03-25T06:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from setuptools import setup, find_packages
setup(
name='pyminitouch',
version='0.2.5',
description='python wrapper of minitouch, for better experience',
author='williamfzc',
author_email='fengzc@vip.qq.com',
url='https://github.com/williamfzc/pyminitouch',
packages=find_packages(),
in... | [
"178894043@qq.com"
] | 178894043@qq.com |
be040983dab80ea1a7023c6ca738096ddb61864d | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/TTSemiLep/scripts/diffNuisances/diffNuisances.py | c039bed58979b8c0265f3553c0db8f4b52d7615c | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 22,375 | py | #!/usr/b::in/env python
import re
from sys import argv, stdout, stderr, exit
import datetime
from optparse import OptionParser
import HiggsAnalysis.CombinedLimit.calculate_pulls as CP
import ROOT
ROOT.gStyle.SetOptStat(0)
# tool to compare fitted nuisance parameters to prefit values.
#
# Also used to check for potenti... | [
"bh.oh@cern.ch"
] | bh.oh@cern.ch |
eb57c92acb99b68b2959e86a7d6a967376b975be | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/beginner/254/scoping.py | 34decf08d03878474c2328fa00d3a32c654a37e8 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 502 | py | # num_hundreds -1
#
#
# ___ sum_numbers numbers l.. __ i..
# """Sums passed in numbers returning the total, also
# update the global variable num_hundreds with the amount
# of times 100 fits in total"""
# sumlist s.. ?
# gl.. 'num_hundreds' +_ ? //100
# r.. ?
#
#
# """ numlists = [[],[1... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
ea2a8410b431daa5b5ae063281210a409f3e2dc2 | 931ae36e876b474a5343d0608ef41da6b33f1048 | /python100_sourceCode/089.py | c81f732407e3b1cf928528d280322cf2dcc05199 | [] | no_license | mucollabo/py100 | 07fc10164b1335ad45a55b6af4767948cf18ee28 | 6361398e61cb5b014d2996099c3acfe604ee457c | refs/heads/master | 2023-01-27T13:48:57.807514 | 2020-12-10T12:49:10 | 2020-12-10T12:49:10 | 267,203,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import sqlite3
# DB 연결
conn = sqlite3.connect('./output/sample.db')
cur = conn.cursor()
# Product 테이블의 id=1인 행 레코드의 가격을 7000원으로 수정
cur.execute('UPDATE Product set title="새 제품", price=7000 where id=1')
conn.commit()
# 변경 내용 확인
cur.execute('SELECT * from Product where id=1')
rows = cur.fetchall()
for r... | [
"mucollabo@gmail.com"
] | mucollabo@gmail.com |
e525cb78a6ad0651eeef1a726b80d42425cb8a17 | fe6b6d2253a9efc50571e1d1339ba5134306e978 | /AOJ/1611.py | 4a3e9abfc835b6997ea05081a0d81b344a4dbbd5 | [] | no_license | tehhuu/Atcoder | d6642dea8e92c9d721a914c9bbc208ca4fb484d0 | 3ff8b9890ac5a2b235ec0fbc9e1ef5f9653d956e | refs/heads/master | 2020-12-07T09:02:22.422854 | 2020-08-15T16:20:16 | 2020-08-15T16:20:16 | 232,689,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def ti(): return tuple(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for _ in range(N)]
def dp2(ini, i, j): return [[ini]*... | [
"volley_neverlose_exile@yahoo.co.jp"
] | volley_neverlose_exile@yahoo.co.jp |
e60a211880a23654d745ef6116f44ceb0a6b2b21 | bf7ceda28eacc4e68dadff5d35224a13e7467d4d | /save_pages_as_pickle_from_db.py | 7da88716bcfdb8ba5e8e88cc411a951fa68dcdf0 | [] | no_license | katryo/task_search | 83983d61618d7755c474a9ed9c39ec6ca5621641 | 20c1985ca27253f64f4f9c124b36166c86bcf2d0 | refs/heads/master | 2020-05-09T10:04:11.155557 | 2014-03-25T04:10:25 | 2014-03-25T04:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # -*- coding: utf-8 -*-
import constants
import pdb
from pickle_file_saver_for_original import PickleFileSaverForOriginal
from page_data_loader import PageDataLoader
from web_page import WebPage
if __name__ == '__main__':
queries = constants.QUERIES_4
saver = PickleFileSaverForOriginal()
with PageDataLoade... | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
979b67f9de6aee4f55cd9ac3f8fa6994dfbe7fbe | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /cc_mcc_seq/20sViruses/6.heatmap.py | 52b1d01453d24e84bc8ab093eb29173973a0ce4b | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | from PyPlot.PyPlotClass import *
import sys
import math
import numpy
V = {}
V['NC_001669.1']='Simian virus'
V['NC_006273.2']='Human herpesvirus 5'
V['NC_003287.2']='Enterobacteria phage M13'
V['NC_000898.1']='Human herpesvirus 6B'
V['NC_007605.1']='Human herpesvirus 4 type 1'
V['NC_009334.1']='Human herpesvirus 4'
V['... | [
"sunhanice@gmail.com"
] | sunhanice@gmail.com |
d83aba75ffff502d1e1d4ac11c23a729564cdd4c | 26c5f6bb53331f19e2a0ef0797b752aca9a89b19 | /caffe2/python/operator_test/elementwise_logical_ops_test.py | fb886a1845571f85cf8624a289fb54f3ae7c6bc2 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | Maratyszcza/caffe2 | 4c68baedbdaf5378f9da0ebf58b232478f689ae4 | f4794ac7629e6825b2c8be99950ea130b69c4840 | refs/heads/master | 2023-06-20T18:23:06.774651 | 2018-03-26T07:41:33 | 2018-03-26T18:22:53 | 122,715,434 | 1 | 0 | Apache-2.0 | 2018-02-24T07:28:21 | 2018-02-24T07:28:21 | null | UTF-8 | Python | false | false | 5,258 | py | # Copyright (c) 2016-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2da8e86c83b20b30243df47ef601477d5c095ae6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/428/usersdata/281/102513/submittedfiles/jogoDaVelha.py | f0e243249430cf1433ee1d4ee186ce27cbbfc621 | [] | 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 | 469 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
import random
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
print('Bem vindo ao Jogo da Velha da equipe ESSI')
nome=str(input('Qual o seu nome (ou apelido)? '))
simb ()
sorteio ()
if sorteio==1:
print('Vencedor do sorteio para inicio do jogo: Computador' )
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d3b35b564dfbdedf90d2e01ce3eef7f3c2366590 | d2b42c7a82229b02498ec9ba3bb49bb78857beca | /common.py | c0b5f07acc611a74bb0135b56d8cdd884e802e8b | [] | no_license | flyingbird93/NIMA | 8dd41d0bb10a21b7b9afeca59f26f70c626e9dec | 4c75458d31762d6236b931f0bc66d1784a2ea003 | refs/heads/master | 2022-11-06T10:47:30.404174 | 2018-12-14T07:05:57 | 2018-12-14T12:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | import os
import numpy as np
import requests
from torchvision import transforms
IMAGE_NET_MEAN = [0.485, 0.456, 0.406]
IMAGE_NET_STD = [0.229, 0.224, 0.225]
class Transform:
def __init__(self):
normalize = transforms.Normalize(
mean=IMAGE_NET_MEAN,
std=IMAGE_NET_STD)
sel... | [
"wangxin19930411@163.com"
] | wangxin19930411@163.com |
07e8edc00895d0ef29ad6acd8dcaad2abc9c07cb | 6fc5882ad4c38f32162ed30e60c3423ef8da5b7b | /fake_faces/models/baseline_batchnorm.py | e364734eb462c9da412e3e12f9385e20b72190ee | [
"MIT"
] | permissive | alexkyllo/fake-faces | f7334c798fc90eab94657dc18df88c19ec8c052c | 95d7467598bc1275e6c6c0bea331e036da4e625e | refs/heads/main | 2023-01-31T15:43:53.212202 | 2020-12-17T02:11:15 | 2020-12-17T02:11:15 | 304,217,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | """baseline.py
A baseline CNN with 3 Conv2D layers"""
import os
from tensorflow.keras import Sequential
from tensorflow.keras.layers import (
Conv2D,
MaxPool2D,
Flatten,
Dense,
Dropout,
BatchNormalization,
)
from tensorflow.keras.optimizers import Adam
from fake_faces.models.model import Model
f... | [
"alex.kyllo@gmail.com"
] | alex.kyllo@gmail.com |
57affb3c8abbefac1bd893146ceb7506392bad76 | d35813d7e9ef6c606591ae1eb4ed3b2d5156633b | /python4everybody/ch12_network_programming/socket1.py | 3e7484b486f0d5399dec90354d6b926489059e4a | [] | no_license | JeremiahZhang/gopython | eb6f598c16c8a00c86245e6526261b1b2d1321f1 | ef13f16d2330849b19ec5daa9f239bf1558fa78c | refs/heads/master | 2022-08-13T22:38:12.416404 | 2022-05-16T02:32:04 | 2022-05-16T02:32:04 | 42,239,933 | 13 | 6 | null | 2022-08-01T08:13:54 | 2015-09-10T11:14:43 | Jupyter Notebook | UTF-8 | Python | false | false | 333 | py | import socket
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysock.connect(('data.pr4e.org', 80))
cmd = 'GET http://data.pr4e.org/intro-short.txt HTTP/1.0\r\n\r\n'.encode()
mysock.send(cmd)
while True:
data = mysock.recv(512)
if (len(data) < 1):
break
print(data.decode(), end='')
my... | [
"zhangleisuda@gmail.com"
] | zhangleisuda@gmail.com |
cdf1db92901c592528e93cf76a2b6650207ac886 | 311578520b84f1649124cdfa335028ee66e9d88d | /scapy_python2/bridge/scapy_bridge_ThreadPoolExecutor.py | b6adcf9046fa57b1f12222f453747858c4178415 | [
"Unlicense"
] | permissive | thinkAmi-sandbox/syakyo-router_jisaku | b8070494a5fc62b576200cae96eb9c09599f4f41 | 295e4df3cf65ce0275f40884027ff8aaff381dd4 | refs/heads/master | 2021-09-03T07:32:08.995618 | 2018-01-07T03:19:15 | 2018-01-07T03:19:15 | 115,960,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # -*- coding: utf-8 -*-
from scapy.all import conf
import concurrent.futures
def bridge_from_eth0_to_eth1():
eth0_socket = conf.L2socket(iface='eth0')
eth1_socket = conf.L2socket(iface='eth1')
while True:
p = eth0_socket.recv()
if p:
eth1_socket.send(p.original)
def bridge_f... | [
"dev.thinkami@gmail.com"
] | dev.thinkami@gmail.com |
0ea6344fca0f9b96f2ed31bb0dbbd94842d83e03 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03486/s871112697.py | ad62fedae08b65cbd4a367acdee0c6ff80030ad4 | [] | 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 | 103 | py | s = sorted(input())
t = sorted(input(),reverse = True)
if s < t:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
61576ee9ff5f75ea088469328816acfcc2fd48b8 | f0d583a064cc53510d8b00b42ac869832e70bf41 | /nearl/convolutions.py | 8904603be480f804d66ed61426d0d836ea09e435 | [] | 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 | 2,153 | py | from skimage.exposure import rescale_intensity
import numpy as np
import argparse
import cv2
def convolve(image, K):
(iH, iW) = image.shape[:2]
(kH, kW) = K.shape[:2]
pad = (kW - 1) // 2
image = cv2.copyMakeBorder(image, pad, pad, pad, pad,
cv2.BORDER_REPLICATE)
out... | [
"polykovpavel23@gmail.com"
] | polykovpavel23@gmail.com |
3f0f1dcc0fbb8c2b8add0c757387a982bca2cbaf | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /iBL3eDRWzpxgfQyHx_3.py | e27280148842b79a6e873bc4c39cde8d6161a12a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | """
Fix the code in the **Code** tab so the function returns `true` _if and only
if_ `x` is equal to `7`. Try to debug code and pass all the tests.
### Examples
is_seven(4) ➞ False
is_seven(9) ➞ False
is_seven(7) ➞ True
### Notes
The bug can be subtle, so look closely!
"""
def is_seven(x... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cb9259575f3671b729def2abae33d43a65b303dd | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations/_express_route_ports_operations.py | e763f8dc244c70b4ef6e04a55b3d5c47f13bd7ba | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 30,188 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
fa17aaf115da2b9fef1951a840b2557fca760856 | 9645bdfbb15742e0d94e3327f94471663f32061a | /Python/844 - Backspace String Compare/844_backspace-string-compare.py | e1471d752b7544301a87dd7b7b8a38438f4cdf93 | [] | no_license | aptend/leetcode-rua | f81c080b2260adb2da677612e5c437eda256781d | 80e44f4e9d3a5b592fdebe0bf16d1df54e99991e | refs/heads/master | 2023-06-22T00:40:05.533424 | 2021-03-17T13:51:28 | 2021-03-17T13:51:28 | 186,434,133 | 2 | 0 | null | 2023-06-21T22:12:51 | 2019-05-13T14:17:27 | HTML | UTF-8 | Python | false | false | 1,715 | py | from leezy import Solution, solution
class Q844(Solution):
@solution
def backspaceCompare(self, S, T):
# 8ms 99.44%
def print_s(s):
stack = []
for ch in s:
if ch == '#':
if stack:
stack.pop()
el... | [
"crescentwhale@hotmail.com"
] | crescentwhale@hotmail.com |
c76d6d2e9cca7e7d52dfb5b95ee5a097aa6b684e | 70aa3b9b80a42930234315f335ca7ab06e87c15d | /chapter6/code/vgg.py | 82c411216bb94b89000d79007c91b9a3edd8525e | [
"Apache-2.0"
] | permissive | gvenus/BookSource | c0e6c4fbbf5bc69d3dd2bf437f3fdfa734b83234 | f18fd11f64ac5b400175a0d80a6dd4a393476673 | refs/heads/master | 2020-05-27T06:14:46.789134 | 2018-10-08T11:26:46 | 2018-10-08T11:26:46 | 188,516,561 | 1 | 0 | null | 2019-05-25T03:37:08 | 2019-05-25T03:37:08 | null | UTF-8 | Python | false | false | 1,691 | py | # coding:utf-8
import paddle.v2 as paddle
# ***********************定义VGG卷积神经网络模型***************************************
def vgg_bn_drop(datadim, type_size):
image = paddle.layer.data(name="image",
type=paddle.data_type.dense_vector(datadim))
def conv_block(ipt, num_filter, group... | [
"yeyupiaoling@foxmail.com"
] | yeyupiaoling@foxmail.com |
6b00caf4c7ffc8ff1fbd1bd7e0184ef186d20125 | 7a004d2b4508004e40fac8981e38f160d7a6f263 | /cn.fc/py/T4310.格兰赛尔.py | 2073ac4d61028e263b6b687f279b4befa491154b | [] | no_license | LastSongz/SoraVoiceScripts | 0cd1dd6a36eccdf00bd772ceb6d1cfd73b7ab8cd | 35e465669571e562aa78fe8524b6f69c6f14f000 | refs/heads/master | 2020-06-16T05:24:11.381802 | 2019-06-12T11:55:03 | 2019-06-12T11:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90,814 | py | from ED6ScenarioHelper import *
def main():
# 格兰赛尔
CreateScenaFile(
FileName = 'T4310 ._SN',
MapName = 'Grancel',
Location = 'T4310.x',
MapIndex = 1,
MapDefaultBGM = "ed60089",
Flags = 0,
... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
c1f48344496f1629bed80011ff2628c78bb13632 | 2902526147f807514560a963b49a028b4dacd1a1 | /models/conceptmap_tests.py | 4afaf16f92daf99b1666c4c8e5e4ef9ad5b2c507 | [] | no_license | Healthedata1/R4Pyfhir_models | abc8cb4bc3545a9385699c7c1cb7f67d494531f8 | 06472663dfdd4cb0856838d73c5460aa95806467 | refs/heads/master | 2020-04-16T08:39:25.202315 | 2019-01-12T20:23:41 | 2019-01-12T20:23:41 | 165,432,352 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,349 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.6.0-bd605d07 on 2018-12-23.
# 2018, SMART Health IT.
import os
import io
import unittest
import json
from . import conceptmap
from .fhirdate import FHIRDate
class ConceptMapTests(unittest.TestCase):
def instantiate_from(self, filename):
... | [
"ehaas@healthedatainc.com"
] | ehaas@healthedatainc.com |
1be3f37b927eb931b4e39d39885b1e9c66cc025f | d9a45783aa0dc1fd7528b57fbe73bfd3f1a277cd | /08. Exams/Mid Exam - 2 November 2019 Group 2/venv/Scripts/pip-script.py | 6e6f746c1433b351df37825d7f2fb3e2f75ed566 | [] | no_license | miaviles/Python-Fundamentals | 630b9553cbe768b344e199f890e91a5a41d5e141 | 9d6ab06fe9fbdc181bc7871f18447708cb8a33fe | refs/heads/master | 2022-08-22T19:15:18.423296 | 2020-05-25T17:53:16 | 2020-05-25T17:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!"D:\User\Desktop\PythonProjects\Exams\Mid Exam - 2 November 2019 Group 2\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scr... | [
"rossavelrs@yahoo.com"
] | rossavelrs@yahoo.com |
ac5de98114ba10d946ab377a66b11b5ea13312d7 | 6e1c0e2e6713af19d5d3c05b432c908137b62a7a | /riboviria/mqtt-ping.py | ebf838f1ad9e9912ee6284847c868b1074b0a737 | [
"Apache-2.0"
] | permissive | craigderington/westnile | 75e81158b2e6494c2717edb1c9046a9461885297 | 0dbc496dfda816cf85b50ea590fa5e693b735c7e | refs/heads/master | 2022-12-13T01:06:57.751396 | 2021-04-08T22:37:28 | 2021-04-08T22:37:28 | 205,703,695 | 0 | 0 | Apache-2.0 | 2022-12-08T06:06:07 | 2019-09-01T16:34:02 | Python | UTF-8 | Python | false | false | 5,948 | py | #! c:\python34\python.exe
#!/usr/bin/env python
##demo code provided by Steve Cope at www.steves-internet-guide.com
##email steve@steves-internet-guide.com
##Free to use for any purpose
##If you like and use this code you can
##buy me a drink here https://www.paypal.me/StepenCope
"""
mqtt pinger
"""
import pa... | [
"craig@craigderington.me"
] | craig@craigderington.me |
6a6fbc3b7e6a3a9760a73b117d20d87c3e9de4df | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000147.py | e8bd4521a04948dde809492ba35369e65d1ee11b | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
401203770cc2f93e7faaa29cf9e1fd36cbbaa32f | 6e373b40393fb56be4437c37b9bfd218841333a8 | /Level_18/Level_3/Level_3/asgi.py | f8742930a072809c0359d740818761b659f2518a | [] | no_license | mahto4you/Django-Framework | 6e56ac21fc76b6d0352f004a5969f9d4331defe4 | ee38453d9eceea93e2c5f3cb6895eb0dce24dc2b | refs/heads/master | 2023-01-22T01:39:21.734613 | 2020-12-04T03:01:17 | 2020-12-04T03:01:17 | 318,383,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for Level_3 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('DJANGO_SETTI... | [
"mahto4you@gmail.com"
] | mahto4you@gmail.com |
136d4440722f6be8b2f774e356379319276d55fb | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ds_read/trust_list.py | d26d454ed09c7e02a796d81fb15423168bae8639 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import read_no_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ds/describe-trusts.html
if __name__ == '__main__':... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
a167b927b1efb642f9bccd4b282cf263379f6776 | 395e06560c7b794a965add40c586684cb0b4e59c | /terrascript/data/cobbler.py | f0cc4d039084639e80cae2575f494d24f08893e8 | [
"BSD-2-Clause",
"Python-2.0"
] | permissive | alanyee/python-terrascript | f01edef3f6e21e5b18bc3295efef1657be17e3ca | e880e7650a7c3a88603d5429dafbacd28cd26c7e | refs/heads/develop | 2023-03-09T07:33:32.560816 | 2020-09-21T07:11:09 | 2020-09-21T07:11:09 | 300,696,024 | 0 | 0 | BSD-2-Clause | 2021-02-18T00:33:30 | 2020-10-02T17:57:18 | null | UTF-8 | Python | false | false | 45 | py | # terrascript/data/cobbler.py
__all__ = []
| [
"markus@juenemann.net"
] | markus@juenemann.net |
4f39da7e6a56aec71dd90546a3eaa8dd922c328a | 3d76e2e4e1abc66ab0d55e9fe878da12fd6255ab | /rhinoscripts/GetMap.py | f117e93c148239aaf8b3e56a99d7409bc6443b1c | [] | no_license | localcode/localcode | f863aaefa3e0ef25862be05c8ec2bd935805775e | 3089aee227d257adc856021a4e1eb678d9527f50 | refs/heads/master | 2021-01-22T11:38:36.801103 | 2011-12-07T20:52:09 | 2011-12-07T20:52:09 | 2,935,478 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | # Written by Lorenz Lachauer, 28.6.2011
# License: CC-BY-NC-SA
# eat-a-bug.blogspot.com
# This script imports a static map form OpenStreetMaps,
# based on an adress entered by the user
import urllib,urllib2,time
import os, Rhino, scriptcontext
import rhinoscriptsyntax as rs
import re, socket, math
def... | [
"benjamin.j.golder@gmail.com"
] | benjamin.j.golder@gmail.com |
3f7d946761d3c6cbf9cd03516fc3dda61a38ef6e | ce7cba4a7faea3fdd3bfb7bd96e0bbb77042e091 | /tests/metadata/__init__.py | d4673f0bdd7f94be7e7a1fbf2dfb31db0728616b | [
"MIT"
] | permissive | pombredanne/cattrs | 02f74ce620b66140eb32c926207a72dc849c9947 | e99720dac0bc0843f1e037b27e712380d54332eb | refs/heads/master | 2021-09-22T15:19:30.657447 | 2021-09-20T07:11:23 | 2021-09-20T07:11:23 | 77,737,410 | 0 | 0 | MIT | 2021-06-06T08:17:25 | 2016-12-31T11:21:59 | Python | UTF-8 | Python | false | false | 18,398 | py | """Tests for metadata functionality."""
import sys
from collections import OrderedDict
from collections.abc import MutableSequence as AbcMutableSequence
from collections.abc import MutableSet as AbcMutableSet
from collections.abc import Sequence as AbcSequence
from collections.abc import Set as AbcSet
from dataclasses ... | [
"tinchester@gmail.com"
] | tinchester@gmail.com |
acf3731d1ba76d907697201fbe3d10aef30551e5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/9d7288f70414cd170901/snippet.py | 4ef0297206b75218d8477b5d7156f3ab7eb75bde | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 777 | py | #! /usr/bin/env python3
'''(1.196 x STE at 60 ms after the J-point in V3 in mm) + (0.059 x computerized QTc) - (0.326 x R-wave Amplitude in V4 in mm).
Use the calculator below. A value greater than 23.4 is quite sensitive and specific for LAD occlusion.
http://hqmeded-ecg.blogspot.com/2013/06/here-is-link-to-full-text-... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
8bdcc4f7cfa967553a81250d695dd32e60f6eb07 | 9e27f91194541eb36da07420efa53c5c417e8999 | /twilio/rest/pricing/v2/__init__.py | e41e349328afb7633a4ea4c2ed3e2fbcbf2f2b60 | [] | no_license | iosmichael/flask-admin-dashboard | 0eeab96add99430828306b691e012ac9beb957ea | 396d687fd9144d3b0ac04d8047ecf726f7c18fbd | refs/heads/master | 2020-03-24T05:55:42.200377 | 2018-09-17T20:33:42 | 2018-09-17T20:33:42 | 142,508,888 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from admin.twilio.base.version import Version
from admin.twilio.rest.pricing.v2.voice import VoiceList
class V2(Version):
def __init__(self, domain):
"""
Initialize the V2 versi... | [
"michaelliu@iresearch.com.cn"
] | michaelliu@iresearch.com.cn |
b6babe73387bcd92f6acd42b396184cb5ff20f3d | 6551ec86d1e3ea2cc1ad60e16fefe0e1759f3c0a | /d2go/data/gans.py | eaf28eb031399f16e15fd4436915c7786b24d324 | [
"Apache-2.0"
] | permissive | guowenbin90/d2go | b633b03cbfc17e9373f644f29519995503b13686 | bfc08c534859358a5ee87d1091e2b5d661c937e7 | refs/heads/main | 2023-08-18T01:39:42.906859 | 2021-10-16T01:36:50 | 2021-10-16T01:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,160 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""
This file contains utilities to load GANs datasets.
Similar to how COCO dataset is represented in Detectron2, a GANs dataset is represented
as a list of dicts, where each dict is in "standard dataset dict" format, which... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.