repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lillianaloha/reinforcement-learning | 6,176,163,012,705 | 5c904a626e25862fadded6283978f3fc040c85f8 | 00472201d7237bcf4e06c7617b54b5c25e5f9422 | /result.py | 5864026dfcd9506e7d406a3c1941660b562fdf1e | [] | no_license | https://github.com/Lillianaloha/reinforcement-learning | 23753bd9d4fa1e2c89d3c0ed791d3f1b5eab0835 | 62040423d064f2ce8e530a13a989daa868220c14 | refs/heads/master | 2021-04-30T10:03:19.945220 | 2018-02-13T01:41:34 | 2018-02-13T01:41:34 | 121,325,279 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def result(action1p, action2p, winnerp):
global resultB
global winner
money1 = -10
money2 = -10
deltamoney = 10
moneypond = 20
# i = 0
# action1 = []
# for item in action1p:
# if item == 0:
# action1[i] = 'open'
# if item == 1:
# action1[i] = 'follow'
# if item == 2:
# action1[i] = 'doublefollow... | UTF-8 | Python | false | false | 3,748 | py | 7 | result.py | 6 | 0.627268 | 0.575774 | 0 | 145 | 24.841379 | 82 |
asheik12/skadmin | 13,683,765,815,678 | e5b9217fc9e6ef2549480c6a41cb1580722fb23f | 61c14c0c2c475d6d8ed783865a40a7990e7d150d | /employees/models.py | 3a32a239714fbbef66b8db75bed92025dbd2bb5b | [] | no_license | https://github.com/asheik12/skadmin | f0b4ee50f526a448e06afc741d2b96863f6ea37e | 82412511a58acd30003a118b98c591e444f7f358 | refs/heads/master | 2020-08-20T08:37:00.957776 | 2019-10-20T12:58:29 | 2019-10-20T12:58:29 | 216,002,440 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Employee(models.Model):
first_name = models.CharField(max_length=80)
last_name = models.CharField(max_length=55, blank=True, null=True)
dob = models.DateField(verbose_name='Date of Birth')
doj = mo... | UTF-8 | Python | false | false | 846 | py | 15 | models.py | 12 | 0.719858 | 0.712766 | 0 | 22 | 37.5 | 89 |
lianzhang132/yhexcer | 14,250,701,526,234 | 5cd0b1215ffe6f8a9a224617225cc5f03f63ddcf | 53f1770d9e03398ab00bf805e807e777fe17901c | /python/day1/变量.py | 7f3ccb07d85eee48f08fac16d5ebf44befc49f31 | [] | no_license | https://github.com/lianzhang132/yhexcer | cbed71074336d2f660158709b06882a1392508ac | e4a3035bb86895edcc3c065bf20c447ffb91ebe6 | refs/heads/master | 2020-05-27T08:19:57.880394 | 2019-05-25T01:58:09 | 2019-05-25T01:58:09 | 188,542,687 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | a = 2
b = 5
print(a)
print(b)
print(a*b)
a=b=3
print(a)
print(b)
d,e,f,=a,b,9
print(d,e,f)
import keyword
print(keyword.kwlist) | UTF-8 | Python | false | false | 130 | py | 212 | 变量.py | 163 | 0.638462 | 0.607692 | 0 | 15 | 7.733333 | 21 |
mga44/Revising-material | 2,396,591,771,362 | 2a1c79d2adc85f173a0cf844ca8b0f5fd2324f06 | 1bc2020ba79bc6a8b57fd92365320a070d259ae9 | /dbasegen.py | a5bd239e7886694982e50e6095272dd196baa980 | [] | no_license | https://github.com/mga44/Revising-material | 84e53c5e62700f98b9cfa0c58f46366ebbc59845 | 8776e1bd395e29b8d4a515fd62bd6b8c611c9b3f | refs/heads/master | 2022-01-18T08:22:27.398900 | 2019-05-12T22:46:40 | 2019-05-12T22:46:40 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sqlite3
subjectname = "durability_of_the_materials"
db = sqlite3.connect('testing.db')
curs = db.cursor()
curs.execute('DROP TABLE '+subjectname)
curs.execute('''CREATE TABLE IF NOT EXISTS '''+subjectname+''' ( id INT PRIMARY KEY, name VARCHAR, rate INT)''')
curs.execute('''INSERT INTO '''+s... | UTF-8 | Python | false | false | 971 | py | 3 | dbasegen.py | 2 | 0.676622 | 0.664264 | 0 | 26 | 35.423077 | 129 |
yelghali/developpeursducoeur | 4,277,787,432,845 | 91ac4f71a316e048a408c054b006dd32b55ec1e6 | f381e2baac35561168bb59ebc403022984851f18 | /devheart/models/user.py | ddbf8733230806664094ffb3fdfc2eddd2074918 | [] | no_license | https://github.com/yelghali/developpeursducoeur | 739ff1e70d1677e0e8d71036762d52987956995c | 33842618df7f84b14f07db85a6d2481aa302b630 | refs/heads/master | 2021-01-10T21:58:43.793871 | 2015-07-30T19:39:45 | 2015-07-30T19:39:45 | 34,750,665 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #-*- coding: utf-8 -*-
from openerp import tools, SUPERUSER_ID
from openerp import models, api, _, fields
from openerp.osv import osv
from openerp.http import request, Response
from openerp.addons.website.models.website import slug
class devheart_partner(models.Model):
_inherit = ['res.partner','website.seo.meta... | UTF-8 | Python | false | false | 1,908 | py | 29 | user.py | 7 | 0.587526 | 0.584382 | 0 | 56 | 33.053571 | 117 |
jiamingli9674/Intelligent-Checkout-System | 14,156,212,217,166 | b68c1bfa4dfd0dd822d6ee75d45cf35411cf794a | 5c6cf54a357187f8a50ac6a87913b0b327c4d152 | /scripts/utility/user_info_form.py | 3e063cfb4b9b6ca3526d066113f6c17e055fb0a3 | [
"MIT"
] | permissive | https://github.com/jiamingli9674/Intelligent-Checkout-System | 34cc5ba5a3653a4586b609d163cae9d86cbfff12 | 10c6ac761d707ce80686ae7e7f37461a8984616c | refs/heads/master | 2023-01-22T20:47:04.791240 | 2020-11-30T00:05:15 | 2020-11-30T00:05:15 | 292,162,069 | 4 | 1 | MIT | false | 2020-09-10T17:57:06 | 2020-09-02T02:48:10 | 2020-09-02T02:48:14 | 2020-09-10T17:57:06 | 1 | 0 | 0 | 0 | null | false | false | from wtforms.fields import SubmitField, StringField
from wtforms.form import Form
from wtforms.validators import DataRequired, Email
class UserInfoForm(Form):
first_name = StringField(label="Fist Name", validators=[DataRequired()])
last_name = StringField(label="Last Name", validators=[DataRequired()])
ema... | UTF-8 | Python | false | false | 431 | py | 26 | user_info_form.py | 19 | 0.75406 | 0.75406 | 0 | 9 | 47 | 76 |
jinfwd1021/ML100Days | 13,305,808,726,845 | df17d827c00b6e7dfec3cf1dac08ad9d7422f01a | 8991d519846f0c92ffe28e381b8aa6ba1a5dc900 | /Desktop/Python/HomeWork/D02.py | d1839b9fe44d76eeffb43bf6c8e3c7525f80770e | [] | no_license | https://github.com/jinfwd1021/ML100Days | 89f210003062c2a72000e845be4ca11d0c28fcc0 | cf4492c59d69166c6162a13617238026e8d71a67 | refs/heads/master | 2023-03-21T12:50:47.394055 | 2021-03-06T08:45:37 | 2021-03-06T08:45:37 | 330,093,555 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
array1 = np.array(range(30))
x=array1.reshape(5,6,order='F')
print(np.where(x%6==1))
| UTF-8 | Python | false | false | 104 | py | 8 | D02.py | 8 | 0.692308 | 0.615385 | 0 | 4 | 25 | 31 |
pseyfert-cern-gitlab-backup/Urania | 19,121,194,405,689 | 4b8fddd91991ca69337ac9dbb891cbd01ff1cdc6 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /Phys/Bs2MuMu/scripts/getListOfBranches.py | 577a6d971adba28c92c182ecd86c2f32938d88c5 | [] | no_license | https://github.com/pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #------------------------#
#This code prints all the
#branch names of an nTuple
#------------------------#
from readData import *
def getListOfBranches(nTupleName,channel, lookFor=''):
t = readData(nTupleName, {'channel':channel}).get('tree')
totBrList = t.GetListOfBranches()
found = 0
print ' The lines c... | UTF-8 | Python | false | false | 529 | py | 2,569 | getListOfBranches.py | 1,974 | 0.599244 | 0.593573 | 0 | 26 | 19.269231 | 58 |
hierynomus/dockercloud-haproxy | 7,808,250,569,191 | 73de8c0de555c5b41a7766586641c48562c9922c | 4a5e3aad1b2b5d6bf92f70c2a8d28eba2a5ccf2e | /haproxy/helper/update_helper.py | 7785ebb38dd9df11d06b8ef017ddca95aed4e2b5 | [] | no_license | https://github.com/hierynomus/dockercloud-haproxy | bbcecef2e746234dd5354f0a477a882b01ada2c1 | 9791b962bbb692ecab3b548768f5a196798dc68e | refs/heads/master | 2023-08-21T12:13:02.134289 | 2016-09-28T12:52:37 | 2016-09-28T12:52:37 | 69,853,727 | 1 | 0 | null | true | 2023-08-14T08:42:27 | 2016-10-03T08:37:31 | 2023-07-25T06:58:33 | 2023-08-14T08:42:26 | 196 | 1 | 0 | 3 | Python | false | false | import logging
import subprocess
import thread
from haproxy.config import HAPROXY_RUN_COMMAND
logger = logging.getLogger("haproxy")
def run_once():
logger.info("Launching HAProxy")
p = subprocess.Popen(HAPROXY_RUN_COMMAND)
logger.info("HAProxy has been launched(PID: %s)", str(p.pid))
logger.info("==... | UTF-8 | Python | false | false | 1,064 | py | 4 | update_helper.py | 4 | 0.652256 | 0.652256 | 0 | 36 | 28.555556 | 91 |
wxyang91/FQN | 9,655,086,530,545 | 1cf7697eaa14e468a3f5733e3642115e81c63b76 | 3af7dbc4b19e023274be4efa303f6aa2b17d2a14 | /test_fft.py | 8df9c4921051076128d502dc712f466bf5eefb34 | [] | no_license | https://github.com/wxyang91/FQN | 125e41766594d67fa4bee66558b676791ea15e0e | 9817bce3c0d2448ba928a99745b67d450266bf05 | refs/heads/master | 2020-03-27T04:07:53.148220 | 2018-08-31T01:01:39 | 2018-08-31T01:01:39 | 145,914,195 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from numpy.fft import fft
import matplotlib.pyplot as plt
seq = 2*np.sin(2*np.arange(0,3.14,0.1))
plt.figure(1)
plt.plot(seq)
f = fft(seq)
plt.figure(2)
plt.plot(f)
plt.show() | UTF-8 | Python | false | false | 194 | py | 5 | test_fft.py | 5 | 0.716495 | 0.664948 | 0 | 10 | 18.5 | 39 |
DrMaggus/KawaFluss | 7,825,430,413,913 | 58fefce49a8e4ddc969cf0f9989f3e866d0ded99 | e4a972a511ebabd2ab8a23e83c82c0e48b171807 | /img.py | 27874e9417b1c5b422e30fdec43c04f1bea7cc1a | [] | no_license | https://github.com/DrMaggus/KawaFluss | aff4fae75f9e09e27fd1d25208f382cb634713e8 | 1f3595b0df189f0297266321f16af7dfc86587bd | refs/heads/master | 2016-09-06T15:22:04.564360 | 2014-01-14T15:22:23 | 2014-01-14T15:22:23 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
* Copyright (C) 2014 Matthias Eiserloh & Markus Wolf
*
* This file is part of KawaFluss.
*
* KawaFluss is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* ... | UTF-8 | Python | false | false | 2,678 | py | 9 | img.py | 8 | 0.631068 | 0.627707 | 0 | 91 | 28.384615 | 110 |
its-Kumar/Flask | 8,899,172,279,971 | 7ebe4f87f08964012650a12cb9d7f5845da91e28 | 7e601a378a897139dcb424ba85004dc19a5748c7 | /FlaskMarket/market/routes.py | c7dd873050380828bfcc87d99feed0130bdc9771 | [] | no_license | https://github.com/its-Kumar/Flask | 58169d5d4a452090453153899d1c8f355d6a7c5f | fa5764f2997ae1fccaa4d2a1a646380a623abb8c | refs/heads/master | 2021-06-17T09:52:45.393113 | 2021-05-05T07:46:36 | 2021-05-05T07:46:36 | 195,162,632 | 2 | 2 | null | false | 2021-05-05T08:50:34 | 2019-07-04T03:27:43 | 2021-05-05T07:46:53 | 2021-05-05T08:50:34 | 59 | 1 | 1 | 1 | Python | false | false | from flask import flash, redirect, render_template, request, url_for
from flask_login import current_user, login_required, login_user
from flask_login.utils import logout_user
from market import app, db
from market.forms import (LoginForm, PurchaseItemForm, RegisterForm,
SaleItemForm)
from ma... | UTF-8 | Python | false | false | 4,036 | py | 21 | routes.py | 15 | 0.58672 | 0.585976 | 0 | 116 | 33.793103 | 80 |
GuSilva20/Primeiros-Codigos | 7,645,041,822,125 | d7912f50a4b511178b85acdcdbe1a8ee6d4e0464 | 4c75314a1de4eb0f7cbd0dba8532928722d418bf | /Ex40LendoCadastrosEClassificando.py | 6c635565b809d6c21f41fd6d3fd423c14f4cdfd4 | [
"MIT"
] | permissive | https://github.com/GuSilva20/Primeiros-Codigos | b0902158dfdb1aa2a840cbb9cfd33afe6a86608d | 67deefb683b40c2c4fee1bb383730588635e9d85 | refs/heads/main | 2023-06-30T18:13:02.846956 | 2021-08-01T17:29:16 | 2021-08-01T17:29:16 | 391,691,670 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | for c in range(1, 5):
nome: str = str(input("Digite o nome: "))
sexo = str(input("Sexo[M][F]: "))
idade = int(input("Idade: "))
media = 0
idadehomem = 0
idademulher = 0
if sexo.upper() == "M":
if idade < idadehomem:
media += idade
elif idade > idadehomem:
... | UTF-8 | Python | false | false | 820 | py | 51 | Ex40LendoCadastrosEClassificando.py | 50 | 0.533742 | 0.517791 | 0 | 25 | 31.6 | 85 |
phyiction/eth-gitter-graph-analysis | 6,390,911,360,507 | 16382dbb3d397a1bee01177dee7f2e32a578feb1 | 66fc9a9461c6942eba38037b937a5d8973e6d530 | /extract.py | 7d53d043585829052cb71fba7560127bbb33f732 | [] | no_license | https://github.com/phyiction/eth-gitter-graph-analysis | f74540b7a30ff9d5ae82dc98bea48c08e206da1a | 8b64daae1cb5ce426f823af0c1646fc0c97c2e3e | refs/heads/master | 2020-03-23T17:20:01.470364 | 2018-07-26T13:30:59 | 2018-07-26T13:30:59 | 141,854,768 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
import os
import requests
from datetime import datetime
def get_data(url,params={}):
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer ' + os.environ['TOKEN']
}
return requests.get(url,params=params,headers=headers)
#end
def get_groups():
print('Groups')
... | UTF-8 | Python | false | false | 1,833 | py | 3 | extract.py | 1 | 0.494272 | 0.478451 | 0 | 68 | 25.970588 | 105 |
deco93/MomsVengeance | 15,822,659,531,448 | b85409c2270dd45341338805f1369f274e9d5dac | f4b7fce1c5277ab81e66a72746553554b9ae9a7b | /MothersVengeance/classes/healthBar.py | ed1196857e3a3f777c5b2980138d27fa16711174 | [] | no_license | https://github.com/deco93/MomsVengeance | 9bf468e57ad48e57357f5c37b574a63153abd0e5 | c1ce281bf5e124667bd6d5e343f91c729f5fb00c | refs/heads/master | 2022-12-12T08:06:00.830909 | 2020-09-13T13:48:24 | 2020-09-13T13:48:24 | 290,578,113 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pygame
import math
class HealthBar(object):
def __init__(self, player, radius, line_width, x, y):
self.location = [x, y]
self.player = player
self.radius = radius
self.line_width = line_width
self.fill_color = pygame.Color(207,0,112)
self.edge_color = pygame... | UTF-8 | Python | false | false | 652 | py | 9 | healthBar.py | 7 | 0.616564 | 0.590491 | 0 | 21 | 29.857143 | 144 |
anmolsrivastava18/ERP_Repository | 14,113,262,574,217 | 8a058585413639c96d6612f71cfc56ef56f0ddf4 | 349ea76817d6647f662aba06a06bdf03873d2b49 | /aims/inventory/migrations/0008_auto_20210105_0115.py | 1c1555c75aff47bb9aee20ad6a329578add60ee8 | [] | no_license | https://github.com/anmolsrivastava18/ERP_Repository | 72f0ccc53fa7f38277f962972a20cf8ee461e7da | 0c9c041624b1133d04c0389a9270140b68c10b21 | refs/heads/master | 2023-05-11T01:36:02.991403 | 2021-03-08T19:22:27 | 2021-03-08T19:22:27 | 333,938,771 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.2.5 on 2021-01-04 19:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('inventory', '0007_auto_20210105_0102'),
]
operations = [
migrations.AlterField(
model_name='out... | UTF-8 | Python | false | false | 597 | py | 85 | 0008_auto_20210105_0115.py | 41 | 0.666667 | 0.61474 | 0 | 19 | 30.421053 | 212 |
lethanhday/hieuhien.vn | 5,076,651,371,944 | 7237fead1cca365deae904c2930c20f30e8099a1 | 4ca97229d63598f59adaeb16da70cfeacf030652 | /plugin.video.hieuhien.vn.phim3s/source.py | aa8f5e02df7fd5c253b27d4504c9122ec75476ca | [] | no_license | https://github.com/lethanhday/hieuhien.vn | 463c2bd7799e5f732f3269df8aa22e41d9e98009 | 4bf3b5514e432921e7a8dd854416df403e9caf36 | refs/heads/master | 2021-01-23T01:45:48.621312 | 2017-03-21T09:01:37 | 2017-03-21T09:01:37 | 85,931,443 | 2 | 0 | null | true | 2017-03-23T09:31:59 | 2017-03-23T09:31:59 | 2016-11-07T11:15:17 | 2017-03-21T09:01:54 | 260,817 | 0 | 0 | 0 | null | null | null | # -*- coding: utf-8 -*-
import re
import urlparse
import urllib
import json
import api
class Source:
def __init__(self, cache_path):
self.cache_path = cache_path
self.base_url = 'http://phim3s.net/'
def __get_page__(self, url, cacheTime=3600000):
return api.SOUPKit(cache_path=self.cache_path).SOUPFromURL(u... | UTF-8 | Python | false | false | 4,719 | py | 122 | source.py | 53 | 0.613314 | 0.604622 | 0 | 140 | 32.671429 | 210 |
dahbiaberrani/s2python | 17,076,790,002,972 | 7a45fd51978586b24ea9335c3f2b712c22f96af9 | d1eadaf86b563bdf056f691cf9e7a5803e1a4935 | /examen/file.py | 72423864a799813961e404ba17bf5808a67ab6dc | [] | no_license | https://github.com/dahbiaberrani/s2python | 2dcca7fabd4cad852eb8c0b7c4a5767a68e2385b | 5bd843fc2b83ed663df523addbab8b856486ddcc | refs/heads/main | 2023-04-22T00:04:48.304756 | 2021-05-06T12:34:46 | 2021-05-06T12:34:46 | 349,734,907 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class File:
def __init__(self,maxMafile):
self.maxfile = maxMafile
self.contenu = []
def __str__(self):
return str(self.contenu)
def afficher(self):
print(self)
def fileVide(self):
if len(self.contenu) == 0:
return True
else:
... | UTF-8 | Python | false | false | 1,300 | py | 18 | file.py | 18 | 0.543846 | 0.528462 | 0 | 60 | 20.583333 | 69 |
UsefNait/espr | 9,208,409,907,132 | b50a4e4694bed869b7f24a4ad59dc5c90902f649 | 1ab88d88a51e4f52a7b56dc14013cdad590ac6df | /ESPR-master/qa/migrations/0006_auto_20180509_2246.py | 7e0a9208126e4e0d4bfde2e8007a787c8ae2076a | [] | no_license | https://github.com/UsefNait/espr | 22be5c40fd89c6f73fb669c129f638b8edb8ca26 | e026a6595b5f69a60e40f1e78e611465bae76c1a | refs/heads/master | 2020-03-19T05:35:28.196434 | 2018-06-03T22:45:44 | 2018-06-03T22:45:44 | 135,946,030 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.0.2 on 2018-05-09 21:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('qa', '0005_auto_20180509_2106'),
]
operations = [
migrations.AlterField(
model_name='question',
name='categorie',
... | UTF-8 | Python | false | false | 430 | py | 19 | 0006_auto_20180509_2246.py | 19 | 0.6 | 0.527907 | 0 | 18 | 22.888889 | 94 |
Traklon/IRC | 10,316,511,481,901 | 68ea03b0129a972cc571fba3abdb901fa103aea5 | af3c3ab0fb9fe3b0f5084ecbda4953ba9dba2937 | /Perudo2.py | 66cd02cb21cce15b393609d20ac642ec3947cae7 | [] | no_license | https://github.com/Traklon/IRC | db22750949126890d406a0bb14f1e4ad3525499b | 5422b0adaf6e75838a298a1b2fccfaa8b1927181 | refs/heads/master | 2016-09-05T23:14:13.018002 | 2015-04-08T13:42:16 | 2015-04-08T13:42:16 | 24,571,034 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python2
# -*- coding: utf8 -*-
import irclib
import ircbot
import random
import re
import sys
class PeruBot(ircbot.SingleServerIRCBot):
server = sys.argv[1]
chan = '#'+sys.argv[2]
state = 'PRE-JEU'
players = {}
order = []
curr = 0
nb = 0
val = 0
palifico = False
... | UTF-8 | Python | false | false | 10,607 | py | 2 | Perudo2.py | 1 | 0.498248 | 0.489533 | 0 | 236 | 43.733051 | 252 |
WagnerAndrade-DEV/Python-Basics | 3,659,312,156,418 | fd19c04065ef2c9b844fe174ee30c6cd2302412b | 2113e1f991c99d101deeb0e8911288fc70297d73 | /exercicios_resolvidos/ex001.py | a8007c5edbb5d1291bab3cfe30098346603351c0 | [
"MIT"
] | permissive | https://github.com/WagnerAndrade-DEV/Python-Basics | ea51ff44feab8b3ebb6cb2cf464228284ef5376c | 77b6f4b48721809c6a13ddbb7b7bc4c3bc9f712f | refs/heads/main | 2023-08-15T21:33:05.544598 | 2021-09-22T02:19:57 | 2021-09-22T02:19:57 | 404,154,691 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #crie um programa que monstre uma mensagem
print('Hello World') | UTF-8 | Python | false | false | 64 | py | 16 | ex001.py | 15 | 0.78125 | 0.78125 | 0 | 3 | 20.666667 | 42 |
DependableSystemsLab/GPU-Trident | 12,635,793,835,783 | 36151b29f2e9db0748666c051990bf226f2a18e3 | 6dac5ee64421d6d2c3a0470ccfae28babada8b2e | /benchmarks/SRAD K1/config_gen.py | 501c9e80ff0e4f6db1a1b897363e8294f5b8e2ac | [
"MIT"
] | permissive | https://github.com/DependableSystemsLab/GPU-Trident | 661cc6e2c68e98371cd9f574cc8e4635b1b9daa2 | c734cd8a18146869fc915af73a6ca13ceca35c0b | refs/heads/master | 2022-12-17T03:38:21.185947 | 2020-08-26T21:51:42 | 2020-08-26T21:51:42 | 156,037,899 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | X_threads = 16*8
Y_threads = 16*8
Invoc_count = 2
start_index = 0
end_index = 0
src_list = ["srad.h","srad_kernel.cu"]
SHARED_MEM_USE = True
total_shared_mem_size = 6.1440*1000
domi_list = []
domi_val = []
| UTF-8 | Python | false | false | 209 | py | 921 | config_gen.py | 47 | 0.645933 | 0.559809 | 0 | 13 | 15.076923 | 38 |
TANUKIpro/color_tracker | 15,281,493,659,007 | f498fd367a55753aba19ac2b08beb7df7ff16a4b | e036ccf41984647b9d184a86c01cfc380b9fd254 | /consideration/all_rounder.py | 277f345cd9140c5dba2aec73f13ae0dec4deefbe | [] | no_license | https://github.com/TANUKIpro/color_tracker | 7e22e66fd5d16d198dc51906e6170a68d5dc664f | e55522784e053fbacede4545f35fb62015cbc450 | refs/heads/master | 2020-09-21T12:53:27.692038 | 2020-01-24T04:51:19 | 2020-01-24T04:51:19 | 224,795,123 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
import sys
try:
py_path = sys.path
ros_CVpath = '/opt/ros/kinetic/lib/python2.7/dist-packages'
if py_path[3] == ros_CVpath:
print("[INFO] : ROS and OpenCV are competing")
sys.path.remove(py_path[3])
except: pass
import cv2
import numpy as np
import time
import matpl... | UTF-8 | Python | false | false | 16,905 | py | 4 | all_rounder.py | 3 | 0.50699 | 0.482094 | 0 | 468 | 32.452991 | 111 |
capeexplain/cape | 3,393,024,164,083 | 3bba551cae907714a3bc2bd0cfee4fcb017a5168 | 2ad9f691e6f98bf32793fa492b3b72da24d77e32 | /capexplain/explain/explanation_crime.py | 01c7f4fb3be6297e2f0baa5ac0756fac4a2feb7b | [
"Apache-2.0"
] | permissive | https://github.com/capeexplain/cape | a35e46e353499b149a9b329143e3e9ba60e9c254 | 99bac46b4f339a4019ed0017da56fb87bde66d21 | refs/heads/master | 2022-12-23T15:16:36.363312 | 2019-06-19T04:01:23 | 2019-06-19T04:01:23 | 191,392,833 | 0 | 1 | Apache-2.0 | false | 2022-06-21T22:09:27 | 2019-06-11T14:49:45 | 2019-06-19T04:01:45 | 2022-06-21T22:09:26 | 525 | 0 | 1 | 2 | Python | false | false | #!/usr/bin/python
# -*- coding:utf-8 -*-
import psycopg2
import sys, getopt
import pandas
import csv
#import statsmodels.formula.api as smf
from sklearn import preprocessing
import math
import time
from heapq import *
import re
import itertools
from capexplain.similarity.category_similarity_matrix import *
from cape... | UTF-8 | Python | false | false | 33,191 | py | 45 | explanation_crime.py | 42 | 0.513971 | 0.502517 | 0 | 764 | 42.420157 | 176 |
briantsaunders/flask-vrfs-api | 2,860,448,243,067 | 2f788672720357c1ab56dc141d4f73854017ae44 | c1ef1a986f3f6c60c0605648c0f01f54e6755a85 | /app/schemas/response/vrf.py | df66155f28fcbffeb9ab8e8533d5eeb3a83c5bfa | [
"MIT"
] | permissive | https://github.com/briantsaunders/flask-vrfs-api | 5f9a8c590512e1aacc6103a06292fe591d0b1c61 | 1378d0c6985af91f2cc89c86f5466381b7b19a86 | refs/heads/master | 2020-07-10T07:09:54.477055 | 2019-08-31T02:22:55 | 2019-08-31T02:22:55 | 204,201,073 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # import third party libs
from marshmallow import Schema, fields
class VrfResponseSchema(Schema):
name = fields.String()
table = fields.Integer()
vrf_id = fields.Integer()
| UTF-8 | Python | false | false | 186 | py | 20 | vrf.py | 14 | 0.715054 | 0.715054 | 0 | 8 | 22.25 | 38 |
HX001/ECE444-project-backend | 8,572,754,736,464 | 2fee171b45ffe9145d5363154a23485e7ea636d5 | 66cd4a0be0bbe68b48b3c7aad62857268da11cb0 | /Blogs/blog_model.py | 70076ee245500b9777ffa3e0fd974fdc514c1470 | [] | no_license | https://github.com/HX001/ECE444-project-backend | 8d3d51c3309cd5b37a2be79635f6697177db415f | d6e6334f8d98df5f8423e6a80880848b605c5593 | refs/heads/master | 2023-01-13T02:08:38.401533 | 2020-11-19T00:19:22 | 2020-11-19T00:19:22 | 314,039,564 | 0 | 0 | null | false | 2020-11-18T20:44:09 | 2020-11-18T19:40:21 | 2020-11-18T20:27:15 | 2020-11-18T20:44:08 | 18 | 0 | 0 | 0 | Python | false | false | from init import db
from flask import Flask, request, jsonify
class Blogs(db.Document):
username = db.StringField(required=True)
title = db.StringField(required=True)
rating = db.IntField()
content = db.StringField(required=True)
imageURL = db.StringField()
def to_json(self):
return {... | UTF-8 | Python | false | false | 579 | py | 13 | blog_model.py | 12 | 0.57513 | 0.57513 | 0 | 21 | 26.52381 | 44 |
freeipa/freeipa-demo | 10,256,381,936,468 | 0acefa398c939a27f4e267eff3950c0ffa898dde | f3193ed65ab8f243e3b4d40473b69cd2d808cc6a | /freeipa_org_demo_reset.py | cba1406f906a69c2616acea728084eafffe8e275 | [] | no_license | https://github.com/freeipa/freeipa-demo | 0bc5ad5683580ef58189c1d9fa97094b3bcfc31e | c158c9293fcec6b976a314c434d3d61330bc6cde | refs/heads/master | 2023-04-30T21:25:50.395668 | 2021-03-25T13:17:34 | 2021-05-19T07:50:05 | 115,020,722 | 1 | 2 | null | false | 2021-05-19T07:50:06 | 2017-12-21T15:34:22 | 2019-09-03T11:01:27 | 2021-05-19T07:50:06 | 15 | 0 | 2 | 0 | Python | false | false | #!/usr/bin/env python3
import click
from freeipa_org_demo.reset import reset as demo_reset
from freeipa_org_demo.config import ec2_configuration
@click.command()
@click.option('--debug', is_flag=True,
help='Print debugging information')
@click.option("--unattended", is_flag=True,
help="Run... | UTF-8 | Python | false | false | 1,490 | py | 15 | freeipa_org_demo_reset.py | 12 | 0.649664 | 0.646309 | 0 | 36 | 40.388889 | 95 |
tgrx/obliviscor | 14,937,896,291,241 | 6ab83aa769a444e8c17a2cbcce745c432e816bb9 | 834d4fa3df2beb6146d137b456b67edf703fbbdb | /src/applications/reminders/migrations/0004_auto_20200426_1624.py | e2b525c413b81c8f21a5e187b3001c8168bcdd8b | [
"Apache-2.0"
] | permissive | https://github.com/tgrx/obliviscor | 7e8e2cf9f0a60017809ab3a3299a2bd83210883d | 31f9a4476892460c931b9a8fc5403c3afcc47607 | refs/heads/master | 2022-05-24T08:01:06.371545 | 2020-04-27T14:01:40 | 2020-04-27T14:01:40 | 256,064,646 | 0 | 0 | Apache-2.0 | false | 2020-04-27T14:01:41 | 2020-04-15T23:59:59 | 2020-04-26T23:50:31 | 2020-04-27T14:01:41 | 114 | 0 | 0 | 4 | Python | false | false | # Generated by Django 3.0.5 on 2020-04-26 13:24
from django.conf import settings
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("reminders", "0003_auto_20200422_0431"... | UTF-8 | Python | false | false | 1,338 | py | 127 | 0004_auto_20200426_1624.py | 100 | 0.499253 | 0.473842 | 0 | 45 | 28.733333 | 77 |
mustafaemreozmen/google-image-downloader | 2,602,750,220,972 | 6e3228199bd0bd64d810b474eda75ca3eceaec95 | eb1caca0e19691688834d31e68667531ef80f32b | /src/argParsing.py | e17613149d366ad46bf99b7cf61c9ca9e4a3acf1 | [
"MIT"
] | permissive | https://github.com/mustafaemreozmen/google-image-downloader | 41f5eaa77d9f14d99f1c6e224d14f26f72819637 | 7528ba28958e6d2daa49360cf80c09b6b23b5069 | refs/heads/master | 2022-11-30T04:27:10.556829 | 2020-08-10T23:01:48 | 2020-08-10T23:01:48 | 286,595,747 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import argparse
def argParser():
parser = argparse.ArgumentParser(
prog='Photo Downloader (from Google)',
epilog='Developed by Mustafa Emre Ozmen with <3. Feels free use and develop.'
)
parser.add_argument('--keyword',
help='Keyword for download images.',
... | UTF-8 | Python | false | false | 1,248 | py | 5 | argParsing.py | 3 | 0.490385 | 0.47516 | 0 | 35 | 34.685714 | 97 |
italogsfernandes/telemedicine | 5,394,478,924,649 | 611ab657b4ba282186443fd14a08532196e45c46 | 11bc884ed5f5322ae9cd043c4b3b64eb63d37295 | /html/telespecialista.py | caf6fae519e99a7c1281e7ee13be4f74b04f7a67 | [
"MIT"
] | permissive | https://github.com/italogsfernandes/telemedicine | 0650645e97419e0adbe529d57e0c7a1598f85ad1 | 3411c39f9366e2fb9aa92ac413183796d0fb813e | refs/heads/master | 2022-07-17T11:53:14.319347 | 2020-05-09T14:56:11 | 2020-05-09T14:56:11 | 262,388,986 | 0 | 0 | MIT | true | 2020-05-08T17:41:20 | 2020-05-08T17:41:20 | 2020-04-01T21:33:10 | 2018-12-25T09:29:28 | 4,375 | 0 | 0 | 0 | null | false | false | # -*- coding: utf-8 -*-
from flask import Flask, render_template, redirect, url_for, flash
from forms import DoctorRegistrationForm, LoginForm
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
# OVERIDE THIS KEY TO USE ON YOUR SERVER
app.config['SECRET_KEY'] = '846d33d018c947de7832c0993498b2a1'
# CONFIGU... | UTF-8 | Python | false | false | 2,158 | py | 40 | telespecialista.py | 12 | 0.695026 | 0.683403 | 0 | 75 | 27.68 | 153 |
cinequant/pinalyzer | 10,969,346,513,151 | f426d4121cc6f3aa0b62c7e5284a367b34350316 | 1f60cf5b9b3bff326ec2a7cd7bde126558f93e2d | /Pinalyzer/map/user.py | 67a0eadc1da371d027654219bfed146ad366b3f1 | [] | no_license | https://github.com/cinequant/pinalyzer | 08e3175a1f24427c190ce067ac6498a7da7c1886 | 6c320b4ad8880d5bbd87943f6f282a1b3070fb70 | refs/heads/master | 2021-01-23T18:49:03.258705 | 2012-08-31T16:10:32 | 2012-08-31T16:10:32 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from django.db import IntegrityError
from django.utils.simplejson import loads, dumps
from models import UserModel, LocationModel, UserStatModel
from userheader import UserHeader
from pinlistpage import PinListPage
import urllib3
import re
import string, random
import datetime
import fun
from ... | UTF-8 | Python | false | false | 13,474 | py | 17 | user.py | 7 | 0.519631 | 0.514649 | 0 | 385 | 33.927273 | 135 |
Aviah/one-click-django-server | 16,071,767,640,559 | d37f2d5213dc80443fe0866105ef35383adc70ce | 0a855433f5a1c78fc7fcd58867c2e79f04cdb666 | /site_repo/settings_production.py | 0797a21d2c2e339c54005ae61cf54319933bcc81 | [
"MIT"
] | permissive | https://github.com/Aviah/one-click-django-server | 0afc2a6dc04369294d9672b2644f777ccb50543a | ddce7181f025b7f8d0979d725f85f8124add6adf | refs/heads/master | 2020-12-24T19:27:36.914097 | 2016-03-18T18:36:33 | 2016-03-18T18:36:33 | 53,527,710 | 10 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Production Settings
DEBUG = False
ALLOWED_HOSTS = ['.example.com']
DEBUG_LOG = False
DEBUG_DB_LOG = False | UTF-8 | Python | false | false | 107 | py | 39 | settings_production.py | 27 | 0.728972 | 0.728972 | 0 | 6 | 17 | 32 |
cornrn/planepower | 10,342,281,282,249 | c3ee56f46fefce7e8bda3087e59477f34b0acb0f | 11844a4b8f96dc49df3ceaff157e1bbddd95c5ba | /pythonCodegen/experimental/cse.py | 87d2e27510ce72b08b4e50fecc507ffc023f5fc4 | [] | no_license | https://github.com/cornrn/planepower | b479a061de013b22caf0ee0316017554551d2fcc | c41f38d8f7d540c005394c9baf97b21b357e081d | refs/heads/master | 2020-04-07T23:30:12.699403 | 2014-09-16T15:44:30 | 2014-09-16T15:44:30 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# Functions for performing common subexpression
# elimination of casadi expressions.
import casadi
from casadi import SX
# Dictionary mapping hash values to git-style object signatures
# Something like a recursive hashmap
casadi_cse_recursive_hashmap = {}
# Dictionary mapping hash values to c... | UTF-8 | Python | false | false | 4,737 | py | 618 | cse.py | 364 | 0.719443 | 0.705721 | 0 | 175 | 26.062857 | 63 |
reportportal/service-auto-analyzer | 18,975,165,544,335 | aac5c399513706f5b8c972f146475974f2ed046d | 2aeffd32356d75b4317a146db3bd3965b9ddc76f | /commons/object_saving/object_saver.py | e7c24ce9833a0b4adc617112f5acab2a6eada997 | [
"Apache-2.0"
] | permissive | https://github.com/reportportal/service-auto-analyzer | a1cb588c250bc36903a6260423c0c320144239bf | 4dfd729d437df1f7239d8ed1eec75d1e4185c920 | refs/heads/develop | 2023-08-07T20:43:32.963817 | 2023-06-27T10:03:58 | 2023-06-27T10:03:58 | 224,684,584 | 12 | 17 | Apache-2.0 | false | 2023-08-30T14:44:28 | 2019-11-28T15:43:43 | 2023-06-06T06:58:22 | 2023-08-30T14:44:26 | 41,420 | 10 | 16 | 2 | Python | false | false | """
* Copyright 2019 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,... | UTF-8 | Python | false | false | 2,790 | py | 112 | object_saver.py | 54 | 0.695341 | 0.692473 | 0 | 69 | 39.434783 | 83 |
yaniv14/OpenCommunity | 15,032,385,562,023 | ea7f75fbd26c9ec616ce33b7667708b8093afbd5 | 4bc08a50c36a3814d7d74b616263b5c9be2795d5 | /src/communities/migrations/0012_auto_20160601_1133.py | d4bb3f6336119323e677cb15a62c07f584c318db | [
"BSD-2-Clause"
] | permissive | https://github.com/yaniv14/OpenCommunity | 29afce604d11bee99bc339f4aa99006743d5880c | 549438b126797a252dbd554179b03764566b946a | refs/heads/master | 2021-01-18T09:54:22.190240 | 2017-11-09T16:43:38 | 2017-11-09T16:43:38 | 9,332,156 | 0 | 2 | null | true | 2016-07-25T11:48:23 | 2013-04-09T21:34:48 | 2015-04-15T20:51:18 | 2016-07-25T11:48:23 | 10,080 | 2 | 2 | 0 | JavaScript | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-01 08:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('communities', '0011_auto_20150615_1535'),
]
operati... | UTF-8 | Python | false | false | 1,606 | py | 129 | 0012_auto_20160601_1133.py | 91 | 0.63076 | 0.608966 | 0 | 41 | 38.170732 | 164 |
saatchiy/cheers | 5,497,558,177,535 | 099be38a6a79a076910de715fd7e733ef231a0bb | 2910a376ea90c64833867057507f6da2bfd26864 | /test/test_runner.py | 5be02ee6a24bdcd4cbbe8097e9f0d3d00d0a1fbe | [] | no_license | https://github.com/saatchiy/cheers | aa9a8410161831dcd933b4c06b206b61f7e16535 | f289316e157826fbbffc1e7bd4a345d6ef10fb23 | refs/heads/master | 2020-12-02T12:47:11.010227 | 2017-08-02T02:41:03 | 2017-08-02T02:41:03 | 96,595,702 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import unittest
from pi_calculation_test import TestPi
from alpha_calculator_test import TestAlphaCalculation
from overlap_calculator_test import TestOverlapCalculation
if __name__ == '__main__':
runner = unittest.TextTestRunner()
test_suite = unittest.TestSuite()
test_suite.addTest(unittest.makeSuite(Test... | UTF-8 | Python | false | false | 878 | py | 21 | test_runner.py | 18 | 0.716401 | 0.716401 | 0 | 27 | 31.555556 | 66 |
dmitry-po/Yet_another_coding_course | 12,584,254,184,139 | b4f12ab02b10735cd7fb40210daff26b7f97db81 | 373a5c33a53f40f323c3aac736b7d5c3abc8da32 | /Python/evil.py | a39f14e405ef312478fae5b2cbb1fcc2ed5d0462 | [] | no_license | https://github.com/dmitry-po/Yet_another_coding_course | 30785d49ba7fe38ffd77f02ec45341e3cd5c5e45 | 0ef836d6613036dcc935feebaaf46620ae70383c | refs/heads/master | 2023-07-18T23:43:28.818958 | 2021-09-15T16:27:27 | 2021-09-15T16:27:27 | 248,457,595 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from sys import stdout
def print(*args, **kwargs):
stdout.write('Бу-га-га! Функция печати сломана!')
def sum(l):
s = 1
for i in l:
s+=i
stdout.write('Бу-га-гашенька')
return s | UTF-8 | Python | false | false | 226 | py | 20 | evil.py | 2 | 0.648936 | 0.643617 | 0 | 11 | 16.181818 | 53 |
AyWa/connected_poulailler | 7,894,149,904,572 | 9063ea924a7d3532ccbb0bf5aa386a59ae2e3d8c | 404ef3d5fc0d92281f7d703a0f94b8e317c5ebae | /script/servo.py | 616c7940f2c93576fb1cdc906be78469c9d07cde | [
"MIT"
] | permissive | https://github.com/AyWa/connected_poulailler | 751d789b5fa7de5d83291f0ca3f1b4dac99be039 | f1c9b15ed24b5b1c7dfbade774bc1a2fcc2c4a9c | refs/heads/master | 2020-07-12T17:07:36.619741 | 2016-12-11T21:19:05 | 2016-12-11T21:19:05 | 73,902,866 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # !/usr/bin/python
import time
import RPi.GPIO as GPIO
import sys
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(21,GPIO.OUT)
#dc =0
p = GPIO.PWM(21, 50)
#print 'Arguments: ',str(sys.argv)
arg = sys.argv[1]
print arg
p.start(7.5)
try:
if arg =='true':
p.ChangeDutyCycle(7.5) #turn towards 90 degree
... | UTF-8 | Python | false | false | 854 | py | 20 | servo.py | 11 | 0.567916 | 0.519906 | 0 | 40 | 20.35 | 48 |
babbitt/Slugs | 17,386,027,654,946 | c407ab61d189496714093742d1d3d0d9c3521bb2 | 66893207b22e42dae3a36786a27f88cc35d0cdc2 | /training/models.py | a4502232ee4df1166183cce3a4ba9ba23b3e7f7d | [] | no_license | https://github.com/babbitt/Slugs | deb4b9a9a78ba3420c0af3f0f7aa7aacda6eaa19 | f34007bcb5fff82e6f421bbccd99fe92c49d05f5 | refs/heads/master | 2021-01-06T09:33:37.552874 | 2020-06-18T00:19:22 | 2020-06-18T00:19:22 | 241,280,908 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from gig.models import System
from employee.models import Employee
# Create your models here.
class TrainingRequest(models.Model):
training_datetime = models.DateTimeField(null=True)
system = models.ForeignKey(System, models.PROTECT)
class Trainee(models.Model):
linked_employ... | UTF-8 | Python | false | false | 464 | py | 58 | models.py | 28 | 0.784483 | 0.784483 | 0 | 15 | 30 | 65 |
mntushar/django-dynamic-admin-dashboard | 16,312,285,835,066 | 574c1aa401d47f2e7bf900a8ef9261dacb4f122c | a7fd1d9ce894c4f783ca728f98ae46cd5e6f175f | /student/migrations/0001_initial.py | 2e3dc60d211622bfe6fc8e999e7482701d3801fb | [] | no_license | https://github.com/mntushar/django-dynamic-admin-dashboard | 29dd76a58e763e09ce25d2c1f73c9c154e5e0732 | 300e18d27d97c2cddaa40b6907a593d83fed4bf0 | refs/heads/main | 2023-06-24T05:15:52.407498 | 2021-07-31T05:55:04 | 2021-07-31T05:55:04 | 391,264,879 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.2.8 on 2021-07-31 03:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | UTF-8 | Python | false | false | 3,917 | py | 38 | 0001_initial.py | 19 | 0.599694 | 0.589482 | 0 | 62 | 62.177419 | 412 |
Baekjoon-Solutions/Baekjoon_Solutions | 10,514,079,990,397 | 8301139736654f9144a91a32b062e382f01ee4ee | eb64c7c1a3893c078146b2796ae128f5158ca6d5 | /Python/6086_최대_유량/6086_ford_fulkerson.py | 15ba90a6b89c8551dbbac87350084d79d0f7998c | [
"Apache-2.0"
] | permissive | https://github.com/Baekjoon-Solutions/Baekjoon_Solutions | ec9d449deec40dae354569a3c7eec8bace49fb31 | 0cd3a57e08d7a12639aa43e6927d5f8a1ba09fbc | refs/heads/main | 2023-02-04T02:16:09.822904 | 2020-12-22T12:25:39 | 2020-12-22T12:25:39 | 303,272,803 | 5 | 12 | NOASSERTION | false | 2020-12-22T12:25:40 | 2020-10-12T04:00:55 | 2020-12-19T09:32:20 | 2020-12-22T12:25:39 | 67 | 7 | 8 | 0 | Java | false | false | import sys
from collections import defaultdict, deque
input = sys.stdin.readline
pipe = defaultdict(lambda:defaultdict(int))
num = int(input())
#그래프 입력
for i in range(num):
one, two, flow = map(str, input().split())
pipe[one][two] += int(flow)
pipe[two][one] += int(flow)
def bfs(start, sin... | UTF-8 | Python | false | false | 1,334 | py | 22 | 6086_ford_fulkerson.py | 18 | 0.502266 | 0.496224 | 0 | 51 | 24 | 58 |
hdeweirdt/imp | 9,637,906,620,067 | 276b560fb82b13cfeae1835062d7b464776dda90 | 8250dc408468b298c5ab1df57de434093a0a4985 | /src/Imp/agent/io/local.py | 434683cd1665e6e4c1c79bb97968cc9980f9e9c6 | [
"Apache-2.0"
] | permissive | https://github.com/hdeweirdt/imp | 5643fc389b0bbc6ea5a58ee812bc3066301a5f9a | fced3e4ae17bc2f209c1a42528facaf68056256f | refs/heads/master | 2021-01-21T09:43:27.907131 | 2014-01-06T13:39:01 | 2014-01-06T13:39:01 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Copyright 2013 KU Leuven Research and Development - iMinds - Distrinet
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
Un... | UTF-8 | Python | false | false | 5,797 | py | 46 | local.py | 34 | 0.5458 | 0.539934 | 0 | 203 | 27.55665 | 100 |
tLDP/python-tldp | 11,287,174,067,290 | d93095ae7183a6fa60a6bacca7440e25c6529567 | 539d9780cadc3618157986f3b9a09aa29578ea09 | /tests/test_utils.py | 8366e84cf9e9c05c6456fb21e62fe8a10a3884d8 | [
"MIT"
] | permissive | https://github.com/tLDP/python-tldp | e610903bd94a36c8b0d2e6a3962c7ec0e05ce4a7 | 4947542e01b50dacd57a7e6abf3965ff53ef0b13 | refs/heads/master | 2022-11-07T01:06:04.984169 | 2022-10-24T03:42:44 | 2022-10-24T03:42:44 | 53,902,981 | 12 | 6 | MIT | false | 2022-10-24T03:42:45 | 2016-03-15T00:53:33 | 2022-10-23T22:33:33 | 2022-10-24T03:42:44 | 471 | 11 | 6 | 1 | Python | false | false | # -*- coding: utf8 -*-
#
# Copyright (c) 2016 Linux Documentation Project
from __future__ import absolute_import, division, print_function
from __future__ import unicode_literals
import os
import stat
import uuid
import errno
import posix
import unittest
from tempfile import mkdtemp
from tempfile import NamedTemporar... | UTF-8 | Python | false | false | 9,065 | py | 54 | test_utils.py | 34 | 0.636514 | 0.632543 | 0 | 275 | 31.963636 | 75 |
dftbplus/skpar | 17,626,545,816,809 | 976534702816616c0c3921eb2a9a642be94db8fb | 1958d78834810cd45170be0ad6f4982ca1f076ca | /bin/skpar_addrepulsive | 24df43479c6656398c6ab09db5dd520a098a59b9 | [
"MIT"
] | permissive | https://github.com/dftbplus/skpar | 92fde1b2e8a45114a3a47aea7e482a73f8058b2d | 4c574a0e2dc4826697b39c7f41cf34210fe79d9b | refs/heads/main | 2023-04-19T13:28:13.179784 | 2023-03-29T06:59:02 | 2023-03-29T06:59:02 | 103,598,862 | 1 | 1 | NOASSERTION | false | 2023-03-29T06:59:22 | 2017-09-15T01:20:57 | 2023-03-29T06:48:06 | 2023-03-29T06:59:18 | 3,973 | 9 | 7 | 4 | Python | false | false | #!/usr/bin/env python3
import argparse
from skpar.dftbutils.repfit import append_spline
workdir = '.'
def main():
# argument parsing
# -------------------------------------------------------------------
parser = argparse.ArgumentParser(
description="Script that takes an existing SK-file and a... | UTF-8 | Python | false | false | 1,702 | 49 | skpar_addrepulsive | 12 | 0.519976 | 0.505875 | 0 | 46 | 36 | 82 | |
ftonolini45/VICI | 3,375,844,344,421 | 7087a12eed48ffe78481b0ee49a912c348e5c206 | 32a7f38f60959e3d7eb11e02923005f4ad892667 | /neural_networks/VAE.py | 53bbaf411a92ce9372f089e64e5e6abec1526b70 | [
"CC0-1.0"
] | permissive | https://github.com/ftonolini45/VICI | eef81773f2348e28f4df34aca1831450295152da | 7508328b474492edc7479bb41527cbbfd5f43a1d | refs/heads/main | 2023-05-30T04:03:25.876630 | 2021-06-14T08:48:50 | 2021-06-14T08:48:50 | 326,956,668 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Neural networks for a VAE or conditional VAE
'''
import numpy as np
import collections
import tensorflow as tf
from tensorflow import math as tfm
from tensorflow import linalg as tfl
from neural_networks import NN_utils as vae_utils
class Decoder(object):
'''
Class for Gaussian decoder, taking latent vari... | UTF-8 | Python | false | false | 38,074 | py | 17 | VAE.py | 16 | 0.576246 | 0.557835 | 0 | 789 | 47.250951 | 163 |
erikvanzijst/wrapped_pong_fork | 7,602,092,126,692 | 85aceb0bcba27176e8beae0d3a6222bf08343fe0 | 4eab7329e0b5d01153f6742ce6a8dfe036d11c59 | /caravel_test/encoder.py | 6cbaa97c8e55b9895c005737b3e0406f9d0b0c2d | [
"Apache-2.0"
] | permissive | https://github.com/erikvanzijst/wrapped_pong_fork | c1058fdbbfc974db04f54fac3471f6882e982c91 | d95ef1fda9ed6bf23e24bc1b3c6ecd760f96f7e4 | refs/heads/main | 2023-05-30T17:36:39.042440 | 2021-05-25T07:37:33 | 2021-05-25T07:37:33 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ../pong/test/encoder.py | UTF-8 | Python | false | false | 23 | py | 9 | encoder.py | 2 | 0.73913 | 0.73913 | 0 | 1 | 23 | 23 |
DreAymi/SAXS_reconstruction | 8,512,625,200,349 | 9b37be9b13e80d38037f9a9adddc6a084e428905 | 661445c651c2fa1ed9b5b4d70d700df0fc9de15a | /auto_encoder_t.py | e6785bcc5755afb765df4ef4c770f251a4018f87 | [] | no_license | https://github.com/DreAymi/SAXS_reconstruction | 4f085b869f74667fbfa0258ea1a4bcb7cdb87fb3 | d20482c42558e8e806103aa7fa072e033cd5ef07 | refs/heads/master | 2021-07-02T04:19:57.682491 | 2021-06-29T04:20:33 | 2021-06-29T04:20:33 | 178,705,919 | 2 | 2 | null | false | 2019-12-28T06:42:21 | 2019-03-31T15:24:03 | 2019-12-26T09:17:43 | 2019-12-28T06:41:52 | 467 | 1 | 1 | 0 | Python | false | false | import numpy as np
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import random
import os
import exceptions
BATCH_SIZE = 100
SEED=56297
z_dim=200
def variable_on_cpu(name,shape,stddev,trainable=False):
with tf.device('/cpu:0'):
var=tf.get_variable(name,shape,initializer=tf.truncated_normal_initializer... | UTF-8 | Python | false | false | 5,338 | py | 21 | auto_encoder_t.py | 17 | 0.679655 | 0.594043 | 0 | 144 | 35.993056 | 130 |
FaithKoech/Classes-Objects | 15,985,868,275,806 | 6b12d69d7eb81281e145d937ae83223e1f8dbf9e | ce792818d31f232227a3871a20a41e1d497be126 | /Classes&Objects.py | 64a152eef8374ad04998d8411e9b0e8b86ae3591 | [] | no_license | https://github.com/FaithKoech/Classes-Objects | 882294c4e17825e978da0c26ef8923488f8835bb | 29a543b9946c53da1ddf8193a5eab1714dec04c6 | refs/heads/master | 2020-09-19T18:16:13.062283 | 2019-11-26T18:45:11 | 2019-11-26T18:45:11 | 224,261,968 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # name="Faith"
# print(type(name))
# Class
# class person:
# # class atribute(properties)
# species = "Homo sapien"
#
# # Method are funtions defined inside a class
# def walk(self):
# print("is walking")
# def sleep(self):
# print("{}is sleeping".format(self.name))
# p1=person()
# p2=pe... | UTF-8 | Python | false | false | 1,238 | py | 1 | Classes&Objects.py | 1 | 0.575121 | 0.537157 | 0 | 70 | 16.7 | 59 |
JangGiWon/Beakjoon | 16,363,825,435,110 | 614a2c712417a54277b663c3b8f7f1a4f6056994 | e2b8ec06a1e3d31319f50f95b9bc60a6abf268ef | /10808.py | e5981aa5c93d327cdc90efb65ce92fd2b725377c | [] | no_license | https://github.com/JangGiWon/Beakjoon | 7d9f9a9b5e5cedc990e3635275374f1cdab47cbf | e4230f20f37ac9488cb12a8fb877526460b79b62 | refs/heads/master | 2022-12-15T10:09:33.506984 | 2020-08-26T07:46:34 | 2020-08-26T07:46:34 | 279,236,574 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | s = input()
result = [0] * 26
for i in s:
result[ord(i) - 97] = s.count(i)
for i in result:
print(i, end=' ')
| UTF-8 | Python | false | false | 120 | py | 48 | 10808.py | 47 | 0.516667 | 0.475 | 0 | 8 | 14 | 36 |
rogerioita/ICPChain | 13,975,823,586,309 | 3c7b81e421909a800ed73f1596555b456ef63e88 | 236ded75aefcf965c582538f1b56d21b161cd3c5 | /ethpki-Criptografado/testDir/callct040.py | 6a03da4716499ec4dcb7993ba58c54eb9fdc7b36 | [] | no_license | https://github.com/rogerioita/ICPChain | 7fc1c7c5df289ed31fd2ad71cee400eac3d253cb | 87f2b001f5297396be6cb3aa9dd0c42236587038 | refs/heads/master | 2023-03-10T20:57:49.479052 | 2021-02-16T16:27:23 | 2021-02-16T16:27:23 | 336,806,143 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
import os
os.system('node ct040.js')
| UTF-8 | Python | false | false | 60 | py | 641 | callct040.py | 638 | 0.7 | 0.65 | 0 | 4 | 14 | 26 |
HIGHWAY99/service.lan.ftp | 11,484,742,570,023 | 532cad3ed4505bd06fddeaa27f007ec54cb584e9 | 062e89787371e23139a1cb4dc33da2c164a34908 | /pyftpdlib/handlers.py | 8cf8d74ac89deb78f158f106160fb31f5e04661b | [] | no_license | https://github.com/HIGHWAY99/service.lan.ftp | 39f1f1d8c1635b090ec86bb6010dd834afb51ba3 | d597cecbb5e6be147e5e2340fba06df214422f9d | refs/heads/master | 2016-08-07T07:50:50.976819 | 2014-02-02T19:18:06 | 2014-02-02T19:18:06 | 16,396,848 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# $Id: handlers.py 1218 2013-04-19 01:48:39Z g.rodola $
# ======================================================================
# Copyright (C) 2007-2013 Giampaolo Rodola' <g.rodola@gmail.com>
# All Rights Reserved
# Permission is hereby granted, free of charge, to any p... | UTF-8 | Python | false | false | 119,844 | py | 20 | handlers.py | 11 | 0.619555 | 0.608316 | 0 | 2,221 | 52.959478 | 448 |
menpo/menpo | 3,590,592,686,525 | 04e6d64bd2b301c691c944fe9fddea1f521722b6 | 5bb8e08e2d2bff503b4425cffe2e60dc32499089 | /menpo/transform/base/__init__.py | 9b476fc88afccb765a5783cd8881dec297f6bba3 | [
"BSD-3-Clause"
] | permissive | https://github.com/menpo/menpo | 2e731560bfd480bf3008317368af35612e55ddc2 | a61500656c4fc2eea82497684f13cc31a605550b | refs/heads/master | 2023-08-15T21:04:41.768318 | 2022-01-02T22:10:04 | 2022-01-02T22:10:04 | 9,731,325 | 332 | 89 | BSD-3-Clause | false | 2022-01-02T22:10:05 | 2013-04-28T14:52:38 | 2022-01-02T21:59:15 | 2022-01-02T22:10:04 | 38,781 | 304 | 79 | 45 | Python | false | false | import warnings
import numpy as np
from menpo.base import Copyable, MenpoDeprecationWarning
class Transform(Copyable):
r"""
Abstract representation of any spatial transform.
Provides a unified interface to apply the transform with
:meth:`apply_inplace` and :meth:`apply`.
All Transforms support ... | UTF-8 | Python | false | false | 9,702 | py | 354 | __init__.py | 163 | 0.589569 | 0.588745 | 0 | 302 | 31.125828 | 80 |
zhangyuo/cf-nlp-py | 10,591,389,354,858 | bcbf03b7df672cd1d2edbda6c43ac433fe1ea87a | f5730407d57aa487c07c7ef82652ee21b64f3404 | /cfnlp/tools/logger.py | 9ceaec49dbbfebc4641f05aa9f17a9d95832958c | [
"MIT"
] | permissive | https://github.com/zhangyuo/cf-nlp-py | 8c50c0249dd79882c881e589de83a940b82a7b0e | 1c7eae5a87ddc6695e5fdee833ea10f87e9e4ca6 | refs/heads/master | 2021-07-05T00:20:42.048259 | 2020-12-25T02:19:36 | 2020-12-25T02:19:36 | 171,785,556 | 0 | 0 | MIT | true | 2019-03-14T08:32:03 | 2019-02-21T02:28:14 | 2019-02-21T02:28:22 | 2019-03-14T08:32:02 | 11 | 0 | 0 | 0 | Python | false | null |
import logging
import logging.config
from logging_conf import PINGAN_LOGGING_CONF
logging.config.dictConfig(PINGAN_LOGGING_CONF)
logger = logging.getLogger("pingan") | UTF-8 | Python | false | false | 167 | py | 30 | logger.py | 26 | 0.826347 | 0.826347 | 0 | 6 | 26.833333 | 46 |
rafaelcsta/www | 14,783,277,463,687 | a72c7623ad95c67430e399ab884fe37a1d496305 | 1cf4bd373b37fb89a406ba389f54b4b7b13ec5e2 | /tools/merge_cals.py | 463cd800ae60eba27f27bb68126d5793088ae87c | [] | no_license | https://github.com/rafaelcsta/www | e0e680e5bd450c883472bf4411ba5ca7aabeb369 | 3a5097c94905c8e4e1dca9f401211d4a3e1d66db | refs/heads/master | 2022-04-19T00:57:33.289620 | 2018-07-23T19:03:56 | 2018-07-23T19:03:56 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
from glob import glob
import icalendar
import pytz
cals=[]
merged=icalendar.Calendar()
merged.add('prodid', '-//CCCB Calendar Generator//berlin.ccc.de//')
merged.add('version', '2.0')
for icsfilestr in glob("public/*/**/*.ics", recursive=True):
with open(icsfilestr, 'r') as icsfile:
print(... | UTF-8 | Python | false | false | 599 | py | 22 | merge_cals.py | 4 | 0.704508 | 0.699499 | 0 | 24 | 23.875 | 67 |
zielman/Codeforces-solutions | 11,974,368,870,687 | 4e5d680d0544658f71d8c9feecf5b121e5dbf27a | f47ad16c7e8247d481372a98d3e45847e0153948 | /A/A 702 Maximum Increase.py | bb46c531b1ac30e2d5971a19149f322c68971502 | [
"MIT"
] | permissive | https://github.com/zielman/Codeforces-solutions | 2759e1af95c0e11e8d9267b3424e837d4b8c083e | 636f11a9eb10939d09d2e50ddc5ec53327d0b7ab | refs/heads/main | 2023-06-12T04:01:48.019764 | 2021-07-05T20:24:47 | 2021-07-05T20:24:47 | 354,343,392 | 0 | 0 | MIT | false | 2021-07-05T20:24:47 | 2021-04-03T16:43:36 | 2021-06-24T01:31:27 | 2021-07-05T20:24:47 | 315 | 0 | 0 | 0 | Python | false | false | # https://codeforces.com/problemset/problem/702/A
n, arr = int(input()), list(map(int, input().split()))
ans, temp = 1, 1
for i in range(n-1):
if arr[i] < arr[i+1]:
temp += 1
ans = max(ans,temp)
else:
temp = 1
print(ans) | UTF-8 | Python | false | false | 256 | py | 196 | A 702 Maximum Increase.py | 194 | 0.542969 | 0.507813 | 0 | 14 | 17.357143 | 54 |
claranet/cloud-deploy | 11,725,260,737,816 | b19084741c2f72d8e5916ac745bcac915f5a000d | 0ccda4de98602b7addafe595d1ffecc6bb6929fe | /models/apps.py | 74201ac8d57534bb04e98e1885bda35d510fdbe9 | [
"Apache-2.0"
] | permissive | https://github.com/claranet/cloud-deploy | 4ad5f1d4294219709eaf2ae7f3da60dbb8ac7180 | a1277f5a1173efffbaeb298c9d22ec0aa39c62e7 | refs/heads/stable | 2021-05-11T05:11:40.262534 | 2020-08-13T16:23:31 | 2020-08-13T16:23:31 | 117,956,032 | 25 | 5 | Apache-2.0 | false | 2020-08-13T16:23:33 | 2018-01-18T08:41:03 | 2020-08-13T16:22:39 | 2020-08-13T16:23:32 | 1,293 | 20 | 3 | 0 | Python | false | false | import instance_role
from jobs import LOG_NOTIFICATION_JOB_STATUSES
import resources
import tags
import volumes
APPS_DEFAULT = {
'modules.source.mode': 'symlink',
'modules.source.protocol': 'git',
}
apps_schema = {
'name': {
'type': 'string',
'regex': '^[a-zA-Z0-9_.+-]*$',
'require... | UTF-8 | Python | false | false | 11,363 | py | 115 | apps.py | 83 | 0.309249 | 0.302297 | 0.000176 | 326 | 33.855828 | 111 |
IslamZakaria/Hotel-Reviews-Analysis | 5,093,831,238,954 | 04c6e1346808d6f670e1410dc4f2c4419419987e | db200fbcf394d63a8d0d736fa45da2f45048bba4 | /SVM.py | a5755f31a961c28775b4bd9cd8a11ff607046696 | [] | no_license | https://github.com/IslamZakaria/Hotel-Reviews-Analysis | b93a7265e4f83bc2565572f7f73bb75dd6a82d4d | 65055e0ba27f8032fbbc59144b361eedd2a1dbdf | refs/heads/master | 2022-07-15T23:04:15.623824 | 2020-05-14T07:09:14 | 2020-05-14T07:09:14 | 263,839,475 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from Label_Endcoder import *
import seaborn as sns
from sklearn import metrics
from sklearn.metrics import r2_score
from timeit import default_time... | UTF-8 | Python | false | false | 4,416 | py | 7 | SVM.py | 6 | 0.726676 | 0.722373 | 0 | 108 | 39.888889 | 170 |
Abrasko/SppedVagon | 19,061,064,896,562 | 1f98915442ec1460a6dcae509ff4a6b709dd9355 | 94027d44590e9a589814209fd9989ef4bb094904 | /mychar/apps.py | 2acbdc504bfd2276db6aa0a0186a7e9b50591973 | [] | no_license | https://github.com/Abrasko/SppedVagon | 10b0503f73800aaca0e506a01bbbfd2fce6018a6 | eaa849776560b8803b6f3d22440c9e1eb8df5571 | refs/heads/master | 2021-04-29T22:38:28.772850 | 2018-07-28T16:02:10 | 2018-07-28T16:02:10 | 121,640,943 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.apps import AppConfig
class MycharConfig(AppConfig):
name = 'mychar'
| UTF-8 | Python | false | false | 87 | py | 32 | apps.py | 20 | 0.747126 | 0.747126 | 0 | 5 | 16.4 | 33 |
bartosz-socha/python_basics | 3,032,246,945,060 | 22ccb1e49eaee62321ae4c0702783190d18291ef | e32508c2ea2781420848017258fca2e256b4cc82 | /K_modules_pip.py | 9cebd3160f3deadf3aebe27b977b60e7ca6a7d95 | [] | no_license | https://github.com/bartosz-socha/python_basics | fa3448c1b9ebbe73f4241cd10a6bacedfe780ec4 | 8ea42bd6e237851550c8fb987e4d2c5e35f02607 | refs/heads/master | 2023-01-24T11:40:49.947052 | 2020-11-26T08:52:37 | 2020-11-26T08:52:37 | 314,291,711 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import H_functions as fun
import docx as doc
doc.Document()
fun.echo("I use import to print that text")
fun.echo(fun.my_power(3, 3))
| UTF-8 | Python | false | false | 137 | py | 16 | K_modules_pip.py | 14 | 0.715328 | 0.70073 | 0 | 8 | 16 | 43 |
jiangzhenfei/blog-back | 592,705,533,861 | e0ede080ee179165bbc5114e48ebb9cd1c027263 | a92d4e72cc084141b8f571ddf42c7ea7a8bcaf34 | /app/blog.py | 6d82e0ff215ae6723ab5744189f098e1a83659a8 | [] | no_license | https://github.com/jiangzhenfei/blog-back | d5c04e8ef146f111f114ef3661251ae9ef696bf9 | 268ffbee50f8703137574a9bad2085603105e9d5 | refs/heads/master | 2020-03-15T04:04:28.307284 | 2018-05-03T07:29:48 | 2018-05-03T07:29:48 | 131,956,961 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask,url_for, request, redirect, render_template,Blueprint,jsonify
import json
from app import db
from .model import Blog,User
#引入时间
from datetime import datetime
blog = Blueprint('blog',__name__)
#返回的数据格式,根据不同情况生成不同额返回值
def util_res(code=200,message='',success=True,response=None):
return {
... | UTF-8 | Python | false | false | 3,815 | py | 8 | blog.py | 6 | 0.606143 | 0.597712 | 0 | 111 | 28.828829 | 102 |
lianglunzhong/latte-erp | 515,396,120,902 | 084fbfa555499872f5e875343eb6bc5f3998b91a | a0a0932b6ab6ec47c2757d8929216790f5bc6535 | /shipping/models.py | f9e7c6702c97f381a0137e412c3010076a662bba | [] | no_license | https://github.com/lianglunzhong/latte-erp | b4e6e3b13c4bce17911ff166fecc36172e0bea5b | b58936c8d9917f3efdcb3585c54bfd3aba4723c2 | refs/heads/master | 2022-11-27T03:08:23.780124 | 2017-04-28T02:51:43 | 2017-04-28T02:51:43 | 89,660,834 | 0 | 0 | null | false | 2022-11-22T01:04:12 | 2017-04-28T02:48:50 | 2017-04-28T03:04:49 | 2022-11-22T01:04:08 | 6,316 | 0 | 0 | 4 | Python | false | false | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
import datetime
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db.models import Sum
import lib
import order
impor... | UTF-8 | Python | false | false | 31,052 | py | 182 | models.py | 116 | 0.521572 | 0.513734 | 0 | 695 | 40.486331 | 148 |
tmhpilipala/shiyanlou-code | 3,856,880,658,760 | fbf79baf9348d45b56e8a1a55231be25dc56cda9 | 7ac243945fe78c795242c45df3eb919972feb05d | /jump7.py | 60edadf5888cbe9724b732df8a82c602da5bc3c1 | [] | no_license | https://github.com/tmhpilipala/shiyanlou-code | 8bd4bb7154593beba7468f16fb3ebe76d5a636b7 | e1045f7e0d7702b01e73bd76defd9b2646164100 | refs/heads/master | 2023-03-16T18:01:02.527462 | 2021-03-07T08:01:09 | 2021-03-07T08:01:09 | 345,288,153 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | a=0
for a in range(100):
a = a+1
if a%7==0:
continue
elif a%10==7:
continue
elif a//10==0:
continue
print(a)
| UTF-8 | Python | false | false | 120 | py | 1 | jump7.py | 1 | 0.583333 | 0.475 | 0 | 10 | 11 | 20 |
Asdprom/spotify_to_google | 10,222,022,166,339 | b70bdaca4c8fc647532a127dfd6017d3f9c4e3ab | a1bb5e9b9f3ca16b8bd717d3fd44aa5a8e2270f5 | /transfer_collection.py | c52e7defa4c158ea878907dd83d5cb156a94db07 | [] | no_license | https://github.com/Asdprom/spotify_to_google | 1e267be3a1cbbafaedf465097dfa6fffb4cbf137 | c54f1865f21451c349f61b9d0f85f8fdb094fc6b | refs/heads/master | 2020-12-06T20:32:18.270544 | 2020-01-10T05:34:30 | 2020-01-10T05:34:30 | 232,547,136 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from gmusicapi import Mobileclient
import spotipy
import spotipy.util as util
def add_search_string(tracks, search_strings):
for i, item in enumerate(tracks['items']):
track = item['track']
search_strings.append(track['artists'][0]['name'] + ' ' + track['name'])
client_id = 'your client id here'
... | UTF-8 | Python | false | false | 2,734 | py | 2 | transfer_collection.py | 1 | 0.642648 | 0.637527 | 0 | 80 | 33.175 | 136 |
davpge/McMaster-Scraper | 13,838,384,666,210 | ea5f80cc98bb919ebf1ce19ca7ae9114de169031 | d5000e33762ae4a73e4e0ddb52af28148feedf66 | /mc_master.py | 00244b1c0bbb8791a9c3a444096e0b68a5835d48 | [] | no_license | https://github.com/davpge/McMaster-Scraper | d781644864100cdfeba325644a7fe3263de87bf1 | 9e887d17cb8d2e53c9614ef98a08c0a0c72f1ecc | refs/heads/master | 2020-04-26T01:11:28.810136 | 2019-02-28T22:28:51 | 2019-02-28T22:28:51 | 173,196,637 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 12 11:18:28 2019
@author: david.page
"""
# import libraries
import urllib
import re
from urllib.request import urlopen
from bs4 import BeautifulSoup
import csv
from itertools import zip_longest
import itertools
import tkinter as tk
from tkinter import filedialog
import ... | UTF-8 | Python | false | false | 4,101 | py | 2 | mc_master.py | 1 | 0.629241 | 0.622163 | 0 | 154 | 25.577922 | 136 |
Evanyok/PyLab | 14,070,312,888,188 | d15d95a961d8ef6456194b6b4cdf98483958941c | 35e443131031886fd627f9967772ae76287e17b8 | /design-modes/decorator1.py | fc0e5c3072c729617901c18483b7d011114dcc66 | [] | no_license | https://github.com/Evanyok/PyLab | 4fdae03c2d4c5ad04fc7a4accf4f8e1cfce72edf | 11171f6e7d9a76ad98196e134002e1bf6381f24f | refs/heads/master | 2020-05-09T16:42:13.673481 | 2019-04-28T07:40:51 | 2019-04-28T07:40:51 | 181,280,657 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def wrapper(tag):
def handler(fn):
def inner(*args, **kvargs):
print('wrapper: %s' % tag)
setattr(args[0], 'tag', tag)
fn(args[0], args[1])
return inner
return handler
class ts:
tag = 'tag'
@wrapper('p')
def foo1(self, arg):
if... | UTF-8 | Python | false | false | 825 | py | 34 | decorator1.py | 27 | 0.471515 | 0.464242 | 0 | 37 | 21.324324 | 58 |
AlesyaKovaleva/IT-Academy-tasks | 6,270,652,275,765 | d11d4859d414e58845acd0beefbc81c377cc9cfb | 30b1ea6af6251cc42fd02e6e9f2c2dbbeba3176f | /tasks_12/lift.py | 8cfe42b2ea13f48a1ace920f177a2cfced56db74 | [] | no_license | https://github.com/AlesyaKovaleva/IT-Academy-tasks | 96fc080d3db17e854e4a59b202bbd1b761daabc2 | 64249fe0b7a95ab5a82ffdbdcb02aaa8670b5c27 | refs/heads/master | 2022-03-03T09:18:12.673736 | 2019-10-02T08:00:51 | 2019-10-02T08:00:51 | 121,854,244 | 0 | 0 | null | false | 2019-10-02T08:00:53 | 2018-02-17T12:39:59 | 2019-10-02T07:54:14 | 2019-10-02T08:00:52 | 51 | 0 | 0 | 0 | Python | false | false | """
Задача 0
Реализовать класс лифта Elevator. Класс должен обладать методом, lift,
отвечающий за вызов лифта. При сложении/вычитании экземпляров класса должно
возвращаться значение производимой математической операции. Если производить
вычитание у лифта, который еще не совершал поднятий, должна быть выведена
ошибка не... | UTF-8 | Python | false | false | 7,230 | py | 65 | lift.py | 58 | 0.579963 | 0.566538 | 0 | 198 | 29.09596 | 109 |
pradeeppanayal/pat | 489,626,284,613 | b0511bc3b8598ea6849ab2ab4cc1b3d9c0072eca | 10013c3dd136f931a0f4c72d0bdd433da6c2040a | /cgi/cgi/v2/Lib/vmactions/vminfo.py | 40a83e4e652511c0f66bdea715b4e4e18af5a035 | [] | no_license | https://github.com/pradeeppanayal/pat | fe4c79a7b6e5139d899415d5c7a7b97ba77fd8c7 | 98d5a9a955fad673cce2bcfe0e5166b0b7ff8bb5 | refs/heads/master | 2020-12-02T17:38:04.568770 | 2017-07-21T11:33:27 | 2017-07-21T11:33:27 | 96,403,078 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
"""
"""
import atexit
import sys
import re
sys.path.append('../')
from pyVim.connect import SmartConnect, Disconnect
from pyVmomi import vim, vmodl
def getDataStore(path):
try:
return re.match('.*\[(.*)\].*',path).group(1)
except:
return ''
def getVMInfo(ip,un,pwd,dname... | UTF-8 | Python | false | false | 1,140 | py | 90 | vminfo.py | 82 | 0.57807 | 0.561404 | 0 | 42 | 26.142857 | 86 |
hunsoo0823/python_algorithm | 11,793,980,208,609 | decfa9f1defd5dc93c4ffb8b77bf0f435b9cfdb9 | 78d47abbdc829e5fceb22ac350a2cf5b058e5316 | /dynamic/edit_distance_sol.py | 9376b34867213213eb1308258f5a430d9a9129c1 | [] | no_license | https://github.com/hunsoo0823/python_algorithm | c7fba216f7eb58ea9864916cbaa2040572f4f5ba | a9ebc0ead5b1be341860621946871f53f82722a2 | refs/heads/master | 2023-07-09T04:45:24.410323 | 2021-08-14T08:56:52 | 2021-08-14T08:56:52 | 295,997,179 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 최소 편집 거리(Edit Distance) 계산을 위한 다이나믹 프로그래밍
def edit_dist(str1, str2):
n = len(str1)
m = len(str2)
# 다이나믹 프로그래밍을 위한 2차원 DP 테이블 초기화
dp = [[0] * (m+1) for _ in range(n+1)]
# DP 테이블 초기 설정
for i in range(1, n+1):
dp[i][0] = i
for j in range(1, m+1):
dp[0][j] = j
for i in ... | UTF-8 | Python | false | false | 1,049 | py | 73 | edit_distance_sol.py | 73 | 0.460277 | 0.417402 | 0 | 32 | 23.40625 | 72 |
Bkairis/both_sides | 16,638,703,328,693 | f68be0f1b92e86de6e64288f69dfb0c5ef3fe401 | 2584fb1a623ccf0e553e1f9476209f048728b9d8 | /Analyze.py | 18f929844648c98e1bfe448b42f6d50639effe4d | [] | no_license | https://github.com/Bkairis/both_sides | 9a952c161a93c7cf1c0cc0524591a7328e1e6b05 | 906472640d1b9a58041c303b1f092fb4821d81d0 | refs/heads/master | 2020-07-05T23:23:04.363604 | 2016-12-14T14:45:02 | 2016-12-14T14:45:02 | 73,975,609 | 0 | 0 | null | false | 2016-11-17T01:17:12 | 2016-11-17T00:56:31 | 2016-11-17T01:05:17 | 2016-11-17T01:17:12 | 0 | 0 | 0 | 0 | Python | null | null | def compare_pronouns(text1, text2):#function calls the previously defined functions to identify the percentage of first person singular, first person plural, and third person plural pronouns in the texts
import re
def convert(textfile): #takes a textfile as an argument and opens it. Any time the functi... | UTF-8 | Python | false | false | 4,682 | py | 4 | Analyze.py | 3 | 0.621316 | 0.598035 | 0 | 68 | 66.808824 | 445 |
antoh/memml | 15,814,069,595,535 | 92c775ee9bfc1889c1f353cbd7fb2a4a4394b5c8 | 630def1284eb4f3b03de58071503c00def616b83 | /AUC-ROC.py | bf71e7486f4b7d69fe0706b265698085136eebbb | [] | no_license | https://github.com/antoh/memml | 81b468e3bb20295ea0413800d057b3fe4199b563 | 4792f70e16ceb43bccfee75e78a6d8cac3e593d7 | refs/heads/master | 2022-09-26T01:15:23.819364 | 2020-05-29T16:17:31 | 2020-05-29T16:17:31 | 267,855,263 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Classification Area under curve
import warnings
import pandas
from sklearn import model_selection
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import roc_auc_score, roc_curve
warnings.filterwarnings('ignore')
url = "https://raw.githubusercontent.com/jbrownlee/Datasets/master/pima-indians... | UTF-8 | Python | false | false | 1,111 | py | 5 | AUC-ROC.py | 4 | 0.726373 | 0.712871 | 0 | 38 | 28.236842 | 113 |
samedii/rainbow | 7,112,465,862,200 | 5fbf759e46dbccf5b7ca29a3204e01f9e21706cf | 072227631e61ec26ab3d08321828e3342757c3c8 | /stock_env.py | 40ee79ad2ab5cb437aeae5a14943dfb4e2dad7e4 | [
"MIT"
] | permissive | https://github.com/samedii/rainbow | 7f6ec8cbfde4dbecf4f26a413476b4cd204c1c2a | 0ac4b08b931c87562ac7fc2cc6f1dbb332df7be6 | refs/heads/master | 2020-03-27T09:10:32.669769 | 2018-08-27T15:45:45 | 2018-08-27T15:45:45 | 146,319,212 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import deque
import random
import atari_py
import torch
import cv2 # Note that importing cv2 before torch may cause segfaults?
import pickle
import numpy as np
import pandas as pd
class Env():
def __init__(self, args):
self.device = args.device
self.actions = {
'out': 0,
'i... | UTF-8 | Python | false | false | 2,251 | py | 1 | stock_env.py | 1 | 0.629054 | 0.613949 | 0 | 96 | 22.458333 | 110 |
numba/Meta | 7,327,214,210,139 | db4d515839d52c1f7888166a9030bab5906c3294 | 77845f48ef5819e8e641cd72c059fa5cff35d82e | /setup.py | 905779950b4db44c26722aa5154d6e164bc75e72 | [
"BSD-2-Clause"
] | permissive | https://github.com/numba/Meta | 5fe2c2b7f6981ec073d6e3e10d9d0a0a697341cf | d11b4fa38fc51858f7f45b58d992652ddd39cb92 | refs/heads/develop | 2023-06-10T08:21:29.211754 | 2013-02-22T23:49:20 | 2013-02-22T23:49:20 | 5,077,375 | 2 | 2 | null | true | 2013-10-05T22:17:58 | 2012-07-17T04:43:22 | 2013-10-05T20:46:01 | 2013-02-23T01:28:12 | 180 | null | 4 | 1 | Python | null | null | # Copyright (c) 2008-2011 by Enthought, Inc.
# All rights reserved.
from setuptools import setup, find_packages
try:
long_description = open('README.rst').read()
except IOError as err:
long_description = str(err)
try:
version_str = open('version.txt').read()
except IOError as err:
version_str = '???'... | UTF-8 | Python | false | false | 1,629 | py | 26 | setup.py | 20 | 0.596071 | 0.589932 | 0 | 52 | 30.326923 | 74 |
lapis42/boj | 5,626,407,193,034 | ba950439dacd4b2ec43f98876abb1cf661ace648 | d74ec030bf38db5fdaa594280784ad1cab999690 | /boj11779_dijkstra_track.py | 8bf30d9ea9103f188459bf4b3a35ad36d8b75df4 | [] | no_license | https://github.com/lapis42/boj | 36c4964ebbd3f2f60282fa7942cad3fa386f3823 | 4f225f397b9ff919cfda26772036aff7d9637d07 | refs/heads/main | 2023-05-31T08:28:10.345232 | 2021-06-14T01:49:28 | 2021-06-14T01:49:28 | 376,677,591 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
from heapq import heappush, heappop
input = sys.stdin.readline
# input
n_node, n_edge = int(input()), int(input())
edges = [[] for _ in range(n_node + 1)]
for _ in range(n_edge):
a, b, c = map(int, input().split())
edges[a].append((c, b))
start, end = map(int, input().split())
# variables
dist = [s... | UTF-8 | Python | false | false | 910 | py | 127 | boj11779_dijkstra_track.py | 127 | 0.575824 | 0.569231 | 0 | 42 | 20.666667 | 48 |
chenhaipei/share_bicycle_system | 2,611,340,132,846 | 26d84d3e9f6c0a0e487b8093f16ea1fe9aa8ae3e | 93b5d846e0ba77a2bcb2ef21504b56a565182bfb | /bike/migrations/0002_auto_20211003_1157.py | c97cc8d536f07d3ee2248805d08e48b0f0268d5e | [] | no_license | https://github.com/chenhaipei/share_bicycle_system | a16633844ea59bc43ed53e11a327642f901a06f4 | 6e4c1826a1b9e4b02962304c12452f60ae9fea95 | refs/heads/main | 2023-08-23T16:21:21.913542 | 2021-10-21T04:24:15 | 2021-10-21T04:24:15 | 418,426,133 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.2.7 on 2021-10-03 03:57
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('bike', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='bike',
name='... | UTF-8 | Python | false | false | 1,675 | py | 14 | 0002_auto_20211003_1157.py | 6 | 0.580896 | 0.536119 | 0 | 50 | 32.5 | 126 |
bmyerz/iowa-computer-science-methods | 2,774,548,900,263 | 01dcc58eb667ee624d167a71d9c2f0c43ae58150 | d6b1a72f2726397f5fc7f8493362b2f0a5c20b5d | /jes-code/backwards.py | d86b80649e246fdb73f69f6e4aafa1beed6efba1 | [] | no_license | https://github.com/bmyerz/iowa-computer-science-methods | a9d8e42cff9323d0d8419a000278498e46ba8f3a | bd76a2f65c1cf291ca0255e7c03e06feba6231b3 | refs/heads/master | 2021-06-20T03:22:57.555524 | 2021-02-22T17:29:18 | 2021-02-22T17:29:18 | 189,730,334 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | s = makeSound("houstonproblem.wav")
backwards = duplicateSound(s)
for i in range(getLength(s)):
v = getSampleValueAt(s, i)
setSampleValueAt(backwards, getLength(s)-1-i, v)
blockingPlay(s)
blockingPlay(backwards)
| UTF-8 | Python | false | false | 218 | py | 19 | backwards.py | 19 | 0.747706 | 0.743119 | 0 | 9 | 23.222222 | 50 |
JarvisLee0423/Pytorch_Practice | 13,915,694,082,923 | b5aea2913e72e4679bee246d5ff7965fc193fa15 | b01ac5e290cdb70044233ab8502f5e8d0f36f347 | /Simple_Neural_Network_with_Pytorch/Numpy_Implementation/NumpyNN.py | 82287f1d00eb310987a04f55bf0eceda3db74b1c | [] | no_license | https://github.com/JarvisLee0423/Pytorch_Practice | e681332c2274d7c9b43b78b6c352edf4ec95a6c6 | 984df607ecd8f369b40eda907a34368b6885b2da | refs/heads/master | 2023-02-11T20:23:40.108930 | 2020-12-30T16:39:54 | 2020-12-30T16:39:54 | 288,927,146 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #============================================================================================#
# Copyright: JarvisLee
# Date: 2020/08/20
# Project Name: NumpyNN.py
# Description: Using library numpy to build the 3-layers neural network.
# Model Descri... | UTF-8 | Python | false | false | 5,939 | py | 41 | NumpyNN.py | 38 | 0.420778 | 0.393332 | 0 | 122 | 47.688525 | 130 |
OlivierGaillard/fitness | 18,476,949,327,639 | 2ad8d796e19678c19c9704d2cf56c804ca11f225 | 092726655009a4dc8ff258eb1ebc386a64b7fef5 | /workouts/urls.py | 2f289d4e6e47e903ae0d8e6b7b7570958832f699 | [] | no_license | https://github.com/OlivierGaillard/fitness | e759e0f5c798dd6bf95251b093ecb7c02a9249af | ec63c6829aa1374140ca076fbc48ddbed516b962 | refs/heads/master | 2020-03-28T22:43:12.440422 | 2018-09-20T16:00:35 | 2018-09-20T16:00:35 | 149,253,138 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from workouts.views import IndexView
urlpatterns = [
path('', IndexView.as_view(), name='index'),
]
| UTF-8 | Python | false | false | 134 | py | 10 | urls.py | 8 | 0.708955 | 0.708955 | 0 | 6 | 21.333333 | 48 |
Aasthaengg/IBMdataset | 15,908,558,881,085 | f45f54c44840e2fa469c80de8b638856de85d14f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04043/s313374300.py | c5525a2f176267f4c5acdb9d4186ac0c94606893 | [] | no_license | https://github.com/Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | A, B, C = map(int, input().split())
S = [0]*3
S[0] = A
S[1] = B
S[2] = C
S.sort()
if(S[0]==5 and S[1]==5 and S[2]==7):
print('YES')
else:
print('NO') | UTF-8 | Python | false | false | 160 | py | 202,060 | s313374300.py | 202,055 | 0.45 | 0.38125 | 0 | 13 | 11.384615 | 36 |
rgoshen/flask_greet_calc | 10,651,518,900,450 | 68ff9fc16f8eb28e31cd47b7b9afe376a9008bb8 | 4830e7f3e3f9e41d127757a42e011a8b53876e9f | /greet/app.py | d523f605a3f41b418bfed68d317432f5e03f8244 | [] | no_license | https://github.com/rgoshen/flask_greet_calc | 963552cf089d4cf048838fe4788cd08fa7ad16ad | 53c8c9f8c33c64a5e9491b454ef36a288312a09f | refs/heads/master | 2023-01-23T18:08:56.771985 | 2020-12-10T00:25:23 | 2020-12-10T00:25:23 | 320,114,383 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route('/welcome')
def app_welcome():
"""Return simple string."""
return 'welcome'
@app.route('/welcome/home')
def app_welcome_home():
"""Return welcome home."""
return 'welcome home'
@app.route('/welcome/back')
def app_welcome_back():
"""Return w... | UTF-8 | Python | false | false | 362 | py | 3 | app.py | 2 | 0.638122 | 0.638122 | 0 | 17 | 20.294118 | 31 |
saulmoore1/PhD_Project | 8,323,646,627,159 | 3f5fce60e05bc42204f23efa80862d39ade4aeb4 | f269b417034e397139adf2802514165b0eb26f7c | /Python/image_processing/fourier_image.py | 1515454024083343c21450ff294422e87e0c503c | [] | no_license | https://github.com/saulmoore1/PhD_Project | 2d333f7fdbd8b2b1932007e7cc6e05b3108ed325 | a235bf8700e4b5a311fc1dfd79c474c5467e9c7a | refs/heads/master | 2023-08-03T17:51:17.262188 | 2023-07-26T12:35:37 | 2023-07-26T12:35:37 | 158,314,469 | 1 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 14 17:47:29 2020
@author: sm5911
"""
import cv2
import numpy as np
from matplotlib import pyplot as plt
#%%
img_path = '/Users/lferiani/Desktop/ffmpeg_playground/PG10_0mM_GFP_s121z2.tif'
img = cv2.imread(img_path, -1)
img_float = img.astype(np.flo... | UTF-8 | Python | false | false | 1,250 | py | 160 | fourier_image.py | 138 | 0.6776 | 0.6344 | 0 | 52 | 23.038462 | 78 |
AK-1121/code_extraction | 17,446,157,188,925 | b9f751a5f35e73320ff0b3501909bf9a28cd90c5 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_19634.py | c2996064240528648fd1c7f2defc7d312077b0d0 | [] | no_license | https://github.com/AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Finding string in dictionary key where the string is not exactly the key in the dict
print [k for k in d if string in k]
| UTF-8 | Python | false | false | 123 | py | 29,367 | python_19634.py | 29,367 | 0.756098 | 0.756098 | 0 | 2 | 60.5 | 86 |
technogeek156/TUTAI-AI | 6,846,177,873,340 | 09e794ab0991245f7bb0e7645864291c7606e0df | 4c37015418ff7b45cf9d65dd67c7568460b69629 | /AI Prototype.py | c852a73d5970128dfa956a5157c41aa77720b240 | [] | no_license | https://github.com/technogeek156/TUTAI-AI | 69fb4cd230f4fe09a5b7988484c3552a85a4d514 | d0cf61033618bee836cde70d342fc8cd362c9290 | refs/heads/master | 2021-01-10T02:55:39.005356 | 2016-01-29T14:17:09 | 2016-01-29T14:17:09 | 50,608,267 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys,time,random, os.path
typing_speed = 150 #wpm
def slow_type(t):
for l in t:
sys.stdout.write(l)
sys.stdout.flush()
time.sleep(random.random()*10.0/typing_speed)
print ''
slow_type("Hello! My name is TUTAI, or Turing Test Artificial Intelligance")
slow_type("Currently I am in... | UTF-8 | Python | false | false | 1,278 | py | 2 | AI Prototype.py | 1 | 0.608764 | 0.602504 | 0 | 57 | 21.280702 | 111 |
Yoketwx/tensor | 9,045,201,146,369 | d41a275c87130cb73eeb860041d2f4f0dda7f214 | f2ff42d8ee9f221a2dae4b65cec5190b1a385f83 | /hupunews.py | cd8336035dd235274b9cb95f041124dff0b8a821 | [] | no_license | https://github.com/Yoketwx/tensor | 82f4a9f2d24cbba6b38b786ca53e5f358e5641ee | cdb8c407b26ca49ed0406407967b2a5ff1caecff | refs/heads/master | 2020-03-18T00:56:49.342066 | 2018-05-20T05:00:20 | 2018-05-20T05:10:36 | 134,120,482 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
from lxml import etree
with open('hupunews.txt', 'w', encoding='utf-8') as f:
for a in range(10):
url = 'https://voice.hupu.com/nba/{}.html'.format(2270998+a)
data = requests.get(url).text
s = etree.HTML(data)
news = s.xpath('/html/body/div[4]/div[1]/div[2]/div/div[2... | UTF-8 | Python | false | false | 701 | py | 6 | hupunews.py | 3 | 0.512126 | 0.485021 | 0 | 18 | 37.666667 | 77 |
JzyJade/torchmtlr | 12,773,232,767,705 | 867e8d36a3c9be7145fb219593ed5d17eed63137 | 8fef330ade6ad415ca912b8a8da586460657f4e1 | /torchmtlr/__init__.py | aa248f66ac009698abf8f86916fd60c64ffbb214 | [
"MIT"
] | permissive | https://github.com/JzyJade/torchmtlr | bb63748b132f175be09e456f2283f8b6ab813ab7 | 7234e96b8c7c62cc7e398f7cd2319eb971944dea | refs/heads/master | 2023-07-09T10:48:23.251622 | 2020-12-08T13:01:41 | 2020-12-08T13:01:41 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from typing import Union
import numpy as np
from scipy.interpolate import interp1d
import torch
import torch.nn as nn
class MTLR(nn.Module):
"""Multi-task logistic regression for individualised
survival prediction.
The MTLR time-logits are computed as:
`z = sum_k x^T w_k + b_k`,
where `w_k` and ... | UTF-8 | Python | false | false | 8,592 | py | 7 | __init__.py | 4 | 0.603123 | 0.595432 | 0 | 262 | 31.755725 | 102 |
Lucas-Irvine/Particle-Cloud-Framework | 2,645,699,856,362 | 371cc0c589e691a3cb8c14a208a3ba32797e2e65 | b2e7c3c7c2d4fa89dc971a7a03799a42af35178a | /pcf/particle/aws/efs/efs_instance.py | b996e633176b910cb7a7f85abb89852448ba0eb3 | [
"Apache-2.0"
] | permissive | https://github.com/Lucas-Irvine/Particle-Cloud-Framework | 9c990ba14225e60ab1e90ae9a52b833593d0e8df | 0f424126067f70c278b7b4b48f9d62adb7a735a4 | refs/heads/master | 2021-02-16T02:02:58.669138 | 2020-01-08T19:43:41 | 2020-01-08T19:43:41 | 244,955,816 | 0 | 0 | Apache-2.0 | true | 2020-03-04T16:58:54 | 2020-03-04T16:58:54 | 2020-01-08T19:43:44 | 2020-01-08T19:45:43 | 7,565 | 0 | 0 | 0 | null | false | false | # Copyright 2018 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | UTF-8 | Python | false | false | 8,100 | py | 326 | efs_instance.py | 152 | 0.630123 | 0.62679 | 0 | 233 | 33.763948 | 136 |
wdehaes/focj_story2 | 6,554,120,100,014 | bdf5bd750ed7d5d5f67ad9b51fce75f681b0c464 | 74c50369a3bbc3eb94b53eed3965c0470d88735f | /mercari/scrape_bs4.py | 6ef7547cd6038809b3214fd7a3cdf6a9143dd9f0 | [] | no_license | https://github.com/wdehaes/focj_story2 | ecb517b083bfdef085f2a65c24ac40aeea49dbde | dbace6d4b7a6fcd14a4eb5058717b12d2ee6ff5b | refs/heads/master | 2020-09-05T05:35:36.637121 | 2019-11-06T13:06:55 | 2019-11-06T13:06:55 | 219,893,952 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from bs4 import BeautifulSoup
import requests
url = 'https://www.mercari.com/search/?categoryIds=22&facets=2&itemConditions=2-3-4-5&length=30&minPrice=20000'
html = requests.get(url).text
soup = BeautifulSoup(html, "lxml")
print(soup.prettify())
| UTF-8 | Python | false | false | 248 | py | 37 | scrape_bs4.py | 10 | 0.766129 | 0.705645 | 0 | 8 | 30 | 111 |
HarshithGP/Movie_Recommender_System | 6,356,551,618,388 | 326ea472f2690d8c4588081e4ab1b479d946da0a | 98a70a74ddb2d3143944594f66b3a758037448c5 | /Python scripts/make_recommendations.py | 3b8158091cba6a71aa9e119baa2896e1c1660973 | [] | no_license | https://github.com/HarshithGP/Movie_Recommender_System | e473a5d361da46e709f7599dc673850ed083f169 | c6c38e85eb192085fb4d56925e58a7e14ef0cc1f | refs/heads/master | 2021-01-19T16:33:50.543053 | 2018-03-02T20:16:17 | 2018-03-02T20:16:17 | 101,005,324 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import numpy as np
import pandas as pd
import matrix_factorization_utilities
# Load user ratings
raw_dataset_df = pd.read_csv('movie_ratings_data_set.csv')
# Load movie titles
movies_df = pd.read_csv('movies.csv', index_col='movie_id')
# Convert the running list of user ratings into a matrix
ratings_df ... | UTF-8 | Python | false | false | 2,456 | py | 11 | make_recommendations.py | 8 | 0.649837 | 0.643322 | 0 | 69 | 33.565217 | 94 |
Herschdorfer/python-mqtt-home | 17,901,423,709,311 | dbde9646484133c7e6b974c0afd697734c35996d | eb5e67f1b9d68972310d4647fc5c90c64bf2db42 | /mqtt-dht22.py | f896c7941afe1b23b233fc7c8705ba6ef6b5aae0 | [] | no_license | https://github.com/Herschdorfer/python-mqtt-home | c94fac644b3d25141b80c19faa986ac6558cc9b7 | a3401454059104d196b47110fef6ee014125f5d4 | refs/heads/master | 2023-05-13T14:23:53.467477 | 2021-05-22T13:42:04 | 2021-05-22T13:42:04 | 112,947,659 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import os
import time
import sys
import Adafruit_DHT
import paho.mqtt.client as mqtt
import json
#sensor config
sensor = Adafruit_DHT.DHT22
pin = 22
sensor_data = {'temperature': 0, 'humidity': 0}
#openhab config
OPENHAB = 'localhost'
# Data capture and upload interval in seconds. Less interval will eventually han... | UTF-8 | Python | false | false | 1,147 | py | 6 | mqtt-dht22.py | 3 | 0.749782 | 0.728858 | 0 | 49 | 22.387755 | 92 |
xrl12/dbz | 12,386,685,709,616 | 83249cf1db801979231f04a0b6a28fc5345be6b2 | e0aae53312677fe4f304769dd3b53bfed7b997c3 | /blog/tests.py | c149ee687466bdc2905e1e987dc49d040a794671 | [] | no_license | https://github.com/xrl12/dbz | bf3ab8ccc4fb907bb479260384f6edccde10bb05 | 7e5bfd7096fa5b9b50b4574f8a624c2893914fc7 | refs/heads/master | 2022-08-27T13:06:09.266177 | 2022-08-20T18:42:36 | 2022-08-20T18:42:36 | 232,839,626 | 0 | 0 | null | false | 2022-01-13T02:15:09 | 2020-01-09T15:25:41 | 2020-02-19T02:26:33 | 2022-01-13T02:15:06 | 4,451 | 0 | 0 | 2 | JavaScript | false | false | import datetime
# from dateutil.parser import parse
from django.test import TestCase
# Create your tests here.
# print(datetime.datetime.now())
# create_time = parse('2019-12-29/00:00:00')
# now_time = datetime.datetime.now()
# (now_time-create_time).days
# import datetime
# start = datetime.datetime.strpt... | UTF-8 | Python | false | false | 963 | py | 13 | tests.py | 8 | 0.603917 | 0.533188 | 0 | 39 | 21.615385 | 80 |
harithlaxman/Load-Balancer | 18,322,330,509,352 | b80937181b60fccee64368f69224d40503eb2b8b | f6c628348b507751dc5f3588413043390c981659 | /request.py | e5299ccf23efd5cb87dd48f4fa50cc24704ec79c | [] | no_license | https://github.com/harithlaxman/Load-Balancer | bea38084f0041b2916880817e82664d2059733a5 | 45eaaf7b75691efbf9a45b008bf53453600ae034 | refs/heads/master | 2022-05-29T17:06:47.830093 | 2020-04-30T15:29:21 | 2020-04-30T15:29:21 | 260,243,474 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import random
name = ["cpu1", "cpu2", "cpu3", "cpu4"]
rname = name[random.randint(0,3)]
rcreq = random.randint(0,20)
rmreq = random.randint(0,100)
rtreq = random.randint(0,60)
param = {'name': rname, 'creq': rcreq, 'mreq':rmreq, 'treq': rtreq}
stuff = requests.post("http://localhost/hello/dbh.ph... | UTF-8 | Python | false | false | 332 | py | 3 | request.py | 2 | 0.665663 | 0.61747 | 0 | 9 | 34.888889 | 67 |
paulthomas2107/DjangoForBeginners | 19,318,762,906,252 | dde20b9cc9ed9afea1eb032162f87f009b93a88b | 1612bb7cdbde86a7358a443e6f0485bfa90f8fa7 | /TestProject/TestProject/NewsApp/urls.py | 60cb3e2cd446a47814456db1fd0f345ef806f71f | [] | no_license | https://github.com/paulthomas2107/DjangoForBeginners | fb86a9a153bf982912288f6d8d4d07b46319212d | b05c623e066a9b1f32f547a904ee34a858b57010 | refs/heads/main | 2023-03-21T17:45:52.875191 | 2021-03-19T19:09:09 | 2021-03-19T19:09:09 | 347,662,519 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from .views import Home, Contact, register, addUser, modelform, addModalForm, Home2
urlpatterns = [
# path('news/<int:year>', News, name='News'),
path('home/', Home, name='Home'),
path('home2/', Home2, name='Home2'),
path('contact/', Contact, name='Contact'),
path('sig... | UTF-8 | Python | false | false | 513 | py | 18 | urls.py | 13 | 0.645224 | 0.637427 | 0 | 16 | 31.0625 | 83 |
150801116/python_100 | 11,802,570,141,332 | 087713e4f3316efa0d3abcdfbb3d1cea7c27d163 | 66b714a90f71a03d2224b9309b4a8717696c02ce | /python_100/实例031:字母识词.py | e144536bdce9f84c69598530c2113e0b3155d1c2 | [] | no_license | https://github.com/150801116/python_100 | 20a9b8a42b168fb08675733541f5aaf1e540a3d3 | ff9aa130d946affc9b43ad702997bb0c7a3aa359 | refs/heads/master | 2023-06-11T04:59:07.786652 | 2021-07-07T13:27:28 | 2021-07-07T13:27:28 | 348,686,584 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #题目 请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续判断第二个字母。
#首先百度一下周一到周日的英文:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
print("请输入星期几的第一个字母(区分大小写):",end="")
str = input()
if str =="M":
print("Monday")
elif str == "W":
print("Wednesday")
elif str == "F":
print("Friday")
elif str =="T":
print("请输入星期几的第二个... | UTF-8 | Python | false | false | 1,270 | py | 86 | 实例031:字母识词.py | 85 | 0.563674 | 0.556367 | 0 | 40 | 22.975 | 72 |
WangGodder/FutureLab_ImageClassify | 498,216,239,593 | a00852cbb5401647283ee02d20e5cadd2e0da356 | 9fb101a6c494c9b2cf8a119d6fe6ef92aef66c36 | /Classy/datasets/MyTestDataset.py | dcadc047e06a1ab0a6bad7ff3a9c02b8720d00d1 | [] | no_license | https://github.com/WangGodder/FutureLab_ImageClassify | 2e183fbb955798076d06b955bc28cfe57cc4b2e9 | 002300c97a080eab00b2930929021900c43664f2 | refs/heads/master | 2020-03-20T23:42:27.929619 | 2018-06-19T09:00:11 | 2018-06-19T09:00:11 | 137,859,261 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import torch.utils.data as data
from PIL import Image
import os
import os.path
import csv
def has_file_allowed_extension(filename, extensions):
"""Checks if a file is an allowed extension.
Args:
filename (string): path to a file
Returns:
bool: True if the filename ends with a known... | UTF-8 | Python | false | false | 4,207 | py | 15 | MyTestDataset.py | 13 | 0.557642 | 0.554552 | 0 | 121 | 32.752066 | 133 |
sanskrit/ambuda | 19,413,252,190,717 | 877bc242caf89c02abead8e95dd3fccfa4502e32 | 2ac808781ac59fcb5539d351e29f55e5ef967fc7 | /test/ambuda/views/test_site.py | 0008f061cfa8f80b5c2e164ef224dd3fd5214d4e | [
"MIT"
] | permissive | https://github.com/sanskrit/ambuda | b2b105c8b92f33d0190582e70002ba011c3312aa | 1962e83b8e90a4ee0ecbc502e709c20d094932d6 | refs/heads/main | 2022-07-09T03:54:13.162529 | 2022-07-09T02:49:00 | 2022-07-09T02:49:01 | 11,392,229 | 23 | 8 | null | null | null | null | null | null | null | null | null | null | null | null | null | def test_index(client):
resp = client.get("/")
assert "complete archive" in resp.text
def test_about(client):
resp = client.get("/about/")
assert "<h1>About</h1>" in resp.text
def test_404(client):
resp = client.get("/unknown-page/")
assert "<h1>Not Found" in resp.text
assert resp.status... | UTF-8 | Python | false | false | 333 | py | 122 | test_site.py | 70 | 0.636637 | 0.60961 | 0 | 14 | 22.785714 | 42 |
liran05/Algorithm | 19,069,654,801,292 | a055cbad3487a68d616baf8b60c20ca45634eb87 | d0f6211a1c771f9e4fac70f04a9c88dc8057f17a | /pattern_match/trie.py | 552328390147edda7654c01556af95e963c7389a | [] | no_license | https://github.com/liran05/Algorithm | f38d036dabf017280c70a33809c8da5a7648656f | cf859df0395b7edbe654ab1b6f360776ac02a5c7 | refs/heads/master | 2020-06-26T06:12:11.062384 | 2019-07-30T02:11:19 | 2019-07-30T02:11:19 | 199,556,774 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
import pdb
reload(sys)
sys.setdefaultencoding('utf-8')
class TrieNode(object):
"""Trie节点
Attributes:
_val: 本节点的值(非None即作为结束判断条件)
_next: 后继节点
"""
def __init__(self, value=None):
self._val = value
self._next = {}
... | UTF-8 | Python | false | false | 2,203 | py | 4 | trie.py | 4 | 0.480663 | 0.479156 | 0 | 101 | 18.712871 | 63 |
Nacho-sh/Minesweeper-AI | 8,667,244,040,501 | f143ee1293751b062abe673a8dd51b5ba667af85 | d52da84a320058403ec8c9f82f5b218e19f61a1a | /click.py | 01f270ef3bbb3c7e8ee32326f93eeaebe24f3cae | [] | no_license | https://github.com/Nacho-sh/Minesweeper-AI | cab983c241ca79d02547b51b05eb628d8045ad0b | 4a7ae79cd9c1c37867a11dcea0d59b30b6250c0c | refs/heads/main | 2023-07-04T21:57:06.910885 | 2021-08-15T14:14:03 | 2021-08-15T14:14:03 | 396,373,895 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pyautogui as gui
def click(position, board, length, button='left'):
gui.click(board[0] + 10 + position % length * 20, board[1] + position // length * 20 + 10, button=button)
| UTF-8 | Python | false | false | 192 | py | 4 | click.py | 4 | 0.651042 | 0.598958 | 0 | 5 | 36.4 | 109 |
kayartaya-vinod/2017_08_PHILIPS_PYTHON | 2,147,483,681,618 | 598f30422edb5efa30431dc3f24fecfcbe42ae6a | 95bab4037a2c56ead3750e4cdcd2f3a24b410e2e | /Examples/userexceptions.py | 7dd2d37665fab921a595f42cbcde7df6c9e711f5 | [] | no_license | https://github.com/kayartaya-vinod/2017_08_PHILIPS_PYTHON | d6769d7b6f2566e2d01a635656cd1ca686d058bc | ebddd588fcb9c30f1724f0a547f3e39e242e76b8 | refs/heads/master | 2020-03-18T12:29:19.393363 | 2019-02-06T08:04:46 | 2019-02-06T08:04:46 | 134,728,970 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # this and every file with .py is known as a module
# A module may comprise: variables, functions, classes, or some executable code
# variables, functions and classes from this module can be used in other modules
class InvalidAgeException(Exception):
def __init__(self, message = "Invalid age. Must be a number between... | UTF-8 | Python | false | false | 588 | py | 29 | userexceptions.py | 27 | 0.714286 | 0.707483 | 0 | 19 | 29.894737 | 81 |
edureka-demo-aj/edureka-aws-lambda | 12,455,405,161,509 | cfaa2a87c11923c6f354476cffd62b9802f94014 | e7cf0b5f5cd05792d662f5f919094e42b42c764b | /demo-1/web-app/upload_to_s3.py | 90f24d943d6f4a2e6580c7b9b975a285ba628487 | [] | no_license | https://github.com/edureka-demo-aj/edureka-aws-lambda | 0033e3e1cdc0b8ca82f33bcda4dd9b5eebc0f022 | 392d704e53376a805bfd72a1ccae381c5f52c0df | refs/heads/main | 2023-02-06T16:59:50.273863 | 2020-12-30T09:41:42 | 2020-12-30T09:41:42 | 322,752,803 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import logging
import boto3
from botocore.exceptions import ClientError
get_last_modified = lambda obj: int(obj['LastModified'].strftime('%s'))
def upload_file(file_name, bucket, object_name=None):
"""Upload a file to an S3 bucket
:param file_name: File to upload
:param bucket: Bucket to upload to
:par... | UTF-8 | Python | false | false | 1,239 | py | 8 | upload_to_s3.py | 2 | 0.612591 | 0.601291 | 0 | 34 | 35.411765 | 84 |
bopopescu/Aquila | 14,130,442,422,356 | d17d7ea4e7bc0962a42ff66f0cc17f5f50192001 | 495ec27dc747f3f2d6094a7792fbcbd4ec8d6007 | /cmdb/forms.py | 94c60ab85cd6170d8df82f0de1b3f4073d57c59e | [] | no_license | https://github.com/bopopescu/Aquila | 684ada4a039906d914f46c91e9e87222c10f2888 | 67a0ae68c9080b2952ef31d9570c3a0358d7deda | refs/heads/master | 2022-11-04T21:37:24.163391 | 2017-07-20T07:39:37 | 2017-07-20T07:39:37 | 281,633,709 | 0 | 0 | null | true | 2020-07-22T09:27:49 | 2020-07-22T09:27:48 | 2020-06-06T02:56:07 | 2017-07-20T07:39:37 | 1,738 | 0 | 0 | 0 | null | false | false | from django import forms
from django.forms import widgets
from django.forms import fields
from cmdb import models as cmdb_models
class HostAppend(forms.Form):
host_id = fields.CharField(widget=widgets.TextInput(attrs={'style': 'display: none;'}),
required=False)
host_ip = field... | UTF-8 | Python | false | false | 3,004 | py | 36 | forms.py | 22 | 0.484188 | 0.483134 | 0 | 59 | 47.237288 | 115 |
rishabhjaincoder/Python-Demos | 18,683,107,772,462 | 50ffe54043e047e80640e32226a21c9cbf196a0a | ec4c311f6b16558602caed62666c2000b3a56f79 | /19-Misc/tkinter-db-2.py | bca657f702a9a1f91977acd728a4a889c4b88e36 | [] | no_license | https://github.com/rishabhjaincoder/Python-Demos | 72fb3e042fb22c4fe83554d439357c88e613642d | c81054b55ab46b018daf22ac5c9240810ab5ff81 | refs/heads/master | 2020-03-24T19:19:25.337903 | 2019-07-13T17:40:26 | 2019-07-13T17:40:26 | 142,919,304 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
import MySQLdb
#Read Data
con=MySQLdb.connect('localhost',user='root',password='')
con.select_db('b11')
cur = con.cursor()
cur.execute("SELECT * FROM student")
records=cur.fetchall()
con.close()
win=Tk()
win.geometry('250x200+100+200')
win.title('Records')
rollLabel = Label(win, text="Roll", wi... | UTF-8 | Python | false | false | 1,022 | py | 10 | tkinter-db-2.py | 5 | 0.694716 | 0.649706 | 0 | 39 | 25.102564 | 56 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.