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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40f623eb4a60ee8e80f15fdc4d65dfd7882acdbd | 5f007b329fe42a6409fc6b03f99f39e4f279b8ad | /e2074/migrations/0006_auto_20170423_1749.py | 1b2909a0424c3e4d25a54e8287910ca555c33763 | [] | no_license | poshan0126/ElectionPortal | ca649db9e741c9d0aa22d75003d026aba9aec73d | 56108795b38438244f7a541788bea38acb3f4464 | refs/heads/master | 2021-01-20T01:04:36.191738 | 2017-10-31T14:14:53 | 2017-10-31T14:14:53 | 89,218,891 | 1 | 0 | null | 2020-01-19T09:39:37 | 2017-04-24T08:59:04 | JavaScript | UTF-8 | Python | false | false | 583 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-23 17:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('e2074', '0005_auto_20170423_1424'),
]
operations = [
migrations.RemoveField(
... | [
"devkota@bloggernepal.com"
] | devkota@bloggernepal.com |
a17154434fc61bb7faaefd59c390ea79ff497641 | c8a26d7dd902d25fb0baf050b497f4d93ef4d77e | /python/raspberrypi/examples/LIS331HH/interrupt/interrupt.py | 98efee0277d714f11999ba1bd827927c74894348 | [
"MIT"
] | permissive | jjacobe2/DFRobot_LIS | 3d42066ec92727515da19e57e3c549407a334d87 | 147b3064d966160c1144c644b4e65b1be11b60ec | refs/heads/master | 2023-08-11T07:33:09.114240 | 2021-09-18T06:44:01 | 2021-09-18T06:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,741 | py | # -*- coding:utf-8 -*-
"""
@file interrupt.py
@brief Interrupt detection
@n In this example, the enable eZHigherThanTh interrupt event means when the acceleration in the Z direction exceeds the threshold we set
@n before, the interrupt level can be detected on the interrupt pin int1/int2 we set, and the le... | [
"2113994973@qq.com"
] | 2113994973@qq.com |
d7c19d5bdd25f3cf1afcd92c8dc5dd77ef3179d2 | 847307dd4a606d2be6d208a64af84d90e0271cca | /running/a.py | 5744fea8bab6a9d9dc68062a64e66098a7dbb48c | [
"MIT"
] | permissive | manojpawarsj12/python-online-ide | 60772c4edec440ef428aac24c9ab78bc0b0541af | 5ea5a797eb243d201cc7f8559917167869b6a2a9 | refs/heads/master | 2022-04-19T11:27:57.274130 | 2020-04-19T03:59:24 | 2020-04-19T03:59:24 | 256,908,279 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | def sum_of_lsit(arr):
a=list(arr)
sum=0
for i in a:
sum+=i
return sum
if __name__ == "__main__":
print ("Hello Python World!!")
print(sum_of_lsit((input())))
| [
"manojpawarsj.mp11@gmail.com"
] | manojpawarsj.mp11@gmail.com |
1371f62ed3985f6b34be1360876308527a3b175f | 57206609691fefecb70d944baed9b32a9c6ef2a1 | /common/libs/user/UserService.py | cb80bb72d98c0b3ac0338a54c5252f4b04c47365 | [] | no_license | yuewei1987/geekbar_backgroud | 8538b432c1bfc96371b50949bb828191f73891a3 | 98510ed159e4e54051f488f0785f431c6f873afa | refs/heads/master | 2022-03-07T18:22:20.250042 | 2019-09-03T03:51:20 | 2019-09-03T03:51:20 | 202,849,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | # -*- coding: utf-8 -*-
import hashlib, base64, random, string
class UserService():
@staticmethod
def geneAuthCode(user_info=None):
"""
产生授权码-加密cookie
:param user_info:
:return:
"""
m = hashlib.md5()
str = "%s-%s-%s-%s" % (user_info.uid, user_info.login... | [
"418458884@qq.com"
] | 418458884@qq.com |
0b8b522ee09629995d62b90ac0bb4de8f1d4e3d8 | 467d548d8e8579f125fc99eb2bfa131566abec0d | /pybench files/mic.py | 3c8e770b953e2aca00e0e7053cbcd312518b332a | [] | no_license | chrisvail/Dancing_Segway | 3dbbb81a49b997dcd8b9fe2cda823973f1218cec | 5c6d2962a0846d721d1608eb3588268fa4eeacbb | refs/heads/main | 2023-02-12T00:10:58.363187 | 2021-01-15T16:20:26 | 2021-01-15T16:20:26 | 329,962,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | '''
-------------------------------------------------------
Name: microphone
Creator: Chris Vail, Abi Langbridge, Matt Ryan
Date: March 2020
Revision: 1.0
-------------------------------------------------------
Acquire real-time data from microphone at 8kHz sampling frequency
Find energy in 20msec window
--------... | [
"noreply@github.com"
] | chrisvail.noreply@github.com |
4dfccd21761814805519fbe002987311b314f589 | 58d8cf40f9eb7e38fd853526b829062e7dc2d503 | /exercicio20.py | 2ae06384fff3fed005f0673e6746fb4eac2ccdb1 | [] | no_license | Zanuzzo96/exercicios-python-curso-em-video | bfe19b1b2d506d6ca1622150b996a8168d16e771 | 9d244d7860c16b89abb4b6a557a5f77f27b6726b | refs/heads/main | 2023-09-02T16:16:41.012859 | 2021-11-10T11:31:18 | 2021-11-10T11:31:18 | 421,120,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from random import shuffle
n1 = str(input('Primeiro aluno: '))
n2 = str(input('Segundo aluno: '))
n3 = str(input('Terceiro aluno: '))
n4 = str(input('Quarto aluno: '))
lista = [n1, n2, n3, n4]
shuffle(lista)
print('A ordem de apresentação sera: \n {}'.format(lista)) | [
"felipezanuzzo@outlook.com"
] | felipezanuzzo@outlook.com |
2b6ec0aad7cac68e2be7d5b201e50d754e2be6f1 | c4f21dd4e8ebad515acc859b7dec5e7a45176b6b | /powerLogTest.py | 655f4d0ba8e2a63e891ae56581453e1ab8c5d94f | [] | no_license | rpbarnes/emxDnp | 11f96b82c918902a665ee35fe29af6b2b6a3d93f | 43d29c30e70b87dd921cab564f3f7221158591e5 | refs/heads/master | 2020-05-31T05:33:29.492094 | 2016-06-18T16:36:24 | 2016-06-18T16:36:24 | 34,826,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import gpib_eth as g
import time
import csv
def csvWrite(fileName,dataToWrite):#{{{
with open(fileName,'wb') as csvFile:
writer = csv.writer(csvFile,delimiter=',')
writer.writerows(dataToWrite)
csvFile.close()
print "Wrote powers to file %s"%fileName
return None
#}}}
conn = g.gigatroni... | [
"rbarnes@chem.ucsb.edu"
] | rbarnes@chem.ucsb.edu |
9bcabb44ca79e2bcde6c43cdacf67adcfbd94c2a | 757e9f542847384698c5a622ecaccf7fa663ae96 | /programming/adaptive-python/group_2/squirrel_nut_eq.py | fff989ab645b177d5244626666143ee74bd82ab1 | [] | no_license | vpetrigo/courses | 90580357f3ae57be8ca177bbc3ad0e38e5c9ccac | 406f20cf1a14e2a4da992b4cb6d5690a20568096 | refs/heads/master | 2021-06-14T15:26:52.546264 | 2021-04-25T14:04:08 | 2021-04-25T14:04:08 | 60,792,538 | 17 | 13 | null | 2021-04-25T14:04:09 | 2016-06-09T17:13:59 | C++ | UTF-8 | Python | false | false | 171 | py | #!/usr/bin/env python3
# coding=utf-8
def main():
squrrels = int(input())
nuts = int(input())
print(nuts % squrrels)
if __name__ == "__main__":
main()
| [
"taenaru@gmail.com"
] | taenaru@gmail.com |
efda2c9f85d5c37b86fc2a8ee6eed2f78a3df5a5 | e71753f4c120685cf6d0ae9f2ed640388c20e7d3 | /Joanthan_calc/SNS-Flux-Calculator.py | 31d9940177c54fdc41ed14c9330f238b16e06fbf | [] | no_license | AustinMcDonald/SNS_LAr | da37c8dfa436aa01285a8114c0b7ef39c92713f4 | 12a2bb01e6097fd36ebaf44fa323aace2b9e5096 | refs/heads/main | 2023-01-23T23:08:25.833393 | 2020-11-10T02:36:26 | 2020-11-10T02:36:26 | 305,846,298 | 0 | 1 | null | 2020-11-10T02:36:28 | 2020-10-20T22:18:15 | Jupyter Notebook | UTF-8 | Python | false | false | 2,242 | py | import numpy as np
import matplotlib as pl
import matplotlib.pyplot as plt
from matplotlib import rc
from numpy import genfromtxt
import scipy as sci
import math
import sys
import os
# In[2]:
## Imported data from Figure 01 of https://arxiv.org/pdf/1211.5199.pdf ###
## Electron Neutrino Flux in units of Neutrinos /... | [
"austin.mcdonald96@mavs.uta.edu"
] | austin.mcdonald96@mavs.uta.edu |
f167208466ddca7a7d266b8a4d56de2f9d6b7d18 | c285cd2b9ca7918ff7105630970a54e0e42f2921 | /shell.py | cb595c5e2cea61478efa7c622d08b009628b8e83 | [] | no_license | parisaz87/mbi-flask | ea6d98532b1c6d2a8debb04a905891e527cb26a3 | 3425263e81c8c4f704131ebb66d92a8221f8be2a | refs/heads/master | 2020-06-20T23:46:48.520456 | 2019-07-31T01:22:57 | 2019-07-31T01:22:57 | 197,291,277 | 0 | 0 | null | 2019-07-17T01:20:53 | 2019-07-17T01:20:52 | null | UTF-8 | Python | false | false | 235 | py | #!/usr/bin/env python3
import os
import readline
from pprint import pprint
from flask import * # pylint: disable=unused-wildcard-import
from app import * # pylint: disable=unused-wildcard-import
os.environ['PYTHONINSPECT'] = 'True'
| [
"tom.g.close@gmail.com"
] | tom.g.close@gmail.com |
c641a2011a08d88faa51296ee4b2ea147a5cb75c | a6a86aa85a750732065e7ce87afa2db47a93e48a | /server.py | 73ba98f18ae9771b27943546605cc582d446df01 | [] | no_license | IVIURRAY/gRPC-hello-world | c9936183f5741b766e4e3a949d795239c49f69bf | 40eecb8e20a433ba5bdd2af11921b5a820ce081c | refs/heads/master | 2022-12-05T00:48:12.533340 | 2020-08-29T15:14:16 | 2020-08-29T15:14:16 | 291,294,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,441 | py | import logging
import math
import time
from concurrent import futures
import grpc
import route_guide_pb2
import route_guide_pb2_grpc
import route_guide_resources
def get_feature(feature_db, point):
"""Returns Feature at given location or None."""
for feature in feature_db:
if feature.location == poi... | [
"haydn.murray1@yahoo.co.uk"
] | haydn.murray1@yahoo.co.uk |
ed1c6e9170af0e4f1aaae4ce537f9ef8e76ea4ed | b9d6a07fdd8c401b8549615c2affda577d61de0f | /chain_in_diocese.py | 1657943b920eae65324b31b9bd49c63bbd586776 | [] | no_license | wolf128058/EpiskobotScripts | 596d955eff1d6ba4653684bb34ff8ab437a03629 | bddc5fa074bd781ab3651ec5a34989a562f9ca7f | refs/heads/master | 2023-02-23T15:34:12.518507 | 2021-01-31T15:11:44 | 2021-01-31T15:11:44 | 188,925,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,188 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import random
import pywikibot
from pywikibot import pagegenerators as pg
INITIAL_OFFICEHOLDER = 'Q69064'
POSITION = 'Q1144278' # D-Bishop
COMMON_PROP_KEY = 'P708' # Diocese
COMMON_PROP_VALUE = 'Q835426' # Rottenburg-Stuttgart
KEY_PREDECESSOR = 'P1365'
KEY_SUC... | [
"jonas.hess@mailbox.org"
] | jonas.hess@mailbox.org |
216c5eedeb6a165c0b4217e1eb1151a0e286c922 | 9ebaf3720bed22f4b122ea530e6fa3921c2a71b4 | /161_170 파이썬 반복문/164.숫자 감소.py | 6684779bb3b9f317d6c68db62a4d9399e2e41f64 | [] | no_license | dofany/python300 | 703b7ecb17aab718cb45ca7f4fc3cc325efed0f1 | c0a30f8136ec66a4bdc66ce47cf8547fb508cefc | refs/heads/master | 2023-04-20T10:45:06.290735 | 2021-05-08T08:15:21 | 2021-05-08T08:15:21 | 355,829,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | # 99부터 0까지 1씩 감소하는 숫자들을, 한 라인에 하나씩 출력하라.
for i in range(99,-1,-1):
print(i) | [
"kimdohwan17@gmail.com"
] | kimdohwan17@gmail.com |
89e451ade1b6a1e34dd92d7c7e7ff62b0012777e | ce3bd1c0f8ecb9bbe41ded050c702a35e82191f5 | /khat3680_l09/src/functions.py | 76986a543da61362c125f29c1e33d9c12e51e0f1 | [] | no_license | khat3680/Data_Sturct_Python | e368133d01cd790206f49e3f401b73961234955a | 4ae75031b3abf36119331064bb119061ae6cd586 | refs/heads/master | 2022-12-10T02:59:01.016483 | 2020-09-11T16:46:31 | 2020-09-11T16:46:31 | 294,755,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | """
-------------------------------------------------------
[Food keys and the resulting hash values and slots]
-------------------------------------------------------
Author: Anshul Khatri
ID: 193313680
Email: khat3680@mylaurier.ca
Section: CP164 Winter 2020
__updated__ = "2020-03-18"
-------------------------... | [
"anshulskhatri@gmail.com"
] | anshulskhatri@gmail.com |
63d7c77fd2d67dcc03e07ff6be73197923e044bb | 3bb79d8362510e56102fdac19db394c29f367ca2 | /pytensor/tutorial/part3/trainer.py | 2a9fdcd46ea65ada96b2567eaf91d18074916099 | [
"MIT"
] | permissive | shuida/pytensor | 94225d37fad02bda5d9724443c15a055f9b1cc13 | d00d188dcc2da12d43afa749b3b23dd27e42698d | refs/heads/master | 2020-04-15T20:53:23.951523 | 2018-04-19T01:37:17 | 2018-04-19T01:37:17 | 165,011,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | from pytensor.network.graph import *
from pytensor.network.gradient import *
class Trainer:
def __init__(self, model):
"""
A trainer example using graph for autodiff
:param model:
"""
self.model = model
def train(self, x_train, y_train, x_test=None, y_test=None, epoc... | [
"lixinjian1217@gmail.com"
] | lixinjian1217@gmail.com |
321f4f183fbda35c1bf5b6488d17f6ba01787c62 | a0a4abdbf6d442ad45a8367233519814cc5dae07 | /model/train_station.py | 479672846ccbf6f080e0a0e98c4bfa3e1f641425 | [] | no_license | sdesby/GareLaPlusProche | c305fafb320579a1ef44e1e24e5775b6aa5ec027 | 7871789de046614353f84fa17ade1f66ee88422b | refs/heads/master | 2020-07-26T00:47:38.146421 | 2017-03-30T12:22:20 | 2017-03-30T12:22:20 | 73,642,347 | 1 | 0 | null | 2016-11-16T21:35:27 | 2016-11-13T20:53:42 | Python | UTF-8 | Python | false | false | 323 | py | #coding: utf-8
class TrainStation:
def __init__(self, id, name, howbig, latitude, longitude, postalCode, city):
self.id = id
self.name = name
self.howbig = howbig
self.latitude = latitude
self.longitude = longitude
self.postalCode = postalCode
self.city = ci... | [
"stephanie.desby@vidal.fr"
] | stephanie.desby@vidal.fr |
e075519acc169972674f97b79234a004a10cc92a | 9d95070fe76d23fa213b95c955680a6104826ec1 | /antlr4/starter.py | 8d1f6ef60291858c5819c914f547970c23288588 | [
"MIT"
] | permissive | kperun/NESTML-Python-Benchmark | 2ec731bf4c13fcf89bcbb9aa01f971bfa034b383 | e96d68fa73f75a25d34d629bbdbde43a849f1229 | refs/heads/master | 2021-03-27T13:09:50.633489 | 2017-07-20T12:28:01 | 2017-07-20T12:28:01 | 94,541,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | import sys
from antlr4 import *
sys.path.append('build/Grammar')
sys.path.append('Visitor')
sys.path.append('ASTClasses')
sys.path.append('Symboltable/SymbolTable')
sys.path.append('CoCos')
sys.path.append('Backend')
from ASTBuilderVisitor import *
from SimpleExpressionGrammerLexer import SimpleExpressionGrammerLexer
... | [
"konstantin.perun@rwth-aachen.de"
] | konstantin.perun@rwth-aachen.de |
2e6f36088e4197aa6061bfb3bb58e57afdaf7ebf | be8c512e482b467f549225d412e455223ca554d2 | /Funtion/blinker.py | 96643a45f76737b937c545341f59bb9f9bff395c | [] | no_license | xinruoyusixian/micropython | b65af743856db680439730398ce6d5baa45c32dc | b7248ab4f524996ce6007f2d8b7fa61909bab3d2 | refs/heads/master | 2023-03-31T23:04:40.417319 | 2023-03-23T09:19:45 | 2023-03-23T09:19:45 | 251,274,429 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,996 | py |
import ujson,time
from simple import MQTTClient
from urequests import get
DEBUG=0
def log(arg1, *vartuple):
# timeInfo = time.strftime("%H:%M:%S %Y", time.localtime())
if DEBUG== False :
return
data = str(arg1)
for var in vartuple:
data = data + str(var)
data = '[' + s... | [
"myxw94@gmail.com"
] | myxw94@gmail.com |
92e158695701876d89ab8ec872d069bfc8ba267e | e26641d4ad7af34021adb64a27913b4cd82d1d6f | /biosim/animals/__init__.py | bc88850717e51e30cbd6c4333bd24df95ff19fc0 | [] | no_license | navjordj/BioSim_G10_Eirik_Jorgen | b832ddbd7f6f6a25288df34e159d19b564b89800 | f661272e658aae1b6560db9af46f469adfce1321 | refs/heads/master | 2022-11-08T11:54:08.325761 | 2020-06-20T11:53:32 | 2020-06-20T11:53:32 | 268,738,641 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | __author__ = 'Eirik Høyheim, Jørgen Navjord'
__email__ = 'eirihoyh@nmbu.no, navjordj@gmail.com'
from .carnivore import Carnivore
from .herbivore import Herbivore
__all__ = ['Carnivore', 'Herbivore'] # For the linter
| [
"navjordj@gmail.com"
] | navjordj@gmail.com |
5dc19e0f4675b69228faaaa2594b4b1fd23a8ff5 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/백준문제/Other/11651_좌표정렬하기2.py | 8ac3d78a165dd26dc5a23f2c181fbc6695533ce6 | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | import sys
n = int(sys.stdin.readline())
nums = [list(map(int, sys.stdin.readline().split())) for _ in range(n)]
nums = sorted(nums, key=lambda x: (x[1], x[0]))
for k in nums:
print(k[0], k[1]) | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
333e95780bb3290dc2a516ee1333a88b0d9cd055 | 7b290aa7d2fe64c2ee7adb31ed0212dea6d22189 | /time_mode/__init__.py | 9cfe73ad82bb9753545b987e0eb0f7f068ee09ea | [] | no_license | ginkgodia/PYcode | 97866c1a74d896368e6f6a9cc6450a6665c4d1b0 | cbac336cd7be46fea442b2b112d29184361f0db3 | refs/heads/master | 2021-09-05T13:29:05.201458 | 2018-01-28T06:55:34 | 2018-01-28T06:55:34 | 115,179,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
# @Author:Ginkgo
# @Time:2017/12/10 0010 17:55
# @File:__init__.py.py
| [
"qcwu@jinkeen.com"
] | qcwu@jinkeen.com |
25a66eef576229a661f25796c57a3263d82cf7d6 | 608ab361b2768e0c107d8f8d15cf7922265d9f19 | /labrad_tools/sequencer/devices/yesr_digital_board/lib/digital_channel.py | 4fee8a2285544939b6f75c1d88f9b5e051c4814b | [] | no_license | syue99/SrE | bae12ec0685a2b7b9364e0d0c7440d525febd276 | dfc5d3714bb730c3bad6873b16bfd64476997799 | refs/heads/master | 2021-09-26T17:34:01.795844 | 2018-10-31T21:07:10 | 2018-10-31T21:07:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | import json
from twisted.internet.defer import inlineCallbacks
class DigitalChannel(object):
channel_type = 'digital'
def __init__(self, loc=None, name=None, mode='auto', manual_output=False,
invert=False):
self.loc = loc
self.idloc = '{}{:02d}'.format(loc[0], loc[1])
... | [
"sronelab@gmail.com"
] | sronelab@gmail.com |
1466f662390c0fc88be12eab21e875ad02ab08e2 | ff49fb0ee52e772de4e3f9d6152dcecfce24d61c | /cachalot/cache.py | 401c756cab33dca5e093f975dcf819db3e1d3243 | [] | no_license | IthacaDream/django-cachalot | 820c992542220dc0342e0dc9135aca9bff5b6e24 | fbef9448b9086cb809b9bd0d1aa0eeadb5d6c8d3 | refs/heads/master | 2021-01-22T12:45:47.505533 | 2014-11-04T00:38:51 | 2014-11-04T00:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | # coding: utf-8
from __future__ import unicode_literals
from threading import local
# TODO: Replace with caches[CACHALOT_CACHE] when we drop Django 1.6 support.
from django.core.cache import get_cache as get_django_cache
from django.db import connections
from .settings import cachalot_settings
from .transaction impo... | [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
a954ee02bf7f4e6445d0b16ba5888b674e9d2764 | 182d36353a6e33dc1f27f2dc7c0ae95577941dca | /python编程从入门到实践/property.py | 51799b524457a76aeb6ac896c25669bab801f2d6 | [] | no_license | tp-yan/PythonScript | d0da587162b1f621ed6852be758705690a6c9dce | 497c933217019046aca0d4258b174a13965348a7 | refs/heads/master | 2020-09-02T02:49:20.305732 | 2019-12-01T06:54:19 | 2019-12-01T06:54:19 | 219,115,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from screen import Screen
s = Screen()
s.width = 1024
s.height = 768
print('resolution =', s.resolution)
if s.resolution == 786432:
print('测试通过!')
else:
print('测试失败!')
| [
"tp1084165470@gmail.com"
] | tp1084165470@gmail.com |
7b48db37e3426a6585e5b4053701aa26b6326755 | 6a43c020a141c56be63d2442c6f8c1916ef74f0b | /MachineLearning/Kaggle_Leaf_Competition.py | 3c7ff0f74d169611656498152cdb41853789be3b | [] | no_license | Niazevedo/Python | 0a7466eac359d03821af3b50d48f599ba4a65e9a | c2abdb01b4b7b0dcd61ceb5437954a248c079794 | refs/heads/master | 2020-03-19T22:00:12.799956 | 2018-06-12T19:53:10 | 2018-06-12T19:53:10 | 136,956,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,446 | py | # This Python 3 environment comes with many helpful analytics libraries installed
# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python
# For example, here's several helpful packages to load in
# This Python 3 environment comes with many helpful analytics libraries installed
# It ... | [
"noreply@github.com"
] | Niazevedo.noreply@github.com |
755f797730fc33b4f305e3be2ce23e76395cb35a | 3d449467c8855480f0763326e480721ebcbadcd3 | /3-FeelingParser/model_cnn.py | 7166c819eb3c56e8080b19daf1c64cffdffb78ca | [] | no_license | Lander-Hatsune/2021Spring-AI | b6e6d4230ed33ddfb2cdbd78d2d0d58a3164d51f | 49eb94a3db37e91a546b754ec83b3194a1b9592f | refs/heads/main | 2023-05-22T21:49:59.091706 | 2021-06-08T01:24:20 | 2021-06-08T01:24:20 | 346,204,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
import matplotlib.pyplot as plt
from dataset import get_all_words
ALL_WORDS_DIC = get_all_words()
EMBED_LEN = 256
EMBED_MAX_NORM = 1.0
class cnn(nn.Module):
def __init__(self):
super(cnn, se... | [
"wangwwx@yeah.net"
] | wangwwx@yeah.net |
5d12d3f7a19a66cb240de4f8eb65b56a8beb922a | 4c03859f5826dcd631c4fdf9bb9a1bb4764e22b7 | /myview/models.py | 21adbe3f4bc007d28b3ef662fa135a61ee119838 | [] | no_license | modkhalid/django-user-login-and-CBViews | e3e3162f1a2c2da6a5afada3ad611cd9b9772957 | ce48a888dd9b10d25508d1b009419cd1aaf659e9 | refs/heads/master | 2020-04-15T20:22:17.802748 | 2019-01-10T04:38:01 | 2019-01-10T04:38:01 | 164,990,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from django.db import models
# Create your models here.
class School(models.Model):
name=models.CharField(max_length=256)
principal=models.CharField(max_length=256)
location=models.CharField(max_length=256)
def __str__(self):
return self.name
class Student(models.Model):
name=models.Char... | [
"modkhalid5@gmail.com"
] | modkhalid5@gmail.com |
2f1a33f128b93940864065a198850c45b284cf05 | d4f12c33a0f4a2a6be76a5403c149253db02062e | /Desktop/BigData SU2018/Lesson 1/pythoncourse-master/code_example/OldPython2/complexFileSearch.py | 6b5968fb3b33aebd0bae74b29dc1663fd83336d3 | [] | no_license | CC-SY/practice | 3059e3a4153a3f009b4e67f45bc2303070d1cfc1 | 6445cfd40e1aa8ebba39e259c07942e7669ecb1a | refs/heads/master | 2020-03-17T00:14:20.743726 | 2018-05-12T02:49:35 | 2018-05-12T02:49:35 | 133,108,281 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | # wfp, 2.20/08
# starting from a given path, look at all files with a particular suffix to see if
# they contain a particular string. Assumes suffix indicates a text file
import os
def check(root,myStr,suffix,cnt,fLst,dLst):
for dirName,dirs,files in os.walk(root):
for f in files:
if os.path.... | [
"cecilia_sui@163.com"
] | cecilia_sui@163.com |
9a33fe048d87cf90446cbb441b9cf4ea4406ea51 | cf122caace9098a81f88841248d3ab20eb7730b2 | /pymarkdown/plugins/rule_md_031.py | be25861c4fba35f8e7307e686f909a46a906a2f1 | [] | no_license | jtprince/pymarkdown | 65b3f3b06c88bc0d4652a990bd134ef6996bcc15 | 7151ea88a180bdc4b977940e90e9db4908b13ede | refs/heads/master | 2023-04-29T15:51:05.761440 | 2020-07-26T19:30:29 | 2020-07-26T19:30:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | """
Module to implement a plugin that looks for hard tabs in the files.
"""
from pymarkdown.plugin_manager import Plugin, PluginDetails
class RuleMd031(Plugin):
"""
Class to implement a plugin that looks for hard tabs in the files.
"""
def get_details(self):
"""
Get the details for th... | [
"jack.de.winter@outlook.com"
] | jack.de.winter@outlook.com |
c97a595d095d319a3d50761ffc02eb2c8993e657 | b45beedf19f0ea7d01152526dbaac5c32c916ee2 | /build/mapping/catkin_generated/pkg.develspace.context.pc.py | 73af696e5513676b4a04020cc3d96584eddbc90e | [] | no_license | huan-holmes/UstarService | 66bda94b40cf12d1f123361dc02f866e25b3d5f8 | 79c3567aeff4d3ddaf500829ab247d3cf8fdce72 | refs/heads/master | 2023-02-24T01:00:40.487662 | 2021-01-20T03:45:32 | 2021-01-20T03:45:36 | 278,293,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/boocax/UstarService/src/mapping/include".split(';') if "/home/boocax/UstarService/src/mapping/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX... | [
"1124782663@qq.com"
] | 1124782663@qq.com |
8ae83d0429fc648f0336ab3901c8b948423c37b0 | 43f1b1dec8694ce05dea1397c005341e7e25f2f7 | /box_plotter.py | 0f48367389721368695ec10642b605eb5804fe97 | [] | no_license | harzival/uniscan-compose | 9771bce64cc4653f7286734f05651d31f8a6114a | 465fedf3ccf8a2bab6ce8948f8c91606ea7cc39f | refs/heads/master | 2020-09-21T07:59:44.908063 | 2020-01-08T15:05:14 | 2020-01-08T15:05:14 | 224,734,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
from vec3 import Vec3
class BoxPlotter:
def __init__(self):
self.fig = plt.figure()
self.ax = plt.axes(projection="3d")
def start(self):
plt.show()
def set_plot_size_limit_box(self, box):
def largest_between... | [
"ben@benw.co.uk"
] | ben@benw.co.uk |
22c5e9458de692383668d132fcf1b9d82f050c62 | e7c467ebe3db1518376f73d91b0d4a58a829b308 | /src/mnist/inf/inf_def.py | f07a3f54d0821f5f3cfbdcb54cfebea3c78d38d0 | [
"MIT"
] | permissive | xinhandi/ambient-gan | b3b18bae69b804479cb2eee978064df3559e456d | 60e9ee50b104ea07dd7395e8fc6098112d626f00 | refs/heads/master | 2022-11-03T04:51:14.953734 | 2018-02-14T00:48:46 | 2018-02-14T00:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | import tensorflow as tf
import model_def
class InferenceNetwork(object):
def __init__(self):
self.sess = tf.Session()
self.x_ph = tf.placeholder(tf.float32, shape=[None, 28, 28, 1], name='x_ph')
self.logits, self.y_hat, self.keep_prob = model_def.infer(self.x_ph, 'inf')
restore_var... | [
"ashish.dilip.bora@gmail.com"
] | ashish.dilip.bora@gmail.com |
383b25ad64597d238e307b0d7040661519ed016c | 81be14d71488dcaf040fa22f766c7986b687fe2b | /HackerRank/Python/Strings/find_string.py | a1884865a62d1f9a846bf71eb0608dd2edd9c852 | [] | no_license | fpcarneiro/learning_python | d1e91f344c00ee1f858bddc27df000d0600aae82 | 7740125ef6e44748fdf20beaf872cfd9c8b55d5b | refs/heads/master | 2021-09-06T05:44:30.499062 | 2018-02-02T20:48:56 | 2018-02-02T20:48:56 | 108,610,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def count_substring(string, sub_string):
count = 0
pos = string.find(sub_string)
while pos != -1:
count += 1
string = string[pos+1:]
pos = string.find(sub_string)
return count
#print(count_substring("ABCDCDC", "CDC"))
| [
"fpcar@yahoo.com.br"
] | fpcar@yahoo.com.br |
8b398192bcacb0af348b458c537e13ced5d2852b | bab8ce0d8b29292c8d6b0f2a6218b5ed84e7f98b | /hr_expense_auto_invoice/models/hr_expense.py | b4bdd8b85e88b038e7a351ec3738bcaa32f4e6c1 | [] | no_license | ecosoft-odoo/ecosoft_v8 | 98e4116be3eceb287e2f3e9589d97155d5b8b745 | 71c56b0a102e340a5d80470243343654d8810955 | refs/heads/master | 2020-04-06T10:04:03.807855 | 2016-09-25T05:00:04 | 2016-09-25T05:00:04 | 51,049,848 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,792 | py | # -*- coding: utf-8 -*-
# © <YEAR(S)> <AUTHOR(S)>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api, _
from openerp.exceptions import except_orm
from openerp.addons import decimal_precision as dp
class HRExpenseExpese(models.Model):
_inherit = "hr.expens... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
c65e1ab2c206ada2caf6d5275d26636e209cb888 | 65cfd5afa66027ae842af335abca97f2f6507317 | /Visualizer/App/migrations/0001_initial.py | d1d84e40a2046c1d39ec900a11bdc60d26d131d5 | [] | no_license | zahinazher/IoSL_Clustering | 1409e27a35117e0bd281d83374ad1efc6dd5d7e3 | 3cee700f5e4ac4a91604641293964dea30de5826 | refs/heads/master | 2020-05-03T12:22:17.813793 | 2019-04-01T21:28:00 | 2019-04-01T21:28:00 | 178,623,991 | 0 | 0 | null | 2019-03-31T00:03:05 | 2019-03-31T00:03:05 | null | UTF-8 | Python | false | false | 608 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-25 21:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Dataset... | [
"fabio.buso@campus.tu-berlin.de"
] | fabio.buso@campus.tu-berlin.de |
1bd02c4bcb52fc6973f58ca39c377fba3d1a1893 | ea270b1bf26203cc463a5e01ca219fb319bb4071 | /csp_fwang29.py | 3e10e7ce2707ac006f5b7554fb6ad4e1307219a6 | [] | no_license | fwang29/Sudoku | 57b639b3774717029be188f08e2ca1adf7b9c40b | 0c75b6b240d53a729da6ba087102f8a488ef5faf | refs/heads/master | 2021-01-11T02:54:05.512340 | 2016-10-22T01:58:33 | 2016-10-22T01:58:33 | 70,886,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,839 | py | import sys
import pprint
import copy
filled = 6
available_grids = []
word_bank = []
grid = [["_" for i in range(9)] for j in range(9)]
# check overlappable and game rules at the same time
def check(row, word, y, x, direction):
overlapped = 0
if direction == 0:
for i in range(0, min(len(word), 9-x)):
... | [
"noreply@github.com"
] | fwang29.noreply@github.com |
a1a7f39fc56e806a51bd8571257612520f2b6833 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006688.py | 36b340dc93a97ed9bb1bce0431a62dcc8a474b72 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,795 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
cd659f5587ecd7ef4920766a0d08b39137698bce | eb6fb0db429f7856260aeb91a3b02b63cc29da0c | /order/migrations/0001_initial.py | e9fa4a7d9d2b37bed91a2305e78b862a31b5f208 | [] | no_license | dpridoy/IoT-Store---Ecommerce | ece856bc6f345151b7126f0b7b1a7fa4ce285b54 | 45c18092bfc3aa2bff8941f57ad6241c14f470d8 | refs/heads/master | 2023-01-08T22:52:26.554211 | 2020-11-08T14:37:06 | 2020-11-08T14:37:06 | 310,508,991 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | py | # Generated by Django 3.1.2 on 2020-11-08 05:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
... | [
"dpridoy@gmail.com"
] | dpridoy@gmail.com |
b36012cb8969fe9837ed98b8b0b16a77cd34dc42 | 91f0fd40938d5beea318439406ae3c664908ffcf | /lib/flask/sessions.py | c24667d9236de6001b1602111af8164896209a11 | [
"Apache-2.0"
] | permissive | tobbee/skojjt | 0c74d8aae93a4649dc0f8c58ccd0bddc5e85b4ee | 4d209291be1741cb9a0a35890fb9a6c2e72e0eec | refs/heads/master | 2020-04-22T06:14:17.436464 | 2019-07-20T13:22:49 | 2019-07-20T13:22:49 | 170,183,697 | 0 | 0 | Apache-2.0 | 2019-02-11T18:56:58 | 2019-02-11T18:56:57 | null | UTF-8 | Python | false | false | 14,433 | py | # -*- coding: utf-8 -*-
"""
flask.sessions
~~~~~~~~~~~~~~
Implements cookie based sessions based on itsdangerous.
:copyright: 2010 Pallets
:license: BSD-3-Clause
"""
import hashlib
import warnings
from datetime import datetime
from itsdangerous import BadSignature, URLSafeTimedSerializer
from we... | [
"martin@famgreen.se"
] | martin@famgreen.se |
420b52169bcb5d4d185f9d2af0b46d8bf1331e6f | aa05669600217f8e17ab4af3a156b9b75f328bb7 | /lib/umsgpack.py | aab0543c56e55c2f4f80e1531e840a5cb4925b29 | [] | no_license | peragwin/pymesh | 24b1e2e42a5ee3fe12a52051c357435a543b61d4 | 08671f96a1613bcb5985a574596d0055d6825642 | refs/heads/master | 2022-01-18T03:21:16.910036 | 2019-08-13T01:18:49 | 2019-08-13T01:21:19 | 202,034,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,818 | py | # u-msgpack-python v2.5.0 - v at sergeev.io
# https://github.com/vsergeev/u-msgpack-python
#
# u-msgpack-python is a lightweight MessagePack serializer and deserializer
# module, compatible with both Python 2 and 3, as well CPython and PyPy
# implementations of Python. u-msgpack-python is fully compliant with the
# lat... | [
"peragwin@gmail.com"
] | peragwin@gmail.com |
404fcaa2e14013ffde0eb4b7aec275fb45d2f397 | df44101529ac015ecd5695e2fb9e09d4bfdc338b | /main.py | ed47ed942e2dda3178e1beb2092aa081f653ebce | [] | no_license | childPENGyou/pengyou_new_blog | 56150e9da38cfb391dbd2a06513f125f50dc794c | 2591b2d6584de4aa3e5e2130ddf96a12bfbc67ba | refs/heads/master | 2021-04-26T22:19:53.266813 | 2018-04-12T08:54:46 | 2018-04-12T08:54:46 | 124,073,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # coding:utf-8
import os
import tornado.web
import tornado.options
import tornado.ioloop
from config import config
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), 'template'),
static_path=os.path.join(os.path.dirname(__file__), 'static'),
compress_response=config['compress_response']... | [
"pengyou@xintiaotime.com"
] | pengyou@xintiaotime.com |
243e943a00ad77e7cd6f05c00ccae31cd1f0c847 | 7670a25a77f418ac5ed9728bb276c1848b0467c5 | /deployment_model/predict.py | a8a74eaacf01bdf3049a389a18a648cf5382f743 | [] | no_license | rhzphlv/deploying_model | f9aef3da360160c519197c51bd97f8c696a42a2e | a4bfb2299aa5e629d42c3fca0a779570a26dc9b5 | refs/heads/main | 2023-03-30T13:26:49.683384 | 2021-03-23T20:29:51 | 2021-03-23T20:29:51 | 350,238,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from deployment_model.processing.data_management import load_pipeline
from deployment_model.config import config
from deployment_model import __version__ as _version
import pandas as pd
import logging
_logger = logging.getLogger(__name__)
#load trained pipeline and then use it to make predictions
pipeline_name = f"{c... | [
"rheza.jogja@gmail.com"
] | rheza.jogja@gmail.com |
a42725560c152cb46e69c8de3afb0d86d1902634 | 9c81b68f43d424bf668f42cb12528edad19186bb | /api/models.py | 138648dcadb62a206499a423fbc748be9d3e679a | [] | no_license | Balganym/END | 5937900b3e0dcb51ff4e8a3b58d8486fe51e9af1 | 95da64aab1db3558ee6c8fc6d0f0f4d8abf51ab5 | refs/heads/master | 2020-03-12T04:35:09.514085 | 2018-04-21T13:36:19 | 2018-04-21T13:36:19 | 130,447,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class Category(models.Model):
name = models.CharField(max_length=200)
def __str__(self):
return self.name
def to_json(self):
return{
"id": self.id,
"name": self.name
}
class Product(models.Mod... | [
"bakosa_98@mail.ru"
] | bakosa_98@mail.ru |
a69c0e0e7262c145c1acc785ee66e0b146f35b67 | 25721c27a4ac7fdca170d6800bc489857ba6cd8f | /question_101_200/question_131_140/133_clone_graph.py | a69a54d6f8fc4d64b7837cc52e5ebe66e4ebd963 | [] | no_license | lupes/leetcode | c8ba02ac264931334829b438d5bac50964bbbe5b | bbf33d042cff7f20a514a18d23005efdea4e5754 | refs/heads/master | 2022-06-09T05:36:53.698846 | 2022-05-24T11:11:01 | 2022-05-24T11:11:01 | 174,931,564 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # 133. 克隆图
# https://leetcode-cn.com/problems/clone-graph
# Topics: 深度优先搜索 广度优先搜索 图
"""
# Definition for a Node.
class Node:
def __init__(self, val, neighbors):
self.val = val
self.neighbors = neighbors
"""
class Solution:
def cloneGraph(self, node: 'Node') -> 'Node':
pass
| [
"lupe.luo@klook.com"
] | lupe.luo@klook.com |
bce049178b3eeac8b58c338a83a67a4c2135228e | b34414213d640bbec8abf0e1d4e1f01cb3cfc312 | /classic-100-scripts/JCP010.py | 7ad25e61d0aa6d03bce0e5cd81519961966a56b1 | [] | no_license | yushenshashen/hello-python | 4f47ec7a742a4b9bd1388bbf42c85d593cd4e579 | f98e55025ecf28cb1dfe9167768c23b76fe40b05 | refs/heads/master | 2020-12-24T10:24:40.020720 | 2018-12-24T08:11:29 | 2018-12-24T08:11:29 | 73,158,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | #!/usr/bin/ python
import time
print time.strftime('%Y-%m-%d %H:%M:%S',time.localtime())
time.sleep(5)
print time.strftime('%Y-%m-%d %H:%M:%S',time.localtime()) | [
"noreply@github.com"
] | yushenshashen.noreply@github.com |
7280cf809e0657ddce006e588f0242afc8c59e1f | 53b1cf89f3ac00d86add6dc6e103160d50e1b4ea | /pgadmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/rules/tests/test_rules_delete.py | 85c55f5084d2727c21cb2b015e05e790282aca09 | [
"PostgreSQL"
] | permissive | luvres/armhf | b5e9e59c0e5db7f4a280242a0d940c4066a47716 | aa1ec48e246f1fb8e0f4099fa8d392eddcb414ad | refs/heads/master | 2021-10-01T19:08:53.395884 | 2018-11-28T17:57:42 | 2018-11-28T17:57:42 | 79,672,248 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | # #################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2016, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# ##################################################################
import uuid
from regression im... | [
"luvres@hotmail.com"
] | luvres@hotmail.com |
9ae6391c0252c86203b5a70c5515923cc9a9f35e | f66f63699ad8f956974bcb9cbdf272b45aacb665 | /fortress/visitors/expression/right_value.py | f58fcb149529d291bca6fce1812799ba32294a61 | [] | no_license | bydolson/fortress-security-audit-engine | 8b0714909d14952c3fb572a6afb2202fa01f256d | 7a55877bdde0d6adabe3ce9c4f92e8ba20b4b3cc | refs/heads/main | 2023-01-24T12:47:38.214542 | 2020-12-08T12:16:05 | 2020-12-08T12:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | # Return the 'right' value of an expression
# On index access, explore the left
# on member access, return the member_name
# a.b.c[d] returns c
from fortress.visitors.expression.expression import ExpressionVisitor
from fortress.core.expressions.assignment_operation import AssignmentOperationType
from fortress.core.ex... | [
"canercak@gmail.com"
] | canercak@gmail.com |
519f76f12f5e69683260ab6f73d1e2ba7e3ca0a1 | e83e02a4cbb032c1625b1aa25da2852f92b5ca23 | /todo_list/migrations/0006_auto_20190823_0014.py | f7b832d018589ee4697167cb99ed8eebe46caa07 | [] | no_license | ritterng/RitterNgWebsite | 40b67417dc08f4a34161a8013a85919e75cfab8f | 190fb1dfa1980ef37cfb28c3134bc3120d0d04bb | refs/heads/master | 2023-04-29T21:33:27.634662 | 2019-09-11T07:10:14 | 2019-09-11T07:10:14 | 198,720,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # Generated by Django 2.1.10 on 2019-08-23 07:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todo_list', '0005_wishlist_owener'),
]
operations = [
migrations.RenameField(
model_name='wishlist',
old_name='owener',
... | [
"wrtforwp7@hotmail.com"
] | wrtforwp7@hotmail.com |
b09dc09bf42643461eb4abf30d95b5ca51fa9bc4 | 364e0a102012a7023e4857e4b0ae14b1532b7651 | /www/handlers.py | 58a5c4edbcb1f0ce9eb12836c18b94571c035c93 | [] | no_license | eeechoo/awesome-python-blog | bdc799adf504a84f90953199825cda6c5b3e68b2 | caba6e459bd8df62843fc58cfd337da46d80832f | refs/heads/master | 2020-03-17T06:48:54.160003 | 2018-05-20T07:45:32 | 2018-05-20T07:45:32 | 133,370,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,051 | py | import json, re, time, hashlib
import logging
import markdown2
from aiohttp import web
from config import configs
from models import next_id, Blog, User, Comment
from apis import APIValueError, APIError, APIPermissionError, APIResourceNotFoundError, Page
from coroweb import get, post
# ==============================... | [
"caiminghui369@gmail.com"
] | caiminghui369@gmail.com |
422d6ca714cbb98a01597ac53b842d656b0e3a8c | 16d64e0cc2256b4eadeaaa46812ca35ff1f1ab39 | /Company/migrations/0020_alter_ledger_master_unique_together.py | c0f5efcba6e100d075dd22649954f1a9bb0628d4 | [] | no_license | Techlance/erp-backend | 2f7d99a1dc1577c662f975709428c5c987b91a09 | 4aea122a4c830587f232163cb039d35b4e6e1ef8 | refs/heads/master | 2023-09-03T18:09:00.765441 | 2021-10-14T12:38:06 | 2021-10-14T12:38:06 | 389,629,384 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # Generated by Django 3.2.5 on 2021-09-04 07:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Company', '0019_alter_ledger_master_docs_ledger_master_id'),
]
operations = [
migrations.AlterUniqueTogether(
name='ledger_master',
... | [
"jevin925@gmail.com"
] | jevin925@gmail.com |
2664a7cedeb36cedfa9a9dbef534acef9e7e30b7 | 628ae3506d28acc472c39d5452b675e3f1d4f4ac | /sol/dialog.py | fd4c93e701c5445b3e39cd107f9d66433f1bf360 | [] | no_license | jucacrispim/sol | 6be9aad187a1d2367ccd2a59347817ef0162954b | 2c001812559ea586d2532d81f475f379a38b7b7d | refs/heads/master | 2021-06-23T11:41:31.448769 | 2019-10-21T06:28:22 | 2019-10-21T06:28:22 | 216,483,311 | 0 | 0 | null | 2021-04-20T18:47:42 | 2019-10-21T05:18:54 | Python | UTF-8 | Python | false | false | 979 | py | # -*- coding: utf-8 -*-
import random
from .statements import get_statement, Say
class Dialog:
def __init__(self, statements):
self.statements = statements
def __call__(self, context):
return self.execute(context)
@classmethod
def from_parsed(cls, parsed):
dialog_actions =... | [
"juca@poraodojuca.net"
] | juca@poraodojuca.net |
de92a49283e98a1c6c56f239e512263b229c283b | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /abc094/a.py | a9cb623c7f9dc001e6f2374bf834acb83cfb526f | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | a, b, x = map(int, input().split())
x -= a
print(['NO', 'YES'][int(0 <= x <= b)])
| [
"silphire@gmail.com"
] | silphire@gmail.com |
b9707563ed454a806334f37be99383318b2a06ad | 23108a15b08f57318c96aed4de8785e5b95a6630 | /src/game_map.py | 5e7dcaf59ce4144d64499fbe33432fcbafa57251 | [] | no_license | anaselmi/Puzzler | f9852b17e08c8ddb04478e679343e2b016c3da33 | 9b4987e13adeb6e7b75a713ae1524867392dea53 | refs/heads/master | 2021-09-18T01:35:55.149939 | 2018-05-11T19:12:51 | 2018-05-11T19:12:51 | 122,107,901 | 2 | 0 | null | 2018-05-06T22:30:53 | 2018-02-19T19:08:29 | Python | UTF-8 | Python | false | false | 151 | py | import tdl
class GameMap(tdl.map.Map):
def __init__(self, size):
width, height = self.size = size
super().__init__(width, height) | [
"elmi.anas@gmail.com"
] | elmi.anas@gmail.com |
20356747805e44b7d88fe0eed1b9552d55a98ee9 | 84a1f9d626828b6ecaee4ef037081f4d8750a990 | /编程/8月/8.4/Binary_Tree.py | 0a75d805b3c31c3c29a54d15c3ef23a4da40382a | [] | no_license | dujiaojingyu/Personal-programming-exercises | 5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04 | 72a432c22b52cae3749e2c18cc4244bd5e831f64 | refs/heads/master | 2020-03-25T17:36:40.734446 | 2018-10-01T01:47:36 | 2018-10-01T01:47:36 | 143,986,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | __author__ = "Narwhale"
class Node(object):
"""节点"""
def __init__(self,elem):
self.elem = elem
self.lchild = None
self.rchild = None
class Tree(object):
"""二叉树"""
def __init__(self,node=None):
self.root = node
def add(self,item):
"""添加"""
node = Nod... | [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
fb592598d19c22a3df394cc130fd7e9461f8dce5 | 4591b4c66f443a2a54c858a8f3b529b8f388a5e4 | /workshops/test/test_site.py | a74ab65dc748ef08d2b21f0f2a218ce6ddac8be4 | [
"MIT"
] | permissive | sburns/amy | 39e11b48212304c7620e56a66c2f585d3d5951ae | 7a315ba934f45e2234aaf1ea0e953b88a6239e10 | refs/heads/master | 2020-12-28T20:31:22.103801 | 2015-01-20T20:27:31 | 2015-01-20T20:27:31 | 27,539,122 | 0 | 1 | null | 2015-01-27T17:43:06 | 2014-12-04T12:18:40 | Python | UTF-8 | Python | false | false | 889 | py | from django.test import TestCase
from ..models import Site
class TestSiteNotes(TestCase):
"""Make sure notes once written are saved forever!"""
def test_site_without_notes(self):
"Make sure sites without notes don't have NULLed field ``notes``"
s = Site(domain="example.org",
... | [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
441bb44c56ca00a404317b1c9af4d66341b3ac97 | 92f8a5bf9d99a13afc00ff2138ed2b42f0edc15b | /CW2/data.py | 80492660d584527707c58a6e6914c593b45238bd | [] | no_license | an4/Neuroscience | 7a71f0c96edd5a806738c4ebf9e6cab6ca15fbfe | b8dec491727b92ee1b7d90d7a372afb32e1cc410 | refs/heads/master | 2021-01-18T22:35:58.406372 | 2015-05-14T16:08:31 | 2015-05-14T16:08:31 | 34,944,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,635 | py | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.patches as mpatches
from pylab import pcolor, show, colorbar, xticks, yticks, matshow
################################################################################
# Calculate firing rates of each neuron (in each 1 second interval), and plot #
# ... | [
"ad12461@my.bristol.ac.uk"
] | ad12461@my.bristol.ac.uk |
ccc1c3b51a7232bfbe87d19ca7431e3974a99d67 | 74674ba8f24b6ab00b9a64b98f43b61f9eaef3d7 | /efficiency.py | f2434377df7c01fc83194952dd2d796c07ef8f75 | [] | no_license | xiaojunzaizai/text-to-bar-code-image-encryption-algorithm | 36dedc846c343e60e38eea19adfc50c2f360c99e | e09f09893f787f80c94791cbb1ff30bd25133bd7 | refs/heads/master | 2022-07-20T08:39:31.229931 | 2020-05-13T09:15:29 | 2020-05-13T09:15:29 | 263,581,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | import encryption_decryption
import random
import time
Alpha_dir = {i:chr(i) for i in range(32,127)}
def get_message():
message = ''
for i in range(1024):
message += Alpha_dir[random.randint(32,126)]
return message
def iteration(n):
start = time.time()
for i in range(n):
message =... | [
"49795431+xiaojunzaizai@users.noreply.github.com"
] | 49795431+xiaojunzaizai@users.noreply.github.com |
4b79518b9fc97ac9db421c01d477c0c05e362764 | 456433ac78b70cb8ae076ae166a85e349f181d7f | /systems/KURSSKLAD/REPORTS/RESTWARESSALE/restwaressale.py | 004455996c7440bf1aca944295db90b98e8eaf17 | [] | no_license | shybkoi/WMS-Demo | 854c1679b121c68323445b60f3992959f922be8d | 2525559c4f56654acfbc21b41b3f5e40387b89e0 | refs/heads/master | 2021-01-23T01:51:20.074825 | 2017-03-23T11:51:18 | 2017-03-23T11:51:18 | 85,937,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # -*- coding: windows-1251 -*-
from systems.KURSSKLAD.ksprav import KSprav
from systems.KURSSKLAD.REPORTS.RESTWARESSALE.templates.main import main as tmplmain
class RestWaresSale(KSprav):
def index(self, id_system=None):
KSprav.index(self, id_system)
return self.drawTemplate(templ=tmplmain, d... | [
"s.shybkoi@gmail.com"
] | s.shybkoi@gmail.com |
002c43b7cb2a8c579facaaaac6c1c7ccd3575c45 | 10e1c07d665f9304d5ffd7033c64a164ea2a3ad9 | /Django_Backend/mypython/bin/wheel | e31ccafa93d3e9c061f4c2e45cd8c00c4a3ce3e7 | [] | no_license | garvitkataria/AI_Hackathon_Server_Code | fba56605b25f4698110ebf92aa21809ebdcec462 | 1feee4122615bf0d1384889625a62db84c9ddb8b | refs/heads/master | 2023-01-11T11:26:00.619674 | 2019-09-29T06:09:07 | 2019-09-29T06:09:07 | 207,013,287 | 0 | 0 | null | 2022-12-31T03:04:05 | 2019-09-07T19:00:28 | Python | UTF-8 | Python | false | false | 275 | #!/Users/garvitkataria/Downloads/IOT_Smart_Agriculture-master/mypython/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"garvit.k16@iiits.in"
] | garvit.k16@iiits.in | |
446081ceffba909e085647c92453bae80a30bf7f | 1af4500a8f7d8de76581237663f87de2f71d5bf5 | /NeuralNet.py | a32f29e37e82c487624eb88c2bd7314c782ea662 | [] | no_license | MrSwayne/Reinforcement-Learning-for-Connect4 | 2722934b9f9c3e34d0d33acdea58b37b30d825b7 | 9391742b99365327c33c0a6428a97f1792fc07ca | refs/heads/master | 2020-07-30T01:56:03.392107 | 2020-06-06T12:02:36 | 2020-06-06T12:02:36 | 210,045,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import numpy as np
import keras as k
import time
import pathlib as p
import os.path
from os import path
class NeuralNet:
def __init__(self, name):
self.path = "NeuralNet/" + name + ".h5"
self.gamma = 0.5
self.model = self.init_model()
if not os.path.exists(self.path):
... | [
"adam@swayne.ie"
] | adam@swayne.ie |
6a38d402ed99669da06fb5e9f57d7aceec868c82 | b75821a9219aec4a62127aa914e24a3970ca61b5 | /ml/ml_server.py | 7eef96236070604ceb23f10faa0b12ca6ab26ca9 | [] | no_license | miletskiy/compliment | 29cdcf1069decbd9a9d8016e9914ac8afb19d2fe | 911ec7f172f5f5444bf578107196d689fdc11e0b | refs/heads/master | 2021-01-20T07:53:59.067601 | 2017-03-25T22:27:48 | 2017-03-25T22:27:48 | 83,893,517 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,158 | py | import requests
import base64
import json
import random
import urllib
import nltk
from collections import Counter
from nltk.stem.lancaster import LancasterStemmer
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from urlparse import urlparse, parse_qs
def gen_text_from_image(url):
GOOGLE_API_KEY = ""... | [
"vlfomenk@gmail.com"
] | vlfomenk@gmail.com |
1f4796995f92f2e90d36b46fabbec598e627d604 | 8527855b3354d1ead39d9d454ada07ac218178f0 | /src/training_xray/Dataset_XRay.py | 56a303958bbd43468e3bb61eb77009fd94de6a9b | [] | no_license | AugustasMacys/BachelorThesis | 977d4b54878450669dd6598eb3cf293bb177ec07 | 061a99d97bfcc310a9cdbdab6acae889fb1753c4 | refs/heads/main | 2023-06-17T21:24:09.796860 | 2021-07-08T12:46:28 | 2021-07-08T12:46:28 | 384,118,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | import logging
import albumentations.augmentations.functional as albumentations_F
import cv2
import numpy as np
from PIL import Image
import torch
from torch.utils.data import Dataset
from torchvision.transforms import functional as F
from src.Utilities import MASK_REAL_PATH, MEAN, STD
log = logging.getLogger(__n... | [
"axm1415@cs.bham.ac.uk"
] | axm1415@cs.bham.ac.uk |
2abdf2ef461305f3dc7aad89a66ded70979c0c5d | b3b5da52c9df09112f49ff5c5a7fedd45864111f | /python/etframes/demo_barchart.py | 1764d4c5edba9b36488e90d3a27e707504fcde69 | [] | no_license | yourgodmwtcn/tools | 28939f65e092674f3f9a6cb56da58626ed68651a | f01830d328a2c75f80329501dddf2e571d4c842a | refs/heads/master | 2021-01-18T09:36:30.494072 | 2014-06-22T20:39:29 | 2014-06-22T20:39:29 | 21,156,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | #!/usr/bin/python
import matplotlib.pyplot as plt
from numpy.random import *
import etframes
data = uniform(0, 99, 10) + 1.0
etframes.bar_chart(data, [25, 50, 75])
plt.xticks(range(len(data)))
plt.show()
| [
"dpak.cherian@gmail.com"
] | dpak.cherian@gmail.com |
9f0a7b51673fc269311128205d8789d8157140c2 | 6b33ef06a9bf87a31883cebcec323d11a15b8809 | /util.py | 20a248d301e29afc222cfa109354dcc9f20622a6 | [] | no_license | Prasanna-tm/python-data-pipeline | 7f5cf47d67d3d7d70dd8ad3412f99f52227187b9 | e62a86e9c4a8ceddff9d69ba3c27c36d91c1cb5b | refs/heads/main | 2023-04-20T15:18:12.090542 | 2021-05-11T07:40:05 | 2021-05-11T07:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import pandas as pd
import logging
logger = logging.getLogger(__name__)
def get_delimited_file_data(file_path,sep):
"""
This function will do following task
1. Reads the filename with path as input
2. Reads field delimted as input
3. Reads the input file using pandas and returns data as dataframe... | [
"prasanna.tm@gmail.com"
] | prasanna.tm@gmail.com |
7f212ff4e8d225d8223555b83b0f07dfdd6fcfc4 | d0d16e229430ca089e22b9211ef89a8f51648631 | /day_3/part_2.py | 73f729d2a2bacc9c69af55ab26fab87a8c2726f6 | [] | no_license | jzbruno/advent_of_code_2020 | 52fd5377048f49fd8b066d25c0880996f81e2a50 | aba64732ee6dd3a4bd78fd3ccd1c1addb24f10e1 | refs/heads/master | 2023-02-02T04:44:24.810481 | 2020-12-19T22:02:21 | 2020-12-19T22:02:21 | 322,322,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | #!/usr/bin/env python
lines = []
with open('input') as f:
lines = f.readlines()
slopes = [
(1, 1),
(3, 1),
(5, 1),
(7, 1),
(1, 2),
]
tree_count_prod = 1
for slope in slopes:
x, y = slope
cell = x
tree_count = 0
for i in range(y, len(lines), y):
line = lines[i].strip()... | [
"jzbruno@gmail.com"
] | jzbruno@gmail.com |
f7a4d81b0b7f1bf6e56841898aca00fbb95998a6 | c949ac8a7f8e2cbc38c49f5a2f72d79ecb8495ba | /django_backend/django_backend/models.py | 02e57be9afb85f2013d7eebc41dc2ca152d866eb | [] | no_license | desmondlew556/clothesChoose | 3b0ee88d9b455b28d345ede08ad7300a82ece467 | 61456f5d7b8ed6ffb26cbe2b6b5f73cf2224d69b | refs/heads/main | 2023-08-21T23:04:50.897964 | 2021-09-01T17:40:36 | 2021-09-01T17:40:36 | 402,146,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,051 | py | from django.db import models
from django import forms
from django.conf import settings
from django.utils.translation import ungettext
import os
import math
from rest_framework import serializers
#add on library for colors
#from colorfield.fields import ColorField
#number values for char length
short_len=100
middle... | [
"desmondlewjiangyang@Desmonds-MacBook-Pro.local"
] | desmondlewjiangyang@Desmonds-MacBook-Pro.local |
8b5be937cca8013a9b31d297a229838548152954 | ed45a300f2ec73f3388637c9357d7610f01abdf2 | /colors.py | f410a60b9f4282c8f474fa7fec3ed214a95e2f7f | [] | no_license | JoaoV111/Controle-de-Estoque | 695920408a2b433348add2ab81c233d5b833942b | 1f7c01f70012ec8dfb4b96ef09246ec00dbd5a36 | refs/heads/master | 2020-06-23T03:16:03.941191 | 2019-07-30T00:34:35 | 2019-07-30T00:34:35 | 198,444,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | """Definição de cores Python Shell"""
# normal
black = '\033[0;30m'
red = '\033[0;31m'
green = '\033[0;32m'
yellow = '\033[0;33m'
blue = '\033[0;34m'
purple = '\033[0;35m'
cyan = '\033[0;36m'
white = '\033[0;37m'
# bold
B_black = '\033[1;30m'
B_red = '\033[1;31m'
B_green = '\033[1;32m'
B_yellow = '\033[1;33m'
B_blue... | [
"noreply@github.com"
] | JoaoV111.noreply@github.com |
fb6dd59f3cebe40553afb56f81bc9da1282220c8 | 4dbdc81e23ec26e57e1e34dea09cd9d002a89a66 | /Python_Advanced_Grammar/multithreading/ex09.py | 630effdc866435d2bf6f4afaac5a01f153d077bf | [] | no_license | yurika-jim0401/PythonWorkSpace | 693e8733678e653054e12ca1107964a623a6f1be | 94e34fbc3b5719b804dbd522c5456c252912b6c1 | refs/heads/master | 2020-03-28T11:47:01.948047 | 2018-10-18T05:18:11 | 2018-10-18T05:18:13 | 148,246,463 | 0 | 2 | null | 2018-09-11T02:33:40 | 2018-09-11T02:08:05 | null | UTF-8 | Python | false | false | 1,106 | py | import threading
from time import sleep, ctime
loop = [4, 2]
class ThreadFunc:
def __init__(self, name):
self.name = name
def loop(self, nloop, nsec):
"""
:param nloop: loop函数的名称
:param nsec: 系统休眠时间
:return:
"""
print("start loop{0} at:{1}".format(nlo... | [
"jimjx@icloud.com"
] | jimjx@icloud.com |
f6f53a430a50bf9fc57c4e741f19ce235003247b | 7e9213e534935afb9b76c9a009880c2cae51609e | /hotel/api/apiviews.py | 84482650428a1c30a88bfe729342ac15d9a26d20 | [] | no_license | Reine222/Test1 | 12b90a0b4b8a8f4048c554384d2ba565d9cd51d9 | 2417e7432624666806e185a6b63728d17ccea283 | refs/heads/master | 2020-09-28T18:54:49.099354 | 2019-12-16T11:54:54 | 2019-12-16T11:54:54 | 226,839,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from rest_framework import viewsets
from hotelerie.models import *
from .serializers import Type_piecesSerializer, CaracteristiqueSerializer, EvenementSerializer
class Type_piecesViewSet(viewsets.ModelViewSet):
queryset = Type_pieces.objects.all()
serializer_class = Type_piecesSerializer
cla... | [
"guelanin.koulai@uvci.edu.ci"
] | guelanin.koulai@uvci.edu.ci |
07561bae75207404fb32a27882dec846aeff0976 | dce883d4d1e624c538f0eed4e4eab0b73c48f3fc | /scripts/find_interface_bw.py | 029576b75c3c52e1a66eb597e2bb08f64caf8677 | [] | no_license | anc15791/P4 | 780bf0a5aefbfcf4880670c1670fec41f4af2118 | 5c01fca8bcbc2b24768152dc20e68c201e109c05 | refs/heads/master | 2021-03-27T09:46:34.507798 | 2018-04-12T09:34:37 | 2018-04-12T09:34:37 | 110,637,576 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import socket
import sys
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect the socket to the port where the server is listening
server_address = (sys.argv[1], 9091)
#print >>sys.stderr, 'connecting to %s port %s' % server_address
sock.connect(server_address)
try:... | [
"anc15791@gmail.com"
] | anc15791@gmail.com |
0325c6e7ce452b9e12e08a0d24cf35595100a8fd | 2eac11b023c46739ce8eb90047a4972a76eb6759 | /chapter06-smart_attendance_system/train_model.py | 512279351f69d591913cea42572773dde12f7743 | [] | no_license | alfiyansyah776/Proyek_Manpro | 0480c433a0f6437ad03fa223bfa6c6a984bf87f5 | a50f8e18050bd7524db6d7abcbcbb912061a57d4 | refs/heads/master | 2022-06-10T20:03:14.688939 | 2020-05-03T21:12:51 | 2020-05-03T21:12:51 | 261,019,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py |
# python train_model.py --conf config/config.json
from package_buatan.utils import Conf
from sklearn.preprocessing import LabelEncoder
from sklearn.svm import SVC
import argparse
import pickle
ap = argparse.ArgumentParser()
ap.add_argument("-c", "--conf", required=True,
help="Path to the input configuration file")... | [
"muhammad.alfiyansyah@ui.ac.id"
] | muhammad.alfiyansyah@ui.ac.id |
eae950b05716a7b349cbcf7266a80bbe2c7b1721 | 9549fd513a30ec466927cb72cb7e5285c59d0f99 | /aliments/management/commands/cron.py | 6460640b438ed785450fbf9875c1fcf03702cd44 | [] | no_license | Jvsdsilva/pbeurreV2 | afa7fe671ebf7732ca26718584ad99981e3500d5 | b482bd51b67312d8d0e00f658978c482c57d28a7 | refs/heads/master | 2022-12-31T22:14:44.698569 | 2020-03-23T08:13:43 | 2020-03-23T08:13:43 | 227,157,083 | 0 | 0 | null | 2022-11-22T05:22:48 | 2019-12-10T15:42:35 | CSS | UTF-8 | Python | false | false | 1,052 | py | from django.core.management.base import BaseCommand, CommandError
from aliments import dbInsert
from aliments.models import Category
from aliments.models import Store
from aliments.models import Products
import logging
class Command(BaseCommand):
help = 'Closes the specified cron tache'
def handle(self, *ar... | [
"mfjotaa@hotmail.com"
] | mfjotaa@hotmail.com |
d109b529d875f97870252f974d13683137df1f64 | 3566b98a9c87c123fc0809ef16baaabd9ce2bf85 | /traffic_lights/training/pipeline.py | 0ff61e78daa2d342b5ba58e5fc3e3083413130e7 | [
"MIT"
] | permissive | bochaozhan/traffic_light_recognition | 9de549c98702c79fc287809adb3b87b809bee6a4 | 497efe7fe678b88db5331ba446fc45c240276e3f | refs/heads/master | 2023-08-06T08:16:32.450402 | 2020-05-15T19:38:43 | 2020-05-15T19:38:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,014 | py | import torch
import numpy as np
from time import perf_counter
from ax.service.managed_loop import optimize
from traffic_lights.data.constants import bad_images, CLASS_LABEL_MAP
from traffic_lights.data.dataset import LISADataset
from traffic_lights.data.transforms import get_transform
from traffic_lights.data.loading ... | [
"aidan.dunlop@sky.uk"
] | aidan.dunlop@sky.uk |
99bd2657edfc1401b319ecdb8816d01e2584d797 | d72dc8f6c44bd6723b080bab853536652054ea13 | /cryptocoinTracker/consumers.py | 0b5b2f1dd02b5a2dbe64aa66d5bbb658cdb5616f | [] | no_license | BerkAcikel45/coinTracker | 416bb78061c1266d52de44ef8ebb07aaaafa573a | ab8881cd1210c8ffe8f9dcd250353c028ca29cf7 | refs/heads/master | 2022-12-27T08:28:53.241456 | 2020-09-26T20:49:58 | 2020-09-26T20:49:58 | 297,769,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # chat/consumers.py
from asgiref.sync import async_to_sync
from channels.generic.websocket import WebsocketConsumer
import json
from django.core.cache import cache
class TickerConsumer(WebsocketConsumer):
def connect(self):
cryptocoin = self.scope['url_route']['kwargs']['cryptocoin']
currency = ... | [
"22922136+BerkAcikel45@users.noreply.github.com"
] | 22922136+BerkAcikel45@users.noreply.github.com |
f2fdfdc54431e18f735ad4cc42f4cb1e2a0664e5 | b0ad93cb38f91134025c72e1ea8b57b1239dcbd0 | /eventsourcing/domain/model/entity.py | 14d04bd4d404f6a3dbcba512360f1b62a995579c | [
"BSD-3-Clause"
] | permissive | aspineon/eventsourcing | 3b09d4bed2f3417b1b564ddeff0a0353b65a4e8e | c99bf5a4785c5858d8d2915496af0503568388ef | refs/heads/master | 2020-06-10T23:38:17.133140 | 2019-06-21T13:17:56 | 2019-06-21T13:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,463 | py | """
The entity module provides base classes for domain entities.
"""
from abc import abstractmethod
from uuid import uuid4
from eventsourcing.domain.model.events import AttributeChanged, Created, Discarded, DomainEvent, EventWithHash, \
EventWithOriginatorID, EventWithOriginatorVersion, EventWithTimestamp, GENESIS... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
54798a7b31b40e96119689833b3a75b4dd2022cc | dfb263f8906f21a8feaf2938f28fcd89961fdfaf | /Lection_6_Products_Catalog/demo/sales.py | a22b98c66e49584333545278ed900314604d088d | [] | no_license | KaPrimov/Python-Course | ddf832fe02b04443f321c8da708565efe3d1c2b9 | 4903b43d0d3c207c9f66e4d17176b92f320943a5 | refs/heads/master | 2021-01-13T12:34:52.080482 | 2016-11-01T21:44:29 | 2016-11-01T21:44:29 | 72,579,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | import csv
from pprint import pprint
from iso8601 import iso8601
COLUMN_ITEM_ID = 0
COLUMN_COUNTRY = 1
COLUMN_CITY = 2
COLUMN_TS = 3
COLUMN_PRICE = 4
KEY_ITEM_ID = 'item_id'
KEY_COUNTRY = 'country'
KEY_CITY = 'city'
KEY_TS_ONLY_HOURS = 'ts_only_hours'
KEY_TS = 'ts'
KEY_PRICE = 'price'
def load_sales(filename: str) ... | [
"k.primov92@gmail.com"
] | k.primov92@gmail.com |
d2bf16e740117fe964f40fae06dab9517b3e2a76 | 6ce26d384adf084bc12526b8898cff6ebcf8bf58 | /neural_sp/trainers/lr_scheduler.py | 88e8c30147b088f88b4ff2184c87187abdaa6076 | [] | no_license | alan101-tech/neural_sp | 7b92ba1ce83ef856b65ccdeb1c0d55bbe37f2501 | 64df102e1ac260ffef90ee4cde7346d04f60c6ec | refs/heads/master | 2022-09-20T05:25:05.110337 | 2020-05-22T15:18:03 | 2020-05-22T15:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,940 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Learning rate scheduler."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from glob impor... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
e293518b7df180b26a9fc4a250083c833c52f9e7 | 06dc0427d9f34753abd0d1bf1bff68aa1132ca31 | /etl.py | fe9d74b3e70a5f49e88496701f9031bd0ec60160 | [] | no_license | phillip-coulson/udacity-dend-1-postgres-data-modelling | 8008729d30314179b99897b79b728d66e81e69d3 | 73f81bd498d1b7c895bc3edd1067ff659d3317bd | refs/heads/master | 2023-02-21T06:33:40.605598 | 2021-01-22T17:53:25 | 2021-01-22T17:53:25 | 332,021,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,769 | py | import os
import glob
import psycopg2
import pandas as pd
from sql_queries import *
import datetime
def process_song_file(cur, filepath):
"""
Read song file and insert data into song and artist tables
Arguments:
cur: the cursor object.
filepath: file path for song data
"""
... | [
"phillip-coulson@hotmail.com"
] | phillip-coulson@hotmail.com |
cd6dbf067c5f13e69d0bf167575b643f7474ca34 | 8b7778d3c65f3688105e43718152da2c734ffa26 | /1.Travel_GUI/lib/B3_ChangePassword_Action.py | 4b149092b8beb2d7d5c234f2d0663a54bed36714 | [] | no_license | zzworkaccount/OpenSourceLibrary | ab49b3f431c0474723dfad966ca09e29b07527eb | 0f99f881eb8a1f4ddebbc5e7676289d01e6ffe19 | refs/heads/main | 2023-01-29T05:02:56.341004 | 2020-12-03T12:05:59 | 2020-12-03T12:05:59 | 315,920,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,899 | py | import time
from selenium.webdriver import ActionChains
from tools.service import Service
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
class CP_Action:
def __init__(self):
self.driv... | [
"1434895836@qq.com"
] | 1434895836@qq.com |
017574b2a803df1bdf13db5bfd41ee876917a4e8 | cab4a008105ae1a4d65cacc0a70ad60fd762af9a | /csv&pandas/1.first_script.py | 905dbfa376182fcc187cc96b55ad85f93c7ee5e6 | [] | no_license | Pikwish/data_analysis | ee322e5d6a2911649248ffa037dff1cf70fc8abc | 459b86e62edf876c421b0a9a6e351f99b0cbc958 | refs/heads/master | 2020-03-27T11:12:24.037857 | 2018-08-28T15:56:25 | 2018-08-28T15:56:25 | 146,472,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | #/usr/bin/env python3
from math import exp,log,sqrt
from datetime import datetime,date,time,timedelta
#注:第2行为引入三个数学函数:exp,log,sqrt
print("Output #1:I'm excited to learn Python.")
#例子1:方法format()
x=2
y=6
z=x+y
a=y-x
print("Three plus six equals {0:d}." .format(z))
print("Six reduce three equals {1:d}.".format(x,y,a)... | [
"pikwishzhong@yahoo.com"
] | pikwishzhong@yahoo.com |
1d39a188a410f0a4b4159fe659c657dc2f80274e | 50b4bdb56efa25e17e93ac87149c6028fb92843f | /SpaceInvaders/GoodSpaceInvaders.py | 977be7992846d13d71fc3014aaaa4e3871187484 | [] | no_license | jpcollin62/PyGameStuff | 57f9cc6ee2302097362e88a6944ff73e41dc46bb | 86c96dc0e883f9cc61d9b17b2c25d615603fc9ba | refs/heads/master | 2020-03-19T03:26:36.867293 | 2018-06-18T15:52:12 | 2018-06-18T15:52:12 | 135,728,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,597 | py | import pygame, os, time, random, PlayerObject, EnemyObject, ItemObject, ProjectileObject, background, threading
def outputDirect():
''' Outputs the click space start line '''
screen.blit(directions, (200,200))
def loop_play():
is_playing = True
start = True
pygame.mixer.music.load("PaydayMusic.mp3"... | [
"39833802+jpcollin62@users.noreply.github.com"
] | 39833802+jpcollin62@users.noreply.github.com |
6a51b94b468f94c9f3ae7ed0ca6677cb08589a84 | fe79298625a9c29594e7e7e6cc7045e69df4e0f1 | /osa02-03_tyyppimuunnos/tmc/utils.py | e28a81ff5a32f42ad76b4c528d362a6e32da20e1 | [] | no_license | fossabot/hellu-python-ohjelmointi | a060b4340f9e2bf262b3f91cec106fcc75d9b243 | ee90849cda9ad301092830fdd8436de6ae6e4d5e | refs/heads/master | 2023-02-01T10:55:59.336971 | 2020-12-16T10:36:05 | 2020-12-16T10:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | import importlib
import sys
def load_module(pkg, lang='en'):
module_not_found = '{0} does not exist!'.format(pkg)
other_exception = 'Running exercise {0} failed. Please make sure that you can run your code.'.format(pkg)
exit_called = 'Make sure your program does not exit with an exit() command.'
if la... | [
"tony.lam@iki.fi"
] | tony.lam@iki.fi |
46cbed2b3cd631f95cfd6a4e539d3262a936d8ed | 8fa21e954527d79ae53e805a438f14e0a9905306 | /executions/04_30_00_12_47/src/src/main.py | 75689bf89a3ea3d8c193daaf7bb2e23df78ff654 | [] | no_license | iperezx/smoke-detection | 47f47746f4fe0a829dc051bda8c71f9fd765bff6 | 33e72eea1d5f4a8ba062108e4bdb973e26a50ab7 | refs/heads/master | 2023-04-15T01:50:18.577130 | 2021-04-30T00:13:55 | 2021-04-30T00:13:55 | 362,939,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | import numpy as np
import inference,hpwren
import tflite_runtime.interpreter as tflite
import time,datetime,os,sys,subprocess
from distutils.util import strtobool
import argparse,json
numWorkingSites = 30
totalCameraTypes = 1
mainDescription = 'Run smoke detection plugin for a specified HPWREN camera.'
parser = argpa... | [
"bot@mint.isi.edu"
] | bot@mint.isi.edu |
650e94ce3ee44c8f72743d1eeadd3d050257be54 | 9d8635d4c95cbd081b4203e80d541000f6022736 | /project/project/settings.py | 48dbd4a5a2c56b0cce441123976375a97b4645a0 | [] | no_license | daizijian123/project | 46c31944714d8a583b9514cda45406fc929296ea | 999c6c5c24b0ffb6f6c06d2e8b516622e796bd7e | refs/heads/master | 2022-04-18T12:21:19.339737 | 2020-04-22T12:54:46 | 2020-04-22T12:54:46 | 257,262,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"1049384233@qq.com"
] | 1049384233@qq.com |
94a8088101a88a6d8ef8a9ecdb239f3181ff3709 | f0c8d65b013a12810ac4a1f9151dee41223e0f3f | /code/11/generators/downloads.py | 3b3cf35f0d3e125dd4528c21cbb0cd80cbefdb2e | [] | no_license | fishhead108/100daysOfCodeChallange | 51eeb6e1608c5a5f97445c2a3cf30533d6ee64bb | 11e4962e1b3f920ff866786885f1c50c42430599 | refs/heads/master | 2021-01-18T23:40:06.939642 | 2017-09-10T20:43:21 | 2017-09-10T20:43:21 | 87,123,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # downloads.py
#
# Find out how many downloads of a specific request
from linesdir import *
from apachelog import *
lines = lines_from_dir("access-log*", "www")
log = apache_log(lines)
request = 'ply/ply-2.3.tar.gz'
total = sum(1 for r in log if r['request'] == '/ply/ply-2.3.tar.gz')
print("Total", total)
| [
"2210605@gmail.com"
] | 2210605@gmail.com |
2397480c8d3c07b38f142f367a81998f6f693196 | 41a62362c037497835cfed9a5bc5ecb61e197e23 | /Feature Selection and Pre-Processing/FeaturesProcessing.py | ae81307ec3e99d448db75a6bf6a4733289df5211 | [] | no_license | godwinrthomas/SentimentAnalysis | f84d8909069df46b6e14487ea43c39be34b1a6aa | 5632d4c9f49b7bc126a60f44bac90d2bb5df6145 | refs/heads/master | 2020-06-06T17:44:58.805581 | 2019-07-03T16:53:25 | 2019-07-03T16:53:25 | 192,810,445 | 0 | 0 | null | 2019-07-03T16:53:26 | 2019-06-19T22:05:57 | Python | UTF-8 | Python | false | false | 4,729 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 24 22:22:48 2019
@author: Mariam Abbas, Godwin Richard Thomas, Murtuza Mohammed
"""
import pandas as pd
import sys
data = pd.read_csv('twitter_j2018_full_alpha.csv' , quotechar='|')
data = data.dropna()
import ast #library to convert st... | [
"noreply@github.com"
] | godwinrthomas.noreply@github.com |
3aee92c4bcf6fbb51c9618b812f6ae508d02a6e1 | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0064.py | f7ab1317883b652ffe3f93344a458c137a2a9498 | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | '''
LeetCode No.64
Given a m x n grid filled with non-negative numbers,
find a path from top left to bottom right which minimizes
the sum of all numbers along its path.
Note: You can only move either down or right at any point in time.
Input:
[
[1,3,1],
[1,5,1],
[4,2,1]
]
Output: 7
Explanation: Because the pat... | [
"lih627@outlook.com"
] | lih627@outlook.com |
c3abe1553a53fb1eb7703616c4d403e5ccb0db16 | aacf1c8f3f96f7eb24793d3aeff5cdf1ad761488 | /fem/Q4_K.py | c9f5135b2d5c50cc09648d9f1ac17c34a1621856 | [
"MIT"
] | permissive | hotnAny/forte | c9e63612d8a107cc59c8887a1e82f1bbca998502 | 528fedc9d9771041951e4ddb7363f26c390a1d8a | refs/heads/master | 2021-07-20T07:14:55.246351 | 2020-05-15T23:26:41 | 2020-05-15T23:26:41 | 68,116,242 | 32 | 8 | MIT | 2019-02-10T18:07:24 | 2016-09-13T14:29:38 | JavaScript | UTF-8 | Python | false | false | 2,595 | py | """
# =============================================================================
# Write the stiffness matrix of finite element to file. The created file name
# is equal to the string between the underscores of *this* file's name, plus a
# 'K' extension, e.g.,
#
# python ELEM_K.py
#
# gives a file named ELEM.K ... | [
"xiangchen@cmu.edu"
] | xiangchen@cmu.edu |
7acba832535cd1e707df817e25c73f1b748599cc | 8fb3732082afcdee7d369a603768164b9ca76d22 | /scripts/AlphaPose/alphapose/utils/vis_pose_estimation.py | 52f6df2bf7789a0c60ca63c5fda71b5afba3ba44 | [] | no_license | Idelcads/datamining-scripts | bebe22a6c83677515d17605b367da0828331ad52 | ab805f24ad4b9cf8b1fe64f87db57c8771a409be | refs/heads/main | 2023-03-20T08:14:20.630489 | 2021-03-18T17:26:25 | 2021-03-18T17:26:25 | 349,123,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,158 | py | import math
import time, os
import cv2
import numpy as np
import torch
RED = (0, 0, 255)
GREEN = (0, 255, 0)
BLUE = (255, 0, 0)
CYAN = (255, 255, 0)
YELLOW = (0, 255, 255)
ORANGE = (0, 165, 255)
PURPLE = (255, 0, 255)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
DEFAULT_FONT = cv2.FONT_HERSHEY_SIMPLEX
def get_color(i... | [
"noreply@github.com"
] | Idelcads.noreply@github.com |
eed4ddc74613e5f6bc46cfe94723205e6a3b4247 | b9700e02bb93ee3b8729ad97f4bc04a1033bae1b | /Single Number II.py | 0e92c1f35754a434814f3070d330a97046cd9beb | [] | no_license | cotyb/LeetCode-python | 38cff41fd455f844836df568a30dbe86ff010bc8 | 20391c15d3f8e0d9ef1a1c2f927cc0b53f173827 | refs/heads/master | 2020-04-06T21:03:39.493510 | 2017-03-28T15:14:11 | 2017-03-28T15:14:11 | 36,157,313 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | class Solution(object):
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
one, two, three = 0, 0, 0
for num in nums:
two |= one & num
one ^= num
three = one & two
one &= ~three
two &= ~t... | [
"xieleicotyb@gmail.com"
] | xieleicotyb@gmail.com |
24f95f3364dfa0611c1d42270c07c5b672732ff1 | c7bcf0fa0e4e487e7c52ceae4abc9b2e6d54ce6a | /30.py | 07523a1118a773425097919117e58adf7cf77717 | [] | no_license | apoorvaanand1998/project-euler | bd064aa4476f76318d64e18d38f1953e0ea50ff5 | c4a3cc41b2d71a528171f097464cb3721d381972 | refs/heads/master | 2020-07-03T22:44:16.107649 | 2020-04-06T02:26:12 | 2020-04-06T02:26:12 | 202,076,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | def pow_sum(n, e):
res = 0
while (n > 0):
res += (n % 10)**e
n //= 10
return res
ans_list = []
for i in range(2, 360000):
if i == pow_sum(i, 5):
ans_list.append(i)
print(ans_list, sum(ans_list))
##################################################################################... | [
"apoorvaanand.work@gmail.com"
] | apoorvaanand.work@gmail.com |
87392dc52b16d9e5dfff30e03aefd3db62e998a1 | b43c13cbc4cb887a9c9a4918e276f3741bf8e6a9 | /app.py | a15e2203909e3a22fd44926137a64528440c5646 | [] | no_license | rpparede/todoappflask | e53d12c98e3d1a9520e049be6c346806fc1c6d03 | 7541da51e5177c8de0da5d42a9569d75db57a04d | refs/heads/master | 2023-01-28T07:08:19.869399 | 2020-12-10T03:27:31 | 2020-12-10T03:27:31 | 313,181,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | from flask import Flask, render_template, url_for, request, redirect
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
db = SQLAlchemy(app)
class Todo(db.Model):
id = db.Column(db.Integer, primary_key=True)
c... | [
"rpparede@uwaterloo.ca"
] | rpparede@uwaterloo.ca |
d11a0faba106ee5b225c0578d4d798f21c0d1e9d | e3bdb7844f634efd89109079d22cade713c4899d | /test/test_ach_recurring_type.py | e45d46018c7cc059889dbbe76a1d45142fec5256 | [] | no_license | pc-coholic/Python | 5170c27da09b066c353e09539e404961f7ad50b7 | b7251c31339b579f71fb7ee9db05be51e9e43361 | refs/heads/master | 2023-04-19T02:42:02.914726 | 2021-04-26T16:07:37 | 2021-04-26T16:07:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
77afd2e83c518adaa41fb16d0f5f9e953dbeeb8b | 979680a99b7b4a24ba409d491877986c1774459d | /tools/python/generate_STF.py | 3795d6bc5b05a7b3bf40eb0f28ecc6ef624f47c6 | [] | no_license | friezi/diplom | d87972e7bd3fae237eab265b0f3192e50e707af8 | c00cd319682bc161c5ff8ad470c7827002e31174 | refs/heads/master | 2021-01-24T09:32:24.681112 | 2012-04-21T20:43:33 | 2012-04-21T20:43:33 | 69,863,396 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | #! /usr/bin/python
from optparse import OptionParser
import sys
def parsecmdl():
error = False
""" parse commandline """
parser = OptionParser()
parser.add_option('--starttime',action='store',type='int',dest='starttime')
parser.add_option('--timestep',action='store',type='int',dest='times... | [
""
] | |
60ca6d2cc2e83fc545797a784b985fd2bca158cf | 58be9ab3da7170fa6eea7c12a6d59e4960db3c66 | /alumnos/MDOLORES/Jugar.py | e1546cec6ee0c39ab0a44e99e452748d68bbc698 | [] | no_license | CodevEnsenada/actividades | 08d39b9b53d8c10ad17204fa9ac5e313a940a4b3 | 862d6f983b7056957522d28686df1b0a323a9e6f | refs/heads/master | 2022-04-09T03:47:32.373978 | 2020-03-16T20:17:14 | 2020-03-16T20:17:14 | 241,519,981 | 0 | 12 | null | 2020-03-16T20:17:15 | 2020-02-19T03:03:48 | Python | UTF-8 | Python | false | false | 375 | py | ##INICIANDO EL JUEGO
jugador1=[8,5,7,4,8]
jugador2=[9,2,1,7,4]
jugador3=[1,8,6,7,9]
jugador4=[5,1,1,7,3]
mayor=0
comparar=0
puntuacion1=0
puntuacion2=0
puntuacion3=0
puntuacion4=0
ganador=0
jugador1.reverse()
jugador2.reverse()
jugador3.reverse()
jugador4.reverse()
Ronda1=[jugador1.insert(0),jugador2.insert(0),juga... | [
"mgonzalez@codevschool.org"
] | mgonzalez@codevschool.org |
b2ab41b53225828c9f33e17a8f9f14d5236d2e07 | 75de45a4e0ea140e4024d7d3b7fb8e6986f56f21 | /extraction.py | 586064e9dbf4429831f7d82e29d0e09ecb09dc8f | [] | no_license | charlotte-samson/EtudeOrdreBinomesDeMot | 3379e0d8c37451d7d418d6f009d848a6d66b9bc5 | 8fce366256ba675d6d2b45b57795e988fb23a848 | refs/heads/main | 2023-04-12T06:02:37.279518 | 2021-05-02T09:39:48 | 2021-05-02T09:39:48 | 363,614,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,620 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from collections import defaultdict
import bz2
import os
import os.path
import glob
import string
import sys
import argparse
import pickle
from objets import Element
from objets import Binome
#--------------------LECTURE DES ARGUMENTS--------------------
usage_str=u"""... | [
"noreply@github.com"
] | charlotte-samson.noreply@github.com |
dd34390be102eeb66d771685686e6683689bfef0 | 708625b5e963d9fbec0c80be8752e0c4d3b0986c | /docs/_downloads/8c82db84c10318a94cbe213adb618139/tuning_guide.py | d5c882f219b93690c947054579bc115f743f4578 | [
"BSD-3-Clause"
] | permissive | kwonmha/PyTorch-tutorials-kr | 5e7d6b9a77e5a670a558c30cf3bb8a8dc3a794b6 | 5653f2f6ddc9ba674cc58d6fa6acdc1fac4b2275 | refs/heads/master | 2023-08-17T23:10:39.401870 | 2023-08-12T03:34:38 | 2023-08-12T03:34:38 | 284,578,600 | 0 | 0 | BSD-3-Clause | 2020-08-03T01:51:55 | 2020-08-03T01:51:55 | null | UTF-8 | Python | false | false | 29,278 | py | """
Performance Tuning Guide
*************************
**Author**: `Szymon Migacz <https://github.com/szmigacz>`_
Performance Tuning Guide is a set of optimizations and best practices which can
accelerate training and inference of deep learning models in PyTorch. Presented
techniques often can be implemented by changi... | [
"reserve.dev@gmail.com"
] | reserve.dev@gmail.com |
3d0917d3a1ae635aa7196a1ca83ac4f96466c236 | 3af1787ea7f84bcb599e26ab3e9380922cdd0418 | /src/accommodate.py | 615c5ec4bcb81a35a6aaee2348825b5039f3b5a8 | [] | no_license | andrew-arkhipov/OnRamps-Scripting | ccf95c59721586c6101bd8917509789e67b7e1f1 | 9a6907d2645c1758bc92ea9e5dc6522e4d1b6c37 | refs/heads/main | 2023-04-22T12:01:46.330378 | 2021-05-06T19:47:51 | 2021-05-06T19:47:51 | 364,059,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,127 | py | from typing import List, Tuple, Dict
from utils.utils import login, get_students, get_course_type, get_unit_number, get_assignments, get_range
from utils.driver import Driver
from argparse import ArgumentParser
from math import ceil
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.suppor... | [
"andrew-arkhipov@users.noreply.github.com"
] | andrew-arkhipov@users.noreply.github.com |
fb7daf2f3a23e6031dc6ec79b10052b91063f995 | 20936f512ba0e43f9a1581c5e5e006ae48b879e7 | /pavement.py | 0424051c2d8791d35e1c820e528741cf59798dc9 | [
"MIT"
] | permissive | taraspiotr/lowbot | c5152f77ae4f3378d8a40149666659e16dae8a9b | 6167cee5b4cfabb52245751d4e7647223294530c | refs/heads/master | 2021-09-01T12:37:14.304400 | 2017-12-20T14:11:59 | 2017-12-20T14:11:59 | 114,397,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,359 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import subprocess
import sys
import time
# Import parameters from the setup file.
sys.path.append('.')
from setup import (
setup_dict, get_project_files, print_success_message,
print_failure_message, _lint, _test, _test_all,
CODE_DIR... | [
"taras.piotr@gmail.com"
] | taras.piotr@gmail.com |
6336433e0e91305ee6c9c79d16b341bc87663723 | c0eb08a60348ffaa7f444e365a7f0a5da6290e8a | /lesson_3/write_to_csv_file.py | 8d4430bff6aef3fa75985367484ae3da4fa3951c | [] | no_license | Almazzzzz/learn_python | 42cc0693128ccdd9d08f1c41dcb447dd3c314f9f | abb5164af857c1ebc6f3ba2e808a4195523f97c9 | refs/heads/develop | 2020-03-17T01:35:20.435399 | 2018-06-16T10:15:11 | 2018-06-16T10:15:11 | 133,154,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import csv
person = {'name': 'Bob', 'age': 20, 'job': 'gardener', 'take him away!': True}
# Just for example
def read_file(file_name):
with open(file_name, 'r', encoding='utf-8') as f:
fields = ['first_name', 'last_name', 'email', 'gender', 'balance']
reader = csv.DictReader(f, fields, delimiter=... | [
"badrtdinov_a@mail.ru"
] | badrtdinov_a@mail.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.