blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 3 135 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 68 | visit_date timestamp[ns]date 2015-07-25 20:53:29 2023-09-06 10:46:05 | revision_date timestamp[ns]date 1970-01-01 00:00:00 2037-05-03 13:00:00 | committer_date timestamp[ns]date 1970-01-01 00:00:00 2036-02-09 17:40:36 | github_id int64 1.61k 691M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 24
values | gha_event_created_at timestamp[ns]date 2012-06-03 10:21:33 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-09-13 22:40:33 ⌀ | gha_language stringclasses 250
values | src_encoding stringclasses 27
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10M | extension stringclasses 289
values | filename stringlengths 1 218 | content stringlengths 6 10M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63c214d9e831356345ba2eee68634af36964dcff | 9fa1b5c19d79a2a723baa43b0a218010ebc2ff02 | /mol_dy2_tmp.py | db33b10edc6a08f1e668aead9358e5352bd0654c | [] | no_license | phansler/molecular_dynamics | d6ca94d20a24984514e0c3d7d249e7c0490f5fb3 | 2633c494c1b9a5050c68e0de6c421fa2e381b1e5 | refs/heads/master | 2021-01-18T05:23:33.276610 | 2015-02-19T14:56:37 | 2015-02-19T14:56:37 | 30,251,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | mol_dy2_tmp.py | # Overview file
#import python classes
import numpy as np
import random as rn
import math
import matplotlib.pyplot as plt
import pylab
from mpl_toolkits.mplot3d import Axes3D
#import self produced classes
import forcemodule as fm
import init_sys
# independent parameters
dt = 0.004
N=2048
lpnum = 1000
density = 0.... |
8bb39149a5b7f4f4b1d3d62a002ab97421905ea1 | 4d5e39299941b7d670860e86401d9e426109bafb | /languages/Python/xapi/symbol.py | cf7335cfa535a832216dc181b1334a0b81618726 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | tianhm/XAPI3 | de63e5566d93de6d769d79f5859b71c3ca0589ee | 86b8a61a664bd3bc8bb0305fa73484d28ea8ed95 | refs/heads/main | 2023-04-07T11:24:14.462807 | 2021-12-09T02:33:50 | 2021-12-09T02:33:50 | 303,708,390 | 0 | 0 | BSD-2-Clause | 2023-03-30T22:14:59 | 2020-10-13T13:14:37 | null | UTF-8 | Python | false | false | 2,418 | py | symbol.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
处理与合约名字有关的变量
"""
import re
# 上期所
PRODUCTS_SHFE = {'cu', 'al', 'zn', 'pb', 'ni', 'sn', 'au', 'ag', 'rb', 'wr', 'hc', 'fu', 'bu', 'ru'}
# 中金所
PRODUCTS_CFFEX = {'IF', 'IC', 'IH', 'T', 'TF'}
# 郑商所
PRODUCTS_CZCE = {'SR', 'CF', 'ZC', 'FG', 'TA', 'WH', 'PM', 'RI', 'LR', 'JR',... |
58aa72588357b18ab42391dfffbf2a1b66589edd | c5fd80ede07f0972a9b99d0c65a0df40e6d487fa | /pyocd/target/builtin/target_MKV11Z128xxx7.py | 6ed7f9e31a4efcb4a3c3e40b37528d7ef7db7ffe | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pyocd/pyOCD | 46330f3a10c9be381293d220cc025e0e347513ce | 9253740baf46ebf4eacbce6bf3369150c5fb8ee0 | refs/heads/main | 2023-08-18T07:56:54.205305 | 2023-08-13T19:11:01 | 2023-08-13T19:11:01 | 13,862,423 | 507 | 204 | Apache-2.0 | 2023-09-09T20:13:57 | 2013-10-25T14:10:05 | Python | UTF-8 | Python | false | false | 6,961 | py | target_MKV11Z128xxx7.py | # pyOCD debugger
# Copyright (c) 2006-2013,2018 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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/LICENS... |
18c2fe40b51ad1489d55aa2be068a1c4f381a2a5 | 2ecd795ecc5676828633a7bc94f3f50cb542be39 | /FinanceLabs/apps/accounts/models.py | 2520b85f697a216128d2b6d33b72d56494c8077d | [] | no_license | DoubleTroubleOf/DoubleTroubleOf | c19400e9b922bdbb13be651002fef8d6dab87dc9 | d4e4033ed412b1cce7fddfade8576d2f04093452 | refs/heads/master | 2020-12-27T17:24:51.611649 | 2020-03-23T11:00:14 | 2020-03-23T11:00:14 | 237,987,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | models.py | import datetime
from django.db import models
from django.utils import timezone
class Acoount(models.Model):
first_name = models.CharField("Ім\'я", max_length=50)
last_name = models.CharField('Прізвище', max_length=50)
username = models.CharField('Псевдонім', max_length=50)
email = models.CharField('Е... |
3f8c13be547099aa6612365452926db95828b9a0 | 7b25e60a674b7e26b554ce214566887a184b1588 | /setup.py | 693560da73397fe6e1a763fddbbedbc029ec8c72 | [] | no_license | PidgeyL/RedHat-Advisory-Checker | 5143ee50769d0f589772ac1fc9cb1840b3fa113f | 50b1e84f4a4cfeafa130a317134427acd032d3ca | refs/heads/master | 2021-01-01T06:38:15.739314 | 2015-11-09T11:56:59 | 2015-11-09T11:56:59 | 41,475,901 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | setup.py | from setuptools import setup
setup(name='RedHatSecurityAdvisory',
version='0.1',
description='Script that automatically checks the RedHat security advisories to see if a CVE applies',
author='Pieter-Jan Moreels',
url='https://github.com/PidgeyL/RedHat-Advisory-Checker',
entry_points={'con... |
5ef65ace397be17be62625ed27b5753d15565d61 | 2c871f1b1410953b0f5d8ebefffcad86d3d742e0 | /python/prir/files/dataset_file_manager.py | 9216d40c1c4158d12042732ea85ca47be511b341 | [] | no_license | pawel717-PRIR/lab3 | f22117be1941fa32fbfa9c4882a7ec86b3891490 | 0e8853da800b386631a728e804845af2c2614b8a | refs/heads/master | 2020-08-30T07:02:23.918799 | 2019-11-12T00:15:54 | 2019-11-12T00:15:54 | 218,299,813 | 0 | 0 | null | 2019-11-12T00:15:55 | 2019-10-29T13:56:40 | Cuda | UTF-8 | Python | false | false | 130 | py | dataset_file_manager.py | from abc import ABC, abstractmethod
class DatasetFileManager(ABC):
@abstractmethod
def read_dataset(self):
pass
|
236dd70dec8d53062d6c38c370cb8f11dc5ef9d0 | 4c43789663347352115e25cedb35496050df735a | /O_Scripts/ThinkBayes/Ods_endevent_5/Dice2.py | c2b1343be18c4f52485374af3b41a292dd6b221c | [] | no_license | kerolesmonsef/pycharmMachineLeaning | 86e0a6187619a062cfae739865d5b7e899046823 | 484e31f6df36fab89a30822af7d50b24e721e86b | refs/heads/master | 2022-12-01T08:22:05.205610 | 2020-08-15T21:24:28 | 2020-08-15T21:24:28 | 228,585,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | Dice2.py | import thinkbayes2 as thinkbayes
from thinkbayes2 import Pmf
import thinkplot
class Dice2(Pmf):
def __init__(self, sides):
Pmf.__init__(self)
for x in range(1, sides + 1):
self.Set(x, 1)
self.Normalize()
if __name__ == "__main__":
d6 = Dice2(6)
dices = [d6] * 6
th... |
b9bd1c0f4a5d2e6eeb75ba4f27d33ad5fb22530e | 127cf966ceceaee72503472cc9eec05c28cab02a | /swg_generated/python/swagger_client/models/deposit_complete_response.py | 3a09b05da564f91c3aab24834e13e08d3d964dbf | [
"MIT"
] | permissive | uJhin/upbit-client | 42d089f5493f9430a0469401b75e5570721aa5c6 | bd8af274c8e768038ab57dcd19fa7713319e1904 | refs/heads/main | 2023-08-23T16:46:09.040718 | 2023-08-17T06:28:43 | 2023-08-17T06:28:43 | 327,529,427 | 59 | 67 | MIT | 2023-08-17T06:28:45 | 2021-01-07T06:56:26 | C++ | UTF-8 | Python | false | false | 5,303 | py | deposit_complete_response.py | # coding: utf-8
"""
Upbit Open API
## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com] # noqa: E501
OpenAPI spec version: 1.0.0
Contact: ujhin942@gmail.com
Generated by: https:... |
d1dc807ecc92d9108db2c9bd00ee9781e174a1aa | 8acfd52fc3bb8cdb03a6132a3d6d7cba6eb81361 | /entity_emailer/interface.py | dca68ba67f0d59d181ccaeff417bcadaadf440e1 | [
"MIT"
] | permissive | YagoRizzetti/django-entity-emailer | 596c15ad7129a21a53ab8c6b6eb7ccd8ffa15e7a | 20949b4d66c6691562e9fba1729e03118bca64ef | refs/heads/master | 2020-03-19T08:08:42.515277 | 2018-04-12T20:54:34 | 2018-04-12T20:54:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | interface.py | from datetime import datetime
from django.core import mail
from entity_event import context_loader
from entity_emailer.models import Email
from entity_emailer.utils import get_medium, get_from_email_address, get_subscribed_email_addresses, \
create_email_message, extract_email_subject_from_html_content
class E... |
7a1be5c9c48413ba1969631e99ecb45cf15ef613 | ae872fcebdd066a780ebfbff35a14e3a0e822f67 | /Registration/migrations/0016_auto_20160109_2122.py | 2238c6e5490a1a0e332eab94e4e5c37e4ad2d157 | [] | no_license | michaelrhyndress/Resify | a967427251a7bba34593e358d729c36da8e408fa | 5047b6814bb255a4c48939cbdc89a3fe018ee843 | refs/heads/master | 2021-03-27T09:49:19.546812 | 2016-02-11T03:59:21 | 2016-02-11T03:59:21 | 27,564,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | 0016_auto_20160109_2122.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('Registration', '0015_auto_20150525_1815'),
]
operations = [
migrations.AlterField(
... |
b3c1ff323cac342f1569ff08301931f00098bd18 | 0d966c8dd7ea5929ef7a5ccc0bf7c4d427d53a93 | /bage_utils/ssh_util.py | 8c5b59c7eb917946959ac04920ea7bdbbf7099a8 | [
"MIT"
] | permissive | bage79/nlp4kor | 6b03934e4bfd561e86351ec47c10e6324f8f4a79 | 016a20270774325579fc816a0364fb1695e60b51 | refs/heads/master | 2021-01-20T02:41:26.983614 | 2019-10-22T14:15:52 | 2019-10-22T14:15:52 | 92,722,184 | 58 | 15 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | ssh_util.py | import traceback
import warnings
import paramiko
warnings.filterwarnings("ignore")
class SshUtil(object):
"""
- Connect remote by SSH and run specific command.
- See also `bage_util.SellUtil`
"""
def __init__(self, hostname, username=None, password=None, port=22, log=None):
self.client ... |
b604c94929c3eb6677a67865c58660f29eb84a6c | 8e1df9721210236bd28aeb8d7349d1ee4ccf4cd2 | /nmapxmltocsv.py | 3a4988c6e5af7ce3bb84dbe85a0ae57966724a15 | [] | no_license | yvv4git/nmapXml2Csv | 7b55e88f169ecbf1ef1927c76e2737287659167b | 3ff8d639e6a317d97c50d2ad37630f0cb187263e | refs/heads/master | 2021-01-22T03:29:40.936466 | 2017-05-25T08:14:05 | 2017-05-25T08:14:05 | 92,379,671 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | nmapxmltocsv.py | #!/usr/bin/python
import sys
import argparse
import xml.etree.ElementTree as ET
def main(argv):
inputfile = ''
outputfile = ''
parser = argparse.ArgumentParser(description="Parse Nmap XML output and create CSV")
parser.add_argument('inputfile', help='The XML File')
parser.add_argument('outputfile', help='The ou... |
65f0cab963479988ce325214d493f3ddcec0b186 | 43d2716b90d38ec7d38a027b1949858e17fbdf85 | /classes/ViewMatrix.py | 9133a64a1808287061f3a251c33963d4028fd5b9 | [] | no_license | Bjavillo1059/ApexGaming.py | dce16cf053fd7fc29f73fd78e821ef3946ea437d | 3d6ed12152a0bfe5d89ad27bc3a1ba41b382e3f9 | refs/heads/master | 2023-03-19T10:56:10.024817 | 2020-06-06T14:01:14 | 2020-06-06T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | ViewMatrix.py | from .helpers import *
class ViewMatrix:
def __init__(self, socket, processID, pointer):
self.socket = socket
self.processID = processID
self.classStart = self.socket.readProcessMemory(self.processID, pointer, 8)
def array(self):
viewMatrix = [[], [], [], []]
for i in r... |
8ad15673e46f48c702501c06ed25e5cfc5120f99 | de03071a80eb5e699571805a6cb513e299afc629 | /web/apps/chat/provider.py | ae565ae398a03438aa9045e09e52a759a629f2fa | [] | no_license | LifeLaboratory/Exploration_BarnaulHack2021 | 2b1f2a5a908770490f1e734d552be0b3fec101e6 | a05015ed2f877a86a957ec5991ccd877509a2695 | refs/heads/master | 2023-04-11T23:01:55.357841 | 2021-05-16T07:44:31 | 2021-05-16T07:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | provider.py | # Тут лежат функции, поставляющие какие-то данные. Допустим, запрос на получение юзера из БД
import os
from typing import Optional
from base.provider import BaseProvider
class Provider(BaseProvider):
def __init__(self):
super().__init__('chat')
def get_chat(self, id_first: int, id_second: int) -> lis... |
782d0b65c0d606e700afe977564941c95075ef63 | 96f12e91437639ebb6685dd2eef02e12ae8e1c22 | /pyconnectomist/preproc/all_steps.py | 12fc8a3aa95f357bba8bee702272684b236088fc | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | IvanBrossollet/pyconnectomist | b8b203fd385bf5544d8c9e903bcb76fe91bf9215 | 81881fd88d94b3c2bd401602783261a64e818a05 | refs/heads/master | 2022-03-20T08:31:20.750619 | 2019-07-24T12:19:35 | 2019-07-24T12:19:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,845 | py | all_steps.py | ##########################################################################
# NSAp - Copyright (C) CEA, 2013 - 2016
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html for details.
#####... |
08cfa7dab4179047c5c9aa0c40b8d2f9ef522dcc | 4b5c747e964341dabb90315a67f0ea5e2e8cf474 | /extract_features.py | 77c229d731731975d2c76b2bf0c9a1edc65a1515 | [] | no_license | oyurimatheus/quem-eh-esse-pokemon | e38f02a019e87e996943098b17e6abf443e6c676 | d937668edc88d97c3ceda41e290647dfbbfc04e7 | refs/heads/master | 2020-03-24T04:29:03.715893 | 2018-07-26T14:45:58 | 2018-07-26T14:45:58 | 142,454,557 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | extract_features.py | import cv2 as cv
import numpy as np
import os
from constants import pokemons, DATASET_PATH
"""
input [mean blue, mean green, mean red, main color, hu moments]
label pokemon label
"""
train_data = []
labels = []
def _get_total_images(pokemon) -> int:
return len(os.listdir(f'{DATASET_PATH}/images/{pokemon.name}'... |
6161cbe84787179777b48b2e3e80540bcb4d25b4 | f20699da7b9792aa4c8af1648537e8252d2a7de2 | /inc/data-bounds.py | 97b66054da663c504cecdc1324f89e4f02a9cd9a | [
"Unlicense"
] | permissive | hholzgra/maposmatic-vagrant | 81d7492d45745f241cf8181d72acb1ca81ad8f18 | 5c9bb4398c1d4d0b3b600e069bfd6b335321f63d | refs/heads/master | 2023-07-26T11:40:46.116371 | 2023-07-19T10:29:44 | 2023-07-19T10:29:44 | 53,898,859 | 32 | 14 | Unlicense | 2023-03-04T15:39:33 | 2016-03-14T23:15:38 | Shell | UTF-8 | Python | false | false | 3,048 | py | data-bounds.py | #!/usr/bin/python3
import os
import sys
import psycopg2
import re
import json
import subprocess
conn = psycopg2.connect(host="127.0.0.1", database="gis", user="maposmatic", password="secret")
boundsdir = sys.argv[1]
if not os.path.exists(boundsdir):
os.mkdir(boundsdir)
os.chdir(boundsdir)
pbf_file = sys.argv[2]... |
d952d0d067e7de33f46efd9f9f96e3a2a0c800bb | 5728edf2035eb56bc1bad65b954c3cc67b70e33b | /correct_gtf.py | ec0e354375bd9a5f009be03272134ec9161afbaa | [] | no_license | binshuangli/miscellaneous | aa1d17ed7e9ab1bbc4c2e2a2db8544e44b989ff5 | 599f4bb5cdc623fd7e33779c8022a4983ed18abc | refs/heads/master | 2021-04-15T07:26:44.975737 | 2019-04-21T07:12:50 | 2019-04-21T07:12:50 | 126,614,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | correct_gtf.py | #Correct gtf file to make sure the CDS information is a multiply of 3 so that it will work with SNPGenie.
import csv
with open("utg000001l_pilon10_corrected_0start.gtf","w") as f2:
with open("utg000001l_pilon10.gtf") as f:
for line in f:
newline = line.rstrip('\n').split('\t')
scaffold = newline[0]
source ... |
63a517623d7b02489f73155cf828cc491a52be74 | c851d1f02051c7fe15c6dc61a89e31bcb31bc14a | /src/network.py | 8f00d037134136aad3961cbd86e1c2b190400714 | [
"MIT"
] | permissive | alyuzberil/CS484-object-localization-and-recognition | 931ec5dbb19bf36544727507cfcc1baa434d55a8 | 81afc655b3ed38d4f040c465465f25c8ae4abfdf | refs/heads/master | 2023-03-23T09:14:27.946750 | 2020-01-03T21:58:57 | 2020-01-03T21:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | network.py | from torch import nn
class FeedForwardNN(nn.Module):
def __init__(self, hidden_size):
super().__init__()
self.fc1 = nn.Linear(2048, hidden_size)
self.relu = nn.ReLU()
self.fc2 = nn.Linear(hidden_size, 10)
def forward(self, x):
out = self.fc1(x)
out = self.relu(... |
25826a4a970a20aac7954d6848a36439d44d1467 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/autograph/converters/return_statements.py | b044a4fbe36262004892f6749877e7a1e3bb89ee | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | return_statements.py | version https://git-lfs.github.com/spec/v1
oid sha256:f27af7c39231f4843a24e2ac828e5adef93f0f734aa7c0696bf3e76766a043e1
size 13884
|
84d1eda6d8823632a45c36cffa60e203f85b4f6c | 7ebb034119a00b6587539a8d541d49282e3dc423 | /globalVariables.py | 2916f0b644c0ddaab3c1a92ccc57c5e9dbcc9743 | [] | no_license | AlexisChup/croque-carotte | 6c4047d28ca9f442559cf5c88269fc999eb996d7 | 1d8a215929f76f53adbec6a453aa2f9ecefa3a96 | refs/heads/main | 2023-01-19T16:46:47.661091 | 2020-12-05T18:53:09 | 2020-12-05T18:53:09 | 305,953,992 | 0 | 0 | null | 2020-10-23T12:24:19 | 2020-10-21T08:12:26 | Python | UTF-8 | Python | false | false | 764 | py | globalVariables.py | from globalConstants import *
"""
Those dictrionnaries will saved the place
& the state of all rabbits
"""
dictionnaryRabbitPLayer1 = {
"A1": Board.BEGIN.value,
"B1" : Board.BEGIN.value,
"C1": Board.BEGIN.value,
"D1": Board.BEGIN.value
}
dictionnaryRabbitPLayer2 = {
"A2": Board.BEGIN.value,
"B... |
0922cf4676150300b675818b6fbaca472ff7dad3 | aab42dac0e4e43ca8f95a59be7c7c1fd2bd01dad | /mymensor/migrations/0039_auto_20170227_1046.py | c48efdd89974268286f4643db87fe120379a65cf | [] | no_license | jorgercg/MyMensor | 50994e1c2d03dcc8c0695e46c0bca613d337b28e | 09c2ecc85f4b3524c5a76d9b06981efccbddf638 | refs/heads/master | 2022-11-25T06:29:44.340309 | 2020-04-05T16:05:23 | 2020-04-05T16:05:23 | 66,379,440 | 0 | 1 | null | 2020-07-22T09:38:10 | 2016-08-23T15:27:30 | Python | UTF-8 | Python | false | false | 1,578 | py | 0039_auto_20170227_1046.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-27 10:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mymensor', '0038_auto_20170225_2302'),
]
operations = [
migrations.AlterFie... |
eb0e119249de290b341bfd2906898e0d3bb33ec3 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/8580720/snippet.py | 6f8339ca74b1688a86969b73d52a35c0a19f3d00 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 550 | py | snippet.py | import threading
import logging
from functools import wraps
logger = logging.getLogger(__name__)
def timeout(secs=None):
def my_decorator(target, *args, **kwargs):
def wrapper(*args, **kwargs):
t = threading.Thread(target=target, args=args, kwargs=kwargs)
t.start()
re... |
e0ccb39ae8e69bb5983e9ed5064ecd08a43358a1 | 2abf8e63c998e15016682667c05adfac54ddacfb | /2.py | 9e4d9c8a14063862fadff1c4c85658d4015a3c62 | [] | no_license | TheDarkKnight1939/FirstYearPython | 09c774e969193078a359e744a6485548b0434070 | 0ebbfb50f565e7a7bb3aaa5024ddec537c244410 | refs/heads/master | 2021-01-22T09:36:59.933870 | 2017-11-09T12:40:44 | 2017-11-09T12:40:44 | 102,328,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | 2.py | #!/usr/bin/python
name="Real" #Stores the word Real in the variable name
name1="Madrid " #Stores the word Madrid in the variable name1
print(name) #Prints the String in the variable name
print(name1) #Prints the string in the variable name1
print(name*3) #Prints the string in variable name thrice
print(name1+" is the b... |
2ad4d8732093cec85a56869e2ed55efc585cbfa9 | 400eb97989856cb619ff39bb593ae4c4cd3f9492 | /opulence/common/fields/__init__.py | fca949d26044b05a874af794a3cb3932e50957ef | [] | no_license | johndoehack/opulence | 05fe46454db300bcd847d5bbbb2d3acc1424d179 | 228dd7a819cd2aa93958e34ddc53dd9f9c6be0ee | refs/heads/master | 2022-04-01T01:10:12.809329 | 2020-01-24T11:41:26 | 2020-01-24T11:41:26 | 296,089,041 | 1 | 0 | null | 2020-09-16T16:30:50 | 2020-09-16T16:30:49 | null | UTF-8 | Python | false | false | 217 | py | __init__.py | from .baseField import BaseField
from .fields import (
BooleanField, DynamicField, FloatField, IntegerField, StringField
)
__all__ = [BaseField, StringField, IntegerField, DynamicField, FloatField, BooleanField]
|
87abcc66b625421704b37bbad0b17f90dafd8061 | 7ec0939b03c947eb8d96935d8b9149e60f929c75 | /solver/urls.py | 1795c9b99e88414b1ad98011f37366c88637b0e2 | [] | no_license | samuller/ddsolver | e70d06fe62fc11fd9fdaf1cffdf136c123f26a27 | ee750b7f3ca3b9464a0e26fd137feba98f22a749 | refs/heads/master | 2023-08-18T17:52:20.805578 | 2020-06-01T18:42:42 | 2020-06-01T18:42:42 | 267,118,742 | 0 | 0 | null | 2021-09-22T19:07:18 | 2020-05-26T18:18:02 | Python | UTF-8 | Python | false | false | 478 | py | urls.py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.main_page, name='home'),
url(r'^image.png$', views.main_image, name='image'),
url(r'^pattern(?P<idx>[0-9]+).png$', views.pattern_img, name='pattern'),
url(r'^next_img$', views.next_image, name='next'),
url(r'^pre... |
7921719367c00efb4ea7123297076d7d7210b307 | 7f534c9bac1e2efca19b1c5902dbe0f609644082 | /gallary/frame/crpyto.py | e207649b989aba27f37e5f8217a3062536d7e8e7 | [
"MIT"
] | permissive | pickjob/python-starter | ff868c92e71192e67dc23f2698fddbc5708878b4 | 310d1e9ed1593a4b6cea160e55c7ac0fbda2ba19 | refs/heads/master | 2021-08-07T10:33:23.923330 | 2021-07-07T00:21:46 | 2021-07-07T00:21:46 | 204,128,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | crpyto.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import secrets
import base64
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.primitives import padding, serialization
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmet... |
b33fde1a18d5d1e833f6c45e45e3cb814dd5a7c4 | 7cffa768f61514185c7d54aeb61e8ede30d1220b | /models/http/base/BaseLog.py | 0d9f67e8381b94b4d2f8d0d286f1a238b98d7676 | [
"Apache-2.0"
] | permissive | serh11kalinin/API_tests | 10ed205553382ab19f2c716586798aa0f7a6b417 | 914bc5e8a439af45b87f92f9227eab61fa08c248 | refs/heads/master | 2022-02-22T20:25:53.197655 | 2019-03-04T17:53:29 | 2019-03-04T17:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | BaseLog.py | from models.http.base.BaseHttpModel import *
class BaseLog(BaseHttpModel):
def __init__(self):
pass
|
98c417f275577ea1740b60b46a1d59ea37378de1 | 1f88909b1b9f5bd7b16d49e61fc84242a43d79bb | /pathfinder.py | 1df753f53840d876894ddc180cd330152c129c4d | [] | no_license | RJGMorris/Pathfinder | c6287b15ef8c63e36129e0e2466e1634091b95a8 | fbf33e8a3b65c5c982c0d116912f5cc1d956ba74 | refs/heads/master | 2021-01-02T07:26:59.984239 | 2020-02-12T11:17:58 | 2020-02-12T11:17:58 | 239,547,804 | 0 | 0 | null | 2020-02-12T11:17:59 | 2020-02-10T15:42:02 | Python | UTF-8 | Python | false | false | 11,146 | py | pathfinder.py | # Pathfinder using pygame
import pygame
pygame.init()
# Main window setup
SQUARES = 31
SPACING = 15
WIDTH = SPACING * SQUARES
win = pygame.display.set_mode((WIDTH, WIDTH))
pygame.display.set_caption("Pathfinder by Rory")
BLACK = (0, 0, 0)
BLUE = (0, 0, 255)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
WI... |
67b08f553f24a2b9d043a501d2a182fa4841eeb9 | 1843029e57389d23dfcd94dddc7aa587f0206584 | /product/migrations/0001_initial.py | 81b35e89742b44f8c0d26d243b2f22f152867802 | [] | no_license | Mehmet4nil/eCommerce | 8eac7f60d7affafade097778c11c6397dcd7f9be | 6ac9b55cef18bd4b901102da95c821c1c18381a2 | refs/heads/master | 2022-12-08T01:54:06.543225 | 2020-08-12T12:17:37 | 2020-08-12T12:17:37 | 286,833,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,711 | py | 0001_initial.py | # Generated by Django 2.2.3 on 2019-08-17 10:35
import ckeditor_uploader.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... |
86c91e2100a4ead67ea6b3fef444950950854645 | c5f4ac5d50d8520a74abe82f496f88f1e019cdb5 | /agensgraph/_vertex.py | eff95e20cccee779dca81fbcd5c2f5069bc088fc | [
"Apache-2.0"
] | permissive | bitnine-oss/agensgraph-python | 0623d1f45a988ddfbd133b0f53fa963ff53ace1a | e6b9fedfda81e28a46ac9dcf8b8e562ca1b1119d | refs/heads/master | 2021-10-09T04:22:58.405554 | 2018-12-20T08:19:22 | 2018-12-20T08:19:22 | 70,286,277 | 21 | 9 | Apache-2.0 | 2018-09-21T01:52:03 | 2016-10-07T22:06:15 | Python | UTF-8 | Python | false | false | 1,557 | py | _vertex.py | '''
Copyright (c) 2014-2017, Bitnine Inc.
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, ... |
64d03beade0f4c13985a9f154d3c0a9ee8fbe41d | 6eab349b89b6421a4624b2f472f9068b361604ca | /app/wx_preferences_dialog.py | 34e0d5bc0b6eca13dc999380aedb6b442421a29e | [
"MIT"
] | permissive | AlexCovizzi/WorkBreakTimer | ae5ce3c4239e5d884a739fa119d6b492e1a24dae | 2ce05a6e742ecc5754c207be87d3075e64c3394e | refs/heads/master | 2023-05-31T12:51:44.136260 | 2021-06-11T16:08:45 | 2021-06-11T16:08:45 | 367,908,618 | 0 | 0 | MIT | 2021-06-11T16:07:24 | 2021-05-16T14:48:34 | Python | UTF-8 | Python | false | false | 2,680 | py | wx_preferences_dialog.py | from app.named_event import NamedEvent
import wx
import wx.adv
import wx.lib.scrolledpanel
from app.wx_icon import wx_icon
from app.config import Config
from app.wx_preferences_detection import WxPreferencesDetection
from app.wx_preferences_notifications import WxPreferencesNotifications
from app.wx_preferences_general... |
e9c935404734ef9174765e14abd745c490928725 | aeccfcd910b6a74d5ba8c2932639ce57f5d1e4ad | /Glow/Espectroscopia/PutoGlow.py | 5feb05b7e71c5e4b99a1f9a3dc640f7976cca4ff | [] | no_license | pugliese/Labo-5 | 3ff51102d8e559703762f9c7826ce1abdf5858ef | 864a67bfc722d08557210ec12b9a5387705b91ca | refs/heads/master | 2021-01-18T20:14:18.512897 | 2017-08-12T23:49:15 | 2017-08-12T23:49:15 | 86,946,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,710 | py | PutoGlow.py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as sc
def cargar(x):
file = open(x, "r") ## Abro el archivo en modo de lectura
lineas = file.readlines()
cols = len(lineas[0].split(','))
data = [[] for i in range(cols-1)] ## Creo la "matriz" con la data, ... |
2ac177465f8023df6f33f18e3f47f6fc42e91a7e | 72a9d5019a6cc57849463fc315eeb0f70292eac8 | /Python-Algorithms/Clustering/SOM/mvpa2/measures/searchlight.py | 9806ae62ffe1296d8029add2da6c6714cda2a67b | [] | no_license | lydiawawa/Machine-Learning | 393ce0713d3fd765c8aa996a1efc9f1290b7ecf1 | 57389cfa03a3fc80dc30a18091629348f0e17a33 | refs/heads/master | 2020-03-24T07:53:53.466875 | 2018-07-22T23:01:42 | 2018-07-22T23:01:42 | 142,578,611 | 1 | 0 | null | 2018-07-27T13:08:47 | 2018-07-27T13:08:47 | null | UTF-8 | Python | false | false | 27,509 | py | searchlight.py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the PyMVPA package for the
# copyright and license terms.
#
### ### ### ### ###... |
fdce5ae2036f75b24e80a4d37593a01f1ed0ee90 | 3dd63383a69692cfaf21271c12ead4e248950a20 | /babies/models.py | 861360438927e9aeacb1632996d58b594d30f8d7 | [] | no_license | ervitis/bddpython1 | 9d8682f713ed57ecbb29cb492282e86dc358c92b | 185185fec7ced0d1ae98b43d97b2abaf1c0df1f5 | refs/heads/master | 2021-01-10T20:39:38.570832 | 2015-03-08T11:53:34 | 2015-03-08T11:53:34 | 31,848,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | models.py | # -*- coding: utf-8 -*-
MALE = 'm'
FEMALE = 'f'
class Baby():
def __init__(self):
self.rank = 0
self.name = None
self.gender = None
class BabiesList():
def __init__(self):
self.babies = []
self.year = None |
94ae0a62b7bb813e3e02c12f631067e9be0262c9 | fda08a558dea163972e232439d574f9037f76648 | /atcoder/agc040/agc040_a.py | 934cc07dfedafbcbab503a35bad712b4242c272f | [] | no_license | necoak/dev | 5b515cd47485d3272ddadad42b5eba5bd3f63aa1 | 2232bd19d2e6d23dfad9b0432569cdbe50746db7 | refs/heads/master | 2022-05-20T10:15:35.221892 | 2022-03-17T14:57:55 | 2022-03-17T14:57:55 | 6,262,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | agc040_a.py | #!/usr/bin/env python3
# Atcoder necoak answer
# https://atcoder.jp/contests/agc040/tasks/agc040_a
MAX_INT = 100000
s_txt = input()
MIN_V = 1000000
def func(my_suretu, my_s_txt, min_v):
#print('func(', my_suretu, my_s_txt, min_v, ')')
now_sum = sum(my_suretu)
# print(now_sum)
if (now_sum >= min_v):
... |
ed17f75e5e486ef90e1bde084df298f2cab14ffa | 01ac4bdaed1608d7a87e53d7895a529d606abebe | /new-text-classifiers/nlc_training_script.py | d2d60dbfe9246ad412bb04a77ad5624ed8dd13bf | [] | no_license | vanderlei-filho/watson-nlu-workshop | f08a6d6103c738bd1f343a981e564a4533b14884 | 55e6b3a4e8f448d1bc2e691a3a650a900ea9cb0e | refs/heads/main | 2023-08-30T16:31:18.572161 | 2021-10-20T18:27:03 | 2021-10-20T18:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | nlc_training_script.py | import json, csv
from os.path import join, dirname
from ibm_watson import NaturalLanguageUnderstandingV1
from ibm_watson.natural_language_understanding_v1 \
import ClassificationsOptions, Features, ClassificationsOptions
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
apikey = ""
url = ""
#link u... |
7c12e97b1dd331160e14e1ae6ab1157fcfbe5726 | 99a9a9a2a45024020a7deebf61f94a656b7c4c51 | /runtimeParsePython/page100drill.py | b84f715662c421e3ed3433622c26ec602cd604bb | [] | no_license | Duojet/Bootcamp-Basic-Python-Projects | fbfd714e76b6bf09c7f00b0d638733eac3be30ce | f49fa5147528c362ea591a6b1e175876dee3a103 | refs/heads/master | 2020-04-28T07:08:13.949027 | 2019-05-08T22:21:15 | 2019-05-08T22:21:15 | 175,081,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | page100drill.py | #
# Python: 3.6.6
#
# Author: Jordan Richter
#
# Purpose: For this drill, you will need to write a script that will check
# a specific folder on the hard drive, verify whether those files end
# with a “.txt” file extension and if they do, print those qualifying file
# ... |
ca250393ea40a7165fa4b312da0971df2787a8ee | 63cd7d23aea6fdd6bff48f6688c784882e198869 | /sequence_models/week_4/4_question_duplicates.py | 79a1322ac30120d400bd21e9672ceaeb833e8a9d | [] | no_license | dipodaimary/NLP_collection | 79e8bd8e6e7745cdd52000ab6004cba0ff9e5b8d | 152b53f176f47f584de935428b2a7540a995e92e | refs/heads/main | 2023-02-07T16:33:15.348174 | 2020-12-22T18:04:41 | 2020-12-22T18:04:41 | 321,658,198 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | 4_question_duplicates.py | import os
import nltk
import trax
from trax import layers as tl
from trax.supervised import training
from trax.fastmatch import numpy as fastnp
import numpy as np
import pandas as pd
import random as rnd
from collections import defaultdict
vocab = defaultdict(lambda: 0)
vocab['<PAD>'] = 1
for idx in r... |
57a2d0a07419700acf8644820374dc9731fc7933 | 1b3b95ca6c1daf2edd4a8300b0d333751a4f36ce | /login/models.py | 0eec34dc9035a6eaa25e05355b36e99db38fae12 | [] | no_license | gungxidiaogenhongtashan/SCU-reward-platform | 235d07188f4d079e2119ff6a157df955d36755d3 | d1b97dfa1366d7973d119bcbf7312ed6947053f7 | refs/heads/master | 2022-04-09T18:47:37.131325 | 2020-02-19T08:31:03 | 2020-02-19T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | models.py | # login/models.py
from django.db import models
from django.conf import settings
class User(models.Model):
'''用户表'''
name = models.CharField(max_length=128, unique=True)
password = models.CharField(max_length=256)
stu_id = models.CharField(max_length=13, unique=True)
phone = models.Char... |
324ed5ea3e69628e3bc14ab0f650812a7ab06f6c | 33375cd58086951e495787b9493390d7ed5d867e | /filereadpar.py | a7ca7932184bfccab446c16e34a0448c696175c3 | [] | no_license | dcoxe93/Python_post-processing | ef914841c15106fbd132514a1c27740201a38128 | 0b317afc7ccff719bb5cea2f5edc5a4110677cda | refs/heads/main | 2023-06-29T09:22:42.532750 | 2021-08-10T12:16:33 | 2021-08-10T12:16:33 | 394,638,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,020 | py | filereadpar.py | from mpi4py import MPI
import numpy as np
# this module uses MPI to read a data file dumped from my Nek5000 interpolation routines
# It must be used in conjunction with MPI, mpi4py and numpy
# input variables:
# comm - MPI communicator passed from main script
# fname - string; filename
# nid - integer; rank of the mp... |
53e8519665aadf0d824f3b080cfa920b14d50bc0 | cb8d2225cae9a08e99127262d6fed016a74adca0 | /house.py | 191ecd50f1b70e1e63b8539045aaf9e2dd874ef3 | [] | no_license | forevermzm/anjuke | c6cc495b0040659c429588555391ca3dc1433e24 | 249a782dec00eceaac530397e85230225042a0e8 | refs/heads/master | 2020-03-14T15:42:27.760442 | 2018-05-01T06:10:56 | 2018-05-01T06:10:56 | 131,682,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | house.py | #-*- coding: UTF-8 -*-
import io
import sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8')
from lib.requests import Request
from bs4 import BeautifulSoup
city = "beijing"
domain = "anjuke.com"
house_id = "A1203790492"
class House:
protocol = 'https'
domain = 'anjuke.com'
def __init... |
5aa89c87a187dc062ed348097e964ddcaf080a91 | 0529c10a149447504ec1400a61df7f98d2ffe8b3 | /simplePageExtractor/spiders/alz_spider.py | 4c29e60f527bf3cf344ce9940d2777a56b5d8ac6 | [] | no_license | Iambalavineeth/Scrapy-Web-Crawler | 910dd4ae72d6b23f8eb094a32ee812216f23d602 | 67be60eb94d5872a2ef9345294c5a242b04c0b8b | refs/heads/master | 2021-08-19T23:44:30.859457 | 2017-11-27T17:56:59 | 2017-11-27T17:56:59 | 104,844,719 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,513 | py | alz_spider.py | '''
This is a Web Crawler for Alzheimer's ALZ Connected Website - A Care giving website where users post about ALZ
ALZ Caregiver's Website ---- https://www.alzconnected.org/
'''
import scrapy
import re
#Scrapy Class
class ALZSpider2(scrapy.Spider):
#Spider Name
name = "ALZSpider"
#Giving List of Starting ... |
88938fcde5c315ff8d6867a5acd6b6ed203f6dd3 | cf4baa30dd94e8dbf7b6d097b02f7fc62c416222 | /FindingCharacters.py | 33c088957ac450eeef63df16b06cf041cbb635c6 | [] | no_license | py1-10-2017/AshwinRaman-py1-10-2017 | fcd5421951ceb8838b72183fe8e74a690afd604a | 11e27487129fa5a0bd01075829b0dcd2ea422bf3 | refs/heads/master | 2021-08-19T07:26:06.909086 | 2017-11-25T04:36:44 | 2017-11-25T04:36:44 | 105,705,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | FindingCharacters.py | # input
word_list = ['hello','world','my','name','is','Anna']
char= "o"
# output
new_list = []
for x in word_list:
if char in x:
new_list.append(x)
else:
print("Nope")
print new_list
|
72b47a12fa981d6fd1202fe2f1ea33696ba94484 | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/14_Code_Quality/04_unit_tests/b_using_unittest_module/a_unittests/m_multiple_test_suites.py | 26102f5a86d92d249ff31ff65925dea602511c61 | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 1,268 | py | m_multiple_test_suites.py | #!/usr/bin/python
"""
Purpose: Working with TestSuites
"""
import unittest
def function_test_1():
name = "mona"
assert name.startswith("mo")
def compare_names(name1, name2):
if name1 < name2:
return 1
elif name1 > name2:
return -1
else:
return 0
class UnitTests02(unitte... |
23cebdb154df28cd9627b4982c108cf4acf3eaa5 | ca4a2de3a23cca2006906ae18b98b1101df0fddf | /ia32_python/intel_manual/memory_type/__init__.py | 56701bfe3974c558c7f996d919afd9b1835eaea0 | [] | no_license | guye1296/ia32-python | 0a038b77b48496535d80713e51191d0ee94a5249 | b7c181d55f3db565f89eee3e94831632a0e41ba7 | refs/heads/master | 2023-06-08T04:18:43.128784 | 2021-06-26T22:05:42 | 2021-06-26T22:05:42 | 378,753,075 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | __init__.py | from future.utils import with_metaclass
from ia32_python.utils.ia32_struct import *
from ia32_python.utils.ia32_enum import *
from ia32_python.utils.ia32_bit_field import *
__doc__ = """
@brief Memory caching type
The processor allows any area of system memory to be cached in the L1, L2, and L3 caches. In individual... |
6fdc3b7080347f67ecd7f2c8f0d2c71476e9ff3f | 094a82883b0f4490dbca6c042e129faf0593d7bc | /thingflow/filters/some.py | f96999b65abcc5775e1ddd5a81b1dff892e7bb85 | [
"Apache-2.0"
] | permissive | kesking82/thingflow-python | 904495aa370fb0fdef5e1eb162f0553a37bd7271 | 4c00deafd1bf425ec90ef2159fc5f3ea2553ade8 | refs/heads/master | 2020-04-21T13:05:57.615247 | 2019-02-28T09:59:13 | 2019-02-28T09:59:13 | 169,587,091 | 0 | 0 | Apache-2.0 | 2019-02-07T14:44:45 | 2019-02-07T14:44:44 | null | UTF-8 | Python | false | false | 1,482 | py | some.py | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
from thingflow.base import OutputThing, FunctionFilter, filtermethod
@filtermethod(OutputThing)
def some(this, predicate=None):
"""Determines whether some element of an observable sequence satisfies a
condition if pres... |
21edf3fec3515b24b613bb87ed02d366ac4f1a45 | 8b45165c6264d34523daea1aa0d65f8f458cbc09 | /desafioweb/contactsapp/urls.py | 0eb03fddf940e0840dbf052026dcea6ee3509eec | [] | no_license | grmdeveloper/desafios | 93be34b8dd4c42c2ba5b07ac93c15fb85dcc4794 | bb8518df545688628cb501616987e188f353e172 | refs/heads/master | 2022-08-17T13:39:27.503147 | 2020-05-19T18:30:22 | 2020-05-19T18:30:22 | 265,330,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | urls.py | from django.urls import path
from .views import home, list, delete
urlpatterns = [
path('', home),
path('list/', list),
path('list/delete/<int:id>', delete)
] |
72ba50f4ae09e8624800f2b0f714a294ae7b86ae | 572ec777acba3ec90d353b95991b806f9d139248 | /src/utils/TemperatureMemory.py | 1fb6d9e39db9fbe7e7331b8aecac10cb2d9bdcad | [] | no_license | bopopescu/master_project | 49ef90c5c0f5e7a3833edfac5d235b42ee82f724 | f723532710a5e79881cc0f5d21ff31592a57df47 | refs/heads/master | 2022-04-15T02:24:23.769905 | 2019-06-05T17:15:44 | 2019-06-05T17:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | TemperatureMemory.py | import numpy as np
class TemperatureMemory:
def __init__(self, memory_length_seconds, window_length_in_seconds):
self.memory_length = memory_length_seconds # seconds
self.memory_cost = window_length_in_seconds
self.memory_used = 0 # seconds
self.memory = []
def add_to_memory(... |
2548de8743c331be4b50d523ebbceb92b0c0d140 | 4d017a764b7f2a36318c3088446b5825aad1a52e | /api/__version__.py | f4eb133b2e179b60986832a9e4c6cd7745b4068e | [
"MIT"
] | permissive | boldandbrad/flask-api-template | 7f94dfabf0e24cb23c24dfeca71109134a7d6790 | d12cd85dbf8bbe4d0db44611615dbb5036a8df73 | refs/heads/master | 2022-06-02T10:39:11.478377 | 2020-04-13T19:31:52 | 2020-04-13T19:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | __version__.py |
__title__ = "templateapi"
__description__ = 'flask api template'
__version__ = '0.1'
|
93c9d22ec468eece8debee38f3e2774bc19a9622 | 194c75b54d639fcc6fd1a808d8e36fc38e6fec0c | /lib/python3.6/ntpath.py | 28591be7281f77c007ba856387b39dc1c81a4e12 | [] | no_license | Original-Thunderbird/Movie-review-web-hackathon | a9bc9ba3f6e8abcfe8d7f7340c1313aaada3d1f6 | 94031f3c89fbd3079fa7d8569d17b5eb18fe7acf | refs/heads/master | 2020-04-09T02:46:41.260350 | 2018-12-01T14:38:51 | 2018-12-01T14:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | ntpath.py | /home/william/anaconda3/lib/python3.6/ntpath.py |
58ab25c80f4ffff3127b7aa9cfa51cc9ba84f985 | f3a3b5063b6ca7d48a81de38ae02ec7226cb5a92 | /firebase.py | 63f2258768df3b17f5fe6bcfa4c9952455e096bd | [] | no_license | God-suhyeon/VidulgiStore_SERVER | 3c80e3cd2793f5616eb4d7b254e71537480df334 | fc48499cd8b30dfefc6a45cd57eab2097243da88 | refs/heads/master | 2022-02-07T19:40:46.002488 | 2019-07-31T01:44:39 | 2019-07-31T01:44:39 | 271,715,896 | 0 | 0 | null | 2020-06-12T05:27:12 | 2020-06-12T05:27:11 | null | UTF-8 | Python | false | false | 2,318 | py | firebase.py | import firebase_admin
from user import User
from werkzeug.security import generate_password_hash, check_password_hash
from firebase_admin import credentials
from firebase_admin import firestore
import firestorage
cred = credentials.Certificate("vidulgi-firebase-adminsdk-yxed3-b7f4229719.json")
firebase_admin.initializ... |
835a6873b32bd141a5c211573dabff8f707b07c2 | b322a605732089ee79815e853c450416332adeb8 | /lit_chat_parsing/greeting.py | d3513f15bfdb560dd0422971a78c2c99c47161da | [] | no_license | kjcollins/lit-chat-app | 5c106a7eb6098cd679e9d857af58f2fe4aff1791 | ae4d1ac301f897587ee849b044b3940421223280 | refs/heads/master | 2021-05-04T18:10:55.750129 | 2018-02-04T02:10:11 | 2018-02-04T02:10:11 | 120,101,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | greeting.py | import datetime
def greeting_on_time():
instruction = "Type in text to get Shakespeare quotes!"
time_rn = datetime.datetime.now()
hour_rn = time_rn.hour
if hour_rn >= 4 and hour_rn <= 11:
return "Good dawning to thee, friend. " + instruction
elif hour_rn > 11 and hour_rn <= 15:
retu... |
549d59f43c95017edac38902368ea1c53edd37c6 | 4b49f66adf1d5a07b240413c9160bdfd9b1b34ba | /file_gen.py | a2890944bee3c923173380a2ceec86ca8c600311 | [] | no_license | habib-university/cs201-spr20-proj--cs201-s20-militant-rebels | 3f789fd330cff8db440a4cc54b641c895312ca93 | 6c1ec2b2f7f507a0ec5df1af52c4b1b02152f5fa | refs/heads/master | 2022-11-19T20:10:06.319545 | 2020-07-04T17:24:30 | 2020-07-04T17:24:30 | 255,645,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | file_gen.py | from os import system
from time import sleep
n = int(input('Number of files to generate: '))
cmd = ""
for i in range(n):
cmd = "echo " + str(i) + " > " + str(i) + ".txt"
print("Creating file " + str(i+1) + "/" + str(n))
system(cmd)
|
6b780b21f0ed720a5ae9c38638ab83e28d28b3c2 | 4210f8105f9e9a097e3544d15ec2c859bc737bf9 | /multi2.py | 0bfda59b22abf0aea91cf0ed2d0b3df399382d1a | [] | no_license | Taranjeet0874/Python | f56fb4f39a4a9df22d16c37e5ed808d80c6641c3 | 5749a394099f26fd0f15fe2674035053c297adcb | refs/heads/master | 2022-11-26T21:30:13.044112 | 2020-08-01T12:22:06 | 2020-08-01T12:22:06 | 284,251,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | multi2.py | import pandas as pd
from matplotlib import pyplot as plt
name_1=["Viplav" ,"Viplav","Aakash","Aakash","Vikash","Vikash","Ashutosh","Ashutosh","Kamal","Kamal"]
sem=["sem-1","sem-2","sem-1","sem-2","sem-1","sem-2","sem-1","sem-2","sem-1","sem-2"]
subject={'sub1':[23,92,67,52,45,58,34,34,24,96],'sub2':[44,69,68,66... |
a60aefedff2fcb715636288091dcefa41f567d9a | 4efb277899cbc978834fb85b647b4b5c3fb8c3fa | /mysite/polls/models.py | 127e04f92c93af0b973c8ad4caacc11670259128 | [] | no_license | shubhamgupta107/Proof-Reading-Rewriter | 83302b4ea7ee9c2457b00ca8b910b1ecffb99d8d | cf8862c3ad05913bf0f547519ca00bfad267fa76 | refs/heads/master | 2022-09-09T11:04:31.991556 | 2020-05-28T07:38:14 | 2020-05-28T07:38:14 | 220,109,261 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | models.py | from django.db import models
import datetime
from django.utils import timezone
from django.contrib.auth.models import User
# Create your models here.
class Sentence(models.Model):
sen_text = models.TextField(max_length=100)
def __str__(self):
return self.sen_text |
424043f9d1e1af33e12b42e0e20f93686d36762d | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/eveaudio/__init__.py | 1c7e8eafde4449512d1fe2a1d3696f9a9cb7da9f | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,839 | py | __init__.py | #Embedded file name: eveaudio\__init__.py
"""
Libraries for working with audio in the EVE client.
"""
try:
const
except NameError:
import devenv.libconst as const
import logging
logger = logging.getLogger(__name__)
SHIPS_DESTROYED_TO_CHANGE_MUSIC = 10
PILOTS_IN_SPACE_TO_CHANGE_MUSIC = 100
WORMHOLE_SYSTEM_ID_ST... |
84559c05a299189a8d4bf8c37be5665c3c2b5b39 | cb8f12f2081a2e5931860c6d6dd27d2dfec3e162 | /bin/mzbench | f1c1b97e807305a0afdf3a121e3be9fba55975db | [
"BSD-3-Clause"
] | permissive | ATownsend/mzbench | 83ed0f86a49847465a87582849d79c8850ecf1b8 | 96733b62ee466c25cfe6d308a63b851b4938b4f9 | refs/heads/master | 2021-07-22T11:49:55.978601 | 2020-10-16T15:25:16 | 2020-10-16T15:25:16 | 219,834,853 | 2 | 1 | BSD-3-Clause | 2019-11-05T19:33:50 | 2019-11-05T19:33:49 | null | UTF-8 | Python | false | false | 28,777 | mzbench | #!/usr/bin/env python
from __future__ import print_function
import os
try:
import mzbench_server_marker
assert(mzbench_server_marker)
server_functions = True
except ImportError:
server_functions = False
dirname = os.path.dirname(os.path.realpath(__file__))
if server_functions == False:
mzbench_ins... | |
879092ae96f558fe90738c4f838a790be4d2b06f | eb1a8c885619c1ea988b8c8fb2fc915712a77495 | /P10-19/P16.py | 93688198ec9bf1e1f712dc8ffdb54583f6077321 | [] | no_license | Hanthebot/EulerProject | 0554dd4f19a009a167670b89a98c54614a68a1b7 | 8d73273529db813805da259444893e4b43aacd65 | refs/heads/master | 2022-09-23T16:38:45.532804 | 2022-09-10T12:17:41 | 2022-09-10T12:17:41 | 222,276,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | P16.py | def plus(l):
s=0
for d in str(l):
s+=int(d)
return s
def get2n(n):
s=1
for r in range(n):
s*=2
return s
def main(n):
return plus(get2n(n))
print(main(1000)) |
b7fdf9bb6e7c7bf94fd0dfe2e061de397ec0ce36 | 11b7b6a7f0746ecec27f253972f56e6f4b685d29 | /src/etat.py | 9e7ab4b499e1292465e9f9d39bac5c0c860dcffb | [] | no_license | Davidu93000/systeme_complexe | 9883348844ac90c1acf19a7d8dff9e0233af6466 | eccb9b4d113ffcfc2961eaeeb73300b89095589f | refs/heads/main | 2023-05-01T22:28:38.478684 | 2021-05-22T20:31:24 | 2021-05-22T20:31:24 | 369,899,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | etat.py | class Etat:
"""
Un état est un couple contenant un entier positif et un ensemble de proposition atomique qui sont vérifiées.
"""
def __init__(self, etat, props):
"""
@param etat: le numéro de l'état.
@param props: une liste de propositions (liste de string).
"""
#... |
34b23e80b3c4aaf62f31c19fee0b47ace1561a8c | 6fcfed440bd1ceb4ca8daa21dd91d7d29b9be28a | /aula10_FormatandoExibicaoTela.py | f8664bfa8f352efb63a149b17fd306a49e44a86a | [] | no_license | ibrahimGuilherme/CursoDePython_Guilherme | ce55b5680247f18a5e8a916c4f70f30041000ed2 | 84229b9fd7e7cfc9359f5b13fdfa4a9b9c2513ed | refs/heads/master | 2023-06-24T17:11:04.021906 | 2021-07-17T22:57:04 | 2021-07-17T22:57:04 | 346,072,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | aula10_FormatandoExibicaoTela.py | # cor = input('Escolha uma cor: ')
# print(f"Cor escolhida {cor:=^10}\n"
# f"Cor escolhida {cor:>10}\n"
# f"Cor escolhida {cor:<10}\n")
n1 = 7
n2 = 3
#print(f'Soma {n1+n2}')
s = n1 + n2
m = n1 * n2
d = n1 / n2
di = n1 // n2
e = n1 ** n2
print(f's = {s}\n m = {m}\n d = {d:.2f}\n di = {di}\n e = {e}', end=... |
c52d1c187edb17e85a8e2b47aa6731bc9a41ab1b | e9b06e043ed2fbee338df06e1aa5419692136d80 | /python_code.py | 96454f2963c661dccd3624541e3b73ee0b973f48 | [] | no_license | ussh0430/Applied-Data-Science-Capstone | d62f05eceb70133bf04257bb26695511858e93b5 | a43dbb1b33e55d40ae22557a29aa7ca002fce9b7 | refs/heads/master | 2020-05-19T22:17:38.066141 | 2019-06-28T14:25:03 | 2019-06-28T14:25:03 | 185,243,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | python_code.py | print ("Hello Workls!")
|
de3a4053b5b0d4d2d5c2dcd317e64cf9b4faeb75 | d82066d9c07ec682ed4915b4d65def69f13e1437 | /medbox/__init__.py | da2e215f0bf24f4d89f03a741e19f2dd7aab2919 | [
"MIT"
] | permissive | isabella232/medbox | e6351727046314a228a195edc1f1f63d6e67ad99 | ef3a5340f82b634047b2c442e68eb66254746e2d | refs/heads/master | 2023-03-19T15:07:19.440258 | 2019-09-20T09:22:45 | 2019-09-20T09:22:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | __init__.py | from urllib.parse import quote
from top_model import db
from top_model.ext.flask import FlaskTopModel
from top_model.filesystem import ProductPhotoCIP
from top_model.webstore import Product, Labo
from unrest import UnRest
class Hydra(FlaskTopModel):
def __init__(self, *args, **kwargs):
super().__init__(*... |
5b91b7025b0e574d45f95a0585128018d83c17ea | 3d31196b8366fc668fc860950bd16077e44038b9 | /tests/sqla_count.py | 22b1df282341236aaca5ca65ec7bb22923070610 | [] | no_license | paiweilai/test_pyparsing | ba96e844fbe8884408d25ea031d31fab939d9bf5 | f5c99f4c78a9194719d75121c7fd19b78610bbe3 | refs/heads/master | 2020-05-29T15:12:19.858919 | 2016-07-18T03:53:08 | 2016-07-18T03:53:08 | 63,467,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | sqla_count.py | something1
x = session.query(x).filter(y).count()
something2
y = session.query(
models.User, models.X,
).filter(
models.User.time > start_time,
models.User.id == user_id,
).count()
def something3():
x = session.query(
models.Review,
).filter(
models.Review.time < end_time,
).coun... |
fe12f6d3408ab115c5c440c5b45a9014cfee6539 | ecbd2e2a8c92b0d505668efeb1b297d4799b1e9e | /ecom/api/urls.py | 84c6ed591e8e9b51a587e58bef38f5c4903eb411 | [] | no_license | gnana-prakash55/gd-sol-store | 56fa2c86d0676c38413f2376d78194fd74379f0d | aa647f5d871dff3fb49ea0a44d7264c8695fffca | refs/heads/master | 2023-03-27T18:16:18.345906 | 2021-02-15T16:16:35 | 2021-02-15T16:16:35 | 339,097,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | urls.py | from django.urls import path,include
from .import views
urlpatterns = [
path('',views.home,name='home'),
path('category/',include('api.category.urls')),
path('product/',include('api.product.urls')),
path('user/',include('api.user.urls')),
path('order/',include('api.order.urls')),
path('payment... |
bb7910af5334641fd2db7146112afaff7a2e42b9 | 61e312378e828c730e20fb8bc6a2e6ca659f10e8 | /cgi-bin/process_card.py | 1afa48cb7b4427df55d6858ecc0e75066ba153f1 | [] | no_license | aiqiliu/squareapitest | e78732a5bbe21bc0367942ee8e961892bffe98df | 1a4e073a8169e955b6b4d7ce3aab04bb7f3389a3 | refs/heads/master | 2020-03-13T16:08:36.129972 | 2018-05-01T17:15:26 | 2018-05-01T17:15:26 | 131,190,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,888 | py | process_card.py | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
import uuid
import cgi
import squareconnect
from squareconnect.rest import ApiException
from squareconnect.apis.transactions_api import TransactionsApi
from squareconnect.apis.locations_api import LocationsApi
from squareconnect.apis.customers... |
ea1d62c4a8c406dde9bb138ee045be5e682fdbfe | 1e77b81731f51119e9b6d18ba64d4ea461dd51a2 | /lab 5/zad 71.py | 88491ccbff2bb8c5879b0f2d74fcfc893fa18ce6 | [] | no_license | Rhaster/WIZUALIZACJA-DANYCH | 02ae9212910a9a9f626783c75ea24d7fcc96c89a | 508cad4ba2a3145329e0e7d7f32b7f972f4739eb | refs/heads/main | 2023-05-08T06:43:27.225090 | 2021-05-31T21:16:41 | 2021-05-31T21:16:41 | 343,704,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | zad 71.py | class Wspak:
"""Iterator zwracający wartości w odwróconym porządku"""
def __init__(self, data):
self.data = data
self.index = -2
self.i=len(data)-1
def __iter__(self):
return self
def __next__(self):
if self.index >= self.i:
raise StopIteration
... |
ec64ddd01034debadb6674e71125f673f5de8367 | 309d30a8cd89f07695ba211e1bd861e9262e023f | /redis3barScore_test.py | badbe6fda38d546b4dc7b574a0f7b3528c343b11 | [] | no_license | webclinic017/material-strategy | 4aa96c337b4335fb8639b42a434bc72c141fafc3 | f3971f210b3be2eff66d2ba7a4cb2cc030588a89 | refs/heads/main | 2023-08-27T08:08:42.053546 | 2021-11-06T23:06:46 | 2021-11-06T23:06:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | redis3barScore_test.py | from redis3barScore import StudyThreeBarsScore
from redisUtil import RedisTimeFrame
def test_score1() -> None:
package = {'close': 13.92,
'high': 14.57,
'low': 12.45,
'open': 13.4584,
'symbol': 'FANG',
'timestamp': 1627493640000000000,
... |
235bb1b9d4c41c12d7667a6bac48737464c685c7 | bf12bf6ff47deccef22e3708d082949039899b7b | /tempPrompt.py | 7f8bf35496edd2774def39c6b4021b2cf8d70bf9 | [] | no_license | jason8777/tradesHelper | e4a4e07777b1b9f9b07f32ac9bed6e5dc6baafb6 | 64f3a6a6513cb87a9623d535696dd79b9eec53f0 | refs/heads/master | 2021-01-23T22:39:38.629160 | 2015-05-14T03:34:56 | 2015-05-14T03:34:56 | 34,498,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,860 | py | tempPrompt.py |
from colorama import init, Fore, Style
import tempConv
#============================================================================#
# TEMP CONVERSION PROGRAM: #
#============================================================================#
#------------------------... |
d9f586bbb72021ee0b37ff8660e26b50d7e6a2d3 | f6a1ef3bb34bdea77c38edc387635abfa1ed9a72 | /IR/view.py | ade56cb6a3bdc406a479955a2161da808b43f449 | [] | no_license | bbjbbjbbj/IR | 886c8b5f2b74ad06b311a931a6273db927c72604 | f77fbfc4fe5ef69c4c151f3d47d23fdd63233653 | refs/heads/master | 2020-09-21T12:49:19.236402 | 2019-11-29T07:17:38 | 2019-11-29T07:17:38 | 224,794,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | view.py | from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return render(request, 'ALR1.html')
def search(request):
return render(request, 'ALR2.html')
def home(request):
return render(request, 'ALR3.html')
def pdf(request):
pdfId = request.GET['id']
# pdf_data=open... |
3785badb25c16c3cfbe29468acb4cccd96cf9fc2 | 9c3f49e140a74f79ffe1754a9f33d9b9b03a365e | /examples/pure_python/pyangbind_tests/binding.py | 923880cc708fb55ea8543934d26151c0bf06f8d8 | [
"BSD-3-Clause"
] | permissive | malanovo/pygnmi | 93c5db0ca0ca0349fa512c7f759bc80b9d55cc0a | b2c2b2b87fe384a91fa79e0682a7ea485708d464 | refs/heads/master | 2023-09-01T08:38:50.440582 | 2021-10-09T16:49:46 | 2021-10-09T16:51:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102,140 | py | binding.py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... |
c57ae0881d0e4cc5fc92ee5d95fe8650d52fa5bc | 9b3ed66b0a1647a87c6ff38b6cef2354fb790ece | /assets/GD/mysubplot.py | d16403a8d2671024eed1fb680827ee0959ec6904 | [] | no_license | tiepvupsu/tiepvupsu.github.io | a117f82b0702b5f5a9422679aa20b8ba59d54d24 | 19c653816f9748537bf403d3adfa9b391c5321e0 | refs/heads/master | 2023-08-02T08:29:54.409971 | 2023-01-12T04:21:35 | 2023-01-12T05:11:18 | 83,335,474 | 675 | 773 | null | 2023-01-12T05:11:19 | 2017-02-27T17:05:56 | Jupyter Notebook | UTF-8 | Python | false | false | 5,518 | py | mysubplot.py | # To support both python 2 and python 3
from __future__ import division, print_function, unicode_literals
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
import matplotlib.animation as animation
# for gradient descent
X = 2 * np.random.rand(1000, 1)
y = 4 + 3 * X + np.... |
aca0ab5eedd8e5beac0c4fbcdfdfc285e4aea703 | ed993ad994f75c5e4461fa4f5bd2594e9b137198 | /Memory_Flag - Old.py | 61c9ba8c66403c100f51c3622e2f04b6fa7877be | [] | no_license | InesGh/ISN_Ines_et_Amelie | aa6907579ebcefd7896f8baa338ed38ecd2ff31d | 20f7036c23e3822c787ae7bf2340828abdfabee2 | refs/heads/InesGh-patch-1 | 2021-01-18T02:47:13.884419 | 2016-04-22T12:21:27 | 2016-04-22T12:21:27 | 55,681,047 | 0 | 0 | null | 2016-04-24T19:30:35 | 2016-04-07T09:18:28 | Python | UTF-8 | Python | false | false | 8,647 | py | Memory_Flag - Old.py | #!/usr/bin/env python3
#title : Memory_Flag.py
#description : Petit jeu de mémoire en ligne
#author : Inès & Amélie
#date : année scolaire 2015-2016 (Mars Avril 2016)
#version : 4.1
#usage : python Memory_Flag.py
#notes : projet INS BAC 2016
#python_version... |
b970530daa09f4920d6bf71a4081c9e41db973a5 | f5c485ac562dd6ba6d2ddb6f6d3966968cde3adc | /trial2.4/sent_tokenize.py | 299901b386c8002868e84875a724c1366c0d88c6 | [] | no_license | Gai-Mizuguchi/assignment2016 | ebef23c54ddea2864bf3a3bfd52cef36fa2d83cc | 4a27d6893dd9375b03cd88eadd12e60be86022d0 | refs/heads/master | 2021-01-18T22:36:38.533057 | 2016-06-08T07:02:33 | 2016-06-08T07:02:33 | 55,674,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | sent_tokenize.py | from nltk.tokenize import sent_tokenize
import sys
argvs = sys.argv
f = open(argvs[1], "r")
text = f.read()
sent_tokenize_list = sent_tokenize(text)
print(sent_tokenize_list)
f.close()
|
847891ceeba26cc4fb86fe73f33bf92389e7ade1 | 647a23eff825d078684b937aeb3fb3f92350f446 | /automatic_code/runLDA.py | eb12f2466b702c856e228258593e52d891a0eb93 | [] | no_license | iamiamn/Documents_Infomation_Extraction_and_Analysis | 69e04500061ca0447047978e0c2223852f5c20d4 | 9cf90ce113fab16fe1bbc8cf1b76ed2199e3de4d | refs/heads/master | 2020-03-28T20:26:05.065589 | 2018-10-30T03:55:15 | 2018-10-30T03:55:15 | 149,070,021 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,497 | py | runLDA.py |
# coding: utf-8
"""
Created on Sat Oct 10 12:33:41 2018
@author: zhenkai wang(Kay)
object: this code is used to a tool function collection for running the LDA and save all the files
"""
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import pickle
import pyLDAvis.gensim
from gens... |
236d98f64ba98a4e1189826173181794931b65f7 | bc441bb06b8948288f110af63feda4e798f30225 | /file_repository_sdk/api/workspace/init_workspace_pb2.py | b76a962b4c4c4010ead65ea91ef148595f39b5bf | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 7,821 | py | init_workspace_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: init_workspace.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... |
c5fd47211f9ded6c59f6c3bb1786da45427e7996 | 292638aec65f6f18861cce1b487bca67cd0c8c48 | /sentence_analysis.py | cfbc5f336c1b7ed0bdf2a2725ae760b73a917098 | [] | no_license | iBong90/python_work | cb44845c1c32c5e44e2a50d88dfb769566c9f9b5 | 89ac3c6bc187b7168e26895e189d9b58de227fd9 | refs/heads/master | 2021-08-31T14:09:37.306115 | 2017-12-21T16:03:32 | 2017-12-21T16:03:32 | 114,238,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | sentence_analysis.py | #! /usr/bin/env python3.6
#coding: utf-8
sentence = """Le sénateur, dont il a été parlé plus haut, était un homme entendu qui
avait fait son chemin avec une rectitude inattentive à toutes ces rencontres qui font
obstacle et qu'on nomme conscience, foi jurée, justice, devoir; il avait marché droit à
son ... |
0fc52178a6db71f7003b1e8bdee67a30587b4ba6 | 13f5fc03cfa92f61a6905d07cd146638185be961 | /Code Camps/Poker/CodeCampPoker/poker.py | df48be541ebf5442bc216b5a399b3a7b86eec4cc | [] | no_license | ndvssankar/cspp1-assignments | 46ba1e5fbe672405e9e42fc1116f84c201d7eaee | 95f374e4f152e49d75fa460dfda73eface393a19 | refs/heads/master | 2020-03-24T00:16:25.695480 | 2018-09-02T09:57:53 | 2018-09-02T09:57:53 | 142,283,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,921 | py | poker.py | '''
Write a program to evaluate poker hands and determine the winner
Read about poker hands here.
https://en.wikipedia.org/wiki/List_of_poker_hands
'''
def card_ranks(hand):
'''
returns the ranks of the hand.
'''
return sorted(["__23456789TJQKA".index(c) for c, s in hand], reverse=True... |
f1aea75a4b06aecc9d3d2b3591083463e27362fd | 4cd7c78b13c701e6b32f678376416644958419d1 | /habitat_baselines/rl/ppo/belief_ddppo_trainer.py | 6a0609182620786ed9fb2d3ec3e8007e1d5e8fbc | [
"Unlicense",
"MIT"
] | permissive | joel99/objectnav | dc7a0e189265d704ed517a18524252261c71d5f6 | c4d8b7cf12e8fd57ef0546688c7175a25457ec6f | refs/heads/main | 2023-08-22T10:32:50.227992 | 2021-10-22T14:08:51 | 2021-10-22T14:08:51 | 350,796,256 | 31 | 12 | null | null | null | null | UTF-8 | Python | false | false | 15,138 | py | belief_ddppo_trainer.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import contextlib
from collections import OrderedDict, defaultdict, deque
import time
import random
import numpy as np... |
6e8e0fa6e4cad81b65e4b111f11ec53fa662b64a | 66f4977cd41ba25e39108fa84d4a2c3f499cf5a3 | /smmry.py | 3d31796b6dcb345114944e373c84b1beb05d4bf7 | [] | no_license | quillio307/summarization | 824f4011ea2443a52ba3349308a9068d86911029 | 051bf420e3dc137cae3cfbe27003312e76234755 | refs/heads/master | 2021-07-23T03:51:52.816043 | 2017-11-03T06:50:26 | 2017-11-03T06:50:26 | 109,362,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | smmry.py | from rake_nltk import Rake
transcript = [
{'rank':0, 'name': "Ammar", 'transcription': "Hi Anoop, so today we are going to discuss the ins and out of text summarization. Before I begin, I would like to clarify that we will be using python for this meeting. No other language should be used because it will be the wo... |
4a13b4933144572e9b47c0b9174d7dd1e55d8df2 | 96d476e49bd1712d01f5a00da54ea85b68c8eb1a | /Intro y Taller Progra- TEC/Proyectos/achacon & afallas-proyecto3/main.py | 5af921c954139c6f1881c98bd0ada1352615a001 | [] | no_license | AdrChacon/ChaCa-Progra | 20432a3f78719f55e9f22d4dc3bcafbbd33f0054 | b5c61e38224746fe4e9af65a7ef432aa4f431f29 | refs/heads/master | 2021-01-25T14:04:17.790946 | 2018-06-15T15:59:31 | 2018-06-15T15:59:31 | 123,648,258 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,158 | py | main.py | import pygame, math, json, random, time
from pygame.locals import *
from jugador import *
from menu import *
from proyectiles import *
from trafico import *
from mapa import *
from obstaculos import *
from Control import *
pygame.init()
pygame.display.set_caption("Desert Mayhem")
# Definicion de sonidos y canales
I... |
15cc43af7a34c17dfefc5526f0ecf67738870b47 | b567d43949cee77b18b3d948ba0147b681014e24 | /mask/eolearn/mask/snow_mask.py | 57aed852015767038f0e5c683c14cc270e3c2f3d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sentinel-hub/eo-learn | 092630a1dc5b78ae2569c3ec4b0729dc6702958a | a65899e4632b50c9c41a67e1f7698c09b929d840 | refs/heads/master | 2023-08-31T09:32:31.775754 | 2023-05-24T10:35:30 | 2023-05-24T10:35:30 | 135,559,956 | 1,072 | 329 | MIT | 2023-09-07T06:08:40 | 2018-05-31T09:08:08 | Python | UTF-8 | Python | false | false | 13,409 | py | snow_mask.py | """
Module for snow masking
Copyright (c) 2017- Sinergise and contributors
For the full list of contributors, see the CREDITS file in the root directory of this source tree.
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
"""
from __future__ import a... |
59f26768671d5c92c05196b92aaad5debefebe6f | 922d994189a7aef591fe24f037b692716bf6ad58 | /pages/mainpage.py | da7e3bc3183d89e68e27b081755bcf26b8fa3beb | [] | no_license | SiranusM/AutomationPractice | 9adf5a1bf6699daf73da0fe6b4f4c075c0654bdc | c44970fc88a464f03e24fbb3c684760c3c07f75e | refs/heads/master | 2022-11-12T03:53:12.920859 | 2020-07-03T16:11:32 | 2020-07-03T16:11:32 | 276,646,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | mainpage.py | from locators.mainpagelocators import MainPageLocators
from selenium.webdriver.common.by import By
import random
class BasePage(object):
def __init__(self, driver):
self.driver = driver
class MainPage(BasePage):
def click_sign_in_button(self):
login_element = self.driver.find_element(*MainPa... |
e7160b61e45dc9e0c9892f0879947f82344b2897 | 85b402cd9e762b2749c978105ea362b10d335e5c | /216_mito_unet_12_training_images_V1.0.py | 81189b54df682efbbe359bf21eb5ef57636205b2 | [] | no_license | bnsreenu/python_for_microscopists | 29c08f17461baca95b5161fd4cd905be515605c4 | 4b8c0bd4274bc4d5e906a4952988c7f3e8db74c5 | refs/heads/master | 2023-09-04T21:11:25.524753 | 2023-08-24T18:40:53 | 2023-08-24T18:40:53 | 191,218,511 | 3,010 | 2,206 | null | 2023-07-25T07:15:22 | 2019-06-10T17:53:14 | Jupyter Notebook | UTF-8 | Python | false | false | 7,070 | py | 216_mito_unet_12_training_images_V1.0.py | # https://youtu.be/-XeKG_T6tdc
"""
Mitochondria U-net using small dataset (12 images and masks of 768x1024 each - further divided into 256x256 patches)
Augmentation is used to artifically enhance the number of training images.
NOTE: While augmentation helps, you cannot augment your way out of having limited tr... |
c8df5b39bb0ad78dcb9f38ef22af4034f8e87a1b | ff48bdd79eebd0b423e75aec8a33ef433011b25a | /week06/DesignPattern/p3_metaclass.py | b06f0e920523b45142af151381165c1b1349958e | [] | no_license | zhongjicheng/Python006-006 | b133dba792678360602b8fbac86760b052f7621c | 86fa9ca3b450d1806d1e4648b78455c1f256e9d0 | refs/heads/main | 2023-03-25T22:14:44.568608 | 2021-03-28T09:24:06 | 2021-03-28T09:24:06 | 323,081,352 | 0 | 0 | null | 2020-12-20T13:44:19 | 2020-12-20T13:44:18 | null | UTF-8 | Python | false | false | 958 | py | p3_metaclass.py | # 使用type元类创建类
def hi():
print('Hi metaclass')
# type的三个参数:类名、父类的元组、类的成员
Foo = type('Foo', (), {'say_hi': hi})
foo = Foo
foo.say_hi()
# 元类type首先是一个类,所以比类工厂的方法更灵活多变,可以自由创建子类来扩展元类的能力
def pop_value(self, dict_value):
for key in self.keys():
if self.__getitem__(key) == dict_value:
self.pop(... |
95e96df080748316283ba22f472701d124e76831 | 848e7d01015db07a8e1eb4e4643576fd33a8f695 | /AlgoExpert/Medium/sum_of_ll.py | ec8082ac24d723007ce6ab709bf948b074cb60c1 | [] | no_license | joswha/interviewpreparation | ec1682200bf5c5784f0bf936f828bc6ddd1c7d1c | d630ebf4550e37318dd881aaf35f9936f51e2b82 | refs/heads/main | 2023-08-12T02:22:02.996245 | 2021-09-22T15:37:44 | 2021-09-22T15:37:44 | 326,705,547 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | sum_of_ll.py | # This is an input class. Do not edit.
class LinkedList:
def __init__(self, value):
self.value = value
self.next = None
def sumOfLinkedLists(linkedListOne, linkedListTwo):
newLinkedList = LinkedList(0) # dummy initial pointer
currentNode = newLinkedList
carry = 0
nodeOne = linkedL... |
be996f42fda4716a6ce7db9f510f280382f4a59e | c56c850097ce14808dd3817117d9d4abd31d3c59 | /MorningKizunaAI.py | 361db26623c74de6ea18ab8debe8e99b2637af68 | [] | no_license | kurikinton105/MorningKizunaAI | f011e9359ae1e5777bb41edb219e1bb73c99699a | cb83c6ef4f8c23205cbc166dfabb0b3f112a0109 | refs/heads/main | 2023-04-22T19:36:40.077396 | 2021-04-22T14:00:31 | 2021-04-22T14:00:31 | 358,906,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,907 | py | MorningKizunaAI.py | import config
import datetime
import tweepy
import WebhookAction
import SheetsAPI.sheet
def GetUserTweet_data( Account,tweet_id,option_time=10):
# 取得した各種キーを格納---------------------------------------------
consumer_key =config.API_key
consumer_secret=config.API_key_secret
access_token=config.Access_token... |
df60d84831a009afa6176e47d2a580069d0b6d69 | d562e8b093f31b7e3492bc739ac54ea8feaae6bd | /user.py | bd304841823e7096d738be782f00503bef4112db | [] | no_license | PandaRec/metro2_0 | 2cb43dae7a5c21400145c4cc23c638c94ab8e946 | 633ec943dc0867bee4443fdb9af4c542c87b85d3 | refs/heads/master | 2022-12-20T02:50:13.479604 | 2020-10-26T11:52:57 | 2020-10-26T11:52:57 | 304,268,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | user.py | class current_user:
id = 1
login = ''
phone = ''
friends = []
def __init__(self):
self.id = 0
self.login = ''
self.phone = ''
self.friends = []
def set_id(self, id):
self.id = id
def set_login(self, login):
self.login = login
def set_pho... |
7d74332269d5966395e1c86e8e4aa661150abada | d73871e3b9b9e8d8ba4477da3e38c579b70ea402 | /view/startscreen.py | 1933324040c3023155f082df0387856c91041580 | [] | no_license | felipeCaetano/Pharmasyskivy | f0e0ba45c9053a6bfb25a4ab8494b160721b53e3 | fbd4e1ac4d712ec15c2df20beeef41c85fd570c7 | refs/heads/master | 2023-03-05T12:12:05.126398 | 2021-02-19T04:49:36 | 2021-02-19T04:49:36 | 332,620,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | startscreen.py | import os
from kivy.lang import Builder
from kivy.properties import ObjectProperty, BooleanProperty
from kivymd.uix.screen import MDScreen
from infrastructure.observer import Observer
Builder.load_file(os.path.join(os.path.dirname(__file__), "startscreen.kv"))
class StartScreenView(MDScreen, Observer):
"""
... |
34f8144a2fafae0bde218cd486d519eca03ff9dd | c50d04f382192387adb0f8314320b188c5c0a9f6 | /nfs4.0/lib/nfs4/servertests/st_reboot.py | 067cda6e2004a9164819a876c30e7df4fe44b523 | [] | no_license | thecubic/newpynfs | f4ac33e23802480fc570d57c975133441e9beffe | 14b3085dcce30d941a7839241779639b80e6298b | refs/heads/master | 2016-09-02T01:18:22.451434 | 2012-06-04T15:08:46 | 2012-06-04T15:10:37 | 9,014,817 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,408 | py | st_reboot.py | from nfs4.nfs4_const import *
from environment import check, checklist
import os
# NOTE - reboot tests are NOT part of the standard test suite
def _waitForReboot(c, env):
"""Wait for server to reboot.
Returns an estimate of how long grace period will last.
"""
oldleasetime = c.getLeaseTime()
env.... |
fa63298a6edcca2a952cf9de3e672faece57620e | d773e677484c28d103a0a42f6871e1522a15849a | /deptree/updates/releases/gnc/v1_4_34.py | df74ffa859c8e68081d37f88e2fd79610c902ab6 | [] | no_license | MarsStirner/dbtool2 | a78eb1622bd5f61399e3680a6e09dbd79b544315 | 7641bc674a347ef445ac29d9eea2480420d9e1b5 | refs/heads/master | 2020-12-03T00:32:43.374138 | 2017-06-28T10:28:41 | 2017-06-28T10:28:41 | 96,041,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | v1_4_34.py | # coding: utf-8
from deptree.internals.base import DBToolBaseNode
class MisGnc_v1_4_34(DBToolBaseNode):
name = 'mis-v1.4.34'
depends = [
'mis-v1.4.33', 'tmis-1382', 'tmis-1406', 'tmis-1384', 'tmis-1385',
]
|
b0ce8e3868de3c35809cc1ad93d35b7b83171a41 | bdd20024882f404969bb0bb0a54eadede6273572 | /eje3guia2.py | c75027c420f7d3fcab96da8a78a9d42a499bbafd | [] | no_license | Vickybilla/PracticasPython_UniversidadBelgrano | 21c07a24b1966f54b2b042b41058d7f9644f4683 | 633b17d7651710f7424a840cb23d6a100e6e6e4f | refs/heads/master | 2023-07-13T15:34:12.266146 | 2021-08-09T23:47:03 | 2021-08-09T23:47:03 | 393,540,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | eje3guia2.py | """Ejercicio 3:
Escribir un programa que muestre, de a diez números por línea y separados por un
blanco, todos los números entre 100 y 1000 que sean divisibles por 5 y 6"""
#número de partida 5 por seer el menor múltiplo posible de alguno de los valores dados
n = 5
#usamos contador para la posterior impresion (parte d... |
c811ad6817d7479ef659d4145eded5c1a98cd7e7 | e3fd8cdf053069a7f3b7a6e7fdad54a6e2748f64 | /msg_monitor.py | 38a49ca420bb106e2a00ada6fca3d6c53ea1b896 | [
"MIT"
] | permissive | waqarmumtaz/gamedealsbot | 90fc849b7424cc769f0663fb280cf33df6954734 | 7ca000403d9c786d77e5dd946a6cb696db1cfcaf | refs/heads/master | 2023-06-17T07:21:23.362275 | 2021-07-09T11:27:51 | 2021-07-09T11:27:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,388 | py | msg_monitor.py | import sqlite3
import time
import praw
import prawcore
import requests
import logging
import datetime
import dateparser
import os
import re
os.environ['TZ'] = 'UTC'
import Config
from bs4 import BeautifulSoup
responded = 0
footer = ""
reddit = praw.Reddit(client_id=Config.cid,
client_secret=Con... |
514c8b4b511b60e4b211ee4da301e04fb66ebfba | c9da0b8058c8675735770c9746bd00119d73e9b5 | /SurveyManagement/models.py | 56a97287392fe6b0f135d91939930310147175e8 | [] | no_license | bmetge/Surveyvor | 8661117c7cb602b14cd6ebb1d576c6736a5f1047 | b050bd9b6ca70e017fde25e375061d61e4cb7adb | refs/heads/master | 2021-01-22T09:27:21.963387 | 2014-05-28T04:14:42 | 2014-05-28T04:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | models.py | from django.db import models
# Create your models here.
class Survey(models.Model):
name = models.CharField(max_length=255)
creationDate = models.DateTimeField()
last_editDate = models.DateTimeField()
isQuizz = models.BooleanField()
isPublished = models.BooleanField()
isClosed = models.BooleanF... |
d8f5e9d7086779396acde9e378632228185b43df | c8c68bbe1810209ffa3bf4a87d486aa216d1e850 | /FiltersApp.py | b164f8af0f7a346e37343ca201725e3156fdf65c | [] | no_license | Souvikray/Image-Filters | 2459cee2191cac979f5582dc26df16c9a0416950 | a9490059d8db94928f9b71a4536edb41dbe11ad7 | refs/heads/master | 2021-07-09T03:19:58.462217 | 2017-10-10T06:57:34 | 2017-10-10T06:57:34 | 103,155,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | FiltersApp.py | import cv2
import numpy as np
#we create an empty function which does nothing just as to be called by the createTracker function to fullfill the parameters obligation
def nothing(arg):
pass
#create a count variable to assign unique number to image names to avoid conflicts or overwriting
count = 0
#create some ker... |
287bbac62e1863a28f290a912042b6ce5a1ce692 | a46280cb62645f112d8081b0f96256f3a123abe3 | /app_book/urls.py | 6be9dfc735afc4b1e1c9542998ce20cf013974fd | [] | no_license | HadeelYassin/Book | 00b017e38c98ef3907c26cef2e057d77c4a1e7e2 | e312eb27d6ae529645fa478414ed27b85cdc7c33 | refs/heads/master | 2023-01-31T04:48:43.142812 | 2020-12-17T12:02:15 | 2020-12-17T12:02:15 | 322,282,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | urls.py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('addbook', views.addbook),
path('authors', views.index1),
path('addauthor', views.addauthor),
path('bookinfo/<num>', views.showb),
path('process/<num>',views.addauthortobook),
] |
64544247034ea04523f75f66f4669e8c11986ded | b824ddceead6bd20b58d7a2536ba6df730d6ed45 | /Project-Files/CNN.py | e762f36a716a690219f2860bfb43832933f2f37b | [] | no_license | shivamrastogi17091995/Brain-Tumour-Detection | 678f5c58d7199ead4079803b3a81139bf535be51 | 5b4b8c6fab5e39e1ea7da27d08374faba7242e4b | refs/heads/master | 2020-05-04T22:54:13.814520 | 2019-04-04T16:19:20 | 2019-04-04T16:19:20 | 179,526,511 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | CNN.py | import numpy as np
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import Flatten
from keras.layers.convolutional import Conv2D
from keras.layers.convolutional import MaxPooling2D
from keras.utils import np_utils
from... |
21e81550488939a48e212c94c1bdaedddf825daa | 57a64419109e98dfb2af7fad9d3d804f4b28cbe8 | /spherical_benchmark_smooth_no_slip/polyhedra.py | 51a41bee4061ec4081d605a9d8f0a37b8314045b | [] | no_license | FluidityProject/longtests | b2e2799e62dfcc3f2687943c0333103ec6888ab5 | 923f0ed98640d57bce7591a6a323be7b6906b8bd | refs/heads/main | 2022-10-31T21:55:04.309636 | 2022-10-23T10:03:31 | 2022-10-23T10:03:31 | 20,325,527 | 0 | 2 | null | 2022-09-13T07:10:51 | 2014-05-30T10:12:05 | Python | UTF-8 | Python | false | false | 2,639 | py | polyhedra.py | from numpy import array
from numpy.linalg import norm
from math import sqrt
# 8-3-2017 s.kramer@imperial.ac.uk:
# the icosahedron() code is partly based on http://blog.andreaskahler.com/2009/06/creating-icosphere-mesh-in-code.html
# the subdivide() routine is based on http://prideout.net/blog/?p=44 , but completely r... |
d9cf9d0485412b3999d97a2ba372f68c82b5d704 | 192a27257a7a301911f83766483e8b09f269c971 | /src/main.py | e3ab61668937abd92e43379d10efbc44d82ede96 | [] | no_license | BenPalmer1983/qe_eos | e27a8f960c691a86e1a5e0a6286f4253b7f7adfa | 2140b971ac5e90a3c1815653e614af1d11e58cb2 | refs/heads/master | 2022-10-12T07:03:03.231828 | 2020-06-10T19:56:50 | 2020-06-10T19:56:50 | 271,367,487 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | main.py | ################################################################
# Main Program
#
#
#
#
################################################################
import os
import time
import datetime
import re
import sys
import shutil
import numpy
from globals import g
from std import std
from read_config import read_config... |
2c712e68289d0d53bc5f8e9f3d48a850c5f30abb | 4b2b35e358fdbab6112b1937ebc959d1e136e9c9 | /minesweeper/serializers/loaders.py | 12d9ea92b1981be406bf33fc91e156b289652a6b | [
"MIT"
] | permissive | cdipietro/deviget | a81da273b13d459738875e5061b5e3e3769d232c | 4da2c002d04eae0599e34dab996fed6331afe121 | refs/heads/master | 2020-07-25T23:53:30.265907 | 2019-09-17T21:03:57 | 2019-09-17T21:03:57 | 208,461,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | loaders.py | from marshmallow import ValidationError
from .validators import (
validate_name,
validate_password
)
from minesweeper.common.auth import secure_password
def load_name(value):
"""Sanitizes, validates and loads a name value.
:param value: A string with a name value
:type value: string
:return:... |