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
8dc08795eec009ff12ea69e593fd48cff216008f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04012/s917414382.py
42ce59ef191369e7f9e5e9ba06022d48e04548c6
[]
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
188
py
s917414382.py
s = input() l = [] for i in range(len(s)): l.append(s.count(s[i])) r = [] for x in l: if(x%2!=0): r.append(False) else: r.append(True) if(all(r)): print("Yes") else: print("No")
fae396e62ba3dc25e2578c2b0e63c7c29bd8e003
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/custom/abt/reports/late_pmt.py
3fc9c968c4b6b9c55cd4c4217ad7f956f73edd66
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
7,544
py
late_pmt.py
from django.db.models.aggregates import Count from django.utils.functional import cached_property from django.utils.translation import gettext as _ from dateutil.rrule import DAILY, FR, MO, SA, TH, TU, WE, rrule from sqlagg.columns import SimpleColumn from sqlagg.filters import EQ from sqlagg.sorting import OrderBy f...
ec15e936608a8672e73960d4011b2682150620b8
8a3d236f69efb81fdf2de0b74bf4cd91a1075e39
/recursion.py
3f1834a1d93c788cc45c41d8074b8ba331296eae
[]
no_license
Cheng-F/Data-Structure-Algo
a844e1aac6ebe1f2fe0b2758ddffa9bf3c9bbae2
77af9eba254ecafd129c606bfd323e4201984049
refs/heads/master
2020-04-08T20:54:15.589092
2020-03-11T02:42:26
2020-03-11T02:42:26
159,719,759
0
0
null
null
null
null
UTF-8
Python
false
false
1,478
py
recursion.py
def fib(n): if n == 0: return 0 elif n == 1: return 1 else: return fib(n-1) +fib(n-2) def fab(l): numbers = [] [numbers.append(fib(i)) for i in range(l+1)] return numbers def fib2(n): a,b = 0,1 while True: yiel...
8ee2b1c9a2359bbafc08a541bb0f2899b15d5f65
39999ede698bc17374bea750f3b539efc2e49f2a
/src/data/eval_data/extract_from_mc30_rg65.py
4795b443cfeb407764f13b24525625d2df05307c
[]
no_license
Hins/prob_skip_gram
f0a01b9c46dc9efd31d3cff229c3d3c2f8fd27de
1de064543de7874f420b7d3771e4b097c47f1e50
refs/heads/master
2020-03-27T21:54:37.680301
2018-12-18T03:13:42
2018-12-18T03:13:42
147,185,880
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
extract_from_mc30_rg65.py
# -*- coding: utf-8 -*- # @Time : 2018/11/26 19:11 # @Author : panxiaotong # @Description : extract samples from MC-30 or RG-65 datasets import sys if __name__ == "__main__": if len(sys.argv) < 3: print("extract_from_mc30_rg65 <input file> <output file>") sys.exit() output_file = ...
c791de2a2b3a2bbc824337a0b42fbe20eefaf53f
fc7defba3ad7ffb6b4ad36a0f0ac563b475803da
/python/depthcharge/hunter/__init__.py
9ff001c30a799b9a82d2451732a819d9d2be396a
[ "BSD-3-Clause" ]
permissive
gavz/depthcharge
a748c5ba11329eb2bf149bb6df0bcd248120e0f3
9b66d1c2a80b9398ac561c83173ebd748aef018d
refs/heads/main
2023-06-28T21:55:39.302047
2021-08-02T02:58:06
2021-08-02T03:49:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
__init__.py
# SPDX-License-Identifier: BSD-3-Clause # # flake8: noqa=F401 """ This module provides the :py:class:`~depthcharge.hunter.Hunter` base class and its associated implementations. In Depthcharge parlance, a *"Hunter"* is class that searches data for items of interest and either provides information about located instanc...
ede24071720e01254338175632ec491351a10cc6
107b9c89cbb29611210e400023b8b564ccda41e8
/Python03/Python03-Day02/mymod5.py
ed096b4d69cb73afab2c83c72eb9785237a1eef3
[]
no_license
SaeranRao/StudyPythonInTmooc
d623a8fb710ad60e87a9cb26a914554d66e3cdf9
2bcbafbc79b439b98c9a68b0989942ada3650133
refs/heads/master
2020-04-15T15:04:17.610126
2019-12-16T06:58:04
2019-12-16T06:58:04
164,778,506
1
0
null
2019-01-25T07:01:52
2019-01-09T03:16:30
Python
UTF-8
Python
false
false
203
py
mymod5.py
def f1(): print("f1被调用") if __name__ == '__main__': print("mymod5.py是作为主模块") f1() else: print("mymod5.py正被其它模块调用") print("模块名为:",__name__)
10fb255cf89012a87b6bb3638c91f8a9a3f002c1
71097d2619f386c61635c69e8f887d2c12d96125
/Files that were useful/PruebaAnimacion2.py
89d80f0074400abc34f58e82a106e08d1a90bad2
[]
no_license
ElGutiz/NASA-Mapping-Real-Time
13874688fb624dde5981c26685770d696a19e3e6
789247fbd64cff404c2b532f7e77bb15b815cb94
refs/heads/main
2023-08-17T01:03:30.500614
2021-10-04T06:29:07
2021-10-04T06:29:07
410,131,293
1
1
null
null
null
null
UTF-8
Python
false
false
1,315
py
PruebaAnimacion2.py
import numpy as np from PyAstronomy import pyasl import matplotlib.pyplot as plt import matplotlib.animation as animation import mpl_toolkits.mplot3d.axes3d as p3 satellites_values = [[1.0, 2.0, 0.50, 0.0, 30.0, 0.0], [1.0, 1.0, 0.20, 0.0, 90.0, 0.0], [10.0, 2.0, 0.39, 0.0, 180.0, 0.0]] satellites_pos = [] red_dots_po...
522885d2254e545cc5b590a15cc2474c9b535a14
820c0faf29ce639023e0b5b3220ab42d93a8495b
/Products/ZenModel/migrate/reindexZenPackPerstence.py
8637ebeedf0f146ca226329c4fbbcfb5f180d3c6
[]
no_license
zenoss/zenoss-prodbin
7c736ec6c8e09a334a3f759b0e53c10ffc9c6a2a
1ea508c3d2b51742bc3b448c445cd0a3dba9e798
refs/heads/develop
2023-09-01T04:12:14.836439
2023-08-30T13:29:55
2023-08-30T13:29:55
10,389,144
27
29
null
2023-09-04T07:32:01
2013-05-30T18:36:05
Python
UTF-8
Python
false
false
830
py
reindexZenPackPerstence.py
############################################################################## # # Copyright (C) Zenoss, Inc. 2007, all rights reserved. # # This content is made available according to terms specified in # License.zenoss under the directory where your Zenoss product is installed. # ##################################...
d448d07b8b17c111964899efd780bbef025642a6
10528598495605326c6a18989f3c4a9ecc6e57fe
/Property_CrossSection.py
6efdeaf71bc77f15facfecb38241b91e3587ee25
[]
no_license
jiejie168/lateralBuckling2019
9584c6f3bd612332def8d16dc5aeda95189df2f6
265bfb4c17ced25078f7484588091cf1066f74fb
refs/heads/master
2021-04-21T08:41:49.289652
2020-03-25T17:44:57
2020-03-25T17:44:57
249,766,393
2
0
null
null
null
null
UTF-8
Python
false
false
1,997
py
Property_CrossSection.py
__author__ = 'Jie' import numpy as np import matplotlib.pyplot as plt import math import os, sys import numpy.linalg as lg class CSproperty: ''' this class is used to calculate all the cross-section properties of structures, including pipe cross-section, circular, rectangular, etc. ''' def __ini...
914d9d56c8edfb16d9490a3d23b6895cd8f7fc51
5b586c42fc93f4a5a631c49c0b771ee4c77ffd48
/TornadoIO_Websockets/ws-server-app.py
d74f216e345cab938c83921e435b65644841a20e
[]
no_license
Radoslaw-K/rados
ee88e7fdd726ed737b143c7c629b7fbb09c4056b
47f1e9e94e6961e0b61d43a08347d3dbc6dcfc51
refs/heads/master
2021-06-14T08:16:18.655458
2016-11-15T19:29:36
2016-11-15T19:29:36
62,714,289
0
0
null
null
null
null
UTF-8
Python
false
false
5,055
py
ws-server-app.py
#! /usr/bin/python PLATFORM = "rpi" import sys import os.path import tornado.httpserver import tornado.websocket import tornado.ioloop import tornado.web import subprocess import time import json if PLATFORM == "rpi": import RPi.GPIO as GPIO from picamera import PiCamera from signboard_Rversion import...
810efc8c24c62c2d63160d8520c9c637b2c1c7fe
99b38d7400351b450f48a94a318b08195e2d255e
/GetYouFit/getyoufit/login.py
24b87fd34ddd9ace1e31e7905cec2a979792bad0
[]
no_license
MWix123/GetYouFit
a040f2132b919654a64afa2d43a46c29d105c9d7
b49f9e33f9f7098f941529e74480f04e5b3ef5d4
refs/heads/master
2020-09-11T04:44:27.724773
2019-12-07T02:48:13
2019-12-07T02:48:13
221,942,684
0
0
null
null
null
null
UTF-8
Python
false
false
1,988
py
login.py
import psycopg2 dbName = "dcjdhd0n3ngqo0" dbHost = "ec2-54-225-173-42.compute-1.amazonaws.com" dbUser = "asfmhdygmsibfb" dbPassword = "d57768a0ac5b6f7313d2173a9b8179443465c3515448f2b6b11d806a7a11047b" def loginUser(info): print("Login Function") info = info.split(";") username = info[0] password = info[1] retu...
a3948d001b5098549b402eb078778b43b139de11
ccabf93f27ba8283e0db08512bbe9593efbaa015
/web/domains/template/models.py
547bc4fed8ec9dcd6ca6c22ea65db221687a2fdb
[]
no_license
uktrade/icms
562b5956af863da1de581593157e72d989241aae
525361b4856004cf34397d6c86fe5d6b6ebd3a89
refs/heads/main
2023-09-01T15:39:43.246325
2023-09-01T10:13:06
2023-09-01T12:30:39
178,028,237
7
6
null
2023-09-14T13:11:23
2019-03-27T15:56:34
Python
UTF-8
Python
false
false
5,580
py
models.py
import re from typing import Any from django.db import models from web.models.mixins import Archivable TEMPLATE_CONTENT_REGEX = r"\[\[{}\]\]" class Template(Archivable, models.Model): # Template types ENDORSEMENT = "ENDORSEMENT" LETTER_TEMPLATE = "LETTER_TEMPLATE" EMAIL_TEMPLATE = "EMAIL_TEMPLATE" ...
776a4a8ed3dd458ae66b1ec8a792ab4dc2683c50
71063d96a5eb84480d3ce4bb7e77d87d0e0ec172
/Изучаем python программирование игр, визализация данных, веб-приложений/Списки/names_friend.py
55250c94c26bfaca6334433ceb7f0dc02147f5df
[]
no_license
KonstantinGanzew/All_project
b1726ff8d74ac681529ff67240ff827942df4aa0
907e8084ed0bcfc13ad2f3720ed2fe8afca210a1
refs/heads/master
2020-04-02T10:22:50.699863
2018-10-23T14:00:56
2018-10-23T14:00:56
154,336,911
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
names_friend.py
names = ['Куро', 'Skyrim_dota_lol', 'Черная Борода', 'Грегорд', 'Иваныч', 'Джиронимо'] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4]) print(names[5]) message = 'Привет %s' print(message % names[0]) print(message % names[1]) print(message % names[2]) print(message % na...
0c99ac2d47a16c69c9964d7923f3d50fd452702b
1ba3d1fa14ee12ff06d8f6169142489d2ade7d2e
/src/ml_models/linear_models_sklearn.py
e9303926284ab4f3edbc907ea546284427880d2c
[]
no_license
ankishb/ml-toolbox
b941d959f9b8b75231ec632bc2f19184b022b500
b572a510efe0e8c782561cc0968d9b68c08885a2
refs/heads/master
2021-07-17T07:12:07.503592
2020-04-13T12:45:26
2020-04-13T12:45:26
182,935,407
7
0
null
null
null
null
UTF-8
Python
false
false
23,143
py
linear_models_sklearn.py
from sklearn.linear_model import ElasticNet, Lasso, BayesianRidge, LassoLarsIC from sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressor from sklearn.kernel_ridge import KernelRidge # from sklearn.pipeline import make_pipeline from sklearn.preprocessing import RobustScaler from sklearn.base im...
6bfc1008dda7838f6807d2c315cea2c86da55b59
640d6e9b0abc2439f2e0ade9e609882a04b5828c
/rpa/界面自动化/浏览器.py
d97f181602bfffdb5730ee14b29d0fb61a8d4659
[ "Apache-2.0" ]
permissive
zhangxin-nb/practice
56dc3a1b351700704eebc435af2ae1e3549d9ffb
58adee9bc104abe6c55d2d509e23eda8ab09cd10
refs/heads/main
2023-05-20T04:20:52.582466
2021-06-13T09:27:35
2021-06-13T09:27:35
329,864,515
0
0
null
null
null
null
UTF-8
Python
false
false
5,512
py
浏览器.py
import time import uuid from selenium import webdriver from rpa.日志模块.log import output_log class Browser: def __init__(self): self.browser_object = dict() self.logger = output_log() def open_browser(self, url): """ 打开chrome浏览器 :param url: 网址 :return: uuid ...
ce7d13f8320fd1063a2e02e14d3489f966a08cce
bafbfd5a5c5600bc3ef1a7bc13a5e8efe96699fe
/myproject/picpart/forms.py
6b7fb713e97d332b38d8762c9c57ec6b2b4f4243
[]
no_license
dmpinform/homework_github_action
4e99436991442bcafa3aa61e63c7609b64dfc587
2a880f3a61ed07d89f415ff6ca784310de1cfded
refs/heads/main
2023-07-08T02:49:37.442842
2021-08-21T18:38:53
2021-08-21T18:38:53
395,999,060
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
forms.py
from django import forms from .models import Pictures, PictureUpgrade class PictureForm(forms.ModelForm): name = forms.CharField(help_text='Название картинки', widget=forms.TextInput(attrs={'class': 'form-control'}), label='', ) ...
482cca2d678738a68bb9dde03f70b96891ed413f
7995472384b6cb113d106d70b454235e253af391
/tieba/tieba/spiders/tb.py
b31ba4b69747bf8183eaf5b02c940d1667caa1bb
[]
no_license
Corey2015/Python
0b08869b537ce2b5ccd1bd73f57d58900d18d917
8c1218f6302e11d232f07a581848c64bcba803d8
refs/heads/master
2022-08-14T16:13:26.689342
2019-07-18T08:36:56
2019-07-18T08:36:56
171,994,313
0
0
null
null
null
null
UTF-8
Python
false
false
1,452
py
tb.py
# -*- coding: utf-8 -*- import scrapy class TbSpider(scrapy.Spider): name = 'tb' allowed_domains = ['baidu.com'] start_urls = ['https://tieba.baidu.com/f?kw=%E6%99%92%E5%9B%BE&ie=utf-8'] def parse(self, response): url_list = response.xpath(".//a[@class='j_th_tit ']/@href").extract() ...
1092fae895a9d987c5137b96bb004dd194e9eecf
81579ecd0678d652bbb57ff97529631fcfb74b12
/corehq/pillows/mappings/reportcase_mapping.py
803e5b2b7c71e6a215d370eb9f17047751a32149
[ "BSD-3-Clause" ]
permissive
dungeonmaster51/commcare-hq
64fece73671b03c1bca48cb9d1a58764d92796ea
1c70ce416564efa496fb4ef6e9130c188aea0f40
refs/heads/master
2022-12-03T21:50:26.035495
2020-08-11T07:34:59
2020-08-11T07:34:59
279,546,551
1
0
BSD-3-Clause
2020-07-31T06:13:03
2020-07-14T09:51:32
Python
UTF-8
Python
false
false
11,219
py
reportcase_mapping.py
from corehq.util.elastic import prefix_for_tests from pillowtop.es_utils import ElasticsearchIndexInfo, REPORT_CASE_HQ_INDEX_NAME REPORT_CASE_INDEX = prefix_for_tests("report_cases_czei39du507m9mmpqk3y01x72a3ux4p0") REPORT_CASE_MAPPING = {'_meta': {'comment': '2013-11-05 dmyung', 'created': None}, 'date_...
c98140672d9e8fadb236c01aab1419df49976ae3
f366ec6666a496655ea3cdeab2f96b60cc7f8142
/inference.py
0bafb50bb6c5ce09fd85098affae01a2f200569d
[ "MIT" ]
permissive
zombob/k210-face-detection
57deb9f1526470d314d2e0bd5113a72aa26cd2dd
c402b3c3f7d8ba9c9b02df627c98a9a7ddd51b72
refs/heads/master
2020-06-15T18:32:57.410715
2019-02-27T05:15:11
2019-02-27T05:15:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,691
py
inference.py
from models.yolonet import yoloconv import tensorflow as tf from tools.utils import helper import skimage import numpy as np from scipy.special import expit import sys import argparse def main(pb_path, image_size, image_path): g = tf.get_default_graph() fddb = helper('data/train.list', image_size, (7, 10)) ...
666aa9896f8db28be1aca37c2c5cab7778f8d95a
05b80d92bb2efec76f898c527cc803f931031266
/BinarySearchTree.py
6ec643971b43389f6373668467824f390c4d559a
[]
no_license
PriyankaKhire/ProgrammingPracticePython
b5a6af118f3d4ec19de6fcccb7933d84f7522d1a
8dd152413dce2df66957363ff85f0f4cefa836e8
refs/heads/master
2022-08-28T00:44:34.595282
2022-08-12T19:08:32
2022-08-12T19:08:32
91,215,578
18
11
null
null
null
null
UTF-8
Python
false
false
2,708
py
BinarySearchTree.py
#Binary Tree class node(): def __init__(self): self.data = None self.lLink = None self.rLink = None def setData(self, data): self.data = data def getData(self): return self.data def setRLink(self, link): self.rLink = link def getRLink(self): r...
bcfa9e3d0dd87d20528a94315398f4da1d846692
a77b193d0cf7c4fa0e5655f33ade9d374541aed4
/Python/python/L3/p1.py
7d602cc9234f386c788a8229a5c8d042cb7affa1
[]
no_license
pagotarane/program_for_reffer
05297a443954b20a493a44df3a9b8cea9be0a300
de3e48488be7e1a3878c98d36258c3961738fed8
refs/heads/main
2023-06-19T05:31:21.655389
2021-07-17T02:58:17
2021-07-17T02:58:17
386,659,998
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
p1.py
#wapp to count te number of digits,letter and other characters s1=input("enter a string") lc,dc,oc=0,0,0 for s in s1: if s.isalpha(): lc=lc+1 elif s.isdigit(): dc=dc+1 else: oc=oc+1 print("letters ",lc,"digits",dc,"others",oc)
90b561b5aa89913f69e2200d1c72af4164f61a5f
362653243dff96913b24a5efc197590f6f317f43
/django/Website/challenge/migrations/0004_auto_20170504_1821.py
721a33c7a0cbe76c69bd53d3f2a088d80422b5c8
[]
no_license
kilukmt/machine-learning-capstone
d117ee55f80d95db89e5e03b49e849a854bd2e22
0c37f7768e8945356ee630eda8fc7bda91bdfd37
refs/heads/master
2021-01-11T18:41:22.214232
2017-05-08T19:53:49
2017-05-08T19:53:49
79,600,399
0
2
null
null
null
null
UTF-8
Python
false
false
1,205
py
0004_auto_20170504_1821.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-04 22:21 from __future__ import unicode_literals import django.core.files.storage from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('challenge', '0003_helpcomment_num_replies'), ] ope...
36ce0c05be0e4684b2156045d9bfcd684c5f744e
869aa7baefc31a9fed5d664f5e845eab47273cce
/Matrices/48. Rotate Image.py
d85c2e96d840c920247c1e3a60d515d2ff6a0965
[]
no_license
rmpsc/LeetCode
c6bea216deb64f7c469571592c5bb9bd7cf5be55
219517020c13a2fee906b515d5e0543bc6924aed
refs/heads/main
2023-09-01T08:38:27.840830
2023-08-29T06:41:59
2023-08-29T06:41:59
359,067,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
48. Rotate Image.py
# MEDIUM # Time: O(n) Space: O(1) class Solution: def rotate(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """ left, right = 0, len(matrix[0]) - 1 top, bottom = 0, len(matrix) - 1 while left < right and top < ...
9c00c4e71edc878d335bc88dc098d1b6420886a4
27767fec931b598954cc354dd4a4bf604c50eab1
/Training/data_loader.py
91d80fad53c34fa6a4eb2b12d1b49a86170abacc
[ "MIT" ]
permissive
sysu-eda/Distributed-CNN-Inference
092701b73c9e3602be768b02736df8bb13c61a22
a717274a8f0a1426949676dd5741d649b4ab81e7
refs/heads/main
2023-03-13T07:38:16.757646
2021-02-26T04:11:01
2021-02-26T04:11:01
314,996,278
6
1
null
null
null
null
UTF-8
Python
false
false
1,347
py
data_loader.py
import os import torch import torchvision.transforms as transforms import torchvision.datasets as datasets def data_loader(root, batch_size=256, workers=1, pin_memory=True): traindir = os.path.join(root, 'train')#ILSVRC2012_img_ valdir = os.path.join(root, 'val')#ILSVRC2012_img_ normalize = transforms.No...
345c6d1a0aa97d20e8e1037d5805efd4713a6d8f
0ef4371c87c2196d9c2d2706e51f4b452f6e9d19
/4_Curso/Proyecto_Sistemas_Informáticos/model_exam_2/proyecto/aplicacion/admin.py
f09b9d997dea8ecf0c7f92d6556447a1a1039931
[ "Apache-2.0" ]
permissive
AlejandroSantorum/Apuntes_Mat_IngInf
49c41002314216a994aa60db04062e34abc065eb
c047e41d086f3028ec78ac3a663b9848862e52df
refs/heads/master
2023-05-15T03:02:56.882342
2023-04-20T20:19:54
2023-04-20T20:19:54
212,392,195
29
10
Apache-2.0
2023-09-09T13:03:45
2019-10-02T16:44:22
Jupyter Notebook
UTF-8
Python
false
false
234
py
admin.py
from django.contrib import admin from aplicacion.models import Medico, Paciente, Receta # Register your models here. admin.site.register(Medico) admin.site.register(Paciente) admin.site.register(Receta) # Register your models here.
c6c498b8ab7a59f27f5721da966184bd7b675739
588091e98784a0585223d93a3dba5b1c7d4e0b5d
/src/api/handlers/engine/networks.py
eae76d4285985e80756dbb86602d209dd7559bde
[]
no_license
AlexSaenen/neural-ninja
71aacf93a2659062b1fa518f9c0ada3c252c829d
c899d7657192a9478413758aeb75ce5b3f14c125
refs/heads/master
2021-12-29T03:33:15.312572
2017-02-16T00:38:32
2017-02-16T00:38:32
82,121,478
1
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
networks.py
from api.handlers.actionHandler import ActionHandler, handler from engine.moduleManager import ModuleManager class Upload(ActionHandler): @handler def handle(self): requestFile = self._wrapper.request.files if 'networkFile' not in requestFile: self.callback({ 'error': 'Invalid form...
c4b2ea22fc2971f5f2b6d9c6ef8e6d27ade9001b
6dcc9babe6d69fc31f1e7e491eb3be20f337c02f
/reviews/layout/helpers.py
0bb575bb613c0582607829ef7c8367b3d299a9f3
[ "MIT" ]
permissive
adam-tokarski/reviews
ae6142c01e1d90506b8aac583e145bd2833d8aef
cab48a67ed9df2fe4f3ddaec808675fd2aab5a8c
refs/heads/main
2023-04-11T03:56:30.053424
2021-04-26T21:31:59
2021-04-26T21:31:59
362,164,299
0
0
MIT
2021-04-27T15:36:34
2021-04-27T15:36:33
null
UTF-8
Python
false
false
3,609
py
helpers.py
from datetime import datetime from typing import Dict, List, Tuple import humanize from rich import box from rich.console import RenderGroup from rich.layout import Layout from rich.panel import Panel from rich.progress import BarColumn, Progress, SpinnerColumn, TextColumn from rich.table import Table from rich.tree i...
a4ac932fbfdf5321e6673a5a2ccc348fdf9fdd12
1f7fbc413064a3064f38f6fbdcfea57bd0653055
/copyfiles/demo4.py
2d890ce0202b34b01dd99b17a80922f4cb069885
[]
no_license
prasadnaidu1/python2
bc0d1eb6aaa721fc00373e323aba367a51ef8f8f
cb191a8598a09d8d72dcd7f56f6a3d7b4d8d8a41
refs/heads/master
2020-04-02T10:00:39.849246
2018-10-23T12:48:12
2018-10-23T12:48:12
154,320,510
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
demo4.py
import copy as cp l1=[[10,20,30],[40,50,60],[70,80,90]] l2=cp.deepcopy(l1) l2[1][2]=555 print(l1) print(l2)
d405afba015672b5c3fc2154013166b31e646ca5
1316cd6763e784811c769c1de577235c921af0de
/Apps/BLMPlotter/data_monitors/data_monitoring_base.py
3dc0cb1f67460e50b189183d1e93258ca0e75c77
[]
no_license
VELA-CLARA-software/Software
a6fb6b848584e5893fd6939a447d23134ce636cc
2e2a88ac0b2b03a495c868d2e11e6481e05097c3
refs/heads/master
2023-02-05T07:40:58.260798
2023-01-27T09:39:09
2023-01-27T09:39:09
69,860,536
7
3
null
2021-04-07T14:17:07
2016-10-03T10:20:46
Mathematica
UTF-8
Python
false
false
2,078
py
data_monitoring_base.py
import charge_monitor import blm_monitor import data.blm_plotter_data_base as dat from base.base import base class data_monitoring_base(base): #whomai my_name = 'data_monitoring_base' # we can make some reasonable guesses as to what will be # monitored from gen_mon # every key from gen_mon will be stored here ge...
c6a53a239a6c229095a2cf6d66152dd1cb5ea375
5a6cdd1dcd23c657d5c159d9327c758c770b6c5d
/If_elif_else_Program/if_elif.py
9f291a51d4548a1de298c0f2d7859ea92bd184cc
[]
no_license
anagarjnv889/PythonPractice
91129ab79858b800d97310ae2fe446da92655a1f
3fbda0e9e7c4f1c7b6709223bb6bdbf58132d083
refs/heads/main
2023-04-26T04:07:37.651356
2021-05-24T08:28:19
2021-05-24T08:28:19
360,491,493
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
if_elif.py
n=int(input("Enter the number\n")) if n%2==0: print(n," is divisible by 2.") elif n%3==0: print(n," is divisible by 3.") elif n%4==0: print(n," is divisible by 4.") elif n%5==0: print(n," is divisible by 5.")
bf30df21223978ff48def0790f63897efde75df9
0d11807f0b2a729987238bf6a8aca6eea28226e4
/ch4.py
88ae2cc6c323612e0285f6815831d66432319c85
[]
no_license
jaredparmer/ThinkComplexity
2b6a762dcf7f07054045f9e3ae52718c13f6b433
3a3121fd39318aef264ec44feaa6010559fd6c0a
refs/heads/master
2023-01-12T00:46:49.503927
2020-11-14T11:03:28
2020-11-14T11:03:28
297,306,995
1
0
null
null
null
null
UTF-8
Python
false
false
9,924
py
ch4.py
""" chapter 4 of Downey, Think Complexity """ import random import networkx as nx import numpy as np import matplotlib.pyplot as plt from networkx.algorithms.approximation import average_clustering from empiricaldist import Pmf, Cdf # for exercise 4.3 import gzip from ch2 import all_pairs def _random_subset(repeate...
cfed5a02cd43d34095632b94bae6dd042fc08c4a
8dfe5b8d8282f27a17a1acef0b9228e35cd6a490
/python/first_class.gyp
c7bacb41a5cebb7d4eac81ec4a638e0f61ef6c27
[]
no_license
yfeng75/learntocode
1f1975ceb499e8c0642e704cb31288dd70489bc7
838e99880592d7a1793e86e3351792555ebdda54
refs/heads/master
2021-04-19T03:07:53.799303
2020-06-05T01:58:48
2020-06-05T01:58:48
249,573,954
0
0
null
null
null
null
UTF-8
Python
false
false
135
gyp
first_class.gyp
print('Hello World!') print(1+2) print(6+7) print() print("The End","or is it?","keep watching to learn more about Python",3) print("")
bd854aafbe4a7ad8b98230eef6f36f2b949c889d
3c0a55083a7236554c8b1ec6be88edeb7f9e0d31
/plugin.py
340425cc99cbf7ab3d9ac5d38311246972097359
[ "MIT" ]
permissive
sebakri/LSP-Deno
d41d4af0c7a5c0734cea1751b94853676cb3a68e
dc24ddce365d20a1d66bfa7f8ab9cd8cc789584f
refs/heads/main
2023-05-22T12:05:49.682861
2021-06-09T21:43:18
2021-06-09T21:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,941
py
plugin.py
from LSP.plugin import AbstractPlugin from LSP.plugin import register_plugin from LSP.plugin import Request from LSP.plugin import unregister_plugin from LSP.plugin.core.typing import Callable, Mapping, Any, Dict class Deno(AbstractPlugin): @classmethod def name(cls) -> str: return cls.__name__ ...
a0f7c7c591b62a8bebd198daf44a338368a1046a
8757f357557e61660825cc195cf143a9d9584f76
/webapp.py
80f9a7b1c7937f789cd53d62f2b8da67d0e9408b
[]
no_license
SeduceProject/projet_option_2019
b9027a460d1b11e48b0234b7f974ca40f1256614
e5cdf798ced380af90c4b66c8d1fa5394842814a
refs/heads/master
2020-09-20T08:46:50.633164
2020-02-27T14:26:51
2020-02-27T14:26:51
224,428,079
0
0
null
null
null
null
UTF-8
Python
false
false
2,515
py
webapp.py
from flask import Flask, request, render_template from jinja2 import Template import subprocess import json from pysnmp.hlapi import * app = Flask(__name__) # FRONT @app.route("/") def home(): return render_template("home.html.jinja2", page="home") @app.route("/editor") def editor(): with open("./arduino/...
1cf7fee1b82ba9b6bc3c2f0ae70cef99ca85e122
6c762ce1f686dddc48697d8e235c2ad2d60856a9
/src/Lingyu (Viola) Du_Final Project/app.py
ca43a7b61c58865b5ffc6fb3eca7ffbff4490936
[]
no_license
ViolaDu/WebApp_MBTA_Helper
0ec484217a36af113e83256701bf38f1b3e0ae24
1080800f53f57b0e63a4c3a0e521dd0c7f0f48de
refs/heads/master
2021-09-10T04:01:38.581699
2018-03-20T23:13:57
2018-03-20T23:13:57
126,073,264
0
0
null
2018-03-20T19:43:26
2018-03-20T19:43:25
null
UTF-8
Python
false
false
795
py
app.py
""" Simple "Hello, World" application using Flask """ from flask import Flask, render_template, request from src.mbta_helper import find_stop_near app = Flask(__name__) app.config['DEBUG'] = True app.secret_key = "Some secret string here" @app.route('/') def index(): return render_template('Home.html') @app.rou...
86cc377dc95b64f6c2908a9a4cf1243965f77911
638994572915c2054d09a0822937cb6783b57b07
/backend/project/posts/views.py
9ad0936d0aab0a21fbda408cedbecfb28572e4e2
[ "MIT" ]
permissive
winoutt/winoutt-django
63722796e4c49620567273c0290b64a48987cd32
f48dfd933b3c12286f973701676eb2c2ab2bff73
refs/heads/main
2023-07-12T11:21:52.752987
2021-08-05T09:30:16
2021-08-05T09:30:16
392,975,998
0
0
null
null
null
null
UTF-8
Python
false
false
19,107
py
views.py
# Library Imports from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework.permissions import IsAuthenticated from rest_framework.pagination import PageNumberPagination # Model Imports from .models import Comment, Post # Seri...
77f00ad869e02141478c200aded25b0446ca0a1a
0f2043278815dc4dd8e1e0b7b48adc7def7799a0
/src/python/pants/backend/java/dependency_inference/java_parser_test.py
62d811745cea7d4236b9dd850a169e798756cc61
[ "Apache-2.0" ]
permissive
patricklaw/pants
ac3cdd391f4c11ef427457425ea12480a0d8aeed
906099f5c0d2f9e6adcac23e030270c64ca519ae
refs/heads/main
2021-11-19T02:24:08.328260
2021-09-26T17:20:32
2021-09-26T17:20:32
350,130,454
0
0
Apache-2.0
2021-03-21T22:01:26
2021-03-21T22:01:25
null
UTF-8
Python
false
false
8,479
py
java_parser_test.py
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from textwrap import dedent import pytest from pants.backend.java import util_rules as java_util_rules from pants.backend.java.compile.javac import ru...
231d0a4970d0aee219e0baa4bbaebcd38d9a856a
be07233ec49b1950ac785c4e1d44f90f7cd78547
/tomo.py
b1a23a59e883d30df1b667d4be5302371761978b
[]
no_license
HP5564/tomography-2D
a310a34600cbfe3cfef1514e8da88a69ce93a70d
7ed8ecbedda659e811aa06fc00d2f847d33e1a9d
refs/heads/master
2022-03-20T11:47:51.856134
2019-10-28T06:58:24
2019-10-28T06:58:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,422
py
tomo.py
import numpy import bresenham from mathutils import Point def scan(angle, space, ndetectors, span): w, h = space.shape center = Point(w // 2, h // 2) zero = Point(w // 2, 1) source = zero.rotate(center, angle) step = span / ndetectors detectors = [ angle + numpy.pi - (span / 2....
8a68ae06fb1aa20db6aedf40284d10d000637623
12cf8a46afd3a2a060deb6ed9967650a1ccb59d7
/mysite/likes/urls.py
cf22bb5956be4f51b3eeea0947d726efe709d24a
[]
no_license
insebeae/blog
e4604228c0088253032a86611a6bd33ad290ddb1
b9b76f60d961711c58cdea5f8531cfe8b17a2185
refs/heads/master
2021-02-08T07:00:19.844338
2020-03-01T09:39:34
2020-03-01T09:39:34
244,121,447
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
urls.py
from django.urls import path from .models import LikeCount,LikeRecord from . import views app_name= "likes" urlpatterns = [ path("like_change", views.like_change, name="like_change"), ]
6f1603f2f12759891fdd6d8233b0351bc0e24134
cd1ef30683d2f8ec8bb5a2d02e872cfc5166947e
/user_profile/admin.py
4e0bd76f7846197bcb10979c4b19828555a33e18
[]
no_license
NavaBeginsky/uniquehotels
b8c30dcd6c8e2c49028ef0ca25866a9f1cc36ce9
5686906f07ef368f8a63a1a76110ab81fa673322
refs/heads/master
2022-12-08T18:46:20.689281
2020-09-09T19:48:18
2020-09-09T19:48:18
293,493,765
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
admin.py
from django.contrib import admin from.models import UserProfilePic # Register your models here. admin.site.register(UserProfilePic)
1fd0f0faf9527c2c449f4bdba81dabad6a10fbb1
473c5764307de666aed3b5bf82a880384cfd50db
/接球/ball3.0.py
e463157cd49281247303bfc75d88dfd1ff8634a6
[]
no_license
kingOfFps/my-pygame
48f5ec3447561df287e3016256e6bf01e30a3d6a
0f09a0762585b3149633ae50d03513af4f3840a4
refs/heads/master
2023-04-26T18:09:50.572896
2021-05-23T01:38:29
2021-05-23T01:38:29
369,939,782
1
0
null
null
null
null
UTF-8
Python
false
false
6,426
py
ball3.0.py
# 这是我在嵩天老师的弹球源代码的基础上,用oop重写了一边。加入了挡板移动功能,算是个游戏了游戏 # 此游戏是一个很好的开发框架,以后用pygame写游戏可以在此基础上开发 import pygame import sys # 可采用单例模式 class Ball: width = 80 height = 80 # speed[0]是小球的横向速度,speed[1]是小球的纵向速度 speed = [2, 2] # x,y表示小球的x,y坐标 # x, y = 0, 0 x, y = 0, 0 # 小球图片路径 picPath = "./pic/ball....
b32204a09d87ff8d3d5adcc0484b81d3c5171885
ae008d50d83c3758c7cbc8713e7c9c8708808199
/examples/pq/configuration_script.py
f3c75fbf481b63d25bb25984ae04fe9215b0ea24
[]
no_license
maciejkurek87/ARDEGO
be15793d68f76abefb7e777aa8e2df8addcdb7a6
d536d3c40f07bc3366b012d39b1e18eb6bf28797
refs/heads/master
2021-01-10T07:46:48.798630
2016-02-13T01:59:58
2016-02-13T01:59:58
44,213,988
0
0
null
null
null
null
UTF-8
Python
false
false
1,903
py
configuration_script.py
import os from numpy import arange, array results_folder_path ="/home/qri/data/pq" configuration_folder_path = os.path.split(os.path.realpath(__file__))[0]+"/" ##set to wherever you want the images to be stored #images_folder_path = enable_traceback = True eval_correct = False goal = "max" max_eval = 5 ### Basic set...
6bf7237d008267e573630d8ddab1b66e6fe5fbe2
aaa5473c8298386460949e1c16db76350135c58b
/Permutations and combinations of nos.py
644773aeaba9d1ad039684a5b76e9da822332d5f
[]
no_license
Pratipkhandelwal/Python
434e8730e38f139ae595636ce2440b8ef7d1b49d
b2e2cf28dd39655d6701d22e63839940b6873dc7
refs/heads/master
2021-11-23T01:19:05.431958
2021-10-30T08:30:42
2021-10-30T08:30:42
101,489,814
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
Permutations and combinations of nos.py
from itertools import combinations_with_replacement import itertools # Get all combinations of [1, 2, 3] and length 2 comb = combinations_with_replacement([2,4,3], 3) for i in list(comb): print(i,',',end="") pro = list(itertools.product([2,3,4], repeat=3)) print(pro)
91f01eb94eae0575a644a839f406888a4723c8ee
0399d1c93bec839071b17dcf59c559b9a0ddce7f
/src/SoloLearn/That's_odd.py
ffe9d6b3671ae9bd97c96b5ad65333d544618956
[]
no_license
purevsurena/competitive-programming
8c16352ba7b6e39fe8f3c80ebdd7ec477dc92231
ac3be38c1a7c7409e455ef96122d96bfcdae24ff
refs/heads/master
2022-11-28T13:16:37.623360
2020-07-23T10:54:26
2020-07-23T10:54:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
That's_odd.py
#Author is A.Purevsuren. # That's odd... # You want to take a list of numbers and find the sum of all of the even numbers in the list. Ignore any odd numbers. #Task: #Find the sum of all even intengers in a list of numbers. #Input Format: #The first input denotes the length of the list (N). #denotes - i...
6b993e46c55759ae0a36f3886244509a23b666db
1d552c67679d1c7b27bffe9cc59840e1872c70ee
/socialAnalysis/comments/computeSentimentRegression.py
ca2e6aa1bcfd5d048a35d776bb33b5e24ee4adb7
[]
no_license
rt-hamilton/GHStreaksThesis
5051099562260ef3c967d7c82bc9b0355a4dd829
a1c10e74689794b43b16a2aac06dd53d570ab40a
refs/heads/master
2022-08-31T16:52:27.271302
2020-05-25T18:57:40
2020-05-25T18:57:40
266,893,025
2
0
null
2020-05-25T22:33:03
2020-05-25T22:33:03
null
UTF-8
Python
false
false
2,944
py
computeSentimentRegression.py
# ---------- IMPORT ------------ import logging import datetime import json import datetime from datetime import timedelta, date import pandas as pd import numpy as np import statsmodels.formula.api as smf import statsmodels.api as sm import random # ------------------------------ # ---------- INPUT ------------- pat...
9158cc114efb14b686ea6fd47278b5afcd04fa83
219202067efc9bcbf500f4434a2a5953d856fb49
/.py files/1d_convolutional_neural_network(fake_news_detection).py
ac16ee5b25ab94b7158d482fc7aa81c494bdd644
[ "Apache-2.0" ]
permissive
husain97/Machine-Deep-Learning-Combination-Fake-News-Detection
6de3ae468f5fa9870939b121b3f5e526aeb172e2
36b903ae8461fa7488ef88cc35f5004ecb455df2
refs/heads/master
2020-12-15T08:21:03.595263
2020-01-20T10:08:43
2020-01-20T10:08:43
235,043,426
0
0
null
null
null
null
UTF-8
Python
false
false
3,942
py
1d_convolutional_neural_network(fake_news_detection).py
# -*- coding: utf-8 -*- """1D Convolutional Neural Network(Fake News Detection).ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/12cHHZCKjdMMxws_8uLDI9wc1egmioI5p """ #SILENCING THE FALSE POSITIVE WARNINGS import warnings warnings.simplefilter('a...
018320f26ceb9c48b3214e42f32ff47c9947adf0
10f621e427aac4efd43e7d8f805bb7866320cf86
/sipcounter.py
946698475d444e42cfe88c0494cb9da6e80de6d6
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sszokoly/sipcounter
e6ad31cf9ec242607ab5994a14774a79c0357830
1bc60ab1f1aab1408d429a404ccea0668533fbfc
refs/heads/master
2022-11-23T14:34:24.811358
2020-07-27T05:04:22
2020-07-27T05:04:22
115,377,239
1
0
null
null
null
null
UTF-8
Python
false
false
47,574
py
sipcounter.py
# -*- coding: utf-8 -*- """SIPCounter: counts SIP messages.""" from __future__ import print_function from collections import Counter, OrderedDict from copy import deepcopy import csv import pickle import sys __version__ = "0.0.3" class SIPMessage(object): """Simple SIP message object to retrieve message body pr...
2acb26a074794056d962acebcb56a407a69bb84f
feb41cac8074eab93ede3cb23e07ae722348f4d0
/alfred/exceptions.py
87d3e68a123965d4f4e1a9e95c0978692f041f6a
[ "MIT" ]
permissive
zoomHKG/alfred
b614701cd3c946e450df0da6373bf62560c92b6c
a6cc4bc5443ab744c01959c44140d8b2fe5623db
refs/heads/master
2020-03-23T10:44:13.586246
2019-01-08T09:20:18
2019-01-08T09:20:18
141,459,560
0
0
MIT
2019-01-08T09:20:19
2018-07-18T16:12:54
Python
UTF-8
Python
false
false
559
py
exceptions.py
#!/usr/bin/env python3 """The exceptions used by alfred.""" class AlfredError(Exception): """General Alfred exception occurred.""" pass class InvalidEntityFormatError(AlfredError): """When an invalid formatted entity is encountered.""" pass class NoEntitySpecifiedError(AlfredError): """When n...
cfb867dbd547108b4a66ff85db4e82a2007d53e9
9a7f5f07c550e02f13c79d88d0a2c39a34e4b891
/bin/scheduler.py
b52aee8fed4df334ca2803908fde541493878538
[]
no_license
Saloniimathur/vuln-scanner-flask
90901a5167761e0fccf10b6dcf92ad5aeab44333
07ab9b715233275f86e3d3328a0feaa0ed6c404a
refs/heads/master
2023-04-12T09:03:53.189102
2021-05-10T07:56:14
2021-05-10T07:56:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,706
py
scheduler.py
import json import time import ipaddress import requests from core.redis import rds from core.utils import Network, Integration from core.logging import logger from core.parser import ConfParser from core.mailer import send_email def schedule_ips(networks, excluded_networks): for network in networks: net...
d8d5fc9343f7d971f43a4059646d11c529f32c6f
0d246e0dc32ac93f77eaa334a7b6af9877468bd0
/TP2_IA_General/cspUtil.py
6a6ea9aedff4ae4b6ca1237759ebd6483b2c3470
[]
no_license
AmalMtibaa/Problem-solving-solver-for-constraint-satisfaction-using-general-algorithms
46dbd585dfee7186f3229eb3894d53427cec750e
213f97ab3f574633625623c73d5d40e6e973fe6c
refs/heads/master
2020-08-06T05:39:54.619425
2019-11-19T13:53:30
2019-11-19T13:53:30
212,856,140
0
0
null
null
null
null
UTF-8
Python
false
false
2,443
py
cspUtil.py
def verif(a, b, c): if b == ">": return a > c if b == "<": return a < c if b == ">=": return a >= c if b == "<=": return a <= c if b == "==": return a == c if b == "!=": return a != c def verifContrainte(cond, a, csp): if cond[0].islower() an...
d0c5b1392d2eb8a8ffd21cef7fd117e6bfafa9d4
8e7407ad514a214e02534c5a28b6ce682f9fe6cc
/bike/tb_fq_company_history.py
6cbc9064f5fcf37e7d42b4923f2a78ec412a858b
[]
no_license
duyunhe/wangfei
a30def03600d1142cad40b4ab66811c05b7c894c
a4dc8c9304e52134715fcd9149b99c427e11e008
refs/heads/master
2021-01-24T03:37:54.865642
2018-03-03T03:54:44
2018-03-03T03:54:44
122,897,567
0
0
null
null
null
null
UTF-8
Python
false
false
4,471
py
tb_fq_company_history.py
# -*- coding: utf-8 -*- # @Time : 2018/2/27 8:57 # @Author : wf # @简介 : 交通小区每小时统计车辆数量,分公司显示(保留历史记录一天) # @File : tb_fq_company_history.py from DBConn import mysql_conn import time from apscheduler.schedulers.blocking import BlockingScheduler import logging from datetime import datetime import redis from dateti...
5f67db05ed6c1bf80fa49e2aba58444eee39fd02
76370fcb5e480026a5845c12b11736f2275431f0
/Sel.py
d1fa3be1266eaa5b8eb2133c2e03e6b06dae2f2d
[]
no_license
sharonycc/Radiomics
76768908a7ceeeb0ca681ed6d52ceea7fa3851c4
9428302cd20d0409f0e99914172a86e79e4e7e33
refs/heads/main
2023-05-23T23:57:49.365927
2021-06-20T13:35:46
2021-06-20T13:35:46
375,214,009
2
0
null
null
null
null
UTF-8
Python
false
false
2,291
py
Sel.py
import pandas as pd import numpy as np from sklearn.utils import shuffle from sklearn.preprocessing import StandardScaler from sklearn.linear_model import LassoCV from sklearn.model_selection import train_test_split,cross_val_score,KFold,RepeatedKFold,GridSearchCV from sklearn.model_selection import StratifiedKFold,Lea...
28e02cdcc95ec6844b3b337895d1acfcb5490302
2dfbca22d0bacf7ba2bb4d270b2d3292f5f8a43b
/amulet/level/formats/leveldb_world/interface/chunk/__init__.py
49e811b77d313ea5ff6f2c283a9a6dcede935fc8
[]
no_license
Amulet-Team/Amulet-Core
9715d888e2faf6c41f9414fd105aaa926aa501c2
dafef97fe4fd1f2f713ef1e3503d6b13b20c1c1f
refs/heads/main
2023-08-18T17:45:48.775423
2023-08-16T09:37:55
2023-08-16T09:37:55
130,729,079
117
26
null
2023-08-16T09:37:57
2018-04-23T17:00:04
Python
UTF-8
Python
false
false
1,180
py
__init__.py
from typing import Optional, Dict import pkgutil import importlib import inspect import logging from amulet.api.errors import LoaderNoneMatched from .base_leveldb_interface import BaseLevelDBInterface _interfaces: Optional[Dict[int, BaseLevelDBInterface]] = None log = logging.getLogger(__name__) def get_interface(...
801bc6ffd8821b6f76d2ee262e972bb83d403660
cfc0285d8c8e5e0b69ef61d81740e9bdd1db7d14
/apps/course/migrations/0004_course_tag.py
2f92f0441e011ef1fe25765ca3cbbdf66827c977
[]
no_license
cftexukeqin/mxonline
63a1d3858eead8a00368420e24281afb4c93933d
8feb9fe85f2398ffd37e3b7ad8b08a3a76dfc442
refs/heads/master
2022-12-11T06:12:37.502203
2019-03-04T12:45:42
2019-03-04T12:45:42
156,818,077
0
0
null
2022-12-08T00:46:13
2018-11-09T06:09:17
JavaScript
UTF-8
Python
false
false
418
py
0004_course_tag.py
# Generated by Django 2.1.3 on 2018-11-15 10:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0003_course_category'), ] operations = [ migrations.AddField( model_name='course', name='tag', ...
0fe5b131a1858e451d9e05ef38ae661a40d88c4c
32ca1d6c37f7b383d0c847e5a0d0dde409226ab2
/examples/sample-qc/sampleqc/steps.py
ce75f6f49ca2dbda935f9c78fb3ed614ddf7fc01
[]
no_license
modojo/adk-examples-1
1c3b522e6ba48ff268da52ae407e951468bf3227
fcc9dd478ea746cdd599a319dd642a4b7ce97ec1
refs/heads/master
2020-05-07T20:26:12.395657
2019-04-11T13:57:31
2019-04-11T13:57:31
180,860,287
1
0
null
2019-04-11T19:06:31
2019-04-11T19:06:30
null
UTF-8
Python
false
false
1,830
py
steps.py
import tempfile from freyja import Input, Output, Step, List from hephaestus import File, UploadFile from sampleqc.context import Context from sampleqc.types import QCMetrics from sampleqc.utils import bam_qc_metrics_ok class CollectAndUploadQCSummary(Step): """Collects BAM QC metrics from all processed samples a...
6b1fa369816cb1baa213323d1228af38ced9de7d
508f02db6a7e138b324dff653630b9534af7529d
/youtube/admin.py
902042930314f593bd44bb5ada4cafcfb403195e
[]
no_license
5oni/youtube_python
d2e66ad1a5cb35d64330028d2ba75a45828c685a
9065dcbb9b4d22fcdab0cacf7a77a034ddc72aff
refs/heads/master
2023-07-16T10:11:12.109345
2021-08-24T12:01:02
2021-08-24T12:01:02
374,813,421
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
admin.py
from django.contrib import admin # Register your models here. from django.contrib import admin from .models import Video,Comment,Channel # Register your models here. admin.site.register([Video,Comment,Channel])
0722862cef38fc9072f785be7968701af69c8d7f
36b14c9349ac86e0076ec47fcf7d2db4241ebf2d
/machine-learning-ex2/sigmoid.py
4545ade3fa8dcb9827c1434260cb00b73c3d4da2
[]
no_license
iurii-milovanov/pymlclass
f9c59cfa66cb9bd166db63006d2181830f1a8571
07519dc47b150ecd1fc4624c40460009aa16ba26
refs/heads/master
2021-05-30T10:22:51.023516
2016-02-18T20:55:28
2016-02-18T20:55:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
sigmoid.py
# SIGMOID Compute sigmoid functoon # J = SIGMOID(z) computes the sigmoid of z. import numpy as np def sigmoid(z): # You need to return the following variables correctly g = np.zeros(z.shape) # ====================== YOUR CODE HERE ====================== # =========================================...
e29a2ce1b548c8d8c1b043eac19e8ac16de7f5e0
5991d72a06875793cf3c5fe40344af423bcd2799
/documentation/Example files/analysis125 - commented.py
e824e7188da82fe7e20b7090b0279e2ba05bc3c5
[]
no_license
InSciOut/InSciOut-Project
195604800ad569d3a773e1beca52c5f22426dae9
63c2f56a0571c912f501d9b71818877106232139
refs/heads/master
2020-03-21T20:22:48.995799
2018-03-18T14:47:47
2018-03-18T14:47:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,168
py
analysis125 - commented.py
import pandas as pd import matplotlib.pyplot as plt import numpy as np df = pd.read_csv("../database/test_bigtable.csv", encoding='utf-8') # We use the analysis explained in row 125 in Data Analysis.xls # ----------------- # we want to obtain a table # 1. Sample, # 2. Institution, # 3. Reference (PR number), # 4. JA_...
af8514cb288924157f5aca793d3a6b94a39e1ca9
78999921df989925c0776de133ef2ff905981f9b
/Bootcamp2/datatypeslab.py
3c1acc21506c7dbaa250ce8394434eda8eeac896
[]
no_license
valeria-chemtai/Andela_Bootcamp
f9ac217892aad85d839c46bfe712ff56449c3813
bead140b9d1858824b45de195295d472e068ff9f
refs/heads/master
2021-01-17T14:23:43.431234
2017-03-11T20:27:02
2017-03-11T20:27:02
84,088,714
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
datatypeslab.py
"""python function for taking an argument, compare and return results""" def data_type(n): if type(n)==type(""): #checking if argument is a string return len(n) elif type(n)==type(None): # check if there's no argument return "no value" elif type(n)==type(True): #check if type of argument is boolean re...
77a28e21ef90a58a23d6f28b7726ed3952b2e261
9504a35e2d3b2940b9e032bb806e8d53082d2778
/formProject/formApp/views.py
d9b0fae58a50411e0d9e2593efd1a5615fbe27bc
[]
no_license
rakeshcs-6/Django-formproject
72917a10867f2b71ab6d97cf3b34946110db4822
0ce12bb67a1b7a3b70ba0af88cf9e4265dd3f3ec
refs/heads/master
2023-04-11T23:16:42.102419
2021-05-10T05:13:45
2021-05-10T05:13:45
365,711,307
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
views.py
from django.shortcuts import render from formApp.forms import student # Create your views here. def view(request): f=student() if request.method=="POST": f=student(request.POST) if f.is_valid(): name=f.cleaned_data['name'] roll=f.cleaned_data['roll'] marks=f.c...
e4ea7c98057475df86e0330c28606a13b03331fe
bb20e9233d341eb99f2ffee017f0f73de6d6ebaf
/main.py
e54fe923dc72c04cc9d42fdff84f79de3148cc8f
[ "MIT" ]
permissive
rukisama/worldgen
f8d9ea3221fa4fa3821d9ba38067487975d363ae
ac172c51b57a74dfa5be0760a422f34a1dd5d5ee
refs/heads/master
2021-05-19T18:49:20.868354
2020-04-01T04:18:31
2020-04-01T04:18:31
252,069,715
0
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
main.py
import tcod as libtcod from graphics import init_graphics, render_all from mapgen import WorldMap from input_functions import handle_keys noise_zoom = 2 noise_octaves = 20 key = libtcod.Key() mouse = libtcod.Mouse() screen_width = 100 screen_height = 100 cursor_x = 10 cursor_y = 10 if __name__ == '__main__': ...
77ed9bbbb793dd30be2737e504919d5b0afead43
d489419ad45bf7d3f805a081857687637c842c5a
/python/org-stubs/cogroo/__init__.pyi
dd8f5ebcda35963db90079577d18f2ec479c7150
[ "Apache-2.0" ]
permissive
gpassero/cogroo4py
b2654571fbff6f85f8173c683e66b517b08fb642
26a382c4d3214853150c299264825c5eaf030f72
refs/heads/master
2023-01-10T23:06:20.961271
2022-12-31T13:56:30
2022-12-31T13:56:30
68,667,485
42
11
Apache-2.0
2022-12-30T22:56:43
2016-09-20T02:50:04
Python
UTF-8
Python
false
false
3,581
pyi
__init__.pyi
import java.util import opennlp.tools.chunker import opennlp.tools.formats.ad import opennlp.tools.namefind import opennlp.tools.postag import opennlp.tools.sentdetect import opennlp.tools.tokenize import org.cogroo.analyzer import org.cogroo.checker import org.cogroo.cmdline import org.cogroo.config import org.cogroo....
c26c20c49c4c94cfa742a9964c9b2f395474c744
67d0f4ed654f1d4f4cce9ce4e4af9005766d16a5
/BitstreamTest.py
8a5770412c4d4bc88791428ecc46cfc0bf22f7be
[]
no_license
edgargsm/CSLPProj3Python
d7c8b0ff92c5197e2583e2eddd4187358ab4c779
db411c149f5734759abcac9631d8ccbe8fefbae2
refs/heads/master
2020-09-10T15:44:01.788250
2020-01-06T12:39:43
2020-01-06T12:39:43
221,743,975
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
BitstreamTest.py
from Bitstream import BitStream #bt = BitStream("text.txt", "rb") bt1 = BitStream("text1.txt", "wb",init_message = "Ola\n") bt1.writeBit(int(1)) bt1.writeBit(1) bt1.writeBit(1) bt1.writeBit(1) bt1.writeBit(1) bt1.writeBit(0) bt1.writeBit(1) bt1.writeBit(1) bt1.writeBits(7,3) #111 bt1.writeBit(1) bt1.writeBit(1) bt...
9e43923942c884c168c5eee704f44cc6e7084ad3
8f7e5b70a948ca81a791c8581f44c54cdd65124b
/GNetTrainer/Training.py
e5168b6ee878f0ccb0291ae05cfdc2dfc441bc4f
[ "MIT" ]
permissive
Rishav-hub/GNetTrainer-package
dc990652f8cf0be35aaf219e68df8cb33e2d82b0
7c47f183cb103b0eb4535766c8b43330af1ecd65
refs/heads/main
2023-08-22T17:04:48.615968
2021-10-19T19:11:36
2021-10-19T19:11:36
410,346,235
1
0
null
null
null
null
UTF-8
Python
false
false
969
py
Training.py
import tensorflow as tf import GNetTrainer.utils.data_management as dm from GNetTrainer.utils import input, model import time configmodel = input.configureModel() def train(): my_model = model.load_pretrain_model() callbacks = model.callbacks() train_generator, valid_generator = dm.get_datagen() ...
57f96b8ce5cabea6681c7a0791b12a9683f22fa1
e22390ec9aa1a842626075113472f81076e1bf5f
/pullenti/morph/internal/ByteArrayWrapper.py
7a557eee0d8ff68f50cd745540e51c49f34a89fe
[]
no_license
pullenti/PullentiPython
ba9f450f3f49786732e80f34d0506d4a6d41afc3
815d550b99f113034c27f60d97493ce2f8e4cfcc
refs/heads/master
2021-06-22T17:12:36.771479
2020-12-11T06:10:23
2020-12-11T06:10:23
161,268,453
3
1
null
null
null
null
UTF-8
Python
false
false
2,408
py
ByteArrayWrapper.py
# Copyright (c) 2013, Pullenti. All rights reserved. # Non-Commercial Freeware and Commercial Software. # This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project. # The latest version of the code is available on the site www.pullenti.ru from pullenti.unisharp.Str...
4d2d9b43c9a2923ea606e410a249fe2fdf176b5f
78abc0a1aea6a99a757c740bf1465b4b7297d3fe
/test-lambda.py
05eeedb8a3f976ae3725cfc27694cc4c155c47e1
[]
no_license
HDGoldi/Serverless_Data_Demo
877e6b34b01f1c8a16cfd671bfc724e2f58d2d6e
0db39cb0754940ca14e91f3e084d054e5ff11729
refs/heads/master
2020-05-09T18:03:13.601541
2019-05-20T07:47:38
2019-05-20T07:47:38
181,324,544
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
test-lambda.py
from __future__ import print_function import base64 import boto3 import json import uuid def lambda_handler(event, context): dynamodb = boto3.resource('dynamodb', region_name='eu-central-1') table = dynamodb.Table('DEMO-Serverless-Pipeline-DynamoDB') sns = boto3.client('sns') for record in event['Re...
034b31f52d1a3fd2ca57b07360763df1de6156e2
1af0bc3634313da229fcf7015abec43981b4162a
/hundredandbelow/prob35.py
993bd8025e4bee4bb1d74fd587014b582f58ecbf
[]
no_license
errai-/euler
b2996e227ede830e8c56252bcce08a92538464df
054c391d3aee6bcb9ba4dbf24f4ec6cb5b8b55c3
refs/heads/master
2022-06-18T09:02:54.573903
2018-05-14T08:21:48
2018-05-14T08:21:48
85,503,541
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
prob35.py
# -*- coding: cp1252 -*- import time def korva(nani,ne): for a in range(3,int(nani**0.5)+1,2): if nani%a == 0: ne = 0 break return ne dew,suu = time.time(),0 def ympura(ne): for i in range(1,len(ne)): kaa = int(ne[i:]+ne[:i]) if kaa%2 == 0: ne = 0; break else: ne = korva(kaa,ne) if ne == 0: ...
3cabc5b535513f1c9c2345f0245ab1b9a9229a2f
a6ab8fc8673bbad2a0a8cc8e1fb9251728a9950b
/Services/migrations/0002_auto_20181028_1757.py
38f5f1bb46164370f7eb7b9ba1c86670f799d37c
[]
no_license
davidaceronc/WebAdmin
e3d6247847016c613d624e2b99af4012219897b6
0105810d11e11432daa1e75500808dc13dbb7100
refs/heads/master
2020-03-26T07:40:29.093886
2018-10-29T11:56:17
2018-10-29T11:56:17
144,663,839
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
0002_auto_20181028_1757.py
# Generated by Django 2.1 on 2018-10-28 22:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Services', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='sqlquery', name='Connection', ), ...
c39ff05568ec13cf1310ad95ac5478ff34e77067
770bad65fc0f213a02dfd6c270693ba720ff483b
/cambox-package/plugins/lcgdm/check_gridftp_transfer
97cc3aa9198ac40849e08c9ae83c0bebf9c7ef95
[]
no_license
usuporte/install.issabel
0905b62e271bbc5316cf6c5c6f0f22c9737d5651
270b7d2fff4ae56735d53fa99bb1613c07f1f9a3
refs/heads/master
2020-07-15T06:55:57.618865
2019-08-31T05:22:22
2019-08-31T05:22:22
205,502,230
1
1
null
2019-08-31T05:51:41
2019-08-31T05:51:41
null
UTF-8
Python
false
false
6,783
check_gridftp_transfer
#!/usr/bin/env python ############################################################################## # Copyright (c) Members of the EGEE Collaboration. 2011. # 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 u...
30174ce063c26f7616af1ff5f97cfb637f9303b9
2bb2e1c07f759ce07a101cff0586fa477db37d66
/ComunicaçãoMAV/app.py
47a96ffca6937bc07aad65b71691e5ae97c24464
[]
no_license
TCCindustrial/tccindustrial
cf497019466413668be30a87999e759f3a31c5b3
85c2fcc3e69d22d0100df4f00a1e5e613599d1a3
refs/heads/master
2020-03-22T00:41:21.050039
2018-07-11T04:37:00
2018-07-11T04:37:00
139,259,509
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
app.py
from flask import Flask, render_template, redirect, request, jsonify app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/login') def login(): return render_template('Login_page.html') @app.route('/compras') def Compras(): return render_template('Com...
f67869134a03d2d7146d28b007d16300038fbaa3
3a27116e318e472216f336683a7aa07fae58e825
/pyro_models/__init__.py
6d98b03b472cafa667a24eca7c8b064f7a2c621e
[ "MIT" ]
permissive
stefanwebb/autoguides
73efa5f0aa5a698bca88098e709ef9437f74452a
ba2ff21356fe16b1dc20b0afc9918296b48844d3
refs/heads/master
2020-05-16T16:34:25.034585
2019-05-02T23:33:19
2019-05-02T23:33:19
183,166,628
5
0
null
null
null
null
UTF-8
Python
false
false
111
py
__init__.py
from pyro_models.load import load from pyro_models.utils import data __all__ = [ 'load', 'data' ]
d88de94620fa23cfbea4561a74b47474f7519157
56bd6d2d4f8fc7fb131f8b47c8efa757e79a29cf
/lti_provider/migrations/0002_auto_20170914_1603.py
0751700ad6ecdb4493de71bba2b02d9cdab4a479
[ "MIT" ]
permissive
wachjose88/django-lti-provider-auth
823dfb4152d957f071e528ea47fde008e6aecc1d
a6a2f764dc3eb48b2073f9c15aede0e2f540d4f3
refs/heads/master
2022-05-01T16:02:00.657616
2022-03-11T09:55:19
2022-03-11T09:55:19
150,266,827
2
1
null
null
null
null
UTF-8
Python
false
false
943
py
0002_auto_20170914_1603.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-14 14:03 from __future__ import unicode_literals from django.db import migrations, models import lti_provider.field_validators class Migration(migrations.Migration): dependencies = [ ('lti_provider', '0001_initial'), ] operations =...
a55133e2e72cbbbe98f56508b2034331b4565ab5
3b93435f057a6aeb9d063f89417800bab2d48237
/main.py
75e0d4e6c665ea504b9851c257304d055d00ab71
[]
no_license
mgoranov/wheatherApp
c5dc49f295bc885c7f4cb018c2d441a5e87a1adb
098702ef36930d06a53d0806a061c09f67bb040f
refs/heads/master
2016-09-10T17:06:11.941788
2014-06-23T19:01:25
2014-06-23T19:01:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,143
py
main.py
# !/usr/bin/env python from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class WeatherApp(App): pass class WeatherRoot(BoxLayout): pass class AddLocationForm(BoxLayout): tbSearchLocation = ObjectP...
b8e954da4dd3cc72405b6792967a60656bfe943d
52a27a342f4dc3dbfbc62d93a9c4c70947b6ee32
/nptel1.py
78ae8e290fe18ef60e5114e22ee93f411886f973
[]
no_license
SAPSAR1812/NPTEL_PythonML
7e10bd932c931e0c2d41f16b8588cae4225f58d5
24e54919f54c0469d837724b4b9154c209c84daf
refs/heads/main
2023-03-16T14:32:24.376242
2021-03-05T17:30:56
2021-03-05T17:30:56
344,884,655
0
0
null
null
null
null
UTF-8
Python
false
false
12,625
py
nptel1.py
Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> = RESTART: C:/Users/Sahil Halarnkar/AppData/Local/Programs/Python/Python39/nptel.py age JobType ... nativecountry ...
23893b23635b0a3f54fb026cd0b729d1fb74c71d
3a6ab03da2f7ec1069c80f23c2ed6e2108ecb0ff
/os_path_normcase.py
5f44438449196e1ff884b7ddecde1da9e1b62821
[]
no_license
lyletzzzw/pyAPIExample
01604c0bc0f3df2b20b229873d25493d191d3e99
3760789f5d485774d86c469aa221ca6d8c2dba2c
refs/heads/master
2021-01-17T17:06:33.730266
2012-08-05T13:06:18
2012-08-05T13:06:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
os_path_normcase.py
#! /usr/bin/env python #coding=utf-8 import os pathStr = 'c:/' print [os.path.normcase(el) for el in os.listdir(pathStr)] print os.path.normcase('C:\\Windows\\Boot\\') print os.path.normcase('C:/Windows/Boot/')
4b39ecb57cecb2fdac852f8e29d73731a01c8ad2
2112fed8baa81d9b24a7b76fa109b7e7aa03486d
/notebooks/basics/utils/utils.py
e37bdecd14a00210393934805e0222c23e8473fd
[]
no_license
Pensive1881/debugging-dl-models
0ce00dd6ed2255f3a9c4acbc2962697cdd11b7d8
ab5e151d9e30cbb2e426d09bdf80aeab6d9d2bc8
refs/heads/master
2023-01-11T18:45:28.098849
2020-11-02T21:17:10
2020-11-02T21:17:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
utils.py
import os import tensorflow as tf def make_writer(filepath, dir_name): """ Creates a directory to save tensorboard events """ path = os.path.join(filepath, dir_name) os.makedirs(path, exist_ok=True) print(f'Creating a tensorboard directory: {path}') writer = tf.summary.create_file_writer(path) ...
b47f7f192646de31508759a87b588cc7e7d00c8f
3f08d6cf7cc8eed4aa29f76a354501c8768d9042
/2_4_CONCURRENT/day04_net_concurrent_IO/multiplexing/note.py
669756a3105d413a7c87b1b29c1fa88c44fec3e7
[]
no_license
avatargu/AID1908
419f9eadeabb08b3db9cd2f715f874356986954d
f0d7704b28c18017cf53fed668ec69efc258222d
refs/heads/master
2020-11-30T00:42:30.424706
2020-01-03T07:48:19
2020-01-03T07:48:19
217,094,012
0
0
null
null
null
null
UTF-8
Python
false
false
3,843
py
note.py
import select print("========== dir ==========:") for item in dir(select)[-4:]: print(item) """ epoll error poll select """ print("========== help ==========:") # help(select.select) """ Help on built-in function select in module select: select(...) select(rlist, wlist, xlist[, timeout]) -> (rlist, wlist, xl...
4f096cd6177c6e5ea762e1b55c4f08090c85176b
8860f76e2cc0da145d226cf2bafa87f61813b3ee
/array_invertion/array_invertion_queue.py
94431414e2847ba139e460ee2c05af109cb584aa
[]
no_license
romshen/studying_of_algorithms
e0d7df90ffcc9caa2679c05749b6e1c6110c771c
33dd90f10f49a2dcac8e47953f77bfb60f0b427b
refs/heads/master
2022-11-10T15:27:09.843780
2020-07-01T08:35:40
2020-07-01T08:35:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,079
py
array_invertion_queue.py
from collections import deque def array_invertion(main_deck, mdeck_len): # if mdeck_len % 2 != 0: # mdeck_len += 1 # main_deck.appendleft(0) inv_amount = 0 len_objects_in_main_deck = deque(1 for _ in range(mdeck_len)) def merge(len_left_part, len_right_part): nonlocal inv_amoun...
00e589dd04ffff62a6590dfe225dbbc76b4248d0
e81ef15b827c432c932fcf8edaf0e383a4064208
/app.py
942ecaaa03c8e2e7372064121f6d29ea413a49f6
[ "Apache-2.0" ]
permissive
dbl0null/saber
26a71ae9a7d18c770ab78aa4acc7772c59092582
c5e188a68f541380b58df752596999dcecafc29a
refs/heads/master
2023-08-17T03:12:18.499053
2016-11-09T11:41:50
2016-11-09T11:41:50
113,523,055
0
0
Apache-2.0
2023-08-14T21:42:24
2017-12-08T02:45:31
JavaScript
UTF-8
Python
false
false
715
py
app.py
import os from api import make_app from tornado.ioloop import IOLoop from tornado.options import parse_config_file, parse_command_line, options from api.entity import MainHandler, LoginHandler routes = [ (r'/index', MainHandler), (r'/api/user/login', LoginHandler) ] if __name__ == '__main__': # if os.pa...
f26c3ce9fa0c996193c1ca9598563993ff3688d9
13800b7827598e76428a335559b7bf11867ec2f0
/examples/py/async-hollaex-sandbox.py
80f8da603041a4ea128a2fe13bf7d9733cd3753f
[ "MIT" ]
permissive
ccxt/ccxt
b40a0466f5c430a3c0c6026552ae697aa80ba6c6
e4065f6a490e6fc4dd7a72b375428b2faa570668
refs/heads/master
2023-09-04T03:41:29.787733
2023-09-03T19:25:57
2023-09-03T19:25:57
91,253,698
30,798
8,190
MIT
2023-09-14T21:59:09
2017-05-14T15:41:56
Python
UTF-8
Python
false
false
669
py
async-hollaex-sandbox.py
# -*- coding: utf-8 -*- import os import sys from asyncio import run root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(root + '/python') async def test(): import ccxt.async_support as ccxt print('CCXT Version', ccxt.__version__) # local sandbox keys ...
da705c3e4bb272aa06d75b6c3111bdc70fcf357b
743fa7d3c0dcb262c78c8f2736a8df748a15455b
/WebScrapingData_forTimeSeriesPredictions/fetchHistoricalPrices.py
2e2052096dbe4d9a99a5bb9069e424af5b4f2efb
[]
no_license
girishb29/SideProjects
14998a24c2ecfad7c624528d3ddbb4fc806391b8
abb32ef9a82efb4a62ba2633183a2cc3bd44e4e8
refs/heads/master
2020-03-21T11:07:11.170697
2018-05-01T04:27:41
2018-05-01T04:27:41
138,490,340
1
0
null
2018-06-24T14:49:26
2018-06-24T14:49:26
null
UTF-8
Python
false
false
2,050
py
fetchHistoricalPrices.py
### LOAD LIBRARIES ### # Data wrangling & processing: import numpy as np import pandas as pd from lxml import html import requests import json ### FETCH HISTORICAL DATA ### ## FUNCTION # Define a function to fetch the historical data: def fetchHistoricalPrices(u_a, extensions): # Name an empty dictionary...
2245e3c1d8c3614594bfb3470e5707958d2970ee
bc8ac1f5673546540cffb657a590859fdbfdd9b7
/src/main/docker/jenkins/analyzer.py
42fc25565bea3f1cdd4e085b6b04a236d1682539
[]
no_license
aabarmin/epam-java-cources
5e402cffcf4b93abf4826fbca204080656eb11af
4dcc40249939e8eb147fcb47effd4a89a22dd402
refs/heads/master
2021-12-14T12:51:15.381920
2021-12-07T10:17:24
2021-12-07T10:17:24
101,986,505
33
93
null
2020-11-27T15:41:45
2017-08-31T09:53:43
Java
UTF-8
Python
false
false
1,808
py
analyzer.py
import sys import os import xml.etree.ElementTree as ET def check_arguments(): """ This function checks if number of arguments is correct. If number of arguments is incorrect, this function stops the execution. """ if len(sys.argv) != 4: print("Invalid number of arguments") pri...
3e3218a3dddb65ec6f3a772aa47527934be8ad4f
0a31d8785dd434138c2f888fff3fcf4e6d46e0be
/fraktale2.py
6c8e9297074dcc2af30881079cebc0241d7c3717
[]
no_license
DoDemDishes/Symulacje-komputerowe-w-fizyce
e272a5dd2ca20be3abd28d6bed8111267993011f
8dd3c3db3d30c6ff825ad82b47059f6e19b6fb83
refs/heads/master
2021-01-11T00:36:10.883909
2016-12-19T14:44:58
2016-12-19T14:44:58
70,510,010
0
1
null
2016-11-25T11:58:26
2016-10-10T17:05:06
Python
UTF-8
Python
false
false
2,135
py
fraktale2.py
import numpy as np from numpy import array, zeros from numpy.random import randint, random import matplotlib.pyplot as plt ### Stale nr = input("Co sprawdzamy? \n 0 - Trojkaty Sierpinskiego \n 1 - Paprotki Barnsley'a \n") liczba_iteracji = 100000 liczba_podzialow = 8 def create_table(nr,liczba_iteracji): p = None ...
92f3bf6fd8fdce863793cdd2e343ff12095ef647
c824bab0e91cf94569cde606a487199fe2840c85
/merge_data_together/main.py
d1545513b2737e5f66b7150e989efd1a5e935ee8
[]
no_license
saqlainrasheed/python_practice
0ebe4356c76d1e163f41bbb94c21e4fefa61e39a
e4d1f3c05b4e481695a61286f3674a8f5d30bf14
refs/heads/master
2023-06-17T01:00:21.942059
2021-07-12T08:23:21
2021-07-12T08:23:21
383,696,494
0
0
null
2021-07-12T08:23:22
2021-07-07T06:27:22
null
UTF-8
Python
false
false
528
py
main.py
import json import db import fetch from merge import merge from urls import USERS_URL, POSTS_URL, COMMENTS_URL def main(): users = fetch.get(USERS_URL) posts = fetch.get(POSTS_URL) comments = fetch.get(COMMENTS_URL) data = merge(users, posts, comments) with open('data.json', 'w') as output_file: ...
fde03d09cd432d53f7f03705122dda4a4edf5051
510827460d047c8ad6ca924a259282ad491c426a
/run_pytest.py
fa6ea4b44fda87107fb5773c06ccf3fc4377f302
[]
no_license
testmandy/AkeyAndroid_UITest_Python
eb547f245ef4fc646ef62180c2aafd276da5dd6f
4c42dd8a0407312caef2223f9c87488c4f02e11f
refs/heads/master
2023-08-13T17:20:47.749522
2021-10-09T10:42:06
2021-10-09T10:42:06
411,499,657
0
0
null
null
null
null
UTF-8
Python
false
false
934
py
run_pytest.py
# -*- coding: utf-8 -*- # @Time : 2allure-results021/9/29 10:22 # @Author : Mandy import os import sys from common.read_ini import ReadIni config = ReadIni() def run(): print('参数个数为:', len(sys.argv), '个参数。') print('参数列表:', str(sys.argv)) for i in range(1, len(sys.argv)): print("参数", i, sys.argv[...
ef7460b18ac8591f6bcec37df848bc62e0700895
11587d450eb274a4684a393bd1073ea7cf6e28bf
/codingtest/week06/level10_recursion/print_star_10.py
e5d9ae8dc27db3088543c5da5daffe3a9283cc99
[]
no_license
Greek-and-Roman-God/Athena
3b45869806ea06812e3d26661b159294fb49593b
73a3a24df9667402258bff038325fd31cca36cf1
refs/heads/main
2023-05-28T23:04:10.760717
2021-06-13T04:39:31
2021-06-13T04:39:31
308,242,740
0
1
null
null
null
null
UTF-8
Python
false
false
347
py
print_star_10.py
# 별 찍기 10 #도저히 못풀겠음 #구글에서 가져온 풀이 def concatenate(r1, r2): return [''.join(x) for x in zip(r1, r2, r1)] def star10(n): if n == 1: return ['*'] n //= 3 x = star10(n) a = concatenate(x, x) b = concatenate(x, [' '*n]*n) print(a+b+a) return a + b + a print('\n'.join(star10(int(input()))))
d23e01fb7cc08b472dbe1235bea31065588741c7
f5c62bab2e95bb2dc6986ba271662ade8cae4da0
/docs/PythonSAI/CX3DPickSensorNode.py
e30b1d2fbe76b0e1f26fa9b21bf204e8e6dea5e1
[]
no_license
Has3ong/X3DViewer
d211b159c29523e61158eddc015bb320e4ba7c9d
c629305c24b5c25fd41d3a46816efbf1f74d0092
refs/heads/master
2021-06-25T16:36:46.278469
2021-01-03T11:26:02
2021-01-03T11:26:02
180,564,246
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
CX3DPickSensorNode.py
from . import * class CX3DPickSensorNode(CX3DSensorNode): m_strNodeName = "X3DPickSensorNode" def __init__(self): self.m_strNodeName = "X3DPickSensorNode" self.m_Parent = [None] self.children = [] self.DEF = "" self.USE = "" self.n_Count = -1 pass
d13a5cfaff4d5a85cf52610569ffb19bbbf029e0
0d769458b0ae94457ca5f4f58bbd65a6473fe5f3
/plotting-beginner-plotting-cookbook/plt2d3d.py
950d11bf63438df1f39bc73b99fd8cff51a2877e
[ "BSD-3-Clause" ]
permissive
hrayatnia/SciPy
490a494a953e53191faa80d31d67bf778c46f208
a50dcbb6b8adffbc526eec93f5009f09943786e3
refs/heads/master
2021-01-18T21:15:47.321844
2015-02-19T14:40:17
2015-02-19T14:40:17
31,014,695
0
1
null
null
null
null
UTF-8
Python
false
false
456
py
plt2d3d.py
import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt x = np.linspace(-3, 3, 256) y = np.linspace(-3, 3, 256) X, Y = np.meshgrid(x, y) Z = np.exp(-(X ** 2 + Y ** 2)) u = np.exp(-(x ** 2)) fig = plt.figure() ax = fig.gca(projection = '3d') ax.set_zlim3d(0, 3) ax.plot(x, u, zs=3, zdir...
97325fcb3d4610404a9a50847a8f911ac7de4ffa
128dcf58b77b57bd9f13d6452288cba796043c6e
/monitor.py
2da5843457987a697825024cb85306fc99a76bbe
[ "MIT" ]
permissive
busbyjon/analog_dials
6788e6ed4123649e6477d8cc9f1357c05fc09c0b
1e85b63375d1fd18adc37427c5f3c7a4e67c944f
refs/heads/master
2022-04-17T08:57:22.259039
2020-04-18T11:29:15
2020-04-18T11:29:15
256,736,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,563
py
monitor.py
from speedtest import Speedtest from pythonping import ping from gpiozero import Servo import schedule import time import logging as logger logger.basicConfig(level=logger.INFO) dial_1_pin = 17 dial_2_pin = 19 amp_meter = 21 max_dl_bw = 42 max_up_bw = 14 max_ping = 120 def speedtest(): servers = [] threads =...
50b8df28900fd0e34b60086830f0ac94520ee717
367db2356555d0e1228c8c49dcb0b3b66d530e91
/KulturNav/kulturnavBotTemplates.py
336bcb4dd08abf844200659a06f1fd4b371fdfbd
[ "MIT" ]
permissive
Pywikibot4wikidata/wikidata-data-imports
acd829d1c4ddcd8f557c0d5e2214cd358a52637c
013f4d21ef5166a970fc40904705220ee9fdf79d
refs/heads/master
2021-01-21T23:45:42.066549
2016-04-02T16:04:12
2016-04-02T16:04:12
55,219,814
1
0
null
null
null
null
UTF-8
Python
false
false
5,623
py
kulturnavBotTemplates.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ Contains templates which can be used for actual kulturnavBots. Author: Lokal_Profil License: MIT """ import helpers from kulturnavBot import Rule from WikidataStuff import WikidataStuff as WD class Person(object): """The basic buildingblocks for a kulturnavBot looki...
41a01888df34467d8da178f545774c5a8cee30be
a16eb2b8d6f8f9b65af30fa04dd8f688a8ee5c72
/fadeTopiversion.py
49b336b720d3af2daa20c373e7abd7dbd3b33fd4
[]
no_license
FreddieN/Raspberry-Pi-LED-Strip-Fader
71bbaa190d63fc208a3ed76a1e877125760d43b6
fa9345840bbec1f029c2e85a3665e670d1d53151
refs/heads/master
2021-01-22T09:27:50.885743
2018-10-23T10:52:48
2018-10-23T10:52:48
102,325,299
0
0
null
null
null
null
UTF-8
Python
false
false
2,503
py
fadeTopiversion.py
from __future__ import division #Pi runs Python 2.7 #Defining pins for easier readability RED_PIN = 23 GREEN_PIN = 18 BLUE_PIN = 24 RGB = [0,0,0] #Setting the RGB variable any changes to this variable reflects to the live strip #standard imports import time import pigpio #I use pigpio to manage pwm pi = pigpio.pi...
f3a24126aeab021789273981e94b9480841b73ca
4e2049666d9619cfb81e89c5d0c2c0c51b1b7a58
/Greedy/ex3.py
471160c9a43a211708b8861ff0bf14b416c8716a
[]
no_license
YoungWoongJoo/Learning-Algorithm-With-Python
f5f552460eb77aaeb51c775bb10f620fa683e14b
4d2eb28a524e131ba689888d2d529d9f3457856d
refs/heads/master
2023-04-28T01:52:27.188797
2021-05-20T06:08:43
2021-05-20T06:08:43
355,601,540
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
ex3.py
""" 1이 될 때까지 어떠한 수 N이 1이 될 때까지 다음의 두 과정 중 하나를 반복적으로 선택하여 수행하려고 한다. 단, 두번째 연산은 N이 K로 나누어떨어질 때만 선택할 수 있다. 1. N에서 1을 뺀다. 2. N을 K로 나눈다. N과 K가 주어질 때 N이 1이 될 때까지 1번 혹은 2번의 과정을 수행해야 하는 최소 횟수를 구하는 프로그램을 작성하시오. 입력 첫째 줄에 N(2<=N<=100000)과 K(2<=K<=100000)가 공백으로 구분되며 각각 자연수로 주어진다. 이때 입력으로 주어지는 N은 항상 K보다 크거나 같다. 출력 첫째 줄에 N이 1이 ...
82b3512b1286cb26f845971f15cb16b837d2e459
319bf162424439c19508f4ebc1bf4f387a406f6d
/test.py
bc0d38db729af8d3a392c454b60cd93eb0f6d1a5
[]
no_license
ashwin-os/vak-dashboard
b6ea764ace57f69df9b40fea61bc3e0aaa4bd65b
138e620a76469410ac24341d3b7902ade4c2bace
refs/heads/master
2020-03-09T02:27:32.240141
2018-04-09T13:19:21
2018-04-09T13:19:21
128,540,249
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
test.py
from flask import Flask, render_template,request,redirect,url_for # For flask implementation from pymongo import MongoClient # Database connector from bson.objectid import ObjectId # For ObjectId to work from bson.json_util import dumps from flask_cors import CORS client = MongoClient('localhost', 27017) #Configure...
12235571c57f0781ef95fcab5a739b304f632361
07ec0ddfc84e89d2fd350113e18c8c0df19d847c
/change_background.py
2829c533e0bdf23daa755b7b4286ef6e4cc7dc2c
[]
no_license
mraheja/quicktiks
c17ca5f340a75032e893dcddf7f0588e1d05daea
1334e47c2bf68e2010ced67cb8935e597d448b4f
refs/heads/main
2023-08-18T12:56:20.814142
2021-09-19T14:44:48
2021-09-19T14:44:48
408,024,914
1
0
null
null
null
null
UTF-8
Python
false
false
493
py
change_background.py
import pixellib from pixellib.tune_bg import alter_bg change_bg = alter_bg(model_type="pb") change_bg.load_pascalvoc_model("xception_pascalvoc.pb") def change_background(img_name, video_name, cropped_path, background_path, fps = 30): filename = f"{img_name}-{video_name}.mp4" output_path = f"./outputs/bg_chang...
9fb1f36ecfee20ae09c3d128a01413b63ba001f4
b184fb273b2b1466ad76ddc1e1549ea536f8f22e
/Project3/main/Problem.py
739c468d05d718b1dc4a51b54fe1214c161ac69c
[]
no_license
lundstrom14/FMNN25-Advanced-Numerical-Algorithms-with-Python-Scipy
1802fe3e6bb01171a0f60261285bf4dffb900ba2
f9d6ebe5b7e55b829fa499cb07c391a09d8efa4f
refs/heads/master
2022-04-03T06:34:15.320732
2020-02-10T22:01:00
2020-02-10T22:01:00
207,683,098
1
1
null
null
null
null
UTF-8
Python
false
false
2,016
py
Problem.py
# -*- coding: utf-8 -*- """ Created on Thu Oct 10 10:35:23 2019 @author: Mattias Lundström, Arvid Rolander, Pontus Nordqvist, Johan Liljegren, Antonio Alas """ from pylab import shape, arange, zeros, array, vsplit, block import matplotlib.pyplot as plt import seaborn as sns; sns.set() class Problem: """ Prob...
57d064d22a143e0d86c36a14567170d32b414bff
0cdec09cf1a3a4e3ac714eb2a457bf9d52b4d95e
/customer/migrations/0033_auto_20181002_0702.py
607af4a7a7eae34979ae12cb4610bd4654d9501e
[]
no_license
Akala200/writes
72b8c20f16897eb76ccffcdbfd290d7bc82e31a5
62bf5eee1693c46aec7a6174999c01d0a517affe
refs/heads/master
2022-12-12T11:08:22.731433
2019-03-26T21:42:37
2019-03-26T21:42:37
147,389,557
0
0
null
2022-12-08T02:51:52
2018-09-04T18:22:19
JavaScript
UTF-8
Python
false
false
375
py
0033_auto_20181002_0702.py
# Generated by Django 2.0 on 2018-10-02 14:02 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('customer', '0032_auto_20181001_1131'), ] operations = [ migrations.RenameField( model_name='additionalfiles', old_name='files'...
833ccc1c8150f061ae1b2179a009ac01f08c5b7e
01009d4b757ca1da77c819c727b668c4ede9c660
/tasks/tasks.py
180b6b2c3d7e1a6b368b2ffab27b5e1ad27a1b6c
[]
no_license
dsgzds/xicha
458ca47914a0065f81a518081e87e521c5ae2526
2354a814bc1a8755b9064dbf3f0b0f7013bc38e6
refs/heads/master
2023-07-09T04:28:19.015861
2021-08-08T14:00:39
2021-08-08T14:00:39
389,125,688
0
0
null
null
null
null
UTF-8
Python
false
false
1,804
py
tasks.py
import time from flask import jsonify, request from celery import Celery from celery.bin import celery from celery.result import AsyncResult app = Celery('tasks', backend='redis://:123456@10.35.163.24:6379/orders', broker='redis://:123456@10.35.163.24:6379/8') # :密码@host/post/db @app.tas...
37fe921283be816ab2b25a6267f8bfa0858aa357
3e059f8a06d74056909477d794580d9dd4c6720a
/example/readme.py
ce3cabd3019709b29af143234e68d658400ed05b
[ "MIT" ]
permissive
marrow/mongo
50fc80ace9534d194739fa63bfe398e773cf7804
41311f3c833b4d295bcf1009d5e5e6f2ccf40ce7
refs/heads/develop
2023-08-03T15:49:24.141640
2022-12-15T22:14:32
2022-12-15T22:14:32
51,972,747
24
5
MIT
2022-12-15T22:14:33
2016-02-18T02:35:34
Python
UTF-8
Python
false
false
1,354
py
readme.py
# encoding: utf-8 # Imports. from pymongo import MongoClient from marrow.mongo import Index from marrow.mongo.field import Array, Number, ObjectId, String from marrow.mongo.trait import Queryable # Connect to the test database on the local machine. db = MongoClient().test # Define an Account object model and as...
fff42e055a76add4bb7285fea0d3b695efb70a1c
24afb5785742dc743181d3d516ffbb0611e54097
/px4_control/devel/lib/python2.7/dist-packages/motion_planning/msg/_camera_msg.py
22928a074782943921f23aff202561191d4bc808
[]
no_license
Qrpucp/Assignments-For-ROS-Course
a759d195a5a8423038fa060b866b3ca9ad2cb603
7f7cf86f5e391591ac2d57d3b9fb43fa07b5bab3
refs/heads/master
2022-11-28T04:33:47.890342
2020-08-01T15:26:26
2020-08-01T15:26:26
284,276,822
0
0
null
null
null
null
UTF-8
Python
false
false
4,409
py
_camera_msg.py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from motion_planning/camera_msg.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class camera_msg(genpy.Message): _md5sum = "114e47e9e532df1ce24754afff3794bc" _type = ...
cb165462b9c88532100b1fab169a0fc537244a4d
e0f7b44c188c7da517d8342383605046a1bb56e2
/studentmanagement/urls.py
613f02189836ca28accb9d944bf42eb9375408b7
[]
no_license
sangrampattnaik/studentmanagement
a6302eb8c715f5f8caf9b8b197eeb7066d99fafe
3c3e2c8e2a072e6c8d397bd34deceaf9b1707a57
refs/heads/master
2023-03-26T18:34:41.669937
2021-03-20T07:03:16
2021-03-20T07:03:16
349,362,952
0
0
null
null
null
null
UTF-8
Python
false
false
1,160
py
urls.py
"""studentmanagement URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...