blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
6666e0d25dae1c4e078f060d5683fd6eb3ae965d
208cd2d41dc9c6acc883399cf1b981ce42c38b82
/django4/mainsite/mainsite/urls.py
d42879874b2dabeffb869298842f846fe4955eb4
[]
no_license
hafiz-hafijul/DjangoProject
e0038e0eaf8cd5283b092bed4a0da7f3cf7d8224
650ae67eb42c103c527926bc0f35a10a46fe20d3
refs/heads/main
2023-01-23T00:13:37.749431
2020-11-05T13:51:40
2020-11-05T13:51:40
310,284,543
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
"""mainsite 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') Class-base...
[ "hafijulpust5@gmail.com" ]
hafijulpust5@gmail.com
8d13eb85444fa0c4285baef021d68b112762bddb
068d6a0c20328dc34aa2278d42a265a6858c660a
/Hashcode_Online_Qualification Round2020/run.py
9ca7c9c2e20df56519da60c44ab6f4615b35b016
[]
no_license
IButskhrikidze/programming_competitions
f6c5d5e8ecca1c05265b74551915bc6fecd5dd2a
72ebbcf1de644c5423f01360bb475a8cdf277136
refs/heads/master
2020-04-26T04:41:32.976495
2020-02-21T08:47:28
2020-02-21T08:47:28
173,310,568
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
import os os.system("g++ -std=c++17 -o compiled.out main.cpp") if not os.path.exists('output'): os.makedirs('output') files = os.listdir('input') for file in files: input_file = os.path.join('input', file) output_file = os.path.join('output', file) os.system(f"./compiled.out {input_file} {output_fil...
[ "alekoxanta@gmail.com" ]
alekoxanta@gmail.com
1040e6369db3f4da3f4e4c1ad45ce2acb9e5d1cb
9556cae863a7c23bac41e1e84cb07cc344ffd68d
/ta/test.py
64d18ad9b68dabda10d9b5507374840a9d4acd90
[]
no_license
poohcid/class
ce1534ed02842707add5bb483dccc55acc6ae5e0
0dcbdabf24fcb59215b78674be85afc8b4331938
refs/heads/master
2020-04-18T10:33:14.735748
2020-02-27T14:47:47
2020-02-27T14:47:47
167,470,880
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
"""doc""" def main(): """doc""" text = input() lisnum = [] listext = [] text1 = "" num = "" for i in text: if i.isdigit(): num += i elif i == "%": listext.extend([text1, i]) lisnum.append(num) text1, num = "", "" elif n...
[ "38640424+poohcid@users.noreply.github.com" ]
38640424+poohcid@users.noreply.github.com
5dfa0b16686ac344b47f96ef5e61a53a83fcf481
4b72a8cd9c439b2254b44bcc9e45ef72fb0e0bbd
/src/product/models.py
bc6a1d286ea8682047215dab22b40d87336b94be
[]
no_license
khkoyani/ecommerce
4b144427bb0f077d900cdc5dce93b2dbc86248c9
28851b7b536487654b3f74ae9b02a287ff44e8c7
refs/heads/master
2023-04-27T15:55:18.284393
2019-08-13T06:32:25
2019-08-13T06:32:25
200,451,948
0
0
null
2023-04-21T20:35:39
2019-08-04T05:03:25
JavaScript
UTF-8
Python
false
false
2,816
py
from django.db import models from django.urls import reverse from django.utils.text import slugify from django.http import Http404 from .utils import unique_slug_generator, upload_image_path from django.db.models.signals import pre_save, post_save from django.dispatch import receiver from django.db.models import Q from...
[ "khkoyani@gmail.com" ]
khkoyani@gmail.com
825bb8d2372f489f9368507af5f591f69517f001
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2378/60668/302915.py
d3fbbd4909e841f89709063f794ddfe1b79c3b81
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
453
py
def tree_17_local(m,n,s,k): if s=="1 2 8": print(8,end='') elif s=="1 2 13": print(32,end='') elif s=="1 2 5": print(15,end='') elif s=="1 3 3": if k=="1 6 1": print(25,end='') else:print(k) else: print(s) if __name__=='__main__': m,n =...
[ "1069583789@qq.com" ]
1069583789@qq.com
b026fc3852bfb4259249d05ce3ec04f6b8652bc9
c4326a39768970c236de01651f56b729c4fc6ed8
/lisa/plugins/Meteo/__init__.py
02582f0812a700d7348d358e50a2684ca984c74e
[]
no_license
Seraf/LISA-PLUGINS-Meteo
eab2b8dd0818e7c7759bf76ac252e001cfe53f5e
8f13758f2d27c79a7faf4dd77ab77b3c3a239c8b
refs/heads/master
2016-09-06T17:45:32.263142
2014-09-07T21:04:42
2014-09-07T21:04:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
__author__ = 'julien' from lisa.plugins.Meteo.web import * from lisa.plugins.Meteo.modules import *
[ "julien.syx@gmail.com" ]
julien.syx@gmail.com
4c5a259e529aaf7a1ed0a82cfeaaad1a43b3f1d5
4eac163db49222cd2222ccb152599289d677420d
/AutoRendering.py
0a17a5d02b82d2f04fcd857ac88d403207432370
[]
no_license
hcwong37/try
ba3ab60d19c1acdff33a1d66b718be2155341f2b
acab6a497fb3b6880db8df3824665112f1ff5438
refs/heads/master
2020-04-23T14:23:40.035945
2019-02-18T06:53:35
2019-02-18T06:53:35
171,230,424
0
0
null
null
null
null
UTF-8
Python
false
false
10,935
py
import re from tkinter import filedialog from tkinter import * import shutil, os def get_inital_filepath(): root=Tk() initial_filepath = filedialog.askdirectory(initialdir = "/",title = "Please select a directory") root.destroy() return initial_filepath def find_fdsfile(initial_filepath): ...
[ "noreply@github.com" ]
noreply@github.com
eb6dc34d5e55e9a40b0dee05f1549c2adb7a5e0a
f4d249fb0a62e68eba1ff042dad3f90066cd12f7
/onig/_onig_cffi/__init__.py
5313fcd6c1c958a5dd6c80fcebfa8b7cb0cfdced
[]
no_license
koehlma/python-onig
2138064f2957e2742ded7b8a96f9216afb49d619
220e9e371d19858e8409aa4f9b54a2396705f008
refs/heads/master
2021-02-10T17:11:51.025184
2020-03-02T21:11:04
2020-03-02T21:11:04
244,402,228
1
0
null
null
null
null
UTF-8
Python
false
false
310
py
# -*- coding:utf-8 -*- # # Copyright (C) 2020, Maximilian Köhl <mkoehl@cs.uni-saarland.de> from __future__ import annotations try: from ._onig_cffi import ffi, lib except ImportError: from .build import builder builder.compile() from ._onig_cffi import ffi, lib __all__ = ["ffi", "lib"]
[ "mkoehl@cs.uni-saarland.de" ]
mkoehl@cs.uni-saarland.de
8ec0a8595f63d22f53cf6d3ff9b89ed623934f82
7d521d7541ae3470790c2045b8ea5fe12fd57b3a
/dash/migrations/0009_auto_20210625_0254.py
d8a5a40a31791482c27a73e890ae07ad38685f62
[]
no_license
AmbroTall/admindashboard
ffaf754572549da5a5768c59e31314a7a66534a3
af74045a2d59f601675b8e4a9f595e8a192c5eab
refs/heads/master
2023-06-04T21:22:34.898923
2021-06-27T11:27:55
2021-06-27T11:27:55
380,715,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,049
py
# Generated by Django 3.2.2 on 2021-06-24 23:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('dash', '0008_auto_202106...
[ "wamaplotytall@gmail.com" ]
wamaplotytall@gmail.com
8eda5ec5410f3fbd05334a9373b1bcbc7f2371f3
148072ce210ca4754ea4a37d83057e2cf2fdc5a1
/src/core/w3af/w3af/plugins/attack/payloads/payloads/hostname.py
102ad20b04e92b675013d7442960f156788aea8e
[]
no_license
ycc1746582381/webfuzzer
8d42fceb55c8682d6c18416b8e7b23f5e430c45f
0d9aa35c3218dc58f81c429cae0196e4c8b7d51b
refs/heads/master
2021-06-14T18:46:59.470232
2017-03-14T08:49:27
2017-03-14T08:49:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,225
py
import re from w3af.plugins.attack.payloads.base_payload import Payload from w3af.core.ui.console.tables import table class hostname(Payload): """ This payload shows the server hostname """ def api_read(self): result = {} result['hostname'] = [] values = [] values.app...
[ "everping@outlook.com" ]
everping@outlook.com
a4d17cf658398bf0e01dfc2b2d1025ac973d23a0
607825970795fc2dc762514d0c072bbb0146f1af
/BarcodeDetection/detect_barcode.py
7e1dd0cbfa2606fd1f02e05799a5b79fadf2a093
[]
no_license
Umesh27/OpenCV_Learning
5098ef95ef21fc86d4b617c167c4fd0ea4322ed6
adac07f8228bf0b5ba754423a5a2cfbcf4693187
refs/heads/master
2020-04-11T08:20:35.007033
2019-01-10T09:11:18
2019-01-10T09:11:18
161,639,735
0
0
null
null
null
null
UTF-8
Python
false
false
2,891
py
# Import the necessary packages import numpy as np import argparse import imutils import cv2 from imutils import paths import matplotlib.pyplot as plt # construct the argument parse and parse the arguments # ap = argparse.ArgumentParser() # ap.add_argument("-i", "--image", required = True, help = "path to the image f...
[ "noreply@github.com" ]
noreply@github.com
920dfa794e9ee8d916bd99629982e8902848ab1c
bbea9b1f64284c9ca95d9f72f35e06aa39522c67
/Scripts/ANN_AllAnalysis_ClimateModels_v4-RandomNoise-TestingDataSets.py
9b15f07bb925579eb322c14b61bba9952efca5af
[ "MIT" ]
permissive
zmlabe/ModelBiasesANN
1e70c150bd8897fa5fb822daf8ffad0ee581c5f1
cece4a4b01ca1950f73c4d23fb379458778c221e
refs/heads/main
2023-05-23T06:05:23.826345
2022-07-22T18:36:27
2022-07-22T18:36:27
339,145,668
7
0
null
null
null
null
UTF-8
Python
false
false
63,029
py
""" ANN for evaluating model biases, differences, and other thresholds using explainable AI (then tests different data) Reference : Barnes et al. [2020, JAMES] Author : Zachary M. Labe Date : 21 June 2021 Version : 4 - subsamples random weight class (#8), but tries different noise """ ### Import packag...
[ "zmlabe@rams.colostate.edu" ]
zmlabe@rams.colostate.edu
4a3c7a1e00a5444bcf0a10b868406de4c76ff58f
6df3e84690c401a117af4b7cc141e5e4bbaa2403
/numpy/five.py
61144d0f4152f57b07eaf461fbd27ad36c99736c
[]
no_license
shreyasbh/IntroToAI
61f74d148da2bab7990e9508bf95d04739ef68af
c87de4f30b22a2c1b28c966f1661c431cd3012c1
refs/heads/master
2020-05-03T07:30:59.451302
2019-05-16T17:50:36
2019-05-16T17:50:36
178,500,098
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
import numpy as np X = np.arange(25).reshape(5,5) print(X) print(X[X>10]) x = np.array([1,2,3,4,5]) y = np.array([6,7,8,9,10]) print(np.intersect1d(x,y)) print(np.setdiff1d(x,y)) print(np.union1d(x,y))
[ "shreyas.bh@gmail.com" ]
shreyas.bh@gmail.com
4df13176dbf249e6cef42f2f6f03bd91198f8fa9
04c5d750d957820436535af12e847ca05e7c73c3
/Problem5.py
2dbe5c5c3cbfe7f7020166250516c42d627c11b8
[]
no_license
tieuguy/Project-Euler
6f757dc928778e25547638f6cc0c622b33fe7727
bef95148722ab3c07eaf3277c657ddffd8d3157d
refs/heads/master
2020-05-04T21:14:30.354948
2015-10-01T17:29:29
2015-10-01T17:29:29
11,179,787
0
2
null
2015-10-01T17:29:29
2013-07-04T14:50:16
Python
UTF-8
Python
false
false
576
py
''' Created on 2013-06-27 @author: tieuph Smallest multiple Problem 5 Published on Friday, 30th November 2001, 06:00 pm; Solved by 180966 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all ...
[ "gauryuuki@hotmail.com" ]
gauryuuki@hotmail.com
eac61dbcf23e927d2e19a9010a360a1d24b06a8a
52ddbf21991415c3a567881f128b8ef477f54d10
/DataAnalysis/day02_StatisticAnalysis/pd_05.py
c1153ca4073710f5e34256fe149790193825cb1d
[]
no_license
happy5205205/PythonProjects
265074198c3e6d09af25a50b601bd78fa8d367e1
a78845ef30cfc0c680dded336ce9e85e3970b771
refs/heads/master
2021-07-15T21:48:24.472616
2021-06-25T03:41:44
2021-06-25T03:41:44
160,160,103
1
1
null
null
null
null
UTF-8
Python
false
false
1,871
py
# 使用Python进行假设检验 import pandas as pd grades_df = pd.read_csv('..//data//grades.csv') # print(grades_df.tail(3)) # print(grades_df.info()) early_submission = grades_df[grades_df['assignment1_submission'] <= '2015-12-31'] # print(type(early_submission)) # print(early_submission.head()) later_submisson = grades_df...
[ "30718405+happy5205205@users.noreply.github.com" ]
30718405+happy5205205@users.noreply.github.com
9ac0f02a82eef6628f4229af2b726135e8012d50
60b48df762a515a734cfbedd7ca101df43f04824
/python/ray/data/impl/pipeline_executor.py
8fdaed897bb30c088d238f2afa41bdc8ad830696
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
LuBingtan/ray
a02b13c4dceab2b0d54870fd3abae5c11bae916e
298742d7241681ee1f307ec0dd3cd7e9713a3c7d
refs/heads/master
2023-03-05T16:32:35.596725
2022-06-05T23:21:53
2022-06-05T23:21:53
223,334,544
0
1
Apache-2.0
2023-03-04T08:56:53
2019-11-22T06:01:51
Python
UTF-8
Python
false
false
5,793
py
from typing import Any, Callable, List, Optional, TYPE_CHECKING import time import concurrent.futures import logging import ray from ray.data.context import DatasetContext from ray.data.dataset import Dataset, T from ray.data.impl.progress_bar import ProgressBar from ray.data.impl import progress_bar logger = logging...
[ "noreply@github.com" ]
noreply@github.com
ad14adf6d06a381b56dbed4933f77e2d167fe623
b5e8cb4102965199b0c35c995591a0eca1b589f2
/프로그레머스/Level1/두개 뽑아서더하기.py
a8659d10b25ac3e6895e1be22edec8593c79cf61
[]
no_license
smilejakdu/leetcode_with_silva_mento
36af4d8242e700f8f47567c6fdc8eb116c44c0b1
09a2fe53befe3fa3b23eb7f14059b8d897fd53b5
refs/heads/master
2022-12-20T01:11:27.691518
2020-10-04T15:16:31
2020-10-04T15:16:31
283,961,081
0
0
null
null
null
null
UTF-8
Python
false
false
953
py
''':arg 정수 배열 numbers가 주어집니다. numbers에서 서로 다른 인덱스에 있는 두 개의 수를 뽑아 더해서 만들 수 있는 모든 수를 배열에 오름차순으로 담아 return 하도록 solution 함수를 완성해주세요. numbers의 길이는 2 이상 100 이하입니다. numbers의 모든 수는 0 이상 100 이하입니다. numbers result [2,1,3,4,1] [2,3,4,5,6,7] [5,0,2,7] [2,5,7,9,12] ''' # numbers = [2, 1, 3, 4, 1] numbers = [5, 0, 2, 7] def so...
[ "ash982416@gmail.com" ]
ash982416@gmail.com
85745777d24514c61da17c453cfd742adca6b9eb
58bb600d75a04f7d5f7a20037933f859633e3ac7
/bin/django-admin.py
48a804919a5598ec4182f0b22a33add68ce4a62a
[]
no_license
johannesdulberg/musicWebsite
98e432eff2abf58d2bbe0cfb63f8ce39a6337a00
2bfae02f96120a808bb47197685440996f06cbf4
refs/heads/master
2023-07-07T02:10:37.828650
2021-08-04T21:35:36
2021-08-04T21:35:36
392,821,905
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
#!/Users/johannesdulberg/musikWebseite/venv/bin/python3 # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django-admin.py was dep...
[ "johannesduelberg@web.de" ]
johannesduelberg@web.de
110149fbbfe85f55d1a687d001ab8e149c0ad2cb
2eb0782b9e509144df6c3ff2c3139c595fb10f93
/genutiv/analysis/compare.py
1ae52e6663354f7f43c1561c7ba23bc40703b2bf
[]
no_license
pamolloy/Genutiv
07bccfbabf012e57b167d280301844dee1cba012
9055fc829a431c4c56d3723db307e8352b2adf79
refs/heads/master
2020-04-02T15:05:39.178620
2013-08-07T19:45:31
2013-08-07T19:45:31
2,419,087
0
0
null
null
null
null
UTF-8
Python
false
false
2,222
py
# -*- coding: utf-8 -*- # # art.py # # PURPOSE: # Create a data structure with nouns matched to patterns and assess whether # pattern could accurately guess gender of each matched noun. # # TODO(PM) There are numerous data structures in this script. Is it better to # build them like pattern_dict or rever...
[ "philip.a.molloy@gmail.com" ]
philip.a.molloy@gmail.com
743358a83967e139371240beada4662fc3db7711
9aa2d9a83a281e7a412a7fb06017211e637d6ac1
/specialTools/GatedGraphConv.py
edf6d00413aefddec0819b2e7cb47829fe0bf99e
[]
no_license
qq563902455/Metro_road_map
a9356ab53ca08b3dc4ce6da23d33fffc981f5951
29ea80c233c9a187473a188971ab04c3d6dc780b
refs/heads/master
2020-05-01T05:17:18.840867
2019-04-14T15:04:24
2019-04-14T15:04:24
177,297,522
1
0
null
null
null
null
UTF-8
Python
false
false
2,416
py
import torch from torch import Tensor from torch.nn import Parameter as Param from torch_geometric.nn.conv import MessagePassing from torch_geometric.nn.inits import uniform class GatedGraphConv(MessagePassing): r"""The gated graph convolution operator from the `"Gated Graph Sequence Neural Networks" <https...
[ "563902455@qq.com" ]
563902455@qq.com
216b3317de3e2928c534ce693b4693e0864b369d
4bd4f19a8ec327ef38155981b049f08af45b5b65
/setup.py
1b52c804866930c9d0eaf48200dd4271ec2e62f3
[]
no_license
twined/imgin
d6b47eb91f75aeea9741c921fedfa16ee59cfa59
b6f57246663f635d27f24129a62eeb81fe10ffae
refs/heads/master
2021-01-19T08:03:19.892210
2017-04-28T09:45:52
2017-04-28T09:45:52
9,169,108
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
# -*- coding: utf-8 -*- from distutils.core import setup from setuptools import find_packages setup( name='imgin', version='1.0.1', author=u'Twined', author_email='www.twined.net', packages=find_packages(), include_package_data=True, url='http://github.com/twined/imgin', license='Do wha...
[ "trond@twined.net" ]
trond@twined.net
1f8add9bf8c7b5d9e859ffd6d3f42dbcc6ffaead
e58625a039201d3b1b588175e90ad5f960ab7a1d
/examples/SI_model.py
1a1a685aba21b5b129c2c570a8c5610ea985f26e
[]
no_license
ee08b397/graphism
451bbc7580a873151e5ffc4860ae5373a2d60139
010023d8d261fade8c1664c379622eb2666bc5ca
refs/heads/master
2020-12-25T09:47:11.792898
2013-06-01T15:35:29
2013-06-01T15:35:29
40,366,217
1
0
null
2015-08-07T15:07:00
2015-08-07T15:07:00
null
UTF-8
Python
false
false
1,001
py
import graphism.graph as gg import graphism.generators.uniform as ug """ This is an example of how to simulate an SIR model using the graph_generators.uniform_graph module along with the cascade functionality of the graphism.Graph object. The output, to stdout, is the I curve. The time units are arbitrary,...
[ "akellehe@gmail.com" ]
akellehe@gmail.com
2efa37dc9c262a28dbac42705bb7457067a8f29a
40d978aa02335dd0cbab732dc4c8129aaf8590df
/term_sheet_generator_1173/settings.py
8ae02a9064ae45703b98df27ec4632a848e41df7
[]
no_license
crowdbotics-apps/term-sheet-generator-1173
ab35fa1798295c7d8a1ada395cd875bb9a351b99
86c2995f7dfa1bfbe3f1a90e04f1ea23bbca105c
refs/heads/master
2022-12-09T11:05:41.405844
2019-03-03T23:41:55
2019-03-03T23:41:55
173,643,543
0
0
null
2022-12-08T01:42:56
2019-03-03T23:40:17
Python
UTF-8
Python
false
false
4,612
py
""" Django settings for term_sheet_generator_1173 project. Generated by 'django-admin startproject' using Django 1.11.16. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/setti...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
f153f8b04595965bdd671292cb2ba6d75667583b
ae0e54ef5b812f33d3b508eb41f8d17d9ff1cd6c
/venv/Scripts/pip3-script.py
13428876f339a5729f6ac9f9fa06aa311d0d42c5
[]
no_license
YANHongHu/Museum
ff86c366fc91d738ab3f81c71a0d3941acb2165b
b3b6c959913fb210dc8074d5cc7c90aea0a2346a
refs/heads/master
2020-08-12T10:30:22.588888
2020-06-20T06:29:48
2020-06-20T06:29:48
214,750,729
0
0
null
2020-07-07T11:16:05
2019-10-13T02:49:24
Python
UTF-8
Python
false
false
412
py
#!C:\Users\10783\PycharmProjects\Museum\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0...
[ "49400532+YANHongHu@users.noreply.github.com" ]
49400532+YANHongHu@users.noreply.github.com
e0964a465a87da00c114055f9cc183b44a647069
f8f3bf36b3d207588a986e912c5a878e3e358ed3
/responsive_CV/wsgi.py
3fb9ef74a4d21d7b2e98d2eae87670d001094980
[]
no_license
marchounto/responsive_CV
913ee3ffad8da241d6b9f9c2b18039afa845b5ab
a44f24e8f822b5c4f5be198ee750b347033aa689
refs/heads/main
2023-01-24T21:36:32.274053
2020-11-27T05:44:20
2020-11-27T05:44:20
314,924,971
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for responsive_CV project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "mghounto@gmail.com" ]
mghounto@gmail.com
439f85ede51fa57f7232cd941df10dfe8ca12043
70feb280ddc7b74eb1197f6f317c6d395d8759cf
/predict.py
47c2dfc951f274af09d14c00b1e49ada6f16d57d
[]
no_license
bdwinter10/Udacity-DSNN-Project-2
57f3e23f52b817d490d0220cf5d10c723e076b85
3cf001a80c98eadec664606ddd0a4b8546913d08
refs/heads/master
2020-05-17T04:47:34.993982
2019-05-09T07:09:15
2019-05-09T07:09:15
183,517,369
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
import os import torch from torch import nn from torch import optim import torch.nn.functional as F from torchvision import transforms, datasets,models import PIL import json import argparse import functions_for_predict parser=argparse.ArgumentParser(description='Specify file path for model') parser.add_argument('path...
[ "noreply@github.com" ]
noreply@github.com
689af6ea35199c964a9ea2a94f271c7e8d336d4d
4b4d59cef7f30aeab3ab8798dcbb28c8abbab8e5
/queues.py
d44e90e00d462ccf8b53eff111f62e6a14f2c480
[ "Unlicense" ]
permissive
pelegm/qpyscript
6fe83c0513aa2add0b4a838eeb3fbf43ffaf57b7
6e6c72f89e77d0e3d60a7cc701060dcda6340a39
refs/heads/master
2021-01-18T21:14:36.929753
2016-04-27T08:43:38
2016-04-27T08:43:38
35,080,164
0
0
null
null
null
null
UTF-8
Python
false
false
1,175
py
""" .. queues.py """ ## Framework import Queue class PushQueue(Queue.Queue): def push(self, item, block=True, timeout=None): """ Push an *item* into the queue. If optional args *block* is ``True`` and *timeout* is None (the default), block if necessary until a free slot is available. If ...
[ "freepeleg@gmail.com" ]
freepeleg@gmail.com
6a2e8e98c0cbf7ccddabb9664edf9965ccc63e1f
359e8fc72fb0c092dfd29ee952262e06b129eeaf
/export/text.py
aa1b4b040cf255ac8fdf57942d274866577ab784
[]
no_license
BitBitcode/Toolbox
2bce5eb7714c557e18f440280a7f9f9c0f09f2e4
c42b73fb657df4065030d19b2e8e012c94620b44
refs/heads/master
2022-12-02T10:31:35.456242
2020-08-18T03:55:21
2020-08-18T03:55:21
287,693,937
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
import datetime # INS_input_file = open("./PPI/configuration.ascfg", "r+", encoding="utf-8") # # INS_input_file.seek(2) # # with open("file.txt") as f: # num = reversed(INS_input_file.readlines()) # # for line in a: # # print(line.strip()) # file_num = INS_input_file.read(1) # # print("[", file_num, "]") # pri...
[ "1378028451@qq.com" ]
1378028451@qq.com
437ef66dc3ac0f7cf2e9efffac97408be8c83276
35109088e79989e8b0ca9d9ddadad1546eebc8e3
/AB/linux2/day20/code/03_mylist.py
1d6725b8fc9f0dfd48f26baa85172076a58f52d0
[]
no_license
ABCmoxun/AA
d0f8e18186325bfd832b26f3b71027d1dc8255b2
c2c4a5b6683555b5d6200730b789d6e655f64c7f
refs/heads/master
2020-03-25T11:11:54.882204
2020-03-03T05:19:07
2020-03-03T05:19:07
143,722,606
1
0
null
null
null
null
UTF-8
Python
false
false
621
py
# 02_mylist.py # 此示例示意复合赋值算术运算符的重载 class MyList: def __init__(self, iterable): self.data = [x for x in iterable] def __repr__(self): return 'MyList(%r)' % self.data def __add__(self, rhs): print("__add__方法被调用") return MyList(self.data + rhs.data) def __iadd__(self, r...
[ "1945568441@qq.com" ]
1945568441@qq.com
099c4e2af0ac551a0ae579ae294358ef5b0e82a3
2dc8c387de8bf7a6bd7506bd128b9dfa2bc8a3e2
/0x05-python-exceptions/6-main.py~
df03a1652e5a941660b8acdf869fdf3a7c3c3f5a
[]
no_license
yasmineholb/holbertonschool-higher_level_programming
ab57f9aa718ad8ebeb927a49c007e0232b0125e6
ee66c781e9421a0dbf03795707572d9d1183e42e
refs/heads/master
2020-09-28T19:35:52.740417
2020-06-15T09:45:18
2020-06-15T09:45:18
226,847,521
0
0
null
null
null
null
UTF-8
Python
false
false
154
#!/usr/bin/python3 raise_exception_msg = __import__('6-raise_exception_msg').raise_exception_msg try: raise_exception_msg("C is fun") except NameErr
[ "1055@holbertonschool.com" ]
1055@holbertonschool.com
001921a2386878b316b50376d0083b94d26c6a66
bee689a9b18b8763641822bfe074bf9490ccd80f
/blog/migrations/0001_initial.py
216c61a1cb8c5778ab624f9fc18e78ad933150d1
[]
no_license
forefore/myfirstblog
c408a81ed470f26a32e65054a74d8a7f627d4c13
f2d6613346c8e1114623e17c949dd15f6e26aeb6
refs/heads/master
2021-01-11T08:25:39.146685
2016-12-18T16:03:47
2016-12-18T16:03:47
76,792,667
0
0
null
null
null
null
UTF-8
Python
false
false
1,051
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-18 15:29 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True depe...
[ "hellocin@naver.com" ]
hellocin@naver.com
0c5a0e9bb4bb4d248540a7e112f80b3d665d4eb8
dca5b42e443ab5c7b3035bfe0ede0a82c3fbe1c9
/captioning_generation/mm_train.py
beab05976aa8980b4d46c503f7e02121b2e66c55
[]
no_license
hduwbf/WSDVC
5409a3c8b5da5024b89bf7534554c0a8e6280dfe
7e29bd5af38c7221bd1b49472769c6a024b27c0e
refs/heads/master
2023-07-29T01:01:53.053648
2021-09-15T04:05:10
2021-09-15T04:05:10
405,909,348
0
0
null
null
null
null
UTF-8
Python
false
false
7,332
py
import torch # import time from mm_dataset import * from mm_lstm_model import * import argparse import torch.utils.data as data import time def train(model, data_loader, epoch, optimizer): print('Train Phase...') model.train() _start_time = time.time() accumulate_loss = 0 for idx, batch_data in enu...
[ "wubofeng@baidu.com" ]
wubofeng@baidu.com
d0f27be1520e913b4c21d352643bf4d0bee5431f
4a06132735e43664225f69625764a235efdd2f11
/zips/script.module.python.twitch/resources/lib/twitch/scraper.py
125270ed93c385acb7a7abfc681e0bed95134233
[]
no_license
vbprofi/kodi-repo
2da2b65054a2cd625ca5ff3a59e7d263fa567a94
767b47ca91c168c733ba2bf1f0f4fce22705dfde
refs/heads/master
2023-05-30T12:51:43.071176
2021-01-15T04:54:32
2021-01-15T04:54:32
129,613,694
0
1
null
2023-05-22T20:47:22
2018-04-15T13:38:21
Python
UTF-8
Python
false
false
4,491
py
# -*- encoding: utf-8 -*- """ Copyright (C) 2012-2016 python-twitch (https://github.com/ingwinlu/python-twitch) Copyright (C) 2016-2018 script.module.python.twitch This file is part of script.module.python.twitch SPDX-License-Identifier: GPL-3.0-only See LICENSES/GPL-3.0-only for more information...
[ "vb-profi@mail.ru" ]
vb-profi@mail.ru
9f74addcc487053f798f9c7eb0880637f06f1718
39b27d4e6057a0f13306fc189ce028e659171daf
/admin/routes.py
5e7108e52b6ab4b88aac02e2abcc528c278cd44a
[]
no_license
abhisheksahanii/HDPS-heroku
475c62b0f186db5337c8a6ead4343651e5ff1cd0
f48fab8c1f9fe6fdb565e43dbfd70ab705460ed9
refs/heads/main
2023-04-24T23:32:27.265375
2021-05-14T09:04:09
2021-05-14T09:04:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
from flask import Blueprint from flask import render_template, redirect, url_for routes = Blueprint('routes',__name__,url_prefix='',template_folder='templates',static_folder='static') @routes.route('/patregis') def patregis(): return render_template('patregis.html') @routes.route('/docregis') d...
[ "noreply@github.com" ]
noreply@github.com
824098a238b49fa0de929e84ad06beda341fe072
d2b6f0ff11e8c0cc22cc7a1a8b2d0d46e84e4337
/sport_sessions_crawling/run.py
9a13992be1aabd20e3448cd1c2ba46e20a260d72
[]
no_license
Korriliam/sport_sessions_crawling
b98767a0feaff17a3b5f840969910129a393fd66
6bdd03d2d86c2afd7f742fe2f0672bc946b786ab
refs/heads/master
2021-01-11T21:18:22.010064
2017-01-14T23:36:13
2017-01-14T23:36:13
78,759,501
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
#!../bin/python from sport_sessions_crawling.app import app app.run(debug=True)
[ "rainrider37@gmail.com" ]
rainrider37@gmail.com
801fb648eeb0220cbcf1e0899d78adadd46889f3
954e8fa001e9cdde5cd7a3e9fa95f27357c09957
/stack&queue.py
645744180548dd02a2b262e7304a815c35b0ebc4
[]
no_license
Mutan0105/func2
2b7600e1ed4a8011ae0694cb3cc453553c639a78
c2fb72c16b3b4388e1a84aa84bd7067caf7e993b
refs/heads/master
2020-03-09T18:35:39.982909
2018-04-26T08:52:39
2018-04-26T08:52:39
128,919,266
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
#!/usr/bin/env python # encoding: utf-8 class sq(object): def __init__(self,list_a): self.list_a = list_a def shift(self): value = self.list_a.pop(0) print '被移除的值为:%s' % value print self.list_a def unshift(self,val): a = [] a.append(val) #采用insert()方法可...
[ "1290453107@qq.com" ]
1290453107@qq.com
a178ce9cd539dac2e2fdc991ca2c461544facb07
f49bb97d69f3e4e674ee8cca25e2eabb94a4bfee
/PiCamera/continous_feed.py
b4be31fdb59ba127b13cf823378ec6983e33a018
[]
no_license
PapaSilverback/PiCode
010d6454f9ccb77679e00bcdddb9282102a5552f
19dfd7500464f9c5d08506f2186b8568838fc958
refs/heads/master
2021-01-12T12:14:09.747286
2016-11-05T21:39:31
2016-11-05T21:39:31
72,377,601
0
0
null
2016-11-05T21:39:31
2016-10-30T21:48:51
Python
UTF-8
Python
false
false
501
py
import cv2 from picamera.array import PiRGBArray from picamera import PiCamera import time camera = PiCamera() camera.resolution = (500, 500) camera.framerate = 32 rawCapture = PiRGBArray(camera, size = (500, 500)) time.sleep(0.1) for frame in camera.capture_continuous(rawCapture, format="bgr", use_video_port = True)...
[ "will.black1992@gmail.com" ]
will.black1992@gmail.com
ef6c9c786cc9e75980d742ed1f9040a9e53bff10
560f1b715bd3999556db5ba4a3d6781e95315279
/benchmark_3d/case4/export_grid.py
d0eece4cef7639bbd3e3be1b681bfeab03cedbc0
[]
no_license
rbe051/fracture_benchmark_grids
779d0724e2404110643f59fbb14b1b9b14a667e7
c412526f01702fc743e9dd8480eefba5becb983a
refs/heads/main
2023-02-16T04:51:25.704727
2021-01-11T13:49:39
2021-01-11T13:49:39
328,632,063
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
import os import porepy.io.gridWriter as ioWriter import case4.data as problem_data def export_grid(path): gb, domain = problem_data.create_grid(False, False) gb = ioWriter.mergeGridsOfEqualDim(gb) ioWriter.dumpGridBucketToFile(gb, os.path.join(path, "benchmark3d_4.txt"))
[ "rube@norceresearch.no" ]
rube@norceresearch.no
9a3579d4f1230bcc149f55ac248b2691ab544c25
ef355c873e68f27e60d5fe83a29110df7e6bdce8
/ahr/ahr/doctype/leave_block_list/test_leave_block_list.py
3fa71b2fb7356f315599fd400bb62159028679c1
[]
no_license
Shakir73/ahr
5c7b9090c6b6271b7e88641fde0ade3ec4fa1dad
93078b2218552b9d9e6f90f1b3d18f56b822e92b
refs/heads/master
2022-03-30T11:36:01.834666
2020-02-06T11:24:23
2020-02-06T11:24:23
238,662,518
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, AFS and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestLeaveBlockList(unittest.TestCase): pass
[ "engr.abdul.bari.ansari@gmail.com" ]
engr.abdul.bari.ansari@gmail.com
8fb3ba787987e58eb99b7a6a9a6bc9a3bec09ac7
b7dac787533bf79dec4c891555a7b5bc1d8efc72
/Crypto-Suite/utils.py
f3dc7a199dea7821fc836e5b0d58e1ff2f9611ac
[]
no_license
haricotVerts/Python-Scripts1
4132ce2a685e3b7f37203a29320ba0bd129a0381
8a1f51edb86ffdfc1ef1550b728f55d17ab592a7
refs/heads/master
2021-06-14T06:10:57.639055
2017-04-12T02:58:08
2017-04-12T02:58:08
64,714,999
0
0
null
null
null
null
UTF-8
Python
false
false
3,652
py
#!/usr/bin/env python3 -tt import random class BinaryConversionException(Exception): """Custom exception for invalid binary conversions""" pass def is_superincreasing(seq): """Returns True iff `seq` is a superincreasing sequence""" ct = 0 # Total so far for n in seq: if n <= ct: ...
[ "noreply@github.com" ]
noreply@github.com
c9d6f1cbddc96366448edd0c1e9a678b44dcc803
dcdff4e7fd525e4e31a2227903f80c76339ff8cf
/lab/lab3/cs120_lab3_ctr_df.py
7b781e54dffb1232e5bdfe23f0dcef9a16062a1c
[]
no_license
williamcs/cs120
dfdaac80477559ade8d058ee0b9f80372977a4bf
4b0a7b8445a0bfcb6ca323d3a9ce632dede294c8
refs/heads/master
2020-04-06T07:10:50.835383
2016-09-15T03:15:30
2016-09-15T03:15:30
65,379,083
0
0
null
null
null
null
UTF-8
Python
false
false
73,863
py
# Databricks notebook source exported at Wed, 10 Aug 2016 12:08:49 UTC # MAGIC %md # MAGIC <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"> <img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png"/> </a> <br/> This work is licensed...
[ "solobird00@hotmail.com" ]
solobird00@hotmail.com
45ca5e64e0f74f7394b9a7b9f91f4ae3ceb07e3f
842b426e4a088c8473f4d1f4c13f50b96893cc13
/6_pytestTutorial/tut1/myApp/sample.py
7902f47ce738a4cc14e40ba60274302179e4daee
[]
no_license
ziejaCode/Testing-with-Python-Practice
4b6395ab33ae8ae1edc3b4ceb7778c2d65af37e6
a4044740dda98c812316755dbecc81ead26a31c5
refs/heads/main
2023-05-29T23:44:31.723220
2021-06-10T18:16:42
2021-06-10T18:16:42
322,858,892
0
1
null
2020-12-19T16:13:10
2020-12-19T13:53:31
Python
UTF-8
Python
false
false
41
py
# sample def add(a, b): return a + b
[ "ziejaCode@gmail.com" ]
ziejaCode@gmail.com
894e94b103e884a179439744e06b6b66ed7c8528
1d43c6a15d112ff16ed36da8d5269b87c6a50b8c
/constants.py
3a662dbe3f775c9fdfde5ee4e49143910d084292
[]
no_license
mondwan/py-iems5718-asg2
cd5f49148e5ecdc96929d1583e82cc1011ada947
a4db0680a8fa10d1ad625d1996861b796ad46cef
refs/heads/master
2021-01-18T08:13:00.852027
2016-02-28T16:39:04
2016-02-28T16:39:13
52,731,319
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
""" - `File`: constants.py - `Author`: Mond WAN - `Email`: mondwan.1015@gmail.com - `Github`: https://github.com/mondwan - `Description`: Keep project's constant """ import os PROJECT_DIR = os.path.dirname(__file__) TPL_DIR = os.path.join(PROJECT_DIR, 'tpl')
[ "mondwan.1015@gmail.com" ]
mondwan.1015@gmail.com
76b445e86257dbf756b4d3bf681844c0e89e459e
60c02f59d51b2ada2e9cf72846e1d403cd13e227
/daima/bowen1.py
c5f0030eef9a95b67834782520d8426395777711
[]
no_license
bingruoxin/bowen
e1e0c292515422bf3cc56048701570c9580bab8b
5a2da1830d0e6291191cd8d59f8d8897b73fcba4
refs/heads/master
2020-09-16T09:13:38.512010
2019-11-24T10:34:43
2019-11-24T10:34:43
223,723,389
0
0
null
null
null
null
UTF-8
Python
false
false
6,345
py
#!/usr/bin/python # -*-coding:utf8-*- # b = input('请输入:') # if "a" in b: # print(123) # else: # print(456) # b = input('请输入:') # if "a" == b: # print(123) # else: # print(456) # while 1: # i = (input("输入5个字符:")) # if i[0] == '1' or i[-1] == '3': # print(type(i)) # a ='asdfqb' # print(a[:...
[ "bingruoxin0320@163.com" ]
bingruoxin0320@163.com
f5ffe173d80f584f827211c6c21f5bd0fc87581b
eb6fd32a4286121bba412874b2f79552aeb03e24
/test_boundary_errors.py
ee03ccc406bdec63888f510a84430867bd6acd13
[]
no_license
ScottHull/bilinear-interpolation
b8b259cc4150212ecf85333b1c69eb8a0dded193
68ef72cbe313121863e9b6ab232913c1c664598c
refs/heads/master
2021-10-25T05:33:42.776010
2021-10-19T20:35:49
2021-10-19T20:35:49
213,478,965
0
0
null
null
null
null
UTF-8
Python
false
false
3,552
py
from interpolation import GenericTrilinearInterpolation, BilinearInterpolation import pandas as pd from random import randint import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # df = pd.read_fwf("granite.rho_u.txt", header=None) # df = pd.read_fwf("dunite.rho_u.txt", header=None) df = pd.read_fwf...
[ "scottdhull21@gmail.com" ]
scottdhull21@gmail.com
c2b193156cca784bd4e2fa529c93c12ef1efb16b
4a32707cbb9ac0c0d8e5226ff1119ba7b01b1a59
/plot.py
959d4fc440f26d5256e1bcbbf3ad609ac2f8b43f
[]
no_license
sikeda107/MachineLearning
99aab32eea8f330eb3508a16505da72f412eda89
08e6e1f7b48f217e8b8a3261aa26812d30517413
refs/heads/master
2020-12-25T18:32:12.476954
2017-06-11T09:28:01
2017-06-11T09:28:01
93,956,093
0
0
null
null
null
null
UTF-8
Python
false
false
3,602
py
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn import svm from sklearn.neural_network import MLPClassifier from sklearn.linear_model import Perceptron def main(): #load_iris method load and return the iris dataset iris = datasets.load_iris(...
[ "s.ikeda107@gmail.com" ]
s.ikeda107@gmail.com
d55801ffc1176cb79ce7df1a7013114e2de1a4a3
b6515a691c57cbad1bfb515a4f2f5eb0313e7069
/blockchain.py
cb48d1ec954bd2cb3d9045469883b12c5dbd2c11
[]
no_license
uddeshyatyagi/Python-Projects
0a0c418e0f20bc76f153f9a1ed25d7d93662a941
9b3219147f4d55052d1ebb9a0d76dbf53124b99e
refs/heads/master
2022-12-29T10:01:46.859917
2020-10-17T14:45:22
2020-10-17T14:45:22
295,388,633
1
1
null
2020-10-17T14:45:23
2020-09-14T11:01:10
Python
UTF-8
Python
false
false
1,801
py
import datetime import hashlib class Block: blockNo=0 data=None next=None hash=None nonce=0 previous_hash=0x0 #in hash(var)=0x0 when var is 0 timestamp=datetime.datetime.now() def __init__(self,data): self.data=data def hash(self): h=hashlib.sha256() ...
[ "noreply@github.com" ]
noreply@github.com
ea051e975794e5012b42a19cfaccd3612ac4cf26
5bc3e960f7153e5d970f507c4d063eed0c4dc679
/pages/urls.py
a1730dd9471dc83b1ae08a1335e0220c7622a6bc
[]
no_license
mantseoko/carzone-gitproject
8a32a3ef46d254916f54ab0fdd65a0e047ca5496
7e19a2dbfa84a5fc9ea06fe443d7887b03a414f9
refs/heads/master
2023-01-19T03:10:33.767314
2020-11-27T19:13:43
2020-11-27T19:13:43
316,019,312
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='home'), path('about', views.about, name='about'), path('services', views.services, name='services'), path('contact', views.contact, name='contact'), ]
[ "lampteydan025@gmail.com" ]
lampteydan025@gmail.com
3560a717abe426c359c92bc4e8d4e473a52f28df
5a3a55976247a1c319a00c269b28b39e91715839
/app/networkapi/utility/templatetags/settings_value.py
da3e5cd3625ab96b0432541b60a07f6a9f0478cd
[ "MIT" ]
permissive
mozilla/network-api
8d54ac92bd0566b6fa417efe0787f439ac5245f7
7feb8ed9bded22ec77c11f930e11f1bb1c93646a
refs/heads/master
2023-08-29T20:31:18.385950
2017-08-08T21:53:16
2017-08-08T21:53:16
82,714,251
3
3
null
2017-08-24T18:17:24
2017-02-21T18:41:20
Python
UTF-8
Python
false
false
208
py
from django import template from mezzanine.conf import settings register = template.Library() @register.simple_tag(name='settings_value') def settings_value(key): return settings.__getattr__(str(key))
[ "pomax@nihongoresources.com" ]
pomax@nihongoresources.com
c1c011df31ae0c941a9eb37d0c9964d3c7b34acf
c2b880dadeaebc0099c1c659db5b5925e0317de4
/myenv/lib/python3.8/site-packages/ellipticcurve/ecdsa.py
24e44f737227368e79f119b51fa3f782810248ec
[]
no_license
nikhilkumily/beinex
6cc1527b2c277a1541e11f5546f20f1c17eab246
daefe3e2040de169fa2a3f762d687279ec30bd61
refs/heads/main
2023-08-16T09:57:32.587488
2021-10-20T13:28:37
2021-10-20T13:28:37
419,336,133
0
0
null
null
null
null
UTF-8
Python
false
false
1,612
py
from hashlib import sha256 from .signature import Signature from .math import Math from .utils.integer import RandomInteger from .utils.binary import numberFromByteString from .utils.compatibility import * class Ecdsa: @classmethod def sign(cls, message, privateKey, hashfunc=sha256): byteMessage = ha...
[ "nikhil@farmersfz.com" ]
nikhil@farmersfz.com
6ace4545ff4e86921e6fef66bb00a43e5b3cc24e
92df79eff5206a0bb8346032324aff4949c1e857
/MDS_Script.py
a6a8f0fd28e7d13514e96de117a7115d50d8e2d5
[]
no_license
ysriram1/Model-Space-Waldo
56d72629cd1bce76bfbee58690d8ceff0ca020bc
523b065afed76082430c366f85a93525c140a0fd
refs/heads/master
2020-04-17T03:09:52.314086
2016-09-14T20:07:44
2016-09-14T20:07:44
67,007,027
0
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
# -*- coding: utf-8 -*- """ Created on Wed Aug 31 00:14:21 2016 @author: SYARLAG1 """ import arff import numpy as np import os os.chdir('C:/Users/SYARLAG1/Desktop/Model-Space-Waldo') temp_fulldataSet = arff.load(open('./data/70s.arff', 'rb')) #just to test fullDataDict = {} dataInfoDict = {} for fileName in os.l...
[ "SYARLAG1@cstcis.cti.depaul.edu" ]
SYARLAG1@cstcis.cti.depaul.edu
bbe533bcb2be40db148e13594cf674deb089b8fc
1f1afe32453a13dbaa7aa54175cb9c218e212593
/LinearRegression/venv/Scripts/easy_install-3.7-script.py
8708dd9a4447874ad120379ce116b2a5abfce666
[]
no_license
etuna/ai-playground
69719e0d7040c16091c0550d3aa76b3037baca8f
c685a1285fdba3b9f448e8814f97e7932e8f2f4e
refs/heads/master
2020-03-31T14:38:01.823894
2018-10-09T18:51:32
2018-10-09T18:51:32
152,303,287
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
#!C:\Users\etuna\PycharmProjects\LinearRegression\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-sc...
[ "etuna@ku.edu.tr" ]
etuna@ku.edu.tr
fca38b0972f451fc1e1547209cc330ca88b8d125
f14a1181b273de29dd07f3aba4ffa099633fbfcc
/indiapets/pets/templatetags/extra.py
0dcdb7a17cd27e5b3ed857f1a04436aa7efab297
[]
no_license
sanjaysupanch/indiapets
9ed866a4240a53b01133087729051ad4ed6004f8
1ccfda2a355842d360095a876d323262b71155f1
refs/heads/master
2021-01-26T09:18:54.099520
2020-07-25T06:01:22
2020-07-25T06:01:22
243,397,755
1
1
null
null
null
null
UTF-8
Python
false
false
161
py
from django import template register=template.Library() @register.filter def add(arg1,arg2): #print(str(arg1) + str(arg2)) return str(arg1) + str(arg2)
[ "deepesh.b17@iiits.in" ]
deepesh.b17@iiits.in
1618a4032e5a8a01ad167263f6fa500ebec6f8bf
ec6befe8126abf2bdb0b4df045ae162c26d9edc9
/network_util.py
f76121a41b632971c69ccbd0c09617ad8221cec9
[ "MIT" ]
permissive
ainaracatgirl/full-body-aruco
74da6660b8da749b3bf032ba6e21e7de3047379c
bf15e3274fc55d7ea6c51772d138933cdc0e00ac
refs/heads/main
2023-08-03T02:07:33.678919
2021-05-26T15:38:17
2021-05-26T15:38:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
import socket import struct from datetime import timezone, datetime UDP_IP = "127.0.0.1" UDP_PORT = 3869 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Setup the communication using "timestamp = 0" smsg = struct.pack('<Qcffffff', 0, b'h', 0, 0, 0, 0, 0, 0) sock.sendto(smsg, (UDP_IP, UDP_PORT)) smsg = struc...
[ "jancraft888@gmail.com" ]
jancraft888@gmail.com
4e0edaf1cd36c0f931aac8d2103253e56aa72e17
52b5773617a1b972a905de4d692540d26ff74926
/.history/binary_20200524142534.py
267e8eb35d054308ed642c67fdebaceeb181260e
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,224
py
def solution(N): print(N) maximumCount = 0 number = format(9,"b") print("wow",number) s = [str(i) for i in number] binary = int("".join(s)) intialNumber = None lastNumber = None totalCount = 0 print("binary",number) for i in range(len(str(number...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
11cbf7a4bddd29395320ad62046747cc7fb6a4fb
cc0efebc589aab1e93590ffdc419e8db22bf805d
/GUI/scripts/Lin_Keringhan/Lin_Keringhan_bakend.py
950dce97a5273ccce85ae0f034c9d875677fc543
[ "LicenseRef-scancode-unknown-license-reference", "CC0-1.0" ]
permissive
medbenchohra/TSP_Heuristics
13e602cc08b7373b582ab861cfad412c26fd982b
1ab0d6af1e51f6648e2514e6133a0a9c9fe3c163
refs/heads/master
2023-01-10T01:25:48.728790
2019-08-30T09:19:14
2019-08-30T09:19:14
194,944,710
0
0
null
2022-12-30T18:17:01
2019-07-02T22:47:41
Python
UTF-8
Python
false
false
19,505
py
import warnings import csv import random import argparse import time #from city import City #from tour import Tour # from matplotlib import pyplot as plt import math #import TsplibParser # ------------------------------------ class Roads(dict): """ A collection of roads with * no duplicates * n...
[ "fm_merouani@esi.dz" ]
fm_merouani@esi.dz
3130d1075d4d7ed976baaacb584e5376d73913ad
898255366819faa4c08f7d636189ff76ea2d8faf
/ParkingLot.py
eae5dfceb6e40b2010141bd968dbaf07625e186e
[]
no_license
MayaGalili/ParkingLot
65218adcf855a2cc84503834bc61c26222226edb
f1a79bc2760ea723db7f470d2eda2e3b0d3edf0e
refs/heads/master
2020-03-22T08:19:26.892511
2018-07-04T19:31:16
2018-07-04T19:31:16
139,759,518
1
0
null
null
null
null
UTF-8
Python
false
false
4,455
py
# -*- coding: utf-8 -*- """ Design a parking lot using object-oriented principles. Created on Wed Jul 4 09:14:28 2018 @author: Maya Galili """ #%% vehicle from random import shuffle class Vehicle: def __init__(self,wheel_num,car_type): self._car_type = car_type self....
[ "noreply@github.com" ]
noreply@github.com
e1a5df95d6a7e0693efa254af2daa09d4db06a79
a1e019f6427828fe7c2b0bdea7d4723ddb7c0734
/src/model/keras_base_lstm_span_v2.py
47504d6ccc27418ab5bbb12a0e9671e56cf128f3
[]
no_license
wenjie-p/pitch_range
0ecf7edef6bd1eb746d4bdad82814c4922b7bb73
b1aa30a9434ab1dffbd3b5e1a172fd7cd44277ca
refs/heads/master
2020-04-15T10:25:41.157383
2019-04-11T02:54:47
2019-04-11T02:54:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,620
py
#!/usr/bin/env python import os os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import sys from datetime import datetime import numpy as np from keras.models import Sequential, load_model from keras.layers import Dense, Activation, Dropout, TimeDistributed, LSTM, Bidirectional from keras.optimizers import Adam from sklearn.p...
[ "thisispwj@outlook.com" ]
thisispwj@outlook.com
d1c765784884bb01fd24afc01ef171c6c03dad97
4fdafad1dbc7b964e65ca69256477384b415b7b8
/增删改查/project/urls.py
b2af8329b683d0b6ed033816396189f28e4bee2b
[]
no_license
langjiliang/lang
7926e73aa73416623ad02090542b8183e3bddf56
77c9a610f32c712f53f11681f0ec6ec5f26b85e4
refs/heads/master
2020-04-04T10:11:07.360297
2018-11-02T15:06:23
2018-11-02T15:06:23
155,845,441
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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') Cla...
[ "1466816779@qq.com" ]
1466816779@qq.com
04f8b062650b5798b5593f2da2345014e4f3e125
9e6c8354443df13dcbb85e33f6d9a2c25cd5440c
/botI/src/botI/msg/_control_msg.py
d6c53da1e7c1564528833a0fc40e0227ade293da
[]
no_license
paddington33/FRS2012-5
13a81c479373867bfbf37e6da48ba742158b17e5
b71588c6c89e397f77c641d2fe5f0f4c5e0a5db1
refs/heads/master
2021-04-12T04:32:25.336412
2012-08-25T16:28:51
2012-08-25T16:28:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,618
py
"""autogenerated by genpy from botI/control_msg.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class control_msg(genpy.Message): _md5sum = "350a205356bb53a7be0acfcec31d01c3" _type = "botI/control_msg" _has_header = True #fl...
[ "paddington33@gmail.com" ]
paddington33@gmail.com
f99cd85c7ac6dab4495aa1d24a0da46ad310a018
4494d8b45191f4e323d35ea5e1a65533db41a3b8
/chatbot/urls.py
e3e865410dd2e28e311cc6fd0e83c7bf106e4905
[]
no_license
AVKashtanov/chatbot
18dd104cd3a477a91befc1306adab6dc6a5a1875
e111e54e6c4129ab08558b410b11e1c3cd74edd2
refs/heads/master
2023-08-16T20:31:34.713813
2021-08-23T01:14:15
2021-08-23T01:14:15
397,475,252
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
"""chatbot URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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') Class-based...
[ "tema.nkkav@mail.ru" ]
tema.nkkav@mail.ru
08051d4ff69fe47828e0a1e1eec07cd1c8a755b5
643ee0df8382ed729f73338aa807dc9334a47161
/EstruturaDeRepetição.py
ffdfdfad9947e2c3518ded898f2be1af52f5e497
[]
no_license
enzomaneira/Python
a4e595c189e01e627f61b82be67714ef3f725593
634d282ab3d33bf5065f7a14c124d92b2aa48ad8
refs/heads/main
2023-05-31T01:44:33.056480
2021-06-24T20:30:43
2021-06-24T20:30:43
380,040,134
0
0
null
null
null
null
UTF-8
Python
false
false
19,618
py
"""" user = input('Insira o nome usuário: ') print(f'Userário: {user}') senha = input('Insira a senha: ') confsenha = input('Insira senha novamente: ') while senha != confsenha: print('senhas incompativeis') confsenha = input('Insira senha novamente: ') else: print('Cadastrado com sucesso') print('Cadast...
[ "noreply@github.com" ]
noreply@github.com
6dae4ee2bf1505ab711c664164bcacf2754fe3a3
6335ba0b47a1a20e7773f274e21a4d3699ba5793
/ex25.py
0b38863470b971fe95ef17dfbeb3ca94373c9b61
[]
no_license
Hanxiaorong/Python-exercises
666f3474c47a5b1295a4de8bf51314979a285e64
a70919f794fdd6e4ed73946cb23a1225dacdcb21
refs/heads/master
2021-01-02T08:10:46.952228
2017-08-13T14:30:03
2017-08-13T14:30:03
98,953,845
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
def break_words(stuff): """This function will break up words for us.""" words = stuff.split(' ') return words def sort_words(words): """Sorts the words.""" return sorted(words) def print_first_word(words): """Prints the first word after poping it off.""" word = words.pop(0) ...
[ "noreply@github.com" ]
noreply@github.com
65fdd3c7cd2348c198158cba773f5c5844ee4597
4ca0b9d8beec6d4ac2ac64b53429b298b7819311
/pick_up_and_delivery_2modes.py
b211c4c41808b7fe389dc6c11e872fbaead9c243
[]
no_license
lisarah/mdp
36097040f7b6d80d9eddb044c644cd0d6ab005e0
fc6915aad79e6f9525d485c6fe00bf0d98ca8f53
refs/heads/master
2022-06-09T15:46:48.335282
2022-06-02T02:56:30
2022-06-02T02:56:30
207,250,240
1
0
null
null
null
null
UTF-8
Python
false
false
5,712
py
# -*- coding: utf-8 -*- """ Created on Tue May 31 14:24:02 2022 Pick up drop off 2 modes @author: Sarah Li """ import numpy as np import visualization as vs import util as ut import matplotlib.pyplot as plt import pandas as pd import MDP_algorithms.mdp_state_action as st import MDP_algorithms.value_iteration as dp im...
[ "crab.apples00@gmail.com" ]
crab.apples00@gmail.com
d3f6e09c409e5822f9cc03317a91def5d40649bd
17b8918cdb3ab5bfde232b332874656c92472e0e
/Ejemplos_Parser/Estructura.py
c4218a8b0dcc630f5bf8c69233a65fb721cad9aa
[]
no_license
xelop/Compilador-mypy
7ab956eaba76eb62a42bedd20cf3401f077afe3e
f9c3db3098568a8f98168023549a0d3fc3cb8c7b
refs/heads/master
2021-01-09T20:52:39.087906
2016-06-22T01:26:26
2016-06-22T01:26:26
59,395,684
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
int x x = X + c int y # error porque ya habia empezado el codigo w = a+ v + b def funcion (int y): # funcion fuera de lugar w = a+ v + b ;
[ "josuearrietasalas@gmail.com" ]
josuearrietasalas@gmail.com
8e468254ec7056e5741b4eaf411219f4ce1c40f1
fc4a6d3658a182e9654e9e67016bf06c9095891f
/plugins/commands.py
37df74a9bc38c48c060a0914413defe480dbaf10
[ "MIT" ]
permissive
TamilBots/instagram
43eba7c56f16f66f37763af22985c04edf93754f
51ee6548398ca9dd5c7d026ffa2ad9aac543506f
refs/heads/main
2023-07-21T11:45:43.418831
2021-09-04T10:56:30
2021-09-04T10:56:30
403,024,497
1
2
null
null
null
null
UTF-8
Python
false
false
5,131
py
#MIT License #Copyright (c) 2021 Sathishzus #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish, ...
[ "noreply@github.com" ]
noreply@github.com
bd88913cd00fdc48287ff7dcb6dbaaf41c91ef03
706d7b8df4881df0660fb73d07736cf29689e99f
/planner/planner.py
44557b923644d1035fa5b8ffcd170e83df375830
[]
no_license
moezubair/autonomic-manager
95fb5745c9948796c7d98f65ad965badd1b65174
3f7dd442683e31ee5d5ac036e09852998ee65ba5
refs/heads/master
2021-05-01T15:32:14.361656
2015-07-11T07:16:16
2015-07-11T07:16:16
38,545,449
0
0
null
null
null
null
UTF-8
Python
false
false
1,698
py
__author__ = 'Sparwood' __author__ = 'Muhammad Zubair' import sys import time sys.path.insert(0, '../') from KnowledgeBase import * from types import NoneType ##Planner needs to do the following tasks ## 1. Read latest item from the analyzer tables ## 2. Read the policy table ## 3. Calculate the new volume ## 4. Send t...
[ "mzubair@uvic.ca" ]
mzubair@uvic.ca
721e9268d352f8c85508d0063c8e61cf288831b9
feda93b7c67b60759bbff2ffd7f7bb2b71ed4bde
/convertToBase7.py
07bdb887ce8e9d15534b6541dbd7db599ef03175
[]
no_license
unsortedtosorted/codeChallenges
fcc8d92cc568922f2eb3b492c530e2e93d0e95ab
de8f9e7a7c45e325ac0de43a4e1f711a7c6a0a0c
refs/heads/master
2020-04-04T14:38:43.538723
2019-03-14T03:24:49
2019-03-14T03:24:49
156,006,456
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
""" 7 : 10 7/7 --> div=1, rem=0 14 : 20 14/7 --> div=2, rem=0 100: 202 100/7 --> div=14, rem=2 14/7 --> div=2 , rem=0 151:304 152/7 --> div=22, rem=4 22 --> div=3, rem=2 """ class Solution(object): def convertToBase7(self, num): """ :type num: int :rtype: str """ if...
[ "noreply@github.com" ]
noreply@github.com
045960da4e96bdcbe17228f8e006f6bfdd2723eb
649185c9b064998420b157c12d34436571b6f8e8
/app/migrations/0003_userprofile_self_introduction.py
2cfdf35650c7329b910e52746be11985f46c1ff0
[]
no_license
JackyCafe/GoodVillages
2bc22000ec81507af72f587d0def85f1b9e4ebc5
8871b2f6a920aa861ea7ed0d728817c16bae1cfe
refs/heads/master
2023-03-02T16:48:57.125788
2021-02-15T03:57:18
2021-02-15T03:57:18
304,577,754
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
# Generated by Django 3.0.8 on 2021-02-09 23:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20210128_1600'), ] operations = [ migrations.AddField( model_name='userprofile', name='self_introdu...
[ "powerworker1234@gmail.com" ]
powerworker1234@gmail.com
8addd8263c38093fc2cbab1e0e73d7dc7a046067
06d6090050ea348578eb4f26255b609463a34529
/ex9.py
30916092d64cee962a57b807b45ea3e78fcf4f47
[]
no_license
loospan/LPHW
5796a0983a0f13d0e664da738338b74e6cb6fa7e
b9727b2b457cc78fd4af3b0ba2ae8f572b5a1e81
refs/heads/master
2020-06-14T16:30:31.014919
2016-12-08T03:45:08
2016-12-08T03:45:08
75,159,830
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# Here's some new strange stuff, remember type it exactly. days = "Mon Tue Wed Thu Fri Sat Sun" months = "Jan/nFeb/nMar/nApr/nMay/nJun/nJul/nAug" print "Here are the days: ", days print "Here are the months: ", months print """ There's something going on here. With the three double-quotes. We'll be able to type as m...
[ "mckaiaspan@gmail.com" ]
mckaiaspan@gmail.com
9fc63b6c43092db4d81396b60fb0b2da13b59178
d6d4e2b41c6f780899b615023923c63100f6151a
/models/experimental.py
bf71f69ddf9bbd090a76af248919447179c58752
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
godspeed1989/yolov5-pytorch-coco128
c60363bbfc372b9e33617c5fbc137bb523d2f86c
41032eee2d89ce29323a209cc8a714d12d8b82f3
refs/heads/master
2022-11-28T06:19:59.063991
2020-08-07T05:01:52
2020-08-07T05:01:52
285,306,039
6
1
null
null
null
null
UTF-8
Python
false
false
5,621
py
# This file contains experimental modules import numpy as np import torch import torch.nn as nn from models.common import Conv, DWConv from utils.google_utils import attempt_download class CrossConv(nn.Module): # Cross Convolution Downsample def __init__(self, c1, c2, k=3, s=1, g=1, e=1.0, shortcut=False): ...
[ "tongxinjichu@gmail.com" ]
tongxinjichu@gmail.com
a7b1c3fb9c93bfc092c70e662458f1edfcb3034d
6dde9d7cbab3ccd30baebe85ab2f7b8d3734b3e3
/board_functions.py
c39730ef07619e0342b55a8018c6e1978a45a947
[]
no_license
bonarl/Flex-Tester
a33413091d0d85466e22a5e34134ff1a8fb2a40e
9eed2220823c69e1e88c3975fc4e202001ef1411
refs/heads/master
2020-05-24T11:42:30.778317
2017-03-21T15:21:43
2017-03-21T15:21:43
84,852,300
0
0
null
null
null
null
UTF-8
Python
false
false
4,660
py
import sys import glob import serial import string class Del: def __init__(self, keep=string.digits): self.comp = dict((ord(c),c) for c in keep) def __getitem__(self, k): return self.comp.get(k) DD = Del() def listSerialPorts(): """ Lists serial port names :raises EnvironmentError: ...
[ "bonarrobb@hotmail.co.uk" ]
bonarrobb@hotmail.co.uk
8483392f85338b9ab4a9e0aa3e6925ca401d927a
256fbfbc34952d60ebb1ce5cf92ba107f8d3e905
/backend/agalot_app_23898/urls.py
1479158011d81c28eeb290da27286e3ffb93a350
[]
no_license
crowdbotics-apps/agalot-app-23898
8a337647047d79589bd2533cf13dda168a776f8a
1fd14f5a1dc70a8c436e8a19c45164a3407d4a9d
refs/heads/master
2023-02-17T13:43:56.206704
2021-01-17T17:12:07
2021-01-17T17:12:07
330,443,006
0
0
null
null
null
null
UTF-8
Python
false
false
2,668
py
"""agalot_app_23898 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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') Cl...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
7fd767a822a34cdfb416767d5d16dcc885db8e5b
5674db7fd901359b6b0e05525133cbf27fb612d7
/routes.py
31f53f3ea3bebea0ccebacd585aaadbce11aeb48
[]
no_license
ZiadAbass/DayTripper
66c6dbbc9c6447258159d4d5af9e79252c798462
8e717185b04f4c839cd4a3fdfa49d2d0b3d77c53
refs/heads/master
2023-01-14T01:38:02.501160
2020-02-12T20:34:54
2020-02-12T20:34:54
240,102,428
0
1
null
2023-01-07T14:46:48
2020-02-12T19:56:46
TypeScript
UTF-8
Python
false
false
1,402
py
# import numpy as np import matplotlib.pyplot as plt N=20 np.random.seed(46) points_original = np.random.normal(loc=0.5, scale=0.5, size=(N, 2)) points = list(points_original) A = [0,0] B = [1, 1] path = [] def insert(arr, index, el): a = arr.copy() a.insert(index, el) return a ...
[ "el16za@leeds.ac.uk" ]
el16za@leeds.ac.uk
72464cd7d94755a7b3eb3218024a22bab06422ee
a4f6ba6243c951323b2a3810b4ec85713c65ab97
/Python/Basic/Lab22.py
0f6e964fbf2a3a0fe874da11f07c2b6d4e681a3e
[]
no_license
DreamingDataScientist/Learnning_R_Python
d405a8cca4651bdf65207f906b2549b543b12c18
46007e3683ef937957aa24bc0d7a91b0bb7da509
refs/heads/master
2021-04-06T02:49:18.167985
2018-03-18T04:17:34
2018-03-18T04:17:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
#리스트가 주어지면 이것의 가운데에 있는 요소값을 출력 a = [1,2,6,8,4] b = [1,2,6,8,4,10] print(a[2]) print(b[2],b[3]) size = len(a) mid = float(size/2) print(mid) # 함수를 완성해서 매개변수 list의 평균값을 return하도록 만들어 보세요. list10 = [1,2,3,4,5,6,7,8,9,10] def average(list10): for i in range(len(list10)): tot = list10[i] return tot pri...
[ "icanyoucanwecan24@gmail.com" ]
icanyoucanwecan24@gmail.com
188e8842ff8d6334b522001ad8eb576bab60a34c
32b3a91ef1ffa2649074542dd85e7196b0a63d26
/Fibonacci(input)/fib.py
64c73e9a0d05f2c9858a1ceeb735212da1d0ea98
[ "MIT" ]
permissive
HtooHunn/myprojects
4d8d7102604898dfec6ed525b5741ce24c551ad3
2890f761255dc4305891de33434e93b54e1861e6
refs/heads/master
2022-11-06T15:26:52.421568
2020-06-25T13:36:18
2020-06-25T13:36:18
274,924,058
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
fib.py import fibonacci f = fibonacci.fib f (200) fibonacci.fib(10000) -------------------- from fibonacci import fib, fib2 f = fib2(500) print(f) ---------------- from fibonacci import * fib(500) print(fib2(500)) --------------- import fibonacci as fi fi.fib(500) --------------------- from fibonacci import...
[ "htetmyetnaing433@gmail.com" ]
htetmyetnaing433@gmail.com
c9f03ee17516a0084b56d702c831e0fc3a4e2fef
bfde55ae87b0070918211b941177854facbc4bbe
/software/python/test_speed.py
fa5e92e8c2f5a5ee639f65295a41e7041bdfd524
[]
no_license
huangqi412/LCSDR
1160dc839da79b4154ea51572b2039a33eef9f75
576114d3fee97106431b5672fb7774b7bd366579
refs/heads/master
2020-04-08T23:03:27.816857
2018-01-17T02:03:11
2018-01-17T02:03:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,638
py
#!/usr/bin/env python # # Copyright 2012 Jared Boone # # This file is part of HackRF. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version....
[ "llu@phytec.cn" ]
llu@phytec.cn
5192d3118f9993873073dd8a149ce2ddad6c2762
79f3131d823061a267c93d0d1972e683366ef464
/app/models.py
c25388b85977bb0ee27e846a96317072bfbc3449
[]
no_license
MeteoR-OI/bd-climato
3a8fba36e2671e405bc8611ca9aaac49fed32263
5c5afbacd8db22b19fcebdd7303c91313280ba64
refs/heads/master
2023-08-19T14:05:45.737907
2023-05-04T09:51:31
2023-05-04T09:51:31
146,564,543
1
0
null
2023-02-22T18:17:59
2018-08-29T07:48:52
Python
UTF-8
Python
false
false
16,243
py
from django.db import models from django.db.models import Index, UniqueConstraint, Q class DateTimeFieldNoTZ(models.Field): def db_type(self, connection): return 'timestamp' # class Poste(ExportModelOperationsMixin('poste'), models.Model): class Poste(models.Model): # mandatory fields id = model...
[ "nicolas@cuvillier.net" ]
nicolas@cuvillier.net
ea0d128316446efb65340c7e099e53c08c2cd31a
a8eff877b1c88c6779b9c83899830ba7fa130314
/LottoGen.py
25b11de8da7ed71771047ada851e118caea492dc
[]
no_license
GolanSho/pyscripts
240f5a72fc10c9bee4d44a7b32e39417a2dfd8a9
a6f47f7debcd93b61cfee67e11882ac9e65b799c
refs/heads/master
2023-07-10T22:26:30.733634
2023-06-25T14:14:26
2023-06-25T14:14:26
180,607,463
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
import random num_gen = [] def random_gen(): n = random.randint(1, 37) if n in num_gen: while n in num_gen: n = random.randint(1, 37) return n ans = input('how many times? ') for x in range(int(ans)): num_gen.clear() for i in range(6): to_add = ran...
[ "noreply@github.com" ]
noreply@github.com
defefae49f1eb84b281fd9e549b90db6b4ca0560
d0ff62146e31d44ca19ae8bce7c321460c12bbb8
/laneTracking.py
7b71e6678e1331371fc5352a6e108ecc7ed3f296
[]
no_license
chowjimmy-wc/cityu_underwater
4fe6731640e3b1080d9f3f6ceeba72500a8147e1
3ea385365c93711e9211a58d0aabe9b11029c7a4
refs/heads/main
2023-09-04T23:30:10.401324
2021-10-14T12:10:49
2021-10-14T12:10:49
417,114,903
0
0
null
null
null
null
UTF-8
Python
false
false
2,947
py
import cv2 import numpy as np import utlis curveList = &#91;] avgVal=10 def getLaneCurve(img,display=2): imgCopy = img.copy() imgResult = img.copy() #### STEP 1 imgThres = utlis.thresholding(img) #### STEP 2 hT, wT, c = img.shape points = utlis.valTrackbars() imgWarp = utlis.warp...
[ "noreply@github.com" ]
noreply@github.com
cf3fa470d2b26fc8e8e1b52f221ae9c7cef9a3ae
d839706f957492d402987f9af0f59903861877c3
/User_app/migrations/0001_initial.py
0b709f2b10e5a42b0f09d11f4ce75ebb6411fd2c
[]
no_license
AlokVeerChauhan/Elite_news
4d5ee577828774ce4ba7401a514195d4b338c3ce
aece8c64472765e8fd7422ec19118b6fff6d1a21
refs/heads/master
2020-05-05T13:49:34.964335
2019-04-08T07:34:27
2019-04-08T07:34:27
180,094,745
0
0
null
null
null
null
UTF-8
Python
false
false
2,257
py
# Generated by Django 2.0.6 on 2019-04-08 05:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User_Login', fields=[ ...
[ "alok.lucky.chauhan@gmail.com" ]
alok.lucky.chauhan@gmail.com
f5bf1d970d4fabb61a8831149bb32d29440852eb
a6ae216a1a5ed36562a7c25c63ff83dd7c146f70
/vndk/tools/definition-tool/tests/test_elf_linker.py
dbdd95eef7d8f3979916964688112b3ba8cddb57
[ "Apache-2.0" ]
permissive
cuizaixi/platform_development
32dc08f7e403c82e3c74bfe0d9f0b7564d53047b
68b3022d17d55c3b377a43e8c3023d6139e3ef5d
refs/heads/master
2021-01-24T18:25:37.359722
2017-03-09T07:03:15
2017-03-09T07:03:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,219
py
#!/usr/bin/env python3 from __future__ import print_function import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import unittest from compat import StringIO from vndk_definition_tool import ELF, ELFLinker, PT_SYSTEM, PT_VENDOR class GraphBuilder(object): _PARTITIO...
[ "loganchien@google.com" ]
loganchien@google.com
d9f32911e4181a8fb5ecb20899a76a48f610160a
f90753ac1e6e80d19e3d85198556501bd4d85565
/WaterCalTracking.py
09421fb18c6bf48d95ceb07a4cb674ab57eb6ece
[]
no_license
minakian/WaterLevelTracking
06f5c7ce301d410128b06bb78136cafb0d246420
a61a6e2fa97eda7f7da088142acd98c549c1f94e
refs/heads/master
2020-04-13T17:08:41.796050
2019-01-14T18:48:04
2019-01-14T18:48:04
163,339,955
0
0
null
null
null
null
UTF-8
Python
false
false
2,772
py
import sys import glob import serial import time import csv import argparse from datetime import datetime flag_print = 0 def serial_ports(): """ Opens a port with the H1 Humidifier Reads the water tank information every X seconds Writes that data to a .csv file """ if sys.platform.startswith('win'):...
[ "stephenminakian@gmail.com" ]
stephenminakian@gmail.com
ccc266faf22b9a3e4014b84973c350f72d9a50ef
cd80309cea94bddc598e21e5f80bb494d6663aae
/consumers/faust_stream.py
770080522616e7c84dfb42947c9075d0bc185ab3
[]
no_license
darioxz/optimizing-public-transport
122781babc69129edf5e6961fba00ddb5b58a601
371460a75a1613211e25cde9b1ade618464afdf0
refs/heads/master
2023-06-20T13:17:10.358902
2021-07-14T14:08:40
2021-07-14T14:08:40
370,229,988
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
"""Defines trends calculations for stations""" import logging import faust logger = logging.getLogger(__name__) # Faust will ingest records from Kafka in this format class Station(faust.Record): stop_id: int direction_id: str stop_name: str station_name: str station_descriptive_name: str st...
[ "dario.roethlisberger@gmail.com" ]
dario.roethlisberger@gmail.com
df1d048f17f5a566209ef32349cf25f4c9e2f754
be5ea20226c37d81f1ccb2f704d8825d36e88765
/09. Decorators/EXERCISE/07_execution_time.py
46206ea6d73977ddd8aef00da8cdfe89e906e747
[]
no_license
dimDamyanov/PythonOOP
3845e450e5a48fef4f70a186664e07c0cd60e09b
723204f5b7e953874fac9314e48eb1d1628d6ff5
refs/heads/main
2023-04-07T18:00:36.735248
2021-04-19T20:57:14
2021-04-19T20:57:14
341,329,346
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
import time def exec_time(func): def wrapper(*args): start = time.time() func(*args) end = time.time() return end - start return wrapper @exec_time def loop(start, end): total = 0 for x in range(start, end): total += x return total print(loop(1, 1000000...
[ "dim.damianov@gmail.com" ]
dim.damianov@gmail.com
162cb9aa4751a361be68509ebfa3fbe28df00f56
dd6b0635021185bf29f20b5b49ab03f93ff841e3
/BH_Mergers.py
24b202c99314f23f6630a06b5e31721bdede2d65
[]
no_license
sbustamante/Spinstractor
27754ee5506b929fb51d6af35852c4780873e960
d546010735fb698963b48b19a2e017060d13ef10
refs/heads/master
2021-01-22T02:05:00.969180
2018-10-30T09:13:39
2018-10-30T09:13:39
92,332,959
0
0
null
null
null
null
UTF-8
Python
false
false
2,537
py
#======================================================================================== # LIBRARIES #======================================================================================== import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np import os import h5py import time p...
[ "macsebas33@gmail.com" ]
macsebas33@gmail.com
dd3b322ecbb04513a786ce364efb5b982bc79300
f709aa102f6139fead280aa3ef770bbe5b61140b
/manage.py
7b2d4cc82f5a356a3184b13b8c9acd9caf21d6d1
[]
no_license
abarb014/cs179project
a251eac855ba7722d62e30b3d093f45a32b9d788
42c8662d0344e557e858226278c966cf31c8790d
refs/heads/master
2021-01-13T16:21:10.818355
2017-03-15T01:12:04
2017-03-15T01:12:04
79,854,438
0
2
null
2017-02-12T02:13:55
2017-01-23T22:23:26
Python
UTF-8
Python
false
false
801
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ucr.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
[ "andybrbz@gmail.com" ]
andybrbz@gmail.com
536d7eba2c11439a4007584859de8e070eb51cd6
b1dc0d9277698f2cc8afc3b9b646077f81eb3835
/src/Collider.py
674652593953452c1604b6961c988acf6b79478a
[]
no_license
adammusial777/BIAI-Project
4bfeab2c9d2bbd689d91df76bf4a0b573bca3e8c
ba3f14c12bdb27c8cc685df991523b58d33bed60
refs/heads/master
2022-09-13T17:32:37.610919
2019-09-24T08:31:19
2019-09-24T08:31:19
183,948,547
0
0
null
2022-06-21T21:56:45
2019-04-28T19:12:49
Python
UTF-8
Python
false
false
673
py
from pygame.rect import Rect class Collider: def __init__(self, gameObject, tag): from GameManager import GameManager self.gameObject = gameObject self.tag = tag GameManager.collidingObjects.append(self.gameObject) def CheckCollision(self, other): return not self.game...
[ "adam.musial777@wp.pl" ]
adam.musial777@wp.pl
091f508887b571ce10e54a0c0cf8a31e340abee2
d9e60e1066c06fddb331febb1c739f81a0bf86d2
/src/epicjs/serializers/koans.py
e42a6c7fd2651c34301604865782fb4993378fd8
[]
no_license
karolmajta/epicjs-api
2a482f5b9bcb4ab04d89f9c01b08f4a61f569352
fc966b1b7549a7a610b7f6da5f921b7a62f7567f
refs/heads/master
2020-04-05T08:05:28.009940
2013-12-31T00:37:28
2013-12-31T00:37:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
''' Created on 6 lis 2013 @author: karol ''' from flask.ext.restful import fields # @UnresolvedImport from epicjs.fields import Unicode meditation_list_fields = { 'name': Unicode, 'slug': Unicode, } meditation_detail_fields = { 'name': Unicode, 'slug': Unicode, 'koans': fields.List(fields.Nested...
[ "karolmajta@gmail.com" ]
karolmajta@gmail.com
447271e877d53137c51effe80534677bb917fc53
b67a1b1e8b9c027ad3456866803fee8298408da2
/aas/Estimating Delays/nn/networks/RestoreableComponent.py
b29482c096fa66f1f47134060c25dbc05b07d2a5
[]
no_license
andrewasheridan/hera_sandbox
216a112ebc365d62bb113fba6a9bc9523921faad
8af4f1f91d47121577a1eb8d16d1bc530bf6a671
refs/heads/master
2020-03-18T04:48:19.514755
2018-08-15T02:34:14
2018-08-15T02:34:14
134,307,210
1
0
null
2018-05-21T18:11:58
2018-05-21T18:11:58
null
UTF-8
Python
false
false
3,513
py
"""RestoreableComponent """ from pprint import pprint import numpy as np import sys import os class RestoreableComponent(object): """RestoreableComponent Allows saving / loading of object parameters. Excludes saving / loading of parameters begining with '_' or parameters that refer to tensorflow obj...
[ "sheridan@berkeley.edu" ]
sheridan@berkeley.edu
5a4c0f8b35f1adeb3979835417b8c1265387168a
bf37cf684b670af23583d224dbb13d4aa034c9b2
/main.py
879e81ecc729dac5e2ab4cade290bd8257c53c65
[]
no_license
ArchitAshokGupta/pomodoro-app
e7aefa8c6bad4d083dd6b1e46328f72efe27e61a
0aa5cf7ec5047893db5a31386c98bf56154b9801
refs/heads/master
2023-05-08T08:13:26.486322
2021-06-02T16:21:55
2021-06-02T16:21:55
373,233,456
0
0
null
null
null
null
UTF-8
Python
false
false
2,649
py
from tkinter import * import math # ---------------------------- CONSTANTS ------------------------------- # PINK = "#e2979c" RED = "#e7305b" GREEN = "#9bdeac" YELLOW = "#f7f5dd" FONT_NAME = "Courier" WORK_MIN = 25 SHORT_BREAK_MIN = 5 LONG_BREAK_MIN = 20 reps = 0 timer = None # ---------------------------- TIMER RESE...
[ "architgupta923@gmail.com" ]
architgupta923@gmail.com
7b5fd35d31c7e7e0f82edd72284a15107292bad5
d65694948060fb3001a061f373e25c5dc1c143af
/m15_1.py
48e8eaa655a97bb82f369095b360fa40e1ad733a
[]
no_license
Jabba1988/Python_Examples
2a4d90e404904534a246bead27f09dec91180da2
50da1160e7c6efe3ded23caa043eb998bcd4e60c
refs/heads/main
2023-03-24T16:49:23.959728
2021-03-23T06:30:58
2021-03-23T06:30:58
343,868,994
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
from tkinter import * def callback(e): print ('Нажата кнопка', e.widget['text']) root=Tk() button1 = Button(root, text='Первая') button1.pack() button2 = Button(root, text='Вторая') button2.pack() root.bind_class('Button', '<1>', callback) root.mainloop()
[ "bakhmatov@myservices.digital" ]
bakhmatov@myservices.digital
766e1262d5d939b9507e3f4e4665d396caeb8564
067187215cb2fbd776a232f66a14e42c5b25ff03
/wsgi.py
17783c7892d7e58256d71c3daed096fac3815cf6
[ "MIT" ]
permissive
tom-lord/r-slash-thebutton
27c4df62f82edaf6af41c7eac5f2fc6a4902c735
83818413e1522ac385dd3bc37ba66b85958cc876
refs/heads/master
2020-12-11T06:01:37.169006
2015-05-22T09:52:56
2015-05-22T09:52:56
36,288,683
0
0
null
2015-05-26T10:25:51
2015-05-26T10:25:50
HTML
UTF-8
Python
false
false
318
py
#!/home/www/venv/bin/python import threading import sys sys.path.insert(0, '/home/www/venv/lib/python3.4/site-packages/') sys.path.insert(0, '/home/www/') from app import app as application from app import Data threading.Thread(target=Data.socket_controller).start() threading.Thread(target=Data.scheduler).start()
[ "chris27stevens@gmail.com" ]
chris27stevens@gmail.com
29203bc8227c4856647531604a348ebaafce84a7
77d3d5ebd3f07e030d9930226898d207d816c980
/Assets/Quest_Class.py
9e0c10597d23c99783d9f57d590846cc35dda1fd
[]
no_license
LandenBrown/TheUltimateDungeonCrawler
0f6c53be23bc6a7cf1cb2b3a9565c8fe3ef0b0a1
b6216edf53078f7e597454c9bf5de2dd9afde842
refs/heads/master
2021-09-03T22:58:36.622441
2018-01-12T17:37:23
2018-01-12T17:37:23
115,650,525
1
0
null
2018-01-12T17:40:55
2017-12-28T18:44:44
Python
UTF-8
Python
false
false
781
py
import easygui from easygui import * class Quest: def __init__(self, name, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, target, target_objective, goal, current, complete): self.d1 = d1 self.d2 = d2 self.d3 = d3 self.d4 = d4 self.d5 =...
[ "landensbrown@gmail.com" ]
landensbrown@gmail.com
99e192fc19b867f41bba602ba3341184cab38871
194402c11456972e666ffd74fd147b382372a078
/lectures/scrape/lecture-scraper/tutorialscraper/settings.py
d8c43c16e15978aa8f6eb49d204f2449b6e988bd
[ "MIT" ]
permissive
renzotw/PIC16B
d62766d68459f7d688f92efc64dc4be21a01adbe
2cd99011fcf70f6a1f379f4f4c894d72214da67c
refs/heads/master
2023-08-20T18:12:56.899534
2021-10-29T21:51:28
2021-10-29T21:51:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,160
py
# Scrapy settings for tutorialscraper project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-mi...
[ "pchodrow@gmail.com" ]
pchodrow@gmail.com
944a2def0ca7b6df9c0c536d0bfbffe964741985
1e14c9538a7097521069460b8fef59093c93794b
/test_onedemoPERenv_system.py
ce0a861d2ed75ae934774bca36111d00a391e659
[]
no_license
nithin127/psketch
aea1ef7790757071bd846f60137b6ed862789ce7
536e119237d0a8b4d5afec9051f7eecb490b9b18
refs/heads/master
2020-06-15T13:20:34.459991
2020-03-22T22:45:44
2020-03-22T22:45:44
195,310,965
1
0
null
null
null
null
UTF-8
Python
false
false
3,934
py
import os, time import pickle import numpy as np from system3 import * # Single demonstration demos_water = pickle.load(open("demos_water_gold.pk", "rb")) demo = demos_water['1layer'][1] # Test environments test_env = pickle.load(open("maps__test.pk", "rb")) train_env = pickle.load(open("maps__train.pk", "rb")) ...
[ "nithin127vasisth@gmail.com" ]
nithin127vasisth@gmail.com
feb1c50396878922974b0468c4525f64dfce72da
0005b44bb91243a74d14413f638bf8c9a7c8096e
/views/productOrder/Order_params/Menpiao_Order_params.py
665bb4bb0f23fedff3cce830064a62b52d773c31
[]
no_license
luck1006/auto-api
3b347c3206c562cc0fe3e16bd0a2c8ed1147d365
0300b1c4f299a3713a9c60fe102a3919e8b88a44
refs/heads/master
2022-10-22T13:33:45.687287
2020-06-16T14:37:19
2020-06-16T14:37:19
272,685,499
0
0
null
null
null
null
UTF-8
Python
false
false
5,326
py
# -*- coding:UTF-8 -*- # @Author : huangfang from views.productOrder.BOH_params.Menpiao_BOH import Menpiao_BOH from app.actions.tools.commonData import productdata_menpiao import datetime import random,string class Menpiao_Order_params(Menpiao_BOH): #获取行程1ID def menpiao_get_journeyId1(self): ...
[ "zhuhaiyan@tuniu.com" ]
zhuhaiyan@tuniu.com
59fd504fbfbc0a6e8befbfdadc46ce2cae5807d0
228921ea642e1116acec975975f5c2fbc6593968
/static/scripts/park_info_extract.py
f2c150dac6787ed93f612e7d240f78ce062f4b5e
[]
no_license
guwei1989/tool_by_flask
9795baaf1974526147f9d028e1df663542f4f203
b438c3afe94de3f486f51368eff0cfb8f71994f8
refs/heads/master
2022-12-14T19:29:03.549732
2018-08-18T11:11:48
2018-08-18T11:11:48
140,379,540
0
0
null
2022-12-08T02:15:49
2018-07-10T05:03:52
CSS
UTF-8
Python
false
false
15,275
py
# coding=utf-8 import datetime import re import sys from helper import start, end, info, err, traceback from log_helper import read_log_lines, LogFile ecoupon_lookup = { 66: u'次数券', 67: u'小时券', 68: u'时间段券', 69: u'金额券', 70: u'折扣券', 71: u'通用金额券' } def extract_park_info(lines, plate, out_dateti...
[ "874695320@qq.com" ]
874695320@qq.com
1871588733267b2f9a6adeccbe55e2536732a85b
fe9935b08e22fc019fbcfd6c0bc37ab235e2a0e2
/catkin_ws/devel/lib/python3/dist-packages/turtlebot3_example/__init__.py
73776efd388bc523c9228410edb846b19f7e85a8
[]
no_license
abdussametkaradeniz/RosLessonsAndTutorials
ce22a06d8a881d949479956ea6aa06ff9f8bf41b
940597350f5ed85244696ec44fe567fd89a6d5d8
refs/heads/main
2023-07-18T22:56:52.075918
2021-09-07T21:42:24
2021-09-07T21:42:24
404,125,607
1
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from pkgutil import extend_path from sys import path as sys_path __extended_path = '/home/ardentblaze/catkin_ws/src/turtlebot3/turtl...
[ "abdussametgosukaradeniz@gmail.com" ]
abdussametgosukaradeniz@gmail.com
1625ded522b0c2e473970079db521e10d42a897b
8452e2798d35f309930d5984f4c65014de7802bf
/helper.py
e4e793a82980036fa102f98d1c81a1d7990b2816
[]
no_license
daveboe/blockingTaskEngine
19b5c0c5fb0800ad7cd548aeb6fe06a83912c5a6
7cef7897c34017ecdf3e5cb4d185ed7627ef217a
refs/heads/master
2021-04-25T03:11:27.851620
2018-01-12T17:41:47
2018-01-12T17:41:47
115,610,028
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
import requests import logging def retry(func, max_tries=1, logging=False, hook=None): def retried_func(*args, **kwargs): tries = 0 while True: if hook is not None: hook(logging) resp = func(*args, **kwargs) if resp.status_code == 500 and tries <...
[ "d.boeller@bluewin.ch" ]
d.boeller@bluewin.ch