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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
efa7461ea64952459e66e1148200f28b73b950ac | bdcfab7fef115312988ef7d2bf4f375ab0723e51 | /test/myself/TestFile.py | 1a105c4d101ed1f5621b1671181223668f23ea7b | [] | no_license | ChenLaiHong/pythonBase | c2587bfa78fbbec225c364c297394131fa2f6f37 | 00bf1b404be8714f907c7750a60c052e83555b3e | refs/heads/master | 2020-03-11T00:57:13.403866 | 2019-09-19T11:55:09 | 2019-09-19T11:55:09 | 129,676,746 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | # 文件操作
# 打开文件
# "r"只读;
# "w"只写,文件不存在会自动创建;指针在文件头
# "a"追加,文件不存在会自动创建,指针在文件末尾
# f = open("test.txt", "a", encoding="utf-8")
#
# # 读写操作
# # content = f.read()
# # print(content)
#
# f.write("张三、李四")
#
# # 关闭文件
# f.close()
# 操作图片,增加b是操作二进制
# fromFile = open("xx.jpg", "rb")
# fromContent = fromFile.read()
# print(fromConte... | [
"1185630400@qq.com"
] | 1185630400@qq.com |
082f1032d60a7484435d669338999b4da1b246a5 | 2a871d3f15bfd1b9d4cd962f681503eaf0a535cc | /sample_player/sample_walker.py | 1ce5ba9d7a8f8e6089ea607cc3de637181bed503 | [] | no_license | PFCM/generative-music | 937046ff30eafc5db6cdbb361be6c7732fbebbd5 | 481b216f2ae795b0ac48a57b83e92fde082b34e9 | refs/heads/master | 2021-04-28T09:38:41.065310 | 2018-09-06T09:47:42 | 2018-09-06T09:47:42 | 122,046,080 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | """
Load some embeddings and do a random walk through them.
"""
import itertools
import os
import sys
import time
from functools import partial
from itertools import chain, islice
from multiprocessing.dummy import Pool
import librosa
import networkx as nx
import numpy as np
import pyo
from sklearn.neighbors import kne... | [
"pfcmathews@gmail.com"
] | pfcmathews@gmail.com |
ce82c00ac5d6fb5049cfe4eeb9fcf1d8cbf86f55 | 99f02678101b1790a982301824aa14ed0140c21b | /backend/hawaii_hop_27263/wsgi.py | 35ac4077780e887db0b65c0dbc572bf4d2bbb114 | [] | no_license | crowdbotics-apps/hawaii-hop-27263 | 5128b9057e952375c421e4347ed9b280ffefe127 | 7ae5d451ee9217011921e2874d01e93f1cc07017 | refs/heads/master | 2023-05-03T20:17:25.616012 | 2021-05-22T22:11:16 | 2021-05-22T22:11:16 | 369,914,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for hawaii_hop_27263 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ba8be02377db6cac60f7f9ce5c89b1fcf36d52d4 | 0b9470f9a839d87b21fd575421b5223afb4573c6 | /04day/09-保护对象方法.py | b6a8997e6e6a1ba485c6cbd32ab9f59a0547bc71 | [] | no_license | ZiHaoYa/1808 | 351356b4fa920a5075899c8abdce24a61502097f | 891582547fef4c6fd4fd4132da033e48e069901f | refs/heads/master | 2020-03-30T06:20:46.898840 | 2018-09-29T08:56:53 | 2018-09-29T08:56:53 | 147,603,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | class Tencent():
def __vip(self):#最核心的方法 私有方法
print("开会员成功")
def open(self,money):#判断钱够不够
if money > 10:
self.__vip()
else:
print("QQ币不足")
qq = Tencent()
qq.open(12)
#qq.vip()
| [
"qingyuan@geekniu.com"
] | qingyuan@geekniu.com |
44ddb5ba007d7311a9825af8b5f62b3c330df6df | 4d2238210813c1581bf44f64d8a63196f75d2df4 | /craking/exercise1/listPairToGetSum.py | a1b6f9664ea3f6108ac27c44ed6d15581fd24d99 | [] | no_license | wwtang/code02 | b1600d34907404c81fa523cfdaa74db0021b8bb3 | 9f03dda7b339d8c310c8a735fc4f6d795b153801 | refs/heads/master | 2020-12-24T14:10:33.738734 | 2012-12-14T04:24:47 | 2012-12-14T04:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | """
Given an array of integers, list out all elements that add up to a given sum X with time complexity O(nlgn)
A = {6,4,5,7,9,1,2}
Sum = 10 Then the pairs are - {6,4} , {9,1}
Two methods:
1, sort the array, two pointer begin from the start and the end
sorting takes O(nlgn), iteration takes o(n) Overall Nlg(n)
2. ... | [
"andytang1994@gmail.com"
] | andytang1994@gmail.com |
941580ec7caf0ea5b4cc0b5f27f63d9e1b1c79f1 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/webpubsub/azure-messaging-webpubsubservice/samples/integration_sample.py | 20680a5da983cf49176db9486613de8c1233f116 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,634 | py | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
45f7f8b8d105147e9c5231b74163145d87771c88 | c8785278ccc04221bc4f618acfb6a639b452d13f | /python/xor_linear_space.py | 17ae40b0518c304dfaf7bc883d3f1bea5ce94837 | [
"MIT"
] | permissive | fishilico/shared | 14edd274df12057ae1dc294fe10715ddc969e796 | a846ce38894f749082405d9a86fcf13d0bf5b992 | refs/heads/master | 2023-08-31T15:58:35.327197 | 2023-08-27T05:12:43 | 2023-08-27T05:12:43 | 14,258,504 | 35 | 15 | null | null | null | null | UTF-8 | Python | false | false | 8,775 | py | #!/usr/bin/env python
# -*- coding:UTF-8 -*-
# Copyright (c) 2018 Nicolas Iooss
#
# 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
... | [
"nicolas.iooss_git@polytechnique.org"
] | nicolas.iooss_git@polytechnique.org |
9a90883d80499bf0a1a21fa094cbd7dad34e97ca | 699606935f69a153d952b49f6f18df6bd51df1e0 | /tensorflow/python/data/experimental/kernel_tests/stats_dataset_ops_test.py | 4d794b4b8458d830361a4445f71da8f27360c2ae | [
"Apache-2.0"
] | permissive | NMarlon/tensorflow | 2c7d0cf81863508a23d97a9d21c0f06b28e9b075 | b21a78132f73f68bf636ba8e491d7f52a55523b3 | refs/heads/master | 2020-04-04T05:10:48.282828 | 2018-11-01T14:35:50 | 2018-11-01T14:39:54 | 155,737,478 | 1 | 0 | Apache-2.0 | 2018-11-01T15:38:34 | 2018-11-01T15:38:34 | null | UTF-8 | Python | false | false | 16,591 | py | # Copyright 2017 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 |
b833d9eb4d791fe08f8cb7fbedc1ee7f77c983ce | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Rn3g3hokznLu8ZtDP_4.py | 9a6e5bf2404857405d8c95ab030f03a3b3675f35 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | """
Write a function which increments a string to create a new string.
* **If the string ends with a number** , the number should be incremented by `1`.
* **If the string doesn't end with a number** , `1` should be **added** to the new string.
* **If the number has leading zeros** , the amount of digits **... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
710ddac897877db3f60b5650a5bbc440c9ed3017 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1803699/homework03/program03.py | fcf92797b2788e70eb83311b15b208da45c244b8 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | from immagini import *
def ricolora(fname, lista, fnameout):
img=load(fname)
coppie=[]
j=len(img[0])
k=len(img)
for quadrupla in lista:
areac=quadrupla[2]
bordoc=quadrupla[3]
baselist=set()
nextlist=set()
checkedlist=set()
arealist=se... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
5f0cfa1e7c2414a3499568a58470b9e2dcb72c07 | e9233367116ace8aac3218abcb8480ac236ac42f | /build/motor_arduino/cmake/motor_arduino-genmsg-context.py | 407947db99afa267b28a1e1dd203ffb9ad0fd72f | [] | no_license | zhangzhongwd/optical_waveguide_calibration | 2c695592d792b26aa8a3218faa86adbff478cd3b | 431d7e0e74885030648c17030f197efa3909a48c | refs/heads/master | 2020-11-29T08:19:12.000041 | 2019-12-25T08:14:20 | 2019-12-25T08:14:20 | 230,065,827 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/zhong/Sensor/src/motor_arduino/msg/Stepper.msg;/home/zhong/Sensor/src/motor_arduino/msg/Limit.msg"
services_str = ""
pkg_name = "motor_arduino"
dependencies_str = "std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str =... | [
"zhangzhongwd@gmail.com"
] | zhangzhongwd@gmail.com |
22ff80f135fb0d20d7d0387a072fb397f970347f | 165538de7879dded2b9bd0694f3134b36e923b84 | /Python3/1624-Largest-Substring-Between-Two-Equal-Characters/soln.py | ce3fd3b1970776588f3cc8f42a2831594c716f51 | [
"MIT"
] | permissive | zhangyaqi1989/LeetCode-Solutions | 6f710153ec828e6d9e58a30ae8009f754cae4be6 | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | refs/heads/master | 2023-01-23T16:23:55.483396 | 2020-12-06T17:35:09 | 2020-12-06T17:35:09 | 270,014,622 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | class Solution:
def maxLengthBetweenEqualCharacters(self, s: str) -> int:
last_idxes = [-1] * 26
ans = -1
for i, ch in enumerate(s):
val = ord(ch) - ord('a')
if last_idxes[val] != -1:
temp = i - last_idxes[val] - 1
ans = max(ans, temp)
... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
ea169c925512954473486672a50a844bef88ff5a | 77d808f47101202db6cec5a9eee6b38c55f73fde | /17. EXERCISE - Objects and Classes/09.py | f69eb464cd55efefcd817a0f4283f308600429d0 | [] | no_license | dimDamyanov/Py-Fundamentals | 2ce5591fbfebf8d95c832e3f7109b24e53dd721b | 5ccae5bfa456829d97e8773ee9f5eaa5f5051765 | refs/heads/main | 2023-01-29T22:21:07.788061 | 2020-12-13T08:11:04 | 2020-12-13T08:11:04 | 317,682,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | class Movie:
__watched_movies = 0
def __init__(self, name, director):
self.name = name
self.director = director
self.watched = False
def change_name(self, new_name):
self.name = new_name
def change_director(self, new_director):
self.director = new_director
... | [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
3f0202e1af943b8bbda704c6e356788f663611fd | 1d892928c70ee9ddf66f2a37a8e083d2632c6e38 | /nova/ipv6/api.py | d74e6cd370bb1cfe071d4498e8ccdf7d772c799f | [
"Apache-2.0"
] | permissive | usc-isi/essex-baremetal-support | 74196c3f1332ee3cdeba9c263faff0ac0567d3cf | a77daf8ef56cf41e38de36621eda25ed3f180156 | refs/heads/master | 2021-05-19T03:12:11.929550 | 2020-07-24T14:15:26 | 2020-07-24T14:15:26 | 4,702,421 | 0 | 1 | Apache-2.0 | 2020-07-24T14:15:27 | 2012-06-18T15:19:41 | null | UTF-8 | Python | false | false | 1,342 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2011 OpenStack, 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... | [
"dkang@isi.edu"
] | dkang@isi.edu |
f2073f68965e7070362240f4fd2d08cb653f4697 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/398/usersdata/281/81356/submittedfiles/av1_programa2.py | f84881738dd63b159a8897f7eaba31b5aa5a48b2 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO ABAIXO DESTA LINHA
a=int(input(':'))
b=int(input(':'))
c=int(input(':'))
d=int(input(':'))
e=int(input(':'))
f=int(input(':'))
if a>0 and a<=13 and b>0 and b<=13 and c>0 and c<=13 and d>0 and d<=13:
if a<b and b<c and c<d and d<e and e<f:
p... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
65d7292164c9a3e0351ff48dcb3a057b8dd2290d | 792ae5d2a5c17af4f2ccfa582e3aeec569a6809a | /42. Trapping Rain Water.py | f35ce886c90306b5cd3f91bc4258b415545fef8e | [] | no_license | ADebut/Leetcode | 396b8b95ad5b5e623db2839bbfdec861c4c1731f | 7333d481e00e8c1bc5b827d1d4ccd6e4d291abd7 | refs/heads/master | 2020-07-05T18:48:27.504540 | 2019-10-28T10:51:43 | 2019-10-28T10:51:43 | 202,735,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | class Solution:
def trap(self, height: List[int]) -> int:
volume = 0
max_left = [0 for i in range(len(height))]
max_right = [0 for i in range(len(height))]
for i in range(1, len(height) - 1):
max_left[i] = max(max_left[i - 1], height[i - 1])
for i in range(len(hei... | [
"chen758@usc.edu"
] | chen758@usc.edu |
dab457aaf7c8b1c95b2a79290fb335200d7007d5 | 36a094a44450d1353e9dfc8242a54e2bb70bb9b5 | /src/ebonite/runtime/client/__init__.py | c38cc6baa94f20f83240507ae40107cb1bfec558 | [
"Apache-2.0"
] | permissive | zyfra/ebonite | 52843ce847a3fd28e4ba8ab64d986dcfb23671c0 | b01b662c43709d152940f488574d78ff25f89ecf | refs/heads/master | 2022-11-29T21:20:02.358797 | 2020-10-19T12:22:49 | 2020-10-19T12:22:49 | 221,721,146 | 275 | 18 | Apache-2.0 | 2022-11-21T22:44:02 | 2019-11-14T14:49:47 | Python | UTF-8 | Python | false | false | 55 | py | from .base import BaseClient
__all__ = ['BaseClient']
| [
"mike0sv@gmail.com"
] | mike0sv@gmail.com |
13f4510cf7c53943658d0e717453ef04820570b8 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v11/resources/types/customer_user_access.py | 4ef6dbad73be7b9adc4eff12bb1be5952d52fbc8 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 2,730 | py | # -*- coding: utf-8 -*-
# Copyright 2022 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... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
0f345d89caa6e429008ad6a6714ea68a992ab415 | 3481e590d546c9072a63ece64dd52c3eb063ca38 | /rl_exp/multiplayer_env.py | 8af2fb9065d577d368ea954e7f6b9ca04dee555d | [] | no_license | SSS135/rl_exp | 7a1c5bd5a58ab558a9e32ea90a13c26704d06209 | f7b1735449dd1a3210cf8898344e856a712d6205 | refs/heads/master | 2020-05-29T15:22:10.881771 | 2020-04-30T12:26:31 | 2020-04-30T12:26:31 | 189,218,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import gym
class MultiplayerEnv(gym.Env):
def __init__(self, num_players):
self.num_players = num_players | [
"sss13594@gmail.com"
] | sss13594@gmail.com |
dab29b7fb99b4053d194a299747a2da05ff8aaf5 | ea260e2d501eda7f04705dbe22a9263e1ffb99c9 | /lambda_function.py | ec573d04b0d8c88a2a2c8f3aa63ba9b9ca9897f0 | [] | no_license | PeterMitrano/my_desk | d4cd5edf3e054e9d51da4b0d6b6c16e0f088caa9 | dfd9816acb7fdb1dd9637b730fa738e2ffac1e8c | refs/heads/master | 2020-07-23T21:08:15.349369 | 2017-08-25T21:20:30 | 2017-08-25T21:20:30 | 66,438,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | from collections import namedtuple
import logging
import requests
LOGGER = 'my_desk'
APP_ID = 'amzn1.ask.skill.999f5e91-7264-4660-b397-5efc340a51f9'
def send_command(command_endpoint):
result = namedtuple('Result', ['err', 'error_msg', 'err_speech'])
if not command_endpoint:
return result(True, 'comm... | [
"mitranopeter@gmail.com"
] | mitranopeter@gmail.com |
b7e46c5a94d311113b0ba3112f69ff066a02906b | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-AVFoundation/PyObjCTest/test_avoutputsettingsassistant.py | 94f07c16b0ffb29979c57ddd8ffc0e0cc3789951 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | from PyObjCTools.TestSupport import *
import AVFoundation
class TestAVOutputSettingsAssistant(TestCase):
@min_os_level("10.9")
def testConstants10_9(self):
self.assertIsInstance(AVFoundation.AVOutputSettingsPreset640x480, unicode)
self.assertIsInstance(AVFoundation.AVOutputSettingsPreset960x5... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
a845dbc5c0be469b58674b1c5b3717a7951103be | 76e9afdf16eabcc9e1a3facd308e56362112efc4 | /20210227_ls/net_cls/unet_ls_4.py | 38d9ec4ce8430c10d163b12a9afc54500c0d2034 | [] | no_license | rerejii/pwb_work_2021 | c65c5e787ad98b7d847cb63ebadc24a02f001e90 | 8ecfb2a98d9d396ed505ecc939e384cf6400412d | refs/heads/main | 2023-03-30T10:43:18.115386 | 2021-03-24T05:38:41 | 2021-03-24T05:38:41 | 350,954,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,345 | py | # -*- coding: utf-8 -*-
import glob
import tensorflow as tf
import time
import math
import ShareNetFunc as nfunc
import tensorflow_addons as tfa
import numpy as np
# - Discriminator_Loss
# - 弁別子損失関数は2つの入力を取ります。実画像、生成画像
# - real_lossは、実画像と1つの配列のシグモイドクロスエントロピー損失です(これらは実画像であるため)
# - generated_lossは、生成された画像とゼ... | [
"hayakawa.shinya.kochi@gmail.com"
] | hayakawa.shinya.kochi@gmail.com |
a1025224fff76aee836ecf09e5384f9e919891e0 | 5336e77ea7dc15de19e8e0722549d0fe35c88699 | /auth_path/services_serializer.py | ca6ea65450602c5f22940f7caf8d4cc68258e090 | [] | no_license | xal9wiii4ik/django-crm | 37d16d6cbec3bda3e7751144d9f0466c5d8897d8 | ba0858a47ef8ab91a9d5a26ec5328ecaadfa1034 | refs/heads/master | 2023-03-30T20:17:47.265034 | 2021-04-08T21:53:44 | 2021-04-08T21:53:44 | 323,412,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User
from rest_framework import serializers
def verification_password(value: str) -> str:
"""Check password"""
if len(value) >= 8:
if any((c in set('QAZWSXEDCRFVTGBYHNUJMIKOLP')) for c in value):
... | [
"xal9wIII4ik@yandex.ru"
] | xal9wIII4ik@yandex.ru |
3586ccadfb58facf6e41abb02ed1e53dd12448bd | d496f743372562ddeac41fb40619d725089d538f | /docker_box/urls.py | 7b2c8def66410af3dd27c133dbda786ad5bcd5a6 | [
"MIT"
] | permissive | druuu/docker-box | 18391919498e59631509e1203a00a0e76fb46e5d | 36619f91fbc8ac356b55e05d7301e8c27e015117 | refs/heads/master | 2021-01-21T11:27:11.003086 | 2018-03-10T18:52:12 | 2018-03-10T18:52:12 | 83,549,111 | 0 | 0 | null | 2017-03-01T11:53:16 | 2017-03-01T11:53:16 | null | UTF-8 | Python | false | false | 199 | py | from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('dockit.urls', namespace='docker_box')),
]
| [
"ashwin@micropyramid.com"
] | ashwin@micropyramid.com |
329fc3d0591d6575ee97725f1cab29d392776153 | 0097d779d4d7551569625f6cca16d8bb8e935712 | /python/password.py | ee22eba4d579bbbb78367e46753c0cb74931199c | [] | no_license | kamesh051/django_tutorial-master | 48b710e3b7382f6204a696187bc1e4e6f20c6a04 | 0ff99f1db6d73e569ec0aa8539c73118310acee1 | refs/heads/master | 2020-03-27T19:21:06.471604 | 2018-09-02T05:13:06 | 2018-09-02T05:13:06 | 146,983,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | import random
import sys
import string
def input(help_text="Do you want me to help you with a password? \n"):
return (str(raw_input(help_text)))
def main():
a = []
while True:
x = input()
if x == "yes":
while True:
z = input("How many characters, between 3 and 50, do you want it to have? \n")
if not... | [
"kameshgithub@gmail.com"
] | kameshgithub@gmail.com |
15a68d03a1bb8812e543e6eac440ae430cd48763 | a2062bd70adf7c64d39401211d4597d010afdad3 | /21.05.20/Pandas02_02_FunEx07_송예지.py | e4b0d61eeb4fb7494fdb2b6054fd7128f7695800 | [] | no_license | yeijSong/LearningPandas | ebf3f3f2416bb3b7254ebf86ede8ce5f696bb1f9 | 6e79a54a4412455d9729412551a64a7e86534ced | refs/heads/main | 2023-05-24T10:38:41.514011 | 2021-06-21T13:25:28 | 2021-06-21T13:25:28 | 378,843,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | '''
# 매개변수에 초기값 미리 설정하기
say_myself 함수는 3개의 매개변수를 받아서
마지막 인수인 man이 True이면 남자, False면 여자 출력
default값이 man이므로 아무 것도 적지 않으면 man으로 인식
'''
def say_myself(name,old,man=True):
print('나의 이름은 %s입니다.'%name)
print('나이는 %d살입니다.'%old)
if man:
print('남자입니다')
else:
print('여자입니다')
say_myself('소나무',27)
p... | [
"noreply@github.com"
] | yeijSong.noreply@github.com |
ea4782259049a80c31467404d5c5dbcf39fa371a | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/sentry/2019/12/event.py | 05dded33a7bd91cb7bd5703a00c6f8639d536402 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 21,570 | py | from __future__ import absolute_import
import six
import string
import pytz
from collections import OrderedDict
from dateutil.parser import parse as parse_date
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from hashlib import md5
from semaphore... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
4e0054a974afc9d91894e6d6b3d4084aa442bab7 | 6ffc81125d6bb5f8476f95b2334a27807b8290de | /flexneuart/featextr_server/python_generated/protocol/ExternalScorer.py | 1e84a976a0fe5638b048d8d10db98a81d6f48eb0 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | oaqa/FlexNeuART | 4cb341ca3c3f94fa28a7cfd4aef5451de3a4a2cb | 0bd3e06735ff705731fb6cee62d3486276beccdf | refs/heads/master | 2023-09-01T00:19:33.980081 | 2023-05-26T19:19:30 | 2023-05-26T19:19:30 | 64,071,121 | 156 | 21 | Apache-2.0 | 2023-09-10T01:27:05 | 2016-07-24T15:08:03 | Java | UTF-8 | Python | false | true | 19,129 | py | #
# Autogenerated by Thrift Compiler (0.12.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | [
"leo@boytsov.info"
] | leo@boytsov.info |
f8671f2e8b5bf4e1f21484e59b893f0ce9fb25ba | b06a317fd3d1d0f27d8d14731d2d84a1963d98eb | /commons/c2cgeoportal_commons/alembic/main/6a412d9437b1_rename_serverogc_to_ogcserver.py | d82ee0bd1f3fe67745fb033bdd9ed1952959a3f3 | [
"BSD-2-Clause-Views"
] | permissive | samupl/c2cgeoportal | 2844be2376b0598307a4c3e0732aa4e7d196d3be | 63a27ceacb47cc1db00d853b507ee3d568320a48 | refs/heads/master | 2020-03-30T00:58:58.166112 | 2018-09-26T17:42:37 | 2018-09-26T17:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2016-2018, Camptocamp SA
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
#... | [
"stephane.brunner@camptocamp.com"
] | stephane.brunner@camptocamp.com |
17f5cdfad8ea3aa5b4807f8d00ed3fd9be67775e | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/2021-5-15/python_re2_test_file/regexlib_3424.py | 88dbd13df9a356348055fff7129a8f2730844f25 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # 3424
# (\s*<(\w*)\s+(((\w*)(=["']?)([\w\W\d]*?)["']?)+)\s*/?>)
# EXPONENT
# nums:5
# EXPONENT AttackString:"< "+"0="*16+"!_1_EOA(i or ii)"
import re2 as re
from time import perf_counter
regex = """(\s*<(\w*)\s+(((\w*)(=["']?)([\w\W\d]*?)["']?)+)\s*/?>)"""
REGEX = re.compile(regex)
for i in range(0, 150000):
ATT... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
7940b6f81821c86a3a9703791694818e2cf56511 | c7d08810eaa13882c65c2f2cf6b4eaa68239910b | /resume_autofill_site/resume_autofill_site/settings.py | ceb958789c264fa96a9cb770246abb973b5d0109 | [] | no_license | thayton/resume-auto-fill | cbcf9b9a81ef7ed7b28c51bebdf8b863bcab7e2d | a5bccb0c422b4d8ce36f15af29ef70847cf24c48 | refs/heads/master | 2021-01-24T22:13:34.514409 | 2014-11-03T20:16:51 | 2014-11-03T20:16:51 | 24,721,068 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | """
Django settings for resume_autofill_site project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
3ad723a11f004fabb06e1714eac83026827275b7 | c61310b3da23494fdcd2eae31b26a7c97dbab8a8 | /bl2_save_edit.py | 8ac96670f77ccdc7e2bdd5c9ff7fd46eaa408255 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Riroaki/borderlands2 | d64971ed73b6bf593c12435e4c503520d916849d | f400305e38445fc944d49f6fa8a0588eea25a86c | refs/heads/master | 2022-03-24T11:41:30.670307 | 2019-11-16T18:15:05 | 2019-11-16T18:15:05 | 262,360,555 | 1 | 0 | null | 2020-05-08T15:32:01 | 2020-05-08T15:32:01 | null | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/env python3
import sys
import traceback
from borderlands.bl2 import AppBL2
if __name__ == "__main__":
try:
app = AppBL2(sys.argv[1:])
app.run()
except Exception as e:
print('Something went wrong, but please ensure you have the latest', file=sys.stderr)
print('version... | [
"pez@apocalyptech.com"
] | pez@apocalyptech.com |
865ca12781577b88d3a2bea93f25428c522a73ce | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/86/usersdata/160/53060/submittedfiles/pico.py | 2709fb36f0f75f68fe6937ef2397ffef9447892c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # -*- coding: utf-8 -*-
def pico(n):
#CONTINUE...
cont=0
for i in range(0,len(n)-1,1):
if n[i]<n[i] and n[i]<n[i]:
cont=cont+1
if cont!=0:
return(True)
else:
return(False)
n = int(input('Digite a quantidade de elementos da lista: '))
#CONTINUE...
a=[]
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c1721a80983a02b687c9b844a9bb852d595586f8 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/coderByte_20200518204427.py | 3e1b5f8da2ca300d3e716d8bb95cc003dbd1d538 | [] | 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 | 479 | py |
def QuestionsMarks(str):
numbers = []
# others = []
for char in str:
if char.isdigit():
numbers.append(int(char))
elif char == '?':
numbers.append(char)
for i in range(len(numbers)):
print(i)
print(numbers[i])
if numbers[i] =
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
49fcbd8414edd891f3a5061eeebfcc6931da6384 | a667d52d9be08aab9f101952dfede0e29a43b012 | /src/apps/escuela/forms.py | ae8961a84de3e12b386ae7f35317ad2fbc91c7a8 | [] | no_license | Epatzan/app-suni | 50b04bbf58417e8cfba77a5e00c2d6a5a6537c16 | b7f9eaf62942797cd4f222ea2fb82348304aeaf4 | refs/heads/master | 2023-08-21T13:15:44.826842 | 2018-03-15T14:00:30 | 2018-03-15T14:00:30 | 123,631,541 | 0 | 0 | null | 2018-03-02T21:13:55 | 2018-03-02T21:13:55 | null | UTF-8 | Python | false | false | 5,314 | py | from django import forms
from datetime import date
from django.core.urlresolvers import reverse_lazy
from django.forms.models import inlineformset_factory
from django.forms.formsets import BaseFormSet, formset_factory
from apps.escuela.models import (
Escuela, EscContacto, EscContactoTelefono,
EscContactoMail,... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
292d5b2771a74f723aa8855a241c3ca6fec6014f | d4432b0c95e5a25c489f825ba0f44e0ecd958669 | /lessons stormnet/lesson3/incapculation.py | 1ce2277132010aa31e15d8a698217dadd0fd5c79 | [] | no_license | romanannaev/python | 1c250c425224ab824492e4893edf786e35b14369 | e2a9015bfceeac940936758f84f0dfbf67897f1d | refs/heads/master | 2021-07-05T23:39:05.480997 | 2019-11-13T10:44:00 | 2019-11-13T10:44:00 | 175,044,359 | 2 | 0 | null | 2020-09-04T20:42:14 | 2019-03-11T16:50:24 | CSS | UTF-8 | Python | false | false | 280 | py | class Cat:
def __init__(self, name, female):
self.__name = name
self.female = female
def __get_mur(self):
print('mur-mur-mur')
mursik = Cat('mursik', 'kot')
# print(mursik.__name)
print(mursik.female)
# mursik.__get_mur()
mursik._Cat__get_mur()
| [
"romanannaev1992@gmail.com"
] | romanannaev1992@gmail.com |
13790a927b2c4f1b823d74cc945464fd1e8c337e | ca1ba1b871845bb4c17d1947eac5f59907b17f71 | /deepx/nn/__init__.py | 4dc6e4b4ecade811dde9ebfced579bf1f5262bb0 | [
"MIT"
] | permissive | adcengiz/beermind | 695808ab7af51a861e74cbdc7c406bea637e8f19 | 695fd1b2f6d376b6dd9f70ba2cd2c13e5efb9c47 | refs/heads/master | 2021-05-30T07:41:26.927864 | 2015-11-23T10:12:02 | 2015-11-23T10:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from model import ParameterModel
from lstm import LSTM, LSTMLayer
from softmax import Softmax
| [
"sharad.vikram@gmail.com"
] | sharad.vikram@gmail.com |
249b5bd914c4442573b5cc09828915b2858e7e59 | 759d0ef07c5473dfdef37454e34259771d16deab | /GJMorph/auxFuncs.py | f074ad51570cc1232767f0014f87d6980ac556ef | [
"CC-BY-4.0",
"LicenseRef-scancode-public-domain"
] | permissive | wachtlerlab/GJMorph | 3442ba85c08303238854f64b641c80197f7eb55f | a158e825ae3c20f94e1a6b12b2578aa1b3f42a8b | refs/heads/master | 2020-03-21T15:57:52.466404 | 2019-08-05T18:41:26 | 2019-08-05T18:41:26 | 138,742,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,867 | py | import numpy as np
# **********************************************************************************************************************
def resampleSWC(swcFile, resampleLength, mask=None, swcData=None, calculateBranchLens=False):
'''
Resample the SWC points to place points at every resamplelength along th... | [
"ajkumaraswamy@tutamail.com"
] | ajkumaraswamy@tutamail.com |
13b5621657465c1700dcd523a472a763187d94a1 | e60487a8f5aad5aab16e671dcd00f0e64379961b | /project/myVacations/vacay/migrations/0002_auto_20191218_2308.py | aef339aafb17c3650a5c1f96f30cfd82d74f60dd | [] | no_license | reenadangi/python | 4fde31737e5745bc5650d015e3fa4354ce9e87a9 | 568221ba417dda3be7f2ef1d2f393a7dea6ccb74 | refs/heads/master | 2021-08-18T08:25:40.774877 | 2021-03-27T22:20:17 | 2021-03-27T22:20:17 | 247,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Generated by Django 2.2.7 on 2019-12-19 05:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vacay', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='destination',
name='album_title',
... | [
"reena.dangi@gmail.com"
] | reena.dangi@gmail.com |
eb590e4c84b9786a061331130dccde977b2d21b1 | fff54b01b46cef0bbc70a6469c88c01c82af5a57 | /programming/language/python3/python3-sip/actions.py | c8d1ffbb8fe07a364656fc2c7d076ef632a8a3fd | [] | no_license | LimeLinux/Packages | e51deae6c0d1406e31f06caa5aaa7749466bef0b | d492e075d8b051df68b98c315ad0628e33a8fac4 | refs/heads/master | 2021-01-11T12:37:22.150638 | 2018-08-30T18:24:32 | 2018-08-30T18:24:32 | 77,054,292 | 5 | 19 | null | 2018-02-02T17:24:06 | 2016-12-21T13:33:45 | Python | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pi... | [
"ergunsalman@hotmail.com"
] | ergunsalman@hotmail.com |
0730eda28f9a1c5ce0c14000cca5e3f67947326c | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/crprange/crprange.py | 92777d7e1071268c9dcf7c21200e7017df67f42d | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 11,915 | py |
# Copyright 1997 - 2018 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, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
e641aa7c71cf66fa224790c752cd052fd1758d64 | aee4c0839933a11d8ce3c485d06595202dd3cabd | /keras/utils/timed_threads.py | 794fd243c42b7d426baedaf569d92cbf771be5b0 | [
"Apache-2.0"
] | permissive | xiaoheilong3112/keras | fc3025a2f14838bf8416b2faed766cb43da62f9b | 8d5e9b2163ec9b7d9f70920d1c7992b6df6820ec | refs/heads/master | 2023-08-07T18:23:36.804563 | 2023-07-25T19:16:12 | 2023-07-25T19:16:48 | 137,238,629 | 1 | 0 | Apache-2.0 | 2023-07-26T05:22:44 | 2018-06-13T15:59:45 | Python | UTF-8 | Python | false | false | 5,379 | py | # Copyright 2018 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 |
a3fc9fe94927859b1ed6817401054961cd3c0119 | 057eefa3b2c263ccc087ec6ce49fc5a0e513fb05 | /example/messenger.py | 6a099a36cf8cc451c354e77e75714b54aec6230d | [
"MIT"
] | permissive | antikytheraton/hotelBotOne | e01cb2136b04359dfb4b361c3d5d5dd84db87621 | b6e5a09ca068dc76ee5fe8c3af7534091efcdf27 | refs/heads/master | 2021-01-23T04:33:56.882349 | 2017-06-19T22:00:33 | 2017-06-19T22:00:33 | 92,931,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,518 | py | """# coding: utf-8"""
# -*- coding: utf-8 -*-
import os
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.sys.path.insert(0,parentdir)
import json
from example.config import CONFIG
from fbmq import Attachment, Template, QuickReply, NotificationType
from example.fbpage import page
USER_SEQ = {... | [
"binauralvoice@gmail.com"
] | binauralvoice@gmail.com |
2eca7755846fedb58b2c1bacaa67edd161a96c9b | ac0894b411507bfd027696b6bf11b5e384ed68fc | /need-to-do/python3------download-problem--of--leetcode/845.longest-mountain-in-array.py | c66780c77e698c67fa30867bea3b0d5858a98fac | [] | no_license | mkzpd/leetcode-solution | 1d19554628c34c74012fa52582c225e6dccb345c | 60c9b218683bcdee86477a910c58ec702185c726 | refs/heads/master | 2020-05-31T05:56:48.985529 | 2019-09-20T09:10:49 | 2019-09-20T09:10:49 | 190,128,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | #
# @lc app=leetcode id=845 lang=python3
#
# [845] Longest Mountain in Array
#
# https://leetcode.com/problems/longest-mountain-in-array/description/
#
# algorithms
# Medium (34.97%)
# Total Accepted: 21.6K
# Total Submissions: 61.6K
# Testcase Example: '[2,1,4,7,3,2,5]'
#
# Let's call any (contiguous) subarray B (... | [
"sodgso262@gmail.com"
] | sodgso262@gmail.com |
5a1176e053d3166f99224f9c3611db49c2d3ac53 | d2821e3679389796d65b423ef10a8ce42a419d56 | /exampleproject/views.py | 1e40dad12f629d2fa64569ab2109cdee9ba6a59f | [
"BSD-3-Clause"
] | permissive | zerc/django_molder | e47750108213bbfec08cf6eb40eb69db6564e1ba | 23d0672eaa60b7bdace0252136bbf8ad9c7631ea | refs/heads/master | 2023-01-06T17:55:49.748944 | 2015-07-04T18:44:23 | 2015-07-04T18:44:23 | 35,910,107 | 0 | 0 | BSD-3-Clause | 2022-12-26T19:44:00 | 2015-05-19T21:41:41 | Python | UTF-8 | Python | false | false | 348 | py | # coding: utf-8
from django.views.generic.base import TemplateView
from forms import FormOne
class IndexPage(TemplateView):
template_name = 'index.html'
def get_context_data(self, *args, **kwargs):
context = super(IndexPage, self).get_context_data(*args, **kwargs)
context['form_one'] = FormO... | [
"zero13cool@yandex.ru"
] | zero13cool@yandex.ru |
faa63d893e6d3b0c367cad9ca3a15d27cb896d32 | 633b695a03e789f6aa644c7bec7280367a9252a8 | /mfem_gallery/ex17p.py | ef12ea9d15cb62c3612b27a57a2b84c3ec6b1dba | [] | no_license | tnakaicode/PlotGallery | 3d831d3245a4a51e87f48bd2053b5ef82cf66b87 | 5c01e5d6e2425dbd17593cb5ecc973982f491732 | refs/heads/master | 2023-08-16T22:54:38.416509 | 2023-08-03T04:23:21 | 2023-08-03T04:23:21 | 238,610,688 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,703 | py | '''
MFEM example 17p
How to run:
mpirun -np 4 python <arguments>
Example of arguments:
ex17p.py -m beam-tri.mesh
ex17p.py -m beam-quad.mesh
ex17p.py -m beam-tet.mesh
ex17p.py -m beam-hex.mesh
ex17p.py -m beam-quad.mesh -rs 2 -rp 2 -o 3 -elast
ex17p.py -m beam... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
820bd4c1439ca1bc08e2dc3a6a6c047e9b8c0462 | ee6afed750c9edce0064680bba6a023c5c67db73 | /JusTalkENV/lib/python2.7/encodings/aliases.py | e3230cf8468099a2a911002b62b17f3d10b08f52 | [] | no_license | khoa408/JusTalk | 664caaa8d13880b4a59402817c8a90028766dcaf | e2bd537c487a342cc22597f63a32ae32edca6429 | refs/heads/master | 2022-12-11T02:42:38.709326 | 2019-12-02T09:34:32 | 2019-12-02T09:34:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/aliases.py | [
"khoa.d.tran97@gmail.com"
] | khoa.d.tran97@gmail.com |
0793c4f5593285e6f03140c10385fccb1b2d9643 | 62766deea531d0b89b86a53e6f51b94fd2a88f23 | /AtCoder/ABC/014/b.py | fb73f462150a40d9afa30384818cff98f81943e2 | [
"MIT"
] | permissive | ttyskg/ProgrammingCompetition | 53620b07317ae5cbd1ee06272e573e3682ac15f3 | 885c5a1be228ae7ba9f00b3d63521c9ff7d21608 | refs/heads/master | 2023-08-18T08:38:33.068168 | 2023-08-15T04:28:13 | 2023-08-15T04:28:13 | 183,425,786 | 0 | 0 | MIT | 2023-08-15T04:28:14 | 2019-04-25T12:02:53 | Python | UTF-8 | Python | false | false | 292 | py | import sys
def main():
input = sys.stdin.readline
n, X = map(int, input().split())
A = list(map(int, input().split()))[::-1]
ans = 0
for i, a in enumerate(A):
if X & 2**(n-1-i):
ans += a
return ans
if __name__ == '__main__':
print(main())
| [
"tatsu100311@gmail.com"
] | tatsu100311@gmail.com |
4e33a21ad3f9248831981123ced61cd4eff6d9b8 | f57907e356079871a8b6d9292dfdb99572098f15 | /DM_int_report_drw/hierarchicalClustering.py | 25f33b0fa60de38268260bfb0c6c5029cfce9558 | [] | no_license | drwiner/WesternCorpus | 421c6b7e2d142b9d46eacd59062e42c403e33be7 | aaac96260c9e976ac030bf38c038a36d48e994ff | refs/heads/master | 2021-01-11T16:56:56.664567 | 2017-11-15T00:49:36 | 2017-11-15T00:49:36 | 79,701,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,955 | py | import numpy as np
from itertools import product
from clockdeco import clock
import math
# import collections
# NamedPoint = collections.namedtuple('NamedPoint', ['id', 'point'])
class NamedPoint:
def __init__(self, int_id, point):
self.int_id = int_id
self.point = point
def __hash__(self):
return hash(self.... | [
"drwiner131@gmail.com"
] | drwiner131@gmail.com |
bc3b56a85820774d1ac5eb6f3e9241bd004eb841 | 693567f042c6bd93ecdda41cb5db81c55ccf3158 | /List/reverce a list.py | a12c0980bd0bc7958284b52cdbd7adfc033583fc | [] | no_license | supriyo-pal/Python-Practice | 5806e0045ebfeb04856246a245430e2ab7921ba9 | 2025369f0d23d603ad27eaff149500137e98dbcf | refs/heads/main | 2023-01-25T05:31:58.404283 | 2020-12-09T19:08:22 | 2020-12-09T19:08:22 | 317,021,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 2 23:52:19 2020
@author: Supriyo
"""
list1=[87,56,89,65,45,23]
def Reverce(list1):
return [ele for ele in reversed(list1)]
print(Reverce(list1)) | [
"noreply@github.com"
] | supriyo-pal.noreply@github.com |
e56e255fb03e55b4a999dc58e4c69021594129ee | 2fd4de2f0820f186c735f0619bce2a0318bbfc38 | /examples/demo.py | d97e0a9e2b393666a9c4f11e75bd4607ebbe1e27 | [
"MIT"
] | permissive | SunYanCN/AppZoo | e90b778fefdaf1a440c3fd40d078b5396e4e3f06 | 91b04cc75fcc5f70ae5819e98233ea9146c1f001 | refs/heads/master | 2023-08-22T05:41:22.175291 | 2021-10-12T13:37:21 | 2021-10-12T13:37:21 | 359,024,301 | 0 | 0 | MIT | 2021-09-05T12:24:47 | 2021-04-18T02:12:40 | Python | UTF-8 | Python | false | false | 1,424 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : tql-App.
# @File : demo
# @Time : 2019-11-13 15:44
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description :
import asyncio
from datetime import datetime, time, timedelta
from sanic import... | [
"313303303@qq.com"
] | 313303303@qq.com |
6282b45debae15af7a0b552e1dc0444245d5ceea | 4659f8758c5204ff27a14dd4352dc63f564c1136 | /my_library/db/models/association.py | fe2af630bbbd484a70bb7278b14199ee2e95ada1 | [
"MIT"
] | permissive | mplanchard/webservice_template | 71823dcd2b98fa93aa2145011ee5a7b820c25f77 | fe3e865909d56d8c010f55e08dc6faf6bf4f8ef2 | refs/heads/master | 2021-03-27T11:12:06.470951 | 2018-03-29T02:34:51 | 2018-03-29T02:34:51 | 123,056,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | """Association tables."""
from __future__ import absolute_import, unicode_literals
from sqlalchemy import Column, Integer, ForeignKey, Table
from .base import Base
books_authors = Table(
'books_authors',
Base.metadata,
Column('author_id', Integer, ForeignKey('authors.id')),
Column('book_id', Intege... | [
"msplanchard@gmail.com"
] | msplanchard@gmail.com |
b07ff3984943ff1650437d7ffc167855e241a701 | aa2157e595b89c3512857e41fee16e8b11d7a657 | /Fresher Lavel Logical Programms/Program to Sort latter in Alphabetic Order.py | f3f2d0d298eec4eb8600504fb0d9ea8dc6664df5 | [] | no_license | biswaranjanroul/Python-Logical-Programms | efee6276eea3eafab9ee6b6e7e0910b715a504d1 | 152dcecf2ecae7891a11769f250a4dc8d9d6b15f | refs/heads/master | 2022-12-15T07:37:45.978218 | 2020-09-17T13:24:53 | 2020-09-17T13:24:53 | 296,326,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | str =input("Enter a string:")
b = sorted(str)
print(b)
for i in b:
print(i) | [
"biswaranjanroul2@gmail.com"
] | biswaranjanroul2@gmail.com |
60b2bbc2b50ed814b1dc6531018652e7245713ea | a57207602b4da08b0433b1b513c25788476460a1 | /bac_tasks/pipelines/annotation.py | 2774c9388a75ffc343c636eaef3ca6f1864bdcd9 | [] | no_license | Antonior26/BaC | 2e8a1bab08a6e70eb9390947850db2a0c5bca81f | 53cf4dcdbc4e56157dbf9e661bcec71cd89d0289 | refs/heads/master | 2020-04-17T15:42:29.871904 | 2019-12-15T18:04:48 | 2019-12-15T18:04:48 | 166,709,586 | 1 | 0 | null | 2020-04-09T20:55:53 | 2019-01-20T21:08:13 | Python | UTF-8 | Python | false | false | 2,940 | py | import json
import os
from django.conf import settings
from bac_tasks.pipelines.base import JobFailedException, PipelineComponent
class Annotation(PipelineComponent):
_name = 'ANNOTATION'
_workflow = {
"stages":
[
{"name": "call_features_CDS_glimmer3",
"glimmer... | [
"antonio.rueda-martin@genomicsengland.co.uk"
] | antonio.rueda-martin@genomicsengland.co.uk |
b927a00f944c15635399243be39c7fa5201b5b7e | fd2908f80e6a20d1a2c9e7f39bc18ce53e625e9f | /esp-2-Compton/petrillo/plotcasetta.py | a2e14dea094cada89642c7795f05320d0304d77e | [] | no_license | Gattocrucco/lab4mpr | a79ecdcb293923188fcef637c7566bbb3904af05 | c613bb8e57c2943123697789f5b600483a2b4ff6 | refs/heads/master | 2021-09-15T08:15:19.129544 | 2018-05-28T23:20:47 | 2018-05-28T23:20:47 | 111,024,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import histo
import numpy as np
from matplotlib import pyplot as plt
files = ['../dati/histo-16feb-ang45.dat', '../dati/histo-16feb-ang45-casetta.dat']
titles = ['spettro a 45°' , 'spettro a 45° con schermaggio']
fig = plt.figure('plotcasetta', figsize=[6.88, 2.93])
fig.clf()
fig.set_tight_layout(True... | [
"info@giacomopetrillo.com"
] | info@giacomopetrillo.com |
006804836e6670346e1afab4e376895f84afc4eb | 9c84f9d5dc15a7aa5d1caf05b6ae5ea83e39be3a | /python_stack/django/django_full_stack/Wall/Wall/urls.py | 0e971e97eb63117ee550a9dea13036688cd31b57 | [] | no_license | tomnguyen103/Coding_Dojo | 0fc4007296feb775b4bcd6ee98f66286b2786adb | ec46b866fc7e58a37d07b63b26b38d19eaeb96f6 | refs/heads/master | 2022-12-28T03:47:57.172540 | 2020-06-15T23:03:50 | 2020-06-15T23:03:50 | 212,214,976 | 1 | 0 | null | 2022-12-11T18:36:51 | 2019-10-01T22:59:37 | Python | UTF-8 | Python | false | false | 816 | py | """Wall URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"huuthong103@gmail.com"
] | huuthong103@gmail.com |
1a2c142d1f04cf5c4e7320b05bf0b4af8adb51c2 | 165eb709370407093bd6ba22e466f6070ea2123c | /examples/adwords/v201601/campaign_management/add_campaign_labels.py | 78d075acd7bee801719188e315c8140782ec59b5 | [
"Apache-2.0"
] | permissive | pawankydv/googleads-python-lib | 92ed86d74a09a91fd3c95d6471a8c23adb0de440 | c0f8ce6c4acfe88ce8f913a4f0e0e92b548e1022 | refs/heads/master | 2022-06-29T05:26:19.996211 | 2016-02-23T20:07:02 | 2016-02-23T20:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | #!/usr/bin/python
#
# Copyright 2016 Google Inc. 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 b... | [
"msaniscalchi@google.com"
] | msaniscalchi@google.com |
bedb27f13c256128040486c37f3d346febca1cca | 610349599d32d7fc5ddae5dcb202836ca8be50aa | /blog/migrations/0013_auto_20200917_0441.py | 25848d5bebfae32506aece8caf48f7f56de261d3 | [] | no_license | reetjakhar09/blogs | e3d9d14c01096e4a50474b5a7f562bea7b655a76 | d0e17a8dd3761aaa08a59c466820040e05dc300a | refs/heads/master | 2022-12-20T05:03:50.350408 | 2020-09-29T16:40:17 | 2020-09-29T16:40:17 | 299,676,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | # Generated by Django 2.2.16 on 2020-09-17 04:41
from django.db import migrations, models
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('blog', '0012_auto_20200916_1140'),
]
operations = [
migrations.CreateModel(
name='Comment',
... | [
"test@gmail.com"
] | test@gmail.com |
b4c033e2dc7ef615aa538096e2591b4a6e59ef60 | fe0017ae33385d7a2857d0aa39fa8861b40c8a88 | /env/lib/python3.8/site-packages/pandas/core/arrays/_mixins.py | b11a853c8d39e5b6959a994d7637c842b006251d | [] | no_license | enriquemoncerrat/frasesback | eec60cc7f078f9d24d155713ca8aa86f401c61bf | e2c77f839c77f54e08a2f0930880cf423e66165b | refs/heads/main | 2023-01-03T23:21:05.968846 | 2020-10-18T21:20:27 | 2020-10-18T21:20:27 | 305,198,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,460 | py | from typing import Any, Sequence, Tuple, TypeVar
import numpy as np
from pandas.compat.numpy import function as nv
from pandas.core.algorithms import take, unique
from pandas.core.arrays.base import ExtensionArray
from pandas.errors import AbstractMethodError
from pandas.util._decorators import cache_readonly
_T = Ty... | [
"enriquemoncerrat@gmail.com"
] | enriquemoncerrat@gmail.com |
42600e834fe46701bc796af4b95355eacce3dda5 | 2614a671d011b002dbd4a3ddd80ced6e6c3d5b98 | /neural_sp/datasets/asr.py | 3d1b6c0f607a6e93328f1ef6843eee9c5bc962ee | [
"Apache-2.0"
] | permissive | zh794390558/neural_sp | ff1832bf7321e3ef23eeb3e85261354922edd18a | a0d9f5a70242fad3235ae5b12e4e792075a5f91d | refs/heads/master | 2023-01-28T18:26:24.187109 | 2020-09-09T05:15:15 | 2020-09-09T05:15:15 | 294,017,550 | 0 | 0 | null | 2020-09-09T06:00:19 | 2020-09-09T06:00:19 | null | UTF-8 | Python | false | false | 20,720 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Base class for loading dataset for ASR.
In this class, all data will be loaded at each step.
You can use the multi-GPU version.
"""
import codecs
i... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
bc19ab8e189e29a058a5dded83af0e6c030da832 | d5fe9d0c7c93c3250b9e212435b02d8373dec091 | /pro/8.py | 98751a3c8367041e394594d3ac34676580508ce2 | [] | no_license | HarshaaArunachalam/GUV | 6937adb84f0928f08c9fbc519310abc06ef3541a | c047887bf6c19a4950c5f634111e1c02966367e5 | refs/heads/master | 2020-05-31T10:52:23.280052 | 2019-08-10T20:23:11 | 2019-08-10T20:23:11 | 190,249,464 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | def GCD(a,b):
z=0
c=min(a,b)
for k in range(c,1,-1):
if(a%k==0)and (b%k==0):
return k
z=1
if z!=1:
return 1
x=input()
y=x.split(" ")
z=[]
w=[]
res=[]
z1=int(y[0])
z2=int(y[1])
z3=input()
u=z3.split(" ")
for i in range(len(u)):
w.append(int(u[i]))
for j in rang... | [
"noreply@github.com"
] | HarshaaArunachalam.noreply@github.com |
1a8d14085751c17d7831e7fca361ca6d2d552255 | 5ce040197421e557f8e7337183c2420d1cb898b0 | /temoatools/analyze_capacity.py | 5fee6b66e7d42c6683ded9998b5d838c9ccfa662 | [] | no_license | coopercenter/temoatools | b7bd871d1066dbfe2f43481a6c2ca84e4315b2b3 | 151ad4e68a4082166f87db2081bfe552f6d92253 | refs/heads/master | 2023-04-17T00:55:44.106235 | 2021-04-20T19:53:08 | 2021-04-20T19:53:08 | 295,842,252 | 1 | 1 | null | 2020-11-17T16:14:21 | 2020-09-15T20:30:59 | Python | UTF-8 | Python | false | false | 7,400 | py | import os
import sqlite3
import pandas as pd
import temoatools as tt
debug = False
resolution = 600 # DPI
# ==============================================================================
# Remove filetype from filename
def name(db):
return db[:db.find('.')]
# ==================================================... | [
"jab6ft@virginia.edu"
] | jab6ft@virginia.edu |
62ca49659bf0b33d8660c6f9a1527e2fb058ff0d | 273901aaf0addb4c8f6b1a015ef29c7e704d2a47 | /parsette/__init__.py | b6550dc540c55d338b58409c31cd02c3dc73e2d2 | [] | no_license | bqqbarbhg/parsette | 36ea2d97893c24a3553dbaad1c81e5c9eea3f8a3 | 0b57f84d0e55b8701443b8ebfc3aa2ea8ba80ad6 | refs/heads/master | 2020-04-30T11:49:03.519862 | 2019-03-20T20:25:12 | 2019-03-20T20:25:12 | 176,811,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py |
from .parsette import Lexer, Rule
| [
"samuli.1995@hotmail.com"
] | samuli.1995@hotmail.com |
f5ac969f98498b817f245eea5127f37ec78d5b86 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/l5/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/app_20200705181608.py | cfa4d4767bd82bbd5cf7b9f1eb764d3239a2e78c | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import random
from flask import Flask
from flask import render_template
#######################################
choose = ['rock', 'paper', 'scisors']
app = Flask(__name__)
#######################################
def winners():
if winner == 'compucter':
return render_template('2.html')
else:
return render_templat... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
d866b7ed98c4357d9ccc8df8cd0f45a28a019655 | 3a01d6f6e9f7db7428ae5dc286d6bc267c4ca13e | /unittests/pytests/friction/TestSlipWeakeningTimeStable.py | 85102fd93c1ba47de9f52358dcbc839563be8946 | [
"MIT"
] | permissive | youngsolar/pylith | 1ee9f03c2b01560706b44b4ccae99c3fb6b9fdf4 | 62c07b91fa7581641c7b2a0f658bde288fa003de | refs/heads/master | 2020-12-26T04:04:21.884785 | 2014-10-06T21:42:42 | 2014-10-06T21:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
d27ad5b6ed1c2a47b246e44fc38b2f4f0c57ce96 | a11bd8615f47c15fb52cd83fe7722309f250537d | /pytgf/test/test_controls/wrappers/test_bot_wrapper.py | f70529d81b25b6e27e7274105b99cfc20429dba0 | [] | no_license | Angeall/pyTGF | 75a0abfc6605f08c93181248bd529279c01b05bc | 463359a6596598c0c6cceb6e30f393d77eca0a89 | refs/heads/master | 2021-01-12T12:21:10.659708 | 2018-09-02T12:37:58 | 2018-09-02T12:37:58 | 72,452,959 | 0 | 0 | null | 2017-05-28T11:41:09 | 2016-10-31T16:00:45 | Python | UTF-8 | Python | false | false | 7,317 | py | import unittest
from typing import Tuple, List
from multiprocess.connection import Pipe
try:
from multiprocess.connection import PipeConnection
except ImportError:
PipeConnection = object
from ....characters.moves import MoveDescriptor
from ....characters.units import Entity
from ....board import Builder
fro... | [
"angeal1105@gmail.com"
] | angeal1105@gmail.com |
64ef7179aea9c2d661955269e63c1c7311a1037c | c78ce4f66cc964c230ad60fbf2ced6b4811eab89 | /0x0C-python-almost_a_circle/models/rectangle.py | 42da51e34b0deffedfd7071f7594571e3157540a | [] | no_license | jebichii/holbertonschool-higher_level_programming-1 | 89026557909851dd775ae355f036db89ebd9adb9 | 741953aa479af90e8eac6f1315415eff4a20224f | refs/heads/master | 2023-03-15T14:58:27.062528 | 2020-06-11T07:21:23 | 2020-06-11T07:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | #!/usr/bin/python3
"""Provides a class to represent a rectangle
"""
from models.base import Base
class Rectangle(Base):
"""Representation of a rectangle
"""
HEADERS = ('id', 'width', 'height', 'x', 'y')
def __init__(self, width, height, x=0, y=0, id=None):
"""Instantiate a rectangle
... | [
"pdeyoreo@gmail.com"
] | pdeyoreo@gmail.com |
f54ccd9b35fcc5700879cdbd97e2f7e94d0704ac | 77db6591c5884204d6016bfa89b33691bac38813 | /lbst/migrations/0008_delete_parcels.py | 91d01710672e0f30065b7338bf188b1d05e9f3e1 | [] | no_license | jbukoski/iltf-signal-webmap-suite | 4fc0aafa977e911a1071872f7adbaf2e7d0da37c | b8374e9cfcc80501a8f632721a7cb9b76e668f6b | refs/heads/master | 2021-03-27T11:20:37.174667 | 2020-12-31T18:03:20 | 2020-12-31T18:03:20 | 79,853,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-10-20 04:54
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('lbst', '0007_auto_20171020_0453'),
]
operations = [
migrations.DeleteModel(
... | [
"jacob.bukoski@yale.edu"
] | jacob.bukoski@yale.edu |
b09045ad72a51dcaad3ea6dd2cf2c6b90953bc15 | 316b8375a7ef8095f09973d13f5a49bc7fbe7580 | /leetcode/746.py | c1d8ec3f17c479eabb62b24a67fab00b5e1725c1 | [] | no_license | zhaolijian/suanfa | 9a8d23fbca01d994f7eef24631783c4b7ed25683 | 4f3b25f360f30c0e604ba4dc4d5774ccb5f25b32 | refs/heads/master | 2023-06-08T17:12:41.522937 | 2021-06-27T08:13:16 | 2021-06-27T08:13:16 | 313,269,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | # 数组的每个索引作为一个阶梯,第 i个阶梯对应着一个非负数的体力花费值 cost[i](索引从0开始)。
# 每当你爬上一个阶梯你都要花费对应的体力花费值,然后你可以选择继续爬一个阶梯或者爬两个阶梯。
# 您需要找到达到楼层顶部的最低花费。在开始时,你可以选择从索引为 0 或 1 的元素作为初始阶梯。
# 方法1
class Solution:
def minCostClimbingStairs(self, cost) -> int:
length = len(cost)
dp = [0] * (length + 1)
for i in range(2, length +... | [
"820913569@qq.com"
] | 820913569@qq.com |
097d8374a255ccaa7ec5bbd988be8ef1ae39bea0 | 7111511ef0cca1bcf84a76d49419fad504d78f6e | /test331scaping_Writer_nfl.py | 27f9826cb9dbf89cb2644dbd8d396d44450c712c | [] | no_license | blockchain99/pythonlecture | 7800033cd62251b0eec8cf3b93f253175d9cb2e8 | 198e1b6d68db72e4a5009f988c503958ad7ab444 | refs/heads/master | 2020-12-12T14:21:53.626918 | 2020-01-15T19:02:07 | 2020-01-15T19:02:07 | 234,148,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | ##not completed !
import requests
from bs4 import BeautifulSoup
from csv import writer, DictWriter
response = requests.get("http://en.wikipedia.org/wiki/NFL_win-loss_records")
# print(response.text)
with open('test331Write1nfl.text', 'w') as file:
file.write(response.text)
# print("===============================... | [
"shinebytheriver@yahoo.com"
] | shinebytheriver@yahoo.com |
83691555e2c9290c3b999d0373c56b611f949fc5 | cf4f3c181dc04c4e698b53c3bb5dd5373b0cc1f4 | /meridian/acupoints/tiaokou23.py | c01be663e38206cbf5f9d8dea8e5b7bee0d48952 | [
"Apache-2.0"
] | permissive | sinotradition/meridian | da3bba6fe42d3f91397bdf54520b3085f7c3bf1d | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | refs/heads/master | 2021-01-10T03:20:18.367965 | 2015-12-14T14:58:35 | 2015-12-14T14:58:35 | 46,456,260 | 5 | 3 | null | 2015-11-29T15:00:20 | 2015-11-19T00:21:00 | Python | UTF-8 | Python | false | false | 236 | py | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
SPELL=u'tiáokǒu'
CN=u'条口'
NAME=u'tiaokou23'
CHANNEL='stomach'
CHANNEL_FULLNAME='StomachChannelofFoot-Yangming'
SEQ='ST38'
if __name__ == '__main__':
pass
| [
"sinotradition@gmail.com"
] | sinotradition@gmail.com |
02e61c8774835d8f58181e6154d935bfe0f92a5c | 12f006a0e5d75ef2349d4ae519c1c9cac5309761 | /Solution_305.py | c3dacdc43397e43d3cb4084735962f719e35b8d7 | [] | no_license | TimothySjiang/leetcodepy | c613db16282eade713e01b7d641c0f5b341ec84b | ef64e46b8833a684b8b0355ce576b767a0e03596 | refs/heads/master | 2020-07-01T14:48:35.953841 | 2020-01-12T06:19:44 | 2020-01-12T06:19:44 | 201,199,810 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | class Solution:
def numIslands2(self, m: int, n: int, positions: List[List[int]]) -> List[int]:
uf = UnionFind()
res = []
board = [[0 for i in range(n)] for i in range(m)]
def detect(i, j):
if i < 0 or i > m - 1 or j < 0 or j > n - 1 or board[i][j] != 1:
... | [
"shjiang@ucdavis.edu"
] | shjiang@ucdavis.edu |
3cfdc2c73a2715bf71926835cd6c115602db7ba1 | 3fbd26091ebbc13913f9c7be1aaf10d477c79536 | /week01/zuoye/requests_maoyan/.history/maoyan_20200626235954.py | 2b50c6bd80acfa54c79e82eea959c439fb55b91e | [] | no_license | shuncon/Python001-class01 | d28faf3d5d8e9ea4cee93bcae7143a26fd8c472e | df19758181cdaf37f30d4b518600fc4612590499 | refs/heads/master | 2022-11-13T19:31:27.019214 | 2020-07-10T14:58:25 | 2020-07-10T14:58:25 | 273,135,541 | 0 | 0 | null | 2020-06-18T03:46:56 | 2020-06-18T03:46:55 | null | UTF-8 | Python | false | false | 727 | py | #-*-conding:utf-8 -*-
import requests
import lxml
from bs4 import BeautifulSoup as bfs
user_agent= 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36'
# header = {'user-agent' : user_agent}
myurl = 'https://maoyan.com/films/1222268'
'https://maoyan.com/... | [
"1428834423@qq.com"
] | 1428834423@qq.com |
0726af48353fb1ef2669ff906b763eb57f032402 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/opflex/idepdfwconndeniedhist15min.py | 81cd175dacf6fa15d7fa2f312d3d2aad8596597e | [] | 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 | 19,599 | 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 |
055b1b4762a72fc2f85d6bbed013e839d6ab0320 | 096b0e98f698e7b8c46566cd73039ec66c87f525 | /Environmental/DRAXIS/Python/vice_env_buildings_once/consumer.py | 1cabe6b241c62390a5436d2c9e019254069e132d | [
"CC-BY-4.0"
] | permissive | georgiapant/DataCrawlers | 8ba90491255e1f86b92e0ca5f78bce931c3d9553 | 1f2d2d4ab04d34fba1c90efc4119a1d40c964921 | refs/heads/master | 2022-12-09T18:24:30.947686 | 2020-07-15T13:39:08 | 2020-09-01T12:22:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | """
This code is open-sourced software licensed under the MIT license. (http://opensource.org/licenses/MIT)
Copyright 2020 Stergios Bampakis, DRAXIS ENVIRONMENTAL S.A.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to ... | [
"ababakis@draxis.gr"
] | ababakis@draxis.gr |
163344918b63b083811ad2b9058150401e41c853 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_045/ch68_2019_06_07_09_21_26_405440.py | 3fe982878107d4f1707a636956f08b24b66b2f0b | [] | 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 | 136 | py | def separa_trios(n):
l=[]
i=0
while i<len(n):
l.append(n[i:i+3])
i+=3
return l
| [
"you@example.com"
] | you@example.com |
7f90dfab2752f533bb230b138138aea3033928ff | f1a4b824faea817e3f33e477a9a6f9c7d522f72d | /tests/conftest.py | 65b4cf65266d9b03aa101c30a0b97aba88b47768 | [
"MIT"
] | permissive | singingwolfboy/flask-dance | ea94200492befe9b380c4521b084afd925b8458e | 27add7576da008a00867521bc84529d1e4a0fc1e | refs/heads/main | 2023-08-24T18:05:55.465730 | 2023-05-10T18:26:21 | 2023-05-10T18:26:21 | 23,831,381 | 928 | 211 | MIT | 2023-09-12T19:49:00 | 2014-09-09T11:53:06 | Python | UTF-8 | Python | false | false | 336 | py | import pytest
import responses as resp_module
@pytest.fixture
def responses(request):
"""
Set up the `responses` module for mocking HTTP requests
https://github.com/getsentry/responses
"""
resp_module.start()
def done():
resp_module.stop()
resp_module.reset()
request.add... | [
"david@davidbaumgold.com"
] | david@davidbaumgold.com |
15a3f81360b0d4f94f1a8cfbd7aa45d2d89ab447 | df16e0876aab8e16df5389290a1aa85928c070fc | /extraction/speaker_pitch_means.py | 21b51de667d116ca9462e2396869a4784ca4860a | [] | no_license | mlml/bestiary-set-up | da351b7557b25bd0529df354fc66a82be9247ab4 | dbb7c7d20f7ed7e2371022b1d57d2c75f08e27e4 | refs/heads/master | 2021-09-27T02:55:58.760230 | 2018-11-05T18:44:52 | 2018-11-05T18:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | t = {'suborn_1067': [197.07859924084633, 57.645448937625744], 'suborn_107': [184.06262996941945, 35.98054169716696],
'suborn_1141': [201.77963903865458, 60.52524463280524], 'suborn_1154': [176.9936643414031, 65.0082908967629],
'suborn_1224': [234.655061425061, 23.592033711730963], 'suborn_1243': [195.26758469... | [
"michael.e.mcauliffe@gmail.com"
] | michael.e.mcauliffe@gmail.com |
8415371bb92a7e51b7d22eadc0a43ab589c1fa2d | d33b768704278b6eba4f8d9c6e367cce594a457d | /generator.py | 84ac793b320dffe8d343a5ea870eade593062db8 | [] | no_license | ashishjsharda/PythonSamples | b71ecfe5768a86bbea4ac3ec683f83b633e85d97 | 433e14707ff1ce08d2e5110521caf08969db08ea | refs/heads/master | 2021-01-19T21:09:01.697894 | 2020-03-27T10:37:18 | 2020-03-27T10:37:18 | 88,614,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | '''
Created on Jul 31, 2019
Using Yield
@author: asharda
'''
def gen_nums():
n=0
while n<4:
yield n
n+=1
for num in gen_nums():
print(num)
| [
"noreply@github.com"
] | ashishjsharda.noreply@github.com |
a10b849dc80dd5b27d663b2a62652a1f7a072f47 | 94e7c790d17ba08e8a2a74077dd8b75e7ac120b0 | /chapter05/Exercise20b_05.py | dd6b8c148d72cebee8f387e7cd2addbe1a9bdb3b | [] | no_license | lutfar9427/Exercises_Solution_of_INTRODUCTION_TO_PROGRAMMING_USING_Python | 9632e515428685dcaa7d057cf52f0e191e9f7ae0 | d037475316e6c6b7c6a7a7023318ef4ab4ed3f8d | refs/heads/master | 2020-09-02T09:04:44.990668 | 2018-10-20T00:50:12 | 2018-10-20T00:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | '''
*5.20 (Display four patterns using loops) Use nested loops that display the following
patterns in four separate programs:
Pattern B
1 2 3 4 5 6
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
/**
* @author BASSAM FARAMAWI
* @email tiodaronzi3@yahoo.com
* @since 2018
*/
''... | [
"tiodaronzi3@yahoo.com"
] | tiodaronzi3@yahoo.com |
5d0829c8e3743612b1c4359ecc4e7b74619061bc | 385224b7699b8cf4358f93eea06518a92fe2d40b | /Data Representation/Linear-Models/wide_deep.py | 13169a6deeb07b52b95b42ecd09730c6d4110fea | [] | no_license | afcarl/tensorflow-machine-learning | 293ab4e513ff46a82e308dbce1fefba4831bdb18 | 60c6b62025a932948d6d96eaf611b35df5e39cda | refs/heads/master | 2020-08-21T20:49:30.237014 | 2018-02-02T06:45:17 | 2018-02-02T06:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,294 | py | """Example code for TensorFlow Wide & Deep Tutorial using tf.estimator API."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import shutil
import sys
import tensorflow as tf
_CSV_COLUMNS = [
'age', 'workclass', 'fnlwgt', 'education', ... | [
"le_j6@denison.edu"
] | le_j6@denison.edu |
cf35d907cc4cd9d30e2eeeef7859e0dc51fd7629 | f2c58d0b254dd5586266df23f57265abe322dc8c | /other/views.py | c2b449fa20ab7daf09e1904192b04355b67633e1 | [] | no_license | Shubham101491/Big-Store | f01ff85193bb77040be82385498c66faa5ac619a | 96f842c7856d2b8f6559844e0272828e0b449c6a | refs/heads/master | 2023-02-08T01:28:50.005570 | 2021-01-03T14:34:54 | 2021-01-03T14:34:54 | 326,142,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | from django.shortcuts import render
from bigstore import settings
def shipping(request):
return render(request, 'other/shipping.html', {"BASE_URL": settings.BASE_URL})
def offer(request):
return render(request, 'other/offer.html', {"BASE_URL": settings.BASE_URL})
def wishlist(request):
return render(requ... | [
"55647943+Shubham101491@users.noreply.github.com"
] | 55647943+Shubham101491@users.noreply.github.com |
735a17afc637ade1bc3e2b3f4087317f8f507f75 | 2228bdb924cb807b2ee546e5e5c93ef1b53518bb | /robocrys/condense/site.py | 584b2ae9ce987a1fa27bec971925a2df2ae566fb | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-hdf5",
"BSD-2-Clause"
] | permissive | kgmat/robocrystallographer | eb1ac5b7bb0d9a9037820a0bd63b136a919b4146 | 94291e31713e785fe83003c7568a3626d70054fe | refs/heads/master | 2022-11-06T22:18:43.281007 | 2020-07-24T16:46:44 | 2020-07-24T16:46:44 | 282,270,877 | 0 | 0 | NOASSERTION | 2020-07-24T16:43:33 | 2020-07-24T16:43:32 | null | UTF-8 | Python | false | false | 33,465 | py | """
This module provides a class to extract geometry and neighbor information.
TODO:
* distortion of geometry e.g. elongated along an axis
"""
from collections import defaultdict
from typing import Dict, Any, List, Union, Tuple, Optional
import numpy as np
from pymatgen import Composition
from pymatgen.analysis... | [
"alexganose@googlemail.com"
] | alexganose@googlemail.com |
6c13b1510aa2d1e894f03e08801f3572e56b017a | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /PhysicsTools/PatExamples/test/producePatMcMatch_cfg.py | 5ab4881d7f71ebc06a1455a4c45f7d7d8ded42d0 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 1,632 | py | # Start with a skeleton process which gets imported with the following line
from PhysicsTools.PatAlgos.patTemplate_cfg import *
# Load the standard PAT config
process.load( "PhysicsTools.PatAlgos.patSequences_cff" )
# Load the exercise config
process.load( "PhysicsTools.PatExamples.mcMatch_cfi" ) # The file to modify... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
8954d8187ee611a1397e099108f1803f3fa5ff35 | b503e79ccfca67c8114f5bd7a215f5ae993a0ba4 | /airflow/providers/amazon/aws/operators/sagemaker_endpoint_config.py | bbf2be11441f1d4d1f2d7d7be3d6bc723ee9308a | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT"
] | permissive | github/incubator-airflow | df1d9780f862ea1df8261ea6015dd50a4583f983 | 73f70e00b9fd294057f8ca6b714a85622f6d5dd5 | refs/heads/gh-2.0.2 | 2023-07-29T18:08:43.140580 | 2022-09-14T18:23:42 | 2022-09-14T18:23:42 | 80,634,006 | 24 | 27 | Apache-2.0 | 2023-04-18T04:24:36 | 2017-02-01T15:34:55 | Python | UTF-8 | Python | false | false | 2,217 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | github.noreply@github.com |
fcb09819fc0640389e046c9fbd0577354ac1e6c1 | 7ad5582d0f59de00c68e1f1dec626be68ac6332e | /src/test/parser/pattern/nodes/test_one_or_more.py | 52252322db65c60fdc295a1cb4f70372188b9286 | [
"MIT"
] | permissive | ebegen/program-y | ddb5525cb992de7f80f793742876bc9285e27b2d | 4ceb6a31c5ead813faad1b454f0c432e93d6ef7d | refs/heads/master | 2021-01-11T14:01:42.053013 | 2017-06-15T20:39:37 | 2017-06-15T20:39:37 | 94,932,566 | 1 | 0 | null | 2017-06-20T20:32:34 | 2017-06-20T20:32:34 | null | UTF-8 | Python | false | false | 1,734 | py | from programy.parser.exceptions import ParserException
from test.parser.pattern.nodes.base import PatternTestBaseClass
from programy.parser.pattern.nodes.oneormore import PatternOneOrMoreWildCardNode
class PatternOneOrMoreWildCardNodeTests(PatternTestBaseClass):
def test_invalid_wildcard(self):
with self... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
f40f42124108ad851319c5860eb45008d4a69137 | 5a281cb78335e06c631181720546f6876005d4e5 | /manila-8.0.0/manila/tests/share/drivers/test_helpers.py | 9894cf48346b73c3fcb620c4a4d48501384d5743 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 32,350 | py | # Copyright 2015 Mirantis Inc.
# 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 applicable law or a... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
6985bd54d85367c3737c150e198b75089cbd5908 | a0376b1b780488c7f97c324cbc6de51f029b21c9 | /GULBI GOURI SHANKER_4AL18EC018.py.py | 983f54cef68d3643fd05afa74f12d9b3a47eddd9 | [] | no_license | alvas-education-foundation/ECE-2year-Code-Challenge | 7af0b0e887ec3359f1546ba8d0c1f30d99e9d295 | 3ffe3e196890433c62b74263de4717795176d3da | refs/heads/master | 2022-10-14T02:01:39.165085 | 2020-06-13T10:29:07 | 2020-06-13T10:29:07 | 266,272,378 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | correct = True
while correct:
name = input("what is the user_name?")
if name == "micheal".lower():
password = input("please enter your password: ")
if password == "e3$WT89x":
print("you have successfully login.")
break
if password != "e3$WT89x":
... | [
"noreply@github.com"
] | alvas-education-foundation.noreply@github.com |
58213c5f3427d53904ddc1ebb3dc309ff9fde3a7 | 236dd1755695fd582b85381cfd40be1886b1459f | /about/migrations/0003_aboutindexpage_body_pua.py | 8bc184adeb760b89fc65b4f53879634b283ad730 | [] | no_license | davebshow/lenguapurhepecha | bbdb841085adbd5b0f42764a7e4bcafd202068c8 | c6ab3ada2b770a0bcca210fa53bb1281857e9168 | refs/heads/master | 2020-06-16T11:37:31.100321 | 2016-11-29T18:03:43 | 2016-11-29T18:03:43 | 75,107,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-29 01:54
from __future__ import unicode_literals
from django.db import migrations
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
dependencies = [
('about', '0002_auto_20161129_0114'),
]
operations = [
... | [
"davebshow@gmail.com"
] | davebshow@gmail.com |
678ab04dfd419260daa2c3e9c5de70af34821483 | 091a6200be74bf6577c86f623665bcc24e16b02b | /CircuitPython_Templates/mp3_multi_file_playback/code.py | 33f93bfe528b1f5f01e69dcdde308dc8596fa399 | [
"MIT"
] | permissive | adafruit/Adafruit_Learning_System_Guides | b5f7bce40a16da64e7a79d4b39de032f2cca41d4 | 5eaa7a15a437c533b89f359a25983e24bb6b5438 | refs/heads/main | 2023-09-05T18:31:41.621956 | 2023-09-05T15:36:09 | 2023-09-05T15:36:09 | 105,065,494 | 937 | 937 | MIT | 2023-09-12T18:48:53 | 2017-09-27T20:22:44 | C | UTF-8 | Python | false | false | 2,920 | py | # SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
# SPDX-License-Identifier: MIT
"""
CircuitPython multiple MP3 playback example.
Plays two MP3 files consecutively, once time each.
Remove this line and all of the following docstring content before submitting to the Learn repo.
INCLUDE THE MP3 FILES... | [
"kattni@adafruit.com"
] | kattni@adafruit.com |
cfbd00fd91d4aaf5d1b858f999bbb011bd8c64b4 | 48603962470b1858984342cc649b6b5376db4b9e | /user/admin.py | 4e46d6e667974c16ec527eda8660e9918a20b743 | [] | no_license | hacking-mango/hackerthon_team9_backend | 7589c0217652c61f033c292feb0f31e62db1328b | 779c010c743ae71f6ff6cb6222b1811606416079 | refs/heads/main | 2023-06-16T15:14:05.181076 | 2021-07-11T03:29:13 | 2021-07-11T03:29:13 | 382,746,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from django.contrib import admin
from .models import User
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
list_display = ("nickname", "email", "profile_image", "created_at", "position")
list_display_links = (
"nickname",
"email",
)
| [
"tjdntjr123@gmail.com"
] | tjdntjr123@gmail.com |
ded69c52bf5e9c754f8bbb682bd3910d27bf8512 | 1ed4e96c20da03fbd3aa4f18d4b004a59d8f89e5 | /Repo/venv/Lib/site-packages/torch/utils/cpp_extension.py | 3f6ec30448dff109ebdc5a552a6f5e31e08dd470 | [] | no_license | donhatkha/CS2225.CH1501 | eebc854864dc6fe72a3650f640787de11d4e82b7 | 19d4dd3b11f8c9560d0d0a93882298637cacdc80 | refs/heads/master | 2023-07-19T13:27:17.862158 | 2021-02-08T07:19:05 | 2021-02-08T07:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,130 | py | import copy
import glob
import imp
import os
import re
import shlex
import setuptools
import subprocess
import sys
import sysconfig
import warnings
import collections
import torch
import torch._appdirs
from .file_baton import FileBaton
from ._cpp_extension_versioner import ExtensionVersioner
from .hip... | [
"59596379+khado2359@users.noreply.github.com"
] | 59596379+khado2359@users.noreply.github.com |
1ef30fbace05797d49c902a596b908d39fd97ed2 | f889bc01147869459c0a516382e7b95221295a7b | /test/test_body_64.py | d35630adc76fa2b92c13394be8a3dbecbb91f624 | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
60efe30010d22cb52db0a4c4d10f599a859c97e4 | bcf85b8dc5aa1c98af4a61c0404b0be7563ebfee | /ecommerc2-API/src/orders/migrations/0005_auto_20170124_1611.py | ca9e35c278df75c8f47761c1a3bba7a3ef69730f | [] | no_license | karolius/ecommerc2-api | 39bdf662d54cb4be8db27d346efd27a7fbc8be84 | efaf0cc5b7251e1b55fc08f68d7fab00974d25e7 | refs/heads/master | 2021-01-11T09:10:17.455407 | 2017-02-16T23:45:16 | 2017-02-16T23:45:16 | 81,380,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-01-24 15:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('orders', '0004_order'),
]
operations = [
m... | [
"karolius127@gmail.com"
] | karolius127@gmail.com |
f353000de3bc8694b405d19bd1acbf833e3fe217 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /115_testing/_exercises/_templates/temp/Github/_Level_2/python_test_api-master/test_update_issue.py | 34fc6833a45bee855026e38aae7fa03bdf8eda83 | [] | 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 | 2,365 | py | ____ base_api ______ BaseApi
______ xmltodict
______ d_t_
______ requests
c_ TestUpdateIssue(BaseApi
___ test_update_issue
issue_id _ _create_issue() # obviously we need to create an issue before updating it
url _ base_url + '/issue/' + issue_id
current_time _ st.(d_t_.d_t_.now())[0:-7... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b7b54593d0b42f343c2a103add3226a69f8d758e | 1b2369715f47c9276f3dd458541d0b62cf5ba237 | /models.py | 1014224267a3e98c3240a25bef788a2aecbf1fa0 | [] | no_license | Virucek/gb_framework | 5a68cdf4f09867db3704ec589e937ddbe68b27f0 | 50893554c80583243ed301ab52e4bc46875ad241 | refs/heads/main | 2023-02-13T14:01:57.808400 | 2021-01-04T22:20:07 | 2021-01-04T22:20:07 | 319,729,864 | 0 | 0 | null | 2021-01-04T22:20:20 | 2020-12-08T18:44:10 | Python | UTF-8 | Python | false | false | 5,503 | py | """ Модели проекта """
import json
from patterns.behavioral.observer import Observer, Subject
from patterns.creational.prototype import PrototypeMixin
from patterns.orm.unit_of_work import DomainObject
class User:
def __init__(self, name):
self.name = name
class Student(User, DomainObject):
def __i... | [
"aykin.yakov@gmail.com"
] | aykin.yakov@gmail.com |
3b41186613bbe1df0198661313cd981b26eee414 | 8531bee5e42d82ffc09ef274ccb2333ca02f03cc | /python/boj/2566.py | 4a6668ddf97b156af575a8387cf04a1e04a2ed03 | [] | 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 | 235 | py | ans = 0
ans_idx01 = 0
ans_idx02 = 0
for i in range(9):
tmp = list(map(int, input().split()))
if max(tmp) > ans:
ans_idx01 = i
ans_idx02 = tmp.index(max(tmp))
ans = max(tmp)
print(ans)
print(ans_idx01 + 1, ans_idx02+1) | [
"francesco.johs@gmail.com"
] | francesco.johs@gmail.com |
de8b7b31daba8b0d65d76e9630be8f028152e974 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/mnurolcay/2011/util/misc/q4wine/actions.py | 461a1ecbe7b16a54ce9395b37efa96f01b7fe94b | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
WorkDir="q4wine-%s" % get.srcVERSION().replace("_0", "... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
bc99649fa3b238fc810e29b01a44612be761c05b | 7ebc4e9ade9c0c0312c87d74f94929e5c3bf96a6 | /aaai/compute-results-transfer-pca.py | 647d34f500f58a76c7c7f9d996bed06f9acb9606 | [] | no_license | nipunbatra/transferable-energy-breakdown-old | 7fa02dd84b0eb37875c190c5a06bfc9d1a2a9218 | bc12de92d620d33e1ca4cf841af341eb3d4bcd76 | refs/heads/master | 2021-08-22T09:24:40.322431 | 2017-11-29T21:18:43 | 2017-11-29T21:18:43 | 78,712,453 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | from aaai18.common import compute_rmse_fraction
from create_matrix import *
appliance_index = {appliance: APPLIANCES_ORDER.index(appliance) for appliance in APPLIANCES_ORDER}
import os
import pickle
source, target = sys.argv[1:]
cost = 'l21'
out = {}
for static_fac in ['None']:
out[static_fac] = {}
for lam in [0]:... | [
"nipunb@iiitd.ac.in"
] | nipunb@iiitd.ac.in |
483ce075ad6c47c5733a61979e6a25dc728bad6b | 81344c55ed60bf12818d1a0ec246f3c24c79cb4c | /力扣习题/459重复的子字符串/repeatedsubstringpattern.py | 00588e92c616933821de561132b5d6d05e859862 | [
"MIT"
] | permissive | lollipopnougat/AlgorithmLearning | 7d5c4a37bd5c814c5caea6963e81fbe0cb44b7b7 | cb13caa0159f0179d3c1bacfb1801d156c7d1344 | refs/heads/master | 2023-05-11T04:47:09.758889 | 2023-05-07T06:55:48 | 2023-05-07T06:55:48 | 194,078,151 | 7 | 2 | MIT | 2023-03-25T01:23:44 | 2019-06-27T10:53:08 | Python | UTF-8 | Python | false | false | 105 | py | class Solution:
def repeatedSubstringPattern(self, s: str) -> bool:
return s in (s + s)[1:-1] | [
"ab2defg145@gmail.com"
] | ab2defg145@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.