blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e52d62f737d446777cfd8dea8b7693500b35f7dc | d81c01dcef11874b85db910e2698f0c51357d69e | /myconfig.py | 947b2b5b303a0b3b15b6c1d0c53c259baa04e0be | [] | no_license | dgwanggl/DonkeyCar20191102 | 45e2412ffef56c60fb5ddf1c1868316140ae7cd0 | 2474507247dfb6a6bfb510d4ad4258dab40c67a1 | refs/heads/master | 2020-09-02T09:55:08.787135 | 2019-11-03T12:51:36 | 2019-11-03T12:51:36 | 219,138,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,252 | py | # """
# My CAR CONFIG
# This file is read by your car application's manage.py script to change the car
# performance
# If desired, all config overrides can be specified here.
# The update operation will not touch this file.
# """
# import os
#
# #PATHS
# CAR_PATH = PACKAGE_PATH = os.path.dirname(os.path.realpath... | [
"dgwang@gl.ck.tp.edu.tw"
] | dgwang@gl.ck.tp.edu.tw |
eecb83724e5947e68b51319cfa58e6fba11d101d | 26bd189f367f43dcea8d64ad208015af5c74f7a3 | /catkin_ws/build/rosaria/catkin_generated/pkg.develspace.context.pc.py | fc6de52f91947c5d87edc48832415349fa2e7153 | [] | no_license | RHaghighi/ROS-Workspace | 2c19b9227d5374f1656ef13e859b16a06abbf64b | 5d1f97f850cbc1db3f91c8ec939074da727ea35e | refs/heads/master | 2021-01-21T23:08:41.525072 | 2017-06-23T07:11:42 | 2017-06-23T07:11:42 | 95,192,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/reza/catkin_ws/devel/include".split(';') if "/home/reza/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;nav_msgs;geometry_msgs;sensor_msgs;tf".replace(';', ' ')
PKG_CONFIG... | [
"reza0007@e.ntu.edu.sg"
] | reza0007@e.ntu.edu.sg |
da3014c5f84dce1763f097a4906eca9d63763ba6 | 01d1dcb25662aca00eae607604202c579def987d | /aula01.py | 484a415fd860ba825e395e3c35a3d87199a4ca92 | [] | no_license | RebeccaMariahDEV/luiza_labs_python | ad1f24f557b62303cff28362c2973739f3cecb30 | 5a4279172ef2e73b6cfdb7c21d42b35fa8f190c2 | refs/heads/main | 2023-03-07T06:01:33.642736 | 2021-02-16T21:45:59 | 2021-02-16T21:45:59 | 339,523,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | """
nome = input("Olá, qual o seu nome?\n")
idade = int(input(f"Prazer {nome}, sou o robô Becca, qual a sua idade?\n"))
robo_idade = 107
robo_idade = robo_idade - idade
print(f"Eu sou {robo_idade} anos mais velha que vc")
nome = input("Olá, qual seu nume?\n")
ano = input("Esta em qual ano da escola?\n")
... | [
"noreply@github.com"
] | RebeccaMariahDEV.noreply@github.com |
9395f134fddab16f059972a1fc5919e91497138f | cb07b2de235ce781066c33237e4c2f3ae898eeae | /check_latent_disentangle.py | 5852d795f24cd77f5bd83d91970e666d126e4efe | [] | no_license | lchingen/vae | 936fadf0786002d4b5e222f980c12d8b56cfbddf | 52da036ed6ae7ba9a5eb7afc4bc334227287643f | refs/heads/master | 2020-04-16T21:49:21.432578 | 2020-01-14T00:55:56 | 2020-01-14T00:55:56 | 165,941,496 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | import numpy as np
import tensorflow as tf
from tensorflow.contrib import predictor
from pathlib import Path
from matplotlib.pyplot import plot as plt
from config import *
from helper import *
from utils import *
from model_fn import *
def shift(m_in, offset=0, dir='lr'):
# Generate permutation matrix
p = np... | [
"lchingen@umich.edu"
] | lchingen@umich.edu |
0c7290843c9f8d6897b2f1b76ea235028e543e27 | d101eb3cd3278862bf6905c1e8609083998658ca | /blogprojectt/urls.py | 21364890b2aaded673188fcc35d4b89a71b20633 | [] | no_license | ae129/8-12- | ad5d04efbd3e8fd2c0790b66bfa42d6a9467ef19 | 07ff9d30440a0568194fa74119efeb165acc4978 | refs/heads/master | 2022-11-30T04:52:28.723740 | 2020-08-12T06:46:12 | 2020-08-12T06:46:12 | 286,939,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """blogproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"ae129@likelion.org"
] | ae129@likelion.org |
5b6d751d75236b022dcbd6d4b0dd04f439e67320 | e834ff12cb1dc086057496147ad15fe272b2f592 | /chainerio/__init__.py | b7d5e441be78df1990177c978cfdeecdb65755a1 | [
"MIT"
] | permissive | msakai/pfio | 6d65d64e2d6a607e7709b8d6ec92352aef0695ec | 29e5c6d6b15d33c7e7e468b42c58d24dae3d8cad | refs/heads/master | 2022-10-13T13:52:29.229337 | 2020-06-08T07:11:18 | 2020-06-08T07:11:18 | 267,463,856 | 0 | 0 | MIT | 2020-05-28T01:27:16 | 2020-05-28T01:27:15 | null | UTF-8 | Python | false | false | 110 | py | import sys
# make sure pfio is in sys.modules
import pfio # NOQA
sys.modules[__name__] = __import__('pfio')
| [
"tianqi@preferred.jp"
] | tianqi@preferred.jp |
88f030ed4549f41fed34303dd53903c61e595dd0 | f768ddba19c7bc7664ae581daeef5fe2f650a539 | /leetcode/engineer.py | b3011086b8f515a4bc54c41902609a4cfd17af7e | [] | no_license | douwings/pythonWork | 36ac2ba32a721ed6d9af62a9168eee12a61891af | 70f84eb179e12cc36b521fdb9a2573a14a300d23 | refs/heads/master | 2022-12-23T18:41:50.560391 | 2020-09-28T06:20:36 | 2020-09-28T06:20:36 | 273,136,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | class Solution:
def maxPerformance(self, n, speed, efficiency, k) -> int:
return 123
if __name__ == '__main__':
solution = Solution()
print(solution.maxPerformance(n=6, speed=[2, 10, 3, 1, 5, 8], efficiency=[5, 4, 3, 9, 7, 2], k=2))
| [
"1020763068@qq.com"
] | 1020763068@qq.com |
de8ef67ffbc4f74884821c563da1435f68295fda | 2157782cf5875767f8d1fe0bb07243da2e87600d | /test_from_myself/djangoTest/helloworld/helloworld/urls.py | 42b5c79e380185708b4639f06d761c36e10fa6c8 | [] | no_license | mouday/SomeCodeForPython | 9bc79e40ed9ed851ac11ff6144ea080020e01fcd | ddf6bbd8a5bd78f90437ffa718ab7f17faf3c34b | refs/heads/master | 2021-05-09T22:24:47.394175 | 2018-05-11T15:34:22 | 2018-05-11T15:34:22 | 118,750,143 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | """helloworld URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/dev/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-ba... | [
"1940607002@qq.com"
] | 1940607002@qq.com |
ec944faf2da82dbef93beb5986cc59efed81baf4 | 504d1c5701b9bf04c86e40eebefe75e620f68852 | /linux/keylogger/keylogger.py | e1f70c0290845ba7576fb5fe82b89ee9ad217dda | [
"MIT"
] | permissive | jackzhp/Keylogger | 524ccc421c569ff959dd43c9bf3b982c0f1304ea | 8d0377a7f571a105351618d03e4670d8a1702c69 | refs/heads/master | 2021-03-30T02:28:19.309392 | 2021-02-16T02:16:00 | 2021-02-16T02:16:00 | 248,006,796 | 0 | 0 | MIT | 2020-03-17T15:34:14 | 2020-03-17T15:34:13 | null | UTF-8 | Python | false | false | 1,793 | py | #!/usr/bin/env python
import os
from argparse import ArgumentParser
from datetime import datetime
from keylogger import pyxhook
def main():
ts = datetime.now().strftime("%d-%m-%Y_%H:%M:%S")
parser = ArgumentParser(description='A simple keylogger for Linux.')
parser.add_argument(
'--log-file',... | [
"noreply@github.com"
] | jackzhp.noreply@github.com |
4eb0ba253951459b3ec638970f1e653ab9f61577 | 0393d550fbdc08259ccdfd843215a01443fb4af2 | /Web/WEBoutput.py | 9d7a5d9075b52d95b299434f0859ee5fbf9919bf | [] | no_license | lmingari/lidar_SMN | e8b17a33b8fc77d549b219c4f56edc23afdea0d0 | 52293ece21048424e1cb265f6220f6859b608ae9 | refs/heads/master | 2021-04-09T14:34:27.708556 | 2019-05-02T13:08:21 | 2019-05-02T13:08:21 | 125,753,349 | 0 | 1 | null | 2019-05-02T11:21:22 | 2018-03-18T18:06:42 | Python | UTF-8 | Python | false | false | 1,522 | py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
from IOweb import lidar2js, connect_ftp, upload_file
from os.path import isfile, join
import jinja2
fname_template_intramet = "/home/lmingari/lidar_v2.1/Web/template_intramet.html"
fname_template_mireta = "/home/lmingari/lidar_v2.1/Web/template_mireta.html"
st_name =... | [
"lmingari@gmail.com"
] | lmingari@gmail.com |
866a1e1376f7edd8fd9593aebce114615de4cd1d | 353b36f50b9bacef8ab79c263ca60bd5d7f8fda3 | /newsen | 19c9f9a5a893fea490be75fc898d8eceda1eee26 | [] | no_license | navratansingh/nav | 57186b1427b040d0d4928d848f8d40aabcd8981e | a10e344f9da23af9b0c91a67839ddfe66f1a5618 | refs/heads/master | 2020-03-17T01:13:59.542196 | 2018-05-19T11:53:12 | 2018-05-19T11:53:12 | 133,144,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | #!/usr/bin/python2
import socket
s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
message=raw_input("navratan")
s.sendto(message,("192.168.10.68",9333))
while 5:
message=raw_input("navratan")
n = s.recvfrom(5000)
print n[0]
s.sendto(message,("192.168.10.68",n[1][1]))
#s.bind((n[1][0],n[1][1]))
| [
"navratan1331@gmail.com"
] | navratan1331@gmail.com | |
9f96ceedd369c3d2a189cc8b0e9e20634e0b3d00 | 821051afcf93e84b8411c9486b4534fe8462538a | /solver.py | 1595efbc6ea163a336a1f7caf667219d94647d9c | [] | no_license | lw-git/Game_15 | 539f826bb1cc42aaf9e4db0f5084ab2e82f19d44 | 93f5af3d05afba52cd6e7012adf5bc73bf069f3d | refs/heads/master | 2022-12-19T08:25:51.921631 | 2020-09-06T06:55:12 | 2020-09-06T06:55:12 | 281,867,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,116 | py | # https://codegolf.stackexchange.com/questions/6884/solve-the-15-puzzle-the-tile-sliding-puzzle
class IDAStar:
def __init__(self, h, neighbours):
self.h = h
self.neighbours = neighbours
self.FOUND = object()
def solve(self, root, is_goal, max_cost=None):
self.is_goal = i... | [
"lw_git@mail.ru"
] | lw_git@mail.ru |
a8491753e9b9fe0cc8c2af6b7127150d578917db | 97c326715d884169e60567553c40ba528cce0333 | /todo_app/migrations/0001_initial.py | c0c0ca6a9c4bc03e05d17cef5667b419d5c54883 | [] | no_license | anurajr067/task | cad93b604af469c810007b15177e041d0fbe429b | 82f7142caa6da6acd2db34fec26f51349a1f7c2a | refs/heads/master | 2023-08-30T10:46:51.126256 | 2021-11-03T10:51:36 | 2021-11-03T10:51:36 | 424,180,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.2.9 on 2021-11-02 14:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(aut... | [
"anurajr06@gmail.com"
] | anurajr06@gmail.com |
963c944290dde8a0570ef60185e02857a933d42d | 1dd77c3652abf3321fdb449f452d368feef3e756 | /src/runners/HW3/fix.py | d7146ff04540918187d07a32f7c5d9304aecb2bc | [] | no_license | ronnygeo/SearchEngine | 6e44a7b738974f5ba76f804d54d391173f21bfc1 | 1ea72694b87e2d722f22427d57e15a3cd965f9ec | refs/heads/master | 2021-06-17T20:21:06.221263 | 2017-06-30T14:32:22 | 2017-06-30T14:32:22 | 94,489,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import os
import re
for root, _, files in os.walk("../../../output/data5/", topdown=False):
for name in files:
if name.startswith("data"):
print(os.path.join(root, name))
try:
with open("../../../output/datafix/"+name, "wb") as out:
with open(os.p... | [
"rmathew@ruelala.com"
] | rmathew@ruelala.com |
f8b408e979f4e27f681ffa668357f87e9502d668 | d8bacd9471607634f9a0b9302a02fcc944edd8ac | /Fix a slow system with python/daily_sync.py | d91c6cd20e1108b2016c7a7bee2aa0fbda643f10 | [] | no_license | sechibueze/automate-real-world-tasks-using-python | 54bfe8a3642f8791aa6168a51376eb10febf4495 | cf8bf829e246759f91f0a1834b8a94dfeef25639 | refs/heads/master | 2023-06-15T09:04:31.355437 | 2021-07-14T12:54:02 | 2021-07-14T12:54:02 | 385,939,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | #!/usr/bin/env python
import subprocess
import os
from multiprocessing inport Pool
src = "/data/prod/"
dest = "/data/prod_backup/"
WORKING_DIR = os.getcwd()
src = os.path.abspath(src)
dest = os.path.abspath(dest)
# Basic test
#source = os.path.join(WORKING_DIR, "prod")
#destination = os.path.join(WORKING_DIR, "dest... | [
"sechibueze@gmail.com"
] | sechibueze@gmail.com |
a72ae97de599ae16e4856505c4683b9bdc800603 | fc35472e85c74fdbbe3fb77bd71d09d128ed14f3 | /SecData/CompanyData/EdgarAPI.py | ec2ddbef7a89fa631ea8e6bbedc48d2e427d0bef | [] | no_license | RicardoJavierFernandez/Accessing-SEC-EDGAR-Data | 5342c988f0e8c103e33b03fcde5cbd11bd395def | 7c7be5975894f8acf90481906c8f38c15467880e | refs/heads/master | 2022-02-15T09:18:33.415678 | 2019-09-04T01:20:07 | 2019-09-04T01:20:07 | 198,127,883 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import requests
import json
import os
from dotenv import load_dotenv
class FinancialData:
def __init__(self, period):
self.period = period
@staticmethod
def get_api_key():
env_path = os.path.join(os.path.dirname(__file__), '.env')
load_dotenv(env_path)
edgar_api = os.envir... | [
"ricky@Ricardos-MacBook-Pro.local"
] | ricky@Ricardos-MacBook-Pro.local |
72757ad24b3786688fe2ed56dc3dbe1b4730e05e | 40737b33c8b2d12ec9878e5e0f34d354481f14e3 | /segmentation/segnet_small.py | 3c241306339734a21e75584a283e3c6cf88a0da9 | [] | no_license | vectorai/davinci_vision_tf | 440cf4514689ae92ece4d1cf9b240618134cf58b | 1811e68242e8fe6d29ff2c0a9dc6337bd693e382 | refs/heads/master | 2021-01-21T14:47:58.503932 | 2017-01-19T17:00:16 | 2017-01-19T17:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,376 | py | from __future__ import absolute_import
from __future__ import print_function
import os
#os.environ['KERAS_BACKEND'] = 'theano'
#os.environ['THEANO_FLAGS']='mode=FAST_RUN,device=gpu1,floatX=float32,optimizer=fast_compile,lib.cnmem=0.85'
import pylab as pl
import matplotlib.cm as cm
import matplotlib.pyplot as plt
impor... | [
"raulpuric@berkeley.edu"
] | raulpuric@berkeley.edu |
145893f711e24039e4bd72458aa31c510fee8669 | 8919a06d37109957797c6e741b6ccaa8c58cd524 | /sg_auth/apps.py | 6f3255f5cda9fb008bdcad0ebda671ae0fd3653d | [] | no_license | itslong/study_guide | fa7405077f19ebadca9a6a118ae1b972486b2bcd | 84c4d3c34aca12bf0730dd878935329aa4cb67f8 | refs/heads/master | 2023-01-13T22:53:57.713958 | 2020-03-26T20:07:46 | 2020-03-26T20:07:46 | 228,972,988 | 0 | 0 | null | 2023-01-05T07:21:09 | 2019-12-19T04:12:03 | JavaScript | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class SgAuthConfig(AppConfig):
name = 'sg_auth'
| [
"lliang@Earth-C-137.local"
] | lliang@Earth-C-137.local |
9198fc3018431e7b81593895817db2fc54427b4e | 172d207feab16e09963adb2199ed851d5c691500 | /manage.py | 0f3555abcd7f990a3dc38e1a614b3121cc857230 | [
"MIT"
] | permissive | kas2337/kas-library | dd37dc75f5fe0ea524b88969845a8ecc58117a68 | 67bf612597ae4c03433fa683b85bff7093d6ffbe | refs/heads/main | 2023-08-10T21:15:16.841694 | 2021-09-28T07:26:09 | 2021-09-28T07:26:09 | 409,850,555 | 0 | 0 | MIT | 2021-09-24T06:52:10 | 2021-09-24T06:04:18 | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kas_library.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"artem.kuznetsov@osinit.com"
] | artem.kuznetsov@osinit.com |
84a60bb0fca1b111b3184419caca0e1aad3ff1bb | 344bdd04d310394c3fb2a693ebc8ad442dbd87cf | /240_search_a_2DMatrix_II.py | c58efe18b8c5d623a4a0cb47dc211d3746de85a6 | [] | no_license | AprilSun007/Leetcode | 6372316829288c152722b2f7207cbc88273fe948 | f5d6a4d0754c4ac85e62458b183e69e78373342b | refs/heads/master | 2020-09-28T09:27:34.445862 | 2020-09-18T03:09:43 | 2020-09-18T03:09:43 | 226,747,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,902 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Dec 7 23:07:37 2019
240. Search a 2D Matrix II
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted in ascending from left to right.
Integers in each colu... | [
"jinwnesun007@gmail.com"
] | jinwnesun007@gmail.com |
3cedea4a1d40e03471f96a58f25daf209586b9f7 | 0e9ff12bf44570d4b00beeac043f4608174641a4 | /run_LodgeNet.py | 6984aef46bb2b946b49fd015bf5298075719ea6f | [
"MIT"
] | permissive | FarhadMaleki/LodgedNet | a675e3ce651b0445243b9bfef0e8a0c621f9010f | 9334806dcb158d6027d9fb4b3f588c5d36ba468e | refs/heads/master | 2022-07-18T10:26:48.832004 | 2019-10-18T03:12:15 | 2019-10-18T03:12:15 | 180,228,006 | 18 | 6 | MIT | 2022-06-21T21:53:40 | 2019-04-08T20:30:54 | Python | UTF-8 | Python | false | false | 1,572 | py | import time
import numpy as np
from models import DeepLodge, redefine_classifier
from runner import run
import os.path
import torch
from utils import calculate_test_acc
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
SEED = 1
np.random.seed(SEED)
torch.manual_seed(SEED)
torc... | [
"farhad.maleki@usask.ca"
] | farhad.maleki@usask.ca |
b3b20fdc6ff7c91e7b8a202afc9e8292bc8e8779 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_44838.py | 81bfad0bb617706addec6575ebd8cdc2b70a351a | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,836 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
1ff1cdd22570704212154c995cd8d54a0224c549 | adff1dcd60ff7b67c188a5dd763896ca16c3fe34 | /try_except.py | 2cc8587e0450eb63bd82745dfd2c4550bc8fbd7c | [] | no_license | anirudhrathore/Learning-Python | ff135070d268680a91bb8735300b39b872850916 | d8ccc8147cec75890eb69416ac823acb02378215 | refs/heads/master | 2022-02-20T13:10:20.718105 | 2019-08-20T06:04:04 | 2019-08-20T06:04:04 | 198,161,453 | 0 | 1 | null | 2019-08-20T06:04:05 | 2019-07-22T06:30:42 | Python | UTF-8 | Python | false | false | 280 | py |
try:
answer = 10/0
number = int(input("Enter a number : "))
print(number)
except ZeroDivisionError:
print("Divided by zero")
# We can also print out the actual error
#except ZeroDivisionError as err:
# print(err)
except ValueError:
print("Invalid Input") | [
"anirudhsinghrathore@Anirudh-MacBook-Air-4.local"
] | anirudhsinghrathore@Anirudh-MacBook-Air-4.local |
456408b92d6d49b5897f511f64070af37e225658 | ccb8dfb6c350c5dcfa17f8177a9673cd71bcccda | /linux_src/Gado_2/ComputerVision/BarcodeDetection.py | a9f948478e693b7d4fe57e695917adbbe6d9c70a | [] | no_license | ProjectGado/Project-Gado | 9c101d10b810f7c2ced4f0958906c786d2471386 | bbb80343508cbf86b123cfac8d8bebb1dc1b06fa | refs/heads/master | 2021-01-10T19:27:15.591811 | 2013-10-14T14:39:28 | 2013-10-14T14:39:28 | 5,619,500 | 0 | 1 | null | 2012-09-05T19:41:34 | 2012-08-30T19:05:29 | Tcl | UTF-8 | Python | false | false | 838 | py | '''
Created on Sep 11, 2010
@author: Tom Smith
'''
#!/usr/bin/python
import zbar
import Image
def findBarcodes(filename):
# create a reader
scanner = zbar.ImageScanner()
# configure the reader
scanner.parse_config('enable')
# obtain image data
pil = Image.open(file... | [
"pellica1@niksula.hut.fi"
] | pellica1@niksula.hut.fi |
321466f3974133197fbce2383811b64663e6a2ae | b632c401bf06f898a50eaf5ff3a5c5c607587795 | /server/setup.py | b41864579d7903999cf33ebabf50e7b06d174687 | [] | no_license | DimitarTB/MusicBlog | cf83f08b134b26937e28fe6818cf6db0dff571cf | 8d4628714fda1fe6f8de455b3373f98a260b732b | refs/heads/master | 2023-05-30T06:29:07.702641 | 2021-06-15T22:56:47 | 2021-06-15T22:56:47 | 377,259,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | from flask import Flask, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from flask_cors import CORS
import random
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:password@localhost/Album_Blogs?charset=utf8&use_unicode=0'
# Zamena na: root so DB use... | [
"dimitardev1@gmail.com"
] | dimitardev1@gmail.com |
0bd3b109ae38f8d075eec736fa753b44c0732135 | 7ef06872757e36c700d314933d420a94a1e0f77b | /JPMC_pythonTest/stringManipulations/revString.py | 778dc73c05c1bae7d6f9f9edb9193293f94fc9b9 | [] | no_license | pallavipriya3009/Learning | 7228cd0ea629be9d98d332e31d59e32f402e6b82 | 3e87da690a3f1c04b101ad269a6dc3eda6d87851 | refs/heads/master | 2021-01-17T16:29:53.766768 | 2016-06-16T02:40:30 | 2016-06-16T02:40:30 | 61,256,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | __author__ = 'pallavipriya'
"""How to reverse String in Java using Iteration"""
def reverseItrStr(istring):
changedStr = list(istring)
length = len(changedStr) -1
for itr in range(0,len(changedStr)/2):
changedStr[itr],changedStr[length-itr] = changedStr[length-itr],changedStr[itr]
return "".... | [
"pallavipriya@MacBook-Air.home"
] | pallavipriya@MacBook-Air.home |
20c53c35308da9b78cc83025b0f4dc7d24f2ffe8 | 8d3d18d9c5d37426a9d0d1d675719285221c156d | /api/migrations/0003_auto_20200204_1655.py | 62e8ccf06d53699275e487a93f5ab555de5f7b27 | [] | no_license | suryamurugan/Cia-DJ | ec9c7f1a7f008c3d3dd2c76b074fc5ded11cb6a8 | 07790746ab236f394b2f0f7cef9ca2c1db59f78a | refs/heads/master | 2022-12-22T01:26:02.674161 | 2020-04-03T17:16:53 | 2020-04-03T17:16:53 | 208,579,092 | 1 | 1 | null | 2022-12-08T06:50:13 | 2019-09-15T10:44:52 | CSS | UTF-8 | Python | false | false | 1,099 | py | # Generated by Django 2.0.10 on 2020-02-04 16:55
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20200204_1146'),
]
operations = [
migrations.AddField(
model_name='events',
name='... | [
"surya3542live@gmail.com"
] | surya3542live@gmail.com |
c9cb2cbafa6b4de1722b7de1fc662a5aff4ec488 | 29b439efb499953302de9344d48eee0772573a16 | /week07/animal_keeper.py | e62ffb0d2d431030c11928e736b0643f2f7e302f | [] | no_license | strongwucc/Python003-003 | 7e2ab36c8d285a0f6fb812e40a340eb2637f4719 | 3bb7fe6ffeda9e1dc2f0345e9c5ae65b8d2af7f8 | refs/heads/master | 2023-01-14T06:17:53.946617 | 2020-11-17T12:25:19 | 2020-11-17T12:25:19 | 287,277,535 | 0 | 0 | null | 2020-08-13T12:45:27 | 2020-08-13T12:45:27 | null | UTF-8 | Python | false | false | 1,748 | py | from abc import ABCMeta, abstractmethod
'''
动物类
'''
class Animal(metaclass=ABCMeta):
@abstractmethod
def __init__(self, category, shape, character):
self.category = category
self.shape = shape
self.character = character
@property
def is_ferocious(self):
return (self.... | [
"superwucc@gmail.com"
] | superwucc@gmail.com |
db138dcee9a919c6ee20eb78fe0386476deaff35 | e23068a142a08b11fd7686dc09d46f5648aa3157 | /curd.py | 9477139dc29ed0d9c6deb71093d92f777d846841 | [] | no_license | tiru1930/Flask_mongoDB | b40629a9e8ee2cd0f4c08848f146075df37e33c3 | e2f7a5d41e17a2fcb9a74dbdd582bb5d2500c51e | refs/heads/master | 2021-01-10T02:35:31.586529 | 2015-12-07T19:22:08 | 2015-12-07T19:22:08 | 47,550,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | from pymongo import MongoClient
from bson.objectid import ObjectId
from RegDetails import UserDetails
from datetime import datetime
from flask import request
class UserRepo(object):
""" Repository implementing CRUD operations on contacts collection in MongoDB """
def __init__(self):
# initializing the ... | [
"tirub.1930@gmail.com"
] | tirub.1930@gmail.com |
11f23cf901edf4d7ad77a0e3ffdb1cf2ef1deef4 | 9de5c748145962520a0180521acdec063e14f789 | /DJango-PILDORA-INFORMATICA/V24 Enviar Mail/tiendaonline/miapp/views.py | 45da6bfb73c92f2fecc406349c678cd21dd579e5 | [] | no_license | CritianChipana/DJango- | fe83dd09b923be380906e74bc5d4db3940b18cfa | 930f74570e1a5e1f6f476c51a4fe56310d7a123c | refs/heads/master | 2023-05-29T03:54:26.690202 | 2021-01-14T05:10:09 | 2021-01-14T05:10:09 | 322,924,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | from django.shortcuts import render,HttpResponse
from miapp.models import Articulo
from django.core.mail import send_mail
from django.conf import settings
# Create your views here.
def busqueda_productos(request):
return render(request,"busqueda_productos.html")
def buscar(request):
if request.GET['prd']:
... | [
"cristianchipanahuaman@gmail.com"
] | cristianchipanahuaman@gmail.com |
db73d937503653dfa13bb69aa972e63b63be75d3 | 27bd3927710db15093da35428c44dd8a970c7ed1 | /img_viewer.py | 347ff92d98e92a1324102984ac05174d0c875251 | [
"CC0-1.0"
] | permissive | gerikkub/SourdoughData | 75522aeb5befcde9a7f0eaf783b4b65198286d4d | 7462f7ad72a78ad7e9d3fef5d0fc83e709bfbacd | refs/heads/master | 2020-05-04T17:39:47.121811 | 2019-04-10T03:11:40 | 2019-04-10T03:11:40 | 179,321,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | import cv2
import serial
import time
import os
import math
from multiprocessing import Process
class Logger():
def __init__(self, devices, log_dir):
self._f = open(os.path.join(log_dir, 'data.csv'), 'w')
self._devices = devices
def write_header(self):
self._f.write('timestamp,' ... | [
"gerikkub@gmail.com"
] | gerikkub@gmail.com |
8504038e141f6ee36e1d70e74e8637a770e864b6 | 6ddb95963154a9b95643a23f5f3ba54ea1877e3f | /Backend/services/usuario_services.py | a5be44a24677b35e1c0a8b9f58f616b948b7d240 | [] | no_license | AlexandreMarq/api_python | 91e1662344c0c9472f88ee441a0b02e6ecc653af | 80e0b36da6715f3d845fb6e102177acc9d243ad7 | refs/heads/main | 2023-01-23T23:42:45.758514 | 2020-11-30T17:11:15 | 2020-11-30T17:11:15 | 317,292,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # Imports de modolus internos da aplicação
from infra.usuario.usuario_dao import \
listar as dao_listar, \
consultar as dao_consultar, \
cadastrar as dao_cadastrar
from model.usuario import Usuario
# Função que lista os usuarios
def listar():
return [usuario for usuario in dao_listar()]
# Função qu... | [
"53923396+AlexandreMarq@users.noreply.github.com"
] | 53923396+AlexandreMarq@users.noreply.github.com |
24ec00f30374320942847b2dffb91acc2fa187e5 | 8b409dfa2f1dd4bba458d269046be3cdcf0e3b90 | /ClassifierModel.py | 8a7c07b56e5359151c5afa1d32be542f68b521fa | [] | no_license | basasia/StockPredictionUsingSentimentAndTechnicalAnalysis | c79d68beeea2863f887e069f4198cf1672426fdc | 81d6a538e9facddf93a6574123c4739afd47185b | refs/heads/main | 2023-05-11T17:29:14.590540 | 2021-06-07T16:44:49 | 2021-06-07T16:44:49 | 374,324,011 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | """
* Author: Asia Benyadilok
* Created: 30/03/2021
* Revised: 09/05/2021
* Description: Classifier Models
* User advice: None
"""
#libraries
import numpy as np
import pandas as pd
import pickle
import joblib
from DataCollectingModule import * #import all function from Data Collecting Module
from... | [
"noreply@github.com"
] | basasia.noreply@github.com |
2a42c303775f8fed8237c96d5a6047f7a3fa8003 | 922996be272d4d027cb097fea8f7515061d950dd | /expat/all/conanfile.py | d0d3139b4134af5d664812b8720f99c3c3791061 | [
"MIT"
] | permissive | efokschaner/conan-recipes | 51ba5a380e72a891490d8439c12e83054052d334 | c4f8b94e4017e06d602fe9d4360d44c6ec92e019 | refs/heads/main | 2023-07-10T19:13:48.704112 | 2021-08-05T17:34:48 | 2021-08-05T17:34:48 | 399,401,746 | 0 | 0 | MIT | 2021-08-24T09:07:29 | 2021-08-24T09:07:29 | null | UTF-8 | Python | false | false | 4,119 | py | from conans import ConanFile, CMake, tools, AutoToolsBuildEnvironment
import os
class ExpatConan(ConanFile):
name = "expat"
description = "Fast streaming XML parser written in C."
topics = ("conan", "expat", "xml", "parsing")
url = "https://github.com/conan-io/conan-center-index"
homepage = "https... | [
"dmitry@crsib.me"
] | dmitry@crsib.me |
4d7493b7b097c133108c60e65a5db639ef9b8581 | 0a7acf4b3f1991bccec2b8d005c7138778e2b99d | /lib/BBScan/BBScan.py | af11352491d4f165cfc04ec91fb9fb9edf7fef9b | [
"Apache-2.0"
] | permissive | webvul/SubDomainsResultDeal | eeafb2a133e04471155c171290161ab283ca94a1 | 0303d95bd96b8f1e696c6534f686f30809763970 | refs/heads/master | 2020-04-07T08:13:42.885352 | 2017-09-07T14:21:03 | 2017-09-07T14:21:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,267 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# A tiny Batch weB vulnerability Scanner
# my[at]lijiejie.com http://www.lijiejie.com
import urlparse
import requests
import logging
import re
import threading
import Queue
from bs4 import BeautifulSoup
import multiprocessing
import time
from string import Template
i... | [
"xiaoyan_jia1@163.com"
] | xiaoyan_jia1@163.com |
f86bc180d693ab21bdd9ff67555b9281d39ac601 | 73f2b42955f151718a47a6d93a4f7175830edbac | /AWML_TransE/evaluation_tc.py | 49455a94df40d53653698640cdbaf31a571dfa37 | [] | no_license | orangegcc/AWML | d1e6b501cbdb1297fc56de9736a75e3f89b59593 | f9943eaa61b22618c759d51d7976b0878045cf24 | refs/heads/master | 2020-03-30T15:12:32.055863 | 2018-10-10T13:37:52 | 2018-10-10T13:37:52 | 151,352,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,304 | py | #! /usr/bin/python
import sys
import cPickle
from modelC import *
def load_file(path):
return scipy.sparse.csr_matrix(cPickle.load(open(path)),
dtype=theano.config.floatX)
def convert2idx(spmat):
rows, cols = spmat.nonzero()
return rows[np.argsort(cols)]
def RankingEval(datapath='../data_W... | [
"orangegcc@bupt.edu.cn"
] | orangegcc@bupt.edu.cn |
b289fce0628cac0aed162d7e3cd44991042fac2a | eedc92c3c382107de89c71ee3fce50ed1b76bc77 | /src/internals/adapters/http/__init__.py | 5a35e220e6920ed1607bf25fd7db8e413693ce54 | [
"MIT"
] | permissive | mabel-dev/rosey | 01f60570f3513df7ff6e666a63de1208fa9fb609 | b48b9920b1eec972a185be75741ede53b8f3de34 | refs/heads/main | 2023-05-29T00:00:10.630357 | 2021-06-13T19:33:27 | 2021-06-13T19:33:27 | 362,224,667 | 0 | 0 | MIT | 2021-06-14T03:00:21 | 2021-04-27T19:14:49 | Python | UTF-8 | Python | false | false | 73 | py | from .http_adapter import HttpAdapter, GetRequestModel, PostRequestModel
| [
"justin.joyce+rosey@joocer.com"
] | justin.joyce+rosey@joocer.com |
74f45ffa09fc6e70f46d76001e3054e4fd5a37e1 | 837be787b2e2ca0c4fe40eea49dc59a4a7b07ada | /net_layers/app_layer.py | df82a228d8b789bf1b1fa701de042ef70a452709 | [] | no_license | SvetaZlobina/serial-port-driver | 1a31d072f47899cec3397f8d0292721a83be830f | b0be42a26005a114023dd68fc3bc5132eb67dee2 | refs/heads/master | 2020-03-14T18:15:15.284250 | 2019-08-01T08:58:09 | 2019-08-01T08:58:09 | 131,737,755 | 0 | 1 | null | 2018-05-15T10:18:49 | 2018-05-01T16:45:40 | Python | UTF-8 | Python | false | false | 14,416 | py | import os
import time
class AppLayer:
msg_types = {'FILE': b'f',
'MSG': b'm',
'FILE_END': b'l',
'FILE_PROPOSE': b'p',
'FILE_ACK': b'a',
'FILE_NAK': b'n'}
MSG_TYPE_LEN = 1 # Длина поля типа сообщения в байтах
MSG_SIZE_L... | [
"svetlanazlobina97@gmail.com"
] | svetlanazlobina97@gmail.com |
f4a6c25493802d58f7b8566037d5f228f52ef6bb | 546e6b1e2d0a3dd68f4bd3aaedde96e1ecbd94ad | /linkkısalt/linkler/migrations/0002_auto_20180316_1550.py | 7d47d0c62f9310aedf1ce09bbc589be4f3919b9b | [] | no_license | rifatalptekincetin/Django-Pyton | 3d804fc72fc75ff163b9d8a26de16eae1a27e2f8 | e3c640e7ae2141f7047fb2d2b78eaea11db332f1 | refs/heads/master | 2020-03-30T13:31:33.212545 | 2018-10-02T15:43:06 | 2018-10-02T15:43:06 | 151,275,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # Generated by Django 2.0.3 on 2018-03-16 12:50
from django.db import migrations, models
import linkler.models
class Migration(migrations.Migration):
dependencies = [
('linkler', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='link',
name='re... | [
"34903387+rifatalptekincetin@users.noreply.github.com"
] | 34903387+rifatalptekincetin@users.noreply.github.com |
9cdabaefe72d4543bfcca8e1713f3cb72e6a627c | 6a7506417addcbba2c05bb979f79c5c7c495345c | /gbbo/plotter.py | a9cdaa2bab995bc3f187666f423e4a51c10c9ac3 | [] | no_license | charles-uno/charlesplotlib | 0254a392afc45c9ea5b8b81e2afb479daecbf96f | f556191a70e795b2dcf266737be01a272e915730 | refs/heads/master | 2021-09-24T19:59:15.540743 | 2018-10-13T19:39:43 | 2018-10-13T19:39:43 | 56,997,117 | 0 | 1 | null | 2017-04-08T17:26:05 | 2016-04-24T22:21:58 | Python | UTF-8 | Python | false | false | 1,279 | py | #!/usr/bin/env python3
# ######################################################################
import matplotlib.pyplot as plt
# ######################################################################
def main():
data = load_season(3)
for name, scores in data.items():
print(name, '\t', scores)
... | [
"charles.a.mceachern@gmail.com"
] | charles.a.mceachern@gmail.com |
902c325a21f27a1be1fec85aa1dacea4b01bb3aa | 010d64e4905a2dc16f7786b0c3ee6ae968b812b5 | /experiment.py | 1f44ea683d9d3e2691888879bb0569b9da37f216 | [] | no_license | jimmymenzies/aviation_dosimetry | af4e72bf2b5bd0447f02171c9a36f965f855b6a6 | 06ad06ecb6b800b9b976501d88b5273aa503cd63 | refs/heads/master | 2020-07-31T06:09:39.561259 | 2019-10-28T01:10:29 | 2019-10-28T01:10:29 | 210,511,214 | 0 | 1 | null | 2021-05-18T21:24:16 | 2019-09-24T04:23:24 | Python | UTF-8 | Python | false | false | 1,970 | py | import matplotlib.pyplot as plt
import pandas as pd
import requests
df = pd.read_csv("experiment.csv", skiprows=1, header=None)
df.columns = ["time", "dose", "altitude"]
latitude = -33.51 #(S) [-90, 90] degrees N is +ve
longitude = 147.24 #(E) [-180, 180] degrees E is +ve
year = '2015'
month = '7'
day = '19'
def ... | [
"simmymenzies@gmail.com"
] | simmymenzies@gmail.com |
c46166ba76796d3e3bf7d72646fe57fbae97da09 | 496959e6ff3ab72875d70ceec9af1d15e9919020 | /tests/test_scottbrian_secdata/__init__.py | 1370a3d53341fd1193a01c538ed9cab096ceff1a | [
"MIT"
] | permissive | ScottBrian/scottbrian_secdata | 9990699181705c8612650697b9cf2d055df69723 | ba1b4eead10d2f178a173f1ca9fdbb78ceb54c8d | refs/heads/master | 2023-04-18T06:36:48.232821 | 2021-05-04T03:28:38 | 2021-05-04T03:28:38 | 364,025,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | """scottbrian_secdata test package."""
| [
"12262512+ScottBrian@users.noreply.github.com"
] | 12262512+ScottBrian@users.noreply.github.com |
089b43912c11374963f18cecdcb6edc51f2864c7 | d5fab5f279eac9a0ee6d675c458d5dc6aad0adcf | /app/accounts/migrations/0008_auto_20190422_1933.py | ffd118a4f1441135d7215482fb3ef425dfc3209c | [] | no_license | JeffMcCracken/new-music-app | 66a9913a39f1ccf7b67475eff17fb82036733b98 | 3091b38b9cc511a652b45f02839adb558b46ffee | refs/heads/master | 2020-04-24T23:29:39.867786 | 2019-04-22T20:21:57 | 2019-04-22T20:21:57 | 172,346,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # Generated by Django 2.2 on 2019-04-22 19:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_auto_20190422_1901'),
]
operations = [
migrations.RemoveField(
model_name='album',
name='album_art',
... | [
"jeffmccracken12@gmail.com"
] | jeffmccracken12@gmail.com |
42b7e8840057bf9fac0befe7e09bf2123a0eaf04 | 154ad9b7b26b5c52536bbd83cdaf0a359e6125c3 | /chromecast/chromecast_tests.gypi | cac841a18984ec9281897b8b31e6d17b330530c6 | [
"BSD-3-Clause"
] | permissive | bopopescu/jstrace | 6cc239d57e3a954295b67fa6b8875aabeb64f3e2 | 2069a7b0a2e507a07cd9aacec4d9290a3178b815 | refs/heads/master | 2021-06-14T09:08:34.738245 | 2017-05-03T23:17:06 | 2017-05-03T23:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,722 | gypi | # Copyright (c) 2014 Google Inc. All Rights Reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'use_alsa%': 0,
},
'targets': [
{
'target_name': 'cast_base_unittests',
'type': '<(gtest_target_... | [
"zzbthechaos@gmail.com"
] | zzbthechaos@gmail.com |
9a920a85204bde626db21838a35d3fc165f43fd6 | bccb2cb00fecc24031e727a0ecbc246338d488eb | /softdesk/projects/urls.py | d626d5a3fe957659b1da54abdb0ca14ff8bde741 | [] | no_license | Arnaud290/OC_P10 | 03c8e85e8f89d7a32afea086b56adea34047ab53 | fb22c9e8906d2b61e6fa575ea2e271933e19b2ca | refs/heads/master | 2023-04-27T04:59:40.320393 | 2021-05-19T11:45:59 | 2021-05-19T11:45:59 | 361,775,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | """Projects application url management module"""
from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from projects import views
urlpatterns = [
path(
'',
views.ProjectList.as_view()
),
path(
'<int:pk>',
views.ProjectDetail.a... | [
"arnaud.manach@gmail.com"
] | arnaud.manach@gmail.com |
531448f265fec95557c5fe380804ddd49560f57a | 07add4cdb85d5bdbf5c5c3e716e0b1d4ceb3f152 | /se-annotate/create_and_fill_databases.cgi | 069b4cb76163c630c027d85c4d7668ad0e026f14 | [] | no_license | D1Doris/AnnotateCQADupStack | 8c85db304930adbd5447303bde4a46eb3508732b | 31323a45122f048377c72383bfe3a5125f76c365 | refs/heads/master | 2021-01-18T23:22:39.040909 | 2016-06-04T04:41:00 | 2016-06-04T04:41:00 | 55,202,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | cgi | #!/usr/bin/env python
import cgi
import os, glob, re, sys
import mysql.connector as conn
import query_cqadupstack_barebones as qse
def connectDB():
db = conn.connect(host="localhost", user="someuser", passwd="somepassword", port=3306)
cursor = db.cursor()
return db,cursor
def createDB(db, cursor, subfor... | [
"hoogeveen@textkernel.nl"
] | hoogeveen@textkernel.nl |
62afbbf5d532f45a0bd8428e83ef55bf112e19de | 66207c5881567f50cc30179cfe205a194212d4f1 | /blog/views.py | 2799d92590bfe37d27dd156142c8bcb9ea768996 | [] | no_license | 6256163/Django_Blog | fe214a81f0231775a13e2e8ccbdbe8114cf3e0be | a20ae86f1728363b7a317723156f7c21ffa1c9d0 | refs/heads/master | 2020-05-21T17:49:11.113551 | 2016-12-14T04:17:02 | 2016-12-14T04:17:02 | 64,593,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,236 | py | # coding=utf-8
from __future__ import unicode_literals
from copy import copy
import redis
from blog.permissions import IsOwnerOrReadOnly
from blog.serializers import BlogSerializer, ReplySerializer, ReplyInReplySerializer
from rest_framework import permissions, viewsets, renderers
from rest_framework.decorators impo... | [
"279736390@qq.com"
] | 279736390@qq.com |
b4763a14a248b1f0f0efcbc15e54c47c6fc13e15 | ea18968292a59056bc61b3244cefe72ffef78cd3 | /mysockets/pic_carver.py | e7c4ee910da34a33bd9052c0addbc21a710daac9 | [] | no_license | mladenangel/netlib | 005d472321aeb60de763c2340772118c80bec279 | 15cf2233c9afb59273b04318400507fc6c26799b | refs/heads/master | 2021-07-02T17:55:00.877326 | 2017-09-22T09:16:43 | 2017-09-22T09:16:43 | 103,915,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | # delwin
import re
import zlib
import cv2
from scapy.all import *
pictures_directory = "pic_carver/pictures"
faces_directory = "pic_carver/faces"
pcap_file = "bhp.pcap"
def face_detect(path,file_name):
img = cv2.imread(path)
cascade = cv2.CascadeClassifier("haarcascade_frontalface_al... | [
"noreply@github.com"
] | mladenangel.noreply@github.com |
e9b7132d6589ec6b9e50e266625178a1d3ac89c7 | aff5561456692039166942f3bdeb5b0f04836e87 | /OuterLayers/AdapterLayer/RESTAPI/Endpoints/Comment/GETAnswerComments.py | ac0c9d8213264f14bd43a6da84e03e7ccdd8cf3f | [] | no_license | BinMunawir/MiniOverflow | 5d12c5fd22764ebcf01930686f5a8d7e6ff909e3 | a8172de7cc443d738f734a2325d990fe7c396030 | refs/heads/main | 2023-02-22T20:03:08.218448 | 2021-01-28T04:02:27 | 2021-01-28T04:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import json
from InnerLayers.DomainLayer.DomainSpecificLanguage.UUID import UUID
from InnerLayers.UsecaseLayer.ApplicationUsecases.CommentUsecases import getAnswerComments
from InnerLayers.UsecaseLayer.DataTrnsferObjects.CommentDTO import CommentDTO
from InnerLayers.UsecaseLayer.DataTrnsferObjects.AnswerDTO import Ans... | [
"abdullahbinmunawer@gmail.com"
] | abdullahbinmunawer@gmail.com |
d31fee29f41d7a84bcc9e0f2bc6953fa075e0fdb | 7cfd109b11467a808a8481b8099f1906c646cf80 | /blynkpay/asgi.py | e8d8f02b1756f3d1c9ae159513724233dc2d8117 | [] | no_license | UltraCreation-IT-Solution/BlinkPay | c3b6c1de95cc9f9bd099f5e65ab003be20cef38a | 8e8cb4eae0a416736215fa237ae7e47fa50cf207 | refs/heads/main | 2023-08-19T08:37:51.961088 | 2021-09-29T05:49:50 | 2021-09-29T05:49:50 | 394,994,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for blynkpay project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"rishabh2023@gmail.com"
] | rishabh2023@gmail.com |
ea07e60204dcadc0b5fd7d6305d91563532fd57a | 2a9a136296e3d2abebf3a3dbfbbb091076e9f15f | /env/Lib/site-packages/pip/_vendor/urllib3/poolmanager.py | dd5e68c338aa17148c657138f88181a224ea1079 | [] | no_license | Lisukod/planet-tracker | a865e3920b858000f5d3de3b11f49c3d158e0e97 | 6714e6332b1dbccf7a3d44430620f308c9560eaa | refs/heads/master | 2023-02-18T19:26:16.705182 | 2021-01-23T01:51:58 | 2021-01-23T01:51:58 | 328,032,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,048 | py | from __future__ import absolute_import
import collections
import functools
import logging
from ._collections import RecentlyUsedContainer
from .connectionpool import (
HTTPConnectionPool,
HTTPSConnectionPool,
port_by_scheme,
)
from .exceptions import (
LocationValueError,
MaxRetryError,
ProxyS... | [
"45397160+Lisukod@users.noreply.github.com"
] | 45397160+Lisukod@users.noreply.github.com |
4f54723b6c3b4d448d98b1dff2bb07f6d39ab0a2 | 6248492eb77639ab5c8108acb0ebe55ca2851d61 | /resources/addon.py | df0d5b0f471f7bd9ba61ae93cba6d1ce591d4a73 | [
"MIT"
] | permissive | jyardin/plugin.video.orange.fr | 1f2287d3cf39fafaf4be1c4a57bcc6c64143eec0 | 8fe878072d7315db4d8cf4e7dbad468ba85205a3 | refs/heads/master | 2023-03-28T09:24:52.324166 | 2021-03-23T18:38:30 | 2021-03-23T18:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | # -*- coding: utf-8 -*-
"""Addon entry point"""
import routing # pylint: disable=import-error
import inputstreamhelper # pylint: disable=import-error
import xbmcgui
import xbmcplugin
from lib.iptvmanager import IPTVManager
from lib.providers import get_provider
from lib.utils import localize, log, LogLevel, ok_dialog
... | [
"breizhreloaded@outlook.com"
] | breizhreloaded@outlook.com |
fa567b2bc1cfa7502e7544246dc56e6770291827 | 4a23e92fe85b99b3a0ea3c071e8a5280bc72cc45 | /Solutions/Python/These are not my grades! (Revamped !)(7 kyu).py | fb59d5c06d1db01e857f82a5b968a5157ece3956 | [
"MIT"
] | permissive | collenirwin/Codewars-Solutions | 88c406444a74a6b730e8bfc2eee13025d34c2260 | 14bad3878d3fc37c7e73cbaaaa24cd28f759ce3b | refs/heads/master | 2020-04-05T01:27:56.790811 | 2018-11-06T19:52:32 | 2018-11-06T19:52:32 | 156,437,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | class Student:
def __init__(self, first_name, last_name, grades = None):
self.first_name = first_name
self.last_name = last_name
self.grades = grades if grades != None else []
def add_grade(self, grade):
self.grades.append(grade)
def get_average(self):
retur... | [
"Collen.Irwin@clinton.edu"
] | Collen.Irwin@clinton.edu |
b74dedcc178bc0603b253a6a13b6ac10e05a946d | 104c75a214acd963773641b8a5f78a7450d627fe | /vgg19hcnn.py | f295161dd60650a5398aa5cae9d72a6778cd35b9 | [
"MIT"
] | permissive | ailabnjtech/B-CNN | 5fd9f9a6b0cc0d77be4a603c191ea4ed654b54a8 | 40b78f0fe81120248832609f897be5d04e8d8431 | refs/heads/main | 2023-01-04T05:56:22.893912 | 2020-10-14T11:35:33 | 2020-10-14T11:35:33 | 303,994,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,497 | py | # -*- coding: utf-8 -*-
"""VGG19HCNN.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/github/AdicherlaVenkataSai/H-CNNforfashionImageclassification/blob/master/VGG19HCNN.ipynb
"""
import keras
import numpy as np
import pickle
import os
from keras.models... | [
"562361206@qq.com"
] | 562361206@qq.com |
0d6cfe2c77e0e1bb3ca4bf5fd8f34f7a54259a6c | 923f62f60cc56ab0b0613a8533a9d03de31212b8 | /node_modules/socket.io/node_modules/engine.io/node_modules/uws/build/config.gypi | 1e0abbc56d4f5ed0133415aef049a9eba78c91fd | [
"Zlib",
"MIT"
] | permissive | rcmeng1q84/LeapWatch | 0470ee8222dff4dd455f42c9457280fbf8cf0e22 | e7353bdb3ba0a4f160f922ab041aab8f0bbd5551 | refs/heads/master | 2021-04-15T12:52:01.681642 | 2018-04-06T02:43:14 | 2018-04-06T02:43:14 | 126,636,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,791 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"host_arch": "x64",
"icu_data_file": "icudt56l.dat",
"icu_da... | [
"13718988038@sina.cn"
] | 13718988038@sina.cn |
a23f6fc0c570f48b3fb4aecbbf16d3c49e839959 | 7ae4c0286f214f018e8c60d25af88de8fcfd7a86 | /test.py | c918e842d349ac07d9b48a4b498a477e7015ebbc | [] | no_license | savslug/anime_face | 02ee309c21a27a48074f77eb6b7e6a0b0b3ec1b3 | de0ed7419eb12838e5b8ad44871365b1ec307538 | refs/heads/master | 2020-06-03T03:41:47.450754 | 2018-04-19T15:41:34 | 2018-04-19T15:41:34 | 191,418,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | def extract_faces(images_dir, export_dir='faces'):
"""
与えられたパスの画像からアニメの顔を抽出
facesディレクトリに顔部分を出力
"""
import os
import cv2
import glob
from tqdm import tqdm
# 特徴量ファイルをもとに分類器を作成
classifier = cv2.CascadeClassifier('lbpcascade_animeface.xml')
# ディレクトリを作成
output_dir = export_d... | [
"yu.donarudo@gmail.com"
] | yu.donarudo@gmail.com |
f4ad486dd74607cca129db7b1c244bc715efb4ed | f30364f06528315d7f2f1aab8b6e607e1e946242 | /mangagrabber/src/mailers/__init__.py | e410017168c30e0d7c17279eab70f3c6e09d12c2 | [] | no_license | donald-cl/mangagrabber | adb08ea01bb34383731435a760e4ce4b81da4164 | 771b0958773ba5a962e2738f171dd2602b9822b1 | refs/heads/master | 2020-04-27T11:09:01.757397 | 2014-05-08T01:58:40 | 2014-05-08T01:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from mailers.mail import *
| [
"donaldhui@gmail.com"
] | donaldhui@gmail.com |
62783cd5b5ff72132dd48adef30afb91b761a8ff | 7ca2fd28b2f9a6b65fed33c0a5365222d646ae9d | /data-structures/TwoWayLinkedList.py | 2c12412045b144b28787ba6bb9fd1f093a6e8903 | [] | no_license | KyattPL/algorithms-and-data-structures | b1db73df8abb9ac609b70553ce482765eb7c4775 | a58620df9b7af6e650cce3c21a61b85e5803f2a8 | refs/heads/master | 2022-11-17T08:40:12.330749 | 2020-07-11T15:25:41 | 2020-07-11T15:25:41 | 276,085,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,944 | py | # With Head and Tail
class TwoWayLinkedList:
class Element:
def __init__(self, val):
self.value = val
self.next = None
self.previous = None
def __init__(self):
self.head = None
self.tail = None
def push(self, val):
if self.head is None:
... | [
"siema1234@gazeta.pl"
] | siema1234@gazeta.pl |
03b99fbb2aa8f4041b11fbef045e0f3f7cf1b735 | 6728903c1e95fa7de502a7ba6f3318835cb38513 | /tools/pokemontools/png.py | 3d6934a9f7890b495ece68482cdcceed474a4509 | [] | no_license | Neos21/pokegold | 4cfde2e63cb5bd7487cd320ea325cb14eda2cd34 | 89a078c9e868654efe04695a5221a48f99529982 | refs/heads/master | 2023-01-11T08:55:53.445139 | 2020-11-19T01:41:27 | 2020-11-19T01:41:27 | 266,638,433 | 0 | 0 | null | 2020-05-24T22:55:14 | 2020-05-24T22:55:13 | null | UTF-8 | Python | false | false | 100,636 | py | #!/usr/bin/env python
from __future__ import print_function
# png.py - PNG encoder/decoder in pure Python
#
# Copyright (C) 2006 Johann C. Rocholl <johann@browsershots.org>
# Portions Copyright (C) 2009 David Jones <drj@pobox.com>
# And probably portions Copyright (C) 2006 Nicko van Someren <nicko@nicko.org>
#
# Orig... | [
"entrpntr@gmail.com"
] | entrpntr@gmail.com |
52504bfe4f3f300a1e07ec19a204f2147359d96e | f1f0f4f856c496be221031da4b8f8ccbf9633263 | /hello_world.py | f0956210847cd4ef3cc4710d6ae0fe61ffeca60f | [] | no_license | guitartsword/robot-test | a4fe0d712e0015350faf3647bb84bdec94d00048 | 0ec83e7a46fbed9a4a2ff95cc5c8843205f96de1 | refs/heads/main | 2023-04-12T15:57:38.097123 | 2021-05-07T07:01:16 | 2021-05-07T07:01:16 | 365,143,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import sim
import math
import time
SERVER_ADDRESS = '127.0.0.1'
PORT = 10009
# PORT = 19999
# Cerrar todas las conecciones por si acaso
sim.simxFinish(-1)
# Conectarse a Coppelia Sim
client_id = sim.simxStart(SERVER_ADDRESS, PORT, True, True, 5000, 5)
if client_id == -1:
print('No se pudo conectar')
# Obtener... | [
"guitartsword@gmail.com"
] | guitartsword@gmail.com |
20862d69a7cc2ae87501cca23cc5706c63629912 | 07c131afa3426b7c511f11c247a005bbe0bc21ce | /src/manage.py | c58f18e48e3c72144dd995df5385b6c9c4f4c2bc | [] | no_license | arindamdas612/labelizer | 85fba02b2496a5783d5315bb80f0e32f1947268c | 9f12c61bd3ec9ca476999e2c678bd5564e12d5ba | refs/heads/master | 2022-12-01T18:29:45.873715 | 2020-07-13T15:32:38 | 2020-07-13T15:32:38 | 245,465,599 | 0 | 0 | null | 2022-11-22T05:22:32 | 2020-03-06T16:18:43 | JavaScript | UTF-8 | Python | false | false | 629 | 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', 'labelizer.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"arindamdas@Arindams-MacBook-Air.local"
] | arindamdas@Arindams-MacBook-Air.local |
e274b53ba1f53871673d32e9cc678f0f42fd2f7c | b88040d1d00d025de1fa96eac8af2d324291e6a2 | /Assignment4/Assignment_4Tests.py | ee3bb0c077fd3ae619071679f0b2b92ae6630329 | [] | no_license | brianphan90/CPE202 | 5a1f59d4b20496e35bddc3e597a51d64fe829758 | fe2bb58a8f177d32690b1fd1298125f684f3c0d6 | refs/heads/master | 2020-03-09T21:46:12.062397 | 2018-11-30T08:15:39 | 2018-11-30T08:15:39 | 129,018,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py |
from priorityqueue import *
from huffman import *
import unittest
class Asg4(unittest.TestCase):
def test_priorityqueue_1(self):
pq = PriorityQueue()
pq.enqueue('a', 0)
self.assertEqual(pq.front(), 'a')
pq.enqueue('b', 5)
self.assertEqual(pq.front(), 'b')
pq.enqueue('z', 100)
... | [
"noreply@github.com"
] | brianphan90.noreply@github.com |
2805e23589388f98356cdfb31d8b2c7f0ac9e81e | 862cde78fa4b2e7a8043276d2a78a51715d66cf9 | /CSC-Python-2021-1/I/I.py | 174e25cfc98aece92a23ff81be78e2e0cc09223e | [
"MIT"
] | permissive | coldnegative/CSC-Python-2021 | 8c21c639f4dbf0f7c337349fdc8d6300b45abc9d | aee9acb4e1fc3afab4d88d6c6a9a22363f52b321 | refs/heads/main | 2023-03-06T23:46:37.075471 | 2021-02-21T08:38:13 | 2021-02-21T08:38:13 | 339,986,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def writer(line):
with open("output.txt", "a") as f:
f.write(line)
def main():
"""Дан секвенированный геном какого-либо вируса.
Нужно определить количество нуклеотидов a c g t
в геноме в таком порядке."""
# Code goes over here.
count_a = 0
... | [
"vologinmp@gmail.com"
] | vologinmp@gmail.com |
8edce78411cf51da5c3597e357ac88e57e917f26 | 319e87285382cf54c844cb1ff80ffdcb4a4b4b70 | /algorithm/others/coin_change_hieu.py | d6437626d91c35d4a986c758329c76e814cceb8b | [] | no_license | chaupmcs/python_practice | 5473926a29661ec8da21fba4a41dce8b5581350d | f25105d0aea40ebc1015fe8e39dcb0cd1dcd044d | refs/heads/master | 2020-05-27T10:34:52.409083 | 2019-05-26T03:55:51 | 2019-05-26T03:55:51 | 188,584,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | """
Created by chaupm at 2019-05-17
"""
import math
class Solution:
def coinChange(self, coins, amount):
def countStep(subAmount, map):
min_of_list = math.inf
for coin in coins:
if (subAmount - coin) in map:
min_of_list = min(map[(subAmount - ... | [
"chaupm.cs@gmail.com"
] | chaupm.cs@gmail.com |
0752d8ac03b45b74c1e14728a331fb012029a3c9 | 05a70c12df808455100598d8a6fdb5635c641ab8 | /Ago-Dic-2019/JOSE ONOFRE/SegundoParcial/ApiDisco.py | dabba11527d0d7d17a81d67cbb7e88b14651cfd4 | [
"MIT"
] | permissive | Jonathan-aguilar/DAS_Sistemas | 991edcc929c33ba9bb8bc84e741b55c10a8420a3 | 4d02efc64161871084df1bff258112351e5d1241 | refs/heads/development | 2023-07-24T12:26:54.698452 | 2021-09-02T20:52:26 | 2021-09-02T20:52:26 | 289,764,892 | 1 | 0 | MIT | 2021-09-02T20:52:27 | 2020-08-23T20:54:55 | Python | UTF-8 | Python | false | false | 973 | py | import musicbrainzngs
import pprint
import sqlite3
import ClaseDisco
import BDMusic
musicbrainzngs.set_useragent('musicbrainzngs','2.0')
#r = musicbrainzngs.search_artists(query='area.name:Los Angeles',limit=5)
r = musicbrainzngs.search_releases(type = "group", country = 'US', tag=['rock','metal'],limit= 100)
for di... | [
"onofreeduardos@gmail.com"
] | onofreeduardos@gmail.com |
5adac1321b757ffa1b6144b1fdd7c78c5b76e4d6 | ff5892487c262ce845a9996a282d3a2fdb1a3b15 | /URI_2651.py | af43f3470162a3a2559044957f9345503771e9ee | [] | no_license | dankoga/URIOnlineJudge--Python-3.9 | d424a47671f106d665a4e255382fc0ec3059096a | f1c99521caeff59be0843af5f63a74013b63f7f0 | refs/heads/master | 2023-07-15T08:32:11.040426 | 2021-09-03T13:27:17 | 2021-09-03T13:27:17 | 393,991,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | name = input().lower()
if 'zelda' in name:
print('Link Bolado')
else:
print('Link Tranquilo')
| [
"dankoga2@gmail.com"
] | dankoga2@gmail.com |
fe854d01dea7173d612f68b1b08c4a296e3c2832 | 6599d86684020139574241cf88ab0966bfd11f27 | /nas/greedy.py | d96a24441bd11756881fb61e4dd11c9622a3e5cf | [
"MIT"
] | permissive | kepengxu/autokeras_cooper | 54026798a038b469fff7a3db15583f7eb9e7c24b | 960098d5e0691a0c16a16fc7641b23a29fd17f20 | refs/heads/master | 2022-11-25T09:57:20.377158 | 2019-03-25T13:41:02 | 2019-03-25T13:41:02 | 177,594,139 | 0 | 1 | NOASSERTION | 2022-11-03T14:02:10 | 2019-03-25T13:40:29 | Python | UTF-8 | Python | false | false | 3,785 | py | import time
from copy import deepcopy
from autokeras.custom_queue import Queue
from autokeras.bayesian import contain, SearchTree
from autokeras.net_transformer import transform
from autokeras.search import Searcher
class GreedyOptimizer:
def __init__(self, searcher, metric):
self.searcher = searcher
... | [
"xkp793003821@outlook.com"
] | xkp793003821@outlook.com |
96156d51e8cf1c52991bca0587c7c4bec623db93 | 3d5ff3f273cf5bf444db948e3d220e99b718217b | /books/models.py | a8fa20e1e8924101fbce1be0ab4ab46c052d8856 | [] | no_license | xinmang/myblog | b481dd3323dc5d687e30a7f50a9720899f517778 | 3e7f9ce5dcd05d83338f7c707e013ac2107c505d | refs/heads/master | 2020-03-17T14:50:01.784759 | 2018-05-16T15:35:37 | 2018-05-16T15:35:37 | 133,687,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from django.db import models
# Create your models here.
class Publisher(models.Model):
publisher_name = models.CharField(max_length=30)
address = models.CharField(max_length=50)
city = models.CharField(max_length=60)
province = models.CharField(max_length=30)
country = models.CharField(max_len... | [
"xinmang@126.com"
] | xinmang@126.com |
d0d96ffa0a203583d64e7b115aebcb79275c7f5b | a4a4d4b20aaaf37f4ada190e2e1840ae09c835a9 | /generator/group.py | c636120d033dc53344570ddcfe5d713c709d712a | [
"Apache-2.0"
] | permissive | SvetlanaPopova/ironpython_training | 9196988bbfcb402f06f81e5ed46ed41c2e0141ad | 03bfd2762421267f428529193e8f7903d366fbf0 | refs/heads/master | 2021-01-10T21:21:08.299364 | 2015-07-29T17:35:22 | 2015-07-29T17:35:22 | 38,529,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | __author__ = 'User'
from model.group import Group
import random
import string
import os.path
import getopt
import sys
import time
import clr
clr.AddReferenceByName('Microsoft.Office.Interop.Excel') #, Version=0.0.0.0, Culture=neutral, PublicKeyToken=')
from Microsoft.Office.Interop import Excel
try:
opts, arg... | [
"sv_popova@bk.ru"
] | sv_popova@bk.ru |
20398891f864a11de2e3bee99bdc0ac437de2638 | 7239d389894613ef132edb1198a4f47cb2b65f92 | /packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py | 9e4e94f0bf6dbe97eabb67d95ad3967be6f5d3d3 | [
"MIT"
] | permissive | fast3dd13sa/plotly.py | 2169417b72481ff2937b5a9ce90d426cd1cccd80 | e778c6b5e6ae9665d7a5e2ddb666f43806df3959 | refs/heads/master | 2022-04-26T01:11:46.345181 | 2020-04-27T19:49:56 | 2020-04-27T19:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,724 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Title(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scatterpolar.marker.colorbar"
_path_str = "scatterpolar.marker.colorbar.title"
_valid_props =... | [
"noreply@github.com"
] | fast3dd13sa.noreply@github.com |
7911c77860d4e664161d0c1fa934ba137de8f04d | 6e790a743b4fd4ebecd82124d72f0628ef81f179 | /users/serializers.py | b3fffd1ff94dded25cf0a540190266e684baf40a | [] | no_license | KJablonski08/building_futures_django | 55e62f4b60f6faab6faeba92705d7ad1c7f94b40 | 94140d8bd728852ea7fcb3c0d720b90dd2983178 | refs/heads/main | 2023-02-16T17:18:38.911551 | 2021-01-19T02:49:07 | 2021-01-19T02:49:07 | 320,074,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from djoser.serializers import UserCreateSerializer, UserSerializer
from rest_framework import serializers
from . import models
class UserCreateSerializer(UserCreateSerializer):
class Meta(UserCreateSerializer.Meta):
model = models.User
fields = ('id', 'email', 'username', 'password', 'name')
| [
"kjablonski08@gmail.com"
] | kjablonski08@gmail.com |
87e1c4b4185b8e365e5367441a058d90688eb348 | 6b62b8a84a7aba88d7404fc6270c00ac6ecc38e8 | /Python/1_Python Projects/1.county_project/Automation Project Output Files/untitled-1.py | bc3b7d742b7c836a2cfe542c531355d43ab0b7d3 | [] | no_license | bharatpk/Aroha_Tecnology_Workspace | fbeb5a1b1ef846c25f094bfa2398c1b15889bd85 | ebd6727b2ae637e7256531e3e48d663af1fd3932 | refs/heads/master | 2021-01-23T08:52:32.463143 | 2015-08-05T12:23:19 | 2015-08-05T12:23:19 | 39,793,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import glob
class merge :
def mergingfiles():
read_files = glob.glob("*.txt")
with open("result.text", 'a') as outfile:
for f in read_files:
with open(f, "r") as infile:
outfile.write('\n'+infile.read())
... | [
"bharatpk0@gmail.com"
] | bharatpk0@gmail.com |
2bd24e25c4900d6cefe399aa6ac942dc2c4f9795 | 2b4ed6bab74a924cd4286b6714d763d0fcb2595e | /polls/urls.py | 35ca91de5648fe61f1d8af90fba20e2d82d1dda4 | [] | no_license | karthikravinatha/mysite-demo | 6e8e764ff477821b95b4a3df2d0a25081b438509 | 79126ca90111a016fd9e1e99e48f57ea15bb055d | refs/heads/master | 2020-08-19T18:26:46.895233 | 2019-10-18T09:10:40 | 2019-10-18T09:10:40 | 215,942,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
path('',views.index,name='index'),
path('<int:question_id>/',views.detail,name='detail'),
path('<int:question_id>/result',views.results,name='results'),
path('<int:question_id>/vote',views.vote,name='vote'),
] | [
"kar@gmail.com"
] | kar@gmail.com |
dc6a678d7a3dfe622eefcf7d4dde2c4c36e08b56 | 3e4b01aa9ee1892726519cdca30336764fb32c46 | /build/lib/octopus/plotting_module.py | 40a50bc2ad194ababca1c39ee6ddb268a7600813 | [] | no_license | copperwire/cephalopod | 8376902d22871e1358b304dc12df029553f2b7e1 | d06a8c65d4084ab3a3c5d582b9a63f705e6445b9 | refs/heads/master | 2021-01-15T15:25:47.312018 | 2016-06-14T23:39:34 | 2016-06-14T23:39:34 | 53,581,103 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | from octopus import file_handler
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
import numpy as np
class plotter:
def __init__(self, filename):
self.filename = filename
def pathfinder(self):
"""Find full path to filename """
def plot_mac... | [
"solli.robert@gmail.com"
] | solli.robert@gmail.com |
8b834d6d57bdf5ca4ab43efb2e26e1f0348cd261 | 3c80780a7549e23312dd2e134503bda9a1a068a4 | /DjangoWebProject5/home/views.py | 36d531aabdc125e9f2ef5c3967371eae8cadcefe | [] | no_license | halilibrahimm/Django-Post-Web-Application | c77333b9baa8341def1e60ea3034217f3c8670ff | e7f0b228c97b75fa57b5c7ef6f46c65e6539f148 | refs/heads/master | 2020-04-11T00:27:42.448132 | 2018-12-11T21:39:56 | 2018-12-11T21:39:56 | 161,387,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.shortcuts import render,HttpResponse
def home_view(request):
if request.user.is_authenticated():
context={'isim':'Halil'}
else:
context={'isim':'Misafir'}
return render(request,'home.html',context)
# Create your views here.
| [
"email@example.com"
] | email@example.com |
9bb4920df1debf2188236368aa71663f6901038b | 96aa81997f7f59f3c5062a3c5a9424d351762c77 | /covid19/covid19/settings.py | 0c1a52d196628bd4faaa7d07c159b020b92883b0 | [
"MIT"
] | permissive | geumilbae/covid19 | 4c138868b06565003ed0b07e45b693c19eabbe85 | 84b29aff9500ee84586172ced75974ba90a25def | refs/heads/master | 2022-11-07T23:42:15.886638 | 2020-06-23T03:02:26 | 2020-06-23T03:02:26 | 274,110,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,057 | py | """
Django settings for covid19 project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
im... | [
"geumil.bae@projectybl.com"
] | geumil.bae@projectybl.com |
4730516c37bcf18d3631c49bfe2d9c3476a0f8ec | a96f623c237985fd77927f55c9b3335e536117a6 | /hapi/test/test_contacts.py | 1ff4ad3b5f82101d23633ba53909ddea2b554764 | [
"Apache-2.0"
] | permissive | jpetr/hapipy | 47793955175118cc9427681d5dd3b369527da0a3 | 07db3bb7280654a6021ab3e95aad3cdca2c5cedc | refs/heads/master | 2020-12-25T05:26:49.270540 | 2012-06-12T22:32:49 | 2012-06-12T22:32:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,466 | py | import unittest2
import helper
import simplejson as json
from nose.plugins.attrib import attr
class ContactsClientTest(unittest2.TestCase):
""" Unit tests for the HubSpot Clients API Python client.
This file contains some unittest tests for the Clients API.
It is not intended to be exhaustive, just simpl... | [
"jpetr@hubspot.com"
] | jpetr@hubspot.com |
6a36669b8243e90144c2521c0c1d74ad42ac2682 | 0d2a02e4badf0c4f24060a709ac9a5f5fbf86796 | /RobotDoge/Debug/Create2_TetheredDrive.py | dcca016820b36d93a738a13383a0dfa96b9772ef | [] | no_license | tjwilder/Ice-Cream-Puppy | 8923d7b07cdacd6d480d59852d2b8c76fffe8ee9 | ede11679d296f5166defb06611400b7820230598 | refs/heads/master | 2021-05-29T19:57:14.940663 | 2015-10-25T15:58:41 | 2015-10-25T15:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,943 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 27 May 2015
###########################################################################
# Copyright (c) 2015 iRobot Corporation
# http://www.irobot.com/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the... | [
"tk100794@gmail.com"
] | tk100794@gmail.com |
cca0aa41f8a28e2f2a0634efb775b39109545a5d | 7b579a4b0a4f0841650f18cfdec502dcd7b0b83c | /ircd/adminserv.py | cf2bf8657c43d98b241e1cfafe4c6ad17cf5df05 | [] | no_license | SpoonRocket/nameless-ircd | 7d72d9970da1aa0aa1ff3ee5c3cf022b4dc3741e | d4c7877145103bdccf52e8297a9e130720486fab | refs/heads/master | 2020-12-24T15:40:13.599225 | 2013-07-30T21:51:24 | 2013-07-30T21:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,299 | py | from asynchat import async_chat
from asyncore import dispatcher
import os, socket, time
from nameless import services, util
locking_dict = util.locking_dict
class adminserv(services.Service):
def __init__(self,server,config={}):
services.Service.__init__(self,server,config=config)
self.nick = ... | [
"ampernand@gmail.com"
] | ampernand@gmail.com |
dbfa4c587a9c4313aa29f64ec78cbe79f67f35f5 | 3c4c57a0feea3eb30ade51553153dd30d47581b0 | /basics/classes/learning_class.py | 46e946e1a660b82ef8dca71416df6b4b5c13616f | [] | no_license | ShivSoni5/Python-Practice | e165824d829a791503eb3957f8e93cd3230d0b57 | 769b0f4898fcf8de52122045571aa31e678b4e9f | refs/heads/master | 2021-10-14T16:05:46.474990 | 2019-02-05T04:48:03 | 2019-02-05T04:48:03 | 101,506,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/python3
class about_me:
#__init__ is just like constructors in C++
def __init__(self,name,college,year):
self.name = name #these three are instances
self.college = college
self.year = year
def my_name(self):
print("Hello, my name is", self.name)
def clg_name(self):
print("I a... | [
"shivsonic05@gmail.com"
] | shivsonic05@gmail.com |
07a04f5bbce51d5e87bb50681fe02389393bd786 | df6606f995b3e81d5f95fdc0abdc8eec09893df5 | /outlier_pooling/losses/cross_entropy_loss.py | adb0df7491d9edce852a5fff2155befad9c03153 | [] | no_license | wakamori-k/cren | 321f16073c506423ba329bbc2121cfe0d5aadeae | 1ccf1d0a36b0ecbce41f11875d9b4193fff4d3f4 | refs/heads/master | 2023-03-04T01:39:33.060006 | 2021-02-16T18:16:40 | 2021-02-16T18:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from utils import seed_torch
import torch
seed_torch()
from .base_loss import BaseLoss
class CrossEntropyLoss(BaseLoss):
def __init__(self, **kwargs):
assert kwargs['train_type'] == 'classification', "Cross Entropy Loss can only be used for classification."
super().__init__()
self.criter... | [
"noreply@github.com"
] | wakamori-k.noreply@github.com |
0d93d68b19810b8e89749bc128fd79b93304d5e0 | bcca0627e186697f83065535d5fcaac3ede739c7 | /mlp/MultiLayerPerceptron.py | c1c3341d38d18a5391fea53cf10de5ab9481c73e | [] | no_license | owinogradow/soft-computing | 60d088a1064b3dc74eb95657c970989ec4904541 | c207d67efec7fb10b02fa94341972202700974e1 | refs/heads/master | 2022-12-26T01:15:15.199828 | 2020-10-02T12:27:50 | 2020-10-02T12:27:50 | 300,597,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,806 | py | from InputNeuron import InputNeuron
from Neuron import Neuron
import random
import numpy as np
class MultiLayerPerceptron:
def __init__(self, inputLayerSize, hiddenLayersSize, outputLayerSize, epochs, learningStep=0.5, biasNeuron=False):
self.learningStep = learningStep
self.bias = biasNeuron
... | [
"ol.winogradow@gmail.com"
] | ol.winogradow@gmail.com |
3e80e221a43c5ad66d7a3988f1c9082f2936aca6 | 2b0bd3847f0a5a1823d2f72ecee0ce7069102dd4 | /benchmark/benchmark_parsing.py | 8db4bbeee35b794b150c7869ab9f64ffee31b1d8 | [
"MIT"
] | permissive | stestagg/dateformat | d7c7767cd1c90b92a192e1b420bee8340bb8b068 | 3a99e891e586d73fafca85b4c591966ebbc89b36 | refs/heads/master | 2022-12-06T23:55:38.851452 | 2022-11-17T11:30:00 | 2022-11-17T11:30:00 | 113,165,866 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | from collections import defaultdict
import random
import time
import datetime
import dateformat
import arrow
import iso8601
import ciso8601
import dateutil.parser
import dateparser
def make_list_of_dates(n=1e4):
dates = []
for i in range(int(n)):
timestamp = random.random() * (time.time() * 2)
... | [
"stephenstagg@Stephens-MacBook-Pro.local"
] | stephenstagg@Stephens-MacBook-Pro.local |
e91913141254ccbf8026f7e621212cbf03a9054f | 5f6e26fabdec868a3d4851de827054ca58d1c2af | /server/src/web_app/app.py | 6493854d5fd3961bd3967d905aa002e25db1e172 | [] | no_license | abingham/runner_repl | fd2a1187db27cca4f5971d1f846a68b091a33199 | e498739a34f289c40a4cdfcc7675c94e1fb18ebc | refs/heads/master | 2021-05-02T10:40:06.632053 | 2018-03-09T08:46:29 | 2018-03-09T08:46:29 | 120,760,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | """Create an run the aiohttp Application.
"""
import aiohttp
import docker
import docker.errors
from sanic import Sanic
import sanic.exceptions
from .handlers import Handler
from .logging import logging_config
def _configure_routes(app, repl_port, image_name, network_name):
"Add routes to the application."
... | [
"austin.bingham@gmail.com"
] | austin.bingham@gmail.com |
4671e43342e0179795ecbef9138be7fb1df261e3 | 57885bbb4f2005a9caac065f59fb7bb59f21d708 | /Week_9/finance/register/test_register.py | 5ad6596fb1805cd789a63decff3f8768a132784b | [] | no_license | sprdave/CS50-2021 | af9922edbe07ea4d1e01abc7fde6c708c868e904 | 4386382492200942a4982b74d1a5c8836499c8b4 | refs/heads/main | 2023-08-29T21:58:25.435901 | 2021-10-27T10:05:22 | 2021-10-27T10:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | from register import register, _is_user_present
from app_config import db
from app_config import NAME_EMPTY, PSW_EMPTY, PSW_WEAK, USER_PRESENT, \
DB_ERROR, NOT_ADDED
from mock import patch
import pytest
import sqlite3
@pytest.fixture()
def mock_users_table():
"""create inmemory db `users` and fill it with on... | [
"shkliarskiy@gmail.com"
] | shkliarskiy@gmail.com |
e33e2bedd7fe5454ae3ed59196d7d6882a8db79d | 8473bafb01382d9b257dc39acba95b5c4d20b576 | /Lab13/p2/main.py | c889123224778294d9d27bc61b85a560c0a382c5 | [] | no_license | rsvalentin/PP | 616a5d2178d4894930d15e17e7150a7724f9ef88 | 8887a23620fe6bc46d8e086ed26e540274e2d868 | refs/heads/main | 2023-06-10T09:15:23.473559 | 2021-05-25T10:16:58 | 2021-05-25T10:16:58 | 382,658,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | n=int(input("Introdu n ="))
init_list=(n ** 2 for n in range(n))
init_list=list(init_list)
print(init_list)
res=list(filter(lambda x: x % 2 == 0 , init_list))
print(res) | [
"romann.valentin@gmail.com"
] | romann.valentin@gmail.com |
b135e59d514744f8cb66c3219ec2acd7c9c7bd00 | f0967325d75f8423c7d8971502c02e82d0249305 | /CMSE202/in_class_assignments/day-22-in-class/noaa_scraper.py | aae1cc4fff24078195ed19c95c57e97f4e25de78 | [] | no_license | Mart1973/bioinformatics-iGEM-2020 | 9e7a0dbcb058c2de875cf0931d1f185ca8ebc52c | acf6ffdac249c6f4013c1c30b55b9eb7a1a14fe9 | refs/heads/master | 2022-06-10T16:19:01.705442 | 2020-05-07T03:05:01 | 2020-05-07T03:05:01 | 261,261,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,113 | py | #link to libraries neede by this notebook
import os
import numpy as np
from html.parser import HTMLParser
from urllib import parse
from urllib.request import urlopen
from urllib.request import urlretrieve
#following are needed for the progress bar
from ipywidgets import FloatProgress
from IPython.display import displ... | [
"jense117@msu.edu"
] | jense117@msu.edu |
2a12c684d5a4e85e4633e09308985baa95ee93ab | 6d58114b26a2a5203c2e9b23991fa38008cc076b | /mainapp/migrations/0029_auto_20160215_0854.py | 3ac289dd98e051721fea437831f7f760c3e49ed5 | [] | no_license | Ancelada/gls | 498156c72aea45706f008041b4e69fcbad550c89 | 2801f1c61553e76c69ba1079658adedfe5e9f494 | refs/heads/master | 2020-04-16T02:30:12.632726 | 2016-06-06T12:07:26 | 2016-06-06T12:07:26 | 49,003,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-02-15 05:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0028_auto_20160215_0846'),
]
operations = ... | [
"danydonatto@pochta.ru"
] | danydonatto@pochta.ru |
de20f91f04f9d5ba1bd320eba6830c2ad6d878c6 | 5df73356ab44d1f6a74deaadccf1c9f0de2dee3b | /generators.py | 070cfd9fed8c005692f274f4f3c2996e25efece7 | [] | no_license | Furtado145/Snakers-and-Ladders | 8020a72d2a5ac1636e0957016e1bd551eafa5908 | c611c6c25bb297c564bf318e0528e832575f1871 | refs/heads/master | 2023-06-17T00:16:41.568056 | 2021-07-07T18:28:19 | 2021-07-07T18:28:19 | 371,570,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | import numpy as np
board = list(range(1, 101))
# Generate a dict of random snakes in game
def gen_snakes(x):
dict_snk = {}
v_max = len(board) - 10
v_min = 10
for i in range(x):
key = np.random.randint(v_min, v_max)
if key in dict_snk:
key = np.random.randint(v_min, v_max... | [
"felipeffurtado.eng@gmail.com"
] | felipeffurtado.eng@gmail.com |
4c7323b9f3ee5682e4e59b2d3ea3a2b23f93fdd5 | 5bda4162d129daf1e4b0ba8191ebce503df0042d | /S9/wrapper/train_test.py | d051e45110fa420819308df39e55d82ee7731a22 | [] | no_license | MANU-CHAUHAN/eva5 | 72a6de32fe895087fdd6a7ae7d87b88c6ddc638c | 8a1cd5e5295752814e019b4d17b1701fb932dffd | refs/heads/master | 2023-01-08T11:25:35.208293 | 2020-11-01T00:28:18 | 2020-11-01T00:28:18 | 287,816,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,015 | py | import torch
from wrapper import utility, CONSTANTS
def train_test(*, model, device, train_loader, optimizer, epochs, scheduler, test, test_loader, tracker, loss_fn,
l1_lambda=None, l2_lambda=None):
if CONSTANTS.L1 in utility.get_config_details()[CONSTANTS.REGULARIZATION].keys():
l1_... | [
"manuchauhan1992@gmail.com"
] | manuchauhan1992@gmail.com |
f61c4f77665b0ad6f34b7a5106028f6df2ae3df9 | e79e3974f877be62f96bb575bbe84c5fe70e68b7 | /ex041.py | b186cea44aeea07cef29bbdf57b65dbf251040fe | [] | no_license | anncarln/start-python | 885ea5b8da8533035ab90edc1e7b52741421b76a | 964f3ed54a2a05f3999bb30bdcd93dbdf816d0e0 | refs/heads/master | 2023-06-29T01:57:47.190743 | 2021-08-08T03:18:31 | 2021-08-08T03:18:31 | 282,767,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from datetime import datetime
ano_nasc = int(input('Ano de nascimento: '))
today = datetime.now()
ano_atual = today.year
idade = ano_atual - ano_nasc
if idade <= 9:
print('Classificação do atleta: MIRIM.')
elif idade <= 14:
print('Classificação do atleta: INFANTIL.')
elif idade <= 19:
print('Classificação d... | [
"carolinanna93@gmail.com"
] | carolinanna93@gmail.com |
5b48c495ff9736b4c26039bbe62a36c8f57abbbd | 2923e3a3f4244606aba6d86f8e252db58758f359 | /happy_client/cms_plugins.py | e7d2d9c6790a7fe8f6a9f7f05b6b1f2a1d0071b5 | [] | no_license | AlexeyKutepov/telegraph-factory-project | d026ade3f929b16ec2821637443a5316696de402 | 888437cfadaf78e621b4b4ae52f9eebedf8f3ec7 | refs/heads/master | 2021-01-11T11:07:32.380736 | 2017-01-20T09:01:14 | 2017-01-20T09:01:14 | 54,378,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from .models import HappyClient
from django.utils.translation import ugettext_lazy as _
class HappyClientPlugin(CMSPluginBase):
model = HappyClient
name = _("Happy Client Plugin")
render_template = "happy_client.html"
ca... | [
"a.kutepov@voskhod.ru"
] | a.kutepov@voskhod.ru |
134f54e4d3b4d14b56b89060ab1e1f65a93c8446 | b8e6e7d7a1fa78308fdf2c24b4b77cb1827706c5 | /Tkinter-button.py | 887fc5984cec006d3271973aee4d9a3749b39d0e | [] | no_license | Shaxpy/Experiments-with-GUI | 14496095c9dac30513352ffe0adda9a19520a584 | 231d6af8435ce5f2b0a73d8f9000837c4d2ee919 | refs/heads/master | 2020-12-03T17:57:46.159490 | 2020-06-14T22:31:24 | 2020-06-14T22:31:24 | 231,419,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | import tkinter
from tkinter import *
root=tkinter.Tk()
root.title("Buttons")
root.geometry("400x500")
bt=Button(root,text="Button 1",width=15,height=2)
bt.pack()
#grid()
#place() ---pixels
bt2=Button(root,text="Button 2",width=15,height=2)
bt2.pack()
bt3=Button(root,text="Button 3",width=15,height=2)
bt3.p... | [
"noreply@github.com"
] | Shaxpy.noreply@github.com |
e278cbf87b2c2687625f9ded9ff70b3fd8868829 | fc4718c75a259c7878970916f33bc420e82562d0 | /tensorflow_cnn/other/model_train.py | 8dcc990b079e002eb58d1416b8134b0ee3bfd7da | [] | no_license | DzrJob/spider | b2f15405caa93ecf185296a2a4ed8b9b4c5123c3 | cd4b105433a6a83def2bf11c046a3769204cd44e | refs/heads/master | 2020-05-04T00:24:48.535406 | 2019-05-07T14:52:18 | 2019-05-07T14:52:18 | 178,880,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,121 | py | # -*- coding:utf-8 -*-
# name: model_train.py
import tensorflow as tf
from datetime import datetime
from util import get_next_batch
from captcha_gen import CAPTCHA_HEIGHT, CAPTCHA_WIDTH, CAPTCHA_LEN, CAPTCHA_LIST
def weight_variable(shape, w_alpha=0.01):
"""
初始化权值
:param shape:
:param w_alpha:
:r... | [
"dzr_job@163.com"
] | dzr_job@163.com |
ae8d871248e22663934a067a0893086a8d59a99e | 7461c2d14236bd5bc50bd0a91dc682b1d1e44980 | /Problem Set 3 Loop/3.3.6.factorial.py | 59f1bb743bfe078de999ac7a091906f9474d3551 | [] | no_license | Jugal-Chanda/python | e4aece2eb3c16419be025cb79ff731321978ae3c | 1549287fcfb2d2339cac79ba1e52f904a5dae07b | refs/heads/master | 2021-09-10T09:14:15.884631 | 2018-03-23T10:55:54 | 2018-03-23T10:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | #find the factorial of a number
#Author Name : Jugal Kishore Chanda
print("\nAuthor Name : Jugal Kishore Chanda\n\n")
# this program is for finding factorial of a number
print("please input a number for factorial ",end="")
x = int(input())
fact = 1;
for i in range(2,x+1):
fact=fact*i
print(f"The factoria... | [
"noreply@github.com"
] | Jugal-Chanda.noreply@github.com |
8d12711a7c2803e51801c32746b622d5a4c04a8e | c051bafb897c69f3bdd0252709a0d63c0b9d1cca | /www.py | 1c150527f1c2878ada0725977296464d48fa0423 | [] | no_license | IronPanda0/pethos | bdf08f9f777a199b33cc63b5f50002985c7a1b5a | 3f359560d68c60d14aba24c4c04f66158cea522c | refs/heads/master | 2023-04-09T11:43:07.167992 | 2021-04-02T16:30:32 | 2021-04-02T16:30:32 | 352,262,287 | 0 | 1 | null | 2021-04-19T02:30:54 | 2021-03-28T06:56:29 | Vue | UTF-8 | Python | false | false | 1,060 | py | from flask_sqlalchemy import SQLAlchemy
from init import *
from system.view import welcome
from system.testModule.question import question
from system.caseModule.case import case
from system.caseModule.animal import animal
from system.caseModule.category import category
from system.caseModule.disease import disease
fro... | [
"2632235311@qq.com"
] | 2632235311@qq.com |
ca2a80d1d23ffb8ac32db9977cd08b406b4fc2d8 | fc212767c6c838360b62a3dcd8030a1dfcbf62fc | /muddery/events/event_actions/action_message.py | c2917e6eefab1d69712c5a206e623b98a83b241a | [
"BSD-3-Clause"
] | permissive | caibingcheng/muddery | 24d6eba76358621736e6a3d66333361239c35472 | dcbf55f4e1c18a2c69576fd0edcec4699c1519b9 | refs/heads/master | 2021-05-19T09:49:19.319735 | 2020-03-29T03:55:51 | 2020-03-29T03:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """
Event action.
"""
import random
from django.apps import apps
from django.conf import settings
from muddery.events.base_interval_action import BaseIntervalAction
from muddery.utils.localized_strings_handler import _
class ActionMessage(BaseIntervalAction):
"""
Attack a target.
"""
key = "ACTION_ME... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
deecc2d8cc30d19df956fb3e1b6e5a9aeb4f7031 | bb2c221ceea66ddd82387c4b40d4b04b6e1836aa | /Esoft/cadastro/views.py | 6afbb14c7b07e4d6e706cbc1e5de38593ab3f007 | [] | no_license | diegobonani/Django | f583a2f3ef9ec665b2196c0ed2189f88fcdaac90 | d2a95752224ec79e9c9804c66abf1104ef952368 | refs/heads/main | 2023-03-03T05:48:08.254754 | 2021-02-09T07:01:23 | 2021-02-09T07:01:23 | 337,309,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | from django.shortcuts import HttpResponse, render, redirect, get_object_or_404
from .models import CadastroPessoas
from .forms import RegistrarForms
import requests
def pessoasCadastradas(request):
data = CadastroPessoas.objects.all()
return render(request, 'pessoasCadastradas.html', {'data': data})
def pagin... | [
"diego.bonani20@gmail.com"
] | diego.bonani20@gmail.com |
43c973225f1208537375399480ae546624b06c26 | 421a94f2c4c57366d1c61d80226060629f93ee93 | /vagrant/tradyfit/app/__init__.py | 70142dcae203d950355a051784e19130495261f0 | [
"MIT"
] | permissive | rosariomgomez/tradyfit | ae8c966f134acba1385a995d9c4bf8a4e48c7175 | a61175729b70a194f874197848f1cbad1061e3d0 | refs/heads/master | 2020-12-24T13:52:46.311601 | 2015-05-07T21:05:13 | 2015-05-07T21:05:13 | 31,042,365 | 2 | 1 | null | 2015-04-19T22:27:39 | 2015-02-19T23:25:37 | Python | UTF-8 | Python | false | false | 1,538 | py | from flask import Flask
from flask.ext.bootstrap import Bootstrap
from flask_jsglue import JSGlue
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
from flask.ext.moment import Moment
from flask_limiter import Limiter
from flask.ext.mobility import Mobility
from opbeat.contrib.flask i... | [
"rosario.mgomez@gmail.com"
] | rosario.mgomez@gmail.com |
2b38f756de000137ddfe4d824dbe8a15a7426bf0 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/shared/fortifications/context.py | 5e9d38fbfb87ce72169db08d58c8b43d18c10d4e | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 15,527 | py | # 2016.02.14 12:41:26 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/fortifications/context.py
from constants import REQUEST_COOLDOWN, PREBATTLE_TYPE
from gui.prb_control.context import PrbCtrlRequestCtx
from gui.prb_control import settings as prb_settings
from gui.prb_control.prb_getters im... | [
"info@webium.sk"
] | info@webium.sk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.