blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c1805d0145a779f1ed3d32b9e1c05c6bc8a5136 | 579b0d3df09af1341f3c83bf68d46212aa98dbc6 | /src/CsvDataImport.py | 6d0ce182546d044a7a568218e1c80cc374647db8 | [] | no_license | phowson/financialtsgan | 9234b18865eb9608a3e2425f5c8bdfdd0fdbd0a5 | eaf9bf689c1ab8bf1856c2b0601c3ad6169a4e32 | refs/heads/master | 2021-08-17T00:59:10.769735 | 2017-11-20T16:23:16 | 2017-11-20T16:23:16 | 108,844,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | '''
Created on 30 Oct 2017
@author: phil
'''
import csv
from datetime import datetime
def loadCsv(fileName):
timeSeries = [];
with open(fileName) as csvfile:
spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
topRow = spamreader.__next__();
... | [
"phil@howson.net"
] | phil@howson.net |
d5e6beb44c4d3eabfbc1f90c7e6154546b5390be | 3a85089c2498ff04d1b9bce17a4b8bf6cf2380c9 | /RecoMuon/TrackingTools/python/__init__.py | 46c2d8c095c7740e0d099c19bde145fc026b6c15 | [] | no_license | sextonkennedy/cmssw-ib | c2e85b5ffa1269505597025e55db4ffee896a6c3 | e04f4c26752e0775bd3cffd3a936b288ee7b0268 | HEAD | 2016-09-01T20:09:33.163593 | 2013-04-26T12:05:17 | 2013-04-29T16:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/RecoMuon/TrackingTools/',1)[0])+'/cfipython/slc6_amd64_gcc480/RecoMuon/TrackingTools')
| [
"giulio.eulisse@cern.ch"
] | giulio.eulisse@cern.ch |
248163892715e31f2251a0a927171b66305529c7 | 58861c1f59ecfdd234a0c6e926e50a3797570fe8 | /users/templatetags/teacher_extras.py | 9c94f70595a35331073a1b89183c796b46532ee0 | [] | no_license | edgeofstorm/django-sis | 6e4dec61b807e6be5b625999917cdd275de95270 | 4e5177c1da36a702634b954924b58e6ba2a34200 | refs/heads/master | 2022-10-24T15:06:52.244324 | 2020-06-09T06:53:28 | 2020-06-09T06:53:28 | 269,437,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django import template
register = template.Library()
@register.filter
def label(value):
if value == 'M':
return 'Matematik'
if value == 'S':
return 'Sosyal'
if value == 'F':
return 'Fen'
if value == 'T':
return 'Turkce'
else:
return 'Brans yok' | [
"enesekinci1907@gmail.com"
] | enesekinci1907@gmail.com |
bf7af35152b7b2dba2930ac7e466f08228b4a99b | 5bbb1d717733ce136f696f0216451730d94a4117 | /script/link/rotate_link.py | 0b04dd7d799bf56cf0c631472e0cb116b449726f | [] | no_license | hongliang5623/vanyar | 8e5ffd2c2422c8bb844ce09bfccc54261e84c5be | 8945ae4353f9d32d387b102effa1202a9dfcea4c | refs/heads/master | 2020-12-14T01:17:24.352024 | 2019-10-28T15:17:39 | 2019-10-28T15:17:39 | 45,191,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | # -*- coding: utf-8 -*-
from utils import ListNode
head1 = ListNode(2)
n1 = ListNode(3)
n2 = ListNode(3)
n3 = ListNode(4)
n4 = ListNode(4)
n5 = ListNode(9)
head1.next = n1
n1.next = n2
n2.next = n3
n3.next = n4
n4.next = n5
print 'source------------->>'
source = head1
while source:
print source.val
source =... | [
"zhanghliang5623@126.com"
] | zhanghliang5623@126.com |
30cf962896b81a1ff5a5aea7a5879beda8bb74af | d79da91814263cd6e6c926ed857628c63f6069bf | /Instalador.py | faf3949a9faae20067b6f001bd507fe63eccc97c | [] | no_license | xXYouTuberXx/Install | ee536a5f308421e1e8646dd515d7a69645dbcee8 | 253cb7870bf6bd573156dbca1a7080078badda5a | refs/heads/master | 2020-08-21T23:50:12.002581 | 2019-10-19T21:54:17 | 2019-10-19T21:54:17 | 216,275,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import os
import colorama
from colorama import Fore
os.system("cls")
print(Fore.CYAN + "Bienvenido A La Tool Para Descargar Python3")
os.system("yum install centos-release-scl -y")
os.system("clear")
os.system("yum info rh-python35")
os.system("clear")
os.system("yum install rh-python35 -y")
o... | [
"noreply@github.com"
] | xXYouTuberXx.noreply@github.com |
f11d53867f5e9df655f10499cc0eab4526895b30 | a8c4e40349f357dae3c0f2398504d3354762ef26 | /scripts/xsBrReader.py | c9d49a90efc156cc0cec8a8bdaec4887e2543200 | [] | no_license | andreypz/nwu-dalitz-analysis | 3bab901f5b30d7e74c7ee0954906bd9d1c36c564 | b2c15ba08910bc6298319ba7b5b59d34249e7d7a | refs/heads/master | 2020-04-15T07:50:20.678794 | 2016-02-04T16:56:40 | 2016-02-04T16:56:40 | 11,186,577 | 0 | 0 | null | 2018-07-25T12:52:27 | 2013-07-04T21:05:07 | C | UTF-8 | Python | false | false | 2,442 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
#from array import *
class AutoVivification(dict):
"""Implementation of perl's autovivification feature."""
def __getitem__(self, item):
try:
return dict.__getitem__(self, item)
except KeyError:
value = self[item] = type(self)()
re... | [
"Andrey.Pozdnyakov@cern.ch"
] | Andrey.Pozdnyakov@cern.ch |
df19118034c3cc0c1d7999accde9e65493bf98dd | 137330c75d485f5a258514f377c17b04616a9fe0 | /todo/migrations/0002_auto_20170705_1011.py | cedc9faeb7ebbb3060f413b4276289b72ac3d807 | [] | no_license | asamolion/django-todo | 5aca2a99d85f52e9c2680f2c96ce01bc8ba75477 | 9ffa93c75f27de8facaca2df20f9d21102237a0c | refs/heads/master | 2021-05-23T06:07:41.163813 | 2019-02-15T18:43:29 | 2019-02-15T18:43:29 | 94,775,564 | 0 | 0 | null | 2019-02-15T18:43:30 | 2017-06-19T12:43:06 | Python | UTF-8 | Python | false | false | 589 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-05 10:11
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):
dependencies = [
('todo', '0001_initial'),
... | [
"osama.arshad@arbisoft.com"
] | osama.arshad@arbisoft.com |
afa46d68ecf6d61c6df7864fbb08ae004dd62027 | 47a3a59288792f654309bfc9ceb6cbfa890720ef | /ramda/pick_all_test.py | c1dcb75e4e093273553227d190646a1b2ddff6d4 | [
"MIT"
] | permissive | jakobkolb/ramda.py | 9531d32b9036908df09107d2cc19c04bf9544564 | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | refs/heads/master | 2023-06-23T00:46:24.347144 | 2021-02-01T16:47:51 | 2021-02-01T16:48:25 | 388,051,418 | 0 | 0 | MIT | 2021-07-21T16:31:45 | 2021-07-21T08:40:22 | null | UTF-8 | Python | false | false | 317 | py | from ramda import *
from ramda.private.asserts import *
def pick_all_test():
assert_equal(
pick_all(["a", "d"], {"a": 1, "b": 2, "c": 3, "d": 4}), {"a": 1, "d": 4}
)
assert_equal(
pick_all(["a", "e", "f"], {"a": 1, "b": 2, "c": 3, "d": 4}),
{"a": 1, "e": None, "f": None},
)
| [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
c0451feba3b9104098b17797439c15ddcf7359b4 | eab8b9d305a6f77c206853bed6495ab5d5ecba87 | /eosweb/redditauth/main.py | a2ec860918c419cd05436d4ab30087b50d2b4b98 | [] | no_license | AnswerMeNow1/Gaiaren | 0ea1ce2ab5fb9ffa03dfd66b6fa92555b42c32ab | 4b5177e16b1436f3abed93e668eafad5b9027934 | refs/heads/master | 2021-05-12T04:33:28.791287 | 2018-01-11T13:12:27 | 2018-01-11T13:12:27 | 117,166,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | py | # Eos - Verifiable elections
# Copyright © 2017 RunasSudo (Yingtong Li)
#
# 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 Foundation, either version 3 of the License, or
# (at your optio... | [
"runassudo@yingtongli.me"
] | runassudo@yingtongli.me |
e185236b6376cf931550d58de7dbc40d13c29ad2 | 1e0e610166b36e5c73e7ff82c4c0b8b1288990bf | /scrapy/scrapy28.py | 6f5341d26d3402dea78b84c8a0d584f884360945 | [] | no_license | PythonOpen/PyhonProjects | 4ef1e70a971b9ebd0eb6a09e63e22581ad302534 | ede93314009564c31aa586d2f89ed8b1e4751c1b | refs/heads/master | 2022-05-20T23:21:03.536846 | 2020-04-27T00:59:32 | 2020-04-27T00:59:32 | 250,142,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | import re
'''
findall
'''
hello = u'您好,世界!'
s = r'[\u4e00-\u9fa5]+'
pattern = re.compile(s)
m = pattern.findall(hello)
print(m)
| [
"1083138609@qq.com"
] | 1083138609@qq.com |
52bdb915c73f58f6aa5005d772274b3a67ecca7b | fe6ff9ab3f409a9c66748ded944109cdb342a9e1 | /tenspark/tenspark.py | 59ddf7918303641d45a84ec391adfa9f8121416b | [
"Apache-2.0"
] | permissive | saurabh-deochake/Tenspark | 88a2fec80a9580e0f0fa2cbddf1110e7c4afd74c | 68b0ed74bff7aeb564a19aedf14e47948aed66de | refs/heads/master | 2021-08-28T10:50:30.846085 | 2017-12-12T01:40:34 | 2017-12-12T01:40:34 | 109,049,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,154 | py | import numpy as np
import os
import urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
from object_detection.utils import label_map_util
from object_detection.utils import visualization_utils as vis_util
from collections import defaultdict
from io import StringIO
from matplotlib import pyplot as pl... | [
"noreply@github.com"
] | saurabh-deochake.noreply@github.com |
c40ac47c517727668db2d5ecdab88a29f78e49cd | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/application_command/application_command_option_metadata/tests/test__ApplicationCommandOptionMetadataFloat__magic.py | 5f59bf9f28ed267aba57cdf79310534c0cbe8d27 | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 2,571 | py | import vampytest
from ...application_command_option_choice import ApplicationCommandOptionChoice
from ..float import ApplicationCommandOptionMetadataFloat
def test__ApplicationCommandOptionMetadataFloat__repr():
"""
Tests whether ``ApplicationCommandOptionMetadataFloat.__repr__`` works as intended.
"""
... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
1cb3e56193bf9836e2e816dd830b90e36338db8b | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/python-zunclient/zunclient/osc/v1/images.py | 4af97886c8048a0d97904f5372e7928a39594407 | [
"Apache-2.0"
] | permissive | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 5,747 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | [
"Mr.Qinlichao@hotmail.com"
] | Mr.Qinlichao@hotmail.com |
c451e110590706a8ce83b4af109c550c22964a4e | c1f951f3f5bb0569e114ccf6dd35e40e168e7c08 | /pix2pix_freq_time_domain.py | 41e4ca4677d4fbdb854b701e6993a72a15d57ccf | [] | no_license | uaiu/GAN | b7cf71ca49f78f606761041702a3ac70e1f015cc | d31817a1739e0b5623edff117d157d7ba98efe8d | refs/heads/main | 2023-06-27T13:57:49.962105 | 2021-08-06T07:44:09 | 2021-08-06T07:44:09 | 389,370,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,237 | py | #%%
import tensorflow as tf
import pandas as pd
import os
import time
from matplotlib import pyplot as plt
from IPython import display
import librosa
import numpy as np
#%% spyder용 GPU 유무 확인 코드, Colab은 따로 적용 X
gpus = tf.config.experimental.list_physical_devices('GPU')
if gpus:
try:
# Curren... | [
"noreply@github.com"
] | uaiu.noreply@github.com |
45915aa5951cf36b45dc79072c4204df2fb738b4 | ff4c9cceea7dad10af253aad4a5f243a8ac7e0f3 | /myPackage/__init__.py | ef64eef0f1d1a8f98d7aa93a92a3e538bb1385aa | [
"MIT"
] | permissive | EneoBovino/custom_lib | f6393d041eda5a8ac1d566c7b8d3448dbd452f6f | ee37f3477bb095cf5c7348f190915c6a0200646d | refs/heads/master | 2020-03-17T07:34:19.400607 | 2018-05-14T18:26:25 | 2018-05-14T18:26:25 | 133,401,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | import somePython
| [
"noreply@github.com"
] | EneoBovino.noreply@github.com |
c28cbafe1065d591073c1e76a2a96cc35eb02723 | c4284c650b259bb94c9509b0030410d6c371ab4b | /train/semantic_segmentation/utils/image.py | 001ee63c8f6ed84332b1aaf46a2bc5a26bc18fe4 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | delair-ai/DISIR | 38ffdc1c9a7d9582be7181a73fdf6c9e869c0a09 | b8f6735c1125ef651841d52a94a8b3fc48ee77b7 | refs/heads/master | 2023-02-08T16:20:49.618716 | 2022-04-11T12:19:38 | 2022-04-11T12:19:38 | 241,604,320 | 41 | 9 | MIT | 2023-02-08T00:44:30 | 2020-02-19T11:25:24 | Python | UTF-8 | Python | false | false | 1,155 | py | import itertools
import buzzard as buzz
import cv2 as cv
import numpy as np
def sliding_window(top, step=10, window_size=(20, 20)):
""" Slide a window_shape window across the image with a stride of step """
for x in range(0, top.shape[1], step):
if x + window_size[0] > top.shape[1]:
x = t... | [
"gaston.lenczner@gmail.com"
] | gaston.lenczner@gmail.com |
df89646257218da18e688a4ddbda8144b57a3f87 | 29791610aed7b1f29dbe41650c907cbd9a0cc0bd | /python_projects/loginRegistration/main/migrations/0001_initial.py | 9a665b845494de843659414f1384b21b677d38cd | [] | no_license | Marvin-Gerodias/PROJECTS | ef7d8e812fe748a9d962aa5c7e026c8753bf9e07 | b2694722d3893fb704d7f397237441b7034cb71c | refs/heads/main | 2023-05-04T01:39:37.215681 | 2021-05-24T16:28:33 | 2021-05-24T16:28:33 | 344,958,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | # Generated by Django 3.2.2 on 2021-05-21 01:29
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"marvin.gabriel@gmail.com"
] | marvin.gabriel@gmail.com |
605b9fe4d1a7957cb2c55e30fa0363e03ff3f7eb | 8bde826917476ba95bd3e9b4c33d4b28284c1774 | /bin/fasta2phylip.py | 20c4f9be477fe93b9186aee62a7a87c516416368 | [] | no_license | rpetit3-education/ibs594-phylogenetics | 2935d2ea3ba0ab41967cb0ddf42a2850328034e4 | f39048354d636300ba1a2067a0bdc5f0c6bddc95 | refs/heads/master | 2020-05-29T12:27:21.973218 | 2014-10-08T01:42:56 | 2014-10-08T01:42:56 | 24,832,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #! /usr/bin/env python
'''
'''
import sys
from Bio import AlignIO
input_handle = open(sys.argv[1], "rU")
output_handle = open(sys.argv[2], "w")
alignments = AlignIO.parse(input_handle, "fasta")
AlignIO.write(alignments, output_handle, "phylip")
output_handle.close()
input_handle.close()
| [
"robbie.petit@gmail.com"
] | robbie.petit@gmail.com |
ee8146afae548b1c71be4263cc8daf4dd4d4be02 | 2dee8118560e51cb5ec93a078cf1353085f40b67 | /main_app/errors/routes.py | e78e6849cc7b243cdb186beddd38147bf84ca1dd | [] | no_license | TerraX3000/webapp-mslogin | d8d8a1805dbf40f489dbfaf1db8258a83b4ebdcf | 596a8182b290d0bf853f3c3bf9be963f0c31dad1 | refs/heads/main | 2023-02-15T01:00:17.549315 | 2021-01-02T14:14:45 | 2021-01-02T14:14:45 | 326,041,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from flask import render_template
from . import bp
from main_app.log import logger, wrap, entering, exiting
# Reference: Python Flask Tutorials: Tutorial 12: Custom Error Pages
# https://coreyms.com/development/python/python-flask-tutorials-full-series
@bp.app_errorhandler(404)
@wrap(entering, exiting)
def error_404... | [
"ken.kranz57@gmail.com"
] | ken.kranz57@gmail.com |
39e25297ceed5f44f9099eab6cfa216a86b008be | 9f7f397a61cd163ae1c3974fb1ce54ee99b7f6bb | /work3/plactice/postman.py | bed8f6e309393f10630bda98f49c50a0161fce90 | [] | no_license | ring-ring097/Optimization | c41b8c53447f5e2c8626d1b25143d9f564f5c86a | a7c7cd22bf3dc112b846e66af68c34cfc0e32bce | refs/heads/main | 2023-06-20T12:40:10.570618 | 2021-07-21T04:48:14 | 2021-07-21T04:48:14 | 387,990,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
from itertools import combinations
# 問題のグラフ生成と表示
np.random.seed(1000)
G = nx.grid_2d_graph(4,3)
for (u,v) in G.edges():
G[u][v]['weight'] = np.random.randint(1,6)
nx.draw_networkx(G,
pos={v:v for v in G.nodes()},
... | [
"tosa.rinto.td@alumni.tsukuba.ac.jp"
] | tosa.rinto.td@alumni.tsukuba.ac.jp |
44b7c6f55aadf4b72a82ef6100f9975da1f53c8f | 734b5ba4980bf382a9c2126dba6d19e9621ff564 | /oshi/grammar.py | ae1e522fdef9e6d40a01d5ad0e0a338c5938f46c | [] | no_license | sorashi/oshi | e8329c666c979bd81bb1b12fe71b7a6db0a81ba2 | 6e6bb5ab534b630b3ba46f8d8022397786388ea5 | refs/heads/master | 2022-04-04T00:25:23.512272 | 2020-02-11T15:10:53 | 2020-02-11T15:10:53 | 227,387,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,183 | py | import re
from os import path
from fnmatch import fnmatch # fnmatch(test_string, glob_pattern)
from typing import List
import database
RULE_REGEX = r'^(\S+)\s*(\S*)\s+〜(\S*)\s*(\S*)\s+for\s+(\S*)\s+〜(\S*) +((?:[ \t]*\S+)+)\s*$'
CURRENT_DIRECTORY = path.dirname(__file__)
RULES_FILENAME = path.join(CURRENT_DIRECTORY, '... | [
"prazak.dennis@gmail.com"
] | prazak.dennis@gmail.com |
ea98f309572f9a831500b02f4be4bf1c76855e92 | c3655bc6c3c6941e8bec64345af879585f0ce8f1 | /ex06.py | 03d9e1d13ea78e3caada46f275ebfeb0c7d3afac | [] | no_license | Jean-Alesi/Exercicios | 5935eccb99813994f0d18c126ea728bafdc5d5e2 | 5fa88d067c287090147febdc9f7e7cb59c6bb7a1 | refs/heads/master | 2020-12-19T08:32:45.968972 | 2020-02-01T00:21:51 | 2020-02-01T00:21:51 | 235,681,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | n = int(input('digite um número:'))
dobro = (n * 2)
triplo = (n * 3)
raiz = (n ** (1/2))
print('você digitou o número {} \n o dobro é {} \n o triplo é {} \n e a raiz é {:.2f}'.format(n, dobro, triplo, raiz)) | [
"noreply@github.com"
] | Jean-Alesi.noreply@github.com |
a8a8b14820fcddd5bd55fd019f52ee57c7ff3a51 | de9bd97adcbe4d278a1bf1d5f9107e87b94366e1 | /coding_solutions/Day9(28-05-2020)/Program2.py | 31f78a9bb4008fe640973829d9b4d7bc8af22e25 | [] | no_license | alvas-education-foundation/ANUSHA_4AL17CS007 | 6ed2957d6d1b1b1f2172de3c8ba6bfd3f886aab9 | 031849369448dd60f56769abb630fc7cf22fe325 | refs/heads/master | 2022-10-29T10:49:23.188604 | 2020-06-15T15:50:00 | 2020-06-15T15:50:00 | 267,532,875 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #Python program to find digital root of a #number
n = int(input("Enter the digit\n"))
def digital_root(n):
m = len(str(n))
s=0
for i in range(m):
s = s+ n%10
n = n//10
print(s)
if(len(str(s))>1):
return(digital_root(s))
print(digital_root(n))
Output:
Enter the... | [
"noreply@github.com"
] | alvas-education-foundation.noreply@github.com |
6841b5f8f2844439542581821019d5fd11329764 | 07f837d8c5236fe5e75ef510cd296814452370ce | /py/four_hour_cloud.py | 220c212f5dfc9d69fd0d4fccfd0d8b1a5659a04f | [
"Apache-2.0"
] | permissive | vkuznet/h2o | 6f9006a5186b964bac266981d9082aec7bc1067c | e08f7014f228cbaecfb21f57379970e6a3ac0756 | refs/heads/master | 2021-08-28T11:37:52.099953 | 2021-08-10T22:43:34 | 2021-08-10T22:43:34 | 20,032,996 | 0 | 0 | Apache-2.0 | 2021-08-10T22:43:35 | 2014-05-21T18:46:27 | Java | UTF-8 | Python | false | false | 3,693 | py | #!/usr/bin/python
import unittest, time, sys, random, datetime
sys.path.extend(['.','..','py','../h2o/py','../../h2o/py'])
import h2o, h2o_hosts, h2o_cmd, h2o_browse as h2b
import h2o_print as h2p
beginning = time.time()
def log(msg):
print "\033[92m[0xdata] \033[0m", msg
CHECK_WHILE_SLEEPING = False
print "Don'... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
55e42acf5a6c8f25fc0cc3d9ce43ac6c75cbe07c | c4accc95f2dddb90d357afbc3deebd56ded79dd3 | /proyecto/pv.py | 024990f115ac3cd61a9f4cdd598ce646d63cf743 | [] | no_license | cesaraul/python_codes | 2ab7b5091e210068676ab7e97486384bfdbee356 | 5d9601f52120ea7b731f50a816d3f9298c18b343 | refs/heads/master | 2020-06-30T16:07:01.444430 | 2019-08-07T17:12:49 | 2019-08-07T17:12:49 | 200,879,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | import click
from clients import commands as clients_commands
@click.group() # para indicar que es nuestro punto de entrada
@click.pass_context #crear contexto
def cli():
pass
cli.add_commands(clients_commands.all)
| [
"cesaraulcg@gmail.com"
] | cesaraulcg@gmail.com |
9345fcb14424dc41dfd8843cc32a6055649879f9 | 630e037b7d416a3bfc18c30b7c950ad63b416b10 | /TesCase/TC03b (Bonus).py | d415b2541fd137d92119a1df270257d0a57269bc | [] | no_license | kevinrizki1019/python-interpreter-using-cfg | 82db1738846a6a0e5699454336f0934d9633553e | d3f7b3c5a15bdb6fc207a5a3d2ad4d5ac2196067 | refs/heads/master | 2021-01-01T14:35:56.055825 | 2019-11-29T10:35:41 | 2019-11-29T10:35:41 | 239,322,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | def get_rule_category(rule: dict) -> str:
''' Get rule category in string. This category is also a key for its corresponding dictionary.
Input(dict) = rule
Output(str) = category of the rule
Example:
Input = {'producer': 'N', 'product': ['people']}
Output = 'terminal'
'''
rule_product = rule[... | [
"kevinrizkimohammad@gmail.com"
] | kevinrizkimohammad@gmail.com |
51d94bb10630aafec0640620432c3ebe407246a3 | f5b5a6e3f844d849a05ff56c497638e607f940e0 | /capitulo 06/06.32 - Programa 6.10 Transformacao de range em uma lista.py | 51cd535815fbd14cb32451d366d9badde5012cb3 | [] | no_license | alexrogeriodj/Caixa-Eletronico-em-Python | 9237fa2f7f8fab5f17b7dd008af215fb0aaed29f | 96b5238437c88e89aed7a7b9c34b303e1e7d61e5 | refs/heads/master | 2020-09-06T21:47:36.169855 | 2019-11-09T00:22:14 | 2019-11-09T00:22:14 | 220,563,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2019
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"noreply@github.com"
] | alexrogeriodj.noreply@github.com |
9d4a18c25ed901eedcfbd1f71a321317da85edc2 | 93441af33526d7b1c335c32e31c130926d373ff0 | /website/migrations/0001_initial.py | ca0a099e7b13d757906148a79383aafb422f31f1 | [] | no_license | Bunny303/MealPlanner | b435e6b99298718d964cd05cd126b7f3784facae | 9d836f8ce1bbf8300707a53cac1c6c9f889d4d0f | refs/heads/master | 2020-04-13T22:10:08.849328 | 2017-07-17T09:21:54 | 2017-07-17T09:21:54 | 54,634,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,251 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-06-15 20:31
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 = [
migrations.... | [
"andrey.andreev303@gmail.com"
] | andrey.andreev303@gmail.com |
addb680709e766e2bcc6ebdbd7e1d07e4cb983ba | 5caa089421d1de7b1e6a22eab5e5ad37a6cc45c2 | /파이썬 알고리즘 문제풀이(코딩테스트 대비)/섹션 3/2. 숫자만 추출/AA.py | b3c6d1741348d882e2634e07237b09d25f5214fa | [] | no_license | leeyjwinter/Algorythm-Python | 00055ca969dce2e1b56fac0ebdd6c380b0dda0f0 | 0fc87507c4c7d43a378bb298301a2fa3ad01b1bb | refs/heads/master | 2023-08-15T22:58:39.971771 | 2021-09-24T14:08:44 | 2021-09-24T14:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | #x.isdecimal() : x가 0~9까지면 true 반환
string_a = input()
number = []
for i in range(len(string_a)):
if string_a[i]<'A' and string_a[i]>='0':
number.append(string_a[i])
while number[0]=='0':
number.pop(0)
number=int(''.join(number))
def yaksu(x):
cnt = 0
if type(x**(1/2))=='int':
for j ... | [
"james_22@naver.com"
] | james_22@naver.com |
0f8f10c674666f80a8dfb7dc011afc0af5ca45d6 | 41e69a518ff146ef299e9b807a7a96428effd958 | /test/test_full_operations_operation.py | ef25b6c9c5cb0a0793bc2948de26f0953af9ea2b | [] | no_license | daxslab/enzona-payment-python | 40797a8aea7d7185ad04fe401c4f699cb1d93309 | 9a7721445cc1331e14687374df872f911a565305 | refs/heads/master | 2022-07-13T15:34:53.171246 | 2020-05-16T04:18:51 | 2020-05-16T04:18:51 | 264,357,269 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # coding: utf-8
"""
PaymentAPI
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import un... | [
"ccesar@daxslab.com"
] | ccesar@daxslab.com |
247f95d2dd1ba8c30dc05f432d9df8ab67e809ea | cd995dbf44647858e092f22fd99228b3aadc138a | /16 트라이/56 트라이 구현.py | a9e65658e8ed722ea191413bbcd928d182b72dc5 | [] | no_license | Wooyongjeong/python-algorithm-interview | ed970ae046bd65ac46fd4f42aaa386f353f97233 | c134dbb1aaff5f4c7aa930be79fcdf1dfad62cec | refs/heads/master | 2023-08-17T04:51:19.727919 | 2021-10-07T14:29:24 | 2021-10-07T14:29:24 | 398,216,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | import collections
# 풀이 1. 딕셔너리를 이용해 간결한 트라이 구현
# 트라이의 노드
class TrieNode:
def __init__(self):
self.word = False
self.children = collections.defaultdict(TrieNode)
class Trie:
def __init__(self):
"""
Initialize your data structure here.
"""
self.root = TrieNode()... | [
"wooyong.dev@gmail.com"
] | wooyong.dev@gmail.com |
a1fc1832b01fb19aa877c1623da3ec49d6093447 | 46bd01358d2f112772a276617534b9869db64722 | /Ejercicios/raices.py | 3940f83979faa042e4c5067e695c6ba7f5cec6b6 | [] | no_license | ncardona10/Metodos_Computacionales | 84e8b2056680bd654b308bdbf6216f2a14bc0a61 | 45f70a08a416e64058f4da0e572a72d0b121f027 | refs/heads/master | 2020-03-18T13:14:33.497388 | 2018-11-06T02:32:27 | 2018-11-06T02:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import numpy as np
import matplotlib.pyplot as plt
g=9.8
def deriva(fun,v,h,d,theta):
h=0.01
delta=theta+h
df=(fun(v,h,d,delta)-fun(v,h,d,theta))/h
return df
def fun(v,h,d,theta):
rta= d*np.tan(theta) - (g*d**2)/(2*v**2*np.cos(theta)**2) -h
return rta
theta= np.linspace(0.1, np.pi/3, 10)
f_thet... | [
"n.cardonac@uniandes.edu.co"
] | n.cardonac@uniandes.edu.co |
c3f38e56682732a9af210122091dc6e960545e4e | 48dd9584497f24ea496fd5e1cc1441021676fcad | /Analizador_Sentimientos.py | a373e0620b4397e12918ecd67d79fded5ee50acf | [] | no_license | LeonardoSeveroJ/Analizador_sentimientos | f2ba3df5b92289e8b13cbf2211848e0cbc2e2383 | 442ba7fdfaf1b647c337048bb4414491ec0809aa | refs/heads/main | 2023-05-03T23:10:36.326967 | 2021-05-20T16:35:38 | 2021-05-20T16:35:38 | 369,269,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | from textblob import TextBlob
pos_count =0
pos_correct=0
with open("positivas.txt", "r") as f:
for line in f.read().split('\n'):
analysis= TextBlob(line)
#print(line)
try:
eng=analysis.translate(to='en')
if eng.sentiment.polarity>0:
pos_cor... | [
"noreply@github.com"
] | LeonardoSeveroJ.noreply@github.com |
48dbaefec286b4052925f830bcaff20de9f4aa31 | be460e66f05c0259cf45e6c0cdb653fc2913972d | /acm/Online-Judge/leetcode/code/3sum-closest.py | da6eefe4f323394f550962fb9cd8dec90bce8c80 | [] | no_license | Salvare219/CodeLibrary | 3247aee350402dac3d94e059a8dc97d5d5436524 | 8961a6d1718c58d12c21a857b23e825c16bdab14 | refs/heads/master | 2021-06-16T18:38:21.693960 | 2017-05-09T12:47:36 | 2017-05-09T12:47:36 | 81,569,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | class Solution:
# @param {integer[]} nums
# @return {integer[][]}
def threeSum(self, num):
mp={}
n=len(num)
ans=[]
num.sort()
l1=-3214421
for i in xrange(n):
if l1!=num[i]:
l1=num[i]
l2=-31241... | [
"635149007@qq.com"
] | 635149007@qq.com |
ace8389eaa08ece8e57061bce6d27225fb7361e4 | 8cec0d4cd23fcbc66a12de7e63b42be106c241fc | /react-app/node_modules/chokidar/node_modules/fsevents/build/config.gypi | 5c144079588994d957d70d3e267e777667f06d13 | [
"MIT"
] | permissive | zoefyz12/FoodOnlineOrdering | 2ebbd9bbd10729f46a92ba2e0ca235ff82dc058d | 07279dc59f9e60325f646e29dbbbdbcd8cada2ef | refs/heads/master | 2020-05-18T21:15:42.559720 | 2019-05-10T23:48:58 | 2019-05-10T23:48:58 | 184,656,054 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"zoefyz12@gmail.com"
] | zoefyz12@gmail.com |
8d5a07180aa031738e5bf580d60d297259850bd9 | eea1a7ef7fd6ca57d80bcb0d1210ac606726cfa6 | /matchingSite/matchingSite/wsgi.py | c156ee23ca4f1ad4f1f1ffcc8194d771df7dfcbb | [] | no_license | anthonytrann/Hobbies-Matching-Site | 642936caac55a6614c616ac0ea502f35c1c7916d | 2b3bf3a39cef1959d0f32feacd7343fce7630560 | refs/heads/master | 2022-03-07T04:09:06.720527 | 2019-10-10T10:29:44 | 2019-10-10T10:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for matchingSite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"33399044+anthonytran227@users.noreply.github.com"
] | 33399044+anthonytran227@users.noreply.github.com |
86ebc96a4d695c7c8ffbc7a2ec66ded29f647ee0 | 708e17ad98f3143abaf811357883e680991d711f | /python2/numOf1Bits.py | bc66d46f27d4da1f9187624f97807e78ac955bb5 | [] | no_license | yichuanma95/leetcode-solns | a363cc8e85f2e8cdd5d2cde6e976cd76d4c4ea93 | 6812253b90bdd5a35c6bfba8eac54da9be26d56c | refs/heads/master | 2021-05-24T18:05:02.588481 | 2020-10-08T00:39:58 | 2020-10-08T00:39:58 | 253,690,413 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | '''
Problem 191: Number of 1 Bits
Write a function that takes an unsigned integer and return the number of '1' bits it has (also
known as the Hamming weight).
Example 1:
Input: 00000000000000000000000000001011
Output: 3
Explanation: The input binary string 00000000000000000000000000001011 has a total of 3 '1' bits.
... | [
"ma.yich@husky.neu.edu"
] | ma.yich@husky.neu.edu |
18a6ebf81ae410eb0568d77b07495d5acfa35a1f | eb1771e8eb026e5cafe9cd6211a1bcc8f81ce117 | /dataproc/isolatepac_ancil.py | 1f3abdfdbb68498e769cf52e62cb776b1cd310b7 | [] | no_license | tammasloughran/analysis | a9c9200a15f0190caae0b1d22d9721511025b89d | 22884c83cc04625d29165e962b7868bc3a3dbd31 | refs/heads/master | 2021-09-20T12:46:15.299083 | 2018-08-10T01:55:00 | 2018-08-10T01:55:00 | 45,821,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,351 | py | """isolatepac_ancil.py uses HadISST SSTs to construct a composite of sst anomalies for
ENSO and IOD excluding each basin.
"""
import numpy as np
import netCDF4 as nc
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.dates import YearLocator, MonthLocator, DateFormatter
from mpl_toolkits.basemap import... | [
"t.loughran@student.unsw.edu.au"
] | t.loughran@student.unsw.edu.au |
c0f54e11c4033213b344084214d8c45b6b3098ec | 3e2671c4881b8e010aae81011560fe3c317f83f0 | /Lane Detection - IGVC/GRayLane.py | 68eca2f26beade3ec48b9afaaf716919c5a42aea | [] | no_license | Lajith-Puthuchery/Open-CV | 7dc1c92f8a92d3cb7305cb4b48084c92d29d46b1 | 9edc9aa6c088306bf760cc9959bb3591e28c2ed7 | refs/heads/main | 2023-06-07T04:08:20.749240 | 2021-07-07T13:18:13 | 2021-07-07T13:18:13 | 382,853,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | import numpy as np
import cv2
cap = cv2.VideoCapture('/home/lajith/Downloads/lane_vgt.mp4')
def ROI(frame,vertices) :
mask=np.zeros_like(frame)
match_mask_color=(255,)
cv2.fillPoly(mask,vertices,match_mask_color)
masked=cv2.bitwise_and(frame,mask)
return masked
while cap.isOpened():
... | [
"noreply@github.com"
] | Lajith-Puthuchery.noreply@github.com |
2f1752c2bb239fc015ffd2b4a91ad7011d473660 | 177c2393fb86c6fbcc1e995a60805e4a6b901aae | /Sesion-02/Banco/tarjeta/views.py | d3de642d321bb86fe5f489875cbfc164f93fcf53 | [] | no_license | rctorr/TECP0008FUPYCMX2001 | bc6a11e33486be2ccb5d2b79a9a64ba5e48a24f4 | 419635f02de189b91a06a9b366950320dfb0e00e | refs/heads/master | 2023-05-20T22:37:25.194835 | 2021-06-08T03:12:37 | 2021-06-08T03:12:37 | 370,964,281 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.shortcuts import render
# Create your views here.
def index(request):
""" Atiende la petición GET / """
return render(request, "tarjeta/index.html") | [
"rictor@cuhrt.com"
] | rictor@cuhrt.com |
d48bd8e1a10fe5636e78061e2a79feeab8d3e02d | 24d8bc5f09f8b8e484ab76aa317c5436a7ddf43c | /Code-it/Divide and Conquer - 합병정렬.py | 0ac05550ca18b70aa1d20ad9d0ac5ca909142ac9 | [] | no_license | GroundP/Algorithm | c00de37256a193c42051eb58aa8157d0d1882f67 | 1dd4d22141a43be99a9aaff6ba00e04b66e4cccb | refs/heads/master | 2020-07-27T09:21:28.814675 | 2019-10-04T16:07:13 | 2019-10-04T16:07:13 | 209,044,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | def merge(list1, list2):
if len(list1) == 0:
return list2
if len(list2) == 0:
return list1
sortlist = []
idx1 = 0
idx2 = 0
while idx1 < len(list1) and idx2 < len(list2):
if list1[idx1] < list2[idx2]:
sortlist.append(list1[idx1])
idx1... | [
"bloom0819@naver.com"
] | bloom0819@naver.com |
2997f975affa3c8c14af0c23c4a28115583d55a3 | 137afabda1a53b4de09bed7cdf3c14e6c98111c8 | /reciprocity/recipe/migrations/0011_auto_20160504_1754.py | b5c4c50f30dcf396373d5c18f7387b93d90179c5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | TeamReciprocity/reciprocity | b0c7a205a3c843fd776bce8ff7edb0b051019641 | 28a32e5b1f8a4088decc7b32cffae860e16c9c2b | refs/heads/master | 2021-01-01T04:44:28.620391 | 2016-05-26T23:13:05 | 2016-05-26T23:13:05 | 56,874,379 | 1 | 1 | null | 2016-05-26T23:13:05 | 2016-04-22T17:43:48 | Python | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-05 00:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipe', '0010_auto_20160504_1730'),
]
operations = [
migrations.AlterField(... | [
"wohlfea@gmail.com"
] | wohlfea@gmail.com |
eda95050e4aab8b87d5ef0e01e7b3dd35478760f | d0bd9c3c5539141c74e0eeae2fa6b7b38af84ce2 | /tests/test_data/test_molecular_weight.py | 6743fdd25cc4c253454be447b8c4c52f01c76f3a | [
"BSD-3-Clause"
] | permissive | KaneWh1te/cogent3 | 150c72e2f80a6439de0413b39c4c37c09c9966e3 | 115e9eb5700627fdb24be61441a7e3e155c02c61 | refs/heads/master | 2023-07-29T00:32:03.742351 | 2021-04-20T04:32:00 | 2021-04-20T04:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | #!/usr/bin/env python
"""Tests for molecular weight.
"""
from unittest import TestCase, main
from cogent3.data.molecular_weight import ProteinMW, RnaMW
__author__ = "Rob Knight"
__copyright__ = "Copyright 2007-2021, The Cogent Project"
__credits__ = ["Rob Knight"]
__license__ = "BSD-3"
__version__ = "2021.04.20a"
__... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
687ceb831757b55f605ca7582082dad5862e647f | aab50ee31f6107fd08d87bd4a93ded216eebb6be | /com/baizhi/杜亚博作业/杜亚博_9.5/杜亚博_9.24.py | e22353a598b8ddc8afb188119acb08d6855be8a8 | [] | no_license | dyb-py/pk | deaf50988694475bdfcda6f2535ba0e728d79931 | b571b67a98fa0be6d73cccb48b66386bc4dfd191 | refs/heads/master | 2020-12-29T15:06:20.294353 | 2020-02-06T09:05:08 | 2020-02-06T09:05:08 | 238,646,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | #1
# SyntaxError 语法错误
#2
#下标越界 IndexError
#3
#属性错误 AttributeError
#4
#KeyError
#5
# SyntaxError
#6
# NameError
#7
#
# UnboundLocalError
#8
# try-except 之类的语句来处理异常
#9
# 可以, 因为异常有多种 多个except可以捕捉多个异常
#10
#自定义异常类 直接或间接继承BaseException
#except捕捉一切异常
#except(异常1,异常2.。。)
#11
#不建议 可读性极差 出现异常后 不清楚是那种异常 不好维护
#12
#用fina... | [
"m15935117233@163.com"
] | m15935117233@163.com |
4a109b25566b48449fcf3d5d6534a0e68f5e82a2 | 4341e83359d5dddbfb67998e456d4d053fb73b71 | /web_deployment/admin/catlog/apps.py | 662d3e5de0afd4a124f9e2f58e8bf8838c155df9 | [] | no_license | ArulFranklin08/django-deployments | 1c1ef80356f37b33d9ee86bcd65f032b4d1d31ee | 74938f5d946af646d7a54be0766b6b1dde59ff3d | refs/heads/main | 2023-02-01T17:40:39.045299 | 2020-12-15T07:46:20 | 2020-12-15T07:46:20 | 321,590,952 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | #!/usr/bin/env python
from django.apps import AppConfig
class CatlogConfig(AppConfig):
name = 'catlog'
| [
"arulfranklin1996@gmail.com"
] | arulfranklin1996@gmail.com |
c0fed2ef8924d494a808d754371b7138465de518 | 3e0158911b600897affc6e75a11d86f8bfaa1e74 | /LiPlate-master/modules/Plate.py | f9301f2e30b34f390de81c19e3f90571531df5d1 | [
"MIT"
] | permissive | pchaow/HornbillCourse | de878b3dad8a548c76feb2b7a0c103dd18916b21 | 0a05e8cb6dc43fa4643671697721d672d181f6e7 | refs/heads/master | 2020-03-21T07:05:42.654497 | 2018-06-30T04:17:20 | 2018-06-30T04:17:20 | 138,260,185 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,432 | py | import cv2;
import numpy as np;
import logging;
import pytesseract as tes;
from PIL import Image;
from modules.TrainingCharacter import *;
from matplotlib import pyplot as plt;
from copy import deepcopy, copy;
from logging.config import fileConfig;
# logger setup
fileConfig("logging_config.ini");
logger = logging.getL... | [
"chaow.po@up.ac.th"
] | chaow.po@up.ac.th |
3885f3d0e07e27d464ae419a9daf01151fcba185 | a16edf6c57fde65ef844a32f03f1b4ebdf0e49e8 | /AbsFactory/new/SvgDiagramFactory.py | bf5190fee8047649836aa354844b3452552aa7e2 | [] | no_license | BlackKnight7/PyInPractice | d50a1b088926f38f2a57c68677f74fde52b6efe7 | dfb40e9cec132bb5bd17344f69965d56288d3bef | refs/heads/master | 2021-01-13T00:59:21.113981 | 2016-01-15T08:39:08 | 2016-01-15T08:39:08 | 47,543,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import svgwrite
from new.DiagramFactory import DiagramFactory
class SvgDiagramFactory(DiagramFactory):
class Diagram:
def __init__(self, width, height):
self.height = height
self.width = width
self.dwg = svgwrite.Drawing('test.svg', profile='tiny')
def add(self... | [
"blackknight7.h@gmail.com"
] | blackknight7.h@gmail.com |
804f299a000d0ba44bb63c77ff71cd58cf6d1531 | ac9d68d3b0e1c820ef12d03750d1ef2416fc8077 | /WhileLoop.py | e8ad0f75c101e62f2f6943b92ceb7faf8b963215 | [] | no_license | ritvik2/python | 305e32d123dd1c72ac80a597813b30e5d587763e | 1c76a3e0255f557615f3f54ce9d20d25f877e677 | refs/heads/master | 2020-05-23T18:20:35.337667 | 2019-05-15T20:35:38 | 2019-05-15T20:35:38 | 186,885,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | i = -1
while i > -11 :
print (i)
i += -1 | [
"ritviksharma1998@gmail.com"
] | ritviksharma1998@gmail.com |
6ebc8f5808fc7d535a02fe22eab30f0d67306ae7 | fcee889ed93812338cdce636cce2a326fc93e276 | /course/great/great/urls.py | 5a4f017bb86a45eddee96f7b0207d370b8cf0df5 | [] | no_license | jabir-dev/Django-web | d026a804df8e98a45212e7d9784b66de20c513c5 | 03961abb2d58f4bd3319af1c29173a209b66611a | refs/heads/master | 2022-12-14T22:22:46.732311 | 2020-09-11T19:26:04 | 2020-09-11T19:26:04 | 294,793,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """great URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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 v... | [
"cas@localhost.localdomain"
] | cas@localhost.localdomain |
32884dc13e56f62e86945d9b1a8ebb74d8a146e5 | e7cec275884cc5c8f232c98a54604d01533a70bc | /inquiries/inquiry5/compare_gmm_msd.py | f47daa0b4413723d746d2d8405740d8dfa968df7 | [] | no_license | Blightful/CS3535 | 2d5f11eb44714abd6c73fa4985657bc06402796d | b182f5d2c174d3fb4e6fa7c40449adf2b8af9e75 | refs/heads/master | 2020-05-17T22:45:56.918134 | 2015-04-28T17:58:59 | 2015-04-28T17:58:59 | 30,601,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,529 | py | """
Recursively pulls timbre from hdf5 files in the MSD directory structure and
compares them to the GMM of the other hdf5.
Prints the log
For example:
$ python all_pitches_msd.py /u/classes/3535/modules/MillionSongSubset/data/
Based on all_pitches_msd.py code by Mitch Parry 2015-02-12
code for finding timbre and... | [
"scarborowj@CS333-5.appd.appstate.edu"
] | scarborowj@CS333-5.appd.appstate.edu |
1109e88a856d43d73e4831b20c9d110d965a7b00 | 98eb6cc1d06ae676be42bd3092fdfd74cfcd685e | /settings.py | 89a6b4566c3b9aa8d402d6098dd13fb890597647 | [] | no_license | wickywinner/Travello | a9afa275fbb3cc5b6423b131812a39ca5d643433 | a23f8d6944163314ec13b57664f36a4b3cf9a524 | refs/heads/master | 2022-11-01T11:37:17.614869 | 2020-06-20T07:39:33 | 2020-06-20T07:39:33 | 273,657,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for travello project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"winner312.com@gmail.com"
] | winner312.com@gmail.com |
e2c612b4b56d248673734a60e6277546ca92928b | 18802beeb0cdc287720994cf3e83f12c6cd344e0 | /Div and Mod Exercise.py | a34666b85ce8b19de265f8e57c9a78e62d203f92 | [] | no_license | KavilanNaidoo/Assignment | 18811edaf494baa6589fd801a074e550835fff71 | b920896120bb5d96af12232ec3add3860cb0f90d | refs/heads/master | 2016-09-06T11:24:40.725559 | 2014-09-25T20:15:33 | 2014-09-25T20:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #Kavilan Naidoo
#12-09-2014
#X_DIV_Y_X_MOD_Y
number_1= int(input("Please enter a number: "))
number_2= int(input("Please enter another number: "))
div= number_1//number_2
mod= number_1%number_2
print("The whole number is {0} and the remainder is {1}.".format(div,mod))
| [
"40904@PC004152.coll.lr.local"
] | 40904@PC004152.coll.lr.local |
78bbb210835cbd018d7ecaa35e73e284314cb1d1 | 4cf85b739fc7a1238f1c4447881178398c477844 | /backend/users/models.py | ac901bd3fd656b06c7790afaa510ca8a185fab11 | [] | no_license | juanrios15/jwt-users | 0a8de5f64e7a43fcfc47670e2fa7872db3a2b67a | 4eb4ec91c13fab4d8fc491eb24557364f10ec6a3 | refs/heads/main | 2023-06-20T15:03:19.806701 | 2021-07-11T04:35:42 | 2021-07-11T04:35:42 | 382,943,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager
# Create your models here.
class UserManager(BaseUserManager, models.Manager):
def _create_user(self, em... | [
"juankrios15@gmail.com"
] | juankrios15@gmail.com |
0d13290dc44ec8593cb073a1ca94340e77ff9ea9 | 146db8cd0f775e0c4d051ea675bd147f1cb08503 | /old/md-service/SMDS/timestamp.py | e0bd0bdf1daac67b56a62833456e03a8e2b03702 | [
"Apache-2.0"
] | permissive | syndicate-storage/syndicate | 3cb4a22a4ae0d92859f57ed4634b03f1665791e4 | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | refs/heads/master | 2020-04-14T19:59:42.849428 | 2016-03-24T15:47:49 | 2016-03-24T15:47:49 | 10,639,326 | 16 | 6 | null | null | null | null | UTF-8 | Python | false | false | 5,873 | py | #
# Utilities to handle timestamps / durations from/to integers and strings
#
# $Id: Timestamp.py 18344 2010-06-22 18:56:38Z caglar $
# $URL: http://svn.planet-lab.org/svn/PLCAPI/trunk/PLC/Timestamp.py $
#
#
# datetime.{datetime,timedelta} are powerful tools, but these objects are not
# natively marshalled over xmlrpc... | [
"jcnelson@cs.princeton.edu"
] | jcnelson@cs.princeton.edu |
1baa6dd0777f211ad099d2645e3760939937ecf9 | bad36d483848a45428683dbd69e255240f216b1f | /Random/ex06.py | 3f7052cec4ed7b10aac1f387f18827ec3e315652 | [] | no_license | ualiusman/PyEx | 6fb736b537ce8a5a353ab8c109f92775fd74e56e | e60390be26efa7ac715c1e9977d3d094bf673825 | refs/heads/master | 2022-03-12T20:07:11.693296 | 2022-02-23T20:38:58 | 2022-02-23T20:38:58 | 223,542,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | #Exercise 06:
import random
listString = input("enter a sentance:")
listString = str(listString)
a = ""
for n in range( len(listString),0,-1):
a += listString[n-1]
if listString == a:
print("list is plaindrom")
else:
print("list is not plaindrom")
| [
"usmanali.uali@live.com"
] | usmanali.uali@live.com |
93f760d29e6465c846af2a2e81bf5e01ba327359 | 4c67533d6d5183ed985288a55631fe1c99b5ae21 | /448.py | 9f64bb067dba432831726c47da96cfac37b25b7d | [] | no_license | Jiongxiao/Leetcode | 546f789a0d892fe56d7f53a41aa97ccb2a8e1813 | 641775f750a1197f9aaa23e5122b0add2ae064ee | refs/heads/master | 2021-01-17T01:11:35.970423 | 2017-09-21T07:04:52 | 2017-09-21T07:04:52 | 56,422,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | class Solution(object):
def findDisappearedNumbers(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
for i in range(len(nums)):
nums[abs(nums[i])-1]=-abs(nums[abs(nums[i])-1])
return [j+1 for j in range(len(nums)) if nums[j]>0] | [
"tctjx@hotmail.com"
] | tctjx@hotmail.com |
5107394e62284585daa97783cbc58916832410ed | c51f74578d78702461d436cc471b97236482a78b | /Prometheus/Python/4.3.py | 428e6dae7ba914b6b0db41ca397e1996e351ac5f | [] | no_license | taras18taras/Python | fa09481941adab6500854c644d5c1b7baeeb5d62 | a033bfa76dd4031fb04c5939dcce854d42831523 | refs/heads/master | 2022-11-25T20:58:06.711764 | 2018-03-14T07:51:45 | 2018-03-14T07:51:45 | 121,369,243 | 0 | 1 | null | 2022-11-20T03:43:44 | 2018-02-13T10:29:41 | Python | UTF-8 | Python | false | false | 304 | py | import sys
arg="())()(()())(()"
#p={parentheses1: "(", parentheses2: ")"}
s1=''
s2=''
if len(arg)%2 != 0:
print('NO')
exit(0)
elif arg[0] == ")" or arg[-1] == "(":
print("NO")
exit(0)
for i in arg:
if i == "(":
s1+=i
elif i == ")":
s2+=i
if len(s2) == len(s1):
print("YES")
else:
print("NO") | [
"taras18taras@gmail.com"
] | taras18taras@gmail.com |
e14680e33a16ef09bc1af36a1c10975723468088 | 1ad5297557b067a74d4afd33a4938d3c6614934c | /tuxhe_blog/admin.py | f7461b4c01f536c42c22f8eeaa99aa9ec9fd3dd6 | [] | no_license | tuxhe/tuxhe | d084035bcb10ed874d6573b976efaf15ed0f21a3 | 37ac70e2c44ee19151898779da3cff797c45023b | refs/heads/master | 2016-09-03T07:42:01.677909 | 2013-06-10T01:49:55 | 2013-06-10T01:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | from django.contrib import admin
from tuxhe_blog.models import Post
class PostAdmin(admin.ModelAdmin):
list_display = ('__unicode__', 'author_id', 'create_at', 'update_at')
list_filter = ('create_at', 'update_at')
search_fields = ('title', 'author_id__username', 'author_id__first_name')
fieldsets = ... | [
"houseedition@gmail.com"
] | houseedition@gmail.com |
9482590b67c4244af53683f471759b596e95df42 | 7e742840fe5b151b50ec9834634a9f75a886e3df | /__manifest__.py | 4a61c2011a200deacc320b93ee13aeb1ae92abb2 | [] | no_license | janeshl/new | cbc55eb26854111485973218406eb7d067fb15dd | ea5836dcec10c21e2e1010d7e887bb9cdab6b287 | refs/heads/main | 2023-04-18T23:37:28.424184 | 2021-04-27T10:16:51 | 2021-04-27T10:16:51 | 358,529,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # -*- coding: utf-8 -*-
{
'name': "new",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "My Company",
'website': "h... | [
"janeshlakshman7@gmail.com"
] | janeshlakshman7@gmail.com |
47902eb46edaee7209310ec530f2a044c245e295 | 031f18c257143aa15ba3a72aae6d82843e5a083f | /env/bin/pasteurize | ddbd87a348c4ffe072dc37e0453b4c52738a7cab | [] | no_license | PabloChamorroTebar/WEB-TFG | c9cbec43fdb88a5462e6e24083667c952ae295c6 | 878e8a819452b38d420b64cea24bd13a3cce09a7 | refs/heads/master | 2021-02-08T09:49:26.972247 | 2020-03-01T11:50:11 | 2020-03-01T11:50:11 | 244,138,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | #!/Users/pablochamorro/PycharmProjects/Tfg/env/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"pablochamorro@MacBook-Pro-de-Pablo.local"
] | pablochamorro@MacBook-Pro-de-Pablo.local | |
2c478fb713f273ebcc755c97aa70348d66391179 | fea44d5ca4e6c9b2c7950234718a4531d453849e | /sktime/forecasting/tests/test_sarimax.py | 17fdd9984ebd6c8806270391fc1ea39884dc931e | [
"BSD-3-Clause"
] | permissive | mlgig/sktime | 288069ab8c9b0743113877032dfca8cf1c2db3fb | 19618df351a27b77e3979efc191e53987dbd99ae | refs/heads/master | 2023-03-07T20:22:48.553615 | 2023-02-19T18:09:12 | 2023-02-19T18:09:12 | 234,604,691 | 1 | 0 | BSD-3-Clause | 2020-01-17T17:50:12 | 2020-01-17T17:50:11 | null | UTF-8 | Python | false | false | 1,049 | py | # -*- coding: utf-8 -*-
"""Tests the SARIMAX model."""
__author__ = ["TNTran92"]
import pytest
from numpy.testing import assert_allclose
from sktime.forecasting.sarimax import SARIMAX
from sktime.utils._testing.forecasting import make_forecasting_problem
from sktime.utils.validation._dependencies import _check_soft_d... | [
"noreply@github.com"
] | mlgig.noreply@github.com |
8bbeda72f37a50488eb26bdbe34f50cb14917af4 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0459-Repeated-Substring-Pattern/soln.py | 4ebac002c8929e3bbc180c53514482b5e1dc4e61 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 158 | py | class Solution:
def repeatedSubstringPattern(self, s):
"""
:type s: str
:rtype: bool
"""
return s in (s + s)[1:-1] | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
947b2fcbdca5e1cac34017bc1c75d05e106a4700 | 9f79c4f9a8a9154fc3dc9202ab8ed2547a722b5f | /Dictionaries/char_count.py | 6e73cf6fa167e94d9894e7ca32f38daa5956f09f | [] | no_license | grigor-stoyanov/PythonFundamentals | 31b6da00bd8294e8e802174dca4e62b231134090 | 5ae5f1f1b9ca9500d10e95318a731d3b29950a30 | refs/heads/main | 2023-02-11T12:17:19.010596 | 2021-01-14T22:14:54 | 2021-01-14T22:14:54 | 321,658,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | line = input().split()
char_dic = {}
for word in line:
for char in range(0, len(word)):
if word[char] not in char_dic:
char_dic[word[char]] = 1
else:
char_dic[word[char]] += 1
for key, value in char_dic.items():
print(f'{key} -> {value}')
| [
"76039296+codelocks7@users.noreply.github.com"
] | 76039296+codelocks7@users.noreply.github.com |
76e9188399310363fa0363e2f54dc699dab67a33 | a764e03aeea2d71ad0ed40d5495dd35cb6a2f2d2 | /setup.py | 66505858ecb7309ac41a1f924e3dfba775dd9a1e | [
"MIT"
] | permissive | ajoaoff/pathfinder | 829860ce2f759e6fca8dce7eae47f0ff9891a827 | f4261c30ba400597085afdc8f55472b355e0f320 | refs/heads/master | 2022-02-07T12:17:58.950555 | 2018-12-14T12:45:31 | 2018-12-14T12:45:31 | 161,476,885 | 0 | 0 | null | 2018-12-12T11:13:32 | 2018-12-12T11:13:32 | null | UTF-8 | Python | false | false | 3,074 | py | """Setup script.
Run "python3 setup --help-commands" to list all available commands and their
descriptions.
"""
import json
from abc import abstractmethod
from pathlib import Path
from subprocess import call, check_call
from setuptools import Command, setup
def read_version_from_json():
"""Read the NApp version... | [
"macartur.sc@gmail.com"
] | macartur.sc@gmail.com |
8c13f655d8ae98bb3e994fd2181dfbed06df9aa9 | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/locale/quests.py | d092b4f53be4bc89915ed7d17202ae9982bd837c | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,835 | py | # Embedded file name: scripts/client/gui/Scaleform/locale/QUESTS.py
class QUESTS(object):
IGR_TOOLTIP_BATTLESLABEL = '#quests:igr/tooltip/battlesLabel'
IGR_TOOLTIP_WINSLABEL = '#quests:igr/tooltip/winsLabel'
POSTBATTLE_PROGRESSRESET = '#quests:postBattle/progressReset'
TOOLTIP_PROGRESS_GROUPBY_HEADER ... | [
"info@webium.sk"
] | info@webium.sk |
0bb6bbb5cb9dab50c91c9d10e108fdd734f381b9 | c77b2f06a971d5e77a3dc71e972ef27fc85475a5 | /algo_ds/_general/pattern_matching_naive.py | b1c431aa83f479f3a7c749328a24bc2fee5b1372 | [] | no_license | thefr33radical/codeblue | f25520ea85110ed09b09ae38e7db92bab8285b2f | 86bf4a4ba693b1797564dca66b645487973dafa4 | refs/heads/master | 2022-08-01T19:05:09.486567 | 2022-07-18T22:56:05 | 2022-07-18T22:56:05 | 110,525,490 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | '''
txt[] = "THIS IS A TEST TEXT"
pat[] = "TEST"
'''
import re
def compute():
txt= "THIS IS A TEST TEXT TEST"
pat = "TEST"
m = re.search(pat, txt)
print(m.span())
if pat in txt:
print("yes")
if __name__=="__main__":
compute(... | [
"imperial.gauntlet@gmail.com"
] | imperial.gauntlet@gmail.com |
af117a214e9ee11f27d2d658208023a830eba035 | 284c2fab037fb55a13ef227d93eafe94a5558b69 | /extract_face_img.py | 4a5b414861ff7aa493b2c2139725f5caff389af1 | [] | no_license | emsha/bumble_bot | 757e3b2ce8422732c8887e7af2d703f1fd14a768 | 063520a4f64fbd343a1355fccf59b02d470932fe | refs/heads/master | 2020-09-24T03:40:50.475394 | 2019-12-03T15:52:10 | 2019-12-03T15:52:10 | 225,652,916 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | import pyscreenshot as ImageGrab
import numpy as np
import cv2 as cv
def extractFacesFromScreen(full_screen_path, save_path):
# grab fullscreen
im = ImageGrab.grab()
im_np = np.array(im)
# save image file
# print(0)
# img_name = full_screen_path+'screenshot.png'
# print(1)
# im.save... | [
"maxshashoua@gmail.com"
] | maxshashoua@gmail.com |
ba3b26fcd5bce849ee538c53641f1399c71178b4 | c1966debc6c164cefe7f5171c55661cb27b41162 | /cal/urls.py | aa85a63b8336c2bdc4d28d5b089aa4a213463961 | [] | no_license | wrabbit/skibi | 2b11244bfd2756bbfd7db69473539721b5ed5380 | a46543ac3f57187cd667b86de2780f4ded26b8d1 | refs/heads/master | 2021-01-17T09:32:43.075445 | 2008-07-03T16:15:00 | 2008-07-03T16:15:00 | 30,975 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from django.conf.urls.defaults import *
from cal.controller import CalendarController
from cal.models import Event
## calendar view
urlpatterns = patterns('cal.views',
(r'^view/.*$', 'view'),
(r'^upd/.*$', 'updEvent'),
(r'^add/.*$', 'addEvent'),
(r'^del/.*$', 'delEvent'),
(r'^.*$', 'view',{'header... | [
"kleiner1@op.pl"
] | kleiner1@op.pl |
2e8ddd35d6897244933cdd72f0cd5cb2f56f7102 | b8208e7ca345858b7a91bb1b2bedd1d18586d497 | /Project03/Project03/wsgi.py | aea2c14f4ee857c86ef61bc174b78cc64c57f921 | [] | no_license | HelenC11/CS1XA3 | 7b6c643aa4717dbbdbdddaef360fa7271e455c17 | 2f47b5901a8bd99cb9a531cbc013104e382dea24 | refs/heads/master | 2023-02-16T12:02:18.226502 | 2021-01-19T03:39:10 | 2021-01-19T03:39:10 | 232,410,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Project03 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"chenh214@mcmaster.ca"
] | chenh214@mcmaster.ca |
a8224a39756bc5a122a4204c1b62ab8ba4709b3d | 5503e9d542300d9a671b783aa7fea4d909e6b909 | /migrations/versions/ed91694044f6_.py | 39622bc3e0e12cb6737ea6250591775261fcde9b | [] | no_license | Ch3xd/WebPenFw | d874865ab38cef3eb886dc219c7e66859921cbcd | 0729fe9a3af6d06ebb79819a9d363e15ad8d369b | refs/heads/master | 2023-04-02T06:15:43.079736 | 2021-04-11T09:34:23 | 2021-04-11T09:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | """empty message
Revision ID: ed91694044f6
Revises:
Create Date: 2021-01-27 21:51:24.466508
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ed91694044f6'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"36556439+18508951871@users.noreply.github.com"
] | 36556439+18508951871@users.noreply.github.com |
39c7e607f72e93a7faa67ff08f4f3c8ebaa34496 | af0e71bd2a6e3d0bd33fcde91ff893fb4b712d52 | /multiAgents.py | c1818ed26cd43a3fda29189fe0d217443a52ba50 | [] | no_license | dhanashripp/AI_Adverserial_search | 20c8706ef6baa7e8703c3635ba09c8d55ad975c7 | f18a5752e7e7774c602aa42a715f0a91e71464e5 | refs/heads/master | 2021-07-21T06:01:18.916623 | 2017-11-01T01:00:15 | 2017-11-01T01:00:15 | 109,068,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,432 | py | # multiAgents.py
# --------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.e... | [
"dhanashripp@gmail.com"
] | dhanashripp@gmail.com |
857f35afbdcd66b55da744ea9218943a36d467af | a193ed2a98f0f53e9a8b68641e4bd9c45c8b1c4d | /main.py | 0c07b8c8f00ccc7e72160de8a78291bac897da90 | [] | no_license | silvanwalz/pythonkurs | c9fbedc784d525d8a0d7112455581c8f0c9d9a66 | ba43c1e3272e06fa81915674cd9d95e5ab969574 | refs/heads/main | 2023-08-16T20:48:05.857996 | 2021-10-05T14:48:39 | 2021-10-05T14:48:39 | 408,350,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from module1.file1 import importfun
def main():
importfun()
if __name__ == '__main__':
main() | [
"silvan.walz@hotmail.ch"
] | silvan.walz@hotmail.ch |
0da0f290f94f52c7dd23b74744834633d0fd949c | e5135867a8f2f5923b21523489c8f246d9c5a13a | /kaleo/management/commands/infinite_invites.py | b69ea50f7cd1935b122e67b8b0c4cb9bd4126e13 | [
"BSD-3-Clause"
] | permissive | exitio/kaleo | 01574cc0675211a586995e08a4e19b6a1c9063ee | 53e73e0acf3429d83b45e6b22b1a6ec76ac69c12 | refs/heads/master | 2021-01-21T01:27:44.609605 | 2013-01-31T15:50:10 | 2013-01-31T15:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import sys
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from kaleo.models import InvitationStat
class Command(BaseCommand):
help = "Sets invites_allocated to -1 to represent infinite invites."
def handle(self, *args, **kwargs):
for user in Use... | [
"me@ntucker.me"
] | me@ntucker.me |
d924c27a884790f3eccceeacebb5b4ef409f3586 | da5ef82554c6c0413193b7c99192edd70fed58dd | /mozdns/soa/tests.py | 529c22573446ed774dbfbfa53a43c6d989673fa2 | [] | no_license | rtucker-mozilla/mozilla_inventory | d643c7713c65aa870e732e18aaf19ce677e277b7 | bf9154b0d77705d8c0fe1a9a35ce9c1bd60fcbea | refs/heads/master | 2020-12-24T17:17:37.621418 | 2013-04-11T10:39:41 | 2013-04-11T10:39:41 | 2,709,399 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,757 | py | from django.test import TestCase
from django.core.exceptions import ValidationError
from mozdns.soa.models import SOA
from mozdns.domain.models import Domain
class SOATests(TestCase):
def setUp(self):
pass
def do_generic_add(self, primary, contact, retry, refresh, description):
soa = SOA(pri... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
a51011f924027a6676b24ba50a4fec72f5de0550 | b1fb632e96d85a4bd4f9f1869494147e70236546 | /model/attention_contextualGRU.py | 740ed6cb6359ee1881d3a02f3f98632c1af35b6f | [] | no_license | titanbt/contextualGRU-attention-lexicon | c9fb946550b99e1f1ac0678df5d3db363d3200d2 | 55f5b032a40a199bcb18c335f0cd908980080ce8 | refs/heads/master | 2021-06-25T04:06:53.764818 | 2018-03-29T06:56:32 | 2018-03-29T06:56:32 | 95,623,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,491 | py | from ConfigParser import SafeConfigParser
from utils.utils import minibatches_iter
from nn.lasagne_nlp.utils import utils
from loader.data_processor import DataProcessor
import codecs
import theano
from nn.attention_contexualGRU_net import Attention_ContexualGRU_Net
import numpy as np
from utils.utils import write_mode... | [
"huy.nguyen.plus@gmail.com"
] | huy.nguyen.plus@gmail.com |
6f5d17d41d1ec5ecbe55d5b7781cedf299a74aa5 | acb5667fbb95ac826828052f6e924acc50088de4 | /db/subscriptions.py | 4fe3f7d59a0fac215615d961cb44ab78bcab9f9f | [
"MIT"
] | permissive | mcastellin/pnotifier_bot | 486cd6c51d69e20d8c92394b477cb7d0d588ce2e | 33d94cb224436c6c965165f97a8892e5a620a90c | refs/heads/main | 2023-08-07T02:39:35.359599 | 2021-10-07T06:24:34 | 2021-10-07T06:24:34 | 373,787,341 | 0 | 0 | MIT | 2021-10-06T14:34:34 | 2021-06-04T09:19:05 | Python | UTF-8 | Python | false | false | 2,176 | py | import logging
import boto3
import sys
import os
TABLE_NAME = "subscriptions"
DYNAMODB_ENDPOINT_URL = os.getenv("DYNAMODB_ENDPOINT_URL", "http://localhost:4566")
ddb = boto3.resource(
"dynamodb",
aws_access_key_id="00000",
aws_secret_access_key="0000",
endpoint_url=DYNAMODB_ENDPOINT_URL,
region_na... | [
"manuel@castellinconsulting.com"
] | manuel@castellinconsulting.com |
0511554548309a1cca947a51f8f6b7629ec8ea61 | c18dc7e4c13fcfd8c282b867689fab42c3e25987 | /songer.py | 287ddc341dbd194ebe39868b7a90bdedc0093b17 | [] | no_license | KorigamiK/anime-ost-downloader | 39bfc282945acda0103d50483106ef141f06c7b9 | 5e55e2992039527451a59488e2a857a51c6e8cf1 | refs/heads/main | 2023-01-22T12:35:29.374369 | 2020-11-23T11:41:04 | 2020-11-23T11:41:04 | 315,296,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | import requests
from bs4 import BeautifulSoup as bs
import re
from tabulate import tabulate
import subprocess
data = {
"action": "data_fetch",
"keyword": input("Enter anime name: ")
}
response = requests.post("https://simplyaweeb.com/wp-admin/admin-ajax.php", data = data)
soup = bs(response.te... | [
"noreply@github.com"
] | KorigamiK.noreply@github.com |
a2556ca3423248387c4752f977fd8c4b52bd63ec | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/135/usersdata/224/45859/submittedfiles/OBI.py | 5fea3ee2b17d98501bf3732ea5e8dc6b5487efd9 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | # -*- coding: utf-8 -*-
N=int(input('Digite o numero de competidores: '))
P=int(input('Digite o numero mínimo de ponto para as duas fases: '))
somA=o
i=1
for i in range(1.n+1,1):
x=int(input('Nota1: '))
y=int(input('Nota2: '))
if x+y==P:
soma=soma+1
print(soma) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b13cac275f608ebea67b00f70a7d5e7ec19afebe | fa247fbb7755cf21fa262b02fa6c36a19adae55a | /manage.py | d344b73c096cab159e05d4a868f32b29a1888f88 | [] | no_license | crowdbotics-apps/csantosmachadogmailco-897 | 9ea0f851badc9678a8148ea051131eaa711b26de | b76954f678212ece02777d3deebb3e571bfb578c | refs/heads/master | 2022-12-13T12:51:23.337978 | 2019-02-07T13:01:07 | 2019-02-07T13:01:07 | 169,572,262 | 0 | 0 | null | 2022-12-08T01:37:36 | 2019-02-07T12:59:48 | Python | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "csantosmachadogmailco_897.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
560e49829624c61234c4d490a90f14c97d7ea2a1 | f22ed91535c999a1749786ad03e214f01c4ddcc7 | /Angle_Metrics.py | f9dddfd9218b28edba7c923220c0013b277285d1 | [] | no_license | djbrenne/Python | 022b1643a5a9181af95cde75fa156bad4e944f47 | c1fac9870fdbad8b25a5cfaf3873abcbf1149f20 | refs/heads/master | 2020-04-07T03:21:07.462566 | 2018-11-20T18:57:59 | 2018-11-20T18:57:59 | 158,012,795 | 0 | 1 | null | 2019-06-05T19:11:48 | 2018-11-17T18:26:32 | Python | UTF-8 | Python | false | false | 17,276 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 16 2018
@author: Dylan Brenneis
"""
#Imports
import os
import csv
import numpy as np
from scipy.signal import butter, lfilter, freqz
import matplotlib.pyplot as plt
#Initialize variables
directory = "H:/Dylan Brenneis/Compensatory Movements Study/Testing/Pro00077893-03-... | [
"djbrenne@ualberta.ca"
] | djbrenne@ualberta.ca |
6670e2460a625e2cfb88755fbfe891cdb613a680 | cd99382b3787d0575e05afe4d8d22b32e18e16cc | /customers/serializers.py | b89105cfd972c3ec3c40a8703f7b40bae4ede610 | [] | no_license | dhruv217/iocl-aplication-django | bce4821fa943d017f42d63a6e6e185a233d294ca | 53a8149d9b03f45e446815557c294826a58cede4 | refs/heads/master | 2020-04-14T21:45:17.093120 | 2019-01-05T11:10:30 | 2019-01-05T11:10:30 | 164,139,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from rest_framework import serializers
from customers.models import Customer
class CustomerSerializer(serializers.ModelSerializer):
added_by = serializers.StringRelatedField(
many=False,
read_only=True
)
class Meta:
model = Customer
fields = ('id', 'url', 'name', 'address',... | [
"dhruv217@localhost.localdomain"
] | dhruv217@localhost.localdomain |
88e1e0c8b162f7c1ddb2a9bc32f0881713f42175 | 39db9df7c659d77c4b22024cee3cfaca84db0966 | /trood/api/custodian/tests/test_cache.py | eba43216a868cba628c20412f991f1b72d534c3b | [] | no_license | boooka/trood-sdk | 1bcdf94728cf0230533fbc68851c36adac3a098a | d97a8656845187067c4c0467451ca718e30d47f5 | refs/heads/master | 2022-09-21T06:17:41.059497 | 2020-03-19T16:15:50 | 2020-03-19T16:15:50 | 260,407,682 | 0 | 0 | null | 2020-05-01T08:01:29 | 2020-05-01T08:01:29 | null | UTF-8 | Python | false | false | 2,654 | py | import copy
import os
import pytest
from hamcrest import *
from trood.api.custodian.client import Client
from trood.api.custodian.objects import Object
from trood.api.custodian.tests.utils import call_counter
@pytest.mark.usefixtures('flush_database')
class TestRqlSeries:
def test_cache_works_for_get_operation(... | [
"ornot.work@gmail.com"
] | ornot.work@gmail.com |
c745235af1797ebd4a55fabd5cba7deb70ca8a90 | 99ed338990ed7021c07b13e906a8d54a8ade496e | /0x06-python-classes/0-square.py | ba3353f0d80e37e7ba66acf03678ff0fb7419ce0 | [] | no_license | arioledavid/alx-higher_level_programming | 14bf9f57d9ac0fa62c7b9dfc177d005de8d95741 | f08ce1bfd8f6efac7c7c814f383f154d98b75bc5 | refs/heads/master | 2023-09-03T00:20:03.791193 | 2021-11-18T22:04:10 | 2021-11-18T22:04:10 | 403,700,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | #!/usr/bin/python3
""" Module 0-square """
class Square:
""" Empty Class """
pass
| [
"davidariole@gmail.com"
] | davidariole@gmail.com |
840c7867d840c4b0d35688536da325130c630cf9 | 013da629a4d1f67f891444c2ed6e462cf1f0c092 | /main.py | 166b3cccf06bbeb7d43088ff5650cc605646e781 | [] | no_license | FilatovF/pythonProject4 | 2b97930a0003f4b5aa010974515cfdc4f2e67b58 | 5cf67b76cb8aaac0dea297910a9da69dd4cbc061 | refs/heads/master | 2023-04-20T22:33:54.592548 | 2021-05-10T11:56:32 | 2021-05-10T11:56:32 | 366,026,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | """Task 1"""
lis = [12, 13, 14, 15]
def oops() -> int:
return lis[5]
def exept():
try:
print(oops())
except IndexError:
return "Ooops"
print(exept())
"""Task2"""
def calc():
while True:
try:
a = int(input("Enter a:"))
b = int(input("Enter b:"))
... | [
"filatov.f@ukr.net"
] | filatov.f@ukr.net |
7814cc5ddc37a8a14f896539b6a14f2a41cace21 | bb67c8a9bbfc69fd121a968c8362a22b01203228 | /backend/myapp/db_models.py | a1efca07e4e1a2935ae76225b94c9d8a9af1f29b | [
"MIT"
] | permissive | jscriptcoder/Docker-development | 889d17c5be130ce0b98590e51d9358ee38588bda | 411e66465e11e451c87f375b005feb50f5a15b3d | refs/heads/main | 2023-05-04T17:18:50.246408 | 2021-05-21T15:30:07 | 2021-05-21T15:30:07 | 347,105,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | from datetime import datetime
from .db import db
class ProcessModel(db.Model):
__tablename__ = 'process'
id = db.Column(db.String(32), primary_key=True)
started_on = db.Column(db.DateTime, default=datetime.utcnow)
ended_on = db.Column(db.DateTime)
result = db.Column(db.String(32))
def update... | [
"jscriptcoder@gmail.com"
] | jscriptcoder@gmail.com |
be9ed805d280be385d91bfdc757aff6b00158595 | f039fba32e1011cbbf05e546cc53d9843845cb82 | /src/pygentoolbox/TrimFastqToMidpoint.py | f49056cd845cac67b1812bd0ec12edbb939031a9 | [
"MIT"
] | permissive | VCMason/PyGenToolbox | f12879c9e36455db8b02f0c60d2dd4a51d8473c0 | 3367a9b3df3bdb0223dd9671e9d355b81455fe2f | refs/heads/master | 2022-05-14T13:48:50.423466 | 2022-04-10T13:02:48 | 2022-04-10T13:02:48 | 48,924,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,786 | py |
def trim_fastq_to_midpoint_gz(fastqfile, outfile, n=50, seqlenmin=125, seqlenmax=175):
# assume all sequences are complete fragments.
# n is length of midpoint sequence
print('Assuming all sequences are complete sequences fragments.')
print(f'Trimming front and end of all sequences to midpoints.... | [
"noreply@github.com"
] | VCMason.noreply@github.com |
f4115363359207d8d565955829e6cec80b3f3d8b | 2228d7b6039c19dd24253815b609441cac13c3fe | /knapsack_heuristic/utils/instance.py | 9080619b0086d384232cea081407ae8ae1326ac7 | [
"MIT"
] | permissive | patrotom/combinatorial-optimization-problems | bd3d759917504e7f60ea4c979bbea7c3a88aca04 | cead0d60d62a2adf90f4bb5c144a33f8f36e0fc3 | refs/heads/master | 2023-02-15T06:50:13.588912 | 2021-01-12T18:06:28 | 2021-01-12T18:06:28 | 300,247,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | from math import floor
from functools import reduce
class Instance:
def __init__(self, id, size, capacity, items, opt_price):
self.id = int(id)
self.size = int(size)
self.capacity = int(capacity)
self.items = items
self.opt_price = int(opt_price)
self.eps = 0
... | [
"tomas.patro@gmail.com"
] | tomas.patro@gmail.com |
d14ce4d4e3bde8dff86cf8596a0610aa6ce7e652 | 210e88536cd2a917fb66010ff69f6710b2261e8e | /games/migrations/0002_auto__add_field_game_is_over.py | ab9299348edd60d9b0e5600523b1bc7cd285f9ce | [] | no_license | tlam/multiverse_sidekick | e5ef1fa908c6fd3fee4d816aa1776b7243075e8c | 9211e4cb36611088420a79666f0c40ecb0a6b645 | refs/heads/master | 2020-04-17T08:30:28.396623 | 2015-08-27T03:36:47 | 2015-08-27T03:36:47 | 9,423,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Game.is_over'
db.add_column(u'games_game', 'is_over',
self.gf('django.... | [
"lamthierry@gmail.com"
] | lamthierry@gmail.com |
406ab68986f731db4cd6f052760f43c444130111 | c3beb0a910bb827186c92a7c789a762fab1c5025 | /matrix.py | d58347d2268c6c1a278c5f84c0cae4122299de69 | [] | no_license | harrimand/harrimand.github.io | d90793164feb652f746fad5031c57aee787d22b3 | 320f57eb74bb2e3edd53396e8bce0056f0d281b5 | refs/heads/master | 2021-07-08T14:40:04.251667 | 2020-06-23T16:25:45 | 2020-06-23T16:25:45 | 131,474,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,642 | py | # Matrix row operations calculator by Darrell Harriman harrimand@gmail.com
class Mat:
"""Perform matrix row operations on an n x n list """
def __init__(self, mtrx):
"""Create object from n x n list
Args:
mtrx (2D list of [int|float]): n x n list of integers or floats
"""... | [
"harrimand@gmail.com"
] | harrimand@gmail.com |
7b1cace4b05ef5b8084f9ee772239a20e624f9ab | 675e0923fe358a82f23beb8705a49159583830e9 | /LEVELUP/FizzBuzz/test_fizzbuzz.py | 125ccfbad3fca77471fe1c18ffb270cdfdced495 | [
"MIT"
] | permissive | Simbadeveloper/AndelaCodeCamp | c846a87cff3d56bb282ccabd35bcc8070d060ace | 9c61d087329920eb04214268c5085644b23de114 | refs/heads/master | 2022-12-10T23:08:38.772918 | 2019-06-14T08:53:00 | 2019-06-14T08:53:00 | 158,019,808 | 0 | 0 | MIT | 2022-12-08T01:20:32 | 2018-11-17T19:58:55 | Python | UTF-8 | Python | false | false | 646 | py | import unittest
from fizzbuzz import FizzBuzz
class TestFizzBuzz(unittest.TestCase):
def test_simple_should_return_the_number(self):
self.assertEqual(FizzBuzz(1), 1)
self.assertEqual(FizzBuzz(2), 2)
self.assertEqual(FizzBuzz(4), 4)
def test_multiple_3_should_return_fizz(self):
self.assertEqual(FizzBuzz(3),... | [
"silverdeltamega@gmail.com"
] | silverdeltamega@gmail.com |
574f26adf2ea850867892f75bcbba987c8f63156 | c7aa86fc206ccdb91e89295704dd068892bda6f6 | /challenge16.py | f2c61155148ece6adf009b490b3dbe91713d77b7 | [] | no_license | ritobanrc/cryptopals | f2bb031f07de172f1f2735feae79a8f21dbc4e75 | 61c84db90516a915a24f4421d1216b4d2723579a | refs/heads/master | 2020-03-16T13:08:49.489344 | 2020-01-22T02:09:09 | 2020-01-22T02:09:09 | 132,682,310 | 0 | 0 | null | 2018-05-09T21:52:21 | 2018-05-09T00:59:52 | Python | UTF-8 | Python | false | false | 2,519 | py | #!/usr/bin/env python3
from challenge11 import random_string
from Crypto.Cipher import AES
from urllib.parse import quote, unquote
from challenge9 import pkcs7padding
from challenge10 import aes_cbc_encrypt, aes_cbc_decrypt
from challenge15 import strip_pkcs7padding
from util import *
from challenge2 import fixed_xor
f... | [
"ritobanrc@gmail.com"
] | ritobanrc@gmail.com |
d1d2b859904e2d714def63d27148d911b68e70b9 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /Facebook/PhoneInterview/shortest_job_first.py | 02f0c808d6aad85a7f1028a46e84e57fdcc92298 | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | import heapq
class process:
def process(self, arr, exe):
self.arrTime = arr
self.exeTime = exe
class Solution:
def shortest_job_first(self, req, dur):
if req == None or dur == None or len(req) != len(dur):
return 0
index, length = 0, len(req)
waitTime, curTime... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
ee5988f7474b4fc537308710e17b74a741581fd1 | d8ea695288010f7496c8661bfc3a7675477dcba0 | /django/ewm/file/admin.py | edbb70030fbb242451d77d39501bf657b1b2fdb1 | [] | no_license | dabolau/demo | de9c593dabca26144ef8098c437369492797edd6 | 212f4c2ec6b49baef0ef5fcdee6f178fa21c5713 | refs/heads/master | 2021-01-17T16:09:48.381642 | 2018-10-08T10:12:45 | 2018-10-08T10:12:45 | 90,009,236 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from django.contrib import admin
from file.models import *
###
# 注册附件信息数据库模型和自定义功能
###
@admin.register(File)
class FileAdmin(admin.ModelAdmin):
###
# 管理中要显示的字段名称
###
list_display = [
'file_name',
# 'manufacturer_name',
# 'model_specification',
# 'equipme... | [
"dabolau@qq.com"
] | dabolau@qq.com |
531fc91cb726d02cb67f66ef2e47ef8a4d3e8302 | f5f77e0d6e7d96099ca23898136ea53a11ba65a1 | /server/webDB/urls.py | b037ac4a122d26fe8ab6a17dc0c5b92b1a413b84 | [
"Apache-2.0"
] | permissive | ZihuanLing/webDB | 4ea4817d21f9800961c3df0c35cae2c79378fdbf | 791a0b78bae0fe1ce454506a1bf37d6de5e7f00f | refs/heads/master | 2020-09-16T17:13:52.786209 | 2020-05-10T14:56:01 | 2020-05-10T14:56:01 | 223,838,672 | 1 | 0 | Apache-2.0 | 2020-05-10T14:27:42 | 2019-11-25T01:35:39 | null | UTF-8 | Python | false | false | 325 | py | from apps.users.urls import urlpattern as user_urls
from apps.manager.urls import urlpattern as manager_urls
from webDB.handlers import MainHanler, MyStaticFileHandler
urlpattern = [
(r'/?', MainHanler),
(r'/media/(.*)', MyStaticFileHandler, {'path': 'media'})
]
urlpattern += user_urls
urlpattern += manager_... | [
"neil.ling@foxmail.com"
] | neil.ling@foxmail.com |
fb40926909edaa9b82c0af122712d25e9e9545f3 | 82bf716e7fae42d0e51a1265f671b84c3d86f607 | /kaggle/natureconservacyfisheriesmonitoring/annotations.py | f2ff1479c3250c42c21563bafd653f9f949c8041 | [] | no_license | icostan/machine-learning | c18aca60d267e1242c0986694f7251cd40385653 | 9f2482cf58d38d0ed4c500929ea0956aa5689212 | refs/heads/master | 2022-01-21T07:26:01.484077 | 2019-05-04T07:29:27 | 2019-05-04T07:29:27 | 84,664,295 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import json
import functools
def for_image(filename, fish):
for a in for_fish(fish):
if a['filename'] == filename:
if len(a['annotations']) > 0:
return a['annotations'][0]
else:
return None
@functools.lru_cache(maxsize=None)
def for_fish(fish='LAG'):... | [
"iulian.costan@gmail.com"
] | iulian.costan@gmail.com |
c9f2c965fb311a19aa5b1a065f129044fc7f7560 | 90e8025b1b17c3d10057ff2249aef9462c0d7714 | /mysite/mysite/urls.py | 3a4c550ad3ba1e72905ffe1edc238c1a48d80cf3 | [] | no_license | magler/djangoproject | 22b42e62d3a1f7f713060d674439a950993f3395 | ddacc01c08626f1e53902dde1ab8d8e59007eac9 | refs/heads/master | 2021-01-10T19:27:05.549951 | 2015-01-06T07:46:23 | 2015-01-06T07:46:23 | 25,502,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'mysite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^polls/', include('polls.urls')),
... | [
"mike.t.alger@gmail.com"
] | mike.t.alger@gmail.com |
62f86d9acac14e31bff63aef82dd07d7ffd8c325 | 88dedf8b121fd07065a103e68e44276d596dbd41 | /codewars/6 kyu/supermarket_queue.py | cd5db6589dc6da1cd161683ded44cb362c166039 | [] | no_license | azizsaad/55-CodeWars-Problems | 9161a1649e6dc7757ef406f515e20db4020a60a0 | 669800fb1fc974f1c78dea78b4041d3c518e3b6b | refs/heads/master | 2022-12-23T15:47:25.767178 | 2020-09-24T21:08:29 | 2020-09-24T21:08:29 | 298,393,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | def queue_time(customers, n):
if customers == []:
return 0
tills = []
for index, item in enumerate(customers):
if len(tills) == n:
val = tills.index(min(tills))
tills[val] = tills[val] + item
else:
tills.append(item)
return max(tills)
pri... | [
"noreply@github.com"
] | azizsaad.noreply@github.com |
04153bb5d37ce2d86223a0bd652aa1f3ce650c12 | 4a344071b0dc0e43073f5aa680dc9ed46074d7db | /azure/mgmt/network/models/network_management_client_enums.py | 5f0cd8bb7a6b49af179f7ff4a5221d9d397fba4a | [] | no_license | pexip/os-python-azure-mgmt-network | 59ee8859cda2a77e03c051d104b1e8d2f08c1fe3 | fa4f791818b8432888c398b3841da58e5aeb370b | refs/heads/master | 2023-08-28T05:02:29.843835 | 2017-02-28T11:38:16 | 2017-02-28T11:47:18 | 54,524,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,166 | py | # 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) AutoRest Code Generator.
# C... | [
"jmb@pexip.com"
] | jmb@pexip.com |
be0a81ed388196df8ff3bef44b89a2f28f6d4ded | d7aa17e5310ced171b4a99c72ab0cc0fdb976db7 | /homework7_test.py | 32f286135f7db2cfc1eb39418aef451b3044b321 | [] | no_license | cookieeeeee/homework-7 | 52e47a617b04d1d8400e1cdc5cdb4afddf3d0227 | 768ce5107c149442bf4eab3cebcfa5c67e94ec7c | refs/heads/master | 2020-07-13T18:26:06.102562 | 2016-11-16T05:15:57 | 2016-11-16T05:15:57 | 73,886,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | from homework7 import *
import unittest
import string
class TestHomework(unittest.TestCase):
def testTokenize(self):
string = " This is an example. "
self.assertEqual(tokenize(string),['This', 'is', 'an', 'example', '.'])
string = "'Medium-rare,' she said."
self.asser... | [
"noreply@github.com"
] | cookieeeeee.noreply@github.com |
68cf18a15a097151a12e5d883663349f357220f1 | 8382222033944cca777252870411b59d38789236 | /src/reader.py | 03a9a4634cae953d51d63ada28f0d1070c26dd00 | [
"MIT"
] | permissive | prasanna08/tipr-second-assignment | d4db9270079d2279b8657dd2854623d6d89a8cf1 | cfd1a8bcfe01175dfd79e3566914c5d571c2df28 | refs/heads/master | 2020-04-26T07:54:17.258465 | 2019-03-04T03:59:37 | 2019-03-04T16:23:04 | 173,407,465 | 0 | 0 | null | 2019-03-02T05:30:09 | 2019-03-02T05:30:09 | null | UTF-8 | Python | false | false | 1,033 | py | import os
import skimage
import copy
from sklearn.preprocessing import OneHotEncoder
import numpy as np
def read_dataset(dpath, resize=None):
x = []
y = []
for i in os.listdir(dpath):
print('reading images from %s folder.' % (i))
for image in os.listdir(os.path.join(dpath, i)):
i... | [
"prasannapatil08@gmail.com"
] | prasannapatil08@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.