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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc05449b1b6b8decce88de7a50c4979e35579a3f | 3d0fca9603cd54d0dea24370e48eb6c043ce398f | /1-й курс/Программы с пар/зашифруй.py | 3ada209d60e5b09a4a7b57d2ac09201a34c02588 | [] | no_license | bungabakung/my_homeworks | 4357f272bd47469293b93846c6bcf4d474bc71ec | b1f6aedd41f5d8b24fd2e2abd49443be0e1907c6 | refs/heads/master | 2021-06-24T05:23:32.251831 | 2018-06-14T20:52:09 | 2018-06-14T20:52:09 | 67,619,420 | 0 | 1 | null | 2021-06-01T22:19:27 | 2016-09-07T15:25:18 | HTML | UTF-8 | Python | false | false | 1,647 | py | ss=[]
string=''
latinica='abcdefghijklmnopqrstuvwxyz'
LATINICA='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
kirillica='абвгдеёжзийклмнопрстуфхцчшщъыьэюя'
KIRILLICA='АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ'
s=input('Введите что-нибудь ')
while len(s)!=0:
for i in range(len(s)):
if s[i] in latinica:
for j in range(len(... | [
"lilia.blyumina@gmail.com"
] | lilia.blyumina@gmail.com |
54209078b41164b418129f1145ddb6ba7120dacd | bc243dc880dae80e612df65e04f2ff747412c2d2 | /version_0.1/trainingModel.py | 6e0b5630f11e196eec8538ad0c2a219482c723bb | [] | no_license | francs1/ML-Kaggle-Titanic | 837f7c36d19b3bfe5c4a596f7f7da54d3e485bae | 9596af99b2f476a413573266d0f1e034e21da810 | refs/heads/master | 2020-06-17T23:01:33.430264 | 2019-07-11T01:13:51 | 2019-07-11T01:13:51 | 196,090,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | # trainingModel.py
import sys
import pandas as pd
import numpy as np
from sklearn.linear_model import SGDClassifier
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import StratifiedKFold
from sklearn.base import clone
from sklearn import linear_model
from constantInit import *
impor... | [
"noreply@github.com"
] | francs1.noreply@github.com |
ab5d8fbd62d3448fb69cf6581a66121ca6459a25 | 459929ce79538ec69a6f8c32e608f4e484594d68 | /venv/Lib/site-packages/virtualbox/__about__.py | 600822f21eb32a6edbdfa087453d0b2e1ea10fc2 | [
"Apache-2.0"
] | permissive | yychai97/Kubernetes | ec2ef2a98a4588b7588a56b9d661d63222278d29 | 2955227ce81bc21f329729737b5c528b02492780 | refs/heads/master | 2023-07-02T18:36:41.382362 | 2021-08-13T04:20:27 | 2021-08-13T04:20:27 | 307,412,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | __title__ = "virtualbox"
__author__ = "Michael Dorman"
__author_email__ = "mjdorma+pyvbox@gmail.com"
__maintainer__ = "Seth Michael Larson"
__maintainer_email__ = "sethmichaellarson@gmail.com"
__version__ = "2.1.1"
__license__ = "Apache-2.0"
__url__ = "https://github.com/sethmlarson/virtualbox-python"
| [
"49704239+yychai97@users.noreply.github.com"
] | 49704239+yychai97@users.noreply.github.com |
cf51c0cc7167bbbeda4735d54fbf5b33b8042846 | 857237167c71b398c7f9924ce9a4c0d2ce274728 | /testone.py | 5930a8a9ec66ff9e9d5d7e14fab66a297b048805 | [] | no_license | navaneethknair/WeHealth | 821def00a0bbd6d1f00a95457a4d931265c16a29 | 6be7790f16f204bb02c28b3bead45e752fad70ad | refs/heads/master | 2020-03-30T21:34:27.264398 | 2017-08-13T01:05:02 | 2017-08-13T01:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import socket
if __name__ == '__main__':
address = ('127.0.0.1', 8000)
client = socket.socket(family=socket.AF_INET, type=socket.SOCK_STREAM)
client.connect(address)
client.send('hello-world')
data = client.recv(1024)
print data
client.close() | [
"597445175@qq.com"
] | 597445175@qq.com |
96dbfb206fea6616d529302a4dd2d8b79d04dcdb | 4e8876d7b29cf9fb05849da77553b8a7e3783bdc | /src/plugins/processing/algs/gdal/contour.py | e25947294d997251bea2fcf065aa480f5e025270 | [] | no_license | hydrology-tep/hep-qgis-plugin-lite | 48477f504b6fc1a9a9446c7c7f5666f4b2ccfee7 | 781cbaa1b3e9331de6741dd44a22322048ab176c | refs/heads/master | 2021-03-27T17:01:18.284421 | 2018-06-27T12:09:58 | 2018-06-27T12:09:58 | 70,825,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,908 | py | # -*- coding: utf-8 -*-
"""
***************************************************************************
contour.py
---------------------
Date : September 2013
Copyright : (C) 2013 by Alexander Bruy
Email : alexander bruy at gmail dot com
**********... | [
"joaa@localhost.localdomain"
] | joaa@localhost.localdomain |
0bf78b5a94b1e07dee662b8e341ee34aea435e03 | 54857571461a579bed30cee27871aaa5fe396bcc | /nltk-0.9.7/src/nltk/inference/inference.py | 0b6d64c2a35e50e6cfaa2627aae6c30fe56517a5 | [] | no_license | ahmedBazaz/affective-text-classification | 78375182e800b39e0e309e8b469e273c0d9590f0 | 719e9b26e60863c620662564fb9cfeafc004777f | refs/heads/master | 2021-01-10T14:50:01.100274 | 2009-01-09T03:59:01 | 2009-01-09T03:59:01 | 48,296,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | # Natural Language Toolkit: Interface to Theorem Provers
#
# Author: Dan Garrette <dhgarrette@gmail.com>
# Ewan Klein <ewan@inf.ed.ac.uk>
#
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
from nltk.sem import logic
import api
import tableau
import prover9
import mace
i... | [
"tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883"
] | tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883 |
602d262d87637b80483ed8cf1d334baa5e133929 | 71916e7013d190fb86ab8c666849d3a00cf63484 | /Database/naman.py | 71443a1fe8585e9f6799ddabc132967c88d5e249 | [] | no_license | nrv3098/Projects | e161d892f28970e11403d966c142e3a43e57c2ee | 60662573dcf1429240d1c38225ea46fd84ce584f | refs/heads/master | 2020-04-09T01:52:47.988525 | 2018-12-01T07:44:00 | 2018-12-01T07:44:00 | 159,920,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,349 | py | import tkinter as tk
from tkinter import *
import sqlite3
from tkinter import messagebox
from tkinter import simpledialog
conn = sqlite3.connect('Database.db')
c = conn.cursor()
def create_table(e1,e2,e3,e4,var):
str1=e1.get()
str2=e2.get()
str3=e3.get()
str4=e4.get()
str5=var.get()
#print(st... | [
"nrv3098@gmail.com"
] | nrv3098@gmail.com |
24b7c56a4431a04a5a5bd4b5942dda7c680b3846 | 2de05b2984d04b12713bb805b370009b4d8c8eb0 | /venv/Lib/site-packages/spatialmath/geom3d.py | 91a5a99732ee3ef2832b9b9dd7741491475e153b | [] | no_license | prasun-biswas/robot2link | 5a759fe1750729d3b85b8bae3dd2434031264dc5 | 15a90bc18c61fe964c103dcf8b0a3700ee8aa65f | refs/heads/master | 2023-08-16T14:25:14.207578 | 2021-10-14T13:09:57 | 2021-10-14T13:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,003 | py | # Part of Spatial Math Toolbox for Python
# Copyright (c) 2000 Peter Corke
# MIT Licence, see details in top-level file: LICENCE
import numpy as np
import math
from collections import namedtuple
import matplotlib.pyplot as plt
import spatialmath.base as base
from spatialmath import SE3
from spatialmath.baseposelist im... | [
"Rpblikescodes@gmail.com"
] | Rpblikescodes@gmail.com |
f36f09b4e05bbc16b9f5367879c5ca25aebf7d66 | bd55c7d73a95caed5f47b0031264ec05fd6ff60a | /apps/qa/migrations/0006_coupon_vendor_branch.py | 35b01a8e9fea5a66447f1b448de6613892793c36 | [] | no_license | phonehtetpaing/ebdjango | 3c8610e2d96318aff3b1db89480b2f298ad91b57 | 1b77d7662ec2bce9a6377690082a656c8e46608c | refs/heads/main | 2023-06-26T13:14:55.319687 | 2021-07-21T06:04:58 | 2021-07-21T06:04:58 | 381,564,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 2.0.5 on 2019-03-12 08:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0123_auto_20190312_1736'),
('qa', '0005_auto_20190312_1732'),
]
operations = [
migrations.A... | [
"phonehtetpaing1221@gmail.com"
] | phonehtetpaing1221@gmail.com |
2f05050ea1ccc4477c77e75b7a36881dd9aa9857 | d1b15ac88ac517d4ccf78298bccabfe7b6bd1505 | /combine/jinja/exceptions.py | d211f601eff1050c5f7ac78647152aa2ff51efa1 | [
"MIT"
] | permissive | syllogy/combine | 5a6cdb4bd79ca8f61a7d95895bd92bb8a9583fbe | b24e13a46adea1860a23abb6346bea309d46f35c | refs/heads/master | 2023-08-14T13:51:30.096540 | 2021-10-06T02:28:20 | 2021-10-06T02:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | class MissingVariableError(Exception):
def __init__(self, name):
self.name = name
self.message = f'The required variable "{self.name}" is missing'
super().__init__(self.message)
class ReservedVariableError(Exception):
def __init__(self, name):
self.name = name
self.mess... | [
"dave.gaeddert@gmail.com"
] | dave.gaeddert@gmail.com |
dc4466d8625431c97d761145a1d498accb32cc44 | a232988fe8f247fbd56f7a91748ccfbf73326265 | /thinkful/TBay/DBRelationships.py | 5e21b196bc4d8b1d014133ad73849bdeeb7d4655 | [] | no_license | Vigs16/hello-world | 32236f6258ce42e6d8f5ef5139ecd84090be37bd | 4212e0669944f22d0d3148516b97bf9fec95b72d | refs/heads/master | 2021-01-20T13:03:51.843003 | 2017-05-30T04:52:13 | 2017-05-30T04:52:13 | 90,442,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from sqlalchemy import Column, Integer, String, Date, ForeignKey,create_engine
from sqlalchemy.orm import relationship,sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from datetime import datetime
engine=create_engine('postgresql://ubuntu:thinkful@localhost:5432/tbay')
Session=sessionmaker(bind=en... | [
"vigs16@outlook.com"
] | vigs16@outlook.com |
312338e6323865f7023b9bfdb82286528740a82e | 0081be1a6e5dbe941d1b4cdefd4294f4f0753e38 | /ZYLABS_3/ZYLAB_10.11.py | 4ccf7426aed2a7ed055df7f62255ef14fdbe7396 | [] | no_license | KatherynBusch/CIS-2348--14911 | b5dda8d67183626b81d561abd6734e858884a256 | c0f9b448708660de254ba8ee0baf3c6fa82f3d92 | refs/heads/master | 2023-01-28T13:29:30.303081 | 2020-12-14T06:56:35 | 2020-12-14T06:56:35 | 290,910,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | # Katheryn Busch PSID: 1868948
class FoodItem:
def __init__(self, name="None", fat=0.0, carb=0.0, protein=0.0):
self.name = name
self.fat = fat
self.carb = carb
self.protein = protein
def get_calories(self, servings):
calories = ((self.fat * 9) + (self.carb * 4) +... | [
"noreply@github.com"
] | KatherynBusch.noreply@github.com |
8253f43e416783f00b1ec25c50be53ea186aef46 | 3931a54177d8c4798fa231450b1bde557e27df7a | /catkin_ws/build/Hardware/motor_node/catkin_generated/pkg.develspace.context.pc.py | 0861c9c34d17e69515613ea7b650852d537fc6e6 | [] | no_license | RobotJustina/Azcatl | 458d676711b7109f056a4c8671e6f82086ba7176 | b80bdb4e5bd3f02141b0bb38ccfa7f2907509893 | refs/heads/master | 2020-04-09T14:50:06.011296 | 2019-02-08T00:10:42 | 2019-02-08T00:10:42 | 160,408,580 | 0 | 1 | null | 2019-02-08T00:10:43 | 2018-12-04T19:31:39 | Makefile | UTF-8 | Python | false | false | 368 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "motor_node"
PROJECT_SPACE_DIR = "/hom... | [
"hugin.sanchez@gmail.com"
] | hugin.sanchez@gmail.com |
a38219cf230e02a4b51f77acdf5bb58c8c66cc5d | c2ae65792af1fab2e7843303ef90790819f872e8 | /SampleCodes/Webview/v3/lib/python3.5/copyreg.py | 3ba6ec1ff37b3f84594bbbe694537c660c2574bd | [] | no_license | behappyyoung/PythonSampleCodes | 47c224ca76ce509a03c8b75ef6b4bf7f49ebdd7f | f7640467273fa8ea3c7e443e798737ca5bcea6f9 | refs/heads/master | 2023-03-15T00:53:21.034605 | 2023-02-13T17:12:32 | 2023-02-13T17:12:32 | 26,919,763 | 3 | 3 | null | 2023-03-07T12:45:21 | 2014-11-20T15:57:16 | Python | UTF-8 | Python | false | false | 97 | py | /usr/local/Cellar/python3/3.5.2/Frameworks/Python.framework/Versions/3.5/lib/python3.5/copyreg.py | [
"ypark@stanfordhealthcare.org"
] | ypark@stanfordhealthcare.org |
100f564a4960c5d738f67fda6983c5a2359d5135 | 9366543de077bb66dda6da8ad772abc595d69877 | /player/neural_network/neural_net.py | e6f5c49dea1dcc3ef7ef90da64c739cab9f2ad80 | [] | no_license | joshualee/cs181-finalproject | 057b567a7dd02a6bf3d60eea80dcf0a4c7465244 | 4499e04bc520c8c1fe94169de42221e876b35ad8 | refs/heads/master | 2021-01-25T10:14:12.975113 | 2013-05-06T02:24:23 | 2013-05-06T02:24:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,091 | py | import neural_net_pickle as nnp
import math
class Weight:
def __init__(self, value):
self.value = value
class Node:
"""
Attributes:
----------
inputs : a list of node who are inputs for this node
weights : a list of weight objects, for links with input nodes
fixed_weight : ... | [
"LeeJoshuaK@gmail.com"
] | LeeJoshuaK@gmail.com |
6ef5bd8a575932a3a353cc02c902815a09541620 | dd7c22891de26e4c90c3ba7e71c0dd2b65e83740 | /alogrithm.py | 7d9ab8e3a66a15f2657e10bdd3459a1193d4ea84 | [] | no_license | Leogaogithub/pythonUtils | 572dbdf45bfa18d5b2ad258ab045918a32dc56ce | 464877f9b2a50434587fe0abfdf4b5218368047c | refs/heads/master | 2021-07-03T03:20:10.812998 | 2019-03-31T22:55:18 | 2019-03-31T22:55:18 | 146,221,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py |
x = [1,2,3,4,1,2]
y = [6,5,4,3,2,1]
indexs = []
indexs.append(0)
for i in range(0, len(x)):
pre = indexs[-1]
if x[pre] < x[i] and y[pre] > y[i]:
indexs.append(i)
print('\nx:\n')
for i in indexs:
print str(x[i]), ''
print('\ny:\n')
for i in indexs:
print str(y[i]), '' | [
"longhaogao@gmail.com"
] | longhaogao@gmail.com |
6b3dbbcb6756b64d57391c14e942620926fb347f | 4c60293476c437d3b91eb909e60cf46669d7adc4 | /dataset/DeepFakes/faceswap-master/lib/FaceFilter.py | 0dfc23d6baa5e7e6437d1aae157d06c994a2a72a | [
"MIT"
] | permissive | flynn-chen/faceforensics_benchmark | 5d9726cae414cd5e76fbbcb0e13d9084bb2466a0 | 897e474a12e90954318a5e2fce810cde9a824d99 | refs/heads/master | 2022-12-10T15:22:05.122525 | 2019-12-13T23:29:00 | 2019-12-13T23:29:00 | 227,938,897 | 2 | 0 | NOASSERTION | 2022-12-08T01:50:26 | 2019-12-13T23:30:50 | Python | UTF-8 | Python | false | false | 2,863 | py | # import dlib
# import numpy as np
import face_recognition
# import face_recognition_models
def avg(arr):
return sum(arr)*1.0/len(arr)
class FaceFilter():
def __init__(self, reference_file_paths, nreference_file_paths, threshold = 0.6):
images = list(map(face_recognition.load_image_file, reference_file_... | [
"andreas.roessler@tum.de"
] | andreas.roessler@tum.de |
49658d0045d2a7230bb89dd775406d26d43ad7bc | fffefcbfa7fa08daf740abf49cccb21efbc01eb3 | /src/data_collection/processing.py | a7c9d08f3fc75014c12e12855b2d2969ffdae678 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | GrigalashviliT/spoilerBlocker | 2b4260549ad3d80fbd7a229313228c591222f5a4 | 18a5e9689099d3b631a15ed20cc84a043f324055 | refs/heads/master | 2022-11-25T07:44:15.388691 | 2020-07-25T18:20:04 | 2020-07-25T18:20:04 | 256,992,634 | 6 | 0 | MIT | 2020-07-25T18:20:05 | 2020-04-19T12:23:24 | Python | UTF-8 | Python | false | false | 1,437 | py |
import spacy
import neuralcoref
class dataprocessing:
"""
dataprocessing class is to process film or serial data
"""
def __init__(self):
"""
@logic:
initialization models and etc.
@param:
"""
self.nlp = spa... | [
"noreply@github.com"
] | GrigalashviliT.noreply@github.com |
606e7c9ee0d79351ab7e217de6f5110a63244578 | e0ab809c11cfd4df37c5c4cf9d6fc29abc018796 | /Homework/HW2/HW2_Ryden.py | 5a20546493bb53c3732c4dd2fa97e07531bd50a3 | [] | no_license | RydenButler/PythonCourse2016 | 807283e81c71568bf4930b02e037a463745dcd21 | 888bda9a500f9ea50c9d97fa7cfb3b383e077c46 | refs/heads/master | 2021-01-14T09:20:07.651554 | 2016-08-28T11:41:02 | 2016-08-28T11:41:02 | 64,665,310 | 0 | 0 | null | 2016-08-01T12:34:09 | 2016-08-01T12:34:09 | null | UTF-8 | Python | false | false | 2,265 | py | from bs4 import BeautifulSoup
from django.utils.encoding import smart_str, smart_unicode
from urlparse import *
import urllib2
import random
import time
import os
import re
import csv
address = 'https://petitions.whitehouse.gov/petitions'
#Save_Petitions(address)
def Save_Petitions(website):
with open('HW2_Output.... | [
"ryden.winfield@gmail.com"
] | ryden.winfield@gmail.com |
8ca1f76025a6c70f3e1501bb42a2497806635dcd | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_TransformerDecoderLayer_base.py | a05bd02f5bfde173c39458efb57dde220590c836 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 668 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
0ed4d8ca65b096d70ac92f93671e165389e63b8b | 9f03e4d754b21df4e6681dd65f7f59f09fd4178d | /oneleftfootapi/models/dance_type.py | 6864f8211a60de7ab9b4655c7f8d7c62437b8be3 | [] | no_license | morriscodez/one-left-foot-server | 6ea1ee751bddff7c206ea8e4eefc2ed16fc2ef53 | 1221e87569d1fdd1401829bbe2dcf50d13aa09d3 | refs/heads/main | 2023-06-03T14:50:27.232339 | 2021-06-24T20:26:16 | 2021-06-24T20:26:16 | 375,131,673 | 0 | 0 | null | 2021-06-24T19:53:39 | 2021-06-08T20:07:18 | Python | UTF-8 | Python | false | false | 105 | py | from django.db import models
class DanceType(models.Model):
label = models.CharField(max_length=25) | [
"dylanrobertmorris@gmail.com"
] | dylanrobertmorris@gmail.com |
9e9e5ead1c12e034531e9ee64226900db7b7bbbe | ce33b3cbd5ac044095c6baac2191b23bd8ed5531 | /blog/models.py | 45a134f3ecd1da09b2178000f871d8c4892bcd84 | [] | no_license | Chaitanyate/django3-portfolio | 011e13d4c6d2162c4196395c262c484991c9ba7f | 92235de9b74ad02b2eb32054305652ffea1f16a4 | refs/heads/master | 2023-01-12T06:08:03.679171 | 2020-11-18T17:10:24 | 2020-11-18T17:10:24 | 313,672,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.db import models
class blog(models.Model):
title = models.CharField(max_length=100)
description = models.TextField(max_length=250)
date=models.DateField()
def __str__(self):
return self.title
| [
"Chaitanya.Tejas@gds.ey.com"
] | Chaitanya.Tejas@gds.ey.com |
55731c532edc27437393021d7c5142c7a0582820 | d393841cb0a781cfcf11ad934f2b1a06efbca291 | /factory/tools/analyze_frontends | 174afc21f875bff660a61d97b33ccda0b3037524 | [] | no_license | djw8605/glideinWMS | 50c8d5228a5e5b4a30bd46fa3932ab4caf53446f | 8c562c63dde2884aeed04599998fa6608ecdee4c | refs/heads/master | 2021-01-16T20:54:53.730437 | 2012-05-16T15:45:26 | 2012-05-16T15:45:26 | 1,834,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,466 | #!/usr/bin/env python
# analyze_frontends
# Focuses mostly on Client Info
import os, sys, getopt, re
import datetime
import urllib
STARTUP_DIR=sys.path[0]
sys.path.append(os.path.join(STARTUP_DIR,"../../lib"))
sys.path.append(os.path.join(STARTUP_DIR,"lib"))
import xmlParse, analyze
def list_print(frontend,zero_su... | [
"sfiligoi"
] | sfiligoi | |
8505d4a70065822b96e2bb52f3c8e44ab696d6f6 | f0657bd269d63317aba8bef38c579ed4d57f2d14 | /models/layers/unet_gn_layer.py | d5369cf769eeb864d4aace0bcd6f46e55b91816b | [] | no_license | kehuantiantang/ExFuse | b632a9f6b856fa86487af98e0a442443104a3809 | b8e029e8213ac58689ca63c16f52c85ff6077c62 | refs/heads/master | 2020-05-23T10:57:44.331900 | 2019-05-15T01:49:55 | 2019-05-15T01:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
def weights_init_kaiming(m):
classname = m.__class__.__name__
#print(classname)
if classname.find('Conv') != -1:
nn.init.kaiming_normal_(m.weight.data, a=0, mode='fan_in')
elif classname.find('Linear') != -1:
n... | [
"zsef123@gmail.com"
] | zsef123@gmail.com |
172a86f3c38e5011aa0bf1ac25cc91867d724c2f | 9e5353ba6e50f77a40a765bd494d8bfb990c8922 | /stream_backend/api/serializers.py | d5946df70464fd9e7b8cffcfad2c351823f30c86 | [] | no_license | admiralbolt/stream-stuff | d9e24f1d78ac142416525b9b42cc53ef0bc4712a | 29cfa96f9e8d40c531362aced47ebacadccbe759 | refs/heads/master | 2023-08-05T00:02:17.812991 | 2021-09-23T05:47:16 | 2021-09-23T05:47:16 | 261,022,447 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | import json
from rest_framework import serializers
from api import models
class JsonSerializer(serializers.Field):
"""Custom serializer for json fields.
Internally json fields are represented as a string.
Externally it's json. What the fuck did you expect?
"""
def to_representation(self, val... | [
"aviknecht@gmail.com"
] | aviknecht@gmail.com |
90856229f731ecc7f365cd9bfefd3bb1642d00b2 | 1fed8a3e683ac7762214977a889bc02940d05ef7 | /da1.py | daeccc0967d7a69e3dd0abf40bab8bb43cbab8b0 | [] | no_license | Sjsatishjaiswal/DA2 | 1eeff78bf2abe3a39e41f356ddac3f26eef0e859 | b8a36b877e4e02c526198b1eb8f7c6d8f71c3494 | refs/heads/master | 2022-12-04T22:23:01.363217 | 2020-08-10T11:59:32 | 2020-08-10T11:59:32 | 286,460,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py |
Today we will discuss the Numpy library
import numpy as np
np.__version__
The basic data structure in numpy is an n-dimensional array.
a = np.array([1, 2, 3, 4, 5])
b = np.array([1.1, 2.2, 3.3, 4.4, 5.5])
c = np.array([1.1, 2.2, 3.3, 4.4, 5.5], dtype = 'float32')
d = np.array([1.1, 2.2, 3... | [
"noreply@github.com"
] | Sjsatishjaiswal.noreply@github.com |
3794ad4e6c4c29f51277e6c3db63938934199c94 | 912b3b5321c7e26887af94cf2f97e4892c8c956a | /Day6/1_os模块.py | e6c1d55e65f6ce1f83dbdb50a2a2369a9e7f34ed | [] | no_license | nmap1208/2016-python-oldboy | a3a614694aead518b86bcb75127e1ed2ef94604a | 873820e30aeb834b6a95bae66259506955436097 | refs/heads/master | 2021-05-31T04:43:14.636250 | 2016-05-06T01:24:39 | 2016-05-06T01:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # -*- coding:utf-8 -*-
import os
a = os.popen('ls')
print(type(a))
print(a.read())
b = os.system('ls')
print(b)
c = os.stat('1_os模块.py')
print(c)
print(os.path.isfile('.'))
print(os.path.isdir('.'))
print()
print(os.path.isfile('1_os模块.py'))
print(os.path.isdir('1_os模块.py')) | [
"yangk@ersoft.cn"
] | yangk@ersoft.cn |
69c203aa42e95ec1b2b2ecaa3d7ba0d6c6f3fbef | f15aae2b0039037f6b49c318e8a619ab98575769 | /university_chatbot/models.py | 7cb5cee91ae23b4c0dc8b3c0d5c6d30e37bb7d2d | [] | no_license | bethanw10/university-chatbot | 75d1838d593425b713ecdb9fb9672fb5db6ee646 | b32390b97bac8fc29c4194459d5eecd72ad8e77f | refs/heads/master | 2021-03-16T09:57:13.102375 | 2018-05-15T18:39:26 | 2018-05-15T18:39:26 | 107,578,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | import os
from peewee import *
package_dir = os.path.dirname(os.path.abspath(__file__))
database_path = os.path.join(package_dir, 'data/db.sqlite')
db = SqliteDatabase(database_path)
class BaseModel(Model):
class Meta:
database = db
class Course(BaseModel):
name = CharField(unique=True)
class Mo... | [
"bethanw10@gmail.com"
] | bethanw10@gmail.com |
27b08bf753b3e7b11a571f0fed928273c7e0ca40 | 0826c6b4e96b03b9c5b0ca29ee11519f64c8abd8 | /Assignment-1/klucb.py | b87ebe35ebd4055ea38bdd68f0db8b5dca90c67a | [] | no_license | Suchetaaa/CS747-Assignments | 7d187ccffecabd6aafd950888687a5cdff48deed | 350bbe82dd28d94392d234496db89fc099d7b3e6 | refs/heads/master | 2020-07-15T09:26:30.348621 | 2019-11-08T14:21:49 | 2019-11-08T14:21:49 | 205,532,330 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | import numpy as np
import sys
import numpy.random as random
import os
def KL(p, q):
if p == 1:
return p*np.log(p/q)
elif p == 0:
return (1-p)*np.log((1-p)/(1-q))
else:
return p*np.log(p/q) + (1-p)*np.log((1-p)/(1-q))
def solve_q(rhs, p_a):
if p_a == 1:
return 1
q = np.arange(p_a, 1, 0.01)
lhs = []
... | [
"sucheta317@gmail.com"
] | sucheta317@gmail.com |
5c15afa29895acb8165f67f96d1744092f542d33 | ed269e9a4d9d6bfbb833381b7aef65a23f391fe2 | /比赛/5479. 千位分隔数.py | f95b565d2780cc9f0cda6a36ec21c68410b1d997 | [] | no_license | Comyn-Echo/leeCode | fcff0d4c4c10209a47bd7c3204e3f64565674c91 | 67e9daecb7ffd8f7bcb2f120ad892498b1219327 | refs/heads/master | 2023-04-28T17:35:52.963069 | 2021-05-19T01:52:16 | 2021-05-19T01:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | class Solution(object):
def thousandSeparator(self, n):
"""
:type n: int
:rtype: str
"""
ans =""
res= n % 1000
n = n // 1000
ans = str(res) + ans
if n ==0:
return ans
if len(str(res)) == 2:
ans = "0" + ans
... | [
"2892211452aa@gmail.com"
] | 2892211452aa@gmail.com |
ca02e6bd20b6e7e827873b82f15572b04e8ec3d9 | ccedce69e00c22982170bcdb7f2cdab0d1090f84 | /making_pizzas.py | 841e447635accf49be63c73418a3b38467c87307 | [] | no_license | itry1997/python_work_ol | b52a42d840d50a1e5ac58a2781707a2be3144596 | ea49cf6caeb2b64b104912df83caa5b41ba75896 | refs/heads/master | 2020-03-25T23:05:17.769989 | 2018-08-10T09:18:49 | 2018-08-10T09:18:49 | 144,258,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from pizza2 import *
make_pizza(16,'pepperoni')
make_pizza(12,'mushrooms','green peppers','extra cheese')
| [
"1290475797@qq.com"
] | 1290475797@qq.com |
e01e2b05fabcddca2a5a6ff51953f8e148933344 | 34ddec647d6ad357c1527cf713eaeaee4eb575aa | /2020/24/part1.py | 15437d944874572ab3349f6d824f88d3d20bf217 | [
"Unlicense"
] | permissive | cheshyre/advent-of-code | 98327c564f6b401244778aaf9a16043000b4d85e | 7ecb827745bd59e6ad249707bd976888006f935c | refs/heads/master | 2022-12-21T15:53:38.789228 | 2022-12-20T20:07:28 | 2022-12-20T20:07:28 | 75,426,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import os
import hex_grid
cur_dir = os.path.dirname(os.path.abspath(__file__))
tiles_count = {}
with open(f"{cur_dir}/input") as f:
for line in f:
instrs = hex_grid.parse_instructions(line)
point = (0, 0)
for i in instrs:
point = hex_grid.apply_instruction_to_point(point, i)
... | [
"heinz.matthias.3@gmail.com"
] | heinz.matthias.3@gmail.com |
7bdaf0803d4586e4c0ad47ce15d47ffa9ad0b31b | 2ca063506433cbf29fc80acdc292acb66fa472f0 | /Facial_Expression_Recognition/6_server_demo/static/face_detector_trained/emotion.py | cfc59eacb368f31c0b1e920c15a9c99084bfa484 | [
"Apache-2.0"
] | permissive | zhangdaifu67/Computer_Vision_Project | 97c4c308cce64b3f5b9bc73f97cf84b919df87d2 | f8ee6275c5e5490f2263d890f65931975fb7b29e | refs/heads/master | 2020-08-10T15:26:07.356129 | 2019-10-11T01:45:18 | 2019-10-11T01:45:18 | 214,367,945 | 2 | 0 | Apache-2.0 | 2019-10-11T07:09:02 | 2019-10-11T07:09:00 | null | UTF-8 | Python | false | false | 1,394 | py | from flask import Flask, request
from flask import render_template
import time
from expression_demo import expression_predict # 表情预测项目
system_path = "/home/leong/emotion/"
app = Flask(__name__) # 创建一个 Flask 实例,使用单一模块,应该使用 __name__
@app.route('/')
def hello(imgPath=None):
return render_template('index.html', i... | [
"944830401@qq.com"
] | 944830401@qq.com |
421b4ba13abf2d8f6b23e28835ddc48b36ab8f02 | be213289ec15160d2d29378bde21e4a0debe8eaf | /test.py | 793431fe98a6725a09b759ef0cd9f01a7a76aa30 | [] | no_license | johndpope/SRCNN | b0df3e028021a1d71fd418452a864d6fabc0566f | f31da7c08d78f6a25d4009733c61352938566b23 | refs/heads/master | 2020-04-24T15:04:06.027853 | 2019-02-20T09:15:09 | 2019-02-20T09:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | import torch
from torch import nn
from torch import optim
from torch.utils.data import DataLoader
from torch.autograd import Variable
from torchvision.utils import save_image
from tensorboardX import SummaryWriter
from pathlib import Path
from math import log10
from model import SRCNN
from dataset import DatasetFromF... | [
"uchida301045@sansan.com"
] | uchida301045@sansan.com |
9f96bd3e842b17ffff0232b9c3744b778aa03a07 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_None/trend_MovingAverage/cycle_0/ar_/test_artificial_32_None_MovingAverage_0__20.py | 4d34289521e410c56e4feef0b93dd14485083f72 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 262 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
b9642de93661865bab78a7709c913727dd0be712 | 334fc2f741c1194ec5a0faa76f38155e153cd3bb | /examples/fourFn_test.py | 0fb8c60225634f51518569842c031fc9d130ab2d | [
"MIT"
] | permissive | klahnakoski/mo-parsing | af6a82040f489da2d56ba92173769c19b2f4e716 | f4d2dc8e4ff1b1269f94585530192cb72bb6a732 | refs/heads/master | 2023-08-30T17:00:04.505856 | 2023-08-22T03:10:18 | 2023-08-22T03:10:18 | 241,972,972 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,679 | py | # fourFn.py
#
# Demonstration of the mo_parsing module, implementing a simple 4-function expression parser,
# with support for scientific notation, and symbols for e and pi.
# Extended to add exponentiation and simple built-in functions.
# Extended test cases, simplified pushFirst method.
# Removed unnecessary expr.sup... | [
"kyle@lahnakoski.com"
] | kyle@lahnakoski.com |
53686554e0bf31163f55281131166ba0cd7e3277 | 92a28bcb36194895676b56e3d5e224ddc6c0bb78 | /__init__.py | e89a55c9060e5782d3e74942aa0962c87e68fc8c | [] | no_license | incredibleone/projectt | 1d08d9a22013c609168e8208eedb2d92cc95dbc4 | da00f7ddd31acbbf19e1cece539766da4d703f88 | refs/heads/master | 2023-06-23T23:14:34.893396 | 2021-07-26T17:53:38 | 2021-07-26T17:53:38 | 389,722,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | from . import *
from tradaboost.TrAdaboost.py | [
"anshulsingh52001@gmail.com"
] | anshulsingh52001@gmail.com |
7779863b118dff78c2699620fdef4105a1714c2c | ad2777c974326177b7036f023301c19e7ecbf4e8 | /rolld.py | c25440d5a316afa3b13b57ddfd90b978c8491674 | [] | no_license | lraulin/bin | c67f5f52667a4d63e4ceace8837750e0e5dc2287 | a67026b920fea5d8731c47bad448f977f245a58d | refs/heads/master | 2021-01-22T04:15:08.948736 | 2018-06-21T00:20:10 | 2018-06-21T00:20:10 | 92,446,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | import random
def roll(max):
roll1 = max * random.random()
| [
"leeraulin@gmail.com"
] | leeraulin@gmail.com |
5ff6922415e890ad248793d54a5878ab2061d1a3 | 7f7b64bbc1c8fccb337b3279b24f325da96d2dc4 | /tests/test_user_model.py | 5cb1289e5585d6285630c83a5e689eef62a69a49 | [] | no_license | wenliangsun/Flasky | 7d28cb0c7797062f11f4b1055f943a343e116b0b | 8d43ae322480c7ce47f06d1daaaf7b33581ffde9 | refs/heads/master | 2021-06-16T14:15:05.609286 | 2018-11-22T12:00:18 | 2018-11-22T12:00:18 | 146,570,738 | 0 | 0 | null | 2021-02-02T21:50:21 | 2018-08-29T08:38:17 | Python | UTF-8 | Python | false | false | 1,043 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'swl'
__mtime__ = '8/6/18'
"""
import unittest
from ..app.models import User, Role, AnonymousUser, Permission
class UserModelTestCase(unittest.TestCase):
def test_password_setter(self):
u = User(password='cat')
self.ass... | [
"2572907084@qq.com"
] | 2572907084@qq.com |
315b0aa2d94ec9decb4b1fa17ccb63b59e20b7d7 | cb5bf5526a2e5e33d92367f615e9c0b7ab0c290c | /policies.py | 3240ce91b4edc69d9db45d2dd581ce84979287b0 | [] | no_license | kevinduh/neural_language_model | 6a1a46654664de7b6fb2c3474d6baeeeed72b54c | f785a4b33f27a5e7cbefb6fb281a56c07ba27d27 | refs/heads/master | 2021-01-21T03:14:29.775949 | 2014-08-28T22:11:35 | 2014-08-28T22:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,861 | py | import theano
import theano.tensor as T
import numpy as np
from picklable import Picklable
import pprint
from hessian import hessian_diagonal
class Policy(Picklable):
"""
implements a gradient descent policy for a given parameter
"""
def __init__(self, learning_rate, param):
learning_rate = np.... | [
"dfried@email.arizona.edu"
] | dfried@email.arizona.edu |
320fdd977350ab8995a33cbdc553428c2739212a | c9848ecdf60a12b8aca4f832aeffe7413a7c369b | /collections.Counter()_Sol.py | 0797fad9af76b5dd3ea6d466f0ea723ce3804e44 | [] | no_license | tunghim/HackerRank_Python_Solutions | 10e61402a66a233abb76ef5a7b56b28ae419abd9 | 6cd47a64e1006176e0b131f66a474f440527b01c | refs/heads/master | 2020-06-23T20:27:33.334728 | 2016-12-27T03:37:09 | 2016-12-27T03:37:09 | 74,636,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from collections import Counter
X = int(input())
sizeList = Counter(map(int, input().split()))
N = int(input())
money = 0
for _ in range(N):
size, price = map(int, input().split())
if sizeList[size]:
money += price
sizeList[size] -= 1
print(money) | [
"tunghim@gmail.com"
] | tunghim@gmail.com |
e845a0954b654b82c32c2ec6f0c531f6024d0ec1 | 73156408f17f0fe1b5203694bcb4564b2f105aff | /exercises/ex22.py | ca827e53fad7e87d77fc28609201b9d408f4f78d | [] | no_license | jasonwaters/Learn-Python | 7431d0b943da23fc3ab48aa06a28a721367c5456 | bb6d0aa9cf9b95e12c019d8d06b6c41c9da28342 | refs/heads/master | 2020-05-25T09:33:19.765430 | 2013-02-23T19:08:24 | 2013-02-23T19:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | #!/usr/bin/env python
#http://learnpythonthehardway.org/book/ex22.html
# meh. | [
"waters@attask.com"
] | waters@attask.com |
07cd76beba0fa6e4a8bb8ffbd676f72a58405923 | 8ae0b7faa92ba3bcb7d18274d51753e7512438cb | /lib/github/issue.py | caac788a73897d25812d1f4d6e69277aa8d5f407 | [] | no_license | YumaInaura/api | 073f608b55678fee08ca605e2f263b98e697e6b0 | 3b0831993e70c11b1960aef9f521b33d3073e5f0 | refs/heads/master | 2020-05-23T19:20:58.674855 | 2019-06-18T00:55:04 | 2019-06-18T00:55:04 | 186,910,527 | 0 | 0 | null | 2019-06-18T00:55:06 | 2019-05-15T22:20:44 | Python | UTF-8 | Python | false | false | 473 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests, os, json
owner = os.environ.get('OWNER')
repository = os.environ.get('REPOSITORY')
results = []
round = int(os.environ.get('ROUND')) if os.environ.get('ROUND') else 3
for i in range(0, round):
api_url = 'https://api.github.com/repos/' + owner + '/' ... | [
"yuma.inaura@gmail.com"
] | yuma.inaura@gmail.com |
e4eac2a306fbd0203025d23dd16432556a71ab94 | 0e281f33cc1ff6f8d8fbeb4ad14396a1a0441e86 | /tests/test_inss.py | 8e0495e07bf12739e267e242c48518f55fb17e19 | [] | no_license | rafaelgoncalvesbarreira/net_salary | 3e177c8ff7c8a5f3fb3716103f6588dcc0635659 | 0d7a812b761296659812084dc1261f287765006f | refs/heads/master | 2020-04-05T01:55:18.789055 | 2018-11-06T22:19:45 | 2018-11-06T22:19:45 | 156,456,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | import unittest
import inss
from inss import InssRate
class TestInss(unittest.TestCase):
def setUp(self):
self.inss = inss.InssRate(0,3000,10)
def test_inssInsideLimit(self):
result = self.inss.calculate(2000)
self.assertEqual(result, 200)
def test_inssEdgeLimit(self):
res... | [
"rafaelgoncalvesbarreira@gmail.com"
] | rafaelgoncalvesbarreira@gmail.com |
e78ceb65a33560de313fff47b36551461777b97a | bbb7f48c5c53c6d09bc420bfe9e29d211bc028b0 | /src/main.py | c43ad50e723e76b685dca64803a4d70cbfa874e9 | [] | no_license | Sujan242/Dynamic-Graphs | 8f3d2dd15fb5bf43e846df3ccdcce76851687538 | 4edbd7b41d747e18d526ad9e81333edb9caa85b2 | refs/heads/master | 2022-11-06T21:43:20.663779 | 2020-06-21T04:32:00 | 2020-06-21T04:32:00 | 247,033,679 | 0 | 4 | null | 2020-06-01T06:28:48 | 2020-03-13T09:28:07 | Python | UTF-8 | Python | false | false | 4,064 | py | from connectivity import Connect
# from connectivity_by_dfs import Graph
from connectivity_by_dfs import Graph
from EulerTourTree import EulerTourTree
import random
f=open('graph_input.txt','r')
k = f.readline()
l=k.split()
n=int(l[0])
m=int(l[1])
o=Connect()
g=Graph()
for i in range(n+1):
o.add_vertex(i)
g.add_v... | [
"akasdeeps19@gmail.com"
] | akasdeeps19@gmail.com |
cb25e10541dcf9198b30e71e14743e5665027d02 | a1f5ac2713469bd63d6d05778cd4ec9651d35a86 | /create_StrainFinderInput.py | 88b0b042aec5232234e20127d96880715161a088 | [] | no_license | benjaminhgood/highres_microbiome_timecourse | 00c2c41bb84f85585ed35bab2d38ba0e573253e9 | 6cb7bf99dc96c2a573116604760b2c67e575aa6c | refs/heads/master | 2021-01-20T05:12:42.586510 | 2018-12-14T20:04:12 | 2018-12-14T20:04:12 | 89,760,706 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,695 | py | import tarfile, bz2, cPickle
# MIDAS STuff
import parse_midas_data
import parse_timecourse_data as parse_sample_data
import parse_timecourse_data
import numpy
from numpy.random import shuffle
import stats_utils
import diversity_utils
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-... | [
"bgood@260j-desktop.dyn.berkeley.edu"
] | bgood@260j-desktop.dyn.berkeley.edu |
516663114078ef350830e0ea442b8a2a2d334484 | 9dc6dee6ac0e575014aa6e0fd8cad0b6e56c1512 | /api.py | 3a3c5ff396db5606ada247c7ca525f32da29e94b | [] | no_license | BEYoun/backEnd | 36dd72c1e2bd618e7aa97098f375df30b6004cfa | ee5360e0f2a297a18ffa466db07c142e883121df | refs/heads/main | 2023-01-05T20:48:15.472492 | 2020-10-23T03:09:34 | 2020-10-23T03:09:34 | 306,515,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | from flask import Flask,request
from speechToText.index import speechToText
from flask_cors import CORS
from scipy.io.wavfile import write
import base64
app = Flask(__name__)
CORS(app)
@app.route('/', methods=['GET', 'POST'])
def index():
if request.method == 'POST':
extention =""
data = re... | [
"younesbe@pop-os.localdomain"
] | younesbe@pop-os.localdomain |
718c00a4b5ef47295634ca7326f93aee9b7c71cd | df1556f5b6fd39770b283c9396ba785139979729 | /Sailor/venv/Scripts/pip3.7-script.py | 79b9e6436a5f1ac3439185e33d92ce43b0864f92 | [] | no_license | jay11234/algorithm | bd44fdfb7e08e3225aff2cf1252f8c43d8b209f0 | 7d1adafa2a622835df7dc6e105196db6dbd87d64 | refs/heads/master | 2022-01-07T05:46:46.464237 | 2019-07-22T00:09:41 | 2019-07-22T00:09:41 | 197,166,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!C:\Users\algo\PycharmProjects\Sailor\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[... | [
"dptmdkdlxl1@gmail.com"
] | dptmdkdlxl1@gmail.com |
685c72d8daa0b4eb0c1e3ab5e5c5a6ab6186cfb3 | c422c8fa80f95165b106f0f65ad63faad27ba078 | /hci/PySide/speech-coding-project/uiLoader-and-gluing/fali.pyw | 6068f93c53e70f18f38d97b2a097e5d574eeb719 | [
"Apache-2.0"
] | permissive | rziwr/in-vicinity-python | f26fefb930b033d13b6ed5eb802d6d4ed626aec8 | 32524767af2459e23aad916f75cb0065e40edc66 | refs/heads/master | 2021-01-21T03:30:14.626241 | 2014-11-30T18:00:24 | 2014-11-30T18:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | pyw | # -*- coding: utf-8 -*-
from PySide.QtCore import *
from PySide.QtGui import *
import sys
app = QApplication(sys.argv)
def callback_int(value_as_int):
print 'int value changed:', repr(value_as_int)
def callback_unicode(value_as_unicode):
print 'unicode value changed:', repr(value_as_unicode)
spinbox = QSpi... | [
"igor.a.lugansky@gmail.com"
] | igor.a.lugansky@gmail.com |
d97bbd64cdadcd753f5d3f9854425e04fe873e2f | 0195f64e47ed23ad58c960bb3807961a0f3bee5c | /rep0st/background_job.py | 2a59c1bd82dccec61173e77dd6436dd0890fc645 | [
"MIT"
] | permissive | Vanilla-Chan/rep0st | 42fedb019263d2080e9c64f84f64e281e998f0da | 65cf934b2841b4564940ae2a7f68c6f312dd3a3d | refs/heads/master | 2020-06-21T13:10:52.701269 | 2019-08-01T18:47:51 | 2019-08-01T18:47:51 | 197,454,028 | 0 | 0 | MIT | 2019-07-17T19:58:08 | 2019-07-17T19:58:07 | null | UTF-8 | Python | false | false | 4,354 | py | import datetime
import time
import msgpack
import numpy as np
import schedule
from annoy import AnnoyIndex
from logbook import Logger
import config
from rep0st import api, analyze
from rep0st.database import PostStatus, Feature, FeatureType, PostType
from rep0st.rep0st import get_rep0st
config.load()
log = Logger('b... | [
"mail@renehollander.at"
] | mail@renehollander.at |
00054f224feac895bdeb59caf0cd9aa1a4ec7ba7 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/13102401.py | 51ba130c83268a3466ef39a7a7bdf749d0a89dca | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/13102401.py generated: Fri, 27 Mar 2015 15:48:14
#
# Event Type: 13102401
#
# ASCII decay Descriptor: [B_s0 -> rho+ K-]cc
#
from Configurables import Generation
Generation().EventType = 13102401
Generation().SampleGenerationTool = "SignalRepeatedHadroniza... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
2a95a869e7d772ab128482d441931e4fa0c543aa | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FGzWE8vNyxtTrw3Qg_9.py | 5ad6edc044c49e09b4fc47b751fcc79350dfb72e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py |
def get_nbrs(grid, r, c):
nbrs = [[r+dr, c+dc] for dr, dc in [[-1,0],[0,1],[1,0],[0,-1]]]
return [[nr, nc] for nr, nc in nbrs if 0<=nr<len(grid) and 0<=nc<len(grid[0]) and grid[nr][nc]==1]
def is_region(grid, r, c):
if grid[r][c] != 1: return False
# set all interconnected cells in region to 0
# using back... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1af7478a5ccc39c7e8958468814792161a1bd6df | 70c3cf5f0c58b0074b33f653500604b5f4f7e198 | /rm_scraping/scrape.py | 4de5cfa3e045ca42c9b60e3faf2c82cac2d44c8e | [] | no_license | colinmorris/wiki-controversial-titles | 659a7264c7fe652b696e20414acbd74a4cb1b3f6 | b089c08655527e10624ecd912a0058fd1f150778 | refs/heads/master | 2020-06-03T05:04:07.017575 | 2019-07-27T22:32:34 | 2019-07-27T22:32:34 | 191,450,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | import csv
import os
import mwclient
import argparse
import pandas as pd
from RM import RM
from constants import *
FLUSH_EVERY = 50
LIMIT = 0
NEXT_ID = 0
def scrape_rms_for_title(title, f_fail, debug=0):
global NEXT_ID
pg = wiki.pages[title]
section_ix = 1
while 1:
try:
section = pg.text(section=s... | [
"colin.morris2@gmail.com"
] | colin.morris2@gmail.com |
bf12e2ab5e0fbd7d790933df7ab2e92d03ddf273 | 23d3834e4e6bb6112ac2a83dee655e4b18715ede | /migrations/versions/3041931c8df7_.py | f8b32517053e94a3bd110bff28ad220f5330ea21 | [] | no_license | intuij/Flasky-Blog | fa556da8ea491f19320b0083e9cbac9170939bed | 8e63c9780cc52f42af23b533e077f1a349c8a19f | refs/heads/master | 2020-03-20T03:20:17.127425 | 2018-06-14T06:22:39 | 2018-06-14T06:22:39 | 137,142,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | """empty message
Revision ID: 3041931c8df7
Revises: b4f39920300e
Create Date: 2018-06-12 00:22:02.183782
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3041931c8df7'
down_revision = 'b4f39920300e'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"jiang.weiyi@outlook.com"
] | jiang.weiyi@outlook.com |
f8d41521db5df36c79739acad35a1175915ce5b4 | 21a9947d9060c89d369038c376b7fe75b890a81b | /download.py | 4be9f919bf4f7f8a67fc0678cf44305ef331b24d | [] | no_license | Tanishka1997/Learning_PY | 6705eaed2d6da3bbc37f4e3d3acc33dc5310e332 | b9b0de28d1e0fd44b4774c20d3c7c419025c6b04 | refs/heads/master | 2021-01-13T05:34:45.073251 | 2017-01-29T07:06:24 | 2017-01-29T07:06:24 | 79,948,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | import requests
res = requests.get('https://automatetheboringstuff.com/files/rj.txt')
res.raise_for_status
playfile=open("Romeo and Juliet","wb")
for dt in res.iter_content(100000):
playfile.write(dt)
playfile.close()
| [
"u15co059@coed.svnit.ac.in"
] | u15co059@coed.svnit.ac.in |
e1edf3832bd3800e899a31af38c7c139b2481ae8 | a1811bf48ef2ba360482d8cfea42a01679ffd772 | /SystemCode/proj1Django-master/venv/bin/easy_install-3.7 | e9566d28621ec73ed31056edde2cc3db02ecaaf7 | [] | no_license | ocplease/IRS-PM-2020-11-01-IS02FT-GRP4-SchoolRecommender | 529c9d3bf4ea82413e0f7da5d04ad9a9fe6a4de7 | 2ff8abb12376748f0d5da0a66ff4c77745ec0130 | refs/heads/main | 2023-01-04T19:01:38.286682 | 2020-11-01T03:37:03 | 2020-11-01T03:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | 7 | #!/Users/shuulin/PycharmProjects/ShchoolRecommender/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"linxi@yxinsur.com"
] | linxi@yxinsur.com |
4051fcf132f0a23bff36c6698b99f05df3ffe149 | 392dd3ec9aab9a01eb660f180dad83cb687c09cb | /tests/unit/test_div.py | 6fd9f4908aca61c42605b0f5b9c40d5900b835f0 | [] | no_license | nboumlaik/nb_project_for_pcotte | 7a296a7fcedd32442c382cf5925adcd6b9c233b2 | 0d10503f390ad2a4276caaf0341591b03f75c3bd | refs/heads/master | 2022-12-28T17:54:49.864311 | 2020-10-18T19:53:13 | 2020-10-18T19:53:13 | 305,183,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from complex_nb.complex_nb import ComplexOper as cmpx
def test_mul():
var1 = cmpx(3, -2)
var2 = cmpx(-45, 1)
res1 = var1 / var2
assert res1.preel == -0.0676
assert res1.pimag == 0.0429
| [
"nboumlaik@advestis.com"
] | nboumlaik@advestis.com |
8f24bbdaa6aeaab0528c1a32ec5b61952bee8c16 | fe7e2886e53b70e147474010f892113bfc538d21 | /CMS/Admin/cmsem.py | 85bfbed2a84ff4ca07213a03635d735c3caf24a8 | [] | no_license | BUAA007/CMS | cc1af165911417b860d4719606684b8363349dd7 | ea205cfa04382ba3678dacea8070a416a930be52 | refs/heads/master | 2020-03-21T19:37:36.544482 | 2018-07-08T06:04:30 | 2018-07-08T06:04:30 | 138,960,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | import smtplib
from email.mime.text import MIMEText
mailto_list=['572260394@qq.com'] #收件人(列表)
mail_host="smtp.163.com" #使用的邮箱的smtp服务器地址,这里是163的smtp地址
mail_user="h529987" #用户名
mail_pass="15211009hlz" #密码
mail_postfix="163.com" ... | [
"572260394@qq.com"
] | 572260394@qq.com |
a1eae57e9904cfd83eab09b30879ac329e1f5432 | df085616ab9d61535ba4bc95c17ee75f70d9140b | /scraper/scraper/spiders/a27_ua.py | 438e67416b93eae84fb7e016dde66bd418deb151 | [] | no_license | andrewFisherUa/coax-test | 07a8884e86fd6a1685d3608ad87f5feb38a04f3d | 31b7691191fbdaa7c85dfdebffe074036ddf2324 | refs/heads/master | 2020-09-30T23:41:09.030172 | 2018-11-10T12:48:33 | 2018-11-10T12:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | # -*- coding: utf-8 -*-
import scrapy
import re
class Tile(scrapy.Item):
name = scrapy.Field()
height = scrapy.Field()
width = scrapy.Field()
class A27UaSpider(scrapy.Spider):
name = 'a27_ua'
allowed_domains = ['27.ua']
start_urls = ['https://27.ua/ua/shop/keramicheskaya-plitka-i-keramograni... | [
"rryabec@gmail.com"
] | rryabec@gmail.com |
d6cbdb0585782c2794ba7450f08232c03959e33d | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/alan-hicks/django-dmarc/dmarc/views.py | 9a3cac700e01af8df8f7ac8922d8369c5b52f135 | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 1,280 | py | #----------------------------------------------------------------------
# Copyright (c) 2015, Persistent Objects Ltd http://p-o.co.uk/
#
# License: BSD
#----------------------------------------------------------------------
"""
DMARC views
http://dmarc.org/resources/specification/
"""
from django.contrib.admin.views.de... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
6abab70ba9053fec823a14d7f7ce505943a9a753 | 085f29c31fa171d0e772bded090141a45c32a099 | /WL/Lattices/latticeConstructor.py | 7d5e23b34d455c846b67bbbe43fff5f49350ef70 | [] | no_license | JouziP/WL | 764466ae169333ef75a57f599ac9c4295d925bd3 | 13698718b5be0b43be150b6bb7ca6ccae228d9df | refs/heads/master | 2021-04-06T02:27:01.703767 | 2018-03-23T19:56:00 | 2018-03-23T19:56:00 | 125,282,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import numpy as np
#from numpy import linalg as lg
################
from WL.BasicFunctions.cleanNeighbors import cleanNeighbors
from latticeLinkRemover import linkRemover
from rankNeighbs import getUpToRankNeighbs
def getFirstneighbors(neighb_table):
pass
def ... | [
"p.jouzdani@knights.ucf.edu"
] | p.jouzdani@knights.ucf.edu |
78a84cfe9643483d2d8675e2fdb4694a62bf1674 | 6ffb674d9575e265afd0e5424bb69f1ad7e985e1 | /api-test/app.py | e76159e14b93f4bc293b40fb4b330f1cf3b30972 | [] | no_license | n3ih7/Forest-Wildland-Fire-Prediction | 6c511945779d324c2f7f93aee8373dc9d391c9e3 | 3cd9480372a492b6315059dddad1c9ed7f3d073f | refs/heads/master | 2023-01-25T00:39:12.207796 | 2020-11-20T13:13:33 | 2020-11-20T13:13:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | #!flask/bin/python
from flask import Flask, jsonify
app = Flask(__name__)
tasks = [
{
'id': 1,
'title': u'Buy groceries',
'description': u'Milk, Cheese, Pizza, Fruit, Tylenol',
'done': False
},
{
'id': 2,
'title': u'Learn Python',
'description': u'N... | [
"nono@Nonos-Mac-mini.local"
] | nono@Nonos-Mac-mini.local |
7e618e38824b5016cc3f2a51fcaa867cf87c2493 | a6f7b9c9cdfbc44af3c1c332abc94450cbd0e61b | /binpack/apps.py | cfdc666405675fd847c0dec63cbed9680510946a | [] | no_license | igorpejic/visapi | fe2e03a22d2e55e9fe7b31a2b21f098a83743c4d | 29564eb69efb691f7c27e45a4265dc803efcac8b | refs/heads/master | 2022-12-11T09:21:21.459796 | 2020-12-18T05:48:57 | 2020-12-18T05:48:57 | 224,496,779 | 9 | 1 | null | 2022-12-08T04:22:42 | 2019-11-27T18:51:07 | Jupyter Notebook | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class BinpackConfig(AppConfig):
name = 'binpack'
| [
"igor.pejic@dr.com"
] | igor.pejic@dr.com |
4361aff03bd68cad0b825bfa8375bdfe5f9ed063 | 0faac0c32c47715b7b6c3c96264a0cc4cbe9bfca | /Hello/test/Step04_list.py | 710244fe5ed64a7a350d1eb0ff02ee77a7c96331 | [] | no_license | hyunhee7/python_work | 339a61c2361a8b37bd7c2c04b7ae5b92c63fb5b2 | 31adb3105fcad6254327f3c383d905b7592cd4af | refs/heads/master | 2021-01-15T13:29:25.231833 | 2017-08-22T09:38:11 | 2017-08-22T09:38:11 | 99,674,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | #-*- coding: utf-8 -*-
'''
- list type
1. 순서가 있다
2. 여러 type 의 데이터를 저장할 수 있다.
3. 값 변경 가능
'''
a=[1,2,3]
b=[10, True, "abcd"]
c=[10, 20, 30]
d=a
# 같은 참조값 확인!
print "a id:", id(a)
print "d id:", id(d)
print "a[0] :", a[0]
print "a[1] :", a[1]
print "a[2] :", a[2]
family=[u"엄마",u"아빠",u"나"]
print u"가족 구... | [
"hyunhi7@naver.com"
] | hyunhi7@naver.com |
c39b6a0de1a3c4c82a2cda09bdd8a47dac81b9dc | 10f0ca897d117e7cda0b32a9d55351b7b8a2b8bf | /boppy/plugin/uptime.py | b41f72b195c90900160d1a3b4a1d4827e7f0a121 | [
"MIT"
] | permissive | kakakaya/boppy | fa9cb1711ebe37c9fec4495fed0fa59917045c52 | f8b2bfb9aeab72f1512562e40024f87fab276880 | refs/heads/master | 2021-01-19T00:11:46.068879 | 2016-12-15T10:20:42 | 2016-12-15T10:20:42 | 72,923,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: kakakaya, Date: Sun Nov 6 00:47:26 2016
# from pprint import pprint as p
def resp(robot, msg):
robot.dst.respond(msg, robot.uptime())
def register(robot):
robot.listen("uptime", resp)
| [
"kakakaya+git@gmail.com"
] | kakakaya+git@gmail.com |
6e265c83ace2cd7ffbec2d40e565a64a8876679c | f5ae92d3f3e4aeb99927416856008bc92fa3050d | /main.py | ba9c914e91770175437fa41825c7c3d0cd7f62b7 | [] | no_license | vigorweijia/MLHuaweiBigData | a1aef5007aed69604a357893620ae12a3c79617a | 559e1fa01c2d1c1ca1e05a60188b9870060c2327 | refs/heads/master | 2022-10-30T20:46:16.990643 | 2020-06-19T04:19:48 | 2020-06-19T04:19:48 | 273,401,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,484 | py | import pandas as pd
from tqdm import tqdm
import numpy as np
from sklearn.metrics import mean_squared_error,explained_variance_score
from sklearn.model_selection import KFold
from sklearn.ensemble import GradientBoostingRegressor
import lightgbm as lgb
#lightgbm简单理解就是一种很好用的决策树集成算法;
from math import radians, c... | [
"vigorwei@tencent.com"
] | vigorwei@tencent.com |
f17721de52e351a91edb7c7d3919db5f41100e00 | 377eee8d6e25d3ce358639dffc1151a865de3bd7 | /customer/migrations/0011_auto_20201206_0247.py | 8c33f6e35e6c44a13c2bee3c4e1898d3a572a307 | [] | no_license | bushmusi/DBS-WEB-DJANGO | 2f7c88362eed7927b91b9ac93ee01e8cf26de1f9 | 93ef44a0c8ba16404723c9cd85de044a9e9eb092 | refs/heads/master | 2023-06-25T08:21:53.755474 | 2021-07-22T11:09:03 | 2021-07-22T11:09:03 | 312,900,013 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # Generated by Django 3.1.3 on 2020-12-05 23:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0010_venue'),
]
operations = [
migrations.AddField(
model_name='house',
name='lat',
field=mo... | [
"bushera.mestofa@gmail.com"
] | bushera.mestofa@gmail.com |
77392a7107db2ca4ec67311e5605b226d4ad64b0 | 761d331e9ea19f5b3735be46285751beda8033ee | /results/store.py | aede1f87e9d835e970bbd7b4e4bb7d184f792882 | [] | no_license | zhonggx80/python-iperf | 22d45f5924ea4b36e8de2dad2eb0855c63812485 | 49001ba0ac5dc522d112fdd0b02e0b0d07aea705 | refs/heads/master | 2022-04-09T07:37:17.739442 | 2015-04-10T20:44:11 | 2015-04-10T20:44:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | from Parser import *
import os, sys
import csv
if len(sys.argv) != 3:
print "usage: python store.py <source.json> <target.csv>"
sys.exit()
inFile = sys.argv[1]
outFile = sys.argv[2]
data = []
legend = ['Bits Per Second', 'Bytes', 'Interval 1', 'Interval 2', 'Interval 3', 'Interval 4', 'Interval 5', 'Interval ... | [
"adam.r.drescher@gmail.com"
] | adam.r.drescher@gmail.com |
6ec3308ca74aee29ace51e8fb3b39a143120e86f | 29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68 | /tests/api_workflow/test_api_workflow_selection.py | 73147fd03b6bbd08ffaf12ded248a6f812a0cb81 | [
"MIT"
] | permissive | lightly-ai/lightly | 5b655fe283b7cc2ddf1d7f5bd098603fc1cce627 | 5650ee8d4057139acf8aa10c884d5d5cdc2ccb17 | refs/heads/master | 2023-08-17T11:08:00.135920 | 2023-08-16T12:43:02 | 2023-08-16T12:43:02 | 303,705,119 | 2,473 | 229 | MIT | 2023-09-14T14:47:16 | 2020-10-13T13:02:56 | Python | UTF-8 | Python | false | false | 7,897 | py | from typing import List
import pytest
from pytest_mock import MockerFixture
from lightly.active_learning.config.selection_config import SelectionConfig
from lightly.api import ApiWorkflowClient, api_workflow_selection
from lightly.openapi_generated.swagger_client.models import (
JobResultType,
JobState,
J... | [
"noreply@github.com"
] | lightly-ai.noreply@github.com |
f653ad44883019ebd1939a890f0678ec06b403af | a60179c08931f11a5706f50803120be946eec460 | /core/migrations/0007_auto_20201214_1459.py | def00dc6607e3fdc4d87579ba2bf54f548e3d086 | [] | no_license | emilbakov/eshop | 0394cfbd8ee746eff4cdf08db0e44100c1c0169c | b7d9c99b0ba729f39bb5d1ef9d3d56ad8e03cf6d | refs/heads/master | 2023-02-12T09:05:49.134110 | 2021-01-13T16:31:18 | 2021-01-13T16:31:18 | 321,112,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # Generated by Django 2.2.13 on 2020-12-14 12:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0006_item_quantity'),
]
operations = [
migrations.RemoveField(
model_name='item',
name='quantity',
... | [
"eb.bakov@gmail.com"
] | eb.bakov@gmail.com |
e237cb1926d6eec39d8e1a58d2ba4f1c5d85a9d4 | a943bb95d76862a8f9f902acf99c2c38e65305d4 | /codevita2020/cvpq/f.py | 8276bb741b200d6ec888d5846cd253a9f9ea23da | [] | no_license | init-13/codevita | bd742e7007023645063d673adf84825268de6495 | 4c96ab5106ecee12ba251a2d95626328772208b9 | refs/heads/main | 2023-01-21T08:57:36.512163 | 2020-11-29T15:29:12 | 2020-11-29T15:29:12 | 316,981,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | def ifp(s):
for i in range(len(s)//2):
if s[i]!=s[-(i+1)]:
return False
return True
#print(ifp('nayan'))
x=list()
y=list()
s=input()+'#'
#ml=list()
c1=s[0]
for i in range(len(s)):
if s[i]==c1:
x.append(i+1)
#print(x)
for i in x:
c2=s[i]
#print(c... | [
"noreply@github.com"
] | init-13.noreply@github.com |
836e82e88a9493600c42a0ea873c9ff7f293adb0 | c0d7269d96c2d70bc14d1fea8e2d3b0504675d7e | /day7_remove_duplicates.py | 008188d8ca290050c63f1c003fe4ccd6f7d5aafe | [] | no_license | ksamrish/30-day-challenge | b061109acc8cb5d4259e1f55a80f2ebb62ca4431 | 1a3073616ff7d4f2284004a33d1418bff162d6aa | refs/heads/master | 2021-05-20T15:53:53.295912 | 2020-04-13T10:57:09 | 2020-04-13T10:57:09 | 252,355,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | inp = list(input())
l = []
for i in range(len(inp)):
if(l.count(inp[i])<1):
l.append(inp[i])
print(*l,sep='')
//another method::
inp = input()
l = []
l.append(inp[0])
for i in range(len(inp)):
for j in range(i):
if(inp[i]==inp[j]):
break
if(j==i-1):
l.append(in... | [
"noreply@github.com"
] | ksamrish.noreply@github.com |
a9fe9efe456c2cceb50748088e219aef5fb4799f | 0ce91fb1b25ec0c740284e4a9dd2da21cbc6ec2a | /cogs/utils/db.py | 64f87802a6ebf89a90bdaa541334ff2b92fd3a13 | [] | no_license | kkourtis/bowiebot-discord-bot | be4c50162cdf52dfba1f5c90364306e34e61f00e | 2e62586695d384b671ff1ed6da8aaf76946d643b | refs/heads/main | 2023-06-21T16:42:48.064036 | 2021-07-21T22:28:49 | 2021-07-21T22:28:49 | 303,024,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | import asyncio
import config
import asyncpg
async def connect():
return await asyncpg.connect(user=config.DB_USER,
password=config.DB_PASSWORD, database=config.DB,
host=config.DB_HOST)
async def create_pool(db_name):
return await asyn... | [
"noreply@github.com"
] | kkourtis.noreply@github.com |
7cae65bd64fbcb449d3d6c319aa30a205b8fe418 | 681943710088a2b3bae34ae5cf1ad56ab5d1e6d8 | /Python/Tests/MatchGetter.py | 23f6bc1f6b223bc7d141902f2767c5bf060525ee | [] | no_license | lumoura/DotaTwoHighFive | dfe770caef53b371af5211d68fbd0af68d6ccc4a | 9316c6eba746ad6f20b086d81a3f8ff3aba3cd74 | refs/heads/master | 2022-04-01T09:46:07.841526 | 2020-01-18T01:41:18 | 2020-01-18T01:41:18 | 58,897,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,297 | py | import dota2api
import numpy as np
from enumerator import enumerate
# Initialise the API module
api = dota2api.Initialise("2179FDF11489B59187A1AD12B4B1E2C9", raw_mode=True)
total_matches = int(open("total.txt", "r").readline())
how_much_more_str = input()
if how_much_more_str == "":
wanted_matches = total_matches ... | [
"lucasmour4@gmail.com"
] | lucasmour4@gmail.com |
8e3a8f3f6e64298e4915a92b2635127720a39df9 | 144d892b508f441fe2fb46feeff91ee4f8e85a13 | /venv/bin/twistd | 66d2b8c2f7e0d1949d44ee5967e51df5b2eecccd | [] | no_license | Raspunt/WebSocket_test | 490a1a848c7a4355d253b5bae5a4f8083c7242da | 71fb93601d1920dcb3d2b16ea2ed5d39cf3b978a | refs/heads/master | 2023-08-18T01:10:22.909672 | 2021-09-30T05:53:46 | 2021-09-30T05:53:46 | 411,939,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/maxim/JustPython/RealTime_pr/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from twisted.scripts.twistd import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"m_ryabinin@inbox.ru"
] | m_ryabinin@inbox.ru | |
ce9aa44b85bdc8d90fa959bf45fb94eac2f67229 | 76c78356a002bef01e162d8e2ed5592497f27c57 | /imooc/test/test_urllib_request.py | 3e9870fc2c643af0210fb6725f2af88b938ce0cd | [] | no_license | Happy2012/Python | 177b2c6e1854bcae059486b077a43ace95ac50a4 | 7c11ad4a7bb50d260c97b87dbe2536ce526d03e2 | refs/heads/master | 2020-04-13T15:32:17.443228 | 2018-12-27T13:46:20 | 2018-12-27T13:46:20 | 163,294,526 | 0 | 0 | null | 2018-12-27T13:46:21 | 2018-12-27T12:54:03 | Python | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = 'test_urllib_request.py'
__author__ = 'Amanda'
__mtime__ = '2018-12-24 11:58'
__summary__ = '网页下载的三种方法'
"""
import urllib.request
import http.cookiejar
url = "http://www.baidu.com"
print("第一种方法")
response1 = urllib.request.urlopen(url)
print(respon... | [
"38401010+seeaman@users.noreply.github.com"
] | 38401010+seeaman@users.noreply.github.com |
d0851d1752901a65deaef8878707401154b2f416 | 816232db2f21e193612eaa60eda0d5897d31caaf | /Baek/Hyun/1697.py | 89117cb190b8f1eca099d774d0f485dc3bb5878c | [] | no_license | Juyoung4/StudyAlgorithm | a60bfa7657eac57f59200bfa204aff1ad27c79f8 | 4b190e0bfeb268bef4be00ae9bedd9ca8946fbd6 | refs/heads/master | 2023-08-31T04:37:07.422641 | 2021-09-27T08:38:09 | 2021-09-27T08:38:09 | 282,757,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | # 숨바꼭질
from collections import deque
if __name__ == "__main__":
N, K = map(int, input().split())
queue = deque()
queue.append([N, 0])
visitied = [-1]*100001
while queue:
cur, time = queue.popleft()
if cur == K:
print(time)
break
next_time = time+... | [
"47167335+Juyoung4@users.noreply.github.com"
] | 47167335+Juyoung4@users.noreply.github.com |
d8c4f1108dd0b65bc65e560aa0b611fe37d062a0 | 04e7d6915c5a607d4100730f6b55e7feb658d4ab | /src/tests/test_k_primes.py | 5c4823a1f9a306d7eb1c3ac2e5ec2f525fef38a4 | [
"MIT"
] | permissive | AveryPratt/code-katas | c41edd4c159c66cb1bc782b75df1d2a80c76450f | ffd05517b8e825e0741c8cbc7e0b2c5b2a867b01 | refs/heads/master | 2021-01-10T18:07:04.006827 | 2017-03-08T07:47:53 | 2017-03-08T07:47:53 | 76,058,436 | 0 | 0 | null | 2017-03-08T07:47:54 | 2016-12-09T18:00:51 | Python | UTF-8 | Python | false | false | 1,344 | py | """Tests for k-primes kata."""
import pytest
PRIMES = [
[2, 3],
[3, 5],
[5, 7],
[7, 11],
[11, 13]
]
TESTS = [
[2, 0, 100, [4, 6, 9, 10, 14, 15, 21, 22, 25, 26, 33, 34, 35, 38, 39, 46, 49, 51, 55, 57, 58, 62, 65, 69, 74, 77, 82, 85, 86, 87, 91, 93, 94, 95]],
[3, 0, 100, [8, 12, 18, 20, ... | [
"apratt91@gmail.com"
] | apratt91@gmail.com |
036588999b7708789204c355ed1140500e2850fa | 057a69bf18d9b1c36b99e092c2a88b4223fd13f7 | /pythontestingexample/testing/test_employee.py | 1fb512daa4fb835d29f885acd903de25f56a9db5 | [] | no_license | JK696X/PythonTestFile | 18074266fe053bab7dd33a5f4b0fa84fe7d0f7a6 | 42c55853bea6c140ce3000c6048c59ef95a73eec | refs/heads/main | 2023-04-07T17:32:33.104173 | 2021-04-16T20:58:10 | 2021-04-16T20:58:10 | 358,047,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | # Part of standard libary
import unittest
# Use this for testing absolute/relative path
import sys
import os
import requests
# Use this for importing mock with our unit testing
from unittest.mock import patch
# NOT SURE WHY THIS WORKS BUT IT DOES
absfilepath = os.path.abspath(__file__) # absolute path of the module... | [
"jk696x@att.com"
] | jk696x@att.com |
6679f5e96dba34b1e1bb39a7be3d39dfeacb29a6 | 3fb00269f32b627ef42360e16c5538ab7d8756c3 | /venv/lib/python3.6/encodings/iso2022_jp.py | ff14137b3ac365c8edbac7aca0e39ba68773fcea | [] | no_license | ThisIsJorgeLima/DashFinance | 6a58987a1930b61358b607a875ec6ee60f717759 | 6b07353d91a386b63e290f17cffd79b8cbfb643c | refs/heads/master | 2021-10-19T18:03:08.846652 | 2019-02-22T21:21:49 | 2019-02-22T21:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | /Users/sterlingbutters/anaconda3/lib/python3.6/encodings/iso2022_jp.py | [
"sterlingbutters@gmail.com"
] | sterlingbutters@gmail.com |
6133de21acc69badb689577af432bce59a5def07 | 14cef240063145bba81d7ac4bd25ed671585527c | /core/database/crud/bottify_user.py | 4433dceb8bad52c68591d531e46bc649e45080ee | [] | no_license | Kroonjay/Bottify | f139d3cf6753c36b85ec061888a88c9f82dfd715 | c30c9cf924d19d053b0f678eb9d69143398ea83a | refs/heads/main | 2023-07-30T02:10:08.878698 | 2021-09-29T16:30:35 | 2021-09-29T16:30:35 | 411,117,108 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | import logging
from databases import Database
from uuid import UUID
from core.security.password import get_password_hash
from core.models.user import BottifyUserInModel, BottifyUserModel
from core.database.tables.bottify_user import get_bottify_user_table
from core.database.helpers import build_model_from_row
use... | [
"scoutfullner96@gmail.com"
] | scoutfullner96@gmail.com |
b6ccd35c7399ff11fdcb2a5614e2653c1f7c18fa | f3c42fc2480c7abf350a5c9bb785c5990a11a864 | /loader.py | 2d5776494acbd34dfa5be4028a9743e9f9a92733 | [] | no_license | rromildosf/dental_radiograph_augmentation | c40a4503f15bd6ee004a798b1f88e567e627dda5 | 1f49d6439647211460f6a615f45d5d4b4bfb47bc | refs/heads/master | 2020-03-30T13:25:09.716464 | 2018-10-09T18:13:53 | 2018-10-09T18:13:53 | 151,271,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import os
import numpy as np
imgs = []
def get_names( array, ext ):
newarr = []
for i in [i.split('.') for i in array]:
if( i[1].lower() == ext.lower() ):
newarr.append( i[0] )
return newarr
def get_coords( imgs_path, annotations_path, img_ext='JPEG', ann_ext='txt' ):
imgs = get_n... | [
"rromildosf@gmail.com"
] | rromildosf@gmail.com |
19d593479108dded5500550fe92c72827816daa4 | 3a638154ca084dba8733612eac324777073a2a99 | /src/python/pants/backend/awslambda/python/target_types_test.py | d850a8ce0b56d9b7dbf23fd8febef46bc197bea9 | [
"Apache-2.0"
] | permissive | orbital-transfer-survey/pants | e3de6f7f30510bf8e691e4b76ee411ac6a82f047 | 478110e155e00c14119f966a289223d6910e4b02 | refs/heads/master | 2022-12-22T06:45:52.714055 | 2020-10-07T02:36:54 | 2020-10-07T02:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import pytest
from pants.backend.awslambda.python.target_types import PythonAwsLambdaRuntime
from pants.build_graph.address import Address
from pants.engine.target import InvalidFieldExce... | [
"noreply@github.com"
] | orbital-transfer-survey.noreply@github.com |
44db840123ae75c28b1835be712d45ca9bf7511a | 5f645c0549e0287a826b2fb89af8bd74da889dfa | /bj11438_sol.py | b46a4b1699448ad27cac1264dd3336fd7bc47bf3 | [] | no_license | mino-park7/algorithm_study | f250e768af67942b41ebd4ad002581a46317713b | b448563cdb11759e0bd3f320e703a0fe6799dd7b | refs/heads/main | 2023-01-24T05:45:12.224107 | 2020-12-08T04:25:53 | 2020-12-08T04:25:53 | 317,139,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | import sys
from math import log2
from collections import deque
import time
now = time.time()
sys.stdin = open("bj11438.txt", "r")
N=int(sys.stdin.readline())
logN=int(log2(N)+1)
tree=[[] for _ in range(N+1)]#각 노드의 부모노드 저장
for _ in range(N-1):
p,c=map(int,sys.stdin.readline().split())
tree[c].append(p)
tree[... | [
"minho.park2115@gmail.com"
] | minho.park2115@gmail.com |
0ea8adfd5aaa807ca297b5e326a09a94de77fb47 | ab6ea034c31627ae33996495e71274d7befdcd2e | /selfdrive/controls/controlsd.py | 9918ff0bd8e7e7425b852588bc0bc85d48e96a83 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | declarus/open-pilot | 484bade78316395ad83e5ce3af694fdfc9a177f8 | 6f26bbcc90222280ab0f2c41889024eb67fae7d6 | refs/heads/master | 2022-07-08T08:39:13.354359 | 2020-02-06T12:10:22 | 2020-02-06T12:10:22 | 237,997,130 | 0 | 0 | MIT | 2022-06-22T01:00:58 | 2020-02-03T15:27:05 | C | UTF-8 | Python | false | false | 22,821 | py | #!/usr/bin/env python3
import os
import gc
import json
import capnp
import zmq
from cereal import car, log
from common.numpy_fast import clip
from common.realtime import sec_since_boot, set_realtime_priority, Ratekeeper, DT_CTRL
from common.profiler import Profiler
from common.params import Params, put_nonblocking
impo... | [
"avbdeclarus@gmail.com"
] | avbdeclarus@gmail.com |
62e29a0dd4b8581a50a28cf117c82e4fc35a3597 | 55d3f77fa214901b59a1dfd7e66c52369da1d948 | /hubi/models/wiz_inherited_sale_advance_payment_inv.py | fe815ef4d5942621b91c8e7381e74b5abc318d60 | [] | no_license | arsenepoutsi/Projet_HUBI | 22f5fa87579dc801aa8f46f6ce420d67f43398f2 | a614cfae2535dba86442659a9b6baf49215ef2d4 | refs/heads/master | 2020-11-25T08:08:05.122700 | 2019-12-17T08:32:13 | 2019-12-17T08:32:13 | 228,568,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,660 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models, _
from datetime import date, timedelta, datetime
import time
import calendar
from dateutil.relativedelta import relativedelta
class HubiSaleAdvancePaymentInv(models.TransientModel):
_inherit = "sale.advance.payment.inv"
date_invoice = fiel... | [
"arsenepoutsi@gmail.com"
] | arsenepoutsi@gmail.com |
c38bfa420c5312c6d22d880b91c8f4ebc6a9c36c | 7ea394345fe36ef0574ee0eeaa6dca5030c2f80e | /crypto_pals/set1/build_subtable.py | 02d3fc7cfae9c5015e793f3a85cdbebcbcce11fa | [] | no_license | becgabri/CryptoPals | 97c90c47365fcbe57a3a5d9fd7b7b78f2341ed99 | c80f76b65c746e6b1b677fb7ddc91b116bb2c220 | refs/heads/master | 2020-03-26T10:17:33.447193 | 2019-09-06T02:41:08 | 2019-09-06T02:41:08 | 144,790,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | import os
import json
import math
from crypto_pals.set1 import GF28
filename = "AES_sub_bytes.txt"
def create_table():
with open(filename, 'w') as holder:
subst = {}
inverse = {}
for num in range(256):
num = GF28.GF28(num, bypass_modcheck=True)
# works wi... | [
"becgabri@umich.edu"
] | becgabri@umich.edu |
9384bab2ba86503352ed5be8fe965b7eafe59e48 | 9376bcf3c67a67b102f3206f7cf74d025feb464f | /simNe_functions_analyze.py | 78590bc0549417320ae19845767c26e0720b7590 | [] | no_license | rwaples/simNe | 6b6ae2f9429b2c9ffa3605071f4b0a5c60ecb562 | cc09aaae3da04dd9f2cef8edbd9c8f6d223a64c9 | refs/heads/master | 2020-03-24T07:11:26.465346 | 2018-07-27T09:19:17 | 2018-07-27T09:19:17 | 142,555,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,587 | py |
# coding: utf-8
# # Post - Sim Analysis
# In[7]:
#from pyplink import PyPlink
import numpy as np
import pandas as pd
import scipy as sp
import itertools
import scipy.spatial.distance
import matplotlib.pyplot as plt
import seaborn as sns
import collections
import glob
import random
from random import shuffle
import... | [
"ryan.waples@gmail.com"
] | ryan.waples@gmail.com |
03b9bbb19c5ef10a43487d477f47249ab946cb74 | 2f3c21a1c3eee658357514c4c09c3f28a4db955c | /source/miniworldmaker/containers/container.py | 50aea71e3c639912a42be739ec6e551d0c8d8175 | [
"MIT"
] | permissive | zormit/miniworldmaker | 8625552a7c4b3bf2513f189586fc9891f1db1764 | 8003aece905b0cffec9850af3805b03372f3dc97 | refs/heads/master | 2023-03-07T11:36:18.595075 | 2020-04-29T10:06:28 | 2020-04-29T10:06:28 | 259,937,089 | 0 | 0 | MIT | 2020-04-29T13:46:08 | 2020-04-29T13:46:08 | null | UTF-8 | Python | false | false | 3,030 | py | import logging
import pygame
class Container:
"""
Base class for containers
"""
clog = logging.getLogger("Container")
def __init__(self):
self.dirty = 1
self.surface = pygame.Surface((1, 1))
self.background_color = (255, 255, 255)
self.default_size = 100
s... | [
"andreas.siebelqit-teaching.de"
] | andreas.siebelqit-teaching.de |
ac3e9ad5cf690b51f7175b1316a4436b568389c7 | 9a72763c1cfaea4b882f39b8b137fff4b3a0c9e7 | /main.py | 5dde28deffb4c62fb35a0764c1d0ec8aca3c20e7 | [
"MIT"
] | permissive | Darkzarich/dzpolltelegrambot | cb26296ec4637de0f30c45cf6923a9d9dac6a366 | caa7a854686e82211dcc526bfab472ab1d500708 | refs/heads/master | 2020-05-25T00:03:41.643009 | 2019-08-22T00:28:33 | 2019-08-22T00:28:33 | 187,527,332 | 0 | 0 | MIT | 2019-08-22T00:28:34 | 2019-05-19T20:57:34 | null | UTF-8 | Python | false | false | 4,867 | py | from telegram.ext import Updater
from telegram.ext import CommandHandler
from telegram.ext import MessageHandler, Filters
from telegram import ReplyKeyboardMarkup
from telegram import ReplyKeyboardRemove
import configparser
import logging
import threading
import json
logging.basicConfig(format='%(asctime)s - %(name... | [
"darkzarichv2@gmail.com"
] | darkzarichv2@gmail.com |
0e58b2eb4476360bd160080cb9a03e7fcad7a6e2 | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/zun-ui/zun_ui/enabled/_2340_admin_container_providervms_panel.py | 4812c633141e50e75d7f5283c994e5efb453fe51 | [
"Apache-2.0"
] | permissive | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 964 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"Mr.Qinlichao@hotmail.com"
] | Mr.Qinlichao@hotmail.com |
0e83bba30b60601ca6e672349167f4444604c75d | 42a7702986793423ce6a0ad301982f5d8677d271 | /assignments/line/draw.py | a4db693dfa1f860acf414f2a68354f687bc203f7 | [] | no_license | kazijamal/computer-graphics | 63936664dde9dfdd0d97c82e1de4ad2a8596c691 | 1eaf8fa746a9115be6eeeda41f8ee3a5d515dbd7 | refs/heads/master | 2022-11-18T21:43:35.450847 | 2020-06-25T22:27:48 | 2020-06-25T22:27:48 | 274,300,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | from display import *
def draw_line( x0, y0, x1, y1, screen, color ):
x = int(x0)
y = int(y0)
a = y1 - y0
b = (x1 - x0) * -1
if b == 0:
if y1 > y0:
while y <= y1:
plot(screen, color, x, y)
y += 1
else:
while y1 <= y:
... | [
"jamalkazi02@gmail.com"
] | jamalkazi02@gmail.com |
20d34b2ce443116beb8f6b4bbc0a2d85826ec258 | 1949e30c64d04f0da4fc483e4cef552c58e0c8ba | /pyrothrottle/reqrate_base.py | a1b9d07836d56cf209722eed26430b2926dfde44 | [
"MIT"
] | permissive | TrendingTechnology/pyrothrottle | d13929479f7d8d80c90843a3e40a10474f035db9 | 89550a97c809ead0cda9d932a5ac87237fcc5032 | refs/heads/main | 2023-06-30T03:03:55.753144 | 2021-08-07T11:52:45 | 2021-08-07T11:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | from typing import Optional, Union, Callable, Any, List
from pyrogram import Client
from .base import Base
from .misc import Event, get_modulename
class ReqrateBase(Base):
def __init__(
self,
interval: Union[float, int, Callable[[int], Union[int, float]]],
amount: Union[int, Callable[[in... | [
"denbartolomee@gmail.com"
] | denbartolomee@gmail.com |
726c1e415164f7e03ee100461f5f34b0c23e53e5 | 5d26d88c25713c0ddeac3b67c681753fb50a6570 | /djsphinx/wrapper.py | 7d124a7ee3db8fdc846c4e23b8a3a7b063594ee1 | [
"MIT"
] | permissive | PixxxeL/djsphinx | 9faefdcaae45cdb233196a7356c86c25bcd27630 | c3855e4950b2641fa46197e0c423441b0d4ba047 | refs/heads/master | 2021-12-09T17:31:52.418502 | 2021-12-02T06:49:34 | 2021-12-02T06:49:34 | 64,293,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | import sys
try:
from django.conf import settings
except ImportError:
settings = object()
py_ver = sys.version_info
if py_ver[0] > 2:
from .sphinxapi_py3 import *
else:
from .sphinxapi import *
TOTAL_LIMIT = 10000
def sphinx_search(query_str, index=None, offset=0, limit=TOTAL_LIMIT):
host = get... | [
"ivan.n.sergeev@gmail.com"
] | ivan.n.sergeev@gmail.com |
bb4b53307e8d8ff92e50622171f4014c5623675c | a51b4aed04783d805e78b9db0935eb32b7a42c6d | /launcher/shopfloord.py | c0d7814643abf78eda2bdf26b283dfde286010d0 | [] | no_license | caoquan/learngit | 0866f8c183e34d6faed0f98a70dac9874054e071 | fe31e00f56aee179276ba37d83504a8d2ffd6838 | refs/heads/master | 2021-01-24T06:31:27.161954 | 2015-04-30T04:55:11 | 2015-04-30T04:55:11 | 34,826,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,314 | py | #!/usr/bin/env python
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Python twisted's module creates definition dynamically 7
# pylint: disable=E1101
"""Shopfloor daemon.
The launcher is a da... | [
"jack.cao2@quantacn.com"
] | jack.cao2@quantacn.com |
9d389c90d9298defc9873a7c3bf805c545897b58 | 82c8e4ed6dc6a2ca4a72007788e4a40fa72cad87 | /plugin.video.1channel/waldo/indexes/1Channel_index.py | 7e9315a148daada1022a5e0308ea438a51f53d5a | [] | no_license | burhantural/pampereo-xbmc-plugins | 691bad78b88ee0afd37158bc229024007d028382 | b3f51c09574258b31c4b52176cce66d0a3a5ba0c | refs/heads/master | 2016-08-11T19:09:31.859073 | 2013-08-17T17:17:02 | 2013-08-17T17:17:02 | 44,773,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,068 | py | import os
import re
import sys
import urllib2
import xbmcgui
import xbmcplugin
import HTMLParser
from t0mm0.common.addon import Addon
addon = Addon('plugin.video.waldo', sys.argv)
BASE_URL = 'http://www.1channel.ch'
display_name = '1Channel'
#Label that will be displayed to the user representing this ind... | [
"aymensaid82@gmail.com"
] | aymensaid82@gmail.com |
cf9c581862c21bd2f3f69e85f597ea1360230968 | 7b4c6db994210422b45cebba2b6e75154e0701a7 | /DigitalCallCenterPlatform/NewBusinessScripts/newbusiness.py | d7aea351a021aed4082124a36c6f1dc0cd8b6af2 | [
"MIT"
] | permissive | OpreaSergiu/DigitalCallCenterPlatform | 2cb3c9ebd328850c7183feabe4100895172f6ece | 3d37e42e722a8e7b58b1b0fa3ce8b665d10008b5 | refs/heads/master | 2020-04-03T20:47:04.998673 | 2018-12-18T10:10:47 | 2018-12-18T10:10:47 | 155,558,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | from module import *
""" Global sql string definitions
"""
sql_insert_account = """
INSERT INTO [dbo].[WorkPlatformModels] ([ClientReference], [ClientID], [Name], [AssignAmount], [TotalReceived], [OtherDue], [TotalDue], [Desk], [Status], [PalacementDate], [LastWorkDate])
VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '... | [
"sergiuandreioprea@gmail.com"
] | sergiuandreioprea@gmail.com |
bfd4a1f848e76f01b7d90f734c45b368dfd32e3e | 6e91ad505da417a6345b84ea02534deb3ec0427a | /src/tools/test_net.py | 344b28577a7d294398bde276af56229b3763ca91 | [] | no_license | cocoaaa/Tenenbaum2000 | 257a7a0376b670a0896ecd09ace848cb276d5813 | 6f6e8ee74bc9f597def9559f74a6841c37c0a214 | refs/heads/master | 2023-04-25T23:36:13.566521 | 2021-06-06T00:49:20 | 2021-06-06T00:49:20 | 312,381,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | # encoding: utf-8
"""
@author: sherlock
@contact: sherlockliao01@gmail.com
"""
import argparse
import os
import sys
from os import mkdir
import torch
sys.path.append('.')
from config import cfg
from data import make_data_loader
from engine.example_inference import inference
from modeling import build_model
from uti... | [
"haejinso@usc.edu"
] | haejinso@usc.edu |
5b060e15caed59f1055322105d504e5cb0b285a2 | 8b7ceef38588d3ec9cc122143f7cdcc1870cac22 | /cuentaPalabras.py | 26b2e7e1bc018d78fa3a5fcd878180059594722c | [] | no_license | achenriques/EjerciciosALS | b64f06dd524fe6630b5eaebbd59cc57bb61a6fc0 | 5901137e34bdf6a8e9bfc8c390c0c14be1bca71b | refs/heads/master | 2020-12-10T03:18:51.265729 | 2017-05-29T19:11:15 | 2017-05-29T19:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | f = open("text", "rU")
count = 0
todo = set()
for line in f:
s = line.lower().split(" ")
todo = (todo | set(s))
for aux in s:
if(aux != "\n"):
count += 1
print(count)
f.close
| [
"marvazto@gmail.com"
] | marvazto@gmail.com |
e0a3189c619942a87cd85c11009685b4e7d8de45 | 018c38e886b9c8904cbfe470c462abf0b4fa1eef | /jdaviz/vizcomponents/viewer/viewernd.py | bd7813b48a08905a090d5fa79dd306107749095a | [] | no_license | astrofrog/jdaviz | 4410244508377a6e768abba8f47f01c52ae97791 | f8269c229aa58e6e0088be2146d338cdc56dd72e | refs/heads/master | 2022-12-12T07:52:58.286625 | 2019-05-23T20:04:23 | 2019-05-23T20:04:23 | 188,431,057 | 0 | 0 | null | 2021-08-17T14:41:19 | 2019-05-24T13:58:05 | Python | UTF-8 | Python | false | false | 673 | py | import logging
from ipywidgets import Box
from .simple_bqplot_image import simple_imshow
from .viewer import Viewer
logging.basicConfig(filename='/tmp/vizapp.log',
filemode='a',
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
datefmt='%H:%... | [
"craig@brechmos.org"
] | craig@brechmos.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.