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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ddfeb49c16a7452c99126f1a837f3c0bed0ec10 | 8895e60c0b0ddc9bbbcecaf984bbbc1fa86ffc20 | /crawler.py | 03dc253f8cdb2f1bda792564079c6758a8eb5a16 | [] | no_license | sompodsign/Web_scraping_with_python_Oreilly_solves | da5ea778f407fddc04f362ad7911c1ee07471195 | c89d67f45e0624b765a2d40bf13f8df9827942ea | refs/heads/main | 2022-12-29T12:51:42.074778 | 2020-10-21T04:51:11 | 2020-10-21T04:51:11 | 305,301,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | crawler.py | import requests
from urllib.parse import urlparse
from bs4 import BeautifulSoup
import re
import datetime
import random
pages = set()
# Retrieve a list of all Internal links foound on a page.
def getInternalLinks(bs, includeUrl):
includeUrl = f'{urlparse(includeUrl).scheme}://{urlparse(includeUrl).netloc}'
in... |
1e1f918ba24f5a5f13b9b01289ebfda65bae572d | eee647635af1583d9b1150b7cd3195336291e1d2 | /23ABC/c.py | 62179bfe3e1049aa96dab334ba445bcc18ad81b1 | [] | no_license | lilium513/competition_programing | 42f69222290b09b491477b8a2b9c2d4513ebe301 | 45082bf542224b667e753ad357cf145f683fde54 | refs/heads/master | 2020-06-22T03:16:34.510906 | 2019-07-31T18:22:31 | 2019-07-31T18:22:31 | 197,619,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | c.py | def warshall_floyd(N):
INF = 10**20
path = [[INF for _ in range(N+ 1)] for _ in range(N+1)]
graph = get_graph()
for i in range(N+1):
path[i][i] = 0
for g in graph:
x = g[0]
y = g[1]
l = g[2]
path[x][y] = path[y][x] = l
for start in range(N+1):
for ... |
04538cc5c9c68582cc9aa2959faae2d7547ab2ee | 0b750197cd51dc1c1f6a05bd31ba5cbd3d5e4fc0 | /QuestionClassfication/data_process.py | 2176c0425ecf4e5b14f3b8bb50e025b158198c19 | [] | no_license | ceaserz/python_note | 69f67da7dd9989eb1ea211b5fda5866398c6f592 | d9d7f70e4d2ca2f53148f6d96630ed3564708d36 | refs/heads/master | 2021-01-01T05:10:55.844275 | 2016-04-14T15:36:18 | 2016-04-14T15:36:18 | 55,990,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | data_process.py | try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
import data_helpers
def write_to_file(file,line):
file.write(line+"\n")
def cat_map():
catmap={}
id=1
f=open("cat")
cat=set([s.strip() for s in list(f.readlines())])
for i in cat:
catmap[i]=id
id=id+1
return c... |
631323e79f4fb32611d7094af92cff8f923fa996 | ab693742a3d91463a468fb0336ecf01bc1306832 | /word_ladder.py | c356bb3bc9e74f7e33ef61abb36509cc1e7285ba | [] | no_license | mikeizbicki/word_ladder | e16cbd12857241ad11757fb12f16643817ec78ab | 8c3fd34b48c6fd0f9b351d35b50b65cdf3db83a7 | refs/heads/master | 2023-03-17T11:36:53.297768 | 2023-02-17T20:27:55 | 2023-02-17T20:27:55 | 240,126,898 | 1 | 135 | null | 2023-03-06T08:52:19 | 2020-02-12T22:18:15 | Python | UTF-8 | Python | false | false | 1,682 | py | word_ladder.py | #!/bin/python3
def word_ladder(start_word, end_word, dictionary_file='words5.dict'):
'''
Returns a list satisfying the following properties:
1. the first element is `start_word`
2. the last element is `end_word`
3. elements at index i and i+1 are `_adjacent`
4. all elements are entries in the... |
0a528fb7fe4a318af8bd3111e8d67f6af6bd7416 | df560dde5ffbae51187041f422c87f7d1544cbe9 | /leetcode/python/1123_lowest_common_ancestor_of_deepest_leaves.py | f40133527ac0dfe06af2d683cffeb3b94c32ad68 | [
"MIT"
] | permissive | VVKot/coding-competitions | 61c97dbc4fdaeb0a35ff7fa8e55529b579fd1ebb | 7d6e599b223d89a7861929190be715d3b3604fa4 | refs/heads/master | 2021-07-04T17:47:34.246535 | 2020-09-23T20:28:30 | 2020-09-23T20:28:30 | 174,696,391 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | 1123_lowest_common_ancestor_of_deepest_leaves.py | from typing import Tuple
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def lcaDeepestLeaves(self, root: TreeNode) -> TreeNode:
_, lca = self.get_lca(root, 0)
return lca
def get_lca(self, node: TreeNode, dep... |
371762a6e3f8b8ed14742a70a709da224ae6712b | d04ba4cde1f45d781bdbccd3b07adc4a5c5e55e3 | /data_structures/08_disjoint_set/01_disjoint_set.py | 5c0537947285451fe31472e24d5758971d39c1f7 | [] | no_license | lanzhiwang/common_algorithm | 70766604d0faac80af95e829495bbc1cf2d774b6 | 232ad0f2b326ddbf021991a551cd38d39ceccd8f | refs/heads/master | 2020-11-23T21:20:56.067226 | 2020-09-24T06:07:37 | 2020-09-24T06:07:37 | 240,246,083 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,935 | py | 01_disjoint_set.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import random
"""
检查图数据和结构或者链表数据结构中是否存在环
https://www.youtube.com/watch?v=YKE4Vd1ysPI
"""
def get_all_edge(graph):
result = []
for k, v in graph.items():
for i in v:
if sorted((k, i)) not in result:
result.append(sorted((k, ... |
7f7ebc6d3d69fbb19071c63a9ab235ad01f1d414 | b04173b0e73f0a0b453751382c0dcfa4d3c01b95 | /part_of_speech_prediction_LSTM/train_LSTM3.py | 854db6134c5cf3f2835c34580f8b7dd8e73785d2 | [] | no_license | Nabarun21/Machine-Learning-Projects | 160aaf092e1a38c1f297b0ad9a3bafdda4e5f5c0 | 1906d23c8a9ec5cdc0bf75ffdef88d07fc111be2 | refs/heads/master | 2020-03-29T09:41:00.211589 | 2019-02-03T23:47:30 | 2019-02-03T23:47:30 | 149,769,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,705 | py | train_LSTM3.py | import sys
sys.path.append("..")
import helpers
helpers.mask_busy_gpus(wait=False)
import nltk
import numpy as np
nltk.download('brown')
nltk.download('universal_tagset')
data = nltk.corpus.brown.tagged_sents(tagset='universal')
all_tags = ['#EOS#','#UNK#','ADV', 'NOUN', 'ADP', 'PRON', 'DET', '.', 'PRT', 'VERB', 'X... |
8698aedc5c8671f46c73898a7188440254b79bbf | 33043f158b9516f3818318f73a9ba785bdc62fd0 | /artificial-intelligence-work/vacuum-agent-simple/Environment.py | 6b683b61f5f44b036bf8d7cab4ca156404411193 | [] | no_license | wasymshykh/ai-ml-course-practice | 02e715a7bbf28656d70e376481c2087eb19d5436 | ff2e11d54e3b743b562cd7e0310b8a77f38ae6ef | refs/heads/master | 2022-12-11T14:51:59.979043 | 2020-09-04T15:55:09 | 2020-09-04T15:55:09 | 218,641,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | Environment.py | from abc import abstractmethod
class Environment:
@abstractmethod
def __init__(self, agent):
pass
@abstractmethod
def execute_step(self, n=1):
pass
@abstractmethod
def execute_all(self):
pass
@abstractmethod
def set_delay(self, delay):
pass
|
1be510e6715d21e814c48fe05496704e9a65d554 | 114443d63d25102115c2424c1e74eb1f42ddf93d | /client.py | 73378962d259c0c4d4db9759139e85236129510a | [] | no_license | TheMasterOfMagic/LearnSocket | 96b790f7df516356ec004f308ddc82361f95f4eb | 0755a979dab7a38a8fb02630bcecb2d9a023a523 | refs/heads/master | 2020-04-17T13:55:44.375806 | 2019-01-24T10:07:10 | 2019-01-24T10:07:10 | 166,635,977 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | client.py | from end import Client
c = Client()
|
6b727cdfc684db4ba919cd5390fe45de43a806fe | 87522298d6ae407e92a37ddc67ee58ff680454ae | /tools/compute_grid_stats.py | 2d71e569466f7b041e7fd04d29dc4110fb785b5e | [] | no_license | lcolosi/IdealizedWaveCurrent | 737b18ba541a9c8ea216932d1f0ef8d7c8e2c0fe | 7cd4aa26c258674f28f9b02d78a5dd433c0bf234 | refs/heads/master | 2023-02-15T10:30:21.983147 | 2021-01-13T18:29:20 | 2021-01-13T18:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | compute_grid_stats.py | import glob
import xarray as xr
from model_diagnostics import *
data_root = '../data/synthetic/standard/'
var_list = ['hs', 'dp', 'spr', 'fp', 'dir', 't0m1']
eke = 0.01
##########################
output = []
diagnostic_functions = [basic_stats]
for var in var_list:
grid_files = glob.glob(data_root+'gridded/*%s*%s... |
92817895d8d244a33b70992b664f887c9ed7990d | 2fc8f243aeaf0568ae069c4ffe6a1900ffd5ecc9 | /bookwormMARC/hathi_methods.py | 73512f37a029b87d42a44942c76a2792d0335a18 | [
"MIT"
] | permissive | Bookworm-project/Bookworm-MARC | aa4ff41373abc271357d4dc95b7e4ab6eccd4962 | f3526716f225779a53a952479a98a088b8adce83 | refs/heads/master | 2020-12-24T07:41:37.046030 | 2017-08-24T00:19:13 | 2017-08-24T00:19:13 | 55,787,281 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,014 | py | hathi_methods.py | import tarfile
import cStringIO
import random
import sys
import pymarc
from bookwormMARC import BRecord
import logging
import json
import bz2
"""
These define methods specific to Hathi Trust MARC record parser.
"""
def obj_to_marc(jobj):
""""
Coerces a dict into a MARC object.
"""
rec = BRecord()
... |
2c6f929cc3abdd6e95cb186ff207be16c3335a88 | cb97973dc79a58f8b785cd94f7c129c9492694a1 | /휴강기간_공부/알고리즘_0309/swea_5249_최소신장트리3.py | 709d3eab80345c34e949c046b1e7a02eec6251c0 | [] | no_license | gkgg123/TIL | 6aa25cd2e9390bded3f842ce1e6843a9081cf1b0 | cbbd55190893550cd40920fe1cd732b4da1830a0 | refs/heads/master | 2023-07-23T23:08:22.542224 | 2022-07-27T01:02:42 | 2022-07-27T01:02:42 | 235,233,061 | 0 | 0 | null | 2023-07-18T23:31:17 | 2020-01-21T01:38:15 | Python | UTF-8 | Python | false | false | 1,783 | py | swea_5249_최소신장트리3.py | ## 크루스칼 알고리즘
### 같은 그룹 만들어주기
def union(parent,child):
x = find_parent(parent)
y = find_parent(child)
make_set[y] = x
### 루트노드를 통일시켜주기 위함
for i in range(V+1):
if make_set[i] != i:
make_set[i] = find_parent(make_set[i])
#### 부모를 찾아준다.
def find_parent(ind):
if make_set[ind]... |
cedbe8bc65b3e32d6900eaa9bfd76c13bcbdee80 | 39f48ada2ff20cf729728a80c0c5560ae6c2a314 | /export_config.py | e1f087e14dba78fb80c652bd26ccd1e8180de2f1 | [] | no_license | NorthLandTeam/auto_config_switch | ee428e9bdf89c97ee496ceef2c2a11d5e26d981e | 303300ed931ce61e2c5350bbe831a76e43914c04 | refs/heads/master | 2022-12-24T23:34:33.641767 | 2020-10-09T16:04:30 | 2020-10-09T16:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | export_config.py | # -*- coding : utf-8 -*-
'''
批量导出交换机配置
'''
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
import time
UserName = 'admin'
Password = 'admin@huawei.com... |
bb07ded07563a1a14598b2632c63c4bac7834ee4 | c5f5ed5141e33f9bbf7726cd2d9c68e7bd15c0e5 | /python/src/main/resources/functions/CashPriceQuantityNoOfUnitsTriangulation.py | 613dc4ca67450120ae304adc419f3129bcdea0ce | [
"Apache-2.0"
] | permissive | REGnosys/rosetta-code-generators | 4d32884f25bfbf0b3d5675cd62a19c6bbdf216e8 | 13c96f2275cab6db8c616ff6961970d45471643e | refs/heads/master | 2023-08-31T01:39:40.943842 | 2023-08-30T10:05:49 | 2023-08-30T10:05:49 | 192,692,079 | 15 | 29 | Apache-2.0 | 2023-09-14T12:13:28 | 2019-06-19T08:33:28 | Xtend | UTF-8 | Python | false | false | 693 | py | CashPriceQuantityNoOfUnitsTriangulation.py | from cdm.base.math.FilterQuantityByFinancialUnit import FilterQuantityByFinancialUnit
from cdm.base.math.FilterQuantityByCurrencyExists import FilterQuantityByCurrencyExists
from cdm.base.math.FinancialUnitEnum import FinancialUnitEnum
def CashPriceQuantityNoOfUnitsTriangulation(quantity, price):
notional =... |
6314e7c38359711b2174e0b0269c629ed2f58bf1 | e1f8a054b250c3b6a6f4826e53b328b8e46a7054 | /website/migrations/0001_initial.py | 132bd5dcf73a37d0de77798d1d131b7d8fad1d2d | [] | no_license | mariaFernanda2001/AjudandoMaria | f30e856e3cab7781c5026ce6a0502987b8aa621c | a8fe3c453bfcf9b379586ff9846b3fd78fc55243 | refs/heads/master | 2020-08-13T04:38:01.483059 | 2019-10-13T23:08:29 | 2019-10-13T23:08:29 | 214,907,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | 0001_initial.py | # Generated by Django 2.2.6 on 2019-10-11 19:56
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Desafio',
fiel... |
eee924cafa13c2a00305ee193c5fae768f79b720 | 8d52c98ba05c5638a6389c78642320a94736902e | /ex6.py | f82c13c331b071acf8fd3df13398d7b33fe31e84 | [] | no_license | Tylerman90/LPTHW | f359a2dfbfc9104560e8bdc47b062876daa92930 | b08a806cbbac3c360219d419526bc0a79e2dfbf2 | refs/heads/master | 2021-04-15T15:16:24.225389 | 2018-07-12T00:46:30 | 2018-07-12T00:46:30 | 126,387,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | ex6.py | #first variable
types_of_people = 10
#inject variable into string and turn that formatted string into a variable.
x = f"There are {types_of_people} types of people."
#define more variables
binary = "binary"
do_not = "don't"
#inject variable into formatted string whic is stored as the variable y
y = f"Those who know {b... |
ba18d58a424d8d15f69b4ffc1f4d0e9381d8317b | ad88f38a6a511a4567408762399f868da72a964c | /generate_figures.py | 7d3519b5bacaf7e84051ce301f20b39e8ea2b382 | [] | no_license | ebalda/adversarial-risk-bounds | 3ce1327fdfd712416fd43ba461b7e858cafb42d2 | 5915c62e92803857df9e7f3e82b7b38c0e81e2d3 | refs/heads/master | 2020-12-28T05:06:04.768399 | 2020-02-04T11:41:51 | 2020-02-04T11:41:51 | 238,190,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,003 | py | generate_figures.py | import numpy as np
import matplotlib.pyplot as plt
import os
import tikzplotlib
# Global dictionaries
summary_dict = {'adv-training': 0,
'std-train-error': 1,
'adv-train-error': 2,
'std-test-error': 3,
'adv-test-error': 4
}
norm_dict = {
... |
0abd5926a0eff03908338369ddc49a80e90303fa | 630d641671ef4ed0372c290149855c27ef0cfdaf | /Error Galat/error_galat.py | eb17ed17a8638729b3a8084475d6b96830e70fa2 | [] | no_license | yosuapurnomo/Komputasi-numerik | fa48a369566e4234ba49d3a8e919881019e446c2 | 2515c1780505e0fa8da3deea977707a91a8fa4c7 | refs/heads/master | 2020-12-12T11:48:14.267214 | 2020-01-17T15:10:49 | 2020-01-17T15:10:49 | 234,119,537 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | error_galat.py | import numpy
class error:
def __init__(self):
self.awal = []
self.prediksi = []
self.error_selisi = []
self.error_absolut = []
self.jumlah_error = None
def setError(self):
text = "Nilai ke %(kode)s", (len(self.awal) + 1, " = ")
self.awal.append(float(in... |
98ba51f7e989314177c82534961f1de99e1c4bb1 | 3f76ea98e7a7c884a02c2b4ce4f431fc54439285 | /1-ModularExponentiation/1b-Recursive/Python-Original2017Code/Task 1b.py | dfa4ec9e675d2e0fc37f958c0dfaf2f7aa5f12f9 | [] | no_license | ha1fling/CryptographicAlgorithms | 0a5770d29c7e38a1deb1514e45d72d91eb59696d | 7ac84ae3c04bc1a4ed197715232f85f2faf711bc | refs/heads/master | 2023-03-27T14:31:12.063592 | 2021-03-26T18:01:57 | 2021-03-26T18:01:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | Task 1b.py | while True: #Wile loop to possibly repeat program
while True: #While loop used to check an integer is entered for a
try:
a= input ("Enter a:")
a= int(a)
break
except ValueError:
print ("Not valid, input integers only")
while True: #While loop us... |
6eecd0a2e6fa392cf5627d32bbce491ec8e04afe | 999d7c615a17f513c4f384188bc2a0c83c16e892 | /blog/lib/python3.7/_dummy_thread.py | ba0c01b327105c9db77664a941192d76276a7a74 | [] | no_license | EldorIbragimov/Creating-My-blog-in-Jango | abf67b5f04f38dd0cb8452b05afacfc417e2eb15 | d3362ee0ec919ef0074d3c91b79e6d34de6e30d4 | refs/heads/master | 2022-11-24T12:47:49.768080 | 2020-04-22T06:04:45 | 2020-04-22T06:04:45 | 185,531,442 | 0 | 0 | null | 2022-11-22T05:18:19 | 2019-05-08T05:02:21 | Python | UTF-8 | Python | false | false | 48 | py | _dummy_thread.py | /home/e/anaconda3/lib/python3.7/_dummy_thread.py |
fa4687f800d3ce1bf5dd8909d275bc3717c64f66 | 7c9173875ba6e20a9fc705753a5c553891d01a79 | /Python趣味编程:从入门到人工智能/第20课_谁是雷锋——逻辑推理/练习题/练习题1-认出五大洲.py | 8f7e2cfa8b1914f3cfa8d3aafa044cf733e03fe4 | [] | no_license | zhy0313/children-python | 1df120930637b8bd320ab090ea784aab7b7cfed2 | 941e29d5f39092b02f8486a435e61c7ec2bdcdb6 | refs/heads/master | 2021-01-07T00:59:31.332746 | 2020-02-10T11:45:52 | 2020-02-10T11:45:52 | 241,533,568 | 0 | 1 | null | 2020-02-19T04:36:38 | 2020-02-19T04:36:37 | null | UTF-8 | Python | false | false | 1,416 | py | 练习题1-认出五大洲.py | '''
程序:认出五大洲,逻辑推理
作者:苏秦@小海豚科学馆公众号
来源:图书《Python趣味编程:从入门到人工智能》
使用枚举法列举五大洲的编号,使用字典进行去重。
有5位同学每人都说了两句话,只要判断每个人有一句话是真的,就找到答案。
提示:该题的编程思路可参考《Scratch趣味编程进阶》中的相同问题。
'''
def main():
'''认出五大洲'''
for asia in range(1, 6):
for europe in range(1, 6):
for africa in range(1, 6):
for america... |
7e8f40e920ec3588ad4320808a23ad3c23c1573f | 19da5239046353698acb27c9a07610fc8c0c0a48 | /demo/account/urls.py | b86e87cfa12dcbd4772d0865bfa0b3abff864853 | [] | no_license | JIElite/django-rest-account-system | 1a5e8a9b26c9e80b50c4f0da6dcc85cf91dc4128 | 6c377cab02d714797f3b2c92eea4f7b656f05810 | refs/heads/master | 2021-01-22T02:03:38.618001 | 2017-02-14T14:29:41 | 2017-02-14T14:29:41 | 81,467,657 | 6 | 1 | null | 2017-02-14T11:08:32 | 2017-02-09T16:00:59 | Python | UTF-8 | Python | false | false | 1,366 | py | urls.py | """demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... |
d363e7fa6f8a0f718571ce56b19332f855bb4465 | 4970f6de4139e2674a49d8cb67b4f49d66619465 | /Project/django_settings/watermark/views.py | 35b005a389cfe5932dc765b31336dea7a82e7be0 | [] | no_license | emilioanh/LSB-music | 75ebde5eff1517566a127e7688fbe082e28959b5 | 118d5be6214ffe40a0dda002b8627be8c63f712c | refs/heads/master | 2022-10-30T01:45:35.010839 | 2018-05-18T10:43:22 | 2018-05-18T10:43:22 | 132,621,847 | 1 | 2 | null | 2022-10-26T01:23:38 | 2018-05-08T14:34:38 | Python | UTF-8 | Python | false | false | 4,375 | py | views.py | import time, os
from django.shortcuts import render, redirect
from django.contrib.auth import login, authenticate
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.contrib import messages
from mimetypes import MimeTypes
from APIs.drive_api_impl import save... |
ff832611e28c661adf832ae9e53b90111a777ac6 | c616b8f87f6332d8729820b5cf0c12d31314b48b | /cloud_pricing/data/__init__.py | 6960607b8cd84f94392a35edd7c6dfd14e7db0bc | [
"MIT"
] | permissive | AshwinKadle/cloud-pricing | e140a571c6e22b954d030f7fd19101edd3ea0e51 | ef4513b2cf8d1301dcfb0508d06c4a6c9430f5d2 | refs/heads/master | 2022-12-23T19:42:20.396360 | 2020-10-01T13:57:27 | 2020-10-01T13:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | __init__.py | from cloud_pricing.data import core
from cloud_pricing.data.aws import AWSProcessor
from cloud_pricing.data.azure import AzureProcessor
from cloud_pricing.data.gcp import GCPProcessor
|
ef1e7e7b8b360ab06f6cbf89aaa602fb697f9a99 | 937118739d4c7f65ba0672447ae960265f32badd | /ProjectParkinson_nieuw.py | 76c28fbf7493467a7977b564f14eb67705f30e6a | [] | no_license | TELangelaar/ParkinsonML | be87a304c91e94283bcfbdd7c3ff87374ed53f6f | aaffcfb13e3220273a848f6bf8422b06f2f9b779 | refs/heads/master | 2020-05-18T11:55:12.531634 | 2019-06-19T14:17:01 | 2019-06-19T14:17:01 | 184,393,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,616 | py | ProjectParkinson_nieuw.py | # -*- coding: utf-8 -*-
"""
Created on Tue May 28 11:11:34 2019
@author: s2589656
"""
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from readprocess_tappy import process_user
import warnings; warnings.filterwarnings('ignore')
from sklearn.linear_model import... |
fb81abc5d9962cecf25b465ac4f883ad7eba9815 | e74727509b0cf9d8f4164fb4fb7d3477d62f97c5 | /genCG.py | f9e58c6c50c183489773793e02759e8ec13bfa09 | [] | no_license | neilc7/VerifCoverage | ecede659497e701a07c329ef6cc5e0af308809e8 | 37b75793ee7f585535aa52c18d4e58d0904524d1 | refs/heads/master | 2023-08-24T07:09:43.939782 | 2021-10-08T21:41:45 | 2021-10-08T21:41:45 | 382,685,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | genCG.py | import pandas as pd
import sys
import CovClass
def main(ifile, ofile):
df = pd.read_excel(ifile, engine = 'openpyxl', na_filter = False)
cgdict = {}
for row, cg in enumerate(df.cg_name) :
if cg != '':
u_cg = CovClass.CovGroup(cg, df, row)
u_cg.buildCG()
cgd... |
f285a5e7bc07111c1c8c1dc943198fbcbfc82386 | 62d3b44625fbe8fb828895c0e9e97d56e5f2fdc2 | /vote/views.py | 4e484caaa773f433c0ba9b82d1a56121948ab7aa | [] | no_license | samkayz/vote | 59a865939c4d6518768dbd6670643dbf4e15b58e | 9545b04fc7fdb86ba22dcded894985659c2e3c04 | refs/heads/master | 2023-08-12T00:50:04.982534 | 2021-10-10T10:24:10 | 2021-10-10T10:24:10 | 415,551,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,790 | py | views.py | from django.http import response
from django.http.response import HttpResponseRedirect
from django.views.generic import TemplateView
from django.contrib import messages
from django.views.generic.base import View
from function.func import Main, get_client_ip
from django.shortcuts import render
from django.core import se... |
8b610f853ed890eb9568d652e49486f0c9f5ba1a | b8cc5c5274f8f94d552275efeeb6df96ca198ec8 | /module_test.py | baa387877d21cc07e216e142eda5aaffffa6a649 | [] | no_license | ASKCHANDRA27/python | ae9c7591f3cb97b63a8c23cb2243dd1f6cba37cc | 268d1b41394fcd9201e347ea2449bdb28330b41e | refs/heads/master | 2020-03-24T00:54:30.702562 | 2018-07-29T16:07:01 | 2018-07-29T16:07:01 | 142,313,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | module_test.py | import star_tree
star_tree.star_tree()
|
3ca33b9ed92c42838c3431fcbc8d9104f07c145a | 8932390068fb9160e664077c28e76887de96aeaf | /halls/views.py | 7ee5248ec817308b004a97ae7e24485118586239 | [] | no_license | francofgp/Hall-of-Fame-Videos-Django | 7924abc66961606822e49bcf5ba5c6066db8e791 | 1cd0613817629fbb4428173cc2a469496ae539a3 | refs/heads/master | 2023-03-19T11:03:39.856578 | 2021-03-07T17:55:32 | 2021-03-07T17:55:32 | 345,388,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,824 | py | views.py | from django.shortcuts import render, redirect
from django.urls import reverse_lazy
from django.views import generic
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import authenticate, login
from .models import Hall, Video
from .forms import VideoForm, SearchForm
from django.http import ... |
881ed65f4c6f6ea83f819cf86e7f3cfc0f9a654e | 9340f09096c9ac6b6d3f78a088382d46520d1bbb | /catonmat/views/pages.py | fb6e7086378dc2b4b5832bb903abb948642e251e | [] | no_license | stjordanis/catonmat.net | ae7c1f23fa16f6d3790aba089f942fd636e806f0 | 7b6287417c6dfc5fb3e885ec89dad94b655154d6 | refs/heads/master | 2022-01-15T13:55:33.197379 | 2019-01-19T13:14:33 | 2019-01-19T13:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,520 | py | pages.py | #!/usr/bin/python
#
# Peteris Krumins (peter@catonmat.net)
# http://www.catonmat.net -- good coders code, great reuse
#
# The new catonmat.net website.
#
# Code is licensed under GNU GPL license.
#
from sqlalchemy import or_
from werkzeug.exceptions import NotFound
from werkzeug ... |
a6cd0afeca8e3e01a93aecfc8763b3ecb9da87af | 169b5030807c38e6b55fd8fa767fa1836737e899 | /SelfExpection/OfficialException.py | 818ee0ff97f262390628f6271affd8b45db04b2c | [
"MIT"
] | permissive | Gaoyifei1011/AmapProgram | 88a5ff5b2d337c94b3db6dff7f51c74d2142bf21 | d45a27abf9f508d922f37abc34f00da6d0aab4a0 | refs/heads/main | 2023-04-30T13:53:28.303296 | 2021-05-20T02:31:08 | 2021-05-20T02:31:08 | 368,448,437 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,329 | py | OfficialException.py | class OfficialException(BaseException):
def __init__(self) -> None:
self.error_info = None
def get_error_info(self, error_info: dict) -> tuple[str, str, str]:
"""
函数:返回错误信息
Args:
error_info:获得的json格式数据文档
Returns:
errcode:info返回值
... |
36964b741d3c3ec139383abf4c56eb55d029fe6e | bc0b28416769d4ff75e3ed1d68422bfcf788708a | /ipyelk/diagram/__init__.py | ea3b0e3bd6c368975038cd73af618e6b1561c8db | [
"BSD-3-Clause"
] | permissive | nrbgt/ipyelk | fc0200942fc563bb108920d14f88fc43c39f9bcb | 58d06d0290f5b27e942af9e6036a56143604097b | refs/heads/master | 2023-02-21T08:15:34.839749 | 2020-07-30T14:32:18 | 2020-07-30T14:32:18 | 285,593,485 | 0 | 0 | BSD-3-Clause | 2020-08-06T14:32:26 | 2020-08-06T14:32:25 | null | UTF-8 | Python | false | false | 102 | py | __init__.py | from .elk_model import ElkExtendedEdge, ElkLabel, ElkNode, ElkPort
from .elk_widget import ElkDiagram
|
35d25fec687d1aba0c82334c52bfbe7bc55a142b | c45d90b4bfccdbb4d6cd16fba7db55b46b048ea6 | /whatsapp_mssg.py | 2dd0b7106ecb1e04e2dbbe0e02a2ab07271181e8 | [] | no_license | yuktagautam/automates_sites_project | 87d0bedc258f5a25e0099aa8b1fafc2de9b1a647 | 3cf5688b7b8c705988e273c02507aa36cfe6d9b6 | refs/heads/master | 2022-09-24T11:44:21.509340 | 2020-05-31T07:15:44 | 2020-05-31T07:15:44 | 268,220,926 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | whatsapp_mssg.py | #taking the input using keyborad and then it automates to your whatsapp site
#scan the qr code
#write the desired information asked by console application
#it will automatically type the mssg and send it to the entered user
from selenium import webdriver as wb
import speech_recognition as sr
def fun12():
r7=sr.Recog... |
ae1b1c8d902616b96f7cc1a5e5e657f943fbd77f | 342a44ae78b9678ca229c741a8b8a1f523d8bec9 | /crawsiz/utils/configuration.py | 7b5ef8e52569aea1747f2834c61e2116b56d548e | [] | no_license | palisadoes/crawsiz | df95022f32d691d56f9bbf5a3f0d6ecf4ac7649c | 608fc1822fb859e69bb2fcb5a1abad5a87dcd714 | refs/heads/master | 2021-01-17T16:48:52.502427 | 2016-12-30T06:26:14 | 2016-12-30T06:26:14 | 69,200,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,424 | py | configuration.py | #!/usr/bin/env python3
"""crawsiz classes that manage various configurations."""
import os.path
import os
# Import project libraries
from crawsiz.utils import general
from crawsiz.utils import log
class Config(object):
"""Class gathers all configuration information.
Args:
None
Returns:
... |
b08cfa11e80087abefa68d7d575e488cc9a74d1c | d21340eb29ac8dd89a306396f1d0ad478c298270 | /DDPG/buffer.py | 478b4a20fc13eb3a704c06a31444053fc857c3b4 | [] | no_license | jessyec-s/capstone | 6e8f2b74f2709a3ba86cce081bfcf7bb074d7808 | 66d86c13b4c7ff7ddae21ab62a49e8fa04376deb | refs/heads/master | 2023-05-31T04:29:45.758238 | 2021-06-28T14:17:43 | 2021-06-28T15:08:57 | 311,499,432 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | buffer.py | import gym
import numpy as np
class ReplayBuffer():
def __init__(self, max_size, input_shape,n_actions):
self.mem_size = max_size
self.mem_cntr = 0
# initialize memory
self.state_memory = np.zeros((self.mem_size,*input_shape))
self.new_state_memory = np.zeros((self.mem_size,*... |
55d3ac93c7492394cb0ae2ef9d8b679e0b33191c | 3a443294b67b9668468f591ff276474b61eb5f1d | /mathpython.py | 1b0d1afc0a308ab100dfd7be1699a103ef64fbc8 | [] | no_license | IYERADavid/math-trick | a38df19d4dfefbe9127d04285142da1852e71573 | 9173052afeb224909a8bea863536ef6f487e16d2 | refs/heads/master | 2022-10-29T02:35:14.839965 | 2020-06-15T08:46:50 | 2020-06-15T08:46:50 | 268,357,306 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,271 | py | mathpython.py | import random
import operator
import time
import pyttsx3
def random_problem():
operators ={
'+':operator.add,
'-':operator.sub,
'*':operator.mul,
'/':operator.truediv,
}
num_1= random.randint(7,15)
num_2= random.randint(7,15)
operation = random.choice(list(operator... |
077bae175d12a1f0b6e54e2d8976575a264aa90d | aef940595c1abf498640563fbef7a73af0b74b7b | /poll/migrations/0015_auto_20160829_2002.py | e5e98cb243ac37fb6049920c00aa8385a4d0d17f | [
"0BSD"
] | permissive | sirgippy/rcfbpoll | 75e3b59ff144b8eb3f18b1b7ece04fd8b99c15e4 | 417fe11ec478360deda728e7beb81ab766871bd4 | refs/heads/master | 2021-09-02T15:01:23.634315 | 2021-01-12T21:10:38 | 2021-01-12T21:10:38 | 63,549,750 | 21 | 10 | 0BSD | 2021-06-10T20:36:38 | 2016-07-17T19:53:18 | Python | UTF-8 | Python | false | false | 1,224 | py | 0015_auto_20160829_2002.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-08-29 20:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('poll', '0014_auto_20160806_1602'),
]
operations = [
migrations.CreateModel(
... |
5d6db452b24a60062d741926fca6eaddad673b17 | b5705f8ceabb93beb8e8c49c1fa049e917aa0296 | /multimorbidity_tendency/3.summary_multimorbid_tendency_NCD.py | e0495eefeb0b86b99f81dade44e6adfa54d7fc85 | [] | no_license | ZhaoXM-Lab/ukb-multimorbidity | eac2b65763b56c94684b831ec0961f36a9e0c33c | f4eafcb8f421b7601378dd521777f253f5b3aaf4 | refs/heads/master | 2023-06-02T07:45:37.825799 | 2021-06-19T13:42:03 | 2021-06-19T13:42:03 | 378,420,384 | 1 | 1 | null | 2021-06-19T13:36:17 | 2021-06-19T13:36:16 | null | UTF-8 | Python | false | false | 4,595 | py | 3.summary_multimorbid_tendency_NCD.py | import pandas as pd
from itertools import combinations
from statsmodels.stats import multitest
from itertools import product
import numpy as np
import rpy2.robjects as robjects
from matplotlib import pyplot as plt
disease_merged = dict()
df = pd.read_excel('../phenotype/disease_class_manual.xlsx')
list1 = df.values.t... |
992ad2c442b533d5f6e5359151d73e1d22d1ac3f | 024aca3598045fc822428b1a3f5507e581b7ff4b | /classes/compatibility.py | be60d7ac69ecef0a6b97d6b650da9cc78361de9d | [] | no_license | kbaskett248/Focus | b248b449aacee5cc20a8b5108acc70c4ade2d68d | cd02a3a50e2eb97dd8368b72ea5669784a81dddd | refs/heads/master | 2020-12-10T03:57:53.228041 | 2020-03-26T19:52:46 | 2020-03-26T19:52:46 | 233,495,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,346 | py | compatibility.py | import abc
import functools
import re
import logging
from ..tools.general import string_match, string_search
from ..tools.sublime import (
extract_focus_function,
extract_fs_function,
extract_rt_tool,
extract_operator,
extract_alias,
extract_include_file,
extract_external_pageset,
extra... |
5867ac8c35feb9011ff21cb87ed6ac6f2b2011fe | a648275034a57937a3024bf7c78204ac8b0c4350 | /nfcapp/migrations/0010_quote_list.py | 58ae541da91f1c156db46443854c40d0a5a60709 | [] | no_license | ArcMster/nfcproject | 926b218c27e11ccb8ac4c832824c7266b8b64e74 | 00d807861becdabee8117424f21356c7fd7b9281 | refs/heads/master | 2022-11-27T18:15:24.675647 | 2020-08-10T08:14:25 | 2020-08-10T08:14:25 | 286,262,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | 0010_quote_list.py | # Generated by Django 3.0.2 on 2020-08-09 19:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nfcapp', '0009_auto_20200809_2348'),
]
operations = [
migrations.CreateModel(
name='Quote_list',
fields=[
... |
b082e8a3feff6ff19a89318ebcbeaf0d8e3bac62 | 35492fc49f5850a1c8ecb8b8091f04bb80e528c9 | /examples/asset_revoke_example.py | 76764efd0f91b31d8f035d6ec24f7ef86fe5f03c | [
"MIT"
] | permissive | peterkrull/py-algorand-sdk | 20dc9467404a55661dd85299a24ff383b2a7c722 | 7b62babba46c1780ffb211025516f5fdb28c7a83 | refs/heads/master | 2023-08-22T10:24:39.905859 | 2021-10-04T23:12:47 | 2021-10-04T23:12:47 | 419,483,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | asset_revoke_example.py | # Example: revoking assets
from algosdk import account
from algosdk.future import transaction
# this transaction must be sent by the asset's clawback manager
clawback_private_key, clawback_address = account.generate_account()
fee_per_byte = 10
first_valid_round = 1000
last_valid_round = 2000
genesis_hash = "SGO1GKSz... |
781b21cff204c2930bee1a674252b66a633b7a27 | 896b5ead671e8858557de9c142cdd360af0ab7d2 | /week2/list/5.py | c34bdbc9442d5811984ef83c271efe5f10307c38 | [] | no_license | Beisenbek/pp2-lecture-samples-2020 | cbc46fb788811149688f926a2ac8873ec01fe524 | ad20d6ffb786e0866ccb993233be31c4ce6aa2be | refs/heads/master | 2020-12-26T17:55:11.658021 | 2020-04-18T08:04:37 | 2020-04-18T08:04:37 | 237,586,039 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | 5.py | thislist = ["apple", "banana", "cherry"]
for x in thislist:
print(x, end = ' ') |
bc2bf72604a2692110c56d15cceb3e21480f041e | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/sort-colors.py | 69e2ec6ea76005c0b70fbdfda08e261b6d923bce | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | sort-colors.py | class Solution:
"""
@param nums: A list of integer which is 0, 1 or 2
@return: nothing
"""
# use counting sort
def sortColors(self, nums):
if not nums:
return
# write your code here
counter = dict.fromkeys(nums, 0)
for num in nums:
counter[... |
905a6250b79cf983d20238b074e5c74a7139ce47 | 86f5246c076a41e3c466c392bd92e981f7cd0af7 | /mapper_bonus.py | e59d667dc77300080f0e9f6be6f5c2a0f1cb086c | [] | no_license | myr-account/python-map-reduce | 00f8dcce09e0eee59b542f94ec5a6a554db9ed09 | f67a7ec4fcafa45f2a84f2861f9a43d277d620c1 | refs/heads/master | 2022-12-28T16:51:45.488993 | 2020-10-08T17:15:01 | 2020-10-08T17:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | mapper_bonus.py | # Case 2 - Mapper using standard input and output
# Easy to test locally with Bash
import sys
# iterate through each line provided via standard input
for line in sys.stdin:
datalist = line.strip().split("\t")
if (len(datalist) == 2) :
department, amount = datalist
# print intermediate key-value pair... |
553b06ce9f08c0e499dfbfcbd7b1772127da7d19 | a5160c63771875a099bd7c992104b9c43c836ec4 | /otk/views/order_config_update_view.py | 679da1cbe7bbdc7423b51b3f7174bc4100badec4 | [] | no_license | TimurKarev/ETIGroup | 0bde0724c93115f85bc56c82643535ef95c6f82f | 7df753ffec852b6ac38715ee5e4acc064cac96eb | refs/heads/main | 2023-03-04T06:30:14.071823 | 2021-01-15T07:38:06 | 2021-01-15T07:38:06 | 307,364,260 | 0 | 0 | null | 2021-01-15T07:38:07 | 2020-10-26T12:25:55 | Python | UTF-8 | Python | false | false | 1,505 | py | order_config_update_view.py | from otk.services.order_services import get_config_section_from_order_id
from otk.services.services import get_section_context, update_point_values_by_point_list
from otk.views.mixins.user_access_mixin import UserAccessMixin
from django.http import JsonResponse
from otk.models.otk_order import OTKOrder
from django.v... |
9bdfc43afaf9a6d68a85f39d41f1e05ce4830f56 | 16d5720b7054ece63bc44accc74d9e00d050b927 | /texasholdem_Shirai.py | 203199bc6abb7fcbbce1d67dcbe597c650be5d53 | [] | no_license | progSeminarG/texasholdem | c3a8e55531311decfed415d63ddc2e1ca1fa52ee | ae3d4051c057b067246c325cfa5ad60b4d725583 | refs/heads/master | 2020-03-27T04:28:20.393209 | 2019-04-07T02:46:59 | 2019-04-07T02:46:59 | 145,942,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | texasholdem_Shirai.py | #! /usr/bin/env python3
import random
import numpy as np
import os
from texasholdem_Dealer import Porker_Hand
class Player(object):
def get_know_dealer(self,dealer_input):
self.dealer = dealer_input
def get_hand(self,list_of_cards):
self.cards = list_of_cards
def open_cards(self):
... |
21d4257ffc45256b298c713823c3d2b97b106d5e | 76ccd7670fea951432794937fd35b382f752b153 | /debug/tester_buffer.py | 78e4b208a98e25be16f600acd8f0ae90933cd087 | [] | no_license | kNalj/Graphsaros | 4eea4971043110e8e5f3b871f0db40e34c958927 | f7100816c3696e481e49b9b5627044574f5b0302 | refs/heads/master | 2021-12-30T22:40:15.990140 | 2021-12-15T14:23:24 | 2021-12-15T14:23:24 | 137,490,271 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | tester_buffer.py | import numpy as np
from debug.tester import Tester
from debug.errors import ErrorHandler
from debug.unit_tests.control_data import lb11_control, lb12_control, lb21_control, lb22_control, qc11_control, \
qc12_control, qc21_control, qc22_control
class BufferTester(Tester):
def __init__(self, buffer_type, unit_t... |
bb6bb822a29faf332a12fcd06437fead0866d869 | 0f7215bad7018dce2c0136fe2bffbd52e9882cf5 | /logarithme/logarithme_3.py | 9f662e41a6afb357c081a1b949c37bb99cba16c2 | [] | no_license | Byliguel/python2-exo7 | 9f680729f09a058c279d57687d95c86514d89965 | 3e68a344446ddd3cf819c34e61a016ef55e9692a | refs/heads/master | 2020-09-22T10:18:15.249782 | 2019-12-01T11:55:53 | 2019-12-01T11:55:53 | 225,153,409 | 1 | 0 | null | 2019-12-01T11:54:47 | 2019-12-01T11:54:46 | null | UTF-8 | Python | false | false | 1,079 | py | logarithme_3.py |
##############################
# Logarithme
##############################
from math import *
##############################
# Activité 3 - Le logarithme décimal - Échelle logarithmique
##############################
import matplotlib.pyplot as plt
def afficher_points_xy(points):
for (x,y) in points:
... |
86c9aec92ea22ae9447c2e31a1972c849c62efe5 | 86e67ed2452640c5010a2ff53b65e7c8f52e78c6 | /tests/test_basequeue.py | cd4c2512969385fa6cbb2c37d266caa289e9bcc2 | [
"MIT",
"BSD-3-Clause"
] | permissive | zhouhesheng/stock-trade-server | da00d5bfa70b93a3c05320caabfe73766e6d9b3a | ff70ad493d56123b0996b574c20a11940ce201ed | refs/heads/master | 2020-03-26T23:10:31.719483 | 2018-08-22T01:49:49 | 2018-08-22T01:49:49 | 145,517,669 | 0 | 0 | BSD-3-Clause | 2018-08-21T06:31:02 | 2018-08-21T06:31:01 | null | UTF-8 | Python | false | false | 1,713 | py | test_basequeue.py | # -*- coding: utf-8 -*-
import unittest
from datetime import datetime
from app.models.utils import BaseQueue
from app.models.order import Order
class TestBaseQueue(unittest.TestCase):
def setUp(self):
self.bq = BaseQueue()
self.buy1 = Order('1', datetime.now(), 'aa', 'buy', 100, 100)
sel... |
92cebe5e9b09956cee06d1265930b3e6a9f86d43 | be2994745d32617f2751b304f208dcbc1513ff9d | /eval.py | f32071d4982f42eeb09ade2904b5a276860a1809 | [] | no_license | joel-huang/pascal-voc-2012 | 31a595d5da558c7ac1f0f1c18c901dbba9a03256 | 2274ac7ff91bf47d1501c726beee6d88b529510f | refs/heads/master | 2020-04-26T16:11:30.099223 | 2019-03-24T15:36:33 | 2019-03-24T15:36:33 | 173,670,446 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | eval.py | import pickle
import numpy as np
from sklearn.metrics import average_precision_score
def get_AP(pred, target):
return average_precision_score(target.cpu(), pred.cpu())
def get_AP_from_pkl(name):
with open(name, 'rb') as f:
x = pickle.load(f)
f.close()
pred, target = x[0], x[1]
return get_A... |
2d77dde56d140e78c102c3fe2b71ecebbe217e60 | 7f11570b7859f53a29d1d66f1753f3a15b704a87 | /places_filter.py | d5d5f108cec27bd7c1078653630ec6d1ec7412dd | [] | no_license | LinkingWord/main-project | 654401962742a77c856cd99774af2c568008b8f2 | e2739c61ba4bdb8087933a6127f48364ba7491b7 | refs/heads/master | 2020-03-20T20:04:57.313450 | 2018-09-07T08:46:03 | 2018-09-07T08:46:03 | 137,669,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | places_filter.py | import json
with open('places.json', 'r') as file_reader:
all_places = json.load(file_reader)
bars = []
for place in all_places:
place_type = place['Cells']['TypeObject']
if place_type == 'бар':
bars.append(place)
with open('bars.json', 'w') as file_writer_bars:
json.dump(bars, file_writer_b... |
8e25dc391027bae70045a35c084601c11b13b75c | 19d1c4b733c0bc92d3836350e1f1b2704817ddcf | /Level 1/数据去重.py | cd7770cef26d1ccd3ec1077b1145e3a91f528f38 | [] | no_license | fulongyang/Leetcode_python | db2445909670f46470aab2636e4e6e33dcee2fc6 | fdcc9cdcbd27969412ade8616acf09bf209554a3 | refs/heads/master | 2020-05-19T12:55:28.256182 | 2019-09-15T16:18:46 | 2019-09-15T16:18:46 | 185,026,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | 数据去重.py |
# _*_ encoding:utf-8 _*_
"""
# -*- coding: utf-8 -*-
# @Time : 2019/9/5 10:35
# @Author : yangfulong
# @FileName: 数据去重.py.py
# @Software: PyCharm
# @Blog :https://www.yangfulong.top/
---------------------
版权声明:
原文链接:
"""
def ListSet01():
l1 = ['b', 'c', 'd', 'b', 'c', 'a', 'a']
l2_ = list({}.fromke... |
7badc4d3126ed7f9756d489fa48ca0de4ac09169 | f9fa183f1c31942b6bb9037a151aa9cace79d29b | /freemix/exhibit/share/forms.py | d87dec7181e8f6370d75a1223c0e21de90bd80c4 | [
"Apache-2.0"
] | permissive | zepheira/freemix | dece3bd839145bf5278e1dcc032e0c3ae338af48 | fd97d58ca566fbdb0267e729ddabe96149ec7064 | refs/heads/master | 2021-01-23T07:02:42.765767 | 2012-01-18T17:35:33 | 2012-01-18T17:35:33 | 1,737,265 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | forms.py | from django import forms
from freemix.exhibit.share import models
class CreateSharedExhibitKeyForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.exhibit = kwargs.pop('exhibit')
super(CreateSharedExhibitKeyForm, self).__init__(*args, **kwargs)
def save(self, commit=True):
... |
eeb3b41b7937fab19bdac4c3b7ea76d331e864fa | 5a869e16464d057c4c43c0ccf7b4da0e1b0ae75a | /datascripts/part.py | ef2cda0f62ba0c8c358be5dd2ab106ee9ab968cb | [] | no_license | Cognitive-Computing-IBM-Watson-Fall2016/YelpRecommendation | e1b8b1c6e954e8ec260a6ffadf7492be6b1d1ed3 | b2d5630a9a423c4129e8b8bb01f95f2bc03e2404 | refs/heads/master | 2021-06-13T15:41:48.664332 | 2016-12-19T17:29:24 | 2016-12-19T17:34:52 | 75,949,329 | 0 | 0 | null | 2021-06-01T21:44:14 | 2016-12-08T15:21:19 | HTML | UTF-8 | Python | false | false | 700 | py | part.py | import json
rfile=open('aggregate_reviews.json')
wfile1=open('part1.json','w')
wfile2=open('part2.json','w')
wfile3=open('part3.json','w')
wfile4=open('part4.json','w')
wfile5=open('part5.json','w')
c=1
for r in rfile:
js=json.loads(r)
if c<=100:
wfile1.write(json.dumps(js)+'\n')
elif c>100 and c<=2... |
a27c52229b429582b329174b3b5c5405d5aca29e | 315d57b7b7f59b8ee3b9eff699822c9ca9bdd248 | /pytex/src/pytex/textypes/containers.py | 37c76956e3d330adbf2291072c36fb43ce1d4320 | [] | no_license | fabiommendes/pytex | f92faf3788a7a0279f0146e7f28be28ca8cb8658 | e4db7ddbd38b6737493cc1701957f751e95c68c1 | refs/heads/master | 2021-01-10T20:40:08.758430 | 2014-12-18T01:13:03 | 2014-12-18T01:13:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,778 | py | containers.py | if __name__ == '__main__':
import pytex; __package__ = 'pytex.textypes' # @UnusedImport @ReservedAssignment
from . import TeXContainer
from ..context import Context
__all__ = ['TeXStream', 'TeXDocument', 'TeXPreamble', 'TeXBody']
#===============================================================================
#... |
69c1d71e61be734cee1c7faab0535f657f352043 | d10fe231038cb399e7f9dd9748fa65e9e8e91ff9 | /Algorithms/Implementation/Electronics_Shop/main.py | e719a760ac6999941386e7b225d56d0268c3c81a | [
"MIT"
] | permissive | ugurcan-sonmez-95/HackerRank | 93fe54a8a93231365239b5ad4d5626c89101ca5c | 187d83422128228c241f279096386df5493d539d | refs/heads/master | 2022-12-25T07:43:14.919067 | 2020-09-28T14:31:22 | 2020-09-28T14:31:22 | 260,935,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | main.py | ### Electronics Shop - Solution
def getMoneySpent(keyboards, drives, b):
maximum = -1
for i in range(len(keyboards)):
for j in range(len(drives)):
total = keyboards[i] + drives[j]
if (total <= b) and (total > maximum):
maximum = total
print(maximum)
b, n, m ... |
52b5b43ee8383969daddb582908d6383425c41aa | 227428d320139d0d3ff9e0fc7d52b2850096d955 | /duendecat/gui/mainWindow.py | a7d570252036816b3761f461f453b77f2986e7eb | [
"MIT"
] | permissive | patarapolw/duendecat | affc8ad1a8e180d9924e29e6ca5338462a8256c3 | 8ad04b4346419d9bfe3cfd6fdad49ca50030d56b | refs/heads/master | 2021-09-08T05:30:05.159274 | 2018-03-07T16:14:48 | 2018-03-07T16:14:48 | 115,189,198 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,402 | py | mainWindow.py | from duendecat.reader.sqlite import Data
from duendecat.reader.xlsx import Data as Xlsx
from duendecat.gui import preferences, log
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
import sys
from random import randint
import logging
from time import time
def load(**param):
logg... |
31f03d439712a846cefd1ac64639fa6c37ecef04 | 86cd9ff1eafe36dfc95109326328952ee9cdffe2 | /25.py | 8be9405c2e7d4ad1574a2351d87006e2d6a5a10a | [] | no_license | mbadheka/python_practice_code | 16e402aac42cc23e878d4f7752692437ddc7557e | c322888559446e176146b0fa72b38755884e7197 | refs/heads/main | 2023-06-29T02:19:44.358723 | 2021-08-06T00:00:36 | 2021-08-06T00:00:36 | 393,198,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | 25.py | #list extera methods
# count
# sort methods
# sort funcation
# reverse
# clear
# copy
list_1 = ['mango','apple','bananna','grape','pear','kiwi','apple']
print(list_1.count('apple'))
#sort Methods
# list_1.sort()
# print(list_1)
num = [1,2,34,65,12,78,3,5,67]
#sort Meth... |
6137c990285e636fdf82e210f75dee172cfa4c61 | 618eb6d8c9aca9a179ef252d1e4cb9ab13449e13 | /String/Pattern Matcher.py | db791da8160afb25e4caeaa9c09768f531257c23 | [] | no_license | kotsky/programming-exercises | 8966660986d8baf0467f1efc88b606b7d61a31f7 | 636b1f6b0ab28c6eef8f8900e68393f7b1fb931a | refs/heads/master | 2023-04-16T22:40:21.461494 | 2021-05-02T03:48:56 | 2021-05-02T03:48:56 | 268,241,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | Pattern Matcher.py | '''
(patternMatcher("xxyxxy", "gogopowerrangergogopowerranger")) => ["go", "powerranger"]
TO define patterns as x = "go" and y = "powerrangers" in the given string.
Count of x and y. Then calculate len of possible substrings. And check every time for new substring of x.
'''
def patternMatcher(pattern, string):
i... |
76f61cf44c40db457558c0247db35a891b0a3880 | b6d9057a1be67891345d159e315ee618f20d0026 | /cjktools/tests/test_scripts.py | 6b698c318aa705d1017c524f25bceb19262f49cd | [] | no_license | jonnyk20/cjktools | cdee2b83ef3754d39e089f1bb3083ed791cef3b8 | 853dec98177b5552eab4ea18ca2ce481aff28d2d | refs/heads/master | 2021-12-12T07:41:54.066096 | 2016-12-23T11:09:49 | 2016-12-23T11:09:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,890 | py | test_scripts.py | # -*- coding: utf-8 -*-
#
# test_scripts.py
# cjktools
#
from __future__ import unicode_literals
import unittest
from cjktools import scripts
from cjktools.scripts import Script
def suite():
test_suite = unittest.TestSuite((
unittest.makeSuite(ScriptsTestCase),
))
return test_suite
class Sc... |
c66f4ee5719f764c8c713c23815302c00b6fb9af | bab58e34ff1c6e7e04b1a40e7591cc2f07845a5a | /application.py | 016dc73d8e5f8c87eaf5048d2e54dffe21462143 | [] | no_license | patrickcchenn/Finance | cd02abf9428b6ea56dafd2be71bbfa72e68504d4 | 789e925f5de4a318dd69516823340355a1c86dd9 | refs/heads/main | 2023-06-29T05:39:31.500284 | 2021-04-27T18:51:47 | 2021-04-27T18:51:47 | 393,378,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,949 | py | application.py | import os
from cs50 import SQL
from flask import Flask, flash, redirect, render_template, request, session
from flask_session import Session
from tempfile import mkdtemp
from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError
from werkzeug.security import check_password_hash, generate_pa... |
097a87f7f1346e5db1599e59680232912348aef7 | 5615f555acea4dba64f7d1b68c0d499982dfd05c | /hr_FDFP/models/hrSalaryRule.py | e944e28420ccf89d4e0ab6ca0c2158536ca3ffb4 | [] | no_license | soulbadguy00/modules | 9020dd352f32e1756bf447060d55989bd2842e7c | 79a9b13da9cf0eeb210acbed7c948bdc82962bcf | refs/heads/master | 2023-06-28T20:40:33.352485 | 2021-07-27T20:48:46 | 2021-07-27T20:48:46 | 390,121,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | hrSalaryRule.py | # -*- coding:utf-8 -*-
from odoo import api, models, fields, _
class hrsalaryRule(models.Model):
_inherit = "hr.salary.rule"
is_tax_fdfp = fields.Boolean("Est un impôt FDFP") |
a126b1775ffe1ba1aebc288ce17fac8ada0b0756 | 1f08443814d1feefcb14a3ce3f4efaf444b4a44e | /JA_pureColors_Auto.py | a50c21616ae65884cc986576744d70033007b86b | [] | no_license | rickylin114/JA-material | e7d2f9150159125de8224cc00762bc9c5862b255 | 5f0f401e27517c2e0686881146eb2aa687cfdd2f | refs/heads/master | 2023-01-07T10:14:50.489858 | 2020-11-08T10:57:38 | 2020-11-08T10:57:38 | 282,773,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,924 | py | JA_pureColors_Auto.py | import cv2
import numpy as np
import pandas as pd
import tkinter as tk
import random
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
from tkinter import Scale,Tk
from tkinter.ttk import Notebook
refPt = []
PtBGR=[]
r=[]
g=[]
b=[]
refPt = []
Serial=[]
PtBGR=[]
r1=[]
r2=[]
r3=[]
r4=[]
rate=[... |
dca36de5556b120b8b93eac0ad7b971ad735d907 | 494eab057143f5bf688ecdf6bf9d837e03c2b506 | /07-Newton/utils.py | fce7d5d374b6224b63252f32d54c8ff0d6a5b1dc | [
"MIT"
] | permissive | amkatrutsa/cet_opt_met | 306733a06fb6e2c2b5c528ed3c290ecaa66bf1a6 | be24ec95c4f4fff4c7e78bb42e9243206b064270 | refs/heads/master | 2021-05-01T18:09:09.273953 | 2021-04-28T10:35:47 | 2021-04-28T10:35:47 | 121,003,005 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | utils.py | import numpy as np
def GradientDescent(f, gradf, x0, epsilon, num_iter, line_search,
disp=False, callback=None, **kwargs):
x = x0.copy()
iteration = 0
opt_arg = {"f": f, "grad_f": gradf}
for key in kwargs:
opt_arg[key] = kwargs[key]
while True:
gradient = -gradf(x)
alpha = line_search(x... |
4711adcc7c95993ec13b9d06fa674aa064f79bfd | 3e5fd9942617bc6cd9bbfa2c047b3666a3fe7581 | /src/networks.py | c1f7f64126105ae6d4b76ffd92a8a65f852316aa | [
"MIT"
] | permissive | harshchobisa/dailyBruin | 871505bc60480e0273c8f05bd0b4d4b2ffd78bd4 | 52180ca56f80ac5aa09b09fa75351171cc9cdd1e | refs/heads/main | 2023-07-07T17:53:23.583439 | 2021-08-24T17:01:02 | 2021-08-24T17:01:02 | 399,336,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,871 | py | networks.py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Net(torch.nn.Module):
def __init__(self, layer_sizes=[256, 128, 2], dropout_prob=None, device=None):
super(Net, self).__init__()
self.device = device
if dropout_prob is not None and dropout_prob > 0.5:
pr... |
3479276d4769518aa60dcd4e1bb41a8a1a7d6517 | 0b0cee7ffa1c85f0ab8899016d5dbb736835d504 | /hecktor-master/src/resampling/cli_resampling.py | 84c87d2927145af8f3c423caa2ac2378b14bd0b3 | [
"MIT"
] | permissive | Aaron1993/HNSCC-ct-pet-GTV | b7374b7bab60497be17790d53fada2397fa27a2e | 416c0a3bef45f290060270ecf4726bf6bb47bcc0 | refs/heads/master | 2022-12-11T02:33:24.891276 | 2020-09-10T14:45:23 | 2020-09-10T14:45:23 | 294,610,549 | 1 | 0 | null | 2020-09-11T06:15:39 | 2020-09-11T06:15:38 | null | UTF-8 | Python | false | false | 2,727 | py | cli_resampling.py | import os
from multiprocessing import Pool
import glob
import click
import logging
import pandas as pd
from src.resampling.resampling import Resampler
# Default paths
path_in = 'data/hecktor_nii/'
path_out = 'data/resampled/'
path_bb = 'data/bbox.csv'
@click.command()
@click.argument('input_folder', type=click.Pat... |
d5beff74e3746c77cbaf6b8233b822ed1a86701e | 75f6bbcdf10dec884202b3136feb0317842df55f | /apps/task/migrations/0023_auto_20210123_0411.py | 236b110397719ae36c172684f900dac9d8607d3d | [] | no_license | qt-pay/python-devops | bafa305fbcd7bef4498857ab75be7447bc1e0a42 | 60e9481ab84628cf817fde1c52f4a15d5085e503 | refs/heads/main | 2023-03-15T12:39:45.813287 | 2021-01-24T18:40:38 | 2021-01-24T18:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | 0023_auto_20210123_0411.py | # Generated by Django 2.2.2 on 2021-01-23 04:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('task', '0022_taskrecycle_create_date'),
]
operations = [
migrations.RemoveField(
model_name='ansibleextravars',
name='playbo... |
77763f501c6776969d2594f987e5d7ab7d4377fb | e663f0724b009357eda59ad5ce14c0cf4d14f476 | /ai_talkbot_version01/application/gui_talkbot_thread.py | 50e0e66580c2d3c33d2d9ee66e5cc1870257578a | [
"MIT"
] | permissive | WhiteSlope1000/white-slope-portfolio | 30f38c88e456c7f246ab9ff80c2551c66e338bfe | 6609c4a80763c9bd652355df5bd99c347d4d407d | refs/heads/main | 2023-07-02T07:02:19.265410 | 2021-08-05T15:05:54 | 2021-08-05T15:05:54 | 386,552,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | gui_talkbot_thread.py | import time
from PyQt5.QtCore import (
QThread,
)
from common import attach_common
from database_downloader import DatabaseDownload
from ai_list_memorize import MemorizeList
from ai_list_morpheme import MorphemeList
from ai_list_ngram import NgramList
from ai_list_none import NoneList
from ai_bot_memorize import Me... |
d6a760774b45454c959c2932d7b28deee7f81872 | 067fc8e0d93c8e5953a213be0048380f973d3234 | /src/google-classroom-extractor/edfi_google_classroom_extractor/mapping/user_submission_activities.py | c4b2a1415acd041c9d2ff450bc8c237cae708ae2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | markramonDL/LMS-Toolkit | 0fff343afc8b5775765ccbbf8529a4e8acab5b11 | d7097f9e063f39a45c8a08ec7316d2a1c4034e50 | refs/heads/main | 2023-06-19T08:36:54.384666 | 2021-07-14T21:52:09 | 2021-07-14T21:52:09 | 386,748,130 | 0 | 0 | Apache-2.0 | 2021-07-16T19:49:16 | 2021-07-16T19:49:15 | null | UTF-8 | Python | false | false | 6,174 | py | user_submission_activities.py | # SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
import json
from typing import Dict
from pandas import... |
bd3b1263d7d657fe2edd3c7198f63821a3d1d1e5 | 15290a3e8c14b00523f8eee35fb96d297ffa9b67 | /vulnscanner/waiters/random_ipv4.py | c7b291de0613c42fde8a2992ab79d3c632f09d6f | [] | no_license | izibitzi/vulnscanner | cb29168e0c1d1fafb2d6cfd7bf2c7a41198cafbe | e3697621d38b62e678af390d28a8b8d4e3350e79 | refs/heads/master | 2020-12-08T04:08:54.573677 | 2018-02-10T23:12:44 | 2018-02-10T23:12:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | random_ipv4.py | import random
from . import WaiterInterface
class RandomIPv4Waiter(WaiterInterface):
"""
HostPortWaiter which generates random ipv4 adresses
"""
def __init__(self, options):
self.ports = options['ports']
self.limit_generate = options.get('limit_generate', -1)
def generator(self):
... |
12b8512962a4b653b8b1d5899515d5aa7bd971a9 | 46585ca1c29beac479054610f4fc077032442f1c | /parser.py | 4f3f042fd35ea91062030628e45e145513c352a6 | [] | no_license | mnislam01/basic-interpreter | 72194db04abe851c806e869fa323e0662616eccb | fb8f1a182610d2ce059efa43e707047c2edd5772 | refs/heads/main | 2023-04-21T05:04:16.569197 | 2021-05-07T12:20:32 | 2021-05-07T12:22:57 | 353,089,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,344 | py | parser.py | ##################
# PARSER
##################
"""
The idea of the parser is to build a syntax tree of the program
from the tokens created by the lexer
Example 01:
We have this expression below
>> 1 + 2 * 3
This expression is tokenized by the lexer as following
>> [TT_INT: 1, PLUS, TT_INT: 2, MUL, TT_... |
98ed4af55d427220dc97ee266d885e09f5e25a9b | bf37b8a8fa952e509a0ffca1195dda4f5ac4687d | /blast.py | ebaa0ee78eb4282cbc4f5362b724db37f1e10600 | [] | no_license | aditipate/CompBioMiniProject | 453357925d4af06747410550919a2533baf4b80f | acebac79a0fc99a0245b1944bab5073ae7472008 | refs/heads/main | 2023-03-19T18:05:23.193951 | 2021-03-06T10:25:45 | 2021-03-06T10:25:45 | 342,971,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | blast.py | #8b.Use the longest contig as blast+ input to query the nr nucleotide database limited to members of the Betaherpesvirinae subfamily.
#You will need to make a local database of just sequences from the Betaherpesvirinae subfamily.
#Identify the top 10 hits
import os
import csv
#function to parse blast output
def parse... |
6c5ed98e246cf5785a465fa30f80dc6e54c037a7 | c2257d6195a730d1765f509ab3f730a905674f35 | /day00/ex04/operations.py | 14b4b209415bf722cd75f1a34975c9923465b60f | [] | no_license | 42lan/bootcamp_python | 0e31aec4e56e9534d5c0e985a82164d104a4a3d9 | 97888427424aa73a36fb473d2c5bf497b6faa054 | refs/heads/master | 2023-06-17T01:43:50.012590 | 2020-06-23T10:06:31 | 2020-06-23T10:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | operations.py | import sys
def usage():
print("Usage: python operations.py")
print("Example:")
print("\tpython operations.py 10 3")
def error_input():
print("InputError: only numbers\n")
usage()
def error_many_argv():
print("InputError: too many arguments\n")
usage()
def elementary_math(a, b):
p... |
bac643a042b8c6a7b5edb180b859baabee831221 | 921f77ac6b1769f118576d19a134a5016ff84968 | /4-2_mathematical-operations/main.py | e3753bfc5e1d3d7dbb20f2cb785c93b4cf0156bf | [] | no_license | timdeklijn/tf_tutorial | 27039b152a3846b78fb5f3ed30e7d5d9c09e5fa2 | cac80383453725bc257d22b1013d2388157064d5 | refs/heads/main | 2023-01-08T20:05:58.764800 | 2020-11-09T06:53:35 | 2020-11-09T06:53:35 | 301,396,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | main.py | import tensorflow as tf
import numpy as np
def scalar_operations():
a = tf.constant([[1.0, 2], [-3, 4.0]])
b = tf.constant([[4.0, 6], [7.0, 8.0]])
# Operator overloading
tf.print(a + b)
tf.print(a - b)
tf.print(a * b)
tf.print(a / b)
tf.print(a ** (0.5))
tf.print(a % 3)
tf.prin... |
fc243b2864e18bf74f8a90c93bfa4879f9b97b0a | 0b3344d9f509fd3e63ec4632a381972c95e429f4 | /Face Reconstruction/Self-Supervised Monocular 3D Face Reconstruction by Occlusion-Aware Multi-view Geometry Consistency/src_common/geometry/camera_distribute/camera_utils.py | cbfc59409a0d9d408ed2e587c4c5b48c17ee95a8 | [
"MIT"
] | permissive | KKhushhalR2405/Face-X | 4704a1f2144c3f71158f885a4e338a572a49e5ac | 4ffb82d4833b230141c1f8dd5829f9ae6cdb3045 | refs/heads/master | 2023-04-04T15:32:46.909615 | 2021-04-14T13:59:29 | 2021-04-14T13:59:29 | 355,666,537 | 3 | 0 | MIT | 2021-04-07T19:55:13 | 2021-04-07T19:55:12 | null | UTF-8 | Python | false | false | 5,803 | py | camera_utils.py |
# system
from __future__ import print_function
# python lib
import math
from copy import deepcopy
# tf_render
import tensorflow as tf
# self
# tianwei
from src_common.geometry.geo_utils import get_ext_inv, get_relative_pose, projective_inverse_warp, pose_vec2rt, pose_vec2mat, mat2pose_vec, \
fundamental_matri... |
4d26bda2366f5bc9372c8f8060b1694b94d3c745 | c79d97fbb84a3966b6be44f5e3959bd386420f87 | /practice_makes_perfect/text_file_test.py | 7a7a073da7055be99b9c72910620ac9a4789463c | [] | no_license | KristoferGauti/Forritun-1-HR | ad3ee00ad2bbeaa895ee390422cb6d43ea307962 | a4a78ad2396267d7835fe1b0c1f04f7351e0bea9 | refs/heads/master | 2020-07-20T05:26:34.352981 | 2019-11-25T11:42:52 | 2019-11-25T11:42:52 | 206,580,710 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | text_file_test.py | def example_1():
data_file = open("input.txt","r")
for line in data_file:
print(line,end="") #have the end empty so it does not print in double space format
print()
a_str = "this., "
b_str = a_str.strip("., ") #The strip method removes the characters that are passed in its arguments
print(b_s... |
67691f0b1fd7fd7f57c1c4f50a81cdb04912852e | b2b93da97cc79f211590bba01cd97b5d216fe12c | /orders/utils.py | 704427916bf50031963d4a81224cdb5df8e8e5ed | [] | no_license | MariKiev/gruzimo | a8476c04f992f6dd6938caf4f9e55caec63c1cc3 | cb7c2356abfad73397d2d85708deac2bc9be3c8d | refs/heads/master | 2020-05-25T07:13:38.885353 | 2017-03-14T07:47:28 | 2017-03-14T07:47:28 | 84,920,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,168 | py | utils.py | import logging
from decimal import Decimal
import googlemaps
from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template import loader
logger = logging.getLogger(__name__)
class CalculateCostError(Exception):
def __init__(self, message):
self.message = mess... |
66a7de2b6646ea82236ed695e13f69ca70ae455e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch83_2020_04_22_19_23_32_014892.py | 48ca645cead09055426fd11b7729efabd7503a91 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | ch83_2020_04_22_19_23_32_014892.py | def medias_por_inicial(dicionotas):
new = dict()
i = 0
for nome,nota in dicionotas.items():
if nome[0] in new:
new[nome[0]] += 1
else:
new[nome[0]] = 1
return new
|
a14dce898e73efeccc7f1665f7cbf940f2cdfb99 | 15c1f0560c3f910fb7c332b2cd0cd9ccdcb230f5 | /project/main.py | f7920e90658436439e79aeab4d9ca15f13b23554 | [] | no_license | IzayoiNamida/JHU2020_WebSecurity | 3356ef578dab48981ca601c8c302947047d721d1 | 7ce466eace4f9725124e4db43c56790b3f73fea3 | refs/heads/master | 2023-01-29T15:57:48.556969 | 2020-12-14T03:46:18 | 2020-12-14T03:46:18 | 320,150,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | main.py | # main.py
import datetime
import os
from flask import Blueprint, render_template, request, redirect, abort, url_for, current_app, flash
from flask_login import login_required, current_user
from werkzeug.utils import secure_filename
from .models import Grade
from . import db, genSecretToken
main = Blueprin... |
a546eada766052c8a030c3402b1a75fd9533eeec | 36bbbdcfc394f3d3fb67f623f64b1f3e0410c99d | /usage_examples/BTC/receive.py | 1d9a73647259d8cf0f9d095f96f26091276c85c2 | [
"MIT"
] | permissive | charuga/LoraCaster | f9952e6a7a3f0d4beca35d4ee8d52c37a200a6ad | 021eafbbcf8034a03a0b6a54da9db4ed7253be9e | refs/heads/master | 2020-06-29T09:19:52.786173 | 2018-12-16T17:06:02 | 2018-12-16T17:06:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,309 | py | receive.py | import configparser
from bitcoin_rpc_class import RPCHost
import sys
import configparser
import time
import ttn
import base64
import threading
configFile="caster.conf"
config = configparser.RawConfigParser()
config.read(configFile)
app_id = config.get('TTN', 'app_id')
access_key = config.get('TTN', 'access_key')
rpcH... |
fc3f764f33ceb10ac3c380e4a44a02a1c87e1cca | c236d19888eb04d2b7312ee85a91591300d68d5d | /main.py | 3e4f8c608b0a0fd2a6e3c2ef4ddd7026326577ec | [] | no_license | lbarria77/fluttercuba-bot | 378d1503ff76c9d29c93f63490c61dcf880df872 | 55af69262283a3539c4bbd7811e55a4e61152a15 | refs/heads/main | 2023-05-02T16:25:55.139391 | 2021-05-10T21:50:08 | 2021-05-10T21:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | main.py | from discord import Webhook, RequestsWebhookAdapter
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from telegram import MessageEntity
import os
import re
from dotenv import load_dotenv
load_dotenv()
from code_carbon import code_command
REGEX_URL = '(https?://\S+)'
def start(update, contex... |
4502c452da0549d48ef1c9e01b1d7a1122c525b0 | 7276205b5aa872d35b20457e186f0a8b02648b56 | /Compression/mobileNet/main.py | 705b56db653bf2c06e1dec61b74d917b5a43a93f | [] | no_license | adarsh-kr/NNCompression | f527ac677c138f43cdaf3a2b3496dd502552ee1a | 9daa1d2ea6661dd492f9560a0e0fd7107bb46f38 | refs/heads/master | 2020-04-12T13:16:10.801756 | 2019-05-21T05:44:10 | 2019-05-21T05:44:10 | 162,517,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | main.py | from MobileNetV2 import MobileNetV2
import argparse
import os
import shutil
import time
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.distributed as dist
import torch.optim
import torch.utils.data
import torch.utils.data.distributed
import torchvision.tra... |
2e9700bb98afcdda22c3ffbefe28f22bd1fdc71f | d68d32d6fa8dc698922ca0087fd8d6f263b2e566 | /lfEngine.py | abe34bdcda7a28774c61005f4c65fa2a1347a145 | [] | no_license | JamesMax314/BinaryStars | cd28bd4324082e0776ac8ca32d858dba8f887eb6 | 85c4d01d049f886c1c6c095cbae062a53e6261aa | refs/heads/master | 2022-04-08T06:26:34.228950 | 2020-03-13T11:24:40 | 2020-03-13T11:24:40 | 229,553,909 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | lfEngine.py | import numpy as np
import matplotlib.pyplot as plt
# global vars
G = 6.674e-11
class Body:
def __init__(self, r, v, m):
self.r = np.array(r, dtype=np.complex64)
self.v = np.array(v, dtype=np.complex64)
self.m = m
def gen_force_mat(_arr_bodies, epsilon):
global G
vec_f = np.zero... |
c9862ab13d1d33f675c5038d016ceff8e219d4a6 | 93b22689089e32ce4e7b69f1c9f91e1c5908f4d9 | /ble_widgets/ble_messagePageWidgets/messageLog.py | fb7411eafedf2a336abf2dca7bd46e37385b9e9d | [] | no_license | y411186312/vsi_ble_bool | 0b58d2d76fe293f61f7dd10cd70e80c10fd5486b | bed3006ec1e10c8a497bb6eef7f78797e4cd2165 | refs/heads/master | 2020-03-29T18:02:51.158225 | 2018-11-14T08:12:42 | 2018-11-14T08:12:42 | 150,192,042 | 0 | 0 | null | 2018-11-14T08:12:43 | 2018-09-25T01:45:25 | Python | UTF-8 | Python | false | false | 2,378 | py | messageLog.py | import wx
class Ble_MessageLogListCtrlClass(wx.Frame):
def __init__(self, parent, windowSize, columnTileList, columnWeightList, title):
wx.Panel.__init__(self, parent)
self._panel = parent
weights = 0
for i in range(len(columnWeightList)):
weights += columnWeightList[i]
#1. create ListCtrl
self._... |
2f1d6405235e3116cf7d042d010b86af6c144248 | a265df1a53af6514dbdb9f0eb84f3825c8660b5e | /ngram.py | 3d93878b0aec857a2c20beefb3e17ce3dcbbc1b3 | [
"MIT"
] | permissive | NalinPlad/Google-Ngram-Game | 8e0a19b43c0665d22ad523f914cbbd4254a29d20 | 9915b2d6f772df7e28672ab5dc90421af42c0399 | refs/heads/main | 2023-06-01T02:05:59.921226 | 2021-07-12T16:02:20 | 2021-07-12T16:02:20 | 385,303,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | ngram.py | import requests
import json
import csv
import urllib
import random
print("Welcome to the Google Ngram Game! \n")
print("*--------------------------------* \n")
print("HOW TO PLAY----------------------* \n")
print("When prompted, enter [1] or [2] \n based on which of the two \n you think is used more in \n literature... |
70da1d031dd633edaeeb4cd6679993defc51e1ca | 0e73bef708f1f04c8bf878bbddbe9141d1249cc8 | /Tensorflow Framework/code/utils/conf.py | 70848a3527ddafa805abdc72f4af89bdc6a04524 | [] | no_license | ZJCODE/Tensorflow-Template | 11cbf775b4bfde1454784687d621680fd4d7fc76 | d8ef3e5e2fb1b3f6104d3532f850ab4a2c366355 | refs/heads/master | 2020-04-05T17:15:53.057896 | 2019-04-18T09:53:07 | 2019-04-18T09:53:07 | 157,052,097 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,270 | py | conf.py | # -*- coding: utf-8 -*-
"""
Created on 2018.12.05
@author: zhangjun
"""
import yaml
import os
BASE_DIR = '../../conf'
DATA_CONF_FILE = 'data.yaml'
FEATURE_CONF_FILE = 'feature.yaml'
CROSS_FEATURE_CONF_FILE = 'cross_feature.yaml'
MODEL_CONF_FILE = 'model.yaml'
class Config(object):
def __init__(self,
... |
1fafb382d534d0603e65c6f368a4605d03715b17 | 346dec0ee56d53097730aba5ce857b9107e1041d | /opensearchpy/helpers/field.pyi | 3704aa8126dd0c99c2a68c2bbc50058639438a4c | [
"Apache-2.0"
] | permissive | dtaivpp/opensearch-py | ed64a5a9d595cd8e2e6d4fa7ee8b49af0032f2d8 | 8485606913900dbdca65ea27aebaad7bb7bb9b2b | refs/heads/main | 2023-09-05T16:14:07.522665 | 2023-08-02T22:00:20 | 2023-08-02T22:00:20 | 412,559,878 | 0 | 0 | Apache-2.0 | 2021-10-01T17:28:42 | 2021-10-01T17:28:41 | null | UTF-8 | Python | false | false | 2,257 | pyi | field.pyi | # SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
# Modifications Copyright OpenSearch Contributors. See
# GitHub history for details.
#
# Licensed to Elasticsearch B.V. under... |
8b7129330b338c30462f0b2fe723d7e820e27823 | 3de2a746243ad1cb000994a06a0f9699db9a901f | /abc187c.py | 6e455b87af9da3427f40abcffcd22c5e33b62d6e | [] | no_license | takumi152/atcoder | 71d726ffdf2542d8abac0d9817afaff911db7c6c | ebac94f1227974aa2e6bf372e18605518de46441 | refs/heads/master | 2022-10-30T12:14:41.742596 | 2022-09-29T19:49:32 | 2022-09-29T19:49:32 | 181,502,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | abc187c.py | def main():
n = int(input())
s = [None for _ in range(n)]
for i in range(n):
s[i] = input()
yes = set()
no = set()
for x in s:
if x[0] == '!':
no.add(x[1:])
else:
yes.add(x)
for x in yes:
if x in no:
print(... |
2244180716183c9f2747ed053a7a41674925c50d | d65e4d34102c30675662c67b0d0519252ad84f2d | /drone/catkin_ws/src/orchestrator/scripts/connect | 2a1e3f6ee53ff4e397332d5e6d156828cd896ef5 | [] | no_license | camarodriguezsal/Dron | dea443d4e7ebd0d673ec37d9f94370e6109d832b | d23387152bc2d3896dae67c1cabd54b9cdf9f176 | refs/heads/main | 2023-09-03T03:31:57.082203 | 2021-11-22T22:21:40 | 2021-11-22T22:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,009 | connect | #!/usr/bin/env python3
import socket
import select
import time
import rospy
import numpy as np
from std_msgs.msg import Float32
#from orchestrator.msg import float32array
speed = None # global component to transmit the parameter
class Connect:
def __init__(self):
# initialize node
rospy.in... | |
5afbc52d4c382eb52b07264d786b515d8fbe66d4 | 0cf7ede6eea6220a019560535887d2b4e5e73018 | /week04/day18--包,异常/code/package_demo/p01/p02/__init__.py | 80f7f325546de6b6a1a341cdeafabfc2b4e54dbf | [] | no_license | skywalkerqwer/PythonBase | 76efd1fcbe0c2d1c54484c02fcb107063fba96fe | 6faf8051bdf416a16586c7f660a4e6cc2a7745bf | refs/heads/master | 2020-06-23T05:41:02.540900 | 2019-08-12T03:21:52 | 2019-08-12T03:21:52 | 198,533,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | __init__.py | __all__ = ['b','c'] |
f6f5ff0d8af0d69a242833617e2f1f8558136337 | 7a8351877363d246a46031b1a50aa45580e138a9 | /program10.py | 57400c34cee69225b3e99ba18c6b01a1840bae9f | [] | no_license | nirmitapr2003/7DayCodingchallenge | 16d587db00f4f87ef6d61f1038e0aa886801d9ff | 1f4591370b16615c9666cb7c182c343c33759f43 | refs/heads/master | 2022-11-26T21:49:01.533450 | 2020-08-09T11:08:01 | 2020-08-09T11:08:01 | 281,120,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | program10.py | #10.Python Program to Find all the Factors of a Number
num1 = int(input("Enter the number: "))
f=[]
i=1
while i<=num1:
if num1%i==0:
f+=[i]
i=i+1
print("All factors of the number are: ", f)
|
e09378177aa637ece3ab7a0027905694a4237183 | dcdc289158cedb8f8cee4e3fe8122ff50b0a2005 | /OOP tut/Chapter6 Part2.py | b4e5ddaf68314687b3c78062fead25d3ed9f6489 | [] | no_license | HaythemBH2003/Object-Oriented-Programming | 0655a3dadb733bf209ac82e2e1b770d6fd79472d | 67a207997dfb619299852ddedf966c3c883c0069 | refs/heads/main | 2023-06-11T06:40:55.622950 | 2021-06-21T15:18:50 | 2021-06-21T15:18:50 | 378,974,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | Chapter6 Part2.py | ############## CLASS ATTRIBUTES ##############
class Person:
number_of_people = 0
# number_of_people ---> CLASS ATTRIBUTE
def __init__(self, name):
self.name = name
#### CALL & MODIFY ATTRIBUTES ####
Person.number_of_people += 1
p1 = Person("Tim")
print(Per... |
6daf1292f26846a8026d25189f95106eebd8fe03 | d13a44d5af349ede40c46fc96d09bc1c48432fee | /dukeclient/commands/list.py | 60bd0d5d4ec2474f4e0541c57e9f71e06c23bcc6 | [] | no_license | h3/django-duke-client | cec97f21013dad20e1ec98b784a005c95c1194b7 | 99711402a463ae6d92f380afe6be1f4bc641a33c | refs/heads/master | 2021-01-10T21:10:44.387263 | 2014-12-27T04:10:39 | 2014-12-27T04:10:39 | 3,035,981 | 4 | 2 | null | 2012-06-06T17:42:03 | 2011-12-22T19:11:57 | Python | UTF-8 | Python | false | false | 289 | py | list.py | from dukeclient import client
from dukeclient.commands import BaseCommand
class ListCommand(BaseCommand):
options = [
('-m', '--master', {'metavar': 'SERVER', 'dest': 'server'}),
]
def call(self, *a, **k):
print client.send(command='list', args=a, flags=k)
|
e5690567561184c22c24aacd7a922673cbeb3934 | 8c8c9f8f625c3fd4ab7645e865cfc73f4ea10dfc | /src/my_square.py | bbd35ff604de1211be5d2a454bb5cf14d7813388 | [] | no_license | sheffernan57/git_lesson | 88ffdd2c9d4b12a855e39ac136e71212d1da8cd4 | 339c29e3616e952c7ebc63bc0ed631689555ab7b | refs/heads/master | 2020-05-23T08:13:11.035162 | 2016-10-07T20:25:26 | 2016-10-07T20:25:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | my_square.py | def my_square(y):
"""takes a value and returns the square of that value.
added more documentation
uses the ** exponent operator
"""
return(y**2)
def my_square2(x):
"""uses the * operator
"""
return(x*x)
"""more extraneous comments here
"""
print(my_square(42))
print (My_square2(42)
|
ffa67a06baf5951fcfae9a36aae3823899b48b10 | 6148bf1f1164fa011e50fa39415268e25a0d96d2 | /spectrum_analyzer.py | e19e300897163832869bfce472e0838f1cbc6e1d | [] | no_license | dbanyay/MagicHome-LED-control | 16033bfe0c575ca6fa5a415b21e6705097538777 | 97dcbb181f173bd8cdfec43edf1f7e0d0d7c9524 | refs/heads/master | 2023-02-19T16:53:11.144198 | 2021-01-18T20:40:42 | 2021-01-18T20:40:42 | 262,819,453 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | spectrum_analyzer.py | import numpy as np
import scipy
from matplotlib import pyplot as plt
from scipy.io import wavfile
from scipy.signal import spectrogram
import colorsys
from calculate_rgb_alpha import calculate_rgb
from pyfilterbank.splweighting import weight_signal
def rgb_to_hex(rgb):
return '#%02x%02x%02x' % rgb
music_path = "/... |
e0be82bdfac0d4fa37659ef2e72fbe04df329122 | c81f38b3b2a9119fb37d97c4bd52debac8a1a506 | /step41_batch_file_predict.py | 161a99639cc7321fdd8212fa20a71e5f31161474 | [] | no_license | qiang-dai/blstm | d2040c7d51a5e44dfebfb266aefc2c81cb65e9b4 | 592ba459fc7dddd6c0b05b0cd214c74d6bb2c0b1 | refs/heads/master | 2021-09-01T05:26:55.655097 | 2017-12-25T03:32:25 | 2017-12-25T03:32:25 | 111,660,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,046 | py | step41_batch_file_predict.py | import time
import os,sys
import tensorflow as tf
from tensorflow.contrib import rnn
import numpy as np
import pyIO
import step04_format_multi_punc
import punctuation
import pickle
from tensorflow.contrib import rnn
import datetime
import step07_slip_window
import step51_fastText_classify
import step05_append_category
... |
de393a16dfae28f1b83391415415f0d0d7800deb | 2a528d8844ea9e3907b44f63947b6cbfd1e2cfcc | /alembic/versions/fd9d1586fe69_event_owner.py | c1ab6d8262f89d8d63280be7b81d82adadb61743 | [] | no_license | AlessandroLorenzi/boardgamenight_backend | 5ca30d5176e2793b682356e9d30aa1cab396a068 | 71d2ba2c20c38cef9c9f4e8d199850ab53b2df75 | refs/heads/master | 2020-03-26T18:14:54.570345 | 2018-08-31T22:23:47 | 2018-08-31T22:23:47 | 145,203,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | fd9d1586fe69_event_owner.py | """event owner
Revision ID: fd9d1586fe69
Revises: 1fa86016f6b1
Create Date: 2018-06-22 21:14:32.521756
"""
from alembic import op
from sqlalchemy import MetaData, Table, Column, Integer, ForeignKey, String
meta = MetaData()
# revision identifiers, used by Alembic.
revision = 'fd9d1586fe69'
down_revision = '1fa8601... |
d40ae3b15a9eca711041a7b9a9079c1d78c8f4c1 | 2e70abf15d2d54efe8dc72e3c745f4eb92846b7f | /ACTIVIDADES/pycharm-projects/Actividades/Actividad24.py | 58bf59f2d54730432377a2423170730c12144884 | [] | no_license | statickidz/TemarioDAM | c5ee792a86b0008e16bd2a2abc5b96775a50d6e9 | 9ae29b5d0456d5c822df2be90dfc7769fdec0e09 | refs/heads/master | 2020-09-04T12:44:02.620163 | 2020-02-10T10:54:50 | 2020-02-10T10:54:50 | 219,732,939 | 81 | 42 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | Actividad24.py | # -*-coding: utf-8 -*-
class Mueble: # el primer parámetro siempre selfen todos
def __init__(self, tipo): # Constructor
self.tipo = tipo # Propiedad pública
def getTipo(self): # método getter
return self.tipo
def setTipo(self, tipo): # método setter
self.tipo = tipo
class Me... |
1409a8e15713df411e76f3b6aeae727b30615c1d | 2e300aff5b9921ee25a751dc68eaf7fab17d2bc2 | /models/unet.py | 373f3ad94fd77c76a1f1124e42a038be569dfcd4 | [] | no_license | sai-sundar/LRR-CED | f3a6feecf524fe8fcab2c6fe5ca5dd854e93b18f | 14aed4b816bee7beadf18dc6785353ec1455d216 | refs/heads/master | 2023-06-08T14:31:21.959314 | 2021-06-29T15:19:06 | 2021-06-29T15:19:06 | 381,017,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,705 | py | unet.py | import tensorflow as tf
from tensorflow.keras.models import *
from tensorflow.keras.layers import *
from tensorflow.keras.optimizers import *
from tensorflow.keras.callbacks import ModelCheckpoint, LearningRateScheduler
from tensorflow.keras.layers import Add, BatchNormalization, Conv2D, Dense, Flatten, Input, Lea... |
d9b34f80981c4d8025e4b43f9e77a373de91b51c | 12458f134f349ae1443f17c297eae7a2725f1181 | /twoStep/keychain/migrations/0001_initial.py | cdaf6cf53be009e75af53ce65a1b50569877ceb1 | [] | no_license | aeaa1998/cifrado-keychain-back-end | 48ce1f872cb842542976ad954b37d7d91f5a14ea | ce4e3e104dd9a1839de3a8f9e89234b688e78b0a | refs/heads/master | 2023-01-13T19:53:36.805400 | 2020-11-19T05:18:38 | 2020-11-19T05:18:38 | 303,234,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | 0001_initial.py | # Generated by Django 3.1.2 on 2020-10-18 14:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='KeyChain',
fields=[
... |