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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9cc60c5abdd36edbd7a873ba397ed2815867ad34 | 66cff6c4ad4c5fd6ecdfb723614f0475e27a5b38 | /akshare/air/air_hebei.py | 7954e6d79e7f2c969e9da72997e8aedbf6ef83fa | [
"MIT"
] | permissive | ifzz/akshare | a862501b314f2b5aeab22af86771dbeee34cfdb8 | 70cf20680b580c8bacab55a0b7d792d06e299628 | refs/heads/master | 2022-12-02T18:36:33.754645 | 2020-08-24T05:16:42 | 2020-08-24T05:16:42 | 289,834,570 | 1 | 0 | MIT | 2020-08-24T05:17:09 | 2020-08-24T05:17:09 | null | UTF-8 | Python | false | false | 3,461 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/4/29 12:33
Desc: 河北省空气质量预报信息发布系统
http://110.249.223.67/publish/
每日 17 时发布
等级划分
1. 空气污染指数为0-50,空气质量级别为一级,空气质量状况属于优。此时,空气质量令人满意,基本无空气污染,各类人群可正常活动。
2. 空气污染指数为51-100,空气质量级别为二级,空气质量状况属于良。此时空气质量可接受,但某些污染物可能对极少数异常敏感人群健康有较弱影响,建议极少数异常敏感人群应减少户外活动。
3. 空气污染指数为101-150,空气质量... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
62c23bc35e09fd885d7dd599ac35f30f777a5148 | 4c19eac6e53b2c1230257508370ad60c8d83d6a7 | /dxm/lib/DxAlgorithm/alg_worker.py | 75fcc4c87123d87ea14ca078b5a002fd729f7811 | [
"Apache-2.0"
] | permissive | rakesh-roshan/dxm-toolkit | 2c7741c8a02952de1c23715eadb515d84fcaf954 | 2c6e6ebf8615526501767844edf06fb74d878f25 | refs/heads/master | 2020-04-27T19:05:11.293818 | 2019-03-01T13:49:34 | 2019-03-01T13:49:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,246 | py | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | [
"marcin@delphix.com"
] | marcin@delphix.com |
44074f6a7dc371ac0f50ed51f5d05b5c89a93a7e | 981fbc25f4a8ef0695830d54c36e0e7c2087575c | /input_template.py | 3ebeae5ee3a6f7dbad4f1574bf6d0f216b007231 | [] | no_license | Sandy4321/CS_algorithm_scripts | 1b0984c25aab362c18767094f6c6252afd8b9f6b | 6eef6ac07ff07362ddaec850a47d7ad7053993b2 | refs/heads/master | 2021-01-15T10:07:18.940108 | 2015-06-08T23:27:25 | 2015-06-08T23:27:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | def solveMeSecond(a,b):
return a+b
n = int(raw_input()) #faster than n = input() , since input() executes the line as python command
for i in range(0,n):
a, b = raw_input().split()
a,b = int(a),int(b)
res = solveMeSecond(a,b)
print res
'''
Alternate code
n = int(raw_input())
for _ in range(n... | [
"ymeng.ucla@gmail.com"
] | ymeng.ucla@gmail.com |
e310d84ef134fa90d02ddbcb43eb4159e92125c2 | 7d4597b6f9b631dd1f91059a4d904d2847e29a9c | /offerSpider/spiders/saveon.py | b9e4eb0faa58041584990acba2c7d8d25a7d856e | [] | no_license | lychlov/offerSpider | 6efc1b47e235902252ad0534f916d7f0baa49d00 | 8559ae3c65538d365aa11598d1070a4eadc82a1f | refs/heads/master | 2020-03-23T14:42:41.796002 | 2019-01-24T03:20:51 | 2019-01-24T03:20:51 | 141,694,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | # # -*- coding: utf-8 -*-
# import re
#
# import requests
# import scrapy
# from bs4 import BeautifulSoup
#
# from offerSpider.util import get_header
# from offerSpider.items import CouponItem
#
#
# class SaveonSpider(scrapy.Spider):
# name = 'saveon'
# allowed_domains = ['saveoncannabis.com']
# start_urls ... | [
"czk499658904@126.com"
] | czk499658904@126.com |
3655a1d7009c58072673e92b9dcc169dbed6d245 | bcbcd360967d9f79ef542ead5b30de42ec61b2d3 | /code_v1_recovered/Unigrams/top100LinksPerCom.py | 4a2b7812a4374ffdf8f5fa87ecf736bcdf22e711 | [] | no_license | Roja-B/EvolvingComs | d00b30576e6b8977ce1be0c6317155bfeb711806 | b58fa29972d9aad095ed0f364b1e0ec876b9b6c5 | refs/heads/master | 2020-04-14T18:30:48.657243 | 2013-02-11T05:54:16 | 2013-02-11T05:54:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | import operator
import sys
from noLow import *
# this program produces the list of top 100 links per community based on the Chi-squared table for each time window
#PATH = raw_input('Enter data path: ')
#M = int(raw_input('Enter the number of communities: '))
#tablefilename = raw_input("Enter file name: ")
pathfile = ... | [
"roja@ucla.edu"
] | roja@ucla.edu |
61eface07e2a27ae86d3c33097cb278cffe65e4f | a6d45b7b0caccc92dd7b0d2cc352498a32f5a181 | /uploader/migrations/0001_initial.py | 52eaec7d149d4ac8deb876b1956156002064a661 | [] | no_license | suhailvs/djangofileupload | e149e27b085f18f69c61074039e08a9c74283ca2 | 40b73cdf5c50bd44a4956ec70cf52d4c358f58c2 | refs/heads/master | 2023-03-23T17:34:53.077721 | 2020-04-20T16:09:29 | 2020-04-20T16:09:29 | 20,531,971 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # Generated by Django 3.0.5 on 2020-04-20 15:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Upload',
fields=[
('id', models.AutoField(a... | [
"suhailvs@gmail.com"
] | suhailvs@gmail.com |
7e2974f9de7a5d5e34105cf131643c825f8338db | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02991/s030157837.py | 6e3b67de9db4e8ee071c1c288612c95cbf324ab6 | [] | 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 | 758 | py | import sys
input = sys.stdin.buffer.readline
from collections import deque
def main():
N,M = map(int,input().split())
edge =[[] for _ in range(N)]
for _ in range(M):
u,v = map(int,input().split())
edge[u-1].append(v-1)
S,T = map(int,input().split())
q = deque()
go = [[False for... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
996339b2d5f97720cb4f6779affdae2d70fef420 | d8cbc94a4207337d709a64447acb9c8fe501c75a | /subset_selection/code/cli.py | 54738e4db5034a5f1e4316b6792e9c41b4e53b4e | [
"MIT"
] | permissive | sripathisridhar/acav100m | 6f672384fa723a637d94accbbe11a9a962f5f87f | 13b438b6ce46d09ba6f79aebb84ad31dfa3a8e6f | refs/heads/master | 2023-09-06T01:05:21.188822 | 2021-11-18T08:08:08 | 2021-11-18T08:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | import time
import datetime
from pathlib import Path
import fire
from args import get_args
from run import run_single
from run_contrastive import run_single_contrastive
from chunk import run_chunks, reduce_all_pkls
from chunk_contrastive import run_chunks_contrastive
from save import merge_all_csvs
from merge_contras... | [
"sangho.lee@vision.snu.ac.kr"
] | sangho.lee@vision.snu.ac.kr |
9775bc6bd071f66fbb05d218a99381b23510f116 | be73248aa4f1171e81b65cf955c4bd6110d56095 | /request_test.py | 353ec800d3b9bd9c0e3797743ad8a33355ced72f | [] | no_license | rogerhoward/lambot | 781c158e58bd71e2f3eb480aab31f181aee55e62 | d5588041fc92b779ba88479d8657f9b8a4916692 | refs/heads/development | 2022-02-18T05:03:23.911978 | 2017-06-22T03:22:11 | 2017-06-22T03:22:11 | 86,493,856 | 1 | 1 | null | 2022-02-04T15:04:55 | 2017-03-28T18:30:43 | Python | UTF-8 | Python | false | false | 2,137 | py | #!/usr/bin/env python
import os
import requests
from pprint import pprint
import click
@click.command()
@click.option('--token', default='gIkuvaNzQIHg97ATvDxqgjtO', help='Slack API token.')
@click.option('--team_id', default='T0001', help='The unique Slack team ID')
@click.option('--team_domain', default='example', he... | [
"rogerhoward@mac.com"
] | rogerhoward@mac.com |
c2cd0da87716a6c9fe21cade4cc83fb2007f479d | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/baekjoon/2.algorithm/brute_force/백준_감소하는_수.py | b4b9f0e4b6dd253325d331cce5183803d908e65f | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 571 | py | import sys
def dfs(cur_num, limit):
global answer, idx, n, answers
# 재귀 종료
if len(cur_num) == limit:
idx += 1
answers.append(cur_num)
# 정답이 존재
if idx == n:
print(cur_num)
sys.exit()
return
if not cur_num:
for i in range(10):
... | [
"galid1@naver.com"
] | galid1@naver.com |
2f06ed76fa47c4244dbaeecb75147c3f68f79bde | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/29/usersdata/67/9081/submittedfiles/atividade.py | a1a123328be3fb4dd0cf7fd77b88a631cf61ee74 | [] | 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 | 213 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=int(input("Digite o valor de n:"))
contador=0
i=1
while (i<=n):
if n//10=!0:
contador=contador+1
i=i+1
print(contador) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0f2f7ee10782ae1ea20dac49abf367a2909b2920 | 7578f8752ea9693c9b2bcca1b4f4bddb74ea4c4b | /projector/projections.py | bb0223ddd257c754cf518486cd794b58e3a14024 | [
"MIT"
] | permissive | SixiemeEtage/projector | 5ade66f8932c5905619518b6df4cf6fc460bd040 | 6d6b2488322556b1cd71eafc7d784787aca331bd | refs/heads/master | 2021-01-19T08:48:41.375749 | 2019-03-17T13:52:06 | 2019-03-17T14:06:54 | 81,648,850 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | import libprojector
PROJECTION_EQUIRECTANGULAR = 'equirectangular'
PROJECTION_CUBEMAP = 'cubemap'
class BaseProj(object):
def __init__(self, image_width, options):
self.image_width = image_width
self.options = options
def get_projection(self):
raise NotImplementedError
class E... | [
"dulacpier@gmail.com"
] | dulacpier@gmail.com |
2993ce92666d43ec9e6a520bf4027609ca676413 | 221e3afe0ef457c088d9c7725b5a1cc70d77b16e | /base/migrations/0002_remove_category_content.py | 418f3ac3266d248bb9952513d02122a2b10c217b | [] | no_license | Rockstreet/titov_base | 6615087518b33635da6fec4d73716670c0b25d5a | 612d842c423ffc3754e90a463029e9415aacb318 | refs/heads/master | 2021-01-19T05:22:06.940949 | 2017-04-12T16:09:06 | 2017-04-12T16:09:06 | 87,428,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-07 09:52
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('base', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_na... | [
"ivan.tolkachev@gmail.com"
] | ivan.tolkachev@gmail.com |
2d32855077a8fd0594875c11d0c248fa27e1c3d9 | df24807455a5bc4db794d79cc88e6bde93d3d404 | /HH_glycopeptide - KK testing v2/sequencespace.py | e7d7bfc3a84a3b32c1db46ef3e02d0eb112fb0cd | [] | no_license | GlycReSoft2/glycopeptide-testing | 075b594025c95a9c9cfb79fcf802bd326459238f | 574bc5b44ef8a562e2676aca24062b04f4bfeb17 | refs/heads/master | 2021-01-23T11:49:35.306116 | 2014-05-22T17:33:19 | 2014-05-22T17:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,178 | py | from sequence import Sequence
from operator import and_
from functools import reduce
from modification import Modification
from residue import Residue
import copy
import itertools
import warnings
class SequenceSpace:
"""Generate all theoretical glycopeptide sequences"""
def __init__(self, seq, g... | [
"mobiusklein@gmail.com"
] | mobiusklein@gmail.com |
57b2cd00a87e389e7a38f77e87aeadee7dc8413d | a0a0932b6ab6ec47c2757d8929216790f5bc6535 | /import_productitem.py | 7c614f08aadb009ebc8072d22b30f9530d115aa9 | [] | no_license | lianglunzhong/latte-erp | b4e6e3b13c4bce17911ff166fecc36172e0bea5b | b58936c8d9917f3efdcb3585c54bfd3aba4723c2 | refs/heads/master | 2022-11-27T03:08:23.780124 | 2017-04-28T02:51:43 | 2017-04-28T02:51:43 | 89,660,834 | 0 | 0 | null | 2022-11-22T01:04:12 | 2017-04-28T02:48:50 | Python | UTF-8 | Python | false | false | 3,751 | py | # -*- coding: utf-8 -*-
import datetime
from django.utils import timezone
import sys, os
reload(sys)
sys.setdefaultencoding('utf-8')
import csv
sys.path.append(os.getcwd())
os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'
import django
django.setup()
from product.models import *
from order.models import *
... | [
"liang.lunzhong@wxzeshang.com"
] | liang.lunzhong@wxzeshang.com |
b2221a99054c2bd032ff2e756d2c70e772bb434b | 233b2958c853dc57dfa5d54caddbc1520dcc35c8 | /ava/runtime/config.py | 4e76f2a43ffde0aeb8268ac973bff3b13fc8e9f6 | [] | no_license | eavatar/ava.node | 6295ac6ed5059ebcb6ce58ef6e75adf1bfa24ed7 | 71e3304d038634ef13f44d245c3838d276a275e6 | refs/heads/master | 2021-01-19T06:13:01.127585 | 2015-06-03T03:10:59 | 2015-06-03T03:10:59 | 33,645,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # -*- coding: utf-8 -*-
"""
Configuration file reading/writing.
"""
from __future__ import absolute_import, division, print_function, \
unicode_literals
import codecs
import logging
import logging.config
import os.path
from string import Template
from yaml import load, dump
try:
from yaml import CLoader as ... | [
"sam@eavatar.com"
] | sam@eavatar.com |
cffdbf9595a022545dadfca42fab82415426fe39 | 3a186f09753b63e87c0502e88f33c992f561e403 | /luna.py | d4c01d34900662ee4390cb280d3b936b4890d6b7 | [] | no_license | qwergram/cio2016_server | 88d98e217d7f1cc1415b14a4804b9a4417d1143b | 071efd99bad8635031c74409dab949aae1a5d384 | refs/heads/master | 2021-01-10T04:50:34.105495 | 2016-03-06T09:44:49 | 2016-03-06T09:44:49 | 53,247,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,481 | py | import bottle
import os
import sqlite3
import json
class CRUD:
def __init__(self, location='/etc/luna/'):
self.location = location
self.reset()
def reset(self):
with open(self.location + 'active.sqlite3', 'w') as r:
r.write('')
self.conn = sqlite3.connect(self.loca... | [
"npengra317@gmail.com"
] | npengra317@gmail.com |
ed25c19719c15e6a359c0cb01b3711f8f78c1661 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2734/59137/312747.py | 32ed5d4dbf4a1e4cb7db8a81634c5d8d187dd4ec | [] | 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 | 595 | py | s = input()
if s == "5 3 5":
print(2)
print(0)
print(0)
print(1)
print(0)
elif s == "8 3 5":
s1 = input()
s2 = input()
s3 = input()
if s3 == "6 8":
print(1)
print(1)
print(2)
print(2)
print(1)
elif s3 == "1 8":
print(1)
prin... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7ce62fcf3e249909c34273756aebfac403c2b879 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/23/usersdata/134/12369/submittedfiles/av1_2.py | 4f5a24414af8bcff93f9204bbb739083ba7a9bd2 | [] | 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 | 636 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n = int(input('Digite n:'))
x1 = int(input('Digite a coordenada em x para a figura 1:'))
y1 = int(input('Digite a coordenada em y para a figura 1:'))
x2 = int(input('Digite a coordenada em x para a figura 2:'))
y2 = int(input('Digite a coordenada em y ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ec61edb372da268e0930cb58292ef8c914745487 | c77f1d4976d241574a9bf68ee035632a010cdc85 | /qualification/migrations/0003_auto_20190102_1150.py | a59750689f991a27692f605996293a2b3e986d03 | [] | no_license | alifarazz/csesa-django | e24847fb1a7a2dc0c0f56f396b66c28d63efc869 | 7d77686b95796b30d5c65957776b2bbe927445b5 | refs/heads/master | 2020-04-27T13:27:10.119436 | 2019-03-07T16:23:37 | 2019-03-07T16:23:37 | 174,370,553 | 0 | 0 | null | 2019-03-07T15:27:00 | 2019-03-07T15:26:58 | Python | UTF-8 | Python | false | false | 1,207 | py | # Generated by Django 2.0.9 on 2019-01-02 11:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('qualification', '0002_qualificationform'),
]
operations = [
migrations.CreateModel(
name='Quest... | [
"alimahdiyar77@gmail.com"
] | alimahdiyar77@gmail.com |
d932577fc1d8b71405a05fa54c4ae2ec74119e08 | fe6f6d11dde2a3205ae9758c7d4eb1f824b84102 | /venv/lib/python2.7/site-packages/pylint/test/input/func___name___access.py | def867475829143945bd7552ef152ca874170278 | [
"MIT"
] | permissive | mutaihillary/mycalculator | ebf12a5ac90cb97c268b05606c675d64e7ccf8a6 | 55685dd7c968861f18ae0701129f5af2bc682d67 | refs/heads/master | 2023-01-10T14:56:11.780045 | 2016-09-20T12:30:21 | 2016-09-20T12:30:21 | 68,580,251 | 0 | 0 | MIT | 2022-12-26T20:15:21 | 2016-09-19T07:27:48 | Python | UTF-8 | Python | false | false | 515 | py | # pylint: disable=R0903,W0142
"""test access to __name__ gives undefined member on new/old class instances
but not on new/old class object
"""
__revision__ = 1
class Aaaa:
"""old class"""
def __init__(self):
print self.__name__
print self.__class__.__name__
class NewClass(object):
"""new c... | [
"mutaihillary@yahoo.com"
] | mutaihillary@yahoo.com |
2e2bdefe2b4e3ce8514dd285194ed6d9f43863bd | 74b6523512f17f4c18096b956e4c3c074b53cf4c | /myNews.py | 3170f0ec9c830c21762b973cc0dd598006213758 | [] | no_license | howie6879/getNews | f7fdbd310c0e48a8a2c74504aa27893d25354ba1 | ab5ad56c8520e60d5f568deed0081dfc127b7cd9 | refs/heads/master | 2020-05-21T23:49:40.805281 | 2017-04-02T03:51:33 | 2017-04-02T03:51:33 | 59,347,631 | 49 | 23 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | """myNews
Usage: myNews [-p] <port>
Options:
-h,--help 显示帮助菜单
-p 端口号
Example:
myNews -p 8888 设置端口号为8888
"""
from docopt import docopt
from server import main
def cli():
kwargs = docopt(__doc__)
port = kwargs['<port>']
main(port)
if __name__ == "__main__":
cli()
| [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
9fdb4d019b5ec120c7bd4c3cbe140bf7023e5911 | e32801b4debf07340b98255eb35e2c41ba2d2bb5 | /scripts/addons_extern/animation_nodes_master/nodes/spline/spline_info.py | 83687abbd74969916131dea3e58cb5731c0728d3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | JuhaW/blenderpython | 8c7130484690339c06f85b740c2f9e595b34a9dc | ee7b3a9f9d8cfbea32258e7ff05c3cb485a8879a | refs/heads/master | 2021-07-21T23:59:42.476215 | 2017-10-25T08:42:04 | 2017-10-25T08:42:04 | 108,861,751 | 1 | 0 | null | 2017-10-30T14:25:14 | 2017-10-30T14:25:14 | null | UTF-8 | Python | false | false | 505 | py | import bpy
from ... base_types.node import AnimationNode
class SplineInfoNode(bpy.types.Node, AnimationNode):
bl_idname = "an_SplineInfoNode"
bl_label = "Spline Info"
def create(self):
self.newInput("Spline", "Spline", "spline", defaultDrawType = "PROPERTY_ONLY")
self.newOutput("Vector Lis... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
beb8f00ca4461f449d82782c0683a196f2828a6a | 073c7ae30b0fbdadb3f60bdcf37940a496a3b2eb | /python/util.py | f88ba65b52323c39f073a193f6750bc183bd56c0 | [
"MIT"
] | permissive | cms-ttbarAC/CyMiniAna | 0e2a771473cf23eb931aa0ae7a015a5165f927b9 | 405b1ac6639f8a93297e847180b5a6ab58f9a06c | refs/heads/master | 2021-05-15T22:57:36.033299 | 2018-07-31T20:39:11 | 2018-07-31T20:39:11 | 106,871,363 | 0 | 1 | MIT | 2018-07-31T20:39:12 | 2017-10-13T20:41:28 | C++ | UTF-8 | Python | false | false | 5,834 | py | """
Created: --
Last Updated: 2 March 2018
Dan Marley
daniel.edison.marley@cernSPAMNOT.ch
Texas A&M University
-----
File that holds any and all misc. functions
to be called from other python scripts.
(All information in one file => one location to update!)
"""
import ROOT
import numpy as np
class Sample... | [
"daniel.edison.marley@cern.ch"
] | daniel.edison.marley@cern.ch |
cd92ecd38dfe509e767b4977f1112c79d390744f | 0bfe6df147ffa74b6d2800391981273149502684 | /visionary/visionary/migrations/0002_add_model_Mindmap.py | 5ab5e8e1132a90e50d890cd2eef82b5aab730db0 | [] | no_license | lumenwrites/digitalMind_django | 829c95eca4720c2bbe71d14bdcce64e9eccd3752 | 0968f0006cf450f2796736cd604c5f6cba82147f | refs/heads/master | 2021-05-27T14:54:35.108215 | 2014-09-11T09:48:58 | 2014-09-11T09:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,903 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Mindmap'
db.create_table('visionary_mindmap', (
('id', self.gf('django.db.models... | [
"raymestalez@gmail.com"
] | raymestalez@gmail.com |
1a0586b543e61229aa5c7ecc3626c76951c49596 | aea3b522c0f8c6f82279cf6cc70bc11b22ef9f02 | /feincms3/mixins.py | 872c3c2269da46af9112d0eb37dba939ddbcdc59 | [
"BSD-2-Clause"
] | permissive | hancush/feincms3 | 0dfbb98f85f9bd2c2edf98cdb8de298f0188b17c | 782a4ee83a36756752b2f9aa225eed4dc402ff4c | refs/heads/master | 2020-04-04T11:55:39.289197 | 2018-10-31T18:49:47 | 2018-10-31T18:49:47 | 155,908,332 | 0 | 0 | NOASSERTION | 2018-11-02T18:44:39 | 2018-11-02T18:44:39 | null | UTF-8 | Python | false | false | 5,877 | py | # coding=utf-8
from django.conf import settings
from django.db import models
from django.db.models import signals
from django.utils.translation import activate, get_language, ugettext_lazy as _
from tree_queries.fields import TreeNodeForeignKey
from feincms3.utils import validation_error
class MenuMixin(models.Mod... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
3ad3f271e1638aeab5f1a60f9e46cbf4d55b64e0 | a3faf585ac766da428ee896e6c70c39ecc22ce1f | /xy/planner.py | b4be54c6910ff99f946e9c2aa08bc9b5ab70185d | [] | no_license | RolandJuno/xy | dcab6c0682cda79ffd6b5fb6cb8365390421f784 | 1079175b9a2f58c72fd94520908ebbaf81585037 | refs/heads/master | 2020-04-05T04:11:02.909464 | 2019-11-13T22:05:16 | 2019-11-13T22:05:16 | 50,703,647 | 7 | 1 | null | 2016-01-30T01:56:42 | 2016-01-30T01:56:42 | null | UTF-8 | Python | false | false | 5,970 | py | from hashindex import Index
from math import hypot
import anneal
import random
def sort_paths_greedy(paths, reversable=True):
first = max(paths, key=lambda x: x[0][1])
paths.remove(first)
result = [first]
points = []
for path in paths:
x1, y1 = path[0]
x2, y2 = path[-1]
poin... | [
"fogleman@gmail.com"
] | fogleman@gmail.com |
2bcf76b268dcc14f93c164f38f79c9fac0b642c1 | 93d8f6332992d7f1574666096e956d47a2c23754 | /src/safe.py | 98b34c1ad9ca33b5b925d656a343e2388d310014 | [
"BSD-3-Clause"
] | permissive | aliceafterall/cocomud | d41a5a8964f1af17cacfb0d0dcdd4b5530bb1bc5 | b2b7a7b5f93542b8e94c0eec00c4dcd7bd96cff1 | refs/heads/master | 2023-07-20T09:34:49.410221 | 2017-08-03T15:16:05 | 2017-08-03T15:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,816 | py | # Copyright (c) 2016, LE GOFF Vincent
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and th... | [
"vincent.legoff.srs@gmail.com"
] | vincent.legoff.srs@gmail.com |
a4b8a7c035036e9e0e83c562c498c103c3a7ba94 | 7d72ece1edb0009e2f5dadd96838e6fa4d020c86 | /src/follow_road/MyAlgorithm.py | 78146757492d8d71d43311729f3470639eea528e | [] | no_license | RoboticsLabURJC/2018-phd-luis-caiza | d188a9621c7339349dd32ba3f382010daeb49b95 | 834e93889c8b8aacdf8edee0206341154ef17073 | refs/heads/master | 2020-03-30T02:05:28.334834 | 2019-04-24T19:32:17 | 2019-04-24T19:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,509 | py | import threading
import time
from datetime import datetime
import cv2
import numpy as np
import math
time_cycle = 80
#value_min_HSV = np.array([20, 0, 0]) #for follow road original
#value_max_HSV = np.array([100, 130, 130]) #for follow road original
value_min_HSV=np.array([0, 50, 50]) # red color used in follow a b... | [
"lcaiza2012@gmail.com"
] | lcaiza2012@gmail.com |
eed067e68e68bc9403d6958e844746a118bc601f | d6ce2f6bdddef373b9bbdf26d567307ce3667103 | /scripts/utils_specs/convert_spec_csv_to_json.py | 0db7b03c0e21edd6637ca3d51e06b9ffc1e88e4d | [
"MIT"
] | permissive | hezbranch/time_series_prediction | 505007fb248fe09f56943c3ad705a52ce77a193c | 9bffc3f279cbfaa3ec0acc937d15610c19e0975e | refs/heads/master | 2023-01-19T12:27:24.615657 | 2020-10-30T08:59:05 | 2020-10-30T08:59:05 | 296,434,092 | 1 | 0 | MIT | 2020-09-17T20:22:09 | 2020-09-17T20:22:08 | null | UTF-8 | Python | false | false | 2,503 | py | import argparse
import pandas as pd
import json
import copy
import os
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("--config_json_path", type=str)
parser.add_argument("--output_dir", type=str)
parser.add_argument("--row_template_json", type=str, default='row_templat... | [
"mike@michaelchughes.com"
] | mike@michaelchughes.com |
90118b22999d0850d70f1bd9e39f9ebafee8e412 | 6188f8ef474da80c9e407e8040de877273f6ce20 | /examples/docs_snippets/docs_snippets/guides/dagster/development_to_production/resources/resources_v1.py | c1339b0fabc7baf6e734f9610d9ced0cb55cf53e | [
"Apache-2.0"
] | permissive | iKintosh/dagster | 99f2a1211de1f3b52f8bcf895dafaf832b999de2 | 932a5ba35263deb7d223750f211c2ddfa71e6f48 | refs/heads/master | 2023-01-24T15:58:28.497042 | 2023-01-20T21:51:35 | 2023-01-20T21:51:35 | 276,410,978 | 1 | 0 | Apache-2.0 | 2020-07-01T15:19:47 | 2020-07-01T15:13:56 | null | UTF-8 | Python | false | false | 655 | py | # start_resource
# resources.py
from typing import Any, Dict, Optional
import requests
class HNAPIClient:
"""
Hacker News client that fetches live data
"""
def fetch_item_by_id(self, item_id: int) -> Optional[Dict[str, Any]]:
"""Fetches a single item from the Hacker News API by item id."""
... | [
"noreply@github.com"
] | iKintosh.noreply@github.com |
93db36640e286172bee479c27dc086ac4f892ad8 | d90283bff72b5a55dd4d0f90c7325355b00ce7b1 | /p1804/p12/xxxx.py | 1bd3153f8551e4d5a98764db70ac390410388037 | [] | no_license | yuemeiss/p1804daima | f841f52e63081d53d50a199e4d148d4533605bb6 | 6ea08eb9971e42bf4ac535033a006d98ed98bf98 | refs/heads/master | 2020-03-15T23:29:59.691297 | 2018-08-06T02:42:49 | 2018-08-06T02:42:49 | 132,395,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | tu1 = (1,2,3)
alist=[123,5677,555]
for i in alist:
print(i)
for index,d in enumerate(alist):
print(index,d)
c=0
while c < len(tu1):
print(tu1[c])
c+=1
| [
"1083027306@qq.com"
] | 1083027306@qq.com |
8b09f80a72badcd81065c4921c3e31e1173a1a46 | c5b4d174ace61dd5914ca99fb0f2c710d0182324 | /pypes/tests/test__utils.py | bd9906b228853654176538174cd98e0cfc893330 | [
"Apache-2.0"
] | permissive | erramuzpe/pypes | 636c6b31023747a571af90390fd85b2dd6806dea | 3922d3162dc633b30961c036efdeb5d221ab1bfb | refs/heads/master | 2020-12-24T06:43:15.063955 | 2017-04-05T19:51:05 | 2017-04-05T19:51:05 | 73,461,509 | 0 | 0 | null | 2016-11-11T08:54:15 | 2016-11-11T08:54:14 | null | UTF-8 | Python | false | false | 2,645 | py | # -*- coding: utf-8 -*-
from pypes._utils import format_pair_list
def test_format_pair_list():
anat_fbasename = 'anat_hc'
regexp_subst = [
(r"/{anat}_.*corrected_seg8.mat$", "/{anat}_to_mni_affine.mat"),
(r"/m{anat}.*_corrected.nii$", "/{anat}_biascorrected.nii"... | [
"alexsavio@gmail.com"
] | alexsavio@gmail.com |
1ab320425a4b1a6568c0ae0d930d6c9f420e792d | 168f8546daf36bead1a9b8f32e8a43fdc5d844cf | /Test/python/multiply.py | cec03f2eaf740cf2f1ca1e9f23d4046fa9dd1500 | [] | no_license | whztt07/RenderFish | ea67915a672096254444765347044c6229681d05 | 7d0a4fd6a01a949091ec05ba93c42aa1760b9408 | refs/heads/master | 2020-05-04T14:47:51.215280 | 2015-11-22T16:42:31 | 2015-11-22T16:42:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | '''py_class.py - Python source designed to demonstrate'''
'''the use of python embedding'''
class Multiply:
def __init__(self):
self.a = 6
self.b = 5
def multiply(self):
c = self.a*self.b
print 'The result of', self.a, 'x', self.b, ':', c
return c
... | [
"yushroom@gmail.com"
] | yushroom@gmail.com |
f1318351ae4716d2341351aa7ba537219924a05b | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/nlp/mass/src/language_model/masked_language_model.py | 52aed8d53ed7b0a0eae8a67d7231364bbf913a00 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 4,698 | py | # Copyright 2020 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 agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
5c3dda335336b3b644e37fe7f8f4f46f4fd0ee86 | 60ce73bf2f86940438e5b7fecaaccad086888dc5 | /working_scrapers/Illinois_dekalb.py | d04843c1e230207cd3080ec2535d4860593519dd | [] | no_license | matthewgomies/jailcrawl | 22baf5f0e6dc66fec1b1b362c26c8cd2469dcb0d | 9a9ca7e1328ae549860ebeea9b149a785f152f39 | refs/heads/master | 2023-02-16T06:39:42.107493 | 2021-01-15T16:37:57 | 2021-01-15T16:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,161 | py | #!/usr/bin/python
'''
This is a template script
MG
'''
from urllib.request import urlopen, Request
import pandas as pd
import os
import time
import numpy as np
from datetime import datetime
import datetime as dt
import sys
from io import StringIO
from joblib import Parallel, delayed
import requests
from jailscrape.com... | [
"jborowitz@gmail.com"
] | jborowitz@gmail.com |
e3421447a8225cc4e8464a1815d43de78d1715f1 | 30a1b285ff4aab39eebe342c5dbca255a69b454c | /full-problems/maxDiff.py | 347a657be99ca517cd6ae0e9e6234e8672f61c47 | [
"Apache-2.0"
] | permissive | vikas-t/practice-problems | cd5852ea112421a2a39db31ae9092c6a148b2af8 | ea654d1cad5374c824c52da9d3815a9546eb43fa | refs/heads/master | 2021-10-27T14:08:42.724019 | 2019-04-17T18:26:23 | 2019-04-17T18:26:23 | 170,156,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | #!/usr/bin/python3
# https://practice.geeksforgeeks.org/problems/maximum-difference/0
def sol(arr, n):
d = -1
min_i = 0
min_till_here = 0
for i in range(1, n):
if arr[i] < arr[min_till_here]:
min_till_here = i
if min_till_here != min_i and min_till_here < i:
min_... | [
"vikas@optumsoft.com"
] | vikas@optumsoft.com |
83f702f40210def83db43b117c01fb32c0afec26 | f0f4a0f24b3a7cc8bf0366cf329923e9bd5b00c7 | /activity/activity_DepositDigestIngestAssets.py | 515d8398361d40ebc252d28d7bed3993d5a6e601 | [
"MIT"
] | permissive | elifesciences/elife-bot | 45c79993d13bacb37f59ba57462179dd7c6f1e2e | 2324e26943f805a0602ea3251ff0f6a5db27f1a0 | refs/heads/develop | 2023-08-17T15:25:42.170870 | 2023-08-14T16:47:02 | 2023-08-14T16:47:02 | 7,503,542 | 21 | 10 | MIT | 2023-09-07T19:50:30 | 2013-01-08T15:09:54 | Python | UTF-8 | Python | false | false | 4,579 | py | import os
import json
from S3utility.s3_notification_info import parse_activity_data
from provider.storage_provider import storage_context
from provider import digest_provider, download_helper
import provider.utils as utils
from activity.objects import Activity
"""
DepositDigestIngestAssets.py activity
"""
class act... | [
"gnott@starglobal.ca"
] | gnott@starglobal.ca |
bd6a7d150cf3eb9fac42f5a543f377ad8356ad67 | 27691e5ef8e49fb29189b01dd76a1dc3720e7ae8 | /AC/ABC-TDD/180/c.py | 76f7581f37b0ab7ec2b1fda1f0887f7b32dc1463 | [] | no_license | oshou/procon | 61e5f5bc819e0fe5ab29749fc2f894fe6f3b1d07 | 3d000c64b5917c65b51ed7da5b90cb79892d5909 | refs/heads/master | 2023-05-10T23:56:50.861468 | 2021-09-23T06:07:29 | 2021-09-23T06:07:29 | 116,886,484 | 1 | 0 | null | 2023-05-05T02:28:41 | 2018-01-10T00:21:38 | Go | UTF-8 | Python | false | false | 257 | py | n = int(input())
ans = []
for i in range(1, n+1):
if i*i > n:
break
if n % i == 0:
ans.append(i)
tmp = n//i
if i != tmp:
ans.append(n//i)
ans = sorted(ans)
counts = len(ans)
for num in ans:
print(num)
| [
"adf1985adf@gmail.com"
] | adf1985adf@gmail.com |
315ab7aa2ef9d0579f0d045b6dfb17919ba8530a | c741f04141784a2571d2d27d95e0d994e4584ab1 | /learning/py3/0-1/21-模块-包-4.py | d70f489fbe8852df7919744087de49fb955d0899 | [] | no_license | haodonghui/python | bbdece136620bc6f787b4942d6e1760ed808afd4 | 365062ba54297c81093b7f378742e76d438658b7 | refs/heads/master | 2022-02-03T23:52:37.288503 | 2022-01-27T05:23:25 | 2022-01-27T05:23:25 | 191,729,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | from package1 import *
p.prt(4, '从一个包中导入*')
'''
4、
设想一下,如果我们使用 from sound.effects import *会发生什么
Python 会进入文件系统,找到这个包里面所有的子模块,一个一个的把它们都导入进来。
Windows是一个大小写不区分的系统。
在这类平台上,没有人敢担保一个叫做 ECHO.py 的文件导入为模块 echo 还是 Echo 甚至 ECHO。
为了解决这个问题,只能烦劳包作者提供一个精确的包的索引了。
导入语句遵循如下规则:
如果包定义文件 __init__.p... | [
"haodonghui@yestae.com"
] | haodonghui@yestae.com |
a7012e26515d2e214c34f1a948756e9af8cff489 | 5837fd85b18b56d23612de1e36d79b5a06827542 | /sniterator.py | d5e3435d3bd0924383507459b0e3f279464d9c66 | [
"MIT"
] | permissive | ChristopherWilks/snaptron | 75e33c4f25a65f3093555a7bf235ab69865f7086 | 75903c30d54708b19d91772142013687c74d88d8 | refs/heads/master | 2023-02-19T01:38:57.343293 | 2023-02-11T21:47:52 | 2023-02-11T21:47:52 | 45,953,724 | 26 | 7 | NOASSERTION | 2022-06-17T21:10:44 | 2015-11-11T02:03:37 | Python | UTF-8 | Python | false | false | 3,341 | py | #!/usr/bin/env python2.7
# This file is part of Snaptron.
#
# Snaptron is free software: you can redistribute it and/or modify
# it under the terms of the
#
# The MIT License
#
# Copyright (c) 2016- by Christopher Wilks <broadsword@gmail.com>
# and Ben Langmead <langmea@cs.jhu.edu>
#
#... | [
"broadsword@gmail.com"
] | broadsword@gmail.com |
dc94995061a88c795f93deb5719820a9c7d233f6 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901020002/1001S02E05_string.py | 2ef785d1bf8d2423628b42ff569e92038180dac4 | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 1,395 | py | sample_text = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rule... | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
945755e73c4c8fe1438bc352cd5a0861918ad25a | c14d9512c62fc479ba05ea5ed256828e8e1038c5 | /stripe/models/account.py | eaecab1ba97d6ff6408961f48b09a5193aa3c01d | [
"MIT"
] | permissive | jayvdb/saaskit-stripe | c44e6e387d4dd27f564f6959c134ec6aaff8f3c5 | bd292182b0bed47dff86a627231bdabafb99bf71 | refs/heads/master | 2021-09-07T17:25:14.710472 | 2018-01-24T15:17:41 | 2018-02-26T21:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,082 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.fields import json
from ..utils import UnixDateTimeField
from .charge import CURRENCY_CHOICES
ACCOUNT_TYPES = (
('custom', _('Custom')),
('standard', _('Standard')),
)
clas... | [
"tony@git-pull.com"
] | tony@git-pull.com |
034d42940af343c1638afe358b2506823e840bf4 | 1be4f95b722397f255e58b21a182171eb24b6fe5 | /datalad_neuroimaging/extractors/tests/test_dicom.py | 338f2fa4c994f2dd11ced3bf44f4f0f768516770 | [
"MIT"
] | permissive | yarikoptic/datalad-neuroimaging | 5f9a7b0993ac56bbeaba95427541b2c75ed711ea | 7ee146d6c7c864aafc8b540d0ccd9b3a1b5b7210 | refs/heads/master | 2022-11-11T02:57:46.228562 | 2018-04-10T14:05:21 | 2018-04-10T14:05:21 | 128,942,708 | 0 | 0 | null | 2018-04-10T14:04:46 | 2018-04-10T14:04:46 | null | UTF-8 | Python | false | false | 3,032 | py | # emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil; coding: utf-8 -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license ... | [
"michael.hanke@gmail.com"
] | michael.hanke@gmail.com |
a2eb7128900a56f43e0ece19dedc06e35f192da8 | c2d3b7855b055cb8b0563a3812fb0dbfc670bc09 | /lessons_src/03_CFL_Condition.py | 7ecf7fe0fd959b7819bcdc7829ed929d41253a87 | [
"CC-BY-3.0",
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | tnakaicode/python-cfd | 85fab343c4c99f32777e45163b89f4d952d83e96 | 174176bdcb1c31e021fefd8fd54e2b3dd898dc62 | refs/heads/master | 2023-08-08T16:53:34.455088 | 2020-05-07T17:14:54 | 2020-05-07T17:14:54 | 261,902,096 | 0 | 0 | NOASSERTION | 2023-07-06T21:27:39 | 2020-05-06T23:30:09 | Jupyter Notebook | UTF-8 | Python | false | false | 5,978 | py | #!/usr/bin/env python
# coding: utf-8
# Text provided under a Creative Commons Attribution license, CC-BY. All code is made available under the FSF-approved BSD-3 license. (c) Lorena A. Barba, Gilbert F. Forsyth 2017. Thanks to NSF for support via CAREER award #1149784.
# [@LorenaABarba](https://twitter.com/LorenaABa... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
16d01ee4642643a3fa9a06a6f2fb3e7d14bc6433 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/jupyter_client/jsonutil.py | 9903f70ecee4d8e753d94367e32ed64f5e0d57aa | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 5,944 | py | """Utilities to manipulate JSON objects."""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import math
import numbers
import re
import types
import warnings
from binascii import b2a_base64
from collections.abc import Iterable
from datetime import datetime
from typin... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
24c1026d70712dc58f96d6e0a9023fab0f1cdfd6 | 5c531de5e4759c904e608b4fc653b2b041f79a0e | /Snap_monte_carlo_simulation.py | 7cb310205cf32290a10076f203756fb68c14d270 | [] | no_license | jianhui-ben/leetcode_python | 133c7e6e5c7316d00607ba2e327239e002de28b2 | fcc16124cc24a5993e27f5d97e78d8f290e68230 | refs/heads/master | 2022-06-05T22:32:18.034581 | 2022-05-17T02:27:11 | 2022-05-17T02:27:11 | 250,683,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #N个 Turkers标数据,数据很模糊基本靠瞎猜,有M个选项可选。
#问这些人达到了majority共识的概率有多大?也就是有超过半数的人都选了某一选项的概率。
#要求先给出数学解析解,然后给出coding实现方法来求近似解。
#代码其实很简单,Monte Carlo simulation,跑个足够多的次数,用统计结果来近似概率
## p= (1/M)**(N//2)
print(12//2)
import random
random.randint(1, 2)
import collections
collections.Counter([1,1,1,2, 3,3,3,3]).most_common(1)[0][... | [
"jianhui.ben@gmail.com"
] | jianhui.ben@gmail.com |
588cb0f08c24dabc182e357f3b5efba012b7b98e | bcf42041a64fdefcaec54843900c3d8f833f2215 | /emc/kb/browser/dataout.py | cf3d77f951b9bb4e11b4e53d61cd34ea9ffe24d5 | [] | no_license | adam139/emc.kb | 487650837207e0f773c077310f001a524965ee4f | ff21383762dad96ac09d414e7d1e8104c51b91f9 | refs/heads/master | 2022-01-14T09:42:49.790659 | 2020-09-22T13:16:27 | 2020-09-22T13:16:27 | 49,318,509 | 0 | 3 | null | 2016-12-26T17:37:20 | 2016-01-09T09:34:12 | Python | UTF-8 | Python | false | false | 7,602 | py | #-*- coding: UTF-8 -*-
import csv
from cStringIO import StringIO
from zope import event
from zope.component import getMultiAdapter
from five import grok
from zope.interface import implements
from zope.interface import Interface
from Products.Five.browser import BrowserView
from Products.CMFCore.utils import getToolByNa... | [
"yuejun.tang@gmail.com"
] | yuejun.tang@gmail.com |
2112bbc0bb40eb05b9d150ae386c7817e5840775 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /unprocessing/estimator.py | def1f4464ffc7f3d2afab9ff75d80d3992b58c68 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 5,225 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0fb5e7964be470bc671a7d6c2fc74cb80dd76bf7 | 07c6d3055eda7b1ddb16ce9444166ed311ce3219 | /modules/topics.py | 0821e4b960e83e661ea7519105c0d6cf7682fd6f | [] | no_license | IISH/dpe | 4df9b0576b5419e543c61ce9ef14380ddc4b5c03 | 6509b06aa03242f450766d4cb5d8984f14146b11 | refs/heads/master | 2021-01-10T17:52:54.775316 | 2016-05-04T09:50:46 | 2016-05-04T09:50:46 | 42,994,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | import urllib2
import simplejson
import json
import sys
import pandas as pd
import random
import vincent
from vincent import Axis, AxisProperties, PropertySet, ValueRef
from pandas.io.json import json_normalize
from config import configuration, dataverse2indicators, load_dataverse, findpid, load_metadata
import re
de... | [
"4tikhonov@gmail.com"
] | 4tikhonov@gmail.com |
cce4258214c9c76a0aa0de00685e225913846b9b | a7dc8f76293a2c60478c95c4720cf39b8556c9e8 | /tests/test_classify.py | 3dc694dcb8ce4841090ee4d127deb0f3d62de74f | [
"MIT"
] | permissive | FarDON/cherry | 8b67f6587a5c13603dfe5047edece218a382e904 | 28da9a05a0bf09f209829e81b8642e3fd76034e8 | refs/heads/master | 2022-11-02T13:13:12.366289 | 2020-06-22T13:56:45 | 2020-06-22T13:56:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | import os
import unittest
import cherry
from unittest import mock
from cherry import classify
from sklearn.exceptions import NotFittedError
class ClassifyTest(unittest.TestCase):
def setUp(self):
pass
# __init__()
@mock.patch('cherry.classifyer.Classify._classify')
@mock.patch('cherry.class... | [
"wiwindson@outlook.com"
] | wiwindson@outlook.com |
0a27993a6e8351ecb41b9f6181bea19c78bf6000 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/store/StoreTableDataProvider.py | 047518eda41afe48b100901c3b0b9c35381c591b | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 969 | py | # 2017.02.03 21:50:30 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/store/StoreTableDataProvider.py
from gui.Scaleform.framework.entities.DAAPIDataProvider import DAAPIDataProvider
class StoreTableDataProvider(DAAPIDataProvider):
def __init__(self):
super(S... | [
"info@webium.sk"
] | info@webium.sk |
52bf11f8be269922508207b1a1e3c7cdd7224b51 | ab6cfc2aedad3de7a04efae4a6105dc893958b9e | /hivwholeseq/patients/get_allele_cocounts.py | 733f7a025ee4e21175e08d194a24584b733f1f04 | [
"MIT"
] | permissive | neherlab/hivwholeseq | 158c0ce590bc67d1d36042c71b8b0afa3e8d8abf | 978ce4060362e4973f92b122ed5340a5314d7844 | refs/heads/master | 2021-01-15T16:48:15.769316 | 2015-09-04T08:33:52 | 2015-09-04T08:33:52 | 49,801,765 | 4 | 3 | null | 2016-01-17T03:43:46 | 2016-01-17T03:43:44 | null | UTF-8 | Python | false | false | 1,994 | py | #!/usr/bin/env python
# vim: fdm=marker
'''
author: Fabio Zanini
date: 20/03/14
content: Get the joint counts at two sites for patient samples, after mapping.
'''
# Modules
import argparse
import numpy as np
import matplotlib.pyplot as plt
from hivwholeseq.patients.samples import load_samples_sequenced as... | [
"fabio.zanini@tuebingen.mpg.de"
] | fabio.zanini@tuebingen.mpg.de |
ec461e4efcf3da5428bd688d03a049eaf481b553 | 60b8c5e048be54f49c28b2c224e86cf4d4629164 | /gluon/setup.py | ec8a8656318e076b7715cb3373652d0ac7778656 | [
"MIT"
] | permissive | kcieslik/imgclsmob | b333d2b0f8a04d15cc1c0b0d38845d1d2923ae26 | d15bc7d4ebc50a31b4ad01cb3ad0e73b8cddbc9a | refs/heads/master | 2020-06-13T06:21:01.744329 | 2019-06-28T16:05:11 | 2019-06-28T16:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | from setuptools import setup, find_packages
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='gluoncv2',
version='0.0.47',
description='Image classification and se... | [
"osemery@gmail.com"
] | osemery@gmail.com |
a1514ff0aae5fff6ba6124c662459a1592b7a132 | 55c8fd9ce0c5bb147cbdb69274873b93b35356fc | /pathGeneration-v2/code-v2/full_eval.py | ca61e1c985c92a33e67e67192299fb8498954df2 | [] | no_license | WOW5678/pathGeneration | b4143bbbc2be686ee011d24af46d57d2cee88f06 | 88f31b4f30750307fa7f5072e7faa2f959a6d0c0 | refs/heads/master | 2020-08-06T17:46:22.075128 | 2019-11-15T12:38:07 | 2019-11-15T12:38:07 | 213,097,008 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,528 | py | import numpy as np
from sklearn.metrics import precision_recall_fscore_support, average_precision_score, \
roc_auc_score, precision_score, recall_score
thres = 0.5
def f1_score(preds, labels, thres, average='micro'):
'''Returns (precision, recall, F1 score) from a batch of predictions (thresholded probabilit... | [
"noreply@github.com"
] | WOW5678.noreply@github.com |
a58740e2a6ef0f1c5c1c2d3373a3d57e3b7311d6 | e6904315fef720d562727c259fe55edcaaf2f84b | /src/orion/core/io/evc_builder.py | 01094146ed00e9b0623a8a0adf56c0ef4a18b01b | [
"BSD-3-Clause"
] | permissive | mnoukhov/orion | c93c4655f6b1b6358f8ead78a3adbe9d871785c7 | 7849d77344e84ec805207cf4148aecf6f7d6b3d7 | refs/heads/master | 2020-03-25T05:37:54.251082 | 2019-08-19T17:33:15 | 2019-08-19T17:33:15 | 143,457,714 | 0 | 0 | NOASSERTION | 2018-10-31T02:37:32 | 2018-08-03T17:55:57 | Python | UTF-8 | Python | false | false | 2,275 | py | # -*- coding: utf-8 -*-
# pylint:disable=protected-access
"""
:mod:`orion.core.io.evc_builder` -- Builder of experiment version control tree
==============================================================================
.. module:: experiment
:platform: Unix
:synopsis: Builder of the experiment version control t... | [
"xavier.bouthillier@umontreal.ca"
] | xavier.bouthillier@umontreal.ca |
a06e77569bb9fc552a12e6e6f5ee56d5c33ebea1 | 602bdbd1d8ef4d36ccfdcae5756bc8e448d30584 | /share/basiccms/web/checkout.py | 86bb792ceeb5be2a1dd97fafe87b116f9d8f365f | [] | no_license | timparkin/timparkingallery | 1136027bf9cfbad31319958f20771a6fdc9f5fc4 | 6e6c02684a701817a2efae27e21b77765daa2c33 | refs/heads/master | 2016-09-06T00:28:16.965416 | 2008-11-25T21:15:45 | 2008-11-25T21:15:45 | 12,716 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,952 | py | from pollen.mail import mailutil
from twisted.internet import defer
from twisted.python import log
from nevow import url, accessors, inevow, tags as T, rend
import formal
from crux import skin, icrux
from tub.public.web.common import getStoreSession
from ecommerce.salesorder.manager import SalesOrder, SalesOrderItem
... | [
"info@timparkin.co.uk"
] | info@timparkin.co.uk |
890a0e4832d87c843d5509306210f0da7f740075 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/TSZLMM/YW_TSZLMM_SZXJ_085.py | aee9b54b61b3b19aec3adc52e31a8f6ab6a2da24 | [] | 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,096 | 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 mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
48c38008dc8f830780911cc0ffbe98050fe9f2b8 | 337815ff32ebbf6e8dd2606f69d66e8efda4cd03 | /epi_judge_python_solutions/is_string_palindromic_punctuation.py | 8a74011a9f894f17696adcf9b67b7a1ac42109d9 | [] | no_license | federicociner/epi | b85eefbf5f5bad77e2e780ffbf4ac4f9ca0809a8 | 32f2a1056353bca55d0d5839be5e0b73809cb45d | refs/heads/master | 2020-12-19T09:22:43.430370 | 2020-02-04T02:34:53 | 2020-02-04T02:34:53 | 235,693,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from test_framework import generic_test
def is_palindrome(s: str) -> bool:
# i moves forward, and j moves backward.
i, j = 0, len(s) - 1
while i < j:
# i and j both skip non-alphanumeric characters.
while not s[i].isalnum() and i < j:
i += 1
while not s[j].isalnum() an... | [
"federico.ciner@gmail.com"
] | federico.ciner@gmail.com |
b0f33f7fcb55a25559aa9ec6e4005f66fd5f16e2 | 93e8c89c7d83c00280c32ea9f5330d3d4cf9a6d9 | /ch_10_oops/03_instance_class_attributes.py | 15f55e56c13b45b76c5dba6b6df9c1a4364bb31a | [] | no_license | vidhisharma1212/oops | 1d76940d084b3828db6f4bd9093ee18a8e512183 | fb4252683c652a18c818948dd328c8903f2d04ee | refs/heads/main | 2023-07-01T21:28:46.823861 | 2021-08-09T08:40:54 | 2021-08-09T08:40:54 | 393,379,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | class Employee:
company= 'Google'
# salary= 900
vid= Employee()
ron= Employee()
shyam= Employee()
# vid.salary= 300
# ron.salary= 500
Employee.salary= 900
print(vid.salary)
print(ron.salary)
print(shyam.salary)
shyam.salary=100000
print(shyam.salary)
print(vid.company)
print(ron.company)
Employee.company= ... | [
"vidhisharma921@gmail.com"
] | vidhisharma921@gmail.com |
eee813bc568246e104455e856e8360de7d16c2cb | 975fb6bf66c878415a880003c2d635163cb664d8 | /qoc/standard/functions/convenience.py | 35ea6b8916c0317e9234a845118aaab8e03ea59a | [
"MIT"
] | permissive | SchusterLab/qoc | 8833628a9b7df3727b982b667310059563dfded7 | 36d615170effc1b705d4543d92f979e511edfec2 | refs/heads/master | 2023-06-07T07:49:33.720205 | 2023-03-12T20:19:55 | 2023-03-12T20:19:55 | 198,457,530 | 12 | 14 | MIT | 2021-05-10T02:23:11 | 2019-07-23T15:24:41 | Python | UTF-8 | Python | false | false | 2,797 | py | """
convenience.py - definitions of common computations
All functions in this module that are exported,
i.e. those that don't begin with '_', are autograd compatible.
"""
from functools import reduce
from autograd.extend import defvjp, primitive
import autograd.numpy as anp
import numpy as np
import scipy.linalg as ... | [
"tcpropson@gmail.com"
] | tcpropson@gmail.com |
2b112ccb194f9ad783c20cb17572fb0072f813b1 | 14804b282e567bf45c974b9a55cbdfa1907c5958 | /16_Standard_Library/A_Modules/_turtle_04.py | cd5ff64ebe782eaa5fac54f84e57482e0cd772a7 | [
"MIT"
] | permissive | Oscar-Oliveira/Python-3 | cfdcbcf4548144fb2488625f53f76b20e4d8c5b0 | fa791225a6810b75890d24407b73c5e1b514acbe | refs/heads/master | 2021-09-26T06:27:16.367956 | 2018-10-27T10:42:21 | 2018-10-27T10:42:21 | 101,991,657 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | """
turtle
"""
import turtle
import random
colors = ["blue", "black", "brown", "red", "orange", "green",
"yellow", "beige", "turquoise", "pink"]
wn = turtle.Screen()
turtles = [turtle.Turtle() for _ in range(10)]
for i, t in enumerate(turtles):
t.shape("turtle")
t.color(colors[i])... | [
"oscar.m.oliveira@gmail.com"
] | oscar.m.oliveira@gmail.com |
2d023ce13d42aeef06d982be4b8609792e5496ca | 23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9 | /app/admin/__init__.py | b72f72aeec303c88ed6a8f146eb448e50be15bcf | [] | no_license | Cuick/traversing | 210fcfb1c780037de59343fffeb4fa4d3f2eae32 | c78982580af7f63c8bff4dcb37005b7f7c682b5b | refs/heads/master | 2021-01-10T17:38:37.899460 | 2016-11-18T06:06:55 | 2016-11-18T06:06:55 | 55,397,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #-*- coding:utf-8 -*-
"""
created by server on 14-5-26上午11:59.
"""
import action
def doWhenStop():
"""服务器关闭前的处理
"""
pass
| [
"zxzxck@163.com"
] | zxzxck@163.com |
eb905dd46d64599308b58106219fd94e874c27af | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/aio/operations_async/_vpn_server_configurations_associated_with_virtual_wan_operations_async.py | f5c8445e1d311bde344a60cba25058ed763eeb77 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 7,435 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
4c36661bdaf9f097617a68f74fd7e9c443e2b16d | b95fa99bb1ba2210b73251614d2613363c37f932 | /deploy/ngram-train/scripts/main-70.py | ce7b6772851d4bcf8747f79598571b1f41cf57ca | [] | no_license | lingxiao/learn-adj-relation | d1a8894fefc776ec0bd414b5f038361ed4b79d16 | dc4285af19e53d7e2d015eb6394f6c601c707da0 | refs/heads/master | 2020-12-30T16:27:51.531268 | 2017-06-07T18:59:48 | 2017-06-07T18:59:48 | 87,714,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | ############################################################
# Module : A series of measures on the graph for experiments
# Date : April 2nd, 2017
# Author : Xiao Ling
############################################################
import os
import re
import networkx as nx
from utils import *
from scripts import ... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
73687bc070d5f0a867ecaa764f11fb3fba7ed95d | 28be2173e5590cc5b03119e9b83c57980e6a7e8a | /studygroups/migrations/0064_split63.py | e49732264ba24d1eaa1b270237861d4c1c7c8b63 | [
"MIT"
] | permissive | EdgarOrnelas/learning-circles | cd164f123885ed2079b34ad394c9849b370563b9 | 293c849321d735aebbdcb6c65b7c92f751f9fd89 | refs/heads/master | 2021-01-21T20:56:35.429589 | 2017-06-16T09:20:46 | 2017-06-16T09:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
from django.utils.timezone import utc
def set_meeting_time(apps, schema_editor):
StudyGroupMeeting = apps.get_model('studygroups', 'StudyGroupMeeting')
for meeting in StudyGroupMeeting.obj... | [
"dirkcuys@gmail.com"
] | dirkcuys@gmail.com |
1fa016ff9f3a7768af348bd01c7db7b60543d4de | 1afe3895ae8969ccba6d45e531ab5d59b8a41696 | /confession/user_app/migrations/0012_auto_20190121_1659.py | 673e55aaaef40def26992ea3a95286503b101c0f | [] | no_license | FZTeam/confession | 72e3ca0b2ab6016055b4ad6791f5a69aa3732368 | 7808d2810c65d0be956270f15d8ca489e1a9defe | refs/heads/master | 2022-12-12T08:30:37.603455 | 2019-02-25T15:56:31 | 2019-02-25T15:56:31 | 167,647,099 | 0 | 1 | null | 2022-07-06T19:59:26 | 2019-01-26T03:52:59 | Python | UTF-8 | Python | false | false | 616 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-01-21 16:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_app', '0011_auto_20190121_1658'),
]
operations = [
migrations.AlterFi... | [
"2094531487@qq.com"
] | 2094531487@qq.com |
c6d924a273405d47e1ca7228439de237c16e8109 | 4904acd900496b4883c2f5b4aa6b45d1ef6654c0 | /graphgallery/utils/__init__.py | b41031c08476cf8f7aff25809ca677c95d3ae196 | [
"MIT"
] | permissive | blindSpoter01/GraphGallery | aee039edd759be9272d123463b0ad73a57e561c7 | e41caeb32a07da95364f15b85cad527a67763255 | refs/heads/master | 2023-06-17T11:42:27.169751 | 2021-07-15T03:07:39 | 2021-07-15T03:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from .context_manager import nullcontext
from .raise_error import raise_if_kwargs
from .tqdm import tqdm
from .context_manager import nullcontext
from .progbar import Progbar
from .misc import *
from .logger import setup_logger, get_logger
from .timeout import TimeOut
| [
"cnljt@outlook.com"
] | cnljt@outlook.com |
7eabe48f91e014ea0b88c898557d4b21f62f256b | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /puzzles/maximum_value_of_k_coins_from_piles.py | 61093ea2df9249ea3435755ccc5a997eed57f8bd | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 1,536 | py | # https://leetcode.com/problems/maximum-value-of-k-coins-from-piles/description/
"""
There are n piles of coins on a table. Each pile consists of a positive number of coins of assorted denominations.
In one move, you can choose any coin on top of any pile, remove it, and add it to your wallet.
Given a list piles, whe... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
f6cfbb1b55ec14f10d8504e6f9cfc2d5e037a025 | 8efe56ee34c455a6b1336897f6d457acbc9c10f9 | /examples/tf/trpo_cartpole_batch_sampler.py | 0123ededecc2bc226c82064afb576a0c3b154b04 | [
"MIT"
] | permissive | neurips2020submission11699/metarl | ab18d11e708bf569d76cb2fab2bcce089badd111 | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | refs/heads/master | 2022-10-15T22:03:09.948673 | 2020-06-11T19:22:55 | 2020-06-11T19:30:58 | 268,410,657 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,140 | py | #!/usr/bin/env python3
"""This is an example to train a task with parallel sampling."""
import click
from metarl import wrap_experiment
from metarl.envs import MetaRLEnv
from metarl.experiment import LocalTFRunner
from metarl.experiment.deterministic import set_seed
from metarl.np.baselines import LinearFeatureBaselin... | [
"neurips2020submission11699@gmail.com"
] | neurips2020submission11699@gmail.com |
b2b4971f6f115b35ab3d38e85042808deb3e4102 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Simulador_20200708111002.py | e4355d8041f85f51b628df0e95950022e25c13c9 | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,326 | py | import pandas as pd
import numpy as np
from Matriz_esferica import Matriz_esferica
from Individuo import Individuo
import random
from itertools import permutations
class Simulador():
def __init__(
self,
tamanho_matriz, #numero de linhas e colunas da matriz esférica
percent... | [
"eduardo_dut@edu.unifor.br"
] | eduardo_dut@edu.unifor.br |
00939f6d74f528a23ab0e586d52057ea17789070 | ffadf9541d01cf9af20c419759d48b1eb01bfd35 | /pachong/PCdemo1/day15/股市行情定点爬取.py | 842ff30d11cf43f28fc448cc022cde009269ba8e | [] | no_license | 1987617587/lsh_py | b1bb1016eaafcba03bbc4a5310c1db04ae227af4 | 80eb5175cd0e5b3c6c5e2ebb906bb78d9a8f9e0d | refs/heads/master | 2021-01-02T05:14:31.330287 | 2020-06-20T05:18:23 | 2020-06-20T05:18:23 | 239,498,994 | 2 | 1 | null | 2020-06-07T23:09:56 | 2020-02-10T11:46:47 | Python | UTF-8 | Python | false | false | 5,975 | py | # author:lsh
# datetime:2020/4/13 19:56
'''
.::::. _oo0oo_
.::::::::. o8888888o
::::::::::: 8... | [
"1987617587@qq.com"
] | 1987617587@qq.com |
59fecb3751deccbc1893af6d99c785ffb06deb69 | 7fae887c73cc6df8de886897114eb07c28674fa7 | /cs101/unit27/27_4.py | 7f5cedd2fc201fd3745d03708f744ca64942ee95 | [] | no_license | thinkreed/pyf | 24960e3523be3c2e1661608f60f866a5cd7e747f | 04f5e7f46aa95719f848bb64a512458895147da3 | refs/heads/master | 2022-12-10T17:43:49.709946 | 2019-06-13T01:13:00 | 2019-06-13T01:13:00 | 109,550,040 | 2 | 0 | null | 2022-12-08T05:14:52 | 2017-11-05T03:53:51 | Python | UTF-8 | Python | false | false | 972 | py | english = {1: "January", 2: "February", 3: "March", 4: "April", 5: "May",
6: "June", 7: "July", 8: "August", 9: "September", 10: "October",
11: "November", 12: "December"}
swedish = {1: "januari", 2: "februari", 3: "mars", 4: "april", 5: "maj",
6: "juni", 7: "juli", 8: "augusti", 9: "s... | [
"thinkreed2017@outlook.com"
] | thinkreed2017@outlook.com |
251f4b94234d2cacbf822e32f19aae0edea50f0f | 090fd16451ef226f0660d4be797c8a5fbf309f97 | /training_data/whole_image/to_tensors/metadata_to_grid_tensor.py | 4ca081192a85d619c3672f048fe0bd5599b745bb | [] | no_license | philip-brohan/Robot_Rainfall_Rescue | 2cdd20131a1ceae4e4af54059381b815f1cc138b | 4121d69aba6c8d180b57d92a0da11d09cd6843b4 | refs/heads/master | 2023-04-13T10:07:08.160001 | 2021-04-21T10:24:17 | 2021-04-21T10:24:17 | 267,624,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | #!/usr/bin/env python
# Make a tensor containing grid-cell corner locations from the image metadata
import os
import sys
import math
import tensorflow as tf
import numpy
import pickle
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--rootd", help="root directory", type=str, required=True)
p... | [
"philip@brohan.org"
] | philip@brohan.org |
d38333c18d45679b62018269967f8c0ac35bdc26 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_automl_image_segmentation.py | ffccf9eebf789cc84db05ad6812bd7fd5eab6066 | [
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",
"ODbL-1.0",
"GPL-3.0-only",
"Z... | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 4,934 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
import copy
import platform
from typing import Tuple
import pytest
from test_utilities.utils import assert_final_job_status, get_automl_jo... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
2f3ff636fb34d745ffaa5ea9b022823502f5d43c | 665455c521cc7cf76c5436337ed545de90976af4 | /cohesity_management_sdk/models/subscription_type_azure_credentials_enum.py | 3089b273d3faa936de0e61a8f028a28e860b1215 | [
"Apache-2.0"
] | permissive | hsantoyo2/management-sdk-python | d226273bc8eedcf9220ea4999a6f0b9a1a30d99c | 0093194d125fc6746f55b8499da1270c64f473fc | refs/heads/master | 2023-03-01T06:09:39.644085 | 2021-01-15T08:23:16 | 2021-01-15T08:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
class SubscriptionTypeAzureCredentialsEnum(object):
"""Implementation of the 'SubscriptionType_AzureCredentials' enum.
Specifies the subscription type of Azure such as 'kAzureCommercial' or
'kAzureGovCloud'.
Specifies the subscription type of an ... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
48f0854884ecd2500df38b72140371a1a933f8b9 | a80295f0d7d6c6c8ea5c0dce3929206eef2dfa66 | /server.py | ddc0415ff3af2352c792b0766c11232e6c28b67a | [] | no_license | bkodakari/flask2 | 38425ea04d12fcefeb538761ebeb66decc104852 | f17793af004bdd7602b6d7032ab84556a49a1317 | refs/heads/master | 2020-12-31T00:29:37.991325 | 2017-03-16T04:15:12 | 2017-03-16T04:15:12 | 85,152,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | from flask import Flask, request
from random import choice, randint
from flask import render_template
COMPLIMENTS = ["smart", "clever", "tenacious",
"awesome", "Pythonic"]
# "__name__" is a special Python variable for the name of the current module
# Flask wants to know this to know what any imported... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
10f794876bff9222640ce92abb3e52e1013e1415 | a9fe1b5c320cdef138ac4a942a8b741c7f27de7c | /LC1302-Deepest-Leaves-Sum.py | c6d72946df16cfe5c4125b05fb11adb0f535d37c | [] | no_license | kate-melnykova/LeetCode-solutions | a6bbb5845310ce082770bcb92ef6f6877962a8ee | ee8237b66975fb5584a3d68b311e762c0462c8aa | refs/heads/master | 2023-06-28T06:35:33.342025 | 2021-07-30T06:59:31 | 2021-07-30T06:59:31 | 325,106,033 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | """
Given the root of a binary tree, return the sum of values
of its deepest leaves.
Example 1:
Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8]
Output: 15
Example 2:
Input: root = [6,7,8,2,7,1,3,9,null,1,4,null,null,null,5]
Output: 19
Constraints:
(*) The number of nodes in the tree is in the range [1, 10^... | [
"forkatemelnikova@gmail.com"
] | forkatemelnikova@gmail.com |
e0e296b4db975b48fac91b4a435db315d68bccc5 | 86932f8c69708ebdf534c6604e5322a5496596a1 | /tests/helpers.py | feef1302d75b434d46e530e499daa0eabc790c3b | [
"BSD-2-Clause"
] | permissive | ress/flask-assets | 3a8cd77c315840cb80528cbbf139f804ae335920 | 747aa9c0d1b036bd3cc65b5cd278e48a97ac8af2 | refs/heads/master | 2021-01-18T05:52:34.242630 | 2013-01-04T15:43:58 | 2013-01-04T15:43:58 | 7,623,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from nose import SkipTest
from nose.tools import assert_raises
from flask.app import Flask
try:
from flask import __version__ as FLASK_VERSION
except ImportError:
FLASK_VERSION = '0.6'
from webassets.test import TempEnvironmentHelper as BaseTempEnvironmentHelper
from flask.ext.assets import Environment
try:
... | [
"michael@elsdoerfer.com"
] | michael@elsdoerfer.com |
e1700a52bf7fc6f3fef9ba3960aaf57f768bad57 | 0c659d16b796e6220e93b08693e557a698c5977e | /setup.py | 0e4dae03af83c6567586b12a43992f9873753b41 | [
"MIT"
] | permissive | marchon/citas | f4eb405d9efd9831df21b892945327bc86f8b7fe | 73a51c0a5dff29bd2728973457d378aec40ce1cf | refs/heads/master | 2021-04-15T08:01:43.520071 | 2017-05-04T22:19:00 | 2017-05-04T22:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from pip.req import parse_requirements
import re, ast
# get version from __version__ variable in citas/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('citas/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_vers... | [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
513e529b4e9e4115777f44df6972ef72a2e0e317 | e6a4af814f41e0a6b661d8685a54ba5bd41a4baf | /film/dao/calc_dao.py | 063d7d0053c70a79fc8d3343bc0e50eacd00efa5 | [] | no_license | oaifaye/film_wx | cdb39116748af180719bec4d2cf5af02e88235d3 | 63519b430001216f22d14a1ee6f7d528e0ce655e | refs/heads/master | 2021-05-09T12:41:24.361486 | 2018-01-26T06:57:48 | 2018-01-26T06:57:48 | 119,016,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,281 | py | # -*- coding: UTF-8 -*-
'''
Created on 2017年12月10日
@author: Administrator
'''
from film.dao.base_dao import BaseDao
import datetime
class CalcItem():
id = -1
dateNo = 0
calcType=''
websiteId = 0
mergeCinemaId=None
mergeFilmId=None
initDate = None
class CalcDao(BaseDa... | [
"slf_work@hotmail.com"
] | slf_work@hotmail.com |
979f59f65eddf8d3e63c273c305af8eb83b1ee6f | 0ebc1fddbdcc9ea6fca53e1d8fb77c6a892c8a19 | /Ground-Truth-Skeletons/dataManagement/organise_val_data.py | eff83d74db189b84cf72649ff141e0cce0805a0a | [
"MIT"
] | permissive | amit2014/Action-Recognition | 4ea569bc3a82966340b97a70ba14675fb5dadf12 | b648f4cd8e479872c0cd9488120ada18bc64e5ad | refs/heads/master | 2020-05-16T05:04:01.846725 | 2018-05-05T09:00:36 | 2018-05-05T09:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | import numpy as np
import pickle
#####################################################################################################################
stupid_videos = [ 111, 111, 111, 747, 747, 747, 981, 981, 981,
1145, 1145, 1145, 1252, 1252, 1252, 1281, 1281, 1281,
1282, ... | [
"naman1205jain@gmail.com"
] | naman1205jain@gmail.com |
4490c6ee769209f3751f16f7c940b75c7095bdc1 | 2d28d7d23ffee8c19c5b0b5f12c2ef34a0e0eac2 | /py_kafk/tar/pykafka-2.8.1-dev.1/tests/pykafka/test_ssl.py | 97ac4378b0c1e61c7dc9b8fdaa981abf92fccac8 | [
"Apache-2.0"
] | permissive | liuansen/python-utils-class | bd8e9bb100a8b7c97ca9022ecf44cde0e79a8edd | c7054bd05b127385b8c6f56a4e2241d92ff42ab4 | refs/heads/master | 2023-05-27T22:40:00.715765 | 2022-08-08T07:33:41 | 2022-08-08T07:33:41 | 185,551,657 | 3 | 0 | Apache-2.0 | 2023-05-22T21:37:24 | 2019-05-08T07:08:23 | Python | UTF-8 | Python | false | false | 2,701 | py | import os
import unittest
from uuid import uuid4
import pytest
from pykafka import KafkaClient, SslConfig
from pykafka.test.utils import get_cluster, stop_cluster
kafka_version = os.environ.get('KAFKA_VERSION', '0.8.0')
class SslIntegrationTests(unittest.TestCase):
USE_RDKAFKA = False
@classmethod
de... | [
"616833686@qq.com"
] | 616833686@qq.com |
3e0884b6637fa46e47bf58684f8b728f67568073 | b0b5df878333beada1fa4d862be098b80ced7641 | /AUTO_ADB/DCcore/dc_daily.py | 31cdf81394ca668e57a9ba70585ca50c7a0cf420 | [] | no_license | hygnic/boomboost | 054beac114f3407757a5423ed4766d36c2278911 | dcbff7abe3300c1a4c668cf6a96370a53be99ac5 | refs/heads/master | 2023-06-06T00:47:48.734632 | 2021-05-28T09:58:24 | 2021-05-28T09:58:24 | 281,379,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# ---------------------------------------------------------------------------
# Author: LiaoChenchen
# Created on: 2020/8/13 23:00
# Reference:
"""
Description: DC 日常任务
Usage:
"""
# ---------------------------------------------------------------------------
import os
import ... | [
"hygnic@outlook.com"
] | hygnic@outlook.com |
f69e6cb58e32915c9091cbd7e6e8ac7b79d70306 | 0c4103afaa218697ad6ec514ad02a6e154278d70 | /python_data_structures/dictionaries/view_obj.py | 35a5acede55a7861d48a95e7eee052a269e59388 | [] | no_license | jgartsu12/my_python_learning | e721f3fa646d2ca46c888d0fbc55ac03a48b4889 | f971b7168e97e52fe9fd66f4b4d7c098110ca701 | refs/heads/master | 2020-09-07T17:45:08.747614 | 2019-11-19T00:49:23 | 2019-11-19T00:49:23 | 220,865,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | # Guide to Python Dictionary View Objects
#nested collections in dictionary view obj
# traversal to grab nestd items in a view obj
teams = {
"astros" : ["Altuve", "Correa", "Bregman"],
"angels": ["Trout", "Pujols"],
"yankees": ["Judge", "Stanton"],
"red sox": ["Price", "Betts"],
}
team_groupings = teams.item... | [
"jgartsu12@gmail.com"
] | jgartsu12@gmail.com |
960173d66646bb039683ffef01a651b16866f98a | f39528e9bad8cfa78b38fcbb7a5b430ac0c7a942 | /Displaced_Dijets/DisplacedVerticesGeneratorFragments-CP2-2017/StopStopbarTo2Dbar2D_M_200_CTau_300um_TuneCP2_13TeV_pythia8_cff.py | 6ab0832145f8e68ef40c4dbd40c98435fce13338 | [] | no_license | isildakbora/EXO-MC-REQUESTS | c0e3eb3a49b516476d37aa464c47304df14bed1e | 8771e32bbec079de787f7e5f11407e9e7ebe35d8 | refs/heads/master | 2021-04-12T11:11:03.982564 | 2019-04-29T15:12:34 | 2019-04-29T15:12:34 | 126,622,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | M = 200
CTAU = 0.3
WIDTH = 0.0197e-11 / CTAU
SLHA_TABLE = '''
BLOCK SPINFO # Spectrum calculator information
1 Minimal # spectrum calculator
2 1.0.0 # version number
BLOCK MODSEL # Model selection
1 1 #
BLOCK MASS # Mass Spectrum
# PDG code mass particle
100... | [
"bora.isildak@cern.ch"
] | bora.isildak@cern.ch |
c2a197ea72a0a7ecc9e3d5d77c97281427c01913 | 98f0b4edce2cc250aa5a544b7736d0287ad339a2 | /manage.py | b9a292afd158c8ae58166c5ac0081d667f32a2f0 | [] | no_license | DasomJung24/Brandi_project_with_Django | 86e0493a5ff314ae9bddaeabf1058acd81079282 | 7e7513c20b9051aa242759c8ba69894a2bdc2fcb | refs/heads/master | 2023-01-21T11:59:37.941347 | 2020-12-06T13:50:36 | 2020-12-06T13:50:36 | 314,373,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'brandi_project_django.settings')
try:
from django.core.management import execute_from_command_line
... | [
"jeongdasom6@gmail.com"
] | jeongdasom6@gmail.com |
1179594e202410df5cc796d5a05f2b4b7c7863ee | 72a9252951271373f66c5684344f0d5dff9565be | /知乎/zhi_Spider/BINSHAN/db.py | c8ca73059fc24c3671a323b3d1ffa82a336761e2 | [] | no_license | wudangqibujie/Spider_Project | 7b43c9e3ca8d9f73d6a6e25d5574658838152acc | 08beae178f269743afca0e5d91e1ad6a79464047 | refs/heads/master | 2020-03-21T22:11:41.635169 | 2018-07-03T03:12:47 | 2018-07-03T03:12:47 | 139,110,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from settings import *
import pymongo
class Mon(object):
def __init__(self):
self.client = pymongo.MongoClient(MONGO_HOST,MONGO_PORT)
self.db = self.client[MONGO_DB_NAME]
def insert(self,coll_name,data):
self.db[coll_name].insert(data)
def data_find(self,coll_name):
... | [
"noreply@github.com"
] | wudangqibujie.noreply@github.com |
14d0a3eb36ede4f57355b53e8675474ff624c2b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02663/s270893737.py | 0e407da5c73554e2845ac3ce57620af88e88d312 | [] | 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 | 304 | py | def Int():
return int(input())
def Ints():
return map(int,input().split())
def IntList():
return list(Ints())
def IntMat(N):
return [IntList() for i in range(N)]
import sys
sys.setrecursionlimit(4100000)
rl = sys.stdin.readline
H1,M1,H2,M2,K = Ints()
S = (H2-H1)*60+(M2-M1)
print(S-K) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0bf3f8859c7782f22606b4bf3c58ab6de8a17c1d | 1903aa0028dd91a128f1630c6eb9a1f3467ed951 | /update_constraints.py | 21084617ca0f2cda487b66613cfe2f5e3bac850a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-2-Clause"
] | permissive | icemac/icemac.addressbook | a5ae04feb2b2fb1f0ecc7bf3e60b1666f5bfedd8 | 6197e6e01da922feb100dd0943576523050cd703 | refs/heads/master | 2021-01-03T12:44:08.365040 | 2020-08-06T06:50:51 | 2020-08-06T06:51:05 | 242,137,124 | 2 | 0 | BSD-2-Clause | 2020-04-12T07:41:02 | 2020-02-21T12:43:45 | Python | UTF-8 | Python | false | false | 1,003 | py | """Adapted from https://github.com/zopefoundation/Zope/blob/4aadecc/util.py."""
import os
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
HERE = os.path.abspath(os.path.dirname(__file__))
class CaseSensitiveParser(RawConfigParser):
def optionxf... | [
"mh@gocept.com"
] | mh@gocept.com |
9a16597fd1d52b913e1b8ac76edee8bfcc2ffdb0 | 9758fa6d66df1121ff9e0b4a7da511653bc53cf1 | /Store/migrations/0015_auto_20190831_1807.py | 6eb4ef39296d595ca30aac8e88963aa2b68bb4ce | [] | no_license | hdforoozan/Restaurant-project | 179fb4138cb92bfd7716671c3b1e8b1949bfbaff | 2ab096cbc3ee20557b57ed97bd0d5556c5965e87 | refs/heads/master | 2020-06-12T08:50:03.067740 | 2019-09-17T18:48:43 | 2019-09-17T18:48:43 | 194,250,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Generated by Django 2.2.2 on 2019-08-31 13:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Store', '0014_auto_20190831_1803'),
]
operations = [
migrations.AlterField(
model_name='employee',
name='education_d... | [
"hdforoozan@gmail.com"
] | hdforoozan@gmail.com |
8652007449a4a6d6723587c87267379f02cbf808 | ed4123102ac4a96d7d649a0c8871a69ecafde1d7 | /lib/bitwise.py | 566773ba9ab47ccc551cd469ce2abc0f70b3da0e | [] | no_license | aleksejs-fomins/bio-machine-learning | 07f88052e5cdd04943aad459667713ce261a98cd | 0dda7c6681ab5f6b9b2b17c5944cad3664b6bf3f | refs/heads/master | 2023-03-04T12:29:30.425887 | 2023-02-07T08:34:53 | 2023-02-07T08:34:53 | 211,850,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | import numpy as np
# Flip the i-th bit of integer a
def bitflip(a, i):
pos = 2**i
return a-pos if a&pos else a+pos
# Convert an integer to a list of bits
def bitlist(num, nbit):
return [int(bool(num & (1 << idx))) for idx in range(nbit)]
def bitlist2activation(lst):
return np.array([1 if bit == 1 els... | [
"aleksejs.fomins@uzh.ch"
] | aleksejs.fomins@uzh.ch |
e3d5e2d6bd853c4f74d2acc6be9c45639d9428c8 | effdcfa3a98477226aa02de7a2e589bff8adfa56 | /3_STL/222score.py | 511c1d7da9487a38c89d3019058e68aed75f48d6 | [] | no_license | WUT-IDEA/Y2019_WWJ_Graduation_Design_Code | 5817ceee8919355cc63262a629087c323b970c17 | 23e15f6156d5cf8552a9d913bb48eb675ef8e3c5 | refs/heads/master | 2020-05-27T22:28:48.021213 | 2019-05-27T09:18:04 | 2019-05-27T09:18:04 | 188,805,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import math
def plot(pre,actual):
plt.title('arima')
plt.rcParams['font.sans-serif'] = ['SimHei'] # 步骤一(替换sans-serif字体
plt.rcParams['axes.unicode_minus'] = False # 步骤二(解决坐标轴负数的负号显示问题)
plt.plot(actual, linewidth=1, label='... | [
"zhengyunpei@zhengyunpeideMacBook-Pro.local"
] | zhengyunpei@zhengyunpeideMacBook-Pro.local |
3fe76dba2406707715ea71443aa5c68084b6427c | a97db7d2f2e6de010db9bb70e4f85b76637ccfe6 | /leetcode/143-Reorder-List.py | 76dc35a930512a20ad60fd1ba66c72c733a1b227 | [] | no_license | dongxiaohe/Algorithm-DataStructure | 34547ea0d474464676ffffadda26a92c50bff29f | a9881ac5b35642760ae78233973b1608686730d0 | refs/heads/master | 2020-05-24T20:53:45.689748 | 2019-07-19T03:46:35 | 2019-07-19T03:46:35 | 187,463,938 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | class Solution:
def reorderList(self, head):
if not head or not head.next: return
slow, fast = head, head
while fast.next and fast.next.next:
slow = slow.next
fast = fast.next.next
first, second = slow, slow.next
while second.next: # 1->2->3->4->5->6 t... | [
"ddong@zendesk.com"
] | ddong@zendesk.com |
931896263bebf84e1b742fc4256243bdbe10d638 | 395f974e62eafed74572efebcd91d62966e61639 | /deprecated/obsolete/src/testavl.py | 10d7a4e08ece3e0ff7e6d4fe13926d33defb668e | [
"Apache-2.0"
] | permissive | agroce/tstl | ad386d027f0f5ff750eab19a722a4b119ed39211 | 8d43ef7fa49534868e6cdf1697863748260405c7 | refs/heads/master | 2023-08-08T19:14:52.020314 | 2023-07-26T17:51:36 | 2023-07-26T17:51:36 | 32,408,285 | 106 | 33 | NOASSERTION | 2021-01-26T19:05:17 | 2015-03-17T17:14:04 | Python | UTF-8 | Python | false | false | 1,506 | py | import avl
import random
import sys
import coverage
import time
import numpy
start = time.time()
branchesHit = set()
maxval = int(sys.argv[1])
testlen = int(sys.argv[2])
numtests = int(sys.argv[3])
cov = coverage.coverage(branch=True, source=["avl.py"])
cov.start()
for t in xrange(0,numtests):
a = avl.AVLTree... | [
"agroce@gmail.com"
] | agroce@gmail.com |
0d90a0e294b9f072e189229811680e4b4e3babb1 | a777170c979214015df511999f5f08fc2e0533d8 | /train.py | e6fbe847bc160c06cca04e2c8f32707f3e1cf0ac | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | srlee-ai/claf | 210b2d51918cf210683e7489ccb8347cb8b1f146 | 89b3e5c5ec0486886876ea3bac381508c6a6bf58 | refs/heads/master | 2021-02-13T04:38:36.198288 | 2020-03-03T15:01:01 | 2020-03-03T15:01:01 | 244,661,892 | 0 | 0 | MIT | 2020-03-03T14:45:52 | 2020-03-03T14:45:52 | null | UTF-8 | Python | false | false | 248 | py | # -*- coding: utf-8 -*-
from claf.config import args
from claf.learn.experiment import Experiment
from claf.learn.mode import Mode
if __name__ == "__main__":
experiment = Experiment(Mode.TRAIN, args.config(mode=Mode.TRAIN))
experiment()
| [
"humanbrain.djlee@gmail.com"
] | humanbrain.djlee@gmail.com |
34ac7a3126ac16fa1d6c38c6a98abcbeeac04fa3 | cc18ad6df3249b891a8fb6491a940ac2a33d284a | /tests/test_l.py | 8f31bdd414ae7368ace95e1ffa2f21be89d241f8 | [] | no_license | ASU-CompMethodsPhysics-PHY494/activity-03-python_calculator | 39ee8d654a3376a51a432179efd4c7a7e1de82d8 | 60acaaf07338294180e9c804d2343b4f4d41304d | refs/heads/main | 2023-02-24T20:33:55.020537 | 2021-01-28T16:23:31 | 2021-01-28T16:23:31 | 333,042,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | import pytest
from .tst import _test_variable
def test_l(name='l', reference=-1+3j):
return _test_variable(name, reference)
| [
"orbeckst@gmail.com"
] | orbeckst@gmail.com |
23a2097a7cc61138e387807676a9e26a1c578749 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/web/list_web_app_site_backups_slot.py | d462ca9222f2a90ee8600578a233a9c59f113a18 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,748 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
47253660053b62e3a3400992df6e8e5c92705a2f | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_2336+264/sdB_PG_2336+264_lc.py | 5a89a24209124435ed571d1c422e1be8d34c29e3 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[354.680542,26.667064], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_2336+264 /sdB_PG_2336+264_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
ac01b0964e31f632558c44346006f03235d2cbaf | 5021cd17ce5fb52f7859d69ffa660c1393820fea | /34.py | 273b15775856ae587f4dd416663870f2c79d0f4c | [] | no_license | slavo3dev/python_100_exercises | 720e4f76de670fa969c9d62bddee1db20caf24f1 | 2983131a2a3ec40bbf3460a2e1baed57c6514e6a | refs/heads/master | 2021-08-23T05:22:21.673477 | 2017-12-03T16:14:48 | 2017-12-03T16:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Question: The following script throws a NameError in the last line saying that c is not defined. Please fix the function so that there is no error and the last line is able to print out the value of c (i.e. 1 ).
def foo():
global c = 1
return c
foo()
print(c)
# c is not defined becuse variable is in... | [
"slavo@mimicom24.com"
] | slavo@mimicom24.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.