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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41ce20e169fcbe87426ff7cea186435b73c50ae0 | 9a05e1e8c950b091124d805ea70f24d2837b827c | /daydayup/cema_python/oneday/1_2change1.py | 550314a509fd5c9dc9babee41a9aed8f25204e44 | [] | no_license | fanzongpeng/mywork | 20676a9fe0e0599461a756ad194e4bd35aad4668 | aa6d044bbab3c0288de48888b2cc7dbd7785c91b | refs/heads/master | 2022-05-31T06:03:26.826914 | 2020-04-30T09:50:22 | 2020-04-30T09:50:22 | 257,189,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | my_str = "I love Python"
my_list = ["python", "java", "lanuage", "age"]
my_list2 = [24, 12, 2.3, 9.7]
my_tuple = ("python", 33, "java", 8.8)
my_dict = {"name": "linda", "age": 88}
my_list1 = ['a', 'a', 1, 1, 2, 3]
my_set = {1, 2, 3}
a = 10
print(type(a))
# 强制转换从int到str
a1 = str(a)
print(type(a1))
# str 转 int
print(typ... | [
"18210023228.com"
] | 18210023228.com |
7736b0d581aa5a48107b2970929e39106a017b0b | 7ec92031e28b1a92a10a9f252f99211663e0d8f9 | /src/py/l0404.py | f10c6fd9600478f89fa456420ae59688baa37fea | [] | no_license | SS4G/leetcode_2020 | 4eb63f6afd59f84e44334e78cb06c7b33a89dd15 | 9a9a8fc779e7456db77f88e7dcdcc1f5cae92c62 | refs/heads/master | 2020-06-29T17:12:39.488350 | 2020-02-08T01:07:08 | 2020-02-08T01:07:08 | 200,575,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | class Solution(object):
def isLeaf(self, root):
if root is None:
return False
return root.left is None and root.right is None
def helper(self, root, leftSum):
if root is None or self.isLeaf(root):
return
if self.isLeaf(root.left):
leftSum[0] +... | [
"zihengs@opera.com"
] | zihengs@opera.com |
e3e74dbde5aa2e2be661c09d14954b7a98652ccb | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_309/ch95_2019_11_27_18_50_15_020676.py | 2000a50c89ba9a929a27109ee30d898bc4254ee3 | [] | 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 | 158 | py | def mais_populoso(dic):
k = dic.keys()
for v[1],v[4] in dic.values():
soma = v[1] + v[4]
maispop[k] = max(soma)
return k
| [
"you@example.com"
] | you@example.com |
8fbf8a3b8b70759cf3a8cf7354914b9a62690737 | bdc7a4a56a1bfba53e897fc832e428f4600cd896 | /scripts/standoffstats.py | 39557be95f4f2bfa5d577a5d554df6b8a99cc8ac | [
"MIT"
] | permissive | spyysalo/consensus-pipeline | 4533fe92ec225c11fbfa6bce3b8ad6510b234b7c | 24cb58f2a28a49c22cd6847734228485f045b8cc | refs/heads/master | 2023-03-11T06:01:54.352460 | 2023-02-24T11:38:24 | 2023-02-24T11:38:24 | 179,457,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,080 | py | #!/usr/bin/env python3
import sys
import os
from collections import defaultdict, OrderedDict, Counter
from logging import info, warning
from standoff import Textbound, Normalization
try:
import sqlitedict
except ImportError:
error('failed to import sqlitedict, try `pip3 install sqlitedict`')
raise
# N... | [
"sampo.pyysalo@gmail.com"
] | sampo.pyysalo@gmail.com |
f80268864677608dbee3b2b7ecd1bb4ba1dc5af0 | 5bce1118b13289308d23510f323c79aa972ddc27 | /src/modules/darknight/darknightHelper.py | 603a5835a327eb7035ca5a911afd98adc4c90f14 | [] | no_license | anupsl/pyApps | 62b64b90723de32684bbabee402220317a4fe817 | 2651d502c366b87449a0c977a9876cc32521c57c | refs/heads/master | 2022-07-03T05:49:12.828630 | 2020-05-10T17:25:26 | 2020-05-10T17:25:26 | 255,157,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | import traceback,random, pymongo
from datetime import datetime
from src.utilities.logger import Logger
from src.Constant.constant import constant
from src.modules.darknight.darknightThrift import DarknightThrift
from src.modules.darknight.darknightObject import DarknightObject
from src.utilities.utils import Utils
fro... | [
"anup@CAP-LAP-450.local"
] | anup@CAP-LAP-450.local |
c4d24445005777c0176e500440d00d9c055d1285 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/Zhone.py | b7c88847cc326607084f9f5d852960f0444cc4eb | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 15,859 | py | #
# PySNMP MIB module Zhone (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Zhone
# Produced by pysmi-0.3.4 at Mon Apr 29 18:11:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
46d063dfbd564d8ef90b175f6753adb82a364ec0 | fc3d16b7a195652d4276d3112c8be856bd908f9a | /news_app/source_class.py | 9c72380aa29892333fd4d9981523f34d8ab838cd | [
"MIT"
] | permissive | petermirithu/pyra-s_news_centre | eb0f1735a62763a86c289facabc3985c1398ad6c | c8726f2db2d007b5584685a969d66df41be50ba5 | refs/heads/master | 2021-06-30T22:28:51.639786 | 2019-11-18T14:27:03 | 2019-11-18T14:27:03 | 221,890,761 | 0 | 0 | MIT | 2021-03-20T02:11:35 | 2019-11-15T09:31:49 | Python | UTF-8 | Python | false | false | 212 | py | class Source:
'''
source class to define how news sources look
'''
def __init__(self,id,name,language,country):
self.id=id
self.name=name
self.language=language
self.country=country
| [
"pyra_m.k@yahoo.com"
] | pyra_m.k@yahoo.com |
f2893378baeddcab8d17ddf72b21c3ed6cd59617 | 2a70521e76564ff14c63100adaecc87fee40f8f4 | /profiles/views.py | c6213b66adf442c56a31d9681a5f5d72b15c6348 | [] | no_license | Telling/bornhack-website | 6f6bef9ea632c675b1a7e10dae69acd00def0d42 | 18a9ae27867c046a2b9fac46aa886c2788b139e7 | refs/heads/master | 2020-12-01T11:48:34.633206 | 2016-08-03T12:06:46 | 2016-08-03T12:06:46 | 64,944,894 | 1 | 0 | null | 2016-08-04T15:14:34 | 2016-08-04T15:14:34 | null | UTF-8 | Python | false | false | 1,147 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import DetailView, UpdateView
from django.core.urlresolvers import reverse_lazy
from django.contrib import messages
from . import models, forms
class ProfileDetail(LoginRequiredMixin, DetailView):
model = models.Profile
def... | [
"valberg@orn.li"
] | valberg@orn.li |
2d103b89fc1095dd48685e70e5488433471a6d7c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03671/s288171235.py | 5a407677fafb20f7d42eccf5001ae17587259711 | [] | 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 | 166 | py | a,b,c=map(int,input().split())
if a<b<c:
print(a+b)
elif a<c<b:
print(a+c)
elif b<a<c:
print(b+a)
elif b<c<a:
print(b+c)
elif c<a<b:
print(c+a)
else:
print(c+b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1f4dc6b15a35654f4fd7cbffe57fb09b08ec4292 | 565ae8473c545c43341f5511b9633e97f0e4da8b | /course3_python_advanced/Advanced EXAM/PRACTICE/2020.02.18 - 18 feb - 300/02_book_worm_ab_40%-100%.py | 5ffe46f0b9e7b363acc9cf6207cf7537dfacd5ae | [] | no_license | andriiburka/Web-Development-with-Python | 3934c1a3945bd983ab39d38b97f1af16fe784207 | b6927653a2c6a9cc10a8768395233e347624c49a | refs/heads/master | 2022-11-21T21:42:04.898254 | 2020-07-29T22:59:56 | 2020-07-29T22:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | from collections import deque
word = input()
matrix = deque([list(map(str, "".join(input()))) for row in range(int(input()))])
p_position = [[row, col] for row in range(len(matrix)) for col in range(len(matrix[row])) if matrix[row][col] == 'P']
r, c = p_position[0]
for i in range(int(input())):
cmd = input()
... | [
"andriiburka@gmail.com"
] | andriiburka@gmail.com |
2f92923a11d152fe876581c9aa12ada7aca0867d | 0309bd25cdd8e89297f507be202634b07f5f6e85 | /LeetCode/Easy/Python3/tests/test_findpivotindex.py | 58071d2723b3c74b2a0b101e3193af71ebb68f08 | [] | no_license | AmyShackles/algo-practice | 10fc4a5c5926232ff2b0aed6183cec9f21bf15f3 | 876e3be57357651348465f70ab312d4ac98d667a | refs/heads/main | 2023-04-03T08:29:33.725236 | 2021-04-13T19:20:18 | 2021-04-13T19:20:18 | 338,672,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import unittest
from Python3.findpivotindex import Solution
class TestpivotIndex(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_1(self):
# For sanity checking:
# Input: nums = [1,7,3,6,5,6]
# Output: 3
self.assertEqual(Soluti... | [
"amyshackles@gmail.com"
] | amyshackles@gmail.com |
1323a5fcd18009582e6eb70f125a050d19ab596d | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/934.py | 5bd1ce553337e88919cc9f3a7dad7be6a3849492 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 493 | py | import collections
from collections import Counter
def word_count(word):
cnt = Counter()
temp = []
tempStr = ""
tempLen = len(word)
tempCount = 0
print tempLen
for l in word:
if l != " " and l != "\n":
tempStr += l
print tempStr
else:
if tempStr != "":
temp.append(tempStr)
te... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
6139dcf79ba85c68ed2f324e8a92a94503733e64 | 5fc8864b934ae90b438375b4c705ed2d350d4afc | /sheep/utils/qiniu/cache.py | 4f26ff0ef542572342e77f5ed77515efe23546f6 | [] | no_license | L-BraveDog/sheep | 71a1aabfc756a8458055c52936d2713f9aab24c8 | 4d6eda7c6358571d6680a1f2a2949ee3ac4220e7 | refs/heads/master | 2023-07-29T07:43:24.164143 | 2020-08-12T11:33:05 | 2020-08-12T11:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | # -*- coding: utf-8 -*-
# author:CY
# datetime:2020/7/22 15:48
import json
import hashlib
from rest_framework.response import Response
from rest_framework_extensions.cache.decorators import CacheResponse
class QiNiuCacheResponse(CacheResponse):
def process_cache_response(self,
vie... | [
"907031027@qq.com"
] | 907031027@qq.com |
12f32d4f3f4bb1de9257cc030b7cddf990cc172f | 500bca3e22bd0c30c79b74918e9847742b3c428e | /cli/jobs/pipelines/add-column-and-word-count-using-spark/src/add_greeting_column.py | 2afc93333d7b05cbae3195d47f1536e7fd2d811b | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 474 | py | from pyspark.sql import SparkSession
from pyspark.sql.functions import udf
import argparse
from utils import util
spark = SparkSession.builder.getOrCreate()
sc = spark.sparkContext
parser = argparse.ArgumentParser()
parser.add_argument("--file_input")
args = parser.parse_args()
greeting_udf = udf(util.greeting)
df ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9a13e896e1e705299c0e6cce39a6869ed0000f39 | 647b5eb4bdcd8cbc903a8576cf50385219905a00 | /euler/python/35.py | d2011060dfb1f11b21f1171e68d13ee14ff79cb1 | [] | no_license | kradalby/programming-tasks | 149ef4a62903a940c7297196e6984e17dee28011 | 96685634a8fea87cacda3e75be377383ac67a0ef | refs/heads/master | 2021-04-29T10:17:21.707426 | 2020-01-09T17:16:52 | 2020-01-09T17:16:52 | 77,645,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from math import floor, sqrt
def is_prime(n):
if n == 2:
return True
elif n == 1:
return False
elif n < 4:
return True
elif n % 2 == 0:
return False
elif n < 9:
return True
elif n % 3 == 0:
return False
else:
r = floor(sqrt(n))
... | [
"kradalby@kradalby.no"
] | kradalby@kradalby.no |
eb182742ba237c0829e394079c6126094edb1ed2 | 119a85a388fe436361530fbb47932e704d749557 | /PEAK-0.5a4dev_r2085/build/lib.macosx-10.6-x86_64-2.7/peak/metamodels/UML13/model/Behavioral_Elements/Use_Cases.py | efb8d979100cb09f4d8b6afecba259544f901264 | [
"Python-2.0"
] | permissive | chrisrgunn/cs156project | 014d5b05c6bf0e08ab8bd0dea525057d0e65b9a7 | e5414a37f9793c8b0674695b948482b559b18ea6 | refs/heads/master | 2021-01-19T14:09:49.046539 | 2017-05-24T02:10:29 | 2017-05-24T02:10:29 | 88,128,762 | 0 | 2 | null | 2017-05-04T23:49:09 | 2017-04-13T05:36:10 | Python | UTF-8 | Python | false | false | 3,294 | py | # ------------------------------------------------------------------------------
# Package: peak.metamodels.UML13.model.Behavioral_Elements.Use_Cases
# File: peak\metamodels\UML13\model\Behavioral_Elements\Use_Cases.py
# ------------------------------------------------------------------------------
from peak.util.i... | [
"chrisrgunn@gmail.com"
] | chrisrgunn@gmail.com |
fed5d4acae7285a1eebaad8d868f82fae5a50334 | 4b4df51041551c9a855468ddf1d5004a988f59a2 | /leetcode_python/Bit_Manipulation/binary-number-with-alternating-bits.py | 54a6df3e0278a36e092633aa43846cee89ba652e | [] | no_license | yennanliu/CS_basics | 99b7ad3ef6817f04881d6a1993ec634f81525596 | 035ef08434fa1ca781a6fb2f9eed3538b7d20c02 | refs/heads/master | 2023-09-03T13:42:26.611712 | 2023-09-03T12:46:08 | 2023-09-03T12:46:08 | 66,194,791 | 64 | 40 | null | 2022-08-20T09:44:48 | 2016-08-21T11:11:35 | Python | UTF-8 | Python | false | false | 1,643 | py | # V0
# V1
# https://blog.csdn.net/fuxuemingzhu/article/details/79089937
# IDEA : GREEDY
# TO CHECK IF 0 ALWAYS NEXT/BEFORE 1 (1 ALWAYS NEXT/BEFORE 0)
# IDEA : ALL FUN IN PYTHON
# https://www.programiz.com/python-programming/methods/built-in/all
# Return Value from all()
# The all() method returns:
# True - If all ... | [
"f339339@gmail.com"
] | f339339@gmail.com |
614ff2ef1cd74d9d05909ec0c30ad60bffdc6e0e | 30291450c064006f1bd9bc5c432b8a869e2166bb | /tags/1.3/zhpy/info.py | 11b9f7e04ad0e89c86cb8dab2c053353bdebcd40 | [
"MIT"
] | permissive | BGCX261/zhpy-svn-to-git | 96f04e2f72c61671324219a85939137ff5cd9ef6 | 70da095393fe13543433ab5115cb6c1a519d64b0 | refs/heads/master | 2021-01-22T22:49:04.898314 | 2015-08-25T15:44:00 | 2015-08-25T15:44:00 | 41,587,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | """
zhpy package and plugin information
This is the MIT license:
http://www.opensource.org/licenses/mit-license.php
Copyright (c) 2007 Fred Lin and contributors. zhpy is a trademark of Fred Lin.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentatio... | [
"you@example.com"
] | you@example.com |
8a01907224c2e522b023d5e25c32cc5d0c980401 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/pyinstaller/PyInstaller/hooks/pre_find_module_path/hook-distutils.py | 501afb283c000e166bbb745cdda79f4e8589c51b | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a57a0c2455f448f73674516e52b7af5089c4865777cbdaec011240a51f08272c
size 1744
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
e13c7088fa38705604685a9e8160543ba1c225f3 | e039a739bb0580befef599bb71c72e64838b9924 | /Exp_Hyperparams/run_dSVDD.py | ff99d808a0a13d4aa4511e1c18879c79e15b83aa | [] | no_license | ddatta-DAC/AD_7 | ab16785f543b8390731cab3195921ca6cbbc4f0a | e894b01712e6ad66f6b5715fcb0afa94a49ccf94 | refs/heads/master | 2023-04-16T15:07:09.274543 | 2021-04-27T16:12:40 | 2021-04-27T16:12:40 | 290,634,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,294 | py | import torch
import random
import numpy as np
import os
import sys
import pandas as pd
sys.path.append('../../../.')
sys.path.append('../../.')
sys.path.append('../')
import yaml
from tqdm import tqdm
import argparse
from joblib import Parallel, delayed
try:
from .deepsvdd import deepsvdd as deepsvdd
except:
... | [
"ddatta@vt.edu"
] | ddatta@vt.edu |
df961abfa16708fa9957e155b7ca530bd8114e97 | 79bb7105223895235263fd391906144f9f9645fd | /python/framework/ops_test.py | 859f6c24a322a6864de3635c1e792c81200ef965 | [] | no_license | ml-lab/imcl-tensorflow | f863a81bfebe91af7919fb45036aa05304fd7cda | 54ab3ec2e32087ce70ecae2f36b56a8a92f2ba89 | refs/heads/master | 2021-01-22T06:37:18.129405 | 2016-06-08T15:53:28 | 2016-06-08T15:53:28 | 63,518,098 | 1 | 2 | null | 2016-07-17T06:29:14 | 2016-07-17T06:29:13 | null | UTF-8 | Python | false | false | 57,911 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"mrlittlezhu@gmail.com"
] | mrlittlezhu@gmail.com |
d6e8f0d5efead89c44dddb8d6ccd4759b14870c7 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/6df5a87840c9f271ab86792449dc945cadc82f12-<get>-bug.py | 8034b8985edb4a0b14bb3eca635326fdb5537a2a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py |
def get(self, request, organization, integration_id):
try:
integration = Integration.objects.get(organizations=organization, id=integration_id, provider='github')
except Integration.DoesNotExist:
return Response(status=404)
field = request.GET.get('field')
query = request.GET.get('quer... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
67ec96965335573a4257c08e53f071a3e550aafc | 3a38e0ae9eef4a00ff7206c85c0366be141c73b3 | /edu_smart_server/threads/migrations/0001_initial.py | d038c835c43b4a1311266371e25cd64daf0efeb6 | [] | no_license | CodeNicely/edusmart_final | a32dac680b6343f4822624394b06db334e51ff61 | 64b2d14abbbf94e396f3d11529de437cf7561cad | refs/heads/master | 2021-01-09T06:06:14.422656 | 2017-02-05T08:29:18 | 2017-02-05T08:29:18 | 80,914,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-02-05 00:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('classes', '0001_initial'),
('depar... | [
"aditya999123@gmail.com"
] | aditya999123@gmail.com |
15f39983e23350dc4c36b142edf378d99df662ba | d5820207ff265362743a1a2d833fdaf5187cc308 | /src/cern/jpymad/tools_optics.py | eee53b56036711ab319657afd127c960e90e24fb | [
"Apache-2.0"
] | permissive | pymad/jpymad | 54925b14e2fa34b07b17999d3ca05934f4b2309b | 6372ada76de400ed949ff5161a30699a7adedaba | refs/heads/master | 2021-01-10T20:47:01.991269 | 2014-06-28T14:08:57 | 2014-06-28T14:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | #-------------------------------------------------------------------------------
# This file is part of PyMad.
#
# Copyright (c) 2011, CERN. 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... | [
"t_glaessle@gmx.de"
] | t_glaessle@gmx.de |
9518dbd5c0b43537d56acbc0c6d1d96bd5c035b6 | d79c978cc60afc6ffae1c7fc7730ed4d1e2eb77a | /app.py | 7cf24266880151663a0307c165dd5c5bd3506047 | [] | no_license | qhuydtvt/tk-vids | 9ea5af7ea81d735c9baf5830a493ce879ac6d735 | 71225cea0bf67bf4b843b4fb6aa1641bfc9ad10b | refs/heads/master | 2021-09-13T05:48:24.842104 | 2018-04-25T16:41:12 | 2018-04-25T16:41:12 | 105,641,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | from flask import Flask, render_template, request
from flask_cors import CORS
from urllib.request import urlopen
import json
import mlab
from models.audio import Audio
from flask_restful import Resource, Api
app = Flask(__name__)
cors = CORS(app, resources={r'/api/*': {"origins": "*"}})
api = Api(app)
mlab.connect()
... | [
"qhuydtvt@gmail.com"
] | qhuydtvt@gmail.com |
17b962c6c281ee6f291f1520e6448f9c088dd12e | 3d7dece5254e42059e8a2cb1e72b295460284983 | /components/py_engine/micropython-lib/micropython/umqtt.robust/setup.py | f0f23ed8cc7dc9a25d7aae0acd27d4cfe92f24ab | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"Python-2.0"
] | permissive | windowxia/AliOS-Things | 172639d6e0d2b2e2e816bce757cf95e89187c132 | a99f20706f9c666903a12a205edce13263b1fadb | refs/heads/master | 2023-09-01T06:03:57.853390 | 2023-07-04T05:51:52 | 2023-07-04T06:49:36 | 149,751,180 | 0 | 0 | Apache-2.0 | 2018-09-21T10:56:09 | 2018-09-21T10:56:08 | null | UTF-8 | Python | false | false | 719 | py | import sys
# Remove current dir from sys.path, otherwise setuptools will peek up our
# module instead of system's.
sys.path.pop(0)
from setuptools import setup
sys.path.append("..")
import sdist_upip
setup(
name="micropython-umqtt.robust",
version="1.0.1",
description='Lightweight MQTT client for MicroPy... | [
"yilu.myl@alibaba-inc.com"
] | yilu.myl@alibaba-inc.com |
6e99309c21dc75f92af4fbcfeb21e488e84a0537 | 228fd55571b31cdcf54ef42a7338ca42ab399588 | /battery_client.py | 0e885f3c27579ae3896668884b5f49661a95bf00 | [] | no_license | benthomasson/ev3-play | 12aae6f846be11ad3fe029148eb084edccd7b991 | d416a0fd2eebc1a13bef601ccfe98bcf0c17ef61 | refs/heads/master | 2022-09-04T00:37:10.463877 | 2022-08-22T12:50:35 | 2022-08-22T12:50:35 | 253,309,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Echo client program
import socket
import json
import psutil
import time
def send_message(s, msg_type, message_data):
message = json.dumps([msg_type, message_data])
length = len(message)
s.sendall(f'{length:04x}'.encode())
s.sendall(message.encode())
HOST... | [
"ben.thomasson@gmail.com"
] | ben.thomasson@gmail.com |
8059eea3c4fe11d53b16161e256869544a1f7b8a | eafabc5e332f5fc0153e166d992ac0711cf90cd6 | /BOJ/2644/2644번(촌수계산).py | 3753969c178fbd1055026ee542090ce391404eee | [] | no_license | PARKINHYO/Algorithm | 96038ce21bd9f66208af0886208ef6ed925c23e2 | 0ed8687fe971fc2b05e2f50f62c0d0e47c368a6c | refs/heads/master | 2021-12-23T23:48:25.247979 | 2021-08-20T01:52:50 | 2021-08-20T01:52:50 | 196,219,508 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | from collections import defaultdict
from sys import stdin
class Graph():
def __init__(self):
self.graph = defaultdict(list)
def addEdge(self, u, v):
self.graph[u].append(v)
self.graph[v].append(u)
def BFS(self, s, v):
visited = [False] * 105
queue = []
r... | [
"inhyopark122@gmail.com"
] | inhyopark122@gmail.com |
a8abd28e470a50db39911b213d6efe1374a7962b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/fbs_1148+444/sdB_FBS_1148+444_coadd.py | 0254387ab7054d564d646cf529283b7c20657047 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[177.84925,44.212194], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_FBS_1148+444/sdB_FBS_1148+444_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sd... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
36055e4e753fdcc3fdb4cb14e6b24e2dc38ddaa7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2535/48090/315890.py | c1bf75e0cf13230b181db8b8e4608c8c69acc14b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | arr=eval(input())
class Solution:
def maxBlockToSorted(self, arr):
res, max_val = 0, arr[0]
for i, num in enumerate(arr):
if num > max_val:
max_val = num
if max_val == i:
res += 1
return res
c=Solution()
print(c.maxBlockToSorted(arr... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
747ecb88556de97d63232ef35d142e151af9ca44 | 50aa9303450e06d1172f78c0478a58e5113d9bb9 | /988 arranging-coions.py | 69f2c7dd8cf72e28b804be49986218f4e6b11bce | [] | no_license | zlldt/LintCode | 6e1041b78a301651378833caf7fd7db9ce112ec5 | e5012161131a8c8557bdb0296980b2a0b712c620 | refs/heads/master | 2021-06-27T05:24:08.471072 | 2019-03-02T12:56:26 | 2019-03-02T12:56:26 | 105,424,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | class Solution:
"""
@param n: a non-negative integer
@return: the total number of full staircase rows that can be formed
"""
def arrangeCoins(self, n):
# Write your code here
start = 1
sum = 1
if n==1:
return 1
while sum<n:
start += 1
... | [
"noreply@github.com"
] | zlldt.noreply@github.com |
88ffbba45ab17a0c77184fb4c8d033d5dbe545b5 | a22f0ae4b4674f29449cc7f5aa9bd335e06c12eb | /MPDA_cfg_txt.py | 9403f2b34016a9386b4fbcf3bc4b808488df17d7 | [] | no_license | Tesla2fox/MPDA_OPERATION | e2a4a0a49e7d8a2bacaca8191cb9a5b58e74b06a | c33784a28f49b8e7333b74b86191d958e66ff021 | refs/heads/master | 2020-03-13T11:34:11.117054 | 2018-04-26T05:15:51 | 2018-04-26T05:15:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,810 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 30 09:01:23 2018
@author: robot
"""
#import classDefine
import classDefine as cd
import plotly.plotly as py
import plotly.graph_objs as go
import math
import plotly
import copy
import random
import time
import datetime
import subprocess
#__import__ ('classDefine')
#py... | [
"stef_leon_gao@outlook.com"
] | stef_leon_gao@outlook.com |
6376219e886f308f530668c9f2fa4f1282fb10d8 | f8d7a3ef65a445a13195f4f2c80a232d40edc271 | /fileupload/urls.py | 84b8774454c63e8adab2006dbe5167c240e69ba0 | [
"Apache-2.0"
] | permissive | neha-webllisto/file_upload | c954cc00da916364e969d68a6ef6e5b4fe898d3e | 877e9da88677e9ad73f3b2f85dcfab7dbdf49e45 | refs/heads/master | 2020-04-14T16:22:16.825108 | 2019-01-03T09:19:12 | 2019-01-03T09:19:12 | 163,950,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | """fileupload URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"mansi@webllisto.com"
] | mansi@webllisto.com |
c2613d4de725de56bbbf01deaaf1c35c04082806 | 36afa271f080459adf1014cd23f4be9f954dfee6 | /Crawler/Course/第八章:scrapy框架/fbsPro/fbsPro/middlewares.py | 8bdbfa2bca493aa2de753b574c117a9d86a9738a | [] | no_license | King-Of-Game/Python | b69186a7574ce1c0b7097207cfe9a2eb38a90bc0 | 643b9fd22efd78f6679735f23432943a57b5f5bb | refs/heads/master | 2023-05-25T05:35:14.473114 | 2021-10-24T12:52:21 | 2021-10-24T12:52:21 | 151,251,434 | 3 | 0 | null | 2023-05-01T20:51:50 | 2018-10-02T12:34:04 | HTML | UTF-8 | Python | false | false | 3,597 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class FbsproSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ... | [
"871437338@qq.com"
] | 871437338@qq.com |
8d02b656752897966fe1cd8292a3a66a92ed3bff | 2447effa4ea6ae298c826967cc572583f6bde5d9 | /contacts/models.py | ecf15cf1cb0e166529c5044bf20154da3f8f2e84 | [] | no_license | lydia-karungi/Ruforum | fc317d74092c9d77903fd5a96b46c296fee9b2a7 | d1d6714fbac47a357bc51f0867f577b98e1bbf62 | refs/heads/main | 2023-02-06T04:10:51.032368 | 2020-12-23T09:11:33 | 2020-12-23T09:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,422 | py | from django.db import models
from django.contrib import auth
from django.contrib.auth.models import Group, Permission
from django.core.exceptions import PermissionDenied
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
from django.utils import timezone
from django.utils.translati... | [
"karungilydia43@gmail.com"
] | karungilydia43@gmail.com |
fe95e473675f636834b33370b5a053d90ad799da | c7846ee0828539c2a2019928c1cbf3abd35665bf | /1861.py | 5591737795d0cc329e37af61c882a6104f49553c | [] | no_license | whiteblue0/sw_problems | 10476601c8d6d68d42e2f30af87fcde1e5dbbcc5 | 1cefc6236cccc20477bf4eadb458a0fd06b09126 | refs/heads/master | 2020-06-20T10:44:57.463275 | 2020-05-03T07:27:57 | 2020-05-03T07:27:57 | 197,098,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # 우,하,좌,상
dx = [1,0,-1,0]
dy = [0,1,0,-1]
def ispass(y,x):
return 0<=y<N and 0<=x<N
def findpath(sy,sx):
global result
que =[]
cnt = 1
# visited[sy][sx] = 1
que.append((sy,sx))
while que:
y,x = que.pop(0)
for i in range(4):
ny,nx = y+dy[i], x+dx[i]
... | [
"21port@naver.com"
] | 21port@naver.com |
6b25a67d62f342c36269ccdf5ef1219aa9acdecf | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/85131b28f01c2734886292b5f908bd346db627d78ffb686c086516a89e3ff520/xml/parsers/expat/errors.py | e407b956b7e12afd5a9207878324138d166d668f | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,558 | py | # encoding: utf-8
# module xml.parsers.expat.errors calls itself pyexpat.errors
# from C:\Users\Doly\Anaconda3\lib\site-packages\numba\jitclass\_box.cp37-win_amd64.pyd
# by generator 1.147
""" Constants used to describe error conditions. """
# no imports
# Variables with simple values
XML_ERROR_ABORTED = 'parsing abo... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
60f18d36c09eaf99c386081dad6ff20c40293d18 | 66c94b5e427c0b8f8f7101de9c17af1423f00682 | /keras2/keras66_3_hyper_lstm.py | b669f1052d34a3af94193a216b6ad0a57a9fccf6 | [] | no_license | NamkyuHan/bit_seoul | a34ea3c49666ee2183026e960e45092778643d55 | 3112eb576089cdf906c4f326337b4d2b5e5e4c29 | refs/heads/master | 2023-01-30T19:02:53.323592 | 2020-12-17T01:05:17 | 2020-12-17T01:05:17 | 311,277,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | import numpy as np
from tensorflow.keras.models import load_model, Sequential, Model
from tensorflow.keras.layers import Conv2D, Dense, MaxPooling2D, Flatten, Input, LSTM
from tensorflow.keras.datasets import mnist
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.layers import Dropout
####1.데이터
... | [
"rksh333@naver.com"
] | rksh333@naver.com |
d1f2e7077c1c1c2471d513266b67c1f5d7b0a264 | c1db0672199013000a2ce6328f6fe86776cbbacd | /hrmin.py | 8de3dcaa9f909a47a990713759ea2f54aa49d8dd | [] | no_license | swarnanjali/python-programes | 0db3aa10969ca2c3d925689e29ffa7f48dbc137e | aa08d67da9b2ac377335156796031cf40208bd3f | refs/heads/master | 2020-05-23T02:01:45.129247 | 2019-07-19T07:01:57 | 2019-07-19T07:01:57 | 186,594,991 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | a=int(input())
b=a/60
c=a%60
print(int(b),end=" ")
print(c)
| [
"noreply@github.com"
] | swarnanjali.noreply@github.com |
40d92d8d26105c813762bbaaf0ca6165692e5266 | 8993469765f9e504c388eeba2c940f40ec971cb7 | /labs1/24.py | da9f4f061d5748aadf5564408ee46328ed80785b | [] | no_license | Sens3ii/ICT2020 | 293f8df77aeaba66b33c08540e037365b18246a7 | c0f68680b13534bd5697a9f95fae9dc7e2ed4089 | refs/heads/master | 2023-02-25T17:51:55.459518 | 2021-02-03T09:27:53 | 2021-02-03T09:27:53 | 296,038,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | Days = int(input())
Hours = int(input())
Minutes = int(input())
Seconds =int(input())
print(Seconds+Minutes*60+Hours*60*60+Days+60*60*24,"sec")
| [
"noreply@github.com"
] | Sens3ii.noreply@github.com |
02bfe76934653f7d299dcb398b654b19e587b33e | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/fdm_materials/scripts/check_material_profiles.py | bad82e1ed75536a491b3ea2ab4a6e5b63c09cfcc | [
"CC0-1.0",
"GPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 3,103 | py | # This script is dedicated to the public domain under the terms of the CC0 license.
from collections import OrderedDict
import os
import sys
import re
class MaterialProfilesValidator:
def __init__(self, root_dir: str):
self._repo_dir = os.path.abspath(root_dir)
self._materials_dir = self._repo_d... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
b06374f5b30ecf289a54899c6656ebc17d0ebfad | 18a281c772550d174fc903f35f70e27ee09bb89a | /web/config/wsgi.py | 8d0b154dc4018687b0e7031b5f7a4890542fefe5 | [] | no_license | quinceleaf/implementing-webhooks | 60ef33091a7254a509965cc4cc4de635709f8ec4 | 1cebfc3cdabd85e503fbdb60f418321a906b83ad | refs/heads/main | 2023-07-11T01:20:23.156674 | 2021-08-06T03:54:13 | 2021-08-06T03:54:13 | 393,219,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | """
WSGI config for web project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"brian@quinceleaf.dev"
] | brian@quinceleaf.dev |
cfb0ba5f2f127c5af9c61326c3d79fe9574f9dd7 | 1760e87ada878d3d016b68eac4194701fada19d4 | /piGAN_lib/fid_evaluation.py | 82804971b482f250b54b48f9d505cd5926bca4ca | [
"MIT"
] | permissive | tonywork/CIPS-3D | 5fd04b56fafeb46e9f3396314dec1d6f302da740 | 9244193048c73f55270d2df28fb160f42d5953ad | refs/heads/main | 2023-08-26T04:52:40.484046 | 2021-11-01T06:17:12 | 2021-11-01T06:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | """
Contains code for logging approximate FID scores during training.
If you want to output ground-truth images from the training dataset, you can
run this file as a script.
"""
import os
import shutil
import torch
import copy
import argparse
from torchvision.utils import save_image
from pytorch_fid import fid_score
... | [
"zhoupengcv@sjtu.edu.cn"
] | zhoupengcv@sjtu.edu.cn |
c016c10d81333bd078fbdb4fbe5d3567e161c4d5 | ea285978bd60c8de8783a729effa7c92eeeb98e8 | /DBcm.py | 31cf80fdf2abed2c7b846332bf60a70b6e17c242 | [] | no_license | detalikota/website1 | 2426667ff8e838e0c4609a6694795c22d088a59d | 7eb75c52697ed7fbe77a2b5178117049bdd1bdd6 | refs/heads/master | 2023-01-11T16:03:52.456786 | 2020-11-02T19:20:04 | 2020-11-02T19:20:04 | 304,236,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import mysql.connector
class UseDatabase:
def __init__(self, config: dict) -> None:
self.configuration = config
def __enter__(self) -> 'Cursor':
self.conn = mysql.connector.connect(**self.configuration)
self.cursor = self.conn.cursor()
return self.cursor
def __exit__(self, ... | [
"detalikota@gmail.com"
] | detalikota@gmail.com |
ebe85d5a801812a0a216ab1b07e9a8219bd73772 | ee6183f60b9efd1ecb6c2ba3c364f2fe4c7b2292 | /src/kfg/version.py | 67d01bdcc8ff949ac8e85f4682d998bc553a964a | [
"MIT"
] | permissive | abingham/kfg | b17ec10d3fe725707e61ae53ba1e87f27e0bd928 | 3e2f65501c6c4af44c3ebf24066c8bf2e7724c44 | refs/heads/master | 2020-03-21T08:28:41.342466 | 2018-12-22T13:49:38 | 2018-12-22T13:58:52 | 21,937,932 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | __version__ = '2.0.0'
__version_info__ = __version__.split('.')
| [
"austin.bingham@gmail.com"
] | austin.bingham@gmail.com |
f660dc9314f35d14fc9c3c1466520c7b209c5e3b | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /components/font_service/DEPS | a32f59c6a0f4be10e379efea183a5c36e3ed2e7d | [
"BSD-3-Clause"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | Python | false | false | 163 | include_rules = [
"+services/service_manager",
"+mojo/common",
"+mojo/public",
"+services/tracing/public/cpp",
"+skia",
"+third_party/skia/include",
]
| [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com | |
4800326295c56e6096e38e7a9c096a795b4d9e22 | 02035d84092291ff6a691047e7a3709ea03dddd8 | /visbrain/objects/connect_obj.py | d4b1f907c3956bee368962c497327a866f2b9073 | [
"BSD-3-Clause"
] | permissive | abhiishekpal/visbrain | a8abaf9bc4434fcf694158ac6510d9f67925b9a7 | 824724656a5d890330c086541176a539b004766d | refs/heads/master | 2020-03-30T08:17:28.823302 | 2018-07-04T01:54:59 | 2018-07-04T01:56:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,998 | py | """Base class for objects of type connectivity."""
import numpy as np
from collections import Counter
from vispy import scene
from vispy.scene import visuals
from .visbrain_obj import VisbrainObject, CombineObjects
from ..utils import array2colormap, normalize, color2vb, wrap_properties
class ConnectObj(VisbrainObj... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
d6b6bc26a9dbc253af21a1a6c574c56a67df447f | 50ca6df816baeeb59e2cfb0320d46d621df165d3 | /Python/201910/191023/cksession.py | c7b17dbe8534d4bc95694425e3887f9cc17743d5 | [] | no_license | 96no3/PythonStudy | 6606342e788c63ca35e2a6cf21a432fc5274a343 | 2bf21081dd4803c7f4702b6cfccbaca3d2aa6f7b | refs/heads/master | 2020-08-07T04:19:35.341606 | 2019-12-18T05:35:10 | 2019-12-18T05:35:10 | 213,292,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,941 | py | #!/usr/bin/env python3
# クッキーを使ったセッション
from http import cookies
import os,json
import datetime,random,hashlib
import cgitb
class CookieSession:
"""クッキーを使ったセッションのクラス"""
SESSION_ID = "CookieSessionId"
# セッションデータの保存先を指定 os.path.dirname()でパスのディレクトリ名を取得
SESSION_DIR = os.path.dirname(os.path.abspath(__file_... | [
"44739759+96no3@users.noreply.github.com"
] | 44739759+96no3@users.noreply.github.com |
ba17a8097673f1389fb4890fb8b41fcd93bd6d19 | 209aae9f40657d48461bed5e081c4f235f86090a | /2020/day11-2.py | b0cf3c89cba7f1a4458990d2cb39256d430e06a9 | [] | no_license | scheidguy/Advent_of_Code | 6e791132157179928e1415f49467ad221ef1e258 | fbc09e4d26502b9a77e0c8d2840b11ec85a3c478 | refs/heads/main | 2023-03-05T12:34:15.343642 | 2021-02-20T00:27:58 | 2021-02-20T00:27:58 | 329,106,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | import copy
def neighbors(R , C, grid):
num = 0
r = R; c = C
while r > 0: # north
r -= 1
if grid[r][c] == '#': num += 1; break
if grid[r][c] == 'L': break
r = R; c = C
while r < len(grid)-1: # south
r += 1
if grid[r][c] == '#': num += 1; break
if g... | [
"scheidguy@gmail.com"
] | scheidguy@gmail.com |
99143087e6840facd871adef59dd5d9989058001 | 61673ab9a42f7151de7337608c442fa6247f13bb | /peewee/execute_sql-to-dictionary/main-2-list-comprehension.py | 11bdabfb5d57af845048800c1572af940ceac702 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 491 | py |
# date: 2019.05.20
# author: bartłomiej 'furas' Burek
# https://stackoverflow.com/questions/56219520/peewee-how-do-i-execute-raw-query-and-map-it-to-the-dictionary/56219996#56219996
import peewee
db = peewee.MySQLDatabase('my_database', user='my_user', password='my_password')
cursor = db.execute_sql('show table sta... | [
"furas@tlen.pl"
] | furas@tlen.pl |
7bca9e6f78163b6d2e52f659b87b9562245ae0f0 | cf7d96bdd34205ede987f0985dfc9e3ab415ee06 | /ad_bank_loan/voucher.py | 5e064d94136a648862eb9cf1db431f9e95edd32a | [] | no_license | hendrasaputra0501/btxjalan | afc93467d54a6f20ef6ac46f7359e964ad5d42a0 | d02bc085ad03efc982460d77f7af1eb5641db729 | refs/heads/master | 2020-12-30T11:02:05.416120 | 2017-07-31T01:34:08 | 2017-07-31T01:34:08 | 98,836,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from osv import osv, fields
from tools.translate import _
import openerp.addons.decimal_precision as dp
import netsvc
from datetime import datetime
import time
from dateutil.relativedelta import relativedelta
class account_voucher_writeoff(osv.Model):
_inherit = "account.voucher.writeoff"
_columns = {
"interest_id... | [
"hendrasaputra0501@gmail.com"
] | hendrasaputra0501@gmail.com |
91466fad4434ae3cac50d7862221c1f502a79389 | c13b4b0d3ab59d76a91a0811c30110098f8e4e9d | /catalogo/views.py | 1b3105a16718c6cbae293edd2b91c715d5ddbea7 | [] | no_license | ryujiin/store | 8d44b1f70df28df855c8966b3e9b50c99d99c409 | dab4e586daa9162d0a5d2fef0b3856669fd2795c | refs/heads/master | 2021-01-23T01:41:43.503719 | 2017-05-31T00:29:33 | 2017-05-31T00:29:33 | 92,887,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | from django.shortcuts import render
from django.http import HttpResponse, Http404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
# Create your views here.
from rest_framework import viewsets
from rest_framework.permissions import IsAuthenticated,... | [
"ryujiin22@gmail.com"
] | ryujiin22@gmail.com |
2cc2e4c133cd02104d71c53eb5e1e727fac86306 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayInsUnderwritePolicyQueryModel.py | 37b60946a99f201e4b87ce3ea9ab5c476f897e8a | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,895 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayInsUnderwritePolicyQueryModel(object):
def __init__(self):
self._out_biz_no = None
self._policy_no = None
self._prod_code = None
@property
def out_biz_no(se... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
07ec8a97e20250841881fe935a533613ac674c22 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/prime-big-253.py | 4df2497c7f4ca82b29a6f23247f3508acd85d1c8 | [] | 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 | 1,707 | py | # Get the n-th prime starting from 2
def get_prime(n:int) -> int:
candidate:int = 2
found:int = 0
while True:
if is_prime(candidate):
found = found + 1
if found == n:
return candidate
candidate = candidate + 1
return 0 # Never happens
def is_prime... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
dd95d06ea3f6f07d84040319aff47321d5d4a365 | fc0c01ffcbb20dfcdfe177f0f527bcea68bb0909 | /backend/home/migrations/0002_load_initial_data.py | f1bd274487616909656e29aa72105a5bae7c4c68 | [] | no_license | crowdbotics-apps/msm-mobile-0312145--16172 | e6736783118f61d3b928042da41c983a27011c91 | a4c5eef430966d7f3f528ff3c400cc86bb56cda0 | refs/heads/master | 2023-01-25T04:07:39.278417 | 2020-12-03T10:49:41 | 2020-12-03T10:49:41 | 318,110,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "MSM-mobile-0312145"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomeP... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f7c3af69717fdd9fe8134409fada9606a5081c25 | d247d27a9e48b53db2ff298467ceddc47368d963 | /forExamples/SEA1stFlwithoutContinue.py | 6f170c8b6906b58deb5e547552e15e4a0ba6423f | [] | no_license | Panzl/PythonClass2016 | 4814fa6bb3eea33248199a2985684b9eb870bbf1 | e486d149ebeba7358d7f50cf390facd403559f9e | refs/heads/master | 2021-01-11T03:40:06.468815 | 2016-10-19T13:45:16 | 2016-10-19T13:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | for iFloor in range(1,6):
for iWing in range(100,401,100):
if not(iFloor==1 and iWing<300):
for iRoom in range(26):
wingRoom = iWing + iRoom
roomNumber = 'SEA ' + str(iFloor) + '.' + str(wingRoom)
print(roomNumber)
| [
"hayasaka@utexas.edu"
] | hayasaka@utexas.edu |
25471bac763649727c460bd35d3e989530910df7 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_1/Python/bquark/fractiles.py | d40a361db6a8c357bb963ba9a04b429c9ff10cbb | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import math
fi = open("D-large.in")
fo = open("D-large.out", "w")
line = next(fi)
T = int(line)
for t in range(T):
line = next(fi)
[K, C, S] = [int(x) for x in line.split(' ')]
smin = (K + C - 1) // C
y = ['IMPOSSIBLE']
if S >= smin:
y = []
k = 0
while k < K:
yy = 0
for c in range(C)... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
76bbf0b45b41d05234904bd18feaf90dc6401f40 | 7589cdaaf2f3eba5854028732792c1ef16172eb7 | /plot_supp_mat_figures.py | c9e5cbc7c17c578b8024edda0adefac2ae9cb253 | [
"MIT"
] | permissive | IdoSpringer/TCR-PEP-Classification | 96ea67e81c053d9a8bf68dc6dc3db557e188be3b | 1cca1551ca71359239a5f5caea7f13ec01f4982b | refs/heads/master | 2020-04-05T00:33:05.187020 | 2019-06-26T09:01:55 | 2019-06-26T09:01:55 | 156,401,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | import matplotlib.pyplot as plt
import compare_data_stats as cmp
from Kidera import kidera
import numpy as np
w = 'McPAS-TCR_with_V'
t = 'TCRGP_with_V'
nt = 'TCRGP_negs_with_V'
def kidera_hists(data1, data2):
factor_observations1 = [[] for i in range(10)]
with open(data1, 'r') as data:
for line in d... | [
"idospringer@gmail.com"
] | idospringer@gmail.com |
cf2437bbb631b33ae6e6807748210e78b731a4f1 | fb1d7f7dea35f992d5d7a80d2b76cb7ad12aec2f | /restart.py | 1e24de7e7333dcaa48507049b172766fde8db826 | [] | no_license | kohnakagawa/implicit_dpd | 1e418b038f7f4bc935f01e6403cca8b37334334d | 592640bd6a70193eeabd9614f86ac907c846a9d1 | refs/heads/master | 2021-01-20T20:37:03.061054 | 2017-09-04T07:25:55 | 2017-09-04T07:25:55 | 47,946,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | #!/usr/bin/env python
import glob
import os
import sys
import re
import shutil
def copy_with_log(src, dst):
print "%s -> %s" % (src, dst)
shutil.copy(src, dst)
def get_backup_number(root_dir, f_back_pattern):
backup_nums = set()
for f in os.listdir(root_dir):
f_number = re.search(f_back_patte... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
90f88061995145befde80c2bce56e91f3b03e14b | eaac679161dfd275964575193f82d24171321f43 | /setup.py | 654e245dd8752b93d1cecf50ae82bbfcf36ad6da | [
"MIT"
] | permissive | aagallag/pubg-python | 0ff3816cfcbeb185cc6a83ab04934bacd425badf | 42d1a16d332ee53d5ebe136293bfcd65d34a4da6 | refs/heads/master | 2020-03-11T13:11:13.745847 | 2018-04-16T15:08:22 | 2018-04-16T15:08:22 | 130,018,032 | 0 | 0 | null | 2018-04-18T06:58:26 | 2018-04-18T06:58:25 | null | UTF-8 | Python | false | false | 858 | py | from setuptools import (
find_packages,
setup)
setup(
name='pubg-python',
version='0.2.8',
description='A python wrapper for the PUBG developer API',
url='https://github.com/ramonsaraiva/pubg-python',
author='Ramon Saraiva',
author_email='ramonsaraiva@gmail.com',
license='MIT',
... | [
"ramonsaraiva@gmail.com"
] | ramonsaraiva@gmail.com |
cd3b531914b0f7e87c1fdf8e76c6404c03ae150d | 9bf522a1716339fe928e83c9b416eeebaa1421af | /aiida_lammps/calculations/lammps/force.py | 11f3143a6fb0dfaa6cc6ed3da3a21f84ab3c9b05 | [
"MIT"
] | permissive | zaidurrehman/aiida-lammps | 132ccf6f6bc2b8e2a81fa3f852a76c8bd3bdcedd | e00d5501778c918b4333747398d4ae4df46fd3eb | refs/heads/master | 2020-03-22T16:07:52.265272 | 2018-05-15T08:26:39 | 2018-05-15T08:26:39 | 140,304,946 | 0 | 0 | MIT | 2018-07-09T15:31:32 | 2018-07-09T15:25:24 | Python | UTF-8 | Python | false | false | 2,367 | py | from aiida.orm.calculation.job import JobCalculation
from aiida.common.exceptions import InputValidationError
from aiida.common.datastructures import CalcInfo, CodeInfo
from aiida.common.utils import classproperty
from aiida.orm import DataFactory
from aiida_lammps.calculations.lammps import BaseLammpsCalculation
from... | [
"abelcarreras83@gmail.com"
] | abelcarreras83@gmail.com |
5bb3365c6f397cdc145999193c20452bf0d67692 | 3cf0d750948a758d5771dd778fbb783d64a044ae | /src/basic/web/flask/01hello/do_flask.py | 7765c119d4516759757f524df238b1c5042fa794 | [
"CC-BY-NC-SA-4.0",
"Apache-2.0"
] | permissive | hbulpf/pydemo | 6552a08b3c85721ac1b2ba335b030e234ad03b6c | ea3e9f9086116a86ecef803e9e3179a34c94c20f | refs/heads/master | 2022-11-30T21:06:29.933820 | 2022-01-15T17:05:16 | 2022-01-15T17:05:16 | 237,584,300 | 6 | 1 | Apache-2.0 | 2022-11-22T09:49:38 | 2020-02-01T08:20:43 | Python | UTF-8 | Python | false | false | 795 | py | from flask import Flask
from flask import request
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def home():
return '<h1>Home</h1>'
@app.route('/signin', methods=['GET'])
def signin_form():
return '''<form action="/signin" method="post">
<p>username:<input name="username"></p>
... | [
"hudalpf@163.com"
] | hudalpf@163.com |
f26a95fe54f735144ba448059a58f6002ca39c7d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ZF6vZwPc5He5u5EFe_3.py | 5eebd4882cfb06abfccf72ab693296cfd70bfd75 | [] | 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 | 116 | py |
def is_first_superior(l1, l2):
for i in range(len(l1)):
if l1[i] > l2[i]:
return True
return False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
54bec16a1e8a091fb14b3314055c0bfc1ade59c2 | 08cfe7ccf78f098924efdcf0db72f32d56e995fe | /envosx/bin/pip | d805a53a4465a5e6982e53bfb89d17841e9f7151 | [] | no_license | carloxdev/veritas | 6709031a020801181dc81751133433adc96dfb71 | e91e42545b7c42b8fd5090f58572715c3f653095 | refs/heads/master | 2020-04-21T23:31:32.031949 | 2019-02-10T06:25:27 | 2019-02-10T06:25:27 | 169,949,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/Users/carloxdev/Files/Trabajo/Sintaxyz/Proyectos/Veritas/envosx/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"carloxdev@gmail.com"
] | carloxdev@gmail.com | |
a074006476a8da1ae12af9f69f15ca373f71bc50 | ded46c3a86c2a70328a63d779ac038d636ae5906 | /_WSpython/Python01_11_pass01_최임정.py | db594047605bfbd23f11e50803e515dbfa609ffa | [] | no_license | imjoung/hongik_univ | 82d0e7ea31763713f51bbde9d45e4aae5cb73849 | 82a3a77605d74d13eb76b915b215f6e245968180 | refs/heads/main | 2023-06-24T12:49:46.087083 | 2021-07-15T06:31:57 | 2021-07-15T06:31:57 | 379,128,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | vId = "Red"
Pwd = "1234"
if vId == "Red" and Pwd == "1234":
pass
else:
pass | [
"noreply@github.com"
] | imjoung.noreply@github.com |
9d69eb0935be8ecd1893a4b8bbbb712dbb6b2c3f | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_exp/trend_linear/cycle_12/ar_/test_artificial_1024_exp_linear_12__0.py | d3250a459fa582199ac7047cea2b5bd10721479e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 1024 , FREQ = 'D', seed = 0, trendtype = "linear", cycle_length = 12, transform = "exp", sigma = 0.0, exog_count = 0, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
4abc683ed81e9286e0ff9350feee1b386ac7ffe5 | 4cbf572b446af438249911e2b07ae873234609df | /examples/postman_echo/request_methods/hardcode_test.py | e60254c428b1d0552596a765052181cb6c195cab | [
"Apache-2.0"
] | permissive | jeremy8250/httprunner | 0a1d164c18df43bf65754130615bab8a91b14862 | a40c7892f3666dd1de200e53ecd5cee9fa8a68ee | refs/heads/master | 2022-07-04T08:20:01.979326 | 2020-05-18T02:47:56 | 2020-05-18T02:47:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | # NOTICE: Generated By HttpRunner. DO'NOT EDIT!
# FROM: examples/postman_echo/request_methods/hardcode.yml
from httprunner import HttpRunner, TConfig, TStep
class TestCaseHardcode(HttpRunner):
config = TConfig(
**{
"name": "request methods testcase in hardcode",
"base_url": "https:... | [
"mail@debugtalk.com"
] | mail@debugtalk.com |
2c7f7315aae320bc1caeb77516b600a04ca3a90f | ace30d0a4b1452171123c46eb0f917e106a70225 | /filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/keystone/conf/extra_headers.py | 247d879764f82dcec291593525b0478080abbdef | [
"Python-2.0"
] | permissive | juancarlosdiaztorres/Ansible-OpenStack | e98aa8c1c59b0c0040c05df292964520dd796f71 | c01951b33e278de9e769c2d0609c0be61d2cb26b | refs/heads/master | 2022-11-21T18:08:21.948330 | 2018-10-15T11:39:20 | 2018-10-15T11:39:20 | 152,568,204 | 0 | 3 | null | 2022-11-19T17:38:49 | 2018-10-11T09:45:48 | Python | UTF-8 | Python | false | false | 960 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"jcdiaztorres96@gmail.com"
] | jcdiaztorres96@gmail.com |
2d0b99e0bd8d4068049d46c68973cd8748ee3dd6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_drove.py | 1f3fa8910c98a175c0f442468e208abbc398f454 | [
"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 | 331 | py |
#calss header
class _DROVE():
def __init__(self,):
self.name = "DROVE"
self.definitions = [u'to move farm animals on foot from one place to another']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
return sel... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7832c84edda98ed4bb859c2ab6f18914aa2b921f | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/stacksNqueues_20200722083944.py | ba6752c16a92b3ce035e1d4a9eb516d58206529d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # we'll use a list to rep stack and a queue
# empty list
stack = []
stack.append(1) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
b8beb75f1384cd86e0be5cf1fca0bff678731ddc | b4fc645746dd2a88a951acea06db91eae1d0eda4 | /fluent_blogs/__init__.py | e531338f42cc1e7e73c6966faff30d43d6e2196f | [
"Apache-2.0"
] | permissive | nishchintg01/django-fluent-blogs | 40a2a5c25f0afbdbb08af14852af5a128e564e75 | 86b148549a010eaca9a2ea987fe43be250e06c50 | refs/heads/master | 2020-06-13T16:45:11.847957 | 2018-07-31T10:52:10 | 2018-07-31T10:52:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # following PEP 440
__version__ = "2.0.3"
# Fix for internal messy imports.
# When base_models is imported before models/__init__.py runs, there is a circular import:
# base_models -> models/managers.py -> invoking models/__init__.py -> models/db.py -> base_models.py
#
# This doesn't occur when the models are imported... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
50a51ca5d16e357fec283b6b5598b557ab490c41 | 63044bff27a0cf40ae9bd203e12562386b0fc925 | /courses/management/commands/update.py | b323a77606477d99af35698445c40cbe516b99fb | [
"BSD-3-Clause"
] | permissive | afg-archive/nthucourses | 696f208b57b3f870fdae6a87030804fb70cda080 | 9f28f8e9480b9d7a9db1f9c023955fb23b1a28aa | refs/heads/master | 2021-05-29T01:46:36.882086 | 2015-05-29T10:51:13 | 2015-05-29T10:51:13 | 36,482,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django.core.management.base import BaseCommand
import sys
from courses import adapter
from logs.models import Logger
class Command(BaseCommand):
help = 'update stuff'
def add_arguments(self, parser):
parser.add_argument('count', type=int)
def handle(self, *args, **options):
with Lo... | [
"afg984@gmail.com"
] | afg984@gmail.com |
3b9a978a922a5b196bc117898814b0cbec445d6c | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20180118/example_pandas/x.py | b249ecd7574e9204bf7e358494db3c0a1f66cdf8 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 173 | py | import pandas as pd
ax = df.plot(kind="scatter", x="x", y="y", s=40)
for _, row in df.iterrows():
print(row.name, row.x, row.y)
ax.annotate(row.name, row.x, row.y)
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
13f7f8b2ae731cf1aa60c04f77a6859b01c2e133 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_10_17/operations/_private_link_resources_operations.py | 9c81b625304ad9d1ab87cc18e3bfe196390cf5e3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 12,331 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
edb1069fb26add639ea2a6658e393ab7ecaf60b5 | 94a12a005e01be982f3f5482f03c429b7710dd1c | /week-1/mongoProc_linux_x86_64/bin/pypy/lib-python/2.7/test/test_bytes.py | 2f219f562305ef8114406028e77ff83d358f844f | [
"LicenseRef-scancode-unicode",
"MIT",
"Apache-2.0"
] | permissive | RaviTezu/M202 | 9b80134817c7abf706a70968fbf9ced63f56ba80 | 62e7f19e3587cb2b8e62d3f8751a63f886f4294b | refs/heads/master | 2021-01-18T21:48:47.925607 | 2016-04-23T15:52:29 | 2016-04-23T15:52:29 | 19,467,383 | 6 | 9 | null | null | null | null | UTF-8 | Python | false | false | 43,974 | py | """Unit tests for the bytes and bytearray types.
XXX This is a mess. Common tests should be moved to buffer_tests.py,
which itself ought to be unified with string_tests.py (and the latter
should be modernized).
"""
import os
import re
import sys
import copy
import functools
import pickle
import tempfile
import unitt... | [
"ravi-teja@live.com"
] | ravi-teja@live.com |
7534ead6011b0a4fd7811f049ab3bb60e196c09e | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnxp.py | ab13e8966380af64923340502c1a559c2db478bd | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 142 | py | ii = [('LeakWTI2.py', 13), ('LeakWTI3.py', 5), ('PettTHE.py', 1), ('KiddJAE.py', 6), ('LeakWTI4.py', 7), ('LeakWTI.py', 4), ('WilkJMC.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
1c676289043ddc7f0d412e1cc3be5ddf29fa5bbd | 31a9a6cd0c6d06c612705a6d572f97d6a6ec7286 | /render.py | a077a40bd70d27e379908dc0a77abc7d79ca947c | [] | no_license | mikeboers/RenderHeatmap | ce9860f1f6d451f65442a566477b97079282c44d | 684a3fef7dc4c3fb0983eed69a983ceb9ecb473b | refs/heads/master | 2023-06-08T05:52:28.983104 | 2013-07-16T01:49:07 | 2013-07-16T01:49:07 | 11,429,803 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | #!/usr/bin/env python
from __future__ import print_function
import ctypes as c
import functools
import os
import re
import sys
from subprocess import call, check_output
import prman
from mako.template import Template
def debug(*args, **kwargs):
kwargs['file'] = sys.stderr
print(*args, **kwargs)
_memo_sto... | [
"github@mikeboers.com"
] | github@mikeboers.com |
62c027779e60eb717cd1ecc9b3f065887d5c151d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /qNQkYzY8GpiFMmndh_9.py | 1c13b93ebc6d37c3186cdfd2d117379f9db81968 | [] | 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 | 378 | py |
def join(lst):
output = lst.pop(0)
n = 0
for word in lst:
for i in range(1, len(output) + 1):
substring = output[-i:]
if word.startswith(substring):
output += word[i:]
if n == 0 or i < n:
n = i
break
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2ebff2ed86eca26adfa89e51abaad405fb03e6bc | 20e3aad102cf91991b5fb32741b1317e72d8c813 | /python/test/test_comm_type.py | 86d12fa87137f9ea6b498c182279b8357c1a4db3 | [
"Apache-2.0"
] | permissive | chathuriw/cylon | 32e04148a88aea49ff57258011557d036d39ebc0 | 4a4720e0233d3e67e67cff7dbc112e4d366d9fac | refs/heads/master | 2022-12-23T01:36:20.609934 | 2020-10-09T20:03:28 | 2020-10-09T20:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | ##
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | [
"vibhatha@gmail.com"
] | vibhatha@gmail.com |
ab7cc7d498bcf6e430f5f3ee54ce21077a31f0f6 | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/qos/qos_policy_group_delete_iter_info.py | b9c1249c80dd536e9d9b77e35d7b894771e5a5ac | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | from netapp.qos.qos_policy_group_info import QosPolicyGroupInfo
from netapp.netapp_object import NetAppObject
class QosPolicyGroupDeleteIterInfo(NetAppObject):
"""
Information about the deletion operation that was
attempted/performed against qos-policy-group object.
were not deleted due to some error.
... | [
"radek@gruchalski.com"
] | radek@gruchalski.com |
7996e73b8d40a38bcb034f1713d2b76544270a5a | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/skimage/util/setup.py | b9b8d3221b147d91483dc8bf4e7f656014dea973 | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4915141ae116202354212e66d14926ed94771f1e4478f2a19210d8f9d010464e
size 1206
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
382e99a6a5e95ffe23cf57a4cfd4f4c83d66325f | a52f9758ace9a85adfb735609e0cb8839aab2977 | /tests/sitetester | b1cfbddc4e01b1b26c0a31ef2a248c188e16be64 | [] | no_license | yadudoc/Swift | 8ec085c4297861c2197d504571e10dce2df961a4 | e96600ae9ce74f529a436d33d984534ca9566ee7 | refs/heads/master | 2021-01-22T09:09:37.081267 | 2011-07-25T08:47:03 | 2011-07-25T08:47:03 | 1,968,948 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | #!/usr/bin/env python
import commands
import os
# the workdir for a given site needs to exist on the site you're testing
# and should contain run-suite & suite.sh
# this script will ssh onto the site, pass run-suite the necesary variables
# for running suite.sh
class Site:
def __init__(self,login,logtype,workdi... | [
"yadudoc1729@gmail.com"
] | yadudoc1729@gmail.com | |
681c3498de14ed65faac6556b9a4a4fdd30bb14a | 23b9600c8a5afb6451902c3c9b3fd3a6ba9ed1e3 | /pycontour/cnt/tests/test_cnt_property.py | 671b185d4386656c8b6478b5f6fbb0f5be19fe84 | [
"Apache-2.0"
] | permissive | codingPingjun/pycontour | a822cef6f40f80b978b6e24db660d46c4e5e3660 | 892f42dd8569bcffe50433c32ca3bb414163a293 | refs/heads/master | 2020-03-29T10:37:48.033915 | 2018-09-21T18:17:24 | 2018-09-21T18:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | # -*- coding: utf-8 -*-
import os, sys
from pycontour import point_list_to_np_arr
from pycontour import np_arr_to_cv_cnt
from pycontour.cnt import get_cnt_area
from pycontour.cnt import get_cnt_aspect_ratio
from pycontour.cnt import get_cnt_solidity
def test_property(cnt):
cnt_area = get_cnt_area(cnt)
cnt_a... | [
"chenpingjun@gmx.com"
] | chenpingjun@gmx.com |
112b1c682d5f843710c2bb57bd848e533ac37db9 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_cq_social_commons_comments_scheduler_impl_search_scheduled_pos_properties.py | 1694f07b9f29ee9d009be5fff57d48e5001c1ead | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,487 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
2391b4f2d82d25411949f36512c5b7942e8622d5 | c9094a4ed256260bc026514a00f93f0b09a5d60c | /homeassistant/util/process.py | 6f8bafda7a70aed91d6d24f7703edddc5045ef30 | [
"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 | 442 | py | """Util to handle processes."""
from __future__ import annotations
import subprocess
from typing import Any
# mypy: disallow-any-generics
def kill_subprocess(
# pylint: disable=unsubscriptable-object # https://github.com/PyCQA/pylint/issues/4034
process: subprocess.Popen[Any],
) -> None:
"""Force kill ... | [
"noreply@github.com"
] | turbokongen.noreply@github.com |
2198b029b2ef4637d0854116425b74aa541a43f0 | 7eedebb3a27d7507d773fae3bc8c9d35caaa7ece | /bruce.py | d834cd2961ee0ff93686ab06318aec168f23804c | [] | no_license | 40323248/40323248 | 87c24f94cc94c140f41cd83bde9278c18f881ce0 | 60296e94a7755307be4cd34c625bce240c87e907 | refs/heads/master | 2020-12-02T16:39:06.843510 | 2014-11-10T12:49:46 | 2014-11-10T12:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | print("hello bruce") | [
"chiamingyen@gmail.com"
] | chiamingyen@gmail.com |
93dbb80bdcbe510bed8809ddb9090334d1b7cba5 | edbe6966098d925e831b4e3054c76e4ae1c1891a | /cluster/code/test/test_requester.py | 4ad4d87f316d1d3324176bd449314c690175eacf | [
"CC-BY-3.0",
"MIT",
"BSD-3-Clause"
] | permissive | Sean10/Algorithm_code | 242fcb21de97186ed1caea30ab967c3f4b4e9351 | 8ba923150102e16a9072b8f32ced45d15b18223b | refs/heads/master | 2023-06-22T17:47:07.241192 | 2023-06-19T15:22:23 | 2023-06-19T15:22:23 | 107,443,471 | 0 | 0 | BSD-3-Clause | 2021-06-08T20:35:47 | 2017-10-18T17:51:56 | C++ | UTF-8 | Python | false | false | 1,272 | py | from cluster import *
from . import utils
import mock
CLIENT_ID = 999999
class Tests(utils.ComponentTestCase):
def setUp(self):
super(Tests, self).setUp()
self.callback = mock.Mock(name='callback')
with mock.patch.object(Requester, 'client_ids') as client_ids:
client_ids.next... | [
"sean10reborn@gmail.com"
] | sean10reborn@gmail.com |
7dabd080543a7db593ce58222f1664ce3b14a7f9 | e9c4239c8064d882691314fd5b37208f10447173 | /leetcode/252meetingRoom.py | 4cfdabad9de26d758a4eb4eebb2264529d6c4179 | [] | no_license | IronE-G-G/algorithm | 6f030dae6865b2f4ff4f6987b9aee06874a386c1 | 6f6d7928207534bc8fb6107fbb0d6866fb3a6e4a | refs/heads/master | 2020-09-21T03:02:20.908940 | 2020-03-22T15:19:41 | 2020-03-22T15:19:41 | 224,658,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | """
252 会议室
给定一个会议时间安排的数组,每个会议时间都会包括开始和结束的时间 [[s1,e1],[s2,e2],...] (si < ei),请你判断一个人是否能够参加这里面的全部会议。
示例 1:
输入: [[0,30],[5,10],[15,20]]
输出: false
示例 2:
输入: [[7,10],[2,4]]
输出: true
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/meeting-rooms
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
"""
class Solution:
def canAtten... | [
"linjh95@163.com"
] | linjh95@163.com |
51ef5cd2d9cfbed4111cec84b099160d93c11f59 | 9d418674a6cb6797656b15926f1f259964dabd71 | /jokedbapp/image_profiles/basic_vertical.py | d702ca3843eaed294094d238a45faea1dfc4b388 | [
"MIT"
] | permissive | BL-Labs/jokedbapp | f54a7aedded95591e1719ef19d6ae1f72bb6d73f | a0e03eefbf04255623a9ad81db145f1508fade5f | refs/heads/master | 2020-06-08T09:19:45.827254 | 2019-04-10T16:04:14 | 2019-04-10T16:04:14 | 23,437,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,369 | py | import cairo
DEFAULT = {'font': 'American Typewriter', 'size':32.0, 'style': cairo.FONT_SLANT_NORMAL, 'weight': cairo.FONT_WEIGHT_NORMAL, 'LINEHEIGHT':1.1}
DEFAULT_SMALL = {'font': 'American Typewriter', 'size':22.0, 'style': cairo.FONT_SLANT_NORMAL, 'weight': cairo.FONT_WEIGHT_NORMAL, 'LINEHEIGHT':1.1}
BOLD = {'font'... | [
"bosteen@gmail.com"
] | bosteen@gmail.com |
68b2a186aa88e4263e2be029b45f32089b87e6ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03855/s164056215.py | bdc63f1ec0e4debd072fc610599656e89ad76b4e | [] | 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 | 2,705 | py | import sys
from collections import deque
from collections import defaultdict
from collections import Counter
def conn(n,m,e):
d=dict(zip(range(1,n+1),range(-1,(-1)*n-1,-1)))
td=defaultdict(lambda:deque([])) #tdは同値類がキーで中の元が値
c=1
for edge in e:
a=edge[0]
b=edge[1]
da=d[a] #da,dbはa... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
19516fddcf46da7c958112de4b4a48b588f34952 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02262/s633587482.py | d753ca2ac61eed71618d108cbb94d29de6373baa | [] | 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 | 652 | py | from sys import stdin
def insertionSort(A, n, g):
global cnt
for i in range(g, n):
v = A[i]
j = i - g
while j >= 0 and A[j] > v:
A[j+g] = A[j]
j = j - g
cnt += 1
A[j+g] = v
def shellSort(A, n):
global cnt
cnt = 0
g = 1
G = [... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
17783be31b334cd82e6068aab17d8f98bec6cca8 | de9b8b7192a0a81e9249823bb2b86f0b7e452863 | /.history/main_20171106171523.py | deb4ddd52f38171dcbe23d61cbf9d45aa121589b | [
"MIT"
] | permissive | reecebenson/uwe-dadsa-tennis-a | f5eaeb1b96d4e61f29279514e68eeea8ad6533db | d0763f819b300fcd0ce27041f5bc4ef0519c00bf | refs/heads/master | 2023-07-08T16:13:23.963348 | 2017-11-30T12:07:01 | 2017-11-30T12:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # DADSA - Assignment 1
# Reece Benson
from classes import Handler as Handler
from classes import Player as Player
from classes import Season as Season
from classes import Tournament as Tournament
from classes import Round as Round
from classes import Match as Match
class App():
def __hold__(self):
input(">... | [
"business@reecebenson.me"
] | business@reecebenson.me |
bfaf7ad3a1c88c89c66f90f56a241c967f7662e2 | 4f0e26b19f9b97c2a62605c039440fa984ebaaba | /scripts/easy_install-2.6-script.py | 2c20b3f8a0a56b276e911c4435a3fbfc81403321 | [] | no_license | acmiyaguchi/buildbotve | 61ff08955997445a2b38032692d1ba0fcc9235e0 | 8f2806e1b83ff1df5f6f6313089c0d1d1f2fe288 | refs/heads/master | 2020-12-25T19:04:13.485076 | 2015-08-10T21:48:24 | 2015-08-10T21:48:24 | 40,506,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #!c:\mozilla-build\buildbotve\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.14','console_scripts','easy_install-2.6'
__requires__ = 'distribute==0.6.14'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('distribute==0.6.14... | [
"acmiyaguchi@gmail.com"
] | acmiyaguchi@gmail.com |
6306027d406174be1fb961bc6ff1ffcd7c4b825f | b4afb44b8f483c048716fe12d778186ce68ac846 | /pages/ios/ffan/fei_fan_activity_page_configs.py | d12c7b41288668dca21a167d40b4743ce3b02f25 | [] | no_license | liu111xiao111/UItest | 64309b2c85f6d2334d64bb0875ba9ced459ebb1e | 67e2acc9a99da81022e286e8d8ec7ccb12636ff3 | refs/heads/master | 2021-09-01T18:30:28.044296 | 2017-12-28T04:36:46 | 2017-12-28T04:36:46 | 115,585,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
class FeiFanActivityPageConfigs(object):
'''
This is a configuration class for FeiFanActivityPage class.
'''
# Assert view time out
assert_view_timeout = 10
# Assert invalid view time out
assert_invalid_view_time = 3
# Click button time ... | [
"tl@neusoft.com"
] | tl@neusoft.com |
a622006114c11724974981c8fde6b7a6250f0085 | 57e6f45405452526945c34c43d42c8f8fdbf1de4 | /changeseeking_tracing/run_m6.py | fd887a5c4f2374d0d3d53b7e2b0b5f5750026482 | [] | no_license | mitroadmaps/map-maintainer | d48c4d58d4129672afb615674eb4718ca265a870 | b9e125830ed177f182bbd87d18e8b76946408e7b | refs/heads/master | 2023-08-29T13:00:09.442187 | 2021-11-02T23:52:43 | 2021-11-02T23:52:43 | 335,781,636 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,214 | py | from discoverlib import geom, graph
import model_m6a as model
import tileloader as tileloader
import numpy
import math
import os
import os.path
import random
import scipy.ndimage
import sys
import tensorflow as tf
import time
model_path = sys.argv[1]
old_tile_path = sys.argv[2]
new_tile_path = sys.argv[3]
graph_path ... | [
"fbastani@perennate.com"
] | fbastani@perennate.com |
9687d37ecb9adfe8cd3cd82ced27afb31f1bafd2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2653/60749/257218.py | 8275f8a1cd5eee9113e42a0a5bae23d48fe94bb8 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | n=int(input())
res=[]
for _ in range(n):
res.append(input().split(" "))
for h in res:
a=h[0]
b=h[1]
res=str((a-1)*(10-b))
print(res) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5eb4a0a88031d87a676379e40039387261a2a1cf | d967cf34a147f1bde1839fecfa1d356bb4c83d66 | /scripts/releaser_hooks.py | 5c115013ca4c09b6a6f7c21760ccdee4dbc72608 | [
"BSD-3-Clause"
] | permissive | Lessica/django-photologue | dbb44656b85c06f5c733ca50efb3595599b9387e | 3e2e7b3cf02ba396ccb063927513930a9a711036 | refs/heads/master | 2022-04-18T01:52:04.228366 | 2022-02-23T10:01:06 | 2022-02-23T10:01:06 | 256,437,446 | 0 | 0 | BSD-3-Clause | 2020-04-17T07:49:46 | 2020-04-17T07:49:45 | null | UTF-8 | Python | false | false | 3,436 | py | import os
import subprocess
try:
import polib
except ImportError:
print('Msg to the package releaser: prerelease hooks will not work as you have not installed polib.')
raise
import codecs
import copy
def prereleaser_before(data):
"""
1. Run the unit tests one last time before we make a release.
... | [
"richard@arbee-design.co.uk"
] | richard@arbee-design.co.uk |
03665678c340fd12dded68cb93404683636a2552 | 63ce91bae5eeadf885262b8fe0e769a64454d257 | /ignite_template.py | 860100b069677d6072b88c13df487527f4e5f296 | [
"Apache-2.0"
] | permissive | Data-drone/cv_experiments | c7349e7808f7f9c1315ce1efe33be1f86f4a9f80 | d6e1d9716c03a9165e3d8a08f4cc1287323a56ca | refs/heads/master | 2021-06-26T04:33:10.079771 | 2021-01-19T11:40:30 | 2021-01-19T11:40:30 | 196,596,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,638 | py | ### Ignite Example
from argparse import ArgumentParser
from torch import nn
from torch.optim import SGD
from torch.utils.data import DataLoader
import torch
import torch.nn.functional as F
from torchvision.transforms import Compose, ToTensor, Normalize
from torchvision.datasets import MNIST
from ignite.engine import... | [
"bpl.law@gmail.com"
] | bpl.law@gmail.com |
a0a3845ac7ef4d04ce903f51f533772194a7f499 | a0c60bd23fbdc7a89786d1f775455057aeb32701 | /torch/onnx/_constants.py | 8b71a4f86c173d18eec7d8955e92137a7d42a1e7 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | cpuhrsch/pytorch | 474dd74a729c11970af0a010d3f076e8ef31b74f | be327ec08f320e256d444693dde65fe55831bc46 | refs/heads/master | 2023-06-23T04:33:16.514572 | 2022-09-30T18:51:43 | 2022-09-30T18:51:43 | 118,517,346 | 2 | 2 | NOASSERTION | 2022-05-24T00:58:21 | 2018-01-22T21:26:11 | C++ | UTF-8 | Python | false | false | 355 | py | """Constant values used in ONNX."""
ONNX_ARCHIVE_MODEL_PROTO_NAME = "__MODEL_PROTO"
ONNX_BASE_OPSET = 9
ONNX_MIN_OPSET = 7
ONNX_MAX_OPSET = 17
# ONNX_DEFAULT_OPSET generated by tools/onnx/update_default_opset_version.py
ONNX_DEFAULT_OPSET = 14
ONNX_CONSTANT_FOLDING_MIN_OPSET = 9
PYTORCH_GITHUB_ISSUES_URL = "https://... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
9dd608ba30dfbbde63634e389ca85fd9e593e4db | dbbb048a0e494d92ee3851b0e67836ae38b147b5 | /util/cdx2db.py | b2bd77d54d92546ab1d77b31b793c795412c9883 | [
"Unlicense"
] | permissive | ArchiveTeam/justintv-index | 4c5ce07711c8357dbfedaec14ffe0bc3e783ab69 | 3c6397f54a9e50456ad683a944c32db2aeee4153 | refs/heads/master | 2021-01-18T16:22:52.003475 | 2014-09-05T20:41:15 | 2014-09-05T20:41:15 | 22,726,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | '''Process the CDX files into a database.'''
import gzip
import argparse
import dbm
import re
def read_cdx(filename):
with gzip.open(filename, 'rt') as in_file:
header = in_file.readline()
assert header.rstrip() == ' CDX N b a m s k r M S V g'
for line in in_file:
(massaged_u... | [
"chris.foo@gmail.com"
] | chris.foo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.