seq_id stringlengths 4 11 | text stringlengths 113 2.92M | repo_name stringlengths 4 125 ⌀ | sub_path stringlengths 3 214 | file_name stringlengths 3 160 | file_ext stringclasses 18
values | file_size_in_byte int64 113 2.92M | program_lang stringclasses 1
value | lang stringclasses 93
values | doc_type stringclasses 1
value | stars int64 0 179k ⌀ | dataset stringclasses 3
values | pt stringclasses 78
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
8976322898 | from typing import Tuple
import tensorflow as tf
def dataset_split(
dataset: tf.data.Dataset, split_fraction: float, fold: int = 0
) -> Tuple[tf.data.Dataset, tf.data.Dataset]:
"""Splits the dataset into one chunk with split_fraction many elements of
the original dataset and another chunk with size (1 - ... | franneck94/TensorCross | tensorcross/utils/dataset.py | dataset.py | py | 1,214 | python | en | code | 11 | github-code | 13 |
21251174982 | #Name: Shezan Alam
#Email: shezan.alam48@myhunter.cuny.edu
#Date: October 4th, 2019
import matplotlib.pyplot as plt
import pandas as pd
pop = pd.read_csv('nycHistPop.csv',skiprows=5)
pop.plot(x="Year")
n = input("Enter borough name: ")
o = input("Enter output name: ")
pop['Fraction'] = pop[n]/pop['Total']
pop.plot(x... | shezalam29/simple-python-projects | BoroGraph.py | BoroGraph.py | py | 377 | python | en | code | 0 | github-code | 13 |
25221103970 | #爬取Openjudge题目id及其通过人数
from bs4 import BeautifulSoup
import urllib.request
f=open("data.txt","w+")
for pn in range(24):
page=urllib.request.urlopen("http://bailian.openjudge.cn/practice/?page="+str(pn+1)).read()
soup=BeautifulSoup(page,"lxml")
l=soup.find("tbody").find_all("tr")
for tr in l:
print(" Processing pa... | Allen-Cee/Python | Crawler/Openjudge_Problem_Info.py | Openjudge_Problem_Info.py | py | 581 | python | en | code | 1 | github-code | 13 |
40377093819 | import hashlib
import base64
import requests
from bs4 import BeautifulSoup
def shorten_url(url):
url_bytes = url.encode('utf-8')
hash_bytes = hashlib.sha256(url_bytes).digest()
short_bytes = hash_bytes[:8]
short_url = base64.b64encode(short_bytes).decode('utf-8')
return short_url
def get_page_ti... | juanmarcoscabezas/url-shortener | shortener/utils.py | utils.py | py | 533 | python | en | code | 0 | github-code | 13 |
73643920657 | # Ejercicio 955: Obtener todas las combinaciones posibles de minúsculas y mayúsculas de un conjunto de caracteres.
from itertools import product
def obtener_combinaciones(caracteres):
resultado = map(''.join, product(*((c.lower(), c.upper()) for c in caracteres)))
return list(resultado)
frase = 'abc'
combi... | Fhernd/PythonEjercicios | Parte001/ex955_combinaciones_posible_letra_minusculas_mayusculas.py | ex955_combinaciones_posible_letra_minusculas_mayusculas.py | py | 384 | python | es | code | 126 | github-code | 13 |
47048815674 | import asyncio
import json
import logging
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set
import websockets
import uctl2_back.events as customEvent
if TYPE_CHECKING:
from uctl2_back.race import Race
# Type aliases
EventList = List[Dict[str, Any]]
class Notifier:
def __init__(self, race: '... | mdesmarais/UCTL2_Broadcaster | uctl2_back/notifier.py | notifier.py | py | 2,837 | python | en | code | 0 | github-code | 13 |
40635823400 | from core.plugin.loader import get_plugin_classes, get_module_class_names
from core.configuration.utils import get_pipeline_step_names, extract_pipeline_config, \
extract_pipeline_name
from core.helpers.utils import get_duplicates
from core.logger.logger import logger
def set_default_values(config):
"""Sets d... | Magoli1/carla-pre-crash-scenario-generator | core/configuration/validator.py | validator.py | py | 4,803 | python | en | code | 2 | github-code | 13 |
41811127522 | from datetime import datetime as dt
import os
class LogFile:
"""
Write a log file from coding interaction. It will help to understand how the model works
and helps to see if there are any error while running
"""
def __init__(self, FileLocation: str, FileName: str = "logFile"):
"""
File log initilization, cr... | Datanarch/data_mining_challange | Logs.py | Logs.py | py | 2,021 | python | en | code | 0 | github-code | 13 |
31439549881 | """Quantized DEVS-LIM modeling and simulation framework.
"""
from math import pi as PI
from math import sin as SIN
from math import cos as COS
from math import acos as ACOS
from math import tan as TAN
from math import acos as ACOS
from math import atan2 as ATAN2
from math import sqrt as SQRT
fr... | joehood/SubCircuit | subcircuit/qdl.py | qdl.py | py | 62,733 | python | en | code | 9 | github-code | 13 |
72263194578 | # Download models from the SubT Tech Repo into .zip files in the current directory (does not require Ignition install)
# May choose a subset of models (e.g., robots, artifacts, tiles) or download all models
#
# Usage:
# python download_models.py <TYPE>
#
# Valid types:
# 1: All models
# ... | osrf/subt | subt_ign/scripts/download_models.py | download_models.py | py | 1,837 | python | en | code | 260 | github-code | 13 |
71083984659 | def exchange_integers():
a = int(input())
b = int(input())
print('Before:')
print(f'a = {a}')
print(f'b = {b}')
c = a
a = b
b = c
print('After:')
print(f'a = {a}')
print(f'b = {b}')
def prime_number_checker():
x = int(input())
is_prime = True
i = x
if i in [... | bobsan42/SoftUni-Learning-42 | ProgrammingFunadamentals/09DataTypesMoreExercises.py | 09DataTypesMoreExercises.py | py | 1,656 | python | en | code | 0 | github-code | 13 |
7869398852 | import base64
import requests
import json
import time
from . import config
from .cachehandler import CacheHandler
from .authhandler import AuthHandler
from .endpoints.purchaseinvoices import PurchaseInvoiceMethods
class BillToBoxAPI:
def __init__(self, clientId, clientSecret, demo=False):
self.clientId... | alexander-schillemans/python-billtobox-api | billtobox/api.py | api.py | py | 2,864 | python | en | code | 1 | github-code | 13 |
33451161476 | from datetime import datetime
from dateutil.relativedelta import relativedelta
from fbprophet import Prophet
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('example_retail_sales.csv')
last_data_str = df.iloc[len(df) - 1]['ds']
last_date = datetime.strptime(last_data_str, '%Y-%m-%d')
... | jybill01/optimization | example_retall_sales_2.py | example_retall_sales_2.py | py | 1,396 | python | en | code | 0 | github-code | 13 |
37942439465 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 28 17:15:23 2020
@author: matthew
"""
#%% function attempt
def plot_2d_interactive_fig(xy, colours, spatial_data = None, temporal_data = None,
inset_axes_side = {'x':0.1, 'y':0.1}, arrow_length = 0.1, figsize = (10,6),
... | matthew-gaddes/interactive_2d_plot | interactive_2d_plot.py | interactive_2d_plot.py | py | 25,890 | python | en | code | 2 | github-code | 13 |
24940265093 | import streamlit as st
def get_params():
col1,col2,col3, col4 = st.columns(4)
with col1:
division = st.selectbox('Division', ['II'])
with col2:
tier = st.selectbox('Tier', ['SILVER'])
with col3:
queue = st.selectbox('Queue', ['RANKED_SOLO_5x5'])
with col4:
region... | nicolasesnis/league-win-loss-prediction | src/utils.py | utils.py | py | 396 | python | en | code | 0 | github-code | 13 |
11867505311 | ilk = int(input("İlk sayıyı giriniz:"))
iki = int(input("İkinci sayıyı giriniz:"))
def ekok(x,y):
ekok = x*y
for i in range(ekok,max(x,y)-1,-1):
if i % x == 0 and i % y == 0:
ekok = i
return ekok
print(ekok(ilk,iki))
| zaFer234/Temel-Python-Projeleri | ekok hesaplama.py | ekok hesaplama.py | py | 268 | python | tr | code | 0 | github-code | 13 |
7591701895 | from __future__ import print_function
##########################################################
## OncoMerge: app.py ##
## ______ ______ __ __ ##
## /\ __ \ /\ ___\ /\ \/\ \ ##
## \ \ __ \ \ \___ \ \ \ \_\ \ ... | plaisier-lab/mpm_web | app/__main__.py | __main__.py | py | 4,586 | python | en | code | 0 | github-code | 13 |
71184949139 | from cgitb import text
import csv
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
## webdriver instance
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
## function t... | Young-Parrott/Amazon-Web-Scraper | amazon_web_scraper.py | amazon_web_scraper.py | py | 2,523 | python | en | code | 0 | github-code | 13 |
32039427955 | import json
from src.data.wl_data import WlDataRawLoader
from src.data.wl_data import WlDataPreprocessor
from src.data.psoriasis_data import PsoriasisLabeler
raw_data_loader = WlDataRawLoader('data/raw/')
raw_data_loader.load_files()
raw_data_loader.data.to_csv('data/interim/raw_data.csv', index=False)
raw_data_loader... | fvillena/psoriasis-incidence | analyze.py | analyze.py | py | 993 | python | en | code | 0 | github-code | 13 |
14239049667 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import math
import torch
import torch.nn as nn
import thumt.utils as utils
import thumt.nn.op as ops
from thumt.modules.module import Module
from thumt.modules.affine import Affine as Linear
class Affine(Mod... | THUNLP-MT/Transformer-DMB | thumt/modules/moe/affine.py | affine.py | py | 2,321 | python | en | code | 1 | github-code | 13 |
38706337400 | from django.core.management.base import BaseCommand
import sendgrid
from dashboard.models import pa_Get_Parts_Count, get_service_parts_detail
from adam.models import SGFields
from django.template.loader import render_to_string
import datetime, time
import os
from mysite.settings import ADAM_PATH, ADAM_EXPORT_PATH
clas... | dovimotors/mysite | adam/management/commands/send_parts_email.py | send_parts_email.py | py | 3,994 | python | en | code | 0 | github-code | 13 |
17186611887 | bl_info = {
"name": "Heavypoly Operators",
"description": "Operators that make for smooth blending",
"author": "Vaughan Ling",
"version": (0, 1, 0),
"blender": (2, 80, 0),
"location": "",
"warning": "",
"wiki_url": "",
"category": "Operators"
}
import bpy
import bmesh
from bpy.t... | dngrzn/hpolyscripts | HEAVYPOLY_OPERATORS.py | HEAVYPOLY_OPERATORS.py | py | 15,353 | python | en | code | 0 | github-code | 13 |
14241623997 | import os
from django.conf import settings
from django.urls import reverse
from django.db import models
from django.db.models.signals import pre_delete
from django.db.models.signals import post_save
from course_files.models import generate_courseitem_filepath
from course_files.models import GenericCourseFile
from cou... | TBP-IT/tbpweb | exams/models.py | models.py | py | 6,100 | python | en | code | 2 | github-code | 13 |
5505537147 | from aiogram import executor, Bot, Dispatcher, types
from keyborads import *
bot = Bot(token='6191956586:AAEycG1ebRMhEq3iMBpzlAg0CXTcOIeaPXc')
dp = Dispatcher(bot)
@dp.message_handler(commands=['start'])
async def show_keyboards(message: types.Message):
name = message.from_user.full_name
await message.answer(... | Nodirabegim16/book-shopping | app.py | app.py | py | 1,017 | python | en | code | 0 | github-code | 13 |
35128798989 | """
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
class Solution:
def levelOrder(self, root: 'Node') -> List[List[int]]:
# using 3 loops and 4 array variables
if not root: return []
res = []
... | aakanksha-j/LeetCode | 429. N-ary Tree Level Order Traversal/bfs_deque_1.py | bfs_deque_1.py | py | 1,551 | python | en | code | 0 | github-code | 13 |
17654225350 | from django.urls import path
from . import views
urlpatterns = [
path('projects/', views.pro, name='projects'),
path('projectitem/<uuid:pk>/', views.projectitem, name='projectitem'),
path('create-project/', views.create_project, name='create-project'),
path('update-project/<uuid:pk>/', views.update_pro... | aashiqahmed97/devSearch | projects/urls.py | urls.py | py | 436 | python | en | code | 0 | github-code | 13 |
2446770237 | class MyCircularDeque:
"""
| 1| 2| 3| 4| 5|
c
| | 5| 2| 3| 4|
r f t
t < 0
t = max
| | | 3| 4| |
c
"""
def __init__(self, k: int):
self.queue = [-1] * k
self.Max = k - 1
self.front = -1
self.... | asnakeassefa/Competitive-programming | circularDeque.py | circularDeque.py | py | 2,430 | python | en | code | 0 | github-code | 13 |
74325227536 | import mysql.connector
db = mysql.connector.connect(
host="localhost",
user="root",
passwd ="root",
database ="voertuigen"
)
class Voertuig:
def __init__(self,id,merk,model,bouwjaar,brandstof,verhuurd):
self.id = id
self.merk = merk
self.model = model
self.bouwjaar = bouwjaar
self.brands... | bjornlecis/MySQLTest | Voertuigen.py | Voertuigen.py | py | 1,818 | python | nl | code | 0 | github-code | 13 |
16726094644 | # NAIVE BAYES CLASSIFIER
# Declaring the initial text-category list
sports = ["A great game", "Very clean match", "A clean but forgettable game"]
nonSports = ["The election was over", "It was a close election"]
# Initializing the list to store each words of each elements of sports and nonSports
sportsW... | swarup-prog/Naive-Bayes-Classifier | NaiveBayesClassifier.py | NaiveBayesClassifier.py | py | 2,498 | python | en | code | 0 | github-code | 13 |
14191724592 | import cv2
import numpy as np
img = cv2.imread("D:\dahab\dahab1\IMG_20200131_142814.jpg")
imgGray = cv2.cvtColor(img , cv2.COLOR_BGR2GRAY)
imgBlue = cv2.GaussianBlur(imgGray ,(7,7),1)
imgcanny = cv2.Canny(img,100,100)
imgDig = cv2.dilate(imgGray , kernel=.5 ,iterations= 1)
cv2.imshow("GRAY",imgGray)
cv2.imshow("Blu... | MOHAMMED-NASSER22/PycharmProjects | pythonProject/ch2.py | ch2.py | py | 403 | python | en | code | 0 | github-code | 13 |
17807504130 | #Función para sumar dos números binarios
def suma(A, B):
sumador = 0
ext = ''
for i in range (len(A)-1, -1, -1):
temp = int(A[i]) + int(B[i]) + sumador
if (temp>1):
ext += str(temp % 2)
sumador = 1
else:
ext += str(temp)
s... | BryanSuca/lab03 | lab03.py | lab03.py | py | 1,716 | python | es | code | 0 | github-code | 13 |
8642787218 |
from train_network import load_data, do_it, DEFAULT_TRAIN_IMAGE_SIZE
dataset_path = "images/guitar"
model = "guitar"
EPOCHS = (15, 25, 35)
LEARN_RATES = (0.001, 0.0001)
BATCH_SIZES = (32, 48, 64)
TRAIN_IMAGE_SIZES = (DEFAULT_TRAIN_IMAGE_SIZE,)
def train():
for tis in TRAIN_IMAGE_SIZES:
data_label = lo... | windsting/yoni | batch_train.py | batch_train.py | py | 916 | python | en | code | 1 | github-code | 13 |
26992622215 | import os
# I don't totally understand this line.
# I understand that we're configuring the settings for the project
# and that we need to do this before we manipulate the models
os.environ.setdefault('DJANGO_SETTINGS_MODULE','first_project.settings')
import django
django.setup()
import random
from first_app.models ... | staubind/django-part-two | first_project/populate_first_app.py | populate_first_app.py | py | 1,240 | python | en | code | 0 | github-code | 13 |
35884796508 |
path1 = "/Users/traviskochel/Desktop/temp/Kablammo-8-21-d.pdf"
path2 = "/Users/traviskochel/Desktop/temp/Kablammo-8-24-b.pdf"
exportPath = "/Users/traviskochel/Desktop/temp/Kablammo-8-21-8-24.pdf"
# rgba
color1 = (1,0,0,1)
color2 = (0,0,1,1)
# PDF exports in raster, so raise this if it's too pixellated. Lower for ... | scribbletone/overlay-pdf | OverlayPDF.py | OverlayPDF.py | py | 1,132 | python | en | code | 16 | github-code | 13 |
33447651122 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 4 12:32:53 2017
@author: wroscoe
"""
import os
import time
import json
import random
import glob
class Tub(object):
"""
A datastore to store sensor data in a key, value format.
Accepts str, int, float, image_array, image, and array d... | DiyAI-robocar/AI_Summer_School_trainig | parts/datastore.py | datastore.py | py | 3,867 | python | en | code | 0 | github-code | 13 |
3285660187 | import socketio
sio = socketio.Client()
@sio.on('all')
def on_message(data):
print(f'\n{data}\n')
@sio.event
async def connect():
print("I'm connected!")
@sio.event
def connect_error(err):
print(err)
print("\nThe connection failed!\n")
sio.disconnect()
@sio.event
def disconnect():
print(... | BabyMonitorSimulation/observer-effector | Observer/project/util/generate_socket.py | generate_socket.py | py | 341 | python | en | code | 0 | github-code | 13 |
7864699228 | from http import HTTPStatus
from typing import Any
from common.constants import MESSAGE_NOT_FOUND, MESSAGE_OAUTH_MISSING_REFRESH_TOKEN
from common.enums.form_provider import FormProvider
from fastapi import HTTPException
from googleform.app.repositories.oauth_credential import OauthCredentialRepository
from googlefo... | bettercollected/bettercollected-integrations-google-forms | googleform/app/services/oauth_credential.py | oauth_credential.py | py | 4,226 | python | en | code | 1 | github-code | 13 |
74007812496 | num_testes = int(input())
teste = 1
for _ in range(num_testes):
nl, nc, i_soco, j_soco = [ int(x) for x in input().split() ]
i_soco -= 1
j_soco -= 1
matriz = [ [int(x) for x in input().split()] for _ in range(nl) ]
for i in range(nl):
for j in range(nc):
matriz[i][j] += max(10... | broeringlucas/SIN-UFSC | INE5603 - POO1/Coleções Bidimensionais (matrizes)/soco_hulk.py | soco_hulk.py | py | 435 | python | en | code | 0 | github-code | 13 |
29263856362 | import unittest
from scrappy.scrapper import youtube_video_data_scrapper
class TestScrapper(unittest.TestCase):
def test_scrap(self):
url = 'https://www.youtube.com/watch?v=TFMnICdHiyM'
driver = r"C:\Users\ME\projects\for_github\chromedriver_win32\chromedriver.exe"
self.assertAlmostEqual(
... | MerlinEmris/youtube_srapping_with_python | mescrappy/test.py | test.py | py | 525 | python | en | code | 13 | github-code | 13 |
9373022775 | import numpy as np
from sklearn.base import BaseEstimator, MetaEstimatorMixin
from sklearn.feature_selection import SelectorMixin
from sklearn.utils.validation import check_is_fitted, check_X_y
from .stratified_continious_split import ContinuousStratifiedKFold
class CrossValidatedFeatureSelector(MetaEstimatorMixin, ... | rahuldeve/chem_commons | feature_selection.py | feature_selection.py | py | 2,028 | python | en | code | 0 | github-code | 13 |
197255148 | import os
import shutil
def readfile(filename):
a = []
f = open(filename, mode = 'r')
n, m = f.readline().split()
n = int(n)
m = int(m)
for i in range (n):
k = list(map(float, f.readline().split()))
a.append(k)
f.close()
return n, m, a
def avg(a, n, m, j)... | haidang03ez/HaiDang_Project | th4-5.py | th4-5.py | py | 2,083 | python | en | code | 0 | github-code | 13 |
37353251363 | import time
import xlrd
from selenium import *
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
workbook = xlrd.open_workbook('info.xlsx')
worksheet = workbook.sheet_by_index(0)
chromedriver = str(worksheet.cell(26,1).value)
dri... | kushagraag/Selenium-Projects-Python- | Job Post Sites/all_five.py | all_five.py | py | 18,681 | python | en | code | 0 | github-code | 13 |
73606123856 | import pandas as pd
from slicer import slice_ticks
import os
TICKS_PATH = os.path.abspath(os.path.dirname(__file__) + '../../../ticks/bitmex')
BARS_PATH = os.path.abspath(os.path.dirname(__file__) + '../../../bars')
SYMBOLS = [{
'symbol': 'XBTUSD',
'price_step': 0.5,
'size_step': 1
}, {
'sym... | bellerofonte/skillfactory-dst-50 | final/src/sliced/slc-bitmex.py | slc-bitmex.py | py | 1,839 | python | en | code | 0 | github-code | 13 |
20190801199 | import tensorflow as tf
from augment_io.spec_aug_tf import TFFreqMasking, TFTimeMasking
TFAUGMENTATIONS = {
"freq_masking": TFFreqMasking,
"time_masking": TFTimeMasking,
}
class TFAugmentationExecutor:
def __init__(self, augmentations):
self.augmentations = augmentations
def augment(self, inputs):
o... | yyht/deepspeech | augment_io/augment_tf.py | augment_tf.py | py | 1,020 | python | en | code | 2 | github-code | 13 |
25686745470 | import netCDF4
import numpy as np
nc_file = 'data/AQUA_MODIS.20230101.L3m.DAY.CHL.chlor_a.4km.NRT.nc'
nc = netCDF4.Dataset(nc_file, mode='r')
nc.variables.keys()
lat = nc.variables['lat'][:]
lon = nc.variables['lon'][:]
chloro = nc.variables['chlor_a'][:]
np.savetxt('lat.csv', lat, delimiter=',')
np.... | WarXenozord/SpaceApps2023 | netCFDtoCSV.py | netCFDtoCSV.py | py | 409 | python | en | code | 0 | github-code | 13 |
10802109296 | def longest_common_prefix(strings):
if 0 == len(strings):
return "Empty String"
else:
for prefix in range(0, len(strings[0])):
to_match = strings[0][prefix]
for i in range(1, len(strings)):
if prefix >= len(strings[i]) or to_match != strings[i][prefix]:
... | TanujSharma369/258286_DailyCommits | third.py | third.py | py | 568 | python | en | code | 0 | github-code | 13 |
5850658570 | import os
import sys
import logging
import argparse
import time
import rethinkdb
from cachetools import LRUCache
from gossip.common import NullIdentifier
from sawtooth.client import SawtoothClient
from config import ParseConfigurationFiles
from config import SetupLoggers
logger = logging.getLogger()
full_sync_inter... | gabykyei/GC_BlockChain_T_Rec | extensions/bond/ui/ledger_sync/main/sync_ledger_cli.py | sync_ledger_cli.py | py | 18,675 | python | en | code | 1 | github-code | 13 |
2816147685 | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def pytest_addoption(parser):
parser.addoption('--language', action='store', default=None,
help="Choose language")
@pytest.fixture(scope="function")
def browser(request):
browser... | AlexKlo/web_lang_test | conftest.py | conftest.py | py | 807 | python | en | code | 0 | github-code | 13 |
25552156807 | class Student:
def __init__(self,name,rollno):
self.name = name
self.rollno = rollno
self.lap = self.Laptop()
def show(self):
print(self.name,self.rollno)
class Laptop:
def __init__(self):
self.brand = 'Dell'
self.cpu = 'i5'
sel... | draksha22/python | InnerClass.py | InnerClass.py | py | 465 | python | en | code | 0 | github-code | 13 |
29423233589 | from __main__ import app, db
from flask import send_file, abort, redirect
from models import ExternalLink
@app.route('/visit_link/<int:link_id>', methods=['GET'])
def visit_link(link_id):
link = ExternalLink.query.filter_by(id=link_id).first()
if link is not None:
db.session.add(link)
link.num_visits += 1
db.s... | javilm/msx-center | routes/visit_link.py | visit_link.py | py | 385 | python | en | code | 0 | github-code | 13 |
36092327315 | from scraper import *
from fileIO import *
from write_html import *
from messenger import *
import os
url = "https://www.epicnpc.com/forums/last-cloudia-accounts.1797/"
file_url = "./output.csv"
results = 10
def main():
document = collect(url)
listings = get_listings(document)
for listing in listings[:r... | carnoldcoding/EpicScraper | main.py | main.py | py | 531 | python | en | code | 0 | github-code | 13 |
18095875011 | import cv2
import glob
import os
import sys
import json
import imsearch
gcp_config = {
'GOOGLE_APPLICATION_CREDENTIALS': '../.config/cloud-ml-f1954f23eaa8.json',
'BUCKET_NAME': 'imsearch-testing',
'STORAGE_MODE': 'gcp'
}
with open('../.config/aws-config.json', 'r') as fp:
aws_config_file = json.load(... | rikenmehta03/imsearch | examples/storage.py | storage.py | py | 1,515 | python | en | code | 76 | github-code | 13 |
27547114693 | from django.shortcuts import render
from django.http import JsonResponse
import pickle
import jieba
import re
import json
from keras.models import load_model
from keras.preprocessing import sequence
from django.views.decorators.csrf import csrf_exempt
jieba.set_dictionary('app_sentiment/jieba_big_chinese_dict/dict... | guan-jie-chen/Term_Project-Django | app_sentiment/views.py | views.py | py | 3,994 | python | en | code | 1 | github-code | 13 |
12821479031 | ## Write a program that lets the user play Rock-Paper-Scissors against the computer. There should be five rounds, and after those five rounds, your program should print out who won and lost or that there is a tie
from random import randint
import math
c = 0
d = 0
for i in range(5):
x = randint(1, 3)
if x == ... | Oposibu/PythonTutorial | pythonExercise/RockPapperScissorsGame1.py | RockPapperScissorsGame1.py | py | 1,264 | python | en | code | 0 | github-code | 13 |
37910366398 |
#
# jobOptions file for Combined Tower Reconstruction
# (needed by jet and combined sliding window)
#
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
from CaloRec.CaloRecConf import CaloTowerAlgorithm
# -- switch on some monitoring
if not 'doCaloCombinedTowerMonitoring' in dir():
d... | rushioda/PIXELVALID_athena | athena/Calorimeter/CaloRec/share/CaloCombinedTower_jobOptions.py | CaloCombinedTower_jobOptions.py | py | 2,570 | python | en | code | 1 | github-code | 13 |
71528326739 | #!/usr/bin/env python3
"""
Usage: <./day5-lunch4.py> <tab_file1> <tab_file2> <tab_file3> <tab_file4> <tab_file5>
Plotting residuals with log scale
"""
import sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import statsmodels.formula.api as smf
import os
name1 = sys.argv[1].split(os.sep)... | JSYamamoto/qbb2018-answers | day5-lunch/day5-lunch6.py | day5-lunch6.py | py | 1,655 | python | en | code | 0 | github-code | 13 |
17055267344 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class LeaseEnrollDTO(object):
def __init__(self):
self._brand_pid = None
self._create_time = None
self._name = None
self._plan_id = None
self._status = None
... | alipay/alipay-sdk-python-all | alipay/aop/api/domain/LeaseEnrollDTO.py | LeaseEnrollDTO.py | py | 2,686 | python | en | code | 241 | github-code | 13 |
73570747536 | cases = int(input());
for i in range(0, cases):
# We don't care about the size, but have to read it anyway
case_size = input();
raw_case = input();
case = []
for char in raw_case:
if char == '(':
case.append(1)
else:
case.append(-1)
misplaced = 0;
ma... | JDSeiler/programming-problems | codeforces/round-653/c-move-brackets.py | c-move-brackets.py | py | 485 | python | en | code | 0 | github-code | 13 |
24825525935 | import sys
sys.path.append('..')
import os
import argparse
import numpy as np
import pandas as pd
from tqdm import tqdm
import torch
import gc
import functools
from scipy import ndimage
import cv2
import pickle as pkl
import lightgbm as lgb
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning... | AGrankov/siim_final | scripts/predicting/after_predict.py | after_predict.py | py | 27,839 | python | en | code | 0 | github-code | 13 |
19550675343 | # Import packages
from dash import Dash, html, dash_table, dcc, callback, Input, Output
import pandas as pd
import ssl
import plotly.express as px
ssl._create_default_https_context = ssl._create_unverified_context
# Incorporate data
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminder2... | axiom19/Dash-plotly | main.py | main.py | py | 1,513 | python | en | code | 0 | github-code | 13 |
18400603504 | import requests
import re
from bs4 import BeautifulSoup
URL = 'https://fftoday.com/stats/players?Pos=QB'
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'html.parser')
results = soup.find()
player_data = results.find_all(class_='bodycontent')
playerlinks = re.finditer("/stats/players[/a-zA-Z0-9_]+",str(play... | MatthewLee311/django3 | mysite/twitter/fantasy.py | fantasy.py | py | 415 | python | en | code | 0 | github-code | 13 |
18114661779 | from shutil import which
from os.path import exists
from subprocess import run
import click
def in_path(program):
"""Check if R is available in PATH."""
return which(program) is not None
def run_r_command(cmd, program="R"):
"""Run R command"""
if not exists(program) and not in_path(program):
... | datasnakes/rut | rut/utils.py | utils.py | py | 1,706 | python | en | code | 4 | github-code | 13 |
10067042689 | import json
import os
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State, MATCH
import plotly.express as px
import pandas as pd
## DATA FROM https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_... | plotly-dash-book/events | 20210112/dash/application/app.py | app.py | py | 14,405 | python | en | code | 7 | github-code | 13 |
31942935150 | from typing import List
"""
方法一:迭代法实现子集枚举
思路
考虑数组 [1,2,2],选择前两个数,或者第一、三个数,都会得到相同的子集。
也就是说,对于当前选择的数 x,若前面有与其相同的数 y,且没有选择 y,
此时包含 x 的子集,必然会出现在包含 y 的所有子集中。
我们可以通过判断这种情况,来避免生成重复的子集。代码实现时,可以先将
数组排序;迭代时,若发现没有选择上一个数,且当前数字与上一个数相同,
则可以跳过当前生成的子集。
方法二:递归法实现子集枚举
思路
与方法一类似,在递归时,若发现没有选择上一个数,且当前数字与上一个数相同,
则可以跳过当前生成的子集。
"""
# @... | wylu/leetcodecn | src/python/p1to99/90.子集-ii.py | 90.子集-ii.py | py | 2,156 | python | zh | code | 3 | github-code | 13 |
39989857639 | import numpy as np
import pickle
from Bio import pairwise2
import pdb
import sys
import nltk.translate.meteor_score as meteor_score
import nltk as nltk
def main():
# start from tmux window 21
# 30-36: alphalady
# 36-42 alphaman
# 10-29 amethyst + 8,9
# next:21
input_idx = int(sys.argv[1])
in... | timchen0618/LaPat | processing/cal_align/process_structure_data_unprocessed.py | process_structure_data_unprocessed.py | py | 2,961 | python | en | code | 2 | github-code | 13 |
71350179859 | import hydra
import sys
import albumentations as albu
import tensorflow as tf
import tensorflow.keras as K
from fastprogress.fastprogress import master_bar, progress_bar
from TF_CenterNet.models import get_centernet
from TF_CenterNet.datasets import DatasetBuilder
from TF_CenterNet.losses import get_kpt_loss
from TF_... | cafeal/SIGNATE_AIEdge2 | src/TF_CenterNet/train.py | train.py | py | 7,332 | python | en | code | 3 | github-code | 13 |
25911772147 | # Define a function that returns the sum of latin alphabet symbols of the argument string
# ASCII a = 097 .. z = 122
DEF_SYM_OFFSET = 96
DEF_SYM_LO = 97
DEF_SYM_HI = 122
def sumLatinSymbols(string):
lower = str(string).lower()
result = 0
for i in range(len(lower)):
sym = ord(lower[i])
if DEF_SYM_L... | Nazdorovye/VeAPython | 2020_lecture_08_tasks/task03.py | task03.py | py | 536 | python | en | code | 0 | github-code | 13 |
2142692736 | #!/usr/bin/python
# (c) 2018 Jim Hawkins. MIT licensed, see https://opensource.org/licenses/MIT
# Part of Blender Driver, see https://github.com/sjjhsjjh/blender-driver
"""Utility layer on the main Blender Python programming interface. This isn't
the utilities for the Blender Game Engine.
This module can only be used ... | sjjhsjjh/blender-driver | blender_driver/bpyutils.py | bpyutils.py | py | 16,092 | python | en | code | 2 | github-code | 13 |
5186325415 | import time
import Adafruit_DHT as dht
DHT_SENSOR = dht.DHT11
DHT_PIN = 4
while True:
humidity, temperature = dht.read(DHT_SENSOR, DHT_PIN)
if humidity is not None and temperature is not None:
print(
"Temp={0:0.1f}C Humidity={1:0.1f}%".format(temperature, humidity))
print("raw da... | PimMiii/Data-Science-IoT-KP02 | testscripts/DHT_test.py | DHT_test.py | py | 460 | python | en | code | 0 | github-code | 13 |
4628532395 | import uuid
from django.db import models
from course.models import Lesson
from deadline.models import Deadline, DeadlineSubmit
from .validators import FileExtensionValidator, FileContentTypeValidator
# Create your models here.
class File(models.Model):
def get_upload_path(instance, filename):
parts = fi... | pinanek/WebAppSecProject | backend/resource/models.py | models.py | py | 1,763 | python | en | code | 2 | github-code | 13 |
7731025252 | import pandas as pd
import matplotlib.pyplot as plt
stocks = pd.read_csv('/Users/apple/desktop/dataVisualisation/dataset/stocks.csv', index_col = 'Date')
aapl = stocks['AAPL']
# convert aapl index to datatime64
aapl.index = pd.to_datetime(aapl.index)
# print(aapl.index)
std_30 = aapl.resample('30D').std()
# print(mea... | RobertNguyen125/Datacamp---DataVisulisationPython | dataVisualisation/4_timeSeries/5_plottingStd.py | 5_plottingStd.py | py | 950 | python | en | code | 0 | github-code | 13 |
28639959286 | import asyncio
import subprocess
import sys
import io
from typing import Iterable, TextIO, Any
def tee(
cmd: Iterable[str],
check: bool = True,
**kwargs: Any,
) -> subprocess.CompletedProcess[str]:
out = io.StringIO()
err = io.StringIO()
async def read(
stream: asyncio.StreamReader,
... | DaanDeMeyer/fpbench | benchmarks/tee.py | tee.py | py | 2,259 | python | en | code | 1 | github-code | 13 |
32309205465 | from sgcn_mf import SGCN_MF
from MF import MF
from parser import parameter_parser
from utils import tab_printer, read_dataset_split_bytime, score_printer, save_logs , build_graph
from tqdm import trange
import torch
def main():
"""
Parsing command line parameters, creating target matrix, fitting an SGCN, predi... | 2742195759/SGCN_MF | src/main.py | main.py | py | 1,630 | python | en | code | 0 | github-code | 13 |
39087206431 | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class Property(models.Model):
_inherit = 'product.template'
property_type_id = fields.Many2one(
'property.type',
string='Property Type'
)
partner_id = fields.Many2one(
'res.partner',
string='Property Loca... | Admin-Ever/qatarfacility | property_rental_tenant_management_enterprise-12.0.1.0/property_rental_tenant_management_enterprise/models/property_template.py | property_template.py | py | 1,021 | python | en | code | 1 | github-code | 13 |
20069274965 | #!/usr/bin/python3
from collections import defaultdict
from nessus_session import NessusScanSession, nessus_scan_script_arg_parse
def get_synscan(sess):
synscan = sess.get('/plugins/11219').json()
# organize the output by port
ports = defaultdict(set)
for output in synscan['outputs']:
for port... | ElliotKaplan/nessus_scripts | nessus_scan_syn2ew.py | nessus_scan_syn2ew.py | py | 2,002 | python | en | code | 0 | github-code | 13 |
38625077985 | import random
import winsound
n = int(input('Advinhe o número que estou pensando!!??\nde 0 à 3\n'))
numeros = [1,2,3]
lista = random.choice(numeros)
print(lista)
if n == lista:
print('Você acertou \o/')
while lista != n:
print('O Número Sorteado foi {}'.format(lista))
print('Você errou!, Tente novamentem')
... | CleberSilva93/Study-DesenvolvimentoemPython | Advinhação2.0.py | Advinhação2.0.py | py | 769 | python | pt | code | 0 | github-code | 13 |
24781982994 | from django.contrib.auth import get_user_model
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from bookshop_base.models import Book, Author, Rating, Stock, Publisher
from bookshop_base.serializers import (StockSerializer,
... | amin7mazaheri/haselmeier_test | bookshop_base/tests/test_views.py | test_views.py | py | 3,582 | python | en | code | 0 | github-code | 13 |
20854050373 | #%%
from os import environ
from typing import Set, Dict, List, Tuple, Union
#%%%%%%%%%%%%%%%%%#
# GET INPUT #
###################
file_input = open("input.txt", "rt")
NB_FOR_COMPATIBLE = 12
#file_input = open("input_test.txt", "rt")
#NB_FOR_COMPATIBLE = 4
scanners = []
for line in file_input:
#print(line.stri... | AdrienGuimbal/AdventOfCode2021 | Day19/scanners.py | scanners.py | py | 3,747 | python | en | code | 0 | github-code | 13 |
7246338364 | # Read text from a file, and count the occurence of words in that text
# Example:
# count_words("The cake is done. It is a big cake!")
# --> {"cake":2, "big":1, "is":2, "the":1, "a":1, "it":1}
def read_file_content(filename):
# [assignment] Add your code here
with open(filename) as f:
contents = f.re... | oputaolivia/Reading-Text-File | Reading-Text-Files/main.py | main.py | py | 840 | python | en | code | 0 | github-code | 13 |
20199180544 | from re import fullmatch
def fullrange(start, end):
dir = 1 if start <= end else -1
return range(start, end + dir, dir)
def apply_lines_rules(field, rules, diag=False):
for rule in rules:
if rule[0] == rule[2]:
x = rule[0]
for y in fullrange(rule[1], rule[3]):
... | p-f/adventofcode2021 | 5.py | 5.py | py | 1,787 | python | en | code | 0 | github-code | 13 |
18719871535 | import sys, os
import torch
from torch.utils.data import DataLoader
from config import parse_args, get_vrd_cfg
from utils.register_dataset import register_vrd_dataset
from utils.trainer import CustomTrainer
from utils.dataset import VRDDataset
from modeling.reltransr import RelTransR
def finetune_detectron2... | herobaby71/vltranse | src/train_net.py | train_net.py | py | 1,199 | python | en | code | 0 | github-code | 13 |
6713817806 | import cv2
import numpy as np
filepath1 = r"images\LM-world2.PNG"
img = cv2.imread(filepath1)
scale_percent = 50 # percent of original size
width = int(img.shape[1] * scale_percent / 100)
height = int(img.shape[0] * scale_percent / 100)
dim = (width, height)
img = cv2.resize(img, dim, interpolation = cv2.INTER_AREA)
g... | forfsoft/PythonComponents | ImageMatch/featureImg.py | featureImg.py | py | 868 | python | en | code | 0 | github-code | 13 |
5359900543 | import torch
class BaseSynthesizer:
def save(self, path):
device_backup = self._device
self.set_device(torch.device("cpu"))
torch.save(self, path)
self.set_device(device_backup)
def xai_discriminator(self, data_samples):
discriminator_predict_score = self._discrim... | sunchang0124/dp_cgans | src/dp_cgans/synthesizers/base.py | base.py | py | 594 | python | en | code | 22 | github-code | 13 |
12384033729 | '''
def tax(*args):
income = 1300
rate = 10
calc_tax = income * rate / 100
print('Tax is ', calc_tax)
tax(1700, 10)
'''
menu = {
1: {"name": 'espresso',
"price": 1.99},
2: {"name": 'coffee',
"price": 2.50},
3: {"name": 'cake',
"price": 2.79},
4: {"name": 'soup',... | Chukwukaoranile/learning_notes | tax.py | tax.py | py | 1,037 | python | en | code | 0 | github-code | 13 |
27185473698 | """
-------------------------------------------------------
[program description]
-------------------------------------------------------
Author: Daniel James
ID: 210265440
Email: jame5440@mylaurier.ca
__updated__ = "2022-02-06"
-------------------------------------------------------
"""
from List_array import ... | danij12/Data-Structures | jame5440_l04/src/t06.py | t06.py | py | 595 | python | en | code | 1 | github-code | 13 |
3665257030 | from message import Message
from message import Respond
import socket
import logfile
class Sock():
def __init__(self, server_ip="127.0.0.1", server_port=7796):
self.__ip = server_ip
self.__port = server_port
self.__address = (self.__ip, self.__port)
self.__sock = socket.socket(soc... | ddkddown/py_client | source/sock.py | sock.py | py | 1,532 | python | en | code | 0 | github-code | 13 |
33298054745 | import os
import json
import openpyxl as op
from datetime import datetime, timedelta, date
from pathlib import Path
src_path = Path(__file__).parent
main_path = src_path.parents[1]
data_path = src_path.parent / 'data'
correo_path = src_path.parent / 'email bot'
excel_path = src_path.parent / 'excel'
def... | DylanVicharra/Bot-Correo | email bot/archivos.py | archivos.py | py | 4,409 | python | es | code | 0 | github-code | 13 |
28492426233 | import json
import httpx
from typing import Union
class vanity_client:
def __init__(self) -> None:
pass
def vanity_taken(vanity: str) -> bool:
result = httpx.get(f"https://discord.com/api/v9/invites/{vanity}")
if result.status_code == 200:
return True
... | NotKatsu/Discord-Vanity-Sniper | helpers/vanity.py | vanity.py | py | 2,044 | python | en | code | 0 | github-code | 13 |
72106315859 |
class Node:
## Node of a linked List has priority as well
def __init__(self,value,priority):
self.data = value
self.link = None
self.prt = priority
class PriorityQ:
## We need the front refrence only
def __init__(self):
self.front = None
self.size = 0
... | JARVVVIS/ds-algo-python | stack_and_queues/Priority_q.py | Priority_q.py | py | 1,610 | python | en | code | 0 | github-code | 13 |
17039883234 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayEbppInvoiceInstitutionScopeModifyModel(object):
def __init__(self):
self._account_id = None
self._adapter_type = None
self._add_owner_id_list = None
self._ad... | alipay/alipay-sdk-python-all | alipay/aop/api/domain/AlipayEbppInvoiceInstitutionScopeModifyModel.py | AlipayEbppInvoiceInstitutionScopeModifyModel.py | py | 8,069 | python | en | code | 241 | github-code | 13 |
25917843479 | #! /usr/bin/env python3
from PIL import ImageColor
from datetime import datetime
from vicariouspanel import NodeyezPanel
import sys
import vicarioustext
class UTCClockPanel(NodeyezPanel):
def __init__(self):
"""Instantiates a new UTC Clock panel"""
# Define which additional attributes we have
... | vicariousdrama/nodeyez | scripts/utcclock.py | utcclock.py | py | 3,204 | python | en | code | 47 | github-code | 13 |
14278530986 | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 26 17:51:11 2022
@author: Rubyxu
"""
import datetime
import numpy as np
from matplotlib import pyplot as plt, dates
import seaborn as sns
import pandas as pd
import pickle
from sklearn.preprocessing import StandardScaler, MinMaxScaler
from sklearn.model_se... | rootsnquery/tedesco-project | random_forest_wpre_dimred.py | random_forest_wpre_dimred.py | py | 4,699 | python | en | code | 4 | github-code | 13 |
2434068153 | #!/usr/bin/env python3
# Standard library.
import datetime
import typing
import unittest
# Internal packages.
import phile.notify
class TestEntry(unittest.TestCase):
def test_construct_signatures(self) -> None:
phile.notify.Entry(name="n")
phile.notify.Entry(
name="n",
te... | BoniLindsley/phile | tests/test_phile/test_notify/test_init.py | test_init.py | py | 1,946 | python | en | code | 0 | github-code | 13 |
1073347884 | #
# @lc app=leetcode id=70 lang=python3
#
# [70] Climbing Stairs
#
import itertools
# @lc code=start
class Solution:
def climbStairs(self, n: int) -> int:
"""
result = 1 # all are ones
arr = [1 for i in range(n)]
while (1 in arr) and len(arr)>1:
arr = arr[2:]
... | uday1201/Leetcode2023 | 70.climbing-stairs.py | 70.climbing-stairs.py | py | 777 | python | en | code | 0 | github-code | 13 |
70526749779 | import warnings
from abc import ABC, abstractmethod
from typing import Any, Dict, List, Union
import numpy as np
import tensorflow as tf
from gymnasium import spaces
from typing import NamedTuple
try:
# Check memory used by replay buffer when possible
import psutil
except ImportError:
psutil = None
cla... | Deewens/FYP-DRL-Comparison | experiments/prototyping/tensorflow/common/replay_buffer.py | replay_buffer.py | py | 11,057 | python | en | code | 0 | github-code | 13 |
19202589245 | from os import path
import sys
if __package__:
parent_dir = path.dirname(__file__)
root_dir = path.dirname(parent_dir)
if parent_dir not in sys.path:
sys.path.append(parent_dir)
if root_dir not in sys.path:
sys.path.append(root_dir)
import customtkinter
from fns import init, redrawServ... | zetxx/dzl | dzl/main.py | main.py | py | 3,239 | python | en | code | 0 | github-code | 13 |
5459699350 | #!/usr/bin/python3
""" Creation of class Square defined by its size """
class Square:
""" Class Square
Attribute:
__size : the size of the square
Method:
area() : returns the square area
"""
def __init__(self, __size=0):
""" Constructor method """
if isinstance(__size,... | frcaru/holbertonschool-higher_level_programming | python-classes/4-square.py | 4-square.py | py | 1,001 | python | en | code | 0 | github-code | 13 |
4528031492 | import re
from string import punctuation
import config as cfg
NAMES = ["cole", "laurie", "loretta", "cornelius", "brian", "walter", "carl", "sam", "tom", "jeffrey", "fred", "cole", "kevin", "jake", "billy", "kathy", "james", "annie", "otis", "wolfi", "michael", "marry", "johnson", "jerry", "stanzi", "paula", "jeff", ... | KelianB/Keras-Chatbot | textprocessor.py | textprocessor.py | py | 4,679 | python | en | code | 0 | github-code | 13 |
23164838189 |
# -*- coding: utf-8 -*-
from PyQt4.QtGui import QDialog, QFileDialog, QMessageBox, QHeaderView, QTableWidgetItem
from ui_send_mail import Ui_SendMailDialog
import os, email, smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
GMAIL = {'serv... | ksharindam/daaq-mail | daaq/send_mail.py | send_mail.py | py | 4,071 | python | en | code | 0 | github-code | 13 |
21632439445 | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import sys
infile=np.loadtxt("../results/virial.csv",delimiter=",",skiprows=1)
omegas=infile[:int(len(infile)/3),0]
print(omegas)
kinetic=[]
potential=[]
for i in range(3):
print(int((i)*len(omegas)),int((i+1)*len(omegas)))
kinetic.append(infi... | adrian2208/FYS3150_collab | Project5/python/virial_plot.py | virial_plot.py | py | 984 | python | en | code | 0 | github-code | 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.