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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f744665e78776ee05b5ab86fb4f3408994c0e079 | 7cc342310bac85d2600d9f3246a3d6b62ae40c3d | /Day52.py | bdde81243f32889151f73a9e52a4258ea208446f | [] | no_license | kalthommusa/100DaysOfCode | 52b1111a81671b68e8ddb8806bb22fec58355f11 | 3b7b1e036aaeaee7243e4dabfbd360d3deb8d6dd | refs/heads/master | 2020-07-07T05:51:28.971917 | 2019-11-12T20:11:13 | 2019-11-12T20:11:13 | 203,270,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #import the datetime module and display the full current date
import datetime
day52=datetime.datetime.now()
print(day52)
#return the year
print(day52.year)
#return the name of the day
day=day52.strftime("%A")
#return the name of the month
month=day52.strftime("%B")
#return the time
time=day52.strftime("%X")
print("... | [
"kalthommusa12345@gmail.com"
] | kalthommusa12345@gmail.com |
8529adb3953865be06069280751f2878877bec8b | f5d94d12733c480848ee002a5b4df8d5b5f33a80 | /core/models.py | 910ed8ccdf92f683e091130fa76ce31919e821f8 | [] | no_license | nagkumar91/dj_1_8_test | a19b574b0c1cfe1ad279a38bd5d5d7357d75b114 | 724fc87dbef6519b781b1dcb464ad288b64b6f4d | refs/heads/master | 2021-01-25T10:07:19.643798 | 2015-05-04T08:17:25 | 2015-05-04T08:17:25 | 35,017,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from django.db import models
# Create your models here.
class TempData(models.Model):
name = models.CharField(max_length=100)
def __unicode__(self):
return self.name
class Meta:
verbose_name_plural = "Temp Data" | [
"me@nagkumar.com"
] | me@nagkumar.com |
700eae00d458af1a27cfa44c1a82cf7f2793020d | 39fa481b356c5e8df77c7459330294b30b45b845 | /process_aggregated_data_counters_baseline_2midd_2vms.py | 49036992b16709c60d2c970ba0f57068aa9452cc | [] | no_license | jovan-ioanis/asl-project-2017 | bd32d4220b23163bcb1de7b99bfc5c852311b0b4 | 079b94e0119bd6d71b5ccf8ecf0ee4a085d69722 | refs/heads/master | 2021-04-06T20:46:30.637686 | 2018-06-14T10:25:56 | 2018-06-14T10:25:56 | 125,279,638 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,988 | py | """
ASL project - fall 2017
author: Jovan Nikolic
Processes aggregated logs generated by middleware
"""
import numpy as np
import csv
agg_path_base = "aggregated_data/baseline_2midd_2vms/counters/"
plot_path_base = "plots/baseline_2midd_2vms/timers/"
name_base = "timer_aggregated_data_"
client_t... | [
"jovan.nikolic@gess.ethz.ch"
] | jovan.nikolic@gess.ethz.ch |
dc0795e8588404f2f441e385ff7792de19d21846 | f0e0c1637f3b49fd914410361c3f1f3948462659 | /Python/Math/integers_come_in_all_sizes.py | 067bf933bb0a96f4a2758091ba2df74899b1be13 | [] | no_license | georggoetz/hackerrank-py | 399bcd0599f3c96d456725471708068f6c0fc4b1 | a8478670fcc65ca034df8017083269cb37ebf8b0 | refs/heads/master | 2021-09-18T07:47:32.224981 | 2018-07-11T09:24:49 | 2018-07-11T09:24:49 | 111,611,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # http://www.hackerrank.com/contests/python-tutorial/challenges/python-integers-come-in-all-sizes
def solve(a, b, c, d):
"""
>>> solve(9, 29, 7, 27)
4710194409608608369201743232
"""
print(a ** b + c ** d)
if __name__ == "__main__":
a = int(input())
b = int(input())
c = int(input())
... | [
"GeorgG@haufe.com"
] | GeorgG@haufe.com |
cef5644422bd50310697c6c532f786ee108005a0 | 94c870e66c1ebcf8077eda4b192eea5ca4b0ac09 | /test/test_pet.py | ef80a3121bb1cf2bf69a2f8816de4e61851e9ef0 | [] | no_license | georgeerol/pythonPetStoreSDK | 238a02fefeff5da50200bd3e55c70d4e498cdfab | c71df239733502e56d8416be9974d18108bdfcc0 | refs/heads/master | 2023-01-02T14:16:46.378234 | 2020-10-22T22:30:16 | 2020-10-22T22:30:16 | 306,472,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # coding: utf-8
"""
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. #... | [
"fouliex@gmail.com"
] | fouliex@gmail.com |
2a3d59808ff43327a4acc4464720e3595d3e6003 | e02ce1b168047f7bf1e639342179b7b8e9209e3a | /todo/migrations/0014_remove_userprofile_title.py | b58dd855f6d1abbd4869f0185e1b8b85318ad585 | [] | no_license | Manish12356789/TodoApp | 245133f283dbe93c288cd05c18d89d22eff1ad3d | a763643d7967baa1ea77c1fb9b5115cf4df34bc0 | refs/heads/main | 2023-06-02T21:53:50.394491 | 2021-06-18T03:40:40 | 2021-06-18T03:40:40 | 358,489,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Generated by Django 3.1.7 on 2021-04-08 05:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todo', '0013_userprofile_title'),
]
operations = [
migrations.RemoveField(
model_name='userprofile',
name='title',
)... | [
"manishparajuli2018@gmail.com"
] | manishparajuli2018@gmail.com |
8d7fb22a6c6756d44fe42a19ac950cc877acbe97 | aadf51507e9a664729ea42d38e62cd6a08da0f06 | /change.py | c3a407c2c6f913115059195abbfe9277cc5a754c | [] | no_license | tanjinarahm/algorithms2 | 29b2dcbe0b59d0a84aa95b96fe7e49a26f85432e | 61b8022ddf0b78a799a2e88f63fb845925ec127f | refs/heads/master | 2022-04-23T07:29:50.300892 | 2020-04-28T02:08:45 | 2020-04-28T02:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | def change(num):
change = {"q": 0, "d": 0, "n": 0, "p": 0}
if num >= 25:
change["q"] = int(num/25)
num %= 25
if num >= 10:
change["d"] = int(num/10)
num %= 10
if num >= 5:
change["n"] = int(num/5)
num %= 5
if num >= 1:
change["p"] = int(num/1)... | [
"noreply@github.com"
] | tanjinarahm.noreply@github.com |
60565cb0ed87d3af131ea4e8d341b49a2de658e5 | abb7036772165df37dfeb595012443e2fd525b3c | /dsi_calculator.py | 8ac8b91b77af5d1d205f44dbfa5085eeffd4ccdf | [] | no_license | hdaylin/Inventory-Manager | a6cef20a2d1c1d4d59e0a6fda4e7ef9bc0af4ba6 | b26d6e02c5b540e684ced30e2fc0fae8905d92b5 | refs/heads/master | 2021-01-17T10:13:07.509692 | 2017-03-05T21:53:51 | 2017-03-05T21:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | import os
from flask import Flask, render_template, request, redirect, url_for, send_from_directory, \
flash
from werkzeug import secure_filename
app = Flask(__name__)
# This is the path to the upload directory
my_dir = os.path.dirname(__file__)
data_path = os.path.join(my_dir, 'uploads/')
app.config['UPLOAD_FOLD... | [
"skakpovi@gmail.com"
] | skakpovi@gmail.com |
d7fbb5416b8806ae276c11411ccc2255ccd912fb | 5af948ca56c80bb5a2fa2eb96cde0b5f21d7cc1c | /py/tweet_clore_rec.py | d71e3f8b54c31c012c108448031441e9df3b0c0f | [] | no_license | shin-kanouchi/mybot | 5c80bbffa7f9617e60d1f3300ee77a8061cc58cb | 915b10ad3df4854b154957f4c73f258708f73380 | refs/heads/master | 2021-01-24T11:22:52.195347 | 2017-01-10T13:06:57 | 2017-01-10T13:06:57 | 70,224,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | #!/usr/bin/env python
# coding: utf-8
import sys
import twitter
import twkeys
import time
maxcount=1000
maxid =0
terms=sys.argv[1].strip().split(",") #["八意永琳","永琳","えーりん"]
search_str=" OR ".join(terms)
CONSUMER_KEY = twkeys.twkey['cons_key']
CONSUMER_SECRET = twkeys.twkey['cons_sec']
ACCESS_TOKEN_KEY = twkeys.tw... | [
"tenzyonerai@gmail.com"
] | tenzyonerai@gmail.com |
e70f14eb83da74ee83dd9e8854f5f79da094837c | fb783dda8d0ca34ad95d0c3f7ebbb6794a4b0467 | /ball.py | a2d479dde631ec996cf01de0feb2431d739b6875 | [] | no_license | Loai17/Y--Project | 967ec843ccc033fcdfdb59bd676adcfbea397446 | 155e9820bfa42c13e3dc7a82976146b1b86505ce | refs/heads/master | 2020-04-12T16:29:00.322136 | 2018-12-27T10:34:39 | 2018-12-27T10:34:39 | 162,613,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | from turtle import *
class Ball(Turtle):
def __init__(self,x,y,dx,dy,r,color):
Turtle.__init__(self)
self.dx=dx
self.dy=dy
self.r=r
self.pu()
... | [
"aboud20@meet.mit.edu"
] | aboud20@meet.mit.edu |
7d58d170ccd59d2b30f04e9210067ffec1c01f94 | d4f76aa484cbf1f6026b0c102e5d70012a28512a | /msos_project/dsp_tools/spectral_contrast_feature_max_classifier.py | e8c4ff4004c4f9e5ebfe3c18654201b6ca4a19de | [] | no_license | hbulg96/MSOS-classifier | 4eaea8b434455fc300b25fcd0c6bde52b32e7d23 | aa5b9702f7f39a30ea9b9746244c82fa75b2bbea | refs/heads/main | 2023-05-05T05:19:19.374327 | 2021-05-25T16:39:59 | 2021-05-25T16:39:59 | 370,755,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,046 | py | import numpy
import matplotlib
from matplotlib import pyplot
import scipy
from scipy import signal
from scipy.io.wavfile import read
from scipy.io.wavfile import write
import os
import timeit
import traceback
import msos_project
from msos_project import *
from msos_project.dsp_tools import *
import msos_pr... | [
"noreply@github.com"
] | hbulg96.noreply@github.com |
b4e958c4c8b3a6d7b11e0c879811003cbd6781ff | b83cc9e051f969d386c0d7ef40a4e9a5b6faff4c | /promqtt/promexp/promexp.py | fb63f21c0fd2a8a62d55fb0ddb2ff07c75e26288 | [] | no_license | motlib/promqtt | 5309b3178238db76bed3c17d19b8820752637a29 | abb7f50b637d23a2e58d79170a64c5ca755d3e41 | refs/heads/develop | 2023-06-08T07:00:42.333962 | 2023-06-06T15:24:18 | 2023-06-06T15:24:18 | 194,465,311 | 7 | 2 | null | 2023-06-06T15:24:19 | 2019-06-30T02:03:31 | Python | UTF-8 | Python | false | false | 3,812 | py | """Prometheus exporter"""
import logging
from threading import Lock
from typing import Iterator
from .exceptions import PrometheusExporterException, UnknownMeasurementException
from .metric import Metric
from .types import MetricTypeEnum
logger = logging.getLogger(__name__)
class PrometheusExporter:
"""Manage ... | [
"andreas@a-netz.de"
] | andreas@a-netz.de |
eda7bd6a0bd018f600a0c68863f943f94a273eaa | bfab1736dcbf271a50ab761b459d8d1fa3c21cee | /models/ops/functions/ms_deform_attn_func.py | e15205b629c170d95e549072e3247e5fef82be77 | [
"MIT"
] | permissive | Abrahamon/TransTrack | fdd7db99ac77c24d650e5dfd8f9d4e221d7b1e15 | 30b6f08f3b6dc6ffab9929189089979390a185d6 | refs/heads/main | 2023-09-02T01:53:44.706620 | 2021-10-30T03:47:42 | 2021-10-30T03:47:42 | 423,220,818 | 0 | 0 | MIT | 2021-10-31T17:52:46 | 2021-10-31T17:52:45 | null | UTF-8 | Python | false | false | 2,791 | py | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import torch
import torch.nn.functional as F
from torch.autograd import Function
from torch.autograd.function import once_differentiable
import MultiScaleDeformableAttention as ... | [
"sunpeize@bytedance.com"
] | sunpeize@bytedance.com |
7687e8fad295a78d7b2e1c5cfea19739a38862ed | 960abea1f15e82cca91de8736876d366a659d7da | /src/restful_app.py | a9d2817cce2d02f96aa0ec8e1be0e92cb1f5178a | [] | no_license | divyeshnair/video-library | 659b3ba0867d78cf53566aabeb7375e7add460b9 | f65303245910e6e71c880e8e9d4955a03edc7ee5 | refs/heads/master | 2023-09-03T06:44:25.093413 | 2021-11-13T04:13:35 | 2021-11-13T04:13:35 | 427,561,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | from flask_cors import CORS
from flask_restful import Api
from src.routes.v1 import urls
def restful_api(app):
CORS(app, resources={r"/*": {"origins": "*"}})
api = Api(app, prefix="/")
for url in urls:
url.resource.method_decorators = (url.resource.decorators
... | [
"devanr2806@gmail.com"
] | devanr2806@gmail.com |
7ccbc4e48c8a6c4e12216c53585dbeed1a8e79b3 | 41ec83c821f1dbfc90020dad0da0a5c68c76a712 | /P16/main.py | 56783c8c3afabff1de73c66703cfbad7bc5daa36 | [] | no_license | t-sakuma2018/python-99 | 41c4901bc106a071103d4644759b989ab4bafe3a | 207b7fd1d94c14fbb90c5194b462ec4cdd610195 | refs/heads/master | 2020-03-30T18:37:28.276215 | 2018-10-22T08:42:17 | 2018-10-22T08:42:17 | 151,508,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | def drop(data, cnt):
# data = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'], 2
# result = ['a', 'c', 'e', 'g', 'i']
result = []
for data_cnt in range(len(data)):
if (data_cnt + 1) % cnt != 0:
result.append(data[data_cnt])
return result
| [
"t.sakuma@atomitech.jp"
] | t.sakuma@atomitech.jp |
6ca78af1f834764d06e25d5f327c58698d1cc904 | b464b3602186a237b913377706a79ec7a6c0638f | /Sono.py | b0ea0c6c6e4566b7ffeeab0b037ebe0a13f34f05 | [] | no_license | gauravnv/SonoChrome | f1d2532ce620afc3715f6c37d065fade1ff2d20a | b90278ffffe0cf8b101208cb70a2301ddb605cd5 | refs/heads/master | 2020-09-10T17:10:53.430246 | 2019-11-26T10:30:09 | 2019-11-26T10:30:09 | 221,773,256 | 1 | 1 | null | 2020-05-26T02:37:37 | 2019-11-14T19:39:42 | Python | UTF-8 | Python | false | false | 2,456 | py | # Importing the libraries
import pandas as pd
# Importing the Keras libraries and packages
from keras.models import Sequential
from keras.layers import Dense
from keras.utils import to_categorical
from keras.wrappers.scikit_learn import KerasClassifier
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
fro... | [
"gaurav.nv1@gmail.com"
] | gaurav.nv1@gmail.com |
ad7379dd14cdc9148ef5d03f5ce9ebaaaac15f8d | 2ad6ba93c6b8b24bd888df8eb6062850d89f3742 | /hal/plugins/image.py | 520af9f29341b99547234678877d28fa433e8056 | [] | no_license | human-analysis/pytorchnet | c1a2200676faf366bd1dc689eb1c09fb1e914c6f | 026bd369cad0ae114d80b22d489ae55eeb48f312 | refs/heads/master | 2021-12-04T06:27:39.690510 | 2021-11-25T04:25:34 | 2021-11-25T04:25:34 | 88,304,856 | 37 | 17 | null | 2021-09-08T03:00:04 | 2017-04-14T21:31:59 | Python | UTF-8 | Python | false | false | 820 | py | # image.py
import os
import torchvision.utils as vutils
class Image:
def __init__(self, path, ext='png'):
if os.path.isdir(path) is False:
os.makedirs(path)
self.path = path
self.names = []
self.ext = ext
self.iteration = 1
self.num = 0
def registe... | [
"vishnu@msu.edu"
] | vishnu@msu.edu |
e554e238196d5315ac5d6c9d3b6c9423e9c2163d | 165ef016932b8b2741004c321e7f2fda225d8793 | /Baidu_spider/Baidu_base_spider.py | e5ddbf5d64f1e29cdb03144dd57b726749fca5cf | [] | no_license | lH-Liu-Hao/Article_abstract | d6ffa6ddcccf9cfb1b5096dc884c6d8886633bb0 | ab6d495406bda7008d953961d89c4b5f3a9ecf2d | refs/heads/master | 2022-11-13T08:26:13.034371 | 2020-07-07T10:21:48 | 2020-07-07T10:21:48 | 277,784,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,037 | py | import re
import time
import json
import requests
import random
import aiohttp
import html as _html
from lxml import etree
from Utility.Baidu_Message.log import log
from Utility.Baidu_Message.Get_time import get_real_time
from Utility.Baidu_Message.Get_ADSL_Proxy import get_ADSL_proxy
from Utility.Baidu_Message.config ... | [
"978911846@qq.com"
] | 978911846@qq.com |
a470b06fc9b78794c067ddce000504747b54e9ee | e9669487133b6ff7771064d4ce7d7a67a6eb8898 | /ecopro-10.0_ZKHNZZ-20170724-02/mysite/api/tests.py | 4ef88d471419c88428d277379e3eaa057f5a7d4a | [] | no_license | sq2012/my-job | 4331bf0443ad58fc1f5eab05aa67628082495ae7 | 9d660026e6aac2e3b3c0ce22d5065868855249ec | refs/heads/master | 2023-01-02T05:32:43.392141 | 2020-11-02T10:39:53 | 2020-11-02T10:39:53 | 108,929,231 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #coding=utf-8
"""
本文件为其他系统提供信息
"""
import os,platform
from mysite.utils import *
from mysite.core.mimi import getLicenseInfo
def index(request):
#print request.META
response=head_response()
lic=getLicenseInfo()
q=request.GET.get('q')
if q=='system_info':
d={'processor':platfor... | [
"929266434@qq.com"
] | 929266434@qq.com |
6bc1c39d0bfd966c86046b9b2b34af90fc49a7b8 | f24c8aa0a55709eb660026f2c94c284b314d471e | /app.py | 461a6d4414e7997877b6daf8c7babc3d82ee91af | [
"BSD-3-Clause"
] | permissive | ocanava/number_guessing_game | 72ee44ecf3169c6c00a05150bc651fd8deb27ba3 | f0ca634301ee0f24fd39b05d6196ac7b490fb00a | refs/heads/master | 2022-12-13T11:54:33.841804 | 2020-08-31T15:43:41 | 2020-08-31T15:43:41 | 278,231,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | """
Python Web Development Techdegree
Project 1 - Number Guessing Game
--------------------------------
import random
number = random.randint(1, 10)
def start_game():
print("Welcome to the Number Guessing Game!!")
input("Press ENTER to continue...")
Tries = 1
while True:
try: ... | [
"noreply@github.com"
] | ocanava.noreply@github.com |
aa2a8c8f570a1c0f44928db8d59780469b207993 | 4f97122844fb8cbaccf9ed9fa300a27a290d1a37 | /1/111.py | 0a46d7eb3eec2fe044cfcd027f9ffbf0dbd17e63 | [] | no_license | cq146637/Advanced | 52d97ab0f8e7ec85e6d81692e92bad967af066e6 | 18380e5c51124ef1e6d243ae216280b49edc7001 | refs/heads/master | 2020-03-22T03:05:02.960444 | 2018-07-02T08:30:27 | 2018-07-02T08:30:27 | 139,151,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | __author__ = 'Cq'
from collections import deque
import pickle
from random import randint
import os
result = randint(1,100)
print("result is ",result)
deque1 = deque([],5)
if os.path.isfile("save.data"):
deque1 = pickle.load(open("save.data"))
while True:
k = input("\nplease input your guess number: ")
... | [
"1016025625@qq.com"
] | 1016025625@qq.com |
5ff88ef18493eedc1ff2c03369b53bedee882b04 | 0f297fb93f82b55c83817479af2e00bb737dcc93 | /实习小车启动代码/111/merg.py | f44ff12c93da1cff11d9a96f42d51c2890771ce5 | [] | no_license | yejiasheng/raspberry | 55c3dabf13fcff6dfeaddecbc72e2cf8968daaa3 | 27e1a95197a10583ce205bf40c04bcc8b76b2dc7 | refs/heads/main | 2023-07-25T02:57:38.875487 | 2021-09-07T01:45:36 | 2021-09-07T01:45:36 | 403,806,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,776 | py | from flask import Flask, render_template, Response
import sys
sys.path.append("/home/lzk/samples/common")
sys.path.append("../")
import os
import numpy as np
import acl
import time
import socket
import cv2
import traceback
from PIL import Image, ImageDraw, ImageFont
import atlas_utils.constants as const
from atlas_uti... | [
"noreply@github.com"
] | yejiasheng.noreply@github.com |
8e5ad8e713ee715f2e8a9c9186d1301779615956 | 2307605c5c23581069b0ac919924adc16dba3bd2 | /stack.py | 2f9d492f81643f5bd692a0b4173a3c9bd1c41473 | [] | no_license | kshitijyadav1/Python_Programming_Stuff | c2bf0c81e09065452c8a7af658303c0abe751563 | 15b476a498e1a1cb3fb4dfa9c651d053a0f2a90f | refs/heads/master | 2020-08-04T08:36:35.409140 | 2019-10-21T03:28:02 | 2019-10-21T03:28:02 | 212,075,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | #! python3
# Stack overview program. with built-in method
import sys
lst = []
def push(number):
if len(lst) <= 10:
lst.append(number)
else:
print("Stack overload")
def pops():
remove_element = 0
if len(lst) > 0:
remove_element = lst[len(lst) - 1]
lst.pop()
print("The list element value is ", remove... | [
"kshitijyadav147258@gmail.com"
] | kshitijyadav147258@gmail.com |
4148ba0011b8da0c23ac14048f68d96a7d5a144f | ed7f2c5c235d1a3beca2ad78f8ef6eecd9afeea6 | /src/motors.py | d32ecdccd49447815025fb0116e63b984bb1da0e | [] | no_license | mvwicky/roboSim | 8f48bdfa291cfe6abc1c6a7294c7ab59161e3304 | c4d5d5f641ed976c71a591085019fcedc2ec3a5a | refs/heads/master | 2016-09-10T10:40:11.235120 | 2014-08-19T18:51:06 | 2014-08-19T18:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | import os
import sys
import random
import math
import utilFunctions as utlF
class motor(object):
"""Generic motor object"""
def __init__(self,port,wheelRad=0,ticks=1000,tolerance=0,sprite=None):
"""port:which port the motor is in
wheelRad:the radius of the attached wheel
if not a drive motor: wheelRa... | [
"mvanwickle@gmail.com"
] | mvanwickle@gmail.com |
88fb1cdd124245e3cc253a2114f9ce2bc39fc21a | f05fb1ea5d03147d50383bb7aa97bc6f347847b0 | /tensorpack/dataflow/dataset/customdataset.py | 1a2ee88f406ea31cfee26d3acf111f89ede67967 | [
"Apache-2.0"
] | permissive | wuyuebupt/tensorpack | f25b272570fc5fe97c5d81f4f0f503168d910309 | 4caef684b10512a10abbba8d58d25cfdd253a8f6 | refs/heads/master | 2021-06-24T13:17:34.304702 | 2018-08-14T17:36:56 | 2018-08-14T17:36:56 | 95,582,653 | 0 | 0 | null | 2017-06-28T16:28:39 | 2017-06-27T17:14:01 | Python | UTF-8 | Python | false | false | 8,780 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: ilsvrc.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import os
import tarfile
import six
import numpy as np
import tqdm
import xml.etree.ElementTree as ET
from ...utils import logger
# from ...utils.loadcaffe import get_caffe_pb
from ...utils.fs import mkdir_p, downl... | [
"wuyuebupt@gmail.com"
] | wuyuebupt@gmail.com |
8bda58c80727cd6213e5d9dbe03577076096112a | 479436b8581c6b27d9b91c5788d54b083d4d6bce | /111111111.py | 93965472241ced9f5119c2977bdbfbe37582a6b2 | [] | no_license | Khawoat6/Programming-Fundamental1-Python | 4e2821492e8f12c8a64df6ef47c2e8af7cdf6f8e | f40b79f81e58500fc8e7a68f5a97cda796d95d5e | refs/heads/master | 2021-08-31T15:07:58.058202 | 2017-12-21T20:47:01 | 2017-12-21T20:47:01 | 115,045,605 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,003 | py | '''
import pygame as pg
import table as tb
import blocks as bk
import colors as col
GAME_SPEED = 500
SPEED_INC_TICK = 50
LINES_INC_TICK = 10
LEVEL = 1
REMOVED_LINES = 0
MAX_LEVEL = 10
FPS = 100
def delay(ticks):
return (ticks % GAME_SPEED) >= GAME_SPEED-10
def incSpeed(remlines):
... | [
"phattaraphon.c@ku.th"
] | phattaraphon.c@ku.th |
8227e62538c36e990bf680b8e9b673e8d73582c3 | 167a2385f40df58d47150ce75450644c3a08595f | /average.py | 6efa93354432137d61c8ec4f3f0f52ae87fe002e | [] | no_license | gogo7654321/python_gamer | f0eefbce7333e2aafd0b5c7dab6dd5c45cbe44f6 | ed9d23fc5c06ee4695073175697048b1780f75ce | refs/heads/master | 2023-06-20T09:36:00.720461 | 2021-07-17T03:06:47 | 2021-07-17T03:06:47 | 384,267,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | print("enter 5 numbers and I will give you the average. Use zeros to enter less than 5")
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
ans = (a + b + c + d + e)/5
print (ans) | [
"npatel012010@gmail.com"
] | npatel012010@gmail.com |
5d0be96f53a6eb3f0613b8b630d91e8bee7aab61 | 0cb6d07174a03218a67c968cca6bc6ccdded99ea | /CNN.py | 3d25d19f0a51dff4862156178b3cf653880c905c | [] | no_license | RabbitSea/ASVchallenge2019 | 6c4a87a16f1ab4106dbe15224d88b204fd2b8ca9 | 16d0bded6b10afe9d2c088dc1c52c67a63ce1898 | refs/heads/master | 2021-03-23T08:06:30.996110 | 2019-07-15T13:14:53 | 2019-07-15T13:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,574 | py | from __future__ import print_function, division
import warnings
warnings.filterwarnings('ignore')
from numpy.random import seed
seed(1)
from tensorflow import set_random_seed
set_random_seed(2)
import keras
from keras.utils.training_utils import multi_gpu_model
from keras.callbacks import LearningRateScheduler
import ... | [
"jw@jennifers-air.home"
] | jw@jennifers-air.home |
7cde6f03db1bf876413bb9b21f5e1abe9ea1d07a | d9d5f3b5c36cbe8daa1c6c1e2f7ebe0af929dc97 | /이런저런/자료구조/1406.py | 0b5b1b664a438340781fd5c6888eec1c13609006 | [] | no_license | raeyoungii/baekjoon | 28122b73309ace73e3f07c138407f7bba1cfe6e0 | 773271a163f23e549531569b7b7710481bd35260 | refs/heads/master | 2023-02-13T09:31:18.615702 | 2021-01-14T19:32:46 | 2021-01-14T19:32:46 | 277,856,368 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import sys
l_stk = list(sys.stdin.readline().strip())
M = int(sys.stdin.readline())
r_stk = []
for _ in range(M):
cmd = list(sys.stdin.readline().split())
if cmd[0] == 'P':
l_stk.append(cmd[1])
if cmd[0] == 'L':
if l_stk:
r_stk.append(l_stk.pop())
if cmd[0] == 'D':
if... | [
"skepo@naver.com"
] | skepo@naver.com |
1fe95ef238ced027a00676f503504e0919482eb8 | 7a1f43c3180469c50b02b30a29f38969159be575 | /shop_src/urls.py | 53968521277f6036d2cf78e99adc81ad25607555 | [] | no_license | gitacc908/e-commerse.com | 4e93675845649c5d9da3c30a1f8acb79730a334e | 830207cfe7bd550ee2a7a451f589cb50e5afc8e8 | refs/heads/master | 2023-02-02T22:27:14.111288 | 2020-12-22T11:31:07 | 2020-12-22T11:31:07 | 321,278,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | """shop_src 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')
Class-base... | [
"dylan9803@mail.ru"
] | dylan9803@mail.ru |
0f8bf04cd31f309613105a87df3df2b3b7c2c20d | 187b8c73572c26c28bc356fbe70591754f5ea92f | /userinfo/migrations/0001_initial.py | 672a7e37c5bfb62554782dbd484f8213491a5ca7 | [] | no_license | xingle0/onlybuy | f43e12e78c5dfbb826cc30bc21df1319eb4a0c0d | 1b97f853752905ab2f70e38a0ae2793cd50b3d3d | refs/heads/master | 2020-05-25T04:21:36.773900 | 2019-05-21T10:40:44 | 2019-05-21T10:40:44 | 187,624,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,214 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-03-29 02:25
from __future__ import unicode_literals
import datetime
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import djan... | [
"1931784039@qq.com"
] | 1931784039@qq.com |
b6784b3247c97783664af99f76f1ed296789c7e0 | 46b8f310899dd5940b2b5f9099df8c106fbb731d | /test_case/Test_Calc3.py | ec04a9950931efd8a1096b5721cdefd889834ff6 | [] | no_license | ericyishi/HTMLTestRunner_PY3 | 5e70cf571b946a4d1d37a4b01138bb6cb547281a | cb7d62d27c4bcec52b92b3ae145bba4359118d4d | refs/heads/master | 2020-03-18T17:11:59.646279 | 2018-05-27T07:04:11 | 2018-05-27T07:04:11 | 135,012,629 | 3 | 0 | null | 2018-05-27T03:58:15 | 2018-05-27T03:29:25 | Python | UTF-8 | Python | false | false | 1,259 | py | import unittest
from Calc import Calc
class TestCalc(unittest.TestCase):
'''计算器模块3'''
def setUp(self):
print("测试开始")
self.cal = Calc() # 在这里实例化
def test_add(self):
'''计算器加法模块3'''
self.assertEqual(self.cal.add(1, 2), 3, 'test add1 failed')
self.assertNotEquals(sel... | [
"eric_yishi@163.com"
] | eric_yishi@163.com |
a6c505b33f88650962566a521d6430300a80475b | 3c7320a0ccc22c105e8c6f18e84fc9566770c5da | /code_and_map.py | e395332fd4bbac1da5b9b4fd9ab1c36a344b3226 | [] | no_license | MrDenexi/Tagpro-Replay-Render2 | cc6da500164efaf46157662be101bfc30d8c385f | 639c94a829a86b5e2f063b9e952815b9e90ebbb6 | refs/heads/master | 2021-06-10T17:29:17.984665 | 2016-11-30T03:24:11 | 2016-11-30T03:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | map_codes = {
"0" : "black",
"1" : "wall",
"1.2" : "225 tile",
"1.3" : "135 tile",
"1.4" : "45 tile",
"1.1" : "315 tile",
"2" : "floor",
"3" : "red flag",
"3.1" : "red flag away",
"4" : "blue flag",
"4.1" : "blue flag away",
... | [
"thomas.m.bolstad@gmail.com"
] | thomas.m.bolstad@gmail.com |
46f75a94f867ab61447a4484ebbc02589363e18f | 332d3cb0dc123541e436ac620477dd4560438d6b | /SoMax_1.5_Max7/mkcorpus/CorpusBuilder.py | c363c688b11dfb9696828deea661bad476a79298 | [] | no_license | DYCI2/Somax | 7c160e842a6224fcb2c1181de4bfeb389834a606 | 14ed895719a336d719e6c5b669144b42bf607ad0 | refs/heads/master | 2021-06-26T02:50:11.697157 | 2020-10-02T10:28:13 | 2020-10-02T10:28:13 | 133,677,823 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,149 | py | from string import split
import sys, os, importlib
import logging, settings
from ops import OpSomaxStandard, OpSomaxHarmonic, OpSomaxMelodic
class CorpusBuilder:
""" Main class to instantiate to achieve corpus construction. """
def __init__(self, input_path, foreground_channels=None, self_bg_channels=None, m... | [
"joakimborg@hotmail.com"
] | joakimborg@hotmail.com |
6028f8b7cd09174dc3376f24b44ceb20a2253006 | 3e19950b3f7d08a4d3f3b619e9d2be0891337701 | /code/models/py_utils/bbox/bbox_target.py | a4bcbdecd51837edb63e1ff4ce9ee98836a93d14 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 360iQ/CPNDet | 9e3c9113a1c83f5b0f145e828dc52fb4aca458db | b15f0bf917f52f6a98909472e02680dfb5dcfd0c | refs/heads/master | 2023-04-23T12:33:26.210939 | 2021-05-18T13:02:07 | 2021-05-18T13:02:07 | 349,141,172 | 0 | 0 | MIT | 2021-05-14T11:12:03 | 2021-03-18T16:20:24 | Jupyter Notebook | UTF-8 | Python | false | false | 2,632 | py | import torch
import pdb
from .utils import multi_apply
from .transforms import bbox2delta
def bbox_target(pos_bboxes_list,
neg_bboxes_list,
pos_gt_bboxes_list,
pos_gt_labels_list,
cfg,
reg_classes=1,
target_means=[.0, .0, ... | [
"kaiwenduan@outlook.com"
] | kaiwenduan@outlook.com |
13447713655c5faee3e7511c439ebac65c7b3ee4 | 8fd09b12c42b9efaf7216d087a4ee586e72a10d4 | /wechat/urls.py | bc5ecf0d746df1b6bc6ae0775b734311764cdac2 | [] | no_license | aweirose/test | 324c4c1a0dba47ecc79115ebbefd851114317509 | 1277c0b8752e3f442583af01cecc459645561cce | refs/heads/master | 2023-01-12T21:57:54.927255 | 2018-09-12T07:34:54 | 2018-09-12T07:34:54 | 148,089,935 | 0 | 0 | null | 2022-12-27T15:35:11 | 2018-09-10T02:47:16 | JavaScript | UTF-8 | Python | false | false | 153 | py | from django.conf.urls import url
from wechat import views
urlpatterns = [
url('link/', views.link),
url('rose/', views.WeixinView.as_view()),
]
| [
"cqw@chenqiweideMac-mini.local"
] | cqw@chenqiweideMac-mini.local |
8293d30afaa2a09ca9a5a5b28a23d8ec1b213df5 | febe37fbe04f533778c60ecd669ca7010d6cfa26 | /excursions/models.py | 90f4198bc3561e88c771b8c0b1d27b94053fe5d6 | [] | no_license | landing-russia/i_evpatoria | 27c8785357bead0102b5823d316f51842fe263c1 | e4fedebee79c9ab456ce1664f951f66df610cd6c | refs/heads/main | 2023-04-09T00:40:36.576638 | 2021-04-21T06:00:20 | 2021-04-21T06:00:20 | 358,298,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | from django.db import models
class Exscursion(models.Model):
TYPES = (
('group', 'Групповая'),
('individual', 'Индивидуальная'),
)
name = models.CharField(max_length=255, verbose_name='Название экскурсии')
description = models.TextField(blank=True, verbose_name='Описание')
locatio... | [
"landing-russia@yandex.ru"
] | landing-russia@yandex.ru |
2ea42ed75506284aeaca6832127c5ac1f95139ab | c23b4c6253ca5a0d42822dd0d28ffa752c11ebf5 | /exercises/c3ec2a04-cbca-459a-951f-f17cc34310c7/skeletons/8fd3c5ac-35d2-40cd-9d21-77a4a6671d7c/skeleton4.py3 | e2a36f52de4511c924c13798bc533064cd0477c9 | [] | no_license | josepaiva94/e57d8867-6234-41a6-b239-2cd978ad1e70 | 803e2eb1e2db23c64409bc72ff00c4463875a82f | aa270941dd8cf7b2e1ec8ac89445b1ab3a47f89d | refs/heads/master | 2023-01-07T10:49:56.871378 | 2020-11-16T11:28:14 | 2020-11-16T11:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py3 | if largest != root_index:
nums[root_index], nums[largest] = nums[largest], nums[root_index]
heapify(nums, heap_size, largest)
| [
"56930760+jcpaiva-fgpe@users.noreply.github.com"
] | 56930760+jcpaiva-fgpe@users.noreply.github.com |
753c1ed00799a2708a1459d586b88d5d75a234ee | 531d35baa4b294cee0a191cae04ce9920f1a3d54 | /python_stack/django/django_full_stack/wish_project/wishApp/views.py | b7ad509bd076aaa8c60eb3a024c5e2e54d4a0d42 | [] | no_license | brianoc707/Coding-Dojo | 3fa584bb86df203212823990545e66eae4ae6fd2 | fe73b7367f6dc9b7d64acef071e0eeb6db8746f6 | refs/heads/master | 2022-12-22T01:36:29.759106 | 2020-01-28T18:38:54 | 2020-01-28T18:38:54 | 226,181,033 | 1 | 0 | null | 2022-12-11T22:21:22 | 2019-12-05T20:12:16 | Python | UTF-8 | Python | false | false | 3,496 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from .models import *
import bcrypt
# Create your views here.
def index(request):
return render(request, 'index.html')
def register(request):
print(request.POST)
resultFromValidator = User.objects.validateUser(request.POST)
if le... | [
"THABOSSMAN@Brians-MacBook-Pro.local"
] | THABOSSMAN@Brians-MacBook-Pro.local |
2d9d1d9d7a5f154131b426c6f8b4abf0ca4fea06 | b7aef4891809c09c2193f281fc88f166149b0c5d | /Scripts/py/FNplus.py | 0fd3e351fe9cdf6197d8e897ecf0ba42d13803bc | [] | no_license | mapengXM/VIP | acfcfdd0c34a68a8ea7a55b6f353bca50b1857a7 | 8895cb1e8a54ed2e28e2ccfe0f50e42358196ce4 | refs/heads/main | 2023-07-17T00:00:17.251628 | 2021-08-16T20:10:01 | 2021-08-16T20:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | import os,re,requests,argparse
# 登录地址
LOGIN_URL = 'https://my.freenom.com/dologin.php'
# 域名状态地址
DOMAIN_STATUS_URL = 'https://my.freenom.com/domains.php?a=renewals'
# 域名续期地址
RENEW_DOMAIN_URL = 'https://my.freenom.com/domains.php?submitrenewals=true'
# token 正则
token_ptn = re.compile('name="token" value="(.*?)"', re.... | [
"LeoninLyon@gmail.com"
] | LeoninLyon@gmail.com |
fe5afc9879b959e3ea8af568f5faa66bfaa6b37f | 2bfefffbc80dde1ff6996a4c6da28a35a93bcfc1 | /ML_App/prediction.py | 7ff59a89bcbff012827803f43760b7801439b8bc | [] | no_license | Gozdescientist/Machine_Learning_app | 16679b22be56e2c44a54d74b5f1c9aa41584a7dd | 99716f145cb9cac89932d156720791bb89de4d58 | refs/heads/main | 2022-12-20T13:40:00.769806 | 2020-10-05T07:56:34 | 2020-10-05T07:56:34 | 300,936,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,448 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'prediction.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow)... | [
"noreply@github.com"
] | Gozdescientist.noreply@github.com |
3c8532971330519aab359334a8036f420b97fcd7 | cbc37c553833e6ff4bd0c5b473427aa99dc867d2 | /brokenChains/models.py | 9c64661b6ac72bf69905ccfd82f6f13a81c423ae | [
"MIT"
] | permissive | bunya017/brokenChains | 970d1c65886b4f68023d4665a34f7fff2932d081 | 3e20c834efd7f0ade8e3abe7acf547c093f76758 | refs/heads/master | 2020-04-05T22:08:56.866300 | 2020-02-10T11:03:47 | 2020-02-10T11:04:20 | 157,246,570 | 1 | 0 | MIT | 2019-10-14T18:16:57 | 2018-11-12T16:56:05 | Python | UTF-8 | Python | false | false | 1,739 | py | from django.conf import settings
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.utils import timezone
from rest_framework.authtoken.models import Token
import datetime
@receiver(post_save, sender... | [
"bunyaminu007@hotmail.co.uk"
] | bunyaminu007@hotmail.co.uk |
6f72d08d18e271030a22d27c0ad5ea5646058ea9 | 8833c1472b9d9fb19c3ba94df83774ade0268beb | /image_download.py | 69c54c5ac586f3c5542859eea588180109a5574a | [] | no_license | vimkaf/Learning-Python | 1e83d6a562dd7aa6eb65e3a9bc23787a10170f03 | 16f1988a2940ece42e2b3081cab476109f0648ce | refs/heads/master | 2020-04-14T09:49:20.060701 | 2019-01-01T22:16:19 | 2019-01-01T22:16:19 | 163,768,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import random
import urllib.request
def download_image(url):
file_name = str(random.randrange(1,1000)) + ".jpg"
urllib.request.urlretrieve(url,file_name)
download_image("https://proxy.duckduckgo.com/iu/?u=https%3A%2F%2Fguardian.ng%2Fwp-content%2Fuploads%2F2017%2F08%2FOlanrewaju-kayode.jpg&f=1") | [
"vimkaf@gmail.com"
] | vimkaf@gmail.com |
b8b5d53aedd215e4c38db5455b764f4b73bb83b5 | 3420aba3622faf2d4aede984c656f68ad24a1f3c | /backend/personal_care_22730/settings.py | 230da7088fe365290e5935afd842c015a2ea9d7d | [] | no_license | crowdbotics-apps/personal-care-22730 | bb81af122e64cb58f6d52df31df328b6dfa4b25d | 066d2cd5e890057df054ea7c5b3b5f061e872371 | refs/heads/master | 2023-01-11T06:30:05.971088 | 2020-11-18T16:23:30 | 2020-11-18T16:23:30 | 313,990,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,048 | py | """
Django settings for personal_care_22730 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
58b45bd1c481e89aa008bdccbc1ec6900b6e8f90 | 92481be14549fb5ebde77adf64aebe90b7c04b00 | /raspberry_scripts/connect.py | d8cb30fe3126358471c5886b72a9b21cf0aec980 | [] | no_license | piskula/intelligent-house | 71850af149dbe76fe1fc2a97bade49a3b4c65690 | c5bb768ac3cfd94fa3e6b1aa2c3cc33ade3dea6b | refs/heads/master | 2020-04-05T05:51:56.579073 | 2018-12-25T16:14:51 | 2018-12-25T16:14:51 | 156,614,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | import yaml
import os
from time import sleep
print('starting cron')
with open("/home/pi/intelligent-house/raspberry_scripts/config.yml", 'r') as ymlfile:
cfg = yaml.load(ymlfile)
temperatureSensorDelay = cfg['delays']['temperature']
humiditySensorDelay = cfg['delays']['humidity']
for temperatureSensor in cfg['sens... | [
"pista.baci@atlas.sk"
] | pista.baci@atlas.sk |
385da3ba92840752f9a7dafb9d06cf97dd3f612f | 7e59f4738cf73d0fde97a1eec1768fb247ca189a | /command/status.py | 7fca29c44f3ba09e5aa54eea963e5b4979b5c644 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fossabot/Desert-Fireball-Maintainence-GUI | d48e1ae491ced17deb2b0f1cf1fe5e9d2145f258 | dd9167e85aedd183e5c91370b8be0ce9879beb98 | refs/heads/master | 2021-09-17T13:57:30.596073 | 2018-07-02T10:18:14 | 2018-07-02T10:18:14 | 115,166,948 | 0 | 0 | null | 2017-12-23T03:16:00 | 2017-12-23T03:16:00 | null | UTF-8 | Python | false | false | 1,832 | py | # ADVANCED UTILITIES
import datetime
import os
from backend import constants
from command import exec_console_command
def get_log(directory):
"""
Fetches the file path of a text logfile on the file system.
Args:
directory (str): The directory to get the logfile from. Format::
/data0... | [
"17160182@student.curtin.edu.au"
] | 17160182@student.curtin.edu.au |
d29ec6f0c8570c9501336dd74aa36439125e85ec | 2a72e3bc6ef3ede7e5064f96256be27a5cbfa37b | /efforts/migrations/0001_initial.py | 0c063add58476a122db459b9195398d8bc3f2d72 | [] | no_license | muare/django_staffing_demo | d0690a7d89ef4736f245a2badafaf98186fab16d | ff471fff76122aff93d1203ee1fef3ef222d8ae6 | refs/heads/main | 2023-08-18T15:58:26.558492 | 2021-10-05T09:14:55 | 2021-10-05T09:14:55 | 413,739,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | # Generated by Django 3.1.7 on 2021-10-02 02:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"xiebianwhu@gmail.com"
] | xiebianwhu@gmail.com |
52bc7632cb2fb0f992aefdbbb894875a1607ea42 | 508321d683975b2339e5292202f3b7a51bfbe22d | /Userset.vim/ftplugin/python/CompletePack/maya/app/renderSetup/model/collection.py | 6f5c78e3c5ec754621968564b253a3121787e876 | [] | no_license | cundesi/vimSetSa | 4947d97bcfe89e27fd2727423112bb37aac402e2 | 0d3f9e5724b471ab21aa1199cc3b4676e30f8aab | refs/heads/master | 2020-03-28T05:54:44.721896 | 2018-08-31T07:23:41 | 2018-08-31T07:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,254 | py | """Collection node class and utility functions.
This module provides the collection class, as well as utility
functions to operate on collections.
The collection owns its associated selector node: on collection
delete, the collection is deleted as well.
Conceptually, a collection fulfills four... | [
"noreply@github.com"
] | cundesi.noreply@github.com |
509b104aab4713a3c0671c13fcbb53ff0fb05ea2 | 7c9b25a10af05e25e24a574a9e97769ead0a5a39 | /myblog/urls.py | 7d572b019adb43b422f85effcab9b7c5bde93189 | [] | no_license | mnamegaurav/django_personal_blog | 8beef6fe3e3c87de726a9f958edc512689bed8dc | e5189edd0e8afa1534f6bbfd19c49e30760fb342 | refs/heads/master | 2023-04-04T12:18:41.914691 | 2021-04-17T05:35:17 | 2021-04-17T05:35:17 | 340,793,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | """myblog 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')
Class-based ... | [
"gauravsharma727545@gmail.com"
] | gauravsharma727545@gmail.com |
b4215825da1da85f06424f250276cdaa31fbf895 | 91bcf9bdbe35a9ea450f2a9792ec092dd9146d83 | /loop45.py | 3186c1fb626842967571458dc24712d9880ffbe8 | [] | no_license | degavathmamatha/LOOP_PY | c2c495966dc82750c6ff33276dedd308d97e8ba2 | 354a613513c784860aa6ec5a27e7a3901a91c2fb | refs/heads/main | 2023-05-17T15:19:53.807678 | 2021-06-02T17:06:06 | 2021-06-02T17:06:06 | 373,244,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | i=69
while i>=65:
j=65
while j<=i:
print(chr(i),end=" ")
j=j+1
i=i-1
print() | [
"noreply@github.com"
] | degavathmamatha.noreply@github.com |
5e9d5cc98dc54a3720199667dab263dc0b42dfb6 | 3fa8c5984304c79e988d32a2ce6eb9c5983e3cba | /Python_assignment_10/olympics_pandas_practice.py | 9497888ed60dd39db1ae790259b2160f8e82a34e | [] | no_license | nlad-gmu/Lad_AIT580 | 8a62ae5abbd5ed6ff11ed06ebb060985d7bd83a0 | e5dc2a6751aacb4eab39f7d64f91bd22ebfe9c7c | refs/heads/master | 2020-07-24T11:29:18.151181 | 2019-12-17T09:36:46 | 2019-12-17T09:36:46 | 207,908,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | import pandas as pd
df = pd.read_csv('olympics_clean.csv')
#Q1: Which country has won the most gold medals in summer games?
def answer_one():
x = max(df['Gold'])
ans = df[df['Gold'] == x].index.tolist()
return df['Country'][ans[0]]
print(answer_one())
#Q2; Which country had the biggest difference betwe... | [
"nlad@gmu.edu"
] | nlad@gmu.edu |
89319c9b50d8e57de117d8156c74826de6ff872a | 1c7b9e6d3430b791abd7f821661050a6eb9f0ac0 | /migrations/versions/beec3b9620f4_clean_app_setup.py | ec45ddd74581957ff21fe3b9e566e425091ba258 | [] | no_license | jtemplon/stock-exchange-app | 9e2324a3707c6d472078b1cbcf6e22b798b333e9 | b5af33260b9a545349b04ba7fe54686b627c9d46 | refs/heads/master | 2020-04-06T12:59:56.400675 | 2019-01-21T14:36:02 | 2019-01-21T14:36:02 | 157,479,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | """clean app setup
Revision ID: beec3b9620f4
Revises:
Create Date: 2018-11-13 09:10:09.576304
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'beec3b9620f4'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ge... | [
"jtemplon@gmail.com"
] | jtemplon@gmail.com |
1a519de31d1f8954c5d1274c2611ea3a2b428ed6 | 704608f54e440d20e23f3d4c1519746ecadad3e5 | /python1812alg/urls.py | 4369ec36ec7f98c2d0bc068157108771afac77de | [] | no_license | kenzhanglg/python1812alg | 565af679fd549cabb18e4d644f9ad5db7a8e0fdc | fc655f3dd9bab8e99afd693abd0ff44d1067f948 | refs/heads/master | 2020-04-29T03:44:13.167911 | 2019-03-19T12:03:29 | 2019-03-19T12:03:29 | 175,571,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | """python1812alg URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | [
"18814187940@163.com"
] | 18814187940@163.com |
8bff23b2e9efc484a7dafa78905b9ed3efde7cac | 04d9640857ee86879bdf10147863c484ac520f06 | /main.py | d909d80047c65aac58b19f9486a3f6bc47986c5b | [
"CC0-1.0"
] | permissive | fretless1/beard-respite | f3b05c9c558f751160ebfd3ede7d13da919d656b | be18f4231fee31606d4f71e0a12cf6ef04c7e870 | refs/heads/main | 2023-05-10T01:36:33.274741 | 2021-05-31T17:21:01 | 2021-05-31T17:21:01 | 372,528,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,664 | py | import math
print("Mit diesem Rechner kannst du eine beliebige Bedenkzeit vor der Rasur deines Bartes berechnen.")
# Gesamtzeit = Wachstumszeit + Bedenkzeit = Wachstumszeit + (Wachstumszeit/Vorlaufzeit)
print()
# Anzahl der Tage für die Wachstumszeit
g = float(input("Gib hier die Anzahl der Tage ein, die verga... | [
"noreply@github.com"
] | fretless1.noreply@github.com |
21901bac5c3e1042eca32269d0f30c9e6f065094 | f2acfe325ee64b239ba68e8a2474d78f89f274bd | /cloud/infrastructure/capella_aws_8s_1c_c5_2xlarge_m5_2xlarge_sizing_kv_rebalance.spec | 7501796635c519528f57f5e7788828edeb73ee47 | [
"Apache-2.0"
] | permissive | couchbase/perfrunner | d12596ff3c2a53b08c488cd48f0c72475cc59c49 | e76fd55bf1c733adf9988dee166da36304c36e72 | refs/heads/master | 2023-08-30T18:14:01.731809 | 2023-08-30T12:13:49 | 2023-08-30T12:14:32 | 12,786,971 | 23 | 44 | Apache-2.0 | 2023-08-02T01:56:41 | 2013-09-12T15:17:58 | Python | UTF-8 | Python | false | false | 1,395 | spec | [infrastructure]
provider = capella
backend = aws
[clusters]
couchbase1 =
ec2.ec2_cluster_1.ec2_node_group_1.1:kv
ec2.ec2_cluster_1.ec2_node_group_1.2:kv
ec2.ec2_cluster_1.ec2_node_group_1.3:kv
ec2.ec2_cluster_1.ec2_node_group_2.1:index
ec2.ec2_cluster_1.ec2_node_group_2.2:index... | [
"daniel.nagy@couchbase.com"
] | daniel.nagy@couchbase.com |
56c15e78ef411bada79abd374bd7d67e36ff9929 | 234c7fb0bdabdd696c8e4c6a449ac2c8e3f14ad5 | /build/PureCloudPlatformClientV2/models/workday_values_trend.py | 2cd0430e7aa02ba9e1bd12ac92f707c225c96002 | [
"Apache-2.0",
"MIT"
] | permissive | humano7/platform-client-sdk-python | 2a942c43cc2d69e8cb0c4113d998e6e0664fdedb | dd5b693b1fc90c9dcb36885d7227f11221db5980 | refs/heads/master | 2023-04-12T05:05:53.932393 | 2021-04-22T03:41:22 | 2021-04-22T03:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,713 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | [
"purecloud-jenkins@ininica.com"
] | purecloud-jenkins@ininica.com |
491a1f11b35ab27ff0eb2c2ce7bb95b422862b4a | ed7cd7760c708720f5a847a02b0c3a50cca0175e | /docs/conf.py | c6db3e446649d27013be9c86061f2f9677830789 | [
"MIT"
] | permissive | jcapriot/aurora | bf98b1236e7dc43e0189df71725f7f862d271984 | 08d5ccc671054a2b646a4effb412a2ed48314646 | refs/heads/main | 2023-09-05T00:07:16.984109 | 2021-10-27T02:49:41 | 2021-10-27T02:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,585 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"lindseyheagy@gmail.com"
] | lindseyheagy@gmail.com |
98f1b78b8810338038167479184830c15e4a2e72 | 01a0c16978068d8dd03f2d8a6ed6ceff48a06e50 | /webapps/secrets/migrations/0001_initial.py | 8e1a5aad5b545cf2350524908d5de686781b008f | [] | no_license | Kiwicai/Secrets | ab3c50872d3ea0da44bc11a80f92123643c14314 | ae10631e44a6165a10278ce272a709cd694b4e85 | refs/heads/master | 2021-01-13T08:20:28.294186 | 2016-10-29T21:13:35 | 2016-10-29T21:13:35 | 71,753,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-24 06:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"kiwicai1993hit@gmail.com"
] | kiwicai1993hit@gmail.com |
4c97d826d472e0652439b84bf0a10fcd553a634a | 3f7fcd4caf0f1caf2b4cdb71f5691ea504358292 | /sampletest3.py | d81d1e4bb717df1f0c61f56b69257a1a18f0657d | [] | no_license | tarak1006/python | 2369d16da5d17c90462068480461f32e3320258a | 1aa1ce6429a3a836073b8a8a359ef8ca91b3bfea | refs/heads/master | 2021-07-10T18:01:30.353637 | 2017-10-14T14:02:34 | 2017-10-14T14:02:34 | 106,932,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py |
a=[2,11,16,12,36,60,71,17,29,144,288,129,432,993]
n =len(a)
def Best(i):
if i==0:
return 1
else:
m=1
for j in range(i):
if a[i]%a[j]==0:
m=max(m,Best(j)+1)
return m
res=[]
for j in range(n):
res.append(Best(j))
print max(res)
| [
"noreply@github.com"
] | tarak1006.noreply@github.com |
13f0735af7afa71669e0b00ec47e9d7d07d8bce0 | d5214b1331c9dae59d95ba5b3aa3e9f449ad6695 | /qPloneDropDownMenu/branches/0.2/skins/qPloneDropDownMenu/qpdm_reorder.py | e0bfe0d169c75bd9dae28edd63c26790aeb59ec2 | [] | no_license | kroman0/products | 1661ee25a224c4b5f172f98110944f56136c77cf | f359bb64db22f468db5d1e411638790e94d535a2 | refs/heads/master | 2021-01-10T07:58:04.579234 | 2014-06-11T12:05:56 | 2014-06-11T12:05:56 | 52,677,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | ## Script (Python) "qpdm_reorder"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters= submenu_path, idxs
##title=
##
from Products.CMFCore.utils import getToolByName
menu_tool = getToolByName(context, 'portal_dropdownmenu')
menuitem = ... | [
"mylan@4df3d6c7-0a05-0410-9bee-ae8b7a76f946"
] | mylan@4df3d6c7-0a05-0410-9bee-ae8b7a76f946 |
810981f159c60e6a44398345ef1be95c3cb2ff95 | ab3c571db150fd8860d762049c4f81ba756e03b2 | /texas_holdem/__init__.py | c6b5c4863a4c5aff87de4acc1c6f8a76c7049816 | [] | no_license | notjuanortiz/texas-holdem | 3e27c3d3a464a1e73fbbc1cdc07201aeabb47351 | 1503710ea4c1977f4afaa0f0017256396521b251 | refs/heads/master | 2022-02-17T12:13:43.418354 | 2019-09-13T14:12:56 | 2019-09-13T14:12:56 | 106,612,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from texas_holdem.poker import Card, Poker, Player
__all__ = ['Card', 'Poker', 'Player']
| [
"jportiz32@gmail.com"
] | jportiz32@gmail.com |
3f14c52577f3848eabf3d6d456b3290629934df8 | 6521b069e778f6e7a5be1aabb282cfddde72f190 | /reproduction/Summarization/Baseline/test/test_dataLoader.py | 987f8778ca51720fb8af4a0eb11b06b43c6b2807 | [
"Apache-2.0"
] | permissive | choosewhatulike/fastNLP | 12068fc618245d9cbb137729063ee390de26d696 | 14778ee071ace8825acc0f0834a26eccfda70667 | refs/heads/master | 2021-04-06T10:51:49.961158 | 2019-07-09T06:00:40 | 2019-07-09T06:00:40 | 124,500,643 | 0 | 0 | null | 2018-03-09T06:54:25 | 2018-03-09T06:54:25 | null | UTF-8 | Python | false | false | 961 | py |
import unittest
from ..data.dataloader import SummarizationLoader
class TestSummarizationLoader(unittest.TestCase):
def test_case1(self):
sum_loader = SummarizationLoader()
paths = {"train":"testdata/train.jsonl", "valid":"testdata/val.jsonl", "test":"testdata/test.jsonl"}
data... | [
"brxx122@gmail.com"
] | brxx122@gmail.com |
1dea419e68a47fe50ed697d1fa7911da70083a77 | 67f94c361d28c2086c977504f0e2615db7bbe224 | /ski_bible/scripts/initializedb.py | e317354477454a83830e5c8f98b628fe3365b00a | [] | no_license | dyladan/ski_bible | 241c05e198fac914c0b5a981afd19089c65b3e5c | 7a39db18f90f4760278ec608a713251880d1f6ab | refs/heads/master | 2016-09-09T20:58:04.482972 | 2014-09-19T14:21:43 | 2014-09-19T14:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | import os
import sys
import transaction
import datetime
from sqlalchemy import engine_from_config
from pyramid.paster import (
get_appsettings,
setup_logging,
)
from pyramid.scripts.common import parse_vars
from ..models import (
DBSession,
Pass,
Base,
Skier,
)
def usage(argv):
... | [
"dyladan@gmail.com"
] | dyladan@gmail.com |
4406adf90e7e6c19c1ba256d21242b43107fe5be | e2c9c8d5176ecb75df24bad668d769db01a3ce55 | /patterns/creational/factory/__init__.py | 8b822e41a17336b1f0db4515d64eb1ee34a9a8bb | [
"Apache-2.0"
] | permissive | Vyshnavmt94/Python_Design_Patterns | e172d0cdb77534861bca835684999ff8ad099db3 | 3703b3ee7b16e77de2bad68037e2c8542852900b | refs/heads/main | 2023-08-01T06:18:33.655393 | 2021-09-26T09:48:19 | 2021-09-26T09:48:19 | 404,251,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py |
# ========================================= Factory Method ==========================================
# Factory Method is a Creational Design Pattern that allows an interface or a class to create an object, but lets subclasses decide which class or object to instantiate.
# Here, objects are created without exposing th... | [
"vyshnav94.mec@gmail.com"
] | vyshnav94.mec@gmail.com |
9274e32c22a557cd446ea41224a83a04fd4a48f3 | 9eb9bd999f6502125c1f5aae2abff5d67e322dfc | /apps/csat/migrations/0015_auto_20210723_1858.py | aa8a156316ee36fad91b81939979822b53ae8476 | [] | no_license | lolsecret/csat | 05eb3d208957d81496c9563d0ef0e7364b3462f8 | 551755b26be204cbcb5082901a5ba8a4904c44b5 | refs/heads/master | 2023-08-16T14:25:35.867370 | 2021-10-07T11:23:57 | 2021-10-07T11:23:57 | 386,858,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | # Generated by Django 3.2.5 on 2021-07-23 12:58
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),
('csat', '0014_auto_202107... | [
"tsabyrbek@globerce.com"
] | tsabyrbek@globerce.com |
4ea7ca6c5ee15075612d8d24d97f7d8d407e1ee1 | 8e427e952b67d0cb70f4ae74107b076db1bd08b9 | /tests_py/test_session.py | 0a11d8aea951bbf8733a96875141a9e17b166b78 | [] | no_license | brandonkrull/edgar-analytics | eab4ebfe55c18ac09419d8fb6c1b644a50377d24 | 6f0fb0d78ae4ec0b149d0602419c7db7cfb4fd2a | refs/heads/master | 2020-03-18T11:22:40.032862 | 2018-05-29T15:57:33 | 2018-05-29T15:57:33 | 134,667,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | from src.processor import Session
from dateutil.parser import parse
record = {'ip': '123.123.123.1', 'date': '0366-12-24', 'time': '23:59:59'}
baddate = {'ip': '123.123.123.1', 'date': '0x66-12-24', 'time': '23:59:59'}
badtime = {'ip': '123.123.123.1', 'date': '0366-12-24', 'time': 'z3:59:59'}
def test_session_init... | [
"btkrull@gmail.com"
] | btkrull@gmail.com |
2b05106d3a46f169272d1e3f9813b03703458746 | 842c0fd117d1bf0502988ae960c174a598d72584 | /ecdh.py | 610756bf66b689a00a18c59c923b5f542fd32cb5 | [] | no_license | ThomasB123/ecc | e41ab8314ef38ff11583cdf816b2c059e9e455cf | 45d8585263bf29f922ee94d3d588e71ecf41fbeb | refs/heads/main | 2023-06-14T22:07:36.010246 | 2021-07-13T16:44:31 | 2021-07-13T16:44:31 | 304,315,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py |
def binary(num): # convert denary number to binary
out = []
while num > 0:
if num % 2 == 1:
num -= 1
out.append(1)
else:
out.append(0)
num /= 2
return out
def move(xa,ya,xb,yb):
if [xa,ya] == [xb,yb]:
# doubling a point
m = ((... | [
"noreply@github.com"
] | ThomasB123.noreply@github.com |
95bfdd8d4b4b4983e02efdc3723e09cace44a225 | 706d5ff4707793a225f41c469f19a4f1891078da | /mongodb.py | 54b9b0141c20586c5b80ba3c32565d688101a41c | [] | no_license | dcc668/PyDemo1.2 | eb5f13a19343e4d9d82fdd7c54f6f45622c5c00e | f883ca1d9bc04673beb9b40d889da74d2aaa5095 | refs/heads/master | 2020-04-15T02:23:16.000157 | 2019-01-30T23:57:41 | 2019-01-30T23:57:41 | 164,312,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #_*_ecoding:utf8_*_
import pymongo
conn=pymongo.MongoClient()
mydb=conn["mydb"]
users=mydb["t_user"]
user1={"userName":"cc1","sex":"男","password":"111","email":"dcc666@163.com"}
# user2={"userName":"cc2","sex":"男","password":"122","email":"dcc667@163.com"}
# user3={"userName":"cc3","sex":"男","password":"123","email":... | [
"1187053696@qq.com"
] | 1187053696@qq.com |
f03b3454fdbdf031adc9ad7bf8439e2ad21b408c | 0afbba909a82d4dd610296453c1c7b38c82fc192 | /Amazon_Price_Tracker.py | 63f490c28729c58efd352f9c20530a87b757ac29 | [] | no_license | Addy-Coder/Amazon_Price_Tracker | 1c7cb17d03e7d6d63ce60c093fa3079bb275254f | 1b92e9ccf66903e0ff6d8ef267575868935dab28 | refs/heads/master | 2020-12-14T20:24:30.985057 | 2020-01-19T07:43:41 | 2020-01-19T07:43:41 | 234,858,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,602 | py | import smtplib
from bs4 import BeautifulSoup
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import time
import sys
#Make sure that you have enabled sercurity access to your below google account
EMAIL_ADDRESS = 'Provide Email'
EMAIL_PASSWORD = 'Provide Password'
price_compare = ... | [
"sbdk12@gmail.com"
] | sbdk12@gmail.com |
432aae4837c6d251b61eb69326fd327cebce4c6c | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/resourcecenter/serializers/processing_metrics_serializers.py | bb72d5540d96efd33b60750a04d702611cbf0b03 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 2,364 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
-------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
84f632af9d00e78171570751ffcb0138ca9b2fe0 | 21f9c75a4dacc1d3a596296ce2f3896a1b93d9fa | /src/pharmacy_counting.py | b780795f1faed2c6cc9251e055851db9157d9e11 | [] | no_license | richajain44/insightData | 60904c7f9fa1ced65bacc22933c2d0e37e0ff31e | 88046143331555e1089bc3c596667f57fdc8ef1e | refs/heads/master | 2020-04-19T03:35:34.247990 | 2019-01-28T09:56:06 | 2019-01-28T09:56:06 | 167,938,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | """
This program takes in input file de_cc_data and outputs top_cost_drug.
It calculates for each drug its total unique count of prescribers and
total cost of each drug.
run.sh provides the necessary input and output paths
"""
#Importing necessary libraries
#sys is used for input and output reading
#csv is used to re... | [
"richajain44@gmail.com"
] | richajain44@gmail.com |
9e7c5e1a231a4c91b408a95ff09e2b71dcfa7f70 | 1348bddbb856b592d1d17a96e36447d74d1d5cc5 | /Lab8/Lab.py | f015a506dbb7b712066f2b022dbb877189245180 | [] | no_license | pivaszbs/DS_labs | d7802b5841c2d084695f4c45fc05fafdd943dc7d | d522a95180670776323cb78b335988bad80ab16e | refs/heads/master | 2020-08-05T05:08:31.215941 | 2019-11-01T16:23:46 | 2019-11-01T16:23:46 | 212,407,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | from multiprocessing import Process, Pipe
from os import getpid
from datetime import datetime
def local_time(counter):
return ' (LAMPORT_TIME={}, LOCAL_TIME={})'.format(counter,
datetime.now())
def calc_recv_timestamp(recv_time_stamp, counter):
for id in r... | [
"zhychek1@yandex.ru"
] | zhychek1@yandex.ru |
01b7426b8af93d364a09f009a51635ebc62a467c | 49e0b6094a6841efd74ba57cd01913b465223333 | /tests/test_hash_tables.py | dde5fcf272c310cc928176b9e022f0c7aac4fb07 | [] | no_license | HamzaQahoush/data-structures-and-algorithms--Python | 1c2fdfc8b90efc190108ed139372591741d5acc7 | 81bc4424065bc6b7ef99ab4dbba60524a75058a4 | refs/heads/master | 2023-07-15T04:03:05.158576 | 2021-08-05T17:34:47 | 2021-08-05T17:34:47 | 376,792,369 | 0 | 1 | null | 2021-08-05T17:29:16 | 2021-06-14T11:00:05 | Python | UTF-8 | Python | false | false | 2,263 | py | from data_structures_and_algorithms_python.data_structures.hashtable.hashtable import *
# 1 Adding a key/value to your hashtable results in the value
# being in the data structure
def test_add_value():
hashtable = Hashtable()
hashtable.add('Hamza', 'Qahoush')
actual = ''
for i in hashtable.array:
... | [
"hamza.qah@gmail.com"
] | hamza.qah@gmail.com |
9f505f5cd70c6413e2aa1448ca220b48048f7e03 | 0e74c5316187766c833742ff45beac1afe80f803 | /9-2/3/3.py | 556e4499f69807030c0397ba88e588c71daa30c4 | [] | no_license | r4pidstart/hyu-isd | 950d3195590ee34244e7cf476abc94c0d462a2ec | 281da38dfa68f9ee27ff216b11ce5f6d7d16e7a5 | refs/heads/main | 2023-06-03T09:44:40.915065 | 2021-06-22T02:58:10 | 2021-06-22T02:58:10 | 345,556,758 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | def recursion(n):
if(n==0):
return 0
if(n==1):
return 1
return recursion(n-1)+recursion(n-2)
n=int(input())
print(recursion(n)) | [
"r4pidstart@gmail.com"
] | r4pidstart@gmail.com |
5636c3dd3742788051538088505928e3ef3fe2fb | 2fa6156bcb1935b0a4897d1e6229cd0f73714130 | /gs_runplots.py | 3b59643b8e739ca1d34634703efd923eeb25c836 | [
"MIT"
] | permissive | briangalindoherbert/gs_mapdemo | 9fdaed1196452d438af3573ecb74632bb9930460 | 86f1791e8a8913335a24ea32ae10d16a86dfa415 | refs/heads/main | 2023-02-04T15:53:41.548014 | 2020-12-15T21:14:04 | 2020-12-15T21:14:04 | 314,715,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # encoding=utf-8
"""
this is a script to separate the running of plots on processed data from the import, wrangling, and calc work done in
gs_mapdemo.py. I do a lot of customization on the plotting end that uses the same DataFrames, I don't need to do
that processing to test out minor plotting changes.
"""
import pand... | [
"noreply@github.com"
] | briangalindoherbert.noreply@github.com |
15d69568efc05a970d5ddadd64603478733f8e55 | 668666cffdb0c0dbfed9af931b39b2e3fcb697d1 | /pycsw/util.py | 5a0361601ceab16916cebf340ff4b88229dac9fc | [
"MIT"
] | permissive | doclements/pycsw | ee8de72c5a3ed2f7f08b0d5e3f0e482904a43a35 | 07ab48e02152b517e1ec5d1952a2aadfae9db191 | refs/heads/master | 2020-12-25T12:40:41.340666 | 2012-07-01T16:27:31 | 2012-07-01T16:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,072 | py | # -*- coding: iso-8859-15 -*-
# =================================================================
#
# $Id$
#
# Authors: Tom Kralidis <tomkralidis@hotmail.com>
#
# Copyright (c) 2010 Tom Kralidis
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentat... | [
"tomkralidis@hotmail.com"
] | tomkralidis@hotmail.com |
08bd1ec4dcb4c0a0083b9de9301ff74b1d6fc755 | 99d14f465a7f725e7b9c3377f5e12b76453de0aa | /bin/old/csv2analyse.py | 2c839873fb8d3a42d0329d243cbfde5f6bd64681 | [] | no_license | suzannejin/nf_homoplasty | c4056e2ff3b7ee7270d4690257beac37c9ffddc2 | 2fb5af9dd9f38cfac3b3e81dffa80dbcbb6f0cfe | refs/heads/master | 2020-12-28T05:01:24.059054 | 2020-05-19T11:07:53 | 2020-05-19T11:07:53 | 238,189,231 | 0 | 0 | null | 2020-02-04T11:23:05 | 2020-02-04T11:23:04 | null | UTF-8 | Python | false | false | 5,211 | py | #!/usr/bin/env python3
__description__='''
Python version of the Cedric's script for the analysis of homoplasy.
'''
def csv2pandas(fil):
import pandas as pd
df=pd.read_csv(fil,header=[0,1],index_col=0)
return(df)
def pandas2headers(df):
# Get headers: families, aligners, trees
families=list(df.... | [
"suzanne.jin@crg.eu"
] | suzanne.jin@crg.eu |
d8cea985ceebd495a9c38d178fb8abcdf16ea8e7 | 2c176520b850380c8912cea4b053e88d7fe6c3f1 | /qbiaq5/precomputation.py | e31c91fec4a789c95b00acbc1b796ea4493bc27e | [
"MIT"
] | permissive | czyszczonik/Zuf-ninja | 858d0828ae584a66ffd082bde662b7b3b71a2b6c | b6419839d598aee7854339ce82c7036e15ecc967 | refs/heads/master | 2022-09-21T07:09:58.272300 | 2020-05-31T14:36:37 | 2020-05-31T14:36:37 | 268,044,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | import time
from qbiaq5.decorators import benchmark
from qbiaq5.math_commons import h, v, createPrecomputationArray, getBinaryArray, getEmptyArray
@benchmark
def precompute(G, l, S, a, b):
t0 = time.perf_counter()
hc = h(l, a)
vc = v(a, b)
array = createPrecomputationArray(G, a, b, l)
for row in... | [
"czyszczonikjakub@gmail.com"
] | czyszczonikjakub@gmail.com |
156d87bc9085a8d0dd814ef54df798ad47e64e6f | b94f318593fa057f6cf00e8a568430c1086df15a | /users/urls.py | 41f707807a5b27207c68572afc366b8e116b2914 | [] | no_license | bitpixdigital/django-next-train | 6b1cfe3ea6f7c313db6d607c87833a91089203a3 | 5bce0974a5f3f0ef8433decec1505bc417ebee13 | refs/heads/master | 2021-01-17T08:12:39.670325 | 2016-07-15T15:17:02 | 2016-07-15T15:17:02 | 62,678,734 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | """Defines URL patterns for users"""
from django.conf.urls import url
from django.contrib.auth.views import login
from . import views
urlpatterns = [
# Login page
url(r'^login/$', login, {'template_name': 'users/login.html'},
name='login'),
# Logout
url(r'^logout/$', views.logout_view, name='... | [
"angel@bitpixdigital"
] | angel@bitpixdigital |
553fc43f756ad2c72fad6fb64a24798b17c40e4d | c82d051d42ce4fcd32bb08e73f5a37015afb1645 | /app.py | 740d40e89be7d9014fbfa43c579b1825f246bb7b | [] | no_license | nedfrine/ensembl | ae759d1728bc45a7cf2cbfac6a28295330bc427d | 77c5130abec3885aca9a7b134cafdf28f56f2451 | refs/heads/master | 2022-01-11T14:55:23.406075 | 2022-01-01T21:26:08 | 2022-01-01T21:26:08 | 174,574,204 | 0 | 0 | null | 2022-01-01T21:26:09 | 2019-03-08T16:48:00 | null | UTF-8 | Python | false | false | 2,870 | py | import flask
import json
import os
from flask import render_template
from flask import request
from flask import Response
from sqlalchemy import and_
from flask_sqlalchemy import SQLAlchemy
project_dir = os.path.dirname(os.path.abspath(__file__))
database_file = "mysql://anonymous:@193.62.193.10/ensembl_website_90"
... | [
"nithin.ivan@sap.com"
] | nithin.ivan@sap.com |
ff96ced9ce7021a3e0768e0e4493dcaaee8df6fd | a6086dcd794ee1419081761e473433081249059f | /app/api/errors.py | 9e92b5acf600ead372909b7faad5a3d73fe777ea | [] | no_license | billy0402/flask-stock-api | f1d6f51d7d67300eccc2d7621eacc41f3a8ec609 | 2d656c80b2a062f8dd4f7f8466ed3060f7d56477 | refs/heads/master | 2023-07-18T15:40:53.869479 | 2021-09-08T18:57:47 | 2021-09-08T18:57:47 | 402,569,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from flask import jsonify
from . import api
from ..exceptions import ValidationError
def bad_request(message):
response = jsonify({'error': 'bad request', 'message': message})
response.status_code = 400
return response
def unauthorized(message):
response = jsonify({'error': 'unauthorized', 'message... | [
"10646003@ntub.edu.tw"
] | 10646003@ntub.edu.tw |
95b9fdca571f3e098ef2c1ff21e6bd48597afc65 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/ModifyHostInfoRequest.py | b5160544bcb63311836cf513c07824b15c12694d | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,332 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
d21c0896c06e1415355d55f1c6aa4eda00358cbc | 46559fa48bb8ae722149b600ecd5e05e558553ac | /RumourEval2019Models/Bert-MFajcik/data_preprocessing/text_preprocessing.py | 185113f8777ca3d00c738e17f3b504dde6cda8ea | [
"MIT"
] | permissive | isspek/veracity-detection | f84eeba6aceb8b2f3f753c5e856bb46d9581c0c5 | 9368309722bead209e49e52c206758e3d173092a | refs/heads/master | 2022-07-15T10:25:10.327352 | 2019-11-14T13:24:55 | 2019-11-14T13:24:55 | 214,429,773 | 0 | 0 | MIT | 2022-06-21T23:08:54 | 2019-10-11T12:23:39 | Python | UTF-8 | Python | false | false | 7,549 | py | import re
import string
import warnings
import preprocessor as twitter_preprocessor
import spacy
# See spacy tag_map.py for tag explanation
from nltk.corpus import stopwords
from spacy.symbols import PUNCT, SYM, ADJ, CCONJ, NUM, DET, ADV, ADP, VERB, NOUN, PROPN, PART, PRON, ORTH
from utils import DotDict
warnings.fi... | [
"ipekbrs@gmail.com"
] | ipekbrs@gmail.com |
cf271b92cae5bee54534c95ab110740da68e58ed | 930262f95cfb17d77da3c3674521a70c3b69d869 | /apps/JazzySnek/views.py | f094e6c274c3808fc3880f3ef77db0e908760b95 | [] | no_license | kevan-wang/JazzySnek | 905e7402bc3448f3305bba3a8665e164c9b5cd46 | dc084e34cad59ab318529860a8d9a62955d338ef | refs/heads/master | 2020-03-13T20:35:16.906966 | 2018-04-28T08:19:09 | 2018-04-28T08:19:09 | 131,277,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,230 | py | from django.shortcuts import render, HttpResponse, redirect
from django.contrib import messages
from time import gmtime, strftime
from . models import User
import re, datetime, bcrypt, random, string
# Create your views here.
def index(request):
context = {}
if "userID" not in request.session: # Security feature:... | [
"kevanwang@gmail.com"
] | kevanwang@gmail.com |
ceb4b01859eec51102efa567136810d52af86ace | 0a986d303056fb20e55adf75f279e059f3cfc280 | /breakfast/views.py | 8dceac42c1aada1440bf0616a6dba1d4347e33b3 | [] | no_license | EleaZhong/my-first-blog | 4301faa59dc5a2fec17318a6c05f34e707f0373b | b37a8056e9594d89946b7afbf762524c9c13573c | refs/heads/master | 2022-04-27T18:03:00.502240 | 2019-03-23T06:52:44 | 2019-03-23T06:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | from django.shortcuts import render, get_object_or_404
from django.http import Http404
# Create your views here.
from .models import breakfastho
from django.http import HttpResponse
from .forms import breakfast_form,breakfast_form_new
def breakfast_product_view(request):
breakfast_object = breakfastho.objects.get... | [
"zhongdz.dazhi2018@gdhfi.com"
] | zhongdz.dazhi2018@gdhfi.com |
e31e3067d04cecd66e2553c00fd595e0672a1503 | a92662f0b14ddb2ae2d49d82584040c328bc38b0 | /_starter/04_while_2.py | 0aeba58fe6e0738380fb5040816589ee9c84bebd | [] | no_license | DeeCoob/hello_python | 34c80e78dece35d7b03bd914bd462390288b336a | 219834031b0655a764de82c68cd47c218be4cc35 | refs/heads/master | 2020-04-29T00:17:41.133690 | 2019-03-20T21:24:00 | 2019-03-20T21:24:00 | 175,688,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | number = 0
count = 0
while number <= 0:
number = int(input("Enter positive integer: "))
count += 1
print("Try number", count)
if count == 3:
print("Try is done, exiting...")
exit()
print("You entered number", number)
| [
"deecoob@gmail.com"
] | deecoob@gmail.com |
eedc1a1a7b87294894b34aefd03488bb442339be | 33e5e4b883671f7f40a48e6e0a4b544b3f8f839a | /imageflow/apps.py | 2b8872cb5e0adfd69a6677056fd89db00b564baa | [
"MIT"
] | permissive | typpo/astrokit | ad7ee83664e3d920733d7e008aec4801c7aa84f2 | 59cea2e06c027e83dfa70defb4053820c79ccced | refs/heads/master | 2023-04-12T15:44:11.669710 | 2022-06-21T21:21:04 | 2022-06-21T21:21:04 | 47,933,931 | 9 | 7 | MIT | 2023-03-31T14:28:40 | 2015-12-13T19:52:01 | Python | UTF-8 | Python | false | false | 134 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class ImageflowConfig(AppConfig):
name = 'imageflow'
| [
"ianw_git@ianww.com"
] | ianw_git@ianww.com |
4685b3d3ff1bc3cfe8898f1d8edcf37a08088731 | ad3cd7c5e05d3a1043cc510b3af10c3ef56430f4 | /lib/bbox.py | 5eb528dc572d9103139a0ef3e35d647785748706 | [] | no_license | kl456123/vis_tools | f1ef504daeccee11438edd4a7b0c4f0349364b35 | 6e29ed34948e89810dbcaf3a8fe18d06f83d39be | refs/heads/master | 2021-06-23T16:14:23.960129 | 2017-08-17T10:44:16 | 2017-08-17T10:44:16 | 100,592,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | #!/usr/bin/env python
# encoding: utf-8
class BBox(object):
def __init__(self, coords, code_type='xxyy'):
self._bbox_xxyy = coords
self._code_type = code_type
self._bbox_xywh = None
self.convert_bbox_format()
def convert_bbox_format(self):
if self._code_type == 'xywh':... | [
"kl456123@outlook.com"
] | kl456123@outlook.com |
51573e5e37c9a202919b9704bc45f94207c17118 | 925216786fd041fcf5eaffaecb323e3e7d46e6fc | /cosc343worldPythonMacOS/cosc343world.py | ee5440b02da2f5c7feebb94f44fdfeaa8355e4ce | [] | no_license | HarryMead/NeuralNetworkWorld | a0f1fe8a2e76868612297242a8e3f66d7e080f74 | 98a8ad721c2673b7b26f3cbed19097a717f29cf5 | refs/heads/master | 2022-12-05T22:47:35.688295 | 2020-08-23T12:53:50 | 2020-08-23T12:53:50 | 283,945,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,296 | py | #!/usr/bin/env python
from cosc343worldcc import _cCreature, _cWorld
import numpy as np
import time
import sys
# This is a creature class that your EvolvingCreature needs to inherit from.
# This class wraps the _cCreature class which was implemented in C.
class Creature(_cCreature):
# Your child class must overri... | [
"noreply@github.com"
] | HarryMead.noreply@github.com |
106c1c6b1de661b947c7f6f43927e0c261cc39ac | 186fd3420112162d1f5603941b508b519117f2f6 | /podcast_site/wsgi.py | 0706e23aff9585977a545e314e4242d4ad9db2d6 | [] | no_license | 2016asuri/podcast-search-engine | 0bd3897d4e20c0c48233dfce5cad288eff2f78ef | d0421156c8469389e5ac81e945b2ce7d6d84fce9 | refs/heads/master | 2022-12-09T12:10:51.377942 | 2018-07-10T21:51:26 | 2018-07-10T21:51:26 | 136,760,996 | 0 | 0 | null | 2022-12-07T23:50:44 | 2018-06-09T21:59:05 | Python | UTF-8 | Python | false | false | 492 | py | """
WSGI config for podcast_site 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import ... | [
"ananyas@andrew.cmu.edu"
] | ananyas@andrew.cmu.edu |
89c1e612bf15f10445b4a1ba4fec726a5987fbe4 | fe8cc40acb2acd23a9acf729f85c170d8cbcb55e | /split.py | 67138a0c2e3e2caee1351fa7069ddfb311d56ecb | [
"MIT"
] | permissive | MoveOnOrg/merkle | 5c6eaad24958a36e7dc530669e1bdb1999e09a2c | 764351cf6a21bb718343ae7488735f077aee3afe | refs/heads/main | 2021-08-07T04:40:37.302769 | 2020-06-03T16:36:40 | 2020-06-03T16:36:40 | 163,700,745 | 0 | 0 | MIT | 2021-06-21T05:25:48 | 2018-12-31T22:29:33 | Python | UTF-8 | Python | false | false | 5,502 | py | import csv
import os
import sys
from pywell.entry_points import run_from_cli
DESCRIPTION = 'Split a donation import into separate files to avoid erasing data with empty columns.'
ARG_DEFINITIONS = {
'BASE_DIRECTORY': 'Path to where files are located.',
'CSV': 'CSV file to split.'
}
REQUIRED_ARGS = ['BASE_D... | [
"scott.reynen@moveon.org"
] | scott.reynen@moveon.org |
3356afae23c7ddb7429ccf7487de8234d072d1b8 | 27f7b7d7149c0faab7d8787901dfaa45f58b66d2 | /converter_to_hls/schemas.py | 55de5bd3be29242e648c48eec6720fcd264927c5 | [] | no_license | chistyakov/asyncio_video_converter | b9a183e9d26aae8acd7fa5dab09a18245b0f5348 | 4a0ad8f29cbc2e4e68720865d1184e6492ab3869 | refs/heads/master | 2021-08-30T10:17:18.075686 | 2017-12-17T13:19:05 | 2017-12-17T13:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import re
from marshmallow import Schema, fields
from marshmallow.validate import Regexp
NO_SPECIAL_CHARS_PATTERN = re.compile('^[a-zA-Z0-9]+[a-zA-Z0-9_.\ -]*$')
class LaunchConverterSchema(Schema):
file = fields.Str(
required=True,
load_only=True,
validate=Regexp(NO_SPECIAL_CHARS_PATTER... | [
"al.ol.chistyakov@gmail.com"
] | al.ol.chistyakov@gmail.com |
c281292e06d3742bd682a5d8766d5862720b284c | 6f63ad6f179c4c5bc4e2c82f741067fc030e1351 | /CSE111/esteem.py | dfdfd26f68658ce800c957c9f573228e2ca89a12 | [] | no_license | Kyle5150/CSE111 | 8e152fdbac93854259de8b7328dd183ccbafe35a | 7f4db03eed69232085323fb5dd80e60a0fa5b618 | refs/heads/main | 2023-06-02T20:00:49.043137 | 2021-06-17T07:26:51 | 2021-06-17T07:26:51 | 377,741,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | NEGATIVE = -1
POSITIVE = 1
def main():
print("This program is an implementaiton of the Rosenberg Self-Esteem Scale.")
print("This program will show you ten statements that you could possibly")
print("apply to yourself. Please rate how much you agree with each of the")
print("statements by responding w... | [
"noreply@github.com"
] | Kyle5150.noreply@github.com |
e41d6751ff6935e088b2fb2b8b0c6c1ce83a1d6b | eb82d1887df98b3cfdf3b5e7a7e594a97550ec7d | /Generator/stage3a_logExtractor.py | 4b9cefda79411439cbde8f009e773f67e9c667fd | [] | no_license | mohrez86/Denchmark_BRs | 102e32e94e16ab8b157b4098215f461b39986b16 | ae893de4b29761c81ebff52b0a6901d3bbb5dd04 | refs/heads/main | 2023-06-02T11:39:04.546330 | 2021-06-15T07:44:53 | 2021-06-15T07:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py |
import os
import requests
from bs4 import BeautifulSoup
import time
import util_extractor
extractor = util_extractor.extractor()
import subprocess
import sys
import re
def load_projects():
lines = open("./data/stage2_bugreports/1st_candidate_bugs.csv", "r", encoding="utf8").readlines()
project_bugs = {}
... | [
"misookim"
] | misookim |
f6d7ae62aec0c8ee20db1465a48e9ad487cd7662 | 6430f1d91ca5b7a5d4c19dac26f148e746166f65 | /evaluate.py | eb8fe7db2ce94130d64f14c25b53b9538424d8fd | [] | no_license | cp917/speech_enhancement | e855a3ba82d48f4579367e792b93d81d0faf3f40 | 815c7f3a8f78344d206a58d48ce49d7e4ba657d9 | refs/heads/master | 2020-12-09T10:37:40.157443 | 2019-09-17T03:27:34 | 2019-09-17T03:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,931 | py | """
Summary: Calculate PESQ and overal stats of enhanced speech.
Author: Qiuqiang Kong
Created: 2017.12.22
Modified: -
"""
import argparse
import os
import csv
import numpy as np
import cPickle
import soundfile
from pypesq import pypesq
from pystoi.stoi import stoi
from prepare_data import create_folder
#import ma... | [
"noreply@github.com"
] | cp917.noreply@github.com |
0a8c30ddc938aa6edd61a8e58586b053b788471d | 619122375a4e4a65f02d797b0a066de50597a931 | /web/blueprints/school_profile/__init__.py | 072ee14aed015d5784c25cbf0cda5c158ed210ab | [] | no_license | zhangshuo1996/school_profile | e2a50505da626b20ca39ebde459e3046733e0fd1 | 5965015345c1878fbd6860a3cdca344fb088aa1b | refs/heads/master | 2023-02-15T16:42:09.451514 | 2021-01-04T01:16:53 | 2021-01-04T01:16:53 | 319,231,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from web.blueprints.school_profile.profile import school_profile_bp
from web.blueprints.school_profile.search import school_search_bp
| [
"18796360983zs@gmail.com"
] | 18796360983zs@gmail.com |
9b3ef03ef6d8de217adbc634e63f038ae42d5d52 | 0a3bf0a6f10eb143c9291090125946538ee73279 | /summarize/sumy/summarizers/edmundson_location.py | 406597f5a31d71b8b516c58c710328b273d06797 | [
"Apache-2.0"
] | permissive | AIPHES/live-blog-summarization | 19ec1c01b7e254f74b2de153ac3972780daa7506 | a5f899ea07a098e1e0b3ab92cd3d430776e6412a | refs/heads/master | 2022-11-24T09:39:25.750313 | 2019-02-12T13:53:12 | 2019-02-12T13:53:12 | 166,268,167 | 2 | 1 | Apache-2.0 | 2022-11-02T20:47:14 | 2019-01-17T17:34:10 | Python | UTF-8 | Python | false | false | 2,516 | py | # -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from operator import attrgetter
from .._compat import ffilter
from ._summarizer import AbstractSummarizer
class EdmundsonLocationMethod(AbstractSummarizer):
... | [
"avinesh@aiphes.tu-darmstadt.de"
] | avinesh@aiphes.tu-darmstadt.de |
f61eca67c5c12e16e1a5e52966b33565843168a4 | 4bf7ffbb76f89412340808fbc999a027165e7b8f | /code1.py | 7bcccfdfe79a6ebaa8c76b431dc208b11007fb3b | [] | no_license | mrFred489/AoC2017 | 7e62d1695b7340b95640a4563f4ce611d4399521 | b4cc1609b41104165cd4c5442d6508b3dd3178c5 | refs/heads/master | 2021-09-01T06:01:28.908747 | 2017-12-25T07:53:01 | 2017-12-25T07:53:01 | 115,197,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py |
f = open("data1.txt")
data = f.readline()
data = data.strip()
num = 0
for i in range(1,len(data)):
if data[i-1] == data[i]:
num += int(data[i])
if data[0] == data[-1]:
num += int(data[0])
print("svar1")
print(num)
k = int(len(data)/2)
num2 = 0
for i in range(len(data)):
if k + i < len(data):
... | [
"frederik.lauridsen@gmail.com"
] | frederik.lauridsen@gmail.com |
6fa980d4dd5a9231591dcd0dfff776d63cf6e4d2 | 64530babd4336421ef28feea8e0c69fddf6ca394 | /tuple.py | 5bc07629159ff6e5ae7bbd6e389cd31caa5246fe | [] | no_license | judy1116/pythonDemo | 0e35e51da7bc82354b11e67219bfe1ba742048d7 | 1e8f3e2a48b1804a12f7d93a7477a8d3e5bdf450 | refs/heads/master | 2021-08-31T10:49:22.219034 | 2017-12-21T03:20:23 | 2017-12-21T03:20:23 | 114,954,420 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | #不可变的tuple有什么意义?因为tuple不可变,所以代码更安全。如果可能,能用tuple代替list就尽量用tuple。
#另一种有序列表叫元组:tuple。tuple和list非常类似,但是tuple一旦初始化就不能修改,比如同样是列出同学的名字:
classmates = ('Michael', 'Bob', 'Tracy')
#现在,classmates这个tuple不能变了,它也没有append(),insert()这样的方法。其他获取元素的方法和list是一样的,你可以正常地使用classmates[0],classmates[-1],但不能赋值成另外的元素。
print(classmates[0])
... | [
"noreply@github.com"
] | judy1116.noreply@github.com |
f307f47c4a7e44be5de0ad1f9ed05f6d75fd81de | 328c05bf9312044626609fb251bf1858beaf80ce | /bwb/pycompile/megaplot.spec | 69a7802e6cdcec3824def5a2497f46a3b08cc175 | [] | no_license | astroclark/osg_tools | a68422869b6d59afee00d1e7be0e95f2a5582f57 | b8dc00b1f3f2cc03eaaa194bcd164074d89aa71c | refs/heads/master | 2021-01-17T02:16:56.460527 | 2018-06-25T15:43:02 | 2018-06-25T15:43:02 | 53,345,744 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 873 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['megaplot.py'],
pathex=['/home/jclark308/src/lscsoft/bayeswave/trunk/postprocess'],
binaries=None,
datas=[('./navigate.js','.'),
('./BWBweb.css','.'),
('./secure_ajax.js','.'),
('./s... | [
"james.clarrk@ligo.org"
] | james.clarrk@ligo.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.