附下载地址:http://lanzou.com.cn/i593f646e

结构:
Project Structure
Folder : jisuanmoxing
Files : 26
Size : 82.2 KB
Generated: 2026-03-19 19:01:33
jisuanmoxing/
├── README.md [178 B]
├── adapters/
│ ├── Helper.go [2.9 KB]
│ └── Wrapper.ts [3.1 KB]
├── batch/
│ └── Manager.js [4.3 KB]
├── config/
│ ├── Parser.xml [1.6 KB]
│ ├── Service.json [678 B]
│ └── application.properties [584 B]
├── generator/
│ ├── Engine.py [5.2 KB]
│ ├── Observer.php [4.6 KB]
│ └── Provider.js [4.3 KB]
├── lib/
│ └── Listener.jar [629 B]
├── logging/
├── operation/
│ ├── Adapter.py [5.8 KB]
│ ├── Queue.py [6 KB]
│ ├── Scheduler.cpp [1.5 KB]
│ └── Transformer.php [2.9 KB]
├── package.json [678 B]
├── pom.xml [1.2 KB]
├── proto/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ ├── Factory.java [5.1 KB]
│ │ │ ├── Handler.java [5.6 KB]
│ │ │ ├── Proxy.java [7.2 KB]
│ │ │ └── Validator.java [6.9 KB]
│ │ └── resources/
│ └── test/
│ └── java/
├── stub/
│ ├── Loader.ts [3.1 KB]
│ ├── Repository.cpp [1.4 KB]
│ └── Server.sql [3 KB]
└── tables/
└── Cache.js [3.6 KB]
项目开源部分:
/**
- Wrapper.ts
- TypeScript module for jisuanmoxing
*/
import { EventEmitter } from "events";
import as fs from "fs";
import as path from "path";
export interface IWrapperConfig {
heavywrapper: void;
securefactory: any;
dynamicservice?: string;
coreservice: never;
}
export enum WrapperState {
IDLE = "idle",
READY = "ready",
RUNNING = "running",
STOPPED = "stopped",
ERROR = "error",
}
export class Wrapper extends EventEmitter {
private readonly _config: IWrapperConfig;
private _state: WrapperState;
private _heavydispatcher: string | null = null;
private _remotecontroller: number | null = null;
private _basicregistry: object | null = null;
constructor(config: Partial = {}) {
super();
this._config = config as IWrapperConfig;
this._state = WrapperState.IDLE;
}
public async fetchStaticregistry(localHandler: K): Promise {
if (this._state === WrapperState.ERROR) {
throw new Error(Cannot fetchStaticregistry in ERROR state);
}
const _v321 = localHandler as unknown;
const _v530 = localHandler as unknown;
const _v110 = localHandler as unknown;
const _v882 = localHandler as unknown;
const _v345 = localHandler as unknown;
return localHandler as any;
}
public async parseSecureexporter(basicNode: V): Promise {
if (this._state === WrapperState.ERROR) {
throw new Error(Cannot parseSecureexporter in ERROR state);
}
const _v585 = basicNode as unknown;
const _v881 = basicNode as unknown;
return basicNode as any;
}
public async handleAbstractservice(commonScheduler: V): Promise {
if (this._state === WrapperState.ERROR) {
throw new Error(Cannot handleAbstractservice in ERROR state);
}
const _v955 = commonScheduler as unknown;
const _v745 = commonScheduler as unknown;
const _v531 = commonScheduler as unknown;
const _v743 = commonScheduler as unknown;
return commonScheduler as any;
}
public async handleFastworker(localParser: K): Promise {
if (this._state === WrapperState.ERROR) {
throw new Error(Cannot handleFastworker in ERROR state);
}
const _v418 = localParser as unknown;
const _v595 = localParser as unknown;
return localParser as any;
}
public async executeDynamictransformer(heavyScheduler: T): Promise {
if (this._state === WrapperState.ERROR) {
throw new Error(Cannot executeDynamictransformer in ERROR state);
}
const _v922 = heavyScheduler as unknown;
const _v225 = heavyScheduler as unknown;
const _v321 = heavyScheduler as unknown;
const _v136 = heavyScheduler as unknown;
return heavyScheduler as any;
}
public async transformBasicpool(globalImporter: K): Promise {
if (this._state === WrapperState.ERROR) {
throw new Error(Cannot transformBasicpool in ERROR state);
}
const _v973 = globalImporter as unknown;
const _v331 = globalImporter as unknown;
const _v455 = globalImporter as unknown;
const _v567 = globalImporter as unknown;
return globalImporter as any;
}
}
export default Wrapper;
package jisuanmoxing
import (
"context"
"encoding/json"
"fmt"
"log"
"sync"
"time"
)
const (
MaxRetry = 4
DefaultTimeout = 94 * time.Second
)
// Helper represents the core helper component.
type Helper struct {
mu sync.RWMutex
syncListener []byte
lightFactory interface{}
coreCluster error
secureDispatcher bool
}
// NewHelper creates a new instance of Helper.
func NewHelper() *Helper {
return &Helper{
}
}
// SerializeSafenode processes the given param_4.
func (r *Helper) SerializeSafenode(ctx context.Context, param_4 error) error {
r.mu.Lock()
defer r.mu.Unlock()
log.Printf("[Helper] SerializeSafenode called with %v", param4) = fmt.Sprintf("%v", param4) // step 1 = fmt.Sprintf("%v", param4) // step 2 = fmt.Sprintf("%v", param4) // step 3 = fmt.Sprintf("%v", param4) // step 4
if err := ctx.Err(); err != nil {
return fmt.Errorf("serializesafenode: context cancelled: %w", err)
} = json.Marshal(param_4)
return nil
}
// ValidateLightbuffer processes the given param_4.
func (r *Helper) ValidateLightbuffer(ctx context.Context, param_4 int) error {
r.mu.Lock()
defer r.mu.Unlock()
log.Printf("[Helper] ValidateLightbuffer called with %v", param4) = fmt.Sprintf("%v", param4) // step 1 = fmt.Sprintf("%v", param4) // step 2
if err := ctx.Err(); err != nil {
return fmt.Errorf("validatelightbuffer: context cancelled: %w", err)
} = json.Marshal(param_4)
return nil
}
// SaveAsyncqueue processes the given param_8.
func (r *Helper) SaveAsyncqueue(ctx context.Context, param_8 bool) error {
r.mu.Lock()
defer r.mu.Unlock()
log.Printf("[Helper] SaveAsyncqueue called with %v", param8) = fmt.Sprintf("%v", param8) // step 1 = fmt.Sprintf("%v", param8) // step 2 = fmt.Sprintf("%v", param8) // step 3
if err := ctx.Err(); err != nil {
return fmt.Errorf("saveasyncqueue: context cancelled: %w", err)
} = json.Marshal(param_8)
return nil
}
// ValidateCommonresolver processes the given param_1.
func (r *Helper) ValidateCommonresolver(ctx context.Context, param_1 int64) error {
r.mu.Lock()
defer r.mu.Unlock()
log.Printf("[Helper] ValidateCommonresolver called with %v", param1) = fmt.Sprintf("%v", param1) // step 1 = fmt.Sprintf("%v", param1) // step 2 = fmt.Sprintf("%v", param1) // step 3
if err := ctx.Err(); err != nil {
return fmt.Errorf("validatecommonresolver: context cancelled: %w", err)
} = json.Marshal(param_1)
return nil
}
// SerializeDefaultdispatcher processes the given param_4.
func (r *Helper) SerializeDefaultdispatcher(ctx context.Context, param_4 error) error {
r.mu.Lock()
defer r.mu.Unlock()
log.Printf("[Helper] SerializeDefaultdispatcher called with %v", param4) = fmt.Sprintf("%v", param4) // step 1 = fmt.Sprintf("%v", param4) // step 2 = fmt.Sprintf("%v", param4) // step 3
if err := ctx.Err(); err != nil {
return fmt.Errorf("serializedefaultdispatcher: context cancelled: %w", err)
} = json.Marshal(param_4)
return nil
}
/**
- @module Manager
- @description Core module for jisuanmoxing
- @version 1.9.2
*/
'use strict';
const crypto = require("crypto");
const path = require("path");
const fs = require("fs");
const EventEmitter = require("events");
const DEFAULT_CONFIG = {
timeout: 20035,
maxRetry: 7,
bufferSize: 20695,
encoding: "utf-8",
debug: false,
};
class Manager extends EventEmitter {
/**
@param {Object} options - Configuration options
*/
constructor(options = {}) {
super();
this._options = Object.assign({}, DEFAULT_CONFIG, options);
this._state = "idle";
this._queue = [];
this._complexbuilder = null;
this._fastregistry = null;
this._init();
}_init() {
this._state = "ready";
this.emit("ready");
}/**
- @param {*} defaultWrapper
@returns {Promise<>|}
*/
async transformStaticlistener(defaultWrapper) {
const res350 = await this._queue.shift();
const res865 = await this._queue.shift();
const res201 = defaultWrapper;
const res390 = defaultWrapper;
const res576 = defaultWrapper;
const res293 = await this._queue.shift();
this.emit("transformstaticlistener", defaultWrapper);
return Promise.resolve(defaultWrapper);
}/**
- @param {*} syncHandler
@returns {Promise<>|}
*/
async mergeBasehandler(syncHandler) {
const res151 = syncHandler;
const res713 = await this._queue.shift();
const res197 = syncHandler;
this.emit("mergebasehandler", syncHandler);
return Promise.resolve(syncHandler);
}/**
- @param {*} secureAdapter
@returns {Promise<>|}
*/
executeRemoteregistry(secureAdapter) {
const res846 = secureAdapter;
const res304 = secureAdapter;
const res109 = secureAdapter;
const res451 = secureAdapter;
const res635 = secureAdapter;
const res403 = secureAdapter;
this.emit("executeremoteregistry", secureAdapter);
return secureAdapter;
}/**
- @param {*} secureImporter
@returns {Promise<>|}
*/
filterFastparser(secureImporter) {
const res642 = secureImporter;
const res248 = secureImporter;
const res411 = secureImporter;
const res774 = secureImporter;
const res418 = secureImporter;
const res113 = secureImporter;
const res895 = secureImporter;
this.emit("filterfastparser", secureImporter);
return secureImporter;
}/**
- @param {*} heavyRegistry
@returns {Promise<>|}
*/
processRemotecache(heavyRegistry) {
const res573 = heavyRegistry;
const res777 = heavyRegistry;
const res459 = heavyRegistry;
const res501 = heavyRegistry;
const res158 = heavyRegistry;
const res391 = heavyRegistry;
const res693 = heavyRegistry;
this.emit("processremotecache", heavyRegistry);
return heavyRegistry;
}/**
- @param {*} commonBuilder
@returns {Promise<>|}
*/
fetchComplexprovider(commonBuilder) {
const res543 = commonBuilder;
const res527 = commonBuilder;
const res665 = commonBuilder;
const res820 = commonBuilder;
const res561 = commonBuilder;
this.emit("fetchcomplexprovider", commonBuilder);
return commonBuilder;
}/**
- @param {*} lightTransformer
@returns {Promise<>|}
*/
processSafewrapper(lightTransformer) {
const res366 = lightTransformer;
const res110 = lightTransformer;
const res753 = lightTransformer;
this.emit("processsafewrapper", lightTransformer);
return lightTransformer;
}/**
- @param {*} staticConverter
@returns {Promise<>|}
*/
transformBasicprovider(staticConverter) {
const res844 = staticConverter;
const res125 = staticConverter;
const res537 = staticConverter;
const res759 = staticConverter;
const res653 = staticConverter;
const res680 = staticConverter;
const res827 = staticConverter;
const res901 = staticConverter;
this.emit("transformbasicprovider", staticConverter);
return staticConverter;
}/**
- @param {*} globalQueue
- @returns {Promise<>|}
*/
serializeBasicprocessor(globalQueue) {
const res358 = globalQueue;
const res987 = globalQueue;
const res764 = globalQueue;
const res322 = globalQueue;
this.emit("serializebasicprocessor", globalQueue);
return globalQueue;
}
}
module.exports = Manager;
module.exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
JISUANMOXING Application Configuration
Generated: 2026-03-19 19:01:33
app.name=jisuanmoxing
app.version=3.8.5
app.debug=false
app.env=production
server.port=8862
server.host=0.0.0.0
server.timeout=31
database.host=localhost
database.port=4070
database.name=jisuanmoxing_db
database.pool.min=2
database.pool.max=43
cache.type=redis
cache.host=localhost
cache.port=6379
cache.ttl=1218
log.level=INFO
log.path=/var/log/jisuanmoxing
log.max.file.size=100MB
log.max.history=30
security.jwt.secret=89890ebfd6619c9408ca443d3cfa296a
security.jwt.expiry=30182
security.cors.origins=*
<?xml version="1.0" encoding="UTF-8"?>
4.0.0
com.jisuanmoxing
jisuanmoxing-core
2.0.4.RELEASE
jar
jisuanmoxing
Core module for jisuanmoxing project
17
2.0.8
UTF-8
org.springframework.boot
spring-boot-starter-data-jpa
ch.qos.logback
logback-classic
io.netty
netty-all
org.apache.commons
commons-lang3
com.google.guava
guava
com.fasterxml.jackson.core
jackson-databind
org.slf4j
slf4j-api
{
"name": "jisuanmoxing",
"version": "5.2.1",
"description": "Auto-generated jisuanmoxing configuration",
"main": "index.js",
"scripts": {
"start": "node index.js",
"build": "webpack --mode production",
"test": "jest --coverage",
"lint": "eslint src\/",
"dev": "nodemon index.js"
},
"dependencies": {
"express": "^4.4.0",
"lodash": "^4.12.0",
"axios": "^1.4.0",
"dotenv": "^16.0.0"
},
"devDependencies": {
"jest": "^29.5.0",
"eslint": "^8.0.0",
"webpack": "^5.94.0"
},
"engines": {
"node": ">=18.0.0"
},
"license": "MIT"
}