blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
b910af09b8043b525cd8aa9e622f49018c6322e3
df42b0d05038a2940606591d548637bc51d6573d
/stage2/day10线程/thread_attr.py
074430d5446b9a4eced2f1f0121382dd96001100
[]
no_license
ThreePointFive/aid1907_0814
440113f5ae2df28e53a088bd3ea420d5558214b4
99eea9aafdf8211278425c33aba2e64d5eb2500b
refs/heads/master
2022-12-03T19:31:21.085608
2019-11-09T06:25:33
2019-11-09T06:25:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
thread_attr.py
'''线程属性演示''' from threading import Thread import time def fun(): time.sleep(3) print('进程属性设置') t = Thread(target=fun,name='AID',daemon = True) # 主线程退出,分支线程也立即退出,也不会和join一起使用 # t.setDaemon(True) print('获取name:',t.getName()) t.setName('Tarena') print('获取name:',t.getName()) print('is alive:',t.is_alive()) t.s...
5e19bf06b321e56b2128b9561043e3b2b829e428
78d5ed4f8c2b594bdad9bdba7e8d6912680a4f90
/wmf_embed/train/align_vectors.py
ec0f0808d3376439095a74a109bba0c10596d84c
[ "Apache-2.0" ]
permissive
shilad/wmf-embeddings
39304d62734057d20985858f7c60e5322f7fb212
353556dfbb36e1f70eec7e618cfd989d7ae08de5
refs/heads/master
2021-04-29T16:06:41.930475
2018-06-01T21:11:49
2018-06-01T21:11:49
121,809,693
0
0
null
null
null
null
UTF-8
Python
false
false
4,218
py
align_vectors.py
import logging import math import numpy as np import os.path import scipy.linalg import scipy.spatial.distance from collections import defaultdict from wmf_embed.core.utils import nearest_neighbors, NP_FLOAT from wmf_embed.core.titler import Titler from wmf_embed.core.lang_embedding import LangEmbedding SAMPLE_SIZE...
86a42da28de0b2feaef674b1a20ab9838106e7ac
62b82f2c1805722c4a14c02a38baa3dddf2560de
/nmt/translate/data_utils.py
814c8ccb8f548f09df7a0990c11a6cc8869a076f
[ "Apache-2.0" ]
permissive
Peratham/CS294_s2s
b0553bd67e9d059eda3f4914e037f6d9c3130ca1
4c1e4304b705125e5293829151f285ad6ae399a7
refs/heads/master
2021-01-22T06:23:48.686886
2017-02-20T22:00:38
2017-02-20T22:00:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,827
py
data_utils.py
################################################################################# # Copyright 2016 Pragaash Ponnusamy. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"); ...
f93f6a0f00c52867cb191d7298a9be0e69898e62
cc98b0343056ab64fadc0617e6b238cb0b4cb15b
/funnel_package/uppaalpythonfunnels.py
86f9ecbeb23785086314d6a174ab5b74d71d19d6
[]
no_license
schlepil/tchecker_testcases_old
4155e646cd861179e5c6b17ecef7b4c3f7619f07
8d1c826028b03b60766e61a5766fdca4473f772e
refs/heads/master
2020-07-24T17:33:41.334427
2019-10-22T13:29:01
2019-10-22T13:29:01
207,997,253
0
0
null
null
null
null
UTF-8
Python
false
false
15,568
py
uppaalpythonfunnels.py
## @package Package holding usefull function to interface python and uppaal from funnel_package.utils import * import re ##Loops through a real trace and returns timed words that can be simulated def traceToTW(tDict, aFile, xmlFile, fact, stateDict=None, initState='_discard_waiting', mode = 'unguarded'): #G...
fc44e16a85a132a6967c8e0e340b086b3486e7be
57f479a97ae6ac653dd10d844fda0e6ae9c82486
/30_Using a Step in a Slice.py
c92c9d9ba5e2e66b6135fa7e553ceaba396bb7dd
[]
no_license
evrenturkday/34_Strings
97b50fdafea294d05a55f22494ba3abd79f2a58f
45121586c84bd9196b3362627f39ceb248491fef
refs/heads/master
2023-02-22T10:36:34.364457
2021-01-27T10:24:21
2021-01-27T10:24:21
333,382,267
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
30_Using a Step in a Slice.py
# 1 # 012345678901234 parrot = "Norwegian Blue" print((parrot[0:6:2])) # Nre ilk 5 karakteri alir sonra 0,2,4 üncü karakterleri secer print((parrot[0:6:3])) # Nw ilk 5 karakteri alir sonra 0,2,4 üncü karakterleri secer
088e02d265995c375dd523b5f2e639581de13104
928163747a33c15999690228911efeb0ad8f23a2
/基础学习/条件赋值.py
d0ae6da559d60cde74a5caaced8a247a3473a291
[]
no_license
wear99/Python_Study
5e8b7e36e2f8328b46237352722da9c21ac60ce6
0e3fec79e5e09e21defc7b897ab5fb4da5870aac
refs/heads/master
2022-02-21T22:22:18.602554
2022-02-13T13:20:57
2022-02-13T13:20:57
241,328,401
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
条件赋值.py
a = 5 if 3 > 5 else 6 #条件赋值,如果If成立则前面的值,否则else的值 aa = 3 > 5 print(aa) print(5 if 3 > 5 else 6) #条件输出 print(3 > 2 ) #bool值 #短路效应 print(3 < 2 and 10) #and条件时,前面有假,后面的不进行判断. 如果前面为真,则取最后的值 print(3>2 or 10) #or条件时,前面为真,后面不判断. #循环赋值 ss = [n + n for n in 'asdfg'] print(ss) aa = [n for n in range(10)] p...
bde20537fb8e9aca2c70c7e2c714cca9a48d046a
904eb6dc1e2f207d5d0b9ee017e6eb59399c3919
/controller.py
0af66dc5246110fbd427319e5a722059a361fd29
[]
no_license
wdonat/adway-controller
bcc5c6d1883a9cbd8ca82ea43aed312a020e9be8
7e5d0ae8ebf954c00df3b178f4cc88cd1a4fcf25
refs/heads/master
2020-04-08T06:28:11.152354
2019-03-28T13:58:18
2019-03-28T13:58:18
159,097,812
0
0
null
null
null
null
UTF-8
Python
false
false
15,930
py
controller.py
import time import datetime import psutil import json import sysparam import os import signal import requests import socket import platform from picamera import PiCamera from gps import * import threading from bluepy.btle import Scanner, DefaultDelegate global camera_exists try: camera = PiCamera() camera_ex...
21e1ee27a17888fd351041bb28bb72d96dc13b7d
a8750439f200e4efc11715df797489f30e9828c6
/LeetCodeContests/62/744_Find_Smallest_Letter_Greater_Than_Target.py
2e3930271ae166ff4c6eb59aeac5f05d68895b17
[]
no_license
rajlath/rkl_codes
f657174305dc85c3fa07a6fff1c7c31cfe6e2f89
d4bcee3df2f501349feed7a26ef9828573aff873
refs/heads/master
2023-02-21T10:16:35.800612
2021-01-27T11:43:34
2021-01-27T11:43:34
110,989,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,309
py
744_Find_Smallest_Letter_Greater_Than_Target.py
''' 744. Find Smallest Letter Greater Than Target My SubmissionsBack to Contest Difficulty: Easy Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list that is larger than the given target. Letters also wrap around. For exa...
65d369a48a94a91104ae8d4cb5cff3e1599d984f
d1ce4957094dd48c79e07fefeb7e5c4b1a5e577f
/strip/strip.py
37d0794aaa560cd410a0aafee71d5c8965b0f9dc
[]
no_license
bart02/ws281x_wrapper
956976722c1692930dd236aba1528ad091654615
282ddbea26bc63ecac9d3a6237eadde65dac7643
refs/heads/master
2022-11-15T10:03:53.036954
2020-07-09T04:58:10
2020-07-09T04:58:10
278,166,954
0
0
null
null
null
null
UTF-8
Python
false
false
2,539
py
strip.py
from rpi_ws281x import PixelStrip from strip.color import Color from os import getuid from time import sleep class Strip(PixelStrip): def __init__(self, num, gpio, **kwargs): if getuid() != 0: raise PermissionError('Only `root` can use Strip. Try `sudo python <name>`.') sel...
b82aa696b31a5f44a2df5ad347a02d9f0a934079
596f9681ec06f1f88581fa11105c8631d1087536
/opt/desktop/i3-fifo-status.py
42854a853ac94a1c649f814f3ff72934a0b407bc
[]
no_license
s0/unified-setup
3150f1e37e5087c6c67d5333edefbd9826d2462d
c05fed33037ad4216664c3cf5993ed86b59eaa3c
refs/heads/main
2023-07-09T23:58:30.663407
2023-06-26T20:32:08
2023-06-26T20:32:08
150,905,397
0
0
null
2022-04-17T17:24:09
2018-09-29T21:44:22
Shell
UTF-8
Python
false
false
1,052
py
i3-fifo-status.py
#! /bin/python3 import json import time import sys import os import threading class StatusListener(threading.Thread): def __init__(self, status_fifo): super(StatusListener, self).__init__() self.status_fifo = status_fifo def run(self): sys.stderr.write("listening for status...") ...
4bb77e1f1d8816d30515d2ffb748ecb7f0008f63
59a8a9330b8d429d4becfd2de96d1cc973f299cb
/pl_grammar.py
5ee5af3ef9af56afe0cfb97eeba7af32e59510a8
[]
no_license
mseh1128/cse307-hw3
38b04aa09a2bca200b1cc002faa89947ce5cc709
960b55a8427087c6e921fb30f73ad7502c5f994e
refs/heads/master
2022-06-30T22:11:23.078244
2020-05-10T22:57:46
2020-05-10T22:57:46
254,651,840
0
0
null
null
null
null
UTF-8
Python
false
false
5,908
py
pl_grammar.py
# Propositional Logic Grammar # Tokens # This tuple contains the names of the tokens that will be used in my language # for propositional logic. All tokens that will be included in your PLY grammar # must be included in this tuple. Each token name appears as a string. Using # all capitals for the token names is done ...
a7680eacb4241dfb485111bee50ed1bf12dd96a6
c1c5e41bac1c82d9f5d2fe7ba85496b27c6e64cf
/mothpy/graphics_from_file.py
fa1cb5a7070279954a086847ec8011cf8a809c41
[ "MIT" ]
permissive
alexliberzonlab/mothpy
4accb02ca2504cfcabe08634229cd469791538cc
6e0924b758201da988a3f4dac9559113fe695d20
refs/heads/master
2021-03-22T01:36:32.738064
2019-12-02T09:33:47
2019-12-02T09:33:47
116,568,819
2
0
MIT
2019-08-06T19:33:36
2018-01-07T13:45:09
Jupyter Notebook
UTF-8
Python
false
false
1,578
py
graphics_from_file.py
from __future__ import division __authors__ = 'Noam Benelli' from kalman import kalman_filter from moth_graphics import plot, detection_plot import json import matplotlib.pyplot as plt def save_plot(job_file_name = 'job.json',data_file_name ='data1.json', title='1',navigator_titles=[]): with open(...
ab5d1ca490ebcb2b2634eb49944451bba0f69831
b956f89db299202d5dcfdd146532f917a878883f
/unique_passengers.py
2d66238de83078d0c99ea7c21decc36848cc1a64
[]
no_license
iastapov17/DS
f5b5226279b6affd47d8417aab22b30a9e7cb549
9eb7b8c81a6ee475b80c88ca5f567047aae46ffd
refs/heads/master
2020-09-07T15:54:21.617418
2019-11-10T20:01:42
2019-11-10T20:01:42
220,833,736
0
0
null
null
null
null
UTF-8
Python
false
false
4,261
py
unique_passengers.py
import csv import psycopg2 import re f = '' def init(): global f f = open("liza_log.txt", "w") try: conn = psycopg2.connect("dbname='ds' user='lizzie' host='94.250.250.51' password='lizzie'") except Exception as e: print(e) return conn # поиск обратного маршрута def find_return(...
eef1be129c61c4c3fd1ec009b6ef9badb3729e48
8791908d7a8210ed746b1d9f3ece3a902e71f1e5
/mensabot/mensa.py
21d3be478c1e65691490c526dfb5e9c102fdc7fa
[]
no_license
cvzi/openmensabot
3d0aabdf39694dff6c65b0da87c2fc05c63584d1
41401fcba40bf97716ea3e118420e8db2957dd73
refs/heads/master
2023-08-14T03:12:01.791087
2022-12-22T20:03:47
2022-12-22T20:03:47
121,947,348
1
2
null
2023-07-20T15:55:53
2018-02-18T11:54:11
Python
UTF-8
Python
false
false
18,014
py
mensa.py
import urllib.request import urllib.parse import json import math import time import re from datetime import datetime import pickle import threading import os from shortnames import shortnamesId2Name, shortnamesName2Id, shortnamesId2Fullname, specialNames class OpenMensa: def __init__(self, stor...
4bf62ba0b3c2b376f40cdcbcd9d54c194b9f88f0
8bcee088f0da727fd1cfd00cfb9c285bf5756916
/Solutions/fun_with_strings.py
10818e3b4bea7f12c8b6156af691ea4d2518fb9f
[]
no_license
pleyad/pcl2_ex4
e331188f74b708f26f1dfba88fca0bed464ee648
45aabeb145ccaf8577fc5cc672ae74812e894a39
refs/heads/master
2020-05-07T09:06:39.565812
2019-05-11T14:10:16
2019-05-11T14:10:16
180,362,544
0
24
null
null
null
null
UTF-8
Python
false
false
1,366
py
fun_with_strings.py
#!/usr/bin/env python3 # coding: utf8 from typing import Iterable def longest_substrings(x: str, y: str) -> Iterable[str]: '''Returns the longest common substrings of two strings.''' x = x.lower() y = y.lower() n, m = len(x), len(y) maxlength = 0 x_coordinates = [] # Matrix d = [...
c56a6365acbe4b7cd69d28eabf123594221967b7
a29ece2367cf6e4eb5164709733d5f21344605a7
/tests/SLURMInfoTest/SInfoTestSuite.py
4fc3a840fc8fa7eac1c853dca30c3b8e2973888e
[]
no_license
italiangrid/info-dynamic-scheduler-slurm
c2c24b1cef9c768abdd568b2f8a6803cfc1f4e3a
0c1fb89310e86a993b1ead093efd769d1829eadd
refs/heads/master
2020-05-16T22:13:25.804456
2018-06-20T08:22:15
2018-06-20T08:22:15
6,795,397
0
1
null
2017-12-07T11:08:53
2012-11-21T12:40:21
Python
UTF-8
Python
false
false
7,387
py
SInfoTestSuite.py
# Copyright (c) Members of the EGEE Collaboration. 2004. # See http://www.eu-egee.org/partners/ for details on the copyright # holders. # # 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 #...
32136a5b9473b4828a1f40abd00c2bea0b1a4811
0369c880656a6510e425754f1493a2ec84131dda
/app/db_model.py
f916f699bcf86a463092ba0e240e4033de71bad6
[]
no_license
double128/cm-portal
690adbf469258e217a25776ea8a0197f700576ec
afa352a2ede3056a843f48278853ec134170cf56
refs/heads/master
2022-12-11T04:11:08.043916
2020-11-07T20:35:58
2020-11-07T20:35:58
200,890,811
1
0
null
2022-12-08T05:59:01
2019-08-06T16:51:49
JavaScript
UTF-8
Python
false
false
1,415
py
db_model.py
from app import db, ma import datetime class Course(db.Model): __tablename__ = 'course' id = db.Column('id', db.Integer, primary_key=True, autoincrement=True) course = db.Column('course', db.String(10), index=True, unique=True, nullable=False) instructor = db.Column('instructor', db.String(120), i...
3872424cb0dec0039b4e44af73108c371c5199f9
1cf400ddc8efef64a6e77f2c0e91a6619691b23e
/leedian/LeedianCode0316.py
524287a9f8f496a011023e24663e773d7858b755
[]
no_license
yxwandroid/PythonCode
1783341efc91c4b06d1ceefa1a590ec253e47de6
52a5f3edb04ae7098ae154152cfc69e788824cb0
refs/heads/master
2021-04-09T14:21:12.994175
2018-03-16T10:19:14
2018-03-16T10:19:14
125,460,784
0
0
null
null
null
null
UTF-8
Python
false
false
1,781
py
LeedianCode0316.py
import os import json import shutil import sys outPut = '/Users/yangxuewu/Desktop/Assets.xcassets/' inPut ="/Users/yangxuewu/Desktop/3014leedian/data" outPutPath = os.path.abspath('.') + '/imageNameleedian.json' # 生成代码文件 # 遍历文件夹 def gci(filepath): # 遍历filepath下所有文件,包括子目录 files = os.listdir(filepath) for f...
e12ec735614b69107181e40ad0a5033f89cdd370
7f6409188ce15e07df40f8690331f0dd6ec5b140
/ws/CSUIBotClass2014/action_model/model_1.py
f8d4c48bfe380d8c8e41001bb354c97abab94dc0
[]
no_license
tttor/csui-bot-class
541ba1101afbb145d25e119991aa72cd4e189980
472e88d89d3cd6bca6ab1a321d087a2e97f58bce
refs/heads/master
2020-05-30T04:04:00.456464
2014-05-28T05:30:40
2014-05-28T05:30:40
19,298,929
0
2
null
2014-05-28T01:04:06
2014-04-30T02:51:44
TeX
UTF-8
Python
false
false
375
py
model_1.py
import numpy as np def sample_motion_model(u, x_past): ''' Assumptions: 1) Use the odometry motion model, u = (desired) dx 2) Odometry error is modeled using gaussian distribution''' # Set the odometry error model mu = 0. std = 0.25 dx_bar = u err = np.random.normal(mu, std) d...
93f4c73e7a7c81d365c527140d3eb20be2784741
a844ccc676caaf75326acf33168d72e5c25c09a6
/aoc2021/test_puzzles.py
76012e6828038905fc92cdd133828f9be57b9598
[]
no_license
rakitaj/daily-programmer
65fc6f3e3fea153c5911eca40c3e90afd5fd341b
e226e63671116a2e0318816e92f04184b58f0f5e
refs/heads/master
2023-05-15T04:44:03.961103
2021-12-24T00:52:35
2021-12-24T00:52:35
102,878,836
2
0
null
null
null
null
UTF-8
Python
false
false
4,852
py
test_puzzles.py
"""Tests the puzzles in Advent of Code 2021 along with some test for helper function and algorithms.""" import pytest from test_algos import bits_list, Point from puzzles import * @pytest.fixture def vents_list() -> list[str]: return [ "0,9 -> 5,9", "8,0 -> 0,8", "9,4 -> 3,4", "2,2...
d8f92eba82286bb18a0703585858068c5b98bd0e
df20dc807d2d9ba666377a2a23cbe80b268c75cd
/0 Python Fundamental/25.e.fibonacci.py
c0bd73134bba60e2b1c5fc27c55d74189ae745a8
[]
no_license
stevenwongso/Python_Fundamental_DataScience
e9bb294017d0fcc05e2079f79f880ac8be726e11
706c61c8bdfcec1461328fa7a58a55a2d0f9f2d8
refs/heads/master
2021-01-04T07:32:11.856979
2020-02-13T05:18:06
2020-02-13T05:18:06
240,449,486
0
1
null
2020-02-14T07:12:16
2020-02-14T07:12:15
null
UTF-8
Python
false
false
593
py
25.e.fibonacci.py
# function fibonacci def fibonacci(urut): if urut < 3: if urut == 0: return 0 else: return 1 else: return fibonacci(urut-1) + fibonacci(urut-2) print(fibonacci(3)) print(fibonacci(6)) print(fibonacci(40)) # ============================================== # class & obj fibonacci class ...
422a8c3155ff0892504932eb234061415d8fc575
8edf75fc0bbf92bd511b7cf16ca2c26fc32f4813
/wagtailcommerce/analytics/apps.py
fe48b981e290ae0491c9d0478cfa2fd00ee717e7
[ "BSD-2-Clause" ]
permissive
theplusagency/wagtail-commerce
2047e1884b15c63f11d8bfc20c2fd064c70e6b08
6047170f29199ccaf2778534976ab0970c2877e7
refs/heads/master
2021-04-09T11:52:28.968315
2019-04-11T00:06:40
2019-04-11T00:06:40
98,432,846
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
apps.py
from django.apps import AppConfig class AnalyticsAppConfig(AppConfig): name = 'wagtailcommerce.analytics' label = 'wagtailcommerce_analytics' verbose_name = "Wagtail Commerce Analytics"
d1f589192900325bf8270215df9f7582ad0f25c4
601bfb1205cb30ccf07e4a8ea8a57e2afd5b7ec3
/CPS2500FA/controller/digital.py
591b5565bdb3681d3e1838e9f1b576c96fb59e56
[]
no_license
lspgl/daVinci
85be80a745b84d2009e7db39afd427149f934c61
37d47c90efcd1cdf159c3eb82e15062daf1c322a
refs/heads/master
2021-01-23T10:19:40.618565
2018-01-30T10:36:53
2018-01-30T10:36:53
102,608,425
0
0
null
null
null
null
UTF-8
Python
false
false
4,790
py
digital.py
from .toolkit.colors import Colors as _C class Digital: def __init__(self, controller): self.controller = controller self.state = {} keys = ['ERROR', 'MAINS-NOK', 'STATUS', 'ADDR-IN', 'ERROR485', 'CSB+', ...
ba7012d8be8774077ee6d1b1d8fc1bcfc5703dc8
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/fallback/python_builtin_funtions/test_graph_fallback_runtime_map.py
d17ff0a16265ed4fb25137abc34f9514fc0da01a
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
2,344
py
test_graph_fallback_runtime_map.py
# Copyright 2023 Huawei Technologies Co., Ltd # # 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...
f851add5d984f1eb0e1386b50f409ee474729695
e18a353582609732c795401f1a01bc762bd939f2
/top/python/MuonTrigger.MC2016.py
b993e6e8dc0af970ff72020fefc43eb5c9571ef9
[]
no_license
s-farry/workspaces
06741807bb464bb0712d52108c2d1b7ae62b1353
0dcf3868dcbe110206ea88ff5c9e04a3b44b1ca1
refs/heads/master
2020-04-03T00:45:39.152227
2017-06-15T16:33:33
2017-06-15T16:33:33
64,213,815
0
0
null
null
null
null
UTF-8
Python
false
false
7,478
py
MuonTrigger.MC2016.py
from Jawa import EfficiencyClass from ROOT import TFile, TCut, TTree, TMath, TH1 TH1.AddDirectory(False) import copy triggercut_plus = TCut("muplus_Hlt1SingleMuonHighPTDecision_TOS == 1 && muplus_L0MuonEWDecision_TOS ==1") triggercut_minus = TCut("muminus_Hlt1SingleMuonHighPTDecision_TOS == 1 && muminus_L0MuonEWDecis...
6bb007031986052be36afec650e6b24879a99473
3baf69a3b855f1d495515a145aceaadc2911d53a
/FeStandardization_lib.py
1a666a4458f2d0e5f9c6af04a6e3d974025b6265
[]
no_license
hrk-o/FeStandardization
0cb77496a8e0758a958672350fbe12f37ff08f16
b5c538b6f91d302ecfec621766c926e8334d38d5
refs/heads/main
2023-03-02T04:50:31.903698
2021-02-08T02:35:31
2021-02-08T02:35:31
336,936,654
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
FeStandardization_lib.py
''' Created on Feb 8, 2021 @author: haruka ''' import os import csv import scipy.stats#標準化用 import numpy as np class FeStandardization_lib(): ''' classdocs ''' def __init__(self, bpath, apath): ''' Constructor ''' self.bpath = bpath self.apath = apath def g...
28b6435e90ae7f8353ba3dec36079acc6bc1cf31
1186797bca796358c32fe9100ad10f873c0fdbe3
/list_test.py
6eca28c5a40542bbe58325c8203268167126bf2f
[]
no_license
austin72905/pythonTraining
6ed477ead9ae67b1c4d616f47a19100684fde7c0
a8519605f4a1179ef596c1f7c08c18988e62a2f0
refs/heads/master
2023-04-13T18:20:07.199361
2021-04-29T09:36:55
2021-04-29T09:36:55
260,401,577
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
list_test.py
a = [1,2,3] b = [2,3,4,5] inter = [i for i in a if i in b ] print(inter) a = [1, 2, 3, 4, 5] b = [3, 4, 5] d = [False for c in b if c not in a] print(d) if d: print ("a不包含b的所有元素") else: print ("a包含b的所有元素")
66ac34c717b32980ad16c144322f208921288ba0
e6b41eaac6290d012a9ea3b97b7544c4467a1ace
/where.py
43ce6ac4254467fa509ac934af426de2cf3113c9
[ "Apache-2.0" ]
permissive
NickTGraham/PythonPack
2a274b89632c6402a3ef4afe6919f6463ffc41ed
689ee092f9f51b88771d9fcf8186a89832df2c02
refs/heads/master
2021-01-18T22:45:50.755682
2018-01-07T17:20:18
2018-01-07T17:20:18
20,110,557
1
1
null
2015-04-16T15:41:53
2014-05-23T18:55:36
Python
UTF-8
Python
false
false
772
py
where.py
#!/usr/bin/env python import Locate import Connections import DomainLookup import sys import subprocess import re def where(loc): try: return (Locate.Locate(loc)) except: dom = DomainLookup.Domain_to_IP(loc) return (Locate.Locate(dom)) def where_users(): return (Connections.LocalUsers()) ...
c65be0bba36d82a3d30d5d9715cd85d88f343b3c
10bc6d4600da6ec1e2f7c8a60f0c919df6e145b3
/BBomi_raspberryPi/camera.py
f0cc006f3c4dc4d5c3104bb52f55a41863a83c57
[]
no_license
jang-junsu/PPomi
193db0ff6953df7173c6ec0177b3b7d43cfc66b2
ec1e9c4eb3498304d48e6029c47e7e636d6f004e
refs/heads/master
2022-11-08T12:59:13.709395
2022-10-26T16:55:40
2022-10-26T16:55:40
112,338,472
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
camera.py
# Copyright (C) 2017 Team Garaage # Author BS Kwon from time import sleep from picamera import PiCamera class Camera: WIDTH = 1024 HEIGHT = 768 camera = None def __init__(self): self.camera = PiCamera() self.camera.resolution = (self.WIDTH, self.HEIGHT) def __del__(self): ...
8ddd13f2e1fbe7f4df4935747c2632ff5f0d92c8
7a9bf9f9a2164c5681d3fe80daf5d5aca99b105b
/MemoryRandomDigitString/memory_random_digit_string/manager.py
a163c46c9b2de5f6937e1186bc1ba489c6731ced
[]
no_license
eBLDR/Simple_Games
782e11dbc0930a5c017b740bd091e5e760457578
b42a661c444b144731c912d4694f0d50a59989b4
refs/heads/master
2021-06-18T08:16:00.871045
2021-01-20T08:35:02
2021-01-20T08:35:02
143,120,918
0
0
null
null
null
null
UTF-8
Python
false
false
5,106
py
manager.py
import json import os import random import time import turtle from memory_random_digit_string import config from memory_random_digit_string.button import Button from memory_random_digit_string.history import History def generate_number_sequence(items): return [ str(random.randint(0, 9)) for _ in range(it...
a8f0cc1937400eea140e7cfb8b5e0e1d1bb22639
0a62e02781cf2f474ffd41aa4f46e024bec978c4
/totem/reporting/console.py
caa862d75b46b6e1c544e2a5abf1eceed9656f13
[ "MIT" ]
permissive
transifex/totem
c8d3bda7409dfb5b9f08c53293600cecfbde8f73
9c2e9b95d2e4368bf5e68b3cd59cc2a91e64e55f
refs/heads/devel
2023-08-18T18:19:01.980774
2020-02-24T12:25:41
2020-02-24T12:25:41
152,587,131
5
3
MIT
2023-09-06T17:33:46
2018-10-11T12:21:30
Python
UTF-8
Python
false
false
9,938
py
console.py
"""Includes functionality for writing output on the console.""" import pyaml from totem.checks.config import Config from totem.checks.results import STATUS_FAIL, CheckResult, CheckSuiteResults from totem.checks.suite import CheckSuite from totem.reporting import StringBuilder class Color: """Convenience class fo...
7542b0d0617942eda1287b1d8e920a1b84d17355
07753a550a5e65dccf916903c51c32f76c2ba55e
/pinchybot.py
06aab437e9458bca21c4f440a17499f0863c7000
[]
no_license
ZetaRift/PinchyBot
ee8c83afbbc00ffc6d13404cfe644229c424ae8a
fb69c4d0343f7ea140f915e56566963f319e72ff
refs/heads/master
2016-09-06T05:20:23.836217
2016-02-25T18:03:44
2016-02-25T18:03:44
18,256,881
2
2
null
null
null
null
UTF-8
Python
false
false
27,055
py
pinchybot.py
#!/usr/bin/python2.7 #PinchyBot for chatango #This requires the following 3rd party python libraries as of current: requests and BeautifulSoup #Unicode sending issue fixed in ch.py at 2015-03-03 import ch import string import os import random import time import socket import settings import sys import datetime imp...
f4296d865dd87c2b09e7f7251fe6adaf8793f06e
91f18f1a759ed0c74d1c482da488ba12c1fee7d0
/bot/transliterate.py
e3d3e7041c57e6a10717c518fc1bb35b5645fc95
[ "MIT" ]
permissive
kaviadigdarshan/digdarshan_bot
5c775cf29ef670a58a9c3c5a04c94df18ea093c1
9beee30437e083ca9d147daf3c2f6e7dc581289e
refs/heads/main
2023-08-26T18:22:12.029705
2021-10-03T05:54:01
2021-10-03T05:54:01
349,817,002
0
0
null
null
null
null
UTF-8
Python
false
false
2,552
py
transliterate.py
import os import re import ast import http.client import detectlanguage from telegram.ext import ConversationHandler from general import print_sender_info, TRANS_TYPING_REPLY, PUNCTUATION_LITERALS detectlanguage.configuration.api_key = os.getenv("DETECTLANGUAGE_API_KEY") detectlanguage.configuration.secure = True la...
f9f0d913638329275b3ab5c7547297cfae4f097a
0c5af416848975f2fe015f4cea23aac944409322
/jack-rapture/jack-rapture.py
878b3d9fb85889f4a88edbdb6f9c7556d6d1e774
[]
no_license
jangwoopark/exercises-python
21fe42222a42e4898f6e5526eab27855b46498e1
70de40f63fecf219bd307d6e475bbb82fb682af7
refs/heads/master
2021-05-25T10:03:37.381242
2021-03-26T02:22:08
2021-03-26T02:22:08
127,049,986
1
0
null
null
null
null
UTF-8
Python
false
false
730
py
jack-rapture.py
n, e = map(int, input().strip().split()) parent = [-1]*n def find(n): if parent[n] < 0: return n pt = find(parent[n]) parent[n] = pt return pt edges = [] for ee in range(e): a, b, c = map(int, input().strip().split()) a -= 1 b -= 1 edges.append((c, a, b)) edges.sort() if fin...
2245112d47194060c3eacd21fdd7b713ed863fd1
29bb6b6e18a05c1ae4a6a6980ccf86a37e8c8deb
/python_code/Merge Two Sorted Lists.py
ad7c0e29d6401a378589d2b4dfffc3bf1b5086b3
[]
no_license
allenGKC/Leetcode_Practice
7c62ee1cb6e400cb775b299a04a902ca94843a28
fc368782337ded23f991b3de726a1a4298f132dc
refs/heads/master
2020-05-17T22:43:59.499174
2017-02-26T15:12:24
2017-02-26T15:12:24
41,430,632
0
0
null
null
null
null
UTF-8
Python
false
false
1,378
py
Merge Two Sorted Lists.py
''' Problem:Merge Two Sorted Lists Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. ''' # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = No...
ca37494e8f35038e307a731738a17fc0db06c6c6
b6df8e9f2d37eeb8ef034e89c5504b09981e8714
/cetner/test_suite/login.py
888618442fe444d8b3f3b359f02881c4f865ca6e
[]
no_license
fclm1316/acct_test
4dc259bf2d17c56de74335a6e70d5522afd7916c
2d1d5ae7abc59deeae7a574a61dd394da7b5c1d0
refs/heads/master
2020-05-16T22:49:12.142959
2019-04-25T04:23:04
2019-04-25T04:23:04
183,344,245
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
login.py
#!/usr/bin/python3 #coding:utf-8 from cetner import Web_Driver class LogIn(Web_Driver): def test_0001(self): u'''登陆测试''' pass
cedf410de5cba789ce069fa511be6ddfde40c8f8
786e323f1b9f47fec1b4fd984e2d357b817a18b5
/dv.pset/test.py
d5b25ef330c6aa17ecfdc7f9c6e06e4ccab4c9fc
[]
no_license
simraan9/dv.pset-simran
1e9061df65ee6bc5a784afad5b71a36177d8a0e1
301f1e500db4cc2f4e090d2a207ecc249c3ab960
refs/heads/master
2021-05-26T08:06:05.561266
2019-09-16T18:34:14
2019-09-16T18:34:14
128,017,010
1
0
null
null
null
null
UTF-8
Python
false
false
1,412
py
test.py
''' print ('Enter 10 numbers with a space:') numbers = input().split(' ') L = list(map(int, numbers)) ''' x=int(input("Enter number under 1Million")) for i in range(0,1000000): if x == i: print (i) else: i+=1 """ #def numberWord(x): if x in range(0,10): if x==1: print ("one") el...
6b9997f58c70f2591d0fc1eb0f41863aee71f868
fe14171244f5752d104ebd117cb298c6707eb809
/SeriesDeProblemas1/p36anton.py
d495fbecb3c6994a6ed24361ec73c82c17758c07
[]
no_license
pauloALuis/LP
38e14c0e7484f618756ee16891ea77ea0f06188c
5b2b7ede1d797d842b924deebab1b592604833b6
refs/heads/main
2023-08-25T01:40:49.576606
2021-10-19T12:07:24
2021-10-19T12:07:24
418,887,313
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
p36anton.py
import math def trapezoidal_rule (f, i, N) : ''' Calcula o intregral de uma função num certo intervalo através da Regra do Trapézio @param f : função que é integrada @param i : intervalo @param N : Número de trapézios em que o intervalo é dividído @return o valor aproximado do integral da funç...
bc093447bc908e11de24e6fe260ffc33312bcda1
bf1fa1d158214dba6ebbdf4aba4d57419a3702b3
/linkable/myapp/migrations/0003_auto_20190508_1708.py
119ce8e5ce8c37c8a6e01bf3804d942f429937dc
[]
no_license
linkable0905/Server
defc55adf99f2497bdb408fe427d2cd5b6844b6c
97c01cd47c593f0b5e2a710c2315afbd6f3e57c8
refs/heads/master
2020-04-26T02:44:44.813187
2019-06-04T06:58:49
2019-06-04T06:58:49
173,244,032
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
0003_auto_20190508_1708.py
# Generated by Django 2.2.1 on 2019-05-08 08:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myapp', '0002_auto_20190508_1422'), ] operations = [ migrations.AlterModelManagers( name='myuser', managers=[ ],...
20df0adfd86b4cb936f70caffe9f62604087d096
78158f942bd0e223f11016457a494c76b7a689b4
/plugins/NACO/NACO.py
8ad25c36f98d2bcb80629ccfd636b9dda94517d9
[]
no_license
frumiousbandersnatch/supybot-plugins
ad607dd22529372d72c7dc0083100b5b5cdb719b
8c7f16c0584bdf393a56dccff6b35a83142e5ece
refs/heads/master
2021-01-17T05:46:10.917776
2020-03-12T11:42:20
2020-03-12T11:42:20
6,639,759
0
1
null
2020-03-12T11:42:22
2012-11-11T15:21:36
Python
UTF-8
Python
false
false
10,810
py
NACO.py
from __future__ import generators from types import UnicodeType import traceback import sys import array convertArray = [] dConvert = {} if len(convertArray) == 0: append = convertArray.append for x in range(65535): append('') convertArray[ord(u'\u2070')] = '0' convertArray[ord(u'\u2080')]...
b01f0c3055a3068b2fe962f05faeb5172c558229
f62a0ce26d7ef849d9e8176b047f28f4628cb431
/run.py
1cd327c502d39645b40494421b417d4e811916b0
[]
no_license
radl97/mytl3
9a27603c51ad6955acc0c2e89cfc9a0c5957aacd
f48b0f8762ea8a19683b23e2b9e882c26da64253
refs/heads/master
2020-05-25T09:27:34.094221
2018-12-30T14:17:17
2018-12-30T14:17:17
187,736,386
0
0
null
2019-05-21T01:06:38
2019-05-21T01:06:38
null
UTF-8
Python
false
false
1,479
py
run.py
import sys sys.path.insert(0, "./codeforces_tests/") from autotest import Codeforces, run_test, collect_dir import autotest.config as config import autotest.config.secret as secret import os from autotest.util import write_file def test(*args): cf = Codeforces(*secret.credentials) all_accepted = True for...
6ca000998310ef422052ea7e39f7db935a33589b
d1beb2b89876c47c4c513c5a1eac939187f2c95b
/server.py
88c70ddf72ad619b404a38fee0403f48125b7ec4
[]
no_license
vanderaa/geodaq
5b503662e1b4d331a1d433974753c004031e2d62
2c6054506c63008661f1320a20f9a212c88bbe85
refs/heads/master
2016-09-06T16:34:02.181843
2015-11-21T20:06:26
2015-11-21T20:06:26
1,193,634
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
server.py
#!/usr/bin/env python import tornado.ioloop import tornado.web from urlparse import parse_qs as qs_decode from urllib import urlencode as qs_encode from tornado import escape from plot import plotter from tsdb import TSDb class MainHandler(tornado.web.RequestHandler): def get(self): self.set_status(200) ...
2b63c242d52053f3248feb25b7dcb6b0114105c0
6c4ab39fa8498419280fa1e1711ca6872b18137a
/1Differentiation.py
3efec0ae54de0851e2e454a6e699a3f686c5c733
[]
no_license
joseph-pye/university-work
159cb3ab9f3b7296d0f44f985c26a0e34382a2cb
33deaa07ba9521425f5a379df942e6c047cb6f10
refs/heads/main
2023-08-07T22:09:16.633971
2021-10-03T18:55:18
2021-10-03T18:55:18
412,182,969
0
0
null
null
null
null
UTF-8
Python
false
false
1,917
py
1Differentiation.py
'''This module contains functions to compute the derivative of f(x)=xsin(x) via analytical and numerical methods, it then plots a graph of these against a series of x values''' USER='JOSEPH MATTHEW PYE' USER_ID='LJVS65' import numpy import matplotlib.pyplot as pyplot pi=numpy.pi dx=0.25 def f(x): #This funct...
414a98af132f97c8ddf28ae4e3596ae3b26cb2a6
92a44a6789b150c909198880bdd097f2422ebcb4
/Aula_01/script1.py
235157deaf67e05dfbcfabfc9e77a58d83e99d19
[]
no_license
devConrado/curso_python
779e042474e3813f7ec55baff670dd7ecf2d0995
7bc40945e43bced4b76b9675c218af94eb2c84b8
refs/heads/master
2020-04-24T20:57:00.405321
2020-02-26T01:05:45
2020-02-26T01:05:45
172,261,046
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
script1.py
bar = 'Moe\'s' print(bar) exit() nome = ' ada lovelace ' print(nome.split()) print(nome.title()) #title() = coloca a primeira letra em maiuscula print(nome.upper()) #upper() = coloca todas as letras em maiusculas
c3df40af32dd9fa93ba39450e5111750a1419295
899b16e8f9fbff2823f47a20698de3f7e1f26a08
/app/subapps/home/routing.py
c2d46c48572bcafd948a6613b47365899a297ee9
[]
no_license
luke202001/MyDWTool
eb2aedf51bfdce01d685ef2437ff099f3211064e
dcc957dcb26c44e29c4d1ba7d2db7700f42f6fc5
refs/heads/master
2020-03-27T12:51:18.181796
2016-08-25T03:26:12
2016-08-25T03:26:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
routing.py
# -*- coding: utf-8 -*- from flask import Blueprint,url_for,flash,request,abort from flask import render_template,redirect from app.subapps.home.forms import LoginForm from app.models.User import User from flask_login import login_user,logout_user,login_required import hashlib homeRoute = Blueprint('homeRou...
d542cc315e027cea77650fe6814e8d9095abddca
a5c7e372a8b66737810f9dfe025052e4b65aae04
/Mundo 02 - Estruturas de Controle/Atividade 040 - Condições Aninhadas.py
c1872b51fa26fecc54a868a63dab50c3291d33de
[]
no_license
MathMS/atividadesPython
49bfce3c69795b5de454417fe007f06fd48042fb
561c5dee54f9a420130207c5fb6d527d115f8044
refs/heads/master
2020-04-04T21:50:56.889995
2019-01-14T21:37:50
2019-01-14T21:37:50
156,300,376
0
0
null
null
null
null
UTF-8
Python
false
false
607
py
Atividade 040 - Condições Aninhadas.py
"""Crie um programa que leia duas notas de aluno e calcule sua média, mostrando uma mensagem no final, de acordo com a média atingida""" nota1 = float(input('Digite a primeira nota do aluno: ')) nota2 = float(input('Digite a segunda nota do aluno: ')) media = (nota1+nota2)/2 if media < 5: print('Sua média foi {:.2...
63611f2a340dca1ca12bb8add5ce9650b440e1eb
b0f3be5814eeb3341c6a2c256dea5acdc5749502
/del_nuclid.py
ab259d8862a9c79e9adfac61c22275940f1db5e2
[]
no_license
igor-976/Test_Programs
95105731af3192760d45e8028af753f29422b894
ae9c90f38066016b146696d433b806bf9badf883
refs/heads/master
2023-08-24T21:56:02.599959
2021-10-10T14:43:20
2021-10-10T14:43:20
256,280,723
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
del_nuclid.py
import find_one_nuc as s k = 0 nuclid_1 = "sn114" #nuclid_2 = "in114" all_index_1 = s.find_reactions(True, nuclid_1) all_index_2 = s.find_reactions(False, nuclid_1) #all_index_3 = s.find_reactions(True, nuclid_2) #all_index_4 = s.find_reactions(False, nuclid_2) all_index = all_index_1 + all_index_2 #+ all_i...
f765102b1e87b0fc6fc88099da8a03206f80cb4e
9025b84282569ea014ad1470f3bad65f6b7e2c50
/subst.py
78330348f018ca2fcbc70a024a9311950113b0bc
[]
no_license
nhanb/security-ass1
6cfeed002760e06acf7ce74db49d917f08eae961
c9e1b4870a2874261eec31f5380a3418c9ec0fa3
refs/heads/master
2020-12-24T14:18:48.931341
2013-07-24T13:54:00
2013-07-24T13:54:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,502
py
subst.py
import random import sys # Define the alphabet used in this Ceasar cipher implementation alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ .,()-!?\n0123456789' # "Portal" to the program flow. Handle some validations before calling handle # functions, which in turn call pure logic functions. def run(args): if len(args) != ...
183efaf7cb437b0e539b745146922c39e4d07c04
a2b702e2396cc585bf561720fc87e8420b6c9621
/Train.py
51b59449689e06725c939d122da0b535450411e2
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
phermosilla/TotalDenoising
211f2daa661f1b78108f3a34b6d76e52dd04395a
d56b53060472b38f7caed4ea4da61e984ba185c0
refs/heads/master
2023-07-25T07:05:45.939232
2023-07-13T10:17:49
2023-07-13T10:17:49
216,931,480
62
11
null
null
null
null
UTF-8
Python
false
false
19,637
py
Train.py
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' \file Train.py \brief Code to train a denoiser network. \copyright Copyright (c) 2019 Visual Computing group of Ulm University, Germany. See the LICENSE file at the top-level directory of this ...
06ea56efd460e68f06935de4d82c6b372b12da5c
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_auctioning.py
8446385528e3a150f7d6e6d4466955653321b8db
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
_auctioning.py
from xai.brain.wordbase.verbs._auction import _AUCTION #calss header class _AUCTIONING(_AUCTION, ): def __init__(self,): _AUCTION.__init__(self) self.name = "AUCTIONING" self.specie = 'verbs' self.basic = "auction" self.jsondata = {}
c1722175eb62dd005e8a3fec108cde420dbbe56c
4b8083a2439e647d9cb6c0ed3e95919a01674e4e
/data03/pack01/module03.py
8714050a4a657156eb5ecc894f1689447259813f
[]
no_license
jeong-on/python_basic
84611e60f948f600f1d11fb763704a0676d5818b
173e6d43300478ffccf74f7da2d8e4204cdcbeb6
refs/heads/main
2023-04-30T22:35:36.021271
2021-05-12T09:08:53
2021-05-12T09:08:53
365,713,767
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
module03.py
# 기본형 4가지 # 정수, 실수 age = 100 weight = 99.9 sum = age + weight # 더하기 연산자(하나라도 스트링이 들어가면 결합연산자) print(sum) # 문자 # 논리 temp = '못봄' temp2 = float(temp) print (type(temp2)) if temp2 == temp: print('못봄') # 타입을 변경하는 것 : 형변환(casting, 캐스팅) # 문자로 변경하는 것 : str() # 정수로 변경하는 것 : int() # 실수로 변경하는 것 : float() # 문자 # String을...
7e0ae60240bcae7f00586e4815b3e0c309c49c0f
d042487b820a3648dd171ab7dd6b5ea5efe2b913
/ticket_checker.py
a81e6ea73fc97139f935e5c9f26d8b2be915028f
[]
no_license
RaghunathSai/Using-Python-to-interact-with-the-Operating-System
257c9f27b08ae94d1670e7e7a6725e112dae5f5d
e02e00f8ae856e658df0500bf2f838295362b86e
refs/heads/master
2022-11-14T18:10:53.230599
2020-07-03T04:54:14
2020-07-03T04:54:14
276,654,452
0
0
null
null
null
null
UTF-8
Python
false
false
1,449
py
ticket_checker.py
#!/usr/bin/env python3 #importing the necessary modules import re import operator import csv #declare two dictionaries one for couting the no.of users and other for collecting the count of varius errors error_type = dict() user_name = dict() with open("syslog.log") as fhand: for line in fhand.readlines(): ...
c3f0cf2ada40c906313c3f63c029ab2d7d373c20
c23e659c5fd794cd4a6a475b122c6091064f4a3c
/setup.py
23a8d0873e62ef8d9a70fd2bd5604b96d9bbaf34
[ "MIT" ]
permissive
whoshuu/hydra
30352e76bddfd3d5e81042d9d583c5164c832175
77b70af79d17605edaa9a1dd635a5b11528c09a8
refs/heads/master
2016-09-05T19:47:39.059666
2015-11-06T20:24:29
2015-11-06T20:24:29
19,289,902
0
1
null
2015-11-06T20:24:30
2014-04-29T20:03:00
Shell
UTF-8
Python
false
false
571
py
setup.py
from setuptools import setup setup( name='hydrapy', version='0.0.1', url='https://github.com/whoshuu/hydra', author='Huu Nguyen', author_email='whoshuu@gmail.com', description='A script for managing python versions.', license='MIT', classifiers=[ 'Development Status :: 2 - Pre-...
19644f9d88cfa1a6ea3bd92d741637b6bb08a1a6
ca3a9312f392dfc58189238d9e257c12ff3602e1
/src/relokator/companies/migrations/0002_auto_20191111_1844.py
29dfc423622f94b02180547cf6bb0fbcaa4e4094
[]
no_license
m-godlewski/relokator
7b1ad2fb49753aef1b5e8155fb1f6e49823a28ce
7e9b6a40fdd53cc807c3919585f68cb57c939e56
refs/heads/master
2022-04-07T21:31:11.935960
2020-03-16T18:26:56
2020-03-16T18:26:56
185,242,647
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
0002_auto_20191111_1844.py
# Generated by Django 2.2.3 on 2019-11-11 18:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('companies', '0001_initial'), ] operations = [ migrations.RenameField( model_name='company', old_name='owner', ne...
5502983a5314c334f006f9e2fca9c2abc33dcce2
d2ab89ac86189f43426cebd35d5801591c90e246
/jetsrc/cream.py
6378c85c08d61019a682ae6ed2082655b00819a8
[]
no_license
ahoink/SalamiSense
2a047ddb2240e7634c0ee710d7faf305c623b36b
ca2717df010dc84337b18b66082e68980216a07a
refs/heads/master
2020-04-05T09:21:55.078790
2019-05-22T16:42:09
2019-05-22T16:42:09
156,752,680
1
0
null
null
null
null
UTF-8
Python
false
false
4,003
py
cream.py
import cv2 import numpy as np import time import threading import pysrc.Roni as Roni import pysrc.Coppa as Coppa import keras from keras_retinanet import models from keras_retinanet.utils.image import read_image_bgr, preprocess_image, resize_image from keras_retinanet.utils.visualization import draw_box, draw_caption...
bae5fe1d995d85e6bbccc6e340e4211f04d9e5fe
572632988532651cd55aee7753be16c6f7b55cd8
/Game.py
19a371e3735c99c0ad6345de057929d897911f4b
[]
no_license
JasmineOsti/pythonProject1
141e27a3e8e8d2c6d86f6788ddf5bc180f49371d
9941cb02823df8f8e621b5c31344be1b6fed6228
refs/heads/master
2023-03-17T23:45:11.098746
2021-03-24T06:20:04
2021-03-24T06:20:04
339,622,578
0
0
null
2021-03-24T06:20:04
2021-02-17T05:38:03
Python
UTF-8
Python
false
false
247
py
Game.py
secret_number= 7 guesses=3 while guesses<=3: guess = int(input("enter a guess")) if guess==secret_number: print("Congratulations, you have won!!!") break else: print("You have failed!") if guesses==0: break
5b01350afdf8b6b21ae6eac26808fccd120fdc2f
b2718a930f20845f161baf17dcacdfbeff896633
/feature_selector (2).py
26b7a91cb51484173f6b4e40566fdcbc721a2442
[]
no_license
artemsteshenko/betting
b34f2e2ef0153ee75658cdbe04bb88dc2834a2a1
c0702234366e643567a42826c7496b5e31a15a0e
refs/heads/main
2023-02-20T20:49:49.586981
2021-01-27T15:35:51
2021-01-27T15:35:51
333,472,607
0
1
null
null
null
null
UTF-8
Python
false
false
5,065
py
feature_selector (2).py
# -*- coding: utf-8 -*- """feature_selector.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/160254jZGu5KgsDKHH2HYxDBDDllVku7T """ import pandas as pd import numpy as np import csv from sklearn.linear_model import RidgeClassifier from sklearn.en...
42f91e1e6148ea8c2cf0c96a258db2d619cca091
f0efd926d01d4174377f48cac7c68b64931145f3
/DjangoProject/models.py
1f8e976d3bfccad878fefb4c82c6025355290624
[]
no_license
AllieIaquessa/FinalWebProj
05f62c08cff58a33744e2ba022967f9909df1d2f
df3a4c55aa5dd2caf5417bb590329d546febd9b2
refs/heads/master
2023-01-24T11:32:05.533353
2020-12-09T03:07:37
2020-12-09T03:07:37
319,823,926
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
models.py
from django.db import models TOPIC_CHOICES = ( ('Investing', 'Investing'), ('Small Business Banking', 'Small Business Banking'), ('Consumer Banking', 'Consumer Banking'), ('Wealth Management', 'Wealth Management'), ) STAR_CHOICES = ( ('1 Star', '1 Star'), ('2 Stars', '2 Stars'), ('3 Stars'...
e178f2cf4b230c03e9326df1fd30aa0f8e66b2bd
54cdc2db4707d3741e7b731159215aa91b691f02
/RubikClass/visualize_stickered_cube.py
4ef805fdd43cc24bac8c74d13a58af527b1ae381
[]
no_license
JustinTienken-Harder/RubikReinforcement
344193828556dacbcedf67bd328cd2b72071a67e
83711aee86c95240f1d39b2a02d875623e6d5ed4
refs/heads/master
2023-01-22T12:17:03.859602
2020-12-03T14:27:26
2020-12-03T14:27:26
298,315,270
0
0
null
null
null
null
UTF-8
Python
false
false
1,213
py
visualize_stickered_cube.py
import numpy as np def pixel_value_sticker(sticker_array = None, bandw = False): if sticker_array is None: stickers = list("w"*9+"b"*9+"r"*9+"g"*9+"o"*9+"y"*9) else: stickers = sticker_array #Get the whole thingy majig if bandw: color_remap= {"w":[1],"b":[2/7],"r":[3/7],"g":[4/...
9e7593c723f306b98bb05740f308a2f7ff81867f
27580885d0c5d2b41ee24e7c344883452bc8b1b2
/dl/traffic-gesture-recognition/ubuntu/tools/crop_image.py
90cd435787e32e43e023394c3a2a88a8c23f4b07
[ "MIT" ]
permissive
AARabee/AI
f43dad3cc531e172ade69898783e48e7620e49bd
fec21197c0f09cbed07742e974b5b9266c7525e2
refs/heads/master
2023-03-15T09:51:18.464595
2021-03-18T13:43:10
2021-03-18T13:43:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
crop_image.py
import cv2 import os from math import * from tools import _const as const # crop frame image is_rotated = True user_name = 'yangxuefeng' command = 'turn_right' sub_imgage_width = 400 sub_image_height = 870 sub_image_center_x = 485 sub_image_center_y = 1290 proc_path_prefix = os.path.join(const.PROJECT_HOME, 'data...
e1ea725221839f13346989c4e760484b20117169
3efe2059de4c7efd1f58a385656d19098b7efd63
/deepiu/tools/monitor-dirs.py
e57a04fb30ff7375e05205d075bfe935de51fbd9
[]
no_license
yangyaoyunshu/image-caption-ai-challenger2017
5d2e82b2f8d70ac6d4eb7a0e70f6b406e551189b
7f2c556587ea1e5c4583fe3b12b8d40c5a2aa2cc
refs/heads/master
2021-08-31T22:48:55.886186
2017-12-23T07:27:04
2017-12-23T07:27:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
monitor-dirs.py
#!/usr/bin/env python # ============================================================================== # \file monitor-dirs.py # \author chenghuige # \date 2017-10-19 14:19:47.395408 # \Description # ============================================================================== ...
8454cbf56ccb4a4d61d0b9ec4db287bf92f0a9e6
639f0aebb639fc544b9df44f93ddec991bbf59b0
/Matrices_Tarea.py
510699c932dbf8cba9f06e9968228ffdaf268184
[]
no_license
JairGabrielCruz/Ejercicios_Python
8cb93529488bcf6008e581f4116b456fb1d167cf
69c3fe2b95db4276371095ee5f185fc43d0b470e
refs/heads/master
2022-12-02T04:05:40.805287
2020-08-03T17:04:54
2020-08-03T17:04:54
284,518,901
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
Matrices_Tarea.py
# -*- coding: utf-8 -*- """ Created on Fri Jul 24 06:59:37 2020 @author: Jair Gabriel Cruz """ import numpy as np from random import randint print("Ingrese el numero de filas") fi=int(input()) print("Ingrese el numero de columnas") colum=int(input()) print("\n"*0) matriz=np.zeros([fi,colum]) fl=-1 c...
f374fd5e6e16d86f9fca5a5c6ae1047c5cd41bc5
937362a78a0a6c1f14fc4fc34b27f620b48671c8
/race/optimization.py
ddb5080a0c87693105827695f11dd2b9d6ae4c7e
[]
no_license
brc7/PrivateRACE
e546f5887dfc4dcadf910cb717ba69576021865e
c74a0f678804cfdeef96d37496268e3288792582
refs/heads/master
2023-04-15T01:36:18.569800
2023-03-15T18:44:02
2023-03-15T18:44:02
274,508,770
5
1
null
null
null
null
UTF-8
Python
false
false
8,426
py
optimization.py
import numpy as np from sklearn import linear_model import sys import copy def gradapprox(sketch, lsh, x, sigma, n_components): d = x.shape[0] directions = np.random.normal(size = (n_components,d)) out = np.zeros_like(x) hc = lsh.hash(x) fx = sketch.query(hc) for di in directions: hci = lsh.hash(x + sigma*d...
386a777ae045fd0feecdf65fe1c1ecaffb136a5b
cf7f334dcc6374a54395d6c3f6a604795280562f
/Excel_Read_Write.py
7b253b1f816df0e27d76de4b6f1af8930f23edd9
[]
no_license
fancher87/PythonBasics
b02c4ff9139fd882ec03d19e0da82d43f51cac7f
aab545ff12dd3fc5b5e535570c224487c2a553c1
refs/heads/main
2023-02-18T12:35:51.473671
2021-01-19T21:40:20
2021-01-19T21:40:20
328,443,359
0
0
null
null
null
null
UTF-8
Python
false
false
1,301
py
Excel_Read_Write.py
import pandas as pd import os #know the filepath that it's being sent to or readfrom: os.getcwd() xls = pd.ExcelFile('Workbook_Name_Generic.xlsx') #read Excel file into python indata = pd.read_excel( xls ,sheet_name = 'Sheet1' ,header = 0 #row index = 0 indicates that f...
64b68549ebf4259a2fadb915ad8f0ac0e34f0d61
c348f84ef6b6ce14dd50a45dc933a498e38c6062
/promort/rois_manager/migrations/0009_auto_20161215_0940.py
f1fbfcb57cf1b7081fa2ff943b57e98d6f045287
[ "MIT" ]
permissive
cmascia/ProMort
6de29431ffe488c0476fb6cfb200b2546363e1b9
3b743600017cec0de3c3ccd9dbaa76dc198aba58
refs/heads/develop
2020-05-21T04:19:20.174443
2017-06-08T11:01:00
2017-06-08T11:01:00
64,132,824
0
0
null
2016-07-25T12:33:54
2016-07-25T12:33:54
null
UTF-8
Python
false
false
1,608
py
0009_auto_20161215_0940.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('reviews_manager', '0007_auto_20161212_1507'), ('rois_manager', '0008_core_tumor_length'), ] ...
64a1b2226903a30a5cae28023d114124c8b54815
6c3645f79c2efa3fc7a62b943ccef75f0c9dca8e
/scheduler/tests.py
f1271ff3843e528883733e291991331a0c372e42
[]
no_license
gjerse/rodrigues
f7808f9d224ff1c4e7f2fa9a8be8f1bc0609d567
49c1f1627dbe9b0a4f22af4c62db56eb31efce93
refs/heads/master
2022-05-05T11:28:57.820659
2018-03-29T06:55:45
2018-03-29T06:55:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
tests.py
from django.test import TestCase from django.conf import settings import docker from scheduler.tasks import pull_image import logging logging.basicConfig(level=logging.DEBUG) class TaskTestCase(TestCase): @classmethod def setUpClass(cls): cls.client = docker.Client(**settings.DOCKER_SETTINGS) d...
ec6def2c417fff5b9e13b6fd59a85db0fd169da8
cc57766ab1544f4833d731eff80c01672b307038
/src/tools/logouputhandler.py
6392cc9d853f33aa6dc9695c67e01297131cf040
[ "MIT" ]
permissive
ssebastianj/ia2013-tpi-rl
708e4a5a481fae9ee9d03015796d6f240f844ebc
18ef991f2d09417ebbb08f22bd370a7c5b1f8e6e
refs/heads/main
2023-09-03T07:08:06.008663
2023-08-17T11:46:35
2023-08-17T11:47:36
11,296,747
0
0
MIT
2023-08-17T11:47:37
2013-07-09T23:15:50
Python
UTF-8
Python
false
false
636
py
logouputhandler.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import logging from PyQt4 import QtGui class LogOutputHandler(logging.Handler): u""" Fuente 1: http://stackoverflow.com/questions/8356336/how-to-capture-output-of-pythons-interpreter-and-show-in-a-text-widget Fuente 2:...
55c1dd5444d715a54f4b859fd3d220a637905f84
ea7a182d9b3037b93068ef98677e212799047735
/phythonlearning/sum.py
82c31ef27433564c67eb929e95934bb2c18ae38a
[]
no_license
veeraroja/hi
fc75027da86195a72d244d18ee7392646545e19f
ee426f4a2b00f5030409c9b1e3318fb7d3c73588
refs/heads/master
2023-08-15T05:31:14.128252
2021-09-12T05:56:23
2021-09-12T05:56:23
405,336,575
0
0
null
2021-09-12T05:42:23
2021-09-11T09:24:27
Python
UTF-8
Python
false
false
168
py
sum.py
#sum program sum = 10 def calculate(): sum = 30 sum = sum + 20 currentSum = 200 totalSum = sum + currentSum print(totalSum) calculate(); print (sum)
f546add1ebf3233f5d8337b57395181f58380ff0
7bf53f9c5e29bbfe06aa01284035b087af29b374
/ana2.py
9d4bb59666fba71c7d1781c65fe80ab8d3226345
[]
no_license
mridhul/codingprep
3f870dc352a9625cc7811314caf030583e146a75
9c5a9e0d462c6f32deeb8fa36515da4d050f8817
refs/heads/master
2020-03-12T13:42:31.408416
2017-07-20T09:56:21
2017-07-20T09:56:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
ana2.py
#a = input().strip() #b = input().strip() #print(sum(abs(a.count(i) - b.count(i)) for i in 'abcdefghijklmnopqrstuvwxyz')) a = 'abcde' b = 'cdefg' for i in 'abcdefghijklmnopqrstuvwxyz': print abs(a.count(i) - b.count(i))
ca27db6c17b376ee841e14de1246c150affad42d
7f4b81b0190d5ed62096dce1c795036e8d243817
/bytes_concat.py
032ea87a0e448fb5f6b24d4429cabd757a8d1f0b
[]
no_license
jucaazevedo/estudo_python
eb6d315ceb3bbac1106574ae0fa384dc3e4637a2
999182ceccc21293910a7d7142026da5f7d435e8
refs/heads/master
2021-06-06T18:01:59.855547
2021-05-19T12:36:42
2021-05-19T12:36:42
93,571,818
0
0
null
null
null
null
UTF-8
Python
false
false
34
py
bytes_concat.py
a = b'juca' b = 'juca' 'azevedo'
9e6e581f0381516ccff2fe5b4ef2da1c4b60899b
d1a7ab8d50b6e5579922cee19cbf8a58ec88d117
/api/__init__.py
7a3c9f786384b4492f5954626e19380a3c88da28
[]
no_license
junx1992/challenge_web
3a4028617e32f247b1fd93af41400dc4b4af70f4
f35fb14d2fe6f79162e84443ab22bfa177331505
refs/heads/master
2022-12-15T19:19:58.290841
2021-07-09T07:23:39
2021-07-09T07:23:39
246,527,380
0
1
null
2022-12-08T00:48:05
2020-03-11T09:23:54
HTML
UTF-8
Python
false
false
16,890
py
__init__.py
#-*-coding:utf-8-*- from flask import Blueprint, request, jsonify, make_response, send_file, abort from config import * import os api = Blueprint('api', __name__) @api.route('/register', methods=['POST']) def register(): form = request.form required = ['challenge_type', 'username', 'password', 'teamname', 'caption_...
23ae64ebdeb9ba1a77779b08080bc58d581dff1c
b8fc47ad80cc566c6898bad937fbe9faa1b97805
/blog/models/__init__.py
743e4381281b4df313aa8634705d95d7152e7f09
[]
no_license
scottc11/ESSY.me-v.3
89669ae5f3b78c05115bb3ae0ab1ff334c4a591f
21e6188446b1248973ed5372d0a345e6b8a10872
refs/heads/master
2022-12-12T06:37:41.775041
2018-11-17T15:27:28
2018-11-17T15:27:28
96,055,757
0
0
null
2022-12-08T00:00:41
2017-07-03T00:10:17
Python
UTF-8
Python
false
false
55
py
__init__.py
from .entry import Entry from .image import EntryImage
fb37719d5add1da03093ed2026bdd779894d5329
6c516e6bfb610209b82fd5b97b8cc56613d46813
/day11/func11.py
4383eeac671161980c35686bd9df88ec19dcadd5
[]
no_license
Eric-cv/QF_Python
7497d1629d24b78aad141d42de5a28b00da207a4
8832faaf63e6fbaaeb2d50befa53d86547c31042
refs/heads/master
2022-06-16T21:34:48.077318
2020-05-11T11:57:03
2020-05-11T11:57:03
263,021,774
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
func11.py
# coding=utf-8 # @Time :2020/4/15 0015 21:22 # @Author :Eric # @Email :zhangqi_@pku.edu.cn # @File :func11.py # @Software :PyCharm # 装饰器带参数 ''' 带参数的装饰器是三层的 最外层的函数负责接收装饰器函数 里面的内容还是原装饰器的内容 ''' def outer(a): # 第一层: 负责接收装饰器的参数 def decorate(func): # 第二层: 负责接收函数的 def wrapper(*args, **kwargs): #...
6c015d9ddeba256852d2151a864470bf08d7e702
ec82d46c0315ac58bff8afb1825e19ce3072387b
/AuxGan/AuxGan/train.py
92745ee3d4e2818a0621cdc94214a9763afcf036
[]
no_license
qaz754/Computer-Vision
b18263bbfc2b6dd165c34c349a0b461666082184
448e82fb94e9c1ad2f62aea348bb33832f11557a
refs/heads/master
2021-05-17T08:36:10.863641
2019-04-29T04:02:03
2019-04-29T04:02:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,433
py
train.py
import torch import os import torch.nn as nn from util import sample_noise, show_images, one_hot_encoder, categorical_label_generator, Flatten from network import Flatten device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec fr...
46e72a07affb8e605cee1d2c5c1123fd4c486eec
1361f56a3dc2205455054d144fa30d9cebb9704f
/week-03/day-4/resetmovie.py
72152e7f2f6cfaad618503a71770b9a6f55a8c33
[]
no_license
green-fox-academy/TemExile
31b240f58a0d56364e3b888cd9610b176f244d5e
040882ebb07d10c65b98cd3dc12814f10fa52dc0
refs/heads/master
2020-05-19T18:17:58.468807
2019-06-21T06:22:51
2019-06-21T06:22:51
185,149,461
0
0
null
null
null
null
UTF-8
Python
false
false
3,208
py
resetmovie.py
from flask import Flask, jsonify, request, render_template, make_response import json app = Flask(__name__) @app.route('/api/movies') def api_get_all_movies(): with open('movie.json') as infile: a = json.load(infile) respose = jsonify(a) return respose @app.route('/api/<movie_id>') def api_get_mo...
03751840e11c36eca63a5114b0a67575ae3958e5
0d34ea54c2541abcbeb713fa32774800b5a849e5
/!src-dist/tools/pet/csv2lua.py
2d836801d2d6c0b400c658c7155055595008f109
[ "BSD-3-Clause" ]
permissive
tinymins/MY
c9774d620e3ff502882bcaf4ea0426e498da9943
674b1a2deb4282b7e699f291abbd569b630900de
refs/heads/master
2022-09-04T19:04:23.944851
2022-08-09T03:34:11
2022-08-09T03:34:11
18,641,380
153
78
BSD-3-Clause
2018-01-31T02:06:18
2014-04-10T15:23:19
Lua
UTF-8
Python
false
false
1,188
py
csv2lua.py
import codecs, pandas, luadata, os SRC_PATH = os.path.abspath(os.path.join(__file__, '..', 'data.tsv')) POS_PATH = os.path.abspath(os.path.join(__file__, '..', 'pos.tsv')) DST_PATH = os.path.abspath(os.path.join(__file__, '..\\..\\..\\..\\MY_RoleStatistics\\data\\serendipity\\zhcn.jx3dat')) def rowappend(a, p, k, v):...
3c260b48a6adbe22135ed652cba303f1644aa001
4a50774fb00196e0bb57edf47a442e30dc1aa5be
/ฝึกเขียน/For_loop/whileloop.py
577603435da40456e29f7af30e8f28b39059d182
[]
no_license
Sittisukintaruk/learning-Coding-Self-Python
1124581aba4ebb01bcdee85e328a67d9c061931f
b0d2cad76a54ab94ceed3b456eca48eb09225aa3
refs/heads/master
2023-02-16T21:48:57.310708
2021-01-13T18:10:57
2021-01-13T18:10:57
298,890,199
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
whileloop.py
def demo(): i = 1 while i <= 10: print(i) i += 1 print("bye") def summit(): number = int(input("enter number : ")) total = 0 while number != 0: total += number number = int(input("enter number : ")) print("bye total : ", total) # ทำซ้ำ repeat def sum_repeat...
9df754d058c462d1aabd53b523ea95fa7e07a89a
c028d0dd2522fbf3a2e92d3400d172a7ea1ea950
/LeetCode/1170. Compare Strings by Frequency of the Smallest Character.py
f69a33f108f8c05e5cbe94144a94279fe6d2c72c
[]
no_license
iverson52000/DataStructure_Algorithm
3ebda709771e1fc2fc660aa2d9d55aa42d1046c7
8b08c72b7d448e8842ae4034e454f25281fce8c8
refs/heads/master
2023-08-24T12:09:57.635852
2023-08-24T03:02:14
2023-08-24T03:02:14
212,211,729
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
1170. Compare Strings by Frequency of the Smallest Character.py
""" 1170. Compare Strings by Frequency of the Smallest Character Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce" then f(s) = 2 because the smallest character is "c" and its frequency is 2. Now, given string arrays queri...
071415871f5ee2ad8da186bdeb1478934535d762
9ea5ff41ddb115db5d0bf666cf1c3176d277ee84
/CompSci 110z Project/Lunar_Lander.py
2c963ff50a677c2a3ceed802df069a6348b990b0
[]
no_license
V1s7a/CS110z
8adf643e65c90d10dc9a1f26cccbf520b772757f
e9cba76f986611c37ab86536e3e2d200b0095b72
refs/heads/main
2023-03-29T02:09:13.004241
2021-04-05T19:15:02
2021-04-05T19:15:02
351,102,622
0
0
null
null
null
null
UTF-8
Python
false
false
6,887
py
Lunar_Lander.py
""" gc5_template.py - CS110Z Project Team Members: Grace Fleming, Colton Willits Section: M6A Requirements NOT Fully Functional (this GC only): Rqmt 1: Rqmt 2: ... Rqmt N: Extra Credit Features: Feature 1: Feature 2: ... Featu...
fdeedc43358d60a8c80512fe18502a907263d329
451331db65a364d3b40eb18a1349e4349695dc87
/test/test.py
de0ac77c8799704c186e243358b54595727cedbb
[]
no_license
hbakhshi/HaNaMiniAnalyzer
97bc5cdd72cd9651979184b4a1e50f6513100210
1d658c410318271b0c4981a5fba965924a15edff
refs/heads/master
2020-12-25T11:00:13.569640
2017-10-23T17:24:22
2017-10-23T17:24:22
60,080,249
0
1
null
2016-10-26T10:40:23
2016-05-31T10:28:27
Python
UTF-8
Python
false
false
2,606
py
test.py
from ROOT import TFile, kBlue , kRed , kGreen, TCanvas ########################## from tHqAnalyzer.HaNaMiniAnalyzer.Property import * gROOT.SetBatch(True) allProps = { "DiG2J1T":{"maxGmva":None , "GGmva":None , "minGmva":None}, "Lepton2J1T":{"maxGmva":None , "GGmva":None , "minGmva":None} } ...
5de4fa90ed0ce3e1379a0f21394c9a72ce654c5a
7db6c1865cf9102808824ff06cda747b6e572a21
/Python/Lib/ApiTest-bad/__init__.py
57913162b7ee6f9bd10cd48293ca7b4baaa9fd22
[]
no_license
hyteer/testing
1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9
1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113
refs/heads/master
2020-05-21T16:19:08.243676
2017-01-03T01:25:17
2017-01-03T01:25:17
60,914,071
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
__init__.py
# encoding: utf-8 from maisha import * from utils import Utils from version import VERSION _version_ = VERSION class ApiTest( MaishaCommon, MaishaUser, Utils ): """ *ApiTest-bad Library* writen by YT """ ROBOT_LIBRARY_SCOPE = 'GLOBAL'
1ba84844b1ecdeb491f6d650aa1eee76e23b8d74
e39ba7440241dd0fa9fdf3c3a40ff7144b5de86a
/QChem_Driver.py
87514640449c50d2548a31842e88c519eb82b947
[]
no_license
david-b3ggs/Q-ChemPipeline
295ae77ddd4ca4fd802b5141b8f6a98e0eb5238d
56b7aeeac04796201fdbbca99c72a1a556559e19
refs/heads/master
2022-12-01T04:43:15.347958
2020-08-11T16:57:31
2020-08-11T16:57:31
274,749,568
0
1
null
null
null
null
UTF-8
Python
false
false
5,342
py
QChem_Driver.py
from pyqchem.structure import Structure from pyqchem.qchem_core import get_output_from_qchem, create_qchem_input, redefine_calculation_data_filename from pyqchem.parsers.parser_optimization import basic_optimization from pyqchem.parsers.parser_frequencies import basic_frequencies import os, sys from JobClass import Job...
12f4339a8a097e9fdfbf6527ae7d00eb58532b63
91b2e6f8958116f63b59f8eef36792e4980f3b64
/hydromet/migrations/0002_auto_20160930_1429.py
bf18762db09769bf83fbf40a15f3ef75cf1759d2
[]
no_license
GFDRR/togo-hydromet
1c9843c92413c83cd87c8185d5206bd826e2ae49
23ffc71062af77140a10082ea17d8a15ff29cba7
refs/heads/master
2020-12-05T07:41:06.582212
2016-10-02T01:18:24
2016-10-02T01:18:24
66,287,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,682
py
0002_auto_20160930_1429.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('hydromet', '0001_initial'), ] operations = [ migrations.CreateModel( name='CategorieTypeObservation', ...
948f0776a174995157bc992f785b7e951d0eaf94
24b4c6dce31e46634bba6f5a1eb767e64aafe544
/ImageConverter.py
fd3c3c2bdd22d70aaa2af138a623f35a220b4307
[]
no_license
marcelgaedke/ImageConverter
34974f8fffd2c225c95d2fd997bcfd58b335d0fc
86b0286c03a885b94ec0378b786515dc453c1830
refs/heads/master
2021-05-21T03:07:55.833420
2020-04-03T18:20:17
2020-04-03T18:20:17
252,514,466
0
0
null
null
null
null
UTF-8
Python
false
false
2,419
py
ImageConverter.py
#Image Converter #Converts *.cr2 Image Files to *.jpg import argparse import numpy as np import os import re from PIL import Image from rawkit.raw import Raw def getfiles_with_subdirectories(dir): '''Returns list of CR2 files in dir including subdirectories''' files = [] directories = [] for root,...
f4adf6f06f16d4051c3b2279b3939b480a59c08c
f6263256e84f0169301b7604b98473a837e9c6c2
/lesson-3-project/part-1/reducer.py
29cd91c17572de7818ffc06bb1ec405e8eb5b20e
[]
no_license
Mallik-G/hadoop-mapreduce
133980c4bf8c737109caae5c5ad8d6d6005d309d
8b94575c82d5ae47bdddb3f76cc79eec780c5372
refs/heads/master
2021-01-01T20:02:52.394676
2017-02-15T20:15:31
2017-02-15T20:15:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
reducer.py
#!/usr/bin/python import sys numSales = 0 totalSales = 0.0 oldKey = None # Loop around data for line in sys.stdin: data_mapped = line.strip().split("\t") if len(data_mapped) != 2: # Something has gone wrong. Skip this line. continue thisKey, thisSale = data_mapped numSales += 1 totalSales += f...
589c2808345a0486c450cdd5856dc511545e6d32
7a2782ace9c2f4d7c87c1c40049873db491a0600
/FFX_Djose.py
d0dad0fba70fbb6c7aa3e45fcedb6388f20838a3
[]
no_license
Inverted/FFX_TAS_Python
44793f0cbd412adf3b0c033d739622a36ca3596e
d31280206eed045dc33dc0cc674dc8f44678466b
refs/heads/main
2023-08-08T04:44:35.759031
2021-09-19T16:12:05
2021-09-19T16:12:05
408,278,174
0
0
null
2021-09-20T01:29:11
2021-09-20T01:29:10
null
UTF-8
Python
false
false
24,211
py
FFX_Djose.py
import time import FFX_Xbox import FFX_Screen import FFX_Battle import FFX_menu import FFX_Logs import FFX_memory FFXC = FFX_Xbox.FFXC def path(): FFX_memory.clickToControl() FFX_memory.closeMenu() time.sleep(1) FFX_Screen.mrrFormat() FFX_memory.closeMenu() countBattles ...
8731cd5c8ea249c239f9aa5b26371375b58352e2
65c55292fd3237d6fba247068c5d51c11ef2bcdb
/leet code/Hash Table/819. Most Common Word.py
5a89030b60d4786437bf89eb4368da342c1b5354
[]
no_license
omertasgithub/data-structures-and-algorithms
b9275347b3f8e931f064302a29dd3c52aa420a10
50365187d2913a0fcffebc889b47f12614a86a47
refs/heads/main
2023-07-14T21:40:28.246982
2021-08-28T15:27:26
2021-08-28T15:27:26
350,371,430
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
819. Most Common Word.py
#819. Most Common Word #related topics #hash table #first solution def mostCommonWord(paragraph, banned): pattern = '[^A-Za-z0-9]+' paragraph = re.sub(pattern, ' ', paragraph.lower()).split(' ') dic = {} for i in paragraph: if i not in dic: dic[i]=1 else: ...
f6e243160851e5601f6ad90411487693e16fe8fa
ef713ecc435113c9c31f5e54c040839477bff6a1
/snakes_and_ladders.py
0c705d7329c0db2f256a06530056707ae7ae853e
[ "MIT" ]
permissive
BrettWinter/a01
0a64f9f4b378dd6a74a81af46143a0a78afb00b2
a42bc59c9cb1b90398575d8f00dff36e124b9716
refs/heads/master
2021-01-12T16:43:27.185311
2016-10-20T08:58:51
2016-10-20T08:58:51
71,439,454
0
1
null
2016-10-20T08:05:56
2016-10-20T08:05:55
null
UTF-8
Python
false
false
622
py
snakes_and_ladders.py
""" Problem: Whilst playing a game of snakes and ladders, Sam lands on square 11. On square 14, there is a ladder to square 29. On square 17, there is a snake to square 4. The function 'move' takes an input, representing the next dice roll, and should output the square that Sam ends up at next. T...
e5ff196c7321747f9c97df64cbc3480aacd08d49
4be7062ea8b29744d28a71743e63125f9a268e0c
/interface/urls.py
3a3ac350b89d7bdb5216de432f0cd06c4c981c26
[]
no_license
DtestBug/Dev11V1
ab3b6ff62c0d6cd329fed2c4e09330a4675df1a2
cd8fb9385b977851908b39bbdc389fd2493074a3
refs/heads/master
2022-12-10T23:05:11.780737
2020-08-31T15:35:54
2020-08-31T15:35:54
283,636,487
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
urls.py
from django.contrib import admin from django.urls import path from interface.views import Interface,Interfaces urlpatterns = [ path('interface/<int:pk>', Interface.as_view()), # GET接口-查询指定数据 path('interface/', Interface.as_view()), path('interfaces/', Interfaces.as_view()), # get查询所有数据 ]
9d410afc1390deedca58ef13e58af3e0cb4a7ccb
dae8ac90707bb8aab6a5e7a63cf8938d8b4f3e94
/fastapi.py
5d8a4cf652aac86239b4ecce9c68bfbb971bcf61
[]
no_license
Devmalya19/Major-Project
ecae785707254efa51b2ea474798c91c44117da4
95968e27a88fd2692a0104312663c85c1c79ce18
refs/heads/main
2023-04-11T23:00:57.944155
2021-05-05T10:36:52
2021-05-05T10:36:52
364,530,666
1
0
null
null
null
null
UTF-8
Python
false
false
686
py
fastapi.py
import requests base_url = "https://sentiment-analysis-web-app.herokuapp.com/fast-api/{}" pos = 0 neg = 0 # change the filename to the name of your file # this is just one simple application of sentiment analysis fast-api you could make better use of it # like for plotting curves or analysing brand value, ...
bb895edac50f88aec7619200baff81554a23195f
132d24dea6a93251e1116c1c771d9c7ebb80733c
/py_hcl/firrtl_ir/utils.py
0abe1f5aa537217a947e3062689f00ca21423600
[ "MIT" ]
permissive
LemniscateX/py-hcl
78fcca7321f1b1a17251fb4f63cba03599b7a66b
352fa8408ad51da2a94cb64270c863b46ef7596b
refs/heads/master
2020-09-08T01:12:13.751396
2019-11-15T10:03:44
2019-11-15T10:03:44
220,967,662
1
0
MIT
2019-11-11T11:36:09
2019-11-11T11:36:09
null
UTF-8
Python
false
false
112
py
utils.py
def serialize_num(num): return serialize_str(str(num)) def serialize_str(s): return bytes(s, 'utf-8')
ce24500a10e457baff3d368a820303cb68a7a2ee
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/src/main/python/september-2018/extract-table.py
cf3a3fa1da56926578863fc2d878a5aa989b19ed
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Python
false
false
8,360
py
extract-table.py
import sys import toolbox import os import diff_size def build_table(projects): print_header() gray = False for project in projects: project_json = toolbox.get_json_file(toolbox.get_absolute_path(toolbox.prefix_current_dataset + project)) nb_commit = project_json["numberCommits"] # DATA 1...
e0e0fddf7b2cef9008ae02e7c2c0c0fe8b93cf22
a2f7a898926e22e14da4e40817104a86d2d75951
/App/apis/user_apis/user_order.py
bd8515467f62f37d759aadf5a58e0c2606361617
[]
no_license
maxy1106/flask-every1
27b26e3533f6247de44349f5e766a74d5ce1f861
428d0e4ac0cda0aa560fcd0fb67b20f55982a74e
refs/heads/master
2022-06-02T15:31:28.063771
2020-04-24T14:35:47
2020-04-24T14:35:47
257,275,266
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
user_order.py
from flask_restful import Resource, reqparse from App.ext import cache from App.apis.user_apis.user_utils import get_user, check_token parse =reqparse.RequestParser() parse.add_argument("token",required=True,help="请输入有效验证") class MovieUserOrderResource(Resource): def post(self): args = parse.parse_args...
1bcbde18a8fbc15405d9b8ac74c7196321a24fee
8362aa06a674121fee98e4ecd4e23f12e043666e
/map_switzerland.py
9ca9b33fa79e1587938567afdfa0a67a96786f81
[]
no_license
saegsali/hackzurich
2b8d5c4dfd9e266bf6727abe6dca74bbf9672ce1
3b778580e304d4fa82f764cfbce6a6f0c755cc11
refs/heads/master
2022-12-27T13:05:09.961565
2020-09-20T06:58:07
2020-09-20T06:58:07
296,731,422
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
map_switzerland.py
from datawrapper import Datawrapper import pandas as pd DW_TOKEN = "lozDiZ3apmLWCHpPT75YdA5rug7Q9XJxAO3KzV65QH4ELPDjStkMgsx3viR6dH8z" dw = Datawrapper(access_token = DW_TOKEN) DATA_PATH = "data/smd_data.csv" def update_properties_swiss(ID): dw.update_description( chart_id = ID, source_name = 'SMD...
04ccf8b18fcc271b8b6f3cdb8700d558468039a5
79d37fb6f77e1aec22ad892733c381b44ebce32d
/bot/eventloop.py
d6ca78e18fec70fd1c100f28b36625e9dda97b0d
[ "MIT" ]
permissive
0xE232FE/cruiser
e19b37a251b77b9895b74ff565cf250dc0dc3f0f
c2357e667882c4a3b867eee65d345e6a0aae9ba0
refs/heads/master
2023-07-02T09:09:10.164783
2020-07-07T09:15:52
2020-07-07T09:15:52
288,974,453
0
0
MIT
2021-07-17T07:19:39
2020-08-20T10:20:02
null
UTF-8
Python
false
false
3,400
py
eventloop.py
import asyncio import dataclasses import heapq import logging import threading import time import typing import uuid @dataclasses.dataclass class Event: id: str time: float priority: int data: typing.Any period: callable = None def __eq__(s, o): return (s.time, s.priority) == (o.time, o.priori...
347ea6d367790cd3d5eb94c2759b9e4e3942031c
0aa490e2537a1c696ba53d14b1b5c6df09ac0c39
/2. gloves_choose.py
5ab23f6ddcaf9f086b0cdf4f7f1bae59a8f290eb
[]
no_license
iAcheson/Algorithm_puzzles
c7ab3f46519efdf9c608027d9e5925c7fdf265eb
216dcc3ca32d1f43a2a17401f7959647193709fb
refs/heads/master
2022-11-12T20:39:45.818984
2020-07-05T11:18:11
2020-07-05T11:18:11
277,280,044
0
0
null
null
null
null
UTF-8
Python
false
false
3,633
py
2. gloves_choose.py
# !/usr/bin/env python3 # -*- coding: UTF-8 -*- # Author: Yunsheng Liu <yunsheng_liu@qq.com> # Date: 2020/7/5 # Modified: Yunsheng Liu """ Task:【手套选择】 -------------- 在抽屉里有20只手套。其中,5双黑手套,3双棕色手套和2双灰手套。 你只能在黑暗中挑手套,并且只有将手套挑出之后才能检査其颜色。 最少要挑几次オ能满足以下条件? (a)至少挑出一双颜色匹配的手套。 (b)所有颜色的手套都至少挑出一双匹配的。 ...
b6beec16101f4ac3fddbf1ed4555d2d47005fe1a
43e900f11e2b230cdc0b2e48007d40294fefd87a
/ReferenceSolution/684.redundant-connection.140204263.ac.py
6c27e2fd7651e754ec8d3408e30b98cdeb9b4850
[]
no_license
DarkAlexWang/leetcode
02f2ed993688c34d3ce8f95d81b3e36a53ca002f
89142297559af20cf990a8e40975811b4be36955
refs/heads/master
2023-01-07T13:01:19.598427
2022-12-28T19:00:19
2022-12-28T19:00:19
232,729,581
3
1
null
null
null
null
UTF-8
Python
false
false
2,514
py
684.redundant-connection.140204263.ac.py
# # [684] Redundant Connection # # https://leetcode.com/problems/redundant-connection/description/ # # algorithms # Medium (42.90%) # Total Accepted: 10.3K # Total Submissions: 24.1K # Testcase Example: '[[1,2],[1,3],[2,3]]' # # # In this problem, a tree is an undirected graph that is connected and has no # cycles...
ba23b0e0ee72eb1b04d60b1618d9cfd448a8919d
57dbcfe5fe149b5353d42d687ebacfee36f16551
/blast/blast_sync.py
f3fd063c58d10bb788efbad6fe54f9e5bc4d386d
[ "MIT" ]
permissive
peterjc/picobio
74d3f570a6344dc3fbd3ddca46d65c4292ce0ee7
63a5f8b5670afc3680bdeac0d9663d8fcbe904c1
refs/heads/master
2023-09-06T04:26:31.955632
2023-08-31T14:12:25
2023-08-31T14:12:25
2,184,466
34
14
null
null
null
null
UTF-8
Python
false
false
5,530
py
blast_sync.py
#!/usr/bin/env python """Sync BLAST database(s) Arguments: (*) Master path, e.g. /data/blastdb (*) Local path, e.g. /tmp/galaxy-blastdb (*) Database name(s), e.g. ncbi/nr Return codes: 0 - Worked, database(s) are now up to date 1 - Failed 2 - Locked, aborted Because we use rsync internally, we cannot easily separa...
737c5f318bece30b2c9f5360fe9dfd83b72dbcc1
b0017f35e0c1cbfea6aabf34387de852f8da9cb7
/forms.py
55f338c0ac6da9e3d9892f08ec331c0141d5927b
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
EpocDotFr/crowdmixer
7d1d904debc7837c06e6e3a4355dbc5084d12e78
91eb9a283191d4288ff766addc9a03e2bf26673e
refs/heads/master
2020-12-25T17:28:26.076919
2020-01-29T21:41:29
2020-01-29T21:41:29
82,900,196
6
0
null
null
null
null
UTF-8
Python
false
false
509
py
forms.py
from wtforms import StringField, SelectField from flask_wtf import FlaskForm from flask_babel import lazy_gettext as __ import wtforms.validators as validators __all__ = [ 'SearchForm' ] class SearchForm(FlaskForm): where = [ ('a', __('All')), ('t', __('Title')), ('ar', __('Artist')),...
b63897273b284c23ef88c5c8c7cdefcaef7c019b
254f590e739ecf96776fd80b653739cb094d4eac
/app/config.py
ae76a94bc2239f770d1ab9c545d0c29bdce44686
[]
no_license
cowboygneox/gandalf
6357cb4289e3f15146b3770e2ed86d24a4b88cc4
4f648be833c7ee4bfee1f9eb92f10876a0133534
refs/heads/master
2020-12-25T14:14:38.325526
2016-11-10T19:05:32
2016-11-10T19:06:10
67,039,905
1
1
null
2016-11-10T18:21:18
2016-08-31T13:28:46
Python
UTF-8
Python
false
false
332
py
config.py
HTTP = 1 WEBSOCKET = 2 class GandalfConfiguration: def __init__(self, proxy_host, db_adapter, allowed_hosts, signing_secret='', mode=HTTP): self.proxy_host = proxy_host self.db_adapter = db_adapter self.allowed_hosts = allowed_hosts self.signing_secret = signing_secret self....