hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
609f97049909ab2c2e5a3d41a5db6d388d857f79
1,449
swift
Swift
Combination Sum.swift
huntergai/LeecodeAlgorithm
1744b981510d9640b4626a592dc6e89993aa8568
[ "MIT" ]
null
null
null
Combination Sum.swift
huntergai/LeecodeAlgorithm
1744b981510d9640b4626a592dc6e89993aa8568
[ "MIT" ]
null
null
null
Combination Sum.swift
huntergai/LeecodeAlgorithm
1744b981510d9640b4626a592dc6e89993aa8568
[ "MIT" ]
null
null
null
/* 给你一个 无重复元素 的整数数组 candidates 和一个目标整数 target ,找出 candidates 中可以使数字和为目标数 target 的 所有 不同组合 ,并以列表形式返回。你可以按 任意顺序 返回这些组合。 candidates 中的 同一个 数字可以 无限制重复被选取 。如果至少一个数字的被选数量不同,则两种组合是不同的。  对于给定的输入,保证和为 target 的不同组合数少于 150 个。   示例 1: 输入:candidates = [2,3,6,7], target = 7 输出:[[2,2,3],[7]] 解释: 2 和 3 可以形成一组候选,2 + 2 + 3 = 7 。注意 2 可以使用多次。 7 也是一个候选, 7 = 7 。 仅有这两种组合。 示例 2: 输入: candidates = [2,3,5], target = 8 输出: [[2,2,2,2],[2,3,3],[3,5]] 示例 3: 输入: candidates = [2], target = 1 输出: []   提示: 1 <= candidates.length <= 30 1 <= candidates[i] <= 200 candidate 中的每个元素都 互不相同 1 <= target <= 500 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/combination-sum 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 */ class Solution { func combinationSum(_ candidates: [Int], _ target: Int) -> [[Int]] { var res = [[Int]]() var path = [Int]() let sortedCandidates = candidates.sorted() backtrack(sortedCandidates, target, 0, &res, &path) return res } func backtrack(_ candidates: [Int], _ target: Int, _ start: Int, _ res: inout [[Int]], _ path: inout [Int]) { if target == 0 { res.append(path) return } for i in start..<candidates.count { if target < candidates[i] { break } path.append(candidates[i]) backtrack(candidates, target - candidates[i], i, &res, &path) path.removeLast() } } }
23.370968
114
0.585921
2acc8174384410c98ef9f116672d5eadb6be42dc
2,064
sql
SQL
db/tournament.sql
ambagasdowa/kml
b56e9eb5671b5dd71485064f481b288c23384033
[ "MIT" ]
null
null
null
db/tournament.sql
ambagasdowa/kml
b56e9eb5671b5dd71485064f481b288c23384033
[ "MIT" ]
16
2020-04-30T02:17:12.000Z
2021-08-07T19:59:38.000Z
db/tournament.sql
ambagasdowa/kml
b56e9eb5671b5dd71485064f481b288c23384033
[ "MIT" ]
null
null
null
drop database if exists `portal_versus`; create database `portal_versus`; use `portal_versus`; grant usage on portal_versus.* to portal_versus@localhost identified by '@portal_versus#'; grant select, insert, update, delete, drop, alter, create temporary tables on portal_versus.* to portal_versus@localhost; flush privileges; /* View configuration */ drop table if exists `challenger_tournament`; create table `challenger_tournament`( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `challenger_name` varchar(150) null, `create` timestamp DEFAULT current_timestamp, `modified` DATETIME, `status` enum('Active','Inactive') NOT NULL default 'Active', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; drop table if exists `tournament`; create table `tournament`( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `tournament_name` varchar(150) null, `create` timestamp DEFAULT current_timestamp, `modified` DATETIME, `status` enum('Active','Inactive') NOT NULL default 'Active', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; drop table if exists `game_tournament`; create table `game_tournament`( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `game_name` varchar(150) null, `create` timestamp DEFAULT current_timestamp, `modified` DATETIME, `status` enum('Active','Inactive') NOT NULL default 'Active', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; drop table if exists `vs_tournament`; create table `vs_tournament`( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `tournament_id` unsigned NOT NULL, `game_tournament_id` int(11) unsigned NOT NULL, `one_challenger_name_id` int(11) unsigned NOT NULL, `two_challenger_name_id` int(11) unsigned NOT NULL, `score_one` tinyint(1) default 0, `score_two` tinyint(1) default 0, `create` timestamp DEFAULT current_timestamp, `modified` DATETIME, `status` enum('Active','Inactive') NOT NULL default 'Active', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
36.210526
121
0.755329
13650868e8f056a6c0cb9f445e72b16a222071d0
4,328
c
C
SdC/BE/chatmmap.c
Hathoute/ENSEEIHT
d42f0b0dedb269e6df3b1c006d4d45e52fc518b8
[ "MIT" ]
1
2021-06-26T21:51:11.000Z
2021-06-26T21:51:11.000Z
SdC/BE/chatmmap.c
Hathoute/ENSEEIHT
d42f0b0dedb269e6df3b1c006d4d45e52fc518b8
[ "MIT" ]
null
null
null
SdC/BE/chatmmap.c
Hathoute/ENSEEIHT
d42f0b0dedb269e6df3b1c006d4d45e52fc518b8
[ "MIT" ]
null
null
null
/* version 0.2.1f (PM, 18/5/21) : La discussion est un tableau de messages, couplé en mémoire partagée. Un message comporte un auteur, un texte et un numéro d'ordre (croissant). Le numéro d'ordre permet à chaque participant de détecter si la discussion a évolué depuis la dernière fois qu'il l'a affichée. La discussion est couplée à un fichier dont le nom est fourni en premier argument de la commande, le second étant le pseudo du participant. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> /* définit mmap */ #include <signal.h> #include <stdarg.h> // #define DEBUG #define TAILLE_AUTEUR 25 #define TAILLE_TEXTE 128 #define NB_LIGNES 20 /* message : numéro d'ordre, auteur (25 caractères max), texte (128 caractères max) */ struct message { int numero; char auteur [TAILLE_AUTEUR]; char texte [TAILLE_TEXTE]; }; /* discussion (20 derniers messages) (la mémoire nécessaire est allouée via mmap(-)) */ struct message * discussion; /* dernier message en position 0 */ int dernier0 = -1; void dprint(const char *format, ...) { #ifdef DEBUG char formated[1024]; va_list args; va_start(args, format); vsprintf(formated, format, args); printf("**DEBUG**: %s", formated); va_end(args); #endif } /* afficher la discussion */ void afficher() { int i; if(discussion[0].numero == dernier0) { return; } else { dernier0 = discussion[0].numero; } system("clear"); /* nettoyage de l'affichage simple, à défaut d'être efficace */ printf("==============================(discussion)==============================\n"); for (i=0; i<NB_LIGNES; i++) { if(discussion[i].numero) { printf("[%s] : %s\n", discussion[i].auteur, discussion[i].texte); } else { printf("\n"); } } printf("------------------------------------------------------------------------\n"); } void traitant (int sig) { /* traitant : rafraîchir la discussion, s'il y a lieu, toutes les secondes */ afficher(); alarm(1); } int main (int argc, char *argv[]) { struct message m; int i,taille,fdisc; FILE * clavier; #ifdef DEBUG argc = 3; char* args[] = {"chatmmap", "desc", "usr1"}; argv = args; #endif if (argc != 3) { printf("usage: %s <discussion> <participant>\n", argv[0]); exit(1); } /* ouvrir et coupler discussion */ if ((fdisc = open (argv[1], O_RDWR | O_CREAT, 0666)) == -1) { printf("erreur ouverture discussion\n"); exit(2); } /* mmap ne spécifie pas quel est le résultat d'une écriture *après* la fin d'un fichier couplé (l'envoi de SIGBUS est un effet possible, fréquent). Il faut donc fixer la taille du fichier couplé à la taille de la discussion *avant* le couplage. Le plus simple serait d'utiliser truncate, mais ici on préfère lseek(à la taille de la discussion) suivi de l'écriture d'un octet (write), qui sont déjà connus. */ taille = sizeof(struct message)*NB_LIGNES; lseek (fdisc, taille, SEEK_SET); write (fdisc, &i, 1); signal(SIGALRM, traitant); alarm(1); /* - couplage et initialisations - boucle : lire une ligne au clavier, décaler la discussion d'une ligne vers le haut et insérer la ligne saisie en fin. Notes : - le rafraîchissement peut être géré par un traitant. - la saisie d'un message fixé ("au revoir", par exemple) doit permettre de sortir de la boucle, et du programme */ discussion = (struct message*)mmap(NULL, taille, PROT_READ | PROT_WRITE, MAP_SHARED, fdisc, 0); while(1) { char input[128]; int len = read(STDIN_FILENO, input, sizeof(input)); input[len-1] = '\0'; dprint("stdin: %s\n", input); int next_id = discussion[0].numero; memmove(discussion+1, discussion, sizeof(struct message)*(NB_LIGNES-1)); memset(discussion, 0, sizeof(discussion)); discussion[0].numero = ++next_id; strcpy(discussion[0].texte, input); strcpy(discussion[0].auteur, argv[2]); if(strcmp(input, "au revoir") == 0) { break; } traitant(0); } close(fdisc); exit(0); }
29.04698
99
0.603281
2cb055e067dc47d153111173eef7148d64d5625a
684
swift
Swift
Sources/TuistCache/Cache/ScaleHEADResponse.swift
miscampbell/tuist
265c9a8bc9090a2962992c087072ecf628933a1e
[ "MIT" ]
null
null
null
Sources/TuistCache/Cache/ScaleHEADResponse.swift
miscampbell/tuist
265c9a8bc9090a2962992c087072ecf628933a1e
[ "MIT" ]
null
null
null
Sources/TuistCache/Cache/ScaleHEADResponse.swift
miscampbell/tuist
265c9a8bc9090a2962992c087072ecf628933a1e
[ "MIT" ]
null
null
null
import Foundation import TuistCore import TuistSupport struct ScaleHEADResponse: Decodable { public init() {} public static func existsResource(hash: String, scale: Scale) throws -> HTTPResource<ScaleResponse<ScaleHEADResponse>, ScaleHEADResponseError> { let url = try URL.apiCacheURL(hash: hash, cacheURL: scale.url, projectId: scale.projectId) var request = URLRequest(url: url) request.httpMethod = "HEAD" return HTTPResource(request: { request }, parse: { _, _ in ScaleResponse(status: "HEAD", data: ScaleHEADResponse()) }, parseError: { _, _ in ScaleHEADResponseError() }) } }
40.235294
148
0.656433
713a71186a92086cb856cfd7e60ad54639c10568
3,242
ts
TypeScript
typescriptex.ts
shawty/html5nativedraganddrop
3b089c7d79efb9ea477aefc56b4bcda79da98f1a
[ "MIT" ]
null
null
null
typescriptex.ts
shawty/html5nativedraganddrop
3b089c7d79efb9ea477aefc56b4bcda79da98f1a
[ "MIT" ]
null
null
null
typescriptex.ts
shawty/html5nativedraganddrop
3b089c7d79efb9ea477aefc56b4bcda79da98f1a
[ "MIT" ]
null
null
null
class fileLoader { constructor(fileObject: any) { this.reader = new FileReader(); this.setUpHandlers(); this.reader.readAsDataURL(fileObject); } public reader: FileReader private setUpHandlers() { this.reader.addEventListener('load', (event) => { this.handleLoad(event); }); } public handleLoad(event: any) { // TODO: Find out the proper event type in typescript for this // Get our file as a base 64 data uri var url = event.target.result; // Get a ref to the actual image var theImage: HTMLImageElement = <HTMLImageElement>document.getElementById('theImage'); // And change it's source to the base 64 url we got by reading the file. theImage.src = url; } } class DragAndDrop { constructor() { this.dropTarget = <HTMLDivElement>document.getElementById('dropTarget'); this.addEventHandlers(); } public dropTarget: HTMLDivElement; public addEventHandlers() { this.dropTarget.addEventListener('dragenter', (event: DragEvent) => { this.handleDragEnter(event); }) this.dropTarget.addEventListener('dragover', (event: DragEvent) => { this.handleDragOver(event); }) this.dropTarget.addEventListener('dragleave', (event: DragEvent) => { this.handleDragLeave(event); }) this.dropTarget.addEventListener('drop', (event: DragEvent) => { this.handleDrop(event); }) } public handleDragEnter(event: DragEvent) { console.log("Drag Enter Occured"); this.dropTarget.classList.add("active"); event.preventDefault(); } public handleDragOver(event: DragEvent) { console.log("Drag Over"); // Must return false otherwise browser WILL NOT allow drop on target event.preventDefault(); return false; } public handleDragLeave(event: DragEvent) { console.log("Drag Leave"); this.dropTarget.classList.remove("active"); event.preventDefault(); } public handleDrop(event: DragEvent) { console.log("Drop"); event.stopPropagation(); event.preventDefault(); this.dropTarget.classList.remove("active"); var dataType; var dataValue; //get the URL of elements being dragged here try { dataValue = event.dataTransfer.getData('text/uri-list'); dataType = 'text/uri-list'; } catch (e) { // Browsers that don't support drag & drop native will end up here, and you'll have a URL (I think :-) ) dataValue = event.dataTransfer.getData('URL'); dataType = 'URL'; } if (dataType == 'URL') { // Handle the older stuff here } else { // Other browsers here that is IE10+, and FF & Chrome var dataFiles = event.dataTransfer.files; if (dataFiles.length > 1) { alert("Please drag only one file at a time"); return; } if (!dataFiles[0].type.match('image.*')) { alert("Please only drag image files onto the drop target"); return; } var myLoader = new fileLoader(dataFiles[0]); } } } var myDragAndDrop = new DragAndDrop();
24.19403
111
0.611351
2e82f76a0e425c12bf58683d2657a9d83d40023c
13,465
swift
Swift
src/Shared/CurvedGlyphLayer.swift
mormahr/GoMap
f2f4d13eeae6e374c8deeeccc342ed68bb89a21d
[ "0BSD" ]
null
null
null
src/Shared/CurvedGlyphLayer.swift
mormahr/GoMap
f2f4d13eeae6e374c8deeeccc342ed68bb89a21d
[ "0BSD" ]
null
null
null
src/Shared/CurvedGlyphLayer.swift
mormahr/GoMap
f2f4d13eeae6e374c8deeeccc342ed68bb89a21d
[ "0BSD" ]
null
null
null
// // CurvedGlyphLayer.swift // Go Map!! // // Created by Bryce Cogswell on 5/6/20. // Copyright © 2020 Bryce. All rights reserved. // import CoreText import Foundation import QuartzCore private struct TextLoc { var pos: CGPoint var angle: CGFloat var length: CGFloat } private class PathPoints { public let points : [CGPoint] public let length : CGFloat private var offset : CGFloat = 0.0 private var segment : Int = 0 init(WithPath path:CGPath) { let count = CGPathPointCount( path ) self.points = Array<CGPoint>(unsafeUninitializedCapacity: count) { buffer, initializedCount in initializedCount = CGPathGetPoints( path, buffer.baseAddress ) } var len : CGFloat = 0.0; for i in 1 ..< points.count { len += hypot( points[i].x - points[i-1].x, points[i].y - points[i-1].y ) } self.length = len } func resetOffset() { segment = 0 offset = 0.0 } func advanceOffsetBy(_ delta2 : CGFloat ) -> Bool { var delta = delta2 while segment < points.count-1 { let len = hypot( points[segment+1].x - points[segment].x, points[segment+1].y - points[segment].y ) if offset+delta < len { offset += delta return true } delta -= len - offset segment += 1 offset = 0.0 } return false } func positionAndAngleForCurrentOffset(withBaselineOffset baseline:CGFloat) -> TextLoc? { if segment >= points.count-1 { return nil } let p1 = points[ segment ] let p2 = points[ segment+1 ] var dx = p2.x - p1.x var dy = p2.y - p1.y let len = hypot(dx,dy) let a = atan2(dy,dx) dx /= len; dy /= len; let baselineOffset2 = CGPoint( x: dy * baseline, y: -dx * baseline ) return TextLoc(pos: CGPoint(x: p1.x + offset * dx + baselineOffset2.x, y: p1.y + offset * dy + baselineOffset2.y), angle: a, length: len - offset) } } private class StringGlyphs { // static stuff public static var uiFont = UIFont.preferredFont(forTextStyle: .subheadline) private static let cache = { () -> NSCache<NSString, StringGlyphs> in NotificationCenter.default.addObserver(StringGlyphs.self, selector: #selector(StringGlyphs.fontSizeDidChange), name: UIContentSizeCategory.didChangeNotification, object: nil) let c = NSCache<NSString, StringGlyphs>() c.countLimit = 100 return c }() @objc class private func fontSizeDidChange() { StringGlyphs.uiFont = UIFont.preferredFont(forTextStyle: UIFont.TextStyle.subheadline) StringGlyphs.cache.removeAllObjects() } // objects public let runs : [CTRun] public let rect : CGRect private init?(withString string:NSString) { let attrString = NSAttributedString(string:string as String, attributes: [ NSAttributedString.Key.font: StringGlyphs.uiFont ]) let ctLine = CTLineCreateWithAttributedString( attrString ) guard let runs = (CTLineGetGlyphRuns(ctLine) as? [CTRun]) else { return nil } self.runs = runs self.rect = CTLineGetBoundsWithOptions( ctLine, CTLineBoundsOptions.useGlyphPathBounds ) } public static func glyphsForRun( _ run : CTRun ) -> [CGGlyph] { let count = CTRunGetGlyphCount(run) let glyphs = Array<CGGlyph>(unsafeUninitializedCapacity: count) { buffer, initializedCount in CTRunGetGlyphs(run, CFRangeMake(0,count), buffer.baseAddress!) initializedCount = count } return glyphs } public static func advancesForRun( _ run : CTRun ) -> [CGSize] { let count = CTRunGetGlyphCount(run) let advances = Array<CGSize>(unsafeUninitializedCapacity: count) { buffer, initializedCount in CTRunGetAdvances(run, CFRangeMake(0,count), buffer.baseAddress!) initializedCount = count } return advances } public static func stringIndicesForRun( _ run : CTRun ) -> [CFIndex] { let count = CTRunGetGlyphCount(run) let advances = Array<CFIndex>(unsafeUninitializedCapacity: count) { buffer, initializedCount in CTRunGetStringIndices( run, CFRangeMake(0,count), buffer.baseAddress! ) initializedCount = count } return advances } public static func fontForRun( _ run : CTRun ) -> CTFont { let attr = CTRunGetAttributes(run) as Dictionary let value = attr["NSFont" as NSString] let font = value as! CTFont return font } public static func stringGlyphsForString(string:NSString) -> StringGlyphs? { if let glyphs = StringGlyphs.cache.object(forKey:string) { return glyphs } else if let glyphs = StringGlyphs(withString:string) { StringGlyphs.cache.setObject(glyphs, forKey:string as NSString) return glyphs } else { return nil } } } @objc class CurvedGlyphLayer : NSObject { // static stuff public static var foreColor = UIColor.white public static var backColor = UIColor.black @objc static var whiteOnBlack: Bool = true { willSet(newValue) { if ( newValue != whiteOnBlack ) { GlyphLayer.fontSizeDidChange() CurvedGlyphLayer.foreColor = newValue ? UIColor.white : UIColor.black CurvedGlyphLayer.backColor = (newValue ? UIColor.black : UIColor.white).withAlphaComponent(0.3) } } } // objects private let stringGlyphs : StringGlyphs private let pathPoints : PathPoints // calling init() on a CALayer subclass from Obj-C doesn't work on iOS 9 private init(withGlyphs stringGlyphs:StringGlyphs, frame:CGRect, pathPoints:PathPoints) { self.stringGlyphs = stringGlyphs self.pathPoints = pathPoints super.init() } @objc static public func layer(WithString string:NSString, alongPath path:CGPath) -> CurvedGlyphLayer? { guard let glyphRuns = StringGlyphs.stringGlyphsForString(string:string) else { return nil } let pathPoints = PathPoints(WithPath: path) if glyphRuns.rect.size.width+8 >= pathPoints.length { return nil // doesn't fit } let frame = path.boundingBox.insetBy(dx: -20, dy: -20) let layer = CurvedGlyphLayer(withGlyphs:glyphRuns, frame:frame, pathPoints: pathPoints) return layer } @objc func glyphLayers() -> [GlyphLayer]? { pathPoints.resetOffset() guard pathPoints.advanceOffsetBy( (pathPoints.length - stringGlyphs.rect.width) / 2 ) else { return nil } let baselineOffset : CGFloat = 3 var layers : [GlyphLayer] = [] for run in stringGlyphs.runs { let runFont = StringGlyphs.fontForRun( run ) // every run potentially has a different font, due to font substitution let glyphs = StringGlyphs.glyphsForRun( run ) let advances = StringGlyphs.advancesForRun( run ) let size = CTFontGetBoundingBox( runFont ).size var glyphIndex = 0 while glyphIndex < glyphs.count { var layerGlyphs : [CGGlyph] = [] var layerPositions : [CGPoint] = [] var position : CGFloat = 0.0 var start : TextLoc? = nil while glyphIndex < glyphs.count { guard let loc = pathPoints.positionAndAngleForCurrentOffset(withBaselineOffset: baselineOffset) else { return nil } if start == nil { start = loc } else { var a = loc.angle - start!.angle if a < -CGFloat.pi { a += 2*CGFloat.pi } else if a > CGFloat.pi { a -= 2*CGFloat.pi } if abs(a) * (180.0/CGFloat.pi) > 1.0 { // hit an angle so stop the run if a < 0 { // If this is an acute angle then we need to advance a little extra so the next run doesn't overlap with this run let h = baselineOffset/2 + size.height if -a < CGFloat.pi/2 { let d = h * sin(-a) _ = pathPoints.advanceOffsetBy( d ) } else { let a2 = CGFloat.pi - -a let d1 = h / sin(a2) let d2 = h / tan(a2) let d3 = min( d1+d2, 3*h ) _ = pathPoints.advanceOffsetBy( d3 ) } } break } } let glyphWidth = advances[glyphIndex].width layerGlyphs.append(glyphs[glyphIndex]) layerPositions.append(CGPoint(x: position, y: 0.0)) position += glyphWidth _ = pathPoints.advanceOffsetBy( glyphWidth ) glyphIndex += 1 } layerPositions.append(CGPoint(x: position, y: 0.0)) guard let glyphLayer = GlyphLayer.layer(withFont: runFont, glyphs: layerGlyphs, positions:layerPositions) else { return nil } glyphLayer.position = start!.pos glyphLayer.anchorPoint = CGPoint(x:0,y:1) glyphLayer.setAffineTransform( CGAffineTransform(rotationAngle: start!.angle) ) layers.append(glyphLayer) layerGlyphs.removeAll() layerPositions.removeAll() } } return layers } // return a non-curved rectangular layer @objc static func layerWithString(_ string: String) -> CATextLayerWithProperties? { let MAX_TEXT_WIDTH : CGFloat = 100.0 // Don't cache these here because they are cached by the objects they are attached to let layer = CATextLayerWithProperties() layer.contentsScale = UIScreen.main.scale; let font = StringGlyphs.uiFont let paragraphStyle = NSMutableParagraphStyle() paragraphStyle.lineSpacing = font.lineHeight - font.ascender + font.descender + 6 // FIXME: 6 is a fudge factor so wrapped Chinese displays correctly, but English is now too large let attrString = NSAttributedString(string: string, attributes: [ NSAttributedString.Key.foregroundColor: CurvedGlyphLayer.foreColor.cgColor, NSAttributedString.Key.font: font, NSAttributedString.Key.paragraphStyle: paragraphStyle]) let framesetter = CTFramesetterCreateWithAttributedString(attrString) var bounds = CGRect.zero var maxWidth = MAX_TEXT_WIDTH while true { bounds.size = CTFramesetterSuggestFrameSizeWithConstraints(framesetter, CFRangeMake(0, attrString.length), nil, CGSize(width: maxWidth, height: 1000.0), nil) if bounds.height < maxWidth { break } maxWidth *= 2 } bounds = bounds.insetBy( dx: -3, dy: -1 ) bounds.size.width = 2 * ceil( bounds.size.width/2 ) // make divisible by 2 so when centered on anchor point at (0.5,0.5) everything still aligns bounds.size.height = 2 * ceil( bounds.size.height/2 ) layer.bounds = bounds layer.string = attrString layer.truncationMode = CATextLayerTruncationMode.none layer.isWrapped = true layer.alignmentMode = CATextLayerAlignmentMode.left // because our origin is -3 this is actually centered layer.backgroundColor = backColor.cgColor return layer; } } class GlyphLayer : CALayerWithProperties { private static let cache = { () -> NSCache<NSData, GlyphLayer> in NotificationCenter.default.addObserver(StringGlyphs.self, selector: #selector(GlyphLayer.fontSizeDidChange), name: UIContentSizeCategory.didChangeNotification, object: nil) let c = NSCache<NSData, GlyphLayer>() c.countLimit = 200 return c }() private let glyphs:[CGGlyph] private let positions:[CGPoint] private let font:CTFont // Calling super.init() on a CALayer subclass that contains a var doesn't work on iOS 9 // Declaring it NSManaged avoids this bug @NSManaged var inUse : Bool private func copy() -> GlyphLayer { return GlyphLayer(withCopy: self) } override func removeFromSuperlayer() { inUse = false super.removeFromSuperlayer() } @objc static func fontSizeDidChange() { cache.removeAllObjects() } @objc override func action(forKey event: String) -> CAAction? { // we don't want any animated actions return NSNull() } private init(withFont font:CTFont, glyphs:[CGGlyph], positions:[CGPoint]) { self.glyphs = glyphs self.positions = positions self.font = font super.init() self.inUse = true let size = CTFontGetBoundingBox( font ).size let descent = CTFontGetDescent( font ) self.bounds = CGRect(x:0, y:descent, width: positions.last!.x, height: size.height) self.contentsScale = UIScreen.main.scale self.anchorPoint = CGPoint.zero self.backgroundColor = CurvedGlyphLayer.backColor.cgColor self.setNeedsDisplay() } private init(withCopy copy:GlyphLayer) { self.glyphs = copy.glyphs self.positions = copy.positions self.font = copy.font super.init() self.inUse = true self.contentsScale = copy.contentsScale self.anchorPoint = copy.anchorPoint self.bounds = copy.bounds self.backgroundColor = copy.backgroundColor #if false // BUG: apparently the contents can be invalidated without us being notified, resulting in missing glyphs self.contents = copy.contents // use existing backing store so we don't have to redraw #else setNeedsDisplay() // FIXME: need to either fix this problem or cache better #endif } static public func layer(withFont font:CTFont, glyphs:[CGGlyph], positions:[CGPoint]) -> GlyphLayer? { let key = glyphs.withUnsafeBytes { a in return NSData(bytes: a.baseAddress, length: a.count) } if let layer = cache.object(forKey: key) { if layer.inUse { return layer.copy() } layer.inUse = true return layer } else { let layer = GlyphLayer(withFont: font, glyphs: glyphs, positions: positions) cache.setObject(layer, forKey: key) return layer } } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func draw(in context: CGContext) { context.saveGState() context.textMatrix = CGAffineTransform.identity context.translateBy(x: 0, y: self.bounds.size.height) context.scaleBy(x: 1.0, y: -1.0); context.setFillColor(CurvedGlyphLayer.foreColor.cgColor) CTFontDrawGlyphs(font, glyphs, positions, glyphs.count, context) context.restoreGState() } }
29.528509
181
0.692388
21dc7e19158874b82a86c2980aae1d0b4a4393ee
161
html
HTML
src/app/app.component.html
SkyZH/stronghold-vision-webdashboard
8f2935c0e2ffa87a5ab41204336b551bb270f561
[ "MIT" ]
null
null
null
src/app/app.component.html
SkyZH/stronghold-vision-webdashboard
8f2935c0e2ffa87a5ab41204336b551bb270f561
[ "MIT" ]
null
null
null
src/app/app.component.html
SkyZH/stronghold-vision-webdashboard
8f2935c0e2ffa87a5ab41204336b551bb270f561
[ "MIT" ]
null
null
null
<header> <nav class="navbar navbar-light"> <a class="navbar-brand">{{ api.title }}</a> </nav> </header> <main> <router-outlet></router-outlet> </main>
17.888889
47
0.608696
3bbb622ad826cfe78c9b394e72abcda8d9f37522
3,094
kt
Kotlin
app/src/main/kotlin/com/jameskbride/codemashcompanion/main/MainActivityImpl.kt
jameskbride/codemash-companion
5700a3828ae8dfd45c2049736d55343974dab137
[ "MIT" ]
2
2017-12-05T03:13:31.000Z
2019-01-10T13:10:47.000Z
app/src/main/kotlin/com/jameskbride/codemashcompanion/main/MainActivityImpl.kt
jameskbride/codemash-companion
5700a3828ae8dfd45c2049736d55343974dab137
[ "MIT" ]
20
2017-12-06T01:57:34.000Z
2020-01-04T16:25:14.000Z
app/src/main/kotlin/com/jameskbride/codemashcompanion/main/MainActivityImpl.kt
jameskbride/codemash-companion
5700a3828ae8dfd45c2049736d55343974dab137
[ "MIT" ]
1
2017-12-16T15:50:48.000Z
2017-12-16T15:50:48.000Z
package com.jameskbride.codemashcompanion.main import android.os.Bundle import com.google.android.material.tabs.TabLayout import androidx.viewpager.widget.ViewPager import androidx.appcompat.widget.Toolbar import android.view.Menu import android.view.MenuItem import com.jameskbride.codemashcompanion.R import com.jameskbride.codemashcompanion.about.AboutActivity import com.jameskbride.codemashcompanion.codeofconduct.CodeOfConductActivity import com.jameskbride.codemashcompanion.utils.IntentFactory class MainActivityImpl constructor(val intentFactory: IntentFactory = IntentFactory()) { var mSectionsPagerAdapter: SectionsPagerAdapter? = null private lateinit var mainActivity: MainActivity fun onCreate(savedInstanceState: Bundle?, mainActivity: MainActivity) { this.mainActivity = mainActivity mainActivity.setContentView(R.layout.activity_main) val container = mainActivity.findViewById<androidx.viewpager.widget.ViewPager>(R.id.container) val toolbar = mainActivity.findViewById<Toolbar>(R.id.toolbar) toolbar.title = container.resources.getString(R.string.sessions) mainActivity.setSupportActionBar(toolbar) mSectionsPagerAdapter = SectionsPagerAdapter(mainActivity.supportFragmentManager) container.adapter = mSectionsPagerAdapter val tabs = mainActivity.findViewById<TabLayout>(R.id.tabs) container.addOnPageChangeListener(TabLayout.TabLayoutOnPageChangeListener(tabs)) tabs.addOnTabSelectedListener(MainTabSelectListener(toolbar, container)) } fun onCreateOptionsMenu(menu: Menu?, mainActivity: MainActivity): Boolean { val inflater = mainActivity.getMenuInflater() inflater.inflate(R.menu.menu_main, menu) return true } fun onOptionsItemSelected(item: MenuItem, mainActivity: MainActivity): Boolean { return when (item.getItemId()) { R.id.action_about -> { navigateToAbout() true } R.id.action_code_of_conduct -> { navigateToCodeOfConduct() return true } else -> mainActivity.onSuperOptionsItemSelected(item) } } private fun navigateToCodeOfConduct() { val intent = intentFactory.make(mainActivity, CodeOfConductActivity::class.java) mainActivity.startActivity(intent) } private fun navigateToAbout() { val intent = intentFactory.make(mainActivity, AboutActivity::class.java) mainActivity.startActivity(intent) } } class MainTabSelectListener constructor(val toolbar: Toolbar, val container: androidx.viewpager.widget.ViewPager): TabLayout.ViewPagerOnTabSelectedListener(container) { override fun onTabSelected(tab: TabLayout.Tab?) { super.onTabSelected(tab) toolbar.title = when(tab?.position) { 1 -> container.resources.getString(R.string.speakers) 2 -> container.resources.getString(R.string.schedule) else -> container.resources.getString(R.string.sessions) } } }
39.666667
168
0.725921
615e4fb91ba4dec4d514f061db1b76ff6cac5f6d
1,681
css
CSS
UI/stylesheet/car-detail.css
ushnuel/Auto-Mart
500d28176d05f31d6dd80131002634fe16e6e527
[ "MIT" ]
null
null
null
UI/stylesheet/car-detail.css
ushnuel/Auto-Mart
500d28176d05f31d6dd80131002634fe16e6e527
[ "MIT" ]
1
2019-06-18T17:18:42.000Z
2019-06-18T17:18:42.000Z
UI/stylesheets/car-detail.css
ushnuel/Auto-Mart
500d28176d05f31d6dd80131002634fe16e6e527
[ "MIT" ]
null
null
null
a, a:hover { text-decoration: none; } h1 { text-transform: capitalize; } .car-detail-header-container { display: flex; flex-direction: column; background: rgb(72, 161, 72); } .car-detail-header { display: flex; justify-content: center; align-items: center; margin: 10px; } .auto-mart-car-detail { padding: 5px; margin: 5px; } .car-detail-container { display: flex; margin: 10px; padding: 10px; } .car-specifications { display: flex; padding: 5px; justify-content: flex-start; } .car-specs-table { padding: 5px; border: none; border-radius: 5px; box-shadow: 0 7px 12px 0 rgba(17, 17, 17, 0.2); } td { padding: 8px 10px; } tr { margin: 2px; } .car-detail-box { display: flex; flex-direction: column; padding: 10px; margin: 10px 40px; justify-content: flex-end; width: 100%; flex-wrap: wrap; box-shadow: 0 7px 12px 0 rgba(17, 17, 17, 0.2); border-radius: 5px; } .cart-fraudulent { display: flex; align-items: center; justify-content: center; } .cart-fraudulent a { color: black; } .cart-fraudulent button { font-size: 16px; font-weight: bold; } .similar { display: flex; justify-content: center; align-items: center; text-transform: uppercase; font-weight: 200; font-family: Arial, Helvetica, sans-serif; margin: 15px 7px 5px 5px; } .well button { font-size: 16px; font-weight: bold; } @media all and (max-width: 600px) { .car-detail-box { width: 95%; margin: 5px; } .car-detail-box img { width: 100%; } .car-detail-container { display: flex; flex-direction: column; } .car-specifications { width: 100%; } .car-specs-table { width: 100%; } }
16.81
49
0.64188
856a26f10d5021a3e16001ca51f45a1b25c8b44d
3,646
js
JavaScript
src/components/mailChimpSignUp.js
pedroeldiablo/new-gatsby-blog
71a10d30d3bc9b030ea70a4ca9f4d4931420831f
[ "MIT" ]
null
null
null
src/components/mailChimpSignUp.js
pedroeldiablo/new-gatsby-blog
71a10d30d3bc9b030ea70a4ca9f4d4931420831f
[ "MIT" ]
3
2020-09-11T14:47:19.000Z
2020-09-11T23:52:17.000Z
src/components/mailChimpSignUp.js
pedroeldiablo/new-gatsby-blog
71a10d30d3bc9b030ea70a4ca9f4d4931420831f
[ "MIT" ]
null
null
null
import React, { useState, useEffect } from 'react'; import addToMailchimp from 'gatsby-plugin-mailchimp'; export const MailChimpSignUp = () => { const [email, setEmail] = useState(''); const [listFields, updateListFields] = useState({ FNAME: '', LNAME: '' }); // `addToMailchimp` returns a promise // Note that you need to send an email & optionally, listFields // these values can be pulled from React state, form fields const handleChange = e => { updateListFields({ ...listFields, [`${e.name}`]: e.value }); }; // see form entries and updates in console for debugging useEffect(() => { console.log('EMAIL', email); console.log('newly updated', listFields); }); const handleSubmit = async e => { e.preventDefault(); console.log(email, listFields); const result = await addToMailchimp(email, listFields) .then(({ msg, result }) => { console.log('msg', `${result}: ${msg}`); if (result !== 'success') { throw msg; } alert(msg); }) .catch(err => { console.log('err', err); alert(err); }); console.log(result); // I recommend setting `result` to React state // but you can do whatever you want }; return ( <form onSubmit={handleSubmit} method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" className="validate" target="_blank" noValidate > <div id="mc_embed_signup_scroll"> <h2>Subscribe</h2> <div className="indicates-required"> <span className="asterisk">*</span> indicates required </div> <div className="mc-field-group"> <label htmlFor="mce-EMAIL"> {`Email Address`} <span className="asterisk">*</span> </label> <input type="email" name="EMAIL" className="required email" id="mce-EMAIL" value={email} onChange={e => { setEmail(e.target.value); console.log(email); }} ></input> </div> <div className="mc-field-group"> <label htmlFor="mce-FNAME">First Name </label> <input type="text" name="FNAME" className="" id="mce-FNAME" value={listFields['FNAME']} onChange={e => handleChange(e.target)} ></input> </div> <div className="mc-field-group"> <label htmlFor="mce-LNAME">Last Name </label> <input type="text" name="LNAME" className="" id="mce-LNAME" value={listFields['LNAME']} onChange={e => handleChange(e.target)} ></input> </div> {/* <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> */} <div style={{ position: `absolute`, left: `-5000px` }} aria-hidden="true" > <input type="text" name="b_b4b54af180d24c229a5ee6172_4635aac635" tabIndex="-1" value={listFields['b_b4b54af180d24c229a5ee6172_4635aac635']} onChange={e => handleChange(e.target)} ></input> </div> <div className="clear"> <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" className="button" ></input> </div> </div> </form> ); }; export default MailChimpSignUp;
29.403226
128
0.529073
c6d14bddea7c913c7b457d1f8e3082ae1af74f0c
232
rb
Ruby
db/migrate/20210620142608_create_fixed_events.rb
bula21/orca
9cd08aa73a732e4e50d6760b7a083c12181d5983
[ "MIT" ]
4
2019-10-31T14:10:23.000Z
2019-11-18T08:34:34.000Z
db/migrate/20210620142608_create_fixed_events.rb
bula21/orca
9cd08aa73a732e4e50d6760b7a083c12181d5983
[ "MIT" ]
26
2020-06-19T09:11:13.000Z
2022-03-27T15:51:31.000Z
db/migrate/20210620142608_create_fixed_events.rb
bula21/orca
9cd08aa73a732e4e50d6760b7a083c12181d5983
[ "MIT" ]
2
2020-11-29T11:57:53.000Z
2022-01-20T21:17:56.000Z
class CreateFixedEvents < ActiveRecord::Migration[6.0] def change create_table :fixed_events do |t| t.jsonb :title, default: {} t.datetime :starts_at t.datetime :ends_at t.timestamps end end end
19.333333
54
0.659483
1c685edead1a4a5609ee55f8276bdeb3066e94d6
311
swift
Swift
routeTests/ValuesForTest.swift
abiliogp/Route
5c4c7e65735d2c8a057474fd99e5cbd2c71c26f5
[ "MIT" ]
null
null
null
routeTests/ValuesForTest.swift
abiliogp/Route
5c4c7e65735d2c8a057474fd99e5cbd2c71c26f5
[ "MIT" ]
3
2020-02-21T11:19:00.000Z
2020-02-21T20:54:35.000Z
routeTests/ValuesForTest.swift
abiliogp/Route
5c4c7e65735d2c8a057474fd99e5cbd2c71c26f5
[ "MIT" ]
null
null
null
// // ValuesForTest.swift // routeTests // // Created by Abilio Gambim Parada on 19/02/2020. // Copyright © 2020 Abilio Gambim Parada. All rights reserved. // import Foundation struct ValuesForTest { static let timeoutExpect = 5.0 static let countAllNodes = 7 static let countNodesFrom = 6 }
18.294118
63
0.70418
df3390e8a82b1e353bfd9d9e632b8d823802d036
894
rb
Ruby
db/migrate/20150914215247_add_ci_tags.rb
sue445/gitlabhq
e3edd53ae420e3cd581be9ac1029df8a0c93daab
[ "MIT" ]
8
2017-07-07T19:17:26.000Z
2022-03-22T04:45:48.000Z
db/migrate/20150914215247_add_ci_tags.rb
sue445/gitlabhq
e3edd53ae420e3cd581be9ac1029df8a0c93daab
[ "MIT" ]
null
null
null
db/migrate/20150914215247_add_ci_tags.rb
sue445/gitlabhq
e3edd53ae420e3cd581be9ac1029df8a0c93daab
[ "MIT" ]
32
2016-05-10T14:34:43.000Z
2022-02-16T14:03:26.000Z
class AddCiTags < ActiveRecord::Migration def change create_table "ci_taggings", force: true do |t| t.integer "tag_id" t.integer "taggable_id" t.string "taggable_type" t.integer "tagger_id" t.string "tagger_type" t.string "context", limit: 128 t.datetime "created_at" end add_index "ci_taggings", ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "ci_taggings_idx", unique: true, using: :btree add_index "ci_taggings", ["taggable_id", "taggable_type", "context"], name: "index_ci_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree create_table "ci_tags", force: true do |t| t.string "name" t.integer "taggings_count", default: 0 end add_index "ci_tags", ["name"], name: "index_ci_tags_on_name", unique: true, using: :btree end end
37.25
164
0.671141
40230a845a4e82b8acb7d4e5516668ba74e1c2ad
2,751
py
Python
tests/test_config.py
dstarner/pacyam
2aee72baed5b4413074175054118b0761ce608a3
[ "MIT" ]
3
2018-10-02T13:04:41.000Z
2020-07-20T11:28:03.000Z
tests/test_config.py
dstarner/pacyam
2aee72baed5b4413074175054118b0761ce608a3
[ "MIT" ]
3
2018-10-11T19:11:11.000Z
2018-11-09T17:03:01.000Z
tests/test_config.py
dstarner/pacyam
2aee72baed5b4413074175054118b0761ce608a3
[ "MIT" ]
null
null
null
import os import unittest from pacyam.pacyam import Configuration, BuildException REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) class ConfigurationTestCase(unittest.TestCase): test_configs_root = os.path.join(REPO_ROOT, 'tests', 'test-configs') project_root = os.path.join(REPO_ROOT, 'tests', 'project') def test_invalid_root_dir(self): root = 'totes-invalid-dir' config_path = 'config.json' with self.assertRaises(BuildException): Configuration.load( root_directory=root, config_file_name=config_path, ) def test_missing_config_path(self): root = self.test_configs_root config_path = 'not-available-config.json' with self.assertRaises(BuildException): Configuration.load( root_directory=root, config_file_name=config_path ) def test_invalid_json_file(self): root = self.test_configs_root config_path = 'bad_json.json' with self.assertRaises(BuildException): Configuration.load( root_directory=root, config_file_name=config_path ) def test_unique_config_path(self): root = self.test_configs_root config_path = 'some-unique-name.json' config = Configuration.load( root_directory=root, config_file_name=config_path ) self.assertTrue( os.path.basename(config.config_file_path), config_path ) self.assertEqual(config.root_directory, root) def test_invalid_config(self): root = self.test_configs_root config_path = 'config.json' with self.assertRaises(BuildException): Configuration.load( root_directory=root, config_file_name=config_path ) def test_template_paths(self): root = self.project_root config_path = 'config.json' config = Configuration.load( root_directory=root, config_file_name=config_path ) expected = [ "builders/virtualbox.yaml", "builders/virtualbox.yaml", "post-processors/vagrant.yaml", "provisioners/core.yaml" ] self.assertEqual(config.template_paths, expected) def test_variable_paths(self): root = self.project_root config_path = 'config.json' config = Configuration.load( root_directory=root, config_file_name=config_path ) expected = [ "variables/default.yaml" ] self.assertEqual(config.variable_paths, expected)
31.261364
72
0.613232
e69000fef800dc1025466615f7760cdfe6118480
839
sql
SQL
TABLAS BD VIATICOS/configuraciones/vyp_bancos.sql
douglasvela/code_igniter
722856f49b82d0eb09e47d092aea5a404666e1cf
[ "MIT" ]
null
null
null
TABLAS BD VIATICOS/configuraciones/vyp_bancos.sql
douglasvela/code_igniter
722856f49b82d0eb09e47d092aea5a404666e1cf
[ "MIT" ]
null
null
null
TABLAS BD VIATICOS/configuraciones/vyp_bancos.sql
douglasvela/code_igniter
722856f49b82d0eb09e47d092aea5a404666e1cf
[ "MIT" ]
null
null
null
-- -- Estructura de tabla para la tabla `vyp_bancos` -- DROP TABLE IF EXISTS `vyp_bancos`; CREATE TABLE `vyp_bancos` ( `id_banco` int(10) UNSIGNED NOT NULL DEFAULT '0', `nombre` varchar(50) NOT NULL, `caracteristicas` varchar(100) NOT NULL, `codigo_a` varchar(25) NOT NULL, `codigo_b` varchar(25) NOT NULL, `delimitador` varchar(2) NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `vyp_bancos` -- INSERT INTO `vyp_bancos` (`id_banco`, `nombre`, `caracteristicas`, `codigo`, `delimitador`, `archivo`) VALUES (1, 'Banco Agrícola', '', '127', '', ''), (2, 'Banco Cuscatlán', '', '2647', '', ''), (3, 'Banco Hipotecario', '', '25487', '', ''), (4, 'Banco Davivienda', '', '7844', '', ''), (5, 'Banco azul', '', '874', '', ''), (6, 'Banco Hernandez', '', '54788', ',', ''); COMMIT;
32.269231
109
0.619785
72f9dcf7fb5800304dc5d4e14363115fe9bec05f
670
html
HTML
src/components/button/danger-button.html
rezak-otmani/carbon-components
bfceee3497b6198013873400ff5805879420a4dc
[ "Apache-2.0" ]
null
null
null
src/components/button/danger-button.html
rezak-otmani/carbon-components
bfceee3497b6198013873400ff5805879420a4dc
[ "Apache-2.0" ]
null
null
null
src/components/button/danger-button.html
rezak-otmani/carbon-components
bfceee3497b6198013873400ff5805879420a4dc
[ "Apache-2.0" ]
null
null
null
<button class="bx--btn bx--btn--danger" type="button" aria-label="danger">Secondary danger button</button> <button class="bx--btn bx--btn--danger" type="button" disabled>Secondary danger button</button> <button class="bx--btn bx--btn--danger bx--btn--sm" type="button" aria-label="danger">Small secondary danger</button> <button class="bx--btn bx--btn--danger--primary" type="button" aria-label="danger">Primary Danger button</button> <button class="bx--btn bx--btn--danger--primary" type="button" disabled>Primary Danger button</button> <button class="bx--btn bx--btn--danger--primary bx--btn--sm" type="button" aria-label="danger">Small Primary Danger button</button>
95.714286
131
0.735821
56efab1bb1897ccbfb136c53ac1ca14810e0020a
10,833
tsx
TypeScript
web/src/pages/Profile/index.tsx
EdRamos12/Proffy
72474b44d8098fd684b86a692d04e72f644ee15a
[ "MIT" ]
3
2020-09-17T05:20:42.000Z
2020-09-18T12:24:49.000Z
web/src/pages/Profile/index.tsx
EdRamos12/Proffy
72474b44d8098fd684b86a692d04e72f644ee15a
[ "MIT" ]
null
null
null
web/src/pages/Profile/index.tsx
EdRamos12/Proffy
72474b44d8098fd684b86a692d04e72f644ee15a
[ "MIT" ]
null
null
null
import React, { useContext, useEffect, useMemo, useState } from 'react' import { useParams } from 'react-router-dom' import PageHeader from '../../components/PageHeader'; import profileBackground from '../../assets/images/profile-background.svg'; import './styles.css'; import AuthContext from '../../contexts/AuthContext'; import api from '../../services/api'; import Input from '../../components/Input'; import warningIcon from '../../assets/images/icons/warning.svg'; import Textarea from '../../components/Textarea'; import Dropzone from '../../components/Dropzone'; import NotificationContext from '../../contexts/NotificationContext'; import { v4 } from 'uuid'; import TeacherItem, { Teacher } from '../../components/TeacherItem'; import PostStorage from '../../contexts/PostStorage'; import Cleave from 'cleave.js/react'; import 'cleave.js/dist/addons/cleave-phone.br'; interface User { avatar: string; name: string; bio: string; whatsapp: string; confirmed: number; total_connections: number; id: number; email: string; } export default function Profile() { const { user } = useContext(AuthContext); const { id = user?.id } = useParams() as any; const dispatch = useContext(NotificationContext); const { storedProfilePosts, chunkProfilePostsInfo } = useContext(PostStorage); const [userProfile, setUserProfile] = useState<User>({} as User); const [canEdit, setCanEdit] = useState(false); const [deleted, setDeleted] = useState(false); const [uploadProgress, setUploadProgress] = useState(0); const [firstName, setFirstName] = useState(''); const [lastName, setLastName] = useState(''); const [whatsapp, setWhatsapp] = useState(''); const [selectedFile, setSelectedFile] = useState<File>(); const [bio, setBio] = useState(''); // classes thingy const [teachers, setTeachers] = useState([]); // posts const [page, setPage] = useState(1); const [total, setTotal] = useState(0); const [loading, setLoading] = useState(false); // no more posts to load const [limitReached, setLimitReached] = useState(false); // scroll value const [bottomPageValue, setBottomPageValue] = useState(0); function splitName(info: string) { const name = String(info).split(' '); setFirstName(name[0]); name.shift(); setLastName(name.join(' ')); }; const checkChunkedPosts = useMemo(() => async function a() { if (storedProfilePosts[id] !== undefined && storedProfilePosts[id].teacher !== teachers) { setPage(storedProfilePosts[id].page + 1); setTeachers(storedProfilePosts[id].teacher as never[]); } else { setLoading(true); } }, [storedProfilePosts, teachers]); // loading actual profile useEffect(() => { let isMounted = true; if (Number(user?.id) === Number(id)) { setUserProfile(user as User); splitName(String(user?.name)); setCanEdit(true); } else { api.get(`/profile/${id}`, { withCredentials: true }).then(profile => { if (isMounted) { setUserProfile(profile.data); splitName(profile.data.name); } }).catch(err => { setDeleted(true) }); setCanEdit(false); } return () => { isMounted = false; } }, [id, user]); useEffect(() => { setWhatsapp(String(userProfile.whatsapp)); setBio(String(userProfile.bio)); console.log(userProfile.whatsapp); }, [userProfile]); useEffect(() => { // api.get(`/total_classes/user/${id}`, { withCredentials: true }).then((info) => { // setTotalClasses(info.data.total); // }); checkChunkedPosts(); function handleScroll() { if (window.innerHeight + document.documentElement.scrollTop < document.documentElement.scrollHeight - 700) return; if (bottomPageValue === document.documentElement.scrollHeight) return; setBottomPageValue(document.documentElement.scrollHeight); setLoading(true); } window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, [bottomPageValue]); const loadClasses = useMemo(() => async function a() { console.log(page); if (total > 0 && teachers.length === total) { setLoading(false); setLimitReached(true); return; } if (limitReached) { setLoading(false); return; } let response = await api.get('/classes', { params: { page, user_id: id }, withCredentials: true }); setTeachers([...teachers, ...response.data] as any); if (response.data.length === 0) { setLoading(false); setLimitReached(true); return; } setPage(page + 1); setLoading(false); setTotal(response.headers['x-total-count']); chunkProfilePostsInfo(page, [...teachers, ...response.data], Number(id)); return; }, [limitReached, page, teachers, total]); useEffect(() => { if (!loading) return; loadClasses(); }, [loading]); async function handleChangeProfile(e: React.FormEvent) { e.preventDefault(); const name = `${firstName} ${lastName}` const data = new FormData(); data.append('name', name); data.append('bio', bio); data.append('whatsapp', whatsapp.replaceAll(' ', '')); if (selectedFile) { data.append('avatar', selectedFile); } try { await api.put('profile', data, { withCredentials: true, onUploadProgress: (event) => { setUploadProgress(Math.round((100 * event.loaded) / event.total)); } }) dispatch({ type: "ADD_NOTIFICATION", payload: { type: 'SUCCESS', message: 'Your profile has been successfully updated.', title: 'Profile updated!', id: v4(), } }); setUploadProgress(0); } catch (err) { if (err.response.status === 429) { setUploadProgress(0); dispatch({ type: "ADD_NOTIFICATION", payload: { type: 'ERROR', message: err.response.data.message, title: 'Something went wrong.', id: v4(), } }); } } } function addSpaces(initial: any) { console.log(initial) return initial; } return ( <div id="profile-page" className="container"> <div id="percentage" style={{ width: uploadProgress + '%' }} /> {deleted && <div id="not-found"><h1 style={{ fontSize: '15vw' }}>404</h1><h1 style={{ textAlign: 'center' }}>Page not found.</h1></div>} <PageHeader background={profileBackground} page={canEdit ? 'My profile' : userProfile.name}> <div className="profile"> {canEdit ? <Dropzone onFileUpload={setSelectedFile} /> : <div id="image-container"><img id="avatar" src={userProfile.avatar} alt="Avatar" /></div>} <h1>{firstName} {lastName}</h1> <p>got {userProfile.total_connections} connections on total!</p> </div> </PageHeader> <main> <form onSubmit={handleChangeProfile}> <fieldset> <legend>About me</legend> <div id="profile-name"> <Input onChange={(e) => { setFirstName(e.target.value) }} label="First name" name="first-name" defaultValue={firstName} readOnly={!canEdit} /> <Input onChange={(e) => { setLastName(e.target.value) }} label="Last name" name="last-name" defaultValue={lastName} readOnly={!canEdit} /> {!canEdit && <Input label="Whatsapp" readOnly name="whatsapp" defaultValue={whatsapp === 'null' ? '' : whatsapp === 'undefined' ? '' : whatsapp} onChange={addSpaces} />} </div> <div id={canEdit ? "profile-communication" : "not-show"}> <Input label="E-mail" name="e-mail" type="email" readOnly defaultValue={userProfile.email} /> {/* <Input defaultValue={whatsapp === 'null' ? '' : whatsapp === 'undefined' ? '' : whatsapp} /> */} <div className="input-block" id="Whatsapp"> <label htmlFor="whatsapp">Whatsapp</label> <Cleave id="whatsapp" value={whatsapp} required onChange={(e) => { setWhatsapp(e.target.value) }} options={{ prefix: '+55', phone: true, phoneRegionCode: 'BR' }} /> </div> </div> <Textarea onChange={(e) => { setBio(e.target.value) }} label="Biography" readOnly={!canEdit} name="bio" desc={canEdit ? "(Max. 300 characters)" : ""} defaultValue={bio === 'null' ? '' : bio === 'undefined' ? '' : bio} /> </fieldset> {canEdit && <footer> <p><img src={warningIcon} alt="Important warning" /> Important <br /> Fill up all fields.</p> <button type="submit"> Change profile! </button> </footer> } </form> </main> {canEdit ? <h1>Your published classes:</h1> : <h1>Classes from this user:</h1>} <div id="class-posts"> {teachers.map((teacher: Teacher, index) => { return <TeacherItem key={index} teacher={teacher} />; })} <span id="limit-message"> {limitReached && 'These are all the results'} {loading && 'Loading...'} <br /> {total === 0 && limitReached ? 'No teacher Found.' : ''} </span> </div> </div> ) }
40.122222
244
0.515739
90a1f8bc842a60494f885c4e11d6986f21a8085b
2,630
py
Python
V-sem/PatternMatchingUsingPythonProgramming/LAB_ASSIGNMENTS/Assignment1(29SEP2020)/Solution5.py
wasitshafi/JMI
892d603e2abe58fc8b3744b0db07ee988e4ded5c
[ "MIT" ]
3
2020-03-18T16:27:33.000Z
2021-06-07T12:39:32.000Z
V-sem/PatternMatchingUsingPythonProgramming/LAB_ASSIGNMENTS/Assignment1(29SEP2020)/Solution5.py
wasitshafi/JMI
892d603e2abe58fc8b3744b0db07ee988e4ded5c
[ "MIT" ]
null
null
null
V-sem/PatternMatchingUsingPythonProgramming/LAB_ASSIGNMENTS/Assignment1(29SEP2020)/Solution5.py
wasitshafi/JMI
892d603e2abe58fc8b3744b0db07ee988e4ded5c
[ "MIT" ]
10
2019-11-11T06:49:10.000Z
2021-06-07T12:41:20.000Z
# Q5. Write a program to implement OOPs concepts in python i.e. inheritance etc. class Person: def __init__(self, name, age, address): # constructor self.name = name self.age = age self.address = address def set_data(self, name, age, address): self.name = name self.age = age self.address = address def get_data(self): print('Name : ', self.name) print('Age : ', self.age) print('Address : ', self.address) def get_name(self): return self.name def get_age(self): return self.age def get_address(self): return self.address class Student(Person): def __init__(self, name, age, address, rollno, course, marksObtained, maximumMarks): # constructor super().__init__(name, age, address) self.rollno = rollno self.course = course self.marksObtained = marksObtained self.maximumMarks = maximumMarks def set_data(self, rollno, course, marksObtained, maximumMarks): self.rollno = rollno self.course = course self.marksObtained = marksObtained self.maximumMarks = maximumMarks def get_data(self): print('Name : ', super().get_name()) print('Age : ', super().get_age()) print('Address : ', super().get_address()) print('Rollno : ', self.rollno) print('Course : ', self.course) print('Marks Obtained : ', self.marksObtained) print('Maximum Marks : ', self.maximumMarks) print('Percentage : ', '{:.2f}'.format(self.get_percentage()), '%') def get_rollno(self): return self.rollno def get_course(self): return self.course def get_marksObtained(self): return self.marksObtained def maximumMarks(self): return self.maximumMarks def get_percentage(self): return marksObtained / maximumMarks * 100 print('PERSON DETAILS : ') name = input('Enter Name of Person : ') age = int(input('Enter Age of ' + name + ' : ')) address = input('Enter Address of ' + name +' : ') p1 = Person(name, age, address) # Object of Person Class print('\nSTUDENT DETAILS : ') name = input('Enter Name of Student: ') age = int(input('Enter Age of Student : ')) address = input('Enter Address of Student: ') rollno = input('Enter Rollno of Student : ') course = input('Enter Course of Student : ') marksObtained = float(input('Enter Marks Obtained of Student : ')) maximumMarks = float(input('Enter Maximum Marks of Student : ')) s1 = Student(name, age, address, rollno, course, marksObtained, maximumMarks) # Printing Person Details print("\n\nPerson Details are as :") p1.get_data(); #Printing Student Detatils print("\n\nStudent Details are as :") s1.get_data();
29.550562
100
0.671103
48cd68af01b9a02b3bffa4ddf2d57669d8bc3484
1,345
h
C
SkankySDK.framework/Headers/QCLines.h
macoscope/QCAntennaConnections
c0d12004278bb7c5140297990bda5347aa014a1a
[ "Apache-2.0" ]
5
2015-03-06T01:12:20.000Z
2020-08-12T18:15:14.000Z
SkankySDK.framework/Headers/QCLines.h
macoscope/QCConsole
9e64b3fe437ab6fa8ec3884d19387059b26e176a
[ "Apache-2.0" ]
null
null
null
SkankySDK.framework/Headers/QCLines.h
macoscope/QCConsole
9e64b3fe437ab6fa8ec3884d19387059b26e176a
[ "Apache-2.0" ]
null
null
null
@interface QCLines : QCPatch { QCNumberPort *inputStartX; // 156 = 0x9c QCNumberPort *inputStartY; // 160 = 0xa0 QCNumberPort *inputStartZ; // 164 = 0xa4 QCNumberPort *inputStartRX; // 168 = 0xa8 QCNumberPort *inputStartRY; // 172 = 0xac QCNumberPort *inputStartRZ; // 176 = 0xb0 QCNumberPort *inputStartLength; // 180 = 0xb4 QCColorPort *inputStartColor; // 184 = 0xb8 QCNumberPort *inputAttractionAmount; // 188 = 0xbc QCNumberPort *inputAttractionX; // 192 = 0xc0 QCNumberPort *inputAttractionY; // 196 = 0xc4 QCNumberPort *inputAttractionZ; // 200 = 0xc8 QCNumberPort *inputEndX; // 204 = 0xcc QCNumberPort *inputEndY; // 208 = 0xd0 QCNumberPort *inputEndZ; // 212 = 0xd4 QCNumberPort *inputEndRX; // 216 = 0xd8 QCNumberPort *inputEndRY; // 220 = 0xdc QCNumberPort *inputEndRZ; // 224 = 0xe0 QCNumberPort *inputEndLength; // 228 = 0xe4 QCColorPort *inputEndColor; // 232 = 0xe8 QCNumberPort *inputPhase; // 236 = 0xec QCNumberPort *inputNumLines; // 240 = 0xf0 QCOpenGLPort_ZBuffer *inputZBuffer; // 244 = 0xf4 } + (BOOL)isSafe; + (QCPatchExecutionMode)executionModeWithIdentifier:(id)identifier; + (BOOL)allowsSubpatchesWithIdentifier:(id)fp8; - (id)initWithIdentifier:(id)fp8; - (BOOL)setup:(QCOpenGLContext *)context; - (BOOL)execute:(QCOpenGLContext*)context time:(double)time arguments:(NSDictionary*)args; @end
38.428571
90
0.73829
d70314ae4535d2f6a5e53e5f0afa126d5b3129da
1,921
kt
Kotlin
src/main/kotlin/javabot/operations/ForgetFactoidOperation.kt
topriddy/javabot
cd21e5a9408190a065fbf6d284744188f2b00089
[ "BSD-3-Clause" ]
31
2015-01-06T16:03:04.000Z
2019-04-12T21:55:57.000Z
src/main/kotlin/javabot/operations/ForgetFactoidOperation.kt
topriddy/javabot
cd21e5a9408190a065fbf6d284744188f2b00089
[ "BSD-3-Clause" ]
172
2015-01-11T13:23:02.000Z
2021-07-20T11:55:58.000Z
src/main/kotlin/javabot/operations/ForgetFactoidOperation.kt
topriddy/javabot
cd21e5a9408190a065fbf6d284744188f2b00089
[ "BSD-3-Clause" ]
26
2015-01-06T16:03:05.000Z
2021-08-06T13:14:56.000Z
package javabot.operations import com.antwerkz.sofia.Sofia import javabot.Javabot import javabot.Message import javabot.dao.AdminDao import javabot.dao.ChannelDao import javabot.dao.FactoidDao import javabot.model.Channel import javax.inject.Inject class ForgetFactoidOperation @Inject constructor(bot: Javabot, adminDao: AdminDao, var factoidDao: FactoidDao, var channelDao: ChannelDao) : BotOperation(bot, adminDao), StandardOperation { override fun handleMessage(event: Message): List<Message> { val responses = arrayListOf<Message>() val channel = event.channel var message = event.value if (message.startsWith("forget ")) { if ((channel == null || !channel.name.startsWith("#")) && !isAdminUser(event.user)) { responses.add(Message(event, Sofia.privmsgChange())) } else { message = message.substring("forget ".length) if (message.endsWith(".") || message.endsWith("?") || message.endsWith("!")) { message = message.substring(0, message.length - 1) } forget(channel, responses, event, message.toLowerCase()) } } return responses } protected fun forget(channel: Channel?, responses: MutableList<Message>, event: Message, key: String) { val factoid = factoidDao.getFactoid(key) if (factoid != null) { if ((!factoid.locked) || isAdminUser(event.user)) { responses.add(Message(event, Sofia.factoidForgotten(key, event.user.nick))) factoidDao.delete(event.user.nick, key, channelDao.location(channel)) } else { responses.add(Message(event, Sofia.factoidDeleteLocked(event.user.nick))) } } else { responses.add(Message(event, Sofia.factoidDeleteUnknown(key, event.user.nick))) } } }
40.87234
140
0.628839
5046d1485df82a119f2bc9f69f7903253faa1892
596
go
Go
altsrc/map_input_source_test.go
AkihiroSuda/urfave-cli
1b7e4e00c7eac99a63972b4eb145b4e3192e8582
[ "MIT" ]
2
2020-03-16T03:27:50.000Z
2020-03-16T08:06:39.000Z
altsrc/map_input_source_test.go
AkihiroSuda/urfave-cli
1b7e4e00c7eac99a63972b4eb145b4e3192e8582
[ "MIT" ]
1
2021-12-02T22:06:57.000Z
2021-12-02T22:07:45.000Z
altsrc/map_input_source_test.go
AkihiroSuda/urfave-cli
1b7e4e00c7eac99a63972b4eb145b4e3192e8582
[ "MIT" ]
5
2020-11-24T15:09:34.000Z
2021-10-09T04:41:54.000Z
package altsrc import ( "testing" "time" ) func TestMapDuration(t *testing.T) { inputSource := &MapInputSource{ file: "test", valueMap: map[interface{}]interface{}{ "duration_of_duration_type": time.Minute, "duration_of_string_type": "1m", "duration_of_int_type": 1000, }, } d, err := inputSource.Duration("duration_of_duration_type") expect(t, time.Minute, d) expect(t, nil, err) d, err = inputSource.Duration("duration_of_string_type") expect(t, time.Minute, d) expect(t, nil, err) _, err = inputSource.Duration("duration_of_int_type") refute(t, nil, err) }
22.923077
60
0.697987
fcfe5e753b778f403389e245fb4e5bde52e22935
465
swift
Swift
Example/SPKit/TestViewController.swift
linhay/SPKit
5cf13e87e4fadffb1f02ad1e754a894e673e1f1f
[ "MIT" ]
3
2017-09-18T11:09:02.000Z
2017-12-02T15:25:45.000Z
Example/SPKit/TestViewController.swift
linhay/SPKit
5cf13e87e4fadffb1f02ad1e754a894e673e1f1f
[ "MIT" ]
null
null
null
Example/SPKit/TestViewController.swift
linhay/SPKit
5cf13e87e4fadffb1f02ad1e754a894e673e1f1f
[ "MIT" ]
null
null
null
// // TestViewController.swift // SPKit_Example // // Created by linhey on 2018/12/15. // Copyright © 2018 CocoaPods. All rights reserved. // import UIKit import SPKit class TestViewController: UIViewController { @IBOutlet weak var sp_test_description_views: UIView! @IBOutlet weak var sp_description: UILabel! override func viewDidLoad() { super.viewDidLoad() sp_description.text = sp_test_description_views.sp.description } }
18.6
66
0.726882
c35f7f02c8f6c929885dfd52bc2d04b09578dcf6
3,693
go
Go
key/key.go
taybart/bubbles
7959eb486708b841f703fd26ed6429a04f26a4c4
[ "MIT" ]
1
2022-02-22T01:03:32.000Z
2022-02-22T01:03:32.000Z
key/key.go
mrusme/bubbles
88562515cf7bce029c473d178add7a64453590cb
[ "MIT" ]
14
2022-01-22T19:29:27.000Z
2022-03-13T10:04:02.000Z
key/key.go
mrusme/bubbles
88562515cf7bce029c473d178add7a64453590cb
[ "MIT" ]
null
null
null
// Package key provides some types and functions for generating user-definable // keymappings useful in Bubble Tea components. There are a few different ways // you can define a keymapping with this package. Here's one example: // // type KeyMap struct { // Up key.Binding // Down key.Binding // } // // var DefaultKeyMap = KeyMap{ // Up: key.NewBinding( // key.WithKeys("k", "up"), // actual keybindings // key.WithHelp("↑/k", "move up"), // corresponding help text // ), // Down: key.NewBinding( // key.WithKeys("j", "down"), // key.WithHelp("↓/j", "move down"), // ), // } // // func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { // switch msg := msg.(type) { // case tea.KeyMsg: // switch { // case key.Matches(msg, DefaultKeyMap.Up): // // The user pressed up // case key.Matches(msg, DefaultKeyMap.Down): // // The user pressed down // } // } // // // ... // } // // The help information, which is not used in the example above, can be used // to render help text for keystrokes in your views. package key import ( tea "github.com/charmbracelet/bubbletea" ) // Binding describes a set of keybindings and, optionally, their associated // help text. type Binding struct { keys []string help Help disabled bool } // BindingOpt is an initialization option for a keybinding. It's used as an // argument to NewBinding. type BindingOpt func(*Binding) // NewBinding returns a new keybinding from a set of BindingOpt options. func NewBinding(opts ...BindingOpt) Binding { b := &Binding{} for _, opt := range opts { opt(b) } return *b } // WithKeys initializes a keybinding with the given keystrokes. func WithKeys(keys ...string) BindingOpt { return func(b *Binding) { b.keys = keys } } // WithHelp initializes a keybinding with the given help text. func WithHelp(key, desc string) BindingOpt { return func(b *Binding) { b.help = Help{Key: key, Desc: desc} } } // WithDisabled initializes a disabled keybinding. func WithDisabled() BindingOpt { return func(b *Binding) { b.disabled = true } } // SetKeys sets the keys for the keybinding. func (b *Binding) SetKeys(keys ...string) { b.keys = keys } // Keys returns the keys for the keybinding. func (b Binding) Keys() []string { return b.keys } // SetHelp sets the help text for the keybinding. func (b *Binding) SetHelp(key, desc string) { b.help = Help{Key: key, Desc: desc} } // Help returns the Help information for the keybinding. func (b Binding) Help() Help { return b.help } // Enabled returns whether or not the keybinding is enabled. Disabled // keybindings won't be activated and won't show up in help. Keybindings are // enabled by default. func (b Binding) Enabled() bool { return !b.disabled } // SetEnabled enables or disables the keybinding. func (b *Binding) SetEnabled(v bool) { b.disabled = !v } // Unbind removes the keys and help from this binding, effectively nullifying // it. This is a step beyond disabling it, since applications can enable // or disable key bindings based on application state. func (b *Binding) Unbind() { b.keys = nil b.help = Help{} } // Help is help information for a given keybinding. type Help struct { Key string Desc string } // Matches checks if the given KeyMsg matches the given bindings. func Matches(k tea.KeyMsg, b ...Binding) bool { for _, binding := range b { for _, v := range binding.keys { if k.String() == v && binding.Enabled() { return true } } } return false }
26.007042
78
0.644733
861a6afe96289deb39be8309c5f5bf439abaa99b
12,286
rs
Rust
common/validator_dir/src/builder.rs
Zachinquarantine/lighthouse
0177b9286edfdeb2782f74fc7fb1392b6459bfaa
[ "Apache-2.0" ]
3
2022-03-01T13:51:19.000Z
2022-03-08T03:48:09.000Z
common/validator_dir/src/builder.rs
DeFiCh/octopus
2a9b3b746b4795b00c23054bb402bb247d41e8a6
[ "Apache-2.0" ]
null
null
null
common/validator_dir/src/builder.rs
DeFiCh/octopus
2a9b3b746b4795b00c23054bb402bb247d41e8a6
[ "Apache-2.0" ]
null
null
null
use crate::{Error as DirError, ValidatorDir}; use bls::get_withdrawal_credentials; use deposit_contract::{encode_eth1_tx_data, Error as DepositError}; use eth2_keystore::{Error as KeystoreError, Keystore, KeystoreBuilder, PlainText}; use filesystem::create_with_600_perms; use rand::{distributions::Alphanumeric, Rng}; use std::fs::{create_dir_all, OpenOptions}; use std::io::{self, Write}; use std::path::{Path, PathBuf}; use types::{ChainSpec, DepositData, Hash256, Keypair, Signature}; /// The `Alphanumeric` crate only generates a-z, A-Z, 0-9, therefore it has a range of 62 /// characters. /// /// 62**48 is greater than 255**32, therefore this password has more bits of entropy than a byte /// array of length 32. const DEFAULT_PASSWORD_LEN: usize = 48; pub const VOTING_KEYSTORE_FILE: &str = "voting-keystore.json"; pub const WITHDRAWAL_KEYSTORE_FILE: &str = "withdrawal-keystore.json"; pub const ETH1_DEPOSIT_DATA_FILE: &str = "eth1-deposit-data.rlp"; pub const ETH1_DEPOSIT_AMOUNT_FILE: &str = "eth1-deposit-gwei.txt"; #[derive(Debug)] pub enum Error { DirectoryAlreadyExists(PathBuf), UnableToCreateDir(io::Error), UnableToEncodeDeposit(DepositError), DepositDataAlreadyExists(PathBuf), UnableToSaveDepositData(io::Error), DepositAmountAlreadyExists(PathBuf), UnableToSaveDepositAmount(io::Error), KeystoreAlreadyExists(PathBuf), UnableToSaveKeystore(io::Error), PasswordAlreadyExists(PathBuf), UnableToSavePassword(filesystem::Error), KeystoreError(KeystoreError), UnableToOpenDir(DirError), UninitializedVotingKeystore, UninitializedWithdrawalKeystore, #[cfg(feature = "insecure_keys")] InsecureKeysError(String), MissingPasswordDir, } impl From<KeystoreError> for Error { fn from(e: KeystoreError) -> Error { Error::KeystoreError(e) } } /// A builder for creating a `ValidatorDir`. pub struct Builder<'a> { base_validators_dir: PathBuf, password_dir: Option<PathBuf>, pub(crate) voting_keystore: Option<(Keystore, PlainText)>, pub(crate) withdrawal_keystore: Option<(Keystore, PlainText)>, store_withdrawal_keystore: bool, deposit_info: Option<(u64, &'a ChainSpec)>, } impl<'a> Builder<'a> { /// Instantiate a new builder. pub fn new(base_validators_dir: PathBuf) -> Self { Self { base_validators_dir, password_dir: None, voting_keystore: None, withdrawal_keystore: None, store_withdrawal_keystore: true, deposit_info: None, } } /// Supply a directory in which to store the passwords for the validator keystores. pub fn password_dir<P: Into<PathBuf>>(mut self, password_dir: P) -> Self { self.password_dir = Some(password_dir.into()); self } /// Build the `ValidatorDir` use the given `keystore` which can be unlocked with `password`. /// /// The builder will not necessarily check that `password` can unlock `keystore`. pub fn voting_keystore(mut self, keystore: Keystore, password: &[u8]) -> Self { self.voting_keystore = Some((keystore, password.to_vec().into())); self } /// Build the `ValidatorDir` use the given `keystore` which can be unlocked with `password`. /// /// The builder will not necessarily check that `password` can unlock `keystore`. pub fn withdrawal_keystore(mut self, keystore: Keystore, password: &[u8]) -> Self { self.withdrawal_keystore = Some((keystore, password.to_vec().into())); self } /// Build the `ValidatorDir` using a randomly generated voting keypair. pub fn random_voting_keystore(mut self) -> Result<Self, Error> { self.voting_keystore = Some(random_keystore()?); Ok(self) } /// Build the `ValidatorDir` using a randomly generated withdrawal keypair. /// /// Also calls `Self::store_withdrawal_keystore(true)` in an attempt to protect against data /// loss. pub fn random_withdrawal_keystore(mut self) -> Result<Self, Error> { self.withdrawal_keystore = Some(random_keystore()?); Ok(self.store_withdrawal_keystore(true)) } /// Upon build, create files in the `ValidatorDir` which will permit the submission of a /// deposit to the eth1 deposit contract with the given `deposit_amount`. pub fn create_eth1_tx_data(mut self, deposit_amount: u64, spec: &'a ChainSpec) -> Self { self.deposit_info = Some((deposit_amount, spec)); self } /// If `should_store == true`, the validator keystore will be saved in the `ValidatorDir` (and /// the password to it stored in the `password_dir`). If `should_store == false`, the /// withdrawal keystore will be dropped after `Self::build`. /// /// ## Notes /// /// If `should_store == false`, it is important to ensure that the withdrawal keystore is /// backed up. Backup can be via saving the files elsewhere, or in the case of HD key /// derivation, ensuring the seed and path are known. /// /// If the builder is not specifically given a withdrawal keystore then one will be generated /// randomly. When this random keystore is generated, calls to this function are ignored and /// the withdrawal keystore is *always* stored to disk. This is to prevent data loss. pub fn store_withdrawal_keystore(mut self, should_store: bool) -> Self { self.store_withdrawal_keystore = should_store; self } /// Return the path to the validator dir to be built, i.e. `base_dir/pubkey`. pub fn get_dir_path(base_validators_dir: &Path, voting_keystore: &Keystore) -> PathBuf { base_validators_dir.join(format!("0x{}", voting_keystore.pubkey())) } /// Consumes `self`, returning a `ValidatorDir` if no error is encountered. pub fn build(self) -> Result<ValidatorDir, Error> { let (voting_keystore, voting_password) = self .voting_keystore .ok_or(Error::UninitializedVotingKeystore)?; let dir = Self::get_dir_path(&self.base_validators_dir, &voting_keystore); if dir.exists() { return Err(Error::DirectoryAlreadyExists(dir)); } else { create_dir_all(&dir).map_err(Error::UnableToCreateDir)?; } // The withdrawal keystore must be initialized in order to store it or create an eth1 // deposit. if (self.store_withdrawal_keystore || self.deposit_info.is_some()) && self.withdrawal_keystore.is_none() { return Err(Error::UninitializedWithdrawalKeystore); }; if let Some((withdrawal_keystore, withdrawal_password)) = self.withdrawal_keystore { // Attempt to decrypt the voting keypair. let voting_keypair = voting_keystore.decrypt_keypair(voting_password.as_bytes())?; // Attempt to decrypt the withdrawal keypair. let withdrawal_keypair = withdrawal_keystore.decrypt_keypair(withdrawal_password.as_bytes())?; // If a deposit amount was specified, create a deposit. if let Some((amount, spec)) = self.deposit_info { let withdrawal_credentials = Hash256::from_slice(&get_withdrawal_credentials( &withdrawal_keypair.pk, spec.bls_withdrawal_prefix_byte, )); let mut deposit_data = DepositData { pubkey: voting_keypair.pk.clone().into(), withdrawal_credentials, amount, signature: Signature::empty().into(), }; deposit_data.signature = deposit_data.create_signature(&voting_keypair.sk, spec); let deposit_data = encode_eth1_tx_data(&deposit_data).map_err(Error::UnableToEncodeDeposit)?; // Save `ETH1_DEPOSIT_DATA_FILE` to file. // // This allows us to know the RLP data for the eth1 transaction without needing to know // the withdrawal/voting keypairs again at a later date. let path = dir.join(ETH1_DEPOSIT_DATA_FILE); if path.exists() { return Err(Error::DepositDataAlreadyExists(path)); } else { let hex = format!("0x{}", hex::encode(&deposit_data)); OpenOptions::new() .write(true) .read(true) .create(true) .open(path) .map_err(Error::UnableToSaveDepositData)? .write_all(hex.as_bytes()) .map_err(Error::UnableToSaveDepositData)? } // Save `ETH1_DEPOSIT_AMOUNT_FILE` to file. // // This allows us to know the intended deposit amount at a later date. let path = dir.join(ETH1_DEPOSIT_AMOUNT_FILE); if path.exists() { return Err(Error::DepositAmountAlreadyExists(path)); } else { OpenOptions::new() .write(true) .read(true) .create(true) .open(path) .map_err(Error::UnableToSaveDepositAmount)? .write_all(format!("{}", amount).as_bytes()) .map_err(Error::UnableToSaveDepositAmount)? } } if self.password_dir.is_none() && self.store_withdrawal_keystore { return Err(Error::MissingPasswordDir); } if let Some(password_dir) = self.password_dir.as_ref() { // Only the withdrawal keystore if explicitly required. if self.store_withdrawal_keystore { // Write the withdrawal password to file. write_password_to_file( password_dir.join(withdrawal_keypair.pk.as_hex_string()), withdrawal_password.as_bytes(), )?; // Write the withdrawal keystore to file. write_keystore_to_file( dir.join(WITHDRAWAL_KEYSTORE_FILE), &withdrawal_keystore, )?; } } } if let Some(password_dir) = self.password_dir.as_ref() { // Write the voting password to file. write_password_to_file( password_dir.join(format!("0x{}", voting_keystore.pubkey())), voting_password.as_bytes(), )?; } // Write the voting keystore to file. write_keystore_to_file(dir.join(VOTING_KEYSTORE_FILE), &voting_keystore)?; ValidatorDir::open(dir).map_err(Error::UnableToOpenDir) } } /// Writes a JSON keystore to file. fn write_keystore_to_file(path: PathBuf, keystore: &Keystore) -> Result<(), Error> { if path.exists() { Err(Error::KeystoreAlreadyExists(path)) } else { let file = OpenOptions::new() .write(true) .read(true) .create_new(true) .open(path) .map_err(Error::UnableToSaveKeystore)?; keystore.to_json_writer(file).map_err(Into::into) } } /// Creates a file with `600 (-rw-------)` permissions. pub fn write_password_to_file<P: AsRef<Path>>(path: P, bytes: &[u8]) -> Result<(), Error> { let path = path.as_ref(); if path.exists() { return Err(Error::PasswordAlreadyExists(path.into())); } create_with_600_perms(path, bytes).map_err(Error::UnableToSavePassword)?; Ok(()) } /// Generates a random keystore with a random password. fn random_keystore() -> Result<(Keystore, PlainText), Error> { let keypair = Keypair::random(); let password: PlainText = rand::thread_rng() .sample_iter(&Alphanumeric) .take(DEFAULT_PASSWORD_LEN) .map(char::from) .collect::<String>() .into_bytes() .into(); let keystore = KeystoreBuilder::new(&keypair, password.as_bytes(), "".into())?.build()?; Ok((keystore, password)) }
39.760518
103
0.61566
d9d551b3f74e1323a35a829dbcf95a49338a71f2
2,275
swift
Swift
PreviewEditMedia/Classes/UIBezierPathExtension.swift
huy-luvapay/PreviewEditMedia
054af06abe84eff1a544a8116d003d9ad42f4973
[ "MIT" ]
null
null
null
PreviewEditMedia/Classes/UIBezierPathExtension.swift
huy-luvapay/PreviewEditMedia
054af06abe84eff1a544a8116d003d9ad42f4973
[ "MIT" ]
null
null
null
PreviewEditMedia/Classes/UIBezierPathExtension.swift
huy-luvapay/PreviewEditMedia
054af06abe84eff1a544a8116d003d9ad42f4973
[ "MIT" ]
null
null
null
// // UIBezierPathExtension.swift // SmoothScribble // // Created by Simon Gladman on 04/11/2015. // Copyright © 2015 Simon Gladman. All rights reserved. // import UIKit extension UIBezierPath { func interpolatePointsWithHermite(interpolationPoints : [CGPoint], alpha : CGFloat = 1.0/3.0) { guard !interpolationPoints.isEmpty else { return } self.move(to: interpolationPoints[0]) let n = interpolationPoints.count - 1 for index in 0..<n { var currentPoint = interpolationPoints[index] var nextIndex = (index + 1) % interpolationPoints.count var prevIndex = index == 0 ? interpolationPoints.count - 1 : index - 1 var previousPoint = interpolationPoints[prevIndex] var nextPoint = interpolationPoints[nextIndex] let endPoint = nextPoint var mx : CGFloat var my : CGFloat if index > 0 { mx = (nextPoint.x - previousPoint.x) / 2.0 my = (nextPoint.y - previousPoint.y) / 2.0 } else { mx = (nextPoint.x - currentPoint.x) / 2.0 my = (nextPoint.y - currentPoint.y) / 2.0 } let controlPoint1 = CGPoint(x: currentPoint.x + mx * alpha, y: currentPoint.y + my * alpha) currentPoint = interpolationPoints[nextIndex] nextIndex = (nextIndex + 1) % interpolationPoints.count prevIndex = index previousPoint = interpolationPoints[prevIndex] nextPoint = interpolationPoints[nextIndex] if index < n - 1 { mx = (nextPoint.x - previousPoint.x) / 2.0 my = (nextPoint.y - previousPoint.y) / 2.0 } else { mx = (currentPoint.x - previousPoint.x) / 2.0 my = (currentPoint.y - previousPoint.y) / 2.0 } let controlPoint2 = CGPoint(x: currentPoint.x - mx * alpha, y: currentPoint.y - my * alpha) self.addCurve(to: endPoint, controlPoint1: controlPoint1, controlPoint2: controlPoint2) } } }
33.955224
103
0.536703
2f4c8bb59c83a1a216b8a8f502758ac066c0f885
13,551
php
PHP
tests/Schema/BlueprintTest.php
HidalgoRides/intersect-database
aa9930752d9bb2b30bc72c763e0a11993589a35e
[ "MIT" ]
null
null
null
tests/Schema/BlueprintTest.php
HidalgoRides/intersect-database
aa9930752d9bb2b30bc72c763e0a11993589a35e
[ "MIT" ]
null
null
null
tests/Schema/BlueprintTest.php
HidalgoRides/intersect-database
aa9930752d9bb2b30bc72c763e0a11993589a35e
[ "MIT" ]
null
null
null
<?php namespace Tests\Schema; use PHPUnit\Framework\TestCase; use Intersect\Database\Schema\Blueprint; use Intersect\Database\Schema\Key\PrimaryKey; use Intersect\Database\Schema\Key\UniqueKey; use Intersect\Database\Schema\Key\Index; use Intersect\Database\Schema\Key\ForeignKey; use Intersect\Database\Schema\ColumnType; class BlueprintTest extends TestCase { /** @var Blueprint */ private $blueprint; protected function setUp() { $this->blueprint = new Blueprint('test'); $this->assertEquals('test', $this->blueprint->getTableName()); } public function test_datetime() { $definition = $this->blueprint->datetime('date_added'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('date_added', $definition->getName()); $this->assertEquals(ColumnType::DATETIME, $definition->getType()); } public function test_numeric() { $definition = $this->blueprint->numeric('price', 4, 2); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('price', $definition->getName()); $this->assertEquals(ColumnType::NUMERIC, $definition->getType()); $this->assertEquals(4, $definition->getPrecision()); $this->assertEquals(2, $definition->getScale()); } public function test_increments() { $definition = $this->blueprint->increments('id'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertCount(1, $this->blueprint->getKeys()); $this->assertTrue($this->blueprint->getKeys()[0] instanceof PrimaryKey); $this->assertNotNull($definition); $this->assertEquals('id', $definition->getName()); $this->assertEquals(ColumnType::INTEGER, $definition->getType()); $this->assertTrue($definition->isPrimary()); $this->assertTrue($definition->isAutoIncrement()); } public function test_tinyInteger() { $definition = $this->blueprint->tinyInteger('age'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('age', $definition->getName()); $this->assertEquals(ColumnType::TINY_INT, $definition->getType()); } public function test_smallInteger() { $definition = $this->blueprint->smallInteger('age'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('age', $definition->getName()); $this->assertEquals(ColumnType::SMALL_INT, $definition->getType()); } public function test_mediumInteger() { $definition = $this->blueprint->mediumInteger('age'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('age', $definition->getName()); $this->assertEquals(ColumnType::MEDIUM_INT, $definition->getType()); } public function test_bigInteger() { $definition = $this->blueprint->bigInteger('age'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('age', $definition->getName()); $this->assertEquals(ColumnType::BIG_INT, $definition->getType()); } public function test_integer() { $definition = $this->blueprint->integer('age'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('age', $definition->getName()); $this->assertEquals(ColumnType::INTEGER, $definition->getType()); } public function test_string_defaultLength() { $definition = $this->blueprint->string('email'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('email', $definition->getName()); $this->assertEquals(ColumnType::STRING, $definition->getType()); $this->assertEquals(255, $definition->getLength()); } public function test_string_withLength() { $definition = $this->blueprint->string('email', 45); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('email', $definition->getName()); $this->assertEquals(ColumnType::STRING, $definition->getType()); $this->assertEquals(45, $definition->getLength()); } public function test_text() { $definition = $this->blueprint->text('description'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('description', $definition->getName()); $this->assertEquals(ColumnType::TEXT, $definition->getType()); } public function test_mediumText() { $definition = $this->blueprint->mediumText('description'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('description', $definition->getName()); $this->assertEquals(ColumnType::MEDIUM_TEXT, $definition->getType()); } public function test_longText() { $definition = $this->blueprint->longText('description'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('description', $definition->getName()); $this->assertEquals(ColumnType::LONG_TEXT, $definition->getType()); } public function test_temporal_defaultColumns() { $this->blueprint->temporal(); $columnDefinitions = $this->blueprint->getColumnDefinitions(); $this->assertCount(2, $columnDefinitions); $this->assertEquals('date_created', $columnDefinitions[0]->getName()); $this->assertEquals(ColumnType::DATETIME, $columnDefinitions[0]->getType()); $this->assertEquals('date_updated', $columnDefinitions[1]->getName()); $this->assertEquals(ColumnType::DATETIME, $columnDefinitions[1]->getType()); $this->assertTrue($columnDefinitions[1]->isNullable()); } public function test_temporal_overrideColumns() { $this->blueprint->temporal('date_added', 'date_modified'); $columnDefinitions = $this->blueprint->getColumnDefinitions(); $this->assertCount(2, $columnDefinitions); $this->assertEquals('date_added', $columnDefinitions[0]->getName()); $this->assertEquals(ColumnType::DATETIME, $columnDefinitions[0]->getType()); $this->assertEquals('date_modified', $columnDefinitions[1]->getName()); $this->assertEquals(ColumnType::DATETIME, $columnDefinitions[1]->getType()); $this->assertTrue($columnDefinitions[1]->isNullable()); } public function test_temporal_excludeUpdatedColumn() { $this->blueprint->temporal('date_added', null); $columnDefinitions = $this->blueprint->getColumnDefinitions(); $this->assertCount(1, $columnDefinitions); $this->assertEquals('date_added', $columnDefinitions[0]->getName()); $this->assertEquals(ColumnType::DATETIME, $columnDefinitions[0]->getType()); } public function test_temporal_excludeCreatedColumn() { $this->blueprint->temporal(null, 'date_updated'); $columnDefinitions = $this->blueprint->getColumnDefinitions(); $this->assertCount(1, $columnDefinitions); $this->assertEquals('date_updated', $columnDefinitions[0]->getName()); $this->assertEquals(ColumnType::DATETIME, $columnDefinitions[0]->getType()); $this->assertTrue($columnDefinitions[0]->isNullable()); } public function test_timestamp() { $definition = $this->blueprint->timestamp('created_at'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('created_at', $definition->getName()); $this->assertEquals(ColumnType::TIMESTAMP, $definition->getType()); } public function test_json() { $definition = $this->blueprint->json('json_test'); $this->assertCount(1, $this->blueprint->getColumnDefinitions()); $this->assertNotNull($definition); $this->assertEquals('json_test', $definition->getName()); $this->assertEquals(ColumnType::JSON, $definition->getType()); } public function test_primary() { $columns = ['id']; $this->blueprint->primary($columns); $this->assertCount(1, $this->blueprint->getKeys()); $key = $this->blueprint->getKeys()[0]; $this->assertTrue($key instanceof PrimaryKey); $this->assertEquals($columns, $key->getColumns()); $this->assertNotNull($key->getName()); } public function test_primary_withKeyName() { $columns = ['id']; $this->blueprint->primary($columns, 'test'); $this->assertCount(1, $this->blueprint->getKeys()); $key = $this->blueprint->getKeys()[0]; $this->assertTrue($key instanceof PrimaryKey); $this->assertEquals($columns, $key->getColumns()); $this->assertEquals('test', $key->getName()); } public function test_unique() { $columns = ['id']; $this->blueprint->unique($columns); $this->assertCount(1, $this->blueprint->getKeys()); $key = $this->blueprint->getKeys()[0]; $this->assertTrue($key instanceof UniqueKey); $this->assertEquals($columns, $key->getColumns()); $this->assertNotNull($key->getName()); } public function test_unique_withKeyName() { $columns = ['id']; $this->blueprint->unique($columns, 'test'); $this->assertCount(1, $this->blueprint->getKeys()); $key = $this->blueprint->getKeys()[0]; $this->assertTrue($key instanceof UniqueKey); $this->assertEquals($columns, $key->getColumns()); $this->assertEquals('test', $key->getName()); } public function test_index() { $columns = ['id']; $this->blueprint->index($columns); $this->assertCount(1, $this->blueprint->getKeys()); $key = $this->blueprint->getKeys()[0]; $this->assertTrue($key instanceof Index); $this->assertEquals($columns, $key->getColumns()); $this->assertNotNull($key->getName()); } public function test_index_withKeyName() { $columns = ['id']; $this->blueprint->index($columns, 'idx_id'); $this->assertCount(1, $this->blueprint->getKeys()); $key = $this->blueprint->getKeys()[0]; $this->assertTrue($key instanceof Index); $this->assertEquals($columns, $key->getColumns()); $this->assertEquals('idx_id', $key->getName()); } public function test_foreign() { $this->blueprint->foreign('user_id', 'id', 'users'); $this->assertCount(1, $this->blueprint->getKeys()); $key = $this->blueprint->getKeys()[0]; $this->assertTrue($key instanceof ForeignKey); $this->assertEquals('user_id', $key->getFromColumn()); $this->assertEquals('id', $key->getToColumn()); $this->assertEquals('users', $key->getOnTable()); $this->assertEquals('fidx_test_user_id_users_id', $key->getName()); } public function test_foreign_withKeyName() { $this->blueprint->foreign('user_id', 'id', 'users', 'fidx_test'); $this->assertCount(1, $this->blueprint->getKeys()); $key = $this->blueprint->getKeys()[0]; $this->assertTrue($key instanceof ForeignKey); $this->assertEquals('user_id', $key->getFromColumn()); $this->assertEquals('id', $key->getToColumn()); $this->assertEquals('users', $key->getOnTable()); $this->assertEquals('fidx_test', $key->getName()); } public function test_charset_default() { $tableOptions = $this->blueprint->getTableOptions(); $this->assertEquals('utf8', $tableOptions->getCharacterSet()); } public function test_charset_override() { $definition = $this->blueprint->charset('utf16'); $tableOptions = $this->blueprint->getTableOptions(); $this->assertEquals('utf16', $tableOptions->getCharacterSet()); } public function test_collation_default() { $tableOptions = $this->blueprint->getTableOptions(); $this->assertEquals('utf8_unicode_ci', $tableOptions->getCollation()); } public function test_collation_override() { $definition = $this->blueprint->collation('utf16_unicode_ci'); $tableOptions = $this->blueprint->getTableOptions(); $this->assertEquals('utf16_unicode_ci', $tableOptions->getCollation()); } public function test_engine_default() { $tableOptions = $this->blueprint->getTableOptions(); $this->assertEquals('InnoDB', $tableOptions->getEngine()); } public function test_engine_override() { $definition = $this->blueprint->engine('MyISAM'); $tableOptions = $this->blueprint->getTableOptions(); $this->assertEquals('MyISAM', $tableOptions->getEngine()); } }
34.306329
84
0.629769
b697e2133c893ca81bf1168fedfed8c37f51d57b
1,371
asm
Assembly
software/pcx86/bdsrc/test/sleep.asm
fatman2021/basicdos
d5de65300632632dd0f5a4d9335d38b4aa39d268
[ "MIT" ]
59
2020-12-22T21:02:32.000Z
2022-02-16T05:53:49.000Z
software/pcx86/bdsrc/test/sleep.asm
fatman2021/basicdos
d5de65300632632dd0f5a4d9335d38b4aa39d268
[ "MIT" ]
null
null
null
software/pcx86/bdsrc/test/sleep.asm
fatman2021/basicdos
d5de65300632632dd0f5a4d9335d38b4aa39d268
[ "MIT" ]
5
2020-12-24T03:07:40.000Z
2022-02-03T18:40:55.000Z
; ; BASIC-DOS Sleep Tests ; ; @author Jeff Parsons <Jeff@pcjs.org> ; @copyright (c) 2020-2021 Jeff Parsons ; @license MIT <https://basicdos.com/LICENSE.txt> ; ; This file is part of PCjs, a computer emulation software project at pcjs.org ; include macros.inc include dosapi.inc CODE SEGMENT org 100h ASSUME CS:CODE, DS:CODE, ES:CODE, SS:CODE DEFPROC main mov ax,(DOS_MSC_SETVEC SHL 8) + INT_DOSCTRLC mov dx,offset ctrlc int 21h mov ax,2 mov si,PSP_CMDTAIL cmp [si],ah je s1 inc si DOSUTIL ATOI32D ; DX:AX = value (# of seconds) ; ; Perform an unnecessary division, so we can verify that division error ; processing works (eg, by running "sleep 0"). ; push ax push dx div ax pop dx pop ax s1: push ax PRINTF <"sleeping %d seconds...">,ax pop ax mov dx,1000 mul dx ; DX:AX = AX * 1000 (# of milliseconds) mov cx,dx xchg dx,ax ; CX:DX = # of milliseconds DOSUTIL SLEEP PRINTF <13,10,"feeling refreshed!",13,10> int 20h ENDPROC main DEFPROC ctrlc,FAR push ax PRINTF <"CTRL-C intercepted",13,10> pop ax iret ENDPROC ctrlc ; ; COMHEAP 0 means we don't need a heap, but BASIC-DOS will still allocate a ; minimum amount of heap space, because that's where our initial stack lives. ; COMHEAP 0 ; COMHEAP (heap size) must be the last item CODE ENDS end main
20.462687
79
0.668125
82f75db124213992aee98cb5e2c3d40452d94d3b
1,219
kt
Kotlin
coroutines/src/jvmTest/kotlin/dev/inmo/micro_utils/coroutines/AwaitFirstTests.kt
InsanusMokrassar/MicroUtils
d2314422f1e53c4e7eb43fb61557c0687f45c45f
[ "Apache-2.0" ]
8
2020-11-12T04:23:03.000Z
2022-03-14T18:38:56.000Z
coroutines/src/jvmTest/kotlin/dev/inmo/micro_utils/coroutines/AwaitFirstTests.kt
InsanusMokrassar/MicroUtils
d2314422f1e53c4e7eb43fb61557c0687f45c45f
[ "Apache-2.0" ]
11
2020-10-22T10:41:25.000Z
2021-11-05T15:56:00.000Z
coroutines/src/jvmTest/kotlin/dev/inmo/micro_utils/coroutines/AwaitFirstTests.kt
InsanusMokrassar/MicroUtils
d2314422f1e53c4e7eb43fb61557c0687f45c45f
[ "Apache-2.0" ]
null
null
null
package dev.inmo.micro_utils.coroutines import kotlinx.coroutines.* import org.junit.Test import kotlin.test.assertEquals import kotlin.test.assertTrue class AwaitFirstTests { private fun CoroutineScope.createTestDeferred(value: Int, wait: Long = 100000) = async(start = CoroutineStart.LAZY) { delay(wait); value } @Test fun testThatAwaitFirstIsWorkingCorrectly() { val baseScope = CoroutineScope(Dispatchers.Default) val resultDeferred = baseScope.createTestDeferred(-1, 0) val deferreds = listOf( baseScope.async { createTestDeferred(0) }, baseScope.async { createTestDeferred(1) }, baseScope.async { createTestDeferred(2) }, resultDeferred ) val controlJob = baseScope.launch { delay(1000000) } val result = baseScope.launchSynchronously { val result = deferreds.awaitFirst(baseScope) assertTrue(baseScope.isActive) assertTrue(controlJob.isActive) result } assertEquals(baseScope.launchSynchronously { resultDeferred.await() }, result) assertTrue(deferreds.all { it == resultDeferred || it.isCancelled }) } }
35.852941
142
0.665299
540e798a3888c1fc82bd05abb33734065dca6120
2,653
go
Go
repo/spackEnv.go
autamus/buildconfig
b07936b33b405222759bc4d5616d609c383e37f0
[ "Apache-2.0" ]
null
null
null
repo/spackEnv.go
autamus/buildconfig
b07936b33b405222759bc4d5616d609c383e37f0
[ "Apache-2.0" ]
null
null
null
repo/spackEnv.go
autamus/buildconfig
b07936b33b405222759bc4d5616d609c383e37f0
[ "Apache-2.0" ]
null
null
null
package repo import ( "io/ioutil" "strings" "gopkg.in/yaml.v2" ) type SpackEnv struct { Spack Spack `yaml:"spack"` } type Spack struct { Specs []string `yaml:"specs,omitempty"` View bool `yaml:"view"` Packages map[string]SpackPackages `yaml:"packages,omitempty"` Config SpackConfig `yaml:"config"` Container SpackContainer `yaml:"container"` Mirrors map[string]string `yaml:"mirrors,omitempty"` } type SpackPackages struct { Target []string `yaml:"target,omitempty"` } type SpackConfig struct { Concretizer string `yaml:"concretizer,omitempty"` Compiler SpackConfigCompiler `yaml:"compiler,omitempty"` InstallMissingCompilers bool `yaml:"install_missing_compilers"` InstallTree SpackConfigInstallTree `yaml:"install_tree,omitempty"` } type SpackConfigInstallTree struct { Root string `yaml:"root,omitempty"` PaddedLength int `yaml:"padded_length,omitempty"` } type SpackConfigCompiler struct { Target []string `yaml:"target,omitempty"` } type SpackContainer struct { OSPackages SpackContainerPackages `yaml:"os_packages,omitempty"` Images SpackContainerImages `yaml:"images,omitempty"` Strip bool `yaml:"strip"` } type SpackContainerImages struct { Build string `yaml:"build,omitempty"` Final string `yaml:"final,omitempty"` } type SpackContainerPackages struct { Build []string `yaml:"build,omitempty"` Final []string `yaml:"final,omitempty"` } func defaultEnv(defaultPath string) (output SpackEnv, err error) { input, err := ioutil.ReadFile(defaultPath) if err != nil { return output, err } err = yaml.Unmarshal(input, &output) return output, err } // ParseSpackEnv parses a spack environment into a go struct. func ParseSpackEnv(defaultPath, containerPath string) (result SpackEnv, err error) { result, err = defaultEnv(defaultPath) if err != nil { return } input, err := ioutil.ReadFile(containerPath) if err != nil { return } err = yaml.Unmarshal(input, &result) if err != nil { return } // Clean specs from variant/version information. specs := []string{} for _, spec := range result.Spack.Specs { i := strings.IndexFunc(spec, versend) if i > 0 { specs = append(specs, spec[:i]) } else { specs = append(specs, spec) } } result.Spack.Specs = specs return result, nil } // versend returns true at the end of the name of a dependency func versend(input rune) bool { for _, c := range []rune{'@', '~', '+', '%'} { if input == c { return true } } return false }
24.794393
84
0.666038
7a1d573420535e27ecd6360be270455540115711
4,043
swift
Swift
fearless/Modules/Staking/StakingRewardDestinationSetup/View/StakingRewardDestSetupLayout.swift
soramitsu/fearless-iOS
730a5373843ea75e02132eafef03ae015fffffce
[ "Apache-2.0" ]
57
2020-08-09T17:30:43.000Z
2022-03-22T19:03:18.000Z
fearless/Modules/Staking/StakingRewardDestinationSetup/View/StakingRewardDestSetupLayout.swift
soramitsu/fearless-iOS
730a5373843ea75e02132eafef03ae015fffffce
[ "Apache-2.0" ]
113
2020-08-30T17:22:39.000Z
2022-02-15T23:50:35.000Z
fearless/Modules/Staking/StakingRewardDestinationSetup/View/StakingRewardDestSetupLayout.swift
soramitsu/fearless-iOS
730a5373843ea75e02132eafef03ae015fffffce
[ "Apache-2.0" ]
22
2020-08-30T17:11:11.000Z
2022-03-16T14:44:36.000Z
import UIKit import SnapKit final class StakingRewardDestSetupLayout: UIView { let contentView: ScrollableContainerView = { let view = ScrollableContainerView() view.stackView.isLayoutMarginsRelativeArrangement = true view.stackView.layoutMargins = UIEdgeInsets(top: 16.0, left: 0.0, bottom: 0.0, right: 0.0) return view }() let restakeOptionView = UIFactory.default.createRewardSelectionView() let payoutOptionView = UIFactory.default.createRewardSelectionView() let accountView = UIFactory.default.createAccountView(for: .selection, filled: false) let networkFeeView = UIFactory.default.createNetworkFeeView() let actionButton: TriangularedButton = UIFactory.default.createMainActionButton() let learnMoreView = UIFactory.default.createFearlessLearnMoreView() var locale = Locale.current { didSet { if locale != oldValue { applyLocalization() } } } override init(frame: CGRect) { super.init(frame: frame) backgroundColor = R.color.colorBlack()! setupLayout() applyLocalization() } @available(*, unavailable) required init?(coder _: NSCoder) { fatalError("init(coder:) has not been implemented") } private func applyLocalization() { networkFeeView.locale = locale learnMoreView.titleLabel.text = R.string.localizable .stakingRewardsLearnMore(preferredLanguages: locale.rLanguages) restakeOptionView.title = R.string.localizable .stakingRestakeTitle(preferredLanguages: locale.rLanguages) payoutOptionView.title = R.string.localizable .stakingPayoutTitle(preferredLanguages: locale.rLanguages) accountView.title = R.string.localizable .stakingRewardPayoutAccount(preferredLanguages: locale.rLanguages) actionButton.imageWithTitleView?.title = R.string.localizable .commonContinue(preferredLanguages: locale.rLanguages) } private func setupLayout() { addSubview(contentView) contentView.snp.makeConstraints { make in make.top.equalTo(safeAreaLayoutGuide) make.bottom.leading.trailing.equalToSuperview() } contentView.stackView.addArrangedSubview(restakeOptionView) restakeOptionView.snp.makeConstraints { make in make.width.equalTo(self).offset(-2.0 * UIConstants.horizontalInset) make.height.equalTo(52.0) } contentView.stackView.setCustomSpacing(16.0, after: restakeOptionView) contentView.stackView.addArrangedSubview(payoutOptionView) payoutOptionView.snp.makeConstraints { make in make.width.equalTo(self).offset(-2.0 * UIConstants.horizontalInset) make.height.equalTo(52.0) } contentView.stackView.setCustomSpacing(16.0, after: payoutOptionView) contentView.stackView.addArrangedSubview(accountView) accountView.snp.makeConstraints { make in make.width.equalTo(self).offset(-2.0 * UIConstants.horizontalInset) make.height.equalTo(52.0) } contentView.stackView.setCustomSpacing(16.0, after: payoutOptionView) contentView.stackView.setCustomSpacing(16.0, after: accountView) contentView.stackView.addArrangedSubview(learnMoreView) learnMoreView.snp.makeConstraints { make in make.width.equalTo(self) } contentView.stackView.addArrangedSubview(networkFeeView) networkFeeView.snp.makeConstraints { make in make.width.equalTo(self).offset(-2.0 * UIConstants.horizontalInset) } addSubview(actionButton) actionButton.snp.makeConstraints { make in make.leading.trailing.equalToSuperview().inset(UIConstants.horizontalInset) make.bottom.equalTo(safeAreaLayoutGuide).inset(UIConstants.actionBottomInset) make.height.equalTo(UIConstants.actionHeight) } } }
36.423423
98
0.689092
538a470c35173c843daf0bb05df6faedb2da2589
3,481
kt
Kotlin
app/src/main/java/com/hoc/pagination_mvi/ui/main/MainInteractorImpl.kt
NurseyitTursunkulov/MVISample
5b780f4b1ad2f5072927cc1e8675aa50fcf7e3dd
[ "MIT" ]
6
2019-12-05T18:00:57.000Z
2022-01-20T02:25:53.000Z
app/src/main/java/com/hoc/pagination_mvi/ui/main/MainInteractorImpl.kt
NurseyitTursunkulov/MVISample
5b780f4b1ad2f5072927cc1e8675aa50fcf7e3dd
[ "MIT" ]
null
null
null
app/src/main/java/com/hoc/pagination_mvi/ui/main/MainInteractorImpl.kt
NurseyitTursunkulov/MVISample
5b780f4b1ad2f5072927cc1e8675aa50fcf7e3dd
[ "MIT" ]
3
2020-02-13T02:02:04.000Z
2020-05-15T22:04:14.000Z
package com.hoc.pagination_mvi.ui.main import com.hoc.pagination_mvi.di.ApplicationScope import com.hoc.pagination_mvi.domain.dispatchers_schedulers.CoroutinesDispatchersProvider import com.hoc.pagination_mvi.domain.usecase.GetPhotosUseCase import com.hoc.pagination_mvi.domain.usecase.GetPostsUseCase import com.hoc.pagination_mvi.ui.main.MainContract.PartialStateChange.* import com.hoc.pagination_mvi.ui.main.MainContract.PhotoVS import com.hoc.pagination_mvi.ui.main.MainContract.PostVS import io.reactivex.Observable import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.async import kotlinx.coroutines.coroutineScope import kotlinx.coroutines.delay import kotlinx.coroutines.rx2.rxObservable import javax.inject.Inject @ApplicationScope @ExperimentalCoroutinesApi class MainInteractorImpl @Inject constructor( private val getPhotosUseCase: GetPhotosUseCase, private val getPostsUseCase: GetPostsUseCase, private val dispatchers: CoroutinesDispatchersProvider ) : MainContract.Interactor { override fun photoNextPageChanges( start: Int, limit: Int ): Observable<PhotoNextPage> { return rxObservable(dispatchers.main) { send(PhotoNextPage.Loading) try { getPhotosUseCase(start = start, limit = limit) .map(MainContract::PhotoVS) .let { PhotoNextPage.Data(it) } .let { send(it) } } catch (e: Exception) { delayError() send(PhotoNextPage.Error(e)) } } } override fun photoFirstPageChanges(limit: Int): Observable<PhotoFirstPage> { return rxObservable(dispatchers.main) { send(PhotoFirstPage.Loading) try { getPhotosUseCase(start = 0, limit = limit) .map(::PhotoVS) .let { PhotoFirstPage.Data(it) } .let { send(it) } } catch (e: Exception) { delayError() send(PhotoFirstPage.Error(e)) } } } override fun postFirstPageChanges(limit: Int): Observable<PostFirstPage> { return rxObservable(dispatchers.main) { send(PostFirstPage.Loading) try { getPostsUseCase(start = 0, limit = limit) .map(::PostVS) .let { PostFirstPage.Data(it) } .let { send(it) } } catch (e: Exception) { delayError() send(PostFirstPage.Error(e)) } } } override fun postNextPageChanges( start: Int, limit: Int ): Observable<PostNextPage> { return rxObservable(dispatchers.main) { send(PostNextPage.Loading) try { getPostsUseCase(start = start, limit = limit) .map(::PostVS) .let { PostNextPage.Data(it) } .let { send(it) } } catch (e: Exception) { delayError() send(PostNextPage.Error(e)) } } } override fun refreshAll( limitPost: Int, limitPhoto: Int ): Observable<Refresh> { return rxObservable(dispatchers.main) { send(Refresh.Refreshing) try { coroutineScope { val async1 = async { getPostsUseCase(limit = limitPost, start = 0) } val async2 = async { getPhotosUseCase(limit = limitPhoto, start = 0) } send( Refresh.Success( posts = async1.await().map(::PostVS), photos = async2.await().map(::PhotoVS) ) ) } } catch (e: Exception) { delayError() send(Refresh.Error(e)) } } } private suspend fun delayError() = delay(0) }
29.752137
89
0.654697
bcd8546cbf3926efc27fd0b65a5475a6a03b73a1
577
js
JavaScript
controllers/apiRoutes/index.js
ChrisNirschl1/techblogger
76bffcd5ca4d064ae7e89b3a5764bb3bf83dca34
[ "MIT" ]
null
null
null
controllers/apiRoutes/index.js
ChrisNirschl1/techblogger
76bffcd5ca4d064ae7e89b3a5764bb3bf83dca34
[ "MIT" ]
null
null
null
controllers/apiRoutes/index.js
ChrisNirschl1/techblogger
76bffcd5ca4d064ae7e89b3a5764bb3bf83dca34
[ "MIT" ]
null
null
null
const express = require('express'); const router = express.Router(); const postRoutes = require("../apiRoutes/postRoutes"); const userRoutes = require("../apiRoutes/userRoutes"); // const opinionRoutes = require("../apiRoutes/opinionRoutes"); //these are pluralized in the search i.e localhost:3000/api/posts NOT api/post router.use('/posts', postRoutes); router.use('/users', userRoutes); // router.use('/opinions', opinionRoutes); router.get('/',(req, res) => { res.send("apiRoutes/index.js has been reached.") }) //^reachedby localhost:3000/api module.exports = router;
38.466667
78
0.719237
af8ac264eba7365eb4324c5920db83c82335785d
1,183
rb
Ruby
app/models/timespans/month_timespan.rb
ipublic/marketplace
dff18c5a108bc8e492adeefdbd3938849fc57930
[ "MIT", "Unlicense" ]
null
null
null
app/models/timespans/month_timespan.rb
ipublic/marketplace
dff18c5a108bc8e492adeefdbd3938849fc57930
[ "MIT", "Unlicense" ]
11
2020-02-29T00:47:01.000Z
2022-02-26T10:20:05.000Z
app/models/timespans/month_timespan.rb
ipublic/marketplace
dff18c5a108bc8e492adeefdbd3938849fc57930
[ "MIT", "Unlicense" ]
1
2019-02-06T14:50:06.000Z
2019-02-06T14:50:06.000Z
module Timespans class MonthTimespan < Timespan attr_readonly :year, :month, :begin_on, :end_on field :year, type: Integer field :month, type: Integer belongs_to :calendar_year_timespan, class_name: 'Timespans::CalendarYearTimespan' validates_presence_of :year validates :month, presence: true, numericality: { only_integer: true, greater_than_or_equal_to: 1, less_than_or_equal_to: 12 } # Mongoid stores inherited classes as STI. Year index is created in calendar_year_timespan index({ month: 1 }) scope :month_of_year, ->(year, month){} def beginning_of_month(new_year, new_month) Date.new(new_year, new_month) end def end_of_month(new_year, new_month) Date.new(new_year, new_month).end_of_month end private def initialize_timespan if year.present? && month.present? write_attribute(:begin_on, beginning_of_month(year, month)) if begin_on.blank? write_attribute(:end_on, end_of_month(year, month)) if end_on.blank? write_attribute(:title, "#{year} #{Date::ABBR_MONTHNAMES[month]}") if title.blank? end end end end
25.717391
94
0.686391
d5abb6a1b097b12ef5491407f8f5ce63662a8d48
3,062
kt
Kotlin
app/src/main/java/com/trigonated/gamecollection/ui/gamecollectionstatus/GameCollectionStatusAdapter.kt
trigonated/GameCollection
e6e2419190180e0c79def334136a58d94565887c
[ "MIT" ]
1
2021-10-01T11:25:12.000Z
2021-10-01T11:25:12.000Z
app/src/main/java/com/trigonated/gamecollection/ui/gamecollectionstatus/GameCollectionStatusAdapter.kt
trigonated/GameCollection
e6e2419190180e0c79def334136a58d94565887c
[ "MIT" ]
null
null
null
app/src/main/java/com/trigonated/gamecollection/ui/gamecollectionstatus/GameCollectionStatusAdapter.kt
trigonated/GameCollection
e6e2419190180e0c79def334136a58d94565887c
[ "MIT" ]
null
null
null
package com.trigonated.gamecollection.ui.gamecollectionstatus import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.trigonated.gamecollection.databinding.ListItemGamecollectionstatusBinding import com.trigonated.gamecollection.model.objects.GameCollectionStatus /** * Adapter for a list of [GameCollectionStatus]. */ class GameCollectionStatusAdapter : ListAdapter<GameCollectionStatus, RecyclerView.ViewHolder>( GameCollectionStatusDiffCallback() ) { /** Listener for when an item's status button is clicked. */ var itemStatusButtonClickListener: ItemStatusButtonClickListener? = null override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder { return GameCollectionStatusHolder( ListItemGamecollectionstatusBinding.inflate( LayoutInflater.from(parent.context), parent, false ) ) } override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) { val item = getItem(position) (holder as GameCollectionStatusHolder).bind(item) } inner class GameCollectionStatusHolder( private val binding: ListItemGamecollectionstatusBinding ) : RecyclerView.ViewHolder(binding.root) { init { // Setup the listeners for the status buttons binding.setOnWishlistedButtonClickListener { binding.item?.let { item -> itemStatusButtonClickListener?.onItemWishlistedStatusButtonClick(item) } } binding.setOnOwnedButtonClickListener { binding.item?.let { item -> itemStatusButtonClickListener?.onItemOwnedStatusButtonClick(item) } } } /** * Bind the [item] to this ViewHolder. * @param item The item to bind. */ fun bind(item: GameCollectionStatus) { binding.apply { this.item = item executePendingBindings() } } } /** * Listener for clicks on either of the status buttons. */ interface ItemStatusButtonClickListener { fun onItemWishlistedStatusButtonClick(item: GameCollectionStatus) fun onItemOwnedStatusButtonClick(item: GameCollectionStatus) } } /** * Diff class for [GameCollectionStatus] objects. */ private class GameCollectionStatusDiffCallback : DiffUtil.ItemCallback<GameCollectionStatus>() { override fun areItemsTheSame( oldItem: GameCollectionStatus, newItem: GameCollectionStatus ): Boolean { return oldItem.platform.id == newItem.platform.id } override fun areContentsTheSame( oldItem: GameCollectionStatus, newItem: GameCollectionStatus ): Boolean { return oldItem == newItem } }
32.924731
96
0.67015
fd7ab27e67ef9ea0dcd2d186119af250912ae2c8
596
swift
Swift
SymphonyTestsHost/AppDelegate.swift
opallabs/Symphony
4d3596086dada0b57c2b0a527f5642f16f3797bd
[ "MIT" ]
null
null
null
SymphonyTestsHost/AppDelegate.swift
opallabs/Symphony
4d3596086dada0b57c2b0a527f5642f16f3797bd
[ "MIT" ]
4
2016-09-13T22:46:57.000Z
2016-10-28T00:12:58.000Z
SymphonyTestsHost/AppDelegate.swift
opallabs/Symphony
4d3596086dada0b57c2b0a527f5642f16f3797bd
[ "MIT" ]
1
2016-10-13T23:14:41.000Z
2016-10-13T23:14:41.000Z
// // AppDelegate.swift // SymphonyTestsHost // // Created by Zak Remer on 10/14/16. // Copyright © 2016 Spilt Cocoa. All rights reserved. // import UIKit import Symphony @UIApplicationMain class AppDelegate: UIViewController, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let window = UIWindow() window.rootViewController = self window.makeKeyAndVisible() self.window = window return true } }
22.923077
144
0.708054
c8ff670dca25a1b9d4e020ba4db8f20c313e4a15
122
rs
Rust
src/lib.rs
sortiz4/procks
5cac4bf32eaa3886308dc0b290b43e63bc102721
[ "MIT" ]
null
null
null
src/lib.rs
sortiz4/procks
5cac4bf32eaa3886308dc0b290b43e63bc102721
[ "MIT" ]
null
null
null
src/lib.rs
sortiz4/procks
5cac4bf32eaa3886308dc0b290b43e63bc102721
[ "MIT" ]
null
null
null
mod core; mod error; mod result; pub use crate::core::Procks; pub use crate::error::Error; pub use crate::result::Result;
17.428571
30
0.729508
9bc99bb282edbb3673d82015dbe2a496db61bfec
715
kt
Kotlin
app/src/main/java/com/varunest/grabnews/network/CacheInterceptor.kt
varunest/GrabNews
347cd190f4d0bd01dcdd34183165fdbe911458aa
[ "Apache-2.0" ]
1
2019-09-15T10:17:03.000Z
2019-09-15T10:17:03.000Z
app/src/main/java/com/varunest/grabnews/network/CacheInterceptor.kt
varunest/GrabNews
347cd190f4d0bd01dcdd34183165fdbe911458aa
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/varunest/grabnews/network/CacheInterceptor.kt
varunest/GrabNews
347cd190f4d0bd01dcdd34183165fdbe911458aa
[ "Apache-2.0" ]
null
null
null
package com.varunest.grabnews.network import okhttp3.CacheControl import okhttp3.Interceptor import okhttp3.Response import java.io.IOException import java.util.concurrent.TimeUnit class CacheInterceptor : Interceptor { @Throws(IOException::class) override fun intercept(chain: Interceptor.Chain): Response { val response = chain.proceed(chain.request()) val cacheControl = CacheControl.Builder() .maxAge(15, TimeUnit.MINUTES) // 15 minutes cache .build() return response.newBuilder() .removeHeader("Pragma") .removeHeader("Cache-Control") .header("Cache-Control", cacheControl.toString()) .build() } }
28.6
64
0.672727
95f12f6d366c48eb355a62074253736c048afe97
8,112
sql
SQL
backup.sql
yoowook1207/RestroomFinder
57cc65f95a3f9b52ec8cd3618afb3f8eb1facfe8
[ "MIT" ]
null
null
null
backup.sql
yoowook1207/RestroomFinder
57cc65f95a3f9b52ec8cd3618afb3f8eb1facfe8
[ "MIT" ]
null
null
null
backup.sql
yoowook1207/RestroomFinder
57cc65f95a3f9b52ec8cd3618afb3f8eb1facfe8
[ "MIT" ]
null
null
null
-- MySQL dump 10.13 Distrib 8.0.28, for macos12.0 (x86_64) -- -- Host: localhost Database: restroom_finder_db -- ------------------------------------------------------ -- Server version 8.0.28 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!50503 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `bathroom` -- DROP TABLE IF EXISTS `bathroom`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `bathroom` ( `id` int NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `lat` decimal(19,16) NOT NULL, `lon` decimal(19,16) NOT NULL, `image_url` varchar(255) DEFAULT NULL, `gendered` varchar(255) NOT NULL, `unisex` varchar(255) NOT NULL, `disabled_access` varchar(255) NOT NULL, `key` varchar(255) NOT NULL, `changing_tables` varchar(255) NOT NULL, `menstruation_products` varchar(255) NOT NULL, `user_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), CONSTRAINT `bathroom_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `bathroom` -- LOCK TABLES `bathroom` WRITE; /*!40000 ALTER TABLE `bathroom` DISABLE KEYS */; INSERT INTO `bathroom` VALUES (1,'Bathroom 1',38.9090640278533900,-77.0069463149400500,'','gendered','unisex','disabled','key','changingTables','period',8,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(2,'Bathroom 2',38.9029664011229400,-77.0630401580660300,'','gendered','false','disabled','false','false','false',6,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(3,'Bathroom 3',38.9059799492847840,-77.0224376977407300,'','false','unisex','disabled','key','changingTables','false',5,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(4,'Bathroom 4',38.9151180000000000,-77.0569490000000000,'','gendered','false','false','false','false','period',4,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(5,'Bathroom 5',38.9085367989268600,-77.0327643350491000,'','gendered','unisex','disabled','key','false','false',2,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(6,'Bathroom 6',38.9055690184308960,-77.0290678682852500,'','gendered','false','false','false','changingTables','false',3,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(7,'Bathroom 7',38.9047471495880500,-77.0370475425690300,'','false','unisex','disabled','key','false','period',1,'2022-03-09 17:48:56','2022-03-09 17:48:56'); /*!40000 ALTER TABLE `bathroom` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `review` -- DROP TABLE IF EXISTS `review`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `review` ( `id` int NOT NULL AUTO_INCREMENT, `review_text` varchar(200) DEFAULT NULL, `review_rating` int NOT NULL, `user_id` int DEFAULT NULL, `bathroom_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `review_user_id_bathroom_id_unique` (`user_id`,`bathroom_id`), KEY `bathroom_id` (`bathroom_id`), CONSTRAINT `review_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `review_ibfk_2` FOREIGN KEY (`bathroom_id`) REFERENCES `bathroom` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `review` -- LOCK TABLES `review` WRITE; /*!40000 ALTER TABLE `review` DISABLE KEYS */; INSERT INTO `review` VALUES (1,'Nunc rhoncus dui vel sem.',3,1,1,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(2,'Nunc rhoncus dui vel sem.',2,2,2,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(3,'Nunc rhoncus dui vel sem.',4,3,3,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(4,'Nunc rhoncus dui vel sem.',5,4,4,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(5,'Nunc rhoncus dui vel sem.',4,5,5,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(6,'Nunc rhoncus dui vel sem.',2,6,6,'2022-03-09 17:48:56','2022-03-09 17:48:56'),(7,'Nunc rhoncus dui vel sem.',3,7,7,'2022-03-09 17:48:56','2022-03-09 17:48:56'); /*!40000 ALTER TABLE `review` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `Sessions` -- DROP TABLE IF EXISTS `Sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `Sessions` ( `sid` varchar(36) NOT NULL, `expires` datetime DEFAULT NULL, `data` text, `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL, PRIMARY KEY (`sid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `Sessions` -- LOCK TABLES `Sessions` WRITE; /*!40000 ALTER TABLE `Sessions` DISABLE KEYS */; INSERT INTO `Sessions` VALUES ('ceXnGmbgxm2dH0_ZxXq4pkzmUS7CiGU3','2022-03-10 17:49:06','{\"cookie\":{\"originalMaxAge\":null,\"expires\":null,\"httpOnly\":true,\"path\":\"/\"},\"user_id\":11,\"username\":\"rheam\",\"loggedIn\":true}','2022-03-09 17:40:09','2022-03-09 17:49:06'); /*!40000 ALTER TABLE `Sessions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user` ( `id` int NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` VALUES (1,'dstanmer3','ihellier3@goo.ne.jp','$2b$10$BSTXamyPFrzaeTkSd5b33OsfxgxZkRrbciJAgCMX4a8fSKOdJeOc6'),(2,'jwilloughway1','rmebes1@sogou.com','$2b$10$x3CQXK2/DbyG7iarMKB7eugZTFINEgrUn1MDVfj/RNDebMuiv5Upy'),(3,'msprague5','larnout5@imdb.com','$2b$10$r7Edt4crjrAqJzu/V2j/v.X0pZDWbcocVa/.BSzUNw/MhdYVtuEim'),(4,'djiri4','gmidgley4@weather.com','$2b$10$R/Z7/SPDXSjcXv3mSrP2uOUTg4WDc7MySEaADQzL8/IIr1wAv6kpK'),(5,'tpenniell7','kperigo7@china.com.cn','$2b$10$A5BUjNh9afmd/pGwSdvNWulAFuwYAYrW3ycncYXVtFqoCaovnPbFe'),(6,'mpergens6','hnapleton6@feedburner.com','$2b$10$qYmk8afxdIAx.bEAzKgk.eDp/3iNRfW4BGKqUMps0oIfzO6h0hJxa'),(7,'msabbins8','lmongain8@google.ru','$2b$10$Eof7sivfCKhajjlNl7LeQukDAPk78L2RfX4hnVYI2MmCEi9e9cYuC'),(8,'jmacarthur9','bsteen9@epa.gov','$2b$10$pRwA3dF5a1GGMcOsgrWZUufP5OTlznsC47aId1Dt1FIWVMv/DBFu6'),(9,'iboddam2','cstoneman2@last.fm','$2b$10$9VYY5igLC0wHgr0RFVOfQORJxLolZQvjyNaIrUlflQS.dfrjafrO2'),(10,'alesmonde0','nwestnedge0@cbc.ca','$2b$10$jyfbDpFC1swPX7CL0c.NMuNBmeVWgyFtDRkoUnDJ77w.2T.Bx4ADS'); /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2022-03-09 14:32:18
53.019608
1,171
0.715853
a113ef44c8a34f7aedb05f9c1496149f26faef9b
511
kt
Kotlin
raspikiln-core/src/main/kotlin/org/raspikiln/kiln/common/Coroutines.kt
wakawaka54/raspikiln
4399b09d81c8cf0e7efd540d9acfdf9a4fb981bb
[ "MIT" ]
null
null
null
raspikiln-core/src/main/kotlin/org/raspikiln/kiln/common/Coroutines.kt
wakawaka54/raspikiln
4399b09d81c8cf0e7efd540d9acfdf9a4fb981bb
[ "MIT" ]
null
null
null
raspikiln-core/src/main/kotlin/org/raspikiln/kiln/common/Coroutines.kt
wakawaka54/raspikiln
4399b09d81c8cf0e7efd540d9acfdf9a4fb981bb
[ "MIT" ]
null
null
null
package org.raspikiln.kiln.common import kotlinx.coroutines.* object Scopes { val Application = CoroutineScope(SupervisorJob()) } object DispatcherScope { val ApplicationIo = CoroutineRuntime(scope = Scopes.Application, dispatcher = Dispatchers.IO) } data class CoroutineRuntime(val scope: CoroutineScope, val dispatcher: CoroutineDispatcher) { fun launch(block: suspend () -> Unit) = scope.launch { withContext(dispatcher) { block() } } }
25.55
97
0.67319
40bd1bd23e8faca7d2785486322b3805ff8339c3
517
html
HTML
web/app/gospeak/web/emails/inviteOrgaToGroupAccepted.scala.html
chrilves/gospeak
2acd1deb1c29a2efc219c8276fe1dc9e8c8ff06d
[ "Apache-2.0" ]
null
null
null
web/app/gospeak/web/emails/inviteOrgaToGroupAccepted.scala.html
chrilves/gospeak
2acd1deb1c29a2efc219c8276fe1dc9e8c8ff06d
[ "Apache-2.0" ]
null
null
null
web/app/gospeak/web/emails/inviteOrgaToGroupAccepted.scala.html
chrilves/gospeak
2acd1deb1c29a2efc219c8276fe1dc9e8c8ff06d
[ "Apache-2.0" ]
null
null
null
@import gospeak.core.domain.{Group, User, UserRequest} @import gospeak.web.pages.orga.routes.GroupCtrl @import gospeak.web.utils.UserReq @(invite: UserRequest.GroupInvite, group: Group, orga: User)(implicit req: UserReq[AnyContent]) <p>Hi @orga.name.value,</p> <p><a href="mailto:@req.user.email.value">@req.user.name.value</a> has <b>accepted</b> your invitation to <a href="@req.format(GroupCtrl.detail(group.slug))">@group.name.value</a>.</p> <p>Together you are stronger, keep going!</p> <p>The Gospeak team</p>
51.7
184
0.73501
beaa56574833f00c109f770afce9ba222eb55ba8
25,731
rs
Rust
src/layer.rs
CympleTech/group-chat
ef34a0e3e18b9d2679f796696b6ce2786a066d3c
[ "Apache-2.0", "MIT" ]
2
2021-04-28T06:09:14.000Z
2021-09-28T01:46:57.000Z
src/layer.rs
CympleTech/group-chat
ef34a0e3e18b9d2679f796696b6ce2786a066d3c
[ "Apache-2.0", "MIT" ]
null
null
null
src/layer.rs
CympleTech/group-chat
ef34a0e3e18b9d2679f796696b6ce2786a066d3c
[ "Apache-2.0", "MIT" ]
3
2021-04-28T06:09:18.000Z
2022-02-08T16:21:51.000Z
use std::collections::HashMap; use std::path::PathBuf; use tdn::types::{ group::GroupId, message::{RecvType, SendType}, primitive::{HandleResult, PeerAddr, Result}, }; use group_chat_types::{ CheckType, ConnectProof, Event, GroupInfo, GroupType, JoinProof, LayerConnect, LayerEvent, LayerResult, GROUP_CHAT_ID, }; use crate::manager::Manager; use crate::models::{Consensus, ConsensusType, GroupChat, Member, Message, Request}; use crate::storage::{delete_avatar, init_local_files, read_avatar, write_avatar}; use crate::{DEFAULT_REMAIN, NAME, PERMISSIONLESS, SUPPORTED}; /// Group chat server to ESSE. #[inline] pub fn add_layer(results: &mut HandleResult, gid: GroupId, msg: SendType) { results.layers.push((GROUP_CHAT_ID, gid, msg)); } pub(crate) struct Layer { base: PathBuf, /// running groups, with members info. /// params: online members (member id, member address, is manager), current height, db id. groups: HashMap<GroupId, (Vec<(GroupId, PeerAddr, bool)>, i64, i64)>, } impl Layer { pub(crate) async fn new(base: PathBuf) -> Result<Layer> { // load groups let gs = GroupChat::all().await?; let mut groups = HashMap::new(); for group in gs { groups.insert(group.g_id, (vec![], group.height, group.id)); } Ok(Layer { base, groups }) } pub(crate) async fn handle(&mut self, gid: GroupId, msg: RecvType) -> Result<HandleResult> { let mut results = HandleResult::new(); match msg { RecvType::Connect(addr, data) => { let LayerConnect(gcd, connect) = bincode::deserialize(&data) .map_err(|_e| anyhow!("deserialize group chat connect failure"))?; match connect { ConnectProof::Common(proof) => { let (height, fid) = self.height_and_fid(&gcd)?; // check is member. if Member::exist(&fid, &gid).await? { self.add_member(&gcd, gid, addr); Self::had_join(height, gcd, gid, addr, &mut results); let new_data = bincode::serialize(&LayerEvent::MemberOnline(gcd, gid, addr)) .map_err(|_| anyhow!("serialize event error."))?; for (mid, maddr, _) in self.groups(&gcd)? { let s = SendType::Event(0, *maddr, new_data.clone()); add_layer(&mut results, *mid, s); } } else { let s = SendType::Result(0, addr, false, false, vec![]); add_layer(&mut results, gid, s); } } ConnectProof::Zkp(_proof) => { // } } } RecvType::Leave(addr) => { for (g, (members, _, _)) in self.groups.iter_mut() { if let Some(pos) = members.iter().position(|(_, x, _)| x == &addr) { let (mid, addr, _) = members.remove(pos); let data = bincode::serialize(&LayerEvent::MemberOffline(*g, mid)) .map_err(|_| anyhow!("serialize event error."))?; for (mid, maddr, _) in members { let s = SendType::Event(0, *maddr, data.clone()); add_layer(&mut results, *mid, s); } } } } RecvType::Event(addr, bytes) => { println!("Got Event"); let event: LayerEvent = bincode::deserialize(&bytes) .map_err(|_| anyhow!("deserialize event error."))?; self.handle_event(gid, addr, event, &mut results).await?; } RecvType::Stream(_uid, _stream, _bytes) => { // TODO stream } RecvType::Result(..) => {} // no-reach here. RecvType::ResultConnect(..) => {} // no-reach here. RecvType::Delivery(..) => {} // no-reach here. } Ok(results) } async fn handle_event( &mut self, fmid: GroupId, addr: PeerAddr, gevent: LayerEvent, results: &mut HandleResult, ) -> Result<()> { match gevent { LayerEvent::Offline(gcd) => { if !self.is_online_member(&gcd, &fmid) { return Ok(()); } self.del_member(&gcd, &fmid); let new_data = bincode::serialize(&LayerEvent::MemberOffline(gcd, fmid)) .map_err(|_| anyhow!("serialize event error."))?; for (mid, maddr, _) in self.groups(&gcd)? { let s = SendType::Event(0, *maddr, new_data.clone()); add_layer(results, *mid, s); } } LayerEvent::Suspend(gcd) => { // TODO } LayerEvent::Actived(gcd) => { // TODO } LayerEvent::Check => { let (t, r) = if let Ok(manager) = Manager::get(&fmid).await { if manager.is_closed { (CheckType::Suspend, manager.times) } else if manager.times > 0 { (CheckType::Allow, manager.times) } else { (CheckType::None, 0) } } else { if PERMISSIONLESS { (CheckType::Allow, DEFAULT_REMAIN) } else { (CheckType::Deny, 0) } }; let res = LayerEvent::CheckResult(t, NAME.to_owned(), r as i64, SUPPORTED.to_vec()); let data = bincode::serialize(&res).unwrap_or(vec![]); let s = SendType::Event(0, addr, data); add_layer(results, fmid, s); } LayerEvent::Create(info, _proof) => { let manager = if let Ok(manager) = Manager::get(&fmid).await { manager } else { if PERMISSIONLESS { // add manager. let mut manager = Manager::new(fmid); manager.insert().await?; manager } else { // return Deny to outside. let res = LayerEvent::CheckResult(CheckType::Deny, "".to_owned(), 0, vec![]); let data = bincode::serialize(&res).unwrap_or(vec![]); let s = SendType::Event(0, addr, data); add_layer(results, fmid, s); return Ok(()); } }; if manager.is_closed { let res = LayerEvent::CheckResult( CheckType::Suspend, NAME.to_owned(), manager.times as i64, SUPPORTED.to_vec(), ); let data = bincode::serialize(&res).unwrap_or(vec![]); let s = SendType::Event(0, addr, data); add_layer(results, fmid, s); return Ok(()); } if manager.times == 0 { let res = LayerEvent::CheckResult( CheckType::None, NAME.to_owned(), 0, SUPPORTED.to_vec(), ); let data = bincode::serialize(&res).unwrap_or(vec![]); let s = SendType::Event(0, addr, data); add_layer(results, fmid, s); return Ok(()); } // TODO check proof. let gcd = match info { GroupInfo::Common( owner, owner_name, owner_avatar, gcd, gt, need_agree, name, bio, avatar, ) => { let mut gc = GroupChat::new(owner, gcd, gt, name, bio, need_agree, vec![]); gc.insert().await?; let _ = init_local_files(&self.base, &gc.g_id).await; let _ = write_avatar(&self.base, &gc.g_id, &gc.g_id, &avatar).await; // add frist member. let mut mem = Member::new(gc.id, owner, addr, owner_name, true); mem.insert().await?; // save member avatar. let _ = write_avatar(&self.base, &gc.g_id, &mem.m_id, &owner_avatar).await; println!("add member ok"); // reduce manager remain. let _ = manager.reduce().await; self.create_group(gc.id, gcd, fmid, addr); println!("add group ok"); self.add_height(&gcd, &mem.id, ConsensusType::MemberJoin) .await?; println!("add consensus ok"); gcd } GroupInfo::Encrypted(gcd, ..) => gcd, }; let res = LayerEvent::CreateResult(gcd, true); let data = bincode::serialize(&res).unwrap_or(vec![]); let s = SendType::Event(0, addr, data); add_layer(results, fmid, s); } LayerEvent::Request(gcd, join_proof) => { // 1. check account is online, if not online, nothing. match join_proof { JoinProof::Open(mname, mavatar) => { let fid = self.fid(&gcd)?; let group = GroupChat::get_id(&fid).await?; // check is member. if Member::exist(fid, &fmid).await? { self.add_member(&gcd, fmid, addr); self.agree(gcd, fmid, addr, group, results).await?; return Ok(()); } if group.g_type == GroupType::Open { let mut m = Member::new(*fid, fmid, addr, mname, false); m.insert().await?; // save avatar. let _ = write_avatar(&self.base, &gcd, &m.m_id, &mavatar).await; self.add_member(&gcd, fmid, addr); self.broadcast_join(&gcd, m, mavatar, results).await?; // return join result. self.agree(gcd, fmid, addr, group, results).await?; } else { Self::reject(gcd, fmid, addr, false, results); } } JoinProof::Invite(invite_gid, proof, mname, mavatar) => { let fid = self.fid(&gcd)?; let group = GroupChat::get_id(fid).await?; // check is member. if Member::exist(fid, &fmid).await? { self.add_member(&gcd, fmid, addr); self.agree(gcd, fmid, addr, group, results).await?; return Ok(()); } // TODO check if request had or is blocked by manager. // check if inviter is member. if !Member::exist(fid, &invite_gid).await? { Self::reject(gcd, fmid, addr, true, results); return Ok(()); } // TODO check proof. // proof.verify(&invite_gid, &addr, &layer.addr)?; if group.is_need_agree { if !Member::is_manager(fid, &invite_gid).await? { let mut request = Request::new(); request.insert().await?; self.broadcast_request( &gcd, request, JoinProof::Invite(invite_gid, proof, mname, mavatar), results, ); return Ok(()); } } let mut m = Member::new(*fid, fmid, addr, mname, false); m.insert().await?; // save avatar. let _ = write_avatar(&self.base, &gcd, &m.m_id, &mavatar).await; self.add_member(&gcd, fmid, addr); self.broadcast_join(&gcd, m, mavatar, results).await?; // return join result. self.agree(gcd, fmid, addr, group, results).await?; } JoinProof::Zkp(_proof) => { // TOOD zkp join. } } } LayerEvent::RequestResult(gcd, rid, ok) => { let fid = self.fid(&gcd)?; if Member::is_manager(fid, &fmid).await? { let request = Request::get(&rid).await?; if &request.fid == fid { if ok { let group = GroupChat::get_id(fid).await?; let mut m = request.to_member(); m.insert().await?; self.add_member(&gcd, m.m_id, m.m_addr); self.agree(gcd, m.m_id, m.m_addr, group, results).await?; let mavatar = read_avatar(&self.base, &gcd, &fmid).await?; self.broadcast_join(&gcd, m, mavatar, results).await?; } else { Self::reject(gcd, request.m_id, request.m_addr, true, results); } } self.broadcast_request_result(&gcd, rid, ok, results); } } LayerEvent::Sync(gcd, _, event) => { println!("Start handle Event."); if !self.is_online_member(&gcd, &fmid) { return Ok(()); } let fid = self.fid(&gcd)?; let (cid, ctype) = match &event { Event::GroupInfo => { // TODO (0, ConsensusType::GroupInfo) } Event::GroupTransfer => { // TODO (0, ConsensusType::GroupTransfer) } Event::GroupManagerAdd => { // TODO (0, ConsensusType::GroupManagerAdd) } Event::GroupManagerDel => { // TODO (0, ConsensusType::GroupManagerDel) } Event::GroupClose => { // TODO (0, ConsensusType::GroupClose) } Event::MemberInfo(mid, maddr, mname, mavatar) => { let member = Member::get(fid, mid).await?; // TODO (member.id, ConsensusType::MemberInfo) } Event::MemberLeave(mid) => { let member = Member::get(fid, mid).await?; member.leave().await?; let _ = delete_avatar(&self.base, &gcd, &mid).await; (member.id, ConsensusType::MemberLeave) } Event::MessageCreate(mid, nmsg, _) => { let id = Message::from_network_message(&self.base, &gcd, fid, mid, nmsg).await?; (id, ConsensusType::MessageCreate) } Event::MemberJoin(..) => return Ok(()), // Never here. }; let height = self.add_height(&gcd, &cid, ctype).await?; println!("Event broadcast"); let new_data = bincode::serialize(&LayerEvent::Sync(gcd, height, event)) .map_err(|_| anyhow!("serialize event error."))?; for (mid, maddr, _) in self.groups(&gcd)? { let s = SendType::Event(0, *maddr, new_data.clone()); add_layer(results, *mid, s); } } LayerEvent::SyncReq(gcd, from) => { if !self.is_online_member(&gcd, &fmid) { return Ok(()); } let (height, fid) = self.height_and_fid(&gcd)?; println!("Got sync request. height: {} from: {}", height, from); if height >= from { let to = if height - from > 100 { from + 100 } else { height }; let packed = Consensus::pack(&self.base, &gcd, &fid, &from, &to).await?; let event = LayerEvent::Packed(gcd, height, from, to, packed); let data = bincode::serialize(&event).unwrap_or(vec![]); let s = SendType::Event(0, addr, data); add_layer(results, fmid, s); println!("Sended sync request results. from: {}, to: {}", from, to); } } LayerEvent::MemberOnlineSync(gcd) => { if !self.is_online_member(&gcd, &fmid) { return Ok(()); } let onlines = self.onlines(&gcd)?; let event = LayerEvent::MemberOnlineSyncResult(gcd, onlines); let data = bincode::serialize(&event).unwrap_or(vec![]); let s = SendType::Event(0, addr, data); add_layer(results, fmid, s); } LayerEvent::MemberOnlineSyncResult(..) => {} // Nerver here. LayerEvent::CheckResult(..) => {} // Nerver here. LayerEvent::CreateResult(..) => {} // Nerver here. LayerEvent::RequestHandle(..) => {} // Nerver here. LayerEvent::Agree(..) => {} // Nerver here. LayerEvent::Reject(..) => {} // Nerver here. LayerEvent::Packed(..) => {} // Nerver here. LayerEvent::MemberOnline(..) => {} // Nerver here. LayerEvent::MemberOffline(..) => {} // Never here. } Ok(()) } fn fid(&self, gid: &GroupId) -> Result<&i64> { self.groups .get(gid) .map(|v| &v.2) .ok_or(anyhow!("Group missing")) } fn height(&self, gid: &GroupId) -> Result<i64> { self.groups .get(gid) .map(|v| v.1) .ok_or(anyhow!("Group missing")) } fn height_and_fid(&self, gid: &GroupId) -> Result<(i64, i64)> { self.groups .get(gid) .map(|v| (v.1, v.2)) .ok_or(anyhow!("Group missing")) } fn groups(&self, gid: &GroupId) -> Result<&Vec<(GroupId, PeerAddr, bool)>> { self.groups .get(gid) .map(|v| &v.0) .ok_or(anyhow!("Group missing")) } fn onlines(&self, gid: &GroupId) -> Result<Vec<(GroupId, PeerAddr)>> { self.groups .get(gid) .map(|v| v.0.iter().map(|(g, a, _)| (*g, *a)).collect()) .ok_or(anyhow!("Group missing")) } pub fn create_group(&mut self, id: i64, gid: GroupId, rid: GroupId, raddr: PeerAddr) { self.groups.insert(gid, (vec![(rid, raddr, true)], 0, id)); } pub async fn add_height( &mut self, gid: &GroupId, cid: &i64, ctype: ConsensusType, ) -> Result<i64> { if let Some((_, height, fid)) = self.groups.get_mut(gid) { *height += 1; // save. Consensus::insert(fid, height, cid, &ctype).await?; GroupChat::add_height(fid, height).await?; Ok(*height) } else { Err(anyhow!("Group missing")) } } pub fn add_member(&mut self, gid: &GroupId, rid: GroupId, raddr: PeerAddr) { if let Some((members, _, _)) = self.groups.get_mut(gid) { for (mid, maddr, is_m) in members.iter_mut() { if *mid == rid { *maddr = raddr; return; } } members.push((rid, raddr, false)); } } pub fn del_member(&mut self, gid: &GroupId, rid: &GroupId) { if let Some((members, _, _)) = self.groups.get_mut(gid) { if let Some(pos) = members.iter().position(|(mid, _, _)| mid == rid) { members.remove(pos); } } } pub fn is_online_member(&self, gid: &GroupId, mid: &GroupId) -> bool { if let Some((members, _, _)) = self.groups.get(gid) { for (mmid, _, _) in members { if mmid == mid { return true; } } } false } pub async fn broadcast_join( &mut self, gcd: &GroupId, member: Member, avatar: Vec<u8>, results: &mut HandleResult, ) -> Result<()> { println!("start broadcast join..."); let height = self .add_height(gcd, &member.id, ConsensusType::MemberJoin) .await?; let datetime = member.datetime; let event = Event::MemberJoin( member.m_id, member.m_addr, member.m_name, avatar, member.datetime, ); let new_data = bincode::serialize(&LayerEvent::Sync(*gcd, height, event)).unwrap_or(vec![]); if let Some((members, _, _)) = self.groups.get(gcd) { for (mid, maddr, _) in members { let s = SendType::Event(0, *maddr, new_data.clone()); add_layer(results, *mid, s); } } println!("over broadcast join..."); Ok(()) } fn broadcast_request( &self, gcd: &GroupId, request: Request, join: JoinProof, results: &mut HandleResult, ) { println!("start broadcast request..."); let event = LayerEvent::RequestHandle( *gcd, request.m_id, request.m_addr, join, request.id, request.datetime, ); let new_data = bincode::serialize(&event).unwrap_or(vec![]); if let Some((members, _, _)) = self.groups.get(gcd) { for (mid, maddr, is_m) in members { if *is_m { let s = SendType::Event(0, *maddr, new_data.clone()); add_layer(results, *mid, s); } } } } fn broadcast_request_result( &self, gcd: &GroupId, rid: i64, ok: bool, results: &mut HandleResult, ) { println!("start broadcast request result..."); let new_data = bincode::serialize(&LayerEvent::RequestResult(*gcd, rid, ok)).unwrap_or(vec![]); if let Some((members, _, _)) = self.groups.get(gcd) { for (mid, maddr, is_m) in members { if *is_m { let s = SendType::Event(0, *maddr, new_data.clone()); add_layer(results, *mid, s); } } } } fn had_join( height: i64, gcd: GroupId, gid: GroupId, addr: PeerAddr, results: &mut HandleResult, ) { let res = LayerResult(gcd, height); let data = bincode::serialize(&res).unwrap_or(vec![]); let s = SendType::Result(0, addr, true, false, data); add_layer(results, gid, s); } async fn agree( &self, gcd: GroupId, gid: GroupId, addr: PeerAddr, group: GroupChat, results: &mut HandleResult, ) -> Result<()> { let gavatar = read_avatar(&self.base, &gcd, &gcd).await?; let group_info = group.to_group_info(gavatar); let res = LayerEvent::Agree(gcd, group_info); let d = bincode::serialize(&res).unwrap_or(vec![]); let s = SendType::Event(0, addr, d); add_layer(results, gid, s); Ok(()) } fn reject(gcd: GroupId, gid: GroupId, addr: PeerAddr, lost: bool, res: &mut HandleResult) { let d = bincode::serialize(&LayerEvent::Reject(gcd, lost)).unwrap_or(vec![]); add_layer(res, gid, SendType::Event(0, addr, d)); } }
38.519461
100
0.426451
2da7eb7ba67813fa7dcf567cbc7a6ca85917be83
15,974
html
HTML
gisTest/gis/cesiumPlugin/earthSDK/v1.2.7/Apps/Examples/cesium-primitive-customPrimitive.html
hepingmogul/js-plugin
7f5ba9aadfe1cbec1a4d4f98b15f7e426daae2c5
[ "MIT" ]
1
2020-12-06T14:49:42.000Z
2020-12-06T14:49:42.000Z
gisTest/gis/cesiumPlugin/earthSDK/v1.2.7/Apps/Examples/cesium-primitive-customPrimitive.html
hepingmogul/js-plugin
7f5ba9aadfe1cbec1a4d4f98b15f7e426daae2c5
[ "MIT" ]
null
null
null
gisTest/gis/cesiumPlugin/earthSDK/v1.2.7/Apps/Examples/cesium-primitive-customPrimitive.html
hepingmogul/js-plugin
7f5ba9aadfe1cbec1a4d4f98b15f7e426daae2c5
[ "MIT" ]
1
2021-03-18T01:30:44.000Z
2021-03-18T01:30:44.000Z
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="xbsj-labels" content="Cesium示例"></meta> <title>Cesium自定义Primitive</title> <!-- 0 引入js文件 --> <script src="../../XbsjEarth/XbsjEarth.js"></script> <style> html, body { width: 100%; height: 100%; margin: 0px; padding: 0px; } </style> </head> <body> <div id="earthContainer" style="width: 100%; height: 100%; background: grey"> </div> <script> var earth; var bgImagery; function startup() { earth = new XE.Earth('earthContainer'); earth.sceneTree.root = { "children": [ { "czmObject": { "name": "默认离线影像", "xbsjType": "Imagery", "xbsjImageryProvider": { "createTileMapServiceImageryProvider": { "url": XE.HTML.cesiumDir + 'Assets/Textures/NaturalEarthII', "fileExtension": 'jpg', }, "type": "createTileMapServiceImageryProvider" } } }, ] }; const viewer = earth.czm.viewer; // 1 自定义Primitive class VtxfPrimitive { constructor(modelMatrix) { // 1.0 立方体顶点位置标号,以及坐标系示意图 // 立方体 // v6----- v5 // /| /| // v1------v0| // | | | | // | |v7---|-|v4 // |/ |/ // v2------v3 // 坐标系 // z // | /y // |/ // o------x // 1.1 定义位置数组 var v0 = [0.5, -0.5, 0.5]; var v1 = [-0.5, -0.5, 0.5]; var v2 = [-0.5, -0.5, -0.5]; var v3 = [0.5, -0.5, -0.5]; var v4 = [0.5, 0.5, -0.5]; var v5 = [0.5, 0.5, 0.5]; var v6 = [-0.5, 0.5, 0.5]; var v7 = [-0.5, 0.5, -0.5]; var rawVertex = [ // 下 -z ...v2, ...v3, ...v4, ...v7, // 前 -y ...v2, ...v3, ...v0, ...v1, // 后 +y ...v4, ...v7, ...v6, ...v5, // 左 -x ...v7, ...v2, ...v1, ...v6, // 右 +x ...v3, ...v4, ...v5, ...v0, // 上 +z ...v1, ...v0, ...v5, ...v6, ]; // var positions = new Float64Array(rawVertex); var positions = new Float32Array(rawVertex); // 1.2 定义法向数组 var npx = [1, 0, 0]; var nnx = [-1, 0, 0]; var npy = [0, 1, 0]; var nny = [0, -1, 0]; var npz = [0, 0, 1]; var nnz = [0, 0, -1]; var normals = new Float32Array([ // 下 -z ...nnz, ...nnz, ...nnz, ...nnz, // 前 -y ...nny, ...nny, ...nny, ...nny, // 后 +y ...npy, ...npy, ...npy, ...npy, // 左 -x ...nnx, ...nnx, ...nnx, ...nnx, // 右 +x ...npx, ...npx, ...npx, ...npx, // 上 +z ...npz, ...npz, ...npz, ...npz, ]); // 1.3 定义纹理数组 var sts = new Float32Array([ 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, ]); // 1.4 定义索引 var indices = new Uint16Array([ 0, 1, 2, 0, 2, 3, 4, 5, 6, 4, 6, 7, 8, 9, 10, 8, 10, 11, 12, 13, 14, 12, 14, 15, 16, 17, 18, 16, 18, 19, 20, 21, 22, 20, 22, 23, ]); // 1.5 定义纹理 var texture = undefined; var imageUri = './images/earth.png'; Cesium.Resource.createIfNeeded(imageUri).fetchImage().then(function(image) { console.log('image loaded!'); var vtxfTexture; var context = viewer.scene.context; if (Cesium.defined(image.internalFormat)) { vtxfTexture = new Cesium.Texture({ context: context, pixelFormat: image.internalFormat, width: image.width, height: image.height, source: { arrayBufferView: image.bufferView } }); } else { vtxfTexture = new Cesium.Texture({ context: context, source: image }); } texture = vtxfTexture; }); // vtxf 使用double类型的position进行计算 // var attributeLocations = { // position3DHigh : 0, // position3DLow : 1, // normal : 2, // textureCoordinates : 3, // }; // 1.6 定义attributeLocations var attributeLocations = { position: 0, normal: 1, textureCoordinates: 2, }; // 1.7 定义shader var vtxfVertexShader = ` // vtxf 使用double类型的position进行计算 // attribute vec3 position3DHigh; // attribute vec3 position3DLow; attribute vec3 position; attribute vec3 normal; attribute vec2 st; attribute float batchId; varying vec3 v_positionEC; varying vec3 v_normalEC; varying vec2 v_st; void main() { // vtxf 使用double类型的position进行计算 // vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow); // v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates // v_normalEC = czm_normal * normal; // normal in eye coordinates // v_st = st; // gl_Position = czm_modelViewProjectionRelativeToEye * p; v_positionEC = (czm_modelView * vec4(position, 1.0)).xyz; // position in eye coordinates v_normalEC = czm_normal * normal; // normal in eye coordinates v_st = st; gl_Position = czm_modelViewProjection * vec4(position, 1.0); } `; var vtxfFragmentShader = ` varying vec3 v_positionEC; varying vec3 v_normalEC; varying vec2 v_st; uniform sampler2D myImage; void main() { vec3 positionToEyeEC = -v_positionEC; vec3 normalEC = normalize(v_normalEC); #ifdef FACE_FORWARD normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC); #endif czm_materialInput materialInput; materialInput.normalEC = normalEC; materialInput.positionToEyeEC = positionToEyeEC; materialInput.st = v_st; //czm_material material = czm_getMaterial(materialInput); czm_material material = czm_getDefaultMaterial(materialInput); material.diffuse = texture2D(myImage, materialInput.st).rgb; #ifdef FLAT gl_FragColor = vec4(material.diffuse + material.emission, material.alpha); #else gl_FragColor = czm_phong(normalize(positionToEyeEC), material); #endif } `; // 1.8 创建vertexArray function createVertexArray(context) { var geometry = new Cesium.Geometry({ attributes: { position: new Cesium.GeometryAttribute({ // vtxf 使用double类型的position进行计算 // componentDatatype : Cesium.ComponentDatatype.DOUBLE, componentDatatype: Cesium.ComponentDatatype.FLOAT, componentsPerAttribute: 3, values: positions }), normal: new Cesium.GeometryAttribute({ componentDatatype: Cesium.ComponentDatatype.FLOAT, componentsPerAttribute: 3, values: normals }), textureCoordinates: new Cesium.GeometryAttribute({ componentDatatype: Cesium.ComponentDatatype.FLOAT, componentsPerAttribute: 2, values: sts }) }, // Workaround Internet Explorer 11.0.8 lack of TRIANGLE_FAN indices: indices, primitiveType: Cesium.PrimitiveType.TRIANGLES, boundingSphere: Cesium.BoundingSphere.fromVertices(positions) }); var vertexArray = Cesium.VertexArray.fromGeometry({ context: context, geometry: geometry, attributeLocations: attributeLocations, bufferUsage: Cesium.BufferUsage.STATIC_DRAW, // interleave : true }); return vertexArray; }; // 1.9 创建command function createCommand(context) { var translucent = false; var closed = true; // 借用一下Appearance.getDefaultRenderState var rawRenderState = Cesium.Appearance.getDefaultRenderState(translucent, closed, undefined); var renderState = Cesium.RenderState.fromCache(rawRenderState); var vertexShaderSource = new Cesium.ShaderSource({ sources: [vtxfVertexShader] }); var fragmentShaderSource = new Cesium.ShaderSource({ sources: [vtxfFragmentShader] }); var uniformMap = { myImage: function() { if (Cesium.defined(texture)) { return texture; } else { return context.defaultTexture; } } } var shaderProgram = Cesium.ShaderProgram.fromCache({ context: context, vertexShaderSource: vertexShaderSource, fragmentShaderSource: fragmentShaderSource, attributeLocations: attributeLocations }); return new Cesium.DrawCommand({ vertexArray: createVertexArray(context), primitiveType: Cesium.PrimitiveType.TRIANGLES, renderState: renderState, shaderProgram: shaderProgram, uniformMap: uniformMap, owner: this, // framebuffer : framebuffer, pass: Cesium.Pass.OPAQUE, modelMatrix: modelMatrix, }); } this.show = true; this._command = undefined; this._createCommand = createCommand; } update(frameState) { if (!this.show) { return; } if (!Cesium.defined(this._command)) { this._command = this._createCommand(frameState.context); } if (Cesium.defined(this._command)) { frameState.commandList.push(this._command); } } isDestroyed() { return false; } destroy() { if (Cesium.defined(this._command)) { this._command.shaderProgram = this._command.shaderProgram && this._command.shaderProgram.destroy(); } return destroyObject(this); }; } // 2 创建Primitive var boxLength = 100000.0; var position = Cesium.Cartesian3.fromDegrees(116.39, 39.9, 0.5 * boxLength); // var modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(position); var enuMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(position); var scaleMatrix = Cesium.Matrix4.fromScale(new Cesium.Cartesian3(boxLength, boxLength, boxLength)); var modelMatrix = Cesium.Matrix4.multiply(enuMatrix, scaleMatrix, new Cesium.Matrix4()); var myBox = viewer.scene.primitives.add(new VtxfPrimitive(modelMatrix)); viewer.camera.flyToBoundingSphere(new Cesium.BoundingSphere(position, 100000)); } // 1 XE.ready()会加载Cesium.js等其他资源,注意ready()返回一个Promise对象。 XE.ready().then(startup); </script> </body> </html>
46.571429
123
0.372543
39d0677c0f7f8e94d172192993b31f5a0d884894
2,658
js
JavaScript
src/components/Icon/icons/files/downloadPdf.js
JuntingLiu/karang
898f907eecae5d8d09180b15afa31774dc33e8d8
[ "MIT" ]
18
2019-05-30T03:35:40.000Z
2022-01-17T03:36:10.000Z
src/components/Icon/icons/files/downloadPdf.js
JuntingLiu/karang
898f907eecae5d8d09180b15afa31774dc33e8d8
[ "MIT" ]
1
2019-06-10T06:48:09.000Z
2019-06-10T06:48:09.000Z
src/components/Icon/icons/files/downloadPdf.js
JuntingLiu/karang
898f907eecae5d8d09180b15afa31774dc33e8d8
[ "MIT" ]
5
2019-06-06T11:35:07.000Z
2021-09-06T09:15:07.000Z
import React from 'react'; import createSVGIcon from '../utils/createSVGIcon'; const downloadPdf = createSVGIcon( <path d="M72.8,163.7c0-1,0.3-1.7,0.8-2.2c0.5-0.5,1.3-0.7,2.2-0.7c0.9,0,1.7,0.3,2.2,0.8c0.5,0.5,0.8,1.2,0.8,2.2 c0,0.9-0.3,1.6-0.8,2.1c-0.5,0.5-1.3,0.8-2.2,0.8c-1,0-1.7-0.3-2.2-0.8S72.8,164.6,72.8,163.7z M89.3,152.9H91c1.6,0,2.8-0.3,3.7-1 c0.8-0.6,1.2-1.6,1.2-2.8c0-1.2-0.3-2.2-1-2.8s-1.7-0.9-3.2-0.9h-2.4L89.3,152.9L89.3,152.9z M101.2,148.9c0,2.7-0.8,4.7-2.5,6.2 s-4.1,2.1-7.2,2.1h-2.3v8.9H84v-25h8c3,0,5.3,0.7,6.9,2C100.4,144.4,101.2,146.3,101.2,148.9L101.2,148.9z M126.7,153.4 c0,4.1-1.2,7.3-3.5,9.5s-5.7,3.3-10.1,3.3h-7.1v-25h7.8c4.1,0,7.2,1.1,9.5,3.2C125.5,146.5,126.7,149.5,126.7,153.4L126.7,153.4z M121.2,153.5c0-5.4-2.4-8-7.1-8h-2.8v16.3h2.3C118.6,161.7,121.2,159,121.2,153.5L121.2,153.5z M158.4,27.9c1.7-1.7,4.6-1.7,6.3,0 l4.1,3v-8.1c0-1.2,0.2-2.3,1-3.1c0.8-0.8,1.6-1.3,2.8-1.3c2.4,0,4.1,1.9,4.1,4.3v8l4.1-2.9c1.7-1.7,4.7-1.7,6.4,0 c1.7,1.7,1.7,4.5,0,6.2l-11.4,10.4c-1.7,1.7-4.5,1.7-6.2,0l-11.4-10.4C156.7,32.4,156.7,29.6,158.4,27.9z M173.8,58.8 c0.8,0.8,1.2,1.6,1.2,2.7v125.2c0,6.7-5.1,11.7-11.7,11.7H53.7c-6.7,0-11.7-5.1-11.7-11.7V30.2c0-6.7,5.1-11.7,11.7-11.7H132 c1.2,0,2,0.4,2.7,1.2L173.8,58.8z M167.2,186.8V65.5h-27.4c-6.7,0-11.7-5.1-11.7-11.7V26.3H53.7c-2.3,0-3.9,1.6-3.9,3.9v156.5 c0,2.3,1.6,3.9,3.9,3.9h109.6C165.6,190.7,167.2,189.1,167.2,186.8z M137.1,166.1h-5.2v-25h14.3v4.3h-9.1v6.4h8.5v4.3h-8.5V166.1 L137.1,166.1z M135.9,31.8v21.9c0,2.3,1.6,3.9,3.9,3.9h21.9C161.7,57.6,135.9,31.8,135.9,31.8z M122,100.7c0.9,0,1.8,0,2.7,0 c12.1,0,20.2,2.6,22.9,7.2c1.2,2.1,1.2,4.4,0.1,6.4c-1.5,2.6-4.8,4.2-8.8,4.2c-1,0-1.9-0.1-2.9-0.3c-4.9-0.9-10.1-4.5-16.6-11.3 c-1.6,0.1-3.3,0.2-4.9,0.4c-3.7,0.4-10.9,1.3-18.3,3.6c-3.6,6.4-10.2,17.5-15.3,20.8c-2,1.3-4.1,2-6,2c-2.8,0-5-1.4-5.9-3.8 c-1.6-3.8,0.6-9,6-14.2c4.1-4,9.8-7.3,17-9.8c3.8-7,7.2-14.4,9.6-20.8c-5.5-8.7-6.4-19.1-4.5-25c1.3-4,3.6-5.5,5.2-6 c2.3-0.8,4.8-0.2,6.5,1.6c2.4,2.6,3.3,7.8,2.8,15.9c-0.2,3.2-1.3,7.4-3.1,12.6l0.1,0.1c1.2,1.5,2.6,3.2,4,4.9 C115.4,92.9,118.7,97,122,100.7L122,100.7z M142.3,111c-0.8-1.3-4.6-3.6-14.2-4.1c3.5,3.1,6.5,4.9,9,5.3c0.6,0.1,1.2,0.2,1.8,0.2 c2,0,3.2-0.7,3.5-1.2C142.4,111.2,142.4,111.1,142.3,111z M113.9,101.2l0.4,0c-2.3-2.8-4.6-5.6-6.6-8.2c-0.6-0.8-1.2-1.5-1.8-2.2 c-1.7,4-3.7,8.4-5.8,12.7C105.6,102.2,110.6,101.5,113.9,101.2z M102.9,62c-1.2,3.8-0.7,9.7,1.4,14.9c0.6-2.3,1-4.2,1.1-5.8 c0.6-8.8-0.8-10.9-1.1-11.3c0,0,0,0,0,0C103.9,60,103.3,60.6,102.9,62z M77.5,126.5c2-1.3,5.5-5.7,9.3-11.8c-3,1.6-5.6,3.4-7.6,5.4 c-4.3,4.2-4.7,6.8-4.6,7.5c0.1,0,0.1,0,0.3,0C75.6,127.5,76.6,127.2,77.5,126.5z" />, 'DownloadPDF' ); export default downloadPdf;
83.0625
126
0.609481
2a0fd3675b80cd0abf6e1b6f1797a7c62f2539ea
5,902
java
Java
build/tmp/expandedArchives/forge-1.17.1-37.0.58_mapped_official_1.17.1-sources.jar_461b1baaba5fdaecf94c73039d52c00b/net/minecraft/world/level/block/SmallDripleafBlock.java
ArriolaHarold2001/addedlamps
22b1d9254f432668f27b1bca21e09ba722be493b
[ "MIT" ]
null
null
null
build/tmp/expandedArchives/forge-1.17.1-37.0.58_mapped_official_1.17.1-sources.jar_461b1baaba5fdaecf94c73039d52c00b/net/minecraft/world/level/block/SmallDripleafBlock.java
ArriolaHarold2001/addedlamps
22b1d9254f432668f27b1bca21e09ba722be493b
[ "MIT" ]
1
2022-02-23T20:43:13.000Z
2022-02-23T21:04:55.000Z
build/tmp/expandedArchives/forge-1.17.1-37.0.58_mapped_official_1.17.1-sources.jar_461b1baaba5fdaecf94c73039d52c00b/net/minecraft/world/level/block/SmallDripleafBlock.java
ArriolaHarold2001/addedlamps
22b1d9254f432668f27b1bca21e09ba722be493b
[ "MIT" ]
null
null
null
package net.minecraft.world.level.block; import java.util.Random; import javax.annotation.Nullable; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.server.level.ServerLevel; import net.minecraft.tags.BlockTags; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.context.BlockPlaceContext; import net.minecraft.world.level.BlockGetter; import net.minecraft.world.level.Level; import net.minecraft.world.level.LevelAccessor; import net.minecraft.world.level.LevelReader; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.StateDefinition; import net.minecraft.world.level.block.state.properties.BlockStateProperties; import net.minecraft.world.level.block.state.properties.BooleanProperty; import net.minecraft.world.level.block.state.properties.DirectionProperty; import net.minecraft.world.level.block.state.properties.DoubleBlockHalf; import net.minecraft.world.level.material.FluidState; import net.minecraft.world.level.material.Fluids; import net.minecraft.world.phys.shapes.CollisionContext; import net.minecraft.world.phys.shapes.VoxelShape; public class SmallDripleafBlock extends DoublePlantBlock implements BonemealableBlock, SimpleWaterloggedBlock { private static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED; public static final DirectionProperty FACING = BlockStateProperties.HORIZONTAL_FACING; protected static final float AABB_OFFSET = 6.0F; protected static final VoxelShape SHAPE = Block.box(2.0D, 0.0D, 2.0D, 14.0D, 13.0D, 14.0D); public SmallDripleafBlock(BlockBehaviour.Properties p_154583_) { super(p_154583_); this.registerDefaultState(this.stateDefinition.any().setValue(HALF, DoubleBlockHalf.LOWER).setValue(WATERLOGGED, Boolean.valueOf(false)).setValue(FACING, Direction.NORTH)); } public VoxelShape getShape(BlockState p_154610_, BlockGetter p_154611_, BlockPos p_154612_, CollisionContext p_154613_) { return SHAPE; } protected boolean mayPlaceOn(BlockState p_154636_, BlockGetter p_154637_, BlockPos p_154638_) { return p_154636_.is(BlockTags.SMALL_DRIPLEAF_PLACEABLE) || p_154637_.getFluidState(p_154638_.above()).isSourceOfType(Fluids.WATER) && super.mayPlaceOn(p_154636_, p_154637_, p_154638_); } @Nullable public BlockState getStateForPlacement(BlockPlaceContext p_154592_) { BlockState blockstate = super.getStateForPlacement(p_154592_); return blockstate != null ? copyWaterloggedFrom(p_154592_.getLevel(), p_154592_.getClickedPos(), blockstate.setValue(FACING, p_154592_.getHorizontalDirection().getOpposite())) : null; } public void setPlacedBy(Level p_154599_, BlockPos p_154600_, BlockState p_154601_, LivingEntity p_154602_, ItemStack p_154603_) { if (!p_154599_.isClientSide()) { BlockPos blockpos = p_154600_.above(); BlockState blockstate = DoublePlantBlock.copyWaterloggedFrom(p_154599_, blockpos, this.defaultBlockState().setValue(HALF, DoubleBlockHalf.UPPER).setValue(FACING, p_154601_.getValue(FACING))); p_154599_.setBlock(blockpos, blockstate, 3); } } public FluidState getFluidState(BlockState p_154634_) { return p_154634_.getValue(WATERLOGGED) ? Fluids.WATER.getSource(false) : super.getFluidState(p_154634_); } public boolean canSurvive(BlockState p_154615_, LevelReader p_154616_, BlockPos p_154617_) { if (p_154615_.getValue(HALF) == DoubleBlockHalf.UPPER) { return super.canSurvive(p_154615_, p_154616_, p_154617_); } else { BlockPos blockpos = p_154617_.below(); BlockState blockstate = p_154616_.getBlockState(blockpos); return this.mayPlaceOn(blockstate, p_154616_, blockpos); } } public BlockState updateShape(BlockState p_154625_, Direction p_154626_, BlockState p_154627_, LevelAccessor p_154628_, BlockPos p_154629_, BlockPos p_154630_) { if (p_154625_.getValue(WATERLOGGED)) { p_154628_.getLiquidTicks().scheduleTick(p_154629_, Fluids.WATER, Fluids.WATER.getTickDelay(p_154628_)); } return super.updateShape(p_154625_, p_154626_, p_154627_, p_154628_, p_154629_, p_154630_); } protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> p_154632_) { p_154632_.add(HALF, WATERLOGGED, FACING); } public boolean isValidBonemealTarget(BlockGetter p_154594_, BlockPos p_154595_, BlockState p_154596_, boolean p_154597_) { return true; } public boolean isBonemealSuccess(Level p_154605_, Random p_154606_, BlockPos p_154607_, BlockState p_154608_) { return true; } public void performBonemeal(ServerLevel p_154587_, Random p_154588_, BlockPos p_154589_, BlockState p_154590_) { if (p_154590_.getValue(DoublePlantBlock.HALF) == DoubleBlockHalf.LOWER) { BlockPos blockpos = p_154589_.above(); p_154587_.setBlock(blockpos, p_154587_.getFluidState(blockpos).createLegacyBlock(), 18); BigDripleafBlock.placeWithRandomHeight(p_154587_, p_154588_, p_154589_, p_154590_.getValue(FACING)); } else { BlockPos blockpos1 = p_154589_.below(); this.performBonemeal(p_154587_, p_154588_, blockpos1, p_154587_.getBlockState(blockpos1)); } } public BlockState rotate(BlockState p_154622_, Rotation p_154623_) { return p_154622_.setValue(FACING, p_154623_.rotate(p_154622_.getValue(FACING))); } public BlockState mirror(BlockState p_154619_, Mirror p_154620_) { return p_154619_.rotate(p_154620_.getRotation(p_154619_.getValue(FACING))); } public BlockBehaviour.OffsetType getOffsetType() { return BlockBehaviour.OffsetType.XYZ; } public float getMaxVerticalOffset() { return 0.1F; } }
47.98374
200
0.773805
ff8533862af5b516ca931d2bb172c21f24a34b2a
9,821
swift
Swift
CaretToArcAnimation/CaretToArcView.swift
DuncanMC/CaretToArcAnimation
31b2b67c6e0f6bc6dfadb463214aab71a7aa60c8
[ "MIT" ]
1
2021-04-20T03:24:05.000Z
2021-04-20T03:24:05.000Z
CaretToArcAnimation/CaretToArcView.swift
DuncanMC/CaretToArcAnimation
31b2b67c6e0f6bc6dfadb463214aab71a7aa60c8
[ "MIT" ]
null
null
null
CaretToArcAnimation/CaretToArcView.swift
DuncanMC/CaretToArcAnimation
31b2b67c6e0f6bc6dfadb463214aab71a7aa60c8
[ "MIT" ]
null
null
null
// // CaretToArcView.swift // CaretToArcAnimation // // Created by Duncan Champney on 4/19/21. // Copyright 2021 Duncan Champney // Licensed under the MIT source license // import UIKit enum ViewState: Int { case none case caret case arc } class CaretToArcView: UIView { public var animationDuration: Double = 0.2 public var viewState: ViewState = .none { didSet { buildPath() } } public var showBezierPathIllustration: Bool? { didSet { bezierIllustrationLayer.opacity = showBezierPathIllustration == true ? 1 : 0 } } private var rotation = 0.0 private var bezierIllustrationLayer = CAShapeLayer() override var frame: CGRect { didSet { bezierIllustrationLayer.frame = layer.bounds } } class override var layerClass: AnyClass { return CAShapeLayer.self } public func rotate(_ doRotate: Bool) { if !doRotate { layer.removeAllAnimations() } else { let animation = CABasicAnimation(keyPath: "transform.rotation.z") animation.duration = 1.0 animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.linear) animation.fromValue = rotation animation.repeatCount = Float.greatestFiniteMagnitude self.rotation += Double.pi * 2 animation.toValue = rotation layer.add(animation, forKey: nil) DispatchQueue.main.async() { } } } func circleRect(centerPoint: CGPoint) -> CGRect { return CGRect(origin: centerPoint, size: CGSize.zero).insetBy(dx: -3, dy: -3) } private func buildPath() { let path = UIBezierPath() let illustrationPath = UIBezierPath() switch viewState { case .none: break // Install an empty path in the shape layer // Create a path that draws a caret, but using 2 cubic bezier paths. case .caret: let caretStart = CGPoint(x: 200, y: 280) // The lower left point of the caret let caretMiddle = CGPoint(x: 280, y: 200) // The middle part of the caret (The bend) let caretEnd = CGPoint(x: 200, y: 120) // The top left point of the caret. let caretBezier1PointB = CGPoint(x: caretStart.x + abs(caretStart.x - caretMiddle.x)/3, y: caretStart.y - abs(caretStart.y - caretMiddle.y)/3) let caretBezier1PointC = CGPoint(x: caretStart.x + abs(caretStart.x - caretMiddle.x)*2/3, y: caretStart.y - abs(caretStart.y - caretMiddle.y)*2/3) let caretBezier2PointB = CGPoint(x: caretEnd.x + abs(caretEnd.x - caretMiddle.x)*2/3, y: caretEnd.y + abs(caretEnd.y - caretMiddle.y)*2/3) let caretBezier2PointC = CGPoint(x: caretEnd.x + abs(caretEnd.x - caretMiddle.x)/3, y: caretEnd.y + abs(caretEnd.y - caretMiddle.y)/3) path.move(to: caretStart) path.addCurve(to: caretMiddle, controlPoint1: caretBezier1PointB, controlPoint2: caretBezier1PointC) path.addCurve(to: caretEnd, controlPoint1: caretBezier2PointB, controlPoint2: caretBezier2PointC) // Now build a path to illustrate the Bezier path control points for the caret var oval: UIBezierPath oval = UIBezierPath(ovalIn: circleRect(centerPoint: caretStart)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: caretBezier1PointB)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: caretBezier1PointC)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: caretMiddle)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: caretBezier2PointB)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: caretBezier2PointC)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: caretEnd)) illustrationPath.append(oval) illustrationPath.move(to: caretStart) illustrationPath.addLine(to: caretBezier1PointB) illustrationPath.addLine(to: caretBezier1PointC) illustrationPath.addLine(to: caretMiddle) illustrationPath.addLine(to: caretBezier2PointB) illustrationPath.addLine(to: caretBezier2PointC) illustrationPath.addLine(to: caretEnd) // Create an arc that draws 3/4 of a circle, also using 2 cubic bezier curves. // The arc is drawn counter-clockwise. No particular reason: That' just how I set up both the caret and the arc. case .arc: let arcBezier1PointA = CGPoint(x: 111, y: 288) // The lower point of the arc let arcBezier1PointB = CGPoint(x: 190, y: 367) // The first control point of the first Bezier curve let arcBezier1PointC = CGPoint(x: 325, y: 311) // The second control point of the first Bezier curve let arcMiddle = CGPoint(x: 325, y: 200) //arcBezier1PointD and arcBezier2PointA (The end of the first and beginning of the 2nd arc.) let arcBezier2PointB = CGPoint(x: 325, y: 89) // The first control point of the 2nd Bezier curve in the arc let arcBezier2PointC = CGPoint(x: 190, y: 33) // The second control point of the 2nd Bezier curve let arcBezier2PointD = CGPoint(x: 111, y: 112) // The end point of the 2nd Bezier curve, and the end of the arc. // Sart at the lower point of the arc path.move(to: arcBezier1PointA) // Draw the first Bezier curve path.addCurve(to: arcMiddle, controlPoint1: arcBezier1PointB, controlPoint2: arcBezier1PointC) // Draw the second Bezier cruve path.addCurve(to: arcBezier2PointD, controlPoint1: arcBezier2PointB, controlPoint2: arcBezier2PointC) // Now build a path to illustrate the Bezier path control points. var oval: UIBezierPath oval = UIBezierPath(ovalIn: circleRect(centerPoint: arcBezier1PointA)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: arcBezier1PointB)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: arcBezier1PointC)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: arcMiddle)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: arcBezier2PointB)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: arcBezier2PointC)) illustrationPath.append(oval) oval = UIBezierPath(ovalIn: circleRect(centerPoint: arcBezier2PointD)) illustrationPath.append(oval) illustrationPath.move(to: arcBezier1PointA) illustrationPath.addLine(to: arcBezier1PointB) illustrationPath.addLine(to: arcBezier1PointC) illustrationPath.addLine(to: arcMiddle) illustrationPath.addLine(to: arcBezier2PointB) illustrationPath.addLine(to: arcBezier2PointC) illustrationPath.addLine(to: arcBezier2PointD) } if let layer = self.layer as? CAShapeLayer { if viewState == .none || layer.path == nil { layer.path = path.cgPath bezierIllustrationLayer.path = illustrationPath.cgPath } else { let pathAnimation = CABasicAnimation(keyPath: "path") pathAnimation.duration = animationDuration pathAnimation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) pathAnimation.fromValue = layer.path pathAnimation.toValue = path.cgPath let bezierPathAnimation = CABasicAnimation(keyPath: "path") bezierPathAnimation.duration = animationDuration bezierPathAnimation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) bezierPathAnimation.fromValue = bezierIllustrationLayer.path bezierPathAnimation.toValue = illustrationPath.cgPath layer.add(pathAnimation, forKey: nil) bezierIllustrationLayer.add(bezierPathAnimation, forKey: nil) DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { layer.path = path.cgPath self.bezierIllustrationLayer.path = illustrationPath.cgPath } } } } func initSetup() { guard let layer = self.layer as? CAShapeLayer else { return } layer.fillColor = UIColor.clear.cgColor layer.strokeColor = UIColor.black.cgColor layer.lineWidth = 5 layer.path = nil bezierIllustrationLayer.name = "bezierIllustrationLayer" bezierIllustrationLayer.strokeColor = UIColor(red: 192, green: 0, blue: 0, alpha: 0.4).cgColor bezierIllustrationLayer.fillColor = UIColor.clear.cgColor bezierIllustrationLayer.lineWidth = 2 layer.addSublayer(bezierIllustrationLayer) showBezierPathIllustration = false } override init(frame: CGRect) { super.init(frame: frame) initSetup() } required init?(coder: NSCoder) { super.init(coder: coder) initSetup() } }
43.074561
144
0.634762
99b8794be7bb5bb2e4c82656a0f63f1adf2ffda2
1,679
kt
Kotlin
common/src/main/kotlin/tech/cuda/woden/common/utils/VelocityRender.kt
cuda-tech/woden
2efc2de1cad2646ea129637752b15d868ca13c7d
[ "Apache-2.0" ]
null
null
null
common/src/main/kotlin/tech/cuda/woden/common/utils/VelocityRender.kt
cuda-tech/woden
2efc2de1cad2646ea129637752b15d868ca13c7d
[ "Apache-2.0" ]
1
2020-07-08T17:56:03.000Z
2020-07-11T08:30:25.000Z
common/src/main/kotlin/tech/cuda/woden/common/utils/VelocityRender.kt
cuda-tech/woden
2efc2de1cad2646ea129637752b15d868ca13c7d
[ "Apache-2.0" ]
1
2020-05-06T14:34:18.000Z
2020-05-06T14:34:18.000Z
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package tech.cuda.woden.common.utils import org.apache.velocity.VelocityContext import org.apache.velocity.app.Velocity import org.apache.velocity.app.VelocityEngine import org.apache.velocity.runtime.resource.loader.StringResourceLoader import java.io.StringWriter import java.time.LocalDate /** * @author Jensen Qi <jinxiu.qi@alu.hit.edu.cn> * @since 0.1.0 */ object VelocityRender { private const val TEMPLATE_NAME = "WODEN" private val velocityEngine = VelocityEngine().also { it.setProperty(Velocity.RESOURCE_LOADERS, "string"); it.setProperty("resource.loader.string.class", StringResourceLoader::class.java.name) it.init() } private val repository = StringResourceLoader.getRepository() fun render(template: String, bizdate: LocalDate = LocalDate.now()): String { repository.putStringResource(TEMPLATE_NAME, template) val context = VelocityContext().also { it.put("bizdate", bizdate) } return StringWriter().also { velocityEngine.getTemplate(TEMPLATE_NAME).merge(context, it) }.toString() } }
37.311111
93
0.723049
1d84d021a9a9634de637d1032ad68cdb38e1da53
4,972
sql
SQL
coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/4.0/dml/KC_DML_31101_RATE_CLASS_00SD.sql
smith750/kc
e411ed1a4f538a600e04f964a2ba347f5695837e
[ "ECL-2.0" ]
null
null
null
coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/4.0/dml/KC_DML_31101_RATE_CLASS_00SD.sql
smith750/kc
e411ed1a4f538a600e04f964a2ba347f5695837e
[ "ECL-2.0" ]
null
null
null
coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/4.0/dml/KC_DML_31101_RATE_CLASS_00SD.sql
smith750/kc
e411ed1a4f538a600e04f964a2ba347f5695837e
[ "ECL-2.0" ]
null
null
null
INSERT INTO RATE_CLASS (RATE_CLASS_CODE,DESCRIPTION,RATE_CLASS_TYPE,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) VALUES('13','MTDC - AWARD','O',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,1,'MTDC',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,2,'TDC- DO NOT USE',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,3,'Other',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,4,'None',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,5,'RESMN',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,6,'RESMF',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,7,'EXCLU',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,8,'RESEB',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,9,'RESMFF',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,10,'FUNSN',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,11,'FUNNX',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,12,'FUNSNX',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,13,'FUNSAX',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,14,'FUNNXF',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,15,'FUNMNX',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,16,'FUNMFX',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,17,'SLNSN',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,18,'SLNMN',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,19,'SLNMF',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,20,'GENSN',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,21,'GENSNF',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,22,'RESSN',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,23,'FUNSAN',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,24,'FUNFN',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,25,'RESTDC',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,26,'FUNTDC',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,27,'RESTG',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,28,'RESTDE',sysdate,'admin',1,sys_guid()) / insert into RATE_TYPE (RATE_CLASS_CODE,RATE_TYPE_CODE,DESCRIPTION,UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) values (13,29,'BIMN',sysdate,'admin',1,sys_guid()) /
80.193548
171
0.816573
91711df657c0a3d06a0eeee7dddffbc4c3976311
359
html
HTML
test/pages/query.html
117649/GlitterDrag
dca0bd820154564c2ba32dcf900cfbc96c830977
[ "MIT" ]
95
2017-06-21T01:59:09.000Z
2022-03-06T07:30:28.000Z
test/pages/query.html
117649/GlitterDrag
dca0bd820154564c2ba32dcf900cfbc96c830977
[ "MIT" ]
126
2017-06-21T02:04:56.000Z
2022-03-25T18:37:18.000Z
test/pages/query.html
117649/GlitterDrag
dca0bd820154564c2ba32dcf900cfbc96c830977
[ "MIT" ]
28
2017-07-09T01:34:30.000Z
2022-03-06T07:30:35.000Z
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div id="text"></div> <script> var url = new URL(location.href) document.querySelector("#text").textContent = url.search </script> </body> </html>
23.933333
74
0.612813
0ba2dfd95ee79027d8c63a0c75d4bd279b8d3f02
30
py
Python
yolov3/utils/__init__.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
13
2019-03-22T15:22:22.000Z
2021-09-30T21:15:37.000Z
yolov3/utils/__init__.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
null
null
null
yolov3/utils/__init__.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
null
null
null
from yolov3.utils import data
15
29
0.833333
bf9e48d38e37d85ac634ca5d7e51a6ceafd8d68e
800
kt
Kotlin
src/main/kotlin/com/github/solairerove/algs4/leprosorium/sorting/CountSort.kt
solairerove/algs4-leprosorium
e503efc63bed00f79fbf21665aa3853cfe36ebb6
[ "MIT" ]
1
2022-02-27T21:49:46.000Z
2022-02-27T21:49:46.000Z
src/main/kotlin/com/github/solairerove/algs4/leprosorium/sorting/CountSort.kt
solairerove/algs4-leprosorium
e503efc63bed00f79fbf21665aa3853cfe36ebb6
[ "MIT" ]
5
2020-08-03T10:40:50.000Z
2020-08-06T17:44:57.000Z
src/main/kotlin/com/github/solairerove/algs4/leprosorium/sorting/CountSort.kt
solairerove/algs4-leprosorium
e503efc63bed00f79fbf21665aa3853cfe36ebb6
[ "MIT" ]
null
null
null
package com.github.solairerove.algs4.leprosorium.sorting fun main() { val items = mutableListOf(5, 6, 4, 3, 10, 9, 5, 6, 7) print("items: $items \n") countSort(items) print("items: $items \n") } // O(n + m) time | O(n) space private fun countSort(arr: MutableList<Int>) { val n = arr.size // find max var max = arr[0] arr.forEach { if (it > max) max = it } // init count with zeros val count = MutableList(max + 1) { 0 } // count arr.forEach { count[it]++ } // cumulate sum for (i in 1..max) { count[i] += count[i - 1] } val output = MutableList(n + 1) { 0 } for (i in n - 1 downTo 0) { output[count[arr[i]] - 1] = arr[i] count[arr[i]]-- } arr.forEachIndexed { i, _ -> arr[i] = output[i] } }
21.621622
57
0.53625
268a2695029bc00664c3481fdb18462f64e041b4
2,904
java
Java
test-clients/src/main/java/com/hedera/services/yahcli/suites/SysFileDownloadSuite.java
gizatupu/hedera-services
09a572c3f5bb6e341370ef1f1e9bdc0ed2b658c9
[ "Apache-2.0" ]
null
null
null
test-clients/src/main/java/com/hedera/services/yahcli/suites/SysFileDownloadSuite.java
gizatupu/hedera-services
09a572c3f5bb6e341370ef1f1e9bdc0ed2b658c9
[ "Apache-2.0" ]
null
null
null
test-clients/src/main/java/com/hedera/services/yahcli/suites/SysFileDownloadSuite.java
gizatupu/hedera-services
09a572c3f5bb6e341370ef1f1e9bdc0ed2b658c9
[ "Apache-2.0" ]
null
null
null
package com.hedera.services.yahcli.suites; /*- * ‌ * Hedera Services Test Clients * ​ * Copyright (C) 2018 - 2020 Hedera Hashgraph, LLC * ​ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ‍ */ import com.hedera.services.bdd.spec.HapiApiSpec; import com.hedera.services.bdd.spec.HapiSpecOperation; import com.hedera.services.bdd.spec.queries.file.HapiGetFileContents; import com.hedera.services.bdd.suites.HapiApiSuite; import com.hedera.services.bdd.suites.utils.sysfiles.serdes.SysFileSerde; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.io.File; import java.util.Arrays; import java.util.List; import java.util.Map; import static com.hedera.services.bdd.spec.queries.QueryVerbs.getFileContents; import static com.hedera.services.bdd.suites.utils.sysfiles.serdes.StandardSerdes.SYS_FILE_SERDES; import static com.hedera.services.yahcli.output.CommonMessages.COMMON_MESSAGES; public class SysFileDownloadSuite extends HapiApiSuite { private static final Logger log = LogManager.getLogger(SysFileDownloadSuite.class); private final String destDir; private final Map<String, String> specConfig; private final String[] sysFilesToDownload; public SysFileDownloadSuite( String destDir, Map<String, String> specConfig, String[] sysFilesToDownload ) { this.destDir = destDir; this.specConfig = specConfig; this.sysFilesToDownload = sysFilesToDownload; } @Override protected List<HapiApiSpec> getSpecsInSuite() { return List.of(new HapiApiSpec[] { downloadSysFiles(), }); } private HapiApiSpec downloadSysFiles() { long[] targets = Utils.rationalized(sysFilesToDownload); return HapiApiSpec.customHapiSpec("downloadSysFiles").withProperties( specConfig ).given().when().then( Arrays.stream(targets) .mapToObj(this::appropriateQuery) .toArray(HapiSpecOperation[]::new) ); } private HapiGetFileContents appropriateQuery(long fileNum) { String fid = String.format("0.0.%d", fileNum); SysFileSerde<String> serde = SYS_FILE_SERDES.get(fileNum); String fqLoc = destDir + File.separator + serde.preferredFileName(); return getFileContents(fid) .alertingPre(COMMON_MESSAGES::downloadBeginning) .alertingPost(COMMON_MESSAGES::downloadEnding) .saveReadableTo(serde::fromRawFile, fqLoc); } @Override protected Logger getResultsLogger() { return log; } }
31.912088
98
0.766185
b67dce82be0dd3acf84303df1d437504572e6424
4,559
kt
Kotlin
core/src/test/kotlin/com/justai/jaicf/core/test/activators/OnlyIfPredicatesTest.kt
SerjMarkovich/Bot
bc8e835a5d8bbae06fca53f9748953db63bfa4bd
[ "Apache-2.0" ]
210
2020-03-12T15:31:38.000Z
2022-03-28T07:58:12.000Z
core/src/test/kotlin/com/justai/jaicf/core/test/activators/OnlyIfPredicatesTest.kt
SerjMarkovich/Bot
bc8e835a5d8bbae06fca53f9748953db63bfa4bd
[ "Apache-2.0" ]
67
2020-03-16T11:28:33.000Z
2022-03-29T13:15:05.000Z
core/src/test/kotlin/com/justai/jaicf/core/test/activators/OnlyIfPredicatesTest.kt
SerjMarkovich/Bot
bc8e835a5d8bbae06fca53f9748953db63bfa4bd
[ "Apache-2.0" ]
42
2020-03-15T11:33:32.000Z
2022-03-18T09:02:31.000Z
package com.justai.jaicf.core.test.activators import com.justai.jaicf.api.QueryBotRequest import com.justai.jaicf.builder.Scenario import com.justai.jaicf.generic.ChannelTypeToken import com.justai.jaicf.model.activation.onlyFrom import com.justai.jaicf.model.activation.onlyIfInClient import com.justai.jaicf.model.activation.onlyIfInSession import com.justai.jaicf.model.activation.onlyIfNotInClient import com.justai.jaicf.model.activation.onlyIfNotInSession import com.justai.jaicf.test.ScenarioTest import com.justai.jaicf.test.reactions.TestReactions import org.junit.jupiter.api.Test private class BotRequestType1(clientId: String, input: String) : QueryBotRequest(clientId, input) private class BotRequestType2(clientId: String, input: String) : QueryBotRequest(clientId, input) private val channelTypeToken1 = ChannelTypeToken<BotRequestType1, TestReactions>() private val channelTypeToken2 = ChannelTypeToken<BotRequestType2, TestReactions>() private val contextTestScenario = Scenario { state("context test 1") { activators { regex("context test").onlyIfInClient<Int>("age") { it >= 18 } } } state("context test 2") { activators { regex("context test").onlyIfInClient<Int>("age") } } state("context test 3") { activators { regex("context test").onlyIfInClient("age") } } state("context test 4") { activators { regex("context test").onlyIfNotInClient("age").onlyIfNotInSession("age") } } state("context test 5") { activators { regex("context test").onlyIfInSession<Int>("age") { it >= 18 } } } state("context test 6") { activators { regex("context test").onlyIfInSession<Int>("age") } } state("context test 7") { activators { regex("context test").onlyIfInSession("age") } } } private val typeTestScenario = Scenario { state("type test 1") { activators { regex("type test").onlyFrom(channelTypeToken1) } } state("type test 2") { activators { regex("type test").onlyFrom(channelTypeToken2) } } } private val onlyIfScenario = Scenario { append("context test", contextTestScenario, modal = true) append("type test", typeTestScenario, modal = true) } class OnlyIfPredicatesTest : ScenarioTest(onlyIfScenario) { @Test fun `onlyIfInClient should activate by key, type and predicate matches`() { withCurrentContext("/context test") withBotContext { client["age"] = 21 } query("context test") goesToState "/context test/context test 1" } @Test fun `onlyIfInClient should activate by key and type matches`() { withCurrentContext("/context test") withBotContext { client["age"] = 17 } query("context test") goesToState "/context test/context test 2" } @Test fun `onlyIfInClient should activate by key matches`() { withCurrentContext("/context test") withBotContext { client["age"] = "something" } query("context test") goesToState "/context test/context test 3" } @Test fun `onlyIfNotInClient should activate by key doesn't match`() { withCurrentContext("/context test") query("context test") goesToState "/context test/context test 4" } @Test fun `onlyIfInSession should activate by key, type and predicate matches`() { withCurrentContext("/context test") withBotContext { session["age"] = 21 } query("context test") goesToState "/context test/context test 5" } @Test fun `onlyIfInSession should activate by key and type matches`() { withCurrentContext("/context test") withBotContext { session["age"] = 17 } query("context test") goesToState "/context test/context test 6" } @Test fun `onlyIfInSession should activate by key matches`() { withCurrentContext("/context test") withBotContext { session["age"] = "something" } query("context test") goesToState "/context test/context test 7" } @Test fun `onlyFrom should activate by request type matches`() { withCurrentContext("/type test") process(BotRequestType1(botContext.clientId, "type test")) goesToState "/type test/type test 1" withCurrentContext("/type test") process(BotRequestType2(botContext.clientId, "type test")) goesToState "/type test/type test 2" } }
32.333333
103
0.658258
71817f774fa5db9b885820d585bc239d76c79741
267
lua
Lua
MMOCoreORB/bin/scripts/object/custom_content/tangible/item/beast/converted_kima_decoration.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
18
2017-02-09T15:36:05.000Z
2021-12-21T04:22:15.000Z
MMOCoreORB/bin/scripts/object/custom_content/tangible/item/beast/converted_kima_decoration.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
61
2016-12-30T21:51:10.000Z
2021-12-10T20:25:56.000Z
MMOCoreORB/bin/scripts/object/custom_content/tangible/item/beast/converted_kima_decoration.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
71
2017-01-01T05:34:38.000Z
2022-03-29T01:04:00.000Z
object_tangible_item_beast_converted_kima_decoration = object_tangible_item_beast_shared_converted_kima_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_kima_decoration, "object/tangible/item/beast/converted_kima_decoration.iff")
44.5
141
0.910112
1bf50f82fefeed5f6d8d197647dcc1c1b1e5815e
484
py
Python
compiler/tests/test_futures_sum.py
NetSys/kappa
de1ab3393d1e6358f66427645c77833d4dc99693
[ "BSD-2-Clause" ]
34
2018-07-02T22:02:36.000Z
2021-12-08T22:01:38.000Z
compiler/tests/test_futures_sum.py
NetSys/kappa
de1ab3393d1e6358f66427645c77833d4dc99693
[ "BSD-2-Clause" ]
1
2019-07-01T16:02:04.000Z
2019-07-01T16:11:26.000Z
compiler/tests/test_futures_sum.py
NetSys/kappa
de1ab3393d1e6358f66427645c77833d4dc99693
[ "BSD-2-Clause" ]
10
2018-07-09T02:30:21.000Z
2022-03-21T08:46:38.000Z
import operator import rt def parallel_sum(l, r): """Computes (l + (l+1) + ... + r).""" # TODO(zhangwen): this function can either return an int or a future; this seems confusing... if l == r: return l m = (l + r) // 2 sl = parallel_sum(l, m) sr = parallel_sum(m + 1, r) return rt.spawn(operator.add, (sl, sr)) def handler(event, context): n = event["n"] if n == 1: return 1 else: return parallel_sum(1, n).wait()
20.166667
97
0.549587
3eba8a55f0b3f46fa7dc83940cedc84f493bb7a2
213
swift
Swift
example/ios/MyPlayground.playground/Contents.swift
Johann13/awesome_notifications
19469174a52dcb05b9d8204a8828856fc4ed5ed7
[ "Apache-2.0" ]
1
2021-07-08T06:00:32.000Z
2021-07-08T06:00:32.000Z
example/ios/MyPlayground.playground/Contents.swift
Johann13/awesome_notifications
19469174a52dcb05b9d8204a8828856fc4ed5ed7
[ "Apache-2.0" ]
null
null
null
example/ios/MyPlayground.playground/Contents.swift
Johann13/awesome_notifications
19469174a52dcb05b9d8204a8828856fc4ed5ed7
[ "Apache-2.0" ]
1
2021-03-05T05:38:21.000Z
2021-03-05T05:38:21.000Z
import Foundation import UserNotifications var date = Date() var newComponents = Calendar.current.dateComponents([.year,.month,.day,.hour,.minute,.second,], from: date) print(newComponents.debugDescription)
17.75
107
0.774648
61cb4658d134affb15f4f93f246f3277377737bb
3,868
css
CSS
build/static/css/about-page.67b29416.css
abhisharkjangir/portfolio
7fc35b461500b4784fe8f9318502920e9b4a3af7
[ "MIT" ]
null
null
null
build/static/css/about-page.67b29416.css
abhisharkjangir/portfolio
7fc35b461500b4784fe8f9318502920e9b4a3af7
[ "MIT" ]
4
2020-08-01T08:24:38.000Z
2021-09-23T17:58:07.000Z
build/static/css/about-page.67b29416.css
abhisharkjangir/portfolio
7fc35b461500b4784fe8f9318502920e9b4a3af7
[ "MIT" ]
null
null
null
@charset "UTF-8";.section-1piec{margin:0 auto;padding:150px 0;max-width:1000px}.section-DaTii{position:relative}@media (max-width:768px){.section-1piec{padding:100px 0}}.about-3G1og{display:flex;justify-content:space-between;align-items:center}.about-BEhNe a{display:inline-block;text-decoration:none;text-decoration-skip-ink:auto;position:relative;transition:var(--transition);cursor:pointer;color:var(--c-primary)}.about-BEhNe a:active,.about-BEhNe a:focus,.about-BEhNe a:hover{color:var(--c-primary);outline:0}.about-BEhNe a:active:after,.about-BEhNe a:focus:after,.about-BEhNe a:hover:after{width:100%}.about-BEhNe a:after{content:"";display:block;width:0;height:1px;position:relative;bottom:.37em;background-color:var(--c-primary);transition:var(--transition);opacity:.5}.about-i7mSP a{box-shadow:0 10px 30px -15px var(--c-secondaryLightest);transition:var(--transition)}.about-i7mSP a:focus,.about-i7mSP a:hover{box-shadow:0 20px 30px -15px var(--c-secondaryLightest)}.about-3G1og{align-items:flex-start}.about-BEhNe{width:60%;max-width:480px;font-size:var(--fs-xxl)}.about-BEhNe a{margin:0 2.5px}.about-BEhNe ul{display:grid;grid-template-columns:repeat(2,minmax(140px,200px));overflow:hidden;margin-top:20px}.about-BEhNe ul li{position:relative;margin-bottom:10px;padding-left:20px;font-family:var(--font-SFMono);font-size:var(--fs-md);color:var(--c-tertiary)}.about-BEhNe ul li:before{content:"▹";position:absolute;left:0;color:var(--c-primary);font-size:var(--fs-sm);line-height:12px;margin-top:5px}.about-i7mSP{position:relative;width:40%;max-width:300px;margin-left:60px}.about-i7mSP a{width:100%;position:relative;border-radius:3px;background-color:var(--c-primary);margin-left:-20px}.about-i7mSP a:focus,.about-i7mSP a:hover{background:transparent}.about-i7mSP a:focus:after,.about-i7mSP a:hover:after{top:15px;left:15px}.about-i7mSP a:focus img,.about-i7mSP a:hover img{filter:none;mix-blend-mode:normal}.about-i7mSP a:after,.about-i7mSP a:before{content:"";display:block;position:absolute;width:100%;height:100%;border-radius:3px;transition:var(--transition)}.about-i7mSP a:before{top:0;left:0;right:0;bottom:0;background-color:var(--c-secondary);mix-blend-mode:screen}.about-i7mSP a:after{border:2px solid var(--c-primary);top:20px;left:20px;z-index:-1}.about-i7mSP img{position:relative;mix-blend-mode:multiply;filter:grayscale(100%) contrast(1);border-radius:3px;transition:var(--transition)}@media (max-width:768px){.about-3G1og{display:block}.about-BEhNe{width:100%}.about-i7mSP{margin:60px auto 0;width:70%}}@media (max-width:480px){.about-i7mSP{width:70%!important}}.heading-1Dm1Y,.heading-3xWQN{position:relative;display:flex;align-items:center;margin:10px 0 40px;width:100%;white-space:nowrap;font-size:32px}.heading-1Dm1Y:before,.heading-3xWQN:before{counter-increment:section;content:"0" counter(section) ".";margin-right:10px;font-family:var(--font-SFMono);font-weight:400;color:var(--c-primary);font-size:var(--fs-xl);position:relative;bottom:4px}.heading-1Dm1Y:after,.heading-3xWQN:after{content:"";display:block;height:1px;width:300px;background-color:var(--c-tertiary);position:relative;top:-5px;margin-left:20px}.heading-1Dm1Y{display:block;color:var(--c-primary);font-size:var(--fs-md);font-family:var(--font-SFMono);font-weight:400;margin-bottom:20px;justify-content:center}.heading-1Dm1Y:before{bottom:0;font-size:var(--fs-sm)}.heading-1Dm1Y:after{display:none}@media (max-width:1000px){.heading-3xWQN:after{width:200px}.heading-1Dm1Y{font-size:var(--fs-sm)}.heading-1Dm1Y:before{font-size:var(--fs-smish)}}@media (max-width:768px){.heading-3xWQN{font-size:24px}.heading-3xWQN:before{font-size:var(--fs-lg)}.heading-3xWQN:after{width:100%}}@media (max-width:600px){.heading-3xWQN:after{margin-left:10px}}.image-6hSbg{min-height:250px;width:100%;background-color:rgba(10,25,47,.71)} /*# sourceMappingURL=about-page.67b29416.css.map*/
1,934
3,817
0.778697
41b9b5dde084454d0e3ac439f359601b5ae98155
738
h
C
GeneDropBackEnd/src/SimulationManager.h
elderfd/GeneDrop
aec9dc8addf533eacc2fc61b80ccb6877a54ed85
[ "MIT" ]
1
2019-08-14T16:49:00.000Z
2019-08-14T16:49:00.000Z
GeneDropBackEnd/src/SimulationManager.h
elderfd/GeneDrop
aec9dc8addf533eacc2fc61b80ccb6877a54ed85
[ "MIT" ]
4
2018-02-09T11:17:26.000Z
2020-04-04T18:21:11.000Z
GeneDropBackEnd/src/SimulationManager.h
elderfd/GeneDrop
aec9dc8addf533eacc2fc61b80ccb6877a54ed85
[ "MIT" ]
null
null
null
#pragma once #include "Breeder.h" #include <map> #include <memory> #include "Pedigree.h" #include "State.h" #include <thread> class SimulationManager { public: SimulationManager(); ~SimulationManager(); static Pedigree buildPedigreeFromFile(const std::string& fileName); State getRealisation(); void build(const std::string& pedigreeFileName, const std::string& lociFileName, const std::string& genotypeFileName); private: std::map<std::thread::id, std::unique_ptr<RNGController>> rngMap; std::unique_ptr<Breeder> breeder; Pedigree pedigree; State startingState; static const std::string founderGenerationName; void buildStartingStateFromFiles(const std::string& lociFileName, const std::string& founderFileName); };
22.363636
119
0.768293
ae84fb897241b03d29d39fe690311949551722bc
9,813
rs
Rust
jni-android-sys/src/generated/api-level-29/android/graphics/drawable/ScaleDrawable.rs
sjeohp/jni-bindgen
848121402484f114fa978e8d4b4c19379f9e22a8
[ "Apache-2.0", "MIT" ]
null
null
null
jni-android-sys/src/generated/api-level-29/android/graphics/drawable/ScaleDrawable.rs
sjeohp/jni-bindgen
848121402484f114fa978e8d4b4c19379f9e22a8
[ "Apache-2.0", "MIT" ]
null
null
null
jni-android-sys/src/generated/api-level-29/android/graphics/drawable/ScaleDrawable.rs
sjeohp/jni-bindgen
848121402484f114fa978e8d4b4c19379f9e22a8
[ "Apache-2.0", "MIT" ]
null
null
null
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! #[cfg(any(feature = "all", feature = "android-graphics-drawable-ScaleDrawable"))] __jni_bindgen! { /// public class [ScaleDrawable](https://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html) /// /// Required feature: android-graphics-drawable-ScaleDrawable public class ScaleDrawable ("android/graphics/drawable/ScaleDrawable") extends crate::android::graphics::drawable::DrawableWrapper { /// [ScaleDrawable](https://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html#ScaleDrawable(android.graphics.drawable.Drawable,%20int,%20float,%20float)) /// /// Required features: "android-graphics-drawable-Drawable" #[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Drawable")))] pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::drawable::Drawable>>, arg1: i32, arg2: f32, arg3: f32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::ScaleDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/graphics/drawable/ScaleDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/graphics/drawable/Drawable;IFF)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)]; let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/ScaleDrawable\0", "<init>\0", "(Landroid/graphics/drawable/Drawable;IFF)V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [inflate](https://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html#inflate(android.content.res.Resources,%20org.xmlpull.v1.XmlPullParser,%20android.util.AttributeSet,%20android.content.res.Resources.Theme)) /// /// Required features: "android-content-res-Resources", "android-content-res-Resources_Theme", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser" #[cfg(any(feature = "all", all(feature = "android-content-res-Resources", feature = "android-content-res-Resources_Theme", feature = "android-util-AttributeSet", feature = "org-xmlpull-v1-XmlPullParser")))] pub fn inflate<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::xmlpull::v1::XmlPullParser>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources_Theme>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/graphics/drawable/ScaleDrawable", java.flags == PUBLIC, .name == "inflate", .descriptor == "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/ScaleDrawable\0", "inflate\0", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [applyTheme](https://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html#applyTheme(android.content.res.Resources.Theme)) /// /// Required features: "android-content-res-Resources_Theme" #[cfg(any(feature = "all", all(feature = "android-content-res-Resources_Theme")))] pub fn applyTheme<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources_Theme>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/graphics/drawable/ScaleDrawable", java.flags == PUBLIC, .name == "applyTheme", .descriptor == "(Landroid/content/res/Resources$Theme;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/ScaleDrawable\0", "applyTheme\0", "(Landroid/content/res/Resources$Theme;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [draw](https://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html#draw(android.graphics.Canvas)) /// /// Required features: "android-graphics-Canvas" #[cfg(any(feature = "all", all(feature = "android-graphics-Canvas")))] pub fn draw<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Canvas>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/graphics/drawable/ScaleDrawable", java.flags == PUBLIC, .name == "draw", .descriptor == "(Landroid/graphics/Canvas;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/ScaleDrawable\0", "draw\0", "(Landroid/graphics/Canvas;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getOpacity](https://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html#getOpacity()) pub fn getOpacity<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/graphics/drawable/ScaleDrawable", java.flags == PUBLIC, .name == "getOpacity", .descriptor == "()I" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/ScaleDrawable\0", "getOpacity\0", "()I\0"); __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Non-public method // /// [onLevelChange](https://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html#onLevelChange(int)) // fn onLevelChange<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // // class.path == "android/graphics/drawable/ScaleDrawable", java.flags == PROTECTED, .name == "onLevelChange", .descriptor == "(I)Z" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/ScaleDrawable\0", "onLevelChange\0", "(I)Z\0"); // __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [onBoundsChange](https://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html#onBoundsChange(android.graphics.Rect)) // /// // /// Required features: "android-graphics-Rect" // #[cfg(any(feature = "all", all(feature = "android-graphics-Rect")))] // fn onBoundsChange<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Rect>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // // class.path == "android/graphics/drawable/ScaleDrawable", java.flags == PROTECTED, .name == "onBoundsChange", .descriptor == "(Landroid/graphics/Rect;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/ScaleDrawable\0", "onBoundsChange\0", "(Landroid/graphics/Rect;)V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } } }
93.457143
658
0.67217
0baeb09b96866048e3277bdd11b177c6f437a60e
1,217
py
Python
01-Exercicios/Aula001/Ex2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
01-Exercicios/Aula001/Ex2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
01-Exercicios/Aula001/Ex2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
#--- Exercício 2 - Variáveis #--- Crie um menu para um sistema de cadastro de funcionários #--- O menu deve ser impresso com a função format() #--- As opções devem ser variáveis do tipo inteiro #--- As descrições das opções serão: #--- Cadastrar funcionário #--- Listar funcionários #--- Editar funcionário #--- Deletar funcionário #--- Sair #--- Além das opções o menu deve conter um cabeçalho e um rodapé #--- Entre o cabeçalho e o menu e entre o menu e o rodapé deverá ter espaçamento de 3 linhas #--- Deve ser utilizado os caracteres especiais de quebra de linha e de tabulação opcao = int(input(""" SISTEMA DE CADASTRO DE FUNCIONARIO\n\n\n {} - Cadastrar Funcionário {} - Listar Funcinários {} - Editar Funcionário {} - Deletar Funcionário {} - Sair\n\n\n Escolha uma opção: """.format(1,2,3,4,5))) if opcao == 1: print("A opção escolhida foi 'Cadastrar funcionário'") elif opcao == 2: print("A opção escolhida foi 'Listar funcionários'") elif opcao == 3: print("A opção escolhida foi 'Editar funcionário'") elif opcao == 4: print("A opção escolhida foi 'Deletar funcionário'") elif opcao == 5: print("A opção escolhida foi 'Sair'") else: pass
32.891892
92
0.676253
71ef9c3c8efe1ad44f60deeea7cb4f7006a6d315
405
ts
TypeScript
packages/helpers/locale/dist/esm/internal/localization-provider.d.ts
rholang/archive-old
55d05c67b2015b646e6f3aa7c4e1fde778162eea
[ "Apache-2.0" ]
1
2020-04-24T13:28:17.000Z
2020-04-24T13:28:17.000Z
packages/helpers/locale/dist/esm/internal/localization-provider.d.ts
rholang/archive-old
55d05c67b2015b646e6f3aa7c4e1fde778162eea
[ "Apache-2.0" ]
1
2022-03-02T07:06:35.000Z
2022-03-02T07:06:35.000Z
packages/helpers/locale/dist/esm/internal/localization-provider.d.ts
rholang/archive-old
55d05c67b2015b646e6f3aa7c4e1fde778162eea
[ "Apache-2.0" ]
null
null
null
import { DateParser } from './date-parser'; export declare type DateFormatter = (date: Date) => string; export interface LocalizationProvider { getDaysShort: () => Array<string>; getMonthsLong: () => Array<string>; formatDate: DateFormatter; formatTime: DateFormatter; parseDate: DateParser; } export declare const createLocalizationProvider: (locale: string) => LocalizationProvider;
36.818182
90
0.733333
2604a121469e579f6ce17cc23ca75a16a367eb67
964
java
Java
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/UltronAutomodes/RedHangAutonNoRetract.java
KinkaidRobotics/ftc_app
2d08c5b300ca7921e18b34ae6a02795604aca795
[ "MIT" ]
1
2019-03-22T18:25:18.000Z
2019-03-22T18:25:18.000Z
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/UltronAutomodes/RedHangAutonNoRetract.java
KinkaidRobotics/2018-2019_FTC
2d08c5b300ca7921e18b34ae6a02795604aca795
[ "MIT" ]
null
null
null
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/UltronAutomodes/RedHangAutonNoRetract.java
KinkaidRobotics/2018-2019_FTC
2d08c5b300ca7921e18b34ae6a02795604aca795
[ "MIT" ]
null
null
null
package org.firstinspires.ftc.teamcode.UltronAutomodes; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import org.firstinspires.ftc.teamcode.KarenRobot.RobotSubSystems.LiftSystem; @Autonomous (name = "RedHangAutonNoRetract") public class RedHangAutonNoRetract extends KarenAutoRed { @Override public void main() { //Go to lift up position, lowering robot //waitFor(10);//optional, use this to make sure alliance partner is out of the way autoGoToLiftPos(LiftSystem.LiftState.UP, 1); waitFor(1); driveTime(-.25, .5); // autoGoToLiftPos(LiftSystem.LiftState.DOWN, 1); // waitFor(1); // driveTime(.25, .5); // waitFor(1); // autoGoToLiftPos(LiftSystem.LiftState.DOWN,1); // // Unhook/move out of the way // driveTime(-.75, .5); // // //After moving the robot lower the lift // autoGoToLiftPos(LiftSystem.LiftState.DOWN,.75); } }
26.777778
90
0.659751
fb00553141b21f73d18216678d97b69845a114d0
245
h
C
tcp_echo.h
armatusmiles/libuv-echo-server
a25a3697b290f9316932267e6a04b3d0b4caba82
[ "MIT" ]
2
2019-05-13T13:43:03.000Z
2020-12-24T19:27:26.000Z
tcp_echo.h
armatusmiles/libuv-echo-server
a25a3697b290f9316932267e6a04b3d0b4caba82
[ "MIT" ]
null
null
null
tcp_echo.h
armatusmiles/libuv-echo-server
a25a3697b290f9316932267e6a04b3d0b4caba82
[ "MIT" ]
2
2020-04-16T09:27:04.000Z
2020-12-24T19:27:33.000Z
#ifndef ECHO_SERVER_TCP_ECHO_H #define ECHO_SERVER_TCP_ECHO_H #include <uv.h> // allocates an heap an return uv_tcp_t object uv_tcp_t * init_echo_tcp_server(uv_loop_t *loop, const char* address, uint16_t port); #endif //ECHO_SERVER_TCP_ECHO_H
27.222222
85
0.812245
dfa0df0f51132b84a00b115055f43cb7acc6eacc
8,440
tsx
TypeScript
src/components/Registration/RegistrationStepThree/RegistrationStepThree.tsx
pagopa/io-onboarding-pa
3fd416a9d36e5e79effdf747c91491af9db3c315
[ "MIT" ]
1
2019-07-02T11:45:46.000Z
2019-07-02T11:45:46.000Z
src/components/Registration/RegistrationStepThree/RegistrationStepThree.tsx
teamdigitale/io-onboarding-pa
3fd416a9d36e5e79effdf747c91491af9db3c315
[ "MIT" ]
34
2019-06-20T16:07:09.000Z
2019-12-30T16:05:49.000Z
src/components/Registration/RegistrationStepThree/RegistrationStepThree.tsx
teamdigitale/io-onboarding-pa
3fd416a9d36e5e79effdf747c91491af9db3c315
[ "MIT" ]
1
2019-07-18T16:28:32.000Z
2019-07-18T16:28:32.000Z
import * as FileSaver from "file-saver"; import React, { ComponentProps, Fragment, MouseEvent, useContext } from "react"; import { useAlert } from "react-alert"; import { useCookies } from "react-cookie"; import { useTranslation } from "react-i18next"; import { RouteComponentProps, withRouter } from "react-router-dom"; import { Button, Col, Container, Form, FormGroup, Input, Label, Media, Row } from "reactstrap"; import { TypeEnum } from "../../../../generated/definitions/api/ActionPayload"; import logoSignupStepThree from "../../../assets/img/signup_step3.svg"; import { LogoutModalContext } from "../../../context/logout-modal-context"; import { baseUrlBackendClient, manageErrorReturnCodes } from "../../../utils/api-utils"; import { getConfig } from "../../../utils/config"; import { SearchAdministrations } from "../RegistrationStepOne/SearchAdministrations"; interface IRegistrationStepThreeProps extends RouteComponentProps { selectedAdministration: ComponentProps< typeof SearchAdministrations >["selectedAdministration"]; userFiscalCode: string; isViewedDocumentsCheckboxChecked: boolean; onIsViewedDocumentsCheckboxChanged: () => void; openConfirmModal: () => void; } /* * Create sections to download documents */ interface IDocumentInfo { documentType: string; documentName: string; } interface IDocumentDownloadSectionProps extends RouteComponentProps, IDocumentInfo { ipaCode: string; cookie: string; } const DownloadDocsSection = (props: IDocumentDownloadSectionProps) => { const urlDomainPort = getConfig("IO_ONBOARDING_PA_API_HOST") + ":" + getConfig("IO_ONBOARDING_PA_API_PORT"); /** * react-i18next translation hook */ const { t } = useTranslation(); const common500ErrorString = t("common.errors.genericError.500"); const alert = useAlert(); const downloadDocument = () => (_: MouseEvent) => { const url = urlDomainPort + `/organizations/${props.ipaCode}/documents/${props.documentName}`; // TODO: use generated classes for api when binary files are avaliable (tracked in story https://www.pivotaltracker.com/story/show/169818047) fetch(url, { headers: { Authorization: `Bearer ${props.cookie}` }, method: "GET" }) .then(response => response.blob()) .then(blob => FileSaver.saveAs(blob, props.documentName)) .catch((error: Error) => { // tslint:disable-next-line:no-console console.log(error.message); alert.error(common500ErrorString); }); }; return ( <Fragment> <Row className="pt-5"> <Col> <h4>{t(`signUp.stepThree.${props.documentType}.title`)}</h4> </Col> </Row> <Row className="pt-2"> <Col> <p>{t(`signUp.stepThree.${props.documentType}.description`)}</p> </Col> </Row> <Row className="pt-2"> <Col> <Button outline={true} color="primary" onClick={downloadDocument()}> {t("common.buttons.viewDocument")} </Button> </Col> </Row> </Fragment> ); }; /** * Component for third step of registration process */ export const RegistrationStepThree = withRouter( (props: IRegistrationStepThreeProps) => { /** * react-i18next translation hook */ const { t } = useTranslation(); const common500ErrorString = t("common.errors.genericError.500"); const [cookies] = useCookies(["sessionToken"]); const alert = useAlert(); const logoutModalContext = useContext(LogoutModalContext); /** * array containing two documents download sections props */ const downloadDocsSectionsDataArray: ReadonlyArray<IDocumentInfo> = [ { documentName: "contract.pdf", documentType: "contract" }, { documentName: `mandate-${props.userFiscalCode.toLowerCase()}.pdf`, documentType: "mandate" } ]; const downloadDocsSections = downloadDocsSectionsDataArray.map( downloadDocSection => ( <DownloadDocsSection {...props} key={downloadDocSection.documentType} documentType={downloadDocSection.documentType} documentName={downloadDocSection.documentName} ipaCode={props.selectedAdministration.ipa_code} cookie={cookies.sessionToken} /> ) ); const onSendDocuments = () => { baseUrlBackendClient(cookies.sessionToken) .doActionOnRequests({ actionPayload: { // TODO: pass requests id ids: [], type: TypeEnum["SEND-EMAIL"] } }) .then(response => { if (response.isRight()) { const respValue = response.value; if (respValue.status === 204) { props.history.push("/dashboard"); alert.info(t("common.alerts.documentsSent")); } else { const alertText = t(`common.errors.sendDocuments.${respValue.status}`) || t(`common.errors.genericError.${respValue.status}`); manageErrorReturnCodes( respValue.status, () => alert.error(alertText), () => logoutModalContext.setLogoutModal({ isFromExpiredToken: true, isLogoutModalVisible: true }) ); } } else { // tslint:disable-next-line:no-console console.log(response.value.map(v => v.message).join(" - ")); alert.error(common500ErrorString); } }) .catch((error: Error) => { // tslint:disable-next-line:no-console console.log(error.message); alert.error(common500ErrorString); }); }; return ( <div className="RegistrationStepThree"> <Container fluid={true}> <Row> <Col sm="10"> <Row> <Col sm="11"> <h1 className="pt-5">{t("signUp.stepThree.title")}</h1> <Row className="pt-3"> <Col> <p>{t("signUp.stepThree.description")}</p> </Col> </Row> <Row className="pt-2"> <Col> <p>{t("signUp.stepThree.additionalDescription")}</p> </Col> </Row> {downloadDocsSections} <Form className="pt-5"> <FormGroup check={true}> <Input type="checkbox" name="document-confirm-check" id="documentConfirm" checked={props.isViewedDocumentsCheckboxChecked} onChange={props.onIsViewedDocumentsCheckboxChanged} /> <Label for="documentConfirm" check={true}> {t("signUp.stepThree.checkboxLabel")} </Label> </FormGroup> </Form> <Row className="pt-5 pb-5"> <Col size={6} className="text-left"> <Button outline={true} color="secondary" className="w-50" onClick={props.openConfirmModal} > {t("common.buttons.cancel")} </Button> </Col> <Col size={6} className="text-right"> <Button color="primary" className="w-50" disabled={!props.isViewedDocumentsCheckboxChecked} onClick={onSendDocuments} > {t("common.buttons.confirm")} </Button> </Col> </Row> </Col> </Row> </Col> <Col sm="2"> <Media object={true} src={logoSignupStepThree} alt="Signup step one logo" className="pt-5 w-75" /> </Col> </Row> </Container> </div> ); } );
31.375465
145
0.53282
5588a9969a3f616da8ff2c7af2f6749847d33268
191,953
html
HTML
sharding-core/sharding-core-common/target/apidocs/index-all.html
zhangbing123/incubator-shardingsphere-4.0.0-RC2
4796b9b09658f5f0ffe810497ad80ec529b0f070
[ "Apache-2.0" ]
1
2021-01-16T02:46:02.000Z
2021-01-16T02:46:02.000Z
sharding-core/sharding-core-common/target/apidocs/index-all.html
zhangbing123/incubator-shardingsphere-4.0.0-RC2
4796b9b09658f5f0ffe810497ad80ec529b0f070
[ "Apache-2.0" ]
2
2022-01-21T23:43:38.000Z
2022-02-16T01:12:12.000Z
sharding-core/sharding-core-common/target/apidocs/index-all.html
zhangbing123/incubator-shardingsphere-4.0.0-RC2
4796b9b09658f5f0ffe810497ad80ec529b0f070
[ "Apache-2.0" ]
null
null
null
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="zh"> <head> <!-- Generated by javadoc (1.8.0_45) on Mon Nov 18 20:07:25 CST 2019 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>索引 (sharding-core-common 4.0.0-RC2 API)</title> <meta name="date" content="2019-11-18"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <script type="text/javascript" src="script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="\u7D22\u5F15 (sharding-core-common 4.0.0-RC2 API)"; } } catch(err) { } //--> </script> <noscript> <div>您的浏览器已禁用 JavaScript。</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="导航"> <li><a href="overview-summary.html">概览</a></li> <li>程序包</li> <li>类</li> <li>使用</li> <li><a href="overview-tree.html">树</a></li> <li><a href="deprecated-list.html">已过时</a></li> <li class="navBarCell1Rev">索引</li> <li><a href="help-doc.html">帮助</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>上一个</li> <li>下一个</li> </ul> <ul class="navList"> <li><a href="index.html?index-all.html" target="_top">框架</a></li> <li><a href="index-all.html" target="_top">无框架</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="allclasses-noframe.html">所有类</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="contentContainer"><a href="#I:A">A</a>&nbsp;<a href="#I:B">B</a>&nbsp;<a href="#I:C">C</a>&nbsp;<a href="#I:D">D</a>&nbsp;<a href="#I:E">E</a>&nbsp;<a href="#I:F">F</a>&nbsp;<a href="#I:G">G</a>&nbsp;<a href="#I:H">H</a>&nbsp;<a href="#I:I">I</a>&nbsp;<a href="#I:K">K</a>&nbsp;<a href="#I:L">L</a>&nbsp;<a href="#I:M">M</a>&nbsp;<a href="#I:N">N</a>&nbsp;<a href="#I:O">O</a>&nbsp;<a href="#I:P">P</a>&nbsp;<a href="#I:R">R</a>&nbsp;<a href="#I:S">S</a>&nbsp;<a href="#I:T">T</a>&nbsp;<a href="#I:U">U</a>&nbsp;<a href="#I:V">V</a>&nbsp;<a href="#I:Y">Y</a>&nbsp;<a name="I:A"> <!-- --> </a> <h2 class="title">A</h2> <dl> <dt><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类"><span class="typeNameLink">AESShardingEncryptor</span></a> - <a href="org/apache/shardingsphere/core/strategy/encrypt/impl/package-summary.html">org.apache.shardingsphere.core.strategy.encrypt.impl</a>中的类</dt> <dd> <div class="block">AES sharding encryptor.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html#AESShardingEncryptor--">AESShardingEncryptor()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">AESShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/rule/Authentication.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">Authentication</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Authentication.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/Authentication.html#Authentication--">Authentication()</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/Authentication.html" title="org.apache.shardingsphere.core.rule中的类">Authentication</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/AuthenticationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">AuthenticationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Authentication YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/AuthenticationYamlSwapper.html#AuthenticationYamlSwapper--">AuthenticationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/AuthenticationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">AuthenticationYamlSwapper</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:B"> <!-- --> </a> <h2 class="title">B</h2> <dl> <dt><a href="org/apache/shardingsphere/core/rule/BaseRule.html" title="org.apache.shardingsphere.core.rule中的接口"><span class="typeNameLink">BaseRule</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的接口</dt> <dd> <div class="block">Base rule.</div> </dd> <dt><a href="org/apache/shardingsphere/core/rule/BindingTableRule.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">BindingTableRule</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Binding table rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/BindingTableRule.html#BindingTableRule--">BindingTableRule()</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/BindingTableRule.html" title="org.apache.shardingsphere.core.rule中的类">BindingTableRule</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:C"> <!-- --> </a> <h2 class="title">C</h2> <dl> <dt><a href="org/apache/shardingsphere/core/metadata/table/ColumnMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类"><span class="typeNameLink">ColumnMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/table/package-summary.html">org.apache.shardingsphere.core.metadata.table</a>中的类</dt> <dd> <div class="block">Column metadata.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ColumnMetaData.html#ColumnMetaData--">ColumnMetaData()</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ColumnMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ColumnMetaData</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/complex/ComplexShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.complex中的类"><span class="typeNameLink">ComplexShardingStrategy</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/complex/package-summary.html">org.apache.shardingsphere.core.strategy.route.complex</a>中的类</dt> <dd> <div class="block">Complex sharding strategy.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/complex/ComplexShardingStrategy.html#ComplexShardingStrategy-org.apache.shardingsphere.api.config.sharding.strategy.ComplexShardingStrategyConfiguration-">ComplexShardingStrategy(ComplexShardingStrategyConfiguration)</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.complex.<a href="org/apache/shardingsphere/core/strategy/route/complex/ComplexShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.complex中的类">ComplexShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类"><span class="typeNameLink">ConfigurationLogger</span></a> - <a href="org/apache/shardingsphere/core/util/package-summary.html">org.apache.shardingsphere.core.util</a>中的类</dt> <dd> <div class="block">Configuration printer class.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html#ConfigurationLogger--">ConfigurationLogger()</a></span> - 类 的构造器org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类">ConfigurationLogger</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/constant/ConnectionMode.html" title="org.apache.shardingsphere.core.constant中的枚举"><span class="typeNameLink">ConnectionMode</span></a> - <a href="org/apache/shardingsphere/core/constant/package-summary.html">org.apache.shardingsphere.core.constant</a>中的枚举</dt> <dd> <div class="block">Connection Mode.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/MasterSlaveRule.html#containDataSourceName-java.lang.String-">containDataSourceName(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/MasterSlaveRule.html" title="org.apache.shardingsphere.core.rule中的类">MasterSlaveRule</a></dt> <dd> <div class="block">Judge whether contain data source name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html#containsColumn-java.lang.String-java.lang.String-">containsColumn(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ShardingTableMetaData</a></dt> <dd> <div class="block">Judge contains column from table meta data or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html#containsTable-java.lang.String-">containsTable(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ShardingTableMetaData</a></dt> <dd> <div class="block">Judge contains table from table meta data or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html#createDataSource--">createDataSource()</a></span> - 类 中的方法org.apache.shardingsphere.core.config.<a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html" title="org.apache.shardingsphere.core.config中的类">DataSourceConfiguration</a></dt> <dd> <div class="block">Create data source.</div> </dd> </dl> <a name="I:D"> <!-- --> </a> <h2 class="title">D</h2> <dl> <dt><a href="org/apache/shardingsphere/core/config/DatabaseAccessConfiguration.html" title="org.apache.shardingsphere.core.config中的类"><span class="typeNameLink">DatabaseAccessConfiguration</span></a> - <a href="org/apache/shardingsphere/core/config/package-summary.html">org.apache.shardingsphere.core.config</a>中的类</dt> <dd> <div class="block">Database access configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/config/DatabaseAccessConfiguration.html#DatabaseAccessConfiguration--">DatabaseAccessConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.config.<a href="org/apache/shardingsphere/core/config/DatabaseAccessConfiguration.html" title="org.apache.shardingsphere.core.config中的类">DatabaseAccessConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/database/DatabaseTypes.html" title="org.apache.shardingsphere.core.database中的类"><span class="typeNameLink">DatabaseTypes</span></a> - <a href="org/apache/shardingsphere/core/database/package-summary.html">org.apache.shardingsphere.core.database</a>中的类</dt> <dd> <div class="block">Database types.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/database/DatabaseTypes.html#DatabaseTypes--">DatabaseTypes()</a></span> - 类 的构造器org.apache.shardingsphere.core.database.<a href="org/apache/shardingsphere/core/database/DatabaseTypes.html" title="org.apache.shardingsphere.core.database中的类">DatabaseTypes</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/rule/DataNode.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">DataNode</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Sharding data unit node.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/DataNode.html#DataNode-java.lang.String-">DataNode(String)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/DataNode.html" title="org.apache.shardingsphere.core.rule中的类">DataNode</a></dt> <dd> <div class="block">Constructs a data node with well-formatted string.</div> </dd> <dt><a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html" title="org.apache.shardingsphere.core.config中的类"><span class="typeNameLink">DataSourceConfiguration</span></a> - <a href="org/apache/shardingsphere/core/config/package-summary.html">org.apache.shardingsphere.core.config</a>中的类</dt> <dd> <div class="block">Data source configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html#DataSourceConfiguration--">DataSourceConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.config.<a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html" title="org.apache.shardingsphere.core.config中的类">DataSourceConfiguration</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html#decrypt-java.lang.String-">decrypt(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">AESShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html#decrypt-java.lang.String-">decrypt(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">MD5ShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/engine/DefaultYamlRepresenter.html" title="org.apache.shardingsphere.core.yaml.engine中的类"><span class="typeNameLink">DefaultYamlRepresenter</span></a> - <a href="org/apache/shardingsphere/core/yaml/engine/package-summary.html">org.apache.shardingsphere.core.yaml.engine</a>中的类</dt> <dd> <div class="block">Default YAML representer.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/DefaultYamlRepresenter.html#DefaultYamlRepresenter--">DefaultYamlRepresenter()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/DefaultYamlRepresenter.html" title="org.apache.shardingsphere.core.yaml.engine中的类">DefaultYamlRepresenter</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/complex/ComplexShardingStrategy.html#doSharding-java.util.Collection-java.util.Collection-">doSharding(Collection&lt;String&gt;, Collection&lt;RouteValue&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.route.complex.<a href="org/apache/shardingsphere/core/strategy/route/complex/ComplexShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.complex中的类">ComplexShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/hint/HintShardingStrategy.html#doSharding-java.util.Collection-java.util.Collection-">doSharding(Collection&lt;String&gt;, Collection&lt;RouteValue&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.route.hint.<a href="org/apache/shardingsphere/core/strategy/route/hint/HintShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.hint中的类">HintShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/inline/InlineShardingStrategy.html#doSharding-java.util.Collection-java.util.Collection-">doSharding(Collection&lt;String&gt;, Collection&lt;RouteValue&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.route.inline.<a href="org/apache/shardingsphere/core/strategy/route/inline/InlineShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.inline中的类">InlineShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/none/NoneShardingStrategy.html#doSharding-java.util.Collection-java.util.Collection-">doSharding(Collection&lt;String&gt;, Collection&lt;RouteValue&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.route.none.<a href="org/apache/shardingsphere/core/strategy/route/none/NoneShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.none中的类">NoneShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategy.html#doSharding-java.util.Collection-java.util.Collection-">doSharding(Collection&lt;String&gt;, Collection&lt;RouteValue&gt;)</a></span> - 接口 中的方法org.apache.shardingsphere.core.strategy.route.<a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route中的接口">ShardingStrategy</a></dt> <dd> <div class="block">Sharding.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/standard/StandardShardingStrategy.html#doSharding-java.util.Collection-java.util.Collection-">doSharding(Collection&lt;String&gt;, Collection&lt;RouteValue&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.route.standard.<a href="org/apache/shardingsphere/core/strategy/route/standard/StandardShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.standard中的类">StandardShardingStrategy</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:E"> <!-- --> </a> <h2 class="title">E</h2> <dl> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html#encrypt-java.lang.Object-">encrypt(Object)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">AESShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html#encrypt-java.lang.Object-">encrypt(Object)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">MD5ShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptColumn.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类"><span class="typeNameLink">EncryptColumn</span></a> - <a href="org/apache/shardingsphere/core/strategy/encrypt/package-summary.html">org.apache.shardingsphere.core.strategy.encrypt</a>中的类</dt> <dd> <div class="block">Encrypt column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptColumn.html#EncryptColumn--">EncryptColumn()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptColumn.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptColumn</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptColumnRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">EncryptColumnRuleConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Encrypt column configuration YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptColumnRuleConfigurationYamlSwapper.html#EncryptColumnRuleConfigurationYamlSwapper--">EncryptColumnRuleConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptColumnRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptColumnRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptorRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">EncryptorRuleConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Encryptor configuration YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptorRuleConfigurationYamlSwapper.html#EncryptorRuleConfigurationYamlSwapper--">EncryptorRuleConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptorRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptorRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">EncryptRule</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Encrypt rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#EncryptRule--">EncryptRule()</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#EncryptRule-org.apache.shardingsphere.api.config.encrypt.EncryptRuleConfiguration-">EncryptRule(EncryptRuleConfiguration)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">EncryptRuleConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Encrypt rule configuration yaml swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptRuleConfigurationYamlSwapper.html#EncryptRuleConfigurationYamlSwapper--">EncryptRuleConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类"><span class="typeNameLink">EncryptTable</span></a> - <a href="org/apache/shardingsphere/core/strategy/encrypt/package-summary.html">org.apache.shardingsphere.core.strategy.encrypt</a>中的类</dt> <dd> <div class="block">Encryptor strategy.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#EncryptTable-org.apache.shardingsphere.api.config.encrypt.EncryptTableRuleConfiguration-">EncryptTable(EncryptTableRuleConfiguration)</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptTableRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">EncryptTableRuleConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Encrypt table configuration YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptTableRuleConfigurationYamlSwapper.html#EncryptTableRuleConfigurationYamlSwapper--">EncryptTableRuleConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptTableRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptTableRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html#EPOCH">EPOCH</a></span> - 类 中的静态变量org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">SnowflakeShardingKeyGenerator</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html#equals-java.lang.Object-">equals(Object)</a></span> - 类 中的方法org.apache.shardingsphere.core.config.<a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html" title="org.apache.shardingsphere.core.config中的类">DataSourceConfiguration</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/DataNode.html#equals-java.lang.Object-">equals(Object)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/DataNode.html" title="org.apache.shardingsphere.core.rule中的类">DataNode</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html#evaluateClosure--">evaluateClosure()</a></span> - 类 中的方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html" title="org.apache.shardingsphere.core.util中的类">InlineExpressionParser</a></dt> <dd> <div class="block">Evaluate closure.</div> </dd> </dl> <a name="I:F"> <!-- --> </a> <h2 class="title">F</h2> <dl> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#findActualDefaultDataSourceName--">findActualDefaultDataSourceName()</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Find actual default data source name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#findBindingTableRule-java.lang.String-">findBindingTableRule(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Find binding table rule via logic table name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/properties/ShardingPropertiesConstant.html#findByKey-java.lang.String-">findByKey(String)</a></span> - 枚举 中的静态方法org.apache.shardingsphere.core.constant.properties.<a href="org/apache/shardingsphere/core/constant/properties/ShardingPropertiesConstant.html" title="org.apache.shardingsphere.core.constant.properties中的枚举">ShardingPropertiesConstant</a></dt> <dd> <div class="block">Find value via property key.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#findGenerateKeyColumnName-java.lang.String-">findGenerateKeyColumnName(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Find column name of generated key.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#findMasterSlaveRule-java.lang.String-">findMasterSlaveRule(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Find master slave rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#findTableRule-java.lang.String-">findTableRule(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Find table rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#findTableRuleByActualTable-java.lang.String-">findTableRuleByActualTable(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Find table rule via actual table name.</div> </dd> </dl> <a name="I:G"> <!-- --> </a> <h2 class="title">G</h2> <dl> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#generateKey-java.lang.String-">generateKey(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Generate key.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html#generateKey--">generateKey()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">SnowflakeShardingKeyGenerator</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/UUIDShardingKeyGenerator.html#generateKey--">generateKey()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/UUIDShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">UUIDShardingKeyGenerator</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html#get-java.lang.String-">get(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ShardingTableMetaData</a></dt> <dd> <div class="block">Get table meta data by table name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/database/DatabaseTypes.html#getActualDatabaseType-java.lang.String-">getActualDatabaseType(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.database.<a href="org/apache/shardingsphere/core/database/DatabaseTypes.html" title="org.apache.shardingsphere.core.database中的类">DatabaseTypes</a></dt> <dd> <div class="block">Get actual database type.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/ShardingDataSourceMetaData.html#getActualDataSourceMetaData-java.lang.String-">getActualDataSourceMetaData(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.datasource.<a href="org/apache/shardingsphere/core/metadata/datasource/ShardingDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource中的类">ShardingDataSourceMetaData</a></dt> <dd> <div class="block">Get data source meta data.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/TableRule.html#getActualDatasourceNames--">getActualDatasourceNames()</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/TableRule.html" title="org.apache.shardingsphere.core.rule中的类">TableRule</a></dt> <dd> <div class="block">Get actual data source names.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/TableRule.html#getActualTableNames-java.lang.String-">getActualTableNames(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/TableRule.html" title="org.apache.shardingsphere.core.rule中的类">TableRule</a></dt> <dd> <div class="block">Get actual table names via target data source name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html#getAllColumnNames-java.lang.String-">getAllColumnNames(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ShardingTableMetaData</a></dt> <dd> <div class="block">Get all column names via table.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/ShardingDataSourceMetaData.html#getAllInstanceDataSourceNames--">getAllInstanceDataSourceNames()</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.datasource.<a href="org/apache/shardingsphere/core/metadata/datasource/ShardingDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource中的类">ShardingDataSourceMetaData</a></dt> <dd> <div class="block">Get all instance data source names.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getAssistedQueryAndPlainColumnCount-java.lang.String-">getAssistedQueryAndPlainColumnCount(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get assisted query and plain column count.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getAssistedQueryAndPlainColumns-java.lang.String-">getAssistedQueryAndPlainColumns(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get assisted query and plain columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getAssistedQueryColumn-java.lang.String-java.lang.String-">getAssistedQueryColumn(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get assisted query column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptColumn.html#getAssistedQueryColumn--">getAssistedQueryColumn()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptColumn.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptColumn</a></dt> <dd> <div class="block">Get assisted query column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getAssistedQueryColumn-java.lang.String-">getAssistedQueryColumn(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get assisted query column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getAssistedQueryColumns-java.lang.String-">getAssistedQueryColumns(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get assisted query columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getAssistedQueryColumns--">getAssistedQueryColumns()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get assisted query columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/BindingTableRule.html#getBindingActualTable-java.lang.String-java.lang.String-java.lang.String-">getBindingActualTable(String, String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/BindingTableRule.html" title="org.apache.shardingsphere.core.rule中的类">BindingTableRule</a></dt> <dd> <div class="block">Deduce actual table name from other actual table name in same binding table rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getCipherColumn-java.lang.String-java.lang.String-">getCipherColumn(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get cipher column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getCipherColumn-java.lang.String-">getCipherColumn(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get cipher column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getCipherColumns-java.lang.String-">getCipherColumns(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get cipher columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getCipherColumns--">getCipherColumns()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get cipher columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/value/RouteValue.html#getColumnName--">getColumnName()</a></span> - 接口 中的方法org.apache.shardingsphere.core.strategy.route.value.<a href="org/apache/shardingsphere/core/strategy/route/value/RouteValue.html" title="org.apache.shardingsphere.core.strategy.route.value中的接口">RouteValue</a></dt> <dd> <div class="block">Get column name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/TimeService.html#getCurrentMillis--">getCurrentMillis()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/TimeService.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">TimeService</a></dt> <dd> <div class="block">Get current millis.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#getDatabaseShardingStrategy-org.apache.shardingsphere.core.rule.TableRule-">getDatabaseShardingStrategy(TableRule)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Get database sharding strategy.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/database/DatabaseTypes.html#getDatabaseTypeByURL-java.lang.String-">getDatabaseTypeByURL(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.database.<a href="org/apache/shardingsphere/core/database/DatabaseTypes.html" title="org.apache.shardingsphere.core.database中的类">DatabaseTypes</a></dt> <dd> <div class="block">Get database type by URL.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/database/DatabaseTypes.html#getDatabaseTypes--">getDatabaseTypes()</a></span> - 类 中的静态方法org.apache.shardingsphere.core.database.<a href="org/apache/shardingsphere/core/database/DatabaseTypes.html" title="org.apache.shardingsphere.core.database中的类">DatabaseTypes</a></dt> <dd> <div class="block">Get database types.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#getDataNode-java.lang.String-">getDataNode(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Find data node by logic table name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#getDataNode-java.lang.String-java.lang.String-">getDataNode(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Find data node by data source and logic table.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/TableRule.html#getDataNodeGroups--">getDataNodeGroups()</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/TableRule.html" title="org.apache.shardingsphere.core.rule中的类">TableRule</a></dt> <dd> <div class="block">Get data node groups.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/masterslave/RandomMasterSlaveLoadBalanceAlgorithm.html#getDataSource-java.lang.String-java.lang.String-java.util.List-">getDataSource(String, String, List&lt;String&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.masterslave.<a href="org/apache/shardingsphere/core/strategy/masterslave/RandomMasterSlaveLoadBalanceAlgorithm.html" title="org.apache.shardingsphere.core.strategy.masterslave中的类">RandomMasterSlaveLoadBalanceAlgorithm</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/masterslave/RoundRobinMasterSlaveLoadBalanceAlgorithm.html#getDataSource-java.lang.String-java.lang.String-java.util.List-">getDataSource(String, String, List&lt;String&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.masterslave.<a href="org/apache/shardingsphere/core/strategy/masterslave/RoundRobinMasterSlaveLoadBalanceAlgorithm.html" title="org.apache.shardingsphere.core.strategy.masterslave中的类">RoundRobinMasterSlaveLoadBalanceAlgorithm</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html#getDataSourceConfiguration-javax.sql.DataSource-">getDataSourceConfiguration(DataSource)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.config.<a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html" title="org.apache.shardingsphere.core.config中的类">DataSourceConfiguration</a></dt> <dd> <div class="block">Get data source configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html#getDataSourceMetaData-java.lang.String-">getDataSourceMetaData(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">H2DatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html#getDataSourceMetaData-java.lang.String-">getDataSourceMetaData(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MariaDBDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html#getDataSourceMetaData-java.lang.String-">getDataSourceMetaData(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MySQLDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html#getDataSourceMetaData-java.lang.String-">getDataSourceMetaData(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">OracleDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html#getDataSourceMetaData-java.lang.String-">getDataSourceMetaData(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">PostgreSQLDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html#getDataSourceMetaData-java.lang.String-">getDataSourceMetaData(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">SQLServerDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html#getDefaultDataSourceName--">getDefaultDataSourceName()</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html" title="org.apache.shardingsphere.core.rule中的类">ShardingDataSourceNames</a></dt> <dd> <div class="block">Get default data source name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getEncryptAssistedColumnValues-java.lang.String-java.lang.String-java.util.List-">getEncryptAssistedColumnValues(String, String, List&lt;Object&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get encrypt assisted column values.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getEncryptColumnValues-java.lang.String-java.lang.String-java.util.List-">getEncryptColumnValues(String, String, List&lt;Object&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">get encrypt column values.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getEncryptTableNames--">getEncryptTableNames()</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get encrypt table names.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html#getJdbcUrlPrefixAlias--">getJdbcUrlPrefixAlias()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">H2DatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html#getJdbcUrlPrefixAlias--">getJdbcUrlPrefixAlias()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MariaDBDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html#getJdbcUrlPrefixAlias--">getJdbcUrlPrefixAlias()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MySQLDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html#getJdbcUrlPrefixAlias--">getJdbcUrlPrefixAlias()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">OracleDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html#getJdbcUrlPrefixAlias--">getJdbcUrlPrefixAlias()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">PostgreSQLDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html#getJdbcUrlPrefixAlias--">getJdbcUrlPrefixAlias()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">SQLServerDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getLogicAndCipherColumns-java.lang.String-">getLogicAndCipherColumns(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get logic and cipher columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getLogicAndCipherColumns--">getLogicAndCipherColumns()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get logic and cipher columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getLogicAndPlainColumns-java.lang.String-">getLogicAndPlainColumns(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get logic and plain columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getLogicAndPlainColumns--">getLogicAndPlainColumns()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get logic and plain columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getLogicColumn-java.lang.String-java.lang.String-">getLogicColumn(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get logic column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getLogicColumn-java.lang.String-">getLogicColumn(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get logic column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getLogicColumns-java.lang.String-">getLogicColumns(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get logic columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getLogicColumns--">getLogicColumns()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get logic columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html#getLogicTableName-java.lang.String-">getLogicTableName(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ShardingTableMetaData</a></dt> <dd> <div class="block">Get logic table name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#getLogicTableNames-java.lang.String-">getLogicTableNames(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Get logic table names base on actual table name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html#getName--">getName()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">H2DatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html#getName--">getName()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MariaDBDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html#getName--">getName()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MySQLDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html#getName--">getName()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">OracleDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html#getName--">getName()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">PostgreSQLDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html#getName--">getName()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">SQLServerDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getPlainColumn-java.lang.String-java.lang.String-">getPlainColumn(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get plain column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptColumn.html#getPlainColumn--">getPlainColumn()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptColumn.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptColumn</a></dt> <dd> <div class="block">Get plain column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getPlainColumn-java.lang.String-">getPlainColumn(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get plain column.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getPlainColumns--">getPlainColumns()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get plain columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html#getRandomDataSourceName--">getRandomDataSourceName()</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html" title="org.apache.shardingsphere.core.rule中的类">ShardingDataSourceNames</a></dt> <dd> <div class="block">Get random data source name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html#getRandomDataSourceName-java.util.Collection-">getRandomDataSourceName(Collection&lt;String&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html" title="org.apache.shardingsphere.core.rule中的类">ShardingDataSourceNames</a></dt> <dd> <div class="block">Get random data source name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html#getRawMasterDataSourceName-java.lang.String-">getRawMasterDataSourceName(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html" title="org.apache.shardingsphere.core.rule中的类">ShardingDataSourceNames</a></dt> <dd> <div class="block">Get raw master data source name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/BaseRule.html#getRuleConfiguration--">getRuleConfiguration()</a></span> - 接口 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/BaseRule.html" title="org.apache.shardingsphere.core.rule中的接口">BaseRule</a></dt> <dd> <div class="block">Get rule configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/inline/InlineShardingStrategy.html#getShardingColumns--">getShardingColumns()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.route.inline.<a href="org/apache/shardingsphere/core/strategy/route/inline/InlineShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.inline中的类">InlineShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategy.html#getShardingColumns--">getShardingColumns()</a></span> - 接口 中的方法org.apache.shardingsphere.core.strategy.route.<a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route中的接口">ShardingStrategy</a></dt> <dd> <div class="block">Get sharding columns.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/standard/StandardShardingStrategy.html#getShardingColumns--">getShardingColumns()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.route.standard.<a href="org/apache/shardingsphere/core/strategy/route/standard/StandardShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.standard中的类">StandardShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#getShardingEncryptor-java.lang.String-java.lang.String-">getShardingEncryptor(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Get sharding encryptor.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#getShardingEncryptor-java.lang.String-">getShardingEncryptor(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Get sharding encryptor.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#getShardingLogicTableNames-java.util.Collection-">getShardingLogicTableNames(Collection&lt;String&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Get sharding logic table names.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/value/RouteValue.html#getTableName--">getTableName()</a></span> - 接口 中的方法org.apache.shardingsphere.core.strategy.route.value.<a href="org/apache/shardingsphere/core/strategy/route/value/RouteValue.html" title="org.apache.shardingsphere.core.strategy.route.value中的接口">RouteValue</a></dt> <dd> <div class="block">Get table name.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#getTableRule-java.lang.String-">getTableRule(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Get table rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#getTableShardingStrategy-org.apache.shardingsphere.core.rule.TableRule-">getTableShardingStrategy(TableRule)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Get table sharding strategy.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/database/DatabaseTypes.html#getTrunkDatabaseType-java.lang.String-">getTrunkDatabaseType(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.database.<a href="org/apache/shardingsphere/core/database/DatabaseTypes.html" title="org.apache.shardingsphere.core.database中的类">DatabaseTypes</a></dt> <dd> <div class="block">Get trunk database type.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html#getTrunkDatabaseType--">getTrunkDatabaseType()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">H2DatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html#getTrunkDatabaseType--">getTrunkDatabaseType()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MariaDBDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html#getType--">getType()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">AESShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html#getType--">getType()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">MD5ShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html#getType--">getType()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">SnowflakeShardingKeyGenerator</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/UUIDShardingKeyGenerator.html#getType--">getType()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/UUIDShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">UUIDShardingKeyGenerator</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/masterslave/RandomMasterSlaveLoadBalanceAlgorithm.html#getType--">getType()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.masterslave.<a href="org/apache/shardingsphere/core/strategy/masterslave/RandomMasterSlaveLoadBalanceAlgorithm.html" title="org.apache.shardingsphere.core.strategy.masterslave中的类">RandomMasterSlaveLoadBalanceAlgorithm</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/masterslave/RoundRobinMasterSlaveLoadBalanceAlgorithm.html#getType--">getType()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.masterslave.<a href="org/apache/shardingsphere/core/strategy/masterslave/RoundRobinMasterSlaveLoadBalanceAlgorithm.html" title="org.apache.shardingsphere.core.strategy.masterslave中的类">RoundRobinMasterSlaveLoadBalanceAlgorithm</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/properties/ShardingProperties.html#getValue-org.apache.shardingsphere.core.constant.properties.ShardingPropertiesConstant-">getValue(ShardingPropertiesConstant)</a></span> - 类 中的方法org.apache.shardingsphere.core.constant.properties.<a href="org/apache/shardingsphere/core/constant/properties/ShardingProperties.html" title="org.apache.shardingsphere.core.constant.properties中的类">ShardingProperties</a></dt> <dd> <div class="block">Get property value.</div> </dd> </dl> <a name="I:H"> <!-- --> </a> <h2 class="title">H</h2> <dl> <dt><a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类"><span class="typeNameLink">H2DatabaseType</span></a> - <a href="org/apache/shardingsphere/core/spi/database/package-summary.html">org.apache.shardingsphere.core.spi.database</a>中的类</dt> <dd> <div class="block">Database type of H2.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html#H2DatabaseType--">H2DatabaseType()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/H2DatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">H2DatabaseType</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/H2DataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类"><span class="typeNameLink">H2DataSourceMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/datasource/dialect/package-summary.html">org.apache.shardingsphere.core.metadata.datasource.dialect</a>中的类</dt> <dd> <div class="block">Data source meta data for H2.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/H2DataSourceMetaData.html#H2DataSourceMetaData-java.lang.String-">H2DataSourceMetaData(String)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.datasource.dialect.<a href="org/apache/shardingsphere/core/metadata/datasource/dialect/H2DataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类">H2DataSourceMetaData</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html#handlePlaceHolder-java.lang.String-">handlePlaceHolder(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html" title="org.apache.shardingsphere.core.util中的类">InlineExpressionParser</a></dt> <dd> <div class="block">Replace all inline expression placeholders.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html#hashCode--">hashCode()</a></span> - 类 中的方法org.apache.shardingsphere.core.config.<a href="org/apache/shardingsphere/core/config/DataSourceConfiguration.html" title="org.apache.shardingsphere.core.config中的类">DataSourceConfiguration</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/DataNode.html#hashCode--">hashCode()</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/DataNode.html" title="org.apache.shardingsphere.core.rule中的类">DataNode</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/BindingTableRule.html#hasLogicTable-java.lang.String-">hasLogicTable(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/BindingTableRule.html" title="org.apache.shardingsphere.core.rule中的类">BindingTableRule</a></dt> <dd> <div class="block">Judge contains this logic table in this rule.</div> </dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/hint/HintShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.hint中的类"><span class="typeNameLink">HintShardingStrategy</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/hint/package-summary.html">org.apache.shardingsphere.core.strategy.route.hint</a>中的类</dt> <dd> <div class="block">Hint sharding strategy.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/hint/HintShardingStrategy.html#HintShardingStrategy-org.apache.shardingsphere.api.config.sharding.strategy.HintShardingStrategyConfiguration-">HintShardingStrategy(HintShardingStrategyConfiguration)</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.hint.<a href="org/apache/shardingsphere/core/strategy/route/hint/HintShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.hint中的类">HintShardingStrategy</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:I"> <!-- --> </a> <h2 class="title">I</h2> <dl> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html#init--">init()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/AESShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">AESShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html#init--">init()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">MD5ShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html" title="org.apache.shardingsphere.core.util中的类"><span class="typeNameLink">InlineExpressionParser</span></a> - <a href="org/apache/shardingsphere/core/util/package-summary.html">org.apache.shardingsphere.core.util</a>中的类</dt> <dd> <div class="block">Inline expression parser.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html#InlineExpressionParser--">InlineExpressionParser()</a></span> - 类 的构造器org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html" title="org.apache.shardingsphere.core.util中的类">InlineExpressionParser</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/inline/InlineShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.inline中的类"><span class="typeNameLink">InlineShardingStrategy</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/inline/package-summary.html">org.apache.shardingsphere.core.strategy.route.inline</a>中的类</dt> <dd> <div class="block">Standard sharding strategy.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/inline/InlineShardingStrategy.html#InlineShardingStrategy-org.apache.shardingsphere.api.config.sharding.strategy.InlineShardingStrategyConfiguration-">InlineShardingStrategy(InlineShardingStrategyConfiguration)</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.inline.<a href="org/apache/shardingsphere/core/strategy/route/inline/InlineShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.inline中的类">InlineShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#isAllBindingTables-java.util.Collection-">isAllBindingTables(Collection&lt;String&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Judge logic tables is all belong to binding encryptors.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#isAllBroadcastTables-java.util.Collection-">isAllBroadcastTables(Collection&lt;String&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Judge logic tables is all belong to broadcast encryptors.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#isAllInDefaultDataSource-java.util.Collection-">isAllInDefaultDataSource(Collection&lt;String&gt;)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Judge logic tables is all belong to default data source.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/StringUtil.html#isBooleanValue-java.lang.String-">isBooleanValue(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/StringUtil.html" title="org.apache.shardingsphere.core.util中的类">StringUtil</a></dt> <dd> <div class="block">Judge is boolean value or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#isBroadcastTable-java.lang.String-">isBroadcastTable(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Judge logic table is belong to broadcast tables.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#isCipherColumn-java.lang.String-java.lang.String-">isCipherColumn(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Is cipher column or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#isHasPlainColumn-java.lang.String-">isHasPlainColumn(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Is has plain column or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#isHasPlainColumn--">isHasPlainColumn()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Is has plain column or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/EncryptRule.html#isHasQueryAssistedColumn-java.lang.String-">isHasQueryAssistedColumn(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/EncryptRule.html" title="org.apache.shardingsphere.core.rule中的类">EncryptRule</a></dt> <dd> <div class="block">Is has query assisted column or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html#isHasQueryAssistedColumn--">isHasQueryAssistedColumn()</a></span> - 类 中的方法org.apache.shardingsphere.core.strategy.encrypt.<a href="org/apache/shardingsphere/core/strategy/encrypt/EncryptTable.html" title="org.apache.shardingsphere.core.strategy.encrypt中的类">EncryptTable</a></dt> <dd> <div class="block">Is has query assisted column or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/StringUtil.html#isIntValue-java.lang.String-">isIntValue(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/StringUtil.html" title="org.apache.shardingsphere.core.util中的类">StringUtil</a></dt> <dd> <div class="block">Judge is int value or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/StringUtil.html#isLongValue-java.lang.String-">isLongValue(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/StringUtil.html" title="org.apache.shardingsphere.core.util中的类">StringUtil</a></dt> <dd> <div class="block">Judge is long value or not.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#isRoutingByHint-org.apache.shardingsphere.core.rule.TableRule-">isRoutingByHint(TableRule)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Is routing by hint.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#isShardingColumn-java.lang.String-java.lang.String-">isShardingColumn(String, String)</a></span> - 类 中的方法org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd> <div class="block">Judge is sharding column or not.</div> </dd> </dl> <a name="I:K"> <!-- --> </a> <h2 class="title">K</h2> <dl> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/KeyGeneratorConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">KeyGeneratorConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Key generator configuration YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/KeyGeneratorConfigurationYamlSwapper.html#KeyGeneratorConfigurationYamlSwapper--">KeyGeneratorConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/KeyGeneratorConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">KeyGeneratorConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:L"> <!-- --> </a> <h2 class="title">L</h2> <dl> <dt><a href="org/apache/shardingsphere/core/strategy/route/value/ListRouteValue.html" title="org.apache.shardingsphere.core.strategy.route.value中的类"><span class="typeNameLink">ListRouteValue</span></a>&lt;<a href="org/apache/shardingsphere/core/strategy/route/value/ListRouteValue.html" title="ListRouteValue中的类型参数">T</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a>&lt;?&gt;&gt; - <a href="org/apache/shardingsphere/core/strategy/route/value/package-summary.html">org.apache.shardingsphere.core.strategy.route.value</a>中的类</dt> <dd> <div class="block">Route value for list values.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/value/ListRouteValue.html#ListRouteValue--">ListRouteValue()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.value.<a href="org/apache/shardingsphere/core/strategy/route/value/ListRouteValue.html" title="org.apache.shardingsphere.core.strategy.route.value中的类">ListRouteValue</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html#log-java.util.Properties-">log(Properties)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类">ConfigurationLogger</a></dt> <dd> <div class="block">log properties configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html#log-org.apache.shardingsphere.api.config.encrypt.EncryptRuleConfiguration-">log(EncryptRuleConfiguration)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类">ConfigurationLogger</a></dt> <dd> <div class="block">log EncryptRuleConfiguration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html#log-org.apache.shardingsphere.api.config.RuleConfiguration-">log(RuleConfiguration)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类">ConfigurationLogger</a></dt> <dd> <div class="block">log ruleConfiguration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html#log-org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration-">log(ShardingRuleConfiguration)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类">ConfigurationLogger</a></dt> <dd> <div class="block">log ShardingRuleConfiguration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html#log-org.apache.shardingsphere.api.config.masterslave.MasterSlaveRuleConfiguration-">log(MasterSlaveRuleConfiguration)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类">ConfigurationLogger</a></dt> <dd> <div class="block">log MasterSlaveRuleConfiguration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html#log-org.apache.shardingsphere.core.rule.Authentication-">log(Authentication)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类">ConfigurationLogger</a></dt> <dd> <div class="block">log AuthenticationConfiguration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html#log-java.lang.String-java.lang.String-">log(String, String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/ConfigurationLogger.html" title="org.apache.shardingsphere.core.util中的类">ConfigurationLogger</a></dt> <dd> <div class="block">log configuration log.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/ShardingConstant.html#LOGIC_SCHEMA_NAME">LOGIC_SCHEMA_NAME</a></span> - 类 中的静态变量org.apache.shardingsphere.core.constant.<a href="org/apache/shardingsphere/core/constant/ShardingConstant.html" title="org.apache.shardingsphere.core.constant中的类">ShardingConstant</a></dt> <dd> <div class="block">Logic database schema name.</div> </dd> </dl> <a name="I:M"> <!-- --> </a> <h2 class="title">M</h2> <dl> <dt><a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类"><span class="typeNameLink">MariaDBDatabaseType</span></a> - <a href="org/apache/shardingsphere/core/spi/database/package-summary.html">org.apache.shardingsphere.core.spi.database</a>中的类</dt> <dd> <div class="block">Database type of Mariadb.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html#MariaDBDatabaseType--">MariaDBDatabaseType()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MariaDBDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MariaDBDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/MariaDBDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类"><span class="typeNameLink">MariaDBDataSourceMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/datasource/dialect/package-summary.html">org.apache.shardingsphere.core.metadata.datasource.dialect</a>中的类</dt> <dd> <div class="block">Data source meta data for MariaDB.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/MariaDBDataSourceMetaData.html#MariaDBDataSourceMetaData-java.lang.String-">MariaDBDataSourceMetaData(String)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.datasource.dialect.<a href="org/apache/shardingsphere/core/metadata/datasource/dialect/MariaDBDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类">MariaDBDataSourceMetaData</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html#marshal-java.lang.Object-">marshal(Object)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html" title="org.apache.shardingsphere.core.yaml.engine中的类">YamlEngine</a></dt> <dd> <div class="block">Marshal YAML.</div> </dd> <dt><a href="org/apache/shardingsphere/core/spi/algorithm/masterslave/MasterSlaveLoadBalanceAlgorithmServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm.masterslave中的类"><span class="typeNameLink">MasterSlaveLoadBalanceAlgorithmServiceLoader</span></a> - <a href="org/apache/shardingsphere/core/spi/algorithm/masterslave/package-summary.html">org.apache.shardingsphere.core.spi.algorithm.masterslave</a>中的类</dt> <dd> <div class="block">Master-slave database load-balance algorithm service loader.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/algorithm/masterslave/MasterSlaveLoadBalanceAlgorithmServiceLoader.html#MasterSlaveLoadBalanceAlgorithmServiceLoader--">MasterSlaveLoadBalanceAlgorithmServiceLoader()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.algorithm.masterslave.<a href="org/apache/shardingsphere/core/spi/algorithm/masterslave/MasterSlaveLoadBalanceAlgorithmServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm.masterslave中的类">MasterSlaveLoadBalanceAlgorithmServiceLoader</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/rule/MasterSlaveRule.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">MasterSlaveRule</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Databases and tables master-slave rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/MasterSlaveRule.html#MasterSlaveRule-java.lang.String-java.lang.String-java.util.Collection-org.apache.shardingsphere.spi.masterslave.MasterSlaveLoadBalanceAlgorithm-">MasterSlaveRule(String, String, Collection&lt;String&gt;, MasterSlaveLoadBalanceAlgorithm)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/MasterSlaveRule.html" title="org.apache.shardingsphere.core.rule中的类">MasterSlaveRule</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/MasterSlaveRule.html#MasterSlaveRule-org.apache.shardingsphere.api.config.masterslave.MasterSlaveRuleConfiguration-">MasterSlaveRule(MasterSlaveRuleConfiguration)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/MasterSlaveRule.html" title="org.apache.shardingsphere.core.rule中的类">MasterSlaveRule</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">MasterSlaveRuleConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Master-slave rule configuration YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.html#MasterSlaveRuleConfigurationYamlSwapper--">MasterSlaveRuleConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">MasterSlaveRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类"><span class="typeNameLink">MD5ShardingEncryptor</span></a> - <a href="org/apache/shardingsphere/core/strategy/encrypt/impl/package-summary.html">org.apache.shardingsphere.core.strategy.encrypt.impl</a>中的类</dt> <dd> <div class="block">MD5 sharding encryptor.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html#MD5ShardingEncryptor--">MD5ShardingEncryptor()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.encrypt.impl.<a href="org/apache/shardingsphere/core/strategy/encrypt/impl/MD5ShardingEncryptor.html" title="org.apache.shardingsphere.core.strategy.encrypt.impl中的类">MD5ShardingEncryptor</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类"><span class="typeNameLink">MySQLDatabaseType</span></a> - <a href="org/apache/shardingsphere/core/spi/database/package-summary.html">org.apache.shardingsphere.core.spi.database</a>中的类</dt> <dd> <div class="block">Database type of MySQL.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html#MySQLDatabaseType--">MySQLDatabaseType()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/MySQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">MySQLDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/MySQLDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类"><span class="typeNameLink">MySQLDataSourceMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/datasource/dialect/package-summary.html">org.apache.shardingsphere.core.metadata.datasource.dialect</a>中的类</dt> <dd> <div class="block">Data source meta data for MySQL.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/MySQLDataSourceMetaData.html#MySQLDataSourceMetaData-java.lang.String-">MySQLDataSourceMetaData(String)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.datasource.dialect.<a href="org/apache/shardingsphere/core/metadata/datasource/dialect/MySQLDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类">MySQLDataSourceMetaData</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:N"> <!-- --> </a> <h2 class="title">N</h2> <dl> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/ShardingAlgorithmFactory.html#newInstance-java.lang.String-java.lang.Class-">newInstance(String, Class&lt;T&gt;)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.strategy.route.<a href="org/apache/shardingsphere/core/strategy/route/ShardingAlgorithmFactory.html" title="org.apache.shardingsphere.core.strategy.route中的类">ShardingAlgorithmFactory</a></dt> <dd> <div class="block">Create sharding algorithm.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategyFactory.html#newInstance-org.apache.shardingsphere.api.config.sharding.strategy.ShardingStrategyConfiguration-">newInstance(ShardingStrategyConfiguration)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.strategy.route.<a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategyFactory.html" title="org.apache.shardingsphere.core.strategy.route中的类">ShardingStrategyFactory</a></dt> <dd> <div class="block">Create sharding algorithm.</div> </dd> <dt><a href="org/apache/shardingsphere/core/spi/NewInstanceServiceLoader.html" title="org.apache.shardingsphere.core.spi中的类"><span class="typeNameLink">NewInstanceServiceLoader</span></a> - <a href="org/apache/shardingsphere/core/spi/package-summary.html">org.apache.shardingsphere.core.spi</a>中的类</dt> <dd> <div class="block">SPI service loader for new instance for every call.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/NewInstanceServiceLoader.html#NewInstanceServiceLoader--">NewInstanceServiceLoader()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.<a href="org/apache/shardingsphere/core/spi/NewInstanceServiceLoader.html" title="org.apache.shardingsphere.core.spi中的类">NewInstanceServiceLoader</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/algorithm/TypeBasedSPIServiceLoader.html#newService-java.lang.String-java.util.Properties-">newService(String, Properties)</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.algorithm.<a href="org/apache/shardingsphere/core/spi/algorithm/TypeBasedSPIServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm中的类">TypeBasedSPIServiceLoader</a></dt> <dd> <div class="block">Create new instance for type based SPI.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/algorithm/TypeBasedSPIServiceLoader.html#newService--">newService()</a></span> - 类 中的方法org.apache.shardingsphere.core.spi.algorithm.<a href="org/apache/shardingsphere/core/spi/algorithm/TypeBasedSPIServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm中的类">TypeBasedSPIServiceLoader</a></dt> <dd> <div class="block">Create new service by default SPI type.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/NewInstanceServiceLoader.html#newServiceInstances-java.lang.Class-">newServiceInstances(Class&lt;T&gt;)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.spi.<a href="org/apache/shardingsphere/core/spi/NewInstanceServiceLoader.html" title="org.apache.shardingsphere.core.spi中的类">NewInstanceServiceLoader</a></dt> <dd> <div class="block">New service instances.</div> </dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/none/NoneShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.none中的类"><span class="typeNameLink">NoneShardingStrategy</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/none/package-summary.html">org.apache.shardingsphere.core.strategy.route.none</a>中的类</dt> <dd> <div class="block">None sharding strategy.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/none/NoneShardingStrategy.html#NoneShardingStrategy--">NoneShardingStrategy()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.none.<a href="org/apache/shardingsphere/core/strategy/route/none/NoneShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.none中的类">NoneShardingStrategy</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:O"> <!-- --> </a> <h2 class="title">O</h2> <dl> <dt><a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类"><span class="typeNameLink">OracleDatabaseType</span></a> - <a href="org/apache/shardingsphere/core/spi/database/package-summary.html">org.apache.shardingsphere.core.spi.database</a>中的类</dt> <dd> <div class="block">Database type of Oracle.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html#OracleDatabaseType--">OracleDatabaseType()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/OracleDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">OracleDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/OracleDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类"><span class="typeNameLink">OracleDataSourceMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/datasource/dialect/package-summary.html">org.apache.shardingsphere.core.metadata.datasource.dialect</a>中的类</dt> <dd> <div class="block">Data source meta data for Oracle.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/OracleDataSourceMetaData.html#OracleDataSourceMetaData-java.lang.String-">OracleDataSourceMetaData(String)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.datasource.dialect.<a href="org/apache/shardingsphere/core/metadata/datasource/dialect/OracleDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类">OracleDataSourceMetaData</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/config/package-summary.html">org.apache.shardingsphere.core.config</a> - 程序包 org.apache.shardingsphere.core.config</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/constant/package-summary.html">org.apache.shardingsphere.core.constant</a> - 程序包 org.apache.shardingsphere.core.constant</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/constant/properties/package-summary.html">org.apache.shardingsphere.core.constant.properties</a> - 程序包 org.apache.shardingsphere.core.constant.properties</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/database/package-summary.html">org.apache.shardingsphere.core.database</a> - 程序包 org.apache.shardingsphere.core.database</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/exception/package-summary.html">org.apache.shardingsphere.core.exception</a> - 程序包 org.apache.shardingsphere.core.exception</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/package-summary.html">org.apache.shardingsphere.core.metadata</a> - 程序包 org.apache.shardingsphere.core.metadata</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/package-summary.html">org.apache.shardingsphere.core.metadata.datasource</a> - 程序包 org.apache.shardingsphere.core.metadata.datasource</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/package-summary.html">org.apache.shardingsphere.core.metadata.datasource.dialect</a> - 程序包 org.apache.shardingsphere.core.metadata.datasource.dialect</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/table/package-summary.html">org.apache.shardingsphere.core.metadata.table</a> - 程序包 org.apache.shardingsphere.core.metadata.table</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a> - 程序包 org.apache.shardingsphere.core.rule</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/package-summary.html">org.apache.shardingsphere.core.spi</a> - 程序包 org.apache.shardingsphere.core.spi</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/algorithm/package-summary.html">org.apache.shardingsphere.core.spi.algorithm</a> - 程序包 org.apache.shardingsphere.core.spi.algorithm</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/algorithm/encrypt/package-summary.html">org.apache.shardingsphere.core.spi.algorithm.encrypt</a> - 程序包 org.apache.shardingsphere.core.spi.algorithm.encrypt</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/algorithm/keygen/package-summary.html">org.apache.shardingsphere.core.spi.algorithm.keygen</a> - 程序包 org.apache.shardingsphere.core.spi.algorithm.keygen</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/algorithm/masterslave/package-summary.html">org.apache.shardingsphere.core.spi.algorithm.masterslave</a> - 程序包 org.apache.shardingsphere.core.spi.algorithm.masterslave</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/database/package-summary.html">org.apache.shardingsphere.core.spi.database</a> - 程序包 org.apache.shardingsphere.core.spi.database</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/encrypt/package-summary.html">org.apache.shardingsphere.core.strategy.encrypt</a> - 程序包 org.apache.shardingsphere.core.strategy.encrypt</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/encrypt/impl/package-summary.html">org.apache.shardingsphere.core.strategy.encrypt.impl</a> - 程序包 org.apache.shardingsphere.core.strategy.encrypt.impl</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/keygen/package-summary.html">org.apache.shardingsphere.core.strategy.keygen</a> - 程序包 org.apache.shardingsphere.core.strategy.keygen</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/masterslave/package-summary.html">org.apache.shardingsphere.core.strategy.masterslave</a> - 程序包 org.apache.shardingsphere.core.strategy.masterslave</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/package-summary.html">org.apache.shardingsphere.core.strategy.route</a> - 程序包 org.apache.shardingsphere.core.strategy.route</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/complex/package-summary.html">org.apache.shardingsphere.core.strategy.route.complex</a> - 程序包 org.apache.shardingsphere.core.strategy.route.complex</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/hint/package-summary.html">org.apache.shardingsphere.core.strategy.route.hint</a> - 程序包 org.apache.shardingsphere.core.strategy.route.hint</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/inline/package-summary.html">org.apache.shardingsphere.core.strategy.route.inline</a> - 程序包 org.apache.shardingsphere.core.strategy.route.inline</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/none/package-summary.html">org.apache.shardingsphere.core.strategy.route.none</a> - 程序包 org.apache.shardingsphere.core.strategy.route.none</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/standard/package-summary.html">org.apache.shardingsphere.core.strategy.route.standard</a> - 程序包 org.apache.shardingsphere.core.strategy.route.standard</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/value/package-summary.html">org.apache.shardingsphere.core.strategy.route.value</a> - 程序包 org.apache.shardingsphere.core.strategy.route.value</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/util/package-summary.html">org.apache.shardingsphere.core.util</a> - 程序包 org.apache.shardingsphere.core.util</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/package-summary.html">org.apache.shardingsphere.core.yaml.config</a> - 程序包 org.apache.shardingsphere.core.yaml.config</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/common/package-summary.html">org.apache.shardingsphere.core.yaml.config.common</a> - 程序包 org.apache.shardingsphere.core.yaml.config.common</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/encrypt/package-summary.html">org.apache.shardingsphere.core.yaml.config.encrypt</a> - 程序包 org.apache.shardingsphere.core.yaml.config.encrypt</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/masterslave/package-summary.html">org.apache.shardingsphere.core.yaml.config.masterslave</a> - 程序包 org.apache.shardingsphere.core.yaml.config.masterslave</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding</a> - 程序包 org.apache.shardingsphere.core.yaml.config.sharding</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding.strategy</a> - 程序包 org.apache.shardingsphere.core.yaml.config.sharding.strategy</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/engine/package-summary.html">org.apache.shardingsphere.core.yaml.engine</a> - 程序包 org.apache.shardingsphere.core.yaml.engine</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/package-summary.html">org.apache.shardingsphere.core.yaml.swapper</a> - 程序包 org.apache.shardingsphere.core.yaml.swapper</dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a> - 程序包 org.apache.shardingsphere.core.yaml.swapper.impl</dt> <dd>&nbsp;</dd> </dl> <a name="I:P"> <!-- --> </a> <h2 class="title">P</h2> <dl> <dt><a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类"><span class="typeNameLink">PostgreSQLDatabaseType</span></a> - <a href="org/apache/shardingsphere/core/spi/database/package-summary.html">org.apache.shardingsphere.core.spi.database</a>中的类</dt> <dd> <div class="block">Database type of PostgreSQL.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html#PostgreSQLDatabaseType--">PostgreSQLDatabaseType()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/PostgreSQLDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">PostgreSQLDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/PostgreSQLDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类"><span class="typeNameLink">PostgreSQLDataSourceMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/datasource/dialect/package-summary.html">org.apache.shardingsphere.core.metadata.datasource.dialect</a>中的类</dt> <dd> <div class="block">Data source meta data for PostgreSQL.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/PostgreSQLDataSourceMetaData.html#PostgreSQLDataSourceMetaData-java.lang.String-">PostgreSQLDataSourceMetaData(String)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.datasource.dialect.<a href="org/apache/shardingsphere/core/metadata/datasource/dialect/PostgreSQLDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类">PostgreSQLDataSourceMetaData</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/rule/ProxyUser.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">ProxyUser</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Proxy user.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ProxyUser.html#ProxyUser--">ProxyUser()</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ProxyUser.html" title="org.apache.shardingsphere.core.rule中的类">ProxyUser</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ProxyUserYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">ProxyUserYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Proxy user YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ProxyUserYamlSwapper.html#ProxyUserYamlSwapper--">ProxyUserYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ProxyUserYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ProxyUserYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html#put-java.lang.String-org.apache.shardingsphere.core.metadata.table.TableMetaData-">put(String, TableMetaData)</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ShardingTableMetaData</a></dt> <dd> <div class="block">Add table meta data.</div> </dd> </dl> <a name="I:R"> <!-- --> </a> <h2 class="title">R</h2> <dl> <dt><a href="org/apache/shardingsphere/core/strategy/masterslave/RandomMasterSlaveLoadBalanceAlgorithm.html" title="org.apache.shardingsphere.core.strategy.masterslave中的类"><span class="typeNameLink">RandomMasterSlaveLoadBalanceAlgorithm</span></a> - <a href="org/apache/shardingsphere/core/strategy/masterslave/package-summary.html">org.apache.shardingsphere.core.strategy.masterslave</a>中的类</dt> <dd> <div class="block">Random slave database load-balance algorithm.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/masterslave/RandomMasterSlaveLoadBalanceAlgorithm.html#RandomMasterSlaveLoadBalanceAlgorithm--">RandomMasterSlaveLoadBalanceAlgorithm()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.masterslave.<a href="org/apache/shardingsphere/core/strategy/masterslave/RandomMasterSlaveLoadBalanceAlgorithm.html" title="org.apache.shardingsphere.core.strategy.masterslave中的类">RandomMasterSlaveLoadBalanceAlgorithm</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/value/RangeRouteValue.html" title="org.apache.shardingsphere.core.strategy.route.value中的类"><span class="typeNameLink">RangeRouteValue</span></a>&lt;<a href="org/apache/shardingsphere/core/strategy/route/value/RangeRouteValue.html" title="RangeRouteValue中的类型参数">T</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a>&lt;?&gt;&gt; - <a href="org/apache/shardingsphere/core/strategy/route/value/package-summary.html">org.apache.shardingsphere.core.strategy.route.value</a>中的类</dt> <dd> <div class="block">Route value for range.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/value/RangeRouteValue.html#RangeRouteValue--">RangeRouteValue()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.value.<a href="org/apache/shardingsphere/core/strategy/route/value/RangeRouteValue.html" title="org.apache.shardingsphere.core.strategy.route.value中的类">RangeRouteValue</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/NewInstanceServiceLoader.html#register-java.lang.Class-">register(Class&lt;T&gt;)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.spi.<a href="org/apache/shardingsphere/core/spi/NewInstanceServiceLoader.html" title="org.apache.shardingsphere.core.spi中的类">NewInstanceServiceLoader</a></dt> <dd> <div class="block">Register SPI service into map for new instance.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html#remove-java.lang.String-">remove(String)</a></span> - 类 中的方法org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ShardingTableMetaData</a></dt> <dd> <div class="block">Remove table meta data.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/DefaultYamlRepresenter.html#representJavaBeanProperty-java.lang.Object-org.yaml.snakeyaml.introspector.Property-java.lang.Object-org.yaml.snakeyaml.nodes.Tag-">representJavaBeanProperty(Object, Property, Object, Tag)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/DefaultYamlRepresenter.html" title="org.apache.shardingsphere.core.yaml.engine中的类">DefaultYamlRepresenter</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/masterslave/RoundRobinMasterSlaveLoadBalanceAlgorithm.html" title="org.apache.shardingsphere.core.strategy.masterslave中的类"><span class="typeNameLink">RoundRobinMasterSlaveLoadBalanceAlgorithm</span></a> - <a href="org/apache/shardingsphere/core/strategy/masterslave/package-summary.html">org.apache.shardingsphere.core.strategy.masterslave</a>中的类</dt> <dd> <div class="block">Round-robin slave database load-balance algorithm.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/masterslave/RoundRobinMasterSlaveLoadBalanceAlgorithm.html#RoundRobinMasterSlaveLoadBalanceAlgorithm--">RoundRobinMasterSlaveLoadBalanceAlgorithm()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.masterslave.<a href="org/apache/shardingsphere/core/strategy/masterslave/RoundRobinMasterSlaveLoadBalanceAlgorithm.html" title="org.apache.shardingsphere.core.strategy.masterslave中的类">RoundRobinMasterSlaveLoadBalanceAlgorithm</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/value/RouteValue.html" title="org.apache.shardingsphere.core.strategy.route.value中的接口"><span class="typeNameLink">RouteValue</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/value/package-summary.html">org.apache.shardingsphere.core.strategy.route.value</a>中的接口</dt> <dd> <div class="block">Route value.</div> </dd> </dl> <a name="I:S"> <!-- --> </a> <h2 class="title">S</h2> <dl> <dt><a href="org/apache/shardingsphere/core/strategy/route/ShardingAlgorithmFactory.html" title="org.apache.shardingsphere.core.strategy.route中的类"><span class="typeNameLink">ShardingAlgorithmFactory</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/package-summary.html">org.apache.shardingsphere.core.strategy.route</a>中的类</dt> <dd> <div class="block">Sharding algorithm factory.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/ShardingAlgorithmFactory.html#ShardingAlgorithmFactory--">ShardingAlgorithmFactory()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.<a href="org/apache/shardingsphere/core/strategy/route/ShardingAlgorithmFactory.html" title="org.apache.shardingsphere.core.strategy.route中的类">ShardingAlgorithmFactory</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/config/ShardingConfigurationException.html" title="org.apache.shardingsphere.core.config中的类"><span class="typeNameLink">ShardingConfigurationException</span></a> - <a href="org/apache/shardingsphere/core/config/package-summary.html">org.apache.shardingsphere.core.config</a>中的异常错误</dt> <dd> <div class="block">Sharding rule exception.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/config/ShardingConfigurationException.html#ShardingConfigurationException-java.lang.String-java.lang.Object...-">ShardingConfigurationException(String, Object...)</a></span> - 异常错误 的构造器org.apache.shardingsphere.core.config.<a href="org/apache/shardingsphere/core/config/ShardingConfigurationException.html" title="org.apache.shardingsphere.core.config中的类">ShardingConfigurationException</a></dt> <dd> <div class="block">Constructs an exception with formatted error message and arguments.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/config/ShardingConfigurationException.html#ShardingConfigurationException-java.lang.Exception-">ShardingConfigurationException(Exception)</a></span> - 异常错误 的构造器org.apache.shardingsphere.core.config.<a href="org/apache/shardingsphere/core/config/ShardingConfigurationException.html" title="org.apache.shardingsphere.core.config中的类">ShardingConfigurationException</a></dt> <dd> <div class="block">Constructs an exception with cause exception.</div> </dd> <dt><a href="org/apache/shardingsphere/core/constant/ShardingConstant.html" title="org.apache.shardingsphere.core.constant中的类"><span class="typeNameLink">ShardingConstant</span></a> - <a href="org/apache/shardingsphere/core/constant/package-summary.html">org.apache.shardingsphere.core.constant</a>中的类</dt> <dd> <div class="block">Sharding constant.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/ShardingConstant.html#ShardingConstant--">ShardingConstant()</a></span> - 类 的构造器org.apache.shardingsphere.core.constant.<a href="org/apache/shardingsphere/core/constant/ShardingConstant.html" title="org.apache.shardingsphere.core.constant中的类">ShardingConstant</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/ShardingDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource中的类"><span class="typeNameLink">ShardingDataSourceMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/datasource/package-summary.html">org.apache.shardingsphere.core.metadata.datasource</a>中的类</dt> <dd> <div class="block">Sharding data source meta data.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/ShardingDataSourceMetaData.html#ShardingDataSourceMetaData-java.util.Map-org.apache.shardingsphere.core.rule.ShardingRule-org.apache.shardingsphere.spi.database.DatabaseType-">ShardingDataSourceMetaData(Map&lt;String, String&gt;, ShardingRule, DatabaseType)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.datasource.<a href="org/apache/shardingsphere/core/metadata/datasource/ShardingDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource中的类">ShardingDataSourceMetaData</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">ShardingDataSourceNames</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Sharding data source names.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html#ShardingDataSourceNames-org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration-java.util.Collection-">ShardingDataSourceNames(ShardingRuleConfiguration, Collection&lt;String&gt;)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingDataSourceNames.html" title="org.apache.shardingsphere.core.rule中的类">ShardingDataSourceNames</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/algorithm/encrypt/ShardingEncryptorServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm.encrypt中的类"><span class="typeNameLink">ShardingEncryptorServiceLoader</span></a> - <a href="org/apache/shardingsphere/core/spi/algorithm/encrypt/package-summary.html">org.apache.shardingsphere.core.spi.algorithm.encrypt</a>中的类</dt> <dd> <div class="block">Sharding encryptor service loader.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/algorithm/encrypt/ShardingEncryptorServiceLoader.html#ShardingEncryptorServiceLoader--">ShardingEncryptorServiceLoader()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.algorithm.encrypt.<a href="org/apache/shardingsphere/core/spi/algorithm/encrypt/ShardingEncryptorServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm.encrypt中的类">ShardingEncryptorServiceLoader</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/exception/ShardingException.html" title="org.apache.shardingsphere.core.exception中的类"><span class="typeNameLink">ShardingException</span></a> - <a href="org/apache/shardingsphere/core/exception/package-summary.html">org.apache.shardingsphere.core.exception</a>中的异常错误</dt> <dd> <div class="block">Sharding exception.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/exception/ShardingException.html#ShardingException-java.lang.String-java.lang.Object...-">ShardingException(String, Object...)</a></span> - 异常错误 的构造器org.apache.shardingsphere.core.exception.<a href="org/apache/shardingsphere/core/exception/ShardingException.html" title="org.apache.shardingsphere.core.exception中的类">ShardingException</a></dt> <dd> <div class="block">Constructs an exception with formatted error message and arguments.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/exception/ShardingException.html#ShardingException-java.lang.String-java.lang.Exception-">ShardingException(String, Exception)</a></span> - 异常错误 的构造器org.apache.shardingsphere.core.exception.<a href="org/apache/shardingsphere/core/exception/ShardingException.html" title="org.apache.shardingsphere.core.exception中的类">ShardingException</a></dt> <dd> <div class="block">Constructs an exception with error message and cause.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/exception/ShardingException.html#ShardingException-java.lang.Exception-">ShardingException(Exception)</a></span> - 异常错误 的构造器org.apache.shardingsphere.core.exception.<a href="org/apache/shardingsphere/core/exception/ShardingException.html" title="org.apache.shardingsphere.core.exception中的类">ShardingException</a></dt> <dd> <div class="block">Constructs an exception with cause.</div> </dd> <dt><a href="org/apache/shardingsphere/core/spi/algorithm/keygen/ShardingKeyGeneratorServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm.keygen中的类"><span class="typeNameLink">ShardingKeyGeneratorServiceLoader</span></a> - <a href="org/apache/shardingsphere/core/spi/algorithm/keygen/package-summary.html">org.apache.shardingsphere.core.spi.algorithm.keygen</a>中的类</dt> <dd> <div class="block">Key generator service loader.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/algorithm/keygen/ShardingKeyGeneratorServiceLoader.html#ShardingKeyGeneratorServiceLoader--">ShardingKeyGeneratorServiceLoader()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.algorithm.keygen.<a href="org/apache/shardingsphere/core/spi/algorithm/keygen/ShardingKeyGeneratorServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm.keygen中的类">ShardingKeyGeneratorServiceLoader</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/ShardingMetaData.html" title="org.apache.shardingsphere.core.metadata中的类"><span class="typeNameLink">ShardingMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/package-summary.html">org.apache.shardingsphere.core.metadata</a>中的类</dt> <dd> <div class="block">Sharding meta data.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/ShardingMetaData.html#ShardingMetaData--">ShardingMetaData()</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.<a href="org/apache/shardingsphere/core/metadata/ShardingMetaData.html" title="org.apache.shardingsphere.core.metadata中的类">ShardingMetaData</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/constant/ShardingOperator.html" title="org.apache.shardingsphere.core.constant中的枚举"><span class="typeNameLink">ShardingOperator</span></a> - <a href="org/apache/shardingsphere/core/constant/package-summary.html">org.apache.shardingsphere.core.constant</a>中的枚举</dt> <dd> <div class="block">Supported sharding operator.</div> </dd> <dt><a href="org/apache/shardingsphere/core/constant/properties/ShardingProperties.html" title="org.apache.shardingsphere.core.constant.properties中的类"><span class="typeNameLink">ShardingProperties</span></a> - <a href="org/apache/shardingsphere/core/constant/properties/package-summary.html">org.apache.shardingsphere.core.constant.properties</a>中的类</dt> <dd> <div class="block">Properties for sharding configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/properties/ShardingProperties.html#ShardingProperties-java.util.Properties-">ShardingProperties(Properties)</a></span> - 类 的构造器org.apache.shardingsphere.core.constant.properties.<a href="org/apache/shardingsphere/core/constant/properties/ShardingProperties.html" title="org.apache.shardingsphere.core.constant.properties中的类">ShardingProperties</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/constant/properties/ShardingPropertiesConstant.html" title="org.apache.shardingsphere.core.constant.properties中的枚举"><span class="typeNameLink">ShardingPropertiesConstant</span></a> - <a href="org/apache/shardingsphere/core/constant/properties/package-summary.html">org.apache.shardingsphere.core.constant.properties</a>中的枚举</dt> <dd> <div class="block">Sharding properties constant.</div> </dd> <dt><a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">ShardingRule</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Databases and tables sharding rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/ShardingRule.html#ShardingRule-org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration-java.util.Collection-">ShardingRule(ShardingRuleConfiguration, Collection&lt;String&gt;)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/ShardingRule.html" title="org.apache.shardingsphere.core.rule中的类">ShardingRule</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">ShardingRuleConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Sharding rule configuration YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingRuleConfigurationYamlSwapper.html#ShardingRuleConfigurationYamlSwapper--">ShardingRuleConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ShardingRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route中的接口"><span class="typeNameLink">ShardingStrategy</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/package-summary.html">org.apache.shardingsphere.core.strategy.route</a>中的接口</dt> <dd> <div class="block">Sharding strategy.</div> </dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingStrategyConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">ShardingStrategyConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Sharding strategy configuration YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingStrategyConfigurationYamlSwapper.html#ShardingStrategyConfigurationYamlSwapper--">ShardingStrategyConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingStrategyConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ShardingStrategyConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategyFactory.html" title="org.apache.shardingsphere.core.strategy.route中的类"><span class="typeNameLink">ShardingStrategyFactory</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/package-summary.html">org.apache.shardingsphere.core.strategy.route</a>中的类</dt> <dd> <div class="block">Sharding strategy factory.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategyFactory.html#ShardingStrategyFactory--">ShardingStrategyFactory()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.<a href="org/apache/shardingsphere/core/strategy/route/ShardingStrategyFactory.html" title="org.apache.shardingsphere.core.strategy.route中的类">ShardingStrategyFactory</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类"><span class="typeNameLink">ShardingTableMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/table/package-summary.html">org.apache.shardingsphere.core.metadata.table</a>中的类</dt> <dd> <div class="block">Sharding table meta data.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html#ShardingTableMetaData-java.util.Map-">ShardingTableMetaData(Map&lt;String, TableMetaData&gt;)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/ShardingTableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">ShardingTableMetaData</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类"><span class="typeNameLink">SnowflakeShardingKeyGenerator</span></a> - <a href="org/apache/shardingsphere/core/strategy/keygen/package-summary.html">org.apache.shardingsphere.core.strategy.keygen</a>中的类</dt> <dd> <div class="block">Snowflake distributed primary key generator.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html#SnowflakeShardingKeyGenerator--">SnowflakeShardingKeyGenerator()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/SnowflakeShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">SnowflakeShardingKeyGenerator</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html#splitAndEvaluate--">splitAndEvaluate()</a></span> - 类 中的方法org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/InlineExpressionParser.html" title="org.apache.shardingsphere.core.util中的类">InlineExpressionParser</a></dt> <dd> <div class="block">Split and evaluate inline expression.</div> </dd> <dt><a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类"><span class="typeNameLink">SQLServerDatabaseType</span></a> - <a href="org/apache/shardingsphere/core/spi/database/package-summary.html">org.apache.shardingsphere.core.spi.database</a>中的类</dt> <dd> <div class="block">Database type of SQLServer.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html#SQLServerDatabaseType--">SQLServerDatabaseType()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.database.<a href="org/apache/shardingsphere/core/spi/database/SQLServerDatabaseType.html" title="org.apache.shardingsphere.core.spi.database中的类">SQLServerDatabaseType</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/SQLServerDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类"><span class="typeNameLink">SQLServerDataSourceMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/datasource/dialect/package-summary.html">org.apache.shardingsphere.core.metadata.datasource.dialect</a>中的类</dt> <dd> <div class="block">Data source meta data for SQLServer.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/dialect/SQLServerDataSourceMetaData.html#SQLServerDataSourceMetaData-java.lang.String-">SQLServerDataSourceMetaData(String)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.datasource.dialect.<a href="org/apache/shardingsphere/core/metadata/datasource/dialect/SQLServerDataSourceMetaData.html" title="org.apache.shardingsphere.core.metadata.datasource.dialect中的类">SQLServerDataSourceMetaData</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/route/standard/StandardShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.standard中的类"><span class="typeNameLink">StandardShardingStrategy</span></a> - <a href="org/apache/shardingsphere/core/strategy/route/standard/package-summary.html">org.apache.shardingsphere.core.strategy.route.standard</a>中的类</dt> <dd> <div class="block">Standard sharding strategy.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/route/standard/StandardShardingStrategy.html#StandardShardingStrategy-org.apache.shardingsphere.api.config.sharding.strategy.StandardShardingStrategyConfiguration-">StandardShardingStrategy(StandardShardingStrategyConfiguration)</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.route.standard.<a href="org/apache/shardingsphere/core/strategy/route/standard/StandardShardingStrategy.html" title="org.apache.shardingsphere.core.strategy.route.standard中的类">StandardShardingStrategy</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/util/StringUtil.html" title="org.apache.shardingsphere.core.util中的类"><span class="typeNameLink">StringUtil</span></a> - <a href="org/apache/shardingsphere/core/util/package-summary.html">org.apache.shardingsphere.core.util</a>中的类</dt> <dd> <div class="block">String utility class.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/util/StringUtil.html#StringUtil--">StringUtil()</a></span> - 类 的构造器org.apache.shardingsphere.core.util.<a href="org/apache/shardingsphere/core/util/StringUtil.html" title="org.apache.shardingsphere.core.util中的类">StringUtil</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/AuthenticationYamlSwapper.html#swap-org.apache.shardingsphere.core.rule.Authentication-">swap(Authentication)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/AuthenticationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">AuthenticationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/AuthenticationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.common.YamlAuthenticationConfiguration-">swap(YamlAuthenticationConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/AuthenticationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">AuthenticationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptColumnRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.encrypt.EncryptColumnRuleConfiguration-">swap(EncryptColumnRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptColumnRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptColumnRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptColumnRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.encrypt.YamlEncryptColumnRuleConfiguration-">swap(YamlEncryptColumnRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptColumnRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptColumnRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptorRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.encrypt.EncryptorRuleConfiguration-">swap(EncryptorRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptorRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptorRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptorRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.encrypt.YamlEncryptorRuleConfiguration-">swap(YamlEncryptorRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptorRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptorRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.encrypt.EncryptRuleConfiguration-">swap(EncryptRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.encrypt.YamlEncryptRuleConfiguration-">swap(YamlEncryptRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptTableRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.encrypt.EncryptTableRuleConfiguration-">swap(EncryptTableRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptTableRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptTableRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptTableRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.encrypt.YamlEncryptTableRuleConfiguration-">swap(YamlEncryptTableRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/EncryptTableRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">EncryptTableRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/KeyGeneratorConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.sharding.KeyGeneratorConfiguration-">swap(KeyGeneratorConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/KeyGeneratorConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">KeyGeneratorConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/KeyGeneratorConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.sharding.YamlKeyGeneratorConfiguration-">swap(YamlKeyGeneratorConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/KeyGeneratorConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">KeyGeneratorConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.masterslave.MasterSlaveRuleConfiguration-">swap(MasterSlaveRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">MasterSlaveRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.masterslave.YamlMasterSlaveRuleConfiguration-">swap(YamlMasterSlaveRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/MasterSlaveRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">MasterSlaveRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ProxyUserYamlSwapper.html#swap-org.apache.shardingsphere.core.rule.ProxyUser-">swap(ProxyUser)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ProxyUserYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ProxyUserYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ProxyUserYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.common.YamlProxyUserConfiguration-">swap(YamlProxyUserConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ProxyUserYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ProxyUserYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration-">swap(ShardingRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ShardingRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.sharding.YamlShardingRuleConfiguration-">swap(YamlShardingRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ShardingRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingStrategyConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.sharding.strategy.ShardingStrategyConfiguration-">swap(ShardingStrategyConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingStrategyConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ShardingStrategyConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingStrategyConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.sharding.YamlShardingStrategyConfiguration-">swap(YamlShardingStrategyConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/ShardingStrategyConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">ShardingStrategyConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/TableRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.api.config.sharding.TableRuleConfiguration-">swap(TableRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/TableRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">TableRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/TableRuleConfigurationYamlSwapper.html#swap-org.apache.shardingsphere.core.yaml.config.sharding.YamlTableRuleConfiguration-">swap(YamlTableRuleConfiguration)</a></span> - 类 中的方法org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/TableRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">TableRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/YamlSwapper.html#swap-T-">swap(T)</a></span> - 接口 中的方法org.apache.shardingsphere.core.yaml.swapper.<a href="org/apache/shardingsphere/core/yaml/swapper/YamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper中的接口">YamlSwapper</a></dt> <dd> <div class="block">Swap to YAML configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/YamlSwapper.html#swap-Y-">swap(Y)</a></span> - 接口 中的方法org.apache.shardingsphere.core.yaml.swapper.<a href="org/apache/shardingsphere/core/yaml/swapper/YamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper中的接口">YamlSwapper</a></dt> <dd> <div class="block">Swap from YAML configuration to object.</div> </dd> </dl> <a name="I:T"> <!-- --> </a> <h2 class="title">T</h2> <dl> <dt><a href="org/apache/shardingsphere/core/metadata/table/TableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类"><span class="typeNameLink">TableMetaData</span></a> - <a href="org/apache/shardingsphere/core/metadata/table/package-summary.html">org.apache.shardingsphere.core.metadata.table</a>中的类</dt> <dd> <div class="block">Table metadata.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/table/TableMetaData.html#TableMetaData-java.util.Collection-java.util.Collection-">TableMetaData(Collection&lt;ColumnMetaData&gt;, Collection&lt;String&gt;)</a></span> - 类 的构造器org.apache.shardingsphere.core.metadata.table.<a href="org/apache/shardingsphere/core/metadata/table/TableMetaData.html" title="org.apache.shardingsphere.core.metadata.table中的类">TableMetaData</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/rule/TableRule.html" title="org.apache.shardingsphere.core.rule中的类"><span class="typeNameLink">TableRule</span></a> - <a href="org/apache/shardingsphere/core/rule/package-summary.html">org.apache.shardingsphere.core.rule</a>中的类</dt> <dd> <div class="block">Table rule.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/TableRule.html#TableRule-java.lang.String-java.lang.String-">TableRule(String, String)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/TableRule.html" title="org.apache.shardingsphere.core.rule中的类">TableRule</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/TableRule.html#TableRule-java.util.Collection-java.lang.String-">TableRule(Collection&lt;String&gt;, String)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/TableRule.html" title="org.apache.shardingsphere.core.rule中的类">TableRule</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/rule/TableRule.html#TableRule-org.apache.shardingsphere.api.config.sharding.TableRuleConfiguration-org.apache.shardingsphere.core.rule.ShardingDataSourceNames-java.lang.String-">TableRule(TableRuleConfiguration, ShardingDataSourceNames, String)</a></span> - 类 的构造器org.apache.shardingsphere.core.rule.<a href="org/apache/shardingsphere/core/rule/TableRule.html" title="org.apache.shardingsphere.core.rule中的类">TableRule</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/impl/TableRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类"><span class="typeNameLink">TableRuleConfigurationYamlSwapper</span></a> - <a href="org/apache/shardingsphere/core/yaml/swapper/impl/package-summary.html">org.apache.shardingsphere.core.yaml.swapper.impl</a>中的类</dt> <dd> <div class="block">Table rule configuration YAML swapper.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/swapper/impl/TableRuleConfigurationYamlSwapper.html#TableRuleConfigurationYamlSwapper--">TableRuleConfigurationYamlSwapper()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.swapper.impl.<a href="org/apache/shardingsphere/core/yaml/swapper/impl/TableRuleConfigurationYamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper.impl中的类">TableRuleConfigurationYamlSwapper</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/keygen/TimeService.html" title="org.apache.shardingsphere.core.strategy.keygen中的类"><span class="typeNameLink">TimeService</span></a> - <a href="org/apache/shardingsphere/core/strategy/keygen/package-summary.html">org.apache.shardingsphere.core.strategy.keygen</a>中的类</dt> <dd> <div class="block">Time service.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/TimeService.html#TimeService--">TimeService()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/TimeService.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">TimeService</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/spi/algorithm/TypeBasedSPIServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm中的类"><span class="typeNameLink">TypeBasedSPIServiceLoader</span></a>&lt;<a href="org/apache/shardingsphere/core/spi/algorithm/TypeBasedSPIServiceLoader.html" title="TypeBasedSPIServiceLoader中的类型参数">T</a> extends <a href="http://shardingsphere.apache.org/sharding-core/sharding-core-api/apidocs/org/apache/shardingsphere/spi/TypeBasedSPI.html?is-external=true" title="org.apache.shardingsphere.spi中的类或接口">TypeBasedSPI</a>&gt; - <a href="org/apache/shardingsphere/core/spi/algorithm/package-summary.html">org.apache.shardingsphere.core.spi.algorithm</a>中的类</dt> <dd> <div class="block">Type based SPI service loader.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/spi/algorithm/TypeBasedSPIServiceLoader.html#TypeBasedSPIServiceLoader--">TypeBasedSPIServiceLoader()</a></span> - 类 的构造器org.apache.shardingsphere.core.spi.algorithm.<a href="org/apache/shardingsphere/core/spi/algorithm/TypeBasedSPIServiceLoader.html" title="org.apache.shardingsphere.core.spi.algorithm中的类">TypeBasedSPIServiceLoader</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:U"> <!-- --> </a> <h2 class="title">U</h2> <dl> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html#unmarshal-java.io.File-java.lang.Class-">unmarshal(File, Class&lt;T&gt;)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html" title="org.apache.shardingsphere.core.yaml.engine中的类">YamlEngine</a></dt> <dd> <div class="block">Unmarshal YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html#unmarshal-byte:A-java.lang.Class-">unmarshal(byte[], Class&lt;T&gt;)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html" title="org.apache.shardingsphere.core.yaml.engine中的类">YamlEngine</a></dt> <dd> <div class="block">Unmarshal YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html#unmarshal-java.lang.String-java.lang.Class-">unmarshal(String, Class&lt;T&gt;)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html" title="org.apache.shardingsphere.core.yaml.engine中的类">YamlEngine</a></dt> <dd> <div class="block">Unmarshal YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html#unmarshal-java.lang.String-">unmarshal(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html" title="org.apache.shardingsphere.core.yaml.engine中的类">YamlEngine</a></dt> <dd> <div class="block">Unmarshal YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html#unmarshalProperties-java.lang.String-">unmarshalProperties(String)</a></span> - 类 中的静态方法org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html" title="org.apache.shardingsphere.core.yaml.engine中的类">YamlEngine</a></dt> <dd> <div class="block">Unmarshal properties YAML.</div> </dd> <dt><a href="org/apache/shardingsphere/core/metadata/datasource/UnrecognizedDatabaseURLException.html" title="org.apache.shardingsphere.core.metadata.datasource中的类"><span class="typeNameLink">UnrecognizedDatabaseURLException</span></a> - <a href="org/apache/shardingsphere/core/metadata/datasource/package-summary.html">org.apache.shardingsphere.core.metadata.datasource</a>中的异常错误</dt> <dd> <div class="block">Unrecognized database URL exception.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/metadata/datasource/UnrecognizedDatabaseURLException.html#UnrecognizedDatabaseURLException-java.lang.String-java.lang.String-">UnrecognizedDatabaseURLException(String, String)</a></span> - 异常错误 的构造器org.apache.shardingsphere.core.metadata.datasource.<a href="org/apache/shardingsphere/core/metadata/datasource/UnrecognizedDatabaseURLException.html" title="org.apache.shardingsphere.core.metadata.datasource中的类">UnrecognizedDatabaseURLException</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/strategy/keygen/UUIDShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类"><span class="typeNameLink">UUIDShardingKeyGenerator</span></a> - <a href="org/apache/shardingsphere/core/strategy/keygen/package-summary.html">org.apache.shardingsphere.core.strategy.keygen</a>中的类</dt> <dd> <div class="block">UUID key generator.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/strategy/keygen/UUIDShardingKeyGenerator.html#UUIDShardingKeyGenerator--">UUIDShardingKeyGenerator()</a></span> - 类 的构造器org.apache.shardingsphere.core.strategy.keygen.<a href="org/apache/shardingsphere/core/strategy/keygen/UUIDShardingKeyGenerator.html" title="org.apache.shardingsphere.core.strategy.keygen中的类">UUIDShardingKeyGenerator</a></dt> <dd>&nbsp;</dd> </dl> <a name="I:V"> <!-- --> </a> <h2 class="title">V</h2> <dl> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/ConnectionMode.html#valueOf-java.lang.String-">valueOf(String)</a></span> - 枚举 中的静态方法org.apache.shardingsphere.core.constant.<a href="org/apache/shardingsphere/core/constant/ConnectionMode.html" title="org.apache.shardingsphere.core.constant中的枚举">ConnectionMode</a></dt> <dd> <div class="block">返回带有指定名称的该类型的枚举常量。</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/properties/ShardingPropertiesConstant.html#valueOf-java.lang.String-">valueOf(String)</a></span> - 枚举 中的静态方法org.apache.shardingsphere.core.constant.properties.<a href="org/apache/shardingsphere/core/constant/properties/ShardingPropertiesConstant.html" title="org.apache.shardingsphere.core.constant.properties中的枚举">ShardingPropertiesConstant</a></dt> <dd> <div class="block">返回带有指定名称的该类型的枚举常量。</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/ShardingOperator.html#valueOf-java.lang.String-">valueOf(String)</a></span> - 枚举 中的静态方法org.apache.shardingsphere.core.constant.<a href="org/apache/shardingsphere/core/constant/ShardingOperator.html" title="org.apache.shardingsphere.core.constant中的枚举">ShardingOperator</a></dt> <dd> <div class="block">返回带有指定名称的该类型的枚举常量。</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/ConnectionMode.html#values--">values()</a></span> - 枚举 中的静态方法org.apache.shardingsphere.core.constant.<a href="org/apache/shardingsphere/core/constant/ConnectionMode.html" title="org.apache.shardingsphere.core.constant中的枚举">ConnectionMode</a></dt> <dd> <div class="block">按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/properties/ShardingPropertiesConstant.html#values--">values()</a></span> - 枚举 中的静态方法org.apache.shardingsphere.core.constant.properties.<a href="org/apache/shardingsphere/core/constant/properties/ShardingPropertiesConstant.html" title="org.apache.shardingsphere.core.constant.properties中的枚举">ShardingPropertiesConstant</a></dt> <dd> <div class="block">按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/constant/ShardingOperator.html#values--">values()</a></span> - 枚举 中的静态方法org.apache.shardingsphere.core.constant.<a href="org/apache/shardingsphere/core/constant/ShardingOperator.html" title="org.apache.shardingsphere.core.constant中的枚举">ShardingOperator</a></dt> <dd> <div class="block">按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。</div> </dd> </dl> <a name="I:Y"> <!-- --> </a> <h2 class="title">Y</h2> <dl> <dt><a href="org/apache/shardingsphere/core/yaml/config/common/YamlAuthenticationConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.common中的类"><span class="typeNameLink">YamlAuthenticationConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/common/package-summary.html">org.apache.shardingsphere.core.yaml.config.common</a>中的类</dt> <dd> <div class="block">Authentication configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/common/YamlAuthenticationConfiguration.html#YamlAuthenticationConfiguration--">YamlAuthenticationConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.common.<a href="org/apache/shardingsphere/core/yaml/config/common/YamlAuthenticationConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.common中的类">YamlAuthenticationConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlBaseShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的接口"><span class="typeNameLink">YamlBaseShardingStrategyConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding.strategy</a>中的接口</dt> <dd> <div class="block">Sharding base strategy configuration for YAML.</div> </dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlComplexShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类"><span class="typeNameLink">YamlComplexShardingStrategyConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding.strategy</a>中的类</dt> <dd> <div class="block">Complex sharding strategy configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlComplexShardingStrategyConfiguration.html#YamlComplexShardingStrategyConfiguration--">YamlComplexShardingStrategyConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.strategy.<a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlComplexShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类">YamlComplexShardingStrategyConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/YamlConfiguration.html" title="org.apache.shardingsphere.core.yaml.config中的接口"><span class="typeNameLink">YamlConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/package-summary.html">org.apache.shardingsphere.core.yaml.config</a>中的接口</dt> <dd> <div class="block">YAML configuration.</div> </dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptColumnRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类"><span class="typeNameLink">YamlEncryptColumnRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/encrypt/package-summary.html">org.apache.shardingsphere.core.yaml.config.encrypt</a>中的类</dt> <dd> <div class="block">Encrypt column rule configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptColumnRuleConfiguration.html#YamlEncryptColumnRuleConfiguration--">YamlEncryptColumnRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.encrypt.<a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptColumnRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类">YamlEncryptColumnRuleConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptorRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类"><span class="typeNameLink">YamlEncryptorRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/encrypt/package-summary.html">org.apache.shardingsphere.core.yaml.config.encrypt</a>中的类</dt> <dd> <div class="block">Encryptor configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptorRuleConfiguration.html#YamlEncryptorRuleConfiguration--">YamlEncryptorRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.encrypt.<a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptorRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类">YamlEncryptorRuleConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类"><span class="typeNameLink">YamlEncryptRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/encrypt/package-summary.html">org.apache.shardingsphere.core.yaml.config.encrypt</a>中的类</dt> <dd> <div class="block">Encrypt rule configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptRuleConfiguration.html#YamlEncryptRuleConfiguration--">YamlEncryptRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.encrypt.<a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类">YamlEncryptRuleConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptTableRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类"><span class="typeNameLink">YamlEncryptTableRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/encrypt/package-summary.html">org.apache.shardingsphere.core.yaml.config.encrypt</a>中的类</dt> <dd> <div class="block">Encrypt table rule configuration.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptTableRuleConfiguration.html#YamlEncryptTableRuleConfiguration--">YamlEncryptTableRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.encrypt.<a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlEncryptTableRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类">YamlEncryptTableRuleConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html" title="org.apache.shardingsphere.core.yaml.engine中的类"><span class="typeNameLink">YamlEngine</span></a> - <a href="org/apache/shardingsphere/core/yaml/engine/package-summary.html">org.apache.shardingsphere.core.yaml.engine</a>中的类</dt> <dd> <div class="block">YAML engine.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html#YamlEngine--">YamlEngine()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.engine.<a href="org/apache/shardingsphere/core/yaml/engine/YamlEngine.html" title="org.apache.shardingsphere.core.yaml.engine中的类">YamlEngine</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlHintShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类"><span class="typeNameLink">YamlHintShardingStrategyConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding.strategy</a>中的类</dt> <dd> <div class="block">Hint sharding strategy configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlHintShardingStrategyConfiguration.html#YamlHintShardingStrategyConfiguration--">YamlHintShardingStrategyConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.strategy.<a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlHintShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类">YamlHintShardingStrategyConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlInlineShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类"><span class="typeNameLink">YamlInlineShardingStrategyConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding.strategy</a>中的类</dt> <dd> <div class="block">Inline sharding strategy configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlInlineShardingStrategyConfiguration.html#YamlInlineShardingStrategyConfiguration--">YamlInlineShardingStrategyConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.strategy.<a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlInlineShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类">YamlInlineShardingStrategyConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlKeyGeneratorConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类"><span class="typeNameLink">YamlKeyGeneratorConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding</a>中的类</dt> <dd> <div class="block">Key generator configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlKeyGeneratorConfiguration.html#YamlKeyGeneratorConfiguration--">YamlKeyGeneratorConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.<a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlKeyGeneratorConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类">YamlKeyGeneratorConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/masterslave/YamlMasterSlaveRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.masterslave中的类"><span class="typeNameLink">YamlMasterSlaveRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/masterslave/package-summary.html">org.apache.shardingsphere.core.yaml.config.masterslave</a>中的类</dt> <dd> <div class="block">Master-slave rule configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/masterslave/YamlMasterSlaveRuleConfiguration.html#YamlMasterSlaveRuleConfiguration--">YamlMasterSlaveRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.masterslave.<a href="org/apache/shardingsphere/core/yaml/config/masterslave/YamlMasterSlaveRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.masterslave中的类">YamlMasterSlaveRuleConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlNoneShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类"><span class="typeNameLink">YamlNoneShardingStrategyConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding.strategy</a>中的类</dt> <dd> <div class="block">None sharding strategy configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlNoneShardingStrategyConfiguration.html#YamlNoneShardingStrategyConfiguration--">YamlNoneShardingStrategyConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.strategy.<a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlNoneShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类">YamlNoneShardingStrategyConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/common/YamlProxyUserConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.common中的类"><span class="typeNameLink">YamlProxyUserConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/common/package-summary.html">org.apache.shardingsphere.core.yaml.config.common</a>中的类</dt> <dd> <div class="block">Proxy user for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/common/YamlProxyUserConfiguration.html#YamlProxyUserConfiguration--">YamlProxyUserConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.common.<a href="org/apache/shardingsphere/core/yaml/config/common/YamlProxyUserConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.common中的类">YamlProxyUserConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlRootEncryptRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类"><span class="typeNameLink">YamlRootEncryptRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/encrypt/package-summary.html">org.apache.shardingsphere.core.yaml.config.encrypt</a>中的类</dt> <dd> <div class="block">Root encrypt rule configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlRootEncryptRuleConfiguration.html#YamlRootEncryptRuleConfiguration--">YamlRootEncryptRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.encrypt.<a href="org/apache/shardingsphere/core/yaml/config/encrypt/YamlRootEncryptRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.encrypt中的类">YamlRootEncryptRuleConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/masterslave/YamlRootMasterSlaveConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.masterslave中的类"><span class="typeNameLink">YamlRootMasterSlaveConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/masterslave/package-summary.html">org.apache.shardingsphere.core.yaml.config.masterslave</a>中的类</dt> <dd> <div class="block">Root master-slave configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/masterslave/YamlRootMasterSlaveConfiguration.html#YamlRootMasterSlaveConfiguration--">YamlRootMasterSlaveConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.masterslave.<a href="org/apache/shardingsphere/core/yaml/config/masterslave/YamlRootMasterSlaveConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.masterslave中的类">YamlRootMasterSlaveConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/common/YamlRootRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.common中的类"><span class="typeNameLink">YamlRootRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/common/package-summary.html">org.apache.shardingsphere.core.yaml.config.common</a>中的类</dt> <dd> <div class="block">Root rule configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/common/YamlRootRuleConfiguration.html#YamlRootRuleConfiguration--">YamlRootRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.common.<a href="org/apache/shardingsphere/core/yaml/config/common/YamlRootRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.common中的类">YamlRootRuleConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlRootShardingConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类"><span class="typeNameLink">YamlRootShardingConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding</a>中的类</dt> <dd> <div class="block">Root sharding configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlRootShardingConfiguration.html#YamlRootShardingConfiguration--">YamlRootShardingConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.<a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlRootShardingConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类">YamlRootShardingConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlShardingRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类"><span class="typeNameLink">YamlShardingRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding</a>中的类</dt> <dd> <div class="block">Sharding rule configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlShardingRuleConfiguration.html#YamlShardingRuleConfiguration--">YamlShardingRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.<a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlShardingRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类">YamlShardingRuleConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类"><span class="typeNameLink">YamlShardingStrategyConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding</a>中的类</dt> <dd> <div class="block">Sharding strategy configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlShardingStrategyConfiguration.html#YamlShardingStrategyConfiguration--">YamlShardingStrategyConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.<a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类">YamlShardingStrategyConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlStandardShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类"><span class="typeNameLink">YamlStandardShardingStrategyConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding.strategy</a>中的类</dt> <dd> <div class="block">Standard strategy configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlStandardShardingStrategyConfiguration.html#YamlStandardShardingStrategyConfiguration--">YamlStandardShardingStrategyConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.strategy.<a href="org/apache/shardingsphere/core/yaml/config/sharding/strategy/YamlStandardShardingStrategyConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding.strategy中的类">YamlStandardShardingStrategyConfiguration</a></dt> <dd>&nbsp;</dd> <dt><a href="org/apache/shardingsphere/core/yaml/swapper/YamlSwapper.html" title="org.apache.shardingsphere.core.yaml.swapper中的接口"><span class="typeNameLink">YamlSwapper</span></a>&lt;<a href="org/apache/shardingsphere/core/yaml/swapper/YamlSwapper.html" title="YamlSwapper中的类型参数">Y</a> extends <a href="org/apache/shardingsphere/core/yaml/config/YamlConfiguration.html" title="org.apache.shardingsphere.core.yaml.config中的接口">YamlConfiguration</a>,<a href="org/apache/shardingsphere/core/yaml/swapper/YamlSwapper.html" title="YamlSwapper中的类型参数">T</a>&gt; - <a href="org/apache/shardingsphere/core/yaml/swapper/package-summary.html">org.apache.shardingsphere.core.yaml.swapper</a>中的接口</dt> <dd> <div class="block">YAML configuration swapper.</div> </dd> <dt><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlTableRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类"><span class="typeNameLink">YamlTableRuleConfiguration</span></a> - <a href="org/apache/shardingsphere/core/yaml/config/sharding/package-summary.html">org.apache.shardingsphere.core.yaml.config.sharding</a>中的类</dt> <dd> <div class="block">Table rule configuration for YAML.</div> </dd> <dt><span class="memberNameLink"><a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlTableRuleConfiguration.html#YamlTableRuleConfiguration--">YamlTableRuleConfiguration()</a></span> - 类 的构造器org.apache.shardingsphere.core.yaml.config.sharding.<a href="org/apache/shardingsphere/core/yaml/config/sharding/YamlTableRuleConfiguration.html" title="org.apache.shardingsphere.core.yaml.config.sharding中的类">YamlTableRuleConfiguration</a></dt> <dd>&nbsp;</dd> </dl> <a href="#I:A">A</a>&nbsp;<a href="#I:B">B</a>&nbsp;<a href="#I:C">C</a>&nbsp;<a href="#I:D">D</a>&nbsp;<a href="#I:E">E</a>&nbsp;<a href="#I:F">F</a>&nbsp;<a href="#I:G">G</a>&nbsp;<a href="#I:H">H</a>&nbsp;<a href="#I:I">I</a>&nbsp;<a href="#I:K">K</a>&nbsp;<a href="#I:L">L</a>&nbsp;<a href="#I:M">M</a>&nbsp;<a href="#I:N">N</a>&nbsp;<a href="#I:O">O</a>&nbsp;<a href="#I:P">P</a>&nbsp;<a href="#I:R">R</a>&nbsp;<a href="#I:S">S</a>&nbsp;<a href="#I:T">T</a>&nbsp;<a href="#I:U">U</a>&nbsp;<a href="#I:V">V</a>&nbsp;<a href="#I:Y">Y</a>&nbsp;</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="导航"> <li><a href="overview-summary.html">概览</a></li> <li>程序包</li> <li>类</li> <li>使用</li> <li><a href="overview-tree.html">树</a></li> <li><a href="deprecated-list.html">已过时</a></li> <li class="navBarCell1Rev">索引</li> <li><a href="help-doc.html">帮助</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>上一个</li> <li>下一个</li> </ul> <ul class="navList"> <li><a href="index.html?index-all.html" target="_top">框架</a></li> <li><a href="index-all.html" target="_top">无框架</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="allclasses-noframe.html">所有类</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> </body> </html>
122.340982
701
0.787729
dc19a392918a5bb8323c1731b74ddda118565632
991
py
Python
src/tt_properties/tt_properties/handlers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/tt_properties/tt_properties/handlers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/tt_properties/tt_properties/handlers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
from tt_web import handlers from tt_protocol.protocol import properties_pb2 from . import protobuf from . import operations @handlers.api(properties_pb2.SetPropertiesRequest) async def set_properties(message, config, **kwargs): await operations.set_properties([protobuf.to_property(property) for property in message.properties]) return properties_pb2.SetPropertiesResponse() @handlers.api(properties_pb2.GetPropertiesRequest) async def get_properties(message, **kwargs): properties = await operations.get_properties({object_data.object_id: list(object_data.types) for object_data in message.objects}) return properties_pb2.GetPropertiesResponse(properties=[protobuf.from_property(property) for property in properties]) @handlers.api(properties_pb2.DebugClearServiceRequest) async def debug_clear_service(message, **kwargs): await operations.clean_database() return properties_pb2.DebugClearServiceResponse()
36.703704
121
0.78002
2f38af8e65c1afcdd060e5cead1da6b961f5f181
535
php
PHP
app/Models/Invitation.php
jobara/platform
ff88bcb4d5e077c269310414e0c8108f571e69c6
[ "BSD-3-Clause" ]
2
2021-01-11T16:20:15.000Z
2021-02-03T14:36:22.000Z
app/Models/Invitation.php
jobara/platform
ff88bcb4d5e077c269310414e0c8108f571e69c6
[ "BSD-3-Clause" ]
108
2021-01-11T19:02:59.000Z
2021-10-15T19:33:25.000Z
app/Models/Invitation.php
jobara/platform
ff88bcb4d5e077c269310414e0c8108f571e69c6
[ "BSD-3-Clause" ]
3
2021-07-08T16:59:32.000Z
2021-08-11T15:45:30.000Z
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\MorphTo; class Invitation extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'email', 'role', ]; /** * Get the parent inviteable model. */ public function inviteable(): MorphTo { return $this->morphTo(); } }
17.258065
54
0.618692
70a8e04569c7fb60b3f60d3d08b0fdfba868438e
2,329
h
C
osprey/libu/ffio/gfio.h
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/libu/ffio/gfio.h
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/libu/ffio/gfio.h
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope that it would be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Further, this software is distributed without any warranty that it is free of the rightful claim of any third person regarding infringement or the like. Any license provided herein, whether implied or otherwise, applies only to this software file. Patent licenses, if any, provided herein do not apply to combinations of this program with other software, or any other product whatsoever. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, Mountain View, CA 94043, or: http://www.sgi.com For further information regarding this notice, see: http://oss.sgi.com/projects/GenInfo/NoticeExplan */ /* USMID @(#) libu/ffio/gfio.h 92.0 10/08/98 14:57:41 */ #ifndef _GFIO_H #define _GFIO_H /* CLASS_F */ #define TR_IBM_F 1 /* IBM F format */ #define TR_IBM_FB 2 /* IBM FB format */ #define TR_VMS_F_DSK 3 /* VMS F.DISK format */ #define TR_VMS_F_TP 4 /* VMS F.TAPE format */ #define TR_VMS_F_TR 5 /* VMS F.TR (transparent) format */ #define NUM_F_TYPES 6 struct gen_ff /* generic F format */ { int padd; /* is padding required? */ /* padding is accepted on input. It is */ /* not produced on output */ char pchar; /* padd character */ }; /* * Define a structure that is to be filled with limits and defaults * for record lengths and block sizes. * The data associated with this structure is in fxrmisc.c */ struct f_rec_limit_s { int min_rsz; /* minimum record size */ int max_rsz; /* maximum record size */ int def_rsz; /* default record size */ int min_mbs; /* minimum block size */ int max_mbs; /* maximum block size */ int def_mbs; /* default block size */ }; #endif
31.90411
74
0.720052
2f7324945e7f8dcd20c0451e7aca8a73394f6943
3,538
php
PHP
src/Controller/BaseController.php
romainjudic/symfony-api-skeleton
a3c0b1597a26eab56ab006a0a013fe3c8f53315c
[ "MIT" ]
null
null
null
src/Controller/BaseController.php
romainjudic/symfony-api-skeleton
a3c0b1597a26eab56ab006a0a013fe3c8f53315c
[ "MIT" ]
2
2021-11-05T15:31:52.000Z
2021-11-18T09:57:12.000Z
src/Controller/BaseController.php
romainjudic/symfony-api-skeleton
a3c0b1597a26eab56ab006a0a013fe3c8f53315c
[ "MIT" ]
null
null
null
<?php namespace App\Controller; use App\Entity\User; use App\Exception\ApiException; use App\Exception\FormValidationException; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; /** * Parent controller for all API controllers. * Provides utility methods for API purposes. * * All other controllers must inherit this class. */ abstract class BaseController extends AbstractController { const IN_QUERY = 'query'; /** @var Request */ protected $request; /** * Setter injection. Automatically called when instanciated. * * @required * @param RequestStack */ public function setBaseDependencies(RequestStack $requestStack): void { $this->request = $requestStack->getCurrentRequest(); } /** * Return the current request's body. * * @return array|null An array or NULL if no body is specified */ protected function getRequestData(): ?array { return json_decode($this->request->getContent(), true); } /** * Create and return an JSON response for the given data. * * @param mixed $data Data to send in the JSON response * @param int $status HTTP status code for the response * @param array $serializationContext Optional serialization context to controle the serialization process * @return Response */ protected function createApiResponse($data, $status = 200, $serializationContext = []): Response { if (!empty($data) || is_array($data)) { return $this->json($data, $status, [], $serializationContext); } return new Response('', $status); } /** * Return the authenticatd user with the correct type. * * @return User */ protected function getAppUser(): User { $user = $this->getUser(); if (!($user instanceof User)) { $userClass = User::class; throw new \LogicException("Cannot access a user of type $userClass outside of the main firewal."); } return $user; } /** * Submit the request body to a Symfony form and handle validation. * * @param FormInterface $form The form to use * @param bool|null $clearMissing Indicate whether the missing fields should be clear from the object (NULL) - * Defaults to true for all HTTP verbs but PATCH * @param array|null $preExistingData Optional data that should be used instead of the request body */ protected function processForm(FormInterface $form, ?bool $clearMissing = null, ?array $preExistingData = null): void { $data = $preExistingData; if (null === $data) { $data = $this->getRequestData(); } if (null === $data) { throw new ApiException(Response::HTTP_BAD_REQUEST, ApiException::TYPE_INVALID_REQUEST_FORMAT); } // Clear missing fields (NULL), unless the HTTP verb is PATCH // This behavior can be overriden by spending a $clearMissing manually $actuallyClearMissing = null !== $clearMissing ? $clearMissing : ($this->request->getMethod() != 'PATCH'); $form->submit($data, $actuallyClearMissing); if (!$form->isValid()) { throw new FormValidationException($form); } } }
32.759259
121
0.641323
fec4676eb07ac8a9636cd41ebb42aac66e2981e2
5,171
html
HTML
docs/checks/WatchFaceForAndroidX.md.html
obask/android-custom-lint-rules
fcb25627e9a46513a329fc8cf04b2c2b57d9341d
[ "Apache-2.0" ]
null
null
null
docs/checks/WatchFaceForAndroidX.md.html
obask/android-custom-lint-rules
fcb25627e9a46513a329fc8cf04b2c2b57d9341d
[ "Apache-2.0" ]
null
null
null
docs/checks/WatchFaceForAndroidX.md.html
obask/android-custom-lint-rules
fcb25627e9a46513a329fc8cf04b2c2b57d9341d
[ "Apache-2.0" ]
null
null
null
<meta charset="utf-8"> (#) AndroidX watch faces must use action `WATCH_FACE_EDITOR` !!! WARNING: AndroidX watch faces must use action `WATCH_FACE_EDITOR` This is a warning. Id : `WatchFaceForAndroidX` Summary : AndroidX watch faces must use action `WATCH_FACE_EDITOR` Severity : Warning Category : Correctness Platform : Android Vendor : Android Open Source Project Feedback : https://issuetracker.google.com/issues/new?component=192708 Affects : Manifest files Editing : This check runs on the fly in the IDE editor See : https://developer.android.com/training/wearables/watch-faces/configuration Implementation : [Source Code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/WatchFaceForAndroidXDetector.kt) Tests : [Source Code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/WatchFaceForAndroidXDetectorTest.kt) Copyright Year : 2021 If the package depends on `androidx.wear:wear-watchface`, and an AndroidX watch face declares the `wearableConfigurationAction` metadata, its value should be `androidx.wear.watchface.editor.action.WATCH_FACE_EDITOR`. !!! Tip This lint check has an associated quickfix available in the IDE. (##) Example Here is an example of lint warnings produced by this check: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text src/main/AndroidManifest.xml:6:Warning: Watch face configuration action must be set to WATCH_FACE_EDITOR for an AndroidX watch face [WatchFaceForAndroidX] android:value="androidx.wear.watchface.editor.action.SOME_OTHER_EDITOR" ------------------------------------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here are the relevant source files: `build.gradle`: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~groovy linenumbers apply plugin: 'com.android.application' dependencies { implementation "androidx.wear.watchface:watchface:1.2.3" } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `src/main/AndroidManifest.xml`: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~xml linenumbers &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="androidx.wear.watchface.samples.minimal.complications"&gt; &lt;meta-data android:name="com.google.android.wearable.watchface.wearableConfigurationAction" android:value="androidx.wear.watchface.editor.action.SOME_OTHER_EDITOR" /&gt; &lt;/manifest&gt; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can also visit the [source code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/WatchFaceForAndroidXDetectorTest.kt) for the unit tests for this check to see additional scenarios. (##) Suppressing You can suppress false positives using one of the following mechanisms: * Adding the suppression attribute `tools:ignore="WatchFaceForAndroidX"` on the problematic XML element (or one of its enclosing elements). You may also need to add the following namespace declaration on the root element in the XML file if it's not already there: `xmlns:tools="http://schemas.android.com/tools"`. ```xml &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;manifest xmlns:tools="http://schemas.android.com/tools"&gt; ... &lt;meta-data tools:ignore="WatchFaceForAndroidX" .../&gt; ... &lt;/manifest&gt; ``` * Using a special `lint.xml` file in the source tree which turns off the check in that folder and any sub folder. A simple file might look like this: ```xml &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;lint&gt; &lt;issue id="WatchFaceForAndroidX" severity="ignore" /&gt; &lt;/lint&gt; ``` Instead of `ignore` you can also change the severity here, for example from `error` to `warning`. You can find additional documentation on how to filter issues by path, regular expression and so on [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). * In Gradle projects, using the DSL syntax to configure lint. For example, you can use something like ```gradle lintOptions { disable 'WatchFaceForAndroidX' } ``` In Android projects this should be nested inside an `android { }` block. * For manual invocations of `lint`, using the `--ignore` flag: ``` $ lint --ignore WatchFaceForAndroidX ...` ``` * Last, but not least, using baselines, as discussed [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). <!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js" charset="utf-8"></script><script src="https://morgan3d.github.io/markdeep/latest/markdeep.min.js" charset="utf-8"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>
38.022059
356
0.684007
bb19c4875fed6012433087b1d60b31fc2bf5954f
66
html
HTML
templates/receive-form-data.html
topherPedersen/Basic-Networking-HTTP-POST-in-Python-with-Flask
07f77ec5395fbd2fbe659f280a13d2ebc064f7a2
[ "Unlicense" ]
1
2019-07-04T00:54:59.000Z
2019-07-04T00:54:59.000Z
templates/receive-form-data.html
topherPedersen/Basic-Networking-HTTP-POST-in-Python-with-Flask
07f77ec5395fbd2fbe659f280a13d2ebc064f7a2
[ "Unlicense" ]
null
null
null
templates/receive-form-data.html
topherPedersen/Basic-Networking-HTTP-POST-in-Python-with-Flask
07f77ec5395fbd2fbe659f280a13d2ebc064f7a2
[ "Unlicense" ]
null
null
null
<p>Foo: {{ foo }}</p> <p>Bar: {{ bar }}</p> <p>Baz: {{ baz }}</p>
16.5
21
0.363636
7fd744b5a7209650ae0d726d6f227c63e221adc4
1,418
swift
Swift
CodeHistory/CodeHistory/Views/QuestionView.swift
raden-dimas012/LearningSwift
ee180f5357abe88237f1ba58b7b40dbcb54a121c
[ "MIT" ]
2
2022-03-17T03:52:13.000Z
2022-03-17T05:14:47.000Z
CodeHistory/CodeHistory/Views/QuestionView.swift
raden-dimas012/LearningSwift
ee180f5357abe88237f1ba58b7b40dbcb54a121c
[ "MIT" ]
1
2022-03-20T15:26:51.000Z
2022-03-20T15:26:51.000Z
CodeHistory/CodeHistory/Views/QuestionView.swift
raden-dimas012/LearningSwift
ee180f5357abe88237f1ba58b7b40dbcb54a121c
[ "MIT" ]
null
null
null
// // QuestionView.swift // CodeHistory // // Created by Raden Dimas on 17/03/22. // import SwiftUI struct QuestionView: View { @EnvironmentObject var viewModel: GameViewModel let question: Question var body: some View { VStack { Text(question.questionText) .font(.largeTitle) .bold() .multilineTextAlignment(.leading) Spacer() HStack { ForEach(0..<question.possibleAnswers.count) { index in Button { viewModel.makeGuess(atIndex: index) print("Tapped on option with the text: \(question.possibleAnswers[index])") } label: { ChoiceTextView(choiceText: question.possibleAnswers[index]) .background(viewModel.color(forOptionIndex: index)) } .disabled(viewModel.guessWasMade) } } if viewModel.guessWasMade { Button(action: { viewModel.displayNextScreen() }) { BottomTextView(str: "Next") } } } } } struct QuestionView_Previews: PreviewProvider { static var previews: some View { QuestionView(question: Game().currentQuestion) .environmentObject(GameViewModel()) } }
28.938776
99
0.521157
176046e06001e298b2d489dc6aeba9b60668e299
3,063
html
HTML
docs/help/gen_html/m3tohtml/src/FSUtils.m3.html
jaykrell/cm3
2aae7d9342b8e26680f6419f9296450fae8cbd4b
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
105
2015-03-02T16:58:34.000Z
2022-03-28T07:17:49.000Z
docs/help/gen_html/m3tohtml/src/FSUtils.m3.html
jaykrell/cm3
2aae7d9342b8e26680f6419f9296450fae8cbd4b
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
145
2015-03-18T10:08:17.000Z
2022-03-31T01:27:08.000Z
docs/help/gen_html/m3tohtml/src/FSUtils.m3.html
jaykrell/cm3
2aae7d9342b8e26680f6419f9296450fae8cbd4b
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
26
2015-10-10T09:37:44.000Z
2022-02-23T02:02:05.000Z
<HTML> <HEAD> <TITLE>Critical Mass Modula-3: m3tohtml/src/FSUtils.m3</TITLE> </HEAD> <BODY bgcolor="#eeeeee"> <A NAME="0TOP0"> <H2>m3tohtml/src/FSUtils.m3</H2></A><HR> <inModule> <PRE></PRE>-------------------------------------------------------------------------- <PRE>MODULE <module><implements><A HREF="FSUtils.i3.html">FSUtils</A></implements></module>; IMPORT <A HREF="../../libm3/src/os/Common/Pathname.i3.html">Pathname</A>, <A HREF="../../libm3/src/os/Common/File.i3.html">File</A>, <A HREF="../../libm3/src/os/Common/FS.i3.html">FS</A>, <A HREF="../../libm3/src/os/Common/RegularFile.i3.html">RegularFile</A>, <A HREF="../../libm3/src/os/Common/OSError.i3.html">OSError</A>, <A HREF="../../libm3/src/os/Common/Process.i3.html">Process</A>; </PRE>-------------------------------------------------------------------------- <PRE>PROCEDURE <A NAME="Exists"><procedure>Exists</procedure></A>(fn : Pathname.T) : BOOLEAN = VAR s : File.Status; BEGIN TRY s := FS.Status(fn); EXCEPT ELSE RETURN FALSE; END; RETURN TRUE; END Exists; </PRE>-------------------------------------------------------------------------- <PRE>PROCEDURE <A NAME="IsDir"><procedure>IsDir</procedure></A>(fn : Pathname.T) : BOOLEAN = VAR s : File.Status; BEGIN TRY s := FS.Status(fn); EXCEPT ELSE RETURN FALSE; END; RETURN s.type = FS.DirectoryFileType; END IsDir; </PRE>-------------------------------------------------------------------------- <PRE>PROCEDURE <A NAME="IsFile"><procedure>IsFile</procedure></A>(fn : Pathname.T) : BOOLEAN = VAR s : File.Status; BEGIN TRY s := FS.Status(fn); EXCEPT ELSE RETURN FALSE; END; RETURN s.type = RegularFile.FileType; END IsFile; </PRE>-------------------------------------------------------------------------- <PRE>PROCEDURE <A NAME="MakeDir"><procedure>MakeDir</procedure></A>(path : Pathname.T) = VAR arcs : Pathname.Arcs; iarcs : Pathname.Arcs; ipath : Pathname.T; BEGIN TRY arcs := Pathname.Decompose(path); iarcs := NEW(Pathname.Arcs).init(arcs.size()); EXCEPT Pathname.Invalid =&gt; Process.Crash(&quot;internal error: invalid pathname&quot;); END; FOR i := 0 TO arcs.size() - 1 DO iarcs.addhi(arcs.get(i)); TRY ipath := Pathname.Compose(iarcs); EXCEPT Pathname.Invalid =&gt; Process.Crash(&quot;internal error: invalid pathname&quot;); END; IF arcs.get(i) # NIL THEN IF NOT IsDir(ipath) THEN IF Exists(ipath) THEN Process.Crash(&quot;cannot create directory, file exists &quot; &amp; ipath); END; TRY FS.CreateDirectory(ipath); EXCEPT OSError.E =&gt; Process.Crash(&quot;cannot create directory &quot; &amp; ipath); END; END; END; END; END MakeDir; </PRE>-------------------------------------------------------------------------- <PRE>BEGIN END FSUtils. </PRE> </inModule> <PRE> </PRE> </BODY> </HTML>
27.348214
390
0.517793
e50bdb24c9c7aeed4db4c208e2951cde079c0023
24,876
html
HTML
doc/index-files/index-7.html
anandkr123/game-roborally-client
ea8546b854407e1cbce771befcc851bf7d923b0b
[ "MIT" ]
null
null
null
doc/index-files/index-7.html
anandkr123/game-roborally-client
ea8546b854407e1cbce771befcc851bf7d923b0b
[ "MIT" ]
null
null
null
doc/index-files/index-7.html
anandkr123/game-roborally-client
ea8546b854407e1cbce771befcc851bf7d923b0b
[ "MIT" ]
null
null
null
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_131) on Mon Jun 26 02:53:36 IST 2017 --> <title>G-Index</title> <meta name="date" content="2017-06-26"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <script type="text/javascript" src="../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="G-Index"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li><a href="../overview-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="index-6.html">Prev Letter</a></li> <li><a href="index-8.html">Next Letter</a></li> </ul> <ul class="navList"> <li><a href="../index.html?index-files/index-7.html" target="_top">Frames</a></li> <li><a href="index-7.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="contentContainer"><a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">C</a>&nbsp;<a href="index-4.html">D</a>&nbsp;<a href="index-5.html">E</a>&nbsp;<a href="index-6.html">F</a>&nbsp;<a href="index-7.html">G</a>&nbsp;<a href="index-8.html">I</a>&nbsp;<a href="index-9.html">J</a>&nbsp;<a href="index-10.html">L</a>&nbsp;<a href="index-11.html">M</a>&nbsp;<a href="index-12.html">N</a>&nbsp;<a href="index-13.html">P</a>&nbsp;<a href="index-14.html">R</a>&nbsp;<a href="index-15.html">S</a>&nbsp;<a href="index-16.html">T</a>&nbsp;<a href="index-17.html">U</a>&nbsp;<a href="index-18.html">V</a>&nbsp;<a href="index-19.html">W</a>&nbsp;<a name="I:G"> <!-- --> </a> <h2 class="title">G</h2> <dl> <dt><a href="../game/package-summary.html">game</a> - package game</dt> <dd>&nbsp;</dd> <dt><a href="../game/entity/Game.html" title="class in game.entity"><span class="typeNameLink">Game</span></a> - Class in <a href="../game/entity/package-summary.html">game.entity</a></dt> <dd> <div class="block">Holds the game details</div> </dd> <dt><span class="memberNameLink"><a href="../game/entity/Game.html#Game--">Game()</a></span> - Constructor for class game.entity.<a href="../game/entity/Game.html" title="class in game.entity">Game</a></dt> <dd>&nbsp;</dd> <dt><a href="../game/controller/package-summary.html">game.controller</a> - package game.controller</dt> <dd>&nbsp;</dd> <dt><a href="../game/entity/package-summary.html">game.entity</a> - package game.entity</dt> <dd>&nbsp;</dd> <dt><a href="../game/exception/package-summary.html">game.exception</a> - package game.exception</dt> <dd>&nbsp;</dd> <dt><a href="../game/controller/GameInputController.html" title="class in game.controller"><span class="typeNameLink">GameInputController</span></a> - Class in <a href="../game/controller/package-summary.html">game.controller</a></dt> <dd> <div class="block">Game input controller</div> </dd> <dt><span class="memberNameLink"><a href="../game/controller/GameInputController.html#GameInputController--">GameInputController()</a></span> - Constructor for class game.controller.<a href="../game/controller/GameInputController.html" title="class in game.controller">GameInputController</a></dt> <dd>&nbsp;</dd> <dt><a href="../game/controller/GameInputControllerTest.html" title="class in game.controller"><span class="typeNameLink">GameInputControllerTest</span></a> - Class in <a href="../game/controller/package-summary.html">game.controller</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/controller/GameInputControllerTest.html#GameInputControllerTest--">GameInputControllerTest()</a></span> - Constructor for class game.controller.<a href="../game/controller/GameInputControllerTest.html" title="class in game.controller">GameInputControllerTest</a></dt> <dd>&nbsp;</dd> <dt><a href="../game/entity/GameJoinInputWrapper.html" title="class in game.entity"><span class="typeNameLink">GameJoinInputWrapper</span></a> - Class in <a href="../game/entity/package-summary.html">game.entity</a></dt> <dd> <div class="block">Wrapper model for game join service</div> </dd> <dt><span class="memberNameLink"><a href="../game/entity/GameJoinInputWrapper.html#GameJoinInputWrapper--">GameJoinInputWrapper()</a></span> - Constructor for class game.entity.<a href="../game/entity/GameJoinInputWrapper.html" title="class in game.entity">GameJoinInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/GameJoinInputWrapper.html#GameJoinInputWrapper-java.lang.String-java.lang.String-">GameJoinInputWrapper(String, String)</a></span> - Constructor for class game.entity.<a href="../game/entity/GameJoinInputWrapper.html" title="class in game.entity">GameJoinInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><a href="../game/controller/GameMockServer.html" title="class in game.controller"><span class="typeNameLink">GameMockServer</span></a> - Class in <a href="../game/controller/package-summary.html">game.controller</a></dt> <dd> <div class="block">Mock Server</div> </dd> <dt><span class="memberNameLink"><a href="../game/controller/GameMockServer.html#GameMockServer--">GameMockServer()</a></span> - Constructor for class game.controller.<a href="../game/controller/GameMockServer.html" title="class in game.controller">GameMockServer</a></dt> <dd>&nbsp;</dd> <dt><a href="../game/controller/GameOutputController.html" title="class in game.controller"><span class="typeNameLink">GameOutputController</span></a> - Class in <a href="../game/controller/package-summary.html">game.controller</a></dt> <dd> <div class="block">Game output controller</div> </dd> <dt><span class="memberNameLink"><a href="../game/controller/GameOutputController.html#GameOutputController--">GameOutputController()</a></span> - Constructor for class game.controller.<a href="../game/controller/GameOutputController.html" title="class in game.controller">GameOutputController</a></dt> <dd>&nbsp;</dd> <dt><a href="../game/controller/GameOutputControllerTest.html" title="class in game.controller"><span class="typeNameLink">GameOutputControllerTest</span></a> - Class in <a href="../game/controller/package-summary.html">game.controller</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/controller/GameOutputControllerTest.html#GameOutputControllerTest--">GameOutputControllerTest()</a></span> - Constructor for class game.controller.<a href="../game/controller/GameOutputControllerTest.html" title="class in game.controller">GameOutputControllerTest</a></dt> <dd>&nbsp;</dd> <dt><a href="../game/entity/GameViewOutputWrapper.html" title="class in game.entity"><span class="typeNameLink">GameViewOutputWrapper</span></a> - Class in <a href="../game/entity/package-summary.html">game.entity</a></dt> <dd> <div class="block">Hold the details of the created game</div> </dd> <dt><span class="memberNameLink"><a href="../game/entity/GameViewOutputWrapper.html#GameViewOutputWrapper--">GameViewOutputWrapper()</a></span> - Constructor for class game.entity.<a href="../game/entity/GameViewOutputWrapper.html" title="class in game.entity">GameViewOutputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/GameViewOutputWrapper.html#GameViewOutputWrapper-java.lang.String-java.lang.String-int-int-">GameViewOutputWrapper(String, String, int, int)</a></span> - Constructor for class game.entity.<a href="../game/entity/GameViewOutputWrapper.html" title="class in game.entity">GameViewOutputWrapper</a></dt> <dd> <div class="block">Constructor</div> </dd> <dt><span class="memberNameLink"><a href="../game/entity/RobotActionDetail.html#getAction--">getAction()</a></span> - Method in class game.entity.<a href="../game/entity/RobotActionDetail.html" title="class in game.entity">RobotActionDetail</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getActions0--">getActions0()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getActions1--">getActions1()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getActions2--">getActions2()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getActions3--">getActions3()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getActions4--">getActions4()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/BoardLayout.html#getAvailableRobots--">getAvailableRobots()</a></span> - Method in class game.entity.<a href="../game/entity/BoardLayout.html" title="class in game.entity">BoardLayout</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/BoardLayout.html#getAvailableStartingPositions--">getAvailableStartingPositions()</a></span> - Method in class game.entity.<a href="../game/entity/BoardLayout.html" title="class in game.entity">BoardLayout</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/BoardLayout.html#getBoard--">getBoard()</a></span> - Method in class game.entity.<a href="../game/entity/BoardLayout.html" title="class in game.entity">BoardLayout</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/GameJoinInputWrapper.html#getClientRestBaseUrl--">getClientRestBaseUrl()</a></span> - Method in class game.entity.<a href="../game/entity/GameJoinInputWrapper.html" title="class in game.entity">GameJoinInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/GameViewOutputWrapper.html#getCurrentRobotCount--">getCurrentRobotCount()</a></span> - Method in class game.entity.<a href="../game/entity/GameViewOutputWrapper.html" title="class in game.entity">GameViewOutputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RobotActionDetail.html#getDamageCards--">getDamageCards()</a></span> - Method in class game.entity.<a href="../game/entity/RobotActionDetail.html" title="class in game.entity">RobotActionDetail</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/PlayerPositions.html#getDirection--">getDirection()</a></span> - Method in class game.entity.<a href="../game/entity/PlayerPositions.html" title="class in game.entity">PlayerPositions</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Player.html#getDrawPile--">getDrawPile()</a></span> - Method in class game.entity.<a href="../game/entity/Player.html" title="class in game.entity">Player</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Fields.html#getField--">getField()</a></span> - Method in class game.entity.<a href="../game/entity/Fields.html" title="class in game.entity">Fields</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Board.html#getFields--">getFields()</a></span> - Method in class game.entity.<a href="../game/entity/Board.html" title="class in game.entity">Board</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/controller/GameOutputController.html#getGameList--">getGameList()</a></span> - Method in class game.controller.<a href="../game/controller/GameOutputController.html" title="class in game.controller">GameOutputController</a></dt> <dd> <div class="block">This method is used to get the list available games from the server</div> </dd> <dt><span class="memberNameLink"><a href="../game/controller/GameOutputControllerTest.html#getGameList--">getGameList()</a></span> - Method in class game.controller.<a href="../game/controller/GameOutputControllerTest.html" title="class in game.controller">GameOutputControllerTest</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Wrapper.html#getGames--">getGames()</a></span> - Method in class game.entity.<a href="../game/entity/Wrapper.html" title="class in game.entity">Wrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Size.html#getHeight--">getHeight()</a></span> - Method in class game.entity.<a href="../game/entity/Size.html" title="class in game.entity">Size</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/GameViewOutputWrapper.html#getId--">getId()</a></span> - Method in class game.entity.<a href="../game/entity/GameViewOutputWrapper.html" title="class in game.entity">GameViewOutputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Game.html#getMaxRobotCount--">getMaxRobotCount()</a></span> - Method in class game.entity.<a href="../game/entity/Game.html" title="class in game.entity">Game</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/GameViewOutputWrapper.html#getMaxRobotCount--">getMaxRobotCount()</a></span> - Method in class game.entity.<a href="../game/entity/GameViewOutputWrapper.html" title="class in game.entity">GameViewOutputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Game.html#getName--">getName()</a></span> - Method in class game.entity.<a href="../game/entity/Game.html" title="class in game.entity">Game</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/GameViewOutputWrapper.html#getName--">getName()</a></span> - Method in class game.entity.<a href="../game/entity/GameViewOutputWrapper.html" title="class in game.entity">GameViewOutputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/PlayerPositions.html#getPlayerId--">getPlayerId()</a></span> - Method in class game.entity.<a href="../game/entity/PlayerPositions.html" title="class in game.entity">PlayerPositions</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RobotActionDetail.html#getPlayerId--">getPlayerId()</a></span> - Method in class game.entity.<a href="../game/entity/RobotActionDetail.html" title="class in game.entity">RobotActionDetail</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/GameJoinInputWrapper.html#getPlayerName--">getPlayerName()</a></span> - Method in class game.entity.<a href="../game/entity/GameJoinInputWrapper.html" title="class in game.entity">GameJoinInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/PlayerPositions.html#getPlayerName--">getPlayerName()</a></span> - Method in class game.entity.<a href="../game/entity/PlayerPositions.html" title="class in game.entity">PlayerPositions</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Player.html#getPlayerPositions--">getPlayerPositions()</a></span> - Method in class game.entity.<a href="../game/entity/Player.html" title="class in game.entity">Player</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/PlayerPositions.html#getPosition--">getPosition()</a></span> - Method in class game.entity.<a href="../game/entity/PlayerPositions.html" title="class in game.entity">PlayerPositions</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RobotPositionClientRespond.html#getPosition--">getPosition()</a></span> - Method in class game.entity.<a href="../game/entity/RobotPositionClientRespond.html" title="class in game.entity">RobotPositionClientRespond</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getPositions0--">getPositions0()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getPositions1--">getPositions1()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getPositions2--">getPositions2()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getPositions3--">getPositions3()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RoundActionInputWrapper.html#getPositions4--">getPositions4()</a></span> - Method in class game.entity.<a href="../game/entity/RoundActionInputWrapper.html" title="class in game.entity">RoundActionInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/TimeLimitWarning.html#getReason--">getReason()</a></span> - Method in class game.entity.<a href="../game/entity/TimeLimitWarning.html" title="class in game.entity">TimeLimitWarning</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/SendRegisterInputWrapper.html#getRegisters--">getRegisters()</a></span> - Method in class game.entity.<a href="../game/entity/SendRegisterInputWrapper.html" title="class in game.entity">SendRegisterInputWrapper</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/PlayerPositions.html#getRobot--">getRobot()</a></span> - Method in class game.entity.<a href="../game/entity/PlayerPositions.html" title="class in game.entity">PlayerPositions</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/RobotPositionClientRespond.html#getRobot--">getRobot()</a></span> - Method in class game.entity.<a href="../game/entity/RobotPositionClientRespond.html" title="class in game.entity">RobotPositionClientRespond</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/TimeLimitWarning.html#getSecondsLeft--">getSecondsLeft()</a></span> - Method in class game.entity.<a href="../game/entity/TimeLimitWarning.html" title="class in game.entity">TimeLimitWarning</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/controller/SecretContainer.html#getSecreValue--">getSecreValue()</a></span> - Method in class game.controller.<a href="../game/controller/SecretContainer.html" title="class in game.controller">SecretContainer</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Board.html#getSize--">getSize()</a></span> - Method in class game.entity.<a href="../game/entity/Board.html" title="class in game.entity">Board</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Size.html#getWidth--">getWidth()</a></span> - Method in class game.entity.<a href="../game/entity/Size.html" title="class in game.entity">Size</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/AvailableStartingPositions.html#getX--">getX()</a></span> - Method in class game.entity.<a href="../game/entity/AvailableStartingPositions.html" title="class in game.entity">AvailableStartingPositions</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Fields.html#getX--">getX()</a></span> - Method in class game.entity.<a href="../game/entity/Fields.html" title="class in game.entity">Fields</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Position.html#getX--">getX()</a></span> - Method in class game.entity.<a href="../game/entity/Position.html" title="class in game.entity">Position</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/AvailableStartingPositions.html#getY--">getY()</a></span> - Method in class game.entity.<a href="../game/entity/AvailableStartingPositions.html" title="class in game.entity">AvailableStartingPositions</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Fields.html#getY--">getY()</a></span> - Method in class game.entity.<a href="../game/entity/Fields.html" title="class in game.entity">Fields</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/entity/Position.html#getY--">getY()</a></span> - Method in class game.entity.<a href="../game/entity/Position.html" title="class in game.entity">Position</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../game/controller/GameMockServer.html#greeting--">greeting()</a></span> - Method in class game.controller.<a href="../game/controller/GameMockServer.html" title="class in game.controller">GameMockServer</a></dt> <dd> <div class="block">This method returns mock response for get gamelist service</div> </dd> </dl> <a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">C</a>&nbsp;<a href="index-4.html">D</a>&nbsp;<a href="index-5.html">E</a>&nbsp;<a href="index-6.html">F</a>&nbsp;<a href="index-7.html">G</a>&nbsp;<a href="index-8.html">I</a>&nbsp;<a href="index-9.html">J</a>&nbsp;<a href="index-10.html">L</a>&nbsp;<a href="index-11.html">M</a>&nbsp;<a href="index-12.html">N</a>&nbsp;<a href="index-13.html">P</a>&nbsp;<a href="index-14.html">R</a>&nbsp;<a href="index-15.html">S</a>&nbsp;<a href="index-16.html">T</a>&nbsp;<a href="index-17.html">U</a>&nbsp;<a href="index-18.html">V</a>&nbsp;<a href="index-19.html">W</a>&nbsp;</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li><a href="../overview-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="index-6.html">Prev Letter</a></li> <li><a href="index-8.html">Next Letter</a></li> </ul> <ul class="navList"> <li><a href="../index.html?index-files/index-7.html" target="_top">Frames</a></li> <li><a href="index-7.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
85.191781
700
0.708916
753b2c341592ad43505fc26f8bcbddaf43c56379
1,746
h
C
cmake_targets/lte_build_oai/build/CMakeFiles/RRC_Rel14/LTE_RRCConnectionRelease-NB-v1430-IEs.h
LaughingBlue/openairinterface5g
2195e8e4cf6c8c5e059b0e982620480225bfa17a
[ "Apache-2.0" ]
1
2021-03-08T07:58:23.000Z
2021-03-08T07:58:23.000Z
cmake_targets/lte_build_oai/build/CMakeFiles/RRC_Rel14/LTE_RRCConnectionRelease-NB-v1430-IEs.h
LaughingBlue/openairinterface5g
2195e8e4cf6c8c5e059b0e982620480225bfa17a
[ "Apache-2.0" ]
null
null
null
cmake_targets/lte_build_oai/build/CMakeFiles/RRC_Rel14/LTE_RRCConnectionRelease-NB-v1430-IEs.h
LaughingBlue/openairinterface5g
2195e8e4cf6c8c5e059b0e982620480225bfa17a
[ "Apache-2.0" ]
4
2019-06-06T16:35:41.000Z
2021-05-30T08:01:04.000Z
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NBIOT-RRC-Definitions" * found in "/home/labuser/Desktop/openairinterface5g_f1ap/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/labuser/Desktop/openairinterface5g_f1ap/cmake_targets/lte_build_oai/build/CMakeFiles/RRC_Rel14` */ #ifndef _LTE_RRCConnectionRelease_NB_v1430_IEs_H_ #define _LTE_RRCConnectionRelease_NB_v1430_IEs_H_ #include <asn_application.h> /* Including external dependencies */ #include <NativeInteger.h> #include <constr_SEQUENCE.h> #ifdef __cplusplus extern "C" { #endif /* Forward declarations */ struct LTE_RedirectedCarrierInfo_NB_v1430; /* LTE_RRCConnectionRelease-NB-v1430-IEs */ typedef struct LTE_RRCConnectionRelease_NB_v1430_IEs { struct LTE_RedirectedCarrierInfo_NB_v1430 *redirectedCarrierInfo_v1430; /* OPTIONAL */ long *extendedWaitTime_CPdata_r14; /* OPTIONAL */ struct LTE_RRCConnectionRelease_NB_v1430_IEs__nonCriticalExtension { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *nonCriticalExtension; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } LTE_RRCConnectionRelease_NB_v1430_IEs_t; /* Implementation */ extern asn_TYPE_descriptor_t asn_DEF_LTE_RRCConnectionRelease_NB_v1430_IEs; extern asn_SEQUENCE_specifics_t asn_SPC_LTE_RRCConnectionRelease_NB_v1430_IEs_specs_1; extern asn_TYPE_member_t asn_MBR_LTE_RRCConnectionRelease_NB_v1430_IEs_1[3]; #ifdef __cplusplus } #endif /* Referred external types */ #include "LTE_RedirectedCarrierInfo-NB-v1430.h" #endif /* _LTE_RRCConnectionRelease_NB_v1430_IEs_H_ */ #include <asn_internal.h>
32.943396
178
0.817297
90b34229846b4262184416fb28ed5590870b3917
3,058
py
Python
package/echo.py
dbbxzw-610/bilibili-live-push
534dac8aac815f49e3db88bdbdbe3611ac5ac283
[ "MIT" ]
13
2021-08-15T15:35:08.000Z
2022-03-28T13:45:11.000Z
package/echo.py
dbbxzw-610/bilibili-live-push
534dac8aac815f49e3db88bdbdbe3611ac5ac283
[ "MIT" ]
4
2021-01-03T18:50:00.000Z
2021-08-14T17:15:32.000Z
package/echo.py
dbbxzw-610/bilibili-live-push
534dac8aac815f49e3db88bdbdbe3611ac5ac283
[ "MIT" ]
6
2021-08-17T05:22:28.000Z
2022-02-14T12:55:16.000Z
import asyncio import time from typing import * class EchoFormat: th: List[str] = [] td: List[List[str]] = [] first_echo: bool = True last_update: float = time.time() def __init__(self) -> None: pass def init_th(self, *arg) -> None: self.th.clear() for i, x in enumerate(arg): # type: str if isinstance(x, str) is True: self.th.append(x) else: print("非str类型", i, ":", x) def del_th(self) -> None: self.th.clear() def create_td(self) -> Tuple[int, list]: self.td.append([]) while len(self.td[len(self.td) - 1]) < len(self.th): self.td[len(self.td) - 1].append("") return len(self.td) - 1, self.td[len(self.td) - 1] def update_td(self, index: int, *arg): for i, x in enumerate(arg): # type: int, str if i < len(self.th): self.td[index][i] = x self.last_update = time.time() def update_element(self, row: int, column: int, arg: str): # 横排数列 # row: 排 # column: 列 self.td[row][column] = arg self.last_update = time.time() def str_width(self) -> List[int]: str_len = [str_width(v) + 3 for v in self.th] for v in self.td: # type: int, List[str] for i, x in enumerate(v): if i >= len(str_len): break str_len[i] = ( str_len[i] if str_len[i] > str_width(x) + 3 else str_width(x) + 3 ) return str_len def echo(self): if not self.first_echo: print("\033[%sA" % (len(self.td) + 2)) else: self.first_echo = False str_len = self.str_width() # th print(build_format(str_len, self.th) % tuple(self.th)) # td for v in self.td: print(build_format(str_len, v) % tuple(v)) async def loop(self): last_update: float = 0 while True: if last_update >= self.last_update: await asyncio.sleep(1) continue self.echo() last_update = self.last_update def build_format(str_len: List[int], str_list: List[str]) -> str: str_format = "" for i, v in enumerate(str_list): # type: str str_format += "%-{}.{}s".format( str_len[i] - alpha_len(v), str_len[i] - alpha_len(v) ) str_format += "\033[K" return str_format def str_width(text: str) -> int: count = len(text) for i in text: if "\u4e00" <= i <= "\u9fff": count += 1 return count def alpha_len(text: str) -> int: count = 0 for i in text: if "\u4e00" <= i <= "\u9fff": count += 1 return count if __name__ == "__main__": ef = EchoFormat() ef.init_th("#", "直播间ID", "真实ID", "主播名", "开播/下播", "实时状态") i, v = ef.create_td() v.append("1") v.append("2") v.append("3") v.append("4") v.append("5") v.append("6") ef.echo()
26.362069
85
0.502616
dd668f41b0f44bdc3e500ce2ede43629b01ddfac
11,564
php
PHP
application/controllers/parameter.php
ciemilsalim/sip-bpkad
91a4ddc08b3f739316a4ac0f48d17657600a2940
[ "MIT" ]
1
2020-04-04T14:03:24.000Z
2020-04-04T14:03:24.000Z
application/controllers/parameter.php
ciemilsalim/sip-bpkad
91a4ddc08b3f739316a4ac0f48d17657600a2940
[ "MIT" ]
null
null
null
application/controllers/parameter.php
ciemilsalim/sip-bpkad
91a4ddc08b3f739316a4ac0f48d17657600a2940
[ "MIT" ]
null
null
null
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Parameter extends CI_Controller { public function __construct() { parent::__construct(); is_loged_in(); } public function index() { $data['title'] = 'Identitas'; $data['user'] = $this->db->get_where('user', ['email' => $this->session->userdata('email')])->row_array(); $data['identitas'] = $this->db->get('tb_pemda')->row_array(); $this->load->view('templates/header', $data); $this->load->view('templates/sidebar', $data); $this->load->view('templates/topbar', $data); $this->load->view('parameter/index', $data); $this->load->view('templates/footer'); } public function edit() { $data['title'] = 'Edit Identitas'; $data['user'] = $this->db->get_where('user', ['email' => $this->session->userdata('email')])->row_array(); $data['identitas'] = $this->db->get('tb_pemda')->row_array(); $this->form_validation->set_rules('tahun', 'Tahun', 'required|trim|numeric'); $this->form_validation->set_rules('nama_pemda', 'Nama Pemda', 'required|trim'); $this->form_validation->set_rules('ibu_kota', 'Ibu Kota', 'required|trim'); $this->form_validation->set_rules('alamat', 'Alamat', 'required|trim'); if ($this->form_validation->run() == false) { $this->load->view('templates/header', $data); $this->load->view('templates/sidebar', $data); $this->load->view('templates/topbar', $data); $this->load->view('parameter/index', $data); $this->load->view('templates/footer'); } else { $tahun = $this->input->post('tahun'); $nama_pemda = $this->input->post('nama_pemda'); $ibu_kota = $this->input->post('ibu_kota'); $alamat = $this->input->post('alamat'); //cek gambar $upload_image = $_FILES['logo']['name']; if ($upload_image) { $config['allowed_types'] = 'gif|png|jpg'; $config['max_size'] = '2040'; $config['upload_path'] = './assets/img/logo/'; $this->load->library('upload', $config); if ($this->upload->do_upload('logo')) { $old_image = $data[user]['logo']; if ($old_image != 'default.jpg') { unlink(FCPATH . 'assets/img/logo/' . $old_image); } $new_image = $this->upload->data('file_name'); $this->db->set('logo', $new_image); } else { echo $this->upload->display_errors(); } } $data = array( 'tahun' => $tahun, 'nama_pemda' => $nama_pemda, 'ibu_kota' => $ibu_kota, 'alamat' => $alamat ); $this->db->where('id_pemda', 1); $this->db->update('tb_pemda', $data); $this->session->set_flashdata('message', '<div class = "alert alert-success" role="alert">data berhasil update</div>'); redirect('parameter'); } } public function skpd() { $data['title'] = 'Identitas SKPD'; $data['user'] = $this->db->get_where('user', ['email' => $this->session->userdata('email')])->row_array(); $data['skpd'] = $this->db->get('tb_skpd')->row_array(); $this->load->view('templates/header', $data); $this->load->view('templates/sidebar', $data); $this->load->view('templates/topbar', $data); $this->load->view('parameter/skpd', $data); $this->load->view('templates/footer'); } public function editskpd() { $data['title'] = 'Edit Identitas SKPD'; $data['user'] = $this->db->get_where('user', ['email' => $this->session->userdata('email')])->row_array(); $data['identitas'] = $this->db->get('tb_skpd')->row_array(); $this->form_validation->set_rules('tahun', 'Tahun', 'required|trim|numeric'); $this->form_validation->set_rules('nama_skpd', 'Nama SKPD', 'required|trim'); $this->form_validation->set_rules('alamat_skpd', 'Alamat SKPD', 'required|trim'); $this->form_validation->set_rules('id_pimpinan', 'ID Pimpinan', 'required|trim'); $this->form_validation->set_rules('NIP_pimpinan', 'NIP Pimpinan', 'required|trim'); $this->form_validation->set_rules('nama_pimpinan', 'Nama Pimpinan', 'required|trim'); $this->form_validation->set_rules('jabatan', 'Jabatan', 'required|trim'); $this->form_validation->set_rules('alamat', 'Alamat', 'required|trim'); if ($this->form_validation->run() == false) { $this->load->view('templates/header', $data); $this->load->view('templates/sidebar', $data); $this->load->view('templates/topbar', $data); $this->load->view('parameter/skpd', $data); $this->load->view('templates/footer'); } else { $tahun = $this->input->post('tahun'); $kd_urusan = $this->input->post('kd_urusan'); $kd_bidang = $this->input->post('kd_bidang'); $kd_unit = $this->input->post('kd_unit'); $kd_sub = $this->input->post('kd_sub'); $nama_skpd = $this->input->post('nama_skpd'); $alamat_skpd = $this->input->post('alamat_skpd'); $id_pimpinan = $this->input->post('id_pimpinan'); $nip_pimpinan = $this->input->post('nip_pimpinan'); $nama_pimpinan = $this->input->post('nama_pimpinan'); $jabatan = $this->input->post('jabatan'); $alamat_pimpinan = $this->input->post('alamat_pimpinan'); //cek gambar $upload_image = $_FILES['foto']['name']; if ($upload_image) { $config['allowed_types'] = 'gif|png|jpg'; $config['max_size'] = '2040'; $config['upload_path'] = './assets/img/logo/'; $this->load->library('upload', $config); if ($this->upload->do_upload('foto')) { $old_image = $data[user]['foto']; if ($old_image != 'default.jpg') { unlink(FCPATH . 'assets/img/foto/' . $old_image); } $new_image = $this->upload->data('file_name'); $this->db->set('foto', $new_image); } else { echo $this->upload->display_errors(); } } $data = array( 'tahun' => $tahun, 'kd_urusan' => $kd_urusan, 'kd_bidang' => $kd_bidang, 'kd_unit' => $kd_unit, 'kd_sub' => $kd_sub, 'nama_skpd' => $nama_skpd, 'alamat_skpd' => $alamat_skpd, 'id_pimpinan' => $id_pimpinan, 'nama_pimpinan' => $nama_pimpinan, 'jabatan' => $jabatan, 'alamat_pimpinan' => $alamat_pimpinan ); $this->db->where('kd_skpd', 1); $this->db->update('tb_pemda', $data); $this->session->set_flashdata('message', '<div class = "alert alert-success" role="alert">data berhasil update</div>'); redirect('parameter/skpd'); } } public function Bidang() { $data['title'] = 'Bidang'; $data['user'] = $this->db->get_where('user', ['email' => $this->session->userdata('email')])->row_array(); $data['bidang'] = $this->db->get('tb_bidang')->result_array(); $this->load->view('templates/header', $data); $this->load->view('templates/sidebar', $data); $this->load->view('templates/topbar', $data); $this->load->view('parameter/bidang', $data); $this->load->view('templates/footer'); } public function tambah_bidang() { $data['title'] = 'Bidang'; $data['user'] = $this->db->get_where('user', ['email' => $this->session->userdata('email')])->row_array(); $data['bidang'] = $this->db->get('tb_bidang')->result_array(); $this->form_validation->set_rules('nama_bidang', 'Nama Bidang', 'required|trim'); if ($this->form_validation->run() == false) { $this->load->view('templates/header', $data); $this->load->view('templates/sidebar', $data); $this->load->view('templates/topbar', $data); $this->load->view('parameter/bidang', $data); $this->load->view('templates/footer'); } else { $nama_bidang = $this->input->post('nama_bidang'); $kd_urusan = $this->session->userdata('kd_urusan'); $kd_bidang = $this->session->userdata('kd_bidang'); $kd_unit = $this->session->userdata('kd_unit'); $kd_sub = $this->session->userdata('kd_sub'); $data = array( 'nama_bidang' => $nama_bidang, 'kd_urusan' => $kd_urusan, 'kd_bidang' => $kd_bidang, 'kd_unit' => $kd_unit, 'kd_sub' => $kd_sub ); $insert = $this->db->insert('tb_bidang', $data); if ($insert) { $this->session->set_flashdata('message', '<div class = "alert alert-success" role="alert">data Bidang berhasil ditambahkan </div>'); redirect('parameter/bidang'); } else { echo $this->upload->display_errors(); redirect('parameter/bidang'); } } } public function edit_bidang() { $data['title'] = 'Bidang'; $data['user'] = $this->db->get_where('user', ['email' => $this->session->userdata('email')])->row_array(); $data['bidang'] = $this->db->get('tb_bidang')->result_array(); $this->form_validation->set_rules('nama_bidang', 'Nama Bidang', 'required|trim'); if ($this->form_validation->run() == false) { $this->load->view('templates/header', $data); $this->load->view('templates/sidebar', $data); $this->load->view('templates/topbar', $data); $this->load->view('parameter/bidang', $data); $this->load->view('templates/footer'); } else { $id = $this->input->post('id_bidang'); $nama_bidang = $this->input->post('nama_bidang'); $id_bidang['id_bidang'] = $id; $data = array( 'nama_bidang' => $nama_bidang ); $update = $this->db->update('tb_bidang', $data, $id_bidang); if ($update) { $this->session->set_flashdata('message', '<div class = "alert alert-success" role="alert">data Bidang berhasil diupdate </div>'); redirect('parameter/bidang'); } else { echo $this->upload->display_errors(); redirect('parameter/bidang'); } } } public function delete_bidang() { $id['id_bidang'] = $this->uri->segment(3); $delete = $this->db->delete('tb_bidang', $id); if ($delete) { $this->session->set_flashdata('message', '<div class = "alert alert-success" role="alert">data Bidang berhasil di hapus </div>'); redirect('parameter/bidang'); } else { echo $this->upload->display_errors(); redirect('parameter/bidang'); } } }
39.2
148
0.516171
5b8dbfa478b6a5890c1b09e1c707d77079ccb98f
3,511
kt
Kotlin
library-common/src/main/java/com/example/fragment/library/common/fragment/WebFragment.kt
JohnsonJLi/fragmject
fad46635a2cb16d565300372b1a647cb7f79c026
[ "Apache-2.0" ]
111
2021-05-17T01:20:26.000Z
2021-09-24T03:35:59.000Z
library-common/src/main/java/com/example/fragment/library/common/fragment/WebFragment.kt
tiantanheitong/fragmject
fad46635a2cb16d565300372b1a647cb7f79c026
[ "Apache-2.0" ]
3
2021-06-28T10:16:59.000Z
2021-08-05T12:32:16.000Z
library-common/src/main/java/com/example/fragment/library/common/fragment/WebFragment.kt
tiantanheitong/fragmject
fad46635a2cb16d565300372b1a647cb7f79c026
[ "Apache-2.0" ]
20
2021-05-16T10:45:45.000Z
2021-08-19T03:41:11.000Z
package com.example.fragment.library.common.fragment import android.content.Intent import android.graphics.Bitmap import android.net.Uri import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.activity.addCallback import com.example.fragment.library.base.model.BaseViewModel import com.example.fragment.library.base.utils.WebViewHelper import com.example.fragment.library.common.constant.Keys import com.example.fragment.library.common.databinding.FragmentWebBinding import com.tencent.smtt.sdk.WebView class WebFragment : RouterFragment() { companion object { @JvmStatic fun newInstance(): WebFragment { return WebFragment() } } private var _binding: FragmentWebBinding? = null private val binding get() = _binding!! private lateinit var webViewHelper: WebViewHelper override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View { _binding = FragmentWebBinding.inflate(inflater, container, false) return binding.root } override fun onResume() { webViewHelper.onResume() super.onResume() } override fun onPause() { webViewHelper.onPause() super.onPause() } override fun onDestroyView() { super.onDestroyView() webViewHelper.onDestroyView() _binding = null } override fun initView() { val url = Uri.decode(requireArguments().getString(Keys.URL)) webViewHelper = WebViewHelper.with(binding.webContainer) .injectVConsole(false) .setOnPageChangedListener(object : WebViewHelper.OnPageChangedListener { override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) { binding.progressBar.visibility = View.VISIBLE } override fun onPageFinished(view: WebView?, url: String?) { binding.progressBar.visibility = View.GONE } override fun onProgressChanged(view: WebView?, newProgress: Int) { binding.progressBar.progress = newProgress } }) if (!url.isNullOrBlank()) { webViewHelper.loadUrl(url) } binding.statusBar.setStatusBarTheme(true) val onBackPressed = activity.onBackPressedDispatcher.addCallback(viewLifecycleOwner) { if (!webViewHelper.canGoBack()) { this.isEnabled = false activity.onBackPressed() } } binding.black.setOnClickListener { if (!webViewHelper.canGoBack()) { onBackPressed.isEnabled = false activity.onBackPressed() } } binding.forward.setOnClickListener { webViewHelper.canGoForward() } binding.refresh.setOnClickListener { webViewHelper.reload() } binding.browse.setOnClickListener { try { val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) intent.addCategory(Intent.CATEGORY_BROWSABLE) activity.startActivity(intent) } catch (e: Exception) { e.printStackTrace() } } } override fun initViewModel(): BaseViewModel? { return null } override fun initLoad() { } }
31.070796
94
0.623469
74e06fbab0993f520046245bd3a88401942b61c8
3,781
js
JavaScript
app/assets/javascripts/admins/weapp_adverts/index.js
yunbowang328/gitlink
4fa10a3683f8079ac877fa2b12b0ab767164f30f
[ "MulanPSL-1.0" ]
null
null
null
app/assets/javascripts/admins/weapp_adverts/index.js
yunbowang328/gitlink
4fa10a3683f8079ac877fa2b12b0ab767164f30f
[ "MulanPSL-1.0" ]
null
null
null
app/assets/javascripts/admins/weapp_adverts/index.js
yunbowang328/gitlink
4fa10a3683f8079ac877fa2b12b0ab767164f30f
[ "MulanPSL-1.0" ]
null
null
null
$(document).on('turbolinks:load', function() { if ($('body.admins-weapp-adverts-index-page').length > 0) { var resetNo = function(){ $('#adverts-container .advert-item-no').each(function(index, ele){ $(ele).html(index + 1); }) } // ------------ 保存链接 ----------- $('.adverts-card').on('click', '.save-data-btn', function(){ var $link = $(this); var id = $link.data('id'); var link = $('.advert-item-' + id).find('.link-input').val(); $link.attr('disabled', true); $.ajax({ url: '/admins/weapp_adverts/' + id, method: 'PATCH', dataType: 'json', data: { link: link }, success: function(data){ $.notify({ message: '操作成功' }); }, error: ajaxErrorNotifyHandler, complete: function(){ $link.removeAttr('disabled'); } }) }); // -------------- 是否在首页展示 -------------- $('.adverts-card').on('change', '.online-check-box', function(){ var $checkbox = $(this); var id = $checkbox.data('id'); var checked = $checkbox.is(':checked'); $checkbox.attr('disabled', true); $.ajax({ url: '/admins/weapp_adverts/' + id, method: 'PATCH', dataType: 'json', data: { online: checked }, success: function(data){ $.notify({ message: '保存成功' }); var box = $('.advert-item-' + id).find('.drag'); if(checked){ box.removeClass('not_active'); }else{ box.addClass('not_active'); } }, error: ajaxErrorNotifyHandler, complete: function(){ $checkbox.removeAttr('disabled'); } }) }); // ------------ 拖拽 ------------- var onDropFunc = function(el, _target, _source, sibling){ var moveId = $(el).data('id'); var insertId = $(sibling).data('id') || ''; $.ajax({ url: '/admins/weapp_adverts/drag', method: 'POST', dataType: 'json', data: { move_id: moveId, after_id: insertId }, success: function(data){ resetNo(); }, error: function(res){ var data = res.responseJSON; $.notify({message: '移动失败,原因:' + data.message}, {type: 'danger'}); } }) }; var ele1 = document.getElementById('adverts-container'); dragula([ele1], { mirrorContainer: ele1 }).on('drop', onDropFunc); // ----------- 新增 -------------- var $createModal = $('.modal.admin-add-weapp-advert-modal'); var $createForm = $createModal.find('form.admin-add-weapp-advert-form'); $createForm.validate({ errorElement: 'span', errorClass: 'danger text-danger', rules: { "weapp_settings_advert[image]": { required: true } } }); $createModal.on('show.bs.modal', function(event){ resetFileInputFunc($createModal.find('.img-file-input')); $createModal.find('.file-names').html('选择文件'); }); $createModal.on('click', '.submit-btn', function() { $createForm.find('.error').html(''); if ($createForm.valid()) { $createForm.submit(); } else { $createForm.find('.error').html('请选择图片'); } }); $createModal.on('change', '.img-file-input', function(){ var file = $(this)[0].files[0]; $createModal.find('.file-names').html(file ? file.name : '请选择文件'); }) // -------------- 重新上传图片 -------------- //replace_image_url $('.modal.admin-upload-file-modal').on('upload:success', function(e, data){ var $advertItem = $('.advert-item-' + data.source_id); $advertItem.find('.advert-item-img img').attr('src', data.url); }) // 删除后 $(document).on('delete_success', resetNo) } })
30.491935
79
0.509389
3a7991fbdf373c039d5d03e12376a5c988f2f208
40
kts
Kotlin
applications/demokafka-consumer/settings.gradle.kts
amidukr/demo-kafka
4111c70f0ae5d6dcfac0094110d320b4e69340b9
[ "Apache-2.0" ]
1
2020-04-14T02:40:53.000Z
2020-04-14T02:40:53.000Z
applications/demokafka-consumer/settings.gradle.kts
amidukr/demo-kafka
4111c70f0ae5d6dcfac0094110d320b4e69340b9
[ "Apache-2.0" ]
10
2020-05-08T01:06:31.000Z
2020-05-12T21:40:55.000Z
applications/demokafka-consumer/settings.gradle.kts
amidukr/demo-kafka
4111c70f0ae5d6dcfac0094110d320b4e69340b9
[ "Apache-2.0" ]
null
null
null
rootProject.name = "demokafka-consumer"
20
39
0.8
5fdd3fe71385ece3dba9df44c10eb31d57487e41
1,644
h
C
fizz/server/CookieCipher.h
dgrnbrg-meta/fizz
a69c69f413b1441d6b98cb7a8deb173325780980
[ "BSD-3-Clause" ]
995
2018-08-06T10:41:15.000Z
2022-03-16T19:49:14.000Z
fizz/server/CookieCipher.h
dgrnbrg-meta/fizz
a69c69f413b1441d6b98cb7a8deb173325780980
[ "BSD-3-Clause" ]
68
2018-08-06T16:29:06.000Z
2022-03-11T21:20:10.000Z
fizz/server/CookieCipher.h
dgrnbrg-meta/fizz
a69c69f413b1441d6b98cb7a8deb173325780980
[ "BSD-3-Clause" ]
147
2018-08-06T16:52:49.000Z
2022-03-14T21:25:35.000Z
/* * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <fizz/protocol/Factory.h> #include <fizz/record/Types.h> namespace fizz { namespace server { struct CookieState { ProtocolVersion version; CipherSuite cipher; folly::Optional<NamedGroup> group; Buf chloHash; Buf appToken; }; /** * Interface for decrypting prior state information from a cookie. These are * never sent through the state machine (they are only useful for applications * that require a stateless reset), hence the lack of an encrypt method. */ class CookieCipher { public: virtual ~CookieCipher() = default; virtual folly::Optional<CookieState> decrypt(Buf) const = 0; }; /** * Build a stateless HelloRetryRequest. This is deterministic and will be used * to reconstruct the handshake transcript when receiving the second * ClientHello. */ Buf getStatelessHelloRetryRequest( ProtocolVersion version, CipherSuite cipher, folly::Optional<NamedGroup> group, Buf cookie); /** * Negotiate and compute the CookieState to use in response to a ClientHello. * This must match the logic inside of the server state machine. */ CookieState getCookieState( const Factory& factory, const std::vector<ProtocolVersion>& supportedVersions, const std::vector<std::vector<CipherSuite>>& supportedCiphers, const std::vector<NamedGroup>& supportedGroups, const ClientHello& chlo, Buf appToken); } // namespace server } // namespace fizz
26.095238
78
0.736618
461c9f071342d2acf99fb20bcb1a970ae3e89867
3,607
swift
Swift
TarotOfLight/Views/ContentView.swift
dendenxu/LighTarot
c20897c5dc0b9706120c8c5c6540c22e20ab1e80
[ "MIT" ]
null
null
null
TarotOfLight/Views/ContentView.swift
dendenxu/LighTarot
c20897c5dc0b9706120c8c5c6540c22e20ab1e80
[ "MIT" ]
null
null
null
TarotOfLight/Views/ContentView.swift
dendenxu/LighTarot
c20897c5dc0b9706120c8c5c6540c22e20ab1e80
[ "MIT" ]
null
null
null
// // ContentView.swift // TarotOfLight // // Created by xz on 2020/6/13. // Copyright © 2020 xz. All rights reserved. // // This is the rootView for our application LighTarot // It acts like a container for three other subViews: // 1. SelectorView which is basically our main page, mine page and the interface for opening the ARCamera // FIXME: format stuff import SwiftUI import UIKit struct ContentView: View { @EnvironmentObject var profile: LighTarotModel var body: some View { ZStack(alignment: .bottom) { if (profile.navigator.weAreInGlobal == .selector) { if profile.navigator.weAreInSelector == .mainPage { Color(profile.energy >= 100.0 ? "MediumDarkPurple" : "LightGray") } else if profile.navigator.weAreInSelector == .cardPage { Color("MediumDarkPurple") } else if profile.navigator.weAreInSelector == .minePage { Color("LightGray") } SelectorView() .transition(scaleTransition) if (profile.shouldShowNewCardView) { Color("LightMediumDarkPurple").opacity(0.8) .frame(width: .ScreenWidth, height: .ScreenHeight) } VStack { NewCardView() Spacer() } } else if (profile.navigator.weAreInGlobal == .predictLight) { if (profile.navigator.weAreIn == .animation) { Color("MediumDarkPurple") } else if (profile.navigator.weAreIn == .category) { Color("LightMediumDarkPurple") } PredictLightView() .transition(scaleTransition) } else if (profile.navigator.weAreInGlobal == .arCamera) { ARCameraView() .transition(scaleTransition) .onAppear { print("Should have opened the camera or at least ask for permission by now") // MARK: to actually make the application able to openup this ARScene, we're to imitate a simple AR project newly created // 1. add ARKit requirements in info.plist // 2. add Privacy - ability to use camera to info.plist too } } else if (profile.navigator.weAreInGlobal == .introduction) { // Background Rectangle RoundedRectangle(cornerRadius: .ScreenCornerRadius).foregroundColor(Color("LightGray")) IntroPageView() .transition(scaleTransition) } else if (profile.navigator.weAreInGlobal == .debugger) { NewCardView() } } // .frame(width: profile.isLandScape ? .ScreenHeight : .ScreenWidth, height: profile.isLandScape ? .ScreenWidth : .ScreenHeight) .frame(width: .ScreenWidth, height: .ScreenHeight) .edgesIgnoringSafeArea(.all) // Setting frame and cornerRadius clip here is a more global approach for the who main page // Adding edges ignorance operations here at the rootView will rid all subViews of the safe areas } } // Page changer enum GlobalViewSelection: CustomStringConvertible { var description: String { switch self { case .selector: return "selector" case .predictLight: return "predictLight" case .arCamera: return "arCamera" case .introduction: return "introduction" case .debugger: return "debugger" } } case selector case predictLight case arCamera case introduction case debugger }
42.435294
145
0.602717
2685948fd9f1c48a79dd54544926cbfe644d30aa
5,121
java
Java
dspace-api/src/main/java/org/dspace/importer/external/metadatamapping/contributor/MultipleMetadataContributor.java
michelcareau/DSpace
d49f69d28c1ab754561ebe9e055f39bec12dce62
[ "BSD-3-Clause" ]
541
2015-01-08T17:28:08.000Z
2022-03-28T07:16:48.000Z
dspace-api/src/main/java/org/dspace/importer/external/metadatamapping/contributor/MultipleMetadataContributor.java
michelcareau/DSpace
d49f69d28c1ab754561ebe9e055f39bec12dce62
[ "BSD-3-Clause" ]
2,364
2015-01-02T16:39:38.000Z
2022-03-31T21:04:54.000Z
dspace-api/src/main/java/org/dspace/importer/external/metadatamapping/contributor/MultipleMetadataContributor.java
michelcareau/DSpace
d49f69d28c1ab754561ebe9e055f39bec12dce62
[ "BSD-3-Clause" ]
973
2015-01-09T15:12:13.000Z
2022-03-29T23:41:13.000Z
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.importer.external.metadatamapping.contributor; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList; import java.util.List; import org.dspace.importer.external.metadatamapping.MetadataFieldConfig; import org.dspace.importer.external.metadatamapping.MetadataFieldMapping; import org.dspace.importer.external.metadatamapping.MetadatumDTO; /** * This Contributor is helpful to avoid the limit of the Live Import Framework. * In Live Import, one dc schema/element/qualifier could be associate with one and * only one MetadataContributor, because the map they're saved in use dc entity as key. * * In fact, in this implementation we use the MetadataFieldConfig present in this MultipleMetadataContributor * contributor, but the data (values of the dc metadatum) will be loaded using any of the contributor defined * in the List metadatumContributors, by iterating over them. * * @see org.dspace.importer.external.metadatamapping.AbstractMetadataFieldMapping<RecordType> * * @author Pasquale Cavallo (pasquale.cavallo at 4science dot it) * */ public class MultipleMetadataContributor<T> implements MetadataContributor<T> { private MetadataFieldConfig field; private List<MetadataContributor> metadatumContributors; /** * Empty constructor */ public MultipleMetadataContributor() { } /** * @param field {@link org.dspace.importer.external.metadatamapping.MetadataFieldConfig} used in * mapping * @param metadatumContributors A list of MetadataContributor */ public MultipleMetadataContributor(MetadataFieldConfig field, List<MetadataContributor> metadatumContributors) { this.field = field; this.metadatumContributors = (LinkedList<MetadataContributor>) metadatumContributors; } /** * Set the metadatafieldMapping used in the transforming of a record to actual metadata * * @param metadataFieldMapping the new mapping. */ @Override public void setMetadataFieldMapping(MetadataFieldMapping<T, MetadataContributor<T>> metadataFieldMapping) { for (MetadataContributor metadatumContributor : metadatumContributors) { metadatumContributor.setMetadataFieldMapping(metadataFieldMapping); } } /** * a separate Metadatum object is created for each index of Metadatum returned from the calls to * MetadatumContributor.contributeMetadata(t) for each MetadatumContributor in the metadatumContributors list. * All of them have as dc schema/element/qualifier the values defined in MetadataFieldConfig. * * @param t the object we are trying to translate * @return a collection of metadata got from each MetadataContributor */ @Override public Collection<MetadatumDTO> contributeMetadata(T t) { Collection<MetadatumDTO> values = new ArrayList<>(); for (MetadataContributor metadatumContributor : metadatumContributors) { Collection<MetadatumDTO> metadata = metadatumContributor.contributeMetadata(t); values.addAll(metadata); } changeDC(values); return values; } /** * This method does the trick of this implementation. * It changes the DC schema/element/qualifier of the given Metadatum into * the ones present in this contributor. * In this way, the contributors in metadatumContributors could have any dc values, * because this method remap them all. * * @param the list of metadata we want to remap */ private void changeDC(Collection<MetadatumDTO> values) { for (MetadatumDTO dto : values) { dto.setElement(field.getElement()); dto.setQualifier(field.getQualifier()); dto.setSchema(field.getSchema()); } } /** * Return the MetadataFieldConfig used while retrieving MetadatumDTO * * @return MetadataFieldConfig */ public MetadataFieldConfig getField() { return field; } /** * Setting the MetadataFieldConfig * * @param field MetadataFieldConfig used while retrieving MetadatumDTO */ public void setField(MetadataFieldConfig field) { this.field = field; } /** * Return the List of MetadataContributor objects set to this class * * @return metadatumContributors, list of MetadataContributor */ public List<MetadataContributor> getMetadatumContributors() { return metadatumContributors; } /** * Set the List of MetadataContributor objects set to this class * * @param metadatumContributors A list of MetadatumContributor classes */ public void setMetadatumContributors(List<MetadataContributor> metadatumContributors) { this.metadatumContributors = metadatumContributors; } }
36.578571
116
0.712361
a4af173d1dcbec33fa70da8eccd7506b57e7cf5b
1,693
kt
Kotlin
backend/src/main/kotlin/org/planqk/cooksmart/util/SimplePage.kt
timniederhausen/cooksmart
40583490a3645f583a67f3cc4654394350ff84f3
[ "Apache-2.0" ]
1
2020-06-06T18:29:25.000Z
2020-06-06T18:29:25.000Z
backend/src/main/kotlin/org/planqk/cooksmart/util/SimplePage.kt
timniederhausen/cooksmart
40583490a3645f583a67f3cc4654394350ff84f3
[ "Apache-2.0" ]
1
2022-02-28T03:40:33.000Z
2022-02-28T03:40:33.000Z
backend/src/main/kotlin/org/planqk/cooksmart/util/SimplePage.kt
timniederhausen/cooksmart
40583490a3645f583a67f3cc4654394350ff84f3
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 Felix Burk, Tim Niederhausen // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.planqk.cooksmart.util import org.springframework.data.domain.Page data class SimplePageable( val page: Int = 0, val size: Int = 0, val sort: List<String> = emptyList() ) data class SimplePage<T>( val page: Int = 0, val totalPages: Int = 0, val first: Boolean = true, val last: Boolean = true, val size: Int = 0, val totalElements: Long = 0, val pageable: SimplePageable = SimplePageable(), val content: List<T> = emptyList() ) fun <T> of(page: Page<T>): SimplePage<T> { return SimplePage( page = page.number, totalPages = page.totalPages, first = page.isFirst, last = page.isLast, size = page.numberOfElements, totalElements = page.totalElements, pageable = SimplePageable( page = page.number, size = page.size, sort = page.sort.map { o -> "${o.property},${o.direction}" }.toList() ), content = page.content ) }
33.196078
89
0.615475
71871e3bba6633fc2b04c4bc458e256eeb2cc090
1,550
tsx
TypeScript
app.dashboard/src/common/Application.tsx
gannochenko/rasp
06f58f939a64a9e7cc52833ee2116c39e35d2ff2
[ "MIT", "Unlicense" ]
null
null
null
app.dashboard/src/common/Application.tsx
gannochenko/rasp
06f58f939a64a9e7cc52833ee2116c39e35d2ff2
[ "MIT", "Unlicense" ]
15
2021-03-10T18:00:46.000Z
2022-02-27T03:59:02.000Z
app.dashboard/src/common/Application.tsx
gannochenko/rasp
06f58f939a64a9e7cc52833ee2116c39e35d2ff2
[ "MIT", "Unlicense" ]
null
null
null
import React, { FunctionComponent } from 'react'; import { Provider } from 'react-redux'; import { EventEmitter } from 'events'; import { NotificationContext } from '@gannochenko/ui'; import { ThemeProvider as MUIThemeProvider } from '@material-ui/core/styles'; import { ThemeProvider } from 'styled-components'; import { ApplicationUI } from './components'; import { ServiceManager, ServiceManagerContext, createHistory, dismissOnReady, } from './lib'; import { createStore } from './store'; import { theme } from './style'; const history = createHistory(); // eslint-disable-next-line @typescript-eslint/no-unused-vars const { store, saga, unsubscribe } = createStore({ history, onChange: dismissOnReady, }); const serviceManager = new ServiceManager(); const emitter = new EventEmitter(); export const Application: FunctionComponent = () => { return ( <ServiceManagerContext.Provider value={serviceManager}> <Provider store={store}> <NotificationContext.Provider value={emitter}> <MUIThemeProvider theme={theme}> <ThemeProvider theme={theme}> <ApplicationUI history={history} serviceManager={serviceManager} /> </ThemeProvider> </MUIThemeProvider> </NotificationContext.Provider> </Provider> </ServiceManagerContext.Provider> ); };
34.444444
77
0.605161
41287177a59071cf9f3d7265e12b6414e20fa06b
417
h
C
Marquee/MarqueeLabel.h
longyu1024/--MarqueeLabel
a391cca368e1db9cc4343d50455cb47d51430398
[ "MIT" ]
null
null
null
Marquee/MarqueeLabel.h
longyu1024/--MarqueeLabel
a391cca368e1db9cc4343d50455cb47d51430398
[ "MIT" ]
null
null
null
Marquee/MarqueeLabel.h
longyu1024/--MarqueeLabel
a391cca368e1db9cc4343d50455cb47d51430398
[ "MIT" ]
null
null
null
// // MarqueeLabel.h // Marquee // // Created by WangBin on 15/11/26. // Copyright © 2015年 WangBin. All rights reserved. // #import <UIKit/UIKit.h> #ifndef IBInspectable #define IBInspectable #endif @interface MarqueeLabel : UILabel - (instancetype)initWithFrame:(CGRect)frame duration:(NSTimeInterval)duration; @property (nonatomic,assign) IBInspectable CGFloat duration; - (void)start; - (void)pause; @end
18.130435
78
0.738609
f00b1f413db4083c2b4c12dfb8af15b799f387ae
2,288
py
Python
mtconnect/mtconnect_ros_bridge/scripts/closedoor.py
mtconnect/ros_bridge
b578e8c3edca83ea0de8ed15aff0f7733dd23e04
[ "Apache-2.0" ]
5
2015-04-30T21:51:46.000Z
2019-03-18T06:24:38.000Z
mtconnect/mtconnect_ros_bridge/scripts/closedoor.py
CubeSpawn/ros_bridge
b578e8c3edca83ea0de8ed15aff0f7733dd23e04
[ "Apache-2.0" ]
null
null
null
mtconnect/mtconnect_ros_bridge/scripts/closedoor.py
CubeSpawn/ros_bridge
b578e8c3edca83ea0de8ed15aff0f7733dd23e04
[ "Apache-2.0" ]
4
2016-02-21T20:04:31.000Z
2021-01-04T13:48:41.000Z
#! /usr/bin/env python """ Copyright 2013 Southwest Research Institute Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import roslib; roslib.load_manifest('mtconnect_msgs') import rospy # Brings in the SimpleActionClient import actionlib # Brings in the messages used by the material_load action. import mtconnect_msgs.msg def close_door_client(): rospy.loginfo('Launched CloseDoor Action CLient') # Creates the SimpleActionClient, passing the type of the action # (CloseDoorAction) to the constructor. client = actionlib.SimpleActionClient('CloseDoorClient', mtconnect_msgs.msg.CloseDoorAction) # Waits until the action server has started up and started listening for goals. rospy.loginfo('Waiting for Generic Action Server') client.wait_for_server() rospy.loginfo('Generic Action Server Activated') # Creates a DoorAcknowledge goal to send to the action server. goal = mtconnect_msgs.msg.CloseDoorGoal() goal.close_door = 'CLOSED' # Sends the goal to the action server. rospy.loginfo('Sending the goal') client.send_goal(goal) # Waits for the server to finish performing the action. rospy.loginfo('Waiting for result') client.wait_for_result() # Obtain result result = client.get_result() # result must be a string rospy.loginfo('Returning the result --> %s' % result) return if __name__ == '__main__': try: # Initializes a rospy node so that the SimpleActionClient can # publish and subscribe over ROS. rospy.init_node('CloseDoorActionClient') result = close_door_client() rospy.loginfo('Action Result --> %s' % result) except rospy.ROSInterruptException: print 'program interrupted before completion'
34.666667
96
0.723776
260bce48383d0e5b55e8c51313162dc7669c2755
290
java
Java
Robot Controller/src/com/viktor/vano/robot/controller/Variables.java
viktorvano/Remote-Robot
2c2a526d3d14ae130aaf487344934235fd61538a
[ "Apache-2.0" ]
1
2021-06-28T19:33:30.000Z
2021-06-28T19:33:30.000Z
Robot Controller/src/com/viktor/vano/robot/controller/Variables.java
viktorvano/Remote-Robot
2c2a526d3d14ae130aaf487344934235fd61538a
[ "Apache-2.0" ]
null
null
null
Robot Controller/src/com/viktor/vano/robot/controller/Variables.java
viktorvano/Remote-Robot
2c2a526d3d14ae130aaf487344934235fd61538a
[ "Apache-2.0" ]
2
2021-06-28T19:33:33.000Z
2022-01-06T03:58:13.000Z
package com.viktor.vano.robot.controller; public class Variables { public static String stringSTM32IP = "127.0.0.1"; public static String stringAndroidIP = "127.0.0.1"; public static int stm32StatusUpdatePeriod = 1000; public static double distanceProgressRange = 200.0; }
32.222222
55
0.744828
5fe48695f707db50608d592b620f3ce941bab97a
1,793
css
CSS
data/train/css/5fe48695f707db50608d592b620f3ce941bab97asquid_api_export_scheduler_widget.css
aliostad/deep-learning-lang-detection
d6b031f3ebc690cf2ffd0ae1b08ffa8fb3b38a62
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/css/5fe48695f707db50608d592b620f3ce941bab97asquid_api_export_scheduler_widget.css
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/css/5fe48695f707db50608d592b620f3ce941bab97asquid_api_export_scheduler_widget.css
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
.squid-api-admin-widgets-export-scheduler .modal-footer .ok { display: none; } .squid-api-export-scheduler-index-view button.create-job { float: right; margin-bottom: 5px; z-index: 1; position: relative; } .squid-api-export-scheduler-index-view table.dataTable thead th, .squid-api-export-scheduler-index-view table.dataTable tfoot th { font-weight: normal; text-align: center; } .squid-api-export-scheduler-index-view.table-responsive label, .squid-api-export-scheduler-index-view table.dataTable.no-footer { font-size: 10px; } .squid-api-export-scheduler-index-view table td { max-width: 220px; text-overflow: ellipsis; overflow: hidden; } .squid-api-export-scheduler-index-view table.dataTable.no-footer { border-bottom: 1px solid #dedcde; table-layout: fixed; } .squid-api-export-scheduler-index-view table.dataTable.no-footer button { margin-left: 25%; margin-top: 10%; } .squid-api-export-scheduler-index-view table thead tr { white-space: nowrap; } .squid-api-export-scheduler-index-view table tbody tr { word-wrap: break-word; } .squid-api-export-scheduler-index-view .dataTables_info { display: none; } .squid-api-export-scheduler-index-view table.dataTable thead th, .squid-api-export-scheduler-index-view table.dataTable thead td { border-bottom: 1px solid #c8c8c8; font-weight: bold; } .squid-api-export-scheduler-index-view .dataTables_wrapper { clear: none; } .squid-api-export-scheduler-index-view .col-xs-12 { padding-right: 0px; padding-left: 0px; } .squid-api-export-scheduler-index-view .dataTables_wrapper .dataTables_filter { float: left; } .squid-api-export-scheduler-index-view .form-inline > * { margin-left: 0px !important; margin-right: 0px !important; }
25.253521
130
0.718907
ba9aa038ad854232b854ddbcf74427052043022a
377
sql
SQL
openGaussBase/testcase/KEYWORDS/revoke/Opengauss_Function_Keyword_Revoke_Case0019.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/revoke/Opengauss_Function_Keyword_Revoke_Case0019.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/revoke/Opengauss_Function_Keyword_Revoke_Case0019.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
-- @testpoint:opengauss关键字revoke(非保留),作为外部数据源名 --关键字不带引号-成功 drop data source if exists revoke; create data source revoke; --清理环境 drop data source revoke; --关键字带双引号-成功 drop data source if exists "revoke"; create data source "revoke"; --清理环境 drop data source "revoke"; --关键字带单引号-合理报错 drop data source if exists 'revoke'; --关键字带反引号-合理报错 drop data source if exists `revoke`;
17.952381
47
0.748011
3322b23ef62b5cdc4901a6ad9820610da54caf96
1,140
kt
Kotlin
src/commonMain/kotlin/de/robolab/client/theme/utils/Theme.kt
pixix4/robolab-renderer
ca43b500246772071737a6caf7bac9a74779fe41
[ "MIT" ]
2
2020-08-20T10:20:47.000Z
2020-08-27T11:01:37.000Z
src/commonMain/kotlin/de/robolab/client/theme/utils/Theme.kt
pixix4/robolab-renderer
ca43b500246772071737a6caf7bac9a74779fe41
[ "MIT" ]
12
2020-03-19T14:44:23.000Z
2020-08-30T13:01:36.000Z
src/commonMain/kotlin/de/robolab/client/theme/utils/Theme.kt
pixix4/robolab-renderer
ca43b500246772071737a6caf7bac9a74779fe41
[ "MIT" ]
1
2022-03-25T04:42:18.000Z
2022-03-25T04:42:18.000Z
package de.robolab.client.theme.utils import de.robolab.client.theme.* enum class Theme(val group: String, val isDarkMode: Boolean?, val theme: ITheme) { LIGHT("Default", false, DefaultLightTheme), DARK("Default", true, DefaultDarkTheme), GRUVBOX_LIGHT("Gruvbox", false, GruvboxLightTheme), GRUVBOX_DARK("Gruvbox", true, GruvboxDarkTheme), NORD_LIGHT("Nord", false, NordLightTheme), NORD_DARK("Nord", true, NordDarkTheme); val label = group + when (isDarkMode) { true -> " dark" false -> " light" else -> "" } fun getThemeByMode(isDarkMode: Boolean?): Theme { if (this.isDarkMode == isDarkMode || this.isDarkMode == null || isDarkMode == null) { return this } val inverseTheme = values().find { it.group == group && it.isDarkMode == isDarkMode } if (inverseTheme != null) { return inverseTheme } // Break recursive call if (this == DEFAULT) { return this } return DEFAULT.getThemeByMode(isDarkMode) } companion object { val DEFAULT = LIGHT } }
27.804878
93
0.603509
9bffbd8ee81973123d117d6c137d84c3153ea0d4
2,573
js
JavaScript
lib/modjs-architecture/core/module.js
daytonn/modjs-architecture
889affa58e9899f157920e67c8ced71ace54b18b
[ "MIT" ]
null
null
null
lib/modjs-architecture/core/module.js
daytonn/modjs-architecture
889affa58e9899f157920e67c8ced71ace54b18b
[ "MIT" ]
null
null
null
lib/modjs-architecture/core/module.js
daytonn/modjs-architecture
889affa58e9899f157920e67c8ced71ace54b18b
[ "MIT" ]
null
null
null
//## Mod.Module // Modules are responsible for defining the specific behavior // of pieces of your application. All the functionality of your // application will be defined in modules. Mod.Module = (function() { // Each module contains a `dom` property which is a [Mod.DOM](dom.html) // instance to act as the module's API to the DOM. The `data` attribute // is a simple object literal that serves to store module-wide configuration // and properties (which prevents polluting the modules namespace and collision with public methods). // The `name` property is a convenience to be able to ask a module it's name. function Module(name) { if (isUndefined(name)) { throw new Error("Mod.Module(name): name is undefined"); } this.dom = new Mod.DOM; this.data = {}; this.name = name; } //### init // The init method is a placholder to be overwritten in each instance Module.prototype.init = function() {}; //### initWhenReady // Wait for the DOM to be ready and execute the actions Module.prototype.initWhenReady = function() { var mod = this; this.dom.callWhenReady(mod.init); }; //### elements // Serves as an api to set and get elements from the module's `dom` property. // passing a string retrieves an element, passing an object sets elements Module.prototype.elements = function(elements) { if (isUndefined(elements)) { return this.dom.cache; } // Look up cached element by string key if (isString(elements)) { var name = elements; return this.dom.cache[name]; } // cache the DOM objects else { this.dom.addElements(elements); } }; //### setData // Convenience method to add properties to the `data` property of the module Module.prototype.setData = function(key, value) { if (isUndefined(key)) { throw new Error(this.name + '.setData(key, value): key is undefined'); } if (isTypeof(String, key) && isUndefined(value)) { throw new SyntaxError(this.name + 'Module.setData(key, value): value is undefined'); } if (isTypeof(String, key)) { this.data[key] = value; } else if (isTypeof(Object, key)) { var data = key; for(var property in data) { this.data[property] = data[property]; } } return this; }; return Module; })();
32.56962
106
0.595803
5968048df46a58a4d383ff7fb56ed2c759398a03
587
h
C
Headers/FBAdProviderWithResponse.h
chuiizeet/stickers-daily-headers
d779869a384b0334e709ea24830bee5b063276a9
[ "MIT" ]
null
null
null
Headers/FBAdProviderWithResponse.h
chuiizeet/stickers-daily-headers
d779869a384b0334e709ea24830bee5b063276a9
[ "MIT" ]
null
null
null
Headers/FBAdProviderWithResponse.h
chuiizeet/stickers-daily-headers
d779869a384b0334e709ea24830bee5b063276a9
[ "MIT" ]
null
null
null
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import "FBAdProvider.h" @class FBAdProviderResponseAds; @interface FBAdProviderWithResponse : FBAdProvider { FBAdProviderResponseAds *_response; } @property(retain, nonatomic) FBAdProviderResponseAds *response; // @synthesize response=_response; - (void).cxx_destruct; - (void)loadAdWithEnvironmentData:(id)arg1; - (id)initWithResponse:(id)arg1 forAdAtIndex:(long long)arg2; - (id)init; @end
24.458333
98
0.737649
2a51228a53ccb1bc6ea923d20978e37a53b657ff
2,634
java
Java
jetty-security/src/test/java/org/eclipse/jetty/security/UserStoreTest.java
nicktrav/jetty.project
237d6280c3416df79f8ba68df2b3e58bfd2efb6f
[ "Apache-2.0" ]
null
null
null
jetty-security/src/test/java/org/eclipse/jetty/security/UserStoreTest.java
nicktrav/jetty.project
237d6280c3416df79f8ba68df2b3e58bfd2efb6f
[ "Apache-2.0" ]
null
null
null
jetty-security/src/test/java/org/eclipse/jetty/security/UserStoreTest.java
nicktrav/jetty.project
237d6280c3416df79f8ba68df2b3e58bfd2efb6f
[ "Apache-2.0" ]
13
2018-03-12T15:25:34.000Z
2019-11-10T07:05:50.000Z
// // ======================================================================== // Copyright (c) 1995-2018 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 // and Apache License v2.0 which accompanies this distribution. // // The Eclipse Public License is available at // http://www.eclipse.org/legal/epl-v10.html // // The Apache License v2.0 is available at // http://www.opensource.org/licenses/apache2.0.php // // You may elect to redistribute this code under either of these licenses. // ======================================================================== // package org.eclipse.jetty.security; import org.eclipse.jetty.server.UserIdentity; import org.eclipse.jetty.util.security.Credential; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.util.List; import java.util.Set; import java.util.stream.Collectors; public class UserStoreTest { UserStore userStore; @Before public void setup() { userStore = new UserStore(); } @Test public void addUser() { this.userStore.addUser( "foo", Credential.getCredential( "beer" ), new String[]{"pub"} ); Assert.assertEquals(1, this.userStore.getKnownUserIdentities().size()); UserIdentity userIdentity = this.userStore.getUserIdentity( "foo" ); Assert.assertNotNull( userIdentity ); Assert.assertEquals( "foo", userIdentity.getUserPrincipal().getName() ); Set<AbstractLoginService.RolePrincipal> roles = userIdentity.getSubject().getPrincipals( AbstractLoginService.RolePrincipal.class); List<String> list = roles.stream() .map( rolePrincipal -> rolePrincipal.getName() ) .collect( Collectors.toList() ); Assert.assertEquals(1, list.size()); Assert.assertEquals( "pub", list.get( 0 ) ); } @Test public void removeUser() { this.userStore.addUser( "foo", Credential.getCredential( "beer" ), new String[]{"pub"} ); Assert.assertEquals(1, this.userStore.getKnownUserIdentities().size()); UserIdentity userIdentity = this.userStore.getUserIdentity( "foo" ); Assert.assertNotNull( userIdentity ); Assert.assertEquals( "foo", userIdentity.getUserPrincipal().getName() ); userStore.removeUser( "foo" ); userIdentity = this.userStore.getUserIdentity( "foo" ); Assert.assertNull( userIdentity ); } }
37.098592
103
0.621488
43771786982af94d470ec60d1ce368c0ff7e34ae
8,043
go
Go
logex.go
hedzr/cmdr
5d4b6a244a768898bb207932c3ba2a83594f0ae2
[ "MIT" ]
116
2019-05-22T09:24:25.000Z
2022-03-29T06:32:47.000Z
logex.go
hedzr/cmdr
5d4b6a244a768898bb207932c3ba2a83594f0ae2
[ "MIT" ]
5
2019-05-24T12:19:08.000Z
2021-11-14T08:35:59.000Z
logex.go
hedzr/cmdr
5d4b6a244a768898bb207932c3ba2a83594f0ae2
[ "MIT" ]
10
2019-05-26T01:46:47.000Z
2021-12-01T21:22:01.000Z
// Copyright © 2019 Hedzr Yeh. package cmdr import ( "github.com/hedzr/cmdr/tool" "github.com/hedzr/log" "github.com/hedzr/logex" "github.com/hedzr/logex/build" "os" "strings" ) // WithLogx enables github.com/hedzr/logex,log integration // // Sample 1: // // WithLogx(log.NewDummyLogger()), // import "github.com/hedzr/log" // WithLogx(log.NewStdLogger()), // import "github.com/hedzr/log" // WithLogx(logrus.New()), // import "github.com/hedzr/logex/logx/logrus" // WithLogx(sugar.New()), // import "github.com/hedzr/logex/logx/zap/sugar" // WithLogx(zap.New()), // import "github.com/hedzr/logex/logx/zap" // // Sample 2: // // WithLogx(build.New(loggerConfig)), // import "github.com/hedzr/logex/build" // WithLogx(build.New(build.NewLoggerConfigWith(true, "zap", "debug")), // func WithLogx(logger log.Logger) ExecOption { return func(w *ExecWorker) { SetLogger(logger) } } // WithLogxShort enables github.com/hedzr/logex,log integration func WithLogxShort(enabled bool, backend, level string) ExecOption { return func(w *ExecWorker) { SetLogger(build.New(NewLoggerConfigWith(enabled, backend, level))) } } // Logger for cmdr var Logger log.Logger = log.NewDummyLogger() // SetLogger transfer an instance into log package-level value func SetLogger(l log.Logger) { Logger = l log.SetLogger(l) Set("logger-level", int(l.GetLevel())) } // WithLogex enables github.com/hedzr/logex integration // // Deprecated since v1.7.7, replace with WithLogx(). func WithLogex(lvl Level, opts ...logex.Option) ExecOption { return func(w *ExecWorker) { w.logexInitialFunctor = w.getWithLogexInitializer(lvl, opts...) } } // WithLogexSkipFrames specify the skip frames to lookup the caller // // Deprecated since v1.7.6, replace with WithLogx(). func WithLogexSkipFrames(skipFrames int) ExecOption { return func(w *ExecWorker) { w.logexSkipFrames = skipFrames } } // WithLogexPrefix specify a prefix string PS. // // In cmdr options store, we will load the logging options under this key path: // // app: // logger: // level: DEBUG # panic, fatal, error, warn, info, debug, trace, off // format: text # text, json, logfmt // target: default # default, todo: journal // // As showing above, the default prefix is "logger". // You can replace it with yours, via WithLogexPrefix(). // For example, when you compose WithLogexPrefix("logging"), the following entries would be applied: // // app: // logging: // level: DEBUG // format: // target: // // // Deprecated since v1.7.6, replace with WithLogx(). func WithLogexPrefix(prefix string) ExecOption { return func(w *ExecWorker) { w.logexPrefix = prefix } } // GetLoggerLevel returns the current logger level after parsed. func GetLoggerLevel() Level { l := GetIntR("logger-level") return Level(l) } func (w *ExecWorker) processLevelStr(lvl Level, opts ...logex.Option) (err error) { var lvlStr = GetStringRP(w.logexPrefix, "level", lvl.String()) var l Level l, err = ParseLevel(lvlStr) if l != OffLevel { if InDebugging() || GetDebugMode() { if l < DebugLevel { l = DebugLevel } } if GetBoolR("trace") || GetBool("trace") || ToBool(os.Getenv("TRACE")) { if l < TraceLevel { l = TraceLevel flog("--> processLevelStr: trace mode switched") } } } Set("logger-level", int(l)) logex.EnableWith(log.Level(l), opts...) // cmdr.Logger.Tracef("setup logger: lvl=%v", l) return } func (w *ExecWorker) getWithLogexInitializer(lvl Level, opts ...logex.Option) Handler { return func(cmd *Command, args []string) (err error) { if len(w.logexPrefix) == 0 { w.logexPrefix = "logger" } err = w.processLevelStr(lvl, opts...) // var foreground = GetBoolR("server.foreground") var target = GetStringRP(w.logexPrefix, "target") var format = GetStringRP(w.logexPrefix, "format") if len(target) == 0 { target = "default" } if len(format) == 0 { format = "text" } if target == "journal" { format = "text" } logex.SetupLoggingFormat(format, w.logexSkipFrames) //switch format { //case "json": // logrus.SetFormatter(&logrus.JSONFormatter{ // TimestampFormat: "2006-01-02 15:04:05.000", // DisableTimestamp: false, // PrettyPrint: false, // }) //default: // e := false // if w.logexSkipFrames > 0 { // e = true // } // logrus.SetFormatter(&formatter.TextFormatter{ // ForceColors: true, // DisableColors: false, // FullTimestamp: true, // TimestampFormat: "2006-01-02 15:04:05.000", // Skip: w.logexSkipFrames, // EnableSkip: e, // EnvironmentOverrideColors: true, // }) //} // can_use_log_file, journal_mode := ij(target, foreground) // l := GetLoggerLevel() // logrus.Tracef("Using logger: format=%v, lvl=%v, target=%v, formatter=%+v", format, l, target, logrus.StandardLogger().Formatter) return } } // InDebugging return the status if cmdr was built with debug mode / or the app running under a debugger attached. // // To enable the debugger attached mode for cmdr, run `go build` with `-tags=delve` options. eg: // // go run -tags=delve ./cli // go build -tags=delve -o my-app ./cli // // For Goland, you can enable this under 'Run/Debug Configurations', by adding the following into 'Go tool arguments:' // // -tags=delve // // InDebugging() is a synonym to IsDebuggerAttached(). // // NOTE that `isdelve` algor is from https://stackoverflow.com/questions/47879070/how-can-i-see-if-the-goland-debugger-is-running-in-the-program // //noinspection GoBoolExpressions func InDebugging() bool { return log.InDebugging() // isdelve.Enabled } // IsDebuggerAttached return the status if cmdr was built with debug mode / or the app running under a debugger attached. // // To enable the debugger attached mode for cmdr, run `go build` with `-tags=delve` options. eg: // // go run -tags=delve ./cli // go build -tags=delve -o my-app ./cli // // For Goland, you can enable this under 'Run/Debug Configurations', by adding the following into 'Go tool arguments:' // // -tags=delve // // IsDebuggerAttached() is a synonym to InDebugging(). // // NOTE that `isdelve` algor is from https://stackoverflow.com/questions/47879070/how-can-i-see-if-the-goland-debugger-is-running-in-the-program // //noinspection GoBoolExpressions func IsDebuggerAttached() bool { return log.InDebugging() // isdelve.Enabled } // InTesting detects whether is running under go test mode func InTesting() bool { return log.InTestingT(tool.SavedOsArgs) //if !strings.HasSuffix(tool.SavedOsArgs[0], ".test") && // !strings.Contains(tool.SavedOsArgs[0], "/T/___Test") { // // // [0] = /var/folders/td/2475l44j4n3dcjhqbmf3p5l40000gq/T/go-build328292371/b001/exe/main // // !strings.Contains(SavedOsArgs[0], "/T/go-build") // // for _, s := range tool.SavedOsArgs { // if s == "-test.v" || s == "-test.run" { // return true // } // } // return false // //} //return true } // InDevelopingTime detects whether is in developing time. // // If the main program has been built as a executable binary, we // would assumed which is not in developing time. // If GetDebugMode() is true, that's in developing time too. // func InDevelopingTime() (status bool) { return inDevelopingTime() } func inDevelopingTime() (status bool) { if GetDebugMode() { return true } if strings.Contains(tool.SavedOsArgs[0], "/T/") { status = true } return } // InDockerEnv detects whether is running within docker // container environment. func InDockerEnv() (status bool) { return isRunningInDockerContainer() } func isRunningInDockerContainer() bool { // docker creates a .dockerenv file at the root // of the directory tree inside the container. // if this file exists then the viewer is running // from inside a container so return true if _, err := os.Stat("/.dockerenv"); err == nil { return true } return false }
28.420495
144
0.671516
cb261a485036ccf942e623d65dbbf5345c875808
10,831
h
C
mlir/include/Conversion/LoSPNtoCPU/Vectorization/SLP/SLPGraph.h
lukasmweber/spn-compiler
acab827e8b8df69d1a4e83a209e14f62bd8d967e
[ "Apache-2.0" ]
8
2021-07-07T17:19:16.000Z
2022-03-30T06:08:44.000Z
mlir/include/Conversion/LoSPNtoCPU/Vectorization/SLP/SLPGraph.h
lukasmweber/spn-compiler
acab827e8b8df69d1a4e83a209e14f62bd8d967e
[ "Apache-2.0" ]
9
2021-06-01T15:03:19.000Z
2021-11-19T02:48:35.000Z
mlir/include/Conversion/LoSPNtoCPU/Vectorization/SLP/SLPGraph.h
lukasmweber/spn-compiler
acab827e8b8df69d1a4e83a209e14f62bd8d967e
[ "Apache-2.0" ]
2
2021-07-07T17:19:36.000Z
2022-02-28T15:08:36.000Z
//============================================================================== // This file is part of the SPNC project under the Apache License v2.0 by the // Embedded Systems and Applications Group, TU Darmstadt. // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. // SPDX-License-Identifier: Apache-2.0 //============================================================================== #ifndef SPNC_MLIR_INCLUDE_CONVERSION_LOSPNTOCPU_VECTORIZATION_SLP_SLPGRAPH_H #define SPNC_MLIR_INCLUDE_CONVERSION_LOSPNTOCPU_VECTORIZATION_SLP_SLPGRAPH_H #include "mlir/IR/Operation.h" #include "mlir/IR/BuiltinTypes.h" #include "llvm/ADT/BitVector.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" namespace mlir { namespace spn { namespace low { namespace slp { /// A superword models an SLP vector, which basically consists of a fixed amount of operations (depending on the /// hardware's supported vector width) that can be computed isomorphically. Every superword tracks its operand /// superwords, i.e. those that it would use for computation of its own elements. The term 'superword' was /// chosen because a 'vector' is quite overloaded in C++. class Superword { friend class SLPNode; public: explicit Superword(ArrayRef<Value> values); explicit Superword(ArrayRef<Operation*> operations); /// Retrieve the superword's value in the requested lane. Value getElement(size_t lane) const; /// Replace the superword's value in the requested lane with the provided value. void setElement(size_t lane, Value value); /// Retrieve the superword's value in the requested lane. Value operator[](size_t lane) const; /// Check if the superword contains the requested value. bool contains(Value value) const; /// Check if the superword is a leaf superword, i.e. if it does not have any superword operands. bool isLeaf() const; /// Check if the superword consists of constant operations only. bool constant() const; /// Return the number of lanes of the superword (its vector width). size_t numLanes() const; /// Return an iterator pointing to the first element of the superword. SmallVectorImpl<Value>::const_iterator begin() const; /// Return an iterator pointing after the last element of the superword. SmallVectorImpl<Value>::const_iterator end() const; /// Return the number of superword operands. size_t numOperands() const; /// Append an operand superword to the internal list of operand superwords. void addOperand(std::shared_ptr<Superword> operandWord); /// Retrieve the operand superword at the index's position (the index-th operand). Superword* getOperand(size_t index) const; /// Retrieve all operands of the superword. SmallVector<Superword*, 2> getOperands() const; /// Check if the superword has had its semantics altered in the requested lane. This can happen if the /// computation chain of its scalar element in that lane does not correspond to the computation chain of the /// elements in the superword's operand chain anymore (e.g. through reordering of elements in the superword's /// operands). bool hasAlteredSemanticsInLane(size_t lane) const; /// Mark the element in the specific lane as semantically altered. void markSemanticsAlteredInLane(size_t lane); /// Returns a MLIR vector type corresponding to the superword. VectorType getVectorType() const; /// Return the MLIR type of the superword's elements. Type getElementType() const; /// Return the location of the superword in the program. This always corresponds to the location of the first /// element. Location getLoc() const; private: SmallVector<Value, 4> values; SmallVector<std::shared_ptr<Superword>, 2> operandWords; /// Stores a bit for each lane. If the bit is set to true, the semantics of that lane have been altered and /// the value that is present there is not actually being computed anymore. llvm::BitVector semanticsAltered; }; /// The dependency graph models flow dependencies of an SLP graph. Its nodes are superwords. Edges exist between /// superwords if at least one element of the source superword 'flows into' at least one element in the /// destination superword (i.e. it appears in the computation chain of the destination element). struct DependencyGraph { /// Return the number of nodes in the dependency graph. size_t numNodes() const; /// Return the number of edges in the dependency graph. size_t numEdges() const; /// Return the dependency graph's superwords in post order. Here, a superword s1 always appears before an /// other superword s2 if there is no dependency edge from s2 to s1. If there is no edge between them, the /// superwords are sorted by how often they are used as destination of an edge. SmallVector<Superword*> postOrder() const; /// The superwords contained in the dependency graph. SmallPtrSet<Superword*, 32> nodes; /// A mapping of superwords to their outgoing edges. DenseMap<Superword*, SmallPtrSet<Superword*, 1>> dependencyEdges; }; /// This class models the nodes in an SLP graph. Each SLP node consists of one or more superwords and can have /// zero or more operand nodes. It can be understood as a kind of superstructure around the graph modeled by /// the superwords themselves. class SLPNode { public: explicit SLPNode(std::shared_ptr<Superword> superword); /// Add a superword to the node. This turns the node into a 'multinode'. void addSuperword(std::shared_ptr<Superword> superword); /// Retrieve the node's superword at the requested index. std::shared_ptr<Superword> getSuperword(size_t index) const; /// Retrieve the element of the superword at the requested index and lane. Value getValue(size_t lane, size_t index) const; /// Replace the element of the superword at the requested index and lane with the provided value. void setValue(size_t lane, size_t index, Value newValue); /// Check if the node contains the requested value. bool contains(Value value) const; /// Check if the provided superword is the root superword of the node (the very first one). bool isSuperwordRoot(Superword const& superword) const; /// Return the number of lanes in the node (i.e. its vector width). size_t numLanes() const; /// Return the number of superwords in the node. size_t numSuperwords() const; /// Return the number of operand nodes. size_t numOperands() const; /// Add an operand node to the node. void addOperand(std::shared_ptr<SLPNode> operandNode); /// Return the operand at the requested index. SLPNode* getOperand(size_t index) const; /// Return all operands of the node. ArrayRef<std::shared_ptr<SLPNode>> getOperands() const; private: SmallVector<std::shared_ptr<Superword>> superwords; SmallVector<std::shared_ptr<SLPNode>> operandNodes; }; /// The SLP graph models a graph whose nodes are SLP nodes and whose edges are computation flows between the /// nodes' superwords. class SLPGraph { friend class SLPGraphBuilder; public: /// Construct a new SLP graph based on the provided seed. SLPGraph(ArrayRef<Value> seed, unsigned maxNodeSize, unsigned maxLookAhead, bool allowDuplicateElements, bool allowTopologicalMixing, bool useXorChains ); /// Return the very last superword of the graph's computation chain (i.e. the one that contains the seed /// operations). std::shared_ptr<Superword> getRootSuperword() const; /// Return the very last SLP node of the graph's computation chain. std::shared_ptr<SLPNode> getRootNode() const; /// Construct a dependency graph based on the graph. DependencyGraph dependencyGraph() const; private: std::shared_ptr<Superword> superwordRoot; std::shared_ptr<SLPNode> nodeRoot; }; namespace graph { /// Walks through a graph rooted at node 'root' in post order and applies function 'f' to every visited node. template<typename Node, typename Function> void walk(Node* root, Function f) { // Use a stack-based approach instead of recursion. Whenever a (node, true) pair is popped from the stack, // the function is called on the node since then its operands have all been handled already. // TL;DR: false = visit node operands first, true = finished SmallVector<std::pair<Node*, bool>> worklist; // Prevents looping endlessly in case a graph contains loops. llvm::SmallSet<Node*, 32> finishedNodes; worklist.emplace_back(root, false); while (!worklist.empty()) { if (finishedNodes.contains(worklist.back().first)) { worklist.pop_back(); continue; } auto* node = worklist.back().first; bool operandsDone = worklist.back().second; worklist.pop_back(); if (operandsDone) { finishedNodes.insert(node); f(node); } else { worklist.emplace_back(node, true); for (size_t i = node->numOperands(); i-- > 0;) { worklist.emplace_back(node->getOperand(i), false); } } } } /// Construct a post-order version of the graph rooted at the provided node. template<typename Node> SmallVector<Node*> postOrder(Node* root) { SmallVector<Node*> order; walk(root, [&](Node* node) { order.template emplace_back(node); }); return order; } } } } } } #endif //SPNC_MLIR_INCLUDE_CONVERSION_LOSPNTOCPU_VECTORIZATION_SLP_SLPGRAPH_H
47.924779
120
0.628751
41ac16561b01a8453472de4f60b3681f14323092
115
h
C
cpp/include/checksum.h
dvetutnev/fart-checker
bfa6effa2cd6adecb7571728c9498e76d862a1ce
[ "MIT" ]
null
null
null
cpp/include/checksum.h
dvetutnev/fart-checker
bfa6effa2cd6adecb7571728c9498e76d862a1ce
[ "MIT" ]
null
null
null
cpp/include/checksum.h
dvetutnev/fart-checker
bfa6effa2cd6adecb7571728c9498e76d862a1ce
[ "MIT" ]
null
null
null
#pragma once #include <vector> namespace fc { unsigned char calcChecksum(const std::vector<unsigned char>&); }
11.5
62
0.730435
90754a50d0d8cab5cb7eb6fc7575d0895b23c771
2,632
py
Python
rxbp/observers/connectableobserver.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
24
2018-11-22T21:04:49.000Z
2021-11-08T11:18:09.000Z
rxbp/observers/connectableobserver.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
1
2019-02-06T15:58:46.000Z
2019-02-12T20:31:50.000Z
rxbp/observers/connectableobserver.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
1
2021-01-26T12:41:37.000Z
2021-01-26T12:41:37.000Z
from dataclasses import dataclass from rxbp.acknowledgement.acksubject import AckSubject from rxbp.acknowledgement.continueack import ContinueAck, continue_ack from rxbp.acknowledgement.operators.map import _map from rxbp.acknowledgement.operators.mergeall import _merge_all from rxbp.acknowledgement.single import Single from rxbp.acknowledgement.stopack import StopAck, stop_ack from rxbp.observer import Observer from rxbp.scheduler import Scheduler from rxbp.typing import ElementType @dataclass class ConnectableObserver(Observer): underlying: Observer # scheduler: Scheduler # todo: remote this def __post_init__(self): self.root_ack = AckSubject() self.connected_ack = self.root_ack self.is_connected = False self.was_canceled = False self.is_volatile = False def connect(self): self.is_connected = True self.root_ack.on_next(continue_ack) def on_next(self, elem: ElementType): if not self.is_connected: def __(v): if isinstance(v, ContinueAck): ack = self.underlying.on_next(elem) return ack else: return StopAck() new_ack = AckSubject() # _merge_all(_map(_observe_on(self.connected_ack, scheduler=self.scheduler), func=__)).subscribe(new_ack) _merge_all(_map(self.connected_ack, func=__)).subscribe(new_ack) self.connected_ack = new_ack return self.connected_ack elif not self.was_canceled: ack = self.underlying.on_next(elem) return ack else: return stop_ack def on_error(self, err): self.was_canceled = True if not self.is_connected: class ResultSingle(Single): def on_next(_, v): if isinstance(v, ContinueAck): self.underlying.on_error(err) # _observe_on(self.connected_ack, scheduler=self.scheduler).subscribe(ResultSingle()) self.connected_ack.subscribe(ResultSingle()) else: self.underlying.on_error(err) def on_completed(self): if not self.is_connected: class ResultSingle(Single): def on_next(_, v): if isinstance(v, ContinueAck): self.underlying.on_completed() # _observe_on(self.connected_ack, scheduler=self.scheduler).subscribe(ResultSingle()) self.connected_ack.subscribe(ResultSingle()) else: self.underlying.on_completed()
34.181818
117
0.637158
18bacba2e57deb9d49cc2b232311d3cff831d700
31,321
rb
Ruby
spec/active_settings/base_spec.rb
jbox-web/active-settings
cb6c4d50aeb9702f6c12a180ed20a160c83e2967
[ "MIT" ]
1
2020-04-22T00:38:26.000Z
2020-04-22T00:38:26.000Z
spec/active_settings/base_spec.rb
jbox-web/active-settings
cb6c4d50aeb9702f6c12a180ed20a160c83e2967
[ "MIT" ]
null
null
null
spec/active_settings/base_spec.rb
jbox-web/active-settings
cb6c4d50aeb9702f6c12a180ed20a160c83e2967
[ "MIT" ]
null
null
null
require 'spec_helper' RSpec.describe ActiveSettings::Base do context 'when source file is nil' do let(:settings) do Class.new(ActiveSettings::Base) do end end it 'should raise an error' do expect { settings.instance }.to raise_error(ActiveSettings::Error::SourceFileNotDefinedError) end end context 'without namespace' do let(:settings) do Class.new(ActiveSettings::Base) do source get_fixture_path('settings.yml') end end describe '#source' do it 'should delegate to class method' do expect(settings.source).to eq get_fixture_path('settings.yml') end end describe '#namespace' do let(:settings) do Class.new(ActiveSettings::Base) do source get_fixture_path('settings.yml') namespace 'foo' end end it 'should delegate to class method' do expect(settings.namespace).to eq 'foo' end end describe 'settings accesors' do it 'should access settings by method' do expect(settings.foo).to eq 'bar' end it 'should access nested settings by method' do expect(settings.nested.foo).to eq 'bar' end it 'should access settings by string key' do expect(settings['foo']).to eq 'bar' end it 'should access nested settings by string key' do expect(settings['nested']['foo']).to eq 'bar' end it 'should access settings by symbol key' do expect(settings[:foo]).to eq 'bar' end it 'should access nested settings by symbol key' do expect(settings[:nested][:foo]).to eq 'bar' end end describe '#key?' do context 'when string key exist' do it 'should return true' do expect(settings.key?('foo')).to be true end end context 'when string key dont exist' do it 'should return false' do expect(settings.key?('bar')).to be false end end context 'when symbol key exist' do it 'should return true' do expect(settings.key?(:foo)).to be true end end context 'when symbol key dont exist' do it 'should return false' do expect(settings.key?(:bar)).to be false end end context 'when nested string key exist' do it 'should return true' do expect(settings.nested.key?('foo')).to be true end end context 'when nested string key dont exist' do it 'should return false' do expect(settings.nested.key?('bar')).to be false end end context 'when nested symbol key exist' do it 'should return true' do expect(settings.nested.key?(:foo)).to be true end end context 'when nested symbol key dont exist' do it 'should return false' do expect(settings.nested.key?(:bar)).to be false end end end describe '#fetch' do context 'when string key exist' do it 'should return value' do expect(settings.fetch('foo')).to eq 'bar' end end context 'when string key dont exist' do it 'should return nil' do expect(settings.fetch('bar')).to be nil end end context 'when symbol key exist' do it 'should return value' do expect(settings.fetch(:foo)).to eq 'bar' end end context 'when symbol key dont exist' do it 'should return nil' do expect(settings.fetch(:bar)).to be nil end end context 'when nested string key exist' do it 'should return value' do expect(settings.nested.fetch('foo')).to eq 'bar' end end context 'when nested string key dont exist' do it 'should return nil' do expect(settings.nested.fetch('bar')).to be nil end end context 'when nested symbol key exist' do it 'should return value' do expect(settings.nested.fetch(:foo)).to eq 'bar' end end context 'when nested symbol key dont exist' do it 'should return nil' do expect(settings.nested.fetch(:bar)).to be nil end end context 'when key dont exist and a default value is given' do it 'should return default value' do expect(settings.fetch(:path, 'foo')).to eq 'foo' end end context 'when key dont exist and a block is given' do it 'should yield block' do expect(settings.fetch(:path){ 'foo' }).to eq 'foo' end end end describe '#dig' do context 'when nested string key exist' do it 'should return value' do expect(settings.dig('nested', 'foo')).to eq 'bar' end end context 'when nested string key dont exist' do it 'should return nil' do expect(settings.dig('nested', 'bar')).to be nil end end context 'when nested symbol key exist' do it 'should return value' do expect(settings.dig(:nested, :foo)).to eq 'bar' end end context 'when nested symbol key dont exist' do it 'should return nil' do expect(settings.dig(:nested, :bar)).to be nil end end end describe '#each' do it 'should iterate on Settings' do expect(settings.each.to_h).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: ActiveSettings::Config.new(foo: 'bar'), deep: ActiveSettings::Config.new(nested: ActiveSettings::Config.new(warn_threshold: 100)), ary: [ 'foo', 'bar', ], ary_of_hash: [ ActiveSettings::Config.new(foo: 'bar'), ActiveSettings::Config.new(baz: 'bar'), ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], ActiveSettings::Config.new(foo: 'bar'), ], embedded_ruby: 6 }) end end describe '#to_hash' do it 'should return config as hash' do expect(settings.to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar' }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end describe '#to_json' do it 'should return config as json' do expect(settings.to_json).to eq '{"bool_true":true,"bool_false":false,"string":"foo","integer":1,"float":1.0,"foo":"bar","nested":{"foo":"bar"},"deep":{"nested":{"warn_threshold":100}},"ary":["foo","bar"],"ary_of_hash":[{"foo":"bar"},{"baz":"bar"}],"ary_of_ary":[["foo","bar"],["baz","bar"]],"ary_of_mix":[["foo","bar"],{"foo":"bar"}],"embedded_ruby":6}' expect(settings.send(:to_json)).to eq '{"bool_true":true,"bool_false":false,"string":"foo","integer":1,"float":1.0,"foo":"bar","nested":{"foo":"bar"},"deep":{"nested":{"warn_threshold":100}},"ary":["foo","bar"],"ary_of_hash":[{"foo":"bar"},{"baz":"bar"}],"ary_of_ary":[["foo","bar"],["baz","bar"]],"ary_of_mix":[["foo","bar"],{"foo":"bar"}],"embedded_ruby":6}' end end describe '.fail_on_missing' do context 'when fail_on_missing is false' do it 'should not raise error when accessing missing key' do expect { settings.path }.to_not raise_error end it 'should not raise error when accessing missing nested key' do expect { settings.nested.path }.to_not raise_error end it 'should return nil when accessing missing nested key' do expect(settings.nested.path).to be nil end end context 'when fail_on_missing is true' do before { ActiveSettings.fail_on_missing = true } after { ActiveSettings.fail_on_missing = false } it 'should raise error when accessing missing key' do expect { settings.path }.to raise_error(KeyError).with_message('key not found: :path') end it 'should raise error when accessing nested missing key' do expect { settings.nested.path }.to raise_error(KeyError).with_message('key not found: :path') end end end describe '#merge' do it 'should merge hash' do expect(settings.merge!(baz: 'bar').to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', baz: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar', ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end it 'should merge nested hash' do expect(settings.merge!(nested: { baz: 'bar' }).to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', baz: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar', ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end context 'when overwrite_arrays is true (default)' do it 'should merge/overwrite nested ary' do expect(settings.merge!(ary: ['baz']).to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'baz', ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end it 'should merge/overwrite nested ary of hash' do expect(settings.merge!(ary_of_hash: [{ foo: 'bar' }]).to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar', ], ary_of_hash: [ { foo: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end it 'should merge/overwrite nested ary of ary' do expect(settings.merge!(ary_of_ary: [['foo', 'bar']]).to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar', ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end context 'when overwrite_arrays is false' do before { ActiveSettings.overwrite_arrays = false } after { ActiveSettings.overwrite_arrays = true } it 'should merge/extend nested ary' do expect(settings.merge!(ary: ['baz']).to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar', 'baz', ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end it 'should merge/extend nested ary of hash' do expect(settings.merge!(ary_of_hash: [{ foo: 'baz' }]).to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar', ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, { foo: 'baz' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end it 'should merge/extend nested ary of ary' do expect(settings.merge!(ary_of_ary: [['foo', 'baz']]).to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar', ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ['foo', 'baz'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end end describe '#validate!' do context 'when schema is not defined' do it 'should do nothing' do expect { settings.validate! }.to_not raise_error end end context 'when schema is defined' do let(:with_valid_schema) do Class.new(ActiveSettings::Base) do source get_fixture_path('settings.yml') schema do required(:foo).filled required(:nested).schema do required(:foo).filled end end end end let(:with_invalid_schema) do Class.new(ActiveSettings::Base) do source get_fixture_path('settings.yml') schema do required(:bar).filled end end end context 'when schema is valid' do it 'should validate settings' do expect { with_valid_schema.validate! }.to_not raise_error end end context 'when schema is invalid' do it 'should validate settings' do expect { with_invalid_schema.validate! }.to raise_error(ActiveSettings::Validation::Error) end end end end context 'when use_env is true' do context 'with boolean' do context 'when boolean is false' do before do ActiveSettings.use_env = true ENV['SETTINGS.BOOL_TRUE'] = 'false' end after do ActiveSettings.use_env = false ENV.delete('SETTINGS.BOOL_TRUE') end it 'should load settings from env vars' do expect(settings.to_hash).to eq({ bool_true: false, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end context 'when boolean is true' do before do ActiveSettings.use_env = true ENV['SETTINGS.BOOL_TRUE'] = 'true' end after do ActiveSettings.use_env = false ENV.delete('SETTINGS.BOOL_TRUE') end it 'should load settings from env vars' do expect(settings.to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end end context 'with nested hash' do before do ActiveSettings.use_env = true ENV['SETTINGS.NESTED.BAZ'] = 'bar' end after do ActiveSettings.use_env = false ENV.delete('SETTINGS.NESTED.BAZ') end it 'should load settings from env vars' do expect(settings.to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', baz: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end context 'with deep nested hash' do before do ActiveSettings.use_env = true ENV['SETTINGS.DEEP.NESTED.BAZ'] = 'bar' end after do ActiveSettings.use_env = false ENV.delete('SETTINGS.DEEP.NESTED.BAZ') end it 'should load settings from env vars' do expect(settings.to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, baz: 'bar', } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end context 'when ENV is empty' do before do ActiveSettings.use_env = true @old_env = ENV.to_hash ENV.clear end after do ActiveSettings.use_env = false ENV.update(@old_env) end it 'should load settings from env vars' do expect(settings.to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end context 'when env_prefix is nil' do before do ActiveSettings.use_env = true ActiveSettings.env_prefix = nil end after do ActiveSettings.use_env = false ActiveSettings.env_prefix = 'SETTINGS' end it 'should raise error' do expect { settings.to_hash }.to raise_error(ActiveSettings::Error::EnvPrefixNotDefinedError) end end end end context 'with namespace' do context 'when namespace is development' do let(:settings) do Class.new(ActiveSettings::Base) do source get_fixture_path('settings_with_namespace.yml') namespace 'development' end end describe '#to_hash' do it 'should return config as hash' do expect(settings.to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'baz', nested: { foo: 'bar' }, deep: { nested: { warn_threshold: 50, warn_account: 'foo' } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end context 'when use_env is true' do before do ActiveSettings.use_env = true ENV['SETTINGS.DEEP.NESTED.WARN_ACCOUNT'] = 'bar' end after do ActiveSettings.use_env = false ENV.delete('SETTINGS.DEEP.NESTED.WARN_ACCOUNT') end it 'should load settings from env vars' do expect(settings.to_hash).to eq({ bool_true: true, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'baz', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 50, warn_account: 'bar' } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end end context 'when namespace is production' do let(:settings) do Class.new(ActiveSettings::Base) do source get_fixture_path('settings_with_namespace.yml') namespace 'production' schema do required(:foo).filled required(:nested).schema do required(:foo).filled end required(:deep).schema do required(:nested).schema do required(:warn_threshold).filled required(:warn_account).filled end end end end end describe '#to_hash' do it 'should return config as hash' do expect(settings.to_hash).to eq({ bool_true: false, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar' }, deep: { nested: { warn_threshold: 100, warn_account: 'foo', } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end context 'when use_env is true' do before do ActiveSettings.use_env = true ENV['SETTINGS.DEEP.NESTED.WARN_ACCOUNT'] = 'bar' end after do ActiveSettings.use_env = false ENV.delete('SETTINGS.DEEP.NESTED.WARN_ACCOUNT') end it 'should load settings from env vars' do expect(settings.to_hash).to eq({ bool_true: false, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar', }, deep: { nested: { warn_threshold: 100, warn_account: 'bar' } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end end end context 'with custom settings' do let(:settings) do Class.new(ActiveSettings::Base) do source get_fixture_path('settings_with_namespace.yml') namespace 'production' def load_settings! super load_storage_config! end def load_storage_config! hash = {} %w[private public].each do |prefix| hash["#{prefix}_documents"] = {} hash["#{prefix}_documents"]['path'] = "/documents/#{prefix}" hash["#{prefix}_documents"]['size'] = -> { "size_of_#{prefix}" } hash["#{prefix}_documents"]['test'] = [-> { "lambda2" }, -> { "lambda1" }] end merge!(hash) end end end describe '#to_hash' do it 'should return config as hash' do expect(settings.to_hash).to eq({ bool_true: false, bool_false: false, string: 'foo', integer: 1, float: 1.0, foo: 'bar', nested: { foo: 'bar' }, private_documents: { path: '/documents/private', size: 'size_of_private', test: [ 'lambda2', 'lambda1', ] }, public_documents: { path: '/documents/public', size: 'size_of_public', test: [ 'lambda2', 'lambda1', ] }, deep: { nested: { warn_threshold: 100, warn_account: 'foo', } }, ary: [ 'foo', 'bar' ], ary_of_hash: [ { foo: 'bar' }, { baz: 'bar' }, ], ary_of_ary: [ ['foo', 'bar'], ['baz', 'bar'], ], ary_of_mix: [ ['foo', 'bar'], { foo: 'bar' }, ], embedded_ruby: 6 }) end end end end
25.5057
368
0.414802
475dbe442ac4d60d8d5487404cb5ee2524ee1652
28,366
html
HTML
_site/privacy/index.html
PrashantYadav/xosjapps
8212a92bebb780671f588ecf1a69ac45087403c9
[ "Apache-2.0" ]
1
2017-04-26T07:09:50.000Z
2017-04-26T07:09:50.000Z
_site/privacy/index.html
PrashantYadav/xosjapps
8212a92bebb780671f588ecf1a69ac45087403c9
[ "Apache-2.0" ]
null
null
null
_site/privacy/index.html
PrashantYadav/xosjapps
8212a92bebb780671f588ecf1a69ac45087403c9
[ "Apache-2.0" ]
null
null
null
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>privacy</title> <meta name="viewport" content="width=device-width"> <meta name="description" content="Android app developement startup. We make the best android apps. Root Checker, Gender Analyzer, Cricket Schedule"> <meta name="author" content="Yadav Prashant"> <link rel="canonical" href="http://localhost:4000/privacy/"> <link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml"> <!-- Custom CSS & Bootstrap Core CSS - Uses Bootswatch Flatly Theme: http://bootswatch.com/flatly/ --> <link rel="stylesheet" href="/xosjapps/style.css" > <!-- Google verification --> <!-- Bing Verification --> <!-- Custom Fonts --> <link rel="stylesheet" href="/xosjapps/css/font-awesome/css/font-awesome.min.css"> <link href="//fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css"> <link href="//fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body id="page-top" class="index"> <!-- Navigation --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header page-scroll"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#page-top">Xosj Apps</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li class="hidden"> <a href="#page-top"></a> </li> <li class="page-scroll"> <a href="#portfolio">Portfolio</a> </li> <li class="page-scroll"> <a href="#about">About</a> </li> <li class="page-scroll"> <a href="#contact">Contact</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container-fluid --> </nav> <section > <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> </br></br> <h2>Privacy</h2> <br/><br/> </div> </div> <div class="row"> <div class="col-lg-12"> <h5>Released on May 15 2017</h5> <p> Xosj Apps respect your preferences concerning the treatment of Information that we may collect. This Privacy Policy explains what kind of information we collect, use, share and the security of your information in relation to our mobile applications (“Applications” or “Apps”) and mobile services (“Services”). Please take a moment to familiarize yourself with our privacy practices. <br/><br/> BY INSTALLING THE APPS ON YOUR MOBILE DEVICE, ENTERING INTO, CONNECTING TO, ACCESSING AND/OR USING THE APPS, YOU AGREE TO THE TERMS AND CONDITIONS SET FORTH IN THIS PRIVACY POLICY, INCLUDING TO THE POSSIBLE COLLECTION AND PROCESSING OF YOUR INFORMATION AND YOU ARE CONSENTING TO THE USE OF COOKIES AND OTHER TRACKING TECHNOLOGIES ON YOUR DEVICE. PLEASE NOTE: IF YOU OR, AS APPLICABLE, YOUR LEGAL GUARDIAN, DISAGREE TO ANY TERM PROVIDED HEREIN, YOU MAY NOT INSTALL, ACCESS AND/OR USE THE APPS AND YOU ARE REQUESTED TO PROMPTLY ERASE OR UNINSTALL THEM, AND ANY PART THEREOF, FROM YOUR MOBILE DEVICE. <br/><br/><br> <h4>PERSONAL INFORMATION</h4> Personal information is data that can be used to uniquely identify or contact a single person. We DO NOT collect, store or use any personal information while you visit, download or upgrade our website or our products, excepting the personal information that you submit to us when you create a user account, send an error report or participate in online surveys and other activities. Only for the following purposes that we may use personal information submitted by you: help us develop, deliver, and improve our products and services and supply higher quality service; manage online surveys and other activities you've participated in. In the following circumstances, we may disclose your personal information according to your wish or regulations by law: <br>(1) Your prior permission; <br>(2) By the applicable law within or outside your country of residence, legal process, litigation requests; <br>(3) By requests from public and governmental authorities; <br>(4) To protect our legal rights and interests. <br><br><br> <h4>NON-PERSONAL INFORMATION</h4> Non-personal information is data in a form that does not permit direct association with any specific individual, including but not limited to your device and app history, contacts, SMS, location, camera, photos, media, files, wi-fi connection information, device ID and call information, calendar, CPN model, memory size, your phone IMEI number, phone model, install, uninstall, frequency of use, etc. We may collect and use non-personal information in the following circumstances. To have a better understanding in user's behavior, solve problems in products and services, improve our products, services and advertising, we may collect non-personal information such as the data of install and uninstall (including list of installed apps), frequency of use, country, equipment and channel. If non-personal information is combined with personal information, we treat the combined information as personal information for the purposes of this Privacy Policy. <br><br><br> <h4>PROTECTION OF PERSONAL INFORMATION</h4> We take precautions' including administrative, technical, and physical measures' to safeguard your personal information against loss, theft, and misuse, as well as against unauthorized access, disclosure, alteration, and destruction. However, please note that although we take reasonable measures to protect your information, no app, website, Internet transmission, computer system or wireless connection is completely secured. When you use some products, services, or post your comments, the personal information you share is visible to other users and can be read, collected, or used by them. You are responsible for the personal information you choose to submit in these instances. Please take care when using these features. <br><br><br> <h4>CHILDREN</h4> We understand the importance of taking extra precautions to protect the privacy and safety of children during using our products and services. We do not collect, use or disclose personal information from children. If you are under 18, you may use our website with accompany of your parents or guardians. <br><br><br> <h4>What information we collect</h4> Our primary purpose in collecting information is to provide you with a safe, efficient and customized experience and to provide you with Services and features that better meet your needs or requests. <br>1. Personal Information <br> We do NOT collect any Personal Information about you. "Personal Information" means personally identifiable information, such as your name, email address, physical address, calendar entries, contact entries, files, photos, etc. <br>2. Non-Personal Information<br> We collect non-personal information about your use of our Apps and aggregated information regarding the usages of the Apps. "Non-Personal Information" means information that is of an anonymous nature, such as the type of mobile device you use, your mobile devices unique device ID, the IP address of your mobile device, your mobile operating system, and information about the way you use the Applications. <br/><br/><br/> <h4>How we use your information we collect</h4> 1. Personal Information.<br> We do NOT collect and use Personal Information in any way. <br>2. Non-personal Information.<br> Generally non-personal information is used internally to monitor and improve the Services, to perform analyses of the behavior of our users, to measure user demographics and interests, to describe our services to third parties such as advertisers and to analyze how and where best to use our resources. We do not combine Non-Personal Information with Personal Information. <br/><br/><br/> <h4>How we share the information we collect</h4> 1. Personal Information. <br> We do NOT collect and share Personal Information in any way.<br> 2. Non-personal information. <br> We accept advertisements from Third Parties ad networks which may be displayed in our Apps. We may share certain information with third-party advertisers, ad networks and ad platforms ("Advertising Entities") to develop and deliver targeted advertising in the Apps. We may also allow Advertising Entities to collect non-personal information within the Services which they may share with us, including your device identifier, device type, device brand, device model, network type, device language, and IP address. Advertising entities may also collect non-personal information related to the performance of the advertisements, such as how many times an advertisement is shown, how long an advertisement is viewed, and any click-throughs of an advertisement. <br/><br/><br/> <h4>Links to third-party websites and services</h4> The Apps may contain links to other websites and online services, including third-party advertisements. If you choose to click through to one of these other websites or online services, please note that any information you may provide will be subject to the privacy policy and other terms and conditions of that websites or service, and not to this Privacy Policy. We do not control third-party websites or services, and the fact that a link to such a website or service appears in the Apps does not mean that we endorse them or have approved their policies or practices relating to user information. Before providing any information to any third-party website or service, we encourage you to review the privacy policy and other terms and conditions of that website or service. You agree that Xosj Apps will have no liability for any matters relating to a third-party website or service that you provide information to, including their collection and handling of that information. <br/><br/><br/> <h4>Compliance with laws and law enforcement</h4> Xosj Apps reserves the right to share your information with third parties if we believe such action is necessary in order to: (1) conform with the requirements of the law or to comply with legal process served upon us; (2) protect or defend our legal rights or property (3) investigate, prevent or take action regarding illegal activities, suspected fraud, situations involving potential threats to the physical safety of any person or violations of the terms and conditions of using our Apps and Services. <br/><br/><br/> <h4>Contact us</h4> If you have any questions regarding privacy while using the Apps, or have questions about our practices, please contact us via email at xosjapps@gmail.com</p> </div> </div> </div> </section> <!-- Footer --> <footer class="text-center"> <div class="footer-above"> <div class="container"> <div class="row"> <div class="footer-col col-md-4"> <h3>Beverly Hills</h3> <p> 3481 Melrose Place <br> Beverly Hills, CA 90210 <br> </p> </div> <div class="footer-col col-md-4"> <h3>Around the Web</h3> <ul class="list-inline"> <li> <a href="http://twitter.com/jekyllrb" class="btn-social btn-outline"><i class="fa fa-fw fa-twitter"></i></a> </li> <li> <a href="" class="btn-social btn-outline"><i class="fa fa-fw fa-facebook"></i></a> </li> <li> <a href="http://stackoverflow.com/questions/tagged/jekyll" class="btn-social btn-outline"><i class="fa fa-fw fa-stack-overflow"></i></a> </li> <li> <a href="http://bitbucket.org/jekyll" class="btn-social btn-outline"><i class="fa fa-fw fa-bitbucket"></i></a> </li> <li> <a href="http://github.com/jekyll" class="btn-social btn-outline"><i class="fa fa-fw fa-github"></i></a> </li> </ul> </div> <div class="footer-col col-md-4"> <h3>Credits</h3> <p>Freelancer is a free to use, open source Bootstrap theme created by <a href="http://startbootstrap.com">Start Bootstrap</a>.</p> </div> </div> </div> </div> <div class="footer-below"> <div class="container"> <div class="row"> <div class="col-lg-9"> Copyright &copy; Xosj Apps 2017 </div> <div class="col-lg-3"> <a href="/xosjapps/privacy">Privacy</a> </div> </div> </div> </div> </footer> <!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) --> <div class="scroll-top page-scroll visible-xs visible-sm"> <a class="btn btn-primary" href="#page-top"> <i class="fa fa-chevron-up"></i> </a> </div> <!-- Portfolio Modals --> <div class="portfolio-modal modal fade" id="portfolioModal-1" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <div class="close-modal" data-dismiss="modal"> <div class="lr"> <div class="rl"> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <div class="modal-body"> <h2>Project 1</h2> <hr class="star-primary"> <img src="img/portfolio/cabin.png" class="img-responsive img-centered" alt="image-alt"> <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p> <ul class="list-inline item-details"> <li>Client: <strong><a href="http://startbootstrap.com">Start Bootstrap</a> </strong> </li> <li>Date: <strong><a href="http://startbootstrap.com">April 2014</a> </strong> </li> <li>Service: <strong><a href="http://startbootstrap.com">Web Development</a> </strong> </li> </ul> <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button> </div> </div> </div> </div> </div> </div> <div class="portfolio-modal modal fade" id="portfolioModal-2" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <div class="close-modal" data-dismiss="modal"> <div class="lr"> <div class="rl"> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <div class="modal-body"> <h2>Project 2</h2> <hr class="star-primary"> <img src="img/portfolio/cake.png" class="img-responsive img-centered" alt="image-alt"> <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p> <ul class="list-inline item-details"> <li>Client: <strong><a href="http://startbootstrap.com">Start Bootstrap</a> </strong> </li> <li>Date: <strong><a href="http://startbootstrap.com">April 2014</a> </strong> </li> <li>Service: <strong><a href="http://startbootstrap.com">Web Development</a> </strong> </li> </ul> <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button> </div> </div> </div> </div> </div> </div> <div class="portfolio-modal modal fade" id="portfolioModal-3" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <div class="close-modal" data-dismiss="modal"> <div class="lr"> <div class="rl"> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <div class="modal-body"> <h2>Project 3</h2> <hr class="star-primary"> <img src="img/portfolio/circus.png" class="img-responsive img-centered" alt="image-alt"> <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p> <ul class="list-inline item-details"> <li>Client: <strong><a href="http://startbootstrap.com">Start Bootstrap</a> </strong> </li> <li>Date: <strong><a href="http://startbootstrap.com">April 2014</a> </strong> </li> <li>Service: <strong><a href="http://startbootstrap.com">Web Development</a> </strong> </li> </ul> <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button> </div> </div> </div> </div> </div> </div> <div class="portfolio-modal modal fade" id="portfolioModal-4" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <div class="close-modal" data-dismiss="modal"> <div class="lr"> <div class="rl"> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <div class="modal-body"> <h2>Project 4</h2> <hr class="star-primary"> <img src="img/portfolio/game.png" class="img-responsive img-centered" alt="image-alt"> <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p> <ul class="list-inline item-details"> <li>Client: <strong><a href="http://startbootstrap.com">Start Bootstrap</a> </strong> </li> <li>Date: <strong><a href="http://startbootstrap.com">April 2014</a> </strong> </li> <li>Service: <strong><a href="http://startbootstrap.com">Web Development</a> </strong> </li> </ul> <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button> </div> </div> </div> </div> </div> </div> <div class="portfolio-modal modal fade" id="portfolioModal-6" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <div class="close-modal" data-dismiss="modal"> <div class="lr"> <div class="rl"> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <div class="modal-body"> <h2>Project 6</h2> <hr class="star-primary"> <img src="img/portfolio/submarine.png" class="img-responsive img-centered" alt="image-alt"> <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p> <ul class="list-inline item-details"> <li>Client: <strong><a href="http://startbootstrap.com">Start Bootstrap</a> </strong> </li> <li>Date: <strong><a href="http://startbootstrap.com">April 2014</a> </strong> </li> <li>Service: <strong><a href="http://startbootstrap.com">Web Development</a> </strong> </li> </ul> <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button> </div> </div> </div> </div> </div> </div> <div class="portfolio-modal modal fade" id="portfolioModal-5" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-content"> <div class="close-modal" data-dismiss="modal"> <div class="lr"> <div class="rl"> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <div class="modal-body"> <h2>Project 5</h2> <hr class="star-primary"> <img src="img/portfolio/safe.png" class="img-responsive img-centered" alt="image-alt"> <p>Use this area of the page to describe your project. The icon above is part of a free icon set by <a href="https://sellfy.com/p/8Q9P/jV3VZ/">Flat Icons</a>. On their website, you can download their free set with 16 icons, or you can purchase the entire set with 146 icons for only $12!</p> <ul class="list-inline item-details"> <li>Client: <strong><a href="http://startbootstrap.com">Start Bootstrap</a> </strong> </li> <li>Date: <strong><a href="http://startbootstrap.com">April 2014</a> </strong> </li> <li>Service: <strong><a href="http://startbootstrap.com">Web Development</a> </strong> </li> </ul> <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button> </div> </div> </div> </div> </div> </div> <!-- jQuery Version 1.11.0 --> <script src="/xosjapps/js/jquery-1.11.0.js"></script> <!-- Bootstrap Core JavaScript --> <script src="/xosjapps/js/bootstrap.min.js"></script> <!-- Plugin JavaScript --> <script src="/xosjapps/js/jquery.easing.min.js"></script> <script src="/xosjapps/js/classie.js"></script> <script src="/xosjapps/js/cbpAnimatedHeader.js"></script> <!-- Contact Form JavaScript --> <script src="/xosjapps/js/jqBootstrapValidation.js"></script> <script src="/xosjapps/js/contact_me_static.js"></script> <!-- Custom Theme JavaScript --> <script src="/xosjapps/js/freelancer.js"></script> </body> </html>
61.665217
980
0.53959
d2aadffb596568fcbeb379184a0912df984f0613
312
php
PHP
DAO/ITheaterDAO.php
mauroolsen/MoviePass
fa4130da4716e01162d8c8e7df46f96fb264a14e
[ "MIT" ]
null
null
null
DAO/ITheaterDAO.php
mauroolsen/MoviePass
fa4130da4716e01162d8c8e7df46f96fb264a14e
[ "MIT" ]
null
null
null
DAO/ITheaterDAO.php
mauroolsen/MoviePass
fa4130da4716e01162d8c8e7df46f96fb264a14e
[ "MIT" ]
null
null
null
<?php namespace DAO; use Models\Theater as Theater; interface ITheaterDAO { function GetAll(); function GetById($theater_id); function GetByName($theater_name); function Add(Theater $theater); function Edit(Theater $theater); function Desactivate($theater_id); function Activate($theater_id); }
18.352941
36
0.75