blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f774788f282a41dee2b12ddc84f99a3129f478b | d1a8d250cf6e3e61f90b5d122e389d8488a9ff8c | /Travel/urls.py | 92e0a1b5647b5b2c19167ecdbde5cdc9f7fe538a | [] | no_license | dusty-g/Travel | 89501d156a3ea86f4478f7bb41e1f968c7087bd3 | 5ca6061884e7630a0b0365adfa640da3ce1a6c37 | refs/heads/master | 2021-01-20T02:23:18.066638 | 2017-04-30T19:00:56 | 2017-04-30T19:00:56 | 89,401,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | """Travel URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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')
Class-bas... | [
"dustygalindo@gmail.com"
] | dustygalindo@gmail.com |
523c27cef991c4da732221247a1e6f5b62c76c04 | 6e1569e876ad1094efdaa013a5311cfc79c56da5 | /src/create_ls_corpus.py | d6371f39b348700adf67ea26191253f7cd0576c7 | [
"MIT"
] | permissive | mbencherif/forced-alignment | 83895cb76435e36a380585a2128beb6d9feef9f7 | 39fa08e78d4fc2a85fda81b31a320e1b0d2578f0 | refs/heads/master | 2022-02-17T11:10:37.083002 | 2019-07-17T07:37:55 | 2019-07-17T07:37:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,327 | py | # Create ReadyLingua Corpus
import argparse
import logging
import math
import os
import re
import sys
from os import makedirs, walk
from os.path import exists, splitext, join
from pathlib import Path
from librosa.output import write_wav
from pydub.utils import mediainfo
from tqdm import tqdm
from constants import COR... | [
"git@tiefenauer.info"
] | git@tiefenauer.info |
f1c2edcac27a6ce135430dbd9554ede1eecf2db1 | caeec99c6a0e7d0dd625891c5adacd23ff311892 | /trunk/config.py.sample | 797bfa19df19a436c7f0371bef0150aa14ea9801 | [] | no_license | BGCX067/faccbk-svn-to-git | fad0e44a3ce675d390751a4ff4cc8afbe9a4ebe8 | 82a5a801a9a2e19a2a72cbbdce0324a42ad699a4 | refs/heads/master | 2016-09-01T08:53:29.582184 | 2015-12-28T14:36:39 | 2015-12-28T14:36:39 | 48,699,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | sample | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on Aug 15, 2010
@author: Wang Yuanyi
'''
#please change follow 2 row by your family numbers google account
Admin = '@gmail.com'
Users = ['@gmail.com','@gmail.com']
TEST = False
from wiwikai.faccbk import TransPurposeCategory, TransAccount, Payee, \
trans_typ... | [
"you@example.com"
] | you@example.com |
a5557e1e7860c8f253f595c34e566932589397fe | 9d5ae8cc5f53f5aee7247be69142d9118769d395 | /105. Construct Binary Tree from Preorder and Inorder Traversal.py | 07ece7f58fcc51506392b5c3a8ab71150a8ac29c | [] | no_license | BITMystery/leetcode-journey | d4c93319bb555a7e47e62b8b974a2f77578bc760 | 616939d1599b5a135747b0c4dd1f989974835f40 | refs/heads/master | 2020-05-24T08:15:30.207996 | 2017-10-21T06:33:17 | 2017-10-21T06:33:17 | 84,839,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def buildTree(self, preorder, inorder):
"""
:type preorder: List[int]
:type inorder: List[int]
... | [
"noreply@github.com"
] | BITMystery.noreply@github.com |
59b2cce8a4944dee1270584b23cafa10f4126df0 | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccpnmr/analysis/popups/LinkPeakLists.py | 070d735f76a146f4c371726cf9dff58a46e43c2b | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 51,456 | py |
"""
======================COPYRIGHT/LICENSE START==========================
LinkPeakLists.py: Part of the CcpNmr Analysis program
Copyright (C) 2003-2010 Wayne Boucher and Tim Stevens (University of Cambridge)
=======================================================================
The CCPN license can be found in ... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
861203770fe40eabf96cb4818d736ba3918bcd4f | 46f2834ae92da9e17463def0c635f75bf05886a1 | /abc/abc122/A/main.py | 73450f43c55c708928dfc5e028569620a5730e24 | [] | no_license | replu/atcoder | bf3da10c937c955ca1bc3fa33b8f24c74d2d6c50 | a6183d03355058bccc2b89db5e07b7f72598fea3 | refs/heads/master | 2023-03-30T15:03:47.879783 | 2021-03-28T17:08:19 | 2021-03-28T17:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #!/usr/bin/env python3
import sys
def solve(b: str):
return
# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
def iterate_tokens():
for line in sys.stdin:
for... | [
"n.small.island@gmail.com"
] | n.small.island@gmail.com |
566fef1988f54e052d1f14803548c6240db965c9 | 376b6933872b9110765154094d2c77713da2c853 | /rnaseq/5clusterall/cap3Wrapper.py | b5254bbb0bf980bfe85607197f3869afde7b2059 | [] | no_license | markphuong/geographus-genome | 46b037e7789641895f1a99b8bf6dee3418887600 | a0ff439fbc0c350279359a51321e40e7778f5170 | refs/heads/master | 2020-03-19T07:21:29.297458 | 2018-06-05T04:15:18 | 2018-06-05T04:15:18 | 136,107,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | #!/usr/bin/env python
#this concatenates all read files into R1 and R2 files [if you get multiple read files per index from illumina]
import os
import sys
import argparse
import multiprocessing
def get_args(): #arguments needed to give to this script
parser = argparse.ArgumentParser(description="concatenate reads... | [
"phuong@br006.pvt.bridges.psc.edu"
] | phuong@br006.pvt.bridges.psc.edu |
9402a70a7e7b3c955d989eb346cb982d1328408e | d51c0aeddb864973ec1171e99e8f174ad622d965 | /baselines/baselines/deepq/experiments/train_cartpole.py | a767a8d208ad52f4e5f63f24ce59ea74005c806b | [
"MIT"
] | permissive | Kiwoo/HVHRL | c42af09faec716e727a6fb4a82171412e66abad9 | b883c6a36655e2d348114e320b953f12dc799fd4 | refs/heads/master | 2021-01-25T14:04:11.848972 | 2018-04-26T08:20:41 | 2018-04-26T08:20:41 | 123,648,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import gym
from baselines import deepq
def callback(lcl, _glb):
# stop training if reward exceeds 199
is_solved = lcl['t'] > 100 and sum(lcl['episode_rewards'][-101:-1]) / 100 >= 199
return is_solved
def main():
env = gym.make("Pendulum-v0")
model = deepq.models.mlp([256,256])
act = deepq.l... | [
"kiwoo.shin@berkeley.edu"
] | kiwoo.shin@berkeley.edu |
07fcc6f0dc5bb166815d7aeb242fa74b24447294 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_14133.py | 3143a7ae2947795b0e135c4a710171911771d8dc | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # How to get a single value from a pymongo query of a mongodb in python?
myValues[i] = bla['value']
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
1c8cad55af6edfc57241f881d4848b14031864af | 34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d | /Python/plotting/plotting1/panda_module/remove_whitespace/a.py | 4a80e59c6a1bd9d3df8994693660f2b22cde87a1 | [
"MIT"
] | permissive | bhishanpdl/Programming | d4310f86e1d9ac35483191526710caa25b5f138e | 9654c253c598405a22cc96dfa1497406c0bd0990 | refs/heads/master | 2020-03-26T06:19:01.588451 | 2019-08-21T18:09:59 | 2019-08-21T18:09:59 | 69,140,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,682 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author : Bhishan Poudel
# Date : Apr 04, 2016
# Ref : http://www.randalolson.com/2014/06/28/how-to-make-beautiful-data-visualizations-in-python-with-matplotlib/
# Imports
import matplotlib.pyplot as plt
import pandas as pd
# Read the data into a pandas DataFrame.
gende... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
23399b0e88453cfbeee0e62dc3945c91eccbc848 | a5103b7d5066138ac1a9aabc273361491a5031cd | /daily/8/studyOfFace/MTCNN/prepare/rnet_data.py | 4422d2f2f0d46f62676e9f48737a81c052c43e2e | [] | no_license | mckjzhangxk/deepAI | 0fa2f261c7899b850a4ec432b5a387e8c5f13e83 | 24e60f24b6e442db22507adddd6bf3e2c343c013 | refs/heads/master | 2022-12-13T18:00:12.839041 | 2021-06-18T03:01:10 | 2021-06-18T03:01:10 | 144,862,423 | 1 | 1 | null | 2022-12-07T23:31:01 | 2018-08-15T14:19:10 | Jupyter Notebook | UTF-8 | Python | false | false | 105 | py | from prepare.hard_example import gen_hard_example
if __name__ == '__main__':
gen_hard_example('RNet') | [
"mckj_zhangxk@163.com"
] | mckj_zhangxk@163.com |
a60f0f53fe90dec0b1d503bc141dbfb3c2c22314 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00000/s458844379.py | 6d83338830ad39cbf525c602db21b70c0c6451d0 | [] | 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 | 90 | py | for i in range(9):
for j in range(9):
print "%dx%d=%d" %(i+1,j+1, (i+1)*(j+1)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
529e0aa15f413725f9b4e3a6945022c0fd4e7083 | c91d029b59f4e6090a523bf571b3094e09852258 | /src/logistica/migrations/0004_auto_20170711_1738.py | 57bb29d599c643d69a5cac048dfd62e473e192cd | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 898 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-11 20:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('logistica', '0003_auto_20170710_1212'),
]
operations = [
migrations.AddFiel... | [
"anselmo.blanco.dominguez+github@gmail.com"
] | anselmo.blanco.dominguez+github@gmail.com |
4a6518abbc5f98a6b738dbfb78048ecc912f48c8 | f336bcdc1eeab553e0d3d1de2ca6da64cd7f27bc | /kline/mail.py | d612df174c3dcde334dfc541671e8a871f20655b | [] | no_license | tonylibing/stockpractice | 04568c017a96815e3796c895e74f11fa128d3ffe | 039e144b3a4cc00e400338174b31fa277df55517 | refs/heads/main | 2023-09-05T03:53:02.565539 | 2021-10-30T22:08:16 | 2021-10-30T22:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | # coding:utf-8
# 1000元实盘练习程序
# 发送邮件模块
# 参考https://zhuanlan.zhihu.com/p/24180606
# 防止硬编码泄露用户名密码,参考:https://blog.csdn.net/lantian_123/article/details/101518724
# 需在源码目录下自行编辑.env文件,定义USERNAME和PASSWORD的值
import smtplib
from email.mime.text import MIMEText
from dotenv import load_dotenv
import os
# 发送邮件
def sentMail(tit... | [
"zwdnet@163.com"
] | zwdnet@163.com |
689c9e0171cd5a49c7db0431676dafac55e3f56c | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn4 - krajevne funkcije/M-17237-2540.py | 6f6a7e522553764587c45140bc09e8f3a722ee3e | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | def koordinate(ime, kraji):
for name,x,y in kraji:
if name == ime:
return(x,y)
elif name == None:
return None
def razdalja_koordinat(x1, y1, x2, y2):
import math
return math.sqrt(math.pow(x2-x1, 2)+ math.pow(y2-y1,2))
def razdalja(ime1, ime2, kraji):
x... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
204c66a406901687afa7adb378d50f6169acde6a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2429/60776/289149.py | 8b653e07054c352ba83431c6436e14577e5b51d9 | [] | 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 | 275 | py | a=int(input())
for k in range(0,a):
a=input()
b = input().split(' ')
result=0
for i in range(0, len(b)):
b[i] = int(b[i])
for i in range(0,len(b)):
if result<max(b[i:len(b)])-b[i]:
result=max(b[i:len(b)])-b[i]
print(result) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8a7e16854616347b5368b07913fd92aefa97e9d2 | d10c5d3603e027a8fd37115be05e62634ec0f0a5 | /08_Statistical-Thinking-in-Python-1/08_ex_3-10.py | 06c4213345f1eafa6d736dac7e4763b791cd08d6 | [] | no_license | stacygo/2021-01_UCD-SCinDAE-EXS | 820049125b18b38ada49ffc2036eab33431d5740 | 027dc2d2878314fc8c9b2796f0c2e4c781c6668d | refs/heads/master | 2023-04-29T01:44:36.942448 | 2021-05-23T15:29:28 | 2021-05-23T15:29:28 | 335,356,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # Exercise 3-10: Sampling out of the Binomial distribution
import numpy as np
import matplotlib.pyplot as plt
from functions import ecdf
np.random.seed(42)
# Take 10,000 samples out of the binomial distribution: n_defaults
n_defaults = np.random.binomial(100, 0.05, size=10000)
# Compute CDF: x, y
x, y = ecdf(n_defa... | [
"stacy.gorbunova@gmail.com"
] | stacy.gorbunova@gmail.com |
8a37254576bc719509e3ff8e4e2ec21a1bace1e1 | 0fc6ff5eb90ced71a3927b0e326481d40b020e66 | /validate/__init__.py | 78fd72485db94da66de27612181fbd5d36b3e316 | [] | no_license | chairco/lazy_email_validate | 155c8f8020a13a7c527c7d56f42014f5d75e9fdb | 169ed825894c21a0a04841d1e82b3a2b3a7df802 | refs/heads/master | 2021-01-21T14:19:40.946601 | 2017-06-26T07:38:53 | 2017-06-26T07:38:53 | 95,269,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # -*- coding: utf-8 -*-
__version__ = '0.0.1'
__author__ = 'chairco'
__email__ = 'chairco@gmail.com'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2017, chairco.'
| [
"chairco@gmail.com"
] | chairco@gmail.com |
6f78e598047b741dda5d12407c289837488f0a87 | 51496986e7fd12ba8c96b08d6394591f24472d59 | /code/toscaparser/nodetemplate.py | c05ac0c60779d78167115cdb5cb3d39d641a2d58 | [
"Apache-2.0"
] | permissive | superfluidity/RDCL3D | 3ba33051e19b362f9084d35037f881c332576dae | 3c5717941bd4046aa1be178e9004db1dc1c469a0 | refs/heads/master | 2020-04-06T04:13:50.615021 | 2019-01-06T14:56:51 | 2019-01-06T14:56:51 | 83,023,039 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 14,090 | 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
# d... | [
"you@example.com"
] | you@example.com |
e4ff02c8eee5d437306988c001615f0dfcb35b4a | 8799cbe3a261fea3ff05af2fba7e3eade40b57f5 | /SocialMedia/home/migrations/0001_initial.py | c845d53ec77a6f58857930c9c7677535d3ca89ee | [] | no_license | Anoop-Suresh/Training | 83b5759db0d2113bb90731b243a1dd2d5be5992f | e6f4dd8a77fec058917dd25c424a1f3afc7df236 | refs/heads/master | 2022-11-30T08:18:21.432284 | 2019-10-13T03:48:15 | 2019-10-13T03:48:15 | 190,737,085 | 0 | 0 | null | 2022-11-22T04:17:20 | 2019-06-07T12:05:47 | Python | UTF-8 | Python | false | false | 982 | py | # Generated by Django 2.2.4 on 2019-08-09 06:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"anoopsuresh.sayonetech@gmail.com"
] | anoopsuresh.sayonetech@gmail.com |
81d5962d85aef36a06189c0aeba78b1165d363b6 | 989eea1d9110972ec6b2f4cedcc1759c4859a7c0 | /RemoteClientMain.py | 861c279cb9ebcc314dbc586755a41b093f7b0190 | [] | no_license | writefaruq/EpuckDistributedClient | 9d09a58ad95e6905912f93f285d520e890d0a489 | 499a2a633654dbe20b183a7ee2d35151d2075aff | refs/heads/master | 2020-05-31T17:16:32.110668 | 2010-05-27T09:06:24 | 2010-05-27T09:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | #!/usr/bin/python
from multiprocessing.managers import BaseManager
from multiprocessing import *
import time
import sys
import logging, logging.config, logging.handlers
logging.config.fileConfig("\
/home/newport-ril/centralized-expt/EpuckDistributedClient/logging-remote.conf")
logger = logging.getLogger("EpcLogger")... | [
"Mdomarfaruque.Sarker@newport.ac.uk"
] | Mdomarfaruque.Sarker@newport.ac.uk |
94bf3ead889d4cee21f396fdba7754ee15bf3365 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/devtools/artifactregistry/v1beta2/google-cloud-artifactregistry-v1beta2-py/google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/grpc_asyncio.py | 4dd3cffa0b1b6ca8d8086ed31823925f2610d587 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,076 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
b04ec232dad42146af4dce5ba79fdd3343c9be31 | fc29ccdcf9983a54ae2bbcba3c994a77282ae52e | /Leetcode_By_Topic/bfs_pq-407.py | 5dc3ac844da50106fb2abfa7e638275b9d16f6e8 | [] | no_license | linnndachen/coding-practice | d0267b197d9789ab4bcfc9eec5fb09b14c24f882 | 5e77c3d7a0632882d16dd064f0aad2667237ef37 | refs/heads/master | 2023-09-03T19:26:25.545006 | 2021-10-16T16:29:50 | 2021-10-16T16:29:50 | 299,794,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # the reason why we are using pq is because we are always
# looking for the smallest/lowest height
class Solution:
def trapRainWater(self, heightMap: List[List[int]]) -> int:
m, n, = len(heightMap), len(heightMap[0])
heap, trapped = [], 0
for i in range(m):
for j in ran... | [
"lchen.msc2019@ivey.ca"
] | lchen.msc2019@ivey.ca |
54b29fef17ebaf22001c0689a06c72dc1f828954 | a861d6c0963c403775d63e4b4147249d06f55097 | /webapps/py/badObjectNames.py | ff030ebec2155413a7fda983b3082e7c0feb436f | [] | no_license | JulianJaffe/Tools | 87e2ad973f6bbc5d76583658e6765f0742058c90 | 9e84dccc4e271da5c2c1ab307b17779601143117 | refs/heads/master | 2020-03-29T13:03:03.056238 | 2014-10-15T03:27:17 | 2014-10-15T03:27:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,846 | py | #!/usr/bin/env /usr/bin/python
import os
import sys
# for log
import csv
import codecs
import ConfigParser
import time, datetime
import httplib, urllib2
import cgi
#import cgitb; cgitb.enable() # for troubleshooting
import re
from lxml import etree
import locale
locale.setlocale(locale.LC_ALL, 'en_US')
# the only... | [
"jblowe@berkeley.edu"
] | jblowe@berkeley.edu |
00f59bbf612888b96061b5e1941b039693ae8bd6 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_integration_runtime_connection_infos_operations.py | 025f88c15bb2e51084fa176d23b21e8d83390cf2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,248 | 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"
] | scbedd.noreply@github.com |
6aa9adbe021700f4492779c1e1475e5eae105d7b | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /hackerEarth/practice/dataStructures/advancedDataStructures/segmentTrees/chemicalReaction.py | abb01081b288bab7983f9f021a980fb0f4895a1c | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 4,202 | py | # Chemical Reaction
#######################################################################################################################
#
# Ani and his Favourite Chemistry Teacher Lissa were performing an Experiment in the Chemistry Lab. Experiment
# involves a N step Chemical Reaction. An N step Chemical Reac... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
a09ca7216adbbeef3f5c000eb167936a1f1ed25e | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/230/users/4041/codes/1683_2471.py | 825a290d780306bb8586be7773cb306f47c9bd76 | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | idade = int(input("insira sua idade: "))
imc = float(input("insira sua imc: "))
if(idade<45 and imc<22.0):
print("Entradas:", idade, "anos e IMC", imc)
risco = "Baixo"
print("Risco:", risco)
elif(idade<45 and imc>=22.0):
print("Entradas:", idade, "anos e IMC", imc)
risco = "Medio"
print("Risco:", risco)
elif(ida... | [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
e3e4c8b3377b575c08d598c785954c535352ffad | 55a273347cb103fe2b2704cb9653956956d0dd34 | /code/tmp_rtrip/test/mp_preload.py | e346c5f11d3c41466fad2388a00794a035b708d4 | [
"MIT"
] | permissive | emilyemorehouse/ast-and-me | 4af1bc74fc967ea69ac1aed92664f6428acabe6a | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | refs/heads/master | 2022-11-18T03:50:36.505882 | 2018-05-12T17:53:44 | 2018-05-12T17:53:44 | 115,035,148 | 25 | 1 | MIT | 2022-11-04T11:36:43 | 2017-12-21T18:27:19 | Python | UTF-8 | Python | false | false | 318 | py | import multiprocessing
multiprocessing.Lock()
def f():
print('ok')
if __name__ == '__main__':
ctx = multiprocessing.get_context('forkserver')
modname = 'test.mp_preload'
__import__(modname)
ctx.set_forkserver_preload([modname])
proc = ctx.Process(target=f)
proc.start()
proc.join()
| [
"emily@cuttlesoft.com"
] | emily@cuttlesoft.com |
1169a6fcb6d341f8e55bde090138a5d6601bc2de | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_315/ch28_2020_09_14_19_50_22_038006.py | ea52166c4ae4e1d2336c316884e0055e2f33adfe | [] | 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 | 78 | py | i = 0
x = 0
while i <= 100:
i = i + (1/2)**x
x = x + 1
print (i)
| [
"you@example.com"
] | you@example.com |
f510490adc4d4b3e88b0b150cfd42fd22a80f11f | 0afc497dafc54da5fe3e88aea7f7244f43767259 | /Vents/migrations/0003_auto_20170522_1321.py | c2c0e77eeb4e557c7139a8037990a1f9016d62d2 | [] | no_license | matheo97/Multitenant-Django-app | 816da2f37c73487f82ecd26f9c52132609558d53 | 555bc4b737a52e4446f4de78e21c22a2206336fb | refs/heads/master | 2020-04-26T15:56:40.550895 | 2019-03-06T13:30:35 | 2019-03-06T13:30:35 | 173,662,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-05-22 18:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Vents', '0001_initial'),
]
operations = [
migrations.AddField(
mod... | [
"mateo.salazar@correounivalle.edu.co"
] | mateo.salazar@correounivalle.edu.co |
8b241edc84d3eb6f5cbb94d5e472a9326adcf879 | 05fb218bf06c525bf48d9c7133e4e3c659ab444c | /exchangelib/version.py | d8bbf5f90872148b6aac7b12584bc4125985b36d | [
"BSD-2-Clause"
] | permissive | alexdelin/exchangelib | b2f326c60b4fcbbdf84d7cfc5078d53f7f003cc8 | 06e3237ab05b876b5542f5cc3d5a6ecc7a9094d1 | refs/heads/master | 2021-01-23T07:51:05.752612 | 2017-09-08T08:06:43 | 2017-09-08T08:06:43 | 86,459,174 | 0 | 0 | null | 2017-09-11T15:50:26 | 2017-03-28T12:47:08 | Python | UTF-8 | Python | false | false | 12,638 | py | # coding=utf-8
from __future__ import unicode_literals
import logging
from xml.etree.ElementTree import ParseError
import requests.sessions
from future.utils import python_2_unicode_compatible
from six import text_type
from .errors import TransportError, ErrorInvalidSchemaVersionForMailboxVersion
from .transport imp... | [
"erik@cederstrand.dk"
] | erik@cederstrand.dk |
3ba9446a9bf04ecf5c8fc5716de850d07d603a73 | 0796e7c0ce6c9e1d4dc820873d3c1ff15804b312 | /test.py | cdc0c3cb8f51040a1a4b1e6eb52cae36ca43a34b | [] | no_license | parwisenlared/GAKeras | 8ef9c3ab1af7a93cbe3bfc95e9f5b072b54aac29 | b5ad2e3a9aa6e4b774a97b5add2606d0406c3804 | refs/heads/master | 2022-11-16T02:12:29.350678 | 2018-11-07T12:39:20 | 2018-11-07T12:39:20 | 278,607,991 | 0 | 0 | null | 2020-07-10T10:39:34 | 2020-07-10T10:39:33 | null | UTF-8 | Python | false | false | 2,694 | py | import unittest
from convindividual import ConvIndividual
from mutation import MutationConv
from crossover import CrossoverConv
from fitness import Fitness
from config import Config
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers import Convolutio... | [
"petra.vidnerova@gmail.com"
] | petra.vidnerova@gmail.com |
8f7c292fb090ecefffa1b0e549a821774baa67a5 | 215a7b5d0fcbfd85a3770a981fa2031f733e98db | /week8/133clone_graph.py | 03ccc307d099c643e4bcc7768ef16b4e90e7e38a | [] | no_license | shivani-aradhya/Leetcode-DSA | 7b571de15ef216a5a17f91dbfc895bd69ce8789e | c73e3ed8112454167d381bd497665021e36d1257 | refs/heads/main | 2023-07-09T10:59:38.987614 | 2021-08-18T05:50:44 | 2021-08-18T05:50:44 | 334,694,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | class UndirectedGraphNode(object):
def __init__(self, x):
self.label = x
self.neighbors = []
class Solution(object):
def cloneGraph(self, node):
if node is None:
return None
cloned_node = UndirectedGraphNode(node.label)
cloned, queue = {node:cloned_node}, [n... | [
"65466500+shivani-aradhya@users.noreply.github.com"
] | 65466500+shivani-aradhya@users.noreply.github.com |
0efc77aecb76941ad9ba6674deec524dec657bec | f0adca7cac7fb12cdb89e7e821559fe2603bf4bc | /src/199/recipe_199_02.py | f56c8c403955dc27daf67afa541b742e89b2df67 | [] | no_license | eriamavro/python-recipe-src | dccfa06bc56fcc713f8da9e466f04d07c1f961f0 | d14f3e4cd885515e9a9a7b8e3f064609c8e50fad | refs/heads/master | 2023-02-13T02:08:44.531621 | 2021-01-14T12:03:05 | 2021-01-14T12:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from datetime import datetime, date, time, timedelta
# 2021/12/22のdate型を生成
d1 = date(2021, 12, 22)
# 2021/12/22 12:00:30のdatetime型を生成
dt1 = datetime(2021, 12, 22, 12, 00, 30)
# 100日分のtimedelta型を生成
delta = timedelta(days=100)
# 100日前の日付を計算
d2 = d1 - delta
dt2 = dt1 - delta
# 計算結果をprint出力
print(d2)
print(dt2)
| [
"kurozumi.ta@gmail.com"
] | kurozumi.ta@gmail.com |
0be81145ca411d6fbbbfa64f1db51b5ca36595dc | 066435cd1b48955ab0039c275d706f167ccae5a2 | /ao2mo/_ao2mo.py | 2f53dfa31beb8225027add912b91daa2b90bef87 | [
"BSD-2-Clause"
] | permissive | matk86/pyscf | ca4b5c27b9ed6c5fb4120c8471110c087c43600b | 931bf855591a68c415a9564972a6e216a12b0b36 | refs/heads/master | 2020-12-25T10:08:18.334338 | 2016-02-01T06:15:33 | 2016-02-01T06:15:33 | 51,003,165 | 1 | 0 | null | 2016-02-03T14:00:02 | 2016-02-03T14:00:01 | null | UTF-8 | Python | false | false | 11,128 | py | #!/usr/bin/env python
import ctypes
import _ctypes
import numpy
import pyscf.lib
from pyscf.scf import _vhf
libao2mo = pyscf.lib.load_library('libao2mo')
def _fpointer(name):
return ctypes.c_void_p(_ctypes.dlsym(libao2mo._handle, name))
class AO2MOpt(object):
def __init__(self, mol, intor,
p... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
548e197af8cd6dcb51d001c3700a9359ef7afc89 | 5a8214b3a452c574e6c883bf5d90ba58ba87c461 | /leetcode/434.number-of-segments-in-a-string.py | 056b6cffd5334e0bade58dda9fd8cc91cc2205e2 | [] | no_license | phlalx/algorithms | 69a3c8519687816e3c6333ec12b40659d3e3167f | f4da5a5dbda640b9bcbe14cb60a72c422b5d6240 | refs/heads/master | 2023-02-03T10:30:30.181735 | 2020-12-26T09:47:38 | 2020-12-26T09:47:38 | 129,254,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #
# @lc app=leetcode id=434 lang=python3
#
# [434] Number of Segments in a String
#
# https://leetcode.com/problems/number-of-segments-in-a-string/description/
#
# algorithms
# Easy (37.22%)
# Likes: 161
# Dislikes: 619
# Total Accepted: 63.8K
# Total Submissions: 171K
# Testcase Example: '"Hello, my name is Joh... | [
"phlalx@users.noreply.github.com"
] | phlalx@users.noreply.github.com |
b5e58ef918b7f031e9107ff500ff7bba05be784a | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/actrl/rulehitaghist1year.py | ea3e4ff07cf4d4dc755d3ea6bba0e0e576787ef6 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,656 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
694353b37809e6c6e79c255f2e73c685974086a1 | dd65b9bc9475a6cc58817fd45c078e5a6abae241 | /VISION/FT700/ch11/11-1.py | 9c19edae1bc84ef389208f2341f5ce56b5c947e7 | [] | no_license | jumbokh/gcp_class | 5b68192ab4ad091362d89ad667c64443b3b095bb | 0a8e2663bfb5b01ce20146da178fa0c9bd7c6625 | refs/heads/master | 2021-10-22T09:22:04.634899 | 2021-10-21T12:46:10 | 2021-10-21T12:46:10 | 228,617,096 | 8 | 7 | null | 2021-08-25T15:55:30 | 2019-12-17T12:58:17 | Python | UTF-8 | Python | false | false | 465 | py | import cv2
def get_edge(img):
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # 灰階處理
blur = cv2.GaussianBlur(gray, (13, 13), 0) # 高斯模糊
canny = cv2.Canny(blur, 50, 150) # 邊緣偵測
return canny
#----------------------------------------------#
img = cv2.imread('road.jpg') # 讀取圖片
edge = ... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
230fda537b2e0091fc4d861174f5188b3647a1ea | 0daf6763c960cd898e9bb5612b1314d7e34b8870 | /sorting/data.py | a062769b4b09c3f3f46732a2430c4454d8f6e24c | [
"MIT"
] | permissive | evanthebouncy/nnhmm | a6ba2a1f0ed2c90a0188de8b5e162351e6668565 | acd76edaa1b3aa0c03d39f6a30e60d167359c6ad | refs/heads/master | 2021-01-12T02:27:32.814908 | 2017-04-01T05:01:24 | 2017-04-01T05:01:24 | 77,956,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | import numpy as np
from draw import *
# total number of observations
OBS_SIZE = 20
# length of the field i.e. LxL field
N_BATCH = 50
L = 8
# ------------------------------------------------------------------ helpers
# turn a coordinate to a pair of numpy objects
def vectorize(coords):
retX, retY = np.zeros([L]), ... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
0c3826235cc92f3219c43f5b9bce8807ac403ebb | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Dsz/PyScripts/Lib/dsz/mca/status/cmd/handles/types.py | 6a1f4c77e8aa675f29091252ea44fdbd6e6ae2b8 | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 1,171 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: types.py
from types import *
MSG_KEY_PARAMS_QUERY = 65536
MSG_KEY_PARAMS_QUERY_PROCESS_ID = 65537
MSG_KEY_PARAMS_Q... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
83c0df6ea2b7386857e988a1a82a8102befb33e4 | 2ce3ef971a6d3e14db6615aa4da747474d87cc5d | /练习/python框架/flask_test/flask_demo/flask_test/flask_sql_test.py | fe3af6542c189d8a31672803529966213bef0dfc | [] | no_license | JarvanIV4/pytest_hogwarts | 40604245807a4da5dbec2cb189b57d5f76f5ede3 | 37d4bae23c030480620897583f9f5dd69463a60c | refs/heads/master | 2023-01-07T09:56:33.472233 | 2020-11-10T15:06:13 | 2020-11-10T15:06:13 | 304,325,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | # -*- coding: utf-8 -*-
# @Time : 2020/02/16
# @Author : Wind
from 练习.python框架.flask_test.flask_demo.flask_SQLalchemy_demo import *
class FlaskSQL:
def __init__(self):
db.drop_all() # 删除表
db.create_all() # 创建表
global role, user
role = Role(name='admin')
db.session.add(rol... | [
"2268035948@qq.com"
] | 2268035948@qq.com |
9885a2d5509ef32b3fa2d55fe3d536064ae6af56 | 7acb2024b2315c08194eb377e7fba9ad358d3192 | /logic_normal.py | 963cd0301f8e08b8908fa7e926d665629abb2e3b | [] | no_license | wnd2da/webtoon_daum | 8aab816636c1c50d624059b8e3bc5808994bd7a2 | 6e1dfa383af9441d6981c060dc1adfb2694f7de2 | refs/heads/master | 2022-10-03T23:17:32.417497 | 2020-06-11T16:52:24 | 2020-06-11T16:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,407 | py | # -*- coding: utf-8 -*-
#########################################################
# python
import os
import datetime
import traceback
import urllib
from datetime import datetime
# third-party
from sqlalchemy import desc
from sqlalchemy import or_, and_, func, not_
import requests
from lxml import html
... | [
"cybersol@naver.com"
] | cybersol@naver.com |
64a9454f5620d0735efc3b811ed47a1cceb58908 | fc1c1e88a191b47f745625688d33555901fd8e9a | /meraki_sdk/models/update_device_switch_port_model.py | 706fb93e1ed903692e8113465e3b2e2c937d86e3 | [
"MIT",
"Python-2.0"
] | permissive | RaulCatalano/meraki-python-sdk | 9161673cfd715d147e0a6ddb556d9c9913e06580 | 9894089eb013318243ae48869cc5130eb37f80c0 | refs/heads/master | 2022-04-02T08:36:03.907147 | 2020-02-03T19:24:04 | 2020-02-03T19:24:04 | 416,889,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,244 | py | # -*- coding: utf-8 -*-
"""
meraki_sdk
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class UpdateDeviceSwitchPortModel(object):
"""Implementation of the 'updateDeviceSwitchPort' model.
TODO: type model description here.
Attribute... | [
"api-pm@meraki.com"
] | api-pm@meraki.com |
5c1ab956338dcb9308279fad56bf1b39cb5b5de7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2710/60727/295696.py | 6fe2ad78e9c68b5c106f342fd469c6299ebeedfb | [] | 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 | 442 | py | arr = list(map(int, input().split()))
n, q = arr[0], arr[1]
arr, res = [], []
for i in range(0, q):
arr.append(input().split())
for i in range(0, q):
t = arr[i]
if t[0] == 'M':
res.append((int(t[1]), int(t[2])))
elif t[0] == 'D':
ans = n + 1
for item in res:
if item[0... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0429d5df3473aeb93f6ac3d93454a2eb5ff3e162 | 3fac68967637842325cc8242caa7910fc22e759d | /challenges/gcd.py | cec9be158405f150d5cde1d724e44e0e0bd97302 | [] | no_license | fox016/learnpython | 31c947274e025488579f226f7931382aebf9a9d4 | cd1f8c4d31094ad04932a77ea0e0df88788f5328 | refs/heads/master | 2021-01-11T21:07:54.785903 | 2017-04-13T17:18:33 | 2017-04-13T17:18:33 | 79,253,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | print(gcd(108,48))
print(gcd(9823759873245674572938,23897856))
print(gcd(52129982331677168,3258123895729823))
print(gcd(3742284139568368,3274498622122322))
print(gcd(47156645998656522469911,9100405368161785038053))
print(gcd(1617470750160875729262056498097501089239401390,312143478101221631962853008404780911958480970))
... | [
"fox016@gmail.com"
] | fox016@gmail.com |
0736cc76a26fb7b580d93517031eadc500ddf4bf | f662a786ca7bcedaec3ff5d488ce28f5c455da93 | /source/conf.py | 3280c79eb86f523eaf6210317dfe0d7982b5328a | [
"MIT"
] | permissive | AppImageX/standards | e4a058df188af948de8025e962cdd0d8c9f967e3 | cf25225a246b00ab2924e90b8bb464e2be270049 | refs/heads/master | 2023-02-10T03:03:14.753311 | 2020-12-27T23:33:12 | 2020-12-28T19:07:54 | 324,832,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"theassassin@assassinate-you.net"
] | theassassin@assassinate-you.net |
c1278e40a748f85fd99e5abac06ec8c0a87ec483 | 09a8648805c390594be0908da3188f287dedc471 | /src/practices/github/handle_beautifulsoup_1.py | 990c8181860ac65fa8e346a7de8af0c82f4db7d2 | [
"Apache-2.0"
] | permissive | lgonline/mp | 9d17abbb41ff42fbaf1666059504e2377485c6a9 | 21ef1bfb2feacf6a7abda858c083e0c49878f889 | refs/heads/master | 2020-12-29T02:36:32.332387 | 2019-11-16T03:02:02 | 2019-11-16T03:02:02 | 44,308,720 | 1 | 1 | null | 2015-10-20T16:24:08 | 2015-10-15T09:50:46 | Python | UTF-8 | Python | false | false | 1,186 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/6/7 19:10
# @Author : liugang9
# @Email : mlcc330@hotmail.com
# @File : handle_beautifulsoup_1.py
# @Software: PyCharm
# @license: Apache Licence
# @contact: 3323202070@qq.com
"""
"""
from urllib.request import urlopen
from bs4 import BeautifulSou... | [
"lg_online@hotmail.com"
] | lg_online@hotmail.com |
20cd6063dfa85464b0fe6949728b420cf2de23ff | 55c75df9dc3a5479a7524c8e2f6546e113d2d89c | /src/gamesbyexample/magichexagon.py | 39dbfaacc9376ed100c74e20234ba604b1980a43 | [
"MIT"
] | permissive | spp2/PythonStdioGames | 4b9bef97fef7dc84fc4c09b2585298cdab865c6c | 7edc6a07ef816a44579800e773f30217541971fa | refs/heads/master | 2022-10-04T02:14:50.789665 | 2020-06-02T16:03:35 | 2020-06-02T16:03:35 | 268,824,285 | 0 | 0 | MIT | 2020-06-02T15:18:41 | 2020-06-02T14:31:53 | Python | UTF-8 | Python | false | false | 6,503 | py | """Magic Hexagon, by Al Sweigart al@inventwithpython.com
Place numbers in a hexagon so each row adds up to 38.
More info at https://en.wikipedia.org/wiki/Magic_hexagon
More info at https://www.youtube.com/watch?v=ZkVSRwFWjy0
This and other games are available at https://nostarch.com/XX
Tags: large, game, puzzle game, b... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
15d5c55905fb974d4fd57d95c5db4742865c48fe | 75fa11b13ddab8fd987428376f5d9c42dff0ba44 | /metadata-ingestion/src/datahub/__init__.py | 3ac3efefc14f064f1ce41e1262d80b9e73fd2735 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | RyanHolstien/datahub | 163d0ff6b4636919ed223ee63a27cba6db2d0156 | 8cf299aeb43fa95afb22fefbc7728117c727f0b3 | refs/heads/master | 2023-09-04T10:59:12.931758 | 2023-08-21T18:33:10 | 2023-08-21T18:33:10 | 246,685,891 | 0 | 0 | Apache-2.0 | 2021-02-16T23:48:05 | 2020-03-11T21:43:58 | TypeScript | UTF-8 | Python | false | false | 808 | py | import sys
import warnings
# Published at https://pypi.org/project/acryl-datahub/.
__package_name__ = "acryl-datahub"
__version__ = "0.0.0.dev0"
def is_dev_mode() -> bool:
return __version__.endswith("dev0")
def nice_version_name() -> str:
if is_dev_mode():
return "unavailable (installed in develop... | [
"noreply@github.com"
] | RyanHolstien.noreply@github.com |
d29d7ead3beeb69f4e7257874393395a45b514f2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/335/usersdata/281/101497/submittedfiles/matriz1.py | d5be8f9b97f00c041645b6fbf32654da27cf0484 | [] | 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 | 861 | py | # -*- coding: utf-8 -*-
n=int(input('Digite o número de linhas: '))
m=int(input('Digite o número de colunas: '))
matriz=[]
for i in range(0,n,1):
linha=[]
for j in range(0,m,1):
linha.append(int(input('Digite um binario[0,1]: ')))
matriz.append(linha)
matrizX=[]
for i in range (0,n,1):
for j in ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
524af3a185a13244b19e8fc20ee82ba5d0d201c2 | 587ca84f28c54892ca1fed2ef14774568c20076d | /2013/tp2/tp2ej8.py | ea28a71f4cd4dfd3181ac85c14ebd9ef791dd802 | [] | no_license | guillox/Practica_python | 4c6132a22387db8017d37347217e11091e05b5c9 | a446c944ea81668393597ddf478dafb53d942cb1 | refs/heads/master | 2021-01-10T20:01:12.653714 | 2015-04-11T20:56:05 | 2015-04-11T20:56:05 | 33,785,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | """Módulos
8.- Escriba cada uno de los incisos del ejercicio 7.- (a, b y c) en módulos diferentes
(conjuntos.py, cola.py, parámetros_variables.py), impórtelos en un nuevo modulo
(principal.py) y utilice sus funciones en éste último""" | [
"guillox22@gmail.com"
] | guillox22@gmail.com |
b56ee924a022696c1a076479da11f09329caf595 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/tests/modeltests/model_package/__init__.py | c9faaf2ceb4c8ea96b57c3eb766d8bc07ff93b3f | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/tests/modeltests/model_package/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
a42072f98db7c8b0cc32e382058507c2e0302a68 | a303be0a547d717b0deb19b5bdcc75010e131b51 | /Contests/College Contests/Hacktivate/p5.py | 2f92ca59a3663d4202e3459033685ae3a656031b | [] | no_license | harrypotter0/competitive-programming | ff883c4dc5aa8d72f1af589bb654a422e32c8a38 | 82a8497e69212dc62e75af74b0d5a3b390b8aca2 | refs/heads/master | 2023-03-23T07:07:14.295053 | 2021-03-17T01:24:45 | 2021-03-17T01:24:45 | 70,964,689 | 16 | 9 | null | 2021-03-17T01:24:49 | 2016-10-15T03:52:53 | Python | UTF-8 | Python | false | false | 983 | py | import math
def readInts():
return list(map(int, raw_input().strip().split()))
def readInt():
return int(raw_input())
def readIntsindex0():
return list(map(lambda x: int(x) - 1, input().split()))
def readStrs():
return raw_input().split()
def readStr():
return raw_input()
a = [[1 for i in xrange(n+... | [
"9654263057akashkandpal@gmail.com"
] | 9654263057akashkandpal@gmail.com |
fbffdfa4fe0e2cff11731aa4d0a1893418e00bf8 | 70450f0c551adf47b450468e424f4f90bebfb58d | /dataclasses/resources/test/loads.py | 464d663ceca5a9adb63d4de6367de0d4edabe395 | [
"MIT"
] | permissive | hschwane/offline_production | ebd878c5ac45221b0631a78d9e996dea3909bacb | e14a6493782f613b8bbe64217559765d5213dc1e | refs/heads/master | 2023-03-23T11:22:43.118222 | 2021-03-16T13:11:22 | 2021-03-16T13:11:22 | 280,381,714 | 0 | 0 | MIT | 2020-07-17T09:20:29 | 2020-07-17T09:20:29 | null | UTF-8 | Python | false | false | 67 | py | #!/usr/bin/env python
#
from icecube import icetray, dataclasses
| [
"aolivas@umd.edu"
] | aolivas@umd.edu |
402302a71ae5831e01eb2d136420e4d4a3044e79 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/149/50708/submittedfiles/mediaLista.py | e1979fe1810c9462bf8a0c5faee5e239056bf973 | [] | 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 | 1,050 | py | # -*- coding: utf-8 -*-
from __future__ import division
n1=int(input('digite o n1:'))
n2=int(input('digite o n2:'))
n3=int(input('digite o n3:'))
n4=int(input('digite o n4:'))
n5=int(input('digite o n5:'))
n6=int(input('digite o n6:'))
s1=int(input('digite o s1:'))
s2=int(input('digite o s2:'))
s3=int(input('digite o s... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d9747b4b212e3d0982c69a484b3317dda82cbe5a | 43598dd1e251b1733ed16981a148834bd9faca9b | /draw_util.py | 6fec3134df7e94dd8e44503a6b59f2ab3d985313 | [] | no_license | SamL98/PhysicsEngine | 86e6f38a34d7261c13cc76e78f2702e72c4c0c3b | 440e9042cc999277bbc1961cbb4b8f2300f28fde | refs/heads/master | 2020-03-23T18:51:45.246905 | 2018-07-22T22:50:14 | 2018-07-22T22:50:14 | 141,936,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | import numpy as np
"""
Clear the given canvas
:param canvas: numpy array to clear (set to 1)
"""
def clear(canvas):
canvas[0:canvas.shape[0], 0:canvas.shape[1]] = 1
"""
Calculate the Euclidean distance between two points
:param p1: one point
:param p2: the other point
"""
def dist(p1, p2):
return np.sqrt((p1[0]-p... | [
"lerner98@gmail.com"
] | lerner98@gmail.com |
e315107d95eb655e7fd621bbcc8ec9c87809941f | 48f73b5b78da81c388d76d685ec47bb6387eefdd | /scrapeHackerrankCode/codes/itertools-permutations.py | 4caa82914dda972ada250151c6f329eb7f86fb9e | [] | no_license | abidkhan484/hacerrankScraping | ad0ceda6c86d321d98768b169d63ea1ee7ccd861 | 487bbf115117bd5c293298e77f15ae810a50b82d | refs/heads/master | 2021-09-18T19:27:52.173164 | 2018-07-18T12:12:51 | 2018-07-18T12:12:51 | 111,005,462 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | # Accepted
# Python 3
from itertools import permutations
a, d = input().split()
d = int(d)
l = list(permutations(a, d))
le = len(l)
l.sort()
for i in range(le):
for j in range(d):
print(l[i][j], end='')
print()
| [
"abidkhan484@gmail.com"
] | abidkhan484@gmail.com |
b7304124b253d7826e8d3a6f2f00285712b9fa5a | 7ac271f357f4c8f0c23c697b11966259f836880f | /app/data/dvdrental/language.py | 5b8fd9d6e1d6871ba70b081f79a44f05a68f7c4c | [] | no_license | cheng93/PythonWeb | 74a58eadee4ee7d2872a582a907bbf47630df371 | d5ced8dee1d5ba31778125c5e67169c92acf26a0 | refs/heads/develop | 2021-01-19T23:59:11.315871 | 2018-03-04T19:26:18 | 2018-03-04T19:26:18 | 89,063,916 | 0 | 0 | null | 2018-03-04T19:26:19 | 2017-04-22T11:09:14 | Python | UTF-8 | Python | false | false | 405 | py | from app.data.dvdrental import Base
from sqlalchemy import Column, DateTime, Integer, String, text
class Language(Base):
__tablename__ = 'language'
language_id = Column(Integer, primary_key=True, server_default=text("nextval('language_language_id_seq'::regclass)"))
name = Column(String(20), nullable=Fal... | [
"derek.c@hotmail.co.uk"
] | derek.c@hotmail.co.uk |
325e68bb2e595b68fa254d9bcb3c01d2c7a19026 | 8a0bbb159a3d6a259a83224b8addc83c9da1986e | /lists/tests.py | fa5b816ece674b42b152c08c66577ea5f3886bc9 | [] | no_license | guinslym/tdd-django-tutorial | 5e976bcfe3a670b0b75c64646881c5a98214848e | 436d036e01527788e3f7b055f84ed159c822e8b4 | refs/heads/master | 2021-01-01T04:50:07.504959 | 2016-05-19T21:31:03 | 2016-05-19T21:31:03 | 59,229,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | from django.test import TestCase
from django.http import HttpRequest
from django.template.loader import render_to_string
from lists.views import home_page
# Create your tests here.
class HomePageViewTest(TestCase):
def test_home_page_returns_correct_html(self):
request = HttpRequest()
response = h... | [
"guinslym@users.noreply.github.com"
] | guinslym@users.noreply.github.com |
4345a1edf1a7d7ec88ebe84116eca2ce54549f00 | 6d6d012b940718afda0e16e3d993d4d8a25793c0 | /applications/suscribers/views.py | 8781a40a6e5c2b2d3fcab0b21217d3ffd61597be | [] | no_license | neunapp/ajaxdj | e66bad9ffd47664e6c0342439b363f97907f8465 | 7a0a29d61ebe0bf5496b235165aaa3d504320978 | refs/heads/master | 2022-09-10T21:26:28.370316 | 2020-06-02T18:05:46 | 2020-06-02T18:05:46 | 268,872,703 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | #
from django.shortcuts import render
from django.http import JsonResponse
from django.views.generic import CreateView
from .models import Suscriptor
class SuscriptorCreateView(CreateView):
template_name = "add.html"
model = Suscriptor
fields = ('__all__')
success_url = '.'
def get_context_dat... | [
"csantacruz1127@gmail.com"
] | csantacruz1127@gmail.com |
7c068027cc97b79c1cc967c92cc93dd96840b64e | 6fa082e3d17a7899c9d27e7da1a8fabc04c7a3d5 | /tests/test_pkg.py | 2f2ef5665dce458d025dd9c35be502d00ce035b1 | [] | no_license | agx/whatmaps | 06ecd79e4d6090794b6c7d9bce6c9efaa16d12f9 | e28c99d3fc7c391de039321e87b5ce12eae38572 | refs/heads/master | 2023-01-09T12:52:38.546656 | 2022-12-30T12:09:19 | 2022-12-30T12:09:55 | 18,165,729 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,860 | py | # vim: set fileencoding=utf-8 :
# (C) 2014 Guido Günther <agx@sigxcpu.org>
# 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 of the License, or
# (at your option) any late... | [
"agx@sigxcpu.org"
] | agx@sigxcpu.org |
68236e56506ea6cc90c7d5ffe069d839068af442 | 0524f83be13e4b6cafd304acb002eca7a5d3e0f0 | /Matplotlib intro/Intro/save_image.py | 9be325c4df724ca1d6ac114720f5591d40271db3 | [] | no_license | LesediSekakatlela/python_projects | 25064f7a7cabd54f6d04aba31cdace6e8af06d63 | 6cca3cbddefa006a17f95486dbaa8a0b7de7fea5 | refs/heads/main | 2023-06-06T23:37:59.385280 | 2021-06-20T16:46:11 | 2021-06-20T16:46:11 | 371,608,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0,10,100)
y = x
plt.plot(x, y, label='linear')
plt.legend()
plt.savefig("Figure_1.png")
plt.show() | [
"leseditumelo32@gmail.com"
] | leseditumelo32@gmail.com |
39caf781a2fb28054c728bd71be1b09a045da442 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ggH_SF/Full2017_HTXS_Stage1p2_v7/plot_blind.py | 3b79748cb261b57889418880386c716ea5d393b4 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 3,342 | py | # plot configuration
# groupPlot = {}
#
# Groups of samples to improve the plots.
# If not defined, normal plots is used
#
groupPlot['top'] = {
'nameHR' : 'tW and t#bar{t}',
'isSignal' : 0,
'color': 400, # kYellow
'samples' : ['top']
}
groupPlot['WW'] = {
'nameHR' : 'WW',
'isSignal'... | [
"nicolo.trevisani@cern.ch"
] | nicolo.trevisani@cern.ch |
9085c6988eab04035dae166b01927ae787a7b454 | b76daa106277ef2f7ab7f6e3278546c6da0bb967 | /base/sys_argv/code/pathdir.py | dd170c13326a1de5d44bc7bd2c02d908e1a062ac | [] | no_license | DyLanCao/ipython | d071b4659999062106438ec077d27754a711ef92 | 746e070d193de04002d277e5170ddf8b5d9d4d44 | refs/heads/master | 2021-06-12T19:31:44.325346 | 2021-02-20T03:17:58 | 2021-02-20T03:17:58 | 142,657,284 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import sys,os
try:
import parameters,helpAbout,autoUpdate
from Combobox import ComboBox
except ImportError:
from COMTool import parameters,helpAbout,autoUpdate
from COMTool.Combobox import ComboBox
from PyQt5.QtGui import QIcon,QFont,QTextCursor,QPixmap
from PyQt5.QtWidgets import (QApplication, QWidge... | [
"caoyin2011@163.com"
] | caoyin2011@163.com |
58e33bc192fdc4c023cd05a9cc2cfed05f2900d9 | e055690de408c8e0a6ca97b43912b1482528b98c | /src/features.py | c97f0c9ed48cdb2b95deea0e4c84f27eee76c013 | [] | no_license | webclinic017/Dissertation-1 | 88155419cfa6b9d8a1834fadecdadda5c22498db | 1e118c0697f0785dc2db30e46c26af154b269813 | refs/heads/master | 2021-09-08T06:37:21.633294 | 2016-11-29T11:07:02 | 2016-11-29T11:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Project: Dissertation
# File name: features
# Author: Mark Wang
# Date: 13/6/2016
from StockInference.constant import Constants
const = Constants()
features = {
const.PRICE_TYPE: const.STOCK_ADJUSTED_CLOSED,
const.STOCK_PRICE: {const.DATA_PERIOD: 5},
cons... | [
"wangyouan0629@hotmail.com"
] | wangyouan0629@hotmail.com |
cdd0665697b42f4cc95cda7d1404b2f0b64c2720 | 6a185868a6a41384f44334b23fea9079a2a35ded | /Algorithm/04_선형리스트-통합.py | 02694336285a5e96ba66bece4e669bab44d1cfb7 | [] | no_license | kimhyeongju/coding_practice | ec096e574877a4d21babdc0162d96a9c75ee5686 | 599b3ecf3100622e165abfc54c0ad90a270ccb51 | refs/heads/master | 2023-03-25T21:34:34.893277 | 2021-03-19T17:49:54 | 2021-03-19T17:49:54 | 296,621,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # 함수 선언부, 클래스 선언부
def insert_data(position, friend):
katok.append(None)
kLen = len(katok)
for i in range(kLen-1, position, -1):
katok[i] = katok[i-1]
katok[i-1] = None
katok[position] = friend
def delete_data(position):
kLen = len(katok)
katok[position] = None
for i in ran... | [
"hengzhu1994@gmail.com"
] | hengzhu1994@gmail.com |
a0548ac68468ff78b08b70032648b02eb729069b | 6c2865fd7d6a0fb2552826e7cd77ae863ef5bc4a | /mwlinks/libs/WikiExtractor.py | 5802ba96a761ebaa29bac11756c3088287ed1a44 | [
"MIT"
] | permissive | hunterhector/python-mwlinks | 0df4440b21ddaf9b1ab3866806155bc2d359b95a | 6f63d56e79313b8a3c5161a0197a260442829518 | refs/heads/master | 2021-01-20T03:13:58.751091 | 2019-09-09T21:13:07 | 2019-09-09T21:13:07 | 89,511,539 | 0 | 0 | null | 2017-04-26T18:01:42 | 2017-04-26T18:01:42 | null | UTF-8 | Python | false | false | 116,538 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# Version: 2.75 (March 4, 2017)
# Author: Giuseppe Attardi (attardi@di.unipi.it), University of Pisa
#
# Contributors:
# Antonio Fuschetto (fuschett@aol.com)
# Leonardo Souza (lsouza@amt... | [
"hunterhector@gmail.com"
] | hunterhector@gmail.com |
99c97cdca3213bb11daae25a275b3ee3295970fb | 91ff566b975b7c0a21d280aa192953622600afae | /deploy_flask/lib/python3.6/sre_compile.py | bf7daffa83bae38ede58e7a155ec050c16368dab | [] | no_license | mattg317/Deploying_with_Flask | 93e1f19f093e02b886f02e01c30075fbbbafb6e1 | 881e694f74bd2f170ed8f638ffb97811d19e3969 | refs/heads/master | 2021-09-04T12:50:36.147008 | 2018-01-18T21:41:18 | 2018-01-18T21:41:18 | 107,602,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | /Users/matthewgiordanella/anaconda/lib/python3.6/sre_compile.py | [
"mattg317@gmail.com"
] | mattg317@gmail.com |
824ca23d6252d8aaf3b2c8307a5abfaebb3ea24f | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/streamtube/hoverlabel/font/_family.py | 335e3ef0531d4b5f69975fdfd5c2903dd7c3d021 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 531 | py | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='family',
parent_name='streamtube.hoverlabel.font',
**kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=plotl... | [
"noreply@github.com"
] | miladrux.noreply@github.com |
fced2509d1f5b132439534f2f9d67b73070b25b2 | 399fb29d8525b6d7ac298783675d0d56e37bcac7 | /python/ray/autoscaler/aws/tests/download_ssh_key.py | b3eb8b0a3c313b5155af259b1f0175c4494d6a84 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | AmeerHajAli/ray | 40c9aebe0da59e9bcd70303d981bfe6b65007991 | 1ffd032f5f793d8817217a040f0f636f9372cd56 | refs/heads/master | 2023-03-28T10:50:09.186561 | 2023-03-24T23:08:08 | 2023-03-24T23:08:08 | 175,129,851 | 1 | 0 | Apache-2.0 | 2019-03-12T03:39:16 | 2019-03-12T03:39:14 | null | UTF-8 | Python | false | false | 512 | py | import os
import boto3
# Create a Boto3 client to interact with S3
s3_client = boto3.client("s3", region_name="us-west-2")
# Set the name of the S3 bucket and the key to download
bucket_name = "oss-release-test-ssh-keys"
key_name = "ray-autoscaler_59_us-west-2.pem"
# Download the key from the S3 bucket to a local f... | [
"noreply@github.com"
] | AmeerHajAli.noreply@github.com |
ad0feb58c540da01689ddae3f367adda20b6db35 | 99589f73e394567a3656ccf287003ae89ad5c83e | /MDustbinButton.py | e0a146c06f2553d193119d1a96c0aa258f164385 | [] | no_license | YanruMu-sunding/pyqtwidget | f0c9f33a7d040ace979f9b050ebde8a96fceae2e | 85aaac30e7e63a9494e8bc022c49bf5a6a01e251 | refs/heads/master | 2022-03-01T11:06:00.386250 | 2015-01-23T09:42:21 | 2015-01-23T09:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | # -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2013.09
# Email : muyanru345@163.com
###################################################################
try:
from PySide.QtCore import *
from PySide.QtGui import *
except ImportError:
i... | [
"muyanru345@163.com"
] | muyanru345@163.com |
b32bbeb3daea896285047e64886179a4f2fef98c | 702b8b109bf4b2235de7442a46fbf22288a5ff24 | /forums/Algorithms.py | 49fd08441901f3e4daa6dd53394388e1f289ecc2 | [] | no_license | jakhar1996/neuron-task | 3eac554088c6b5ae81c9c9b532e8537086875347 | 5dd62fcb03acd81a31c73ad2354dccbfecfe7b4c | refs/heads/master | 2021-01-19T18:53:43.901904 | 2016-10-10T20:11:44 | 2016-10-10T20:11:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | '''
Algorithms for calculating score of Posts, Comments and Voting
reference :
1. https://github.com/reddit/reddit/blob/master/r2/r2/lib/db/_sorts.pyx
2. https://medium.com/hacking-and-gonzo/how-reddit-ranking-algorithms-work-ef111e33d0d9
'''
from math import *
import datetime
epoch = datetime.datetime(1970,1,1)
def... | [
"shikhar.chauhan@live.com"
] | shikhar.chauhan@live.com |
8545d13ebaeacd4925ad752290a60f46c5c1659f | c0c536f619292d8cac6bc0d340fa855ce6d21310 | /torch/_inductor/fx_passes/post_grad.py | 2acd2c3e0ba7366f96866a7a5ae485fbbace8a04 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | manuelmusngi/pytorch | 32915e01515f1ba81cdd20340dbae5dbfe6809e6 | bab21d20ebf45a5dc620b48791bb526f664445a5 | refs/heads/main | 2023-07-01T23:21:47.013111 | 2023-06-19T19:34:42 | 2023-06-20T09:24:21 | 339,895,372 | 2 | 0 | NOASSERTION | 2021-02-18T00:46:11 | 2021-02-18T00:46:11 | null | UTF-8 | Python | false | false | 11,764 | py | import functools
import itertools
import logging
import operator
import torch
import torch._inductor as inductor
from .. import config, ir, pattern_matcher
from ..lowering import lowerings as L
from ..pattern_matcher import (
_return_true,
Arg,
CallFunction,
filter_nodes,
get_arg_value,
Ignore... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
5eebbda08df3e41b17377b37668d53d24995eef6 | 42a0760a051935b2e765d57c445235221a28f49e | /509_Fibonacci_Number.py | ddfee4f254fd8b67428fa44385ed8f01eb920e51 | [] | no_license | Th3Lourde/l33tcode | 3bea3a3e7c633a2d5a36f7d76d5d776d275d8ee3 | eb6b11f97a022b66716cb3890cc56c58f62e8aa4 | refs/heads/master | 2022-12-22T19:05:04.384645 | 2022-12-18T19:38:46 | 2022-12-18T19:38:46 | 232,450,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py |
class Solution:
def fib_1(self, N):
if N == 0:
return 0
if N == 1 or N == 2:
return 1
elif N >= 2:
return self.fib(N-1) + self.fib(N-2)
def fib(self, N, mem):
if mem[N] != None:
result = mem[N]
elif N == 1 or N == 2:
... | [
"th3sylvia.lourde@gmail.com"
] | th3sylvia.lourde@gmail.com |
be2a3ce025842cdf70bc7ed4d624f599c4bc2b10 | 3a570384a3fa9c4c7979d33b182556e1c637e9eb | /anw/Packages/anw/gui/shipdesignvalue.py | 5941d1747f3f0ddb36cfb27a1a4f3886faa3754a | [] | no_license | colshag/ANW | 56a028af5042db92b5ead641dc542fcb4533344e | 46948d8d18a0639185dd4ffcffde126914991553 | refs/heads/master | 2020-03-27T00:22:49.409109 | 2018-10-27T06:37:04 | 2018-10-27T06:37:04 | 145,618,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,087 | py | # ---------------------------------------------------------------------------
# Cosmica - All rights reserved by NeuroJump Trademark 2018
# shipdesignvalue.py
# Written by Chris Lewis
# ---------------------------------------------------------------------------
# This uses scroll mouse up/down or plus and minus buttons... | [
"colshag@gmail.com"
] | colshag@gmail.com |
c808cacd4d12136e61ae70443e057d83bfff00a2 | ae85cd400fa71296867c9e55297affa2d3679b5d | /hashmaps/count_pairs.py | 975bf328e09c9882d3f5eb6ca6976298bde1852a | [] | no_license | Psycadelik/sifu | a1e751aa4e97cd56431cdf8704304b82943db37c | 72965f694f7a44aa8711d11934b216d5ccf9d280 | refs/heads/master | 2023-04-12T17:07:00.677702 | 2021-05-07T07:30:14 | 2021-05-07T07:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | """
Count of index pairs with equal elements in an array
Given an array of n elements.
The task is to count the total number of indices (i, j) such that arr[i] = arr[j] and i != j
Examples :
Input : arr[] = {1, 1, 2}: -> 1
As arr[0] = arr[1], the pair of indices is (0, 1)
Input : arr[] = {1, 1, 1} -> 3
As arr[0] = ar... | [
"erickmwazonga@gmail.com"
] | erickmwazonga@gmail.com |
f58deb9eda7f55877a7c900911bed9917c40e100 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03945/s876347603.py | 59b6606399e20fd6e84e359c750c5ad89b645501 | [] | 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 | 258 | py | def myAnswer(S:str) -> int:
ans = 0
pre = S[0]
for s in S[1:]:
if (pre != s):
pre = s
ans += 1
return ans
def modelAnswer():
return
def main():
S = input()
print(myAnswer(S))
if __name__ == '__main__':
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c2c901b79b059b6cb996273d372de8316f4ccc9d | 6fe990986efe7f06f8a6eafd01fd4eb042c7f8b3 | /portfolio/urls.py | 0c2f3ffe78cf6dcf42512e15b6327e5e52b8623a | [] | no_license | StillsSma/portfolio | e436c82b2fc5639d38b88375b85e73c40bfd9985 | 856047f9ea38d812dda630815e7a7bf6cf63c798 | refs/heads/master | 2021-01-13T04:12:05.110398 | 2017-04-12T22:26:05 | 2017-04-12T22:26:05 | 77,696,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py |
from django.conf.urls import url
from django.contrib import admin
from app.views import IndexView
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', IndexView.as_view(), name="index_view"),
] + static(settings.STATIC_URL, d... | [
"samdawson301@live.com"
] | samdawson301@live.com |
bb991325cedd1e15fba6feb2e464a75c9a1125ab | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/list_get_element_oob_3-29.py | 3a004c5cabf6adc94926f46ff1b288c44de5a398 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | x:[int] = None
x = []
print($Var[0])
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
8b3c268cb508e5b629740a4b9b56f8e830592352 | 48b79c2d813cc89c227e36b83a5508acdf9657bd | /udemy/ecommerce/cfehome/forms.py | c3565e95ab0f4222b594c4f78ad177017e9035d3 | [] | no_license | felipe-basina/python | b1c8b980ac201241f06e79c0f5f05ee2528b9960 | bb739f9b57b1947010f831826fd7c65b2a3b85cf | refs/heads/master | 2022-09-23T20:59:34.080521 | 2020-12-19T16:37:21 | 2020-12-19T16:37:21 | 101,874,996 | 1 | 0 | null | 2022-09-16T17:42:00 | 2017-08-30T11:49:08 | Python | UTF-8 | Python | false | false | 1,212 | py | from django import forms
from django.contrib.auth import get_user_model
User = get_user_model()
class ContactForm(forms.Form):
fullname = forms.CharField(
widget=forms.TextInput(
attrs={
"class": "form-control",
"id": "form_full_name... | [
"felipe.basina@gmail.com"
] | felipe.basina@gmail.com |
7493e37819689409b4590fc5a592b68f51559ce8 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_each346.py | 52567e9a128698e79a0ca91ffd3ecde84ab173fd | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from xcp2k.inputsection import InputSection
class _each346(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Just_energy = None
self.Powell_opt = None
self.Qs_scf = None
self.Xas_scf = None
self.Md = None
self.Pint = None
self.Metad... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
90888ddfffffef2ccb8da651c3573ecdba4d388a | 93c6cdca36f79e7ccb4e100c048fa4d44ed3d937 | /day06/day06-04.py | f66c94a45471d3bc70c823de6493a93a1b97f9fb | [] | no_license | parkwisdom/Python-Study-step3 | eab66f0afd10ebdaadb167dddec245ab6115d859 | 4c51b6d9959f93e52e8896d9c404c10c64bc8ea8 | refs/heads/master | 2020-04-03T13:51:33.369220 | 2018-10-30T00:55:02 | 2018-10-30T00:55:02 | 155,301,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,988 | py | from tkinter import *
from tkinter.simpledialog import *
from tkinter.filedialog import *
def drawSheet(cList) :
global cellList
if cellList != None :
for row in cellList:
for col in row:
col.destroy()
rowNum = len(cList)
colNum = len(cList[0])
cellList = []
... | [
"43980901+parkwisdom@users.noreply.github.com"
] | 43980901+parkwisdom@users.noreply.github.com |
d6468a91d9c1cd79c7e894a0df202c4743dc1841 | 13edd8f1bc3b86fd881f85fbeafe94811392d7fc | /seventh_module/CRM/38.CRM开发之公户基本管理/luffy_crm/web/views/public_customer.py | 9a98ecccb0e156c8735277ebf26e985092295e90 | [] | no_license | ryan-yang-2049/oldboy_python_study | f4c90c9d8aac499e1d810a797ab368217f664bb1 | 6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f | refs/heads/master | 2022-07-22T23:49:28.520668 | 2019-06-11T13:26:25 | 2019-06-11T13:26:25 | 129,877,980 | 0 | 1 | null | 2022-07-18T17:12:54 | 2018-04-17T09:12:48 | HTML | UTF-8 | Python | false | false | 712 | py | # -*- coding: utf-8 -*-
"""
__title__ = 'public_customer.py'
__author__ = 'yangyang'
__mtime__ = '2019-02-21'
"""
from stark.service.v1 import StarkHandler,StarkModelForm,get_choice_text,get_m2m_text
from web import models
class PublicCustomerModelForm(StarkModelForm):
class Meta:
model =models.Customer
exclude =... | [
"11066986@qq.com"
] | 11066986@qq.com |
5ac4b682d2dfdc3e080813ab4a70bff3d7d7351e | 7933d55de7e2d3a9e78a372fa76f064f5ed5eb6f | /maths/questions/antiderivative.py | 56e2c6794eb07b71afc2e8541f40caf39c5e0963 | [] | no_license | o2edu/MathsExams | 4921f6683e1d6d96aa834d5b01f30bd66522887d | 8e2c0aeba6bbad52103c420747ead1dad6380408 | refs/heads/master | 2021-05-29T17:42:32.442055 | 2014-05-31T10:18:12 | 2014-05-31T10:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | import sympy
import random
from .. import all_functions, not_named_yet
from ..latex import solutions
from ..symbols import x0
from . import relationships
@relationships.root
class Antiderivative(relationships.QuestionPart):
"""
Question description
====================
Take a simple expression and fi... | [
"ben.lucato@gmail.com"
] | ben.lucato@gmail.com |
c75c91792bd3cf62f44b90570699313af9f3e2aa | 79e45a6e4846927da432087aba845036b11c5622 | /UAT/var/ARCHIVE/NZDJPYdailyOHLC.py | a06abae1818e84fd8456ff3e4968a135362f0569 | [] | no_license | mjserpico/Scarlett-Trading | cba2bcfaacf886b9d851d978683b4ce641c8f6ad | 9778717393dbb0818ee026356996d1806345a6c2 | refs/heads/master | 2020-03-21T21:39:51.108503 | 2019-05-09T02:06:26 | 2019-05-09T02:06:26 | 139,076,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,394 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 08 09:16:43 2017
@author: Michael
"""
import mysql.connector
from ib.opt import Connection, message
from ib.ext.Contract import Contract
import ib
import time
import logging
import datetime
import datalink #universal logins for environment
Flag = 0
logging.basicConfig(f... | [
"mjserpico@gmail.com"
] | mjserpico@gmail.com |
c35c68e7a7faa7dfa3b76900fb3308daf37711fe | 945b3c14b5a58f8d98955cdf27aef9469e21523c | /flod_booking/alembic/versions/20140307-1414-483e5e40b48d_book_131_noark_5_documents_will_.py | 6c307e7ab2a2eb9984925dcd7e32e36ce21794e4 | [
"BSD-2-Clause-Views"
] | permissive | Trondheim-kommune/Bookingbasen | 34e595e9c57ea6428406b2806559aab17e9a3031 | 58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6 | refs/heads/master | 2022-11-29T00:20:18.681549 | 2017-05-29T19:33:43 | 2017-05-29T19:33:43 | 49,863,780 | 1 | 1 | NOASSERTION | 2022-11-22T00:27:34 | 2016-01-18T08:47:46 | JavaScript | UTF-8 | Python | false | false | 1,581 | py | # -*- coding: utf-8 -*-
"""BOOK-131 Noark 5 documents will temporarily be saved in flod (the integration point, FeSak, is not ready to receive them)
Revision ID: 483e5e40b48d
Revises: 47d9ec0a7bc5
Create Date: 2014-03-07 14:14:59.182049
"""
# revision identifiers, used by Alembic.
revision = '483e5e40b48d'
down_revi... | [
"teeejay@gmail.com"
] | teeejay@gmail.com |
726f87be962da3929f2f16d4d4ab5bded3efb223 | 6a5a16dc64262c0c3aa4732253d804de105a60b2 | /2.Replacing values in a DataFrame/Replace single values II.py | 58160600818e3b9518971f909fa09fa548aed606 | [] | no_license | Mat4wrk/Writing-Efficient-Code-with-pandas-Datacamp | 425c574053f5777098c7ef1ebedc4ede6500860a | 11ee5f5f2dae180a51fe003a52aaed22df8b5835 | refs/heads/main | 2023-03-12T01:02:09.787179 | 2021-02-25T16:39:59 | 2021-02-25T16:39:59 | 342,286,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | # Replace the number rank by a string
names['Rank'].replace({1: 'FIRST', 2: 'SECOND', 3: 'THIRD'}, inplace=True)
print(names.head())
| [
"noreply@github.com"
] | Mat4wrk.noreply@github.com |
c1b0703067199a1d0d8be39d0e2e1cab53696640 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_136/ch36_2020_10_02_01_35_54_347944.py | 7e2ceca48b0f5b0f14629fb376f033a7433bfd56 | [] | 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 | 237 | py | def farotial(n):
i=0
diminuir= 1
outra= n
multiplicador= 1
while i<n-1:
outra-= diminuir
#print (outra)
multiplicador*= outra
i+= 1
resultado= multiplicador * n
return resultado | [
"you@example.com"
] | you@example.com |
f69e31e1134db42b4aaddf609d3180af08765c3e | 8baa00a8c04f64e983532fa4a420c68f490bdaa8 | /build/tiago_gazebo/catkin_generated/pkg.installspace.context.pc.py | 7a21807e7abb1a71cee3116b16c11845a31ea160 | [] | no_license | samuel-cavalcanti/TIAGo | e52c778f40ba8e03af21ba275b45b7faac5625b3 | 575533f713338b28ee5709279a874c9e374d77bd | refs/heads/master | 2021-04-06T01:32:09.090002 | 2018-03-10T23:51:45 | 2018-03-10T23:51:45 | 124,707,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "tiago_gazebo"
PROJECT_SPACE_DIR = "/h... | [
"scavalcanti111@gmail.com"
] | scavalcanti111@gmail.com |
bae83ea1902b2ad2dd0cc9983d69a229e3e4b6b5 | 5982a9c9c9cb682ec9732f9eeb438b62c61f2e99 | /Problem_165/learning_solution.py | 7fec0e3d63d4bdb759b81fe243085cecfadd800a | [] | no_license | chenshanghao/LeetCode_learning | 6fdf98473be8f2240dd86d5586bbd1bbb95d6b0c | acf2395f3b946054009d4543f2a13e83402323d3 | refs/heads/master | 2021-10-23T05:23:01.970535 | 2019-03-15T05:08:54 | 2019-03-15T05:08:54 | 114,688,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | class Solution:
def compareVersion(self, version1, version2):
"""
:type version1: str
:type version2: str
:rtype: int
"""
# Case 1:
# 1='1.0.1' 2='01.01.01'
# 2='1.0.0' 2='1.0'
versions1 = [int(v) for v in version1.split(".")]
versions2... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
bca710e613a599994957f93c89e4a64b8f045faf | 0015f3ac50f20f2f99727948f117d7ec8cd324d5 | /Data_Preprocessing_ABC_24hrs.py | c8087f23b1b604a60e4d271f750e50b68290dcfd | [] | no_license | omkarpandit24/Dial-Plan-Data-Preprocessing-Aricent | 720d49bce31be9bcec7d4a8c62f8fab46c1fe04b | 578f9849027cdaa5f4eff38ff9c06b9f7b837444 | refs/heads/master | 2020-04-01T08:06:30.483536 | 2018-10-15T17:21:57 | 2018-10-15T17:21:57 | 153,017,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,888 | py | #Dial Plan data preprocessing
#24 hours execution
import pandas as pd
import numpy as np
#Import mapping file - mapping between Test_Case_ID and its details about 'Call of Service' and 'Call type'
mapping_data = pd.read_csv("Test_Case_ID_mapping.csv")
#Import 24 Hours working executions data
data = pd.read_csv("INTLE... | [
"you@example.com"
] | you@example.com |
e44953e3dd208113a69c491df8bc862ce7df32a8 | e1efc8e0b0e4629dea61504fbc816c0527691bd9 | /5.mysql/mysql12-引擎.py | 82a3eab1efb867d286da3c941f8abdf243a5f941 | [] | no_license | xiongmengmeng/xmind-technology | 2bb67a0bf92cfd660cac01f8ab3a2454423ccba5 | e2fdb6987ef805a65f0a4feb52d84383853f4b77 | refs/heads/main | 2023-07-31T07:10:29.868120 | 2021-09-11T08:18:17 | 2021-09-11T08:18:17 | 307,636,242 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)
import xmind
from xmind.core.markerref import MarkerId
xmind_name="mysql"
w = xmind.load(os.path.dirname(os.path.abspath(__file__))+"\\"+xmind_name+".xmind")
s2=w.createSheet()
s2.setTitle("引擎")
r2=s2... | [
"xiongmengmeng@qipeipu.com"
] | xiongmengmeng@qipeipu.com |
43ab8afeab93a62e08dddd6878ed50d6a8ff2cc2 | cbcdf195338307b0c9756549a9bffebf3890a657 | /django-stubs/contrib/admin/forms.pyi | 02de4b7a39ef2e839ec31c245909328b97c3f7bd | [
"MIT"
] | permissive | mattbasta/django-stubs | bc482edf5c6cdf33b85005c2638484049c52851b | 8978ad471f2cec0aa74256fe491e2e07887f1006 | refs/heads/master | 2020-04-27T08:38:22.694104 | 2019-03-06T09:05:08 | 2019-03-06T09:05:24 | 174,178,933 | 1 | 0 | MIT | 2019-03-06T16:18:01 | 2019-03-06T16:18:00 | null | UTF-8 | Python | false | false | 891 | pyi | from typing import Any, Dict
from django.contrib.auth.forms import AuthenticationForm, PasswordChangeForm
from django.contrib.auth.models import User
class AdminAuthenticationForm(AuthenticationForm):
auto_id: str
data: Dict[str, str]
empty_permitted: bool
error_class: type
fields: Dict[Any, Any]
... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
06b164dad6993d72808fa25f53b59ffbb58c7abe | 636506c687b4797bfe5daa59b5264615d3bb894b | /backend/task/migrations/0001_initial.py | 34545b851e4d69599c555b830abd90bf0b7735ca | [] | no_license | crowdbotics-apps/pip-25311 | ac5240874c28ab73f28b5f8c5bc273267aaa88e5 | c4155c93f1517039812e794caf744214fdd115e2 | refs/heads/master | 2023-03-29T11:25:20.961098 | 2021-03-27T19:44:45 | 2021-03-27T19:44:45 | 352,161,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,121 | py | # Generated by Django 2.2.19 on 2021-03-27 19:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('task_profile', '0001_initial'),
('task_category', '0001_initial'),
('location', '0001_i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
38c507a83cc96c9dff844075ddef4b8e6e21b84c | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/buyTopStocks_20210202220509.py | ced8f04211038e2e467f10513714dca47a8b61ff | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | # from excel import OpenExcel
from tda import auth, client
import os, sys
currentdir = os.path.dirname(os.path.realpath(__file__))
parentdir = os.path.dirname(currentdir)
sys.path.append(parentdir)
import config
from selenium import webdriver
import json
DRIVER_PATH = "/home/hopper/chromedriver"
driver = webdriver.... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
130ae343f2184e2cf9db80e53c5efbebb5c76066 | 358a60b05a291a4a81c50401be836e6a60687b55 | /Problems/Eigenvalues/main.py | 351a776463b82d906f57d23b325d1260174bfcce | [] | no_license | wangpengda1210/Tetris | dbdd57cb21d40ff625445e5e9f737db51dd57f63 | 7ef5b3fe8f687097d7d3ff7b5c7aa3b77032667b | refs/heads/main | 2023-03-09T16:34:28.367503 | 2021-03-02T03:40:55 | 2021-03-02T05:39:00 | 342,492,432 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import numpy as np
a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(np.linalg.eigvals(np.array([[a, b], [c, d]])))
| [
"515484505@qq.com"
] | 515484505@qq.com |
94259b1c5eb4a5d39212ed10ba34bbd1766befa5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/39/usersdata/72/15179/submittedfiles/dec2bin.py | cd0019461b73084784b76609959e2e414e1c86af | [] | 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 | 150 | py | # -*- coding: utf-8 -*-
n=int(input('digite o numero decimal:'))
i=0
j=1
d=n%2
while n>0:
d=n%2
n=n/2
i=i+d*j
j=j*10
print ('%d' %i) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a1626bb5890cc887220d4ad125773c36dcc3d81a | b3528a3795ce373e27d52362128de3cff6f9969d | /python/orbs/target/password-generator/slices1589360571.263371/success/success_24_0.py | 6911640c338f776987141f438eff887ce2b76e1d | [] | no_license | greenmonn/daily-coding | 43e0f3775678c7d6116df7ba5034ea18489d87c9 | ef6ecc88e6db61e18364eef3ea071c11e1385a99 | refs/heads/master | 2023-01-14T04:59:14.130309 | 2021-02-08T23:32:56 | 2021-02-08T23:32:56 | 157,735,438 | 1 | 1 | null | 2022-12-21T02:13:17 | 2018-11-15T15:47:37 | Python | UTF-8 | Python | false | false | 5,923 | py | #!/usr/bin/env python3
# m4ngl3m3! v0.1.1
# Common password pattern generator using strings list
# Follow (Medium / Twitter): @localh0t
import argparse
import sys
import os
from Mangler import ManglingParameters
from Mangler import Mangler
def build_parser():
"""Add parser arguments and return an instance of A... | [
"greenmon@kaist.ac.kr"
] | greenmon@kaist.ac.kr |
dd0f2fd7d48c85fda6349cac297406d769294ba1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/217/usersdata/355/113233/submittedfiles/av2_p3_m2.py | ddc27da64cc24bc2b5d2c4edd83d7db6abb116a4 | [] | 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 | 503 | py | # -*- coding: utf-8 -*-
import numpy as np
n=int(input("Digite a dimensão da matriz: "))
matriz=np.zeros(n,n)
M0=M1=M2=0
for i in range(0,n,1):
for j in range(0,n,1):
matriz[i,j]=float(input("Digite os elementos da matriz: "))
while j=0:
M0=matriz[i,j]+M0
while j=1:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
56688dead2cbc91be46ea27859c5c5320cca5b5a | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_driver_license_response.py | bbe664d173706914e84e388630af95ba3f524c3d | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 2,933 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class RecognizeDriverLicenseResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.