blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ea6e69e46c5deb8331ab4c3e5c27848242b75155 | 82ef810dcdf1baf6555df6c9409c1692a4f30a2f | /myportal/rootApp/models.py | ecbc8e5c53e274faabe884e6ae988783e738dfe5 | [] | no_license | ernest19/xtralat | 20dd89527738f733c7a23f33901d8cc9e4a552fb | 61ba6f3caf90dc2df460d822b9556600ff8d6ed4 | refs/heads/master | 2023-03-08T16:17:40.046895 | 2021-02-26T11:57:31 | 2021-02-26T11:57:31 | 342,561,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
#Have Updated the usertbl with the AbstractBaseUser
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.gis.db import models
from django.contrib.auth.models import User
# Create your models here.
#... | [
"eopokukwarteng@gmail.com"
] | eopokukwarteng@gmail.com |
095cd2ef6b508c966d83f3087b4d7f37e01079fe | 8257051114b25cf9d94ed2eb8c4d265292470d47 | /Selenium.py | 320ea7927ddba619c2bf1616bf2f520f6c2edfc6 | [] | no_license | Revisto/NLP | b5e33918224edf7e3f86dd3828dc7a403c99ba60 | 3402fa61c106eb308f9ed88692a0aad015f20bfd | refs/heads/master | 2022-04-14T16:38:29.294436 | 2020-04-10T21:41:36 | 2020-04-10T21:41:36 | 254,740,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py |
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import selenium
import time
import random
File=open("API_KEY_.txt", "a+")
for i in range (100000):
Path="C:\ChromeDriver2\chromedriver.exe"
Drive = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")
Drive.get("https://ap... | [
"walt.shabani@gmail.com"
] | walt.shabani@gmail.com |
09b4e2ea0f8daa1f00dafee64896d4ae07f9cb74 | 58778e553b55c3a9e7a9a61a9b7cdea656aa032c | /src/prototype/actions/propModelJoin.py | 248bd40228462d067f32a64bc8a389bf647c7731 | [] | no_license | douarime/ProtoExt | 44025c4535440313497500e53dba4a522f2697a4 | b74852daf6763495c530a31aecbfeb0133c3e295 | refs/heads/master | 2020-12-28T10:34:23.717859 | 2014-01-23T02:04:29 | 2014-01-23T02:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | # -*- coding: utf-8 -*-
from prototype.models import PropertyModel
from datetime import datetime
def doPropModelJoin( queryset ):
"""
No se pueden crear props de diferentes modelos, pues el modelo hace parte de la llave
y aunq yo pienso q deberia factorisarse todo a nivel de proeyecto, es important... | [
"dariogomezt@hotmail.com"
] | dariogomezt@hotmail.com |
fcc334e799ef4601b29842814eb335553b0c2e12 | b55df7681dc339fe94c28a7df4042db590d9611a | /chargen.py | 8ab652b5b0d2867006c89a4286b8bd3ba8b932a0 | [] | no_license | MatthewKLewis/python-cli-chargen | a9e284556d977b7cab32ff8fafcee606e9192bfb | 055f782b10004e7339df49714fc58035c15ce177 | refs/heads/master | 2023-01-21T11:35:19.279484 | 2020-11-30T00:36:24 | 2020-11-30T00:36:24 | 317,071,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,596 | py | import os, sys, random, datetime
import PySimpleGUI as sg
from peewee import *
from pyguiwrapper import *
# Some environmental variable bug is solved with...
os.environ.__setitem__('DISPLAY', ':0.0')
# connect to database
db = PostgresqlDatabase('characters', user='postgres', password='newPassword', host='localhost',... | [
"matthew.knight.lewis@gmail.com"
] | matthew.knight.lewis@gmail.com |
8f94e1a0d91cce2c115e02194c6a231e51c544b3 | 2ecdd403ec11d63f7f7c3377c9047a143b13c8fb | /src/server/physics/test_physics.py | 825564f04e53c855d7db2b41de289a2eaef400d7 | [
"MIT"
] | permissive | umbc-hackafe/bridgesim | 505cb3a469b8a1be43ca3d3c956520eacf6e97bb | 6075dbc3afa8b017f86c628757c3d6c329949546 | refs/heads/master | 2021-01-23T22:54:42.203980 | 2015-01-20T21:59:29 | 2015-01-20T21:59:29 | 23,506,206 | 6 | 0 | null | 2014-08-31T19:46:57 | 2014-08-31T04:10:14 | C | UTF-8 | Python | false | false | 3,928 | py | #!/usr/bin/env python
import unittest
from vectors import *
class TestNVectors(unittest.TestCase):
def setUp(self):
self.v11 = NVector(1, 1)
self.v22 = NVector(2, 2)
self.v34 = NVector(3, 4)
self.v10 = NVector(10, 0)
self.vneg = NVector(-2, -2)
def test_dimensionality(self):
"""Test c... | [
"sasha@crofter.org"
] | sasha@crofter.org |
a8e44bafb1a20a1932c0a0d426b34cf0d7a91d49 | 47436fa43825f070dd95aa408efceb3f85f34b16 | /PID.py | 796339c0c21c47005c475de11f127ed65d382078 | [] | no_license | IamShyam/sattrack | abc7b020b8533cff47aacd850a506f6980fc95ab | 208ce189170b969aa511d5651cbc0b56fa93716a | refs/heads/master | 2020-04-01T04:32:54.140193 | 2018-10-13T08:22:23 | 2018-10-13T08:22:23 | 152,868,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | class PID:
"""PID Controller
"""
def __init__(self, P=20, I=0.0, D=0.0):
self.Kp = P
self.Ki = I
self.Kd = D
self.clear()
def clear(self):
"""Clears PID computations and coefficients"""
self.PTerm = 0.0
self.ITerm = 0.0
self.DTerm = 0.... | [
"shyam141098@gmail.com"
] | shyam141098@gmail.com |
f9e1f690fc14f3838e5b90d9bc77f55ae6c8b20d | 0895e65ec003c9ac27398abdd2ba83680dfba2c7 | /StatsBot/basicLib.py | a067aa239a867169d4362c75890e48a8dd471da3 | [] | no_license | Reltor/ECLStatBot | 42e7baa5febe95cf57ee47552af48ce91b6c039e | 62d10f0470ea7cac06868e05626fa8160a133bf2 | refs/heads/master | 2021-01-25T14:03:24.570469 | 2018-03-26T00:48:08 | 2018-03-26T00:48:08 | 123,641,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #BASIC functions for Python - Super Multi-Purpose
def getInt(prompt="Please give a number"):
num = -1
done = False
while not done:
try:
num = int(input(prompt))
done = True
except ValueError:
done = False
return num
| [
"noreply@github.com"
] | Reltor.noreply@github.com |
a393381fc709d221953a74740fee4525177c337d | f41a57efd9f5ec3a67c8459a926c283bc75f0248 | /tripAdvisor_en/crawler_Advisor_en.py | c04fb2a67aaeb055d6829e33bf626f553c84e030 | [] | no_license | kokais/crawler_script | e245bf944310bcc70439d621106e88ddb149c00d | bed64584588f830ac47c8b9cab7fac056e16036e | refs/heads/master | 2021-06-18T05:28:57.241026 | 2017-06-20T11:19:30 | 2017-06-20T11:19:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,293 | py | # coding:utf-8
import re
import time
from urllib import quote
import urllib2
import MySQLdb
from bs4 import BeautifulSoup
import json
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
class TA_EN:
def __init__(self):
self.siteURL = 'http://www.tripadvisor.com'
self.category = {1: 'spa', 2: q... | [
"424536312@qq.com"
] | 424536312@qq.com |
af721700409df42fbce835e0c8315348d47d3999 | 2d496320c2bbe124f035e59fddb90e163a4c2270 | /noted/sandbox/test_smtp.py | 3122881583a2c3556edd367e2da64a02a5893e97 | [] | no_license | parz3val/Codavt | 8b08fd5424ffbee04c0eac09149955b0b6b1d40c | 4d4e1ad0db5dd959f27680c743a1db5c2b93f486 | refs/heads/master | 2023-02-03T10:44:28.739260 | 2020-12-23T07:05:58 | 2020-12-23T07:05:58 | 307,899,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from fixtures import (
smtp_connection
)
# Test func
def test_smtp(smtp_connection):
response = smtp_connection.ehlo()
assert response == 250
assert 0
| [
"iamtheparzival@gmail.com"
] | iamtheparzival@gmail.com |
5fecb7219e9625230304028e4c8a4d628c6bd15a | e9a7decfd176aa114efe022c82a07934a3378f8a | /Øving1_linear_regresjon/main.py | b0fb82a5247fa751ec1c1a8a2205896278d095f6 | [] | no_license | Mahmoud-m1994/MachineLearning | 8beaff5fd27cee3c4c3c87fe26ab129289a30696 | e57800814f64029054ea9b4052b91b019ca2135c | refs/heads/main | 2023-01-05T09:08:56.728946 | 2020-11-02T22:46:40 | 2020-11-02T22:46:40 | 309,508,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | import matplotlib.pyplot as plt
import pandas as pandas
import torch as torch
# Reading input and output from file without rounding off
with pandas.option_context('display.precision', 20):
data_from_file = pandas.read_csv("length_weght.csv", float_precision=None)
# creating tensor from targets_df
allData = torch... | [
"mahmouim@stud.ntnu.no"
] | mahmouim@stud.ntnu.no |
293a0f2271360822a1606d2995fcdcbc78ef916e | 46e01962d3eef258562b4b5e0204368a80eb2101 | /resources/site-packages/dns/edns.py | 8ac676bc62108d991c6d4dc35a507084b2baa454 | [
"WTFPL"
] | permissive | elgatito/script.elementum.burst | fb4fe3f10f722822373e2739a9308130482d1734 | e37adca9634f644890673dee236a9c215c6744c1 | refs/heads/master | 2023-08-26T20:30:59.300868 | 2023-07-27T11:23:44 | 2023-07-27T11:23:44 | 111,373,790 | 108 | 181 | WTFPL | 2023-08-28T11:57:32 | 2017-11-20T06:59:52 | Python | UTF-8 | Python | false | false | 4,384 | py | # Copyright (C) 2009, 2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND... | [
"denis.kuzmenok@gmail.com"
] | denis.kuzmenok@gmail.com |
49c50875c50caadcecb420f7aeaa3ee9ca8bb707 | c009db43a5b81988829fe061ebcfb1270589dfd9 | /test4.py | fe449ff57a1dc875ada9daf8dd4a64cd9db99009 | [] | no_license | TasosLep/Compiler-MiniPython | bd4d1ce8506ca0adda32f8fe621366cdb8a8c6f6 | 70a13e3a93a6a024564121fc494bbb50a689193e | refs/heads/master | 2020-04-06T13:28:33.573742 | 2018-12-31T13:34:12 | 2018-12-31T13:34:12 | 157,501,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | x = 2
y = 'pepe'
if y == x:
print 't' | [
"mariosprokopakis@gmail.com"
] | mariosprokopakis@gmail.com |
b7c087fbcc7dcedc7b1fd62174a96cc5138213ba | 66998d0fef1dc2dcb2b6cbfe700ee24d6951f2b6 | /cyberguardians1/guess/exploit.py | 4790f28c22add384d5e24fc4961bd34c27672671 | [] | no_license | nhristov97/write-ups | a545f68ab577aabd6121e826eb92ffb62d9ddc8c | e7c4a7dffff37d5ab455f6f03d40ec8a945bcf3a | refs/heads/master | 2021-09-27T22:47:16.923407 | 2018-11-12T12:58:28 | 2018-11-12T12:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #!/usr/bin/python
# coding: utf-8
from pwn import *
# context.log_level = 'debug'
filename = "./guess"
e = ELF(filename)
p = process(e.path)
print p.recvuntil("Tell me your name")
payload = "A" * 0x10
p.send(payload)
print p.recvuntil("Nice to meet you " + payload)
randnum = u32(p.recv(4))
p.recvline()
log.info("l... | [
"chaneyoon@gmail.com"
] | chaneyoon@gmail.com |
80c58f7da7e71f28a200604c09362759efceda31 | b72fdee0ad45255bee22e52b2673548078b99076 | /Exam preperation/Rekursive funksjoner.py | 4fce0498a04e931633aafbc5739399d9b5f83ecd | [] | no_license | lovmo/Hovedinnleveringer-132 | 37a181256788314a04a4ca59eb23f2ba8791ccf3 | 300fa0471989ef61d12f35775759dcde565567b3 | refs/heads/master | 2020-09-24T23:08:38.739962 | 2019-12-09T13:32:46 | 2019-12-09T13:32:46 | 225,866,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | # REKURSIVE FUNKSJONER
n = 0
def rek(n):
if n == 10:
return n
else:
print(n)
return rek(n+1)
def snu(tekst):
if tekst=='': return ''
else:
snuddRest=snu(tekst[1:])
return snuddRest+tekst[0]
| [
"endysen@gmail.com"
] | endysen@gmail.com |
1c690f9fd488c79aa396d9191ea2904cd176477b | d24a1cab3fadaf2a839f41cb7d2e7ae9c4779ef8 | /arduino_server/SNMP/RFC1155-SMI.py | 1dc463b93246b10e6426600f76cf7903fa44c450 | [] | no_license | vfalbor/nagios-arduino | 685d3652a7154a7c06c3c2fc76a83683732f1a43 | d05d30b5ec54ca48ed8fc72fb333d712ad25da4d | refs/heads/master | 2020-04-29T11:10:25.028415 | 2014-03-10T16:43:22 | 2014-03-10T16:43:22 | 17,251,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from pysnmp.proto import rfc1155
( MibIdentifier,
MibTableColumn,
MibTableRow,
MibTable ) = mibBuilder.importSymbols(
'SNMPv2-SMI',
'MibIdentifier',
'MibTableColumn',
'MibTableRow',
'MibTable',
)
iso = MibIdentifier((1,))
org = MibIdentifier(iso.name + (3,))
dod = MibIdentifier(org.na... | [
"victor.fernandez.albor@gmail.com"
] | victor.fernandez.albor@gmail.com |
aa5f25502bcc370c1a2e7eb79e5cd35bdc1841d7 | b781507eee338e844cae5d4cc615b14d06bc7f64 | /prediction.ml/python/src/main/python/bundle/start_bundle_server.py | 6d69b5ca11877824cd20fff0296346dc4f8335f2 | [
"Apache-2.0"
] | permissive | 4thepoch/pipeline | 3f994c8feb7b9040bc288fb2ec0a40e8bcefc019 | 962d913cce21a693102102f2548b9c7d4e3dc162 | refs/heads/master | 2021-01-19T09:35:26.562286 | 2017-04-10T03:54:01 | 2017-04-10T03:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,838 | py | #!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
see also (python 3): https://gist.githubusercontent.com/touilleMan/eb02ea40b93e52604938... | [
"chris@fregly.com"
] | chris@fregly.com |
724c2b02f263df523b8afe0c513cfa3edbeb912d | 7f11800bcf0f339e9e233cee228b26d5cd317252 | /exc_main.py | 64dde2884c64d0733bddc81039c80222f0395e53 | [] | no_license | sindbach/plugin-example | fd6198594b2cf4db38ba496a5fdd3d4eb0af0bb2 | aad5ae63ff59640ba450973692e379444d95a29d | refs/heads/master | 2021-01-10T03:19:52.089852 | 2016-04-09T12:11:59 | 2016-04-09T12:11:59 | 55,842,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | #!/usr/bin/env python
""" Executable for serialiser package.
Supporting 3 modes of operation: serialise, deserialise and listtypes.
"""
import sys
import argparse
from serial.serialiser import SerialLoader
from serial.serialiser import DE_PRINT
def main(flags):
# fetch a list of available plugins.
tr... | [
"sindbach@gmail.com"
] | sindbach@gmail.com |
248a20762cc356d830d0d042b2203ae7bd5635db | 0d4b4be2ff6bd3a58cac3adb9a392e080c6c7c46 | /snf-cyclades-app/synnefo/logic/management/commands/server-remove.py | 86a6b9d6660536f13183dcc99896daf2c1d16780 | [
"BSD-2-Clause"
] | permissive | philipgian/synnefo | 715645a8bbaab8bd6c448bf7c168f6f99ae615a1 | d4fffe4942e9e3c5ac7f41af0f5643dd0645023e | refs/heads/master | 2021-01-21T11:33:22.540104 | 2014-05-27T10:57:45 | 2014-05-27T10:57:45 | 17,517,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | # Copyright 2013 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above
# copyright notice, this list of conditions and the f... | [
"cstavr@grnet.gr"
] | cstavr@grnet.gr |
e47934720afca41716adadcb251455080fbf3b6c | e559781f1a785f6932a20315f491316fa5f991ba | /src/match_stats.py | 919c2a873cf0790697dfd2362cda6ee43d4aa887 | [
"MIT"
] | permissive | PeterJCLaw/match-scheduler | 3e05a5f07842d16029dfd72e18a3dd52d8ea9ce0 | f4630f274197af06bfbc268039e23028b00b0344 | refs/heads/master | 2022-04-29T14:05:05.571911 | 2022-04-19T17:04:45 | 2022-04-19T17:04:45 | 9,333,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | def match_statistics(matches):
from collections import Counter, defaultdict
match_counter = Counter()
opponents = defaultdict(set)
prev_match = []
collisions = set()
for match in matches:
for team in match:
if team in prev_match:
collisions.add(team)
... | [
"arplynn@gmail.com"
] | arplynn@gmail.com |
7237e7351b5b9578ebd652a9374a1a35a966ee7c | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/jzp.py | 8d619608d3a047ef364a68e383155b077ce18c55 | [] | 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 |
8b7e943dba0a90c2c31e62aa0f1beb573b9b08d4 | 95bd46f885998bbb8da1483c44a291de228a2270 | /quantize_and_test.py | ade2a62cfc37a38657b310246ff09f78879284ce | [] | no_license | githubfragments/INR | cb8fc487210b4240c2342d3e4e3cf834e2ca4500 | 1e7261588ff57ed528f64aa26ee2baaceba2e398 | refs/heads/master | 2023-06-12T22:59:11.262698 | 2021-07-06T10:29:40 | 2021-07-06T10:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,473 | py | import copy
import pickle
import zlib
import numpy as np
import pandas
import yaml
import sys
from losses import model_l1
sys.path.append("siren/torchmeta")
sys.path.append("siren")
import skimage
import matplotlib.pyplot as plt
import io
import torch
# @title Set device
device = torch.device('cuda' if torch.cuda.i... | [
"y.struempler@gmail.com"
] | y.struempler@gmail.com |
940b9e7443beffa163aadaa8d3ff6b99e06872bd | d44215864e30ad8039a1a294875e4222e3d23ebd | /devel/lib/python2.7/dist-packages/rosserial_python/__init__.py | 10cd20fa99dfcbffffdf314d7933408dee3a8348 | [] | no_license | prathyusha-shine/abhiyan1.0 | 5c3eebfbbacb8b364180b9c2bd377c73cf29e693 | bf9be6462c132465ddbf8c20b1e9a4e1eabd596e | refs/heads/master | 2020-12-31T01:23:32.911145 | 2015-05-31T06:19:16 | 2015-05-31T06:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | # generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/sudha/catkin_ws/src/rosserial/rosserial_python/src".split(";")
fo... | [
"sudha@sudha.(none)"
] | sudha@sudha.(none) |
322667431192b6412e24a1dea7c120a3b19202e9 | b953909018be86cf8cdf328e2b13395c1dbe28c0 | /apps/blog/signals.py | ad1b5bcf358f33816d995cb34b3fe89b1a4a3dc1 | [] | no_license | wangyong240/mes | 06ce26d146aebe0b0103dda4fdd198c3cefc6014 | 12d7321c1b96ae0fdd8f26029462e1943a500c01 | refs/heads/master | 2023-01-01T13:29:29.853063 | 2020-09-19T01:19:22 | 2020-09-19T01:19:22 | 296,762,233 | 1 | 0 | null | 2020-09-19T01:20:05 | 2020-09-19T01:20:04 | null | UTF-8 | Python | false | false | 240 | py | import django.dispatch
post_viewed = django.dispatch.Signal(providing_args=["post", "request"])
post_published = django.dispatch.Signal(providing_args=["post"])
post_redirected = django.dispatch.Signal(providing_args=["post", "request"])
| [
"70498306+wangyong240@users.noreply.github.com"
] | 70498306+wangyong240@users.noreply.github.com |
eb1b5beff1192f98e33857eec82befcbd20bdb2c | 7e6c2aa534a612c05c6f87e85a6ae45dd6c03408 | /General Problem/ListIntersection.py | 65457d8b30eb016dc09e0ea84a3302687fbe03cf | [] | no_license | Akshay-agarwal/DataStructures | 528c9ee93cca90aae634985bc4470f6419885eba | a6abea2c24166db168ae9092893ac794fc921d74 | refs/heads/master | 2021-01-12T09:54:36.696776 | 2016-12-29T09:59:31 | 2016-12-29T09:59:31 | 76,295,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | c=[1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,4,3]
print(set(c))
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
l=[x for x in set(a) if x in set(b)]
print(l)
| [
"akshay.agarwal01@sjsu.edu"
] | akshay.agarwal01@sjsu.edu |
d9c704f85da2ac0dcb6c44ef62fafb05e70ad87b | 667fad988ea0a5652fc522e87bb7b02cc748ecad | /fluent_dashboard/__init__.py | 2964b54e27bfc0df7eb28e684c4954db4e6c6ea7 | [
"Apache-2.0"
] | permissive | django-fluent/django-fluent-dashboard | 6a841f4572b8797427b46839aeb496c7e6b3192b | d683d1bda698aa8790526fcf7ecd255dfbea45cd | refs/heads/master | 2023-02-20T04:01:34.448490 | 2021-11-17T12:02:38 | 2021-11-17T12:02:38 | 2,784,335 | 204 | 33 | Apache-2.0 | 2023-02-15T20:49:59 | 2011-11-15T23:57:05 | Python | UTF-8 | Python | false | false | 40 | py | # following PEP 440
__version__ = "2.0"
| [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
b8a0670e967d3cb15d51ccd374c0e667ce324f29 | 3374a4f971298367204be27142b1d13ec141eefc | /app/__init__.py | 96674b9d54359935d23e5ccf30dde0a8f9d6cbb2 | [] | no_license | ThePoulsen/testr | 2f82286230536fa04944962005be882cdce80d9e | 16e58187d9c974aada63136f6166edb35ea3efd4 | refs/heads/master | 2020-12-24T20:00:39.699410 | 2017-03-31T13:58:51 | 2017-03-31T13:58:51 | 86,226,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | ## -*- coding: utf-8 -*-
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
from flask_mail import Mail
import flask_sijax
from flask_htmlmin import HTMLMIN
from flask_security import Security, SQLAlchemyUserDatastore
# Setup Flask and read config from ConfigClass defined above
app = Fla... | [
"henrik@vipilon.dk"
] | henrik@vipilon.dk |
d0c4325e46632c9ee28107a7ddec6c8ce15010bc | 3f71a817cfb54eb388f9eb30c9cd4a503ded77e7 | /join/migrations/0001_initial.py | 8a28f3c5f06953b4e757a9eaecef18a104d59718 | [] | no_license | diegomatar/irbolsa | f3737a4e85a8d4067aa62e88b03e97ac0fe5f35a | adec275f07bb7e8393dd9ca4ed8c6613b0688c8e | refs/heads/master | 2020-05-16T22:51:45.310640 | 2015-07-19T20:48:09 | 2015-07-19T20:48:09 | 16,681,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Join'
db.create_table(u'join_join', (
(u'id', self.gf('django.db.models.fields.A... | [
"diegomatar@gmail.com"
] | diegomatar@gmail.com |
3a875bc89bf0d83cc7e80b9fa971cd13322cde19 | 133312f6347f283685b6492476dc2fa844b48124 | /DSCLinker/wsgi.py | 9aa4a5fc6dbbec174965974e9f71d498df2913d6 | [] | no_license | durgesh2001/DSCLinker | 35bc974bf9d9eb81d938aaeff62f99e43f88d41d | fedfb0b4a2de663da02c90d967db21395911579e | refs/heads/main | 2023-08-13T11:47:45.213015 | 2021-10-06T17:54:52 | 2021-10-06T17:54:52 | 413,177,651 | 0 | 1 | null | 2021-10-06T17:38:45 | 2021-10-03T19:32:30 | Python | UTF-8 | Python | false | false | 395 | py | """
WSGI config for DSCLinker 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_SET... | [
"michaeldurgesh@gmail.com"
] | michaeldurgesh@gmail.com |
a8580c754c4c9e01c2cef4b77ddbea9386055f1e | 310719469c00c7663db9b1958b99784dc775b50f | /ProjektUmowy/settings.py | ad6777bf4cf9c16b24659bd1760f0d8be0c182dd | [] | no_license | msm3858/projektumowy | b4c0e8d760c63111d2b9dc402496a40a6742ab2d | 80ea7a376f908b9c784b38104312e4a8df487b3e | refs/heads/master | 2021-01-25T14:55:44.601063 | 2018-03-03T22:28:00 | 2018-03-03T22:28:00 | 123,736,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | """
Django settings for ProjektUmowy project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import ... | [
"="
] | = |
419f91ca1f613bbe63fe2dbd179ce02d31f7d5a1 | c9f54e1a2e11a033b53b4f12564c7b87c5ce1a4a | /one_time/environment_create.py | 727284811b13add5fd6d62eeedff615c51d4cfd9 | [] | no_license | mikewycklendt/dcadventures | b2e5e38ed53a698bb3c18c5b332df424540a18e3 | 542f90c3cce859416de14e40bdebf6a8cddcf67a | refs/heads/master | 2023-06-10T17:00:33.380125 | 2021-06-21T20:38:25 | 2021-06-21T20:38:25 | 290,849,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | @app.route('/env/create')
def env_create():
environment = ['Underwater', 'Zero Gravity', 'Mountains', 'Jungle', 'Desert', 'Volcano', 'Space', 'Woodlands', 'Arctic']
for i in environment:
entry = Environment(name=i, show=True)
db.session.add(entry)
db.session.commit()
results = Environment.query.all()
fo... | [
"mikewycklendt@gmail.com"
] | mikewycklendt@gmail.com |
5415341df0ce6d42fac8a85929bd3883209db3ec | 3bdf42f3cc30af47aef031492154022b5edf212c | /OutOfBag/G/KMeans.py | f04cd28cfd3adaa22917fe85c03463a6e0edfc82 | [] | no_license | shuowenwei/LeetCodePython | a86873189a9fce011782496e4d8519731efc0519 | 0821af55eca60084b503b5f751301048c55e4381 | refs/heads/master | 2022-10-12T19:24:39.709886 | 2022-10-07T03:53:54 | 2022-10-07T03:53:54 | 59,629,706 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | class K_Means:
def __init__(self, k=2, tol=0.001, max_iter=300):
self.k = k
self.tol = tol
self.max_iter = max_iter
def fit(self, data):
# if len(data) < self.k:
# rasie Exception("Sorry, k must be >= data length")
self.centroids = {}
... | [
"weisw9@gmail.com"
] | weisw9@gmail.com |
20732fea5a89fbdaea0293971a4d67660276aa7b | 767c07db1fb131047af3d9b0a065b8fdc8aac9ab | /53-pd/pd_groupby1_mtcars.py | 520aea1548de3be4b50e2c7c8b950a666f397141 | [] | no_license | DUanalytics/pyAnalytics | e52c5469da30a5f436ec0f3120d9f15fb82fd9b3 | 107a08bebe46ea51afccfeae4a666213bb405d41 | refs/heads/master | 2023-07-08T04:32:54.758902 | 2023-07-03T14:37:04 | 2023-07-03T14:37:04 | 202,094,535 | 394 | 31 | null | null | null | null | UTF-8 | Python | false | false | 6,506 | py | #Pandas -Group By
#%
import pandas as pd
pd.set_option('display.max_columns',11)
pd.set_option('display.width', 1000)
import numpy as np
import matplotlib.pyplot as plt
from pydataset import data
mtcars = data('mtcars')
mtcars.head()
df2 = mtcars
df2.head()
df2.columns
df2.am
df2[df2['am']== 0]['mpg'].min() #min mileag... | [
"dup1966@gmail.com"
] | dup1966@gmail.com |
5168e9f2905c6f970952595ab106f2c5d32da5a6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_285/ch5_2019_04_04_20_41_17_645524.py | f380d7683bb0ac22f7fc58d7e72786323413a3e5 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | def maior_primo_menor_que(n):
for i in range(1,n):
x=0
for k in range(1,n):
if i%k==0:
x+=1
if x<=2:
primo=i
if primo<=1:
primo=-1
return primo | [
"you@example.com"
] | you@example.com |
5115dbdab7c9a002e97baa1e8b601b71b88f13de | 957cc36f8368e3baa98c77cd3895daefa2e55fc0 | /DSS_translated_to_Python.py | a22bf6bee2873940cd1a04d4a3dd2a24ec272281 | [] | no_license | kalenkovich/pyDSS | 6f0a093d8e487f60be60eba6dabb93a16cdd95d4 | 622fabbef185958976d8dffc5964c09e1868696e | refs/heads/master | 2020-05-18T06:40:44.681447 | 2019-05-17T08:25:24 | 2019-05-17T08:25:24 | 184,241,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,379 | py |
# coding: utf-8
# This is a test of the translation of the DSS algorithm from Matlab to Python. The Matlab source is taken from `NoiseTools` package that can be found [here](http://audition.ens.fr/adc/NoiseTools/).
#
# The test consists of running an example from the `NoiseTools` in parallel in Matlab and Python an... | [
"e.kalenkovich@gmail.com"
] | e.kalenkovich@gmail.com |
0cf7314d3c53af83e62431f47cd686002240c6fa | 95e3df357914bbb287cd4a53ac166910088f4f9f | /2.Data Wrangle OpenstreetMaps Data/Code for Project/audit2.py | f9af28b29fac79dbb12bcc5d1a7612c94cad105d | [] | no_license | poonkin/Udacity-2 | ed58afb2902742a5f34e81072d45a74d15a5a5da | 5aabdce377db79bb5d1133460ce5e85ec207ff37 | refs/heads/master | 2021-01-17T06:29:38.770780 | 2015-03-15T06:54:08 | 2015-03-15T06:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # Execution
for st_type, ways in st_types.iteritems():
for name in ways:
better_name = update_name(name, mapping)
print name, "=>", better_name | [
"yanyachen@users.noreply.github.com"
] | yanyachen@users.noreply.github.com |
8cac904ee71ae5c4ecb35db6d604c241f1c83402 | e8f0334572e46bd52ff66660bd4e0b335b5de619 | /main.py | bfbea0dc2b39665c26d351a630877b397ab38ae9 | [] | no_license | 00012121/Seminar_4 | 19fedabdbc186dcbd186f5ba79d121c2f7ee1589 | 0be5cc3cb0bd20c074db82716f393bf63c558e0d | refs/heads/master | 2023-08-13T14:43:02.624936 | 2021-10-15T05:21:05 | 2021-10-15T05:21:05 | 417,370,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | print("yes")
print("tesgfasdf")
print("tesgfasdf"); | [
"wiut00012121@gmail.com"
] | wiut00012121@gmail.com |
8073a0e1716bdee0601790717843a54d8c410fe2 | 25a532c41440300f240845523b4c3ae82db03e0f | /pyB/rpython_b_objmodel.py | 597f9072b34aca7474449bdbe48d5c39f37e14c1 | [] | no_license | hhu-stups/pyB | b262e767b9e85251be8b86846a557bd3ff6d51de | 5915f816cab3230e6d1b46dcb785e13f902dec63 | refs/heads/master | 2020-05-21T19:42:06.536979 | 2018-09-24T10:36:25 | 2018-09-24T10:36:25 | 8,031,304 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,199 | py | # Wrapped basic types to allow RPYTHOn Typing (everthing is a W_Object)
# Immutable (always return W_XXX) to get better performance results with RPTYHON-tranlation
# except boolean methods!
import sys
from config import PRINT_WARNINGS, USE_RPYTHON_CODE, RYPYTHON_PATH
sys.path.append(RYPYTHON_PATH)
from rpython.rlib.obj... | [
"John.Witulski@uni-duesseldorf.de"
] | John.Witulski@uni-duesseldorf.de |
e3c1110febed38dbb271bdcb22a91f0ce6883dbf | 849e95a72f4f380d6b31573a0a13e9eccd288838 | /legal-api/migrations/versions/8c74427a6c0e_document_table.py | ce9d42b94349d5f8d89ee6e8dac4b29336d97f1f | [
"Apache-2.0"
] | permissive | bcgov/lear | d9b27e2b44ba607ca13878357a62a0623d54ddee | d90f11a7b14411b02c07fe97d2c1fc31cd4a9b32 | refs/heads/main | 2023-09-01T11:26:11.058427 | 2023-08-31T20:25:24 | 2023-08-31T20:25:24 | 168,396,249 | 13 | 117 | Apache-2.0 | 2023-09-14T20:52:02 | 2019-01-30T18:49:09 | Python | UTF-8 | Python | false | false | 3,875 | py | """document-table
Revision ID: 8c74427a6c0e
Revises: b7c4b2533f84
Create Date: 2021-08-17 06:11:01.634099
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8c74427a6c0e'
down_revision = 'b7c4b2533f84'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
726a3546e1a75330b41c5b98818aa8b938abd613 | 4903164971d3263cc8f18175ec36de5c33d0a38a | /lab4/first_task.py | b8a13ec569f6662f5300724f68526ddb930454a6 | [] | no_license | SamodelkinDA/infa_2021_varlamov | 658087ec99d2719e87701553617bff199f794cba | a3c8ea237919de1da5a9291dc19e5118e3f82fb1 | refs/heads/main | 2023-08-22T15:04:52.732114 | 2021-10-08T07:47:22 | 2021-10-08T07:47:22 | 412,359,739 | 0 | 0 | null | 2021-10-01T06:48:50 | 2021-10-01T06:48:49 | null | UTF-8 | Python | false | false | 825 | py | import pygame
from pygame.draw import *
pygame.init()
FPS = 15
screen = pygame.display.set_mode((800, 800))
YELLOW = (255, 255, 0)
RED = (255, 0, 0)
BLACK = (0, 0, 0)
GREY = (217, 217, 217)
rect(screen, GREY, [0, 0, 800, 800], 0)
circle(screen, YELLOW, [400, 400], 250, 0)
line(screen, BLACK, [520, 550], [280, 550], ... | [
"varlamov.al@phystech.edu"
] | varlamov.al@phystech.edu |
80bea7b770acd282f216015f2a326ea37f193ab0 | 306a781b7bcf3cbc0da2ee293f8f470d633dec47 | /server.py | 883b46d82b7d2664342af4c88754068830e20884 | [] | no_license | preyas-mishra/chatroom-application-on-same-network | fe99c502b4d0b0675437920f3f41ec75417ecc39 | 26a10ae01ead5c298c243375cdac1b6326754ba6 | refs/heads/main | 2023-07-28T08:32:09.306130 | 2021-09-02T14:19:27 | 2021-09-02T14:19:27 | 402,447,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | import socket
import threading
#import chat
class Server(object):
def __init__(self, hostname, port):
self.clients = {}
# create server socket
self.tcp_server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.tcp_server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
... | [
"noreply@github.com"
] | preyas-mishra.noreply@github.com |
5b0b2e2d88961cb5966b60ee7e827530990e1b03 | d6525d326e133b4492071d89d4066615489d08c5 | /other_algorithms/insert_sort.py | 04741db1539a3ed8adc2e3d82b49e73da3d97f6d | [] | no_license | iAnafem/Stepic_Algorithms.Theory_and_practise | 85e03842925ea2649c198e6dd20c79636d64c79d | 1c9bc87f662bd98448891dff299035f57f218ac4 | refs/heads/master | 2020-04-07T12:46:58.252891 | 2019-02-05T12:30:14 | 2019-02-05T12:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | A = [1, 4, 5, 6, -4, 3, 3, 4, -45, 5, 6, 7, -8, 6, 5, 4, -4]
N = len(A)
for top in range(1, N):
k = top
print(k)
while k > 0 and A[k-1] > A[k]:
A[k], A[k-1] = A[k-1], A[k]
k -= 1
print(A)
| [
"DPronkin@mostro.ru"
] | DPronkin@mostro.ru |
078f4e4873e1e60966ee3d88a1b39126dd8bd317 | 58f05b14c1d6f1c164a6405c9969317086317ca3 | /exr2.py | a142089d82c998c3361bc74e06991ccdd1260c4b | [] | no_license | kelvinhovinho/mad-lib-game | f2c785a0c7df1276c312cc7dbf910e0bfc96b0a7 | fc249afbf3fdf664dd5db7e9b20ec3a2e2806666 | refs/heads/master | 2023-06-25T18:47:42.761747 | 2021-07-28T12:18:13 | 2021-07-28T12:18:13 | 390,340,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # mad lib game
name = input('what is your name\n ')
age = int(input('what is your age\n '))
town = input('what is your home town\n ')
color = input('what is your favorite color\n ')
status = input('what is your relationship status\n ')
print(f'my name is {name}. i am {age} years old. my home town is {town} and my fa... | [
"kelvinadamba@hotmail.com"
] | kelvinadamba@hotmail.com |
db4fbc8cc9596eb08c2e5e399c88fdc42e118905 | ec2b6625290d93518dcbf1bed183a6c876b230a0 | /bak/get_stock_list.py | 13543354a07a4b7758db919bbe5393057d7a9fe9 | [] | no_license | Ye980226/lxneeq | 9d030edcf26336382047a20f6ac6520b0750764d | 3b9d9824b1befcdd43c646d7c1057aa6e42fb1aa | refs/heads/master | 2020-05-17T10:03:01.421878 | 2019-05-04T15:26:44 | 2019-05-04T15:26:44 | 183,648,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import requests
import os
from bs4 import BeautifulSoup
i = 1
dirname = os.path.dirname(os.path.abspath(__file__))
os.chdir(dirname)
filename = "stock.txt"
f = open(filename, "w")
BASE_URL = "http://www.jingujie.com/stocklist/?page=%d"
while i <= 769:
r = requests.get(BASE_URL % i)
i += 1
bsObj = Beautiful... | [
"18955993726@163.com"
] | 18955993726@163.com |
25db676fe3fe5f0e0ae1c74cc258468e05e3f61f | b372b9a1bdaaa9263aa93664f8550896232dc12c | /list_collections/ll.py | 4f1de1f277ee2da416cae18709aca3a0eef79755 | [] | no_license | shaiwilson/algorithm_practice | f029d72517d76905fd8fc8676b0a57c664563146 | e7db19f9d1c13fff2f9dce348b96e59d068151e8 | refs/heads/master | 2021-01-21T13:17:39.058681 | 2016-05-15T06:51:28 | 2016-05-15T06:51:28 | 54,241,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | """
this implementation of a linked list adds the new node at the head
of the list. The new item is the first item of the list and the
existing items are linked to this new first item so that they follow.
"""
class Node:
def __init__(self,initdata):
self.data = initdata
self.next = None
def g... | [
"sjwilson2@usfca.edu"
] | sjwilson2@usfca.edu |
b7a900ff96fd23f345e5bc1b05aa71e21eb03b88 | efcd21234f3291e8fc561f49a7c88fc57a63e952 | /tests/unit/language/parsers/lark/test_parser.py | 8c8dec3c8693acc9b6689af162d7e7d9861a47f2 | [
"MIT"
] | permissive | tartiflette/tartiflette | 146214a43847d2f423bf74594643c1fdefc746f1 | 421c1e937f553d6a5bf2f30154022c0d77053cfb | refs/heads/master | 2023-09-01T02:40:05.974025 | 2022-01-20T14:55:31 | 2022-01-20T14:55:31 | 119,035,565 | 586 | 39 | MIT | 2023-09-11T07:49:27 | 2018-01-26T09:56:10 | Python | UTF-8 | Python | false | false | 389,497 | py | import os
from unittest.mock import Mock, patch
import pytest
from tartiflette.language.ast import (
ArgumentNode,
BooleanValueNode,
DescriptionNode,
DirectiveDefinitionNode,
DirectiveNode,
DocumentNode,
EnumTypeDefinitionNode,
EnumTypeExtensionNode,
EnumValueDefinitionNode,
E... | [
"raulic.maximilien@gmail.com"
] | raulic.maximilien@gmail.com |
edf2cabc5e84594334d14292c5ba43863618c2c5 | 3a5f14a4a1911229dde120f9352fb63da73b2726 | /AMDMServer/util/DBManager.py | ba558baf8d7b8128b4c012101c712bc6553ad216 | [] | no_license | yeonghokim/OSAM_AMDM | 0aeebe3dc93c1eb8cde722c1c4e22999f318c87f | a930ab1a12d9ab8201ba01ea7d05cfc14d500dd8 | refs/heads/master | 2022-12-19T01:01:30.952629 | 2020-10-08T10:33:34 | 2020-10-08T10:33:34 | 300,146,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | #from util.jsonManager import *
import sqlite3
from util.serverLog import LogD
def updateIoTData(DM,DBLocation):
con = sqlite3.connect(DBLocation)
cur = con.cursor()
cur.execute("UPDATE PHONECASE SET IS_LOCK=? WHERE PHONECASE_PR=?;",(DM.getData("Lock"),DM.getData("ID")))
LogD("UpdateIoTSQL 완료(id : "+s... | [
"yeongho.kim2000@gmail.com"
] | yeongho.kim2000@gmail.com |
6d8d123690287a79fcc0833b2ba1410a6f893f52 | e465ec4e9af2358ed8a63b555b03d24a30a68790 | /study_python/day5/write_example2.py | d802f005d8dc31e93a387164c957087c9b81e36d | [] | no_license | veritakim/study_python | 40930442130d78190977157229bef9e03f6303fe | 8c25ec8716fc16223473f53e87d29f102fc80adb | refs/heads/main | 2023-02-27T16:40:36.189980 | 2021-02-05T11:42:56 | 2021-02-05T11:42:56 | 330,602,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | '''
앞선 실습 과제에서 vocabulary.txt라는 파일을 만들었죠? 이 파일에는 우리가 암기하고 싶은 단어들이 정리되어 있는데요. 이번에는 이 파일의 단어들을 가지고 학생들에게 문제를 내 주는 프로그램을 만들려고 합니다.
프로그램은 콘솔에 한국어 뜻을 알려 줄 것이고, 사용자는 그에 맞는 영어 단어를 입력해야 합니다. 사용자가 입력한 영어 단어가 정답이면 "맞았습니다!"라고 출력하고, 틀리면 "아쉽습니다. 정답은 OOO입니다."가 출력되어야 합니다.
문제를 내는 순서는 vocabulary.txt에 정리된 순서입니다.
'''
with open('vocabul... | [
"kjs3597@gmail.com"
] | kjs3597@gmail.com |
d53ec57abc4aabc0c00b58decf042363f7a3cb3b | 9936e97e5536ba6dc10b717a0b264f26b2557def | /reorder.py | 0c237c9f932ee5430e5ac23910dd3d3d859a67f9 | [
"MIT"
] | permissive | acoli-repo/book-gen | e68cc5836be7cd23b7a5483b3574e3b97a880090 | ef93116d2d6d4f10ef5f29c296c1f55448793a4a | refs/heads/master | 2021-07-05T09:52:06.760023 | 2021-06-25T10:47:35 | 2021-06-25T10:47:35 | 183,104,770 | 5 | 4 | MIT | 2020-09-18T21:23:17 | 2019-04-23T22:26:10 | Python | UTF-8 | Python | false | false | 14,269 | py | import sys
import os
import gensim
import re
import random
import csv
import logging
import numpy as np
# import theanets
import json
# from sklearn.metrics import classification_report, confusion_matrix
import operator
from random import random
from gensim.models import KeyedVectors
### Main program
... | [
"niko@Nikos-MacBook-Air.local"
] | niko@Nikos-MacBook-Air.local |
d54d3e97c2cd9d701ec0878fe7616f94b1f49463 | a1c8731a8527872042bd46340d8d3e6d47596732 | /programming-laboratory-I/iffz/teorema_herao.py | fd606d456f778469a63af30ca5e8a84d625308aa | [
"MIT"
] | permissive | MisaelAugusto/computer-science | bbf98195b0ee954a7ffaf58e78f4a47b15069314 | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | refs/heads/master | 2022-12-04T08:21:16.052628 | 2020-08-31T13:00:04 | 2020-08-31T13:00:04 | 287,621,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Utilizando o Teorema de Herão para Calcular a Área de Triângulos
import math
N = int(raw_input())
areas = []
for i in range(N):
medidas = raw_input().split()
a = float(medidas[0])
b = float(medidas[1])
c = float(medidas[2])
s = (a + b + ... | [
"misael.costa@ccc.ufcg.edu.br"
] | misael.costa@ccc.ufcg.edu.br |
2ac22d58b0a0c7fff386b3c21240e78118b1b3f6 | f44dcc228271aec0f0baac44bec35a1397b97c93 | /protocolTest.py | a423bf08d3c2cc39115db5a49a93c03616eb8308 | [] | no_license | OranBar/Python_RC | 053754341f9c0a9fcc3054333be454dc7d39c490 | c4ca8df4e6391359d2208b97e0f72b326eca15fa | refs/heads/master | 2021-01-19T10:45:57.568362 | 2017-02-17T04:40:13 | 2017-02-17T04:40:13 | 82,204,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 16 03:11:09 2017
@author: King Pub
"""
import sys
i = 16
ba = bytearray(i)
print ba.decode
#for i in range(0, ):
# sys.stdout.write(ba[i])
#
#sys.stdout.flush()
#print ba[0] | [
"baroran@hotmail.com"
] | baroran@hotmail.com |
034d7bc7558130581e12a0ca2d4775672c85a642 | bf1588509df8cc40e99f3e362eff18f5bd754ae3 | /Python/python_stack/django/restful_users_projects/manage.py | e244072b37fd103515ff2b6409be476d617bc657 | [] | no_license | nick0000100/DojoAssignments | dec7b45a18d986acea3373839a9dcc5c314781a2 | dd698fc69df17041a284fd99cf2522e0731c6477 | refs/heads/master | 2021-01-01T17:39:44.065520 | 2017-08-18T22:28:45 | 2017-08-18T22:28:45 | 98,124,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "restful_users_projects.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. E... | [
"nick.sor@live.com"
] | nick.sor@live.com |
b1e2aad1bcc43e01228fd2cdb4bcb322e663dadd | 1b30eb6a293b4631939b7e104e6050f3206e1b60 | /jenkins-jobs | 9513c4d1df382563e9c65330d789435793d989ec | [] | no_license | tfheen/jenkins-job-builder | fec58afdea95a806591f3ed11fdd94f53c20b680 | 3739ad3eaed323af900c1d450114313679acebce | refs/heads/master | 2020-12-24T19:17:46.866924 | 2012-10-15T10:34:01 | 2012-10-16T16:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376 | #!/usr/bin/env python
import jenkins_jobs.builder
import argparse
import ConfigParser
import logging
import os
import sys
def confirm(question):
answer = raw_input('%s (Y/N): ' % question).upper().strip()
if not answer == 'Y':
sys.exit('Aborted')
def main():
parser = argparse.ArgumentParser()
... | [
"jenkins@review.openstack.org"
] | jenkins@review.openstack.org | |
d4c0c3d0a6f77da0c017ffbae553d80b31212d54 | 878eea4c228f2dcc2d6ae281a9bf1b1f028ae18a | /svm.py | 741d019146c125b275d27b1d158a050143596043 | [] | no_license | angeloponc/mood | 39fbd4f7dfcc0c9d543e6cdc97162ffb6c3f4b7b | 8e9d549798eb41d86e76beb157479f8323f2a2dd | refs/heads/main | 2022-12-27T21:47:40.288447 | 2020-10-09T01:38:12 | 2020-10-09T01:38:12 | 302,493,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
namefile = 'data.csv'
df = pd.read_csv(namefile)
print(namefile)
print(df.shape)
print(df.head())
print(df['Clase'].value_counts())
X = df.drop(['Emocion','Path','Clase'],axis=1)
y = df.Clase
# separar entre... | [
"noreply@github.com"
] | angeloponc.noreply@github.com |
041b1a308cdbee3b037a69cc473611dd56cc9dee | 44f0dcd9d987be19cc81c2d15cd5160aee1f4da7 | /local/solution/model/train_char_rnn.py | 99f5be01d6d563803b91070321327a57d2030331 | [] | no_license | claesgill/azure_ml_workshop | 9bf6f52d0ea9f98aff9a74a289d685ae3425b186 | e1e9fb8277be11f2a12fe7d48836320ac3cd3853 | refs/heads/master | 2022-12-26T19:06:00.031430 | 2020-10-08T13:13:00 | 2020-10-08T13:13:00 | 292,477,535 | 0 | 1 | null | 2020-10-07T14:28:24 | 2020-09-03T05:41:57 | Jupyter Notebook | UTF-8 | Python | false | false | 4,034 | py | import argparse
import os
import random
import time
from azureml.core import Workspace, Dataset, Run, Experiment, RunConfiguration, ScriptRunConfig, Model
from torch.autograd import Variable
import torch.nn as nn
import torch
from tqdm import tqdm
# local
from src.src import read_file, char_tensor, time_since, CharRNN... | [
"noreply@github.com"
] | claesgill.noreply@github.com |
6e2a6feed956fbce85dfd0d98d47f8dc269a6884 | 08e2c21d7b1a0bafc79ecaa0884e7c7088a6d2ce | /python_hw3/problem3.py | cce8b06e75eb1d6bace837773de9b4170a5b8bfa | [] | no_license | mklemos/python | 9300ce3b9270d2140fa15b6c5909d9f74fb54903 | d67d80617014a00c5ca033d4e0eb83ed31e573c2 | refs/heads/master | 2021-01-16T21:22:04.219446 | 2015-03-31T22:53:19 | 2015-03-31T22:53:19 | 33,214,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | ## Lab3 problem3
## Maximilian Lemos
## 02-04-2015
newlist = [1,2,3,4,5]
newlist.pop(2)
newlist.pop(2)
print(newlist)
newlist.insert(1,17)
print(newlist)
test = 4 in newlist
print(test)
| [
"mlemos91@gmail.com"
] | mlemos91@gmail.com |
1c931bd57a40181c6743b1d7327334c7a47cc38a | 8e52c27f1b2823db67db4438b2b7e22c18254eca | /eval_gl_khpa.py | 0257cad3197eece7938580d717a4b307d026a02d | [
"MIT"
] | permissive | earhian/imgclsmob | 5582f5f2d4062b620eecc28d5c4c9245fea47291 | c87c0942420876941868c016211073dec4392e4d | refs/heads/master | 2020-04-12T02:13:55.258601 | 2018-12-17T20:38:19 | 2018-12-17T20:38:19 | 162,242,486 | 1 | 0 | MIT | 2018-12-18T06:40:42 | 2018-12-18T06:40:41 | null | UTF-8 | Python | false | false | 5,186 | py | import argparse
import time
import logging
import mxnet as mx
from common.logger_utils import initialize_logging
from gluon.utils import prepare_mx_context, prepare_model, calc_net_weight_count
from gluon.khpa import add_dataset_parser_arguments
from gluon.khpa import get_batch_fn
from gluon.khpa import get_val_data_... | [
"osemery@gmail.com"
] | osemery@gmail.com |
0880cf07429a36f3400967114be5d4659ffdb8d8 | 59b2f758a8ae22a8395e16343dd2cf43b32ffa3f | /SimLinearRegression.py | 5ab3384ac679d45939efb6421b80d478ed1cfd01 | [] | no_license | GuanhuiGuan/Tensorflow_Applications | 52eadf80e72abd414d1ea3d7d4dc3f0fcd42d943 | a04756ab2215e9eff0a5bc874c7a451d2672b644 | refs/heads/master | 2021-08-26T07:25:08.948001 | 2017-11-22T06:13:31 | 2017-11-22T06:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | import tensorflow as tf
import numpy as np
feature_columns = [tf.feature_column.numeric_column("x", shape=[1])]
estimator = tf.estimator.LinearRegressor(feature_columns=feature_columns)
x_train = np.arange(1.0, 5.0)
y_train = np.array([0., -1., -2., -3.])
x_eval = np.array([2., 5., 8., 1.])
y_eval = np.arr... | [
"noreply@github.com"
] | GuanhuiGuan.noreply@github.com |
2789040406c024d7dac4e0a46d63e39cc5a2bcab | a90077635aeac846965381e0b07591a1df011afe | /care/facility/migrations/0107_populate_external_ids.py | 9b3f281051e8f7bdd00a83eaea7ac4dd55b4b5bd | [
"MIT"
] | permissive | Basharckr/care | f873ca140ae8607846d9b9500e3c21e9bfa15800 | c86ae2614ea9ba80b140a2eb21ad64fdbb47ad7e | refs/heads/master | 2023-06-17T21:26:48.936321 | 2021-07-12T06:03:52 | 2021-07-12T06:03:52 | 386,884,450 | 1 | 0 | MIT | 2021-07-17T08:41:09 | 2021-07-17T08:41:09 | null | UTF-8 | Python | false | false | 1,041 | py | from uuid import uuid4
from django.db import migrations
def unique_external_ids(apps, *args):
models = [
"ambulance",
"ambulancedriver",
"building",
"facility",
"facilitycapacity",
"facilitypatientstatshistory",
"facilitystaff",
"facilityvolunteer"... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
dcb7d92857fd2fcf7f5ec9f843c75190a1a773a9 | 02878a9ea8e10fdbab3e187844f2c70072cda327 | /em/api/admin.py | 8fe943f141d2a00447d088aeb5749088f307958d | [] | no_license | aravindm711/expense-manager-backend | 58f17cb511576ced88453319cecb529f92dd5b83 | 1d649b3d62898e97553ad47e95134c838057be06 | refs/heads/master | 2023-04-16T12:51:09.688756 | 2021-04-18T17:34:25 | 2021-04-18T17:34:25 | 341,444,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from django.contrib import admin
from .models import Expense, LentOrOwedExpense, ExpenseNotification
# Register your models here.
admin.site.register(Expense)
admin.site.register(LentOrOwedExpense)
admin.site.register(ExpenseNotification)
| [
"aravindmurali711@gmail.com"
] | aravindmurali711@gmail.com |
da06f908b4fe9803300dc1d725dabb5956e02813 | d91ee4e5d3fbfb45bfd623af5fac1aee1e318a3c | /app.py | 36041031d0fbccaa3a3b9ca183d8d776d89b4b2b | [] | no_license | srajasimman/RPi_Flask_Remote | 747bc610d292dbce48bb8f9e9086c62d74b6794c | 628165925ea653d05dafb86cb1dc82b9271d43cc | refs/heads/master | 2021-04-06T11:02:26.278613 | 2018-03-14T10:23:46 | 2018-03-14T10:23:46 | 124,508,017 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | #!/usr/bin/env python
'''
Raspberry Pi GPIO Status and Control
'''
import RPi.GPIO as GPIO
from flask import Flask, render_template
app = Flask(__name__)
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
# define GPIO pins for relay
tv = 17
dvd = 18
set_top_box = 22
projector = 23
ac = 24
fan = 27
# initialize GPIO ... | [
"srajasimman@gmail.com"
] | srajasimman@gmail.com |
983c9edc547d1ec5b03c3bc66ade4f0abffa040c | ced2b83ef7cc267792e8014aed7dc90f21ce9899 | /euler/PandigitalProducts.py | c3efa3f4587af21aaab52306a71116e790776a7e | [] | no_license | cypress777/oj | 4f380dd84ed3b7f398dfc6ad0c254cab1adfd1a3 | 80062f6969162dbf11634ccfceb502dbc6874531 | refs/heads/master | 2022-03-10T17:32:13.664052 | 2022-02-23T11:04:26 | 2022-02-23T11:04:26 | 144,862,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # Am * Bn = Cm+n where 2*(m + n) = 9
# or Am * Bn = Cm+n+1 2*(m + n) + 1= 9
# => m + n = 4
import math
import Permutation as lp
numbers = [i for i in range(1, 10)]
ans = set([])
while (not lp.isEnd(numbers)):
C = numbers[0] + numbers[1]*10 + numbers[2]*100 + numbers[3]*1000
A = numbers[4] + numbers[5]*10
... | [
"chenypress@gmail.com"
] | chenypress@gmail.com |
71b44031eb64e59bca4f8751a39eed7376120754 | 031864a41f92433fb407706f6cc5791813c2f739 | /corecode/context_processors.py | 37b0d3ca55102714e38d09d7d8f6c2ba257b391b | [] | no_license | OAO-kotiki/MB | 741608e224c0ef9339654e7fd761d3a5714dada2 | e358a0fa45fb7b693ca150fdeadd5a0c08870de0 | refs/heads/master | 2022-11-08T05:14:38.436039 | 2020-06-23T03:39:42 | 2020-06-23T03:39:42 | 274,294,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from .models import AcademicTerm, AcademicSession, SiteConfig
def site_defaults(request):
current_session = AcademicSession.objects.get(current=True)
current_term = AcademicTerm.objects.get(current=True)
vals = SiteConfig.objects.all()
contexts = {
"current_session": current_session.name,
"Группа":... | [
"noreply@github.com"
] | OAO-kotiki.noreply@github.com |
dc9ae3159f31cee6eab55e9eecbd026054356da6 | 7e8ff7f00f974f1ec8adec8d2c66d539d48b7676 | /GUI in Python/module_sys.py | 176ff894af0a20129e30dfc8f2bab3f6982a5ec2 | [] | no_license | TranHuuThuy-BKHN/Python | 4c7c35a6e4f621140a85d0e0a429679e89b805b0 | 3051826cc91ea9bcfbebe16f5c5a03611c5f6851 | refs/heads/master | 2020-04-02T02:31:29.686007 | 2018-10-20T14:33:06 | 2018-10-20T14:33:06 | 153,913,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import sys
def tong ( a, b = 10):
print(a+b)
print(sys.argv)
if len(sys.argv) > 1:
for i in sys.argv[1:]:
tong(int(i))
| [
"huuthuy2000@gmail.com"
] | huuthuy2000@gmail.com |
1b1e7aef318a395793802019d2a1047d0e7533b2 | 86f07020293cfd625a1c01ffdc6aa09272f5537b | /commons/datasvc.py | 3b6f12594334d3cbf5d36992ed8da513e2e039bf | [] | no_license | CMSCompOps/TransferTeam | ec553a357decbc0650cc0302f58cec7cec7e57e9 | b9259a3ee8be1f020d614721f62662ce0eafa2cb | refs/heads/master | 2022-12-23T05:44:30.252624 | 2022-12-22T13:24:01 | 2022-12-22T13:24:01 | 20,916,607 | 5 | 13 | null | 2021-07-30T15:58:01 | 2014-06-17T08:52:06 | Python | UTF-8 | Python | false | false | 2,594 | py | #!/usr/bin/env python
import sys,getopt,urllib
try:
import json
except ImportError:
import simplejson as json
def help():
print "instance (optional): PhEDEx instance prod/debug/dev (default prod)"
print "service : datasvc name (blockreplica, filereplica, etc.)"
print "options (optional)... | [
"merictaze@gmail.com"
] | merictaze@gmail.com |
f5ca5fa772883d2d76cc8a38eb28417455f7df55 | 0550c8b03627929bb079c322ba740b36f142aae9 | /kagen_srt.py | b8e50a321e078c07c64c13161cd1576a8bc422df | [
"MIT"
] | permissive | gonadarian/kagen | 5d691d0665c98650bf282c0fa3d75f946ad2c4f4 | d2df5d7f02bc5b69556b3dcf3f00061b0d0e7ee9 | refs/heads/master | 2021-01-23T11:47:58.908752 | 2013-10-25T16:00:21 | 2013-10-25T16:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | import os
import re
from kagen import utils
def work(filename):
srt = open(filename, encoding="utf-8")
lines = [line.strip("\ufeff\n") for line in srt.readlines()]
srt.close()
errs = []
titles = []
title = None
data = None
id = 0
for i in range(len(lines)):
line = lines[i]... | [
"gonadarian@gmail.com"
] | gonadarian@gmail.com |
ae1e46cc4f41130b792538a1800b059a6bc17646 | fede0ffee3a308f1e639be2323655ab4b41e260a | /tests/test_hash.py | a16e14e1249d975ce0be4d15725ae70a8d3a8290 | [
"Apache-2.0"
] | permissive | acjh/pip-api | 0f0e57de0cbeeeee973639a7fd172aff04f75fc1 | a20a984a44ab66e10c0f25c8b34813829f292769 | refs/heads/master | 2022-12-16T04:14:43.201175 | 2020-08-17T23:39:41 | 2020-08-17T23:39:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | import pytest
import pip_api
xfail_incompatible = pytest.mark.xfail(
pip_api._hash.incompatible, reason="Incompatible"
)
@xfail_incompatible
@pytest.mark.parametrize(
"algorithm, expected",
[
("sha256", "c3ebc5b7bc06d4466d339f4d8d1e61d1fdc256dd913d6d5752acea9ce5581a15"),
(
"s... | [
"di@users.noreply.github.com"
] | di@users.noreply.github.com |
38009460ca2805bef4aa4faccd564db4c60f5600 | 0cc59d7106371cb2b5f2420f3cd103c902435f18 | /jobs/models.py | ec6dc78d1232136b8a3db666060ace5c6cb9ec95 | [] | no_license | omerolmez/django-examples | 3d4450d148ba55a6f69b65c5bfee6060646973c4 | 4685a6fc199fbcf8819ec2c70b453b6e202a6b23 | refs/heads/master | 2020-04-01T11:00:47.188790 | 2018-11-01T15:50:36 | 2018-11-01T15:50:36 | 153,142,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.db import models
# Create your models here.
class Job(models.Model):
image = models.ImageField(upload_to='images')
summary = models.CharField(max_length=200)
| [
"omerolmez@gmail.com"
] | omerolmez@gmail.com |
3114ddfea054bdb84d63e455b7de35507155608f | 46da209602dc1b0b05af781f6e0d080d56a4b8fe | /userInput.py | 728a2cee395277ef83f3d3bf1770659ecdc8e1d9 | [] | no_license | derekngoh/PfolioProject---Offline-Password-Vault | 5e05e4a13d08fb2a5d3074a6f52f802cb63dca53 | 8e25c6ff6ddc2564a67696459e467d5b7faca7b5 | refs/heads/master | 2022-11-15T22:40:46.467538 | 2020-07-10T22:58:45 | 2020-07-10T22:58:45 | 278,079,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | from blackBox import BlackBox
class User_Inputs:
"""
Collects user input and sets format to facilitate usage by other methods
"""
#sets server to default using default email and password.
def __init__(self, email=BlackBox.def_email, passw=BlackBox.def_pass):
self.email = email
self.passw = ... | [
"noreply@github.com"
] | derekngoh.noreply@github.com |
81364a72bb1e11dd2e5832ea931af1ae0c421746 | c16105668eaf9548bb418234734553b7433b7463 | /face_search/server/old/fulldb.py | d13e7a2d57b5f003c9dcf1f041eda4f4084f1c6d | [] | no_license | HarkHem/check_face | 7918270c5bc62eb9fc7b72986ddfad99d08ddc14 | 4e28fc89729dd7a837ff0acd08fba1867fce07fa | refs/heads/master | 2020-03-31T17:09:01.625559 | 2019-07-27T13:57:24 | 2019-07-27T13:57:24 | 152,408,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import subprocess
import vk
import requests
import psycopg2
import sys
import face_recognition
import dlib
import cv2
import os
import postgresql
import numpy as np
import urllib.request
login = ''
password =''
vk_id = ''
session = vk.AuthSession(app_id = vk_id, user_login = login, user_password = password)
vkapi = v... | [
"artcrimechanel@gmail.com"
] | artcrimechanel@gmail.com |
0cfb118955a371bf08264c05fbf635317433bcc9 | e599f012fe051cd678654f5ec2baa6d414715cfd | /WTube/wsgi.py | 87f1268f8ad01a57b558ccdd12c21d8ba9278121 | [] | no_license | PanosMichalakos/WTube | d961cd4fafd8f21bf15d7f74872a795b47c88433 | 2cb1f8c8bccc7fc087cb535203449828da324440 | refs/heads/main | 2023-07-20T23:49:03.865760 | 2021-08-27T23:23:57 | 2021-08-27T23:23:57 | 400,187,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for WTube project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"panmichalakos@live.com"
] | panmichalakos@live.com |
9deb3342ea01b7cf425823fc08b41dd2ca04eac2 | b14c5032bce5aa85715560b1e036c52bea34af79 | /myapp/api_keys.py | 0f9b1ccbbd0a3e5fce11ffca2a47023297e235c2 | [] | no_license | sazia31/InstaClone | ec2f3c9fe5ad3d41f94ef212ab056367718aa805 | f463e95d4d53e17dbb0ca48a2b414c12566743a5 | refs/heads/master | 2021-01-01T17:39:47.719611 | 2018-04-30T18:56:23 | 2018-04-30T18:56:23 | 97,402,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | send_grid_api = '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'
parallel_dots_api = 'yOFRCjkrUw0SWjVxxaljRwjLpRhzwRsAjRaCqnGNIWU' | [
"noreply@github.com"
] | sazia31.noreply@github.com |
ecb539c9cf2f8a08e8f02480abca0e26de72bdec | f66613e822f0847d485108782805b0a6153af603 | /Youtube/ydown/youtube_download/views.py | 08759b56c253185c074cee0c84ff96cf9c91dade | [] | no_license | SuryaParbat/video-downloader | c862d2c7551f87883bc0fabac18f43850799a2db | ba9bad1e6573ea915b596ba0784af40adcde7d74 | refs/heads/master | 2023-07-10T05:15:40.151813 | 2021-07-31T15:44:49 | 2021-07-31T15:44:49 | 326,500,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | from django.shortcuts import render, redirect
import os
# pytube for download
from pytube import YouTube
url = ''
# Create your views here.
def ytb_down(request):
return render(request, 'ytb_main.html')
def yt_download(request):
global url
url = request.GET.get('url')
# create object for known whi... | [
"SuryaParbat@.github.com"
] | SuryaParbat@.github.com |
ba83ebf2a4f037c357bdf173b970ba7538843adf | 64fe509f72c93b9a8375eb6d886167f4986998bc | /app/models.py | 2429ccfb2288aec39f0a3555da91e27832913546 | [] | no_license | yebiro/flask_spider | c50cc563ca90505a88188ced84f33a7f8725a915 | e3761ea6ae93d9a41a9a9359d6bbac2bd0a4aaf2 | refs/heads/master | 2020-03-12T03:46:48.445226 | 2018-04-20T03:16:25 | 2018-04-20T03:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | # -*- coding: utf-8 -*-
# @Author: longzx
# @Date: 2018-03-19 23:44:05
# @cnblog:http://www.cnblogs.com/lonelyhiker/
from . import db
class Fiction(db.Model):
__tablename__ = 'fiction'
__table_args__ = {"useexisting": True}
id = db.Column(db.Integer, primary_key=True)
fiction_name = db.Column(db.Stri... | [
"904185259@qq.com"
] | 904185259@qq.com |
618fdc4d4c76091aaaa2907d3007117aa98d4e57 | b3f5b101ce21bd52a6c0f4d084c981751d1070a9 | /source/callback/PredictionWriter.py | d4f4c396c0197f62c614d3df319a8fa0b9581722 | [
"MIT"
] | permissive | claudiovaliense/TeCBench | 3f219810c126ee81ef665126ca7073599447d302 | dafe5fc5df1a03a054d20be184ce4410b5301ecc | refs/heads/main | 2023-07-18T00:59:53.423980 | 2021-08-26T22:34:55 | 2021-08-26T22:34:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | from typing import Any, List
import torch
from pytorch_lightning.callbacks import BasePredictionWriter
from torch import Tensor
class PredictionWriter(BasePredictionWriter):
def __init__(self, params):
super(PredictionWriter, self).__init__(params.write_interval)
self.params=params
self.... | [
"c.el@live.com"
] | c.el@live.com |
d0b083e78e26f763f1726542d83772a92c20531f | 31a928cff4960236923b6bc3b68e34bb2f46f470 | /Speculator/speculator/utils/poloniex.py | f74f11896142749195cf7e8f56bba0f7e2208b7b | [
"MIT",
"BSD-3-Clause"
] | permissive | webclinic017/ml_monorepo | 707df2afd2f986eb0721d26430e6135c917817c6 | 945f0a83d6b94282c547bb6f4805f3381ad9c16a | refs/heads/master | 2021-10-19T21:02:53.322944 | 2019-02-19T20:58:51 | 2019-02-23T20:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,198 | py | import logging
import requests
from speculator.utils import date
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def json_to_url(json, symbol):
""" Converts a JSON to a URL by the Poloniex API
Args:
json: JSON data as a list of dict dates, where the keys are
... | [
"tmichael.yu@gmail.com"
] | tmichael.yu@gmail.com |
b0ba0acbb648af7939f881a10a0dbd654373afcc | 9ded0ebe45e5c28490b9fb48a2b649e75123be69 | /autoarg/__init__.py | 54eb6fa2230a6b3dbd3e1be918214aaa9a7c4b16 | [] | no_license | chenchao-clarifai/AutoArg | a85d6d28a08f2e7bc4aad31ccfa29f03d0aeb366 | 8abb67d96517fe477a2c59899d27dfed070d40c3 | refs/heads/main | 2023-08-28T01:21:54.868450 | 2021-10-27T14:34:23 | 2021-10-27T14:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from . import arguments, constraints
from .arguments import *
__version__ = "0.0.10"
| [
"chenchao.zhao@clarifai.com"
] | chenchao.zhao@clarifai.com |
c14ee57e81a63e7b7f4f965cf981a387ee04224d | 0bc81c8742e6b7cd4bd3a804ac41cedee637c921 | /portalweb/models/messagemanager.py | 0a41cc2c9308f228c09a8f58fc9cb5e30a789459 | [] | no_license | TPAC-MARVL/portal | c7ff9445ea340774aaa1890e2b847001e6564379 | b9660d7b771f105360c814e1a861fb16dc036c2b | refs/heads/master | 2016-09-16T11:25:25.742221 | 2014-11-07T04:44:19 | 2014-11-07T04:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import logging
from django.utils import timezone
from ..models.message import MessageTbl
from portalweb.decorators.logger import logger
class MessageTblManager:
_logger = logging.getLogger(__name__)
CONST_RECEIVER = "receiver"
CONST_SENDER = "sender"
@classmethod
@logger
def crea... | [
"fxmzb123@gmail.com"
] | fxmzb123@gmail.com |
35acdf2aeaab5430420633d3ad3dce39e0de08ad | a0d292683c55025111be78ef7694d327df27d61a | /readNames.py | 24888e842b139b480a346d3f9045df31e112fd13 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | cparker/pythonclub | 3d9b3e583e5bb0a881a3285b675719bfaa772635 | 202d3f2140e183ee165a2deadc19f04d518f227f | refs/heads/master | 2021-01-19T18:29:53.606756 | 2014-10-19T22:01:16 | 2014-10-19T22:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py |
nameFile = open('names.txt')
for name in nameFile:
print(name)
| [
"christian.parker@emc.com"
] | christian.parker@emc.com |
038bea7382d6f31f934f61fa6566ce86371d8383 | eea802130e35e69cf302c77835cd8a51f04563b3 | /predict.py | 96104ee3b5b882e55391194d67d3693fb58ee303 | [] | no_license | HandHui/BERT_ESIM | 3ab172a16185c41dc85451b56c942ab0b93043e8 | e94fd83f49bd203952e5655d13427a53c117650d | refs/heads/main | 2023-05-08T18:13:11.405187 | 2021-05-24T03:39:22 | 2021-05-24T03:39:22 | 370,204,533 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | import argparse
import torch.nn as nn
from model.ESIM import ESIM
from dataHandle.dataPrepare import prepare
from dataHandle.MyLoader import Mydata
import torch
from torch.utils.data import Dataset,DataLoader
from util import *
parser = get_parser()
parser = parser.parse_args()
batch_size = parser.batch_size
use_gpu =... | [
"2738696244@qq.com"
] | 2738696244@qq.com |
36134f1a72b21d720d523aede713e61bea8b0885 | bd81b23bdcbdafeeb3d4eaef01e374e5fc4e5ccb | /1.1gary666爬虫/1025.py | bb272f8ab4c83a4b41ad62c6c69880693742bb67 | [] | no_license | LorentzForceWorkEnzyme/PythonSpiderDemo | 67a42f5ab5345adf812d71abf699475569c7f344 | 954645c8ab474a8bdf7611fde38ca976951abc0c | refs/heads/master | 2023-04-23T11:56:26.330080 | 2021-05-11T12:08:32 | 2021-05-11T12:08:32 | 307,107,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # -*- codeing = utf-8 -*-
#@author : Sai
import requests
import os
import sys
from bs4 import BeautifulSoup
import random
# url = 'https://baike.baidu.com/item/%E5%90%8D%E4%BE%A6%E6%8E%A2%E6%9F%AF%E5%8D%97%E5%90%84%E9%9B%86%E5%88%97%E8%A1%A8/49823770'
url='https://gary666.com/learn?page=1'
rep = requests.get(url)
re... | [
"746139767@qq.com"
] | 746139767@qq.com |
dfdd9ae3fd8bfd26429a0fba4bb68dc9acb6065f | c4733aae35dcb5fefb10d8bd34ac40dd4a51bb99 | /eventsourcing/exceptions.py | bee352faf21d8741ee47855eee47e915192feb83 | [
"BSD-3-Clause"
] | permissive | trumanw/eventsourcing | bddeb7375a2985401969ea182a7fa4eb04dfa25f | d1e53373b201f2dda32c8186879d453f449b1104 | refs/heads/master | 2023-03-21T05:29:15.416447 | 2021-03-10T04:06:42 | 2021-03-10T04:06:42 | 320,460,606 | 0 | 0 | BSD-3-Clause | 2021-03-10T04:06:24 | 2020-12-11T03:50:00 | null | UTF-8 | Python | false | false | 3,024 | py | class EventSourcingError(Exception):
"""Base eventsourcing exception."""
class TopicResolutionError(EventSourcingError):
"""Raised when unable to resolve a topic to a Python class."""
class EntityVersionNotFound(EventSourcingError):
"""Raise when accessing an entity version that does not exist."""
cla... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
eca887d54dac34bc1d995e8ef98f8d0c4c6db21c | 20ff9c30344ba1c43ba6b3fe862a5894737fcd9f | /mongopy/mongodelete.py | 4a6ecdef138e4a7ac42e4d10147fe2abcb07e24f | [] | no_license | jzorrof/mongopy | c36bc4b2592cc983438e4dcbddedfca694b7815e | 4b1270c6936c664e4b1e670756f43ab0ca0e38e0 | refs/heads/master | 2021-01-18T13:59:25.101572 | 2015-05-15T10:35:59 | 2015-05-15T10:35:59 | 34,641,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | __author__ = 'joe_fan'
# -*- coding: utf-8 -*-
from pymongo import MongoClient
"""
Create connection
"""
client = MongoClient()
db = client.test
"""
Remove all documents that match a condition
"""
result = db.restaurants.delete_many({"borough": "Manhattan"})
result.deleted_count
"""
Remove all Documents
"""
result... | [
"jzorrof@gmail.com"
] | jzorrof@gmail.com |
e011a8ff41b4c1e2a48cf3549283d614f53ce725 | 20e47375ace95ea050b76ce31aa50c9124f07c7e | /Preciosa/search.py | 2593144891ace7e2382c9a017417aaa9bbed894c | [
"MIT"
] | permissive | ajlopez/PythonSamples | 583fbc32c4f818db8ac3c4d9694244449afc86ba | 0efd850e13b0e98dcee542f21b30bb50afd0e838 | refs/heads/master | 2016-09-06T10:05:28.445224 | 2014-07-28T11:17:37 | 2014-07-28T11:17:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
import requests
import sys
words = sys.argv[:]
words.pop(0)
query = " ".join(words)
if query:
result = requests.get('http://preciosaannalisa.heroku.com/api/search?q=' + query)
print(result.text)
else:
print("Bazinga!!!") | [
"webmaster@ajlopez.com"
] | webmaster@ajlopez.com |
0ef403570e34d0e3fef295763dac69505f7cace6 | 273e5f885e64071f6d4e64b0d90402298d480b79 | /index/templatetags/cart_template_tags.py | 431ab772ad9f67136c5bc527dd3b4286ffd4a3f5 | [] | no_license | Aditta-das/ecommerce-website | c930cd9899f4fe14c841c1fcc60f8219473017d1 | 9f139bc1e951ceacf9f839e417f806181fd27e8c | refs/heads/master | 2022-12-25T12:41:11.496259 | 2020-06-11T04:02:19 | 2020-06-11T04:02:19 | 247,246,466 | 0 | 0 | null | 2022-12-08T04:01:01 | 2020-03-14T09:21:07 | CSS | UTF-8 | Python | false | false | 298 | py | from django import template
from index.models import Order
register = template.Library()
@register.filter
def cart_item_count(user):
if user.is_authenticated:
qs = Order.objects.filter(user=user, ordered=False)
if qs.exists:
return qs[0].items.count()
return 0 | [
"ndas5662@gmail.com"
] | ndas5662@gmail.com |
ca923898591e0dc74839d91c8aad39aa33996dc0 | 5b96cc4231bdbadbf17e3bcc88da2811f79473c3 | /conditions.py | 46193ede1872db0be8125c7436f74f332dc6694e | [] | no_license | Melbinpjossy/A1_week2_python | 4012d416b2134eeb7f20db0b2e1285d0fce08b03 | 123dc7276bef821421c14edf30e61919c0f6de5d | refs/heads/master | 2020-04-01T21:30:28.530980 | 2018-11-01T16:11:47 | 2018-11-01T16:11:47 | 153,660,047 | 0 | 0 | null | 2018-11-01T16:11:49 | 2018-10-18T17:14:30 | Python | UTF-8 | Python | false | false | 607 | py | print("Rules that govern the state of water")
# let the user pick a temp, see what happens to water (conditon statements)
current_temp = False
while current_temp is False:
current_temp = input("Enter a temperature: \n")
print(current_temp)
if(int(current_temp) < 0) or (int(current_temp) == 0):
print("... | [
"m_punchakkunneljossy@tss-hr420-dm27.fc.ca"
] | m_punchakkunneljossy@tss-hr420-dm27.fc.ca |
ad2e5d951bee92ca9ec8d6d656328db883ed18db | 7e41d70ee3bf07dc3043afef020cde173d5fb0bc | /airflow_client/client/model/inline_response200.py | b00cfe40cb975b7e384a63db36410b0efb1454d7 | [
"Apache-2.0"
] | permissive | apache/airflow-client-python | fb11789076bfed191d730c459c84273781d50246 | 38d55888f7533253857baa878322007f4581fc21 | refs/heads/main | 2023-09-05T18:23:37.049610 | 2023-08-23T13:10:27 | 2023-08-23T13:10:27 | 275,569,232 | 251 | 44 | Apache-2.0 | 2023-08-23T07:49:13 | 2020-06-28T11:20:41 | Python | UTF-8 | Python | false | false | 20,039 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | apache.noreply@github.com |
0b9c5be27cee3fa644a051abca088f1e969473c2 | e7bea18d93799fb46ecb91d7d15f81976785c015 | /TupleEg.py | fbaf56593bbe313fced394abaa597f97f9bde7f4 | [] | no_license | RashmiJK/LearningPython | d4fd8c657f8b21cd413c7cfae8865b76717bece5 | 3e4e60e846c5fe6f49096ef2111abef69c0ef459 | refs/heads/master | 2020-06-12T20:28:43.680781 | 2019-08-20T07:07:24 | 2019-08-20T07:07:24 | 194,415,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # Tuples are immutable python objects
# Tuples are sequences like lists, but cannot be changed like lists
# Tuples have parenthesis, whereas lists use square brackets
# + - concatenation, * - repetition works for tuples
tup1 = ('physics', 'chemistry', 1997, 2000)
tup2 = (1, 2, 3, 4, 5, 6, 7)
# empty tuple
tup3 = ()
... | [
"rashmi.kare@gmail.com"
] | rashmi.kare@gmail.com |
5c9a624c85218f5c046aa3e147d62c85008ff733 | d3e48e7f4dd1d080413db921284bb57fc4053ec2 | /video_crawler/videomonitor/crawler_pptv.py | b255713adc88dda1346bded135d0e98b058d823f | [] | no_license | muzidudu/video_crawler | adb301f001caca22dc446f10e4b78e49f4c39e62 | 3d527f1ac016bc63afbbdc057dd4f9f78c057540 | refs/heads/master | 2021-06-05T04:24:54.781942 | 2016-07-05T08:59:14 | 2016-07-05T08:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,431 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#encoding=utf8
import sys
sys.path.insert(0, '/opt/video_data/')
from resource.http import HTMLResource,JsonResource
from resource.database import DataBase
import threadpool
import datetime
import traceback
site = 'pptv'
headers = { 'User-Agent': 'Mozilla/5.0 (Linux; Andr... | [
"HaoFeng@qiyi.com"
] | HaoFeng@qiyi.com |
12431a60252e4c5ae6050e542d0137baa9531b36 | 850c423efb96a767c2e57a66ee70e5e6487fac16 | /nomadgram/users/migrations/0002_auto_20180804_2233.py | 609974e5aea73e6ce079ef9a2b90e506e0ae662f | [
"MIT"
] | permissive | eueezy61/nomadgram2 | 3dacbf8f4e3ec854ab1819c6930405e380974195 | 66a7ad0356a72e5eab5e28d8e8573cb848cb0288 | refs/heads/master | 2021-08-22T11:45:12.395541 | 2018-12-11T10:37:38 | 2018-12-11T10:37:38 | 143,878,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | # Generated by Django 2.0.8 on 2018-08-04 13:33
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
n... | [
"eueezy61@naver.com"
] | eueezy61@naver.com |
f0a87dbe0590dc9dc507f2fbee528d4ce82f70e5 | aa598fe85e58ce10e94b6ea56093ab6b30b49e0e | /app/tests/test_orders.py | ac5e50e9e9d14a308aa1705a95c320cf9b024f36 | [] | no_license | SyntaxStacks/NOMS | 4c5c6dc91ce9213ec12e49ba9efbbf522532a648 | 8057a045cf0923180b3df7f348e7f525a467fe55 | refs/heads/master | 2021-01-21T19:20:25.861375 | 2014-02-18T18:39:52 | 2014-02-28T05:05:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import json
import time
class OrdersTest(APITestCase):
def create_product(self, name, quantity):
data = {
'name': name,
'quantity': quantity
}
url = reverse('product-... | [
"info@johnlozano.me"
] | info@johnlozano.me |
3eb01e44c2877f45f57e082b9ea9d506646a55f7 | a4ac3bad8fc4d3616686670dce3029b93fbc1fce | /PROJETOPOO2/QUESTAO2/Produto.py | 591f52a7d11b66bdc43cb2da68c1c044bf29408c | [] | no_license | mariaIFPB/ProjetoPOO2 | 4940894b8543a8f30e2727254aeccb64e85bb5a9 | b2686649140f03382669f0a26ecb6d1fb64034d4 | refs/heads/master | 2021-01-01T06:04:17.143190 | 2017-07-16T02:52:13 | 2017-07-16T02:52:13 | 97,352,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | class Produto:
def __init__(self, valor, nome):
self.valor = valor
self.nome = nome
def __str__(self):
return "Produto Nome: " + self.nome + ", valor: " + str(self.valor) | [
"noreply@github.com"
] | mariaIFPB.noreply@github.com |
63a271058bf991c8114ebc3f4f07b8b77e894cc3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/68/usersdata/205/35684/submittedfiles/crianca.py | 808ab86c894e144b339c8b36f946604e7d1ae392 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # -*- coding: utf-8 -*-
p1=float(input('digite o peso da crianca da esquerda:'))
c1=float(input('digite o comprimento da gangorra do lado esquerdo':))
p2=float(input('digite o peso da crianca da direito:'))
c2=float(input('digite o comprimento da gangorra do lado direito:'))
a=p1*c1
b=p2*c2
if(a==b):
print('0')
el... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
aa89b4e16ad47f84047e2a4ea6602526f0671485 | a7afe0edc04faaca0aad48675d872bba9238c50a | /8.py | b75fb17b7cb317224b0dea66476f126223146bc6 | [] | no_license | tungduonghgg123/projectEuler100Challenge | 5fcb3082ccdc7870f7eaaaba28ae3f91b6f5b1ab | f246dfbff69318429f0057b6c0bebf724958331a | refs/heads/master | 2020-12-03T21:37:35.424835 | 2020-02-10T07:49:19 | 2020-02-10T07:49:19 | 231,494,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | from primeNumber import lengthOfInteger
a = 73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627... | [
"tungduonghgg123@gmail.com"
] | tungduonghgg123@gmail.com |
21abd04a47e8353b9508e1ebe3947a85cc81bc00 | 878278cc472cf0b13d143dcf142ba60b103756b3 | /expenseProj/expenseApp/models.py | be317afd9359ecc883893fec5999d7f5a2c5792c | [
"Apache-2.0"
] | permissive | cs-fullstack-fall-2018/project3-django-cmadisonne | 313bf265f62039b28866d84dc2d51d3a7858da12 | 787acef8fb9e9a2447f8a5a9eb28968bc9acbb1e | refs/heads/master | 2020-04-02T00:58:53.621802 | 2018-11-15T12:51:34 | 2018-11-15T12:51:34 | 153,831,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from django.db import models
from django.contrib.auth.models import User
from datetime import datetime
class ExpenseModel(models.Model):
username = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True)
checking = models.IntegerField(default=0)
emergency = models.IntegerField(default=0)
... | [
"cmadisonne@gmail.com"
] | cmadisonne@gmail.com |
4bc43807e3a1a36fbcce46e231264d56a8537701 | 0945654b58b39ef967dc17e8444483205d5fb6aa | /core/urls.py | c48965dd8b431790747c6864bb28b9c62408ed8f | [] | no_license | Juzeka/Site-Portifolio | 3b77a53be31129e0750047745b1abe6a81ea7217 | d8a9448f35ac105a3ae81ccf444a1fff568ff9a3 | refs/heads/master | 2023-04-14T15:09:26.411448 | 2021-04-15T21:46:54 | 2021-04-15T21:46:54 | 358,950,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.urls import path
from core import views
urlpatterns = [
path('', views.home, name='index'),
path('contato', views.contato, name='contato'),
] | [
"rafaelgomesalmeida@hotmail.com"
] | rafaelgomesalmeida@hotmail.com |
ec8a8679df2b0b323978226a6e24c4af74cc0f57 | ea878b753a9265904dde7b99429c26733b9576f4 | /深度学习/tensorFlow加法器.py | 1a554e1616ef1426c721ae7b2bf76cc9e5ac7713 | [] | no_license | songzeceng/pythonProjects | 434c1bcacc8902b4931ad55d19fa16509b07ee5e | 95914e14b0b7416e94d98e4aa38cd40859f27d8a | refs/heads/master | 2020-06-22T12:09:18.791953 | 2019-07-20T02:20:49 | 2019-07-20T02:20:49 | 197,712,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import tensorflow as tf
if __name__ == '__main__':
graph = tf.get_default_graph()
# 默认的图,相当于给程序分配内存
print(graph)
# 构建新的上下文图,包括一组op(api函数)和tensor(数据)
g = tf.Graph()
with g.as_default():
c = tf.constant(7.0)
print(c.graph)
a = tf.constant(5.0)
b = tf.constant(6.0)
c ... | [
"392004248@qq.com"
] | 392004248@qq.com |
76b920b35337545b8f16694c0692f0d9f40102db | 46a12d7e5236e09973e44fa8f846c6f8eaf0d429 | /controller/create_sqs.py | ed037fca8c042f25b083d3f7c7ace4a78c257d9a | [] | no_license | aluka1994/EdgeComputing | d21ddd13c19f2082534c4d7be4c0705875d6171c | 849fed2214cf50b0229f69db5f9aa13e4f9dd9c1 | refs/heads/master | 2022-12-14T12:47:09.848985 | 2020-09-09T00:55:15 | 2020-09-09T00:55:15 | 247,433,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | import boto3
def list_queue():
sqs = boto3.client('sqs')
response = sqs.list_queues()
print(response)
def list_queue_name(name="testProject"):
sqs = boto3.resource('sqs')
response = sqs.get_queue_by_name(QueueName='testProject')
print(response.url)
print("VisibilityTimeout: ", response... | [
"pr92zala@gmail.com"
] | pr92zala@gmail.com |
657212fc998e61d1ecd01b678a88998c4db624f0 | 64465ccb6a445c7115ca7d58a508aa5d40b09060 | /blog/models.py | 10138a523799eee061fd4cd74d079cb94c90d225 | [] | no_license | gegiants/BeautySalonSite | 7de7d9aa12852017ae6c330d2c7d422102b6fc10 | fe8ab51cd28fc2707b5e1a93640c38acb845473f | refs/heads/master | 2020-11-28T16:31:47.784532 | 2016-08-17T12:52:09 | 2016-08-17T12:52:09 | 65,906,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | from django.db import models
from django.utils import timezone
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = model... | [
"George Y"
] | George Y |
7a554e93ba98a00c3cc36a2a09a8955dfb311c98 | aae4661e3e7047a1a3d5ed772c5d02c7033adfa1 | /could_improve/p11s1.py | a91c6ec6661e6d94d2415bdf502fdba9c31e9e0e | [] | no_license | martingehrke/projecteuler | 97c4225ccacb81d0498d9fb6b21714d68ecae75f | 8572f220d17bab59b85035fed79b9b867e64f886 | refs/heads/master | 2021-01-19T10:38:44.130545 | 2015-03-06T21:12:12 | 2015-03-06T21:12:12 | 31,789,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | L = [[8,02,22,97,38,15,00,40,00,75,04,05,07,78,52,12,50,77,91,8],
[49,49,99,40,17,81,18,57,60,87,17,40,98,43,69,48,04,56,62,00],
[81,49,31,73,55,79,14,29,93,71,40,67,53,88,30,03,49,13,36,65],
[52,70,95,23,04,60,11,42,69,24,68,56,01,32,56,71,37,02,36,91],
[22,31,16,71,51,67,63,89,41,92,36,54,22,40,40,28,66,33,13,80],
[2... | [
"martin@teamgehrke.com"
] | martin@teamgehrke.com |
a9feb59e258316c682051d477b944c1386b6c575 | 47dc90dad18d70ae28cebf4f208ff35eaac604a1 | /Cienciometrico/apps/Privilegios/migrations/0001_initial.py | 8d464f820f38e6783cfe40db4d9e6483f9fe3e99 | [] | no_license | cienciometrico2017/cienciometricoutc | 4061e027cde6550fbcbb5e7ed4dfa2a5734ded94 | 0c9562aeaf808c9f06a31abdeba885139931b869 | refs/heads/master | 2021-05-08T23:23:00.936242 | 2018-05-07T21:53:04 | 2018-05-07T21:53:04 | 119,704,564 | 0 | 0 | null | 2018-05-07T21:53:05 | 2018-01-31T15:22:22 | HTML | UTF-8 | Python | false | false | 852 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-05-07 19:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Investigador', '0001_initial'),
]
... | [
"35942089+SirAvalon@users.noreply.github.com"
] | 35942089+SirAvalon@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.