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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3055dd516e30c7c07aa5907cd892549bbcf990a3 | 1fccf52e0a694ec03aac55e42795487a69ef1bd4 | /src/euler_python_package/euler_python/medium/p194.py | 8d5449446e6261f855f92632dbc27e892a2191d5 | [
"MIT"
] | permissive | wilsonify/euler | 3b7e742b520ee3980e54e523a018cd77f7246123 | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | refs/heads/master | 2020-05-27T12:15:50.417469 | 2019-09-14T22:42:35 | 2019-09-14T22:42:35 | 188,614,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | def problem194():
pass
| [
"tom.andrew.wilson@gmail.com"
] | tom.andrew.wilson@gmail.com |
3d9dac643af211b1c1a371f8ce54825e4b229f39 | ac7f3b7c5c9501d880671766439018a67b4a8abc | /Mclass.py | 4446c949803a2b04ff5e8de064913b02c9951103 | [] | no_license | Pratikshresth/Advance-Student-Management-System-using-Mysql-Database | ce63de404d277622bec5fed726172545aaeaea79 | d609410a7eeb246482ebefa08f96c2ec6664ee91 | refs/heads/master | 2023-06-18T04:24:35.825911 | 2021-07-16T09:09:46 | 2021-07-16T09:09:46 | 386,276,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | class Student:
def __init__(self,fname, lname, city, zipcode, state, gender, email, contact, dob, program,section,clgId):
self.fname=fname
self.lname=lname
self.city=city
self.zipcode=zipcode
self.state=state
self.gender=gender
self.email=email
self.co... | [
"pratik.shrr@gmail.com"
] | pratik.shrr@gmail.com |
6e6bef69c641d624737033f588ec5773cedcedfa | eda5f94d7d1b8dffe7bd04b78a2002868aa245fa | /json_process.py | 89b33a4538ff6242f2adbb1c60e22b11833a33ef | [] | no_license | oychao1988/myScrapy | 566d353cbadf575a94e1d56ccc1ab80ff0484777 | 10e9ab3ad2878f9cc297d2519b11f77bf233c6f1 | refs/heads/master | 2020-04-24T22:35:38.645097 | 2019-02-24T09:16:03 | 2019-02-24T09:16:03 | 172,317,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import json
from jsonpath import jsonpath
with open('zitems.json', 'r') as f:
# json_str = f.read()
json_dict = json.load(f)
# print(json_dict)
result = jsonpath(json_dict, '$.data.results')[0]
print(type(result))
[print(each) for each in result] | [
"2296458423@qq.com"
] | 2296458423@qq.com |
19e8a2275e77b19545138e9ac5fef6f97bb8fcff | c1bd4f24c0962c3dde93421ae8a1d468e7ea8b3d | /Practica5/E2P5.py | 6aa82c95e5e939e1344f7f25c83ee6c53b9fd4c1 | [] | no_license | AdriAriasAlonso/Python | e9a8994dd08a7b5a962a5b22dca06ad96634394f | 16c122089dc9e7ec5d06edc12d5ff2d2c3cd5d4b | refs/heads/master | 2020-08-15T11:35:22.618884 | 2019-11-05T17:15:36 | 2019-11-05T17:15:36 | 215,334,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #Ejercicio 2 Practica 5: Adrian Arias
n1=int(input("Porfavor, introduzca un número\n"))
n2=int(input("Porfavor, introduzca otro numero\n"))
for i in range(n1,(n2+1)):
if i%2==0:
print ("El numero", i,"Es par")
else:
print ("El numero", i,"Es impar")
if n1>n2:
for i in range(n2,(n1+1)):
... | [
"aarias@cifpfbmoll.eu"
] | aarias@cifpfbmoll.eu |
8ac96c23be4a2472b6a1c35d2727a8277d640cef | e3cc4d1cd686dae93b0519244c883816cf79b794 | /tools/ISMmainplotfunction/ISMtools/hgashalf_out.py | 9d2d854132331f4ec85c283ea6c3da0cff8a3b72 | [] | no_license | tkc004/samsonprogram | 620a095ab04719e5339f77968ce444c4c037841b | db24d26fb2100e6b71e93dc82863c3b95fe95126 | refs/heads/master | 2021-01-20T01:46:14.873434 | 2019-09-17T01:05:24 | 2019-09-17T01:05:24 | 89,327,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,624 | py | from stdmodandoption import *
import collections
def hgashalf_out(ssdict):
nested_dict = lambda: collections.defaultdict(nested_dict)
plotdict = nested_dict()
runtodo=ssdict['runtodo']
wanted=ssdict['wanted']
print 'wanted', wanted
startno=ssdict['startno']
Nsnap=ssdict['Nsnap']
sna... | [
""
] | |
ab8a538e9a834d5700cf3ac3cd559f7204e23eb8 | 5a7812908f03a96d224dd6afd5e902eaa4a1bc72 | /manage.py | 3aaaca92c24e1833de0e32565da906078c62a89d | [] | no_license | abztrakt/django-badger | 6be5da8eb14b4a1c3b5bd494294ad0e26cd4439a | 4e5a927fdcacfd7aa7f78c713c7d30d3f8ecdd3a | refs/heads/master | 2020-07-10T13:39:35.212601 | 2015-06-17T18:31:33 | 2015-06-17T18:31:33 | 15,320,494 | 0 | 0 | null | 2015-11-13T17:10:25 | 2013-12-19T19:20:39 | Python | UTF-8 | Python | false | false | 309 | py | #!/usr/bin/env python
import os
import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
def nose_collector():
import nose
return nose.collector()
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"me@lmorchard.com"
] | me@lmorchard.com |
5c9d0b80d96f14ba60beab833bd3810b25a334f9 | 139318c3c285aca8e1600dbf10192fd91e62a356 | /app/msg_api/msg_routes.py | d8b580b3ddf131dc3839b7e3da720dc6a3d78673 | [] | no_license | Ym4n/messaging-system-python-flask-api | c6543eb2b2a496a6b79ea20281f589ec4a882c42 | 47a9a6272a19167f15ce3b0bca3847929019beee | refs/heads/main | 2023-08-11T21:34:35.644860 | 2021-09-25T08:43:08 | 2021-09-25T08:43:08 | 372,399,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,257 | py | from flask import request, jsonify
from flask_login import login_required, current_user
from app.msg_api import msgapi_bp
from app.db_users import User, Group
from app.db_msg import Messages, Msg_Recipient
from app import db
def msg_is_valid(msg):
""" message validation """
return "recipient" in msg and ... | [
"noreply@github.com"
] | Ym4n.noreply@github.com |
e0e0ac6d1685609a798fb83ff12f8a72911f6e01 | e0e255c7f9adb78044e2fb67b5a9cb85e17b7558 | /actions/actions.py | 37a3b1de3088942a544eb3efdfe1ca8964772d87 | [] | no_license | igupta967937/appointment_bot | f4cc3db7aa96d899fa20ee7fa9fe3cd88a98a0ca | 834ab7d38ebdd3437955fccdea34e6506e5af422 | refs/heads/main | 2023-03-07T00:34:27.591527 | 2021-02-12T12:34:34 | 2021-02-12T12:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | # This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/custom-actions
# This is a simple example for a custom action which utters "Hello World!"
from typing import Any, Text, Dict, List
from rasa_sdk ... | [
"noreply@github.com"
] | igupta967937.noreply@github.com |
b6e20b9bd79614adeceeaad5b46e60d0cc2692ef | c9d50f032e2ba9144933ec913663d9d6ad264151 | /ShopKeeper/Listener/apps.py | 9e0e89a1f7c1965cbc11959bbe804918c9a70d31 | [] | no_license | RockMeroll/ShopKeeper | 3acf47bfc110f1c26f45c5d91df60ac047794b7a | 471befc0ca967783724afd5b52eb47f061aaedf0 | refs/heads/master | 2021-01-20T08:19:47.336508 | 2017-08-27T13:45:58 | 2017-08-27T13:45:58 | 101,554,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class ListenerConfig(AppConfig):
name = 'Listener'
| [
"rockmeroll@hotmail.com"
] | rockmeroll@hotmail.com |
967b041df488aabe60dd198a880e7b38e873786f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2524/60618/287300.py | 48f5b7e392369d39af807d2dddd3b1123248d6db | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print("1 3 2 4") | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4c0cbbd6b354a7c9beb0926c78c9d3d68e787764 | eece94bc273edadee19a40cee51f787037737422 | /corpus.py | f443471c22224decc1f3c7890717ccb9d2066b95 | [] | no_license | mi-chellenguyen/cs-121-project-3 | 0579b9c3a2e0b2d0fe523fecd9fe76fb7d0df4c7 | 4b8be2857210563ffbf52325672fedc4a25fe846 | refs/heads/master | 2022-01-18T14:51:55.851351 | 2019-06-01T05:12:12 | 2019-06-01T05:12:12 | 187,193,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | """
Corpus class is from the same corpus.py given in project 2
"""
import json
import os
from urllib.parse import urlparse
class Corpus:
"""
This class is responsible for handling corpus related functionalities like mapping a url to its local file name
"""
# The corpus directory name
WEBPAGES_RAW... | [
"michn10@uci.edu"
] | michn10@uci.edu |
4b0df2a739e371cc097d3d87f76e0530b774c8e8 | c5238f0de5074b13a0d3f93e474a9cfac8ad0277 | /playback/studio/recordings_lookup.py | 067b5fdeaee186413e45a4b084937f0ae20b409b | [
"BSD-3-Clause"
] | permissive | mayacahana/playback | eb16ec865535d7e7b5148fb505946e4cb198ef9a | fc6083910a66130845d9f0d69853c886df504692 | refs/heads/main | 2023-04-10T12:14:37.673042 | 2021-03-25T09:12:45 | 2021-03-25T09:12:45 | 357,560,067 | 0 | 0 | BSD-3-Clause | 2021-04-13T13:17:25 | 2021-04-13T13:17:24 | null | UTF-8 | Python | false | false | 1,909 | py | from random import shuffle
class RecordingLookupProperties(object):
def __init__(self, start_date, end_date=None, metadata=None, limit=None, random_sample=False):
"""
:param start_date: Earliest date of recording
:type start_date: datetime.datetime
:param end_date: Latest date of r... | [
"eitan@optibus.com"
] | eitan@optibus.com |
650e33ce0f21e78b11f013b0560453ea2a85a6be | 94bfb8b44125c6d7b58409e1979dc95941acd753 | /setup.py | 1e7fbea569df3ec736160c40e28066a550226a3e | [
"MIT"
] | permissive | rkhullar/pearsonr-pure-python | 1ef8eb8ada777fa3e2cf97b5c97122fb6d9ca1f0 | 955fbca6af0a234cf5132d5f83d36a2c411fec7a | refs/heads/master | 2023-03-21T12:56:43.945020 | 2021-03-13T19:54:05 | 2021-03-13T19:54:05 | 347,448,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | from pathlib import Path
from setuptools import find_packages, setup
from typing import List, Union
import pipfile
import re
import subprocess
def read_file(path: Union[str, Path]) -> str:
with Path(path).open('r') as f:
return f.read().strip()
def infer_version() -> str:
process = subprocess.run([... | [
"noreply@github.com"
] | rkhullar.noreply@github.com |
997e8209c2b3d2a126f06dcf2817e43779ec535d | 9e9faf222fe6969b5b0c1652768c1b1db88e8b5d | /old_stuff/tf_old_stuff/train_adaptive_lr.py | a2481a5ee8ec6bc61fe6b9911175864f5dcde110 | [] | no_license | Ravoxsg/UofT_Adaptive_LR_optimizer | b800a068f222bd361e1ac6567c7cdbc74bd24d3c | 18c3f719c89e42e4e84af5840e64b4c89ab7e153 | refs/heads/master | 2021-08-31T00:52:31.674332 | 2017-12-20T02:23:18 | 2017-12-20T02:23:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,574 | py | #Same as train.py, but with an adaptive learning rate schedule.
import numpy as np
import tensorflow as tf
from data import cifar10, utilities
import vgg
# Config:
BATCH_SIZE = 64
NUM_EPOCHS = 0.2
STEP = 20
DATASET_SIZE = 50000
INITIAL_LR = 0.0001
EPSILON = 0.0000001
network = 'vgg'
mode = 'adaptive_2nd_order'
... | [
"mathieu.ravaut@student.ecp.fr"
] | mathieu.ravaut@student.ecp.fr |
03bb1c24d6f897fedea3dc2569117cf6c7f50df2 | a5ed71c4f897132a3505107acbf27635f7c13f9c | /Программирование/labs/okno.py | 0b1efa39f56e50993a7ab27430cbe52c1426c510 | [] | no_license | Ksupall/BMSTU_1sem | ecee121ccd8be43165040fd4567f34a935283367 | 4fa47faaf42eea7728202d9a1ed0ab86e900bf2e | refs/heads/master | 2022-12-14T04:29:34.317952 | 2020-09-09T11:07:27 | 2020-09-09T11:07:27 | 294,084,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | from tkinter import *
from math import sin, cos
root = Tk()
root.title('Первое окно в Питоне')
root.geometry('1020x620')
canvas = Canvas(root, width=1020, height=620, bg='#002')
for i in range(21):
k = 50*i
canvas.create_line(10+k, 610, 10+k, 10, width=1, fill ='#007')
for i in range(13):
k =50*i
... | [
"KsenyaPolyakovaaa@mail.ru"
] | KsenyaPolyakovaaa@mail.ru |
e244467c43c15f133fb60bcf85e4eb8bde84cf17 | ec450b48ea1f074dc61fd6d9fdd8dd91cb40fb56 | /backend/wallet/wallet.py | 4d84aa3a18ba3302a85c02288cb28f8b3d2ea73b | [] | no_license | TwylaWeiyuTang/Blockchain | 4dc4a72ca5538e58aad545f6c7c5c4b72f956610 | f174abd57504c719cff7926f4049a51c4bbefd61 | refs/heads/main | 2023-05-20T16:44:06.053833 | 2021-06-10T04:36:28 | 2021-06-10T04:36:28 | 375,567,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | import uuid
import json
from backend.config import STARTING_BALANCE
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.asymmetric.utils import (
encode_dss_signature,
decode_dss_signature
)
from cryptography.hazma... | [
"noreply@github.com"
] | TwylaWeiyuTang.noreply@github.com |
31f6289142f123b7aa1f3408d8c68b0a4c08744b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py | 4dae2b4662729d3e2714e093eb7ff038afd17b81 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 34,172 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
71066e4fbe1454df9a36b16d98c5833f9c368392 | 4d88b5b2a40f140f9235f46a083b51655cfc0c93 | /orastorage/model.py | e94881927b361671cb80ce230dcfc80f30e8a089 | [
"Apache-2.0"
] | permissive | taewanme/orastorage-py | 1c5aac05497f0e91de9bcbea34d9fc5ab4b871a2 | 33b383ef9858fe16503451de781fcc6553592655 | refs/heads/master | 2021-01-21T06:46:50.577726 | 2017-03-02T06:50:42 | 2017-03-02T06:50:42 | 83,281,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
class Identity:
"""
- 사용자 정보
- Account 정보를 이용하여 인증을 수행
"""
def __init__(self, identity_domain, user_id, password=None):
self._identity_domain = identity_domain
self._user_id = user_id
self._password = password
... | [
"taewanme@gmail.com"
] | taewanme@gmail.com |
67642b39839af0eb49cdb9903aadc2180913e8b8 | a229bfe7e79df9b1d005771194618568880fcb77 | /learning_complete/hello.py | e042dc336902136f4b271eb064164ffba54c6b44 | [] | no_license | chjdm/PythonCrashCourse | 96c2173097e1cf3b4952dae11e5f087c4a0de6bc | 234beafd69fdd3feb6aa91384888b850f6be04d9 | refs/heads/master | 2020-03-27T23:39:54.933633 | 2018-09-17T14:45:14 | 2018-09-17T14:45:14 | 147,336,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | print('Hello, world!')
print('rest') | [
"liuwee@sina.com"
] | liuwee@sina.com |
11081b54eefdf7a0dc6ee6fe71a46da11fa021ff | 7fe128bad2edcc42bfe2f416f57822faadba7aa6 | /home/urls.py | f04627ace266f0508a1c7c867143b656ed422cc8 | [] | no_license | AlexiaDelorme/site-sephora | e3ad6b7ee6f6bff4ebd655d472e55a5e261426d2 | 4503f93bcedb856ac57585ffa021f9ec9759b0d2 | refs/heads/main | 2023-01-23T12:31:20.599344 | 2020-12-04T22:16:09 | 2020-12-04T22:16:09 | 311,388,760 | 0 | 0 | null | 2020-11-29T14:31:49 | 2020-11-09T15:52:49 | CSS | UTF-8 | Python | false | false | 388 | py | from django.urls import path
from .views import specialty_detail_view, sub_specialty_detail_view, honoraires_view
urlpatterns = [
path('compétences/<int:pk>/', specialty_detail_view, name='specialty_detail'),
path('compétences/détails/<int:pk>/',
sub_specialty_detail_view, name='sub_specialty_detail')... | [
"46656955+AlexiaDelorme@users.noreply.github.com"
] | 46656955+AlexiaDelorme@users.noreply.github.com |
f843bedf9cbff64a0edb8722634e6949dba0b446 | 72b55ff8a72209979f6da96f461c41737270396d | /forms.py | c9ecfa8e05ad83a87870e3b887daf066942a64a6 | [] | no_license | KeithCCC/FlaskSamples | 2426a51325abcb1cf8527ead97f36a0e1ecd9736 | 15b348f3ad798084a2048b272b3b7ce6669f7024 | refs/heads/master | 2021-01-23T18:22:41.765447 | 2017-09-07T22:22:37 | 2017-09-07T22:22:37 | 102,790,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from flask_wtf import Form
from wtforms import TextField, IntegerField, TextAreaField, SubmitField, RadioField,SelectField
from wtforms import validators, ValidationError
class ContactForm(Form):
name = TextField("Name Of Student",[validators.Required("Please enter your name.")])
Gender = RadioField('Gender', c... | [
"keithc2chen@gmail.com"
] | keithc2chen@gmail.com |
c268e42e33cab54993c7be1e85eaccdb2e98aec1 | 5655a243a3d631c70826910b9bd257bf21f52bcd | /LAB SW 3/MyMQTT2.py | e3854b6fed7183b0be3bb1cbe0fb9cd3890a7f21 | [] | no_license | sebalaterra/Relazioni-IoT | dff379cdba559d324d944ee28aeeb60cf3cccdf7 | 40e4402b4583307f8594ff60d95a413647121c87 | refs/heads/master | 2022-11-08T00:08:57.375245 | 2020-06-25T13:05:54 | 2020-06-25T13:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | import paho.mqtt.client as PahoMQTT
import requests
import json
class MyMQTT:
def __init__(self, clientID, broker, topic, port):
self.broker = broker
self.port = port
#self.notifier = self
self.clientID = clientID
self._topic = topic
self._isSubscriber = False
... | [
"noreply@github.com"
] | sebalaterra.noreply@github.com |
5a68c04f899f47c89d7192b8ebdfe56a6a2f17e4 | 057d662a83ed85897e9906d72ea90fe5903dccc5 | /.PyCharmCE2019.2/system/python_stubs/cache/2b64a136264952b5fc77d4c27a781542cf8f659109a9e46ce1b22875cea43541/_cython_0_29_2.py | f3272e9cfb67ae70598f0930f6534bae4d67a51e | [] | no_license | Karishma00/AnsiblePractice | 19a4980b1f6cca7b251f2cbea3acf9803db6e016 | 932558d48869560a42ba5ba3fb72688696e1868a | refs/heads/master | 2020-08-05T00:05:31.679220 | 2019-10-04T13:07:29 | 2019-10-04T13:07:29 | 212,324,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | # encoding: utf-8
# module _cython_0_29_2
# from /usr/lib/python3/dist-packages/brlapi.cpython-37m-x86_64-linux-gnu.so
# by generator 1.147
# no doc
# no imports
# Variables with simple values
__loader__ = None
__spec__ = None
# no functions
# classes
class cython_function_or_method(object):
def __call__(self,... | [
"karishma11198@gmail.com"
] | karishma11198@gmail.com |
e7723d9c8eda67ab73bdce61fabc02b82c3baa62 | 0d8ab859bc1848fe0a61e1c926df3b1a4b298141 | /modulo_2/modulo_2/wsgi.py | 5a1eb851fda7ebf1c005e3f62d2c42dfa8aed635 | [] | no_license | alan-damian/django-aplicaciones | 18558ee52e632a09c77c28f90b6505c2a28b4d89 | 59d2f5834f0a6add978ae9f5c1d4cd108e9c8789 | refs/heads/main | 2023-08-22T17:23:04.535882 | 2023-08-08T20:08:25 | 2023-08-08T20:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for modulo_2 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"noreply@github.com"
] | alan-damian.noreply@github.com |
5a1ab60820fd81cdf5a2c9716a6bd8522f875d10 | 0e046754f5151c9e4916115bb8d547cd1210d144 | /ex40b.py | 77394ff783c97a7957ae61e66e40f08a6fff638f | [] | no_license | teoharianto/python1 | f056730813f4559fd01493bf8d455f13dc5871e9 | aa99ba7df0f1acc349de51fdb0f7c8c370a4482e | refs/heads/master | 2020-09-01T06:53:45.198635 | 2019-11-01T03:17:50 | 2019-11-01T03:17:50 | 218,902,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | class MyClass(object):
def pertanyaan(self):
prompt = "> "
print("Masukkan angka pertama : ")
MyClass.angka1 = input(prompt)
print("Masukkan angka kedua : ")
MyClass.angka2 = input(prompt)
print("-"*10)
| [
"teofilushendry5@gmail.com"
] | teofilushendry5@gmail.com |
febfee8b916c13278ae85b84a29cbfe7b0fa8325 | 44e60feaefb8afed8b17216c379e43a4e4a4c47b | /venv/lib/python3.6/functools.py | 552df8cf27882cc693945575cca18e19aa27269a | [] | no_license | 19059019/DGHMMR | f7dc0d875019348bfbf727853520bc226ce75df2 | 6487f3a609bcb82102ee0558f2f60da2ceea182b | refs/heads/master | 2022-11-06T06:02:09.853490 | 2018-05-09T12:39:07 | 2018-05-09T12:39:07 | 129,313,764 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /home/ryan/anaconda3/lib/python3.6/functools.py | [
"myrw344email@gmail.com"
] | myrw344email@gmail.com |
8fbc50489eff50ed424d41fd9e73da22a933f129 | 4b17b361017740a4113ba358460293e55c9bee49 | /LAB02/04-CloudAlbum-XRAY/cloudalbum/model/models.py | f21c3b69306956a5492bd0f320264da3289f4e9d | [
"MIT"
] | permissive | liks79/aws-chalice-migration-workshop | aa01fa5a585a548c8408ba7448d731deefbbbd18 | 5115117504a3e2b897dc8444be58de0e4e12586a | refs/heads/master | 2022-12-25T09:50:44.821495 | 2018-11-20T03:05:52 | 2018-11-20T03:05:52 | 139,544,736 | 6 | 8 | MIT | 2022-12-08T02:17:36 | 2018-07-03T07:26:11 | JavaScript | UTF-8 | Python | false | false | 3,505 | py | """
model.models.py
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CloudAlbum is a sample application for TechSummit 2018 workshop.
:copyright: © 2018 by Sungshik Jou.
:license: BSD, see LICENSE for more details.
"""
from sqlalchemy import Float, DateTime, ForeignKey, Integer, String
from flask_login import Us... | [
"liks79@gmail.com"
] | liks79@gmail.com |
2e12d79fa9ad4afdc9d45903736aa325321b8bdf | 780b01976dad99c7c2ed948b8473aa4e2d0404ba | /scripts/alphas_archive/zw_contfut/alpha_ichimokucloud_long_bullish_feb02_.py | ac7c5e278698c535bbbd3bc0ba40df1577ab83ca | [] | no_license | trendmanagement/tmqrexo_alexveden | a8ad699c2c3df4ce283346d287aff4364059a351 | 4d92e2ee2bc97ea2fcf075382d4a5f80ce3d72e4 | refs/heads/master | 2021-03-16T08:38:00.518593 | 2019-01-23T08:30:18 | 2019-01-23T08:30:18 | 56,336,692 | 1 | 1 | null | 2019-01-22T14:21:03 | 2016-04-15T17:05:53 | Python | UTF-8 | Python | false | false | 1,430 | py | #
#
# Automatically generated file
# Created at: 2017-02-09 10:10:05.686710
#
from strategies.strategy_ichimokucloud import StrategyIchimokuCloud
from backtester.strategy import OptParam
from backtester.swarms.rebalancing import SwarmRebalance
from backtester.costs import CostsManagerEXOFixed
from backtester.s... | [
"i@alexveden.com"
] | i@alexveden.com |
fd4261e382f0c2af24db00d077a75a556802c706 | 5c579f811f4f400f8605a13ca85f044411fc8fcb | /Phase3/Code/LSH.py | 7acabdf812bcbcf2d0c227aecf08d13f65884b23 | [] | no_license | Satyak22/Multimedia-Retrieval-and-Analysis | 4c230098f101719cf458cf21de4ec66bca04d902 | c6cdabb02505cd4ccecb0e4f02d676b3a86e1545 | refs/heads/master | 2022-11-11T11:41:35.953323 | 2020-06-24T04:04:42 | 2020-06-24T04:04:42 | 274,545,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,117 | py | import json
import math
import os
import random
import numpy
import pandas as pd
from scipy.spatial import distance
from project_utils import get_data_matrix
from dimensionality_reduction import reduce_dimensions_lda, reduce_dimensions_svd
class ImageLSH():
def __init__(self, num_layers, num_hashs):
print(... | [
"satyakpatel22@gmail.com"
] | satyakpatel22@gmail.com |
41865d0a8d31bd029bcf81770e2e5cc7e4de96f3 | bcc4eb1b96ff9117208a07bf91f479695776b684 | /Fase2/arbol_b/nodo_b.py | 001d63088a5c7cd31ca5dccd324c6325335c701d | [] | no_license | JASAdrian1/EDD_SmartClass_201901704 | 5db668697966cc317415e2466c73e79bcf7b2838 | bfc0a362e24b565b5abcd4cc328134a809b12cc6 | refs/heads/master | 2023-09-02T19:54:20.091149 | 2021-11-12T00:01:07 | 2021-11-12T00:01:07 | 394,545,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py |
class nodo_b:
def __init__(self,curso):
self.curso = curso
self.izquierda = None
self.derecha = None
self.siguiente = None
self.anterior = None
| [
"3022643370101@ingenieria.usac.edu.gt"
] | 3022643370101@ingenieria.usac.edu.gt |
dab7e968ff950d4145b0f4b0021112f80ccf01df | a1966ec4fd6e45d5e2ebd04cbac8803ed7df83e3 | /account/views.py | e39f2b49eddfab0f6b4ee7c81e440ca005d036f8 | [] | no_license | panman11111/Django_bootstrap_login | 2b7acdbfabed80d44dfa2bd17422e57b11470795 | e80c80deef8656fb4da1eb86d99d5fd7f01e1f6b | refs/heads/main | 2023-06-21T15:18:23.178322 | 2021-07-23T08:01:16 | 2021-07-23T08:01:16 | 388,710,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.shortcuts import redirect, render
from django.contrib.auth.forms import UserCreationForm
def signup(request):
if request.method == "POST":
form = UserCreationForm(request.POST)
if form.is_valid():
form.save()
return redirect('login')
else:
form = User... | [
"sakuma.takuto@shanon.co.jp"
] | sakuma.takuto@shanon.co.jp |
ff42edd1001eb920f52266537eb69f4818f84ba8 | 50ed49edf390ddb3b4439caf20a475d887c23e30 | /Code/Process_dataset.py | d08f89618b4f4e304f0bb8bfe20f06ca4f2b1611 | [
"Apache-2.0"
] | permissive | Parth27/ActionRecognitionVideos | 2bfd728773a0e9eff211c3a70b6bd10dd69c706b | 8410843a0f78d5e0ea5aaf2f319fcffb157dcad3 | refs/heads/master | 2022-12-06T16:22:38.194304 | 2020-08-31T16:06:58 | 2020-08-31T16:06:58 | 291,759,332 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import os
import glob
src_dir = "./Dataset/UCF-101/" # Dir containing the videos
des_dir = './Dataset/UCF-101/' # Output dir to save the videos
for file in os.listdir(src_dir):
vid_files = glob.glob1(src_dir+file, '*.avi')
des_dir = "./Dataset/UCF-101/frames/"
for vid in vid_files:
des_dir_path = ... | [
"diwanji.parth@gmail.com"
] | diwanji.parth@gmail.com |
18d32d3d4aeafb8a8b5dd7f7e1ae9d34159a2175 | 819776af8bc3160727b7ac8f228fb985fe7594fe | /selfcheck/migrations/0002_auto_20200810_1413.py | c7c6bb32d5865800640bdba707991f51b11a7993 | [] | no_license | davkim1030/mirae_qr_server | ea5850ea222551cae940d918cc9e67e06f81154f | 3ccf1bceb9163a6a51eb29f8d205887ca7e9bce8 | refs/heads/master | 2022-11-30T04:41:21.286352 | 2020-08-18T12:57:08 | 2020-08-18T12:57:08 | 283,763,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.0.3 on 2020-08-10 14:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('selfcheck', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='url_str',
... | [
"davkim1030@gmail.com"
] | davkim1030@gmail.com |
d2f0d4f6c0fbf446e71d0d8932ea484f5254a496 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /protein_lm/evaluation.py | 65526ef1936021cd9841bd15b70a9acb1961835f | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 4,563 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0a5527590c9d0a2c5741e99bc9a397e7d56bc8d6 | 276c86a451c4110ba0885dbe8509d46f23c21715 | /esp32-micropython/_projects/robot_random_roam/robot.py | 0d6ef0ac34c14ae716840ea486d2f36ac8c0081e | [] | no_license | vtt-info/octopuslab | 055c9bfdc1466a6e5acf90a3cd0db2826e72dee7 | 3d20933c05bae3eec4d0c033f228bde369e46e07 | refs/heads/master | 2022-07-27T14:19:16.386241 | 2020-05-16T13:50:21 | 2020-05-16T13:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | from machine import Pin, Timer, PWM, SPI
from util.pinout import set_pinout
from time import sleep_ms
from random import randrange
from hcsr04 import HCSR04
pinout = set_pinout()
MAX_SPEED = 800
CRUISING_SPEED = 450
APPROACH_SPEED = 350
TURN_SPEED = 450
RANDOM_TURN_MIN = 600 # ms
RANDOM_TURN_MAX = 1000 # ms
COLLISI... | [
"vasek.chalupnicek@gmail.com"
] | vasek.chalupnicek@gmail.com |
98f608ebac936a9529c1d937758f6d9638c51234 | 5651c5421273957cfdc35902e07531c098efb33e | /consult.py | 4f32faa74add8c43e863a2b99b4203e29f0045c6 | [] | no_license | dianakooo/python | 37ede05ca3163c86aed5b5dcb777c405e4e99402 | ace41acded063caa65ad289a8627222b9b33aba7 | refs/heads/master | 2021-09-16T10:01:31.561531 | 2018-06-19T09:42:34 | 2018-06-19T09:42:34 | 105,384,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | lines2016 = []
a = 0
with open("happiness-cantril-ladder.csv", encoding='utf-8') as f:
#for line in f:
lines = f.readlines()
for line in lines:
#print(line)
cells = line.split(',')
#print(cells)
if cells[2] == '2016':
lines2016.append(cells)
user_countr... | [
"noreply@github.com"
] | dianakooo.noreply@github.com |
76a74e65ebc0beed5be5ef08265dae29b1d940ae | 320e99e96bbb4c34983a327ae433a36b138c14b6 | /khufu_siteview/templatedir.py | e6186adb3344d5d1260bbb828a271de7a7797db5 | [] | no_license | khufuproject/khufu_siteview | 958d737a32ce60cdd9d638509c5ed5e18c1745a8 | c990b637f25318291a10a1f626f3829025078f26 | refs/heads/master | 2021-01-19T14:33:40.168793 | 2011-04-26T11:33:09 | 2011-04-26T11:33:09 | 1,630,968 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,457 | py | import os
import sys
from paste.fileapp import FileApp
from pyramid.asset import abspath_from_asset_spec
from pyramid.renderers import render_to_response, RendererHelper
from pyramid import path
from pyramid.httpexceptions import HTTPNotFound
import re
import logging
logger = logging.getLogger('khufu_siteview')
clas... | [
"rocky@serverzen.com"
] | rocky@serverzen.com |
a77b2ff17ace222a1bea8e8a72ff18df355a31a5 | 364e81cb0c01136ac179ff42e33b2449c491b7e5 | /spell/branches/2.0/src/spell/spell/lib/adapter/verifier.py | 0ffd4e9ec0d45331f71f5a42f892936cb51928a1 | [] | no_license | unnch/spell-sat | 2b06d9ed62b002e02d219bd0784f0a6477e365b4 | fb11a6800316b93e22ee8c777fe4733032004a4a | refs/heads/master | 2021-01-23T11:49:25.452995 | 2014-10-14T13:04:18 | 2014-10-14T13:04:18 | 42,499,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,938 | py | ###################################################################################
## MODULE : spell.lib.adapter.verifier
## DATE : Mar 18, 2011
## PROJECT : SPELL
## DESCRIPTION: Telemetry verifier thread
## --------------------------------------------------------------------------------
##
## Copyrigh... | [
"rafael.chinchilla@b4576358-0e6a-c6b8-6e87-62523fae65e4"
] | rafael.chinchilla@b4576358-0e6a-c6b8-6e87-62523fae65e4 |
fe3182900da8d8bb4dbc2094bba70c61c293ed2a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /fyyJRDHcTe9REs4Ni_2.py | fa8d5a9f92273ccb98b5f5ce47ca0d2a51943ab1 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | """
Create a function that takes three arguments (first dictionary, second
dictionary, key) in order to:
1. Return the boolean `True` if both dictionaries have the same values for the same keys.
2. If the dictionaries don't match, return the string `"Not the same"`, or the string `"One's empty"` if only one of ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a46f2d6cf64fc5e807fb2b7418fddb89d2b4ca53 | 469e7ea421d40b16ea46aebdd82842eab91eb3fd | /galleryTddProject/gallery/admin.py | fcab762967a1e21c9a17e0aea1a6f1f2ffca1614 | [] | no_license | nathalia1096/KataRest | 5bec2dba7bac439a3c477de75bcb3a4b60029d3e | e34cd42d9bff3ef1de1e0dd543fcf5dbf916a74c | refs/heads/master | 2020-05-01T07:47:07.443928 | 2019-03-26T04:57:33 | 2019-03-26T04:57:33 | 177,359,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.contrib import admin
from .models import Image, Portfolio, UserProfile
# Register your models here.
admin.site.register(Image)
admin.site.register(Portfolio)
admin.site.register(UserProfile) | [
"nathalia.alvarez@globant.com"
] | nathalia.alvarez@globant.com |
74b45ad1bf32de78395b3bc6704098a560d4dad1 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/pytest-labs/mock_lab_1.py | 205cbdd5b5cb3ab89040e1c723b30e8800b68fc2 | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 413 | py | #!/usr/bin/env python2
#encoding: UTF-8
import mock
class Target(object):
def apply(value, are_you_sure):
if are_you_sure:
return value
else:
return None
def method(target, value):
return target.apply(value)
#pytest using mock.Mock() instance
def test_method():
tar... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
df84280a1f89716d7f5c89b3b84b9f4e5b006cfe | b9d2e6fe3f694b3a7ffc226e308066bcbf781f07 | /supporting_components/graph_io.py | f802256842d8720e449e94fc403103dfb9f16acc | [] | no_license | VeraPrinsen/isomorphisms | 82ccbc6038f48bb8d43aeb2314c14c973331d0df | e131fe6d7f982545255a7405dde44ae49ea027cd | refs/heads/master | 2020-04-25T16:06:49.500823 | 2019-04-08T13:45:48 | 2019-04-08T13:45:48 | 172,899,245 | 0 | 1 | null | 2019-04-08T13:45:49 | 2019-02-27T11:02:24 | Python | UTF-8 | Python | false | false | 8,089 | py | """
Includes functions for reading and writing graphs, in a very simple readable format.
"""
# Version: 30-01-2015, Paul Bonsma
# Version: 29-01-2017, Pieter Bos
# updated 30-01-2015: writeDOT also writes color information for edges.
# updated 2-2-2015: writeDOT can also write directed graphs.
# updated 5-2-2015: no b... | [
"vera.prinsen@nedap.com"
] | vera.prinsen@nedap.com |
ac5ab9f56988ecb664f89a097f82c4affa58d76b | 7b40412c35f5c68ea0f6b4c3b90a454d36e7e328 | /2/2.10.py | f6d7c71ae622346d24fe2924307187a51acdd56d | [] | no_license | VladKitTort/Michael_Dawson | f5085369b99c8da9cf6dbe1b652a4112a55ea9c8 | b8116ccd917379ac343ddd9e7a181cca0d6e52db | refs/heads/master | 2022-04-21T02:44:27.934620 | 2020-04-23T16:40:53 | 2020-04-23T16:40:53 | 257,879,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | # Бесполезные факты
#
# Узнает у пользователя его/ ее ичные данные и выдает несколько фактов
# о нем/ ней. Эти факты истинны, но совершенно бесполезны.
name = input("Привет. Как тебя зовут? ")
age = input("Сколько тебе лет? ")
age = int(age)
weight = int(input("Хорошо. И последний вопрос. Сколько в тебе килограммов? ... | [
"vovatortik@mail.ru"
] | vovatortik@mail.ru |
bfe5cbc0d0982f816c0f439ccfe312343bd3a6b6 | 5178f5aa20a857f8744fb959e8b246079c800c65 | /02_oop/tr/src/21_str/str_tr1.py | 28f1d95b840592e11cb603addacf54d232aacff2 | [] | no_license | murayama333/python2020 | 4c3f35a0d78426c96f0fbaed335f9a63227205da | 8afe367b8b42fcf9489fff1da1866e88f3af3b33 | refs/heads/master | 2021-05-19T04:03:46.295906 | 2021-03-09T22:23:58 | 2021-03-09T22:23:58 | 251,520,131 | 0 | 3 | null | 2020-10-26T01:20:09 | 2020-03-31T06:35:18 | Python | UTF-8 | Python | false | false | 113 | py | language = "python"
print(language.upper())
print(language.capitalize())
print(language.capitalize().swapcase())
| [
"murayama333@gmail.com"
] | murayama333@gmail.com |
be7503afcbfae63f32619f134faf846ec33a132d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/meetup/17857a6adde04647acc54269ab6ef4be.py | 84c22eae0a99b1a54a20f6aa508a6a593c16744c | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 750 | py | from collections import defaultdict
from datetime import date, timedelta
def meetup_day(year, month, day_name, date_type):
weekdays = ['Monday', 'Tuesday', 'Wednesday', 'Thursday',
'Friday', 'Saturday', 'Sunday']
operators = {
'1st': lambda x: x[0],
'2nd': lambda x: x[1],
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
58e41bee66689beee1a09e78b3d3e34bc752c268 | 5b6661638cfb31e40c1175e994dd1405701b2154 | /train/dataset.py | 3176f0a2477eae4674cbb2c9fd314d191a99e12a | [] | no_license | xiscosc/MasterThesis-anp-2016-dist | 5cc580e15358ac725450fe061c4d481fff4c1c27 | 8cb5e45773cf3e45154620747dab139bfd8a0229 | refs/heads/master | 2021-03-24T09:31:43.311499 | 2017-03-02T15:25:19 | 2017-03-02T15:25:19 | 78,958,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# 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 a... | [
"xiscosastre@gmail.com"
] | xiscosastre@gmail.com |
47d8e02e074f1b33228838b15e10ea23d3c6ee86 | 4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422 | /_0681_Next_Closest_Time.py | 6c11bbad0971087cef6f5ea28aee8b0e18f175eb | [] | no_license | mingweihe/leetcode | a2cfee0e004627b817a3c0321bb9c74128f8c1a7 | edff905f63ab95cdd40447b27a9c449c9cefec37 | refs/heads/master | 2021-06-19T07:46:46.897952 | 2021-05-02T05:13:17 | 2021-05-02T05:13:17 | 205,740,338 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | class Solution(object):
def nextClosestTime(self, time):
"""
:type time: str
:rtype: str
"""
def helper(start, cur, pool):
if start == 4:
left, right = cur[:2], cur[2:]
hour, minute = int(left), int(right)
if hour > ... | [
"hemingwei2017@gmail.com"
] | hemingwei2017@gmail.com |
c5b50c84a27561cd42e497c41900c80a6f77b56c | 30de452d89eacf48f61ceddfaff86aa62d505507 | /traits/observation/_i_notifier.py | 2b28ed8a676667350285c54a1f6916280271f97f | [
"BSD-3-Clause",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | odidev/traits | 92224376b5444a7a5f805b474f0aa53ac1ca7cd2 | 52f4d00248cec5dbf0826de4e846b4ad83cf072e | refs/heads/master | 2023-06-18T16:53:43.850534 | 2021-07-14T05:48:46 | 2021-07-14T05:48:46 | 388,075,888 | 0 | 0 | NOASSERTION | 2021-07-21T10:31:06 | 2021-07-21T10:11:23 | null | UTF-8 | Python | false | false | 1,620 | py | # (C) Copyright 2005-2021 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The license
# is also available online at... | [
"noreply@github.com"
] | odidev.noreply@github.com |
b50b800f11fcc41d535b71aa89115d03db004d5b | a2398c7582b0688f3598f25b0d2dae41dd3e8ee5 | /application.py | 40b82fcf11d946ea02e7ff4f8fa536b9c46ef1ca | [] | no_license | AhmedSYD/Geoweb-app | 4ebf6c92f831537dae01db35ddd2f493c076f80f | 3b215c6c57704550d1eebd37beb54e4c02a1b73f | refs/heads/main | 2023-03-11T12:59:58.281927 | 2021-02-27T19:29:03 | 2021-02-27T19:29:03 | 341,691,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | from flask import Flask, render_template, request
import requests
import datetime
app=Flask(__name__)
@app.route("/")
def search():
return render_template("building_permit_search.html", geocode="", date_value="01/01/2020 - 01/15/2020", initial_page=True)
@app.route("/search", methods=["POST","GET"])
def after_... | [
"ahmed@domain.com"
] | ahmed@domain.com |
20da8201bce240d8f32dd27916f1c50b8834eb34 | d3f8dddd55c921f17e68d21db97045d030fdcab8 | /duloi/django_app/duriann/apps.py | e6a476cb1bd9e64b8dad7f9f8f7b79d909e77e36 | [] | no_license | SoyarBeanery/Django-WebApp--Durian | 268bd6eb70ac047451b4ea62bfa3a800d8ac41f6 | 71dda4d991b737aa9029c6bdb2221684e47c1a22 | refs/heads/master | 2022-12-14T12:09:53.273520 | 2020-08-13T16:39:22 | 2020-08-13T16:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class DuriannConfig(AppConfig):
name = 'duriann'
| [
"yeoyeewen@gmail.com"
] | yeoyeewen@gmail.com |
7e5524657678ec0f5d9f1d4e42a104c60bda7e18 | 0d3b16041f49156b45a820c111af33f6b7f5ae90 | /StrangeMarket/settings.py | 4559e334ff04a6bf58779f8a8f3895afe5ec2da8 | [] | no_license | chuanzhangcyh/StrangeMarket | 0b504c032023a15955d8e383f136b1daa0d64bb6 | bd8e0bc9199b3420d6fa8973e28e6401bf1a38f8 | refs/heads/master | 2023-02-24T21:28:59.205924 | 2021-02-02T13:39:01 | 2021-02-02T13:39:01 | 335,293,333 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | """
Django settings for StrangeMarket project.
Generated by 'django-admin startproject' using Django 2.2.3.
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... | [
"1015223012@qq.com"
] | 1015223012@qq.com |
c6179f3cfacaf581c9ab187719af097876c7fa09 | b235e9b9b43c37aff321aee2319742d3ddeb9f15 | /trees/trees.py | a12ef82ae95ad67ae9568ac9a7c0464175c672fe | [] | no_license | hch001/ml | 9cb714a391834dab0f7e5ed54d79e41c1a6e65e5 | 5cced8ed9f3b01f0f2144a533b60e5c46a40ba9e | refs/heads/master | 2022-04-05T10:48:34.698215 | 2020-02-18T18:31:20 | 2020-02-18T18:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | # 决策树
import numpy as np
import matplotlib.pyplot as plt
import random
from math import log
def createDataSet():
dataSet = [['yes', 'yes', 'yes'],
['yes', 'yes', 'yes'],
['yes', 'no', 'no'],
['no', 'yes', 'no'],
['no', 'yes', 'no']]
labels = ['No sur... | [
"13959582448@163.com"
] | 13959582448@163.com |
80b408044a18397d5a1c2dca8ad7f9c7b4411008 | 0fb391112de0ceb363e9b15a5cf16848235fce2f | /semantic_adversarial_examples/main.py | 40d737a68f1cf20695d2385f4399cacc007292c4 | [] | no_license | sarathknv/adversarial-examples-pytorch | d0178b31902627b17c6bdbf537f62e435ac965c9 | 2979544963689d93c9af960e92975e93593c6ddd | refs/heads/master | 2023-05-10T04:38:50.857141 | 2023-04-24T20:15:46 | 2023-04-24T20:15:46 | 119,166,118 | 332 | 67 | null | null | null | null | UTF-8 | Python | false | false | 4,411 | py | import torch
import torch.backends
import torch.nn as nn
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
from tqdm import tqdm
import attacks
from models import ResNet50, VGG16
def validate(model, val_loader, device):
model.eval()
total_samples = 0
correct_pred = 0
... | [
"sarathknv@gmail.com"
] | sarathknv@gmail.com |
5984781a7bf3e925d29c995794955234adfb0a95 | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/simrouter.py | 02b3d8c591855440623aaa468cf1e02a2f4d36be | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,972 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
818f57f3b284ac9d0364a114f16772bdae2fa0e8 | 83e21dcd88961e01d7b6d76c1e7d3e0c405bb7a2 | /homeassistant/components/climate/velbus.py | ab8542541c8f7c14a6b70d86effd047f61f898f3 | [
"Apache-2.0"
] | permissive | skalavala/home-assistant | 0a61886a8e399d6c46bf791927a69557edfdebb3 | 66d6db7934db1af0c560ccffd92cf4a114ef5841 | refs/heads/dev | 2020-04-04T11:35:24.377362 | 2018-11-02T17:40:05 | 2018-11-02T17:40:05 | 155,896,654 | 3 | 1 | Apache-2.0 | 2018-11-02T17:00:10 | 2018-11-02T17:00:09 | null | UTF-8 | Python | false | false | 2,463 | py | """
Support for Velbus thermostat.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/climate.velbus/
"""
import logging
from homeassistant.components.climate import (
SUPPORT_OPERATION_MODE, SUPPORT_TARGET_TEMPERATURE, ClimateDevice)
from homeassistant.co... | [
"mail@fabian-affolter.ch"
] | mail@fabian-affolter.ch |
10e9fdf6a6b34922bef66358b5ff457a52a28977 | 1d0e36f710ed936d9bec3d88b69edd8a26b62823 | /examples/ble_uart_echo_client.py | ce36ac80691af1a7338da4730e0fbc2c9a45008c | [
"MIT"
] | permissive | dglaude/Adafruit_CircuitPython_BLE | c0336787bbf739ddad9d078eab4edc2a80530bd4 | e8f72b053af8cfcde0c07040a5f2feecd4ca585b | refs/heads/master | 2020-12-12T17:54:52.632742 | 2020-01-09T03:09:22 | 2020-01-14T23:18:46 | 234,190,805 | 0 | 0 | MIT | 2020-01-15T23:05:42 | 2020-01-15T23:05:41 | null | UTF-8 | Python | false | false | 1,086 | py | """
Used with ble_uart_echo_test.py. Transmits "echo" to the UARTService and receives it back.
"""
import time
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.nordic import UARTService
ble = BLERadio()
while True:
while ble.c... | [
"scott@tannewt.org"
] | scott@tannewt.org |
51feeb2b10797b3f8b8c6b3924db8cf6fb64b368 | 1ab2c6ddf07180297a233cc695a139b6219c1fa9 | /src/smartsave.py | 4cd20d82fcadcadd922bb083e328855ac29f9a54 | [] | no_license | Braden-H12345/sfa_scripts | 0510236c45f37958c8748e21178faebfbd26bfd1 | 7a1447c5034c64ea9424424388c08ea99f68ecd2 | refs/heads/main | 2023-04-10T05:33:54.954702 | 2021-05-03T05:19:54 | 2021-05-03T05:19:54 | 345,435,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,753 | py | import logging
from PySide2 import QtWidgets, QtCore
from shiboken2 import wrapInstance
import maya.OpenMayaUI as omui
import maya.cmds as cmds
import pymel.core as pmc
from pymel.core.system import Path
log = logging.getLogger(__name__)
def maya_main_window():
"""Return the maya main window widg... | [
"noreply@github.com"
] | Braden-H12345.noreply@github.com |
f7a3e04c75162a4f4da5a2f86f1e75c3d3bd0723 | 217c2e091dfbd35226507722b0c250188aa060f9 | /core/.ipynb_checkpoints/config-checkpoint.py | 27721f9c6e86eb8e8f08fd93c409f6524a8e882d | [] | no_license | raceychan/mydp | 65ef991073fec152bdc6c508dfe88540b247611e | 85db2741e3e4f2707a6c22f63e4b931e11af95b3 | refs/heads/master | 2023-06-26T05:03:36.500742 | 2021-07-30T09:55:47 | 2021-07-30T09:55:47 | 373,941,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | import pika
import ssl
from pika.connection import ConnectionParameters
from typing import Any, Dict, List, Optional, Union, Set
from pydantic import BaseSettings, AnyHttpUrl, EmailStr, HttpUrl, AnyUrl, PostgresDsn, validator
from pandas.core.frame import DataFrame
from pandas.core.series import Series
from core.util... | [
"raceychan@gmail.com"
] | raceychan@gmail.com |
9a2f58091a7f166b6979a7a70d9974314571ef65 | 2fbe7e67b0c58a4b15ca41fb077b96279da8575a | /djreact/backend/src/articles/models.py | e8979b89f93053df5d5404e7a8c0367ba2c3da96 | [] | no_license | Rahul255/Django | dd0fd663ddd424c68fe88f193219653010d4721b | 8d4e15a7ede6499ebbcb98dc4cf5f45c5e89748f | refs/heads/master | 2020-07-03T23:07:46.958097 | 2019-10-17T05:26:47 | 2019-10-17T05:26:47 | 202,081,444 | 0 | 0 | null | 2020-06-06T01:14:07 | 2019-08-13T06:42:36 | Python | UTF-8 | Python | false | false | 280 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=120)
content = models.TextField()
def __str__(self):
return self.title | [
"rahulmohan255@gmail.com"
] | rahulmohan255@gmail.com |
67c2f2197e27024fb004512324c888cf06f072a6 | 25a24ff7302040254a0baec244968591488567af | /archive-bioinformatics-2/bio2-wk2/bio2-wk2-3_read-pairs.py | 345f0ab456b7c59610011857fbb47c56addea6ff | [] | no_license | loibucket/biopy | 719dfb3c4623d17b2b07473bb7d0b517013c3d74 | f2490e0f90fcea44ce7daa3acbbc5b46215a7be2 | refs/heads/main | 2023-07-16T05:29:02.264495 | 2021-09-03T03:44:17 | 2021-09-03T03:44:17 | 370,835,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py |
def read_pairs(seq, k, d):
lst = []
for i in range(len(seq)-k-d-2):
b = i + k + d
lst.append("("+seq[i:(i+k)]+"|"+seq[b:(b+k)]+")")
lst.sort()
return("".join(lst))
if __name__ == "__main__":
seq = "TAATGCCATGGGATGTT"
k = 3
d = 2
print(read_pairs(seq, k, d))
| [
"loi@loico.us"
] | loi@loico.us |
5759a3994045c73ec308fd6d0a0209db7f485d10 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/328/74024/submittedfiles/testes.py | d9f0fad052a8e893b10ab6e61accf13576dfb507 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
a=5
print('%.2f'%a)
a=30
b=5
c=10
if a<b<c:
print('comando 1')
else:
if a<c<b:
print('comando 2')
else:
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
431d18182a5c2d9b0783fd03d183f557c1ba1743 | df20244e5822a428ce0fbb3eaf3cd32651f1c560 | /kgdb/jemalloc/jemalloc_utils.py | 9fa247d355f34c603ccfc643aa5181bb68279715 | [] | no_license | kongjiadongyuan/kgdb | f5e2541934a0dfcab610c85cf8971886cb9f6b14 | ff9bb5c9cf808346a792e8153dcbfe4cecadbf82 | refs/heads/master | 2020-05-22T16:06:13.067575 | 2019-09-12T06:32:32 | 2019-09-12T06:32:32 | 186,422,640 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | import struct
sztable = [0x8,
0x10,
0x20,
0x30,
0x40,
0x50,
0x60,
0x70,
0x80,
0xa0,
0xc0,
0xe0,
0x100,
0x140,
0x180,
0x1c0,
0x200,
... | [
"zhaggbl@foxmail.com"
] | zhaggbl@foxmail.com |
9bf5f51bb15906ebe54e8158ffa8d0e1abcdfd05 | 2f6817fc8f6ddb48f5f88c913d8e40b672fc3dbf | /MLP/quiz11-3.py | 331fe654ca3d83ef9ffd1dcf2ebdbcc9879d2b59 | [] | no_license | cutz-j/TodayILearned | 320b5774de68a0f4f68fda28a6a8b980097d6ada | 429b24e063283a0d752ccdfbff455abd30ba3859 | refs/heads/master | 2020-03-23T17:34:51.389065 | 2018-11-24T08:49:41 | 2018-11-24T08:49:41 | 141,865,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | ## Q13: K-means ##
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette_score
from scipy.spatial.distance import cdist, pdist
## 파일 전처리 ##
def file_open(file_name):
## file_open --> np.array ##
file_open = open(file_nam... | [
"cutz309@gmail.com"
] | cutz309@gmail.com |
509baa5595f18af9b6609d75c3eb70cd7f7b8834 | 1593d6393efb987b24e9e008c275725ff489bc95 | /dxm/lib/DxRuleset/DxRulesetList.py | 7281428ff08bc501d5ed1a98cab152eccb258957 | [
"Apache-2.0"
] | permissive | SLEEP1NG/dxm-toolkit | fedab63ac21305652f047ab51af7de090fdd8035 | 1c2aae49701da47c5932e3b7e67844bf8c3d0ccf | refs/heads/master | 2020-12-07T14:41:59.080025 | 2019-11-04T12:10:36 | 2019-11-04T12:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,579 | py | #
# 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
# distributed under ... | [
"marcin@delphix.com"
] | marcin@delphix.com |
90e081344e37878f7f20b3dfb85f48791ce8604c | 1fe4f9eb9b1d756ad17e1ff6585e8ee7af23903c | /saleor/store/migrations/0003_specialpage.py | 5f0354beda8b80442f5c4eb27b7a679dbb897729 | [
"BSD-3-Clause"
] | permissive | Chaoslecion123/Diver | ab762e7e6c8d235fdb89f6c958488cd9b7667fdf | 8c5c493701422eada49cbf95b0b0add08f1ea561 | refs/heads/master | 2022-02-23T10:43:03.946299 | 2019-10-19T23:39:47 | 2019-10-19T23:39:47 | 216,283,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Generated by Django 2.2 on 2019-04-17 02:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('site', '0022_auto_20190413_2016'),
('page', '0007_auto_20190225_0252'),
('store', '0002_socialnetwork'),
]... | [
"chaoslecion71@gmail.com"
] | chaoslecion71@gmail.com |
b634bfab4fdddbb7c17c5b058c3f608ba3c9fdd9 | 6489f80c1bc2c51f41c186c260a3370f899acd20 | /multi-objective/single_optimize.py | db38c7b383e1fdf0d775a84475fc0963ed41ddf8 | [] | no_license | Este1le/Auto-tuning | 16bc316359d97c3dfff0e41c5aad9a18122b7b25 | 856b6176af770b200897f56b7a46f6699402ef28 | refs/heads/master | 2020-04-13T21:27:57.516254 | 2019-09-16T17:19:07 | 2019-09-16T17:19:07 | 163,456,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | import argparse
import pickle
import numpy as np
from multiprocessing import Pool
import os.path
import sys
sys.path.insert(1, '/export/a08/xzhan138/Auto-tuning/multi-objective/regressor')
from gp import GP
from krr import KRR
from gbssl import GBSSL
from preprocess import extract_data
def get_args():
parser = arg... | [
"xuanzhang@jhu.edu"
] | xuanzhang@jhu.edu |
1e1eaa7a694586422bdc9da3b230971d98ace025 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/host_wwn_conflict_event.py | faa99ccf0a169abcf46f9c22e5db93ed38d7722e | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def HostWwnConflictEvent(vim, *args, **kwargs):
'''This event records a conflict of host ... | [
"jmb@pexip.com"
] | jmb@pexip.com |
f75d2596d24b3082ecc461a046ffea67c562c4b9 | 23f3ec824e4d429041f9362084f4f3be0e667732 | /src/org/bccvl/site/content/remotedataset.py | 4562b7f4883d96dac19500676febc96c7ebcb3b9 | [] | no_license | BCCVL/org.bccvl.site | 0c9aff6ccb53a42373ea5e1f3c713eae120a0db1 | d4b3a97571f5b03391ae4e33507cf84c7cef1864 | refs/heads/develop | 2021-01-24T08:21:18.402966 | 2019-11-10T23:25:53 | 2019-11-10T23:25:53 | 10,327,299 | 1 | 1 | null | 2019-01-14T22:52:31 | 2013-05-28T03:38:20 | Python | UTF-8 | Python | false | false | 268 | py | from plone.dexterity.content import Item
from zope.interface import implementer
from plone.app.contenttypes.interfaces import ILink
from org.bccvl.site.content.interfaces import IRemoteDataset
@implementer(IRemoteDataset, ILink)
class RemoteDataset(Item):
pass
| [
"g.weis@griffith.edu.au"
] | g.weis@griffith.edu.au |
6800ca74ab37fb17c3024e97b08a6a603cd06505 | 339b90853d4e9f349d53caf21b7029dbbf686bf2 | /env/bin/googlesamples-assistant-devicetool | c7dc98c0cba530cb5e39ccb4d17c3319a16a6e97 | [] | no_license | hogwart120/lbminh-bot-test | 60965ee34a48e084ab227c0c99ced93c7d34fbeb | 2611c8b8d7a8082809939e92f11b4042416993b9 | refs/heads/master | 2020-07-16T20:10:56.335412 | 2019-07-11T08:10:01 | 2019-07-11T08:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/pi/lbminh-bot/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from googlesamples.assistant.grpc.devicetool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"thangnd85@gmail.com"
] | thangnd85@gmail.com | |
aac3f6ca9c6c86ef2c98b8a092056fb26f469bbb | a1c0685a80e9a581fec9a88ff7655c639af6ffd6 | /15.py | d6787b62d04a64b22b65d3440e44b55d7e9add59 | [] | no_license | fguan/proj-euler | 734c8278b37949f979cdb197b80f95adc529a754 | 2486d6e5611326aa3f5385989a6e29bc05d71265 | refs/heads/master | 2020-06-06T10:16:31.361733 | 2014-09-03T05:11:55 | 2014-09-03T05:11:55 | 1,130,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | #!/usr/bin/python
"""
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner. How many such routes are there through a 20×20 grid?
https://projecteuler.net/problem=15
"""
gridSize = 20
a = [[0 for i in range(0,gridSize+1... | [
"frankgimpy@maozer.com"
] | frankgimpy@maozer.com |
29e85819a66211421e49b7d4ad844b7bfd1b732e | 8edc1db29ddde7ece88cb00c7467db4f5d9d4fe0 | /epinephrine.py | 9e9f6b94e7031558ef2b694fd869a7ad6a379e08 | [] | no_license | trevenen/nicotine | 59886c7e3e596ff673fdb84abcdccd1cca8e0646 | 40960bd3fba0f50eb364adda7fc59adeccd3e95e | refs/heads/master | 2020-06-23T02:37:33.346819 | 2019-07-09T14:51:17 | 2019-07-09T14:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | import vapor
from doctor import Doctor
class Epinephrine:
"""
Epinephrine automates
rollback in the event
of nicotine patch
allergic reaction.
Running nicotine in
deathwish mode disables
disables Epinephrine.
"""
def __init__(self):
respons... | [
"jonassteinberg1@gmail.com"
] | jonassteinberg1@gmail.com |
b9e9272f46c85f1ee025f3b870ae8ea0907eaeb0 | 70b9761fdcda427ea7a31c5ab60be202037936b7 | /correction/correction_model.py | ba695183cc0cbdbc318e4740f8cf4d08ac72b73f | [
"MIT"
] | permissive | CharlesRenyh/Erroneous-Old-German-Text-Correction | 9e4a82ed3daf3414b3a50ea8061ed8d3fa139ef5 | a9064a9ffe10a1a932369196df5bf60da3d9eeeb | refs/heads/master | 2020-08-27T12:28:40.310469 | 2020-05-10T15:56:56 | 2020-05-10T15:56:56 | 217,368,215 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,424 | py | import torch.nn as nn
from torch import Tensor
import torch
import torch.nn.functional as F
import torch.optim as optim
import random
class Encoder(nn.Module):
def __init__(self,
input_dim: int,
emb_dim: int,
enc_hid_dim: int,
dec_hid_dim: int,
... | [
"charlesren1996@gmail.com"
] | charlesren1996@gmail.com |
896b091738f2acb4cb61516a1011ed82b9907efb | a9b1debfd6de31175b84f6047ad7a294b888f843 | /accounts/DB_Transactions.py | 15451f2f401aec4529f1d37ed20375a2eb2b47c2 | [] | no_license | kajalsaphui/lenseploter | 79cf252498cdaf4d28c5b7f10493a5d5aa2eb823 | b172a5cfb98a0560b88a0bfc836f44da1948c50b | refs/heads/main | 2023-09-05T10:15:49.513539 | 2021-11-18T09:07:44 | 2021-11-18T09:07:44 | 429,358,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,089 | py | from . import DBUtils
from . import Defaults
def get_all_nodes():
Defaults.logger("Entering -> | get_all_nodes() |", level = "info")
try:
sql_query = "SELECT * FROM vrx_SFTS_node WHERE status = 1"
DBcontent = DBUtils.DB_Execute_MS(sql_query, "fetch")
print(DBcontent)
Defa... | [
"kajalsaphui@gkbrxlens.com"
] | kajalsaphui@gkbrxlens.com |
a6d0e40b80ef3766737c53fd361866048da25977 | 2e006071dbf60d6340fa26875a60629fa955b993 | /Ryo_Hosokawa/Ryo_Hosokawa/settings.py | b24442d83e31bc12d3640697fecbf87e7fa27aa4 | [] | no_license | 2018-miraikeitai-org/Return_JSON | 79757ac035905803a7bd12b5c91ca11d851334ca | a117b64f369c2ad98a389bcdc09d94753946f0ee | refs/heads/master | 2020-03-19T13:09:38.152887 | 2018-07-10T05:50:21 | 2018-07-10T05:50:21 | 136,564,415 | 0 | 1 | null | 2018-07-10T05:50:22 | 2018-06-08T04:01:02 | Python | UTF-8 | Python | false | false | 3,150 | py | """
Django settings for Ryo_Hosokawa project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import ... | [
"hosokawaryou@enPiT2016MBP-03noMacBook-Pro.local"
] | hosokawaryou@enPiT2016MBP-03noMacBook-Pro.local |
71270ecbc961e81071f0dae593762e82a27d8428 | 3d77b5892c11c89031d8ef01fb36b0f0a00dfa69 | /src/OpticalElements.py | 1fdb76ece045ecb665dd1ce010f09045ef00b846 | [
"MIT"
] | permissive | sbanik1/sheetTrap | 710748e56b25ef801a70b134012184c777fe760e | 287746bf33b41e7f1066e80ee12bd08f75b155bc | refs/heads/main | 2023-04-25T19:35:40.713942 | 2021-06-09T23:11:18 | 2021-06-09T23:11:18 | 323,198,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,408 | py | # -*- coding: utf-8 -*-
"""
This module contains all functions for response of optical elements.
Created on Wed May 22 12:15:23 2019
@author: Swarnav Banik
sbanik1@umd.edu
"""
import numpy as np
import numpy.fft as fourier
import scipy as scp
from PIL import Image
# %% Common Functions ####################... | [
"sbanik1@umd.edu"
] | sbanik1@umd.edu |
d1d3fffdb132de5d0a3663618f087eeb3caf28f7 | 6437a3a4a31ab9ad233d6b2d985beb50ed50de23 | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/simpy/test/test_timeout.py | 91e83c4c66e014e0b5c6321a306dd2e9a7bc7ae8 | [] | no_license | sreyemnayr/jss-lost-mode-app | 03ddc472decde3c17a11294d8ee48b02f83b71e7 | 3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa | refs/heads/master | 2021-05-02T08:50:10.580091 | 2018-02-08T20:32:29 | 2018-02-08T20:32:29 | 120,813,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,821 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"ryanmeyersweb@gmail.com"
] | ryanmeyersweb@gmail.com |
56e5ae923d642aadde49b7cf52f67bdf6d7e7f96 | 0572c88bc1e93a0b9bc8c7aa1f78888304f6b838 | /model_VC2.py | 238f739a076f522557031a31ce7125da43379da2 | [] | no_license | Chow549/Pytorch-CycleGAN-VC2 | c8044e7cb4b23493bd700a9969bddfb7b10db4c2 | 54320f322b122415d7792ca90d5aaf36e8070114 | refs/heads/master | 2020-07-04T17:01:35.290966 | 2019-08-14T03:49:33 | 2019-08-14T03:49:33 | 202,348,491 | 1 | 0 | null | 2019-08-14T12:42:19 | 2019-08-14T12:42:18 | null | UTF-8 | Python | false | false | 19,672 | py | import torch.nn as nn
import torch.nn.functional as F
import torch
import numpy as np
import pdb
class GLU(nn.Module):
def __init__(self):
super(GLU, self).__init__()
# Custom Implementation because the Voice Conversion Cycle GAN
# paper assumes GLU won't reduce the dimension of tensor by ... | [
"kevintai0304@gmail.com"
] | kevintai0304@gmail.com |
99f018bf90917d21408c07b6e353157c8c6f52a9 | 94aee27fff524c450148dafa2972a727df232498 | /CurrencyAr.py | 08222bc4c977874ed6fd715e92dc932dd3453137 | [] | no_license | aisonet/Solution | 016c69ad130cf1250c788dce6afcd47e4ffd2ae9 | c21bcc9e000ea5520b11494ec50c9b7951737ef6 | refs/heads/master | 2021-01-22T09:48:24.837704 | 2018-02-22T17:15:32 | 2018-02-22T17:15:32 | 81,965,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py |
def arbitrage(quotes):
finaList=[]
for items in quotes:
#print items
primary=100000
for num in items.split(' '):
#print num
primary=primary/float(num)
# finalResult=primary/float(num)
# finalResult/float(num)
#print primary
... | [
"aisonet@yahoo.com"
] | aisonet@yahoo.com |
d4a34ee20df7bcfc81d4f08d997084a701fe6793 | 6ea84a1ee3f08cc0e2c50b452ccda0469dda0b6c | /projectLimat/manage.py | 5ce2506a4a3d51b3e6927ce569073b28003bf100 | [] | no_license | frestea09/django_note | b818d9d95f2f1e43ba47f8f2168bc5980d5da1f7 | b8d1e41a450f5c452afd36319779740bed874caa | refs/heads/master | 2020-11-24T03:54:00.000949 | 2020-01-01T06:50:12 | 2020-01-01T06:50:12 | 227,950,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'projectLimat.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
e23e69e261aa9dd07bd77ac5f0e689626045a644 | 9742b6b4297927a47bcaba3d119730065723fd69 | /django/rest/drf的分页,缓存,过滤的实现/api/migrations/0001_initial.py | 473ebfae83812b1b502841e3f4a769f690986e6b | [
"Apache-2.0"
] | permissive | mrg1995/my_note | bd2ce553737e0324fd1d6276f3024219a7937563 | df3c80b048718320b389b4ca8bd8a6b97b838b5a | refs/heads/master | 2020-04-15T11:58:59.764034 | 2019-03-01T14:30:39 | 2019-03-01T14:30:39 | 164,654,506 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-21 14:40
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 = [
migrations... | [
"38936538+mrg1995@users.noreply.github.com"
] | 38936538+mrg1995@users.noreply.github.com |
4a47fffa44259b959487191994bc1233b3491c11 | 4f75cc33b4d65d5e4b054fc35b831a388a46c896 | /.history/app_20210903124401.py | 2579fc4075f93959be51f7bd4b7d23610331e820 | [] | no_license | Lr-2002/newpage | c3fe2acc451e24f6408996ea1271c61c321de702 | c589ad974e7100aa9b1c2ccc095a959ff68069b6 | refs/heads/main | 2023-09-03T06:13:53.428236 | 2021-11-23T10:41:21 | 2021-11-23T10:41:21 | 402,606,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | from flask import Flask ,render_template,url_for
from flask_sqlalchemy import
app = Flask(__name__)
name = 'Grey Li'
movies = [
{'title': 'My Neighbor Totoro', 'year': '1988'},
{'title': 'Dead Poets Society', 'year': '1989'},
{'title': 'A Perfect World', 'year': '1993'},
{'title': 'Leon', 'year': '1... | [
"2629651228@qq.com"
] | 2629651228@qq.com |
8b5d4352186d89264215e37706a1f8423f823c3a | 12bbad1cb13fe7bc244dd100f4c724feab818fe1 | /backups/edge.py | 66b39145dd873384c446614f4c04247048bbc164 | [] | no_license | gkahl/nimble_hub | 4f0625fcd06f208cc33d0520b06b30dd7ecc9589 | 5d4c2fab3b30f385727641eb92a72771cb45d4e8 | refs/heads/master | 2020-05-04T18:33:05.760430 | 2020-04-21T23:08:21 | 2020-04-21T23:08:21 | 179,357,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | import pyrealsense2 as rs
import sys
import numpy as np
import cv2
np.set_printoptions(threshold=sys.maxsize)
# Configure depth and color streams
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.b... | [
"gkahl@gwu.edu"
] | gkahl@gwu.edu |
f4e6f2a11be9b1c9b26e680848c56ec23e147339 | e78154abbb8bacf5afccda9da371684cbeabad36 | /popego/popserver/build/lib/popserver/tests/agents/test_lastfm.py | 96e4e5360546f9480b42ef1450462b3d3a5daae1 | [
"BSD-3-Clause"
] | permissive | enterstudio/popego | 1a196fabc374c0f45764e5c74bd7752236424040 | 2d09e793d9d2f297139edb325b8a70ddda9b2705 | refs/heads/master | 2021-04-09T16:39:40.781634 | 2016-10-14T16:53:47 | 2016-10-14T16:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,723 | py | # -*- coding: utf-8 -*-
__docformat__='restructuredtext'
from popserver.tests.nodb_model import *
from popserver.tests import *
from fixture import DataTestCase
from popserver.tests import popfixtures
from popserver.agents.lastfm_agent import LastFmAgent
from popserver.agents.lastfm_client import LastFMClient
import p... | [
"santisiri@gmail.com"
] | santisiri@gmail.com |
df139b3c52f395b49ec0f3d292707431c92ddc85 | 7c89a5137839646e7a458f530fdd5315eb371480 | /netmeds/settings.py | f2af58926cfae922d1b9fcf526c2e3ee49d4d617 | [] | no_license | himanshupc11/netmedical | c0588c1113880627c4013e2f3f61dd7be5d1c2d0 | 71dea310f0aebebbb1210f8d684426c894e6c28f | refs/heads/main | 2023-01-05T22:24:53.299113 | 2020-10-31T15:58:28 | 2020-10-31T15:58:28 | 308,917,688 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,584 | py | """
Django settings for netmeds project.
Generated by 'django-admin startproject' using Django 3.1.
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 i... | [
"himanshuchhatpar@gmail.com"
] | himanshuchhatpar@gmail.com |
acf902bf1f5deb602370a46b4322225c30df8dd2 | d8f436e02ad3b0d6a99006ee0cb85b68f0deedcb | /api/urls.py | ae3531f374928c7296e854621a0d6ab66739d6a1 | [] | no_license | m0hit1712/PincodeApi | 7cabb29c3b4e954c4806f9bf161b594baff20ac7 | b9dd3368f01437dca58c31fced906eb6816d8c07 | refs/heads/main | 2023-02-15T08:24:16.819802 | 2021-01-11T12:51:15 | 2021-01-11T12:51:15 | 325,280,340 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('getpincode/<str:state>/<str:district>/<str:taluk>', views.GetPinCode.as_view(), name="pincode_url"),
path('getstates/<str:country>', views.GetDistricts.as_view(), name="state_url"),
path('getdistricts/<str:state>', ... | [
"mohit.patidar1503@gmail.com"
] | mohit.patidar1503@gmail.com |
021445b9bdf634afaf800add0b93f940291238f7 | 25420a17e4202a13cc7a896513bde1c042e1f545 | /repository/declaratie_firma_repository.py | 2c153c05cc6cb45f724399d5e485a3926db15246 | [] | no_license | lzradrian/practicaServer | 6ae74f3909f84769dad253aec2bdb0cda1e470f9 | 650e921af6267ce1b7da20f6f694864a483be0c9 | refs/heads/master | 2023-03-05T22:02:38.627131 | 2021-02-13T08:03:13 | 2021-02-13T08:03:13 | 321,683,575 | 0 | 0 | null | 2021-02-13T08:03:14 | 2020-12-15T13:56:18 | Python | UTF-8 | Python | false | false | 1,226 | py | class DeclaratieFirmaRepository:
def getAll(self):
from domain.declaratie_firma import DeclaratieFirma
declaratii = DeclaratieFirma.query.all()
return declaratii
def getOne(self, id):
from domain.declaratie_firma import DeclaratieFirma
declaratie = DeclaratieFirma.query.... | [
"dombinorbert1@gmail.com"
] | dombinorbert1@gmail.com |
35ba48508ec9ca4b040084ea5c9dba817fda7374 | 6163d256743eca49df4a17cbd8ecbde59f098929 | /base/number.py | 30dc3b168f4259bef334bb9052b7f2c910f34015 | [] | no_license | splaiser/newbie | 7220709668038c452eac080a26f6a9b73b3f17d0 | 8b4d3125b8b599dbefbd822cd4b838ed9d0b3906 | refs/heads/master | 2023-06-18T05:14:48.704480 | 2021-07-16T07:20:04 | 2021-07-16T07:20:04 | 375,288,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | numbers = [1,2,3,4,5,6,7,8,9]
for n in numbers:
if n == 1:
print(f"1st")
elif n == 2:
print(f"2nd")
elif n == 3:
print(f"3rd")
else:
print(f'{n}th') | [
"76589075+splaiser@users.noreply.github.com"
] | 76589075+splaiser@users.noreply.github.com |
6c0d1cac4f7d4207631446b5ea39072ab40066dd | 18319a52cce2b3f3a3607a18f45cbd5933ad8e31 | /venv/Lib/site-packages/bottle_sqlite.py | f568b58a6389cfdd11c1b2072cadb07f55fc79a2 | [] | no_license | AmithRajMP/Web-Tech-Assignment--2- | 8d9e56ef6bd302661654e32182964b9fe5644801 | ec7f410868f8936199bec19f01fce4ad6e081e79 | refs/heads/master | 2020-03-18T01:54:46.662732 | 2018-09-16T11:06:04 | 2018-09-16T11:06:04 | 134,165,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,833 | py | '''
Bottle-sqlite is a plugin that integrates SQLite3 with your Bottle
application. It automatically connects to a database at the beginning of a
request, passes the database handle to the route callback and closes the
connection afterwards.
To automatically detect routes that need a database connection, the plu... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
2d35c9f7b2714f22110dcc242119d77931b4acad | 2d574bbff00fa4cb5204eeeb212b2afb48416254 | /Services/emailService.py | a55c924791bed6d71569beedd770b9d548f22980 | [
"MIT"
] | permissive | prodProject/WorkkerAndConsumerServer | 966a32502297d808e9f217d05170aaacac6731ca | 95496f026109279c9891e08af46040c7b9487c81 | refs/heads/master | 2020-06-25T09:34:47.517054 | 2020-01-31T10:00:42 | 2020-01-31T10:00:42 | 199,272,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from SendGridEmail.sendEmailFromSendgrid import SendMail
class EmailService:
m_service = SendMail()
def send(self,emailbuilder):
assert emailbuilder is not None, "Email Cannot be empty"
self.m_service.start(emailBuilder=emailbuilder)
return self.m_service.done()
| [
"prod.projectmanager@gmail.com"
] | prod.projectmanager@gmail.com |
98f30963f232673487c80b4cda9c2952e3a798d9 | 3eea5c57c8dd8660d8d3adfca7260e9c1ff1316a | /test-backup.py | d7d96136dea7d599c6fa6f4ace9f42872e4ec9df | [] | no_license | fergieis/Networks | 4cc8dac4afdf16184857bf586c1ca0693dc43e57 | 32eb99ee6946d604ca7d483c000f25922bcafc7d | refs/heads/master | 2021-01-21T14:01:44.881478 | 2016-05-23T13:41:01 | 2016-05-23T13:41:01 | 55,792,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | from __future__ import division
import pandas as pd
import numpy as np
from gurobipy import *
#from pulp import *
from datetime import date, datetime
def date2t(curr_date):
start_date = date(2016, 2, 1) #Iowa Caucus
diff = datetime.utcfromtimestamp(curr_date)-start_date
diff = 2 * diff.days + diff.seconds//43200... | [
"fergieis@yahoo.com"
] | fergieis@yahoo.com |
dee8a6fa242eaa17b94d0e6b419c56fdcdd8f742 | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/powercalc/power_profile/power_profile.py | 666c4af626a6097f47d1c1015b83eeac17df2eda | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 13,870 | py | from __future__ import annotations
import json
import logging
import os
import re
from typing import NamedTuple, Protocol
from awesomeversion.awesomeversion import AwesomeVersion
from homeassistant.const import __version__ as HA_VERSION # noqa
if AwesomeVersion(HA_VERSION) >= AwesomeVersion("2023.8.0"):
from en... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
75c820733cf2b1a079d76c667405b60d94ccd650 | 165e000e5b37b7f4fad637e170e153c6d87498e7 | /game.py | 5b31054fadbae3610ed9e9e5ef26520748045033 | [
"MIT"
] | permissive | javid-aliyev/balls-game | b40a88398ee0eb03cd179f59a285068b8f361b15 | cc74056e992ce4f88a0ab71600da1447f502b0ef | refs/heads/master | 2022-11-14T11:25:01.107504 | 2020-07-11T13:48:10 | 2020-07-11T13:48:10 | 278,865,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | import pygame
from pygame.locals import *
# Init pygame, define some constants and global variables
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
size = (600, 600) # width & height of the window
background = WHITE
screen = pygame.display.set_mode(size)
pygame.disp... | [
"lorderer12@gmail.com"
] | lorderer12@gmail.com |
7a5e780f3f3d6c46aa2f1a0d9a5af14ad5652bd5 | faf73941d7521ce3654cdd30bb74a2d66d2268bf | /avg2.py | dc73a47ea98768508dda6ec53ffd590a9bb613b7 | [] | no_license | lovemalus/Python | b8429ca141d81fb39861ba9af9d46b73750f3740 | 753aee9227d77836b709a26fd85e8db60bf33728 | refs/heads/master | 2022-02-21T15:12:50.799650 | 2019-10-04T04:10:54 | 2019-10-04T04:10:54 | 93,481,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def avg_com(numlist):
num_sum=0
for i in range(0,len(numlist)):
num_sum=num_sum+numlist[i]
avg=num_sum/len(numlist)
return
#################################
a=[10,15,20,35]
print avg_com(a)
| [
"popenging@gmail.com"
] | popenging@gmail.com |
37dd9e9f28c87fe2ffc64cf8d982011f7a3854ad | 7ca63f2778faa22d0d3043b87d1eaedac6cdfe62 | /generateMusic.py | edccc4368bb846095f5c1401e9f6a8f2432ebc7d | [] | no_license | justineDelo/generate-clips | cb333136f652f4fef3c6a2512a43610b74b6e0a2 | ee127210dd03d3882acec5cf4faaff05dd398a59 | refs/heads/master | 2021-06-27T02:56:53.499440 | 2017-09-13T15:34:55 | 2017-09-13T15:34:55 | 103,270,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,549 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 8 09:57:38 2017
@author: justine
"""
import matplotlib.pyplot as plt
import inception
import os
import generation
import extractionImages
import moviepy.editor as mp
import shutil
import numpy as np
import features
def featuresImages(path, image... | [
"ju.nyc@hotmail.fr"
] | ju.nyc@hotmail.fr |
65f82aa6bff2df68e83b88de5c9a6c2f55297b8c | 5f23d8e91ca941749a6127d35a2d0194512d2987 | /daemon.py | fa7a20ed12ff3d3ce9d4b632dbdc5b55c2374ed0 | [] | no_license | cmal/sc2mafia-server | 7ea52d1293929a6044bb97eea2866c2feb00e81d | ad48674576d0e675dc0aacf59a393a5d0f9c6a7d | refs/heads/master | 2016-09-05T15:49:24.425225 | 2015-07-30T02:24:35 | 2015-07-30T02:24:35 | 39,053,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This is the Twisted Fast Poetry Server, version 2.0
from twisted.application import internet, service
# import these classes from another module.
from server.server import GameServerProtocol, GameServerFactory, GameServerService
import sys
reload(sys)
sys.setdefaultenco... | [
"zyzy5730@163.com"
] | zyzy5730@163.com |
f06e381bb59634a56edccfa28b2c65ece1dd503f | 0cc075bb2b1c30c257dc5eafa1e309ee9f5bfadc | /tests/__init__.py | ebd6f8d11eadd944b39f2ea50e1f67c0fadf85b2 | [] | no_license | gcaaa31928/BusTrackerTaipeiAppiumTesting | d2f49e39db41b9507d8f05338defed7c72f3e456 | 1363ca72e10369affd4397223d150556b9172995 | refs/heads/master | 2021-01-21T14:48:32.558734 | 2016-06-21T19:24:39 | 2016-06-21T19:24:39 | 57,986,263 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from . import test_basic
from . import test_app
from . import test_nearby_page
from . import test_nearby_page_stations
from .import test_nearby_page_info
| [
"gcaaa31928@gmail.com"
] | gcaaa31928@gmail.com |
b78dfb29942edd235434f9bf380f779d177759f5 | 06ad345f69a2f91b5c5a730bb4943f04cba93a44 | /Pygame/08_functions_and_graphics.py | 17721ec3ef30096ed81712cd5443420abe7f5daf | [] | no_license | whyj107/Python | 61bd58d202350616a322b7b75086976f354bda9b | 3c3649ca8c6ac6908ac14d6af201d508cc4fbf30 | refs/heads/master | 2021-04-13T23:49:13.470657 | 2021-03-27T10:08:39 | 2021-03-27T10:08:39 | 249,195,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | """
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
Explanation video: http://youtu.be/_XdrKSDmzqA
"""
# Import a library of functions called 'pygame'
import pygame
def draw_snowman(screen, x, y):
""" --- Function for a sno... | [
"60024292+whyj107@users.noreply.github.com"
] | 60024292+whyj107@users.noreply.github.com |
561731fc6b914f26baf217c96c44b1883875dc25 | 1cc62f70e1a1887a8bdecc074145cbf5e5e218b6 | /tools/logger.py | bcc7ff4a7086aca359bc6adc78d2fb4ed46a96ca | [
"Apache-2.0"
] | permissive | yeongjoonJu/CFR-GAN | 259707f0f3c1a37fa095456af78829a181170430 | 04445dc96db48322b1de62cffb57084bacf64746 | refs/heads/main | 2023-04-10T06:55:02.652315 | 2022-12-19T11:52:11 | 2022-12-19T11:52:11 | 399,314,005 | 69 | 5 | null | 2022-07-02T12:37:57 | 2021-08-24T02:46:48 | Python | UTF-8 | Python | false | false | 2,391 | py | import random
import torch
from torch.utils.tensorboard import SummaryWriter
class CFRLogger(SummaryWriter):
def __init__(self, logdir):
super(CFRLogger, self).__init__(logdir)
def log_training(self, loss_D, loss_GAN, loss_mask, loss_per, loss_rec, loss_id, iteration):
self.add_scalars('GA... | [
"yj_ju@korea.ac.kr"
] | yj_ju@korea.ac.kr |
bb17249026c1deae0e141b080a7df93e3e2fe247 | 9238145bf991752d0542dc2679ca7c9af654047b | /find_largest_value_in_each_row_of_binary_tree.py | d441958f8c598a1cdc13299216839373f488f5e5 | [] | no_license | jaijaish98/ProblemSolving | d048a6168c50b3eaeec71be2e304c7aab2471258 | 3cdcba9c03b5951772f6ab72ef167a65febf1ee4 | refs/heads/master | 2023-08-08T10:08:43.908063 | 2023-07-26T05:32:24 | 2023-07-26T05:32:24 | 262,354,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | """
Find Largest Value in Each Tree Row
You need to find the largest value in each row of a binary tree.
Example:
Input:
1
/ \
3 2
/ \ \
5 3 9
Output: [1, 3, 9]
"""
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=... | [
"jaijaish98@gmail.com"
] | jaijaish98@gmail.com |
439c27a07c967dc15b31ec00920d5bb929649a72 | 7760b42452360c7f6dded6168076d4b7691657c7 | /aaaaa.py | f3d63417ce6cfad310649ed13e0901de0b13c24e | [] | no_license | camis789/gatinho | a44c98f081b8078e6751e75b18559d2829ed5eea | 4f2bdc1bdf85414e6fcafe4d1c7b41c21d095702 | refs/heads/master | 2020-09-11T12:11:57.026424 | 2019-11-16T06:56:19 | 2019-11-16T06:56:19 | 222,059,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | a = input ('Nossa olha só, que pedaço de mal caminho, fala teu nome aí safado')
if a == 'Echter' or 'Henrique':
print ('olá gatinho, cola aqui lexk pra eu te falar uma parada')
else:
print ('Try again')
b = input ('Você me ama?')
if b == 'sim' or 'Sim':
print ('então deixa eu continuar')
else:
prin... | [
"camila-caxambu@hotmail.com"
] | camila-caxambu@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.