import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
import org.springframework.stereotype.Component;
@Aspect
@Component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
stages { | |
stage('Build') { | |
steps { | |
sh 'mvn clean package -DskipTests' | |
} | |
} | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## --- Imports --- | |
import requests | |
import pandas as pd | |
import numpy as np | |
import yfinance as yf | |
from sklearn.tree import DecisionTreeClassifier, plot_tree | |
import matplotlib.pyplot as plt | |
import re | |
# --- Step 1: Download and save financial statements to Excel --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@RequestMapping("/api/upload") | |
public class ChunkedUploadController { | |
private final Path storagePath = Paths.get("uploads"); | |
@PostMapping("/chunk") | |
public ResponseEntity<String> uploadChunk( | |
@RequestParam("file") MultipartFile chunk, | |
@RequestParam("chunkNumber") int chunkNumber, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.util.stream.Collectors; | |
/** | |
* TransactionType enum as an example. | |
* In your challenge environment, this might be pre-defined. | |
*/ | |
enum TransactionType { | |
P2P, | |
P2M, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
import time | |
import random | |
import asyncio | |
def async_retry(max_retries=3, start_delay=2, backoff_factor=2, exceptions=(Exception,)): | |
"""Retry decorator for async functions with exponential backoff.""" | |
def decorator(func): | |
@functools.wraps(func) | |
async def wrapper(*args, **kwargs): |
NewerOlder