blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
f69ba9cebdceefbbc74e3b1897f434dfd5b5792d
88492694761b3a4a09a612b13e62b1339ba5e69c
/src/search/loader.py
781fa5e9b5c61ab6a5c9839f896e188ac36c234e
[ "MIT" ]
permissive
igarashi339/disney-network
cff257704b932cadc67fd78e659a994ce8ce74e5
76d3a628add4d268d2b8864c978bf9a081d4be70
refs/heads/main
2023-09-03T12:55:27.937299
2021-11-07T13:23:36
2021-11-07T13:23:36
357,179,122
2
0
MIT
2021-10-02T11:15:25
2021-04-12T12:08:45
Python
UTF-8
Python
false
false
1,322
py
import json class Loader: def __init__(self, input_data_path): self.spots_json_path = input_data_path + "spots.json" self.links_json_path = input_data_path + "links.json" self.nodes_json_path = input_data_path + "nodes.json" def get_nearest_node_id(self, spot_id_org, spot_id_...
[ "igarashi339@gmail.com" ]
igarashi339@gmail.com
d20193ef0287422fa66d20f0836d9d60526f6e1a
61e300590cde2b01ec7834275087e7c408e8afec
/carts/views.py
0b392b011ce9b329661e2a8ea25b9a1f000aaadd
[]
no_license
nabhanda/shopwithus
7c4f450765b0b63018f20ece8cc933cf58c132d8
37f178f39090d4f7c25320aecf9455dbce657670
refs/heads/master
2020-03-23T22:47:41.514598
2018-10-12T13:07:26
2018-10-12T13:07:26
142,197,984
0
0
null
null
null
null
UTF-8
Python
false
false
5,781
py
from django.http import JsonResponse from django.shortcuts import render, redirect from accounts.forms import LoginForm, GuestForm from accounts.models import GuestEmail from orders.models import Order from product.models import Product from billing.models import BillingProfile from addresses.forms import AddressForm f...
[ "nabhanda@oradev.oraclecorp.com" ]
nabhanda@oradev.oraclecorp.com
c9ff13c653b1b1f790075ec691191d371ddc12d8
bdd6168675bbb09d483119afd6accceb13666b14
/modimport/browser.py
2550cbde5bdff1ea36cb8675519afdc96012743c
[]
no_license
AnDa-creator/Python-games-and-projects
e9c14730eaeef54d713f35cfbdcb967ed9fab263
7ff9dd58c6602defa638d4e28976b7fbeb0a2b2c
refs/heads/master
2022-12-04T12:12:42.424375
2020-08-13T15:25:09
2020-08-13T15:25:09
287,167,181
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
import webbrowser webbrowser.open("http")
[ "anuranan.fifa14@gmail.com" ]
anuranan.fifa14@gmail.com
38ffeefe71c4acb79a5a838efeb26765465afa7f
159d4ae61f4ca91d94e29e769697ff46d11ae4a4
/venv/bin/iptest
62ac6036fc5f261d69ea933bb91ed9bee7ded5ca
[ "MIT" ]
permissive
davidycliao/bisCrawler
729db002afe10ae405306b9eed45b782e68eace8
f42281f35b866b52e5860b6a062790ae8147a4a4
refs/heads/main
2023-05-24T00:41:50.224279
2023-01-22T23:17:51
2023-01-22T23:17:51
411,470,732
8
0
MIT
2023-02-09T16:28:24
2021-09-28T23:48:13
Python
UTF-8
Python
false
false
269
#!/Users/yenchiehliao/Dropbox/bisCrawler/venv/bin/python # -*- coding: utf-8 -*- import re import sys from IPython.testing.iptestcontroller import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "davidycliao@gmail.com" ]
davidycliao@gmail.com
27963a655be8a9cba63d2ffd03c96a21734e4eb4
05820ee892f87fe47df107deb48ef456c952699f
/bashfuscator/modules/string_obfuscators/hex_hash.py
ccf220f9e1a5efcdd0ee19f0656f4774c59689c4
[ "MIT", "BSD-3-Clause" ]
permissive
maliciousgroup/Bashfuscator
45bb5061b51baacd6c63b2ae6d7e4ef6ea514331
a6279842acb43c9572c39283786ff4203efbb32f
refs/heads/master
2021-01-04T23:30:59.929643
2020-02-28T15:38:58
2020-02-28T15:38:58
240,796,740
3
0
MIT
2020-02-15T22:28:03
2020-02-15T22:28:03
null
UTF-8
Python
false
false
1,100
py
import hashlib from bashfuscator.core.mutators.string_obfuscator import StringObfuscator class HexHash(StringObfuscator): def __init__(self): super().__init__( name="Hex Hash", description="Uses the output of md5 to encode strings", sizeRating=5, timeRating...
[ "jalefevre@liberty.edu" ]
jalefevre@liberty.edu
7332bb72184308f1c755b9859e825e727dc18a52
2205363ea412aae36aa2c5f8b7d608cd8a158a03
/Personal_Blog/Pb/Pb/settings.py
d3f8de8c66bb1455f934b84f6bb3190cd42b086b
[]
no_license
Akanksha2403/HacktoberFest2020
986ef7ba5595679085e5159d35c5a30d9e91ebc5
789762e3a4a3ad23fd2c1ca3b6cc3bc8f39eed82
refs/heads/master
2023-08-28T04:25:07.466359
2021-10-20T10:16:46
2021-10-20T10:16:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,674
py
""" Django settings for Pb project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import ...
[ "lit2020026@gmail.com" ]
lit2020026@gmail.com
181e07eb777edf892a8df8abc17d2ad592bd5481
7d8ad9e28a7c8bfe310e76eadaa866927d02cb63
/backtesters/bollinger_momentum.py
36f0ac71c1b724552a4363296ce3820bb1a468c1
[ "MIT" ]
permissive
boochi046/crypto-price-analysis
9b671abef2c39739d4e29de98427fc419e0119b9
e9985479bb0e0128ce38cec48b870f3d1868b034
refs/heads/master
2020-04-14T02:36:58.276069
2018-12-19T15:51:40
2018-12-19T15:51:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,587
py
'''Backtest Moving Average (MA) crossover strategies ''' import math import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from datetime import timedelta import talib from backtester import Backtester class BollingerMomentum(Backtester): ''' Momentum strategy based on b...
[ "daniel@blackhatmedia.com" ]
daniel@blackhatmedia.com
412d94ad7ce1d9d7b92b6406d8aa5350f3f77fe9
2e79b8f2e4cc5ea10789de787f787fdc56137993
/leetcode/438.找到字符串中所有字母异味词.py
e1f674a878c118e39a1c3fa3bfafdb8b51fc9564
[]
no_license
wangye707/Test
d486ccb0947f6a83662a73fb56554260d1445c30
0d5fb8ea7da79d7d168d99f7158c8aa5757a1d35
refs/heads/master
2020-06-04T05:48:46.132054
2020-04-28T14:53:30
2020-04-28T14:53:30
191,894,269
0
0
null
null
null
null
UTF-8
Python
false
false
1,025
py
#!D:/workplace/python # -*- coding: utf-8 -*- # @File : 438.找到字符串中所有字母异味词.py # @Author: WangYe # @Date : 2019/9/25 # @Software: PyCharm def findAnagrams(s, p): """ :type s: str :type p: str :rtype: List[int] """ out = [] need = {} for i in p: if i in need: need[i] +...
[ "1119744330@qq.com" ]
1119744330@qq.com
ff63ca733498c988042c4f9a7ee4df25ecdace7c
1305723f2ab2297bc396a58e6542a77a8ed6de8a
/flashcards.py
ca2ad8b14c8de3262db11fe559763a999915a076
[ "MIT" ]
permissive
sneakythumbs/flashcards
ff86d3fd2d9ce678be0e6475b66db99ee2ccced4
b93e93981dc6529cb3c139278708e1027f730858
refs/heads/master
2021-01-22T09:47:40.544430
2015-04-29T19:51:17
2015-04-29T19:51:17
34,813,702
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
import sys import fileinput from pylab import * header = True column = -1 prompt = raw_input("Enter the filename(s) to be read:\n") files = prompt.split(", ") for line in fileinput.input(files): s = line.split("\t|\t") if header: print"Select language to sort by:", for word in s[:-1]: print "[" + word + "...
[ "sneakythumbs@users.noreply.github.com" ]
sneakythumbs@users.noreply.github.com
1fa53956af9d567b5bb6cde0572f8a7cb11d736f
70121257e52e0fd2f0895414fcee3c991737443a
/python_recipes/tfpreprocess_cifar.py
33aaef3fdca4998831ffa5306a3bf25f080ae646
[]
no_license
OlgaBelitskaya/cookbooks
2e54208bb5e5157814deea6ff71cd7ce5b1e4972
216dde3e5617203371ed4c4bb7d9e8391640c588
refs/heads/master
2021-07-11T15:56:44.923442
2021-03-25T08:38:46
2021-03-25T08:38:46
99,447,645
0
3
null
null
null
null
UTF-8
Python
false
false
1,672
py
import warnings; warnings.filterwarnings('ignore') import tensorflow as tf,numpy as np,pandas as pd import tensorflow_datasets as tfds from IPython.display import display,HTML pd.set_option('precision',3) tf.keras.backend.set_floatx('float64') tfds.disable_progress_bar() img_size=32 buffer_size,batch_size=10000,64 c1,...
[ "safuolga@gmail.com" ]
safuolga@gmail.com
29511c1e8bcf903725d957b2e420756cc1908ad8
29d7ba390d4b6046666f783e682ea248108ea900
/cbagent/__main__.py
09669d3c032cc65f432c457e3e7024f81dfcc2cd
[ "Apache-2.0" ]
permissive
pavel-paulau/cbagent
5f289fbaf08b997b55d270944d67f716ec1a127a
f905974d663e0320e55a00076d292cbf489e53d9
refs/heads/master
2020-04-26T09:55:43.761203
2014-07-31T12:41:18
2014-07-31T12:41:18
13,084,444
2
1
null
2014-06-19T02:15:22
2013-09-25T04:52:21
Python
UTF-8
Python
false
false
2,380
py
import sys from optparse import OptionParser from cbagent.collectors.active_tasks import ActiveTasks from cbagent.collectors.iostat import IO from cbagent.collectors.latency import Latency from cbagent.collectors.observe import ObserveLatency from cbagent.collectors.net import Net from cbagent.collectors.ns_server imp...
[ "pavel.paulau@gmail.com" ]
pavel.paulau@gmail.com
2dca0bd1777f06f89dde2a3e9d3cc9bf911d1be5
58580154e99fce5f2baa1c2d23c8e587c08a730a
/mlsummary/clustering/_optics.py
95d4b91bb2643463b029a5e02e4e7e9fae9fb972
[ "BSD-3-Clause" ]
permissive
serafinialessio/mlsummary
1376108c8a1c2b323045b5b9251bd0f5410c7705
c7f6d047fbedf182571f595f7aa59a4652df4229
refs/heads/main
2023-01-13T22:25:26.540860
2020-11-24T17:01:45
2020-11-24T17:01:45
315,001,550
0
0
null
null
null
null
UTF-8
Python
false
false
3,706
py
import numpy as np import pandas as pd from mlsummary.clustering._clustering_functions import _clust_weight, _clustering_metrics, \ _clustering_evaluation, _store_X, _fm, _ari, _sil, _db, _ch, _clust_centers_X from mlsummary.outliers._outliers_functions import _scatter_clusters_outliers class opticsSummary: d...
[ "srf.alessio@gmail.com" ]
srf.alessio@gmail.com
05890e0e58f21f43e1df0280cae5ee8aba8974ad
79e85494418b7236ab4519f35ee6a22349b3c531
/TensorflowMNIST/tfMNIST.py
4056e442d3bd80dd565a0fc8a2a8fe5c77f3f1d3
[ "MIT" ]
permissive
raghavgupta0296/Learning-Deep-Learning-Libraries
1e3014b88c7db7fc7a10957ade724d3de1fceef4
15cd020f1468d47bc9e09bcc12933a6aa8004792
refs/heads/master
2021-06-14T04:39:21.862036
2017-03-21T05:48:44
2017-03-21T05:48:44
68,845,257
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf mnist = input_data.read_data_sets('MNIST_data',one_hot=True) # print (mnist) sess = tf.InteractiveSession() x = tf.placeholder(tf.float32,shape=[None,784]) y = tf.placeholder(tf.float32,shape=[None,10]) W = tf.Variable(t...
[ "noreply@github.com" ]
raghavgupta0296.noreply@github.com
e170f688e59520f390ab02a6b3e1b52b161b747b
66bfac516682bc8c3c804a5b7414cfc8b3440186
/leads/apps/leads/serializers.py
5e9d220555f6c26071a166a7b386b109ee1a7eb8
[]
no_license
Izaiasjun1Dev/leads
190d1bf01f1809c34cb53582e0f1020c3d704b58
22a209b43fd0eb60218deba731c9bf189ea9568a
refs/heads/master
2023-04-05T15:15:39.834194
2021-03-30T11:35:36
2021-03-30T11:35:36
352,966,370
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
from rest_framework import serializers from .models import Lead # Serializador lead class LeadSerializer(serializers.ModelSerializer): class Meta: model = Lead fields = '__all__'
[ "solucaoprogramer@gmail.com" ]
solucaoprogramer@gmail.com
71f27e6f44fc1dfef7571b27982acccf33236218
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/ring/siren.py
7f1b147471d271411715ee41520529c0afef4805
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
1,678
py
"""Component providing HA Siren support for Ring Chimes.""" import logging from typing import Any from ring_doorbell.const import CHIME_TEST_SOUND_KINDS, KIND_DING from homeassistant.components.siren import ATTR_TONE, SirenEntity, SirenEntityFeature from homeassistant.config_entries import ConfigEntry from homeassist...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
9f1290f7f6f31c7b9141d7a8df5c908e18069708
28d74e08aeacf3703ab739849164e3f35f9af2a3
/CUNY_ML_Course_CSC74020/Logistic Regression & Regularization/log_reg_book.py
c71385fcc0dbe1c06b9fd36e1807ff989c985224
[]
no_license
wfeng66/Machine-Learning
5ef87b2149bdf50e7516e808c86176b8c7aeb900
de85d596ee97e7234d338ce47ee2addca56ccb89
refs/heads/master
2022-07-01T09:11:02.803824
2022-06-25T00:35:24
2022-06-25T00:35:24
173,125,231
0
0
null
null
null
null
UTF-8
Python
false
false
5,788
py
''' create a logistic regression from scratch including feature transform, PCA apply Breast cancer data set ''' import numpy as np from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler class log_reg(): def __init__(self, lr=0.25, epoch=100000, batch_size=4, fold=5, init='random')...
[ "weicongf73@gmail.com" ]
weicongf73@gmail.com
df3b159fcb643903c95d367dee0173bd363b6814
685dbb4416caf20f3e7e9c701df35088cb308d98
/pen_blink_detection/haar_face&eyedetection.py
b30f660c73698ceaca1c7994ef464cb5163f5785
[]
no_license
cseho67/2020_senior_project
e4469afa9ee488c5d406c5bd037c20542133ff9d
a653c9751315cfb5d6a8713ea46e13cae964aa67
refs/heads/master
2023-03-23T09:55:31.328411
2021-03-12T11:28:22
2021-03-12T11:28:22
297,645,550
0
0
null
null
null
null
UTF-8
Python
false
false
1,455
py
import numpy as np import cv2 def detectAndDisplay(frame) : frame_gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) frame_gray = cv2.equalizeHist(frame_gray) faces = face_cascade.detectMultiScale(frame_gray) for (x,y,w,h) in faces : center = (x + w//2 , y + h //2 ) frame = cv2.rectangle(...
[ "48603413+cseho67@users.noreply.github.com" ]
48603413+cseho67@users.noreply.github.com
f9d21162737f40168c323f56d4a303bf6211ce0c
c6d89d2507efe02ead1802649a769e021795b2b6
/categories/context_processors.py
cb9c2687489bdc34c2746a89d05b11c34a37b16c
[]
no_license
ikonitas/pleasuresallmine
b671b05d2f13428973cc19d39e58d0b56d1914f0
875e6067a202be801a9b1fddb27c4d313fd133f4
refs/heads/master
2021-05-29T19:50:39.812885
2014-11-27T21:22:22
2014-11-27T21:22:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
# coding=utf-8 from django.core.cache import cache from models import Category def list_categories(request): categories = cache.get('list_categories') if not categories: categories = Category.objects.filter( is_active=True).order_by('sort_order') cache.set('list_categories', cate...
[ "ikonitas@gmail.com" ]
ikonitas@gmail.com
ee2c0aca4610558fbd930ddc73708712cf37de3f
7260b155bef0a6ea3454ea1a8d05c945db98b57a
/scripts/topic.py
784af7b326871561334aab1e389d3250935cd990
[]
no_license
freddie1129/web-enron-project
a0ad2a9e394daa8b3d31b052d15d60cb3e6591a0
cdbfbecf69d4af0972bc3ffb5e5547357175acdf
refs/heads/master
2020-03-23T12:29:48.304308
2018-11-12T14:51:11
2018-11-12T14:51:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,366
py
#import spacy #spacy.load('en') from spacy.lang.en import English parser = English() def tokenize(text): lda_tokens = [] tokens = parser(text) for token in tokens: if token.orth_.isspace(): continue elif token.like_url: lda_tokens.append('URL') elif token.o...
[ "freddiechenchen@gmail.com" ]
freddiechenchen@gmail.com
cc8e6f027c3f9a654091243124118655bba7ed21
0da2927420dec6003c7e745422ac708f2df6a129
/FormatowanieTekstu.py
19999ca8c82b8da164285161491f573cd05e3e6b
[]
no_license
KamilJantos/Python_I
a37bafc0ded945dd4fd2f303fe51ad0ee870fb0c
660563015f01171c92a740b5b6437f09160a3030
refs/heads/master
2022-12-25T19:30:34.394224
2020-10-12T15:42:08
2020-10-12T15:42:08
303,437,968
0
0
null
null
null
null
UTF-8
Python
false
false
1,903
py
# formatowanie znane z Pythona 2.x wyznanie = "Lubię %s" % "Pythona" print(wyznanie) wonsz = "Python" print("Lubię %sa" % wonsz) print("Lubię %s oraz %sa" % ("Pythona", wonsz)) # %s oznacza, że w miejsce tego znacznika będzie podstawiany ciąg tekstowy # %i - to liczba całkowita # %f - liczba rzeczywista lub inaczej zmi...
[ "kamil.jantos7@gmail.com" ]
kamil.jantos7@gmail.com
f58e818470df252160aaaaa5eb5e4678b4f65192
e8b3283b51da072bb3721f27250276e8ca09cb16
/johnsonkuangwebsite/website/models.py
bfc721c9a7b1bd0bbb2dbc3a3ed5e447cf4a6162
[]
no_license
johnsonkuang/johnson-kuang-website
9f545cd9877e78e44325f27d8113f4b1724a010c
804055acf5e0444f1d34b36664ad3239a5209b3b
refs/heads/master
2020-03-27T09:46:35.779249
2019-01-11T07:25:07
2019-01-11T07:25:07
146,371,291
0
0
null
2018-11-05T21:56:24
2018-08-28T00:50:08
CSS
UTF-8
Python
false
false
7,738
py
from django.db import models from django.dispatch import receiver from django.db.models.signals import pre_delete, post_delete, pre_save, post_save, m2m_changed from django.utils import timezone from django.contrib.auth.models import User from datetime import date from image_cropping import ImageRatioField from sorte...
[ "johnsonkuang@outlook.com" ]
johnsonkuang@outlook.com
21df3f525aa8018d4988caa7395c9afa3a066060
18596ac4d79761a60e118c915378e0bb71bf0244
/dangxuanENV/Scripts/dangxuan/apps/televisions/models.py
9f2a88c225eb8c4170089c2a9ae0da4fea8f624f
[]
no_license
I-AM-DESPERADO/DjangoDemo
06fdf5ecaa88a3b24d0368f95962a57c8ed85ff7
012edd11ee671211f52917d5b57dc480b5f7ad24
refs/heads/master
2021-09-07T11:21:55.586979
2018-02-22T06:20:26
2018-02-22T06:20:26
104,620,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
# _*_ encoding:utf-8 _*_ from __future__ import unicode_literals from datetime import datetime from django.db import models class TelivisionProgram(models.Model): television_title = models.CharField(verbose_name=u'电视节目名称', max_length=255) note = models.CharField(verbose_name=u'描述', max_length=255,null=True)...
[ "1569890780@qq.com" ]
1569890780@qq.com
7bae5f6dbc68ac4b1343bd97117e35335e733b41
bf6b1e77e548d90c9a0e456d7cd1b6555c7f32ba
/Zookeeper.py
1187b6819fe60c8787614b23b21c6e078eab2e3c
[]
no_license
saiganeshrajakommuri/ZookeeperProject
b3d05aa0f2f9e5b79d7c1baa9cc1690b37bcebbb
b34828a35405ffae23f7b02e388dbacb9c354ad5
refs/heads/master
2022-11-18T22:57:09.259111
2020-07-18T12:22:39
2020-07-18T12:22:39
272,244,167
0
0
null
null
null
null
UTF-8
Python
false
false
4,425
py
camel = r""" Switching on camera from habitat with camels... ___.-''''-. /___ @ | ',,,,. | _.'''''''._ ' | / \ | \ _.-' \ | '.-' '-. | ', | '', ...
[ "noreply@github.com" ]
saiganeshrajakommuri.noreply@github.com
5946ceacec2ae4a3be3c157b5b5d605114c3ed7c
e0f0379c84b858959950fa25c19a80c453ec05b5
/main.py
8a3fea249dc3b5421d5da29f208a66712c538d0b
[]
no_license
fuwalab/popular-noun
26e87362f58dae0b2447cd1e8580115d075c0bc6
0d4964938ea8a4a2a9c946fe60de7abab0ae7911
refs/heads/master
2020-04-14T23:44:53.671033
2019-01-08T14:49:04
2019-01-08T14:49:04
164,214,388
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
#!/usr/bin/env python from scraping import Scraping from datetime import datetime from lib.analyze import Analyze from joblib import Parallel, delayed def main(): providers = [ 'naver', ] """スクレイピングした内容をテーブルに保存する""" # Parallel(n_jobs=1, verbose=0)([ # delayed(Scraping.run)(Scraping(),...
[ "ryo.tsugawa@gmail.com" ]
ryo.tsugawa@gmail.com
8cd2cc4ef6bde6bb958a5160732122d1e4d5c2af
b46513de1a1fe8eadbd01518fc6b8067de277aee
/vdbm/dumb.py
242e9f060e0925f6dc82f8bc9f9bc41d641c8dc1
[]
no_license
vrthra/taint-demo
b4b83f28727341d1723df1157e8a8ac67fc69097
9eb50f214dc5178b27ba7e4945441b31091037f9
refs/heads/master
2021-08-30T23:21:00.371936
2017-12-19T20:16:05
2017-12-19T20:16:05
114,804,336
0
0
null
null
null
null
UTF-8
Python
false
false
12,187
py
"""A dumb and slow but simple dbm clone. For database spam, spam.dir contains the index (a text file), spam.bak *may* contain a backup of the index (also a text file), while spam.dat contains the data (a binary file). XXX TO DO: - seems to contain a bug when updating... - reclaim free space (currently, space once o...
[ "rahul@gopinath.org" ]
rahul@gopinath.org
26f81f4eba18c5a190446ffa466434e3ef381ba3
41047972c9becb8ae49249b01947f4c9b97f30ed
/VPN/NTU_gcnn_Loader.py
0c2993db0a6a15eb2956f1171ede1bb45b76641a
[]
no_license
tranminhduc4796/vpn_action_recognition
c25a5ce397268f7088ec4aade6cdb2d951829d93
6c2e78f2bf0b312e047ba73eb585e660e96f60d3
refs/heads/main
2023-02-22T19:57:59.188150
2021-01-20T08:34:52
2021-01-20T08:34:52
327,543,723
3
3
null
2021-01-19T15:29:36
2021-01-07T08:03:19
Python
UTF-8
Python
false
false
5,367
py
import os import numpy as np import keras import glob from random import randint, shuffle from keras.utils import to_categorical import cv2 from sklearn.preprocessing import LabelEncoder os.environ['KERAS_BACKEND'] = 'tensorflow' seed = 8 np.random.seed(seed) class DataGenerator(keras.utils.Sequence): def __in...
[ "ductm21@vingroup.net" ]
ductm21@vingroup.net
dbdee5eef5cc684505c11a610e47fa8b0e522e5e
d6529fb62de5f5b41ba46c49bb73dd8ae9bb4194
/tools/conversion/Converter.py
35dbd564005fc1bdbda16dd1f0e3123683adc3a9
[ "MIT" ]
permissive
Blackdevil132/aes
45fb3d6b880fc9697c96c095c2283f78518fab67
4c1226ff2946ea9da9cea43e441c9cfda12ca972
refs/heads/master
2021-01-01T19:54:22.495680
2020-01-05T12:15:21
2020-01-05T12:15:21
98,718,294
0
0
null
2017-07-29T21:59:23
2017-07-29T08:05:55
Python
UTF-8
Python
false
false
4,796
py
from typing import List, Sequence from tools.datatypes.State import State from tools.datatypes.Byte import Byte hexcToInt = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, 'a': 10, 'b': 11, 'c': 12, 'd': 13, 'e': 14, 'f': 15, } hexcToBin = {'0': '0000', '1': '0001', '2':...
[ "larsbengel@uni-koblenz.de" ]
larsbengel@uni-koblenz.de
e6ea0a18c418751b3458be9dd1196e1a7f5514d0
2d13b3206b04d663eed9c5cfe7b6d273abaab33e
/2.Algorithm/pycharm/SW Academy/20200309/harvest.py
89098f8eaff5f7281c33299f947b60d69d741907
[]
no_license
hdp0545/TIL
0ba5378274f0076cd2b029581b292785a77207da
6d6e5e54373bd71606823e97b3a5fb2d63a2784e
refs/heads/master
2023-05-24T12:37:33.690750
2023-05-19T06:57:49
2023-05-19T06:57:49
235,004,133
1
0
null
null
null
null
UTF-8
Python
false
false
316
py
for test_case in range(1, int(input())+1): N = int(input()) matrix = [list(map(int, [n for n in input()])) for _ in range(N)] result = 0 c = N // 2 for i in range(N): di = (N//2) - abs(i - (N//2)) result += sum(matrix[i][c-di:c+di+1]) print('#{} {}'.format(test_case, result))
[ "hdp0545@gmail.com" ]
hdp0545@gmail.com
0fa10e1e12f2045d34d5cda669f06aa86c592aa5
4c1f87b0830debf0363e12c3c97c9d3b75b645e3
/day8/day8.py
6aeeac631bfbd3f1b13b534b3d5f55b40f73743c
[]
no_license
EricRoe/advent_of_code_2018
06e2777c78b60a08ae90147695447f660434ab3c
f12feccdc38446bd0eaa70171800f4479c6e6da4
refs/heads/master
2020-04-09T10:46:19.520667
2019-07-25T05:47:40
2019-07-25T05:47:40
160,282,242
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
with open('./input.txt') as f: d = f.readline().split() d = [int(i) for i in d] #test = [2,3,0,3,10,11,12,1,1,0,1,99,2,1,1,2] def get(tree): #print(tree) if not tree[0]: # print('base ', tree[2:tree[1]+2]) return (2 + tree[1], tree[2:tree[1]+2]) # skiplen, meta else: skiple...
[ "eric.roe@outlook.com" ]
eric.roe@outlook.com
1a5b1416d35a4f87113659da2f108d396f184d69
ab5a01f0fef7f3d824aa2adead9d3e5ed4e48037
/UtilitySplit/venv/bin/flask
444bb9f13ad9e69a8a712bcde7a829a81d8f3a93
[]
no_license
bob7479/UtilitySplit
41ee0dc94a10dfcd6ab46a336709df82da046051
3837984b13ffbd55b5a327ea95d33748d500fb96
refs/heads/master
2020-08-03T18:06:44.517823
2016-12-23T04:10:24
2016-12-23T04:10:24
73,541,541
0
0
null
null
null
null
UTF-8
Python
false
false
252
#!/Users/macbook/Documents/CalHacks/flaskr/venv/bin/python # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "macbook@airbears2-10-142-157-15.airbears2.1918.berkeley.edu" ]
macbook@airbears2-10-142-157-15.airbears2.1918.berkeley.edu
6890538b1bc2e5cf2c76206fe2ff95cbc574e301
40ba7074036d7834543764ae5e1c37985ffd4335
/main_blindPnP.py
e76c6ebe82ab7170fede3278d8dedffb6434465c
[ "MIT" ]
permissive
Liumouliu/Deep_blind_PnP
47d54c09db4f5e3ebff6875507e2a0b42430fc0d
0e3e679ffa58c4d0824abf138d0254744dce37da
refs/heads/master
2022-06-08T03:02:25.109027
2022-05-11T12:34:11
2022-05-11T12:34:11
221,364,258
129
18
null
null
null
null
UTF-8
Python
false
false
2,754
py
import os import random from easydict import EasyDict as edict import json import logging import sys import torch.backends.cudnn as cudnn import torch.utils.data from config import get_config from lib.data_loaders import make_data_loader from trainer import BlindPnPTrainer # logging ch = logging.StreamHandler(sys.std...
[ "panpanfei@outlook.com" ]
panpanfei@outlook.com
bd879dda1376bcb95331072006ffddb2e26bf6e4
e0c176d11c7582158f1ab9722b3d1e71761f6b1a
/src/eqc/zholkovskij.py
59e5d6d7f9eeb80d339ecabc602302f6803570c7
[ "MIT" ]
permissive
robbje/eis
93a199cfa52460707a84c037c7cb9ea0ad27732a
a7e0cac9e00e57f605cd9d9536d385a3f632e506
refs/heads/master
2021-01-18T22:24:42.178465
2016-07-11T08:55:55
2016-07-11T08:55:55
38,840,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,930
py
import numpy as np # Implements parts of the analytical transmission line models found in # "Irreversible Thermodynamics and Impedance Spectroscopy of Multilayer Membranes" - E. Zholkovskij # http://dx.doi.org/10.1006/jcis.1995.1034 def tanh(x): np.seterr(all='raise') try: y = np.tanh(x) except: ...
[ "robert.femmer@avt.rwth-aachen.de" ]
robert.femmer@avt.rwth-aachen.de
ff904f46d578f25e760593eff96a4f1ec4b5dd35
cef5a68531e6ebf90803c1ec95c21572ac13c139
/places/__init__.py
361279f1f8fe8dad090ef98e9e0ac753dd486822
[]
no_license
ARAVINDBALAN/django-places
3b4846a7797283349e15b9947d0db6d9fa544edf
78c488638ecc639249837d51415075653a6bd6bb
refs/heads/master
2020-03-27T16:23:25.388574
2017-09-10T00:33:24
2017-09-10T00:33:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys # Weird encoding python2 hack :'( if sys.version_info < (3,0): reload(sys) sys.setdefaultencoding('utf8') from decimal import Decimal default_app_config = 'places.apps.PlacesConfig' __version__ = '2.0.0' class Places(object): ...
[ "om.cortez.2010@gmail.com" ]
om.cortez.2010@gmail.com
d8514be79f7861f9ae195854ba1d64ed810716ea
3724a1b95e95e611cdd793d1af685f72dfea6b3e
/cloudcafe/networking/lbaas/lbaas_api/listener/client.py
ae712a2a12cef2e37f97dda90670c5fa142ac8e3
[ "Apache-2.0" ]
permissive
kurhula/cloudcafe
1b1e41994959cf959a49e19fea5cbda893d9c9df
7d49cf6bfd7e1a6e5b739e7de52f2e18e5ccf924
refs/heads/master
2021-01-20T22:45:27.425724
2015-02-20T16:49:35
2015-02-20T16:49:35
31,156,531
0
1
null
2015-02-22T07:56:08
2015-02-22T07:56:07
null
UTF-8
Python
false
false
6,979
py
""" Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
[ "franklin.naval@RACKSPACE.COM" ]
franklin.naval@RACKSPACE.COM
c623380ca8277769f08041e14cc66374a1963eb7
5be7afab3f57b7b5365053700386c01bad7031e6
/quotes.toscrape.com/1.2.quote_web_scraping/spiders/quotes_spider.py
16b47d33a8206b7bb7caf819229b34ef62e264fb
[]
no_license
enji-coder/SCRAPY-PROJECTS
c0c76e1ef8697320a0cb9b3fa9155a158574a5c1
bd65e6f3cf83912bc082ef39aba702db6cc4465c
refs/heads/main
2023-06-20T19:11:36.764847
2021-08-04T04:39:08
2021-08-04T04:39:08
386,542,799
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
import scrapy class ExampleSpider(scrapy.Spider): name = 'quotes' allowed_domains = ['example.com'] start_urls = ['http://quotes.toscrape.com'] def parse(self, response): all_quotes = response.css('div.quote') # retrive all quotes title , author and tag details # note it re...
[ "47570231+enji-coder@users.noreply.github.com" ]
47570231+enji-coder@users.noreply.github.com
aef44472f047aceb84b2c449b00ba97e0e4eeca1
6f160f5bb400a3a8cf01079320c8a4e5290f21e0
/detect_stutter.py
8e47ebe6c6c99df3adbb7b1e7392cc310e9b2464
[]
no_license
mansi-k/Stutter-Therapy
96729729028164124a98fb4dc6c4c218f11b6d48
4339bbe4a2c01b340548f8f3d58190ea358651a3
refs/heads/master
2021-08-28T11:36:16.945067
2021-08-20T14:23:09
2021-08-20T14:23:09
240,598,327
15
5
null
null
null
null
UTF-8
Python
false
false
2,432
py
import librosa import numpy as np import tensorflow as tf from pydub import AudioSegment from keras.models import load_model import os model_rep = load_model('/home/mansi/anaconda3/beproject/stutter_det/models/best_model_rep.h5') model_pro = load_model('/home/mansi/anaconda3/beproject/stutter_det/models/best_model_pro...
[ "noreply@github.com" ]
mansi-k.noreply@github.com
8a22a2ebe3c3159834157d2ebcd45a43c447d69a
1a73c506a7528026f9215ccbf0bba55d4a322346
/python/mail/SMTP-Header邮件.py
4110e72e8bd0590d1152a48060c133dc47441fad
[]
no_license
clearLoveKang/myPython
c3b533553067fddaac26d5341e307b521de55944
33d437629db498db4e41b48cd233e81a1cb5eaaa
refs/heads/master
2021-04-09T10:40:08.266133
2018-12-10T02:10:37
2018-12-10T02:10:37
125,455,226
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
# -*- coding:utf-8 -*- import smtplib from email.mime.text import MIMEText from email.header import Header msg = MIMEText('小可爱,起床吃饭饭啦', 'plain', 'utf-8') from_addr = input('form') from_pwd = input('password') to_addr = input('addr: ') msg['From'] = Header('大佬康<*******@qq.com>', 'utf-8') msg['To'] = Header('小宝贝<****...
[ "952472388@qq.com" ]
952472388@qq.com
35fe46be42a9c480e91d066a081e4accf192032f
423a41dadbacb77339a45e2741ae27b334d31f4f
/web/contactx_web/settings.py
518ac011ef49490bf09c5b92d95fc443f69b03ae
[]
no_license
tathagata/contactx
6594ad84caaa5be2d24a40670d30260fca829e1a
4f5cbdbd16e77829a6b1ab11542cc020e046e167
refs/heads/master
2020-05-30T23:06:01.461539
2012-08-22T21:23:33
2012-08-22T21:23:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,043
py
# Django settings for contactx_web project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NA...
[ "tathagatadg@gmail.com" ]
tathagatadg@gmail.com
dd5fcde7a9d2b752ffd11fa2e08293aa5ca7e1d2
ec1460fe71ed7669dc86cf3fabad60a54704c275
/main.py
5c73e430eed95479923d46aee1d6c50ef9c0bf35
[]
no_license
michoy/techathon_tellolib
948d5c42ee895045788bf4191aad924068197507
d2d606fd7fa4d956be8ea5ea2ac45977d6eca5f5
refs/heads/master
2020-08-11T08:15:11.820703
2019-10-12T09:25:24
2019-10-12T09:25:24
214,525,118
0
0
null
2019-10-11T20:40:20
2019-10-11T20:40:19
null
UTF-8
Python
false
false
467
py
from dronelib.dronelib_tello import TelloDrone from dronelib.util import * from time import sleep def main(): drone = TelloDrone() drone.activate() drone.takeoff(1.0) drone.set_target(0, 0, yaw=1.57) print(drone.position) print(drone.yaw) image = drone.camera_image save_image(image)...
[ "michael.hoyer3@gmail.com" ]
michael.hoyer3@gmail.com
f37779ca9fecf3ff431fdb243d8bdb30859f1a21
e70cc9ce5bf94d11d7c5d030abed5a0de26debb3
/biocellion_frontend/bin/biocell/solver.py
8c03f467ea6fa0093144599bfdf8361d90ba2d74
[]
no_license
boaguilar/biocellion_python
1c9f200142ee8892825fcdab90c68803da987742
0b3b48480436f21d9b46d07bd8f4da63b3e7a950
refs/heads/master
2021-01-11T18:44:51.924718
2018-05-02T21:15:24
2018-05-02T21:15:24
79,614,197
0
0
null
null
null
null
UTF-8
Python
false
false
6,157
py
from biocell import * class Solver( ParamHolder ): def __init__( self, name ): self.mName = name self.mEnumToken = "SOLVER_%s" % ( name, ) ParamHolder.__init__(self) self.setPrefix( "SOLVER" ) self.addAttribute( Param( "name", "str", "", True ) ) self.addAt...
[ "larsen@dixie.edu" ]
larsen@dixie.edu
69b06c5b9f0fa6a1d49e873a6054d2f98d73199e
580daee0cc0a961664cae1dbce027f09aa1b1ebc
/Lab4/mysite/mysite/settings.py
2ad06674b7af1f9a705f3038978ad089066442ce
[]
no_license
nmrchvz/cmput404-labs
a50cf115067adf842ddd73df308444e33c682d67
06d2ed47c59eb042ca76dc017606b2128fd288cc
refs/heads/main
2023-08-06T10:34:51.408572
2021-10-05T00:13:40
2021-10-05T00:13:40
404,498,403
0
0
null
null
null
null
UTF-8
Python
false
false
3,092
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.1.6. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
[ "npchavez@ualberta.ca" ]
npchavez@ualberta.ca
5d00ff9e5462a42bd1845fa9ba16d12841903f29
3e4912fd783063e5f2c7a8f41e1daf8ddb607670
/employees/serializers.py
ceff0c92ab6758257c4e3ada1874f6f9625ee453
[]
no_license
Puja0708/multi-tenant-system
6adad0993d7c5dc4e295e4a244a8e23506dbcaf1
25c325b5e5c9d6eaa31e5d4df516cfa7a23d8ce5
refs/heads/master
2020-03-27T22:35:35.115455
2018-09-10T11:55:49
2018-09-10T11:55:49
147,244,530
1
0
null
2018-09-10T05:11:31
2018-09-03T19:20:11
Python
UTF-8
Python
false
false
820
py
from __future__ import unicode_literals, absolute_import from rest_framework import serializers from employees.models import EmployeeRoles, Employee class EmployeeRoleSerializer(serializers.ModelSerializer): class Meta(object): model = EmployeeRoles fields = '__all__' class EmployeeViewSeriali...
[ "puja@metarain.com" ]
puja@metarain.com
0c3e715c31ed237c300f584fd1ce6e4102a51274
f4c9e202ff98983702e7f6d132b70398fc81ab93
/stb.py
2b3ddcd72e32018b1f5402e9446589a33dbfe87e
[]
no_license
MrCheeze/skywardsword-tools
5989f19bbc1a3c1f8fb37da91ad75ce6011adf01
b69c7a3ad3805906a2dc6965666a9a356a8bf979
refs/heads/master
2020-05-30T13:30:52.045344
2019-06-22T18:46:08
2019-06-22T18:46:08
189,759,599
1
2
null
2020-01-04T21:01:39
2019-06-01T17:22:39
Python
UTF-8
Python
false
false
1,404
py
import glob import collections import struct from util import * for fname in glob.glob('Stage/**/*.stb', recursive=True): print(fname) f = open(fname,'rb') f.seek(0x20) parsed = [] while True: seg_header = f.read(0x8) if len(seg_header) <= 0: break seg_len, seg...
[ "fishycheeze@yahoo.ca" ]
fishycheeze@yahoo.ca
41b0b6ae8bf47a9965ce80c9f09a4a499ded45fb
51320b2d4101f347229227495762a646f4d41ad8
/DDPG Agent - Continous Reacher Environment/a_memory.py
0d786c87f67d03b62314438012e20ea985ee199c
[ "MIT" ]
permissive
szemyd/deep-reinforcement-learning
805533eb9653c8b35009fcea00fc552d0bf99920
2dc2ab8511bcf3975c51dc057b66d2d500e2cf80
refs/heads/main
2023-04-11T12:51:56.732555
2021-04-26T11:20:23
2021-04-26T11:20:23
337,783,645
0
0
MIT
2021-02-10T16:30:51
2021-02-10T16:30:50
null
UTF-8
Python
false
false
1,946
py
import numpy as np import random from collections import namedtuple, deque import torch import torch.nn.functional as F import torch.optim as optim from constants import * class ReplayBuffer: """Fixed-size buffer to store experience tuples.""" def __init__(self, action_size, seed): """Initialize...
[ "szemy2@gmail.com" ]
szemy2@gmail.com
9a047c55dc1dbee0270501e4c076765c88d3e4a8
fe9a0558e78666150ca26fe7b8b2781061cf987e
/txtl/components/cds_tetr.py
0190a5cf7985da94cb3c385eac8860899748ef62
[ "BSD-3-Clause" ]
permissive
BuildACell/txtlsim-python
8c3587b1a0356e6617da6b67a8554a7697776e8e
5284a5477f38bbc8a956dc9608b0264ca672a331
refs/heads/master
2018-10-09T18:34:59.520569
2018-09-19T01:53:44
2018-09-19T01:53:44
111,568,117
4
4
BSD-3-Clause
2018-09-19T01:53:45
2017-11-21T15:38:53
Python
UTF-8
Python
false
false
559
py
# cds_tetr.py - TetR protein definition # RMM, 11 Aug 2018 # # This file contains the model for the TetR protein. # # Copyright (c) 2018, Build-A-Cell. All rights reserved. # See LICENSE file in the project root directory for details. from ..dna import ProteinCDS #! TODO: decide if this should be CDS_tetr class cds_...
[ "murray@cds.caltech.edu" ]
murray@cds.caltech.edu
79e21cfbaa2d7f08d3295fa45bba76eb09349b63
8c82d71c8d8edb259405787e010b943f921214c5
/job/urls.py
2ace98de5728d5d4b084b6ea651457d9d6fe5817
[]
no_license
Yossef-Dawoad/JOB_FINDER-django_demo-
14f4358c396479d1a8a862688fa6210d61f025df
8aacbcf3a1e269b0f2b2605093559476ca1674d7
refs/heads/main
2023-08-31T15:46:25.272822
2021-03-25T07:08:45
2021-03-25T07:08:45
351,337,435
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
from django.urls import path from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ path('',views.job_list), path('<int:id>',views.job_detail), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.MEDIA_UR...
[ "yossefdawoad15@gmail.com" ]
yossefdawoad15@gmail.com
b7f7294d6eed3c6580709c80a3bbdedfde794b91
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03767/s342121711.py
e279603e0ad4d33f1c70bcc3c868122d20a4b586
[]
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
197
py
n = int(input()) a = list(map(int, input().split())) a.sort(reverse = True) list = [] for i, j in enumerate(a): if i % 2 == 1: list.append(j) answer = sum(list[0 : n]) print(answer)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3a9a38abf83a67d5c4027f92a3dfc99fa6246173
a60732108767b0da186463d2ad834821da01750e
/PDF-reader/app.py
ae75f891ab42b54cc51e1e7020c995cc07424e98
[]
no_license
Luke943/QuickApps
23c58db13094860cfdc595475e79fa8f433e7605
8aa6e2768f9c97e9235338499b937d29399341d1
refs/heads/master
2023-08-03T14:09:53.265624
2023-07-27T15:49:18
2023-07-27T15:49:18
329,692,452
0
0
null
null
null
null
UTF-8
Python
false
false
1,646
py
import tkinter as tk import PyPDF2 from PIL import Image, ImageTk from tkinter.filedialog import askopenfile # initialise root = tk.Tk() root.title("PDF Text Extractor") canvas = tk.Canvas(root, width=600, height=300) canvas.grid(columnspan=3, rowspan=3) # logo logo = Image.open("logo.png") logo = ImageTk.PhotoImage...
[ "luke.hartley05@gmail.com" ]
luke.hartley05@gmail.com
167bfeaee564f8d3e016763b63baeb7fb6fca90f
96537900c2170dab239d9c3f13e3c11fd262646f
/introducao_a_ciencia_da_computacao_com_python/primalidade.py
74ee662d7f67078db88997d458d25981556376f6
[]
no_license
lucasvini92/cursos
31be37c17417acc0b19e0dc263f0245bc9ac7ac5
cbba4b3efa328b0a05fad3f36bf6850c39962d08
refs/heads/master
2023-07-11T05:33:03.064262
2021-08-28T16:32:46
2021-08-28T16:32:46
376,107,134
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
num = int(input("Digite um número inteiro: ")) div = 1 cont = 0 while num>=div: if num % div == 0: cont = cont + 1 div = div + 1 if cont <=2: print("primo") else: print("não primo")
[ "lucasvsteofilo@gmail.com" ]
lucasvsteofilo@gmail.com
1f6bb93da2698a8ef381c0b71b36dd2085b09945
a8b2e3623533d454e484598024eac7b0d27b34a3
/cosmoslik/cosmoslik_plugins/models/classyAACF.py
758fdc5aa0356cfd881d9b25dcf44bb6dad625bd
[]
no_license
andy16777216/FiniteInflation
087f08762cec62864871682508b14d2b9c97ab8d
900b402124af30d7b1b5a13af6d1232708f55788
refs/heads/master
2016-09-06T01:27:02.289672
2015-07-16T18:48:42
2015-07-16T18:48:42
26,138,678
0
0
null
null
null
null
UTF-8
Python
false
false
3,125
py
from __future__ import absolute_import from cosmoslik import SlikPlugin from numpy import arange, pi class classy(SlikPlugin): """ Plugin for CLASS. Credit: Brent Follin, Teresa Hamill, Andy Scacco """ #{cosmoslik name : class name} - This needs to be done even for variables with the same name (be...
[ "ajscacco@ucdavis.edu" ]
ajscacco@ucdavis.edu
9b76cc3e5a3c0554ecc498d1baca0cc45673e406
b99e57154208f6ac74d40fdebf4416edc7b51a36
/coding_challenge_6.py
bfb0a253361b075d1475f6f90be499448d0c0e3e
[]
no_license
Shaletanu/avodha_code_challenge
1103186f84290e0b6451bb4759376f9df645286f
bac6a8f93c4a5bf51da95f884718578e0fc69458
refs/heads/master
2023-02-12T22:41:27.106797
2021-01-14T14:56:00
2021-01-14T14:56:00
326,682,650
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
file1 = open("demo.txt", "w") file1.write("Hello, I am Anu Shalet Philip.") file1 = open("demo.txt", "r") content = file1.read() print(content) file1 = open("demo.txt", "a") file1.write("I am from Kottayam.") file1 = open("demo.txt", "r") content = file1.read() print(content) file1.close()
[ "shaletanu0@gmail.com" ]
shaletanu0@gmail.com
33e3d04f28f29015f75634a2bf0fb461acc8a6cc
fe85e3675c1d665dcc09fb9814003fc1030aa5c2
/utils/metrics.py
3903650d448783ce5b7f7eb0108ff508904bf13e
[]
no_license
nik1806/coco-segmentation
ef25bf721f5f65f64f1fc32ea7abe1243deaaa64
b6f94c8cef13660183483617c74373071022a78a
refs/heads/main
2023-06-14T15:15:47.188118
2021-07-09T09:17:16
2021-07-09T09:17:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,249
py
import numpy as np class Evaluator(object): def __init__(self, num_class): self.num_class = num_class self.confusion_matrix = np.zeros((self.num_class,) * 2) def Pixel_Accuracy(self): Acc = np.diag(self.confusion_matrix).sum() / self.confusion_matrix.sum() return Acc def ...
[ "290806078@qq.com" ]
290806078@qq.com
dfaffdcd61d7a94c5ada0c487c4730ac16adde76
ac1a206541472b3fd096c928e511e7b13cf97733
/python/src/cph.py
3dc2f4a969eb45d7547b7a5e80731790b4417f53
[]
no_license
ScorpioCPH/code
2979d1e00476ae181cd979d81ba2a8f82a875d72
faeef3383633d11f9f3e533c817b4bfac3c6d701
refs/heads/master
2021-01-19T09:52:09.721808
2017-12-08T11:42:59
2017-12-08T11:42:59
82,145,392
1
1
null
null
null
null
UTF-8
Python
false
false
51
py
# coding=utf-8 def print_str(str): print(str)
[ "scorpiocph@gmail.com" ]
scorpiocph@gmail.com
b756c6d0e4cc938e243af0395a0c6bc9ec64ea18
31e71ffe0a7d283db1bc35509cc1e87bbc1ffb11
/exercise/exercise29.py
4d1f35041cead990dd8d4ce618b8b0a7210c4a8e
[]
no_license
dayadaoshanghai/Learn-Python-the-hard-way
879d3435e3651481728e6e3a919ad25413cf4466
cc635d5a752074c04e74b704b55b4b88ac9005b3
refs/heads/master
2021-01-01T17:24:47.118273
2017-07-31T12:42:34
2017-07-31T12:42:34
98,064,981
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
people = 20 cats = 30 dogs = 15 if people < cats: print("Too many cats! The world is doomed!") if people > cats: print("Not many cats! The wolrd is saved!") if people < dogs: print("The world is drooled on!") if people > dogs: print("The world is dry!") dogs += 5 if people >= dogs: print("Peop...
[ "noreply@github.com" ]
dayadaoshanghai.noreply@github.com
e80586d7b73647ff3cab136e14a4b886a1f83e38
e6789e78f86279eb1bda423aee5d6fffed23ae2d
/Source/Travel/app.py
f4dd6ac98d3ee596e13821aa9ef04498b60dc3b5
[]
no_license
frankli0324/LCTF2018
4b4872db2c2c6ee75d8672c02000cc1b8eec9257
b8d95312b534258c85e9bb2e34a0ce85f3858192
refs/heads/master
2022-11-15T02:50:08.902822
2020-07-12T06:47:25
2020-07-12T06:47:25
278,698,725
2
0
null
2020-07-10T17:50:07
2020-07-10T17:50:06
null
UTF-8
Python
false
false
1,106
py
# -*- coding: utf-8 -*- from flask import request, render_template from config import create_app import os import urllib import requests import uuid app = create_app() @app.route('/upload/<filename>', methods = ['PUT']) def upload_file(filename): name = request.cookies.get('name') pwd = request.cookies.get('...
[ "tundrawork@gmail.com" ]
tundrawork@gmail.com
533aa898ba74cdb427d7bac5c8d8a70e01eee588
dba1be9c35a2044fb9d07a55f52b3740147b467e
/tests/bam2msa.py
47cf401d9e5c528613aa6ab5a9fddb116f012c18
[]
no_license
849189526/BioExt
2279cb2d76f158266a08b29d2e31b8300b411b89
e36c3b4a118fb73281ae4f068fceb046f35ab1f6
refs/heads/master
2020-06-25T08:18:37.373893
2019-01-11T18:00:58
2019-01-11T18:00:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
#!/usr/bin/env python3 import nose import functools import os from Bio import SeqIO from BioExt.io import BamIO from BioExt.args import ( add_alphabet, add_reference, add_scorematrix ) from BioExt.uds import _align_par from BioExt.misc import compute_cigar, gapless from BioExt.scorematrices import ...
[ "sweaver@temple.edu" ]
sweaver@temple.edu
b2be71e62e17a50fa0a9622b560930e5da02e4ef
3f928eaab094902a37f1c282f8fea9064769a3f0
/proxy_check.py
d6a32569a935ea14a9059a26b2efde6a660f8916
[ "MIT" ]
permissive
HimanshuNayka/YouTube-Viewer
f5e77ddf4bac5148e2944b2b0c9ca7cf8f988c2d
adf9f196a9ec8e681e4f94558e0ff55804ac9dd2
refs/heads/master
2023-04-09T06:19:34.677733
2021-04-17T08:44:13
2021-04-17T08:44:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,998
py
""" MIT License Copyright (c) 2021 MShawon 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, distr...
[ "shawonk440@gmail.com" ]
shawonk440@gmail.com
5e9075f5cad527f8659449177fea32357ade4ad8
96a91d882e73cff97da43eb92e79826570678ad0
/done/county_process.py
afc3d40850b409a05a415f65e05ddbed2603f389
[]
no_license
carrickdb/FakeNews
a7dea0b537709bfd3134c83c1a57391d95472596
cc96e0b07f70e62ecc7525c65cbe71cdd465fb0d
refs/heads/master
2021-10-21T18:38:05.596102
2019-03-05T17:48:29
2019-03-05T17:48:29
167,854,596
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
import csv """ Converts file with votes by county and party to a pivot table with each county only listed once """ counties = [] with open("county_votes.csv", 'r') as f: with open("processed_votes.csv", 'a') as g: reader = csv.reader(f) writer = csv.writer(g) header = next(reader) ...
[ "carrickdb@gmail.com" ]
carrickdb@gmail.com
569c0fe40b397c4990eb34ce4716eead233cf51f
e0ede722874d222a789411070f76b50026bbe3d8
/practice/solution/0040_combination_sum_ii.py
522d0209dcadd27bc9829d15d2270d94bb200cd4
[]
no_license
kesarb/leetcode-summary-python
cd67456cb57bdff7ee227dab3930aaf9c2a6ad00
dc45210cb2cc50bfefd8c21c865e6ee2163a022a
refs/heads/master
2023-05-26T06:07:25.943854
2021-06-06T20:02:13
2021-06-06T20:02:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
class Solution(object): def combinationSum2(self, candidates, target): """ :type candidates: List[int] :type target: int :rtype: List[List[int]] """ self.res = [] self.dfs(0, sorted(candidates), target, []) return self.res d...
[ "weikunhan@g.ucla.edu" ]
weikunhan@g.ucla.edu
87ac431ed770aef0ee07763a3f61bd864ed4841c
092227c7e85555a5f2b547629a7e9639c34b7417
/personal_portfolio/urls.py
47fbf7302c14ab33b45f3cde91812f4ff657f2f7
[]
no_license
Shibly10/django-personal-portfolio
d4093ebad23b04f6380009f56a55b5aeeb662a59
b6618c09a21d121da64b1426cdd375b16f7ad99a
refs/heads/main
2023-01-05T22:03:09.295517
2020-10-29T17:08:51
2020-10-29T17:08:51
308,362,724
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
"""personal_portfolio URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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') ...
[ "shibly.ar@gmail.com" ]
shibly.ar@gmail.com
aa95ecd48c26cdc6d818087c90547e93aabb6d85
a1662bb69ffb305c5182b41f102a17ec259b143a
/src/triangles/hashed_edge_iterator.py
309bf35421ebdcaf3a4ecbaea597a536ec9e1b4b
[]
no_license
AndersHqst/SAAS-2014
d5df874d835e6253e05f9b1d79f132297c24dbfb
28b48e448baf678a8c954b78f70b8e6eed1de6fb
refs/heads/master
2016-09-05T13:46:30.356794
2015-05-01T14:17:05
2015-05-01T14:17:05
34,905,988
0
0
null
null
null
null
UTF-8
Python
false
false
4,700
py
import utils from time import time # TODO: clean up def print_stats(G): edge_list_lengths = [] _max = 0 _min = 9999999 for key in G: l = len(G[key][0]) if l < _min: _min = l if l > _max: _max = l edge_list_lengths.append(l) avg = sum(edg...
[ "ahk@e-conomic.com" ]
ahk@e-conomic.com
9233296ae37437b00a31b248c98072ae1ac1daeb
3ed9e1c43f8560ad08ce7ffff83bdae8aaa0992a
/superset/datasets/commands/importers/v1/utils.py
c21c66ff18077bb2fed9927fb56fc49fc3a1d27e
[ "Apache-2.0", "OFL-1.1" ]
permissive
sekikn/superset
7e07b3a6f494ead275b43909a2f8990cf67e170c
45020860d5c65f08c73f550054166ba1089fecef
refs/heads/master
2022-12-22T13:25:37.095102
2021-05-25T21:59:05
2021-05-25T21:59:05
92,110,168
0
0
Apache-2.0
2022-12-19T00:52:32
2017-05-23T00:03:38
Python
UTF-8
Python
false
false
5,394
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
sekikn.noreply@github.com
b92ba34be5084acd5dfdc2bbc230067045fbcdc5
cc5dc60b5c343962bf7425865af8371b7e12e529
/MagnitudeCalculator/Tester.py
a66bbb50a665010fc279ac775b2bd3b715d6641c
[]
no_license
debjyoti385/quakeanalysis
044aa5f5a9429090ab7bd42370ea4b43d36c18d0
4e3225f1a20ae1f05e6be532836e4ff9ee405071
refs/heads/master
2021-05-04T11:31:50.052098
2017-02-28T00:35:36
2017-02-28T00:35:36
48,445,691
0
0
null
null
null
null
UTF-8
Python
false
false
1,854
py
'''from obspy.fdsn.client import Client from obspy import iris from obspy import arclink from obspy import UTCDateTime client = Client("IRIS") iClient = iris.Client() arcClient = arclink.Client(user="sed-workshop@obspy.org") timeSeriesClient = iris.Client() t1 = UTCDateTime("2012-04-12T07:15:49.1700") #t1 = UTCDateTi...
[ "zinniamukherjee@Zinnia.local" ]
zinniamukherjee@Zinnia.local
fcc07437f6183ea5ca1b7698be6bd8ec4aa4f8a1
6b62ec48d3772e3422053bc3d7eca2959b7fb88f
/platforms.py
9b1ab27164c7c95f1cf3cf12acbdac633c44f1ff
[]
no_license
SueFolkerts/Python2InfinitePlatformerPhase5
89a6f4eee402e7a165b5f6dc0ed20f94b60f65f0
903be21ef091ea23c5ae3e0d78aaf3e02c48531c
refs/heads/master
2020-03-23T13:11:40.634618
2018-07-20T19:16:49
2018-07-20T19:16:49
141,604,934
0
0
null
null
null
null
UTF-8
Python
false
false
789
py
import pygame, random class Platforms(pygame.sprite.Sprite): def __init__(self, pos, img_path, width=70, height=70): super().__init__() self.image = pygame.Surface([width, height]).convert() self.image.blit(pygame.image.load(img_path).convert(), (0, 0), (0, 0, width, height)) self.im...
[ "sfolkerts@coinstar.com" ]
sfolkerts@coinstar.com
ea9f4f343b6d8e2a0a698b51ce3bb7b4ef6f0749
d749ebc7b7f0a686cf04f31bf59abb82a5ea28e4
/sourceful/MusicMatcher.py
4e26db72f55c8ebf7e209d190b477b76debaa87c
[]
no_license
ssa11200/python_warmup
c780a97fe823ce61512bf34d8434b339a14943b1
507285405fe4f7d43e1eecca9eb5ec5cdd217e74
refs/heads/master
2023-03-24T13:15:27.060823
2021-03-23T20:27:04
2021-03-23T20:27:04
343,135,876
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
from .api_modules import ( analyse_feeling_polarity, find_music_for_feeling, find_lyrics_for_music, ) class MusicMatcher: def __init__(self, feeling): self.feeling = feeling self._music = None self._lyrics = None self._polarity = None def _analyse_feeling(self): ...
[ "ssa11200@gmail.com" ]
ssa11200@gmail.com
6bfa1fa52e42430692f0306be410aa035a39fb92
811acdfdd52a56a8440ca72c889bec850280b5ba
/libro/funcion_print.py
1c05f5886b660b6b11ea36481ef57465e3a3e9eb
[]
no_license
josselinereyes841/CYPJosselineRM
ca36e4acbb242a290682c07234f3e7cf864e9114
db42ec10b4529424c975f9dc4dcf53eef896efee
refs/heads/master
2021-06-30T13:19:13.001339
2021-01-15T23:16:44
2021-01-15T23:16:44
207,672,080
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
#print tiene 4 formas de uso """ 1.- Con comas 2.- con signo '+' 3.- con la funcion format() 4.- es con una variante de format() """ #Con comas , concatenar agregando # un espacio y haciendo casting de tipo edad = 10 nombre = "Juan" estatura =1.67 print(edad , estatura , nombre) #Con '+' hace lo mismo pero no hace el c...
[ "josselinereyes35@outlook.es" ]
josselinereyes35@outlook.es
3c156345bff5b954c74eae0c7acbc51069a76b7c
67af82e4e3e654fd59dc8e14479907c084d68e4b
/LeetCode-Python/677. Map Sum Pairs.py
638b4bab681c819d3d5830cb2219593a060b123b
[]
no_license
KaranJaswani/Codes
6ba3f90cc3a0908ccfa4cf4c9b4794f5de6c63a6
0a833b8f666385500de5a55731b1a5590827b207
refs/heads/master
2020-05-30T07:12:37.383960
2017-12-30T14:06:45
2017-12-30T14:06:45
68,880,527
0
0
null
null
null
null
UTF-8
Python
false
false
1,924
py
class TrieNode(object): def __init__(self, char, value): self.character = char self.value = value self.isWord = False self.children = [None] * 26 class MapSum(object): def __init__(self): """ Initialize your data structure here. """ self.root = T...
[ "karanjaswani123@gmail.com" ]
karanjaswani123@gmail.com
2376aebcad3f0702f3a564e5846c0a36edd5a57b
2bbf7151418e9272da01440626b6a6c1e6aa1944
/code/utils/tools.py
353f7fc3cf498c6e392805ca0c7b48332638a7fe
[]
no_license
aliparac/AIMOS
b458c3c213095601cb38ac5ab109413f57278ea8
579b239f9ce3650c8f924c034128bfe9e7f67bdf
refs/heads/master
2023-03-16T08:13:39.109936
2021-01-26T11:04:14
2021-01-26T11:04:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,985
py
import numpy as np import torch from torch.nn import functional as F from utils import architecture #%% def choose_architecture(config): if( config['architecture'] == 'Unet64'): model = architecture.UNet64(num_classes = len(config["trainingCIDs"]) + 1) elif(config['architecture'] == 'Unet128'): ...
[ "noreply@github.com" ]
aliparac.noreply@github.com
798efca679f2d54fa6c1a967b92fe1d157e03f55
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnfaulti.py
0db9ec8c46bcffabd20b375fd10825d23728bee3
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
624
py
ii = [('CookGHP3.py', 1), ('SadlMLP.py', 2), ('MartHSI2.py', 1), ('LeakWTI2.py', 1), ('KembFJ1.py', 1), ('WilkJMC3.py', 1), ('WilbRLW5.py', 1), ('GellWPT2.py', 1), ('SeniNSP.py', 1), ('LyttELD.py', 1), ('AdamHMM.py', 1), ('ClarGE.py', 3), ('DaltJMA.py', 1), ('NewmJLP.py', 3), ('CoopJBT.py', 1), ('LeakWTI4.py', 1), ('Me...
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
6df06f09484f86ee27ca27323878d76a2cc016fc
c4c068b02899e333fb6d7d735bece664d257c563
/pset8/mashup/helpers.py
e4858d86ab07cb1cccca30737499e3a730ef69be
[ "CC-BY-3.0" ]
permissive
eqmvii/CS50
442290ea91d6352617beaf8319e3c338bbf1d103
0024ea50131abefa4e87fc1b90cee8430a648575
refs/heads/master
2021-01-20T04:50:43.719740
2017-04-28T20:37:10
2017-04-28T20:37:10
89,742,887
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
import feedparser import urllib.parse def lookup(geo): """Looks up articles for geo.""" # check cache for geo if geo in lookup.cache: return lookup.cache[geo] # get feed from Google. !!! CURRENTLY TO AVOID SPAM BOT J'ACUSE FROM GOOGLE !!! # http://news.google.com/news?geo=22044&o...
[ "coelomate@gmail.com" ]
coelomate@gmail.com
b2bc2b0ea9c43e023c7ac3dd9a00da3a702d32f6
69d0dfacdbff0d7aeee16ad590ef18b7bacdbd0c
/app.py
b14ff69cc1da8ea9ed6af4b2019e8d5dd88f79d5
[ "MIT" ]
permissive
ybangaru/wallstreetbets-sentiment-analysis
0a628c84f2229e5df2700ae76883e94c4df4735c
dc5a632f93f2c3a4454b45f96f9e6b580c6c4be5
refs/heads/master
2023-05-12T15:03:47.594562
2021-05-24T21:18:07
2021-05-24T21:18:07
333,496,347
11
0
null
2021-05-04T20:35:43
2021-01-27T16:50:25
Python
UTF-8
Python
false
false
7,250
py
import streamlit as st import numpy as np import pandas as pd import datetime import os import matplotlib.pyplot as plt from wordcloud import WordCloud, STOPWORDS from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer import plotly.graph_objects as go from sqlalchemy import create_engine from sqlalchemy.p...
[ "yaswanthbangaru13@gmail.com" ]
yaswanthbangaru13@gmail.com
dfab13a39ba70b6e52dbdf34305264365e154d8a
e4b7348387bbda5e4b44b69cfd015f52db892e5a
/Scripts/Workflow/make_1d_vmodel.py
63f087d378942f64a32d6aaf8fb7d5f1f88e3624
[]
no_license
calum-chamberlain/kaikoura-aftershocks
9199e6949a08cf7cbd1f810faaf85325e86b736f
ec0ae1f100bc2e686f42c32fefeb18805d19ccfb
refs/heads/master
2023-04-14T02:55:31.928872
2021-06-25T23:47:11
2021-06-25T23:47:11
310,416,172
1
1
null
null
null
null
UTF-8
Python
false
false
3,182
py
""" Script to extract an average 1D model from Donna's NZ3D model. """ import numpy as np import pandas as pd MODEL_FILE = "vlnzw2p2dnxyzltln.tbl.txt" # NZ3D 2.2 from https://zenodo.org/record/3779523#.YCRFaOrRVhF def extract_one_d( min_x: float = 72.0, max_x: float = 110.0, min_y: float = -100.0, ...
[ "calum.chamberlain@vuw.ac.nz" ]
calum.chamberlain@vuw.ac.nz
b7c74db336e873841c529bfce999bb9f261be520
01e7b0d71126597de316e95858c54267ee30d3f5
/data_utils/video_utils.py
d4e3ded1253752a0f6949ab56e3df9664f1adf80
[ "MIT" ]
permissive
Sapphirine/201912-13-video-object-segmentation
0604aaf8457e68139aef4cc6f56c324b6557b669
cfd36f502385f99b39e309ae39309d5e1785cfc8
refs/heads/master
2020-11-26T17:09:53.467432
2019-12-19T14:59:01
2019-12-19T14:59:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,376
py
import os TMP_FOLDER = "tmp" MODEL_FOLDER = "models" cached_video = set() cached_model = set() for f in os.listdir(TMP_FOLDER): if os.path.isdir(os.path.join(TMP_FOLDER, f)): for i in os.listdir(os.path.join(TMP_FOLDER, f)): if os.path.splitext(i)[1] == ".mp4": cached_video.add...
[ "1178869226@qq.com" ]
1178869226@qq.com
05a3ec96169afb4787eb493000b49e279c8e524a
b6fe842749ca288b5e7f048c149b04f035f62b93
/mydb/pymongo_sort.py
04d1b772002037998bc33da0a68299c6aeb45b5f
[]
no_license
zxcvbnm123xy/leon_python
c8fa74dd0186402b9edf7466f9a28a6fa586b17c
b68f5d5e8240c5a99ec7c155fb85f816ac0d54d1
refs/heads/master
2020-03-27T03:03:43.610701
2018-11-14T09:17:15
2018-11-14T09:17:15
145,836,887
0
1
null
null
null
null
UTF-8
Python
false
false
475
py
# 加载依赖 import pymongo # 创建连接 myclient = pymongo.MongoClient("mongodb://localhost:27017/") # 定位到数据库mongo_python和集合sites ##use mongo_python mp = myclient["mongo_python"] sites = mp["sites"] #按照alexa降序,name升序 db.sites.find().sort({"alexa": -1, "name": 1}) siteList = sites.find({}, {"_id": 0, "name": 1, "alexa": 1})\ ...
[ "737878501@qq.com" ]
737878501@qq.com
37d16ddeb7663fc42eb684c9fd238cc1286dc69c
6c202bfadef2d80242567be70e2437e384a96b20
/IO/IO.py
b7ef9cb9e50b01ac979792f2d15848dbfe3327fd
[]
no_license
hoylemd/Python
257acecc1bc6c0e21d7c9bffc2d3b8861add9dab
39e3863c87d83883d15e5db39a5fd5ce605b6ebb
refs/heads/master
2018-12-28T20:33:16.497465
2012-10-15T02:44:36
2012-10-15T02:44:36
1,898,329
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
# read a string from the terminal str = raw_input() # print it back out! print str
[ "hoylemd@gmail.com" ]
hoylemd@gmail.com
a2098e532178626c84dfc0a6903f249677bf9452
66c959e86bc9e44134f905411dcfca772111727c
/read_serial.py
e2542d445cb1b428315d864e69adf5d445cdb4a1
[]
no_license
Rohan1997/Heat-Map
18a71c258e6da0c2995b77ae3b2bd59bc7380402
ba1f1b3cd7dfe8bc20c6716182e9bbb338dc706f
refs/heads/master
2020-03-09T17:51:54.515814
2018-04-21T12:19:44
2018-04-21T12:19:44
128,918,123
0
0
null
2018-04-10T12:12:20
2018-04-10T10:53:23
Python
UTF-8
Python
false
false
2,707
py
# Basic working code for reading data directly into python import serial import time # This port address is for the serial tx/rx pins on the GPIO header SERIAL_PORT = '/dev/rfcomm0' # Set this to the rate of communication between PC and HC-05 SERIAL_RATE = 115200 def char_to_float(units, tens, hundreds, thousands)...
[ "noreply@github.com" ]
Rohan1997.noreply@github.com
36ae4bf7acd0fbbd49bef683b159f3a04f225313
9c395cde750544f92eaaaa7e2c38981ee05c023b
/tetris.py
7726ba1a31a3036f7d6e8e6f40654cf5400f8730
[]
no_license
MukulBarai/Block-Puzzle
a4c39e703d7393b1dbade71a9067f4fbd3f5bd0f
eb16527ca159906bf688e9439c6bcc8baf6e0bc7
refs/heads/master
2020-12-21T20:44:09.937514
2020-01-29T10:13:02
2020-01-29T10:13:02
236,554,530
0
0
null
null
null
null
UTF-8
Python
false
false
7,363
py
import pygame import time import random import copy #Declaring Variables col = 20 row = 40 blockW = 15 width = col * blockW height = row * blockW gameOver = False matrices = [] #Variable for clock startTime = time.time() clockTime = 0.25 nTime = 0 #Initializing pygame pygame.init() window = pygame.display.set_mode...
[ "mukulbarai82@gmail.com" ]
mukulbarai82@gmail.com
2912d2a93ef0093a5fc03526ab6241d7cb22a290
5f4a544e4903bc8fcfcd67e18a8a615e76b36974
/dog.py
5bb3af7c0a7e6898df925d697416d2ed0d61731b
[]
no_license
tkkohei/hangman
a6d4fbbccd0c5a2c4488206649cf662a04c13dac
6e4d20366fae171fd5fa8391c93ceceedd29eebb
refs/heads/master
2020-09-07T00:08:23.779349
2019-11-10T03:39:28
2019-11-10T03:39:28
220,597,870
0
0
null
null
null
null
UTF-8
Python
false
false
6,136
py
class Dog: def __init__(self, name, age, weight): self.name = name self.age = age self.weight = weight def bark(self): if self.weight > 29: print(self.name, 'says "WOOF WOOF"') else: print(self.name, 'says "woof woof"') def human_years(self)...
[ "kenjimitana@gmail.com" ]
kenjimitana@gmail.com
ec85b4f9323253ff48527e8e39cfd5d87818c3b9
2b01bc8e7af1cecbb9fcc19003e39cac34302824
/backend/backend/settings.py
60771b66ca8921eb1aa87be8d6b52d26174f3ec6
[]
no_license
pushp1997/django-react-ToDo
19db10806c1f84214fc0661cda4df40ede9af5a1
b4347ab10b97860881028eebeb11a3eb68066f6e
refs/heads/master
2020-07-06T14:31:37.702231
2019-08-19T14:10:18
2019-08-19T14:10:18
203,050,696
0
0
null
null
null
null
UTF-8
Python
false
false
3,322
py
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
[ "pushptyagi1@gmail.com" ]
pushptyagi1@gmail.com
3c07bcfba5b64326ebbc13e40028b85a23b263a6
0d0fc8fbe57a2ea04e4c8b1193f7a222b4885c0d
/guppypy/x86_64.py
28359221129c6d2386d71238d824fe5c16d3443b
[ "MIT" ]
permissive
alexpatel/guppypy
350ccabfe3419e381fb8ca12aaa853958c2fd09a
99e8cee2bceaa39922dfef047ae631e5e6cac941
refs/heads/master
2021-01-01T17:11:16.838570
2017-08-01T00:16:07
2017-08-01T00:16:07
98,016,177
2
0
null
null
null
null
UTF-8
Python
false
false
2,331
py
from pysmt.shortcuts import Symbol, Int, And, GE, LE, LT from pysmt.typing import INT # x86_64 BarrelfishOS user-space system call argument conventions machine_description = lambda regs: And( # each register in regs has to be loaded from user stack And(reg.has_valid_stack_slot() for reg in regs.values()), ...
[ "patelalex02@gmail.com" ]
patelalex02@gmail.com
35cb7793738f6b54b9ee1b5787d61123bef9078c
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/devel/py-plex/files/setup.py
8dd6df636fa7769ec66d39646010d04752d975bc
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
Python
false
false
124
py
from distutils.core import setup setup( name = 'plex', version = "%%PORTVERSION%%", packages = ['Plex'], )
[ "perky@FreeBSD.org" ]
perky@FreeBSD.org
0d497de579e262500807394359bad38278397bee
90ea49bb872623a0fc117632df0232f26e078033
/redis_main.py
6e22c3d257bc2ca5b18745dc8e70d73601aefcc6
[ "MIT" ]
permissive
JX-Wang/Redis-servcie-T
e4612967a30c8c18ba5fa51aac91482e5f4f591a
26005d0b15defa8628220512046aadc94765bd5b
refs/heads/master
2020-06-17T04:39:28.779495
2019-07-09T12:35:38
2019-07-09T12:35:38
195,799,949
1
0
null
null
null
null
UTF-8
Python
false
false
263
py
# usr/bin/env python # coding:utf-8 """ redis Notes ============ Date@2019/7/9 Author@Wangjunxiong """ import redis try: r = redis.Redis(host="39.106.165.57", port=6379, db=0) r.get("msg") except Exception as e: print "Connect Error as -> ", str(e)
[ "1411349759@qq.com" ]
1411349759@qq.com
d7cb7e3d8b6e6939858dfba41a52bad6f3ce5423
fc9dcc3d291f1c4f7e419cdf06ca1b56ec0fe94c
/Quiz_Age - 4.py
6853b1d94ec828a607ef933220179bff0c9c5983
[]
no_license
WilliamStacey/GeneralKnowledgeQuiz
d4d1020fb96ffc03b263ebbeae28be70cdf27f02
4a22fb0143b6e9bd3967c17a848b71fea87d74be
refs/heads/main
2023-08-16T02:06:29.596529
2021-10-21T23:14:19
2021-10-21T23:14:19
357,341,520
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
#ask age def age(): age = '' while True: try: age = int(input("Enter your age: ")) if age < 10: print("You are too young to take this quiz.") raise SystemExit elif age > 18: print("You are too old to take this quiz.") rai...
[ "noreply@github.com" ]
WilliamStacey.noreply@github.com
04e81eb61b7efc691cb29caabfe5ffa22242caf9
0d0ba103050607a7e4994ee5253140f3e9c13f6f
/8-5.py
8c2870cec98c8f81bebb1d51d146a603532b999d
[]
no_license
yinyangguaiji/yygg-C1
ac30d8ae5fd3a51985723acd527844860e658dd6
08ef81785a44715680b2f8543ac665424f8ce63b
refs/heads/master
2023-03-12T09:25:22.747657
2021-02-19T07:24:33
2021-02-19T07:24:33
332,170,674
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
def describe_city(city,country='China'): print(city + ' is in '+ country + '.') describe_city('Chengdu') describe_city('Beijing') describe_city('London','Britain')
[ "noreply@github.com" ]
yinyangguaiji.noreply@github.com
f5ece496682064b3b75d259ee4b9a085cfcd7867
3333ed6da323c4dc3a4dab7f6a82f5d84db53f62
/quiz_tests/quiz_1.py
1fc684cac42394b07352042560b453a45436e68e
[]
no_license
NateOwl1108/assignments
4823d49852eb2dad62b11d6be502cdb1f60a85fd
4238420f262bcb0fc39b0e80ed08e5ddf97a26d3
refs/heads/master
2023-05-09T18:14:59.726344
2021-06-19T21:46:09
2021-06-19T21:46:09
291,084,944
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
def separate_into_words(sentence): return sentence.split(' ') print(separate_into_words("look the dog ran fast")) separate_into_words("look the dog ran fast") def reverse_word_order(sentence): words_list = separate_into_words(sentence) reverse = words_list[::-1] reverse_sentence = '' reverse_sentence += reve...
[ "natedog112004@gmail.com" ]
natedog112004@gmail.com
a351f9a383b7908bc81f7ee0129447f3b5624fb0
ff652d85c1b2a6a22cea6bbd84e5d9f96b43c64b
/Final Deliverables/Code/ResultsVisualizer.py
b679753a857d9e45de272e3cd3c6c4c59cf537d9
[]
no_license
ironhide23586/Map-Matcher
a3b9ecb7103e9500473eafbc6d62dc44093a7ca2
c838ed59db9c3987913a669bb7204505dd4640d4
refs/heads/master
2021-03-24T12:05:19.572010
2018-11-10T05:22:47
2018-11-10T05:22:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,051
py
import numpy as np import matplotlib.pyplot as plt import csv def show_hist(arr, title_name, xlabel, show_plot=True): hist, bins = np.histogram(arr, 30) bins = bins[:-1].astype(np.int) if show_plot == True: ind = np.arange(1, bins.shape[0] + 1) # the x locations for the groups maxs = hist width = 0....
[ "sbiswas7@hawk.iit.edu" ]
sbiswas7@hawk.iit.edu
f6e16e606ad5e19332738646c1e75716288366be
a462e55dceb569502bb7c9e4460522af296f49b6
/code/lisa-caffe-public/examples/new_lrcn/data_verify.py
c3391d21b202bd9d718f12b6a9597bc30dafdd2e
[ "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-public-domain" ]
permissive
giserh/cluster_video
1e83ff130cf80e409815ba5fe8e89f2715422591
8c5f4157b76f768138b7c19261d396cdf9122866
refs/heads/master
2021-01-24T12:36:18.183421
2017-03-13T01:22:43
2017-03-13T01:22:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
import numpy as np import scipy.io as io import cv2 as cv import sys, os import caffe import pdb model_path = os.path.join( '/cs/vml2/xla193/cluster_video/output/UCF-101/snapshots_lstm_RGB/_iter_2500.caffemodel' ) print "Start loading network.." # load net net = caffe.Net('/cs/vml2/xla193/cluster_video/code/lisa-caffe...
[ "xla193@sfu.ca" ]
xla193@sfu.ca
dc3441675e94bea8afa0085dc88c1917551088d9
18c0511cdaef2d09f07ed071e4f300a78368900f
/graphs/cases_per_admin_region_overtime.py
210d828332e9dac41fba44f56b4128f0f5f5cc2a
[ "CC0-1.0" ]
permissive
ElNiak/covidbe-opendata
3bcaca2ebf4a345d0529e5c69249ae0d83d0768f
115883d379da91c72a260c66d4ae49b241b111f5
refs/heads/master
2023-04-09T12:59:11.414369
2021-04-21T04:40:43
2021-04-21T04:40:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,122
py
from datetime import datetime, date import geopandas import plotly.express as px import pandas as pd import numpy as np from flask_babel import gettext from pages import get_translation import plotly.graph_objects as go from graphs import register_plot_for_embedding geojson = geopandas.read_file('static/json/admin-u...
[ "pschaus@gmail.com" ]
pschaus@gmail.com
5f6f23a6e9cdb54c79639f0bfb90bd8b840c903a
169d83d58bee9581a59bebfdeaa5c479f681222e
/cart_pole.py
8fe219f55458ffbb984caa81a7df0c5aebcb8c14
[]
no_license
Ronnypetson/DQN
c62a9cc829d863e864591de2dab422e45f886dbc
53662d6e44fe4524285293765d869c7667c6537f
refs/heads/master
2018-10-24T15:27:43.313302
2018-08-21T03:11:48
2018-08-21T03:11:48
120,924,242
0
0
null
null
null
null
UTF-8
Python
false
false
4,121
py
import tensorflow as tf import gym import numpy as np import os import random from collections import deque env_name = 'CartPole-v0' state_dim = 4 ob_frames = 1 num_keys = 2 learning_rate = 0.01 batch_size = 64 replay_len = 100000 oldest_mem = 0 default_action = 1 empty_obs = np.zeros((ob_frames,state_dim)) mem = repl...
[ "rsronnypetson4@gmail.com" ]
rsronnypetson4@gmail.com
cc693a128105938fd7647af5527a511855e80f4c
abcfd07772ce75f34e51592189c29cf84d1a3611
/flask/lib/python3.6/site-packages/whoosh/util/times.py
aded78f78b30e1d657ebea53c144a87c93bb6d1c
[]
no_license
yuhaihui3435/p_mc
66d89bcccf214e53729b26a0f80ddee8797e9e3e
3039a5c691b649fc88e941a2553b1a7e0aac2a0a
refs/heads/master
2021-06-28T18:52:00.111385
2017-09-15T00:26:02
2017-09-15T00:26:58
103,524,396
0
0
null
null
null
null
UTF-8
Python
false
false
16,948
py
# Copyright 2010 Matt Chaput. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the...
[ "125227112@qq.com" ]
125227112@qq.com
73be6368949f3dee451811616a66cda102ccc108
abf3a3712cf12d1de4b2657e7dd38063d2f83534
/ephys_functions.py
e226c6fab775ff3e3d34363aa91a2e2de9a52221
[]
no_license
anupgp/ephys_analysis
2876ca4371c5ced8b7d3db4e6c068bdf284b54b1
888ace8a440509de6007bd8e8cacdf6f0e5ddf81
refs/heads/master
2021-08-11T06:33:37.531018
2021-08-08T00:16:06
2021-08-08T00:16:06
246,890,724
0
1
null
null
null
null
UTF-8
Python
false
false
814
py
import pandas as pd # contains all the accessory functions for ephys data analysis # --------------------------------------------------------- # joins values from multiple columns into a single column # input: dataframe and the columns to combine # return: a single column with joined values from the other columns def...
[ "anupgp@gmail.com" ]
anupgp@gmail.com
fdb85ea027d97f7491476a2ab44e654498f4b677
da64a4bc36fd794cebce4fd527440b5e1a823a24
/paging-tlb/homework/tlb_script.py
0cb52f363747f5172314a0f144356cb1772afec9
[]
no_license
prolific-dev/Betriebssysteme
8f3f08feae1ad33231588fd2c84e2eb60d428b40
a642fb448744653807349105eb3627a43512e86f
refs/heads/main
2023-08-16T15:53:43.695940
2021-09-26T01:15:18
2021-09-26T01:15:18
349,684,332
1
0
null
null
null
null
UTF-8
Python
false
false
946
py
from numpy import * import matplotlib.pyplot as plt import subprocess if __name__ == '__main__': print("Anzahl an Veruchen: ") nr_trials = int(input()) max_pages = 4096 print("Starte mit {} Versuchen... (Bitte warten)".format(nr_trials)) subprocess.run(["gcc", "-O0", "-o", "tlb.out", "tlb.c", "-Wal...
[ "de391ago@htwg-konstanz.de" ]
de391ago@htwg-konstanz.de
bf7f467480751bd795551a06f18da4ced2b45588
bbba463ab46369d22adc35dd1a819d4c8a994973
/preprocess.py
5a0c2d376fdec3bfcf3176859f651b99d9a65a5d
[]
no_license
ajdapretnar/SegTra
f74a7c13cbe8569a87193f160d70fc91b205ebeb
76747824283dbf2f674f39e5a0e7ef10d5191d19
refs/heads/master
2020-04-02T17:29:13.797909
2019-05-24T09:27:22
2019-05-24T09:27:22
154,659,337
1
0
null
null
null
null
UTF-8
Python
false
false
3,343
py
import re import pickle import json import lemmagen from lemmagen.lemmatizer import Lemmatizer from nltk.tokenize import RegexpTokenizer import ufal_udpipe as udpipe def remove_comments(corpus): regex = "\\((.*?)\\)" corpus['Questions'] = corpus['Questions'].apply(lambda x: re.sub(regex, '', ...
[ "ajdapretnar@gmail.com" ]
ajdapretnar@gmail.com
7125de95fee231cb947372fc2fdf2d5816aca876
649cd51d3ce32dd4a89f781a14741d19b703350f
/server/clients/mfcClient.py
73185ec8c1c16005d6c0e1ad2116c10ebff66a27
[]
no_license
flybrains/clm
03ff00c11c49e89f0adc9c2f801d8102fe0577fb
2b6cfa66175d4d875baefc7a9c0497d912a988d0
refs/heads/master
2021-01-08T09:58:36.181550
2020-03-12T21:51:42
2020-03-12T21:51:42
241,995,438
0
0
null
null
null
null
UTF-8
Python
false
false
4,046
py
import time import socket import json class MFCClient(object): def __init__(self,lookup_table=None, oob_option=None, replay=True): self.load_json() self.host = self.config_data['local_host'] self.port = self.config_data['local_port'] self.replay = replay #print('Started MFC...
[ "pstock@rockefeller.edu" ]
pstock@rockefeller.edu
70a3cc57b63eaa1a001d1e47f6d3bb9473736a5c
f1ab57ae527f434dfb4a8db8f8242d67514d104c
/setup.py
79119d9913116d04a8460dc8b142f6db6d4fbd5e
[]
no_license
abookStore/bookStore
f6de9c00297fe1290f3630a392ec5e2c0786d0b5
2c6b478c4c0aad217617b4260b27cf91078d5d08
refs/heads/master
2021-05-12T07:31:59.100221
2018-05-30T16:20:26
2018-05-30T16:20:26
117,246,596
0
3
null
2018-01-30T16:27:18
2018-01-12T13:52:37
JavaScript
UTF-8
Python
false
false
273
py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='bookStore', packages=find_packages(), install_requires=[ 'Flask', 'Flask-SQLAlchemy' ], setup_requires=[], tests_require=[ 'pytest' ] )
[ "zhou.xun@qianka.com" ]
zhou.xun@qianka.com
4fb8058533804c25fc812504e99f7c776b0d6bf3
590757ded91424c1216ec5027870b9e06d17e436
/tests/test_figure.py
13305a8b41a8cc9de62be13b954e57c5e524566a
[]
no_license
mkile/Figures_Class
63c8b078c9fd5c9d8b979898a6d4fd2edab03856
ec49ecd3525a2b2cbe5162417010a37871c619c9
refs/heads/main
2023-04-09T19:21:29.706139
2021-04-17T18:38:40
2021-04-17T18:38:40
355,606,945
0
0
null
2021-04-17T18:38:41
2021-04-07T16:07:52
Python
UTF-8
Python
false
false
145
py
import pytest from source.classes import Figure def test_baseclass_create(): with pytest.raises(Exception): Figure('name', [1], 1)
[ "mkiles81@gmail.com" ]
mkiles81@gmail.com
da2897495af6a0514b4c1cc5803cd5a24e8c543c
548b89cb1f7d9c953dedc61674525a0d1eadaf86
/fdp/services.py
e79e13901564d42437bd4c42fdcd55299ab9ca95
[ "BSD-2-Clause" ]
permissive
ScottishCovidResponse/fdp
c5a0b8ee8df9874f40fc6c20e376cc2fa1d410a8
5d67649048fffd19b9bf46e85545490001eb0b05
refs/heads/main
2023-04-25T00:24:01.565036
2021-05-13T15:57:57
2021-05-13T15:57:57
359,503,677
0
0
BSD-2-Clause
2021-05-21T13:59:29
2021-04-19T15:13:49
Python
UTF-8
Python
false
false
865
py
from pathlib import Path import requests from data_pipeline_api.registry.download import download_from_config_file def registry_installed(): user_home = Path.home() scrc_dir = user_home.joinpath(".scrc") return scrc_dir.exists() def registry_running(): try: r = requests.get("http://localho...
[ "nathan.cummings@ukaea.uk" ]
nathan.cummings@ukaea.uk
cc844affbd029334ae04e31e99055fa06ee0a668
d7c9392aab11ffa4e94846198e4793015e22d48c
/ApproximatePatternCount.py
a45b6fc1e967aee52a73aecc9596717b4819e709
[]
no_license
vk208/BMP
46fb787339e53eb851b87baffa0b2f626ec5eff0
83cd09fb8d7ef463eb5b6cc6eefb564dc86a1bf8
refs/heads/master
2021-01-17T12:26:04.476703
2016-03-04T14:36:11
2016-03-04T14:36:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
892
py
__author__ = 'Mohammad Yousuf Ali, aliyyousuf@gmail.com, fb.com/aliyyousuf' # Our goal now is to modify our previous algorithm for the Frequent Words Problem in order to find # DnaA boxes by identifying frequent k-mers, possibly with mismatches. Given input strings Text and # Pattern as well as an integer d, we exte...
[ "aliyyousuf@gmail.com" ]
aliyyousuf@gmail.com
77e62c1c823d2937af521648a473b6f93b4731f7
2834298c6a50ff7cfada61fb028b9fd3fc796e85
/desenvolvimento/programas/magic_square.py
bc855866757b1a2961b256809c6df378cdebb02e
[]
no_license
ernestojfcosta/IPRP_LIVRO_2013_06
73841c45d000dee7fc898279d4b10d008c039fd0
a7bb48745ad2fbfeb5bd4bc334cb7203d8f204a4
refs/heads/master
2021-01-22T05:00:57.868387
2013-06-07T11:00:55
2013-06-07T11:00:55
10,548,127
0
1
null
null
null
null
UTF-8
Python
false
false
11,291
py
# ============= # magic_square_ # ============= # # *Simple operations with magic squares.* # # Copyright (c) 2007 `Alec Mihailovs`_ <alec@mihailovs.com> # All rights reserved. Licensed under the `MIT License`_ . # # .. _magic_square: http://mihailovs.com/Alec/Python/magic_square.html # # .. _`Alec Mihailovs`: htt...
[ "ernesto@dei.uc.pt" ]
ernesto@dei.uc.pt
ed377733d23fb5c6cc2ea478a613ec2ca714d70f
8ea915b38738ec717e2ac763786005877cfc0064
/Practice/practice02.py
7726d69d700c832ee7b92bfdac92b968faa4571a
[]
no_license
jimmy43333/Python_Learning
374e3c2695200ab3020e423d02513a6866530adb
01672e23838827ac77dcf1c49034bde015d14be5
refs/heads/master
2023-08-14T17:54:18.630258
2023-07-12T14:07:28
2023-07-12T14:10:07
104,288,689
0
0
null
null
null
null
UTF-8
Python
false
false
1,723
py
import random as rd def helper(member_list, team_list): # print(best_friend) best_friend = "TK" score = [ rd.randint(1, 100) for ele in member_list ] score.sort(reverse=True) print(score) def is_team_member(who): if who in team_list: return (0, who) return (1, who) ...
[ "jimmy43333@gmail.com" ]
jimmy43333@gmail.com