blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7846f8255db1745b5d226e68954bff0d8967271f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/meetup/b8563d5f7e5c47ccb1c7b41038f3b9b8.py | 4f26d57c94d3cbbb1373dc04fa38f11b0c2acd03 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 674 | py | from calendar import Calendar
from datetime import date, datetime
def meetup_day(year, month, day_of_week, suffix):
week = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
decallage = ['1st', '2nd', '3rd', '4th', '5th']
possible_days = [date
for date in Calendar... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d0fdde56e23eeb4c07b17972b52d5f9eb7d3be2c | a59deecc5d91214601c38bd170605d9d080e06d2 | /12-lists/02-creating-lists-exercise/app.py | db152f9668a21526cf2df11c124aeca9d1bcd6b9 | [] | no_license | reyeskevin9767/modern-python-bootcamp-2018 | a6a3abdb911716d19f6ab516835ed1a04919a13d | d0234f10c4b8aaa6a20555348aec7e3571e3d4e7 | refs/heads/master | 2022-12-03T18:48:50.035054 | 2020-08-09T03:00:55 | 2020-08-09T03:00:55 | 286,109,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
# * Creating List Exercise
# * Define my_stuff
my_stuff = [1, 2, 3, 4, 'Camera', 2.5]
print(my_stuff)
# * Define nums
nums = list(range(1, 100))
print(nums)
# * Define every_thing
every_thing = [1, 1, 2, 3, 4, True, False, 'Welcome']
print(every_thing)
| [
"reyeskevin9767@gmail.com"
] | reyeskevin9767@gmail.com |
a5f283a0c346af1e9e9dae7e258c1693888a5c68 | 29182ef5108ee7b95e38bb380f37d7303f48e38c | /chapter4/dynamic_dispatch.py | cf80c1c3bd2a21bd578cbe0a4342732f6fdef813 | [] | no_license | cjlws/learntwisted | 32bcdbc7e03cf3f685c9d1fb958b1ce0911cc185 | 08068c82df9441a8739e2fe83b6f560e9557c386 | refs/heads/master | 2020-12-02T23:59:09.760019 | 2017-07-02T18:44:32 | 2017-07-02T18:44:32 | 95,969,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | from twisted.internet import reactor
from twisted.web.resource import Resource, NoResource
from twisted.web.server import Site
from calendar import calendar
class YearPage(Resource):
def __init__(self, year):
Resource.__init__(self)
self.year = year
def render_GET(self, request):
return "<html><body><pre>... | [
"vagrant@localhost.localdomain"
] | vagrant@localhost.localdomain |
1c557729989f7b843006996e58a05259f94e2ca1 | 5167f77d96d1dc5412a8a0a91c95e3086acd05dc | /contrib/signet/getcoins.py | 50efa39dabb80101125979839bfb5744bc29b305 | [
"MIT"
] | permissive | ocvcoin/ocvcoin | 04fb0cea7c11bf52e07ea06ddf9df89631eced5f | 79c3803e330f32ed50c02ae657ff9aded6297b9d | refs/heads/master | 2023-04-30T10:42:05.457630 | 2023-04-15T11:49:40 | 2023-04-15T11:49:40 | 406,011,904 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | #!/usr/bin/env python3
# Copyright (c) 2020 The Ocvcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import argparse
import subprocess
import requests
import sys
parser = argparse.ArgumentParser(description='Sc... | [
"contact@ocvcoin.com"
] | contact@ocvcoin.com |
dfbfdc7fb44640e56cd025a9413cbbde40b17e39 | 8531bee5e42d82ffc09ef274ccb2333ca02f03cc | /python/boj/1541.py | eda9affc48de0d4ca98daef97b17f747b96ccc2f | [] | no_license | ChoHyoungSeo/Algorithm_prac | 969f193f9ba349d0df3c1d7645fe3f42ec7581c4 | 02327623b5ea2211f4618e60b0bdcc61e16e1c5a | refs/heads/master | 2023-08-17T11:26:55.159895 | 2023-08-17T10:52:34 | 2023-08-17T10:52:34 | 210,917,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #- 기준으로
nums = input().split('-')
num_list = []
for num in nums:
ans = 0
sp_num = num.split('+')
for j in sp_num:
ans += int(j)
num_list.append(ans)
part_num = num_list[0]
for i in range(1, len(num_list)):
part_num -= num_list[i]
print(part_num) | [
"francesco.johs@gmail.com"
] | francesco.johs@gmail.com |
069dc707b0632cf1c5a3cb4df18d65619ab60bbf | c6b91bd831c3c2d8ca84090a4138ba424d3aca3e | /tests/test_input_format.py | b2a3fc2b4f12c8e078851c5bac35e9d116cc592e | [
"MIT"
] | permissive | izi-global/izir | 1598cbd50848f23cbaafc5068d64c07511b2bc50 | d1a4bfb5c082c3de1956402ef0280564014a3bd8 | refs/heads/master | 2023-01-12T21:02:08.964633 | 2018-09-26T08:39:28 | 2018-09-26T08:39:28 | 150,227,469 | 0 | 0 | MIT | 2022-12-26T20:30:38 | 2018-09-25T07:52:27 | Python | UTF-8 | Python | false | false | 2,733 | py | """tests/test_input_format.py.
Tests the input format handlers included with IZIR
Copyright (C) 2018 DiepDT-IZIGlobal
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, includi... | [
"diepdt@izi.asia"
] | diepdt@izi.asia |
f8d1297ea44ed1a793ce1c2cfa9fd693240cbeba | 7359735a42cbff8a53a65e130e66bea2f7cc7da5 | /backend/sevtuz/urls.py | 863981d3a6c505f854f44e1be4adbd46d16ea3c0 | [] | no_license | alexmon1989/sevtuz | 1a7b21d6cb70d4af15c80101cf828af0003447d5 | 9ff068089bc286ff238bac34f785db0775699091 | refs/heads/master | 2023-03-20T06:45:29.037723 | 2022-12-27T19:07:26 | 2022-12-27T19:07:26 | 110,521,561 | 0 | 0 | null | 2023-03-06T11:38:17 | 2017-11-13T08:35:43 | Nunjucks | UTF-8 | Python | false | false | 2,926 | py | """sevtuz URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
8b30a5e375f7baa3030cad4d52697be70ee7c542 | e3491189d2191c76ada57a78314db552e77fd273 | /Collect/MOD12/__init__.py | 5b5f16703b3ac1095823f76b2fc632c822d97c85 | [
"Apache-2.0"
] | permissive | CMicha/watools | 1c1ae0fa9ccd07e86c36730683d03fbc4ea12ce6 | 21226dfc78bee86281eec1a466ac483af415dab7 | refs/heads/master | 2021-06-19T01:16:40.798866 | 2021-03-05T14:21:35 | 2021-03-05T14:21:35 | 186,795,391 | 1 | 2 | Apache-2.0 | 2019-07-25T07:06:13 | 2019-05-15T09:36:20 | Python | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
"""
Authors: Tim Hessels
UNESCO-IHE 2016
Contact: t.hessels@unesco-ihe.org
Repository: https://github.com/wateraccounting/watools
Module: Collect/MOD12
Description:
This module downloads MOD12 LC data from
http://e4ftl01.cr.usgs.gov/. Use the MOD12.LC_yearly function to
download and cr... | [
"timhessels@hotmail.com"
] | timhessels@hotmail.com |
ce3bb0a1cde642dbd96d05709f47ed8a6b330281 | 24b1fa231f4e89f1a588c09ebee6fe4da6915c53 | /JSXGraph/ellipse-major-axis.py | 2fb0af7dc0e968f6d18675e9e5cc3ac6c92ef125 | [] | no_license | cyrt63/demos | a429214154cf0e51b58710f67670e1d902bfcac6 | a4b54b862dba4ad33a707511896324829f4cc7b1 | refs/heads/master | 2020-04-08T13:51:40.823058 | 2015-04-21T14:01:41 | 2015-04-21T14:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from browser import *
from math import *
graph = window.JXG.JSXGraph
document.getElementById("graph-container").innerHTML = '<div id="box" class="jxgbox"></div>'
div = document.getElementById("box")
div.style.width = "400px"
div.style.height = "400px"
board = graph.initBoard("box", {"axis":True,"grid":True})
A = ... | [
"geometryzen@gmail.com"
] | geometryzen@gmail.com |
fc0c6d42d55705a55d75448b48aedd7b83eb35d4 | 57235e5fbd29dc5e0b3f24649e15a48935edd65f | /boa3_test/test_sc/relational_test/MultipleExpressionsInLine.py | f39cca1a51162e646ac82164102643919d4050e3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | DanPopa46/neo3-boa | ae75543bdc4e0aeadf45578b6b5e4c45b9253557 | e4ef340744b5bd25ade26f847eac50789b97f3e9 | refs/heads/development | 2023-04-01T19:25:08.216180 | 2021-04-15T17:45:38 | 2021-04-15T17:45:38 | 358,663,228 | 0 | 0 | Apache-2.0 | 2021-04-16T16:46:46 | 2021-04-16T16:46:31 | null | UTF-8 | Python | false | false | 159 | py | from boa3.builtin import public
@public
def Main(a: int, b: int) -> bool:
is_equal = a == b; is_greater = a > b; is_less = a < b
return not is_equal
| [
"mirellamedeiros.09@hotmail.com"
] | mirellamedeiros.09@hotmail.com |
e500afc230e2ef41dd2965c45e0c38fe2f121acd | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/_0001_0500/0498_diagonal-traverse.py | 3e2597353cc8cbae5a911b74fe8c592223615b76 | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-05-31 08:00:00
# @Last Modified : 2020-05-31 08:00:00
# @Mail : lostlorder@gmail.com
# @Version : alpha-1.0
"""
# 给定一个含有 M x N 个元素的矩阵(M 行,N 列),请以对角线遍历的顺序返回这个矩阵中的所有元素,对角线遍历如下图所示。
#
#
#
# 示例:
#
# 输... | [
"wzy-511@163.com"
] | wzy-511@163.com |
421d24d761f0d0d7f2eb71013a74d6ee3a1f4114 | 5c7f2ff956b1fd1477d56486e239b6e661a08efd | /supervised_learning/0x02-tensorflow/6-train.py | 8fee1bb3b2ad3aa113a2d05cfe8a2a9ae986e2bc | [] | no_license | diego0096/holbertonschool-machine_learning | 60c5f40e185df04d02d9887d966542e85a981896 | 64b8984846c2b2b88bbf11125b55b482c7b74eea | refs/heads/master | 2023-04-02T01:27:59.263397 | 2021-04-02T21:33:51 | 2021-04-02T21:33:51 | 279,229,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | #!/usr/bin/env python3
"""Train our network"""
import tensorflow as tf
calculate_accuracy = __import__('3-calculate_accuracy').calculate_accuracy
calculate_loss = __import__('4-calculate_loss').calculate_loss
create_placeholders = __import__('0-create_placeholders').create_placeholders
create_train_op = __import__('5... | [
"dfqz93@hotmail.com"
] | dfqz93@hotmail.com |
1f6bb509c76aecac5ca76ffccfd72ca3b1116c85 | 0bfe86a8cc52a4e63ece2dc875cd48af88d13549 | /Security/BasicAuthPro/BasicApp/migrations/0001_initial.py | 832909aaae77038e4ee6452a9a31e939029d171f | [] | no_license | naveenkumar2505/restframework | 1f5fb27fde6641338b259c310b5d7fefa5cd8e6c | 0415fbd66f351c9ab74804f68a27c08a8baf1c29 | refs/heads/master | 2020-05-24T10:16:14.808719 | 2019-05-17T13:54:53 | 2019-05-17T13:54:53 | 187,225,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-02-08 07:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',... | [
"naveentechhie@gmail.com"
] | naveentechhie@gmail.com |
7fcdf8c983191343e9aafde0138495436cce1314 | ebd9c249d446d809abc9a0f3e4593f34922a1b93 | /lintcode/475_binary_tree_maximum_path_sum_ii.py | 82d7f7a0b4631d758370ab258d571656243f9ba2 | [] | no_license | jaychsu/algorithm | ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d | 91892fd64281d96b8a9d5c0d57b938c314ae71be | refs/heads/master | 2023-05-11T00:40:39.237813 | 2022-09-14T07:43:12 | 2022-09-14T07:43:12 | 106,277,156 | 143 | 39 | null | 2022-09-14T07:43:13 | 2017-10-09T11:51:48 | Python | UTF-8 | Python | false | false | 445 | py | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
def maxPathSum2(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
return 0
le... | [
"hi@jaych.su"
] | hi@jaych.su |
fd75b8c1c36b8c0e94113dd441c85933c7ea4705 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02903/s472623135.py | 4ba55085d39e0adb0cc346a45553ea9b9eb5ad52 | [] | 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 | 142 | py | H,W,A,B=map(int,input().split())
X="".join(map(str,[1]*A+[0]*(W-A)))+"\n"
Y="".join(map(str,[0]*A+[1]*(W-A)))+"\n"
print((X*B+Y*(H-B))[:-1]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8b890b9b946b6478def82dc0bca80dd4ec8bf197 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/maxCounter_20200727095333.py | 070cfed6533154ed0dbfaefd0c89c81b66c38fdd | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | def counter(N,A):
# we are going to create a counts array that gets to N
# we are going to increment by 1 if we come across any
# number in the A ---> array
# when we get to a number that is greater(out of range)
# we've maxed out and at this point all counters are set to the max value
# then... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
26f9ef075b28d71fc56d39674a9ef2d2f0beaf4e | 3b00f143f858c495df46cf88a27a18bee388c6b6 | /Trees/second_minimum_node_in_a_binary_tree.py | 6e1ef0a083f34d9bdcf03255180896f1780fbce3 | [] | no_license | deepcpatel/data_structures_and_algorithms | 5a4d70e9d74e933a16b132d6701a0dc6b19d9203 | 2c7849f1e31c5c60924eb70830e524b44306d652 | refs/heads/master | 2023-01-01T04:47:19.704199 | 2020-10-27T17:35:48 | 2020-10-27T17:35:48 | 307,295,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | # Link: https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/
# Approach: The tree structure helps us generate the pattern to find second minimum node. At every step, we would have three conditions - (1). right.val == left.val == min_val, (2). right.val
# < left.val and right.val == min_val and (3). left... | [
"deepcpatel@yahoo.in"
] | deepcpatel@yahoo.in |
e49f0bc8aecb0162cdd0afebe3a476f496cf27c3 | 4c93a040adc9fc448c61bfe1957a30985e759c2e | /ls/joyous/tests/test_recurrence.py | 21267e30a20e59c708ff3768fb319bdd650c31fa | [
"BSD-3-Clause"
] | permissive | springload/ls.joyous | cf28c443f7f8bb61348002ec134d16596bb9c61d | eb078f37552c1e027fe8b8773b8a7c10cb55e898 | refs/heads/master | 2020-03-26T07:11:27.166885 | 2018-08-12T05:32:24 | 2018-08-12T05:32:24 | 144,640,645 | 1 | 0 | null | 2018-08-13T22:36:09 | 2018-08-13T22:36:08 | null | UTF-8 | Python | false | false | 4,461 | py | # ------------------------------------------------------------------------------
# Test Recurrence
# ------------------------------------------------------------------------------
import sys
import datetime as dt
from django.test import TestCase
from ls.joyous.utils.recurrence import Recurrence, Weekday
from ls.joyous.... | [
"david@linuxsoftware.co.nz"
] | david@linuxsoftware.co.nz |
b4d55a4241113d94263aa7229d06257ef42bd0f4 | 347c70d4851b568e03e83387f77ae81071ab739e | /fn_zia/fn_zia/components/funct_zia_remove_from_blocklist.py | ca4d2b7fc74ef934f77b18659318864b91912d6c | [
"MIT"
] | permissive | neetinkandhare/resilient-community-apps | 59d276b5fb7a92872143ce2b94edd680738693ce | 3ecdabe6bf2fc08f0f8e58cbe92553270d8da42f | refs/heads/master | 2021-12-27T09:05:36.563404 | 2021-09-29T13:04:56 | 2021-09-29T13:04:56 | 159,804,866 | 1 | 0 | MIT | 2021-08-03T19:45:45 | 2018-11-30T10:07:32 | Python | UTF-8 | Python | false | false | 3,179 | py | # -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2021. All Rights Reserved.
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import logging
from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError
from resilient_lib imp... | [
"shane.curtin@ie.ibm.com"
] | shane.curtin@ie.ibm.com |
3ec99d7ef8bcd4ac32fa56708b16206cab18efbe | 11b0c124262ac40de87d756389082462d8452e4d | /keras/keras39_GRU_ensemble.py | 3d8130667bd46cda82678f3274854048c2b08f5d | [] | no_license | Hyunwoo29/keras01 | 164b519f9bb70d55f7bfa91c66529cee4d012b24 | 494611a94420f8e268c37085ccf0b0de4aa71048 | refs/heads/main | 2023-08-06T07:19:13.288634 | 2021-10-05T14:03:56 | 2021-10-05T14:03:56 | 383,744,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # 앙상블 모델을 만드시오.
# 결과치 신경쓰지 말고 모델만 완성할것!
# 실습
# keras37을 함수형으로 리폼하시오.
import numpy as np
from tensorflow.keras import layers
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import Dense, SimpleRNN, Dropout, LSTM, GRU, Input
from tensorflow.python import keras
#1. 데이터
x1 = np.array([[1... | [
"nbaksa3@gmail.com"
] | nbaksa3@gmail.com |
984e7402e880c41dd8c6e4d1a52addf45356d11a | 45a61af9028a1805c08b6f7638c7aebe8140bd2d | /Hydrology/CIREN/llena_fichas_Infraestructura.py | c5fe3ce18429889561b37e71abbbfcf982ef9dc5 | [] | no_license | gumilar19/Personal | 1c1fac036af3a4b9d4d425b7c8cb604271b94fd2 | c666b07c5184006aca8e6ad946cc98ef72dfe9fe | refs/heads/master | 2023-08-14T20:39:07.164849 | 2021-09-29T11:19:10 | 2021-09-29T11:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 2 13:20:18 2021
@author: farrospide
"""
import geopandas
import os
capa = 'AR'
capas = {'AR': 'AR_Maule_2020.shp',
'bocatomas': 'bocatomas_maule_2019.shp',
'canales': 'canales_maule_2020.shp',
'embalses': 'embalses_maule_2019.shp',
'... | [
"52244870+ccalvocm@users.noreply.github.com"
] | 52244870+ccalvocm@users.noreply.github.com |
1fd0af53eac520436cdf3b15c7edd444161ef91d | 1fddb12ae9b7db260b9161983a726f1528ece940 | /Part_01/Cap_06/Dicionario_6.8.py | 5d95567ab0c5801022bca7e33307b3a5fc824abe | [] | no_license | davicosta12/python_work | aecf642bbbf2a007fba159f305b4ab21ff00503f | 5df62d3ced25b7e04cda71846fd07862dda39b4c | refs/heads/master | 2023-04-23T09:49:31.923211 | 2021-04-27T00:31:42 | 2021-04-27T00:31:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | robson = {
'nome': 'robson',
'tipo': 'tartaruga',
'nome_dono': 'rafael',
}
caca = {
'nome': 'caca',
'tipo': 'coelho',
'nome_dono': 'adriana',
}
tigre = {
'nome': 'tigre',
'tipo': 'cachorro',
'nome_dono': 'andre',
}
fred = {
'nome': 'fred',
'tipo': 'pato',
'nome_dono': 'arthur',... | [
"deadspace24@hotmail.com"
] | deadspace24@hotmail.com |
f8758d76b7f134999084bcb8426f3f421709a19b | 9b527131c291b735a163226d1daac2397c25b712 | /Lecture4/2-distance-tree.py | bd286443e357d61f5375db52468b54f1708b668b | [] | no_license | arnabs542/BigO-Coding-material | dbc8895ec6370933069b2e40e0610d4b05dddcf2 | 3b31bddb1240a407aa22f8eec78956d06b42efbc | refs/heads/master | 2022-03-19T18:32:53.667852 | 2019-11-27T23:55:04 | 2019-11-27T23:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import queue
def bfs(src, graph, visited, k, pairs):
depth_limit = k
q = queue.Queue()
q.put(src)
visited = [False for i in range(n)]
visited[src] = True
dist = [0 for i in range(n)]
dist[src] = 0
#print(src)
while not q.empty():
#print(q.queue)
v = q.get()
for w in graph[v]:
if not visited[w]:
... | [
"tranhoangkhuongvn@gmail.com"
] | tranhoangkhuongvn@gmail.com |
22f23ddbd63f9c05e37c7a1aa4f105c47396b17c | e3d969e2c9e4b57f4f7d58af5e44a00aa8fb15d3 | /0222 Count Complete Tree Nodes.py | da9c46f4ae6fb92a185b59a4c43b9e5dd1bc8177 | [
"MIT"
] | permissive | kevin-fang/leetcode | 2744ff01e791db6f60edf946ef71451fae92ef6f | 3958f888b30bb3e29916880ecec49b3870a0bea3 | refs/heads/master | 2022-12-15T07:50:01.056016 | 2020-09-10T03:47:53 | 2020-09-10T03:47:53 | 294,296,037 | 3 | 0 | MIT | 2020-09-10T03:47:39 | 2020-09-10T03:47:38 | null | UTF-8 | Python | false | false | 1,012 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def is_at_least_size(self, root, size, height):
while root and height > 1:
if size%(2**(... | [
"mdabedincs@gmail.com"
] | mdabedincs@gmail.com |
e7e0db085d8dd78ff2dc96e4c227f12b5bf8f211 | 120590571f03b6cf895f6d09cbfac757e5e31b48 | /utils.py | 9d7edf4c28c7b676921b3fa5b2777c3624233d98 | [] | no_license | gridl/pgsanity | df02dd5796a7e5753b1bc4899d7f8771504634bf | faebbd51579b19793e1eb8cab2d837413f220d11 | refs/heads/master | 2020-03-23T02:06:25.259249 | 2015-10-22T23:41:53 | 2015-10-22T23:41:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine
from sqlalchemy.sql import func
from sqlalchemy.types import DateTime
DEBUG = False
def debug... | [
"i.chernyavska@gmail.com"
] | i.chernyavska@gmail.com |
59175cba1a70f5b1729b24da66542c7fa7b030f0 | 31bc1bc11b46a894491bc32050c8c33a38f3332a | /python就业班/03-网络编程/05-echo服务器.py | e9594f449f8d47cc8b8c0a3876bfa33ead7f872c | [] | no_license | Julinus-LI/pythonNote | 48e49328330c4a7c411ce5ece2057157af149060 | 4e96fd0dd4bf474c4d0634ccbfe414b9addcbcbc | refs/heads/master | 2021-10-07T09:04:08.750567 | 2018-12-04T08:44:01 | 2018-12-04T08:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | #!/usr/bin/env python
# coding=utf-8
from socket import *
#1. 创建套接字
udpSocket = socket(AF_INET, SOCK_DGRAM)
#2. 绑定本地的相关信息
bindAddr = ('', 7788) # ip地址和端⼝号, ip⼀般不⽤写, 表示本机的任何⼀个ip
udpSocket.bind(bindAddr)
num = 1
while True:
#3. 等待接收对⽅发送的数据
recvData = udpSocket.recvfrom(1024) # 1024表示本次接收的最⼤字节数
#4. 将接收到的数... | [
"1374367549@qq.com"
] | 1374367549@qq.com |
0a2ab9947b827929e97bc178e8132610cfe3c7b9 | 556c9650d5df902e9bfd93c5799eb4281fc0bf01 | /scrapydd/commands/package.py | 86e80e22d4a726fb69fe0d60df67c583af5d3ef6 | [
"Apache-2.0"
] | permissive | kevenli/scrapydd | a7823b7dad53ec5b68f33ea1c40a934fbfe693ff | ba7854a69e756e5d0e6b5f835d8f36fe57f7f7c2 | refs/heads/master | 2023-08-19T00:44:00.339381 | 2020-09-16T08:52:32 | 2020-09-16T08:52:32 | 70,041,146 | 5 | 3 | Apache-2.0 | 2023-08-14T22:13:17 | 2016-10-05T08:08:29 | Python | UTF-8 | Python | false | false | 1,393 | py | from scrapy.utils.python import retry_on_eintr
from scrapy.utils.conf import get_config, closest_scrapy_cfg
import os
import sys
import glob
from subprocess import check_call
_SETUP_PY_TEMPLATE = """
# Automatically created by: scrapydd
from setuptools import setup, find_packages
setup(
name = '... | [
"pbleester@gmail.com"
] | pbleester@gmail.com |
00e49abbbc905185fd43c9b31614702c3b79cdc5 | f6217c228984107f1fdde63fc544c92ad32efd13 | /set5/challenge39.py | 2148c2cde01c51b1add2f57d3fb2d22cda4379c8 | [
"MIT"
] | permissive | lukius/mts | 8be64972fd700ec9110789a7e15307e3fc3dfecb | 96d3d8b28742a474aca67bfcb079577c878bbb4c | refs/heads/master | 2021-06-06T03:22:21.991908 | 2017-11-28T23:52:50 | 2017-11-28T23:52:50 | 22,904,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from common.challenge import MatasanoChallenge
from common.ciphers.pubkey.rsa import RSA
class Set5Challenge39(MatasanoChallenge):
PLAINTEXT = 'Vos tambien la tenes adentro.'
def expected_value(self):
return self.PLAINTEXT
def value(self):
rsa = RSA()
ciphertext = rs... | [
"lukius@gmail.com"
] | lukius@gmail.com |
8a2b10b3bf23cc2880e7a5c77f088812a7b6b302 | e9449b3cf7e77c1405b138930bc09eeef309afaf | /lib/keras/retinanet/loss.py | 21e3a2f539c016d584080ce1020cceef0f42c036 | [] | no_license | eglrp/BeginnerAI | b1b27cc86bc195e0d2b624a7d3a72ef3fc537e9a | e2c06141e2ac1a382a4c7fc043a07e9f69a1f7e0 | refs/heads/master | 2020-04-11T12:07:52.004232 | 2018-11-12T06:48:50 | 2018-11-12T06:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,973 | py | import keras
import tensorflow as tf
def smooth_l1(sigma=3.0):
""" Create a smooth L1 loss functor.
Args
sigma: This argument defines the point where the loss changes from L2 to L1.
Returns
A functor for computing the smooth L1 loss given target data and predicted data.
"""
sigma_... | [
"jeffcobile@gmail.com"
] | jeffcobile@gmail.com |
9ebe2335b057de0cf545a9146a03a479b7523c33 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/KISS/testcase/firstcases/testcase5_007.py | 1edd1b4c8dc7f0434139af110fd3711bcb486e66 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
a8c22cf47fcda4a358fe6d95fdc2ab91355259ab | cac31c8c2117be4c0dbce2f4413b4bc24e1a4d4b | /0x07-python-test_driven_development/3-say_my_name.py | fd766cf0900cab14a30c67495c9f22859948d3e4 | [] | no_license | Julianeme/holbertonschool-higher_level_programming | 47a7b67c10247ec7cf49662fec1d233fd1f44238 | 04a14320359fd67b667008343d5e7fab3fc93ec9 | refs/heads/main | 2023-08-11T08:12:58.900262 | 2021-09-23T01:07:35 | 2021-09-23T01:07:35 | 361,739,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/python3
"""
Returns the concatenation of
first name and last name
only works with strings
"""
def say_my_name(first_name, last_name=""):
"""
Returns the input matrix divided by div variable
"""
if type(first_name) is not str:
raise TypeError("first_name must be a str... | [
"juliantve@gmail.com"
] | juliantve@gmail.com |
017c8ca3c72f05e67a0869c090d85a35c1ee5044 | b030e97629ce909e60065fb061110d9b0818aee1 | /501-600/543.Diameter of Binary Tree.py | 36c9e0dfdf86a379d6875b38f6a7294654644510 | [] | no_license | iscas-ljc/leetcode-easy | 40325395b0346569888ff8c065cacec243cbac98 | e38de011ce358c839851ccac23ca7af05a9d0b32 | refs/heads/master | 2021-01-20T09:27:07.650656 | 2017-11-22T03:07:47 | 2017-11-22T03:07:47 | 101,595,253 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | class Solution(object):
def getdeep(self,root):
if root is None:
return 0
left=self.getdeep(root.left)
right=self.getdeep(root.right)
self.deep=max(self.deep,left+right)
#求解左右深度和
return max(left,right)+1
def diameterOfBinaryTree(self, root):
self.deep=0
s... | [
"861218470@qq.com"
] | 861218470@qq.com |
9df5c5263384fcce1ef2a9b912d1c10b9e068014 | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_bivariate.py | dc1100b190a1869a8490e4379b53fcc7a64adfe3 | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.bivariate import bivariate
def test_bivariate():
"""Test module bivariate.py by downloading
bivariate.csv and testing shape of
extracted d... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
bac12af964f4330ea16893ac759d6e305d20d7dd | 33c51931bc7d6f73da5a64ecc0e7cb751e7fc62c | /karesansui/db/access/machine.py | d15d909c142620fdab4825f15eb3da908d373afe | [
"MIT",
"GPL-1.0-or-later"
] | permissive | qmutz/karesansui | e86ed107f313f8c4140797a2c3250c5f16b524c2 | f4ba1cf6f88cf76c3e4dbc444139d73134f7c9d1 | refs/heads/develop | 2023-05-06T14:52:38.668631 | 2019-02-01T03:57:00 | 2019-02-01T03:57:00 | 316,682,704 | 0 | 0 | MIT | 2021-06-03T14:59:45 | 2020-11-28T07:43:33 | null | UTF-8 | Python | false | false | 5,540 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of Karesansui Core.
#
# Copyright (C) 2009-2012 HDE, Inc.
#
# 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 restric... | [
"taizo@karesansui-project.info"
] | taizo@karesansui-project.info |
1773ca0fa5066398d20d0d647b47271f7c15dd5d | e8b0e90d938e92ba0319ba673568677810430cd0 | /387.py | f2ddf320ef401423e0721ad0f7d12ab1ec1eb204 | [] | no_license | ilanschnell/project-euler | 6d99673d101a56d2e2b2d301f0738ca1986afbf7 | 24f38523b5631c71894b957e5d59e66bd6da1149 | refs/heads/master | 2023-08-27T08:03:45.206810 | 2023-02-16T16:23:05 | 2023-02-16T16:23:05 | 225,198,011 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | from sympy.ntheory import isprime
def compute(N):
result = 0
# n must be a right-truncatable Harshad number, and the other
# arguments are properties of the number n
def find_harshad_primes(n, digitsum, is_strong):
nonlocal result
s = digitsum
# shift left by 1 digit, and try ... | [
"ilanschnell@gmail.com"
] | ilanschnell@gmail.com |
2820e6926c21206d2ae8813e136c36fe80e16dc7 | e137e58654449f28870e895eb7059eb780b6e3eb | /novaclient/service_catalog.py | 00502340129aa9c5db50aac58677af59b855adc8 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ntt-pf-lab/backup_python-novaclient | c94f04ba8516aae607f771ddaade7806289593f0 | dcd0e9aaa21dda45d490b771c6e7a7c6ab2ab13c | refs/heads/master | 2021-01-01T05:32:57.081398 | 2011-09-20T14:10:52 | 2011-09-20T14:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | # Copyright 2011, Piston Cloud Computing, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | [
"chmouel@chmouel.com"
] | chmouel@chmouel.com |
68e6be44b770a57da9335955ec4086de5694ef31 | 6c2f307035f31e7527eb754c00df57cfc9914530 | /generate_site.py | 710f6b2a664f45ed76400ddf00ea584ac7298f35 | [
"MIT"
] | permissive | wd5/django-site-gen | 80223f5818868fb77ce03e204b35285cfe477223 | dd52b1afc6d283b7dc7eb0d8aa985892db055afe | refs/heads/master | 2020-12-25T06:05:41.138825 | 2012-04-19T18:23:55 | 2012-04-19T18:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,357 | py | #!/usr/bin/env python
import imp
import os
import subprocess
import sys
import yaml
from optparse import OptionParser
from random import choice
from django.conf import settings
from django.template import Context
from django.template.loader import get_template
def configure(site_type, site_name, port, config_file=... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
0014da66ed996a15d88b91de320bc7e0751ee85b | 057e0ea5fbe7fdc278d7aa07d213dce8f6ccc791 | /web/status.py | 67b0ef72715bb5a57df21607287d20316999968d | [] | no_license | ktt-ol/spaceticker | f9e9c5995cdb550d40d0af4e19bc184689f693af | beef429e54818644615dbfc051282c4ff34830a2 | refs/heads/master | 2020-05-23T14:24:48.007417 | 2014-02-05T17:36:38 | 2014-02-05T17:36:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | import requests
import json
import socket
import threading
import time
STATUS_URL = "http://status.kreativitaet-trifft-technik.de/api/statusStream?spaceOpen=1"
import logging
log = logging.getLogger('spaceticker')
def parsed_events(events):
for event_lines in events:
resp = {}
for line in event_l... | [
"olt@bogosoft.com"
] | olt@bogosoft.com |
ed88f30e363ee9c74a9eb98e33476f91cd389f3b | 5d6ef1469740109d732441e88aed91890f2b8361 | /accounts/migrations/0004_auto_20170103_0158.py | 3fa1648b084a3e63bba8300f37f982ae856a3a10 | [] | no_license | boiyelove/workflow | 1ce88ee830fe4536db4423962296557629d81a7e | 273c168f0a0979f29f5154d3c67337091e0fe4b3 | refs/heads/master | 2023-07-17T16:40:05.178225 | 2020-08-08T16:59:06 | 2020-08-08T16:59:06 | 172,429,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-01-03 06:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_userprofile_verified'),
]
operations = [
migrations.Rename... | [
"daahrmmieboiye@gmail.com"
] | daahrmmieboiye@gmail.com |
cdf94c6238c9f18e1aad3a98d133f0bbd343622b | 1620e0af4a522db2bac16ef9c02ac5b5a4569d70 | /Ekeopara_Praise/Phase 2/TUPLE/Day 52 Tasks/Task8.py | c8efb7472000388f7c64030f97daaaef4caa7d00 | [
"MIT"
] | permissive | Ekeopara-Praise/python-challenge-solutions | cda07902c9ffc09ba770ae7776e5e01026406a05 | 068b67c05524b5c5a0d6084315eca3424c768421 | refs/heads/master | 2022-12-15T15:29:03.031583 | 2020-09-25T06:46:27 | 2020-09-25T06:46:27 | 263,758,530 | 2 | 0 | null | 2020-05-13T22:37:33 | 2020-05-13T22:37:32 | null | UTF-8 | Python | false | false | 320 | py | '''8. Write a Python program to create the colon of a tuple.'''
from copy import deepcopy
#create a tuple
tuplex = ("HELLO", 5, [], True)
print(tuplex)
#make a copy of a tuple using deepcopy() function
tuplex_colon = deepcopy(tuplex)
tuplex_colon[2].append(50)
print(tuplex_colon)
print(tuplex)
#Reference: w3resource | [
"ekeoparapraise@gmail.com"
] | ekeoparapraise@gmail.com |
c95b9df1d909b877e67350dfee4dde9e40e67358 | 2a6f4d4a91c451f428bf585d4a909bb950f87ecb | /tests/covid_challenge/test_cli.py | f152799afb201ec98ea5f316d6c614a719327df1 | [] | no_license | jggrimesdc-zz/Covid_Challenge | c00e5a4747d9a0222d6bb3132de4d0afab6606f8 | 8eee3fd43542e8a90c9b212854d476a17e6325a4 | refs/heads/master | 2023-03-07T22:20:35.570719 | 2021-02-20T02:19:10 | 2021-02-20T02:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,138 | py | import pytest
import covid_challenge.cli
from datetime import date, timedelta
def test_main_with_doubling_time():
""""
Tests a run via CLI with the minimum amount of parameters. Exponential
factor is defined by doubling-time.
"""
arguments = [
"pytest",
"--current-hospitalized", ... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
03e113f2cddec9947fe589f68881aadb5d70c72d | 03a11192950db709f51ba9c8e399a86bf18c7c8d | /functionalprogramming/decarators.py | a9035b29304ea4916a468864b24bb1c83522a12f | [] | no_license | vivekvgsk/pythonallpgm | 266e64b6407ddafeac86cab549458a0f4aa08582 | b66c0ad592acb1034183eea0a6b1195e3e03b593 | refs/heads/master | 2023-04-25T09:23:11.896900 | 2021-05-04T15:33:24 | 2021-05-04T15:33:24 | 359,359,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def div_deco(func):
def inner(n1,n2):
if n1<n2:
(n1,n2)=(n2,n1)
return func(n1,n2)
return inner
@div_deco
def div(num1,num2):
return num1/num2
res=div(2,10)
print(res) | [
"vivekvgsk@gmail.com"
] | vivekvgsk@gmail.com |
8af43cc5ef530e8b7e11681cbf1c3d8c67a02784 | 5c0493ef3ed08009387eda5eda98c35b9b7c8187 | /setup.py | 04e86706854e954fcfe5bffdecea38021875ebe4 | [
"Apache-2.0"
] | permissive | lyft/awseipext | 2c3668a01004a53fc17a84f3626ac6895f5c87b1 | 113328b43a57951255fc405593314610307555c0 | refs/heads/master | 2023-09-05T02:13:42.902272 | 2021-10-08T22:11:39 | 2021-10-08T22:11:39 | 64,725,170 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import os
from setuptools import setup, find_packages
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
about = {}
with open(os.path.join(ROOT, "awseipext", "__about__.py")) as f:
exec (f.read(), about)
setup(
name=about["__title__"],
version=about["__version__"],
author=about["__auth... | [
"rlane@lyft.com"
] | rlane@lyft.com |
418cdc6c2e7f9b069cf8e1ab5ad4409efd3315dc | 148125096da896fd93292d2cd408265d159fec28 | /qa/rpc-tests/may152018_forkactivation_1.py | be4e3f4b4aa2c148f45ef80a9c28b538a2dddce2 | [
"MIT"
] | permissive | lycion/lkcoinse | 7cfbcbdfc1e98f20d9dfc497ea65fd75ca6de25d | 9cf9ed5730217566b44466c22dc255f0134ad1bb | refs/heads/master | 2020-03-30T03:24:44.245148 | 2018-09-28T04:55:30 | 2018-09-28T04:55:30 | 150,548,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,579 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Lkcoinse Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import test_framework.loginit
import time
import sys
if sys.version_info[0] < 3:
raise "Use Python 3"... | [
"lycion@gmail.com"
] | lycion@gmail.com |
418af91cee9dd654057ba162dfac0515effa815a | c3bc08ddabf1ed7c72823adea6318b47d7eb92eb | /math/physicalunits.py | ef8d724d7737bd8e447b1036b569ca5b795194fd | [
"MIT"
] | permissive | spinpluspython/spputils | 9753724f17bee3fd1e12c3082bf2567966406302 | 2b04c7e658b811d529ab03f9b26468bfe821332f | refs/heads/master | 2021-05-03T05:30:42.279101 | 2018-11-20T11:11:18 | 2018-11-20T11:11:18 | 120,638,768 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | # -*- coding: utf-8 -*-
"""
@author: Steinn Ymir Agustsson
"""
def main():
pass
def get_energy_density(spot_size=100, power=1, rep_rate=283000):
""" Return energy density in microJoule /cm2
spotsize as FWHM diameter of gaussian profile in micrometers
power in mW
reprate in Hz
P... | [
"sagustss@uni-mainz.de"
] | sagustss@uni-mainz.de |
509ca82a195a9c34e779ae15a001bc978c68c56b | fb114e1b9800d71c2914f608c49dfea1fc5668dc | /crontest/crontest.py | f5bc0a6017f6bcdfb77e1cdd4074c1fa2bd9a296 | [] | no_license | mobread/Python | 46ff4a5210901e32ee8a4de6392dedbd100beb69 | 1f35d68f549b4323ee11b41e50a8eb7c9220de9e | refs/heads/master | 2021-05-30T05:10:00.138842 | 2016-01-20T22:34:57 | 2016-01-20T22:34:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #something to do every two minutes
import time
import datetime
ts = time.time()
st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S')
file_obj = open('/home/pi/crontest/crontest.txt', 'a')
file_obj.write(st)
file_obj.write(' timestamp test \n')
file_obj.close()
| [
"pi@raspberrypi"
] | pi@raspberrypi |
1dea4577e0892107466ef92c2a5394a2ef16c7f1 | 7907dd80d51da495f8fc82885231cd1c43d38235 | /hms/hms_auth/migrations/0023_auto_20210219_1035.py | 83ff8f850ea0a595714a9934be0efbade67c7a13 | [] | no_license | opexzy/HMS-Backend | 5a54b3818a3a921cf4b7090249ba0a8d91417efd | 650af551b6c385db9dbae0ebe1544834b6ac5d4c | refs/heads/master | 2023-03-29T02:22:08.798354 | 2021-04-02T03:11:36 | 2021-04-02T03:11:36 | 336,312,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 3.1.2 on 2021-02-19 09:35
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('hms_auth', '0022_auto_20210218_1421'),
]
operations = [
migrations.AlterField(
... | [
"mayluv@hotmail.co.uk"
] | mayluv@hotmail.co.uk |
40ad3e9f64da761b9382b7f0e3f3bff85fb973a2 | 9e41adf86b2c166a219f0b6d9371089c5f2d7d93 | /Exerciciospython/Utilizando modulos TEXTOeNUM/e018.py | 2194dad41b34f93bb40eca22eeaa59be527354c5 | [] | no_license | Nadirlene/Exercicios-python | 1aaead61dd0efcb5303f6294e765e9e1d54506cc | 3fe82e166003922ef749756a249840ed1fe940b0 | refs/heads/main | 2022-12-25T21:35:06.172839 | 2020-09-28T15:08:37 | 2020-09-28T15:08:37 | 299,343,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import math
a = float(input('Digite o valor do ângulo: '))
seno = math.sin(math.radians(a))
cos = math.cos(math.radians(a))
tan = math.tan(math.radians(a))
print('O angulo {} tem o SENO de {:.2f} \n COSSENO de {:.2f} \n e TANGENTE de {:.2f}'.format(a, seno, cos, tan))
| [
"nadirleneoliveira@yahoo.com"
] | nadirleneoliveira@yahoo.com |
6c7c0d59974494b8921beb2d6151288a4f1261a2 | 98503e87afc8c749155038b72ebf42e198cc045a | /setup.py | dfff03929d0d741731c9031305adfb6b7cfcc6cc | [
"MIT"
] | permissive | WilliamMajanja-zz/xopen | 8b028666d70331198323dd0e5f38091786935e56 | 06823e2920b2aca9d66f907feac941862f5bd7ce | refs/heads/master | 2022-11-25T19:26:35.257446 | 2020-04-02T09:13:32 | 2020-04-02T09:13:32 | 286,841,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 5):
sys.stdout.write("At least Python 3.5 is required.\n")
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_r... | [
"marcel.martin@scilifelab.se"
] | marcel.martin@scilifelab.se |
054451278e053c5e63883bc908c5e81a3ba068d2 | bbebd95ce007baf3be20ca14fc8fe696c4c7dd96 | /L8 Python Scripts/MonOhm_b995/FlashingButtonElement.py | c69547f48f1f2f7fd3e23230ddeb2edb7348b527 | [] | no_license | spiralune/monomodular | 70eeabcb5a9921b7bab30d8c5fd45ca237cde9c3 | 862bb02067c2fbc9816795904b2537a9b5e1c7b6 | refs/heads/master | 2020-12-11T04:06:25.390424 | 2014-07-09T19:45:41 | 2014-07-09T19:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,468 | py | # emacs-mode: -*- python-*-
import Live
#from ValueListenerComponent import ValueListenerComponent
from _Framework.ButtonElement import ButtonElement
from _Framework.InputControlElement import InputControlElement
from _Framework.NotifyingControlElement import NotifyingControlElement
from MonOhm_Map import COLOR_M... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
b405752c345e50ca4310941f32fcf7a015387893 | c882b8a20537ad9850a57c51226c5c4462bfd85c | /podder_task_foundation/utilities/__init__.py | 8eb9cd767686583741b69cabd805454da56aa109 | [] | no_license | tthufo/podder-task-foundation | 086b76208460d5eaae3b8a51717acdb0ef5b585a | d0897da906a689486704cc9b973d44ec0ad348c7 | refs/heads/main | 2023-03-23T02:51:35.684229 | 2021-02-15T09:07:27 | 2021-02-15T09:07:27 | 343,996,723 | 0 | 0 | null | 2021-03-03T04:04:13 | 2021-03-03T04:04:12 | null | UTF-8 | Python | false | false | 138 | py | from .data_file_loader import DataFileLoader
from .json_encoder import NumpyJsonEncoder
from .strings import Strings
from .uid import UID
| [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
25ca030ed3d8e2eeb34e11c1a60e57ed76b17381 | 5201e237c0d58cdfdbc2fdf8103f9141161eb9f8 | /itkProjectedLandweberDeconvolutionImageFilterPython.pyi | 0819920a448d71e8c38a280572c119891344f246 | [] | no_license | hjmjohnson/itk-stubs | 704f5b92a755e55b81d02fcad62a366143e125f3 | 771951d007ae425b758e088eae6f9e4ca0e4afb1 | refs/heads/main | 2023-01-22T05:50:33.649088 | 2020-12-04T01:31:09 | 2020-12-04T01:35:06 | 318,368,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,901 | pyi | import itk.itkImageToImageFilterCommonPython
from itk.support import itkHelpers as itkHelpers
from typing import Any
class _SwigNonDynamicMeta(type):
__setattr__: Any = ...
def itkProjectedLandweberDeconvolutionImageFilterIF2IF2_Superclass_New(): ...
class itkProjectedLandweberDeconvolutionImageFilterIF2IF2_Supe... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
53fd10f8effad83bb53825df8ecbab96dfec966a | c0f511fe8af64aea87c0d96d7114b9dd23127bf8 | /utils/master.py | 2f114e586547ed631de6f6c27811af84130c544d | [] | no_license | wsyx123/firecloud-agent | 54456b1041a72879f441ab900094dfa0bac9d303 | a8e3f0da86f84049b391fa5d9619d9d837bad6df | refs/heads/master | 2020-05-24T18:06:23.025637 | 2019-05-18T20:35:31 | 2019-05-18T20:35:31 | 187,402,657 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,873 | py | #!/usr/bin/env python
#_*_ coding:utf-8 _*_
'''
Created on May 12, 2019
@author: yangxu
'''
import urllib
import urllib2
import cookielib
from subprocess import Popen,PIPE
import json
import platform
from plugin.cpu import cpu_num
from plugin.disk import disk_size
from plugin.network import net_if_stat
from plugin.me... | [
"690943136@qq.com"
] | 690943136@qq.com |
71d2ca35c772896645386abce3ad53801e7c5eea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03212/s551098654.py | c35ce941492ccdaae689e65505065b19b357431e | [] | 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,791 | py | N = input()
n = len(N)
ans = 0
if n < 3:
print(0)
exit()
if n > 3:
for i in range(3,n):
ans += 3**i - 3*(2**i) + 3
a = int(N[0])
if a > 3:
ans += 3**(n-1) - 2*(2**(n-1)) + 1
if a > 5:
ans += 3**(n-1) - 2*(2**(n-1)) + 1
if a > 7:
ans += 3**(n-1) - 2*(2**(n-1)) + 1
b = int(N[1])
c = int(N[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1f651f400b31cfb258dae9f2f0004ae352157800 | ee988eb6ad8eb96cacc5137f1d3cb372c3f74c0e | /code/tasks/HANNA/utils.py | b3b14ac122d60661e66c0397880ba570fcc6e2cc | [
"MIT"
] | permissive | weituo12321/PREVALENT_HANNA | bb8818ddc23bd46dcd00b1bba928ce605c10a764 | 8b3e9b591f3b002c019d5202f04dc45d186808a5 | refs/heads/master | 2021-04-09T03:06:21.696254 | 2020-07-21T19:26:10 | 2020-07-21T19:26:10 | 248,832,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,283 | py | import os
import sys
import re
import string
import json
import time
import math
from collections import Counter
import numpy as np
import torch
import networkx as nx
import base64
import csv
def load_nav_graphs(scan, path=None):
''' Load connectivity graph for each scan '''
def distance(pose1, pose2):
... | [
"weituo.hao@gmail.com"
] | weituo.hao@gmail.com |
bfad1d93dec12799e22961112c9c06ed49a496ee | 6bf492920985e3741440ba53e1c7f8426b66ac1f | /snakemake_rules/rules/dfilter/dfilter_run_dfilter_bam.smk | 7fa416358d1ebe00443986ca6f4e000e5ca152a0 | [
"MIT"
] | permissive | ukaraoz/snakemake-rules | 5b2ba7c9ec19d88b56067a46f66fd0c72e48c368 | 07e96afeb39307cdf35ecc8482dc1f8b62c120b9 | refs/heads/master | 2020-03-31T15:20:44.444006 | 2018-09-07T08:53:47 | 2018-09-07T08:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | smk | # -*- snakemake -*-
include: "dfilter.settings.smk"
rule dfilter_run_dfilter_bam:
"""Run run_dfilter command. Currently only works on one file."""
params: options = config['dfilter']['options'],
cmd = config['dfilter']['cmd']
input: chipfile = "{prefix}.bam"
output: bed = "{prefix}.dfilt.be... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
b827784e00a4f207442bd550283c57a069633b3e | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /3.4.2/_downloads/7d40c40c96a62a41226026de985e1260/spines_bounds.py | 96205a43d38eb38f50a7fa005dc5293002e0f249 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 901 | py | """
===================
Custom spine bounds
===================
Demo of spines using custom bounds to limit the extent of the spine.
"""
import numpy as np
import matplotlib.pyplot as plt
# Fixing random state for reproducibility
np.random.seed(19680801)
x = np.linspace(0, 2*np.pi, 50)
y = np.sin(x)
y2 = y + 0.1 * n... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
42e7184419dd600194562a4ee108a52154486a8f | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /mks_7th/ord7_3D_localstate_test.py | ba95c80e604afef534acecffd879bc93489389d9 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 07 15:19:39 2014
Trying to generate additional terms to represent seventh order microstructure
descriptors.
3-D case
@author: nhpnp3
"""
import numpy as np
import itertools as it
## MICROSTRUCTURE GENERATION ##
el = 3
ns = 2
micr = np.round(np.random.rand(el, el, el, ... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
4c85632bce56468db9045beffac58d5a0a34232e | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /Temp/q863_all_nodes_distance_k_in_binary_tree.py | f22b8003e0681ae3bedf6d20dcb0a0edab91accb | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,657 | py | # Time: O(n)
# Space: O(1)
# 解题思路:
#
from common import TreeNode
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
class TreeNode1:
def __init__(self, x):
self.val... | [
"429134862@qq.com"
] | 429134862@qq.com |
5eac72f664f5fb5177098844e68eccc116844810 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_11365.py | 4ac5b116fd254b1f7ae280c4f5c92368f7b1aee6 | [] | 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 | 138 | py | # What is the best drop-in replacement for numpy.interp if I want the null interpolation (piecewise constant)?
scipy.interpolate.interp1d
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
468fb235b8050f99a794f0e684a8bddccbd48070 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/vision/v1p3beta1/vision-v1p3beta1-py/noxfile.py | ef09ecf7584ab024ccaccabf927dc620416964ab | [
"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 | 3,563 | 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 |
935d366419ef1597e72899fa334017253ae9fddb | 9f5dd76fe21a66f90700f83840f2491dd34b17f9 | /tensorflow/python/keras/premade/linear.py | 451ac3d59088ca36d79cb61efeaa49d4181c4cb4 | [
"Apache-2.0"
] | permissive | thuanvh/tensorflow | b328964da68744bbd77799b13729835dcf4dbf79 | a599e0e2fc5a0e7964ad25c2f5c7e6ed5b679dc6 | refs/heads/master | 2021-07-20T13:55:40.451003 | 2019-12-03T06:34:09 | 2019-12-03T06:34:09 | 119,012,773 | 3 | 1 | Apache-2.0 | 2019-12-03T06:42:38 | 2018-01-26T06:05:36 | C++ | UTF-8 | Python | false | false | 5,947 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e52167f0d881577fdb66394a4542c0f2ee59dd80 | 8e1d96b0d599c077ca02a4bce797ac3bc6f32668 | /user/migrations/0010_auto_20160206_1816.py | 67d190c85fe0e24420356c3b4f7a5ec97ff703b4 | [] | no_license | nikoladang/dailyhn | 7ef8473217a3ea18f884ff76c613d7eb5c995893 | b3e45b4e6891b4955110f9a253f29f1bce5f2602 | refs/heads/master | 2021-01-15T13:14:53.245533 | 2016-08-03T12:51:45 | 2016-08-03T12:51:45 | 48,632,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-06 11:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0009_auto_20160205_1950'),
]
operations = [
migrations.AlterField(
... | [
"ducthinhdt@gmail.com"
] | ducthinhdt@gmail.com |
a91db2f3d89653e30b5760e883552ed814494265 | 41777d4d219ea97b4632f4a8a31ab6c82a60772c | /kubernetes_typed/client/models/v1_webhook_conversion.py | 8c93915b4b973c1bc87d1994857a5399f746b74a | [
"Apache-2.0"
] | permissive | gordonbondon/kubernetes-typed | 501d9c998c266386dc7f66f522f71ac3ba624d89 | 82995b008daf551a4fe11660018d9c08c69f9e6e | refs/heads/master | 2023-07-18T12:06:04.208540 | 2021-09-05T19:50:05 | 2021-09-05T19:50:05 | 319,183,135 | 24 | 2 | Apache-2.0 | 2021-09-05T19:50:06 | 2020-12-07T02:34:12 | Python | UTF-8 | Python | false | false | 418 | py | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1WebhookConversionDict generated type."""
from typing import TypedDict, List
from kubernetes_typed.client import ApiextensionsV1WebhookClientConfigDict
V1WebhookConversionDict = TypedDict(
"V1WebhookConversionDict",
{
"clientConfig": ApiextensionsV1... | [
"noreply@github.com"
] | gordonbondon.noreply@github.com |
b5f42636f77212601d5e3f62129923cfe0d69c8d | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /atcoder/arc/arc072/e.py | a128fea3dc8c5f8f9a5a6c2232d97ef861d39bc9 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | # -*- coding: utf-8 -*-
N, D = map(int, raw_input().split())
d = map(int, raw_input().split())
Q = int(raw_input())
q = map(int, raw_input().split())
| [
"roiti46@gmail.com"
] | roiti46@gmail.com |
f2e0b1700e107a36d0df7d6a66bd5637cad6aa6b | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/learn_runner_lib.py | a5bdb858042f905c5f5256c73bcd19ff8db80726 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:9e9bd67b41d18a763918a9f87bacf3c7c68f862dac68fe021602328c904fb07d
size 1098
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
3202edfc343a0fd94a0797e6d4c15ff4b80477e8 | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/maznicyn28/raraze96/lab3/tzi.py | 3d193e2d593a07df3cccca6534e36d8f21a8fa66 | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | import math
s = int(input())
k = int(s % 10)
s = int(s // 10)
smm = k
k = int(s % 10)
s = int(s // 10)
smm = smm + k + s
print(smm) | [
"you@example.com"
] | you@example.com |
dfd82b6b4db7287f230e6ab0e3ce53145564e84e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2588/58778/257267.py | 0df6f0e9cb60c736273fc09e6e496a40f34704e7 | [] | 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 | 636 | py | n=int(input())
for i in range(n):
m=int(input())
k=m
z=0
if(m==1):
z=1
s=1
temp=[]
while(m!=1):
for j in range(2,m+1):
if(m%j==0):
temp.append(j)
m=int(m/j)
break
numlist=list(str(k))
c=0
for d in numlist... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5b46c2104e923bd95f99c339365c79719c29f00a | 8dbc93e608c5c8aa0a6bf6a6db194ac31964d880 | /cbdshop/urls.py | 080457e8704ab271598aef9ea1090c81de5a5405 | [] | no_license | Kamelgasmi/CBD | 3254b1d48b8435328a65236b019a7011f7d9aae6 | ef239b97640118619478579218fdf4d2da1ae128 | refs/heads/main | 2023-04-04T16:04:45.758408 | 2021-04-22T14:56:54 | 2021-04-22T14:56:54 | 359,452,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('pages.urls')),
path('cars/', include('cars.urls')),
] + static(settings.MEDIA_URL, d... | [
"kam_7@hotmail.fr"
] | kam_7@hotmail.fr |
f8dcd93b72e290bd9ae63043d6ccfac7f9db2dbf | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /56_4.py | 476af976f4f8c0135a6dcf9b3257cc04040e3810 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | class Solution(object):
def merge(self, intervals):
"""
:type intervals: List[List[int]]
:rtype: List[List[int]]
"""
intervals.sort(key=rightbound)
res=[intervals[0]]
for v in intervals[1:]:
if v[0]<=res[-1][1]:
res[-1][1]=max(v[1... | [
"noelsun@mowennaierdeMBP.lan"
] | noelsun@mowennaierdeMBP.lan |
661721ef250e85761fdbbb79a819b60b3e8caeba | f2f7afcac4aa6f579c806baede0b6996ef21d679 | /search/routes/context_processors.py | 60130434d1a0b2b238e8cefed215653651153f5d | [
"MIT"
] | permissive | alefnula/arxiv-search | 8ec8b31277cad298d5ed8a061b5e021b83b857a8 | 9ce21d469b6266c9a9ea008dd4b5ee681c16d695 | refs/heads/master | 2020-12-05T13:43:11.301247 | 2019-12-17T20:10:27 | 2019-12-17T20:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,716 | py | """Context processors for use in :mod:`.routes.ui`."""
from typing import Dict, Callable, Optional, Any, List
from urllib.parse import urljoin, urlparse, parse_qs, urlunparse, \
urlencode, ParseResult
from flask import request, url_for
from arxiv import taxonomy
from ..domain import Classification
def url_for_... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
316050ca4cbb30e0b08563b4567073be94c21171 | e6acc5f23e01078a32dae472fd1acbd67493e938 | /buy/views.py | 776cd14230a2d5dcc985a8822a25ce331a8806ca | [] | no_license | ShantanuBal/TransactionMgmtSystem | eac6f0156ad2118a92457ba434bae4bd48233165 | faa89130891aed0ddb6b1620a8eb481f79c82e96 | refs/heads/master | 2020-04-30T03:29:55.500887 | 2015-05-28T18:27:55 | 2015-05-28T18:27:55 | 35,459,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,447 | py | # Create your views here.
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
import MySQLdb
import datetime
import pdb
pwd = "scuderia800"
def buy(request):
check = check_login()
if check == 1:
return HttpResponseRedirect("/login")
... | [
"shantanu.r.bal@gmail.com"
] | shantanu.r.bal@gmail.com |
7799e4800e3ced4e3a6a475dcf817e0d425869f8 | 08f5dd97433ce84868dbd95020e49f795e8e3f42 | /creations/migrations/0060_webpage_display_title.py | 83be97b3889bb1cb1b78a4b712f8b96d00aaf3fc | [] | no_license | katur/forthebirds | f76e9d78f8b71f5cb13f22f3c417e737f6048896 | 2118fabebd8780cd3151f5ddd88245de402590e9 | refs/heads/master | 2023-08-08T18:57:55.722516 | 2023-03-28T03:04:19 | 2023-03-28T03:04:19 | 22,771,365 | 2 | 1 | null | 2023-07-25T21:23:49 | 2014-08-08T20:56:20 | Python | UTF-8 | Python | false | false | 460 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-24 00:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('creations', '0059_auto_20160109_1844'),
]
operations = [
migrations.AddField... | [
"katherine.erickson@gmail.com"
] | katherine.erickson@gmail.com |
d0a6d4acd7ed0d07d6a36580ece526f0498641f7 | e638e9fda0e672fa9a414515d0c05a24ab55ad38 | /SwapNodesInPairs.py | 9ce0212832d0cc1dcb0ab9b7dc187d862cd3deb7 | [] | no_license | zjuzpz/Algorithms | 8d1c7d50429aa5540eb817dc5495a20fc3f11125 | 2df1a58aa9474f2ecec2ee7c45ebf12466181391 | refs/heads/master | 2021-01-21T05:55:48.768728 | 2020-08-04T22:44:08 | 2020-08-04T22:44:08 | 44,586,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | """
24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space.
You may not modify the values in the list,
only nodes itself can be changed.
"""
class ListNode(obje... | [
"zjuzpz@gmail.com"
] | zjuzpz@gmail.com |
8a91b334609173c492025ed8effc7f0c30f1d7b8 | c82d049de07e93700b534056139df1ab698b889e | /src/hunter/backports/inspect.py | 668b482d80ca87008aab871b14f05fb9768588b1 | [
"BSD-2-Clause"
] | permissive | macduff23/python-hunter | ecbea8d25b094db79cb8e4642ea9f8b9fd5fadbd | 3c0a3564fbef31bae704d2768940f0cd9b0e0f86 | refs/heads/master | 2021-05-21T08:59:43.766092 | 2020-03-19T23:57:06 | 2020-03-19T23:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,952 | py | import types
_sentinel = object()
def _check_instance(obj, attr):
instance_dict = {}
try:
instance_dict = object.__getattribute__(obj, "__dict__")
except AttributeError:
pass
return dict.get(instance_dict, attr, _sentinel)
def _check_class(klass, attr):
for entry in _static_getm... | [
"contact@ionelmc.ro"
] | contact@ionelmc.ro |
8f38556c035d6ad754850e2d34c102672956ae30 | 0ea64713582df26190354acc39eeedba513e7548 | /Intro/Bite 110. Type conversion and exception handling.py | bea2789ab94d2a304e09a35b6aeeb7abc5de271f | [] | no_license | SimonSlominski/Pybites_Exercises | 38e9fe477a4539f4e96347c19a6b49df40028d48 | 07f95ec7bfd3c3563478e3d161425f8d4e50c945 | refs/heads/master | 2023-08-04T14:56:58.795590 | 2023-08-03T10:03:43 | 2023-08-03T10:29:20 | 241,180,910 | 2 | 0 | null | 2021-04-20T19:47:02 | 2020-02-17T18:39:07 | Python | UTF-8 | Python | false | false | 1,294 | py | """
Bite 110. Type conversion and exception handling
In this Bite you complete the divide_numbers function that takes a numerator and a denominator
(the number above and below the line respectively when doing a division).
First you try to convert them to ints, if that raises a ValueError you will re-raise it (using r... | [
"simon.slominski@gmail.com"
] | simon.slominski@gmail.com |
87c92bcce2d0cf58b21fe43b4c7cdf9d46fbcf72 | e6f83d91402d586e42d656cd351fc9d6cb07105b | /kivy_4510 fixed py2 kivy_uix_image ascii error/main.py | 4d873cb05cb8647e0689a21e64c81ce67e43362a | [] | no_license | Bakterija/push_examples | 466c9068e46f27783ae1779decfeb782d8190d8d | f52bb077b14843984aa6803b90c2c56a0d3c3f4e | refs/heads/master | 2020-12-29T00:56:40.374551 | 2016-08-27T22:56:55 | 2016-08-27T22:56:55 | 64,957,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
import kivy
from kivy.app import App
import image
class NotificationDemoApp(App):
def build(self):
sorc = "ØØØØØØØ example.jpg"
img = image.Image(source=sorc)
return img
if __name__ == '__main__':
NotificationDemoApp().run()
| [
"atiskr@gmail.com"
] | atiskr@gmail.com |
59f529dcc03e413bbe3c6972105ca9dfbd26e625 | e836c9a9620c9c9940c74064e28f97f38a8a4ba1 | /failures/parsedeath.py | da6e9e2fae22318b94a56a29fd60236b1a25635f | [] | no_license | ftrain/deaths | 72028fcbef6578c40aeb0bba1528a7cf413c5827 | 3769aaea0bc411e716d2da107eb23f7874cdf440 | refs/heads/master | 2016-09-06T05:09:53.232624 | 2015-07-07T19:10:03 | 2015-07-07T19:10:03 | 38,708,967 | 3 | 1 | null | 2020-05-04T21:44:03 | 2015-07-07T19:08:24 | Python | UTF-8 | Python | false | false | 4,521 | py | #!/usr/bin/env python3.4
from fixedwidth import fixedwidth
import datetime
import sqlite3
fw_config = {
'acd': {
'type': 'string',
'start_pos': 1,
'length': 1,
'required':False,
'alignment':'left',
'padding':' '
},
'ssn': {
'type': 'string',
'... | [
"ford@ftrain.com"
] | ford@ftrain.com |
ec7843f434de4c281231fa83ab3ed1bc499cd41e | 9f0f5816b9d810c9ce01c56588024e1c804809fe | /study/day4/day4_1.py | 9335cf048184c578302f4aa8a40f4c42cc93a7ef | [] | no_license | parkwisdom/Python-Study-step1 | bf8cc8c5f89bfb9ccbb395a3827e23d4f0d6ae9a | bae2f5653c5a0d1eac1d4b89476ece7e0802d33b | refs/heads/master | 2020-04-03T13:49:58.990930 | 2018-10-30T00:37:29 | 2018-10-30T00:37:29 | 155,300,210 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | # from bs4 import BeautifulSoup
# html="""
# <html><body>
# <ul>
# <li>
# <a href="http://www.naver.com">naver</a>
# </li>
# <li>
# <a href="http://www.daum.net">daum</a>
# </li>
# </ul>
# </body></html>
# """
# soup=BeautifulSoup(html,'html.parser')
# # print(sou... | [
"43980901+parkwisdom@users.noreply.github.com"
] | 43980901+parkwisdom@users.noreply.github.com |
cbf3070ffbef8556c29d9c25ba67c4b1e4943115 | 9a2b9059600765d48af259bb1f26d30e64cf4302 | /.history/entity_20211023182759.py | a8ac78477e7fb83de7d4b46b6b396cbc92549bdc | [] | no_license | Igor-Boson/Space-Invaders-Python | 478079551f7d1ba7046ae052041f9db0c434bcd1 | 1a12329ced82e80edf4446e5d6895f1656c639db | refs/heads/main | 2023-08-16T01:21:29.407569 | 2021-10-23T21:45:56 | 2021-10-23T21:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | from color import Color
import pygame
class Entity:
def __init__(self, handler, x, y, size, color, speed):
self.handler = handler
self.x = x
self.y = y
self.size = size
self.color = color
self.speed = speed
self.health = 1
def draw(self, screen):
... | [
"79543678+Igor-Boson@users.noreply.github.com"
] | 79543678+Igor-Boson@users.noreply.github.com |
aedc0e5dcb320a49656f8e7f7b9e1a722a8ab634 | 57f5c04e15aa3872db60715ea686f285d10c139e | /avaliacoes/api/viewsets.py | c0288edde2d0737c8a0dbaac8308ae55b107a88a | [] | no_license | edsonrp/djangoRest-pontos-turisticos | 43cf8b38146beed7c7fef1285cf7be126a891b40 | 1beb7d8fc7e70108582f22c11dc5b5290be399e5 | refs/heads/main | 2023-01-10T13:33:41.675487 | 2020-11-16T01:28:59 | 2020-11-16T01:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from rest_framework.viewsets import ModelViewSet
from avaliacoes.models import Avaliacao
from .serializers import AvaliacaoSerializer
class AvaliacaoViewSet(ModelViewSet):
queryset = Avaliacao.objects.all()
serializer_class = AvaliacaoSerializer | [
"davi-rocha2@hotmail.com"
] | davi-rocha2@hotmail.com |
a93a2a2f7f5bb1d437d150c4d2c7e0060d567f96 | a101af55dd0f584fe43884acaa125cca982c384a | /samples/service_robot/workspace/catkin_ws/build/slam_gmapping/gmapping/catkin_generated/pkg.develspace.context.pc.py | cfaffb8c88a20d414459b7f264ac451330465023 | [] | no_license | anupamkaul/robot_ball_chaser | 32a585c55af884427b50496aa1615a12e3dd8ad2 | 70f6952c3042d5d16400685a0f5d976a4c417767 | refs/heads/master | 2020-06-07T09:34:45.317405 | 2019-06-20T21:54:11 | 2019-06-20T21:54:11 | 192,988,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | 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 = "gmapping"
PROJECT_SPACE_DIR = "/home/... | [
"anupam.kaul@yahoo.com"
] | anupam.kaul@yahoo.com |
5fd36ae5c1303c926db4cb78e29121ded60a9165 | 7ce761781e7f5b57b2469adce459a71b4758694d | /env/lib/python2.7/site-packages/csc_utils/vector.py | 865bde4c2a7c9ec2c4fe21287106863da06fc9e5 | [] | no_license | hophamtenquang/RecSys | c4fa18d1ba262670a284b2fba2ca97b882ef0f4c | 535472844a046cadd9230302da647a54afff95e8 | refs/heads/master | 2021-01-19T17:00:32.924064 | 2017-08-30T10:31:32 | 2017-08-30T10:31:32 | 101,031,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,715 | py | import numpy as np
base64_alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
base64_array = np.chararray((64,), buffer=base64_alphabet)
log2 = np.log(2)
def pack64(vector):
'''
Packs a NumPy vector into a kind-of-floating-point, kind-of-base64
representation, requiring only 3 by... | [
"hophamtenquang@gmail.com"
] | hophamtenquang@gmail.com |
510df947dec1ae0f4f63705037abcad55323cb6f | 6245db4e53782ab380de287f945bc026e3c6b281 | /LeetCode/serialize-and-deserialize-binary-tree.py | b2e1f0600a969c64f7cb5a5196b0db127be5dd34 | [] | no_license | rashmierande/python_exercise | e510174820efb793cfe435ad53c6baa34c829d86 | 9703b67a1f5614594244b4d8d2c42ebfb6a2aaec | refs/heads/master | 2021-01-23T00:53:17.235391 | 2018-03-15T05:46:53 | 2018-03-15T05:46:53 | 85,846,226 | 0 | 1 | null | 2018-01-21T18:11:11 | 2017-03-22T15:42:09 | Python | UTF-8 | Python | false | false | 2,688 | py | # Time: O(n)
# Space: O(h)
# Serialization is the process of converting a data structure or
# object into a sequence of bits so that it can be stored in a file
# or memory buffer, or transmitted across a network connection link
# to be reconstructed later in the same or another computer environment.
#
# Design an alg... | [
"eranderashmi25@gmail.com"
] | eranderashmi25@gmail.com |
9a49741a1cce40f1dbdbbe3001108f8c2a6e65e1 | e68a40e90c782edae9d8f89b827038cdc69933c4 | /res/scripts/client/tutorial/gui/scaleform/offbattle/settings.py | ddef320eaf8ac9cbb51bad5337df083c3e5116fd | [] | no_license | webiumsk/WOT-0.9.16 | 2486f8b632206b992232b59d1a50c770c137ad7d | 71813222818d33e73e414e66daa743bd7701492e | refs/heads/master | 2021-01-10T23:12:33.539240 | 2016-10-11T21:00:57 | 2016-10-11T21:00:57 | 70,634,922 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,191 | py | # 2016.10.11 22:15:43 Střední Evropa (letní čas)
# Embedded file name: scripts/client/tutorial/gui/Scaleform/offbattle/settings.py
from gui.Scaleform.framework import GroupedViewSettings, ViewTypes, ScopeTemplates
from tutorial.gui.Scaleform.pop_ups import TutorialGreetingDialog, TutorialQueueDialog
from tutorial.gui.S... | [
"info@webium.sk"
] | info@webium.sk |
b4675f3827e66421e97a0f5bc2eb7b19f8f07278 | 85c30319fa7a54414fedae612e287b91ce9f10df | /modulo4_ciencia/bloco_37/dia_3/exercicio_dia_2.py | e3be963f310159b25e8d4fe08b768addf97cbd99 | [] | no_license | Gustaft86/trybe-exercises | 9892c1ef968c0dd44dd88ad9dbd01123731b96f0 | 5dc2abaa6f6dfd3f3a7b6e305dde6bd090568913 | refs/heads/master | 2023-08-22T19:05:03.570511 | 2021-10-08T22:40:25 | 2021-10-08T22:40:25 | 301,892,171 | 1 | 0 | null | 2021-10-08T22:40:26 | 2020-10-07T00:58:31 | JavaScript | UTF-8 | Python | false | false | 2,016 | py | """
Exercício 2 - Google
Uma certa empresa tem uma estrutura hierarquizada onde cada pessoa reporta a uma única outra pessoa. Cada pessoa tem um score que é o total de pessoas que estão abaixo dela, incluindo subordinados de seus subordinados, além dela própria. Isso significa que uma pessoa que não tem nenhuma equipe ... | [
"gustavo.fthirion@gmail.com"
] | gustavo.fthirion@gmail.com |
1bb8fb043990fab240101300fb51f76166f967e3 | bdf3c98e33c6bc9c8e0332043cc5a3a3f5e8ea42 | /src/gmapping_example/catkin_generated/generate_cached_setup.py | 630d207490994f41dd5ed5d56144d8692a051da8 | [] | no_license | jstestsuite/ros-test | c33e244794287e2665cace847a9faf1b596ddf92 | b0bb5b06c1c18b804c0f0a4e2deb4d88be894d1f | refs/heads/master | 2020-04-11T16:54:41.401198 | 2019-02-13T00:44:14 | 2019-02-13T00:44:14 | 161,938,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | 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/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"jsteele171@gmail.com"
] | jsteele171@gmail.com |
28368166238c37a6766bbcaab7c41a25b87bdbe4 | 03ffcd3db8c4046d61a3739313c2d8598a80ecc7 | /server.py | f18701c2229f0bc0ab9df1c2b412975a349317e5 | [
"MIT"
] | permissive | Grazfather/bnrepl | 31eca8dda479e5eb9bd4f0607033a81d0b941a06 | 8c9a637728ac5151d3e827b8d6eb7f619978eb1f | refs/heads/master | 2021-04-09T17:06:46.454153 | 2018-03-17T20:56:27 | 2018-03-17T20:56:27 | 125,765,769 | 0 | 0 | null | 2018-03-18T20:41:25 | 2018-03-18T20:41:25 | null | UTF-8 | Python | false | false | 5,599 | py | from binaryninja import *
_locals = locals().copy()
_locals.update({m: __import__(m) for m in (
'os', 're', 'sys',
)})
import SocketServer
import gc
import io
import json
import logging
import os
import rlcompleter
import signal
import socket
import sys
import threading
import traceback
from code import Interactiv... | [
"lunixbochs@gmail.com"
] | lunixbochs@gmail.com |
24ca9b085371a45443bb18cc2ef18537e4d66acb | eb2ebaf1c53cfeb5a1abbc05e6423c5fdc27ca8a | /.history/ship_20200118115450.py | d98f12aaf5c8d41d262ae2b419d1f5b7d34e00f9 | [] | no_license | HeperW/VSCO | 8120bde36c73601e5b956955c0b68b599c9a663d | 4c3ee4aa45424313e335ff05934fbb6df7950304 | refs/heads/master | 2022-05-08T00:51:44.618385 | 2022-03-16T03:18:34 | 2022-03-16T03:18:34 | 233,367,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import pygame
class Ship():
def __init__(self,screen):
"""初始化飞船并设置其初始位置"""
self.screen = screen
#加载飞船图像并获取其外接矩形
self.image = pygame.image.load('images/ship.bmp')
self.rect = self.image.get_rect()
self | [
"hgym300400@126.com"
] | hgym300400@126.com |
6e6dfff3a40b4e61b5617c0aff36fc66d0804b2c | 77190523b4cd9947d996426b3db4f1f189106ed8 | /0x0C-python-almost_a_circle/tests/test_models/test_base.py | 22e6c983598a7f94a51d25599bdea0d75807f54f | [] | no_license | ezno12/holbertonschool-higher_level_programming | 4f5e6078a0ae7658542e5b2f12a56b2d557d7686 | be9d864478424d6d6b072d07707a1e6cc36bdc75 | refs/heads/main | 2023-08-14T08:08:54.896968 | 2021-09-22T20:02:16 | 2021-09-22T20:02:16 | 361,715,769 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | #!/usr/bin/python3
'''
Unittest for base
'''
from models.square import Square
from models.rectangle import Rectangle
from models.base import Base
import json
import unittest
class TestBaseMethods(unittest.TestCase):
'''class TestBase'''
def test_base_id(self):
'''
tests for base class
... | [
"bassembenyhia12@gmail.com"
] | bassembenyhia12@gmail.com |
08ef1ebaecd92459468f3416878b4fb1b53b63e2 | 7aa9beaf5ee24d80e2fe360b6c9dd53bfef450c4 | /model/dbproj.py | cc52f3dcaf1a5cf896a8bb20e05e168bc8142b45 | [] | no_license | brianyu28/alliance | 123fa6cc6cc756f978d23ad9d2eb0bdcbaf2ee99 | 39d944cd716c0ef3358019696e43338e891bb906 | refs/heads/master | 2021-01-18T19:48:41.633030 | 2016-08-10T23:06:31 | 2016-08-10T23:06:31 | 62,518,657 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,369 | py | import pymongo
from datetime import datetime
from pytz import timezone
from pymongo import MongoClient
from bson import ObjectId
from flask import session
from helpers import *
import dbmain
import secrets
client = MongoClient(secrets.mongo_uri)
db = client.alliance
# sets up an empty project for user, if it doesn't a... | [
"brianyu28@gmail.com"
] | brianyu28@gmail.com |
b47a6f3a2961b8f0bb7d6f0093d9c58c10cb1381 | 7c7902fa0efd6b249b67aaf8ef625981ca30ec2f | /clefts/manual_label/plot/figures/annotation/get_raw.py | d9960570b0210845706d488fb896408e4c2542b6 | [] | no_license | clbarnes/cleft_scripts | e170f4e212b62d347435eb686ff2cfc5b4f95a45 | 74a600c58c0b0f94d0a2db5eb654df06ee7825a8 | refs/heads/master | 2021-06-06T03:22:59.468426 | 2020-03-06T16:08:36 | 2020-03-06T16:08:36 | 140,337,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import numpy as np
from catpy import CatmaidClient
from catpy.image import ImageFetcher
from matplotlib import pyplot as plt
from PIL import Image
from clefts.constants import CREDENTIALS_PATH, STACK_ID
client = CatmaidClient.from_json(CREDENTIALS_PATH)
fetcher = ImageFetcher.from_catmaid(client, STACK_ID)
arr = fet... | [
"barnesc@janelia.hhmi.org"
] | barnesc@janelia.hhmi.org |
61594982d19a762c813ae37038b7f0aef516af78 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_116/ch118_2020_03_31_16_19_13_744668.py | 7225f2172dea942cd0f528762968cd0de01f1c68 | [] | 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 | 176 | py | import math
def reflexao_total_interna(n1,n2,θ2):
θ1=(math.asin(n2*(math.sin(math.radians(θ2)))/n1)
if θ1>1:
r=True
else:
r=False
return r
| [
"you@example.com"
] | you@example.com |
5fedd56c234f6eb5437afa55cd6572689aa4e0da | b72c9b41cec52d106cf13ae7763416a77b359c2a | /app/user/serializers.py | ef345d301a43ad6cd1fa737571dec3e2adc591e9 | [
"MIT"
] | permissive | LukaszMalucha/django-deployment-test | 8586c35d0dc74cba6d4b479ef461438bc08f931f | babb75904130d938e5c0fef0d96564697a105ad0 | refs/heads/master | 2021-06-30T14:09:23.281519 | 2020-01-07T12:45:49 | 2020-01-07T12:45:49 | 232,096,194 | 1 | 0 | MIT | 2021-06-10T22:27:57 | 2020-01-06T12:28:11 | Python | UTF-8 | Python | false | false | 2,082 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _ # future translations
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""Serializer for the users object"""
class Meta:
model = get_user_mod... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
7114c681d3b299879748c88ce3f90ea999c1a0f5 | 75c0a3e958fc3db57ffb3d0d12337fc95a49947a | /day3/6 image thresholding2.py | 3f51a7c2fca2e6f2c80027274d344c638cd32848 | [] | no_license | chifeng111/opencv-test | 28d5e17d6bed93238117041e9b6050747149146d | 079eb9c44ecb3a9c7fe5e5d008f1ffdce721af29 | refs/heads/master | 2020-03-06T23:29:21.345593 | 2018-04-27T10:50:45 | 2018-04-27T10:50:45 | 127,133,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # coding:utf-8
import cv2
import matplotlib.pyplot as plt
img = cv2.imread('3.jpg', 0)
ret, th1 = cv2.threshold(img, 127, 255, cv2.THRESH_BINARY)
th2 = cv2.adaptiveThreshold(img, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 11, 2)
th3 = cv2.adaptiveThreshold(img, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH... | [
"liaozhenhua1129@gmail.com"
] | liaozhenhua1129@gmail.com |
30654d266ad1bd687b0c88946fceabc900cfc928 | 93a12156f091858f6e48c7c85c84483742c221f7 | /baekjoon/7785_office.py | 765d1d2d396ecfd06916999521deb292a901f74d | [] | no_license | dojinkimm/AlgorithmPractice | 74cd5c63f9973792f034fe019504b2160ad51e40 | 211857e7541faeeec2f21690eecc8c17d31ad142 | refs/heads/master | 2021-09-28T14:54:12.756098 | 2021-09-26T13:23:38 | 2021-09-26T13:23:38 | 205,849,589 | 2 | 1 | null | 2019-09-30T03:20:10 | 2019-09-02T12:12:24 | Python | UTF-8 | Python | false | false | 324 | py | # BOJ 7785 - 회사에 있는 사람
import sys
r = sys.stdin.readline
N = int(r())
people = dict()
for _ in range(N):
name, status = map(str, r().strip().split())
if status == 'enter':
people[name] = True
else:
del people[name]
for name in sorted(people.keys(), reverse=True):
print(name)
| [
"dojinkim119@gmail.com"
] | dojinkim119@gmail.com |
cc9d41c6b01997dc31c7ac7751f0fc9c93e3680e | d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b | /espresso/tags/qecalc-0.2.1/qecalc/qetask/qeparser/outputs/ph.py | 4672bda6f2e61dcb456b0b700d932427fb1e7da8 | [] | no_license | danse-inelastic/AbInitio | 6f1dcdd26a8163fa3026883fb3c40f63d1105b0c | 401e8d5fa16b9d5ce42852b002bc2e4274afab84 | refs/heads/master | 2021-01-10T19:16:35.770411 | 2011-04-12T11:04:52 | 2011-04-12T11:04:52 | 34,972,670 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | #!/usr/bin/env python
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# QEcalc by DANSE Inelastic group
# Nikolay Markovskiy
# California Institute of Technology
# (C) 2009 All Rights Reserved
#
# File coded by:... | [
"markovskiy@gmail.com"
] | markovskiy@gmail.com |
12e68db6d979f2d66e44f13ea28882fd2a4c2fc5 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /amplify_write_f/resource_untag.py | 4a1cd5ed77d3d9cc39a5d50b8deac80e0817a7c9 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
070002fb259a78009bb2063b10a34b2e17b9b290 | 1fa16c1df35fd8247f9274b26a70523a514210f0 | /dependencies/amitools-0.1.0/amitools/rom/BlizKick.py | b775367fa04c14e914e17bde741d6188e1734948 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | limi/AGSImager | 25a816b1c5b9ce8553cd6e3a47babce574f15119 | d3771800308e61a7a07df4a9b361e5bd5ba9e409 | refs/heads/master | 2023-01-10T11:19:52.248376 | 2020-04-14T19:59:23 | 2020-04-14T19:59:23 | 255,813,813 | 0 | 0 | MIT | 2020-04-15T05:26:57 | 2020-04-15T05:26:56 | null | UTF-8 | Python | false | false | 2,319 | py | import struct
import amitools.binfmt.BinImage as BinImage
BKMODULE_ID = 0x707A4E75
BK_MODULE_ID = 0x4afc
BK_PATCH_ID = 0x4e71
class BlizKickModule(object):
def __init__(self, bin_img):
self.bin_img = bin_img
self.bk_type = self._find_type()
def _find_type(self):
segs = self.bin_img.get_segments()
... | [
"optiroc@gmail.com"
] | optiroc@gmail.com |
1a1e7f051541a533da94aedf899ce462bfaba4e4 | 0106018c092d7c6a3348d2fdf44dcbf64c0257cf | /webapp/migrations/0003_auto_20171012_1903.py | 755564d7d99df36794ab4c0de1e6bb79f534c908 | [] | no_license | UCLALibrary/latimes_index_app | 289fd82b1e9e796581996273948e3af05d682ead | 8d5d23dd3ffa348089ae612b2f462c2424e60a8d | refs/heads/master | 2021-05-05T06:46:22.612174 | 2018-01-24T20:50:59 | 2018-01-24T20:50:59 | 118,820,081 | 1 | 0 | null | 2018-01-24T20:51:00 | 2018-01-24T20:47:18 | HTML | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-12 19:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webapp', '0002_auto_20171012_1900'),
]
operations = [
migrations.AlterField... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.