blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e12591f9ecc1c8fed16803eb18ce0eecbd9e27a2 | a5a05ad635d0af5ad97d7a39e1851fc6d4f14d16 | /app/models/City.py | 57774b71668f18cf2b9ebaf779ba76c5992d71b7 | [] | no_license | zyqingning/flask_crud-master | a43a625dcbd0dd51c65de8beec19747b00109210 | 51af3fa8e1582aa67f07b9b46e601d553deb0a55 | refs/heads/master | 2023-02-04T14:11:22.064669 | 2020-03-08T14:57:35 | 2020-03-08T14:57:35 | 245,834,017 | 0 | 0 | null | 2023-02-02T05:59:33 | 2020-03-08T14:56:51 | HTML | UTF-8 | Python | false | false | 449 | py | from sqlalchemy import Column, Integer,String,VARCHAR
from app.models.Base import Base
class City(Base):
id = Column(Integer(11), primary_key=True)
city_name = Column(VARCHAR(24), nullable=False)
pid = Column(Integer(11), nullable=False)
deep = Column(Integer(2), nullable=False)
pinyin = Column(V... | [
"13340220686@163.com"
] | 13340220686@163.com |
a141044c46de5b0d1469335d2402696d27fdae35 | 05bc43b15ed5d7b8fcc58791d6a1746800c20268 | /lib/dataset.py | f441c7f3ad0b20731dd196abeb0ff09f41325dbf | [
"MIT"
] | permissive | daveredrum/Pointnet2.ScanNet | 521b7cc75b4a06eb1fcf2ac7665acd4b414e27f3 | f4adc43779aaaefd6138d37183a94185d0718865 | refs/heads/master | 2022-02-12T14:07:38.239629 | 2021-12-21T10:10:54 | 2021-12-21T10:10:54 | 196,842,335 | 113 | 22 | null | null | null | null | UTF-8 | Python | false | false | 15,328 | py | import os
import sys
import time
import h5py
import torch
import numpy as np
import multiprocessing as mp
from tqdm import tqdm
from prefetch_generator import background
sys.path.append(".")
from lib.config import CONF
class ScannetDataset():
def __init__(self, phase, scene_list, num_classes=21, npoints=8192, is_... | [
"davech2y@outlook.com"
] | davech2y@outlook.com |
d334f13335a62cb992368549de87da8292848dcd | 9e068ebd43b0092c760cdb5eefb4301259c45a9e | /59CriandoMenuDeOpções.py | 2ea92f32b469d54f5f056fd71e1835c61d4d1bc4 | [] | no_license | patriciadamasceno33/Python | 7c950aa4ed2a80b9efc0fc668938c107474323f4 | 06d6e24544c0722856be4ade988293a3781cd6e1 | refs/heads/master | 2023-06-30T15:53:27.580214 | 2021-08-08T01:36:51 | 2021-08-08T01:36:51 | 378,244,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from time import sleep
n1 = int(input('Primeiro Valor: '))
n2 = int(input('Segundo valor: '))
op = 0
while op != 5:
print(''' 1 - Somar
2 - Multiplicar
3 - Maior
4 - Novos números
5 = Sair ''')
op = int(input('Escolha sua opcao: '))
if op == 1:
result = n1 + n2
print('A so... | [
"patriciandamasceno@hotmail.com"
] | patriciandamasceno@hotmail.com |
d79b27996f9bf2eba24a2b437fc7fa50f14daa8a | 3990af3b0f5ea1597ffb6e58530d185127790ade | /example_cBioF_usage/TPOT_pipeline_MO.py | 88f8af42eebe792338eb72d0b169acd6c5277ca4 | [] | no_license | TimBeishuizen/cBioF | 47e0ddc540dfbd44346b7cf4323130b38147db2d | f8ef965ad904e72157527f258bdc7760a795b99a | refs/heads/master | 2020-03-30T16:01:19.879298 | 2018-10-16T08:43:02 | 2018-10-16T08:43:02 | 151,389,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | import numpy as np
import pandas as pd
from sklearn.ensemble import ExtraTreesClassifier, RandomForestClassifier
from sklearn.feature_selection import RFE, SelectPercentile, f_classif
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline, make_union
from sklearn.preprocessing i... | [
"timbeishuizen@hotmail.com"
] | timbeishuizen@hotmail.com |
85370d51f765fc9fea6e6a92b81857238daebf61 | 22d1217a7e8e6cf50bf576c3ede7903b337d641f | /music_scrapper_tt/middlewares.py | fe54885868b95ca801ae521e9b65cc00441aa6be | [] | no_license | 06rajesh/music_scraper_tt | 4a3351f6fd0eb231385a047ba732eb36bb5d3adc | 04f6e1055e1383aa74a552075809fc810040fc4d | refs/heads/master | 2020-12-21T21:30:44.047214 | 2020-01-30T22:05:50 | 2020-01-30T22:05:50 | 236,568,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class MusicScrapperTtSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
... | [
"abhi.crushefix@gmail.com"
] | abhi.crushefix@gmail.com |
dcb20cccaebebc176ef2304d0cd72b988c59f03b | 6262baab2309a5d20a20b96096e8f3878d3dffe3 | /resource/migrations/0001_initial.py | 7c45a4d82e62846dfa317f155ef1b40fb08fc7a9 | [] | no_license | vovaminof/ctsw-rest | 0cae51232c910ce9433476cd1da3813f5bf77125 | 96862fceddef63d4910a08561e2c178f2008ba16 | refs/heads/master | 2020-03-25T07:10:44.312145 | 2018-08-04T16:54:45 | 2018-08-04T16:54:45 | 143,545,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | # Generated by Django 2.0.5 on 2018-06-10 04:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"vovaminiof@gmail.com"
] | vovaminiof@gmail.com |
b3cf8a2a7df390f336d567d193e3c7b558bce83b | 3e41ec4d8c82d0f8333eada932988d580d0b8e15 | /NQueens/nqueens.py | b8939c0e6f6c27dbf7862e794708c1977fc694d8 | [] | no_license | Rakavee/Algorithms | 3a68eb380b6b46f93677779c0b054e8e1c2a6dbc | 98432dbb97829658997f693d08cb8a1938317a7e | refs/heads/master | 2020-04-29T08:55:57.530330 | 2019-03-20T20:59:36 | 2019-03-20T20:59:36 | 175,895,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py |
# coding: utf-8
# Source: https://www.sanfoundry.com/python-program-solve-n-queen-problem-without-recursion/
# Source does not use linked lists.
# # Linked List implementation of Non-Recursive N-Queens Problem
# In[1]:
class Node:
def __init__(self, right=None, left=None, up=None, down=None, data=None):
... | [
"noreply@github.com"
] | Rakavee.noreply@github.com |
ac8fcee7be310f87e1cf6a7479d7dec05c585cc6 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/dash_bootstrap_components/_components/CardText.py | c0146873ce75910bc6733eabc85670d925f82320 | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 3,332 | py | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class CardText(Component):
"""A CardText component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The children of this component
- id (string; optio... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
5cd97eef24dc0d66d8ad96a005553d4bd3d1f235 | ba5c0aebbca1038995a5f9dce60278184f348ff9 | /triplesum.py | effa4594c2f062f2366f8b72a874204f9159e48f | [
"MIT"
] | permissive | rresender/python-samples | fda485aaa016867612885589898dd9a56cd558c9 | 2fb2330f59f3cc0c6b975381e22268a758773b69 | refs/heads/master | 2020-09-17T01:13:30.786118 | 2020-02-28T15:44:05 | 2020-02-28T15:44:05 | 223,943,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | def triplets(a, b, c):
a = distinct(a)
b = distinct(b)
c = distinct(c)
ini = mid = end = triple = 0
while mid < len(b):
while ini < len(a) and a[ini] <= b[mid]: ini += 1
while end < len(c) and c[end] <= b[mid]: end += 1
triple += ini * end
mid += 1
return triple
... | [
"resenderr@gmail.com"
] | resenderr@gmail.com |
da83ca1a7a657675498be211e45ed7ce42cbc865 | abd7eb1a20c1941dfa48bc9bd6520777ee141caf | /GenPass-Tools/gopass.py | f2f59aab7dc13292177b69cfde0bcc5d453ee64e | [] | no_license | Open-Insecure/PassList | 447a848d39845233193eedf6fe393c644a691772 | 70bb0b52bc42b3a2a528136aeaccc855c101b39f | refs/heads/master | 2020-12-30T14:19:31.037471 | 2017-05-13T02:38:13 | 2017-05-13T02:38:13 | 91,303,828 | 1 | 0 | null | 2017-05-15T06:43:44 | 2017-05-15T06:43:44 | null | UTF-8 | Python | false | false | 4,722 | py | #!/usr/bin/env python
# -*-coding:utf-8-*-
from os.path import exists
import optparse
import sys
__author__ = 'kkk'
__date__ = '2016/1/1'
R = '\033[31m' # red
G = '\033[32m' # green
B = '\033[34m' # blue
W = '\033[0m' # white (normal)
""" 字典生成,攻击个人账号"""
def banner():
print B + '''
_______________
( Your p... | [
"j3ers3@gmail.com"
] | j3ers3@gmail.com |
f2acacf75129142364d47c4372031342a19566a9 | 1554150a9720ebf35cd11c746f69169b595dca10 | /tk_practise/shape_display_view.py | 908a4219294e3677bf29d3a5afa33665d56b7ca5 | [] | no_license | andrewili/shape-grammar-engine | 37a809f8cf78b133f8f1c3f9cf13a7fbbb564713 | 2859d8021442542561bdd1387deebc85e26f2d03 | refs/heads/master | 2021-01-18T22:46:51.221257 | 2016-05-31T21:15:28 | 2016-05-31T21:15:28 | 14,129,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,640 | py | # shape_display_view.py
import Tkinter as tk
import tkFileDialog
import tkFont
import ttk
class Observable(object):
def __init__(self):
self.observers = []
def broadcast(self, widget):
for observer in self.observers:
observer.respond(widget)
def add_observer(self, observer... | [
"i@andrew.li"
] | i@andrew.li |
faa874034f386b9cb6efe06855a52bfea58d1d2a | a8c240cbcc9de81a12e2858357d677061182ad9a | /server.py | 92319cd174fbdae4861d23e17aaa58261241242b | [
"Apache-2.0"
] | permissive | saiflakhani/cumminsPrototype | 956b8242bf176474e4da4f38575670833419cb7b | 8c3c08b3ebd90fcb32dc206657292053c4540818 | refs/heads/master | 2023-02-28T14:12:50.085810 | 2021-02-03T15:22:41 | 2021-02-03T15:22:41 | 335,256,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | """
Main module of the server file
"""
# 3rd party moudles
from flask import render_template, Flask
import connexion
import db
import mqtt_messaging
from flask_cors import CORS, cross_origin
from config import FLASK_HOST, FLASK_PORT
import logging
from art import tprint
# Create the application instance
app = Flask(_... | [
"saiflakhani@gmail.com"
] | saiflakhani@gmail.com |
3609cbd86fe366108bed83305f57d5ac02c3ce24 | a2dc75a80398dee58c49fa00759ac99cfefeea36 | /bluebottle/bb_projects/migrations/0018_auto_20210302_1417.py | 69d49b4e0234875309c1a920a6cf0af3e76ba9e8 | [
"BSD-2-Clause"
] | permissive | onepercentclub/bluebottle | e38b0df2218772adf9febb8c6e25a2937889acc0 | 2b5f3562584137c8c9f5392265db1ab8ee8acf75 | refs/heads/master | 2023-08-29T14:01:50.565314 | 2023-08-24T11:18:58 | 2023-08-24T11:18:58 | 13,149,527 | 15 | 9 | BSD-3-Clause | 2023-09-13T10:46:20 | 2013-09-27T12:09:13 | Python | UTF-8 | Python | false | false | 956 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2021-03-02 13:17
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bb_projects', '0017_auto_20210302_1417'),
('projects', '0095_auto_20210302_1417'),
... | [
"loek@goodup.com"
] | loek@goodup.com |
0fbc3c0d1ea493c7b8c03b62c9104b1f4803931c | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/ef3.py | 7ea48f160f18a4c7e1914e1c32d84b3d8df9be75 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
25e21e843b4abe6d09488f0c8ef76ef4b0042a4a | 97878d748b985bca6996636fea9093f5a644ce0c | /ritohelper.py | b4f49aae62509ffe3fdff1119bc03ccb9a348ad0 | [] | no_license | Summarum/lolinfo | acada8d81939c76c41e17dbd948dec5b7e3d2e73 | 5f2406114deb738bf352513a5ec0dbf5d0acaa36 | refs/heads/master | 2021-01-22T22:44:49.165076 | 2017-03-20T12:46:13 | 2017-03-20T12:46:13 | 85,575,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import sys
import json
from urllib2 import urlopen
riotKey = 'RGAPI-EAFA68C5-28DC-4BCB-835A-66DEAFE6427E'
apiURL = urlopen('https://'+sys.argv[1]+'.api.pvp.net/api/lol/'+sys.argv[1]+'/v1.4/summoner/by-name/'+sys.argv[2]+'?api_key='+riotKey)
rawJSON = apiURL.read()
convertedJSON=json.loads(rawJSON)
value = convertedJSON... | [
"fubu10@o2.pl"
] | fubu10@o2.pl |
0fc0e4812b3eb8ad4a7e249f78fe06865f06f248 | 759cd1775924f87c20efcd76173a04d08ce3be33 | /osa11-18_tilauskirja/test/test_tilauskirja3.py | 5f454d32a7816d2095d79336bd0fc6e262af873d | [] | no_license | niinasaarelainen/ohja-2020-python | 7ea454a012d58a6a0f74990785e2471f8d9d9558 | 85fdf86ec954664d261567ca72d319861924f55d | refs/heads/main | 2023-02-05T10:02:47.742550 | 2020-12-20T15:35:39 | 2020-12-20T15:35:39 | 323,090,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,973 | py | import unittest
from unittest.mock import patch
from tmc import points, reflect
from tmc.utils import load, load_module, reload_module, get_stdout, check_source
from functools import reduce
import os
import os.path
import textwrap
from random import choice, randint
from datetime import date, datetime, timedelta
exerc... | [
"niinasaarelainen@gmail.com"
] | niinasaarelainen@gmail.com |
9b73114f7ea4cb451dfbd939500b3c97b30e2d8a | 673440c09033912157d1c3767d5308f95755e76a | /ManachersAlgo.py | 34e2ae34f01f3af98fb2e6b72aa5e397af5e4c02 | [] | no_license | jagadeshwarrao/programming | 414193b1c538e37684378233d0532bd786d63b32 | 1b343251a8ad6a81e307d31b2025b11e0b28a707 | refs/heads/master | 2023-02-02T19:26:21.187561 | 2020-12-21T18:21:00 | 2020-12-21T18:21:00 | 274,644,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py |
def findLongestPalindromicString(text):
N = len(text)
if N == 0:
return
N = 2*N+1
L = [0] * N
L[0] = 0
L[1] = 1
C = 1
R = 2
i = 0
iMirror = 0
maxLPSLength = 0
maxLPSCenterPosition = 0
start = -1
end = -1
diff = -1
for i in xrange(2,N):
iMirror = 2*C-i
L[i]... | [
"noreply@github.com"
] | jagadeshwarrao.noreply@github.com |
5f734dd61d2dc73ff8eb5d7a63974db7dc11b249 | 98aae6242ce9c03d873bd1ccc900aa7c0785bdfc | /index.py | 44ad0dfb833fea8a3fc968732092dc51c2eca67d | [] | no_license | CarlosTorres0929/SQLite | 5cdb4c9098cb4405382a3aea3a01f73ea79d8918 | b14723cbafda23036d05750750f2e70781fd5d8e | refs/heads/master | 2020-09-10T20:30:47.094536 | 2019-11-15T02:24:54 | 2019-11-15T02:24:54 | 221,827,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import sqlite3
conexion = sqlite3.connect('ejemplo.db')
# Creamos el cursor
cursor = conexion.cursor()
# Ahora crearemos una tabla de usuarios para almacenar nombres, edades y emails
# cursor.execute("CREATE TABLE usuarios (nombre VARCHAR(100), edad INTEGER, email VARCHAR(100))")
# Guardamos los cambios haciendo un... | [
"ct059489@gmail.com"
] | ct059489@gmail.com |
a40784738ed092668081456e1b724bb29a5780e8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2790/60589/243105.py | 230152d093784ddcfff077a0a0b37bbdb892f405 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | nm=input().split(' ')
n=int(nm[0])
m=int(nm[1])
a=list(map(int,input().split(' ')))
b=list(map(int,input().split(' ')))
ans=[]
a.sort()
for e in b:
has=False
for i in range(n):
if a[i]>e:
has=True
ans.append(i)
break
if not has:
ans.append(n)
ans=list(map(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ac75b4bcad0db11a6a4a445c63f3cf1f7500903a | 2288c4fa9a573f674c45b389523b862d29ba1573 | /CCS source code/chat.py | 3d785f7a9ede4cf95f7a0576c205836b4b1aa04e | [] | no_license | new482/community-chat-system | d8e03ed2601bcecfcea07ba4a0dc307fa7752fe5 | 16271cc9fa7ab228490b34eab49f99388f377035 | refs/heads/master | 2021-01-10T07:08:56.607580 | 2015-11-25T18:08:18 | 2015-11-25T18:08:18 | 46,878,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,575 | py | #!/usr/bin/env python
import socket
import sys
import select
import os
import string
import struct
import time
import fcntl
import thread
from datetime import datetime as dt
MCAST_GRP = '224.1.1.1'
MCAST_PORT = 8888
addressInNetwork = []
send_address = (MCAST_GRP, MCAST_PORT) # Set the address to send to
s = socket.s... | [
"new482@gmail.com"
] | new482@gmail.com |
6677355c1c7383d94b434226fae40b8cf76ba2d0 | bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0 | /venv/Lib/site-packages/twisted/plugins/twisted_core.py | a66ad7f0104dc02e960fa9fecfcfe59830bb8d40 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | DuaNoDo/PythonProject | 543e153553c58e7174031b910fd6451399afcc81 | 2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c | refs/heads/master | 2020-05-07T22:22:29.878944 | 2019-06-14T07:44:35 | 2019-06-14T07:44:35 | 180,941,166 | 1 | 1 | null | 2019-06-04T06:27:29 | 2019-04-12T06:05:42 | Python | UTF-8 | Python | false | false | 588 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from __future__ import absolute_import, division
from twisted.internet.endpoints import (
_SystemdParser, _TCP6ServerParser, _StandardIOParser,
_TLSClientEndpointParser)
from twisted.protocols.haproxy._parser import (
HAProxyServerPar... | [
"teadone@naver.com"
] | teadone@naver.com |
d44d5a84fcb47ddaa80fe9b1efb34dd60130c6c4 | f7ee49080d4b940e68afbd89357743d9d0e6d32e | /tools/viz/asohelper.py | b1746ab01205c09873f11ebd2450332cf6fbd19f | [
"MIT"
] | permissive | anujpathania/HotSniper | eae261d202ea43f7f529e94c4982995621bd7908 | 9cd2a8f6473625372d45f9ca315019ce190b143d | refs/heads/master | 2023-08-17T20:23:34.313699 | 2023-08-15T16:28:07 | 2023-08-15T16:28:07 | 87,197,006 | 63 | 28 | NOASSERTION | 2023-09-06T16:39:22 | 2017-04-04T14:31:28 | C | UTF-8 | Python | false | false | 267 | py | def get_fp_addsub(f):
return f["addpd"] + f["addsd"] + f["addss"] + f["addps"] + f["subpd"] + f["subsd"] + f["subss"] + f["subps"]
def get_fp_muldiv(f):
return f["mulpd"] + f["mulsd"] + f["mulss"] + f["mulps"] + f["divpd"] + f["divsd"] + f["divss"] + f["divps"]
| [
"anujpathania@protonmail.com"
] | anujpathania@protonmail.com |
dcce7008aeaa2f6a8191887d40a8f758804f095e | 75a54aa657a37be88fd96fc39856156452770aa4 | /reviews_analytics.py | d6cc40a22050844fbb0809d88f622c891d5c6caf | [] | no_license | smileymak2/reviews_analytics | 54e7f4c93af4af2341ba2afa29af45edf7b6ef51 | c9ae91c6815e89d8cd4094ca3579db4dc5c8794e | refs/heads/main | 2023-06-01T11:33:10.929883 | 2021-06-13T09:44:08 | 2021-06-13T09:44:08 | 376,487,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | data = []
count = 0
with open('reviews.txt', 'r') as f:
for line in f:
data.append(line)
count += 1
if count % 100000 == 0:
print(len(data))
print('檔案讀取完了, 總共有', len(data), '筆資料')
sum_len = 0
for d in data:
sum_len += len(d)
print('留言的平均長度為', sum_len / len(data), '筆')
new = []
for d in data:
if len(d) < 1... | [
"smileymak2@gmail.com"
] | smileymak2@gmail.com |
9b4d79f7d378c8eb47d4f656f32305c8efc4ff83 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/passport_result.py | 7d18f30f08e2ae7da04b81723bcf468ba27a7646 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,941 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class PassportResult:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
5e6dc7c003bc33b62f4505e8b5de7f9ddd5eb95c | 8128d30cde54ab3b3cd6ff3ee91949e241c2344a | /In Progress - Data Science Scholarship Program Powered by Bertelsmann/Lesson 24 - Data Type and Operators/Scripts/006 - len.py | c1db3eca3854f95757b2d98e8923033446cc8947 | [
"Apache-2.0"
] | permissive | Ranganaths/Courses | 213927733aceff2ab26ddb1c9960f89e0e23b36e | 879dbcd758aa4f16aa8cc0c2e595a7b16912a9cf | refs/heads/master | 2020-03-23T17:46:34.947373 | 2018-07-19T21:39:12 | 2018-07-19T21:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | '''
Quiz: len()
Use string concatenation and the len() function to find the length of a certain movie star's actual full name.
Store that length in the name_length variable. Don't forget that there are spaces in between the different parts of a name!
'''
given_name = "William"
middle_names = "Bradley"
family_name = "P... | [
"wor@kth.se"
] | wor@kth.se |
b0b4eea997a14d786631185ea489b042e1b6f259 | e48833b214d2673ac885f054172c78ff3db43c0a | /projectX6_orm/projectX6_orm/settings.py | 32c8a7e1965b80ab9f2d0497289508cf6704f8fd | [] | no_license | abhay2701/summertraining | 17fa4e3c077599e2330ad47db587f867674bae62 | c5c8e32cbf3f0b1810cf32a0f186411d679b19f6 | refs/heads/master | 2020-06-03T22:19:19.551629 | 2019-06-13T11:50:00 | 2019-06-13T11:50:00 | 191,754,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | """
Django settings for projectX6_orm project.
Generated by 'django-admin startproject' using Django 1.11.17.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
im... | [
"masterabhay1997@gmail.com"
] | masterabhay1997@gmail.com |
2e4eef4d153f95bea110073a05421b1d94936321 | 9669f20cb574d2da7138890f148dfb71dc7752ca | /Game/Space.py | 548c88a1d9ab61c099d1ed1eeb0a58b89691705a | [] | no_license | kamalbowselvam/Organism | 83d84a8d5cc2795565a7d663f214a90f162e919e | 4893d06320619310c338e57ab6fa560c921ae155 | refs/heads/master | 2021-07-07T23:11:08.583263 | 2020-07-10T21:12:41 | 2020-07-10T21:12:41 | 142,669,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,470 | py | from PyQt5.QtCore import QTimer
from PyQt5.QtCore import Qt, QObject, QUrl, QPointF, QLineF
from PyQt5.QtMultimedia import QMediaPlayer, QMediaContent,QMediaPlaylist
from PyQt5.QtWidgets import QGraphicsItem, QGraphicsPolygonItem, QGraphicsLineItem
from PyQt5.QtGui import QBrush, QImage, QPolygonF, QPen
from Grounds.Pl... | [
"kamalbowselvam@gmail.com"
] | kamalbowselvam@gmail.com |
9a01b747a9686a0b88880483eecbb1d9200693b3 | 79bef6363f16219fe66f9166f2a168db16f5670d | /http/EcoSim/home/views.py | c7d434682ae223ffc10485202701484ab2365256 | [] | no_license | HuzenDevHouse/Eco-Simul | ce0da34185ef130323626af37cc3e2096cc96686 | ce826a85576b32b49cbd2d562c5a3978b32b93a7 | refs/heads/master | 2021-09-02T11:54:58.321392 | 2018-01-02T10:37:04 | 2018-01-02T10:37:04 | 104,362,918 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
msg = "Welcome To Page"
return render(request, 'home/index.html', {'message': msg})
# Create your views here.
| [
"rapier83@gmail.com"
] | rapier83@gmail.com |
eb8d51fb5ca54be0611768c70ffc111e7f16e59f | d51611481c8e5d827f440357e8298f5047a72d2a | /UserAPP/Douar.py | 9c4e214b53a8c96dabf65c1afb7bd87c82b52c73 | [] | no_license | oudacias/GeoProject | 82c15c0f7f205cd7e64ebdc4ddb7fae9b15d7ee9 | 3c9e5699f75d84e2e6f8a11c4e3201233f2357a4 | refs/heads/master | 2023-08-18T10:19:01.858274 | 2021-09-30T14:30:59 | 2021-09-30T14:30:59 | 386,601,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,428 | py | import tkinter as tk
from tkinter import ttk
from tkinter import *
from tkinter.messagebox import *
from UserAPP.Douar_BE import Douar
class AddDouar(tk.Tk):
def __init__(self, *args, **kwargs):
tk.Tk.__init__(self, *args, **kwargs)
self.title("Douar")
self.geometry("801x450+240+100")
... | [
"alexz24@hotmail.fr"
] | alexz24@hotmail.fr |
9962922584c412b05fbb00dc271d5fd91f46fe79 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/third_party/ruamel/yaml/resolver.py | 84227072e066b8f2528baaf4a25c43995cd4061a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 14,599 | py | # coding: utf-8
from __future__ import absolute_import
import re
try:
from .error import * # NOQA
from .nodes import * # NOQA
from .compat import string_types
except (ImportError, ValueError): # for Jython
from ruamel.yaml.error import * ... | [
"toork@uw.edu"
] | toork@uw.edu |
a56781d9e56b8944daecd740c91b397ccf679d04 | 62d3d2e963c3da6d15206ac807cc2190938f61d6 | /mrcnn/utils.py | 13ea2a150f6351ea6638b50f5cf1a9c1dbd70403 | [] | no_license | pykwok/Mask_RCNN-Nuclei | dfa8bc0956ad0ba17a8fb836f923177ee1385a94 | aac1da5fad1fd2d484d6cbafa51c27d5b049a3e9 | refs/heads/master | 2023-04-04T13:43:43.747566 | 2021-04-21T07:51:09 | 2021-04-21T07:51:09 | 360,053,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,210 | py | """
Mask R-CNN
Common utility functions and classes.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import sys
import os
import logging
import math
import random
import numpy as np
import tensorflow as tf
import scipy
import skimage.color
imp... | [
"puyukwok@qq.com"
] | puyukwok@qq.com |
243ff6fb2682b150f69e6ebee075bb6e21f72971 | dcf887939f3d4f53ddf73e05e21114aa07b86a18 | /app/views.py | e2fa29ff792f1f4dbbac522b3d2a7176738d8bb8 | [] | no_license | Dyepitech/Epytodo | 771905e8eb1fadb3bbe9c65da8148eeed1568a9e | d91cb0788d1404f1731618c43d3c23f9b284c29b | refs/heads/master | 2022-11-18T02:55:50.471008 | 2020-07-13T13:01:05 | 2020-07-13T13:01:05 | 270,681,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | from app import app
from flask import render_template, session
from flask import jsonify
from flask import Flask, request
import pymysql as sql
from app import controller
from app import models
@app.route('/', methods=['GET'])
def route_index():
return models.main_page()
@app.route('/register', methods=['POST',... | [
"noreply@github.com"
] | Dyepitech.noreply@github.com |
0d8f674c48e3adb385b7c926884753ba8996a6ae | faa5ec6d832db22ebac4e0ecb109977b3aa9efa2 | /myapp/api/serializers.py | 23a91d91805db05994b03c837039fcbefecde7dd | [] | no_license | hulk-baba/documentSE | 81f240553309b2cfd8537a9d5587606125ce0d01 | 944748d27bfc6d5e91e01063c1e38b4aa1553776 | refs/heads/master | 2021-01-23T06:15:19.082453 | 2018-02-13T02:11:24 | 2018-02-13T02:11:24 | 86,347,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from myapps.models import Documents
from rest_framework import serializers
class DocumentSerializers(serializers.HyperlinkedModelSerializer):
class Meta:
model = Documents
fields = ('Document','keyword') | [
"atul.svnit@yahoo.com"
] | atul.svnit@yahoo.com |
d2f61390d6b2c4b81f9dcb27acbe7b81d9e4cc13 | 16734d189c2bafa9c66fdc989126b7d9aa95c478 | /Python/flask/counter/server.py | 1c6c4ef1a9e0e7f137e799fcf25543dac002609e | [] | no_license | Ericksmith/CD-projects | 3dddd3a3819341be7202f11603cf793a2067c140 | 3b06b6e289d241c2f1115178c693d304280c2502 | refs/heads/master | 2021-08-15T17:41:32.329647 | 2017-11-18T01:18:04 | 2017-11-18T01:18:04 | 104,279,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from flask import Flask, session, render_template, request, redirect
app = Flask(__name__)
app.secret_key = "Dojo"
@app.route('/')
def index():
if session.get('counter') == None:
session['counter'] = 0
session['counter'] += 1
return render_template('index.html', counter = session['counter'])
@ap... | [
"smith.s.erick@gmail.com"
] | smith.s.erick@gmail.com |
c702a1355b9688ac31eb5f513f2d151be4f47134 | f242b489b9d3db618cf04415d4a7d490bac36db0 | /Archives_Homework/src/archivesziped.py | 2b15451a84885e66b830d42976855d566e4d935e | [] | no_license | LABETE/Python2_Homework | e33d92d4f8a1867a850430600ccc7baf7ebc6dad | b24207b74c7883c220efc28d315e386dedead41d | refs/heads/master | 2016-08-12T19:04:05.304348 | 2015-05-27T04:05:18 | 2015-05-27T04:05:18 | 36,182,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | import zipfile
import os
import glob
def zippedfiles(zipfilename):
path = os.getcwd()
zip_file = os.path.join(path, os.path.basename(zipfilename)+".zip")
files_to_zip = [os.path.basename(fn) for fn in glob.glob(zipfilename+"\*") if os.path.isfile(fn)]
zf = zipfile.ZipFile(zip_file, "w", zipfile.ZIP_DEF... | [
"eddiemaiden_17@hotmail.com"
] | eddiemaiden_17@hotmail.com |
0a79edc64c01026d73147c2ba199040dde418acb | 0d75e69be45600c5ef5f700e409e8522b9678a02 | /IWDjangoAssignment1/settings.py | fbefbb96d64fcd6e7f9d12d0300504134dbaecd7 | [] | no_license | sdrsnadkry/IWDjangoAssignment1 | 28d4d6c264aac250e66a7be568fee29f1700464b | 6eb533d8bbdae68a6952113511626405e718cac6 | refs/heads/master | 2022-11-29T07:53:37.374821 | 2020-07-18T03:27:52 | 2020-07-18T03:27:52 | 280,572,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,138 | py | """
Django settings for IWDjangoAssignment1 project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
... | [
"sdadkry95@gmail.com"
] | sdadkry95@gmail.com |
5bc8073cfa36a998bb67cbfb0078c319d984d68b | f561a219c57bd75790d3155acac6f54299a88b08 | /city/migrations/0010_auto_20170406_1957.py | c4a0d52767af5f7c0852ea55762bea83e23cf8ea | [] | no_license | ujjwalagrawal17/OfferCartServer | 1e81cf2dc17f19fa896062c2a084e6b232a8929e | b3cd1c5f8eecc167b6f4baebed3c4471140d905f | refs/heads/master | 2020-12-30T15:31:04.380084 | 2017-05-24T18:26:20 | 2017-05-24T18:26:20 | 91,155,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-06 19:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('city', '0009_auto_20170406_1951'),
]
operations = [
migrations.AlterField(
... | [
"ujjwal.iitism@gmail.com"
] | ujjwal.iitism@gmail.com |
00525edd9f91bf0763fa8d35db247a55724a0f90 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_enumeration_2_xsd/__init__.py | aa2a5364c28c8263b4cba85ac2516304e22deade | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 381 | py | from output.models.nist_data.atomic.duration.schema_instance.nistschema_sv_iv_atomic_duration_enumeration_2_xsd.nistschema_sv_iv_atomic_duration_enumeration_2 import (
NistschemaSvIvAtomicDurationEnumeration2,
NistschemaSvIvAtomicDurationEnumeration2Type,
)
__all__ = [
"NistschemaSvIvAtomicDurationEnumerat... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
3495f596b1c1d7cb79884261ce080ad49e5967d2 | ac8eee756bbdc69c688a4f748cca625d5f064b9a | /spam_api/spam_api/wsgi.py | a6c1060edd85cf22ad0d71827a7db8f47cfc477e | [] | no_license | matiaschaud/TP-ProgramacionAvanzada | a15bdd7be5a2b1f4fbd29d4acabc8980072713ef | 6e162f31ad91abde688229eb4f6aeb6ef60ebbee | refs/heads/main | 2023-03-18T00:39:22.515287 | 2021-03-01T23:52:15 | 2021-03-01T23:52:15 | 316,798,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for spam_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"matiaschaud@gmail.com"
] | matiaschaud@gmail.com |
2fab698a835f6624b452851681c6fd6b63874538 | 11959bb8d2c1d07b67fbc9da27b25f0434dc5393 | /src/data/spiders/pinkbike/pinkbike/spiders/spider.py | 8dd43531f7179eceee80b02fb09cc626ea6d81bd | [] | no_license | louweal/wordgame | 758cb24f4986266c6e323111c6dedffded3d63df | 2d03b46ff5c985d8e28c421c3558a5dfe57cc452 | refs/heads/master | 2021-06-04T05:56:28.945210 | 2020-04-20T14:18:56 | 2020-04-20T14:18:56 | 93,235,514 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import scrapy
from scrapy.conf import settings
class WordsSpider(scrapy.Spider):
name = "pinkbike"
custom_settings = {
'DOWNLOAD_DELAY': 2,
'CONCURRENT_REQUESTS_PER_DOMAIN': 1,
'ROBOTSTXT_OBEY': False
}
def start_requests(self):
urls = []
for i in range(1, 2748): #2747
urls.append('https://www.... | [
"anneloeslouwe@live.nl"
] | anneloeslouwe@live.nl |
bf809fa31669a6db995f706f5243cd48a837b0ab | 8f5a3c0b51599d3daac814fd7d7aaaef85de6c1a | /Sports/live_tennis.1m.py | 5cf2d105b865a0bccebc52b5c44f3bc30a9775a5 | [] | no_license | chrisidefix/bitbar-plugins | d3fc46ae0b24e05ac77bf326863e6f7d091d9b7b | 10c66222f4fb21666aabfd7ddc5d976bc2ef062a | refs/heads/master | 2021-01-20T00:36:59.380506 | 2016-03-30T14:33:04 | 2016-03-30T14:33:04 | 55,046,126 | 0 | 0 | null | 2016-03-30T08:29:44 | 2016-03-30T08:29:44 | null | UTF-8 | Python | false | false | 4,332 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# <bitbar.title>Live Tennis Scores</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Anup Sam Abraham</bitbar.author>
# <bitbar.author.github>anupsabraham</bitbar.author.github>
# <bitbar.desc>Show live scores for tennis matches using ATP World Tour... | [
"anupsabraham@gmail.com"
] | anupsabraham@gmail.com |
71f9088eb2850508d7b32b8291db9c48eaf63ed4 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp50_8000.py | bb136f85f5c8e67ef30d0a736db52e8c424e4cff | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,893 | py | ITEM: TIMESTEP
8000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
6.8399774235701472e-01 4.6516002257638277e+01
6.8399774235701472e-01 4.6516002257638277e+01
6.8399774235701472e-01 4.6516002257638277e+01
ITEM: ATOMS id type xs ys zs
8 1 0.125275 0.0524332 0.0700987
35 1 0.055693 0.119442 0.0648769
130 1 0.061618... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
04c9978ad6a95cfed263e81ffc0cdeaba8a93b6c | ab460d3c0c3cbc4bd45542caea46fed8b1ee8c26 | /dprs/common/sftp/PySFTPAuthException.py | a6d9b4cf620bb2d34ac77e41957792eefe8c126a | [
"Unlicense"
] | permissive | sone777/automl-dprs | 8c7f977402f6819565c45acd1cb27d8d53c40144 | 63572d1877079d8390b0e4a3153edf470056acf0 | refs/heads/main | 2023-09-03T21:54:43.440111 | 2021-11-02T14:44:35 | 2021-11-02T14:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # -*- coding: utf-8 -*-
# Author : Jin Kim
# e-mail : jin.kim@seculayer.com
# Powered by Seculayer © 2020 AI Service Model Team, R&D Center.
class PySFTPAuthException(Exception):
def __str__(self):
return "[ERROR-C0001] Authentication failed. check username and password!"
| [
"bmg8551@naver.com"
] | bmg8551@naver.com |
0f0b067eadadf6cff18f712f55ed2b7ec00786ef | 63c0956de38186a496c8a541a17335bc974fc843 | /venv/bin/wheel | a68a9bb6376bfebea998b887b4e2fbb2c6991ba9 | [] | no_license | cslovexhy/Tetris | 9c043209d0a164c6dfa14c26c523b69938fb7718 | 772df27779a109076e416913088765db20333ba1 | refs/heads/master | 2021-04-28T20:57:42.128153 | 2018-02-18T10:08:21 | 2018-02-18T10:08:21 | 121,940,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/huayuxu/PycharmProjects/Tetris/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"suchen.bupt@gmail.com"
] | suchen.bupt@gmail.com | |
1e0ee01251f67ed10b637c3a87ce579476bbe16d | 7f0694d3186a1294123db11ba7e02babc11f89e7 | /Dash_App_and_Models/model1.py | 5abfdc20e91e4628200a1920b63de837365b1890 | [] | no_license | Nwosu-Ihueze/final_project | 47e05cde1ace4ddede7446578794d0444fb03e88 | 1783d576ce5238008ffaa57fbad56f61c4fd41e5 | refs/heads/master | 2022-04-09T06:12:16.409124 | 2020-03-04T21:49:28 | 2020-03-04T21:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | import pandas as pd
import numpy as np
from scipy import sparse
from lightfm import LightFM
from sklearn.metrics.pairwise import cosine_similarity
from lightfm.evaluation import auc_score
from lightfm.evaluation import precision_at_k,recall_at_k
from surprise import Dataset, Reader
from surprise import SVD
from surpris... | [
"a.i.gorina@icloud.com"
] | a.i.gorina@icloud.com |
5406a0bd1a39311a7a0f09d7800aa9d20636919f | c631e9756210bab774afda2b228853cb93ae28fe | /src/test/test_trainer_attention.py | 5e4bbec6ab8ba0a3a905e64b3e3157bbcaafa0c8 | [] | no_license | AIRob/pytorch-chat-bot | 9a9af2078ef4ee6b5ce5a10a75977fb0b5adfe6a | 1b604f9fecee70e519a930525afaa83facbfaf68 | refs/heads/master | 2020-03-27T10:00:35.117537 | 2017-12-09T01:38:40 | 2017-12-09T01:38:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from unittest import TestCase
from data.data_loader_attention import DataLoaderAttention
from models.encoder import Encoder
from models.decoder import Decoder
from models.trainer import Trainer
class TestTrainerAtt... | [
"snow.akogi.pgel@gmail.com"
] | snow.akogi.pgel@gmail.com |
8403194c971606033bb11b869b9d4c323b5903ff | 2e00546708761532e0081dc9be928b58307c5941 | /setup.py | 6f30596ede067a7daf4e98a7a4a82ac3164c7708 | [
"BSD-3-Clause"
] | permissive | gijs/bulbs | 5f16b9d748face55f514f73c849745af91a8bd97 | 650e03d1ee635d0d8f40557f4697b3a85b88cdff | refs/heads/master | 2021-01-18T06:23:04.496132 | 2011-07-15T15:00:49 | 2011-07-15T15:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,726 | py | """
Bulbs
-----
Bulbs is a Python persistence framework for graph databases that
connects to Rexster.
"""
from setuptools import Command, setup
class run_audit(Command):
"""Audits source code using PyFlakes for following issues:
- Names which are used but not defined or used before they are defined.
... | [
"james.thornton@gmail.com"
] | james.thornton@gmail.com |
2e6261677ddc3501e9d60c2a0868e8ae1938e26e | f33e2e9e10a7c8a5ecc9997f86548bad071ce33e | /alerta/app/exceptions.py | 6c0b0caccf525a16c4431797256c413948898f77 | [
"Apache-2.0"
] | permissive | sasha-astiadi/alerta | 01f1136adbfc26f79935c1c44e9ca3d49efd6f00 | f9a33f50af562e5d0a470e1091e9d696d76558f4 | refs/heads/master | 2023-03-16T10:35:42.300274 | 2018-01-23T14:06:42 | 2018-01-23T14:06:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py |
class AlertaException(IOError):
pass
class RejectException(AlertaException):
"""The alert was rejected because the format did not meet the required policy."""
pass
class RateLimit(AlertaException):
"""Too many alerts have been received for a resource or from an origin."""
pass
class BlackoutPeri... | [
"nick.satterly@theguardian.com"
] | nick.satterly@theguardian.com |
514a299a64c3bb30347bba5a25c3b98d681ecc46 | 313c9f5891993971c7104937caece9504c2b3007 | /playground/env/bin/pip3.6 | 719376daf30ac55b4afcef14072baf8f565874c4 | [] | no_license | lolegoogle1015/get_in_python | 0dc51214ef320dfbb74a1c105baae176525cb66f | b3da667ab8252ebbe3d04c63320ac5fff04b80ed | refs/heads/master | 2022-12-22T09:19:30.518602 | 2020-11-26T17:35:53 | 2020-11-26T17:35:53 | 251,711,874 | 0 | 1 | null | 2022-12-12T20:49:00 | 2020-03-31T19:36:35 | Python | UTF-8 | Python | false | false | 240 | 6 | #!/home/oleh/Study/Python/playground/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"hryshchuk1998@gmail.com"
] | hryshchuk1998@gmail.com |
7739df99512578f0171dbfb7fc76a3ce076b6ff8 | f0c7d9f0a11ffc4688426ac322a8393037794254 | /day10/json/json_readme.py | 5d57b22bc6f8a53cfe6c61890d79aa64c6f8d306 | [] | no_license | AndroidIosWebEmbeddedFirmwareDver/python3LearningNote | fd19b72fdcddfa2e440c14856ecb0ef609ed525a | 83294f9820edeade9446938852a510351c2e49db | refs/heads/master | 2020-03-07T21:12:36.214027 | 2018-04-02T07:29:49 | 2018-04-02T07:29:49 | 127,720,470 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | #
#
#
# TODO;Python3 JSON 数据解析
"""
JSON (JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于ECMAScript的一个子集。
Python3 中可以使用 json 模块来对 JSON 数据进行编解码,它包含了两个函数:
json.dumps(): 对数据进行编码。
json.loads(): 对数据进行解码。
在json的编解码过程中,python 的原始类型与json类型会相互转换,具体的转化对照如下:
Python 编码为 JSON 类型转换对应表:
----------------------------------------------... | [
"494951601@qq.com"
] | 494951601@qq.com |
d8f1945073a82d83a780f2b1c557761a8de3d924 | 95a5cc3e42774ca8e02135e207980aed7d34a606 | /Page/login.py | 3d1dc0081c80cd57ad87bb0f79b30514daf0a7cb | [] | no_license | xiaozhang3358/HouTai | 783caa4f50c2117719de44fc3b4f41d2eb7af2fa | 0d47cff22604c45493086d7faa2c316d1c386535 | refs/heads/master | 2020-04-22T03:45:02.881442 | 2019-02-11T08:58:26 | 2019-02-11T08:58:26 | 160,893,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import Page
from Base.base import Base
class PageLogin(Base):
# 输入用户名
def page_login_username(self,username):
self.base_input_text(Page.username,username)
# 输入密码
def page_login_pwd(self,pwd):
self.base_input_text(Page.pwd,pwd)
# 点击登录
def page_login_btn(self):
self.bas... | [
"JuergenHodge@163.com"
] | JuergenHodge@163.com |
b71941a91b5406892fc0962d46ddbf6b15406fb4 | 64d923ab490341af97c4e7f6d91bf0e6ccefdf4b | /tensorforce/core/networks/auto.py | 6a445b051b06ae683e4435e6f34e5c608037ef5b | [
"Apache-2.0"
] | permissive | tensorforce/tensorforce | 38d458fedeeaa481adf083397829cea434d020cd | 1bf4c3abb471062fb66f9fe52852437756fd527b | refs/heads/master | 2023-08-17T17:35:34.578444 | 2023-08-14T20:14:08 | 2023-08-14T20:14:08 | 85,491,050 | 1,312 | 246 | Apache-2.0 | 2023-08-14T20:14:10 | 2017-03-19T16:24:22 | Python | UTF-8 | Python | false | false | 7,625 | py | # Copyright 2020 Tensorforce Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
bd30293088449cc6e3717512ad35e784ff32fadf | 06a456087f2e49baa3aac361c55a3df986e1834d | /hom_step4.py | dcef3346754c6ab1508d511145f5c75b87ffa25a | [] | no_license | rjanssen96/discrete_structures | b9ccaeafeace34cabb4c508712b6feb456d82b7c | 4529c705e4823a0ac877482f2b9214a37ca48af9 | refs/heads/master | 2020-04-09T08:52:02.648970 | 2019-01-08T08:10:46 | 2019-01-08T08:10:46 | 160,211,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | # (Step 4) Obtain the general solution of degree 2+, nvm 1+
def find_general_solution_2(all_r_and_m_test):
test_general_sol = "s(n)="
u = 1 # counter for adding a + between root sections
a = 1
# chose which theorem to use based on the multiplicities
# loop through all multiplicities, if any of the... | [
"bjornkraal97@gmail.com"
] | bjornkraal97@gmail.com |
4aadfcd20a040ed6e5cbe84affd38b0320fa6928 | e12385c85e41d98bc3104f3e4dde22025a0b6365 | /m5stack-u105/examples/test_saw.py | f4472bdcdd32643ae248bca4c8a0e8d2eb67553a | [] | no_license | mchobby/esp8266-upy | 6ee046856ec03c900ebde594967dd50c5f0a8e21 | 75184da49e8578315a26bc42d9c3816ae5d5afe8 | refs/heads/master | 2023-08-04T15:11:03.031121 | 2023-07-27T15:43:08 | 2023-07-27T15:43:08 | 72,998,023 | 47 | 30 | null | 2021-06-20T16:12:59 | 2016-11-06T15:00:57 | Python | UTF-8 | Python | false | false | 515 | py | """
Test the MicroPython driver for M5Stack U105, DDS unit (AD9833), I2C grove.
Set SAWTOOTH signal output (this have fixed frequency)
* Author(s):
30 may 2021: Meurisse D. (shop.mchobby.be) - Initial Writing
"""
from machine import I2C
from mdds import *
from time import sleep
# Pico - I2C(0) - sda=GP8, scl=GP9... | [
"info@mchobby.be"
] | info@mchobby.be |
af52e6f20b3ecca41269977c3a43d8cccbd8acb3 | ebd7d8407df9b809d3c670fc3734d21c8c3b31d1 | /assertions/positive_lookbehind.py | 1facd1cdb73f4a616843b629fb36e31bb1288f11 | [] | no_license | desireevl/hackerrank-regex-solutions | 941fc8b877f13149ee87a7f943ca1309393b09ff | 659e980294aef2d60fe7f32bcd1f20d3a7134e3c | refs/heads/master | 2021-11-23T22:58:00.893639 | 2021-11-04T00:58:57 | 2021-11-04T00:58:57 | 106,813,056 | 7 | 2 | null | 2021-11-04T00:58:58 | 2017-10-13T10:52:57 | Python | UTF-8 | Python | false | false | 59 | py | Regex_Pattern = r"(?<=[1,3,5,7,9])\d" # Do not delete 'r'.
| [
"desireevogtlee@gmail.com"
] | desireevogtlee@gmail.com |
fb4c0158df41aa9f4f260853f8e1938e3784bd0a | c6f6dd7f8733af191c52a0365f71f4a2c3bc7000 | /venv/bin/pip3.7 | 4574a3c87d9c826184f69885850998e5208d43c3 | [] | no_license | gruni1992/AirlineChecker | 20c79d75160a7829ce2c61305d521ce1a7144919 | 4ea8de9c6f42735bb0dae184a842a7f2be686fb4 | refs/heads/master | 2020-10-01T03:29:22.517770 | 2019-12-11T23:31:57 | 2019-12-11T23:31:57 | 227,445,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | 7 | #!/Users/tobiasgrunwald/PycharmProjects/AirlineChecker/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"email@tobiasgrunwald.com"
] | email@tobiasgrunwald.com |
3e8a9a28a574de2e199c1dabb8e289720915ee65 | 3060eebbf820d63f934cadb05e398fe76a2f66c8 | /quiz/urls.py | cda386e07def41159a07a60d5217c2fbf9cc4c22 | [] | no_license | patwardhanakshay8/sadhyam | 2ddc38ff37b2d4f413a66b96c7f6b62a1534cff5 | f40f7aa0385686d2ffa2bab6e1db0036bd30cbfc | refs/heads/master | 2021-01-12T08:03:21.085056 | 2017-01-01T10:06:21 | 2017-01-01T10:06:21 | 77,112,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from django.conf.urls import include, url
from tastypie.api import Api
from quiz.api import *
v1_api = Api(api_name='v1')
v1_api.register(UserResource())
v1_api.register(ExamResource())
v1_api.register(SubjectResource())
v1_api.register(ChapterResource())
v1_api.register(QuestionResource())
v1_api.register(TestTemplat... | [
"patwardhanakshay8@gmail.com"
] | patwardhanakshay8@gmail.com |
9b793ddce7fe3af92f4a2dd5c7401ce55c990206 | ed36064525bad62959d9ab739edeea477bf29c1c | /2019-10-12-hitcon/lost_key/chall.py | 2d51b7278c7440004f88be66401a91b0ef5844a7 | [] | no_license | p4-team/ctf | 2dae496622c8403d7539b21f0e9a286e9889195a | 8280caff137e42b26cb55f2c62411c7c512088de | refs/heads/master | 2023-08-12T03:21:31.021612 | 2023-04-26T23:57:29 | 2023-04-26T23:57:29 | 42,933,477 | 1,899 | 366 | null | 2022-06-07T21:51:40 | 2015-09-22T12:53:15 | Python | UTF-8 | Python | false | false | 848 | py | #!/usr/bin/env python
from Crypto.Util.number import *
import os,sys
sys.stdin = os.fdopen(sys.stdin.fileno(), 'r', 0)
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
def read_key():
key_file = open("key")
n,e,d = map(int,key_file.readlines()[:3])
return n,e,d
def calc(n,p,input):
data = "X: "+inp... | [
"Pharisaeus@users.noreply.github.com"
] | Pharisaeus@users.noreply.github.com |
683e3738c5937bb596285d3eda2385c7b56b00c8 | faf5d559e70e5434ae3fbd603b0c6217d321477a | /News/constans/www_4908_cn.py | eba1c5b80647e2ca183e270b62de43781489f247 | [] | no_license | roceys/NewsCrawlerPG | 50780b42740d9cbce1af037636fa169440d7292a | 84f32942f07205858973dcc2ad44caae989553eb | refs/heads/master | 2020-12-04T15:57:53.462780 | 2016-07-12T05:21:08 | 2016-07-12T05:21:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | # coding: utf-8
SPIDER_NAME = "spider:news:www_4908_cn"
# START_URLS = [""]
# CLASS_NAME = ""
CRAWL_SOURCE = u"奇趣网"
DOMAIN = "www.4908.com"
# AJAX = True
ITEMS_XPATH = "//div[@class='summary']/h3"
TITLE_XPATH = "./a/text()"
URL_XPATH = "./a/@href"
# SUMMARY_XPATH = ""
# THUMB_XPATH = ""
# EXTRACTOR_CLS = "News.extra... | [
"sunlt@lieying.com"
] | sunlt@lieying.com |
9fcb3eadb820f402f6e00fa52c618598388b3961 | 0a919e7ec5f92ff64aa7f55b545799d0fa7cf0ac | /scripts/splitDetectionsFileByImage.py | 25dafc8ae7ea163329e745e62cae10dd68eea46e | [
"MIT"
] | permissive | Lan1991Xu/localization-agent | cda74d8525f6c2b6cf9e32a660eb0f24e0701b1a | d280acf355307b74e68dca9ec80ab293f0d18642 | refs/heads/master | 2020-07-02T14:32:17.255176 | 2015-05-06T19:55:39 | 2015-05-06T19:55:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | import os,sys
import utils as cu
if __name__ == "__main__":
params = cu.loadParams("detectionsFile outputDir")
f = open(params['detectionsFile'])
line = f.readline()
img = ''
imgOut = open(params['outputDir'] + '/tmp.region_rank','w')
while line != '':
parts = line.split()
if parts[0] != img:
... | [
"caicedor@h2ologin3.ncsa.illinois.edu"
] | caicedor@h2ologin3.ncsa.illinois.edu |
b9d235139763b0caf8b97d85cbbb806f13bf35d3 | 4e37f4d13cdb57e2821960bca8d41a02bbfbdafa | /src/backend/base/authentication.py | 03ac7b13d7361072a9147a51bf75266dd69f8d48 | [] | no_license | PranayMohan1/pustak-back | 996475494125d1dceb493e2979db41d0ebd4903b | 9fb742d1122e974af873d555c4066762fe8f8a96 | refs/heads/main | 2023-03-18T05:29:20.916915 | 2021-01-05T07:55:14 | 2021-01-05T07:55:14 | 326,926,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from rest_framework.authentication import TokenAuthentication
from ..accounts.models import AuthTokenModel
class SportTokenAuthentication(TokenAuthentication):
model = AuthTokenModel
| [
"pranay.mohan@plutonic.co.in"
] | pranay.mohan@plutonic.co.in |
787a5bbbc0f89f35de62c6a9df56fe8e236de8b7 | 5fc9b2e04599fdca46803ebcd5865b3fbc6b14ad | /main.py | 4e992e98e830d15fab412584525e688f16b5ba70 | [] | no_license | Yizong98/bookblog_Cataglogue | e112ddd55149e1bcb02263a29e5c422eb36d8331 | 65cbfcbf54a749787f38e140dd558fcfa2541027 | refs/heads/master | 2020-05-02T23:39:03.867095 | 2019-03-28T21:55:29 | 2019-03-28T21:55:29 | 178,286,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,977 | py | import requests
from flask import make_response
import json
import httplib2
from oauth2client.client import FlowExchangeError
from oauth2client.client import flow_from_clientsecrets
import string
import random
from flask import session as login_session
from database_setup import Book, Base, MenuItem, Author, User
from ... | [
"yizong@ucsd.edu"
] | yizong@ucsd.edu |
4b50ee25fadef6900d12808a2218ca9d4a650918 | a1ab35f212ce1f1aec40232aed181f5fdf4c1532 | /app/__init__.py | 743641a040dfb89ca467f49cb3bb39ca38dac94d | [
"MIT"
] | permissive | TERESIA012/App_Pitch | 5d77e5a3ee393fc41f5df741aa0209cf7e058bc0 | 86ed3fb682e32686d98ce2258a937314300801a1 | refs/heads/master | 2023-07-31T09:53:36.641419 | 2021-09-21T19:35:20 | 2021-09-21T19:35:20 | 407,357,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from config import config_options
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_uploads import UploadSet,configure_uploads,IMAGES
from flask_mail import Mail
from flask_wtf.csrf import CSRFProtect
from flask_simplemd... | [
"kingoriteresia@gmail.com"
] | kingoriteresia@gmail.com |
b93fb2b73c84f3d98b04cf2b4bac0a01950f0d18 | 83108020d0ea05e4441bf79ff704daf6d3514f4c | /sending_email/email_sender.py | c435a7ab6c5a95934b2afcdafecc54531d831e7d | [] | no_license | poojaurkude/sending_email | e5fbb0fc4cb9d59aeba7bc47982dfbaefbc77e9a | 39085f9fb69f5cf6cbf3ca225bde2c6591dbd87c | refs/heads/master | 2022-12-12T18:59:17.377151 | 2020-09-05T16:32:17 | 2020-09-05T16:32:17 | 293,113,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | import smtplib
from email.message import EmailMessage
from string import Template
from pathlib import Path
html = Path('index.html')
email = EmailMessage()
email['from'] = 'Pooja Urkude'
email['to'] = 'Pooja11urkude@gmail.com'
email['subject'] = 'You won 1,000,000 dollars!'
email.set_content(html.substitute({'name': ... | [
"pooja11urkude@gmail.com"
] | pooja11urkude@gmail.com |
d04e9de9a1c3e8805f81d233500ea425bbc2a27d | 55646e56d6bb31ae0913eb71879f49efdfaf904f | /scribbli/profiles/constants.py | 1dc3127b96a3d1fc9dcffb567188491d639a6e3d | [] | no_license | jacobbridges/scribbli-mvp | 2d8851aba018b54431af0eb8cb030d02d35f173f | c24f2f1a2a19480a6b5f69ffbcccf0269d156140 | refs/heads/master | 2023-02-22T11:37:12.239845 | 2021-06-17T04:10:30 | 2021-06-17T04:10:30 | 156,637,826 | 0 | 0 | null | 2023-02-15T20:18:03 | 2018-11-08T02:20:53 | Python | UTF-8 | Python | false | false | 328 | py | class RoleChoices(object):
Guest = 0
User = 1
Moderator = 2
Admin = 3
@staticmethod
def as_choices():
return (
(RoleChoices.Guest, "Guest"),
(RoleChoices.User, "User"),
(RoleChoices.Moderator, "Moderator"),
(RoleChoices.Admin, "Admin"),
... | [
"him@jacobandkate143.com"
] | him@jacobandkate143.com |
6d94d35803c6000f6e08ea10fd49958495575880 | 3b9ce3dbe01de365b3525f155f7ba115a3c7ca92 | /streetview/.svn/text-base/settings-dove.py.svn-base | c773f01a5b27c931b7508f57ef2b0248ea3c8398 | [] | no_license | smooney27/CANVAS | d3743991e35db674cee0dfb03daf7724c612a7f5 | d1e1cd699652dd40c18aa67a38269725395ec78f | refs/heads/master | 2021-01-20T23:09:18.337784 | 2017-11-22T08:34:24 | 2017-11-22T08:34:24 | 101,840,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,187 | import os.path
# Django settings for streetview project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'o... | [
"smooney@steve-mooneys-macbook-pro-3.local"
] | smooney@steve-mooneys-macbook-pro-3.local | |
e5cfae9f86cb329040c77db72efe87b83cd9d6e0 | 6f6a6b38d6e50c60a61bb047718114fabe3dad88 | /main/views.py | 18495a384ad663e7f63d4236e2c79116cc6670e0 | [] | no_license | marexv/kodiRecommenderDemo | 8e2df390810bd56961b810b2ce666daa7c97a56a | 52363fee2ca3a7a69b5bd8bf399a6a05dd85da69 | refs/heads/master | 2021-04-12T01:52:13.391900 | 2018-04-15T18:50:42 | 2018-04-15T18:50:42 | 125,814,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | import json
from django.http import HttpResponse
from django.shortcuts import render
from main.models import Movie
from main.forms import movieForm
from main.graph_as_dict import get_recommendations
# Create your views here.
def autocomplete(request):
"""Function for autocompleting search form."""
data = re... | [
"marko.prcac@hotmail.com"
] | marko.prcac@hotmail.com |
bb9d5fc7810f0c52be7c03285202c98cac4f701f | 89d7ea3933cf6e1615d4aec2212ba84b19860afb | /venv/Scripts/pip-script.py | a0ed26bf344dcd4d667ed64588b2062d0a41cc17 | [] | no_license | tanghu123/PythonOOP | 4fc024b2136f4fde0d9a2407ce41e40715272f85 | 865fcb8f1e99b1d72bb663b62e47e7f779a4d997 | refs/heads/master | 2020-03-30T00:36:19.645843 | 2018-09-27T05:24:14 | 2018-09-27T05:24:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #!C:\Users\HuTang\PycharmProjects\PythonOOP\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"hutang@cn.ibm.com"
] | hutang@cn.ibm.com |
0019b031e7d6ea4b5ef94a7edb66ce0b397327aa | e289f23d5762fe60fa63b7326666a9bbeeeaba06 | /pi.py | 73b1d9094138ed3e39cb6596ccbd2c38b47031de | [] | no_license | banaabraham/personal_insight | cc1f426b3e07f788caa79d49a802021ce0bdce6d | 603c9a194467905c5a0b956c953a5954556c8925 | refs/heads/master | 2021-01-23T16:04:52.665388 | 2017-09-07T09:58:07 | 2017-09-07T09:58:07 | 102,721,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | import tweepy
from watson_developer_cloud import PersonalityInsightsV2 as PersonalityInsights
def analyze(handle):
CONSUMER_KEY=''
CONSUMER_SECRET=''
OAUTH_TOKEN=''
OAUTH_TOKEN_SECRET=''
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(OAUTH_TOKEN, OAUT... | [
"noreply@github.com"
] | banaabraham.noreply@github.com |
002d679d51e628b968db319430289a8f91c8f629 | 71d757af0de13c7f4a0fa39578c3abea3451372b | /network/mar6.py | 767bf1068852aae7055a94f78967350e5932090a | [] | no_license | bh0085/compbio | 039421d04317ae878f222d6448144be88aa95f69 | 95bc24ea34346ff4b9a120e317d08518277f268c | refs/heads/master | 2021-03-12T19:57:22.421467 | 2013-02-05T16:45:37 | 2013-02-05T16:45:37 | 947,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | import compbio.network.netutils as nu
import numpy as np
trgs, tfs = nu.parse_net()
gname = 'FBgn0036754'
tg = trgs[gname]
weights = tg['weights']
wsort = np.argsort(weights)
tf_sel = [tg['tfs'][i] for i in wsort[:8]]
orders = [[1,5],
[1,6],
[7,0],
0,2,3,4,5]
for o in orders[0:3]:
ctf... | [
"bh0085@gliese.csail.mit.edu"
] | bh0085@gliese.csail.mit.edu |
8d2b3d6ccb85c1f38dea9e5a9999d0743003224d | 652a407eda737fc5694f668544b614a816573b22 | /Python/baseline_solution.py | 5dbf9be547606b18a8f5ddd15f1582277735ef81 | [] | no_license | akshaymehra24/who-is-more-influential | 3e9ad6be76d6036d8c95085bdd19df1425686256 | 5d2db5280882cb2af0183b93d2d66dfe02d7f332 | refs/heads/master | 2021-01-11T07:54:23.656000 | 2016-12-06T01:04:19 | 2016-12-06T01:04:19 | 72,068,871 | 2 | 1 | null | 2016-12-06T01:04:21 | 2016-10-27T03:48:29 | Python | UTF-8 | Python | false | false | 3,289 | py | #!/usr/bin/python
# -*- coding: utf8 -*-
# SAMPLE SUBMISSION TO THE BIG DATA HACKATHON 13-14 April 2013 'Influencers in a Social Network'
# .... more info on Kaggle and links to go here
#
# written by Ferenc Huszár, PeerIndex
from os.path import join
from sklearn import linear_model
# from sklearn.metrics import roc_... | [
"patrickegreen@gmail.com"
] | patrickegreen@gmail.com |
dd575001b5eb0379c4912709aaf10eb08a098885 | 3a37b6ce2c1c481f6aded64b2d0c4421f7db1210 | /hpc_bin/ncl_varlist | 1e41532af22ee130e28cb123cfbc92cf31c13340 | [] | no_license | dbreusch/pythonExamples | 99c24dc1d28b8c3be3b4fadd30a05d8ae317b0c0 | 7b8c06208fefcadf918cb9517ac313535c4df010 | refs/heads/master | 2022-10-13T12:21:52.182752 | 2020-06-14T23:10:50 | 2020-06-14T23:10:50 | 265,911,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | #!/usr/bin/env python
# ncl_varlist:
# take a ncl_filedump output and create a usable variable catalog from it
# output file columns:
# 1 - preferred short name: manually change to preferred name as desired
# 2 - short name: for reference
# 3 - long name: as the var exists in the source file
# 4+ - var description
... | [
"dbreusch@me.com"
] | dbreusch@me.com | |
ba426f1e79cb391d274343cd87e1ffbf76f2fa37 | 1fc6750d4553b1c7c81837ec1855377f444dacdd | /Test/pigLatin/__init__.py | 9cf86a56f5cbda3cf701a8ef4cf627a73908d109 | [] | no_license | Yasaman1997/My_Python_Training | a6234c86ef911a366e02ce0d0ed177a0a68157d5 | 11d0496ba97d97f16a3d168aacdda5a6e47abcf7 | refs/heads/master | 2023-03-19T08:33:42.057127 | 2021-03-16T07:43:57 | 2021-03-16T07:43:57 | 91,189,940 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | def Pig_Latin(s):
s = raw_input( "input a word")
while(s!=null):
print s+s(0) + "ay"
| [
"noreply@github.com"
] | Yasaman1997.noreply@github.com |
2bfe0ce34f0883cb0a19b9e1ddc4a134e88153f8 | bbea9b1f64284c9ca95d9f72f35e06aa39522c67 | /Scripts/plot_MS-FIGURE_4b_v2.py | 179017277abe54d6e9bf27d6a766bc9dfc223aaa | [
"MIT"
] | permissive | zmlabe/ModelBiasesANN | 1e70c150bd8897fa5fb822daf8ffad0ee581c5f1 | cece4a4b01ca1950f73c4d23fb379458778c221e | refs/heads/main | 2023-05-23T06:05:23.826345 | 2022-07-22T18:36:27 | 2022-07-22T18:36:27 | 339,145,668 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,625 | py | """
Script to plot figure 4b
Author : Zachary M. Labe
Date : 12 July 2021
Version : 2
"""
### Import packages
import sys
import matplotlib.pyplot as plt
import matplotlib.colors as c
import numpy as np
import palettable.cubehelix as cm
import palettable.scientific.sequential as sss
import palettable.cart... | [
"zmlabe@rams.colostate.edu"
] | zmlabe@rams.colostate.edu |
df29ce0065bc8879edf1477b027727bb68956cf3 | 8bfeed4026eb1faa92ba5ffc4f2f83d1285ade9a | /wineomas/urls.py | 34c1ee2d1cacbad40abf11a2fcff3d484163a9ce | [] | no_license | ugochukwu2017/wineomas | ab4b66738c3ca9bf98a7f8b56c8558f3c9bdcefb | e0e759bd0629dc210abfb4a05d3bc00b5779c10d | refs/heads/master | 2020-12-30T09:58:19.353412 | 2017-08-05T23:24:02 | 2017-08-05T23:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | """wineomas URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"ugo.okiyi@outlook.com"
] | ugo.okiyi@outlook.com |
6db9b78246aef370efc8ef609a33b1dadab124a8 | 53e58c213232e02250e64f48b97403ca86cd02f9 | /18/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM4500_R_0-7.py | fc7eba74e67b0348603262470fab519845902f68 | [] | no_license | xdlyu/fullRunII_ntuple_102X | 32e79c3bbc704cfaa00c67ab5124d40627fdacaf | d420b83eb9626a8ff1c79af5d34779cb805d57d8 | refs/heads/master | 2020-12-23T15:39:35.938678 | 2020-05-01T14:41:38 | 2020-05-01T14:41:38 | 237,192,426 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | from WMCore.Configuration import Configuration
name = 'WWW'
steam_dir = 'xulyu'
config = Configuration()
config.section_("General")
config.General.requestName = 'M4500_R0-7_off'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Autumn... | [
"XXX@cern.ch"
] | XXX@cern.ch |
87934c23053f09c259a1ce2e6270ea821fc90da6 | 520baeba0e86b0bab3c5590f40b868ca4306dc7e | /hazelcast/protocol/codec/count_down_latch_get_count_codec.py | 345de04de3a44161676bfb0d96b360bac2e606ad | [
"Apache-2.0"
] | permissive | mustafaiman/hazelcast-python-client | 69f27367162045bbfa4e66e7adadcfd254dfab21 | 85f29f975c91520075d0461327e38ab93c2e78c2 | refs/heads/master | 2021-01-18T04:23:10.740371 | 2015-12-11T14:26:06 | 2015-12-11T14:26:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from hazelcast.serialization.data import *
from hazelcast.serialization.bits import *
from hazelcast.protocol.client_message import ClientMessage
from hazelcast.protocol.custom_codec import *
from hazelcast.protocol.codec.count_down_latch_message_type import *
REQUEST_TYPE = COUNTDOWNLATCH_GETCOUNT
RESPONSE_TYPE = 102... | [
"arslanasim@gmail.com"
] | arslanasim@gmail.com |
2c5fb7e7df1692ef206b0c450637079eaf951da3 | 1682f1d59d678f5cb210dd03d191cc7ad0b71ce3 | /apps/challenge/migrations/0016_auto_20200210_1801.py | baf9c004a845ed9480ac9a5dc4c714e32dddded8 | [] | no_license | SharifAIChallenge/AIC20-Backend | 8ee05614696313bf981162a91deb164d5e2a7b2a | d813f5a43b2d788874d2daac399d9e4bab6dc02e | refs/heads/master | 2022-12-11T07:25:59.440091 | 2020-03-14T17:23:56 | 2020-03-14T17:23:56 | 234,036,763 | 10 | 1 | null | 2022-12-08T03:26:45 | 2020-01-15T08:42:08 | Python | UTF-8 | Python | false | false | 540 | py | # Generated by Django 2.2.9 on 2020-02-10 18:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('challenge', '0015_auto_20200202_1552'),
]
operations = [
migrations.RenameField(
model_name='tournament',
old_name='... | [
"alirezashateri7@gmail.com"
] | alirezashateri7@gmail.com |
94f2e5f2a0f4bd54fc15ad8cbf7272cf787b7ddc | be98229ba927965c411987d5a5efa7712c81e97d | /tests/majority_class_label.py | 9d0b5c99e49ff6fab3167e3a376f3df2716ab6ae | [] | no_license | nlp-course-test/lab1-2 | ef9f4aa13dc9d7d4ca01c22cb77161b1814b6166 | decf65d1084c33cb6d6af0f4b63e0ea30cad878a | refs/heads/master | 2022-12-10T19:01:59.062856 | 2020-09-07T21:32:22 | 2020-09-07T21:32:22 | 293,636,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | test = {'name': 'majority_class_label', 'points': 1, 'suites': [{'cases': [], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"dengyuntian@gmail.com"
] | dengyuntian@gmail.com |
4e49c89e0fbdb98a60acc97a9cf18de3fbf8f51d | 0b796d8977b5fdee276078ef9d4c6784476bc441 | /hw4/p4.py | bd7d3d63f0670fc6c7489ac880e5557241b68d78 | [] | no_license | JohnnyBarber/Mathematical-Modeling | f372b6f67ef6a5f4a6867dd07d9a55c3114a8e19 | 3cb5e60f9c5d5765b6d48138ca3ae53001f065a8 | refs/heads/master | 2020-04-27T19:34:17.009168 | 2019-03-08T23:21:36 | 2019-03-08T23:21:36 | 174,624,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 7 16:08:27 2018
@author: Jiaqi Li
"""
#!/usr/bin/python
from pylab import *
import csv
from scipy.stats import norm as gaussian
from scipy.optimize import fmin
def main():
height = loadtxt('p4 data.txt', delimiter=',')
x = height[:,0]
y = height[:,1]
m... | [
"TheManNamedJohnnyBarber@users.noreply.github.com"
] | TheManNamedJohnnyBarber@users.noreply.github.com |
cdb462d8f9dd594cae3d7de86231e3ea41c070cc | b8c622e51bcffa2531cd13b59fc8d5490382cb2a | /relational_models/examples/urls.py | 8a60bb573a8847298c97e32055039afe9d373a05 | [] | no_license | anur/django_templates | 630059568497c2f907089ecdeeca55dcb5f4c824 | e55e7ae94062ffa930ec8b4559d0251e296e231d | refs/heads/master | 2022-04-13T12:01:17.031406 | 2020-04-07T23:09:22 | 2020-04-07T23:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.template_view, name="template_view"),
]
| [
"curtis.dalves@gmail.com"
] | curtis.dalves@gmail.com |
3393a8d836b455d0cb754edb1ec870771dbee269 | c4544c22c0618451746795090e07c80bc85a0877 | /static_demo/static_demo/urls.py | 9928d4f92b406cd67d5c5cef03defa2f295f2c2a | [] | no_license | RelaxedDong/Django_course | 35f7027dc552ad148d2dc8679a19a1ffb12b8d14 | 2965089d15e4c80cd6402d362ee37f8cc675c08b | refs/heads/master | 2022-01-09T14:28:40.503099 | 2019-05-24T07:07:03 | 2019-05-24T07:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | """static_demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"1417766861@qq.com"
] | 1417766861@qq.com |
9dc5656c44d68a159c40f4f8ba7a718cfc88e307 | e40d4c4996dc26f9c52be95182bbe97041916959 | /crawl_product_data/crawl_product_data/spiders/shopee_spider_2.py | 07e11b749c5142e34de805420d6821cad78bb3a1 | [] | no_license | dukeantt/crawl-ecommerce-site | 18a5cd7b19682b0ac5c4415d1badf8ad3ec2e131 | 9fdd884aae57d51ffdc98bcb7df5c7b560c7909c | refs/heads/master | 2021-05-19T05:05:24.914852 | 2020-06-15T03:08:49 | 2020-06-15T03:08:49 | 251,539,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,258 | py | # -*- coding: utf-8 -*-
import logging
import scrapy
import json
from datetime import date
class ShopeeItemSpider(scrapy.Spider):
name = 'shopee-item'
allowed_domains = ['shopee.vn']
cat_api = 'https://shopee.vn/api/v2/search_items/?by=relevancy&keyword={}' \
'%C5%A9i&limit=50&match_id=8851... | [
"ngducanh1223@gmail.com"
] | ngducanh1223@gmail.com |
d17d03b122098ab613344e4b358eed9ab77ba30c | 87827abfa180096cc316bb99a26a09947b1f8758 | /mozbadges/site/helpers.py | 5333ffe39dca3bc9b7be04e04ac651324a198e08 | [
"BSD-3-Clause"
] | permissive | adamlofting/mozilla-badges | 65e6c4e5be0c0bcc5c943229ea2705e8dec9d666 | d6c54e830edb08ee6df3dc5190be1408c4797286 | refs/heads/master | 2020-04-08T22:07:29.269596 | 2014-07-29T14:52:55 | 2014-07-29T14:52:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from jingo import register as jingo_register
from django_browserid.helpers import browserid_button, browserid_info
from mozbadges.compat import _lazy as _, reverse
@jingo_register.function
def persona_info():
# For consistency
return browserid_info()
@jingo_register.function
def persona_login(text='Sign in'... | [
"github@andrewhayward.net"
] | github@andrewhayward.net |
d037f32ce137bd1213e2015c9ec0f59704e69b3b | 1671cbf89e22d5fb12b9380ee8469dee98862275 | /setup.py | c4f78b0da1d6f6752a31e1f97de46080a78947e9 | [
"MIT"
] | permissive | VicenteAR/mloq-test | 12315d2ab69fc8da492bbc3373728fa4e7c5ed56 | 38cab68bc5efe5c5f683e10ff30ef14fbed22ab7 | refs/heads/master | 2023-03-05T13:36:38.754448 | 2021-02-09T18:46:09 | 2021-02-09T18:46:09 | 337,502,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | from importlib.machinery import SourceFileLoader
from pathlib import Path
from setuptools import find_packages, setup
version = SourceFileLoader(
"mloq_test.version", str(Path(__file__).parent / "mloq_test" / "version.py"),
).load_module()
with open(Path(__file__).with_name("README.md"), encoding="utf-8") as f:... | [
"vicente.arjona@hotmail.com"
] | vicente.arjona@hotmail.com |
c9094676d71491d916b51175c368a27754374bc2 | 1ede7746b648d08ac7666a1b2659fe829e9a182a | /LTPC1-2020-2/Pratica08/pograma07.py | 5cb06ca749c029fef13aeeebf50815362261d4a4 | [] | no_license | Kurt-Cobai/FATEC-MECATRONICA-1600792021035-KURT | de8fe0216d34268eb2b43b9879529f8d45546335 | e1e21be84941479007069a3032be30fc46a6ceac | refs/heads/master | 2023-01-19T11:45:40.161176 | 2020-12-04T00:52:10 | 2020-12-04T00:52:10 | 293,789,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | preco = input ( "Informe um preço:" )
posicao = 0
posicao_da_virgula = - 1
enquanto posicao < len ( preco ):
if preco [ posicao ] == ',' :
posicao_da_virgula = posicao
posicao = posicao + 1
se posicao_da_virgula == - 1 :
imprimir ( "O valor redes" , preco , "reais" )
mais :
print ( "O ... | [
"noreply@github.com"
] | Kurt-Cobai.noreply@github.com |
c0c0c40c4421b78fb74b7276471ce3e8d9e591d9 | e876989dc598d6e1a48c2bcfdec1ab091cdc8e3d | /migrations/0001_initial.py | caf9f21d0a4286404cbbfabbe91b3dc09b12e816 | [] | no_license | quanted/hwbi_app | dfb7541f143a6ec130b1728b4ca1968179eb757b | 80b401eea49e42c29e1982f2fa6bf4593f33a169 | refs/heads/dev | 2021-01-12T03:32:52.629880 | 2020-02-17T15:00:16 | 2020-02-17T15:00:16 | 78,229,818 | 2 | 0 | null | 2020-04-03T13:37:32 | 2017-01-06T18:42:03 | Python | UTF-8 | Python | false | false | 2,041 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-29 20:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Baseli... | [
"purucker.tom@gmail.com"
] | purucker.tom@gmail.com |
4f2c670e47574d434ef9fe7b5dad37d66659a9e9 | 3f1ff6db6cda96264517484ed7b54bf3e95584cb | /loop.py | 4f3b5a47ba5dcdae8fa7013dc0c296394585eb27 | [] | no_license | kartikeysingh1311/guvi | 187eb69288498bc301f4f70c5dbcee8c67c0a4f4 | 00eb938fe98746ad281ae95a39ca618d3e540abb | refs/heads/master | 2020-04-01T23:47:17.381914 | 2018-10-21T05:22:51 | 2018-10-21T05:22:51 | 153,773,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | x=int(input())
for i in range(x):
print("Hello")
| [
"noreply@github.com"
] | kartikeysingh1311.noreply@github.com |
21a86b46c8032fc41d1ddd1e1ebd07a990320841 | a1372b7c523a1865d685809e3c5d887b108650a3 | /f5lbaasdriver/test/tempest/plugin.py | 2174a5bc842cf72392f0834f292f27a9607d5ed8 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | sapcc/f5-openstack-lbaasv2-driver | 40effa342bea504c779eccd6828ae236b956c478 | 923f085dc71540a1399d439098081fe6cf2c82df | refs/heads/master | 2021-01-11T21:01:07.544680 | 2019-10-23T06:20:10 | 2019-10-23T06:20:10 | 81,066,211 | 1 | 1 | Apache-2.0 | 2019-10-23T06:20:11 | 2017-02-06T08:43:55 | Python | UTF-8 | Python | false | false | 1,432 | py | # Copyright 2015
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"p.breaux@f5.com"
] | p.breaux@f5.com |
1e215bc242fca5e9220e2fe7e015281cf4b594b5 | f0858aae73097c49e995ff3526a91879354d1424 | /nova/api/openstack/compute/contrib/hosts.py | 9fbefd7309b945e6eb8b63e717634091b4a2e30f | [
"Apache-2.0"
] | permissive | bopopescu/nested_quota_final | 7a13f7c95e9580909d91db83c46092148ba1403b | 7c3454883de9f5368fa943924540eebe157a319d | refs/heads/master | 2022-11-20T16:14:28.508150 | 2015-02-16T17:47:59 | 2015-02-16T17:47:59 | 282,100,691 | 0 | 0 | Apache-2.0 | 2020-07-24T02:14:02 | 2020-07-24T02:14:02 | null | UTF-8 | Python | false | false | 12,946 | py | # Copyright (c) 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"sajeesh@cern.ch"
] | sajeesh@cern.ch |
c2636d7dbc2e6eae32c63003498b67df7c85ade0 | ea7f859964ff0c06223b72cb9288522620c89409 | /handle_blog/__init__.py | b33a2639e3e7de4499a5cdfc96d400090f036bf7 | [] | no_license | mudou192/TornadoBlog | 50c86ee25a50c1f165e6470aefcb7a773cfb50b3 | fb709ad5b368377cf8fdc247e71d51a97062b9b5 | refs/heads/master | 2021-01-18T19:53:01.832829 | 2017-04-05T09:22:11 | 2017-04-05T09:22:11 | 86,919,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,862 | py | #coding=utf8
'''
Created on 2016-12-8
@author: xuwei
@summary: 浏览页面
'''
import time,os,re,json
from common.traceback_error import get_err_msg
from common.config import Config
from setting import BlogDataPath
from setting import ImageDataPath
from mysql_contate import MySQLHandler as MysqlHandler
from common.basehandl... | [
"noreply@github.com"
] | mudou192.noreply@github.com |
7fee07df651ff18964eca7846fe20d623465fb46 | e51f0c3cb7e9d2c6adafa0271b6f808301a8a278 | /bin/sendEmail.py | 04165f8ac9dc61e42b061a2cb93bd07ce703c13d | [] | no_license | anke5156/hipDataLoad | 61c481e961e062b3e7e7de2de05fef51ef0d0f77 | e7422c3467574446d6e67ca0a3675aecb35bc178 | refs/heads/master | 2022-07-04T00:03:15.315392 | 2020-05-05T09:07:21 | 2020-05-05T09:07:21 | 258,818,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import smtplib
from email.mime.text import MIMEText
from email.header import Header
'''
@author: anke
@contact: anke.wang@foxmail.com
@file: sendEmail.py
@time: 2020/4/27 10:11 AM
@desc:
'''
class Mail(object):
def __init__(self):
self.mai... | [
"anke.wang@foxmail.com"
] | anke.wang@foxmail.com |
11d717a2f9e739efed56345d3582c110d0476657 | 670340c954be7ea599661ab282149943a737509e | /main.py | af92e165ae8bb88e62e01452056296f8fda5b357 | [] | no_license | eason-lee/tweet | f4d430afb953139d6fe486bc5562da300adcf7b0 | 2be38a816a947b74bf52d96ec082274c55214028 | refs/heads/master | 2020-09-16T23:21:44.826990 | 2016-10-06T03:51:22 | 2016-10-06T03:51:22 | 67,691,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py |
from app import init_app
from app import models
def rebuild_db():
# 必须初始化 app 才能操作数据库
app = init_app()
db = models.db
db.drop_all()
db.create_all()
print('auth rebuild database')
def run():
config = dict(
# host = '0.0.0.0',
# port = 3000,
debug=True,
)
... | [
"15311471692@163.com"
] | 15311471692@163.com |
08b6a5445417b9f2181b89f274c6b1c9883307d9 | 4f672b97bf290d664d63662943fe5d07ab594940 | /mysite/mysite/settings.py | 46673a1f048e3b982ece75572223c14ec8e3885b | [
"Apache-2.0"
] | permissive | tylerelston/cmput404-lab4 | 9d265b4e193347e06554a1fefa58ac9fc3c581f1 | 4b71823be1b6abfbecc1972ba8c72b52ac8ecd7e | refs/heads/main | 2023-08-19T02:51:32.198851 | 2021-09-30T00:40:52 | 2021-09-30T00:40:52 | 411,855,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"24640479+tylerelston@users.noreply.github.com"
] | 24640479+tylerelston@users.noreply.github.com |
b35033ec98fe9219a88a33c5d879b2e4f1a887b3 | fe7cd741a44249a46d8396e658c0edd70f1b7972 | /Unit_A/logfile_viewer.py | 79be1903b1e5c03504acfcd79d51e9a28e95f9c4 | [] | no_license | ArjunChauhan0910/SLAM | 199b476ae4d9ae3b9ea284e83eb2fb2807e0ed57 | 531310018dbbffcb7733304fd1cacd0661936885 | refs/heads/main | 2023-02-24T15:26:24.467216 | 2021-02-04T06:02:44 | 2021-02-04T06:02:44 | 335,854,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,545 | py | # Python routines to inspect a ikg LEGO robot logfile.
# Author: Claus Brenner, 28.10.2012
from tkinter import *
from tkinter import filedialog as tkFileDialog
from lego_robot import *
from math import sin, cos, pi
# The canvas and world extents of the scene.
# Canvas extents in pixels, world extents in millim... | [
"arjunchau@gmail.com"
] | arjunchau@gmail.com |
71cd78ee38557b185c3fa322794243305c8f1384 | afdfe1d456fa784c6ec281e27dfb9b232ec14de5 | /app/server/models/user.py | d38cb2a35f45ba1bdc6f0d6d1eac3f9849ffffe1 | [] | no_license | ebubekir/library-api | 438d8bcd4e23450bd3a8ab2b581a92eab5cbab9f | 02ce55d0e8484afa6394012f8b046843089c2a8e | refs/heads/main | 2023-04-14T13:26:05.805151 | 2021-04-26T23:39:37 | 2021-04-26T23:39:37 | 361,742,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | from typing import Optional
from pydantic import BaseModel, Field
class UserSchema(BaseModel):
firstname: str = Field(...)
lastname: str = Field(...)
class Config:
schema_extra = {
"example":{
"firstname": "John",
"lastname": "Doe"
... | [
"karanfilebubekir@gmail.com"
] | karanfilebubekir@gmail.com |
71e80c8baff21dad8146daa3a3b794eb395334e5 | 4c63edb34dbc6e7d3a07da10f25f23469824d36c | /session5/add.py | 076ae05115291ea142b026360211d4a9e23d32e5 | [] | no_license | KKAiser97/trantrungkien-fundamentals-c4e26 | 59a3c22433dfec85a778a8fc231f429080a6abc3 | 0812ad0061e6ff1aeb7928dfc3464f7b7f2cb193 | refs/heads/master | 2020-04-19T16:12:49.364161 | 2019-03-17T09:47:59 | 2019-03-17T09:47:59 | 168,297,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | # fruitful func
def add(x,y):
s=x+y
print(s)
return s
t=add(3,5)
print(t) | [
"noreply@github.com"
] | KKAiser97.noreply@github.com |
fd8a249b1f44b14a3c11896e5a12e1c86a1988e9 | 372a0eb8d3be3d40b9dfb5cf45a7df2149d2dd0d | /charles/Week 07/lab08/lab08.py | 198fffad72e36dfcdfe4b7505ec51e6fe007c177 | [] | no_license | charlesfrye/cs61a-summer2015 | 5d14b679e5bea53cfa26c2a6a86720e8e77c322c | 1f5c0fbf5dce5d1322285595ca964493d9adbdfe | refs/heads/master | 2016-08-07T06:06:09.335913 | 2015-08-21T00:33:25 | 2015-08-21T00:33:25 | 38,509,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | ## Linked Lists and Sets ##
# Linked Lists
class Link:
"""A linked list.
>>> s = Link(1, Link(2, Link(3, Link(4))))
>>> len(s)
4
>>> s[2]
3
>>> s
Link(1, Link(2, Link(3, Link(4))))
"""
empty = ()
def __init__(self, first, rest=empty):
assert rest is Link.empty or ... | [
"charlesfrye@berkeley.edu"
] | charlesfrye@berkeley.edu |
95303882335933bf48710ea4c6a92ec77ab6fa8b | 71748e7379548d75fcf6713f0e6d66d6db1c2bbd | /4AL16IS051_SHETTY _TANVI/Jaishma Ma'am/Challenge 1/p1.py | 94f3b31275c157f72cf5617f380da3fcadaba83b | [] | no_license | alvas-education-foundation/ISE_4th_Year_Coding_challenge | fcf78c755cc924bea7e905e67c1e30385cf5af0b | 96cfc92d679576dab15ef7d1cb6773f2082abfb2 | refs/heads/master | 2022-11-17T09:19:23.851817 | 2020-07-21T09:59:40 | 2020-07-21T09:59:40 | 265,195,858 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | @@ -0,0 +1,26 @@
1)
x = input("")
n = int(x)
if n % 2 == 1:
print("Weird")
elif n % 2 == 0 and 2 <= n <= 5:
print("Not Weird")
elif n % 2 == 0 and 6 <= n <= 20:
print("Weird")
else:
print("Not Weird")
| [
"noreply@github.com"
] | alvas-education-foundation.noreply@github.com |
d56f9ff4d9977c5cae0f12e69328846bbc0dd91b | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/io_thps_scene/export_shared.py | f75d8e3457209c8ec5a53569e993701e92bf9c6a | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,550 | py | #############################################
# SCENE EXPORT - SHARED COMPONENTS
#############################################
import bpy
import bmesh
import struct
import mathutils
import math
from . import helpers, collision, prefs, material, autosplit
from bpy.props import *
from . prefs import *
from . autosplit im... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.