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
| # zing_hackathon.R | |
| # Complete pipeline for classification of RFM category (Good vs Bad) | |
| # - EDA, data cleaning, baseline models (logistic + decision tree) | |
| # - Feature engineering, improved model, threshold tuning | |
| # - Requires: tidyverse, janitor, caret, rpart, rpart.plot, MASS, pROC | |
| # ----- Setup ----- | |
| options(stringsAsFactors = FALSE) | |
| set.seed(123) # reproducible |
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, |
NewerOlder