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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8930c44e0039da2c306c530f3c709e299aa0b7dd | bf0c13d412a7021b299c5e0622e63e72172cf725 | /week1/CodeingBat/warmup1/parrot-trouble.py | 0ecc963069a5c2773b90f490c73d4ecad7ba6f2f | [] | no_license | Alibek120699/BFDjango | 765e734e925041947f607a1d15228309dfa3e647 | eac06c317551c561ffccb44750862972ae11dea3 | refs/heads/master | 2022-12-01T15:49:39.402815 | 2020-04-19T21:09:39 | 2020-04-19T21:09:39 | 233,657,360 | 0 | 0 | null | 2022-11-22T05:49:56 | 2020-01-13T17:50:13 | Python | UTF-8 | Python | false | false | 104 | py | def parrot_trouble(talking, hour):
if talking and (hour<7 or hour>20):
return True
return False
| [
"sayakalibek1@gmail.com"
] | sayakalibek1@gmail.com |
77da3547e5a2b6ef1636d2f2847c5f95bc4b1039 | c5adf2f141a4ab97ba570498cbb27ca96d8f69b5 | /lesson2_3_step6.py | 3a4d8ea5f214baa1ec4dbf223e95d9c2eda8507c | [] | no_license | jigi-33/selenium_course | 5688110285868aba58f885f0c46752732ab8e7b6 | ceda11b438cd4207064fd498b6259abd097dbaf0 | refs/heads/master | 2022-04-16T06:23:13.298254 | 2020-03-31T05:54:02 | 2020-03-31T05:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | from selenium import webdriver
import time
import math
browser = webdriver.Chrome()
link = 'http://suninjuly.github.io/redirect_accept.html'
browser.get(link)
try:
window_before = browser.window_handles[0]
magic_button = browser.find_element_by_css_selector('body > form > div > div > button')
... | [
"pollicier@gmail.com"
] | pollicier@gmail.com |
67cb9704df8ac36b2156b328e0c4bc267a474184 | 174975248ffa04bb0339ace7475a791842e99ffb | /hashtable.py | 912691fc68f668f3ed59514c8d22ff490d452039 | [] | no_license | KONAPAVANKUMAR/code-library | 87a5525dcf71aaba47f233df17ad31227cb3c44b | 6839ef596858515119a3c300b031a107c8d72292 | refs/heads/main | 2023-06-02T09:33:21.382512 | 2021-06-24T09:49:00 | 2021-06-24T09:49:00 | 378,131,322 | 0 | 0 | null | 2021-06-24T09:41:12 | 2021-06-18T11:39:22 | Python | UTF-8 | Python | false | false | 1,644 | py | class HashTable:
def __init__(self):
self.size = 11
self.slots = [None] * self.size
self.data = [None] * self.size
def put(self,key,data):
hashvalue = self.hashfunction(key,len(self.slots))
if self.slots[hashvalue] == None:
self.slots[hashvalue] = key
self.d... | [
"pavankumarkona@PAVANs-MacBook-Pro.local"
] | pavankumarkona@PAVANs-MacBook-Pro.local |
6c1edc27e50f6663f908ae0040be24bb7de76e9f | d1fb8bb087564052674cb33ac6d75daca4ae586a | /US Giants/Binary Search/28. Search a 2D Matrix.py | 29a16ac281b70024b12b35fbcb4cc161d01dc8c5 | [] | no_license | YunsongZhang/lintcode-python | 7db4ca48430a05331e17f4b79d05da585b1611ca | ea6a0ff58170499c76e9569074cb77f6bcef447a | refs/heads/master | 2020-12-24T03:05:43.487532 | 2020-01-30T19:58:37 | 2020-01-30T19:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | class Solution:
"""
@param matrix: matrix, a list of lists of integers
@param target: An integer
@return: a boolean, indicate whether matrix contains target
"""
def searchMatrix(self, matrix, target):
if matrix is None or len(matrix) == 0:
return False
# m: row; n: c... | [
"haixiang6123@gmail.com"
] | haixiang6123@gmail.com |
02543882b4d42b8fb7c7c12dcbecdf787536d4b1 | 91b80ef798cbcdaab7f6ae0be994f5a3b12f1515 | /23_2.py | 13cc14580f3f3ad423258a692f38100bb2e13b73 | [] | no_license | luckkyzhou/leetcode | 13377565a1cc2c7861601ca5d55f6b83c63d490e | 43bcf65d31f1b729ac8ca293635f46ffbe03c80b | refs/heads/master | 2021-06-21T11:26:06.114096 | 2021-03-24T21:06:15 | 2021-03-24T21:06:15 | 205,568,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # -*- coding: utf-8 -*-
import heapq
from typing import List
class ListNode:
def __init__(self, val):
self.val = val
self.next = None
class Solution:
def mergeKLists(self, lists: List[ListNode]) -> ListNode:
res = ListNode(0)
cur = res
head = []
for i in range... | [
"luckky_zhou@163.com"
] | luckky_zhou@163.com |
715cec911def4ec78f37b1709040fedde168e432 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_motd.py | bfd34bd9fa686a8e3299e87cea70f556b4fa76ba | [
"MIT",
"GPL-3.0-or-later"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 4,900 | py | #!/usr/bin/python
# (c) 2018 Piotr Olczak <piotr.olczak@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'st... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
a75aad8f9941ed984d9db36d0eda9d54717c7c84 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2294/60889/294831.py | 2955a23b455dc7e7472694ca05934dff3f8ffca8 | [] | 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 | 1,511 | py | import sys
class Node():
def __init__(self,data,left=0,right=0):
self.data = data
self.left = left
self.right = right
def createTree(preOrder,inOrder):
rootData = preOrder.pop(0)
for i in range(len(inOrder)):
if inOrder[i] == rootData:
break
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
49dd8a605790e3dfd4ac64f288a2f7d4d6ab3214 | 62922a76e40003f3d3a7d02282853f9a2b76c6fc | /NLP/NLTK2.py | 68f77acbc034843328468946ec604058ed2e4319 | [] | no_license | cchangcs/ai_learning_record | a7d0d9c7fcdc1e97d8869aa7e63b535f8cf62df2 | 235a90ff5fe0205334376a927d462b8ae64e4e70 | refs/heads/master | 2020-04-01T16:59:31.203223 | 2018-11-21T11:12:34 | 2018-11-21T11:12:34 | 153,408,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | import nltk
text = open('nothing_gonna_change_my_love_for_you.txt').read()
fdist = nltk.FreqDist(nltk.word_tokenize(text))
# 显示累积频率分布图
fdist.plot(30, cumulative=True) | [
"752340690@qq.com"
] | 752340690@qq.com |
27b952677ae704c688b759b807babd61cc625c7a | 8149d1030b5bc62cc82d5afedbe7486daedbf8c5 | /[294][Flip Game II][Medium].py | 571fd97d0a1d90fa28f9f5114de63adeb630d25b | [] | no_license | guofei9987/leetcode_python | faef17bb59808197e32ed97e92e2222862e2ba8c | 23703a6fb5028d982b3febc630e28f9bb65a82a6 | refs/heads/master | 2020-03-21T18:24:33.014579 | 2019-10-12T13:29:03 | 2019-10-12T13:29:03 | 138,889,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | # https://leetcode.com/problems/flip-game-ii | [
"guofei9987@foxmail.com"
] | guofei9987@foxmail.com |
03a5824a903c77adce16ecc2c03e44fb8a2ce0c6 | 86df529b6f0c90be924d7cc8bb0d92c8b860130a | /specs/simple_spec.py | 20a6ef22a1c0864bf19127fc434275a0c4a045c9 | [] | no_license | OldhamMade/SimpleBDD | c06f12482fbb34143b9139953ebcbd948aab9909 | 3fcc55279a2135342c355fd14d3b1e96fe03805b | refs/heads/master | 2021-01-18T11:30:27.669437 | 2016-05-06T16:11:41 | 2016-05-06T16:11:41 | 58,219,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | try:
import unittest2 as unittest
except ImportError:
import unittest
class SimpleSpec(unittest.TestCase):
# this will be collected by nose
# and will be ignored by pytest
def it_should_pass(self):
assert True
class BasicSpec:
# this will be collected by pytest
# and will be igno... | [
"phillip.oldham@gmail.com"
] | phillip.oldham@gmail.com |
95140908f4be816b799683345ced96c57a02a1b6 | 5b593bc4d1c90ea85eb9912eeb3977269977b46b | /bin/pip3.5 | 32f3be467806c6293a77f85d8a40a5bdf606250d | [] | no_license | monetree/djangular | b17ef12bc08d33676fe0e7fc865e2ba5bc4cc36e | abd5b714ab1276061f3ee7f3685eb0f198b8326b | refs/heads/master | 2020-03-16T07:39:17.557622 | 2018-05-10T09:09:58 | 2018-05-10T09:09:58 | 132,580,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | 5 | #!/home/soubhagya/Desktop/django/angular/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"soubhagyakumar666@gmail.com"
] | soubhagyakumar666@gmail.com |
6ece91bce144a5dbbdb685aeaffe684c84ab9f10 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /code/day04/for循环练习.py | 8ef0a9d2fc560d91f96bf0f043827b88f9d70036 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | # sum_value = 0
# for item in range(1, 101):
# sum_value += item
# print(sum)
#
# for item in range(2, 100, 2):
# sum_value += item
# print(sum_value)
import random
score = 0
# for item in range(3):
# num01 = random.randint(1, 11)
# num02 = random.randint(1, 11)
# print("请输入", str(num01), "+",... | [
"598467866@qq.com"
] | 598467866@qq.com |
9e0b3afc85c7d317960447098fd0ddd36f60a1cd | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/small-scale-multiobj/resource_usage2/arch4_new/ru_arch4_9.py | 815eecfdf7db9ef532dd7392979d77a2689ef1ca | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
import csv
from gurobipy import *
import numpy as np
from arch4_decomposition_new import Arch4_decompose
np.random.seed(2010)
num_cores=3
num_slots=80
filename = 'traffic_matrix.csv'
tm = []
wit... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
556d7976ac0f94b2734b204a034555558d5d8519 | 4c534dc33d548acf07edc3e7b826f4bfb9207030 | /app/views.py | ae561a4459256762b134e280c5e616af23204852 | [] | no_license | Typecraft/valex-backend | a1fdbcdf0f761eca51f7762ec20e57a2feec234b | 7c7ca74851bf595e811ffba5b0f5b09fbd5ac19a | refs/heads/develop | 2022-12-18T08:22:47.545094 | 2017-10-24T09:00:58 | 2017-10-24T09:00:58 | 102,861,803 | 0 | 0 | null | 2022-12-08T00:38:08 | 2017-09-08T13:00:09 | Python | UTF-8 | Python | false | false | 128 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'app/app.html')
| [
"tormod.haugland@gmail.com"
] | tormod.haugland@gmail.com |
d00fe8d65e652b8b6550e30b5375f3817f016bf6 | ef8b6298ae5d247c65454eeeb7b1198b18fe5580 | /CodingDojangPython/quiz_9(for,range).py | 7e9f8e3cb2a13ad53bb84641e6db2ac3bc234964 | [] | no_license | Supreme-YS/PythonWorkspace | 01728fc06b9f1ce9d48de8ab662c0b528c27df1d | 9b1d17c805e45285eb3594da84df02939cab2a85 | refs/heads/master | 2023-07-28T16:44:36.930819 | 2021-09-06T14:03:50 | 2021-09-06T14:03:50 | 289,924,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | #구구단 출력하기
#표준 입력으로 정수가 입력됩니다. 입력된 정수의 구구단을 출력하는 프로그램을 만드세요(input에서 안내 문자열은 출력하지 않아야 합니다). 출력 형식은 숫자 * 숫자 = 숫자처럼 만들고 숫자와 *, = 사이는 공백을 한 칸 띄웁니다.
# 포매팅 이용
dan = int(input())
for x in range(1, 10):
print('{} * {} = {}'.format(dan, x, dan*x))
# 정석 풀이
dan = int(input())
for i in range(1, 10):
print(dan, '*', i, '... | [
"dudtjr1225@gmail.com"
] | dudtjr1225@gmail.com |
44046acca857368eda914427bc371439a2e406bb | 89979cdf3e7ef2d07ae28ea5027a39561b24404a | /Programs/28-melisa/melisa/process_csv.py | b7d3ec5b87f462fe2d764431dccd46a31eb66107 | [] | no_license | LautaroEst/BecaNLP | 8c273043052910c2567ec95222282fa6d43a6efe | dad43317cd51fa4ec80cbe36ba0ec07b54f0b424 | refs/heads/master | 2022-11-04T23:45:32.396013 | 2021-04-29T21:19:10 | 2021-04-29T21:19:10 | 220,004,944 | 4 | 1 | null | 2022-10-12T09:38:18 | 2019-11-06T13:37:21 | Jupyter Notebook | UTF-8 | Python | false | false | 8,901 | py | import sys
import pandas as pd
pd.options.mode.chained_assignment = None # default='warn'
import numpy as np
root_path = './28-melisa/melisa/'
MeLi_path = './29-mercado-libre-api-v3/python-sdk/lib/'
sys.path.append(MeLi_path)
from meli import Meli
from get_parts_in_csv import drop_dups
# Se ejecutó --> dict(df['ca... | [
"lautaro.est@gmail.com"
] | lautaro.est@gmail.com |
e7ec89f5323181680d1b920a7a59a247efef9d9f | 2a8a6327fb9a7ce8696aa15b197d5170661fb94f | /zuora_client/models/post_account_type_credit_card_card_holder_info.py | b8afa6d46179093e61a2ce529a1b443a0f1462c8 | [] | no_license | moderndatainc/zuora-client | 8b88e05132ddf7e8c411a6d7dad8c0baabaa6dad | d50da49ce1b8465c76723496c2561a3b8ebdf07d | refs/heads/master | 2021-09-21T19:17:34.752404 | 2018-08-29T23:24:07 | 2018-08-29T23:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,980 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"jairo.velasco@alertlogic.com"
] | jairo.velasco@alertlogic.com |
b91b9064e539daef084ab3c295dd5e0e5cf381f5 | 4869c5e4d4b5ba6af434b62a2369ed58891c4eb0 | /addons/script.module.myaccounts/lib/myaccounts/modules/realdebrid.py | 51bc1b835dbf24a38836c98cd75f38487c82686e | [] | no_license | JohnnyBlackwater/Zephyr-mod | 1bd73a04549da83965a0979a1957ab4f98b03a6d | 2e9472793b45287b1114221f5dd1674ce886bca1 | refs/heads/master | 2023-08-31T22:54:47.827433 | 2021-11-15T03:01:01 | 2021-11-15T03:01:01 | 428,104,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,648 | py | # -*- coding: utf-8 -*-
"""
My Accounts
"""
import json
import requests
from myaccounts.modules import control
from myaccounts.modules import log_utils
FormatDateTime = "%Y-%m-%dT%H:%M:%S.%fZ"
rest_base_url = 'https://api.real-debrid.com/rest/1.0/'
oauth_base_url = 'https://api.real-debrid.com/oauth/v2/'
device_cod... | [
"Johnnyblackx3@aol.com"
] | Johnnyblackx3@aol.com |
8ce5ebdcabd08a1c8b6025447379690885f1cf64 | 8d47af9482444b07b52cf44cebcaf4b992df4d09 | /agents/20_MinimumDeletionPRB/20.py | b1b6cc069d54a7b4fde85abf6f7b604dde9851ec | [] | no_license | w0lv3r1nix/retro-agents | f4dbce2db558c880b161062796e5397be65bdd10 | c7f93a737dc6c6fc5d8343c099e14bd2bc97aaf1 | refs/heads/master | 2020-08-01T01:19:41.660018 | 2018-06-13T04:28:09 | 2018-06-13T04:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | #!/usr/bin/env python
"""
Train an agent on Sonic using an open source Rainbow DQN
implementation.
"""
import tensorflow as tf
from anyrl.algos import DQN
from anyrl.envs import BatchedGymEnv
from anyrl.envs.wrappers import BatchedFrameStack
from anyrl.models import rainbow_models
from anyrl.rollouts import BatchedPl... | [
"seungjaeryanlee@gmail.com"
] | seungjaeryanlee@gmail.com |
28ae6f95b5d74f8010823e9769537abb4396d2e6 | 7e86b23ece3b8b1c7dd51f9ef484e27e2e6c28f4 | /s3_test.py | 1a9043fadceb305cc109fe0971e03e888c8b3a2c | [] | no_license | yu-shvets/nimble_test | 3fc117b07fca7cc9f3dbfaf55e4dea53db352253 | e53ee6fec60b5fdde26f315f6f17a5470408ed26 | refs/heads/master | 2022-12-14T17:19:34.996135 | 2018-11-04T12:08:49 | 2018-11-04T12:08:49 | 156,074,204 | 0 | 0 | null | 2022-12-08T01:16:31 | 2018-11-04T11:16:07 | Python | UTF-8 | Python | false | false | 1,075 | py | import boto3
from aws_credentials import AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
import requests
from botocore.exceptions import ClientError
BUCKET_NAME = 'nimble-test'
FILE_NAME = 'test.jpg'
# A function to create S3 client
def get_s3_client():
return boto3.client('s3', aws_access_key_id=AWS_ACCESS_KEY_ID, aws... | [
"andypandy12345@yahoo.com"
] | andypandy12345@yahoo.com |
c87cce3c000bb5f403c6e8e8e1c395307318bad3 | ed34e77d9442da39178e7b66c65cfad008f3b9a6 | /keras_resnet/models/_time_distributed_2d.py | 47285c83fe107f56c553150528ea0ec22c8ad9eb | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | droneeye/keras-resnet | f32dd3e612b6eaab8bbbf7352f4006096a294f85 | cb63695468133d830f1c5112dfe2b6f9e6fe379d | refs/heads/master | 2021-07-20T19:54:53.823519 | 2017-10-29T21:04:48 | 2017-10-29T21:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,309 | py | # -*- coding: utf-8 -*-
"""
keras_resnet.models._time_distributed_2d
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements popular time distributed two-dimensional residual networks.
"""
import keras.backend
import keras.layers
import keras.models
import keras.regularizers
import keras_resnet.blocks
"... | [
"allen.goodman@icloud.com"
] | allen.goodman@icloud.com |
97c88a87831ea5025587eecee6a624e54a02a00d | 0c469c4100fe9d352e83731688e388062a3c55c7 | /Trees/314. Binary Tree Vertical Order Traversal.py | ad48f67b111efb1e471044713da78f8d225ce136 | [] | no_license | asperaa/back_to_grind | 9e055c7e6561384e5b7ae52f01063e4beb34a298 | 5ea1976b9d5c6d04800e296e45e8ff90fdde5001 | refs/heads/master | 2022-12-16T18:32:01.443743 | 2020-09-05T13:29:39 | 2020-09-05T13:29:39 | 254,910,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | """We are the captains of our ships, and we stay 'till the end. We see our stories through.
"""
"""314. Binary Tree Vertical Order Traversal
"""
from collections import deque, defaultdict
class Solution:
def verticalOrder(self, root):
if not root:
return []
ans = []
queue = d... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
03fcb65bc2ab9e67c5d78843fb0b948d53722eba | 35efa5d80d640b1325193eba1b1abe8f98be7ff9 | /examples/01-run-shell-command-on-remove-server/example.py | a2f15be56124dfdf3fceaa5575a7bbbcb6d418ec | [] | no_license | MacHu-GWU/Cloud-Engineer-Development-Best-Practice | 4ae9e1b9e1b502bf625587e8b62ad04c3bc41bcf | 351fd55f351755b9c30fc8bfe4f2dad39043b9c3 | refs/heads/master | 2022-05-07T14:28:06.333716 | 2020-01-23T19:32:05 | 2020-01-23T19:32:05 | 235,845,713 | 0 | 1 | null | 2022-03-29T21:57:58 | 2020-01-23T17:15:40 | null | UTF-8 | Python | false | false | 1,084 | py | # -*- coding: utf-8 -*-
from fabric2 import Connection
from invoke import Result
from pathlib_mate import PathCls as Path
_ = Result
HOST = "ec2-54-165-167-139.compute-1.amazonaws.com"
USER = "ec2-user"
PEM_PATH = Path.home().append_parts("ec2-pem", "eq-sanhe-dev.pem").abspath
# open a ssh session and close automat... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
3a8119658ac60bd471188eebaece5366615885f4 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil1190.py | 5f6b2c7c676aa834125b5c9b60f91c4d89713d1f | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | # qubit number=5
# total number=53
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=3
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
52957ffcbf28fa83df422004325c636981a4af69 | 92bc2fec93b695a53bfaee5c37922d2b9309f220 | /ex_videos/ex-020.py | 6072fe772d6f7993a0fffb5c7368c4465c9b8682 | [] | no_license | acaciooneto/cursoemvideo | 6b95e14b49c93c9aabd936dc85734ddc21387360 | c1d12a6625fd401968809286d817f821f21c7759 | refs/heads/main | 2023-01-05T04:23:07.557372 | 2020-11-01T16:24:18 | 2020-11-01T16:24:18 | 309,129,400 | 0 | 0 | null | 2020-11-01T16:27:53 | 2020-11-01T15:44:45 | Python | UTF-8 | Python | false | false | 302 | py | import random
print('Hoje é dia de apresentação, vamos saber a ordem.')
a1 = input('Diga um nome: ')
a2 = input('Diga outro nome: ')
a3 = input('Diga outro nome: ')
a4 = input('Diga outro nome: ')
lista = [a1, a2, a3, a4]
random.shuffle(lista)
print('A ordem de apresentação será:')
print(lista)
| [
"acaciooneto@gmail.com"
] | acaciooneto@gmail.com |
e248b6133294bca0e1eccee04d656d81069c1f7f | f77d074e54750119dcfe1072b9651ad5a54185ec | /src/companies/models.py | b793e52b65afb8b2b89d8e283440df661d53be6d | [] | no_license | providenz/td-monitor | ba38e40ebfd04b0f130c80674a006623a8832cd7 | 87d832ad913b95672f3ca7a76feadc9648046eee | refs/heads/master | 2023-03-26T01:27:56.711735 | 2021-03-22T08:37:24 | 2021-03-22T08:37:24 | 350,265,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | from django.db import models
from model_utils.models import TimeStampedModel, StatusModel
import uuid
from model_utils import Choices
class Company(StatusModel, TimeStampedModel):
STATUS = Choices(("unverified", "Non vérifiée"), ("verified", "Vérifiée"))
uuid = models.UUIDField(
unique=True, default=... | [
"lp@providenz.fr"
] | lp@providenz.fr |
213f58c9a0245aaf440800a900cfec98236dbd7e | 3208929ef73ec5950e363975fbd993954a54d314 | /social/apps/django_app/middleware.py | 3016d6e159e33bec295433d7837320a33c3b76a4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | itjp/python-social-auth | ff0041c937aafbeee9c8e7aff18943bfcd45e2ba | 29f0d75883556ba1524badf0fe5ad5715685c93c | refs/heads/master | 2021-01-16T21:55:04.651456 | 2013-02-28T18:40:48 | 2013-02-28T18:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from django.contrib import messages
from django.shortcuts import redirect
from social.exceptions import SocialAuthBaseException
class SocialAuthExceptionMiddleware(object):
"""Middleware that handles Social Auth AuthExceptions by providing the user
wit... | [
"matiasaguirre@gmail.com"
] | matiasaguirre@gmail.com |
efbca59347ef70ba62fe48136694786c9691a267 | 7e1a8700aeea75d3065697f6846d4e06ffa1eed0 | /tests/integrated-tests/test_callback.py | 5ec7c21b5cba4bda29d2802ac9421c15671562f5 | [
"BSL-1.0"
] | permissive | haowen-xu/ml-gridengine-executor | 8ba311b92aa519ed1e42d44ed293204eb9bc1bcf | 896d00400a74f3e46bb7ad994e9422f3e111a3f8 | refs/heads/master | 2020-04-07T11:46:04.365865 | 2018-12-06T15:23:34 | 2018-12-06T15:23:34 | 158,340,010 | 1 | 0 | BSL-1.0 | 2018-12-06T15:23:37 | 2018-11-20T06:14:43 | C++ | UTF-8 | Python | false | false | 4,242 | py | import base64
import re
import uuid
from collections import defaultdict
from flask import Flask, jsonify
from werkzeug.exceptions import InternalServerError
from utils import *
class CallbackApp(Flask):
def __init__(self, *args, **kwargs):
super(CallbackApp, self).__init__(*args, **kwargs)
self... | [
"haowen.xu@outlook.com"
] | haowen.xu@outlook.com |
8c4c670581d5732b1837423a6feeb569b75567c6 | f92dfdebb4bf6bc108f51783333520c35afa66da | /admin-web/src/www/application/modules/variation/actions.py | 5511d1025faa9a080f783069d0c9e1c2e6358e42 | [] | no_license | duytran92-cse/nas-genodata | 4d8659a135913d226842ff6a013324714ead0458 | 80c88f42145f729c5862a5293012e71548182e1d | refs/heads/master | 2022-11-13T17:24:03.769605 | 2020-06-14T18:59:36 | 2020-06-14T18:59:36 | 272,264,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,000 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.conf import settings
from notasquare.urad_web import actions, page_contexts, widgets
from notasquare.urad_web_material import renderers
from application import constants
from . import components
import json
class List(actions.crud.ListAction):
... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
99400014acc70da415ad22907f70847ca9a5a454 | 59bd9c968a3a31a73d17f252fe716a3eacdf7f4f | /portfolio/Python/scrapy/hoptec/hoptec_amazon.py | 10fe0a6927f56579365f12f27de612d2dcf27660 | [
"Apache-2.0"
] | permissive | 0--key/lib | 113ff1e9cf75e446fa50eb065bc3bc36c090d636 | a619938ea523e96ab9e676ace51f5a129e6612e6 | refs/heads/master | 2023-06-23T22:17:54.244257 | 2023-06-21T17:42:57 | 2023-06-21T17:42:57 | 23,730,551 | 3 | 5 | null | 2016-03-22T08:19:30 | 2014-09-06T08:46:41 | Python | UTF-8 | Python | false | false | 1,744 | py | import csv
import os
import copy
from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request, HtmlResponse, FormRequest
from scrapy.utils.response import get_base_url
from scrapy.utils.url import urljoin_rfc
from scrapy.http.cookies import CookieJar
from product_... | [
"a.s.kosinov@gmail.com"
] | a.s.kosinov@gmail.com |
e05388091506f41070c3beb41f4c92b5805db761 | 87ad372898e793faf1ad89f4bb3b6e84a8002131 | /tests/unit/UnagiiToken/test_init.py | 33c6394041ed3bdd3d7e5241ec03f0ece70d8f90 | [] | no_license | atsignhandle/unagii-vault-v2 | 6a9a96c11d34257bc3fdae57455ec3b2f9c0029a | 548f715f34329eb5abebffe40acbeb56a31cb6f3 | refs/heads/main | 2023-08-27T00:59:48.080152 | 2021-09-28T02:47:36 | 2021-09-28T02:47:36 | 413,448,825 | 0 | 0 | null | 2021-10-04T14:07:37 | 2021-10-04T14:07:36 | null | UTF-8 | Python | false | false | 708 | py | import brownie
from brownie import UnagiiToken
def test_init(token, admin):
uToken = UnagiiToken.deploy(token, {"from": admin})
assert uToken.timeLock() == admin
assert uToken.token() == token.address
assert uToken.name() == "unagii_" + token.name() + "_v2"
assert uToken.symbol() == "u" + token.s... | [
"tsk.nakamura@gmail.com"
] | tsk.nakamura@gmail.com |
aee9bdc39974c773e8c1c2b83f08b9a7ccd76902 | ca264ebff19314794b0784abadcf5ef8f2b25e77 | /tests/test_misc.py | 8e8b0c2c1cb8a61e0bf303b713bd329bd1d54c56 | [
"Apache-2.0",
"MIT"
] | permissive | ChrisMuir/pyppeteer | 9c9f9036245101cde775e272798e8f28e9c9b225 | 97ba03b285c5a11ba97d398244b1bb9722ef2037 | refs/heads/master | 2021-01-25T12:13:52.399126 | 2018-03-01T11:24:39 | 2018-03-01T11:24:39 | 123,460,144 | 0 | 0 | null | 2018-03-01T16:19:03 | 2018-03-01T16:19:03 | null | UTF-8 | Python | false | false | 1,271 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from pyppeteer.helper import get_positive_int
from pyppeteer.page import convertPrintParameterToInches
from pyppeteer.network_manager import removeURLHash
class TestURLHash(unittest.TestCase):
def test_remove_url_hash(self):
url = 'http://ex... | [
"miyako.dev@gmail.com"
] | miyako.dev@gmail.com |
c49d3edd9be507e8368e8ebce92f210ea80910ac | f3dbb5b2bdbb4b45bb6548935e7873736c7adc68 | /python/dvalley_core_TestEngineer/.svn/pristine/c4/c49d3edd9be507e8368e8ebce92f210ea80910ac.svn-base | 50bfa2e16799ce1af3bd763941f2988f13242b33 | [] | no_license | lw000/new_python_demo | ece955bdb7df2c5499e4fb582503c13081c89649 | 3ca55b2c3106db75e31676e45e6c5c1f5a6fd714 | refs/heads/master | 2020-03-26T21:09:33.082625 | 2018-08-20T05:37:54 | 2018-08-20T05:37:54 | 145,370,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | #!/usr/bin/env python
# -*- coding=utf-8 -*-
'''
Created on 2017年12月26日
@author: Administrator
'''
import sys
import cProfile
import time
import threading
sys.path.append(r"./api")
import api
class TestWorker(threading.Thread):
def __init__(self, name):
super(TestWorker, sel... | [
"liwei@liweideiMac.local"
] | liwei@liweideiMac.local | |
95aff7ccb4c11f03a55150d92ab4b9f58e16f7ca | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02995/s719975461.py | 782dabda36eff1f2098e9ff56f3fcaaa8704368c | [] | 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 | 218 | py | from math import gcd
def lcm(a, b):
return a*b//gcd(a,b)
A, B, C, D = map(int,input().split())
nC = B//C - -(-A//C) + 1
nD = B//D - -(-A//D) + 1
nCD = B//lcm(C,D) - -(-A//lcm(C,D)) + 1
print((B-A+1)-(nC+nD-nCD)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7311f223c4c047ae7b3759322e4e0555e7fdfcf3 | 27156c403516bbf00f0cf906d8783ca9fc1743bc | /FactorBase/Codes/generate_factor.py | 4ba3ac05eee7e661d62885131c16a9f6e815e4e2 | [] | no_license | jerrrrrrrrrrrrry/stock-1 | 95b83ad24364f81bb43de78d8787929e0184942b | b5e85efa8d4bb5cfb7d3230c89a011948f4a043e | refs/heads/master | 2023-05-05T00:59:09.192152 | 2021-05-31T14:07:42 | 2021-05-31T14:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,793 | py | import os
import sys
import time
import datetime
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
import Config
sys.path.append(Config.GLOBALCONFIG_PATH)
import tools
import Global_Config as gc
import multiprocessing as mp
def f(p, stocks, start_date, end_date):
exec('from %s import %s'%... | [
"15900565486@163.com"
] | 15900565486@163.com |
559a25927a3ef6c0fea45e8b9be25ce48576f27a | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Shapes.py | 1bf78859cafafc973f71894d665304b2a1253858 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # encoding: utf-8
# module System.Windows.Shapes calls itself Shapes
# from PresentationFramework,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no imports
# no functions
# classes
from Shapes_parts.Shape import Shape
from Shap... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
662ac5c22209ab1bbcafdac831582daeef57b3cf | 6f7032e954334d102a9e1eff8f420f0a8b7ee70a | /advanced/screenshot.py | a05f0f2a3d26ce7c9dfb342912bcf57c0348b147 | [] | no_license | suchismitarout/selenium_practice | 186596e14ed66550ef184703a04aa323faad9f45 | 2281e6a3a526f2ff5c1c566517dc85b4ae23b85b | refs/heads/master | 2022-12-26T12:16:17.297471 | 2020-10-06T06:21:04 | 2020-10-06T06:21:04 | 301,632,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | from selenium import webdriver
import time
class Screenshot():
def take_screenshot(self):
apt = webdriver.ChromeOptions()
apt.add_argument("user-data-dir=C:/Users/Suchismita/AppData/Local/Google/Chrome/User Data/Profile 1")
driver = webdriver.Chrome(executable_path="D:/drivers/chromedriver.... | [
"suchismitarout47@gmail.com"
] | suchismitarout47@gmail.com |
d9318038c162429390b0615220b4cc4bfe08caad | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pandas/tests/base/test_constructors.py | 4696eafe0beb84c743626168d398c69da3ef9cd1 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,030 | py | import sys
from datetime import datetime
import numpy as np
import pandas as pd
import pandas._testing as tm
import pytest
from pandas import DataFrame, Index, Series
from pandas.compat import PYPY
from pandas.core.accessor import PandasDelegate
from pandas.core.base import NoNewAttributesMixin, PandasObject
class T... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
f9eed992fd80342b825d3d4dc3dadd88b0235e31 | 99a43cdb360b28f9d8d8cc8fc27d8c2f45271c77 | /app01/migrations/0013_auto_20181228_0701.py | 344ea63483063f237973b16bc7cf545253712afd | [] | no_license | xiaoyaolaotou/MyBook | a542e8702ab46ae1904c3d2efa702cbf642033c0 | d83f07f968005bd34246c684c1bd34405ff07d32 | refs/heads/master | 2020-04-11T10:30:40.995240 | 2019-01-08T08:44:40 | 2019-01-08T08:44:40 | 161,717,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 2.0 on 2018-12-28 07:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app01', '0012_book_price'),
]
operations = [
migrations.AddField(
model_name='book',
name='kucun',
field=m... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7baa74fbac89b10f4fc7c6afd56905a86e3dad3e | c27b02ece1348d2f504baeb1b9c15fc3fc693bd8 | /src/handlers/scheduling/new_schedule.py | 879e670ff637ff86972758620aca9710d15bf51f | [] | no_license | jfly/cubingusa-org | 60b7119b6f52d2ad6732f83dc2d123cb3277c616 | f843cae7a30ec5f39d93519f965a3a18b352107f | refs/heads/master | 2021-09-02T05:45:01.251015 | 2017-12-30T20:51:03 | 2017-12-30T20:51:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | import datetime
import json
import urllib
import webapp2
from src.handlers.oauth import OAuthBaseHandler
from src.handlers.scheduling.scheduling_base import SchedulingBaseHandler
from src.models.scheduling.schedule import Schedule
class NewScheduleHandler(SchedulingBaseHandler):
def get(self, competition_id):
... | [
"timbreynolds@gmail.com"
] | timbreynolds@gmail.com |
5927f413ce01035446e2315911d79c7e9252d3bc | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnseptembr.py | 748cee9fe61f7d33710e2ce6c2c173319b424aac | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 104 | py | ii = [('LeakWTI3.py', 1), ('FitzRNS3.py', 2), ('CarlTFR.py', 11), ('BachARE.py', 1), ('MackCNH2.py', 2)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
ab79f61b5b2d6b33aefb85846d1cb1bf04ccbd41 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/zetcode/003_Layout management/002_Box layout.py | feb4aff5c1689caff7f074a2e1fd98b389270d4b | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 905 | py | import sys
from PySide2.QtWidgets import (QWidget, QPushButton,
QHBoxLayout, QVBoxLayout, QApplication)
class Example(QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
okButton = QPushButton("OK")
cancelButton = QPushButton("Ca... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
49326d64d55bad878e9f7dafa17207140415223f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_36/128.py | 90cb6b2da6389f9898ac71d26a26f3919d88ed01 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import sys
strData = "welcome to code jam"
strDataLen = len(strData)
file = open(sys.argv[1],"r")
num = int(file.readline())
fout = open("output","w")
for c in range(num):
matchStr = file.readline()
matchStrLen = len(matchStr)
# Creating the matrix
mat = []
for i in range(strDataL... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7821d50ce4067f1974c4b6604108cc0dd11833c8 | c612f9fd2fba45dfeaf2cb27884b30f520287f77 | /chromeos/components/telemetry_extension_ui/DEPS | e048463c3f6310d90b9b08a80ea22213c7546834 | [
"BSD-3-Clause"
] | permissive | Turno/chromium | c498ab6d3c058d737b17439029989f69f58fe9c7 | 4e5eb9aba6c91df5e965f3eecd76c3ae17b0b216 | refs/heads/master | 2022-12-07T22:58:55.989642 | 2020-08-10T12:03:21 | 2020-08-10T12:03:21 | 286,471,394 | 1 | 0 | BSD-3-Clause | 2020-08-10T12:39:55 | 2020-08-10T12:39:54 | null | UTF-8 | Python | false | false | 273 | include_rules = [
# Do not add chrome here (use a delegate instead).
"+chromeos/grit/chromeos_telemetry_extension_resources.h",
"+content/public/browser",
"+content/public/common",
"+mojo/public/js/grit",
"+ui/base/resource/resource_bundle.h",
"+ui/webui",
]
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
5436a58596947a2b7f65d206238d236b0dd144f1 | 6355b97ccf53685d8f61fe1d1738611bfd89e309 | /lib/table/get_pedia_dist.py | 9952064d00ab020542ff60f9c3853b79f9c426a0 | [
"MIT"
] | permissive | PEDIA-Charite/classifier | d1ba6a4696fcadeea8ab973c65df71e465df1e71 | c2de59a37ef10bd958d8e790af7811cacd64feba | refs/heads/master | 2022-10-01T07:50:21.145972 | 2022-09-12T20:40:20 | 2022-09-12T20:40:20 | 91,697,141 | 2 | 2 | null | 2017-06-26T13:41:54 | 2017-05-18T13:34:25 | Python | UTF-8 | Python | false | false | 10,016 | py | import csv
import sys
import os
import numpy as np
import matplotlib
matplotlib.use('pdf')
from matplotlib import pyplot
import math
import json
output_dir = '../../latex/table/'
if not os.path.exists(output_dir):
os.makedirs(output_dir)
outFile = open(output_dir + 'pedia_cv_result.tex', "w")
#Output text
input_d... | [
"la60312@gmail.com"
] | la60312@gmail.com |
4ef15ecd459b8979a4757b3af64fa61cbfd43894 | b9fd66a95741c78441cd4f202abe0964afb4b67c | /detectors/ntech/models/detector.py | cb8ae9d7d0f6c01ccb4633c3838fcb723c02456a | [
"Apache-2.0"
] | permissive | zhampel/FakeFinder | d8896ea59027116b4d337bda9e00284db7cf8d0e | 2891a8649acc1dabdef07554d6acb346dd23dbae | refs/heads/main | 2023-07-07T04:03:24.576134 | 2021-08-16T02:31:41 | 2021-08-16T02:31:41 | 343,505,168 | 0 | 0 | Apache-2.0 | 2021-03-30T03:13:10 | 2021-03-01T17:45:17 | Python | UTF-8 | Python | false | false | 2,012 | py | import torch
from torchvision.models.detection.transform import GeneralizedRCNNTransform
from .dsfacedetector.face_ssd_infer import SSD
DETECTOR_THRESHOLD = 0.3
DETECTOR_MIN_SIZE = 512
DETECTOR_MAX_SIZE = 512
DETECTOR_MEAN = (104.0, 117.0, 123.0)
DETECTOR_STD = (1.0, 1.0, 1.0)
__all__ = ['Detector']
class Detector... | [
"mllomnitz@gmail.com"
] | mllomnitz@gmail.com |
d0c188b7d812c9e9b2a6fe95fd6b33e0b174bbe6 | e13bccceb4c2fefbf8000f9b34195ab434cf1656 | /build/topic_tools/catkin_generated/generate_cached_setup.py | d7aa0a55a9401b026d3e5d6124ea110455d0ff58 | [] | no_license | QuiN-cy/vacuum-en-band | ab59b718f289ad4e8a1f29e96724250b00bd894d | 48c296199b4a6ade40e084c9980d53ba1611a344 | refs/heads/master | 2023-06-01T12:13:38.664849 | 2021-06-11T15:42:42 | 2021-06-11T15:42:42 | 376,071,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"quincy1234321@hotmail.nl"
] | quincy1234321@hotmail.nl |
0ba98c779d63b222c1aae993a5dbeeac0fbf281e | ff0e6734bac3fa7e64d7cb2b56f9f567340e28c5 | /ch06/ex6-6.weight_init_activation_histogram.py | a664e1ae251f47bbdaaf006638ee83df0e8ac5c7 | [] | no_license | freebz/Deep-Learning-from-Scratch | 88ecc2811d19aa30433f0938e8f18a434447030a | a2d774bc4567b1df2dd5655d3195376381d33bd6 | refs/heads/master | 2020-03-30T04:45:15.010151 | 2018-09-28T15:21:56 | 2018-09-28T15:21:56 | 150,760,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # 은닉층의 활성화값 분포
import numpy as np
import matplotlib.pyplot as plt
def sigmoid(x):
return 1 / (1 + np.exp(-x))
x = np.random.randn(1000, 100) # 1000개의 데이터
node_num = 100 # 각 은닉층의 노드(뉴런) 수
hidden_layer_size = 5 # 은닉층이 5개
activations = {} # 이곳에 활성화 결과(활성화값)를 저장
for i in range(hidden_layer_size):
... | [
"freebz@hananet.net"
] | freebz@hananet.net |
7542470787bc9f28764ca6499485ee72dc6838b5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03524/s167797805.py | e1fc65851e5eb36f6eb952532b16610e27369a46 | [] | 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 | 137 | py | s=list(input())
a=s.count("a")
b=s.count("b")
c=len(s)-a-b
M=max(a, b, c)-min(a, b, c)
if M<=1:
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cd68ad823ea9e87d7cd59edbe6e2b0ae94b7121f | a544c0fa8bf767d2d625b47e42ad3b67565a7e56 | /models/necks/__init__.py | 12ddaf1b7472a28df2a3c40248c70755899f1a7b | [] | no_license | KwpGitHub/letsdet | b107cd1d74034f668a176ee7624b6edfb95d7e4f | a48ec0895b95691467d4291a73b2c2a2f29b670a | refs/heads/main | 2023-04-08T08:28:27.488624 | 2021-04-22T14:17:05 | 2021-04-22T14:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from .fpn import FPN
from .bifpn import BiFPN
from .dlaup import dla_up
from .nas_fpn import nas_fpn
from .dilated_encoder import DilatedEncoder
from .centernet_deconv import centernet_deconv
from .path_aggregation_neck import path_aggregation_neck
from .feature_fusion_pyramid import feature_fusion_pyramid
__all__ =... | [
"1065731927@qq.com"
] | 1065731927@qq.com |
ab8fba060171144d09e7e1803c0ce8e248611755 | 082517dc060c2e27f21c9eef0b156c3110505cd9 | /dtoolai/__init__.py | 98c67ee81f9bb64301123415045def9c20d7e6bf | [] | no_license | jic-dtool/dtoolai | afdbfb3e72a268a66249b398ad3bd29c15e62a46 | 9646ede94f2bd03d0374a9f102a2a296511638b6 | refs/heads/master | 2020-04-09T09:07:51.964352 | 2019-01-26T21:37:03 | 2019-01-26T21:37:03 | 160,221,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py |
import numpy as np
from imageio import imread
from keras.preprocessing.image import ImageDataGenerator
from dtoolai.utils import identifiers_where_overlay_is_true
def tile_generator(im, ts=256):
rows, cols = im.shape[0], im.shape[1]
nr = rows//ts
nc = cols//ts
for r in range(nr):
for c ... | [
"mhartley@cantab.net"
] | mhartley@cantab.net |
09c8bef5371647245112f435b9c9de794d8602e9 | ed9bb549869d023e07c4b7858d9c7c3a58c692eb | /manage.py | 5fc2b099907ba0d47d814d4f999e3190889fef15 | [] | no_license | pratikaher88/EIIIProject | 8ea2a8f2d2269e2343a24e88b4871250bc14f35b | 454b14c64caf8017ee5ed07d58aae29c5c78f1fe | refs/heads/master | 2020-04-12T20:17:43.672661 | 2018-12-22T11:57:58 | 2018-12-22T11:57:58 | 162,731,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'EIIIFeedBack.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django.... | [
"pratikaher88@gmail.com"
] | pratikaher88@gmail.com |
ded9afb5a9eeb2d1fc717fd52acfc30e4e8ff246 | 28809dbb9d3a1901af0d2a6ea71eff0cee4c545d | /mapping/coverage2bedgraph.py | 9b73a1ba60d0f06c653c9fdc643c4002153ec0ac | [] | no_license | afilipch/afp | 6088f3375741c8a837006e9d4b3e716dfffc0b2a | b941a3eeb4d8447b3628c79a528c60cb540537e3 | refs/heads/master | 2021-06-28T00:57:37.869912 | 2020-10-14T16:50:20 | 2020-10-14T16:50:20 | 155,242,147 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | #! /home/a_filipchyk/soft/home/a_filipchyk/anaconda3/bin/python
'''Converts coverage-per-position file into bedgrpah file'''
import argparse
import os
import sys
from pybedtools import BedTool
from collections import Counter
import numpy as np
from afbio.sequencetools import coverage2dict;
parser = argparse.Argume... | [
"philipchick@gmail.com"
] | philipchick@gmail.com |
1fdf24c7cef60dbf7334f5fffc4e8a40601e0caf | bc441bb06b8948288f110af63feda4e798f30225 | /database_delivery_sdk/model/cmdb_extend/system_dependency_pb2.pyi | 1566c6b8ea474b6e5e9504028a317706e81b1aa4 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from database_delivery_sdk.model.cmdb_extend.subsystem_dependency_pb2 import (
SubsystemDependency as database_delivery_sdk___model___cmdb_extend___subsystem_dependency_pb2___SubsystemDependency,
)
from google.protobuf.descriptor import (
D... | [
"service@easyops.cn"
] | service@easyops.cn |
3b11d3ee5119cfa96c2d692bb49952d377f3b750 | a665f561b103a51404785f35d0026c60f0083cb4 | /0x06-python-classes/3-square.py | c06a29da04e43bd11a56f565dc13aec176d3e480 | [] | no_license | Joshua-Enrico/holbertonschool-higher_level_programming | c5f3c9ab55167ea2e7ea3b31dd8edf2e22a18bde | 8c1559f9c772b60186e899e17c67d299f88de726 | refs/heads/main | 2023-07-31T17:45:16.723947 | 2021-09-23T00:29:25 | 2021-09-23T00:29:25 | 361,960,411 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | #!/usr/bin/python3
"""defining a square"""
class Square:
""" represents a square
Attributes:
___size (int): size of a side of the square
"""
def __init__(self, size=0):
"""Initializes square
Args:
size (int): size of a side of the square
Returns: None
... | [
"tmrfack@gmail.com"
] | tmrfack@gmail.com |
572d8087c48f1abd0a2ab764ca8afe9c81ec7b10 | 1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2 | /hw/hw04/tests/q1_4.py | 1c0a38d8e25d906015c2a8ad9137fd8dc35cd938 | [] | no_license | taylorgibson/ma4110-fa21 | 201af7a044fd7d99140c68c48817306c18479610 | a306e1b6e7516def7de968781f6c8c21deebeaf5 | refs/heads/main | 2023-09-05T21:31:44.259079 | 2021-11-18T17:42:15 | 2021-11-18T17:42:15 | 395,439,687 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | test = { 'name': 'q1_4',
'points': None,
'suites': [ { 'cases': [ {'code': '>>> california_burritos.num_columns\n2', 'hidden': False, 'locked': False},
{'code': '>>> california_burritos.num_rows\n46', 'hidden': False, 'locked': False}],
'scored': ... | [
"taylorgibson@gmail.com"
] | taylorgibson@gmail.com |
d09cc94c40646f499a82292c62b9576eb1a7193b | 7e372d7120a0051b277e26d6176aeb4db8331b37 | /foodboxes/foodboxes/urls.py | e97461db9c9af0d0119360ff6d583f4a16db3902 | [] | no_license | arifgafizov/foodboxes_v.1.1 | c4c806486b79f996fb8d0c51e3283db1ca765e02 | c0609fd87d062ed8d1f938f81318fa6b3ef24543 | refs/heads/master | 2023-03-03T08:38:52.664013 | 2021-02-12T13:26:20 | 2021-02-12T13:26:20 | 328,393,731 | 2 | 0 | null | 2021-02-15T07:00:12 | 2021-01-10T13:49:17 | Python | UTF-8 | Python | false | false | 692 | py | from django.contrib import admin
from django.urls import path, include
from drf_yasg import openapi
from rest_framework import permissions
from drf_yasg.views import get_schema_view
schema_view = get_schema_view(
openapi.Info(
title='Stepic DRF API',
default_version='v1',
),
public=True,
... | [
"agafizov@gmail.com"
] | agafizov@gmail.com |
49587488af96f8e5eaa4674318bb5bd67c632149 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-4-3.py | 356296a72be7dfd64893ed113a1d4661c2cf70dc | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 688 | py | from output.models.nist_data.list_pkg.duration.schema_instance.nistschema_sv_iv_list_duration_min_length_4_xsd.nistschema_sv_iv_list_duration_min_length_4 import NistschemaSvIvListDurationMinLength4
from xsdata.models.datatype import XmlDuration
obj = NistschemaSvIvListDurationMinLength4(
value=[
XmlDurat... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
ee5c2d68549ecdc2dadb4ff01a12971589c71557 | 0990ad7a017c3ada58318b1b3018f893b632ba7a | /assignments/08PuntoCircunferencia/src/exercise.py | 533b220a78e9b245d254f7fbd7715877071d1076 | [] | no_license | C-MTY-TC1028-037-2113/tarea-programacion-condicionales-intermedio-LuisDanielMtz | d2e5517766c88fa28df90bed89c53f5d29bf81c3 | aa030312c9d540a61ab398ac422c7f18d0424e46 | refs/heads/main | 2023-08-18T14:36:20.662459 | 2021-09-28T23:51:21 | 2021-09-28T23:51:21 | 411,471,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import math
def main():
# Escribe tu código abajo de esta línea
r = float(input("Introduce el radio: ")) #Radio
x1 = float(input("Introduce x1: ")) # Coordenada X1 del centro de la circunferencia
y1 = float(input("Introduce y1: ")) # Coordenada Y1 del centro de la circunferencia
x2 = float(input("I... | [
"66690702+github-classroom[bot]@users.noreply.github.com"
] | 66690702+github-classroom[bot]@users.noreply.github.com |
8e7f1bfd5cc1b7cea1d7ef838ddf56af401c8d3f | 9a8fe99c7316dfce343be81d2c3c1a6c4f22572c | /primeornot.py | 817b0d4a2d1604e5c465547bbc3dba7e0ae887c9 | [] | no_license | Srija-U/codekatabeginner | 5e4d540484529dbafada04d3eac96eab7f98a693 | 8d088e04de1d48d9befb975697e9121f06bb164a | refs/heads/master | 2020-04-30T00:58:51.445394 | 2019-07-01T15:43:05 | 2019-07-01T15:43:05 | 176,516,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | class pri:
def __init__(self):
self.a=int(input())
def fin(self):
if(self.a>1):
for i in range(2,self.a):
if(self.a%i==0):
print("no")
break
else:
print("yes")
else:
pr... | [
"noreply@github.com"
] | Srija-U.noreply@github.com |
4fa2772dd690618943ab53e0dafc834f2113e632 | a54d94f596b128f7d95dcbe68f251ff4aa7bc233 | /mliber_libs/maya_libs/maya_objects/maya_abc.py | 64d15041407e53b2631718d443b726c485ee1ac5 | [] | no_license | githeshuai/mliber | 477433ad580f31dbeabd3c099669b8c575b7c854 | 5fdc4e308191345149b902c5913e2698336630ea | refs/heads/master | 2023-03-09T17:43:51.018584 | 2021-02-26T03:00:05 | 2021-02-26T03:00:05 | 331,487,121 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | # -*- coding: utf-8 -*-
import maya.cmds as mc
from mliber_libs.os_libs.path import Path
from mliber_libs.maya_libs.maya_objects import MayaObject
from mliber_libs.maya_libs.maya_utils import load_plugin, create_reference
class MayaAbc(MayaObject):
def __init__(self, path):
"""
Args:
p... | [
"276575758@qq.com"
] | 276575758@qq.com |
79ef26732a8daf72aa0a7609625664afe37e694c | 01e7c0bd6d25273efb426a43ad7a91321f1e417d | /day1/scrap_kospi.py | 77a737ca98cdcc8bca81339c84c96f42b47c4d2a | [] | no_license | hoik92/chatbot | 45ba2a1d46c45001e9fafdd353cf42a97dd9b1b7 | c51f9e0e959e0828eba29cad5466a400cd90bc99 | refs/heads/master | 2020-04-12T00:52:00.419051 | 2018-12-27T08:41:57 | 2018-12-27T08:41:57 | 162,214,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import bs4
import requests
url = "https://finance.naver.com/sise/"
response = requests.get(url).text
doc = bs4.BeautifulSoup(response, 'html.parser')
result = doc.select_one('#KOSPI_now')
print(result.text) | [
"hoik92@nate.com"
] | hoik92@nate.com |
1207ce157cd53a07dda0ec2c4d7a04f756d6228d | ef6db15efda8b7b472b73ebd6bea3530ab30d45a | /openclean/function/value/mapping.py | c5d76539da6a0f492d83ff62473b02882d7e986d | [
"BSD-3-Clause"
] | permissive | Denisfench/openclean-core | 57698fc9ac8b1bccc848262721d0e705529cf27f | e3d0e04f90468c49f29ca53edc2feb12465c24d5 | refs/heads/master | 2023-09-01T02:21:35.133098 | 2021-10-04T19:34:57 | 2021-10-04T19:34:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,760 | py | # This file is part of the Data Cleaning Library (openclean).
#
# Copyright (C) 2018-2021 New York University.
#
# openclean is released under the Revised BSD License. See file LICENSE for
# full license details.
"""The mapping operator that returns a dictionary that contains a mapping of
original values in a data fra... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
0271716f39bc5453df31d82bcaf105a3f1000267 | ef3cd1376f100579aa33b01eb75d75888f639868 | /home/migrations/0002_load_initial_data.py | edba78d8ce33a35b1b54198bae2ed2619f6c160c | [] | no_license | crowdbotics-apps/dreamapp-15052 | 2004949234efa57bc3cbd42d367f72727f93b849 | bb5ea73190133ecfb1639462f2fac608b5c20704 | refs/heads/master | 2022-12-10T23:23:51.460367 | 2020-03-25T11:12:43 | 2020-03-25T11:12:43 | 249,957,143 | 0 | 0 | null | 2022-12-08T07:12:30 | 2020-03-25T11:12:22 | Python | UTF-8 | Python | false | false | 1,286 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "dreamapp"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
50addba3eaea358b15b535171e452591f695eb4b | 1b9d2bad6048ad282e85f9dbf502b496bd9dc870 | /app/models.py | 71336cac2b8bd012037813c78c5862f72d22ef43 | [] | no_license | gautamamber/employee-management-web-app-flask | 73e1178db2f84a73349229d26939fb6c8ba582f5 | 49923787380b6925b340d5adf9fd57fc73043ac4 | refs/heads/master | 2022-06-13T06:24:38.848100 | 2020-05-06T11:18:49 | 2020-05-06T11:18:49 | 261,659,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from app import db, login_manager
class Employee(UserMixin, db.Model):
"""
Create Employee Table
Ensure name will be in plural
"""
__tablename__ = "employees"
id = db.Column(db.Integer,... | [
"ambergautam1@gmail.com"
] | ambergautam1@gmail.com |
8002fd01e00df96943c7223915cba211196af132 | d4b77e54b70dcff1e5a3f922c0a62cc59b337b72 | /blog/views.py | 3de21b745bc83f2460d180d4ac51b4f990943031 | [] | no_license | ruyacoskun/my-first-blog | e2dd6375ffd8c53b2859d5fa105c40aae11c5994 | d6232915e8deb432825c7a7a068c6093a369c4d8 | refs/heads/master | 2020-12-31T07:54:55.959283 | 2016-02-13T15:32:47 | 2016-02-13T15:32:47 | 51,541,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect
from django.shortcuts import render
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
from .forms import PostForm,CommentForm
from django.shortcuts import redir... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
669167c235c4cfc8a492a60ef758104267a85692 | c40fe7aab6b03a990958a8abaaa0577fc1c122bc | /d2_t1.py | 3f18b2ae9d83cb52d0e02bcd193a23772e510c9c | [] | no_license | JoelDavisP/Coding-task-solutionns | 1a9404d7d8488b4b6e8ca8fc3d448a04ec22f637 | 6aead6e2fa01f35ad4e08d7f73ea677c62979a14 | refs/heads/master | 2021-01-22T19:40:52.949889 | 2017-09-21T17:25:29 | 2017-09-21T17:25:29 | 100,715,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,905 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic string exercises
# Fill in the code for the functions below. main() is already se... | [
"joeldavisp17195@gmail.com"
] | joeldavisp17195@gmail.com |
49229b71b7cebd4d465d005c2ac77578bb10eb11 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_thegreyd_sheep.py | 56494791f9391a40b57d0d9996e5941596f17073 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 371 | py | def solve(x):
numset = {"0","1","2","3","4","5","6","7","8","9"}
if(x==0):
return "INSOMNIA"
else:
xset = set(str(x))
i=2
while(xset!=numset):
y = x*i
xset.update(set(str(y)))
i+=1
return y
for t in range(int(input())):
pr... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
153c75065f2cd23000ac0296d99cf3569e9b951a | 3fef5ea4a88bc42a0acdb7ae581639ebbb3dd962 | /tb_store/tb_store/utils/yuntongxun/sms.py | 4d2f2baaa32ca97146707f70a466b361ec612a7d | [] | no_license | ducgt/Django-Store | 96476597811c6db772e196d9cd56ef9516e1e287 | f68b7dd657b2a9c5769a3a657be083dad5b2ff11 | refs/heads/master | 2021-04-21T20:54:54.811437 | 2019-07-22T08:16:44 | 2019-07-22T08:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,726 | py | # -*- coding:utf-8 -*-
from .CCPRestSDK import REST
# 说明:主账号,登陆云通讯网站后,可在"控制台-应用"中看到开发者主账号ACCOUNT SID
_accountSid = '8a216da86b2bc78f016b361c93d8025f'
# 说明:主账号Token,登陆云通讯网站后,可在控制台-应用中看到开发者主账号AUTH TOKEN
_accountToken = '78637b84e5544705bda2aca3426c88f5'
# 请使用管理控制台首页的APPID或自己创建应用的APPID
_appId = '8a216da86b2bc78f016b36... | [
"15670339118@qq.com"
] | 15670339118@qq.com |
e8994399e66fd142906e12d2f03c84a429da7591 | 422dd5d3c48a608b093cbfa92085e95a105a5752 | /students/stuartkershaw/lesson01/generator_solution.py | 50fe69e6747b1bb036d32a172bc83555845e752d | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018 | a2052fdecd187d7dd6dbe6f1387b4f7341623e93 | b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1 | refs/heads/master | 2021-06-07T09:06:21.100330 | 2019-11-08T23:42:42 | 2019-11-08T23:42:42 | 130,731,872 | 4 | 70 | null | 2021-06-01T22:29:19 | 2018-04-23T17:24:22 | Python | UTF-8 | Python | false | false | 541 | py | def intsum(i=0, cur=0):
while True:
cur += i
yield cur
i += 1
def intsum2(i=0, cur=0):
while True:
cur += i
yield cur
i += 1
def doubler(i=1):
while True:
yield i
i *= 2
def fib(a=1, b=1):
while True:
yield a
a, b = b,... | [
"stuartdkershaw@gmail.com"
] | stuartdkershaw@gmail.com |
6f6e3e4bc1b1d30abec7b8854fdf4cf40c244562 | ba8ff352e97ebf5202d21559ee46a3bcccc9200f | /src/aiortc/rtcpeerconnection.py | 34b3ed8583dac361a0e4066e2508c35ce7977da1 | [
"BSD-3-Clause"
] | permissive | lcmax/aiortc | a30b674794846fca49a8ce02f5eb5fa4cd092c7c | 04bd8a0068729bb6cb75156af049975568309203 | refs/heads/master | 2021-01-13T22:24:54.302257 | 2020-02-23T10:34:10 | 2020-02-23T11:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,499 | py | import asyncio
import copy
import uuid
from collections import OrderedDict
from typing import Dict, List, Optional, Set, Union
from pyee import AsyncIOEventEmitter
from . import clock, rtp, sdp
from .codecs import CODECS, HEADER_EXTENSIONS, is_rtx
from .events import RTCTrackEvent
from .exceptions import InternalErro... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
769dc82799480274f236794a8a2eae28702fc797 | 755bf98f303f4cd8b4bbcb71a7e0154632545938 | /flexpart_management/notebooks/run_2019-09-25_15-25-01_/chech_flx_out_files_plot.py | f0fb747081071b33b03bbc31e0d6d96b0a78c8df | [] | no_license | daliagachc/flexpart_management | 6917941fded96f439a7fa86499629f82c851b736 | e22255ab9b5284c15832187625c8393fa6b3d0d0 | refs/heads/master | 2021-06-12T13:53:45.991483 | 2021-05-03T09:38:59 | 2021-05-03T09:38:59 | 180,370,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.2'
# jupytext_version: 1.2.3
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %%
from useful_scit.imps import (pd,np,xr,za,mpl,pl... | [
"diego.aliaga@helsinki.fi"
] | diego.aliaga@helsinki.fi |
0c0f7adc986984e4e057fe762645efc16a5ef95d | e318b567dfc6729c81e23a4bebe5ff5e5b21f511 | /electrum_zcash/storage.py | 147ac7e706fd8ca4f1c4bc48b32b4a640b30a99f | [
"MIT"
] | permissive | zebra-lucky/electrum-zcash | 066723c5b3150b288dc6922ce87803d68bfa1891 | e8f146a2524e71e4fc1c55078ca626fb9c5f7bd5 | refs/heads/master | 2022-03-30T09:04:54.185204 | 2021-06-05T23:16:50 | 2022-03-25T13:08:36 | 128,565,470 | 11 | 13 | MIT | 2021-07-12T07:17:47 | 2018-04-07T20:27:12 | Python | UTF-8 | Python | false | false | 8,525 | py | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2015 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without... | [
"zebra.lucky@gmail.com"
] | zebra.lucky@gmail.com |
206351a2918b89a2d40b7ac8a9bc9d64d1f1f23f | ad212b92beac17c4d061848c1dcd443d02a168c8 | /python/0804_unique_morse_code_words/listcomp.py | dd516954db61048f5bf6bf7425552de3745223fa | [] | no_license | 21eleven/leetcode-solutions | 5ec97e4391c8ebaa77f4404a1155f3ef464953b3 | 35c91e6f5f5ed348186b8641e6fc49c825322d32 | refs/heads/master | 2023-03-03T10:22:41.726612 | 2021-02-13T21:02:13 | 2021-02-13T21:02:13 | 260,374,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | """
804. Unique Morse Code Words
Easy
International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on.
For convenience, the full table for the 26 letters of the English alphabet is given be... | [
"noahlidell@gmail.com"
] | noahlidell@gmail.com |
3b71fb440c84ab7411d2fa88d9c775387c5391d4 | e8cbde72e392849b8564e01dd0afa1998ff897e3 | /exec_build_makers.py | 4b3d2a8d4fa51171f0297921922573a38d2c7de2 | [
"MIT"
] | permissive | clchiou/scons_package | 4e602a46abe7d956c4879670fe8018dc042ed31d | 60717cc975c684073811ce4842125bead734cebb | refs/heads/master | 2020-04-24T17:24:43.296185 | 2014-01-28T03:47:06 | 2014-01-28T03:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,701 | py | # Copyright (c) 2013 Che-Liang Chiou
from collections import defaultdict
import os
import sys
from SCons.Script import SConscript
from scons_package import builder_maker
from scons_package.builder_maker_registry import BuilderMakerRegistry
from scons_package.package_registry import PackageEnvironmentRegistry
from sc... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
20273417355a2418fb677ebb512de5bb7d1ad27b | 01df56558016062cc15a6fc1c3d806f7621107a3 | /sandwich/sandwich.py | e1089aa9d94b1aa1f707f7f881f9ab5c8d0940e6 | [] | no_license | jasonyu0100/ncss-challenge-2018 | 18b9df6bb56d2fcf1130fa84de30b5c3197db510 | 263971fa6e9cb408b466db2190febaf2a4657c0d | refs/heads/master | 2020-03-27T17:37:46.412844 | 2018-08-31T09:22:37 | 2018-08-31T09:22:37 | 146,862,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | preferences = open('preferences.txt')
sandwiches = open('sandwiches.txt')
ingredientsDict = {}
for line in preferences:
name,val = line.strip().split(',')
val = int(val)
ingredientsDict[name] = val
combinations = []
for line in sandwiches:
combination = line.strip().split(',')
combinations.append(combinatio... | [
"jasonyu0100@gmail.com"
] | jasonyu0100@gmail.com |
8020e4fb7edd9b5bdf21fe0b93dc387ba0f00057 | 29fae683de63d8684c359d9ad5ce7f52e9d48c78 | /app/challengepost/migrations/0001_initial.py | 867bd1090e07d9d6fdd1891fb42caf4df4ccb45c | [] | no_license | jeonyh0924/NBAproject | 4dfab90f6251abeaf2828f2aa240b61567d0ce17 | 2adf0d7a08c1d495bbfb07d6c2672e1ec19a2dbe | refs/heads/master | 2022-09-14T11:45:34.490333 | 2020-10-31T04:15:54 | 2020-10-31T04:15:54 | 165,981,470 | 0 | 0 | null | 2022-08-23T17:30:30 | 2019-01-16T05:46:23 | JavaScript | UTF-8 | Python | false | false | 2,854 | py | # Generated by Django 2.1.5 on 2019-11-03 17:52
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... | [
"hungyb0924@gmail.com"
] | hungyb0924@gmail.com |
c223ab8099dd311f7974290e399c964765d23ce6 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/apimanagement/v20200601preview/tag.py | e401279947014cc62378c6f41bf8b3a92b58d2b0 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,618 | 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
__... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
7e1f64d3a87d3f49612a6097558268293f2669bb | d994cee3810de8f5fa895807f415d8051dfd1319 | /HetMan/experiments/gene_baseline/models/stan_logistic.py | adbcf769528265c2cebf8ff3d998395e9e1b2fc1 | [] | no_license | ohsu-comp-bio/bergamot | b4e162525d1cc66975d64866cc68004ee42828e2 | 37fd50fc1ce6da83049a0cbbad5038a055fd3544 | refs/heads/master | 2023-07-24T01:15:27.695906 | 2019-09-19T01:39:13 | 2019-09-19T01:39:13 | 89,973,424 | 1 | 2 | null | 2023-07-06T21:07:53 | 2017-05-02T00:03:26 | Python | UTF-8 | Python | false | false | 760 | py |
from ....predict.pipelines import PresencePipe
from ....predict.stan.base import *
from ....predict.stan.logistic.classifiers import BaseLogistic
from ....predict.stan.logistic.stan_models import gauss_model
import numpy as np
from sklearn.preprocessing import StandardScaler, RobustScaler
class Base(PresencePipe):
... | [
"mgrzad@gmail.com"
] | mgrzad@gmail.com |
840b0adff2b36eb05984872e822994592a61e735 | ce3964c7195de67e07818b08a43286f7ec9fec3e | /vasp/md-MgSi2O5-gibbs-liquid.py | e3b4df235fa6c10af4e09729c96ca27315e3963a | [] | no_license | zhuligs/physics | 82b601c856f12817c0cfedb17394b7b6ce6b843c | 7cbac1be7904612fd65b66b34edef453aac77973 | refs/heads/master | 2021-05-28T07:39:19.822692 | 2013-06-05T04:53:08 | 2013-06-05T04:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,960 | py | #!/usr/bin/env python
"""
md-MgSi2O5-gibbs-liquid.py VERSION 1.0
Author: Brian Boates
compute Gibbs for MgSi2O5 liquid
"""
import os, sys, commands, glob, time
global massMg, massSi, massO
massMg = 24.3050 # in amu
massSi = 28.0855
massO = 15.9994
global tFinal
tFinal = 8 # in picoseconds
def main():
"""
... | [
"boates@gmail.com"
] | boates@gmail.com |
771662ae95f2dfe06e8b3268514f3f090663b791 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/mldsnoop/epgrec.py | ee701dc047b2bcc81b01deaa31fddbe8cb23a80a | [] | 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 | 4,654 | 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 |
3a60114ec93d6586457baf883e0806b00fbd1ca9 | 0c960bf7a0d5f6cda59e397023bf05f24b103b62 | /tests/job_normalize_test.py | 0bff115e3ebb17b5e4874483e8a9ee1c89e31c65 | [] | no_license | bhargavaganti/skills-api | eadc70fb8888cc4f4c64bc56cae2ea7245148eee | 937215fd50165e87c7c616207ff579d4947f293a | refs/heads/master | 2020-04-16T01:38:39.802267 | 2018-07-24T16:40:45 | 2018-07-24T16:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | from app import app
import httpretty
import json
import re
import unittest
class JobNormalizeTestCase(unittest.TestCase):
def setUp(self):
self.app = app.app.test_client()
self.app.testing = True
def mock_endpoint_with_response(self, source_filename):
httpretty.HTTPretty.allow_net_co... | [
"tristan.h.crockett@gmail.com"
] | tristan.h.crockett@gmail.com |
32844160970dc77e65d52f87d2931fc815661216 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /build/fuchsia/test/compatible_utils.py | 12904094245c8108858851bc52bcc8cf659c185c | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 7,123 | py | # Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Functions used in both v1 and v2 scripts."""
import os
import platform
import re
import stat
import subprocess
from typing import Iterable, List, Optional, Tuple
# File indi... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
383173156da44ce9827e816d768446c609a8e1df | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03970/s357446269.py | c570f8e21c8888c4b2f5791ccebf5217dd8fd598 | [] | 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 | 94 | py | s="CODEFESTIVAL2016"
t=input()
a=0
for i in range(16):
if not(s[i]==t[i]):
a+=1
print(a) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d4fd57ee39d785d4a8302d6258e3a81b96b6927c | 7705648ca52fd8da6c32d66f0c5b0245b0e6f549 | /February Challenge 2020/CASH/CASH.py | 41041b7469f2c202112f28740ea35e8066d196e7 | [] | no_license | candyer/codechef | 2694f7ff28ab8f4e2d766aaa9ab23dedd98cb086 | 1c09cd8abd1cea333e17f687a525c5cf616036a5 | refs/heads/master | 2021-07-09T16:33:02.355470 | 2020-07-20T12:03:57 | 2020-07-20T12:03:57 | 60,278,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | # https://www.codechef.com/FEB20B/problems/CASH
###################################################################
from typing import List
def solve(n: int, k: int, arr:List[int]):
'''
1 <= T <= 10^3
1 <= N <= 10^5
0 <= Ai <= 10^9 for each valid i
1 <= K <= 10^9
the sum of N over all test cases does not exceed ... | [
"candyer@users.noreply.github.com"
] | candyer@users.noreply.github.com |
652b1513d3b45c68d527c3bac5d6ca5bb44db0ff | b0af2f57aec5f6620fe73361f5aee18c3d12d7c5 | /code/robotics/PythonRobotics-master/PathPlanning/GridBasedSweepCPP/grid_based_sweep_coverage_path_planner.py | 8d9ccd2e2f6fcb9080062e220b861494135842b6 | [
"MIT"
] | permissive | vicb1/python-reference | c7d3a7fee1b181cd4a80883467dc743b935993a2 | 40b9768124f2b9ef80c222017de068004d811d92 | refs/heads/master | 2022-10-09T08:41:56.699722 | 2022-10-04T00:53:58 | 2022-10-04T00:54:06 | 171,308,233 | 1 | 0 | MIT | 2022-06-21T23:43:38 | 2019-02-18T15:27:28 | Jupyter Notebook | UTF-8 | Python | false | false | 9,999 | py | """
Grid based sweep planner
author: Atsushi Sakai
"""
import math
import os
import sys
from enum import IntEnum
import matplotlib.pyplot as plt
import numpy as np
sys.path.append(os.path.relpath("../../Mapping/grid_map_lib/"))
try:
from grid_map_lib import GridMap
except ImportError:
raise
do_animation = ... | [
"vbajenaru@gmail.com"
] | vbajenaru@gmail.com |
21ea56da619df315cdf7598ffa5d7d35eacb6575 | fd54c0886b81b49a55c31eb8c5254ce83df78785 | /Source_Code/madagascar/appussd/mg_data_interface/src/configs/After_config.py | 297bc5ff91477088800e529d8849754229c6f47f | [] | no_license | santsy03/RADIX | 7854896651833b1be6e3279be409db59a71c76e4 | da8f2535692697b80a6dc543b9eb270fe3d5e4d3 | refs/heads/master | 2021-01-12T09:48:32.085432 | 2016-12-13T06:01:41 | 2016-12-13T06:01:41 | 76,260,115 | 0 | 0 | null | 2016-12-13T06:01:41 | 2016-12-12T13:46:31 | null | UTF-8 | Python | false | false | 29,710 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
config for the madagascar data interface
'''
from string import Template
HOST_NAME = __import__('socket').gethostname()
CWD = "/appussd/mg_data_interface/src/consumer"
LOG_NAME = "data_responselog-{}".format(HOST_NAME)
PID_FILE = '/appussd... | [
"root@oc4686551628.ibm.com"
] | root@oc4686551628.ibm.com |
4f1a358b352d7c50d8d68df5268e79ba6cd8c43f | 1fb0669e639112b022c0ba9ee4163fbd89484292 | /hyper/regularizers.py | ff019a31946e791db576ea7da5b2569bffe5ae67 | [
"MIT"
] | permissive | pminervini/neural-schema-regularization | 71747552a8f1e7d07ef25f1fe4a313dee5b44467 | 03e7a86cd4d01d982b5c31f63bafe886135d7cb4 | refs/heads/master | 2021-03-27T10:12:12.885983 | 2017-06-06T07:43:30 | 2017-06-06T07:43:30 | 47,346,445 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,676 | py | # -*- coding: utf-8 -*-
import abc
from keras.regularizers import Regularizer
from keras import backend as K
from hyper import similarities
class L1(Regularizer):
def __init__(self, l1=0.):
self.l1 = K.cast_to_floatx(l1)
self.uses_learning_phase = True
def set_param(self, p):
self.... | [
"pasquale.minervini@insight-centre.org"
] | pasquale.minervini@insight-centre.org |
6b03331b68f2aac1473ff6901310a53a29f01ef3 | fca1dcd6a1ed138ecac462a4c9ccbd4d077599ef | /Notes/simplified_control_flow_instructions_part_7.py | dfd4ecc9a4c7bba9fc332834f26af33f5cdcee16 | [] | no_license | jasonbrackman/writing_a_compiler | 0a29e4d614671a878d07c2a4228b6ea1c930a782 | 9d4c1ef7a8f4a789f92d196de10b41069d86afec | refs/heads/master | 2021-01-13T10:30:59.396463 | 2016-10-01T03:04:32 | 2016-10-01T03:04:32 | 69,210,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,173 | py | """
Control Flow in 30 Minutes (or less) - Maybe
============================================
Note; This needs to be tested. I'm about 99% sure it's going to
work though.... - Dave
Prerequisites:
--------------
- You need support for booleans (Project 6)
- Your parse tree must have conditionals in it
(if statemen... | [
"brackman@gmail.com"
] | brackman@gmail.com |
6280c4de7075d1b296176971057f6c9edd7e6f58 | 91b0486da9102028401b2d05240672cbea381f20 | /posts/models.py | 298a5f31ce2d8d17ce162a26964b6cbe63f8dac1 | [] | no_license | royerguerrero/petgram | f607b706bd3ffe7cc0416bb05594f0c6a46310cb | aea9b7075763c627a379e557230e01c6c095a723 | refs/heads/master | 2023-08-12T04:00:07.202001 | 2021-01-25T02:31:37 | 2021-01-25T02:31:37 | 261,352,826 | 1 | 0 | null | 2021-09-22T19:02:41 | 2020-05-05T03:27:19 | Python | UTF-8 | Python | false | false | 606 | py | """Posts models"""
# Django
from django.db import models
# Models
from django.contrib.auth.models import User
from users.models import Profile
class Post(models.Model):
"""Post Model"""
user = models.ForeignKey(User, on_delete=models.CASCADE)
profile = models.ForeignKey(Profile, on_delete=models.Case)
... | [
"royjuni3431@gmail.com"
] | royjuni3431@gmail.com |
fca4947f023477fd1e6e3c4bc14c98b76f49d63e | bb767bfc9db2b0ab7f24d3561b168a829c4eb0bc | /1st_Year/1st_Semestre/Fpro/Python/saved files/fizzbuzz2.py | c5acc58b7d2c97c451b84fb02df31e224fab0fed | [] | no_license | Hugomguima/FEUP | 7e6e0faf5408d698a34c3b5aed977b20aa76c067 | f26887e2b8e92e41ae5050515cd0b3cdf94d6476 | refs/heads/master | 2023-06-09T05:21:38.897094 | 2021-06-29T17:00:01 | 2021-06-29T17:00:01 | 272,567,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 08:59:21 2018
@author: Hugo
"""
n = int(input("Input an integer number: "))
string = ""
if n <= 0 :
print("Input error")
for i in range(1, n + 1):
if i % 5 == 0 and i % 3 == 0:
string += ""
elif i % 3 == 0 and i % 5 != 0:
string += "... | [
"50011557+Hugomguima@users.noreply.github.com"
] | 50011557+Hugomguima@users.noreply.github.com |
fc3d1cdb855a95d7dc6475c4207701e0d3a412f6 | 213b8cab639c7d45cbf6a4fd46eb23e379d9d374 | /python/kivy_examples/hello.py | f5dfa581df293d9346251df4ce5ebbcef833ef95 | [] | no_license | DevDungeon/Cookbook | f85b04b690ea0a202ddfaeda6460b6ba5797cb70 | a49a1c77f2b89dc303fa9f2563bb3c19777e4c6c | refs/heads/master | 2023-05-12T06:58:50.606019 | 2022-03-30T04:48:16 | 2022-03-30T04:48:16 | 34,371,982 | 307 | 94 | null | 2023-05-03T22:53:45 | 2015-04-22T06:02:53 | HTML | UTF-8 | Python | false | false | 324 | py | # main.py
# Modified from https://kivy.org/doc/stable/guide/basic.html
import kivy
kivy.require('1.11.1') # Set to your Kivy version
# print(kivy.__version__)
from kivy.app import App
from kivy.uix.button import Button
class MyApp(App):
def build(self):
return Button(text='This is a button.')
MyApp().r... | [
"nanodano@devdungeon.com"
] | nanodano@devdungeon.com |
de0c6b0f5e708bdfcbb483daa7a484698f19e890 | 45647e2affbae0f2c7361e00ec408b98943f84c3 | /24_钴价格爬虫/cobalt_price.py | f5699e9b3348ed1cb713a5e1cf15dbe8b18e08f6 | [] | no_license | wgcgxp/Fixed_income_internship | 011a2f04534a7928e1148882f76eda87c268375d | a72a49ea727009b6af27d1ce4a24fc32678554fc | refs/heads/master | 2023-04-26T08:28:40.868300 | 2021-04-14T06:43:18 | 2021-04-14T06:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | import requests
from bs4 import BeautifulSoup
import os
import pandas as pd
import datetime
import time
def get_html(url):
headers={
'Host': 'hq.smm.cn',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/'
... | [
"zikepeng@outlook.com"
] | zikepeng@outlook.com |
0b6adbf10bdaa76f13878c9f45f526afcd1b1970 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/applibprofile/applibflow/parameter/bool/bool.py | ffe4a0ff6ff7a54e9df0ecd3c54917f748279290 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 4,176 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
6e24ab7b4c23d71fa4e031dd837faadad5c9737a | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/messenger/gui/Scaleform/data/contacts_data_provider.py | 5c8cd9001e40900f2f9af1124a99f2e05f64c9a0 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 29,432 | py | # 2017.08.29 21:50:57 Střední Evropa (letní čas)
# Embedded file name: scripts/client/messenger/gui/Scaleform/data/contacts_data_provider.py
import re
import Event
from gui.Scaleform.framework.entities.DAAPIDataProvider import DAAPIDataProvider
from gui.Scaleform.genConsts.CONTACTS_ALIASES import CONTACTS_ALIASES
from ... | [
"info@webium.sk"
] | info@webium.sk |
76c660f8996ea801ca3775b8b8aa4fe06df903dc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03739/s269030032.py | e4aa6302d1c9cc50a85750e6b21050249d8cfa9d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | import sys,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
input = sys.stdin.readline
mod = 10**9+7
Max = sys.maxsize
def l(): #intのlist
return list(map(int,input().split()))
def m(): #複数文字
return map(int,input().split())
def onem(): #Nとかの取得
return int(input())
def s(x): #圧縮
a = []
if l... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1aaeb90d67124d4bad95332156434059dbd2c854 | ae7884af1ec3965b7c0eec22edad6b74f78b7ba6 | /server/src/uds/transports/__init__.py | c244537e9ace92590d51e062cb4a5b18d278dad4 | [] | no_license | glyptodon/openuds | f4eefa319a3ead827dad999d24e5ee3854d1345d | 3908c875d30ec332490fc8c049bb537e10f10d08 | refs/heads/master | 2021-07-12T20:58:49.281242 | 2021-03-05T22:42:55 | 2021-03-05T22:42:55 | 62,921,174 | 0 | 1 | null | 2016-07-08T22:33:44 | 2016-07-08T22:33:44 | null | UTF-8 | Python | false | false | 3,314 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012 Virtual Cable S.L.
# 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,
#... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
9f80fdcdda0b7f143db2348f9d969305f34515d5 | c22da67f4b1ac5e7fc28a9f81bf9fccefb33308e | /companies/tencent/2016_rd_2.py | b33d63bac1a415fd1b41bd66814f5828967aa44d | [] | no_license | iamkissg/nowcoder | 3b9d7ffffaba2c1ee43647595ae86619e2efb504 | 9b7e590d8f2e200d1ac98672d10f3ae9216a13e1 | refs/heads/master | 2020-05-04T10:35:55.606425 | 2020-04-28T12:49:52 | 2020-04-28T12:49:52 | 179,091,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | # -*- coding:utf-8 -*-
"""ACCEPT"""
class Gift:
def getValue(self, gifts, n):
# write code here
sorted_gifts = sorted(gifts, key=lambda t: gifts.count(t), reverse=True)
if sorted_gifts.count(sorted_gifts[0]) * 2 > n:
return sorted_gifts[0]
else:
return 0 | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
ed798766f2d9668317f28e83c5fda12c9a1e4a49 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2506.py | 3f8690dec802e3f9606c2b7abd7d1f2974a14434 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import math
import os
import time
__author__ = 'ricky'
def stalls(N, K):
vals = {}
i1 = 0
i2 = 0
for i in range(0, K):
if len(vals) == 0:
num = N
else:
num = max(vals)
idx = vals[num]
vals[num] = idx - 1
if idx == 1:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6a32e40120dea3ee34b85e9289a55911720fa5e2 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/dropbox-hydra/allPythonContent.py | 0287c69fcf46d5fdbdb9dc63ff5757626fe55ee2 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,725 | py | __FILENAME__ = cluster_cop
#! /usr/bin/env python
import pymongo
from pymongo.read_preferences import ReadPreference
import sys
import time
import utils
shard_clients = {}
def syntax():
print >>sys.stderr, "syntax: %s mongos_host[:port]" % sys.argv[0]
print >>sys.stderr, "purpose: monitor clu... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.