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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eafde55b4128f1e79475991b307f8e91de418586 | 8a283e52a9180b81356e68dd35b1293c3d32aa5c | /task9.py | 505435e338a98373032a0ff4dc1235507216c43b | [] | no_license | irishabharya/k8swebapp | d4458421c9dd7965302533e98817011616d03ae2 | b5822e9b0b39bae1b184db32151b279e4ed8abb1 | refs/heads/main | 2023-06-29T08:10:53.279283 | 2021-08-11T18:04:02 | 2021-08-11T18:04:02 | 395,074,927 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #!/usr/bin/python3
print("content-type: text/html")
print()
import cgi
import subprocess
f= cgi.FieldStorage()
cmd = f.getvalue("x")
pod = f.getvalue("pod")
port = f.getvalue("port")
replica = f.getvalue("replica")
if ("all" in cmd ):
print(subprocess.getoutput("sudo kubectl get pods --ku... | [
"noreply@github.com"
] | noreply@github.com |
8a32ce25bfea1cadc9dbf675455e80e62c2842db | 54d81ffa9dc1faacb0a2cf0baa9a334bc99faa23 | /day00/ex02/TinyStatistician.py | 1e72ff0de7481fcb678d1b6099fd067cb94e55f7 | [] | no_license | AdrianWR/MachineLearningBootcamp | 94bee5cd1ec30c62390ccd3c4b679223dd011174 | b30f717aaceca02f9fbb273b607a0ec496e432a0 | refs/heads/master | 2022-12-22T17:38:16.883083 | 2020-09-26T15:40:20 | 2020-09-26T15:40:20 | 259,935,134 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | import math
class TinyStatistician:
@staticmethod
def mean(x):
if not len(x):
return None
return sum(x) / len(x)
@staticmethod
def median(x):
if not len(x):
return None
return TinyStatistician.quartile(x, 50)
@staticmethod
def quartile... | [
"adrian.w.roque@gmail.com"
] | adrian.w.roque@gmail.com |
32bbdc3dfa362fb7cf6b2b7a7e8c026eae0eb5f1 | 9a40c85c55d75327d82a6e2010d58faf6aaeff49 | /Website/mysite/settings.py | 91fc5443013ba838a30d491bdefcace58d23f46c | [] | no_license | MostafaHamedAbdelmasoud/Liver-cancer-detection-in-CT-scans | 8b1dab64cb1273d9dae8709435ac05e38ac26e84 | 5a6c3eb4d84ce1badb3a7103c06dc336caab3073 | refs/heads/master | 2022-12-25T00:54:47.344764 | 2020-09-20T14:31:02 | 2020-09-20T14:31:02 | 295,721,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,159 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | [
"mostafa.hamed1944@gmail.com"
] | mostafa.hamed1944@gmail.com |
e73b79844c44e046ec48b55aa0ab8513b9544a39 | 91aafc8666d650526576739efcc8322865693882 | /sdd/sdd5/sbin/rfut.py | 866440a5fb8e28638a93227e1a7e8ae28cb985a4 | [] | no_license | akkmzack/RIOS-8.5 | 186d95b69307ab9b926777715d15ccfefe914962 | 5c0a21a8acf0d9baaa0d837a33ca5d8230ef2ee5 | refs/heads/master | 2021-01-10T14:57:03.254387 | 2016-01-26T06:26:05 | 2016-01-26T06:26:05 | 50,402,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,554 | py | #!/usr/bin/env python
from lxml import etree
import os
from os.path import exists
import sys
import subprocess
from subprocess import Popen
from subprocess import PIPE
from optparse import OptionParser
import syslog
import time
import fileinput
import datetime
DBG_NONE = 0
DBG_ERR = 1
DBG_WAR = 2
DBG_INF = 3
DBG_VBS ... | [
"akkmzack@sharklasers.com"
] | akkmzack@sharklasers.com |
83a1d8573fd98ab9baa0b2388b9256d3d27f2daf | 483d26722245774d0860f45157b0bc578dd2ff15 | /crudproject/crud/views.py | dee5b041dd944c71b1cab6032b56809eee6b90fe | [] | no_license | raianibnfaiz/crudproject | a44a0a9a49e83442bb0019c2141b6304ff10fb2d | 0a7ab9efb57aa57784b169ffb2eea8792daa1b86 | refs/heads/master | 2022-11-28T04:19:27.177597 | 2020-08-05T07:39:36 | 2020-08-05T07:39:36 | 285,215,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | from django.shortcuts import render,redirect
from .forms import MyUserForms
from .models import MyUser
def create_user(request):
form= MyUserForms(request.POST or None)
users= MyUser.objects.all()
if form.is_valid():
form.save()
return redirect('/')
return render(request,'index.html',{... | [
"raianibnfaiz@gmail.com"
] | raianibnfaiz@gmail.com |
85140adbd56c46390eb3746b437a36b0224da0a8 | f632e642d2727fbe33f7a52ad32b03a3d13d4add | /校庆论文/校庆论文/xiaoqing/ClusterMain.py | 952d5420bdf3206343b287acabbd48ecabefd247 | [] | no_license | east1203/CPlusPlus | 7e0896fce4d36851ab26014ab50de1e3ab0e2f09 | be61a73e54647fd66fcce2f3d93c0703bdb7a6d7 | refs/heads/master | 2020-04-28T04:46:05.868932 | 2019-05-16T06:45:59 | 2019-05-16T06:45:59 | 174,964,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | # coding=utf-8
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
from math import *
import PseudoCenter
import ClusterFunc
##def EL(centers,clusters:
print("************** start ***************")
#size = 162
size = 214
clustersnum = 9
array_regsloca = np.zeros((size,2))
ind = 0
with open("./regs... | [
"dyk1203@126.com"
] | dyk1203@126.com |
3a487eaa5b78fc12e70fe3c362a2bbce9ff5fb7c | fd7498ec78932500333d1c922bdbdebac94fbd7e | /leads/api.py | caeb33d61ba3b09108f7dee82ab41b9f0bdc6ace | [] | no_license | ajay-staruss/DjangoReactLEadManager | 303419f2108379eb8ac78ad1bb7c8e171e2e1ded | 83dadbb2d60657662f46a61aa8cf7fae2c0ee567 | refs/heads/master | 2022-07-02T08:25:32.669245 | 2020-05-16T09:39:04 | 2020-05-16T09:39:04 | 264,403,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from leads.models import Lead
from rest_framework import viewsets,permissions
from .serializers import LeadSerializer
class LeadViewSet(viewsets.ModelViewSet):
queryset = Lead.objects.all()
permission_classes = [
permissions.AllowAny
]
serializer_class = LeadSerializer | [
"ajaypratap9980@gmail.com"
] | ajaypratap9980@gmail.com |
e49f952e2c76871ed20d6b04f878fb0efc340461 | 9d8188246250c2506bf69ebb44ee5342891d3663 | /model/layers/encoder.py | 9d1d5eee9ac2c25e543abcc6b66ec7b2edb7c2e4 | [] | no_license | wujunjie1998/kg-topic-chat | 22433e35758972a519056b61de117820e26c3de9 | d3d393cdc49d9a82727d4b0aee71692e90fed17f | refs/heads/master | 2020-12-02T01:42:35.543629 | 2019-12-30T04:25:22 | 2019-12-30T04:25:22 | 230,845,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,628 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence, PackedSequence
from utils import to_var, reverse_order_valid, PAD_ID
from .rnncells import StackedGRUCell, StackedLSTMCell
import pdb
import copy
class BaseRNNEncoder(nn.Module):... | [
"1052231507@qq.com"
] | 1052231507@qq.com |
fa7e68d4fc0084365ff3f46b598bd7a7a7599c45 | 5729cdb7af50aa8afedd459e53f7e7f8e6b77b34 | /src/settings.py | a860f4ef04c2c8af9d1dcf9088ffa2124575c0dc | [] | no_license | oranb83/sendgrid-cli | 75b6b9b761d7657846869f73e4c162a2310848b3 | a56fba12557480befdbc28d5f5de24ca8cc6b5b2 | refs/heads/master | 2023-06-14T20:37:27.331325 | 2021-07-13T08:49:54 | 2021-07-13T08:49:54 | 385,169,467 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | import os
SENDGRID_API_KEY_PRODUCTION = os.getenv('SENDGRID_API_KEY_PRODUCTION')
BASE_SCOPES = [
'access_settings.activity.read',
'access_settings.whitelist.read',
'alerts.read',
'asm.groups.read',
'browsers.stats.read',
'categories.create',
'categories.delete',
'categories.read',
... | [
"oran.ben-zur@lemonade.com"
] | oran.ben-zur@lemonade.com |
07cf4d48d0b55b9e6fe1bd0d4344f1bd79798a8e | 450d61dd7041acbd9e143bfcf2032f316e8c636d | /src/models/__init__.py | b6d446905eafe53865c5fb64d5781325902d1642 | [] | no_license | zyunnn/fyt_spatiotemporal | ef7454b88d9672607955119ba3f644912058e5e9 | b2bcc90bc776307e068081fff437a399b62cfb76 | refs/heads/main | 2023-05-21T01:39:53.065828 | 2021-06-01T14:10:09 | 2021-06-01T14:10:09 | 322,542,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | # from models.stgcn import build_model | [
"zhiyun@gmail.com"
] | zhiyun@gmail.com |
c0a063610c0a0621da7a69ee2f01d04b83117f62 | 7ce2dd7b4b0671c8b051855e4bf1f6e85e8f7567 | /2018202115/HumanEye-2018201115-final_submit/codes/image_captioning-master/utils/coco/pycocoevalcap/bleu/bleu.py | d5fa008f4edcdae02b4a687a71743b2a555443b8 | [
"MIT",
"BSD-2-Clause-Views"
] | permissive | weimingtom/ai20projects | b63286df9c5d72cb6ed2c188a2d58e80f82e4ca9 | ca6f993cfa569250b3116921f4b481d01de36197 | refs/heads/master | 2023-02-08T04:59:19.719235 | 2020-12-30T00:22:36 | 2020-12-30T00:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #!/usr/bin/env python
#
# File Name : bleu.py
#
# Description : Wrapper for BLEU scorer.
#
# Creation Date : 06-01-2015
# Last Modified : Thu 19 Mar 2015 09:13:28 PM PDT
# Authors : Hao Fang <hfang@uw.edu> and Tsung-Yi Lin <tl483@cornell.edu>
from .bleu_scorer import BleuScorer
#from pycocoevalcap.bleu import BleuSco... | [
"1608231147@qq.com"
] | 1608231147@qq.com |
b46a3f8bb2a7aa7189a03e9bb03385aa2adc1203 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3207.py | 49316f0601d1e454902936007d3f7d43574994a8 | [] | 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 | 425 | py | with open("a.in", 'r') as f:
T = int(f.readline())
for t in range(1, T+1):
S = set(range(1, 17))
for i in range(2):
n = int(f.readline())
for j in range(1, 5):
line = f.readline()
if n == j:
S = S & set(map(int, line.split()))
if len(S) == 0:
print("Case #%d: Volunteer cheated!" % t)
eli... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9912abe02a2963442cfacb21a5e7c9030823ce04 | 72bb6deb4a8657fc494777847e356c328fe8550d | /PythonS/script1.py | 1d3d64cde0bd0f88080ed26202c14e8d80e65aec | [] | no_license | rising-turtle/study | daafeac486e274af47268e9c7d66feacd3476a44 | 76b414d0a47692f997539b34b356c34a3528f34d | refs/heads/master | 2021-12-09T07:23:41.800642 | 2021-12-02T19:34:44 | 2021-12-02T19:34:44 | 90,572,871 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | #!/usr/bin/python
def filerw(f):
fr = open(f, "w")
fr.write("I love Python! \n Hello, World!\n")
fr.close()
fw = open(f, "r")
text = fw.readline()
print(text)
if __name__=='__main__':
filerw("1.txt")
| [
"hxzhang1@ualr.edu"
] | hxzhang1@ualr.edu |
d9a6b276047aedbc1ab62415fd3b8fcf764596d0 | bf9aab3694c7cb0b8fbc588f79da29f3993d77b5 | /search/djangohaystack/migrations/0001_initial.py | 2511f634f69cdaba051f6ed4114da4c0a1594463 | [] | no_license | clarle/council-catalog | c765bf641c114e426bd170f6ed56a2e2a3df9c79 | 123348d60233191d8938ec8341bbc5c0b4b3ad7b | refs/heads/master | 2021-01-21T08:20:53.389689 | 2017-08-11T02:32:10 | 2017-08-11T02:32:10 | 101,958,092 | 0 | 0 | null | 2017-08-31T04:09:10 | 2017-08-31T04:09:10 | null | UTF-8 | Python | false | false | 902 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-27 21:47
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"hoangle2806@gmail.com"
] | hoangle2806@gmail.com |
33deb59137072fe9d5e752110a6fae15296410e0 | af496ed4911fe3c1ba36725f1131200436235d8e | /sentry_telegram/__init__.py | 59cd5d9848182e81ddf3e07a613b22f487d35719 | [
"MIT"
] | permissive | AlwxSin/sentry-telegram | 3058fc28023b82ab6554aa55dad1c38fae8f12d0 | 7ed32234ccc6205381b8c38e6e590f6fc14a7250 | refs/heads/master | 2020-03-11T03:22:45.175270 | 2018-04-16T14:23:27 | 2018-04-16T14:23:27 | 129,745,341 | 0 | 1 | MIT | 2018-04-16T13:09:37 | 2018-04-16T13:09:36 | null | UTF-8 | Python | false | false | 421 | py | # coding: utf-8
"""
Plugin for Sentry which allows sending notification via Telegram messenger.
"""
from django.conf import settings
__version__ = '0.2.0'
if settings.configured:
from sentry.plugins import plugins, register
from plugin import TelegramNotificationsPlugin
if TelegramNotificationsPlugin.... | [
"butorovv@gmail.com"
] | butorovv@gmail.com |
c46792451b28fc636b23223660a4fbab590ff19d | f420dd6405d205f19c06e82e5979a7dd48092867 | /importer.py | 45c91b0a2e72d1a43cf5d24213cbc31ad63798d9 | [] | no_license | 23tymas/cs50final | c276b9207850b346c0de749f2dec75e52c90282c | e576c29e8961283cdd21ff322e21eae32a0c379d | refs/heads/main | 2023-02-09T12:01:28.434502 | 2020-12-30T05:52:03 | 2020-12-30T05:52:03 | 325,461,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import sqlite3
import csv
db = sqlite3.connect('dates.sqlite')
cur = db.cursor()
with open("dates.csv", "r") as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
rowdate = row['date']
#print(rowdate)
rowevent = row['event']
cur.execute('INSERT INTO dates (d... | [
"noreply@github.com"
] | noreply@github.com |
4511b0ad24780352eda0aa3ad4c0b72d9782194f | 37a802a0b0b407225210cc8fe16fd6335d01c23d | /biopy.py | 86f69479a5071e5c7fe13f0143820c0af16e4740 | [] | no_license | Aakritisingla1895/Recsys | 9befba6acf43eb4e0a377349a6fd512f49f01a90 | b51945bdf443169b971f5b27daf0b3d57c99c31a | refs/heads/master | 2022-12-11T11:31:03.931031 | 2020-04-13T07:06:23 | 2020-04-13T07:06:23 | 212,941,788 | 0 | 0 | null | 2022-12-08T06:14:03 | 2019-10-05T04:06:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,018 | py | from Bio import Entrez
def search(query):
Entrez.email = 'your.email@example.com'
handle = Entrez.esearch(db='pubmed',
sort='relevance',
retmax='20',
retmode='xml',
term=query)
results = Entre... | [
"aakritisingla18@gmail.com"
] | aakritisingla18@gmail.com |
9c69e890954b39c53456d3274149e26adb8cba6e | 2cf4c28f533065153b23c3b4084bf905467f4e23 | /utils/tensor_viewer/plugins/sandwich.py | 4395a597082b8f236ed00847d43cfbb277d7c9a2 | [] | no_license | WilliamRo/tframe | 94e75b4d7fd482ab5edeff2db966f4316390e32b | 2ac00b2a05fd65529adb7edf7123b3eea6e5e6f2 | refs/heads/master | 2023-09-01T22:02:02.372416 | 2023-08-24T08:10:26 | 2023-08-24T08:10:26 | 92,593,033 | 17 | 7 | null | 2022-07-23T01:35:10 | 2017-05-27T10:55:48 | Python | UTF-8 | Python | false | false | 1,082 | py | import re
import numpy as np
import matplotlib
from matplotlib.ticker import FuncFormatter
from tframe.utils.tensor_viewer.plugin import Plugin, VariableWithView
def _recursive_modify(v_dict, level=0):
if len(v_dict) == 0: return
assert isinstance(v_dict, dict)
if isinstance(list(v_dict.values())[0], dict):
... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
b98641d2d0a56568ac2c6e71b87e0798ba7dc7d4 | 8476b24d7e1d9a3592df5efd25a701c1a775a970 | /funcs.py | 6cb92bfe99b98c97af225c6278ae4ae8e2947c81 | [] | no_license | ahmedhosny/kerasLungs | 213ddf13d569d4d4e9db46461d7492201bd5f138 | a19434127034c7937539f7cdfd27f9d57e98f264 | refs/heads/master | 2020-02-26T15:12:24.824598 | 2017-05-22T14:35:45 | 2017-05-22T14:35:45 | 83,595,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,718 | py |
from __future__ import division
from __future__ import print_function
import numpy as np
np.random.seed(123)
import tensorflow as tf
tf.set_random_seed(123)
import krs
import pandas as pd
import os
from sklearn.metrics import roc_curve, auc
from keras.utils import np_utils
import keras
from keras.models import Se... | [
"i.ahmedhosny@gmail.com"
] | i.ahmedhosny@gmail.com |
38fa1bdcf32d9a41324dc89afe6c727eb8ccee83 | 7c7e998d59511c752061005cddc921833ae6372d | /bot.py | 9ad445cb1a03d2736110465c709c3b1e07ff068d | [] | no_license | 999WRLD999/ECO.bot-v1 | 1d53a8c2b05fbbf4d848cf14c7986216c1c1c7d1 | e0e760b9beab81a6dfb0e4d5f67067d4a5ac05cc | refs/heads/main | 2023-03-21T19:34:27.142517 | 2021-03-14T22:31:04 | 2021-03-14T22:31:04 | 347,770,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,449 | py | import discord
import requests
import json
import discord.utils
import random
import string
import asyncio
from discord.ext import commands
Version = 'v1.0.2.7 - Alpha.4'
bot = commands.Bot(command_prefix='$')
bot.remove_command("help")
with open('usercash.json', 'r') as f:
usercashjson = json.load(f)
def c... | [
"noreply@github.com"
] | noreply@github.com |
b79a9b710f88b92e919b4b75f4e4d0094a5287ed | c7b31209cc7b5a015ca34d1174e7978730ce6733 | /rpplugins/env_probes/environment_capture_stage.py | 9bbe136a0b8d893af6e96f81148c9d987fbae7be | [
"MIT"
] | permissive | gitter-badger/RenderPipeline | c244343def6dd33e55e78cd828f0c703b338ce1a | 4d4bf4164c8dcb188f93e46749ba52de8f61b37f | refs/heads/master | 2021-01-22T00:52:25.396315 | 2016-04-16T13:13:57 | 2016-04-16T13:15:27 | 56,395,593 | 0 | 0 | null | 2016-04-16T17:04:37 | 2016-04-16T17:04:37 | null | UTF-8 | Python | false | false | 7,877 | py | """
RenderPipeline
Copyright (c) 2014-2016 tobspr <tobias.springer1@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use... | [
"tobias.springer1@googlemail.com"
] | tobias.springer1@googlemail.com |
5d10a9d692575a05db729af626128d544ad5b613 | 13141a522f31660b2b90d949b56eb02acb5580b7 | /动态规划/064 Minimum Path Sum.py | 24b9e2be3bf06b278a323bd0ea7618c6e087121b | [] | no_license | Busc/LeetCode-learning | a2341fd00d1e4fb4e41d701f1c6385e88f6a8539 | 4a32734908b2efe0577e11807981e0c37b0dd8d4 | refs/heads/master | 2020-12-02T07:48:45.817641 | 2018-04-03T08:24:48 | 2018-04-03T08:24:48 | 96,728,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | '''
Array -- Medium
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at any point in time.
'''
class Solution(object):
def minPathSum(self, grid):
"""
... | [
"762521772@qq.com"
] | 762521772@qq.com |
789197ced20ddb38961512fdfd6b70fdaf08dcf2 | c35008ff51c71e03bd4d14fdc3b561d4efe6d25a | /lab/06/lab06_b_d.py | add41c0a8d468dd3a47eaaf85d7f3a38622f81ad | [
"MIT"
] | permissive | reveriess/TarungLabDDP1 | 2300b08b068bb8ffb08e686260008ceca89b5f14 | f2298d462a94dfb89a6c6a88ee4de4fff9acd671 | refs/heads/master | 2020-08-18T02:44:52.371416 | 2019-10-18T08:16:48 | 2019-10-18T08:16:48 | 215,738,559 | 0 | 0 | MIT | 2019-10-18T08:22:39 | 2019-10-17T08:13:40 | Python | UTF-8 | Python | false | false | 1,547 | py | '''
Benny's Plagiarism Filter
Mengecek set-set yang berisi 64-bit hashcode dari file-file submisi tugas
pemrograman dan mencetak output berupa set yang berisi hashcode yang tidak
memiliki duplikat.
'''
set_qty = int(input("Masukkan banyaknya set yang akan diinput: "))
curr_set = set()
print("Untuk {} baris ... | [
"laymonage@gmail.com"
] | laymonage@gmail.com |
25ebdff821aece21611aec20575591caec4d23c7 | c740a51903b1af235cc9bdd472f58ee55f796564 | /nlp/nlp_api/views.py | a8b1c003941ae0fe4a46de7ee277478586c0ad56 | [] | no_license | godejiao/nlp | 610a2cfba30c9d4a0dca01b259304890176d00e9 | c7f9acf1648f99701d0f56cd1c5b61f9f0ebc5b1 | refs/heads/master | 2021-01-01T20:14:34.667726 | 2017-10-16T01:53:26 | 2017-10-16T01:53:26 | 98,798,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,219 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render, render_to_response
from django.core.exceptions import ObjectDoesNotExist
from django.http import JsonResponse, HttpResponse, StreamingHttpResponse
from django.views.decorators.csrf import csrf_exempt
import json
from api.baidu_api import BaiduNLP
from api.te... | [
"godejiao@163.com"
] | godejiao@163.com |
87a1dc0038d74e0b17b12059d53dca1a56cf6db7 | e361af8c96db69a05bf1b5c72c22b67506f3e9b7 | /nuget/date_util.py | da425b4b11a2b46d63403164da6ab59f05a21d11 | [] | no_license | wwarren/nuget-package-scanner | 54f5336277e0e9efd7bf519a7bc8cbe55caff40b | 2bd192fa9a2a2265993b388f87d2a60ccf6b26c8 | refs/heads/master | 2022-05-29T16:46:38.890844 | 2020-05-04T13:26:00 | 2020-05-04T13:26:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import datetime
def get_date_from_iso_string(iso_date_string: str) -> datetime.date:
assert isinstance(iso_date_string,str) and iso_date_string
parts = str.split(iso_date_string,'T')
return datetime.datetime.strptime(parts[0],'%Y-%m-%d')
| [
"donnieh@gmail.com"
] | donnieh@gmail.com |
dc79570687b43676257440dd230843ca43cb7599 | 975b245e32457be007114cb87501b8ee1922e1bc | /legacy/boilerPlates/pyxWin32/spyppKakaohTalkintextingpage.py | 29463fabc2e1c9469a714b2ee5c0986a77fe2f14 | [] | no_license | sachim1379/man | cc2a0247484936b802e8170eac090bcba75799ba | b74b81c1c4de1789d19220e744ba8938ac8e2fd9 | refs/heads/main | 2023-08-13T01:03:49.572169 | 2021-10-03T11:52:22 | 2021-10-03T11:52:22 | 389,310,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import time, win32con, win32api, win32gui ##pypiwin32 모듈 필요
#열려있는 대화창의 대화항목을 선택해서 입력한 메세지를 자동전송
#채팅방지정
kakao_opentalk_name = '재호'
def kakao_sendtext(text):
win32api.SendMessage(hwndEdit, win32con.WM_SETTEXT, 0, text)
SendReturn(hwndEdit)
## 엔터
def SendReturn(hwnd):
win32api.PostMessage(hwnd, win32con.WM_K... | [
"sachim1379@gmail.com"
] | sachim1379@gmail.com |
395b9d6b3eeb3dda9279993faf701f3d4c1cf382 | 5aa80aab7a75d76b0aa838bf8f74a276a12c876e | /src/ifmap/SConscript | 91667c2cbadf3ccc91e2f3828066f422d4455f95 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tungstenfabric/tf-controller | 83b6d58afadb5697b540b5345711a5b2af90d201 | f825fde287f4eb2089aba2225ca73eeab3888040 | refs/heads/master | 2023-08-28T02:56:27.329584 | 2023-08-20T12:15:38 | 2023-08-20T12:31:34 | 231,070,970 | 55 | 29 | Apache-2.0 | 2023-07-23T01:38:17 | 2019-12-31T10:24:38 | C++ | UTF-8 | Python | false | false | 4,531 | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
# -*- mode: python; -*-
Import('BuildEnv')
env = BuildEnv.Clone()
env.CppDisableExceptions()
env.Append(CPPPATH = env['TOP'])
env.Append(CPPPATH = [env['TOP'] + '/ifmap'])
env.Append(CPPPATH = [env['TOP'] + '/config-client-mgr'])
env.Append(CPPPATH... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru | |
1729a45d5d706db63e49b78c57f9d9916f6030f6 | 65f9c08c1049ad88d7d972aa63a2b9b7b39dc3fa | /tests.py | 16fa273be167d333b893cef1aad92af143937522 | [] | no_license | ulturt/currency_converter | 496c03ad5695f8feb3bfad9e3ac86e99da0d73cb | f84d08aab62ee3f3b5f0b06fad23b26b6d883a28 | refs/heads/master | 2020-04-26T09:08:27.976497 | 2019-03-03T17:09:53 | 2019-03-03T17:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import unittest
from unittest import mock
from client import get_current_exchange_rate
from converter import convert_value
TEST_EXCHANGE_RATE = 10
class ConverterTestCase(unittest.TestCase):
@mock.patch('converter.get_current_exchange_rate', return_value=TEST_EXCHANGE_RATE)
def test_convert_value_has_right... | [
"luzgin.st@gmail.com"
] | luzgin.st@gmail.com |
d0b9760362c2c896a11394121621237ba007551c | 64afcac06e3a64215d7d7152c4fa5662164a41e6 | /src/jk_sql/DBColDef.py | e36c558919fedb53a78002e8dc3f70873f63d78a | [
"Apache-2.0"
] | permissive | jkpubsrc/python-module-jk-sql | 7b4f12783b8384540404fa60c469c911955202a6 | cc716f4042af4cbc503056bd3f71cde9acd12ce2 | refs/heads/master | 2022-09-15T17:20:24.458796 | 2017-10-20T10:01:34 | 2017-10-20T10:01:34 | 107,655,550 | 0 | 1 | null | 2022-09-03T19:29:01 | 2017-10-20T08:58:04 | Python | UTF-8 | Python | false | false | 2,376 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import sqlite3
from .EnumDBColType import EnumDBColType
from .EnumDBIndexType import EnumDBIndexType
#
# This class represents a definition of a column. Objects of this type are used to either define a column or get information about a table c... | [
"pubsrc@binary-overflow.de"
] | pubsrc@binary-overflow.de |
3ee27f9d3949d61696851f7060da197716ec0708 | ddcdf4447f0e4fd2be9644c41ea88c313771034f | /ref_utils/ulti.py | 4dee460b6a1fecdfdb4a1b4eb245faf50cc15830 | [] | no_license | htzheng/ECCV2018_CrossNet_RefSR | c7048b34c79c28380df6c4c685c185c11c96720a | 03959f2dd45b09820115075afd83af50fe8d0814 | refs/heads/master | 2022-08-10T06:41:27.811265 | 2022-08-02T05:42:29 | 2022-08-02T05:42:29 | 142,181,203 | 97 | 24 | null | null | null | null | UTF-8 | Python | false | false | 10,779 | py | from six.moves import cPickle
import random
import numpy as np
import cv2
from scipy.signal import convolve2d,correlate2d
import matplotlib.pyplot as plt
import math
def psnr(img1, img2):
mse = np.mean( (img1 - img2) ** 2 )
if mse == 0:
return 100
PIXEL_MAX = 1.0
return 20 * math.log10(PIXEL_MA... | [
"noreply@github.com"
] | noreply@github.com |
87de427c3452fe0c23f480422f6330d34d52e58e | 14f8a0df9618688a84a73409fcb9c01bba4715c7 | /CBIR/src/fusion.py | 10863fba053ece9c0e42ba3b7497b6a820bdbe1c | [] | no_license | MaelleH/analyse-image | 2b8fd9605a556e9a30f0e8b9b6af90c2a73842fb | 02bc220c55743844b862e5a56b7a841342a32cb6 | refs/heads/master | 2023-02-22T15:56:31.420170 | 2021-01-30T18:38:52 | 2021-01-30T18:38:52 | 329,867,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,324 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from evaluate import my_evaluate_class
from DB import Database
from color import Color
from edge import Edge
from gabor import Gabor
import numpy as np
import itertools
import os
d_type = 'd1'
depth = 30
#Ci-dessous, les différents modules recodés perme... | [
"h.maelle.98@gmail.com"
] | h.maelle.98@gmail.com |
27a85b7a3b119d89d6fa012b492732d213266d64 | 1f1aed4bd2d752155759fec8510398c6756d9d57 | /main.py | 94e6a24a3da9ff334dc1e515e8f9db4ba4158dde | [] | no_license | lucaslulyeho/amazon-price-tracker | deb9a0a0fe0cf86a0118e656e0c5ef0d3059abaa | 03b8a180ace38c70507a5cd7d371f006cfd09055 | refs/heads/main | 2023-02-19T15:51:57.196806 | 2021-01-24T11:42:39 | 2021-01-24T11:42:39 | 332,434,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import requests
import smtplib
from bs4 import BeautifulSoup
URL = input("Paste the amazon url of your item of choice: ")
price_cap = input("Enter your price cap for this item: ")
headers = {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 ... | [
"noreply@github.com"
] | noreply@github.com |
a8aa7533e72b50c0243f8c3017f7007ef171f0b8 | f08c9a37b4fda0791a8eb43090b9c90d44557ef6 | /tcpproxy.py | 25c706fbde3608ee3bbc3c18ee4574efd54d7e43 | [] | no_license | yue123161/ImprovedIUPTIS | a2617934a5b9168ba0d08c5b108190fa261079ce | dc32bb474ad9ed9603bc9fa43907fc7d69ef65a1 | refs/heads/master | 2022-03-12T12:36:42.055521 | 2019-08-20T11:56:37 | 2019-08-20T11:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,721 | py | # MIT License
#
# Copyright (c) 2019 Mariano Di Martino
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | [
"mariano@mariano.in.edm.uhasselt.be"
] | mariano@mariano.in.edm.uhasselt.be |
7614c023c082ba42450ea0d171a4fbedfcda4a48 | e6076850afb8e8104eee3ee622df423f6268ff41 | /exploit/exp.py | 670faeba986496e717dce8eeb73f8366f8a37d2e | [] | no_license | GouBa-1/PDF_SHOW_MD5 | df877f4951ef115dea38c6bbf9a96453514d1e3c | 0f75691a9a08cb25ec3ff9109e8498842b0aa9e1 | refs/heads/main | 2023-01-28T15:00:56.287038 | 2020-12-11T11:02:10 | 2020-12-11T11:02:10 | 319,991,393 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,249 | py | import subprocess
import struct
import psutil
import time
import sys
import os
#前缀数据
Prefix=["./hex/f0.bin","./hex/f1.bin","./hex/f2.bin","./hex/f3.bin","./hex/f4.bin","./hex/f5.bin","./hex/f6.bin","./hex/f7.bin","./hex/f8.bin","./hex/f9.bin","./hex/f10.bin","./hex/f11.bin","./hex/f12.bin","./hex/f13.bin","... | [
"noreply@github.com"
] | noreply@github.com |
62b8d8fe84aecc31a1b43a18a408a4002daea6e4 | 77a6884ca829b56f5a39d66223dbcb6786838469 | /Object+Detection+Realtime (1).py | 142abf505912c57e8e1bdf54f664cfa06ce10a29 | [] | no_license | nickname0153/workshop-by-hvzn | 1b0a521c479951c59b734072016439612505bbd6 | 001dccb8bd382c6faf7d0f1f72932c9b6ca86419 | refs/heads/master | 2020-08-26T19:36:56.995018 | 2018-11-16T07:46:53 | 2018-11-16T07:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,018 | py |
# coding: utf-8
# In[1]:
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
# In[2]:
from collections import defaultdict
from io import StringIO
from matplotlib import pyplot as plt
from PIL import Image
# In[16]:
import cv2
cap = ... | [
"32302970+afif2100@users.noreply.github.com"
] | 32302970+afif2100@users.noreply.github.com |
1f6f0c2490ff3734c1773283e4029d90c7b09ae1 | d7c44522f934c7ab3ad9766cc01440fe9300c001 | /cogs/meta.py | 8bc90892d1752cfb76d67dae4e78f4b1d3ca152d | [
"MIT"
] | permissive | cretoria/Rockbot | 4f486c22d6bda71e3f6cff75db554681d306f030 | b7f184013458bf505392be62203effbf2d35ac7a | refs/heads/master | 2021-06-29T15:21:54.099844 | 2020-12-05T11:15:23 | 2020-12-05T11:15:23 | 141,432,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,706 | py | import discord
import asyncio
import json
import urllib
import aiohttp
import random
import collections
import re
from datetime import datetime as dt
from itertools import islice
from discord.ext import commands
from PIL import Image, ImageDraw, ImageFont
UTOPIA_URL = "http://utopia-game.com/wol/game/kingdoms_dump/?k... | [
"cretoria@cretoria.rocks"
] | cretoria@cretoria.rocks |
13ab29e5ceffbff9de60963df7ec385ba55cad77 | ee6fc02e8392ff780a4f0d1a5789776e4d0b6a29 | /code/abc/150/abc150_b.py | c748c5aa7445dd342d4b813baf31ee0e24d77bef | [] | no_license | mollinaca/ac | e99bb5d5c07159b3ef98cd7067424fa2751c0256 | 2f40dd4333c2b39573b75b45b06ad52cf36d75c3 | refs/heads/master | 2020-12-22T11:02:13.269855 | 2020-09-18T01:02:29 | 2020-09-18T01:02:29 | 236,757,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
n = int(input())
s = str(input())
count = 0
for i in range(0,n):
if s[i] == "A":
if i+2 <= n-1:
if s[i+1] == "B" and s[i+2] == "C":
count += 1
print (count) | [
"github@mail.watarinohibi.tokyo"
] | github@mail.watarinohibi.tokyo |
40b38f3402e6f240a77ba29372569fef8f2c69f6 | f8acaa3210a5eb392d5cd2567a000f26e812cfb9 | /2015/python/day12/main.py | fe6f3c8c3e41333b75fef811e0c1e9525afbb072 | [] | no_license | andrewpickett/advent-of-code | aeb105f7e50cfe5b7ebc80e10bc58451b5a00ac6 | ab3fa828257fa0e9f64f07397d3012274b8bebaa | refs/heads/master | 2023-01-22T23:28:46.989329 | 2022-12-28T18:06:50 | 2022-12-28T18:06:50 | 224,327,063 | 2 | 0 | null | 2023-01-08T11:09:58 | 2019-11-27T02:27:23 | Python | UTF-8 | Python | false | false | 918 | py | import json
import re
from aoc_utils import run_with_timer
data = open('input.txt').readline().strip()
matcher = re.compile('[ a-zA-Z:,}{"\]\[]')
def part_one():
return sum([int(x) for x in matcher.split(data) if x != ''])
def contains_red(root_obj):
if type(root_obj) is dict:
for k, v in root_obj.items():
... | [
"picketta@gmail.com"
] | picketta@gmail.com |
078218e2b5abb01b946103d17fbedfcc0ad5049c | fa563a00bd22331e8e6050824247414d18795c50 | /fit_scripts.py | cfe283a62151e46b1ffc96ea73dda486d79d5ddb | [] | no_license | firest11/thesis-analysis-modules | b4dd46dcdf6e45f643089ebc011c0d3e2f80acb1 | 4b7f712be1c97abeee3cd8afd6bf23b24bafa000 | refs/heads/main | 2023-03-24T23:13:03.621331 | 2021-03-25T18:46:49 | 2021-03-25T18:46:49 | 351,541,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,947 | py | import sys
import functools as ft
import numpy as np
import scipy.linalg as scilin
import scipy.optimize as opt
import scipy.sparse as sps
from scipy.sparse import linalg as splinalg
from . import fitfuncs as ffunc
def sparse_cholesky(A):
# Sparse Matrix Implementation of Cholesky Decomposition
#
# take... | [
"cshuger1@gmail.com"
] | cshuger1@gmail.com |
cf85859497e9262ab0792ec4e552abbecf6d8798 | 68b7e05830d2480e848b0d1ff49f455e3c2e3a3c | /manage.py | 70ae5959854c8281d4a31549726dba3ecf87c16d | [] | no_license | Zauberzunge/Umfragen | 24414567ad8dfeb89a5b7267841a08bf6d035625 | 3e57da7e87d2aebc596878800fd4fe8008f38944 | refs/heads/master | 2023-01-28T20:02:19.044334 | 2020-12-07T21:06:47 | 2020-12-07T21:06:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
from django.core.management.commands.runserver import Command as runserver
runserver.default_port = "8002"
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE'... | [
"="
] | = |
5a5eef8f8e486201700fc8211ccb9747a4e5b131 | 1c8751548b6453102d35f4ca314f8566b428a2ba | /autotable/autotable/settings.py | 3060041834f5358483fd637886eae83f68312741 | [] | no_license | ch-liux/pyweb | fe78f1947cea6135aa331bc4fa4cd7c538b0f461 | cc1b99c3459388fd9276d8c78278abae90b99f78 | refs/heads/master | 2022-02-03T06:43:54.957461 | 2019-05-21T10:07:10 | 2019-05-21T10:07:10 | 173,143,776 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py |
import os, platform
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_SYS = platform.system()
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '*w@^=n9@z978t=l1=do!&ig*2vu-cq(93()ql=r2_#$z... | [
"343134072@qq.com"
] | 343134072@qq.com |
cfdfb8b0744cfad950f40ca7d6ea763d5963d48b | d69f24293c56b34c5b1508ed112d791a61e0c945 | /04-Milestone Project - 1/04Project_01_Tic_Tac_Toe.py | 60ce13465af299353efcbcf0f9320a08b0758533 | [] | no_license | NajmusShayadat/Complete-Python-3-Bootcamp | 4d83465a73a6efb2e3acd601c578104c5c568e0e | 001ac480490f07fd190806f490747c8e7a9e32b6 | refs/heads/master | 2020-09-12T03:42:12.732715 | 2020-06-28T19:11:42 | 2020-06-28T19:11:42 | 222,292,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,474 | py | # Project description:
# Create a Tic Tac Toe game. You are free to use any IDE you like.
#
# Here are the requirements:
#
# 2 players should be able to play the game (both sitting at the same computer)
# The board should be printed out every time a player makes a move
# You should be able to accept input of the player... | [
"najmus.bappy@gmail.com"
] | najmus.bappy@gmail.com |
68e7cf5b54d4085ab60ad38a20316d67bc64bb57 | 245e442a12da265bef4043575ac679ef7f1df800 | /core/strings.py | aa91eee12ae078482e88d4f37a017212828a99a2 | [
"MIT"
] | permissive | Dwarf-Community/Dwarf | b7c38db5f55462c658f3a8cf9ba8be85eaadc150 | 7b23e411198cc1b73c3923325d2cb84a2d3da53b | refs/heads/master | 2021-01-19T00:24:08.193809 | 2018-03-08T21:17:30 | 2018-03-08T21:17:30 | 73,002,090 | 12 | 10 | MIT | 2018-01-18T20:53:55 | 2016-11-06T16:06:07 | Python | UTF-8 | Python | false | false | 843 | py | """Externalized strings for better structure and easier localization"""
failed_to_install = "Failed to install '**{}**'."
failed_to_update = "Failed to update '**{}**'."
specify_extension_name = "Please specify a name for this extension (must be a valid Python package name)."
skipping_this_extension = "Not install... | [
"aileenfromthemoon@gmail.com"
] | aileenfromthemoon@gmail.com |
901d73e1e1b9fbab700e456ee163cba1d0d65fe4 | 9fcc6ed9d6ddff6d183a891066f6e2be5c3875e8 | /pandasdmx/source/sgr.py | cb73a9a7c0c1aad9de3316676facf7c3269555fc | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"Python-2.0"
] | permissive | daoluan/pandaSDMX | ea289db699d2516cf563194214d1e70adb61dca7 | 2efcb5a429a5306efd89bed4cd55946d1ad5067b | refs/heads/master | 2020-07-12T21:37:20.617115 | 2019-08-28T11:09:59 | 2019-08-28T11:09:59 | 204,912,582 | 0 | 0 | Apache-2.0 | 2019-08-28T19:08:08 | 2019-08-28T11:08:08 | null | UTF-8 | Python | false | false | 667 | py | from . import Source as BaseSource
class Source(BaseSource):
_id = 'SGR'
def handle_response(self, response, content):
"""SGR responses do not specify content-type; set it directly."""
if response.headers.get('content-type', None) is None:
response.headers['content-type'] = 'appli... | [
"mail@paul.kishimoto.name"
] | mail@paul.kishimoto.name |
b1afb31ff5ab29a6dfcf2d2608cafbc1dfd319c0 | 89782dc50bf2e497b1d7b74a85b1d7e1c8c2efad | /Lexer+Parser/TestRunner.py | 809c85471708a0a1eecb1277d9b36839064a4999 | [] | no_license | JiadingGai/looc | 0b1ed83c86c85c398e703d976dafce34b700f895 | b09a2280e2a4fc9286336f38751cc1a65b423a65 | refs/heads/master | 2021-06-22T00:28:29.076528 | 2017-01-18T04:07:34 | 2017-01-18T04:07:34 | 42,084,889 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #!/usr/bin/python
import os
from os.path import expanduser
HOME = expanduser("~")
DEV_HOME = HOME + "/dev"
PROJ_HOME = DEV_HOME + "/looc"
TESTS_HOME = PROJ_HOME + "/tests"
LPSRC_HOME = PROJ_HOME + "/Lexer+Parser"
for file in os.listdir(TESTS_HOME):
if file.endswith(".cl"):
print(file)
| [
"paul.paul.mit@gmail.com"
] | paul.paul.mit@gmail.com |
392e821bc418413b9d4e27fa9d57fc910671a7a0 | 0a574474298f064a662d48493ab6674a78d30e28 | /6.画像処理/pic/kadai6.py | c79d971dced06033333b01fd4c302683ba59379b | [] | no_license | aoki0430/Experiments-Report | ebbef6d1efd3d704a4a83c70213df343d9830957 | 93667b451de48eee41422a7124082ee0ea0469a5 | refs/heads/master | 2020-03-23T00:02:32.615382 | 2019-10-05T14:02:35 | 2019-10-05T14:02:35 | 140,840,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # encoding: utf8
from __future__ import unicode_literals
from pylab import *
from cv2 import imread
# 画像を読み込み
gazo = imread( "kadai6.bmp", 0 )
# 画像を表示
imshow(gazo, cmap="gray", vmin=0, vmax=255, interpolation="None")
# ヒストグラムを表示
figure()
hist( gazo.flatten(), 256, (0,255) )
# 画像を変換
gazo2 = zeros((24... | [
"31432520+garuda02@users.noreply.github.com"
] | 31432520+garuda02@users.noreply.github.com |
0619150eff07bbe60a9990b60993647c6c0bdfe2 | 71c5b98a7291ffc291fa1133d176db11abc3cf8e | /pixie/manage.py | f8d43125480be9ede8df6fb225438f290e6c9473 | [] | no_license | turbonemesis/django-dot-pkce-example | 92c6e43c81a54ffad435dd84ee6ecb46b5c81682 | d25f5eefc4911927a2a486601b5d14fe79df7dfe | refs/heads/master | 2023-05-21T23:08:55.365823 | 2020-05-07T07:12:18 | 2020-05-07T07:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pixie.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportEr... | [
"patrick.retornaz@liip.ch"
] | patrick.retornaz@liip.ch |
a9eca09ed76c928a0375568f37bd3d86dedcb313 | 042bc9c982ac55cd4d20d87202c483f2093b6ece | /q8_chocolate_bar_cooling.py | 0111f187f1f8ba762b6418226d9b45c2774fb7b9 | [] | no_license | eduardo-jh/HW22_Heat_transfer_boundary_conditions | b279c8139afc00c1a455cdaf36252dab090d1c5e | 45efa0f61fa9ed3df9b1ddbef7e1a338a4803d26 | refs/heads/main | 2023-04-07T21:18:49.742464 | 2021-04-14T20:00:32 | 2021-04-14T20:00:32 | 357,329,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
BE523 Biosystems Analysis & Design
HW22 - Question 8. Cooling of a chocolate bar
Prof. Waller solution
Created on Mon Apr 12 13:20:01 2021
@author: eduardo
"""
import numpy as np
import matplotlib.pyplot as plt
T_air = 20 # ambient temperature in C
L = 0.012 # thic... | [
"eduardojh@email.arizona.edu"
] | eduardojh@email.arizona.edu |
d70865b359cb8d35ac9b9725e57b5da2f4d29582 | 41814be600f6d85da10a9bc04d422cae74beb0b7 | /code/convertUnits.py | adcbb6054ffac966dfb319a96e83b00d727a11d9 | [] | no_license | alexandru-cohal/Thesis-CBRSolPersonalizationCookingRecipes | eb8ba5e8a51ac9777408b34c6640532cfb4d6bf1 | 8d55cbed90df842503725198ebda8651a6862975 | refs/heads/master | 2023-02-14T03:46:36.593290 | 2021-01-11T22:23:35 | 2021-01-11T22:23:35 | 328,802,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py | unitsList = []
unitsGraph = []
def createGraphUnits():
global unitsList, unitsGraph
print("\n ----- Creating the graph of the cooking measurement units ... ----- \n")
unitsFile = open('units.txt', 'r')
unitsFileLines = unitsFile.read().splitlines()
for line in unitsFileLines:
... | [
"noreply@github.com"
] | noreply@github.com |
4b1d4915c4cda5fd3764804982f5f71cb271c593 | f694182e6b7d1281cacdbe716fcbce0d7419c2b3 | /system_communication_home/admin.py | d2978bcc5757836298bce803f4ef512ae2dd9158 | [] | no_license | Afollower/MiniProjectCommunication | 15cf07926095c7e39a4f0341832ae2a813619d83 | bdc5f8edc3637f1e80d1706de39281879290819b | refs/heads/master | 2022-09-20T08:14:43.971772 | 2020-06-04T09:09:46 | 2020-06-04T09:09:46 | 263,805,545 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from django.contrib import admin
from .models import MPC_problem_sch, MPC_Problem_communication_sch
# Register your models here.
class problemAdmin(admin.ModelAdmin):
search_fields = ('pp_id', 'pp_name', 'project_id')
list_display = ('project_id', 'pp_id', 'pp_title')
class ppcAdmin(admin.ModelAdmin):
... | [
"rencheng_310813@qq.com"
] | rencheng_310813@qq.com |
dfd5f1ab44402a21ebfea238e5b70d78f4c08847 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=79/params.py | bbe63e8c0e1fb04e03a09bb6ca4fadafda488f37 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.530310',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 79,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
7268d1341d3d7a853c011880de49a560eec8eace | 401aae1a063e98e2c98ba366e1a17f36f2bedb5c | /vbpp/tf_utils.py | b5b84eb09cb5213ff5d465d1a32e98155c6786e6 | [
"Apache-2.0"
] | permissive | zcmail/vbpp | 66df32f2d6268a16e8033c7a7b6871ffa9040296 | 00668f3b84b62a9ecf1f580630e8bb59df38ba87 | refs/heads/master | 2022-04-20T01:44:59.946539 | 2020-01-08T16:51:02 | 2020-01-08T16:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # Copyright (C) PROWLER.io 2017
#
# Licensed under the Apache License, Version 2.0
"""
Prototype Code! This code may not be fully tested, or in other ways fit-for-purpose.
Use at your own risk!
"""
import tensorflow as tf
def tf_squeeze_1d(A):
return tf.reshape(A, (-1,)) # TODO should check that it's got the s... | [
"noreply@github.com"
] | noreply@github.com |
62c317d22dbc558e16b7266be9ed1fa5ed9c3425 | b63ffc8eee170387fdb6bf41dde790c24338e80d | /Window_Statistical_Analysis.py | a089f5f349e73233617eb8016e2f98a29ebbd85f | [] | no_license | Taha248/Emotion-Recognition-System | ba143b0b050089dccc08229546f13b85c48ef8d0 | 988b7715bf1a6a6743759fbadfb1e0e312173883 | refs/heads/master | 2020-06-16T20:47:15.260452 | 2019-12-17T08:39:49 | 2019-12-17T08:39:49 | 195,698,964 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 30 14:02:09 2019
@author: Taha.Tauqir
"""
from statistical_analysis import statistical_analysis
import pandas as pd
import os
INPUT_PATH = "C:\\Users\\taha.tauqir\\Desktop\\output\\"
SAMPLE_ID = "SAMPLE0001"
class Window_Statistical_Analysis():
def __init__(self):
... | [
"Taha24888@gmail.com"
] | Taha24888@gmail.com |
48ea3aceba383a0062591d5722cc9cb8cc216f2a | 5b5867437d3f2ed4db9d8d18a90b3c8ad54e03c7 | /Shifts/database.py | 989406afd5b5e263a1b228fbe1a11fe4945193c5 | [] | no_license | amitbb93/AI-Scheduler | c9ff5d340d6e7343e0731dab4d8725ac8397657e | 8d3734d8850465ebe204404fb9cf01d13ee4a8ad | refs/heads/main | 2023-07-13T00:35:52.311869 | 2021-08-25T22:40:46 | 2021-08-25T22:40:46 | 316,464,719 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | import pyrebase
config = {
'apiKey': "AIzaSyDaQDp5xovMLcc7MlIrGzCAVn8K5byshwI",
'authDomain': "ai-scheduler-13579.firebaseapp.com",
'databaseURL': "https://ai-scheduler-13579-default-rtdb.europe-west1.firebasedatabase.app/",
'projectId': "ai-scheduler-13579",
'storageBucket': "ai-scheduler-13579.ap... | [
"amitbb93@gmail.com"
] | amitbb93@gmail.com |
646600322f93ff2c0453d17bf7823470b5dc6892 | 14421a12c4e80395567e676394d369fd9619bd32 | /Scripts/PythonMidLvl/84/84test.py | 06a05233ce41b852f56020436f8510d38948fc20 | [] | no_license | jawor92/Python-Udemy-Mobilo | 7b331e8197233c3116e43e0b3c1110b9b878762e | 8098508835121a1536c2753bc4eedbf17163c93d | refs/heads/master | 2020-12-09T21:39:09.366604 | 2020-01-12T19:31:09 | 2020-01-12T19:31:09 | 233,423,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 6 22:09:49 2020
@author: Mateusz.Jaworski
"""
class MailToSantaClaus:
def __init__(self, presents):
self.presents = presents.copy()
def show_presents(self):
print(self.presents)
mail = MailToSantaClaus(['Teddy Bear', 'Teddy Bear House'])
m... | [
"jaworski92@gmail.com"
] | jaworski92@gmail.com |
f99f4de448083fea0bcdb1d2128c8fd94c735caf | 8aa5ecbedf26847cde34c649f137f24bd997401a | /think_python/think_08.py | f9b78c7d25d49214838f389e9a1c1f32f3d0e216 | [] | no_license | fisherra/python_book_exercises | 40650f50cfc44d2475ec826bebab7eed352587c2 | 6f9210c1043ddc225b2e9354a8e990b55da5792c | refs/heads/master | 2020-03-31T03:50:53.056696 | 2018-12-13T02:08:29 | 2018-12-13T02:08:29 | 151,880,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | # chapter 8 - strings
# strings are a sequence of characters
string = 'yes, this is dog'
letter = string[0]
print(string)
print('-' * 10 )
def letter_by_line(string):
n = 0
while n < len(string):
letter = string[n]
print(letter)
n = n + 1
letter_by_line('yes, this is dog')
print('... | [
"fisherankney@gmail.com"
] | fisherankney@gmail.com |
6c2bda0345755e152e1819fa282be7e05a97e988 | 15e85b4d9527e7a87aded5b3c99ad9c785bca915 | /data-storage-manager-sdk/python/simcore_dsm_sdk/configuration.py | 422f971c74adb284286a59de28d37d9be9f11594 | [
"MIT"
] | permissive | mguidon/aiohttp-dsm | 4161f9977d3dffbb727aa26cce4e9fb347aa4e21 | 612e4c7f6f73df7d6752269965c428fda0276191 | refs/heads/master | 2020-03-30T09:03:49.791406 | 2018-10-02T07:05:35 | 2018-10-02T07:05:35 | 151,058,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,125 | py | # coding: utf-8
"""
dsm-api
dsm api # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import copy
import logging
import multiprocessing
import sys
import urllib3
import six
from six.moves import http_client as httplib... | [
"guidon@itis.ethz.ch"
] | guidon@itis.ethz.ch |
fee008cee099325fe301508912ca78df158a3a07 | 1e8dc50cc12c7ecb03b996e514bb5336d93d62d1 | /cirq/protocols/qid_shape_protocol.py | 870a5042b3ca9fd2577c3162c09a200990c25f1b | [
"Apache-2.0"
] | permissive | rajeshkumarkarra/Cirq | 0a6a4a55bb176b8fdbef836b41b200b1d1711c40 | 5ad06cc7a487ca94436715a3c51b6a50dfd10513 | refs/heads/master | 2020-07-04T01:51:21.883521 | 2019-08-13T02:16:02 | 2019-08-13T02:16:02 | 202,114,207 | 1 | 0 | Apache-2.0 | 2019-08-13T09:49:17 | 2019-08-13T09:49:16 | null | UTF-8 | Python | false | false | 7,441 | py | # Copyright 2019 The Cirq Developers
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | noreply@github.com |
07d07ebf07f2f9bfa38da809ac2fdadf8a27cad5 | 6759fc67268b107259fed45032510ce4436d1f24 | /flaskblog/models.py | edc4ae01a4738a1e9c5d78e337e38877470d881b | [] | no_license | sanpj2292/Flask-Blog | bf5444c9f9832158e1ce6cb51c6b5e17eb8132c4 | 8a5b00e86f4764e96d5a8d07e3da5a6db21a2b91 | refs/heads/master | 2020-05-30T12:04:06.919145 | 2019-06-06T14:46:22 | 2019-06-06T14:46:22 | 189,722,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from datetime import datetime
from flaskblog import db, login_manager
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(20), ... | [
"sankeerth2292@gmail.com"
] | sankeerth2292@gmail.com |
88c860d04a3b88ad9629fcde8f94e6e5c15def5c | fe105e3ed5867c63e57aa9b595fd83450513682e | /examples/line_wiki.py | 1004388f6c0a85bd5f52a62690d60ed7cdeab51a | [
"MIT"
] | permissive | zihaohe123/graph_embedding | 1fb2bb11f29b4f7eda69a97085744c47abb7d36e | 2a6f8214ce4b30b51eb9f1904b64fe782876f010 | refs/heads/master | 2022-05-27T16:35:51.106754 | 2020-03-22T20:48:08 | 2020-03-22T20:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | import sys
sys.path.append('..')
import numpy as np
from ge.classify import read_node_label, Classifier
from ge import LINE
from sklearn.linear_model import LogisticRegression
import matplotlib.pyplot as plt
import networkx as nx
from sklearn.manifold import TSNE
def evaluate_embeddings(embeddings):
X, Y = rea... | [
"zihaohe@HEZIHAOs-MacBook-Pro.local"
] | zihaohe@HEZIHAOs-MacBook-Pro.local |
9dc2f41179046af30e66587a58463d5f16f82133 | a74cbda970626fc69ee362b48b16fb6ae69517f2 | /Exercices/Exo/dico.py | 3b1d44b9b2e1278cbea12a751abd341bb244d8ff | [] | no_license | Halimeda/Python_Pratice | bbe059e018c15fa3c1c8109a8c95ada87cdedc65 | c7411dbf41e7d6db8a3dea14bc17884749c488dd | refs/heads/master | 2020-05-28T10:30:43.000378 | 2019-10-13T11:59:11 | 2019-10-13T11:59:11 | 188,970,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | dico = {}
dico ['name'] = input("Choisi un nom : ")
dico ['power'] = int(input("Détermine ton niveau de pouvoir : "))
print(dico['name'])
print(str(dico['power'])) | [
"h.decock92@gmail.com"
] | h.decock92@gmail.com |
225202c04f0411bbe5f71a70247fc99044c6179c | 76bd865b90dc83107d93e376f863c61807786613 | /Esercizio-1/reducer2.py | 2bf1f5107dc45ac2fac24c9af6392b1c9f2a0561 | [] | no_license | mdelia17/bigdata-historical-stocks | 196993ebd7c703a4251416c10767358c1e0a0172 | d78fbb0c3ef5491c7a432fb46fc7de00c586e5d0 | refs/heads/main | 2023-05-06T15:35:02.414565 | 2021-05-22T15:37:30 | 2021-05-22T15:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | #!/usr/bin/env python3
"""reducer.py"""
import sys
from datetime import datetime
TIMESTAMP_FORMAT = "%Y-%m-%d %H:%M:%S"
def percentuale(a, b):
return float("{:.5f}".format(float((b-a)/a*100)))
ticker_2_set = {}
for line in sys.stdin:
line = line.strip()
ticker, open, close, low, high, date = line.... | [
"gianluca@192.168.1.47"
] | gianluca@192.168.1.47 |
150f2cb86820cff4acc1de49013f8a9a3dcaae95 | d81c593d93b3496f42bd7c425fa793760797ef3b | /leet-problems/344-reverse-string.py | ce40b107d35eae1ac3242cc35a5bec47e29931c5 | [] | no_license | diegoaleman/ciu-old | 335f79d2b704bb919dcbd5988912f037682f99f1 | 0a8e00dc0dc885561cf9fa7e58a1a2f847e4ffdc | refs/heads/master | 2020-04-04T21:00:16.763124 | 2019-04-08T03:11:42 | 2019-04-08T03:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | class Solution:
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
middle = len(s) // 2
length = len(s) - 1
l_s = list(s)
for x in range(middle):
l_s[x], l_s[length - x] = l_s[length - x], l_s[x]
s = ''.join(l_s)
... | [
"diegoalemtz@gmail.com"
] | diegoalemtz@gmail.com |
9bf89c7da6c1192e8c8268e53934744bdeeae1ae | 4b6e6435873402a9d6ba27e243d290559a91d05b | /RiggingTool/Modules/Animation/circleControlStretchyIK.py | 89a8706804707d49c2317658038cc78583aad41b | [] | no_license | pouyaz123/Python-character-pipeline | 203f6c859137e30b49b18c666ab795e6bbdfd788 | d0703a5df18818d027346e7dc713e41b503f0997 | refs/heads/master | 2021-01-22T23:26:42.230842 | 2014-11-11T00:33:32 | 2014-11-11T00:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,377 | py | CLASS_NAME = 'CircleControlStretchyIK'
TITLE = 'Circle-controlled Stretchy IK'
DESCRIPTION = 'This module provies stretchy IK on the joint chain,with the ability to lock the stretchiness with a 0->1 slider value. IK twist is controlled by an adjustable circle rotation control.'
import System.utils as utils
reload(u... | [
"pouya_zadraf@yahoo.com"
] | pouya_zadraf@yahoo.com |
e5df317cfa1253b25b744ccfe00c7f732df1c379 | 87543720eb7d8d83a5bfdfbeed5981ae78193bb8 | /gitweb/bin/pygmentize | bd1a9886ae8a52bdb1880bac84109c727432d971 | [] | no_license | zlynn247/Website | ad365d4d8bfa70bfa145ed39d8187574e2a821a5 | 41a448cdbc9b52477cf12fcfe21be241b3b6d8b4 | refs/heads/master | 2020-04-02T12:36:06.882758 | 2018-10-24T05:07:57 | 2018-10-24T05:07:57 | 154,441,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/home/zach/Documents/Projects/code/PythonWebsite/gitweb/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zacharyslynn@gmail.com"
] | zacharyslynn@gmail.com | |
269b37764f29cf5798a560e87a0a3951a3c2eb2b | 0a2f8c037d1128a5776c97754f36afed53044041 | /article/models.py | ab3704606c0c0eda7e0aa9a3e0f1070f6da9290f | [] | no_license | dhgillani/DjangoSampleAdminPanel | a5a70bdf26305ebffbeddcfb1e415157db82a1b8 | c4cf5ab075a0a46c8f5a1673f277a44668d349ea | refs/heads/master | 2020-03-11T13:32:57.319419 | 2018-04-18T08:20:33 | 2018-04-18T08:20:33 | 130,028,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.db import models
# Create your models here.
class Article(models.Model):
article_id = models.AutoField(primary_key=True)
article_heading = models.CharField(max_length=250)
article_body = models.TextField()
| [
"dhgillani@yahoo.com"
] | dhgillani@yahoo.com |
d7783685336f1bf40bc89a0ace6650f787ac65a5 | 4cb66808e193853e234f14df348a320b9321c445 | /temp.py | 753025731225fa1f9abd25363c2e82cf9655dba2 | [] | no_license | Nilanshrajput/Inter-IIT-Techmeet-Vision-Challenge | f75dc6bbe89cf74e2902ac9bd39cde0c022e74a2 | b6cfd09429f6e3bcdb717717ef439abe020ac68f | refs/heads/master | 2020-04-01T04:41:53.074598 | 2019-06-13T18:27:31 | 2019-06-13T18:27:31 | 152,873,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
train = pd.read_csv('../input/sign_mnist_train.csv')
test = pd.read_csv('../input/sign_mnist_test.csv') | [
"rajputnilansh@gmail.com"
] | rajputnilansh@gmail.com |
ed46b8a0637f0df523b2f2527f0ca62fc2afa03e | 0d3cfc74f6826be269be42b3058347cd37798f81 | /forca_v1.py | 7992f54ead4e23f2a0a7df893a3a7228c9adef42 | [] | no_license | aschaves1976/dsa-labs | 486b4e14be3d09c4e332a0363d495a273d616a19 | 14def7b7f3ef32dc4c3f737f06ae6f7e6216e0ed | refs/heads/master | 2022-12-09T11:23:53.400910 | 2020-09-11T19:17:00 | 2020-09-11T19:17:00 | 291,046,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,872 | py | # -*- coding: utf-8 -*-
# Hangman Game (Jogo da Forca)
# Programação Orientada a Objetos
# Import
import random
# Board (tabuleiro)
board = ['''
>>>>>>>>>>Hangman<<<<<<<<<<
+---+
| |
|
|
|
|
=========''', '''
+---+
| |
O |
|
|
|
=========''', '''
+---+
| |
O |
| |
|
... | [
"alessandro.chaves1976@gmail.com"
] | alessandro.chaves1976@gmail.com |
f6e08f44f8601089857b58d9636e960c445525b9 | 1d59aee62718676ae18054f3d3b0f8cdb647dfd3 | /zui/bin/auth.py | a3f1094922c3d06c6182bbbf51a6da6ffcbe3a78 | [] | no_license | actank/zmon | 70f3d3c0de09bde85ffabb6bcf4571049186f663 | b59811f7cd28291cfbadf7db326c4e4f003ee15d | refs/heads/master | 2021-01-22T16:44:22.070839 | 2014-12-03T11:41:15 | 2014-12-03T11:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | #!/usr/bin/env python
#-*- coding:UTF-8 -*-
import json
import web
import time
import os,sys
import logging
import urllib
import zmonlib
#SSO_URL = 'http://uuap.baidu.com'
SSO_URL = 'http://itebeta.baidu.com:8100'
render = web.template.render('templates')
class auth(object):
#登陆后的回调函数
def GET(self):
... | [
"zhaixinrui@163.com"
] | zhaixinrui@163.com |
3c79582a91883b74e451e0e2255658243d00c489 | c1c0f44de906af90da1aeafa35c3780320b292ac | /setup.py | 1c0a1658385a12ff952286a5f50ee6acb966aa69 | [] | no_license | Gargeebhase/Discogs-Python-Wrapper | 696ca79c39d29323bf61635ecba1b7af8873ec67 | 67581337378346b308871310f862d93450e673b6 | refs/heads/master | 2023-05-25T05:13:26.132079 | 2020-06-09T04:01:26 | 2020-06-09T04:01:26 | 270,838,242 | 0 | 0 | null | 2023-05-22T20:44:19 | 2020-06-08T21:51:17 | Python | UTF-8 | Python | false | false | 596 | py | import pathlib
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
# This call to setup() does all the work
setup(
name="discogs-wrapper-python",
version="1.0.1",
packages=["discogs_... | [
"bhase@usc.edu"
] | bhase@usc.edu |
14b7d15f64f419181184d6af5c739890b8d7acaf | 12a72da6848ae461b995ec2fc6c4e1827be82803 | /common/monitor_bak.py | 69ab77e717e2eebdea993ff2d36e9666824bb3cb | [] | no_license | lim1942/coin_helper | f3ed40c07a049a00f052dfa3e59cee7eefe969cf | d34ce363371fd964d8c46d5dd04ca7c5eb7d35b4 | refs/heads/main | 2023-04-30T10:46:03.231440 | 2021-05-25T12:15:49 | 2021-05-25T12:15:49 | 366,247,314 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,442 | py | import json
import redis
import requests
import traceback
from threading import Thread,Lock
from datetime import datetime,timedelta
from coin_helper.settings import REDIS_URL
class RedisTool(object):
def __init__(self):
self.R = redis.Redis.from_url(REDIS_URL,decode_responses=True)
self.P = self.R... | [
"lim1942@163.com"
] | lim1942@163.com |
1696222304764094db9ce14ca708e4b6dae565b5 | 9287ddca2559df9df107f1ffab86d7132e5ebb93 | /lin.py | dfb06e8f8716719295f5296acbceb5333c6ba3fd | [] | no_license | QQYES/Keras-Test | 5dc9b20d763ab2a6be11a7d65bfacfae28b3add4 | 5f3b2285b560bb2e0facead73c1902112cd285bc | refs/heads/master | 2021-01-16T17:52:57.701061 | 2018-05-14T09:38:13 | 2018-05-14T09:38:13 | 100,020,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | file = open("onduty.csv", encoding='utf-8')
while 1:
line = file.readline()
if not line:
break
fields = line.split(",")
if (len(fields) < 4):
pass
duty_name = fields[0]
duty_type = fields[1]
duty_date = fields[2]
print('line:{}'.format(line))
print(duty_name, duty_typ... | [
"qqyesqq1@126.com"
] | qqyesqq1@126.com |
00bbe7b9bc5e114e278635b8cfb2f799516df498 | d538b6bae84256e241ebdc976bbe1a0d0b4ec7ee | /Warehouse_management/settings.py | 9f59ad4d3f82c8e678357382ec73d940ee0a6b83 | [] | no_license | Sangeethsajan/WarehouseManagement | 871b3661c74922f7b524232867e5dc5d7b3dee59 | 30731a7538fa6278e9744c3060aa93f7e37fed79 | refs/heads/master | 2023-02-10T03:59:19.142042 | 2021-01-08T15:23:03 | 2021-01-08T15:23:03 | 327,938,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | """
Django settings for Warehouse_management project.
Generated by 'django-admin startproject' using Django 1.11.29.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
... | [
"31395590+Sangeethsajan@users.noreply.github.com"
] | 31395590+Sangeethsajan@users.noreply.github.com |
6d04ee8916683dc219aa0d4d5e414bca50305d47 | 625364caf0b32c6f1340f481400f0f0a40072477 | /downloads/convertMyData.py | fd97cd95eafe3a9b6b10f7cb4df7300799c32679 | [
"Apache-2.0"
] | permissive | VolumeRC/volumerc.org | bc4d66896d421f08b7b2fbb1cb3a26977748dbe8 | b11f775caa2fe016b0baf1ae9ed1183ceb740f45 | refs/heads/master | 2020-04-12T02:23:47.568603 | 2017-06-07T14:57:33 | 2017-06-07T14:57:33 | 20,882,795 | 6 | 2 | null | 2016-07-12T09:42:29 | 2014-06-16T11:42:22 | JavaScript | UTF-8 | Python | false | false | 5,409 | py | #!/usr/bin/env python
print """
This code was created by Luis Kabongo, Vicomtech-IK4 Copyright 2012-2013.
This application converts the slices found in a folder into a tiled 2D texture
image in PNG format (it assumes all files in the folder are of the same type
and dimensions). It uses Python with PIL, numpy and pydi... | [
"arbelaitz@gmail.com"
] | arbelaitz@gmail.com |
24bf35686d2947132b3bc7a59e415e2e84e986d7 | 9b0c67a5813abbbfd4670b9b1689de83dab580ae | /seed.py | d03e7782f7a78835b918a85e98fa3c41bd30a056 | [] | no_license | galloway118/project-gold | 155aa8f9203d33bf4dc5443c08fa3d5f42fa89b2 | 285aebcdb30cd2f2d6323bbab7a1606bb481eac3 | refs/heads/master | 2020-12-22T09:37:05.371519 | 2020-01-28T13:25:06 | 2020-01-28T13:25:06 | 236,740,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | from BookModel import Book, User
from BookModel import db
Tom = Book(name="chris", price="2.99", isbn='292020302')
Rish = Book(name="Rish", price="2.99", isbn='292020302')
Jack = Book(name="Jack", price="2.99", isbn='292020302')
Rhianon = Book(name="Rhianon", price="2.99", isbn='292020302')
Amelia = Book(name="Amelia... | [
"galloway118@icloud.com"
] | galloway118@icloud.com |
032766afc8f0bd00858d9f6651c02ebf4e5264df | 49367dfe75964bc0ba664c1d7080526950708949 | /tests/test_dirac_transport_contact_width.py | 0335ea1778884f0422454065503a7012c62f6520 | [
"Apache-2.0"
] | permissive | mirzaelahi/quest | 93ae84c875430fa56e1de7235b5624e2bbb1e812 | c433175802014386c2b1bf3c8932cd66b0d37c8e | refs/heads/master | 2021-01-12T13:31:48.121874 | 2016-02-21T00:58:35 | 2016-02-21T00:58:35 | 69,840,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,388 | py | #!/usr/bin/python
"""
TI Surface transport simulator for p-n junction using QMICAD.
Author: K M Masum Habib <masum.habib@virginia.edu>
Last update: 03/26/2014
"""
import sys
import numpy as np
import math
from math import pi, tan, cos, sin
import qmicad
from qmicad.linspace import linspace
from qmi... | [
"masum.habib@gmail.com"
] | masum.habib@gmail.com |
5d3a3b7c6c08b586432ba52bd164c433343d9646 | 1603072ba2e7e0d3a6beb6314e25a4ff75b7b02e | /myRandom.py | d1460b7c0d602beecd8e0101377ad875645c4c0b | [] | no_license | me-jyotii/OneMonth.github.io | 20a78412e1add3817bb4fc84b8f9b0d2d85b802b | 0f33bc28980a5dca4d637f80931f20f40a9b2b03 | refs/heads/master | 2023-02-28T21:23:10.932276 | 2021-02-13T11:26:52 | 2021-02-13T11:26:52 | 338,558,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import random
bars = ["Rice",
"Pulaw",
"Puri",
"Kheer",
"Biryani",
"Chicken lolipop",
"Momos"]
people = ["Fish",
"Tadka",
"Halwa",
"Puwa",
"Souce",
"Chawal",
"Red Chilli Souce"]
random_dish1 = random.choice(bars)
random_dish2 = random.choice(people)
# random_friends = rando... | [
"jyotisjr76@gmail.com"
] | jyotisjr76@gmail.com |
a1f9641676acef26b8880cb6b32dc2290e304628 | d47b058c8e2d7509aea5e005f76fcf5d7fbff444 | /testing/test_collection.py | 5a1e9a0521ebde6683b2b11139ad9566d5cb4852 | [
"MIT"
] | permissive | geraldoandradee/pytest | 51296c2736ca38accee875f62c57127f3cd1e3a8 | 41ab848fa6716b35aa5f8eb92972e6a9721016d8 | refs/heads/master | 2020-04-09T20:41:54.392752 | 2013-10-10T22:01:56 | 2013-10-10T22:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,224 | py | import pytest, py
from _pytest.main import Session
class TestCollector:
def test_collect_versus_item(self):
from pytest import Collector, Item
assert not issubclass(Collector, Item)
assert not issubclass(Item, Collector)
def test_compat_attributes(self, testdir, recwarn):
modc... | [
"holger@merlinux.eu"
] | holger@merlinux.eu |
ce3559546eb51aef224614fc873b34db20587221 | 9e13c5d52e0da95480af9eeb690e4f34f3c56739 | /lecture2/conditions.py | a7dcca8fc8ff88744e7fba35fa29b50c1c3227d7 | [] | no_license | kylehorton33/cs50webdev | 24ac71ea7084cd67ef7eb6f4444a57509500491e | 0852b971ccd51021b9a7a8304b259434acc1a7e3 | refs/heads/master | 2023-02-21T23:11:31.466501 | 2020-04-29T18:26:47 | 2020-04-29T18:26:47 | 255,963,260 | 0 | 0 | null | 2023-02-15T23:12:19 | 2020-04-15T15:42:33 | HTML | UTF-8 | Python | false | false | 107 | py | x = -28
if x > 0:
print("x is positive")
elif x < 0:
print("x is negative")
else:
print("x is zero") | [
"kylehorton33@gmail.com"
] | kylehorton33@gmail.com |
f11f188d17c63ae96e4f7b9adc85b020bca8843e | 2e609adb772399a08b21369f745503595d2a9761 | /JAN21_Codechef/DIVTHREE.py | 08bab7cd1930a8aed54beaa852961fdd8ca88d2b | [] | no_license | This-is-NB/CodeChef | 42c7380c364aa2d4009d088cafdc48f17e0a3be5 | 8f76be55d5d1d6ebe834f29f46a4be9dd2c904c7 | refs/heads/main | 2023-07-25T17:53:50.529439 | 2021-08-29T11:12:40 | 2021-08-29T11:12:40 | 401,021,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | for _ in range(int(input())):
n, k, d = map(int, input().split())
a = list(map(int, input().split()))
print("**", end="")
print(min(sum(a)//k, d))
| [
"57351822+This-is-NB@users.noreply.github.com"
] | 57351822+This-is-NB@users.noreply.github.com |
9ea9ef27a581e31b26cdfc98389f67fe44e661ac | 5346c931a5133ef036c7b5a89452bd0222b1cd92 | /SocialMedia/App/migrations/0047_auto_20200519_0121.py | 9631a4bf440728aa72013c54470779801214624b | [] | no_license | the-pythonists/letsChat | 7cac4af6c9b2e542f932be3f2715c4a8f7cbbc66 | df64d439ada9f5b9def2d566cd920a82d9fe3cab | refs/heads/master | 2022-11-14T14:11:57.085296 | 2020-07-01T18:07:59 | 2020-07-01T18:07:59 | 261,536,469 | 1 | 0 | null | 2020-05-29T17:49:20 | 2020-05-05T17:15:18 | HTML | UTF-8 | Python | false | false | 600 | py | # Generated by Django 3.0.3 on 2020-05-19 01:21
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0046_photos_album'),
]
operations = [
migrations.AddField(
model_name='album',
name='date',
... | [
"mohammad.danish2694@gmail.com"
] | mohammad.danish2694@gmail.com |
9f8718228467350e2f519935d6a0cced5617f4d2 | 7b2830cfeda670fb70cb09daed4db370cc393e04 | /python/the_best_from_blast.py | 694584fe0a32d744218d7a651a4cbce14e092c49 | [] | no_license | nanshanjin/script | 579d08e75cd5aa6e4bf4e558cefa581c2dc99f2e | c9fbfceca6c23ba21d908eaf91af5ec5fcdbecc3 | refs/heads/master | 2022-03-15T19:56:30.958094 | 2019-11-21T05:20:23 | 2019-11-21T05:20:23 | 53,825,691 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | import os,sys,re
def addtodict2(thedict, key_a, key_b, val):
if key_a in thedict:
thedict[key_a].update({key_b: val})
else:
thedict.update({key_a:{key_b: val}})
mydata=file("At.vs.GbA.1e-5.m8.blast")
dicts={}
dicts2={}
for line in mydata:
line=line.strip().split("\t")
dicts2[line[0]+l... | [
"nanshangogo@163.com"
] | nanshangogo@163.com |
05b60a337fe7a12315b91c9f03f05cbc27accb90 | 5e48579f65ab45469469a5cf0cbef82bf2323585 | /CovIdMX withREact/Covid19AcuteMx_Support_App/account_app/forms.py | 015094a334d599f574668d60ee456db90449a046 | [] | no_license | jayquake/React-Applications | 9e5786e4402dfe9f4e33d4daef657adb40bae1c8 | b9f27872846e7e8b7da94f77c2120755909db572 | refs/heads/master | 2022-12-30T04:45:11.591814 | 2020-10-11T13:29:05 | 2020-10-11T13:29:05 | 284,446,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,164 | py | from django import forms
from django.db import transaction
from .models import User, Subject, DoctorProfile, PatientProfile, EMTProfile
from django.contrib.auth.forms import UserCreationForm
from . import models
class PatientRegisterForm(UserCreationForm):
interests = forms.ModelMultipleChoiceField(
query... | [
"jayquake@gmail.com"
] | jayquake@gmail.com |
3f6521bf8afa7ea008e775bbaf415bf9906cbac2 | 97aac8c77fb7f2ad9bf8bfd24c320ba08491f723 | /csv_quote_game.py | 007513171c1681e87b54e63b7811ae0c4a0606dd | [] | no_license | agparkes/python_scraping_game_app | ac3800f56bfe2baf29e4657e15cc87745fd3b240 | 16f9c5002bc5e799157880c9e0a11a29d7513361 | refs/heads/master | 2022-06-16T14:09:08.767821 | 2020-05-12T00:44:12 | 2020-05-12T00:44:12 | 261,931,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | # http://quotes.toscrape.com
import requests
from bs4 import BeautifulSoup
from random import choice
from csv import DictReader
BASE_URL = "http://quotes.toscrape.com"
def read_quotes(filename):
with open(filename, "r") as file:
csv_reader = DictReader(file)
return list(csv_reader)
def start_... | [
"agparkes413@gmail.com"
] | agparkes413@gmail.com |
b56c667458fbe3f787e21688fed454e706fab48a | 64f4ae3ceec4335e11800c1ffd12d0f651cba6e3 | /codes/graphs.py | 274d806807eff4988514bf761de73bbf1fc8326f | [] | no_license | THUNLP-AIPoet/WMPoetry | b83c922c6a4bbbeb673a69102efbbe6d0b8b9aa3 | d88c7d4e49b1e48d6c23f9cda12b8dbef59beac1 | refs/heads/master | 2022-10-08T03:22:30.377450 | 2020-06-11T15:48:03 | 2020-06-11T15:48:03 | 271,443,952 | 38 | 14 | null | null | null | null | UTF-8 | Python | false | false | 18,392 | py | # -*- coding: utf-8 -*-
# @Author: Xiaoyuan Yi
# @Last Modified by: Xiaoyuan Yi
# @Last Modified time: 2020-06-11 20:16:17
# @Email: yi-xy16@mails.tsinghua.edu.cn
# @Description:
'''
Copyright 2020 THUNLP Lab. All Rights Reserved.
This code is part of the online Chinese poetry generation system, Jiuge.
System URL: ht... | [
"mtmoonyi@gmail.com"
] | mtmoonyi@gmail.com |
1a7048886021c154c279d665d513e857da759255 | 95e9ec4b3b0d86063da53a0e62e138cf794cce3a | /webroot/dqb/dqb/base/myjson.py | e6843b72d13a46c5fb705787579293028f384d2f | [] | no_license | wjl626nice/1902 | c3d350d91925a01628c9402cbceb32ebf812e43c | 5a1a6dd59cdd903563389fa7c73a283e8657d731 | refs/heads/master | 2023-01-05T23:51:47.667675 | 2019-08-19T06:42:09 | 2019-08-19T06:42:09 | 180,686,044 | 4 | 1 | null | 2023-01-04T07:35:24 | 2019-04-11T00:46:43 | Python | UTF-8 | Python | false | false | 1,822 | py | from django.shortcuts import HttpResponse
from rest_framework.renderers import JSONRenderer
from base.errcode import err_number
class JSONResponse(HttpResponse):
"""
用于返回JSON数据.
"""
def __init__(self,code,data='',total=1,count=-1,**kwargs):
kwargs['content_type'] = 'application/json'
... | [
"18537160262@qq.com"
] | 18537160262@qq.com |
500f911b398fe52f8e014570e7384f3c7ded6399 | c658ecefe15376237f8ea23adf186a14f2efa3a6 | /pre_config/initial_config/initial_config.py | 566798d321c1b80c00b0482195b8f749f55c23a0 | [] | no_license | mart82/Cloud-Services | b5ff7af061c8bc380da39c2b95fe6f215d53181f | ad14232b37ccd75c7214c72b9ebb39e95461c62a | refs/heads/master | 2021-05-11T12:36:39.941456 | 2018-01-26T15:30:47 | 2018-01-26T15:30:47 | 117,662,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from jnpr.junos import Device
from jnpr.junos.utils.config import Config
import yaml
device=Device (host="10.1.1.1", user="root", password="Jun05!")
device.open()
cfg = Config(device)
cfg.rollback()
s=open('test-startup.yml').read()
myvars=yaml.load(s)
cfg.load(template_path='test-startup.j2', template_vars=myvars, for... | [
"noreply@github.com"
] | noreply@github.com |
45529f80985c513bb14b4d7606d761fca5dbb3da | ccf136bcae86a86ea06950b608a2f1560e75ad3f | /frida_test/stringhook.py | 3b448a42bf5c78e2a4b6c3830d582759f53054ed | [] | no_license | mr6r4y/re-test | ebdbb9ede5c6ba59751b502b2a917dff9d218aac | 29756093f6ca869b9527ea650d3ac6a1e60a07e9 | refs/heads/master | 2020-12-30T15:20:57.253567 | 2020-12-12T17:53:39 | 2020-12-12T17:53:39 | 91,121,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from __future__ import print_function
import frida
import sys
session = frida.attach("hi")
script = session.create_script("""
var st = Memory.allocUtf8String("TESTMEPLZ!");
var f = new NativeFunction(ptr("%s"), 'int', ['pointer']);
// In NativeFunction param 2 is the return value type,
// and param 3 is an arr... | [
"mr6r4y@gmail.com"
] | mr6r4y@gmail.com |
2395a6322bb5d6721661f897482429f74cbc7fb7 | 67308192424d52fa6f795cebed7c64411619768b | /oop/magicMethod.py | 3b1196bc07c29f23f7dece24609f2708fa86e113 | [] | no_license | s654632396/learnPython | 4cea82b1eb4af47857f0b27f03e441380242550e | b170a5137e7773d14248137fb4a0dfeecc483af5 | refs/heads/master | 2021-01-20T07:43:09.444182 | 2017-05-04T15:23:39 | 2017-05-04T15:23:39 | 90,036,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | # coding=utf-8
# 特殊方法 / 魔术方法
# 用于 print 的 __str__
# 用于 len 的 __len__
# 用于 cmp 的 __cmp__
# ...
# 定义在class 中
# 不需要直接调用
# 有关联性的特殊方法都必须实现,如:
# __getattr__
# __setattr__
# __delattr__
# __str__ & __repr__
# 将一个类的实例变成 str, 需要实现特殊方法 __str__()
class Person(object):
def __init__(self, name):
self.name = name
... | [
"s654632396@hotmail.com"
] | s654632396@hotmail.com |
07c8d6739a953f5ee1ed1512aa96f4affe98278d | c557afad19bec111e5dbc128f7e64a97997519ad | /[yuya]/bin/pip3 | 09dc3292d9d9db960b951653f583d8e4882467ec | [] | no_license | yuyayoshidatokyo/Aidemytraining | 4bb39f7522cd81d4b54f68060e61f8c944497308 | dae343843e47be4b63399b33625371936aefaf96 | refs/heads/master | 2020-03-20T13:43:44.353288 | 2018-06-15T08:59:10 | 2018-06-15T08:59:10 | 137,464,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | #!/Users/yuya/Desktop/[yuya]/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"a15.r5th@g.chuo-u.ac.jp"
] | a15.r5th@g.chuo-u.ac.jp | |
433d7d3faf281d73df9a7ed24bac6ed44a72b96c | f6cae515a4718b9f5165f739366baebf7bb50de3 | /hazard_feed/migrations/0007_emailtemplates.py | 2e0c69484a4404e82a7c8daff6aad12feaf1ecc6 | [] | no_license | hitnik/pogoda_feed | 1781a9a1a7d1fb7259e0711ac2778881a0dfd880 | ce5fe98c4200946330ae65f1b1df7ebcbec5c864 | refs/heads/master | 2022-12-10T17:57:27.488518 | 2021-07-15T19:52:49 | 2021-07-15T19:52:49 | 235,610,147 | 0 | 0 | null | 2022-12-08T07:46:26 | 2020-01-22T16:04:54 | Python | UTF-8 | Python | false | false | 793 | py | # Generated by Django 3.0.2 on 2020-02-06 04:40
from django.db import migrations, models
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('hazard_feed', '0006_weatherrecipients_uuid'),
]
operations = [
migrations.CreateModel(
name='EmailTemplate... | [
"hitnik@gmail.com"
] | hitnik@gmail.com |
2411b3f6bbfe5e5ffedcfd7bed87219288f96d15 | ce9933202516a92da5b6d05137e260baa2f70e9b | /kkcabinet/__init__.py | f06366173f540423958eb0b37b3f06a16ae51076 | [] | no_license | sushenzhang/KKCabinet_project | a067bb1e4b481cbf73861ae76cefecadac859dab | 1b9064102ad8b0cda959a2a05bb0120ced2bffdb | refs/heads/master | 2023-01-09T06:30:12.950246 | 2020-04-04T14:43:49 | 2020-04-04T14:43:49 | 249,875,843 | 0 | 0 | null | 2022-12-27T15:37:04 | 2020-03-25T03:14:41 | HTML | UTF-8 | Python | false | false | 31 | py | """
Package for kkcabinet.
"""
| [
"zhangsushen0@gmail.com"
] | zhangsushen0@gmail.com |
b1ce683f3b89b48ea7afa28f56b7fc8eaee1e74e | 502cfb137f5b04f70a29eb28d787582f7fc2b062 | /test.py | 44eff914d4efb3ccbc360a09e5e3bdbac81262d4 | [] | no_license | Uncle-Yuanl/YOLOv3-tensorflow2.0 | 1c5ca2981e41f11aa9ed227760b1d10c8adadf91 | 41d52d449cc8113b0a781b6bc497a15c35eff502 | refs/heads/master | 2022-09-15T17:12:06.046537 | 2020-05-27T01:20:23 | 2020-05-27T01:20:23 | 258,966,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,474 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 13 12:56:24 2020
@author: Administrator
"""
from core.yolov3 import YOLOv3, decode
import core.utils as utils
from core.config import cfg
import tensorflow as tf
import cv2
import numpy as np
import shutil
import os
# 确定参数
INPUT_SIZE = 416
CLASSE... | [
"noreply@github.com"
] | noreply@github.com |
91d0813852bf8b67c200a9d2a5cb21238342eedc | ed314b839f2519d982b0091ea3b2b3cc8d4243b1 | /成绩判断动动手1.py | 332d1821290e68930e0db42fb5fe2bb28342e790 | [] | no_license | RayYiHang/pycode | 2a18bfa82e4453cf8a7b3891965f9813c2e66aaf | bb397e64b93cb189f6fc5d040fe8dfd1693ea548 | refs/heads/master | 2021-02-15T02:43:10.587981 | 2020-03-04T12:20:50 | 2020-03-04T12:20:50 | 244,857,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | score = int(input("请输入分数"))
if 80 > score >= 70:
print("C")
elif 90 > score >= 80:
print("B")
elif 100 >= score >= 90:
print("A")
elif 70 > score >= 60:
print("C")
elif 0 < score < 60:
print("D")
else:
print("输入错误") | [
"leiyihang1234@163.com"
] | leiyihang1234@163.com |
08d5d500388fe07a98eca25fb7e0cc15ff850948 | c9499ae048d31f9e37b143500728ca55d8a3e6e3 | /MainPackages/RunDSS.py | 5acbcadcea9370cdb1158d70179c69eb13c1866d | [] | no_license | fprystupczuk/HPET_PowerFlow_Model | c7eadf6e3a3942736ae3caff8ccc62f45429d9a6 | 671f5a3085094bf135753c9cda1edb511dc80f65 | refs/heads/main | 2023-04-26T21:14:30.700547 | 2021-05-25T11:15:49 | 2021-05-25T11:15:49 | 370,665,533 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,402 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import random
from MainPackages.SolvePET import SolvePET
from MainPackages.SolveHPET import SolveHPET
from MainPackages.Extract_DSSmonitors_data import Extract_DSSmonitors_data
def RunDSS(os,np,pd,math,Main_path,model,Network,Feeders,Vcontrol,PV_penetration,ElectricVars,... | [
"nrvfederico@gmail.com"
] | nrvfederico@gmail.com |
5769534b17fe63983051a371daade258486785d2 | 585ce7b85c0db2f36ff3da3a1a12badcbe61e59d | /utils/.svn/text-base/PathHelper.py.svn-base | a35af1a1a9fd42c94655add1fdc935326389b788 | [] | no_license | cash2one/TTEngine | 41c9fb2ecad8b03c1b8002f6c9abf9978049e933 | 1f2525902417cfafbb5086fea9d730f0d92e84f2 | refs/heads/master | 2021-01-20T00:02:45.209609 | 2015-06-30T03:20:48 | 2015-06-30T03:20:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | #coding=utf8
__author__ = 'xj'
from utils.OsHelper import isWindows
import os
def getConfigDir(os):
return "server/config/"
def getMonitorDir(os):
return "server/monitor/"
def getLocalDir(os):
return "server/config_local/"
def getLicensePath(os, xtDir):
if isWindows(os):
return "bin/lice... | [
"2928807616@qq.com"
] | 2928807616@qq.com | |
11d574873016cebec8bc817967783c8384d642f8 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/opinkerfi-adagios/allPythonContent.py | 2c936d37e8f3eb56e3d4cf91652d8ed5eed39dfd | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462,213 | py | __FILENAME__ = auth
# Adagios is a web based Nagios configuration interface
#
# Copyright (C) 2014, Pall Sigurdsson <palli@opensource.is>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foun... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
0e40086e71cd625c8401d64c50458cd0a2ac5370 | c44a219f2465db28abdbe7b147a13e77109f8573 | /pygameGUI.py | 37c16ad6ef298b8727a25ae81abc50a8080e4029 | [] | no_license | CoreTaxxe/pygameGUI | c9ecbeac8cfc488534d237624d204031857189e1 | 6859a3cc5d52a3534988e919ddc4529f40c11476 | refs/heads/master | 2020-05-15T23:29:39.218472 | 2019-04-21T16:15:25 | 2019-04-21T16:15:25 | 182,555,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from button import Button
from label import Label
from inputbox import InputBox
from fontobjects import render_text | [
"47256718+CoreTaxxe@users.noreply.github.com"
] | 47256718+CoreTaxxe@users.noreply.github.com |
9b1eca8722ab502f4b29d6c68e3f4f0f937f5538 | 5dc8d8dfa3076e3f2616a7c233ae0298bc551986 | /RPi/Assignment5.py | 8fbc2c0343f24c3b7bda49105db705777b6282a6 | [] | no_license | mdruiz/EECS-113-Hardware-Software-Interface | e1062bea69423e9636ddbace57c4e330c05aa78d | 80b3350302b3d2f21c18025f7783bc25d4ddeddf | refs/heads/master | 2021-01-01T17:40:48.214643 | 2017-07-23T22:51:50 | 2017-07-23T22:51:50 | 98,129,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import smtplib
from email.mime.text import MIMEText
import datetime
import socket
import time
import getpass
import RPi.GPIO as GPIO
# Account Information
RECIPIENT = 'xxxxxx@gmail.com' # Email to send to. (CAN BE ANYTHING)
SENDER = 'xxxxxx@gmail.com' # Email to send from. (MUST BE GMAIL)
PASSWORD = ''
... | [
"noreply@github.com"
] | noreply@github.com |
5219f4343b19955932f9428cd6389673b4742d66 | 3a987a3db71e4f601cd7b1810be432e9dc33599b | /day8/多线程/守护线程.py | 7022da15ab13620775fb9dbb38908ae268151e1a | [] | no_license | jiaziming/new-old | da8332bfe33f597e3cb3fbeeeb61c22e47760727 | cd120eb88a9e52fdf7f079bcac6fff28c2cc2207 | refs/heads/master | 2020-04-22T09:40:21.429429 | 2019-04-04T08:18:26 | 2019-04-04T08:18:26 | 170,280,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!/usr/bin/python
# -*-coding:utf-8-*-
import time,threading
def run(n):
print('(%s) -------runing -----\n' %n)
time.sleep(2)
print('----done----')
def main():
for i in range(5):
a = threading.Thread(target=run,args=[i,])
a.start()
#a.join()
print('starting thread',a.... | [
"jiaziming123@sina.cn"
] | jiaziming123@sina.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.