blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
201776c5e0e6919d311da86f24aec57b1984a584 | f1fd82d3d9d19f171c5ac83fef418f7584b1beba | /server.py | 59a5448d2019def2bbcf9a8baa932b4c0bb195f7 | [] | no_license | adinahhh/ratings | 5fc39ac6994f342485a52cf7200322632128d0c7 | 431b713343f14f2f98d63b4fbe4731777716bf74 | refs/heads/master | 2023-02-08T14:36:04.883882 | 2020-02-25T22:31:16 | 2020-02-25T22:31:16 | 242,199,940 | 0 | 0 | null | 2023-02-02T05:14:01 | 2020-02-21T17:59:07 | Python | UTF-8 | Python | false | false | 4,239 | py | """Movie Ratings."""
from jinja2 import StrictUndefined
from flask import (Flask, render_template, redirect, request, flash,
session)
from flask_debugtoolbar import DebugToolbarExtension
from model import User, Rating, Movie, connect_to_db, db
app = Flask(__name__)
# Required to use Flask sessi... | [
"you@example.com"
] | you@example.com |
1ce162cc9c4c7b2a8e3e2d3c51ddee5af66e3eda | f5122a2b1ea6d97efee1922c6ff2388ad65ba103 | /train.py | 8463f3cf50ce26e73f8cbe2fe611e996c808a85a | [
"MIT"
] | permissive | djycn/faster-rcnn-implemented-with-torchvision | a799b1c2ec5254cbb343ebc62d30b6d236e7e8c2 | 462c887c4b4c13ea11d5208b2e296cab4a6af103 | refs/heads/master | 2020-11-30T20:05:21.999991 | 2020-01-03T11:39:00 | 2020-01-03T11:39:00 | 230,468,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,089 | py | import pdb
import time
import tqdm
from torch import nn
from model import *
import argparse
from datasets import *
import math
import cv2 as cv
from test import evaluate
# load a pre-trained model for classification and return
# only the features
vgg16_path = 'models/vgg16-397923af.pth'
resnet_path = 'models/resnet50-... | [
"noreply@github.com"
] | noreply@github.com |
ffcf4a4dad0f3655f1d293e4260edaf29d8b414e | ea52444f2bc191e75df1b57f7c27d160856be8c4 | /sigma-girl-MIIRL/run_clustering_all_starcraft.py | 60ce655eb42df63748ce91b205bef53e84fa161c | [] | no_license | LeftAsAnExercise/task1-irl | e00500b50fcd4dcb0f3acaad12b86d8fce67780d | f26e8c71e60e2316a8864cfe18db631c75b6ca78 | refs/heads/master | 2023-08-16T07:44:20.433038 | 2021-10-17T18:26:54 | 2021-10-17T18:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,045 | py | import numpy as np
from utils import compute_gradient, load_policy, estimate_distribution_params
from run_clustering import em_clustering
import argparse
import pickle
# Directories where the agent policies, trajectories and gradients (if already calcualted) are stored
# To add agents populate this dictionary and stor... | [
"daniellawson9999@gmail.com"
] | daniellawson9999@gmail.com |
d121a7e8116d5670e11fc3569f35b37548e05ae9 | d130ecdad016d67a37352a7a197541c551777f92 | /backend/Django/accounts/serializers.py | cca165b1281e88df8ed5a8404ce3a01effe2cd04 | [] | no_license | starseek34/DailyTown | bf8002b129c45779c63f597baa24e1b8f3ceffbc | 291ec9e7304772769be7bf52ca8511791485bffe | refs/heads/master | 2023-01-21T02:23:27.401997 | 2020-11-27T04:08:03 | 2020-11-27T04:08:03 | 317,761,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | from rest_framework import serializers
from rest_framework_jwt.settings import api_settings
from django.contrib.auth import get_user_model, authenticate
from django.contrib.auth.models import update_last_login
from items.serializers import ItemSerializer
from missions.serializers import MissionSerializer
from .models ... | [
"eight34@naver.com"
] | eight34@naver.com |
14177ee641c305a6c2f88dc3153b0b7f6104039d | f0db4c4985212bf2d487685f112d04b0ef4bb3b3 | /util.py | e95e647fe5e8c2f579d0b44cd0e5270d1cc74c87 | [] | no_license | mumrah/ec2mpi | 749f9ba3ea09e3c1165a2644d76b257c63670ddd | 45af838c71eff68f750e45f7e859d660adafa55d | refs/heads/master | 2018-12-28T05:01:51.847580 | 2009-06-04T06:58:44 | 2009-06-04T06:58:44 | 198,057 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | import M2Crypto
from tempfile import NamedTemporaryFile
import paramiko
import urllib
import urllib2
import inspect
import boto.sdb.connection
from config import *
OPTIONS_VALUE = 0
OPTIONS_IDX = 1
# General Helper Functions
def choose(options,message,return_type=OPTIONS_VALUE):
"""
UI H... | [
"mumrah@gmail.com"
] | mumrah@gmail.com |
6d4d8b39c026cbc8a36386be16ebb9cf0fb9303e | ca23b411c8a046e98f64b81f6cba9e47783d2584 | /es_maml/es_maml_client.py | 5e5072cbf16140c4d8f5c902889462a222cc20a7 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pdybczak/google-research | 1fb370a6aa4820a42a5d417a1915687a00613f9c | 0714e9a5a3934d922c0b9dd017943a8e511eb5bc | refs/heads/master | 2023-03-05T23:16:11.246574 | 2021-01-04T11:30:28 | 2021-01-04T11:30:28 | 326,629,357 | 1 | 0 | Apache-2.0 | 2021-02-01T12:39:09 | 2021-01-04T09:17:36 | Jupyter Notebook | UTF-8 | Python | false | false | 4,320 | py | # coding=utf-8
# Copyright 2020 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 |
f1ee15bddbd470f45f3cbca8aebf25a5b4196cfd | 4576ae7f7ed2af6aaefc68bd08d9e94781162ec3 | /Messaging.py | 0061a0f91c297a5e91ae045523e8fbf959e64e6d | [] | no_license | KairiL/messaging | 37863e6220926f85ba36911defb6859948182b72 | 6b919052aedfa777aaa8462bcad6bd92d4f356c0 | refs/heads/master | 2021-09-03T09:14:24.993138 | 2018-01-08T00:45:50 | 2018-01-08T00:45:50 | 115,835,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,800 | py | import json
import pprint
from datetime import datetime
Guests = json.load(open('Guests.json'))
Companies = json.load((open('Companies.json')))
Templates = json.load((open('Templates.json')))
def is_yes(word):
return word.lower() in ['y', 'ye', 'yes', 'yea', 'ya']
def is_int(s):
try:
int(s)
... | [
"lassa005@umn.edu"
] | lassa005@umn.edu |
839694ce63e2b101bc8a70244513e7ecd986f067 | df789505c99974c0ba45adc57e52fc7865ff2a28 | /class_system/src/services/admin_service.py | c21e20a9d7b6c4e87f806b41d0643eea93644496 | [] | no_license | zhiwenwei/python | 6fc231e47a9fbb555efa287ac121546e07b70f06 | 76d267e68f762ee9d7706e1800f160929544a0a3 | refs/heads/master | 2021-01-20T04:21:44.825752 | 2018-12-19T06:20:10 | 2018-12-19T06:20:10 | 89,676,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | #-*- coding:utf-8 -*-
#Author:Kevin
import sys,os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) #添加环境变量
from models import School
def create_school():#创建学校
# try:
name = input("请输入学校名字")
addr = input("请输入学校地址:")
school_name_list = [(obj.name,obj.addr) for obj in School.ge... | [
"ddzhiwenwei@163.com"
] | ddzhiwenwei@163.com |
9bcebc6b0bc70d4e0b0e9132a6636f91354a717e | 167e0bc3a8950e340eb6a99cf110acf50b54498b | /library_management/settings.py | 7923de65022696ac392606defbe9bde5162c9dd3 | [] | no_license | esfandiaryfard/library_management | 692f8dd522435b794c5ea5c03b5aeb8e548e0f27 | ce731c9e9750571c78b467020a399d820272936e | refs/heads/master | 2022-06-02T21:18:47.593622 | 2019-07-10T08:24:23 | 2019-07-10T08:24:23 | 195,993,252 | 1 | 0 | null | 2022-04-22T21:43:46 | 2019-07-09T11:14:27 | Python | UTF-8 | Python | false | false | 3,496 | py | """
Django settings for library_management 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/
"""
i... | [
"anita.kntu@gmail.com"
] | anita.kntu@gmail.com |
3df17cdbf0160778d54fac13b7233848d68544cd | d2ba03e1745e924eea58c3284440d708d3fa01d3 | /src/GUI.py | 64c639e19487b9bdfc55add87718d8e6f35d957b | [] | no_license | samhowes/Downloader | 7e96117fbc5295b701687e9ce21f9065d56c958e | f72bad14cfce2d5cfa3b3d708d3e8b4623dee4e1 | refs/heads/master | 2020-12-31T07:32:28.160401 | 2014-01-21T18:05:09 | 2014-01-21T18:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | from tkinter import *
#from tkinter import Frame, Label, Button, TOP, YES, BOTH, S, DISABLED, NORMAL, END
from tkinter.scrolledtext import ScrolledText
from queue import Queue
import queue
#imports from this project
import GUITools
if __name__ != '__main__':
from DownloadUtilities import DownloadMaster
#testing impor... | [
"showes06@gmail.com"
] | showes06@gmail.com |
bad6e7a12c3afbf4ef740105e4d701cd74495eb4 | 611a556ff5447d305343e5991ca0c0ad3bff8469 | /bouncer/cli/__init__.py | 20f2526df6ca91588b753b5572c0d43daccf41f7 | [
"MIT"
] | permissive | lrnt/git-bouncer | 5817ed6de10dc1a72ede0739f62fbb91de71dd14 | 3015e11a5d2c90986124de73bf1fd0f5a8563360 | refs/heads/master | 2020-06-21T17:55:06.316318 | 2016-11-29T21:13:03 | 2016-11-29T21:13:03 | 74,777,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from bouncer.cli.base import SubParser
from bouncer.cli.bounce import BounceCommand
from bouncer.cli.user import UserCommand
from bouncer.cli.repo import RepoCommand
def main():
SubParser([
BounceCommand(),
UserCommand(),
RepoCommand()
]).run()
if __name__ == '__main__':
main()
| [
"laurent@demarez.org"
] | laurent@demarez.org |
1186f9f752f968763ad57b914d3ed8a9da26cd52 | fc28f1c83dd882d2a26c5626ae37577b0f1e4698 | /rango/migrations/0005_userprofile.py | df79bb20b1add152a72a716dbd1a5edea7db245c | [] | no_license | YueeLiuu/tango_with_django_project | 3af8660a2f3fe78fce37d11649cc21ea40901f76 | df6a0d16e1ec84bacb63410ef171bfccce6bf1d8 | refs/heads/master | 2023-07-16T15:26:58.997250 | 2021-07-30T15:10:39 | 2021-07-30T15:10:39 | 389,592,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | # Generated by Django 2.1.5 on 2021-07-30 12:03
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),
('rango', '0004_auto_20210... | [
"2261464l@student.gla.ac.uk"
] | 2261464l@student.gla.ac.uk |
1372a50bc975078801851f3c1bd1d16d11352f68 | 998cb658bc8843fecf53542478419b6de42c1102 | /backend/manage.py | 6edb4d358d82be7e7a53452864ae0452f5058a10 | [] | no_license | crowdbotics-apps/mobile-14-aug-dev-8991 | ab38c6c2ab28547087c22bd658698d8e89830c97 | de9ac59b415aac99a1705fffb5193026958f96c5 | refs/heads/master | 2023-07-02T04:15:13.913560 | 2020-08-14T12:13:39 | 2020-08-14T12:13:39 | 287,445,399 | 0 | 0 | null | 2021-08-03T20:02:00 | 2020-08-14T04:45:02 | JavaScript | UTF-8 | Python | false | false | 642 | 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", "mobile_14_aug_dev_8991.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2e50e0b6f45c2fb616f2890c18eb6df1bca8f495 | 1b6351e3e5d1fedf5e3c515c69c0ec02766ea45a | /searchAlgo.py | 228e762c06dec13a0d142bfc3e71729cd307a76d | [] | no_license | brianhu/DecisionTree-ChessGame | 1e5674d35841cea46e08c80adf71f719a376d300 | 26ba1b657de616486e03d221e5b571c0cc9922aa | refs/heads/master | 2020-05-20T07:21:37.298745 | 2013-01-15T16:42:30 | 2013-01-15T16:42:30 | 7,003,421 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | from agent import Agent
from agent import Troops
from map import Map
import random
import copy
import math
def distanceToGeneral(tX,tY,gX,gY):
disX = (tX-gX)*(tX-gX)
disY = (tY-gY)*(tY-gY)
return math.sqrt(disX+disY)
def archerAround(map,troop):
count = 0
x,y = troop.posX,troop.posY
if map.isEne... | [
"b98401092@ntu.edu.tw"
] | b98401092@ntu.edu.tw |
f71cb25ddfb6c412e152114295e3f791c3cb72e0 | a6dd4fe2f08c40de5ffd5204682a816ee11f10b3 | /advance/week4-2.py | 5122abdc9aafe98ec4bdf80b0ead1fe2e81df2dd | [] | no_license | AidenLong/python | f26b2b2301d30719c9f30b5e071e8d704a5186d9 | 6fc046ac1dae8f681e04b4d74088bfa229edeb45 | refs/heads/master | 2020-03-27T12:09:45.687625 | 2018-08-30T08:23:53 | 2018-08-30T08:23:53 | 146,530,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,587 | py | # -*- coding: utf-8 -*-
from __future__ import division
from numpy.random import randn
import numpy as np
# -*- coding: utf-8 -*-
###通用函数
arr = np.arange(10)
np.sqrt(arr)
np.exp(arr)
x = randn(8)
y = randn(8)
x
y
np.maximum(x, y) # 元素级最大值
arr = randn(7) * 5
print(arr)
np.modf(arr)
###利用数组进行数据处理
#向量化
points = np.ar... | [
"1403911589@qq.com"
] | 1403911589@qq.com |
03f60ce8024d195701c94934316cb9ce74f516e1 | 9e5073e662404421eac317ce0826c93f9f57617f | /obj/Release/Package/PackageTmp/GOImplement/GRM/Customers/urls.py | 2862da5577fe22ccd564646a2e02db33ab90e6ec | [] | no_license | vskorrap/kmtool-API | 29001a4708a242c9a1d8dcabd71fb7354839b2df | 4e1117279aeaddb75081d069450afb27e511fd10 | refs/heads/master | 2021-06-24T11:00:38.676315 | 2019-12-12T06:03:11 | 2019-12-12T06:03:11 | 227,528,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.conf.urls import url
from django.urls import path
from . import views
urlpatterns = [
path('', views.CustomersList.as_view(), name='Customers List'),
path('<int:pk>/', views.CustomersDetail.as_view(), name='Customers Detail'),
]
| [
"venkata.korrapati@hexagon.com"
] | venkata.korrapati@hexagon.com |
1f35e589db7a05f187c5218f4bf5a04a253dc480 | 57c0be261354dde9e2368a37eafc976c1c7a4c31 | /musapaedia/muse/lib/python2.7/types.py | 2d478360332ad4c133c58b7b337af121bed252df | [
"MIT"
] | permissive | rossgoodwin/musapaedia | 6a035b3beeb67031444f93687e8ccf57c3ce8b43 | 08d69f9cc9bf7014189a2a54ce3d1da4246b8f6a | refs/heads/master | 2020-05-16T14:43:49.146935 | 2015-01-14T22:29:54 | 2015-01-14T22:29:54 | 29,269,094 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/types.py | [
"ross.goodwin@gmail.com"
] | ross.goodwin@gmail.com |
af3381ae78bf698dff8a7c97324d886c71b16a41 | ec827bd5df431c9400946e8d0593448814b5534b | /venv/bin/rst2latex.py | a52e3650ad536413c6bad8de9f042089b2ea2846 | [] | no_license | grantnicholas/pytone | 7acd70878de8090d06d7a2911a67b3dbb3b64256 | b89c688cc88588a3758fff288bc9b1364534b42e | refs/heads/master | 2021-01-23T06:19:47.203418 | 2014-09-21T21:52:27 | 2014-09-21T21:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/home/grant/Desktop/pytone/venv/bin/python
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import locale
locale.setl... | [
"grantnicholas2015@u.northwestern.edu"
] | grantnicholas2015@u.northwestern.edu |
2206bfd7b874e66585e69e7e4f615ef67045f700 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4065/codes/1602_2894.py | 28a0e854a1d6a6c2f3a6d82537d62a75f1b0641b | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Este código é apenas um ESBOÇO da solução.
# Modifique-o para atender as especificações do enunciado.
# Leitura das entradas e conversao para float:
var = float(input("Qual o valor unitario do jogo? "))
# Calculo do valor a ser pago, incluindo o frete:
total = float(var*8 + 45)
# Impressao do valor total:
print(to... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
0d58865b7b796a32f3aa161b3ce9ad4c76354427 | 3ebb815ca90c1fe7fd712dc12abf9a65bdc36d4d | /tests/domain_check/test_domain_check.py | a28cb2bd68586644ee802c128e21650658261be7 | [] | no_license | PitsakAlex/IntegrationTests | 1deccc79e7d332b324b56a86d421b0ce77fb1d99 | 917725113c6f30072d697d244d2dfdce44b1cf7b | refs/heads/master | 2020-04-23T20:22:52.207987 | 2019-07-27T15:01:23 | 2019-07-27T15:01:23 | 171,438,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from tests.helperer import *
from tests.domain_check.helper_check import *
from tests.contracts import *
import requests
def test_domain_check_15():
domainName = sld() + randomTld(info)
payload = {"domains": [domainName], "priceFlags": "15"}
r = requests.post(url=url + path, json=payload)
result = r.j... | [
"alexandr.pitsak@namecheap.com"
] | alexandr.pitsak@namecheap.com |
f572084091618d1d49f9c7a2bd5e870759a79497 | 82ae9c2472ca138217701c6dc1eda68c74c4a7f6 | /src_teamB/test025.py~ | 74284f062d828c19c1422dc8cf4ee3b84407e801 | [] | no_license | slack-evolbot/main-repository | d50100c6342114a07d97d52fb245ec03b624fab5 | 35959cf4c3d4a8ccf6ff5f42e201e415338bddc6 | refs/heads/master | 2020-03-17T12:26:57.925054 | 2018-06-01T08:12:36 | 2018-06-01T08:12:36 | 133,588,953 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | # -*- coding: utf-8 -*-
import googlemaps
import re
gmaps = googlemaps.Client(key='AIzaSyCuxTpu4wHcCz1M9S3GNLMfbCYmrc-b-dg')
directions_result = gmaps.directions('東京都新宿区西新宿1-21-1 明宝ビル','新宿駅',mode="walking",alternatives=False,language="ja")
#print(directions_result)
#for step in directions_result['routes'][0]['legs'... | [
"slack_evolbot@yahoo.co.jp"
] | slack_evolbot@yahoo.co.jp | |
a9e773b8bc21409603fae517768696e59174dedb | 01a0145586c6c29f1e6239e17288bdc365d501e6 | /BeagleBone/LEDs_ON.py | 7c7116491999a1e4b8bd3557c9c40bbed6538ece | [] | no_license | mdkul22/BeagleBone_ATmega | cfdec69b7e0d5d97544502fa1996501f3ff435ff | 41251774bc167fcac054714308fb09b08ae4fd45 | refs/heads/master | 2021-01-18T10:07:01.909026 | 2013-06-03T19:29:41 | 2013-06-03T19:29:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | #!/usr/bin/python
from Adafruit_I2C import Adafruit_I2C
import time
tester = Adafruit_I2C(0x05, 3, True)
print "----------------------------------------"
tester.write8(1,0x01)
tester.write8(2,0x01)
#print tester.readU8(5)
print "----------------------------------------"
| [
"muaz2006@gmail.com"
] | muaz2006@gmail.com |
9c44966a55d541c0c748421e2865593e2ae868ef | 3584797e6144f3d661b51b140a7fbabbfaac4c9a | /python_intro.py | 1e94a88a011630860961f9a2e1d0284bd056c699 | [] | no_license | leticiadobbin/my_first_blog | 31c3f0109aa0b2e5e2c2595b07306450ec5a812f | 1f62e26c6009e8dc969010b0a9c24e1cb3905add | refs/heads/master | 2023-01-11T17:03:17.726198 | 2020-11-18T19:59:46 | 2020-11-18T19:59:46 | 306,114,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | print('hi, programa menina!')
| [
"dobbinleticia@gmail.com"
] | dobbinleticia@gmail.com |
2f1ef80869e7f6c1c0f73699df5d136ab09c8b19 | 5374957f61bc3ca59fe5ac78697d936510e34b86 | /BFS_of_graph.py | c028eba4b18f520f6eee55b0a1ce5546d968ea38 | [] | no_license | Srikar-ai/Graph-Traversals | d2a926ef40bccb2b3824c83f9cf4ed0e74179661 | 62def9dc422aba0379a4a68fba86e882c93cc180 | refs/heads/main | 2023-07-06T00:12:53.256137 | 2021-08-08T05:25:56 | 2021-08-08T05:25:56 | 352,752,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | visited=set() # to check wheather nodes are visited or not
queue=[]#Initialize queue
def BFS(visited,graph,node):
visited.add(node)
queue.append(node)
while queue:
s=queue.pop(0)
print(s)
for neighbour in graph[s]:
if neighbour not in visited:
visited.add... | [
"noreply@github.com"
] | noreply@github.com |
a8ae3a9cdc02269eb3d3456908431538fb07e09b | 6d131c2d669dc5d580535268e8994f333f352303 | /Software/translation2input.py | 2acd4363cb6ff48590fb3ae1daa03def9a851e80 | [] | no_license | john777100/Smith-Waterman-Verilog-Implementation | 95931eb17d4a0566311b015134632591c6f5aaef | 61d7713d5c02285782c7b74500bbe7f176f635f8 | refs/heads/master | 2021-04-20T00:57:50.865749 | 2020-03-24T07:53:43 | 2020-03-24T07:53:43 | 249,641,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | sequence_file = input("sequence file:")
output = open('in.pattern', 'w')
source = open(sequence_file, 'r')
seq = [[],[]]
dic = {'A': '00', 'T': '01', 'C': '10', 'G': '11' }
dic2 = {0 : '10', 1: '01'}
iter = 0
for line in source:
for i in range(len(line)):
if(line[i] != '\n'):
seq[iter]... | [
"john777100@gmail.com"
] | john777100@gmail.com |
b13da817aede04b68ad39c188fb32a758e46b488 | 490957cf9130f1596c9f81bacff90b13f25eb2e6 | /Problems/Even numbers/task.py | 9cb7f6f386b84458325d9faeb5412c7818ca756b | [] | no_license | TonyNewbie/PaswordHacker | 6eb021e3660aba94d020a7b581dc2787b57556c0 | ac70d64cba58e83e88c00fb2f9c4fcc552efcc35 | refs/heads/master | 2022-11-19T03:29:53.300586 | 2020-07-13T10:37:34 | 2020-07-13T10:37:34 | 279,272,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | n = int(input())
def even():
i = 0
while True:
yield i
i += 2
# Don't forget to print out the first n numbers one by one here
new_generator = even()
for _ in range(n):
print(next(new_generator))
| [
"prostomaster90@gmail.com"
] | prostomaster90@gmail.com |
5b333aaced33cc08b0644843b13e9d26e7b4455d | 5790c3e94cd1f2de2581841fee0fec8c109fc833 | /code/painter.py | 066b841a5f487191aac6c2a33ffc0e8587a9a6ce | [] | no_license | gila-c/whattocook | 5c91ac5f44bc89f9d9ce45e41f5d7c5f9e36c4ee | 476d0e4e981cd512f3b011b230d9506c163f0703 | refs/heads/master | 2022-10-05T02:18:46.894360 | 2020-06-06T03:28:29 | 2020-06-06T03:28:29 | 269,863,474 | 0 | 0 | null | 2020-06-06T04:27:33 | 2020-06-06T04:08:52 | null | UTF-8 | Python | false | false | 6,871 | py |
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import numpy as np
from sklearn.metrics import precision_recall_curve
from sklearn.metrics import average_precision_score
# Define global variables
# Specified all color codes for all 20 types of cuisines
c... | [
"leechinhongkenneth@gmail.com"
] | leechinhongkenneth@gmail.com |
5eef665b3e7e24300936efa5f264a3ef24cd39f9 | 5d081417ac9be87d3fa09110681308d86f35bb71 | /lucas-kanade/LK.py | beb7d10df9964222b227abfd420d717ed78f50fb | [] | no_license | aleemkirk/Sport_Code_Automation | 1e180e85c1fb2791fd4648246df23b2cef0b0e30 | 69fc4fefddfd611746ca6690c6bcaaabeab50eea | refs/heads/master | 2020-05-17T03:57:25.409676 | 2019-04-25T19:21:07 | 2019-04-25T19:21:07 | 183,496,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,093 | py | """
Danish Waheed
CAP5415 - Fall 2017
This Python program is the supporting library for Q1 and Q2
"""
import numpy as np
import cv2
import math
# This sets the program to ignore a divide error which does not affect the outcome of the program
np.seterr(divide='ignore', invalid='ignore')
'''
TODO: Add comments for th... | [
"aleemkirk@gmail.com"
] | aleemkirk@gmail.com |
6e13b2cc1879d6fcbf5967e111777d18af637fa9 | 8a73cde463081afd76427d5af1e6837bfa51cc47 | /harvester/metadata/management/commands/compare_study_vocabularies.py | 65b82b39e3f1630c29dd6a3827f8bc7c7eecb52d | [
"MIT"
] | permissive | surfedushare/search-portal | 8af4103ec6464e255c5462c672b30f32cd70b4e1 | 63e30ad0399c193fcb686804062cedf3930a093c | refs/heads/acceptance | 2023-06-25T13:19:41.051801 | 2023-06-06T13:37:01 | 2023-06-06T13:37:01 | 254,373,874 | 2 | 1 | MIT | 2023-06-06T12:04:44 | 2020-04-09T13:07:12 | Python | UTF-8 | Python | false | false | 2,940 | py | import requests
import re
from django.core.management.base import BaseCommand
from metadata.models import MetadataValue
uuid4hex = re.compile(r'(?P<uuid>[0-9a-f]{8}\-[0-9a-f]{4}\-4[0-9a-f]{3}\-[89ab][0-9a-f]{3}\-[0-9a-f]{12})', re.I)
class Command(BaseCommand):
@staticmethod
def _get_node_label(node):
... | [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
29e65e3b231dfec465d5f55ebb7f63efa238dfa7 | be86773cce128c65f4bd40bc3217f470611eb596 | /data_preprocess/normalize_min_max.py | 49b6d70ad3b20039a73c81dc9ff671b1c95821f4 | [] | no_license | gdabba-WORK/pandas_study | dc34352981e2ee58d1a11a2ade8826f66dc17ea5 | d1a45dc968a02534f7f55aeaaa4bc661f558cd00 | refs/heads/master | 2020-11-28T00:35:48.016200 | 2020-01-10T08:12:23 | 2020-01-10T08:12:23 | 229,660,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | import pandas as pd
import numpy as np
df = pd.read_csv("../data/auto-mpg.csv", header=None)
df.columns = ['mpg', 'cylinders', 'displacement', 'horsepower', 'weight',
'acceleration', 'model year', 'origin', 'name']
# horsepower 열의 누락 데이터('?') 삭제하고 실수형으로 변환
df['horsepower'] = df['horsepower'].replace('?'... | [
"kgdfather@gmail.com"
] | kgdfather@gmail.com |
da5440c299a0e972710e88c7311a48cc2e2cb085 | f031ed86f671bf1933bfce899162e8d9bb055f64 | /tf-w2v/word2vec_basic.py | d6b1405d5e060db3dddb62809f6b266ec29ad5d2 | [] | no_license | sushant3095/nlp | 148a6912c56c179822e4fe70464e801879405708 | baa39ac99d2d445e57b6ba79dfa62336868e1d94 | refs/heads/master | 2021-01-19T18:03:13.160594 | 2017-04-13T05:01:16 | 2017-04-13T05:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,782 | py | # Copyright 2015 The TensorFlow Authors. 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 applica... | [
"max.lapan@gmail.com"
] | max.lapan@gmail.com |
17c77e17ca88acea85ffe7d1bbb6e3ffe4b9ffdd | 5fb3fbca685c6963d1171e23d2812c0d4cc50e67 | /templates/settings.py | aa25ab2a086e584555aa1f9cff73ef505bad1f41 | [] | no_license | codeaudio/djangoProject2 | 884f9b8773735e3a03b285ea9642b35afda30712 | 5f4437786f9661b1de16543e3250e19b801117a8 | refs/heads/master | 2023-02-19T07:00:27.928213 | 2021-01-18T01:24:58 | 2021-01-18T01:25:18 | 330,454,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | # Django settings for anfisa4friends project.
import os
import django_heroku
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '0+-ju&2t-r7==7gs&_@-#q8om7i&lelii&as$b*sjc(j7xcgvv'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# Build paths inside the proj... | [
"ikapustin@phoenixit.ru"
] | ikapustin@phoenixit.ru |
203e66a49a14dbf22ea6b335261f5c6aa7248741 | 8ac4b94c0bcfc7910dd41dd0b981d483d176d200 | /docs/conf.py | 8d579d3e86248ca0b6b6d1bef48bf0db20e6c07b | [
"MIT"
] | permissive | sustcLi/INFO577 | d32a7a7c9da9d07e6295a2326aafb6167791bf91 | 6278e0c5c08c2a3137447a34816a4cce3999e841 | refs/heads/master | 2023-01-14T12:35:41.546703 | 2020-02-07T06:00:14 | 2020-02-07T06:00:14 | 238,851,019 | 0 | 0 | MIT | 2022-12-26T21:00:57 | 2020-02-07T05:31:27 | Python | UTF-8 | Python | false | false | 4,843 | py | #!/usr/bin/env python
#
# data_science documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"g.li@wustl.edu"
] | g.li@wustl.edu |
683053f40d2cf500cb405bf87ac2b8c2729e555a | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614062720.py | d6f85c522d6e82fc164a1c2ba47e9fea286c6ff5 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,421 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
85b27b28a9bbd043de72bede3e61b28fb71a232c | bd9b9ce8cb9ebf8f985523364646df4c96bc19f8 | /accounts/migrations/0001_initial.py | 1a365f37de829552491d0c345fa44eca394c1d5e | [] | no_license | Tushant/product-referral | fa99350e6b24af2c54bb0ee2d00f0becb1f3d492 | 2d32114664d3f4bbf61f658891d40ed474e1c282 | refs/heads/master | 2023-09-01T09:44:51.164937 | 2020-05-19T16:15:49 | 2020-05-19T16:15:49 | 423,358,974 | 0 | 0 | null | 2021-11-01T06:24:29 | 2021-11-01T06:23:39 | null | UTF-8 | Python | false | false | 3,452 | py | # Generated by Django 2.2.1 on 2019-12-17 04:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
... | [
"joseffregmi111@gmail.com"
] | joseffregmi111@gmail.com |
5178c6bc234c586a65edf654fd074b59e5be7adb | 40c677f1e39ba53063ced109f4bf23d16162a899 | /orders/views.py | b01d47e358988cc750df02d17479979112a55445 | [] | no_license | AminMohamedAmin/Online-Restaurant-System- | ee25b5d7ff7e52dc6b2ac632f0dd58e38022f6bb | b9aa2d8b8d69ab56437d4b4d039fc935b0b85227 | refs/heads/master | 2022-08-24T21:24:30.224785 | 2020-05-26T11:49:34 | 2020-05-26T11:49:34 | 267,028,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | from django.shortcuts import render, redirect,get_object_or_404
from django.urls import reverse
from .forms import OrderCreateForm
from .models import OrderItem, order
from cart.cart import Cart
############### pdf ####################
from django.contrib.admin.views.decorators import staff_member_required
from django... | [
"ameenman50@gmail.com"
] | ameenman50@gmail.com |
f592c9a2b25a4ddbca2dc88b38e77cf1c2474b30 | 20030ab8143c226c7250bfbe459adc7ef315d709 | /03-OverflowSocket/exemplo_3_client.py | 6fd26da6c0e8752e08413217dcf3cf21ce59ecef | [] | no_license | rafaelmatsuyama/FIAP-2019-2TDC-CodeReview | 7fa1cb1061805c1ddc93a4225c413d37c11b3d42 | 235bfe405ebdc6a4a0db48e1481804c73780276b | refs/heads/master | 2020-04-27T08:33:38.977680 | 2019-06-09T06:09:52 | 2019-06-09T06:09:52 | 174,175,854 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | #!/usr/bin/env python3
import socket
HOST = '127.0.0.1'
PORT = 1234
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, PORT))
s.sendall(b'Ola Mundo!')
while True:
data = s.recv(1024)
if not data:
break
print('Recebido', repr(data)) | [
"rafael.matsuyama@gmail.com"
] | rafael.matsuyama@gmail.com |
9b72f051973bdcc982416ce94ab8422e0340d654 | 2bdc972f64c02827813d81b7811adea5892ae823 | /Radius of a circle.pyp | 899928a9520768e4f909b4150df1c6e2adcd937c | [] | no_license | smanuelguerrero/Exercises | c90ada95ef14ccf9a8cf06bfc70b8f8ab38ed57c | c752a1b5cad04d29f55ef2e13fb0ee330ac822d9 | refs/heads/main | 2023-06-07T10:05:49.681756 | 2021-06-13T10:36:01 | 2021-06-13T10:36:01 | 363,622,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | pyp | from math import pi
r = float(input( "Radius of the circle:") )
print("The area is the following: ", str(pi * r**2) )
| [
"noreply@github.com"
] | noreply@github.com |
2ba20a83f2e3080ecf33539555d67783b0a914b3 | 253b65bc1317abd276649020a0474533ee65c350 | /preprocess_coco.py | 54ca521272eaecdeebe953414a0d52336b71842b | [
"MIT"
] | permissive | AMDS123/Faster-RCNN-Densecap-torch | 53a19ce1e44e2ec5e27c9ec8601799e66059138f | e41c3f585a15e4438348f5402ab3c6a945ea66f1 | refs/heads/master | 2021-06-02T09:38:43.607179 | 2016-09-12T00:43:10 | 2016-09-12T00:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,131 | py | # coding=utf8
import argparse, os, json, string
from collections import Counter
from Queue import Queue
from threading import Thread, Lock
from math import floor
import h5py
import numpy as np
from scipy.misc import imread, imresize
"""
This file expects a JSON file containing ground-truth regions and captions
in th... | [
"rluo@ttic.edu"
] | rluo@ttic.edu |
f14ff29a1a76c2916cb211c476a56aaa5061bf71 | b59f248a9fda6793f894d22167eeeb731b9793b5 | /setup.py | 3184db5836ea0592125e47143e0757dc1df8e5e9 | [
"BSD-2-Clause"
] | permissive | smilefufu/PIKACHU | ef31cc3c2b5ff2d10ee8373d7d4848972f5c2ecc | 3819649a5a5537b5f0595cd0cc44dc0e05b2f714 | refs/heads/master | 2023-02-14T00:30:49.674217 | 2023-01-27T05:08:53 | 2023-01-27T05:08:53 | 139,333,521 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # -*- coding: utf-8 -*-
import sys
import setuptools
from distutils.core import setup
with open("README.md", "r") as fh:
long_description = fh.read()
def get_info():
init_file = 'PIKACHU/__init__.py'
with open(init_file, 'r') as f:
for line in f.readlines():
if "=" in line:
... | [
"fufu.bluesand@gmail.com"
] | fufu.bluesand@gmail.com |
882dc7076cf5e0d32b778a35b9e246597c492f72 | ad4f165fcf1ef5fd173b33ecf9e5f91f4c07b811 | /palabras.py | 82c97fbde2bf4b255e5354796489aabb193aa495 | [] | no_license | yhonchurta11/tallerPython | efd21af2f4a26ea8614b5209447cbcc1941a4202 | 9d23d2dfa3083d7975405eac85a2c1c37f4898b1 | refs/heads/master | 2021-06-13T22:46:01.848377 | 2020-04-09T19:25:17 | 2020-04-09T19:25:17 | 254,459,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | tupla = ('1','2 ','c','d') | [
"alejandrochurtas@gmail.com"
] | alejandrochurtas@gmail.com |
22002e013c7fc560f588d6b21b6295c6cfaa25bf | 63174a051890227a6bbf28fa194a46233a57d644 | /tests/models/__init__.py | f857a2c11d6ad8c23e6c73cc09b3ac5f5456fa11 | [
"Apache-2.0"
] | permissive | guido-mutt/soam | ab76aca33f72296556b14d7ef259911f9f379904 | 1c7bdf3ccbde11f2fa7a3fe2731c067887112909 | refs/heads/master | 2023-07-02T09:57:28.244655 | 2021-08-09T14:12:23 | 2021-08-09T14:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | """SoaM models tests."""
| [
"eugenio@muttdata.ai"
] | eugenio@muttdata.ai |
c12cc6036983cd759d8b39d31f8c60f25223c226 | 10add947e9519a5869b078b34699812b6520331a | /Python/Skrypty/Python - Szkolenie_11-2015/przyklady_rec_python/PythonExample/isinstance.py | 8a30c9cadcb1b775bad1efa5ac3d6a1892fa2195 | [
"MIT"
] | permissive | Elzei/show-off | 83633e2721fdc53ba51b8e8c0d32a95cd0dc3899 | fd6c46480160d795a7c1c833a798f3d49eddf144 | refs/heads/master | 2020-12-30T16:15:58.617544 | 2018-07-04T19:04:35 | 2018-07-04T19:04:35 | 90,975,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | import types
isinstance(5, types.IntType) # True
isinstance(8, types.FloatType) # False
| [
"jedrzej.polaczek@gmail.com"
] | jedrzej.polaczek@gmail.com |
489041c27386827df9ebe9a86ebd99213371c75d | 5b5a49643c75aa43d5a876608383bc825ae1e147 | /python99/misc/p702.py | 8888db3ce4a8bc0a289bf66437324404ec628a4c | [] | no_license | rscai/python99 | 281d00473c0dc977f58ba7511c5bcb6f38275771 | 3fa0cb7683ec8223259410fb6ea2967e3d0e6f61 | refs/heads/master | 2020-04-12T09:08:49.500799 | 2019-10-06T07:47:17 | 2019-10-06T07:47:17 | 162,393,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | def knight_tour(n):
return [[(1, 1)]+path for path in doTour(n, n*n-1, (1, 1), [(1, 1)])]
def doTour(n, m, start, path):
if m == 0:
return [[]]
availableMoves = getAvailableMoves(n, path, start)
return [[moveTo(start, move)]+remainPath
for move in availableMoves
for rem... | [
"ray.s.cai@icloud.com"
] | ray.s.cai@icloud.com |
4e051c1cbc45d82097a53c6b718c804f2f499571 | d571d952a1fc2703283d5ae4b2ea6b0037b0a85f | /venv/Lib/site-packages/peakutils/plot.py | 1f66f8dc5cec766a11256874860ff9b4b9434c25 | [
"MIT"
] | permissive | HanxinHua/bme590hrm | bfffc268c295f0cc8693ab115b54c88d7ebb6da8 | 76fb4d9fe41e1d691b9033d28e9336ffb80ac1b8 | refs/heads/master | 2022-12-06T15:24:08.601604 | 2018-10-28T04:04:10 | 2018-10-28T04:04:10 | 153,959,147 | 0 | 1 | MIT | 2022-11-21T20:01:53 | 2018-10-21T00:07:13 | Python | UTF-8 | Python | false | false | 457 | py | import matplotlib.pyplot as plt
def plot(x, y, ind):
"""
Plots the original data with the peaks that were identified
Parameters
----------
x : array-like
Data on the x-axis
y : array-like
Data on the y-axis
ind : array-like
Indexes of the identified peaks
"""
... | [
"HanxinHua@github.com"
] | HanxinHua@github.com |
d1e7b61f8d0be9fe2705c886283494688f9ba608 | ad5575ded7fd98bb308652b51bec9cd85c5f5a2f | /RestDatabase/tests/controllers/DevicesAPI.py | acaa8bf44751b26445d3f9a0eee84387e2da2181 | [] | no_license | strudels/FitPalsBackend | f71c9271dec23d81604d324780dc4b9a15c589ca | 6f85f3541de549ea65bde234bf2c5afa7bc06914 | refs/heads/master | 2022-11-23T04:06:34.518799 | 2015-05-01T06:31:51 | 2015-05-01T06:31:51 | 68,463,848 | 3 | 0 | null | 2022-11-22T00:26:18 | 2016-09-17T16:26:58 | Python | UTF-8 | Python | false | false | 4,942 | py | from tests.utils.FitPalsTestCase import *
class APNTokensApiTestCase(FitPalsTestCase):
def test_add_device(self):
fitpals_secret = self.test_user1["fitpals_secret"]
device = {"token":"some apn token","user_id":self.test_user1["id"]}
resp = self.app.post("/devices",
... | [
"ben@uhsome.com"
] | ben@uhsome.com |
9a58aa2824db695e1e894d4fa70d28100fcc3df0 | 22f18ec098a839564393747829f2b59ecd0b8e16 | /mysql_procedures.py | 4f335dda864fe4d2c91d4ad5a18f22a66ca35fa5 | [] | no_license | stankogavric/NoSQL | 75645eff7b9d5fe9e16422d31eff4d853d47fc05 | c029851ecc883d89290113f332630f209b99e86c | refs/heads/main | 2023-04-13T11:10:49.139958 | 2021-04-28T10:44:59 | 2021-04-28T10:44:59 | 354,136,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import mysql.connector
current_connection = None
current_cursor = None
def connection(host, user, password):
try:
mydb = mysql.connector.connect(
host=host,
user=user,
password=password
)
global current_connection
current_connection = mydb
... | [
"gavricstanko@gmail.com"
] | gavricstanko@gmail.com |
e8534922aed9100f9387758cd3601b84eee522f3 | ab9bc62ba70981e36844de8c3d93b3b1fb351b87 | /hostelmanagement/urls.py | deab9c3de54da4f17c50629ba2d7c5292f945fc6 | [] | no_license | poddarabhay/hostelmanagement | d1f94da5cd7ca17905a6981d329dec5b118c8f09 | a20d72f99ae350857ff2e62a767952cc0a4d47e5 | refs/heads/master | 2021-04-15T14:11:04.290879 | 2018-03-22T02:04:15 | 2018-03-22T02:04:15 | 126,157,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | """hostelmanagement URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"33618761+poddarabhay@users.noreply.github.com"
] | 33618761+poddarabhay@users.noreply.github.com |
81986ebbff0325c513016a51c2583cc663f4f483 | 03d4f548b0f03d723c776a913c0814508052fbd4 | /src/tsgettoolbox/ulmo/util/__init__.py | 2b22dc7d4c5466883b30a8cf364eede652549a80 | [
"BSD-3-Clause"
] | permissive | timcera/tsgettoolbox | 2cee41cf79fd2a960d66066df5335bb1816f8003 | 1ca7e8c224a8f7c969aff1bbb22f13930cb8f8b0 | refs/heads/main | 2023-09-06T03:22:17.785382 | 2023-07-27T04:06:22 | 2023-07-27T04:06:22 | 40,149,564 | 14 | 4 | BSD-3-Clause | 2022-09-16T23:00:40 | 2015-08-03T21:47:57 | Python | UTF-8 | Python | false | false | 940 | py | from .misc import (
camel_to_underscore,
convert_date,
convert_datetime,
dict_from_dataframe,
dir_list,
download_if_new,
get_ulmo_dir,
mkdir_if_doesnt_exist,
module_with_dependency_errors,
module_with_deprecation_warnings,
open_file_for_url,
parse_fwf,
raise_dependenc... | [
"tim@cerazone.net"
] | tim@cerazone.net |
36e207b931ec0a48122cb1ac5ac11bb2125ac7af | 8facb3ee2cbf56ebb75754bf590888d1bfdfd93d | /vae/encode.py | 91d40cb6cc3d79a63312560afa5febd978d300cb | [] | no_license | f2276701/robot | f97e31d9475be28ebcebe91e564827af949aaf83 | a03c2acf140c74728819ebc682698265e8f3fa98 | refs/heads/master | 2023-06-14T20:52:31.450368 | 2021-07-13T16:23:26 | 2021-07-13T16:23:26 | 285,981,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | #!/usr/bin/env python
#coding:utf-8
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import argparse
import glob
import os
from PIL import Image
import torch
from torchvision import utils, datasets, transforms
from sklearn.decomposition import PCA, KernelP... | [
"f2276701@gmail.com"
] | f2276701@gmail.com |
fb2a17ee074aee2dd601440a013c1d40a2e94c24 | 2b54b1fb1540ab73d6c83cae3acd5fdd58bdead5 | /Platinum_clusters_Project/Pt7O11_richness/Ptoxides_zorderimage_new.py | 5c29ede674b6b65b4573cae10e0835fa87be76a9 | [] | no_license | sivachiriki/GOFEE_Pt_V_supported | 5787d44294262870075f35f2d31c096021b7ce20 | 6bd700dac1f3e7c58394b758d75246ac6e07eade | refs/heads/master | 2022-04-08T11:38:13.038455 | 2020-03-09T10:48:31 | 2020-03-09T10:48:31 | 226,359,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,547 | py | from __future__ import division
import matplotlib
#matplotlib.use('Agg') # Can also use 'tkagg' or 'webagg'
#from plot_neb_tio2 import *
from matplotlib.offsetbox import TextArea, VPacker, AnnotationBbox
import matplotlib.patches as patches
from math import ceil, floor
import matplotlib.pyplot as plt
from ase.io impor... | [
"sivachiriki@phys.au.dk"
] | sivachiriki@phys.au.dk |
4606275fa5d9e722d6644f7d7cf1c37e42c82127 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_230/ch168_2020_06_15_19_49_26_764111.py | 6d30c2c492a8b42526eb6299bf967924d030cb9f | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | def login_disponivel(login, lista):
novo_login=0
num=0
if login not in lista:
lista.append(login)
return login
else:
for logins in lista:
if login!=logins:
continue
else:
num+=1
novo_login=login+str(num)
... | [
"you@example.com"
] | you@example.com |
6218fa360d1dc3185faf76134c53db8ee46b5c41 | dfa0846527308ebbf83c4d54d98c585981fc74ad | /main.py | c905552597e173af9dcd509e5f88a69189efd614 | [] | no_license | vahidheydary706/Ping-pong | c9791fb4f5aa3676e0a3f6266962e74a9092cefd | 49415d254993c48e8b9c7ba9b11d23cdedfeaff7 | refs/heads/main | 2023-05-05T04:31:01.631969 | 2021-05-11T19:15:19 | 2021-05-11T19:15:19 | 366,475,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | import pygame
from paddle import Paddle
from ball import Ball
pygame.init()
BLACK = (0,0,0)
WHITE = (255,255,255)
size = (700, 500)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("Pong")
paddleA = Paddle(WHITE, 10, 100)
paddleA.rect.x = 20
paddleA.rect.y = 200
paddleB = Paddle... | [
"noreply@github.com"
] | noreply@github.com |
19fe4733092470c04d9b22d2264b885c70a14290 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /QcswPnY2cAbrfwuWE_24.py | 87292310bdc04e8e32529844946ccbcd1e95cb45 | [] | 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 | 618 | py | """
Create a function that filters out factorials from a list. A factorial is a
number that can be represented in the following manner:
n! = n * (n-1) * (n-2) * ... * 3 * 2 * 1
Recursively, this can be represented as:
n! = n * (n-1)!
### Examples
filter_factorials([1, 2, 3, 4, 5, 6, 7]) ➞ [1, 2, 6]
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
40282fc5a8d13a3550a7977c79d53dc897d2564a | 3a17b31ed9250b38de3b9fd9db8d3d3a8719222c | /setup.py | 1b13c01094f9aa2e0ecd2d15e8c084c887a0422e | [
"MIT"
] | permissive | a627414850/Macropodus | 4cc9bb48408b832cdc890a098a7ea8dc64328ba1 | 1d7b8f9938cb8b6d7744e9caabc3eb41c8891283 | refs/heads/master | 2023-02-15T09:04:35.889058 | 2020-12-25T14:29:04 | 2020-12-25T14:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | # -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/12/30 22:17
# @author :Mo
# @function :setup of Macropodus
# @codes :fix it and copy reference from https://github.com/TianWenQAQ/Kashgari/blob/master/setup.py
from macropodus.version import __version__
from setuptools import find_packages, setup
impor... | [
"2714618994@qq.com"
] | 2714618994@qq.com |
1faa014d1308027a71a558171b0859a373b63f0b | 8dfc91d22bee7db241dad72b83e65aa51689b44e | /jb_tfidf.py | 3674781538c488999ab7c8a4209f1ec651c19146 | [] | no_license | ChiyunLi/keywords_analysis | 6aba1d3ff859db6030b37595b16fa4913199aa93 | f3a5a36b964de9382cd421f3316d0a24e72867de | refs/heads/master | 2020-04-30T04:24:30.030341 | 2019-03-19T22:57:39 | 2019-03-19T22:57:39 | 176,610,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,733 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Dec 23 04:12:53 2018
@author: rikigei
"""
import jieba
import jieba.analyse
import numpy
import pandas as pd
from wordcloud import WordCloud
import matplotlib.pyplot as plt
from matplotlib.pyplot import gca
from matplotlib.font_manager import FontProp... | [
"noreply@github.com"
] | noreply@github.com |
adf28e920deddf72529dcb0823b1473ab4f87eba | ae9ce341ffb6b6d0587b04af81d8a25d81adc987 | /src/core/migrations/0001_initial.py | 96305126d9e1be6c432a17f0620d4a7bf2e73231 | [] | no_license | MrTsepa/track_web | 7eda8e0cdcb2c384b57569b59f03a7d4ad0c4543 | 276860bdeb42a2b27002e1e19eca0383ffb27b0e | refs/heads/master | 2021-01-12T17:53:15.769984 | 2016-12-27T17:44:15 | 2016-12-27T17:44:15 | 71,288,968 | 0 | 0 | null | 2016-12-25T19:12:27 | 2016-10-18T20:34:17 | JavaScript | UTF-8 | Python | false | false | 3,021 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-18 16:09
from __future__ import unicode_literals
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"tsepa.stas@gmail.com"
] | tsepa.stas@gmail.com |
cc652657ed7f621f27da124464355e4299a2d2c7 | f1bf9c71d8dbaf9ade7dfdeb8cc60955bd58e674 | /pspnet.py | cd7a2400c0130d67c7a907389983dfa0269d8eb6 | [
"MIT"
] | permissive | cynthiaCC/tensorflow-calculate-SVF | f11e406c4b4322d1485500a0632adfa00a36623d | ac48ea961fd4b628c2daf94486d2b818b5695e1a | refs/heads/master | 2022-12-04T21:56:16.560325 | 2020-02-15T19:03:21 | 2020-02-15T19:03:21 | 240,769,687 | 3 | 1 | MIT | 2022-11-21T21:12:30 | 2020-02-15T18:46:02 | Python | UTF-8 | Python | false | false | 13,191 | py | #!/usr/bin/env python
from __future__ import print_function
import os
from os.path import splitext, join, isfile, isdir, basename
import argparse
import numpy as np
from scipy import misc, ndimage
from keras import backend as K
from keras.models import model_from_json, load_model
import tensorflow as tf
import layers_b... | [
"454644657@qq.com"
] | 454644657@qq.com |
2e6b915af7733bf6b76634bc93b9b9532e9a3793 | 8ef51673b1ff878e54f2b32f1f9bebcb4704e5c5 | /untitled/Fga.py | 948b04206d102cb0fbcc27659470d5e47b77e29e | [] | no_license | Shorstko/kwcloud | 12b89190a144f516160c02cd46f1f2cfe48f8ca3 | b53f8d9b5f3fca495b0d2275fe73eb573690cc22 | refs/heads/master | 2021-01-23T04:23:47.939916 | 2017-06-01T08:57:14 | 2017-06-01T08:57:14 | 92,929,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # -*- coding: utf-8 -*-
from nltk.tree import Tree
import nltk
from nltk import tree
from nltk.corpus import treebank
text= open('rat.txt').read()
tokens = nltk.word_tokenize(text)
tagged = nltk.pos_tag(tokens)
tree.__all__pretty_print(unicodelines=True, nodedist=4)
#t = treebank.parsed_sents()[0]
#t.draw()
#print(... | [
"ilya-.96@mail.ru"
] | ilya-.96@mail.ru |
86e738a9fbaa4b63e9ee68c0031ef70bd3e9f8a8 | 893276c2c2bbd4349461e2aec696ea13fc0bd15a | /apps/user/migrations/0001_initial.py | 88017681023adffcba885f5ff8a7b3377ab06515 | [] | no_license | huangpu-git/FoodShop_Django | cb42b14552ef35385453634f564986bdc7f698d5 | ff8b67cda0594c78b34884db06f25229e8338d08 | refs/heads/master | 2022-12-16T20:05:15.425613 | 2019-12-09T02:42:49 | 2019-12-09T02:42:49 | 226,754,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | # Generated by Django 2.2.7 on 2019-11-30 06:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"51897597+huangpu-git@users.noreply.github.com"
] | 51897597+huangpu-git@users.noreply.github.com |
e0e536d9d6da6a1fa143e09be0f0882a9ab5a143 | 21c61849f6d3ca22a5c3ffe8823a55a56bedae4e | /Vehicle/Vehicle.py | dd72fbd0a954a49f7edafb2e42c0061b12f0aab8 | [] | no_license | haribabu130786/python | c4186c2fd2d0cc4c2278e98aee93fc4dba6849f7 | ad7b6db5edeecf4700291f0a19496f58b659113f | refs/heads/master | 2022-12-09T22:40:01.954371 | 2020-09-01T14:11:10 | 2020-09-01T14:11:10 | 282,416,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | class Vehicle:
def __init__(self, type, colour):
self.type = type
self.colour = colour
class TwoWheeler(Vehicle):
def __init__(self, type, colour, company_name, reg_amt):
super().__init__(type, colour)
self.company_name = company_name
self.reg_amt = reg_amt
def dis... | [
"haribabu130788@gmail.com"
] | haribabu130788@gmail.com |
2fe2ef73d267ea401d0110f721e1882086a35057 | 125bc75b16e8d3b1232af476e02806bb5f91f85d | /rpython/jit/metainterp/test/test_resume.py | 3c8a7181e78af14dd46282cc22b0d3bcf1ccad3c | [
"MIT"
] | permissive | tomoh1r/rpython-lang-scheme | 17654340842435249a9b2405b61884435f6d1675 | 55edb2cec69d78f86793282a4566fcbc1ef9fcac | refs/heads/master | 2021-05-31T22:48:58.585950 | 2015-12-09T15:30:01 | 2015-12-09T15:30:01 | 45,736,671 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,108 | py | from __future__ import with_statement
import py
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, rffi
from rpython.jit.metainterp.resume import ResumeDataVirtualAdder,\
AbstractResumeDataReader, get_VirtualCache_class, ResumeDataBoxReader,\
tag, TagOverflow, untag, tagged_eq, UNASSIGNED, T... | [
"quickness.net@gmail.com"
] | quickness.net@gmail.com |
4958e910ac04bf4771342088f050c8984aff6a9c | a6dc5959b4067ad84ef55dd212c63eec126c1345 | /almacen/__init__.py | 65ee9b8a78f54baf049fe5a5dd95926c9182bf5a | [] | no_license | clariba12/project-almacen | d3ae8b868b2aa473218cf7b8e24b54676a102ee3 | 7c9a15210789d22d7657ce38e7d071bd18c3bd38 | refs/heads/master | 2020-05-09T23:52:15.386063 | 2019-04-13T19:33:01 | 2019-04-13T19:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import os
from flask import Flask
def create_app(test_config=None):
# create and configure the app
app = Flask(__name__, instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='dev',
DATABASE=os.path.join(app.instance_path, 'almacen.sqlite'),
)
if test_config is None:... | [
"marcello.frattini@studenti.unipr.it"
] | marcello.frattini@studenti.unipr.it |
2cb63747695357bd762fec7f9106c774ad4d653b | d6ebdaab5e8e7c495459e98c548479bddfd714f7 | /Characters/Classes/SubClasses/battlemaster.py | 85a2c88fca73e74d876a60d5e02bc4cfdc661b8d | [] | no_license | Elliott43/World-Of-Tree | 798c62ebee2361e335ecf8e9b42d362c43e4f651 | 6a554e39be8c0a8af9df2a9f1ea929bf3cd28079 | refs/heads/main | 2023-03-14T03:27:04.679898 | 2021-03-04T15:44:09 | 2021-03-04T15:44:09 | 340,720,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | class BattleMaster(SubClass):
pass | [
"72411687+Elliott43@users.noreply.github.com"
] | 72411687+Elliott43@users.noreply.github.com |
a96aff49ba59e292efe8276f866cd063c28159db | 4c15573884d25c6d716cb807bc69831388acb4a9 | /app/test/statistics_service_test.py | b545b1d844ff88dd6c2777b658a0b79b38df2b00 | [] | no_license | jchiavaro/data-center-stats | 9aa780f1901a8dbc8d3333ac15c6f8aa40c0e9b7 | c86a4d6cffbdaf30db8daa6a16b15d2b1611b56a | refs/heads/master | 2021-01-10T08:55:03.891164 | 2016-02-05T22:31:52 | 2016-02-05T22:31:52 | 51,042,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import unittest
import sys
sys.path.append("../app/")
from host import Host
from instance import Instance
from statistics_service import StatisticsService
from data_reader import DataReader
from sets import Set
class TestStatisticsServie(unittest.TestCase):
def setUp(self):
DataReader.createHostsFromFile()... | [
"jorgechiavaro@gmail.com"
] | jorgechiavaro@gmail.com |
73ac70f7b6be97c5dbe8f10a02468038b554135c | ebadc27572d66ea0b0ed328311836c65bdbcba0d | /zad40.py | 07c3ee47ebb472b796efc0be5903f0f2cf28fd11 | [] | no_license | Anav0/Zadania-na-automaty | fd6b620628b315d6150633b267b1f3fe1c8efd64 | 0ffd9ad6f204af37cac2b701e68751bc31c625c0 | refs/heads/master | 2022-11-05T14:42:03.675299 | 2020-06-26T09:11:51 | 2020-06-26T09:11:51 | 268,545,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #! /usr/bin/env python
#encoding:UTF-8
#python 3.7.4
import re
def check(w,E):
index = 0
for word in w:
regexp=re.compile(E[index].replace("+","|"))
if regexp.fullmatch(word):
print('Tak')
else:
print('Nie')
index+=1
check(["abaabcca"],["ab((a(b)∗a)+(bc... | [
"igor_motyka@mail.com"
] | igor_motyka@mail.com |
058e36f049fd2ef71b21375cf137ec657e667b10 | f84536992a6c7c93db3ac6285cabcde4a42288bf | /experiment/stimuli_generation/generate_trials.py | 3e4ef8775d9a02c0d3e2eaa16db71826b75970d4 | [] | no_license | StoicLoofah/smc-property-induction | e6cc4e3c80971138fba8dbc23f26d0429f0cfa43 | b59e0ad16fcd4eaa47d4164653680b1d06e0aa8a | refs/heads/master | 2021-01-01T15:24:10.032089 | 2012-01-18T07:58:03 | 2012-01-18T07:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,490 | py | import string
import random
animals = ['',
"Antelopes", #1
"Grizzly bears", #2
"Killer whales", #3
"Beavers", #4
"Dalmatians", #5
"Persian cats", #6
"Horses", #7
"German shepherds", #8
"Blue whales", #9
"Siam... | [
"kkleung89@gmail.com"
] | kkleung89@gmail.com |
549f8f783f8a81e7f6cbdf1a1c344cb84284353a | c56cbafed1a57a9b294e1d41da4675027da7c89e | /Practice/urls.py | 0830a2c61888262c167cfd94d23fd73068157505 | [] | no_license | mash06/Practice5 | 33697bdf0ed13c5a0df7a88674c77bfddae7f9fc | 4201c8c03259913e2c330696d69a8bacd413dab1 | refs/heads/master | 2022-11-23T06:58:24.579475 | 2020-07-20T14:17:18 | 2020-07-20T14:17:18 | 281,399,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | """Practice URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"mashulia200106@mail.ru"
] | mashulia200106@mail.ru |
a538a381640a064a5e93184b83986f23b7c8d9b8 | 1db27d4f0acbaafb53f8f45b5f962db357b6b810 | /insert2.py | 5187a071e3b34e057c725a50ffa9c140b35e4855 | [] | no_license | nipandha/VideoSearch | fdeb05d9b44e7fefcbfd364d136e236735ba40e9 | d4083686d1f7fea0414db2fa7a257ee27244394e | refs/heads/master | 2020-06-21T16:37:10.172778 | 2015-11-24T11:39:00 | 2015-11-24T11:39:00 | 74,780,335 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import gspread
import json
import datetime
import time
from oauth2client.client import SignedJwtAssertionCredentials
import sys
def insert_ruralvideo(URL,Description,Name,Tags,IsYoutube):
reload(sys)
sys.setdefaultencoding('Cp1252')
json_key = json.load(open('NitishaProject-82d3623f7c3e.json'))
scope = ['https:/... | [
"nitishavp@gmail.com"
] | nitishavp@gmail.com |
9a30abb8e18b705c533e2991b819dfe69bab9ef3 | cadd36b4309dd6dd6fa507349106a9dbf38b691f | /HouseGuard/pir.py | 507c51abeea1a1c9483cc64353b4219f064053a9 | [] | no_license | futurecrafts/RaspberryPi | 51605fbdb8416ece4978d738b426330f3285dbce | f03a4aff64d8e34b8d06f364d04ada7fbd5c0b67 | refs/heads/master | 2020-03-22T21:40:37.701134 | 2018-12-05T11:46:06 | 2018-12-05T11:46:06 | 140,706,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
PIR = 20
print "Start PIR Sensor"
GPIO.setup(PIR, GPIO.IN)
try:
time.sleep(2)
while True:
if GPIO.input(PIR):
print "Motion Detected..."
time.sleep(5)
time.sleep(0.1)
except:
GPIO.cleanup()
| [
"noreply@github.com"
] | noreply@github.com |
ab7557f54c78b00a84b9184bb4bae7e516208f59 | c0156da1c81a3a76e397974399c7345d082eca9b | /venv/lib/python3.7/site-packages/webdav/common.py | 5ba8b2c9e55df9fcb895045c8a1ca7c86de54bb2 | [
"Apache-2.0"
] | permissive | leanhvu86/matrix-server | 1823c60fc6ba5ed489bb5720474c6b56a9aec688 | 6e16fc53dfebaeaf222ff5a371ccffcc65de3818 | refs/heads/master | 2023-05-09T01:21:37.774510 | 2021-05-21T15:10:48 | 2021-05-21T15:10:48 | 369,569,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,095 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | [
"leanhvu86@gmail.com"
] | leanhvu86@gmail.com |
e308d9ad87a44c289dae6780c8ec1be8aec4f42e | ce392202fbdcbe527934da6916352b87eac736ba | /Exercise_79.py | 0cc4d3f368fa973e895de7406d255ba5081caa74 | [] | no_license | Virinox/saw_sharpening | 390b5985c9224eaed2c8bf75c06834b670baccb8 | f73db4611942de7627180c3e9cfee87cdf510a5c | refs/heads/master | 2020-05-15T09:31:53.694780 | 2019-06-10T02:30:06 | 2019-06-10T02:30:06 | 182,179,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Exercise 79
# Level 1
# written by: Vince Mao
# last modified: 2019.6.3
# Description:
# Please write a program to randomly print a integer number between 7 and 15 inclusive.
#
# Hint:
# Use the random.randrange() method to generate a random integer in a given range.
#
# Pseudocode:
# 1. Print a randomly generated nu... | [
"noreply@github.com"
] | noreply@github.com |
cccc8870f7ed30c693be4991c997bd40760e5ee8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_180/ch62_2019_10_02_15_14_58_527777.py | b4ad3aad05eeb567a0a0710d004c18a93d56a9fd | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | def filtra_positivos(lista):
lista_positivos = []
for i in lista:
if i > 0:
lista_positivos.append(i)
returnn lista_positivos | [
"you@example.com"
] | you@example.com |
c10d83f4481af209e47f0a3d7d25e04de99e4d28 | eaf1b32714ca56c7453c8ab4a816ea090401e8f4 | /users/migrations/0001_initial.py | eff5f7adfdae6aa0ef255cc797eaa4de640d32f9 | [] | no_license | vishakhabhat/NewspaperApp | d4f9e9e372e3f5ad821f53af64b87e752d99a30b | 53fc63736b0ffcf083f869a9c3d650e0301cc41a | refs/heads/master | 2023-08-18T11:43:56.988012 | 2020-06-27T17:35:26 | 2020-06-27T17:35:26 | 275,403,256 | 0 | 0 | null | 2021-09-22T19:19:17 | 2020-06-27T15:45:43 | Python | UTF-8 | Python | false | false | 2,944 | py | # Generated by Django 3.0.7 on 2020-06-20 19:14
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"vish12495@gmail.com"
] | vish12495@gmail.com |
0e701eab6b9a627739e17da125db1a4591c8716c | 84f9e8e5067da9e8d81468fb0395209eddd0c6cc | /3x3/choice_select_list.py | 6bc04768ea22446ba85a8bdf2fde562d2361e4f2 | [] | no_license | Henry-Cantrell/kakuro | e2ccfa1491632b9fc7e9d4e0fc3e8e05a8a126e5 | 802dbd498b6415f72a9aed769764ac8e7fc12e5c | refs/heads/main | 2023-04-10T14:14:28.736173 | 2021-04-14T15:57:49 | 2021-04-14T15:57:49 | 353,417,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | selectionsDictionary={
'solutionListTopLeft' : [],
'solutionListTopRight' : [],
} | [
"hencan.1997@gmail.com"
] | hencan.1997@gmail.com |
cc78f47fa8ceee6e1dc0376623c91d378f6e80d3 | 4977f0b1c0dfe05bd0a943d6ace160daa56500b1 | /probs/py/waterpark.py | c2471069b2247c25cec48cdb0f923d547b092b4f | [] | no_license | zhang-chenfeng/Codes | 05b9e65ab5873ffe23dbe43f7da67437c9458f4b | 9eecc860d3b2b040c571b3c077e021e41f48e118 | refs/heads/master | 2020-05-04T13:45:32.048368 | 2019-12-11T16:05:28 | 2019-12-11T16:05:28 | 179,172,620 | 0 | 0 | null | 2019-09-24T23:18:05 | 2019-04-02T23:11:52 | HTML | UTF-8 | Python | false | false | 699 | py | import sys
n = int(sys.stdin.readline())
动态编程 = [[-1, 1] for i in range(n)]
x, y = map(int, sys.stdin.readline().split())
while x != 0 and y != 0:
动态编程[y - 1].append(x - 1)
动态编程[x - 1][1] = 0
x, y = map(int, sys.stdin.readline().split())
def 方法(pt):
if 动态编程[pt][0] != -1:
return 动态编程[pt][0]
... | [
"z.chenfengzhang@gmail.com"
] | z.chenfengzhang@gmail.com |
0019f5378f778635c0d8413b806c22732c37ed0d | 8ff6ff16f12a9f2e22c53b93007ff745adec7bac | /det3d/torchie/apis/train_sessd.py | 8c2cec73230b7972ae567a4b561ac931b702228c | [] | no_license | rickkcir/SE-SSD | 86bb1c9bb73d719b2e4a38a3cb3b3ad66056441c | b68068ddd986acce6452cb24064f87d061c58351 | refs/heads/master | 2023-08-19T06:31:53.548197 | 2021-07-15T03:37:07 | 2021-07-15T03:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,213 | py | from __future__ import division
import re
from collections import OrderedDict, defaultdict
from functools import partial
import apex
import numpy as np
import torch
from torch.utils.data import DataLoader
from det3d.builder import _create_learning_rate_scheduler
# from det3d.core.evaluation import KittiDistEvalmAPH... | [
"1143883958@qq.com"
] | 1143883958@qq.com |
d8a55ec8bdd74b0f3ae4fc16b7c292a0b5ab4452 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/estimator/canned/linear.py | a870fe7a1fe83f1323f5d1b7383d5c93f2edf5e8 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e4a29da17634359c96032259089138e261570186b23d8d3ede31721e341ba111
size 1310
| [
"github@cuba12345"
] | github@cuba12345 |
a3138c5f103bfa5bfc8f784ba88c0c849de3be62 | d4b9d7c0050fd3825063a48fbf828e109df522ff | /medi.py | f3e8a5116f3114507be353f79245b53a466d6da1 | [] | no_license | RayampallyChaitanya/Hacker_rank | 52a432aaaa8c175747e3a8a516cf3c569fddfb56 | 61143d499c2c42529425042e6bf3a75f475183c8 | refs/heads/master | 2022-09-29T11:27:21.185637 | 2020-06-02T15:30:34 | 2020-06-02T15:30:34 | 268,838,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import csv
file = open("medi.csv", "r")
file_contents = csv.reader(file)
file_contents = list(file_contents)
header = file_contents[0]
file_contents.pop(0)
surgury = {}
for i in file_contents:
if (i[2] in surgury):
temp = surgury[i[2]]
temp.append(i[0])
surgury... | [
"noreply@github.com"
] | noreply@github.com |
1b0953e3adeccd1db3bc6e99bdb40d6aa231a97f | 96559eb3763310386b988a333134f139107533bb | /scripts/restore_news.py | 4cfdbdfeab1e96e9fa1eba0943bee7306a3ed9e4 | [] | no_license | stigull/stigull | 89abdf39ba0f8315f2f590013477e3fd61344e71 | 2e9dccb3114a7d2e0c24bc59db1eab5b0f89d314 | refs/heads/master | 2021-01-18T22:46:46.833262 | 2016-07-10T17:44:20 | 2016-07-10T17:44:20 | 101,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | #! /usr/bin/env python
# -*- coding: utf8 -*-
import scripts
from django.db import transaction
from django.contrib.auth.models import User
from django.template.defaultfilters import truncatewords_html
from utils import slugify
from news.models import Entry, Content, EntryChange
def load_news():
"""
Restores the n... | [
"hertogi@sigma.(none)"
] | hertogi@sigma.(none) |
5d55bbdb414754385d2dfbc511be5bd611d99531 | 6a11f45cc7cc0a50ef8852b50855d95941b237d0 | /lemonade_stand/setup.py | 8ef89f633d02153a0b11096429ca58a80d619cac | [] | no_license | joemcilheran/LemonadeStand | 9d94bb354af15f1952e0993f2d1562f0693173ba | bfad63297d337b3b43c125663c2f2912fe89d971 | refs/heads/master | 2016-09-14T03:34:55.366701 | 2016-04-22T23:19:04 | 2016-04-22T23:19:04 | 56,546,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from setuptools import setup
setup(name='lemonade_stand',
version='0.1.0',
packages=['lemonade_stand'],
entry_points={
'console_scripts': [
'lemonade_stand = lemonade_stand.__main__:main'
]
},
) | [
"joe.mcilheran@gmail.com"
] | joe.mcilheran@gmail.com |
49b650b057406d845078f2a6663b5cfaa2d528fb | 30db5c868ec38f063adebe61435db0dfdcdaf689 | /src/GI/preprocess.py | 0117af668d30e902035403e7f1ee7817656b44c1 | [
"MIT"
] | permissive | anshuln/Training-for-the-Future | 94db402e22b6537f911b809ac3c4993809785319 | dea30999827ff5882468d318fa536f96455267ca | refs/heads/main | 2023-09-06T01:38:28.552198 | 2021-11-17T08:17:18 | 2021-11-17T08:17:18 | 421,274,612 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,748 | py | '''Preprocessing and saving all datasets
This file saves all final datasets, which the dataloader shall read and give out.
'''
import pandas as pd
import numpy as np
import math
from collections import Counter
from datetime import datetime
# from sklearn.datasets import make_classification, make_moons
from torchvisi... | [
"anshulnasery@gmail.com"
] | anshulnasery@gmail.com |
d9b4842f5e5d24ba9a7db8f5e2e36ac211b7e3b6 | e4e54652e1848b034994af4a75aec5615116edb9 | /example.py | 990b05a6f523642bdf5aba826a58aa31b23c032d | [
"MIT"
] | permissive | megaprokoli/vmtlib | 7657153076d433d2bba15e6c34b0ad6507ef20d3 | 55eddeb82cc558a7668e35a15724c10087f51ad4 | refs/heads/master | 2020-07-13T02:27:26.613793 | 2019-09-01T11:20:07 | 2019-09-01T11:20:07 | 204,968,135 | 0 | 0 | MIT | 2019-08-31T10:50:06 | 2019-08-28T15:46:42 | Python | UTF-8 | Python | false | false | 143 | py | from vmtlib.vmt_file import VmtFile
vmt = VmtFile("example.vmt")
vmt.read()
vmt.shader.set("$basetexture", "new")
vmt.write("target.vmt")
| [
"fake@mail.com"
] | fake@mail.com |
8881a9b4109aac6cccaa8aad8b8db98a4aecf08a | c0f4104194a7989e44d7f0161b2425c5a5bc3a98 | /tacker/agent/linux/daemon.py | e60c6d9210e2a6984c2d5f8ba4f96c7331599496 | [] | no_license | bopopescu/Openstack-2 | f65470bdd0ee4736c45b6f869f0453cb8eb446c8 | 6f06133562e3dfd490695a92c9ddf1a322675104 | refs/heads/master | 2022-11-28T09:19:21.633850 | 2016-06-23T07:55:32 | 2016-06-23T07:55:32 | 282,095,817 | 0 | 0 | null | 2020-07-24T01:44:49 | 2020-07-24T01:44:48 | null | UTF-8 | Python | false | false | 4,324 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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/li... | [
"egonmin@CN00119199"
] | egonmin@CN00119199 |
e5e70f3bb27d62cb214379fd65148de1d05b8f89 | 05e21e511d57f7d0c20f54090c2d6a2d90dbf7c8 | /app/display_users.py | 878e65f249055aeee5caead95b2665073847bf78 | [
"MIT"
] | permissive | ttimms/capstone_project | 8f773c6c22d3cd048897da40c75eb30f6b43f54c | abb1218b8a892c96edf5f9ccb9ac1f1e2b8d896e | refs/heads/master | 2020-04-29T11:50:53.755138 | 2019-04-22T20:44:06 | 2019-04-22T20:44:06 | 176,115,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from app.models import User
def displayUsers():
userList = User.query.all()
return userList | [
"ttimms@kent.edu"
] | ttimms@kent.edu |
8ee2f1b168cb673bb9e1196e8e8507088a55e75b | 7300fc72162568f886e04509431359a62a09da79 | /lino_xl/lib/phones/mixins.py | cfc73974e2bfd9b6033a7d3015cfbcb1ca35f494 | [
"BSD-2-Clause"
] | permissive | forexblog/xl | ad27aa1e9f5669f8a78ec55f4b7d0bd952da6327 | 130303647d01c0d8271f770f3054907c183dc1e8 | refs/heads/master | 2023-03-04T01:44:39.485452 | 2021-02-13T08:18:16 | 2021-02-13T08:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,590 | py | # Copyright 2017-2019 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from etgen.html import E, join_elems
from lino.api import rt, dd, _
from lino.core.diff import ChangeWatcher
from lino.mixins import Contactable, Phonable
from .choicelists import ContactDetailTypes
class ContactDetailsOwner(Contacta... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
44ce0b9aad004199cc2582b7f473bcb52857ea08 | 572bf358d907afe2d9ab509d8789d9a1062416da | /CharakterItems.py | 32408a08c01e66793ba51ce0c7e2fd5603fdd9e2 | [
"MIT"
] | permissive | malexmave/Sephrasto | 71a11122fb5498c051f0e618f33aee2429ff3d43 | 795a0a87710f173df92f40b2d39a050c47903d57 | refs/heads/master | 2020-03-28T05:55:27.967235 | 2018-06-12T09:53:45 | 2018-06-12T09:53:45 | 147,803,598 | 0 | 0 | null | 2018-09-07T09:40:08 | 2018-09-07T09:40:08 | null | UTF-8 | Python | false | false | 7,071 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CharakterItems.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectNa... | [
"praiodor@gmail.com"
] | praiodor@gmail.com |
085d487fb8f2a84d1ca5a0ed53280325e50eecc3 | dff190c5cd8cda2ea9f03e5468f54aa9762bb937 | /test/test_pycalcal.py | 90cc976c879c860ea4eacf499ba71f34e2d01bb9 | [
"MIT"
] | permissive | SimonHung/lunisolar | 3e431c6e7ae2918bff28b7125bb0da0dd91bac07 | e539da2bba2d5ae0b4b7dfd9cb08ef4410cb4109 | refs/heads/master | 2020-04-13T15:22:37.041094 | 2019-01-18T04:29:06 | 2019-01-18T04:29:06 | 163,289,187 | 0 | 0 | MIT | 2018-12-27T11:59:05 | 2018-12-27T11:59:05 | null | UTF-8 | Python | false | false | 1,430 | py | from __future__ import print_function
import unittest
from datetime import date
from pycalcal.wrappers import chinese_date
class PyCalCalTestCases(unittest.TestCase):
def setUp(self):
self.moon_landing = date(1969, 7, 20)
self.july_fourth = chinese_date(2009, 5, 12, True)
def test_conversions(... | [
"weiyen.lee87@gmail.com"
] | weiyen.lee87@gmail.com |
e7905f68c68fe2b9f63860fb05bc257f30e01e95 | c8b3af27d156ea5b28c0b5d614bf32aaa45265da | /mysql_connector/models/mysql_connector.py | 68dbce7fff4c2a64f7b3b7fe70a478ac9229b78b | [] | no_license | UBtrNvME/perco_integration | 17d163a4253123bbb7ff699f146e3cd91355b4ff | 2a559cefb43524862df86f3a7e76b4d9178d9b67 | refs/heads/master | 2022-11-25T09:51:38.734930 | 2020-06-25T06:00:27 | 2020-06-25T06:00:27 | 265,840,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,518 | py | from odoo import fields, api, models
import mysql.connector
import datetime
from mysql.connector import Error
from odoo.osv import osv
import logging
_logger = logging.getLogger(__name__)
class MysqlConnector(models.Model):
_name = "mysql.connector"
_sql_constraints = [
("name_unique",
"UNI... | [
"mooniron.k@gmail.com"
] | mooniron.k@gmail.com |
ef1279de5439cfbd6f5cebb5dca1611284c03940 | 0a6f9543f97345b4db903519af4b54fd2dac8052 | /gy/core/user_views.py | 99c9909c2bf479888c5c9a25c20d04627da63646 | [] | no_license | kratenko/gy | b88d8eb20eab7fb7d4c968eb2d0ac2f371876119 | 2650b75cd6016868b8a94b7df5c2bf54bbd1fc50 | refs/heads/master | 2021-01-18T14:14:49.959400 | 2013-01-31T13:30:38 | 2013-01-31T13:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from pyramid.response import Response
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPFound
from ..tools import Paginator
from .models import (
DBSession,
User,
)
@view_config(
route_name="core:user.list",
renderer="gy:templates/core/user/list.html.mako",
)
def list_user(... | [
"kratenko@gastig.org"
] | kratenko@gastig.org |
95a3b6d001b0e7a3953094ebd8c78ebbb6077f14 | 9aa204acc0324f0702d2a64d9c8305f5171612ce | /backend/hospital/dashboard/urls.py | 8bb37cba72f1f3d4618edaee84f56927ec3e5c9d | [] | no_license | saijalshakya/hospital | 46d4c4925d5e0479df6e96c282d19ff8d6679d14 | f41e691522e363ae850cc8209c886f9c65f94680 | refs/heads/master | 2020-04-22T16:40:20.991693 | 2019-02-27T04:51:27 | 2019-02-27T04:51:27 | 169,699,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | from django.urls import path, include
from . import views
from django.conf.urls import url
app_name = "dashboard"
urlpatterns = [
path('', views.IndexView, name="index"),
path('accounts/', include('django.contrib.auth.urls')),
path('doctor/register/', views.register, name="register"),
url(r'users/$... | [
"saijalshakya1@gmail.com"
] | saijalshakya1@gmail.com |
88dde34f48dbd061de43e83f6138d8d3ba9f072e | 471fae6656be4b32f442b48f6103a072a53c0c64 | /preprocessing/sample_db.py | 2ea6571db4bcd0e6bdc36908075d466fff1a464d | [
"MIT"
] | permissive | ronaldahmed/labor-market-demand-analysis | 6d2c07f5daa60f4a3f9ae7c194458e1be296797d | 3f931df1ffc35f87ceb847f4a41436e28a1e9449 | refs/heads/master | 2021-01-10T04:26:58.268412 | 2016-02-02T00:56:22 | 2016-02-02T00:56:22 | 47,420,527 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | import os, sys
import random
from nltk import FreqDist
from datetime import datetime, date
import ipdb
utils_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
WWW_DIR = os.path.join(os.path.dirname(utils_path), 'www')
SETTINGS_DIR = os.path.join(WWW_DIR, 'project')
sys.path.append(utils_path)
sys.pat... | [
"roncardenasacosta@gmail.com"
] | roncardenasacosta@gmail.com |
5779c444960b8d61f2276ecfae7f06b491049bc9 | 616197e05d645ea791da63ec82a7add581d48e5d | /taller de sockes/ejercicio3/3.2/servidor.py | 35f169b8e9be5d92be2ae482a3a31ecfa792cc93 | [] | no_license | lubaNarvaez/SistemasDistribuidos | 1cf2430becd547f6b3174afe0ca118e41622d9ec | de2495b7c92ffe7d4ea2c316d91e99165516ef64 | refs/heads/master | 2023-04-30T13:19:36.121717 | 2021-05-13T20:34:08 | 2021-05-13T20:34:08 | 364,456,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | # Clase de servidor
import socket
import threading
CLIENTES = []
class Cliente(threading.Thread):
def __init__(self, conexion, direccion):
super(Cliente, self).__init__()
self.conexion = conexion
self.direccion = ... | [
"yoan.lopez@utp.edu.co"
] | yoan.lopez@utp.edu.co |
aa48fab18b70df881c66afafa22822d4b308ece4 | ac4988c7f9cc98f6dcc31280cd208eeb57d674f2 | /Semana13Hackaton/fmilla/whtsppPedidos/whtsppPedidos/settings.py | be7e8fc2c63aa2751e7d95043c9f3bcacabf2499 | [] | no_license | BrucePorras/PachaQTecMayo2020-1 | 77e396ceb2619d028dd740b9414f8a3160eee2cd | 5f39146cc4f69d844dae22a12098479194fd6332 | refs/heads/master | 2022-12-18T02:20:39.828175 | 2020-09-25T05:39:20 | 2020-09-25T05:39:20 | 269,999,646 | 1 | 0 | null | 2020-06-06T14:06:19 | 2020-06-06T14:06:18 | null | UTF-8 | Python | false | false | 3,746 | py | """
Django settings for whtsppPedidos 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 pat... | [
"fmilla1000@gmail.com"
] | fmilla1000@gmail.com |
f0783a7ed0c08f7e7d36c2f5b34513b494b68e6b | e3402d37d5a9fb7ee3c3c73e95732d778f48b6fb | /com/kute/restapi/webpy/__init__.py | 495819d32d166f3bb3178a84cbf8757ee943f870 | [] | no_license | kute/purepythontest | 51d3186ddaa2f1142382768380b776a1ba9469ed | 2baa1746a34cefe0be0e5f59be21450d330491a7 | refs/heads/master | 2020-04-12T06:20:14.957566 | 2018-03-18T07:03:22 | 2018-03-18T07:03:22 | 65,204,109 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
@version: 1.0
@ __author__: longbai
@ __file__: __init__.py.py
@ __mtime__: 2016/8/27 16:55
"""
def main():
print("hello")
if __name__ == "__main__":
main()
| [
"longbai@corp.netease.com"
] | longbai@corp.netease.com |
1a6f93d503a0f1c41c3dea2036394917a791005e | 46f1f20d87fd8f58205e42f2e53715983ddd69da | /code/170100py_bjfydload/DloadConofbjfy.py | 6f42cf58af715d0631dad223d6be1286a7b4fe74 | [] | no_license | zchunwu/mygithub | 17e8194ab5a58b7b7f651c7cc94a486fd14591b3 | 49879bb3103d7b9c5a51edf93b15bce1ab17ffac | refs/heads/master | 2021-01-12T02:20:57.008595 | 2017-01-16T02:10:24 | 2017-01-16T02:10:24 | 78,503,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 28 20:26:15 2016
@author: zhuchunwu
"""
#可以不用webdriver,因为这个没有验证码
import pymysql
from selenium import webdriver
import time
from pyquery import PyQuery as pq
class getText():
def __init__(self):
self.snum = int()
self.enum = int()
self.db = ... | [
"zhuchunwu@ruc.edu.cn"
] | zhuchunwu@ruc.edu.cn |
7978107f23aae58a1df6aa3fc1b257a51437e218 | a5965a77f2950dfbe2422a386661430bdc4b78a6 | /Instagram_bot.py | 09163ccffb4b3a2734dd5d203465df6dbd5b2847 | [] | no_license | kursadguzelkaya0/Instagram_Bot | 7308e74b2c4b4cc8400d6934fd1a062c3deb600d | 7fbfda07aa208783f411ab283b12a6754969e6e5 | refs/heads/master | 2022-07-16T04:01:15.611039 | 2020-05-18T14:33:37 | 2020-05-18T14:33:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,954 | py | from selenium import webdriver
from time import sleep
class InstaBot:
def __init__(self,username,pasword):
self.username=username
self.pasword=pasword
#go to webpage
self.driver=webdriver.Chrome()
self.driver.get('https://www.instagram.com/')
sleep(2)
#writ... | [
"kursad.gzlky@gmail.com"
] | kursad.gzlky@gmail.com |
c89e1e1d1216bc15e619aa233576f2b3d494ed93 | e167a68adc24b2da65874911f27f190911fef867 | /cifar10.py | 8fd3251070d22df1d8f34ebd7a90607009779144 | [] | no_license | ziapple/tensorflow-tutorial-cifar10 | f382f283a5d93bb35bde6439f25ce00ef5085819 | aac77d537d80e06bc70d48e86bd358db4c68850b | refs/heads/master | 2020-04-16T07:50:37.756419 | 2019-01-27T12:41:13 | 2019-01-27T12:41:13 | 165,401,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,151 | py | # -*- coding: utf-8 -*-
# Copyright 2015 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 requir... | [
"ziapple@126.com"
] | ziapple@126.com |
c46eea6ac70388e3126470a5470b481d84d8b08e | a7b66311c2ce113789933ec3162f1128b2862f13 | /app/waterQual/EPA/ntnModel/wrapCl.py | 1059b5ef803b609b8ac5c26f307b198b30e4359e | [
"MIT"
] | permissive | ChanJeunlam/geolearn | 214b2c42359ea1164b39117fad2d7470adeb6d35 | 791caa54eb70920823ea7d46714dc8a3e7fa7445 | refs/heads/master | 2023-07-16T04:13:15.526364 | 2021-08-16T05:24:18 | 2021-08-16T05:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | import os
import time
import pandas as pd
import numpy as np
import json
from hydroDL import kPath
from hydroDL.data import usgs, gageII, gridMET, transform
# varC = usgs.varC
varC = ['00940']
siteNoLst = ['0422026250', '04232050', '0423205010']
nFill = 3
varG = gageII.lstWaterQuality
caseName = 'chloride'
# add a st... | [
"geofkwai@gmail.com"
] | geofkwai@gmail.com |
1a122d47ba697ba397bb6dc791bb4f313dc886ca | bde193e556da3a0873d32b7c5f53fee7777f0b61 | /api/controllers/schedule.py | e9a3e765e002142576f44dc3c62db92e49e6ed5e | [
"MIT"
] | permissive | ActuarialWang/CS6310-FinalProject | 92060ee267e4a86e1da6d6be905ec061bd701558 | a8a973b501c3560f634fca4da5fe2af6bb4bf046 | refs/heads/master | 2021-12-12T05:04:39.275101 | 2016-09-05T18:30:49 | 2016-09-05T18:30:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | from flask import Blueprint, request, jsonify, g
from sqlalchemy import desc
from api.utils import requires_authentication
from api.models import db_session, Course, StudentAssignment, OptimizationRun
from api.schemas import ScheduleSchema, SemesterSchema, CourseSchema
schedule_bp = Blueprint('schedule', __name__, ur... | [
"kelly.truesdale@gmail.com"
] | kelly.truesdale@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.