identifier
stringlengths
42
383
collection
stringclasses
1 value
open_type
stringclasses
1 value
license
stringlengths
0
1.81k
date
float64
1.99k
2.02k
title
stringlengths
0
100
creator
stringlengths
1
39
language
stringclasses
157 values
language_type
stringclasses
2 values
word_count
int64
1
20k
token_count
int64
4
1.32M
text
stringlengths
5
1.53M
__index_level_0__
int64
0
57.5k
https://github.com/VDraks/School-Desk/blob/master/dao-impl/src/main/java/org/schooldesk/hibernateobjects/TestCore.java
Github Open Source
Open Source
MIT
null
School-Desk
VDraks
Java
Code
102
424
package org.schooldesk.hibernateobjects; import org.hibernate.*; import org.schooldesk.dao.hibernateimpl.*; import org.schooldesk.dto.*; import org.schooldesk.dto.impl.*; import javax.persistence.*; import java.util.*; @Entity @Table(name = "tests") public class TestCore extends ResourceCore { private Set<TestQuestionCore> testQuestions; public TestCore() {} @OneToMany(mappedBy = "test", cascade = CascadeType.REMOVE, orphanRemoval = true) public Set<TestQuestionCore> getTestQuestions() { return testQuestions; } public void setTestQuestions(Set<TestQuestionCore> testQuestions) { this.testQuestions = testQuestions; } @Override @SuppressWarnings("deprecation") public TestDto toDto() { return mapDto(new TestDto()); } @Override protected TestDto mapDto(AbstractDto dto) { TestDto testDto = (TestDto) super.mapDto(dto); testDto.setTestQuestionIds(getIds(getTestQuestions())); return testDto; } @Override public void fromDto(IDto dto, CoreApi coreApi) throws HibernateException { ITest test = (ITest) dto; setTestQuestions(new HashSet<>(coreApi.loadByIds(TestQuestionCore.class, test.getTestQuestionIds()))); super.fromDto(dto, coreApi); } }
18,683
https://github.com/matoruru/purescript-react-material-ui-svgicon/blob/master/src/MaterialUI/SVGIcon/Icon/ArrowRightTwoTone.purs
Github Open Source
Open Source
MIT
null
purescript-react-material-ui-svgicon
matoruru
PureScript
Code
45
164
module MaterialUI.SVGIcon.Icon.ArrowRightTwoTone ( arrowRightTwoTone , arrowRightTwoTone_ ) where import Prelude (flip) import MaterialUI.SVGIcon.Type (SVGIcon, SVGIcon_) import React (unsafeCreateElement, ReactClass) as R foreign import arrowRightTwoToneImpl :: forall a. R.ReactClass a arrowRightTwoTone :: SVGIcon arrowRightTwoTone = flip (R.unsafeCreateElement arrowRightTwoToneImpl) [] arrowRightTwoTone_ :: SVGIcon_ arrowRightTwoTone_ = arrowRightTwoTone {}
33,165
https://github.com/pretystart/microservice/blob/master/OcelotGateway/Program.cs
Github Open Source
Open Source
Apache-2.0
null
microservice
pretystart
C#
Code
54
243
 using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace OcelotGateway { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); } public static IWebHost BuildWebHost(string[] args) { IWebHostBuilder builder = new WebHostBuilder(); //注入WebHostBuilder return builder.ConfigureServices(service => { service.AddSingleton(builder); }) //加载configuration配置文人年 .ConfigureAppConfiguration(conbuilder => { conbuilder.AddJsonFile("appsettings.json"); conbuilder.AddJsonFile("configuration.json"); }) .UseKestrel() .UseUrls("http://*:5000") .UseStartup<Startup>() .Build(); } } }
48,817
https://github.com/chrisdonahue/ddc/blob/master/learn/beatcalc.py
Github Open Source
Open Source
MIT
2,022
ddc
chrisdonahue
Python
Code
323
1,041
import numpy as np _EPSILON = 1e-6 class BeatCalc(object): # for simplicity, we will represent a "stop" as an impossibly sharp tempo change def __init__(self, offset, beat_bpm, beat_stop): # ensure all beat markers are strictly increasing assert beat_bpm[0][0] == 0.0 beat_last = -1.0 bpms = [] for beat, bpm in beat_bpm: assert beat >= beat_last if beat == beat_last: bpms[-1] = (beat, bpm) else: bpms.append((beat, bpm)) beat_last = beat # aggregate repeat stops stops = {} for beat, stop in beat_stop: assert beat > 0.0 if beat in stops: stops[beat] += stop stops[beat] = stop beat_stop = filter(lambda x: x[1] != 0.0, sorted(stops.items(), key=lambda x: x[0])) self.offset = offset self.bpms = beat_bpm self.stops = beat_stop beat_bps = [(beat, bpm / 60.0) for beat, bpm in beat_bpm] # insert line segments for stops for beat, stop in beat_stop: seg_idx = np.searchsorted(np.array([x[0] for x in beat_bps]), beat, side='right') _, bps = beat_bps[seg_idx - 1] beat_bps.insert(seg_idx, (beat + _EPSILON, bps)) beat_bps.insert(seg_idx, (beat, _EPSILON / stop)) # create line segments for tempo changes time_cum = -offset beat_last, bps_last = beat_bps[0] times = [-offset] for beat, bps in beat_bps[1:]: dbeat = beat - beat_last dtime = dbeat / bps_last time_cum += dtime times.append(time_cum) beat_last = beat bps_last = bps self.segment_time = np.array(times) self.segment_beat = np.array([beat for beat, _ in beat_bps]) self.segment_bps = np.array([bps for _, bps in beat_bps]) self.segment_spb = 1.0 / self.segment_bps def beat_to_time(self, beat): assert beat >= 0.0 seg_idx = np.searchsorted(self.segment_beat, beat, side='right') - 1 beat_left = self.segment_beat[seg_idx] time_left = self.segment_time[seg_idx] spb = self.segment_spb[seg_idx] return time_left + ((beat - beat_left) * spb) def time_to_beat(self, time): assert time >= 0.0 seg_idx = np.searchsorted(self.segment_time, time, side='right') - 1 time_left = self.segment_time[seg_idx] beat_left = self.segment_beat[seg_idx] bps = self.segment_bps[seg_idx] return beat_left + ((time - time_left) * bps) if __name__ == '__main__': bc = BeatCalc(0.05, [(0.0, 120.0), (32.0, 60.0), (64.0, 120.0)], [(16.0, 5.0)]) print bc.beat_to_time(0.0) print bc.beat_to_time(1.0) print bc.beat_to_time(8.0) print bc.beat_to_time(16.0) print bc.beat_to_time(32.0) print '-' * 80 print bc.time_to_beat(0.0) print bc.time_to_beat(1.0)
24,915
https://github.com/pjchavarria/Link/blob/master/LinkAlbum/EditorViewController.m
Github Open Source
Open Source
MIT
2,015
Link
pjchavarria
Objective-C
Code
597
2,591
// // EditorViewController.m // LinkAlbum // // Created by Paul Chavarria Podoliako on 2/7/15. // Copyright (c) 2015 AnyTap. All rights reserved. // #import "EditorViewController.h" #import <SDWebImage/UIImageView+WebCache.h> #import "CustomActivityItemProvider.h" #import "XCDYouTubeKit.h" #import "HeliosAPIClient.h" @interface EditorViewController () @property (weak, nonatomic) IBOutlet UIButton *printButton; @property (weak, nonatomic) IBOutlet UIImageView *videoImage; @property (weak, nonatomic) IBOutlet UIImageView *footerImage; @property (weak, nonatomic) IBOutlet UITextField *textField; @property (strong, nonatomic) NSDictionary *data; @property (strong, nonatomic) XCDYouTubeVideoPlayerViewController *videoPlayerViewController; - (IBAction)pressedPrint:(id)sender; - (IBAction)playVideo:(id)sender; @end @implementation EditorViewController - (void)initWithData:(NSDictionary *)data { self.data = data; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. NSDictionary *image = self.data[@"snippet"][@"thumbnails"]; [self.videoImage sd_setImageWithURL:[NSURL URLWithString: image[[image.allKeys containsObject:@"highres"]?@"highres":@"standard"][@"url"]]]; self.title = self.data[@"snippet"][@"localized"][@"title"]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { NSString *combined; if (string.length == 0 && textField.text.length >= 1) { combined = [textField.text substringToIndex:textField.text.length-1]; }else{ combined = [textField.text stringByAppendingString:string]; } SDWebImageManager *manager = [SDWebImageManager sharedManager]; NSDictionary *image = self.data[@"snippet"][@"thumbnails"]; NSURL *url = [NSURL URLWithString: image[[image.allKeys containsObject:@"highres"]?@"highres":@"standard"][@"url"]]; [manager downloadWithURL:url options:0 progress:^(NSInteger receivedSize, NSInteger expectedSize) { // progression tracking code } completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished) { if (image) { // do something with image self.videoImage.image = image; self.footerImage.image = [self drawFront:[UIImage imageNamed:@"white"] text:combined size:25.0f atPoint:CGPointMake(30,10)]; } }]; return YES; } - (BOOL)textFieldShouldReturn:(UITextField *)textField { [self.textField resignFirstResponder]; return YES; } - (IBAction)pressedPrint:(id)sender { // // [self showActivityProviderWithImage:self.videoImage.image]; // return; NSLog(@"working.."); //NSData *imageData = UIImageJPEGRepresentation(self.videoImage.image, 1.0); NSDictionary *image = self.data[@"snippet"][@"thumbnails"]; NSString *imageURL = image[[image.allKeys containsObject:@"highres"]?@"highres":@"standard"][@"url"]; [[HeliosAPIClient client] postWithParameters:@{@"youtube_url":[NSString stringWithFormat:@"http://www.youtube.com/watch?v=%@",self.data[@"id"]],@"image_url":imageURL} success:^(NSURLSessionDataTask *task, id responseObject) { NSLog(@"%@",responseObject); NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:responseObject[@"url"]]]; NSString *authValue = [NSString stringWithFormat:@"%@",responseObject[@"token"]]; [request setValue:authValue forHTTPHeaderField:@"Authorization"]; [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse * response, NSData * data, NSError * error) { if (!error){ UIImage *image = [UIImage imageWithData:data]; [self showActivityProviderWithImage:image]; } else { NSLog(@"ERRORE: %@", error); } }]; } error:^(NSURLSessionDataTask *task, NSError *error) { NSLog(@"%@",error); }]; } - (void)showActivityProviderWithImage:(UIImage *)image { UIImage *newImage = [self drawFront:[UIImage imageNamed:@"white"] text:self.textField.text size:25.0f atPoint:CGPointMake(120, 10)]; image = [self imageByCombiningImage:image withImage:newImage secondImagePoint:CGPointMake(0, image.size.height) sumSizes:YES]; image = [self imageByCombiningImage:image withImage:[UIImage imageNamed:@"livePaperLogo-20"] secondImagePoint:CGPointMake(image.size.width-120, 30) sumSizes:NO]; image = [self drawFront:image text:@"Feb 9, 2015" size:17.0f atPoint:CGPointMake(image.size.width-(98+120), self.videoImage.image.size.height+60)]; NSMutableArray *activityItems = [NSMutableArray arrayWithObjects:@"title",image, nil]; //you can have your own custom activities too: //NSArray *applicationActivities = @[[CustomActivity new],[OtherCustomActivity new]]; UIActivityViewController *vc = [[UIActivityViewController alloc]initWithActivityItems:activityItems applicationActivities:nil]; vc.excludedActivityTypes = @[UIActivityTypeAssignToContact, UIActivityTypeCopyToPasteboard, UIActivityTypeAddToReadingList]; //-- define the activity view completion handler vc.completionWithItemsHandler = ^(NSString *activityType, BOOL completed, NSArray *returnedItems, NSError *activityError){ if (completed) { } else { if (activityType == NULL) { NSLog(@"User dismissed the view controller without making a selection."); } else { NSLog(@"Activity was not performed."); } } }; [self presentViewController:vc animated:YES completion:nil]; } - (UIImage*)drawFront:(UIImage*)image text:(NSString*)text size:(CGFloat)size atPoint:(CGPoint)point { UIFont *font = [UIFont fontWithName:@"Noteworthy-Light" size:size]; UIGraphicsBeginImageContextWithOptions(image.size, NO, 0.0f); [image drawInRect:CGRectMake(0,0,image.size.width,image.size.height)]; CGRect rect = CGRectMake(point.x, point.y, image.size.width-40, 80); [[UIColor whiteColor] set]; NSMutableAttributedString* attString = [[NSMutableAttributedString alloc] initWithString:text]; NSRange range = NSMakeRange(0, [attString length]); [attString addAttribute:NSFontAttributeName value:font range:range]; [attString addAttribute:NSForegroundColorAttributeName value:[UIColor blackColor] range:range]; [attString drawInRect:CGRectIntegral(rect)]; UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return newImage; } - (UIImage*)imageByCombiningImage:(UIImage*)firstImage withImage:(UIImage*)secondImage secondImagePoint:(CGPoint)position sumSizes:(BOOL)sum { UIImage *image = nil; UIGraphicsBeginImageContextWithOptions(CGSizeMake(firstImage.size.width, (sum)?firstImage.size.height+secondImage.size.height+200: firstImage.size.height) , NO, [[UIScreen mainScreen] scale]); [firstImage drawAtPoint:CGPointMake(0,0)]; [secondImage drawAtPoint:position]; image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return image; } - (IBAction)playVideo:(id)sender { NSString *videoIdentifier = self.data[@"id"]; if (!videoIdentifier || [videoIdentifier isEqualToString:@""]) { return; }; self.videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:videoIdentifier]; [self presentMoviePlayerViewControllerAnimated:self.videoPlayerViewController]; } @end
14,764
https://github.com/proHUZhiYong/vue_shopping/blob/master/src/components/subcomponent/shopcar_numbox.vue
Github Open Source
Open Source
MIT
2,023
vue_shopping
proHUZhiYong
Vue
Code
78
469
<template> <div class="goodsinfo_numbox"> <div class="mui-numbox" data-numbox-min='1' style="height:25px;"> <button class="mui-btn mui-btn-numbox-minus" type="button">-</button> <input id="test" class="mui-input-numbox" type="number" :value="initCount" @change="countChange" ref="numbox" readonly/> <button class="mui-btn mui-btn-numbox-plus" type="button">+</button> </div> </div> <!-- 子组件什么时候把数据传递给 父组件 不管点击加号还是减号都需要立马传值--> <!-- 直接监听文本框change 时间 --> </template> <script> import mui from "../../lib/mui/js/mui.min.js" export default { mounted(){ //初始化数字选择组件 mui(".mui-numbox").numbox(); }, methods:{ countChange(){ //数量改变 // console.log(this.$refs.numbox.value) //每当 数值改变 则 立即把 最新的数量同步到 购物车的 store 中覆盖之前的 数量值 this.$store.commit('updateGoodsInfo', { id:this.goodsid, count:this.$refs.numbox.value }) } }, props:["initCount","goodsid"] } </script> <style lang="scss" scoped> .goodsinfo_numbox{ display: inline; } </style>
12,186
https://github.com/WhitmoreLakeTroBots/2021-OffSeason/blob/master/src/main/java/org/usfirst/frc3668/OffSeason2021/subsystems/SubGear.java
Github Open Source
Open Source
BSD-3-Clause
null
2021-OffSeason
WhitmoreLakeTroBots
Java
Code
7
32
package org.usfirst.frc3668.OffSeason2021.subsystems; public class SubGear { }
19,007
https://github.com/xcalar/xcalar-idl/blob/master/ts/loginConfig.js
Github Open Source
Open Source
Apache-2.0
null
xcalar-idl
xcalar
JavaScript
Code
610
2,302
var msalEnabled = false; var msalConfig = { msalEnabled: "", msal: {} }; var defaultAdminEnabled = false; var defaultAdminConfig; var ldapConfig; var ldapConfigEnabled = false; function setMSALConfig(hostname, msalEnabledIn, msalIn) { var deferred = PromiseHelper.deferred(); var msalConfigOut = { msalEnabled: msalEnabledIn, msal: msalIn }; $.ajax({ "type": "POST", "contentType": "application/json", "url": hostname + "/app/login/msalConfig/set", "data": JSON.stringify(msalConfigOut), "success": function (ret) { if (ret.success) { if (msalEnabled) { msalEnabled = msalConfigOut.msalEnabled; jQuery.extend(msalConfig, msalConfigOut); } deferred.resolve(); } else { deferred.reject(ret.error); } }, "error": function (errorMsg) { console.log("Failed to set msalConfig: " + errorMsg.error); deferred.reject(errorMsg.error); } }); return deferred.promise(); } function getMSALConfig(hostname) { var deferred = PromiseHelper.deferred(); if (msalEnabled) { return deferred.resolve(msalConfig).promise(); } $.ajax({ "type": "POST", "contentType": "application/json", "url": hostname + "/app/login/msalConfig/get", "success": function (data) { if (data.hasOwnProperty("error")) { console.log("Failed to retrieve msalConfig."); deferred.reject(data.error); return; } jQuery.extend(msalConfig, data); msalEnabled = data.msalEnabled; if (msalEnabled) { xcLocalStorage.setItem("msalConfig", JSON.stringify(msalConfig)); } deferred.resolve(msalConfig); }, "error": function (errorMsg) { console.log("Failed to retrieve msalConfig."); deferred.reject(errorMsg.error); } }); return deferred.promise(); } function getMsalConfigFromLocalStorage() { var localMsalConfig = xcLocalStorage.getItem("msalConfig"); if (localMsalConfig == null) { return null; } try { return JSON.parse(localMsalConfig); } catch (error) { console.log("Error parsing msalConfig: " + error); return null; } } function authMsalIdToken(authData) { var deferred = PromiseHelper.deferred(); if (!msalEnabled) { return deferred.reject("msal is not configured").promise(); } $.ajax({ "type": "POST", "contentType": "application/json", "url": hostname + "/app/auth/azureIdToken", "data": JSON.stringify(authData), "success": function (data) { if (data.status) { if (msalEnabled) { xcSessionStorage.setItem("idTokenData", data.data); } deferred.resolve(data.data); } else { console.log('OAuth token verification failed. Status: ' + data.status + ' Message: ' + data.message); deferred.reject(data.message); } }, "error": function (errorMsg) { console.log('OAuth token verification failed with message: ' + errorMsg.error); deferred.reject(errorMsg.error); } }); return deferred.promise(); } function setDefaultAdminConfig(hostname, defaultAdminEnabledIn, adminUsername, adminPassword, adminEmail) { var deferred = PromiseHelper.deferred(); var defaultAdminConfigOut = { defaultAdminEnabled: defaultAdminEnabledIn, username: adminUsername, email: adminEmail, password: adminPassword }; $.ajax({ "type": "POST", "contentType": "application/json", "url": hostname + "/app/login/defaultAdmin/set", "data": JSON.stringify(defaultAdminConfigOut), "success": function (ret) { if (ret.success) { if (defaultAdminEnabled) { defaultAdminEnabled = defaultAdminEnabledIn; defaultAdminConfig.username = defaultAdminConfigOut.username; defaultAdminConfig.defaultAdminEnabled = defaultAdminEnabled; defaultAdminConfig.email = defaultAdminConfigOut.email; } deferred.resolve(); } else { deferred.reject(ret.error); } }, "error": function (errorMsg) { console.log("Failed to set defaultAdminConfig: " + errorMsg.error); deferred.reject(errorMsg.error); } }); return deferred.promise(); } function getDefaultAdminConfig(hostname) { var deferred = PromiseHelper.deferred(); if (defaultAdminEnabled) { return deferred.resolve(defaultAdminConfig).promise(); } $.ajax({ "type": "POST", "contentType": "application/json", "url": hostname + "/app/login/defaultAdmin/get", "success": function (defaultAdminConfigIn) { if (defaultAdminConfigIn.hasOwnProperty("error")) { console.log("Failed to retrieve defaultAdminConfig: " + defaultAdminConfigIn.error); deferred.reject(defaultAdminConfigIn.error); return; } defaultAdminConfig = defaultAdminConfigIn; defaultAdminEnabled = defaultAdminConfigIn.defaultAdminEnabled; deferred.resolve(defaultAdminConfig); }, "error": function (errorMsg) { console.log("Failed to retrieve defaultAdminConfig: " + errorMsg.error); deferred.reject(errorMsg.error); } }); return deferred.promise(); } function setLdapConfig(hostname, ldapConfigEnabledIn, ldapIn) { var deferred = PromiseHelper.deferred(); var ldapConfigOut = ldapIn; ldapConfigOut.ldapConfigEnabled = ldapConfigEnabledIn; if (ldapConfigOut.activeDir) { var propArray = [ 'adUserGroup', 'adAdminGroup', 'adDomain' ]; for (var ii = 0; ii < propArray.length; ii++) { if (ldapConfigOut[propArray[ii]] === "" ) { delete ldapConfigOut[propArray[ii]]; } } } else { var propArray = [ 'adUserGroup', 'adAdminGroup', 'adDomain', 'adSubGroupTree', 'adSearchShortName' ]; for (var ii = 0; ii < propArray.length; ii++) { if (ldapConfigOut.hasOwnProperty(propArray[ii])) { delete ldapConfigOut[propArray[ii]]; } } } $.ajax({ "type": "POST", "contentType": "application/json", "url": hostname + "/app/login/ldapConfig/set", "data": JSON.stringify(ldapConfigOut), "success": function (ret) { if (ret.success) { if (ldapConfigEnabled) { ldapConfigEnabled = ldapConfigEnabledIn; ldapConfig = ldapConfigOut; } deferred.resolve(); } else { deferred.reject(ret.error); } }, "error": function (errorMsg) { console.log("Failed to set ldapConfig: " + errorMsg.error); deferred.reject(errorMsg.error); } }); return deferred.promise(); } function getLdapConfig(hostname) { var deferred = PromiseHelper.deferred(); if (ldapConfigEnabled) { return deferred.resolve(ldapConfig).promise(); } $.ajax({ "type": "POST", "contentType": "application/json", "url": hostname + "/app/login/ldapConfig/get", "success": function (ldapConfigIn) { if (ldapConfigIn.hasOwnProperty("error")) { console.log("Failed to retrieve ldapConfig: " + ldapConfigIn.error); deferred.reject(ldapConfigIn.error); return; } ldapConfig = ldapConfigIn; ldapConfigEnabled = ldapConfigIn.ldapConfigEnabled; deferred.resolve(ldapConfig); }, "error": function (errorMsg) { console.log("Failed to retrieve ldapConfig: " + errorMsg.error); deferred.reject(errorMsg.error); } }); return deferred.promise(); }
24,819
https://github.com/kuro-daei/vastjs/blob/master/test/src/03-events.js
Github Open Source
Open Source
Apache-2.0
null
vastjs
kuro-daei
JavaScript
Code
357
2,116
const chai = require('chai'); const Vast = require('../../src/main.js'); const expect = chai.expect; describe('Events', () => { it('progress & percents 0s', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; vast.load(url).then(() => { vast.timeupdate(0).then(() => { expect(Object.keys(vast.tracked)).to.have.members(['percents']); expect(vast.tracked.percents).to.have.members(['/img/track.gif?start']); done(); }).catch((error) => { done(error); }); }).catch((error) => { done(error); }); }); it('progress & percents 22.5s', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; vast.load(url).then(() => { vast.timeupdate(22.5).then(() => { expect(Object.keys(vast.tracked)).to.have.members(['percents', 'progresses']); expect(vast.tracked.percents).to.have.members(['/img/track.gif?start', '/img/track.gif?firstQuartile']); expect(vast.tracked.progresses).to.have.members(['/img/track.gif?progress_000010', '/img/track.gif?progress_000020']); done(); }).catch((error) => { done(error); }); }).catch((error) => { done(error); }); }); it('progress & percents 45s', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; vast.load(url).then(() => { vast.timeupdate(45).then(() => { expect(Object.keys(vast.tracked)).to.have.members(['percents', 'progresses']); expect(vast.tracked.percents).to.have.members(['/img/track.gif?start', '/img/track.gif?firstQuartile', '/img/track.gif?midpoint']); expect(vast.tracked.progresses).to.have.members(['/img/track.gif?progress_000010', '/img/track.gif?progress_000020', '/img/track.gif?progress_000040', '/img/track.gif?progress_000045']); done(); }).catch((error) => { done(error); }); }).catch((error) => { done(error); }); }); it('progress & percents 90s', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; vast.load(url).then(() => { vast.timeupdate(90).then(() => { expect(Object.keys(vast.tracked)).to.have.members(['percents', 'progresses']); expect(vast.tracked.percents).to.have.members(['/img/track.gif?start', '/img/track.gif?firstQuartile', '/img/track.gif?midpoint', '/img/track.gif?thirdQuartile', '/img/track.gif?complete', '/img/track.gif?complete_a']); expect(vast.tracked.progresses).to.have.members([ '/img/track.gif?progress_000010', '/img/track.gif?progress_000020', '/img/track.gif?progress_000040', '/img/track.gif?progress_000045', '/img/track.gif?progress_000060_a', '/img/track.gif?progress_000060', '/img/track.gif?progress_000090', ]); done(); }).catch((error) => { done(error); }); }).catch((error) => { done(error); }); }); it('impression', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; vast.load(url).then(() => { vast.dispatchEvent('impressions').then(() => { expect(Object.keys(vast.tracked)).to.have.members(['impressions']); expect(vast.tracked.impressions).to.have.members(['/img/track.gif?imp', '/img/track.gif?imp_a']); done(); }).catch((error) => { done(error); }); }).catch((error) => { done(error); }); }); it('creativeView', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; vast.load(url).then(() => { vast.dispatchEvent('creativeView').then(() => { expect(Object.keys(vast.tracked)).to.have.members(['creativeView']); expect(vast.tracked.creativeView).to.have.members(['/img/track.gif?creativeView']); done(); }).catch((error) => { done(error); }); }).catch((error) => { done(error); }); }); it('other events', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; const promises = []; vast.load(url).then(() => { promises.push(vast.dispatchEvent('close')); promises.push(vast.dispatchEvent('acceptInvitation')); promises.push(vast.dispatchEvent('collapse')); promises.push(vast.dispatchEvent('expand')); promises.push(vast.dispatchEvent('fullscreen')); promises.push(vast.dispatchEvent('exitFullscreen')); promises.push(vast.dispatchEvent('resume')); promises.push(vast.dispatchEvent('pause')); promises.push(vast.dispatchEvent('unmute')); promises.push(vast.dispatchEvent('mute')); Promise.all(promises).then(() => { expect(Object.keys(vast.tracked)).to.have.members([ 'close', 'acceptInvitation', 'collapse', 'expand', 'fullscreen', 'exitFullscreen', 'resume', 'pause', 'unmute', 'mute', ]); expect(vast.tracked.close).to.have.members(['/img/track.gif?close', '/img/track.gif?close_a']); expect(vast.tracked.acceptInvitation).to.have.members(['/img/track.gif?acceptInvitation']); expect(vast.tracked.collapse).to.have.members(['/img/track.gif?collapse']); expect(vast.tracked.expand).to.have.members(['/img/track.gif?expand']); expect(vast.tracked.fullscreen).to.have.members(['/img/track.gif?fullscreen']); expect(vast.tracked.exitFullscreen).to.have.members(['/img/track.gif?exitFullscreen']); expect(vast.tracked.resume).to.have.members(['/img/track.gif?resume']); expect(vast.tracked.pause).to.have.members(['/img/track.gif?pause']); expect(vast.tracked.unmute).to.have.members(['/img/track.gif?unmute']); expect(vast.tracked.mute).to.have.members(['/img/track.gif?mute']); done(); }).catch((error) => { done(error); }); }).catch((error) => { done(error); }); }); it('video click', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; vast.load(url).then(() => { vast.clickVideo().then(() => { expect(Object.keys(vast.tracked)).to.have.members(['videoClicksTracking']); expect(vast.tracked.videoClicksTracking).to.have.members(['/img/track.gif?click']); done(); }).catch((error) => { done(error); }); }).catch((error) => { done(error); }); }); });
50,465
https://github.com/Apollo199999999/XAMLIslands/blob/master/MyUWPApp/HostPage.xaml.cs
Github Open Source
Open Source
MIT
null
XAMLIslands
Apollo199999999
C#
Code
173
510
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 namespace MyUWPApp { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summary> public sealed partial class HostPage : Page { public static Frame frame { get; set; } public HostPage() { this.InitializeComponent(); //assign the controls to their respective variables so that it can be accessed in the wpf window and controlled from there frame = contentFrame; //set the NavView SelectedItem manually NavView.SelectedItem = Page1; } private void NavView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args) { //this part controls which page to navigate to, upon user selection of a new NavViewItem if (NavView.SelectedItem == Page1) { contentFrame.Navigate(typeof(BlankPage1)); } else if (NavView.SelectedItem == Page2) { contentFrame.Navigate(typeof(BlankPage2)); } else if (NavView.SelectedItem == Page3) { contentFrame.Navigate(typeof(BlankPage3)); } else if (NavView.SelectedItem == NavView.SettingsItem) { contentFrame.Navigate(typeof(SettingsPage)); } } } }
15,340
https://github.com/ramdanegie/new2019/blob/master/applumen/app/Http/Controllers/Master/PegawaiController.php
Github Open Source
Open Source
MIT
null
new2019
ramdanegie
PHP
Code
94
423
<?php /** * Created by IntelliJ IDEA. * User: Egie Ramdan * Date: 18/02/2019 * Time: 20.27 */ namespace App\Http\Controllers\Master; use App\Http\Controllers\Controller; use App\Model\Master\Pegawai_M; use App\Model\Master\PegawaiM; use App\Model\Standar\KelompokUser_S; use Illuminate\Http\Request; use App\Traits\Core; use App\Traits\JsonResponse; use Illuminate\Support\Facades\DB; class PegawaiController extends Controller { /* * https://github.com/lcobucci/jwt/blob/3.2/README.md */ use Core; use JsonResponse; public function getPegawaiByNama ($nama) { $pegawai = Pegawai_M::where('statusenabled',true) ->where('namalengkap','ilike','%'.$nama.'%') ->select('id','namalengkap') ->orderBy('namalengkap'); $pegawai = $pegawai->get(); if ($pegawai->count() > 0) { $result['code'] = 200; $result['data'] = $pegawai; $result['as'] = "ramdanegie"; } else { $result['code'] = 200; $result['data'] = []; $result['as'] = "ramdanegie"; } return response()->json($result); } }
34,291
https://github.com/fengdianchikuang/hontx/blob/master/hontx-system/src/main/java/com/ruoyi/company/domain/TbInsrncCpy.java
Github Open Source
Open Source
MIT
null
hontx
fengdianchikuang
Java
Code
234
857
package com.ruoyi.company.domain; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; /** * company对象 tb_insrnc_cpy * * @author ruoyi * @date 2021-04-12 */ public class TbInsrncCpy extends BaseEntity { private static final long serialVersionUID = 1L; /** $column.columnComment */ private Long iId; /** 公司名称 */ @Excel(name = "公司名称") private String insrncName; /** 公司代号 */ @Excel(name = "公司代号") private String channelId; /** 状态 */ @Excel(name = "状态") private String openFlag; /** $column.columnComment */ @Excel(name = "状态") private String artFlag; /** 积分状态 */ @Excel(name = "积分状态") private String integralStatus; /** 保险公司Id */ @Excel(name = "保险公司Id") private Integer companyId; public void setiId(Long iId) { this.iId = iId; } public Long getiId() { return iId; } public void setInsrncName(String insrncName) { this.insrncName = insrncName; } public String getInsrncName() { return insrncName; } public void setChannelId(String channelId) { this.channelId = channelId; } public String getChannelId() { return channelId; } public void setOpenFlag(String openFlag) { this.openFlag = openFlag; } public String getOpenFlag() { return openFlag; } public void setArtFlag(String artFlag) { this.artFlag = artFlag; } public String getArtFlag() { return artFlag; } public void setIntegralStatus(String integralStatus) { this.integralStatus = integralStatus; } public String getIntegralStatus() { return integralStatus; } public void setCompanyId(Integer companyId) { this.companyId = companyId; } public Integer getCompanyId() { return companyId; } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("iId", getiId()) .append("insrncName", getInsrncName()) .append("channelId", getChannelId()) .append("openFlag", getOpenFlag()) .append("artFlag", getArtFlag()) .append("remark", getRemark()) .append("integralStatus", getIntegralStatus()) .append("companyId", getCompanyId()) .toString(); } }
24,666
https://github.com/hermanndelcampo/nodejs.dart/blob/master/lib/src/stream/readable.dart
Github Open Source
Open Source
BSD-3-Clause
2,016
nodejs.dart
hermanndelcampo
Dart
Code
258
849
// Copyright (c) 2016, electron.dart. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. part of nodejs; @JS('_stream.Readable') class NativeJsReadable extends NativeJsEventEmitter { external NativeJsReadable(); external bool isPaused(); external void pause(); external void pipe(Writable destination, [dynamic options]); external void read([int size]); external void resume(); external void setEncoding(String encoding); external void unpipe([Writable destination]); external void unshift(dynamic chunk); } class Readable extends EventEmitter { NativeJsReadable _readable; StreamController<Null> _onClose; StreamController<dynamic> _onData; StreamController<Null> _onEnd; StreamController<Error> _onError; StreamController<Null> _onReadable; Readable() { _requireStream(); _readable = new NativeJsReadable(); _eventemitter = _readable; _initAllStreamController(); } Readable.fromNativeJsReadable(NativeJsReadable readable) : super.fromNativeJsEventEmitter(readable) { _requireStream(); _readable = readable; _initAllStreamController(); } NativeJsReadable get nativeJsReadable => _readable; set encoding(String encoding) => _readable.setEncoding(encoding); bool get isPaused => _readable.isPaused(); Stream<Null> get onClose => _onClose.stream; Stream<dynamic> get onData => _onData.stream; Stream<Null> get onEnd => _onEnd.stream; Stream<Error> get onError => _onError.stream; Stream<Null> get onReadable => _onReadable.stream; void pause() => _readable.pause(); void pipe(Writable destination, [dynamic options]) => _readable.pipe(destination, options); void read([int size]) => _readable.read(size); void resume() => _readable.resume(); void unpipe([Writable destination]) => _readable.unpipe(destination); void unshift(dynamic chunk) => _readable.unshift(chunk); void _onCloseEvent([dynamic event = null]) => _onClose.add(event); void _onDataEvent([dynamic data = null]) => _onData.add(data); void _onEndEvent([dynamic event = null]) => _onEnd.add(event); void _onErrorEvent([NativeJsError error = null]) => _onError.add(new Error.fromNativeJsError(error)); void _onReadableEvent([dynamic event = null]) => _onReadable.add(event); void _initAllStreamController() { _onClose = new StreamController<Null>(sync: true); on('close', _onCloseEvent); _onData = new StreamController<dynamic>(sync: true); on('data', _onDataEvent); _onEnd = new StreamController<Null>(sync: true); on('end', _onEndEvent); _onError = new StreamController<Error>(sync: true); on('error', _onErrorEvent); _onReadable = new StreamController<Null>(sync: true); on('readable', _onReadableEvent); } }
7,146
https://github.com/dudmy/TutorialPop/blob/master/app/src/main/java/net/dudmy/tutorialpop/TutorialPopActivity.kt
Github Open Source
Open Source
Apache-2.0
null
TutorialPop
dudmy
Kotlin
Code
38
203
package net.dudmy.tutorialpop import android.os.Bundle import android.support.v4.content.ContextCompat import android.support.v7.app.AppCompatActivity import kotlinx.android.synthetic.main.activity_tutorial_pop.* class TutorialPopActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_tutorial_pop) val resId = intent.getIntExtra("resId", 0) val drawable = ContextCompat.getDrawable(baseContext, resId) iv_tutorial.setImageDrawable(drawable) tutor_popup_layout.setOnClickListener{ finish() } } }
7,405
https://github.com/LobatoNajera/Juego-Tres-Raya-Distintas-Dificultades/blob/master/app/SaveGame.php
Github Open Source
Open Source
MIT
null
Juego-Tres-Raya-Distintas-Dificultades
LobatoNajera
PHP
Code
301
1,504
<?php namespace App; use Illuminate\Database\Eloquent\Model; class SaveGame extends Model { // public static function newSaveGame($user_id) { $save_game_creado = false; $avance_user = AvanceUser::find($user_id); $save_game = SaveGame::orderBy('id', 'asc')->where([['user_id', '=', $user_id], ['status', '=', 1]])->get()->last(); if (count($save_game) == 0) { $save_game = new SaveGame; } for ($i=0; $i < 3 && $save_game_creado == false; $i++) { $save_game->user_id = $user_id; $save_game->personaje_id = $avance_user->personaje_id; $save_game->enemigo_id = 1; $save_game->status = 1; if ($save_game->save()) { $save_game_creado = true; } } $user = User::find($user_id); $nuevo_personaje_id = $user->personaje_id; return $save_game_creado; } // public static function updateSaveGame($user_id, $enemigo_id, $ganador) { $save_game_actualizado = false; $save_game = SaveGame::orderBy('id', 'asc')->where([['user_id', '=', $user_id], ['status', '=', 1]])->get()->last(); $avance_user = AvanceUser::find($user_id); $nuevo_rondas_jugadas = ($avance_user->rondas_jugadas + 1); $nuevo_rondas_ganadas = ($avance_user->rondas_ganadas); $historias_finalizadas = $avance_user->historias_finalizadas; $enemigo = Enemigo::find($enemigo_id); $enemigo_numero = substr($enemigo->nombre_archivo, 2, 2); $next_enemigo = Enemigo::getNextEnemigoId($historias_finalizadas, $enemigo_numero); $next_enemigo_id = $enemigo_id; $nuevo_enemigo_numero = substr($next_enemigo->nombre_archivo, 2, 2); if ($ganador == 1) { $nuevo_rondas_ganadas = ($avance_user->rondas_ganadas + 1); $next_enemigo_id = $next_enemigo->id; } SaveGame::personajeDesbloqueados($user_id, $avance_user->personajes_desbloqueados, $enemigo_numero, $nuevo_enemigo_numero); if ($enemigo_numero == 35 && $nuevo_enemigo_numero == 11) { $historias_finalizadas = ($historias_finalizadas + 1); } for ($i=0; $i < 3 && $save_game_actualizado == false; $i++) { $avance_user->rondas_jugadas = $nuevo_rondas_jugadas; $avance_user->rondas_ganadas = $nuevo_rondas_ganadas; $avance_user->historias_finalizadas = $historias_finalizadas; $avance_user->save(); $save_game->enemigo_id = $next_enemigo_id; if ($save_game->save()) { $save_game_actualizado = true; } } return $save_game_actualizado; } // public static function personajeDesbloqueados($user_id, $personajes_desbloqueados, $enemigo_numero, $nuevo_enemigo_numero) { if ($personajes_desbloqueados == 5 && $enemigo_numero == 15 && $nuevo_enemigo_numero == 21) { $update_avance_user = AvanceUser::find($user_id); $update_avance_user->personajes_desbloqueados = 6; $update_avance_user->save(); } else if ($personajes_desbloqueados == 6 && $enemigo_numero == 25 && $nuevo_enemigo_numero == 31) { $update_avance_user = AvanceUser::find($user_id); $update_avance_user->personajes_desbloqueados = 7; $update_avance_user->save(); } else if ($personajes_desbloqueados == 7 && $enemigo_numero == 35 && $nuevo_enemigo_numero == 11) { $update_avance_user = AvanceUser::find($user_id); $update_avance_user->personajes_desbloqueados = 8; $update_avance_user->save(); } else if ($personajes_desbloqueados == 8 && $enemigo_numero == 41 && $nuevo_enemigo_numero == 11) { $update_avance_user = AvanceUser::find($user_id); $update_avance_user->personajes_desbloqueados = 9; $update_avance_user->save(); } } }
28,371
https://github.com/lilyminium/autodoc_pydantic/blob/master/tests/roots/test-json-error-strategy/example.py
Github Open Source
Open Source
MIT
2,022
autodoc_pydantic
lilyminium
Python
Code
18
59
from pydantic import BaseModel class NonSerializable(BaseModel): """NonSerializable """ field: object = object() """Field""" class Config: arbitrary_types_allowed = True
34,209
https://github.com/shearn89/coreos-bootstrap/blob/master/scripts/install.sh
Github Open Source
Open Source
Apache-2.0
null
coreos-bootstrap
shearn89
Shell
Code
36
136
#!/bin/bash -e REPOSERVER="http://192.168.56.1:8000" OCTET=$(ip a | grep global | awk {'print $2'} | awk -F. {'print $4'} | awk -F/ {'print $1'}) curl -O "${REPOSERVER}/cloud-config/coreos-$OCTET.json" sudo coreos-install -d /dev/sda -i coreos-$OCTET.json -b "${REPOSERVER}/images" sudo eject reboot
37,222
https://github.com/jmanday/Master/blob/master/IC/Practicas/Practica1/scripts/normalizeSubmission.py
Github Open Source
Open Source
Apache-2.0
2,017
Master
jmanday
Python
Code
115
225
############################################################# # Este script toma de entrada un csv que lo recorre por fila # y se queda con el mayor valor de cada una y la columna a la # que pertenece. Para el problema de MNIST cada fila tiene 10 # columnas y un valor de pertenencia cada una al número representado # por su columna, es decir, en cada fila obtenemos un valor de pertenencia # a los números de 0 al 9 ############################################################# import pandas as pd import numpy as np df = pd.read_csv('./submission4.csv') labels = [] for index, row in df.iterrows(): nummax = row.max() for n in range(0, len(row)-1): if (nummax == row[n]): labels.append(n) for i in labels: print(i, end='')
48,190
https://github.com/iExecBlockchainComputing/iexec-SupportVectorMachine-BagOfTasks/blob/master/apprun.sh
Github Open Source
Open Source
Apache-2.0
null
iexec-SupportVectorMachine-BagOfTasks
iExecBlockchainComputing
Shell
Code
21
157
#!/bin/sh iexec app run 0x782f35D57c1a76B60d153A265A1591720e51560f \ --chain goerli \ --wallet-file user_wallet \ --workerpool 0xEb6c3FA8522f2C342E94941C21d3947c099e6Da0 \ --params {\"iexec_input_files\":[\"https://raw.githubusercontent.com/iExecBlockchainComputing/iexec-SupportVectorMachine-BagOfTasks/main/parameters.csv\"]} \ --skip-request-check \ --watch
33,686
https://github.com/neswork-th/create-node-app/blob/master/src/template/src/index.js
Github Open Source
Open Source
MIT
2,021
create-node-app
neswork-th
JavaScript
Code
39
68
// "Create React App" tooling expects to find the WWW root here, // so we simply use this file to import the ./www directory. // // For the backend, we set the container's entrypoint to src/api/index.js module.exports = require('./www')
1,647
https://github.com/solitardj9/Json-Rule-Engine-2/blob/master/demo/src/main/java/com/example/demo/dataActionMngtSet/dataActionPluginMngt/service/data/ErrorAction.java
Github Open Source
Open Source
Apache-2.0
null
Json-Rule-Engine-2
solitardj9
Java
Code
139
427
package com.example.demo.dataActionMngtSet.dataActionPluginMngt.service.data; public class ErrorAction { // private String siteId; private String eqpId; private String eqpType; private Object errorCode; public ErrorAction() { } public ErrorAction(String siteId, String eqpId, String eqpType, Object errorCode) { this.siteId = siteId; this.eqpId = eqpId; this.eqpType = eqpType; this.errorCode = errorCode; } public String getSiteId() { return siteId; } public void setSiteId(String siteId) { this.siteId = siteId; } public String getEqpId() { return eqpId; } public void setEqpId(String eqpId) { this.eqpId = eqpId; } public String getEqpType() { return eqpType; } public void setEqpType(String eqpType) { this.eqpType = eqpType; } public Object getErrorCode() { return errorCode; } public void setErrorCode(Object errorCode) { this.errorCode = errorCode; } @Override public String toString() { return "ErrorAction [siteId=" + siteId + ", eqpId=" + eqpId + ", eqpType=" + eqpType + ", errorCode=" + errorCode + "]"; } }
36,606
https://github.com/gregmarra/the-blue-alliance-pwa/blob/master/src/client.js
Github Open Source
Open Source
MIT
2,019
the-blue-alliance-pwa
gregmarra
JavaScript
Code
95
308
import './bootstrap'; import React from 'react'; import { hydrate } from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'connected-react-router/immutable'; import { StylesProvider, createGenerateClassName } from '@material-ui/styles'; import App from './App'; import createStore from './store/createStore'; import registerServiceWorker from './registerServiceWorker'; const { store, history } = createStore(); const generateClassName = createGenerateClassName({ dangerouslyUseGlobalCSS: true, }); hydrate( <Provider store={store}> <StylesProvider generateClassName={generateClassName}> <ConnectedRouter history={history}> <App /> </ConnectedRouter> </StylesProvider> </Provider>, document.getElementById('root') ); if (module.hot) { module.hot.accept('./App', () => { hydrate( <Provider store={store}> <StylesProvider generateClassName={generateClassName}> <ConnectedRouter history={history}> <App /> </ConnectedRouter> </StylesProvider> </Provider>, document.getElementById('root') ); }); } registerServiceWorker(store);
19,245
https://github.com/Momotoculteur/EasyAttest/blob/master/src/components/atoms/momotoculteur-text-input/momotoculteurTextInput.tsx
Github Open Source
Open Source
MIT
2,020
EasyAttest
Momotoculteur
TSX
Code
197
703
import * as React from "react"; import { View, } from "react-native"; import { HelperText, TextInput, } from 'react-native-paper'; import { styles } from './style' import { validateCreateProfilFormService } from '../../../services/validateCreateProfilFormService' import { Observable, Observer } from "rxjs"; import {TextInputMask} from 'react-native-text-input-mask'; interface IProps { mode: string, label: string, getData: any, keyboardType: string, maxLength?: number, } interface IState { inputTextValue: string, errorInForm: boolean } export default class MomotoculteurTextInput extends React.Component<IProps, IState> { subscription: any; constructor(props: any) { super(props); this.state = { inputTextValue: '', errorInForm: false, }; this.updateUi = this.updateUi.bind(this); } componentDidMount() { this.subscription = validateCreateProfilFormService.validateForm().subscribe(() => { if (this.state.inputTextValue === "") { this.setState({ errorInForm: true }); } else { this.setState({ errorInForm: false }); } }); } componentWillUnmount() { this.subscription.unsubscribe(); } updateUi(updatedInputValue: string) { this.setState({ inputTextValue: updatedInputValue }); this.props.getData(updatedInputValue); } isEmpty() { return (this.state.inputTextValue === ""); } renderErrorEmptyForm() { return ( <HelperText type="error" visible={this.state.errorInForm}> {this.props.label} est requis </HelperText> ) } render() { const { inputTextValue } = this.state; return ( <View> <TextInput error={this.state.errorInForm} label={this.props.label} value={inputTextValue} onChangeText={this.updateUi} //underlineColor={this.props.color} theme={{ colors: { primary: 'red', placeholder: 'gray', background: 'white', text: 'black' } }} mode={this.props.mode} keyboardType={this.props.keyboardType} maxLength={this.props.maxLength} /> {(() => { if (this.state.errorInForm) { return (this.renderErrorEmptyForm()) } })()} </View> ); } }
49,748
https://github.com/mikeaddison93/deeplearning4j/blob/master/deeplearning4j-scaleout/deeplearning4j-nlp/src/test/java/org/deeplearning4j/models/word2vec/wordstore/VocabConstructorTest.java
Github Open Source
Open Source
Apache-2.0
2,015
deeplearning4j
mikeaddison93
Java
Code
199
1,025
package org.deeplearning4j.models.word2vec.wordstore; import org.deeplearning4j.models.word2vec.wordstore.inmemory.InMemoryLookupCache; import org.deeplearning4j.text.sentenceiterator.SentenceIterator; import org.deeplearning4j.text.sentenceiterator.UimaSentenceIterator; import org.deeplearning4j.text.tokenization.tokenizer.preprocessor.CommonPreprocessor; import org.deeplearning4j.text.tokenization.tokenizerfactory.DefaultTokenizerFactory; import org.deeplearning4j.text.tokenization.tokenizerfactory.TokenizerFactory; import org.junit.Before; import org.junit.Test; import org.springframework.core.io.ClassPathResource; import java.io.File; import static org.junit.Assert.*; /** * Created by fartovii on 22.11.15. */ public class VocabConstructorTest { @Before public void setUp() throws Exception { } @Test public void testBuildJointVocabulary1() throws Exception { File inputFile = new ClassPathResource("/big/raw_sentences.txt").getFile(); SentenceIterator iter = UimaSentenceIterator.createWithPath(inputFile.getAbsolutePath()); TokenizerFactory t = new DefaultTokenizerFactory(); t.setTokenPreProcessor(new CommonPreprocessor()); VocabConstructor constructor = new VocabConstructor.Builder() .setTokenizerFactory(t) .addSource(iter, 0) .useAdaGrad(false) .build(); VocabCache cache = constructor.buildJointVocabulary(true, false); assertEquals(0, cache.totalWordOccurrences()); assertEquals(244, cache.numWords()); } @Test public void testBuildJointVocabulary2() throws Exception { File inputFile = new ClassPathResource("/big/raw_sentences.txt").getFile(); SentenceIterator iter = UimaSentenceIterator.createWithPath(inputFile.getAbsolutePath()); TokenizerFactory t = new DefaultTokenizerFactory(); t.setTokenPreProcessor(new CommonPreprocessor()); VocabConstructor constructor = new VocabConstructor.Builder() .setTokenizerFactory(t) .addSource(iter, 5) .useAdaGrad(false) .build(); VocabCache cache = constructor.buildJointVocabulary(false, true); assertEquals(634061, cache.totalWordOccurrences()); assertEquals(242, cache.numWords()); assertEquals("it", cache.wordAtIndex(0)); assertEquals("i", cache.wordAtIndex(1)); } @Test public void testVocabTransfer1() throws Exception { InMemoryLookupCache cache = new InMemoryLookupCache(false); VocabularyHolder holder = new VocabularyHolder.Builder() .externalCache(cache) .build(); holder.addWord("testerz"); holder.transferBackToVocabCache(); File inputFile = new ClassPathResource("/big/raw_sentences.txt").getFile(); SentenceIterator iter = UimaSentenceIterator.createWithPath(inputFile.getAbsolutePath()); TokenizerFactory t = new DefaultTokenizerFactory(); t.setTokenPreProcessor(new CommonPreprocessor()); VocabConstructor constructor = new VocabConstructor.Builder() .setTokenizerFactory(t) .addSource(iter, 5) .useAdaGrad(false) .setTargetVocabCache(cache) .build(); constructor.buildJointVocabulary(false, true); assertEquals(634061, cache.totalWordOccurrences()); assertEquals(243, cache.numWords()); assertEquals("it", cache.wordAtIndex(0)); assertEquals("i", cache.wordAtIndex(1)); assertNotEquals(null, cache.wordFor("testerz")); assertEquals(1, cache.wordFrequency("testerz")); } }
19,845
https://github.com/go-spatial/tegola/blob/master/container/singlelist/point/list/point.go
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
tegola
go-spatial
Go
Code
134
390
package list import ( "fmt" "github.com/go-spatial/tegola/container/singlelist" "github.com/go-spatial/tegola/maths" ) type Elementer interface { list.Elementer } type ElementerPointer interface { list.Elementer maths.Pointer } // Pt is a point node. type Pt struct { maths.Pt // This fulfills the Elementer interface. list.Sentinel } func (p *Pt) Point() (pt maths.Pt) { return p.Pt } func (p *Pt) String() string { if p == nil { return "(nil)" } return p.Pt.String() } func (p *Pt) GoString() string { if p == nil { return "(nil)" } return fmt.Sprintf("[%v,%v]", p.Pt.X, p.Pt.Y) } func NewPt(pt maths.Pt) *Pt { return &Pt{Pt: pt} } func NewPoint(x, y float64) *Pt { return &Pt{ Pt: maths.Pt{ X: x, Y: y, }, } } func NewPointSlice(pts ...maths.Pt) (rpts []*Pt) { for _, pt := range pts { rpts = append(rpts, &Pt{Pt: pt}) } return rpts }
41,733
https://github.com/fireice-uk/ryo-currency/blob/master/src/common/command_line.cpp
Github Open Source
Open Source
BSD-3-Clause
2,019
ryo-currency
fireice-uk
C++
Code
496
972
// Copyright (c) 2018, Ryo Currency Project // Portions copyright (c) 2014-2018, The Monero Project // // Portions of this file are available under BSD-3 license. Please see ORIGINAL-LICENSE for details // All rights reserved. // // Authors and copyright holders give permission for following: // // 1. Redistribution and use in source and binary forms WITHOUT modification. // // 2. Modification of the source form for your own personal use. // // As long as the following conditions are met: // // 3. You must not distribute modified copies of the to third parties. This includes // posting the work online, or hosting copies of the modified work for download. // // 4. Any derivative version of this work is also covered by this license, including point 8. // // 5. Neither the name of the copyright holders nor the names of the authors may be // used to endorse or promote products derived from this software without specific // prior written permission. // // 6. You agree that this licence is governed by and shall be construed in accordance // with the laws of England and Wales. // // 7. You agree to submit all disputes arising out of or in connection with this licence // to the exclusive jurisdiction of the Courts of England and Wales. // // Authors and copyright holders agree that: // // 8. This licence expires and the work covered by it is released into the // public domain on 1st of February 2019 // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL // THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers #include "command_line.h" #include "common/i18n.h" #include "cryptonote_config.h" #include "string_tools.h" #include <boost/algorithm/string/compare.hpp> #include <boost/algorithm/string/predicate.hpp> #include <unordered_set> namespace command_line { namespace { const char *tr(const char *str) { return i18n_translate(str, "command_line"); } } bool is_yes(const std::string &str) { if(str == "y" || str == "Y") return true; boost::algorithm::is_iequal ignore_case{}; if(boost::algorithm::equals("yes", str, ignore_case)) return true; if(boost::algorithm::equals(command_line::tr("yes"), str, ignore_case)) return true; return false; } bool is_no(const std::string &str) { if(str == "n" || str == "N") return true; boost::algorithm::is_iequal ignore_case{}; if(boost::algorithm::equals("no", str, ignore_case)) return true; if(boost::algorithm::equals(command_line::tr("no"), str, ignore_case)) return true; return false; } const arg_descriptor<bool> arg_help = {"help", "Produce help message"}; const arg_descriptor<bool> arg_version = {"version", "Output version information"}; }
25,315
https://github.com/dennoa/witness-this/blob/master/client/views/home/home.controller.spec.js
Github Open Source
Open Source
MIT
null
witness-this
dennoa
JavaScript
Code
25
93
'use strict'; describe('Home Controller', function() { beforeEach(module('myStuff')); var HomeCtrl, scope; beforeEach(inject(function($controller, $rootScope) { scope = $rootScope.$new(); HomeCtrl = $controller('HomeCtrl', { $scope: scope }); })); });
47,450
https://github.com/jupyter/nbconvert/blob/master/nbconvert/filters/citation.py
Github Open Source
Open Source
BSD-3-Clause
2,023
nbconvert
jupyter
Python
Code
382
911
"""Citation handling for LaTeX output.""" # ----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # ----------------------------------------------------------------------------- # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- from html.parser import HTMLParser # ----------------------------------------------------------------------------- # Functions # ----------------------------------------------------------------------------- __all__ = ["citation2latex"] def citation2latex(s): """Parse citations in Markdown cells. This looks for HTML tags having a data attribute names ``data-cite`` and replaces it by the call to LaTeX cite command. The transformation looks like this:: <cite data-cite="granger">(Granger, 2013)</cite> Becomes :: \\cite{granger} Any HTML tag can be used, which allows the citations to be formatted in HTML in any manner. """ parser = CitationParser() parser.feed(s) parser.close() outtext = "" startpos = 0 for citation in parser.citelist: outtext += s[startpos : citation[1]] outtext += "\\cite{%s}" % citation[0] startpos = citation[2] if len(citation) == 3 else -1 # noqa outtext += s[startpos:] if startpos != -1 else "" return outtext # ----------------------------------------------------------------------------- # Classes # ----------------------------------------------------------------------------- class CitationParser(HTMLParser): """Citation Parser Replaces html tags with data-cite attribute with respective latex \\cite. Inherites from HTMLParser, overrides: - handle_starttag - handle_endtag """ # number of open tags opentags = None # list of found citations citelist = None # type:ignore # active citation tag citetag = None def __init__(self): """Initialize the parser.""" self.citelist = [] self.opentags = 0 HTMLParser.__init__(self) def get_offset(self): """Get the offset position.""" # Compute startposition in source lin, offset = self.getpos() pos = 0 for _ in range(lin - 1): pos = self.data.find("\n", pos) + 1 return pos + offset def handle_starttag(self, tag, attrs): """Handle a start tag.""" # for each tag check if attributes are present and if no citation is active if self.opentags == 0 and len(attrs) > 0: for atr, data in attrs: if atr.lower() == "data-cite": self.citetag = tag self.opentags = 1 self.citelist.append([data, self.get_offset()]) return if tag == self.citetag: # found an open citation tag but not the starting one self.opentags += 1 # type:ignore def handle_endtag(self, tag): """Handle an end tag.""" if tag == self.citetag: # found citation tag check if starting one if self.opentags == 1: pos = self.get_offset() self.citelist[-1].append(pos + len(tag) + 3) self.opentags -= 1 # type:ignore def feed(self, data): """Handle a feed.""" self.data = data HTMLParser.feed(self, data)
34,163
https://github.com/hozuki/StarlightDirector/blob/master/src/StarlightDirector/UI/Controls/ScoreVisualizer.Designer.cs
Github Open Source
Open Source
MIT
2,021
StarlightDirector
hozuki
C#
Code
220
1,054
namespace OpenCGSS.StarlightDirector.UI.Controls { partial class ScoreVisualizer { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region 组件设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要修改 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.vScroll = new System.Windows.Forms.VScrollBar(); this.editor = new OpenCGSS.StarlightDirector.UI.Controls.Editing.ScoreEditor(); this.previewer = new OpenCGSS.StarlightDirector.UI.Controls.Previewing.ScorePreviewer(); this.SuspendLayout(); // // vScroll // this.vScroll.LargeChange = 100; this.vScroll.Location = new System.Drawing.Point(439, 3); this.vScroll.Name = "vScroll"; this.vScroll.Size = new System.Drawing.Size(20, 504); this.vScroll.SmallChange = 29; this.vScroll.TabIndex = 1; // // editor // this.editor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.editor.Difficulty = OpenCGSS.StarlightDirector.Models.Beatmap.Difficulty.Debut; this.editor.EditMode = OpenCGSS.StarlightDirector.UI.Controls.Editing.ScoreEditMode.Select; this.editor.Location = new System.Drawing.Point(3, 3); this.editor.Name = "editor"; this.editor.NoteStartPosition = OpenCGSS.StarlightDirector.Models.Beatmap.NotePosition.Default; this.editor.Project = null; this.editor.ScrollOffsetX = 0; this.editor.Size = new System.Drawing.Size(433, 504); this.editor.SuspendOnFormInactive = false; this.editor.TabIndex = 2; this.editor.Text = "Score Editor"; // // previewer // this.previewer.Location = new System.Drawing.Point(3, 18); this.previewer.Name = "previewer"; this.previewer.RenderMode = OpenCGSS.StarlightDirector.UI.Controls.Previewing.PreviewerRenderMode.Standard; this.previewer.Score = null; this.previewer.Size = new System.Drawing.Size(456, 489); this.previewer.SuspendOnFormInactive = false; this.previewer.TabIndex = 3; this.previewer.Text = "Score Previewer"; // // ScoreVisualizer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.previewer); this.Controls.Add(this.editor); this.Controls.Add(this.vScroll); this.Name = "ScoreVisualizer"; this.Size = new System.Drawing.Size(459, 510); this.ResumeLayout(false); } #endregion private System.Windows.Forms.VScrollBar vScroll; private global::OpenCGSS.StarlightDirector.UI.Controls.Editing.ScoreEditor editor; private Previewing.ScorePreviewer previewer; } }
12,327
https://github.com/liangwang0734/aorsa/blob/master/src/mets2aorsa_myra.f90
Github Open Source
Open Source
MIT
2,020
aorsa
liangwang0734
Fortran Free Form
Code
2,297
6,646
!module METS2AORSA_MYRA ! private ! public:: GET_WMAT_MYRA, intplt1d, WINTERP1D_3 !contains subroutine GET_SUM_MYRA(k_uper, sum, W, ZSPEC, ASPEC, BMAG, & & lmax, ENORM, UPARMIN, UPARMAX, & & NUPAR, NUPER, UPER, UPAR, DFDUPER, DFDUPAR, & & ealphak, ebetak, ebk, nkdim1, nkdim2, mkdim1, mkdim2, & & nkx1, nkx2, nky1, nky2, & & uxx, uxy, uxz, & & uyx, uyy, uyz, & & uzx, uzy, uzz, & & nxdim, nydim, xkxsav, xkysav, xkphi, xx, yy, i_global, j_global, & & lmaxdim, ndist, nzeta) implicit none integer i_global, j_global, ier, nxdim, nydim, k, lmaxdim, ndist integer, intent(IN):: NUPAR, NUPER, lmax integer nkx1, nkx2, nky1, nky2, j_upar, k_uper integer nkdim1, nkdim2, mkdim1, mkdim2 integer:: NHARM, IHARM, M, N, i, nzeta real uxx, uxy, uxz, uyx, uyy, uyz, uzx, uzy, uzz real xkphi real xkxsav(nkdim1 : nkdim2), xkysav(mkdim1 : mkdim2) real xkperpn, xkperpni, xkrhon, xketan, xkbn, beta real, intent(IN):: W, ZSPEC, ASPEC, BMAG real, intent(IN):: ENORM, UPARMIN, UPARMAX real, dimension(NUPER), intent(IN):: UPER real, dimension(NUPAR), intent(IN):: UPAR real, dimension(NUPER,NUPAR), intent(IN):: DFDUPER, DFDUPAR real:: W2, WCW, RRP, RRM, WC, WCI real:: MUT0, SQMUT0, SQMUT0I, KPARA1, NPARA1 real:: ISQ2, SQ2, NWCW, DFACTPAR, DFACTPER, U0, U real:: UPAR0, dfdupar0, dfduper0, du, dui, p real:: time, t1, tmsec, second1, dummy, WI, uperpk real:: dzeta, dzetai, zetamax, zetamin, zeta0, zetamax1, zetamax2 real:: A1, A2, A3 real:: temp1, temp2, temp3 real, dimension(:), allocatable :: zetai real, dimension(:,:), allocatable :: Jni real, dimension(:,:,:), allocatable :: Jn real, dimension(:,:), allocatable :: cosbeta real, dimension(:,:), allocatable :: sinbeta real, dimension(:,:), allocatable :: NPARA_sav complex epsx, epsy, epsz complex ealphak(nkdim1 : nkdim2, mkdim1 : mkdim2), & & ebetak(nkdim1 : nkdim2, mkdim1 : mkdim2), & & ebk(nkdim1 : nkdim2, mkdim1 : mkdim2) complex cexpkx, cexpky, zi, zeta complex xx(nkdim1 : nkdim2, 1 : nxdim), & & yy(mkdim1 : mkdim2, 1 : nydim) complex cexpn, cexpnp1, cexpnm1, cexp11 complex cexp1, cexp2, cexp0 complex sum1_11, sum1_31 complex sum2_1, sum2_2, sum2_3, sum complex b(100) real, parameter:: EOVERAMU = 9.64853e7 real, parameter:: EOVERMH = 9.58084e+07 real, parameter:: MPC2 = 938271998.38 real, parameter:: C = 2.99792458e8 real, parameter:: PI = 3.141592653597932384 allocate(zetai(nzeta + 1) ) allocate(Jni(-lmaxdim : lmaxdim, nzeta + 1) ) allocate( Jn(-lmaxdim : lmaxdim, nkdim1 : nkdim2, mkdim1 : mkdim2)) allocate(cosbeta(nkdim1 : nkdim2, mkdim1 : mkdim2) ) allocate(sinbeta(nkdim1 : nkdim2, mkdim1 : mkdim2) ) allocate(NPARA_sav(nkdim1 : nkdim2, mkdim1 : mkdim2) ) zi = cmplx(0., 1.) uperpk = uper(k_uper) W2 = W * W WI = 1.0 / W WCW = BMAG * ZSPEC * EOVERMH / ASPEC / W WC = WCW * W WCI = 1.0 /WC MUT0 = 0.5 * MPC2 * ASPEC / ENORM SQMUT0 = SQRT(MUT0) SQMUT0I = 1.0 / SQMUT0 ISQ2 = SQRT(0.5) SQ2 = SQRT(2.0) NHARM = lmax du = (upar(nupar) - upar(1)) / (nupar - 1) dui = 1.0 / du if(nzeta .eq. 1)then ! -------------------------------------------------------- ! ! ---Don't interpolate: precalculate all Bessel functions-- ! ! -------------------------------------------------------- ! do n = nkx1, nkx2 do m = nky1, nky2 xkrhon = uxx * xkxsav(n) + uxy * xkysav(m) + uxz * xkphi xketan = uyx * xkxsav(n) + uyy * xkysav(m) + uyz * xkphi xkbn = uzx * xkxsav(n) + uzy * xkysav(m) + uzz * xkphi NPARA_sav(n, m) = xkbn * C / W xkperpn = sqrt(xkrhon**2 + xketan**2) if(xkperpn .eq. 0.0)xkperpn = 1.0e-08 cosbeta(n, m) = xkrhon / xkperpn sinbeta(n, m) = xketan / xkperpn zeta = xkperpn * uper(k_uper) * c * sqmut0i / wc call besjc(zeta, nharm + 2, b, ier) if(ier .ne. 0) write(6, *) "ier = ", ier do IHARM = 0, NHARM + 1 Jn(iharm, n, m) = b(iharm + 1) Jn(-iharm, n, m) = (-1.0)**iharm * Jn(iharm, n, m) end do end do end do else ! t1 = second1(dummy) ! -------------------------------------- ! ! ---Interpolate; calculate zeta mesh -- ! ! -------------------------------------- ! zetamax = 0.0 zetamin = 0.0 do n = nkx1, nkx2 do m = nky1, nky2 xkrhon = uxx * xkxsav(n) + uxy * xkysav(m) + uxz * xkphi xketan = uyx * xkxsav(n) + uyy * xkysav(m) + uyz * xkphi xkbn = uzx * xkxsav(n) + uzy * xkysav(m) + uzz * xkphi xkperpn = sqrt(xkrhon**2 + xketan**2) + 1.0e-08 zeta0 = xkperpn * uperpk * c * sqmut0i * wci if (zeta0 .gt. zetamax) zetamax = zeta0 if (zeta0 .lt. zetamin) zetamin = zeta0 end do end do if(zetamax .eq. zetamin)then zetamax = 1.0e-06 zetamin = -1.0e-06 end if dzeta = (zetamax - zetamin) / (nzeta - 1) dzetai = 1.0 / dzeta ! ------------------------------------------------- ! ! ---Pre-calculate Bessel functions on zeta mesh -- ! ! ------------------------------------------------- ! do i = 1, nzeta + 1 zetai(i) = zetamin + (i - 1) * dzeta zeta = cmplx(zetai(i), 0.0) call besjc(zeta, nharm + 2, b, ier) ! if(ier .ne. 0) write(6, *) "ier = ", ier do iharm = 0, NHARM + 1 Jni(iharm, i) = b(iharm + 1) Jni(-iharm, i) = (-1.0)**iharm * b(iharm + 1) end do end do ! --------------------------------- ! ! ---Interpolate Bessel functions-- ! ! --------------------------------- ! do n = nkx1, nkx2 do m = nky1, nky2 xkrhon = uxx * xkxsav(n) + uxy * xkysav(m) + uxz * xkphi xketan = uyx * xkxsav(n) + uyy * xkysav(m) + uyz * xkphi xkbn = uzx * xkxsav(n) + uzy * xkysav(m) + uzz * xkphi NPARA_sav(n, m) = xkbn * C * WI xkperpn = sqrt(xkrhon**2 + xketan**2) + 1.0e-08 xkperpni = 1.0 / xkperpn cosbeta(n, m) = xkrhon * xkperpni sinbeta(n, m) = xketan * xkperpni zeta0 = xkperpn * uperpk * c * sqmut0i * wci i = int((zeta0 - zetamin) * dzetai) + 1 p = (zeta0 - zetai(i)) * dzetai A1 = 0.5 * P * (P - 1.) A2 = 1. - P * P A3 = 0.5 * P * (P + 1.) do iharm = -NHARM - 1, NHARM + 1 Jn(iharm, n, m) = Jni(iharm, i) + p * (Jni(iharm, i + 1) - Jni(iharm, i)) if(i .ne. 1 )then Jn(iharm, n, m) = A1 * Jni(iharm, i - 1) + A2 * Jni(iharm, i) + A3 * Jni(iharm, i + 1) end if end do end do end do end if ! ------------------------ ! ! ---Sum over harmonics--- ! ! ------------------------ ! sum = 0.0 do IHARM = -NHARM, NHARM NWCW = real(IHARM) * WCW sum1_11 = 0.0 sum1_31 = 0.0 sum2_1 = 0.0 sum2_2 = 0.0 sum2_3 = 0.0 ! --------------------------- ! ! ---Sum over Fourier modes-- ! ! --------------------------- ! do n = nkx1, nkx2 do m = nky1, nky2 NPARA1 = NPARA_sav(n, m) cexpkx = xx(n, i_global) cexpky = yy(m, j_global) cexp11 = cosbeta(n, m) + zi * sinbeta(n, m) cexpn = cexp11 ** iharm cexpnp1 = cexpn * cexp11 cexpnm1 = cexpn / cexp11 cexp1 = cexpkx * cexpky * cexpnp1 cexp2 = cexpkx * cexpky * cexpnm1 cexp0 = cexpkx * cexpky * cexpn epsx = isq2 * (ealphak(n, m) - zi * ebetak(n, m)) * cexp1 epsy = isq2 * (ealphak(n, m) + zi * ebetak(n, m)) * cexp2 epsz = ebk(n, m) * cexp0 sum2_1 = sum2_1 + conjg(epsx) * Jn(IHARM + 1, n, m) sum2_2 = sum2_2 + conjg(epsy) * Jn(IHARM - 1, n, m) sum2_3 = sum2_3 + conjg(epsz) * Jn(IHARM, n, m) ! ------------------------ ! ! -- Resonance relation -- ! ! ------------------------ ! RRP = 1.0 - NWCW - NPARA1 * UPARMAX * SQMUT0i RRM = 1.0 - NWCW - NPARA1 * UPARMIN * SQMUT0i if (RRP * RRM .le. 0) then ! --------------- ! ! -- Resonance -- ! ! --------------- ! UPAR0 = SQMUT0 / NPARA1 * (1. - NWCW) i = int((UPAR0 - UPAR(1)) * dui) + 1 p = (UPAR0 - UPAR(i)) * dui dfduper0 = dfduper(k_uper, NUPAR) if (i .ne. NUPAR) then dfduper0 = dfduper(k_uper, i) + (dfduper(k_uper, i+1) - dfduper(k_uper, i)) * p end if U0 = DFDUPER0 if(ndist .eq. 1) then !--Non-Maxwellian--! DFACTPAR = NPARA1 * UPAR0 * SQMUT0I DFACTPER = NPARA1 * UPER(k_uper) * SQMUT0I dfdupar0 = dfdupar(k_uper, NUPAR) if(i .ne. NUPAR)then dfdupar0 = dfdupar(k_uper, i) + (dfdupar(k_uper, i+1) - dfdupar(k_uper, i)) * p end if U0 = (1. - DFACTPAR) * DFDUPER0 + DFACTPER * DFDUPAR0 end if U = PI * SQMUT0 / abs(NPARA1) * U0 temp1 = UPER(k_uper) * UPER(k_uper) * U temp2 = SQ2 * UPER(k_uper) * UPAR0 * U temp3 = 2.0 * UPAR0 * UPAR0 * U sum1_11 = sum1_11 + temp1 * Jn(IHARM + 1, n, m) * epsx & & + temp1 * Jn(IHARM - 1, n, m) * epsy & & + temp2 * Jn(IHARM, n, m) * epsz sum1_31 = sum1_31 + temp2 * Jn(IHARM + 1, n, m) * epsx & & + temp2 * Jn(IHARM - 1, n, m) * epsy & & + temp3 * Jn(IHARM, n, m) * epsz end if end do end do sum = sum + sum2_1 * sum1_11 + sum2_2 * sum1_11 + sum2_3 * sum1_31 end do deallocate(zetai) deallocate(Jni) deallocate(Jn) deallocate(cosbeta) deallocate(sinbeta) deallocate(NPARA_sav) end subroutine GET_SUM_MYRA ! !************************************************************************* ! subroutine WINTERP1D_3(X, LX, FX, X0, FX0) ! -------------------------- ! 1D quadradic interpolation ! -------------------------- implicit none integer, intent(IN):: LX real, dimension(LX), intent(IN):: X,FX real, intent(IN):: X0 real, intent(inout):: FX0 real:: FXY0,XMIN,XMAX,DX real:: P,A1,A2,A3 integer:: I FX0 = 0. XMIN = X(1) XMAX = X(LX) DX = (XMAX - XMIN) / (LX - 1) I = int(1. + (X0 - XMIN) / DX) P = (X0 - X(I)) / DX if(i .ne. 1 .and. i .ne. lx)then A1 = 0.5 * P * (P - 1.) A2 = 1. - P * P A3 = 0.5 * P * (P + 1.) FX0 = A1 * FX(I-1) + A2 * FX(I) + A3 * FX(I+1) else if(i .eq. lx) fx0 = fx(i) if(i .eq. 1) fx0 = fx(i) + (fx(i+1) - fx(i)) * p end if end subroutine WINTERP1D_3 ! !************************************************************************* ! subroutine intplt1d(x, lx, fx, nlen, x0, fx0) ! ----------------------- ! 1D linear interpolation ! ----------------------- implicit none integer lx, i, nlen real fx(lx), x(lx), fx0, x0, dx do i = 1, nlen if (x0 .ge. x(i) .and. x0 .lt. x(i+1) ) go to 100 end do 100 continue if(i .eq. nlen)then fx0 = fx(nlen) else dx = x(i+1) - x(i) fx0 = fx(i) + (fx(i+1) - fx(i)) * (x0 - x(i)) / dx end if end subroutine intplt1d ! !************************************************************************* ! subroutine spline (x, y, b, c, d, n) !====================================================================== ! Calculate the coefficients b(i), c(i), and d(i), i=1,2,...,n ! for cubic spline interpolation ! s(x) = y(i) + b(i)*(x-x(i)) + c(i)*(x-x(i))**2 + d(i)*(x-x(i))**3 ! for x(i) <= x <= x(i+1) ! Alex G: January 2010 !---------------------------------------------------------------------- ! input.. ! x = the arrays of data abscissas (in strictly increasing order) ! y = the arrays of data ordinates ! n = size of the arrays xi() and yi() (n>=2) ! output.. ! b, c, d = arrays of spline coefficients ! comments ... ! spline.f90 program is based on fortran version of program spline.f ! the accompanying function fspline can be used for interpolation !====================================================================== implicit none integer n double precision x(n), y(n), b(n), c(n), d(n) integer i, j, gap double precision h gap = n-1 ! check input if ( n < 2 ) return if ( n < 3 ) then b(1) = (y(2)-y(1))/(x(2)-x(1)) ! linear interpolation c(1) = 0. d(1) = 0. b(2) = b(1) c(2) = 0. d(2) = 0. return end if ! ! step 1: preparation ! d(1) = x(2) - x(1) c(2) = (y(2) - y(1))/d(1) do i = 2, gap d(i) = x(i+1) - x(i) b(i) = 2.0*(d(i-1) + d(i)) c(i+1) = (y(i+1) - y(i))/d(i) c(i) = c(i+1) - c(i) end do ! ! step 2: end conditions ! b(1) = -d(1) b(n) = -d(n-1) c(1) = 0.0 c(n) = 0.0 if(n /= 3) then c(1) = c(3)/(x(4)-x(2)) - c(2)/(x(3)-x(1)) c(n) = c(n-1)/(x(n)-x(n-2)) - c(n-2)/(x(n-1)-x(n-3)) c(1) = c(1)*d(1)**2/(x(4)-x(1)) c(n) = -c(n)*d(n-1)**2/(x(n)-x(n-3)) end if ! ! step 3: forward elimination ! do i = 2, n h = d(i-1)/b(i-1) b(i) = b(i) - h*d(i-1) c(i) = c(i) - h*c(i-1) end do ! ! step 4: back substitution ! c(n) = c(n)/b(n) do j = 1, gap i = n-j c(i) = (c(i) - d(i)*c(i+1))/b(i) end do ! ! step 5: compute spline coefficients ! b(n) = (y(n) - y(gap))/d(gap) + d(gap)*(c(gap) + 2.0*c(n)) do i = 1, gap b(i) = (y(i+1) - y(i))/d(i) - d(i)*(c(i+1) + 2.0*c(i)) d(i) = (c(i+1) - c(i))/d(i) c(i) = 3.*c(i) end do c(n) = 3.0*c(n) d(n) = d(n-1) end subroutine spline ! !************************************************************************* ! function ispline(u, x, y, b, c, d, n) !====================================================================== ! function ispline evaluates the cubic spline interpolation at point z ! ispline = y(i)+b(i)*(u-x(i))+c(i)*(u-x(i))**2+d(i)*(u-x(i))**3 ! where x(i) <= u <= x(i+1) !---------------------------------------------------------------------- ! input.. ! u = the abscissa at which the spline is to be evaluated ! x, y = the arrays of given data points ! b, c, d = arrays of spline coefficients computed by spline ! n = the number of data points ! output: ! ispline = interpolated value at point u !======================================================================= implicit none double precision ispline integer n double precision u, x(n), y(n), b(n), c(n), d(n) integer i, j, k double precision dx ! if u is ouside the x() interval take a boundary value (left or right) if(u <= x(1)) then ispline = y(1) return end if if(u >= x(n)) then ispline = y(n) return end if !* ! binary search for for i, such that x(i) <= u <= x(i+1) !* i = 1 j = n+1 do while (j > i+1) k = (i+j)/2 if(u < x(k)) then j=k else i=k end if end do !* ! evaluate spline interpolation !* dx = u - x(i) ispline = y(i) + dx*(b(i) + dx*(c(i) + dx*d(i))) end function ispline !end module METS2AORSA_MYRA
40,191
https://github.com/VandeboschRemy/Re-Book-IT-appi-/blob/master/ReBookIT/app/src/main/java/be/rebookit/vandeboschremy/re_book_it/InfoActivity.java
Github Open Source
Open Source
BSD-2-Clause
null
Re-Book-IT-appi-
VandeboschRemy
Java
Code
69
186
package be.rebookit.vandeboschremy.re_book_it; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; /** * The InfoActivity show the user what the smileys mean and how things work at Re-Book IT. * Created by Vandebosch Remy on 28/03/2018. */ public class InfoActivity extends AppCompatActivity { /** * This method gets called when the activity is created. * @param savedInstanceState The instance state that is saved. */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_info); } }
23,455
https://github.com/sjsoad/New-Project-Kit/blob/master/Templates/Cells/Presenter + Cell.xctemplate/___FILEBASENAME___CellPresenter.swift
Github Open Source
Open Source
MIT
null
New-Project-Kit
sjsoad
Swift
Code
92
324
// // ___FILENAME___ // ___PROJECTNAME___ // // Created by ___FULLUSERNAME___ on ___DATE___. // ___COPYRIGHT___ // import Foundation import SKDataSources protocol ___VARIABLE_fileName:identifier___Interface: class { } protocol ___VARIABLE_fileName:identifier___Output { } class ___FILEBASENAMEASIDENTIFIER___ { private weak var view: ___VARIABLE_fileName:identifier___Interface? private(set) var reuseIdentifier: String private(set) var model: <#ModelType#> init(with objectModel: <#ModelType#>, cellIdentifier: String) { self.model = objectModel self.reuseIdentifier = cellIdentifier } } // MARK: - ___VARIABLE_fileName:identifier___Output - extension ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_fileName:identifier___Output { } // MARK: - PresenterType - extension ___FILEBASENAMEASIDENTIFIER___: PresenterType { func set(view: ViewType) { self.view = view as? ___VARIABLE_fileName:identifier___Interface } func configure() { } }
31,943
https://github.com/swellaby/letra/blob/master/letra/_file_io/file_io.py
Github Open Source
Open Source
MIT
null
letra
swellaby
Python
Code
103
363
from .yaml import read as read_yaml, write as write_yaml from . import TemplateFileFormat from os import getcwd from os.path import abspath, join, exists as path_exists from string import Template def get_path_for_read(filepath): if path_exists(filepath): return filepath else: path = abspath(join(getcwd(), filepath)) if path_exists(path): return path else: raise ValueError( "Specified template file not found.\n" f"Checked relative path: '{filepath}' " f"and absolute path: '{path}'" ) def get_path_for_write(filepath): if not filepath: raise ValueError("Invalid filepath specified") if filepath[0] == ".": return abspath(join(getcwd(), filepath)) return filepath def read_templates_from_file( filepath, template_format: TemplateFileFormat = TemplateFileFormat.YAML ): return read_yaml(get_path_for_read(filepath)) def write_templates_to_file( labels, filepath, template_format: TemplateFileFormat = TemplateFileFormat.YAML, ): return write_yaml({"labels": labels}, get_path_for_write(filepath))
37,666
https://github.com/ypyf/fscm/blob/master/test/load.scm
Github Open Source
Open Source
MIT
2,019
fscm
ypyf
Scheme
Code
19
57
(define start #f) (if (not start) (call/cc (lambda (cc) (set! start cc)))) (display "Going to invoke (start)\n") (start #f)
23,352
https://github.com/anpl-technion/anpl_mrbsp/blob/master/action_generator/src/action_generator/action_generator_node.cpp
Github Open Source
Open Source
MIT
2,021
anpl_mrbsp
anpl-technion
C++
Code
106
288
/* --------------------------------------------------------------------------- * * Autonomous Navigation and Perception Lab (ANPL), * Technion, Israel Institute of Technology, * Faculty of Aerospace Engineering, * Haifa, Israel, 32000 * All Rights Reserved * * See LICENSE for the license information * * -------------------------------------------------------------------------- */ /** * @file: action_generator.cpp * @brief: ROS node main * @author: Andrej Kitanov * */ #include <action_generator/action_generator.hpp> int main(int argc, char **argv) { ros::init(argc, argv, "action_generator", ros::init_options::NoSigintHandler); ros::NodeHandle nh; ActionGenerator ag(nh); //ros::spin(); ros::Rate r(10); while (ros::ok()) { //ag.Draw(); // Handle Drawing events ros::spinOnce(); // Handle ROS events r.sleep(); //std::cout << "main" << std::endl; } std::cout << "Shutting down service..." << std::endl; sleep(1); return 0; }
45,278
https://github.com/elGuille-info/fourth-edition/blob/master/Code/Chapter_9/GoFish/GoFish/Program.cs
Github Open Source
Open Source
MIT
null
fourth-edition
elGuille-info
C#
Code
304
858
using System; namespace GoFish { using System.Collections.Generic; using System.Linq; class Program { /// <summary> /// The GameController to manage the game /// </summary> static GameController gameController; /// <summary> /// Play a game of Go Fish! /// </summary> static void Main(string[] args) { Console.Write("Enter your name: "); var humanName = Console.ReadLine(); Console.Write("Enter the number of computer opponents: "); int opponentCount; while (!int.TryParse(Console.ReadKey().KeyChar.ToString(), out opponentCount) || opponentCount < 1 || opponentCount > 4) { Console.WriteLine("Please enter a number from 1 to 4"); } Console.WriteLine($"{Environment.NewLine}Welcome to the game, {humanName}"); gameController = new GameController("Human", Enumerable.Range(1, opponentCount).Select(i => $"Computer #{i}")); Console.WriteLine(gameController.Status); while (!gameController.GameOver) { while (!gameController.GameOver) { Console.WriteLine($"Your hand:"); foreach (var card in gameController.HumanPlayer.Hand .OrderBy(card => card.Suit) .OrderBy(card => card.Value)) Console.WriteLine(card); var value = PromptForAValue(); var player = PromptForAnOpponent(); gameController.NextRound(player, value); Console.WriteLine(gameController.Status); } Console.WriteLine("Press Q to quit, any other key for a new game."); if (Console.ReadKey(true).KeyChar.ToString().ToUpper() == "N") gameController.NewGame(); } } /// <summary> /// Prompt the human player for a card value that's in their hand /// </summary> /// <returns>The value that the player asked for</returns> static Values PromptForAValue() { var handValues = gameController.HumanPlayer.Hand.Select(card => card.Value).ToList(); Console.Write("What card value do you want to ask for? "); while (true) { if (Enum.TryParse(typeof(Values), Console.ReadLine(), out var value) && handValues.Contains((Values)value)) return (Values)value; else Console.WriteLine("Please enter a value in your hand."); } } /// <summary> /// Prompt the human player for an opponent to ask for a card /// </summary> /// <returns>The opponent to ask for a card</returns> static Player PromptForAnOpponent() { var opponents = gameController.Opponents.ToList(); for (int i = 1; i <= opponents.Count(); i++) Console.WriteLine($"{i}. {opponents[i - 1]}"); Console.Write("Who do you want to ask for a card? "); while (true) { if (int.TryParse(Console.ReadLine(), out int selection) && selection >= 1 && selection <= opponents.Count()) return opponents[selection - 1]; else Console.Write($"Please enter a number from 1 to {opponents.Count()}: "); } } } }
27,405
https://github.com/tbrooke/ergo/blob/master/packages/ergo-engine/test/ergo-engine.js
Github Open Source
Open Source
Apache-2.0
null
ergo
tbrooke
JavaScript
Code
273
695
/* * 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. */ 'use strict'; const ErgoEngine = require('../lib/ergo-engine'); const Chai = require('chai'); Chai.should(); Chai.use(require('chai-things')); const Fs = require('fs'); const Path = require('path'); // Set of tests const workload = JSON.parse(Fs.readFileSync(Path.resolve(__dirname, 'workload.json'), 'utf8')); describe('Execute', () => { afterEach(() => {}); for (const i in workload) { const test = workload[i]; const name = test.name; const dir = test.dir; const ergo = test.ergo; const model = test.model; const contract = test.contract; const request = test.request; const state = test.state; const contractname = test.contractname; const clausename = test.clausename; const expected = test.expected; describe('#execute'+name, function () { it('should execute Ergo clause ' + clausename + ' in contract ' + contractname, async function () { const ergoText = Fs.readFileSync(Path.resolve(__dirname, dir, ergo), 'utf8'); const ctoText = Fs.readFileSync(Path.resolve(__dirname, dir, model), 'utf8'); const clauseJson = JSON.parse(Fs.readFileSync(Path.resolve(__dirname, dir, contract), 'utf8')); const requestJson = JSON.parse(Fs.readFileSync(Path.resolve(__dirname, dir, request), 'utf8')); const stateJson = JSON.parse(Fs.readFileSync(Path.resolve(__dirname, dir, state), 'utf8')); const result = await ErgoEngine.execute(ergoText, ctoText, clauseJson, requestJson, stateJson, contractname, clausename, false); //console.log(JSON.stringify(result)); for (const key in expected) { if (expected.hasOwnProperty(key)) { const field = key; const value = expected[key]; //result.should.not.be.null; result.response[field].should.equal(value); } } }); }); } });
4,715
https://github.com/itzsaga/react-oidc/blob/master/packages/redux/src/NotAuthorized.spec.js
Github Open Source
Open Source
MIT
2,021
react-oidc
itzsaga
JavaScript
Code
31
93
// Link.react.test.js import React from 'react'; import renderer from 'react-test-renderer'; import NotAuthorized from './NotAuthorized'; test('Render <NotAuthorized/> correctly', () => { const component = renderer.create(<NotAuthorized />); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); });
40,042
https://github.com/tim-yoshi/pyquarkchain/blob/master/quarkchain/cluster/tests/test_neighbor.py
Github Open Source
Open Source
MIT
2,022
pyquarkchain
tim-yoshi
Python
Code
104
326
import unittest from quarkchain.core import Branch from quarkchain.cluster.neighbor import is_neighbor class TestNeighbor(unittest.TestCase): def test_is_neighbor_same_chain_id(self): b1 = Branch(2 << 16 | 2 | 1) b2 = Branch(2 << 16 | 2 | 0) self.assertTrue(is_neighbor(b1, b2, 33)) def test_is_neighbor_same_shard_id(self): b1 = Branch(1 << 16 | 2 | 1) b2 = Branch(3 << 16 | 2 | 1) self.assertTrue(is_neighbor(b1, b2, 33)) def test_is_neighbor_small_shard_size(self): b1 = Branch(1 << 16 | 2 | 0) b2 = Branch(3 << 16 | 2 | 1) self.assertTrue(is_neighbor(b1, b2, 32)) def test_not_neighbor_diff_chain_id_and_diff_shard_id(self): b1 = Branch(1 << 16 | 2 | 0) b2 = Branch(3 << 16 | 2 | 1) self.assertFalse(is_neighbor(b1, b2, 33))
5,765
https://github.com/kingjin94/enhanced_simulation/blob/master/src/touchTable.py
Github Open Source
Open Source
Intel
null
enhanced_simulation
kingjin94
Python
Code
881
3,978
from filter_octomap.msg import table import numpy as np import random import rospy import moveit_commander import geometry_msgs.msg import sys from copy import deepcopy # For sending joint level controlls import actionlib from control_msgs.msg import FollowJointTrajectoryAction, FollowJointTrajectoryGoal from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint # For constraining planning from moveit_msgs.msg import Constraints, JointConstraint # For kinematic calculations from urdf_parser_py.urdf import URDF from pykdl_utils.kdl_kinematics import KDLKinematics import tf # For bumper from enhanced_sim.msg import CollisionState from gazebo_msgs.msg import ContactsState def go_to_q(q): client = actionlib.SimpleActionClient('/panda_arm_controller/follow_joint_trajectory', FollowJointTrajectoryAction) print("Waiting for action server ...") client.wait_for_server() goal = FollowJointTrajectoryGoal() joint_traj = JointTrajectory() joint_traj.joint_names = ["panda_joint1", "panda_joint2", "panda_joint3", "panda_joint4", "panda_joint5", "panda_joint6", "panda_joint7"] point1 = JointTrajectoryPoint() if type(q)==np.ndarray: point1.positions = q.tolist() else: point1.positions = q point1.velocities = [0., 0., 0., 0., 0., 0., 0.] point1.time_from_start = rospy.Duration(1.) joint_traj.points = [point1] goal.trajectory = joint_traj joint_traj.header.stamp = rospy.Time.now()+rospy.Duration(1.0) client.send_goal_and_wait(goal) def go_home(): go_to_q(np.asarray([0.0, -1.5, 0.0, -1.8702679826187074, 0, 2.873639813867795 - 1.51, 0.06015034910227879])) # go home configuration def transl_distance_pose(pose_a, pose_b): position_a = np.asarray((pose_a.position.x, pose_a.position.y, pose_a.position.z)) position_b = np.asarray((pose_b.position.x, pose_b.position.y, pose_b.position.z)) return np.linalg.norm(position_a - position_b) def plan_and_go(move_group, pose_goal, substeps=10): arrived = False for i in range(substeps): (plan, fraction) = move_group.compute_cartesian_path([pose_goal], 0.01, 1.0) exec_time = plan.joint_trajectory.points[-1].time_from_start.to_sec() if plan: if fraction < 0.5: print("Sub plan not complete ({})".format(fraction)) continue if not (.1 < exec_time < 10.0): print("Sub p exec time to long / short ({})".format(exec_time)) continue if not (1 < len(plan.joint_trajectory.points) < 100): print("Sub p with to many steps ({})".format(len(plan.joint_trajectory.points))) continue print("executing ...") num_replan=0 try: plan.joint_trajectory.points.append(deepcopy(plan.joint_trajectory.points[-1])) plan.joint_trajectory.points[-1].velocities = [0, 0, 0, 0, 0, 0, 0] plan.joint_trajectory.points[-1].accelerations = [0, 0, 0, 0, 0, 0, 0] plan.joint_trajectory.points[-1].time_from_start += rospy.rostime.Duration(0.5) print(plan) ret = move_group.execute(plan, wait=False) # Move to goal rospy.sleep(exec_time+0.7) # Wait till arrived #go_to_q(plan.joint_trajectory.points[-1].positions) move_group.stop() rospy.sleep(1.) #TODO : Check if at intended position c_pose = move_group.get_current_pose().pose if transl_distance_pose(c_pose, pose_goal) < 0.1 and c_pose.orientation.x > 0.95: return True else: print("Not yet there") continue except KeyboardInterrupt: return False except Exception as e: print(e) return False return False def go_to_random_point_over_table(move_group, table_msg, max_reach=0.8): go_home() arrived = False pose_goal = geometry_msgs.msg.Pose() pose_goal.position.z = table_msg.centroid_position.z + 0.3 pose_goal.orientation.x = 1 # tool pointing down pose_goal.orientation.y = 0 pose_goal.orientation.z = 0 pose_goal.orientation.w = 0 # select random point above table and go there # if not successfull try another point num_replan = 0 while not arrived and not rospy.is_shutdown(): if num_replan > 100: num_replan = 0 go_home() pose_goal.position.x = random.uniform(table_msg.min.x+.1, table_msg.max.x-.1) pose_goal.position.y = random.uniform(table_msg.min.y+.1, table_msg.max.y-.1) if pose_goal.position.x**2+pose_goal.position.y**2 > max_reach**2: print("Goal probably to far") continue print("Trying: {}", pose_goal.position) arrived = plan_and_go(move_group, pose_goal) if not arrived: num_replan += 1 print("Arrived successfully") return pose_goal def touch_table_straight_on(move_group, robot, kdl_kin, pose_goal): # move towards the table in a straight line (along end-effector's z-axis) rot_d = np.asarray((1,0,0,0)) pos_d = np.asarray((pose_goal.position.x,pose_goal.position.y,pose_goal.position.z)) old_e = np.zeros(6) sum_e = np.zeros(6) touchSensorMsg = None while True and not rospy.is_shutdown(): # while not touched later!!! pose_c = move_group.get_current_pose() pos_c = np.asarray((pose_c.pose.position.x, pose_c.pose.position.y, pose_c.pose.position.z)) rot_c = np.asarray((pose_c.pose.orientation.x, pose_c.pose.orientation.y, pose_c.pose.orientation.z, pose_c.pose.orientation.w)) if rot_c[0] < 0: rot_c = -1.*rot_c pos_d[2] -= 0.005 print("Desired:") print(np.concatenate([pos_d, rot_d])) print("Actual:") print(np.concatenate([pos_c, rot_c])) pos_e = pos_d - pos_c rot_e = rot_d - rot_c rot_e = np.asarray(tf.transformations.euler_from_quaternion(rot_e)) / 1000 #(get into same ballpark pi of rot to 0.001 m of the position) e = np.concatenate([pos_e, rot_e]) de = e-old_e old_e = e sum_e += e print("Error:") print(e) print("dError:") print(de) print("dsumError:") print(sum_e) q = np.asarray(robot.get_current_state().joint_state.position[:7]) J = np.asarray(kdl_kin.jacobian(q)) q_new = q+J.T.dot(e+0.1*de+0.01*sum_e) #[0,0,-1,0,0,0] go_to_q(q_new) move_group.stop() touchSensorMsg = rospy.wait_for_message("/panda/bumper/colliding", CollisionState) if touchSensorMsg.colliding: #print(touchSensorMsg) move_group.stop() break return touchSensorMsg def retract_from_table_straight(move_group, robot, kdl_kin): q = np.asarray(robot.get_current_state().joint_state.position[:7]) J = np.asarray(kdl_kin.jacobian(q)) q_new = q+J.T.dot([0,0,0.05,0,0,0]) go_to_q(q_new) #move_group.shift_pose_target(2, +0.05) ret = move_group.go() move_group.stop() print("Retracted") def fit_table(touchPoses): # fit table surface with new information from the touched points and display info #print("Touched surface at the following poses:") #print(touchPoses) print("Improved surface estimate:") touch_pts = np.zeros((3,10)) touch_pts[0,:] = [touchPoses[i].states[0].contact_positions[0].x for i in range(10)] touch_pts[1,:] = [touchPoses[i].states[0].contact_positions[0].y for i in range(10)] touch_pts[2,:] = [touchPoses[i].states[0].contact_positions[0].z for i in range(10)] print("Height: {}".format(np.mean(touch_pts[2,:]))) # Fit plane - https://www.ilikebigbits.com/2015_03_04_plane_from_points.html touch_pts_mean = np.mean(touch_pts, axis=1, keepdims=True) print("Mean of touched points: {}".format(touch_pts_mean)) touch_pts = touch_pts - touch_pts_mean # Make mean free xx = np.sum(touch_pts[0,:]**2) yy = np.sum(touch_pts[1,:]**2) zz = np.sum(touch_pts[2,:]**2) xy = np.sum(touch_pts[0,:]*touch_pts[1,:]) xz = np.sum(touch_pts[0,:]*touch_pts[2,:]) yz = np.sum(touch_pts[1,:]*touch_pts[2,:]) det_x = yy*zz - yz**2 det_y = xx*zz - xz**2 det_z = xx*yy - xy**2 n = np.asarray((xy*yz - xz*yy,xy*xz - yz*xx,det_z)) n = n/np.linalg.norm(n) print("Normal of touch surface: {}".format(n)) def touch_and_refine_table(robot, scene, move_group): urdf_robot = URDF.from_parameter_server() kdl_kin = KDLKinematics(urdf_robot, urdf_robot.links[1].name, urdf_robot.links[8].name) move_group.set_max_velocity_scaling_factor(0.1) # Allow 10 % of the set maximum joint velocities move_group.set_max_acceleration_scaling_factor(0.05) # Receive table message go_home() print("Waiting for table message ...") the_table = rospy.wait_for_message("/octomap_new/table", table) touchPoses = [] for i in range(10): pose_goal = go_to_random_point_over_table(move_group, the_table) touchSensorMsg = touch_table_straight_on(move_group, robot, kdl_kin, pose_goal) print("Touched the surface") # Check if usable collision if '/panda/bumper/panda_probe_ball' in touchSensorMsg.collidingLinks: rospy.sleep(2.) ballSensorMsg = ContactsState() while ballSensorMsg.states == []: ballSensorMsg = rospy.wait_for_message("/panda/bumper/panda_probe_ball", ContactsState) #print(ballSensorMsg) touchPoses.append(ballSensorMsg) else: print("Collided with wrong part; ignored") i-=1 print("Recording done, retracting ...") retract_from_table_straight(move_group, robot, kdl_kin) # note eef position when collided, e.g. by listening to /panda/panda/colliding; in real probably ask libfranka fit_table(touchPoses) # Notes on getting jacobian etc. # Install pykdl_utils by checking out git into catkin_ws and catkin_make_isolated if __name__ == '__main__': rospy.init_node('touch_table', anonymous=True) moveit_commander.roscpp_initialize(sys.argv) robot = moveit_commander.RobotCommander() scene = moveit_commander.PlanningSceneInterface() group_name = "panda_arm" move_group = moveit_commander.MoveGroupCommander(group_name) path_constr = Constraints() path_constr.name = "arm_constr" joint_constraint = JointConstraint() joint_constraint.position = 0.8 joint_constraint.tolerance_above = 3.14 joint_constraint.tolerance_below = 0.1 joint_constraint.weight = 1 joint_constraint.joint_name = "panda_joint2" path_constr.joint_constraints.append(joint_constraint) move_group.set_path_constraints(path_constr) try: touch_and_refine_table(robot, scene, move_group) except KeyboardInterrupt: print("Shutting down")
40,868
https://github.com/iloveitaly/MABCocoaToolkit/blob/master/MABSplitView.m
Github Open Source
Open Source
MIT
2,014
MABCocoaToolkit
iloveitaly
Objective-C
Code
70
251
// // PHSplitView.m // // Created by Michael Bianco on 4/11/07. // <mabblog.com> // #import "MABSplitView.h" @implementation MABSplitView - (id) initWithCoder:(NSCoder *)decoder { if(self = [super initWithCoder:decoder]) { _splitImage = [[NSImage imageNamed:@"SplitBar"] retain]; } return self; } - (void) setSplitImage:(NSImage *)img { [_splitImage release]; _splitImage = img; [_splitImage retain]; } - (CGFloat) dividerThickness { return 8.0; } - (void)drawDividerInRect:(NSRect)aRect { NSDrawThreePartImage(aRect, _splitImage, _splitImage, _splitImage, YES, NSCompositeSourceOver, 1.0, NO); } @end
605
https://github.com/mhus-info/mhus-osgi-tools/blob/master/karaf-commands/src/main/java/de/mhus/karaf/commands/mhus/CmdKeychainCopy.java
Github Open Source
Open Source
Apache-2.0
2,020
mhus-osgi-tools
mhus-info
Java
Code
252
704
/** * Copyright (C) 2018 Mike Hummel (mh@mhus.de) * * 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 de.mhus.karaf.commands.mhus; import java.util.UUID; import org.apache.karaf.shell.api.action.Argument; import org.apache.karaf.shell.api.action.Command; import org.apache.karaf.shell.api.action.lifecycle.Service; import de.mhus.lib.core.keychain.DefaultEntry; import de.mhus.lib.core.keychain.KeyEntry; import de.mhus.lib.core.keychain.MKeychain; import de.mhus.lib.core.keychain.MKeychainUtil; import de.mhus.osgi.api.karaf.AbstractCmd; @Command(scope = "mhus", name = "keychain-copy", description = "copy key with a new id") @Service public class CmdKeychainCopy extends AbstractCmd { @Argument(index = 0, name = "id", required = true, description = "Id", multiValued = false) String id; @Argument( index = 1, name = "source", required = true, description = "Source", multiValued = false) String toSource = null; @Argument( index = 2, name = "source", required = false, description = "Source", multiValued = false) String sourcename = null; @Override public Object execute2() throws Exception { MKeychain vault = MKeychainUtil.loadDefault(); KeyEntry entry = null; if (sourcename != null) entry = vault.getSource(sourcename).getEntry(UUID.fromString(id)); else entry = vault.getEntry(UUID.fromString(id)); if (entry == null) { System.out.println("*** Entry not found"); return null; } entry = new DefaultEntry( entry.getType(), entry.getName(), entry.getDescription(), entry.getValue()); vault.getSource(toSource).getEditable().addEntry(entry); System.out.println("OK " + entry.getId()); return null; } }
26,168
https://github.com/jiribenes/scheme/blob/master/test/macro/ifpos.scm
Github Open Source
Open Source
MIT
2,020
scheme
jiribenes
Scheme
Code
34
81
(begin (define-macro (ifpos a then) (list 'if (list '> a 0) then)) (test (equal? (ifpos 42 "aaa") "aaa") #t) (test (equal? (expand (ifpos a (display a))) '(if (> a 0) (display a))) #t) )
29,123
https://github.com/alexiregar/jdih/blob/master/frontend/views/rancangan/_search.php
Github Open Source
Open Source
BSD-3-Clause
null
jdih
alexiregar
PHP
Code
165
735
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model frontend\models\search\RancanganSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="rancangan-search"> <?php $form = ActiveForm::begin([ 'enableClientScript' => false, 'action' => ['index'], 'method' => 'get', 'options' => [ 'data-pjax' => true ], ]); ?> <?= $form->field($model, 'nama_rancangan', [ 'inputOptions' => [ 'autofocus' => 'autofocus', 'class' => 'form-control', 'tabindex' => '1', ]]) ?> <?= $form->field($model, 'tahun') ?> <?= $form->field($model, 'program_id')->dropDownList( \yii\helpers\ArrayHelper::map(\frontend\models\Program::find()->all(), 'id', 'nama_program'), ['prompt'=>'-- Pilih Program --', ])->label('Jenis Rancangan'); ?> <?= $form->field($model, 'jenis_rancangan_id')->dropDownList( \yii\helpers\ArrayHelper::map(\frontend\models\JenisRancangan::find()->all(), 'id', 'nama_rancangan'), ['prompt'=>'-- Pilih Rancangan --', ])->label('Jenis Rancangan'); ?> <?= $form->field($model, 'pemrakarsa_id')->dropDownList( \yii\helpers\ArrayHelper::map(\frontend\models\Pemrakarsa::find()->all(), 'id', 'nama_pemrakarsa'), ['prompt'=>'-- Pilih Pemrakarsa --', ])->label('Pemrakarsa'); ?> <?php // echo $form->field($model, 'program') ?> <?php // echo $form->field($model, 'pemrakarsa') ?> <?php // echo $form->field($model, 'status') ?> <?php // echo $form->field($model, 'created_at') ?> <?php // echo $form->field($model, 'created_by') ?> <?php // echo $form->field($model, 'updated_at') ?> <?php // echo $form->field($model, 'updated_by') ?> <?php // echo $form->field($model, 'peraturan_id') ?> <?= Html::submitButton('Cari', ['class' => 'btn btn-success btn-flat']) ?> <?php ActiveForm::end(); ?> </div>
34,409
https://github.com/cooljeanius/DragonFlyBSD/blob/master/sbin/mount_hammer2/mount_hammer2.c
Github Open Source
Open Source
BSD-3-Clause
2,019
DragonFlyBSD
cooljeanius
C
Code
617
1,398
/* * Copyright (c) 2011-2012 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by Matthew Dillon <dillon@dragonflybsd.org> * by Venkatesh Srinivas <vsrinivas@dragonflybsd.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name of The DragonFly Project nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific, prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include <sys/types.h> #include <sys/mount.h> #include <sys/socket.h> #include <netinet/in.h> #include <vfs/hammer2/hammer2_mount.h> #include <stdio.h> #include <stdlib.h> #include <strings.h> #include <unistd.h> #include <dmsg.h> static int cluster_connect(const char *volume); /* * Usage: mount_hammer2 [volume] [mtpt] */ int main(int argc, char *argv[]) { struct hammer2_mount_info info; struct vfsconf vfc; char *mountpt; int error; int mount_flags; bzero(&info, sizeof(info)); mount_flags = 0; if (argc < 3) exit(1); error = getvfsbyname("hammer2", &vfc); if (error) { fprintf(stderr, "hammer2 vfs not loaded\n"); exit(1); } /* * Connect to the cluster controller. This handles both remote * mounts and device cache/master/slave mounts. * * When doing remote mounts that are allowed to run in the background * the mount program will fork, detach, print a message, and exit(0) * the originator while retrying in the background. */ info.cluster_fd = cluster_connect(argv[1]); if (info.cluster_fd < 0) { fprintf(stderr, "hammer2_mount: cluster_connect(%s) failed\n", argv[1]); exit(1); } /* * Try to mount it */ info.volume = argv[1]; info.hflags = 0; mountpt = argv[2]; error = mount(vfc.vfc_name, mountpt, mount_flags, &info); if (error) { perror("mount: "); exit(1); } /* * XXX fork a backgrounded reconnector process to handle connection * failures. XXX */ return (0); } /* * Connect to the cluster controller. We can connect to a local or remote * cluster controller, depending. For a multi-node cluster we always want * to connect to the local controller and let it maintain the connections * to the multiple remote nodes. */ static int cluster_connect(const char *volume __unused) { struct sockaddr_in lsin; int fd; /* * This starts the hammer2 service if it isn't already running, * so we can connect to it. */ system("/sbin/hammer2 -q service"); /* * Connect us to the service but leave the rest to the kernel. * If the connection is lost during the mount */ if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("socket"); return(-1); } bzero(&lsin, sizeof(lsin)); lsin.sin_family = AF_INET; lsin.sin_addr.s_addr = 0; lsin.sin_port = htons(DMSG_LISTEN_PORT); if (connect(fd, (struct sockaddr *)&lsin, sizeof(lsin)) < 0) { close(fd); fprintf(stderr, "mount_hammer2: unable to connect to " "cluster controller\n"); return(-1); } return(fd); }
36,792
https://github.com/kennethaasan/tournament/blob/master/public/js/app.js
Github Open Source
Open Source
Apache-2.0
2,017
tournament
kennethaasan
JavaScript
Code
111
697
angular.module('app', [ 'ngRoute', 'ngResource', 'ngSanitize', 'ui.select', 'app.controllers', 'app.services' ]); angular.module('app').config(function(uiSelectConfig) { uiSelectConfig.theme = 'bootstrap'; uiSelectConfig.resetSearchInput = true; }); angular.module('app').config(function($routeProvider, $locationProvider) { $locationProvider.html5Mode(false); $routeProvider.when('/turneringer', { templateUrl: 'partials/tournaments/tournaments.html', controller: 'Tournaments' }); $routeProvider.when('/turneringer/:id', { templateUrl: 'partials/tournaments/tournament_edit.html', controller: 'TournamentEdit' }); $routeProvider.when('/turneringer/:tournament_id/kamper', { templateUrl: 'partials/matches/matches.html', controller: 'Matches' }); $routeProvider.when('/turneringer/:tournament_id/kamper/:id', { templateUrl: 'partials/matches/match_edit.html', controller: 'MatchEdit' }); $routeProvider.when('/lag', { templateUrl: 'partials/teams/teams.html', controller: 'Teams' }); $routeProvider.when('/lag/:id', { templateUrl: 'partials/teams/team_edit.html', controller: 'TeamEdit' }); $routeProvider.when('/spillere', { templateUrl: 'partials/players/players.html', controller: 'Players' }); $routeProvider.when('/spillere/ny', { templateUrl: 'partials/players/player_new.html', controller: 'PlayerNew' }); $routeProvider.when('/spillere/nyttlag', { templateUrl: 'partials/players/player_newteam.html', controller: 'PlayerNewTeam' }); $routeProvider.when('/spillere/:id', { templateUrl: 'partials/players/player_edit.html', controller: 'PlayerEdit' }); $routeProvider.when('/maal/', { templateUrl: 'partials/goals/goals.html', controller: 'Goals' }); $routeProvider.when('/maal/ny', { templateUrl: 'partials/goals/goal_new.html', controller: 'GoalNew' }); $routeProvider.otherwise({ redirectTo: '/turneringer' }); });
16,395
https://github.com/yveschiong/personal-record-book/blob/master/data/src/main/java/com/yveschiong/data/storage/InternalStorageManager.kt
Github Open Source
Open Source
Apache-2.0
null
personal-record-book
yveschiong
Kotlin
Code
452
1,420
package com.yveschiong.data.storage import android.content.Context import android.content.ContextWrapper import android.graphics.Bitmap import android.graphics.BitmapFactory import java.io.* import java.util.* import javax.inject.Inject class InternalStorageManager @Inject constructor(context: Context) { companion object { private const val SUBDIRECTORY_SIGNATURE = "signatures" const val MODE_CACHE = 0 const val MODE_INTERNAL = 1 const val TYPE_SIGNATURE = 0 } private val contextWrapper = ContextWrapper(context) fun getUniqueFilename(): String { return UUID.randomUUID().toString() } private fun getSubDirectory(type: Int): String { return when (type) { TYPE_SIGNATURE -> SUBDIRECTORY_SIGNATURE else -> SUBDIRECTORY_SIGNATURE } } // Internal Example: /data/data/com.yveschiong.personalrecordbook/app_signatures/2/018759f6-9f58-477b-acee-11f71376a100.png // Cache Example: /data/data/com.yveschiong.personalrecordbook/cache/signatures/2/ff028a9e-a1c9-43e0-8a34-5241c41a3447.png private fun getDirectory(mode: Int, type: Int): File { return when (mode) { MODE_CACHE -> contextWrapper.cacheDir MODE_INTERNAL -> contextWrapper.getDir(getSubDirectory(type), Context.MODE_PRIVATE) else -> contextWrapper.cacheDir } } fun getPersonIdRelativeDirectoryPath(mode: Int, personId: Int): String { return when (mode) { MODE_CACHE -> SUBDIRECTORY_SIGNATURE + "/" + personId.toString() MODE_INTERNAL -> personId.toString() else -> SUBDIRECTORY_SIGNATURE + "/" + personId.toString() } } fun getImageRelativeFilePath(mode: Int, personId: Int, filename: String): String { return getPersonIdRelativeDirectoryPath(mode, personId) + "/" + filename + ".png" } fun getImageAbsoluteFilePath(mode: Int, personId: Int, filename: String): String { return getDirectory( mode, TYPE_SIGNATURE ).absolutePath + "/" + getImageRelativeFilePath(mode, personId, filename) } fun getAbsoluteFilePath(mode: Int, type: Int, childPath: String): String { return getDirectory(mode, type).absolutePath + "/" + childPath } fun getLastModifiedTimestamp(path: String): Long { return File(path).lastModified() } fun saveSignature(mode: Int, personId: Int, bitmap: Bitmap, filename: String): String { val directory = getDirectory(mode, TYPE_SIGNATURE) var path = getImageRelativeFilePath(mode, personId, filename) val file = File(directory, path) if (!file.parentFile.exists()) { file.parentFile.mkdirs() } var output: FileOutputStream? = null try { output = FileOutputStream(file) bitmap.compress(Bitmap.CompressFormat.PNG, 100, output) } catch (e: Exception) { path = "" e.printStackTrace() } finally { try { output?.close() } catch (e: IOException) { path = "" e.printStackTrace() } } return path } fun getFiles(path: String): Array<File>? { return File(path).listFiles() } fun copy( fromMode: Int, toMode: Int, personId: Int, fromFilename: String, toFilename: String ): Boolean { val fromFile = File(getImageAbsoluteFilePath(fromMode, personId, fromFilename)) val toFile = File(getImageAbsoluteFilePath(toMode, personId, toFilename)) try { fromFile.copyTo(toFile, true) } catch (e: Exception) { // Failed to copy the file return false } // Successfully copied the file return true } fun delete(mode: Int, type: Int, personId: Int): Boolean { return delete( File( getAbsoluteFilePath( mode, type, getPersonIdRelativeDirectoryPath(mode, personId) ) ).absolutePath ) } fun delete(path: String): Boolean { if (getFiles(path)?.size ?: 0 == 0) { // There is nothing within this file path to delete return true } val file = File(path) try { file.deleteRecursively() } catch (e: Exception) { // Failed to delete the file return false } // Successfully deleted the file return true } fun loadSignature(mode: Int, personId: Int, filename: String): Bitmap? { return loadSignature(getImageAbsoluteFilePath(mode, personId, filename)) } fun loadSignature(path: String): Bitmap? { try { val file = File(path) return BitmapFactory.decodeStream(FileInputStream(file)) } catch (e: FileNotFoundException) { e.printStackTrace() } return null } }
1,540
https://github.com/jerrykuo7727/QA-FGC-finetune-datedur/blob/master/scripts/data.py
Github Open Source
Open Source
Apache-2.0
2,020
QA-FGC-finetune-datedur
jerrykuo7727
Python
Code
723
2,754
import os import torch from torch.nn.utils.rnn import pad_sequence from torch.utils.data import Dataset, DataLoader class BertDataset(Dataset): def __init__(self, split, tokenizer, bwd=False, prefix=None): assert split in ('train', 'dev', 'test') self.split = split self.question_list = os.listdir('data/%s/question' % split) self.tokenizer = tokenizer self.bwd = bwd if prefix: self.question_list = [q for q in self.question_list if q.startswith(prefix)] def __len__(self): return len(self.question_list) def __getitem__(self, i): question_id = self.question_list[i] with open('data/%s/passage/%s' % (self.split, '|'.join(question_id.split('|')[:2]))) as f: passage = f.read().split(' ') with open('data/%s/passage_no_unk/%s' % (self.split, '|'.join(question_id.split('|')[:2]))) as f: passage_no_unk = f.read().split(' ') with open('data/%s/question/%s' % (self.split, question_id)) as f: question = f.read().split(' ') question.insert(0, self.tokenizer.cls_token) question.append(self.tokenizer.sep_token) with open('data/%s/question_no_unk/%s' % (self.split, question_id)) as f: question_no_unk = f.read().split(' ') question_no_unk.insert(0, self.tokenizer.cls_token) question_no_unk.append(self.tokenizer.sep_token) with open('data/%s/answer/%s' % (self.split, question_id)) as f: answer = [line.strip() for line in f] with open('data/%s/span/%s' % (self.split, question_id)) as f: span = f.read().split(' ') answer_start = int(span[0]) + len(question) answer_end = int(span[1]) + len(question) # Truncate length to 512 diff = len(question) + len(passage) - 511 if diff > 0: if self.split == 'train': if answer_end > 510: passage = passage[diff:] passage_no_unk = passage_no_unk[diff:] answer_start -= diff answer_end -= diff else: passage = passage[:-diff] passage_no_unk = passage_no_unk[:-diff] else: if diff > 0: if self.bwd: passage = passage[diff:] passage_no_unk = passage_no_unk[diff:] else: passage = passage[:-diff] passage_no_unk = passage_no_unk[:-diff] passage.append(self.tokenizer.sep_token) passage_no_unk.append(self.tokenizer.sep_token) input_tokens = question + passage input_tokens_no_unk = question_no_unk + passage_no_unk input_ids = torch.LongTensor(self.tokenizer.convert_tokens_to_ids(input_tokens)) attention_mask = torch.FloatTensor([1 for _ in input_tokens]) token_type_ids = torch.LongTensor([0 for _ in question] + [1 for _ in passage]) if self.split == 'train': start_positions = torch.LongTensor([answer_start]).squeeze(0) end_positions = torch.LongTensor([answer_end]).squeeze(0) return input_ids, attention_mask, token_type_ids, start_positions, end_positions else: margin_mask = torch.FloatTensor([*(-1e10 for _ in question), *(0. for _ in passage[:-1]), -1e-10]) return input_ids, attention_mask, token_type_ids, margin_mask, input_tokens_no_unk, answer class TestBertDataset(Dataset): def __init__(self, split, tokenizer, bwd=False, prefix=None): assert split in ('dev', 'test') self.split = split self.question_list = os.listdir('data/%s/question' % split) self.tokenizer = tokenizer self.bwd = bwd if prefix: self.question_list = [q for q in self.question_list if q.startswith(prefix)] def __len__(self): return len(self.question_list) def __getitem__(self, i): question_id = self.question_list[i] with open('data/%s/passage/%s' % (self.split, '|'.join(question_id.split('|')[:2]))) as f: passage = f.read() with open('data/%s/question/%s' % (self.split, question_id)) as f: question = f.read() with open('data/%s/answer/%s' % (self.split, question_id)) as f: answer = [line.strip() for line in f] return passage, question, answer class XLNetDataset(Dataset): def __init__(self, split, tokenizer, bwd=False, prefix=None): assert split in ('train', 'dev', 'test') self.split = split self.question_list = os.listdir('data/%s/question' % split) self.tokenizer = tokenizer self.bwd = bwd if prefix: self.question_list = [q for q in self.question_list if q.startswith(prefix)] def __len__(self): return len(self.question_list) def __getitem__(self, i): question_id = self.question_list[i] with open('data/%s/passage/%s' % (self.split, '|'.join(question_id.split('|')[:2]))) as f: passage = f.read().split(' ') with open('data/%s/passage_no_unk/%s' % (self.split, '|'.join(question_id.split('|')[:2]))) as f: passage_no_unk = f.read().split(' ') with open('data/%s/question/%s' % (self.split, question_id)) as f: question = f.read().split(' ') question.append(self.tokenizer.sep_token) question.append(self.tokenizer.cls_token) with open('data/%s/question_no_unk/%s' % (self.split, question_id)) as f: question_no_unk = f.read().split(' ') question_no_unk.append(self.tokenizer.sep_token) question_no_unk.append(self.tokenizer.cls_token) with open('data/%s/answer/%s' % (self.split, question_id)) as f: answer = [line.strip() for line in f] with open('data/%s/span/%s' % (self.split, question_id)) as f: span = f.read().split(' ') answer_start = int(span[0]) answer_end = int(span[1]) # Truncate length to 512 diff = len(question) + len(passage) - 511 if diff > 0: if self.split == 'train': if answer_end > 510: passage = passage[diff:] passage_no_unk = passage_no_unk[diff:] answer_start -= diff answer_end -= diff else: passage = passage[:-diff] passage_no_unk = passage_no_unk[:-diff] else: if diff > 0: if self.bwd: passage = passage[diff:] passage_no_unk = passage_no_unk[diff:] else: passage = passage[:-diff] passage_no_unk = passage_no_unk[:-diff] passage.append(self.tokenizer.sep_token) passage_no_unk.append(self.tokenizer.sep_token) input_tokens = passage + question input_tokens_no_unk = passage_no_unk + question_no_unk input_ids = torch.LongTensor(self.tokenizer.convert_tokens_to_ids(input_tokens)) attention_mask = torch.FloatTensor([1 for _ in input_tokens]) token_type_ids = torch.LongTensor([0 for _ in passage] + [1 for _ in question]) if self.split == 'train': start_positions = torch.LongTensor([answer_start]).squeeze(0) end_positions = torch.LongTensor([answer_end]).squeeze(0) return input_ids, attention_mask, token_type_ids, start_positions, end_positions else: return input_ids, attention_mask, token_type_ids, input_tokens_no_unk, answer def get_dataloader(model_type, split, tokenizer, bwd=False, batch_size=1, num_workers=0, prefix=None): def train_collate_fn(batch): input_ids, attention_mask, token_type_ids, start_positions, end_positions = zip(*batch) input_ids = pad_sequence(input_ids, batch_first=True) attention_mask = pad_sequence(attention_mask, batch_first=True) token_type_ids = pad_sequence(token_type_ids, batch_first=True, padding_value=1) start_positions = torch.stack(start_positions) end_positions = torch.stack(end_positions) return input_ids, attention_mask, token_type_ids, start_positions, end_positions def test_collate_fn(batch): return batch assert model_type in ('bert', 'xlnet') shuffle = split == 'train' collate_fn = train_collate_fn if split == 'train' else test_collate_fn if model_type == 'bert': if split == 'train': dataset = BertDataset(split, tokenizer, bwd, prefix) else: dataset = TestBertDataset(split, tokenizer, bwd, prefix) elif model_type == 'xlnet': dataset = XLNetDataset(split, tokenizer, bwd, prefix) dataloader = DataLoader(dataset, collate_fn=collate_fn, shuffle=shuffle, \ batch_size=batch_size, num_workers=num_workers) return dataloader
25,659
https://github.com/lij0511/pandora/blob/master/include/pola/log/Log.h
Github Open Source
Open Source
Apache-2.0
null
pandora
lij0511
C
Code
152
599
/* * Log.h * * Created on: 2015年12月4日 * Author: lijing */ #ifndef POLA_LOG_H_ #define POLA_LOG_H_ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #define DEBUG 1 inline void polaris_printAbort(const char* str, ...) { va_list pArgList; va_start(pArgList, str); vfprintf(stderr, str, pArgList); fprintf(stderr, "\n"); va_end(pArgList); abort(); } #define polaris_printLog(io, str, ...) \ fprintf(io, str, ## __VA_ARGS__);fprintf(io, "\n"); #ifndef LOGD #ifdef DEBUG #define LOGD(str, ...) \ polaris_printLog(stdout, str, ## __VA_ARGS__); #else #define LOGD(...) \ ; #endif #endif #ifndef LOGE #define LOGE(str, ...) \ polaris_printLog(stderr, str, ## __VA_ARGS__); #endif #ifndef LOGW #define LOGW(str, ...) \ polaris_printLog(stderr, str, ## __VA_ARGS__); #endif #ifndef LOGI #define LOGI(str, ...) \ polaris_printLog(stdout, str, ## __VA_ARGS__); #endif #ifndef LOG_FATAL_IF #define LOG_FATAL_IF(cond, str, ...) \ (cond) \ ? ((void)polaris_printAbort(str, ##__VA_ARGS__)) \ : (void)0 #endif #ifndef LOG_ALWAYS_FATAL #define LOG_ALWAYS_FATAL(str, ...) \ ((void)polaris_printAbort(str, ##__VA_ARGS__)) #endif #ifndef LOG_IF #define LOG_IF(cond, str, ...) \ (cond) \ ? ((void)fprintf(stdout, str, ##__VA_ARGS__)) \ : (void)0 #endif #endif /* POLA_LOG_H_ */
11,882
https://github.com/BobFactory/GithubDemo/blob/master/app/src/main/java/com/example/githubdemo/network/models/IssuesModel.kt
Github Open Source
Open Source
MIT
2,020
GithubDemo
BobFactory
Kotlin
Code
81
177
package com.example.githubdemo.network.models data class IssuesModel( val author_association: String? = "", val body: String? = "", val comments: Int? = 0, val comments_url: String? = "", val created_at: String? = "", val events_url: String? = "", val html_url: String? = "", val id: Int? = 0, val number: Int? = 0, val repository_url: String? = "", val state: String? = "", val title: String? = "", val updated_at: String? = "", val url: String? = "", val user: UserModel? = UserModel() )
14,978
https://github.com/ZabavskyAlex/additional_7/blob/master/src/index.js
Github Open Source
Open Source
MIT
null
additional_7
ZabavskyAlex
JavaScript
Code
242
650
module.exports = function solveSudoku(matrix) { var arr_null_cell = search_null_cell(matrix); while (ch_null(matrix)){ for (var cell = 0; cell < arr_null_cell .length; cell++ ) { var flag_stop = false; var row = arr_null_cell [cell][0]; var col = arr_null_cell [cell][1]; for(var can = matrix[row][col] + 1; can < 10; can++ ){ if (!flag_stop && ck_row(row,can,matrix) && ck_col(col,can,matrix) && ck_square(row,col,can,matrix)) { matrix[row][col] = can; flag_stop = true; } } if (!flag_stop) { matrix[row][col] = 0; cell-=2; } } } return matrix; }; function search_null_cell(matrix) { var arr_null_cell = []; for (let i = 0; i < 9; i++){ for (let j = 0; j < 9; j++){ if (matrix[i][j] == 0) arr_null_cell.push([i, j]); } } return arr_null_cell; }; function ch_null(matrix) { for(var row = 0; row < 9; row++){ for(var col = 0; col < 9; col++) { if(matrix[row][col] == 0) return true; } } return false; } function ck_square(row, col, can, matrix) { col = Math.floor(col / 3) * 3; row = Math.floor(row / 3) * 3; for (var i = 0; i < 3; i++) { for (var j = 0; j < 3; j++) { if (matrix[row + i][col + j] == can){ return false; } } } return true } function ck_row(row, value, matrix) { for(var i = 0; i < 9; i++){ if(matrix[row][i]==value){ return false; } } return true; } function ck_col(col, value, matrix) { for(var i = 0; i < 9; i++){ if(matrix[i][col]==value){ return false; } } return true; }
21,893
https://github.com/gladk/Dyssol-open/blob/master/GUIDialogs/TearStreamsEditor/TearStreamsEditor.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
Dyssol-open
gladk
C++
Code
309
1,693
/* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */ #include "TearStreamsEditor.h" #include "MaterialStream.h" #include "FlowsheetParameters.h" #include "DyssolStringConstants.h" #include <QMessageBox> CTearStreamsEditor::CTearStreamsEditor(CFlowsheet* _pFlowsheet, QWidget *parent) : QDialog(parent) { ui.setupUi(this); ui.widgetStreamsEditor->SetFlowsheet(_pFlowsheet); setWindowFlags(windowFlags() | Qt::WindowMaximizeButtonHint | Qt::WindowMinimizeButtonHint); m_pFlowsheet = _pFlowsheet; m_pSequence = _pFlowsheet->GetCalculationSequence(); } void CTearStreamsEditor::InitializeConnections() { connect(ui.radioButtonAuto, &QRadioButton::toggled, this, &CTearStreamsEditor::SetEditable); connect(ui.radioButtonUser, &QRadioButton::toggled, this, &CTearStreamsEditor::SetEditable); connect(ui.pushButtonClearAll, &QRadioButton::clicked, this, &CTearStreamsEditor::ClearAllStreams); connect(ui.tablePartitions, &QTableWidget::itemSelectionChanged, this, &CTearStreamsEditor::UpdateStreamsList); connect(ui.tableStreams, &QTableWidget::itemSelectionChanged, this, &CTearStreamsEditor::NewStreamSelected); connect(ui.widgetStreamsEditor, &CBasicStreamEditor::DataChanged, this, &CTearStreamsEditor::DataChanged); } void CTearStreamsEditor::setVisible(bool _bVisible) { if (_bVisible && !this->isVisible()) UpdateWholeView(); QWidget::setVisible(_bVisible); } void CTearStreamsEditor::UpdateWholeView() { UpdatePartitionsList(); UpdateStreamsList(); UpdateMode(); } void CTearStreamsEditor::UpdatePartitionsList() { const bool bBlocked = ui.tablePartitions->blockSignals(true); const int iOldRow = ui.tablePartitions->currentRow(); ui.tablePartitions->clear(); ui.tablePartitions->setColumnCount(1); ui.tablePartitions->setRowCount((int)m_pSequence->PartitionsNumber()); for (int i = 0; i < (int)m_pSequence->PartitionsNumber(); ++i) ui.tablePartitions->setItem(i, 0, new QTableWidgetItem(QString(StrConst::TSE_PartitionName) + " " + QString::number(i))); ui.tablePartitions->RestoreSelectedCell(iOldRow, 0); ui.tablePartitions->blockSignals(bBlocked); } void CTearStreamsEditor::UpdateStreamsList() { const bool bBlocked = ui.tableStreams->blockSignals(true); const int iOldRow = ui.tableStreams->currentRow(); const int iPartition = ui.tablePartitions->currentRow(); ui.tableStreams->clear(); ui.tableStreams->setColumnCount(1); if(iPartition >= 0 && iPartition < static_cast<int>(m_pSequence->PartitionsNumber())) { ui.tableStreams->setRowCount((int)m_pSequence->TearStreamsNumber(iPartition)); for (int i = 0; i < (int)m_pSequence->TearStreamsNumber(iPartition); ++i) ui.tableStreams->setItem(i, 0, new QTableWidgetItem(QString::fromStdString(m_pSequence->PartitionTearStreams(iPartition)[i]->GetStreamName()))); } ui.tableStreams->RestoreSelectedCell(iOldRow, 0); ui.tableStreams->blockSignals(bBlocked); NewStreamSelected(); } void CTearStreamsEditor::UpdateMode() { if (m_pFlowsheet->m_pParams->initializeTearStreamsAutoFlag) ui.radioButtonAuto->setChecked(true); else ui.radioButtonUser->setChecked(true); } void CTearStreamsEditor::NewStreamSelected() { CStream* pSelectedStream = nullptr; const int iPartition = ui.tablePartitions->currentRow(); if (iPartition >= 0 && iPartition < static_cast<int>(m_pSequence->PartitionsNumber())) { const int iStream = ui.tableStreams->currentRow(); if (iStream >= 0 && iStream < static_cast<int>(m_pFlowsheet->m_vvInitTearStreams[iPartition].size())) pSelectedStream = &m_pFlowsheet->m_vvInitTearStreams[iPartition][iStream]; } ui.widgetStreamsEditor->SetStream(pSelectedStream); // TODO: remove if CBasicStreamEditor::m_pSolidDistrEditor will always present SetEditable(); } void CTearStreamsEditor::ClearAllStreams() { if(ui.radioButtonAuto->isChecked()) { QMessageBox::information(this, StrConst::TSE_WindowName, StrConst::TSE_InfoWrongMode); return; } if(QMessageBox::question(this, StrConst::TSE_WindowName, StrConst::TSE_QuestionRemoveAll, QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { QApplication::setOverrideCursor(Qt::WaitCursor); for (auto& part : m_pFlowsheet->m_vvInitTearStreams) for (auto& str : part) str.RemoveTimePointsAfter(0, true); NewStreamSelected(); QApplication::restoreOverrideCursor(); emit DataChanged(); } } void CTearStreamsEditor::SetEditable() { const bool bEnable = ui.radioButtonUser->isChecked(); // TODO: put back if CBasicStreamEditor::m_pSolidDistrEditor will always present //if (bEnable != m_pFlowsheet->m_pParams->initializeTearStreamsAutoFlag) // return; m_pFlowsheet->m_pParams->InitializeTearStreamsAutoFlag(!bEnable); ui.pushButtonClearAll->setEnabled(bEnable); ui.widgetStreamsEditor->SetEditable(bEnable); }
4,245
https://github.com/kkaempf/openwbem/blob/master/test/unit/run_make_check.sh
Github Open Source
Open Source
BSD-3-Clause
2,023
openwbem
kkaempf
Shell
Code
99
263
#!/bin/sh wrapper=./set_test_libpath.sh MAKE=${MAKE:-make} # Build the wrapper script if needed. if [ -f ${wrapper} ]; then : else ${MAKE} local-scripts fi if [ $# -eq 0 ] || [ x$1 = xall ]; then ${MAKE} check exit $? fi for testname in "$@"; do if [ -f ${testname}TestCases ]; then ${wrapper} ./${testname}TestCases || exit $? elif [ -f ${testname} ]; then ${wrapper} ./${testname} || exit $? elif [ -f ./${testname}TestCases.cpp ] || [ -f ./${testname}Test.cpp ]; then # Build and rerun... ${MAKE} || exit $? exec "$0" "$@" else echo "No test for ${testname}" >&2 exit 1 fi done
2,961
https://github.com/yarl/pattypan-vue/blob/master/src/views/ChooseDirectory.vue
Github Open Source
Open Source
MIT
null
pattypan-vue
yarl
Vue
Code
94
287
<template> <div class="about"> <h1>Choose directory</h1> <button class="btn btn-primary" @click="selectDirectory">Select Directory</button> <div> <p v-for="file in fileList" :key="file">{{ file }}</p> </div> </div> </template> <script lang="ts"> import { Component, Vue } from "vue-property-decorator"; import { mapState } from "vuex"; import { setTimeout } from "timers"; import store from "../store"; const { dialog } = require("electron").remote; @Component({ methods: { selectDirectory: () => { store.commit("setBusy", true); const directory = dialog.showOpenDialog({ properties: ["openDirectory"] }); if (directory && directory.length) { store.dispatch("loadDirectory", directory[0]); } else { store.commit("setBusy", false); } } }, computed: mapState(["fileList"]) }) export default class Home extends Vue {} </script>
650
https://github.com/TemplarRei/FLExtensions/blob/master/FLExtensions.Painkillers/ArrayPainkillers.cs
Github Open Source
Open Source
MIT
null
FLExtensions
TemplarRei
C#
Code
87
250
namespace FLExtensions.Painkillers { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public static class ArrayPainkillers { public static T[] Replicate<T>(this T[] array) where T : struct { var newArray = new T[array.Length]; for (int i = 0; i < array.Length; i++) { newArray[i] = array[i]; } return newArray; } public static T[] Clone<T>(this T[] array) where T : class, ICloneable { var newArray = new T[array.Length]; for (int i = 0; i < array.Length; i++) { newArray[i] = (T)array[i].Clone(); } return newArray; } } }
20,669
https://github.com/FeroshUX/tachi-cord/blob/master/src/theme/sidebar/_userarea.scss
Github Open Source
Open Source
MIT
2,022
tachi-cord
FeroshUX
SCSS
Code
20
115
.panels-3wFtMD { background-color: var(--background-secondary); // icons .button-f2h6uQ[aria-checked="true"], .button-f2h6uQ[aria-label="Show Game Activity"] { color: hsla(var(--accent-brand)); } .strikethrough-2Kl6HF { color: hsla(var(--accent-red)); } }
40,601
https://github.com/xamarin/Xamarin.PropertyEditing/blob/master/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs
Github Open Source
Open Source
MIT
2,023
Xamarin.PropertyEditing
xamarin
C#
Code
1,295
4,300
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Cadenza.Collections; using Xamarin.PropertyEditing.Reflection; using Xamarin.PropertyEditing.Tests.MockControls; namespace Xamarin.PropertyEditing.Tests { internal class MockNameableEditor :MockObjectEditor, INameableObject { public string ObjectName { get; set; } = "Nameable"; public Task<string> GetNameAsync () { return Task.FromResult (ObjectName); } public Task SetNameAsync (string name) { ObjectName = name; return Task.FromResult (false); } public MockNameableEditor (MockControl control) : base (control) { } } internal class MockObjectEditor : IObjectEditor, IObjectEventEditor, ICompleteValues { public MockObjectEditor () { TargetType = Target.GetType ().ToTypeInfo (); } public MockObjectEditor (params IPropertyInfo[] properties) : this() { Properties = properties.ToArray (); } public MockObjectEditor (IReadOnlyList<IPropertyInfo> properties, IReadOnlyDictionary<IPropertyInfo, IReadOnlyList<ITypeInfo>> assignableTypes) : this () { Properties = properties; this.assignableTypes = assignableTypes; } public MockObjectEditor (MockControl control) { Properties = control.Properties.Values.ToArray(); Events = control.Events.Values.ToArray(); Target = control; TargetType = Target.GetType ().ToTypeInfo (); } public object Target { get; set; } = new object (); public ITypeInfo TargetType { get; set; } public event EventHandler<EditorPropertyChangedEventArgs> PropertyChanged; /// <summary> /// Test helper for non-local values, passes in the property, <see cref="ValueInfo{T}.ValueDescriptor"/>, <see cref="ValueInfo{T}.SourceDescriptor"/> /// </summary> public Func<IPropertyInfo, object, object, object> ValueEvaluator { get; set; } public IReadOnlyCollection<IPropertyInfo> Properties { get; set; } = new IPropertyInfo[0]; public IReadOnlyDictionary<IPropertyInfo, KnownProperty> KnownProperties { get; set; } public IReadOnlyCollection<IEventInfo> Events { get; set; } = new IEventInfo[0]; public IObjectEditor Parent { get; set; } public IReadOnlyList<IObjectEditor> DirectChildren { get; set; } public IResourceProvider Resources { get; set; } public void ChangeAllProperties () { PropertyChanged?.Invoke (this, new EditorPropertyChangedEventArgs (null)); } public void RaisePropertyChanged (IPropertyInfo property) { PropertyChanged?.Invoke (this, new EditorPropertyChangedEventArgs (property)); } public Task AttachHandlerAsync (IEventInfo ev, string handlerName) { this.events[ev] = handlerName; return Task.FromResult (true); } public Task DetachHandlerAsync (IEventInfo ev, string handlerName) { this.events.Remove (ev); return Task.FromResult (true); } public Task<IReadOnlyList<string>> GetHandlersAsync (IEventInfo ev) { string handler; if (this.events.TryGetValue (ev, out handler)) return Task.FromResult<IReadOnlyList<string>> (new[] { handler }); return Task.FromResult<IReadOnlyList<string>> (new string[0]); } public Task<AssignableTypesResult> GetAssignableTypesAsync (IPropertyInfo property, bool childTypes) { if (this.assignableTypes != null) { if (!this.assignableTypes.TryGetValue (property, out IReadOnlyList<ITypeInfo> types)) return Task.FromResult (new AssignableTypesResult (Enumerable.Empty<ITypeInfo> ().ToArray ())); else return Task.FromResult (new AssignableTypesResult (types)); } return ReflectionObjectEditor.GetAssignableTypes (property.RealType, childTypes); } public Task<IReadOnlyCollection<PropertyVariation>> GetPropertyVariantsAsync (IPropertyInfo property) { if (property == null) throw new ArgumentNullException (nameof(property)); if (!this.values.TryGetValue (property, out IDictionary<PropertyVariation, object> propertyValues)) { return Task.FromResult<IReadOnlyCollection<PropertyVariation>> (new PropertyVariation[0]); } return Task.FromResult<IReadOnlyCollection<PropertyVariation>> (propertyValues.Keys.Except (new[] { NeutralVariations }).ToList ()); } public Task RemovePropertyVariantAsync (IPropertyInfo property, PropertyVariation variant) { if (property == null) throw new ArgumentNullException (nameof(property)); if (variant == null) throw new ArgumentNullException (nameof(variant)); if (this.values.TryGetValue (property, out IDictionary<PropertyVariation, object> propertyValues)) { propertyValues.Remove (variant); } return Task.CompletedTask; } public Task SetValueAsync<T> (IPropertyInfo property, ValueInfo<T> value, PropertyVariation variations = null) { value = new ValueInfo<T> { CustomExpression = value.CustomExpression, Source = value.Source, ValueDescriptor = value.ValueDescriptor, SourceDescriptor = value.SourceDescriptor, Value = value.Value }; if (!this.values.TryGetValue (property, out IDictionary<PropertyVariation, object> propertyValues)) { this.values[property] = propertyValues = new Dictionary<PropertyVariation, object> (); } if (value.Source != ValueSource.Local && ValueEvaluator != null) { value.Value = (T)ValueEvaluator (property, value.ValueDescriptor, value.SourceDescriptor); } else if (value.Source == ValueSource.Unset || (property.ValueSources.HasFlag (ValueSources.Default) && Equals (value.Value, default(T))) && value.ValueDescriptor == null && value.SourceDescriptor == null) { bool changed = false; if (variations == NeutralVariations) { propertyValues.Remove (NeutralVariations); changed = true; } else if (variations != null) { propertyValues[variations] = value; changed = true; } if (changed) { PropertyChanged?.Invoke (this, new EditorPropertyChangedEventArgs (property, variations)); return Task.CompletedTask; } } object softValue = value; if (typeof(T) != property.Type) { IPropertyConverter converter = property as IPropertyConverter; bool changeValueInfo = false; object v = value.Value; if (ReferenceEquals (value.Value, null) && property.Type.IsValueType) { if ((property.ValueSources & ValueSources.Default) == ValueSources.Default) { v = Activator.CreateInstance (property.Type); changeValueInfo = true; } } else if (converter != null && converter.TryConvert (value.Value, property.Type, out v)) { changeValueInfo = true; } if (changeValueInfo) { var softType = typeof (ValueInfo<>).MakeGenericType (property.Type); softValue = Activator.CreateInstance (softType); softType.GetProperty ("Value").SetValue (softValue, v); softType.GetProperty ("ValueDescriptor").SetValue (softValue, value.ValueDescriptor); softType.GetProperty ("Source").SetValue (softValue, value.Source); softType.GetProperty ("SourceDescriptor").SetValue (softValue, value.SourceDescriptor); } if (typeof(T).Name == "IReadOnlyList`1") { var list = (IReadOnlyList<int>) value.Value; int iv = 0; foreach (int flag in list) { iv |= flag; } softValue = new ValueInfo<int> { Value = iv, Source = value.Source }; } } // Set to resource won't pass values so we will store it on the info since we just pass it back in GetValue if (value.Source == ValueSource.Resource && value.SourceDescriptor is Resource) { Type rt = value.SourceDescriptor.GetType(); if (rt.IsGenericType) { Type ta = rt.GetGenericArguments ()[0]; if (typeof (T).IsAssignableFrom (ta)) { PropertyInfo pi = rt.GetProperty ("Value"); value.Value = (T)pi.GetValue (value.SourceDescriptor); } else { TypeConverter converter = TypeDescriptor.GetConverter (ta); if (converter != null && converter.CanConvertTo(typeof(T))) { PropertyInfo pi = rt.GetProperty ("Value"); value.Value = (T)converter.ConvertTo (pi.GetValue (value.SourceDescriptor), typeof (T)); } } } } propertyValues[variations ?? NeutralVariations] = softValue; PropertyChanged?.Invoke (this, new EditorPropertyChangedEventArgs (property, variations)); return Task.CompletedTask; } public Task<ValueInfo<T>> GetValueAsync<T> (IPropertyInfo property, PropertyVariation variations = null) { Type tType = typeof(T); IDictionary<PropertyVariation, object> propertyValues; if (!this.values.TryGetValue (property, out propertyValues) || !propertyValues.TryGetValue (variations ?? NeutralVariations, out object value)) { return Task.FromResult (new ValueInfo<T> { Source = (property.ValueSources.HasFlag (ValueSources.Default)) ? ValueSource.Default : ValueSource.Unset, Value = default(T) }); } var info = value as ValueInfo<T>; if (info != null) { return Task.FromResult (new ValueInfo<T> { CustomExpression = info.CustomExpression, Source = info.Source, ValueDescriptor = info.ValueDescriptor, SourceDescriptor = info.SourceDescriptor, Value = info.Value }); } else if (value == null || value is T) { return Task.FromResult (new ValueInfo<T> { Value = (T) value, Source = ValueSource.Local }); } else if (tType.Name == "IReadOnlyList`1") { // start with just supporting ints for now var predefined = (IReadOnlyDictionary<string, int>)property.GetType().GetProperty(nameof(IHavePredefinedValues<int>.PredefinedValues)).GetValue(property); var underlyingInfo = value as ValueInfo<int>; int realValue; if (value is int i) { realValue = i; } else realValue = ((ValueInfo<int>) value).Value; var flags = new List<int> (); foreach (int v in predefined.Values) { if (v == 0 && realValue != 0) continue; if ((realValue & v) == v) flags.Add (v); } return Task.FromResult ((ValueInfo<T>)Convert.ChangeType (new ValueInfo<IReadOnlyList<int>> { Value = flags, Source = underlyingInfo?.Source ?? ValueSource.Local }, typeof(ValueInfo<T>))); } else { object sourceDescriptor = null, valueDescriptor = null; ValueSource source = ValueSource.Local; Type valueType = value.GetType (); if (valueType.IsConstructedGenericType && valueType.GetGenericTypeDefinition () == typeof(ValueInfo<>)) { source = (ValueSource)valueType.GetProperty ("Source").GetValue (value); sourceDescriptor = valueType.GetProperty (nameof (ValueInfo<T>.SourceDescriptor)).GetValue (value); valueDescriptor = valueType.GetProperty (nameof (ValueInfo<T>.ValueDescriptor)).GetValue (value); value = valueType.GetProperty ("Value").GetValue (value); valueType = valueType.GetGenericArguments ()[0]; } object newValue; IPropertyConverter converter = property as IPropertyConverter; if (converter != null && converter.TryConvert (value, tType, out newValue)) { return Task.FromResult (new ValueInfo<T> { Source = source, Value = (T)newValue, ValueDescriptor = valueDescriptor, SourceDescriptor = sourceDescriptor }); } else if (typeof(T).IsAssignableFrom (valueType)) { return Task.FromResult (new ValueInfo<T> { Source = source, Value = (T)value, ValueDescriptor = valueDescriptor, SourceDescriptor = sourceDescriptor }); } } return Task.FromResult (new ValueInfo<T> { Source = (property.ValueSources.HasFlag (ValueSources.Default)) ? ValueSource.Default : ValueSource.Unset, Value = default(T) }); } public Task<ITypeInfo> GetValueTypeAsync (IPropertyInfo property, PropertyVariation variations = null) { Type type = property.Type; if (this.values.TryGetValue (property, out IDictionary<PropertyVariation, object> propertyValues) && propertyValues.TryGetValue (variations ?? NeutralVariations, out object value)) { Type valueType = value.GetType (); if (valueType.IsConstructedGenericType && valueType.GetGenericTypeDefinition () == typeof(ValueInfo<>)) { value = valueType.GetProperty ("Value").GetValue (value); type = value.GetType (); } else type = valueType; } var asm = new AssemblyInfo (type.Assembly.FullName, true); return Task.FromResult<ITypeInfo> (new TypeInfo (asm, type.Namespace, type.Name)); } public bool CanAutocomplete (string input) { return (input != null && input.Trim ().StartsWith ("@")); } public async Task<IReadOnlyList<string>> GetCompletionsAsync (IPropertyInfo property, string input, CancellationToken cancellationToken) { if (Resources == null) return Array.Empty<string> (); input = input.Trim ().TrimStart('@'); var resources = await Resources.GetResourcesAsync (Target, property, cancellationToken); return resources.Where (r => r.Name.IndexOf (input, StringComparison.OrdinalIgnoreCase) != -1 && r.Name.Length > input.Length) // Skip exact matches .Select (r => "@" + r.Name).ToList (); } private static readonly PropertyVariation NeutralVariations = new PropertyVariation(); private readonly IDictionary<IPropertyInfo,IDictionary<PropertyVariation, object>> values = new Dictionary<IPropertyInfo, IDictionary<PropertyVariation, object>> (); internal readonly IDictionary<IEventInfo, string> events = new Dictionary<IEventInfo, string> (); internal readonly IReadOnlyDictionary<IPropertyInfo, IReadOnlyList<ITypeInfo>> assignableTypes; } }
43,108
https://github.com/rbeyzas/visualization-tool/blob/master/app/utils/truthy.ts
Github Open Source
Open Source
BSD-3-Clause
2,021
visualization-tool
rbeyzas
TypeScript
Code
75
137
type Truthy<T> = T extends false | "" | 0 | null | undefined ? never : T; // from lodash /** * Enables type narrowing through Array::filter * * @example * const a = [1, undefined].filter(Boolean) // here the type of a is (number | undefined)[] * const b = [1, undefined].filter(truthy) // here the type of b is number[] */ function truthy<T>(value: T): value is Truthy<T> { return !!value; } export default truthy;
29,440
https://github.com/LosManos/St4mpede/blob/master/Libs/St4mpede.Code/Common.cs
Github Open Source
Open Source
Apache-2.0
2,016
St4mpede
LosManos
C#
Code
263
675
using System; using System.Collections.Generic; namespace St4mpede.Code { public static class Common { /// <summary>This is a list of all keywords in C#. /// If you think the language seems too simple to use it is alright. Just add more keywords. /// </summary> public static readonly IList<string> KeyWords = new List<string> { "public", "static", "string" }; /// <summary>This enum contains the visibility scopes there are. /// </summary> public enum VisibilityScope { Public, Internal, Private } /// <summary>This method return a visibilityscope as a c# string. /// </summary> /// <param name="me"></param> /// <returns></returns> public static string ToCode( this VisibilityScope me) { switch (me) { case VisibilityScope.Public: return "public"; case VisibilityScope.Internal: return "internal"; case VisibilityScope.Private: return "private"; default: throw new NotImplementedException(string.Format("VisibilityScope {0} is not yet implemented or totally wrong.", me)); } } /// <summary>This method makes sure any variable that does not compile will. /// For instance are keywords prefixed with an amersand. /// </summary> /// <param name="variableName"></param> /// <returns></returns> public static string Safe(string variableName) { return (KeyWords.Contains(variableName) ? "@" : "") +variableName; } /// <summary>This method returns the string as camel case. /// It has no knowledge about words but just lower cases the first letter. /// If null or whitespace is sent along the same string is returned. /// <para> /// The method does still not handle a string with spaces before e.g. " Customer". /// </para> /// <para>There is another method, exteions ToCamelCase that does the same thing.</para> /// </summary> /// <param name="variable"></param> /// <returns></returns> public static string ToCamelCase(string variable) { if(string.IsNullOrWhiteSpace(variable)) { return variable; } return Char.ToLowerInvariant(variable[0]) + variable.Substring(1); } } }
37,353
https://github.com/BrainIsBad/nest-react-messenger/blob/master/src/auth/auth.service.ts
Github Open Source
Open Source
MIT
null
nest-react-messenger
BrainIsBad
TypeScript
Code
154
456
import { HttpException, HttpStatus, Injectable, UnauthorizedException } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import * as bcrypt from 'bcryptjs'; import { CreateUserDto } from '../users/dto/create-user.dto'; import { User } from '../users/users.model'; import { UsersService } from '../users/users.service'; import { LoginDto } from './dto/login.dto'; @Injectable() export class AuthService { constructor(private userService : UsersService, private jwtService : JwtService) { } async login(dto: LoginDto) { const user = await this.validateUser(dto); return this.generateToken(user); } async registration(dto : CreateUserDto) { const candidate = await this.userService.getByEmail(dto.email); if (candidate) throw new HttpException('User already exists', HttpStatus.BAD_REQUEST); const user = await this.userService.create(dto); return this.generateToken(user); } private async validateUser(dto: LoginDto) : Promise<User> { const user = await this.userService.getByEmail(dto.email); const passwordEquals = await bcrypt.compare(dto.password, user.password); if (passwordEquals && user) return user; throw new UnauthorizedException({message: 'Email or password is incorrect'}); } private generateToken(user : User) { const payload = {email: user.email, id: user.id, username: user.username, roles: user.roles}; return { token: this.jwtService.sign(payload) }; } }
48,157
https://github.com/readme1988/notify-service/blob/master/react/common/ConfirmModal.scss
Github Open Source
Open Source
Apache-2.0
2,020
notify-service
readme1988
SCSS
Code
38
154
.c7n-iam-confirm-modal { .ant-modal-body { .ant-confirm-body-wrapper { .ant-confirm-title { font-size: 18px; display: block; overflow: auto; } .ant-confirm-content { font-size: 13px; color: #000; margin-top: 16px; } } } .ant-confirm-btns { text-align: right; margin-bottom: -24px; padding: 32px 0 17px; } }
1,475
https://github.com/kastiglione/zld/blob/master/ld/unit-tests/test-cases/archive-order/bar2.c
Github Open Source
Open Source
MIT
2,022
zld
kastiglione
C
Code
6
11
int bar2() { return 0; }
50,336
https://github.com/emilybache/start-points-custom/blob/master/DeviceDriver/C++/DeviceDriver.hpp
Github Open Source
Open Source
MIT
2,020
start-points-custom
emilybache
C++
Code
20
72
#include "FlashMemoryDevice.hpp" class DeviceDriver { public: DeviceDriver(FlashMemoryDevice &hardware); char read(long address); void write(long address, char data); protected: FlashMemoryDevice &m_hardware; };
35,347
https://github.com/violetiu/autopers-parent/blob/master/src/main/java/org/violetime/autopers/units/AutopersCodeName.java
Github Open Source
Open Source
CC0-1.0
null
autopers-parent
violetiu
Java
Code
408
1,256
package org.violetime.autopers.units; import java.util.HashMap; import java.util.Map; public class AutopersCodeName { public static void main(String[] args) { System.out.println(AutopersCodeName.className("market_code")); } private static Map<String,String> sourceTableMap; public static String className(String value,String baseSource) { if (value == null || value.length() == 0) return null; if(sourceTableMap==null){ sourceTableMap=new HashMap<>(); } if(sourceTableMap.containsKey(value)){ if(baseSource!=sourceTableMap.get(value)) value=value+"_"+baseSource; } sourceTableMap.put(value,baseSource); value=value.toLowerCase(); if (value.contains("_")) { String result = ""; String[] valueArray = value.split("_"); for (String val : valueArray) { if (val == null || value == "") continue; else if (val.length() == 1) { result += val.toUpperCase(); } else { result += val.substring(0, 1).toUpperCase() + val.substring(1); } } return result; } else { return value.substring(0, 1).toUpperCase() + value.substring(1); } } public static String className(String value) { if (value == null || value.length() == 0) return null; value=value.toLowerCase(); if (value.contains("_")) { String result = ""; String[] valueArray = value.split("_"); for (String val : valueArray) { if (val == null || value == "") continue; else if (val.length() == 1) { result += val.toUpperCase(); } else { result += val.substring(0, 1).toUpperCase() + val.substring(1); } } return result; } else { return value.substring(0, 1).toUpperCase() + value.substring(1); } } public static String attributeGetSetCaseName(String value) { if (value == null || value.length() == 0) return null; if (value.contains("_")) { String result = ""; String[] valueArray = value.split("_"); for (String val : valueArray) { if (val == null || value == "") continue; else if (val.length() == 1) { result += val.toUpperCase(); } else { result += val.substring(0, 1).toUpperCase() + val.substring(1); } } return result; } else { return value.substring(0, 1).toUpperCase() + value.substring(1); } } public static String attributeGetSetName(String value) { if (value == null || value.length() == 0) return null; value=value.toLowerCase(); if (value.contains("_")) { String result = ""; String[] valueArray = value.split("_"); for (String val : valueArray) { if (val == null || value == "") continue; else if (val.length() == 1) { result += val.toUpperCase(); } else { result += val.substring(0, 1).toUpperCase() + val.substring(1); } } return result; } else { return value.substring(0, 1).toUpperCase() + value.substring(1); } } public static String attributeName(String value) { if (value == null || value.length() == 0) return null; value=value.toLowerCase(); if (value.contains("_")) { String result = ""; String[] valueArray = value.split("_"); for (String val : valueArray) { if (val == null || value == "") continue; else if (val.length() == 1) { result += val.toUpperCase(); } else { result += val.substring(0, 1).toUpperCase() + val.substring(1); } } return result.substring(0, 1).toLowerCase()+ result.substring(1); } else { return value.substring(0, 1)+ value.substring(1); } } }
24,334
https://github.com/kmestry/PROBLEM_SOLVING_HACKERRANK_LEETCODE/blob/master/src/com/recursion/PowerXN.java
Github Open Source
Open Source
MIT
null
PROBLEM_SOLVING_HACKERRANK_LEETCODE
kmestry
Java
Code
54
134
package com.recursion; public class PowerXN { int result = 1; public static void main(String[] args) { int result = new PowerXN().calculatePower(5, 8); System.out.println("result = " + result); } public int calculatePower(int x, int n) { if (n == 0) return 1; result = result * x; calculatePower(x, n - 1); return result; } }
26,165
https://github.com/ByteriX/BxObjC/blob/master/iBXData/iBXData/Sources/Parser/BxAbstractDataParser.h
Github Open Source
Open Source
MIT
2,023
BxObjC
ByteriX
Objective-C
Code
161
498
/** * @file BxAbstractDataParser.h * @namespace iBXData * * @details Абстрактный сериализатор/дисериализатор * @date 08.07.2013 * @author Sergey Balalaev * * @version last in https://github.com/ByteriX/BxObjC * @copyright The MIT License (MIT) https://opensource.org/licenses/MIT * Copyright (c) 2016 ByteriX. See http://byterix.com */ #import <Foundation/Foundation.h> #import "BxException.h" //! Исключение для закачки ресурсов из интернета @interface BxParserException : BxException { } @end //! Абстрактный сериализатор/дисериализатор @interface BxAbstractDataParser : NSObject //! загрузка данных из файла и интернет контента //! может генерировать @ref DownloadException, @ref ParserException, @ref WorkingException - (NSDictionary*) loadFromFile: (NSString*) filePath; - (NSDictionary *) loadFromUrl: (NSString*) url post: (NSString*)post; - (NSDictionary *) loadFromUrl: (NSString*) url; //! дастать данные из содержимого при дисериализации - (NSDictionary*) dataFromData: (NSData*) data; //! дастать данные из строки - (NSDictionary*) dataFromString: (NSString*) string; //! вернуть содержимое данных при сериализации - (NSData*) serializationData: (NSDictionary*) data; //! сохранение данных в файл - (void) saveFrom: (NSDictionary*) data toPath: (NSString*) filePath; //! получение в виде строки в кодировке UTF-8 - (NSString*) getStringFrom: (NSDictionary*) data; @end
36,841
https://github.com/poczone/Similarity/blob/master/src/net/poczone/similarity/metrics/SingleFractionSimilarityMetric.java
Github Open Source
Open Source
MIT
null
Similarity
poczone
Java
Code
45
113
package net.poczone.similarity.metrics; public class SingleFractionSimilarityMetric implements SimilarityMetric { @Override public double calculateSimilarity(int firstCount, int secondCount, int bothCount, int totalTargetCount) { if (firstCount > 0 && secondCount > 0) { return 2d * bothCount / (firstCount + secondCount); } else { return 0; } } }
17,224
https://github.com/U1001975/DotsUI/blob/master/com.dotsui.core/DotsUI.Core/RectTransformMissingComponentsSystem.cs
Github Open Source
Open Source
MIT
2,022
DotsUI
U1001975
C#
Code
159
597
using Unity.Entities; namespace DotsUI.Core { [UnityEngine.ExecuteAlways] [UpdateInGroup(typeof(BeforeRectTransformUpdateGroup))] class RectTransformMissingComponentsSystem : ComponentSystem { private EntityQuery m_MissingScale; private EntityQuery m_MissingWorldRect; private EntityQuery m_MissingWorldMask; private EntityQuery m_MissingCanvasReference; private EntityQuery m_MissingHierarchyIndex; protected override void OnCreate() { m_MissingScale = GetEntityQuery(new EntityQueryDesc() { All = new ComponentType[] { typeof(RectTransform) }, None = new ComponentType[] { typeof(ElementScale) } }); m_MissingWorldRect = GetEntityQuery(new EntityQueryDesc() { All = new ComponentType[] { typeof(RectTransform) }, None = new ComponentType[] { typeof(WorldSpaceRect) } }); m_MissingWorldMask = GetEntityQuery(new EntityQueryDesc() { All = new ComponentType[] { typeof(RectTransform) }, None = new ComponentType[] { typeof(WorldSpaceMask) } }); m_MissingCanvasReference = GetEntityQuery(new EntityQueryDesc() { All = new ComponentType[] { typeof(RectTransform) }, None = new ComponentType[] { typeof(ElementCanvasReference), typeof(CanvasScreenSize) // should be enough to exclude canvases } }); m_MissingHierarchyIndex = GetEntityQuery(new EntityQueryDesc() { All = new ComponentType[] { typeof(RectTransform), }, None = new ComponentType[] { typeof(ElementHierarchyIndex), } }); } protected override void OnUpdate() { EntityManager.AddComponent(m_MissingScale, typeof(ElementScale)); EntityManager.AddComponent(m_MissingWorldRect, typeof(WorldSpaceRect)); EntityManager.AddComponent(m_MissingWorldMask, typeof(WorldSpaceMask)); EntityManager.AddComponent(m_MissingCanvasReference, typeof(ElementCanvasReference)); EntityManager.AddComponent(m_MissingHierarchyIndex, typeof(ElementHierarchyIndex)); } } }
16,350
https://github.com/SeasonedSoftware/stoopy/blob/master/src/default/__tests__/Inputs.test.js
Github Open Source
Open Source
MIT
null
stoopy
SeasonedSoftware
JavaScript
Code
347
961
import React from 'react' import renderer from 'react-test-renderer' import { Input, SelectInput, RadioInput, CheckboxInput } from '../Inputs' // jest.mock('uploods', () => ({ // DropPicture: props => <div {...props}>DropPicture</div>, // })) describe('Input', () => { it('renders correctly', () => { const props = { name: 'foobar', error: 'foobarError', disabled: false, setValue: jest.fn(), helper: ' ', } const tree = renderer.create(<Input {...props} />).toJSON() expect(tree).toMatchSnapshot() }) }) // // describe('DropAvatar', () => { // it('renders correctly', () => { // const props = { // setValue: jest.fn(), // } // const tree = renderer.create(<DropAvatar {...props} />).toJSON() // expect(tree).toMatchSnapshot() // }) // }) describe('SelectInput', () => { it('renders correctly', () => { const props = { label: 'Foobar', value: '', choices: ['foobar', 'foo', 'bar'], setValue: jest.fn(), } const tree = renderer.create(<SelectInput {...props} />).toJSON() expect(tree).toMatchSnapshot() }) }) describe('RadioInput', () => { it('renders correctly', () => { const props = { label: 'Foobar', choices: ['foobar', 'foo', 'bar'], setValue: jest.fn(), } const tree = renderer.create(<RadioInput {...props} />).toJSON() expect(tree).toMatchSnapshot() }) }) describe('CheckboxInput', () => { it('renders correctly', () => { const props = { label: 'Foobar', choices: ['foobar', 'foo', 'bar'], setValue: jest.fn(), value: '', onChange: jest.fn(), topLabel: 'foobar', } const tree = renderer.create(<CheckboxInput {...props} />).toJSON() expect(tree).toMatchSnapshot() }) }) // // describe('YearInput', () => { // it('renders correctly', () => { // const props = { // label: 'Foobar', // value: '', // onChange: jest.fn(), // } // const tree = renderer.create(<YearInput {...props} />).toJSON() // expect(tree).toMatchSnapshot() // }) // }) // // describe('YearInput', () => { // it('renders correctly', () => { // const props = { // label: 'Foobar', // value: '', // onChange: jest.fn(), // } // const tree = renderer.create(<YearInput {...props} />).toJSON() // expect(tree).toMatchSnapshot() // }) // }) // // describe('MonthYearInput', () => { // it('renders correctly', () => { // const props = { // label: 'Foobar', // value: '', // onChange: jest.fn(), // } // const tree = renderer.create(<MonthYearInput {...props} />).toJSON() // expect(tree).toMatchSnapshot() // }) // }) // // describe('TimeInput', () => { // it('renders correctly', () => { // const tree = renderer.create(<TimeInput />).toJSON() // expect(tree).toMatchSnapshot() // }) // })
47,357
https://github.com/bzhaoopenstack/hadoop/blob/master/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/MoveApplicationAcrossQueuesRequest.java
Github Open Source
Open Source
Apache-2.0
2,022
hadoop
bzhaoopenstack
Java
Code
322
707
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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.apache.hadoop.yarn.api.protocolrecords; import org.apache.hadoop.classification.InterfaceAudience.Public; import org.apache.hadoop.classification.InterfaceStability.Unstable; import org.apache.hadoop.yarn.api.ApplicationClientProtocol; import org.apache.hadoop.yarn.api.records.ApplicationId; import org.apache.hadoop.yarn.util.Records; /** * <p>The request sent by the client to the <code>ResourceManager</code> * to move a submitted application to a different queue.</p> * * <p>The request includes the {@link ApplicationId} of the application to be * moved and the queue to place it in.</p> * * @see ApplicationClientProtocol#moveApplicationAcrossQueues(MoveApplicationAcrossQueuesRequest) */ @Public @Unstable public abstract class MoveApplicationAcrossQueuesRequest { public static MoveApplicationAcrossQueuesRequest newInstance(ApplicationId appId, String queue) { MoveApplicationAcrossQueuesRequest request = Records.newRecord(MoveApplicationAcrossQueuesRequest.class); request.setApplicationId(appId); request.setTargetQueue(queue); return request; } /** * Get the <code>ApplicationId</code> of the application to be moved. * @return <code>ApplicationId</code> of the application to be moved */ public abstract ApplicationId getApplicationId(); /** * Set the <code>ApplicationId</code> of the application to be moved. * @param appId <code>ApplicationId</code> of the application to be moved */ public abstract void setApplicationId(ApplicationId appId); /** * Get the queue to place the application in. * @return the name of the queue to place the application in */ public abstract String getTargetQueue(); /** * Get the queue to place the application in. * @param queue the name of the queue to place the application in */ public abstract void setTargetQueue(String queue); }
8,469
https://github.com/HaraDev001/eg-okeicom/blob/master/app/Http/Controllers/CkeditorController.php
Github Open Source
Open Source
MIT
null
eg-okeicom
HaraDev001
PHP
Code
77
391
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class CkeditorController extends Controller { /** * Ckeditorの画像をアップロードする * * @param Request $request */ public function upload(Request $request) { if ($request->hasFile('upload')) { $file = $request->file('upload'); // 保存用ファイル名を生成 $storeFilename = // ファイル名 pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME). // 名前が重複しないようにアップロードした時間をつけとく '_'. time(). '.'. // 拡張子をつける $file->getClientOriginalExtension(); // アップロード処理 $file->storeAs('public/uploads', $storeFilename); // ckeditor.jsに返却するデータを生成する $CKEditorFuncNum = $request->input('CKEditorFuncNum'); $url = asset('storage/uploads/'. $storeFilename); $msg = 'アップロードが完了しました'; $res = "<script>window.parent.CKEDITOR.tools.callFunction($CKEditorFuncNum, '$url', '$msg')</script>"; // HTMLを返す @header('Content-type: text/html; charset=utf-8'); echo $res; } } }
26,676
https://github.com/acidburn0zzz/JuvoPlayer/blob/master/XamarinPlayer/XamarinPlayer.Tizen.TV/Controls/ContentItem.xaml.cs
Github Open Source
Open Source
MIT
2,022
JuvoPlayer
acidburn0zzz
C#
Code
705
2,198
/*! * https://github.com/SamsungDForum/JuvoPlayer * Copyright 2019, Samsung Electronics Co., Ltd * Licensed under the MIT license * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using JuvoLogger; using JuvoPlayer.Common; using JuvoPlayer.Common.Utils.IReferenceCountableExtensions; using Nito.AsyncEx; using SkiaSharp; using SkiaSharp.Views.Forms; using Xamarin.Forms; using Xamarin.Forms.Xaml; using XamarinPlayer.Tizen.TV.Services; namespace XamarinPlayer.Tizen.TV.Controls { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class ContentItem { private static readonly SKColor FocusedColor = new SKColor(234, 234, 234); private static readonly SKColor UnfocusedColor = new SKColor(32, 32, 32); private readonly ILogger _logger = LoggerManager.GetInstance().GetLogger("JuvoPlayer"); private SKBitmapRefCounted _contentBitmap; private SubSkBitmap _previewBitmap; private readonly SKPaint _paint = new SKPaint {IsAntialias = true, Style = SKPaintStyle.Stroke, StrokeWidth = 3}; private double _height; private bool _isFocused; private CancellationTokenSource _animationCts; private StoryboardReader _storyboardReader; private readonly SKBitmapCache _skBitmapCache; public static readonly BindableProperty ContentImgProperty = BindableProperty.Create("ContentImg", typeof(string), typeof(ContentItem), default(ICollection<string>)); public string ContentImg { set => SetValue(ContentImgProperty, value); get => (string) GetValue(ContentImgProperty); } public static readonly BindableProperty ContentTitleProperty = BindableProperty.Create("ContentTitle", typeof(string), typeof(ContentItem), default(string)); public string ContentTitle { set => SetValue(ContentTitleProperty, value); get => (string) GetValue(ContentTitleProperty); } public static readonly BindableProperty ContentDescriptionProperty = BindableProperty.Create("ContentDescription", typeof(string), typeof(ContentItem), default(string)); public string ContentDescription { set => SetValue(ContentDescriptionProperty, value); get => (string) GetValue(ContentDescriptionProperty); } public static readonly BindableProperty ContentTilePreviewPathProperty = BindableProperty.Create("ContentTilePreviewPath", typeof(string), typeof(ContentItem), default(string)); private const string DefaultImagePath = "tiles/default_bg.png"; public string ContentTilePreviewPath { set => SetValue(ContentTilePreviewPathProperty, value); get => (string) GetValue(ContentTilePreviewPathProperty); } public ContentItem() { InitializeComponent(); var cacheService = DependencyService.Get<ISKBitmapCacheService>(); _skBitmapCache = cacheService.GetCache(); } public async void SetFocus() { using (_animationCts = new CancellationTokenSource()) { var token = _animationCts.Token; try { _isFocused = true; this.AbortAnimation("ScaleTo"); await this.ScaleTo(0.9); if (!_isFocused) return; InvalidateSurface(); if (ContentTilePreviewPath == null) return; if (_storyboardReader == null) _storyboardReader = new StoryboardReader(ContentTilePreviewPath, StoryboardReader.PreloadingStrategy.PreloadOnlyRemoteSources, _skBitmapCache); await Task.WhenAll(Task.Delay(500), _storyboardReader.LoadTask).WaitAsync(token); if (_storyboardReader == null || !_isFocused) return; var tilePreviewDuration = _storyboardReader.Duration(); var animation = new Animation { { 0, 1, new Animation(t => { var position = TimeSpan.FromMilliseconds(t); var previewBitmap = _storyboardReader.GetFrame(position); if (previewBitmap == null) return; _previewBitmap = previewBitmap; InvalidateSurface(); }, 0, tilePreviewDuration.TotalMilliseconds) } }; animation.Commit(this, "Animation", 1000 / 5, (uint) (tilePreviewDuration.TotalMilliseconds / 6), repeat: () => true); } catch (TaskCanceledException) { } catch (Exception ex) { _logger.Error(ex); } } } public void ResetFocus() { try { _animationCts?.Cancel(); } catch (ObjectDisposedException) { } _isFocused = false; this.AbortAnimation("ScaleTo"); this.AbortAnimation("Animation"); this.ScaleTo(1); _storyboardReader?.Dispose(); _storyboardReader = null; _previewBitmap = null; InvalidateSurface(); } private void OnPaintSurface(object sender, SKPaintSurfaceEventArgs e) { (SKBitmap, SKRect) GetCurrentBitmap() { if (_previewBitmap != null) return (_previewBitmap.Bitmap, _previewBitmap.SkRect); if (_contentBitmap != null) return (_contentBitmap.Value, _contentBitmap.Value.Info.Rect); return (null, SKRect.Empty); } var info = e.Info; var surface = e.Surface; var canvas = surface.Canvas; var (bitmap, srcRect) = GetCurrentBitmap(); if (bitmap == null) return; var dstRect = info.Rect; var borderColor = _isFocused ? FocusedColor : UnfocusedColor; _paint.Color = borderColor; using (var path = new SKPath()) using (var roundRect = new SKRoundRect(dstRect, 30, 30)) { canvas.Clear(); path.AddRoundRect(roundRect); canvas.ClipPath(path, antialias: true); canvas.DrawBitmap(bitmap, srcRect, dstRect); canvas.DrawRoundRect(roundRect, _paint); } } private Task<SKBitmapRefCounted> GetBitmap(string imagePath) { return _skBitmapCache.GetBitmap(imagePath); } private async void LoadSkBitmap() { SKBitmapRefCounted newBitmap = null; try { newBitmap = await GetBitmap(ContentImg); } catch (Exception ex) { _logger.Error(ex); newBitmap = await GetBitmap(DefaultImagePath); } finally { _contentBitmap?.Release(); _contentBitmap = newBitmap; InvalidateSurface(); } } public void SetHeight(double height) { _height = height; HeightRequest = _height; WidthRequest = _height * 1.8; } protected override void OnSizeAllocated(double width, double height) { base.OnSizeAllocated(width, height); const double tolerance = 0.001; if (Math.Abs(width - -1) < tolerance || Math.Abs(height - -1) < tolerance) return; if (Math.Abs(_height) < tolerance) WidthRequest = height * 1.8; } protected override void OnPropertyChanged(string propertyName = null) { base.OnPropertyChanged(propertyName); if (propertyName != "ContentImg") return; LoadSkBitmap(); InvalidateSurface(); } } }
32,519
https://github.com/sanhong/jitwatch/blob/master/src/main/resources/examples/TestInner.java
Github Open Source
Open Source
BSD-2-Clause-Views
2,015
jitwatch
sanhong
Java
Code
41
153
public class TestInner { public TestInner() { System.out.println("TestInner"); new Inner1(); } class Inner1 { public Inner1() { System.out.println("Inner1"); new Inner2(); } class Inner2 { public Inner2() { System.out.println("Inner2"); } } } public static void main(String[] args) { new TestInner(); } }
25,118
https://github.com/ContinuumBridge/sensortag/blob/master/sensortagadaptor_a.py
Github Open Source
Open Source
MIT
2,014
sensortag
ContinuumBridge
Python
Code
2,645
8,324
#!/usr/bin/env python # sensortagadaptor5.py # Copyright (C) ContinuumBridge Limited, 2013-2014 - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Peter Claydon # ModuleName = "SensorTag" # 2 lines below set characteristics to monitor gatttool & kill thread if it has disappeared EOF_MONITOR_INTERVAL = 1 # Interval over which to count EOFs from device (sec) MAX_EOF_COUNT = 2 # Max EOFs allowed in that interval INIT_TIMEOUT = 16 # Timeout when initialising SensorTag (sec) GATT_SLEEP_TIME = 2 # Time to sleep between killing one gatt process & starting another MAX_NOTIFY_INTERVAL = 30 # Above this value tag will be polled rather than asked to notify (sec) import pexpect import sys import time import os import logging from cbcommslib import CbAdaptor from cbconfig import * #from threading import Thread from twisted.internet import threads from twisted.internet import reactor class SimValues(): """ Provides values in sim mode (without a real SensorTag connected). """ def __init__(self): self.tick = 0 def getSimValues(self): # Acceleration every 330 ms, everything else every 990 ms if self.tick == 0: # Acceleration raw = ['handle', '=', '0x0030', 'value:', 'ff', 'c2', '01', 'xxx[LE]>'] elif self.tick == 1: time.sleep(0.20) # Temperature raw = ['handle', '=', '0x0027', 'value:', 'fc', 'ff', 'ec', '09', 'xxx[LE]>'] elif self.tick == 2: time.sleep(0.13) # Acceleration raw = ['handle', '=', '0x0030', 'value:', 'ff', 'c2', '01', 'xxx[LE]>'] elif self.tick == 3: time.sleep(0.20) # Rel humidity raw = ['handle', '=', '0x003b', 'value:', 'c0', '61', 'ae', '7e', 'xxx[LE>'] elif self.tick == 4: time.sleep(0.13) # Acceleration raw = ['handle', '=', '0x0030', 'value:', 'ff', 'c2', '01', 'xxx[LE]>'] elif self.tick == 5: time.sleep(0.20) # Gyro raw = ['handle', '=', '0x005a', 'value:', '28', '00', 'cc', 'ff', 'c3', 'ff', 'xxx[LE]>'] elif self.tick == 6: time.sleep(0.14) # Acceleration raw = ['handle', '=', '0x0030', 'value:', 'ff', 'c2', '01', 'xxx[LE]>'] self.tick = (self.tick + 1)%7 return raw class Adaptor(CbAdaptor): def __init__(self, argv): logging.basicConfig(filename=CB_LOGFILE,level=CB_LOGGING_LEVEL,format='%(asctime)s %(message)s') self.connected = False # Indicates we are connected to SensorTag self.status = "ok" self.state = "stopped" self.gattTimeout = 60 # How long to wait if not heard from tag self.badCount = 0 # Used to count errors on the BLE interface self.notifyApps = {"temperature": [], "ir_temperature": [], "acceleration": [], "gyro": [], "magnetometer": [], "humidity": [], "connected": [], "buttons": []} self.pollApps = {"temperature": [], "ir_temperature": [], "acceleration": [], "gyro": [], "magnetometer": [], "humidity": [], "connected": [], "buttons": []} self.pollInterval = {"temperature": 10000, "ir_temperature": 10000, "acceleration": 10000, "gyro": 10000, "magnetometer": 10000, "humidity": 10000, "connected": 10000, "buttons": 10000} self.pollTime = {"temperature": 0, "ir_temperature": 0, "acceleration": 0, "gyro": 0, "magnetometer": 0, "humidity": 0, "connected": 0, "buttons": 0} self.activePolls = [] self.lastEOFTime = time.time() self.processedApps = [] # characteristics for communicating with the SensorTag # Write 0 to turn off gyroscope, 1 to enable X axis only, 2 to # enable Y axis only, 3 = X and Y, 4 = Z only, 5 = X and Z, 6 = # Y and Z, 7 = X, Y and Z self.cmd = {"on": " 01", "off": " 00", "notify": " 0100", "stop_notify": " 0000", "gyro_on": " 07" } self.primary = {"temp": 0x23, "accel": 0x2E, "humid": 0x39, "magnet": 0x44, "gyro": 0x5E, "buttons": 0x69 } self.handles = {} self.handles["temperature"] = {"en": str(hex(self.primary["temp"] + 6)), "notify": str(hex(self.primary["temp"] + 3)), "data": str(format(self.primary["temp"] + 2, "#06x")) } self.handles["acceleration"] = {"en": str(hex(self.primary["accel"] + 6)), "notify": str(hex(self.primary["accel"] + 3)), "period": str(hex(self.primary["accel"] + 9)), # Period = 0x34 value x 10 ms (thought to be 0x0a) # Was running with 0x0A = 100 ms, now 0x22 = 500 ms "period_value": " 22", "data": str(format(self.primary["accel"] + 2, "#06x")) } self.handles["humidity"] = {"en": str(hex(self.primary["humid"] + 6)), "notify": str(hex(self.primary["humid"] + 3)), "data": str(format(self.primary["humid"] + 2, "#06x")) } self.handles["magnetometer"] = {"en": str(hex(self.primary["magnet"] + 6)), "notify": str(hex(self.primary["magnet"] + 3)), "period": str(hex(self.primary["magnet"] + 9)), "period_value": " 66", "data": str(format(self.primary["magnet"] + 2, "#06x")) } self.handles["gyro"] = {"en": str(hex(self.primary["gyro"] + 6)), "notify": str(hex(self.primary["gyro"] + 3)), "data": str(format(self.primary["gyro"] + 2, "#06x")) } self.handles["buttons"] = {"notify": str(hex(self.primary["buttons"] + 3)), "data": str(format(self.primary["buttons"] + 2, "#06x")) } #CbAdaprot.__init__ MUST be called CbAdaptor.__init__(self, argv) def setState(self, action): if self.state == "stopped": if action == "connected": self.state = "connected" elif action == "inUse": self.state = "inUse" elif self.state == "connected": if action == "inUse": self.state = "activate" elif self.state == "inUse": if action == "connected": self.state = "activate" if self.state == "activate": notifying = False for a in self.notifyApps: if self.notifyApps[a]: notifying = True break if not notifying: logging.info("%s %s No sensors requested in notify mode", ModuleName, self.id) elif self.sim == 0: logging.debug("%s %s Activating", ModuleName, self.id) status = self.switchSensors() logging.info("%s %s %s switchSensors status: %s", ModuleName, self.id, self.friendly_name, status) reactor.callInThread(self.getValues) polling = False for a in self.pollApps: if self.pollApps[a]: polling = True break if not polling: logging.info("%s %s No sensors requested in polling mode", ModuleName, self.id) else: reactor.callLater(0, self.pollTag) self.state = "running" # error is only ever set from the running state, so set back to running if error is cleared if action == "error": self.state == "error" elif action == "clear_error": self.state = "running" logging.debug("%s %s state = %s", ModuleName, self.id, self.state) if self.state == "connected" or self.state == "inUse": external_state = "starting" else: external_state = self.state msg = {"id": self.id, "status": "state", "state": external_state} self.sendManagerMessage(msg) def onStop(self): # Mainly caters for situation where adaptor is told to stop while it is starting if self.connected: try: self.gatt.kill(9) logging.debug("%s %s %s onStop killed gatt", ModuleName, self.id, self.friendly_name) except: logging.warning("%s %s %s onStop unable to kill gatt", ModuleName, self.id, self.friendly_name) def initSensorTag(self): logging.info("%s %s %s Init", ModuleName, self.id, self.friendly_name) try: cmd = 'gatttool -i ' + self.device + ' -b ' + self.addr + \ ' --interactive' logging.debug("%s %s %s cmd: %s", ModuleName, self.id, self.friendly_name, cmd) self.gatt = pexpect.spawn(cmd) except: logging.error("%s %s %s Dead!", ModuleName, self.id, self.friendly_name) self.connected = False logging.debug("%s %s %s initSensorTag 1, connected: %s", ModuleName, self.id, self.friendly_name, self.connected) self.sendcharacteristic("connected", self.connected, time.time()) return "noConnect" self.gatt.expect('\[LE\]>') self.gatt.sendline('connect') index = self.gatt.expect(['successful', pexpect.TIMEOUT, pexpect.EOF], timeout=INIT_TIMEOUT) if index == 1 or index == 2: # index 2 is not actually a timeout, but something has gone wrong self.connected = False logging.debug("%s %s %s initSensorTag 2, connected: %s", ModuleName, self.id, self.friendly_name, self.connected) self.sendcharacteristic("connected", self.connected, time.time()) self.gatt.kill(9) # Wait a second just to give SensorTag time to "recover" time.sleep(1) return "timeout" else: self.connected = True logging.debug("%s %s %s initSensorTag 3, connected: %s", ModuleName, self.id, self.friendly_name, self.connected) self.sendcharacteristic("connected", self.connected, time.time()) return "ok" def checkAllProcessed(self, appID): self.processedApps.append(appID) found = True for a in self.appInstances: if a not in self.processedApps: found = False if found: thereAreNotifyApps = False for a in self.notifyApps: # Allow buttons to be the only notifying characteristic if self.notifyApps[a] and a != "buttons" and a != "connected": thereAreNotifyApps = True # Check required polling times and set timeout accordingly minPollInterval = 10000 for a in self.pollApps: if self.pollApps[a]: if thereAreNotifyApps: for app in self.pollApps[a]: self.notifyApps[a].append(app) self.pollApps[a] = [] elif self.pollInterval[a] < minPollInterval: minPollInterval = self.pollInterval[a] self.gattTimeout = 2*minPollInterval + 1 logging.debug("%s %s %s gattTimeout: %s", ModuleName, self.id, self.friendly_name, self.gattTimeout) for a in self.notifyApps: if a != "ir_temperature" and a != "connected": if self.notifyApps[a]: if "period" in self.handles[a]: # Value to write is n * 10ms i = int(self.pollInterval[a] * 100) if i > 255: i = 255 elif i < 10: i = 10 self.handles[a]["period_value"] = ' ' + str(i) logging.debug("%s %s %s period value %s: %s", ModuleName, self.id, self.friendly_name, a, self.handles[a]["period_value"]) logging.info("%s %s %s notifyApps: %s", ModuleName, self.id, self.friendly_name, str(self.notifyApps)) logging.info("%s %s %s pollApps: %s", ModuleName, self.id, self.friendly_name, str(self.pollApps)) logging.info("%s %s %s pollIntervals: %s", ModuleName, self.id, self.friendly_name, str(self.pollInterval)) logging.debug("%s %s %s connected: %s", ModuleName, self.id, self.friendly_name, self.connected) self.sendcharacteristic("connected", self.connected, time.time()) self.setState("inUse") def writeTag(self, handle, cmd): # Write a command to the tag and checks it has been received line = 'char-write-req ' + handle + cmd #logging.debug("%s %s %s gatt cmd: %s", ModuleName, self.id, self.friendly_name, line) self.gatt.sendline(line) index = self.gatt.expect(['successfully', pexpect.TIMEOUT, pexpect.EOF], timeout=1) if index == 1 or index == 2: logging.debug("%s char-write-req failed. index = %s", ModuleName, index) self.tagOK = "not ok" def writeTagNoCheck(self, handle, cmd): # Writes a command to the tag without checking if it has been received # Used to write after the tag is returning values line = 'char-write-cmd ' + handle + cmd #logging.debug("%s %s %s gatt cmd: %s", ModuleName, self.id, self.friendly_name, line) self.gatt.sendline(line) def readTag(self, handle): line = 'char-read-hnd ' + handle #logging.debug("%s %s %s gatt cmd: %s", ModuleName, self.id, self.friendly_name, line) self.gatt.sendline(line) # The value read is caught by getValues def switchSensors(self): """ Call whenever an app updates its sensor configuration. Turns individual sensors in the Tag on or off. """ self.tagOK = "ok" for a in self.notifyApps: if a != "ir_temperature" and a != "connected": if self.notifyApps[a]: if "en" in self.handles[a]: self.writeTag(self.handles[a]["en"], self.cmd["on"]) if "notify" in self.handles[a]: self.writeTag(self.handles[a]["notify"], self.cmd["notify"]) if "period" in self.handles[a]: self.writeTag(self.handles[a]["period"], self.handles[a]["period_value"]) else: if "en" in self.handles[a]: self.writeTag(self.handles[a]["en"], self.cmd["off"]) return self.tagOK def pollTag(self): for a in self.pollApps: if self.pollApps[a] and (a != "ir_temperature" or a != "connected"): if time.time() > self.pollTime[a]: reactor.callLater(0, self.switchSensorOn, a) self.pollTime[a] = time.time() + self.pollInterval[a] reactor.callLater(1, self.pollTag) def switchSensorOn(self, sensor): #logging.debug("%s %s %s swtichSensorOn: %s", ModuleName, self.id, self.friendly_name, sensor) if sensor != "ir_temperature": self.writeTagNoCheck(self.handles[sensor]["en"], self.cmd["on"]) self.writeTagNoCheck(self.handles[sensor]["notify"], self.cmd["notify"]) if sensor not in self.activePolls: self.activePolls.append(sensor) def sensorRead(self, sensor): #logging.debug("%s %s %s sensorRead: %s", ModuleName, self.id, self.friendly_name, sensor) if sensor in self.activePolls: self.activePolls.remove(sensor) # ir_temperature comes from the temperature sensor if sensor in self.pollApps and sensor != "ir_temperature": self.writeTagNoCheck(self.handles[sensor]["notify"], self.cmd["stop_notify"]) self.writeTagNoCheck(self.handles[sensor]["en"], self.cmd["off"]) def connectSensorTag(self): """ Continually attempts to connect to the device. Gating with doStop needed because adaptor may be stopped before the device is ever connected. """ if self.connected == True: tagStatus = "Already connected" # Indicates app restarting elif self.sim != 0: # In simulation mode (no real devices) just pretend to connect self.connected = True logging.debug("%s %s %s connectSensorTag, conencted: %s", ModuleName, self.id, self.friendly_name, self.connected) self.sendcharacteristic("connected", self.connected, time.time()) while self.connected == False and not self.doStop and self.sim == 0: tagStatus = self.initSensorTag() if tagStatus != "ok": logging.error("%s %s %s Failed to initialise", ModuleName, self.id, self.friendly_name) if not self.doStop: logging.info("%s %s %s Initialised", ModuleName, self.id, self.friendly_name) self.setState("connected") else: return def s16tofloat(self, s16): f = float.fromhex(s16) if f > 32767: f -= 65535 return f def s8tofloat(self, s8): f = float.fromhex(s8) if f > 127: f -= 256 return f def calcTemperature(self, raw): # Calculate temperatures objT = self.s16tofloat(raw[1] + \ raw[0]) * 0.00000015625 ambT = self.s16tofloat(raw[3] + raw[2]) / 128.0 Tdie2 = ambT + 273.15 S0 = 6.4E-14 a1 = 1.75E-3 a2 = -1.678E-5 b0 = -2.94E-5 b1 = -5.7E-7 b2 = 4.63E-9 c2 = 13.4 Tref = 298.15 S = S0 * (1 + a1 * (Tdie2 - Tref) + \ a2 * pow((Tdie2 - Tref), 2)) Vos = b0 + b1 * (Tdie2 - Tref) + b2 * pow((Tdie2 - Tref), 2) fObj = (objT - Vos) + c2 * pow((objT - Vos), 2) objT = pow(pow(Tdie2,4) + (fObj/S), .25) objT -= 273.15 return objT, ambT def calcHumidity(self, raw): t1 = self.s16tofloat(raw[1] + raw[0]) temp = -46.85 + 175.72/65536 * t1 rawH = int((raw[3] + raw[2]), 16) & 0xFFFC # Clear bits [1:0] - status # Calculate relative humidity [%RH] v = -6.0 + 125.0/65536 * float(rawH) # RH= -6 + 125 * SRH/2^16 return v def calcGyro(self, raw): # Xalculate rotation, unit deg/s, range -250, +250 r = self.s16tofloat(raw[1] + raw[0]) v = (r * 1.0) / (65536/500) return v def calcMag(self, raw): # Calculate magnetic-field strength, unit uT, range -1000, +1000 s = self.s16tofloat(raw[1] + raw[0]) v = (s * 1.0) / (65536/2000) return v def getValues(self): """Continually updates sensor values. Run in a thread. """ while not self.doStop: # If things appear to be going wrong, signal an error if self.badCount > 7: self.setState("error") if self.sim == 0: index = self.gatt.expect(['handle.*', pexpect.TIMEOUT, pexpect.EOF], timeout=self.gattTimeout) else: index = 0 if index == 1: status = "" logging.warning("%s %s %s gatt timeout", ModuleName, self.id, self.friendly_name) # First try to reconnect nicely self.gatt.sendline('connect') index = self.gatt.expect(['successful', pexpect.TIMEOUT, pexpect.EOF], timeout=INIT_TIMEOUT) if index == 1 or index == 2: # index 2 is not actually a timeout, but something has gone wrong logging.warning("%s Could not reconnect nicely. Killing", ModuleName) self.badCount += 1 self.connected = False logging.debug("%s %s %s sendValues, connected: %s", ModuleName, self.id, self.friendly_name, self.connected) self.sendcharacteristic("connected", self.connected, time.time()) else: logging.warning("%s Successful reconnection without kill", ModuleName) status = self.switchSensors() logging.info("%s %s %s switchSensors status: %s", ModuleName, self.id, self.friendly_name, status) while status != "ok" and not self.doStop: self.gatt.kill(9) time.sleep(GATT_SLEEP_TIME) status = self.initSensorTag() logging.info("%s %s %s re-init status: %s", ModuleName, self.id, self.friendly_name, status) if status == "ok": # Must switch sensors on/off again after re-init status = self.switchSensors() logging.info("%s %s %s switchSensors status: %s", ModuleName, self.id, self.friendly_name, status) elif index == 2: # Most likely cause of EOFs is that gatt process has been killed. # In this case, there will be lots of them. Detect this and exit the thread. # Also report back to manager to allow it to take action. Eg: restart adaptor. if not self.doStop: logging.debug("%s %s %s gatt EOF in getValues", ModuleName, self.id, self.friendly_name) eofTime = time.time() if eofTime - self.lastEOFTime > EOF_MONITOR_INTERVAL: self.eofCount = 1 else: self.eofCount += 1 self.lastEOFTime = eofTime if self.eofCount > MAX_EOF_COUNT: self.status = "error" break else: break else: if self.badCount > 7: self.setState("reset_error") self.badCount = 0 # Got a value so reset if self.sim == 0: raw = self.gatt.after.split() else: raw = self.simValues.getSimValues() timeStamp = time.time() handles = True startI = 2 while handles: type = raw[startI] #logging.debug("%s %s %s getValues type: %s", ModuleName, self.id, self.friendly_name, type) if type.startswith(self.handles["acceleration"]["data"]): # Accelerometer descriptor accel = {} accel["x"] = self.s8tofloat(raw[startI+2])/63 accel["y"] = self.s8tofloat(raw[startI+3])/63 accel["z"] = self.s8tofloat(raw[startI+4])/63 self.sendcharacteristic("acceleration", accel, timeStamp) elif type.startswith(self.handles["buttons"]["data"]): # Button press decriptor buttons = {"leftButton": (int(raw[startI+2]) & 2) >> 1, "rightButton": int(raw[startI+2]) & 1} self.sendcharacteristic("buttons", buttons, timeStamp) elif type.startswith(self.handles["temperature"]["data"]): # Temperature descriptor objT, ambT = self.calcTemperature(raw[startI+2:startI+6]) self.sendcharacteristic("temperature", ambT, timeStamp) self.sendcharacteristic("ir_temperature", objT, timeStamp) elif type.startswith(self.handles["humidity"]["data"]): relHumidity = self.calcHumidity(raw[startI+2:startI+6]) self.sendcharacteristic("humidity", relHumidity, timeStamp) elif type.startswith("0x0057"): gyro = {} gyro["x"] = self.calcGyro(raw[startI+2:startI+4]) gyro["y"] = self.calcGyro(raw[startI+4:startI+6]) gyro["z"] = self.calcGyro(raw[startI+6:startI+8]) self.sendcharacteristic("gyro", gyro, timeStamp) elif type.startswith(self.handles["magnetometer"]["data"]): mag = {} mag["x"] = self.calcMag(raw[startI+2:startI+4]) mag["y"] = self.calcMag(raw[startI+4:startI+6]) mag["z"] = self.calcMag(raw[startI+6:startI+8]) self.sendcharacteristic("magnetometer", mag, timeStamp) else: pass # There may be more than one handle in raw. Remove the # first occurence & if there is another process it raw.remove("handle") if "handle" in raw: handle = raw.index("handle") startI = handle + 2 else: handles = False try: if self.sim == 0: self.gatt.kill(9) logging.debug("%s %s %s gatt process killed", ModuleName, self.id, self.friendly_name) except: logging.error("%s %s %s Could not kill gatt process", ModuleName, self.id, self.friendly_name) def sendcharacteristic(self, characteristic, data, timeStamp): msg = {"id": self.id, "content": "characteristic", "characteristic": characteristic, "data": data, "timeStamp": timeStamp} for a in self.notifyApps[characteristic]: reactor.callFromThread(self.sendMessage, msg, a) for a in self.pollApps[characteristic]: reactor.callFromThread(self.sensorRead, characteristic) reactor.callFromThread(self.sendMessage, msg, a) def onAppInit(self, message): """ Processes requests from apps. Called in a thread and so it is OK if it blocks. Called separately for every app that can make requests. """ #logging.debug("%s %s %s onAppInit, message = %s", ModuleName, self.id, self.friendly_name, message) tagStatus = "ok" resp = {"name": self.name, "id": self.id, "status": tagStatus, "service": [{"characteristic": "temperature", "interval": 1.0}, {"characteristic": "ir_temperature", "interval": 1.0}, {"characteristic": "acceleration", "interval": 1.0}, {"characteristic": "gyro", "interval": 1.0}, {"characteristic": "magnetometer", "interval": 1.0}, {"characteristic": "humidity", "interval": 1.0}, {"characteristic": "connected", "interval": 0}, {"characteristic": "buttons", "interval": 0}], "content": "service"} self.sendMessage(resp, message["id"]) def onAppRequest(self, message): logging.debug("%s %s %s onAppRequest, message = %s", ModuleName, self.id, self.friendly_name, message) # Switch off anything that already exists for this app for a in self.notifyApps: if message["id"] in self.notifyApps[a]: self.notifyApps[a].remove(message["id"]) for a in self.pollApps: if message["id"] in self.pollApps[a]: self.pollApps[a].remove(message["id"]) # Now update details based on the message for f in message["service"]: if f["interval"] < MAX_NOTIFY_INTERVAL: if message["id"] not in self.notifyApps[f["characteristic"]]: self.notifyApps[f["characteristic"]].append(message["id"]) if f["interval"] < self.pollInterval[f["characteristic"]]: self.pollInterval[f["characteristic"]] = f["interval"] else: if message["id"] not in self.pollApps[f["characteristic"]]: self.pollApps[f["characteristic"]].append(message["id"]) if f["interval"] < self.pollInterval[f["characteristic"]]: self.pollInterval[f["characteristic"]] = f["interval"] self.checkAllProcessed(message["id"]) def onConfigureMessage(self, config): """Config is based on what apps are to be connected. May be called again if there is a new configuration, which could be because a new app has been added. """ if not self.configured: if self.sim != 0: self.simValues = SimValues() self.connectSensorTag() if __name__ == '__main__': adaptor = Adaptor(sys.argv)
6,125
https://github.com/qBliZzarDp/POEPlus/blob/master/POEPlus/PassiveTree/PassiveTreePresenter.swift
Github Open Source
Open Source
MIT
null
POEPlus
qBliZzarDp
Swift
Code
73
260
// // PassiveTreePresenter.swift // POEPlus // // Created by Алексей Филатов on 18.11.2021. // import Foundation /// Протокол, описывающий методы для отображения данныхъ protocol PassiveTreePresentationLogic { func presentPassiveTree(response: PassiveTree.Response) } /// Класс, занимающийся подготовкой данных для отображения. class PassiveTreePresenter: PassiveTreePresentationLogic { weak var viewController: PassiveTreeDisplayLogic? // MARK: Do something func presentPassiveTree(response: PassiveTree.Response) { let viewModel = PassiveTree.ViewModel(isError: response.isError, message: response.message) if response.isError { viewController?.errorCreatePassiveTree(viewModel: viewModel) } else { viewController?.succesCreatePassiveTree(viewModel: viewModel) } } }
21,599
https://github.com/JaySon-Huang/ClickHouse/blob/master/src/Processors/Formats/Impl/ArrowBlockInputFormat.cpp
Github Open Source
Open Source
Apache-2.0
2,022
ClickHouse
JaySon-Huang
C++
Code
417
1,716
#include "ArrowBlockInputFormat.h" #if USE_ARROW #include <Formats/FormatFactory.h> #include <IO/ReadBufferFromMemory.h> #include <IO/WriteHelpers.h> #include <IO/copyData.h> #include <arrow/api.h> #include <arrow/ipc/reader.h> #include <arrow/result.h> #include "ArrowBufferedStreams.h" #include "ArrowColumnToCHColumn.h" namespace DB { namespace ErrorCodes { extern const int UNKNOWN_EXCEPTION; extern const int CANNOT_READ_ALL_DATA; } ArrowBlockInputFormat::ArrowBlockInputFormat(ReadBuffer & in_, const Block & header_, bool stream_, const FormatSettings & format_settings_) : IInputFormat(header_, in_), stream{stream_}, format_settings(format_settings_) { } Chunk ArrowBlockInputFormat::generate() { Chunk res; arrow::Result<std::shared_ptr<arrow::RecordBatch>> batch_result; if (stream) { if (!stream_reader) prepareReader(); if (is_stopped) return {}; batch_result = stream_reader->Next(); if (batch_result.ok() && !(*batch_result)) return res; } else { if (!file_reader) prepareReader(); if (is_stopped) return {}; if (record_batch_current >= record_batch_total) return res; batch_result = file_reader->ReadRecordBatch(record_batch_current); } if (!batch_result.ok()) throw ParsingException(ErrorCodes::CANNOT_READ_ALL_DATA, "Error while reading batch of Arrow data: {}", batch_result.status().ToString()); auto table_result = arrow::Table::FromRecordBatches({*batch_result}); if (!table_result.ok()) throw ParsingException(ErrorCodes::CANNOT_READ_ALL_DATA, "Error while reading batch of Arrow data: {}", table_result.status().ToString()); ++record_batch_current; arrow_column_to_ch_column->arrowTableToCHChunk(res, *table_result); return res; } void ArrowBlockInputFormat::resetParser() { IInputFormat::resetParser(); if (stream) stream_reader.reset(); else file_reader.reset(); record_batch_current = 0; } static std::shared_ptr<arrow::RecordBatchReader> createStreamReader(ReadBuffer & in) { auto stream_reader_status = arrow::ipc::RecordBatchStreamReader::Open(std::make_unique<ArrowInputStreamFromReadBuffer>(in)); if (!stream_reader_status.ok()) throw Exception(ErrorCodes::UNKNOWN_EXCEPTION, "Error while opening a table: {}", stream_reader_status.status().ToString()); return *stream_reader_status; } static std::shared_ptr<arrow::ipc::RecordBatchFileReader> createFileReader(ReadBuffer & in, const FormatSettings & format_settings, std::atomic<int> & is_stopped) { auto arrow_file = asArrowFile(in, format_settings, is_stopped); if (is_stopped) return nullptr; auto file_reader_status = arrow::ipc::RecordBatchFileReader::Open(std::move(arrow_file)); if (!file_reader_status.ok()) throw Exception(ErrorCodes::UNKNOWN_EXCEPTION, "Error while opening a table: {}", file_reader_status.status().ToString()); return *file_reader_status; } void ArrowBlockInputFormat::prepareReader() { if (stream) stream_reader = createStreamReader(*in); else { file_reader = createFileReader(*in, format_settings, is_stopped); if (!file_reader) return; } arrow_column_to_ch_column = std::make_unique<ArrowColumnToCHColumn>(getPort().getHeader(), "Arrow", format_settings.arrow.import_nested); if (stream) record_batch_total = -1; else record_batch_total = file_reader->num_record_batches(); record_batch_current = 0; } ArrowSchemaReader::ArrowSchemaReader(ReadBuffer & in_, bool stream_, const FormatSettings & format_settings_) : ISchemaReader(in_), stream(stream_), format_settings(format_settings_) { } NamesAndTypesList ArrowSchemaReader::readSchema() { std::shared_ptr<arrow::Schema> schema; if (stream) schema = createStreamReader(in)->schema(); else { std::atomic<int> is_stopped = 0; schema = createFileReader(in, format_settings, is_stopped)->schema(); } auto header = ArrowColumnToCHColumn::arrowSchemaToCHHeader(*schema, stream ? "ArrowStream" : "Arrow"); return header.getNamesAndTypesList(); } void registerInputFormatArrow(FormatFactory & factory) { factory.registerInputFormat( "Arrow", [](ReadBuffer & buf, const Block & sample, const RowInputFormatParams & /* params */, const FormatSettings & format_settings) { return std::make_shared<ArrowBlockInputFormat>(buf, sample, false, format_settings); }); factory.markFormatAsColumnOriented("Arrow"); factory.registerInputFormat( "ArrowStream", [](ReadBuffer & buf, const Block & sample, const RowInputFormatParams & /* params */, const FormatSettings & format_settings) { return std::make_shared<ArrowBlockInputFormat>(buf, sample, true, format_settings); }); } void registerArrowSchemaReader(FormatFactory & factory) { factory.registerSchemaReader( "Arrow", [](ReadBuffer & buf, const FormatSettings & settings, ContextPtr) { return std::make_shared<ArrowSchemaReader>(buf, false, settings); }); factory.registerSchemaReader( "ArrowStream", [](ReadBuffer & buf, const FormatSettings & settings, ContextPtr) { return std::make_shared<ArrowSchemaReader>(buf, true, settings); });} } #else namespace DB { class FormatFactory; void registerInputFormatArrow(FormatFactory &) { } void registerArrowSchemaReader(FormatFactory &) {} } #endif
26,468
https://github.com/alexpod1000/Signal-Maps/blob/master/app/src/main/java/it/unibo/alexpod/lam_project_signal_maps/adapters/SignalInfoWindowAdapter.java
Github Open Source
Open Source
Apache-2.0
2,020
Signal-Maps
alexpod1000
Java
Code
98
561
package it.unibo.alexpod.lam_project_signal_maps.adapters; import android.app.Activity; import android.content.Context; import android.text.Html; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.model.Marker; import it.unibo.alexpod.lam_project_signal_maps.R; import it.unibo.alexpod.lam_project_signal_maps.persistence.SignalMgrsAvgCount; public class SignalInfoWindowAdapter implements GoogleMap.InfoWindowAdapter{ private Context context; public SignalInfoWindowAdapter(Context context){ this.context = context; } @Override public View getInfoWindow(Marker marker) { return null; } @Override public View getInfoContents(Marker marker) { View view = ((Activity)context).getLayoutInflater() .inflate(R.layout.signal_info_window, null); TextView quadrantTxt = view.findViewById(R.id.quadrantTxt); TextView samplesTxt = view.findViewById(R.id.samplesTxt); TextView strengthTxt = view.findViewById(R.id.strengthTxt); Button viewAllSamplesBtn = view.findViewById(R.id.viewSamplesBtn); final SignalMgrsAvgCount infoWindowData = (SignalMgrsAvgCount) marker.getTag(); String samplesText = this.context.getString(R.string.samples_number_samples_infowindow_text, infoWindowData.samplesCount); String avgPowerText = this.context.getString(R.string.average_power_samples_infowindow_text, infoWindowData.avgPower); quadrantTxt.setText(infoWindowData.mgrs); samplesTxt.setText(Html.fromHtml(samplesText)); strengthTxt.setText(Html.fromHtml(avgPowerText)); viewAllSamplesBtn.setText(R.string.view_samples_infowindow_text); return view; } }
12,435
https://github.com/LinhPham-Dev/laravel_booking_room/blob/master/resources/views/backend/banners/edit.blade.php
Github Open Source
Open Source
MIT
null
laravel_booking_room
LinhPham-Dev
PHP
Code
251
1,036
@extends('backend.layouts.master') @section('content') <main class="content"> <div class="container-fluid p-0"> <div class="row mb-2 mb-xl-3 mx-2"> <div class="col-auto d-none d-sm-block"> <h3><strong>{{ $page }}</strong></h3> </div> </div> <div class="row"> <form action="{{ route('banners.update', $banner_edit->id) }}" method="POST" enctype="multipart/form-data"> @csrf @method('put') <div class="card-body"> <div class="row"> <div class="col-lg-6 px-3"> {{-- Title --}} <div class="form-group"> <label for="name">Title :</label> <input class="form-control @error('title') is-invalid @enderror" type="text" id="title" name="title" value="{{ old('title') ?? $banner_edit->title }}" autofocus placeholder="Title ..."> @error('title') <span class="text-danger">{{ $message }}</span> @enderror </div> {{-- Image --}} <div class="form-group"> <label for="banner_image">Choose Image :</label> <input class="form-control-file d-block" type="file" id="category_image" name="banner_image"> @error('banner_image') <span class="text-danger">{{ $message }}</span> @enderror </div> <div class="my-2"> <img id="image-show" style="padding: 10px 10px 10px 0;" width="70%" src="{{ asset("uploads/banners/$banner_edit->image") }}" alt="{{ $banner_edit->title }}"> </div> {{-- Position --}} <div class="form-group"> <label for="position">Position: </label> <select class="form-control" name="position" id="position"> <option {{ (old('position') ?? $banner_edit->position) == 1 ? 'selected' : '' }} value="1">1</option> <option {{ (old('position') ?? $banner_edit->position) == 2 ? 'selected' : '' }} value="2">2</option> <option {{ (old('position') ?? $banner_edit->position) == 3 ? 'selected' : '' }} value="3">3</option> </select> </div> </div> <div class="col-lg-6 px-3"> <div class="form-group"> <label for="status">Status: </label> <select class="form-control" name="status" id="status"> <option {{ (old('status') ?? $banner_edit->status) == 1 ? 'selected' : '' }} value="1">Show</option> <option {{ (old('status') ?? $banner_edit->status) == 0 ? 'selected' : '' }} value="0">Hide</option> </select> </div> <div class="form-group"> <label for="content">Description: </label> <textarea style="height: 100px" class="form-control" name="content" placeholder="Content ...">{{ old('content') ?? $banner_edit->content }} </textarea> @error('content') <span class="text-danger">{{ $message }}</span> @enderror </div> </div> </div> <!-- /.card-body --> <button type="submit" class="btn btn-warning btn-lg mx-2"> Update Banner ! </button> </div> </form> </div> </div> </main> @endsection @section('script-option') @includeIf('backend.layouts.preview-input-selected') @endsection
20,346
https://github.com/Chaiomanot/libcx3/blob/master/src/lib/raw.cpp
Github Open Source
Open Source
Apache-2.0
null
libcx3
Chaiomanot
C++
Code
114
392
#include "raw.hpp" #include <string.h> #include <stdlib.h> #include <stdio.h> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif void_t* alloc_mem (nat8_t len) { assert_gt(len, 0); if (auto ptr = calloc(len, 1); ptr) { return ptr; } else { fprintf(stderr, "Couldn't allocate %llu bytes on the heap\n", static_cast<unsigned long long int>(len)); abort(); } } void_t free_mem (void_t* ptr, nat8_t len) { assert_true(ptr); assert_gt(len, 0); unused(len); free(ptr); } void_t copy_mem (void_t* dst, const void_t* src, nat8_t len) { if (len == 0) { return; } assert_true(dst); assert_true(src); memmove(dst, src, len); } bool_t is_mem_eq (const void_t* left_ptr, nat8_t left_len, const void_t* right_ptr, nat8_t right_len) { if (left_len != right_len) { return false; } return memcmp(left_ptr, right_ptr, left_len) == 0; }
15,718
https://github.com/ma3east/wordpress_tyler_tutorial/blob/master/plugins/siteorigin-panels/tpl/metabox-panels.php
Github Open Source
Open Source
MIT
null
wordpress_tyler_tutorial
ma3east
PHP
Code
57
257
<?php $builder_id = uniqid(); ?> <div id="siteorigin-panels-metabox" class="siteorigin-panels-builder"> <?php do_action('siteorigin_panels_before_interface') ?> <?php wp_nonce_field('save', '_sopanels_nonce') ?> <script type="text/javascript"> // Create the panels_data input var builderId = "<?php echo esc_attr($builder_id) ?>"; document.write( '<input name="panels_data" type="hidden" class="siteorigin-panels-data-field" id="panels-data-field-' + builderId + '" />' ); document.getElementById('panels-data-field-<?php echo esc_attr($builder_id) ?>').value = decodeURIComponent("<?php echo rawurlencode( json_encode($panels_data) ); ?>"); </script> <?php do_action('siteorigin_panels_metabox_end'); ?> </div>
27,490
https://github.com/u404/multi-filter-demo/blob/master/multi-filter/multi-filter.js
Github Open Source
Open Source
MIT
2,017
multi-filter-demo
u404
JavaScript
Code
877
3,142
//options: [{key: keyName, label: text, data: [{text, value}], valueField, textField, selected: value, type: 1/2}] var initFilterBox = function (wrapper, options, onFilter) { var $filterBox = $(wrapper).addClass('filter-box'), $filterResult = $('<div class="filter-item filter-result-item">\ <span class="filter-label">已选择项:</span>\ <ul class="filter-result-list">\ </ul>\ </div>').appendTo($filterBox), filterEmptyText = '不限', filterData = {}, Ev = { _handles: {}, on: function (name, handle) { if (!this._handles[name]) { this._handles[name] = []; } this._handles[name].push(handle); }, trigger: function (name, data) { var handles = this._handles[name]; if (!handles) { return; } for (var i = 0, handle; handle = handles[i]; i++) { handle(data); } } }, changeSelected = function (data) { var key = data.key; if (!filterData[key]) { filterData[key] = []; } filterData[key] = []; if (!data.value) { Ev.trigger('empty', data); } else { //处理数据 filterData[key].push(data.value); Ev.trigger('change', data); } }, addSelected = function (data) { //data: {key, value, label, tag} var key = data.key; if (!filterData[key]) { filterData[key] = []; } if (!data.value) { filterData[key] = []; Ev.trigger('empty', data); } else if (filterData[key].indexOf(data.value) < 0) { //处理数据 filterData[key].push(data.value); //触发自定义事件 Ev.trigger('add', data); } }, removeSelected = function (data) { var key = data.key; if (!filterData[key]) { filterData[key] = []; } var index = filterData[key].indexOf(data.value); if (index > -1) { filterData[key].splice(index, 1); if (filterData[key].length == 0) { Ev.trigger('empty', data); } else { Ev.trigger('remove', data); } } }, valueToType = function (value, typeStr) { switch (typeStr) { case 'number': return +value; case 'string': return value + ''; default: return value; } }, initTagFilter = function (options) { var $filterItem = $('<div class="filter-item filter-tag-item" data-key="' + options.key + '">\ <span class="filter-label">'+ options.label + ':</span>\ <div class="filter-tag-select">\ <ul class="filter-tag-list">\ </ul>\ </div>\ </div>').insertBefore($filterResult), $tagSelect = $filterItem.children('.filter-tag-select'), $tagWrap = $tagSelect.children('.filter-tag-list'), activeClassName = 'active', tagListHtml = '<li class="filter-tag" data-value="">' + filterEmptyText + '</li>', valueType = options.data[0] ? (typeof options.data[0].value) : 'string', textField = options.textField || 'text', valueField = options.valueField || 'value'; //构建列表 for (var i = 0, item; item = options.data[i]; i++) { tagListHtml += '<li class="filter-tag" data-value="' + item[valueField] + '">' + item[textField] + '</li>'; } $tagWrap.append(tagListHtml); if ($tagWrap[0].scrollHeight > $tagWrap.height()) { //初始化moreBtn var $moreBtn = $('<span class="filter-btn-more">更多</span>').prependTo($tagSelect).click( function () { var $this = $(this); if ($this.text() == '更多') { $tagSelect.addClass('open'); $this.text('收起'); } else { $tagSelect.removeClass('open'); $this.text('更多'); } }); //初始化搜索筛选标签功能 var $searchBox = $( '<div class="search-box"><input type="text" class="search-input" placeholder="请输入关键词"></div>' ) .prependTo($tagSelect) .children('input').on('input', function () { var timer = null; return function () { timer && clearTimeout(timer); var that = this; timer = setTimeout(function () { var value = $(that).val(); $tagWrap.children().each(function () { var $this = $(this); if ($this.text().indexOf(value) < 0) { $this.addClass('open-hidden'); } else { $this.removeClass('open-hidden'); } }); }, 500); } }()); } //初始化标签点击功能 $tagWrap.on('click', '.filter-tag', function () { var $this = $(this), value = $this.data('value'), tag = $this.text(); if ($this.hasClass(activeClassName)) { removeSelected({ key: options.key, value: valueToType(value, valueType) }); } else { addSelected({ key: options.key, label: options.label, value: valueToType(value, valueType), tag: tag }); } }); //响应有关事件,来改变dom Ev.on('add', function (e) { if (e.key == options.key) { $tagWrap.children('[data-value=' + e.value + ']') .addClass(activeClassName) .siblings('.' + activeClassName + '[data-value=""]') .removeClass(activeClassName); } }); Ev.on('remove', function (e) { if (e.key == options.key) { $tagWrap.children('[data-value=' + e.value + ']') .removeClass(activeClassName); } }); Ev.on('empty', function (e) { if (e.key == options.key) { $tagWrap.children('[data-value=""]') .addClass(activeClassName) .siblings('.' + activeClassName) .removeClass(activeClassName); } }); //设置默认选中 if (options.selected) { var selectedArr = options.selected.split(','); for (var i = 0, item; item = selectedArr[i]; i++) { $tagWrap.children('[data-value="' + item + '"]').click(); } } else { $tagWrap.children('[data-value=""]').click(); } }, initSelectFilter = function (options) { var $filterItem = $('<div class="filter-item filter-select-item" data-key="' + options.key + '">\ <span class="filter-label">'+ options.label + ':</span>\ <select class="filter-select year-select">\ </select>\ </div>').insertBefore($filterResult), $select = $filterItem.children('.filter-select'), optionListHtml = '<option value="">' + filterEmptyText + '</option>', valueType = options.data[0] ? (typeof options.data[0].value) : 'string', textField = options.textField || 'text', valueField = options.valueField || 'value'; //构建列表 for (var i = 0, item; item = options.data[i]; i++) { optionListHtml += '<option value="' + item[valueField] + '">' + item[textField] + '</option>'; } $select.html(optionListHtml); $select.on('change', function () { var $this = $(this), value = $this.val(), tag = $this.children(':selected').text(); changeSelected({ key: options.key, label: options.label, value: valueToType(value, valueType), tag: tag }); }); Ev.on('empty', function (e) { if (e.key == options.key) { $select.val(''); } }); Ev.on('change', function (e) { if (e.key == options.key) { $select.val(e.value); } }); //设置默认选中项 $select.val(options.selected || ''); $select.trigger('change'); }, initFilterResult = function () { var $resultList = $filterResult.children('.filter-result-list'), resultItem = function (data) { var $item = $resultList.children('[data-key=' + data.key + ']'); if (!$item.length) { $item = $('<li class="filter-result" data-key="' + data.key + '">\ <span class="filter-label">' + data.label + ':</span>\ </li>').appendTo($resultList); } return { add: function () { $item.children('.default-tag').remove(); $item.append('<span class="filter-tag" data-value="' + data.value + '">' + data.tag + '<i class="icon-remove"></i></span>'); }, remove: function () { $item.children('.filter-tag[data-value=' + data.value + ']').remove(); }, empty: function () { $item.children('.filter-tag').remove(); $item.append('<span class="filter-tag default-tag" data-value="">' + filterEmptyText + '<i class="icon-remove"></i></span>'); } } }; $resultList.on('click', '.filter-tag', function () { var $this = $(this); if ($this.hasClass('default-tag')) { return; } var data = { key: $this.parent('.filter-result').data('key'), value: $this.data('value') } removeSelected(data); }); Ev.on('add', function (data) { resultItem(data).add(); }); Ev.on('remove', function (data) { resultItem(data).remove(); }); Ev.on('empty', function (data) { resultItem(data).empty(); }); Ev.on('change', function (data) { resultItem(data).empty(); resultItem(data).add(); }); }, doFilter = function () { onFilter(filterData); }; //优先初始化结果相关功能 initFilterResult(); //依次构建filter项 for (var i = 0, item; item = options[i]; i++) { if (item.type == 1) { initTagFilter(item); } else if (item.type == 2) { initSelectFilter(item); } } //在何时触发 onFilter Ev.on('add', doFilter); Ev.on('remove', doFilter); Ev.on('empty', doFilter); Ev.on('change', doFilter); doFilter(); };
15,308
https://github.com/wangbin0619/donkey/blob/master/donkeycar/parts/ev3_package/hello.py
Github Open Source
Open Source
MIT
null
donkey
wangbin0619
Python
Code
36
185
#!/usr/bin/env python3 import time import ev3 my_ev3 = ev3.EV3(protocol=ev3.WIFI, host='00:16:53:44:23:17') my_ev3.verbosity = 1 from ev3mail import * for i in range(5): s = ev3mailbox.encodeMessage(MessageType.Numeric, 'abc', i) print(i) my_ev3.send_system_cmd(s,False) time.sleep(1) s = ev3mailbox.encodeMessage(MessageType.Numeric, 'def', i+100) my_ev3.send_system_cmd(s, False)
13,465
https://github.com/scottwedge/OpenStack-Stein/blob/master/murano-7.0.0/murano/common/policies/__init__.py
Github Open Source
Open Source
Apache-2.0
2,021
OpenStack-Stein
scottwedge
Python
Code
141
309
# Copyright 2017 AT&T Corporation. # All Rights Reserved. # # 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 itertools from murano.common.policies import action from murano.common.policies import base from murano.common.policies import category from murano.common.policies import deployment from murano.common.policies import env_template from murano.common.policies import environment from murano.common.policies import package def list_rules(): return itertools.chain( base.list_rules(), action.list_rules(), category.list_rules(), deployment.list_rules(), environment.list_rules(), env_template.list_rules(), package.list_rules() )
46,223
https://github.com/yudsx0915/spring-boot-crud-jpa-h2/blob/master/src/main/java/com/corey/springbootcrudjpah2/service/UserService.java
Github Open Source
Open Source
MIT
null
spring-boot-crud-jpa-h2
yudsx0915
Java
Code
104
448
package com.corey.springbootcrudjpah2.service; import java.util.Date; import java.util.List; import com.corey.springbootcrudjpah2.dao.UserRepository; import com.corey.springbootcrudjpah2.entity.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class UserService { @Autowired private UserRepository userRepository; public User createUser(User user){ return userRepository.save(user); } public List<User> createAllUsers(List<User> users){ return userRepository.saveAll(users); } public User getUserById(int id){ return userRepository.findById(id).orElse(null); } public List<User> getAllUsers(){ return userRepository.findAll(); } public List<User> getAllUsersByCreateDate(Date start, Date end) { return userRepository.findByCreateDateBetween(start, end); } public User updateUser(User user){ User oldUser = userRepository.findById(user.getId()).orElse(null); if(oldUser != null){ oldUser.setName(user.getName()); oldUser.setAddress(user.getAddress()); userRepository.save(oldUser); }else{ return new User(); } return oldUser; } public String deleteUserById(int id){ userRepository.deleteById(id); return "User got deleted"; } public String deleteAllUsers() { userRepository.deleteAll(); return "Delete All Users"; } }
28,918
https://github.com/learning-layers/BitsAndPieces/blob/master/js/view/toolbar/ToolbarView.js
Github Open Source
Open Source
Apache-2.0
2,016
BitsAndPieces
learning-layers
JavaScript
Code
270
1,194
define(['logger', 'underscore', 'jquery', 'backbone', 'voc', 'view/toolbar/BitToolbarView', 'view/toolbar/SearchToolbarView', 'view/toolbar/EpisodeToolbarView', 'view/toolbar/ActivityStreamToolbarView', 'text!templates/toolbar/toolbar.tpl', 'jquery-ui'], function(Logger, _, $, Backbone, Voc, BitToolbarView, SearchToolbarView, EpisodeToolbarView, ActivityStreamToolbarView, ToolbarTemplate){ return Backbone.View.extend({ subViews: {}, tabMap : { 'activity_stream' : 0, 'search' : 1, 'bit' : 2, 'episode' : 3 }, events: { 'click .toolbar-handle': 'showHide', 'bnp:clickEntity' : 'clickEntity', 'bnp:createEpisode' : 'handleCreateEpisode' }, LOG: Logger.get('ToolbarView'), _triggerShowHideEvent: function(type) { var ev = $.Event("bnp:showHideToolbar", { customType: type }); this.$el.trigger(ev); }, _calculateAndSetToolbarHeight: function() { var windowHeight = $(window).height(), toolbarPosition = this.$el.position(); this.$el.css('height', windowHeight - toolbarPosition.top); }, initialize: function() { var that = this; this.is_hidden = true; this.$el.addClass('toolbarHidden'); // Add resize listener this.timerId = null; $(window).on('resize', function() { if ( that.timerId ) { clearTimeout(that.timerId); } that.timerId = setTimeout(function() { that.timerId = null; that._calculateAndSetToolbarHeight(); }, 500); }); }, setBit: function(entity) { this.subViews['bit'].setEntity(entity); this.$el.find('#tabs').tabs("option", "active", this.tabMap['bit']); if ( this.isHidden() ) this.showHide(); }, render: function() { var tabs = _.template(ToolbarTemplate, {}); this.$el.html(tabs); this.$el.find('#tabs').tabs(); this.subViews['activity_stream'] = new ActivityStreamToolbarView({ el : this.getTabId('activity_stream') }); this.subViews['activity_stream'].render(); this.subViews['search'] = new SearchToolbarView({ el : this.getTabId('search') }); this.subViews['search'].render(); this.subViews['bit'] = new BitToolbarView({ el : this.getTabId('bit') }); this.subViews['bit'].render(); this.subViews['episode'] = new EpisodeToolbarView({ model: this.model, el : this.getTabId('episode') }); this.subViews['episode'].render(); }, showHide: function(e) { var toolbar = this, handle = this.$el.find('.toolbar-handle'); if (this.isHidden()) { this.$el.switchClass('toolbarHidden', 'toolbarShown', function() { toolbar.is_hidden = false; handle.find('.glyphicon').switchClass('glyphicon-chevron-left', 'glyphicon-chevron-right'); // Set real height toolbar._calculateAndSetToolbarHeight(); }); toolbar._triggerShowHideEvent('shown'); } else { this.$el.switchClass('toolbarShown', 'toolbarHidden', function() { toolbar.is_hidden = true; handle.find('.glyphicon').switchClass('glyphicon-chevron-right', 'glyphicon-chevron-left'); }); toolbar._triggerShowHideEvent('hidden'); } }, isHidden: function() { return this.is_hidden; }, getTabId: function(key) { return '#tab-' + this.tabMap[key]; }, clickEntity: function(e) { // Setting viewContext to event e['viewContext'] = this; }, handleCreateEpisode: function(e) { this.$el.find('#tabs').tabs("option", "active", this.tabMap['episode']); if ( this.isHidden() ) this.showHide(); } }); });
9,522
https://github.com/justmelnyc/reaction/blob/master/src/Styleguide/Pages/Artist/Routes/CV/CVPaginationContainer.tsx
Github Open Source
Open Source
MIT
2,018
reaction
justmelnyc
TSX
Code
487
1,635
import { Sans, Serif } from "@artsy/palette" import { CVPaginationContainer_artist } from "__generated__/CVPaginationContainer_artist.graphql" import { groupBy } from "lodash" import React from "react" import styled from "styled-components" import { Box } from "Styleguide/Elements/Box" import { Flex } from "Styleguide/Elements/Flex" import { Col, Row } from "Styleguide/Elements/Grid" import { Spacer } from "Styleguide/Elements/Spacer" import { Responsive } from "Styleguide/Utils/Responsive" import { createPaginationContainer, graphql, RelayPaginationProp, } from "react-relay" interface CVProps { relay: RelayPaginationProp artist: CVPaginationContainer_artist category: string } export const PAGE_SIZE = 10 export const CVPaginationContainer = createPaginationContainer( class extends React.Component<CVProps> { loadMore() { const hasMore = this.props.artist.showsConnection.pageInfo.hasNextPage if (hasMore) { this.props.relay.loadMore(PAGE_SIZE, error => { if (error) { // tslint:disable-next-line:no-console console.log(error) } }) } } renderPagination() { return ( <div onClick={() => { this.loadMore() }} > Load More </div> ) } renderShow(node) { return ( <Show size="3"> <Serif size="3" display="inline" italic> <a href="#" className="noUnderline"> {node.name} </a> </Serif>,{" "} <a href="#" className="noUnderline"> {node.partner.name} </a>, {node.city} </Show> ) } render() { const groupedByYear = groupBy( this.props.artist.showsConnection.edges, ({ node: show }) => { return show.start_at } ) return ( <Responsive> {({ xs }) => { return ( <React.Fragment> <Row> <Col> <CVItems> <CVItem> <Row> <Col sm={2}> <Box mb={1}> <Category size="3" weight="medium"> {this.props.category} </Category> </Box> </Col> <Col sm={10}> {Object.keys(groupedByYear) .sort() .reverse() .map(year => { return ( <YearGroup mb={1}> <Year size="3">{year}</Year> <Spacer mr={xs ? 1 : 4} /> <ShowGroup> {groupedByYear[year].map(({ node }) => { return this.renderShow(node) })} </ShowGroup> </YearGroup> ) })} <Spacer my={1} /> {this.renderPagination()} </Col> </Row> </CVItem> </CVItems> </Col> </Row> </React.Fragment> ) }} </Responsive> ) } }, { artist: graphql` fragment CVPaginationContainer_artist on Artist @argumentDefinitions( count: { type: "Int", defaultValue: 10 } cursor: { type: "String", defaultValue: "" } sort: { type: "PartnerShowSorts" } at_a_fair: { type: "Boolean" } solo_show: { type: "Boolean" } is_reference: { type: "Boolean" } visible_to_public: { type: "Boolean" } ) { id showsConnection( first: $count after: $cursor sort: $sort at_a_fair: $at_a_fair solo_show: $solo_show is_reference: $is_reference visible_to_public: $visible_to_public ) @connection(key: "Artist_showsConnection") { pageInfo { hasNextPage } edges { node { __id partner { ... on ExternalPartner { name } ... on Partner { name } } name start_at(format: "YYYY") city } } } } `, }, { direction: "forward", getConnectionFromProps(props) { return props.artist.showsConnection as any }, getFragmentVariables(prevVars, totalCount) { return { ...prevVars, count: totalCount } }, getVariables(props, { count, cursor }, fragmentVariables) { return { // in most cases, for variables other than connection filters like // `first`, `after`, etc. you may want to use the previous values. ...fragmentVariables, count, cursor, artistID: props.artist.id, } }, query: graphql` query CVPaginationContainerQuery( $count: Int $cursor: String $artistID: String! $sort: PartnerShowSorts $at_a_fair: Boolean $solo_show: Boolean $is_reference: Boolean $visible_to_public: Boolean ) { artist(id: $artistID) { ...CVPaginationContainer_artist @arguments( sort: $sort count: $count cursor: $cursor at_a_fair: $at_a_fair solo_show: $solo_show is_reference: $is_reference visible_to_public: $visible_to_public ) } } `, } ) const CVItems = styled.div`` const CVItem = Box const YearGroup = styled(Flex)`` const Year = Serif const ShowGroup = styled.div`` const Show = Serif const Category = Sans
40,227
https://github.com/pedro-mgb/trajnetplusplustools/blob/master/trajnetplusplustools/visualize_type.py
Github Open Source
Open Source
MIT
2,022
trajnetplusplustools
pedro-mgb
Python
Code
814
3,026
import argparse import numpy as np from . import load_all from . import show from . import Reader from .interactions import non_linear, leader_follower, collision_avoidance, group from .interactions import check_interaction, interaction_length def interaction_plots(input_file, trajectory_type, interaction_type, args): n_instances = 0 reader = Reader(input_file, scene_type='paths') scenes = [s for _, s in reader.scenes()] categorized = False if reader.scenes_by_id[0].tag == 0: print("Input File has not been categorized") type_ids = list(range(len(scenes))) else: print("Input File has been categorized") categorized = True if trajectory_type == 3: type_ids = [scene_id for scene_id in reader.scenes_by_id \ if interaction_type in reader.scenes_by_id[scene_id].tag[1]] else: type_ids = [scene_id for scene_id in reader.scenes_by_id \ if trajectory_type in reader.scenes_by_id[scene_id].tag] for type_id in type_ids: scene = scenes[type_id] frame = scene[0][args.obs_len].frame rows = reader.paths_to_xy(scene) path = rows[:, 0] neigh_path = rows[:, 1:] neigh = None ## For Linear Trajectories if trajectory_type == 1: if not categorized: ## Check Path Length static = np.linalg.norm(path[-1] - path[0]) < 1.0 if not static: continue ## For Linear Trajectories if trajectory_type == 2: if not categorized: ## Check Linearity nl_tag, _ = non_linear(scene, args.obs_len, args.pred_len) if nl_tag: continue ## For Interacting Trajectories if trajectory_type == 3: if interaction_type == 1: interaction_index = leader_follower(rows, pos_range=args.pos_range, \ dist_thresh=args.dist_thresh, \ obs_len=args.obs_len) elif interaction_type == 2: interaction_index = collision_avoidance(rows, pos_range=args.pos_range, \ dist_thresh=args.dist_thresh, \ obs_len=args.obs_len) elif interaction_type == 3: interaction_index = group(rows, obs_len=args.obs_len) elif interaction_type == 4: interaction_matrix = check_interaction(rows, pos_range=args.pos_range, \ dist_thresh=args.dist_thresh, \ obs_len=args.obs_len) # "Shape": PredictionLength x Number of Neighbours interaction_index = interaction_length(interaction_matrix, length=1) else: raise ValueError if not categorized: ## Check Interactions num_interactions = np.any(interaction_index) ## Check Non-Linearity nl_tag, _ = non_linear(scene, args.obs_len, args.pred_len) ## Check Path Length path_length = np.linalg.norm(path[-1] - path[0]) > 1.0 ## Combine interacting = num_interactions & path_length & nl_tag if not interacting: continue neigh = neigh_path[:, interaction_index] ## For Non Linear Non-Interacting Trajectories if trajectory_type == 4: if not categorized: ## Check No Interactions interaction_matrix = check_interaction(rows, pos_range=args.pos_range, \ dist_thresh=args.dist_thresh, \ obs_len=args.obs_len) interaction_index = interaction_length(interaction_matrix, length=1) num_interactions = np.any(interaction_index) ## Check No Group interaction_index = group(rows) num_grp = np.any(interaction_index) ## Check Non-Linearity nl_tag, _ = non_linear(scene, args.obs_len, args.pred_len) ## Check Path length path_length = np.linalg.norm(path[-1] - path[0]) > 1.0 ## Combine non_interacting = (not num_interactions) & (not num_grp) & path_length & nl_tag if not non_interacting: continue kf = None ##Default n_instances += 1 file_name = input_file.split('/')[-1] ## n Examples of interactions ## if n_instances < args.n: if neigh is not None: output = 'interactions/{}_{}_{}.pdf'.format(file_name, interaction_type, type_id) with show.interaction_path(path, neigh, kalman=kf, output_file=output, obs_len=args.obs_len): pass output = 'interactions/{}_{}_{}_full.pdf'.format(file_name, interaction_type, type_id) with show.interaction_path(path, neigh_path, kalman=kf, output_file=output, obs_len=args.obs_len): pass print("Number of Instances: ", n_instances) def distribution_plots(input_file, args): ## Distributions of interactions n_theta, vr_n, dist_thresh, choice = args.n_theta, args.vr_n, args.dist_thresh, args.choice distr = np.zeros((n_theta, vr_n)) def fill_grid(theta_vr): theta, vr = theta_vr theta = theta*(2*np.pi)/360 thetap = np.floor(theta * distr.shape[0] / (2*np.pi)).astype(int) vrp = np.floor(vr * distr.shape[1] / dist_thresh).astype(int) distr[thetap, vrp] += 1 unbinned_vr = [[] for _ in range(n_theta)] def fill_unbinned_vr(theta_vr): theta, vr = theta_vr theta = theta*(2*np.pi)/360 thetap = np.floor(theta * len(unbinned_vr) / (2*np.pi)).astype(int) for th, _ in enumerate(thetap): unbinned_vr[thetap[th]].append(vr[th]) vr_max = dist_thresh hist = [] def fill_hist(vel): hist.append(vel) #run for _, rows in load_all(input_file): _, chosen_true, dist_true = check_interaction(rows, \ pos_range=args.pos_range, \ dist_thresh=args.dist_thresh, \ choice=args.choice, \ pos_angle=args.pos_angle, \ vel_angle=args.vel_angle, \ vel_range=args.vel_range, \ output='all', obs_len=args.obs_len) fill_grid((chosen_true, dist_true)) fill_unbinned_vr((chosen_true, dist_true)) fill_hist(chosen_true) with show.canvas(input_file + '.' + choice + '.png', figsize=(4, 4), subplot_kw={'polar': True}) as ax: r_edges = np.linspace(0, vr_max, distr.shape[1] + 1) theta_edges = np.linspace(0, 2*np.pi, distr.shape[0] + 1) thetas, rs = np.meshgrid(theta_edges, r_edges) ax.pcolormesh(thetas, rs, distr.T, vmin=0, vmax=None, cmap='Blues') median_vr = np.array([np.median(vrs) if len(vrs) > 5 else np.nan for vrs in unbinned_vr]) center_thetas = np.linspace(0.0, 2*np.pi, len(median_vr) + 1) center_thetas = 0.5 * (center_thetas[:-1] + center_thetas[1:]) # close loop center_thetas = np.hstack([center_thetas, center_thetas[0:1]]) median_vr = np.hstack([median_vr, median_vr[0:1]]) # plot median radial velocity # ax.plot(center_thetas, median_vr, label='median $d_r$ [m/s]', color='orange') ax.grid(linestyle='dotted') ax.legend() with show.canvas(input_file + '.' + choice + '_hist.png', figsize=(4, 4)) as ax: ax.hist(np.hstack(hist), bins=n_theta) def main(): parser = argparse.ArgumentParser() parser.add_argument('dataset_files', nargs='+', help='Trajnet dataset file(s).') parser.add_argument('--obs_len', type=int, default=9, help='observation length') parser.add_argument('--pred_len', type=int, default=12, help='prediction length') parser.add_argument('--n', type=int, default=5, help='number of samples') parser.add_argument('--trajectory_type', type=int, default=3, help='type of trajectory (2: Lin, 3: NonLin + Int, 4: NonLin + NonInt)') parser.add_argument('--interaction_type', type=int, default=2, help='type of interaction (1: LF, 2: CA, 3:Grp, 4:Oth)') parser.add_argument('--pos_angle', type=int, default=0, help='axis angle of position cone (in deg)') parser.add_argument('--vel_angle', type=int, default=0, help='relative velocity centre (in deg)') parser.add_argument('--pos_range', type=int, default=15, help='range of position cone (in deg)') parser.add_argument('--vel_range', type=int, default=20, help='relative velocity span (in rsdeg)') parser.add_argument('--dist_thresh', type=int, default=5, help='threshold of distance (in m)') parser.add_argument('--choice', default='bothpos', help='choice of interaction') parser.add_argument('--n_theta', type=int, default=72, help='number of segments in polar plot radially') parser.add_argument('--vr_n', type=int, default=10, help='number of segments in polar plot linearly') args = parser.parse_args() print('{dataset:>60s} | N'.format(dataset='')) for dataset_file in args.dataset_files: print('{dataset:>60s} | {N:>5}'.format( dataset=dataset_file, N=sum(1 for _ in load_all(dataset_file)), )) interaction_type = args.interaction_type trajectory_type = args.trajectory_type for dataset_file in args.dataset_files: # pass ## Interaction interaction_plots(dataset_file, trajectory_type, interaction_type, args) ## Position Global # distribution_plots(dataset_file, args) if __name__ == '__main__': main()
20,203
https://github.com/ludwieg/kotlin/blob/master/ludwieg/src/main/java/io/vito/ludwieg/types/TypeStructBuffer.kt
Github Open Source
Open Source
MIT
null
kotlin
ludwieg
Kotlin
Code
61
233
package io.vito.ludwieg.types import io.vito.ludwieg.IllegalInvocationException import io.vito.ludwieg.LudwiegInternalType import io.vito.ludwieg.SerializationCandidate import io.vito.ludwieg.readSize import java.io.ByteArrayInputStream import java.io.ByteArrayOutputStream @LudwiegInternalType(ProtocolType.STRUCT) class TypeStructBuffer : Type<ByteArray>() { override fun encodeValueTo(buf: ByteArrayOutputStream, candidate: SerializationCandidate) { throw IllegalInvocationException("TypeStructBuffer is a transport type and must not be used to encoding operations") } override fun decodeValue(buf: ByteArrayInputStream) { val size = buf.readSize() val internalBuffer = ByteArray(size.toInt()) buf.read(internalBuffer) value = internalBuffer } }
1,306
https://github.com/sumonchai/WaveApps-v1/blob/master/admin/billing/make-payment.php
Github Open Source
Open Source
MIT
2,019
WaveApps-v1
sumonchai
PHP
Code
425
1,796
<?php require_once($_SERVER['DOCUMENT_ROOT']."/assets/func/sqlQu.php"); $login->login_redir(); ?> <div id="info"></div> <p class="text-muted well well-sm no-shadow text-center" id="makepayinfo" style="margin-top: 10px;"></p> <form class="form-horizontal" id="form-account"> <div class="form-group"> <label class="col-sm-3 control-label" for="paymentmethod">Payment Methods</label> <div class="col-sm-9"> <select id="paymentmethod" class="form-control select2" style="width: 100%;"> <option value=""></option> <option value="wallet">Member Wallet</option> <option value="cash">Cash</option> <option value="bank">Bank Transfer</option> <option value="other">Other</option> </select> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label" for="payto">Pay to Account</label> <div class="col-sm-9"> <select id="payto" class="form-control select2" style="width: 100%;"> <option value=""></option> <?php $query = sqlQuAssoc("SELECT id,name FROM wavenet.tb_account WHERE `deleted` = '0'"); foreach ($query as $key) : $name = $key['name']; $id = $key['id'] ?> <option value="<?= $id ?>"><?= $name ?></option> <?php endforeach ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label" for="datepaid">Payment Date</label> <div class="col-sm-9"> <input id="datepaid" name="datepaid" type="text" class="form-control"> </div> </div> <div class="form-group"> <div class="col-sm-3"></div> <div class="col-sm-9"> <div class="pretty p-default p-round p-thick"> <input type="checkbox" id="agree"/> <div class="state p-primary-o"> <label>All data is correct!</label> </div> </div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label" for="mmakepayment"></label> <div class="col-sm-9"> <input type="button" class="btn btn-primary btn-block" id="makepayment" value="Save" disabled/> </div> </div> </form> <script type="text/javascript"> var count = table.rows( { selected: true } ).count(); $('#modal-footer-payment').text(+count+" invoice selected."); $('.select2').select2({ placeholder: 'Select an option', allowClear: true }); $('#datepaid').datepicker({ format: "yyyy-mm-dd", autoclose: true, todayHighlight: true }); $("#agree").on('click', function() { if ($('input#agree').is(':checked')) { $("#makepayment").attr("disabled", false); } else { $("#makepayment").attr("disabled", true); } }); </script> <?php if (isset($_GET['invid'])) :?> <script type="text/javascript"> $('#makepayinfo').hide(); var newarray=[]; newarray.push(<?= $_GET['invid'] ; ?>); var invid = newarray; </script> <?php endif ?> <?php if (!isset($_GET['invid'])) : ?> <script type="text/javascript"> $('#makepayinfo').show(); var count = table.rows( { selected: true } ).count(); var rowData = table.rows({selected: true}).data().toArray(); var total = 0; for (var i=0; i < rowData.length ;i++){ var total = convertToAngka(rowData[i][4])+total; } $('#makepayinfo').html("<b class='text-red'>"+count+"</b> selected invoice with a total value <b class='text-red'>"+convertToRupiah(total)+"</b>"); var newarray=[]; for (var i=0; i < rowData.length ;i++){ newarray.push(rowData[i][2]); } var invid = newarray; </script> <?php endif ?> <script type="text/javascript"> $('#makepayment').on('click', function() { if ($("#paymentmethod").val() == "wallet") { var payt = "000"; } else { var payt = $("#payto").val(); } $.post("billing/sql-proc.php?qs=pay-invoice", { id: invid, paymentmethod: $("#paymentmethod").val(), payto: payt, datepaid: $("#datepaid").val(), status: "paid" }, function(data) { var json = JSON.parse(data); var status = json['status']; if (status != "success") { $(".modal-header,.modal-footer").removeClass("error warning success").addClass("warning"); $(".has-error").removeClass("has-error"); $.each( json, function( key, value ) { $("#"+json[key]['col']).closest(".form-group").addClass("has-error"); key++ }); $("#info").load( "../include/alert.php #callout-warning", function() { $("#callout-title-warning").html(json[0]['error']); }); } else if (status == "success") { $(".modal-header,.modal-footer").removeClass("error warning success").addClass("success"); $(".has-error").removeClass("has-error"); $("#info").load( "../include/alert.php #callout-success", function() { $('#callout-title-success').html("Payment is complete!"); }); } else if (status == "warning") { $(".modal-header,.modal-footer").removeClass("error warning success").addClass("danger"); $(".has-error").removeClass("has-error"); $("#info").load( "../include/alert.php #callout-danger", function() { $('#callout-title-danger').html(json[0]['error']); }); } }); }); $('#paymentmethod').on('change', function() { if ($("#paymentmethod").val() == "wallet") { $('#payto').prop('disabled', true); } else { $('#payto').prop('disabled', false); } }); </script>
2,839
https://github.com/Vermonster/fhir-codegen/blob/master/src/Microsoft.Health.Fhir.SpecManager/Manager/ServerConnector.cs
Github Open Source
Open Source
MIT
2,022
fhir-codegen
Vermonster
C#
Code
371
1,180
// <copyright file="ServerConnector.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // </copyright> using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using Microsoft.Health.Fhir.SpecManager.Converters; using Microsoft.Health.Fhir.SpecManager.Models; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Microsoft.Health.Fhir.SpecManager.Manager { /// <summary>A FHIR server connector.</summary> public static class ServerConnector { /// <summary> /// Attempts to get server information a FhirServerInfo from the given string. /// </summary> /// <param name="serverUrl"> URL of the server.</param> /// <param name="serverInfo">[out] Information describing the server.</param> /// <returns>True if it succeeds, false if it fails.</returns> public static bool TryGetServerInfo( string serverUrl, out FhirServerInfo serverInfo) { if (string.IsNullOrEmpty(serverUrl)) { serverInfo = null; return false; } HttpClient client = null; HttpRequestMessage request = null; try { Uri serverUri = new Uri(serverUrl); client = new HttpClient(); request = new HttpRequestMessage() { Method = HttpMethod.Get, RequestUri = new Uri(serverUri, "metadata"), Headers = { Accept = { new MediaTypeWithQualityHeaderValue("application/fhir+json"), }, }, }; Console.WriteLine($"Requesting metadata from {request.RequestUri}..."); HttpResponseMessage response = client.SendAsync(request).Result; if (response.StatusCode != System.Net.HttpStatusCode.OK) { Console.WriteLine($"Request to {request.RequestUri} failed! {response.StatusCode}"); serverInfo = null; return false; } string content = response.Content.ReadAsStringAsync().Result; if (string.IsNullOrEmpty(content)) { Console.WriteLine($"Request to {request.RequestUri} returned empty body!"); serverInfo = null; return false; } ServerFhirVersionStruct version = JsonConvert.DeserializeObject<ServerFhirVersionStruct>(content); if (string.IsNullOrEmpty(version.FhirVersion)) { Console.WriteLine($"Could not determine the FHIR version for {serverUrl}!"); serverInfo = null; return false; } Console.WriteLine($"Connected to {serverUrl}, FHIR version: {version.FhirVersion}"); IFhirConverter fhirConverter = ConverterHelper.ConverterForVersion(version.FhirVersion); object metadata = fhirConverter.ParseResource(content); fhirConverter.ProcessMetadata(metadata, serverUrl, out serverInfo); if (serverInfo != null) { Console.WriteLine($"Server Information from {serverUrl}:"); Console.WriteLine($"\t FHIR Version: {serverInfo.FhirVersion}"); Console.WriteLine($"\t Software Name: {serverInfo.SoftwareName}"); Console.WriteLine($"\tSoftware Version: {serverInfo.SoftwareVersion}"); Console.WriteLine($"\t Release Date: {serverInfo.SoftwareReleaseDate}"); Console.WriteLine($"\t Description: {serverInfo.ImplementationDescription}"); Console.WriteLine($"\t Resources: {serverInfo.ResourceInteractions.Count}"); return true; } } #pragma warning disable CA1031 // Do not catch general exception types catch (Exception ex) #pragma warning restore CA1031 // Do not catch general exception types { Console.WriteLine($"Failed to get server info from: {serverUrl}, {ex.Message}"); serverInfo = null; return false; } finally { if (request != null) { request.Dispose(); } if (client != null) { client.Dispose(); } } serverInfo = null; return false; } /// <summary>Minimal struct that will always parse a conformance/capability statement to get version info.</summary> private struct ServerFhirVersionStruct { [JsonProperty("fhirVersion")] public string FhirVersion { get; set; } } } }
38,382
https://github.com/ysmiles/leetcode-cpp/blob/master/501-600/518-Coin_Change_2-m.cpp
Github Open Source
Open Source
BSD-3-Clause
2,018
leetcode-cpp
ysmiles
C++
Code
416
929
// You are given coins of different denominations and a total amount of money. // Write a function to compute the number of combinations that make up that // amount. You may assume that you have infinite number of each kind of coin. // Note: You can assume that // 0 <= amount <= 5000 // 1 <= coin <= 5000 // the number of coins is less than 500 // the answer is guaranteed to fit into signed 32-bit integer // Example 1: // Input: amount = 5, coins = [1, 2, 5] // Output: 4 // Explanation: there are four ways to make up the amount: // 5=5 // 5=2+2+1 // 5=2+1+1+1 // 5=1+1+1+1+1 // Example 2: // Input: amount = 3, coins = [2] // Output: 0 // Explanation: the amount of 3 cannot be made up just with coins of 2. // Example 3: // Input: amount = 10, coins = [10] // Output: 1 // dp class Solution { public: int change(int amount, vector<int> &coins) { sort(coins.begin(), coins.end()); vector<vector<int>> dp(coins.size() + 1, vector<int>(amount + 1)); for (int i = 0; i <= coins.size(); ++i) dp[i][0] = 1; for (int i = 1; i <= coins.size(); ++i) for (int j = 1; j <= amount; ++j) dp[i][j] = dp[i - 1][j] + (j >= coins[i - 1] ? dp[i][j - coins[i - 1]] : 0); return dp[coins.size()][amount]; } }; // optimized dp // because dp[i][j] only relied on // dp[i-1][j] (previous i's value) and dp[i][j - curr_coin] // so it is independent from i class Solution { public: int change(int amount, vector<int> &coins) { sort(coins.begin(), coins.end()); vector<int> dp(amount + 1); dp[0] = 1; // after i_th loop // dp[j] means the ways to achieve target (j) use first i coins for (auto &&coin : coins) for (int j = coin; j <= amount; ++j) dp[j] += dp[j - coin]; return dp[amount]; } }; // ref: 039 // TLE: we need less information class Solution { public: int change(int amount, vector<int> &coins) { // if(!is_sorted(coins.begin(), coins.end())) sort(coins.begin(), coins.end()); vector<vector<int>> combs; vector<int> curr; function<void(int, int)> backtrack = [&](int start, int target) { if (target == 0) { combs.push_back(curr); return; } for (int i = start; i < coins.size() && target >= coins[i]; ++i) { curr.push_back(coins[i]); backtrack(i, target - coins[i]); curr.pop_back(); } }; backtrack(0, amount); // for (auto &&v : combs) { // for (auto &&x : v) // cout << x << ' '; // cout << '\n'; // } return combs.size(); } };
13,119
https://github.com/hstern/fsi-dnsdb/blob/master/dnsdb/dnsdb.py
Github Open Source
Open Source
MIT
2,019
fsi-dnsdb
hstern
Python
Code
890
2,886
# -*- coding: utf-8 -*- """ Python client for Farsight Security's DNSDB API Farsight Security DNSDB is a database that stores and indexes both the passive DNS data available via Farsight Security's Security Information Exchange as well as the authoritative DNS data that various zone operators make available. DNSDB makes it easy to search for individual DNS RRsets and provides additional metadata for search results such as first seen and last seen timestamps as well as the DNS bailiwick associated with an RRset. DNSDB also has the ability to perform inverse or rdata searches Farsight DNSDB API Documentation https://api.dnsdb.info/ INITIALIZE EXAMPLE:: from dnsdb import Dnsdb api_key="12345" dnsdb = Dnsdb(api_key) SIMPLE USAGE EXAMPLES::: result = dnsdb.search(name="fsi.io") result = dnsdb.search(name="mail.fsi.io", inverse=True) result = dnsdb.search(ip="104.244.14.108") result = dnsdb.search(ip="104.244.14.0/24") result = dnsdb.search(ip="2620:11c:f008::108") result = dnsdb.search(hexadecimal="36757a35") result = dnsdb.search(name="fsi.io", type="A") result = dnsdb.search(name="farsightsecurity.com", bailiwick="com.") result = dnsdb.search(name="fsi.io", wildcard_left=True) result = dnsdb.search(name="fsi", wildcard_right=True) result = dnsdb.search(name="fsi.io", sort=False) result = dnsdb.search(name="fsi.io", remote_limit=150000, return_limit=1000) result = dnsdb.search(name="fsi.io", time_last_after=1514764800) result = dnsdb.search(name="fsi.io", epoch=True) result = dnsdb.search(name="fsi.io", cache=True) result = dnsdb.search(name="fsi.io", cache=True, cache_timeout=900) result = dnsdb.search(name="fsi.io", cache=True, cache_location="/tmp/dnsdb-cache") result = dnsdb.quota() print(result.records) print(result.status_code) print(result.error) print(result.quota) print(result.cached) """ import json import gzip import requests from diskcache import Cache from dnsdb import utils class Dnsdb: """ A dnsdb object for the Farsight Security DNSDB API """ def __init__( self, api_key=None, server="https://api.dnsdb.info", cache=False, cache_location="/tmp/dnsdb-cache", cache_timeout=900, ): """ :param api_key: string (required) :param server: string (optional: default='https://api.dnsdb.info') :param cache: boolean (optional) enable caching of dnsdb results to disk :param cache_location: string (optional: default='/tmp/dnsdb-cache') directory to store cached results :param cache_timeout: integer (optional: default=900) seconds until the cached result expires :return: object EXAMPLE USAGE::: client = dnsdb.Client(api_key) """ self.api_key = api_key self.server = server self.cache = cache self.cache_location = cache_location self.cache_timeout = cache_timeout if api_key is None: raise Exception("You must supply a DNSDB API key.") def search( self, name=None, ip=None, hexadecimal=None, type="ANY", bailiwick=None, wildcard_left=None, wildcard_right=None, inverse=False, sort=True, return_limit=10000, remote_limit=50000, epoch=False, time_first_before=None, time_first_after=None, time_last_before=None, time_last_after=None, ): """ A method of the DNSDB Class to search the DNSDB API. :param name: string (required) fully qualified domain name :param ip: string IPv4 or IPv6 address, CIDR notation is valid :param hexadecimal: string hexadecimal digits specifying a raw octet string :param type: string (optional: default="ANY") dns resource record types (ANY, A, MX, SIG, etc) :param bailiwick: string (optional: default=None) a label in a fqdn, not valid for inverse queries :param wildcard_left: Boolean (optional: default=None) wildcard search to the left of a dot in a domain name :param wildcard_right: Boolean (optional: default=None) wildcard search to the right of a dot in a domain name :param inverse: boolean (optional: default=False) search for names resolving to names (e.g. MX, NS, CNAME, etc) only valid when used with name :param sort: boolean (optional: default=True) :param return_limit: integer (optional: default=10000) :param remote_limit: integer (optional: default=50000) :param epoch: boolean (optional: default=False) :param time_first_before: :param time_first_after: :param time_last_before: :param time_last_after: :return: Object """ options = dict() options["name"] = name options["ip"] = ip options["hex"] = hexadecimal options["type"] = type options["bailiwick"] = bailiwick options["wildcard_left"] = wildcard_left options["wildcard_right"] = wildcard_right options["inverse"] = inverse options["sort"] = sort options["return_limit"] = return_limit options["remote_limit"] = remote_limit options["epoch"] = epoch options["time_first_before"] = time_first_before options["time_first_after"] = time_first_after options["time_last_before"] = time_last_before options["time_last_after"] = time_last_after options["api_key"] = self.api_key options["server"] = self.server options["cache"] = self.cache options["cache_location"] = self.cache_location options["cache_timeout"] = self.cache_timeout options = utils.pre_process(options) uri = utils.build_uri(options) if options["cache"] is True: cache = Cache(options["cache_location"]) cached_result = cache.get(uri) if cached_result: data = json.loads(gzip.decompress(cached_result).decode("utf-8")) results = Result( records=data["records"], status_code=data["status_code"], error=data["error"], quota=data["quota"], cached=True, ) else: results = _query(options, uri) if results.status_code == 200 or results.status_code == 404: compressed = Result.to_compressed(results) cache.set(uri, compressed, expire=options["cache_timeout"]) else: results = _query(options, uri) if results.status_code == 200: results = utils.post_process(options, results) return results return results def quota(self): """ Query DNSDB API for the current quota of the given API key :return: object """ options = dict() options["api_key"] = self.api_key options["server"] = self.server path = "/lookup/rate_limit" uri_parts = (options["server"], path) uri = "".join(uri_parts) results = _query(options, uri, quota=True) return results class Result: """ A object to store the results of a DNSDB Search and related meta data. """ def __init__( self, records=None, status_code=None, error=None, quota=None, cached=None ): """ :param records: list of dictionaries :param status_code: integer DNSDB status code :param error: dictionary DNSDB error message :param quota: dictionary DNSDB quota information :param cached: boolean """ self.status_code = status_code self.records = records self.error = error self.quota = quota self.cached = cached def to_dict(self): """ Return the object as a dictionary :return: dictionary """ data = dict( status_code=self.status_code, records=self.records, error=self.error, quota=self.quota, cached=self.cached, ) return data def to_json(self): """ Return the object as a JSON string :return: string """ data = Result.to_dict(self) return json.dumps(data) def to_compressed(self): """ Return the object as a gzipped JSON string :return: bytes """ encoded = Result.to_json(self).encode("utf-8") compressed = gzip.compress(bytes(encoded)) return compressed def _query(options, uri, quota=False): """ An internal HTTP function to query DNSDB API :param uri: string :param quota: boolean (default: False) :return: object """ results = Result() error = dict() error.update({"code": None, "message": None}) headers = {"Accept": "application/json", "X-API-Key": options["api_key"]} resp = requests.get(uri, headers=headers, stream=True) results.status_code = resp.status_code results.quota = utils.get_quota(response_headers=resp.headers) results.cached = False if resp.status_code == 200: records = [] if quota is True: response = resp.json() results.quota = utils.get_quota(rate_limit=response["rate"]) return results for line in resp.iter_lines(): if line: decoded_line = line.decode("utf-8") records.append(json.loads(decoded_line)) results.records = records else: error["code"] = resp.status_code if resp.content: error["message"] = resp.content.decode("utf-8").rstrip() else: error["message"] = "Unavailable" results.error = error return results
26,262
https://github.com/p2max34/YHPaaS/blob/master/YHPaaS/Classes/CMSPaaS.framework/Headers/UIImage+CMSColorShape.h
Github Open Source
Open Source
MIT
null
YHPaaS
p2max34
C
Code
183
843
// // UIImage+CMSColorShape.h // CMSPaaSBenchmark // // Created by symbio on 2020/11/24. // Copyright © 2020 CMS. All rights reserved. // #import <UIKit/UIKit.h> /// 三角形绘制方向 typedef enum : NSUInteger { CMSTriangleImageDirectionDecline, /// 向下 CMSTriangleImageDirectionUp, /// 向上 CMSTriangleImageDirectionLeft, /// 向左 CMSTriangleImageDirectionRight /// 向右 } CMSTriangleImageDirection; NS_ASSUME_NONNULL_BEGIN @interface UIImage (CMSColorShape) + (UIImage *)cms_imageWithColor:(UIColor *)color size:(CGSize)size; + (UIImage *)cms_imageWithColor:(UIColor *)color forSize:(CGSize)size withCornerRadius:(CGFloat)radius; /// 绘制三角形 /// @param color 填充颜色 /// @param size 绘制大小 /// @param direction 三角形箭头朝向 + (UIImage *)cms_triangleImageWithColor:(UIColor *)color size:(CGSize)size direction:(CMSTriangleImageDirection)direction; /// 绘制箭头 /// @param color 线条颜色 /// @param size 绘制大小 /// @param direction 三角形箭头朝向 + (UIImage *)cms_arrowImageWithColor:(UIColor *)color size:(CGSize)size direction:(CMSTriangleImageDirection)direction; /// 绘制箭头 /// @param color 线条颜色 /// @param size 绘制大小 /// @param direction 箭头朝向 /// @param backgroudColor 背景颜色 + (UIImage *)cms_arrowImageWithColor:(UIColor *)color size:(CGSize)size direction:(CMSTriangleImageDirection)direction backgroudColor:(UIColor *)backgroudColor; /// 绘制关闭按钮 /// @param color 颜色 /// @param size size + (UIImage *)cms_closeImageWithColor:(UIColor *)color size:(CGSize)size; /// 绘制关闭按钮图片 /// @param color 线条颜色 /// @param backgroudColor 背景颜色 /// @param size 图片大小 /// @param lineWidth 线宽 /// @param isRound 是否是圆形 + (UIImage *)cms_closeImageWithColor:(UIColor *)color backgroudColor:(UIColor * _Nullable)backgroudColor size:(CGSize)size lineWidth:(CGFloat)lineWidth isRound:(BOOL)isRound; + (UIImage *)cms_addImageWithColor:(UIColor *)color backgroudColor:(UIColor *)backgroudColor size:(CGSize)size lineWidth:(CGFloat)lineWidth isRound:(BOOL)isRound; @end NS_ASSUME_NONNULL_END
19,163
https://github.com/pepellou/little-chomsky/blob/master/Tests/BasicConversationTest.php
Github Open Source
Open Source
MIT
null
little-chomsky
pepellou
PHP
Code
129
467
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use Chomsky\Chomsky; final class BasicConversationTest extends TestCase { /** * @dataProvider stuffThatChomskyShouldNotUnderstand */ public function testShouldNotUnderstandSomeStuff($stuff): void { $this->assertEquals( "Non entendo o que queres dicir (${stuff})", Chomsky::talk($stuff) ); } /** * @dataProvider greetings */ public function testShouldUnderstandGreetings($greeting): void { $this->assertNotEquals( "Non entendo o que queres dicir (${greeting})", Chomsky::talk($greeting) ); } public function testShouldUnderstandQuitCommand(): void { $this->assertNotEquals( "Non entendo o que queres dicir (/q)", Chomsky::talk('/q') ); } /* * @setupBeforeClass */ public static function setupBeforeClass() : void { Chomsky::learnFromKnowledgeFolder(); } public function stuffThatChomskyShouldNotUnderstand() { return $this->listToDataSets([ 'Something', 'asdfg', ]); } public function greetings() { return $this->listToDataSets([ 'Ola', 'Que tal?', 'Boas', 'Bo dia', ]); } private function listToDataSets($list) { $data = []; foreach($list as $text) { $data [$text] = [ $text ]; } return $data; } }
12,460
https://github.com/ElektraInitiative/libelektra/blob/master/src/tools/pythongen/CMakeLists.txt
Github Open Source
Open Source
BSD-3-Clause
2,023
libelektra
ElektraInitiative
CMake
Code
115
676
remove_tool (pythongen "Deprecated and will be removed soon") return () find_package (Python2Interp 2.7 QUIET) if (PYTHON2INTERP_FOUND) set (SETUP_PY ${CMAKE_CURRENT_BINARY_DIR}/setup.py) configure_file (setup.py.in ${SETUP_PY}) install ( CODE "execute_process(COMMAND ${PYTHON2_EXECUTABLE} \"${CMAKE_CURRENT_SOURCE_DIR}/pythongen\" -p tests/lift.ini \"${CMAKE_CURRENT_SOURCE_DIR}/util/util.c\" -o \"${CMAKE_CURRENT_BINARY_DIR}/util.py\")") install ( CODE "execute_process(COMMAND ${PYTHON2_EXECUTABLE} \"${CMAKE_CURRENT_SOURCE_DIR}/pythongen\" -p tests/lift.ini \"${CMAKE_CURRENT_SOURCE_DIR}/util/util.cpp\" -o \"${CMAKE_CURRENT_BINARY_DIR}/cpp_util.py\")") install ( CODE "execute_process(COMMAND ${PYTHON2_EXECUTABLE} \"${SETUP_PY}\" --no-user-cfg --quiet install --prefix=${CMAKE_INSTALL_PREFIX} --root=\$ENV{DESTDIR} --install-scripts=${CMAKE_INSTALL_PREFIX}/${TARGET_TOOL_EXEC_FOLDER} ${INSTALL_OPTIONS} )") function (pythongen_util TEMPLATE OUTPUT) # file(GLOB SUPPORT RELATIVE support "*.py") # call the gen tool set (OUTPUT "${CMAKE_BINARY_DIR}/src/tools/pythongen/${OUTPUT}") message (STATUS "doing command ${TEMPLATE} ${OUTPUT}") endfunction (pythongen_util) generate_man_page (kdb-gen FILENAME ${CMAKE_CURRENT_SOURCE_DIR}/README.md) # add_subdirectory(util) # ~~~ # for future cmakification # add_subdirectory(support) # add_subdirectory(template) # add_subdirectory(tests) # ~~~ else () remove_tool (pythongen "Did not find python2 interpreter") endif ()
22,297
https://github.com/coderdao/Generalutil/blob/master/src/V1/Utils/StringUtil.php
Github Open Source
Open Source
Apache-2.0
null
Generalutil
coderdao
PHP
Code
130
607
<?php /** * Function: 字符串工具类方法 * @method randonString( int $length = 8 ) 随机字母字符串 * @method randonNum( int $length = 6 ) 随机数组字符串 */ namespace Abo\Generalutil\V1\Utils; class StringUtil { // 随机字母字符串 public function randonString( $length = 8, $preffix = '' ) { return substr( md5( $preffix.time() ), 0, $length ); } // 随机 数子字符串 public function randonNum( $length = 6 ) { $num2Return = ''; for ($i = 0; $i<$length; $i++) { $num2Return .= mt_rand(0,9); } return $num2Return; } /** * 下划线转驼峰 * 思路: * step1.原字符串转小写,原字符串中的分隔符用空格替换,在字符串开头加上分隔符 * step2.将字符串中每个单词的首字母转换为大写,再去空格,去字符串首部附加的分隔符. */ public function camelize($uncamelized_words,$separator='_') { $uncamelized_words = $separator. str_replace($separator, " ", strtolower($uncamelized_words)); return ltrim(str_replace(" ", "", ucwords($uncamelized_words)), $separator ); } /** * 驼峰命名转下划线命名 * 思路: * 小写和大写紧挨一起的地方,加上分隔符,然后全部转小写 */ public function uncamelize($camelCaps,$separator='_') { return strtolower(preg_replace('/([a-z])([A-Z])/', "$1" . $separator . "$2", $camelCaps)); } }
48,627
https://github.com/BlackHoleGames/Blackhole/blob/master/Assets/Prefabs/Boss/Boss_FullwReactorsFX.prefab
Github Open Source
Open Source
MIT
2,018
Blackhole
BlackHoleGames
Unity3D Asset
Code
20,000
64,311
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 1617136766997682} m_IsPrefabParent: 1 --- !u!1 &1001530324143830 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4495866641603294} - component: {fileID: 33449158144395028} - component: {fileID: 23044081977750750} m_Layer: 0 m_Name: Cannon_Eye m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1019269152843068 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4181413198173052} - component: {fileID: 33846516603896998} - component: {fileID: 23467767962182562} m_Layer: 0 m_Name: Cannon_Body m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1035875952137300 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4132447916177440} m_Layer: 0 m_Name: Boss_CannonLeftMid (1) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1040944385683528 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4569741717774514} - component: {fileID: 198581067061866976} - component: {fileID: 199225544319915008} m_Layer: 0 m_Name: PS_Shot m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1095947496852870 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4667263037516296} - component: {fileID: 33518294359339634} - component: {fileID: 23365146587760068} m_Layer: 0 m_Name: Cannon_Body m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1228043326421188 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4637794688025084} - component: {fileID: 33539006579991346} - component: {fileID: 23580053041873262} m_Layer: 0 m_Name: Cannon_Eye m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1247177472174952 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4787307506371868} m_Layer: 0 m_Name: Boss_Reactor4 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1253392056853122 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4896222595720010} - component: {fileID: 33643228452997636} - component: {fileID: 23740730563636790} m_Layer: 0 m_Name: Cannon_Eye m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1254523440751490 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4503241685661064} - component: {fileID: 33212375968443808} - component: {fileID: 23250561685937186} m_Layer: 0 m_Name: Cannon_Body m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1280581238087820 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4373890888295766} - component: {fileID: 198102393049780342} - component: {fileID: 199537145119382706} m_Layer: 0 m_Name: PS_Molecules m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1285010571304716 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4965891910881370} - component: {fileID: 198985219578189440} - component: {fileID: 199932350519718324} m_Layer: 0 m_Name: PS_Line m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1287754605722440 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4505677099680318} m_Layer: 0 m_Name: Boss_Reactor3 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1336103303596196 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4764060731267398} m_Layer: 0 m_Name: Boss_CannonLeftBot m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1341651145001354 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4615463386574946} - component: {fileID: 33964496797533198} - component: {fileID: 23094564062415894} m_Layer: 0 m_Name: Boss_Body m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1345618676153620 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4462439838487846} - component: {fileID: 198665920509427452} - component: {fileID: 199320671723549238} m_Layer: 0 m_Name: PS_Shot m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1378280348722528 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4689693078569522} - component: {fileID: 198138321607709038} - component: {fileID: 199524782528597838} m_Layer: 0 m_Name: PS_EnergyBall m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1390048261866424 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4141903528563244} - component: {fileID: 198676352732678970} - component: {fileID: 199280506914715690} m_Layer: 0 m_Name: PS_EnergyBall m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1396476109788172 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4359020514113544} - component: {fileID: 33656676915017038} - component: {fileID: 23078942396951974} m_Layer: 0 m_Name: Boss_Reactor m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1401360483200152 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4514198752340842} - component: {fileID: 33302130298735672} - component: {fileID: 23566336564353612} m_Layer: 0 m_Name: Boss_Head m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1406275583115256 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4793901045190056} - component: {fileID: 33357289002649010} - component: {fileID: 23570944877503270} m_Layer: 0 m_Name: Cannon_Eye m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1423886901069826 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4966133178529348} - component: {fileID: 198074926989181818} - component: {fileID: 199580894948980474} m_Layer: 0 m_Name: PS_Fire2 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1433408664097496 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4217065249435314} - component: {fileID: 33575985951321826} - component: {fileID: 23964219115888046} m_Layer: 0 m_Name: Boss_Reactor m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1434454674009322 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4910460200164448} - component: {fileID: 198325273137797824} - component: {fileID: 199077471570275010} m_Layer: 0 m_Name: PS_Line m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1452657719227408 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4896694893396570} - component: {fileID: 198144458193756712} - component: {fileID: 199913999481656482} m_Layer: 0 m_Name: PS_Molecules m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1452760723858686 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4089043382622508} - component: {fileID: 33007973492095580} - component: {fileID: 23052931512451016} m_Layer: 0 m_Name: Boss_Reactor_D m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 0 --- !u!1 &1472306937604898 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4694605009329880} m_Layer: 0 m_Name: Boss_CannonLeftBot (1) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1480221407245142 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4557319218890468} - component: {fileID: 198447179240990954} - component: {fileID: 199136600245051008} m_Layer: 0 m_Name: PS_EnergyBall m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1484076043409340 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4983725492786620} - component: {fileID: 198077848219848006} - component: {fileID: 199222387221836120} m_Layer: 0 m_Name: PS_Molecules m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1506971496686666 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4687124672539890} - component: {fileID: 198701069612999802} - component: {fileID: 199833029178678000} m_Layer: 0 m_Name: PS_Line m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1515437670409084 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4734357790945412} - component: {fileID: 108404403836978856} m_Layer: 0 m_Name: Red Point Light m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1537734697076906 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4071313445525176} - component: {fileID: 33442223647797674} - component: {fileID: 23377757125732818} m_Layer: 0 m_Name: Boss_Reactor_D m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 0 --- !u!1 &1547407886644318 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4265202166791296} - component: {fileID: 33660837200746796} - component: {fileID: 23717762351815034} m_Layer: 0 m_Name: Cannon_Body m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1552151261502786 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4678499530738176} - component: {fileID: 33957104270739558} - component: {fileID: 23829335338697126} m_Layer: 0 m_Name: Cannon_Eye m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1557368675042818 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4109923625806882} - component: {fileID: 198905966835096732} - component: {fileID: 199260464878612988} - component: {fileID: 65619675563489816} - component: {fileID: 114589245054853950} - component: {fileID: 114582447099970112} m_Layer: 0 m_Name: PS_BossReactor4 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1559829384773916 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4825358737262408} - component: {fileID: 198735390625794860} - component: {fileID: 199517217321451378} - component: {fileID: 65063306142072044} - component: {fileID: 114168209630319646} - component: {fileID: 114687726930576336} m_Layer: 0 m_Name: PS_BossReactor3 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1596866689914812 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4172429595199740} - component: {fileID: 198579472316325270} - component: {fileID: 199152517010945452} m_Layer: 0 m_Name: PS_Fire m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1604362472799562 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4506912464901116} - component: {fileID: 198123279762006232} - component: {fileID: 199507059359674144} m_Layer: 0 m_Name: PS_Shot m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1609732503843690 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4519651466922074} - component: {fileID: 33898803779861078} - component: {fileID: 23235771534999020} m_Layer: 0 m_Name: Boss_Eye m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1613310266612412 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4595801261708046} - component: {fileID: 108493125200450896} m_Layer: 0 m_Name: Red Point Light m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1617136766997682 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4786842935621084} m_Layer: 0 m_Name: Boss_FullwReactorsFX m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1617337735897062 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4365372728359202} - component: {fileID: 33063771139776358} - component: {fileID: 23602487305903940} m_Layer: 0 m_Name: Boss_Reactor m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1623789699095762 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4377845402912456} - component: {fileID: 198588290004127458} - component: {fileID: 199234182844691274} m_Layer: 0 m_Name: PS_EnergyBall m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1626410475355462 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4372761298913684} - component: {fileID: 198840235484448572} - component: {fileID: 199391378232119238} m_Layer: 0 m_Name: PS_Fire2 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1633218004074994 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4854592882574454} - component: {fileID: 108056860477803156} m_Layer: 0 m_Name: Red Point Light m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1639765685971960 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4778471946326790} - component: {fileID: 198459405354097244} - component: {fileID: 199895842937526396} m_Layer: 0 m_Name: PS_Fire m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1646835721743582 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4745020392388680} - component: {fileID: 33579275691648720} - component: {fileID: 23370868431969930} m_Layer: 0 m_Name: Cannon_Eye m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1660617395181300 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4855923704405414} - component: {fileID: 198194756221055052} - component: {fileID: 199020289917189852} m_Layer: 0 m_Name: PS_Fire m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1664419946366386 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4614024507348640} - component: {fileID: 108458622737509380} m_Layer: 0 m_Name: Red Point Light m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1677999919092064 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4647002225662728} - component: {fileID: 33604771856267658} - component: {fileID: 23172254938289156} m_Layer: 0 m_Name: Boss_Reactor_D m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 0 --- !u!1 &1701066980270632 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4034418923220796} m_Layer: 0 m_Name: Boss_CannonLeftTop (1) m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1713421754391596 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4374669714398870} - component: {fileID: 198711054250201024} - component: {fileID: 199840690092611918} m_Layer: 0 m_Name: PS_Fire2 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1757738053888986 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4540352335685714} - component: {fileID: 198722357047843382} - component: {fileID: 199072291518944832} m_Layer: 0 m_Name: PS_Molecules m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1758798052693496 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4435482804546640} - component: {fileID: 33636529276817330} - component: {fileID: 23118398014392266} m_Layer: 0 m_Name: Boss_EyeCuirass m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1767979301884170 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4887097974966692} - component: {fileID: 33503603480892708} - component: {fileID: 23215487551611194} m_Layer: 0 m_Name: Cannon_Body m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1783761178183746 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4043012712908460} - component: {fileID: 198826014141154290} - component: {fileID: 199707030197689370} - component: {fileID: 65158843522193670} - component: {fileID: 114072892192797022} - component: {fileID: 114136232659313780} m_Layer: 0 m_Name: PS_BossReactor1 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1793274720715184 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4392742541594510} m_Layer: 0 m_Name: Boss_Reactor2 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1796125938927164 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4356091063804326} - component: {fileID: 33174743955733556} - component: {fileID: 23973742398177804} m_Layer: 0 m_Name: Boss_Reactor_D m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 0 --- !u!1 &1801389097206842 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4813871173909268} - component: {fileID: 198475691402255220} - component: {fileID: 199722180732454336} m_Layer: 0 m_Name: PS_Fire m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1816465663474136 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4543477189699204} m_Layer: 0 m_Name: Boss_CannonLeftMid m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1884524002978736 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4940270071395762} - component: {fileID: 198104303889426282} - component: {fileID: 199572252648842106} m_Layer: 0 m_Name: PS_Shot m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1911001433099704 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4634000251481834} - component: {fileID: 198156326672714072} - component: {fileID: 199437266454961930} m_Layer: 0 m_Name: PS_Fire2 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1954627838778072 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4264371650269660} - component: {fileID: 198402175245567552} - component: {fileID: 199252445231541356} m_Layer: 0 m_Name: PS_Line m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1958734465147036 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4423500306187056} - component: {fileID: 33709170721634830} - component: {fileID: 23041178942403972} m_Layer: 0 m_Name: Cannon_Body m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1974232132492902 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4273334538543530} m_Layer: 0 m_Name: Boss_Reactor1 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1987415036131400 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4111946516958636} - component: {fileID: 33661646725581416} - component: {fileID: 23363599955891768} m_Layer: 0 m_Name: Boss_Reactor m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1987702714922288 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4167848308111080} m_Layer: 0 m_Name: Boss_CannonLeftTop m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1991262181624664 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 4827585776253182} - component: {fileID: 198631976072690626} - component: {fileID: 199880164401717280} - component: {fileID: 65466877077246280} - component: {fileID: 114426062205731642} - component: {fileID: 114494946957274870} m_Layer: 0 m_Name: PS_BossReactor2 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &4034418923220796 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1701066980270632} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -566.99976, y: 1954.9995, z: 455.9996} m_LocalScale: {x: 31.951029, y: 31.951021, z: 31.951021} m_Children: - {fileID: 4503241685661064} - {fileID: 4896222595720010} m_Father: {fileID: 4514198752340842} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4043012712908460 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1783761178183746} m_LocalRotation: {x: -0, y: -0, z: -1, w: 0} m_LocalPosition: {x: 511.2167, y: -724.6497, z: -198.7356} m_LocalScale: {x: 63.902103, y: 63.90212, z: 63.90212} m_Children: - {fileID: 4983725492786620} - {fileID: 4377845402912456} - {fileID: 4687124672539890} - {fileID: 4614024507348640} - {fileID: 4569741717774514} - {fileID: 4172429595199740} - {fileID: 4966133178529348} m_Father: {fileID: 4615463386574946} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4071313445525176 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1537734697076906} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4505677099680318} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4089043382622508 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1452760723858686} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4273334538543530} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4109923625806882 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1557368675042818} m_LocalRotation: {x: -0, y: -0, z: -1, w: 0} m_LocalPosition: {x: -511.2167, y: -724.6497, z: -198.7356} m_LocalScale: {x: 63.90212, y: 63.90215, z: 63.90215} m_Children: - {fileID: 4373890888295766} - {fileID: 4557319218890468} - {fileID: 4965891910881370} - {fileID: 4595801261708046} - {fileID: 4940270071395762} - {fileID: 4778471946326790} - {fileID: 4372761298913684} m_Father: {fileID: 4615463386574946} m_RootOrder: 7 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4111946516958636 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1987415036131400} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4787307506371868} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4132447916177440 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1035875952137300} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -639.02057, y: 1993.4254, z: 66.13883} m_LocalScale: {x: 31.951029, y: 31.951021, z: 31.951021} m_Children: - {fileID: 4423500306187056} - {fileID: 4637794688025084} m_Father: {fileID: 4514198752340842} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4141903528563244 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1390048261866424} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0.05, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4827585776253182} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4167848308111080 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1987702714922288} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 566.99976, y: 1954.999, z: 455.9996} m_LocalScale: {x: 31.951029, y: 31.951021, z: 31.951021} m_Children: - {fileID: 4181413198173052} - {fileID: 4495866641603294} m_Father: {fileID: 4514198752340842} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4172429595199740 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1596866689914812} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 3, y: 3, z: 3} m_Children: [] m_Father: {fileID: 4043012712908460} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4181413198173052 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1019269152843068} m_LocalRotation: {x: 0.20005263, y: -0.36363962, z: 0.08027193, w: 0.906257} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4167848308111080} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 24.896002, y: -43.727, z: 0} --- !u!4 &4217065249435314 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1433408664097496} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4392742541594510} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4264371650269660 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1954627838778072} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4827585776253182} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4265202166791296 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1547407886644318} m_LocalRotation: {x: -0.20004952, y: -0.36364233, z: -0.08027139, w: 0.90625656} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4764060731267398} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -24.896, y: -43.727, z: 0} --- !u!4 &4273334538543530 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1974232132492902} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 511.2167, y: -632.3112, z: -198.09668} m_LocalScale: {x: 31.951044, y: 31.951052, z: 31.951052} m_Children: - {fileID: 4365372728359202} - {fileID: 4089043382622508} m_Father: {fileID: 4615463386574946} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4356091063804326 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1796125938927164} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4787307506371868} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4359020514113544 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1396476109788172} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4505677099680318} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4365372728359202 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1617337735897062} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4273334538543530} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4372761298913684 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1626410475355462} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4109923625806882} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4373890888295766 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1280581238087820} m_LocalRotation: {x: -0, y: 0.7071068, z: 0.7071068, w: 0} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4109923625806882} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!4 &4374669714398870 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1713421754391596} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4825358737262408} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4377845402912456 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1623789699095762} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0.05, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4043012712908460} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4392742541594510 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1793274720715184} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 172.53564, y: -632.3112, z: -198.09668} m_LocalScale: {x: 31.951044, y: 31.951052, z: 31.951052} m_Children: - {fileID: 4217065249435314} - {fileID: 4647002225662728} m_Father: {fileID: 4615463386574946} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4423500306187056 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1958734465147036} m_LocalRotation: {x: 0, y: 0.41060737, z: 0, w: 0.91181225} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4132447916177440} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 48.486, z: 0} --- !u!4 &4435482804546640 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1758798052693496} m_LocalRotation: {x: 0.7071069, y: -0, z: -0, w: 0.70710677} m_LocalPosition: {x: 0, y: 2204.794, z: 404.0112} m_LocalScale: {x: 0.8115577, y: 0.8115567, z: 0.81155837} m_Children: [] m_Father: {fileID: 4514198752340842} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4462439838487846 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1345618676153620} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 3, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4827585776253182} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4495866641603294 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1001530324143830} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4167848308111080} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4503241685661064 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1254523440751490} m_LocalRotation: {x: 0.20004952, y: 0.3636423, z: -0.08027139, w: 0.90625656} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4034418923220796} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 24.896002, y: 43.727, z: 0} --- !u!4 &4505677099680318 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1287754605722440} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -172.53564, y: -632.3112, z: -198.09668} m_LocalScale: {x: 31.951044, y: 31.951052, z: 31.951052} m_Children: - {fileID: 4359020514113544} - {fileID: 4071313445525176} m_Father: {fileID: 4615463386574946} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4506912464901116 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1604362472799562} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 3, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4825358737262408} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4514198752340842 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1401360483200152} m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0.031297896, y: 0.03129791, z: 0.03129791} m_Children: - {fileID: 4519651466922074} - {fileID: 4435482804546640} - {fileID: 4543477189699204} - {fileID: 4764060731267398} - {fileID: 4167848308111080} - {fileID: 4034418923220796} - {fileID: 4132447916177440} - {fileID: 4694605009329880} m_Father: {fileID: 4786842935621084} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4519651466922074 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1609732503843690} m_LocalRotation: {x: 0.7071069, y: -0, z: -0, w: 0.70710677} m_LocalPosition: {x: 0, y: 2204.794, z: 404.0112} m_LocalScale: {x: 0.8115577, y: 0.8115567, z: 0.81155837} m_Children: [] m_Father: {fileID: 4514198752340842} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4540352335685714 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1757738053888986} m_LocalRotation: {x: -0, y: 0.7071068, z: 0.7071068, w: 0} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4827585776253182} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!4 &4543477189699204 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1816465663474136} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 639.02057, y: 1993.4249, z: 66.13883} m_LocalScale: {x: 31.951029, y: 31.951021, z: 31.951021} m_Children: - {fileID: 4667263037516296} - {fileID: 4793901045190056} m_Father: {fileID: 4514198752340842} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4557319218890468 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1480221407245142} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0.05, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4109923625806882} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4569741717774514 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1040944385683528} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 3, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4043012712908460} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4595801261708046 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1613310266612412} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0.50000006, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4109923625806882} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4614024507348640 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1664419946366386} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0.50000006, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4043012712908460} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4615463386574946 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1341651145001354} m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.03129788, y: 0.03129788, z: 0.03129788} m_Children: - {fileID: 4273334538543530} - {fileID: 4043012712908460} - {fileID: 4392742541594510} - {fileID: 4827585776253182} - {fileID: 4505677099680318} - {fileID: 4825358737262408} - {fileID: 4787307506371868} - {fileID: 4109923625806882} m_Father: {fileID: 4786842935621084} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4634000251481834 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1911001433099704} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4827585776253182} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4637794688025084 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1228043326421188} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4132447916177440} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4647002225662728 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1677999919092064} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4392742541594510} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4667263037516296 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1095947496852870} m_LocalRotation: {x: 0.000000074276755, y: -0.41060513, z: 0.000000033448057, w: 0.91181326} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4543477189699204} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: -48.486004, z: 0} --- !u!4 &4678499530738176 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1552151261502786} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4764060731267398} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4687124672539890 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1506971496686666} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4043012712908460} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4689693078569522 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1378280348722528} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0.05, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4825358737262408} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4694605009329880 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1472306937604898} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -566.99976, y: 1954.9996, z: -329.9998} m_LocalScale: {x: 31.951029, y: 31.951021, z: 31.951021} m_Children: - {fileID: 4887097974966692} - {fileID: 4745020392388680} m_Father: {fileID: 4514198752340842} m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4734357790945412 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1515437670409084} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0.50000006, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4827585776253182} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4745020392388680 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1646835721743582} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4694605009329880} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4764060731267398 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1336103303596196} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 566.99976, y: 1954.9991, z: -329.9998} m_LocalScale: {x: 31.951029, y: 31.951021, z: 31.951021} m_Children: - {fileID: 4265202166791296} - {fileID: 4678499530738176} m_Father: {fileID: 4514198752340842} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4778471946326790 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1639765685971960} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 3, y: 3, z: 3} m_Children: [] m_Father: {fileID: 4109923625806882} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4786842935621084 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1617136766997682} m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0.5, y: 0.5, z: 0.5} m_Children: - {fileID: 4615463386574946} - {fileID: 4514198752340842} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!4 &4787307506371868 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1247177472174952} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -511.2167, y: -632.3112, z: -198.09668} m_LocalScale: {x: 31.951044, y: 31.951052, z: 31.951052} m_Children: - {fileID: 4111946516958636} - {fileID: 4356091063804326} m_Father: {fileID: 4615463386574946} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4793901045190056 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1406275583115256} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4543477189699204} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4813871173909268 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1801389097206842} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 3, y: 3, z: 3} m_Children: [] m_Father: {fileID: 4825358737262408} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4825358737262408 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1559829384773916} m_LocalRotation: {x: -0, y: -0, z: -1, w: 0} m_LocalPosition: {x: -172.85515, y: -724.6497, z: -198.7356} m_LocalScale: {x: 63.90212, y: 63.90215, z: 63.90215} m_Children: - {fileID: 4896694893396570} - {fileID: 4689693078569522} - {fileID: 4910460200164448} - {fileID: 4854592882574454} - {fileID: 4506912464901116} - {fileID: 4813871173909268} - {fileID: 4374669714398870} m_Father: {fileID: 4615463386574946} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4827585776253182 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1991262181624664} m_LocalRotation: {x: -0, y: -0, z: -1, w: 0} m_LocalPosition: {x: 172.85515, y: -724.6497, z: -198.7356} m_LocalScale: {x: 63.90212, y: 63.90215, z: 63.90215} m_Children: - {fileID: 4540352335685714} - {fileID: 4141903528563244} - {fileID: 4264371650269660} - {fileID: 4734357790945412} - {fileID: 4462439838487846} - {fileID: 4855923704405414} - {fileID: 4634000251481834} m_Father: {fileID: 4615463386574946} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4854592882574454 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1633218004074994} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0.50000006, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4825358737262408} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4855923704405414 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1660617395181300} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 3, y: 3, z: 3} m_Children: [] m_Father: {fileID: 4827585776253182} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4887097974966692 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1767979301884170} m_LocalRotation: {x: -0.20004952, y: 0.36364233, z: 0.08027139, w: 0.90625656} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4694605009329880} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -24.896, y: 43.727, z: 0} --- !u!4 &4896222595720010 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1253392056853122} m_LocalRotation: {x: 0.00000008146034, y: 0, z: -0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 0.0254, y: 0.0254, z: 0.0254} m_Children: [] m_Father: {fileID: 4034418923220796} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4896694893396570 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1452657719227408} m_LocalRotation: {x: -0, y: 0.7071068, z: 0.7071068, w: 0} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4825358737262408} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!4 &4910460200164448 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1434454674009322} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4825358737262408} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4940270071395762 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1884524002978736} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 3, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4109923625806882} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4965891910881370 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1285010571304716} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4109923625806882} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4966133178529348 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1423886901069826} m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4043012712908460} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!4 &4983725492786620 Transform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1484076043409340} m_LocalRotation: {x: -0, y: 0.7071068, z: 0.7071068, w: 0} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 4043012712908460} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!23 &23041178942403972 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1958734465147036} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23044081977750750 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1001530324143830} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23052931512451016 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1452760723858686} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23078942396951974 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1396476109788172} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23094564062415894 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1341651145001354} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23118398014392266 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1758798052693496} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23172254938289156 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1677999919092064} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23215487551611194 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1767979301884170} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23235771534999020 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1609732503843690} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23250561685937186 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1254523440751490} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23363599955891768 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1987415036131400} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23365146587760068 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1095947496852870} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23370868431969930 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1646835721743582} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23377757125732818 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1537734697076906} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23467767962182562 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1019269152843068} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23566336564353612 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1401360483200152} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23570944877503270 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1406275583115256} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23580053041873262 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1228043326421188} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23602487305903940 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1617337735897062} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23717762351815034 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1547407886644318} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23740730563636790 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1253392056853122} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23829335338697126 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1552151261502786} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23964219115888046 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1433408664097496} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!23 &23973742398177804 MeshRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1796125938927164} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 m_DynamicOccludee: 1 m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RenderingLayerMask: 4294967295 m_Materials: - {fileID: 2100000, guid: 55e863f45eb655f46a87d2ad6d9aaa06, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 m_StaticBatchRoot: {fileID: 0} m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 --- !u!33 &33007973492095580 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1452760723858686} m_Mesh: {fileID: 4300002, guid: bc7d4f8a605e0d4488e553135932da66, type: 3} --- !u!33 &33063771139776358 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1617337735897062} m_Mesh: {fileID: 4300000, guid: bc7d4f8a605e0d4488e553135932da66, type: 3} --- !u!33 &33174743955733556 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1796125938927164} m_Mesh: {fileID: 4300002, guid: bc7d4f8a605e0d4488e553135932da66, type: 3} --- !u!33 &33212375968443808 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1254523440751490} m_Mesh: {fileID: 4300000, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33302130298735672 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1401360483200152} m_Mesh: {fileID: 4300000, guid: f305fe667a6d432428ebd98471372363, type: 3} --- !u!33 &33357289002649010 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1406275583115256} m_Mesh: {fileID: 4300002, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33442223647797674 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1537734697076906} m_Mesh: {fileID: 4300002, guid: bc7d4f8a605e0d4488e553135932da66, type: 3} --- !u!33 &33449158144395028 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1001530324143830} m_Mesh: {fileID: 4300002, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33503603480892708 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1767979301884170} m_Mesh: {fileID: 4300000, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33518294359339634 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1095947496852870} m_Mesh: {fileID: 4300000, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33539006579991346 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1228043326421188} m_Mesh: {fileID: 4300002, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33575985951321826 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1433408664097496} m_Mesh: {fileID: 4300000, guid: bc7d4f8a605e0d4488e553135932da66, type: 3} --- !u!33 &33579275691648720 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1646835721743582} m_Mesh: {fileID: 4300002, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33604771856267658 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1677999919092064} m_Mesh: {fileID: 4300002, guid: bc7d4f8a605e0d4488e553135932da66, type: 3} --- !u!33 &33636529276817330 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1758798052693496} m_Mesh: {fileID: 4300006, guid: bffe78e9f37f96549a3505b9539b7468, type: 3} --- !u!33 &33643228452997636 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1253392056853122} m_Mesh: {fileID: 4300002, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33656676915017038 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1396476109788172} m_Mesh: {fileID: 4300000, guid: bc7d4f8a605e0d4488e553135932da66, type: 3} --- !u!33 &33660837200746796 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1547407886644318} m_Mesh: {fileID: 4300000, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33661646725581416 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1987415036131400} m_Mesh: {fileID: 4300000, guid: bc7d4f8a605e0d4488e553135932da66, type: 3} --- !u!33 &33709170721634830 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1958734465147036} m_Mesh: {fileID: 4300000, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33846516603896998 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1019269152843068} m_Mesh: {fileID: 4300000, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33898803779861078 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1609732503843690} m_Mesh: {fileID: 4300004, guid: bffe78e9f37f96549a3505b9539b7468, type: 3} --- !u!33 &33957104270739558 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1552151261502786} m_Mesh: {fileID: 4300002, guid: abadb0b8577c48b42b4e8dad8c09a5cb, type: 3} --- !u!33 &33964496797533198 MeshFilter: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1341651145001354} m_Mesh: {fileID: 4300000, guid: bffe78e9f37f96549a3505b9539b7468, type: 3} --- !u!65 &65063306142072044 BoxCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1559829384773916} m_Material: {fileID: 0} m_IsTrigger: 1 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 1.6, y: 28.931908, z: 1.6} m_Center: {x: 0, y: 13.895857, z: 0.00999999} --- !u!65 &65158843522193670 BoxCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1783761178183746} m_Material: {fileID: 0} m_IsTrigger: 1 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 1.6, y: 28.931908, z: 1.6} m_Center: {x: 0, y: 13.895857, z: 0.00999999} --- !u!65 &65466877077246280 BoxCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1991262181624664} m_Material: {fileID: 0} m_IsTrigger: 1 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 1.6, y: 28.931908, z: 1.6} m_Center: {x: 0, y: 13.895857, z: 0.00999999} --- !u!65 &65619675563489816 BoxCollider: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1557368675042818} m_Material: {fileID: 0} m_IsTrigger: 1 m_Enabled: 1 serializedVersion: 2 m_Size: {x: 1.6, y: 28.931908, z: 1.6} m_Center: {x: 0, y: 13.895857, z: 0.00999999} --- !u!108 &108056860477803156 Light: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1633218004074994} m_Enabled: 1 serializedVersion: 8 m_Type: 2 m_Color: {r: 1, g: 0, b: 0, a: 1} m_Intensity: 10 m_Range: 2 m_SpotAngle: 30 m_CookieSize: 10 m_Shadows: m_Type: 0 m_Resolution: -1 m_CustomResolution: -1 m_Strength: 1 m_Bias: 0.05 m_NormalBias: 0.4 m_NearPlane: 0.2 m_Cookie: {fileID: 0} m_DrawHalo: 0 m_Flare: {fileID: 0} m_RenderMode: 0 m_CullingMask: serializedVersion: 2 m_Bits: 4294967295 m_Lightmapping: 4 m_AreaSize: {x: 1, y: 1} m_BounceIntensity: 1 m_ColorTemperature: 6570 m_UseColorTemperature: 0 m_ShadowRadius: 0 m_ShadowAngle: 0 --- !u!108 &108404403836978856 Light: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1515437670409084} m_Enabled: 1 serializedVersion: 8 m_Type: 2 m_Color: {r: 1, g: 0, b: 0, a: 1} m_Intensity: 10 m_Range: 2 m_SpotAngle: 30 m_CookieSize: 10 m_Shadows: m_Type: 0 m_Resolution: -1 m_CustomResolution: -1 m_Strength: 1 m_Bias: 0.05 m_NormalBias: 0.4 m_NearPlane: 0.2 m_Cookie: {fileID: 0} m_DrawHalo: 0 m_Flare: {fileID: 0} m_RenderMode: 0 m_CullingMask: serializedVersion: 2 m_Bits: 4294967295 m_Lightmapping: 4 m_AreaSize: {x: 1, y: 1} m_BounceIntensity: 1 m_ColorTemperature: 6570 m_UseColorTemperature: 0 m_ShadowRadius: 0 m_ShadowAngle: 0 --- !u!108 &108458622737509380 Light: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1664419946366386} m_Enabled: 1 serializedVersion: 8 m_Type: 2 m_Color: {r: 1, g: 0, b: 0, a: 1} m_Intensity: 10 m_Range: 2 m_SpotAngle: 30 m_CookieSize: 10 m_Shadows: m_Type: 0 m_Resolution: -1 m_CustomResolution: -1 m_Strength: 1 m_Bias: 0.05 m_NormalBias: 0.4 m_NearPlane: 0.2 m_Cookie: {fileID: 0} m_DrawHalo: 0 m_Flare: {fileID: 0} m_RenderMode: 0 m_CullingMask: serializedVersion: 2 m_Bits: 4294967295 m_Lightmapping: 4 m_AreaSize: {x: 1, y: 1} m_BounceIntensity: 1 m_ColorTemperature: 6570 m_UseColorTemperature: 0 m_ShadowRadius: 0 m_ShadowAngle: 0 --- !u!108 &108493125200450896 Light: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1613310266612412} m_Enabled: 1 serializedVersion: 8 m_Type: 2 m_Color: {r: 1, g: 0, b: 0, a: 1} m_Intensity: 10 m_Range: 2 m_SpotAngle: 30 m_CookieSize: 10 m_Shadows: m_Type: 0 m_Resolution: -1 m_CustomResolution: -1 m_Strength: 1 m_Bias: 0.05 m_NormalBias: 0.4 m_NearPlane: 0.2 m_Cookie: {fileID: 0} m_DrawHalo: 0 m_Flare: {fileID: 0} m_RenderMode: 0 m_CullingMask: serializedVersion: 2 m_Bits: 4294967295 m_Lightmapping: 4 m_AreaSize: {x: 1, y: 1} m_BounceIntensity: 1 m_ColorTemperature: 6570 m_UseColorTemperature: 0 m_ShadowRadius: 0 m_ShadowAngle: 0 --- !u!114 &114072892192797022 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1783761178183746} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 726f9c6d56cea5049ac8fe575105cf41, type: 3} m_Name: m_EditorClassIdentifier: timeToLive: 4.5 target: {x: 0, y: 0, z: 0} --- !u!114 &114136232659313780 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1783761178183746} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: e52ca26ba0da75945b750ba33cd229c7, type: 3} m_Name: m_EditorClassIdentifier: scaleOfTime: 1 --- !u!114 &114168209630319646 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1559829384773916} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 726f9c6d56cea5049ac8fe575105cf41, type: 3} m_Name: m_EditorClassIdentifier: timeToLive: 4.5 target: {x: 0, y: 0, z: 0} --- !u!114 &114426062205731642 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1991262181624664} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 726f9c6d56cea5049ac8fe575105cf41, type: 3} m_Name: m_EditorClassIdentifier: timeToLive: 4.5 target: {x: 0, y: 0, z: 0} --- !u!114 &114494946957274870 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1991262181624664} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: e52ca26ba0da75945b750ba33cd229c7, type: 3} m_Name: m_EditorClassIdentifier: scaleOfTime: 1 --- !u!114 &114582447099970112 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1557368675042818} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: e52ca26ba0da75945b750ba33cd229c7, type: 3} m_Name: m_EditorClassIdentifier: scaleOfTime: 1 --- !u!114 &114589245054853950 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1557368675042818} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 726f9c6d56cea5049ac8fe575105cf41, type: 3} m_Name: m_EditorClassIdentifier: timeToLive: 4.5 target: {x: 0, y: 0, z: 0} --- !u!114 &114687726930576336 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1559829384773916} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: e52ca26ba0da75945b750ba33cd229c7, type: 3} m_Name: m_EditorClassIdentifier: scaleOfTime: 1 --- !u!198 &198074926989181818 ParticleSystem: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1423886901069826} serializedVersion: 5 lengthInSec: 5 simulationSpeed: 1 stopAction: 0 looping: 0 prewarm: 0 playOnAwake: 1 useUnscaledTime: 0 autoRandomSeed: 1 useRigidbodyForVelocity: 1 startDelay: serializedVersion: 2 minMaxState: 0 scalar: 1.95 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 moveWithTransform: 0 moveWithCustomTransform: {fileID: 0} scalingMode: 1 randomSeed: 0 InitialModule: serializedVersion: 3 enabled: 1 startLifetime: serializedVersion: 2 minMaxState: 0 scalar: 0.2 minScalar: 5 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startSpeed: serializedVersion: 2 minMaxState: 3 scalar: 30 minScalar: 20 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startColor: serializedVersion: 2 minMaxState: 0 minColor: {r: 1, g: 1, b: 1, a: 1} maxColor: {r: 1, g: 1, b: 1, a: 1} maxGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: serializedVersion: 2 minMaxState: 0 scalar: 3 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startSizeY: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startSizeZ: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startRotationX: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startRotationY: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startRotation: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 maxNumParticles: 1000 size3D: 0 rotation3D: 0 gravityModifier: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 ShapeModule: serializedVersion: 5 enabled: 1 type: 4 angle: 50 length: 5 boxThickness: {x: 0, y: 0, z: 0} radiusThickness: 1 donutRadius: 0.2 m_Position: {x: 0, y: 0, z: 0} m_Rotation: {x: 0, y: 0, z: 0} m_Scale: {x: 1, y: 1, z: 1} placementMode: 0 m_MeshMaterialIndex: 0 m_MeshNormalOffset: 0 m_Mesh: {fileID: 0} m_MeshRenderer: {fileID: 0} m_SkinnedMeshRenderer: {fileID: 0} m_UseMeshMaterialIndex: 0 m_UseMeshColors: 1 alignToDirection: 0 m_Texture: {fileID: 0} m_TextureClipChannel: 3 m_TextureClipThreshold: 0 m_TextureUVChannel: 0 m_TextureColorAffectsParticles: 1 m_TextureAlphaAffectsParticles: 1 m_TextureBilinearFiltering: 0 randomDirectionAmount: 0 sphericalDirectionAmount: 0 randomPositionAmount: 0 radius: value: 0.01 mode: 0 spread: 0 speed: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 arc: value: 360 mode: 0 spread: 0 speed: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 EmissionModule: enabled: 1 serializedVersion: 4 rateOverTime: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 10 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 rateOverDistance: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 m_BurstCount: 1 m_Bursts: - serializedVersion: 2 time: 0 countCurve: serializedVersion: 2 minMaxState: 0 scalar: 25 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 cycleCount: 1 repeatInterval: 0.01 SizeModule: enabled: 1 curve: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: -2 outSlope: -2 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 y: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 z: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 separateAxes: 0 RotationModule: enabled: 0 x: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 y: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 curve: serializedVersion: 2 minMaxState: 0 scalar: 0.7853982 minScalar: 0.7853982 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 separateAxes: 0 ColorModule: enabled: 1 gradient: serializedVersion: 2 minMaxState: 1 minColor: {r: 1, g: 1, b: 1, a: 1} maxColor: {r: 1, g: 1, b: 1, a: 1} maxGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 0} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: enabled: 0 mode: 0 frameOverTime: serializedVersion: 2 minMaxState: 1 scalar: 0.9999 minScalar: 0.9999 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startFrame: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 tilesX: 1 tilesY: 1 animationType: 0 rowIndex: 0 cycles: 1 uvChannelMask: -1 flipU: 0 flipV: 0 randomRow: 1 sprites: - sprite: {fileID: 0} VelocityModule: enabled: 0 x: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 y: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 z: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 orbitalX: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 orbitalY: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 orbitalZ: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 orbitalOffsetX: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 orbitalOffsetY: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 orbitalOffsetZ: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 radial: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 speedModifier: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 inWorldSpace: 0 InheritVelocityModule: enabled: 0 m_Mode: 0 m_Curve: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 ForceModule: enabled: 0 x: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 y: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 z: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 inWorldSpace: 0 randomizePerFrame: 0 ExternalForcesModule: enabled: 0 multiplier: 1 ClampVelocityModule: enabled: 0 x: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 y: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 z: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 magnitude: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 separateAxis: 0 inWorldSpace: 0 multiplyDragByParticleSize: 1 multiplyDragByParticleVelocity: 1 dampen: 0 drag: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 NoiseModule: enabled: 0 strength: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 strengthY: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 strengthZ: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 separateAxes: 0 frequency: 0.5 damping: 1 octaves: 1 octaveMultiplier: 0.5 octaveScale: 2 quality: 2 scrollSpeed: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 remap: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 remapY: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 remapZ: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 remapEnabled: 0 positionAmount: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 rotationAmount: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 sizeAmount: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 SizeBySpeedModule: enabled: 0 curve: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 y: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 z: serializedVersion: 2 minMaxState: 1 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 1 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 1 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 range: {x: 0, y: 1} separateAxes: 0 RotationBySpeedModule: enabled: 0 x: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 y: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 curve: serializedVersion: 2 minMaxState: 0 scalar: 0.7853982 minScalar: 0.7853982 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 separateAxes: 0 range: {x: 0, y: 1} ColorBySpeedModule: enabled: 0 gradient: serializedVersion: 2 minMaxState: 1 minColor: {r: 1, g: 1, b: 1, a: 1} maxColor: {r: 1, g: 1, b: 1, a: 1} maxGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} CollisionModule: enabled: 0 serializedVersion: 3 type: 0 collisionMode: 0 colliderForce: 0 multiplyColliderForceByParticleSize: 0 multiplyColliderForceByParticleSpeed: 0 multiplyColliderForceByCollisionAngle: 1 plane0: {fileID: 0} plane1: {fileID: 0} plane2: {fileID: 0} plane3: {fileID: 0} plane4: {fileID: 0} plane5: {fileID: 0} m_Dampen: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 m_Bounce: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 m_EnergyLossOnCollision: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minKillSpeed: 0 maxKillSpeed: 10000 radiusScale: 1 collidesWith: serializedVersion: 2 m_Bits: 4294967295 maxCollisionShapes: 256 quality: 0 voxelSize: 0.5 collisionMessages: 0 collidesWithDynamic: 1 interiorCollisions: 0 TriggerModule: enabled: 0 collisionShape0: {fileID: 0} collisionShape1: {fileID: 0} collisionShape2: {fileID: 0} collisionShape3: {fileID: 0} collisionShape4: {fileID: 0} collisionShape5: {fileID: 0} inside: 1 outside: 0 enter: 0 exit: 0 radiusScale: 1 SubModule: serializedVersion: 2 enabled: 0 subEmitters: - serializedVersion: 2 emitter: {fileID: 0} type: 0 properties: 0 LightsModule: enabled: 0 ratio: 0 light: {fileID: 0} randomDistribution: 1 color: 1 range: 1 intensity: 1 rangeCurve: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 intensityCurve: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 maxLights: 20 TrailModule: enabled: 0 mode: 0 ratio: 1 lifetime: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 ribbonCount: 1 worldSpace: 0 dieWithParticles: 1 sizeAffectsWidth: 1 sizeAffectsLifetime: 0 inheritParticleColor: 1 generateLightingData: 0 splitSubEmitterRibbons: 0 colorOverLifetime: serializedVersion: 2 minMaxState: 0 minColor: {r: 1, g: 1, b: 1, a: 1} maxColor: {r: 1, g: 1, b: 1, a: 1} maxGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: serializedVersion: 2 minMaxState: 0 scalar: 1 minScalar: 1 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 colorOverTrail: serializedVersion: 2 minMaxState: 0 minColor: {r: 1, g: 1, b: 1, a: 1} maxColor: {r: 1, g: 1, b: 1, a: 1} maxGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: enabled: 0 mode0: 0 vectorComponentCount0: 4 color0: serializedVersion: 2 minMaxState: 0 minColor: {r: 1, g: 1, b: 1, a: 1} maxColor: {r: 1, g: 1, b: 1, a: 1} maxGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color vector0_0: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel0_0: X vector0_1: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel0_1: Y vector0_2: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel0_2: Z vector0_3: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel0_3: W mode1: 0 vectorComponentCount1: 4 color1: serializedVersion: 2 minMaxState: 0 minColor: {r: 1, g: 1, b: 1, a: 1} maxColor: {r: 1, g: 1, b: 1, a: 1} maxGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: serializedVersion: 2 key0: {r: 1, g: 1, b: 1, a: 1} key1: {r: 1, g: 1, b: 1, a: 1} key2: {r: 0, g: 0, b: 0, a: 0} key3: {r: 0, g: 0, b: 0, a: 0} key4: {r: 0, g: 0, b: 0, a: 0} key5: {r: 0, g: 0, b: 0, a: 0} key6: {r: 0, g: 0, b: 0, a: 0} key7: {r: 0, g: 0, b: 0, a: 0} ctime0: 0 ctime1: 65535 ctime2: 0 ctime3: 0 ctime4: 0 ctime5: 0 ctime6: 0 ctime7: 0 atime0: 0 atime1: 65535 atime2: 0 atime3: 0 atime4: 0 atime5: 0 atime6: 0 atime7: 0 m_Mode: 0 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color vector1_0: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel1_0: X vector1_1: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel1_1: Y vector1_2: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel1_2: Z vector1_3: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel1_3: W --- !u!198 &198077848219848006 ParticleSystem: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1484076043409340} serializedVersion: 5 lengthInSec: 2 simulationSpeed: 1 stopAction: 0 looping: 0 prewarm: 0 playOnAwake: 1 useUnscaledTime: 0 autoRandomSeed: 1 useRigidbodyForVelocity: 1 startDelay: serializedVersion: 2 minMaxState: 0 scalar: 0 minScalar: 0 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 0 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 moveWithTransform: 0 moveWithCustomTransform: {fileID: 0} scalingMode: 1 randomSeed: 0 InitialModule: serializedVersion: 3 enabled: 1 startLifetime: serializedVersion: 2 minMaxState: 0 scalar: 0.23 minScalar: 5 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 startSpeed: serializedVersion: 2 minMaxState: 0 scalar: -2 minScalar: 5 maxCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 - serializedVersion: 3 time: 1 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 minCurve: serializedVersion: 2 m_Curve: - serializedVersion: 3 time: 0 value: 1 inSlope: 0 outSlope: 0 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 outWeight: 0.33333334
15,561
https://github.com/IndraSatya94/bolmongkab.dishub/blob/master/routes/web.php
Github Open Source
Open Source
MIT
2,021
bolmongkab.dishub
IndraSatya94
PHP
Code
118
1,244
<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\HomeController; use App\Http\Controllers\LoginController; use App\Http\Controllers\HalamanController; //crud //dishub use App\Http\Controllers\AgendaController; use App\Http\Controllers\TagController; use App\Http\Controllers\JabatanController; use App\Http\Controllers\TipController; use App\Http\Controllers\BeritaController; use App\Http\Controllers\GaleriController; use App\Http\Controllers\KontakController; use App\Http\Controllers\StatikController; use App\Http\Controllers\KategoriController; //akhir dishub use App\Http\Controllers\DownloadController; use App\Http\Controllers\PengumumanController; use App\Http\Controllers\SlideController; //akhir crud //Halaman statis //dishub route::get('/',[halamanController::class,'index']); route::get('/v-visimisi',[halamanController::class,'visimisi']); route::get('/v-agenda',[halamanController::class,'agenda']); route::get('/v-struktur',[halamanController::class,'struktur']); route::get('/v-berita',[halamanController::class,'berita']); route::get('/v-tugasfungsi',[halamanController::class,'tugasfungsi']); route::get('/v-galeri',[halamanController::class,'galeri']); route::get('/v-kontak',[halamanController::class,'kontak']); route::get('/v-prasarana',[halamanController::class,'prasarana']); route::get('/v-pengembangan',[halamanController::class,'pengembangan']); route::get('/v-lalulintas',[halamanController::class,'lalulintas']); route::get('/v-berita-detail/{beritas:id}',[halamanController::class,'beritadetail'])->name('v-berita-detail'); route::get('/berita-cari',[halamancontroller::class,'hascarberita']); //akhir dishub route::get('/pengumumantemp',[halamancontroller::class,'pengumuman']); route::get('/pengumuman-cari',[halamancontroller::class,'hascarpengumuman']); route::get('/downloadtemp',[halamanController::class,'download']); route::get('/agenda-detail/{agenda:id}',[halamanController::class,'agendadet'])->name('agenda-detail'); route::get('/pengdet/{pengumuman:id}',[halamanController::class,'pengdet'])->name('pengdet'); route::get('/getdownload/{download:id}',[halamanController::class,'getDownload'])->name('getdownload'); //Akhir halaman statis route::get('/login',[LoginController::class,'halamanlogin'])->name('login'); route::post('/postlogin',[LoginController::class,'postlogin'])->name('postlogin'); route::get('/logout',[LoginController::class,'logout'])->name('logout'); Route::group(['middleware' => ['auth','ceklevel:admin,operator']], function () { route::get('/home',[HomeController::class,'index'])->name('home'); // route::get('/halaman',[HalamanController::class,'index'])->name('halaman'); //crud Route::resource('download', DownloadController::class); Route::resource('pengumuman', PengumumanController::class); Route::resource('kategori', KategoriController::class); Route::resource('tags', TagController::class); Route::resource('slide', SlideController::class); Route::resource('agenda', AgendaController::class); Route::resource('tips', TipController::class); Route::resource('beritas', BeritaController::class); Route::resource('galeris', GaleriController::class); Route::resource('kontaks', KontakController::class); Route::resource('statiks', StatikController::class); route::get('/admin',[LoginController::class,'index'])->name('admin'); route::post('/deladmin/{users:id}',[LoginController::class,'destroy'])->name('deladmin'); route::post('/simpanregistrasi',[LoginController::class,'simpanregistrasi'])->name('simpanregistrasi'); // akhir crud }); Route::group(['middleware' => ['auth','ceklevel:admin']], function () { route::get('/registrasi',[LoginController::class,'registrasi'])->name('registrasi'); route::get('/edituser/{users:id}',[LoginController::class,'edit'])->name('edituser'); route::put('/postedit/{users:id}',[LoginController::class,'update'])->name('postedit'); });
25,018
https://github.com/ch3ck/asana-rs/blob/master/src/models/webhook_response.rs
Github Open Source
Open Source
Apache-2.0
2,021
asana-rs
ch3ck
Rust
Code
314
837
/* * Asana * * This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml). * * The version of the OpenAPI document: 1.0 * * Generated by: https://openapi-generator.tech */ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebhookResponse { /// Globally unique identifier of the resource, as a string. #[serde(rename = "gid", skip_serializing_if = "Option::is_none")] pub gid: Option<String>, /// The base type of this resource. #[serde(rename = "resource_type", skip_serializing_if = "Option::is_none")] pub resource_type: Option<String>, /// If true, the webhook will send events - if false it is considered inactive and will not generate events. #[serde(rename = "active", skip_serializing_if = "Option::is_none")] pub active: Option<bool>, #[serde(rename = "resource", skip_serializing_if = "Option::is_none")] pub resource: Option<Box<crate::models::AsanaNamedResource>>, /// The URL to receive the HTTP POST. #[serde(rename = "target", skip_serializing_if = "Option::is_none")] pub target: Option<String>, /// The time at which this resource was created. #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] pub created_at: Option<String>, /// The timestamp when the webhook last received an error when sending an event to the target. #[serde(rename = "last_failure_at", skip_serializing_if = "Option::is_none")] pub last_failure_at: Option<String>, /// The contents of the last error response sent to the webhook when attempting to deliver events to the target. #[serde(rename = "last_failure_content", skip_serializing_if = "Option::is_none")] pub last_failure_content: Option<String>, /// The timestamp when the webhook last successfully sent an event to the target. #[serde(rename = "last_success_at", skip_serializing_if = "Option::is_none")] pub last_success_at: Option<String>, /// Whitelist of filters to apply to events from this webhook. If a webhook event passes any of the filters the event will be delivered; otherwise no event will be sent to the receiving server. #[serde(rename = "filters", skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<crate::models::WebhookFilter>>, } impl WebhookResponse { pub fn new() -> WebhookResponse { WebhookResponse { gid: None, resource_type: None, active: None, resource: None, target: None, created_at: None, last_failure_at: None, last_failure_content: None, last_success_at: None, filters: None, } } }
46,325
https://github.com/rbxxaxa/RopeMaster/blob/master/RopeMaster/Core/Components/App/RunningPage/Draw/Preview/ObjectDraggablePreview.lua
Github Open Source
Open Source
MIT
2,019
RopeMaster
rbxxaxa
Lua
Code
800
2,849
local Plugin = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local Utility = require(Plugin.Core.Util.Utility) local Constants = require(Plugin.Core.Util.Constants) local ContextHelper = require(Plugin.Core.Util.ContextHelper) local withTheme = ContextHelper.withTheme local ObjectDraggablePreview = Roact.PureComponent:extend("ObjectDraggablePreview") local Components = Plugin.Core.Components local Foundation = Components.Foundation local ThemedTextButton = require(Foundation.ThemedTextButton) local StatefulButtonDetector = require(Foundation.StatefulButtonDetector) local defaultFOV = 40 local function prepareForThumbnail(object, _isRoot) for _, child in next, object:GetChildren() do if child:IsA("Script") then child.Disabled = true end end end local function moveObjectForCamera(object) if #object:GetChildren() == 0 and object:IsA("Model") then return end if object:IsA("Model") then local min, max = Utility.GetModelAABBFast(object) local handle = Instance.new("Part") handle.CFrame = CFrame.new((min + max) / 2) local originalPrimaryPart = object.PrimaryPart object.PrimaryPart = handle object:SetPrimaryPartCFrame(CFrame.new()) object.PrimaryPart = originalPrimaryPart else object.CFrame = object.CFrame - object.Position end end local function panCFrame(cf, x, y) return cf * CFrame.new(-x, y, 0) end local function rotateCFrame(cf, x, y) cf = CFrame.fromAxisAngle(cf.RightVector, -y) * cf cf = CFrame.fromAxisAngle(Vector3.new(0, 1, 0), -x) * cf return cf end local function lerp(a, b, alpha) return a + (b - a) * alpha end function ObjectDraggablePreview:init() self:setState { cf = self.props.cf } self.skyRef = Roact.createRef() self.boxRef = Roact.createRef() self.blockerRef = Roact.createRef() self.onCFrameChanged = function(newCf) if self.props.onCFrameChanged then self.props.onCFrameChanged(newCf) end end self.onReset = function() if self.props.onReset then self.props.onReset() end end self.onInputChanged = function(rbx, input) local cf = self.props.cf local inputType = input.UserInputType if inputType == Enum.UserInputType.MouseMovement then local delta = input.delta if self.panning then local projected = Utility.ProjectPointToPlane(cf.p, Vector3.new(), -cf.lookVector) local dist = (cf.p - projected).magnitude local zoomFactor = lerp(0.008, 0.09, (dist - 2) / 22) local newCf = panCFrame(cf, delta.X * zoomFactor, delta.Y * zoomFactor) self.onCFrameChanged(newCf) elseif self.rotating then local newCf = rotateCFrame(cf, delta.X * 0.015, delta.Y * 0.015) self.onCFrameChanged(newCf) end elseif inputType == Enum.UserInputType.MouseWheel then local wheelDir = input.Position.Z local projected = Utility.ProjectPointToPlane(cf.p, Vector3.new(), -cf.lookVector) local dist = (cf.p - projected).magnitude local moveAmount = math.max(dist * 0.1, 0.1) -- prevent the camera from zooming too close... if wheelDir > 0 then -- and zooming too far. moveAmount = math.min(moveAmount, dist - 2) elseif wheelDir < 0 then moveAmount = math.min(moveAmount, 24 - dist) end local newCf = cf * CFrame.new(0, 0, -moveAmount * wheelDir) self.onCFrameChanged(newCf) end end self.onInputBegan = function(rbx, input) if input.UserInputType == Enum.UserInputType.MouseButton1 then self.rotating = true elseif input.UserInputType == Enum.UserInputType.MouseButton2 then self.panning = true end end self.onInputEnded = function(rbx, input) if input.UserInputType == Enum.UserInputType.MouseButton1 then self.rotating = false elseif input.UserInputType == Enum.UserInputType.MouseButton2 then self.panning = false end end end function ObjectDraggablePreview:render() local props = self.props local object = props.object local Position = props.Position local Size = props.Size local ZIndex = props.ZIndex assert(object == nil or (object:IsA("BasePart") or object.ClassName == "Model")) return withTheme( function(theme) return Roact.createElement( StatefulButtonDetector, { Size = Size, Position = Position, ZIndex = ZIndex, BackgroundTransparency = 1, [Roact.Event.InputBegan] = self.onInputBegan, [Roact.Event.InputEnded] = self.onInputEnded, [Roact.Event.InputChanged] = self.onInputChanged }, { ScrollBlocker = Roact.createElement( "ScrollingFrame", { Size = UDim2.new(1, 0, 1, 0), ScrollingEnabled = true, CanvasSize = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 0, ZIndex = 1, [Roact.Ref] = self.blockerRef } ), SkyboxFrame = Roact.createElement( "ViewportFrame", { Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = Color3.new(0, 0, 0), BorderColor3 = theme.borderColor, Ambient = Color3.new(1, 1, 1), LightColor = Color3.new(0, 0, 0), ZIndex = 2, [Roact.Ref] = self.skyRef } ), Render = Roact.createElement( "ViewportFrame", { Size = UDim2.new(1, 0, 1, 0), BorderSizePixel = 0, BackgroundTransparency = 1, BackgroundColor3 = Color3.new(0, 0, 0), BorderColor3 = theme.borderColor, Ambient = Color3.new(0.5, 0.5, 0.5), LightColor = Color3.new(1, 1, 1), LightDirection = Vector3.new(-1, -1, -1), ZIndex = 3, [Roact.Ref] = self.boxRef } ), ResetViewButton = Roact.createElement( ThemedTextButton, { Size = UDim2.new(0, 100, 0, Constants.BUTTON_HEIGHT), BorderSizePixel = 0, Position = UDim2.new(0, 8, 1, -8), AnchorPoint = Vector2.new(0, 1), Text = "Reset View", ZIndex = 4, onClick = self.onReset } ) } ) end ) end function ObjectDraggablePreview:UpdateCamera() local camera = self.camera if camera == nil then camera = Instance.new("Camera") camera.FieldOfView = defaultFOV self.camera = camera self.boxRef.current.CurrentCamera = camera self.skyRef.current.CurrentCamera = camera end camera.CFrame = self.props.cf camera.FieldOfView = defaultFOV end function ObjectDraggablePreview:UpdateFrameContents() debug.profilebegin("ObjectDraggablePreview:UpdateFrameContents") local frame = self.boxRef.current local currentObject = self.currentObject if currentObject then currentObject:Destroy() self.currentObject = nil end local props = self.props local object = props.object if object then local copy = object:Clone() prepareForThumbnail(copy) moveObjectForCamera(copy) self.currentObject = copy copy.Parent = frame end debug.profileend() end function ObjectDraggablePreview:UpdateSkybox() if self.skybox == nil then local frame = self.skyRef.current local skybox = Constants.SKYBOX_BALL:Clone() Utility.ScaleObject(skybox, 100) skybox.Parent = frame self.skybox = skybox end if self.camera then self.skybox:SetPrimaryPartCFrame(CFrame.new(self.camera.CFrame.p)) else self.skybox:SetPrimaryPartCFrame(CFrame.new()) end end function ObjectDraggablePreview:didMount() local props = self.props local object = props.object if object then self:UpdateFrameContents() end self:UpdateCamera() self:UpdateSkybox() self.blockerRef.current.CanvasPosition = Vector2.new(0, 500) end function ObjectDraggablePreview:willUnmount() if self.currentObject then self.currentObject:Destroy() end if self.camera then self.camera:Destroy() end self.skybox.Parent = nil self.previewObject:Destroy() self.previewObject = nil end function ObjectDraggablePreview:didUpdate(oldProps) local newProps = self.props local newObject, oldObject = newProps.object, oldProps.object if newObject ~= oldObject then self:UpdateFrameContents() end self:UpdateCamera() self:UpdateSkybox() end return ObjectDraggablePreview
39,114