blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d80ec6633dabfba7c9a1e14b38c97b6429cd2a70 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa2/sample/stmt_list_assign-28.py | c3f3f4a22b92fb70cf62afd2003cfb3858329b4a | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | x:[int] = None
y:[object] = None
x = [$Literal, 2]
y = [None]
x[0] = 3
x[1] = y[0] = 4
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
e5f0845d9665c372671be2844779415143733002 | 12204664d0de6e89a62f4c5f78a3ad3cbe2da09a | /hawc/apps/vocab/api.py | a99d6167a703c4bc85b85eaf9660aa44281f3e67 | [
"MIT"
] | permissive | TahiriNadia/hawc | 695515d7bd2e3a8da550bf16183df84df07e1437 | 9f053e26efb40f146281944a04d6f2c6bb015253 | refs/heads/master | 2022-12-23T07:02:18.202580 | 2020-09-18T18:28:33 | 2020-09-18T18:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,475 | py | from typing import Optional
from django.db.models import QuerySet
from rest_framework import viewsets
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from rest_framework.request import Request
from rest_framework.response import Response
from ..common.helper import ... | [
"noreply@github.com"
] | noreply@github.com |
1914b8bf434aafad21f8938cb0609a9b11e710ba | ab737f2a4905dadb0e90ad610db94d163d0bdf43 | /split/bill/apps.py | 69ff8a4b3b0c9a4059bf5d88a1868c688aff855d | [] | no_license | chandu0604/PythonScripts | 55cccca3252e883d5e6b2638bdeec44b00e80a48 | 6df987fb4dd89f156f70d7c8e1d570f98d752473 | refs/heads/master | 2020-04-23T23:38:34.032181 | 2019-03-14T03:44:56 | 2019-03-14T03:44:56 | 171,542,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.apps import AppConfig
from statistics import mean
class BillConfig(AppConfig):
name = 'bill'
def split_the_bill(x):
keys = list(x.values())
keys2 = list(x.keys())
average = mean(keys)
keys3 = [(round(i-average, 1)) for i in keys]
ans = dict( zip( keys2, keys3))
return ans
| [
"tripurari0604@gmail.com"
] | tripurari0604@gmail.com |
e899f8ce049c0b4370c75e4932efb1870e214f68 | 33cb32a177608e54f706960407329095ee464082 | /Computer Vision/OpenCV/opencv.py | 14a60f2aff24edd5e430b5b89917f0efa3b46794 | [] | no_license | niraj-khatiwada/ML | d200b3659a5293e68b91a7315d1c4ca9f905cbc1 | 4c4cb6e595c98f995332395c9f792d2a0bb7e907 | refs/heads/master | 2022-04-09T15:28:49.209927 | 2020-03-17T10:14:57 | 2020-03-17T10:14:57 | 243,030,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import cv2
import numpy as np
input_image = cv2.imread("C:/Users/niraj/Anaconda3/Projects/Computer Vision/OpenCV/images/abraham.jpg")
# cv2.imwrite('Hello Wolrd.jpg', input_image)
# grascaled_image = cv2.cvtColor(input_image, cv2.COLOR_BGR2GRAY )
# cv2.imwrite("Grascaled.png", grascaled_image)
# print("Shape is ", in... | [
"nirazzz.nk@gmail.com"
] | nirazzz.nk@gmail.com |
0f4e7e981575a48924e04e71394b1f46bc2b670b | 2e643989fad07bb54b75e178998bb1546540317a | /securetea/lib/auto_server_patcher/patcher.py | 9181df1b1a141221e9970c3cb444903c1c5dc750 | [
"MIT"
] | permissive | fijimunkii/SecureTea-Project | 4fa89c3a28120cc4dbdd4fc6adac204a3c1ae99a | e3752e358d9837ed4677984e1b29a2dd3818dfe6 | refs/heads/master | 2020-06-23T00:19:49.464335 | 2019-07-23T09:12:51 | 2019-07-23T09:12:51 | 198,443,213 | 1 | 0 | MIT | 2019-07-23T14:05:36 | 2019-07-23T14:05:35 | null | UTF-8 | Python | false | false | 7,457 | py | # -*- coding: utf-8 -*-
u"""Patcher for SecureTea Auto Server Patcher
Project:
╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐
╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤
╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴
Author: Abhishek Sharma <abhishek_official@hotmail.com> , Jun 20 2019
Version: 1.4
Module: SecureTea
"""
import json
from securete... | [
"abhishek_official@hotmail.com"
] | abhishek_official@hotmail.com |
5c8655b432b23df6f1ec2af8940fc449c01dadbc | 4e3ea7642bb148e451b134f9f62eb50ed1fa4957 | /homework/Currency_Exchange.py | 960613b9bec60f9e2dfa8b5938261ca772b99afa | [] | no_license | AnacondaFeng/AnacondaFeng | 94d0942c366064dc261dd120a05aca4d7c640e71 | 48f15687f6639d1415aeba7e419beb91234d87e2 | refs/heads/master | 2020-06-03T01:51:38.067018 | 2020-02-28T07:41:51 | 2020-02-28T07:41:51 | 191,384,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py |
service_menu = {'1': '人民币转换美元', '2': '美元转换人民币',
'3': '人民币转换欧元', '0': '结束程序'}
while True:
print("**********欢迎使用货币转换服务系统**********")
# print("1.人民币转换美元")
# print("2.美元转换人民币")
# print("3.人民币转换欧元")
# print("0.结束程序")
for k, v in service_menu.items():
print(k, v)
your_c... | [
"fengyu987@163.com"
] | fengyu987@163.com |
d554fda1225aafd8b4743ce2487d9fd14334992b | c9af82733640aa1dd6d08313d084dae5d9ca4f66 | /TheoryUnc/Scale_OTF/runAllSystematics.py | 05117be69c41b5b1bad8372f500258d41358b2da | [] | no_license | schaed/STPostProcessing | 4f7f2c216ce2da93ddf0874a58226ee05d2f72f4 | 14931b4512f07fa4ec481fc3482d18e8534464c6 | refs/heads/master | 2023-05-04T12:23:51.984327 | 2021-05-20T16:40:35 | 2021-05-20T16:40:35 | 369,274,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | #!/usr/bin/env python
import sys
import os
# usage: python runAllSystematics [REGION]
region = "SR"
if(len(sys.argv) > 1) :
region = sys.argv[1]
channels = ["W_strong", "Z_strong"] #"W_EWK", "Z_EWK",
regions = ["SR", "CRW", "CRZ"]
os.system("rm -f output.txt")
for channel in channels :
for region in region... | [
"schae@cern.ch"
] | schae@cern.ch |
5a5534848823487f9c6521f98aa9c32a1596220d | 4b5bf3dddf401647ca5ab50937ee7b7a22d140bb | /simple_app/forms.py | 1391125c21643e724de8673f7b5bcd083255a059 | [] | no_license | ilyakochagin/simple_app | ee6045f06ff1b6795c3610073e397300959ca99d | b5c1f64db6dcb757c233f41f9abe2539aa69a4e5 | refs/heads/master | 2022-11-26T05:52:21.792365 | 2019-05-26T09:42:06 | 2019-05-26T09:42:06 | 188,664,414 | 0 | 0 | null | 2022-11-22T03:33:39 | 2019-05-26T09:38:03 | Python | UTF-8 | Python | false | false | 300 | py | # -*- coding: utf-8 -*-
from django import forms
class NewComplaint(forms.Form):
"""
This is form for new complaint
"""
title = forms.CharField(label=u'Тема жалобы', max_length=100)
text = forms.CharField(label=u'Текст жалобы', widget=forms.Textarea)
| [
"ilyakochagin@yandex.ru"
] | ilyakochagin@yandex.ru |
3cae4425714e87e8bd86916dc8aa9058ee13ec05 | d8246642f688ae7dff0399967790ba79dbfc0ec9 | /test/insert.py | e587284970aa7db42b4df5c7cf9f5882de4405b6 | [] | no_license | ivankocienski/usql | 05dac5261ebf6f1139f955a0614e8bc7aa8ae317 | e32cb03b05d2db5e63d01c89ab3800adf4332195 | refs/heads/master | 2021-01-02T08:35:02.175258 | 2017-08-02T15:56:08 | 2017-08-02T15:56:08 | 99,020,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py |
from usql.statement import Insert
import unittest
class TestInsert(unittest.TestCase):
def test_table(self):
q = Insert().q_table("users")
sql, args = q.to_sql()
ex_sql = "INSERT INTO users () VALUES ()"
self.assertEqual(sql, ex_sql)
self.assertEqual(len(args), 0)
... | [
"ivan.kocienski@gmail.com"
] | ivan.kocienski@gmail.com |
69bb0ca86094805143d0fdac1d6190f6fed150a3 | aa0159e7268e5b85fe747efe6afcb869c9e753f1 | /ahihi.py | 57fd8e9b89a81dae3d76395f9dd7bbc320cc9c3d | [] | no_license | Tekitori/DemoGit | bcb2ced4a40090a82f58289731a1f4eedb513b55 | de68b4183aecc482a552d61df24c3e08929484d9 | refs/heads/master | 2020-06-14T16:14:52.299984 | 2019-07-22T08:19:59 | 2019-07-22T08:19:59 | 195,052,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10 | py | # Change 1 | [
"tktrgeqm9h306"
] | tktrgeqm9h306 |
3b19863b3dbcd17cc88c74e32e21b2107df2dccf | 34185e7d559be2a8b90b3d690cb159ce7fdc91cf | /assignment1/regression.py | e7c78da6116cc8d3c338b00a72c3a0457ec19a63 | [] | no_license | dineshkbhaskaran/IISC | 6438ada95292b37387efadbf6075a8320cf53115 | 5c020c27b8bd5c868bace30daa5eece5f6b33568 | refs/heads/master | 2020-05-19T10:17:47.651299 | 2019-05-07T14:32:22 | 2019-05-07T14:32:22 | 184,967,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | import numpy as np
from copy import deepcopy
from keras.datasets import mnist
from keras.utils import np_utils
def load_mnist_data(input_dim):
# the data, shuffled and split between train and test sets
(x_train, y_train), (x_test, y_test) = mnist.load_data()
x_train = x_train.reshape(60000, input_dim)
... | [
"dinesh.bhaskaran@aricent.com"
] | dinesh.bhaskaran@aricent.com |
26b3a107b99dae056b6fbbf2f63ee2fc657676c9 | 56e840b19fbe21cee4c3001d93fe5004ddae1721 | /mailSystem/login/migrations/0002_mail.py | a682e15e47b2e0028868e892314aecec6cd7d5eb | [] | no_license | intbjw/mail-system-based-on-Crypto | 6b7a34dbcbaf9e167319764a2a9a0066ffaaf739 | 079848416cbdefaf9fa60583ce8a54d255cd40c3 | refs/heads/master | 2020-06-04T06:45:20.508570 | 2019-10-30T12:34:18 | 2019-10-30T12:34:18 | 191,909,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # Generated by Django 2.2.2 on 2019-06-16 11:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='mail',
fields=[
('id', model... | [
"a1051393709@qq.com"
] | a1051393709@qq.com |
4f41a79f3a049c90cf27f25877c5404060ba3aa8 | fd7384a6e4a58ce9d8fedb06380510a146bc2f0e | /utility/adopt_utility.py | d3edd530de081fa9b6ebe01fbe6d253ca3d35752 | [] | no_license | qiutingli/YSRD | 5414331bb3679c3fca192e0f43e3c256fd118ca6 | 18e9795d54d76c9821434d4cdb8ab4bda3609232 | refs/heads/master | 2020-07-10T01:21:37.394058 | 2019-08-24T08:42:30 | 2019-08-24T08:42:30 | 204,130,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | import pandas as pd
class Adopt:
# 判断设备包含经纬度与不包含经纬度两种方式的通过情况
def judge(self, ass_path):
data = pd.read_csv(ass_path)
df = pd.DataFrame(data)
# print(list(df.columns))
for i in range(len(df.index)):
switch = 1
for j in list(df.columns):
... | [
"noreply@github.com"
] | noreply@github.com |
dc6043ea394fd2f81d46dc98310f0e9a99ac17bd | 24426659f804d2005e32f120adabc2439da6e5d0 | /orgs.py | d5e00cbac1b10b037fce3047edf221bc4ce81980 | [] | no_license | ddearauj/jesses-crawl | 00a50fadb678d84043e1e43ec12ed3e85b435d44 | ec08066346628832e96d2f84f426ef64af276b8f | refs/heads/master | 2021-05-08T06:43:03.828811 | 2017-11-14T02:38:58 | 2017-11-14T02:38:58 | 106,569,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,435 | py | from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import ElementNotVisibleException
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui imp... | [
"danielpereira03@gmail.com"
] | danielpereira03@gmail.com |
ede826fd675c4a60c307a3e7000c07f5f2902746 | 12f83344cdfe561db39ad9106dbf263ccd919f7e | /Projects/miami_metro/platformdatafetcher/producturlsextractor.py | 544ed8554122d5443bb722cf9841e792d34c5f67 | [] | no_license | TopWebGhost/Angular-Influencer | ebcd28f83a77a92d240c41f11d82927b98bcea9e | 2f15c4ddd8bbb112c407d222ae48746b626c674f | refs/heads/master | 2021-01-19T10:45:47.039673 | 2016-12-05T01:59:26 | 2016-12-05T01:59:26 | 82,214,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | import logging
import time
import baker
from celery.decorators import task
import requests
import lxml.html
from django.conf import settings
from selenium.webdriver.support.ui import WebDriverWait
from xpathscraper import utils
from xpathscraper import xbrowser
log = logging.getLogger('platformdatafetcher.productur... | [
"ivanfridrich1981129@yandex.com"
] | ivanfridrich1981129@yandex.com |
d6a216950d956f0368d07afdb48bf084b58ff7e5 | 8e3a3c845ca3320483b233e8a0db4081aa3b8664 | /clases/migrations/0007_contadorpreguntas.py | 4a29e06d54f68db53637390cbb6553b607a32b13 | [] | no_license | sofide/loiprocesos | 7d56398395e6f3302f4d9ec3627ed1b4c24bc17a | 4047fa02d0cfbcf744c80d59e3402215f8b294d3 | refs/heads/master | 2021-07-08T03:26:55.171459 | 2020-08-04T03:23:10 | 2020-08-04T03:23:10 | 61,167,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-24 02:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('clases', '0006_auto_20160623_0041'),
]
operations =... | [
"sofi.denner@gmail.com"
] | sofi.denner@gmail.com |
df725ad520d821c4120eeb807e596ebe91d70a48 | e11f2a49d7cf514e39972d9352fbeadc31b4d6a7 | /AD_Project/unitTest/unitTest_getName.py | acffd77bec700e1cf33de9e4e93ba7089bb4aff7 | [] | no_license | DongHyeonYu/AD_Project | 1659e5fa856413a814a59ef7ca750431c25367f9 | 29bfe3819e4a8f149c30787ec44e127becd910a6 | refs/heads/master | 2023-01-22T09:37:59.081883 | 2020-12-01T14:57:09 | 2020-12-01T14:57:09 | 316,064,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import unittest
from getName import PrintName
class TestLoadXlsx(unittest.TestCase):
def setUp(self):
self.p1 = PrintName("nameList.txt")
def tearDown(self):
pass
def testGetName(self):
self.assertTrue(self.p1.getNameList(), ['test1','test2','test3','test4','test5'])
if __name__ =... | [
"ydh91026@kookmin.ac.kr"
] | ydh91026@kookmin.ac.kr |
9cec215f9eebb88bdaaba771efc1c43d2594bac9 | 808ddf66080672836806de751da4cb2a6bdd6c32 | /DataScienceVickyJeptoo/assignment.py | bd547c40491e32af2f88f8f35e90da540215fda9 | [] | no_license | vickyjeptoo/DS2 | 319dc1dd5fec55ab48cd492f76f0c9f164c8a3d3 | bf6aae2b40d7c309904e8b24f7da39d304853824 | refs/heads/master | 2020-08-29T10:46:31.623214 | 2019-11-21T10:17:00 | 2019-11-21T10:17:00 | 218,009,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #https://modcom.co.ke/datascience/sales.csv
#Get sales.csv
import pandas
df=pandas.read_csv('sales.csv')
print(df)
print(df.isnull().sum())
import matplotlib.pyplot as plt
#histograms of ext price
#pie chart for show category distribution
#Which category brought more cash?
#Which company brought the highest cash?
#Whi... | [
"noreply@github.com"
] | noreply@github.com |
b85f0c1051c650952f431887a123586c06dde8a1 | dae8e0070b093d662fdeea026e3eb48814af73c5 | /Autosampler/startRHX.py | aef73c56a5e8509ca416b314aa8ee12e017a7281 | [] | no_license | clipo/RHX | 43d3dc8e0f2a4d90a8c83ec2a9e4fc0be30fddae | 93286e17df1ec05d98d791671d641d86b7f588b9 | refs/heads/master | 2021-01-02T23:06:23.023476 | 2013-04-27T21:42:01 | 2013-04-27T21:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,221 | py | ###Simple program that moves the motors and the arms - used for finding positions.
##Imports
import sys
import easygui
# comment while on Mac OS X
#sys.path.insert(0, "/usr/local/lib/python2.7/site-packages/")
import easygui
import logging
import communication
from Tkinter import *
import tkFileDialog
fr... | [
"clipo@csulb.edu"
] | clipo@csulb.edu |
9d1f9f790faa65a6af18ba3facac6a207aa8d31d | da84477515337af3b365d390e04a1690aac25c02 | /setup.py | 9b548a489cb357cfce524081a6b7a12b612225b4 | [
"Apache-2.0"
] | permissive | Adlik/model_optimizer | 7b609cd7beba4c187ec21d68d751ea73328a8002 | 10ab045fbd83066533a7c86390485d3c1c3fa210 | refs/heads/main | 2023-06-24T13:09:56.914521 | 2023-05-17T09:11:59 | 2023-05-17T09:11:59 | 638,811,712 | 35 | 3 | Apache-2.0 | 2023-05-16T09:08:44 | 2023-05-10T06:51:01 | Python | UTF-8 | Python | false | false | 1,945 | py | #!/usr/bin/env python3
# Copyright 2023 ZTE corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Model optimizer.
"""
from setuptools import find_packages, setup
from pkg_resources import DistributionNotFound, get_distribution
_VERSION = '0.0.1'
_REQUIRED_PACKAGES = [
'torch==1.12.1',
... | [
"li.yangguang@zte.com.cn"
] | li.yangguang@zte.com.cn |
264bd9ccd3e84e96ff61e98e2ec6314401c7b182 | 7dc35daf5040c327bf0ae67efa3d15ad4232d57a | /proxy/spiders/proxy.py | 04e10306ec8052594cb85b65628807d071f0eeef | [] | no_license | wingyiu/papa | 8d0c2c8624aa1d7ea1e1db5368d92f6891f8d46f | 1ee9bac48560a99177b6847bcb39048f0bf7959e | refs/heads/master | 2021-01-20T05:41:19.332668 | 2017-08-26T06:12:03 | 2017-08-26T06:12:03 | 101,465,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,873 | py | # -*- coding: utf-8 -*-
import re
import scrapy
import json
from proxy.items import ProxyItem
class XiciDailiSpider(scrapy.Spider):
"""西刺免费代理IP"""
name = "proxy_xicidaili"
start_urls = [
'http://www.xicidaili.com/wt/1',
'http://www.xicidaili.com/wn/1',
'http://www.xicidaili.com/nn/... | [
"noreply@github.com"
] | noreply@github.com |
961adf93477923b7c09081eb352e11c8468b653c | 6add6eee90dca906010556dd5453d12783ff74c1 | /load_prediction_sf_v1.py | e1074b5ef3fcc5c8818f01ce6bce6f4e8dba4359 | [] | no_license | ramapani69/DataScienceINBox | eac7f9086e0e91b50bb7eb5c42cd93a71fed9f98 | 8f49d9c675172a93ecc95b4c3aa472a99d42c921 | refs/heads/master | 2020-12-26T05:51:16.220244 | 2020-01-31T10:31:35 | 2020-01-31T10:31:35 | 237,407,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | import snowflake.connector as sf
conn=sf.connect(user='ds_user01',password='November2019',account='jt51318.us-east-1')
def execute_query(connection, query):
cursor = connection.cursor()
cursor.execute(query)
cursor.close()
try:
sql = 'use role {}'.format('INTEGRATION_ROLE')
execute_query(conn, sq... | [
"noreply@github.com"
] | noreply@github.com |
549396b5a2c6d91c865d4b29a93ef580450f4673 | 99960b3976f0b9f832ed3d7f2cc68cfa131efe75 | /v3/core/migrations/0002_user_is_super_user.py | ae692f21f607b3a9547a0c696e25f6539a87b79d | [] | no_license | FabioRodrigues/django-initial | d63bb81c04a25d0a03d8da5d190d0011cb9855cb | b401629bbf4f68edadc222379245c5ead8106911 | refs/heads/master | 2022-06-24T09:06:37.795031 | 2020-05-13T20:12:27 | 2020-05-13T20:12:27 | 263,439,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.0.6 on 2020-05-08 15:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='is_super_user',
f... | [
"fabio.rodrigues018@gmail.com"
] | fabio.rodrigues018@gmail.com |
9c9169d863c678e7836230c07e2ce98de493dc58 | bd473415aaabd40dc1226c3513063d5a96ed2500 | /blog/blog/urls.py | 5dc1edb8b8874085a0a6b1813589f6c3dbd885f9 | [
"MIT"
] | permissive | Asura0528/blog | d513875ecf84ff69a23b45c48e261799754475f6 | dafed165b34b9370e0194e6055869814c8d3fc95 | refs/heads/master | 2022-11-26T03:57:43.152412 | 2020-08-08T03:38:17 | 2020-08-08T03:38:17 | 268,670,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"875778210@qq.com"
] | 875778210@qq.com |
0ae9d9691f12345ae7d85bd3246ba0ddd6639a08 | d525935af3c80584fb2175623591a1fc86349db5 | /Problems/Arithmetic mean/tests.py | 381339f215755dd7874bf71a568020d119169d2b | [] | no_license | TonyNewbie/CoffeeMachine | 63822ffdec8570166ebf44c0ffe51bfa14d33810 | 319c41189ede6a2e6e33bd15ae675101c3377b62 | refs/heads/master | 2022-04-22T13:23:47.904126 | 2020-04-26T07:25:44 | 2020-04-26T07:25:44 | 258,960,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["10 15 1 6 3","7.0"]]) | [
"prostomaster90@gmail.com"
] | prostomaster90@gmail.com |
d004993d69f0b8422175002147ba0298dfe21d0b | 9b26c0b1e51305bdcadbd476a0f4fab98400de4b | /functions.py | 3add9b18bf9fc219b7925254b7a6f307f11a64bc | [] | no_license | As957LoveYourSelf/AnimalGAN | 8d0fff3ccf5f41118bd4330eae8235f280c84bd4 | 6c96a2ae4de4e8306b82fa9d2c7e0fa1dc186ad4 | refs/heads/master | 2023-08-12T22:43:42.155184 | 2021-10-05T09:48:52 | 2021-10-05T09:48:52 | 412,318,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | import torch.nn.functional as F
import torch
from torchvision.models import vgg19
from utils import get_yuv, rgb2yuv
vggpath = "../../pretrainmodels/vgg19-dcbb9e9d.pth"
vgg = vgg19().cuda()
pre = torch.load(vggpath)
vgg.load_state_dict(pre)
vgg = vgg[14:21]
def gram_matrix(features):
assert (isinstance(features,... | [
"1290450579@qq.com"
] | 1290450579@qq.com |
9bde114df3ca40d12a91006167042b04df7e9966 | aa73a98e6d8a68dfeaadbc4b4e4fb47c9b178145 | /src/modality_feature_generators/_types.py | f29961a081d35df134e3a5c0d28ffa14bd7205a2 | [
"Apache-2.0"
] | permissive | sailfish009/ZeroShotEval | 4dce96aaa9f5e7ff270edc6c8f30cf709cb1dc7e | 41af92476485e0a73632fbb98313ddbea59afc65 | refs/heads/master | 2022-12-22T17:09:36.951526 | 2020-07-13T17:10:06 | 2020-07-13T17:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from typing import Union, Text
from os import PathLike
import numpy as np
import torch
from PIL.Image import Image
"""
This file contains type definitions and aliases
"""
ExtractorType = str
ImageObject = Union[np.ndarray, Image]
TextObject = Text
SourceObject = Union[ImageObject, TextObject]
EmbeddingObject = Un... | [
"baldaev.roman@gmail.com"
] | baldaev.roman@gmail.com |
467f06e55dd04488260c237f7a9fa66f70d46317 | 51eba8e95cc7d629ecb09721cd989d943677e9d1 | /examples/cf_demo.py | dbc173abf60b58f68cbd3db62903b4597cc94c09 | [
"MIT"
] | permissive | 1374207430/pyCFTrackers | b8fdd487bff7345c8406fb834c85b23bb9cc2e33 | 6c934cd4c6d0440b1d213e8077de90b48d493bb1 | refs/heads/master | 2020-05-17T17:27:14.563256 | 2019-04-28T01:32:13 | 2019-04-28T01:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import os
from examples.pytracker import PyTracker
from lib.utils import get_ground_truthes,plot_precision,plot_success
from examples.otbdataset_config import OTBDatasetConfig
if __name__ == '__main__':
data_dir='../dataset/test'
data_names=sorted(os.listdir(data_dir))
print(data_names)
datase... | [
"liyuanpengzju@163.com"
] | liyuanpengzju@163.com |
8bcd95985e69165c6997bd595150733ab34f9793 | a4880a51c7f647a076b0c71ea9e89531296f067b | /django-scrapy/mydjango/mydjango/settings.py | 29f11e27990737ab29579e5e7563f61c503e5d02 | [] | no_license | kongkong-zhou/django-scrapy | 0c05f66753b1ded1015bf04550f42cb9fc442e9e | 3f5b60731041ebc103fa6fdcf47dfa40924aed2c | refs/heads/master | 2023-07-06T16:18:41.552744 | 2021-08-12T04:08:52 | 2021-08-12T04:08:52 | 388,572,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,346 | py | """
Django settings for mydjango project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"1303149603@qq.com"
] | 1303149603@qq.com |
6a33b0bb6c094e98d634895bdc96a009efda9df4 | 5e8d86f6ddfd516b9768e8617ced0baca8112f4c | /core-python/Core_Python/regexpkg/Regex_As_3.py | d04581509fb9cb7e606dd55ed7907e899e3dc795 | [
"MIT"
] | permissive | bharat-kadchha/tutorials | 0a96ce5a3da1a0ceb39a0d464c8f3e2ff397da7c | cd77b0373c270eab923a6db5b9f34c52543b8664 | refs/heads/master | 2022-12-23T11:49:34.042820 | 2020-10-06T03:51:20 | 2020-10-06T03:51:20 | 272,891,375 | 1 | 0 | MIT | 2020-06-17T06:04:33 | 2020-06-17T06:04:33 | null | UTF-8 | Python | false | false | 1,211 | py | ''' The contains_acronym function checks the text for the presence of 2 or more
characters or digits surrounded by parentheses, with at least the first character
in uppercase (if it's a letter), returning True if the condition is met, or False
otherwise. For example, "Instant messaging (IM) is a set of comm... | [
"deeppatel.dd@gmail.com"
] | deeppatel.dd@gmail.com |
7afbe224fbc51da387ba338de66d84539319d31f | 66e08d72613deb91a98f3c17e9f2695089f7a8a8 | /007.Reverse Integer.py | 7628fcd6972f407c8dfb3ec145242c580af6ea1b | [] | no_license | ljzhou1995/LeetCode | 7394ed9f209340efad0b720027327991822ba49e | 41f56368a9b1aee86016d91930323eb3f7e19378 | refs/heads/master | 2020-03-22T07:03:26.762204 | 2018-07-12T04:24:57 | 2018-07-12T04:24:57 | 139,674,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | class Solution:
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
str_x = str(x)
if str_x[0] != '-':
str_x = str_x[::-1]
return(int(str_x) if int(str_x) < 2**31-1 else 0)
else:
str_x = str_x[::-1][:-1]
retur... | [
"noreply@github.com"
] | noreply@github.com |
b544983ff978289ea760cefd4f6e592301f049e5 | 610753f191603f52505c446403190dda4b0b6ba9 | /operators_test/money_list.py | 41fe6d4f64d1d7577c0e3539227d38f9ae5e3384 | [
"Apache-2.0"
] | permissive | Hupengyu/Paddle_learning | 5d64b50290c72411cb636497e6828230e6864ac1 | 0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f | refs/heads/master | 2023-07-02T04:26:45.718055 | 2021-08-02T10:33:19 | 2021-08-02T10:33:19 | 353,196,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | res1_list = [['¥4473.79'], ['¥4608.00'], ['¥134.21']]
pri = {}
money_list = []
print('价格长度: ', len(res1_list))
print(res1_list)
for res_money in res1_list:
res_money = ''.join(res_money)
money_num = res_money.replace('¥', '')
money_list.append(float(money_num))
print(money_list)
money_list.sort(reverse=Tr... | [
"hpy@bczx365.com"
] | hpy@bczx365.com |
fba19e2939d4a8531703fee2fa5d34f84991678c | 03ac6cdce56de8ebbce78886ed190382400e15bb | /neva.spec | 150fd67a6393cb8def4c4be381f2a1d004196243 | [] | no_license | espretto/tourbino | 6dc10f96ddfb3fc322113e99b45620eeda5a8b63 | f10930f8a0ca113f113bae30950b6a297d2002b9 | refs/heads/master | 2021-01-21T11:14:54.975790 | 2017-03-02T21:32:45 | 2017-03-02T21:32:45 | 83,536,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | spec | # -*- mode: python -*-
import sys
# taken from the pyinstaller wiki
def Datafiles(*filenames, **kw):
import os
def datafile(path, strip_path=True):
parts = path.split('/')
path = name = os.path.join(*parts)
if strip_path:
name = os.path.basename(path)
return name,... | [
"espretto@gmail.com"
] | espretto@gmail.com |
31e3583bf955816d864b8e81b269523797df9360 | 4275e285b5868d7709d4d491f79906824d7a2770 | /test_site/__init__.py | c3ff3b7a2975204be2289bbc87f166225f6f0680 | [
"MIT"
] | permissive | MarkLark/dstore-test-site | 3bde86b88437bda45672d6c86c413bf4bd1de85c | c353179f65a502412ce3f696d87a47537f2f6143 | refs/heads/master | 2021-01-23T04:53:09.250107 | 2017-01-30T10:38:13 | 2017-01-30T10:38:13 | 80,403,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | from . import app
__all__ = [ "app" ]
| [
"mark.pittaway@mlit.net.au"
] | mark.pittaway@mlit.net.au |
060abb09146a449d4619d1b7efde6fe4bf52b775 | a6a4c1336753b7033c83dfa2e0ee1e98865ba37c | /imagengris.py | e9499c1572ec43a607ce1a249e7e083baed04474 | [] | no_license | mstorresh/Li-Fi-project-UN-2019 | 488590c4733801ed9bfcb497d2f07b29364e7f33 | 4f409c0f3811859a2947cc70fda9b1dbeb750eb4 | refs/heads/main | 2023-08-05T23:44:56.564912 | 2021-10-10T15:00:52 | 2021-10-10T15:00:52 | 415,606,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import numpy as np
import matplotlib.pyplot as plt
import Adafruit_BBIO.PWM as PWM
import time
intensidad=PWM.start("P8_13",99,50)
PWM.set_frequency("P8_13", 1000000)
ima=255*plt.imread("n2.png")
IM=np.ravel(ima)
a=len(IM)
PWM.set_duty_cycle("P8_13", 0)
# comienza con una frecuencia de 100
PWM.set_duty_cycle("P8... | [
"mstorresh@unal.edu.co"
] | mstorresh@unal.edu.co |
60e328a06c3e1fdb001548de48de55c0eb23e0fb | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/2722.py | d7f75c386beda85c91ab2587d1ef7524e8e9592a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | #Author: Alexander Peel
a = open("small-a.gen.in", "r")
b = open("small-a.gen.out", "r")
charMap = {'z': 'q', 'q': 'z'}
revCharMap = {'q': 'z'}
j=0
for x in range(3):
line = a.readline()
gLine = b.readline()
for i in range(min(len(gLine),len(line))):
if line[i] not in charMap.keys():
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
bc4027ff28e6aff8e12c8163d4cad1b372fb5e4c | 894f35e683119469b85768bcd7fe95658fd3d900 | /1-Python101/data-types/4-dictionary/setatr_getattr.py | b1e357df9029fa47ce2e519588c1fa87a1ca7208 | [] | no_license | sltm-14/Python_Course | 8af91b75563e3b0129d225e51b18f39567547491 | 58f8e78902e78abc13367274bb224de56fb5cb0c | refs/heads/master | 2020-12-21T21:23:58.254837 | 2020-11-19T18:03:09 | 2020-11-19T18:03:09 | 236,566,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Set attribute
# Get attribute
class Person():
pass
person = Person()
first_key = 'first'
first_val = 'Corey'
setattr(person,first_key,first_val)
first = getattr(person,first_key)
print(first)
print(person.first)
print("\n")
person_info = {'first':'Corey','last':'Schafer'}
for key,value in person_info.ite... | [
"ie693242@iteso.mx"
] | ie693242@iteso.mx |
39e835665e7b211764faa01ba9ad3c3918c7ebe5 | e9d569137ac14621a154342cc8632139f733d9c0 | /ex034.py | 13949a04c0046d3f2a50abbec4a81ca62b1fc5ab | [
"MIT"
] | permissive | erikamaylim/Python-CursoemVideo | 3eb3337940d024ab5e59467ab2a1e5d9bfffeded | 5a6809818c4c55a02ec52379d95f3d20c833df2e | refs/heads/main | 2023-09-02T04:15:24.987559 | 2021-11-20T20:20:25 | 2021-11-20T20:20:25 | 430,198,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | """Escreva um programa que pergunte o salário de um funcionário e calcule o valor do seu aumento.
Para salários superiores a R$1250,00, calcule um aumento de 10%.
Para salários inferiores ou iguais, o4/ aumento é de 15%"""
sal = float(input('Informe seu salário atual para calcularmos o seu novo salário: R$ '))
if sal ... | [
"erikamayerlima@gmail.com"
] | erikamayerlima@gmail.com |
f1dd9f6c26442d17995176146e57234a9298ffa0 | 662370c4f79b1ccfb4fc6459e00aa2d171ff979f | /example/jupyter_notebook_config.py | 2b72944a72659626c1f88ad895c49002450a5429 | [] | permissive | NII-cloud-operation/nbsearch | 90f1aba44d53edced1ad64aee1332e8bfb8f2d61 | f8fb43a5aa83499d1aa376110b7a4b76f2ae924e | refs/heads/master | 2023-07-07T01:24:46.051101 | 2023-07-05T00:56:48 | 2023-07-05T00:56:48 | 238,172,018 | 0 | 3 | BSD-3-Clause | 2023-07-05T00:56:49 | 2020-02-04T09:47:55 | Python | UTF-8 | Python | false | false | 556 | py | # Solr
import tempfile
def _run_solr_proxy(port):
conf = tempfile.NamedTemporaryFile(mode='w', delete=False)
conf.write('''
LogLevel Warning
PidFile "/run/tinyproxy/tinyproxy.pid"
Logfile "/tmp/tinyproxy-solr.log"
MaxClients 5
MinSpareServers 5
MaxSpareServers 20
StartServers 10
Port {port}
ReverseOnly Yes
Ups... | [
"968739+yacchin1205@users.noreply.github.com"
] | 968739+yacchin1205@users.noreply.github.com |
97f89bd27f13c0f02aecc8b7b6338f2d4ceb35d4 | aa9a0acc85a7328969a81527f3ed7c155a245727 | /chapter_7/mountain_poll.py | 1cbe3e263c36adbf0e5ad45eaf8e28e5f361de72 | [] | no_license | mwnickerson/python-crash-course | 7035e21e1ee60c05d1d475ebcf04bd6a93c5967a | 18784c7e3abfb74f85f8c96cb0f8e606cab6dccc | refs/heads/main | 2023-08-03T20:14:49.883626 | 2021-09-25T05:31:12 | 2021-09-25T05:31:12 | 400,644,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # mountain poll
# set a flag to indicate that polling is active
responses = {}
# set a flag to stop
polling_active = True
while polling_active:
# prompt for the person's name and response
name = input("\nWhat is your name? ")
response = input("Which mountain would you like to climb someday? ")
# store... | [
"82531659+mwnickerson@users.noreply.github.com"
] | 82531659+mwnickerson@users.noreply.github.com |
bada444bc3e6bdb38b1d1eb129778f62c66ec57a | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/storage-preview/azext_storage_preview/vendored_sdks/azure_storagev2/blob/v2022_11_02/_generated/operations/_service_operations.py | 75e0f8a8f2f9fde88e1833572a315c4220a645db | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 50,925 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
3ebbe9fb007ea0325d850832441bd0c36b82f079 | 3d88e3bb4660ad059349885016a08870e8f222b5 | /scripts/freq.py | 2fd49966afa72a8eeaf03e823040ec9fa141bc44 | [] | no_license | hw5773/matls | 936a2d159391123f1c77f28bc07784ea05fdf79f | b2aa2daca43f817c53c9883e05ddf086556623ca | refs/heads/master | 2021-07-06T22:51:47.695973 | 2018-07-07T16:43:04 | 2018-07-07T16:43:04 | 100,862,959 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import sys
import smtplib
sender = "hwlee2014@mmlab.snu.ac.kr"
receivers = ["hwlee2014@mmlab.snu.ac.kr"]
hash_lst = ["sha256"]
out = {}
def usage():
print ("python3 freq_analysis.py")
exit(-1)
def send_email(msg):
message = """From: Hyunwoo Lee <hwlee2014@mmlab.snu.ac.kr>
To: Hyunwoo Lee <hwlee2014@mmlab.snu.ac.... | [
"hwlee2014@mmlab.snu.ac.kr"
] | hwlee2014@mmlab.snu.ac.kr |
4ea5d4f370d99365d642b735f98d9027fae91e79 | c6f8d1033b6483cc9943a698a37512f606240f39 | /code/helper.py | 5b14736c0621c060f824e91eba09cbcd5a5edba8 | [
"MIT"
] | permissive | Tender2233/AmiyaJudge | e809204effad3843ef24f2234519534378af1364 | 8d7d7580282dc5a4397edabba2c0c3deabb74f32 | refs/heads/master | 2022-02-04T06:36:34.002788 | 2022-01-19T06:46:38 | 2022-01-19T06:46:38 | 188,969,885 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | import os
import tensorflow as tf
from PIL import Image #注意Image,后面会用到
#import matplotlib.pyplot as plt
import numpy as np
# #将TFrecord文件转化为JPG格式图片
def getdata():
# x_data = []
# y_data = []
filename_queue = tf.train.string_input_producer(
["tfrecord_train.tfrecords"]) #读入流中
reader = tf.TFR... | [
"tengda2233@126.com"
] | tengda2233@126.com |
dc5ce011053d51bc444a7a253c7fd41a38ec9dfb | 74eafe55252eff97fd9a2e1e6564ecf243f7c058 | /print_numbers.py | 905050698fd2de935082c1635734d8584b74115a | [] | no_license | srikanthpragada/demo_24_june_2019 | c5ddef71eb721367d656924d312e9ca7ac80c34a | fa7aca273d1ffe6ded34795a639910ab91ce66a0 | refs/heads/master | 2020-06-11T10:19:22.384096 | 2019-08-01T15:28:26 | 2019-08-01T15:28:26 | 193,929,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | # print numbers from 1 to 10
n = 1
while n <= 10:
print(n)
n += 1
for n in range(1, 11, 2):
print(n)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
8b5a15001542cc2fd341aa162d1ce098917b784c | d92812722f6c921788410145763b13abf59fb9fb | /algorithm/AD2/도자기.py | 1b5936454adc5a0b62c483d7614b2d734ff7470e | [] | no_license | hyunkyeng/TIL | eaabdad81617158b6b13fc1c31d44bc9d7c5d41c | 0dd8cf0949bae9b192322106570f9766f564d636 | refs/heads/master | 2020-04-11T21:13:36.257116 | 2019-05-17T02:31:45 | 2019-05-17T02:31:45 | 162,099,043 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | import sys
sys.stdin = open("도자기.txt")
def DFS(start, cnt):
global sol
if cnt == M:
# for i in range(cnt):
# print(rec[i], end=' ')
# print()
sol+=1
return
back = 0
for i in range(start, N): # 재료
if back == arr[i]:
continue
# if ... | [
"hyunk4593@gmail.com"
] | hyunk4593@gmail.com |
77b5f4f0d26d396c24550978a83d7223fbf2497e | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/wpt_tools/wpt/tools/manifest/__init__.py | 8c8f189070eaa3201bf0d8e7a37618cf39a65743 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 63 | py | from . import item, manifest, sourcefile, update # noqa: F401
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
f61d55e3301a8e2accce79dfa29797592506b149 | 01ebe45440f08158c796466cca679dec9687d93c | /tests/cx_devices/devices_test.py | c069a3a600767508066fdd74089c959fea2e6c90 | [
"MIT"
] | permissive | ilarrain/controllerx | 694211a247055d2a7417ba3648cdb099468c857b | 0a1ef68b3fd2b6dbb2a499b6b9920e6b3bfa2185 | refs/heads/master | 2023-02-01T00:50:23.731673 | 2020-09-19T22:00:14 | 2020-09-19T22:00:14 | 297,980,184 | 0 | 0 | null | 2020-09-23T13:33:42 | 2020-09-23T13:33:41 | null | UTF-8 | Python | false | false | 1,911 | py | import cx_devices as devices_module
from cx_core import Controller
from cx_core.controller import ReleaseHoldController
from tests.test_utils import get_instances
def check_mapping(mapping, all_possible_actions, device):
device_name = device.__class__.__name__
if mapping is None:
return
if issubcl... | [
"xaviml.93@gmail.com"
] | xaviml.93@gmail.com |
9778c7098c1747fdb3b7cabd8eada5cdc7d3fff3 | b8f5adbc4b60704f0fda7ad437fcd22ebb8d4727 | /Effects/FibonacciEffect.py | 26cb137838c538325703a339a63e0536e94288c6 | [] | no_license | LedBurn/LedBurnLEDs | 45eb02e0feb2e027eafd104acb027cffc3261c6c | c4384cdac223ea8699dcb0d35093a9354a0835d3 | refs/heads/master | 2021-09-10T16:58:36.109480 | 2018-03-29T19:46:56 | 2018-03-29T19:46:56 | 80,829,026 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | from AbstractEffect import Effect
from Colors import Colors
import colorsys
import math
class FibonacciEffect(Effect):
def __init__(self, indexes, strting_hue):
Effect.__init__(self, indexes)
self.hue = strting_hue
self.fibonacci(1)
self.start_fib = 1
def apply(sel... | [
"may.benarie@vonage.com"
] | may.benarie@vonage.com |
57da363228707581a4d136df4f68aaf9eaab523e | d74c7467ff04e1e414072ba869be6d373d76dd9e | /runaway_robot/planning_chase.py | 286a06495c67e87e228df2858272588484c093e1 | [] | no_license | Raziel90/RobotAI | e5f5e8ca857b5c871677f6cdeb0aeb3e08d7137d | 7f57e6ca6a4ba42b60f3f1be4fb0f19ebf02a137 | refs/heads/master | 2020-04-19T20:07:17.281812 | 2019-10-27T19:15:23 | 2019-10-27T19:15:23 | 168,406,769 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,923 | py | # ----------
# Part Four
#
# Again, you'll track down and recover the runaway Traxbot.
# But this time, your speed will be about the same as the runaway bot.
# This may require more careful planning than you used last time.
#
# ----------
# YOUR JOB
#
# Complete the next_move function, similar to how you did last time.... | [
"claudiocoppola90@gmail.com"
] | claudiocoppola90@gmail.com |
30e689448d69450a3219a97e8c10952ee3aaead6 | e2e26fea6e9c10ac5e4e22c88d3652b254008f93 | /scripts/concatenate.py | 12b6daea446eeedeee55d219bd1ce2c07a7e9862 | [] | no_license | adeniro21/capstone_nba_spacing | 8a88bd357476b76736338afef8f1c6319857562f | e0db1e1aae5efd80d230e269227fda100b32800e | refs/heads/master | 2023-04-21T17:50:54.187295 | 2021-05-07T04:48:36 | 2021-05-07T04:48:36 | 364,194,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import pandas
import os
import sys
import json
import pyarrow.feather as feather
#import movement.config as CONFIG
data_path = '/data/p_dsi/nba_player_movement/data_merged_files'
feather_path = '/data/p_dsi/nba_player_movement/concat_dataframe'
files = os.listdir(data_path)
if not os.path.exists(feather_path):
o... | [
"adeniro21@gmail.com"
] | adeniro21@gmail.com |
54647bfe194506c74b294fe7136efbb508f9f0d4 | bd3f29ec31bdafb19fe83b4f832bbe1bcb0a8aa4 | /PythonPro PythonBirds+Django/novo/exercicios/Pkg1.4.9_CountCharsOnList/contagem_de_caracteres_lista(notDoctest2).py | 5aaa4d3bd0bf71771932c5152fc96b047df99a28 | [] | no_license | marcmir70/Python3 | a86432aa051bf5ccc93a880428ddcc2048555d61 | 8747324f408ad5fdb98cf6069d3f45c82c63695f | refs/heads/master | 2022-12-11T19:53:01.397796 | 2020-08-31T02:51:23 | 2020-08-31T02:51:23 | 277,632,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | def contar_caracteres(s):
## """Função que conta os caracteres de uma string
## Ex:
##
## >>> contar_caracteres('Marcelo')
## M: 1
## a: 1
## c: 1
## e: 1
## l: 1
## o: 1
## r: 1
## >>> contar_caracteres('banana')
## a: 3
## b: 1
## n: 2
##
## :param s: stri... | [
"noreply@github.com"
] | noreply@github.com |
54a1df813545e5e1e406cea3b729e7d0b4143ced | 306ffc8bafef837285576bfd4ae09bd307fdae97 | /Frequent Map/Auckland/Plotting Code/plot.py | 393bf5263f2d97053d78bf4067f8b829620f73cd | [] | no_license | bobthepanda/GTFS-Projects | 46475c362d05bdb3b359431591d8361d3c095c1c | 727d9629d1003210d3a2918ae9819f9f03548deb | refs/heads/master | 2021-01-16T20:42:15.949601 | 2018-03-12T09:05:22 | 2018-03-12T09:05:22 | 60,105,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,169 | py | import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
import numpy as np
import pandas as pd
import os.path
import datetime
import collections
lists = collections.namedtuple('List',['shapes','trips','stopTimes','calendar','frequencies'])
# Calculate base trips.
base_directions = 2
base_minhour = 7
... | [
"henry.chin1995@gmail.com"
] | henry.chin1995@gmail.com |
65d64e02223bdf6b8cecce020f6e2e21aa246d22 | 5a9b9a16b4e7781388dbc7772c2620de9a21d1fd | /Drivers/zaber_commands.py | c10059e131854077f3e450e0e63122c8d650de85 | [] | no_license | panzhaodi/FTS_kicp_summer_school | 0cdd36dc449882f404046d158c348fa584187d03 | fc11cec3b60f538bb8d3112f29105ebfa0662292 | refs/heads/master | 2021-01-15T12:37:32.828684 | 2017-08-09T20:50:00 | 2017-08-09T20:50:00 | 99,652,210 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,391 | py | """
Module zaber_commands
This contains the commands needed to move the FNAL_FTS mirror
"""
import numpy as np
import serial
import time
#####
# Constants having to do with the FTS setup and stage parameters
#####
opt_per_physical = 4.0 * np.cos(14.*np.pi/180.)# conversion from physical to optical delay
mm_per_ste... | [
"Lab@ML.local"
] | Lab@ML.local |
6ac97f07c5804b375d5bed3f59338784ae2fae16 | 070a5ff294f16d257ddd3c3da7906271c738e59f | /17_考虑兼容性,尽可能使用Unicode.py | 0cdee33942db7630eff761467217cedb1907463f | [] | no_license | MrLawes/quality_python | 2aadd3b361d18653e1032da5c5cb7d9032b89bf1 | f574acd97ade638c71a18440797dad486532b9dd | refs/heads/master | 2022-12-03T14:43:43.603125 | 2020-08-06T01:12:39 | 2020-08-06T01:12:39 | 269,224,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | """
Python内建的字符串有两种类型:str和Unicode,它们拥有共同的祖先basestring。
其中Unicode是Python2.0中引入的一种新的数据类型,所有的Unicode字符串都是Unicode类型的实例。
创建一个Unicode字符相对简单。
"""
"""
Python中为什么需要加入对Unicode的支持呢?我们先来了解一下Unicode相关的背景知识。
在Unicode之前,最早的ASCII编码用一个字节(8bit,最高位为0)只能表示128个字符,
如英文大小写字符、数字以及其他符号等。但世界上显然不只有一种语言,不同种语言所包含的字符数量也不相同,
对于很多语言来说128个字符数是远远不够的... | [
"haiou_chen@sina.cn"
] | haiou_chen@sina.cn |
14452bae1bb71659ccea66e8e9fd19868c00ecbe | 04514f86523d393a56960b07eadb28a2ab83eee7 | /5/n-5-1.source.py | eeba1983dbc6f79757a6aea3e6f7ea3c5769d88d | [] | no_license | nceh/my_First | 6426162199cb42ecabe0fb309d19fd48e0b1276a | 0e4b1128fe270da9d864ee725068767a9444ad08 | refs/heads/main | 2023-08-04T01:43:20.301945 | 2021-09-17T19:03:56 | 2021-09-17T19:03:56 | 401,407,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | import csv
from collections import OrderedDict
from statistics import mean
def calculate_averages(input_file_name, output_file_name):
with open('m.csv') as f:
reader = csv.reader(f)
for row in reader:
print(row)
name = row[0]
these_grades = list()
fo... | [
"nceh.mousavinezhad@gmail.com"
] | nceh.mousavinezhad@gmail.com |
c7db6ba835f5f8c95bdb8b86ff8488e635d78c1b | af7c0b8f98b33c9fb16671601ebd40795ff2fb7e | /whatsAppAnalyst/lib/configuration/cfgRead.py | 1afdbde930e84b80c5542b013171719f07e293d7 | [] | no_license | sayan1999/WhatsApp-Analyst | 5b03da0fb3db9c22b7a880d66a84418bf7a843b9 | a8b88a342c69a485c5b7d3d1ef2b58bd29d9b21b | refs/heads/master | 2022-11-29T18:15:47.218297 | 2020-08-01T09:26:44 | 2020-08-01T09:26:44 | 251,294,364 | 1 | 0 | null | 2020-04-14T04:34:58 | 2020-03-30T12:13:34 | Python | UTF-8 | Python | false | false | 421 | py | import json
jsonobj=json.load(open('lib/configuration/conf.json'))
IMAP4_SERVER = jsonobj["IMAP4_SERVER"]
IMAP4_PORT = jsonobj["IMAP4_PORT"]
SMTP_SERVER = jsonobj["SMTP_SERVER"]
SMTP_PORT = jsonobj["SMTP_PORT"]
MAILPOLLINGTIMEOUT = jsonobj["MAILPOLLINGTIMEOUT"]
DIRECTORYCHECKINGTIMEOUT=jsonobj["DIRECTORYCHECKI... | [
"mr.sayan.dey@gmail.com"
] | mr.sayan.dey@gmail.com |
f35d7e847408e589a901709907a5e6f4521317bd | 45ba26df8594c8fa35c371e757a339d9928a2274 | /mugqic_pipeline/python/core/scheduler.py | 32ae0f1b8821dad5303636689c274eab1ebf125a | [] | no_license | jtremblay/MUGQIC_perl | c65dbcda00794721e44442cbe10f753d68a5071e | ff15d20e58de5ceb1f6db169b592ab7a7cf8c9e5 | refs/heads/master | 2020-04-09T16:53:54.972968 | 2014-07-25T19:08:49 | 2014-07-25T19:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,945 | py | #!/usr/bin/env python
# Python Standard Modules
import datetime
import os
# MUGQIC Modules
from config import *
# Output comment separator line
separator_line = "#" + "-" * 79
def create_scheduler(type):
if type == "torque":
return TorqueScheduler()
elif type == "batch":
return BatchSchedule... | [
"jtremblay514@gmail.com"
] | jtremblay514@gmail.com |
28338e414ad6403322decc57220ab896441e6b99 | 11078f43584f75608e86cc4dcbaa37a5a13f24db | /bulk/management/commands/bulk_export.py | 448929cc4f0c74d2896e2f1b63dc5e46a14aa12a | [
"MIT"
] | permissive | tophers42/openstates.org | 90d8cb217f21421c1284fa831c522e90125e5e04 | 76708aa255e3e646ea4f8351a38cf01e286ca7a7 | refs/heads/master | 2022-09-27T08:25:46.413675 | 2020-05-19T15:27:29 | 2020-05-19T15:27:29 | 266,882,535 | 0 | 0 | MIT | 2020-05-25T21:21:20 | 2020-05-25T21:21:20 | null | UTF-8 | Python | false | false | 9,960 | py | import os
import csv
import json
import datetime
import tempfile
import zipfile
import uuid
import boto3
import base62
from django.core.management.base import BaseCommand
from django.db.models import F
from openstates_metadata import STATES_BY_NAME
from openstates.data.models import (
LegislativeSession,
Bill,
... | [
"dev@jamesturk.net"
] | dev@jamesturk.net |
e88a1c3614ef137a9d68c60952daefdbb0a4d718 | 67ae56d7436166922212389967c23084c2831e04 | /The Complete Python Beginner Course - Coding Made Easy/Python Scripts/Section 9 - Functions/Lecture 26-System-Defined Functions.py | 680aa4c4f257e353ab915435f947aa1c2fb5984c | [] | no_license | skill-curb/Courses | 29dc6b5e1762d61cb4bca9d736139e3ddd532466 | 0858cfe5de9063440af0a691312758ada2f4f94f | refs/heads/main | 2023-02-06T11:59:37.496803 | 2020-12-30T12:51:20 | 2020-12-30T12:51:20 | 314,747,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | #zip() --
std_name = [ "Sarah", "Maria", "Smith", "Clark" ]
roll_no = [ 4, 1, 3, 2 ]
marks = [ 90, 80, 60, 70 ]
mapped = zip(std_name,roll_no,marks)
mapped
type(mapped)
record = list(mapped)
print(record)
# sum()-- calculates sum of iterator
total_marks = sum(marks)
print(total_marks)
print(sorted(marks))
#map... | [
"git@skillcurb.com"
] | git@skillcurb.com |
f6f1ad958285f676ec5c7f6800454799dbcb29b6 | c77148a25435b50a35fceab36112fba18dbb0866 | /backup/Jun13/units/ZemoraVoidbringer.py | 2e0ac05310a366bbc1dee0479db209f1851a9f09 | [] | no_license | SozBroz/PrismataBot | 51fbecf90950d13eb52606a5b18984b5474746ba | f375ca8dc396abbca4134f70cb262fc78b90a17e | refs/heads/master | 2020-05-31T13:37:50.102010 | 2019-06-06T02:48:01 | 2019-06-06T02:48:01 | 136,826,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | #!/usr/bin.python3.6
class ZemoraVoidbringer:
def __init__(self,owner):
self.owner=owner
self.lifespan=-1
self.frontline=False
self.cooldown=6
self.defaultBlocking=False
self.assignedBlocking=False
self.health=20
self.fragile=True
self.attack=8
self.startTurnDict={
}
self.onClickDict={
"gold... | [
"Phil@oc1140302110.ibm.com"
] | Phil@oc1140302110.ibm.com |
18137e974b326557bab09e0fb8a6cfadf6d04cc0 | d4e0ccb21ceb5a53f1b5256d5f0818cbfaa02638 | /Streamlit.py | a0054c7bcce966a5fca90705721a20892bfcd0d9 | [] | no_license | solques36/SDP-CAI | 2ffa4ac70e466de5146b926b7b91ed3be35df02d | ba96bc03df8746cac4b3316279619f53267c2384 | refs/heads/main | 2023-01-07T04:39:09.764171 | 2020-10-29T13:15:28 | 2020-10-29T13:15:28 | 308,329,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 29 17:34:10 2020
@author: Marcus
"""
import numpy as np
from tensorflow import keras
import matplotlib.pyplot as plt
import tensorflow.compat.v1 as tf
from tensorflow.keras.layers import Flatten, Dense, Conv2D, MaxPool2D, Dropout
from tensorflow.keras import ... | [
"noreply@github.com"
] | noreply@github.com |
2df31b7581fa4b73e3e974d3548781a776ea02e4 | 6d3dadbc5256988d0456e767ce3ac4e7002f2f4e | /simulations.py | 7290a69e9f759f84cd913a02cc50393e991c20aa | [
"MIT"
] | permissive | britta-wstnr/python_code_base | a673ef2ba8bf53ec39f53b20077c6f18121b39d3 | 4cdb96c7b20da91e862f2db7cb944da9938d48e1 | refs/heads/master | 2021-06-14T13:00:23.663009 | 2021-02-25T10:10:48 | 2021-02-25T10:10:48 | 132,599,858 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,128 | py | """ Functions to simulate brain activity.
AUTHOR: Britta U. Westner <britta.wstnr[at]gmail.com>
Credit: parts of the functions are inspired by:
https://github.com/kingjr/jr-tools
"""
import numpy as np
import pandas as pd
from mne.forward import apply_forward
from mne.simulation import simulate_sparse_stc
def gener... | [
"britta.wstnr@gmail.com"
] | britta.wstnr@gmail.com |
06357b808181f39487420b24d93672cf9a2b108f | 578b4a030f44ca78748b2e338dfa6602e4c44d15 | /parlai/scripts/self_chat.py | d404ab768d746addb3ec877588274f03d8e2ba4b | [
"MIT"
] | permissive | maryamdaneshi/ParlAI | f9aef8aaf2cc1a00d7772150f6164272556a97d3 | a3f581cad075db981707dfa070f7b2e9c8bba44b | refs/heads/master | 2022-12-14T14:26:52.197524 | 2020-09-12T00:38:32 | 2020-09-12T00:38:32 | 295,071,935 | 0 | 0 | MIT | 2020-09-13T03:39:32 | 2020-09-13T03:39:31 | null | UTF-8 | Python | false | false | 5,306 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Allows a model to self-chat on a given task.
"""
from parlai.core.params import ParlaiParser
from parlai.core.agents ... | [
"noreply@github.com"
] | noreply@github.com |
ac6069daea455c23cbfa5a901efeccb900fd13c5 | 5785d7ed431b024dd910b642f10a6781df50e4aa | /revise-daily/google/educative/dp/10_subset_sum_partition.py | 8731a79078aa769c5036698c2d03b4fcc1f54262 | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # Given a set of positive numbers, find if we can partition it into two subsets such that the sum of elements in both the subsets is equal.
def equal_subset_sum_partition(nums):
s = sum(nums)
def rec(idx, remaining_sum):
if idx == len(nums):
return remaining_sum == 0
if remaining... | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
8fd3f711218014592f4e3eeaa467d73085c95f6c | 29fc564df8ee16a2d140cbd150260e04f4ddc5c5 | /0x05-python-exceptions/2-safe_print_list_integers.py | eb349c8e28bf825aa6856f42c9bfe14db29a13c8 | [] | no_license | ChristianAgha/holbertonschool-higher_level_programming | 9359fdf4e3f30ed4422a0af59672ac5ff397d4a2 | cce59b31aba3e2a09cb4bf76a6fcfeefa7ab5031 | refs/heads/master | 2021-01-20T07:15:31.258319 | 2017-09-27T05:53:25 | 2017-09-27T05:53:25 | 89,984,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/python3
def safe_print_list_integers(my_list=[], x=0):
counter = 0
for i in range(x):
try:
print("{:d}".format(my_list[i]), end="")
counter += 1
except (TypeError, ValueError):
i += 1
pass
print()
return counter
| [
"christianagha@gmail.com"
] | christianagha@gmail.com |
c456251029738f73db4ceb10f907dc7e09e4e998 | 4e792d52c14b562ce71c5b3dde19eeb54028f64e | /stepik/lesson3_6_step3.py | 0c7c1f62800c1fcc017155d5cebc414070f6a7c1 | [] | no_license | AlyonaNatsyuk/stepik_hw | cfe6155fb0ca4bcdcce34b83ea1eca9ddba84afa | 036d8baa567f96599c4f56e5efe481d926b695d4 | refs/heads/master | 2022-12-05T19:36:29.051080 | 2020-08-26T13:00:47 | 2020-08-26T13:00:47 | 288,979,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import time
import math
import pytest
from selenium import webdriver
@pytest.fixture(scope="function")
def browser():
print("\nstart browser for test..")
browser = webdriver.Chrome()
yield browser
print("\nquit browser..")
browser.quit()
@pytest.mark.parametrize('site', ["https://stepik.org/lesso... | [
"alyona.natsyuk@requestum.com"
] | alyona.natsyuk@requestum.com |
d10eae3d83676e26c39538a82ffcf19136036446 | de15764a215bbe2cc3c3ded0ab96585b8be35544 | /atum/apiclient/digitalocean/v2/__init__.py | 17c1016a3b688b7829f9bf731cd075a9fab8bfc6 | [] | no_license | hkumarmk/atum | 25aed4fedbefa820c9c2f4cea8c90956b4ce9e35 | bc7dd37f257bfdd5e1b310a5ca29a41afef0d33e | refs/heads/master | 2021-01-01T05:14:05.180029 | 2016-05-18T18:30:38 | 2016-05-18T18:33:31 | 58,148,299 | 0 | 0 | null | 2016-05-10T00:23:53 | 2016-05-05T17:22:49 | Python | UTF-8 | Python | false | false | 152 | py | from .base import *
from .sshkey import *
from .tag import *
from .domain import *
from .server import *
ENDPOINT = "https://api.digitalocean.com/v2/"
| [
"hkumar@d4devops.org"
] | hkumar@d4devops.org |
d3ceb3a3a0374ecf5b7a6eaeb5dd9ee652fb97de | 3a04254ff32cefa524da078a140a9037167bfbff | /EZMart/Shop/tests/test_models.py | 9f8f60fdf4c2566ce5c8e4dcf1b0bb4c2313de28 | [] | no_license | Tali-hub/EZmart | 70e297192311239ea21ae8b221b86214e1da0b3e | eeb1fbd890ed64dba6925ecba13b5c24b0c0d670 | refs/heads/main | 2023-02-10T09:06:24.404815 | 2021-01-06T14:35:00 | 2021-01-06T14:35:00 | 316,772,162 | 0 | 0 | null | 2021-01-06T14:35:01 | 2020-11-28T16:12:53 | HTML | UTF-8 | Python | false | false | 478 | py | from django.test import TestCase
from Shop.models import Store, StoreManager
class TestModels(TestCase):
def setUp(self):
self.store = Store.objects.create(
name='store',
businessNum='12345678',
category='FS',
facebook_url='None',
instagram_url=... | [
"ronv.sce@gmail.com"
] | ronv.sce@gmail.com |
b1004ebc44da86c108258bbd0619f1c376460908 | 0f03b2bc7c29314f8b8b732ca7dd55c30c28b978 | /entity/PhysicalNodeList.py | 4e10d76ed35962b2f3ae63cd1e067dfe911cd0b7 | [] | no_license | guomengna/GraduationProject | 358ca6239238586d7136f9d5e077b51ea1e0044e | 8b73075d62a7681920c3bf095dd171c8a6f7b2ff | refs/heads/master | 2020-04-01T22:32:35.480840 | 2019-12-30T04:40:27 | 2019-12-30T04:40:27 | 153,714,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | """从文件中读取系统中总共的物理节点,包括物理节点的所有属性"""
import xlrd
class PhysicalNodeList(object):
# 存放所有的物理节点的id
nodeList = []
# 存放物理节点可以提供的CPU资源
dict_capacity_CPU = {}
# 存放物理节点可以提供的内存资源
dict_capacity_Memory = {}
# 存放物理节点可以提供的可靠性
dict_provided_reliablity = {}
excelFile = xlrd.open_workbook('D:/pychar... | [
"guomengna19941209@163.com"
] | guomengna19941209@163.com |
3ca805a31feb0bf15eea78e22c7a1fcccf2f07e7 | 962f9d35734ea5dd72e7081f05168bb2582e5284 | /model_utility.py | a6d30484104572305182a911c23217d644679946 | [] | no_license | InhoKim429/DL_Project | 2cad70f0a376683349666e528386a0fc0cb1eab8 | 847e91dc1a827e1d73a56fbd3f4aa3a48da1a1ca | refs/heads/main | 2023-04-25T21:17:37.431086 | 2021-05-20T05:51:34 | 2021-05-20T05:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | import numpy as np
def graph2matrix():
f = open('./data/graph_ind.txt', 'r')
nn = [[]] # nn[i][:]=graph i에 속하는 node 들의 index
n2g = np.zeros(372475, int) # n2g[i]=node_number i가 어떤 그래프에 속하는가
i = 1
gn = [] # graph_number
imsi = [] # 각 그래프 넘버에 들어가는
line = f.readline()
item = line.spl... | [
"noreply@github.com"
] | noreply@github.com |
b2e92272b5c408e9508693af57ef34eee31b9712 | 5cf848d2ca4667f961b27b2155ec88d262c288ea | /Django/secondproject/secondproject/settings.py | 5b0b21898b62af5d92024cc9ad5a4ac0770955ef | [] | no_license | hobada96/LikeLion_All | fffd22024885cb896d7ce1e6246951591528094b | 33ec662341ad5c3143ce3cba18cfbd0dd50bde18 | refs/heads/master | 2022-12-11T11:44:09.493670 | 2019-03-11T01:11:56 | 2019-03-11T01:11:56 | 173,631,329 | 0 | 0 | null | 2022-12-08T01:55:58 | 2019-03-03T21:20:31 | JavaScript | UTF-8 | Python | false | false | 3,137 | py | """
Django settings for secondproject project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import... | [
"hobada96@gmail.com"
] | hobada96@gmail.com |
47fa8d0a5166af23ac764f7d163b7b8f4350f104 | d2110f02ed64aca7af40c705d5225d306d892c1d | /remote/analysis-tools/parallel-trial/analyze_all_array.sh | cf545c2750a66a8abfdfd1008996c06197dca5de | [] | no_license | alowet/DeepLabCluster | 1034dbdb568dfba27cf39c6127c6cd39993a79e4 | 69688c17a7fe0e307e32203c798b509db4e269da | refs/heads/master | 2020-08-28T05:19:54.996771 | 2020-05-06T15:44:12 | 2020-05-06T15:44:12 | 217,604,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,900 | sh | #!/usr/bin/env python
#SBATCH -J AnalysisLoop
#SBATCH -p serial_requeue
#SBATCH -N 1
#SBATCH -n 1
#SBATCH --mem 2000
#SBATCH -t 10 # minutes
#SBATCH -o job-scripts/out/Job.%x.%A_%a.%N.%j.out # STDOUT
#SBATCH -e job-scripts/err/Job.%x.%A_%a.%N.%j.err # STDERR
#SBATCH --mail-type=END,FAIL,TIME_LIMIT # notifications
#SBAT... | [
"alowet@holy7c26602.rc.fas.harvard.edu"
] | alowet@holy7c26602.rc.fas.harvard.edu |
a357e72273bb8edb1f639d91c440f562df43333f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_stagehands.py | 1e2b38dd0830cac5b9bb7439a49fbae6ba2fda40 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _STAGEHANDS():
def __init__(self,):
self.name = "STAGEHANDS"
self.definitions = stagehand
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['stagehand']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
23452b8aa23ec30902431afb8e033d9650a11a27 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4050/186004050.py | 0ef5e94fd43a44abe1431659b10050e7af9dfadf | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 4,983 | py | from bots.botsconfig import *
from records004050 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'UW',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'CUR', MIN: 0, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
f975758fc6aae87d2ad3c974c642aaf41bcb6378 | 5927c3d91444f5a03253c4e3a1ec5eda3c1f8415 | /animes/admin.py | 4dc0a296eb0856701ca361214887c1106afb5cc6 | [] | no_license | kwwii01/hikkilib_api | b82a31138e2f1fba8c2127a92217a8daf5fc617f | ca0a1760e5a3df90d8e2efb044342455a15e6fed | refs/heads/master | 2023-07-11T12:33:40.007212 | 2021-08-08T10:42:15 | 2021-08-08T10:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,345 | py | from django.contrib import admin
from django import forms
from django.utils.html import mark_safe
from .models import Type, Anime, Seiyu, Producer, Genre, Comment, \
Profile, Character, AnimeScreenshots, Status, AnimeList
from ckeditor_uploader.widgets import CKEditorUploadingWidget
from django.conf import setting... | [
"mrstream1@gmail.com"
] | mrstream1@gmail.com |
3f6b0953d0bf05f639da4bc89ab48e385ff3d3df | ec1deb682fb96a1f937f2fca5f161aa951462876 | /pythonTextBook/exercises/classes/ex-9.6.py | e5f26b58f5dd3a61052ca7291d86c4b458d68fef | [] | no_license | AnatoliKosarev/Python-beginner-course--Teclado- | 31d82f5e9a1f39e2970323bed9de1fd539990565 | fa91199938d6975b5874341585343566caaf3600 | refs/heads/main | 2023-06-30T12:14:33.779827 | 2021-07-24T11:16:19 | 2021-07-24T11:16:19 | 376,371,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from HelloWorld.pythonTextBook.exercises.classes.exNineFour import Restaurant
class IceCreamStand(Restaurant):
def __init__(self, restaurant_name, cuisine_type):
super().__init__(restaurant_name, cuisine_type)
self.flavours = ["vanilla", "chocolate", "strawberry"]
def show_flavours(self):
... | [
"anatoli.kosarev@gmail.com"
] | anatoli.kosarev@gmail.com |
df7840fa6a665d6e615fa7eddb869602fce86d3f | f0bed78b3aa928b2ca8e85251ff5564f5a0c5dfc | /Model_Dados/ModelSecretaria.py | fffffc75637e6ab7a2c2e23054c9f4e56299c6c9 | [] | no_license | Samuel-Amaro/GUI-Python | cb3e65e0abbcb6928dd2e281cd5e0157619f77c0 | 6a9c2db27783497ddada4e449dfbbe9958e3a831 | refs/heads/main | 2023-02-08T11:54:54.586238 | 2020-12-30T14:51:13 | 2020-12-30T14:51:13 | 317,881,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | """
* CLASSE DE MODELO DO BANCO DE DADOS
- ESTA CLASSE MODELA A TABELA DO BANCO DE DADOS - tabela: secretaria_social
- todos os campos criados nessa tabela, são de acordo com o banco de dados
"""
class ModelSecretariaSocial:
# metodo inicializador costrutor
def __init__(self):
self._idSecretari... | [
"samuelamaro2018@hotmail.com"
] | samuelamaro2018@hotmail.com |
5f656012f1f9e8a1142bd5fbe97e5773232143b6 | f35259cdae65259d41d5c86f09351d6888a81de6 | /module6.py | 87ce2236305191b49e11e2aa5db13fd19e0d7fba | [
"MIT"
] | permissive | RajeshKumar-1998/python-web | 9dbc71da656baec7946b9dae9f36919ac60be0ca | a4a7823752ce91a7a5bd3aaa1210c9ddad7ea55e | refs/heads/master | 2022-04-18T04:57:12.274235 | 2020-04-23T12:28:14 | 2020-04-23T12:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Rajesh
#
# Created: 26-12-2019
# Copyright: (c) Rajesh 2019
# Licence: <your licence>
#-------------------------------------------------------------------------------
import os
i... | [
"57509232+Rajeshkumar-dev-cloud@users.noreply.github.com"
] | 57509232+Rajeshkumar-dev-cloud@users.noreply.github.com |
e9c38467e2a787714831f7864bb435bcedfaeca4 | 3e8acb5749ff67add92a50718ed44f5e80b589b1 | /app/helpers/sqlalchemy_helpers.py | edcae3444a81f58899f7e98b474581afeacd69a1 | [] | no_license | jeffthemaximum/mtinator | a43b0dc93575742b161373a460e0f883da1c0f35 | a15eccf2acc727c32d8c0e0b31922f27edd3e386 | refs/heads/master | 2022-10-09T23:15:12.092352 | 2019-09-09T18:37:22 | 2019-09-09T18:37:22 | 207,014,198 | 0 | 0 | null | 2022-09-23T22:27:43 | 2019-09-07T19:09:13 | Python | UTF-8 | Python | false | false | 2,239 | py | import datetime
from app.models import Line, Status
def get_or_create(db_session, model, **kwargs):
created = False
instance = db_session.query(model).filter_by(**kwargs).first()
if instance:
return instance, created
else:
instance = model(**kwargs)
db_session.add(instance)
... | [
"frey.maxim@gmail.com"
] | frey.maxim@gmail.com |
497f21accdf90e5db6cfc9b223630ab19336cddb | 85fc4fcd841226c30b1a5824468eae95e6da3cd1 | /oddities.py | 3aadbd44e0062fdb114cb855a0e00371b739b293 | [] | no_license | a5vh/kattis | 1676060acfc6eef1d7c558299063646f3b7fcbf3 | 093cbeba31149fa0182ecc1bc8a43c60cdb1fa36 | refs/heads/master | 2020-08-17T19:54:11.754205 | 2019-11-26T01:34:29 | 2019-11-26T01:34:29 | 215,705,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | times = int(input())
for i in range(times):
num = int(input())
if num % 2 == 0:
print(num, " is even")
elif num % 2 != 0:
print(num, " is odd") | [
"august.hummert5@gmail.com"
] | august.hummert5@gmail.com |
81454f0b50d7a0af85495e562f59fcabf97b1313 | 0c5b508286c89159af4cea322249c82e1e6c6d0d | /python code/UnlockBag.py | 2cdceed6496e8ebed845c77655e91ada2ac4651f | [] | no_license | NuwanDhanushka/Smarthandbag | b9b18494135d6d65cf857a2e766dd6bf7791fe27 | 714bde6bec31fa1762a8d1da19659be93c79a4d0 | refs/heads/master | 2020-06-26T12:40:38.829746 | 2019-09-17T14:44:48 | 2019-09-17T14:44:48 | 199,634,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import RPi.GPIO as GPIO
import time
import firebase_admin
from firebase_admin import credentials
from firebase_admin import db
cred = credentials.Certificate('firebase/serviceAccountKey.json')
default_app = firebase_admin.initialize_app(cred,{
'databaseURL': 'https://smarthandbag1.firebaseio.com/'
})
ref = db.refe... | [
"nuwandhanushka2010@gmail.com"
] | nuwandhanushka2010@gmail.com |
eae14d10395cebb9005075be962dbccde8e96453 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_6496_test.py | 83add6fecce024bf4fe791101f323a6d8fe430ef | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 934 | py | #coding:utf-8
"""
ID: issue-6726
ISSUE: 6726
TITLE: string_to_datetime and '\\0' symbol
DESCRIPTION:
ascii_char(0) was allowed to be concatenated with string and pass then to cast(... as timestamp)
up to 4.0.0.1227 (29-09-2018), and is forbidden since 4.0.0.1346 (17.12.2018).
FB 3.x allows t... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
be90ebc66d52f4050ebf05b9127d53fc6025b638 | b09e71b77dd41d5db266733d1eedb845cb56d5c2 | /models/ts_hred/src/hred/read_data.py | e4fab39a8fee951ef16fc947503a9388aea060df | [] | no_license | lingxiao/neural-chatbot | 1bcaaea5ede06d0cdc7232f3905b2c813f97f36d | 70dc9366c9d419c26cfb51086187026503820267 | refs/heads/master | 2021-01-20T07:51:26.398642 | 2017-12-26T07:05:11 | 2017-12-26T07:05:11 | 90,052,227 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | import tensorflow as tf
import os
import numpy as np
import subprocess
import pickle
import os
import logging as logger
def read_batch( data_file
, batch_size = 80
, eoq_symbol = 1
, pad_symbol = 2
, max_seq_len = 50 ):
batch = ([], [])
from sys imp... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
b533d64cad7ca906bf0de2b41c10f6effa0f116f | ca2d5094306503ccbcf1befd25640d2b9bc68bf6 | /app/place/route.py | e3ab534a3e31715c7eae742930a7c29ae17de467 | [] | no_license | crazythink1980/ITAM-server | f461d49cb14fc9090c828c210b2e0f143fe142f0 | 524862798ef136cce1ede633d21e2c23d4a1e5ae | refs/heads/master | 2023-06-11T14:10:39.826076 | 2021-06-28T17:05:39 | 2021-06-28T17:05:39 | 378,635,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | from flask import Blueprint, request
from .model import Place
from .schema import PlaceSchema
from app.utils.responses import response_with
from app.utils import responses as resp
from app.db import db
place_bp = Blueprint('place', __name__)
@place_bp.route('/place', methods=['POST'])
def create_place():
try:
... | [
"crazythink@gmail.com"
] | crazythink@gmail.com |
7dfd66da43d55823453a16f8a9f215ffd604f136 | 17e0b82a3481dc857be371e3189f2d5ec158111a | /src/service/connections/__init__.py | f54aa4f85d6c79e0450907ffa9a4baebf3b8b502 | [
"Apache-2.0"
] | permissive | deeso/service-utilities | 582cc34cb944734ac16b42dd57815a44e59f9f0e | 9a3ebdcad9a1d0049a23e3486d7ea99a6d08f81a | refs/heads/master | 2021-05-14T14:53:37.536862 | 2018-01-23T11:37:12 | 2018-01-23T11:53:16 | 115,980,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from .base_connection import ConnectionFactory
from .kombu_connection import KombuConnection
from .mongo_connection import MongoConnection
from .socket_connection import TCPConnection, UDPConnection
from .jsonline_connection import JsonTCPLineConnection, JsonUDPLineConnection
ConnectionFactory.register_connection(Komb... | [
"adam.pridgen@thecoverofnight.com"
] | adam.pridgen@thecoverofnight.com |
30544b69aee8f675e2061bbebdf19947f695630e | a19548102a422e87eca31df87b67ee3e9528c02b | /jobs/migrations/0015_job_duty.py | 74d3b72c5972a7b16ce15a5ef53bbcc1366b9236 | [] | no_license | mizzony/django_jobs | 48b3f573e2a15c97506188a68379fee982b79ca4 | fb05ce69fd08551bdc4d3dabe0d48c6272e9e4b0 | refs/heads/master | 2020-12-14T11:56:55.552343 | 2020-01-18T13:02:52 | 2020-01-18T13:02:52 | 234,733,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 2.2.3 on 2019-07-21 06:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0014_auto_20190718_1659'),
]
operations = [
migrations.AddField(
model_name='job',
name='duty',
... | [
"sthanombun@gmail.com"
] | sthanombun@gmail.com |
8cfd09bc07e57e6b5e3ace1edaa34eeacb35c9f7 | dd5d3739ebb2a6cbc559f560c7b6ac2d11404cb1 | /testcase/test_automatic_noon_off.py | fcf38911f7cd4aad67042bfdfcdb2bf6bc4a241d | [] | no_license | HomePeng/Fsgo | be5037b10ee5a34530e5761723624b8db6ff81fd | cf77080c4bca3c4e710f957d2c7bf7fc03acfaa1 | refs/heads/master | 2022-12-17T09:27:48.080975 | 2019-10-16T06:12:42 | 2019-10-16T06:12:42 | 214,552,372 | 0 | 0 | null | 2022-12-08T06:42:49 | 2019-10-12T00:55:17 | Python | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
import sys, os
import pytest, time
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
from config import *
from module.FSHome import FsHome
from tools.loggers import JFMlogging
logger = JFMlogging().getloger()
@pytest.mark.usefixtures('driver_setup')
@pytest.mark.run(order=1)
# 指定l... | [
"312814497@qq.com"
] | 312814497@qq.com |
914644a2825e78d0184f56149de1118662788a14 | 9e8ba15aeaccb120b7b3ca6f82df0191d5161ab1 | /framework/communication/aiocoap/transports/tls.py | b1c4919b6898894fcf2fa6b1d6f41765a44f0f7d | [
"Apache-2.0"
] | permissive | nidiascampos/smartgreen | a84d3bc40600480b4ffe43668927e2dec78e94ef | d574d90918702ac3bd383ed77d673f871576c5b0 | refs/heads/master | 2021-06-28T19:09:41.956138 | 2020-01-23T15:16:37 | 2020-01-23T15:16:37 | 144,913,621 | 1 | 0 | Apache-2.0 | 2020-09-04T07:08:38 | 2018-08-15T23:38:05 | Python | UTF-8 | Python | false | false | 1,267 | py | # This file is part of the Python aiocoap library project.
#
# Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,
# 2013-2014 Christian Amsüss <c.amsuess@energyharvesting.at>
#
# aiocoap is free software, this file is published under the MIT license as
# described in the accompany... | [
"noreply@github.com"
] | noreply@github.com |
8cdd396e8b0dbf4947a5565f706318fef03d82cd | cfa2cf55a985139934b5dba591f6c817414ed727 | /omics/omics_dashboard/omics.py | 514734007b6d0bd65ab9783e88bdf5f73c6efe7f | [
"MIT"
] | permissive | BiRG/Omics-Dashboard | 1a74d5a8c608f5157d22a98e1dfa24029c4bcf50 | 835b0fdd9f7b2d0fc41eec975e50c54653a61c5b | refs/heads/master | 2022-11-06T23:09:42.884281 | 2020-02-18T21:58:39 | 2020-02-18T21:58:39 | 108,137,123 | 2 | 0 | MIT | 2020-02-18T21:58:40 | 2017-10-24T14:17:14 | Python | UTF-8 | Python | false | false | 3,711 | py | import datetime
import os
import traceback
from flask import Flask, jsonify, send_from_directory, session
from flask_login import current_user, login_required
from blueprints.browser import browser_blueprints
from blueprints.api import api_blueprints
from dashboards import dashboard_list
from data_tools.db_models impo... | [
"dpfoose@gmail.com"
] | dpfoose@gmail.com |
cf2f2d7f88dda9d9c3caa6fbe711331cf4e416d8 | 019fd2c29b8239d7b0a3906cfbdddfd440362417 | /datacatalog/google/cloud/datacatalog_v1beta1/proto/policytagmanagerserialization_pb2_grpc.py | 74a7fdcfa5f77b46313389513bcdf64342f64c96 | [
"Apache-2.0"
] | permissive | tswast/google-cloud-python | 1334d26cdb994293f307d889251d7daef5fcb826 | d897d56bce03d1fda98b79afb08264e51d46c421 | refs/heads/master | 2021-06-10T17:40:06.968584 | 2020-01-11T17:41:29 | 2020-01-11T17:41:29 | 58,775,221 | 1 | 1 | Apache-2.0 | 2019-04-10T17:09:46 | 2016-05-13T22:06:37 | Python | UTF-8 | Python | false | false | 3,846 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.cloud.datacatalog_v1beta1.proto import (
policytagmanagerserialization_pb2 as google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_policytagmanagerserialization__pb2,
)
class PolicyTagManagerSerializationStub(object)... | [
"noreply@github.com"
] | noreply@github.com |
be29efc36f6a969ab3bd214e43536e35705e975e | 9b722ca41671eb2cea19bac5126d0920639261bd | /.history/app_20201122215937.py | 6289174e858ea6631f102042e9c2fb4ba21ac8be | [] | no_license | thawalk/db_flask_server | 7928fd481f99d30bdccc60d97f02db78324cfdbe | cd55f1c9bf84c734457ee02d9f64a6833e295fad | refs/heads/master | 2023-01-25T02:40:19.097457 | 2020-12-06T07:45:50 | 2020-12-06T07:45:50 | 314,229,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | import json
from flask import Flask, jsonify, url_for, request, redirect,Response,Request
# from flask_pymongo import PyMongo
import pymongo
from bson.json_util import dumps
import mysql.connector
from werkzeug.serving import run_simple
import os
from dotenv import load_dotenv
import datetime
import time
app = Flask(_... | [
"akmal_hakim_teo@hotmail.com"
] | akmal_hakim_teo@hotmail.com |
040659d6e849e701a918fd17c7e41cf873067811 | 43545c7825772866b84fea9d14ea2ddc843c2239 | /kata-potter-python-oo/test_bundle.py | 0e5c0eee7d1cab09d3d793e0346b4354588c8b9b | [] | no_license | sd2017/training | 617602d45d722d38b6e363cf3caddfee38aca20f | df9229f9633a8e3c83b31554c0452f12742cd793 | refs/heads/master | 2020-03-25T13:48:37.547764 | 2017-09-26T12:35:00 | 2017-09-26T12:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | from bundle import Bundle, bundle_series_of, optimize_bundles, price_bundles
from helper_cart import cart, item
from price import Price
def test_bundle_serie_of_with_empty_cart():
bundler = bundle_series_of(references=['A', 'B'])
assert list(bundler(cart())) == []
def test_bundle_serie_of_should_build_max_b... | [
"olivier.albiez@poloper.org"
] | olivier.albiez@poloper.org |
5fb3f31ab4fee82666774d35d3af71633d827de1 | 1c5b1c0926f9321049d342cd32c3bdd18cf5bcae | /manage.py | 8b6ed1b75ce25f398a80d5a8d7d5cbf72a080a53 | [] | no_license | samwendo/1-minute | b53a88c2e6df1ad12f4c443f63a25d54ec0e5631 | 9a6b5d123546347c2b98b4b6d3f054dc7a1c20c9 | refs/heads/master | 2022-09-26T16:10:10.476736 | 2019-10-25T13:55:22 | 2019-10-25T13:55:22 | 216,011,009 | 0 | 0 | null | 2019-10-23T03:51:18 | 2019-10-18T11:40:25 | Python | UTF-8 | Python | false | false | 653 | py | from app import create_app, db
from flask_script import Manager, Server
from flask_migrate import Migrate, MigrateCommand
from app.models import User, Category, Pitch
app = create_app('production')
manager = Manager(app)
migrate = Migrate(app,db)
manager.add_command('server',Server)
manager.add_command('db',MigrateCom... | [
"wendosam21@gmail.com"
] | wendosam21@gmail.com |
fe3aa8ffd7f4863b3d17b32368327db87bd9e7ac | d0c82421a4e084322ed66eb9357faa31d5cb2559 | /venv/bin/django-admin.py | 5940419831c8f9981b66b35e8575a3344a589360 | [] | no_license | alainmore/personal_portfolio | 17bf3bd79a56a73685072a8e3a1b1ecf9443d93a | 071f15e32fe6cf38773960900426a7da01a5aa21 | refs/heads/master | 2022-12-21T00:52:34.625778 | 2020-09-18T19:38:03 | 2020-09-18T19:38:03 | 295,025,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #!/home/alainmore/djangoStuff/rp-portfolio/venv/bin/python3.7
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py w... | [
"alain.more@gmail.com"
] | alain.more@gmail.com |
44058d6386433d673bbcd8b3e3ff2dbb9f11a996 | f9a5f50d484decfd994306fe2a593c16c96f61cf | /myapp/migrations/0001_initial.py | b276ffc1c9be89132dfe2191b533ee7da0911097 | [] | no_license | dablu-prasad/djangoapp | 4d1d2d2569fde50935e5967cf8769b7df43a2d47 | 2487916f23ba983d176f48c838d44c8d19a1cca8 | refs/heads/master | 2023-03-21T19:30:29.078051 | 2021-03-18T02:01:13 | 2021-03-18T02:01:13 | 348,674,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # Generated by Django 2.0.3 on 2021-03-13 13:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"dabluprasad563@gmail.com"
] | dabluprasad563@gmail.com |
2b27f09bb966a17990af1bd4f370b6c84edc42e2 | 000c6bcfbccdf2d4e0020e670db6ca75321cbf1e | /itk_processing/normalization.py | d694e6a7b8d00ebe7a9d8d1ed2de5db8b46b6a52 | [] | no_license | DarisaLLC/intelligentLiver | fa633d6b2844de530ea9095b06cec4d6f1721b1a | 833b71acf52964ed912d88bd74d1417eea166d63 | refs/heads/master | 2022-04-05T01:22:23.868407 | 2020-02-11T06:57:12 | 2020-02-11T06:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | #------------------------------------------------------------------------------------------------------
#
# Project - itk processing
# Description:
# A python processing package using itk format
# Author: huiliu.liu@gmail.com
# Created 2019-09-17
#----------------------------------------------------------... | [
"huiliu.liu@gmail.com"
] | huiliu.liu@gmail.com |
c6c2f41bac9b61dd01588f12357894dbbf1a5d7b | 79c06a7b12178cd91574462bfb14846baa86cc16 | /delete-node-in-a-bst/delete-node-in-a-bst.py | a0d03152a176ee50a7dfff2f652e1b3d186d8418 | [] | no_license | shantanu609/Leetcode | bc390b40ac5c7a075bdad1192dfc25589d1a40aa | 823aef78d78bc74fcca7c65fd285e5d3422af213 | refs/heads/main | 2023-08-16T23:09:10.688206 | 2021-09-15T03:05:24 | 2021-09-15T03:05:24 | 350,087,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def deleteNode(self, root: TreeNode, key: int) -> TreeNode:
if not root:
return None
... | [
"54551714+shantanu609@users.noreply.github.com"
] | 54551714+shantanu609@users.noreply.github.com |
45a8fe6e13e1590722153b827a3f664c6ca4aca7 | 45357779c08c7593b880f90e9cddc911fa868fab | /touristagency_project/touristagency_project/settings.py | 98003edf2bd9a2a8f3577edb7bbded1b64f114fe | [] | no_license | EvgeniyPilot/tourist_agency | b8a394f3990d3ffe35b7497c3ad0d61fa234e769 | 3cf2d67542fbdecf41cc9a4c7d8594936e07849b | refs/heads/master | 2023-07-27T04:13:38.694311 | 2021-09-09T08:21:43 | 2021-09-09T08:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,926 | py | """
Django settings for touristagency_project project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""... | [
"romasotnikov12345@gmail.com"
] | romasotnikov12345@gmail.com |
62f22b123e3f5dd0e4c74c13925b4c37009df1a8 | 33a50bb13812090a36257078522b798762978c66 | /top/api/rest/JushitaJdpUserAddRequest.py | 3936dcb28e2258dc2e002dc64d4199ecc712998e | [] | no_license | aa3632840/quanlin | 52ac862073608cd5b977769c14a7f6dcfb556678 | 2890d35fa87367d77e295009f2d911d4b9b56761 | refs/heads/master | 2021-01-10T22:05:14.076949 | 2014-10-25T02:28:15 | 2014-10-25T02:28:15 | 23,178,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | '''
Created by auto_sdk on 2014-09-08 16:48:02
'''
from top.api.base import RestApi
class JushitaJdpUserAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.rds_name = None
def getapiname(self):
return 'taobao.jushita.jdp.user.add'
| [
"262708239@qq.com"
] | 262708239@qq.com |
2bbb440790558887692161bb0f71bbc251785b8e | 57384990a629486ce5d90e4b85e72fe8877a202c | /day5tasks/sentemail.py | d5ea60187637cbd86332a68809f564b33ab6873a | [] | no_license | kothamanideep/iprimedpython | c1573c5df376cfe574b519b175d076ca1551d57b | 9d9816ecbaa7525699273ae9599337ab4bcc27ad | refs/heads/master | 2023-06-28T11:20:56.103502 | 2021-08-04T18:12:07 | 2021-08-04T18:12:07 | 387,692,820 | 0 | 0 | null | 2021-08-04T18:12:08 | 2021-07-20T06:18:44 | Python | UTF-8 | Python | false | false | 276 | py | import smtplib
connection=smtplib.SMTP("smtp.gmail.com",587)
connection.starttls()
connection.login("manideepkotha324@gmail.com","mani@9324")
message="hi my name is manideep"
connection.sendmail("manideepkotha@gmail.com","kothamanideep123@gmail.com",message)
connection.quit() | [
"kothamnaideep@123gmail.com"
] | kothamnaideep@123gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.