blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69399a49153db50e70168d25d6dff65962822c66 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/OMS/YCHF_KCBYCHF_OMS_099.py | 0aa0a7ef5c462c08e02381b15485dddec0029a36 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from ARmainservice import *
from QueryStkPriceQty import *
from log import *
sys.path.append... | [
"418033945@qq.com"
] | 418033945@qq.com |
a5bc5ff0db7914cddcbf2343968e56b7a15e5726 | e6445a08328f35da144e40d995fde37111c33f59 | /docs/04_队列/array_queue.py | 4b45b94a363a88d22b5b5b79116c7b1ad97dc8cf | [
"MIT"
] | permissive | Mark24Code/python_data_structures_and_algorithms | 6f069eed04e8c44bc4f04845755a1b598606d4ad | 3469a79c34b6c08ae52797c3974b49fbfa8cca51 | refs/heads/master | 2023-03-15T22:54:02.786294 | 2022-06-13T01:53:41 | 2022-06-13T01:53:41 | 586,735,464 | 1 | 0 | MIT | 2023-01-09T05:12:16 | 2023-01-09T05:12:16 | null | UTF-8 | Python | false | false | 1,688 | py | # -*- coding: utf-8 -*-
# NOTE: 从 array_and_list 第一章拷贝的代码
class Array(object):
def __init__(self, size=32):
self._size = size
self._items = [None] * size
def __getitem__(self, index):
return self._items[index]
def __setitem__(self, index, value):
self._items[index] = val... | [
"291374108@qq.com"
] | 291374108@qq.com |
2c5181d620658d03ac9d21ae8318395a7c20f37e | e2ac8f82d611955b311226a278328718628ca667 | /api/api_using_viewset/urls.py | 258e7d41b4126e7a5dbaecaf5dc6b6528c99b87c | [] | no_license | ShakilAhmmed/apis | 86a6d0ded03724ca1b1f4912026dac1b42f3d4ea | 1f8309d08c288b2412f5c85c4297fe3cc9289f1b | refs/heads/master | 2020-05-22T18:26:13.256094 | 2019-05-13T18:19:02 | 2019-05-13T18:19:02 | 186,471,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.urls import path, include
from rest_framework import routers
from .views import StudentViewSet
router = routers.DefaultRouter()
router.register('api_using_viewset', StudentViewSet)
urlpatterns = [
path('', include(router.urls))
]
| [
"shakilfci461@gmail.com"
] | shakilfci461@gmail.com |
f0ac079eb68e8fbe90313d1152398a2a07f928fc | cedab14839cfc276f028436ba79d103a8aff0d5b | /Philippines/Subject5_AP/E1_AP_Landsat/4_Eval.py | ed2439d4199b7f752ef9ee7820fbce6c2f2bada2 | [] | no_license | wmgeolab/schoolCNN | aa686a4103695c1e10f5afa68ec2919761d33c15 | 1c73ec90732ec565ce552b27e4b2108a8ee916da | refs/heads/master | 2021-01-09T03:25:44.895023 | 2020-02-21T22:52:41 | 2020-02-21T22:52:41 | 242,230,029 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | from __future__ import print_function, division
from torchvision import datasets, models, transforms
from imgaug import parameters as iap
from imgaug import augmenters as iaa
from torch.optim import lr_scheduler
from torch.autograd import Variable
from torchsummary import summary
import matplotlib.pyplot as plt
import... | [
"hmbaier@email.wm.edu"
] | hmbaier@email.wm.edu |
734a6e61332e4f46f8990d6102e2d09d754cc202 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2787/60617/264026.py | 6fc9957c7ad27cbe8e5b15d744283c7712053524 | [] | 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 | 405 | py | def construct_sequence():
length=int(input())
sequence=list(map(int, input().split(" ")))
upCounts=0
downCounts=0
for i in range(0, len(sequence)):
upCounts+=abs((length-len(sequence)+(i+1))-sequence[i])
for i in range(0, len(sequence)):
downCounts+=abs((length-i)-sequence[i])
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7bae3b372c02e98b1ec84432aad1e72aad131396 | 885a722e3e5814ae4942ac5e8cf8d0091e734b4c | /LEETCODE/10. Regular Expression Matching - Python/CodingTest.py | 4f1f9a0e534fa0242d2adb715e7c95a102ea3fc3 | [] | no_license | ledpear/algorithm | 52f3ea25842eee20b3bbd48e51825b9df4942e03 | 4922c6fe5ca0b98a90dee218b756006e7ba05d82 | refs/heads/master | 2023-06-09T17:47:45.674244 | 2023-06-03T13:47:11 | 2023-06-03T13:47:11 | 133,370,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | class Solution:
def isMatch(self, s: str, p: str) -> bool:
p_list = list(p).reverse()
s_list = list(s).reverse()
bResult = True
s_pos = 0
for i in p_list :
if i == '.' :
s_pos += 1
elif i == '*' :
p_list[]
el... | [
"tjsrb75@gmail.com"
] | tjsrb75@gmail.com |
7ad54719c3793799d0c3f52d695fe1971882d080 | 26243715cd618b07e95ea2a12f04aa750cb359af | /Help_Qiu/plotData.py | 4921f9a83a94ab6545b54d69f0f250cb6449b8ec | [] | no_license | 43reyerhrstj/DataAnalysis_water | 5fdf3e86249d8f47e54dc174edf9a55854e23b49 | 0be734284587b86857044dafa18af62268f64979 | refs/heads/master | 2022-04-05T22:52:07.147298 | 2018-05-22T14:00:03 | 2018-05-22T14:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | from datetime import datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
#保证正常显示汉字
plt.rcParams['font.sans-serif']=['SimHei']
plt.rcParams['axes.unicode_minus']=False
path='orgData.xls'
df=pd.read_excel(path)
dates=df['采集时间'] #获得数据集列
... | [
"qzq2514@outlook.com"
] | qzq2514@outlook.com |
cc630d94e4aedb407b5660de8a965fe98411f2dc | 65ae896aa7a9b9cae6b90be8f5900ec2940ff65b | /03. Characters in Range.py | 25b6b3841475fd390e67849899d1ca8e44e51470 | [] | no_license | antondelchev/Functions---Exercise | dd1ea014e4e177618c3394ce7052a082dc1ab462 | 6445f767d092c06e7b1c8921ee030b5a0a71e832 | refs/heads/main | 2023-04-08T22:48:33.515213 | 2021-04-21T12:06:23 | 2021-04-21T12:06:23 | 360,154,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | def chars_in_range(char1, char2):
all_char = ""
for i in range(ord(char1) + 1, ord(char2)):
all_char += chr(i)
all_char += " "
return all_char
first_character = input()
second_character = input()
print(chars_in_range(first_character, second_character))
| [
"noreply@github.com"
] | antondelchev.noreply@github.com |
8192e6bcce172127eb1ea134d03f012f502a1dd6 | 65f8211fc33eb5f9ac1ff0d68902226ca9a58692 | /graph_algorithms/bridge_matrix.py | 55f4e2bc177df53169cbfcff9d38915a46080d96 | [] | no_license | szarbartosz/asd-python | 46869f5699a1ef661e2df02e523af0adcddbbbda | 0130cc3dcbba6ad62e1516c98b5cbab85848d619 | refs/heads/master | 2022-12-13T19:02:53.699381 | 2020-09-11T13:29:31 | 2020-09-11T13:29:31 | 242,975,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | def find_bridge_matrix(G):
V = len(G)
visited = [False] * V
parent = [None] * V
visit_time = [float('inf')] * V
low = [float('inf')] * V
time = 1
def visit(u):
visited[u] = True
nonlocal time
visit_time[u] = time
low[u] = time
time += 1
for v... | [
"szarbartosz@gmail.com"
] | szarbartosz@gmail.com |
586d1e32398855039ebd98ed2777d3e23edc8872 | c8b18f0530f290fcd451b2a34d8e64d62477c3e5 | /codes/Tools/02_Pillow-string_picture/02_add_filter.py | 48869d863c1449f4ae23959df938a9076fd99c05 | [] | no_license | YorkFish/hello-world | a8e2e019e51a814bae4dbb134abce90fd02317d4 | 31f8b807c57bd942fc805466ad9d5ff9b9614b55 | refs/heads/master | 2021-10-23T00:41:09.867934 | 2021-10-12T01:25:20 | 2021-10-12T01:25:20 | 165,218,921 | 0 | 0 | null | 2019-01-11T11:19:18 | 2019-01-11T09:42:33 | null | UTF-8 | Python | false | false | 182 | py | # coding:utf-8
# 此程序功能:加滤镜
from PIL import Image, ImageFilter
im1 = Image.open("fish.jpg")
im2 = im1.filter(ImageFilter.BLUR)
im2.save("fish_blur.jpg", "jpeg")
| [
"18258788231@163.com"
] | 18258788231@163.com |
01c1848a705ab7ce9f6c85d9acac02035d7114c7 | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-24-ydk.py | ad1ae2444ce86c3e012ba744c874c3714dcb2793 | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 2,400 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"deom119@gmail.com"
] | deom119@gmail.com |
1bdaa614a033c2f7efd3ffb2527bb415bcc34af0 | 30754a148b79903d6e49399f1f270c79934ce389 | /tests/fuzzer/test_list_directory.py | 725dbe57113993c9a112d67576d1dceac33558d4 | [
"BSD-3-Clause"
] | permissive | syedkhalid/fuzzinator | 720ffc552c595b50de46e4e4e51f3a01cdc9aa77 | f90b58605de563e77b85ed0d54d2beb29efc7d14 | refs/heads/master | 2021-04-09T17:31:06.625840 | 2018-03-12T14:37:18 | 2018-03-12T15:21:27 | 125,814,277 | 1 | 0 | BSD-3-Clause | 2018-03-19T06:53:29 | 2018-03-19T06:53:29 | null | UTF-8 | Python | false | false | 1,279 | py | # Copyright (c) 2016-2017 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.
import pytest
import fuzzinator
from os.path import join
from c... | [
"reni@inf.u-szeged.hu"
] | reni@inf.u-szeged.hu |
d1cf4cdbc0a102d31030cbcf3d9e0f6eb536d7a3 | 4bb66e64121d3f4eff4ca0809929983a5c354e3f | /backend/platform_3278/urls.py | fec873c25f27088090a61652926ddb6a711430f2 | [] | no_license | crowdbotics-apps/platform-3278 | 1f1697e33d692550a617466f240d0398b7ab8020 | f78b936584b8db09ab6eeb514335e8605ff0dfdb | refs/heads/master | 2020-05-22T17:33:42.090603 | 2019-05-13T16:04:40 | 2019-05-13T16:04:40 | 186,452,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | """platform_3278 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2b75945fc4280780dbf75164ac96a04676e50cfa | 9b54e3d58447e917a238b85891020c392c4ac601 | /acmicpc/9506/9506.py | 1c348d45c3fb17732c03fd82af2a1c1cdf2c030f | [
"MIT"
] | permissive | love-adela/algorithm-ps | ea0ebcd641a4c309348b389b8618daa83973f4b2 | c92d105d8ad344def001160367115ecf99d81c0d | refs/heads/master | 2023-05-11T03:37:11.750692 | 2023-04-30T17:31:30 | 2023-04-30T17:31:30 | 174,651,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | def get_divisor(k):
divisors = []
for i in range(1, k):
if k % i == 0:
divisors.append(i)
return divisors
while True:
n = int(input())
if n == -1:
break
divisors = get_divisor(n)
if n == sum(divisors):
print(f'{n}', end=' = ')
print(' + '.join... | [
"love.adelar@gmail.com"
] | love.adelar@gmail.com |
1215004b25792a229f83ffa57541e9cf3c11ce07 | b1c412822f856bb2dddd9ffac00b3aeee7794961 | /lab1/resnet.py | 20ca9ef1d201882595ea7fe8e71e39c724c43afb | [] | no_license | gavin0430/Deep-Learning | 61db627d3ff6239e6219a31b0a647cd4fb86df07 | ed14037eb83adc4a21b11aed14d3d93fb7045e02 | refs/heads/master | 2020-03-07T14:41:29.127217 | 2018-08-11T15:35:03 | 2018-08-11T15:35:03 | 127,532,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 30 20:48:37 2018
@author: gavin
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class BasicBlock(nn.Module):
expansion = 1
def __init__(self, in_planes, planes, stride=1):
... | [
"mz@email.com"
] | mz@email.com |
1533273c46723599a3a8ff52b8f6694d34df94c6 | b007d88e6726452ffa8fe80300614f311ae5b318 | /array/text_dollar_coding.py | 6c9bd8b5f829472c4ab277b35f5c3d0ee5056863 | [] | no_license | jinurajan/Datastructures | ec332b12b8395f42cb769e771da3642f25ba7e7f | 647fea5d2c8122468a1c018c6829b1c08717d86a | refs/heads/master | 2023-07-06T14:42:55.168795 | 2023-07-04T13:23:22 | 2023-07-04T13:23:22 | 76,943,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py |
DIGITS_TEXT = {1:'One', 2: 'Two', 3:'Three', 4: 'Four', 5: 'Five', 6: 'Six', 7: 'Seven',
8: 'Eight', 9: 'Nine'}
TENS_TEXT = {10: 'Ten', 20: 'Twenty', 30: 'Thirty', 40: 'Forty', 50: 'Fifty', 60: 'Sixty',
70: 'Seventy', 80: 'Eighty', 90: 'Ninety'}
TEENS_TEXT = {11: 'Eleven', 12: 'Twelve', 13: 'Thirteen', 14: ... | [
"jinu.p.r@gmail.com"
] | jinu.p.r@gmail.com |
a47735081eff681ee355b014db90218c4a1692f6 | 1b6dff9c7e9ee5eac407a9fd97391536742e88fc | /servers/Radiation/archive_scrapper/archive_scrapper/spiders/prediccs_archive.py | 89d2054ad3b80658bccbe8dc6d7536cc37360c77 | [
"BSD-2-Clause"
] | permissive | mars-planet/mars_city | 00793d486361c130347d5fe513927368b9807b70 | 29df75e9037eec50672fd33295fc70d6f6e4b325 | refs/heads/master | 2020-04-12T06:46:16.073407 | 2018-08-12T13:30:57 | 2018-08-12T13:30:57 | 63,711,405 | 25 | 50 | NOASSERTION | 2023-07-04T15:43:23 | 2016-07-19T16:43:52 | C++ | UTF-8 | Python | false | false | 1,816 | py | import scrapy
class PrediccsArchiveScrapper(scrapy.Spider):
flag = 0
count = 0
string = 'bryn/31daysMars.plot'
name = "prediccs"
links = []
handle_httpstatus_list = [404]
def start_requests(self):
url = 'http://prediccs.sr.unh.edu/data/goesPlots/archive/'
yield scrapy.Req... | [
"nivedn3@gmail.com"
] | nivedn3@gmail.com |
8765f592786aa47d3f4c5bc20ae6abd6057c68dc | b6a48f9a6158bcb7e6fc75e5eacaef19250fc4c5 | /cosmos/ingestion/ingest/process/detection/src/utils/split_train_val_test.py | 469996ade467d8c8f626e1ddad9407a3f23584a5 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | UW-COSMOS/Cosmos | dcde3be6534e411a20fcf1ff36e422fc8af2ac8a | 5ed4a4c149e03773690668437d2f93aa532453c6 | refs/heads/master | 2023-09-01T18:03:20.525760 | 2023-08-31T13:56:21 | 2023-08-31T13:56:21 | 159,849,583 | 39 | 14 | null | 2023-09-13T14:39:45 | 2018-11-30T16:24:59 | Python | UTF-8 | Python | false | false | 1,164 | py | #!/usr/bin/env python3
"""
"""
import os
from random import shuffle
if __name__ == '__main__':
files = os.listdir('data/images')
try:
files.remove('README.md')
except ValueError:
pass
files = [f[:-4] for f in files]
shuffle(files)
# Split is 70/10/20
filelen = len(files)
... | [
"ankur.goswami12@gmail.com"
] | ankur.goswami12@gmail.com |
40da452a78a197b37a9af20397a0cc9dd41ab09a | af39e4ee0383b1ecb16511aa0df6404a0936b475 | /Lib/site-packages/crispy_forms/templates/bootstrap4/layout/checkboxselectmultiple_inline.html.py | abdb4d0b0af7c14dec0779ae8a0edd79268196a1 | [] | no_license | SheraramPrajapat1998/ecommerce | 009f58023086e6a182b8b0a9385a37f4a82c59c5 | 4ecbd2edd53e1b79a81760fc95ea2c2a97f205d7 | refs/heads/main | 2023-01-07T19:51:35.242839 | 2020-11-04T03:32:36 | 2020-11-04T03:32:36 | 308,618,518 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | BB BBBBBBBBBBBBBBB
BBBB
XXXX XXXXXXXXX XXXXXXXXXXXXXXXXXBB BBBBBBBBBBBBBBBBB BB BBBBBBBBBB XXXBBBBBBB BBBBBBBBBBBBB BBBBBBB BBBBBBBBBBBBBBBB BBB BBBBBBBBBBBB XXXXXXXXXXBBBBBBB BBBBBBBBBBBBBBBBB BBBBBXX
BB BBBBBBBBBBB
XXXXXX XXXXXX XXXXXXXBB BBB BBBBBBBBBBBB XXXXXXXXXXXXXXBBBBBBB BBBBBBBBB... | [
"sheraramprajapat1998@gmail.com"
] | sheraramprajapat1998@gmail.com |
db45bd54e042a773500a1ed7c1fc6e739e033d33 | 6f3cf8c3af7e194982ab07bbd15217d799a53381 | /Intermediate_Python/dictionaryManipulation2.py | 4ff5621fd47b2a908ac56faa6b282c49cde1d3c0 | [] | no_license | AnjaliSharma1234/Datacamp---Python-Track | 2ec9c61dbcda69f33bdf097d585b6e838a34f2e1 | 2e7fbaa6a9c2507e94689612dfa9650c5810f3cc | refs/heads/master | 2020-12-20T18:32:28.459549 | 2020-03-05T07:23:59 | 2020-03-05T07:23:59 | 236,170,988 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # Definition of dictionary
europe = {'spain':'madrid', 'france':'paris', 'germany':'bonn',
'norway':'oslo', 'italy':'rome', 'poland':'warsaw',
'australia':'vienna' }
# Update capital of germany
europe['germany'] = 'berlin'
# Remove australia
del(europe['australia'])
# Print europe
print(europe)
| [
"noreply@github.com"
] | AnjaliSharma1234.noreply@github.com |
089a33ea10a5cc90572d949e6dba551a403df523 | 98cb2f2afbe57bdda9d6b8b1dd8cf624987d91bc | /torchdp/utils/tests/module_inspection_test.py | 3906d7f03090ec40c3963e92691fd128175284ba | [
"Apache-2.0"
] | permissive | jyhong836/pytorch-dp | 0e7613b01f09ceb2c3787284372f8e887bf0deb3 | e050b98d630d4db50cacc4fff82575daf345f012 | refs/heads/master | 2023-01-03T15:08:54.976598 | 2020-08-18T01:26:07 | 2020-08-18T01:27:02 | 260,974,801 | 0 | 0 | Apache-2.0 | 2020-05-03T16:40:11 | 2020-05-03T16:40:11 | null | UTF-8 | Python | false | false | 4,572 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import unittest
import torch.nn as nn
from torchdp.utils import module_inspection as mi
from torchvision import models
class utils_ModelInspector_test(unittest.TestCase):
def setUp(self):
def pred_supported(mo... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ec2c912e7c7005b94043d783105dc593306f7d9e | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_2/models/directory_service_role.py | ecaf432596bb712e118a0b77f274050314c70b13 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,947 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.2, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"msholes@purestorage.com"
] | msholes@purestorage.com |
e89f0990de02f0eb310ce96228fe222f38c31b01 | a0784b1a66a6c1a89ee8a75e32cd48d2c168931b | /setup.py | 40566faaa85ccd97f99feba5f88e28650bf18897 | [
"MIT"
] | permissive | cltrudeau/purdy | ebe5d8b556dadc0a4eb04018826c066b83617f71 | 4ff2d5b33771266d46260ee9ba6503bb4895ab2f | refs/heads/master | 2023-07-08T08:23:08.409053 | 2023-06-29T21:37:29 | 2023-06-29T21:37:29 | 210,162,520 | 10 | 3 | MIT | 2021-03-10T21:55:26 | 2019-09-22T14:40:17 | Python | UTF-8 | Python | false | false | 1,608 | py | import os, sys, re
from purdy import __version__
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
long_description = open(readme).read()
SETUP_ARGS = dict(
name='purdy',
version=__version__,
description=('Terminal based code snippet display tool '),
long_description=long_description,
... | [
"ctrudeau@arsensa.com"
] | ctrudeau@arsensa.com |
5bd2492ab863dfbedab466259b236c2258d8fbbc | dda618067f13657f1afd04c94200711c1920ea5f | /scoop/rogue/models/blocklist.py | 94cccf5a3c7319106c15d5b4887e0aa255763a05 | [] | no_license | artscoop/scoop | 831c59fbde94d7d4587f4e004f3581d685083c48 | 8cef6f6e89c1990e2b25f83e54e0c3481d83b6d7 | refs/heads/master | 2020-06-17T20:09:13.722360 | 2017-07-12T01:25:20 | 2017-07-12T01:25:20 | 74,974,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,857 | py | # coding: utf-8
from annoying.fields import AutoOneToOneField
from django.conf import settings
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import pgettext_lazy
from scoop.core.abstract.core.data import DataModel
fro... | [
"steve.kossouho@gmail.com"
] | steve.kossouho@gmail.com |
b6bc63045d050bbbf0d2fb8f082e5bbf7c7d4687 | ebd9c249d446d809abc9a0f3e4593f34922a1b93 | /lintcode/823_input_stream.py | 51b3d8039db3e05f53130546eef3a2a40a6ec09b | [] | no_license | jaychsu/algorithm | ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d | 91892fd64281d96b8a9d5c0d57b938c314ae71be | refs/heads/master | 2023-05-11T00:40:39.237813 | 2022-09-14T07:43:12 | 2022-09-14T07:43:12 | 106,277,156 | 143 | 39 | null | 2022-09-14T07:43:13 | 2017-10-09T11:51:48 | Python | UTF-8 | Python | false | false | 1,810 | py | """
Merge Sort
time: O(n)
space: O(1)
"""
class Solution:
def inputStream(self, a, b):
"""
:type a: str
:type b: str
:rtype: str, 'NO' or 'YES'
"""
RES = ('NO', 'YES')
if a == b == '':
return RES[1]
BACK = '<'
m, n = len(a), len(b... | [
"hi@jaych.su"
] | hi@jaych.su |
f3c9db1941951eeea6159cc39ba7e755aeae4d03 | e18a353582609732c795401f1a01bc762bd939f2 | /top/python/get_mumubb.py | bdc0e23a32be777ced04b9beba3a374a9629f348 | [] | no_license | s-farry/workspaces | 06741807bb464bb0712d52108c2d1b7ae62b1353 | 0dcf3868dcbe110206ea88ff5c9e04a3b44b1ca1 | refs/heads/master | 2020-04-03T00:45:39.152227 | 2017-06-15T16:33:33 | 2017-06-15T16:33:33 | 64,213,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from ROOT import *
from Jawa import *
from PlotTools import *
from Utils import Bunch
f = TFile("/hepstore/sfarry/GridOutput/2520/A2MuMuJet.MD.2015.root")
g = TFile("/hepstore/sfarry/GridOutput/2521/A2MuMuJet.MU.2015.root")
t = f.Get("ZMuMu/DecayTree")
u = g.Get("ZMuMu/DecayTree")
selection = TCut("boson_jet_tag == 1... | [
"sfarry@hep.ph.liv.ac.uk"
] | sfarry@hep.ph.liv.ac.uk |
b7e6835eb984e22224ba8954a80b3c2d30e12e9e | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /Phys/Ks2MuMu/python/Ks2MuMu/Joban.py | 4e506118ebbb17400c7d16486cac5815866d3a10 | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from ROOT import *
from Urania import *
AccessPackage("Bs2MuMu")
from XTuple import *
f = TFile("KsPiPi_MinBiasData_TriggerUnbiased_ntuple.root")
t = f.Get("Kspipi")
tup = XTuple("Joban",["evt/F", "AP_pt/F","AP_alpha/F", "time/F"])
i = 0
for entry in t:
tup.fillItem("AP_pt",entry.AP_pt)
tup.fillItem("AP_a... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
506ea85ae8a5646591bb9ace63949654f6b5e4e6 | d10dc6ee16ddcbf4cf6dc4ce43c332d6d375f2ee | /ccompras/apps/home/views.py | dd58c96127a153d4d49703261eaed95d68c2627a | [] | no_license | Alfredynho/DjCompras | 993bec2195734af911e0355327c477aa8a49c9d6 | d6829d2b5efe3ff871bab449d8e440908136d71e | refs/heads/master | 2021-01-11T11:07:31.933034 | 2016-04-08T10:52:12 | 2016-04-08T10:52:12 | 55,133,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | from django.shortcuts import render, render_to_response
from django.template import RequestContext
from ccompras.apps.ventas.models import producto
from ccompras.apps.home.forms import ContactForm
from django.core.mail import EmailMultiAlternatives
# Create your views here.
def index_view(request):
return render_to_re... | [
"callizayagutierrezalfredo@gmail.com"
] | callizayagutierrezalfredo@gmail.com |
2a44f2e6a644cd7d7898e30231a59efd400ac4ea | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_ploughmen.py | 0bce07a61a1b6df4625d86e50109e91c254c23c2 | [
"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 | 247 | py |
from xai.brain.wordbase.nouns._plowman import _PLOWMAN
#calss header
class _PLOUGHMEN(_PLOWMAN, ):
def __init__(self,):
_PLOWMAN.__init__(self)
self.name = "PLOUGHMEN"
self.specie = 'nouns'
self.basic = "plowman"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6240cebc86ce6d41872d24623533177bf895670c | 694c187c8a00bee8c670c1690170099bad9b16b3 | /templeland.py | e7334bf535a376a68ca8f56696553e012eb666e5 | [] | no_license | ajayvenkat10/Competitive | 301f220b6d296f7e34328f192c43c4d7ef208cb1 | 14f2ecebe10eb19f72cc412dd0c414b3b1de9b4d | refs/heads/master | 2022-11-20T14:31:33.590099 | 2020-07-23T15:39:14 | 2020-07-23T15:39:14 | 281,599,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | t = int(input())
for i in range(t):
N = int(input())
ans=True
temple_strips_list = []
temple_strips = input()
temple_strips = temple_strips.split()
for i in range(N):
temple_strips_list.append(int(temple_strips[i]))
if(N%2==0 or temple_strips_list[0]!=1 or temple_strips_list[0]!=t... | [
"37923623+ajayvenkat10@users.noreply.github.com"
] | 37923623+ajayvenkat10@users.noreply.github.com |
0b0301d80d6a9bdbe6e753e89f1201d6161efb00 | e53c13f2236960456a412af2c2617148a2c6153e | /ethnode/celeryapp.py | f43e1ee23bb92059029844b910fdaa445c838c73 | [] | no_license | ethgis/ethnode | d57b9660174acb737f96aea8013717b1f1a00ea1 | 9fe6f3add95bb5c5fb6dc9d2135f3ec48547c981 | refs/heads/master | 2021-08-29T17:19:44.169638 | 2017-12-14T12:23:04 | 2017-12-14T12:23:04 | 109,628,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2017 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 ... | [
"ingenieroariel@gmail.com"
] | ingenieroariel@gmail.com |
e39c1c212e8848b309a577602ba1e9f51e7615a1 | 60290cb3fdb4d4a97a38f921b7de2160c2af70de | /utest/editor/test_clipboard.py | 415b75aad0c6487519b8702649a102f8308e8b8c | [
"Apache-2.0"
] | permissive | crylearner/RIDE3X | 231431222dc679b38831bd75db5a81062327e91c | 767f45b0c908f18ecc7473208def8dc7489f43b0 | refs/heads/master | 2021-01-19T12:22:59.553847 | 2017-08-23T15:11:17 | 2017-08-23T15:11:17 | 100,781,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | import os
import unittest
from nose.tools import assert_equals
# Needed to be able to create wx components
from resources import PYAPP_REFERENCE as _
from robotide.context import IS_WINDOWS
from robotide.editor.clipboard import _GridClipboard
if not IS_WINDOWS:
class TestGridClipBoard(unittest.TestC... | [
"sunshyran@gmail.com"
] | sunshyran@gmail.com |
627bce2f20fb134fccac1dafa3531fcd824aa73e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/330/usersdata/301/93575/submittedfiles/lista1.py | ab9a94ef91b97d13a029f17baed6ea875918b4b4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
n=int(input('digite o valor de n: '))
a=[]
soma1=0
soma2=0
c1=0
c2=0
for i in range (0,n,1):
a.append(int(input('Digite o número: ')))
for i in range (0,n,1):
if a[i]%2==0:
soma1+=a[i]
print(soma1)
else:
soma2+=a[i]
print(soma2)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e306d7ab0034c1a495ace1e6d3ffc29368c1c07b | 0420ce2fc8799d5fbd6e96313e6716f5e2ef825b | /bagogold/fundo_investimento/urls.py | 3ce146b0130e1143243e3427a8cc656404895e28 | [] | no_license | nizbel/bag-of-gold | 1da10acef4d73b8426ca3329b37a28c5f9587af4 | a3fd89eb47d33d546bd91947f033d71218c8700f | refs/heads/master | 2022-11-13T01:07:26.934813 | 2020-01-14T16:00:16 | 2020-01-14T16:00:16 | 275,689,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | # -*- coding: utf-8 -*-
from django.conf.urls import url
import views
urlpatterns = [
url(r'^detalhar-fundo/(?P<id_fundo>\d+)/$', views.detalhar_fundo_id, name='detalhar_fundo_id'),
url(r'^detalhar-fundo/(?P<slug_fundo>[-\w]+)/$', views.detalhar_fundo, name='detalhar_fundo'),
url(r'^editar-operacao/(?P<id_... | [
"kingbowserii@gmail.com"
] | kingbowserii@gmail.com |
f356700d720093d7363d0e8af6602a0d4b53452c | 8f26514c451e2398d5e3688c184ea74d1dad21b2 | /month_02/teacher/day03/file_write.py | 0715768cdacd3e3c0fcdcb38b8a2deee1c09b74e | [] | no_license | CircularWorld/Python_exercise | 25e7aebe45b4d2ee4e3e3afded082c56483117de | 96d4d9c5c626f418803f44584c5350b7ce514368 | refs/heads/master | 2022-11-21T07:29:39.054971 | 2020-07-20T10:12:24 | 2020-07-20T10:12:24 | 281,081,559 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | """
文件写操作示例
"""
# 写方式打开
# f = open("file.txt","w")
# f = open("file.txt","a") # 追加
# 读写方式打开,写入文本会从头开始往后覆盖内容
# f = open("file.txt","r+")
f = open("file.txt",'w')
# 写入操作了
n = f.write("Hello world\n")
print("写入了 %d 个字节"%n)
n = f.write("Hello Kitty\n")
print("写入了 %d 个字节"%n)
# 将列表中的内容分别写入到文件中
l = ["哈喽,死鬼\n","哎呀,干啥\n"]... | [
"jiayuhaowork@163.com"
] | jiayuhaowork@163.com |
616478b663bd431079caa7f8d6a770e823eab73b | a7dc07cadaf735a66f459831cdc4c4d0dbbafcd7 | /land_new_info.py | cbee34fc5949c5eb84d70cbef1230fe943ab79ba | [] | no_license | ymJung/study | 2a15f2e036fc9a5c2c78ea7783a73143e443f4b8 | 37e0bb45b7250ed6ee777a6a48e504ad3b12165e | refs/heads/master | 2023-08-31T18:11:01.534192 | 2023-08-20T14:08:10 | 2023-08-20T14:08:10 | 10,260,555 | 0 | 0 | null | 2014-10-20T00:46:50 | 2013-05-24T06:25:20 | null | UTF-8 | Python | false | false | 2,540 | py | import requests
from bs4 import BeautifulSoup
import configparser
import random
import sys
import datetime
import time
cf = configparser.ConfigParser()
cf.read('config.cfg')
landUrls = cf.get('land_url','URLS')
land_price_tuples = landUrls.split(',')
def get_sale_products(findUrl, limit_price) :
soup = Beauti... | [
"metalbird0@gmail.com"
] | metalbird0@gmail.com |
0f7769bb3595630e797871ee52e7f418a9816002 | 14956dbed8ae4fba1d65b9829d9405fcf43ac698 | /Cyber Security/Capture the Flag Competitions/2020/Cyberthon 2020/Livestream Training/RE/Catch No Ball/solve.py | 3dadfa22b242c6738c1a936cb4091cbcf0dd8694 | [] | no_license | Hackin7/Programming-Crappy-Solutions | ae8bbddad92a48cf70976cec91bf66234c9b4d39 | ffa3b3c26a6a06446cc49c8ac4f35b6d30b1ee0f | refs/heads/master | 2023-03-21T01:21:00.764957 | 2022-12-28T14:22:33 | 2022-12-28T14:22:33 | 201,292,128 | 12 | 7 | null | 2023-03-05T16:05:34 | 2019-08-08T16:00:21 | Roff | UTF-8 | Python | false | false | 3,455 | py | #!/usr/bin/env python
'''
Basically, to solve this problem, you HAVE to try to interpret this code
using your pseudocode knowledge and genius, and to figure out what it does
Through some analysis of the code, only the main function 'decode' is
important, along with its helper functions.
The main code was doable to d... | [
"zunmun@gmail.com"
] | zunmun@gmail.com |
0fe44143c74995e1da342650d28d8052088b9b61 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW03_20210706191310.py | 400efe3ada9084523c59768ccc03a50afcf192fe | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | """
Georgia Institute of Technology - CS1301
HW03 - Strings and Lists
Collaboration Statement:
"""
#########################################
"""
Function Name: movieNight()
Parameters: subtitle (str)
Returns: fixed subtitle (str)
"""
#########################################
########## WRITE FUNCTIO... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
026d3ba9df7425cf395334e5f518b3070e753ea6 | e9c0bb90f07144e26e54b78abc9d102b7affc9f8 | /billreminder/model/bills.py | 8698c5edac475547f1409ccd362ff28afff32b0c | [] | no_license | linxaddict/billreminder | fe8b3aee275172518f1e4757e4a89350f2bd2517 | 7c8f52b8d3bdc55199b4f6417d960facf5c6857e | refs/heads/master | 2021-01-11T17:19:07.965038 | 2017-03-29T19:57:29 | 2017-03-29T19:57:29 | 79,741,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | import datetime as dt
__author__ = 'Marcin Przepiórkowski'
__email__ = 'mprzepiorkowski@gmail.com'
class Payment:
def __init__(self, user, bill, created_at=None):
self._user = user
self._bill = bill
self._created_at = created_at or dt.datetime.utcnow()
@property
def user(self):
... | [
"mprzepiorkowski@gmail.com"
] | mprzepiorkowski@gmail.com |
31cabd5e8920b175cf6324dd2fffcddbd08484af | 1757262f5010c5a726cbb11513d5ad88f632c5a2 | /tributary/streaming/calculations/__init__.py | 4ef83213c1f3ac2a5403467227e677722c7cc520 | [
"Apache-2.0"
] | permissive | thetradingflow/tributary | 9287e26dc63fe1320ef1950048e497ac86519ddb | 6f2c3ce0ac86ee7c3343fd970f3c3e7161c5951e | refs/heads/master | 2022-08-01T02:05:18.385140 | 2020-05-18T20:32:08 | 2020-05-18T20:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from .ops import * # noqa: F401, F403
from .rolling import Count as RollingCount, Sum as RollingSum, Min as RollingMin, Max as RollingMax, Average as RollingAverage # noqa: F401
| [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
b28e45c09fa3d58b6a1cd221d055dab1a81ca169 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/44/usersdata/130/14900/submittedfiles/desvpad.py | 386a55164703e424ad038db44693b637a1d910a9 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=input('Digite o valor de n:')
x=[]
for i in range(0,n,1):
x.append(input('Digite um elemento:'))
print(x[0])
print(x[len(x)-1])
s=0
for i in range(0,n,1):
s=s+x[i]
s=s/(len(x))
print(s)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
907bfe48899ad95c6caa0f58360b2de875021754 | 57cb9fef5efac78758f5d151b959ca2216c94083 | /edx/app/edx_ansible/venvs/edx_ansible/bin/rst2xml.py | 1739aa96c81e70299840fba73d614169ffaa6526 | [] | no_license | JosiahKennedy/openedx-branded | 9751d5362088276a87b2e0edca0913568eeb1ac4 | d16a25b035b2e810b8ab2b0a2ac032b216562e26 | refs/heads/master | 2022-12-21T02:39:17.133147 | 2020-03-25T06:03:23 | 2020-03-25T06:03:23 | 249,895,218 | 0 | 1 | null | 2022-12-08T01:23:48 | 2020-03-25T05:33:05 | null | UTF-8 | Python | false | false | 635 | py | #!/edx/app/edx_ansible/venvs/edx_ansible/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import locale
... | [
"josiahk@phyziklabs.com"
] | josiahk@phyziklabs.com |
eae42f62f6186b0dc18bf54d546868beb12061dd | 0778d368a4d26382d3956b710ac928f7944ba54f | /mammoth/docx/numbering_xml.py | f7f98e0c702db3580e71be2e696ca6c7d904a52c | [
"BSD-2-Clause"
] | permissive | tsaltena/python-mammoth | 68ed9af8e0c2b4012e92a08315dc8db5ac34769d | 6746d5f17377327d9947a10a1e8101f8810122e2 | refs/heads/master | 2021-05-15T03:53:17.462401 | 2020-11-09T11:00:10 | 2020-11-09T11:00:10 | 119,989,824 | 0 | 0 | BSD-2-Clause | 2021-01-20T08:01:23 | 2018-02-02T14:11:50 | Python | UTF-8 | Python | false | false | 1,700 | py | from ..documents import numbering_level
def read_numbering_xml_element(element):
abstract_nums = _read_abstract_nums(element)
nums = _read_nums(element, abstract_nums)
return Numbering(nums)
def _read_abstract_nums(element):
abstract_num_elements = element.find_children("w:abstractNum")
return d... | [
"mike@zwobble.org"
] | mike@zwobble.org |
3ec948782164962982fa48bf0a3afa512f6033a7 | 9003a00f9d529c50f7b169dce45f1380f1d466b6 | /atmel/feather/circuitpyton/build_adafruit_circuitpython_bundle_py_20181218/lib/adafruit_onewire/device.py | ce2c49b444f6b2ca7feec8513db5075863e4ffd7 | [] | no_license | 0xFF1E071F/hw | d249b8607ba40d6ce1ed9a4a267639c30019d978 | 2441df0ab45a8e2f3bed4ec7f4eff42ac0a32a7f | refs/heads/master | 2022-04-22T03:59:58.835300 | 2020-04-28T06:52:29 | 2020-04-28T06:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | # The MIT License (MIT)
#
# Copyright (c) 2017 Carter Nelson for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ri... | [
"eiselekd@gmail.com"
] | eiselekd@gmail.com |
65ea3a973c4a55941bc41b7fc132a9cba4286163 | b45b3e5e7389d071161fa52340cb119a29c76907 | /DoubleBufferDemo.py | 2a5be2c67b9df315bc62b6a954771d8f827818b4 | [] | no_license | Metallicow/wxPythonDemos | 2fc6882a11a0aa6bb35c42f163cfcd6b3456f4fd | 396d1ade5930528ec7518b9c22dc93a274cb418f | refs/heads/master | 2020-12-25T11:52:18.577898 | 2013-05-19T18:58:11 | 2013-05-19T18:58:11 | 11,283,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,421 | py | #!/usr/bin/env python
import wx
import random
# This has been set up to optionally use the wx.BufferedDC if
# USE_BUFFERED_DC is True, it will be used. Otherwise, it uses the raw
# wx.Memory DC , etc.
USE_BUFFERED_DC = False
#USE_BUFFERED_DC = True
class BufferedWindow(wx.Window):
"""
A Buffered window cl... | [
"Chris.Barker@noaa.gov"
] | Chris.Barker@noaa.gov |
d3d115752075a17430f9222d060599f649fa1271 | f42f04302b4c7ed34b6e079cc334c499b10d656c | /auditware/apps.py | d7f2cf032329f184f7b9b289216fa8a456661e0e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | un33k/django-auditware | 5edc2159c9aee2aae7c6a2c3d04f9f843665ff49 | 7ea46195aade2caa464fbc9c5646f7565e87be11 | refs/heads/master | 2021-01-10T02:01:27.106266 | 2016-04-05T20:16:37 | 2016-04-05T20:16:37 | 43,097,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django.apps import apps
from django.apps import AppConfig as DjangoAppConfig
from django.utils.translation import ugettext_lazy as _
class AppConfig(DjangoAppConfig):
"""
Configuration entry point for the auditware app
"""
label = name = 'auditware'
verbose_name = _("auditware app")
def ... | [
"val@neekware.com"
] | val@neekware.com |
1c2c3ec6f06be19a149ce546f8991519ff2e516e | cb559124f016b2139ec2e7bd764ee95c72e0c85a | /MainProject/mypost/admin.py | 01fb05bba7b0162ed94437aa5b7cf4115ebb3b50 | [] | no_license | samirpatil2000/RestFrameWork | cb519566871052328f507a863fb5617bba148589 | 776793ef214a0365a722463df5a9e92365847235 | refs/heads/master | 2022-10-19T04:54:09.886050 | 2020-06-09T03:25:41 | 2020-06-09T03:25:41 | 270,561,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.contrib import admin
# Register your models here.
from .models import Post , Category
admin.site.register(Post)
admin.site.register(Category) | [
"samirspatil742099@gmail.com"
] | samirspatil742099@gmail.com |
e11d91874bdc3936c206ac66d1d9bfea012f21ee | 4cacaaebab5db2f35e3fb08f5c8b5dc6cc807d29 | /C1_L1/timer_for_website.py | 2a992921912a6676d9a9424a8d0f1c7d767802f3 | [] | no_license | M0hamedGamal/NanoDgree | f667464080927da9daab3c55daa80e10d016edb1 | 839f6c8fc5219d08d31105061ce2decbe70d9400 | refs/heads/master | 2021-09-05T19:36:08.760757 | 2018-01-30T15:47:40 | 2018-01-30T15:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import time
import webbrowser
total_breaks = 3
break_count = 0
print("This Program Started On: " , time.ctime()) #Current time
while (break_count < total_breaks): #Loop For 3 Time
time.sleep(5) #To Wait 5 Sec
webbrowser.open("https://www.youtube... | [
"you@example.com"
] | you@example.com |
caa9b68f2388f1cebf0aed5cc468db051a5e68ae | f98e37d4dba35055905063596415aaedcfa59fa3 | /ExpenseReportSystemBE/components/secCheck/secCheckLogic.py | c8129142b343f1a5731932a7a03c86142e7f743a | [] | no_license | pyj4104/ExpenseReportSystemBE | 8c8b3fa1c02cab07bf4416ebc797c5c46c0c57cd | 67b30a342394d0df54729aa58df37d5c503592a4 | refs/heads/main | 2023-04-26T09:19:04.702310 | 2021-05-18T02:00:55 | 2021-05-18T02:00:55 | 343,976,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,109 | py | import time
class SecCodeSession:
userEmail: str
created: int
expires: int
def __init__(self, email: str):
self.userEmail = email
self.created = int(time.time())
self.expires = self.created + 600
class SecCodes:
secCodesDict: dict # security codes to user data
usrCodesDict: dict # user email to security ... | [
"pyj4104@hotmail.com"
] | pyj4104@hotmail.com |
32bbc1801f1410cb204d27de24ee4c38082ebf18 | e57f62ce463ae10e2a61bfee6682f92773d56520 | /simim/scenario.py | ed6f51c5e84375b5eb6d97440b074ae956fc0a1a | [
"MIT"
] | permissive | rffowler/simim | 7f5a0ac7df5abce8b13627ef3f838d4196fb657e | d5b9793ebb469fe903fdff0f98898b6f87a433b3 | refs/heads/master | 2020-05-18T19:34:46.965775 | 2019-04-24T13:58:08 | 2019-04-24T13:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,915 | py | """
scenario.py
Manages scenarios
"""
import pandas as pd
class Scenario():
def __init__(self, filename, factors):
self.data = pd.read_csv(filename)
if isinstance(factors, str):
factors = [factors]
# rename scenario cols with O_ or D_ prefixes as necessary
for column in [f for f in self.data.... | [
"a.p.smith@leeds.ac.uk"
] | a.p.smith@leeds.ac.uk |
297f090aa09340a17f20e473690f2254a6bbf410 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5630113748090880_0/Python/cih187/round1AproblemB.py | 7a5b2198cbb47f906cd2f88be65dc5710385d914 | [] | 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 | 1,296 | py | def round1a_b(path):
with open(path, mode='r') as file:
lines = file.readlines()
test_case_number = 0
line_number = 1
while test_case_number < int(lines[0]):
test_case_number += 1
# variables for this problem
n = int(lines[line_number].spli... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
1a4ef0108cb6f9dc1429db6da776aba96ff6f586 | fec622bc34957dd4d99f1ef0f23608eeb40ed609 | /internal/notes/builtin-SAVE/packages/autogen/package.py | 4198ab1589787f6d30b2af2fc527239452709c9b | [] | no_license | scottkwarren/hpctest | 4d5ff18d00c5eb9b7da481c9aa0824aa7082062f | a8bb99b5f601a5d088ae56ab9886ab8079c081ba | refs/heads/master | 2022-09-07T19:36:18.544795 | 2022-08-18T20:26:42 | 2022-08-18T20:26:42 | 100,518,800 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | [
"scott@rice.edu"
] | scott@rice.edu |
49de452b8c12cc429ec8cedf8b4759d6f544e7b1 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab9/set 2/JOHN J WELSH_19371_assignsubmission_file_lab9/lab9/P2.py | 77ac0756b0f7c7014104a22a46737f2475f62f6a | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | class Simple:
def __init__(self,i):
self.i = i
def double(self):
i = self.i
i += i
self.i = i
s1 = Simple(4)
for i in range(4):
s1.double()
print s1.i
s2 = Simple('Hello')
s2.double(); s2.double()
print s2.i
s2.i = 100
print s2.i
| [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
77310ee0bff08f7d081861ed92da5079102f53e9 | 5e2dddce9c67d5b54d203776acd38d425dbd3398 | /spacy/tests/regression/test_issue1253.py | 10829768ec1bd99db43724113a00a0f41ae8b381 | [
"MIT"
] | permissive | yuxuan2015/spacy_zh_model | 8164a608b825844e9c58d946dcc8698853075e37 | e89e00497ab3dad0dd034933e25bc2c3f7888737 | refs/heads/master | 2020-05-15T11:07:52.906139 | 2019-08-27T08:28:11 | 2019-08-27T08:28:11 | 182,213,671 | 1 | 0 | null | 2019-04-19T06:27:18 | 2019-04-19T06:27:17 | null | UTF-8 | Python | false | false | 429 | py | from __future__ import unicode_literals
import pytest
import spacy
def ss(tt):
for i in range(len(tt)-1):
for j in range(i+1, len(tt)):
tt[i:j].root
@pytest.mark.models('en')
def test_access_parse_for_merged():
nlp = spacy.load('en_core_web_sm')
t_t = nlp.tokenizer("Hig... | [
"yuxuan2015@example.com"
] | yuxuan2015@example.com |
5797e3f5a9e0d306f55290ff2b0c26ced31d0a12 | 13625dd7375297b066ccd69d6c229e9a1535c9b2 | /savings/migrations/0016_auto_20201221_0947.py | 75df210829866c486eea392b0c5878838082f722 | [] | no_license | rajman01/investfy | 9d5fa3ed7593ec13db575016fc839664630318af | a4c8bf16ba7a1ce38d1370e4779284a4d6426733 | refs/heads/main | 2023-09-01T19:10:18.411861 | 2023-08-28T02:30:23 | 2023-08-28T02:30:23 | 320,408,218 | 0 | 1 | null | 2023-08-28T02:30:24 | 2020-12-10T22:46:03 | null | UTF-8 | Python | false | false | 3,724 | py | # Generated by Django 3.1.3 on 2020-12-21 08:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('wallet', '0009_wallet_wallet_id'),
migrations.swappabl... | [
"alameenraji31@gmail.com"
] | alameenraji31@gmail.com |
0ba67e81120fca81ce3b369ed3fe9c44049b4f7e | d7d7e13a91d0ded303cbb86a3e6c0f5071b6da74 | /metafeatures/aux/discovery.py | 2bdf474dd6e7817659a50f84327b1ef9cdbdd0fd | [] | no_license | fhpinto/systematic-metafeatures | 40c6f5f6a7a1f775918e27820c72962e5436a010 | 8d646ca5fa67efdf3caea2ca3656ef63c6c4d4d9 | refs/heads/master | 2020-04-06T06:55:26.789685 | 2016-08-26T13:36:18 | 2016-08-26T13:36:18 | 64,952,631 | 4 | 2 | null | 2016-08-19T12:38:59 | 2016-08-04T17:04:55 | Python | UTF-8 | Python | false | false | 1,036 | py | import importlib
import inspect
import pkgutil
import sys
def discover_components(package, directory, base_class):
"""Discover implementations of a base class in a package.
Parameters
----------
package : str
Package name
directory : str
Directory of the package to which is inspec... | [
"feurerm@informatik.uni-freiburg.de"
] | feurerm@informatik.uni-freiburg.de |
4e794f3df16cf82062bff11428a00381326cf9ea | 910c97ce255f39af7ef949664b4346e8cb5d6a0e | /monitorexecutor/dynamic/.svn/text-base/stat_service.py.svn-base | 9d791b8effad2f1cea315dda0c8df5b10a3f9731 | [] | no_license | sun3shines/manager_monitor | f3742a4fde95b456f51d0a18feb78f3d4048c560 | f49d741203d8476f2249a49d90fecc86143ac622 | refs/heads/master | 2021-01-17T06:47:14.375088 | 2016-04-29T06:43:05 | 2016-04-29T06:43:05 | 57,361,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | # -*- coding: utf-8 -*-
import psutil
import datetime
import time
from monitorexecutor.globalx import PSUTIL_SERVICE_INTERVAL,SERVICE_CMDLINE
from monitorexecutor.global_cache import MONITOR_SERVICE_PROCESS
def service_iter():
while True:
for service_name,pc in SERVICE_CMDLINE.items():
se... | [
"sun__shines@163.com"
] | sun__shines@163.com | |
39c6f807a95a6b5a77ae04b4d7f3efa4c8f2f1bf | 3dc3bbe607ab7b583eb52dbaae86636eb642960a | /mmaction/models/localizers/utils/proposal_utils.py | 7b51921684f442df8c0b28a186bc581b2f4d9e3e | [
"Apache-2.0"
] | permissive | open-mmlab/mmaction2 | 659c36c6083fd3d9d072e074a8d4b3a50342b9bd | 582b78fd6c3240500d5cacd292339d7d1ddbb056 | refs/heads/main | 2023-08-28T18:14:50.423980 | 2023-08-10T09:20:06 | 2023-08-10T09:20:06 | 278,810,244 | 3,498 | 1,028 | Apache-2.0 | 2023-09-07T06:50:44 | 2020-07-11T07:19:10 | Python | UTF-8 | Python | false | false | 5,256 | py | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
def temporal_iou(proposal_min, proposal_max, gt_min, gt_max):
"""Compute IoU score between a groundtruth bbox and the proposals.
Args:
proposal_min (list[float]): List of temporal anchor min.
proposal_max (list[float]): List o... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
ece13f701ebfc064b3485e187b768aecae541472 | 3c6aeb458a8bec0671c1d8be18331072ac97e05f | /ohsn/stream/streaming_depressioin.py | 26a5afca34cd4c345d4b01333b7f0cef762f79ff | [] | no_license | wtgme/ohsn | d7b17ad179a789be2325e0923026a681e343a40c | 9c165d45eefa4058e7ed2c6bad348703e296362d | refs/heads/master | 2021-08-29T06:01:20.165839 | 2021-08-12T08:51:46 | 2021-08-12T08:51:46 | 44,922,360 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,601 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 03 03:43:09 2015
@author: wt
crawl stream with keyword-filtering
Keywords are in keywords.txt
https://dev.twitter.com/streaming/reference/post/statuses/filter
The track, follow, and locations fields should be considered to be combined with an OR operator.
track... | [
"wtgmme@gmail.com"
] | wtgmme@gmail.com |
4ec74b74a15727d510b711fb2f2377004c678a3a | 029aa4fa6217dbb239037dec8f2e64f5b94795d0 | /Python算法指南/232_不同的路径II_上题的再应用.py | 38db0f1e03c0d402ee10b759d9d46ce78a45bde4 | [] | no_license | tonyyo/algorithm | 5a3f0bd4395a75703f9ee84b01e42a74283a5de9 | 60dd5281e7ce4dfb603b795aa194a67ff867caf6 | refs/heads/master | 2022-12-14T16:04:46.723771 | 2020-09-23T06:59:33 | 2020-09-23T06:59:33 | 270,216,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | class Solution:
def uniquePathsWithObstacles(self, obstacleGrid):
m, n = len(obstacleGrid), len(obstacleGrid[0])
mp = [[0] * n for _ in range(m)]
mp[0][0] = 1
for i in range(m):
for j in range(n):
if obstacleGrid[i][j] == 1: # 遇到障碍物,路径清0
... | [
"1325338208@qq.com"
] | 1325338208@qq.com |
de99595ec3ae77bc6d35d3e293f5235910a4d554 | c325db01e798fc1d985c4e40c42a4422cd59fd2a | /python/tf/pz_test.py | 31c60bb236378d8a2a617d5ed7ccb1b19af38e94 | [
"Apache-2.0"
] | permissive | google/carfac | 5078c910994dfddb8b4e068a42fab567551a6c55 | 75970ea10092e7fa32fb7d1a236cecb6dcfa796e | refs/heads/master | 2023-09-06T00:00:09.749292 | 2023-07-21T11:21:04 | 2023-07-21T11:21:48 | 11,507,786 | 99 | 39 | Apache-2.0 | 2023-04-17T09:49:31 | 2013-07-18T16:28:12 | Jupyter Notebook | UTF-8 | Python | false | false | 5,900 | py | #!/usr/bin/env python
# Copyright 2021 The CARFAC Authors. All Rights Reserved.
#
# This file is part of an implementation of Lyon's cochlear model:
# "Cascade of Asymmetric Resonators with Fast-Acting Compression"
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except i... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
24cbc1db1201293c58a19ff262bad4e6793375b8 | 2a97a5816f79282878855c7355f7400a36ac1839 | /UTKFace/UTKFace_128x128/CcGAN-improved/models/ResNet_regre_eval.py | 8efb719cfe621bc6eeb99a39d9c5f8bc9683c091 | [] | no_license | simonlevine/improved_CcGAN | 309040cb7ec74b5ef68c3b31f6a32e715df3029e | 3f2660c4a466240b7b3896e8e2ce7aaad759862a | refs/heads/master | 2023-08-13T02:18:55.327856 | 2021-09-24T07:56:48 | 2021-09-24T07:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,190 | py | '''
codes are based on
@article{
zhang2018mixup,
title={mixup: Beyond Empirical Risk Minimization},
author={Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, David Lopez-Paz},
journal={International Conference on Learning Representations},
year={2018},
url={https://openreview.net/forum?id=r1Ddp1-Rb},
}
'''
import torch... | [
"dingx92@gmail.com"
] | dingx92@gmail.com |
f990494489bde1a8610d3c197a3d453e56275a20 | b47c136e077f5100478338280495193a8ab81801 | /Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/fxas21002c_simpletest.py | 03e33d75201c976b1b9d57b78db301d55e193ae0 | [
"Apache-2.0"
] | permissive | IanSMoyes/SpiderPi | 22cd8747cc389f674cc8d95f32b4d86f9b7b2d8e | cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1 | refs/heads/master | 2023-03-20T22:30:23.362137 | 2021-03-12T17:37:33 | 2021-03-12T17:37:33 | 339,555,949 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
# Simple demo of the FXAS21002C gyroscope.
# Will print the gyroscope values every second.
import time
import board
import busio
import adafruit_fxas21002c
# Initialize I2C bus and device.
i2c = busio.I2C(bo... | [
"ians.moyes@gmail.com"
] | ians.moyes@gmail.com |
2543d81a8f1e8d62cca1d44ab2baf964f4eeb4e7 | cd486d096d2c92751557f4a97a4ba81a9e6efebd | /16/addons/script.icechannel.extn.common/plugins/tvandmovies/g2g_mvs.py | 63c69da9c356ca9af9df9f71a21c8688c0011255 | [] | no_license | bopopescu/firestick-loader-kodi-data | 2f8cb72b9da67854b64aa76f720bdad6d4112926 | e4d7931d8f62c94f586786cd8580108b68d3aa40 | refs/heads/master | 2022-04-28T11:14:10.452251 | 2020-05-01T03:12:13 | 2020-05-01T03:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | '''
g2g.cm # OdrtKapH2dNRpVHxhBtg
Copyright (C) 2013
'''
from entertainment.plugnplay.interfaces import MovieSource
#from entertainment.plugnplay.interfaces import CustomSettings
from entertainment.plugnplay import Plugin
from entertainment import common
import os
from entertainment.xgoogle.search import Go... | [
"esc0rtd3w@gmail.com"
] | esc0rtd3w@gmail.com |
35ee20b58a930dc5be88bf349a6be48e6d7f59ea | 986769755b642932cbbf4b3f1022ff04980014cd | /WhatManager2/urls.py | 911fedfad0903f35b437e5a36f7179c3b98c8ad7 | [
"MIT"
] | permissive | jimrollenhagen/WhatManager2 | 47d4bba79dc9c80a1f91576b334235f419da3160 | 832b04396f23c19764557b7ccb6d563035d424ec | refs/heads/master | 2020-12-28T22:46:02.411169 | 2014-09-02T02:53:44 | 2014-09-02T02:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
'',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('home.urls')),
url(r'^json/', include('what_json.urls')),
url(r'^download/', include('download.urls')),... | [
"ivailo@karamanolev.com"
] | ivailo@karamanolev.com |
7564e367b36c449b7e12686ed0ab34031b201f69 | 2b96be128373ddd61945bf8b34af832844867b20 | /errormsg.py | 5c4ab463a62c612c60074f07580c20d63b351711 | [] | no_license | novaliu86/apparatus3-seq | 330f7039ec1404cc3badfbd88a3f0a0e396e8421 | 3f7bae71e9844444f2b354fc3c5f5455ca67b2e4 | refs/heads/master | 2021-01-17T22:30:06.239255 | 2013-10-04T23:33:29 | 2013-10-04T23:33:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py |
from Tkinter import *
import tkMessageBox
def box(title,msg):
window = Tk()
window.wm_withdraw()
tkMessageBox.showerror(title=title,message=msg, parent=window)
if __name__ == "__main__":
box("error","Error Mesagge")
##window = Tk()
##window.wm_withdraw()
#print window.geometry()
#message at ... | [
"pmd323@gmail.com"
] | pmd323@gmail.com |
ef4c4c1f3068800382a2dbdbacfe2b987fe76892 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_156/505.py | 22a5a74feb5b7fe6de6eacca91094c15de6f4929 | [] | 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 | 2,565 | py | # ___ ______________________________________________ ___ #
#|_/*| |*\_|#
#|_/*| Google Code Jam - "Hello World" |*\_|#
#|_/*| 10.04.2015 - the end |*\_|#
#|_/*| Qualification |*\_|#
#|_/*|___________________... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c84bb7cc50aed8f41a750faecaf4c15d1962f258 | 554090526e41ab16f927e5fcb772e119923d6080 | /three_charts.py | f43d1dbcd5b0ae57c779948590b52519a681fae4 | [] | no_license | s2t2/charts-gallery-py | f95a151995b9b72ccc1e1823a6d3689a21d5489a | 64abd69be3cd4fcbd7732eb1f4e0ac4f1715bae7 | refs/heads/master | 2020-04-21T05:58:24.546261 | 2019-02-06T21:20:08 | 2019-02-06T21:20:08 | 169,354,429 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # three_charts.py
#
# CHART 1 (PIE)
#
pie_data = [
{"company": "Company X", "market_share": 0.55},
{"company": "Company Y", "market_share": 0.30},
{"company": "Company Z", "market_share": 0.15}
]
print("----------------")
print("GENERATING PIE CHART...")
print(pie_data) # TODO: create a pie chart based o... | [
"s2t2@users.noreply.github.com"
] | s2t2@users.noreply.github.com |
b194d0f0623ac12adb20f646bd9719a895c6fa03 | 4292312541c9f13cb501be3ade936ff156e80fbe | /proso_models/api_test.py | d4f16107e4ddf2a2129437b51615a2a0a0822049 | [
"MIT"
] | permissive | thanhtd91/proso-apps | 995ce5a327a93a6c77ebbe21297c3c18bde92711 | 58c95ebb4da1207de8972237c383489575ce2a20 | refs/heads/master | 2022-09-23T05:03:51.276549 | 2020-03-19T22:02:12 | 2020-03-19T22:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,757 | py | from django.conf import settings
from django.core.management import call_command
from proso.django.test import TestCase
from proso_models.models import Item
from proso_flashcards.models import Term, Flashcard, Category, Context
import json
class PracticeAPITest(TestCase):
fixtures = [
'test_common_data.y... | [
"jan.papousek@gmail.com"
] | jan.papousek@gmail.com |
e398a0c0124acbf11bc286459c836a7fd9b5c0dd | 62039bcca548f2b974d13e7ef17d78ba39cf8010 | /tests/test_ncbi_entrez_annotations.py | 692eeea55b1f89ca6b915c5827721165681c9d79 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | camiloaruiz/goatools | 8d48ef34d13df15fcc738aba2dcbe67032cdf5e3 | 3da97251ccb6c5e90b616c3f625513f8aba5aa10 | refs/heads/master | 2020-03-20T07:40:22.899604 | 2018-08-07T19:59:34 | 2018-08-07T19:59:34 | 137,287,908 | 0 | 0 | BSD-2-Clause | 2018-06-14T00:56:11 | 2018-06-14T00:56:10 | null | UTF-8 | Python | false | false | 3,653 | py | """Tests downloading and reading of the GO annotation file from NCBI Gene.
python test_NCBI_Entrez_annotations.py
"""
__copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang. All rights reserved."
__author__ = "DV Klopfenstein"
import sys
from collections import defaultdict
from goatools.associatio... | [
"dvklopfenstein@users.noreply.github.com"
] | dvklopfenstein@users.noreply.github.com |
a9b1343d26aab1a47f18de34c95953d66bfe7238 | 50e2012ecea8307e278d1132ca0094adb940aff2 | /lib/review/my_sort/xuan_ze_sort.py | 2d147534f7a757a5ad6e0191d111ab11785b0a36 | [] | no_license | Lewescaiyong/my_library | 6689cae2db4aaa980b4bd5ed9f21691eefbff2fe | 35d0d29097823ccef74fa29ca8756a7f59ceeb78 | refs/heads/master | 2020-11-25T09:20:56.484275 | 2019-12-17T10:58:20 | 2019-12-17T10:58:20 | 228,593,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
a_list = range(30)
random.shuffle(a_list)
print a_list
# 使用选择排序对列表进行排序
for i in range(len(a_list) - 1):
for j in range(i + 1, len(a_list)):
if a_list[i] > a_list[j]:
a_list[i], a_list[j] = a_list[j], a_list[i]
print a_list
| [
"1351153527@qq.com"
] | 1351153527@qq.com |
d14de9dd1f4ecedfcd933de9d92811fb01d16fe3 | 35fd40fbc4cfa46272c4031b9ca0cb88572e3fa4 | /xmonitor/common/scripts/utils.py | 2d365bad42cc5429e98be796e44ca4910938b1aa | [
"Apache-2.0"
] | permissive | froyobin/xmonitor | 3d662541387226a4ff1c18ef450fdc77a769d0b8 | 092dcaa01f834353ffd8dd3c40edf9e97543bfe8 | refs/heads/master | 2020-12-23T22:33:15.758127 | 2016-06-30T06:18:05 | 2016-06-30T06:18:05 | 62,284,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,574 | py | # Copyright 2014 OpenStack Foundation
# 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 requ... | [
"froyo.bin@gmail.com"
] | froyo.bin@gmail.com |
659ce6eedcc37d786b1fbb227a329de04172d815 | 7981914523b28c54576ce548ec4c326314a997cf | /setup.py | 39858b2cb46006739ec3dd881ee76b1df57430a3 | [] | no_license | geyang/tf_logger | 83168499c0acb45890ef68ffce2528848e574ab2 | e68f7d19e014d2d7878513c276802db4aa37d8d2 | refs/heads/master | 2021-09-12T13:13:25.920198 | 2018-04-17T04:35:40 | 2018-04-17T04:35:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | from os import path
from setuptools import setup
with open(path.join(path.abspath(path.dirname(__file__)), 'README'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(path.abspath(path.dirname(__file__)), 'VERSION'), encoding='utf-8') as f:
version = f.read()
setup(name="tf_logger",
... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
ccae434857ea91044d3f302e99af40d91f834838 | ec6cb8542c8ed962d24ca32fc1f060ef63fdfea7 | /第一阶段/review_month01/month01/day10/demo03.py | 4912dc1a0e7e42d288f7093cb349fbabc706c428 | [] | no_license | singerdo/songers | 27859a4ff704318d149b2aa6613add407d88bb5d | 9c5dcd80c6772272c933b06c156b33058cbd3ce4 | refs/heads/master | 2022-04-16T11:00:11.002138 | 2020-04-18T07:15:16 | 2020-04-18T07:15:16 | 256,686,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | """
实例成员: 对象.成员名
实例变量
对象.变量名
实例方法
对象.方法名称()
"""
# 全局变量
a = 10
def func01():
# 局部变量
b = 20
class MyClass:
def __init__(self, c):
# 实例变量
self.c = c
def func02(self):
pass
mc01 = MyClass(30)
print(mc01.c)
print(mc01.__dict__)# 系统提供的... | [
"569593546@qq.com"
] | 569593546@qq.com |
202548ecc73466cb75e0fc08f83fc70b4de52c7f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_194/ch36_2019_04_04_17_41_44_521451.py | 41f5c5173746f4ebf02bbff3c65de5db745362a3 | [] | 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 | 265 | py | def eh_primo(n):
primo = True
divisor = 2
if n < 2:
primo = False
elif n == 2:
primo = True
else:
while divisor < n:
if n % divisor == 0:
primo = False
divisor += 1
return primo | [
"you@example.com"
] | you@example.com |
268bb911d88b9c496bb99a9f29b74403225a2e3d | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/scattercarpet/line/_width.py | ee5a9364a2f3fac047fec5cebbf518dc64a31c27 | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 544 | py | import _plotly_utils.basevalidators
class WidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name='width', parent_name='scattercarpet.line', **kwargs
):
super(WidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=par... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
49f358698f83b5d59960551bec1a1439c00161b0 | 614271299ef8145ad40d7ff197897b1a5d598bea | /slackchannel2pdf/settings.py | cb39f8fcfec46ca3eb9dc13659ec6ce215026ad4 | [
"MIT"
] | permissive | 17500mph/slackchannel2pdf | 14498685cdb8d9ac4bdc586948560e8adbd1151a | 2848dfaaffbf9a5255c6dbe87dcc1e90d062b820 | refs/heads/master | 2023-03-04T16:49:28.638394 | 2021-02-21T11:28:16 | 2021-02-21T11:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | """Defines all global settings incl. from configuration files"""
from ast import literal_eval
import configparser
from pathlib import Path
_FILE_NAME_BASE = "slackchannel2pdf"
_CONF_FILE_NAME = f"{_FILE_NAME_BASE}.ini"
_LOG_FILE_NAME = f"{_FILE_NAME_BASE}.log"
_DEFAULTS_PATH = Path(__file__).parent
def _configpars... | [
"erik.kalkoken@gmail.com"
] | erik.kalkoken@gmail.com |
7b74499dbf42c018aec13de219672e212ca40a5a | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_11/masa_project/branches/common/budget_custom_report/wizard/budget_main.py | 5ae0836ad9cdc04d75cfc1505aa9649e63578f1a | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,678 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api , _
from datetime import date, datetime, timedelta
from odoo.exceptions import UserError, ValidationError
####################################### Budget Custom Reports ##################################################################
class BudgetReportM... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
bd7dadc54b85e08c31e8ca417b8a7925d903e09a | 5dc7dc7e33122e8c588eb6e13f23bf032c704d2e | /scripts/transfer_from_TEXT_to_SQLITE.py | d149f8918fe194ad0b74376c404e553546a1a822 | [
"Apache-2.0"
] | permissive | brianr747/platform | a3319e84858345e357c1fa9a3916f92122775b30 | 84b1bd90fc2e35a51f32156a8d414757664b4b4f | refs/heads/master | 2022-01-23T16:06:26.855556 | 2022-01-12T18:13:22 | 2022-01-12T18:13:22 | 184,085,670 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | """
Script that transfers all series from the TEXT database to the SQLite database.
Note: the TEXT database series to have the correct ticker_full as the column header.
"""
import econ_platform_core
import econ_platform.start
econ_platform_core.start_log()
econ_platform_core.Databases['SQLITE'].LogSQL = True
ticker... | [
"brianr747@gmail.com"
] | brianr747@gmail.com |
b020c98bdd919c3fa176f6133cb896944293d497 | 61f9553eedc2ec936ea87f06da5b986091e3b8ff | /workspace/buildout-cache/eggs/z3c.form-3.0.2-py2.7.egg/z3c/form/tests/test_doc.py | f5a7184d64deb6152f01ed8826dfdc78c10e1f9a | [] | no_license | gruhter/gso | 47880b055455cc99d63eec72498048c857e7831b | c0eb949f8a06aab6b97329d51a6d046e2fc0a653 | refs/heads/master | 2016-09-01T18:28:05.589620 | 2015-05-14T19:38:18 | 2015-05-14T19:38:18 | 35,579,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | ##############################################################################
#
# Copyright (c) 2007 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"gso@abv.bg"
] | gso@abv.bg |
68a763f7ac69f4b4787488d915ee751df8e07af7 | a913d347c5a46fd7ff28415dfebe9b10829fdef9 | /tests/test_puzzle.py | d6a4847a136bbbf2416b8eac474fb403a4a2fe16 | [] | no_license | RZachLamberty/logicpuzzlesolver | 6d9ba414e549b13396573ea0d875dae8f592c9b9 | b8a93e5bda76bb8e3afc66ef902c42b06c532e8c | refs/heads/master | 2021-01-10T16:11:38.742828 | 2015-12-30T19:42:20 | 2015-12-30T19:42:20 | 47,845,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module: test_puzzle.py
Author: zlamberty
Created: 2015-12-19
Description:
test the puzzle class
Usage:
<usage>
"""
import os
import pandas as pd
import unittest
import categories
import rulelist
import puzzle
CONFIG = os.path.join(
os.path.dirname(os... | [
"r.zach.lamberty@gmail.com"
] | r.zach.lamberty@gmail.com |
dfc4e92940c3353a5ef279149b589cbbb49540bf | 0958c33f05f5d3922c47cccadebc9e70394b8a78 | /PowerClassification/ResultAnalysis-Test09/CompareTwoExperiments.py | 50818376fc11311b1a9bfed095e101098bca4b6b | [] | no_license | jabarragann/eeg_project_gnaut_power_band_analysis | 0b33a5ebdeffd37b64094ba01f8dbd94f9baf961 | 3f7a7183593eb54a63efcff3762fb2144a0af2df | refs/heads/master | 2021-08-10T20:47:23.266562 | 2021-07-21T02:37:53 | 2021-07-21T02:37:53 | 245,556,675 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | import pandas as pd
from pathlib import Path
import numpy as np
import re
import matplotlib.pyplot as plt
import seaborn as sns
# sns.set_theme(style="whitegrid")
# experiment1Path = {"path":"aa16b_pyprep_complete/", "condition":"FullSet"}
# experiment2Path = {"path":"aa16_pyprep_complete/" , "condition":"SubSet"}
... | [
"barragan@purdue.edu"
] | barragan@purdue.edu |
b541fe78bc55ab89ff27e9be669b95806c47396b | b3c17f6b3b1c5322a5bf8dd262d01a85e6de2849 | /web-api/customSite/ocr/custom_ocr_module/src/detection/ctpn/utils/rpn_msr/generate_anchors.py | 8ac5cee0f28ee718219da4393b4a31c54e874f8f | [] | no_license | arxrean/CelebRecognition | 6e65a76e984e54ef6a34e9b3dc44e0d19b79bcd6 | b202c6ef8bd6314b9c43a02b5afdbad64522f5ee | refs/heads/master | 2022-11-23T07:42:13.584305 | 2019-09-02T08:03:05 | 2019-09-02T08:03:05 | 204,247,279 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | import numpy as np
# 生成基础anchor box
def generate_basic_anchors(sizes, base_size=16):
base_anchor = np.array([0, 0, base_size - 1, base_size - 1], np.int32)
anchors = np.zeros((len(sizes), 4), np.int32) # (10, 4)
index = 0
for h, w in sizes:
anchors[index] = scale_anchor(base_anchor, h,... | [
"602052254@qq.com"
] | 602052254@qq.com |
6d52867e4a517db70b6d40506b0c61cf314f3338 | cf025ea3bf079748472557304a290593c753b884 | /Algorithm/SWEA/시험문제/시험문제_2.py | 46481ac0b5ea15cf3b3aaba6f2a5c020c00f7f52 | [] | no_license | Silentsoul04/my_software_study | 7dbb035ceea74f42c7ce2051b2320f6cae75ed88 | c27d33c57f59fe5244a1041c11bbd826dd481546 | refs/heads/master | 2023-03-29T02:43:40.861045 | 2019-07-10T08:09:55 | 2019-07-10T08:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | import sys
sys.stdin = open('test_2.txt','r')
from itertools import combinations
testcases = int(input())
for tc in range(testcases):
N, M = list(map(int,input().split())) # N 은 행의크기, M 은 열의크기
mat = [list(map(int,input().split())) for _ in range(N)]
max_ = 0
for s_ in range(1, N):
s = s_
... | [
"pok_winter@naver.com"
] | pok_winter@naver.com |
bbb44934c8f2e091c86000447893dbfe722bdb59 | 29d0131660ab0392861df94d4a3198f963db233c | /scripts/delcomments.py | 50a8f9a01cfd2a2dc639c3c6dd5c4a538a88a0b1 | [
"MIT"
] | permissive | kalinochkind/vkbot | be7123d82063c6c0ce108e532b2798e1bde898e4 | 306a244cb15745057fd838cd7c3163f0b6754d4b | refs/heads/master | 2020-04-04T06:24:16.429204 | 2019-05-13T16:49:31 | 2019-05-13T16:49:31 | 46,568,794 | 39 | 16 | null | 2015-11-21T19:45:13 | 2015-11-20T15:06:54 | Python | UTF-8 | Python | false | false | 839 | py | import logging
import accounts
import cppbot
import log
def isBad(bot, comm):
return bot.interact('comm ' + bot.escape(comm)) == '$blacklisted'
# noinspection PyUnusedLocal
def main(a, args):
a.timeout = 10
dm = a.delayed()
bot = cppbot.CppBot('', 0, None)
self_id = a.users.get()[0]['id']
... | [
"kalinochkind@gmail.com"
] | kalinochkind@gmail.com |
a24dd232f54e280a80ade479a457b4adf4a3472f | 0effd6f590f0d6d17f080e4c41660df13ffa64a7 | /commands/explain_document.py | 24083bf2e441b972d713ec47253e5897d2c125f0 | [] | no_license | vinodpanicker/sublime-elasticsearch-client | a6b2b5992979fa30d1b01cc98d962c657851ae1d | 62b8894f2dbbc776569bc4c6ab0586f7c89dd8c7 | refs/heads/master | 2021-01-13T06:21:02.945999 | 2015-09-14T04:01:33 | 2015-09-14T04:01:33 | 48,857,093 | 1 | 0 | null | 2015-12-31T17:30:18 | 2015-12-31T17:30:18 | null | UTF-8 | Python | false | false | 485 | py | from .base import BaseCommand
class ExplainDocumentCommand(BaseCommand):
command_name = "elasticsearch:explain-document"
def run_request(self, id=None):
if not id:
self.show_input_panel('Document Id: ', '', self.run)
return
options = dict(
index=self.setti... | [
"kido@knowledge-works.co.jp"
] | kido@knowledge-works.co.jp |
de613a6cd9d0c48a3facb4d8e463cfccd9f9b0d4 | a9c3db07c29a46baf4f88afe555564ed0d8dbf2e | /src/0059-spiral-matrix-ii/spiral-matrix-ii.py | c7d45edc7205ebac9381b2f8b6de35e9d65e0110 | [] | no_license | HLNN/leetcode | 86d2f5b390be9edfceadd55f68d94c78bc8b7644 | 35010d67341e6038ae4ddffb4beba4a9dba05d2a | refs/heads/master | 2023-03-13T16:44:58.901326 | 2023-03-03T00:01:05 | 2023-03-03T00:01:05 | 165,402,662 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order.
#
#
# Example 1:
#
#
# Input: n = 3
# Output: [[1,2,3],[8,9,4],[7,6,5]]
#
#
# Example 2:
#
#
# Input: n = 1
# Output: [[1]]
#
#
#
# Constraints:
#
#
# 1 <= n <= 20
#
#
class Solution:
def generateMatrix(... | [
"Huangln555@gmail.com"
] | Huangln555@gmail.com |
4e4eabaf2b55526f75580bb1803ec0d48f306489 | eb00755d9d0f2630ffdb21e3ab6685b2fbcb0d9e | /tests/bench/bench_scripts/bench_sum.py | 7f7d72c9637914d79320c2cdc9f9ffae2db9ff9b | [
"BSD-3-Clause"
] | permissive | mlangill/biom-format | aca45518c71b807cf30b0f548ad726880802a2b5 | 4cebfbdba8b6b64ff0d503df33634e3d52de1de0 | refs/heads/master | 2021-01-16T21:59:51.218830 | 2013-12-04T16:41:50 | 2013-12-04T16:41:50 | 9,486,201 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #!/usr/bin/env python
from sys import argv
from gzip import open as gzip_open
from biom.parse import parse_biom_table
if __name__ == '__main__':
table = parse_biom_table(gzip_open(argv[1]))
foo = table.sum()
| [
"mcdonadt@colorado.edu"
] | mcdonadt@colorado.edu |
1150b554ca225799561fdcf23ca5e95515d27372 | 61d08e23fbb62e16f7bd9d43673b1cf4e0558c37 | /other/character.py | 660ebb5286f5391e2ab709d75d3d45db874ddaae | [] | no_license | jonntd/mira | 1a4b1f17a71cfefd20c96e0384af2d1fdff813e8 | 270f55ef5d4fecca7368887f489310f5e5094a92 | refs/heads/master | 2021-08-31T12:08:14.795480 | 2017-12-21T08:02:06 | 2017-12-21T08:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,280 | py | import shutil
import os
import logging
import maya.cmds as mc
import xgenm as xgen
import xgenm.xgGlobal as xgg
from PySide2.QtWidgets import *
tex_template = "M:/BA/publish/assets/Character/{asset_name}/Shd/Shd/_tex"
publish_template = "M:/BA/publish/assets/Character/{asset_name}/Shd/Shd/_publish/maya/BA_{asset_name... | [
"276575758@qq.com"
] | 276575758@qq.com |
f91de1717dfd7a91f697029607b32f03528f3f2f | c25fa1b8dd48b6dc4302f626f797d3411d1a991d | /bacon.py | 1241c3cbecb8e47a2a61a1329ee2a36a132c67c1 | [] | no_license | jasminh925/bacon | 8a3c542828f93814b7212cb734e043336e53dbad | b3303ca1f82a27282c8109f79d093fa474cf033f | refs/heads/master | 2020-05-30T23:23:17.420030 | 2016-08-03T04:21:07 | 2016-08-03T04:21:07 | 64,814,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | def bacon():
pork = raw_input("Should you eat that bacon?")
angels = raw_input("Do you want to feel like angels are frolicking on your taste buds?").lower()
if angels == "yes":
return "Eat it!"
elif angels == "no":
print "You've clearly never tasted bacon."
return "Eat it"
else:
coward = raw_input("I see y... | [
"you@example.com"
] | you@example.com |
2117b97c99737ddfd126db5b1411d0278a6cc213 | c69e2eb04c5bff10dd1ec214e6dbe3917a156cef | /test-pandas.py | bb34c9838161b66dd3dba21b7fab57e056ad5d9f | [] | no_license | Jizishuo/daily_code | c865bb1df063dd2cfd9c0e8ab9f64bc9f33ef5c2 | cc9b7423bfc7e4a990c3554d91613ee9144ed9e2 | refs/heads/master | 2021-08-10T20:04:42.541355 | 2020-04-11T05:59:26 | 2020-04-11T05:59:26 | 154,241,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | import pandas as pd
#VIDEO_INFO_PATH = 'F:\\test-data-ex\\0729(0-12).csv'
VIDEO_INFO_PATH = 'F:\\0729-history-alarm.csv'
# Series & DataFrame是Pandas中最常用的两个对象
# Series
if __name__ == '__main__':
#video_info = pd.read_csv(VIDEO_INFO_PATH, encoding='ISO-8859-1')
video_info = pd.read_csv(VIDEO_INFO_PAT... | [
"948369894@qq.com"
] | 948369894@qq.com |
9df72bb5dd9d18de36606776a1ca5a76d0e7c0b1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_076/ch141_2020_04_01_20_36_34_858929.py | 9a70d3a247b9894c9efe74e20b17d5431601ec88 | [] | 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 | 1,504 | py | import random
dinheiros = 1000
a=input("Jogo iniciado. Você quer apostar?")
while a != "não":
dinheiros -= 30
dado1 = random.randint(1,6)
dado2 = random.randint(1,6)
b= input("Os dados foram lançados. Chute o valor da soma por 30 dinheiros.")
if b == dado1 + dado2:
dinheiros += 50
... | [
"you@example.com"
] | you@example.com |
42684450fa04e067ffbbf06157502666d0a88556 | ea6267b0a3508fd262acdefa51e5ad0f8f2a0563 | /src/commcare_cloud/environment/constants.py | e5126c33b55b4d8e78fb02d8aa392eaa39ae8c28 | [
"BSD-3-Clause"
] | permissive | rohit-dimagi/commcare-cloud | a606bc269f36be594d38ba6ff516411d63f37aad | 55576713f3a12acc3f2df4f24c405df9c30143b3 | refs/heads/master | 2020-06-15T16:08:46.350848 | 2019-07-17T07:34:41 | 2019-07-17T12:05:13 | 195,337,852 | 0 | 0 | BSD-3-Clause | 2019-07-05T04:17:48 | 2019-07-05T04:17:48 | null | UTF-8 | Python | false | false | 479 | py | import jsonobject
class _Constants(jsonobject.JsonObject):
commcarehq_main_db_name = jsonobject.StringProperty(default='commcarehq')
formplayer_db_name = jsonobject.StringProperty(default='formplayer')
ucr_db_name = jsonobject.StringProperty(default='commcarehq_ucr')
synclogs_db_name = jsonobject.Stri... | [
"droberts@dimagi.com"
] | droberts@dimagi.com |
31c86fbea013718e4e447491328b433b47f69512 | 9bd861d47402c81f9cc608dc414c9827baa88dd5 | /_estudoPython_solid/string_lista.py | 74ef590ab5c66d20b8d082b79f770e764908f505 | [
"Apache-2.0"
] | permissive | c4rl0sFr3it4s/Python_Analise_De_Dados | 8d4cf637573a5610489a2bd44e2a34c749456e73 | 74a72772179f45684f4f12acd4ad607c99ed8107 | refs/heads/master | 2023-02-02T21:13:16.150017 | 2020-08-03T17:52:19 | 2020-08-03T17:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | '''
string grupo de caracteres, trata a frase como uma LISTA
de caracteres.
para imprimir a primeira letra frase[0]
lista é assim 1 caractere 0, 2 caractere 1, 3 caractere 2 etc
[0,1,2,3,4,5,6,7,8,9,10] -> indice
O,i, ,t,u,d,o, ,b,e,m
LISTA é uma estrutura de dados coleção que pode guardar varios tipos de dados... | [
"ti.carlosfreitas@outlook.com"
] | ti.carlosfreitas@outlook.com |
52141d7e15eb082e5473257ada7c24392d5df779 | e85e846960750dd498431ac8412d9967646ff98d | /cms/migrations/0024_auto_20170702_0605.py | 66f85c2b82850a5caef978b4485dd70afb174bf6 | [] | no_license | onosaburo/clublink_django | 19368b4a59b3aed3632883ceffe3326bfc7a61a6 | d2f6024b6224ea7f47595481b3382b8d0670584f | refs/heads/master | 2022-03-30T05:30:12.288354 | 2020-01-27T18:09:11 | 2020-01-27T18:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-07-02 10:05
from __future__ import unicode_literals
from django.db import migrations, models
def generate_full_path_recursive(page):
page.full_path = page.parent.full_path if page.parent else ''
if page.slug:
page.full_path += '{}/'.format(... | [
"bestwork888@outlook.com"
] | bestwork888@outlook.com |
11726609336d3f6cd333ea5b5aa5ab7fa4187742 | 66d05b6b42245e4df51a80b593770f761812eb92 | /PYTHON/python_code/object-oriented/turkeys/turkeys.py | 602ea90fa89e3bf24fa78291613fcf9f05ce608d | [] | no_license | techemstudios/intro_cs | 8f32b8b40974c49c65255df8f8e3a835df218df3 | dd2ee57394ab04e86b6d78b70a038ba0f04f661f | refs/heads/master | 2021-10-19T13:04:28.354963 | 2019-02-21T05:28:10 | 2019-02-21T05:28:10 | 119,568,375 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | """
Object Oriented Programming (Thanksgiving Giving style)
We start defining classes with Animals.
We can define that parent of the class, Animals, as well as the parent of that class.
However, to save time we start at Animals. Starting here; instead of
directly at the turkey class, should help keep in mind we can d... | [
"joe@techemstudios.com"
] | joe@techemstudios.com |
46867e9e4e92fddc64d6f93273ad2155bae22037 | efe58c533fb211d457c598fb1fdabbaf1f284a09 | /asdf.py | 2e2d3210c9c44d407d87329799d571a09a56d8ce | [] | no_license | uniphil/beep-beep-edge | 91d59fb04649a72717ca4afa4cc50d5d6bb4c3e8 | 94c11bae2527edb037cca6a1cec912e53b7a242a | refs/heads/main | 2023-01-13T16:25:23.939980 | 2020-11-15T07:33:56 | 2020-11-15T07:33:56 | 312,756,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | #!/usr/bin/env python3
import hashlib
import json
import re
import struct
import urllib.request
def unwrap_syslog(line):
_, rest = line.split(']: ', 1)
return rest
def parse_httpd_log(line):
m = re.match(r'^\w+ (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) \-.*\- \[.*\] "GET (.*) HTTP/1\.[01]" 200 0 "(.*?)" "(.*... | [
"uniphil@gmail.com"
] | uniphil@gmail.com |
752f484dc8427e86fe36a0e5d5f6301b62be3e66 | 209c876b1e248fd67bd156a137d961a6610f93c7 | /python/paddle/fluid/tests/unittests/collective/fleet/hybrid_parallel_mp_random.py | f779b3298b8dcadbbf7d846adafe260e6bb99497 | [
"Apache-2.0"
] | permissive | Qengineering/Paddle | 36e0dba37d29146ebef4fba869490ecedbf4294e | 591456c69b76ee96d04b7d15dca6bb8080301f21 | refs/heads/develop | 2023-01-24T12:40:04.551345 | 2022-10-06T10:30:56 | 2022-10-06T10:30:56 | 544,837,444 | 0 | 0 | Apache-2.0 | 2022-10-03T10:12:54 | 2022-10-03T10:12:54 | null | UTF-8 | Python | false | false | 2,235 | py | # Copyright (c) 2021 PaddlePaddle Authors. 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 appli... | [
"noreply@github.com"
] | Qengineering.noreply@github.com |
8835836e75417a9af60bebd2cad24160cdc3265b | df2d967d02f004e46d44bfcd3cc8cdbf1ae54c9d | /tests/test_core/test_factory.py | f6fcce00563512aeb5481e7805c0669307edf8ad | [
"MIT",
"CC-BY-4.0"
] | permissive | skasberger/owat_api | f3df29cb1466753390f72c2b4603a7c48d1a4e8f | d40860eeef0de151d51200161baaf10c55810fb1 | refs/heads/master | 2023-01-24T11:01:05.223602 | 2020-11-14T11:26:57 | 2020-11-14T11:26:57 | 310,701,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,387 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test factory."""
from fastapi import FastAPI
import os
import pytest
from app.config import get_config
from app.database import get_engine, get_SessionLocal
from app.main import create_app
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__f... | [
"mail@stefankasberger.at"
] | mail@stefankasberger.at |
0156df3dfcfc720906440e213664f5d8e437dfc7 | 81bad22641705683c68ff89f19362ba202891652 | /napari/utils/progress.py | 2f4dfaa2388ece8d1656f3c87ede44c8642dce93 | [
"BSD-3-Clause"
] | permissive | sofroniewn/napari | ee2a39a1a1132910db6f2a47994671e8138edb51 | beaa98efe5cf04ba659086e7a514b2ade05277af | refs/heads/main | 2023-07-12T02:46:41.185932 | 2022-09-14T21:57:15 | 2022-09-14T21:57:15 | 154,751,137 | 2 | 3 | BSD-3-Clause | 2023-07-01T10:26:45 | 2018-10-25T23:43:01 | Python | UTF-8 | Python | false | false | 4,659 | py | from typing import Iterable, Optional
from tqdm import tqdm
from napari.utils.events.event import EmitterGroup, Event
from ..utils.events.containers import EventedSet
from ..utils.translations import trans
class progress(tqdm):
"""This class inherits from tqdm and provides an interface for
progress bars in... | [
"noreply@github.com"
] | sofroniewn.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.