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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfec3e3f9e181f7560fa29eacbdd7626ae414e3b | 16ac02b8f427bd622af1564f1236e4913ed63521 | /Codes/Version 1.9.1/force_sorter.py | c3a4f9e16eb12403d6897fbe06a5af0f0c70f7b5 | [
"MIT"
] | permissive | gharib85/Brownian-dynamics-in-a-time-varying-force-field | 20660665747310e1201e8ca7d404acc15ec7a3bd | 1dce268fcc4f27e066be0ec0b511178cbc1437c5 | refs/heads/main | 2023-08-16T03:47:51.957137 | 2021-10-23T19:09:50 | 2021-10-23T19:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,583 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on March 6, 2021
@author: Mohammad Asif Zaman
- May 28, 2021
- Functionalized fluid velocity
"""
import numpy as np
import pylab as py
import matplotlib as plt
import time
from scipy import interpolate
from parameters import *
from geometr... | [
"39745895+zaman13@users.noreply.github.com"
] | 39745895+zaman13@users.noreply.github.com |
ae355ce430c65d2fdcab3685713278f7881f618e | 32dda10669e459cf37c31f426fa709001d2c75b0 | /leetcode_cn/solved/pg_926.py | f858309b00cdcbf0e1b7e35377b4344e80aca5d1 | [] | no_license | fastso/learning-python | 3300f50d06871245d0bfcbe9d201224580f70852 | d21dbd1b9f31017cdb1ed9b9ffd1e53ffe326572 | refs/heads/master | 2023-02-10T14:43:53.726247 | 2023-01-26T10:14:59 | 2023-01-26T10:14:59 | 193,454,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | class Solution:
def minFlipsMonoIncr(self, s: str) -> int:
p = [0]
for c in s:
p.append(p[-1] + int(c))
return min(p[i] + len(s) - i - (p[-1] - p[i]) for i in range(len(p)))
| [
"fastso.biko@gmail.com"
] | fastso.biko@gmail.com |
01ad1462bd75d8419ef238415f086483904f0de2 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_examples/Learn Parallel Computing in Python/004_condition_variables/stingy_spendy_cond_variable.py | 790010e66a70ddcb69293dc906896900f0e63fe9 | [] | 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 | 791 | py | import time
from threading import Thread, Condition
class StingySpendy:
money = 100
cv = Condition()
def stingy(self):
for i in range(1000000):
self.cv.acquire()
self.money += 10
self.cv.notify()
self.cv.release()
print("Stingy Done")
d... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
0b4478a24e878754d3ce2b47225c1fcdeda4363b | 53edf6b0f4262ee76bb4e3b943394cfeafe54865 | /linear_theory/Non_linear_stuff/geopack_test.py | 8885c66e0b3c6e38a6be562edce45df4d3d234f6 | [] | no_license | Yoshi2112/hybrid | f86265a2d35cb0a402ba6ab5f718717d8eeb740c | 85f3051be9368bced41af7d73b4ede9c3e15ff16 | refs/heads/master | 2023-07-07T21:47:59.791167 | 2023-06-27T23:09:23 | 2023-06-27T23:09:23 | 82,878,960 | 0 | 1 | null | 2020-04-16T18:03:59 | 2017-02-23T03:14:49 | Python | UTF-8 | Python | false | false | 3,948 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 31 11:17:17 2021
@author: Yoshi
"""
import pdb
import matplotlib.pyplot as plt
import numpy as np
import geopack as gp
# Want to use geopack to give me a trace of the magnetic field alone a field
# line, and somehow convert (x, y, z) in GSM (?) to an s-value
# Would it ... | [
"joshua.s.williams@uon.edu.au"
] | joshua.s.williams@uon.edu.au |
4c9df45b6b637fcd01d083c271d5cbf9cfbc3413 | c7e028d71b5dd72eb18b72c6733e7e98a969ade6 | /src/demos/datastructures/expressioneval.py | 30185336f42de290841e528b0e3f0eb704a41207 | [
"MIT"
] | permissive | antoniosarosi/algoritmia | da075a7ac29cc09cbb31e46b82ae0b0ea8ee992f | 22b7d61e34f54a3dee03bf9e3de7bb4dd7daa31b | refs/heads/master | 2023-01-24T06:09:37.616107 | 2020-11-19T16:34:09 | 2020-11-19T16:34:09 | 314,302,653 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | #coding: latin1
from algoritmia.problems.traversals.treetraversals import PostorderTreeTraverser #[]dos
from algoritmia.datastructures.queues import Lifo #[pre
from algoritmia.datastructures.trees import ListOfListsTree
class ExpressionEvaluator:
def __init__(self, createLifo=lambda: Lifo()):
self.c... | [
"amarzal@localhost"
] | amarzal@localhost |
529e7a1ad3229cb026b3acc0d8c25e1c1d835045 | 2125593138c50b1fba5e46cd4d88d6c04d0b417a | /알고리즘-파이참/백준/code_Test/LZW 압축.py | 19315db3a2344d4ff8407c1596119911f4df610c | [] | no_license | minkishome/TIL-master | 5f0e6ef61b34a2983961ccf44f7523603ccb5907 | d8edc0ff8abff3b2239a2d751eee263b722013a6 | refs/heads/master | 2023-01-21T00:43:30.165535 | 2020-08-25T14:56:18 | 2020-08-25T14:56:18 | 203,070,283 | 0 | 1 | null | 2023-01-05T01:08:10 | 2019-08-19T00:18:31 | Python | UTF-8 | Python | false | false | 895 | py | from string import ascii_uppercase
def solution(msg):
answer = []
ls_abc = [0] + list(ascii_uppercase)
idx = 0
flag = len(msg)
# print(ls_abc.index('AA'))
while idx < flag:
word = ''
for i in range(idx, flag):
word += msg[i]
idx += 1
if word ... | [
"minkishome@gmail.com"
] | minkishome@gmail.com |
41028d5c4ae422f93009422780b1acaf80ec0334 | 96d77068d6762bad6847a2c74dfd6c220a3fdd75 | /features/generate_wordvector_distances.py | d3514741c4fc634bd2fd297014510fcb474f002a | [
"MIT"
] | permissive | SunnyMarkLiu/Kaggle_Quora_Question_Pairs_Intent | 402cc2c4eaf40d25794dd6ff0b583411865f884b | 1b6914cd08d1bb3e815aacdf0f220458f5d75f7c | refs/heads/master | 2021-05-05T12:08:51.823673 | 2017-10-05T10:42:52 | 2017-10-05T10:42:52 | 104,720,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,489 | py | #!/usr/local/miniconda2/bin/python
# _*_ coding: utf-8 _*_
"""
@author: MarkLiu
@time : 17-10-5 上午11:28
"""
from __future__ import absolute_import, division, print_function
import os
import sys
module_path = os.path.abspath(os.path.join('..'))
sys.path.append(module_path)
import cPickle
import numpy as np
from uti... | [
"SunnyMarkLiu101@gmail.com"
] | SunnyMarkLiu101@gmail.com |
0a0065801350f7189f26c180481a975d51f3d661 | abef98cfa3fb2c4626eb8c0a77c1080992d9b11b | /c/python-interface/spam/test-spam.py | c714b78481ecb371933cc40cde3dd794cddbcf59 | [] | no_license | mikebentley15/sandbox | ff88ed9dc4b9ac37668142a319d0a8162e88e9e3 | 4f5869544de18be21f415a9d6f9b71c362307f27 | refs/heads/main | 2023-04-14T00:22:34.623441 | 2023-03-24T21:43:56 | 2023-03-24T21:43:56 | 116,987,549 | 6 | 3 | null | 2022-10-26T03:02:06 | 2018-01-10T17:14:54 | C++ | UTF-8 | Python | false | false | 947 | py | #!/usr/bin/env python3
import spam
print()
status = spam.system("ls -l | wc")
print("status: ", status)
print()
print('Expect spam.SpamError')
try:
status = spam.check_system("false")
print("status: ", status)
except spam.SpamError as ex:
print(' ', ex)
print(' ignored')
print()
s = spam.Spam("Real ... | [
"mikebentley15@gmail.com"
] | mikebentley15@gmail.com |
f2795230818272b8a213a4a39e164aa72cffeb1a | 0629ada6a00ceff0dc567b965ec021278ca27a7f | /pyhon_zh_web/pageobject/Home_page.py | b0428c5fb1c75ac098c54857b75b2147cf16d303 | [] | no_license | zhaozongzhao/sqbj_web | 48310e41dc914ae82bc3fa919b63a9ffea04f22e | 7d33acbaca18b6764f80e2247ff631e46d5b0b89 | refs/heads/master | 2020-04-09T18:22:49.280922 | 2019-09-26T10:01:53 | 2019-09-26T10:01:53 | 160,510,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from selenium import webdriver
import time
from selenium.webdriver.support.ui import WebDriverWait
import traceback
from Util.ParsePageObjectRepository import *
from Util.var import *
from Util.ObjectMap import *
from selenium.webdriver.support.ui import Select
class HomePage(object):
def __init__(self,driver):
... | [
"2206321864@qq.com"
] | 2206321864@qq.com |
1851b1294e96a418b521d90051a6aa7ba5f128fc | efd8628adc042ae2d58fa89cc31a5c1c80aa94f6 | /data/stochastic_dataset_script/load_save_data.py | faf224b7b20e02dfae644277e27d62b61bfaff04 | [] | no_license | Xharlie/stochast_dynamic_for_video_infilling | d7e0bfaf8b71cf3f39170793e5a1a50b289aee40 | a825de4c5178f7084925817f0631ac331073866f | refs/heads/master | 2021-03-27T09:11:15.478067 | 2019-10-23T17:59:25 | 2019-10-23T17:59:25 | 110,137,739 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,896 | py | import tensorflow as tf
import numpy as np
import imageio
import cv2
def vids_2_frames(tfiles, data_path, image_size_h, image_size_w, channel):
vids=[]
actions=[]
for i in xrange(len(tfiles)):
f_name = tfiles[i]
tokens = f_name.split()
vid_path = data_path + tokens[0] + ("_uncomp.av... | [
"charlie.xu007@yahoo.com"
] | charlie.xu007@yahoo.com |
4d33d5ef634b5714a020bc5477a6c0a495e1ad47 | fa3d19403750d300a4228fa0fc414c88c49a6d35 | /bin/pfurl | 37f78b8d6bb0f06d9b056bd75cde10fb8222b4ab | [
"MIT"
] | permissive | priyakapadia/pfurl | 2c700217d0f2c623e5fddde62c96f10502eebb49 | 3392347b5874fc4af7f1f3798e692bd0e3733351 | refs/heads/master | 2021-01-20T02:24:47.745713 | 2017-04-21T19:36:07 | 2017-04-21T19:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | #!/usr/bin/env python3.5
#
# (c) 2017 Fetal-Neonatal Neuroimaging & Developmental Science Center
# Boston Children's Hospital
#
# http://childrenshospital.org/FNNDSC/
# dev@babyMRI.org
#
import sys, os
sys.path.insert(1, os.path.join(os.path.dirname(__file__), '..'... | [
"rudolph.pienaar@gmail.com"
] | rudolph.pienaar@gmail.com | |
7638f5b06086fd4352f99f4e28e29719f59c1a59 | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/nsx/vsm/edge/edge_firewall_schema/edge_firewall_rule_application_schema.py | e6b475f52d5dcc3b1981baeeef177e822df242aa | [] | no_license | Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import base_schema
from edge_firewall_rule_application_service_schema import FirewallRuleApplicationServiceSchema
class FirewallRuleApplicationSchema(base_schema.BaseSchema):
_schema_name = "application"
def __init__(self, py_dict=None):
""" Constructor to create FirewallRuleApplicationSchema object
... | [
"bpei@vmware.com"
] | bpei@vmware.com |
58668ff0ee439f72a7abb030a5a1180a8f974d1e | 7882860350c714e6c08368288dab721288b8d9db | /1일차/func(1번문제).py | 30e5d8dec0d211d9db0a6a342ba840820f468502 | [] | no_license | park-seonju/Algorithm | 682fca984813a54b92a3f2ab174e4f05a95921a8 | 30e5bcb756e9388693624e8880e57bc92bfda969 | refs/heads/master | 2023-08-11T18:23:49.644259 | 2021-09-27T10:07:49 | 2021-09-27T10:07:49 | 388,741,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # def abc(t):
# for i in range(len(t)):
# if t[i] != t[len(t)-1-i]:
# return False
# return True
# word = input()
# print(word)
# if abc(word):
# print("입력하신 단어는 회문(Palindrome)입니다.")
# else :
# print("입력하신 단어는 회문(Palindrome)이 아닙니다.")
a=input()
b=str(reversed(a))
print(type(b))
if ... | [
"cucu9823@naver.com"
] | cucu9823@naver.com |
f8e1c79af7f8ff238e4aa312ef2ee68f1e70f4a8 | 03c00aa07607c1f206c0fb3cf00fc5c510d7a4bf | /Infoplus/apis/carrier_service_api.py | 3666fa7df7e4744314451fd9fceb448261b997ef | [] | no_license | infopluscommerce/infoplus-python-client | 748cc9af739615036c52adce70aa7f4303601b97 | bde657057fedb5396ecf6c42e8ba668456bd1c43 | refs/heads/master | 2023-08-23T11:32:01.160320 | 2017-03-17T14:43:15 | 2017-03-17T14:43:15 | 58,404,638 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,611 | py | # coding: utf-8
"""
CarrierServiceApi.py
Copyright 2016 SmartBear Software
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 req... | [
"kdonnelly@infopluscommerce.com"
] | kdonnelly@infopluscommerce.com |
5964837f4eff397b07abd2f9cf033fbca7a302c2 | 6540f5a1ba587fb06067a09e67d0603e22305631 | /apps/users/admin.py | 7a124deede616de4741134a5ccf003d45c473533 | [] | no_license | bluehawkarthur/ebil | 3ff8171672baaebeacfd95f8fb68c9df3e0d54ad | 9d3d5291f2aa3f0822047cd88d398add4b987c54 | refs/heads/master | 2021-01-17T11:18:24.173696 | 2016-10-06T22:20:53 | 2016-10-06T22:20:53 | 46,352,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.contrib import admin
from .models import User, Personajuridica
admin.site.register(User)
admin.site.register(Personajuridica)
| [
"josedanielf9@gmail.com"
] | josedanielf9@gmail.com |
29818ba52762eb59c2db173b8688f4636cf37b75 | c4591b23aebde4a1ec262a6b3f5cc124fea0d638 | /ExceptionHandling/02-code.py | a072cdaae3db241510b0ae750e404b9e9a643154 | [] | no_license | ravi4all/PythonApril_21 | b41f2c845c4003d4291d46d52294767741d4f0d8 | 52a1f538182a7ce78b2c90db3f745d37ea321897 | refs/heads/main | 2023-05-04T01:48:11.414424 | 2021-05-24T12:27:30 | 2021-05-24T12:27:30 | 356,850,524 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | try:
file = open('file_1.txt','w')
file.write("Hello")
data = file.read()
print(data)
# file.close()
except BaseException as ex:
print(ex)
finally:
print("Finally will always execute")
file.close() | [
"noreply@github.com"
] | ravi4all.noreply@github.com |
547407b8be9ec042211d5cdf47758cab6df9f6e4 | 2a3743ced45bd79826dcdc55f304da049f627f1b | /venv/lib/python3.7/site-packages/notebook/log.py | 3621a70caef590f7d25e7f206b7a6f9826090430 | [
"MIT"
] | permissive | Dimasik007/Deribit_funding_rate_indicator | 12cc8cd7c0be564d6e34d9eae91940c62492ae2a | 3251602ae5249069489834f9afb57b11ff37750e | refs/heads/master | 2023-05-26T10:14:20.395939 | 2019-08-03T11:35:51 | 2019-08-03T11:35:51 | 198,705,946 | 5 | 3 | MIT | 2023-05-22T22:29:24 | 2019-07-24T20:32:19 | Python | UTF-8 | Python | false | false | 1,788 | py | #-----------------------------------------------------------------------------
# Copyright (c) Jupyter Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#--------------------------------------------------------------... | [
"dmitriy00vn@gmail.com"
] | dmitriy00vn@gmail.com |
323b337749b6214dcef22befb999fdc3ec1afa0c | 14804b282e567bf45c974b9a55cbdfa1907c5958 | /7_Modules/E_from_Import_module.py | f330334ed400c444afaf4beadb73d5e60f834495 | [
"MIT"
] | permissive | Oscar-Oliveira/Python-3 | cfdcbcf4548144fb2488625f53f76b20e4d8c5b0 | fa791225a6810b75890d24407b73c5e1b514acbe | refs/heads/master | 2021-09-26T06:27:16.367956 | 2018-10-27T10:42:21 | 2018-10-27T10:42:21 | 101,991,657 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | """
Import module example
"""
from C_my_module import my_sum, __version__, __sprint__, some_value
print(my_sum(1.25, 3.2))
print(__version__)
print(__sprint__)
print(some_value)
| [
"oscar.m.oliveira@gmail.com"
] | oscar.m.oliveira@gmail.com |
a04ef2491409689efa7fb5b643c15eede0ce6500 | 2e60017779c5c286629ab5a3a7aeb27a6b19a60b | /python/problem_38.py | 7a9e34b9da335053313aef540af6db768d6ad191 | [] | no_license | jamesjiang52/10000-Lines-of-Code | f8c7cb4b8d5e441693f3e0f6919731ce4680f60d | 3b6c20b288bad1de5390ad672c73272d98e93ae0 | refs/heads/master | 2020-03-15T03:50:38.104917 | 2018-05-07T04:41:52 | 2018-05-07T04:41:52 | 131,952,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | if __name__ == '__main__':
import sys
sys.path.insert(0, 'C:\\Users\\James Jiang\\Documents\\Project Euler')
from functions import *
from progress import Progress
answers_list = ['dummy']
with open('C:\\Users\\James Jiang\\Documents\\Project Euler\\answers.txt') as answers:
for line in answers:
an... | [
"jamesjiang52@gmail.com"
] | jamesjiang52@gmail.com |
ef1e26ac2e2027166701c8f393f5f6cbba7dd26a | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/beginner/beginner-bite-32-dont-mutability-fool-you.py | bb552f90e582a2a3dc772ff09e46161df47d251e | [] | 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 | 606 | py | '''
In this Bite you are presented with a function that copies the given items data structure.
There is a problem though, the tests fail. Can you fix it?
This can be done in a one liner. If you know which module to use it will be easy,
if not you will learn something new today.
Regardless we want you to think about ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
dbe92292a15e5a2a15eb70407f835d192eb3601a | 63d3a6255f2677f9d92205d62163b9d22a74c5c7 | /modules/accounts/migrations/0024_alter_user_protec_sub_pass.py | dbe591a3aaa8fc2e6defef1a0cf0a10b14cdb8ac | [
"Apache-2.0"
] | permissive | GPCRmd/GPCRmd | 9204f39b1bfbc800b13512b316e05e54ddd8af23 | 47d7a4e71025b70e15a0f752760873249932c54e | refs/heads/main | 2023-09-04T11:13:44.285629 | 2023-08-29T13:43:01 | 2023-08-29T13:43:01 | 260,036,875 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Generated by Django 4.1.5 on 2023-06-19 15:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0023_user_protec_sub_pass'),
]
operations = [
migrations.AlterField(
model_name='user',
name='protec_sub... | [
"adrian.garcia.recio@gmail.com"
] | adrian.garcia.recio@gmail.com |
8c9aa6151183c5a58c9b2f4629ee57dc75958092 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_204/193.py | e70d2b19de1b0addcc2ca7ee2d5b7e204e5ad372 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | import math
def make_kits(num_ingredients, num_packages, ingredients_proportion, packages):
for i in xrange(0, num_ingredients):
packages[i].sort()
counter = 0
pointers = [0]*num_ingredients
for i in xrange(0, num_packages):
num_servings = serving(packages[0][i], ingredients_proportion[0])
# print "i: ", i, ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
b6edd7683db0062d6bd530a81b71c14729977618 | f08336ac8b6f8040f6b2d85d0619d1a9923c9bdf | /3-lengthOfLongestSubstring.py | e11ad2357de806386f05b36afa99e4988224ba70 | [] | no_license | MarshalLeeeeee/myLeetCodes | fafadcc35eef44f431a008c1be42b1188e7dd852 | 80e78b153ad2bdfb52070ba75b166a4237847d75 | refs/heads/master | 2020-04-08T16:07:47.943755 | 2019-02-21T01:43:16 | 2019-02-21T01:43:16 | 159,505,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | '''
3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.
Example 1:
Input: "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.
Example 2:
Input: "bbbbb"
Output: 1
Explanation: The answer is "b", with the len... | [
"marshallee413lmc@sina.com"
] | marshallee413lmc@sina.com |
1b02c0d09ab89fd002e5a0b4d19bc4797f962554 | 823105ac7d892cf214ed9dcd8eaba315b01c1ed7 | /model/unet.py | 7105c7f28fcfcc05af73a60055e12a885fd43f39 | [] | no_license | jiye-ML/lane_detection_baidu_2019 | ccee82a1272bace80f9e128c24ae5ff64b827bd7 | 6ed35de00a34a8714a32c2a3ff649c4b0b1f1407 | refs/heads/master | 2022-12-10T20:46:27.983785 | 2020-08-29T03:26:25 | 2020-08-29T03:26:25 | 223,421,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | import torch
import torch.nn as nn
from model.network import ResNet101v2
from model.module import Block
class UNetConvBlock(nn.Module):
def __init__(self, in_chans, out_chans):
super(UNetConvBlock, self).__init__()
block = [
nn.Conv2d(in_chans, out_chans, kernel_size=3, padding=1),
nn.ReL... | [
"woxinxie1234@163.com"
] | woxinxie1234@163.com |
aceb1fcdf196d716cb53b0a7e02874bfd259fffa | e2426d7c01500ca4a2df4e4555f217f957baf957 | /cows/service/imps/geoplot_wms_backend/slabs/slab_base.py | 3375ea42382e0d9856eba9bfa7bb8f66d03e401f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | cedadev/cows | 959a5e1ad220cfe0cce48a2131d6971106c765aa | db9ed729c886b271ce85355b97e39243081e8246 | refs/heads/master | 2020-03-16T15:17:45.710584 | 2018-05-09T10:35:47 | 2018-05-09T10:36:37 | 132,736,968 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,755 | py | # BSD Licence
# Copyright (c) 2010, Science & Technology Facilities Council (STFC)
# All rights reserved.
#
# See the LICENSE file in the source distribution of this software for
# the full license text.
import logging
import time
import numpy
from geoplot.utils import isRangeInLimits
import geoplot.colour_scheme as... | [
"ag.stephens@stfc.ac.uk"
] | ag.stephens@stfc.ac.uk |
406894c61e6011d157c6b62a0eccbe5a91f21124 | 58fb8cebdb51a83c6afd29f6b0d745d07ccfb441 | /Cmonitor/statTasks/tasks.py | be2edf49342afdb91b45469ba2b8bd66d0a2a4b2 | [] | no_license | amonlong/Cmonitor | 7980baabc139a62f9870fe0110076b761b7890b6 | 6cf1ec84db69236c9ff79c7bc475a0fa26e40e12 | refs/heads/master | 2020-03-09T22:39:58.661338 | 2018-04-23T06:01:56 | 2018-04-23T06:01:56 | 129,039,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | #-*- coding: utf-8 -*-
from __future__ import absolute_import,unicode_literals
import uuid
import time
from celery import states
from apps.record.models import TaskState, TaskItem
from statTasks.celery import app
from statTasks.subtasks import index, userInfo, business, risk, uniId
def makeRecord(taskname, stime, ... | [
"250986341@qq.com"
] | 250986341@qq.com |
11061c8608613ee3897a45acfe68832ba4ec274e | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project2/Project2/.history/blog/admin_20211115153912.py | aabc2adbfaef442cdd6a022985cdf4696abffa70 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 570 | py | from django.contrib import admin
from .models import Blog
from django import forms
from ckeditor_uploader.widgets import CKEditorUploadingWidget
# Register your models here.
class LessonForm(forms.Mode):
content = forms.CharField(widget=CKEditorUploadingWidget)
class Meta:
model = Blog
fields... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
2a428d4157e23eb314c57e4cb9f438c38a5c599d | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/generatedServer/tasklets/sso/changeAgentPassword/sso_changeAgentPassword.py | 6e7965e0ea2c880b5f9870c2b34e27563455236e | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 186 | py | __author__ = 'aserver'
__tags__ = 'sso', 'changeAgentPassword'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
dc87b8ec1e10aade6ad80e91571d12ee9671758b | c5b062551f2131b4d9d68de44d0eceebb57403d9 | /tests/refresh_token/test_shortcuts.py | 1a69514235e1294ddcef5bd8aed414ebeb26f760 | [
"MIT"
] | permissive | PedroBern/django-graphql-jwt | e78437257e6d948ba48c32107596742c4e9753b9 | 6e816445b72e7582d0595fda9e7e5d0486026045 | refs/heads/master | 2020-12-05T10:12:20.893450 | 2019-12-05T15:28:42 | 2019-12-05T15:28:42 | 232,077,280 | 1 | 0 | MIT | 2020-01-06T10:28:28 | 2020-01-06T10:28:28 | null | UTF-8 | Python | false | false | 521 | py | from graphql_jwt import shortcuts
from graphql_jwt.exceptions import JSONWebTokenError
from ..testcases import UserTestCase
class ShortcutsTests(UserTestCase):
def test_get_refresh_token(self):
refresh_token = shortcuts.create_refresh_token(self.user)
user = shortcuts.get_refresh_token(refresh_t... | [
"domake.io@gmail.com"
] | domake.io@gmail.com |
e6293c0f6d02105de2139fc70ed4a725fedec707 | 7c19fbfe632d6fc32b1d2ba4f53aac17f9351483 | /test.py | b312087306712d3d8e304f240172b11d2a06c079 | [] | no_license | ymsk-sky/capture_tube | 3cdea1e0634d6252a8980aa685f963cc3de12518 | bc6e9bb5c88e4b9212c02b249eef8b40f1e5aa24 | refs/heads/master | 2020-12-27T16:27:04.528906 | 2020-04-08T11:08:16 | 2020-04-08T11:08:16 | 237,970,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | # -*- coding: utf-8 -*-
import cv2
import pafy
import youtube_dl
def main():
src = 'test.mp4'
video = cv2.VideoCapture(src)
if not video.isOpened():
return
# fpsを取得
fps = int(video.get(cv2.CAP_PROP_FPS))
# 分類器を作成
cascade_file = 'lbpcascade_animeface.xml'
clf = cv2.CascadeClass... | [
"ymsk.sky.95@gmail.com"
] | ymsk.sky.95@gmail.com |
13b88e53752bbfb7de8405c6c5af6b3a53d11bd7 | 3d4a6bd2297ac04b112bc8d24fa1118f692a4e2b | /procon_python/src/atcoder/abc/past/B_044_BeautifulStrings.py | 5bc6369e3357ba32fb294ba56744f3eb855c7957 | [] | no_license | WAT36/procon_work | beba626d9b9c1effded8c9b9f56fbc37abd13636 | 2e6bc42e6f25938afe740682ad7b6c21a0838d42 | refs/heads/master | 2021-08-16T11:56:25.048392 | 2021-06-17T14:13:10 | 2021-06-17T14:13:10 | 162,991,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | w = input()
word = {}
l = len(w)
for i in range(l):
n = word.get(w[i], 0)
n = n+1
word[w[i]] = n
flag = True
for i in word.values():
if(i % 2 == 1):
flag = False
break
if(flag):
print("Yes")
else:
print("No")
| [
"motohari.xanadu@gmail.com"
] | motohari.xanadu@gmail.com |
3c2e5aaa02755fa348d33bdb44613ba9ceabf258 | 07c4c39a3f43aa41327702329cddf555ac489f0e | /.PyCharmCE2019.1/system/python_stubs/1499390420/typed_ast/_ast27/Import.py | bcab2971d027f20d058802751dc4c2363981afe7 | [] | no_license | shirotakoki/teran | a2ba42c2d2c605c7421b35dc1dfa5f51baec0fd7 | 13c5e8d7484d148c3490726aa860d5a10165381b | refs/heads/master | 2023-02-04T21:18:51.829188 | 2020-09-27T08:26:54 | 2020-09-27T08:26:54 | 323,551,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # encoding: utf-8
# module typed_ast._ast27
# from C:\Users\teran\AppData\Roaming\Python\Python37\site-packages\typed_ast\_ast27.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
from .stmt import stmt
class Import(stmt):
# no doc
def __init__(self, *args, **kwargs): # real signature unknown
... | [
"teranosinn@gmail.com"
] | teranosinn@gmail.com |
bb4f37c64f211df4f9a73f5b49800a64ada951c9 | f925499f896b012624118cfafd02fef76ff5075a | /src/testcase/GN_Y201J/input_case/GN_Y201J_Over_Day.py | 227028df3fa47b789517261bde3cd7c1da6899a7 | [
"Apache-2.0"
] | permissive | maiyajj/AutoTest_script-Appium_Connect | f7c06db1d2f58682d1a9d6f534f7dd5fb65d766d | f9c2c42c281a9e2f984acb4a72dda0694b053f22 | HEAD | 2019-07-26T01:39:48.413753 | 2018-04-11T02:11:38 | 2018-04-11T02:11:38 | 112,449,369 | 30 | 22 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # coding=utf-8
try:
from src.testcase.GN_Y201J.case.GN_Y201J_OVER_DAY.GN_Y201J_OVER_DAY_001 import *
from src.testcase.GN_Y201J.case.GN_Y201J_OVER_DAY.GN_Y201J_OVER_DAY_002 import *
from src.testcase.GN_Y201J.case.GN_Y201J_OVER_DAY.GN_Y201J_OVER_DAY_003 import *
from src.testcase.GN_Y201J.case.GN_Y201J_... | [
"1045373828@qq.com"
] | 1045373828@qq.com |
fb01fad045d376f95d097d9da88e8099c7a6cfdd | 36bdbbf1be53ba5f09b9a2b1dd15e91f8f6b0da1 | /restaurants/migrations/0062_auto_20181226_0610.py | 3d00e07850b262bdc620a65cc97e2a5a2c9e49af | [] | no_license | phufoxy/fotourNew | 801ab2518424118020dc6e5f31a7ba90a654e56a | 6048c24f5256c8c5a0d18dc7b38c106a7c92a29c | refs/heads/master | 2023-04-13T01:34:22.510717 | 2018-12-26T03:46:09 | 2018-12-26T03:46:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Generated by Django 2.1.4 on 2018-12-26 06:10
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restaurants', '0061_auto_20181226_0609'),
]
operations = [
migrations.AlterField(
model_name='comment_restaurant... | [
"vanphudhsp2015@gmail.com"
] | vanphudhsp2015@gmail.com |
1e1c0f99075f01def2a23ac3fa4b1465b418cc2a | e44c83395d2ddd1e1b7c1e521d360f2ef8d585d0 | /gitlab-new/landchina/landchina.py | 8b8fd2fccd158e28a5533e0137c4282c437ec99c | [] | no_license | zhoujx4/Crawls | 63ebcac5b4c0bbccdde56e6a2f5efbc4091d03e0 | 94b3ac88d7e49cb4a03e7b211a9437709d1c371c | refs/heads/master | 2020-12-23T15:25:48.041965 | 2020-01-30T10:35:19 | 2020-01-30T10:35:19 | 237,189,197 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,121 | py | import fitz
import datetime
import time
from time import sleep
import re
import os
import sys
import csv
import socket
import random
from urllib import parse
from collections.abc import Iterable
from collections.abc import Mapping
from PIL import Image
from landchina.settings import settings
sys.path.append("..")
fro... | [
"673760239@qq.com"
] | 673760239@qq.com |
00a0f660b96836d3c0823a3c10c5289c90c74ab4 | 82ef9a0dd1618a28770597227acfc0150b948af2 | /wearnow/plugins/sidebar/categorysidebar.py | a878520c4e392dca2b4a5ca6025627ff95349c32 | [] | no_license | bmcage/wearnow | ef32a7848472e79e56763b38551835aa97864b21 | c8dfa75e1ea32b0c021d71c4f366ab47104c207e | refs/heads/master | 2021-01-16T00:27:59.597812 | 2016-01-19T11:55:03 | 2016-01-19T11:55:03 | 37,195,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,347 | py | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2005-2007 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2009 Benny Malengier
# Copyright (C) 2010 Nick Hall
# Copyright (C) 2011 Tim G L Lyons
#
# This program is free software; you can redistribute... | [
"benny.malengier@gmail.com"
] | benny.malengier@gmail.com |
989d249c6266a0283ffbc88c2776a2ecdb833eca | c25f64f43660d5a5065327f258f3e7348d93e438 | /asyncio_redis/encoders.py | 68a493e85b54bf349b6f1c61466fd292929b58c3 | [
"BSD-2-Clause-Views"
] | permissive | jonathanslenders/asyncio-redis | 96735d4270453eaa8435e8e39b5c536abb1a7d86 | 50d71a53798967f7fdf1be36b8447e322dedc5ee | refs/heads/master | 2022-04-06T16:06:50.671959 | 2020-06-12T21:18:37 | 2020-08-11T13:56:51 | 13,547,040 | 495 | 83 | NOASSERTION | 2021-01-11T13:44:37 | 2013-10-13T21:31:36 | Python | UTF-8 | Python | false | false | 2,095 | py | """
The redis protocol only knows about bytes, but we like to have strings inside
Python. This file contains some helper classes for decoding the bytes to
strings and encoding the other way around. We also have a `BytesEncoder`, which
provides raw access to the redis server.
"""
__all__ = ("BaseEncoder", "BytesEncoder... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
a794664d21b2877b6ebe81762c14babbf6aa8140 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/shell/v1/shell-v1-py/scripts/fixup_shell_v1_keywords.py | c4b2aa4ae9e1c4e9409492197cc740fab3accbec | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,211 | py | #! /usr/bin/env python3
# -*- 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 requi... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
15855cb736dc27f1def8b56d28bc287b6cac6fdf | 1207c58fa92dad30050b9f3bcc1173d7e7034c73 | /train_mnist/train.py | 3259594eb13f1d915ccdf55d49383f85fcb36d13 | [] | no_license | chagge/rethinking-generalization | b49cf59c8d4d2c3607fa2074a80f86d8e682150c | 317c1ae29ae119d7399e8e04e95eb903f4d1c045 | refs/heads/master | 2021-01-22T09:04:55.449746 | 2017-02-12T16:41:09 | 2017-02-12T16:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | import numpy as np
import os, sys, time, math
from chainer import cuda
from chainer import functions as F
import pandas as pd
sys.path.append(os.path.split(os.getcwd())[0])
import dataset
from progress import Progress
from mnist_tools import load_train_images, load_test_images
from model import model
from arg... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
056345d4c6d7aad110c67c6acea795d071247950 | 7d7d37a66e970af3cc0beca3babba9ef18f8d7c1 | /Searching Algorithms/LinearSearch.py | 42f93963971baac2bab579ee83d77359c8443b40 | [
"MIT"
] | permissive | DrakeEntity/DataStructureAndAlgorithm | 762e4d01024252754c1308e642803cccaa461fb0 | 9c942217e1a31f143e739682680c12f67d717ee3 | refs/heads/master | 2022-04-21T02:25:39.318888 | 2020-04-24T15:32:33 | 2020-04-24T15:32:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | class Search:
""" True : If searching objet found in list it will return True
False : If Searching object not found in list it will return False
"""
def __init__(self,list,search_for):
self.list = list
self.search_for = search_for
def __len__(self):
return len(self.lis... | [
"54245038+perfect104@users.noreply.github.com"
] | 54245038+perfect104@users.noreply.github.com |
764cdd64ee9f866e42d940df2f06f450d0e88fd7 | f889bc01147869459c0a516382e7b95221295a7b | /test/test_catalog_data_custom_option_interface.py | ca5ca581745279b4da16c3436707fa9b39887277 | [] | 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 | 1,085 | 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 |
7a5bc213722fdefb013d9c11de37ab21381a8ff8 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_Softsign_base.py | 206436de22ef7510496f8c5810e52b215c72787a | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 623 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
7dba6a3289087fe713494551fb12554582fca39e | 05824d96edf28918e25886716f0a5f904868a872 | /diff_tool.py | d638d6c9b4a4e50b342d048a3f0bb7a0f2ba7f91 | [
"MIT"
] | permissive | DahlitzFlorian/diff-tool-video-snippets | d7c5fb8616fc06f71566d7c9eae9be9e5ec1bf7d | 0cd457abe43e63732810dbfec2e90cfb17d3d0a8 | refs/heads/master | 2023-08-27T06:46:36.789501 | 2021-10-29T06:55:07 | 2021-10-29T06:55:07 | 420,377,905 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # diff_tool.py
import argparse
import difflib
import sys
from pathlib import Path
def create_diff(old_file: Path, new_file: Path, output_file: Path = None):
file_1 = open(old_file).readlines()
file_2 = open(new_file).readlines()
if output_file:
delta = difflib.HtmlDiff().make_file(
... | [
"f2dahlitz@freenet.de"
] | f2dahlitz@freenet.de |
ac0bdc20ef03692d0dfb49b0a9c2a5916f19c954 | 06685fa3aceb620ea13b593ddc52bba53300b93a | /ssh/__init__.py | 2dd7cdbecddeb86fdb56377ffe072425eef11b83 | [] | no_license | 66laps/kokki-cookbooks | a900f958d346e35a35a05ed6cbb12bbe2f5bf4a4 | 6c059f8cda577c765083dfe92688094bc38dfd4b | refs/heads/master | 2021-01-01T17:00:28.952170 | 2010-11-20T13:39:52 | 2010-11-20T13:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py |
from kokki import *
from kokki.cookbooks.ssh.providers import SSHKnownHostProvider, SSHAuthorizedKeyProvider
from kokki.cookbooks.ssh.resources import SSHKnownHost, SSHAuthorizedKey
def SSHConfig(name, hosts, mode=0600, **kwargs):
File(name,
mode = mode,
content = Template("ssh/config.j2", {'hosts... | [
"samuel@descolada.com"
] | samuel@descolada.com |
9859b409527d7034606e1203ba46e1b8cf065b5a | f4fdb0c1213bbb403b87c2dbbde390918ac08861 | /fix_cite_date.py | deff0147b7c52b04e42582406ca609f000af3565 | [] | no_license | benwing2/RuNounChanges | 0d5076e576237f10b50049ed52b91f96c95cca95 | 048dfed5abe09b8d5629c5772292027ce0a170f2 | refs/heads/master | 2023-09-03T22:48:06.972127 | 2023-09-03T06:27:56 | 2023-09-03T06:27:56 | 41,480,942 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Replace dates of the form "1 January, 2012" with "1 January 2012"
# (remove the comma) in quotation/citation templates.
import pywikibot, re, sys, argparse
import mwparserfromhell as mw
import blib
from blib import getparam, rmparam, set_template_name, msg, errmsg, si... | [
"ben@benwing.com"
] | ben@benwing.com |
9d468379d6252e0193cf1aa21ee3dd194eb34613 | 55692ac1b8a1b00750c0b9caf7ebba53f1dde78b | /server/toolkits/migrations/tip.py | c3783643ffc06de90010c34ded47ec1e4a3f1e4f | [] | no_license | Soopro/julolo | 8d9dea62aa055318f891d200614314e402bda1eb | 73cc67f378f45c0da40911bac5e5e038f63588ab | refs/heads/master | 2021-10-26T08:50:58.940548 | 2019-04-11T15:41:12 | 2019-04-11T15:41:12 | 107,217,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # coding=utf-8
from __future__ import absolute_import
from mongokit import DocumentMigration
class TipMigration(DocumentMigration):
pass
# def allmigration01_remove_complete(self):
# self.target = {'verification': {'$exists': True}}
# if not self.status:
# self.update = {
# ... | [
"redy.ru@gmail.com"
] | redy.ru@gmail.com |
81de7e98002c913886831f84a4f671f56499c8f8 | 7d5047dae4df06f10752b7a3ec6e663f296457d3 | /Programmers/Level 2/영어 끝말잇기.py | fb829b110405b798b97e5b1c0d629d4794df69a9 | [] | no_license | soulgchoi/Algorithm | a73e3e8e3a256d4cf1c8b5fa3c7dc35a325a6e9a | a88b2c2a0f0d75ca59269dd815ee8d30dd270ce7 | refs/heads/master | 2022-02-05T18:08:09.271443 | 2022-01-20T02:36:37 | 2022-01-20T02:36:37 | 228,958,329 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | def solution(n, words):
answer = [0, 0]
for i in range(1, len(words)):
if words[i][0] != words[i-1][-1] or words.index(words[i]) < i:
answer = [i % n + 1, i // n + 1]
break
return answer
def solution(n, words):
answer = [0, 0]
for i in range(1, len(words)):
... | [
"bssj9307@gmail.com"
] | bssj9307@gmail.com |
fb7213b98d2e792b11a08e891b2cde8ae6a46d14 | bc6508a1dde1e61a8b2f61e70044c074aeeb4406 | /whoiser/servers/XN__G6W251D.py | 36b0bcbef1eb19e54daf5967aaf73f97ffed1542 | [] | no_license | krikulis/whoiser | 7eca72260dc061a91c7630901557264b80c5263e | 27af46d6ffcf2bacc5e5b837883ab5fab7ac9b40 | refs/heads/master | 2021-01-10T19:10:53.915622 | 2012-06-24T23:50:28 | 2012-06-24T23:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py |
from servers.generic import GenericWhoisQuery
class WhoisQuery(GenericWhoisQuery):
def query(self, query):
raise NotImplementedError(u"TLD XN--G6W251D has no Whois server available")
| [
"kristaps.kulis@gmail.com"
] | kristaps.kulis@gmail.com |
8a312b438fc15bf78d0eae6a7849064a7eaaf7e8 | f3997f566695a78d09fcab688db88499223dca17 | /coil_phase/det_coil_phase.py | c1f4d76d095a147236a45d3f938cbc97af0f839b | [] | no_license | melampyge/CollectiveFilament | 600d7a426d88a7f8f31702edb2b1fea7691372d2 | 7d2659bee85c955c680eda019cbff6e2b93ecff2 | refs/heads/master | 2020-07-23T05:58:55.383746 | 2017-06-25T14:55:14 | 2017-06-25T14:55:14 | 94,351,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,003 | py | #!/usr/local/bin/python2.7
import matplotlib as mpl
mpl.use('Agg')
import sys
import numpy as np
import math
import matplotlib.pyplot as plt
from scipy import stats
#####################################################################
### define / read in some global variables
gamma = 2.0 # viscosity
kT = 1.0 #... | [
"ozer.duman@gmail.com"
] | ozer.duman@gmail.com |
d9a39023ff5913ca3b3d1a074f52ca0bb921f5aa | 22bb398d1d9af678e25ccf39350f90f109c74256 | /tests/test_utils/output/ifabsents.py | 03eb882c4e349ece90efcb33534eaf4c040188a6 | [
"CC0-1.0"
] | permissive | rajshruti18/biolinkml | 45a0848512e00d0ce66ad17684f26909a3ad3953 | 451e71c9d3fd11aa3b08c6a713d9ab8b127ece77 | refs/heads/master | 2023-03-14T05:57:22.399803 | 2020-08-11T15:42:49 | 2020-08-11T15:42:49 | 287,549,421 | 0 | 0 | CC0-1.0 | 2020-08-14T14:16:53 | 2020-08-14T14:16:52 | null | UTF-8 | Python | false | false | 7,050 | py | # Auto generated from ifabsents.yaml by pythongen.py version: 0.4.0
# Generation date: 2020-08-04 09:40
# Schema: ifabsent
#
# id: http://example.org/tests/ifabsent
# description:
# license: https://creativecommons.org/publicdomain/zero/1.0/
import dataclasses
import sys
from typing import Optional, List, Union, Dict,... | [
"solbrig@jhu.edu"
] | solbrig@jhu.edu |
f4145e6b8b24944fa2ee4b82009ad6b9a3c1facb | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/account_helpers/settings_core/SettingsCache.py | c8feafae4411fe1391ea440ca86c25272b1f67dd | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,564 | py | # 2017.08.29 21:43:24 Střední Evropa (letní čas)
# Embedded file name: scripts/client/account_helpers/settings_core/SettingsCache.py
from Event import Event
from adisp import async
from gui.ClientUpdateManager import g_clientUpdateManager
from gui.shared.utils.requesters.IntSettingsRequester import IntSettingsRequester... | [
"info@webium.sk"
] | info@webium.sk |
a008c9830e1db80a44abf7e5e9088150db092ed9 | 24a9bbc1c8000f080958570c513d1d249c3514fd | /models/resnet_50.py | 898b31c4c982d6933630de58afae99afeb9cad85 | [] | no_license | CoderHHX/DGRL_OPFE | e74640693152ce4256dc54d3c0e4703fd6fcef4d | 40d2f1a87714d7924e0931f8f7da6487acd1634d | refs/heads/master | 2020-09-17T09:22:34.589899 | 2018-09-29T14:54:53 | 2018-09-29T14:54:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,672 | py | import torch.nn as nn
import math
import torch.utils.model_zoo as model_zoo
import torch.nn.functional as F
import torch
import numpy as np
__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152']
model_urls = {
'resnet50': '/home/zhengxiawu/.torch/models/resnet50-19c8e357.pth',
}
# mod... | [
"zhengxiawu@126.com"
] | zhengxiawu@126.com |
647e11cca2a8aa827a45288dc54739ade950f14d | f889bc01147869459c0a516382e7b95221295a7b | /swagger_client/models/customer_data_group_extension_interface.py | 3806a3f11578732561fab75c8a5c20d9992130f3 | [] | 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 | 2,453 | 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 pprint import pformat
from six import iteritems
import... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
21daa653eb1721f4470a8e23b1c4e3f4ac9d37c7 | 1b86187256acfeca198c6683324a6ba37acc378c | /scripts/telocate/telocate_run.py | 5e4b9df1e139b29933a09e26718f2cfeef85f5ff | [
"BSD-2-Clause"
] | permissive | paa49/mcclintock | 6359e5942913a98290dcfdd6e643f18de0eb0a61 | 10fc9c563911659f34656d06091e8b240c422490 | refs/heads/master | 2022-11-16T06:18:32.217877 | 2020-07-10T17:02:02 | 2020-07-10T17:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import os
import sys
import subprocess
sys.path.append(snakemake.config['args']['mcc_path'])
import scripts.mccutils as mccutils
import config.telocate.telocate_run as config
def main():
te_gff = snakemake.input.te_gff
sam = snakemake.input.sam
ref_fasta = snakemake.input.ref
median_insert_size_file =... | [
"pjb68507@uga.edu"
] | pjb68507@uga.edu |
97526d54617bd8d4a7ba932dd17601495af62fa6 | b1b77bb1ed47586f96d8f2554a65bcbd0c7162cc | /SPOTIFY/crtauth/crtauth/msgpack_protocol.py | cc458fe3d3c4303eb316a3f064fa1e41a1a39e25 | [
"Apache-2.0"
] | permissive | DanHefrman/stuff | b3624d7089909972ee806211666374a261c02d08 | b98a5c80cfe7041d8908dcfd4230cf065c17f3f6 | refs/heads/master | 2023-07-10T09:47:04.780112 | 2021-08-13T09:55:17 | 2021-08-13T09:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,988 | py | # Copyright (c) 2014-2017 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
005031d4c1b14983cc629f1a19fc91dbd91a81a9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02725/s568490525.py | 2affcb786486d1c8e87015b5691b632584056eb6 | [] | 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 | 146 | py | K,N=map(int,input().split())
A=list(map(int,input().split()))
B=[0]*N
for i in range(N-1):
B[i]=A[i+1]-A[i]
B[N-1]=K-A[N-1]+A[0]
print(K-max(B)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1cbaa703c33b556e2bd7081dd2bb80906cb5e97f | 55540f3e86f1d5d86ef6b5d295a63518e274efe3 | /toolchain/riscv/MSYS/python/Tools/scripts/pyvenv.py | f84f4c78c804cdf82c673b71cf914dfb40eba39c | [
"Apache-2.0",
"bzip2-1.0.6",
"LicenseRef-scancode-proprietary-license",
"OpenSSL",
"Python-2.0",
"LicenseRef-scancode-newlib-historical",
"TCL",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | bouffalolab/bl_iot_sdk | bc5eaf036b70f8c65dd389439062b169f8d09daa | b90664de0bd4c1897a9f1f5d9e360a9631d38b34 | refs/heads/master | 2023-08-31T03:38:03.369853 | 2023-08-16T08:50:33 | 2023-08-18T09:13:27 | 307,347,250 | 244 | 101 | Apache-2.0 | 2023-08-28T06:29:02 | 2020-10-26T11:16:30 | C | UTF-8 | Python | false | false | 454 | py | #!/usr/bin/env python3
if __name__ == '__main__':
import sys
import pathlib
executable = pathlib.Path(sys.executable or 'python3').name
print('WARNING: the pyenv script is deprecated in favour of '
f'`{executable} -m venv`', file=sys.stderr)
rc = 1
try:
import venv... | [
"jczhang@bouffalolab.com"
] | jczhang@bouffalolab.com |
165628f55fbde0ee362db96cde96f48396556eb5 | fae2430e2e7717704f9c454f75ec1cd17e0831a9 | /tf_quant_finance/math/integration/integration_test.py | 803aa92c54cf378a36efe302e9b332d8ccac46f8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | gsamarakoon/tf-quant-finance | ae00f12ab5f8bbf85c515a53379db234bd619802 | 7873ea202ec50059014836b950881239e7d154fa | refs/heads/master | 2020-09-06T06:42:49.670227 | 2019-11-07T16:20:44 | 2019-11-07T16:21:10 | 220,354,269 | 1 | 0 | Apache-2.0 | 2019-11-08T00:28:13 | 2019-11-08T00:28:12 | null | UTF-8 | Python | false | false | 6,555 | py | # Copyright 2019 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"tf-quant-finance-robot@google.com"
] | tf-quant-finance-robot@google.com |
b8cd5d4e2ecee18362ea956d197bd10a0d9c3445 | 856a1d6c6737ee3d42888831d7da3142ec11d75a | /cpt2wgt.py | 0a2649be8d41ac38c2172f78249af3222274b850 | [
"MIT"
] | permissive | kevincao91/Tools | 81d499dcac04987724142d6c7e77fa2629707f3c | 9de429d066b4c601afd32ba09360995297736d2f | refs/heads/master | 2023-05-12T07:41:26.736274 | 2023-05-05T08:29:49 | 2023-05-05T08:29:49 | 225,775,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import pickle
import os,sys
cptPath=sys.argv[1]
wgtPath=cptPath
with open(cptPath,'rb') as f:
data = pickle.load(f,encoding='latin1')
keys = data['blobs'].keys()
# needs = ['conv','res','fpn',]
not_needs = ['fc1000','momentum']
output_dic={'blobs':{}}
print('filtered out:')
for key in keys:
keep = T... | [
"kevin_cao_91@163.com"
] | kevin_cao_91@163.com |
1891b8efa206d3ac3a27653452945bb1c3676750 | 84ebacfa7c91348f1275f3945f7ee3567b91d458 | /MusicObjectDetector/image_color_inverter.py | 31eb7267ffda5824a9d056a90cab11ed330bdde6 | [
"MIT",
"Apache-2.0"
] | permissive | apacha/MusicObjectDetector-TF | 4f40f639ac1240150dcbf5e489569f80878d2008 | d32cf96575c995f4d5b634e4dbb876845e3bcd2a | refs/heads/master | 2022-11-01T03:33:31.589657 | 2022-10-09T20:26:52 | 2022-10-09T20:26:52 | 112,597,906 | 83 | 32 | Apache-2.0 | 2022-10-09T20:26:53 | 2017-11-30T10:25:08 | Python | UTF-8 | Python | false | false | 1,621 | py | import argparse
import os
from glob import glob
from PIL import Image, ImageOps
from tqdm import tqdm
class ImageColorInverter:
""" Class for inverting white-on-black images to black-on-white images """
def __init__(self) -> None:
super().__init__()
def invert_images(self, image_directory: str,... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
a6170160382a184522bd7e3775027053bd5cd7db | 364ec3089ac2dcdab887518ac1b816f1c0d2858e | /Fase10/Desafios/Desafio_032.py | b67d2c478d6671e29f0745ef3f89062e5b767c47 | [] | no_license | loc-dev/CursoEmVideo-Python | 20488925da782677b9849944f9bbfd0d862e2b8f | d1eafebbfa88ca70ea0681e45edce6924a9c26d5 | refs/heads/master | 2022-12-05T22:35:23.056806 | 2020-08-26T20:20:00 | 2020-08-26T20:20:00 | 255,226,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # Fase 10 - Condições ( Parte 1 )
# Desafio 32
# Faça um programa que leia três números
# e mostre qual é maior e qual é o menor.
n1 = int(input('Digite o primeiro número: '))
n2 = int(input('Digite o segundo número: '))
n3 = int(input('Digite o terceiro número: '))
if n1 > n2:
if n1 > n3:
print('... | [
"leonardoc.developer@gmail.com"
] | leonardoc.developer@gmail.com |
ee2b759f34b601d9e0a5b19d7e40fdfbbb995092 | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/tensorflow/_api/v2/compat/v2/autodiff/__init__.py | 9aff8afae8ce5d4673c70fa11a102c5053d8bfc3 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:460dbd09fb995b71b073b0f30f23ef0db5586ce34f01294ee54ca7d366f974a1
size 413
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
820b9f97995a650d7f84aa1abfefe03c929c296e | 4ff8676136167cdd81d7a983272102fff86360e8 | /python/404. 左叶子之和.py | 3f7495600a4a204120f687388c5274a274da8162 | [] | no_license | geniuscynic/leetcode | 0ec256af2377d19fee22ce736462a7e95e3f4e67 | 379a8f27f8213951ee8be41bd56598036995d267 | refs/heads/master | 2023-07-19T07:22:20.001770 | 2021-09-07T14:50:40 | 2021-09-07T14:50:40 | 297,277,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,137 | py | import sys
from collections import defaultdict
from collections import Counter
from collections import deque
# 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 hel... | [
"350810375@qq.com"
] | 350810375@qq.com |
b77a8520217da5787c934d1d79e6e0b831e46e6d | 039c5b793ace774bb815f4061a273ff098efd475 | /service/venv/bin/easy_install-3.5 | b8d6d4e653a8969421dd255380f763334d7b2df5 | [] | no_license | zzyzx4/soft | b7872a1c1e2dc91912f22aaaf96f2cedaf1423c1 | 264c399ddef2b55efd8a1a8b796320f72c6dec7c | refs/heads/master | 2022-12-16T20:50:45.512689 | 2019-07-01T11:38:12 | 2019-07-01T11:38:12 | 184,214,960 | 0 | 0 | null | 2022-12-08T05:07:18 | 2019-04-30T07:38:24 | null | UTF-8 | Python | false | false | 446 | 5 | #!/home/user/PycharmProjects/service/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"dastik0101@gmail.com"
] | dastik0101@gmail.com |
a6fdcba7f9380ceaab8bb1fef39cbc7f2713c220 | 8ac36a81c150432a989ac20c622d41f3e0d88625 | /recruitment/recruitment/doctype/type/type.py | 12aca933d5ba6247e8a6ade2221095ece4b498af | [
"MIT"
] | permissive | asoral/recruitment | ed85fd4ef2fa7f16ec0098cb80dd67e792fc3ead | bcfdfd9ffe6b493cc79565b0bc1055bee6299645 | refs/heads/master | 2021-01-04T10:33:08.573635 | 2020-01-09T13:15:12 | 2020-01-09T13:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Type(Document):
pass
| [
"abdulla.pi@voltechgroup.com"
] | abdulla.pi@voltechgroup.com |
23f246e57df6bb3cbf79901d0d81e4121278878e | 4ce0f35c6aa01f5041a11979a8b5662d8ad08962 | /learning_machine/brain.py | 27f04210e42fe2f21713eb36f846e0542c11fc30 | [] | no_license | lanlanzky/tt | f125785b00b51774c9033492117305dfba19fb8f | 4666af6a250a48200f5af9ef9692da53bbfcd79d | refs/heads/master | 2016-09-06T02:19:18.492453 | 2014-09-01T13:26:55 | 2014-09-01T13:26:55 | 23,542,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | #coding=utf8
from numpy import *
from django.http import HttpResponse
from django.shortcuts import render_to_response
from stock.models import New_stock
from pybrain.datasets import SupervisedDataSet
from pybrain.tools.shortcuts import buildNetwork
#归一化函数处理
def normal(record):
return [ "%.5f" % round(float((i-... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
15a49b8d9a456333def2e0f3c0135a0c1957b1bc | 529833339de2d1f78ec79d4bbe7e6f174fd66779 | /alignments/select.py | 0387674d35b0808a4fa574902bfe1447bb5ef0f1 | [] | no_license | standage/EmexAssemblyMay2016 | 01f98c69b481e9c7670d35a82c62628b53747927 | 7a22a17fa0ff6b28262b5da5e906a9554862bcac | refs/heads/master | 2021-01-18T10:44:31.587771 | 2016-05-20T16:20:44 | 2016-05-20T16:20:44 | 59,306,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | #!/usr/bin/env python
import sys
from __future__ import print_function
def parse(data):
name, seq = None, []
for line in data:
line = line.rstrip()
if line.startswith('>'):
if name:
yield (name, ''.join(seq))
name, seq = line, []
else:
... | [
"daniel.standage@gmail.com"
] | daniel.standage@gmail.com |
c73e7e538899e34cc1dd877afb850c40d7e3a7f6 | e8fa46e0e5318c229a49b2803910e12e4d29884e | /interviewbit/Hashing/2-SumBook.py | 8bd2842ecf7da92e021b911c43628a7a180a5bea | [] | no_license | igorbragaia/algorithms | e6bc71b0612a65b2650c259aa2cdec593b9f6c53 | 0b4204c5a11d736c7299bd8c485e325eed630a19 | refs/heads/master | 2021-12-12T13:49:13.226739 | 2021-11-27T02:51:23 | 2021-11-27T02:51:23 | 106,027,078 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | class Solution:
# @param A : tuple of integers
# @param B : integer
# @return a list of integers
def twoSum(self, A, B):
lista = []
new_hash = {}
for i in range(len(A)):
if A[i] not in new_hash:
new_hash[A[i]] = [i]
else:
ne... | [
"igor.bragaia@gmail.com"
] | igor.bragaia@gmail.com |
6e84d40880efd0710dc18b037665f1bc62c15700 | f523e7bdd7f616267b82a7f00f2b7cae132dc6b9 | /dicodile/utils/plot_config.py | 402d82f7377e42f69177aa8ef32b9abae42dcd3c | [
"BSD-3-Clause"
] | permissive | tomMoral/dicodile | 2d7da76be7d32fb05502cbb358fcda0018e5c00c | 5a64fbe456f3a117275c45ee1f10c60d6e133915 | refs/heads/main | 2023-05-25T11:58:05.596455 | 2023-05-19T14:35:04 | 2023-05-19T14:35:04 | 167,703,861 | 17 | 8 | BSD-3-Clause | 2023-05-19T14:35:06 | 2019-01-26T15:26:24 | Python | UTF-8 | Python | false | false | 742 | py |
STYLES = {
'lgcd': {
'color': 'C1',
'linestyle': 'o-',
'hatch': '//',
'label': 'LGCD',
'label_p': 'DiCoDiLe$_Z$'
},
'greedy': {
'color': 'C0',
'linestyle': 's-',
'hatch': None,
'label': 'Greedy',
'label_p': 'Dicod'
},
'... | [
"thomas.moreau.2010@gmail.com"
] | thomas.moreau.2010@gmail.com |
075948fe95a02e474ee41679d278ff9a4a2253ec | 6ac0aeea8229c4e2c7a041e85c3afeeb106c6b01 | /mark_big_words.py | acf70f3d66db359248c9b464095c9d13919c5604 | [] | no_license | waiteb15/py3intro | 325dafaaa642052280d6c050eacf8b406b40e01d | 68b30f147e7408220490a46d3e595acd60513e9e | refs/heads/master | 2020-03-27T10:50:25.928836 | 2019-02-28T21:47:11 | 2019-02-28T21:47:11 | 146,448,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | #!/usr/bin/env python
import re
input_file_name = 'DATA/parrot.txt'
output_file_name = 'bigwords.txt'
pattern = r'\w{8,}'
def doit(m):
return f"**{m.group(0)}**"
with open(input_file_name) as parrot_in:
with open(output_file_name, 'w') as bigwords_out:
text = parrot_in.read()
new_text = re.s... | [
"waiteb15@gmail.com"
] | waiteb15@gmail.com |
93bff11c5085d5d9b492a51224c4a331395ffe4b | f6c6e0ebc18b7b1a28c23367f62c960e86194c88 | /pythonmisc/qimage2ndarray/qt_driver.py | 483cd287af1976d6c665860fa84d3304ece7273d | [] | no_license | TheGrim1/python_work | 9316d6fbb71a4be9bd901f104e939949dfd91174 | 5b34277aed4c06b62276644160e0aa97a4260233 | refs/heads/master | 2021-01-11T13:54:54.366575 | 2019-03-12T12:38:39 | 2019-03-12T12:38:39 | 94,876,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,663 | py | # Copyright 2014-2014 Hans Meine <hans_meine@gmx.net>
#
# 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 applicabl... | [
"opid13@nanofocus.esrf.fr"
] | opid13@nanofocus.esrf.fr |
4f7c48e8a99a701068ab27a5eeb99bafc6831225 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/312/usersdata/287/75300/submittedfiles/esferas.py | 970420237374c04f7c3159b9f92c411be16ac468 | [] | 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 | 283 | py | # -*- coding: utf-8 -*-
A=int(input('Digite o peso da esfera A: '))
B=int(input('Digite o peso da esfera B: '))
C=int(input('Digite o peso da esfera C: '))
D=int(input('Digite o peso da esfera D: '))
if A==B+C+D and B+C==D and B==C:
print('S')
else:
print('N')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f79a69fdebbb591c2349e3a4bd097ab47249f04a | 0f77deeffc1526d3befcb777ba4faebe2059e0bb | /lstm.py | 27295908eec7e8550fc16f3602f31bf6a21b5d7c | [] | no_license | akshay1997/TRUMP-TWITTER-BOT | 6d082a45ca939ce2f41c9cba8cd6198dadb54428 | 01f781fe2f7eeb71f11d932906b39b26776eafec | refs/heads/master | 2021-01-01T16:44:19.137215 | 2017-07-21T04:59:01 | 2017-07-21T04:59:01 | 97,906,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | import numpy
#3563 = 2850+713 1426 2139 2850
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
lines = []
with open ('realDonaldTrump.txt','r') as filename:
for... | [
"you@example.com"
] | you@example.com |
1cbaac8e46e28a8e424d041eb4c906491546cbea | 936dee544c471013bd1788b441042e22c3522633 | /deploy_tools/fabfile.py | ba1a955ef64a555f54ad8ba7f9d51b656ec4899d | [] | no_license | k5766273/test | bdaa808e1f10112a3f751a499e5890350d9ff733 | b947d5d2b69b510bb17df1f66b9b03c821f141c9 | refs/heads/master | 2023-05-19T20:11:34.849263 | 2021-06-06T01:51:10 | 2021-06-06T01:51:10 | 356,159,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 2,325 | py | from fabric.contrib.files import append, exists, sed
from fabric.api import env, local, run
import random
REPO_URL = 'https://github.com/k5766273/test'
#env.use_ssh_config = True
def deploy():
site_folder = f'/home/ubuntu/sites/{env.host}'
source_folder = site_folder + '/suplerlists'
_create_directo... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
688f4172210d8b670a6bc922eef372027e2123bf | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/stp/rtstpifpol.py | c74118f5914bc4cd48e40179c05611a98540fed7 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 5,225 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
a22bbe274b90794f62ec8b4f2d459c7a5e30f250 | 8e7c006a81ebbbc60c6750dbb562ebb071a1d8aa | /base/05_basic_convnet.py | 310ef0b149be15f8da82789d0b20368fdd76131c | [] | no_license | xueyangfu/tensorflow-learning | 8b65dbc0e3a437ed2a14b4987c8fe7848ed2a6c4 | ec477ac02ae5c2506819a7f8c147e3774baa3a4a | refs/heads/master | 2021-05-15T16:32:05.194502 | 2017-01-30T12:24:46 | 2017-01-30T12:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | # -*- coding: utf-8 -*-
"""Simple tutorial following the TensorFlow example of a Convolutional Network.
Parag K. Mital, Jan. 2016"""
# %% Imports
import tensorflow as tf
import tensorflow.examples.tutorials.mnist.input_data as input_data
from libs.utils import *
import matplotlib.pyplot as plt
# %% Setup input to the... | [
"kkoolerter@gmail.com"
] | kkoolerter@gmail.com |
7582910eaa393cc51825e953f774977c6c676280 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/T/tmayor/test-3.py | df783a0fb6ae2cb6a043ea259a571331baf5e15d | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,422 | py | # lxml is a complete library for parsing xml and html files. http://codespeak.net/lxml/
# The interface is not totally intuitive, but it is very effective to use,
# especially with cssselect.
import lxml.etree
import lxml.html
print help(lxml.html.parse)
# create an example case
samplehtml = """<html><body>
<h1>h... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
7bf833a1e59a609e71791510c143929fed4b9090 | de479d4a8af0e070b2bcae4186b15a8eb74971fb | /cn/iceknc/study/h_python_web_server/__init__.py | 4c443bf5e4053a05fd09d03cb7e0b34b24ee6f4b | [] | no_license | iceknc/python_study_note | 1d8f6e38be57e4dc41a661c0a84d6ee223c5a878 | 730a35890b77ecca3d267fc875a68e96febdaa85 | refs/heads/master | 2020-05-19T18:44:55.957392 | 2019-09-27T01:15:54 | 2019-09-27T01:15:54 | 185,160,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | # -*- coding: utf-8 -*-
# @Author: 徐志鹏
# @Date : 2019/5/15
# @Desc :
def main():
pass
if __name__ == "__main__":
main()
| [
"xzhipeng@lifecare.cn"
] | xzhipeng@lifecare.cn |
eee8bf0ebe7dad15987813d9178a9e6fc7e754d2 | 33602d2bf63bb038f29f22383c912a06045d7e00 | /v15_pong_supervised/utils.py | d000d2b3eec684a2fc88e0a73247edc928d1c2f5 | [] | no_license | evanthebouncy/nnprog | 26af89726a915d7d3f78131c4f8733cdceb6100e | 576ea87469df2135bf133325d22c23ec4b196a92 | refs/heads/master | 2020-07-06T00:32:23.949875 | 2017-12-06T20:50:18 | 2017-12-06T20:50:18 | 66,980,038 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,127 | py | import numpy as np
import gym
import random
import pickle
import gym.envs.atari
import draw
# Preprocesses the given image:
# (1) remove the scoreboard
# (2) make it monochromatic
# (3) make the background black
#
# obs: Image
# return: Image
# Image = np.array([n_rows, n_cols])
def preprocess(obs):
obs = obs[34:1... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
b43a0ea6840af2ffc73bc3ec3411ff7e6682262b | 5ba3115523fb052d32db827e09443248ec5f6629 | /algorithm/PycharmProjects/week2/셀렉션 알고리즘.py | ea0f1342ff0818baef2e0b87e8900f027e4bd11d | [] | no_license | oliviaspark0825/TIL | 841095003ae794e14bd8c7e8c883826667c25f37 | 8bc66836f9a1eea5f42e9e1172f81f005abc042d | refs/heads/master | 2023-01-10T22:14:15.341489 | 2019-08-22T09:09:52 | 2019-08-22T09:09:52 | 162,099,057 | 0 | 0 | null | 2023-01-04T07:52:28 | 2018-12-17T08:32:43 | Jupyter Notebook | UTF-8 | Python | false | false | 645 | py | # k 번만큼 골라서 제일 작은 거를 찾아서 바꾼다, 교환 횟수가 작음
#
# def select(list, k):
# for i in range(0, k):
# minInex = for j in range ( i+1, len(list)):
# if list[minIndex] > list[j]:
# minIndex = j
# list[i], list[minIndex] = list[minIndex], list[i]
# return list[k -1]
def selection... | [
"suhyunpark0825@gmail.com"
] | suhyunpark0825@gmail.com |
2dc4b913336525af52c6bd856739646b091e1ebd | af4b5830b2a23d1f3d126297c7eb057bb3f8e42f | /pymatflow/cp2k/base/pw_dft.py | fd0c25c249ac97dad547a452ce45111dd806c4d6 | [
"MIT"
] | permissive | mukhtarbayerouniversity/pymatflow | de2b2d573ceed68c1dd3c149c538588394029137 | 9ab61e56659519cd6c83d5bd32da1262f44da065 | refs/heads/master | 2023-02-13T01:50:32.993401 | 2021-01-13T15:19:36 | 2021-01-13T15:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | #!/usr/bin/evn python
# _*_ coding: utf-8 _*_
import numpy as np
import sys
import os
import shutil
from pymatflow.cp2k.base.pw_dft_control import cp2k_pw_dft_control
from pymatflow.cp2k.base.pw_dft_iterative_solver import cp2k_pw_dft_iterative_solver
from pymatflow.cp2k.base.pw_dft_mixer import cp2k_pw_d... | [
"deqi_tang@163.com"
] | deqi_tang@163.com |
770a4f0fac37204c56e7b46b9d6c7531262723e9 | dc99adb79f15b3889a7ef6139cfe5dfc614889b8 | /Aplikace_1_0/Source/ewitis/gui/dfTableRaceInfo.py | 43c2a4ae52ddd807c9956e0ae4200b57071eb4be | [] | no_license | meloun/ew_aplikace | 95d1e4063a149a10bb3a96f372691b5110c26b7b | f890c020ad8d3d224f796dab3f1f222c1f6ba0eb | refs/heads/master | 2023-04-28T06:43:12.252105 | 2023-04-18T19:59:36 | 2023-04-18T19:59:36 | 2,674,595 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,188 | py | # -*- coding: utf-8 -*-
import time
import pandas as pd
import pandas.io.sql as psql
from PyQt4 import QtCore, QtGui
from ewitis.gui.aTab import MyTab
from libs.myqt.DataframeTableModel import DataframeTableModel, ModelUtils
from ewitis.gui.dfTable import DfTable
from ewitis.gui.dfTableTimes import tableTimes
from e... | [
"lubos.melichar@gmail.com"
] | lubos.melichar@gmail.com |
5b16b645adc70ad58e2d3385d3f9776e44594bf6 | 44a7330dfa4fe321eb432ee57a32328578dec109 | /milk/supervised/gridsearch.py | 265712ad1d69da0ae0eb8f9345e6471362c1c126 | [
"MIT"
] | permissive | tzuryby/milk | 7cb6760fad600e9e0d0c9216dc749db289b596fb | a7159b748414d4d095741978fb994c4affcf6b9b | refs/heads/master | 2020-12-29T02:45:33.044864 | 2011-03-15T20:23:29 | 2011-03-15T20:25:11 | 1,485,748 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,128 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2008-2011, Luis Pedro Coelho <luis@luispedro.org>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
#
# License: MIT. See COPYING.MIT file in the milk distribution
from __future__ import division
import numpy as np
from .classifier import normaliselabels
__all__ = [
'gridmi... | [
"lpc@cmu.edu"
] | lpc@cmu.edu |
deec8d033bdd63658b11e459446f53fd82d72ea6 | fd4510e0bf959de7527bd0c62d3b4fb3f78cee5e | /drivers/hot.py | c4607b3bd6c73821e3566c20a1a2b3c2605203d1 | [] | no_license | RuoAndo/nii-cyber-security-admin | 8dde8ab68b0f7fa882adbe8e828546aa1739e685 | e77b9d581e124f9fd5f721e18cd77d3bccecad19 | refs/heads/master | 2022-12-13T21:40:46.330389 | 2022-12-07T14:01:00 | 2022-12-07T14:01:00 | 71,614,880 | 5 | 1 | null | 2020-10-13T08:40:46 | 2016-10-22T03:41:30 | Python | UTF-8 | Python | false | false | 465 | py | # -*- coding:utf-8 -*-
import psycopg2
conn = psycopg2.connect(
host = "192.168.1.1",
port = 5432,
database="xen460",
user="postgres",
password="")
cur = conn.cursor()
sql = "SELECT relname, n_tup_upd, n_tup_hot_upd, round(n_tup_hot_upd*100/n_tup_upd, 2) AS hot_upd_ratio FROM pg_stat_user_tables... | [
"ando.ruo@gmail.com"
] | ando.ruo@gmail.com |
1a8a4b1ec31cbf8dbe7046d88ecb72043feede10 | 8096e140f0fd38b9492e0fcf307990b1a5bfc3dd | /Python/madlibs/version3.py | 68bb0d07fff518a717900d9beeaf33fbb77b915a | [] | no_license | perennialAutodidact/PDXCodeGuild_Projects | 0cacd44499c0bdc0c157555fe5466df6d8eb09b6 | 28a8258eba41e1fe6c135f54b230436ea7d28678 | refs/heads/master | 2022-11-15T22:26:45.775550 | 2020-07-07T17:13:01 | 2020-07-07T17:13:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | game_over = False
while(game_over == False):
print("\nPlease enter:")
adjectives = input("Five adjectives, separated by commas, then press enter: ").replace(' ', '').split(",")
gerunds = input("Two \"-ing\" verbs, separated by commas: ").replace(' ', '').split(",")
place = input("A place: ")
plura... | [
"keegood8@gmail.com"
] | keegood8@gmail.com |
43cff66ffbaeb8e9ebc37fe1c4ddde3bf3d93ec0 | 613152f5e19ab472974f0c8a87a38c1bb1c792fc | /users/migrations/0002_auto_20190529_1957.py | 2650af02ec1518e6067eddb54c7ad539ae9ac4a7 | [] | no_license | KIM-JAEHYUNG/boro-wang | ed19181b2282f47a5ba1fe0f84f74f3a76b9902b | 544bbbcc8b589ab0dfb936734d999c172a201864 | refs/heads/master | 2022-12-12T00:53:22.740279 | 2019-08-09T19:22:54 | 2019-08-09T19:22:54 | 201,409,510 | 0 | 1 | null | 2022-12-08T05:59:44 | 2019-08-09T06:54:13 | HTML | UTF-8 | Python | false | false | 668 | py | # Generated by Django 2.0.13 on 2019-05-29 10:57
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | [
"jsw2095@naver.com"
] | jsw2095@naver.com |
35d64fcc70ce2f581774ee385e08a42d750180c6 | 19d43cac1c70ad7c1e202486bd6d0951d774c7ab | /a_social_project/settings/__init__.py | 14b4ac3405b477a70dc3201e2ace18a69ab7c397 | [] | no_license | Raju-Pinnam/raju-social-app | e75d6f11964d08103ce2df85fc49ff5141ce346f | b809745df2e7a26a32b5ff151c414f68c83112ed | refs/heads/master | 2023-02-20T23:45:42.649867 | 2021-01-24T18:19:37 | 2021-01-24T18:19:37 | 331,834,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from .base import *
if config('ENV') == 'LOCAL':
from .local import *
elif config('ENV') == 'PROD':
from .prod import *
| [
"pinnampadmaraju@gmail.com"
] | pinnampadmaraju@gmail.com |
f4bc23d4d623902bcf8c8e4cd2238b727839d0e9 | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/nsx/nvp/transport_node/schema/nvp_transport_node_schema.py | ad2bff5982153948e66bc22e6ea73f016294ab8c | [] | no_license | Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | import base_schema
import credential_schema
import transport_connector_schema
import nvp_transport_zone_binding_schema
import nvp_tag_schema
class TransportNode(base_schema.BaseSchema):
_schema_name = "transportNode"
def __init__(self, py_dict=None):
super(TransportNode, self).__init__()
self.... | [
"bpei@vmware.com"
] | bpei@vmware.com |
6301dd36de7e57837bd0faca3facc53b2efcd28b | 9360aeefb3605a3fe0c5e512e52ec3bc0942903f | /bin/jupyter-kernel | 52f4f4b2c7281de7c9de88b24087c584be53a550 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | eliaswalyba/facebound | 1ff7dc32cc4bf50d14f2e6434af2adfb14300245 | 92500e61b1bc50702ea339563ee8b38b55a31169 | refs/heads/master | 2022-07-01T17:42:02.360416 | 2020-05-08T15:23:03 | 2020-05-08T15:23:03 | 262,851,606 | 0 | 0 | MIT | 2020-05-10T18:37:03 | 2020-05-10T18:37:02 | null | UTF-8 | Python | false | false | 264 | #!/Users/fodediop/dev/deep-learning/facebound/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.kernelapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"fodesdiop@gmail.com"
] | fodesdiop@gmail.com | |
b5d47fab88804b7fb68fcbecbdf9db94a8054a2a | b6475b69ae89f5a2ffb3c03c21d747bc6fddbdd2 | /facility/urls.py | c7d25fdaceb3e173d5a1a1b442d033ca3d0ba1c2 | [] | no_license | LeeSuHa98/14-2nd-SHABANG-backend | 3718516abc1a423da7e97d9363c61bfc7dd5ec4f | 13cc50c80aca273277bae8d8b15a1623b860ce55 | refs/heads/main | 2023-02-18T05:57:27.863525 | 2021-01-19T04:47:20 | 2021-01-19T04:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from django.urls import path
from facility.views import NearFacilityView
urlpatterns = [
path("/<int:id>", NearFacilityView.as_view())
] | [
"fergith@naver.com"
] | fergith@naver.com |
83a592cb4e501fdef642301cc6c4b81c6f8e086a | c2ee51902020596e08aacd4462ab44715432c8f8 | /pyapprox/tests/test_mixture_model.py | 817c0ce729c40dff37793eefee398f5e6f383587 | [
"MIT"
] | permissive | ConnectedSystems/pyapprox | bb1462aa8ee54258ee559d734f7bffb744e09c78 | 4f405654c707cba83d211f327c0f0fdbc95efa29 | refs/heads/master | 2021-09-13T09:49:59.048327 | 2021-08-29T03:38:43 | 2021-08-29T03:38:43 | 252,080,343 | 0 | 0 | MIT | 2020-04-01T05:26:29 | 2020-04-01T05:26:29 | null | UTF-8 | Python | false | false | 4,778 | py | import unittest
from functools import partial
from scipy import stats
import numpy as np
from pyapprox.mixture_model import \
get_leja_univariate_quadrature_rules_of_beta_mixture, sample_mixture, \
get_mixture_sparse_grid_quadrature_rule, \
get_mixture_tensor_product_gauss_quadrature, \
compute_grammia... | [
"29109026+jdjakem@users.noreply.github.com"
] | 29109026+jdjakem@users.noreply.github.com |
142e1232f03e6245fe3538cf1dbe1a8210792eef | 3cc7def40ac121c25105ffac6b33e7f12d1c7f97 | /muddery/typeclasses/locked_exit.py | 3d5d615a7bdff60213ec1a33bb047d9f5236e029 | [
"BSD-3-Clause"
] | permissive | ming-inside/muddery | 8a6d8c9f25fed6137616d109904788927a1059e1 | 8442d6339d4776b8fb81827bcfe0138cf0bc73b5 | refs/heads/master | 2020-03-31T11:13:30.792060 | 2018-10-08T16:49:58 | 2018-10-08T16:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,615 | py | """
Exits
Exits are connectors between Rooms. An exit always has a destination property
set and has a single command defined on itself with the same name as its key,
for allowing Characters to traverse the exit to its destination.
"""
from __future__ import print_function
import traceback
from muddery.utils import ... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
efd659f109141d794d98452979ad0f7016c59ad0 | a54007706a09b387690f79fd7ffd889decad42f1 | /day11/code/03_pygame框架使用.py | 500591bf438640322dcfd73908d34c025d1fabd3 | [] | no_license | lvah/201903python | d425534544a1f91e5b80b5ff0de5ca34037fe6e9 | 1415fcb7697dfa2884d94dcd8963477e12fe0624 | refs/heads/master | 2020-07-06T16:45:37.882819 | 2019-09-08T10:13:07 | 2019-09-08T10:13:07 | 203,082,401 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import pygame
import sys
pygame.init() # 初始化pygame
size = width, height = 320, 240 # 设置窗口大小
screen = pygame.display.set_mode(size) # 显示窗口
while True: # 死循环确保窗口一直显示
for event in pygame.event.get(): # 遍历所有事件
if event.type == pygame.QUIT: # 如果单击关闭窗口,则退出
# exit(0) --- 结束程序, 0代表正常退出,
... | [
"root@foundation0.ilt.example.com"
] | root@foundation0.ilt.example.com |
90413f84cf6b0e827f63c0a6370c22e5db575ae4 | a8062308fb3bf6c8952257504a50c3e97d801294 | /test/test_524_longest_word_in_dictionary_through_deleting.py | dd8614be77d386c33da05a8c850208c59e040bcc | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from unittest import TestCase
from problems.N524_Longest_Word_In_Dictionary_Through_Deleting import Solution
class TestSolution(TestCase):
def test_findLongestWord(self):
self.assertEqual("apple", Solution().findLongestWord(s = "abpcplea", d = ["ale","apple","monkey","plea"]))
def test_findLongestWord... | [
"rarry2012@gmail.com"
] | rarry2012@gmail.com |
b3f79671754cfe80ab04743bc318dc84ee6f0b93 | c3e47ce05f1d6a237a03742ce431d6958ca388b2 | /crowd/plug-in/bkp/whatIsCmd.py | c65eacdc5846cdb8491ebdd3b6694ae6e3f60396 | [] | no_license | fsanges/subins_tutorials | 27426ac71365124c28e924c502484c5bb172f715 | 9c50ec8e3200c29f1c7141ca013cbb0a5b4f8e4e | refs/heads/master | 2020-09-16T04:38:43.696690 | 2019-11-23T13:06:51 | 2019-11-23T13:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,481 | py | """
To use, make sure that whatIsCmd.py is in your MAYA_PLUG_IN_PATH (and the C++
version is not) then do the following:
import maya.cmds
maya.cmds.loadPlugin("whatIsCmd.py")
maya.cmds.spWhatIs()
"""
import sys
import maya.OpenMaya as OpenMaya
import maya.OpenMayaMPx as OpenMayaMPx
# command
class WhatIsCmd(OpenMay... | [
"subing85@gmail.com"
] | subing85@gmail.com |
218811171578585d9acec414683ae88e25e5ede6 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/utils/module_docs_fragments/azure_tags.py | ff8579fde490d0ca15e0b0c7577ca688d53f5209 | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 1,420 | py | # Copyright (c) 2016 Matt Davis, <mdavis@ansible.com>
# Chris Houseknecht, <house@redhat.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eit... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
e6bb8d0ea125800830cc4c6c06f82f5d3bfcf228 | 5a319a47587653dab9472eab4055144bcfd25967 | /src/opendr/perception/face_recognition/algorithm/backbone/model_mobilenet.py | 2b552ba355b2561135316393c4e933e363248854 | [
"Apache-2.0"
] | permissive | passalis/demos | 612a7e07ba125d9815e110ff483132e162759dd7 | d8aeb045ee1832418fa232bc1c73783d72d10cf7 | refs/heads/main | 2023-07-19T03:25:05.269333 | 2021-09-21T19:59:42 | 2021-09-21T19:59:42 | 397,585,032 | 1 | 0 | Apache-2.0 | 2021-09-21T19:58:51 | 2021-08-18T12:02:00 | Python | UTF-8 | Python | false | false | 6,419 | py | from torch import nn
def _make_divisible(v, divisor, min_value=None):
"""
This function is taken from the original tf repo.
It ensures that all layers have a channel number that is divisible by 8
It can be seen here:
https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet/mob... | [
"passalis@csd.auth.gr"
] | passalis@csd.auth.gr |
06c35de26a5846395b4534c99e2ccfe287ad949d | cec68acfc0187b7d92fb7d6e5107058e3f8269ea | /GUI/GUI.py | 478f934901894f957075743f6d6cdfe1d7fa20ea | [] | no_license | vektorelpython/Python8 | 441575224100a687467c4934f7c741aa0c4bd087 | d135fbf1444d56a0da38c42fd2e8feda48646f49 | refs/heads/master | 2022-01-18T12:17:40.387422 | 2019-09-07T13:47:55 | 2019-09-07T13:47:55 | 205,534,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
class App(QWidget):
def __init__(self):
super().__init__()
self.title = 'PyQt5 örnek window'
self.left = 50
self.top = 50
self.width = 640
self.height = 480
self.initUI(... | [
"Kurs"
] | Kurs |
3bfa4d51d40d0d78e7436d184f839ab558a13f1b | 4bb0faf7b0a05b3d487ff386783adf742f26df86 | /run.py | aa3f35368664d6bc7bb5e3e1fc0855b016a2a113 | [] | no_license | AIXME/ins-scraping | f7ba1c5180489e4a497906d06b3bdcb57f05c14b | 250761c436fc0fe033c7c1493f8e0aa2335c1409 | refs/heads/master | 2021-01-04T15:56:37.476985 | 2019-07-11T08:24:34 | 2019-07-11T08:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from core.info import InsInfo
if __name__ == "__main__":
username = input('输入你的ins账号:')
password = input('输入你的password:')
target = input('输入需要爬取的用户:')
ins = InsInfo(username,password,nickname=target)
ins.login().followers().combo().following().export_all().combo().post_images().save()
... | [
"bhg889@163.com"
] | bhg889@163.com |
aca277c2fb030993e12a39e51af2e0754de6ca1d | 5ba34cad2a933adfed6b5df5b1229e48038596d4 | /fabfile.py | 719cea8e51a7f90de04799ef68dbea18f7f5b9aa | [
"MIT"
] | permissive | Firmicety/fomalhaut-panel | bececa59cd42edd8793440a652d206b250591cb9 | 3e662db65a7ca654f75a19e38cb0931be21f92e9 | refs/heads/master | 2020-06-06T07:52:27.211654 | 2019-06-20T11:38:39 | 2019-06-20T11:38:39 | 192,683,216 | 0 | 0 | MIT | 2019-06-19T07:39:07 | 2019-06-19T07:39:07 | null | UTF-8 | Python | true | false | 3,882 | py | # -*- coding: utf-8 -*-
# Created by restran on 2016/7/27
from __future__ import unicode_literals, absolute_import
from fabric.api import *
from datetime import datetime
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# 登录用户和主机名:
env.user = 'root'
# env.password = 'password'
# 如果有多个主机,fabric会自动依次部署
en... | [
"grestran@gmail.com"
] | grestran@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.