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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82908ae8ac24e79217bf0b66161e59606ee3b4f4 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /dataexchange_read_2/revision_get.py | aa8e9858a1a6eee389251c26211af7da94e53e10 | [] | 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 | 983 | 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 execute_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/dataexchange/get-revision.html
if __name__ ==... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
ed2dee8a9a297a14b1e6a0827a7ecca5e8a197c7 | f3553f36a248d5e2a30713af68dd714df90953d7 | /kuaishou/1.py | 51178e065731b5fe3e9606a854b3219244ac41fe | [] | no_license | Mrzhouqifei/offfer | 8a699653850cf6cc91ed5a622ad166fd61b8e294 | 4c73e7a591e79348471e00272dcb8e1b5cc6d7cb | refs/heads/master | 2023-04-09T05:58:49.858037 | 2020-12-30T06:13:52 | 2020-12-30T06:13:52 | 298,285,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | s = str(input().split())
match, left, right = 0, 0 , 0
stack = []
for x in s:
if x == '(' or x == ')':
stack.append(x)
while len(stack) > 0:
t = stack.pop()
if t == '(':
if right > 0:
match += 1
right -= 1
else:
left += 1
elif t == ')':
... | [
"18401620071@163.com"
] | 18401620071@163.com |
c2b218be5ab2b6c61f063656e3d0cc3fad868684 | 0fd49b4779351c68bbe51ee978939f39c8e57d7c | /400-1000/412-Fizz Buzz.py | d10f822657cd03fff2f4df88968aae90c1ba0e31 | [] | no_license | jia0713/leetcode | 8f632b96d0bc900cf4357ab1b8affd6068964dec | 13565941f16c74d32124020285ce887a4cb31b27 | refs/heads/master | 2023-06-17T20:41:47.185832 | 2021-07-16T09:42:39 | 2021-07-16T09:42:39 | 247,866,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | class Solution(object):
def fizzBuzz(self, n):
"""
:type n: int
:rtype: List[str]
"""
res = [0] * (n + 1)
for i in range(n + 1):
res[i] = str(i)
for i in range(n // 3 + 1):
res[3 * i] = "Fizz"
for i in range(n // 5 + 1):
... | [
"pkuljn@gmail.com"
] | pkuljn@gmail.com |
19a3e8991f3df85a01b43303066f119c19e1c908 | 87d93aa41de884cbaf8d3a4d7131a4ffd090c0bc | /mysite/mysite/settings.py | 10ae920d99b6fdd8f27a43baeb49bf1f6bcc401d | [] | no_license | Ryoung27/Django-Pract | bb99606a91da65788fb779a4216302398c6d0c8a | a29942ba4ec20ba259f06dc6696db47bd7f3eb3c | refs/heads/master | 2020-03-23T11:29:27.735366 | 2018-07-19T01:05:34 | 2018-07-19T01:05:34 | 141,506,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"RRYoung89@gmail.com"
] | RRYoung89@gmail.com |
af2e4c746c1d9621db5b7db5b430222178b55234 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/ExpanseV2/Scripts/ExpansePrintSuggestions/ExpansePrintSuggestions.py | b20540e9e643c26375a3bd4f86a41fbb04bfdb83 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 20,407 | py | import demistomock as demisto
from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import
from CommonServerUserPython import * # noqa
"""ExpansePrintSuggestions
"""
from typing import Dict, Any
EXPANSE_LOGO = (
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeIAAADFCAMAAAC/6QGrAAAABGdBTU... | [
"noreply@github.com"
] | demisto.noreply@github.com |
e719ea9ed023608f7635c6fd8bf85b0b352cde9c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03797/s857928689.py | 5a492d61ed9095cbcb8fca6a600a3c13717f356e | [] | 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 | 149 | py | N, M = map(int, input().split())
cnt = 0
if N<=M//2:
cnt = N
N,M =0,M-2*N
cnt += M//4
print(cnt)
else:
cnt = M//2
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3f800f7039c5fc6489b128bf37624959ce17273a | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/shared/planet/pinContainers/LaunchpadContainer.py | 614755276a054e01a0a618a178a4f59d06d3a490 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 2,664 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\shared\planet\pinContainers\LaunchpadContainer.py
import carbonui.const as uiconst
from eve.client.script.ui.control.eveLabel import Label
import uiprimitives
import util
import localization
from .BasePinConta... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
4e16ccc77fd56253143c198ecaa008a328bcd0b8 | f0fa96d39a66c3ddaae4266442a13ec3feb7a462 | /dynaminc_programing/perfectSquare.py | 7b3a7b89619c22b047ff08c46b1d7e59fa335c19 | [] | no_license | ashishgupta2014/problem_solving_practices | 14d587e98d9996a95efe822335ca4baccb39b1a1 | bc4f4b07e1e33273010e34428e0c31d2d6656c14 | refs/heads/master | 2023-04-26T03:47:40.766508 | 2021-06-07T04:55:52 | 2021-06-07T04:55:52 | 298,063,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import math
def perfectSquare(n):
if (n < 3): return n
square_nums = [i ** 2 for i in range(0, int(math.sqrt(n)) + 1)]
dp = [float('inf')] * (n + 1)
dp[0] = 0
for i in range(1, n + 1):
for square in square_nums:
if (i < square): break
dp[i] = min(dp[i], dp[i - square... | [
"ashish.2007g@gmail.com"
] | ashish.2007g@gmail.com |
5c9e8206af3d623bc4bcb23dcb9e1c079e59e878 | bf7959048edc0005e04431a0864c719adc5ea9ea | /python版本/6038-MinimizeResult.py | e33698a2a56562956fcdb3f35ab04e87657c7df2 | [] | no_license | Yohager/Leetcode | 7c24f490cfa5fd8e3cdb09e5a2305a134a064a93 | 585af82ff2c2d534053f6886714406019ed0c7d1 | refs/heads/master | 2022-12-07T23:51:16.347174 | 2022-11-28T02:30:53 | 2022-11-28T02:30:53 | 178,201,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | class Solution:
def minimizeResult(self, e: str) -> str:
n = len(e)
arr = e.split('+')
l1,l2 = len(arr[0]), len(arr[1])
init = eval(e)
res = float('inf')
p1,p2 = -1,-1
for i in range(l1):
for j in range(n,n-l2,-1):
if i == 0 and j =... | [
"guoyuhang0921@gmail.com"
] | guoyuhang0921@gmail.com |
de40442e18ca727417a8eb58201487d77ae1f7eb | 23107f38f7c28da5e2e5e51f6eda3ba6b5b9a2ff | /kitchen_project/settings.py | b1c6eb6dddc924b8e595337e856f15b714f1cb08 | [] | no_license | sarigu/kitchen_app | fe818aca3fb0605c185fe9ab0b496ea4e0bca0c7 | f2eacf907eb75afd4cecd1cdce19900230b8fb33 | refs/heads/master | 2023-02-22T19:34:41.094263 | 2021-01-25T09:24:01 | 2021-01-25T09:24:01 | 315,796,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,204 | py | """
Django settings for kitchen_project project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from... | [
"sariguci@Saris-MacBook-Pro.local"
] | sariguci@Saris-MacBook-Pro.local |
8e1eaca2c534ab590ef058f10c521bcab1b4c678 | 6443a587e16658a58b884a2e5c6dbbab1be50674 | /Leetcode/Unique Binary Search Trees.py | c83974a73a1bea84808319b93ca6f42ec0b06328 | [] | no_license | xiaochenchen-PITT/CC150_Python | a6cbe213946851639a827068961934920b6c3e57 | e96394265d8a41a1b4558d5d2b34aa34af99662f | refs/heads/master | 2020-12-24T17:18:14.606804 | 2014-11-08T21:48:20 | 2014-11-08T21:48:20 | 25,654,100 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # Unique Binary Search Trees
class Solution:
# @return an integer
def numTrees(n):
# DP
mp = {0: 1, 1: 1} # key: n, value: number of different structures
if n in mp:
return mp[n]
for i in range(2, n+1): # i nodes
res = 0
sm = 0
for j in ... | [
"cxc0520@hotmail.com"
] | cxc0520@hotmail.com |
50ab018c1be8d2a4d8012cffc93a214ded31a1c8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03339/s461187106.py | 117afdfcdef0aa4d725b5db1581f92a01b0ab81a | [] | 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 | 270 | py | n = int(input())
s = input()
ec = 0
wc = 0
el = []
wl = []
for f,r in zip(s,reversed(s)):
el.append(ec)
wl.append(wc)
if f == 'W':
wc += 1
if r == 'E':
ec += 1
ans = n
for e,w in zip(wl, reversed(el)):
ans = min(ans, e+w)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f50078ae17f73108cf7c97cdbdfeb1d015d3e593 | 1625edfe28b4b0979fd32b4a3c5e55249a993fd5 | /baekjoon15894.py | d280ba45833b4d034ce0c931b621ca9446a9dc27 | [] | no_license | beOk91/baekjoon2 | b8bf504c506c6278899d4107ecfe51974ef13f5e | 39569f8effb8e32405a7d74d98bdabcab783ec56 | refs/heads/master | 2023-05-11T20:11:19.015113 | 2020-09-14T23:58:49 | 2020-09-14T23:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | n=int(input())
print(n*4) | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
0ec54ad0cd05fe5719729c86e746014af74b1ece | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/g60.py | c80e4b4a8a6fdd45b52d8b567f0eeb839fab0048 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
60d9374afa434145e400c9430c0c5b40ef4a1df4 | 0b529ba1efe44c47b540dd22a7fd9cc6a73f907f | /src/1300-1400/_1344_angle-between-hands-of-a-clock.py | f352f9345e2663c99a674b740103ff27b7269469 | [] | no_license | alexparunov/leetcode_solutions | b9445a02182bc61f490257328a1960c2a627d7bc | bc19dbcc903782f91846d5b9d73a7ffb9b2f002d | refs/heads/master | 2022-11-28T21:10:24.875260 | 2020-08-15T12:42:40 | 2020-08-15T12:42:40 | 261,517,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | """
https://leetcode.com/problems/angle-between-hands-of-a-clock/
"""
class Solution:
def angleClock(self, hour: int, minutes: int) -> float:
angle_in_hour_minute = 360 / (12 * 60)
angle_in_minute = 360 // 60
angle_of_hour = (hour * angle_in_hour_minute * 60 + minutes * angle_in_hour_min... | [
"alexander.parunov@heyjobs.de"
] | alexander.parunov@heyjobs.de |
bd8669f2afe46f47983bf9b249cef07baa413cf6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03000/s283498849.py | 4b5184d2bd4bb37f346be633557e0c253010dab9 | [] | 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 | 306 | py | def main():
N, X = (int(i) for i in input().split())
L = [int(i) for i in input().split()]
from itertools import accumulate
S = list(accumulate([0] + L))
ans = 0
for s in S:
if X < s:
break
ans += 1
print(ans)
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8850f51e67fcb72971dd6eebd251f1d46269618b | 9be786872889eb8fac6a64e499554c1b364dbc05 | /1_pythonStudy/06_while/day3_while1.py | d0fa54be09451d8eb53be74cf65a8237c6498e29 | [] | no_license | jh5537/TIL | 85b55385873a82eebe57d549782f83ce0e3e6462 | 09b26e673801cdd902878e5f76a8bb30eab6cda6 | refs/heads/master | 2023-06-06T05:23:04.651392 | 2021-06-29T12:27:43 | 2021-06-29T12:27:43 | 373,744,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # while 구문 이해 :조건이 만족하는(True) 동안만 반복문을 수행
# 1~10까지의 정수를 출력
n = 1
while n<=10:
print(n)
n = n + 1
| [
"jihoon5537@gmail.com"
] | jihoon5537@gmail.com |
7e75de29e7392a2689f4241b3e42ee1e2d5a54a7 | 0c8214d0d7827a42225b629b7ebcb5d2b57904b0 | /examples/matplotlib/E001_Basics/main.py | 85b515aeab4272d66c0f3674054cc913aa4f050a | [] | no_license | mertturkmenoglu/python-examples | 831b54314410762c73fe2b9e77aee76fe32e24da | 394072e1ca3e62b882d0d793394c135e9eb7a56e | refs/heads/master | 2020-05-04T15:42:03.816771 | 2020-01-06T19:37:05 | 2020-01-06T19:37:05 | 179,252,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import matplotlib.pyplot as mpl
def fib(n: int) -> list:
a = 1
b = 1
result = [a, b]
for i in range(3, n):
c = a + b
result.append(c)
a = b
b = c
return result
if __name__ == '__main__':
y_values = fib(10)
x_values = [i + 1 for i in range(len(y_values))]... | [
"mertturkmenoglu99@gmail.com"
] | mertturkmenoglu99@gmail.com |
a4f3ed80aaf08dd5a18b2c21b6803d9b7bd49b9b | ddd4edc45481e6a7c7141b93e47b974634506d2d | /tradgram/chatrooms/serializers.py | b371a510b3309043cb8b9ef1ab0734ad2bea6c3c | [
"MIT"
] | permissive | didils/tradgram | 407de9d05d01bc840c5c165155d370f092d82f0d | 4868ca082ab78a1b5b96f25ee9f958567bd1bb1e | refs/heads/master | 2021-11-19T02:47:02.224088 | 2019-04-05T08:19:14 | 2019-04-05T08:19:14 | 148,162,588 | 0 | 0 | MIT | 2021-09-08T00:57:43 | 2018-09-10T13:49:57 | Python | UTF-8 | Python | false | false | 350 | py | from rest_framework import serializers
from . import models
from tradgram.users import models as user_models
class ChatRoomSerializer(serializers.ModelSerializer):
class Meta:
model = models.ChatRoom
fields = (
'user1',
'user2',
'last_message',
... | [
"didils1982@gmail.com"
] | didils1982@gmail.com |
3fc82e87b1bddde9014a48c4e580873adf678bc4 | a367a015dbc36287ca933955ded1ee58b5a2a61a | /swagger_client/models/disease_group.py | 776059fb3fa87b5485cc3d698aca7fb81e4dba90 | [] | no_license | kerniee/inno_intership_1_test_task | 70211e153450011c427df595a02e3574dfe7ed9f | fc0619ef54b00806a3b59f3c07c1c1684682d65b | refs/heads/master | 2023-05-23T02:24:40.083723 | 2021-06-21T16:15:04 | 2021-06-21T16:15:04 | 365,855,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | py | # coding: utf-8
"""
Teleagronom
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
... | [
"karapys.mor@gmail.com"
] | karapys.mor@gmail.com |
c565643c4f2c79d599b5eb9b424e914fcb11f621 | 88906fbe13de27413a51da917ebe46b473bec1b9 | /Part-II/Project-2-Data-Visualisation/Chapter 15 - Generating Data/random_walk_2.py | a41d63019aa7797ec13e4ca91ffd50709a3776ab | [] | no_license | lonewolfcub/Python-Crash-Course | 0b127e40f5029d84ad036263fd9153f6c88c2420 | 322388dfb81f3335eeffabcdfb8f9c5a1db737a4 | refs/heads/master | 2021-01-01T16:45:50.617189 | 2017-10-27T14:23:58 | 2017-10-27T14:23:58 | 97,911,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | from random import choice
class RandomWalk():
"""A class to generate random walks."""
def __init__(self, num_points=5000):
"""Initialize attributes of a walk."""
self.num_points = num_points
# All walks start at (0, 0)
self.x_values = [0]
self.y_values = [0]
def ... | [
"lonewolfcub020@gmail.com"
] | lonewolfcub020@gmail.com |
f9200b25f79758ec7d91ceee76d4b01687175579 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/twentyPercent/rank_3uzv_J.py | 675fb8afa38dcf61c4544fa34ba93dc97dac281a | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
e78096450e3762e13172fbb51ef0a06a34d1680c | 957e5aef8b48cf21804d51447ed93a026aab35ff | /script/chk_dup.py | 1fdcc86fc2f8ac8af76c1ce69c5e116ae660a27d | [
"Apache-2.0"
] | permissive | dannysauer/oidctest | 045a438ee934b5c9e27aae9876765e08dac16a37 | e7593e02af7caa71f92220ad0f5b67bb40e30f97 | refs/heads/master | 2021-07-08T07:36:30.362597 | 2020-05-14T07:21:25 | 2020-05-14T07:21:25 | 152,679,266 | 0 | 0 | NOASSERTION | 2018-10-12T01:54:49 | 2018-10-12T01:54:49 | null | UTF-8 | Python | false | false | 292 | py | #!/usr/bin/env python3
import json
ap = json.loads(open('assigned_ports.json').read())
inv = {}
for iss, port in ap.items():
try:
inv[port].append(iss)
except KeyError:
inv[port] = [iss]
for port, iss in inv.items():
if len(iss) != 1:
print(port, iss) | [
"roland@catalogix.se"
] | roland@catalogix.se |
c8e318873904d5e634587d89ee920d2feffa58ee | 6cc37dfc44880f57823bb9523ea5f8206d5e3f22 | /python_OOP/labs_and_homeworks/07_solid_exercise/05_emails.py | adeddfd64439568ad2e5a90b04ba83bc9cc780b0 | [] | no_license | dimitar-daskalov/SoftUni-Courses | 70d265936fd86712a7bfe0586ec6ebd1c7384f77 | 2054bc58ffb5f41ed86f5d7c98729b101c3b1368 | refs/heads/main | 2023-05-31T06:44:35.498399 | 2021-07-11T10:16:08 | 2021-07-11T10:16:08 | 322,896,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | # SRP (Single Responsibility Principle)
from abc import ABC, abstractmethod
class IEmail(ABC):
@abstractmethod
def set_sender(self, sender):
pass
@abstractmethod
def set_receiver(self, receiver):
pass
@abstractmethod
def set_content(self, content):
pass
class Email... | [
"dimitar.daskalov22@gmail.com"
] | dimitar.daskalov22@gmail.com |
03fc2be0614708dcfbee8c1d6b82759f19bcf7fc | 59f4e4f57c4590b9fe969274960c49e7218ed275 | /.venv/bin/ptw | 6cb2d4a3f8ba91373047a8d4474bb0d5b0042e9d | [] | no_license | MohamadSheikhAlshabab/math-series | be82710d0cb0e8784543ee097c569964dfb8a376 | 6fe5772e2b67beadebbf6d27676bbe5aa91bd367 | refs/heads/master | 2022-12-06T12:56:18.678827 | 2020-08-17T16:49:47 | 2020-08-17T16:49:47 | 288,155,962 | 0 | 0 | null | 2020-08-20T22:58:04 | 2020-08-17T10:56:20 | Python | UTF-8 | Python | false | false | 420 | #!/home/mohamad/401/math-series/.venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'pytest-watch==4.2.0','console_scripts','ptw'
__requires__ = 'pytest-watch==4.2.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[... | [
"alshabab.moh@gmail.com"
] | alshabab.moh@gmail.com | |
815a53ab6d3b0f60494ac49b3988449512470445 | 38da8edb2102ad29eda8784cbb845cac0b96bbca | /151_lambda_expression.py | f4ae995bf65597a88920a1d5cd79443c18b826fd | [] | no_license | Prateek2201/Python_codes | 1a655a3e6820e7ecb1fb8a8abd266a8ae0508cb5 | 436a36544edac80cbe420c7b9ddb718df46b68da | refs/heads/main | 2023-08-01T03:10:51.864186 | 2021-09-17T18:08:40 | 2021-09-17T18:08:40 | 407,635,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | ##def is_even(a):
## return a%2==0
##print(is_even(5))
##
##is_even2=lambda a:a%2==0
##print(is_even2(6))
##def last_char(s):
## return s[-1]
##print(last_char('Prateek'))
##
##last_char2=lambda s: s[-1]
##print(last_char2('Prateek'))
def f(s):
if len(s)>5:
return True
return Fa... | [
"noreply@github.com"
] | Prateek2201.noreply@github.com |
aae99ee3d026cd50f0a7c13cedd8cb9ba1957bd9 | 5bad0a225a8b077f5600695e9943dfae43d3f2ed | /mrna/cox/SKCM/cox_regression.py | 10e9a42e54f6beae3beabff1483de7711a676ef5 | [
"MIT"
] | permissive | carrie138/onco_lnc | d13ddb31b7a3aabd0274fb9b771370500678a5c5 | e8d20e43026ffe4651bd25783db36cabc2c1519f | refs/heads/master | 2021-01-12T19:19:36.064852 | 2016-07-15T11:58:28 | 2016-07-15T11:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,310 | py | ## A script for finding every cox coefficient and pvalue for every mRNA in SKCM Tier 3 data downloaded Jan. 5th, 2016
## Load necessary modules
from rpy2 import robjects as ro
import numpy as np
import os
ro.r('library(survival)')
import re
##This call will only work if you are running python from the command line.
... | [
"jordananaya@gmail.com"
] | jordananaya@gmail.com |
57b36a522a4a39bda75590c6ed08055b2fd1ba63 | f3d8e1351e52526959e2d44d72fd716924f1751d | /problems/56_merge_intervals.py | 5b845275a27f0c956cd1a1031bf770ef73b34f38 | [] | no_license | xueyuanl/leetcode-py | c27a4faff5b9040d57cf864d3a11f1683d8182e3 | 03d3e34522c8c819388634ab4b63077da864a4e1 | refs/heads/master | 2021-07-14T23:40:32.913822 | 2021-07-14T13:43:19 | 2021-07-14T13:43:19 | 206,973,737 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | class Solution(object):
def merge(self, intervals):
"""
:type intervals: List[List[int]]
:rtype: List[List[int]]
"""
if len(intervals) < 1:
return []
res = []
sorted_intervals = sorted(intervals)
new_pair = sorted_intervals[0]
res.... | [
"15186846+xueyuanl@users.noreply.github.com"
] | 15186846+xueyuanl@users.noreply.github.com |
d2c204a4d44b2ff1d4ff5c3b10a7ccc2a91de537 | 1c904e7b4ab661c9f90536c9bfcde970540271d8 | /setup.py | 918cc1176dfec9a809df9ea34f452fb6de684980 | [] | no_license | koslab/pydatamall.webui | a7803a652441acb74adc75d2d09d9dced7cc9520 | b483e8ca1aeef73a2c2c430cabf74e8fd0d0daf2 | refs/heads/master | 2021-01-10T07:56:48.159898 | 2015-11-20T15:55:09 | 2015-11-20T15:55:09 | 45,684,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | from setuptools import setup, find_packages
import os
version = '1.0'
long_description = (
open('README.txt').read()
+ '\n' +
'Contributors\n'
'============\n'
+ '\n' +
open('CONTRIBUTORS.txt').read()
+ '\n' +
open('CHANGES.txt').read()
+ '\n')
setup(name='pydatamall.webui',
... | [
"kagesenshi.87@gmail.com"
] | kagesenshi.87@gmail.com |
a3a7c37768dbc87654254b4054e569995dd12bf2 | facbdbdadacd23f6c83d266116dc14744741070f | /Core_Python/Day-7/9.py | 3b6d63c59296372612328ade2b105e64d20f3ed5 | [] | no_license | Yogesh-Singh-Gadwal/YSG_Python | 51b6b53fe34567bf066b6e487c00da766b47ac6b | f0d6841e1f92d1d2b27d8ecdd332d40b49a5ca69 | refs/heads/master | 2023-06-06T04:40:12.004713 | 2021-07-06T19:59:26 | 2021-07-06T19:59:26 | 292,482,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | # Python
if False:
print('Both value are same .')
else:
print('Condition is false')
print('Rest Data')
| [
"noreply@github.com"
] | Yogesh-Singh-Gadwal.noreply@github.com |
6e87c83ff642eaea9ea8bc5eccfac1ca58e50696 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_142/863.py | a5243b5969ac2f11082e3e3b90863e0c03738b35 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | class GameInstance:
def __init__(self, init_str):
self.strs = init_str
self.total_action = 0
self.tab_strs = []
self.tabularize()
def tabularize(self):
#set_trace()
N = len(self.strs)
for i in range(0, N):
self.tab_strs.append([[self.strs[i][0... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e5f2b67f813053e0c4f7d0204c27f0484fd58db9 | 89e3f694021f261b95e494d2b479367bacde8251 | /followthemoney/cli/ocds.py | 536ec92f0f70666a97530d0dcc850e5d8f6e74e3 | [
"MIT"
] | permissive | dchaplinsky/followthemoney | 6f9c05f430f8bfb04f7841378fd2ee5cf9b33235 | a2a150f558acb5a1c985b9dc891c98c0fdf2f17e | refs/heads/master | 2020-09-10T08:16:14.617602 | 2019-11-14T09:15:52 | 2019-11-14T09:15:52 | 221,699,199 | 1 | 0 | MIT | 2019-11-14T13:03:41 | 2019-11-14T13:03:41 | null | UTF-8 | Python | false | false | 5,146 | py | import json
import click
import logging
from pprint import pprint # noqa
from followthemoney import model
from followthemoney.cli.cli import cli
from followthemoney.cli.util import write_object
log = logging.getLogger(__name__)
IDENTIFIERS = {
'TRADE_REGISTER': 'registrationNumber',
'TAX_ID': 'vatCode',
... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
43d460ce6a3a415277321f9a4f8658f6d7c4dbec | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_parody.py | 947ea401561ad67bf848e6ab6ddc4814d3613dd2 | [
"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 | 340 | py |
#calss header
class _PARODY():
def __init__(self,):
self.name = "PARODY"
self.definitions = [u'to copy the style of someone or something in a humorous way: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
r... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c515faf8793eb07a829146f36ac33429993b55ef | 8ff6c3e513e17be6c51b484bed81d03150bdd175 | /2013-04-analytic/part2/ex52b.py | be5ca1d980f5e1a94ea1ffb0ae488dd765182979 | [] | no_license | ricbit/Oldies | f1a2ac520b64e43d11c250cc372d526e9febeedd | 2d884c61ac777605f7260cd4d36a13ed5a2c6a58 | refs/heads/master | 2023-04-27T20:35:19.485763 | 2023-04-26T04:45:44 | 2023-04-26T04:45:44 | 2,050,140 | 40 | 8 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | import itertools, sys
def surjection(seq):
hist = {}
for i in seq:
hist[i] = 1 + hist.get(i, 0)
m = max(hist.iterkeys())
for i in xrange(1, 1 + m):
if hist.get(i, 0) < 3:
return False
return True
def triple_surjections(n):
for seq in itertools.product(xrange(1, 1 + n / 3), repeat=n):
if ... | [
"bluepenguin@gmail.com"
] | bluepenguin@gmail.com |
cf53263187c3025a04b1d121a9c4f9bfaa1f2106 | 3d69b7fe8fa95fcd6dbab25885f2e3e42bc891d6 | /src/nlp/classification/tf1/xlnet/prepro_utils.py | fc945d6d64a46f483a18389895831414c5f33e17 | [
"Apache-2.0"
] | permissive | wu-uw/OpenCompetition | ac652d066f667dc2b3061947af5ea0425643a1b5 | 9aa9d7a50ada1deb653d295dd8a7fe46321b9094 | refs/heads/master | 2021-01-03T04:59:28.987099 | 2020-03-02T07:49:11 | 2020-03-02T07:49:11 | 239,932,371 | 0 | 0 | Apache-2.0 | 2020-03-02T07:49:12 | 2020-02-12T05:12:02 | Python | UTF-8 | Python | false | false | 5,013 | py | # coding=utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import unicodedata
import six
from functools import partial
SPIECE_UNDERLINE = '▁'
def printable_text(text):
"""Returns text encoded in a way suitable for print or `tf.logging`."""
#... | [
"ran.wang.math@gmail.com"
] | ran.wang.math@gmail.com |
44cdec8d130987c667d3ddd3a464bad33f309eeb | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envcontacts/migrations/0050_auto_20210219_2128.py | b9ec01c328ffb1adf3231e767f6654bbfec32bcf | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 1,175 | py | # Generated by Django 3.1.7 on 2021-02-19 21:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envcontacts', '0049_auto_20210219_2127'),
]
operations = [
migrations.AlterField(
model_name='person',
name='email1_... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
398cdcff7d1ab5344ac51ed8db7f7047b69180be | 20ace38b89c0ebaa0738753fcd11b0fdd4ed21cd | /CMSSW_8_0_24/src/HeavyIonsAnalysis/JetAnalysis/python/jets/akSoftDrop2PFJetSequence_PbPb_mb_cff.py | b80e6b111102b987d3b344d8044b1d74a6fdc23b | [] | no_license | ssanders50/pPb_2016_v0 | 3c32c2920067a2f8a0a7a7fadba6225babf9a905 | 9fc4ae61cf4343c88ce6666f55c0738f963754a3 | refs/heads/master | 2020-12-12T16:30:41.253014 | 2020-02-14T21:51:17 | 2020-02-14T21:51:17 | 234,162,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,103 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"ssanders@ku.edu"
] | ssanders@ku.edu |
02ba996948b22fbb2fda69fed6c6a4eb1ca4e2c6 | b528b880b1ae104cc03118b2ca1421b8bfb9bd00 | /Django/djangoEnv/bin/easy_install-2.7 | 70ede9d56547f116a1620382639c99b94f875a82 | [] | no_license | hkneal/DojoAssignments | c83288555913aa6a1071845353ab91cc159e0bdd | 4f9c6999853a16cab6ab7e9d7b99463e6b418016 | refs/heads/master | 2021-01-18T16:48:28.139859 | 2018-05-17T04:43:50 | 2018-05-17T04:43:50 | 86,770,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | 7 | #!/Users/HKN/DojoAssignments/Django/djangoEnv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"hiramk@comcast.net"
] | hiramk@comcast.net |
4b50d3a9c44f387818b24514e492f94d5951050f | e0527bce5c53a196752d3a16adf50cb60754de5f | /03-Workshop/Workshop-Questions/C_fun_with_flags.py | 8627af965e3f1c5c0e3e439a2dc9c83893f634a1 | [] | no_license | ARWA-ALraddadi/python-tutorial-for-beginners | ddeb657f419fbc176bea273bc9fb6b88d1894191 | 21cedfc47871ca4d25c2382464c60ab0a2121205 | refs/heads/master | 2023-06-30T20:24:30.688800 | 2021-08-08T08:22:29 | 2021-08-08T08:22:29 | 193,094,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | #--------------------------------------------------------------------
#
# Fun With Flags
#
# In the lecture demonstration program "stars and stripes" we saw
# how function definitions allowed us to reuse code that drew a
# star and a rectangle (stripe) multiple times to create a copy of
# the United States flag.
#
# As... | [
"noreply@github.com"
] | ARWA-ALraddadi.noreply@github.com |
fe416a0e81300a32016388151c240e79727ff3ad | e7ec251afc62616525c573c1b1b9e6416454aaaa | /bcbio/pipeline/__init__.py | 298c4775b143c01b611e1483575f90280a9da72a | [
"MIT"
] | permissive | YTLogos/bcbio-nextgen | 157e023341b9085b6c3f36d68c2b68ae31e063f2 | f964a25ab74a31551273b7e50518f3451c90f473 | refs/heads/master | 2022-12-28T15:11:28.127131 | 2017-09-20T18:58:45 | 2017-09-20T18:59:57 | 104,303,076 | 1 | 1 | MIT | 2022-12-12T12:18:27 | 2017-09-21T04:52:21 | Python | UTF-8 | Python | false | false | 598 | py | """High level code for driving a next-gen analysis pipeline.
This structures processing steps into the following modules:
- lane.py: Analyze a single fastq file.
- fastq.py: Utilities to retrieve fastq files.
- alignment.py: Align to a reference genome.
- sample.py: Analyze a sample, which may consist of... | [
"chapmanb@50mail.com"
] | chapmanb@50mail.com |
f7db4248308429362c6ea3a4382920078bbd0636 | 465097858def678018ff76865bb09d34735d8eb9 | /mysite/blog/forms.py | 0d517f8db2dec175dc7af7cd362d511e1f0ffa33 | [] | no_license | bunnycast/django_girls | f9c3f3eb30955db64d2e643109bd2aa483b0f4b7 | fc24a8301dd55d98b790c8fb19bd9e68129a7c63 | refs/heads/master | 2022-11-13T09:12:30.860813 | 2020-07-02T02:28:51 | 2020-07-02T02:28:51 | 275,992,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django import forms
from blog.models import Post, Comment
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ('title', 'text',)
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ('author', 'text',)
| [
"berzzubunny@gmail.com"
] | berzzubunny@gmail.com |
5e9db43277324b837743fd0c041324c531ce89b3 | 6dc4d2b5abe4317f154dd0e81f45fda3501e7e52 | /Syntax/comments_in_python.py | a837f69ee613728945e70ed6adf880d271a7d648 | [] | no_license | Sanket1228/pythonBasics | 89376a7bbd3292d0f19fbbc8b3baae576abf9d75 | 94f68fa888cb1d8f61c2466ad8b395c769fe6f37 | refs/heads/master | 2023-06-26T22:54:03.774872 | 2021-07-22T12:31:10 | 2021-07-22T12:31:10 | 280,104,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | #This is comment
print("Hello, World ! ")
| [
"sanketpatil1228@gmail.com"
] | sanketpatil1228@gmail.com |
77d9d1e0b97cfe7890c04957f93b007a82d99098 | d318975fdf4daeccecbf90c24aba5009d51637eb | /server/env/bin/symilar | 2bc1d53bf60868c4ab248a62a2e1b4c6610295af | [] | no_license | Jrius4/data-shuffle | 759702914b052c737b75f8cf5f84170f4e0cae40 | 4a0e7ac500d91903fcf4806d878ad01083068119 | refs/heads/master | 2023-01-24T10:38:59.467067 | 2019-10-13T20:01:33 | 2019-10-13T20:01:33 | 214,883,377 | 0 | 0 | null | 2023-01-04T12:23:25 | 2019-10-13T19:47:20 | Python | UTF-8 | Python | false | false | 274 | #!/home/jrius/Kaxiuz/investment/datastore/v1-UI/server/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"kazibwejuliusjunior@gmail.com"
] | kazibwejuliusjunior@gmail.com | |
b305b26622db5f2f5eb4e89f70911e77ea7254d5 | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/CodingInterviews_2/30_bao-han-minhan-shu-de-zhan-lcof.py | e9a86f1b3ff003b07e9bfbf7235100b290513e37 | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-05-06 23:17:56
# @Last Modified : 2020-05-06 23:17:56
# @Mail : lostlorder@gamil.com
# @Version : alpha-1.0
# 定义栈的数据结构,请在该类型中实现一个能够得到栈的最小元素的 min 函数在该栈中,调用 min、push 及 pop 的时间复杂度都是 O(1)。
#
#
#
# 示例:
#
# ... | [
"wzy-511@163.com"
] | wzy-511@163.com |
36173a6b0f8010fa465e6f58b4576b374a85c962 | 24b1fa231f4e89f1a588c09ebee6fe4da6915c53 | /Tutorials/Canvas/Fundamental-Theorem-Algebra.py | 39eb49279e27df600cc9cb59f442cec0a5a30844 | [] | no_license | cyrt63/demos | a429214154cf0e51b58710f67670e1d902bfcac6 | a4b54b862dba4ad33a707511896324829f4cc7b1 | refs/heads/master | 2020-04-08T13:51:40.823058 | 2015-04-21T14:01:41 | 2015-04-21T14:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | from browser import *
from workbench import *
from math import *
from units import *
from easel import *
from eight import *
popup = window.open("","","width=800,height=600")
popup.document.body.style.backgroundColor = "202020"
popup.document.body.style.overflow = "hidden"
popup.document.title = "Visualizing Geometric... | [
"geometryzen@gmail.com"
] | geometryzen@gmail.com |
9a9b603dacd11b6877b6f71b4b1dbcf95b157098 | cd0f3fa5c3b202599812ac8b49e374fe2b2f2e8b | /ExerciciosFixacao/Cap08/C08EXFIX01.py | 2da857eb09708d1fde3beae9840f79314ba2abba | [] | no_license | J-AugustoManzano/livro_Python | 46c14dc4bc5fb361d850fcd361477a952de172c2 | e42b79ef78c6b1ab936fe9a13d32ddc94deeb2a8 | refs/heads/main | 2023-06-25T03:10:30.297226 | 2023-06-08T23:34:54 | 2023-06-08T23:34:54 | 354,116,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | a = []
for i in range(10):
a.append(input("Entre o {0:2}o. nome: ".format(i + 1)))
print()
for i in range(10):
print("{0:2}o. nome {1}.".format(i + 1, a[i]))
enter = input("\nPressione <Enter> para encerrar... ")
| [
"noreply@github.com"
] | J-AugustoManzano.noreply@github.com |
e32226900cf40f40d2d4e42c722d43e09866fa5f | b65f31d9d273c3d4bb826ff83a805368570bcd4d | /Lesson 13 - Email Search/mailgui.py | c5fb8aa0db53048004cfdfd786ea43e8f8f717fb | [] | no_license | kobaltkween/python2 | 3fde6cc9ca1413b900c87656d8ceb99cb3f34f42 | f7e529abd303b65f0b794c8a9ed87dbf085541a8 | refs/heads/master | 2020-12-31T05:09:39.297693 | 2016-04-13T23:27:10 | 2016-04-13T23:27:10 | 56,192,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | from tkinter import *
from maildb import msgs
import datetime
import mysql.connector as mysqlc
from database import loginInfo
def getDate(s):
"""
Assumes a date form of yyyy-mm-dd, returns a corresponding datetime.date.
"""
syear = s[:4]
smonth = s[5:7]
sday = s[8:]
return datetime.date(int... | [
"kobaltkween@gmail.com"
] | kobaltkween@gmail.com |
86fd6f568e1499f023fb669731c15d2a3fb6510b | 9cd10b1bb27bd31259b278a6339d1101144f5e7b | /data/__init__.py | 414c8749c575ec64d1c53890ce8dcb8a0c6853d9 | [] | no_license | wangfin/Earthquake-Electromagnetic-Anomaly-Detection | ed2d8a12da1ebec456dfc460592cead5abd23352 | de0ad9b44979fbc6b4cecccc592f663b17a7ee04 | refs/heads/master | 2023-01-28T06:39:16.252684 | 2020-11-24T07:40:41 | 2020-11-24T07:40:53 | 290,426,971 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | #!/usr/bin/env python
# @Time : 2020/8/26 15:53
# @Author : wb
# @File : __init__.py.py | [
"769790863@qq.com"
] | 769790863@qq.com |
1c137c520a51b109eb7c9e5c70390f86272bb782 | 39759112ee3a84aa78b15be8cc4888ff6a6b1bc0 | /webcast/admin.py | e804dbbc9ed63d84a585a3bea44e642bd77059d5 | [] | no_license | ecolemo/showbox | bd8b5c8eb30fc3704a7aaf559c0fa0820014a8f7 | 6cb0f3d6394897ebb34f0602787793c8a49f0953 | refs/heads/master | 2021-01-22T14:45:38.704992 | 2011-12-03T05:46:57 | 2011-12-03T05:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.contrib import admin
from showbox.webcast.models import *
admin.site.register(Feed)
admin.site.register(Channel)
| [
"pak.youngrok@gmail.com"
] | pak.youngrok@gmail.com |
c980620389a0801db5b4c61284ea6fb1efc63e96 | e11a1d6d38227bdfaef88eb06386d719b5c7ade9 | /tests/test_mail_parser.py | 0305664222fbc9f8940e85e22500786222a35147 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | spankders/mail-parser | 3d955d3bec118806cc7a7a5d492ed9152ec2fcc7 | 29196a76851dfa426b59f8141510cb8808ed5ec1 | refs/heads/master | 2020-04-28T06:33:08.552262 | 2019-02-05T22:15:18 | 2019-02-05T22:15:18 | 175,062,966 | 1 | 0 | Apache-2.0 | 2019-03-11T18:43:09 | 2019-03-11T18:43:09 | null | UTF-8 | Python | false | false | 21,647 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2016 Fedele Mantuano (https://twitter.com/fedelemantuano)
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/lice... | [
"mantuano.fedele@gmail.com"
] | mantuano.fedele@gmail.com |
46afdbc213039bded37448eb93dc6e30299d328f | ac7c02f29a837fdd67d2bdc77bba182080e98ed8 | /codekata/simpleinterest.py | b38138ffa7828f55aa6627b446c6d995a7baf9e8 | [] | no_license | YaminiNarayanan-359/guvi | 7630c309a86365e4367fda1ddab4e966e7d1ac5b | a52b6353100b4e9b83a003e6a327fbfb174daac4 | refs/heads/master | 2020-06-03T00:08:00.389609 | 2019-07-16T06:59:53 | 2019-07-16T06:59:53 | 191,355,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | j,k,l=list(map(int,input().split()))
print(int((j*k*l)/100))
| [
"noreply@github.com"
] | YaminiNarayanan-359.noreply@github.com |
f3ae9c1a7bf1d55613b290744e12c443dcac932d | 693568f813603806fbde976a1c69a97b06195708 | /mods/tests/test_install.py | 05669735deeb25b553bc8a1df5f2d8a56faf3514 | [
"MIT"
] | permissive | danlkv/pywebviz | c664a584c5a16d66c49aa233b69ef3b29ccaa081 | 5892ef90f28dbd43c33fefbfa5a199d15322a120 | refs/heads/master | 2023-02-11T06:06:13.451408 | 2021-01-13T07:22:08 | 2021-01-13T07:23:17 | 172,800,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from importlib import reload
import libvis.modules.installed as modules
import libvis_mods
from pathlib import Path
mocks = Path(__file__).parent / 'mocks'
def test_install_files():
global modules
pyfile, webfle = mocks/'module.py', mocks/'blah.coffee'
try:
libvis_mods.install('Test', pyfile, we... | [
"lkv97dn@gmail.com"
] | lkv97dn@gmail.com |
fb0b3cea6186400de9e2106c276c471deea1a9c1 | e67fd8a02af7c913d5469b86b1fcc02a3497d863 | /organizing_hub/migrations/0004_auto_20181003_2101.py | 412f0ae3cf448c84b4866ed408a26659932c1147 | [
"MIT"
] | permissive | Our-Revolution/site | 37268727ab4761ca5d3e222b9b11c809327e01c2 | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | refs/heads/master | 2023-01-20T18:10:57.479047 | 2019-08-02T17:26:52 | 2019-08-02T17:26:52 | 71,601,229 | 4 | 3 | MIT | 2023-01-12T08:22:58 | 2016-10-21T22:19:53 | Python | UTF-8 | Python | false | false | 744 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-10-03 21:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organizing_hub', '0003_organizinghubloginalert_alert_level'),
]
operations = [
... | [
"cjmab28@gmail.com"
] | cjmab28@gmail.com |
f283b2717969e97a9084442cb738ded2f130471c | 5896669c7ccf3efe979a4780516fc810844bfbba | /conf.py | 790504a29ba2e1d53b75d3f3ec6fffc60661f7ed | [
"MIT"
] | permissive | Hiestaa/miniboard-factorio-manager | ea1ff7e6084ef88869db635cb866517601f5b055 | 9ff5f1f063f17c0eaa47f43ac05bce0e74d90d45 | refs/heads/master | 2021-01-01T03:47:25.674434 | 2016-04-30T14:45:03 | 2016-04-30T14:45:03 | 57,064,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,373 | py | # -*- coding: utf8 -*-
from __future__ import unicode_literals
import logging
import netifaces
def getIpWindows(adapteridx):
try:
import wmi
except:
logging.error("You must need Win32com (win32 extensions for python)")
raise
adapters = wmi.WMI().Win32_NetworkAdapt... | [
"rom1guyot@gmail.com"
] | rom1guyot@gmail.com |
54fd9901b39b49d2d42047b88b691cb6d03284de | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_125/ch40_2020_04_06_19_40_46_900950.py | 3b9243a2901e11cca6dba9dde4a7da4dd0698904 | [] | 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 | 122 | py | def soma_valores(n):
num=len(n)
i=0
soma=0
while i=<num:
soma= [i]+n
i+=1
return soma | [
"you@example.com"
] | you@example.com |
08ad9df9dd16c3d904a326e08dbe5b1848f362ff | c157097e9883757f588c6da74d419b964a1c75cc | /python_fundamentals/08-user-input/command-line-parameters-01.py | 25984b506bf0dc30f4e2eb2bba2086dcb995dfb2 | [] | no_license | sudhansom/python_sda | 8d888216740c559ab66b700d3bea54c05caa0333 | 25d563854ef9d31ab910f84c973e48e3259de585 | refs/heads/master | 2022-04-26T15:26:15.263236 | 2020-04-25T07:32:10 | 2020-04-25T07:32:10 | 257,564,556 | 0 | 0 | null | 2020-04-29T16:41:37 | 2020-04-21T10:49:59 | Python | UTF-8 | Python | false | false | 191 | py | import sys
my_dict = {}
country_list = sys.argv[1:]
for i in range(0, len(country_list), 2):
my_dict[country_list[i]] = country_list[i+1]
print(f"\nDictionary details : \n\n {my_dict}")
| [
"bkspoudel@gmail.com"
] | bkspoudel@gmail.com |
79669a5b1eccf60216afd0fadf1e13d7389fd0d1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_168/109.py | 50abe5d4745d2991cd4d5af4fe4809c0886ebe1c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | #!/usr/bin/python
import sys
import numpy as np # http://www.numpy.org/
import scipy # http://scipy.org/
import networkx as nx # https://networkx.github.io/
import sympy # http://www.sympy.org
import itertools
import operator
import string
import fractions
#import visual # vpython.org
#imp... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
77f456482ecebbe990adfabf0b25a4c0dd0fd7e7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02724/s623079670.py | d862e55f1b0e4e1a22bc93ff1477b6ed38532fd8 | [] | 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 | 60 | py | x=int(input())
y=x//500
z=x-500*y
a=z//5
print(1000*y+a*5)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7b993e2d2391a2c6f2fdf7c9b7dcc0ae0b47bb85 | 509823ea14f04d5791486b56a592d7e7499d7d51 | /parte05/ex5.05_remover_duplicados_lista.py | e2c0ee58c5eaf7c39ca0c9d8479cad0f6d096521 | [] | no_license | Fhernd/Python-CursoV2 | 7613144cbed0410501b68bedd289a4d7fbefe291 | 1ce30162d4335945227f7cbb875f99bc5f682b98 | refs/heads/master | 2023-08-08T05:09:44.167755 | 2023-08-05T19:59:38 | 2023-08-05T19:59:38 | 239,033,656 | 64 | 38 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # Ejercicio 5.5: Remover los valores duplicados en una lista.
numeros = [1, 2, 3, 1, 1, 1, 4, 5, 6, 3, 3, 2, 5]
print('Contenido actual de la lista `numeros`:', numeros)
print('Cantidad actual de la lista `numeros`:', len(numeros))
print()
# Solución #1:
print('Solución #1:')
numeros_sin_repetir = []
for n in numer... | [
"johnortizo@outlook.com"
] | johnortizo@outlook.com |
ff21461f29ea8d9161ba90e7c5ee44d3fba4e68d | f5ee595836adfb75047d2798928ca020533bd597 | /nanobrok/ext/ssl.py | 43a2b503b138db55be7ab8dc961127139043fb33 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | santaklouse/Nanobrok | efcc836484a799f614c21d50a75e0f5d1088f8bb | 680b112f76e248f64c021337769bef163527bce0 | refs/heads/master | 2023-08-13T03:52:25.137896 | 2021-09-18T18:11:13 | 2021-09-18T18:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | # TODO disabled features
# from flask_talisman import Talisman
# def init_app(app):
# # need to run with disable debug
# talisman = Talisman(app)
| [
"mh4root@gmail.com"
] | mh4root@gmail.com |
964bb062f8e25a61f0000a0172d3c72f53622e37 | 5a6555a37ea574a6a02eb4a612171fec86724edf | /Django/mongodb/mongodb/settings.py | 2a7966a6a2d2cdbcf4d6cfcd94989fd091cc3df8 | [] | no_license | heiyouyou/Python | 9b014b3d3619824eb739c7d87fa5304fa2cf1546 | 74b0b0d1e4d678b74ada61b03a026b64f2a084d9 | refs/heads/master | 2021-05-06T13:48:22.616248 | 2018-10-24T10:33:19 | 2018-10-24T10:33:19 | 113,288,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for mongodb project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"1337238043@qq.com"
] | 1337238043@qq.com |
dd43ada4c7651ae8a3fc87fb17b8fa37eba4718b | 241c51904c2501a85e71da62d4a9a79f8656dbb4 | /transformers/models/prophetnet/modeling_prophetnet.py | 11197182f85b4b58f126b486ffbda39e24f29f4b | [
"Apache-2.0"
] | permissive | zhouhaoyi/TripletAttention | c3d7a37b00d80286e802324859156841f33841d0 | 84bb8d7a7a45dfd37c82849c9ae6ed8a41bb0718 | refs/heads/main | 2023-08-25T22:35:59.828152 | 2021-10-27T04:27:13 | 2021-10-27T04:27:13 | 374,306,104 | 15 | 3 | Apache-2.0 | 2021-09-19T08:33:38 | 2021-06-06T08:22:35 | null | UTF-8 | Python | false | false | 103,663 | py | # coding=utf-8
# Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team.
#
# 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... | [
"1095715895@qq.com"
] | 1095715895@qq.com |
d421bd86eebc600f231707b7649f32908802167c | 8b2b61d1c6a9d58f79f65e4e91c281a5fb53ade2 | /magic/magic.py | a781e8d46efd90383017430f97931c80d8ccaae7 | [] | no_license | PiotrDabkowski/NeuralMagic | ffcdcc7f24fbc825eabe48ddfacddf84127a41be | cad50c9ba77b17b67d8b15c1fbed02487373ea21 | refs/heads/master | 2021-01-22T18:38:39.446605 | 2017-03-15T17:28:02 | 2017-03-15T17:28:02 | 85,101,058 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,775 | py | import tensorflow as tf
import numpy as np
from tensorflow.contrib import layers as tf_layers
from dense_net import DenseBlock, TrainsitionLayer, bottleneck_block
import random_hole
import tiny_imagenet
# Based on DenseNets but with an extra trick with dilated convolutions to increase receptive fields
# Basically, i... | [
"piodrus@gmail.com"
] | piodrus@gmail.com |
c54fa934590f5cb47a549f57d815aa35745143c9 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_dpscertificate_info.py | 186ac98ef17029cf91c7ff582d8755547b35601b | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 9,585 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
a5f3a1d7bc6d6ea8f54a13b11fa07fa758a81d39 | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210714191514.py | 60ba3be53c8d65f3e3bf954ef6f39baf671d731c | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,787 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
5cdb06fe2b728a7c56950f0ef7ab873a08acf5b7 | df7b40e95718ac0f6071a0ba571b42efc81cf6de | /mmseg/models/backbones/fightingcv/conv/DepthwiseSeparableConvolution.py | 8dde19054b1cbfee8452cf320b61bf165bbdeceb | [
"Apache-2.0"
] | permissive | shinianzhihou/ChangeDetection | 87fa2c498248e6124aeefb8f0ee8154bda36deee | 354e71234bef38b6e142b6ba02f23db958582844 | refs/heads/master | 2023-01-23T20:42:31.017006 | 2023-01-09T11:37:24 | 2023-01-09T11:37:24 | 218,001,748 | 162 | 29 | Apache-2.0 | 2022-11-03T04:11:00 | 2019-10-28T08:41:54 | Python | UTF-8 | Python | false | false | 899 | py | import torch
from torch import nn
class DepthwiseSeparableConvolution(nn.Module):
def __init__(self,in_ch,out_ch,kernel_size=3,stride=1,padding=1):
super().__init__()
self.depthwise_conv=nn.Conv2d(
in_channels=in_ch,
out_channels=in_ch,
kernel_size=kernel_size,
... | [
"1178396201@qq.com"
] | 1178396201@qq.com |
14e16f4f11ae53470f7f9898327d4ed7af13658a | ee6fc02e8392ff780a4f0d1a5789776e4d0b6a29 | /code/practice/abc/abc017/b.py | 00e2723566008b22396a8f37944c3663d2794fdc | [] | no_license | mollinaca/ac | e99bb5d5c07159b3ef98cd7067424fa2751c0256 | 2f40dd4333c2b39573b75b45b06ad52cf36d75c3 | refs/heads/master | 2020-12-22T11:02:13.269855 | 2020-09-18T01:02:29 | 2020-09-18T01:02:29 | 236,757,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
s = input()
s = s.replace('ch','').replace('o','').replace('k','').replace('u','')
print ("YES") if len(s) == 0 else print ("NO")
| [
"github@mail.watarinohibi.tokyo"
] | github@mail.watarinohibi.tokyo |
f78fe98818ec4e3c7f3f8938e6c2b1cc0aacfeb5 | f030c1b724ad3a04dade2463374bd3c03e17b93c | /napari/layers/_tests/test_source.py | de9e0954979762eb743aedccddb1bc784505ff21 | [
"BSD-3-Clause"
] | permissive | sandutsar/napari | 3c8568979c320d57cdb80e2ea2a5db7ea035413b | 37d476bc0b00252177f17f25e7d1fd52ddc4bb69 | refs/heads/master | 2023-07-25T08:31:32.189843 | 2021-09-05T11:01:02 | 2021-09-05T11:01:02 | 390,003,115 | 0 | 0 | BSD-3-Clause | 2021-09-05T12:18:14 | 2021-07-27T13:56:23 | Python | UTF-8 | Python | false | false | 1,457 | py | from napari.layers import Points
from napari.layers._source import Source, current_source, layer_source
def test_layer_source():
"""Test basic layer source assignment mechanism"""
with layer_source(path='some_path', reader_plugin='builtins'):
points = Points()
assert points.source == Source(path=... | [
"noreply@github.com"
] | sandutsar.noreply@github.com |
2c2b4b54559435087b2f62c0c283829e9b7231ac | f865fdd970f8e37ea2aa5157374af8c4d6ced987 | /test/test_vehicle.py | bee0fd446e3e911c97a237c630c531bd3edceb95 | [] | no_license | gkeep-openapi/python-sdk | 7e809448355bff535b3d64e013f001e9196c5e19 | 7c4f3785b47a110386ef10109619654522c95de5 | refs/heads/master | 2022-05-28T16:13:06.643958 | 2022-05-13T14:58:39 | 2022-05-13T14:58:39 | 235,536,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # coding: utf-8
"""
Gkeep API
Gkeep API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from models.vehicle import Vehicle # noqa: E501
from swagger_cli... | [
"gkeep-ci-jenkins"
] | gkeep-ci-jenkins |
dd438d3b7d5636c160f3cf6c666427e41f69c4b1 | 73f04095a7905fa84e0ff255a07f730b4c4963d5 | /dmi/sst/mw_oe/preprocessor.py | f2971521644c9b4ab285d2fc7c8025b499385a03 | [] | no_license | bcdev/dmi-oe-sst | ff6d6d0795848ae6dbddb5a31ca5f32d7326c64a | 03c8f4558e4a3452c009fe7292777faa12188449 | refs/heads/master | 2018-09-03T21:52:25.946135 | 2018-06-04T08:18:40 | 2018-06-04T08:18:40 | 107,671,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,691 | py | import numpy as np
import xarray as xr
from numba import jit, prange
from xarray import Variable
from dmi.sst.mw_oe.pressure_processor import PressureProcessor
from dmi.sst.util.default_data import DefaultData
DEG_TO_RAD = np.pi / np.float64(180.0)
RAD_TO_DEG = np.float64(180.0) / np.pi
class Preprocessor:
TO_... | [
"tom.block@brockmann-consult.de"
] | tom.block@brockmann-consult.de |
480ee4addf549a8560df46c79e497d97793f9f92 | 6dc9f1753f0e2ccaef6fb385324ba0602a04042a | /CUHK_CPM/GPS_Project/RR_Robot/build/pi_six_axis/pi_description/catkin_generated/pkg.develspace.context.pc.py | 3d97e1ad3fa96f593b07648b7de288c2fbc559fa | [] | no_license | SunnyLyz/Deep_Learning | c413abe3ef6510b3492f0a73c9a287b4bf56ec2c | 9fa58688a7daffdded8037b9fa20c571a00f87e0 | refs/heads/master | 2021-06-21T12:12:39.450564 | 2017-07-18T12:20:45 | 2017-07-18T12:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "pi_description"
PROJECT_SPACE_DIR = "... | [
"hswong1@uci.edu"
] | hswong1@uci.edu |
f617d8bc124c5f917b3c4b77f2bbec4e77496e8d | 55ae369a3ef1593ff31a76847deb2a0d33898895 | /mango/orderbookside.py | 68ec8576483ae87a4daf73e9dff659332c7bc063 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Investin-pro/mango-explorer | 63afb2ad4fb272f5640d18d3df367a6877b3a99a | 4760bd5f9d7067e24c12941d3d7d113b1a7173ef | refs/heads/master | 2023-07-31T23:23:00.590654 | 2021-10-01T17:13:18 | 2021-10-01T17:13:18 | 402,579,362 | 1 | 3 | MIT | 2021-10-02T16:31:43 | 2021-09-02T22:31:31 | Python | UTF-8 | Python | false | false | 6,432 | py | # # ⚠ Warning
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
# LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA... | [
"geoff@knife.opgeek.lan"
] | geoff@knife.opgeek.lan |
298d061ade3f8aae2939f4898a724e5ec2c4bd4d | 432481b47d95ea2ce63f4e1ceb2e27e8a6f155a1 | /Project/Portfolio_construction/data.py | 4534e88433e71c81ef7b704e42acdf7eb5e05458 | [] | no_license | dxcv/Project-2 | 81fe3777fb7ee3db3df84d24b7321c8d40fcbb91 | 8105f996f97b657b5f1644a04f6f678005119b06 | refs/heads/master | 2020-09-08T09:58:56.829060 | 2019-11-08T17:51:36 | 2019-11-08T17:51:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | """
Importation of the data.
"""
# Author: John Sibony <john.sibony@hotmail.fr>
from util import *
from password import *
import pandas as pd
from sqlalchemy import create_engine
def extraction_data(link_engine, query):
"""Extraction of the data using Vadim's database.
:param link_engine: Link t... | [
"noreply@github.com"
] | dxcv.noreply@github.com |
3f510935494dd7cead655b91bd5e53778d5689d1 | 2d9a706cb899dfc355fe49dc6a37a0dc257b22fd | /test/crab_HIMB2_pixel_eff_sysEta_v1.py | 9d910a1c9daa66e6f3f82a2a1547f4b45f121d17 | [] | no_license | BetterWang/QWCumuGap | b1f4d3169d2019d3d465ea985fed2094279b62b6 | 61beb88799fd3c18398061b64b849ad5a849871d | refs/heads/master | 2020-04-04T22:25:33.686266 | 2018-03-16T19:27:01 | 2018-03-16T19:27:01 | 82,000,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | from CRABAPI.RawCommand import crabCommand
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
from CRABClient.ClientExceptions import ClientException
from httplib import HTTPException
config = config()
config.General.requestName = 'HIMB2_CumuGap_Pixel_eff_cent_sysPos_v1'
config.General.workArea = 'Cra... | [
"BetterWang@gmail.com"
] | BetterWang@gmail.com |
01720e33170d4697953e0ec099bcda60e4576d6c | 923f707341f7e6a4c86673c52ca796f40638619c | /809. Expressive Words.py | 3080ddd64ba075863b8c0ce379c733da3c6944d6 | [] | no_license | Huijuan2015/leetcode_Python_2019 | bb1e54801faa15ee3ef2a7bd7628b6a16033f7c7 | 36c584e8f92a0725bab7a567dfd10b918408627b | refs/heads/master | 2020-04-22T13:31:55.203162 | 2020-03-10T00:00:58 | 2020-03-10T00:00:58 | 170,412,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | class Solution(object):
def expressiveWords(self, S, words):
"""
:type S: str
:type words: List[str]
:rtype: int
"""
自己定义map,不能直接用map,还需要考虑key的顺序
def RLE(s): # return string, list
prev = -1
key = ""
cnts = []
for... | [
"huijuan1991@hotmail.com"
] | huijuan1991@hotmail.com |
fa07ea6fbca874d31aa899db0aad1b1f300167e5 | 545f817485cbf75e5b791ef39c7ff25f66a8de29 | /src/brasil/gov/portal/tests/test_externalcontent_content_type.py | 2c1a81689ccd3e718b59d796319d9a806340079c | [] | no_license | Assistevc/brasil.gov.portal | b5e85e749b19b3bc5080f1ed0b7ee727ad58bad0 | 54eb24e7e0ee81d74012a2af27bc8c9a8d56ef71 | refs/heads/master | 2021-01-15T19:05:01.335974 | 2014-12-17T13:46:55 | 2014-12-17T13:46:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,602 | py | # -*- coding: utf-8 -*-
from brasil.gov.portal.browser.content.external import ExternalContentView
from brasil.gov.portal.content.external import IExternalContent
from brasil.gov.portal.testing import INTEGRATION_TESTING
from plone import api
from plone.dexterity.interfaces import IDexterityFTI
from plone.dexterity.sch... | [
"erico@simplesconsultoria.com.br"
] | erico@simplesconsultoria.com.br |
3a60668b274b8710c9d34d5244a5c0d11c03ec42 | 22712d4a3633c93c6173b826882b01174a4c6928 | /sign/migrations/0001_initial.py | 04cd63636e29f7b459fdb68d99865fb8594ccfe3 | [] | no_license | New2object/guest2 | e5dcbdcfb6fbbe386a5da51e7b7a18f97de8815d | 30edbe54261a074fdea10150b52cb59e3bc6d781 | refs/heads/master | 2022-12-23T22:27:44.275577 | 2018-03-23T14:03:45 | 2018-03-23T14:03:45 | 124,031,317 | 1 | 1 | null | 2022-12-10T19:20:25 | 2018-03-06T06:24:45 | Python | UTF-8 | Python | false | false | 1,662 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-30 09:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"a794281961@126.com"
] | a794281961@126.com |
a008914d98ae2a6baab427010b3bfc9a8e14ee65 | 1beac95667f9236084dfecdf2550fb6e8a28b0b8 | /backend/api/decapod_api/exceptions.py | c172c2796f82a2f416855d9af5c3ba696ff06535 | [
"Apache-2.0"
] | permissive | lihaijing/ceph-lcm | 52b9d2fae24ad8b54a386cda4c528d93288d603d | d7c07fbb87dc170d5b8a0a5c8a2cf857f71ae466 | refs/heads/master | 2021-01-12T08:17:03.919876 | 2016-12-12T07:58:58 | 2016-12-12T07:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,709 | py | # -*- coding: utf-8 -*-
# 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... | [
"sarkhipov@mirantis.com"
] | sarkhipov@mirantis.com |
bc3d6165b432e622690fb5a07f75a8f96308ebd3 | 4c8a32fee60c54777396f80e6698c95fb18ae5b5 | /env/Lib/site-packages/pip/_vendor/urllib3/util/retry.py | e508841d3fb192c2523eb7b6127fc5c7faaa0f8c | [] | no_license | LUINFO89/PlataformaGestiondeVuelos | f91cd351df6d5e40e341cbcae793d819faecaf75 | adc6d6dc888d551ab83726c2dbdd7e6db4398c3b | refs/heads/main | 2023-08-30T08:30:43.089497 | 2021-10-30T01:25:12 | 2021-10-30T01:25:12 | 422,015,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,998 | py | from __future__ import absolute_import
import email
import logging
import re
import time
import warnings
from collections import namedtuple
from itertools import takewhile
from ..exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ProtocolError,
ProxyError,
R... | [
"luisinformatica.89@gmail.com"
] | luisinformatica.89@gmail.com |
2c4b39edafd28a4c21b76214cd3c205f4ee1d683 | d5c578256dc7d8f0bbd5c4b340e804c9d6676b90 | /combine_A_and_B.py | e966b73df86d87a284b567626d54ac819d9b0d81 | [] | no_license | Bala93/Life_science | 470728376a5ce37017bf9647d49b8fb2b93fcac6 | fbd0f16ddde13e356269fe14c679af8e4005eb74 | refs/heads/master | 2021-09-17T16:15:21.356685 | 2018-07-03T19:14:49 | 2018-07-03T19:14:49 | 129,958,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | import os
import numpy as np
import cv2
import argparse
parser = argparse.ArgumentParser('create image pairs')
parser.add_argument('--fold_A', dest='fold_A', help='input directory for image A', type=str, default='../dataset/50kshoes_edges')
parser.add_argument('--fold_B', dest='fold_B', help='input directory for image... | [
"balamuralim.1993@gmail.com"
] | balamuralim.1993@gmail.com |
f81184a6ca86a7b8f8791b4043f069df9155c3b3 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SSD/tests/test_models/test_forward.py | d3805e803d59dbea7a21a0dd83d3bae9bd213a7d | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 12,689 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
b73e66f56dd25716dad74184c383b3a7b077bf13 | aa9fc66c8b94f05d4651f243f6f21799f4c1fd80 | /jump-game-vi/jump-game-vi.py | 4eadd56dcea8503cbfdedc446f3ea6d98917e497 | [] | no_license | baranee-18/Data-Structures-and-Algorithms | 3cd739ba3c0710835d5995a6ccf2b44f612f8352 | 5074bac42b9323b8e7353d533355ece18dd5f5f1 | refs/heads/main | 2023-08-23T23:06:59.028649 | 2021-10-19T19:21:43 | 2021-10-19T19:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | class Solution:
def maxResult(self, nums: List[int], k: int) -> int:
n = len(nums)
queue = []
val = 0
for i in range(n):
maxV = 0
if queue:
maxV, indx = queue[0]
while indx+k < i:
maxV, indx = heapq.heappop(q... | [
"sivakumar.sk11865.sk@gmail.com"
] | sivakumar.sk11865.sk@gmail.com |
f7f9d2048aac2ff8422cdb78315139cfe63f6cc3 | 87a9706379670da62739b3c1fbbdd75edb5107b8 | /alien_invasion/scoreboard.py | 11f4eb35474043303f80b3f5ed7dcbf980ac7b77 | [] | no_license | zxbzxb180/python_work | ba21ab74f842e0d560a8bb192bb8a874d356b9e1 | 6406024e011aa06d1bda78d97cfecc47f7f2058c | refs/heads/master | 2022-12-12T23:53:36.887963 | 2020-03-04T07:20:29 | 2020-03-04T07:20:29 | 194,494,744 | 0 | 0 | null | 2022-11-22T03:54:47 | 2019-06-30T08:48:44 | Python | GB18030 | Python | false | false | 985 | py | #coding=gbk
import pygame.font
class Scoreboard():
"""显示得分信息的类"""
def __init__(self,ai_settings,screen,stats):
"""初始化显示得分涉及的属性"""
self.screen = screen
self.screen_rect = screen.get_rect()
self.ai_settings = ai_settings
self.stats = stats
#显示得分信息时使用的字体设置
self.text_color = (30,30,30)
s... | [
"616529325@qq.com"
] | 616529325@qq.com |
c518c6954e9b0640ead738942f5c31574b6e8035 | 3c2d4ed20da3aa3e045b617c787df68c7d0ddd1d | /src/drugex/__main__.py | 50f052ac1a040383a0178b2488fc5a6b739f347c | [
"MIT"
] | permissive | cthoyt/DrugEx | 699ea37a86bfd0ed06e5c5112a68d5bd46ed05af | 9e4d31adb2c65d0afc852948f502c79dcf8308a3 | refs/heads/master | 2020-06-07T22:08:26.799943 | 2019-06-21T16:38:20 | 2019-06-21T16:38:20 | 193,103,470 | 0 | 0 | MIT | 2019-06-21T13:34:04 | 2019-06-21T13:34:03 | null | UTF-8 | Python | false | false | 328 | py | # -*- coding: utf-8 -*-
"""Entrypoint module, in case you use `python -m drugex`.
Why does this file exist, and why ``__main__``? For more info, read:
- https://www.python.org/dev/peps/pep-0338/
- https://docs.python.org/3/using/cmdline.html#cmdoption-m
"""
from drugex.cli import main
if __name__ == '__main__':
... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
232c6641ae1d5833e25fbf1e833963f1e1d7e53d | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /monk/system_unit_tests/gluon/test_block_mobilenet_v2_inverted_linear_bottleneck.py | 805df2c924d747b85329f2e810c0f1bdc52a05e7 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 1,512 | py | import os
import sys
sys.path.append("../../../../monk_v1");
sys.path.append("../../../monk/");
import psutil
from gluon_prototype import prototype
from compare_prototype import compare
from common import print_start
from common import print_status
import mxnet as mx
import numpy as np
from gluon.losses.return_loss i... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
004aa18f2e1b9effc7eca12b7058f92597767819 | 9acbf0279c38d11e89f16831e9c43b49badabb00 | /IPTVPlayer/tsiplayer/addons/resources/hosters/uptostream.py | 314392de9337b64f4093974ba2f8058e0b501c6c | [] | no_license | dgbkn/e2iPlayer | 4f101b87bc5f67bf14690d012a62cbe8755ab82c | e5f413ea032eb9012569d9d149a368a3e73d9579 | refs/heads/master | 2023-05-15T05:01:18.204256 | 2021-06-06T18:03:42 | 2021-06-06T18:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,329 | py | # -*- coding: utf-8 -*-
# vStream https://github.com/Kodi-vStream/venom-xbmc-addons
#
import re
import json
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.config import GestionCookie
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.hosters.hoster import iHoster
from Plugins.Extensions.I... | [
"echosmart76@gmail.com"
] | echosmart76@gmail.com |
b4b1cae9c7e54d74e89f8afd4bcbdbde27236d80 | 562d4bf000dbb66cd7109844c972bfc00ea7224c | /addons/advertising/controllers/controllers.py | 1868e3ae1ee47ecfdd4a0d92df979f22c6b5bda9 | [] | no_license | Mohamed33/odoo-efact-11-pos | e9da1d17b38ddfe5b2d0901b3dbadf7a76bd2059 | de38355aea74cdc643a347f7d52e1d287c208ff8 | refs/heads/master | 2023-03-10T15:24:44.052883 | 2021-03-06T13:25:58 | 2021-03-06T13:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | # -*- coding: utf-8 -*-
from odoo import http
# class Advertising(http.Controller):
# @http.route('/advertising/advertising/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/advertising/advertising/objects/', auth='public')
# def list(self, **kw):
# ret... | [
"root@vmi414107.contaboserver.net"
] | root@vmi414107.contaboserver.net |
ed83154aac965d7020394db30fc7d33772351c78 | 94f4bb0f6e43b2eb2f1bdb284a580b76121fa9af | /055.py | 3426c8ddb88f7c434c1f5ca842561dae076bd58f | [] | no_license | huosan0123/leetcode-py | f1ec8226bae732369d4e1989b99ab0ba4b4061c4 | 22794e5e80f534c41ff81eb40072acaa1346a75c | refs/heads/master | 2021-01-25T11:48:17.365118 | 2019-09-12T15:45:34 | 2019-09-12T15:45:34 | 93,934,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | class Solution(object):
def canJump(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if not nums or len(nums)==1:
return True
pre = nums[0]
for i in range(1, len(nums)):
if pre == 0:
return False
... | [
"noreply@github.com"
] | huosan0123.noreply@github.com |
97e996c0fe83b4c2b8a1bafa79f0a29358a094de | 904a87f73eb0e3902a738e823f959cbad2f68a82 | /plotClass/plotting/plotGroups_mer.py | dc83b9a7dba4eeb9344b2b365d782974bbc46fe8 | [] | no_license | ashrafkasem/hepML1Lep | 2ccf167432e7d2a1550991137b7a247e044af1b1 | 9ed3b73887b36f26b9d4ca0243eedd3cac0c420e | refs/heads/master | 2021-07-11T22:31:18.498721 | 2020-08-31T21:30:10 | 2020-08-31T21:30:10 | 193,732,937 | 1 | 4 | null | 2020-05-18T06:55:53 | 2019-06-25T15:17:21 | Jupyter Notebook | UTF-8 | Python | false | false | 2,881 | py | import ROOT
All_files = {
'DiLepTT' :
{
'files': ['TTJets_DiLepton','TTJets_LO_HT'] ,
'select' : '&& DiLep_Flag == 1',
'scale' : '1000.0/sumOfWeights*genWeight*Xsec*1*btagSF*puRatio*lepSF*nISRttweight',
"fill": ROOT.TAttFill(ROOT.kRed, 1001),
"line": ROOT.TAttLine(... | [
"ashraf.mohamed@cern.ch"
] | ashraf.mohamed@cern.ch |
d51a4bd7dc7436067f703bec0084d907b03f9157 | a5ba631dddaf2912c309601f8fbdd3c5b494fe20 | /src/azure-cli-core/tests/test_logging.py | 14cddef8a729a9767cf3f2dedc6a9e237df9fe80 | [
"MIT"
] | permissive | saurabsa/azure-cli-old | 37471020cd2af9a53e949e739643299f71037565 | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | refs/heads/master | 2023-01-09T04:00:15.642883 | 2018-04-23T21:40:04 | 2018-04-23T21:40:04 | 130,759,501 | 0 | 0 | NOASSERTION | 2022-12-27T14:59:06 | 2018-04-23T21:33:34 | Python | UTF-8 | Python | false | false | 2,897 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"saurabsa@microsoft.com"
] | saurabsa@microsoft.com |
a2b971c67d0456fbbf6fd22640af49583f80fce2 | e62d13d578ebbe3acc3713e3eb783c81c785f2a8 | /myems-api/core/version.py | f1ef5dfaf78eabc8ce8847750632ade6fd4f7c29 | [
"MIT"
] | permissive | tianlinzhong/myems | c25d7ece4f1853bb4415e2cedfdc8cb9cf8ff991 | 07dd1eb8060f4145be66c8d1a20b5e064a68281b | refs/heads/master | 2023-03-25T05:24:05.057248 | 2021-03-28T09:06:45 | 2021-03-28T09:06:45 | 340,333,276 | 2 | 0 | MIT | 2021-02-28T14:00:06 | 2021-02-19T10:22:32 | Python | UTF-8 | Python | false | false | 452 | py | import falcon
import simplejson as json
class VersionItem:
@staticmethod
def __init__():
pass
@staticmethod
def on_options(req, resp, id_):
resp.status = falcon.HTTP_200
@staticmethod
def on_get(req, resp):
result = {"version": 'MyEMS 1.1.0 (Community Edition)',
... | [
"13621160019@163.com"
] | 13621160019@163.com |
67a45c24fd1b92104a81304a32b145bd2a77baa6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/2715.py | 53c87fa3b23e56f4d4d2ff037c02e48d28108491 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import math
f = open('/home/dexter/input1.in', 'r')
cases = int(f.readline())
for k in range (0, cases):
a = f.readline()
itms=a.split()
out=0
for i in range(int(itms[0]),int(itms[1])+1):
x=str(i)
y =x[::-1]
if(y==x):
x=int(x)
if((math.sqrt(x)-int(ma... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
80c70e681d1be2636cc0167b75f54d09254d1b14 | 301c85e8f2391896b11c9f4cf9f440283865593e | /armstrong/spiders/spider.py | 1e2f822c32a2f498a48612c4df8490fd7bf8d844 | [] | no_license | hristo-grudev/armstrong | 513e5639c347c8a3ffc8df3cafd5860d2ab3fb81 | 8bbcad8a72f58456638c84369f72c985c93e3cc9 | refs/heads/main | 2023-03-29T11:33:06.484366 | 2021-04-07T07:51:26 | 2021-04-07T07:51:26 | 355,458,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | import scrapy
from scrapy.loader import ItemLoader
from ..items import ArmstrongItem
from itemloaders.processors import TakeFirst
class ArmstrongSpider(scrapy.Spider):
name = 'armstrong'
start_urls = ['https://www.armstrong.bank/connect/news-and-updates']
def parse(self, response):
post_links = response.xpath... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
bee9c55e7640a1f88b9e62f0512abcf2174573a4 | 0eb599c3bbfa6e5b31516913b88cc9db3a1311ce | /GCJ/GCJ2021_2_a_sub.py | 7f055f0b05f5c29efe942e6944b2235a3c45cf43 | [] | no_license | Linus-MK/AtCoder | 5b84dc88c2d2773d0f97ed18265d303290da7879 | a587e89a9e0c2ab4d36b09176bcc95e901e14326 | refs/heads/master | 2022-11-25T05:37:12.148722 | 2022-11-17T16:04:10 | 2022-11-17T16:04:10 | 169,840,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import math
ans = 0
for i in range(2, 100+1):
ans += math.ceil(10**8 / i)
print(ans / (10**8))
# 4.18737795 < 6 OK!
| [
"13600386+Linus-MK@users.noreply.github.com"
] | 13600386+Linus-MK@users.noreply.github.com |
3d7b94751b9c6a8ebf732eec60f889bc243c3977 | 08ddce92744c78432b69409d197ad1393ca685aa | /weixin/Bot/test2.py | 3537329a673c998099f7e0f15bc0b992e3d3d01a | [] | no_license | baliguan163/PythonDemo | 71255eb21850134b4b6afb2eeed948cc34326e7a | c4fe1b6ea36bec2c531244ef95c809e17b64b727 | refs/heads/master | 2021-01-02T08:13:18.809740 | 2019-05-19T16:28:16 | 2019-05-19T16:28:16 | 98,963,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | #-*-coding:utf-8-*-
__author__ = 'Administrator'
from wxpy import *
# wxpy的好友统计功能非常好用,可以很方便地统计好友的地理位置分布和性别分布。
# 下面的代码中,强哥统计了下自己的好友的分布情况,并打印出人数最多的10个地
bot = Bot(cache_path=True)
friends_stat = bot.friends().stats()
# print(friends_stat)
friend_loc = [] # 每一个元素是一个二元列表,分别存储地区和人数信息
for province, count in friends_stat... | [
"baliguan163@163.com"
] | baliguan163@163.com |
386a8bf05a7ce8388ed78b86e6713dc8bb4e3535 | aba442afba026d2130c4aeca863308ca26e7e472 | /tabular/src/autogluon/tabular/__init__.py | 132b85f2fd121822af13adfd0428350ff276ff5c | [
"Apache-2.0"
] | permissive | stjordanis/autogluon | c8fd03a9bf7624911b13e90239e9260dd8885ddf | 6af92e149491f6e5062495d87306b3625d12d992 | refs/heads/master | 2023-08-21T15:16:53.202431 | 2023-08-11T20:15:31 | 2023-08-11T20:15:31 | 228,360,888 | 0 | 0 | Apache-2.0 | 2019-12-16T10:25:32 | 2019-12-16T10:25:30 | null | UTF-8 | Python | false | false | 322 | py | from autogluon.common.features.feature_metadata import FeatureMetadata
from autogluon.common.utils.log_utils import _add_stream_handler
from autogluon.core.dataset import TabularDataset
try:
from .version import __version__
except ImportError:
pass
from .predictor import TabularPredictor
_add_stream_handler(... | [
"noreply@github.com"
] | stjordanis.noreply@github.com |
c68cdb6fed4d1c16def268726b0762202f070da8 | f44b4e41d3b64fc64dc8f28cce1a42aac5715530 | /metrics/plastic_analysis.py | 66002d70c98efae0fbcf9a1785ee1d8a245228ca | [
"Apache-2.0"
] | permissive | jmribeiro/PLASTIC-Algorithms | d4ba4dbae9fea15a446e6557b9fe58f06b687464 | c59ad567a906f320220a09caff64c4a6273151f8 | refs/heads/main | 2022-12-31T00:16:10.108189 | 2020-10-20T22:06:11 | 2020-10-20T22:06:11 | 305,774,055 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | from agents.plastic.PLASTICAgent import PLASTICAgent
from agents.plastic.model.LearningPLASTICModel import LearningPLASTICModel
from agents.plastic.model.LearntPLASTICModel import LearntPLASTICModel
from agents.teammates.GreedyAgent import GreedyAgent
from agents.teammates.TeammateAwareAgent import TeammateAwareAgent
... | [
"jmribeiro77209@gmail.com"
] | jmribeiro77209@gmail.com |
0ae73847354ad0243e92bc20077f9c2eef00d8b6 | 6227637b2b3e13e2d17d7dd2c954e879bc6947a8 | /configs/bash/keyring.py | 5509f45c1543c39f7696c29c13788dfe38180959 | [] | no_license | Owensa/confs | 28c01e57984a9f8187740a19d95d9c51844c7a1d | f247448fbba3d873460a4f99228f372230f1b1bc | refs/heads/master | 2021-04-15T04:36:03.755459 | 2018-03-31T22:31:50 | 2018-03-31T22:31:50 | 126,733,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | #!/usr/bin/env/ python3
import os
#Get archive key and get rid of strange apt behavior
def fetch():
os.system("wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add && apt-get update >> bootstrap_log.md")
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
392c843a677b5ebc71e265798518ab247c504ee7 | 164b499e14412e7e5d0b1f917922873a7b5d072c | /studyNote/python-2/cmd_serve.py | 87aace6bc1f982e3ab23341bf7b8f5656e6c00df | [] | no_license | liangliang115715/pythonStudyNote | f55293b0ad2ded21dbb6938ac82f7bee77e724ef | c36ef8c032ee8d85570d0f2234a26370a3709402 | refs/heads/master | 2023-01-09T19:14:16.076798 | 2019-10-16T10:59:48 | 2019-10-16T10:59:48 | 215,523,473 | 0 | 0 | null | 2023-01-04T12:31:28 | 2019-10-16T10:42:51 | Python | UTF-8 | Python | false | false | 778 | py | #_author:
#date:
import socket
import subprocess
# 创建socket对象
sk=socket.socket()
# 为socket对象提供ip地址和端口,然后绑定
adress=("127.0.0.1",8000)
sk.bind(adress)
# 监听设置端口 等待客户端的请求
sk.listen(2)
while True:
print("waiting.....")
conn, addr = sk.accept()
print(addr)
while True:
try:
data=conn.recv(1024... | [
"ll@123.com"
] | ll@123.com |
fb5cb78ce44163af8a0147d51eb7e62cb50fa7e6 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/bonner.py | f884714292e78e4bd9ae20597022ed5d04d0f710 | [] | 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 | 82 | py | ii = [('WadeJEB.py', 1), ('GodwWLN.py', 1), ('MereHHB3.py', 1), ('DibdTRL.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.