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/baller784/saltedge-ios-swift/blob/master/Example/saltedge-ios/AppDelegate.swift
Github Open Source
Open Source
MIT
null
saltedge-ios-swift
baller784
Swift
Code
295
874
// // AppDelegate.swift // saltedge-ios_Example // // Created by Vlad Somov. // Copyright (c) 2019 Salt Edge. All rights reserved. // import UIKit import PKHUD import SaltEdge @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { static let applicationURLString: String = "saltedge-api-swift-demo://home.local"; // the URL has to have a host, otherwise won't be a valid URL on the backend var window: UIWindow? var tabBar: UITabBarController? { if let tabBar = window?.rootViewController as? UITabBarController { return tabBar } return nil } var createViewController: CreateViewController? { if let tabBar = tabBar, let tabBarVCs = tabBar.viewControllers, let createVC = tabBarVCs[1].children[0] as? CreateViewController { return createVC } return nil } var connectViewController: ConnectViewController? { if let tabBar = tabBar, let tabBarVCs = tabBar.viewControllers, let connectVC = tabBarVCs[0].children[0] as? ConnectViewController { return connectVC } return nil } func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { if let createVC = createViewController { HUD.show(.labeledProgress(title: "Fetching OAuth Connection", subtitle: nil)) SERequestManager.shared.handleOpen(url: url, connectionFetchingDelegate: createVC) } return true } func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { let appId: String = "your-app-id" let appSecret: String = "your-app-secret" let customerId: String = "customer-secret" // By default SSL Pinning is enabled, to disable it use: // SERequestManager.shared.set(sslPinningEnabled: false) // NOTE: Use this method for setting Salt Edge API v5. SERequestManager.shared.set(appId: appId, appSecret: appSecret) // NOTE: Use this method for setting Salt Edge Partners API v1. // SERequestManager.shared.setPartner(appId: appId, appSecret: appSecret) window = UIWindow(frame: UIScreen.main.bounds) window?.makeKeyAndVisible() window?.rootViewController = MainTabBarViewController() guard !SERequestManager.shared.isPartner else { return true } if let secret = UserDefaultsHelper.customerSecret { SERequestManager.shared.set(customerSecret: secret) } else { let params = SECustomerParams(identifier: customerId) SERequestManager.shared.createCustomer(with: params) { response in switch response { case .success(let value): UserDefaultsHelper.customerSecret = value.data.secret SERequestManager.shared.set(customerSecret: value.data.secret) case .failure(let error): print(error) } } } return true } }
28,794
https://github.com/avestuk/api-manager/blob/master/controllers/node-label/predicate.go
Github Open Source
Open Source
MIT
null
api-manager
avestuk
Go
Code
200
501
package nodelabel import ( "reflect" "github.com/go-logr/logr" "sigs.k8s.io/controller-runtime/pkg/event" "github.com/storageos/api-manager/internal/pkg/annotation" "github.com/storageos/api-manager/internal/pkg/predicate" ) // Predicate filters events before enqueuing the keys. Ignore all but Update // events, and then filter out events from non-StorageOS nodes. Trigger a // resync when labels have changed. // // Nodes added to the cluster will not immediately be added to StorageOS, so we // can't react to node create events. Instead, trigger a resync when the // StorageOS CSI driver annotation has been added, indicating that the node is // known to StorageOS and can receive label updates. type Predicate struct { predicate.IgnoreFuncs log logr.Logger } // Update determines whether an object update should trigger a reconcile. func (p Predicate) Update(e event.UpdateEvent) bool { // Ignore nodes that haven't run StorageOS. isStorageOS, err := annotation.StorageOSCSIDriver(e.ObjectNew) if err != nil { p.log.Error(err, "failed to process current node annotations", "node", e.ObjectNew.GetName()) } if !isStorageOS { return false } // Reconcile if the StorageOS CSI annotation was just added. wasStorageOS, err := annotation.StorageOSCSIDriver(e.ObjectOld) if err != nil { p.log.Error(err, "failed to process previous node annotations", "node", e.ObjectOld.GetName()) } if !wasStorageOS { return true } // Otherwise reconcile on label changes. if !reflect.DeepEqual(e.ObjectOld.GetLabels(), e.ObjectNew.GetLabels()) { return true } return false }
24,450
https://github.com/justinwwhuang/incubator-inlong/blob/master/inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/kafka/KafkaProducerCluster.java
Github Open Source
Open Source
Apache-2.0
2,022
incubator-inlong
justinwwhuang
Java
Code
609
2,002
/** * 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.inlong.sort.standalone.sink.kafka; import com.google.common.base.Preconditions; import org.apache.flume.Context; import org.apache.flume.Event; import org.apache.flume.Transaction; import org.apache.flume.lifecycle.LifecycleAware; import org.apache.flume.lifecycle.LifecycleState; import org.apache.inlong.sort.standalone.config.holder.CommonPropertiesHolder; import org.apache.inlong.sort.standalone.config.pojo.CacheClusterConfig; import org.apache.inlong.sort.standalone.metrics.SortMetricItem; import org.apache.inlong.sort.standalone.metrics.audit.AuditUtils; import org.apache.inlong.sort.standalone.utils.Constants; import org.apache.inlong.sort.standalone.utils.InlongLoggerFactory; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.clients.producer.ProducerRecord; import org.apache.kafka.common.serialization.ByteArraySerializer; import org.apache.kafka.common.serialization.StringSerializer; import org.apache.pulsar.shade.org.apache.commons.lang.math.NumberUtils; import org.slf4j.Logger; import java.util.HashMap; import java.util.Map; import java.util.Properties; /** wrapper of kafka producer */ public class KafkaProducerCluster implements LifecycleAware { public static final Logger LOG = InlongLoggerFactory.getLogger(KafkaProducerCluster.class); private final String workerName; private final CacheClusterConfig config; private final KafkaFederationSinkContext sinkContext; private final Context context; private final String cacheClusterName; private LifecycleState state; private KafkaProducer<String, byte[]> producer; /** * constructor of KafkaProducerCluster * * @param workerName workerName * @param config config of cluster * @param kafkaFederationSinkContext producer context */ public KafkaProducerCluster( String workerName, CacheClusterConfig config, KafkaFederationSinkContext kafkaFederationSinkContext) { this.workerName = Preconditions.checkNotNull(workerName); this.config = Preconditions.checkNotNull(config); this.sinkContext = Preconditions.checkNotNull(kafkaFederationSinkContext); this.context = Preconditions.checkNotNull(kafkaFederationSinkContext.getProducerContext()); this.state = LifecycleState.IDLE; this.cacheClusterName = Preconditions.checkNotNull(config.getClusterName()); } /** start and init kafka producer */ @Override public void start() { this.state = LifecycleState.START; try { Properties props = new Properties(); props.putAll(context.getParameters()); props.put( ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, context.getString(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG)); props.put( ProducerConfig.CLIENT_ID_CONFIG, context.getString(ProducerConfig.CLIENT_ID_CONFIG) + "-" + workerName); LOG.info("init kafka client info: " + props); producer = new KafkaProducer<>(props, new StringSerializer(), new ByteArraySerializer()); Preconditions.checkNotNull(producer); } catch (Exception e) { LOG.error(e.getMessage(), e); } } /** stop and close kafka producer */ @Override public void stop() { this.state = LifecycleState.STOP; try { LOG.info("stop kafka producer"); producer.close(); } catch (Exception e) { LOG.error(e.getMessage(), e); } } /** * get module state * * @return state */ @Override public LifecycleState getLifecycleState() { return this.state; } /** * Send data * * @param event data to send */ public boolean send(Event event, Transaction tx) { String topic = event.getHeaders().get(Constants.TOPIC); ProducerRecord<String, byte[]> record = new ProducerRecord<>(topic, event.getBody()); long sendTime = System.currentTimeMillis(); try { producer.send(record, (metadata, ex) -> { if (ex == null) { tx.commit(); addMetric(event, topic, true, sendTime); } else { LOG.error(String.format("send failed, topic is %s, partition is %s", metadata.topic(), metadata.partition()), ex); tx.rollback(); addMetric(event, topic, false, 0); } tx.close(); }); return true; } catch (Exception e) { tx.rollback(); tx.close(); LOG.error(e.getMessage(), e); addMetric(event, topic, false, 0); return false; } } /** * get cache cluster name * * @return cacheClusterName */ public String getCacheClusterName() { return cacheClusterName; } /** * Report metrics to monitor, including the count, size and duration of sending, sent * successfully and sent failed packet. * * @param currentRecord event to be reported * @param topic kafka topic of event sent to * @param result send result, send successfully -> true, send failed -> false. * @param sendTime the time event sent to kafka */ private void addMetric(Event currentRecord, String topic, boolean result, long sendTime) { Map<String, String> dimensions = new HashMap<>(); dimensions.put(SortMetricItem.KEY_CLUSTER_ID, this.sinkContext.getClusterId()); // metric SortMetricItem.fillInlongId(currentRecord, dimensions); dimensions.put(SortMetricItem.KEY_SINK_ID, this.cacheClusterName); dimensions.put(SortMetricItem.KEY_SINK_DATA_ID, topic); long msgTime = NumberUtils.toLong(currentRecord.getHeaders().get(Constants.HEADER_KEY_MSG_TIME), sendTime); long auditFormatTime = msgTime - msgTime % CommonPropertiesHolder.getAuditFormatInterval(); dimensions.put(SortMetricItem.KEY_MESSAGE_TIME, String.valueOf(auditFormatTime)); String taskName = currentRecord.getHeaders().get(SortMetricItem.KEY_TASK_NAME); dimensions.put(SortMetricItem.KEY_TASK_NAME, taskName); SortMetricItem.reportDurations(currentRecord, result, sendTime, dimensions, msgTime, this.sinkContext.getMetricItemSet()); if (result) { AuditUtils.add(AuditUtils.AUDIT_ID_SEND_SUCCESS, currentRecord); } } }
27,862
https://github.com/khooversoft/Khooversoft/blob/master/Src/Common/Khooversoft.Toolbox/Khooversoft.Services/TokenManagers/IClientTokenManagerConfiguration.cs
Github Open Source
Open Source
MIT
null
Khooversoft
khooversoft
C#
Code
45
131
using Khooversoft.Security; using System; using System.Collections.Generic; namespace Khooversoft.Services { public interface IClientTokenManagerConfiguration { LocalCertificateKey RequestSigningCertificateKey { get; } string RequestingIssuer { get; } Uri AuthorizationUri { get; } IEnumerable<LocalCertificateKey> ServerSigningCertificateKeys { get; } TokenKey TokenKey { get; } IHmacConfiguration HmacConfiguration { get; } } }
8,199
https://github.com/graycoreio/daffodil/blob/master/libs/customer-payment/state/src/facades/payment/interface.ts
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, MIT
2,023
daffodil
graycoreio
TypeScript
Code
67
196
import { Observable } from 'rxjs'; import { DaffOperationStateFacadeInterface } from '@daffodil/core/state'; import { DaffCustomerPaymentEntity } from '../../models/public_api'; import { DaffCustomerPaymentReducerState } from '../../reducers/public_api'; /** * Exposes the customer state selectors. */ export interface DaffCustomerPaymentPageFacadeInterface<T extends DaffCustomerPaymentEntity = DaffCustomerPaymentEntity> extends DaffOperationStateFacadeInterface<DaffCustomerPaymentReducerState> { /** * A list of all customer payment entities. */ payments$: Observable<T[]>; /** * Get a payment entity by ID. */ getPayment(id: T['id']): Observable<T>; }
32,106
https://github.com/NOOXY-research/NoXerve/blob/master/src/noxerve_agent/nodejs/protocol/protocols/service/service_of_activity.js
Github Open Source
Open Source
Apache-2.0
2,019
NoXerve
NOOXY-research
JavaScript
Code
709
3,196
/** * @file NoXerveAgent service protocol service_of_activity_handler file. [service_of_activity_handler.js] * @author nooxy <thenooxy@gmail.com> * @author noowyee <magneticchen@gmail.com> * @copyright 2019-2020 nooxy. All Rights Reserved. */ 'use strict'; /** * @module ServiceOfActivityProtocol * @description Service has properties to be take advantage of, by using prototype. * They can share hash results. etc. */ const Utils = require('../../../utils'); const Buf = require('../../../buffer'); const Errors = require('../../../errors'); /** * @constructor module:ServiceOfActivityProtocol * @param {object} settings * @description Service has properties to be take advantage of, by using prototype. * They can share hash results. etc. */ function ServiceOfActivityProtocol(settings) { /** * @memberof module:ServiceOfActivityProtocol * @type {object} * @private */ this._settings = settings; /** * @memberof module:ServiceOfActivityProtocol * @type {object} * @private */ this._hash_manager = settings.hash_manager; /** * @memberof module:ActivityOfServiceProtocol * @type {object} * @private */ this._nsdt_embedded_protocol = settings.nsdt_embedded_protocol; } /** * @memberof module:ServiceOfActivityProtocol * @type {object} * @private */ ServiceOfActivityProtocol.prototype._ProtocolCodes = { service_function_call: Buf.from([0x01]), service_function_call_data: Buf.from([0x02]), service_function_call_data_acknowledge: Buf.from([0x03]), service_function_call_data_eof: Buf.from([0x04]), service_function_call_error: Buf.from([0x05]), yielding_start: Buf.from([0x06]), yielding_start_acknowledge: Buf.from([0x07]), yielding_start_yield_data: Buf.from([0x08]), yielding_start_yield_data_acknowledge: Buf.from([0x09]), yielding_start_yield_data_eof: Buf.from([0x0a]), yielding_start_error: Buf.from([0x0b]), nsdt_embedded: Buf.from([0x0c]), }; // [Flag] Need to be rewrited. /** * @memberof module:ServiceOfActivityProtocol * @param {error} error - If service module create service_of_activity failed or not. * @param {object} service_of_activity * @param {tunnel} tunnel * @description Method that handle service of activity protocol from service protocol module. */ ServiceOfActivityProtocol.prototype.handleTunnel = function(error, service_of_activity, tunnel) { if (error) tunnel.close(); else { this._nsdt_embedded_protocol.createBidirectionalRuntimeProtocol((error, nsdt_embedded_protocol_encode, nsdt_embedded_protocol_decode, nsdt_on_data, nsdt_emit_data, nsdt_embedded_protocol_destroy)=> { if (error) tunnel.close(); else { // nsdt embedded runtime protocol setup. nsdt_on_data((data) => { tunnel.send(Buf.concat([ this._ProtocolCodes.nsdt_embedded, data ])); }); // For start yielding call. let yielding_handler_dict = {}; let service_function_call_data_acknowledgment_callbacks = {}; // Hash service function name. service_of_activity.on('service-function-define', (service_function_name) => { this._hash_manager.hashString4Bytes(service_function_name); }); // Hash service function name. service_of_activity.on('yielding-handle', (field_name) => { this._hash_manager.hashString4Bytes(field_name); }); // Close communication with activity. service_of_activity.on('initiative-close', (callback) => { tunnel.close(callback); }); tunnel.on('data', (data) => { // code | type // 0x01 service-function-call const protocol_code = data[0]; data = data.slice(1); if(protocol_code === this._ProtocolCodes.nsdt_embedded[0]) { nsdt_emit_data(data); } // Service Protocol type "service-function-call" else if (protocol_code === this._ProtocolCodes.service_function_call[0]) { let service_function_call_callback_id; let service_function_call_callback_id_base64; // Important value. Calculate first. try { service_function_call_callback_id = data.slice(4, 8); service_function_call_callback_id_base64 = service_function_call_callback_id.toString('base64'); } catch (e) {} // Catch error. try { const service_function_name = this._hash_manager.stringify4BytesHash(data.slice(0, 4)); const service_function_parameter = nsdt_embedded_protocol_decode(data.slice(8)); if(service_function_call_callback_id) service_function_call_data_acknowledgment_callbacks[service_function_call_callback_id_base64] = {}; const return_function = (data) => { // No longer need keep tracking acknowledgment. delete service_function_call_data_acknowledgment_callbacks[service_function_call_callback_id_base64]; // Service Protocol type "service_function_call_data" tunnel.send(Buf.concat([ this._ProtocolCodes.service_function_call_data_eof, service_function_call_callback_id, nsdt_embedded_protocol_encode(data) ])); }; let acknowledgment_id_enumerated = 0; const yield_function = (data, acknowledgment_callback) => { let acknowledgment_id = 0; if(acknowledgment_callback) { acknowledgment_id_enumerated++; acknowledgment_id = acknowledgment_id_enumerated; service_function_call_data_acknowledgment_callbacks[service_function_call_callback_id_base64][acknowledgment_id] = acknowledgment_callback; } // Service Protocol type "service_function_call_data" tunnel.send(Buf.concat([ this._ProtocolCodes.service_function_call_data, service_function_call_callback_id, Buf.encodeUInt32BE(acknowledgment_id), nsdt_embedded_protocol_encode(data) ])); }; service_of_activity.emitEventListener('service-function-call-request', service_function_name, service_function_parameter, return_function, yield_function ); } catch (error) { console.log(error); delete service_function_call_data_acknowledgment_callbacks[service_function_call_callback_id_base64]; tunnel.send(Buf.concat([ this._ProtocolCodes.service_function_call_error, service_function_call_callback_id ])); } } else if (protocol_code === this._ProtocolCodes.service_function_call_data_acknowledge[0]) { const service_function_call_callback_id_base64 = data.slice(0, 4).toString('base64'); const acknowledgment_id = Buf.decodeUInt32BE(data.slice(4, 8)); const acknowledgment_information = nsdt_embedded_protocol_decode(data.slice(8)); try { service_function_call_data_acknowledgment_callbacks[service_function_call_callback_id_base64][acknowledgment_id](acknowledgment_information); if(service_function_call_data_acknowledgment_callbacks[service_function_call_callback_id_base64]) delete service_function_call_data_acknowledgment_callbacks[service_function_call_callback_id_base64][acknowledgment_id]; } catch(error) { console.log(error); } } else if (protocol_code === this._ProtocolCodes.yielding_start[0]) { let yielding_start_id; // Important value. Calculate first. try { yielding_start_id = data.slice(4, 8); } catch (e) {} // Catch error. try { const yielding_start_id_base64 = yielding_start_id.toString('base64'); const field_name = this._hash_manager.stringify4BytesHash(data.slice(0, 4)); const yielding_handler_parameter = nsdt_embedded_protocol_decode(data.slice(8)); service_of_activity.emitEventListener('yielding-start-request', field_name, yielding_handler_parameter, (yielding_handler_argument, yielding_handler) => { yielding_handler_dict[yielding_start_id_base64] = yielding_handler; // Service Protocol type "yielding_start_acknowledge" tunnel.send(Buf.concat([ this._ProtocolCodes.yielding_start_acknowledge, yielding_start_id, nsdt_embedded_protocol_encode(yielding_handler_argument) ])); }); } catch (error) { tunnel.send(Buf.concat([ this._ProtocolCodes.yielding_start_error, yielding_start_id ])); } } else if (protocol_code === this._ProtocolCodes.yielding_start_yield_data[0]) { const yielding_start_id = data.slice(0, 4); const yielding_start_id_base64 = yielding_start_id.toString('base64'); const acknowledgment_id = data.slice(4, 8); const yielded_data = nsdt_embedded_protocol_decode(data.slice(8)); let acknowledge_function; // Generate acknowledge_function if(Buf.decodeUInt32BE(acknowledgment_id) !== 0) { acknowledge_function = (acknowledgment_information) => { // acknowledgment_information is nsdt supported. tunnel.send(Buf.concat([ this._ProtocolCodes.yielding_start_yield_data_acknowledge, yielding_start_id, acknowledgment_id, nsdt_embedded_protocol_encode(acknowledgment_information) ])); }; } yielding_handler_dict[yielding_start_id_base64](false, yielded_data, false, acknowledge_function); } else if (protocol_code === this._ProtocolCodes.yielding_start_yield_data_eof[0]) { const yielding_start_id = data.slice(0, 4); const yielding_start_id_base64 = yielding_start_id.toString('base64'); const yielded_data = nsdt_embedded_protocol_decode(data.slice(4)); yielding_handler_dict[yielding_start_id_base64](false, yielded_data, true); // EOF, delete the callback no longer useful. delete yielding_handler_dict[yielding_start_id_base64]; } else if (protocol_code === this._ProtocolCodes.yielding_start_error[0]) { const yielding_start_id = data.slice(0, 4); const yielding_start_id_base64 = yielding_start_id.toString('base64'); yielding_handler_dict[yielding_start_id_base64](new Errors.ERR_NOXERVEAGENT_PROTOCOL_SERVICE('Yielding protocol error.'), null, true); // EOF, delete the callback no longer useful. delete yielding_handler_dict[yielding_start_id_base64]; } }); tunnel.on('error', (error) => { // [Flag] console.log(error); // service_of_activity.emitEventListener('externel-error'); }); tunnel.on('close', () => { service_of_activity.emitEventListener('passively-close'); nsdt_embedded_protocol_destroy(); }); } }); } } module.exports = ServiceOfActivityProtocol;
44,192
https://github.com/Sophia-Okito/codewars-handbook/blob/master/kata/7-kyu/simple-fibonacci-strings/test/SolutionTest.java
Github Open Source
Open Source
MIT
2,022
codewars-handbook
Sophia-Okito
Java
Code
24
122
import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; class SolutionTest { @Test void sample() { assertEquals("0", Solution.solve(0)); assertEquals("01", Solution.solve(1)); assertEquals("010", Solution.solve(2)); assertEquals("01001", Solution.solve(3)); assertEquals("0100101001001", Solution.solve(5)); } }
38,324
https://github.com/markkimsal/cognifty/blob/master/src/cognifty/modules/install/templates/main_askTemplate.html.php
Github Open Source
Open Source
BSD-3-Clause
2,012
cognifty
markkimsal
PHP
Code
138
610
<!-- <h2>Customize your site's template</h2> --> <?php echo $t['form']->toHtml(); ?> <!-- <form method="POST" action="<?= cgn_appurl('install','main','writeTemplate');?>"> <fieldset><legend>Template</legend> Enter information to customize your site's template behavior <table border="0" cellspacing="3"> <tr><td> Site Name: </td><td> <input type="text" name="site_name" value="<?= htmlspecialchars($t['site_name']);?>"/> </td></tr> <tr><td> Site Tag-line: </td><td> <input type="text" name="site_tag" value="<?= htmlspecialchars($t['site_tag']);?>"/> </td></tr> <tr><td> Port for SSL/HTTPS ? <br/> (set to nothing for systems w/o SSL) </td><td> <input type="text" name="ssl_port" value="443"/> </td></tr> </table> </fieldset> <h2>Set default e-mail addresses</h2> <form method="POST" action="<?= cgn_appurl('install','main','writeTemplate');?>"> <fieldset><legend>E-mail</legend> Certain parts of the system behave better with deafult e-mail addresses. <table border="0" cellspacing="3"> <tr><td> Contact-Us: </td><td> <input type="text" name="email_contact_us" value="<?= htmlspecialchars($t['email_contact_us']);?>"/> </td></tr> <tr><td> Default From: <br/> (ex: noreply@example.com) </td><td> <input type="text" name="email_default_from" value="<?= htmlspecialchars($t['email_default_from']);?>"/> </td></tr> <tr><td> Error Notify: <br/> (developer or e-mail list) </td><td> <input type="text" name="email_error_notify" value="<?= htmlspecialchars($t['email_error_notify']);?>"/> </td></tr> </table> </fieldset> <input type="submit" class="btn primary" value="Save these values"/> -->
8,377
https://github.com/quantmind/agile-toolkit/blob/master/agiletoolkit/github/remote.py
Github Open Source
Open Source
BSD-3-Clause
null
agile-toolkit
quantmind
Python
Code
25
87
import click from ..repo import RepoManager from ..utils import command @click.command() @click.pass_context def remote(ctx): """Display repo github path """ with command(): m = RepoManager(ctx.obj["agile"]) click.echo(m.github_repo().repo_path)
42,426
https://github.com/ntyukaev/training_extensions/blob/master/ote_sdk/ote_sdk/tests/entities/test_metadata.py
Github Open Source
Open Source
Apache-2.0
2,019
training_extensions
ntyukaev
Python
Code
777
2,391
"""This module tests classes related to metadata""" # Copyright (C) 2020-2021 Intel Corporation # # 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 re import pytest from ote_sdk.entities.metadata import ( FloatMetadata, FloatType, IMetadata, MetadataItemEntity, ) from ote_sdk.entities.model import ModelEntity from ote_sdk.tests.constants.ote_sdk_components import OteSdkComponent from ote_sdk.tests.constants.requirements import Requirements @pytest.mark.components(OteSdkComponent.OTE_SDK) class TestIMetadata: @pytest.mark.priority_medium @pytest.mark.unit @pytest.mark.reqids(Requirements.REQ_1) def test_imetadata(self): """ <b>Description:</b> To test IMetadata class <b>Input data:</b> Initialized instance of IMetadata class <b>Expected results:</b> 1. Initialized instance is instance of the class 2. Default value of field has expected value: "typing.Union[str, NoneType]" 3. Changed fields value has expected value: "String" <b>Steps</b> 1. Create IMetadata 2. Check default value of class field 3. Change value of the field """ test_instance = IMetadata() assert isinstance(test_instance, IMetadata) assert str(test_instance.name) == "typing.Union[str, NoneType]" test_instance.name = "String" assert test_instance.name == "String" @pytest.mark.components(OteSdkComponent.OTE_SDK) class TestFloatType: @pytest.mark.priority_medium @pytest.mark.unit @pytest.mark.reqids(Requirements.REQ_1) def test_float_type_members(self): """ <b>Description:</b> To test FloatType enumeration members <b>Input data:</b> Initialized instance of FloatType enum class <b>Expected results:</b> 1. Enum members return correct values: FLOAT = 1 EMBEDDING_VALUE = 2 ACTIVE_SCORE = 3 2. In case incorrect member it raises AttributeError exception 3. In case incorrect member value it raises ValueError exception <b>Steps</b> 0. Create FloatType 1. Check members 2. Check incorrect member 3. Check incorrect member value """ test_instance = FloatType for i in range(1, 4): assert test_instance(i) in list(FloatType) with pytest.raises(AttributeError): test_instance.WRONG with pytest.raises(ValueError): test_instance(6) @pytest.mark.priority_medium @pytest.mark.unit @pytest.mark.reqids(Requirements.REQ_1) def test_float_type_magic_str(self): """ <b>Description:</b> To test FloatType __str__ method <b>Input data:</b> Initialized instance of FloatType enum <b>Expected results:</b> 1. __str__ returns correct string for every enum member 2. In case incorrect member it raises AttributeError exception 3. In case incorrect member value it raises ValueError exception <b>Steps</b> 0. Create FloatType 1. Check returning value of __str__ method 2. Try incorrect field name 3. Try incorrect value name """ test_instance = FloatType magic_str_list = [str(i) for i in list(FloatType)] for i in range(1, 4): assert str(test_instance(i)) in magic_str_list with pytest.raises(AttributeError): str(test_instance.WRONG) with pytest.raises(ValueError): str(test_instance(6)) @pytest.mark.components(OteSdkComponent.OTE_SDK) class TestMetadataItemEntity: @pytest.mark.priority_medium @pytest.mark.unit @pytest.mark.reqids(Requirements.REQ_1) def test_metadata_item_entity(self): """ <b>Description:</b> To test MetadataItemEntity class <b>Input data:</b> Initialized instances of IMetadata, ModelEntity and MetadataItemEntity classes <b>Expected results:</b> 1. Initialized instances 2. Default values of fields are None 3. repr method returns expected value "NullMetadata(None, None)" after initiation for both instances 4. Instance test_instance1 fields values changed and have expected values: name == String1 value == 0 5. repr method of test_instance1 returns expected value "NullMetadata(String1, 0)" 6. == method behavior is expected <b>Steps</b> 1. Create class instances test_instance0 and test_instance1 2. Perform checks of its field default values after initiations 3. Perform checks of repr method returns expected values after initiations 4. Change fields value of test_instance1 5. Perform checks of repr method returns expected values after changes 6. Check that test_instance0 == test_instance1 """ i_metadata = IMetadata() i_metadata.name = "default_i_metadata" test_data0 = test_data1 = i_metadata.name i_metadata.name = "i_metadata" test_data2 = i_metadata.name test_model0 = test_model1 = ModelEntity( train_dataset="default_dataset", configuration="default_config" ) test_instance0 = MetadataItemEntity(test_data0, test_model0) test_instance1 = MetadataItemEntity(test_data1, test_model1) test_instance2 = MetadataItemEntity(test_data2, test_model1) assert test_instance0 == test_instance1 != test_instance2 __repr = repr(test_instance0) repr_pattern = ( r"MetadataItemEntity\(model=\<ote_sdk.entities.model.ModelEntity object at" r" 0x[a-fA-F0-9]{10,32}\>\, data\=default_i_metadata\)" ) assert re.match(repr_pattern, __repr) @pytest.mark.components(OteSdkComponent.OTE_SDK) class TestFloatMetadata: @pytest.mark.priority_medium @pytest.mark.unit @pytest.mark.reqids(Requirements.REQ_1) def test_float_metadata(self): """ <b>Description:</b> To test FloatMetadata class <b>Input data:</b> Initialized instance of FloatMetadata <b>Expected results:</b> 1. It raises TypeError in case attempt of initiation with wrong parameters numbers 2. Fields of instances are with correct values 3. repr method returns correct strings then used against each instance 4. '==' method works as expected <b>Steps</b> 1. Attempt to initiate class instance with wrong parameters numbers 2. Initiate three class instances: two of them with similar set of init values, third one with different one. 3. Check repr method 4. Check __eq__ method """ with pytest.raises(TypeError): FloatMetadata() with pytest.raises(TypeError): FloatMetadata("only name") test_inst0 = FloatMetadata(name="Instance0", value=42) assert test_inst0.name == "Instance0" assert test_inst0.value == 42 assert repr(test_inst0.float_type) == "<FloatType.FLOAT: 1>" assert repr(test_inst0) == "FloatMetadata(Instance0, 42, FLOAT)" test_inst1 = FloatMetadata(name="Instance1", value=42.0) assert test_inst1.name == "Instance1" assert test_inst1.value == 42.0 assert repr(test_inst1.float_type) == "<FloatType.FLOAT: 1>" assert repr(test_inst1) == "FloatMetadata(Instance1, 42.0, FLOAT)" test_inst2 = FloatMetadata(name="Instance0", value=42) assert test_inst2.name == "Instance0" assert test_inst2.value == 42 assert repr(test_inst2.float_type) == "<FloatType.FLOAT: 1>" assert repr(test_inst2) == "FloatMetadata(Instance0, 42, FLOAT)" assert test_inst0 == test_inst2 != test_inst1
44,356
https://github.com/dbt/rundeck/blob/master/rundeckapp/grails-app/assets/scss/custom/expand.scss
Github Open Source
Open Source
Apache-2.0
null
rundeck
dbt
SCSS
Code
113
418
.expandComponentHolder{ .expandComponentControl{ > .more-indicator-verbiage{ display: inline-block; } > .less-indicator-verbiage{ display: none; } } &.expanded{ > .more-indicator-verbiage{ display: none; } > .less-indicator-verbiage{ display: inline-block; } } } details { > summary { cursor: pointer; &:focus { outline: none; } } &.details-inline { display: inline-block; > summary { display: inline-block; } } &.details-reset { > summary { list-style: none; } > summary::before { display: none; } > summary::-webkit-details-marker { display: none; } } &.more-info { > summary { .less-indicator-verbiage { display: none } .more-info-icon { color: $medium-gray; } } &[open] > summary { .more-indicator-verbiage { display: none } .less-indicator-verbiage { display: inline-block; } } .more-info-content { margin-top: 1em; margin-bottom: 1em; padding-left: 0.5em; } } }
48,801
https://github.com/daniel-brenot/blockly/blob/master/src/core/interfaces/i_autohideable.ts
Github Open Source
Open Source
Apache-2.0
null
blockly
daniel-brenot
TypeScript
Code
112
263
/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview The interface for a component that is automatically hidden * when WorkspaceSvg.hideChaff is called. */ /** * The interface for a component that is automatically hidden * when WorkspaceSvg.hideChaff is called. * @namespace Blockly.IAutoHideable */ import {IComponent} from 'blockly/core/interfaces/i_component'; /** * Interface for a component that can be automatically hidden. * @extends {IComponent} * @interface * @alias Blockly.IAutoHideable */ const IAutoHideable = function() {}; /** * Hides the component. Called in WorkspaceSvg.hideChaff. * @param {boolean} onlyClosePopups Whether only popups should be closed. * Flyouts should not be closed if this is true. */ IAutoHideable.prototype.autoHide; exports.IAutoHideable = IAutoHideable;
44,587
https://github.com/fga-eps-mds/2018.1-Reabilitacao-Motora/blob/master/Reabilitacao-Motora/Assets/Tests/Editor/TestTableMusculo.cs
Github Open Source
Open Source
MIT
2,018
2018.1-Reabilitacao-Motora
fga-eps-mds
C#
Code
667
2,589
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.IO; using System; using UnityEngine.TestTools; using NUnit.Framework; using System.Text.RegularExpressions; using musculo; using DataBaseAttributes; using Mono.Data.Sqlite; using System.Data; /** * Cria um novo Musculo no banco de dados. */ namespace Tests { public static class TestTableMuscle { [SetUp] public static void SetUp() { GlobalController.test = true; GlobalController.Initialize(); } [Test] public static void TestMusculoCreate () { using (var conn = new SqliteConnection(GlobalController.path)) { conn.Open(); // tabela sendo criada no SetUp, no "Initialize" da GlobalController var check = "SELECT count(*) FROM sqlite_master WHERE type='table' AND name='MUSCULO';"; var result = 0; using (var cmd = new SqliteCommand(check, conn)) { using (IDataReader reader = cmd.ExecuteReader()) { try { while (reader.Read()) { if (!reader.IsDBNull(0)) { result = reader.GetInt32(0); } } } finally { reader.Dispose(); reader.Close(); } } cmd.Dispose(); } Assert.AreEqual (result, 1); conn.Dispose(); conn.Close(); } } [Test] public static void TestMusculoDrop () { using (var conn = new SqliteConnection(GlobalController.path)) { conn.Open(); Musculo.Drop(); var check = "SELECT count(*) FROM sqlite_master WHERE type='table' AND name='MUSCULO';"; var result = 0; using (var cmd = new SqliteCommand(check, conn)) { using (IDataReader reader = cmd.ExecuteReader()) { try { while (reader.Read()) { if (!reader.IsDBNull(0)) { result = reader.GetInt32(0); } } } finally { reader.Dispose(); reader.Close(); } } cmd.Dispose(); } Assert.AreEqual (result, 0); conn.Dispose(); conn.Close(); } } [Test] public static void TestMusculoInsert () { using (var conn = new SqliteConnection(GlobalController.path)) { conn.Open(); Musculo.Insert("bíceps"); Musculo.Insert("tríceps"); Musculo.Insert("quadríceps"); var check = "SELECT * FROM MUSCULO;"; var id = 0; var result = ""; int i = 1; string[] x = new string[] {"", "b", "tr", "quadr"}; using (var cmd = new SqliteCommand(check, conn)) { using (IDataReader reader = cmd.ExecuteReader()) { try { while (reader.Read()) { if (!reader.IsDBNull(0)) { id = reader.GetInt32(0); Assert.AreEqual (id, i); } if (!reader.IsDBNull(1)) { result = reader.GetString(1); string z = x[i] + "íceps"; Assert.AreEqual (result, z); } i++; } } finally { reader.Dispose(); reader.Close(); } } cmd.Dispose(); } conn.Dispose(); conn.Close(); } } [Test] public static void TestMusculoUpdate () { using (var conn = new SqliteConnection(GlobalController.path)) { conn.Open(); Musculo.Insert("bíceps"); Musculo.Insert("tríceps"); Musculo.Insert("quadríceps"); Musculo.Update (3, "quintríceps"); Musculo.Update (2, "quadríceps"); var check = "SELECT * FROM MUSCULO;"; var id = 0; var result = ""; int i = 1; string[] x = new string[] {"", "b", "quadr", "quintr"}; using (var cmd = new SqliteCommand(check, conn)) { using (IDataReader reader = cmd.ExecuteReader()) { try { while (reader.Read()) { if (!reader.IsDBNull(0)) { id = reader.GetInt32(0); Assert.AreEqual (id, i); } if (!reader.IsDBNull(1)) { result = reader.GetString(1); string z = x[i] + "íceps"; Assert.AreEqual (result, z); } i++; } } finally { reader.Dispose(); reader.Close(); } } cmd.Dispose(); } conn.Dispose(); conn.Close(); } } [Test] public static void TestMusculoRead () { using (var conn = new SqliteConnection(GlobalController.path)) { conn.Open(); Musculo.Insert("bíceps"); Musculo.Insert("tríceps"); Musculo.Insert("quadríceps"); List<Musculo> allMuscs = Musculo.Read(); string[] x = new string[] {"", "b", "tr", "quadr"}; for (int i = 1; i <= allMuscs.Count; ++i) { Assert.AreEqual (allMuscs[i-1].idMusculo, i); Assert.AreEqual (allMuscs[i-1].nomeMusculo, (x[i]+"íceps")); } conn.Dispose(); conn.Close(); } } [Test] public static void TestMusculoReadValue () { using (var conn = new SqliteConnection(GlobalController.path)) { conn.Open(); Musculo.Insert("bíceps"); Musculo.Insert("tríceps"); Musculo.Insert("quadríceps"); string[] x = new string[] {"", "b", "tr", "quadr"}; for (int i = 1; i <= 3; ++i) { Musculo musculo = Musculo.ReadValue(i); Assert.AreEqual (musculo.idMusculo, i); Assert.AreEqual (musculo.nomeMusculo, (x[i]+"íceps")); } conn.Dispose(); conn.Close(); } } [Test] public static void TestMusculoDeleteValue () { using (var conn = new SqliteConnection(GlobalController.path)) { conn.Open(); Musculo.Insert("bíceps"); var check = "SELECT EXISTS(SELECT 1 FROM 'MUSCULO' WHERE \"idMusculo\" = \"1\" LIMIT 1)"; var result = 0; using (var cmd = new SqliteCommand(check, conn)) { using (IDataReader reader = cmd.ExecuteReader()) { try { while (reader.Read()) { if (!reader.IsDBNull(0)) { result = reader.GetInt32(0); } } } finally { reader.Dispose(); reader.Close(); } } cmd.Dispose(); } Assert.AreEqual (result, 1); Musculo.DeleteValue(1); result = 0; using (var cmd = new SqliteCommand(check, conn)) { using (IDataReader reader = cmd.ExecuteReader()) { try { while (reader.Read()) { if (!reader.IsDBNull(0)) { result = reader.GetInt32(0); } } } finally { reader.Dispose(); reader.Close(); } } cmd.Dispose(); } Assert.AreEqual (result, 0); conn.Dispose(); conn.Close(); } } [TearDown] public static void AfterEveryTest () { SqliteConnection.ClearAllPools(); GlobalController.DropAll(); } } }
4,503
https://github.com/skepickle/pocketmine-mp-docker/blob/master/src/wrapper.pl
Github Open Source
Open Source
MIT
null
pocketmine-mp-docker
skepickle
Perl
Code
686
2,222
#!/usr/bin/perl -w use strict; use warnings; use POSIX ":sys_wait_h"; use IPC::SysV qw(IPC_STAT IPC_PRIVATE IPC_CREAT IPC_EXCL S_IRUSR S_IWUSR IPC_RMID); use Term::ReadLine; use Term::ReadKey; use IPC::Open3; use Time::HiRes qw(sleep); my $DEBUG = 0; $SIG{TSTP} = sub { }; #TODO: Add clean shutdown for $SIG{TERM} and $SIG{KILL} my $term = new Term::ReadLine 'ProgramName'; print "DEBUG Using: ", $term->ReadLine, "\n" if ($DEBUG); $term->MinLine(); $term->ornaments(0); my ($pm_stdin_h, $pm_stdout_h, $pm_stderr_h); my $pmmp_pid = open3($pm_stdin_h, $pm_stdout_h, $pm_stderr_h, '/pm/start.sh --no-wizard') or die "open3() failed $!"; ReadMode('raw', $pm_stdout_h); ReadMode('raw', $pm_stderr_h) if defined $pm_stderr_h; ReadMode('raw'); my $key_pressed = ""; my $key_buffer = ""; my $key_preput = ""; my $pm_stdout_buffer = ""; my $pm_stderr_buffer = ""; my @keys_pressed = (); my $idle = 1; my $result = 0; while (1) { $idle = 1; # Check STDIN for either '/' or up-arrow $key_pressed = ReadKey(-1); if (defined $key_pressed) { push(@keys_pressed, ord($key_pressed)); shift(@keys_pressed) if (scalar(@keys_pressed)>3); if ($DEBUG) { print("DEBUG Keys Pressed:"); foreach my $key (@keys_pressed) { printf(" #%x", $key); }; print "\n"; }; }; $key_pressed = 0 unless defined $key_pressed; last if ($key_pressed eq "q"); if ($key_pressed eq "/") { $key_pressed = 1; $idle = 0; @keys_pressed = (); $key_preput = ""; } elsif ((scalar(@keys_pressed) == 3) and ($keys_pressed[0] == 0x1b) and ($keys_pressed[1] == 0x5b) and ($keys_pressed[2] == 0x41)) { # Detect control escape sequences # Up Arrow = #1b #5b #41 $key_pressed = 1; $idle = 0; @keys_pressed = (); $key_preput = "yes"; } else { $key_pressed = 0; $idle = 0; }; # Pipe full output lines from PocketMine-MP if ((defined $pm_stdout_h) && (pipe_lines($pm_stdout_h,$pm_stdout_buffer,'<'))) { $idle = 0; }; if ((defined $pm_stderr_h) && (pipe_lines($pm_stderr_h,$pm_stderr_buffer,'!'))) { $idle = 0; }; # If keyboard pressed '/' or up-arrow earlier, capture a line of input if ($key_pressed) { if ($key_preput eq "") { $key_buffer = readline_signaltrap($term,'/'); $term->add_history($key_buffer) unless ($key_buffer eq ""); } else { $key_preput = $term->history_get($term->Attribs->{history_length}); $term->remove_history($term->Attribs->{history_length}-1); $key_buffer = readline_signaltrap($term,'/',$key_preput); $term->add_history($key_preput); $term->add_history($key_buffer) unless ($key_buffer eq ""); $key_preput = ""; }; }; # Pipe full output lines from PocketMine-MP (Again) if ((defined $pm_stdout_h) && (pipe_lines($pm_stdout_h,$pm_stdout_buffer,'<'))) { $idle = 0; }; if ((defined $pm_stderr_h) && (pipe_lines($pm_stderr_h,$pm_stderr_buffer,'!'))) { $idle = 0; }; # Write the line of input from keyboard into PocketMine-MP's STDIN if ($key_buffer ne "") { printf $pm_stdin_h $key_buffer . "\n"; $key_buffer = ""; }; # Check if PocketMine-MP is still running my $res = waitpid($pmmp_pid, WNOHANG); if ($res == -1) { $result = $? >> 8; printf "Some error occurred %d\n", $result; last; }; if ($res) { $result = $? >> 8; printf "PocketMine-MP ended with error code %d\n", $result; my $count_down = 5; print "Stopping container in:\n"; while ($count_down >= 0) { printf "\t%d%s\n", $count_down, ($count_down>0)?("..."):("."); $count_down -= 1; sleep(1); }; print "Goodbye\n"; last; }; sleep(0.1); }; ReadMode('normal'); close($pm_stdin_h) if defined $pm_stdin_h; close($pm_stdout_h) if defined $pm_stdout_h; close($pm_stderr_h) if defined $pm_stderr_h; exit($result); sub pipe_lines { my $fh = $_[0]; my $buf = $_[1]; my $prefix = $_[2]; my $key = ""; my $result = 0; $key = ReadKey(-1, $fh); while (defined $key) { $result = 1; $buf .= $key; if ($key eq "\n") { print $prefix . $buf; $buf = ""; }; $key = ReadKey(-1, $fh); }; $_[1] = $buf; return $result; }; sub readline_signaltrap { my $term = shift; my $prompt = shift; my $preput; my $child_pid; my $wait = 1; my $segment_id = shmget (IPC_PRIVATE, 0x1000, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR); if (scalar(@_) > 0) { $preput = shift; }; if ($child_pid = fork) { my $value; $SIG{INT} = sub { print "CTRL+C\n"; $wait = 0; }; $SIG{TSTP} = sub { }; print "DEBUG (parent)\n" if ($DEBUG); while ($wait and not waitpid($child_pid, WNOHANG)) { sleep(0.1); }; if (not $wait) { print "DEBUG POST CTRL+C\n" if ($DEBUG); kill 'KILL', $child_pid; print "DEBUG POST KILL\n" if ($DEBUG); $value = ""; } else { print "DEBUG CHILD RETURNED\n" if ($DEBUG); shmread($segment_id, $value, 0, 0x1000); print "DEBUG SHM READ\n" if ($DEBUG); }; shmctl($segment_id, IPC_RMID, 0); $value =~ s/\0//g; return $value; } else { my $value; print "DEBUG (child)\n" if ($DEBUG); ReadMode('normal'); $|=1; if (defined $preput) { $value = $term->readline($prompt,$preput); } else { $value = $term->readline($prompt); }; $|=0; ReadMode('raw'); shmwrite($segment_id, $value, 0, 0x1000) || die "$!"; exit(0); }; };
48,494
https://github.com/mikyprog/LocationBundle/blob/master/DataFixtures/ORM/LoadLocationData.php
Github Open Source
Open Source
MIT
null
LocationBundle
mikyprog
PHP
Code
85
374
<?php /** * Created by PhpStorm. * User: miky * Date: 22/08/16 * Time: 00:06 */ namespace Miky\Bundle\LocationBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerInterface; class LoadLocationData extends AbstractFixture implements OrderedFixtureInterface, ContainerAwareInterface { /** * @var ContainerInterface */ private $container; public function setContainer(ContainerInterface $container = null) { $this->container = $container; } public function load(ObjectManager $manager) { $locationManager = $this->container->get('miky_location_manager'); $location = $locationManager->createLocation(); $location->setCity('test'); $location1 = $locationManager->createLocation(); $location1->setCity('admin'); $locationManager->updateLocation($location); $locationManager->updateLocation($location1); $this->addReference('location', $location); $this->addReference('location1', $location1); } public function getOrder() { return 1; } }
28,305
https://github.com/lhagemann/jenkins-oci-plugin/blob/master/src/main/java/org/jenkinsci/plugins/oci/cloud/OCICloud.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, UPL-1.0
2,017
jenkins-oci-plugin
lhagemann
Java
Code
869
2,677
/** * Jenkins OCI Plugin * * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. * Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. */ package org.jenkinsci.plugins.oci.cloud; import static com.cloudbees.plugins.credentials.CredentialsMatchers.anyOf; import static com.cloudbees.plugins.credentials.CredentialsMatchers.instanceOf; import java.net.InetAddress; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.Future; import java.util.logging.Level; import java.util.logging.Logger; import org.jenkinsci.plugins.oci.cloud.Messages; import org.jenkinsci.plugins.oci.credentials.OCICredentials; import org.kohsuke.stapler.AncestorInPath; import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.QueryParameter; import com.cloudbees.plugins.credentials.CredentialsProvider; import com.cloudbees.plugins.credentials.common.StandardListBoxModel; import com.cloudbees.plugins.credentials.domains.DomainRequirement; import com.oracle.bmc.core.model.Instance; import hudson.Extension; import hudson.model.Computer; import hudson.model.Descriptor; import hudson.model.Item; import hudson.model.Label; import hudson.model.Node; import hudson.security.ACL; import hudson.slaves.Cloud; import hudson.slaves.NodeProvisioner; import hudson.slaves.NodeProvisioner.PlannedNode; import hudson.util.ListBoxModel; import jenkins.model.Jenkins; public class OCICloud extends Cloud { private static final Logger LOGGER = Logger.getLogger(OCICloud.class.getName()); private final String credentialsId; private final List<OCISlaveTemplate> templates; private transient OCIApi api; private final int nodesMax; private final int timeout; @DataBoundConstructor public OCICloud(String credentialsId, String name, Node.Mode mode, int timeout, int nodesMax, List<OCISlaveTemplate> templates) { super(name); this.credentialsId = credentialsId; this.nodesMax = nodesMax; this.timeout = timeout; this.templates = (templates == null) ? Collections.emptyList() : templates; readResolve(); } /** * This method is called on deserialization of OCICloud from config.xml * * @return self */ protected Object readResolve() { LOGGER.log(Level.INFO, "Initializing OCIApi"); try { this.api = new OCIApi(credentialsId); } catch (Exception e) { LOGGER.log(Level.SEVERE, "Could not initialize API"); this.api = null; } return this; } @Override public boolean canProvision(Label label) { LOGGER.log(Level.FINE, "checking whether we can provision {0}", label); return getFirstMatchingTemplate(label) != null; } /** * Get first template matching given label. * * <pre> * The precedence is as follows: * 1. First template matching label in {@link Node.Mode#NORMAL} mode * 2. First template matching label in {@link Node.Mode#EXCLUSIVE} mode * 3. null * </pre> * * @param label * Label to match * @return Matching template, null if none found */ public OCISlaveTemplate getFirstMatchingTemplate(Label label) { OCISlaveTemplate matchingTemplate = null; for (OCISlaveTemplate template : this.templates) { if (label == null && template.getMode() == Node.Mode.NORMAL) { return template; } if (label != null && label.matches(Label.parse(template.getLabelString()))) { if (template.getMode() == Node.Mode.NORMAL) { return template; // first NORMAL matching } else { matchingTemplate = template; } } } // Returns null on empty list return matchingTemplate; } /** * Get provisioned and provisioning node count * * When node is scheduled for provisioning, its Node instance * is not created immediately, thus adding the number of scheduled nodes. * * @return provisioned and provisioning node count */ private int getTotalNodeCount() { int count = 0; // Provisioned nodes List<Node> nodes = Jenkins.getInstance().getNodes(); for (Node n : nodes) { if (n instanceof OCISlave && ((OCISlave) n).getCloudName() == this.name) { count++; LOGGER.log(Level.INFO, "Counting nodes {0}", n.getDisplayName()); } } // Nodes yet to be provisioned Jenkins jenkins = Jenkins.getInstance(); List<PlannedNode> plannedNodeList = jenkins.unlabeledNodeProvisioner.getPendingLaunches(); for (Label l : jenkins.getLabels()) { plannedNodeList.addAll(l.nodeProvisioner.getPendingLaunches()); } for (PlannedNode pn : plannedNodeList) { if (pn instanceof OCIPlannedNode && ((OCIPlannedNode) pn).getCloudName() == this.name) { count++; LOGGER.log(Level.INFO, "Counting nodes {0}", pn.displayName); } } LOGGER.log(Level.INFO, "Cloud " + this.name + " has currently {0} nodes", count); return count; } @Override public Collection<PlannedNode> provision(Label label, int excessWorkload) { LOGGER.log(Level.INFO, "New node provision request. Workload: " + excessWorkload); List<NodeProvisioner.PlannedNode> nodes = new ArrayList<>(); OCISlaveTemplate template = getFirstMatchingTemplate(label); while (excessWorkload > 0 && getTotalNodeCount() < nodesMax) { LOGGER.log(Level.INFO, "Excess workload: " + excessWorkload + " - provisioning new Jenkins slave on OCI"); int numExecutors = template.getNumExecutors(); Future<Node> futureNode = Computer.threadPoolForRemoting.submit(new ProvisionTask(template, this)); PlannedNode node = new OCIPlannedNode( this.name + "-provisioning", // name to be visible during the provisioning process... futureNode, numExecutors, this.name); nodes.add(node); excessWorkload -= template.getNumExecutors(); } return nodes; } private class ProvisionTask implements Callable<Node> { OCISlaveTemplate template; OCICloud cloud; public ProvisionTask(OCISlaveTemplate template, OCICloud cloud) { this.template = template; this.cloud = cloud; } public Node call() throws Exception { // make sure the name in OCI console refers to particular jenkins master who asked for the instance // this name is not used in jenkins UI String templateName = template.getName().equals("") ? "" : "-" + template.getName(); String cloudName = cloud.name.equals("") ? "oci" : cloud.name; String slaveBaseName = cloudName + templateName; String hostname = InetAddress.getLocalHost().getHostName(); String name_for_oci_console = hostname + "-jenkins-" + slaveBaseName; LOGGER.log(Level.INFO, "OCI Provisioning: CREATE {0}", name_for_oci_console); Instance instance = cloud.getApi().startSlave(template, name_for_oci_console, timeout); // once we got the instace from OCI generate the name for jenkins // note we're using last 6 characters from instance ocid which are the same characters that would be displayed in OCI console String i_ocid = instance.getId(); String name_for_jenkins_ui = slaveBaseName + "-" + i_ocid.substring(i_ocid.length() - 6); return new OCISlave(cloud.name, name_for_jenkins_ui, template, i_ocid); } } @Extension public static final class DescriptorImpl extends Descriptor<Cloud> { @Override public String getDisplayName() { return Messages.Cloud_Diaplay_Name(); } public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String credentialsId) { StandardListBoxModel result = new StandardListBoxModel(); if (context == null) { if (!Jenkins.getInstance().hasPermission(Jenkins.ADMINISTER)) { return result.includeCurrentValue(credentialsId); } } else { if (!context.hasPermission(Item.EXTENDED_READ) && !context.hasPermission(CredentialsProvider.USE_ITEM)) { return result.includeCurrentValue(credentialsId); } } List<DomainRequirement> domainRequirements = new ArrayList<DomainRequirement>(); return result.includeMatchingAs(ACL.SYSTEM, context, OCICredentials.class, domainRequirements, anyOf(instanceOf(OCICredentials.class))); } } public static OCICloud getCloud(String name) { Cloud cloud = Jenkins.getInstance().getCloud(name); if (cloud instanceof OCICloud) { return (OCICloud) cloud; } return null; } OCIApi getApi() { return api; } public String getCredentialsId() { return credentialsId; } public int getTimeout() { return timeout; } public int getNodesMax() { return nodesMax; } public List<OCISlaveTemplate> getTemplates() { return templates; } }
10,024
https://github.com/Ix0rK/demy/blob/master/twitter/build.sbt
Github Open Source
Open Source
BSD-3-Clause
2,018
demy
Ix0rK
Scala
Code
48
175
lazy val root = (project in file(".")). settings( name := "Scala twitter extract", scalaVersion := "2.11.8", version := "1.0", libraryDependencies += "org.twitter4j" % "twitter4j-core" % "4.0.4", libraryDependencies += "org.twitter4j" % "twitter4j-stream" % "4.0.4", libraryDependencies += "org.apache.spark" %% "spark-core" % "2.1.0", libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.1.0" )
24,478
https://github.com/intelsdi-x/intelRSD/blob/master/PSME/nvme-wheel/src/nvme-initiator-wheel/source/nvme_framework/configuration/config_manager.py
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, MIT, JSON, BSL-1.0, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-other-permissive
2,022
intelRSD
intelsdi-x
Python
Code
229
672
""" * @section LICENSE * * @copyright * Copyright (c) 2018 Intel Corporation * * @copyright * 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 * * @copyright * http://www.apache.org/licenses/LICENSE-2.0 * * @copyright * 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. * * @section DESCRIPTION """ from os import getenv from nvme_framework.helpers.database import * from nvme_framework.helpers.message import Message class Config: CONFIGURATION = dict( available_controllers=[], ) def __init__(self): self.database_path = Constants.DATABASE_FILE_PATH self.configuration_from_file = None self.create_database_file() @staticmethod def create_database_file(): # create database if not exist create_database() @staticmethod def save_available_target(tgt_address, tgt_port, tgt_name, tgt_status=None): # check that this element exist if run_check_if_exist_query(tgt_name): return False insert_element(tgt_address, tgt_port, tgt_name, tgt_status) Message.info('Found a new element %s -- %s:%s' % (tgt_name, tgt_address, tgt_port)) return True @staticmethod def get_cron_time(): return getenv('NVME_CRON', 5) @staticmethod def get_available_targets(): return get_all_rows() @staticmethod def update_status(tgt_name, tgt_status): update_element(tgt_name, tgt_status) return True @staticmethod def remove_element_by_name(tgt_name=None): len_before = run_count_query(tgt_name) remove_element(tgt_name) len_after = run_count_query(tgt_name) if len_before == len_after: Message.info('Target was found') return False return True @staticmethod def remove_all_targets(): remove_entire_table()
11,139
https://github.com/errantlinguist/tangrams-analysis/blob/master/setup.py
Github Open Source
Open Source
Apache-2.0
null
tangrams-analysis
errantlinguist
Python
Code
23
117
from setuptools import setup setup(name='tangrams_analysis', version='0.1', description='ML and analysis tools for the game \"tangrams-restricted\"', url='https://github.com/errantlinguist/tangrams-analysis', author='Todd Shore', author_email='errantlinguist+github@gmail.com', license='Apache License, Version 2.0', packages=['tangrams_analysis'])
46,850
https://github.com/maku77/dotfiles/blob/master/vim/vimrc_vundle.vim
Github Open Source
Open Source
MIT
2,023
dotfiles
maku77
Vim Script
Code
38
144
""" Enable vundle commands set nocompatible "filetype off set rtp+=~/.vim/bundle/vundle call vundle#rc() " let Vundle manage Vundle Bundle 'gmarik/vundle' Bundle 'Lokaltog/vim-powerline' " JavaScript syntax highlight Bundle 'JavaScript-syntax' " JavaScript Indent Bundle 'pangloss/vim-javascript' """ NERDTree Bundle 'scrooloose/nerdtree' Bundle 'jistr/vim-nerdtree-tabs'
17,660
https://github.com/cmnbroad/htsjdk/blob/master/src/main/java/htsjdk/samtools/filter/MappingQualityFilter.java
Github Open Source
Open Source
MIT
2,022
htsjdk
cmnbroad
Java
Code
61
178
package htsjdk.samtools.filter; import htsjdk.samtools.SAMRecord; /** * Filter things with low mapping quality. */ public class MappingQualityFilter implements SamRecordFilter { private int minimumMappingQuality = Integer.MIN_VALUE; public MappingQualityFilter(final int minimumMappingQuality) { this.minimumMappingQuality = minimumMappingQuality; } @Override public boolean filterOut(final SAMRecord record) { return record.getMappingQuality() < this.minimumMappingQuality; } @Override public boolean filterOut(final SAMRecord first, final SAMRecord second) { return filterOut(first) || filterOut(second); } }
9,360
https://github.com/vergilyn/dubbo/blob/master/vergilyn-dubbo-examples/vergilyn-consumer-examples/src/test/java/org/apache/dubbo/common/bytecode/Wrapper6.java
Github Open Source
Open Source
Apache-2.0
null
dubbo
vergilyn
Java
Code
362
1,109
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package org.apache.dubbo.common.bytecode; import java.lang.reflect.InvocationTargetException; import java.util.Map; import com.vergilyn.examples.api.ProviderFirstApi; import org.apache.dubbo.common.bytecode.ClassGenerator.DC; /** * provider 生成 {@linkplain ProviderFirstApi} 的包装类。 * <p> * classname: Wrapper{id} -> id = {@link org.apache.dubbo.common.bytecode.Wrapper.WRAPPER_CLASS_COUNTER#getAndIncrement()}; * * @see Wrapper#makeWrapper(java.lang.Class) * @see `Wrapper6.class` */ public class Wrapper6 extends Wrapper implements DC { // property name array. public static String[] pns; // new String[0] // property type map, <property name, property types> public static Map pts; // Map<String, Class<?>> pts = new HashMap<>(); // method names. public static String[] mns; // new String[2]{"sayHello", "sayGoodbye"} // declaring method names. public static String[] dmns; // new String[2]{"sayHello", "sayGoodbye"} // 方法对应的 parameter-types, mts[i] 指的就是 dms[i]这个方法的方法参数 public static Class[] mts0; // new Class[2]{String.class, long} public static Class[] mts1; // new Class[2]{String.class, long} // public static Class[] mts{0...N}; public String[] getPropertyNames() { return pns; } public boolean hasProperty(String var1) { return pts.containsKey(var1); } public Class getPropertyType(String var1) { return (Class)pts.get(var1); } public String[] getMethodNames() { return mns; } public String[] getDeclaredMethodNames() { return dmns; } public void setPropertyValue(Object var1, String var2, Object var3) { try { ProviderFirstApi var4 = (ProviderFirstApi)var1; } catch (Throwable var6) { throw new IllegalArgumentException(var6); } throw new NoSuchPropertyException("Not found property \"" + var2 + "\" field or setter method in class com.vergilyn.examples.api.ProviderFirstApi."); } public Object getPropertyValue(Object var1, String var2) { try { ProviderFirstApi var3 = (ProviderFirstApi)var1; } catch (Throwable var5) { throw new IllegalArgumentException(var5); } throw new NoSuchPropertyException("Not found property \"" + var2 + "\" field or setter method in class com.vergilyn.examples.api.ProviderFirstApi."); } /** * @param var1 bean * @param var2 method name * @param var3 method parameter-types * @param var4 parameter values */ public Object invokeMethod(Object var1, String var2, Class[] var3, Object[] var4) throws InvocationTargetException { ProviderFirstApi var5; try { var5 = (ProviderFirstApi)var1; } catch (Throwable var8) { throw new IllegalArgumentException(var8); } try { if ("sayHello".equals(var2) && var3.length == 2) { return var5.sayHello((String)var4[0], ((Number)var4[1]).longValue()); } if ("sayGoodbye".equals(var2) && var3.length == 2) { return var5.sayGoodbye((String)var4[0], ((Number)var4[1]).longValue()); } } catch (Throwable var9) { throw new InvocationTargetException(var9); } throw new NoSuchMethodException("Not found method \"" + var2 + "\" in class com.vergilyn.examples.api.ProviderFirstApi."); } public Wrapper6() { } }
17,904
https://github.com/qieq/DeezerJsonApiWrapperNet/blob/master/DeezerJsonApiWrapperNet/SerializationHelper.cs
Github Open Source
Open Source
MIT
null
DeezerJsonApiWrapperNet
qieq
C#
Code
381
1,510
using log4net; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace DeezerJsonApiWrapperNet { public class SerializationHelper { private readonly IRuntime _currentRuntime; private static readonly ILog Logger = LogManager.GetLogger(typeof(SerializationHelper)); public SerializationHelper(IRuntime currentRuntime) { _currentRuntime = currentRuntime; } public Task<T> DeserializeEntityFromJsonNodeData<T>(string jsonContent) where T : JsonDeserialized, IDefaultSelfProvider<T>, new() { return DeserializeEntityFromJsonNode<T>(jsonContent, "data"); } public Task<T> DeserializeEntityFromJsonNode<T>(string jsonContent, string nodeKey) where T : JsonDeserialized, IDefaultSelfProvider<T>, new() { if (TryGetParsedJsonContent(jsonContent, nodeKey, out string parsingResult, out _)) { return DeserializeEntity<T>(parsingResult); } if (Logger.IsDebugEnabled) { Logger.Debug($"Nothing found in {jsonContent}\nby key '{nodeKey}'.\n\tReturning default value for {typeof(T)}."); } var t = new T(); return Task.FromResult(t.CreateDefault()); } public Task<PagedList<T>> DeserializeMultipleEntitiesFromJsonNodeData<T>(string jsonContent) where T : JsonDeserialized { if (TryGetParsedJsonContent(jsonContent, "data", out string parsingResult, out string nextUri)) { var array = JArray.Parse(parsingResult); return Task.Run(() => DeserializeMultipleEntitiesFromJsonArray<T>(array, nextUri)); } if (Logger.IsDebugEnabled) { Logger.Debug($"No objects can be parsed from {jsonContent}.\n\tReturning empty list of {typeof(T)}."); } return Task.FromResult(new PagedList<T>(string.Empty)); } public Task<PagedList<T>> DeserializeMultipleEntitiesFromJsonNode<T>(string jsonContent, string nodeKey) where T : JsonDeserialized { if (TryGetParsedJsonContent(jsonContent, nodeKey, out string parsingResult, out string nextUri)) { var array = JArray.Parse(parsingResult); return Task.Run(() => DeserializeMultipleEntitiesFromJsonArray<T>(array, nextUri)); } if (Logger.IsDebugEnabled) { Logger.Debug($"No objects can be parsed from {jsonContent}\nby key '{nodeKey}'.\n\tReturning empty list of {typeof(T)}."); } return Task.FromResult(new PagedList<T>(string.Empty)); } public Task<PagedList<T>> DeserializeMultipleEntitiesFromJsonNodeData<T>(string jsonContent, string nodeKey) where T : JsonDeserialized { if (TryGetParsedJsonContent(jsonContent, nodeKey, out string jsonResult, out string nextUri) && TryGetParsedJsonContent(jsonResult, "data", out string nodeResult, out _)) { var array = JArray.Parse(nodeResult); return Task.Run(() => DeserializeMultipleEntitiesFromJsonArray<T>(array, nextUri)); } if (Logger.IsDebugEnabled) { Logger.Debug($"No objects can be parsed from {jsonContent}\nby key '{nodeKey}'.\n\tReturning empty list of {typeof(T)}."); } return Task.FromResult(new PagedList<T>(string.Empty)); } private bool TryGetParsedJsonContent(string jsonContent, string nodeKey, out string content, out string nextUri) { content = String.Empty; nextUri = string.Empty; if (String.IsNullOrWhiteSpace(jsonContent) || String.IsNullOrWhiteSpace(nodeKey)) { throw new ArgumentException($"{nameof(jsonContent)} or {nameof(nodeKey)} is empty!"); } var jsonResult = JsonConvert.DeserializeObject<Dictionary<string, object>>(jsonContent); if (jsonResult.ContainsKey("error")) { if (Logger.IsDebugEnabled) { Logger.Debug(jsonResult["error"].ToString()); } return false; } if (!jsonResult.ContainsKey(nodeKey)) { return false; } if (jsonResult.ContainsKey("next")) { nextUri = jsonResult["next"].ToString(); } content = jsonResult[nodeKey].ToString(); return true; } private async Task<PagedList<T>> DeserializeMultipleEntitiesFromJsonArray<T>(JArray jsonArrayContent, string nextUri) where T : JsonDeserialized { var entities = new PagedList<T>(nextUri); foreach (var entityJson in jsonArrayContent) { entities.Add(await DeserializeEntity<T>(entityJson.ToString())); } return entities; } public Task<T> DeserializeEntity<T>(string jsonContent) where T : JsonDeserialized { return Task.Run(() => { var entity = JsonConvert.DeserializeObject<T>(jsonContent); entity.Init(jsonContent, _currentRuntime); return entity; }); } } }
12,107
https://github.com/sjorek/runtime-capability/blob/master/tests/Unit/Detection/ShellEscapeDetectorTest.php
Github Open Source
Open Source
BSD-3-Clause
2,018
runtime-capability
sjorek
PHP
Code
327
1,388
<?php declare(strict_types=1); /* * This file is part of the Runtime Capability project. * * (c) Stephan Jorek <stephan.jorek@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sjorek\RuntimeCapability\Tests\Unit\Detection; use Sjorek\RuntimeCapability\Detection\ShellEscapeDetector; use Sjorek\RuntimeCapability\Exception\ConfigurationFailure; use Sjorek\RuntimeCapability\Tests\Fixtures\Configuration\ConfigurationTestFixture; use Sjorek\RuntimeCapability\Tests\Unit\AbstractTestCase; /** * ShellEscapeDetector test case. * * @coversDefaultClass \Sjorek\RuntimeCapability\Detection\ShellEscapeDetector */ class ShellEscapeDetectorTest extends AbstractTestCase { /** * @var ShellEscapeDetector */ private $subject; /** * Prepares the environment before running a test. */ protected function setUp() { parent::setUp(); unset($GLOBALS['Sjorek\\RuntimeCapability\\Detection']); require_once str_replace( ['/Unit/', '.php'], ['/Fixtures/', 'Fixture.php'], __FILE__ ); $this->subject = (new ShellEscapeDetector())->setConfiguration(new ConfigurationTestFixture()); } /** * Cleans up the environment after running a test. */ protected function tearDown() { $this->subject = null; unset($GLOBALS['Sjorek\\RuntimeCapability\\Detection']); parent::tearDown(); } /** * @covers ::setup */ public function testSetup() { $config = new ConfigurationTestFixture(['compact-result' => true, 'charset' => 'utf8']); $actual = $this->subject->setConfiguration($config)->setup(); $this->assertAttributeSame(false, 'compactResult', $actual); $this->assertAttributeSame('UTF-8', 'charset', $actual); } /** * @covers ::setup */ public function testSetupWithUnknownCharset() { $config = new ConfigurationTestFixture(['charset' => 'unknown']); $actual = $this->subject->setConfiguration($config)->setup(); $this->assertAttributeSame('auto', 'charset', $actual); } /** * @covers ::setup */ public function testSetupWithInvalidCharsetThrowsException() { $this->subject->setConfiguration( new ConfigurationTestFixture(['charset' => 'invalid']) ); $this->expectException(ConfigurationFailure::class); $this->expectExceptionMessage('Invalid configuration value for key "charset": invalid'); $this->expectExceptionCode(1521291497); $this->subject->setup(); } /** * @covers ::evaluateWithDependency * @testWith [true, "27c3a4c3b6c3bc27"] * [false, "27c3a4c3b6c3bc27", "ISO-8859-1"] * [false, "27c3a4c3b6c3bc27", "UTF-8", "ISO-8859-1", "ISO-8859-1"] * [false, "27c3a4c3b6c3bc27", "UTF-8", "UTF-8", "UTF-8", "Windows"] * [true, "22c3a4c3b6c3bc22", "UTF-8", "UTF-8", "UTF-8", "Windows"] * [true, "27c3a4c3b6c3bc27", "UTF-8", "ISO-8859-1", "ISO-8859-1", "Linux", 50599] * [true, "22c3a4c3b6c3bc22", "UTF-8", "ISO-8859-1", "ISO-8859-1", "Windows", 50599] * * @param bool $expect * @param string $charset * @param string $escapeshellarg * @param array $dependencies */ public function testEvaluateWithDependency( bool $expect, string $escapeshellarg, string $charset = 'UTF-8', string $localeCharset = 'UTF-8', string $defaultCharset = 'UTF-8', string $osFamily = 'Linux', int $verionId = 70000) { $this->subject->setConfiguration(new ConfigurationTestFixture(['charset' => $charset]))->setup(); $namespace = 'Sjorek\\RuntimeCapability\\Detection'; $GLOBALS[$namespace]['escapeshellarg'] = hex2bin($escapeshellarg); $this->subject->setDependencyResults( ['os-family' => $osFamily, 'version-id' => $verionId], [LC_CTYPE => $localeCharset], $defaultCharset ); $actual = $this->subject->detect(); $this->assertInternalType('boolean', $actual); $this->assertSame($expect, $actual); unset($GLOBALS[$namespace]['escapeshellarg']); } }
48,687
https://github.com/oberasoftware/jasdb/blob/master/jasdb-service/src/main/java/com/oberasoftware/jasdb/service/local/LocalUserAdministration.java
Github Open Source
Open Source
MIT, X11, Unlicense
2,021
jasdb
oberasoftware
Java
Code
157
574
package com.oberasoftware.jasdb.service.local; import com.oberasoftware.jasdb.api.session.UserAdministration; import com.oberasoftware.jasdb.api.security.AccessMode; import com.oberasoftware.jasdb.api.security.SessionManager; import com.oberasoftware.jasdb.api.security.UserManager; import com.oberasoftware.jasdb.api.security.UserSession; import com.oberasoftware.jasdb.api.exceptions.JasDBSecurityException; import com.oberasoftware.jasdb.api.exceptions.JasDBStorageException; import java.util.List; /** * @author Renze de Vries */ public class LocalUserAdministration implements UserAdministration { private UserSession session; private UserManager userManager; private SessionManager sessionManager; public LocalUserAdministration(UserSession session) throws JasDBStorageException { this.session = session; userManager = ApplicationContextProvider.getApplicationContext().getBean(UserManager.class); sessionManager = ApplicationContextProvider.getApplicationContext().getBean(SessionManager.class); } @Override public void addUser(String username, String allowedHost, String password) throws JasDBStorageException { validateSession(); userManager.addUser(session, username, allowedHost, password); } @Override public void deleteUser(String username) throws JasDBStorageException { validateSession(); userManager.deleteUser(session, username); } @Override public List<String> getUsers() throws JasDBStorageException { return userManager.getUsers(session); } @Override public void grant(String username, String object, AccessMode mode) throws JasDBStorageException { validateSession(); userManager.grantUser(session, object, username, mode); } @Override public void revoke(String username, String object) throws JasDBStorageException { validateSession(); userManager.revoke(session, object, username); } private void validateSession() throws JasDBStorageException { if(session == null || !sessionManager.sessionValid(session.getSessionId())) { throw new JasDBSecurityException("Unable to change security principals, not logged in or session expired"); } } }
29,550
https://github.com/OrcaWorkflows/orca/blob/master/operators/configs/config_checker.py
Github Open Source
Open Source
Apache-2.0
null
orca
OrcaWorkflows
Python
Code
14
51
from configs.constants import Constants class ConfigChecker: @staticmethod def is_key_valid(key): return key not in Constants.get_api_check_keys()
12,369
https://github.com/OhmGnome/svm-hr-survey-front/blob/master/src/app/core/model/userSessionCard.ts
Github Open Source
Open Source
MIT
2,018
svm-hr-survey-front
OhmGnome
TypeScript
Code
18
53
export class UserSessionCard{ id: number userSessionId: number cardId: number isTop15: boolean isGreen: boolean isRed: boolean isMoreCritical: boolean }
48,384
https://github.com/aszecsei/Crimson/blob/master/Crimson/VirtualMap3.cs
Github Open Source
Open Source
MIT
null
Crimson
aszecsei
C#
Code
566
1,341
namespace Crimson { public class VirtualMap3<T> { public const int SEGMENT_SIZE = 50; public readonly T EmptyValue; public readonly int Columns; public readonly int Rows; public readonly int Slices; public readonly int SegmentColumns; public readonly int SegmentRows; public readonly int SegmentSlices; private readonly T[,,][,,] _segments; public VirtualMap3(int columns, int rows, int slices, T emptyValue = default) { Columns = columns; Rows = rows; Slices = slices; SegmentColumns = columns / SEGMENT_SIZE + 1; SegmentRows = rows / SEGMENT_SIZE + 1; SegmentSlices = slices / SEGMENT_SIZE + 1; _segments = new T[SegmentColumns, SegmentRows, SegmentSlices][,,]; EmptyValue = emptyValue; } public VirtualMap3(T[,,] map, T emptyValue = default) : this(map.GetLength(0), map.GetLength(1), map.GetLength(2), emptyValue) { for (var x = 0; x < Columns; x++) for (var y = 0; y < Rows; y++) for (var z = 0; z < Slices; z++) this[x, y, z] = map[x, y, z]; } public T this[int x, int y, int z] { get { var cx = x / SEGMENT_SIZE; var cy = y / SEGMENT_SIZE; var cz = z / SEGMENT_SIZE; var seg = _segments[cx, cy, cz]; if (seg == null) return EmptyValue; return seg[x - cx * SEGMENT_SIZE, y - cy * SEGMENT_SIZE, z - cz * SEGMENT_SIZE]; } set { var cx = x / SEGMENT_SIZE; var cy = y / SEGMENT_SIZE; var cz = z / SEGMENT_SIZE; if (_segments[cx, cy, cz] == null) { _segments[cx, cy, cz] = new T[SEGMENT_SIZE, SEGMENT_SIZE, SEGMENT_SIZE]; // fill with custom empty value data if (EmptyValue != null && !EmptyValue.Equals(default(T))) for (var tx = 0; tx < SEGMENT_SIZE; tx++) for (var ty = 0; ty < SEGMENT_SIZE; ty++) for (var tz = 0; tz < SEGMENT_SIZE; tz++) _segments[cx, cy, cz][tx, ty, tz] = EmptyValue; } _segments[cx, cy, cz][x - cx * SEGMENT_SIZE, y - cy * SEGMENT_SIZE, z - cz * SEGMENT_SIZE] = value; } } public bool AnyInSegmentAtTile(int x, int y, int z) { var cx = x / SEGMENT_SIZE; var cy = y / SEGMENT_SIZE; var cz = z / SEGMENT_SIZE; return _segments[cx, cy, cz] != null; } public bool AnyInSegment(int segmentX, int segmentY, int segmentZ) { return _segments[segmentX, segmentY, segmentZ] != null; } public T InSegment(int segmentX, int segmentY, int segmentZ, int x, int y, int z) { return _segments[segmentX, segmentY, segmentZ][x, y, z]; } public T[,,] GetSegment(int segmentX, int segmentY, int segmentZ) { return _segments[segmentX, segmentY, segmentZ]; } public T SafeCheck(int x, int y, int z) { if (x >= 0 && y >= 0 && z >= 0 && x < Columns && y < Rows && z < Slices) return this[x, y, z]; return EmptyValue; } public bool IsInBounds(int x, int y, int z) { return (x >= 0 && y >= 0 && z >= 0 && x < Columns && y < Rows && z < Slices); } public T[,,] ToArray() { var array = new T[Columns, Rows, Slices]; for (var x = 0; x < Columns; x++) for (var y = 0; y < Rows; y++) for (var z = 0; z < Slices; z++) array[x, y, z] = this[x, y, z]; return array; } public VirtualMap3<T> Clone() { var clone = new VirtualMap3<T>(Columns, Rows, Slices, EmptyValue); for (var x = 0; x < Columns; x++) for (var y = 0; y < Rows; y++) for (var z = 0; z < Slices; z++) clone[x, y, z] = this[x, y, z]; return clone; } } }
24,787
https://github.com/rizeNurseportal/nurseportal/blob/master/js/input.js
Github Open Source
Open Source
MIT
2,017
nurseportal
rizeNurseportal
JavaScript
Code
73
197
function checkTextAreaMaxLength(textBox, e, length) { var mLen = textBox["MaxLength"]; if (null == mLen) mLen = length; var maxLength = parseInt(mLen); if (!checkSpecialKeys(e)) { if (textBox.value.length > maxLength - 1) { if (window.event)//IE e.returnValue = false; else//Firefox e.preventDefault(); } } } function checkSpecialKeys(e) { if (e.keyCode != 8 && e.keyCode != 46 && e.keyCode != 37 && e.keyCode != 38 && e.keyCode != 39 && e.keyCode != 40) return false; else return true; }
43,185
https://github.com/Daenges/kotlin-coding-challenges/blob/master/src/test/kotlin/com/igorwojda/string/vowels/solution.kt
Github Open Source
Open Source
MIT
2,021
kotlin-coding-challenges
Daenges
Kotlin
Code
117
318
package com.igorwojda.string.vowels // Kotlin collection processing private object Solution1 { private fun vowels(str: String): Int { val vowels = listOf('a', 'e', 'i', 'o', 'u', 'y') return str.count { it.toLowerCase() in vowels } } } // Iterative private object Solution2 { private fun vowels(str: String): Int { val vowels = listOf('a', 'e', 'i', 'o', 'u', 'y') var counter = 0 str.forEach { if (vowels.contains(it.toLowerCase())) { counter++ } } return counter } } // Recursive private object Solution3 { private fun vowels(str: String) : Int { return if (str.isNotEmpty()) { val firstChar = str[0] var containsVowel = 0 if (listOf('a', 'e', 'i', 'o', 'u').contains(firstChar)) { containsVowel = 1 } vowels(str.substring(1)) + containsVowel } else { 0 } } }
38,618
https://github.com/igorsilva3/calculator-python/blob/master/app/program.py
Github Open Source
Open Source
MIT
2,021
calculator-python
igorsilva3
Python
Code
123
822
from PySide2 import QtGui, QtCore, QtWidgets from app.interface import Ui_MainWindow class Calculator(QtWidgets.QMainWindow, Ui_MainWindow): def __init__(self): super(Calculator, self).__init__() self.setupUi(self) self.numbers = "" self.btn0.clicked.connect(lambda: self.set_text_display(self.btn0.text())) self.btn1.clicked.connect(lambda: self.set_text_display(self.btn1.text())) self.btn2.clicked.connect(lambda: self.set_text_display(self.btn2.text())) self.btn3.clicked.connect(lambda: self.set_text_display(self.btn3.text())) self.btn4.clicked.connect(lambda: self.set_text_display(self.btn4.text())) self.btn5.clicked.connect(lambda: self.set_text_display(self.btn5.text())) self.btn6.clicked.connect(lambda: self.set_text_display(self.btn6.text())) self.btn7.clicked.connect(lambda: self.set_text_display(self.btn7.text())) self.btn8.clicked.connect(lambda: self.set_text_display(self.btn8.text())) self.btn9.clicked.connect(lambda: self.set_text_display(self.btn9.text())) self.btnVirg.clicked.connect(lambda: self.set_text_display(self.btnVirg.text())) self.btnMult.clicked.connect(lambda: self.set_text_display(self.btnMult.text())) self.btnSub.clicked.connect(lambda: self.set_text_display(self.btnSub.text())) self.btnAdic.clicked.connect(lambda: self.set_text_display(self.btnAdic.text())) self.btnDiv.clicked.connect(lambda: self.set_text_display(self.btnDiv.text())) self.btnParent1.clicked.connect(lambda: self.set_text_display(self.btnParent1.text())) self.btnParent2.clicked.connect(lambda: self.set_text_display(self.btnParent2.text())) self.btnClear.clicked.connect(lambda: self.clear()) self.btnResult.clicked.connect(lambda: self.calculation()) def set_text_display(self, num): self.numbers = self.numbers + num self.display.setText(self.numbers) def calculation(self): """ Returns the calculation of the equation on the display """ try: # Performs the calculation result = str(eval(self.numbers)) # Reset the numbers self.numbers = "" # Clear the display self.display.setText(self.numbers) # Puts the result on the display self.set_text_display(result) except: self.numbers = "" self.display.setText(self.numbers) self.set_text_display(" error ") def clear(self): self.numbers = "" self.display.setText("0")
21,544
https://github.com/ewenhoki/mathunpad/blob/master/resources/views/auth/login.blade.php
Github Open Source
Open Source
MIT
null
mathunpad
ewenhoki
PHP
Code
422
1,753
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Math Unpad - Login</title> <link rel="icon" type="image/png" sizes="16x16" href="{{asset('admin/img/logo-unpad.png')}}"> <link href="{{asset('admin/assets/libs/sweetalert2/dist/sweetalert2.min.css')}}" rel="stylesheet" type="text/css"> <link href="{{asset('admin/dist/css/style.css')}}" rel="stylesheet"> <!-- This page CSS --> <link href="{{asset('admin/dist/css/pages/authentication.css')}}" rel="stylesheet"> <!-- This page CSS --> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="main-wrapper"> <!-- ============================================================== --> <!-- Preloader - style you can find in spinners.css --> <!-- ============================================================== --> <div class="preloader"> <div class="loader"> <div class="loader__figure"></div> <p class="loader__label">Loading...</p> </div> </div> <!-- ============================================================== --> <!-- Preloader - style you can find in spinners.css --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- Login box.scss --> <!-- ============================================================== --> <div class="auth-wrapper d-flex no-block justify-content-center align-items-center" style="background:url({{asset('admin/assets/images/big/auth-bg5.png')}}) no-repeat left center;"> <div class="container"> <div class="row"> <div class="col s12 l8 m6 demo-text"> <span class="db"><img width="50" height="50" src="{{asset('admin/img/logo-unpad.png')}}" alt="logo" /></span> <span class="db"><img width="155" height="25" src="{{asset('admin/img/hitam.png')}}" alt="logo" /></span> <h1 class="font-light m-t-40">Selamat Datang di <br><span class="font-medium black-text"> Departemen Matematika FMIPA Unpad</span></h1> <p>Silakan login untuk melakukan pengajuan tugas akhir.</p> <a href="/" class="btn btn-round red m-t-5">Beranda</a> </div> </div> <div class="auth-box auth-sidebar"> <div id="loginform"> <div class="p-l-10"> <h5 class="font-medium m-b-0 m-t-40">Sign In</h5> <small>Masukan email dan kata sandi untuk login.</small> </div> <br> <!-- Form --> <div class="row"> {!! Form::open(['url' => '/postlogin','class'=>'col s12']) !!} <div class="row"> <div class="input-field col s12"> {!! Form::email('email','', ['class'=>'validate','required','id'=>'email']) !!} <label for="email">Email</label> </div> </div> <div class="row"> <div class="input-field col s12"> {!! Form::password('password', ['class'=>'validate','required','id'=>'password']) !!} <label for="password">Kata Sandi</label> </div> </div> <div class="row m-t-5"> <div class="col s7"> <label> <input type="checkbox" onclick="myFunction()"> <span>Lihat Kata Sandi</span> </label> </div> <div class="col s5 right-align"><a href="{{ route('password.request') }}">{{ __('Lupa Kata Sandi ?') }}</a></div> </div> <div class="row m-t-40"> <div class="col s12"> <button class="btn-large w100 blue accent-4" type="submit">Login</button> </div> </div> {!! Form::close() !!} </div> <div class="center-align m-t-20 db"> Belum punya akun ? <a href="/register">Daftar di sini !</a> </div> </div> </div> </div> </div> </div> <!-- ============================================================== --> <!-- All Required js --> <!-- ============================================================== --> <script src="{{asset('admin/assets/libs/sweetalert2/dist/sweetalert2.min.js')}}"></script> <script src="{{asset('admin/assets/libs/jquery/dist/jquery.min.js')}}"></script> <script src="{{asset('admin/dist/js/materialize.min.js')}}"></script> <!-- ============================================================== --> <!-- This page plugin js --> <!-- ============================================================== --> <script> function myFunction() { var x = document.getElementById("password"); if (x.type === "password") { x.type = "text"; } else { x.type = "password"; } } // ============================================================== // Login and Recover Password // ============================================================== $('#to-recover').on("click", function() { $("#loginform").slideUp(); $("#recoverform").fadeIn(); }); $(function() { $(".preloader").fadeOut(); }); </script> @if(session('berhasil')) <script> swal("Registrasi Berhasil !", "Terima kasih telah mendaftar.", "success"); </script> @endif @if(session('gagal')) <script> swal("Login Gagal !", "Email and kata sandi tidak cocok.", "error"); </script> @endif </body> </html>
33,575
https://github.com/udoprog/OxidizeBot/blob/master/crates/oxidize-common/src/models/spotify.rs
Github Open Source
Open Source
MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
OxidizeBot
udoprog
Rust
Code
67
130
//! All Spotify API endpoint response object //! //! Copied under the MIT license from: <https://github.com/ramsayleung/rspotify>. pub mod album; pub mod artist; pub mod audio; pub mod category; pub mod context; pub mod cud_result; pub mod device; pub mod image; pub mod offset; pub mod page; pub mod playing; pub mod playlist; pub mod recommend; pub mod search; pub mod senum; pub mod track; pub mod user;
23,294
https://github.com/Pascu999/RecolectaESP/blob/master/RecolectaFront/src/app/pages/vehiculoRegistrar/vehiculoRegistrar.component.ts
Github Open Source
Open Source
MIT
2,021
RecolectaESP
Pascu999
TypeScript
Code
1,035
3,773
import { HttpErrorResponse } from '@angular/common/http'; import { Component, NgModule, OnInit } from '@angular/core'; import { NgForm } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { Municipio } from 'src/app/models/municipio'; import { Ruta } from 'src/app/models/ruta'; import { Tipo } from 'src/app/models/tipo'; import { Vehiculo, VehiculoRegistro } from 'src/app/models/vehiculo'; import { VehiculoRegistrarService } from 'src/app/services/vehiculoRegistrar.service'; import Swal from 'sweetalert2'; //Interfaz para mapear la lista de municipios interface municipioLista { municipio_id: number; municipio_nombre: string; } //Interfaz para mapear la lista de rutas asociada a un municipio interface rutaLista { ruta_id: number; ruta_nombre: string; } //Interfaz para mapear la lista de marcas de vehiculo interface marcaVehiculo { vehiculo_marca_codigo: number; vehiculo_marca: string; } //Interfaz para mapear la lista de modelos de vehiculo interface modeloVehiculo { vehiculo_modelo_codigo: number; vehiculo_modelo: string; } //Interfaz para mapear la lista de tipos de vehiculo interface tipoLista { tipo_id: number; tipo_nombre: string; } //Interfaz para mapear los estados disponibles interface estadoLista { estado_id: number; estado_nombre: string; } @Component({ selector: 'app-vehiculoRegistrar', templateUrl: './vehiculoRegistrar.component.html', styleUrls: ['./vehiculoRegistrar.component.scss'] }) export class VehiculoRegistrarComponent implements OnInit { //Lista de municipios,rutas,tipos,marcas y modelos posibles para elegir public municipios: municipioLista[] = []; public rutas: rutaLista[] = []; public tipos: tipoLista[] = []; private marcas: marcaVehiculo[] = [ { vehiculo_marca: 'Chevrolet', vehiculo_marca_codigo: 1 }, { vehiculo_marca: 'Dodge', vehiculo_marca_codigo: 2 }, { vehiculo_marca: 'Ford', vehiculo_marca_codigo: 3 }, { vehiculo_marca: 'Hino', vehiculo_marca_codigo: 4 }, { vehiculo_marca: 'Hyundai', vehiculo_marca_codigo: 5 }, { vehiculo_marca: 'Kenworth', vehiculo_marca_codigo: 6 }, { vehiculo_marca: 'Mercedes Benz', vehiculo_marca_codigo: 7 }, { vehiculo_marca: 'Mitsubishi', vehiculo_marca_codigo: 8 }, { vehiculo_marca: 'Volvo', vehiculo_marca_codigo: 9 } ] private modelos: modeloVehiculo[] = [ { vehiculo_modelo: '2013', vehiculo_modelo_codigo: 1 }, { vehiculo_modelo: '2014', vehiculo_modelo_codigo: 2 }, { vehiculo_modelo: '2015', vehiculo_modelo_codigo: 3 }, { vehiculo_modelo: '2016', vehiculo_modelo_codigo: 4 }, { vehiculo_modelo: '2017', vehiculo_modelo_codigo: 5 }, { vehiculo_modelo: '2018', vehiculo_modelo_codigo: 6 }, { vehiculo_modelo: '2019', vehiculo_modelo_codigo: 7 }, { vehiculo_modelo: '2020', vehiculo_modelo_codigo: 8 }, { vehiculo_modelo: '2021', vehiculo_modelo_codigo: 9 } ] private estados: estadoLista[] = [ { estado_id: 1, estado_nombre: 'Activado' }, { estado_id: 0, estado_nombre: 'Desactivado' } ] //Objetos de tipo municipoLista con los que se llenara la lista de municipios private municipioAux: municipioLista = { municipio_id: null, municipio_nombre: null } //Objetos de tipo rutaLista con los que se llenara la lista de rutas private rutaAux: rutaLista = { ruta_id: null, ruta_nombre: null } //Objetos de tipo t ipoLista con los que se llenara la lista de tipos private tipoAux: tipoLista = { tipo_id: null, tipo_nombre: null } //Propiedades del vehiculo que se registra private contratistaId: number; private rutaIdSeleccionado: number; private marcaSeleccionada: string; private modeloSeleccionado: string; private tipoVehiculoSeleccionado: number; private pesoVehiculoSeleccionado: number; private placaVehiculoSeleccionado: string; //Propiedades del vehiculo que se edita private rutaVehiculoEditadoId: number; private marcaVehiculoEditado: string; private modeloVehiculoEditado: string; private tipoNombreVehiculoEditado: string; private tipoIdVehiculoEditado: number; private pesoVehiculoEditado: number; private placaVehiculoEditado: string; private estadoVehiculoEditado: number; private showRegistro: Boolean = false; private showEdicion: Boolean = false; private vehiculoPlacaEditar: string; private vehiculoIdEditar: number; constructor(private registrarVehiculosService: VehiculoRegistrarService, private aRoute: ActivatedRoute, private router: Router) { } ngOnInit(): void { //Se obtiene la información del contratista y de la placa del vehículo en caso de que se vaya a editar un vehículo this.vehiculoPlacaEditar = this.aRoute.snapshot.paramMap.get("vehiculo_placa") this.contratistaId = Number(localStorage.getItem("contratista_id")) this.obtenerMunicipios(); //Se comprueba si se va a registrar o editar un vehículo if (this.router.url == '/Contratistas/registrarVehiculo') { this.showRegistro = true this.obtenerTiposVehiculo(); } else if (this.vehiculoPlacaEditar != null) { this.showEdicion = true this.obtenerVehiculoEditar(this.vehiculoPlacaEditar); } } obtenerFecha(): string { let fecha: string; var today = new Date(); var dd = String(today.getDate()).padStart(2, '0'); var mm = String(today.getMonth() + 1).padStart(2, '0'); var yyyy = String(today.getFullYear()); return mm + '/' + dd + '/' + yyyy; } obtenerMunicipios() { //Se cargan los municipios que puede elegir el contratista this.registrarVehiculosService.obtenerMunicipios().subscribe( (response: Municipio[]) => { response.forEach(municipio => { this.municipioAux = { municipio_id: municipio.municipioId, municipio_nombre: municipio.municipioNombre } this.municipios.push(this.municipioAux); }) } ) } obtenerRutasMunicipio(municipio_id: number) { //Se cargan las rutas que puede elegir el contratista this.registrarVehiculosService.obtenerRutasMunicipio(municipio_id).subscribe( (response: Ruta[]) => { this.rutas = [] response.forEach(ruta => { this.rutaAux = { ruta_id: ruta.rutaId, ruta_nombre: ruta.rutaNombre } this.rutas.push(this.rutaAux); }) } ) } obtenerTiposVehiculo() { //Se cargan los tipos de vehículos que puede elegir el contratista this.registrarVehiculosService.obtenerTiposVehiculos().subscribe( (response: Tipo[]) => { response.forEach(tipo => { this.tipoAux = { tipo_id: tipo.tipoId, tipo_nombre: tipo.tipoNombre } this.tipos.push(this.tipoAux); }) } ) } //Se carga la información del vehículo en caso de que se desee editar obtenerVehiculoEditar(vehiculo_placa: string) { this.registrarVehiculosService.obtenerVehiculo(vehiculo_placa).subscribe( (response: Vehiculo) => { this.vehiculoIdEditar = response.vehiculoId; this.marcaVehiculoEditado = response.vehiculoMarca this.tipoNombreVehiculoEditado = response.tipo.tipoNombre this.tipoIdVehiculoEditado = response.tipo.tipoId this.modeloVehiculoEditado = response.vehiculoModelo this.pesoVehiculoEditado = response.vehiculoPeso this.placaVehiculoEditado = response.vehiculoPlaca this.estadoVehiculoEditado = response.vehiculoEstado this.rutaVehiculoEditadoId = response.ruta.rutaId } ) } //Creación del vehículo onCrearVehiculo() { let nuevoVehiculo: VehiculoRegistro = { contratista: { contratistaId: this.contratistaId }, ruta: { rutaId: this.rutaIdSeleccionado }, tipo: { tipoId: this.tipoVehiculoSeleccionado }, vehiculoMarca: this.marcaSeleccionada, vehiculoPlaca: this.placaVehiculoSeleccionado, vehiculoPeso: this.pesoVehiculoSeleccionado, vehiculoModelo: this.modeloSeleccionado, vehiculoFechaCreacion: this.obtenerFecha() } //Se verifica que el peso ingresado sea coherente if (nuevoVehiculo.vehiculoPeso < 0) { Swal.fire({ title: 'El peso del vehiculo debe ser mayor a cero', icon: 'error', confirmButtonText: 'Aceptar', width: '20%', backdrop: false, timer: 3000, toast: true, position: 'top-end' }) } //Se verifica que la placa cumpla con el formato establecido else if (!(/^[A-Z][A-Z][A-Z][-][0-9][0-9][0-9]/.test(nuevoVehiculo.vehiculoPlaca))) { Swal.fire({ title: 'Formato de placa no valido', text: 'La placa del vehiculo debe tener tres letras mayusculas, seguidas de un guion y tres numeros', icon: 'error', confirmButtonText: 'Aceptar', width: '20%', backdrop: false, timer: 8000, toast: true, position: 'top-end' }) } else { this.registrarVehiculosService.registrarVehiculo(nuevoVehiculo).subscribe( (response: Vehiculo) => { Swal.fire({ title: 'Vehículo registrado exitosamente', icon: 'success', confirmButtonText: 'Aceptar', width: '20%', backdrop: false, timer: 3000, toast: true, position: 'top-end' }) this.router.navigateByUrl("/Contratistas/administrarVehiculos") console.log(response); }, (error: HttpErrorResponse) => { if (error.status == 500) { Swal.fire({ title: 'Error al registrar el vehículo', text: 'Ya hay un vehículo registrado con esta placa', icon: 'error', confirmButtonText: 'Aceptar', width: '20%', padding: '1rem', heightAuto: true, backdrop: true, timer: 3000, toast: true, position: 'bottom-end' }) } } ) } } //Edicion de vehículo onEditarVehiculo(formVehiculo: NgForm) { //Vehículo que se va a editar let editadoVehiculo = { vehiculoId: this.vehiculoIdEditar, contratista: { contratistaId: this.contratistaId }, ruta: { rutaId: this.rutaVehiculoEditadoId }, tipo: { tipoId: this.tipoIdVehiculoEditado }, vehiculoMarca: this.marcaVehiculoEditado, vehiculoPlaca: this.placaVehiculoEditado, vehiculoPeso: this.pesoVehiculoEditado, vehiculoModelo: this.modeloVehiculoEditado, vehiculoFechaCreacion: this.obtenerFecha(), vehiculoEstado: this.estadoVehiculoEditado, } //edicion de vehículo this.registrarVehiculosService.editarVehiculo(editadoVehiculo, this.vehiculoIdEditar).subscribe( (response: Vehiculo) => { Swal.fire({ title: '¡Edición exitosa!', icon: 'success', confirmButtonText: 'Aceptar', width: '20%', backdrop: false, timer: 3000, toast: true, position: 'top-end' }) this.router.navigateByUrl("/Contratistas/menuVehiculos") } ) } }
28,144
https://github.com/phillipsacademyandover/andover-cm-templates/blob/master/kit/partials/module--callout--content.kit
Github Open Source
Open Source
OLDAP-2.3, OLDAP-2.7
2,015
andover-cm-templates
phillipsacademyandover
Kit
Code
54
302
<layout label="Callout Content"> <table id="callout--content" class="responsive" width="610" cellpadding="0" cellspacing="0" border="0" bgcolor="<!--$blue--bg-->"> <tbody> <tr style="border-collapse:collapse;"> <td class="responsive" width="610" height="20" colspan="3" style="font-size:20px;line-height:20px;">&nbsp;</td> </tr> <tr style="border-collapse:collapse;"> <td class="responsive-padding" width="15"></td> <td class="responsive-content" width="580"> <div align="left" class="article-content"> <multiline label="Description">Enter your description</multiline> </div> </td> <td class="responsive-padding" width="15"></td> </tr> <tr style="border-collapse:collapse;"> <td class="responsive" width="610" height="5" colspan="3" style="font-size:5px;line-height:5px;">&nbsp;</td> </tr> </tbody> </table> </layout>
48,185
https://github.com/FMInference/FlexGen/blob/master/benchmark/third_party/DeepSpeed/deepspeed/accelerator/__init__.py
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla, Apache-2.0
2,023
FlexGen
FMInference
Python
Code
9
35
from .abstract_accelerator import DeepSpeedAccelerator from .real_accelerator import get_accelerator, set_accelerator
31,654
https://github.com/xjc90s/docker-selenium/blob/master/Video/video.sh
Github Open Source
Open Source
RSA-MD, Apache-1.1
null
docker-selenium
xjc90s
Shell
Code
90
378
#!/bin/sh VIDEO_SIZE="${SE_SCREEN_WIDTH}""x""${SE_SCREEN_HEIGHT}" DISPLAY_CONTAINER_NAME=${DISPLAY_CONTAINER_NAME} DISPLAY_NUM=${DISPLAY_NUM} FILE_NAME=${FILE_NAME} FRAME_RATE=${FRAME_RATE:-$SE_FRAME_RATE} CODEC=${CODEC:-$SE_CODEC} PRESET=${PRESET:-$SE_PRESET} return_code=1 max_attempts=50 attempts=0 echo 'Checking if the display is open...' until [ $return_code -eq 0 -o $attempts -eq $max_attempts ]; do xset -display ${DISPLAY_CONTAINER_NAME}:${DISPLAY_NUM} b off > /dev/null 2>&1 return_code=$? if [ $return_code -ne 0 ]; then echo 'Waiting before next display check...' sleep 0.5 fi attempts=$((attempts+1)) done # exec replaces the video.sh process with ffmpeg, this makes easier to pass the process termination signal exec ffmpeg -y -f x11grab -video_size ${VIDEO_SIZE} -r ${FRAME_RATE} -i ${DISPLAY_CONTAINER_NAME}:${DISPLAY_NUM}.0 -codec:v ${CODEC} ${PRESET} -pix_fmt yuv420p "/videos/$FILE_NAME"
9,271
https://github.com/oyusec/oyusec.github.io/blob/master/mouse/store/user.js
Github Open Source
Open Source
MIT
2,021
oyusec.github.io
oyusec
JavaScript
Code
200
620
export const state = () => ({ profile: { progress: 0, }, }); export const getters = { getProfile: (s) => s.profile, }; export const mutations = { SET_PROFILE: (s, p) => (s.profile = p), SET_PROFILE_SOCIAL: (s, p) => (s.profile.socials = p), SET_PROFILE_FULLNAME: (s, p) => (s.profile.fullname = p), }; export const actions = { async getProfile({ commit, dispatch }, { slug }) { const { data } = await this.$axios.get(`api/user/profile/${slug}/`); commit("SET_PROFILE", data.data); }, async loginUser({ commit, dispatch }, { auth, form }) { try { await auth.loginWith("local", { data: form, }); await dispatch("getProfile", { slug: auth.user.slug, }); } catch (error) { this.$toast.error("Нууц үг эсвэл нэр буруу байна", { icon: "alert-circle", }); } }, async registerUser({ commit }, { nuxt, form }) { const { data } = await this.$axios.post("api/auth/register/", form); if (data.success) { this.$toast.success("Хаяг амжилттай нээгдлээ", { icon: "check-circle" }); return true; } else { // Gonna finish this later this.$toast.error(data.detail, { icon: "alert-circle", }); return false; } }, // Related profile async updateSocial({ commit }, { form }) { const { data } = await this.$axios.post( `api/user/edit/${this.$auth.user.id}/`, { data: form, } ); if (data.success) { commit("SET_PROFILE_SOCIAL", data.data.socials); commit("SET_PROFILE_FULLNAME", data.data.fullname); this.$toast.success("Амжилттай шинэчлэгдлээ", { icon: "check-circle", }); } }, };
47,151
https://github.com/notronwest/pickem/blob/master/index.cfm
Github Open Source
Open Source
Apache-2.0
2,020
pickem
notronwest
ColdFusion
Code
9
12
<!--- // silent action handler by framework one --->
17,418
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/KubernetesClusterBackupDataSourceSettings.Serialization.cs
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, Apache-2.0, MIT
2,023
azure-sdk-for-net
Azure
C#
Code
352
1,532
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.DataProtectionBackup.Models { public partial class KubernetesClusterBackupDataSourceSettings : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("snapshotVolumes"u8); writer.WriteBooleanValue(IsSnapshotVolumesEnabled); writer.WritePropertyName("includeClusterScopeResources"u8); writer.WriteBooleanValue(IsClusterScopeResourcesIncluded); if (Optional.IsCollectionDefined(IncludedNamespaces)) { writer.WritePropertyName("includedNamespaces"u8); writer.WriteStartArray(); foreach (var item in IncludedNamespaces) { writer.WriteStringValue(item); } writer.WriteEndArray(); } if (Optional.IsCollectionDefined(ExcludedNamespaces)) { writer.WritePropertyName("excludedNamespaces"u8); writer.WriteStartArray(); foreach (var item in ExcludedNamespaces) { writer.WriteStringValue(item); } writer.WriteEndArray(); } if (Optional.IsCollectionDefined(IncludedResourceTypes)) { writer.WritePropertyName("includedResourceTypes"u8); writer.WriteStartArray(); foreach (var item in IncludedResourceTypes) { writer.WriteStringValue(item); } writer.WriteEndArray(); } if (Optional.IsCollectionDefined(ExcludedResourceTypes)) { writer.WritePropertyName("excludedResourceTypes"u8); writer.WriteStartArray(); foreach (var item in ExcludedResourceTypes) { writer.WriteStringValue(item); } writer.WriteEndArray(); } if (Optional.IsCollectionDefined(LabelSelectors)) { writer.WritePropertyName("labelSelectors"u8); writer.WriteStartArray(); foreach (var item in LabelSelectors) { writer.WriteStringValue(item); } writer.WriteEndArray(); } writer.WritePropertyName("objectType"u8); writer.WriteStringValue(ObjectType); writer.WriteEndObject(); } internal static KubernetesClusterBackupDataSourceSettings DeserializeKubernetesClusterBackupDataSourceSettings(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } bool snapshotVolumes = default; bool includeClusterScopeResources = default; Optional<IList<string>> includedNamespaces = default; Optional<IList<string>> excludedNamespaces = default; Optional<IList<string>> includedResourceTypes = default; Optional<IList<string>> excludedResourceTypes = default; Optional<IList<string>> labelSelectors = default; string objectType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("snapshotVolumes"u8)) { snapshotVolumes = property.Value.GetBoolean(); continue; } if (property.NameEquals("includeClusterScopeResources"u8)) { includeClusterScopeResources = property.Value.GetBoolean(); continue; } if (property.NameEquals("includedNamespaces"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List<string> array = new List<string>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetString()); } includedNamespaces = array; continue; } if (property.NameEquals("excludedNamespaces"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List<string> array = new List<string>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetString()); } excludedNamespaces = array; continue; } if (property.NameEquals("includedResourceTypes"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List<string> array = new List<string>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetString()); } includedResourceTypes = array; continue; } if (property.NameEquals("excludedResourceTypes"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List<string> array = new List<string>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetString()); } excludedResourceTypes = array; continue; } if (property.NameEquals("labelSelectors"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List<string> array = new List<string>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(item.GetString()); } labelSelectors = array; continue; } if (property.NameEquals("objectType"u8)) { objectType = property.Value.GetString(); continue; } } return new KubernetesClusterBackupDataSourceSettings(objectType, snapshotVolumes, includeClusterScopeResources, Optional.ToList(includedNamespaces), Optional.ToList(excludedNamespaces), Optional.ToList(includedResourceTypes), Optional.ToList(excludedResourceTypes), Optional.ToList(labelSelectors)); } } }
33,244
https://github.com/skattyadz/codebar-planner/blob/master/db/migrate/20150409145541_create_group_announcements.rb
Github Open Source
Open Source
MIT
2,022
codebar-planner
skattyadz
Ruby
Code
22
74
class CreateGroupAnnouncements < ActiveRecord::Migration def change create_table :group_announcements do |t| t.references :announcement, index: true t.references :group, index: true t.timestamps end end end
1,845
https://github.com/Yojoe-Zhu/EwokOS/blob/master/rootfs/bin/uname/build.mk
Github Open Source
Open Source
Apache-2.0
2,019
EwokOS
Yojoe-Zhu
Makefile
Code
30
172
UNAME_DIR = bin/uname UNAME_PROGRAM = build/bin/uname PROGRAM += $(UNAME_PROGRAM) EXTRA_CLEAN += $(UNAME_PROGRAM) $(UNAME_DIR)/*.o $(UNAME_PROGRAM): $(UNAME_DIR)/*.c $(COMMON_OBJ) lib/libewoklibc.a $(CC) $(CFLAGS) -c -o $(UNAME_DIR)/uname.o $(UNAME_DIR)/uname.c $(LD) -Ttext=100 $(UNAME_DIR)/*.o lib/libewoklibc.a $(COMMON_OBJ) -o $(UNAME_PROGRAM)
13,745
https://github.com/neosin/FairyDust/blob/master/2D/Scripts/quit_button.gd
Github Open Source
Open Source
MIT
2,019
FairyDust
neosin
GDScript
Code
15
57
extends Button func _on_quit_button_gui_input(event): if event is InputEventMouseButton and event.button_index == BUTTON_LEFT and event.is_pressed(): Application.quit()
21,973
https://github.com/yeliucn/pexels-ruby/blob/master/lib/pexels/collection.rb
Github Open Source
Open Source
MIT
2,021
pexels-ruby
yeliucn
Ruby
Code
44
198
module Pexels class Collection attr_reader :id, :title, :description, :private, :media_count, :photos_count, :videos_count def initialize(attrs) @id = attrs.fetch('id') @title = attrs.fetch('title') @description = attrs.fetch('description') @private = attrs.fetch('private') @media_count = attrs.fetch('media_count') @photos_count = attrs.fetch('photos_count') @videos_count = attrs.fetch('videos_count') rescue KeyError => exception raise Pexels::MalformedAPIResponseError.new(exception) end end end
50,295
https://github.com/mlewand/ckeditor5-merge/blob/master/packages/ckeditor5-ui/tests/toolbar/balloon/balloontoolbar.js
Github Open Source
Open Source
MIT
null
ckeditor5-merge
mlewand
JavaScript
Code
2,068
7,044
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor'; import BalloonToolbar from '../../../src/toolbar/balloon/balloontoolbar'; import ContextualBalloon from '../../../src/panel/balloon/contextualballoon'; import BalloonPanelView from '../../../src/panel/balloon/balloonpanelview'; import ToolbarView from '../../../src/toolbar/toolbarview'; import FocusTracker from '@ckeditor/ckeditor5-utils/src/focustracker'; import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold'; import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic'; import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline'; import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph'; import global from '@ckeditor/ckeditor5-utils/src/dom/global'; import ResizeObserver from '@ckeditor/ckeditor5-utils/src/dom/resizeobserver'; import { setData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model'; import { stringify as viewStringify } from '@ckeditor/ckeditor5-engine/src/dev-utils/view'; import Rect from '@ckeditor/ckeditor5-utils/src/dom/rect'; import toUnit from '@ckeditor/ckeditor5-utils/src/dom/tounit'; const toPx = toUnit( 'px' ); import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils'; /* global document, window, Event */ describe( 'BalloonToolbar', () => { let editor, model, selection, editingView, balloonToolbar, balloon, editorElement; let resizeCallback; testUtils.createSinonSandbox(); beforeEach( () => { editorElement = document.createElement( 'div' ); document.body.appendChild( editorElement ); // Make sure other tests of the editor do not affect tests that follow. // Without it, if an instance of ResizeObserver already exists somewhere undestroyed // in DOM, the following DOM mock will have no effect. ResizeObserver._observerInstance = null; testUtils.sinon.stub( global.window, 'ResizeObserver' ).callsFake( callback => { resizeCallback = callback; return { observe: sinon.spy(), unobserve: sinon.spy() }; } ); return ClassicTestEditor .create( editorElement, { plugins: [ Paragraph, Bold, Italic, BalloonToolbar ], balloonToolbar: [ 'bold', 'italic' ] } ) .then( newEditor => { editor = newEditor; model = editor.model; editingView = editor.editing.view; selection = model.document.selection; balloonToolbar = editor.plugins.get( BalloonToolbar ); balloon = editor.plugins.get( ContextualBalloon ); editingView.attachDomRoot( editorElement ); // There is no point to execute BalloonPanelView attachTo and pin methods so lets override it. sinon.stub( balloon.view, 'attachTo' ).returns( {} ); sinon.stub( balloon.view, 'pin' ).returns( {} ); // Focus the engine. editingView.document.isFocused = true; editingView.getDomRoot().focus(); // Remove all selection ranges from DOM before testing. window.getSelection().removeAllRanges(); } ); } ); afterEach( () => { sinon.restore(); editorElement.remove(); return editor.destroy(); } ); it( 'should create a plugin instance', () => { expect( balloonToolbar ).to.instanceOf( Plugin ); expect( balloonToolbar ).to.instanceOf( BalloonToolbar ); expect( balloonToolbar.toolbarView ).to.instanceof( ToolbarView ); expect( balloonToolbar.toolbarView.element.classList.contains( 'ck-toolbar_floating' ) ).to.be.true; } ); it( 'should load ContextualBalloon', () => { expect( balloon ).to.instanceof( ContextualBalloon ); } ); it( 'should create components from config', () => { expect( balloonToolbar.toolbarView.items ).to.length( 2 ); } ); it( 'should accept the extended format of the toolbar config', () => { const editorElement = document.createElement( 'div' ); document.body.appendChild( editorElement ); return ClassicTestEditor .create( editorElement, { plugins: [ Paragraph, Bold, Italic, Underline, BalloonToolbar ], balloonToolbar: { items: [ 'bold', 'italic', 'underline' ] } } ) .then( editor => { const balloonToolbar = editor.plugins.get( BalloonToolbar ); expect( balloonToolbar.toolbarView.items ).to.length( 3 ); editorElement.remove(); return editor.destroy(); } ); } ); it( 'should not group items when the config.shouldNotGroupWhenFull option is enabled', () => { const editorElement = document.createElement( 'div' ); document.body.appendChild( editorElement ); return ClassicTestEditor.create( editorElement, { plugins: [ Paragraph, Bold, Italic, Underline, BalloonToolbar ], balloonToolbar: { items: [ 'bold', 'italic', 'underline' ], shouldNotGroupWhenFull: true } } ).then( editor => { const balloonToolbar = editor.plugins.get( BalloonToolbar ); expect( balloonToolbar.toolbarView.options.shouldGroupWhenFull ).to.be.false; return editor.destroy(); } ).then( () => { editorElement.remove(); } ); } ); it( 'should fire internal `_selectionChangeDebounced` event 200 ms after last selection change', () => { const clock = testUtils.sinon.useFakeTimers(); const spy = testUtils.sinon.spy(); setData( model, '<paragraph>[bar]</paragraph>' ); balloonToolbar.on( '_selectionChangeDebounced', spy ); selection.fire( 'change:range', {} ); // Not yet. sinon.assert.notCalled( spy ); // Lets wait 100 ms. clock.tick( 100 ); // Still not yet. sinon.assert.notCalled( spy ); // Fire event one more time. selection.fire( 'change:range', {} ); // Another 100 ms waiting. clock.tick( 100 ); // Still not yet. sinon.assert.notCalled( spy ); // Another waiting. clock.tick( 110 ); // And here it is. sinon.assert.calledOnce( spy ); } ); describe( 'pluginName', () => { it( 'should return plugin by its name', () => { expect( editor.plugins.get( 'BalloonToolbar' ) ).to.equal( balloonToolbar ); } ); } ); describe( 'focusTracker', () => { it( 'should be defined', () => { expect( balloonToolbar.focusTracker ).to.instanceof( FocusTracker ); } ); it( 'it should track the focus of the #editableElement', () => { expect( balloonToolbar.focusTracker.isFocused ).to.false; editor.ui.getEditableElement().dispatchEvent( new Event( 'focus' ) ); expect( balloonToolbar.focusTracker.isFocused ).to.true; } ); it( 'it should track the focus of the toolbarView#element', () => { expect( balloonToolbar.focusTracker.isFocused ).to.false; balloonToolbar.toolbarView.element.dispatchEvent( new Event( 'focus' ) ); expect( balloonToolbar.focusTracker.isFocused ).to.true; } ); } ); describe( 'show()', () => { let balloonAddSpy, backwardSelectionRect, forwardSelectionRect; beforeEach( () => { backwardSelectionRect = { top: 100, height: 10, bottom: 110, left: 200, width: 50, right: 250 }; forwardSelectionRect = { top: 200, height: 10, bottom: 210, left: 200, width: 50, right: 250 }; stubSelectionRects( [ backwardSelectionRect, forwardSelectionRect ] ); balloonAddSpy = sinon.spy( balloon, 'add' ); editingView.document.isFocused = true; } ); it( 'should add #toolbarView to the #_balloon and attach the #_balloon to the selection for the forward selection', () => { setData( model, '<paragraph>b[a]r</paragraph>' ); const defaultPositions = BalloonPanelView.defaultPositions; balloonToolbar.show(); sinon.assert.calledWith( balloonAddSpy, { view: balloonToolbar.toolbarView, balloonClassName: 'ck-toolbar-container', position: { target: sinon.match.func, positions: [ defaultPositions.southEastArrowNorth, defaultPositions.southEastArrowNorthEast, defaultPositions.southEastArrowNorthWest, defaultPositions.southEastArrowNorthMiddleEast, defaultPositions.southEastArrowNorthMiddleWest, defaultPositions.northEastArrowSouth, defaultPositions.northEastArrowSouthEast, defaultPositions.northEastArrowSouthWest, defaultPositions.northEastArrowSouthMiddleEast, defaultPositions.northEastArrowSouthMiddleWest ] } } ); expect( balloonAddSpy.firstCall.args[ 0 ].position.target() ).to.deep.equal( forwardSelectionRect ); } ); // https://github.com/ckeditor/ckeditor5-ui/issues/385 it( 'should attach the #_balloon to the last range in a case of multi-range forward selection', () => { setData( model, '<paragraph>b[ar]</paragraph><paragraph>[bi]z</paragraph>' ); balloonToolbar.show(); // Because attaching and pinning BalloonPanelView is stubbed for test // we need to manually call function that counting rect. const targetRect = balloonAddSpy.firstCall.args[ 0 ].position.target(); const targetViewRange = editingView.domConverter.viewRangeToDom.lastCall.args[ 0 ]; expect( viewStringify( targetViewRange.root, targetViewRange, { ignoreRoot: true } ) ).to.equal( '<p>bar</p><p>{bi}z</p>' ); expect( targetRect ).to.deep.equal( forwardSelectionRect ); } ); // https://github.com/ckeditor/ckeditor5-ui/issues/308 it( 'should ignore the zero-width orphan rect if there another one preceding it for the forward selection', () => { // Restore previous stubSelectionRects() call. editingView.domConverter.viewRangeToDom.restore(); // Simulate an "orphan" rect preceded by a "correct" one. stubSelectionRects( [ forwardSelectionRect, { width: 0 } ] ); setData( model, '<paragraph>b[a]r</paragraph>' ); balloonToolbar.show(); expect( balloonAddSpy.firstCall.args[ 0 ].position.target() ).to.deep.equal( forwardSelectionRect ); } ); it( 'should add #toolbarView to the #_balloon and attach the #_balloon to the selection for the backward selection', () => { setData( model, '<paragraph>b[a]r</paragraph>', { lastRangeBackward: true } ); const defaultPositions = BalloonPanelView.defaultPositions; balloonToolbar.show(); sinon.assert.calledWithExactly( balloonAddSpy, { view: balloonToolbar.toolbarView, balloonClassName: 'ck-toolbar-container', position: { target: sinon.match.func, positions: [ defaultPositions.northWestArrowSouth, defaultPositions.northWestArrowSouthWest, defaultPositions.northWestArrowSouthEast, defaultPositions.northWestArrowSouthMiddleEast, defaultPositions.northWestArrowSouthMiddleWest, defaultPositions.southWestArrowNorth, defaultPositions.southWestArrowNorthWest, defaultPositions.southWestArrowNorthEast, defaultPositions.southWestArrowNorthMiddleWest, defaultPositions.southWestArrowNorthMiddleEast ] } } ); expect( balloonAddSpy.firstCall.args[ 0 ].position.target() ).to.deep.equal( backwardSelectionRect ); } ); // https://github.com/ckeditor/ckeditor5-ui/issues/385 it( 'should attach the #_balloon to the first range in a case of multi-range backward selection', () => { setData( model, '<paragraph>b[ar]</paragraph><paragraph>[bi]z</paragraph>', { lastRangeBackward: true } ); balloonToolbar.show(); // Because attaching and pinning BalloonPanelView is stubbed for test // we need to manually call function that counting rect. const targetRect = balloonAddSpy.firstCall.args[ 0 ].position.target(); const targetViewRange = editingView.domConverter.viewRangeToDom.lastCall.args[ 0 ]; expect( viewStringify( targetViewRange.root, targetViewRange, { ignoreRoot: true } ) ).to.equal( '<p>b{ar}</p><p>biz</p>' ); expect( targetRect ).to.deep.equal( backwardSelectionRect ); } ); it( 'should update balloon position on ui#update event when #toolbarView is already added to the #_balloon', () => { setData( model, '<paragraph>b[a]r</paragraph>' ); const spy = sinon.spy( balloon, 'updatePosition' ); editor.ui.fire( 'update' ); balloonToolbar.show(); sinon.assert.notCalled( spy ); editor.ui.fire( 'update' ); sinon.assert.calledOnce( spy ); } ); it( 'should not add #toolbarView to the #_balloon more than once', () => { setData( model, '<paragraph>b[a]r</paragraph>' ); balloonToolbar.show(); balloonToolbar.show(); sinon.assert.calledOnce( balloonAddSpy ); } ); it( 'should not add the #toolbarView to the #_balloon when the selection is collapsed', () => { setData( model, '<paragraph>b[]ar</paragraph>' ); balloonToolbar.show(); sinon.assert.notCalled( balloonAddSpy ); } ); it( 'should not add #toolbarView to the #_balloon when all components inside #toolbarView are disabled', () => { Array.from( balloonToolbar.toolbarView.items ).forEach( item => { item.isEnabled = false; } ); setData( model, '<paragraph>b[a]r</paragraph>' ); balloonToolbar.show(); sinon.assert.notCalled( balloonAddSpy ); } ); it( 'should add #toolbarView to the #_balloon when at least one component inside does not have #isEnabled interface', () => { Array.from( balloonToolbar.toolbarView.items ).forEach( item => { item.isEnabled = false; } ); delete balloonToolbar.toolbarView.items.get( 0 ).isEnabled; setData( model, '<paragraph>b[a]r</paragraph>' ); balloonToolbar.show(); sinon.assert.calledOnce( balloonAddSpy ); } ); it( 'should set the toolbar max-width to 90% of the editable width', () => { const viewElement = editor.ui.view.editable.element; setData( model, '<paragraph>b[ar]</paragraph>' ); expect( global.document.body.contains( viewElement ) ).to.be.true; viewElement.style.width = '400px'; resizeCallback( [ { target: viewElement, contentRect: new Rect( viewElement ) } ] ); // The expected width should be 90% of the editor's editable element's width. const expectedWidth = toPx( new Rect( viewElement ).width * 0.9 ); expect( balloonToolbar.toolbarView.maxWidth ).to.be.equal( expectedWidth ); } ); } ); describe( 'hide()', () => { let removeBalloonSpy; beforeEach( () => { removeBalloonSpy = sinon.stub( balloon, 'remove' ).returns( {} ); editingView.document.isFocused = true; } ); it( 'should remove #toolbarView from the #_balloon', () => { setData( model, '<paragraph>b[a]r</paragraph>' ); balloonToolbar.show(); balloonToolbar.hide(); sinon.assert.calledWithExactly( removeBalloonSpy, balloonToolbar.toolbarView ); } ); it( 'should stop update balloon position on ui#update event', () => { setData( model, '<paragraph>b[a]r</paragraph>' ); const spy = sinon.spy( balloon, 'updatePosition' ); balloonToolbar.show(); balloonToolbar.hide(); editor.ui.fire( 'update' ); sinon.assert.notCalled( spy ); } ); it( 'should not remove #toolbarView when is not added to the #_balloon', () => { balloonToolbar.hide(); sinon.assert.notCalled( removeBalloonSpy ); } ); } ); describe( 'destroy()', () => { it( 'can be called multiple times', () => { expect( () => { balloonToolbar.destroy(); balloonToolbar.destroy(); } ).to.not.throw(); } ); it( 'should not fire `_selectionChangeDebounced` after plugin destroy', () => { const clock = testUtils.sinon.useFakeTimers(); const spy = testUtils.sinon.spy(); balloonToolbar.on( '_selectionChangeDebounced', spy ); selection.fire( 'change:range', { directChange: true } ); balloonToolbar.destroy(); clock.tick( 200 ); sinon.assert.notCalled( spy ); } ); it( 'should destroy #resizeObserver if is available', () => { const editable = editor.ui.getEditableElement(); const resizeObserver = new ResizeObserver( editable, () => {} ); const destroySpy = sinon.spy( resizeObserver, 'destroy' ); balloonToolbar._resizeObserver = resizeObserver; balloonToolbar.destroy(); sinon.assert.calledOnce( destroySpy ); } ); } ); describe( 'show and hide triggers', () => { let showPanelSpy, hidePanelSpy; beforeEach( () => { setData( model, '<paragraph>[bar]</paragraph>' ); showPanelSpy = sinon.spy( balloonToolbar, 'show' ); hidePanelSpy = sinon.spy( balloonToolbar, 'hide' ); } ); it( 'should show when selection stops changing', () => { sinon.assert.notCalled( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); balloonToolbar.fire( '_selectionChangeDebounced' ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); } ); it( 'should not show when the selection stops changing when the editable is blurred', () => { sinon.assert.notCalled( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); editingView.document.isFocused = false; balloonToolbar.fire( '_selectionChangeDebounced' ); sinon.assert.notCalled( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); } ); it( 'should hide when selection starts changing by a direct change', () => { balloonToolbar.fire( '_selectionChangeDebounced' ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); selection.fire( 'change:range', { directChange: true } ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.calledOnce( hidePanelSpy ); } ); it( 'should not hide when selection starts changing by an indirect change', () => { balloonToolbar.fire( '_selectionChangeDebounced' ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); selection.fire( 'change:range', { directChange: false } ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); } ); it( 'should hide when selection starts changing by an indirect change but has changed to collapsed', () => { balloonToolbar.fire( '_selectionChangeDebounced' ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); // Collapse range silently (without firing `change:range` { directChange: true } event). const range = selection._ranges[ 0 ]; range.end = range.start; selection.fire( 'change:range', { directChange: false } ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.calledOnce( hidePanelSpy ); } ); it( 'should show on #focusTracker focus', () => { balloonToolbar.focusTracker.isFocused = false; sinon.assert.notCalled( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); balloonToolbar.focusTracker.isFocused = true; sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); } ); it( 'should hide on #focusTracker blur', () => { balloonToolbar.focusTracker.isFocused = true; const stub = sinon.stub( balloon, 'visibleView' ).get( () => balloonToolbar.toolbarView ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); balloonToolbar.focusTracker.isFocused = false; sinon.assert.calledOnce( showPanelSpy ); sinon.assert.calledOnce( hidePanelSpy ); stub.restore(); } ); it( 'should not hide on #focusTracker blur when toolbar is not in the balloon stack', () => { balloonToolbar.focusTracker.isFocused = true; const stub = sinon.stub( balloon, 'visibleView' ).get( () => null ); sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); balloonToolbar.focusTracker.isFocused = false; sinon.assert.calledOnce( showPanelSpy ); sinon.assert.notCalled( hidePanelSpy ); stub.restore(); } ); } ); describe( 'show event', () => { it( 'should fire `show` event just before panel shows', () => { const spy = sinon.spy(); balloonToolbar.on( 'show', spy ); setData( model, '<paragraph>b[a]r</paragraph>' ); balloonToolbar.show(); sinon.assert.calledOnce( spy ); } ); it( 'should not show the panel when `show` event is stopped', () => { const balloonAddSpy = sinon.spy( balloon, 'add' ); setData( model, '<paragraph>b[a]r</paragraph>' ); balloonToolbar.on( 'show', evt => evt.stop(), { priority: 'high' } ); balloonToolbar.show(); sinon.assert.notCalled( balloonAddSpy ); } ); } ); function stubSelectionRects( rects ) { const originalViewRangeToDom = editingView.domConverter.viewRangeToDom; // Mock selection rect. sinon.stub( editingView.domConverter, 'viewRangeToDom' ).callsFake( ( ...args ) => { const domRange = originalViewRangeToDom.apply( editingView.domConverter, args ); sinon.stub( domRange, 'getClientRects' ) .returns( rects ); return domRange; } ); } } );
10,683
https://github.com/JemWritesCode/EasySpawner/blob/master/EasySpawnerUnityProject/Assets/EasySpawnerMenu.prefab
Github Open Source
Open Source
MIT
2,021
EasySpawner
JemWritesCode
Unity3D Asset
Code
13,724
61,885
%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: 1539357928003196} m_IsPrefabParent: 1 --- !u!1 &1026379341829078 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224023261555899858} - component: {fileID: 222891506497879054} - component: {fileID: 114659418655904116} m_Layer: 5 m_Name: Handle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1038117281720642 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224213647953742074} - component: {fileID: 222287326067282092} - component: {fileID: 114377674593373284} - component: {fileID: 114198469870601602} m_Layer: 5 m_Name: SpawnButton m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1045220300580086 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224354480117968190} - component: {fileID: 222402452898234708} - component: {fileID: 114033897443434972} m_Layer: 5 m_Name: Background m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1062237495001646 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224129152929789916} - component: {fileID: 222397008525271656} - component: {fileID: 114271103791841964} - component: {fileID: 114196378603607708} m_Layer: 5 m_Name: SearchInputField m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1074115938698464 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224897554682185020} - component: {fileID: 222569413673342870} - component: {fileID: 114034706335991940} m_Layer: 5 m_Name: Background m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1085834499035234 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224130212154844828} - component: {fileID: 222493174170936574} - component: {fileID: 114330864022550206} m_Layer: 5 m_Name: Background m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1107817137990856 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224419845817024962} - component: {fileID: 222929997527643412} - component: {fileID: 114461204707826962} m_Layer: 5 m_Name: CloseText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1111490161247904 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224060152014116892} - component: {fileID: 222826732596361944} - component: {fileID: 114276634930310230} m_Layer: 5 m_Name: Background m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1118248742554544 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224825443903223122} - component: {fileID: 222625133463814232} - component: {fileID: 114142949529357056} m_Layer: 5 m_Name: Item Checkmark m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1142650239978856 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224184628892881112} - component: {fileID: 222808600265227472} - component: {fileID: 114237876115736196} m_Layer: 5 m_Name: UndoText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1149175168417050 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224510251577120028} - component: {fileID: 222405392494358792} - component: {fileID: 114530730922290526} m_Layer: 5 m_Name: Item Background m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1170126592719882 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224853228254621744} - component: {fileID: 222235162869795496} - component: {fileID: 114455871050777862} m_Layer: 5 m_Name: ItemBackground m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1206153059249900 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224870938537553122} - component: {fileID: 222484938930373854} - component: {fileID: 114377854794254418} m_Layer: 5 m_Name: Checkmark m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1241604771225232 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224257079333593996} m_Layer: 5 m_Name: Sliding Area m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1242486043179710 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224428448959645832} - component: {fileID: 222566328619174404} - component: {fileID: 114924192488910548} m_Layer: 5 m_Name: SpawnText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1247475239038182 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224076307896823240} m_Layer: 5 m_Name: HotkeyText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1336979864615460 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224313439988227356} - component: {fileID: 222990019518589266} - component: {fileID: 114000920237906342} - component: {fileID: 114543273080916424} m_Layer: 5 m_Name: PlayerDropdown m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1356167346828046 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224352567564277182} - component: {fileID: 222779919315868942} - component: {fileID: 114447945468181976} m_Layer: 5 m_Name: Handle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1398107422424354 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224257213032219378} - component: {fileID: 222421816911584626} - component: {fileID: 114062721737990434} m_Layer: 5 m_Name: Checkmark m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1418039499187980 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224083146489207266} - component: {fileID: 222147512887954196} - component: {fileID: 114329709065922222} m_Layer: 5 m_Name: Arrow m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1421842050562454 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224949423805156362} - component: {fileID: 114879959923661546} - component: {fileID: 222880133719513802} - component: {fileID: 114925828845316460} m_Layer: 5 m_Name: PrefabScrollView m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1429010000622966 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224780584690876326} - component: {fileID: 114610832083911658} - component: {fileID: 222858066005453580} - component: {fileID: 114857334086671682} m_Layer: 5 m_Name: Viewport m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1432216780752720 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224498025846528076} - component: {fileID: 222486750947550228} - component: {fileID: 114537445371233676} m_Layer: 5 m_Name: Handle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1447480688710554 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224352731534082776} - component: {fileID: 114674263907724004} m_Layer: 5 m_Name: Star m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1447825843342986 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224584837239734678} - component: {fileID: 222145493049502450} - component: {fileID: 114127480112723396} m_Layer: 5 m_Name: Checkmark m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1448611073291260 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224992317656671594} - component: {fileID: 222208373482576498} - component: {fileID: 114804467220179738} m_Layer: 5 m_Name: Label m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1452233014639652 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224238831457819072} - component: {fileID: 222455349729075002} - component: {fileID: 114847680465254120} m_Layer: 5 m_Name: Title m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1456001636822816 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224856245218360800} - component: {fileID: 222024897307426664} - component: {fileID: 114187555502685558} m_Layer: 5 m_Name: Title m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1462508878912542 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224673195518626750} - component: {fileID: 222785411590525142} - component: {fileID: 114364068993416806} m_Layer: 5 m_Name: Placeholder m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1499062758727146 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224130934232469484} - component: {fileID: 222840783203356100} - component: {fileID: 114311719518798464} m_Layer: 5 m_Name: Label m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1506057426938962 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224913639694983650} - component: {fileID: 114574807539114618} m_Layer: 5 m_Name: PutInInventoryToggle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1531447084012754 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224360315807059160} - component: {fileID: 222952341709442312} - component: {fileID: 114482824190729360} - component: {fileID: 114280957981892324} m_Layer: 5 m_Name: AmountInputField m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1539357928003196 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224780874275008876} - component: {fileID: 222066368947431756} - component: {fileID: 114959816466669922} m_Layer: 5 m_Name: EasySpawnerMenu m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1562732956885930 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224832326349735430} - component: {fileID: 222070529524973166} - component: {fileID: 114250869980239708} m_Layer: 5 m_Name: Label m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1614737236545246 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224084846329983796} - component: {fileID: 114076321632511572} m_Layer: 5 m_Name: Item m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1615530503621880 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224509097553739308} - component: {fileID: 222361460000666516} - component: {fileID: 114653377425762950} m_Layer: 5 m_Name: Placeholder m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1636812304155528 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224731574845199326} - component: {fileID: 222977644519352958} - component: {fileID: 114665990387771864} m_Layer: 5 m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1653759152042306 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224353306128465064} - component: {fileID: 222745375212728888} - component: {fileID: 114344279277944012} m_Layer: 5 m_Name: Label m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1661905573956236 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224599983336833446} - component: {fileID: 222051504256265256} - component: {fileID: 114609199458247736} m_Layer: 5 m_Name: Item Label m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1665227217993240 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224415616352557488} m_Layer: 5 m_Name: Sliding Area m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1674313904231104 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224207234522465334} - component: {fileID: 222697275072312976} - component: {fileID: 114663449028223034} - component: {fileID: 114214007684849354} m_Layer: 5 m_Name: LevelInputField m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1689508204070624 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224049057174892114} m_Layer: 5 m_Name: Sliding Area m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1702460463244182 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224211253198279540} - component: {fileID: 222952337896978932} - component: {fileID: 114977494956998858} m_Layer: 5 m_Name: Placeholder m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1709498314949712 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224322283473592098} - component: {fileID: 222777081052923096} - component: {fileID: 114803980807975434} - component: {fileID: 114611918815222998} m_Layer: 5 m_Name: Scrollbar Vertical m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1726251241723068 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224350062542205346} m_Layer: 5 m_Name: Content m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1774478379877014 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224428500164444224} - component: {fileID: 222222492413925024} - component: {fileID: 114533045158078202} - component: {fileID: 114177987555085664} m_Layer: 5 m_Name: Scrollbar m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1796596084704522 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224261305696329702} m_Layer: 5 m_Name: Content m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1807093462646578 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224092159373810656} - component: {fileID: 114498370103759210} - component: {fileID: 222589281393852900} - component: {fileID: 114522198328538634} m_Layer: 5 m_Name: Viewport m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1812042060104570 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224391780140676552} - component: {fileID: 222102713360265792} - component: {fileID: 114082468168426310} m_Layer: 5 m_Name: OptionsText m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1832705681692260 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224284724598121830} - component: {fileID: 114989388408056206} m_Layer: 5 m_Name: _Template m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1837601103955436 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224475162601978776} - component: {fileID: 222377078327540456} - component: {fileID: 114653998226206376} m_Layer: 5 m_Name: ItemCheckmark m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1884416305426794 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224200947007647554} - component: {fileID: 222100857165956460} - component: {fileID: 114066613555752780} - component: {fileID: 114744652118607202} m_Layer: 5 m_Name: Template m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 0 --- !u!1 &1887795675915526 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224707204763240132} - component: {fileID: 114422324625246950} m_Layer: 5 m_Name: IgnoreStackSizeToggle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1917313355725958 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224885036762039290} - component: {fileID: 114641551249285048} m_Layer: 5 m_Name: FavouritesOnlyToggle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1919693106081468 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224150278115249276} - component: {fileID: 222327854775042828} - component: {fileID: 114588112369491426} m_Layer: 5 m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1944959970782002 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224103144264956170} - component: {fileID: 222591866402554966} - component: {fileID: 114203148460983584} m_Layer: 5 m_Name: ItemLabel m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1958413199166020 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224882768284894334} - component: {fileID: 222969877215858054} - component: {fileID: 114326721424334070} - component: {fileID: 114609198711532014} m_Layer: 5 m_Name: Scrollbar Horizontal m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1995160539725122 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224208569586742896} - component: {fileID: 222273070026383902} - component: {fileID: 114102648710035934} m_Layer: 5 m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!1 &1998441187318516 GameObject: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 224906335088659268} - component: {fileID: 222479098563842286} - component: {fileID: 114202167611496824} m_Layer: 5 m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!114 &114000920237906342 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1336979864615460} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114033897443434972 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1045220300580086} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114034706335991940 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1074115938698464} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114062721737990434 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1398107422424354} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114066613555752780 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1884416305426794} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114076321632511572 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1614737236545246} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 2109663825, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114530730922290526} toggleTransition: 1 graphic: {fileID: 114142949529357056} m_Group: {fileID: 0} onValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Toggle+ToggleEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_IsOn: 1 --- !u!114 &114082468168426310 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1812042060104570} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: ' Options:' --- !u!114 &114102648710035934 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1995160539725122} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 0 m_HorizontalOverflow: 1 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: --- !u!114 &114127480112723396 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1447825843342986} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114142949529357056 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1118248742554544} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114177987555085664 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1774478379877014} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -2061169968, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114659418655904116} m_HandleRect: {fileID: 224023261555899858} m_Direction: 2 m_Value: 0 m_Size: 0.2 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Scrollbar+ScrollEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &114187555502685558 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1456001636822816} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: 'Hotkeys:' --- !u!114 &114196378603607708 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1062237495001646} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 575553740, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.8014706, g: 0.8014706, b: 0.8014706, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114271103791841964} m_TextComponent: {fileID: 114588112369491426} m_Placeholder: {fileID: 114653377425762950} m_ContentType: 0 m_InputType: 0 m_AsteriskChar: 42 m_KeyboardType: 0 m_LineType: 0 m_HideMobileInput: 0 m_CharacterValidation: 0 m_CharacterLimit: 30 m_OnEndEdit: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.InputField+SubmitEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.InputField+OnChangeEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_CustomCaretColor: 0 m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} m_Text: m_CaretBlinkRate: 0.85 m_CaretWidth: 1 m_ReadOnly: 0 --- !u!114 &114198469870601602 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1038117281720642} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114377674593373284} m_OnClick: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &114202167611496824 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1998441187318516} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 4 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Spawn --- !u!114 &114203148460983584 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1944959970782002} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 3 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Option A --- !u!114 &114214007684849354 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1674313904231104} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 575553740, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114663449028223034} m_TextComponent: {fileID: 114102648710035934} m_Placeholder: {fileID: 114977494956998858} m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 m_KeyboardType: 4 m_LineType: 0 m_HideMobileInput: 0 m_CharacterValidation: 1 m_CharacterLimit: 9 m_OnEndEdit: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.InputField+SubmitEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.InputField+OnChangeEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_CustomCaretColor: 0 m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} m_Text: m_CaretBlinkRate: 0.85 m_CaretWidth: 1 m_ReadOnly: 0 --- !u!114 &114237876115736196 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1142650239978856} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: 'Undo: left ctrl + z' --- !u!114 &114250869980239708 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1562732956885930} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 12 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 12 m_MaxSize: 100 m_Alignment: 3 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 1 m_LineSpacing: 1 m_Text: Ignore max stack size --- !u!114 &114271103791841964 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1062237495001646} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114276634930310230 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1111490161247904} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114280957981892324 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1531447084012754} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 575553740, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114482824190729360} m_TextComponent: {fileID: 114665990387771864} m_Placeholder: {fileID: 114364068993416806} m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 m_KeyboardType: 4 m_LineType: 0 m_HideMobileInput: 0 m_CharacterValidation: 1 m_CharacterLimit: 9 m_OnEndEdit: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.InputField+SubmitEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.InputField+OnChangeEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_CustomCaretColor: 0 m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} m_Text: m_CaretBlinkRate: 0.85 m_CaretWidth: 1 m_ReadOnly: 0 --- !u!114 &114311719518798464 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1499062758727146} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 12 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 12 m_MaxSize: 100 m_Alignment: 3 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 1 m_LineSpacing: 1 m_Text: Show favourites only --- !u!114 &114326721424334070 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1958413199166020} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114329709065922222 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1418039499187980} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10915, guid: 0000000000000000f000000000000000, type: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114330864022550206 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1085834499035234} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 0.78431374, b: 0.16078432, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 21300000, guid: 42f1de5978611764c8b9e2ac0cc222fa, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114344279277944012 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1653759152042306} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 3 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: AAAAAAAAAAAAAAAAAAAAA --- !u!114 &114364068993416806 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1462508878912542} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 2 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Amount... --- !u!114 &114377674593373284 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1038117281720642} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114377854794254418 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1206153059249900} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114422324625246950 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1887795675915526} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 2109663825, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114034706335991940} toggleTransition: 1 graphic: {fileID: 114377854794254418} m_Group: {fileID: 0} onValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Toggle+ToggleEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_IsOn: 0 --- !u!114 &114447945468181976 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1356167346828046} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114455871050777862 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1170126592719882} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114461204707826962 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1107817137990856} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: 'Open/Close: /' --- !u!114 &114482824190729360 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1531447084012754} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114498370103759210 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1807093462646578} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -1200242548, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_ShowMaskGraphic: 0 --- !u!114 &114522198328538634 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1807093462646578} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114530730922290526 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1149175168417050} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114533045158078202 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1774478379877014} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114537445371233676 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1432216780752720} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114543273080916424 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1336979864615460} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 853051423, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114000920237906342} m_Template: {fileID: 224200947007647554} m_CaptionText: {fileID: 114344279277944012} m_CaptionImage: {fileID: 0} m_ItemText: {fileID: 114609199458247736} m_ItemImage: {fileID: 0} m_Value: 0 m_Options: m_Options: - m_Text: AAAAAAAAAAAAAAAAAAAAA m_Image: {fileID: 0} - m_Text: Option B m_Image: {fileID: 0} - m_Text: Option C m_Image: {fileID: 0} m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Dropdown+DropdownEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &114574807539114618 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1506057426938962} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 2109663825, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114276634930310230} toggleTransition: 1 graphic: {fileID: 114127480112723396} m_Group: {fileID: 0} onValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Toggle+ToggleEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_IsOn: 0 --- !u!114 &114588112369491426 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1919693106081468} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 0 m_HorizontalOverflow: 1 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: --- !u!114 &114609198711532014 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1958413199166020} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -2061169968, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114537445371233676} m_HandleRect: {fileID: 224498025846528076} m_Direction: 0 m_Value: 0.16666667 m_Size: 0.9999996 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Scrollbar+ScrollEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &114609199458247736 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1661905573956236} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 10 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 1 m_MaxSize: 40 m_Alignment: 3 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Option A --- !u!114 &114610832083911658 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1429010000622966} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -1200242548, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_ShowMaskGraphic: 0 --- !u!114 &114611918815222998 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1709498314949712} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -2061169968, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114447945468181976} m_HandleRect: {fileID: 224352567564277182} m_Direction: 2 m_Value: 0 m_Size: 0.9999999 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Scrollbar+ScrollEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &114641551249285048 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1917313355725958} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 2109663825, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114033897443434972} toggleTransition: 1 graphic: {fileID: 114062721737990434} m_Group: {fileID: 0} onValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Toggle+ToggleEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_IsOn: 0 --- !u!114 &114653377425762950 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1615530503621880} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 2 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Search... --- !u!114 &114653998226206376 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1837601103955436} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114659418655904116 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1026379341829078} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114663449028223034 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1674313904231104} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114665990387771864 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1636812304155528} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 0 m_HorizontalOverflow: 1 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: --- !u!114 &114674263907724004 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1447480688710554} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 2109663825, guid: f70555f144d8491a825f0804e09c671c, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114330864022550206} toggleTransition: 1 graphic: {fileID: 0} m_Group: {fileID: 0} onValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Toggle+ToggleEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_IsOn: 1 --- !u!114 &114744652118607202 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1884416305426794} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 1367256648, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Content: {fileID: 224350062542205346} m_Horizontal: 0 m_Vertical: 1 m_MovementType: 2 m_Elasticity: 0.1 m_Inertia: 1 m_DecelerationRate: 0.135 m_ScrollSensitivity: 32 m_Viewport: {fileID: 224780584690876326} m_HorizontalScrollbar: {fileID: 0} m_VerticalScrollbar: {fileID: 114177987555085664} m_HorizontalScrollbarVisibility: 0 m_VerticalScrollbarVisibility: 2 m_HorizontalScrollbarSpacing: 0 m_VerticalScrollbarSpacing: -3 m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.ScrollRect+ScrollRectEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &114803980807975434 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1709498314949712} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114804467220179738 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1448611073291260} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 12 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Put in inventory --- !u!114 &114847680465254120 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1452233014639652} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 1 m_AlignByGeometry: 1 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Easy Spawner --- !u!114 &114857334086671682 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1429010000622966} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114879959923661546 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1421842050562454} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 1367256648, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Content: {fileID: 224261305696329702} m_Horizontal: 1 m_Vertical: 1 m_MovementType: 2 m_Elasticity: 0.1 m_Inertia: 1 m_DecelerationRate: 0.135 m_ScrollSensitivity: 32 m_Viewport: {fileID: 224092159373810656} m_HorizontalScrollbar: {fileID: 114609198711532014} m_VerticalScrollbar: {fileID: 114611918815222998} m_HorizontalScrollbarVisibility: 2 m_VerticalScrollbarVisibility: 2 m_HorizontalScrollbarSpacing: -3 m_VerticalScrollbarSpacing: -3 m_OnValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.ScrollRect+ScrollRectEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &114924192488910548 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1242486043179710} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: 'Spawn: =' --- !u!114 &114925828845316460 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1421842050562454} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0.392} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114959816466669922 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1539357928003196} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.75735295, g: 0.75735295, b: 0.75735295, a: 0.328} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 --- !u!114 &114977494956998858 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1702460463244182} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 0.5} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} m_FontSize: 14 m_FontStyle: 2 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: Level... --- !u!114 &114989388408056206 MonoBehaviour: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1832705681692260} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 2109663825, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} m_Name: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} m_SelectOnRight: {fileID: 0} m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 m_FadeDuration: 0.1 m_SpriteState: m_HighlightedSprite: {fileID: 0} m_PressedSprite: {fileID: 0} m_DisabledSprite: {fileID: 0} m_AnimationTriggers: m_NormalTrigger: Normal m_HighlightedTrigger: Highlighted m_PressedTrigger: Pressed m_DisabledTrigger: Disabled m_Interactable: 1 m_TargetGraphic: {fileID: 114455871050777862} toggleTransition: 1 graphic: {fileID: 114653998226206376} m_Group: {fileID: 0} onValueChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.Toggle+ToggleEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_IsOn: 1 --- !u!222 &222024897307426664 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1456001636822816} --- !u!222 &222051504256265256 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1661905573956236} --- !u!222 &222066368947431756 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1539357928003196} --- !u!222 &222070529524973166 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1562732956885930} --- !u!222 &222100857165956460 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1884416305426794} --- !u!222 &222102713360265792 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1812042060104570} --- !u!222 &222145493049502450 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1447825843342986} --- !u!222 &222147512887954196 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1418039499187980} --- !u!222 &222208373482576498 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1448611073291260} --- !u!222 &222222492413925024 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1774478379877014} --- !u!222 &222235162869795496 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1170126592719882} --- !u!222 &222273070026383902 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1995160539725122} --- !u!222 &222287326067282092 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1038117281720642} --- !u!222 &222327854775042828 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1919693106081468} --- !u!222 &222361460000666516 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1615530503621880} --- !u!222 &222377078327540456 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1837601103955436} --- !u!222 &222397008525271656 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1062237495001646} --- !u!222 &222402452898234708 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1045220300580086} --- !u!222 &222405392494358792 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1149175168417050} --- !u!222 &222421816911584626 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1398107422424354} --- !u!222 &222455349729075002 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1452233014639652} --- !u!222 &222479098563842286 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1998441187318516} --- !u!222 &222484938930373854 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1206153059249900} --- !u!222 &222486750947550228 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1432216780752720} --- !u!222 &222493174170936574 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1085834499035234} --- !u!222 &222566328619174404 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1242486043179710} --- !u!222 &222569413673342870 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1074115938698464} --- !u!222 &222589281393852900 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1807093462646578} --- !u!222 &222591866402554966 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1944959970782002} --- !u!222 &222625133463814232 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1118248742554544} --- !u!222 &222697275072312976 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1674313904231104} --- !u!222 &222745375212728888 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1653759152042306} --- !u!222 &222777081052923096 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1709498314949712} --- !u!222 &222779919315868942 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1356167346828046} --- !u!222 &222785411590525142 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1462508878912542} --- !u!222 &222808600265227472 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1142650239978856} --- !u!222 &222826732596361944 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1111490161247904} --- !u!222 &222840783203356100 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1499062758727146} --- !u!222 &222858066005453580 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1429010000622966} --- !u!222 &222880133719513802 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1421842050562454} --- !u!222 &222891506497879054 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1026379341829078} --- !u!222 &222929997527643412 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1107817137990856} --- !u!222 &222952337896978932 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1702460463244182} --- !u!222 &222952341709442312 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1531447084012754} --- !u!222 &222969877215858054 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1958413199166020} --- !u!222 &222977644519352958 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1636812304155528} --- !u!222 &222990019518589266 CanvasRenderer: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1336979864615460} --- !u!224 &224023261555899858 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1026379341829078} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224415616352557488} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0.2} m_AnchoredPosition: {x: 0, y: 52} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224049057174892114 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1689508204070624} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224352567564277182} m_Father: {fileID: 224322283473592098} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -20, y: -20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224060152014116892 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1111490161247904} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224584837239734678} m_Father: {fileID: 224913639694983650} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 10, y: -10} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224076307896823240 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1247475239038182} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224856245218360800} - {fileID: 224428448959645832} - {fileID: 224184628892881112} - {fileID: 224419845817024962} m_Father: {fileID: 224780874275008876} m_RootOrder: 11 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -338} m_SizeDelta: {x: 120, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224083146489207266 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1418039499187980} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224313439988227356} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0.5} m_AnchorMax: {x: 1, y: 0.5} m_AnchoredPosition: {x: -15, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224084846329983796 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1614737236545246} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224510251577120028} - {fileID: 224825443903223122} - {fileID: 224599983336833446} m_Father: {fileID: 224350062542205346} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.5} m_AnchorMax: {x: 1, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224092159373810656 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1807093462646578} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224261305696329702} m_Father: {fileID: 224949423805156362} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 1} --- !u!224 &224103144264956170 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1944959970782002} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224284724598121830} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 5, y: -0.5} m_SizeDelta: {x: -30, y: -3} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224129152929789916 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1062237495001646} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224509097553739308} - {fileID: 224150278115249276} m_Father: {fileID: 224780874275008876} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -63.5, y: -40} m_SizeDelta: {x: -153, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224130212154844828 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1085834499035234} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224352731534082776} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224130934232469484 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1499062758727146} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224885036762039290} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 9, y: -0.5} m_SizeDelta: {x: -28, y: -3} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224150278115249276 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1919693106081468} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224129152929789916} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: -0.5} m_SizeDelta: {x: -20, y: -13} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224184628892881112 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1142650239978856} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224076307896823240} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: 0, y: -70} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224200947007647554 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1884416305426794} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224780584690876326} - {fileID: 224428500164444224} m_Father: {fileID: 224313439988227356} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} m_AnchoredPosition: {x: 0, y: 2} m_SizeDelta: {x: 0, y: 150} m_Pivot: {x: 0.5, y: 1} --- !u!224 &224207234522465334 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1674313904231104} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224211253198279540} - {fileID: 224208569586742896} m_Father: {fileID: 224780874275008876} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -133} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224208569586742896 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1995160539725122} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224207234522465334} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: -0.5} m_SizeDelta: {x: -20, y: -13} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224211253198279540 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1702460463244182} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224207234522465334} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: -0.5} m_SizeDelta: {x: -20, y: -13} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224213647953742074 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1038117281720642} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224906335088659268} m_Father: {fileID: 224780874275008876} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -40} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224238831457819072 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1452233014639652} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224780874275008876} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: 0, y: -20} m_SizeDelta: {x: 350, y: 25} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224257079333593996 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1241604771225232} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224498025846528076} m_Father: {fileID: 224882768284894334} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -20, y: -20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224257213032219378 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1398107422424354} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224354480117968190} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224261305696329702 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1796596084704522} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224284724598121830} m_Father: {fileID: 224092159373810656} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0.000045776367, y: -0.000045776367} m_SizeDelta: {x: 0, y: 150} m_Pivot: {x: 0, y: 1} --- !u!224 &224284724598121830 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1832705681692260} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224853228254621744} - {fileID: 224475162601978776} - {fileID: 224103144264956170} - {fileID: 224352731534082776} m_Father: {fileID: 224261305696329702} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: -10} m_SizeDelta: {x: 0, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224313439988227356 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1336979864615460} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224353306128465064} - {fileID: 224083146489207266} - {fileID: 224200947007647554} m_Father: {fileID: 224780874275008876} m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -168} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224322283473592098 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1709498314949712} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224049057174892114} m_Father: {fileID: 224949423805156362} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 0} m_Pivot: {x: 1, y: 1} --- !u!224 &224350062542205346 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1726251241723068} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224084846329983796} m_Father: {fileID: 224780584690876326} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 28} m_Pivot: {x: 0.5, y: 1} --- !u!224 &224352567564277182 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1356167346828046} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224049057174892114} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224352731534082776 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1447480688710554} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224130212154844828} m_Father: {fileID: 224284724598121830} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0.5} m_AnchorMax: {x: 1, y: 0.5} m_AnchoredPosition: {x: -11, y: 0} m_SizeDelta: {x: 160, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224353306128465064 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1653759152042306} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224313439988227356} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -7.5, y: -0.5} m_SizeDelta: {x: -35, y: -13} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224354480117968190 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1045220300580086} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224257213032219378} m_Father: {fileID: 224885036762039290} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 10, y: -10} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224360315807059160 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1531447084012754} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224673195518626750} - {fileID: 224731574845199326} m_Father: {fileID: 224780874275008876} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -98} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224391780140676552 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1812042060104570} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224780874275008876} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -78} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224415616352557488 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1665227217993240} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224023261555899858} m_Father: {fileID: 224428500164444224} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 10, y: 75} m_SizeDelta: {x: -20, y: -20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224419845817024962 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1107817137990856} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224076307896823240} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: 0, y: -95} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224428448959645832 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1242486043179710} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224076307896823240} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: 0, y: -45} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224428500164444224 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1774478379877014} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224415616352557488} m_Father: {fileID: 224200947007647554} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -60, y: 0} m_SizeDelta: {x: 20, y: 0} m_Pivot: {x: 1, y: 1} --- !u!224 &224475162601978776 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1837601103955436} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224284724598121830} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.5} m_AnchorMax: {x: 0, y: 0.5} m_AnchoredPosition: {x: 10, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224498025846528076 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1432216780752720} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224257079333593996} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224509097553739308 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1615530503621880} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224129152929789916} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: -0.5} m_SizeDelta: {x: -20, y: -13} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224510251577120028 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1149175168417050} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224084846329983796} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224584837239734678 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1447825843342986} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224060152014116892} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224599983336833446 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1661905573956236} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224084846329983796} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 2.5, y: -0.5} m_SizeDelta: {x: -35, y: -3} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224673195518626750 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1462508878912542} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224360315807059160} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: -0.5} m_SizeDelta: {x: -20, y: -13} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224707204763240132 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1887795675915526} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224897554682185020} - {fileID: 224832326349735430} m_Father: {fileID: 224780874275008876} m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -233} m_SizeDelta: {x: 120, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224731574845199326 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1636812304155528} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224360315807059160} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: -0.5} m_SizeDelta: {x: -20, y: -13} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224780584690876326 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1429010000622966} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224350062542205346} m_Father: {fileID: 224200947007647554} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -18, y: 0} m_Pivot: {x: 0, y: 1} --- !u!224 &224780874275008876 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1539357928003196} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 0.75, y: 0.75, z: 1} m_Children: - {fileID: 224238831457819072} - {fileID: 224949423805156362} - {fileID: 224129152929789916} - {fileID: 224213647953742074} - {fileID: 224391780140676552} - {fileID: 224360315807059160} - {fileID: 224207234522465334} - {fileID: 224313439988227356} - {fileID: 224913639694983650} - {fileID: 224707204763240132} - {fileID: 224885036762039290} - {fileID: 224076307896823240} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 380, y: 400} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224825443903223122 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1118248742554544} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224084846329983796} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.5} m_AnchorMax: {x: 0, y: 0.5} m_AnchoredPosition: {x: 10, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224832326349735430 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1562732956885930} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224707204763240132} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 9, y: -0.5} m_SizeDelta: {x: -28, y: -3} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224853228254621744 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1170126592719882} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224284724598121830} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224856245218360800 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1456001636822816} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224076307896823240} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: 0, y: -20} m_SizeDelta: {x: 120, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224870938537553122 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1206153059249900} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224897554682185020} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224882768284894334 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1958413199166020} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224257079333593996} m_Father: {fileID: 224949423805156362} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 20} m_Pivot: {x: 0, y: 0} --- !u!224 &224885036762039290 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1917313355725958} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224354480117968190} - {fileID: 224130934232469484} m_Father: {fileID: 224780874275008876} m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -263} m_SizeDelta: {x: 120, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224897554682185020 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1074115938698464} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224870938537553122} m_Father: {fileID: 224707204763240132} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 10, y: -10} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224906335088659268 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1998441187318516} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224213647953742074} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224913639694983650 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1506057426938962} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224060152014116892} - {fileID: 224992317656671594} m_Father: {fileID: 224780874275008876} m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -70, y: -203} m_SizeDelta: {x: 120, y: 20} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224949423805156362 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1421842050562454} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224092159373810656} - {fileID: 224882768284894334} - {fileID: 224322283473592098} m_Father: {fileID: 224780874275008876} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: -63.5, y: -25.5} m_SizeDelta: {x: -153, y: -75} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224992317656671594 RectTransform: m_ObjectHideFlags: 1 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} m_GameObject: {fileID: 1448611073291260} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 224913639694983650} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 9, y: -0.5} m_SizeDelta: {x: -28, y: -3} m_Pivot: {x: 0.5, y: 0.5}
91
https://github.com/smondet/taquito/blob/master/packages/taquito-local-forging/src/taquito-local-forging.ts
Github Open Source
Open Source
MIT
null
taquito
smondet
TypeScript
Code
300
865
/** * @packageDocumentation * @module @taquito/local-forging */ import { ForgeParams, Forger } from './interface'; import { CODEC, ProtocolsHash } from './constants'; import { decoders } from './decoder'; import { encoders } from './encoder'; import { Uint8ArrayConsumer } from './uint8array-consumer'; import { decodersProto12 } from './proto12-ithaca/decoder'; import { encodersProto12 } from './proto12-ithaca/encoder'; import { validateBlock, ValidationResult } from '@taquito/utils'; import { InvalidBlockHashError, InvalidOperationSchemaError, InvalidOperationKindError, } from './error'; import { validateMissingProperty, validateOperationKind } from './validator'; export { CODEC, ProtocolsHash } from './constants'; export * from './decoder'; export * from './encoder'; export * from './uint8array-consumer'; export * from './interface'; export { VERSION } from './version'; export function getCodec(codec: CODEC, proto: ProtocolsHash) { if (proto === ProtocolsHash.Psithaca2) { return { encoder: encodersProto12[codec], decoder: (hex: string) => { const consumer = Uint8ArrayConsumer.fromHexString(hex); return decodersProto12[codec](consumer) as any; }, }; } else { return { encoder: encoders[codec], decoder: (hex: string) => { const consumer = Uint8ArrayConsumer.fromHexString(hex); return decoders[codec](consumer) as any; }, }; } } export class LocalForger implements Forger { constructor(public readonly protocolHash = ProtocolsHash.Psithaca2) {} private codec = getCodec(CODEC.MANAGER, this.protocolHash); forge(params: ForgeParams): Promise<string> { if (validateBlock(params.branch) !== ValidationResult.VALID) { throw new InvalidBlockHashError(`The block hash ${params.branch} is invalid`); } for (const content of params.contents) { if (!validateOperationKind(content.kind)) { throw new InvalidOperationKindError(`The operation kind '${content.kind}' does not exist`); } const diff = validateMissingProperty(content); if (diff.length === 1) { if (content.kind === 'delegation' && diff[0] === 'delegate') { continue; } else if (content.kind === 'origination' && diff[0] === 'delegate') { continue; } else if (content.kind === 'transaction' && diff[0] === 'parameters') { continue; } else { throw new InvalidOperationSchemaError( `Missing properties: ${diff.join(', ').toString()}` ); } } else if (diff.length > 1) { throw new InvalidOperationSchemaError(`Missing properties: ${diff.join(', ').toString()}`); } } return Promise.resolve(this.codec.encoder(params)); } parse(hex: string): Promise<ForgeParams> { return Promise.resolve(this.codec.decoder(hex) as ForgeParams); } } export const localForger = new LocalForger();
46,935
https://github.com/visakii-work/dgp/blob/master/dgp/utils/datasets.py
Github Open Source
Open Source
MIT
2,022
dgp
visakii-work
Python
Code
98
354
# Copyright 2021 Toyota Research Institute. All rights reserved. import os from collections import OrderedDict from dgp.proto import dataset_pb2 def get_split_to_scenes(dataset): """ Retrieve a dictionary of split to scenes of a DGP-compliant scene dataset. Parameters ---------- dataset: dgp.proto.dataset_pb2.SceneDataset SceneDataset proto object. Returns ------- split_to_scene_json: dict A dictionary of split to a list of scene JSONs. split_to_scene_dir: dict A dictionary of split to a list of scene_dirs. """ split_to_scene_json = OrderedDict() split_to_scene_dir = OrderedDict() for k, v in dataset_pb2.DatasetSplit.DESCRIPTOR.values_by_number.items(): scene_jsons = dataset.scene_splits[k].filenames split_to_scene_json[v.name] = scene_jsons split_to_scene_dir[v.name] = [os.path.dirname(scene_json) for scene_json in scene_jsons] assert len(set(split_to_scene_dir[v.name])) == len(split_to_scene_dir[v.name]) return split_to_scene_json, split_to_scene_dir
24,714
https://github.com/1050669722/LeetCode-Answers/blob/master/Python/problem0022.py
Github Open Source
Open Source
MIT
null
LeetCode-Answers
1050669722
Python
Code
167
448
# class Solution(object): # def generateParenthesis(self, N): # ans = [] # def backtrack(S = '', left = 0, right = 0): # if len(S) == 2 * N: # ans.append(S) # # print(ans) # return # # print(left, right) # # 下面这两个if有可能都被运行 # # 左括号不到一半数 则添加 左括号 # # 右括号不满左括号 则添加 右括号 # if left < N: # backtrack(S+'(', left+1, right) # if right < left: # backtrack(S+')', left, right+1) # backtrack() # return ans # # solu = Solution() # # # n = 1 # # n = 2 # # # n = 3 # # solu.generateParenthesis(n) # # # print(solu.generateParenthesis(n)) class Solution: def generateParenthesis(self, n: int) -> list: ans = [] def backtrack(S, left, right): if len(S) == 2*n: ans.append(S) return if left < n: backtrack(S+'(', left+1, right) if right < left: backtrack(S+')', left, right+1) backtrack('', 0, 0) return ans # solu = Solution() # n = 1 # # n = 2 # # n = 3 # solu.generateParenthesis(n) # print(solu.generateParenthesis(n))
39,947
https://github.com/DavidWilliamHunter/LDJam48/blob/master/Assets/Src/Game/BallSpawner.cs
Github Open Source
Open Source
MIT
null
LDJam48
DavidWilliamHunter
C#
Code
196
593
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace LDJam48 { public class BallSpawner : MonoBehaviour { public static BallSpawner _BallSpawner; public static BallSpawner GetBallSpawner() { if(!_BallSpawner) { _BallSpawner = FindObjectOfType<BallSpawner>(); } return _BallSpawner; } public Transform ballPrefab; public List<Transform> spawnLocations; public List<OpenDoor> doors; public bool spawnInfinite = true; public int noToSpawn = 5; public float timeBetweenSpawn = 1.0f; private float lastSpawn; private int spawned; private int spawner; private bool doorOpen; // Start is called before the first frame update void Start() { reset(); if (doors == null) doors = new List<OpenDoor>(spawnLocations.Count); int i = 0; foreach (Transform spawnLoc in spawnLocations) doors[i++] = spawnLoc.GetComponent<OpenDoor>(); } // Update is called once per frame void Update() { if (spawned < noToSpawn || spawnInfinite) { if (!doorOpen) { foreach (var door in doors) door.Open(); doorOpen = true; } if (Time.fixedTime > (lastSpawn + timeBetweenSpawn)) { Instantiate(ballPrefab, spawnLocations[spawner].position, spawnLocations[spawner].rotation, transform); lastSpawn = Time.fixedTime; spawned++; spawner = spawner == (spawnLocations.Count - 1) ? 0 : spawner + 1; } } else { if (doorOpen) { foreach (var door in doors) door.Close(); doorOpen = false; } } } public void reset() { lastSpawn = Time.fixedTime; spawned = 0; spawner = 0; } } }
4,676
https://github.com/syhleo/spring-source/blob/master/spring-tuling-quickstart/src/main/java/com/tuling/testapplicationlistener/MainClass.java
Github Open Source
Open Source
Apache-2.0
null
spring-source
syhleo
Java
Code
48
209
package com.tuling.testapplicationlistener; import com.tuling.testapplicationlistener.config.MainConfig; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class MainClass{ private static final long serialVersionUID = 1L; public static void main(String[] args) { AnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext(MainConfig.class); //手动发布一个事件 // ctx.publishEvent(new ApplicationEvent("我手动发布了一个事件") { // @Override // public Object getSource() { // return super.getSource(); // } // }); //容器关闭也会发布事件(ContextClosedEvent) ctx.close(); } }
26,607
https://github.com/triclambert/dcos-commons/blob/master/sdk/scheduler/src/test/java/com/mesosphere/sdk/offer/MesosResourcePoolTest.java
Github Open Source
Open Source
Apache-2.0
null
dcos-commons
triclambert
Java
Code
409
2,160
package com.mesosphere.sdk.offer; import com.mesosphere.sdk.testutils.OfferTestUtils; import com.mesosphere.sdk.testutils.ResourceTestUtils; import org.apache.mesos.Protos; import org.apache.mesos.Protos.Offer; import org.apache.mesos.Protos.Resource; import com.mesosphere.sdk.testutils.TestConstants; import org.junit.Assert; import org.junit.Test; import java.util.Arrays; public class MesosResourcePoolTest { @Test public void testEmptyUnreservedAtomicPool() { Offer offer = OfferTestUtils.getOffer(ResourceTestUtils.getUnreservedCpu(1.0)); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertEquals(0, pool.getUnreservedAtomicPool().size()); } @Test public void testCreateSingleUnreservedAtomicPool() { Offer offer = OfferTestUtils.getOffer(ResourceTestUtils.getUnreservedMountVolume(1000)); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertEquals(1, pool.getUnreservedAtomicPool().size()); Assert.assertEquals(1, pool.getUnreservedAtomicPool().get("disk").size()); } @Test public void testCreateSingleReservedAtomicPool() { Resource resource = ResourceTestUtils.getExpectedMountVolume(1000); Offer offer = OfferTestUtils.getOffer(resource); MesosResourcePool pool = new MesosResourcePool(offer); String resourceId = new MesosResource(resource).getResourceId(); Assert.assertEquals(0, pool.getUnreservedAtomicPool().size()); Assert.assertEquals(1, pool.getReservedPool().size()); Assert.assertEquals(resource, pool.getReservedPool().get(resourceId).getResource()); } @Test public void testMultipleUnreservedAtomicPool() { Resource resource = ResourceTestUtils.getUnreservedMountVolume(1000); Offer offer = OfferTestUtils.getOffer(Arrays.asList(resource, resource)); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertEquals(1, pool.getUnreservedAtomicPool().size()); Assert.assertEquals(2, pool.getUnreservedAtomicPool().get("disk").size()); } @Test public void testConsumeUnreservedAtomicResource() { Resource offerResource = ResourceTestUtils.getUnreservedMountVolume(1000); Resource resource = ResourceTestUtils.getDesiredMountVolume(1000); ResourceRequirement resReq = new ResourceRequirement(resource); Offer offer = OfferTestUtils.getOffer(offerResource); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertEquals(1, pool.getUnreservedAtomicPool().size()); MesosResource resourceToConsume = pool.consume(resReq).get(); Assert.assertEquals(offerResource, resourceToConsume.getResource()); Assert.assertEquals(0, pool.getUnreservedAtomicPool().size()); } @Test public void testConsumeReservedMergedResource() { Resource resource = ResourceTestUtils.getExpectedCpu(1.0); ResourceRequirement resReq = new ResourceRequirement(resource); Offer offer = OfferTestUtils.getOffer(resource); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertEquals(1, pool.getReservedPool().size()); MesosResource resourceToConsume = pool.consume(resReq).get(); Assert.assertEquals(resource, resourceToConsume.getResource()); Assert.assertEquals(0, pool.getReservedPool().size()); } @Test public void testConsumeUnreservedMergedResource() { Resource resource = ResourceTestUtils.getUnreservedCpu(1.0); ResourceRequirement resReq = new ResourceRequirement(resource); Offer offer = OfferTestUtils.getOffer(resource); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertEquals(1, pool.getUnreservedMergedPool().size()); Assert.assertEquals(resource.getScalar().getValue(), pool.getUnreservedMergedPool().get("cpus").getScalar().getValue(), 0.0); MesosResource resourceToConsume = pool.consume(resReq).get(); Assert.assertEquals(resource, resourceToConsume.getResource()); Assert.assertEquals(ValueUtils.getZero(Protos.Value.Type.SCALAR), pool.getUnreservedMergedPool().get("cpus")); } @Test public void testConsumeInsufficientUnreservedMergedResource() { Resource desiredUnreservedResource = ResourceTestUtils.getUnreservedCpu(2.0); ResourceRequirement resReq = new ResourceRequirement(desiredUnreservedResource); Resource offeredUnreservedResource = ResourceUtils.getUnreservedScalar("cpus", 1.0); Offer offer = OfferTestUtils.getOffer(offeredUnreservedResource); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertFalse(pool.consume(resReq).isPresent()); } @Test public void testConsumeDynamicPort() throws DynamicPortRequirement.DynamicPortException { Resource desiredDynamicPort = DynamicPortRequirement.getDesiredDynamicPort( TestConstants.PORT_NAME, TestConstants.ROLE, TestConstants.PRINCIPAL); DynamicPortRequirement dynamicPortRequirement = new DynamicPortRequirement(desiredDynamicPort); Resource offeredPorts = ResourceTestUtils.getUnreservedPorts(10000, 10005); Offer offer = OfferTestUtils.getOffer(offeredPorts); MesosResourcePool pool = new MesosResourcePool(offer); MesosResource mesosResource = pool.consume(dynamicPortRequirement).get(); Assert.assertEquals(1, mesosResource.getResource().getRanges().getRangeCount()); Protos.Value.Range range = mesosResource.getResource().getRanges().getRange(0); Assert.assertEquals(10000, range.getBegin()); Assert.assertEquals(10000, range.getEnd()); } @Test public void testConsumeNamedVIPPort() throws NamedVIPPortRequirement.NamedVIPPortException { Resource desiredNamedVIPPort = NamedVIPPortRequirement.getDesiredNamedVIPPort( TestConstants.VIP_KEY, TestConstants.VIP_NAME, (long) 10002, TestConstants.ROLE, TestConstants.PRINCIPAL); NamedVIPPortRequirement namedVIPPortRequirement = new NamedVIPPortRequirement(desiredNamedVIPPort); Resource offeredPorts = ResourceTestUtils.getUnreservedPorts(10000, 10005); Offer offer = OfferTestUtils.getOffer(offeredPorts); MesosResourcePool pool = new MesosResourcePool(offer); MesosResource mesosResource = pool.consume(namedVIPPortRequirement).get(); Assert.assertEquals(1, mesosResource.getResource().getRanges().getRangeCount()); Protos.Value.Range range = mesosResource.getResource().getRanges().getRange(0); Assert.assertEquals(10002, range.getBegin()); Assert.assertEquals(10002, range.getEnd()); } @Test public void testReleaseAtomicResource() { Resource offerResource = ResourceTestUtils.getUnreservedMountVolume(1000); Resource releaseResource = ResourceTestUtils.getExpectedMountVolume(1000); Offer offer = OfferTestUtils.getOffer(offerResource); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertEquals(1, pool.getUnreservedAtomicPool().get("disk").size()); pool.release(new MesosResource(releaseResource)); Assert.assertEquals(2, pool.getUnreservedAtomicPool().get("disk").size()); } @Test public void testReleaseMergedResource() { Resource resource = ResourceTestUtils.getUnreservedCpu(1.0); Offer offer = OfferTestUtils.getOffer(resource); MesosResourcePool pool = new MesosResourcePool(offer); Assert.assertEquals(1, pool.getUnreservedMergedPool().get("cpus").getScalar().getValue(), 0.0); pool.release(new MesosResource(resource)); Assert.assertEquals(2, pool.getUnreservedMergedPool().get("cpus").getScalar().getValue(), 0.0); } }
44,508
https://github.com/njohanley/bcfishpass/blob/master/01_prep/04_channel_width/sql/map.sql
Github Open Source
Open Source
Apache-2.0
2,021
bcfishpass
njohanley
SQL
Code
144
454
-- Load mean annual precipitation for each stream segment. -- Insert the precip on the stream, and the area of the fundamental watershed(s) associated with the stream WITH streams_with_areas AS ( SELECT b.wscode_ltree, b.localcode_ltree, b.watershed_group_code, round(sum(ST_Area(b.geom)))::bigint as area, avg(a.map)::integer as map FROM bcfishpass.mean_annual_precip_wsd a INNER JOIN whse_basemapping.fwa_watersheds_poly b ON a.watershed_feature_id = b.watershed_feature_id WHERE a.map IS NOT NULL AND b.wscode_ltree IS NOT NULL AND b.localcode_ltree IS NOT NULL AND b.watershed_group_code = :'wsg' GROUP BY b.wscode_ltree, b.localcode_ltree, b.watershed_group_code ) INSERT INTO bcfishpass.mean_annual_precip ( wscode_ltree, localcode_ltree, watershed_group_code, area, map ) SELECT * FROM streams_with_areas -- add all streams with no fundanmental watershed, they have precip but watershed area of zero -- (set to 1 to avoid dividing by zero) UNION ALL SELECT wscode_ltree, localcode_ltree, watershed_group_code, 1 as area, round(map::numeric)::integer as map FROM bcfishpass.mean_annual_precip_load WHERE wscode_ltree IS NOT NULL AND localcode_ltree IS NOT NULL ON CONFLICT DO NOTHING;
40,837
https://github.com/whasselbring/kieker/blob/master/kieker-common/test/kieker/test/common/junit/record/io/TextValueDeserializerTest.java
Github Open Source
Open Source
Apache-2.0
null
kieker
whasselbring
Java
Code
440
1,532
/*************************************************************************** * Copyright 2020 Kieker Project (http://kieker-monitoring.net) * * 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 kieker.test.common.junit.record.io; import java.nio.CharBuffer; import org.junit.Assert; import org.junit.Test; import kieker.common.record.io.TextValueDeserializer; import kieker.common.util.Version; import kieker.test.common.junit.AbstractKiekerTest; /** * Test text value serializer. * * @author Reiner Jung * * @since 1.14 */ public class TextValueDeserializerTest extends AbstractKiekerTest { // NOCS NOPMD test, no constructor needed @Test public void testCreateAndReadKiekerMonitoringRecord() { final String string = "$0;1521828677048314440;" + Version.getVERSION() + ";SingleCatBuyer;stockholm;1;false;0;NANOSECONDS;0"; final CharBuffer buffer = CharBuffer.wrap(string.toCharArray()); final char lead = buffer.get(); Assert.assertEquals("Lead char was not $", lead, '$'); final TextValueDeserializer deserializer = TextValueDeserializer.create(buffer); Assert.assertEquals("record id error", deserializer.getInt(), 0); Assert.assertEquals("logging timestamp error", deserializer.getLong(), 1521828677048314440L); Assert.assertEquals("version error", deserializer.getString(), Version.getVERSION()); Assert.assertEquals("controller name error", deserializer.getString(), "SingleCatBuyer"); Assert.assertEquals("hostname error", deserializer.getString(), "stockholm"); Assert.assertEquals("experiment id error", deserializer.getInt(), 1); Assert.assertEquals("debug mode error", deserializer.getBoolean(), false); Assert.assertEquals("time offset error", deserializer.getLong(), 0); Assert.assertEquals("time unit error", deserializer.getString(), "NANOSECONDS"); Assert.assertEquals("number of records error", deserializer.getLong(), 0); } /** * * @author Reiner Jung * * @since 1.14 */ enum ETestExample { NO, YES } @Test public void testCreateAndReadCheckEveryMethod() { final String string = "false;0;1;2;3;4;5.5;6.6;a line of text with a semicolon(\\;);0"; final CharBuffer buffer = CharBuffer.wrap(string.toCharArray()); final TextValueDeserializer deserializer = TextValueDeserializer.create(buffer); Assert.assertEquals("boolean error", deserializer.getBoolean(), false); Assert.assertEquals("byte error", deserializer.getByte(), 0); Assert.assertEquals("char error", deserializer.getChar(), '1'); Assert.assertEquals("short error", deserializer.getShort(), 2); Assert.assertEquals("int error", deserializer.getInt(), 3); Assert.assertEquals("long error", deserializer.getLong(), 4); Assert.assertEquals("float error", deserializer.getFloat(), 5.5, 0.00001); Assert.assertEquals("double error", deserializer.getDouble(), 6.6, 0.00001); Assert.assertEquals("string error", deserializer.getString(), "a line of text with a semicolon(\\;)"); Assert.assertEquals("enum error", deserializer.getEnumeration(ETestExample.class), ETestExample.NO); } @Test public void testLastFieldEmpty() { final String string = "false;0;1;2;3;4;5.5;6.6;a line of text with a semicolon(\\;);"; final CharBuffer buffer = CharBuffer.wrap(string.toCharArray()); final TextValueDeserializer deserializer = TextValueDeserializer.create(buffer); Assert.assertEquals("boolean error", deserializer.getBoolean(), false); Assert.assertEquals("byte error", deserializer.getByte(), 0); Assert.assertEquals("char error", deserializer.getChar(), '1'); Assert.assertEquals("short error", deserializer.getShort(), 2); Assert.assertEquals("int error", deserializer.getInt(), 3); Assert.assertEquals("long error", deserializer.getLong(), 4); Assert.assertEquals("float error", deserializer.getFloat(), 5.5, 0.00001); Assert.assertEquals("double error", deserializer.getDouble(), 6.6, 0.00001); Assert.assertEquals("string error", deserializer.getString(), "a line of text with a semicolon(\\;)"); Assert.assertEquals("string error", deserializer.getString(), ""); } @Test public void testWrongValueInField() { final String string = "text;number"; final CharBuffer buffer = CharBuffer.wrap(string.toCharArray()); final TextValueDeserializer deserializer = TextValueDeserializer.create(buffer); Assert.assertEquals("string error", deserializer.getString(), "text"); try { deserializer.getInt(); Assert.fail("getInt should never return a value for non-number strings."); } catch (final NumberFormatException e) { Assert.assertTrue(true); } } }
38,934
https://github.com/hparadiz/better_jwt/blob/master/test/unit/Validation/Constraint/SignedWithTest.php
Github Open Source
Open Source
BSD-3-Clause
2,021
better_jwt
hparadiz
PHP
Code
193
919
<?php namespace Lcobucci\JWT\Validation\Constraint; use Lcobucci\JWT\Signer; use Lcobucci\JWT\Signature; use Lcobucci\JWT\Validation\ConstraintViolation; use PHPUnit_Framework_MockObject_MockObject; /** * @coversDefaultClass \Lcobucci\JWT\Validation\Constraint\SignedWith * * @uses \Lcobucci\JWT\Signer\Key\InMemory * @uses \Lcobucci\JWT\Token\DataSet * @uses \Lcobucci\JWT\Token * @uses \Lcobucci\JWT\Signature * @uses \Lcobucci\JWT\Signer\Key * @uses \Lcobucci\JWT\Signer\Key\InMemory * @uses \Lcobucci\JWT\Claim\Factory */ final class SignedWithTest extends ConstraintTestCase { /** @var Signer&PHPUnit_Framework_MockObject_MockObject */ private $signer; /** @var Signer\Key */ private $key; /** @var Signature */ private $signature; /** @before */ public function createDependencies() { $this->signer = $this->createMock(Signer::class); $this->signer->method('getAlgorithmId')->willReturn('RS256'); $this->key = Signer\Key\InMemory::plainText('123'); $this->signature = new Signature('1234'); } /** * @test * * @covers ::__construct * @covers ::assert */ public function assertShouldRaiseExceptionWhenSignerIsNotTheSame() { $token = $this->buildToken([], ['alg' => 'test'], $this->signature); $this->signer->expects(self::never())->method('verify'); $this->expectException(ConstraintViolation::class); $this->expectExceptionMessage('Token signer mismatch'); $constraint = new SignedWith($this->signer, $this->key); $constraint->assert($token); } /** * @test * * @covers ::__construct * @covers ::assert */ public function assertShouldRaiseExceptionWhenSignatureIsInvalid() { $token = $this->buildToken([], ['alg' => 'RS256'], $this->signature); $this->signer->expects(self::once()) ->method('verify') ->with((string) $this->signature, $token->getPayload(), $this->key) ->willReturn(false); $this->expectException(ConstraintViolation::class); $this->expectExceptionMessage('Token signature mismatch'); $constraint = new SignedWith($this->signer, $this->key); $constraint->assert($token); } /** * @test * * @covers ::__construct * @covers ::assert */ public function assertShouldRaiseExceptionWhenSignatureIsValid() { $token = $this->buildToken([], ['alg' => 'RS256'], $this->signature); $this->signer->expects(self::once()) ->method('verify') ->with((string) $this->signature, $token->getPayload(), $this->key) ->willReturn(true); $constraint = new SignedWith($this->signer, $this->key); $constraint->assert($token); $this->addToAssertionCount(1); } }
31,856
https://github.com/liuyanjun528/changshnegshu/blob/master/annaru-upms-web/src/main/java/com/annaru/upms/controller/UserWalletController.java
Github Open Source
Open Source
Apache-2.0
null
changshnegshu
liuyanjun528
Java
Code
246
1,211
package com.annaru.upms.controller; import java.util.*; import org.apache.shiro.authz.annotation.RequiresPermissions; import com.alibaba.dubbo.config.annotation.Reference; import org.springframework.web.bind.annotation.*; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import com.annaru.common.base.BaseController; import com.annaru.common.result.PageUtils; import com.annaru.upms.shiro.ShiroKit; import com.annaru.common.result.ResultMap; import com.annaru.upms.entity.UserWallet; import com.annaru.upms.service.IUserWalletService; import javax.validation.Valid; /** * 用户钱包 * * @author wh * @date 2019-07-12 18:04:35 */ @Api(tags = {"用户钱包管理"}, description = "用户钱包管理") @RestController @RequestMapping("upms/userWallet") public class UserWalletController extends BaseController { @Reference private IUserWalletService userWalletService; /** * 列表 */ @ApiOperation(value = "列表") @GetMapping("/list") //@RequiresPermissions("upms/userWallet/list") public ResultMap list(@ApiParam(value = "当前页")@RequestParam(defaultValue="1") int page, @ApiParam(value = "每页数量")@RequestParam(defaultValue = "10") int limit, @ApiParam(value = "关键字")@RequestParam(required = false)String key){ try { Map<String, Object> params = new HashMap<>(); params.put("page",page); params.put("limit", limit); params.put("key", key); PageUtils<Map<String, Object>> pageList = userWalletService.getDataPage(params); return ResultMap.ok().put("page",pageList); } catch (Exception e) { logger.error(e.getMessage()); return ResultMap.error("运行异常,请联系管理员"); } } /** * 信息 */ @ApiOperation(value = "查看详情", notes = "查看upms详情") @GetMapping("/info/{sysId}") @RequiresPermissions("upms/userWallet/info") public ResultMap info(@PathVariable("sysId") Integer sysId){ try { UserWallet userWallet = userWalletService.getById(sysId); return ResultMap.ok().put("userWallet",userWallet); } catch (Exception e) { logger.error(e.getMessage()); return ResultMap.error("运行异常,请联系管理员"); } } /** * 保存 */ @ApiOperation(value = "保存") @PostMapping("/save") @RequiresPermissions("upms/userWallet/save") public ResultMap save(@Valid @RequestBody UserWallet userWallet) { try { userWalletService.save(userWallet); return ResultMap.ok("添加成功"); } catch (Exception e) { logger.error(e.getMessage()); return ResultMap.error("运行异常,请联系管理员"); } } /** * 修改 */ @ApiOperation(value = "修改") @PostMapping("/update") @RequiresPermissions("upms/userWallet/update") public ResultMap update(@Valid @RequestBody UserWallet userWallet) { try { userWalletService.updateById(userWallet); return ResultMap.ok("修改成功"); } catch (Exception e) { logger.error(e.getMessage()); return ResultMap.error("运行异常,请联系管理员"); } } /** * 删除 */ @ApiOperation(value = "删除") @PostMapping("/delete") @RequiresPermissions("upms/userWallet/delete") public ResultMap delete(@RequestBody Integer[]sysIds) { try { userWalletService.removeByIds(Arrays.asList(sysIds)); return ResultMap.ok("删除成功!"); } catch (Exception e) { logger.error(e.getMessage()); return ResultMap.error("运行异常,请联系管理员"); } } }
35,250
https://github.com/leiflm/cwa-app-android/blob/master/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/onboarding/OnboardingPrivacyFragment.kt
Github Open Source
Open Source
Apache-2.0
2,021
cwa-app-android
leiflm
Kotlin
Code
77
414
package de.rki.coronawarnapp.ui.onboarding import android.os.Bundle import android.view.View import android.view.accessibility.AccessibilityEvent import androidx.fragment.app.Fragment import androidx.navigation.fragment.findNavController import de.rki.coronawarnapp.R import de.rki.coronawarnapp.databinding.FragmentOnboardingPrivacyBinding import de.rki.coronawarnapp.ui.doNavigate import de.rki.coronawarnapp.util.ui.viewBindingLazy /** * This fragment informs the user regarding privacy. */ class OnboardingPrivacyFragment : Fragment(R.layout.fragment_onboarding_privacy) { private val binding: FragmentOnboardingPrivacyBinding by viewBindingLazy() override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) setButtonOnClickListener() } override fun onResume() { super.onResume() binding.onboardingPrivacyContainer.sendAccessibilityEvent(AccessibilityEvent.TYPE_ANNOUNCEMENT) } private fun setButtonOnClickListener() { binding.onboardingButtonNext.setOnClickListener { findNavController().doNavigate( OnboardingPrivacyFragmentDirections.actionOnboardingPrivacyFragmentToOnboardingTracingFragment() ) } binding.onboardingButtonBack.buttonIcon.setOnClickListener { (activity as OnboardingActivity).goBack() } } }
14,212
https://github.com/rilexus/personal-site/blob/master/src/components/page-components/start/tech-list/components/tech-scroll-view/tech-scroll-view.tsx
Github Open Source
Open Source
MIT
null
personal-site
rilexus
TypeScript
Code
786
2,134
import * as React from "react" import posed from "react-pose" import ScrollView from "../../scroll-view/scroll-view" import { TechIconAnimated } from "../tech-icon/tech-icon" import { useRef } from "react" import { useIsInView } from "../../../../../../hooks/useIsinView" import { useState } from "react" export const techIcons = [ { name: "JavaScript", width: 50, height: 50, url: "https://www.javascript.com", src: "https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/240px-Unofficial_JavaScript_logo_2.svg.png", desc: "JavaScript often abbreviated as JS, is a high-level, interpreted scripting language that conforms to the ECMAScript specification. JavaScript has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions. Alongside HTML and CSS, JavaScript is one of the core technologies of the World Wide Web.", }, { name: "Node.js", width: 85, height: 55, url: "https://nodejs.org/en/", src: "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Node.js_logo.svg/590px-Node.js_logo.svg.png", desc: 'As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. In the following "hello world" example, many connections can be handled concurrently. Upon each connection, the callback is fired, but if there is no work to be done, Node.js will sleep.', }, { name: "React", width: 55, height: 55, url: "https://reactjs.org/", src: "https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg", desc: "React is a JavaScript library for building user interfaces. It is maintained by Facebook and a community of individual developers and companies. React can be used as a base in the development of single-page or mobile applications, as it is optimal for fetching rapidly changing data that needs to be recorded.", }, { name: "NestJs", width: 48, height: 48, url: "https://nestjs.com", src: "https://seeklogo.com/images/N/nestjs-logo-09342F76C0-seeklogo.com.png", desc: "Nest is a framework for building efficient, scalable Node.js server-side applications. It uses modern JavaScript, is built with TypeScript (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).", }, { name: "GraphQL", width: 55, height: 55, url: "https://graphql.org/", src: "https://upload.wikimedia.org/wikipedia/commons/1/17/GraphQL_Logo.svg", desc: "GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.", }, { name: "Prisma", width: 55, height: 55, url: "https://www.prisma.io", src: "https://seeklogo.com/images/P/prisma-logo-3805665B69-seeklogo.com.png", desc: "GraphQL is a simple yet incredibly powerful abstraction for working with data. Prisma is the first step towards making GraphQL a universal query language by abstracting away the complexity of SQL and other database APIs.", }, { name: "Styled-Components", width: 55, height: 55, url: "https://www.styled-components.com/", src: "https://angeloocana.com/imgs/styled-components.png", desc: "Utilising tagged template literals (a recent addition to JavaScript) and the power of CSS, styled-components allows you to write actual CSS code to style your components. It also removes the mapping between components and styles.", }, { name: "CSS", width: 55, height: 55, url: "https://developer.mozilla.org/en-US/docs/Web/CSS", src: "https://upload.wikimedia.org/wikipedia/commons/d/d5/CSS3_logo_and_wordmark.svg", desc: "Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS describes how elements should be rendered on screen, on paper, in speech, or on other media.", }, { name: "HTML", width: 55, height: 55, url: "https://www.w3.org/html/", src: "https://upload.wikimedia.org/wikipedia/commons/6/61/HTML5_logo_and_wordmark.svg", desc: "Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.", }, { name: "Sketch", width: 59, height: 55, url: "https://www.sketch.com", src: "https://upload.wikimedia.org/wikipedia/commons/thumb/5/59/Sketch_Logo.svg/788px-Sketch_Logo.svg.png", desc: "Sketch is a vector graphics editor, developed by the Dutch company Bohemian Coding. A key difference between Sketch and other vector graphics editors is that Sketch does not include print design features.", }, { name: "Photoshop", width: 55, height: 55, url: "https://www.adobe.com/products/photoshopfamily.html", src: "https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Adobe_Photoshop_CC_icon.svg/1024px-Adobe_Photoshop_CC_icon.svg.png", desc: "Adobe Photoshop is a raster graphics editor developed and published by Adobe Inc. for Windows and macOS. It was originally created in 1988 by Thomas and John Knoll. Since then, this software has become the industry standard not only in raster graphics editing, but in digital art as a whole.", }, { name: "Intellij", width: 55, height: 55, url: "https://www.jetbrains.com", src: "https://cdn.iconscout.com/icon/free/png-512/intellij-idea-569199.png", desc: "IntelliJ IDEA is a Java integrated development environment for developing computer software. It is developed by JetBrains, and is available as an Apache 2 Licensed community edition, and in a proprietary commercial edition. Both can be used for commercial development.", }, ] const ChildStaggger = posed.div({ visible: { staggerChildren: 100, }, hidden: { staggerChildren: 10, }, init: { display: "flex", alignItems: "center", justifyContent: "space-evenly", }, }) export const TechScrollView = ({ onMouseOver }) => { const ref = useRef() const animate = useIsInView(ref) return ( <ScrollView> <ChildStaggger ref={ref} pose={animate ? "visible" : "hidden"}> {techIcons.map((icon, idx) => ( <span key={`tech-icon-${idx}`} onMouseOver={() => { onMouseOver(idx) }} > <TechIconAnimated icon={icon} /> </span> ))} </ChildStaggger> </ScrollView> ) }
4,584
https://github.com/donny741/spree_paysera/blob/master/app/models/spree/gateway/paysera.rb
Github Open Source
Open Source
MIT
2,021
spree_paysera
donny741
Ruby
Code
63
254
# frozen_string_literal: true class Spree::Gateway::Paysera < Spree::Gateway preference :project_id, :integer preference :sign_key, :string preference :api_version, :string, default: '1.6' preference :domain_name, :string preference :message_text, :string preference :service_url, :string, default: 'https://www.paysera.lt/pay/?' preference :image_url, :string, default: 'https://bank.paysera.com/assets/image/payment_types/wallet.png' def provider_class Paysera end def source_required? false end def auto_capture? true end def method_type 'paysera' end def purchase(_amount, _transaction_details, _options = {}) ActiveMerchant::Billing::Response.new(true, 'Paysera success', {}, {}) end end
25,498
https://github.com/stestagg/dojo-santa/blob/master/hat.py
Github Open Source
Open Source
MIT
null
dojo-santa
stestagg
Python
Code
175
601
import os import json import random def get_users(): current_directory = os.path.dirname(__file__) users_db = os.path.join(current_directory, 'users.json') with open(users_db) as fh: return json.load(fh) def update_users(data): current_directory = os.path.dirname(__file__) users_db = os.path.join(current_directory, 'users.json') with open(users_db, "w") as fh: return json.dump(data, fh) def get_undrawn_users(): return [k for k, v in get_users().items() if v is None] def get_unassigned_users(): users = get_users() from_users = users.keys() to_users = users.values() return set(from_users) - set(to_users) def add(name): users = get_users() if name in users: raise ValueError("User already in hat") users[name] = None update_users(users) def assign(name): users = get_users() if users[name] is not None: return users[name] unassigned = get_unassigned_users() if name in unassigned: unassigned.remove(name) unassigned = list(unassigned) random.shuffle(unassigned) partner = unassigned[0] users[name] = partner update_users(users) return partner def ready_to_give_gifts(): users = get_users() if len(get_undrawn_users()) != 0: return False if len(get_unassigned_users()): raise ValueError("Uneven number of users") return True def remove(name): users = get_users() if name not in users: raise ValueError("User not there hat") del users[name] for key, value in users.items(): if value == name: users[key] = None update_users(users) if __name__ == "__main__": print(get_users()) print(get_undrawn_users()) print(assign("matt")) print(get_undrawn_users())
44,485
https://github.com/Dridus/atsam-pac/blob/master/pac/atsam4ls8c/src/hflashc/fgpfrlo.rs
Github Open Source
Open Source
Apache-2.0, MIT
null
atsam-pac
Dridus
Rust
Code
2,327
7,212
#[doc = "Register `FGPFRLO` reader"] pub struct R(crate::R<FGPFRLO_SPEC>); impl core::ops::Deref for R { type Target = crate::R<FGPFRLO_SPEC>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl From<crate::R<FGPFRLO_SPEC>> for R { #[inline(always)] fn from(reader: crate::R<FGPFRLO_SPEC>) -> Self { R(reader) } } #[doc = "Field `LOCK0` reader - Lock Bit 0"] pub struct LOCK0_R(crate::FieldReader<bool, bool>); impl LOCK0_R { pub(crate) fn new(bits: bool) -> Self { LOCK0_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK0_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK1` reader - Lock Bit 1"] pub struct LOCK1_R(crate::FieldReader<bool, bool>); impl LOCK1_R { pub(crate) fn new(bits: bool) -> Self { LOCK1_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK1_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK2` reader - Lock Bit 2"] pub struct LOCK2_R(crate::FieldReader<bool, bool>); impl LOCK2_R { pub(crate) fn new(bits: bool) -> Self { LOCK2_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK2_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK3` reader - Lock Bit 3"] pub struct LOCK3_R(crate::FieldReader<bool, bool>); impl LOCK3_R { pub(crate) fn new(bits: bool) -> Self { LOCK3_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK3_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK4` reader - Lock Bit 4"] pub struct LOCK4_R(crate::FieldReader<bool, bool>); impl LOCK4_R { pub(crate) fn new(bits: bool) -> Self { LOCK4_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK4_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK5` reader - Lock Bit 5"] pub struct LOCK5_R(crate::FieldReader<bool, bool>); impl LOCK5_R { pub(crate) fn new(bits: bool) -> Self { LOCK5_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK5_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK6` reader - Lock Bit 6"] pub struct LOCK6_R(crate::FieldReader<bool, bool>); impl LOCK6_R { pub(crate) fn new(bits: bool) -> Self { LOCK6_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK6_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK7` reader - Lock Bit 7"] pub struct LOCK7_R(crate::FieldReader<bool, bool>); impl LOCK7_R { pub(crate) fn new(bits: bool) -> Self { LOCK7_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK7_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK8` reader - Lock Bit 8"] pub struct LOCK8_R(crate::FieldReader<bool, bool>); impl LOCK8_R { pub(crate) fn new(bits: bool) -> Self { LOCK8_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK8_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK9` reader - Lock Bit 9"] pub struct LOCK9_R(crate::FieldReader<bool, bool>); impl LOCK9_R { pub(crate) fn new(bits: bool) -> Self { LOCK9_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK9_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK10` reader - Lock Bit 10"] pub struct LOCK10_R(crate::FieldReader<bool, bool>); impl LOCK10_R { pub(crate) fn new(bits: bool) -> Self { LOCK10_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK10_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK11` reader - Lock Bit 11"] pub struct LOCK11_R(crate::FieldReader<bool, bool>); impl LOCK11_R { pub(crate) fn new(bits: bool) -> Self { LOCK11_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK11_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK12` reader - Lock Bit 12"] pub struct LOCK12_R(crate::FieldReader<bool, bool>); impl LOCK12_R { pub(crate) fn new(bits: bool) -> Self { LOCK12_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK12_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK13` reader - Lock Bit 13"] pub struct LOCK13_R(crate::FieldReader<bool, bool>); impl LOCK13_R { pub(crate) fn new(bits: bool) -> Self { LOCK13_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK13_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK14` reader - Lock Bit 14"] pub struct LOCK14_R(crate::FieldReader<bool, bool>); impl LOCK14_R { pub(crate) fn new(bits: bool) -> Self { LOCK14_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK14_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `LOCK15` reader - Lock Bit 15"] pub struct LOCK15_R(crate::FieldReader<bool, bool>); impl LOCK15_R { pub(crate) fn new(bits: bool) -> Self { LOCK15_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for LOCK15_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF16` reader - General Purpose Fuse 16"] pub struct GPF16_R(crate::FieldReader<bool, bool>); impl GPF16_R { pub(crate) fn new(bits: bool) -> Self { GPF16_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF16_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF17` reader - General Purpose Fuse 17"] pub struct GPF17_R(crate::FieldReader<bool, bool>); impl GPF17_R { pub(crate) fn new(bits: bool) -> Self { GPF17_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF17_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF18` reader - General Purpose Fuse 18"] pub struct GPF18_R(crate::FieldReader<bool, bool>); impl GPF18_R { pub(crate) fn new(bits: bool) -> Self { GPF18_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF18_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF19` reader - General Purpose Fuse 19"] pub struct GPF19_R(crate::FieldReader<bool, bool>); impl GPF19_R { pub(crate) fn new(bits: bool) -> Self { GPF19_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF19_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF20` reader - General Purpose Fuse 20"] pub struct GPF20_R(crate::FieldReader<bool, bool>); impl GPF20_R { pub(crate) fn new(bits: bool) -> Self { GPF20_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF20_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF21` reader - General Purpose Fuse 21"] pub struct GPF21_R(crate::FieldReader<bool, bool>); impl GPF21_R { pub(crate) fn new(bits: bool) -> Self { GPF21_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF21_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF22` reader - General Purpose Fuse 22"] pub struct GPF22_R(crate::FieldReader<bool, bool>); impl GPF22_R { pub(crate) fn new(bits: bool) -> Self { GPF22_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF22_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF23` reader - General Purpose Fuse 23"] pub struct GPF23_R(crate::FieldReader<bool, bool>); impl GPF23_R { pub(crate) fn new(bits: bool) -> Self { GPF23_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF23_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF24` reader - General Purpose Fuse 24"] pub struct GPF24_R(crate::FieldReader<bool, bool>); impl GPF24_R { pub(crate) fn new(bits: bool) -> Self { GPF24_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF24_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF25` reader - General Purpose Fuse 25"] pub struct GPF25_R(crate::FieldReader<bool, bool>); impl GPF25_R { pub(crate) fn new(bits: bool) -> Self { GPF25_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF25_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF26` reader - General Purpose Fuse 26"] pub struct GPF26_R(crate::FieldReader<bool, bool>); impl GPF26_R { pub(crate) fn new(bits: bool) -> Self { GPF26_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF26_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF27` reader - General Purpose Fuse 27"] pub struct GPF27_R(crate::FieldReader<bool, bool>); impl GPF27_R { pub(crate) fn new(bits: bool) -> Self { GPF27_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF27_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF28` reader - General Purpose Fuse 28"] pub struct GPF28_R(crate::FieldReader<bool, bool>); impl GPF28_R { pub(crate) fn new(bits: bool) -> Self { GPF28_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF28_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF29` reader - General Purpose Fuse 29"] pub struct GPF29_R(crate::FieldReader<bool, bool>); impl GPF29_R { pub(crate) fn new(bits: bool) -> Self { GPF29_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF29_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF30` reader - General Purpose Fuse 30"] pub struct GPF30_R(crate::FieldReader<bool, bool>); impl GPF30_R { pub(crate) fn new(bits: bool) -> Self { GPF30_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF30_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `GPF31` reader - General Purpose Fuse 31"] pub struct GPF31_R(crate::FieldReader<bool, bool>); impl GPF31_R { pub(crate) fn new(bits: bool) -> Self { GPF31_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPF31_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl R { #[doc = "Bit 0 - Lock Bit 0"] #[inline(always)] pub fn lock0(&self) -> LOCK0_R { LOCK0_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - Lock Bit 1"] #[inline(always)] pub fn lock1(&self) -> LOCK1_R { LOCK1_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Lock Bit 2"] #[inline(always)] pub fn lock2(&self) -> LOCK2_R { LOCK2_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Lock Bit 3"] #[inline(always)] pub fn lock3(&self) -> LOCK3_R { LOCK3_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 4 - Lock Bit 4"] #[inline(always)] pub fn lock4(&self) -> LOCK4_R { LOCK4_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 5 - Lock Bit 5"] #[inline(always)] pub fn lock5(&self) -> LOCK5_R { LOCK5_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 6 - Lock Bit 6"] #[inline(always)] pub fn lock6(&self) -> LOCK6_R { LOCK6_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 7 - Lock Bit 7"] #[inline(always)] pub fn lock7(&self) -> LOCK7_R { LOCK7_R::new(((self.bits >> 7) & 0x01) != 0) } #[doc = "Bit 8 - Lock Bit 8"] #[inline(always)] pub fn lock8(&self) -> LOCK8_R { LOCK8_R::new(((self.bits >> 8) & 0x01) != 0) } #[doc = "Bit 9 - Lock Bit 9"] #[inline(always)] pub fn lock9(&self) -> LOCK9_R { LOCK9_R::new(((self.bits >> 9) & 0x01) != 0) } #[doc = "Bit 10 - Lock Bit 10"] #[inline(always)] pub fn lock10(&self) -> LOCK10_R { LOCK10_R::new(((self.bits >> 10) & 0x01) != 0) } #[doc = "Bit 11 - Lock Bit 11"] #[inline(always)] pub fn lock11(&self) -> LOCK11_R { LOCK11_R::new(((self.bits >> 11) & 0x01) != 0) } #[doc = "Bit 12 - Lock Bit 12"] #[inline(always)] pub fn lock12(&self) -> LOCK12_R { LOCK12_R::new(((self.bits >> 12) & 0x01) != 0) } #[doc = "Bit 13 - Lock Bit 13"] #[inline(always)] pub fn lock13(&self) -> LOCK13_R { LOCK13_R::new(((self.bits >> 13) & 0x01) != 0) } #[doc = "Bit 14 - Lock Bit 14"] #[inline(always)] pub fn lock14(&self) -> LOCK14_R { LOCK14_R::new(((self.bits >> 14) & 0x01) != 0) } #[doc = "Bit 15 - Lock Bit 15"] #[inline(always)] pub fn lock15(&self) -> LOCK15_R { LOCK15_R::new(((self.bits >> 15) & 0x01) != 0) } #[doc = "Bit 16 - General Purpose Fuse 16"] #[inline(always)] pub fn gpf16(&self) -> GPF16_R { GPF16_R::new(((self.bits >> 16) & 0x01) != 0) } #[doc = "Bit 17 - General Purpose Fuse 17"] #[inline(always)] pub fn gpf17(&self) -> GPF17_R { GPF17_R::new(((self.bits >> 17) & 0x01) != 0) } #[doc = "Bit 18 - General Purpose Fuse 18"] #[inline(always)] pub fn gpf18(&self) -> GPF18_R { GPF18_R::new(((self.bits >> 18) & 0x01) != 0) } #[doc = "Bit 19 - General Purpose Fuse 19"] #[inline(always)] pub fn gpf19(&self) -> GPF19_R { GPF19_R::new(((self.bits >> 19) & 0x01) != 0) } #[doc = "Bit 20 - General Purpose Fuse 20"] #[inline(always)] pub fn gpf20(&self) -> GPF20_R { GPF20_R::new(((self.bits >> 20) & 0x01) != 0) } #[doc = "Bit 21 - General Purpose Fuse 21"] #[inline(always)] pub fn gpf21(&self) -> GPF21_R { GPF21_R::new(((self.bits >> 21) & 0x01) != 0) } #[doc = "Bit 22 - General Purpose Fuse 22"] #[inline(always)] pub fn gpf22(&self) -> GPF22_R { GPF22_R::new(((self.bits >> 22) & 0x01) != 0) } #[doc = "Bit 23 - General Purpose Fuse 23"] #[inline(always)] pub fn gpf23(&self) -> GPF23_R { GPF23_R::new(((self.bits >> 23) & 0x01) != 0) } #[doc = "Bit 24 - General Purpose Fuse 24"] #[inline(always)] pub fn gpf24(&self) -> GPF24_R { GPF24_R::new(((self.bits >> 24) & 0x01) != 0) } #[doc = "Bit 25 - General Purpose Fuse 25"] #[inline(always)] pub fn gpf25(&self) -> GPF25_R { GPF25_R::new(((self.bits >> 25) & 0x01) != 0) } #[doc = "Bit 26 - General Purpose Fuse 26"] #[inline(always)] pub fn gpf26(&self) -> GPF26_R { GPF26_R::new(((self.bits >> 26) & 0x01) != 0) } #[doc = "Bit 27 - General Purpose Fuse 27"] #[inline(always)] pub fn gpf27(&self) -> GPF27_R { GPF27_R::new(((self.bits >> 27) & 0x01) != 0) } #[doc = "Bit 28 - General Purpose Fuse 28"] #[inline(always)] pub fn gpf28(&self) -> GPF28_R { GPF28_R::new(((self.bits >> 28) & 0x01) != 0) } #[doc = "Bit 29 - General Purpose Fuse 29"] #[inline(always)] pub fn gpf29(&self) -> GPF29_R { GPF29_R::new(((self.bits >> 29) & 0x01) != 0) } #[doc = "Bit 30 - General Purpose Fuse 30"] #[inline(always)] pub fn gpf30(&self) -> GPF30_R { GPF30_R::new(((self.bits >> 30) & 0x01) != 0) } #[doc = "Bit 31 - General Purpose Fuse 31"] #[inline(always)] pub fn gpf31(&self) -> GPF31_R { GPF31_R::new(((self.bits >> 31) & 0x01) != 0) } } #[doc = "Flash Controller General Purpose Fuse Register Low\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fgpfrlo](index.html) module"] pub struct FGPFRLO_SPEC; impl crate::RegisterSpec for FGPFRLO_SPEC { type Ux = u32; } #[doc = "`read()` method returns [fgpfrlo::R](R) reader structure"] impl crate::Readable for FGPFRLO_SPEC { type Reader = R; } #[doc = "`reset()` method sets FGPFRLO to value 0"] impl crate::Resettable for FGPFRLO_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 } }
31,452
https://github.com/nonibobox/arsip-ui/blob/master/resources/plugins/custom/gmaps/gmaps.js
Github Open Source
Open Source
MIT
null
arsip-ui
nonibobox
JavaScript
Code
29
59
// Gmaps.js - allows you to use the potential of Google Maps in a simple way. No more extensive documentation or large amount of code: https://hpneo.dev/gmaps/ window.GMaps = require('gmaps/gmaps.js');
27,644
https://github.com/jamais/directus-laravel/blob/master/src/DirectusLaravel.php
Github Open Source
Open Source
MIT
2,017
directus-laravel
jamais
PHP
Code
418
1,097
<?php namespace thePLAN\DirectusLaravel; use thePLAN\DirectusLaravel\Http\ApiWrapper; use thePLAN\DirectusLaravel\Data\ResponseParser; use thePLAN\DirectusLaravel\Resources\FileDownloader; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Log; /** * * Laravel wrapper for Directus API * * @category Laravel Directus * @version 1.0.0 * @package theplanworks/directus-laravel * @copyright Copyright (c) 2017 thePLAN (http://www.theplanworks.com) * @author Matt Fox <matt.fox@theplanworks.com> * @license https://opensource.org/licenses/MIT MIT */ class DirectusLaravel { private $apiWrapper; private $parser; private $ttl; /** * Create a new DirectusLaravel instance * * @return void */ public function __construct() { $this->parser = new ResponseParser(); $this->apiWrapper = new ApiWrapper($this->parser); $this->ttl = config('directus-laravel.time_to_live', 30); } /** * Return an entire table as an object * * @param string $table The table name * @param boolean $files Parse files (default: false) * @param string $file_col The name of the file column to parse * @return object */ public function getTableRows($table, $files = false, $file_col = '') { $url = 'tables/' . $table . '/rows'; return $this->getData($url, $files, $file_col); } /** * Get a single row from a table * * @param string $table The table name * @param int $id The id of the desired row * @param boolean $files Parse files (default: false) * @param string $file_col The name of the file column to parse * @return object */ public function getTableRow($table, $id, $files = false, $file_col = '') { $url = 'tables/' . $table . '/rows/' . $id; return $this->getData($url, $files, $file_col); } /** * Get a row by the slug property * * @param string $table The table name * @param string $slug The identifying slug * @param boolean $files Parse files (default: false) * @param string $file_col The name of the file column to parse * @return object */ public function getTableRowBySlug($table, $slug, $files = false, $file_col = '') { $output = []; $url = 'tables/' . $table . '/rows'; $rows = $this->getData($url, $files, $file_col); foreach($rows as $row) { if ($row->slug == $slug) { return $row; } } return $output; } /** * Helper function to make the API call * * @param string $url The input URL * @param boolean $files Parse files (default: false) * @param string $file_col The name of the file column to parse * @return object */ protected function getData($url, $files = false, $file_col = '') { $url .= '?status=1'; $this->parser->parseFiles = $files; $this->parser->fileColumn = $file_col; return Cache::remember($url, $this->ttl, function () use ($url) { return $this->apiWrapper->SendRequest($url); }); } /** * Get a file from the CMS * * @param string $filePath The path of the file * @return binary */ public function getFile($filePath) { return FileDownloader::getFile($filePath); } }
27,492
https://github.com/wjase/theme-tree/blob/master/src/main/java/au/com/cybernostics/themetree/theme/resolvers/ConditionalELCandidateTheme.java
Github Open Source
Open Source
Apache-2.0
null
theme-tree
wjase
Java
Code
311
725
package au.com.cybernostics.themetree.theme.resolvers; /* * #%L * theme-tree * %% * Copyright (C) 1992 - 2017 Cybernostics Pty Ltd * %% * 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. * #L% */ import au.com.cybernostics.themetree.theme.sources.SpringELRequestCondition; import javax.servlet.http.HttpServletRequest; import org.springframework.context.ApplicationContext; /** * This is a conditional Theme controlled by a Spring Expression language SPEL * expression to determine if it is active. * * Expressions can refer to the current request via the #request variable * * ie Switch on a given user: * <pre> * #request.userName=='john' * </pre> Other variables included: * * #requestDate a ZonedDateTime for the current request #app the application * context * * @author jason wraxall * @version $Id: $Id */ public class ConditionalELCandidateTheme implements CandidateTheme { private SpringELRequestCondition springELRequestCondition; private final int order; private final String name; /** * <p>Constructor for ConditionalELCandidateTheme.</p> * * @param order a int. * @param name a {@link java.lang.String} object. * @param expression a {@link java.lang.String} object. */ public ConditionalELCandidateTheme(int order, String name, String expression) { this.order = order; this.name = name; springELRequestCondition = new SpringELRequestCondition(expression); } /** {@inheritDoc} */ @Override public String getName(HttpServletRequest request) { return name; } /** {@inheritDoc} */ @Override public int getOrder() { return order; } /** {@inheritDoc} */ @Override public boolean isActive(HttpServletRequest request) { return springELRequestCondition.apply(request); } /** * <p>setApplicationContext.</p> * * @param context a {@link org.springframework.context.ApplicationContext} object. */ public void setApplicationContext(ApplicationContext context) { springELRequestCondition.setApplicationContext(context); } }
6,887
https://github.com/Yahsimedya/yaylacikDemo/blob/master/storage/framework/views/e29a507a74dd1ce00de7ea5ef13c44ea95138cfc.php
Github Open Source
Open Source
MIT
null
yaylacikDemo
Yahsimedya
PHP
Code
488
2,403
<div class="col-md-12 col-sm-12 col-xs-12 col-lg-4 d-none d-md-block text-center position-relative yanslider padding-left"> <ul class="nav nav-tabs yan__kategori"> <li class="active yan__kategori-li"><a class="yan__kategori-li-link" data-toggle="tab" href="#home">Siyaset</a></li> <li class="yan__kategori-li"><a class="yan__kategori-li-link" style="" data-toggle="tab" href="#menu1">Spor</a></li> <li class="yan__kategori-li"><a class="yan__kategori-li-link" data-toggle="tab" href="#menu2">3.Sayfa</a></li> <li class="yan__kategori-li"><a class="yan__kategori-li-link" data-toggle="tab" href="#menu3">Özel</a></li> </ul> <div class="tab-content"> <div id="home" class="tab-pane active in"> <div class="owl-carousel owl-theme shadow anaslider"> <?php $k=1; ?> <?php $__currentLoopData = $siyaset; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="item yanslider__yanitem position-relative" data-dot="<span><?php echo e($k); ?></span>"> <a href="<?php echo e(URL::to('/haber-'.str_slug($row->title_tr).'-'.$row->id)); ?>"> <?php if($webSiteSetting->slider_title==1): ?> <?php if($webSiteSetting->slider_title==1): ?> <div class="yanslider__effect position-absolute"></div> <?php endif; ?> <?php endif; ?> <img data-src="<?php echo e($row->image); ?>" onerror="this.onerror=null;this.src='<?php echo e(asset($webSiteSetting->defaultImage)); ?>';" class="img-fluid owl-lazy" alt=""> <div class="yanslider__aciklama d-table-cell position-absolute"> <a href="" class="yanslider-link align-middle card-kisalt"> <?php if($webSiteSetting->slider_title==1): ?> <?php echo e($row->title_tr); ?> <?php endif; ?> </a> </div> </a> </div> <?php $k++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div id="menu1" class="tab-pane "> <div class="owl-carousel owl-theme shadow anaslider" id=""> <?php $k=1; ?> <?php $__currentLoopData = $spor; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="item yanslider__yanitem position-relative" data-dot="<span><?php echo e($k); ?></span>"> <a href="<?php echo e(URL::to('/haber-'.str_slug($row->title_tr).'-'.$row->id)); ?>"> <?php if($webSiteSetting->slider_title==1): ?> <div class="yanslider__effect position-absolute"></div> <?php endif; ?> <img src="<?php echo e($row->image); ?>" onerror="this.onerror=null;this.src='<?php echo e(asset($webSiteSetting->defaultImage)); ?>';" class="img-fluid" alt=""> <div class="yanslider__aciklama d-table-cell position-absolute"> <a href="" class=" yanslider-link align-middle card-kisalt"> <?php if($webSiteSetting->slider_title==1): ?> <?php echo e($row->title_tr); ?> <?php endif; ?> </a> </div> </div> </a> <?php $k++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div id="menu2" class="tab-pane fade"> <div class="owl-carousel owl-theme shadow anaslider" id=""> <?php $k=1; ?> <?php $__currentLoopData = $ucuncuSayfa; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="item yanslider__yanitem position-relative" data-dot="<span><?php echo e($k); ?></span>"> <a href="<?php echo e(URL::to('/haber-'.str_slug($row->title_tr).'-'.$row->id)); ?>"> <?php if($webSiteSetting->slider_title==1): ?> <div class="yanslider__effect position-absolute"></div> <?php endif; ?> <img src="<?php echo e($row->image); ?>" onerror="this.onerror=null;this.src='<?php echo e(asset($webSiteSetting->defaultImage)); ?>';" class="img-fluid" alt=""> <div class="yanslider__aciklama d-table-cell position-absolute"> <a href="" class=" yanslider-link align-middle card-kisalt"> <?php if($webSiteSetting->slider_title==1): ?> <?php echo e($row->title_tr); ?> <?php endif; ?> </a> </div> </div> </a> <?php $k++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div id="menu3" class="tab-pane fade"> <div class="owl-carousel owl-theme shadow anaslider" id=""> <?php $k=1; ?> <?php $__currentLoopData = $ozel; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="item yanslider__yanitem position-relative" data-dot="<span><?php echo e($k); ?></span>"> <a href="<?php echo e(URL::to('/haber-'.str_slug($row->title_tr).'-'.$row->id)); ?>"> <?php if($webSiteSetting->slider_title==1): ?> <div class="yanslider__effect position-absolute"></div> <?php endif; ?> <img src="<?php echo e($row->image); ?>" onerror="this.onerror=null;this.src='<?php echo e(asset($webSiteSetting->defaultImage)); ?>';" class="img-fluid" alt=""> <div class="yanslider__aciklama d-table-cell position-absolute"> <a href="" class="yanslider-link align-middle card-kisalt"> <?php if($webSiteSetting->slider_title==1): ?> <?php echo e($row->title_tr); ?> <?php endif; ?> </a> </div> </a> </div> <?php $k++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php $__currentLoopData = $ads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($ad->type==1 && $ad->category_id==17): ?> <a href="<?php echo e($ad->link); ?>"><img class="img-fluid pb-1 pt-2 lazyload" onerror="this.onerror=null;this.src='<?php echo e($webSiteSetting->defaultImage); ?>';" data-src="<?php echo e(asset($ad->ads)); ?>"></a> <?php elseif($ad->type==2 && $ad->category_id==17): ?> <div class="w-100"><?php echo $ad->ad_code; ?></div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php /**PATH /Users/yahsimedya/Desktop/onur deneme/Laravel_Gazetekale/resources/views/main/body/widget/yanslider.blade.php ENDPATH**/ ?>
13,166
https://github.com/OliverF/boxy/blob/master/relay/status.py
Github Open Source
Open Source
MIT
2,021
boxy
OliverF
Python
Code
130
414
import sys import time import os import threading bytestoremote = 0 bytesfromremote = 0 _relayport = 0 _remoteaddress = "" _remoteport = 0 def reportbandwidth(): global bytestoremote global bytesfromremote step = 0 while True: time.sleep(1) if (sys.platform == "win32"): os.system('cls') else: os.system('clear') print "Relaying on port {0} to {1}:{2}".format(_relayport, _remoteaddress, _remoteport) print "From remote: {0:.6f}MB/s | To remote: {1:.6f}MB/s".format(float(bytesfromremote)/1000000, float(bytestoremote)/1000000) if (step == 0): print "\\" step += 1 elif (step == 1): print "|" step += 1 elif (step == 2): print "/" step += 1 elif (step == 3): print "-" step = 0 bytesfromremote = 0 bytestoremote = 0 def start(relayport, remoteaddress, remoteport): global _relayport global _remoteaddress global _remoteport reportbandwidththread = threading.Thread(target = reportbandwidth) reportbandwidththread.daemon = True reportbandwidththread.start() _relayport = relayport _remoteaddress = remoteaddress _remoteport = remoteport
10,539
https://github.com/shatodj/bolt-shato-theme/blob/master/page.twig
Github Open Source
Open Source
MIT
null
bolt-shato-theme
shatodj
Twig
Code
64
182
{% extends "record.twig" %} {% import "twig/partials/_macros.twig" as m %} {% block stylesheet %} {# Defer loading of non-critical styles #} {{ m.stylesheet('dist/css/page-bundle.css') }} {% endblock %} {% block scripts %} {{ m.script('dist/js/page-bundle.js') }} {% endblock %} {% block record_footer %} {# empty #} {% endblock %} {# Standard SECTIONS #} {% block sections %} {{ m.sectionsByRecord(record) }} {{ m.sectionsByGroup("page") }} {% endblock %}
3,690
https://github.com/TimBouwman/CyberSanta/blob/master/Project/Assets/XR/XRGeneralSettings.asset
Github Open Source
Open Source
MIT
2,020
CyberSanta
TimBouwman
Unity3D Asset
Code
292
1,446
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!114 &-3266305674586297131 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3} m_Name: WebGL Settings m_EditorClassIdentifier: m_LoaderManagerInstance: {fileID: 7738809440334933516} m_InitManagerOnStart: 1 --- !u!114 &-2769278187773442115 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3} m_Name: Standalone Settings m_EditorClassIdentifier: m_LoaderManagerInstance: {fileID: 8725642765071280760} m_InitManagerOnStart: 1 --- !u!114 &-2725653215125887455 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3} m_Name: Android Providers m_EditorClassIdentifier: m_RequiresSettingsUpdate: 0 m_AutomaticLoading: 0 m_AutomaticRunning: 0 m_Loaders: [] --- !u!114 &11400000 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: d2dc886499c26824283350fa532d087d, type: 3} m_Name: XRGeneralSettings m_EditorClassIdentifier: Keys: 01000000070000000d000000 Values: - {fileID: -2769278187773442115} - {fileID: 958787791250238742} - {fileID: -3266305674586297131} --- !u!114 &958787791250238742 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3} m_Name: Android Settings m_EditorClassIdentifier: m_LoaderManagerInstance: {fileID: -2725653215125887455} m_InitManagerOnStart: 1 --- !u!114 &7738809440334933516 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3} m_Name: WebGL Providers m_EditorClassIdentifier: m_RequiresSettingsUpdate: 0 m_AutomaticLoading: 0 m_AutomaticRunning: 0 m_Loaders: [] --- !u!114 &8725642765071280760 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3} m_Name: Standalone Providers m_EditorClassIdentifier: m_RequiresSettingsUpdate: 0 m_AutomaticLoading: 0 m_AutomaticRunning: 0 m_Loaders: - {fileID: 11400000, guid: 4bdf35918118f8c4db117b065c79f87d, type: 2}
39,584
https://github.com/SimonLogan/QuestOfRealms-desktop/blob/master/assets/QuestOfRealms-plugins/default/objectives.js
Github Open Source
Open Source
0BSD
2,019
QuestOfRealms-desktop
SimonLogan
JavaScript
Code
678
1,719
/** * Created by Simon on 17/04/2017. * (c) Simon Logan */ module.exports = { category: "objective", attributes: { "Start at": { description: "Where you start the game.", mandatory: true, parameters: [ { name: "x", type: "int" }, { name: "y", type: "int" } ] }, "Navigate to": { description: "Navigate to a specified map location.", parameters: [ { name: "x", type: "int" }, { name: "y", type: "int" } ] }, "Acquire item": { description: "Acquire a particular item.", parameters: [ { name: "item name", type: "string" }, { name: "number", type: "int" } ] }, "Give item": { description: "Give an item away.", parameters: [ { name: "item name", type: "string" }, { name: "recipient", type: "string" } ] } }, handlers: { "Navigate to": function (objective, game, realm, player, playerLocation, callback) { console.log("in Navigate to()"); if (game.player.name !== player.name) { var errMsg = "Invalid player"; console.log(errMsg); callback(errMsg); return; } var location = objective.params[0].value + "_" + objective.params[1].value; console.log("Looking for realmId: " + realm._id + ", location: " + location); var visited = false; if (game.player.visited.hasOwnProperty(realm._id)) { visited = game.player.visited[realm._id].hasOwnProperty(location); } console.log("visited: " + visited); if (!visited) { console.log("in Navigate to() callback null"); callback(null); return; } // Mark the objective complete. // TODO: return the details of the updated objective. Don't update the param directly. objective.completed = "true"; resp = { playerName: player.name, description: { action: "objective completed" }, data: { objective: objective } }; console.log("in Navigate to() callback value"); callback(resp); }, "Acquire item": function (objective, game, realm, player, playerLocation, callback) { console.log("in Acquire item()"); if (game.player.name !== player.name) { var errMsg = "Invalid player"; console.log(errMsg); callback(errMsg); return; } var object = objective.params[0].value; var numRequired = objective.params[1].value; console.log("Looking for object: " + object + ", numRequired: " + numRequired); if (game.player.inventory === undefined) { callback(null); return; } var found = 0; for (j = 0; j < game.player.inventory.length; j++) { var entry = game.player.inventory[j]; if (entry.type === object) found++; if (found === numRequired) break; } if (found < numRequired) { callback(null); return; } // Mark the objective complete. // TODO: return the details of the updated objective. Don't update the param directly. objective.completed = "true"; resp = { playerName: player.name, description: { action: "objective completed" }, data: { objective: objective } }; console.log("in Acquire item() callback value"); callback(resp); }, "Give item": function (objective, game, realm, player, playerLocation, callback) { console.log("in Give item()"); if (game.player.name !== player.name) { var errMsg = "Invalid player"; console.log(errMsg); callback(errMsg); return; } if (game.player === undefined) { console.log("in Give item(): player not found."); callback(null); return; } // If a "give to" operation has just been performed, it took place // in the current location. if (!playerLocation) { var errMsg = "Invalid location"; console.log(errMsg); callback(errMsg); return; } // Find all the characters in the current location, and see if one // has the item in question, with a possession reason of "given by" // the current player. var notifyData = {}; console.log("in Give item() callback " + JSON.stringify(playerLocation)); var object = objective.params[0].value; var recipient = objective.params[1].value; var character; for (var i = 0; i < playerLocation.characters.length; i++) { // We're not currently checking character name, so check all // the characters of that type. console.log("in Give item() recipient " + JSON.stringify(recipient)); if (playerLocation.characters[i].type === recipient) { character = playerLocation.characters[i]; console.log("in Give item() found character " + JSON.stringify(character)); if (character.inventory !== undefined) { for (var j = 0; j < character.inventory.length; j++) { var item = character.inventory[j]; console.log("in Give item() character inventory item: " + JSON.stringify(item)); if (item.type === object && item.source !== undefined && item.source.reason !== undefined && item.source.reason === "give" && item.source.from !== undefined && item.source.from === player.name) { console.log("in Give item(): character given object from player"); // Mark the objective complete. // TODO: return the details of the updated objective. Don't update the param directly. objective.completed = "true"; resp = { playerName: player.name, description: { action: "objective completed" }, data: { objective: objective } }; console.log("in Give item() callback value"); callback(resp); return; } else { console.log("in Give item(): item does not match objective."); } } } } } } } };
48,670
https://github.com/mrkimbo/AlintaCustomerSearch/blob/master/src/view/CustomerView.tsx
Github Open Source
Open Source
MIT
2,019
AlintaCustomerSearch
mrkimbo
TSX
Code
95
244
import * as React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { searchFilter } from '../shared/utils'; import CustomerSearch from './CustomerSearch'; import CustomerList from './CustomerList'; import NewCustomerButton from './NewCustomerButton'; import { actions } from '../store'; const Title = styled.h1` color: #333; `; const CustomerView = ({ customers }) => ( <> <Title>Customers</Title> <CustomerSearch /> <CustomerList customers={customers} /> <NewCustomerButton onClick={actions.addCustomer}> Add New Customer </NewCustomerButton> </> ); CustomerView.propTypes = { customers: PropTypes.array.isRequired }; const mapProps = ({ customers, filter }) => ({ customers: customers.filter(searchFilter(filter)) }); export default connect(mapProps)(CustomerView);
36,730
https://github.com/leezb101/LYQEmotionDemo/blob/master/LYQEmotionDemo/LYQEmotionTabBarButton.h
Github Open Source
Open Source
MIT
null
LYQEmotionDemo
leezb101
C
Code
28
92
// // LYQEmotionTabBarButton.h // LYQEmotionDemo // // Created by leezb101 on 16/9/6. // Copyright © 2016年 leezb101. All rights reserved. // #import <UIKit/UIKit.h> @interface LYQEmotionTabBarButton : UIButton @end
12,447
https://github.com/ftauth/sdk-dar/blob/master/example/angulardart/third_party/aws_common/lib/src/util/equatable.dart
Github Open Source
Open Source
Apache-2.0
null
sdk-dar
ftauth
Dart
Code
36
118
import 'package:collection/collection.dart'; mixin AWSEquatable<T extends AWSEquatable<T>> on Object { List<Object?> get props; @override bool operator ==(Object other) => identical(this, other) || other is T && const DeepCollectionEquality.unordered().equals(props, other.props); @override int get hashCode => const DeepCollectionEquality.unordered().hash(props); }
43,845
https://github.com/PeterNashaat/gitea/blob/master/modules/markup/mdstripper/mdstripper.go
Github Open Source
Open Source
MIT
2,019
gitea
PeterNashaat
Go
Code
979
2,532
// Copyright 2019 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package mdstripper import ( "bytes" "github.com/russross/blackfriday" ) // MarkdownStripper extends blackfriday.Renderer type MarkdownStripper struct { blackfriday.Renderer links []string coallesce bool } const ( blackfridayExtensions = 0 | blackfriday.EXTENSION_NO_INTRA_EMPHASIS | blackfriday.EXTENSION_TABLES | blackfriday.EXTENSION_FENCED_CODE | blackfriday.EXTENSION_STRIKETHROUGH | blackfriday.EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK | blackfriday.EXTENSION_DEFINITION_LISTS | blackfriday.EXTENSION_FOOTNOTES | blackfriday.EXTENSION_HEADER_IDS | blackfriday.EXTENSION_AUTO_HEADER_IDS | // Not included in modules/markup/markdown/markdown.go; // required here to process inline links blackfriday.EXTENSION_AUTOLINK ) //revive:disable:var-naming Implementing the Rendering interface requires breaking some linting rules // StripMarkdown parses markdown content by removing all markup and code blocks // in order to extract links and other references func StripMarkdown(rawBytes []byte) (string, []string) { stripper := &MarkdownStripper{ links: make([]string, 0, 10), } body := blackfriday.Markdown(rawBytes, stripper, blackfridayExtensions) return string(body), stripper.GetLinks() } // StripMarkdownBytes parses markdown content by removing all markup and code blocks // in order to extract links and other references func StripMarkdownBytes(rawBytes []byte) ([]byte, []string) { stripper := &MarkdownStripper{ links: make([]string, 0, 10), } body := blackfriday.Markdown(rawBytes, stripper, blackfridayExtensions) return body, stripper.GetLinks() } // block-level callbacks // BlockCode dummy function to proceed with rendering func (r *MarkdownStripper) BlockCode(out *bytes.Buffer, text []byte, infoString string) { // Not rendered r.coallesce = false } // BlockQuote dummy function to proceed with rendering func (r *MarkdownStripper) BlockQuote(out *bytes.Buffer, text []byte) { // FIXME: perhaps it's better to leave out block quote for this? r.processString(out, text, false) } // BlockHtml dummy function to proceed with rendering func (r *MarkdownStripper) BlockHtml(out *bytes.Buffer, text []byte) { //nolint // Not rendered r.coallesce = false } // Header dummy function to proceed with rendering func (r *MarkdownStripper) Header(out *bytes.Buffer, text func() bool, level int, id string) { text() r.coallesce = false } // HRule dummy function to proceed with rendering func (r *MarkdownStripper) HRule(out *bytes.Buffer) { // Not rendered r.coallesce = false } // List dummy function to proceed with rendering func (r *MarkdownStripper) List(out *bytes.Buffer, text func() bool, flags int) { text() r.coallesce = false } // ListItem dummy function to proceed with rendering func (r *MarkdownStripper) ListItem(out *bytes.Buffer, text []byte, flags int) { r.processString(out, text, false) } // Paragraph dummy function to proceed with rendering func (r *MarkdownStripper) Paragraph(out *bytes.Buffer, text func() bool) { text() r.coallesce = false } // Table dummy function to proceed with rendering func (r *MarkdownStripper) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) { r.processString(out, header, false) r.processString(out, body, false) } // TableRow dummy function to proceed with rendering func (r *MarkdownStripper) TableRow(out *bytes.Buffer, text []byte) { r.processString(out, text, false) } // TableHeaderCell dummy function to proceed with rendering func (r *MarkdownStripper) TableHeaderCell(out *bytes.Buffer, text []byte, flags int) { r.processString(out, text, false) } // TableCell dummy function to proceed with rendering func (r *MarkdownStripper) TableCell(out *bytes.Buffer, text []byte, flags int) { r.processString(out, text, false) } // Footnotes dummy function to proceed with rendering func (r *MarkdownStripper) Footnotes(out *bytes.Buffer, text func() bool) { text() } // FootnoteItem dummy function to proceed with rendering func (r *MarkdownStripper) FootnoteItem(out *bytes.Buffer, name, text []byte, flags int) { r.processString(out, text, false) } // TitleBlock dummy function to proceed with rendering func (r *MarkdownStripper) TitleBlock(out *bytes.Buffer, text []byte) { r.processString(out, text, false) } // Span-level callbacks // AutoLink dummy function to proceed with rendering func (r *MarkdownStripper) AutoLink(out *bytes.Buffer, link []byte, kind int) { r.processLink(out, link, []byte{}) } // CodeSpan dummy function to proceed with rendering func (r *MarkdownStripper) CodeSpan(out *bytes.Buffer, text []byte) { // Not rendered r.coallesce = false } // DoubleEmphasis dummy function to proceed with rendering func (r *MarkdownStripper) DoubleEmphasis(out *bytes.Buffer, text []byte) { r.processString(out, text, false) } // Emphasis dummy function to proceed with rendering func (r *MarkdownStripper) Emphasis(out *bytes.Buffer, text []byte) { r.processString(out, text, false) } // Image dummy function to proceed with rendering func (r *MarkdownStripper) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte) { // Not rendered r.coallesce = false } // LineBreak dummy function to proceed with rendering func (r *MarkdownStripper) LineBreak(out *bytes.Buffer) { // Not rendered r.coallesce = false } // Link dummy function to proceed with rendering func (r *MarkdownStripper) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) { r.processLink(out, link, content) } // RawHtmlTag dummy function to proceed with rendering func (r *MarkdownStripper) RawHtmlTag(out *bytes.Buffer, tag []byte) { //nolint // Not rendered r.coallesce = false } // TripleEmphasis dummy function to proceed with rendering func (r *MarkdownStripper) TripleEmphasis(out *bytes.Buffer, text []byte) { r.processString(out, text, false) } // StrikeThrough dummy function to proceed with rendering func (r *MarkdownStripper) StrikeThrough(out *bytes.Buffer, text []byte) { r.processString(out, text, false) } // FootnoteRef dummy function to proceed with rendering func (r *MarkdownStripper) FootnoteRef(out *bytes.Buffer, ref []byte, id int) { // Not rendered r.coallesce = false } // Low-level callbacks // Entity dummy function to proceed with rendering func (r *MarkdownStripper) Entity(out *bytes.Buffer, entity []byte) { // FIXME: literal entities are not parsed; perhaps they should r.coallesce = false } // NormalText dummy function to proceed with rendering func (r *MarkdownStripper) NormalText(out *bytes.Buffer, text []byte) { r.processString(out, text, true) } // Header and footer // DocumentHeader dummy function to proceed with rendering func (r *MarkdownStripper) DocumentHeader(out *bytes.Buffer) { r.coallesce = false } // DocumentFooter dummy function to proceed with rendering func (r *MarkdownStripper) DocumentFooter(out *bytes.Buffer) { r.coallesce = false } // GetFlags returns rendering flags func (r *MarkdownStripper) GetFlags() int { return 0 } //revive:enable:var-naming func doubleSpace(out *bytes.Buffer) { if out.Len() > 0 { out.WriteByte('\n') } } func (r *MarkdownStripper) processString(out *bytes.Buffer, text []byte, coallesce bool) { // Always break-up words if !coallesce || !r.coallesce { doubleSpace(out) } out.Write(text) r.coallesce = coallesce } func (r *MarkdownStripper) processLink(out *bytes.Buffer, link []byte, content []byte) { // Links are processed out of band r.links = append(r.links, string(link)) r.coallesce = false } // GetLinks returns the list of link data collected while parsing func (r *MarkdownStripper) GetLinks() []string { return r.links }
4,715
https://github.com/KalimeroMK/geoprom/blob/master/app/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Argument/TaggedIteratorArgument.php
Github Open Source
Open Source
MIT
null
geoprom
KalimeroMK
PHP
Code
154
492
<?php namespace MailPoetVendor\Symfony\Component\DependencyInjection\Argument; if (!defined('ABSPATH')) exit; class TaggedIteratorArgument extends IteratorArgument { private $tag; private $indexAttribute; private $defaultIndexMethod; private $defaultPriorityMethod; private $needsIndexes = \false; public function __construct(string $tag, string $indexAttribute = null, string $defaultIndexMethod = null, bool $needsIndexes = \false, string $defaultPriorityMethod = null) { parent::__construct([]); if (null === $indexAttribute && $needsIndexes) { $indexAttribute = \preg_match('/[^.]++$/', $tag, $m) ? $m[0] : $tag; } $this->tag = $tag; $this->indexAttribute = $indexAttribute; $this->defaultIndexMethod = $defaultIndexMethod ?: ($indexAttribute ? 'getDefault' . \str_replace(' ', '', \ucwords(\preg_replace('/[^a-zA-Z0-9\\x7f-\\xff]++/', ' ', $indexAttribute))) . 'Name' : null); $this->needsIndexes = $needsIndexes; $this->defaultPriorityMethod = $defaultPriorityMethod ?: ($indexAttribute ? 'getDefault' . \str_replace(' ', '', \ucwords(\preg_replace('/[^a-zA-Z0-9\\x7f-\\xff]++/', ' ', $indexAttribute))) . 'Priority' : null); } public function getTag() { return $this->tag; } public function getIndexAttribute() : ?string { return $this->indexAttribute; } public function getDefaultIndexMethod() : ?string { return $this->defaultIndexMethod; } public function needsIndexes() : bool { return $this->needsIndexes; } public function getDefaultPriorityMethod() : ?string { return $this->defaultPriorityMethod; } }
44,736
https://github.com/weix/FxBus/blob/master/src/main/java/com/wantfast/fxbus/thread/ThreadEnforcer.java
Github Open Source
Open Source
Apache-2.0
null
FxBus
weix
Java
Code
87
184
package com.wantfast.fxbus.thread; import com.wantfast.fxbus.Bus; /** * Enforces a thread confinement policy for methods on a particular event bus. */ public interface ThreadEnforcer { /** * Enforce a valid thread for the given {@code bus}. Implementations may throw any runtime exception. * * @param bus Event bus instance on which an action is being performed. */ void enforce(Bus bus); /** * A {@link ThreadEnforcer} that does no verification. */ ThreadEnforcer ANY = new ThreadEnforcer() { @Override public void enforce(Bus bus) { // Allow any thread. } }; }
48,347
https://github.com/xuyanjun999/fandationtest/blob/master/Foundatio.Redis-6.0.0/test/Foundatio.Redis.Tests/Metrics/RedisMetricsTests.cs
Github Open Source
Open Source
Apache-2.0
2,018
fandationtest
xuyanjun999
C#
Code
126
462
using System; using System.Threading.Tasks; using Foundatio.Metrics; using Foundatio.Redis.Tests.Extensions; using Foundatio.Tests.Metrics; using Xunit; using Xunit.Abstractions; namespace Foundatio.Redis.Tests.Metrics { public class RedisMetricsTests : MetricsClientTestBase, IDisposable { public RedisMetricsTests(ITestOutputHelper output) : base(output) { var muxer = SharedConnection.GetMuxer(); muxer.FlushAllAsync().GetAwaiter().GetResult(); } public override IMetricsClient GetMetricsClient(bool buffered = false) { return new RedisMetricsClient(new RedisMetricsClientOptions { ConnectionMultiplexer = SharedConnection.GetMuxer(), Buffered = buffered, LoggerFactory = Log }); } [Fact] public override Task CanSetGaugesAsync() { return base.CanSetGaugesAsync(); } [Fact] public override Task CanIncrementCounterAsync() { return base.CanIncrementCounterAsync(); } [Fact] public override Task CanWaitForCounterAsync() { return base.CanWaitForCounterAsync(); } [Fact] public override Task CanGetBufferedQueueMetricsAsync() { return base.CanGetBufferedQueueMetricsAsync(); } [Fact] public override Task CanIncrementBufferedCounterAsync() { return base.CanIncrementBufferedCounterAsync(); } [Fact] public override Task CanSendBufferedMetricsAsync() { return base.CanSendBufferedMetricsAsync(); } public void Dispose() { var muxer = SharedConnection.GetMuxer(); muxer.FlushAllAsync().GetAwaiter().GetResult(); } } }
25,315
https://github.com/HaroldDeasis/rotary/blob/master/rotarianInfo.php
Github Open Source
Open Source
MIT
null
rotary
HaroldDeasis
PHP
Code
735
3,364
<!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Rotary | Rotarian Information</title> <meta name="description" content="Sufee Admin - HTML5 Admin Template"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="apple-touch-icon" href="apple-icon.png"> <link rel="shortcut icon" href="images/icon-rotarian.png"> <link rel="stylesheet" href="assets/css/normalize.css"> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/font-awesome.min.css"> <link rel="stylesheet" href="assets/css/themify-icons.css"> <link rel="stylesheet" href="assets/css/flag-icon.min.css"> <link rel="stylesheet" href="assets/css/cs-skin-elastic.css"> <!-- <link rel="stylesheet" href="assets/css/bootstrap-select.less"> --> <link rel="stylesheet" href="assets/scss/style.css"> <link href="assets/css/lib/vector-map/jqvmap.min.css" rel="stylesheet"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800' rel='stylesheet' type='text/css'> <!-- <script type="text/javascript" src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv.min.js"></script> --> </head> <body> <?php require("leftpanel.php"); ?> <!-- Right Panel --> <div id="right-panel" class="right-panel"> <?php require("header.php"); ?> <div class="breadcrumbs"> <div class="col-sm-4"> <div class="page-header float-left"> <div class="page-title"> <h1>Rotarian Information</h1> </div> </div> </div> </div> <?php //SHOW MESSAGES FROM DATABASE $id = $_GET['id']; $connection = mysqli_connect("localhost", "root", "", "rotary_db"); $displayInfo = mysqli_query($connection, "SELECT * FROM tblrotarians WHERE rotarianID = '$id'"); $informations = array(); while ($row = mysqli_fetch_array($displayInfo)) { $informations[] = $row; } foreach ($informations as $information) : ?> <!-- Main Content --> <div class="container-fluid"> <form method="post"> <div class="row"> <div class="col-lg-6"> <aside class="profile-nav alt"> <section class="card"> <div class="card-header user-header alt bg-dark"> <div class="media"> <a href="#"> <img class="align-self-center rounded-circle mr-3" style="width:85px; height:85px;" alt="" src="images/admin.jpg"> </a> <div class="media-body"> <h3 class="text-light display-6">Position</h3> <select name="position" class="form-control"> <option value="" disabled>Position</option> <option value="Member" <?php if($information[8] == 'Member') echo 'selected'; ?>>Member</option> <option value="President" <?php if($information[8] == 'President') echo 'selected'; ?>>President</option> <option value="Vice President" <?php if($information[8] == 'Vice President') echo 'selected'; ?>>Vice President</option> <option value="Secretary" <?php if($information[8] == 'Secretary') echo 'selected'; ?>>Secretary</option> <option value="Treasurer" <?php if($information[8] == 'Treasurer') echo 'selected'; ?>>Treasurer</option> </select> </div> </div> </div> <ul class="list-group list-group-flush"> <li class="list-group-item"> <a href="#"> <i class="fa fa-dollar"></i> Balance <span class="badge badge-warning pull-right">500</span></a> </li> </ul> </section> </aside> <div class="card"> <div class="card-header"> <strong>Contact Information</strong> </div> <div class="card-body"> <div class="form-group"> <label class="control-label">Contact Number</label> <input type="text" name="contactNumber" class="form-control" value="<?php echo $information[9]; ?>"> </div> <div class="form-group"> <label class="control-label">Email</label> <input type="text" name="emailAddress" class="form-control" value="<?php echo $information[10]; ?>"> </div> <div class="form-group"> <label class="control-label">Address</label> <input type="text" name="address" class="form-control" value="<?php echo $information[6]; ?>"> </div> </div> </div> <div class="card"> <div class="card-header"> <strong>Others</strong> </div> <div class="card-body"> <div class="form-group"> <label class="control-label">Sponsor</label> <input type="text" name="sponsor" class="form-control" value="<?php echo $information[11]; ?>"> </div> <div class="form-group"> <label class="control-label">Status</label> <input type="text" name="status" class="form-control" value="<?php echo $information[12]; ?>" disabled> </div> </div> </div> </div> <div class="col-lg-6"> <div class="card"> <div class="card-header"> <strong>Personal Info</strong> </div> <div class="card-body"> <div class="form-group"> <label class="control-label">Last Name</label> <input type="text" name="lastName" class="form-control" value="<?php echo $information[1]; ?>"> </div> <div class="form-group"> <label class="control-label">First Name</label> <input type="text" name="firstName" class="form-control" value="<?php echo $information[2]; ?>"> </div> <div class="form-group"> <label class="control-label">Middle Name</label> <input type="text" name="middleName" class="form-control" value="<?php echo $information[3]; ?>"> </div> <div class="form-group"> <label class="control-label">Birthday</label> <input type="date" name="birthday" class="form-control" value="<?php echo $information[5]; ?>"> </div> <div class="form-group"> <label class="control-label">Profession</label> <input type="text" name="profession" class="form-control" value="<?php echo $information[7]; ?>"> </div> <div class="form-group"> <label class="control-label">Gender</label> <select name="gender" class="form-control"> <option value="" disabled>Gender</option> <option name="gender" value="Male" <?php if($information[4] == 'Male') echo 'selected'; ?>>Male</option> <option name="gender" value="Female" <?php if($information[4] == 'Female') echo 'selected'; ?>>Female</option> </select> </div> </div> </div> <?php endforeach ?> <div class="card"> <div class="card-header"> </div> <div class="card-body"> <!--<button type="button" class="btn btn-success btn-block" name="rotarianUpdate" onclick="location.replace('rotarianInfo.php?id=<?php echo $information[0]; ?>&action=update')"><i class="ti-angle-double-up"></i>&nbsp;Update Information</button>--> <a href="rotarianInfo.php?id=<?php echo $information[0]; ?>&action=update"><input type="submit" name="rotarianUpdate" class="btn btn-success btn-block" value="Update Information"></a>. <!--<button class="btn btn-success btn-block" data-toggle="modal" data-target="#updateModal"><i class="ti-angle-double-up"></i>&nbsp;Update Information</button> <button class="btn btn-primary btn-block" disabled data-toggle="modal" data-target="#updateModal"><i class="fa fa-check"></i>&nbsp;Confirm</button>--> </div> </div> </div> </div> </form> </div> <!-- /Main Content --> <?php //UPDATE ROTARIAN TO DATABASE $action = $_GET['action']; if(isset($_POST['rotarianUpdate'])){ $lastName = $_POST['lastName']; $firstName = $_POST['firstName']; $middleName = $_POST['middleName']; $gender = $_POST['gender']; $birthday = $_POST['birthday']; $contactNumber = $_POST["contactNumber"]; $emailAddress = $_POST["emailAddress"]; $address = $_POST["address"]; $sponsor = $_POST["sponsor"]; $position = $_POST["position"]; $profession = $_POST["profession"]; $rotarianUpdate = mysqli_query($connection, "UPDATE tblrotarians SET lastName = '$lastName', firstName = '$firstName', middleName='$middleName', gender = '$gender', birthday = '$birthday', address = '$address', profession = 'profession', position = '$position', contactNumber = '$contactNumber', emailAddress = '$emailAddress', sponsor = '$sponsor', status = 'Active', image = NULL, dueID = 1 WHERE rotarianID = '$id'"); if($rotarianUpdate){ if($position!='Member'){ echo "<script>location.replace('officers.php?id=0&action=view');</script>"; }else{ echo "<script>location.replace('members.php?id=0&action=view');</script>"; } } } ?> </div><!-- /#right-panel --> <!-- Right Panel --> <script src="assets/js/vendor/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"></script> <script src="assets/js/plugins.js"></script> <script src="assets/js/main.js"></script> <script src="assets/js/lib/chart-js/Chart.bundle.js"></script> <script src="assets/js/dashboard.js"></script> <script src="assets/js/widgets.js"></script> <script src="assets/js/lib/vector-map/jquery.vmap.js"></script> <script src="assets/js/lib/vector-map/jquery.vmap.min.js"></script> <script src="assets/js/lib/vector-map/jquery.vmap.sampledata.js"></script> <script src="assets/js/lib/vector-map/country/jquery.vmap.world.js"></script> <script> ( function ( $ ) { "use strict"; jQuery( '#vmap' ).vectorMap( { map: 'world_en', backgroundColor: null, color: '#ffffff', hoverOpacity: 0.7, selectedColor: '#1de9b6', enableZoom: true, showTooltip: true, values: sample_data, scaleColors: [ '#1de9b6', '#03a9f5' ], normalizeFunction: 'polynomial' } ); } )( jQuery ); </script> </body> </html>
21,777
https://github.com/phisn/DigitalDetectivesCore/blob/master/DigitalDetectivesCore.Game/Models/Match/MatchSettings.cs
Github Open Source
Open Source
MIT
2,022
DigitalDetectivesCore
phisn
C#
Code
203
668
using DigitalDetectivesCore.Game.SeedWork; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DigitalDetectivesCore.Game.Models.Match { public class MatchSettings : ValueObject { public static MatchSettings Default => new MatchSettings( 4, 24, 2, 5, TicketBag.Detective, TicketBag.Villian, 1.0f); public MatchSettings( int playerCount, int rounds, int showVillianAfter, int showVillianEvery, TicketBag detectiveTickets, TicketBag villianTickets, float villianBlackTicketMulti) { PlayerCount = playerCount; Rounds = rounds; ShowVillianAfter = showVillianAfter; ShowVillianEvery = showVillianEvery; this.detectiveTickets = detectiveTickets; this.villianTickets = villianTickets; VillianBlackTicketMulti = villianBlackTicketMulti; } public int PlayerCount { get; } public int Rounds { get; } public int ShowVillianAfter { get; } public int ShowVillianEvery { get; } private TicketBag detectiveTickets; public TicketBag DetectiveTickets => new TicketBag(detectiveTickets); private TicketBag villianTickets; public TicketBag VillianTickets => new TicketBag(villianTickets, (int) Math.Round((PlayerCount - 1) * VillianBlackTicketMulti)); public float VillianBlackTicketMulti { get; set; } public bool Valid() => (PlayerCount >= 3 || PlayerCount <= 6) && (Rounds > 0) && (ShowVillianAfter >= 0) && (ShowVillianEvery >= 0) && // villianblackticketmulti can be negative (VillianTickets.Black + VillianBlackTicketMulti * (PlayerCount - 1) >= 0) && (VillianTickets.Valid()) && (DetectiveTickets.Valid()); public override bool Equals(object obj) { return obj is MatchSettings settings && Rounds == settings.Rounds && ShowVillianAfter == settings.ShowVillianAfter && ShowVillianEvery == settings.ShowVillianEvery && detectiveTickets.Equals(settings.detectiveTickets) && villianTickets.Equals(settings.villianTickets) && VillianBlackTicketMulti == settings.VillianBlackTicketMulti; } } }
43,472
https://github.com/jamaspy/mufflr/blob/master/src/styles/allproducts.module.scss
Github Open Source
Open Source
MIT
null
mufflr
jamaspy
SCSS
Code
14
56
@import "../styles/variables/colors"; .div{ border-radius: 10px; overflow: hidden; display: inline-block; margin: 10px; margin-top: 40px; }
40,089
https://github.com/nizhnichenkov/Distributed-System/blob/master/RIPAPI/src/main/java/com/RESTInPeace/RIPAPI/constants/RipConstants.java
Github Open Source
Open Source
MIT
null
Distributed-System
nizhnichenkov
Java
Code
35
109
package com.RESTInPeace.RIPAPI.constants; public class RipConstants { public final static String USER_HOST = "http://userAPI:8083"; public final static String COFFIN_HOST = "http://coffinAPI:8084"; public final static String IMAGE_HOST = "http://imageAPI:8085"; public final static String CLEAN_HOST = "http://cleanAPI:8086"; }
42,366
https://github.com/TheWishWithin/kamp-api/blob/master/kamp-core/src/test/kotlin/ch/leadrian/samp/kamp/core/runtime/entity/property/MapObjectRotationPropertyTest.kt
Github Open Source
Open Source
Apache-2.0
2,020
kamp-api
TheWishWithin
Kotlin
Code
156
628
package ch.leadrian.samp.kamp.core.runtime.entity.property import ch.leadrian.samp.kamp.core.api.data.Vector3D import ch.leadrian.samp.kamp.core.api.data.vector3DOf import ch.leadrian.samp.kamp.core.api.entity.MapObject import ch.leadrian.samp.kamp.core.api.entity.id.MapObjectId import ch.leadrian.samp.kamp.core.runtime.SAMPNativeFunctionExecutor import ch.leadrian.samp.kamp.core.runtime.types.ReferenceFloat import io.mockk.every import io.mockk.mockk import io.mockk.verify import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import kotlin.reflect.KProperty internal class MapObjectRotationPropertyTest { private val mapObjectId: MapObjectId = MapObjectId.valueOf(50) private val mapObject: MapObject = mockk() private val nativeFunctionExecutor: SAMPNativeFunctionExecutor = mockk() private val property: KProperty<Vector3D> = mockk() private lateinit var mapObjectRotationProperty: MapObjectRotationProperty @BeforeEach fun setUp() { every { mapObject.id } returns mapObjectId mapObjectRotationProperty = MapObjectRotationProperty(nativeFunctionExecutor) } @Test fun shouldGetRotation() { every { nativeFunctionExecutor.getObjectRot(mapObjectId.value, any(), any(), any()) } answers { secondArg<ReferenceFloat>().value = 1f thirdArg<ReferenceFloat>().value = 2f arg<ReferenceFloat>(3).value = 3f true } val rotation = mapObjectRotationProperty.getValue(mapObject, property) assertThat(rotation) .isEqualTo(vector3DOf(x = 1f, y = 2f, z = 3f)) } @Test fun shouldSetRotation() { every { nativeFunctionExecutor.setObjectRot(any(), any(), any(), any()) } returns true mapObjectRotationProperty.setValue(mapObject, property, vector3DOf(x = 1f, y = 2f, z = 3f)) verify { nativeFunctionExecutor.setObjectRot(objectid = mapObjectId.value, rotX = 1f, rotY = 2f, rotZ = 3f) } } }
40,803
https://github.com/Prostovic/avvita/blob/master/views/user/update.php
Github Open Source
Open Source
BSD-3-Clause
null
avvita
Prostovic
PHP
Code
131
452
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\User */ $data = [ 'backCreateUser' => [ 'title' => $model->isNewRecord ? 'Добавление оператора' : 'Изменение оператора', 'form' => '_formoperator', ], 'register' => [ 'title' => $model->isNewRecord ? 'Регистрация пользователя' : 'Изменение пользователя', 'form' => '_formreg', ], 'profile' => [ 'title' => 'Профиль', 'form' => '_formreg', ], 'testUserData' => [ 'title' => 'Пользователь', 'form' => '_formtest', ], // '' => $model->isNewRecord ? '' : '', ]; $this->title = isset($data[$model->scenario]) ? $data[$model->scenario]['title'] : $model->scenario; // $this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']]; // $this->params['breadcrumbs'][] = ['label' => $model->us_id, 'url' => ['view', 'id' => $model->us_id]]; $this->params['breadcrumbs'][] = $this->title; /* <h1><?= Html::encode($this->title) ?></h1> */ ?> <div class="user-update"> <?= $this->render( isset($data[$model->scenario]) ? $data[$model->scenario]['form'] : '_form', [ 'model' => $model, ] ) ?> </div>
45,188
https://github.com/navikt/teams-action/blob/master/tests/Runner/ResultTest.php
Github Open Source
Open Source
MIT
null
teams-action
navikt
PHP
Code
94
359
<?php declare(strict_types=1); namespace NAVIT\Teams\Runner; use PHPUnit\Framework\TestCase; /** * @coversDefaultClass NAVIT\Teams\Runner\Result */ class ResultTest extends TestCase { /** * @return array<string,array{0:ResultEntry[],1:string}> */ public function getEntries(): array { $entryWithGroupId = new ResultEntry('some-team'); $entryWithGroupId->setGroupId('group-id'); return [ 'no entries' => [ [], '[]', ], 'with entries' => [ [ new ResultEntry('team'), $entryWithGroupId, ], '[{"teamName":"team","groupId":null},{"teamName":"some-team","groupId":"group-id"}]', ], ]; } /** * @dataProvider getEntries * @covers ::addEntry * @covers ::jsonSerialize * @param ResultEntry[] $entries */ public function testCanAddEntryAndSerializeAsJson(array $entries, string $expectedJson): void { $result = new Result(); foreach ($entries as $entry) { $result->addEntry($entry); } $this->assertSame($expectedJson, json_encode($result), 'Incorrect JSON serialization'); } }
34,500
https://github.com/mahrud/memtailor/blob/master/CMakeLists.txt
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause
2,020
memtailor
mahrud
CMake
Code
115
888
cmake_minimum_required(VERSION 3.12) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) project(memtailor VERSION 1.0 LANGUAGES CXX) find_package(Threads 2.1 REQUIRED QUIET) add_compile_options( -DPACKAGE_NAME="${PROJECT_NAME}" -DPACKAGE_TARNAME="${PROJECT_NAME}" -DPACKAGE_VERSION="${PROJECT_VERSION}" -DPACKAGE_STRING="${PROJECT_NAME} ${PROJECT_VERSION}" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DPACKAGE="${PROJECT_NAME}" -DVERSION="${PROJECT_VERSION}" ) add_library(memtailor STATIC src/memtailor.h src/memtailor.cpp src/memtailor/Arena.cpp src/memtailor/BufferPool.cpp src/memtailor/MemoryBlocks.cpp src/memtailor/Arena.h src/memtailor/ArenaVector.h src/memtailor/BufferPool.h src/memtailor/MemoryBlocks.h src/memtailor/stdinc.h ) target_link_libraries(memtailor Threads::Threads) target_include_directories(memtailor PUBLIC $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/src> $<INSTALL_INTERFACE:include> ) set_target_properties(memtailor PROPERTIES PUBLIC_HEADER src/memtailor.h) install(TARGETS memtailor LIBRARY DESTINATION lib) install(DIRECTORY src/memtailor DESTINATION include FILES_MATCHING PATTERN "*.h" ) install(FILES README.md license.txt DESTINATION licenses/memtailor ) include(CTest) if(BUILD_TESTING) add_executable(memtailor-gtests src/test/ArenaTest.cpp src/test/BufferPoolTest.cpp src/test/MemoryBlocksTest.cpp src/test/testMain.cpp ) ################################ # add gtest testing ############ ################################ find_package(GTest) include(GoogleTest) gtest_discover_tests(memtailor-gtests) if(GTEST_FOUND) target_link_libraries(memtailor-gtests memtailor GTest::GTest GTest::Main) target_include_directories(memtailor-gtests PRIVATE ${GTEST_INCLUDE_DIR}) else() include(FetchContent) FetchContent_Declare(googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG release-1.10.0 ) FetchContent_MakeAvailable(googletest) target_link_libraries(memtailor-gtests memtailor gtest) target_include_directories(memtailor-gtests PRIVATE ${googletest_SOURCE_DIR}/googletest/include ${googletest_SOURCE_DIR}/googletest/src ${googletest_SOURCE_DIR}/googletest ) endif() endif()
50,661
https://github.com/SemperPeritus/foosball-rating/blob/master/src/modules/player/player.entity.ts
Github Open Source
Open Source
MIT
2,021
foosball-rating
SemperPeritus
TypeScript
Code
121
416
import { Column, CreateDateColumn, Entity, ManyToMany, ManyToOne, OneToMany, OneToOne, PrimaryGeneratedColumn, } from 'typeorm'; import { GameEntity } from '../game/game.entity'; import { UserEntity } from '../user/user.entity'; import { Rating } from '../../constants/rating'; @Entity('player') export class PlayerEntity { @PrimaryGeneratedColumn('increment') id: number; @Column('text') firstName: string; @Column('text', { default: '' }) secondName: string; @Column('double precision', { default: Rating.PLAYER_DEFAULT_RATING }) rating: number; @OneToOne( type => UserEntity, user => user.player, ) user: UserEntity; @OneToMany( type => UserEntity, user => user.playerWanted, ) usersWants: UserEntity; @ManyToMany( type => GameEntity, game => game.players, ) games: GameEntity[]; @ManyToMany( type => GameEntity, game => game.firstTeam, ) firstTeam: GameEntity[]; @ManyToMany( type => GameEntity, game => game.secondTeam, ) secondTeam: GameEntity[]; @CreateDateColumn() created: Date; @ManyToOne( type => UserEntity, user => user.createdPlayers, ) createdBy: UserEntity; }
22,746
https://github.com/cs0x7f/BitArray/blob/master/dev/bit_array_generate.c
Github Open Source
Open Source
BSD-3-Clause
2,013
BitArray
cs0x7f
C
Code
655
1,516
/* bit_generate.c project: bit array C library url: https://github.com/noporpoise/BitArray/ Adapted from: http://stackoverflow.com/a/2633584/431087 author: Isaac Turner <turner.isaac@gmail.com> Copyright (c) 2012, Isaac Turner All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 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 <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. */ // 64 bit words // Array length can be zero // Unused top bits must be zero #include <stdlib.h> #include <stdarg.h> #include <stdio.h> #include <errno.h> #include <string.h> // memset #include <stdint.h> uint8_t reverse(uint8_t b) { uint8_t r = 0; int i; for(i = 0; i < 8; i++) { r <<= 1; r |= b & 0x1; b >>= 1; } return r; } // Print table of bytes -> byte reverse void generate_reverse() { int i; printf("static const word_t reverse_table[256] = \n{\n "); for(i = 0; i < 256; i++) { if(i % 8 == 0 && i > 0) printf("\n "); printf(" 0x%02X%c", reverse(i), i == 255 ? '\n' : ','); } printf("};\n\n"); } uint16_t morton(uint8_t b) { uint16_t r = 0; int i; for(i = 0; i < 8; i++) { r |= (b & 0x1) << (2*i); b >>= 1; } return r; } // a is either 0 or 1, and is how much to shift by void generate_morton(char a) { int i; printf("static const word_t morton_table%c[256] = \n{\n ", a ? '1' : '0'); for(i = 0; i < 256; i++) { if(i % 8 == 0 && i > 0) printf("\n "); uint16_t m = morton(i); if(a) m <<= 1; printf(" 0x%04X%c", m, i == 255 ? '\n' : ','); } printf("};\n\n"); } unsigned int next_permutation(unsigned int v) { unsigned int t = v | (v - 1); // t gets v's least significant 0 bits set to 1 // Next set to 1 the most significant bit to change, // set to 0 the least significant ones, and add the necessary 1 bits. //return (t + 1) | (((~t & -~t) - 1) >> (__builtin_ctz(v) + 1)); return (t+1) | (((~t & (t+1)) - 1) >> (__builtin_ctz(v) + 1)); } long factorial(int k) { long r = k; for(k--; k > 1; k--) { r *= k; } return r; } void generate_shuffle() { int i; printf("static const uint8_t shuffle_permutations[9] = {1"); for(i = 1; i < 8; i++) { // nCk = n! / ((n-k)!k!) long combinations = factorial(8) / (factorial(8-i)*factorial(i)); printf(", %li", combinations); } printf(", 1};\n"); printf("static const uint8_t shuffle[9][70] = {\n"); for(i = 0; i <= 8; i++) { printf(" // %i bits set\n", i); unsigned char init = i == 0 ? 0 : (0x1 << i) - 1; printf(" {0x%02X", (int)init); unsigned int c = next_permutation(init); int num; for(num = 1; num < 70; c = next_permutation(c), num++) { printf(num % 10 == 0 ? ",\n " : ", "); printf("0x%02X", c <= 255 ? (int)c : 0); } printf(i < 8 ? "},\n" : "}\n};\n\n"); } } int main() { printf("// byte reverse look up table\n"); generate_reverse(); printf("// Morton table for interleaving bytes\n"); generate_morton(0); printf("// Morton table for interleaving bytes, shifted left 1 bit\n"); generate_morton(1); printf("// Tables for shuffling\n"); generate_shuffle(); return 1; }
38,388
https://github.com/rodydavis/json-to-html-form/blob/master/build/node_modules/@material/ripple/mdc-ripple.scss
Github Open Source
Open Source
MIT
2,020
json-to-html-form
rodydavis
SCSS
Code
1
42
/Users/rodydavis/Documents/ideas/json-form-json/web/node_modules/@material/ripple/mdc-ripple.scss
16,073
https://github.com/snada/snada/blob/master/app/controllers/contacts_controller.rb
Github Open Source
Open Source
MIT
null
snada
snada
Ruby
Code
54
186
class ContactsController < ApplicationController def new @page_title = "Contact" @page_description = "Stefano Nada contact" @page_keyords = "contact, email" @contact = Contact.new end def create @contact = Contact.new(contact_params) if @contact.valid? && verify_recaptcha(model: @contact) ContactNotifier.contact_mail(@contact).deliver_now redirect_to new_contact_path, notice: "Your message was sent, thanks!" else render :new end end private def contact_params params.require(:contact).permit(:subject, :from, :body) end end
23,606
https://github.com/zyhzhangyuhua/WeChatExtension-ForMac/blob/master/WeChatExtension/WeChatExtension/Sources/Models/YMAutoReplyModel.h
Github Open Source
Open Source
MIT
2,021
WeChatExtension-ForMac
zyhzhangyuhua
C
Code
110
409
// // YMAutoReplyModel.h // WeChatExtension // // Created by WeChatExtension on 2017/8/18. // Copyright © 2017年 WeChatExtension. All rights reserved. // #import "TKBaseModel.h" @interface YMAutoReplyModel : TKBaseModel @property (nonatomic, assign) BOOL enable; /**< 是否开启自动回复 */ @property (nonatomic, copy) NSString *keyword; /**< 自动回复关键字 */ @property (nonatomic, copy) NSString *replyContent; /**< 自动回复的内容 */ @property (nonatomic, assign) BOOL enableGroupReply; /**< 是否开启群聊自动回复 */ @property (nonatomic, assign) BOOL enableSingleReply; /**< 是否开启私聊自动回复 */ @property (nonatomic, assign) BOOL enableRegex; /**< 是否开启正则匹配 */ @property (nonatomic, assign) BOOL enableDelay; /**< 是否开启延迟回复 */ @property (nonatomic, assign) NSInteger delayTime; /**< 延迟时间 */ @property (nonatomic, assign) BOOL enableSpecificReply; /**< 是否开启特定回复 */ @property (nonatomic, strong) NSMutableArray *specificContacts; /**< 特定回复的联系人 */ - (BOOL)hasEmptyKeywordOrReplyContent; @end
42,249
https://github.com/Kawaii-Maou-Sama/cso2-master-server/blob/master/master-server/src/services/userservice.ts
Github Open Source
Open Source
MIT
null
cso2-master-server
Kawaii-Maou-Sama
TypeScript
Code
723
1,965
import LRUCache from 'lru-cache' import superagent from 'superagent' import { UserSvcPing } from 'authorities' import { User } from 'user/user' export class UserService { private baseUrl: string private userCache: LRUCache<number, User> constructor(baseUrl: string) { this.baseUrl = baseUrl this.userCache = new LRUCache<number, User>({ max: 100, maxAge: 1000 * 15 }) } /** * get an user's by its ID * @param userId the user's ID * @returns the user object if found, null otherwise */ public async Login(username: string, password: string): Promise<number> { if (UserSvcPing.isAlive() === false) { return 0 } try { const res: superagent.Response = await superagent .post(this.baseUrl + '/users/auth/login') .send({ username, password }) .accept('json') if (res.status === 200) { const typedBody = res.body as { userId: number } return typedBody.userId } } catch (error) { const typedError = error as { status: number } if (typedError.status === 401) { return -1 } console.error(error) await UserSvcPing.checkNow() } return 0 } /** * get an user's by its ID * @param userId the user's ID * @returns the user object if found, null otherwise */ public async Logout(userId: number): Promise<boolean> { if (UserSvcPing.isAlive() === false) { return false } try { const res: superagent.Response = await superagent .post(this.baseUrl + '/users/auth/logout') .send({ userId }) .accept('json') if (res.status === 200) { return true } } catch (error) { console.error(error) await UserSvcPing.checkNow() } return false } /** * get an user's by its ID * @param userId the user's ID * @returns the user object if found, null otherwise */ public async GetUserById(userId: number): Promise<User> { try { let user: User = this.userCache.get(userId) if (user != null) { return user } if (UserSvcPing.isAlive() === false) { return null } const res: superagent.Response = await superagent .get(this.baseUrl + `/users/${userId}`) .accept('json') if (res.status === 200) { // HACK to get methods working user = new User() Object.assign(user, res.body) this.userCache.set(user.id, user) return user } return null } catch (error) { console.error(error) await UserSvcPing.checkNow() return null } } /** * sets an user's signature * @param targetUser the user to have the avatar updated * @param signature the new signature string * @returns true if updated successfully, false if not */ public async SetUserCampaignFlags( targetUser: User, campaignFlags: number ): Promise<boolean> { try { const res: superagent.Response = await superagent .put(this.baseUrl + `/users/${targetUser.id}`) .send({ campaign_flags: campaignFlags }) .accept('json') if (res.status === 200) { targetUser.campaign_flags = campaignFlags this.userCache.set(targetUser.id, targetUser) return true } } catch (error) { console.error(error) await UserSvcPing.checkNow() } return false } /** * sets an user's avatar * @param targetUser the user to have the avatar updated * @param avatarId the new avatar's ID * @returns true if updated successfully, false if not */ public async SetUserAvatar( targetUser: User, avatarId: number ): Promise<boolean> { try { const res: superagent.Response = await superagent .put(this.baseUrl + `/users/${targetUser.id}`) .send({ avatar: avatarId }) .accept('json') if (res.status === 200) { targetUser.avatar = avatarId this.userCache.set(targetUser.id, targetUser) return true } } catch (error) { console.error(error) await UserSvcPing.checkNow() } return false } /** * sets an user's signature * @param targetUser the user to have the avatar updated * @param signature the new signature string * @returns true if updated successfully, false if not */ public async SetUserSignature( targetUser: User, signature: string ): Promise<boolean> { try { const res: superagent.Response = await superagent .put(this.baseUrl + `/users/${targetUser.id}`) .send({ signature }) .accept('json') if (res.status === 200) { targetUser.signature = signature this.userCache.set(targetUser.id, targetUser) return true } } catch (error) { console.error(error) await UserSvcPing.checkNow() } return false } /** * sets an user's title * @param targetUser the user to have the avatar updated * @param titleId the new title's ID * @returns true if updated successfully, false if not */ public async SetUserTitle( targetUser: User, titleId: number ): Promise<boolean> { try { const res: superagent.Response = await superagent .put(this.baseUrl + `/users/${targetUser.id}`) .send({ title: titleId }) .accept('json') if (res.status === 200) { targetUser.title = titleId this.userCache.set(targetUser.id, targetUser) return true } } catch (error) { console.error(error) await UserSvcPing.checkNow() } return false } /** * update an user * @param targetUser the user and the user data to be updated * @returns true if updated, false if not */ public async Update(targetUser: User): Promise<boolean> { try { const res: superagent.Response = await superagent .put(this.baseUrl + `/users/${targetUser.id}`) .send(targetUser) .accept('json') if (res.status === 200) { this.userCache.set(targetUser.id, targetUser) console.log('Set buy menu successfully') return true } } catch (error) { console.error(error) await UserSvcPing.checkNow() } return false } }
3,489
https://github.com/AlSpinks/deephaven-core/blob/master/application-mode/src/main/java/io/deephaven/appmode/Application.java
Github Open Source
Open Source
MIT
2,022
deephaven-core
AlSpinks
Java
Code
115
298
package io.deephaven.appmode; import io.deephaven.annotations.BuildableStyle; import org.immutables.value.Value.Immutable; @Immutable @BuildableStyle public abstract class Application { public interface Builder { Builder id(String id); Builder name(String name); Builder fields(Fields fields); Application build(); } public interface Factory { Application create(); } public static Builder builder() { return ImmutableApplication.builder(); } /** * The application id, should be unique and unchanging. * * @return the application id */ public abstract String id(); /** * The application name. * * @return the application name */ public abstract String name(); /** * The fields. * * @return the fields */ public abstract Fields fields(); public final ApplicationState toState(final ApplicationState.Listener appStateListener) { final ApplicationState state = new ApplicationState(appStateListener, id(), name()); state.setFields(fields()); return state; } }
16,007
https://github.com/PiGames/PlatformGame/blob/master/source/map/MapManager.hpp
Github Open Source
Open Source
MIT
null
PlatformGame
PiGames
C++
Code
114
312
#pragma once #include <vector> #include "Cell.hpp" #include "logger/Logger.hpp" #include "WorldConstructor.hpp" namespace pi { class MapManager { public: //Returns world size in units sf::Vector2i GetUnitWorldSize() const; void createWorld( int mapNumber ); //Checks that object with given position is in map bool IsInMap( sf::Vector2i& unitPosition ) const; //Checks that object with given position is in map bool IsInMap( unsigned int i, unsigned int j ) const; //Adds new cell void addCell( int id, sf::Vector2i unitPosition ); // Returns reference to map cells std::vector<Cell>& GetCells() { return this->map; } private: //Vector of cells which are the surface std::vector<Cell> map; //World size in units sf::Vector2i unitWorldSize{ 0,0 }; //Dimensions of cell(in px) sf::Vector2f cellDimensions{ 0,0 }; }; }
11,564
https://github.com/Owen-ycao/cloud-governance-client/blob/master/csharp-netstandard/src/Cloud.Governance.Client/Model/DueDateType.cs
Github Open Source
Open Source
Apache-2.0
2,020
cloud-governance-client
Owen-ycao
C#
Code
164
588
/* * Cloud Governance Api * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Cloud.Governance.Client.Client.OpenAPIDateConverter; namespace Cloud.Governance.Client.Model { /// <summary> /// None&#x3D;0, Expired&#x3D;1, DueToday&#x3D;2, &lt;/br&gt;DueThisWeek&#x3D;3, DueThisMonth&#x3D;4 /// </summary> /// <value>None&#x3D;0, Expired&#x3D;1, DueToday&#x3D;2, &lt;/br&gt;DueThisWeek&#x3D;3, DueThisMonth&#x3D;4</value> [JsonConverter(typeof(StringEnumConverter))] public enum DueDateType { /// <summary> /// Enum None for value: None /// </summary> [EnumMember(Value = "None")] None = 1, /// <summary> /// Enum Expired for value: Expired /// </summary> [EnumMember(Value = "Expired")] Expired = 2, /// <summary> /// Enum DueToday for value: DueToday /// </summary> [EnumMember(Value = "DueToday")] DueToday = 3, /// <summary> /// Enum DueThisWeek for value: DueThisWeek /// </summary> [EnumMember(Value = "DueThisWeek")] DueThisWeek = 4, /// <summary> /// Enum DueThisMonth for value: DueThisMonth /// </summary> [EnumMember(Value = "DueThisMonth")] DueThisMonth = 5 } }
34,086
https://github.com/ropemar/sakai/blob/master/conversations/api/src/main/java/org/sakaiproject/conversations/api/ConversationsReferenceReckoner.java
Github Open Source
Open Source
ECL-2.0
null
sakai
ropemar
Java
Code
392
979
/** * Copyright (c) 2003-2017 The Apereo Foundation * * Licensed under the Educational Community 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://opensource.org/licenses/ecl2 * * 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.sakaiproject.conversations.api; import static org.sakaiproject.conversations.api.ConversationsService.REFERENCE_ROOT; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; import lombok.Value; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.sakaiproject.conversations.api.model.ConversationsComment; import org.sakaiproject.conversations.api.model.ConversationsPost; import org.sakaiproject.conversations.api.model.ConversationsTopic; import org.sakaiproject.entity.api.Entity; /** * Created by enietzel on 5/11/17. */ @Slf4j public class ConversationsReferenceReckoner { @Value public static class ConversationsReference { private String siteId; private String type; private String id; @Override public String toString() { String reference = REFERENCE_ROOT; switch (type) { case "p": // post type reference = reference + Entity.SEPARATOR + siteId + Entity.SEPARATOR + "p" + Entity.SEPARATOR + id; break; case "c": // comment type reference = reference + Entity.SEPARATOR + siteId + Entity.SEPARATOR + "c" + Entity.SEPARATOR + id; break; case "t": default: // using topic type as default when no matching type found reference = reference + Entity.SEPARATOR + siteId + Entity.SEPARATOR + "t" + Entity.SEPARATOR + id; } return reference; } public String getReference() { return toString(); } } /** * This is a builder for an AssignmentReference * * @param context * @param id * @param reference * @param subtype * @return */ @Builder(builderMethodName = "reckoner", buildMethodName = "reckon") public static ConversationsReference referenceReckoner(ConversationsTopic topic, ConversationsPost post, ConversationsComment comment, String siteId, String type, String id, String reference) { if (StringUtils.startsWith(reference, REFERENCE_ROOT)) { String[] parts = StringUtils.splitPreserveAllTokens(reference, Entity.SEPARATOR); if (siteId == null) siteId = parts[2]; type = parts[3]; if (id == null) id = parts[4]; } else if (topic != null) { siteId = topic.getSiteId(); type = "t"; id = topic.getId(); } else if (post != null) { siteId = post.getSiteId(); type = "p"; id = post.getId(); } else if (comment != null) { siteId = comment.getSiteId(); type = "c"; id = comment.getId(); } return new ConversationsReference( (siteId == null) ? "" : siteId, type, (id == null) ? "" : id); } }
33,702
https://github.com/modstart/ModStartCMS_Laravel9/blob/master/module/Cms/View/admin/model/field/mode.blade.php
Github Open Source
Open Source
Apache-2.0
2,022
ModStartCMS_Laravel9
modstart
PHP
Code
18
205
<div> @if($item->mode==\Module\Cms\Type\CmsMode::LIST_DETAIL) <div> 默认列表模板:{{$item->listTemplate}} </div> <div> 默认详情模板:{{$item->detailTemplate}} </div> @elseif($item->mode==\Module\Cms\Type\CmsMode::PAGE) <div> 默认单页模板:{{$item->pageTemplate}} </div> @elseif($item->mode==\Module\Cms\Type\CmsMode::FORM) <div> 默认表单模板:{{$item->formTemplate}} </div> @endif </div>
4,626
https://github.com/NVIDIA/DALI/blob/master/dali/util/mmaped_file.cc
Github Open Source
Open Source
Apache-2.0
2,023
DALI
NVIDIA
C++
Code
871
2,450
// Copyright (c) 2017-2022, NVIDIA CORPORATION & AFFILIATES. 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. #include <errno.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/types.h> #if !defined(__AARCH64_QNX__) && !defined(__AARCH64_GNU__) && !defined(__aarch64__) #include <linux/sysctl.h> #include <sys/syscall.h> #endif #include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <string> #include <cstdio> #include <cstring> #include <map> #include <mutex> #include <algorithm> #include <tuple> #include "dali/util/mmaped_file.h" #include "dali/core/error_handling.h" static int _sysctl(struct __sysctl_args *args); static int get_max_vm_cnt() { int vm_cnt = 1; #if !defined(__AARCH64_QNX__) long int syscall_ret = -1; // NOLINT #if !defined(__aarch64__) size_t vm_cnt_sz = sizeof(vm_cnt); int name[] = { CTL_VM, VM_MAX_MAP_COUNT }; struct __sysctl_args args = {}; args.name = name; args.nlen = sizeof(name)/sizeof(name[0]); args.oldval = &vm_cnt; args.oldlenp = &vm_cnt_sz; syscall_ret = syscall(SYS__sysctl, &args); #endif if (syscall_ret == -1) { // fallback to reading /proc FILE * fp; int constexpr MAX_BUFF_SIZE = 256; char buffer[MAX_BUFF_SIZE + 1]; fp = std::fopen("/proc/sys/vm/max_map_count", "r"); if (fp == nullptr) { return vm_cnt; } auto elements_read = std::fread(buffer, 1, MAX_BUFF_SIZE, fp); buffer[elements_read] = '\0'; std::fclose(fp); if (!elements_read) { return vm_cnt; } vm_cnt = std::stoi(std::string(buffer), nullptr); } #endif return vm_cnt; } static void *file_map(const char *path, size_t *length, bool read_ahead) { int fd = -1; struct stat s; void *p = nullptr; int flags = MAP_PRIVATE; if (read_ahead) { #if !defined(__AARCH64_QNX__) && !defined(__AARCH64_GNU__) && !defined(__aarch64__) flags |= MAP_POPULATE; #endif } if ((fd = open(path, O_RDONLY)) < 0) { goto fail; } if (fstat(fd, &s) < 0) { goto fail; } *length = (size_t)s.st_size; if ((p = mmap(nullptr, *length, PROT_READ, flags, fd, 0)) == MAP_FAILED) { p = nullptr; goto fail; } fail: if (p == nullptr) { DALI_FAIL("File mapping failed: " + path); } if (fd > -1) { close(fd); } return p; } namespace dali { using MappedFile = std::tuple<std::weak_ptr<void>, size_t>; // limit to half of allowed mmaped files static const unsigned int dali_max_mv_cnt = get_max_vm_cnt() / 2; // number of currenlty reserved file mappings static unsigned int dali_reserved_mv_cnt = 0; // Cache the already opened files: this avoids mapping the same file N times in memory. // Doing so is wasteful since the file is read-only: we can share the underlying buffer, // with different pos_. std::mutex mapped_files_mutex; std::map<std::string, MappedFile> mapped_files; MmapedFileStream::MmapedFileStream(const std::string& path, bool read_ahead) : FileStream(path), length_(0), pos_(0), read_ahead_whole_file_(read_ahead) { std::lock_guard<std::mutex> lock(mapped_files_mutex); std::weak_ptr<void> mapped_memory; std::tie(mapped_memory, length_) = mapped_files[path]; if (!(p_ = mapped_memory.lock())) { void *p = file_map(path.c_str(), &length_, read_ahead_whole_file_); size_t length_tmp = length_; p_ = shared_ptr<void>(p, [=](void*) { // we are not touching mapped_files, weak_ptr is enough to check if // memory is valid or not munmap(p, length_tmp); }); mapped_files[path] = std::make_tuple(p_, length_); } path_ = path; DALI_ENFORCE(p_ != nullptr, "Could not open file " + path + ": " + std::strerror(errno)); } MmapedFileStream::~MmapedFileStream() { Close(); } void MmapedFileStream::Close() { // Not doing any munmap right now, since Buffer objects might still // reference the memory range of the mapping. // When last instance of p_ in LocalFileStream or in memory obtained from // LocalFileStream::Get cease to exist memory will be unmapped p_ = nullptr; length_ = 0; pos_ = 0; } inline uint8_t* ReadAheadHelper(std::shared_ptr<void> &p, size_t &pos, size_t &n_bytes, bool read_ahead) { auto tmp = static_cast<uint8_t*>(p.get()) + pos; // Ask OS to load memory content to RAM to avoid sluggish page fault during actual access to // mmaped memory if (read_ahead) { #if !defined(__AARCH64_QNX__) && !defined(__AARCH64_GNU__) && !defined(__aarch64__) madvise(tmp, n_bytes, MADV_WILLNEED); #endif } return tmp; } void MmapedFileStream::SeekRead(ptrdiff_t pos, int whence) { if (whence == SEEK_CUR) pos += pos_; else if (whence == SEEK_END) pos += length_; DALI_ENFORCE(pos >= 0 && pos <= (int64)length_, "Invalid seek"); pos_ = pos; } ptrdiff_t MmapedFileStream::TellRead() const { return pos_; } // This method saves a memcpy shared_ptr<void> MmapedFileStream::Get(size_t n_bytes) { if (pos_ + n_bytes > length_) { return nullptr; } auto tmp = p_; shared_ptr<void> p(ReadAheadHelper(p_, pos_, n_bytes, !read_ahead_whole_file_), [tmp](void*) { // This is an empty lambda, which is a custom deleter for // std::shared_ptr. // While instantiating shared_ptr, also lambda is instantiated, // making a copy of p_. This way, reference counter // of p_ is incremented. Therefore, for the duration // of life cycle of underlying memory in shared_ptr, file that was // mapped creating p_ won't be unmapped // It will be freed, when last shared_ptr is deleted. }); pos_ += n_bytes; return p; } size_t MmapedFileStream::Read(void *buffer, size_t n_bytes) { n_bytes = std::min(n_bytes, length_ - pos_); memcpy(buffer, ReadAheadHelper(p_, pos_, n_bytes, !read_ahead_whole_file_), n_bytes); pos_ += n_bytes; return n_bytes; } size_t MmapedFileStream::Size() const { return length_; } bool MmapedFileStream::ReserveFileMappings(unsigned int num) { if (num + dali_reserved_mv_cnt > dali_max_mv_cnt) { return false; } else { dali_reserved_mv_cnt += num; return true; } } void MmapedFileStream::FreeFileMappings(unsigned int num) { DALI_ENFORCE(dali_reserved_mv_cnt >= num, "Trying to free more of mmap reservations than was reserved"); dali_reserved_mv_cnt -= num; } } // namespace dali
35,725
https://github.com/ReeceGordon/Online-Booking-Reservation-.Net/blob/master/Lotus/Lotus/Client/Pages/PostLoginPage.razor
Github Open Source
Open Source
MIT
2,021
Online-Booking-Reservation-.Net
ReeceGordon
HTML+Razor
Code
856
3,227
@page "/RoleManagement" @inject IJSRuntime JSRuntime @inject NavigationManager NavigationManager @inherits LayoutComponentBase @inject AuthService AuthService @inject HttpClient Http @using Lotus.Shared.Identity @attribute [Authorize(Roles = "Admin")] <div class="container-fluid"> <div class="row no-gutters"> <div class="col-md-12"> <h1 class="display-1 text-white">System Role Management</h1> <button class="btn btn-outline-danger" type="button" @onclick="GoToAdminPanel">Back to Admin Panel</button> <h1 class="text-white">Create New Role</h1> <EditForm Model="CreateRoleModel" OnValidSubmit="HandleRoleRegistration"> <DataAnnotationsValidator /> <div class="form-group row"> <div class="col-md-12"> <InputText placeholder="Enter New Role Name" Id="rolename" class="form-control" @bind-Value="CreateRoleModel.RoleName" /> <ValidationMessage For="@(() => CreateRoleModel.RoleName)" /> <button type="submit" class="btn btn-success mt-2 mb-4 w-100">Register Role</button> </div> </div> </EditForm> @if (displaySuccess) { <div style="color:white">SUCCESS IT WAS ADDED!</div> } @if (ShowErrors) { <div style="color:red">USER ALREADY EXISTS!</div> } <h1 class="text-white">Currently Selected Role</h1> @if (eRole == null) { <div id="topAnchor" class="card mb-1"> <div class="card-header">NO ROLE | SELECTED</div> <div class="card-body"> <p style="color:@uMsgColor">@resultRoleCheck</p> </div> <div class="card-footer"> <button class="btn btn-secondary">Add Users</button> <button class="btn btn-secondary">Remove Users</button> </div> </div> } else { var currentID = @eRole.Id; <div class="card mb-1"> <div class="card-header"><span style="color: #2c3536!important" class="font-weight-bold">ROLENAME:</span> <span class="font-italic"> @eRole.RoleName </span>| <span style="color: #2c3536!important" class="font-weight-bold">ID:</span> <span class="font-italic"> @eRole.Id </span></div> <div class="card-body"> <div class="input-group mb-3"> <input type="text" @bind="newRoleName" class="form-control" placeholder="Enter New Role Name" aria-label="Enter New Role Name Input Area" aria-describedby="basic-addon2"> <div class="input-group-append"> <button class="btn btn-outline-secondary" type="button" @onclick="(()=>UpdateRole(currentID, newRoleName))">Update Role</button> </div> </div> <p style="color:@uMsgColor">@resultRoleCheck</p> <div class="card"> <div class="card-header">Users in this role</div> <div class="card-body pb-0"> <table class="table table-striped"> <thead> <tr> <th scope="col">#</th> <th scope="col">User Name</th> <th scope="col">User ID</th> <th scope="col">In Role?</th> <th scope="col">Toggle in Role</th> </tr> </thead> <tbody> @if (usersInRoles != null) { int i = 0; foreach (var user in usersInRoles) { var iteID = "inRoleCheck" + i; <tr> <th scope="row">@(i + 1)</th> <td>@user.UserName</td> <td>@user.UserId</td> <td>@user.IsSelected</td> <td> <div class="form-check"> <input type="checkbox" class="form-check-input" id="@iteID" @bind="user.IsSelected"> <label class="form-check-label" for="@iteID">Click to Toggle</label> </div> </td> </tr> i++; } } else { int i = 0; foreach (var user in eRole.Users) { var iteID = "inRoleCheck" + i; <tr> <th scope="row">@(i + 1)</th> <td>@user.UserName</td> <td>@user.UserId</td> <td>@user.IsSelected</td> <td> <div class="form-check"> <input type="checkbox" class="form-check-input" id="@iteID" @bind="user.IsSelected"> <label class="form-check-label" for="@iteID">Click to Toggle</label> </div> </td> </tr> i++; } } </tbody> </table> </div> <div class="card-footer"> <button class="btn btn-success" @onclick="(()=>GetUsersInRole(currentID))">Load All Users</button> @if (usersInRoles != null) { <button class="btn btn-primary" @onclick="(()=>UpdateUsersInRole(usersInRoles, currentID))">Update Users</button> } else { if (!eRole.Users.Any()) //If no users then button doesn't work { <button class="btn btn-secondary">Update Users</button> } else { <button class="btn btn-primary" @onclick="(()=>UpdateUsersInRole(eRole.Users, currentID))">Update Users</button> } } </div> </div> <p class="text-danger">@eRoleDisplayMsg</p> </div> </div> } <h1 class="text-white">Retreive All Current Roles</h1> <button @onclick="GetAllRoles" class="btn btn-success w-100 mb-2">Show All Roles</button> @if (newRoles != null) { foreach (var role in newRoles) { var cID = role.id; <div class="card mb-1"> <div class="card-header">Role-ID: @role.id</div> <div class="card-body">Role-Name: @role.name</div> <div class="card-footer"> <button class="btn btn-primary" @onclick="() => EditRole(cID)">Select Role</button> <button class="btn btn-danger" @onclick="() => DelRole(cID)">Delete Role</button> </div> </div> } } </div> </div> <div class="row no-gutters"> <p class="text-white">@roleLoadedStatus</p> </div> </div> @code { private ApplicationUser testUser; private CreateRoleModel CreateRoleModel = new CreateRoleModel(); private bool ShowErrors; private IEnumerable<string> Errors; private string currentUser = "null"; private string CurrentUserID = "DEFAULT-ID"; protected override async Task OnInitializedAsync() { CurrentUserID = await Http.GetStringAsync("api/Accounts/Grab_ID"); } protected override async Task OnAfterRenderAsync(bool firstRender) { //Called after each time component is rendered, useful for future reference //await EditRole("681cce82-ea1f-41d2-badb-0c5961529dd2"); //Call 'Staff' role after first render. } protected void GoToAdminPanel() { NavigationManager.NavigateTo("AdminPanel"); } bool displaySuccess; private async Task HandleRoleRegistration() { ShowErrors = false; var result = await AuthService.RegisterRole(CreateRoleModel); if (result.Successful) { //NavigationManager.NavigateTo("/", true); displaySuccess = true; await GetAllRoles(); } else { displaySuccess = false; Errors = result.Errors; ShowErrors = true; } } string roleLoadedStatus = "No Roles Loaded Currently."; private List<RoleListModel> newRoles; private async Task GetAllRoles() { newRoles = await Http.GetJsonAsync<List<RoleListModel>>("api/Admin/ListRoles"); displaySuccess = false; ShowErrors = false; eRole = null; roleLoadedStatus = ""; } EditRoleModel eRole; bool displayEditRole; string eRoleDisplayMsg = ""; private async Task EditRole(string roleID) { NavigationManager.NavigateTo("RoleManagement#topAnchor"); Console.WriteLine("-------EditRoleCall parameter: " + roleID); eRole = await Http.GetJsonAsync<EditRoleModel>("api/Admin/EditRole/" + roleID); usersInRoles = null; await JSRuntime.InvokeVoidAsync("displayModal"); displayEditRole = true; resultRoleCheck = ""; if (!eRole.Users.Any()) { eRoleDisplayMsg = "There are no users in this role, please load All Users to add new users."; } else { eRoleDisplayMsg = ""; //usersInRoles = eRole.Users; } } private async Task showEditModal() { await JSRuntime.InvokeVoidAsync("displayModal"); } string newRoleName = ""; string resultRoleCheck = ""; bool doesRoleNameExist = false; private string uMsgColor = "green"; [Parameter] public bool updateRoleCheck { get; set; } private async Task UpdateRole(string roleID, string newRoleName) { Console.WriteLine("-------UpdateRoleCall parameter: " + roleID); EditRoleModel newRole = new EditRoleModel { Id = roleID, RoleName = newRoleName }; if (newRoles != null) { foreach (var role in newRoles) { if (newRoleName == role.name) { doesRoleNameExist = true; Console.WriteLine("Role with same name found."); Console.WriteLine(newRoleName + " | " + role.name); this.StateHasChanged(); uMsgColor = "red"; } } } await GetAllRoles(); if (doesRoleNameExist) { resultRoleCheck = "Role with that name already exists."; } else { await Http.PostJsonAsync("api/Admin/PostRole", newRole); resultRoleCheck = "Successfully updated role!"; } updateRoleCheck = true; } private async Task DelRole(string roleID) { await Http.DeleteAsync("api/Admin/DelRole/" + roleID); await GetAllRoles(); } private List<UserRoleModel> usersInRoles; private async Task GetUsersInRole(string roleID) { usersInRoles = await Http.GetJsonAsync<List<UserRoleModel>>("api/Admin/GetUsersInRole/" + roleID); //Will return all users with boolean check isSelected, if isSelected is true then user is in role //else user is not in role } private async Task UpdateUsersInRole(List<UserRoleModel> model, string roleID) { Console.WriteLine("-------UpdateUsersInRoleCall parameter: " + roleID); Console.WriteLine("Model Size:" + model.Count()); await Http.PostJsonAsync("api/Admin/EditUsersInRole/" + roleID, model); await EditRole(roleID); } }
4,677
https://github.com/psilospore/rules_scala-rebloopy/blob/master/scala/private/phases/phase_scala_provider.bzl
Github Open Source
Open Source
Apache-2.0
2,019
rules_scala-rebloopy
psilospore
Starlark
Code
119
512
# # PHASE: scala provider # # DOCUMENT THIS # load( "@io_bazel_rules_scala//scala:providers.bzl", "create_scala_provider", ) def phase_library_scala_provider(ctx, p): args = struct( rjars = depset( transitive = [p.compile.rjars, p.collect_exports_jars.transitive_runtime_jars], ), compile_jars = depset( p.compile.ijars, transitive = [p.collect_exports_jars.compile_jars], ), ijar = p.compile.ijar, ) return _phase_default_scala_provider(ctx, p, args) def phase_common_scala_provider(ctx, p): return _phase_default_scala_provider(ctx, p) def _phase_default_scala_provider(ctx, p, _args = struct()): return _phase_scala_provider( ctx, p, _args.rjars if hasattr(_args, "rjars") else p.compile.rjars, _args.compile_jars if hasattr(_args, "compile_jars") else depset(p.compile.ijars), _args.ijar if hasattr(_args, "ijar") else p.compile.class_jar, # we aren't using ijar here ) def _phase_scala_provider( ctx, p, rjars, compile_jars, ijar): return create_scala_provider( class_jar = p.compile.class_jar, compile_jars = compile_jars, deploy_jar = ctx.outputs.deploy_jar, full_jars = p.compile.full_jars, ijar = ijar, source_jars = p.compile.source_jars, statsfile = ctx.outputs.statsfile, transitive_runtime_jars = rjars, )
12,827
https://github.com/namrathaurs/hilt-scripts/blob/master/correlation.py
Github Open Source
Open Source
MIT
2,019
hilt-scripts
namrathaurs
Python
Code
359
1,139
import numpy as np def average(values): return sum(values) / len(list(values)) def squared_difference(value, average): return ( value - average )**2 def variance(values): try: return average( [ squared_difference( value, average(values) ) for value in values ] ) except ZeroDivisionError: return 0 def cronbachs_alpha(annotations): num_items = len(annotations) sum_component_variances = sum( variance(item) for item in annotations ) overall_variance = variance( list( sum( annotations, () ) ) ) alpha = ( ( num_items / (num_items - 1) ) * ( 1 - sum_component_variances / overall_variance ) # * ( 1 - overall_variance / sum_component_variances ) ) return ( num_items, sum_component_variances, round(overall_variance,2), round(alpha,2) ) return alpha # def cronbachs_alpha(annotations): # num_items = len(annotations) # sum_component_variances = sum( # np.var(item) for item in annotations # ) # overall_variance = np.var(annotations) # # overall_variance = np.var( # # [ # # sum(person) # # for person in zip(*annotations) # # ] # # ) # alpha = ( # ( num_items / (num_items - 1) ) # * ( 1 - sum_component_variances / overall_variance ) # ) # return alpha def main(): import argparse import gatenlphiltlab parser = argparse.ArgumentParser( description="Computes inter-rater reliability of like " "annotations between two annotation files in terms " "of Cronbach's Alpha.", ) parser.add_argument( "-i", "--annotation-files", dest="annotation_file", nargs=2, required="true", help="GATE annotation files" ) args = parser.parse_args() paths = args.annotation_file annotation_files = ( gatenlphiltlab.AnnotationFile(path) for path in paths ) annotations = list( zip( *[ sorted( gatenlphiltlab.concatenate_annotations( x for x in annotation_file.iter_annotations() if x._type.lower() == "attribution" ), key=lambda x: x._id ) for annotation_file in annotation_files ] ) ) def get_value_by_name(name, annotation): return next( int(annotation._value.split(" ")[0]) for annotation in annotation.get_features() if name in annotation._name.lower() ) annotations_internality = [ ( get_value_by_name("pers", x), get_value_by_name("pers", y), ) for x, y in annotations ] annotations_stability = [ ( get_value_by_name("perm", x), get_value_by_name("perm", y), ) for x, y in annotations ] annotations_globality = [ ( get_value_by_name("perv", x), get_value_by_name("perv", y), ) for x, y in annotations ] # print("internality:") # print(annotations_internality) # print(cronbachs_alpha(annotations_internality)) # print() # print("stability:") # print(annotations_stability) # print(cronbachs_alpha(annotations_stability)) # print() # print("globality:") # print(annotations_globality) # print(cronbachs_alpha(annotations_globality)) # print() print( "\n".join( ",".join( ( str(value) for value in item ) ) for item in annotations_stability ) ) if __name__ == "__main__": main()
23,194
https://github.com/hitsujiwool/uima-zipper/blob/master/src/test/java/net/hitsujiwool/uima/zipper/Source.java
Github Open Source
Open Source
MIT
2,013
uima-zipper
hitsujiwool
Java
Code
279
1,062
/* First created by JCasGen Fri Nov 08 18:04:34 CET 2013 */ package net.hitsujiwool.uima.zipper; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; import org.apache.uima.jcas.cas.TOP_Type; import org.apache.uima.jcas.tcas.Annotation; /** * Updated by JCasGen Fri Nov 08 18:04:34 CET 2013 * XML source: /Users/ryo/uima-zipper/src/test/resources/ZipperTypeSystem.xml * @generated */ public class Source extends Annotation { /** @generated * @ordered */ @SuppressWarnings ("hiding") public final static int typeIndexID = JCasRegistry.register(Source.class); /** @generated * @ordered */ @SuppressWarnings ("hiding") public final static int type = typeIndexID; /** @generated */ @Override public int getTypeIndexID() {return typeIndexID;} /** Never called. Disable default constructor * @generated */ protected Source() {/* intentionally empty block */} /** Internal - constructor used by generator * @generated */ public Source(int addr, TOP_Type type) { super(addr, type); readObject(); } /** @generated */ public Source(JCas jcas) { super(jcas); readObject(); } /** @generated */ public Source(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); } /** <!-- begin-user-doc --> * Write your own initialization here * <!-- end-user-doc --> @generated modifiable */ private void readObject() {/*default - does nothing empty block */} //*--------------* //* Feature: hoge /** getter for hoge - gets * @generated */ public String getHoge() { if (Source_Type.featOkTst && ((Source_Type)jcasType).casFeat_hoge == null) jcasType.jcas.throwFeatMissing("hoge", "net.hitsujiwool.uima.zipper.Source"); return jcasType.ll_cas.ll_getStringValue(addr, ((Source_Type)jcasType).casFeatCode_hoge);} /** setter for hoge - sets * @generated */ public void setHoge(String v) { if (Source_Type.featOkTst && ((Source_Type)jcasType).casFeat_hoge == null) jcasType.jcas.throwFeatMissing("hoge", "net.hitsujiwool.uima.zipper.Source"); jcasType.ll_cas.ll_setStringValue(addr, ((Source_Type)jcasType).casFeatCode_hoge, v);} //*--------------* //* Feature: fuga /** getter for fuga - gets * @generated */ public String getFuga() { if (Source_Type.featOkTst && ((Source_Type)jcasType).casFeat_fuga == null) jcasType.jcas.throwFeatMissing("fuga", "net.hitsujiwool.uima.zipper.Source"); return jcasType.ll_cas.ll_getStringValue(addr, ((Source_Type)jcasType).casFeatCode_fuga);} /** setter for fuga - sets * @generated */ public void setFuga(String v) { if (Source_Type.featOkTst && ((Source_Type)jcasType).casFeat_fuga == null) jcasType.jcas.throwFeatMissing("fuga", "net.hitsujiwool.uima.zipper.Source"); jcasType.ll_cas.ll_setStringValue(addr, ((Source_Type)jcasType).casFeatCode_fuga, v);} }
11,239