hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
d14140197f9d8b307d68df0ec49b559ff3a2ad74
16,645
dart
Dart
lib/pages/account_restore.dart
DAOCUONG/esse
75221984b929e0c41e33b6516b1aef38c4d8e58f
[ "Apache-2.0", "MIT" ]
null
null
null
lib/pages/account_restore.dart
DAOCUONG/esse
75221984b929e0c41e33b6516b1aef38c4d8e58f
[ "Apache-2.0", "MIT" ]
null
null
null
lib/pages/account_restore.dart
DAOCUONG/esse
75221984b929e0c41e33b6516b1aef38c4d8e58f
[ "Apache-2.0", "MIT" ]
null
null
null
import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:esse/l10n/localizations.dart'; import 'package:esse/utils/device_info.dart'; import 'package:esse/widgets/button_text.dart'; import 'package:esse/widgets/shadow_dialog.dart'; import 'package:esse/widgets/show_pin.dart'; import 'package:esse/widgets/qr_scan.dart'; import 'package:esse/pages/home.dart'; import 'package:esse/account.dart'; import 'package:esse/global.dart'; import 'package:esse/rpc.dart'; import 'package:esse/provider.dart'; import 'package:esse/apps/device/provider.dart'; import 'package:esse/apps/chat/provider.dart'; class AccountRestorePage extends StatefulWidget { const AccountRestorePage({Key key}) : super(key: key); @override _AccountRestorePageState createState() => _AccountRestorePageState(); } class _AccountRestorePageState extends State<AccountRestorePage> { bool _statusChecked = false; String _name; TextEditingController _addrController = new TextEditingController(); FocusNode _addrFocus = new FocusNode(); bool _addrOnline = false; bool _addrChecked = false; TextEditingController _wordController = new TextEditingController(); FocusNode _wordFocus = new FocusNode(); List<String> _mnemoicWords = []; bool _wordChecked = false; @override initState() { super.initState(); _addrFocus.addListener(() { setState(() {}); }); _wordFocus.addListener(() { setState(() {}); }); } @override Widget build(BuildContext context) { final color = Theme.of(context).colorScheme; final lang = AppLocalizations.of(context); List<Widget> mnemonicWordWidgets = []; this._mnemoicWords.asMap().forEach((index, value) { mnemonicWordWidgets.add(Chip( avatar: CircleAvatar( backgroundColor: Color(0xFF6174FF), child: Text("${index + 1}", style: TextStyle(fontSize: 12, color: Colors.white))), label: Text(value.trim(), style: TextStyle(fontSize: 16)), backgroundColor: color.surface, padding: EdgeInsets.all(8.0), onDeleted: () => _deleteWord(index), deleteIconColor: Color(0xFFADB0BB))); }); return Scaffold( body: SafeArea( child: Container( padding: const EdgeInsets.all(20.0), child: SingleChildScrollView( child: Column( children: <Widget>[ Container( width: 700.0, child: Row( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center, children: [ GestureDetector( onTap: () => Navigator.of(context).pop(), child: Container( width: 40.0, height: 40.0, decoration: BoxDecoration( color: Color(0xFF6174FF), borderRadius: BorderRadius.circular(15.0)), child: Center( child: Icon(Icons.arrow_back, color: Colors.white)), )), const SizedBox(width: 32.0), Expanded( child: Text( lang.loginRestoreOnline, style: TextStyle( fontSize: 20.0, fontWeight: FontWeight.bold, ), ), ), TextButton( onPressed: _scanQr, child: Icon(Icons.qr_code_scanner_rounded)), ])), const SizedBox(height: 32.0), Text( 'Online Network Address', style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold), ), const SizedBox(height: 16.0), Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Container( height: 50.0, width: 450.0, child: Row(children: [ Expanded( child: Container( padding: const EdgeInsets.symmetric( horizontal: 20.0), decoration: BoxDecoration( color: color.surface, border: Border.all( color: this._addrFocus.hasFocus ? color.primary : color.surface), borderRadius: BorderRadius.circular(15.0), ), child: TextField( style: TextStyle(fontSize: 16.0), decoration: InputDecoration( border: InputBorder.none, hintText: lang.address), controller: this._addrController, focusNode: this._addrFocus, onSubmitted: (_v) => _checkAddrOnline(), onChanged: (v) { if (v.length > 0 && !this._addrChecked) { setState(() { this._addrChecked = true; }); } }), ), ), if (this._addrOnline) Container( padding: const EdgeInsets.only(left: 8.0), child: Icon(Icons.cloud_done_rounded, color: Colors.green), ), const SizedBox(width: 8.0), Container( width: 100.0, child: InkWell( onTap: this._addrChecked ? _checkAddrOnline : null, child: Container( height: 45.0, decoration: BoxDecoration( color: this._addrChecked ? Color(0xFF6174FF) : Color(0xFFADB0BB), borderRadius: BorderRadius.circular(15.0)), child: Center( child: Text(lang.search, style: TextStyle( fontSize: 16.0, color: Colors.white))), ))), ])), const SizedBox(height: 32.0), Text( 'Mnemoic Words', style: TextStyle( fontSize: 18.0, fontWeight: FontWeight.bold), ), const SizedBox(height: 16.0), Container( width: 450.0, alignment: Alignment.center, constraints: BoxConstraints(minHeight: 170.0), padding: const EdgeInsets.all(10.0), decoration: BoxDecoration( border: Border.all(color: Color(0x40ADB0BB)), borderRadius: BorderRadius.circular(15), ), child: Wrap( spacing: 10.0, runSpacing: 5.0, alignment: WrapAlignment.center, children: mnemonicWordWidgets, )), const SizedBox(height: 16.0), Container( height: 50.0, width: 450.0, child: Row(children: [ Container( padding: const EdgeInsets.only(right: 8.0), width: 40.0, height: 40.0, child: CircleAvatar( backgroundColor: this._wordFocus.hasFocus ? Color(0xFF6174FF) : color.surface, child: Text( (this._mnemoicWords.length + 1) .toString(), style: TextStyle( fontSize: 12, color: Colors.white))), ), Expanded( child: Container( padding: const EdgeInsets.symmetric( horizontal: 20.0), decoration: BoxDecoration( color: color.surface, border: Border.all( color: this._wordFocus.hasFocus ? color.primary : color.surface), borderRadius: BorderRadius.circular(15.0), ), child: TextField( enabled: !this._statusChecked, style: TextStyle(fontSize: 16.0), decoration: InputDecoration( border: InputBorder.none, hintText: 'words'), controller: this._wordController, focusNode: this._wordFocus, onSubmitted: (_v) => _addWord(), onChanged: (v) { if (v.length > 0 && !this._wordChecked) { setState(() { this._wordChecked = true; }); } }), ), ), const SizedBox(width: 8.0), Container( width: 100.0, child: InkWell( onTap: this._wordChecked ? _addWord : null, child: Container( height: 45.0, decoration: BoxDecoration( color: this._wordChecked ? Color(0xFF6174FF) : Color(0xFFADB0BB), borderRadius: BorderRadius.circular(15.0)), child: Center( child: Text(lang.add, style: TextStyle( fontSize: 16.0, color: Colors.white))), ))), ])), const SizedBox(height: 32.0), ButtonText( text: lang.next, enable: _statusChecked, action: () => _mnemonicRegister(lang.unknown, lang.setPin), ), _footer( lang.hasAccount, () => Navigator.of(context).pop()), ]) ]), ))), ); } _scanQr() { Navigator.push(context, MaterialPageRoute( builder: (context) => QRScan(callback: (isOk, app, params) { Navigator.of(context).pop(); if (app == 'distribute' && params.length == 4) { final name = params[0]; final id = params[1]; final addr = params[2]; final mnemonicWords = params[3]; setState(() { this._addrOnline = true; this._addrChecked = false; this._wordController.text = ''; this._wordChecked = false; this._statusChecked = true; this._name = name; this._addrController.text = addr; this._mnemoicWords = mnemonicWords.split(" "); }); } }))); } _checkAddrOnline() { FocusScope.of(context).unfocus(); setState(() { this._addrOnline = true; this._addrChecked = false; }); } _addWord() { final word = this._wordController.text.trim(); if (word.length == 0) { return; } setState(() { this._mnemoicWords.add(word); if (this._mnemoicWords.length < 12) { this._wordController.text = ''; this._wordFocus.requestFocus(); this._wordChecked = false; } else { this._wordController.text = ''; this._wordChecked = false; this._statusChecked = true; } }); } _deleteWord(int index) { setState(() { this._mnemoicWords.removeAt(index); this._statusChecked = false; }); } _mnemonicRegister(String defaultName, String title) async { print(this._mnemoicWords); if (this._mnemoicWords.length != 12) { return; } final mnemonic = this._mnemoicWords.join(' '); if (this._name == null) { this._name = defaultName; } var addr = this._addrController.text; if (addr.length > 2 && addr.substring(0, 2) == '0x') { //substring(2); if has 0x, need remove addr = addr.substring(2); } final info = await deviceInfo(); showShadowDialog( context, Icons.security_rounded, title, SetPinWords( callback: (key, lock) async { Navigator.of(context).pop(); // send to core node service by rpc. final res = await httpPost(Global.httpRpc, 'account-restore', [this._name, lock, mnemonic, addr, info[0], info[1]]); if (res.isOk) { // save this User final account = Account(res.params[0], this._name, lock); Provider.of<AccountProvider>(context, listen: false).addAccount(account); Provider.of<DeviceProvider>(context, listen: false).updateActived(); Provider.of<ChatProvider>(context, listen: false).updateActived(); Navigator.pushReplacement(context, MaterialPageRoute(builder: (_) => HomePage())); } else { // TODO tostor error print(res.error); } }), 20.0, ); } } Widget _footer(String text1, Function callback) { return Padding( padding: const EdgeInsets.only(top: 20), child: Center( child: TextButton( onPressed: callback, child: Text( text1, style: TextStyle(fontSize: 16), ), ), ), ); }
40.696822
94
0.401742
6011a013180a2ea048620d5b01c7f9901cddae74
1,918
dart
Dart
lib/features/settings/presentation/providers/settings_provider.dart
karthikmurakonda/expense_bud
a11ced153d6216c77d3e6ed884e5d72411e57316
[ "Apache-2.0" ]
19
2022-02-13T18:51:06.000Z
2022-03-26T13:49:32.000Z
lib/features/settings/presentation/providers/settings_provider.dart
karthikmurakonda/expense_bud
a11ced153d6216c77d3e6ed884e5d72411e57316
[ "Apache-2.0" ]
2
2022-02-13T14:05:03.000Z
2022-03-02T16:17:56.000Z
lib/features/settings/presentation/providers/settings_provider.dart
karthikmurakonda/expense_bud
a11ced153d6216c77d3e6ed884e5d72411e57316
[ "Apache-2.0" ]
11
2022-02-21T14:51:43.000Z
2022-03-26T13:49:27.000Z
import 'package:expense_bud/core/utils/currencies.dart'; import 'package:expense_bud/core/utils/money.dart'; import 'package:expense_bud/features/settings/domain/entities/user_preference.dart'; import 'package:expense_bud/features/settings/domain/usecases/get_user_preference_usecase.dart'; import 'package:expense_bud/features/settings/domain/usecases/update_user_preference_usecase.dart'; import 'package:flutter/material.dart'; class SettingsProvider with ChangeNotifier { SettingsProvider({ required GetUserPreferenceUsecase getUserPreferenceUsecase, required UpdateUserPreferenceUsecase updateUserPreferenceUsecase, }) : _getUserPreferenceUsecase = getUserPreferenceUsecase, _updateUserPreferenceUsecase = updateUserPreferenceUsecase; final GetUserPreferenceUsecase _getUserPreferenceUsecase; final UpdateUserPreferenceUsecase _updateUserPreferenceUsecase; UserPreferenceEntity _preference = UserPreferenceEntity( inboxAmount: InboxAmount.week, showCharts: true, showEntryDate: false, onboardingComplete: false, currency: usd, ); late Money _money; Money get money => _money; set money(Money value) { _money = value; notifyListeners(); } UserPreferenceEntity get preference => _preference; set __preference(UserPreferenceEntity pref) { _preference = pref; notifyListeners(); } Future<void> updateUserPref(UserPreferenceEntity pref) async { if (preference.currency != pref.currency) { _money = Money(pref.currency); } final failureOrSuccess = await _updateUserPreferenceUsecase(pref); failureOrSuccess.fold((failure) {}, (_) => __preference = pref); } Future<void> getUserPref() async { final failureOrSuccess = await _getUserPreferenceUsecase(); failureOrSuccess.fold((failure) {}, (pref) { if (pref != null) __preference = pref; }); _money = Money(preference.currency); } }
34.872727
99
0.763816
fb68cbcd46075298239f8a5e71a72898de0c91cd
4,458
java
Java
core/src/main/java/jk/core/excel/gen/ExpHeader.java
lgh1117/jk-excel
322b8212b1f8ee3e6ed476d1ab0dcab7305d46af
[ "Apache-2.0" ]
8
2020-05-14T11:43:01.000Z
2022-02-28T15:14:35.000Z
core/src/main/java/jk/core/excel/gen/ExpHeader.java
lgh1117/jk-excel
322b8212b1f8ee3e6ed476d1ab0dcab7305d46af
[ "Apache-2.0" ]
1
2022-02-02T01:28:00.000Z
2022-02-09T13:02:09.000Z
core/src/main/java/jk/core/excel/gen/ExpHeader.java
lgh1117/jk-excel
322b8212b1f8ee3e6ed476d1ab0dcab7305d46af
[ "Apache-2.0" ]
1
2022-02-28T15:14:36.000Z
2022-02-28T15:14:36.000Z
package jk.core.excel.gen; import jk.core.excel.cellinfo.CellInfo; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.poi.ss.usermodel.CellStyle; import java.io.Serializable; import java.util.List; /** * <p> * Title: [子系统名称]_[模块名] * </p> * <p> * Description: [描述该类概要功能介绍] * </p> * * @file: ExcelHeader.java * @author: Jack lee * @version: v1.0 */ public class ExpHeader implements Serializable { /** * */ private static final long serialVersionUID = 4099233841665439130L; /** * 每一列的头部显示名称 */ private String name; /** * 读取数据时取值的key名称 */ private String valueName; /** * 该名称占用几列 */ private int col; /** * 该名称占用几行 */ private int row; /** * 第几行,默认为第一行 */ private int rowIndex; /*** * 所处列的位置 */ private int colIndex; /** * 列宽 */ private int colWidth; /** * 设置单元格属性,比如颜色,字体 */ private CellInfo cellInfo; /** * 头部字体,属性,颜色设置 */ private CellInfo headCellInfo; /** * 单页格式信息 */ private CellStyle cellStyle; /** * 表示是否做过字体样式渲染,计算过程中使用 */ private boolean genStyle = false; /** * 自动按照列头的宽度调整列宽 */ private boolean autoWidth = false; /** * 下拉列约束值 */ private List<String> constraintData = null; public ExpHeader(){} /** * @param name * 表头显示名称 * @param valueName * 取值名称 * @param col * 共占几列 * @param row * 共占几行 * @param rowIndex * 第几行,序列从1开始 * @param colIndex * 第几列,序列从1开始 */ public ExpHeader(String name, String valueName, int row, int col, int rowIndex, int colIndex) { super(); this.name = name; this.valueName = valueName; this.col = col; this.row = row; this.rowIndex = rowIndex - 1; this.colIndex = colIndex - 1; } /** * @return the name */ public String getName() { return name; } /** * @param name * the name to set */ public void setName(String name) { this.name = name; } /** * @return the col */ public int getCol() { return col; } /** * @param col * the col to set */ public void setCol(int col) { this.col = col; } /** * @return the row */ public int getRow() { return row; } /** * @param row * the row to set */ public void setRow(int row) { this.row = row; } /** * @return the valueName */ public String getValueName() { return valueName; } /** * @param valueName * the valueName to set */ public void setValueName(String valueName) { this.valueName = valueName; } /** * @return the rowIndex */ public int getRowIndex() { return rowIndex; } /** * @param rowIndex * the rowIndex to set */ public void setRowIndex(int rowIndex) { this.rowIndex = rowIndex; } /** * @return the colIndex */ public int getColIndex() { return colIndex; } /** * @param colIndex * the colIndex to set */ public void setColIndex(int colIndex) { this.colIndex = colIndex; } /** * @return the cellInfo */ public CellInfo getCellInfo() { return cellInfo; } /** * @param cellInfo the cellInfo to set */ public void setCellInfo(CellInfo cellInfo) { this.cellInfo = cellInfo; } /** * @return the cellStyle */ public CellStyle getCellStyle() { return cellStyle; } /** * @param cellStyle the cellStyle to set */ public void setCellStyle(CellStyle cellStyle) { this.cellStyle = cellStyle; } /** * @return the headCellInfo */ public CellInfo getHeadCellInfo() { return headCellInfo; } /** * @param headCellInfo the headCellInfo to set */ public void setHeadCellInfo(CellInfo headCellInfo) { this.headCellInfo = headCellInfo; } /** * @return the genStyle */ public boolean isGenStyle() { return genStyle; } /** * @param genStyle the genStyle to set */ public void setGenStyle(boolean genStyle) { this.genStyle = genStyle; } public boolean isAutoWidth() { return autoWidth; } public void setAutoWidth(boolean autoWidth) { this.autoWidth = autoWidth; } public int getColWidth() { return colWidth; } public void setColWidth(int colWidth) { this.colWidth = colWidth; } public List<String> getConstraintData() { return constraintData; } public void setConstraintData(List<String> constraintData) { this.constraintData = constraintData; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
14.909699
67
0.616869
7acf8e0747bbb2953826f7214e3e17322c8c9ff0
758
swift
Swift
Expense Tracker/Base/BasePresenterView.swift
serdarbakirtas/ExpenseTracker
102859a9685cff21cd8923cf170f400372db0dcf
[ "MIT" ]
null
null
null
Expense Tracker/Base/BasePresenterView.swift
serdarbakirtas/ExpenseTracker
102859a9685cff21cd8923cf170f400372db0dcf
[ "MIT" ]
null
null
null
Expense Tracker/Base/BasePresenterView.swift
serdarbakirtas/ExpenseTracker
102859a9685cff21cd8923cf170f400372db0dcf
[ "MIT" ]
null
null
null
// // BasePresenterView.swift // Expense Tracker // // Created by Hasan on 04.11.20. // import UIKit protocol BasePresenterView: class { func showAlert(title: String?, message: String?, actions: [UIAlertAction]?) } class BasePresenter<T: BasePresenterView> { weak var view: T? var dataInstance: ExpenseTrackerData init(view: T, dataInstance: ExpenseTrackerData = ExpenseTrackerDataRepo.sharedInstance) { self.view = view self.dataInstance = dataInstance } func interpretError(title: String?, error: Error, actions: [UIAlertAction]? = nil) { var message: String? message = error.localizedDescription view?.showAlert(title: title, message: message, actions: actions) } }
25.266667
93
0.676781
21fe6006111f9d4eacd676dae99003a59fd7923d
499
html
HTML
src/app/edit-meal/edit-meal.component.html
Xesme/meal-tracker
50362c7234edbc872402598c777dfa5b16a5b838
[ "MIT" ]
null
null
null
src/app/edit-meal/edit-meal.component.html
Xesme/meal-tracker
50362c7234edbc872402598c777dfa5b16a5b838
[ "MIT" ]
null
null
null
src/app/edit-meal/edit-meal.component.html
Xesme/meal-tracker
50362c7234edbc872402598c777dfa5b16a5b838
[ "MIT" ]
null
null
null
<div class="panel edit"> <div *ngIf="childSelectedMeal"> <h3>Update your food entry for {{childSelectedMeal.name}}:</h3> <div class="form-group"> <label for="details">Details:</label> <input [(ngModel)]="childSelectedMeal.details"> </div> <div class="form-group"> <label for="details">Calories:</label> <input [(ngModel)]="childSelectedMeal.calories"> </div> <button class="btn btn-success" (click)="editDoneButton()">Done</button> </div> </div>
33.266667
77
0.631263
8d3e06f4d37b425fe6ffab55409a2ed5c7ac78c5
2,513
kt
Kotlin
src/test/kotlin/br/com/jiratorio/extension/EqualsExtensionKtTest.kt
LeonardoFerreiraa/jirareport
845540e238f47fbd05c1f7f6839152545521c63e
[ "MIT" ]
20
2018-11-08T02:00:33.000Z
2021-09-06T12:56:30.000Z
src/test/kotlin/br/com/jiratorio/extension/EqualsExtensionKtTest.kt
jirareport/jirareport
845540e238f47fbd05c1f7f6839152545521c63e
[ "MIT" ]
31
2019-07-26T19:37:05.000Z
2021-11-17T08:38:38.000Z
src/test/kotlin/br/com/jiratorio/extension/EqualsExtensionKtTest.kt
LeonardoFerreiraa/jirareport
845540e238f47fbd05c1f7f6839152545521c63e
[ "MIT" ]
8
2019-05-09T21:23:00.000Z
2021-07-29T21:26:18.000Z
package br.com.jiratorio.extension import br.com.jiratorio.testlibrary.junit.testtype.UnitTest import org.assertj.core.api.Assertions import org.junit.jupiter.api.Test import java.util.Objects @UnitTest class EqualsExtensionKtTest { @Test fun `test complex equals, results true`() { val firstPerson = Person( name = "Leonardo", age = 23, phones = listOf( Phone(id = 1L, number = "123"), Phone(id = 2L, number = "321"), Phone(id = 3L, number = "543") ) ) val secondPerson = Person( name = "Leonardo", age = 22, phones = listOf( Phone(id = 1L, number = "123"), Phone(id = 2L, number = "321"), Phone(id = 3L, number = "543") ) ) Assertions.assertThat(firstPerson == secondPerson).isTrue() Assertions.assertThat(firstPerson.phones == secondPerson.phones).isTrue() Assertions.assertThat(firstPerson === secondPerson).isFalse() } @Test fun `test complex equals, results false`() { val firstPerson = Person( name = "Leonardo", age = 23, phones = listOf( Phone(id = 1L, number = "123"), Phone(id = 2L, number = "321"), Phone(id = 3L, number = "345") ) ) val secondPerson = Person( name = "Ferreira", age = 23, phones = listOf( Phone(id = 1L, number = "123"), Phone(id = 2L, number = "321"), Phone(id = 3L, number = "543") ) ) Assertions.assertThat(firstPerson == secondPerson).isFalse() Assertions.assertThat(firstPerson.phones == secondPerson.phones).isFalse() Assertions.assertThat(firstPerson === secondPerson).isFalse() } inner class Person( val name: String, val age: Int, val phones: List<Phone> ) { override fun equals(other: Any?) = equalsComparing(other, Person::name, Person::phones) override fun hashCode() = Objects.hash(name, phones) } inner class Phone( val id: Long, val number: String ) { override fun equals(other: Any?) = equalsComparing(other, Phone::id, Phone::number) override fun hashCode() = Objects.hash(id, number) } }
28.235955
82
0.520493
047bab77bb08eaef4ccc0edd4c88453cb1acb88c
342
java
Java
src/main/java/org/launchcode/myrecipe/models/data/RecipeDao.java
sanaipey/my-recipe
e79a4a06e5491f93d78f0a0d97f5bb39ceb5041f
[ "MIT" ]
null
null
null
src/main/java/org/launchcode/myrecipe/models/data/RecipeDao.java
sanaipey/my-recipe
e79a4a06e5491f93d78f0a0d97f5bb39ceb5041f
[ "MIT" ]
1
2019-02-03T04:54:31.000Z
2019-02-03T04:54:31.000Z
src/main/java/org/launchcode/myrecipe/models/data/RecipeDao.java
sanaipey/my-recipe
e79a4a06e5491f93d78f0a0d97f5bb39ceb5041f
[ "MIT" ]
1
2019-02-05T17:41:03.000Z
2019-02-05T17:41:03.000Z
package org.launchcode.myrecipe.models.data; import org.launchcode.myrecipe.models.Recipe; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import javax.transaction.Transactional; @Transactional @Repository public interface RecipeDao extends CrudRepository<Recipe, Integer> { }
24.428571
68
0.845029
c0880f9deeec1a4dadbe5b2e7b63e1b1f6460205
1,590
html
HTML
files_manager/templates/files_manager/found_matches.html
Glooshak/file_storage
366be11ee83a03cce8d67747bf4d536428994877
[ "MIT" ]
4
2021-07-19T06:51:19.000Z
2021-07-19T06:52:40.000Z
files_manager/templates/files_manager/found_matches.html
Glooshak/file_storage
366be11ee83a03cce8d67747bf4d536428994877
[ "MIT" ]
null
null
null
files_manager/templates/files_manager/found_matches.html
Glooshak/file_storage
366be11ee83a03cce8d67747bf4d536428994877
[ "MIT" ]
null
null
null
{% extends 'files_manager/base.html' %} {% block title %} Successful searching {% endblock %} {% block content %} <div class="container mt-5"> <h4>Result of your searching:</h4> </div> <div class="files mt-5"> <ul class="list-group list-group-numbered"> {% for object in objects %} <li class="list-group-item">{{ object.file_hash }} <div class="btn-group btn-group-sm" role="group" aria-label="Basic mixed styles example"> <a href="{{ object.get_absolute_url }}" class="btn btn-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Show detailed information about this file">Show details</a> <a href="{% url 'files_manager-successful_deletion' object.file_hash %}" class="btn btn-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="Delete this file">Delete file</a> <a href="{% url 'files_manager-successful_downloading' object.file_hash %}" class="btn btn-info" data-bs-toggle="tooltip" data-bs-placement="top" title="Download file">Download file</a> </div> </li> {% endfor %} </ul> </div> {% endblock %}
44.166667
116
0.460377
c01349239749e9e6f3636c851a2c37c89db754f9
297
asm
Assembly
unittests/ASM/X87_F64/DF_00_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/X87_F64/DF_00_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
unittests/ASM/X87_F64/DF_00_F64.asm
Seas0/FEX
4f4263263b560b0a25e0d48555d5b99ca12c938f
[ "MIT" ]
null
null
null
%ifdef CONFIG { "RegData": { "RAX": "0x4090000000000000" }, "Env": { "FEX_X87REDUCEDPRECISION" : "1" } } %endif mov rdx, 0xe0000000 mov eax, 1024 mov [rdx + 8 * 0], eax mov eax, -1 mov [rdx + 8 * 0 + 2], eax fild word [rdx + 8 * 0] fst qword [rdx + 8 * 0] mov rax, [rdx + 8 * 0] hlt
13.5
44
0.56229
9be6ada3da1598f44452e1021806d700f9d79f53
303
js
JavaScript
lib/type/Configuration.js
joutvhu/whirler-client
f015193850fc51d65261c513db0bbdb7653147a9
[ "MIT" ]
1
2019-03-31T02:55:53.000Z
2019-03-31T02:55:53.000Z
lib/type/Configuration.js
joutvhu/whirler-client
f015193850fc51d65261c513db0bbdb7653147a9
[ "MIT" ]
null
null
null
lib/type/Configuration.js
joutvhu/whirler-client
f015193850fc51d65261c513db0bbdb7653147a9
[ "MIT" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Configuration = /** @class */ (function () { function Configuration(config) { if (config && config.url) this.url = config.url; } return Configuration; }()); exports.default = Configuration;
27.545455
62
0.627063
c15d9070bd4b8ce0678a189e79ed1aaea97b348a
253
lua
Lua
EoTUtils/IO.lua
colinsoleim/EoTAddons
f62889dca9f1e33e72b8688c488a05807d98ed11
[ "MIT" ]
null
null
null
EoTUtils/IO.lua
colinsoleim/EoTAddons
f62889dca9f1e33e72b8688c488a05807d98ed11
[ "MIT" ]
9
2019-06-11T18:35:17.000Z
2019-08-10T21:06:06.000Z
EoTUtils/IO.lua
colinsoleim/EoTAddons
f62889dca9f1e33e72b8688c488a05807d98ed11
[ "MIT" ]
1
2019-08-06T19:59:42.000Z
2019-08-06T19:59:42.000Z
function EOT_Error(msg) DEFAULT_CHAT_FRAME:AddMessage("|cffff0000EoT Error: " .. msg) end function EOT_Log(msg) DEFAULT_CHAT_FRAME:AddMessage("|cff00ffffEoT: " .. msg) end function EOT_Say(msg) SendChatMessage(msg, "SAY", nil, nil) end
23
64
0.72332
e5584d8ae5ffe48ddf9d983657a2bf0af6330db1
13,483
dart
Dart
Movie-App/lib/movie_detail.dart
Simran1604/Flutter-Movie-App
52a87257f2089eff74a3a61a0be045cc880787b1
[ "MIT" ]
null
null
null
Movie-App/lib/movie_detail.dart
Simran1604/Flutter-Movie-App
52a87257f2089eff74a3a61a0be045cc880787b1
[ "MIT" ]
null
null
null
Movie-App/lib/movie_detail.dart
Simran1604/Flutter-Movie-App
52a87257f2089eff74a3a61a0be045cc880787b1
[ "MIT" ]
null
null
null
import 'dart:ui'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:movies/info.dart'; import 'movie_pictures.dart'; final List<Info> infoList=Info.getinfo(); class MovieDetails extends StatelessWidget { final List<Info> infoList=Info.getinfo(); MovieDetails({ Key? key, required this.index}) : super(key: key); final int index; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.blueGrey.shade800, appBar: AppBar( title:Text("Movies"), backgroundColor: Colors.blueGrey.shade900, ), body: ListView( children:[ Thumbnail(thumbnail: infoList[index].images[1],index: index,), Row( children: [ Expanded(child:HeaderWithPoster(index:index)), ], ), Line(), Row( children: [ Expanded(child: Details(index: index)), ], ), Line(), Images(posters: infoList[index].images,index1: index,), ] ), ); } } class Thumbnail extends StatelessWidget { final String thumbnail; final int index; const Thumbnail({ Key? key, required this.thumbnail, required this.index }) : super(key: key); @override Widget build(BuildContext context) { return Stack( alignment: Alignment.bottomCenter, children: [ Stack( alignment: Alignment.center, children: [ Container( width:MediaQuery.of(context).size.width, height:180, decoration: BoxDecoration( image: DecorationImage(image: NetworkImage(thumbnail), fit: BoxFit.cover) ), ), // GestureDetector( onTap:() { button(index); } , child:Icon(Icons.play_circle_outline, size:60,color: Colors.white, ) , ) // IconButton(onPressed: button(index), icon: Icon(Icons.play_circle_outline,size: 60,color: Colors.white,)) ], ), Container( decoration:BoxDecoration( gradient:LinearGradient(colors: [Color(0x00000000),Color(0xff000000)], begin: Alignment.topCenter, end: Alignment.bottomCenter ) ), height: 40, ) ], ); } button(int index) async { var url=infoList[index].play; if(await canLaunch(url)) await launch(url); } } class HeaderWithPoster extends StatelessWidget { final index; const HeaderWithPoster({ Key? key, this.index }) : super(key: key); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(horizontal:8.0), child: Row( children: [ Padding( padding: const EdgeInsets.only(top:8.0), child: Poster(poster:infoList[index].images[0].toString()), ), SizedBox( width:16 ), Expanded( child: Padding( padding: const EdgeInsets.only(top:10.0), child: Header(index:index), ) ) ], ), ); } } class Header extends StatelessWidget { final index; const Header({ Key? key, this.index }) : super(key: key); @override Widget build(BuildContext context) { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text("${infoList[index].title}", style: TextStyle( fontSize:32, fontWeight: FontWeight.w600 , color: Colors.white ), ), Line(), Padding( padding: const EdgeInsets.all(8.0), child: Text("${infoList[index].year} . ${infoList[index].genre}".toUpperCase(), style: TextStyle( fontWeight: FontWeight.w600, color: Colors.amberAccent.shade200 ), ), ), Text.rich( TextSpan( style: TextStyle( fontSize: 12, fontWeight: FontWeight.w400 ), children: [ TextSpan( text:infoList[index].plot, style: TextStyle( fontWeight: FontWeight.w400, fontSize: 14, color: Colors.grey.shade400 ) ), ] )), InkWell( child: Text("More...", style: TextStyle(color: Colors.amberAccent.shade200, fontSize: 14 ) ), onTap: () => {launch(infoList[index].more), } ) ], ); } } class Poster extends StatelessWidget { final String poster; const Poster({ Key? key, required this.poster }) : super(key: key); @override Widget build(BuildContext context) { var borderRadius=BorderRadius.all(Radius.circular(10)); return ClipRRect( borderRadius: borderRadius, child: Container( width: MediaQuery.of(context).size.width/4, height: 155, decoration: BoxDecoration( image: DecorationImage(image: NetworkImage(poster), fit: BoxFit.fill, ) ), ) ); } } class Details extends StatelessWidget { final int index; const Details({ Key? key, required this.index }) : super(key: key); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(horizontal:18.0), child: Column( children:[Padding( padding: const EdgeInsets.all(8.0), child: MovieField(field:"Cast",value:infoList[index].actors), ), Padding( padding: const EdgeInsets.all(8.0), child: MovieField(field:"Director",value:infoList[index].director), ), Padding( padding: const EdgeInsets.all(8.0), child: MovieField(field:"Awards",value:infoList[index].awards), ) ] ), ); } } class MovieField extends StatelessWidget { final String field; final String value; const MovieField({ Key? key, required this.field, required this.value }) : super(key: key); @override Widget build(BuildContext context) { return Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ Expanded(child: Text("$field : ", style: TextStyle( fontWeight: FontWeight.w600, color: Colors.amberAccent.shade200), ), ), Expanded(child: Text("$value", style: TextStyle( fontWeight: FontWeight.w400, fontSize: 14, color: Colors.white ), ) ) ], ); } } class Line extends StatelessWidget { const Line({ Key? key }) : super(key: key); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(horizontal: 20.0,vertical: 10), child: Container( height: 1, color: Colors.white, ), ); } } class Images extends StatelessWidget { final List <String> posters ; int index1; Images({ Key? key, required this.posters, required this.index1 }) : super(key: key); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(vertical:8.0,horizontal: 4), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Padding( padding: const EdgeInsets.all(8.0), child: Text("MORE MOVIE POSTERS...", style: TextStyle( fontWeight: FontWeight.w600, color: Colors.amberAccent.shade200, fontSize: 14 ),), ), Container( decoration: BoxDecoration( border: Border.all(color: Colors.blueGrey.shade900, width: 2, ), borderRadius: BorderRadius.all(Radius.circular(10)), boxShadow: [ BoxShadow( color: Colors.black, blurRadius: 2 ), ], ), height:200, child: ListView.separated( scrollDirection: Axis.horizontal, separatorBuilder:(context,index)=>SizedBox(width:8), itemCount:posters.length, itemBuilder: (context,index)=>ClipRRect( borderRadius:BorderRadius.all(Radius.circular(10)), child: Hero( tag: 'image$index', child: Container( width: MediaQuery.of(context).size.width/2, height: 160, decoration: BoxDecoration( image: DecorationImage(image: NetworkImage(posters[index]), fit: BoxFit.cover ) ), child: GestureDetector( onTap: () { Navigator.push(context, MaterialPageRoute(builder: (context) { return pic(index1:index1,index2:index); })); }, ), ), ), ) ), ), ] ) ); } }
35.763926
120
0.376771
f7737464fa2ef2f746691bb6092e3ac9cb27912b
1,824
tab
SQL
grib/src/main/sources/tablesOld/melbourne_228.tab
tdrwenski/netcdf-java
6dbe7a2300c4873d4e93d04b5200d0c77a18c483
[ "BSD-3-Clause" ]
83
2019-07-04T13:40:24.000Z
2022-03-03T02:25:16.000Z
grib/src/main/sources/tablesOld/melbourne_228.tab
tdrwenski/netcdf-java
6dbe7a2300c4873d4e93d04b5200d0c77a18c483
[ "BSD-3-Clause" ]
655
2019-06-28T15:08:16.000Z
2022-03-29T17:12:46.000Z
grib/src/main/sources/tablesOld/melbourne_228.tab
tdrwenski/netcdf-java
6dbe7a2300c4873d4e93d04b5200d0c77a18c483
[ "BSD-3-Clause" ]
87
2019-07-03T18:17:49.000Z
2022-03-30T01:53:16.000Z
-1:1:0:228 0:var0:undefined 17:dewpt:dew point [K] 47:av_sfc_sw_dif:average surface shortwave diffuse radiation flux [W m-2] 57:accum_evap:accumulated evaporation [kg m-2] 58:accum_evap_sea:accumulated evaporation over open sea [kg m-2] 61:accum_prcp:accumulated precipitation [kg m-2] 115:av_sfc_sw_dir:average surface shortwave direct radiation flux [W m-2] 126:fric_vel:friction velocity [m s-1] 133:spec_hum:specific humidity [kg kg-1] 134:vertical_wnd:vertical velocity [m s-1] 139:height_rho:height U/V or rho surface [m] 142:accum_ls_prcp:accumulative large scale precipitation [kg m-2] 143:accum_conv_prcp:accumulative convective precipitation [kg m-2] 156:topog:topography height [m] 172:lnd_mask:land mask [] 200:av_temp_scrn:average screen level air temperature [K] 202:av_mslp:average mean sea level pressure [Pa] 211:av_netswsfc:average net shortwave radiation at surface [W m-2] 212:av_netlwsfc:average net longwave radiation at surface [W m-2] 213:av_lwsfcdown:average downwards longwave radiation at the surface [W m-2] 214:av_swsfcdown:average downwards shortwave radiation at the surface [W m-2] 215:av_olr:average outgoing longwave radiation [W m-2] 216:av_swirrtop:average incoming shortwave radiation flux [W m-2] 217:av_ttl_cld:average total cloud coverage [] 221:av_lat_hflx:average surface latent heat flux [W m-2] 222:av_sens_hflx:average surface sensible heat flux [W m-2] 224:av_uwnd_strs:average surface zonal wind stress [N m-2] 225:av_vwnd_strs:average surface meridional wind stress [N m-2] 233:av10u:average zonal wind at 10m [m s-1] 234:av10v:average meridional wind at 10m [m s-1] 239:accum_conv_snow:accumulative convective snowfall [kg m-2] 240:accum_ls_snow:accumulative large scale snowfall [kg m-2] 253:av_qsair_scrn:average screen level specific humidit [kg kg-1] 255:var255:undefined
52.114286
77
0.804276
f01e97fde7da87878e9d54736f7cb227db681497
257
py
Python
test/test_encoder.py
mickey9910326/py-asa-loader
75852a4c633f34a67f5de2b2a807d2d40ce423bf
[ "MIT" ]
null
null
null
test/test_encoder.py
mickey9910326/py-asa-loader
75852a4c633f34a67f5de2b2a807d2d40ce423bf
[ "MIT" ]
null
null
null
test/test_encoder.py
mickey9910326/py-asa-loader
75852a4c633f34a67f5de2b2a807d2d40ce423bf
[ "MIT" ]
null
null
null
import conftest from asaprog import pac_encode from asaprog.util import * if __name__ == "__main__": pac = { 'command': asaProgCommand.CHK_DEVICE.value, 'data': b'test' } res = pac_encode(pac) print(res) print(res[-1])
18.357143
51
0.626459
0bd8725706c8e87a0cc6a88a279f82ded6dda743
1,898
ps1
PowerShell
Exchange Online/Block-ConsumerStorageOWA.ps1
jhochwald/Microsoft-365
d422c3a48b9b9a69e90dd93366da23d4e73585e1
[ "Unlicense" ]
1
2021-01-25T20:40:16.000Z
2021-01-25T20:40:16.000Z
Exchange Online/Block-ConsumerStorageOWA.ps1
jhochwald/Microsoft-365
d422c3a48b9b9a69e90dd93366da23d4e73585e1
[ "Unlicense" ]
null
null
null
Exchange Online/Block-ConsumerStorageOWA.ps1
jhochwald/Microsoft-365
d422c3a48b9b9a69e90dd93366da23d4e73585e1
[ "Unlicense" ]
null
null
null
<# Script by Alex Fields, ITProMentor.com Description: This script will block the ability for users to connect to Consumer cloud storage locations via OWA Prerequisites: The tenant will require any Exchange Online plan Connect to Exchange Online via PowerShell using MFA: https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/mfa-connect-to-exchange-online-powershell?view=exchange-ps WARNING: Script provided as-is. Author is not responsible for its use and application. Use at your own risk. #> $MessageColor = 'cyan' $AssessmentColor = 'magenta' $OwaPolicy = Get-OwaMailboxPolicy -Identity OwaMailboxPolicy-Default if ($OwaPolicy.AdditionalStorageProvidersAvailable) { Write-Host Write-Host -ForegroundColor $AssessmentColor -Object 'Connecting consumer storage locations like GoogleDrive and OneDrive (personal) are currently enabled by the default OWA policy' Write-Host $Answer = Read-Host -Prompt 'Do you want to block outside storage locations like GoogleDrive or consumer OneDrive in the default OWA policy? Type Y or N and press Enter to continue' if ($Answer -eq 'y'-or $Answer -eq 'yes') { Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -AdditionalStorageProvidersAvailable $False Write-Host Write-Host -ForegroundColor $MessageColor -Object 'Consumer storage locations like GoogleDrive and OneDrive (personal) are now disabled' } Else { Write-Host Write-Host -ForegroundColor $AssessmentColor -Object 'Consumer storage locations like GoogleDrive and OneDrive (personal) have not been disabled' } } Else { Write-Host Write-Host -ForegroundColor $MessageColor -Object 'Consumer storage locations like GoogleDrive and OneDrive (personal) are already disabled' }
41.26087
185
0.737092
9364ed8ad7baf11c95594b8c6c52f2f5d5e41420
4,566
kt
Kotlin
app/src/main/java/com/example/androiddevchallenge/ui/DogsList.kt
RobinLeflond/android-dev-challenge-compose
e45a38d19daecdddd7ea457da806c7939ca23c45
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/example/androiddevchallenge/ui/DogsList.kt
RobinLeflond/android-dev-challenge-compose
e45a38d19daecdddd7ea457da806c7939ca23c45
[ "Apache-2.0" ]
null
null
null
app/src/main/java/com/example/androiddevchallenge/ui/DogsList.kt
RobinLeflond/android-dev-challenge-compose
e45a38d19daecdddd7ea457da806c7939ca23c45
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2021 The Android Open Source Project * * 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 * * https://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 com.example.androiddevchallenge.ui import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.material.Card import androidx.compose.material.MaterialTheme import androidx.compose.material.Scaffold import androidx.compose.material.Surface import androidx.compose.material.Text import androidx.compose.material.TopAppBar import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.res.painterResource import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import com.example.androiddevchallenge.R import com.example.androiddevchallenge.ui.model.Dog @Composable fun DogsList(navigationViewModel: NavigationViewModel, dogsData: List<Dog>) { Scaffold( topBar = { TopAppBar { Row( modifier = Modifier.fillMaxSize(), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically ) { Image( modifier = Modifier.padding(10.dp), painter = painterResource(R.drawable.app_logo), contentDescription = null ) Text(text = "Puppy adoption app", style = MaterialTheme.typography.h5) Spacer(Modifier.width(40.dp)) } } } ) { LazyColumn { item { Spacer(modifier = Modifier.height(10.dp)) } for (i in dogsData.indices step 2) { val firstDog = dogsData[i] val secondDog = dogsData[i + 1] item { Row(modifier = Modifier.padding(start = 5.dp, end = 5.dp, bottom = 10.dp)) { DogCard(navigationViewModel, firstDog) DogCard(navigationViewModel, secondDog) } } } } } } @Composable fun DogCard(navigationViewModel: NavigationViewModel, dog: Dog) { Card( modifier = Modifier .padding(start = 5.dp, end = 5.dp) .fillMaxWidth(if (dog.id % 2 == 0) 0.5f else 1f) .clickable { navigationViewModel.selectDog(dog.id) } ) { Box( modifier = Modifier .fillMaxWidth() .height(200.dp), contentAlignment = Alignment.BottomCenter ) { Image( painter = painterResource(dog.images[0]), contentDescription = null, // decorative contentScale = ContentScale.Crop, modifier = Modifier.fillMaxSize() ) Surface( modifier = Modifier .height(50.dp), ) { Text( modifier = Modifier .fillMaxWidth() .padding(5.dp), text = dog.specs.name + ": " + dog.title, style = MaterialTheme.typography.subtitle1, textAlign = TextAlign.Center, maxLines = 2, overflow = TextOverflow.Ellipsis ) } } } }
37.42623
96
0.614761
dd85dde2046051ac00cd9ef1c1ae6fe5095f2c04
4,651
php
PHP
resources/views/user/home/register.blade.php
zuogth/php_project_btl
b96364be50ff10ce2963b312d3615bbdba6c8bda
[ "MIT" ]
null
null
null
resources/views/user/home/register.blade.php
zuogth/php_project_btl
b96364be50ff10ce2963b312d3615bbdba6c8bda
[ "MIT" ]
null
null
null
resources/views/user/home/register.blade.php
zuogth/php_project_btl
b96364be50ff10ce2963b312d3615bbdba6c8bda
[ "MIT" ]
null
null
null
@extends('user.main') @section('head') <link rel="stylesheet" href="/user/css/login.css"> @endsection @section('content') <div class="main" > <div class="container"> <div class="l-page-desgin"> <div class="l-detail-page"> <div class="l-themes-login-page"> <h1>Đăng ký</h1></div> <div class="l-themes-register-page"><h1><a href="/user/login">Đăng nhập</a></h1></div> </div> <form method="POST" action="" id="m-form-register-main"> <div class="form-login-input-page"> <div class="l-themes-page"><label for="username">Tài khoản email *</label></div> <input type="text" id="email" placeholder="Nhập email *" name="email"> <div class="modal-errorMessage"> <span class="errorMessage"></span> @error('email') <span style="color: #da0101">{{$message}}</span> @enderror </div> </div> <div class="form-login-input-page"> <div class="l-themes-page"><label for="password">Mật khẩu *</label></div> <input type="password" id="password" placeholder="Nhập mật khẩu *" name="password"> <div class="modal-errorMessage"> <span class="errorMessage"></span> </div> </div> <div class="form-login-input-page"> <div class="l-themes-page"><label for="password">Nhập lại mật khẩu *</label></div> <input type="password" id="repeat_password" placeholder="Nhập mật khẩu *" name="repeat_password"> <div class="modal-errorMessage"> <span class="errorMessage"></span> @error('repeat_password') <span style="color: #da0101">{{$message}}</span> @enderror </div> </div> <div class="form-login-input-page"> <div class="l-themes-page"><label for="fullname">Họ và tên *</label></div> <input type="text" id="fullname" placeholder="Nhập họ và tên *" name="fullname"> <div class="modal-errorMessage"> <span class="errorMessage"></span> </div> </div> <div class="form-login-input-page"> <div class="l-themes-page"><label for="phone">Số điện thoại *</label></div> <input type="number" id="phone" placeholder="Nhập số điện *" name="phone"> <div class="modal-errorMessage"> <span class="errorMessage"></span> </div> </div> <div class="l-list-button-page"> <div class="l-button-register-page"> <button type="submit" id="register" class="register">Đăng ký</button> </div> </div> @csrf </form> </div> </div> </div> @endsection @section('footer') <script src="/user/js/validate.js"></script> <script> validation({ form: "#m-form-register-main", error: ".errorMessage", formGroupSelector: '.form-login-input-page', rules: [ validation.isRequired("#password", "Bạn hãy nhập mật khẩu"), validation.isMinLength("#password", min = 6 ,`Số kí tự phải lớn hơn hoặc bằng ${min}`), validation.isRequired("#repeat_password", "Bạn hãy nhập lại mật khẩu"), validation.isPassword_confirm("#repeat_password",()=>{ return document.querySelector('#m-form-register-main #password').value } , "Vui lòng xác nhập lại mật khẩu"), validation.isRequired("#fullname", "Bạn hãy nhập họ và tên"), validation.isRequired("#email", "Bạn hãy nhập email"), validation.isEmail("#email","Trường này phải là email"), validation.isRequired("#phone", "Bạn hãy nhập số điện thoại"), ], onSubmit: function (data) { console.log(data) } }) </script> @endsection
48.447917
121
0.460976
16d1ff46379c79cd9a30b88389f9166c2ca9be67
2,924
tsx
TypeScript
monitorFrontEnd/components/user/User.tsx
kabilJbeli/PfeProjectMonitoring
0e87d3db318e659f6dc8b9363e5deaf4a6ec2fb0
[ "MIT" ]
null
null
null
monitorFrontEnd/components/user/User.tsx
kabilJbeli/PfeProjectMonitoring
0e87d3db318e659f6dc8b9363e5deaf4a6ec2fb0
[ "MIT" ]
null
null
null
monitorFrontEnd/components/user/User.tsx
kabilJbeli/PfeProjectMonitoring
0e87d3db318e659f6dc8b9363e5deaf4a6ec2fb0
[ "MIT" ]
null
null
null
import {getFocusedRouteNameFromRoute, useIsFocused} from "@react-navigation/native"; import {SafeAreaView, Text, View} from "react-native"; import * as React from "react"; import UserManagement from "./UserManagement"; import {createMaterialTopTabNavigator} from "@react-navigation/material-top-tabs"; import {Props} from "../../utils"; import Ionicons from "react-native-vector-icons/Ionicons"; import User from "./AddUser"; import {createStackNavigator} from "@react-navigation/stack"; import {updateCategoryComponent} from "../category/updateCategory"; import {Category} from "../category/Category"; import {updateUserComponent} from "./updateUser"; const Tab = createMaterialTopTabNavigator(); const Stack = createStackNavigator(); export const MainUserStack = (props: any) => { return ( <Stack.Navigator initialRouteName="UserManagement" > <Stack.Screen name="UserManagement" component={UserTabNavigator} {...props} options={{ headerShown: false, }} /> <Stack.Screen name="updateUser" component={updateUserComponent} {...props} options={{ title: 'Update User', presentation: 'card', headerShown: false }} /> </Stack.Navigator> ); } export const UserTabNavigator = ({navigation}: Props) => { return ( <Tab.Navigator initialRouteName="UserManagement" screenOptions={{ tabBarShowLabel: false, tabBarStyle: {backgroundColor: '#262626', height: 25}, tabBarInactiveTintColor: '#fff', tabBarActiveTintColor: '#fff', }}> <Tab.Screen name="UserManagement" component={UserComponent} options={({route}) => ({ tabBarStyle: { display: getTabBarVisibility(route), backgroundColor: '#3e3d3d', }, tabBarLabel: 'User List', tabBarIcon: ({color}) => ( <Ionicons name="ios-medal-outline" color={color} size={25}/> ), })} /> <Tab.Screen name="AddUser" component={User} options={({route}) => ({ tabBarStyle: { display: getTabBarVisibility(route), backgroundColor: '#3e3d3d', }, tabBarLabel: 'Add User', tabBarIcon: ({color}) => ( <Ionicons name="add" color={color} size={25}/> ), })} /> </Tab.Navigator> ); }; const getTabBarVisibility = (route: any) => { const routeName = getFocusedRouteNameFromRoute(route) ?? 'Feed'; if (routeName == 'GameDetails') { return 'none'; } return 'flex'; }; export const UserComponent = (props: any) => { const isFocused = useIsFocused(); return ( <SafeAreaView> <View> <View style={{ height: 150, width: '100%', justifyContent: 'center', alignItems: 'center', backgroundColor: '#da1971' }}> <Text style={{color: '#fff', fontSize: 40, textAlign: 'center'}}> User List</Text> </View> {isFocused ? <UserManagement {...props} /> : <Text>''</Text>}</View> </SafeAreaView> ); };
26.107143
84
0.636457
259765b8499b6bbc1ea13c657f1c735e6421f63b
39,204
sql
SQL
quotes-site/sql/20140223_Gustavo_Seo.sql
chiechelski/yii-free-quotes-website
b5d3330f88239fc0b0903fcd5ce7d3d8a4fb7f01
[ "MIT" ]
null
null
null
quotes-site/sql/20140223_Gustavo_Seo.sql
chiechelski/yii-free-quotes-website
b5d3330f88239fc0b0903fcd5ce7d3d8a4fb7f01
[ "MIT" ]
null
null
null
quotes-site/sql/20140223_Gustavo_Seo.sql
chiechelski/yii-free-quotes-website
b5d3330f88239fc0b0903fcd5ce7d3d8a4fb7f01
[ "MIT" ]
null
null
null
-- SEO Categories ALTER TABLE `dd_category` ADD COLUMN `MetaDescription` varchar(1000) NOT NULL, ADD COLUMN `MetaKeyword` varchar(160) NOT NULL; ALTER TABLE `dd_category` CHANGE COLUMN `MetaDescription` `MetaDescription` varchar(1000) NOT NULL; UPDATE `dd_category` SET `MetaDescription` = '', `MetaKeyword` = 'air conditioning heating, air conditioning and heat, air conditioning services, heat air conditioning service, heat air conditioning maintanance' WHERE Id = 2; UPDATE `dd_category` SET `MetaDescription` = '', `MetaKeyword` = 'architect, house design, architects auckland, interior design, infrastructure architect' WHERE Id = 3; UPDATE `dd_category` SET `MetaDescription` = '', `MetaKeyword` = 'building services, building inspectors' WHERE Id = 4; UPDATE `dd_category` SET `MetaDescription` = '', `MetaKeyword` = 'carpentry, carpenters, carpenter service, find a carpenter, carpentry companies' WHERE Id = 5; UPDATE `dd_category` SET `MetaDescription` = '', `MetaKeyword` = 'ceiling repair, ceiling mouldings, ceiling tiles, ceiling services' WHERE Id = 6; UPDATE `dd_category` SET `MetaDescription` = 'Are you looking for a trusted electrician but do not know who to trust? Tell us the specifics of the electrical job you need and we can provide you with free quotes from local trusted electricians.<br /><br />When you receive the quotes from the electricians - you also receive information from Done & Dusted regarding the electricians’ license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job. <br /><br />Get your electrical problem sorted! Tell us what you need done NOW! ', `MetaKeyword` = 'electricians, electrician services, local electricians, licensed electrician' WHERE Id = 7; UPDATE `dd_category` SET `MetaDescription` = '', `MetaKeyword` = 'fencing, fences, garage doors, security doors, gates and fences' WHERE Id = 8; UPDATE `dd_category` SET `MetaDescription` = 'Do you have a broken a broken window or maybe you just want to replace your old windows? Don’t worry we have got you sorted. Just tell us the specifics of your window or glass you need and we can provide you with free quotes from local trusted Glass and Window experts.<br /><br />When you receive the quotes from the windows and glass experts - you also receive information from Done & Dusted regarding the windows and glass expert license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.', `MetaKeyword` = 'glass, glass repair, glass window repairs, glass and windows' WHERE Id = 9; UPDATE `dd_category` SET `MetaDescription` = 'Are you tired of doing all the repairs around your house by yourselves? Here is the solution to your problem. Just tell us what you need to repair in your home and we will provide you with free quotes from local trusted handyman.<br /><br />When you receive the quotes from the Handyman experts - you also receive information from Done & Dusted regarding the handyman license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 10; UPDATE `dd_category` SET `MetaDescription` = 'Is your house really cold and your heating bills are going up and up? It is probably because you have bad insulation. Contact our friendly Done and Dusted team by giving us the specifics of how big you want your insulation to be. We will provide you with free quotes from local trusted Insulation experts<br /><br />When you receive the quotes from the Insulation experts - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 11; UPDATE `dd_category` SET `MetaDescription` = 'Bored of how your place looks or maybe you are just looking for a change? Just tell the Done and Dusted team about what you want and your budget and we will provide you with free quotes from local trusted Interior Designers.<br /><br />When you receive the quotes from the Interior Designer - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 12; UPDATE `dd_category` SET `MetaDescription` = 'Need to change your locks or you just need some new spare keys? Just tell the Done and Dusted team about what you want and your budget and we will provide you with free quotes from local trusted Locksmith.<br /><br />When you receive the quotes from the Locksmith - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 13; UPDATE `dd_category` SET `MetaDescription` = 'It is time to throw out those old worn out outdoor tables and chairs. Just tell the Done and Dusted team about what you want and your budget and we will provide you with free quotes from local trusted Outdoor Structures.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 14; UPDATE `dd_category` SET `MetaDescription` = 'Are your walls worn out or you just feel they need a change? Just tell the Done and Dusted team about what you want and your budget and we will provide you with free quotes from local trusted Painting and wallpaper experts.<br /><br />When you receive the quotes from the Painting and wallpaper experts - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 16; UPDATE `dd_category` SET `MetaDescription` = 'You must be really annoyed with rats and other really annoying pests running around your home. It is time for some control. Just tell the Done and Dusted team about what you want and your budget and we will provide you with free quotes from local trusted Pest Control.<br /><br />When you receive the quotes from the Pest Control - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 17; UPDATE `dd_category` SET `MetaDescription` = 'Are you building a new home or just need to replace the plastering? Just tell the Done and Dusted team about how big the plastering needs to be and your budget and we will provide you with free quotes from local trusted Plaster experts.<br /><br />When you receive the quotes from the plaster experts - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 18; UPDATE `dd_category` SET `MetaDescription` = 'Are you looking for an experienced plumber? Finding trouble looking for who to trust? Done & Dusted provides you with free quotes from trusted plumbers in your local area. The more detailed your description is - the easier it is for plumbers to give you accurate quotes. We might give you a call if we require more information from you, prior to passing on to local plumbers.<br /><br />When you receive your plumbing quotes all in one place, you also receive information from Done & Dusted regarding the plumbers licences, their experience and their references and/or online reviews. When comparing quotes, make sure that it is a fixed quote; knowing what the plumber will be doing and what exactly you are paying for. Hiring a service provider has never been easier!<br /><br />Get your plumbing problem sorted! Tell us what you need done NOW!', `MetaKeyword` = '' WHERE Id = 19; UPDATE `dd_category` SET `MetaDescription` = 'Moving to a new place or you just want to clear the clutter around your place? Give us the specifics about it and we will provide you with free quotes from local trusted Removals.<br /><br />When you receive the quotes from the Removals experts - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 20; UPDATE `dd_category` SET `MetaDescription` = 'Renovating your home but can’t find any people to help you out? Don’t worry we will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job' WHERE Id = 21; UPDATE `dd_category` SET `MetaDescription` = 'Need to replace your roofing and just a general maintenance for your roof? We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 22; UPDATE `dd_category` SET `MetaDescription` = 'It is time to take out the trash but you don’t know who to call to throw it out? The Done and Dusted team can solve this by finding your the best quotes for rubbish removal. Just tell us what you need to throw away.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 23; UPDATE `dd_category` SET `MetaDescription` = 'Need some security for your party or just alarm systems around your home to be safe from those unexpected moments? We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 24; UPDATE `dd_category` SET `MetaDescription` = 'Are your tiles breaking apart but you can’t find the best quote to replace those? We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 25; UPDATE `dd_category` SET `MetaDescription` = 'Can’t find a welder that can give you what you need for the best price? We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 26; INSERT INTO `dd_category` VALUES (9, 'Glass & Windows', 'glass-and-windows', 1, 'Yes'); INSERT INTO `dd_category` VALUES (10, 'Handyman', 'handyman', 1, 'Yes'); INSERT INTO `dd_category` VALUES (11, 'Insulation', 'insulation', 1, 'Yes'); INSERT INTO `dd_category` VALUES (12, 'Interior Design', 'interior-design', 1, 'Yes'); INSERT INTO `dd_category` VALUES (13, 'Locksmith', 'locksmith', 1, 'Yes'); INSERT INTO `dd_category` VALUES (14, 'Outdoor Structures', 'outdoor-structures', 1, 'Yes'); INSERT INTO `dd_category` VALUES (15, 'Others', 'others', 1, 'Yes'); INSERT INTO `dd_category` VALUES (16, 'Painting & Wallpaper', 'painting-and-wallpaper', 1, 'Yes'); INSERT INTO `dd_category` VALUES (17, 'Pest Control', 'pest-control', 1, 'Yes'); INSERT INTO `dd_category` VALUES (18, 'Plastering', 'plastering', 1, 'Yes'); INSERT INTO `dd_category` VALUES (20, 'Removalist', 'removalist', 1, 'Yes'); INSERT INTO `dd_category` VALUES (21, 'Renovations', 'renovations', 1, 'Yes'); INSERT INTO `dd_category` VALUES (22, 'Roofing', 'roofing', 1, 'Yes'); INSERT INTO `dd_category` VALUES (23, 'Rubbish Removal', 'rubbish-removal', 1, 'Yes'); INSERT INTO `dd_category` VALUES (24, 'Security & Safety', 'security-and-safety', 1, 'Yes'); INSERT INTO `dd_category` VALUES (25, 'Tiler', 'tiler', 1, 'Yes'); INSERT INTO `dd_category` VALUES (26, 'Welding', 'welding', 1, 'Yes'); UPDATE `dd_category` SET `MetaDescription` = 'Having a hard time doing the number crunch with your taxes? We can help you out by finding the accountant you need whether it is for your business or personal. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes from the accountant - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 41; UPDATE `dd_category` SET `MetaDescription` = 'Trying to get someone to help you out with your production control? We can help you out just give us the specifics on what you need and we will provide you with free quotes. It is so easy that you would say why you didn’t think of this before.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 42; UPDATE `dd_category` SET `MetaDescription` = 'Are you trying to send a package somewhere but you can’t find the cheapest quote to send your package? Don’t worry the Done and Dusted team can help you find the cheapest courier company that can send your package where you want. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes from the Courier companies - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 43; UPDATE `dd_category` SET `MetaDescription` = 'Time to get your news published but don’t know how to do that? We can help you out just give us the specifics on what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 45; UPDATE `dd_category` SET `MetaDescription` = 'Do you need legal advice or you just need a lawyer but can’t find a good lawyer that’s cheap? We can help you out just give us the specifics on what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 46; UPDATE `dd_category` SET `MetaDescription` = 'Need supplies for your company but you don’t know where to get them from? We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 47; UPDATE `dd_category` SET `MetaDescription` = 'You need to print a lot of copies for your advertisements but you don’t know any company that is cheap. We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 48; UPDATE `dd_category` SET `MetaDescription` = 'Find a new home or selling your home? But you don’t know a good Real Estate Agent? DON’T PANIC! We got you covered. We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 51; UPDATE `dd_category` SET `MetaDescription` = 'New to the country and or just for a visit but you don’t know the language. We can find you a translator. We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 54; INSERT INTO `dd_category` VALUES (40, 'Business & Consulting', 'business-and-consulting', null, 'Yes'); INSERT INTO `dd_category` VALUES (41, 'Accounting', 'accounting', 40, 'Yes'); INSERT INTO `dd_category` VALUES (42, 'Content Management & Production', 'content-management-production', 40, 'Yes'); INSERT INTO `dd_category` VALUES (43, 'Courier', 'courier', 40, 'Yes'); INSERT INTO `dd_category` VALUES (44, 'Others', 'others-bc', 40, 'Yes'); INSERT INTO `dd_category` VALUES (45, 'Press Support', 'press-support', 40, 'Yes'); INSERT INTO `dd_category` VALUES (46, 'Legal Services', 'legal-services', 40, 'Yes'); INSERT INTO `dd_category` VALUES (47, 'Office Support', 'office-support', 40, 'Yes'); INSERT INTO `dd_category` VALUES (48, 'Printing Services', 'printing-services', 40, 'Yes'); INSERT INTO `dd_category` VALUES (49, 'Professional Services', 'professional-services', 40, 'Yes'); INSERT INTO `dd_category` VALUES (50, 'Property Management', 'property-management', 40, 'Yes'); INSERT INTO `dd_category` VALUES (51, 'Real Estate Agent', 'real-estate-agent', 40, 'Yes'); INSERT INTO `dd_category` VALUES (52, 'Signwriter', 'signwriter', 40, 'Yes'); INSERT INTO `dd_category` VALUES (53, 'Specialised Consulting', 'specialised-consulting', 40, 'Yes'); INSERT INTO `dd_category` VALUES (54, 'Translation', 'translation', 40, 'Yes'); UPDATE `dd_category` SET `MetaDescription` = 'You have an event coming up but don’t know who to cater from? Don’t worry; the done and dusted team got you sorted. We can find you a Catering company. We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 71; UPDATE `dd_category` SET `MetaDescription` = 'What is a party without any music to liven up the mood? We will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 72; UPDATE `dd_category` SET `MetaDescription` = 'Whether it’s a bouncing castle for your 5 year old or magicians for your party, we will take care of the hard work in finding them. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 73; UPDATE `dd_category` SET `MetaDescription` = 'Need help in organising your party or you don’t know how to throw a party and you need help. Don’t panic done and dusted is here to help for that. Tell us the specifics of the party you want and we can provide you with free quotes from local trusted event planners.<br /><br />When you receive the quotes from the event planners - you also receive information from Done & Dusted regarding the electricians’ license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 75; UPDATE `dd_category` SET `MetaDescription` = 'Capture every moment of your event by having a photographer or a videographer. Just give us your budget and we will take care of the hard work in finding them by providing you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 76; UPDATE `dd_category` SET `MetaDescription` = 'You have to have a venue to throw any type of event. But you don’t know any places that are cheap? That’s okay; the done and dusted team has got you sorted. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 78; UPDATE `dd_category` SET `MetaDescription` = 'The time has come in your life where you and your loved one are getting married. But you don’t know how to do it and you need help doing the wedding through till the reception. Here at done and dusted we are experts at this. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 79; INSERT INTO `dd_category` VALUES (70, 'Events', 'events', null, 'Yes'); INSERT INTO `dd_category` VALUES (71, 'Catering', 'catering', 70, 'Yes'); INSERT INTO `dd_category` VALUES (72, 'Music, Bands, DJ', 'music-bands-dj', 70, 'Yes'); INSERT INTO `dd_category` VALUES (73, 'Party Entertainment', 'party-entertainment', 70, 'Yes'); INSERT INTO `dd_category` VALUES (74, 'Others', 'others-events', 70, 'Yes'); INSERT INTO `dd_category` VALUES (75, 'Party & Event Planning', 'party-and-event-planning', 70, 'Yes'); INSERT INTO `dd_category` VALUES (76, 'Photography and Videography', 'photography-and-videography', 70, 'Yes'); INSERT INTO `dd_category` VALUES (77, 'Security', 'security', 70, 'Yes'); INSERT INTO `dd_category` VALUES (78, 'Venues', 'venues', 70, 'Yes'); INSERT INTO `dd_category` VALUES (79, 'Wedding Services', 'wedding-services', 70, 'Yes'); UPDATE `dd_category` SET `MetaDescription` = 'You worked so hard that you pulled your muscles but can’t find a cheap chiropractor to help you out. Don’t worry Done & Dusted can help you out. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 92; UPDATE `dd_category` SET `MetaDescription` = 'Can’t find a tailor that can help you fit into you cloths? Don’t worry Done & Dusted can help you out. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 93; UPDATE `dd_category` SET `MetaDescription` = 'The special occasion is here but you can’t find a cheap hairdresser to do your hair. IT’S OKAY. DON’T PANIC! Just tell us what it is for and how you want your hair to be done and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 95; UPDATE `dd_category` SET `MetaDescription` = 'Make your nails stand out from others. Just tell the Done & Dusted team about the specifications and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 96; UPDATE `dd_category` SET `MetaDescription` = 'The special occasion is here but you can’t find a cheap makeup artist to do what you want. IT’S OKAY. DON’T PANIC! Just tell us what it is for and how you want your hair to be done and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 97; UPDATE `dd_category` SET `MetaDescription` = 'Relax your body by getting a massage. But you don’t know any places that are cheap? That’s okay; the done and dusted team has got you sorted. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 98; UPDATE `dd_category` SET `MetaDescription` = 'It is time to lose that winter fat and get into shape for the summer. Just tell us what you need and we will provide you with free quotes of the best cheap trainers that can help you out.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 99; UPDATE `dd_category` SET `MetaDescription` = 'Don’t know any physiotherapist that is cheap to help you out with your problem? Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 100; UPDATE `dd_category` SET `MetaDescription` = 'Show your body to the world during summer by waxing it. Make it look clean and feel good about yourself. But you don’t know any place that does it cheap. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 101; UPDATE `dd_category` SET `MetaDescription` = 'Can’t find a nutritionist that is cheap? Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 102; INSERT INTO `dd_category` VALUES (90, 'Health & Beauty', 'health-and-beauty', null, 'Yes'); INSERT INTO `dd_category` VALUES (91, 'Alternative Services', 'alternative-services', 90, 'Yes'); INSERT INTO `dd_category` VALUES (92, 'Chiropractor/ Osteopath', 'chiropractor-osteopath', 90, 'Yes'); INSERT INTO `dd_category` VALUES (93, 'Clothes Alteration', 'clothes-alteration', 90, 'Yes'); INSERT INTO `dd_category` VALUES (94, 'Esoteric', 'esoteric', 90, 'Yes'); INSERT INTO `dd_category` VALUES (95, 'Hairdresser', 'hairdresser', 90, 'Yes'); INSERT INTO `dd_category` VALUES (96, 'Manicure & Pedicure', 'manicure-and-pedicure', 90, 'Yes'); INSERT INTO `dd_category` VALUES (97, 'Makeup Artist ', 'makeup-artist', 90, 'Yes'); INSERT INTO `dd_category` VALUES (98, 'Massage ', 'massage', 90, 'Yes'); INSERT INTO `dd_category` VALUES (99, 'Personal Trainer', 'personal-trainer', 90, 'Yes'); INSERT INTO `dd_category` VALUES (100, 'Physiotherapy', 'physiotherapy', 90, 'Yes'); INSERT INTO `dd_category` VALUES (101, 'Waxing', 'waxing', 90, 'Yes'); INSERT INTO `dd_category` VALUES (102, 'Nutritionist', 'nutritionist', 90, 'Yes'); UPDATE `dd_category` SET `MetaDescription` = 'Your computer has a problem and a virus issue? Just tell us what you need and we will provide you with free quotes of the best cheap computer repair experts that can help you out.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 122; UPDATE `dd_category` SET `MetaDescription` = 'You need to design your computer logo or adverts to put up. But you don’t now where to find a graphic designer. Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 123; UPDATE `dd_category` SET `MetaDescription` = 'Need to make your company mobile app but cant find an app developer that is cheap to help you out? Just tell us what you need and we will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 124; UPDATE `dd_category` SET `MetaDescription` = 'Having problems with your phone or it just doesn’t work at all? Tell the Done & Dusted the problem and we will provide you free quotes of phone repair experts in your area.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 126; UPDATE `dd_category` SET `MetaDescription` = 'Expand your company business by putting it on the web. Tell the Done & Dusted the problem and we will provide you free quotes of Web Developers in your area.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 127; INSERT INTO `dd_category` VALUES (120, 'Computer and Technology', 'computer-and-technology', null, 'Yes'); INSERT INTO `dd_category` VALUES (121 'Audio & Video Production', 'audio-and-video-production', 120, 'Yes'); INSERT INTO `dd_category` VALUES (122, 'Computer Repair', 'computer-repair', 120, 'Yes'); INSERT INTO `dd_category` VALUES (123, 'Graphic Design ', 'graphic-design', 120, 'Yes'); INSERT INTO `dd_category` VALUES (124, 'Mobile Apps ', 'mobile-apps', 120, 'Yes'); INSERT INTO `dd_category` VALUES (125, 'Online Marketing ', 'online-marketing', 120, 'Yes'); INSERT INTO `dd_category` VALUES (126, 'Phone Systems', 'phone-systems', 120, 'Yes'); INSERT INTO `dd_category` VALUES (127, 'Web Services', 'web-services', 120, 'Yes'); UPDATE `dd_category` SET `MetaDescription` = 'Need help cleaning your place but you don’t have any time because you’re always super busy? Tell the Done & Dusted the problem and we will provide you free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 141; UPDATE `dd_category` SET `MetaDescription` = 'Training your dog is the hardest thing to do especially if they don’t want to listen to you. The Done & Dusted team can help you find a dog trainer that can help you and your dog. We will provide you with free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 142; UPDATE `dd_category` SET `MetaDescription` = 'Your dog needs to walk everyday but you just don’t have enough time because you’re always super busy? Tell the Done & Dusted the problem and we will provide you free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 143; UPDATE `dd_category` SET `MetaDescription` = 'Need an extra hand in your gardening? Tell the Done & Dusted your specifications and we will provide you free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 144; UPDATE `dd_category` SET `MetaDescription` = 'You are going for a holiday but you don’t know any place to keep your pet while you are gone. Tell the Done & Dusted your specifications and we will provide you free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 147; UPDATE `dd_category` SET `MetaDescription` = 'Your pet needs grooming just like us but you just don’t have enough time or just don’t know how to do it. That’s okay call in the experts. Tell the Done & Dusted your specifications and we will provide you free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 148; UPDATE `dd_category` SET `MetaDescription` = 'Need a pool or a spa in your home but don\'t know any place to find a cheap company that will provide you with a cheap yet a really good pool or spa. Tell the Done & Dusted your specifications and we will provide you free quotes.<br /><br />When you receive the quotes - you also receive information from Done & Dusted regarding their license, their experience, references and/or online reviews. With all this information in one place, it becomes easy to make a quick decision on who to hire for your job.' WHERE Id = 150; INSERT INTO `dd_category` VALUES (140, 'Home/Family & Pets', 'home-family-and-pets', null, 'Yes'); INSERT INTO `dd_category` VALUES (141, 'Cleaning', 'cleaning', 140, 'Yes'); INSERT INTO `dd_category` VALUES (142, 'Dog Training', 'dog-training', 140, 'Yes'); INSERT INTO `dd_category` VALUES (143, 'Dog Walker', 'dog-walker', 140, 'Yes'); INSERT INTO `dd_category` VALUES (144, 'Gardening', 'gardening', 140, 'Yes'); INSERT INTO `dd_category` VALUES (145, 'Home Appliances', 'home-appliances', 140, 'Yes'); INSERT INTO `dd_category` VALUES (146, 'Landscaping', 'landscaping', 140, 'Yes'); INSERT INTO `dd_category` VALUES (147, 'Pet Boarding', 'pet-boarding', 140, 'Yes'); INSERT INTO `dd_category` VALUES (148, 'Pet Grooming', 'pet-grooming', 140, 'Yes'); INSERT INTO `dd_category` VALUES (149, 'Pet Sitting', 'pet-sitting', 140, 'Yes'); INSERT INTO `dd_category` VALUES (150, 'Pool & Spa', 'pool-and-spa', 140, 'Yes');
182.344186
912
0.762779
e314ab3e74f51de8030f9471e79389cf00a059d2
2,415
kt
Kotlin
src/main/kotlin/uk/co/osiris/server/security/CordaSecurityConfig.kt
AdrianChallinorOsiris/Corda-Spring-Security-Starter
3381dbb559e7fe2ce37b18e93a73fd89ba064baf
[ "Apache-2.0" ]
null
null
null
src/main/kotlin/uk/co/osiris/server/security/CordaSecurityConfig.kt
AdrianChallinorOsiris/Corda-Spring-Security-Starter
3381dbb559e7fe2ce37b18e93a73fd89ba064baf
[ "Apache-2.0" ]
null
null
null
src/main/kotlin/uk/co/osiris/server/security/CordaSecurityConfig.kt
AdrianChallinorOsiris/Corda-Spring-Security-Starter
3381dbb559e7fe2ce37b18e93a73fd89ba064baf
[ "Apache-2.0" ]
null
null
null
package uk.co.osiris.server.security import CordaUserDetailsAuthenticationProvider import org.springframework.beans.factory.annotation.Autowired import org.springframework.context.annotation.Configuration import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder import org.springframework.security.config.annotation.web.builders.HttpSecurity import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter import org.springframework.security.crypto.password.NoOpPasswordEncoder import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter @Configuration @EnableWebSecurity open class CordaSecurityConfig(private val cordaUserDetailsService: CordaUserDetailsService) : WebSecurityConfigurerAdapter() { @Throws(Exception::class) override fun configure(http: HttpSecurity) { http .addFilterBefore(authenticationFilter(), UsernamePasswordAuthenticationFilter::class.java) .authorizeRequests() .antMatchers("/css/**", "/index", "/home").permitAll() .anyRequest().authenticated() .and() .formLogin() .loginPage("/login") .permitAll() .and() .logout() .logoutUrl("/logout") .logoutSuccessHandler(logoutSuccessHandler()) } private fun authenticationFilter(): CordaAuthenticationFilter { val filter = CordaAuthenticationFilter() filter.setAuthenticationManager(authenticationManagerBean()) filter.setAuthenticationFailureHandler(failureHandler()) return filter } @Autowired fun configureGlobal(auth: AuthenticationManagerBuilder) = auth.authenticationProvider(authProvider()) fun authProvider() = CordaUserDetailsAuthenticationProvider(passwordEncoder(), cordaUserDetailsService) fun failureHandler() = SimpleUrlAuthenticationFailureHandler("/login?error=true") /** * We KNOW ths is not secure, but we need the password in plain so we can later pass it to CORDA. */ fun passwordEncoder() = NoOpPasswordEncoder.getInstance() }
42.368421
127
0.744513
c667743b0f2101c3bf91d220824fbd8f814cb32c
479
swift
Swift
Shared/Extensions/NumberFormatter.swift
carlos-chaguendo/gastos-ios-app
55fb3ec0be2f5f74515cb1f11423569113e94e8f
[ "OLDAP-2.5", "OLDAP-2.4" ]
null
null
null
Shared/Extensions/NumberFormatter.swift
carlos-chaguendo/gastos-ios-app
55fb3ec0be2f5f74515cb1f11423569113e94e8f
[ "OLDAP-2.5", "OLDAP-2.4" ]
null
null
null
Shared/Extensions/NumberFormatter.swift
carlos-chaguendo/gastos-ios-app
55fb3ec0be2f5f74515cb1f11423569113e94e8f
[ "OLDAP-2.5", "OLDAP-2.4" ]
null
null
null
// // NumberFormatter.swift // Gastos // // Created by Carlos Andres Chaguendo Sanchez on 12/03/21. // import Foundation import SwiftUI extension NumberFormatter { public static var currency: NumberFormatter = { let formatter = NumberFormatter() formatter.numberStyle = .currency formatter.minimumFractionDigits = 0 formatter.maximumFractionDigits = 2 formatter.generatesDecimalNumbers = true return formatter }() }
20.826087
59
0.688935
bf69a1ed783271ebeffdada0c6c4ee01e75b85b6
1,699
dart
Dart
lib/ui/widgets/linking_scenario_selector.dart
mojaloop/contrib-pisp-demo-ui
159e00af982d4cdc217d5539ab4897cb7dd9bb90
[ "Apache-2.0" ]
8
2020-07-02T08:42:28.000Z
2021-05-06T11:03:35.000Z
lib/ui/widgets/linking_scenario_selector.dart
mojaloop/contrib-pisp-demo-ui
159e00af982d4cdc217d5539ab4897cb7dd9bb90
[ "Apache-2.0" ]
18
2020-07-01T11:46:49.000Z
2021-05-06T10:59:02.000Z
lib/ui/widgets/linking_scenario_selector.dart
jgeewax/pisp-demo-app-flutter
159e00af982d4cdc217d5539ab4897cb7dd9bb90
[ "Apache-2.0" ]
5
2020-08-14T06:19:08.000Z
2021-05-08T15:20:55.000Z
import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:pispapp/models/auxiliary_user_info.dart'; class LinkingScenarioSelector extends StatefulWidget { LinkingScenarioSelector({this.onUpdate, this.initialValue}); final LiveSwitchLinkingScenario initialValue; final void Function(LiveSwitchLinkingScenario) onUpdate; @override _LinkingScenarioSelectorState createState() => _LinkingScenarioSelectorState( onUpdate: onUpdate, initialValue: initialValue); } class _LinkingScenarioSelectorState extends State<LinkingScenarioSelector> { _LinkingScenarioSelectorState({this.onUpdate, this.initialValue}); final LiveSwitchLinkingScenario initialValue; LiveSwitchLinkingScenario currentValue; final void Function(LiveSwitchLinkingScenario) onUpdate; @override Widget build(BuildContext context) { currentValue ??= initialValue; return DropdownButton<LiveSwitchLinkingScenario>( icon: const Icon(Icons.arrow_downward), iconSize: 24, elevation: 16, style: const TextStyle(color: Colors.blueGrey), underline: Container( height: 2, color: Colors.blueAccent, ), value: currentValue, onChanged: (LiveSwitchLinkingScenario newValue) { setState(() { currentValue = newValue; }); currentValue = newValue; onUpdate(currentValue); }, items: LiveSwitchLinkingScenario.values .map((LiveSwitchLinkingScenario value) { return DropdownMenuItem<LiveSwitchLinkingScenario>( value: value, child: Text(value.toJsonString())); }).toList()); } }
32.056604
79
0.709241
313e5aee88a82abbce6710804b49452fb804f2be
13,485
sql
SQL
scripts/taxonomy/ensembl_aliases.sql
olgabot/ensembl-compara
f53a82761e4f779263ecc2a6ffce5337a992bcf2
[ "Apache-2.0" ]
null
null
null
scripts/taxonomy/ensembl_aliases.sql
olgabot/ensembl-compara
f53a82761e4f779263ecc2a6ffce5337a992bcf2
[ "Apache-2.0" ]
null
null
null
scripts/taxonomy/ensembl_aliases.sql
olgabot/ensembl-compara
f53a82761e4f779263ecc2a6ffce5337a992bcf2
[ "Apache-2.0" ]
null
null
null
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2019] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- Internal nodes for the GeneTrees SET @this_taxon_id=33553; SET @this_value='Squirrels and Old World rodents'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=39107; SET @this_value='Old World rodents'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=186625; SET @this_value='Teleost fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=207598; SET @this_value='Hominines'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=311790; SET @this_value='African mammals'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=314145; SET @this_value='Laurasiatherian mammals'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=314146; SET @this_value='Primates and Rodents'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=376911; SET @this_value='Wet nose lemurs'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=7718; SET @this_value='Ciona sea squirts'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=9526; SET @this_value='Apes and Old World monkeys'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=9975; SET @this_value='Rabbits, Hares and Pikas'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=32525; SET @this_value='Marsupials and Placental mammals'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=33154; SET @this_value='Animals and Fungi'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=33213; SET @this_value='Bilateral animals'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=376913; SET @this_value='Dry-nosed primates'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=91561; SET @this_value='Cetaceans and Even-toed ungulates'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=8825; SET @this_value='Birds'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=32561; SET @this_value='Reptiles and birds'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=9348; SET @this_value='Xenarthran mammals'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=314293; SET @this_value='Simians'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=379584; SET @this_value='Caniforms'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=8287; SET @this_value='Lobe-finned fish'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=1489913; SET @this_value='Silverside fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; -- <Added for rel.73> SET @this_taxon_id=9126; SET @this_value='Perching birds'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; -- </Added for rel.73> -- <rel.74> SET @this_taxon_id=186626; SET @this_value='Teleost fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=9895; SET @this_value='Bovids'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=41665; SET @this_value='Ray-finned fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=1329799; SET @this_value='Birds and turtles'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; -- </rel.74> -- <rel.75> SET @this_taxon_id=1206794; SET @this_value='Arthropods and nematodes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; -- </rel.75> -- <rel.76> SET @this_taxon_id=9528; SET @this_value='Old World monkeys'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=586240; SET @this_value='Live-bearing aquarium fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=123368; SET @this_value='Teleost fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=1489872; SET @this_value='Teleost fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=1489922; SET @this_value='Teleost fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=1489908; SET @this_value='Teleost fishes'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; -- </rel.76> -- <rel.79> SET @this_taxon_id=1437010; SET @this_value='Placental mammals'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; SET @this_taxon_id=1549675; SET @this_value='Fowls'; SET @this_name_class='ensembl alias name'; insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; -- </rel.79> -- -- Use these to ADD new internal node aliases -- SET @this_taxon_id=; -- SET @this_value=''; -- SET @this_name_class='ensembl alias name'; -- insert into ncbi_taxa_name select @this_taxon_id,@this_value,@this_name_class from ncbi_taxa_name WHERE taxon_id=@this_taxon_id and name_class=@this_name_class having count(*)=0; /* The following query will show entries that are in ncbi_taxa_name but not in ncbi_taxa_node This can happen when nodes have been deprecated in the NCBI taxonomy database but haven't been removed from this file. So if the query below displays any entry, you may need to remove the corresponding entry in ncbi_taxa_name, in this file and make sure that your code doesn't rely on the deprecated taxon. Sending a mail to the Ensembl or Ensembl Compara teams may also be a good idea. */ SELECT "ncbi_taxa_name entries that does not correspond with ncbi_taxa_nodes:" AS ""; SELECT "If something is listed below, remove the entry in ncbi_taxa_name, remove the corresponding entries in ensembl_aliases.sql and make sure your code does not rely on the deprecated node" AS ""; SELECT * FROM ncbi_taxa_name WHERE NOT EXISTS (SELECT NULL FROM ncbi_taxa_node WHERE ncbi_taxa_node.taxon_id = ncbi_taxa_name.taxon_id); /* The following query will show the taxa that have a display name defined in both this file and the database. This can happen if the display name has been added to the NCBI taxonomy database. If the names match or if the name defined in the NCBI taxonomy database is better, remove the "ensembl alias name" entry from both this file and the database. */ SELECT "taxon_ids with multiple display names:" AS ""; SELECT "If something is listed below, compare the names and remove the ensembl one if the NCBI one is better" AS ""; SELECT * FROM ncbi_taxa_name n1 JOIN ncbi_taxa_name n2 USING (taxon_id) WHERE n1.name_class = "ensembl alias name" AND n2.name_class IN ("genbank common name", "blast name", "common name");
53.090551
198
0.809566
d6ad25b7f304e6411ba42e02be0af214658a6d65
61
sql
SQL
microservicio/infraestructura/src/main/resources/sql/descuento/listar.sql
lcleonardo/comida-rapida
00d2651ebedfd3cf2be72001619a7840a81ce5d3
[ "Apache-2.0" ]
null
null
null
microservicio/infraestructura/src/main/resources/sql/descuento/listar.sql
lcleonardo/comida-rapida
00d2651ebedfd3cf2be72001619a7840a81ce5d3
[ "Apache-2.0" ]
1
2021-08-19T12:54:01.000Z
2021-08-19T12:57:43.000Z
microservicio/infraestructura/src/main/resources/sql/descuento/listar.sql
lcleonardo/comida-rapida
00d2651ebedfd3cf2be72001619a7840a81ce5d3
[ "Apache-2.0" ]
null
null
null
SELECT ID, FECHA, PORCENTAJE FROM DESCUENTO ORDER BY FECHA
30.5
43
0.786885
f328d027a7b156bdf64d918b752874fa8d6ef57d
2,388
dart
Dart
test/h5pay_test.dart
acniray/h5pay-flutter
99c87e5686db9ba069acdb85ab77bd5b37b8943b
[ "Apache-2.0" ]
null
null
null
test/h5pay_test.dart
acniray/h5pay-flutter
99c87e5686db9ba069acdb85ab77bd5b37b8943b
[ "Apache-2.0" ]
null
null
null
test/h5pay_test.dart
acniray/h5pay-flutter
99c87e5686db9ba069acdb85ab77bd5b37b8943b
[ "Apache-2.0" ]
null
null
null
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:h5pay/h5pay.dart'; import 'package:h5pay/src/h5pay_channel.dart'; void main() { const MethodChannel channel = MethodChannel('h5pay'); TestWidgetsFlutterBinding.ensureInitialized(); setUp(() { channel.setMockMethodCallHandler((MethodCall methodCall) async { expect(methodCall.method, 'launchPaymentUrl'); await Future.delayed(Duration(seconds: 1)); return H5PayChannel.codeSuccess; }); }); tearDown(() { channel.setMockMethodCallHandler(null); }); testWidgets('H5PayWidget test', (WidgetTester tester) async { await tester.pumpWidget( MaterialApp( home: Scaffold( body: H5PayWidget( getPaymentUrl: () async => 'https://baidu.com', verifyResult: () async => Future.delayed(Duration(milliseconds: 500), () => true), builder: (context, status, controller) { print('Current payment status: ' + status.toString()); return FlatButton( onPressed: controller.launch, child: Text(status.toString()), ); }, ), ), ), ); Finder findText(PaymentStatus status) => find.text(status.toString()); void verifyStatus(PaymentStatus status) { expect(findText(status), findsOneWidget); } Future changeAppLifecycleState(AppLifecycleState state) async { return ServicesBinding.instance.defaultBinaryMessenger .handlePlatformMessage( 'flutter/lifecycle', const StringCodec().encodeMessage(state.toString()), (_) {}, ); } verifyStatus(PaymentStatus.idle); await tester.tap(findText(PaymentStatus.idle)); await tester.pump(); verifyStatus(PaymentStatus.gettingPaymentUrl); await tester.pump(new Duration(seconds: 1)); verifyStatus(PaymentStatus.jumping); await changeAppLifecycleState(AppLifecycleState.inactive); await tester.pump(); await changeAppLifecycleState(AppLifecycleState.resumed); await tester.pump(); verifyStatus(PaymentStatus.verifying); await tester.pump(new Duration(milliseconds: 500)); verifyStatus(PaymentStatus.success); await tester.pump(new Duration(seconds: 5)); }); }
31.421053
74
0.659548
6cb97c77e33a4657efba8a743cd12da52194cbda
3,320
ps1
PowerShell
Domain HTML Status Scanner v1.ps1
miruthde/Domain-HTML-Status-Scanner
df826e47b5e48155a9ec4aa59e64d99ccd9d31ca
[ "MIT" ]
null
null
null
Domain HTML Status Scanner v1.ps1
miruthde/Domain-HTML-Status-Scanner
df826e47b5e48155a9ec4aa59e64d99ccd9d31ca
[ "MIT" ]
null
null
null
Domain HTML Status Scanner v1.ps1
miruthde/Domain-HTML-Status-Scanner
df826e47b5e48155a9ec4aa59e64d99ccd9d31ca
[ "MIT" ]
null
null
null
##[Ps1 To Exe] ## ##NcDBCIWOCzWE8pGP3wFk4Fn9fnwkbMyaqvivwYiy+tbIvjbSXZUEdWFFuhroBV+oStEdUfBbpMIcBH0= ##NcDBCIWOCzWE8pGP3wFk4Fn9fnwkbMyaqvivwYiy+tbIvjbSXZUEdUN4hD3wDVipF+YKQZU= ##Kd3HDZOFADWE8uO1 ##Nc3NCtDXTlaDjofG5iZk2V/hQGEqfYuTvL+pwb2Y8P3ityrYTYkoTVt6lyDySVm4XvsBQeccscMEWxpkJvEEgg== ##Kd3HFJGZHWLWoLaVvnQnhQ== ##LM/RF4eFHHGZ7/K1 ##K8rLFtDXTiW5 ##OsHQCZGeTiiZ4tI= ##OcrLFtDXTiW5 ##LM/BD5WYTiiZ4tI= ##McvWDJ+OTiiZ4tI= ##OMvOC56PFnzN8u+Vs1Q= ##M9jHFoeYB2Hc8u+Vs1Q= ##PdrWFpmIG2HcofKIo2QX ##OMfRFJyLFzWE8uK1 ##KsfMAp/KUzWI0g== ##OsfOAYaPHGbQvbyVvnQmqxuO ##LNzNAIWJGmPcoKHc7Do3uAuO ##LNzNAIWJGnvYv7eVvnRT6kbvS2ZrRvG2lfaU0ICo6vmsiCbYR5QRWzQ= ##M9zLA5mED3nfu77Q7TV64AuzAgg= ##NcDWAYKED3nfu77Q7TV64AuzAgg= ##OMvRB4KDHmHQvbyVvnQX ##P8HPFJGEFzWE8r/c8SFj7QXqRwg= ##KNzDAJWHD2fS8u+Vgw== ##P8HSHYKDCX3N8u+Vgw== ##LNzLEpGeC3fMu77Ro2k3hQ== ##L97HB5mLAnfMu77Ro2k3hQ== ##P8HPCZWEGmaZ7/K1 ##L8/UAdDXTlaDjofG5iZk2V/hQGEqfYuTvL+pwb2Y+vnnryrJdb4bRFV+mGnUMGaRGcEGVOEAp5EiVhwkIfcZoqSBVeKxQMI= ##Kc/BRM3KXhU= ## ## ##fd6a9f26a06ea3bc99616d4851b372ba cls write-host "Icon von https://www.freepik.com" start-sleep -Milliseconds 2000 cls $exit = "n" $Wortliste = "" while($exit -ne "y" -and $exit -ne "j"){ cls $freie_de_domains = "" $Step1 = 1 $Wortliste = read-host "Geben Sie den Pfad zu einer Wort Liste ein" if($Wortliste.Length -ne 0){ $domain = read-host "Welche Domain Endung soll gescannt werden?" $wörter = Get-Content -Path $Wortliste -ErrorAction SilentlyContinue foreach($wort in $wörter){ Write-Host "Step ",$Step1," von ",$wörter.Length Write-host "Prüfe: "($wort+$domain) $timer = 0 $ScriptBlock = { Import-Module "\URLStatusCode.psm1" Get-UrlStatusCode ($args[0]+$domain) -ErrorAction SilentlyContinue } $global:job_Domain_scan = Start-Job -Name "Domain Scan" -ScriptBlock $ScriptBlock -ArgumentList $wort -ErrorAction SilentlyContinue Do{[System.Windows.Forms.Application]::DoEvents() #Write-Host "Step ",$Step1," von ",$wörter.Length "`n" "Prüfe: "($wort+'.de ')$timer Start-Sleep -Milliseconds 1 $timer += 1 #Write-Host "Step ",$Step1," von ",$wörter.Length "`n" "Prüfe: "($wort+'.de ')$timer if($timer -gt 200){ Write-host "Scann nach "($wort+$domain)" abgebrochen." Stop-Job -Name "Domain Scan" -ErrorAction SilentlyContinue } }Until($global:job_Domain_scan.State -eq "Completed" -or $global:job_Domain_scan.State -eq "Stopped" -or $global:job_Domain_scan.State -eq "Failed") Write-host $Wort "Scann " $global:job_Domain_scan.State -ErrorAction SilentlyContinue $statusCode = Receive-Job -Name "Domain Scan" -ErrorAction SilentlyContinue Remove-Job -Name 'Domain Scan' -ErrorAction SilentlyContinue Write-Host " "$statusCode, " ", ($wort+$domain) if($statusCode -eq 0){ $freie_de_domains += ($wort+$domain+ "`n" ) } $Step1 += 1 } } if($freie_de_domains.Length -ne 0){ Write-Host "Scan abgeschlossen. Folgende Domains sind nicht erreichbar:";$freie_de_domains } else{ cls } $exit = Read-Host "Beenden? (y oder j für ja, n für nein)" } cls write-host "Icon von https://www.freepik.com" start-sleep -Milliseconds 2000 cls
35.698925
153
0.696687
e46dbf438b8bd2d29ed18fafe51255317ad4b32c
1,769
swift
Swift
SLAnimation/ViewController.swift
silan-liu/SLAnimation
1ee40f6aa4cac1d0021f00d6b12a7b814210c6e8
[ "MIT" ]
6
2016-06-01T07:02:03.000Z
2018-07-28T02:38:27.000Z
SLAnimation/ViewController.swift
silan-liu/SLAnimation
1ee40f6aa4cac1d0021f00d6b12a7b814210c6e8
[ "MIT" ]
null
null
null
SLAnimation/ViewController.swift
silan-liu/SLAnimation
1ee40f6aa4cac1d0021f00d6b12a7b814210c6e8
[ "MIT" ]
null
null
null
// // ViewController.swift // SLAnimation // // Created by liusilan on 16/5/24. // Copyright © 2016年 YY Inc. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var containerView: UIView! var curSelectIndex: NSInteger = 2 let baseTag: NSInteger = 1000 lazy var animationHelper: SLAnimationHelper = SLAnimationHelper() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func selectItem(sender: AnyObject) { if let btn = sender as? SLAnimationItemView { let index = btn.tag - baseTag - 1 if index == curSelectIndex { return } let preSelectBtn = self.view.viewWithTag(1 + curSelectIndex + baseTag) if let preSelectBtn = preSelectBtn as? SLAnimationItemView { containerView.userInteractionEnabled = false // hide outlayer preSelectBtn.showOutLineLayer(false) // create animation layer animationHelper.createAnimationLayer(containerView, fromPoint: preSelectBtn.center, toPoint: btn.center, radius: btn.radius()) animationHelper.startAnimation({ // show outlayer btn.showOutLineLayer(true) self.containerView.userInteractionEnabled = true }) } curSelectIndex = index } } }
28.532258
142
0.586207
5c4d6b363b921ea460902ec6df348bb582975578
10,105
css
CSS
common_static/admin/css/buttons.css
MAPC/masshealth
3045c453e10dde952f459d81db886c64134b1268
[ "BSD-3-Clause" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
common_static/admin/css/buttons.css
MAPC/masshealth
3045c453e10dde952f459d81db886c64134b1268
[ "BSD-3-Clause" ]
5
2018-04-04T14:31:34.000Z
2020-06-08T07:50:23.000Z
common_static/admin/css/buttons.css
MAPC/masshealth
3045c453e10dde952f459d81db886c64134b1268
[ "BSD-3-Clause" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
/* Submit, Delete & Cancel Buttons ------------------------------------------------------------------------------------------------------ */ input[type=submit], input[type=reset], input[type=button], button { margin-top: 0; margin-bottom: 0; padding: 4px 5px 5px; width: auto; height: 25px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; cursor: pointer; } @media screen and (-webkit-min-device-pixel-ratio:0) { input[type=submit], input[type=reset], input[type=button], button { padding: 5px 8px 4px; } } .submit-row a.submit-link, .submit-row a.delete-link, .submit-row a.cancel-link { display: block; padding: 5px 10px; font-weight: bold; } .submit-row input[type=submit], .submit-row input[type=button] { padding: 5px 10px; height: 28px; font-weight: bold; } input[type=submit], #bookmark-add-cancel, .submit-row a.delete-link:link, .submit-row a.delete-link:visited, .submit-row a.cancel-link:link, .submit-row a.cancel-link:visited, .submit-row input[type=button] { opacity: .6; } input[type=submit]:hover, #bookmark-add-cancel:hover, .submit-row a.delete-link:hover, .submit-row a.delete-link:active, .submit-row a.cancel-link:hover, .submit-row a.cancel-link:active, .submit-row input[type=button]:hover { opacity: 1; } input[type=submit].default { opacity: 1; } /* Icons & Buttons ------------------------------------------------------------------------------------------------------ */ button.fb_show, button.ui-datepicker-trigger, button.ui-timepicker-trigger, button.ui-gAutocomplete-browse, button.ui-gAutoSlugField-toggle, button.ui-gFacelist-browse, a.button, .vDateField + span a, .vTimeField + span a, a.fb_show, a.related-lookup, a.add-another { position: relative; margin-left: -25px; } button.fb_show, button.ui-gAutocomplete-browse, button.ui-gFacelist-browse, button.ui-gAutoSlugField-toggle, button.ui-datepicker-trigger, button.ui-timepicker-trigger, button.fb_show:hover, button.ui-gAutocomplete-browse:hover, button.ui-gFacelist-browse:hover, button.ui-gAutoSlugField-toggle:hover, button.ui-datepicker-trigger:hover, button.ui-timepicker-trigger:hover { width: 25px; background: 50% 50% no-repeat; } button.fb_show[disabled], button.ui-gAutocomplete-browse[disabled], button.ui-gFacelist-browse[disabled], button.ui-gAutoSlugField-toggle[disabled], button.ui-datepicker-trigger[disabled], button.ui-timepicker-trigger[disabled], input[disabled] + a { background: 50% 50% no-repeat !important; opacity: 0.3; cursor: auto !important; } #changelist table button { top: -5px; margin-bottom: -12px; } @media screen and (-webkit-min-device-pixel-ratio:0) { #changelist table button { margin-bottom: -11px; } } /* Hide Images in Templates ........................................... */ a.add-another img, a.related-lookup img { opacity: 0; } a.related-lookup img { display: none; } /* Autocomplete Button ......................................... */ button.ui-gAutocomplete-browse, button.ui-gFacelist-browse { background-image: url('../img/icons/icon-related-lookup.png'); } button.ui-gAutocomplete-browse:hover, button.ui-gFacelist-browse:hover { background-image: url('../img/icons/icon-related-lookup-hover.png'); } button.ui-gAutocomplete-browse[disabled], button.ui-gAutocomplete-browse[disabled]:hover, button.ui-gFacelist-browse[disabled], button.ui-gFacelist-browse[disabled]:hover { background-image: url('../img/icons/icon-related-lookup-hover.png') !important; } /* AutoSlugField Button ......................................... */ /* TODO: lock/unlock icons .. */ button.ui-gAutoSlugField-toggle { background-image: url('../img/icons/icon-related-lookup.png'); } button.ui-gAutoSlugField-toggle:hover { background-image: url('../img/icons/icon-related-lookup-hover.png'); } button.ui-gAutoSlugField-toggle[disabled], button.ui-gAutoSlugField-toggle[disabled]:hover { background-image: url('../img/icons/icon-related-lookup-hover.png') !important; } /* Datepicker Button ......................................... */ button.ui-datepicker-trigger { background-image: url('../img/icons/icon-datepicker.png'); } button.ui-datepicker-trigger:hover { background-image: url('../img/icons/icon-datepicker-hover.png'); } button.ui-datepicker-trigger[disabled], button.ui-datepicker-trigger[disabled]:hover { background-image: url('../img/icons/icon-datepicker-hover.png') !important; } /* Timepicker Button ......................................... */ button.ui-timepicker-trigger { background-image: url('../img/icons/icon-timepicker.png'); } button.ui-timepicker-trigger:hover { background-image: url('../img/icons/icon-timepicker-hover.png'); } button.ui-timepicker-trigger[disabled], button.ui-timepicker-trigger[disabled]:hover { background-image: url('../img/icons/icon-timepicker-hover.png') !important; } /* Search Button ......................................... */ button.search { position: relative; float: right; top: 0; right: 5px; margin: 0 0 0 -30px; background: url('../img/icons/icon-search.png') 0 50% no-repeat scroll; } button.search:hover { background: url('../img/icons/icon-search-hover.png') 0 50% no-repeat scroll; } button.search[disabled], button.search[disabled]:hover { background: url('../img/icons/icon-search-hover.png') 0 50% no-repeat scroll !important; } /* Links as Buttons ------------------------------------------------------------------------------------------------------ */ a.button, .datecrumbs a, .datecrumbs span { display: inline-block; padding: 4px 8px 4px; font-size: 11px; font-weight: bold; } /* Drop-Down Button ......................................... */ a.button.drop-down { float: right; padding-left: 20px; padding-top: 3px; } a.button.drop-down[class*="selected"] { position: relative; z-index: 1000; height: 17px; } a.button.drop-down:link, a.button.drop-down:visited { background: url('../img/icons/icon-dropdown.png') 3px 3px no-repeat; } a.button.drop-down[class*="selected"], a.button.drop-down:hover, a.button.drop-down:active { background: url('../img/icons/icon-dropdown-hover.png') 3px 3px no-repeat; } /* Filebrowser & Related Lookup ......................................... */ a.fb_show img { width: 0; height: 0; opacity: 0; } a.fb_show, a.related-lookup { display: inline-block; margin-bottom: -5px; width: 23px; height: 23px; font-size: 0; line-height: 0; background: 50% 50% no-repeat; } a.fb_show:link, a.fb_show:visited, .tinyMCE .browse span { background-image: url('../img/icons/icon-fb-show.png'); } a.fb_show:hover, a.fb_show:active, .tinyMCE .browse span:hover { background-image: url('../img/icons/icon-fb-show-hover.png'); } a.related-lookup:link, a.related-lookup:visited { background-image: url('../img/icons/icon-related-lookup.png'); } a.related-lookup:hover, a.related-lookup:active { background-image: url('../img/icons/icon-related-lookup-hover.png'); } div.autocomplete-wrapper-m2m a.related-lookup:link, div.autocomplete-wrapper-m2m a.related-lookup:visited { background-image: url('../img/icons/icon-related-lookup-m2m.png'); } div.autocomplete-wrapper-m2m a.related-lookup:hover, div.autocomplete-wrapper-m2m a.related-lookup:active { background-image: url('../img/icons/icon-related-lookup-m2m-hover.png'); } input[disabled] + a.fb_show { background-image: url('../img/icons/icon-fb-show-hover.png') !important; } input[disabled] + a.related-lookup { background-image: url('../img/icons/icon-related-lookup-hover.png') !important; } a.related-lookup + strong { position: relative; top: -4px; margin-left: 5px; font-size: 11px; font-weight: bold; } #changelist table a.fb_show, #changelist table a.related-lookup { top: -5px; margin-bottom: -12px; } #changelist table a.related-lookup + strong { top: -1px; } /* Add Another ......................................... */ a.add-another { position: relative; display: inline-block; margin-left: 3px; width: 14px; height: 14px; vertical-align: top; font-size: 11px; line-height: 16px; background: 50% 50% no-repeat; } a.add-another:link, a.add-another:visited { background-image: url('../img/icons/icon-add_another.png'); } a.add-another:hover, a.add-another:active { background-image: url('../img/icons/icon-add_another-hover.png'); } .change-list table tbody a.add-another { position: relative; top: -7px; } .radiolist.inline + a.add-another, .checkboxlist.inline + a.add-another { float: left; margin-left: -20px; margin-right: -10000px; } .row.cells ul.radiolist.inline + a.add-another, .row.cells ul.checkboxlist.inline + a.add-another { float: none; margin-right: 0; } /* Unknown, Yes & No Workaround ------------------------------------------------------------------------------------------------------ */ img[src$="img/admin/icon-unknown.gif"] { padding: 0; width: 15px; height: 15px; color: transparent; background: url('../img/icons/icon-unknown.png') 0 50% no-repeat; } img[src$="img/admin/icon-no.gif"] { padding: 0; width: 15px; height: 15px; color: transparent; background: url('../img/icons/icon-no.png') 0 50% no-repeat; } img[src$="img/admin/icon-yes.gif"] { padding: 0; width: 15px; height: 15px; color: transparent; background: url('../img/icons/icon-yes.png') 0 50% no-repeat; } #changelist form table img[src$="img/admin/icon-unknown.gif"] { position: relative; top: 2px; vertical-align: top; } #changelist form table img[src$="img/admin/icon-no.gif"] { position: relative; top: 3px; vertical-align: top; } #changelist form table img[src$="img/admin/icon-yes.gif"] { position: relative; top: 2px; vertical-align: top; }
26.592105
107
0.629589
2644c26ee5973a9df7f90dda856e9c6f24e16c10
249
kt
Kotlin
app/src/main/java/lab4/lab/com/lab4/NotesViewModel.kt
mishatron/lab4_android_viewpager_sqlite
41136274370ab7a4441d6ca5d696e004df13ec53
[ "MIT" ]
null
null
null
app/src/main/java/lab4/lab/com/lab4/NotesViewModel.kt
mishatron/lab4_android_viewpager_sqlite
41136274370ab7a4441d6ca5d696e004df13ec53
[ "MIT" ]
null
null
null
app/src/main/java/lab4/lab/com/lab4/NotesViewModel.kt
mishatron/lab4_android_viewpager_sqlite
41136274370ab7a4441d6ca5d696e004df13ec53
[ "MIT" ]
null
null
null
package lab4.lab.com.lab4 import android.arch.lifecycle.MediatorLiveData import android.arch.lifecycle.ViewModel class NotesViewModel: ViewModel() { var log:MediatorLiveData<Int> = MediatorLiveData() init { log.postValue(0) } }
20.75
54
0.738956
abd04778efd67d2f5859efe98567ad95321f65b2
4,755
go
Go
tcpserver.go
jnosal/gotana
e505dc8c2d289407145d7fc12792c8de7af2a703
[ "MIT" ]
9
2017-09-21T11:12:47.000Z
2018-04-20T11:27:33.000Z
tcpserver.go
jnosal/gotana
e505dc8c2d289407145d7fc12792c8de7af2a703
[ "MIT" ]
2
2018-03-30T13:46:09.000Z
2018-03-30T14:23:20.000Z
tcpserver.go
jnosal/gotana
e505dc8c2d289407145d7fc12792c8de7af2a703
[ "MIT" ]
null
null
null
package gotana import ( "bufio" "fmt" "net" "strings" "time" "unicode/utf8" ) const ( TCP_CONNECTION_READLINE_DEADLINE = 30 ) type TCPCommand func(message string, conn net.Conn, server *TCPServer) type TCPMessage struct { payload string conn net.Conn } type TCPServer struct { engine *Engine address string messages chan TCPMessage commands map[string]interface{} listener net.Listener } func writeLine(conn net.Conn, message string) { writer := bufio.NewWriter(conn) defer writer.Flush() writer.WriteString(strings.Repeat("-", utf8.RuneCountInString(message)) + "\n") writer.WriteString(message + "\n") writer.WriteString(strings.Repeat("-", utf8.RuneCountInString(message)) + "\n") } func increaseDeadline(conn net.Conn) { conn.SetReadDeadline(time.Now().Add(time.Second * TCP_CONNECTION_READLINE_DEADLINE)) } func (server *TCPServer) handleMessages() { for { tcpMessage := <-server.messages msg := strings.ToUpper(strings.TrimSpace(tcpMessage.payload)) conn := tcpMessage.conn Logger().Debugf("Got message %s", msg) if v, ok := server.commands[msg]; ok { handler := v.(TCPCommand) handler(msg, conn, server) } else { writeLine(conn, fmt.Sprintf("No such command: %s", msg)) } } } func (server *TCPServer) handleConnection(conn net.Conn) { defer conn.Close() Logger().Debugf("Got new TCP connection: %v", conn.RemoteAddr()) writeLine(conn, "Connection established. Enter a command") increaseDeadline(conn) reader := bufio.NewReader(conn) scanner := bufio.NewScanner(reader) for { scanned := scanner.Scan() if !scanned { if err := scanner.Err(); err != nil { Logger().Errorf("%v(%v)", err, conn.RemoteAddr()) } break } server.messages <- TCPMessage{scanner.Text(), conn} increaseDeadline(conn) } Logger().Debugf("Connection from %v closed", conn.RemoteAddr()) } func (server *TCPServer) Start() { listener, err := net.Listen("tcp", server.address) server.listener = listener defer listener.Close() if err != nil { Logger().Errorf("Cannot start TCP server at: %s", server.address) return } go server.handleMessages() Logger().Infof("STARTING TCP server at %s", server.address) for { conn, err := listener.Accept() if err != nil { Logger().Error(err.Error()) continue } go server.handleConnection(conn) } } func (server *TCPServer) Stop() { Logger().Infof("Shutting down TCP server") server.listener.Close() } func (server *TCPServer) AddCommand(name string, handler TCPCommand) { server.commands[name] = handler } func CommandStop(message string, conn net.Conn, server *TCPServer) { writeLine(conn, "Stopping the engine...") server.engine.Stop() } func CommandHelp(message string, conn net.Conn, server *TCPServer) { keys := GetMapKeys(server.commands) writeLine(conn, fmt.Sprintf("Available commands: %s", strings.Join(keys, ", "))) } func CommandStats(message string, conn net.Conn, server *TCPServer) { info := fmt.Sprintf("Total scrapers: %d. Total requests: %d", len(server.engine.scrapers), server.engine.Meta.RequestsTotal) writeLine(conn, info) for _, scraper := range server.engine.scrapers { writeLine(conn, scraper.String()) writeLine(conn, fmt.Sprintf("Currently fetching: %s", scraper.CurrentUrl)) } } func CommandList(message string, conn net.Conn, server *TCPServer) { names := make([]string, len(server.engine.scrapers)) i := 0 for _, scraper := range server.engine.scrapers { names[i] = scraper.Name i++ } writeLine(conn, fmt.Sprintf("Running scrapers: %s", strings.Join(names, ", "))) } func CommandExtensions(message string, conn net.Conn, server *TCPServer) { if len(server.engine.extensions) == 0 { writeLine(conn, "No extensions installed") return } for _, extension := range server.engine.extensions { writeLine(conn, DescribeStruct(extension)) } } func CommandMiddleware(message string, conn net.Conn, server *TCPServer) { if len(server.engine.requestMiddleware) == 0 { writeLine(conn, "No middleware installed") return } for _, middleware := range server.engine.requestMiddleware { writeLine(conn, DescribeFunc(middleware)) } } func CommandItems(message string, conn net.Conn, server *TCPServer) { } func NewTCPServer(address string, engine *Engine) (server *TCPServer) { server = &TCPServer{ address: address, engine: engine, messages: make(chan TCPMessage), commands: make(map[string]interface{}), } server.AddCommand("LIST", CommandList) server.AddCommand("STATS", CommandStats) server.AddCommand("HELP", CommandHelp) server.AddCommand("STOP", CommandStop) server.AddCommand("EXTENSIONS", CommandExtensions) server.AddCommand("MIDDLEWARE", CommandMiddleware) server.AddCommand("ITEMS", CommandItems) return }
24.015152
85
0.711041
cb49849d35b1860b54f186e42e5530746aedf887
1,087
h
C
System/Library/PrivateFrameworks/SpringBoard.framework/SBApplication32BitDeprecationAlertItem.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
2
2021-11-02T09:23:27.000Z
2022-03-28T08:21:57.000Z
System/Library/PrivateFrameworks/SpringBoard.framework/SBApplication32BitDeprecationAlertItem.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
null
null
null
System/Library/PrivateFrameworks/SpringBoard.framework/SBApplication32BitDeprecationAlertItem.h
lechium/iOS1351Headers
6bed3dada5ffc20366b27f7f2300a24a48a6284e
[ "MIT" ]
1
2022-03-28T08:21:59.000Z
2022-03-28T08:21:59.000Z
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:23:44 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/SpringBoard.framework/SpringBoard * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. Updated by Kevin Bradley. */ #import <SpringBoardUI/SBAlertItem.h> @class SBApplication; @interface SBApplication32BitDeprecationAlertItem : SBAlertItem { SBApplication* _associatedDisplay; } @property (assign,nonatomic,__weak) SBApplication * associatedDisplay; //@synthesize associatedDisplay=_associatedDisplay - In the implementation block -(id)_title; -(BOOL)dismissOnLock; -(id)_message; -(id)initWithApplication:(id)arg1 ; -(SBApplication *)associatedDisplay; -(void)setAssociatedDisplay:(SBApplication *)arg1 ; -(void)configure:(BOOL)arg1 requirePasscodeForActions:(BOOL)arg2 ; @end
37.482759
164
0.680773
d23e015f242529347b4b168772216647ad1fa92a
1,649
swift
Swift
NewsApiSample/Model/Core Data Layer/LocalArticleService.swift
Eeyore741/NewsApiSample
005456f91b43817b5853d30cba7a93d6369b214e
[ "MIT" ]
null
null
null
NewsApiSample/Model/Core Data Layer/LocalArticleService.swift
Eeyore741/NewsApiSample
005456f91b43817b5853d30cba7a93d6369b214e
[ "MIT" ]
null
null
null
NewsApiSample/Model/Core Data Layer/LocalArticleService.swift
Eeyore741/NewsApiSample
005456f91b43817b5853d30cba7a93d6369b214e
[ "MIT" ]
null
null
null
// // LocalArticleService.swift // NewsApiSample // // Created by Vitaliy Kuznetsov on 18/07/2018. // Copyright © 2018 vitaliikuznetsov. All rights reserved. // import UIKit import CoreData class LocalArticleService: NSObject, LocalArticleServiceProtocol{ let worker: NewCoreDataWorkerProtocol let apiVersion: String init(apiVersion: String, worker: NewCoreDataWorkerProtocol = NewCoreDataWorker()) { self.apiVersion = apiVersion self.worker = worker } // MARK: - LocalArticleServiceProtocol func upsertArticles(_ articles: [Article], completionHandler: @escaping (_ error: Error?)->Void){ worker.upsert(entities: articles) { (error) in completionHandler(error) } } func getArticles(inAmountOf amount: Int, fromPage page: Int, completionHandler: @escaping (Result<[Article]>) -> Void) { worker.get(with: nil, sortDescriptors: nil, fetchLimit: amount, fetchOffset: (page-1)*amount) {(result: Result<[Article]>) in switch result{ case .success(let articles): completionHandler(Result.success(articles)) break case .failure(let error): completionHandler(Result.failure(error)) break } } } func purge(completionHandler: @escaping (Error?) -> Void) { worker.purge(type: Article.self) { (error) in completionHandler(error) } } }
24.61194
133
0.571862
e30e5fb2b42a53012b2b57f44dfff624372d5bce
3,390
kt
Kotlin
src/test/kotlin/no/nav/familie/ef/sak/api/gui/FagsakControllerTest.kt
navikt/familie-ef-sak
86493dd3c205b6cc4be47595c0c12ebb154762c8
[ "MIT" ]
null
null
null
src/test/kotlin/no/nav/familie/ef/sak/api/gui/FagsakControllerTest.kt
navikt/familie-ef-sak
86493dd3c205b6cc4be47595c0c12ebb154762c8
[ "MIT" ]
1,218
2020-01-20T05:15:24.000Z
2022-03-31T21:39:28.000Z
src/test/kotlin/no/nav/familie/ef/sak/api/gui/FagsakControllerTest.kt
navikt/familie-ef-sak
86493dd3c205b6cc4be47595c0c12ebb154762c8
[ "MIT" ]
2
2021-04-19T07:42:15.000Z
2021-04-19T07:47:22.000Z
package no.nav.familie.ef.sak.api.gui import no.nav.familie.ef.sak.OppslagSpringRunnerTest import no.nav.familie.ef.sak.behandling.BehandlingRepository import no.nav.familie.ef.sak.behandling.domain.BehandlingResultat import no.nav.familie.ef.sak.fagsak.FagsakRepository import no.nav.familie.ef.sak.fagsak.FagsakRequest import no.nav.familie.ef.sak.fagsak.domain.FagsakPerson import no.nav.familie.ef.sak.fagsak.domain.Stønadstype import no.nav.familie.ef.sak.fagsak.dto.FagsakDto import no.nav.familie.ef.sak.repository.behandling import no.nav.familie.ef.sak.repository.fagsak import no.nav.familie.kontrakter.felles.Ressurs import org.assertj.core.api.Assertions import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.test.web.client.exchange import org.springframework.http.HttpEntity import org.springframework.http.HttpMethod import org.springframework.http.HttpStatus import org.springframework.http.ResponseEntity import java.util.UUID internal class FagsakControllerTest : OppslagSpringRunnerTest() { @Autowired private lateinit var fagsakRepository: FagsakRepository @Autowired private lateinit var behandlingRepository: BehandlingRepository @BeforeEach fun setUp() { headers.setBearerAuth(lokalTestToken) } @Test internal fun `Skal returnere 200 OK med status IKKE_TILGANG dersom man ikke har tilgang til brukeren`() { val respons: ResponseEntity<Ressurs<FagsakDto>> = hentFagsakForPerson() Assertions.assertThat(respons.statusCode).isEqualTo(HttpStatus.FORBIDDEN) Assertions.assertThat(respons.body?.status).isEqualTo(Ressurs.Status.IKKE_TILGANG) Assertions.assertThat(respons.body?.data).isNull() } private fun hentFagsakForPerson(): ResponseEntity<Ressurs<FagsakDto>> { val fagsakRequest = FagsakRequest("ikkeTilgang", Stønadstype.OVERGANGSSTØNAD) return restTemplate.exchange(localhost("/api/fagsak"), HttpMethod.POST, HttpEntity(fagsakRequest, headers)) } @Test internal fun `Gitt fagsak med behandlinger finnes når get fagsak endpoint kalles skal det returneres 200 OK med fagsakDto`() { val fagsak = fagsakRepository.insert(fagsak(identer = setOf(FagsakPerson("01010199999")))) behandlingRepository.insert(behandling(fagsak)) behandlingRepository.insert(behandling(fagsak)) val fagsakForId = hentFagsakForId(fagsak.id) Assertions.assertThat(fagsakForId.data?.id).isEqualTo(fagsak.id) Assertions.assertThat(fagsakForId.data?.behandlinger?.size).isEqualTo(2) Assertions.assertThat(fagsakForId.data?.behandlinger!!.all { it.resultat == BehandlingResultat.IKKE_SATT }) } private fun hentFagsakForId(fagsakId: UUID): Ressurs<FagsakDto> { val response = restTemplate.exchange<Ressurs<FagsakDto>>(localhost("/api/fagsak/$fagsakId"), HttpMethod.GET, HttpEntity<Any>(headers)) Assertions.assertThat(response.statusCode).isEqualTo(HttpStatus.OK) Assertions.assertThat(response.body.status).isEqualTo(Ressurs.Status.SUKSESS) return response.body } }
46.438356
130
0.730973
df7b13348026fd9904789586496cbbe179ee3eb8
3,203
lua
Lua
OrePlus 0.0.1/prototypes/item/item.lua
JohnTheCoolingFan/RFTCore
3e1909a21ce81101320e695cb3ba7ed24cbdca8f
[ "MIT" ]
null
null
null
OrePlus 0.0.1/prototypes/item/item.lua
JohnTheCoolingFan/RFTCore
3e1909a21ce81101320e695cb3ba7ed24cbdca8f
[ "MIT" ]
null
null
null
OrePlus 0.0.1/prototypes/item/item.lua
JohnTheCoolingFan/RFTCore
3e1909a21ce81101320e695cb3ba7ed24cbdca8f
[ "MIT" ]
null
null
null
data:extend({ --ingots { type = "item", name = "JC-gold-ingot", icon = "__OrePlus__/graphics/icons/JC-gold-ingot.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "a[ingot]-a[gold]", stack_size = 50 }, { type = "item", name = "JC-nickel-ingot", icon = "__OrePlus__/graphics/icons/JC-nickel-ingot.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "a[ingot]-b[nickel]", stack_size = 50 }, { type = "item", name = "JC-silver-ingot", icon = "__OrePlus__/graphics/icons/JC-silver-ingot.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "a[ingot]-c[silver]", stack_size = 50 }, { type = "item", name = "JC-tin-ingot", icon = "__OrePlus__/graphics/icons/JC-tin-ingot.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "a[ingot]-d[tin]", stack_size = 50 }, { type = "item", name = "JC-zinc-ingot", icon = "__OrePlus__/graphics/icons/JC-zinc-ingot.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "a[ingot]-e[zinc]", stack_size = 50 }, { type = "item", name = "JC-lead-ingot", icon = "__OrePlus__/graphics/icons/JC-lead-ingot.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "a[ingot]-f[lead]", stack_size = 50 }, --slag... { type = "item", name = "JC-slag", icon = "__OrePlus__/graphics/icons/JC-slag.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "e[slag]", stack_size = 50 }, --JC-ores { type = "item", name = "JC-gold-ore", icon = "__OrePlus__/graphics/icons/JC-gold-ore.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "f[gold-ore]", stack_size = 100 }, { type = "item", name = "JC-lead-ore", icon = "__OrePlus__/graphics/icons/JC-lead-ore.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "f[lead-ore]", stack_size = 100 }, { type = "item", name = "JC-nickel-ore", icon = "__OrePlus__/graphics/icons/JC-nickel-ore.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "f[nickel-ore]", stack_size = 100 }, { type = "item", name = "JC-silver-ore", icon = "__OrePlus__/graphics/icons/JC-silver-ore.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "f[silver-ore]", stack_size = 100 }, { type = "item", name = "JC-tin-ore", icon = "__OrePlus__/graphics/icons/JC-tin-ore.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "f[tin-ore]", stack_size = 100 }, { type = "item", name = "JC-zinc-ore", icon = "__OrePlus__/graphics/icons/JC-zinc-ore.png", flags = {"goes-to-main-inventory"}, subgroup = "JC-resource", order = "f[zinc-ore]", stack_size = 100 }, })
24.265152
61
0.545426
43fa85a7251cb14ba0fa975074dbb4d640d17c03
36
ps1
PowerShell
Windows/Test-Windows-Cluster.ps1
tbonham/SQLServerHA
b378ad47294ba9ff6f67cbfeb26828b91ae70f2b
[ "MIT" ]
null
null
null
Windows/Test-Windows-Cluster.ps1
tbonham/SQLServerHA
b378ad47294ba9ff6f67cbfeb26828b91ae70f2b
[ "MIT" ]
null
null
null
Windows/Test-Windows-Cluster.ps1
tbonham/SQLServerHA
b378ad47294ba9ff6f67cbfeb26828b91ae70f2b
[ "MIT" ]
null
null
null
Test-Cluster -Node SQLAG01 , SQLAG02
36
36
0.805556
ba329bbeabac7de5b3d9d594c6aba8962d0c4361
543
ps1
PowerShell
powershell/Reboot.ps1
silentstep/scripts
5bcc25dacb473da8ad4d96b9f59b655cbd710ad7
[ "MIT" ]
null
null
null
powershell/Reboot.ps1
silentstep/scripts
5bcc25dacb473da8ad4d96b9f59b655cbd710ad7
[ "MIT" ]
null
null
null
powershell/Reboot.ps1
silentstep/scripts
5bcc25dacb473da8ad4d96b9f59b655cbd710ad7
[ "MIT" ]
null
null
null
Unregister-ScheduledJob systemReboot -Force register-ScheduledJob -Name systemReboot -ScriptBlock { $Key = "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" If ( -Not ( Test-Path "Registry::$Key")){New-Item -Path "Registry::$Key" -ItemType RegistryKey -Force} Set-ItemProperty -path "Registry::$Key" -Name "dbadk" -Type "String" -Value '"C:\Program Files\Internet Explorer\iexplore.exe" www.dba.dk' Restart-Computer -Force } -Trigger (New-JobTrigger -At "11:00am" -Once) -ScheduledJobOption (New-ScheduledJobOption -RunElevated)
77.571429
139
0.758748
f405158e91cdb79371513da98dd95fd939f1b4cc
528
kt
Kotlin
core/src/main/java/com/ebnrdwan/core/di/ResourcesModule.kt
ar9ma/lint_rules
9a9b7169c79221d238ace1b2e450898e0a4f3303
[ "Apache-2.0" ]
1
2020-01-30T10:22:48.000Z
2020-01-30T10:22:48.000Z
core/src/main/java/com/ebnrdwan/core/di/ResourcesModule.kt
ar9ma/lint_rules
9a9b7169c79221d238ace1b2e450898e0a4f3303
[ "Apache-2.0" ]
null
null
null
core/src/main/java/com/ebnrdwan/core/di/ResourcesModule.kt
ar9ma/lint_rules
9a9b7169c79221d238ace1b2e450898e0a4f3303
[ "Apache-2.0" ]
1
2020-05-21T04:47:10.000Z
2020-05-21T04:47:10.000Z
package com.ebnrdwan.core.di import android.app.Application import android.content.Context import android.content.res.Resources import dagger.Module import dagger.Provides import dagger.Reusable import javax.inject.Singleton @Module object ResourcesModule { @JvmStatic @Singleton @Provides fun provideContext(application: Application): Context = application.applicationContext @JvmStatic @Reusable @Provides fun provideResources(application: Application): Resources = application.resources }
22
90
0.789773
8384bdba64c8c8b25c9560b2e75d4e3d99afb765
11,639
psm1
PowerShell
pwsh/modules/Pwsh-Completion/Pwsh-Django-Completion.psm1
Furkanzmc/dotfiles
1ed5eb797c8072d27bbe89876a6653eb62bb6858
[ "Unlicense" ]
10
2019-03-31T08:00:28.000Z
2022-02-20T20:21:23.000Z
pwsh/modules/Pwsh-Completion/Pwsh-Django-Completion.psm1
Furkanzmc/dotfiles
1ed5eb797c8072d27bbe89876a6653eb62bb6858
[ "Unlicense" ]
null
null
null
pwsh/modules/Pwsh-Completion/Pwsh-Django-Completion.psm1
Furkanzmc/dotfiles
1ed5eb797c8072d27bbe89876a6653eb62bb6858
[ "Unlicense" ]
2
2021-11-07T01:41:42.000Z
2022-01-16T13:39:32.000Z
function Get-Current-Command($commandComponents, $availableCommands) { $commands = "" for ($index = 0; $index -lt $commandComponents.Length; $index++) { $component = $commandComponents[$index].Trim() if ($component -in $availableCommands) { $commands += " $component" } } return $commands.Trim() } # Helper function to update the commands from the django-admin executable. # It's called manually and the results are saved in the script. function Build-Help-Registry() { $commands = $(django-admin help --commands) $commandMap = @{} $commands | ForEach-Object { $command = $_ $output = $(django-admin help $command) $options = "" $output | ForEach-Object { $line = $_ $result = Select-String -InputObject $line ` -Pattern "(--[a-z](-|\w+)+|-[a-z])" -List -AllMatches $result.Matches | ForEach-Object { if ($_ -and -not $options.Contains($_)) { $trimmed = $_.Value.Trim() $options += ",$trimmed" } } $commandMap[$command] = $options.Trim().Split(",") } } return $commandMap } function Complete() { Param($app, $wordToComplete, $commandAst, $cursorPosition) $textToComplete = $commandAst.ToString() $textComponents = $textToComplete.Split(" ") if ($textComponents.Length -lt 2) { return } if ($app -eq "python" -and -not ($textToComplete.Contains("manage.py"))) { return } # Commands are from Django 1.10. $commands = @{ "check"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--tag", "--list-tags", "--deploy", "--fail-level", "--help", "--verbosity", "-z" ) "sqlflush"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--database", "--help", "--verbosity" ) "dbshell"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--database", "-l", "--help", "--verbosity" ) "showmigrations"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--database", "--list", "--plan", "--help", "--verbosity" ) "sqlmigrate"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--database", "--backwards", "--help", "--verbosity" ) "migrate"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--noinput", "--database", "--fake", "--fake-initial", "--run-syncdb", "--help", "--verbosity", "--no-input" ) "dumpdata"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--format", "--indent", "--database", "-e", "--natural-foreign", "--natural-primary", "--pks", "-o", "--all", "--help", "--verbosity", "--exclude", "--output" ) "sendtestemail"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--managers", "--admins", "--help", "--verbosity" ) "inspectdb"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--database", "--help", "--verbosity" ) "diffsettings"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--all", "--help", "--verbosity" ) "compilemessages"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--locale", "--exclude", "--use-fuzzy", "--help", "--verbosity", "-x" ) "startproject"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--template", "--extension", "--name", "--help", "--verbosity" ) "squashmigrations"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--no-optimize", "--noinput", "--help", "--verbosity", "--no-input" ) "makemigrations"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--dry-run", "--merge", "--empty", "--noinput", "--check", "--help", "--verbosity", "--no-input", "--name", "--exit", "-z" ) "loaddata"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--database", "--app", "--ignorenonexistent", "--help", "--verbosity" ) "runserver"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--ipv6", "--nothreading", "--noreload", "--help", "--verbosity", "-r" ) "test"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--noinput", "--failfast", "--testrunner", "--liveserver", "-k", "-r", "-d", "--parallel", "--tag", "--exclude-tag", "--help", "--verbosity", "--no-input", "--top-level-directory", "--pattern", "--keepdb", "--reverse", "--debug-sql" ) "makemessages"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--locale", "--exclude", "--domain", "--all", "--extension", "--symlinks", "--ignore", "--no-default-ignore", "--no-wrap", "--no-location", "--no-obsolete", "--keep-pot", "--help", "--verbosity", "-x" ) "startapp"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--template", "--extension", "--name", "--help", "--verbosity" ) "shell"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--plain", "--no-startup", "-i", "--help", "--verbosity", "--interface", "--command" ) "testserver"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--noinput", "--addrport", "--ipv6", "--help", "--verbosity", "--no-input" ) "createcachetable"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--database", "--dry-run", "--help", "--verbosity" ) "flush"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--noinput", "--database", "--help", "--verbosity", "--no-input" ) "sqlsequencereset"=@( "-a", "-h", "--version", "--settings", "--pythonpath", "--traceback", "--no-color", "--database", "--help", "--verbosity" ) } $currentCommand = Get-Current-Command $textComponents $commands.Keys if ($currentCommand -eq "") { $commands.Keys | ForEach-Object { $command = $_ if ($command -like "$wordToComplete*") { New-Object -Type System.Management.Automation.CompletionResult ` -ArgumentList $command, $command, "ParameterValue", $command } } } elseif ($wordToComplete.StartsWith("-")) { $options = $commands[$currentCommand] $options | ForEach-Object { $option = $_ if ($option -like "$wordToComplete*") { New-Object -Type System.Management.Automation.CompletionResult ` -ArgumentList $option, $option, "ParameterValue", $option } } } } Register-ArgumentCompleter -Native -CommandName python -ScriptBlock { Param($wordToComplete, $commandAst, $cursorPosition) Complete "python" $wordToComplete $commandAst $cursorPosition } Register-ArgumentCompleter -Native -CommandName django-admin -ScriptBlock { Param($wordToComplete, $commandAst, $cursorPosition) Complete "django-admin" $wordToComplete $commandAst $cursorPosition }
24.922912
80
0.341095
65851095909a54140bfe6df2ef692eb031fc2ef1
700
sql
SQL
sql/user.sql
liu-dong/myProject
d15f7dfd71dd87ca566deb4a9c0980ac0cffe43d
[ "MIT" ]
2
2019-03-07T01:07:36.000Z
2019-05-23T07:36:30.000Z
sql/user.sql
liu-dong/myProject
d15f7dfd71dd87ca566deb4a9c0980ac0cffe43d
[ "MIT" ]
6
2019-03-20T09:47:48.000Z
2021-03-11T08:01:44.000Z
sql/user.sql
liu-dong/myProject
d15f7dfd71dd87ca566deb4a9c0980ac0cffe43d
[ "MIT" ]
1
2019-04-04T11:21:08.000Z
2019-04-04T11:21:08.000Z
/* Navicat MySQL Data Transfer Source Server : LD Source Server Version : 50562 Source Host : localhost:3306 Source Database : my_data Target Server Type : MYSQL Target Server Version : 50562 File Encoding : 65001 Date: 2019-05-29 15:50:37 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` varchar(36) NOT NULL, `user_name` varchar(50) NOT NULL, `loginName` varchar(50) NOT NULL, `password` varchar(50) NOT NULL, `age` int(4) NOT NULL, `sex` int(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
22.580645
40
0.614286
6bbbb27459f292227387ff17fa2b3aae610c8e59
622
swift
Swift
LightReading/Tool/MainTabBar/MainTabBarTool.swift
zoeyzhong520/LightReading
3bae9121825c140cc4a82c8d37899573f2639fca
[ "MIT" ]
2
2018-07-20T14:11:50.000Z
2018-12-11T10:18:32.000Z
LightReading/Tool/MainTabBar/MainTabBarTool.swift
zoeyzhong520/LightReading
3bae9121825c140cc4a82c8d37899573f2639fca
[ "MIT" ]
null
null
null
LightReading/Tool/MainTabBar/MainTabBarTool.swift
zoeyzhong520/LightReading
3bae9121825c140cc4a82c8d37899573f2639fca
[ "MIT" ]
null
null
null
// // MainTabBarTool.swift // LightReading // // Created by zhifu360 on 2018/7/11. // Copyright © 2018年 智富金融. All rights reserved. // import UIKit class MainTabBarTool: NSObject { ///创建UINavigationController class func createViewController(_ vc:UIViewController, title:String?, image:String, selectedImage:String) -> UINavigationController { vc.title = title vc.tabBarItem.image = UIImage.init(named: image) vc.tabBarItem.selectedImage = UIImage.init(named: selectedImage) let navVC = UINavigationController.init(rootViewController: vc) return navVC } }
27.043478
137
0.697749
0482cf09fbf8683ee3762c6feeed56768fe844a6
1,427
java
Java
src/main/java/services/TimberService.java
jroeder/ninja-superbowl
b7dddb8a29000da30bd86e3633385702950760d6
[ "Apache-2.0" ]
null
null
null
src/main/java/services/TimberService.java
jroeder/ninja-superbowl
b7dddb8a29000da30bd86e3633385702950760d6
[ "Apache-2.0" ]
null
null
null
src/main/java/services/TimberService.java
jroeder/ninja-superbowl
b7dddb8a29000da30bd86e3633385702950760d6
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2017 Microbeans Software Jürgen Röder. * * 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 services; import java.util.List; import dto.TimberDto; import entity.GeoRegion; /** * Interface for all service methods to retrieve {@code Timber} data from * underlying data store. * * @author mbsusr01 * * ninja-superbowl 05.04.2017 mbsusr01 */ public interface TimberService { TimberDto getTimberById(Long id); TimberDto getTimberById(String id); TimberDto getTimberByCode(String code); TimberDto getTimberMaxIndex(); Integer getTimberMaxIndexByGeoRegionId(Long id); List<TimberDto> listTimber(); List<TimberDto> listTimberByGeoRegion(GeoRegion geoRegion); List<TimberDto> listTimberByGeoRegionId(Long id); List<TimberDto> listTimberByGeoRegionCode(String code); void register(TimberDto timberDto); }
25.945455
76
0.725298
fe42955ab864ad48ee3f321265f2afe74e2b24e1
10,082
h
C
src/core/api/hsa_api.h
parmance/HSA-Runtime-Conformance
37d2652d8c3deba7996df331817622dfef01f4ca
[ "NCSA" ]
1
2017-05-22T17:21:37.000Z
2017-05-22T17:21:37.000Z
src/core/api/hsa_api.h
parmance/HSA-Runtime-Conformance
37d2652d8c3deba7996df331817622dfef01f4ca
[ "NCSA" ]
13
2016-11-12T09:25:46.000Z
2016-11-27T19:11:34.000Z
src/core/api/hsa_api.h
parmance/HSA-Runtime-Conformance
37d2652d8c3deba7996df331817622dfef01f4ca
[ "NCSA" ]
3
2016-11-23T13:22:03.000Z
2021-02-21T17:52:45.000Z
/* * ============================================================================= * HSA Runtime Conformance Release License * ============================================================================= * The University of Illinois/NCSA * Open Source License (NCSA) * * Copyright (c) 2014, Advanced Micro Devices, Inc. * All rights reserved. * * Developed by: * * AMD Research and AMD HSA Software Development * * Advanced Micro Devices, Inc. * * www.amd.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal with the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimers. * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimers in * the documentation and/or other materials provided with the distribution. * - Neither the names of <Name of Development Group, Name of Institution>, * nor the names of its contributors may be used to endorse or promote * products derived from this Software without specific prior written * permission. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS WITH THE SOFTWARE. * */ #ifndef _HSA_API_H_ #define _HSA_API_H_ extern int test_hsa_init(); extern int test_hsa_init_MAX(); extern int test_hsa_shut_down(); extern int test_hsa_shut_down_not_initialized(); extern int test_hsa_shut_down_after_shut_down(); extern int test_hsa_status_string(); extern int test_hsa_status_string_not_initialized(); extern int test_hsa_status_string_invalid_status(); extern int test_hsa_status_string_invalid_ptr(); extern int test_hsa_iterate_agents(); extern int test_hsa_iterate_agents_not_initialized(); extern int test_hsa_iterate_agents_invalid_callback(); extern int test_hsa_agent_get_info(); extern int test_hsa_agent_get_info_not_initialized(); extern int test_hsa_agent_get_info_invalid_agent(); extern int test_hsa_agent_get_info_invalid_attribute(); extern int test_hsa_agent_get_info_invalid_ptr(); extern int test_hsa_agent_extension_supported(); extern int test_hsa_agent_extension_supported_not_initialized(); extern int test_hsa_agent_extension_supported_invalid_agent(); extern int test_hsa_agent_extension_supported_invalid_extension(); extern int test_hsa_agent_extension_supported_null_result_ptr(); extern int test_hsa_agent_get_exception_policies(); extern int test_hsa_agent_get_exception_policies_not_initialized(); extern int test_hsa_agent_get_exception_policies_invalid_agent(); extern int test_hsa_agent_get_exception_policies_null_mask_ptr(); extern int test_hsa_agent_get_exception_policies_invalid_profile(); extern int test_hsa_system_extension_supported(); extern int test_hsa_system_extension_supported_not_initialized(); extern int test_hsa_system_extension_supported_invalid_extension(); extern int test_hsa_system_extension_supported_null_result_ptr(); extern int test_hsa_system_get_extension_table(); extern int test_hsa_system_get_extension_table_not_initialized(); extern int test_hsa_system_get_extension_table_invalid_extension(); extern int test_hsa_system_get_extension_table_null_table_ptr(); extern int test_hsa_system_get_info(); extern int test_hsa_system_get_info_not_initialized(); extern int test_hsa_system_get_info_invalid_attribute(); extern int test_hsa_system_get_info_invalid_ptr(); extern int test_hsa_signal_create(); extern int test_hsa_signal_create_not_initialized(); extern int test_hsa_signal_create_null_signal(); extern int test_hsa_signal_create_invalid_arg(); extern int test_hsa_signal_destroy(); extern int test_hsa_signal_destroy_not_initialized(); extern int test_hsa_signal_destroy_invalid_arg(); extern int test_hsa_signal_destroy_invalid_signal(); extern int test_hsa_signal_load_acquire(); extern int test_hsa_signal_load_relaxed(); extern int test_hsa_signal_store_release(); extern int test_hsa_signal_store_relaxed(); extern int test_hsa_signal_exchange_acq_rel(); extern int test_hsa_signal_exchange_acquire(); extern int test_hsa_signal_exchange_relaxed(); extern int test_hsa_signal_exchange_release(); extern int test_hsa_signal_cas_acq_rel(); extern int test_hsa_signal_cas_acquire(); extern int test_hsa_signal_cas_relaxed(); extern int test_hsa_signal_cas_release(); extern int test_hsa_signal_add_acq_rel(); extern int test_hsa_signal_add_acquire(); extern int test_hsa_signal_add_relaxed(); extern int test_hsa_signal_add_release(); extern int test_hsa_signal_subtract_acq_rel(); extern int test_hsa_signal_subtract_acquire(); extern int test_hsa_signal_subtract_relaxed(); extern int test_hsa_signal_subtract_release(); extern int test_hsa_signal_and_acq_rel(); extern int test_hsa_signal_and_acquire(); extern int test_hsa_signal_and_relaxed(); extern int test_hsa_signal_and_release(); extern int test_hsa_signal_or_acq_rel(); extern int test_hsa_signal_or_acquire(); extern int test_hsa_signal_or_relaxed(); extern int test_hsa_signal_or_release(); extern int test_hsa_signal_xor_acq_rel(); extern int test_hsa_signal_xor_acquire(); extern int test_hsa_signal_xor_relaxed(); extern int test_hsa_signal_xor_release(); extern int test_hsa_queue_create(); extern int test_hsa_queue_create_not_initialized(); extern int test_hsa_queue_create_out_of_resources(); extern int test_hsa_queue_create_invalid_agent(); extern int test_hsa_queue_create_invalid_queue_creation(); extern int test_hsa_queue_create_invalid_argument(); extern int test_hsa_queue_destroy(); extern int test_hsa_queue_destroy_not_initialized(); extern int test_hsa_queue_destroy_invalid_queue(); extern int test_hsa_queue_destroy_invalid_argument(); extern int test_hsa_queue_inactivate(); extern int test_hsa_queue_inactivate_not_initialized(); extern int test_hsa_queue_inactivate_invalid_queue(); extern int test_hsa_queue_inactivate_invalid_argument(); extern int test_hsa_queue_load_read_index_acquire(); extern int test_hsa_queue_load_read_index_relaxed(); extern int test_hsa_queue_load_store_write_index_acquire_relaxed(); extern int test_hsa_queue_load_store_write_index_relaxed_release(); extern int test_hsa_queue_cas_write_index_acq_rel(); extern int test_hsa_queue_cas_write_index_acquire(); extern int test_hsa_queue_cas_write_index_relaxed(); extern int test_hsa_queue_cas_write_index_release(); extern int test_hsa_queue_add_write_index_acq_rel(); extern int test_hsa_queue_add_write_index_acquire(); extern int test_hsa_queue_add_write_index_relaxed(); extern int test_hsa_queue_add_write_index_release(); extern int test_hsa_memory_allocate_not_initialized(); extern int test_hsa_memory_allocate_null_ptr(); extern int test_hsa_memory_allocate_zero_size(); extern int test_hsa_memory_allocate_invalid_allocation(); extern int test_hsa_memory_allocate_invalid_region(); extern int test_hsa_memory_allocate(); extern int test_hsa_memory_free(); extern int test_hsa_memory_free_not_initialized(); extern int test_hsa_memory_register(); extern int test_hsa_memory_register_not_initialized(); extern int test_hsa_memory_register_invalid_argument(); extern int test_hsa_memory_deregister(); extern int test_hsa_memory_deregister_not_initialized(); extern int test_hsa_region_get_info(); extern int test_hsa_region_get_info_not_initialized(); extern int test_hsa_region_get_info_invalid_region(); extern int test_hsa_region_get_info_invalid_argument(); extern int test_hsa_agent_iterate_regions(); extern int test_hsa_agent_iterate_regions_not_initialized(); extern int test_hsa_agent_iterate_regions_invalid_argument(); extern int test_hsa_agent_iterate_regions_invalid_agent(); extern int test_hsa_isa_get_info(); extern int test_hsa_isa_get_info_not_initialized(); extern int test_hsa_isa_get_info_invalid_isa(); extern int test_hsa_isa_get_info_index_out_of_range(); extern int test_hsa_isa_get_info_invalid_attribute(); extern int test_hsa_isa_get_info_invalid_null_value(); extern int test_hsa_code_object_get_info(); extern int test_hsa_code_symbol_get_info(); extern int test_hsa_executable_create(); extern int test_hsa_executable_create_not_initialized(); extern int test_hsa_executable_create_invalid_argument(); extern int test_hsa_executable_create_out_of_resources(); extern int test_hsa_executable_destroy(); extern int test_hsa_executable_destroy_not_initialized(); extern int test_hsa_executable_destroy_invalid_executable(); extern int test_hsa_executable_load_code_object(); extern int test_hsa_executable_load_code_object_not_initialized(); extern int test_hsa_executable_load_code_object_invalid_executable(); extern int test_hsa_executable_load_code_object_invalid_agent(); extern int test_hsa_executable_load_code_object_invalid_code_object(); extern int test_hsa_executable_load_code_object_frozen_executable(); extern int test_hsa_executable_get_info(); extern int test_hsa_executable_symbol_get_info(); extern int test_hsa_soft_queue_create(); extern int test_hsa_isa_from_name(); extern int test_hsa_isa_from_name_null_name(); extern int test_hsa_isa_from_name_null_isa(); extern int test_hsa_isa_from_name_invalid_isa_name(); extern int test_hsa_isa_compatible(); extern int test_hsa_isa_compatible_invalid_isa(); extern int test_hsa_isa_compatible_null_result(); #endif // _HSA_API_H_
48.471154
80
0.837433
1a68fecfa854d86c4dbed2e80e612b21b4c6e7c5
1,862
rs
Rust
src/spacecenter/parts/radiator.rs
storance/krpc-bindings-rs
5f29a04c9feb6190c5e983d3c69a35c7e00631d9
[ "Apache-2.0" ]
1
2019-06-04T14:35:38.000Z
2019-06-04T14:35:38.000Z
src/spacecenter/parts/radiator.rs
storance/krpc-bindings-rs
5f29a04c9feb6190c5e983d3c69a35c7e00631d9
[ "Apache-2.0" ]
null
null
null
src/spacecenter/parts/radiator.rs
storance/krpc-bindings-rs
5f29a04c9feb6190c5e983d3c69a35c7e00631d9
[ "Apache-2.0" ]
1
2019-06-04T14:35:49.000Z
2019-06-04T14:35:49.000Z
use super::Part; use crate::codec::{Decode, Encode}; use crate::{remote_type, RemoteEnum, RemoteObject}; remote_type!( /// A radiator. Obtained by calling `Part::radiator().` object SpaceCenter.Radiator { properties: { { Part { /// Returns the part object for this radiator. /// /// **Game Scenes**: All get: part -> Part } } { Deployable { /// Returns whether the radiator is deployable. /// /// **Game Scenes**: All get: is_deployable -> bool } } { Deployed { /// Returns whether the radiator is extended. Returns `true` if the radiator is /// not deployable. /// /// **Game Scenes**: All get: is_deployed -> bool, /// Sets whether the radiator is extended. /// /// **Game Scenes**: All set: set_deployed(bool) } } { State { /// Returns the current state of the radiator. /// /// **Game Scenes**: All /// /// # Note /// A fixed radiator is always `RadiatorState::Extended`. get: state -> RadiatorState } } } }); remote_type!( /// The state of a radiator. enum RadiatorState { /// Radiator is fully extended. Extended = 0, /// Radiator is fully retracted. Retracted = 1, /// Radiator is being extended. Extending = 2, /// Radiator is being retracted. Retracting = 3, /// Radiator is being broken. Broken = 4, } );
27.791045
96
0.43609
05c3f2b7070ba193611ebd2fb3ec32babf2a9862
2,859
swift
Swift
Example/SwiftGraphKit/Graph Sample/SimpleBarGraphViewController.swift
bessonnet/SwiftGraphKit
ec695efdb2ee6ae9843c116a5dc0cf4130199ee0
[ "MIT" ]
9
2018-11-11T21:46:50.000Z
2020-04-08T20:57:57.000Z
Example/SwiftGraphKit/Graph Sample/SimpleBarGraphViewController.swift
bessonnet/SwiftGraphKit
ec695efdb2ee6ae9843c116a5dc0cf4130199ee0
[ "MIT" ]
null
null
null
Example/SwiftGraphKit/Graph Sample/SimpleBarGraphViewController.swift
bessonnet/SwiftGraphKit
ec695efdb2ee6ae9843c116a5dc0cf4130199ee0
[ "MIT" ]
1
2018-11-11T21:46:50.000Z
2018-11-11T21:46:50.000Z
// // SimpleBarGraphViewController.swift // SwiftGraphKit_Example // // Created by Charles Bessonnet on 13/12/2018. // Copyright © 2018 CocoaPods. All rights reserved. // import UIKit import SwiftGraphKit class SimpleBarGraphViewController: UIViewController { private lazy var graphView: GraphView = { let graphView = GraphView() graphView.translatesAutoresizingMaskIntoConstraints = false return graphView }() private lazy var graph: Graph = { let graph = Graph() return graph }() // MARK: - Life cycle override func viewDidLoad() { super.viewDidLoad() setupInterface() setupConstraints() configureGraphView() } // MARK: - Setup Interface private func setupInterface() { view.backgroundColor = .white view.addSubview(graphView) } private func setupConstraints() { NSLayoutConstraint.activate([ graphView.centerXAnchor.constraint(equalTo: view.centerXAnchor), graphView.centerYAnchor.constraint(equalTo: view.centerYAnchor), graphView.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.9), graphView.heightAnchor.constraint(equalTo: graphView.widthAnchor), ]) } // MARK: - Configure Graph private func configureGraphView() { let margin: CGFloat = 0.1 let minX: CGFloat = 0 let maxX: CGFloat = 6 let dataFrame = CGRect(x: minX - margin, y: -margin, width: maxX - minX + 2 * margin, height: 10) // configure graph var points = [GraphPoint]() for x in 0..<7 { let y = Float.random(in: 1..<9.0) let bar = RoundedBar(x: CGFloat(x), minY: 0, maxY: CGFloat(y)) bar.width = 10 bar.radius = 5 bar.color = .darkGray points.append(bar) } graph.addData(data: points) // Add decoration let grid = Grid(stepX: 1.0, stepY: 1.0) grid.color = .lightGray graphView.set(grid: grid) let horizontalAxis = HorizontalAxis(step: 1.0, position: .bottomOutside) horizontalAxis.axisDelegate = self graphView.set(horizontalAxis: horizontalAxis) // Configure Graph View graphView.add(graph: graph) graphView.configure(dataFrame: dataFrame, dataArea: dataFrame) } } extension SimpleBarGraphViewController: AxisDelegate { func needStringValue(for axis: Axis, at index: CGFloat) -> String { let i = Int(index) guard i >= 0, i <= 6 else { return "" } let weekdays = ["S", "M", "T", "W", "T", "F", "S"] return weekdays[i] } }
28.029412
105
0.577125
067fbeea28ce6340ce9358e67406ed179afed5d3
132,599
dart
Dart
lib/bindings/flutter_library_binding.dart
hetu-script/script-widget
b4f623f0510e62f1877d1f6a32bab5a473c50e15
[ "MIT" ]
2
2021-06-03T19:13:39.000Z
2021-12-28T18:23:20.000Z
lib/bindings/flutter_library_binding.dart
hetu-script/script-widget
b4f623f0510e62f1877d1f6a32bab5a473c50e15
[ "MIT" ]
2
2021-04-14T11:02:06.000Z
2021-04-16T11:15:39.000Z
lib/bindings/flutter_library_binding.dart
hetu-script/script-widget
b4f623f0510e62f1877d1f6a32bab5a473c50e15
[ "MIT" ]
null
null
null
import 'package:hetu_script/hetu_script.dart'; import 'package:meta/meta.dart'; import 'dart/ui/channel_buffers.g.dart'; import 'dart/ui/compositing.g.dart'; import 'dart/ui/geometry.g.dart'; import 'dart/ui/isolate_name_server.g.dart'; import 'dart/ui/painting.g.dart'; import 'dart/ui/platform_dispatcher.g.dart'; import 'dart/ui/plugins.g.dart'; import 'dart/ui/pointer.g.dart'; import 'dart/ui/semantics.g.dart'; import 'dart/ui/text.g.dart'; import 'dart/ui/window.g.dart'; import 'dart/math/random.g.dart'; import 'dart/async/async_error.g.dart'; import 'dart/async/deferred_load.g.dart'; import 'dart/async/future.g.dart'; import 'dart/async/timer.g.dart'; import 'dart/async/zone.g.dart'; import 'dart/convert/ascii.g.dart'; import 'dart/convert/base64.g.dart'; import 'dart/convert/byte_conversion.g.dart'; import 'dart/convert/html_escape.g.dart'; import 'dart/convert/json.g.dart'; import 'dart/convert/latin1.g.dart'; import 'dart/convert/line_splitter.g.dart'; import 'dart/convert/string_conversion.g.dart'; import 'dart/convert/utf.g.dart'; import 'dart/io/common.g.dart'; import 'dart/io/data_transformer.g.dart'; import 'dart/io/directory.g.dart'; import 'dart/io/file.g.dart'; import 'dart/io/file_system_entity.g.dart'; import 'dart/io/io_sink.g.dart'; import 'dart/io/link.g.dart'; import 'dart/io/overrides.g.dart'; import 'dart/io/platform.g.dart'; import 'dart/io/process.g.dart'; import 'dart/io/secure_server_socket.g.dart'; import 'dart/io/secure_socket.g.dart'; import 'dart/io/security_context.g.dart'; import 'dart/io/socket.g.dart'; import 'dart/io/stdio.g.dart'; import 'dart/io/string_transformer.g.dart'; import 'dart/io/sync_socket.g.dart'; import 'dart/core/bigint.g.dart'; import 'dart/core/date_time.g.dart'; import 'dart/core/duration.g.dart'; import 'dart/core/function.g.dart'; import 'dart/core/invocation.g.dart'; import 'dart/core/regexp.g.dart'; import 'dart/core/stacktrace.g.dart'; import 'dart/core/stopwatch.g.dart'; import 'dart/core/string_buffer.g.dart'; import 'dart/core/symbol.g.dart'; import 'dart/core/uri.g.dart'; import 'flutter/animation/animation.g.dart'; import 'flutter/animation/animations.g.dart'; import 'flutter/animation/animation_controller.g.dart'; import 'flutter/animation/curves.g.dart'; import 'flutter/animation/tween.g.dart'; import 'flutter/animation/tween_sequence.g.dart'; import 'flutter/cupertino/action_sheet.g.dart'; import 'flutter/cupertino/activity_indicator.g.dart'; import 'flutter/cupertino/app.g.dart'; import 'flutter/cupertino/bottom_tab_bar.g.dart'; import 'flutter/cupertino/button.g.dart'; import 'flutter/cupertino/colors.g.dart'; import 'flutter/cupertino/context_menu.g.dart'; import 'flutter/cupertino/context_menu_action.g.dart'; import 'flutter/cupertino/date_picker.g.dart'; import 'flutter/cupertino/dialog.g.dart'; import 'flutter/cupertino/form_row.g.dart'; import 'flutter/cupertino/form_section.g.dart'; import 'flutter/cupertino/icons.g.dart'; import 'flutter/cupertino/icon_theme_data.g.dart'; import 'flutter/cupertino/interface_level.g.dart'; import 'flutter/cupertino/localizations.g.dart'; import 'flutter/cupertino/nav_bar.g.dart'; import 'flutter/cupertino/page_scaffold.g.dart'; import 'flutter/cupertino/picker.g.dart'; import 'flutter/cupertino/refresh.g.dart'; import 'flutter/cupertino/route.g.dart'; import 'flutter/cupertino/scrollbar.g.dart'; import 'flutter/cupertino/search_field.g.dart'; import 'flutter/cupertino/slider.g.dart'; import 'flutter/cupertino/switch.g.dart'; import 'flutter/cupertino/tab_scaffold.g.dart'; import 'flutter/cupertino/tab_view.g.dart'; import 'flutter/cupertino/text_field.g.dart'; import 'flutter/cupertino/text_form_field_row.g.dart'; import 'flutter/cupertino/text_selection.g.dart'; import 'flutter/cupertino/text_selection_toolbar.g.dart'; import 'flutter/cupertino/text_selection_toolbar_button.g.dart'; import 'flutter/cupertino/text_theme.g.dart'; import 'flutter/cupertino/theme.g.dart'; import 'flutter/cupertino/thumb_painter.g.dart'; import 'flutter/foundation/annotations.g.dart'; import 'flutter/foundation/assertions.g.dart'; import 'flutter/foundation/change_notifier.g.dart'; import 'flutter/foundation/diagnostics.g.dart'; import 'flutter/foundation/key.g.dart'; import 'flutter/foundation/licenses.g.dart'; import 'flutter/foundation/node.g.dart'; import 'flutter/foundation/platform.g.dart'; import 'flutter/foundation/serialization.g.dart'; import 'flutter/foundation/stack_frame.g.dart'; import 'flutter/foundation/unicode.g.dart'; import 'flutter/gestures/arena.g.dart'; import 'flutter/gestures/binding.g.dart'; import 'flutter/gestures/converter.g.dart'; import 'flutter/gestures/drag_details.g.dart'; import 'flutter/gestures/eager.g.dart'; import 'flutter/gestures/events.g.dart'; import 'flutter/gestures/force_press.g.dart'; import 'flutter/gestures/hit_test.g.dart'; import 'flutter/gestures/long_press.g.dart'; import 'flutter/gestures/lsq_solver.g.dart'; import 'flutter/gestures/monodrag.g.dart'; import 'flutter/gestures/multidrag.g.dart'; import 'flutter/gestures/multitap.g.dart'; import 'flutter/gestures/pointer_router.g.dart'; import 'flutter/gestures/pointer_signal_resolver.g.dart'; import 'flutter/gestures/recognizer.g.dart'; import 'flutter/gestures/resampler.g.dart'; import 'flutter/gestures/scale.g.dart'; import 'flutter/gestures/tap.g.dart'; import 'flutter/gestures/team.g.dart'; import 'flutter/gestures/velocity_tracker.g.dart'; import 'flutter/material/about.g.dart'; import 'flutter/material/animated_icons.g.dart'; import 'flutter/material/animated_icons_data.g.dart'; import 'flutter/material/app.g.dart'; import 'flutter/material/app_bar.g.dart'; import 'flutter/material/app_bar_theme.g.dart'; import 'flutter/material/arc.g.dart'; import 'flutter/material/back_button.g.dart'; import 'flutter/material/banner.g.dart'; import 'flutter/material/banner_theme.g.dart'; import 'flutter/material/bottom_app_bar.g.dart'; import 'flutter/material/bottom_app_bar_theme.g.dart'; import 'flutter/material/bottom_navigation_bar.g.dart'; import 'flutter/material/bottom_navigation_bar_theme.g.dart'; import 'flutter/material/bottom_sheet.g.dart'; import 'flutter/material/bottom_sheet_theme.g.dart'; import 'flutter/material/button.g.dart'; import 'flutter/material/button_bar.g.dart'; import 'flutter/material/button_bar_theme.g.dart'; import 'flutter/material/button_style.g.dart'; import 'flutter/material/button_theme.g.dart'; import 'flutter/material/calendar_date_picker.g.dart'; import 'flutter/material/card.g.dart'; import 'flutter/material/card_theme.g.dart'; import 'flutter/material/checkbox.g.dart'; import 'flutter/material/checkbox_list_tile.g.dart'; import 'flutter/material/checkbox_theme.g.dart'; import 'flutter/material/chip.g.dart'; import 'flutter/material/chip_theme.g.dart'; import 'flutter/material/circle_avatar.g.dart'; import 'flutter/material/colors.g.dart'; import 'flutter/material/color_scheme.g.dart'; import 'flutter/material/data_table.g.dart'; import 'flutter/material/data_table_theme.g.dart'; import 'flutter/material/date.g.dart'; import 'flutter/material/dialog.g.dart'; import 'flutter/material/dialog_theme.g.dart'; import 'flutter/material/divider.g.dart'; import 'flutter/material/divider_theme.g.dart'; import 'flutter/material/drawer.g.dart'; import 'flutter/material/drawer_header.g.dart'; import 'flutter/material/dropdown.g.dart'; import 'flutter/material/elevated_button.g.dart'; import 'flutter/material/elevated_button_theme.g.dart'; import 'flutter/material/elevation_overlay.g.dart'; import 'flutter/material/expand_icon.g.dart'; import 'flutter/material/expansion_panel.g.dart'; import 'flutter/material/expansion_tile.g.dart'; import 'flutter/material/feedback.g.dart'; import 'flutter/material/flexible_space_bar.g.dart'; import 'flutter/material/floating_action_button.g.dart'; import 'flutter/material/floating_action_button_theme.g.dart'; import 'flutter/material/flutter_logo.g.dart'; import 'flutter/material/grid_tile.g.dart'; import 'flutter/material/grid_tile_bar.g.dart'; import 'flutter/material/icons.g.dart'; import 'flutter/material/icon_button.g.dart'; import 'flutter/material/ink_decoration.g.dart'; import 'flutter/material/ink_highlight.g.dart'; import 'flutter/material/ink_ripple.g.dart'; import 'flutter/material/ink_splash.g.dart'; import 'flutter/material/ink_well.g.dart'; import 'flutter/material/input_border.g.dart'; import 'flutter/material/input_date_picker_form_field.g.dart'; import 'flutter/material/input_decorator.g.dart'; import 'flutter/material/list_tile.g.dart'; import 'flutter/material/material.g.dart'; import 'flutter/material/material_button.g.dart'; import 'flutter/material/material_localizations.g.dart'; import 'flutter/material/material_state.g.dart'; import 'flutter/material/mergeable_material.g.dart'; import 'flutter/material/navigation_rail.g.dart'; import 'flutter/material/navigation_rail_theme.g.dart'; import 'flutter/material/outlined_button.g.dart'; import 'flutter/material/outlined_button_theme.g.dart'; import 'flutter/material/page_transitions_theme.g.dart'; import 'flutter/material/paginated_data_table.g.dart'; import 'flutter/material/popup_menu.g.dart'; import 'flutter/material/popup_menu_theme.g.dart'; import 'flutter/material/progress_indicator.g.dart'; import 'flutter/material/radio_theme.g.dart'; import 'flutter/material/range_slider.g.dart'; import 'flutter/material/refresh_indicator.g.dart'; import 'flutter/material/reorderable_list.g.dart'; import 'flutter/material/scaffold.g.dart'; import 'flutter/material/scrollbar.g.dart'; import 'flutter/material/scrollbar_theme.g.dart'; import 'flutter/material/selectable_text.g.dart'; import 'flutter/material/slider.g.dart'; import 'flutter/material/slider_theme.g.dart'; import 'flutter/material/snack_bar.g.dart'; import 'flutter/material/snack_bar_theme.g.dart'; import 'flutter/material/stepper.g.dart'; import 'flutter/material/switch.g.dart'; import 'flutter/material/switch_list_tile.g.dart'; import 'flutter/material/switch_theme.g.dart'; import 'flutter/material/tabs.g.dart'; import 'flutter/material/tab_bar_theme.g.dart'; import 'flutter/material/tab_controller.g.dart'; import 'flutter/material/tab_indicator.g.dart'; import 'flutter/material/text_button.g.dart'; import 'flutter/material/text_button_theme.g.dart'; import 'flutter/material/text_field.g.dart'; import 'flutter/material/text_form_field.g.dart'; import 'flutter/material/text_selection.g.dart'; import 'flutter/material/text_selection_theme.g.dart'; import 'flutter/material/text_selection_toolbar.g.dart'; import 'flutter/material/text_selection_toolbar_text_button.g.dart'; import 'flutter/material/text_theme.g.dart'; import 'flutter/material/theme.g.dart'; import 'flutter/material/theme_data.g.dart'; import 'flutter/material/time.g.dart'; import 'flutter/material/time_picker.g.dart'; import 'flutter/material/time_picker_theme.g.dart'; import 'flutter/material/toggle_buttons.g.dart'; import 'flutter/material/toggle_buttons_theme.g.dart'; import 'flutter/material/tooltip.g.dart'; import 'flutter/material/tooltip_theme.g.dart'; import 'flutter/material/typography.g.dart'; import 'flutter/material/user_accounts_drawer_header.g.dart'; import 'flutter/painting/alignment.g.dart'; import 'flutter/painting/basic_types.g.dart'; import 'flutter/painting/beveled_rectangle_border.g.dart'; import 'flutter/painting/borders.g.dart'; import 'flutter/painting/border_radius.g.dart'; import 'flutter/painting/box_border.g.dart'; import 'flutter/painting/box_decoration.g.dart'; import 'flutter/painting/box_fit.g.dart'; import 'flutter/painting/box_shadow.g.dart'; import 'flutter/painting/circle_border.g.dart'; import 'flutter/painting/colors.g.dart'; import 'flutter/painting/continuous_rectangle_border.g.dart'; import 'flutter/painting/debug.g.dart'; import 'flutter/painting/decoration_image.g.dart'; import 'flutter/painting/edge_insets.g.dart'; import 'flutter/painting/flutter_logo.g.dart'; import 'flutter/painting/fractional_offset.g.dart'; import 'flutter/painting/gradient.g.dart'; import 'flutter/painting/image_cache.g.dart'; import 'flutter/painting/image_provider.g.dart'; import 'flutter/painting/image_resolution.g.dart'; import 'flutter/painting/image_stream.g.dart'; import 'flutter/painting/inline_span.g.dart'; import 'flutter/painting/matrix_utils.g.dart'; import 'flutter/painting/notched_shapes.g.dart'; import 'flutter/painting/rounded_rectangle_border.g.dart'; import 'flutter/painting/shader_warm_up.g.dart'; import 'flutter/painting/shape_decoration.g.dart'; import 'flutter/painting/stadium_border.g.dart'; import 'flutter/painting/strut_style.g.dart'; import 'flutter/painting/text_painter.g.dart'; import 'flutter/painting/text_span.g.dart'; import 'flutter/painting/text_style.g.dart'; import 'flutter/physics/clamped_simulation.g.dart'; import 'flutter/physics/friction_simulation.g.dart'; import 'flutter/physics/gravity_simulation.g.dart'; import 'flutter/physics/spring_simulation.g.dart'; import 'flutter/physics/tolerance.g.dart'; import 'flutter/rendering/animated_size.g.dart'; import 'flutter/rendering/binding.g.dart'; import 'flutter/rendering/box.g.dart'; import 'flutter/rendering/custom_layout.g.dart'; import 'flutter/rendering/custom_paint.g.dart'; import 'flutter/rendering/editable.g.dart'; import 'flutter/rendering/error.g.dart'; import 'flutter/rendering/flex.g.dart'; import 'flutter/rendering/flow.g.dart'; import 'flutter/rendering/image.g.dart'; import 'flutter/rendering/layer.g.dart'; import 'flutter/rendering/layout_helper.g.dart'; import 'flutter/rendering/list_body.g.dart'; import 'flutter/rendering/list_wheel_viewport.g.dart'; import 'flutter/rendering/mouse_cursor.g.dart'; import 'flutter/rendering/mouse_tracking.g.dart'; import 'flutter/rendering/object.g.dart'; import 'flutter/rendering/paragraph.g.dart'; import 'flutter/rendering/performance_overlay.g.dart'; import 'flutter/rendering/platform_view.g.dart'; import 'flutter/rendering/proxy_box.g.dart'; import 'flutter/rendering/proxy_sliver.g.dart'; import 'flutter/rendering/rotated_box.g.dart'; import 'flutter/rendering/shifted_box.g.dart'; import 'flutter/rendering/sliver.g.dart'; import 'flutter/rendering/sliver_fill.g.dart'; import 'flutter/rendering/sliver_fixed_extent_list.g.dart'; import 'flutter/rendering/sliver_grid.g.dart'; import 'flutter/rendering/sliver_list.g.dart'; import 'flutter/rendering/sliver_multi_box_adaptor.g.dart'; import 'flutter/rendering/sliver_padding.g.dart'; import 'flutter/rendering/sliver_persistent_header.g.dart'; import 'flutter/rendering/stack.g.dart'; import 'flutter/rendering/table.g.dart'; import 'flutter/rendering/table_border.g.dart'; import 'flutter/rendering/texture.g.dart'; import 'flutter/rendering/tweens.g.dart'; import 'flutter/rendering/view.g.dart'; import 'flutter/rendering/viewport.g.dart'; import 'flutter/rendering/viewport_offset.g.dart'; import 'flutter/rendering/wrap.g.dart'; import 'flutter/scheduler/binding.g.dart'; import 'flutter/scheduler/priority.g.dart'; import 'flutter/scheduler/ticker.g.dart'; import 'flutter/semantics/semantics.g.dart'; import 'flutter/semantics/semantics_event.g.dart'; import 'flutter/semantics/semantics_service.g.dart'; import 'flutter/services/asset_bundle.g.dart'; import 'flutter/services/autofill.g.dart'; import 'flutter/services/clipboard.g.dart'; import 'flutter/services/deferred_component.g.dart'; import 'flutter/services/font_loader.g.dart'; import 'flutter/services/haptic_feedback.g.dart'; import 'flutter/services/keyboard_key.g.dart'; import 'flutter/services/message_codec.g.dart'; import 'flutter/services/message_codecs.g.dart'; import 'flutter/services/platform_channel.g.dart'; import 'flutter/services/platform_views.g.dart'; import 'flutter/services/raw_keyboard.g.dart'; import 'flutter/services/raw_keyboard_android.g.dart'; import 'flutter/services/raw_keyboard_fuchsia.g.dart'; import 'flutter/services/raw_keyboard_ios.g.dart'; import 'flutter/services/raw_keyboard_linux.g.dart'; import 'flutter/services/raw_keyboard_macos.g.dart'; import 'flutter/services/raw_keyboard_web.g.dart'; import 'flutter/services/raw_keyboard_windows.g.dart'; import 'flutter/services/restoration.g.dart'; import 'flutter/services/system_channels.g.dart'; import 'flutter/services/system_chrome.g.dart'; import 'flutter/services/system_navigator.g.dart'; import 'flutter/services/system_sound.g.dart'; import 'flutter/services/text_editing.g.dart'; import 'flutter/services/text_formatter.g.dart'; import 'flutter/services/text_input.g.dart'; import 'flutter/widgets/actions.g.dart'; import 'flutter/widgets/animated_cross_fade.g.dart'; import 'flutter/widgets/animated_list.g.dart'; import 'flutter/widgets/animated_size.g.dart'; import 'flutter/widgets/animated_switcher.g.dart'; import 'flutter/widgets/app.g.dart'; import 'flutter/widgets/async.g.dart'; import 'flutter/widgets/autofill.g.dart'; import 'flutter/widgets/automatic_keep_alive.g.dart'; import 'flutter/widgets/banner.g.dart'; import 'flutter/widgets/basic.g.dart'; import 'flutter/widgets/binding.g.dart'; import 'flutter/widgets/bottom_navigation_bar_item.g.dart'; import 'flutter/widgets/color_filter.g.dart'; import 'flutter/widgets/container.g.dart'; import 'flutter/widgets/desktop_text_selection_toolbar_layout_delegate.g.dart'; import 'flutter/widgets/dismissible.g.dart'; import 'flutter/widgets/draggable_scrollable_sheet.g.dart'; import 'flutter/widgets/drag_target.g.dart'; import 'flutter/widgets/dual_transition_builder.g.dart'; import 'flutter/widgets/editable_text.g.dart'; import 'flutter/widgets/fade_in_image.g.dart'; import 'flutter/widgets/focus_manager.g.dart'; import 'flutter/widgets/focus_scope.g.dart'; import 'flutter/widgets/focus_traversal.g.dart'; import 'flutter/widgets/form.g.dart'; import 'flutter/widgets/framework.g.dart'; import 'flutter/widgets/gesture_detector.g.dart'; import 'flutter/widgets/grid_paper.g.dart'; import 'flutter/widgets/heroes.g.dart'; import 'flutter/widgets/icon.g.dart'; import 'flutter/widgets/icon_data.g.dart'; import 'flutter/widgets/icon_theme.g.dart'; import 'flutter/widgets/icon_theme_data.g.dart'; import 'flutter/widgets/image.g.dart'; import 'flutter/widgets/image_filter.g.dart'; import 'flutter/widgets/image_icon.g.dart'; import 'flutter/widgets/implicit_animations.g.dart'; import 'flutter/widgets/interactive_viewer.g.dart'; import 'flutter/widgets/layout_builder.g.dart'; import 'flutter/widgets/list_wheel_scroll_view.g.dart'; import 'flutter/widgets/localizations.g.dart'; import 'flutter/widgets/media_query.g.dart'; import 'flutter/widgets/modal_barrier.g.dart'; import 'flutter/widgets/navigation_toolbar.g.dart'; import 'flutter/widgets/navigator.g.dart'; import 'flutter/widgets/nested_scroll_view.g.dart'; import 'flutter/widgets/notification_listener.g.dart'; import 'flutter/widgets/orientation_builder.g.dart'; import 'flutter/widgets/overflow_bar.g.dart'; import 'flutter/widgets/overlay.g.dart'; import 'flutter/widgets/overscroll_indicator.g.dart'; import 'flutter/widgets/page_storage.g.dart'; import 'flutter/widgets/page_view.g.dart'; import 'flutter/widgets/performance_overlay.g.dart'; import 'flutter/widgets/placeholder.g.dart'; import 'flutter/widgets/platform_view.g.dart'; import 'flutter/widgets/preferred_size.g.dart'; import 'flutter/widgets/primary_scroll_controller.g.dart'; import 'flutter/widgets/raw_keyboard_listener.g.dart'; import 'flutter/widgets/reorderable_list.g.dart'; import 'flutter/widgets/restoration.g.dart'; import 'flutter/widgets/restoration_properties.g.dart'; import 'flutter/widgets/router.g.dart'; import 'flutter/widgets/routes.g.dart'; import 'flutter/widgets/safe_area.g.dart'; import 'flutter/widgets/scrollable.g.dart'; import 'flutter/widgets/scrollbar.g.dart'; import 'flutter/widgets/scroll_activity.g.dart'; import 'flutter/widgets/scroll_configuration.g.dart'; import 'flutter/widgets/scroll_controller.g.dart'; import 'flutter/widgets/scroll_metrics.g.dart'; import 'flutter/widgets/scroll_notification.g.dart'; import 'flutter/widgets/scroll_physics.g.dart'; import 'flutter/widgets/scroll_position.g.dart'; import 'flutter/widgets/scroll_position_with_single_context.g.dart'; import 'flutter/widgets/scroll_simulation.g.dart'; import 'flutter/widgets/scroll_view.g.dart'; import 'flutter/widgets/semantics_debugger.g.dart'; import 'flutter/widgets/shortcuts.g.dart'; import 'flutter/widgets/single_child_scroll_view.g.dart'; import 'flutter/widgets/size_changed_layout_notifier.g.dart'; import 'flutter/widgets/sliver.g.dart'; import 'flutter/widgets/sliver_fill.g.dart'; import 'flutter/widgets/sliver_layout_builder.g.dart'; import 'flutter/widgets/sliver_persistent_header.g.dart'; import 'flutter/widgets/sliver_prototype_extent_list.g.dart'; import 'flutter/widgets/spacer.g.dart'; import 'flutter/widgets/table.g.dart'; import 'flutter/widgets/text.g.dart'; import 'flutter/widgets/texture.g.dart'; import 'flutter/widgets/text_selection.g.dart'; import 'flutter/widgets/text_selection_toolbar_layout_delegate.g.dart'; import 'flutter/widgets/ticker_provider.g.dart'; import 'flutter/widgets/title.g.dart'; import 'flutter/widgets/transitions.g.dart'; import 'flutter/widgets/viewport.g.dart'; import 'flutter/widgets/visibility.g.dart'; import 'flutter/widgets/widget_inspector.g.dart'; import 'flutter/widgets/widget_span.g.dart'; import 'flutter/widgets/will_pop_scope.g.dart'; import 'binding_handler.dart'; class FlutterLibraryBinding extends BindingHandler { FlutterLibraryBinding(Hetu interpreter) { this.interpreter = interpreter; } @override @mustCallSuper void loadExternalFunctions() { final externalFunctions = <String, Function>{}; externalFunctions.forEach((key, value) { interpreter.bindExternalFunction(key, value); }); } @override @mustCallSuper void loadExternalFunctionTypes() { var functionWrappers = <String, HTExternalFunctionTypedef>{}; functionWrappers.addAll(ChannelBuffersAutoBinding.functionWrapper()); functionWrappers.addAll(ZoneSpecificationAutoBinding.functionWrapper()); functionWrappers.addAll(ProxyAnimationAutoBinding.functionWrapper()); functionWrappers.addAll(ReverseAnimationAutoBinding.functionWrapper()); functionWrappers.addAll(CurvedAnimationAutoBinding.functionWrapper()); functionWrappers.addAll(TrainHoppingAnimationAutoBinding.functionWrapper()); functionWrappers.addAll(AnimationMeanAutoBinding.functionWrapper()); functionWrappers.addAll(AnimationControllerAutoBinding.functionWrapper()); functionWrappers .addAll(CupertinoActionSheetActionAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoAppAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoButtonAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoContextMenuAutoBinding.functionWrapper()); functionWrappers .addAll(CupertinoContextMenuActionAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoDialogActionAutoBinding.functionWrapper()); functionWrappers .addAll(CupertinoNavigationBarBackButtonAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoPickerAutoBinding.functionWrapper()); functionWrappers .addAll(CupertinoSliverRefreshControlAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoScrollbarAutoBinding.functionWrapper()); functionWrappers .addAll(CupertinoSearchTextFieldAutoBinding.functionWrapper()); functionWrappers .addAll(CupertinoTabControllerAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoTabScaffoldAutoBinding.functionWrapper()); functionWrappers .addAll(RestorableCupertinoTabControllerAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoTabViewAutoBinding.functionWrapper()); functionWrappers.addAll(CupertinoTextFieldAutoBinding.functionWrapper()); functionWrappers .addAll(CupertinoTextFormFieldRowAutoBinding.functionWrapper()); functionWrappers .addAll(CupertinoTextSelectionToolbarAutoBinding.functionWrapper()); functionWrappers.addAll( CupertinoTextSelectionToolbarButtonAutoBinding.functionWrapper()); functionWrappers.addAll(FlutterErrorDetailsAutoBinding.functionWrapper()); functionWrappers.addAll(ListenableAutoBinding.functionWrapper()); functionWrappers.addAll(ChangeNotifierAutoBinding.functionWrapper()); functionWrappers.addAll(LicenseRegistryAutoBinding.functionWrapper()); functionWrappers.addAll( FlutterErrorDetailsForPointerEventDispatcherAutoBinding .functionWrapper()); functionWrappers .addAll(ForcePressGestureRecognizerAutoBinding.functionWrapper()); functionWrappers.addAll(PointerRouterAutoBinding.functionWrapper()); functionWrappers.addAll(PointerSignalResolverAutoBinding.functionWrapper()); functionWrappers.addAll(PointerEventResamplerAutoBinding.functionWrapper()); functionWrappers.addAll(MaterialAppAutoBinding.functionWrapper()); functionWrappers.addAll(SliverAppBarAutoBinding.functionWrapper()); functionWrappers.addAll(BackButtonAutoBinding.functionWrapper()); functionWrappers.addAll(CloseButtonAutoBinding.functionWrapper()); functionWrappers.addAll(BottomSheetAutoBinding.functionWrapper()); functionWrappers.addAll(RawMaterialButtonAutoBinding.functionWrapper()); functionWrappers.addAll(CalendarDatePickerAutoBinding.functionWrapper()); functionWrappers.addAll(ChipAutoBinding.functionWrapper()); functionWrappers.addAll(InputChipAutoBinding.functionWrapper()); functionWrappers.addAll(ActionChipAutoBinding.functionWrapper()); functionWrappers.addAll(RawChipAutoBinding.functionWrapper()); functionWrappers.addAll(CircleAvatarAutoBinding.functionWrapper()); functionWrappers.addAll(DataColumnAutoBinding.functionWrapper()); functionWrappers.addAll(DataCellAutoBinding.functionWrapper()); functionWrappers.addAll(TableRowInkWellAutoBinding.functionWrapper()); functionWrappers.addAll(SimpleDialogOptionAutoBinding.functionWrapper()); functionWrappers.addAll(DrawerControllerAutoBinding.functionWrapper()); functionWrappers.addAll(DrawerControllerStateAutoBinding.functionWrapper()); functionWrappers.addAll(ElevatedButtonAutoBinding.functionWrapper()); functionWrappers.addAll(ExpansionPanelAutoBinding.functionWrapper()); functionWrappers.addAll(ExpansionPanelRadioAutoBinding.functionWrapper()); functionWrappers.addAll(ExpansionPanelListAutoBinding.functionWrapper()); functionWrappers.addAll(FeedbackAutoBinding.functionWrapper()); functionWrappers.addAll(FloatingActionButtonAutoBinding.functionWrapper()); functionWrappers.addAll(IconButtonAutoBinding.functionWrapper()); functionWrappers.addAll(InkAutoBinding.functionWrapper()); functionWrappers.addAll(InkDecorationAutoBinding.functionWrapper()); functionWrappers.addAll(InkHighlightAutoBinding.functionWrapper()); functionWrappers.addAll(InkRippleAutoBinding.functionWrapper()); functionWrappers.addAll(InkSplashAutoBinding.functionWrapper()); functionWrappers.addAll(InkResponseAutoBinding.functionWrapper()); functionWrappers.addAll(InkWellAutoBinding.functionWrapper()); functionWrappers .addAll(InputDatePickerFormFieldAutoBinding.functionWrapper()); functionWrappers.addAll(ListTileAutoBinding.functionWrapper()); functionWrappers.addAll(MaterialButtonAutoBinding.functionWrapper()); functionWrappers.addAll(OutlinedButtonAutoBinding.functionWrapper()); functionWrappers.addAll(RangeSliderAutoBinding.functionWrapper()); functionWrappers.addAll(RefreshIndicatorAutoBinding.functionWrapper()); functionWrappers.addAll(RefreshIndicatorStateAutoBinding.functionWrapper()); functionWrappers.addAll(ReorderableListViewAutoBinding.functionWrapper()); functionWrappers .addAll(ScaffoldMessengerStateAutoBinding.functionWrapper()); functionWrappers.addAll(ScaffoldAutoBinding.functionWrapper()); functionWrappers.addAll(ScaffoldStateAutoBinding.functionWrapper()); functionWrappers.addAll(ScrollbarAutoBinding.functionWrapper()); functionWrappers.addAll(SelectableTextAutoBinding.functionWrapper()); functionWrappers.addAll(SliderAutoBinding.functionWrapper()); functionWrappers.addAll(SliderThemeDataAutoBinding.functionWrapper()); functionWrappers.addAll(SnackBarActionAutoBinding.functionWrapper()); functionWrappers.addAll(SnackBarAutoBinding.functionWrapper()); functionWrappers.addAll(StepperAutoBinding.functionWrapper()); functionWrappers.addAll(SwitchAutoBinding.functionWrapper()); functionWrappers.addAll(TabControllerAutoBinding.functionWrapper()); functionWrappers.addAll(UnderlineTabIndicatorAutoBinding.functionWrapper()); functionWrappers.addAll(TextButtonAutoBinding.functionWrapper()); functionWrappers.addAll(TextFieldAutoBinding.functionWrapper()); functionWrappers.addAll(TextFormFieldAutoBinding.functionWrapper()); functionWrappers.addAll(TextSelectionToolbarAutoBinding.functionWrapper()); functionWrappers .addAll(TextSelectionToolbarTextButtonAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedThemeAutoBinding.functionWrapper()); functionWrappers .addAll(UserAccountsDrawerHeaderAutoBinding.functionWrapper()); functionWrappers.addAll(BoxDecorationAutoBinding.functionWrapper()); functionWrappers.addAll(DecorationImageAutoBinding.functionWrapper()); functionWrappers.addAll(FlutterLogoDecorationAutoBinding.functionWrapper()); functionWrappers.addAll(ImageCacheAutoBinding.functionWrapper()); functionWrappers.addAll(ResizeImageAutoBinding.functionWrapper()); functionWrappers.addAll(NetworkImageAutoBinding.functionWrapper()); functionWrappers.addAll(FileImageAutoBinding.functionWrapper()); functionWrappers.addAll(MemoryImageAutoBinding.functionWrapper()); functionWrappers.addAll(ExactAssetImageAutoBinding.functionWrapper()); functionWrappers.addAll(AssetImageAutoBinding.functionWrapper()); functionWrappers.addAll(ImageStreamListenerAutoBinding.functionWrapper()); functionWrappers .addAll(OneFrameImageStreamCompleterAutoBinding.functionWrapper()); functionWrappers .addAll(MultiFrameImageStreamCompleterAutoBinding.functionWrapper()); functionWrappers.addAll(ShapeDecorationAutoBinding.functionWrapper()); functionWrappers.addAll(TextSpanAutoBinding.functionWrapper()); functionWrappers.addAll(RenderAnimatedSizeAutoBinding.functionWrapper()); functionWrappers .addAll(RenderingFlutterBindingAutoBinding.functionWrapper()); functionWrappers.addAll(BoxConstraintsAutoBinding.functionWrapper()); functionWrappers.addAll(BoxHitTestResultAutoBinding.functionWrapper()); functionWrappers .addAll(RenderCustomMultiChildLayoutBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderCustomPaintAutoBinding.functionWrapper()); functionWrappers.addAll(RenderEditableAutoBinding.functionWrapper()); functionWrappers.addAll(RenderErrorBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderFlexAutoBinding.functionWrapper()); functionWrappers.addAll(RenderFlowAutoBinding.functionWrapper()); functionWrappers.addAll(RenderImageAutoBinding.functionWrapper()); functionWrappers.addAll(RenderListBodyAutoBinding.functionWrapper()); functionWrappers .addAll(RenderListWheelViewportAutoBinding.functionWrapper()); functionWrappers .addAll(MouseTrackerAnnotationAutoBinding.functionWrapper()); functionWrappers.addAll(MouseTrackerAutoBinding.functionWrapper()); functionWrappers.addAll(PaintingContextAutoBinding.functionWrapper()); functionWrappers.addAll(PipelineOwnerAutoBinding.functionWrapper()); functionWrappers.addAll(RenderParagraphAutoBinding.functionWrapper()); functionWrappers .addAll(RenderPerformanceOverlayAutoBinding.functionWrapper()); functionWrappers.addAll(RenderAndroidViewAutoBinding.functionWrapper()); functionWrappers.addAll(RenderUiKitViewAutoBinding.functionWrapper()); functionWrappers.addAll(PlatformViewRenderBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderProxyBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderConstrainedBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderLimitedBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderAspectRatioAutoBinding.functionWrapper()); functionWrappers.addAll(RenderIntrinsicWidthAutoBinding.functionWrapper()); functionWrappers.addAll(RenderIntrinsicHeightAutoBinding.functionWrapper()); functionWrappers.addAll(RenderOpacityAutoBinding.functionWrapper()); functionWrappers.addAll(RenderAnimatedOpacityAutoBinding.functionWrapper()); functionWrappers.addAll(RenderShaderMaskAutoBinding.functionWrapper()); functionWrappers.addAll(RenderBackdropFilterAutoBinding.functionWrapper()); functionWrappers.addAll(ShapeBorderClipperAutoBinding.functionWrapper()); functionWrappers.addAll(RenderClipRectAutoBinding.functionWrapper()); functionWrappers.addAll(RenderClipRRectAutoBinding.functionWrapper()); functionWrappers.addAll(RenderClipOvalAutoBinding.functionWrapper()); functionWrappers.addAll(RenderClipPathAutoBinding.functionWrapper()); functionWrappers.addAll(RenderPhysicalModelAutoBinding.functionWrapper()); functionWrappers.addAll(RenderPhysicalShapeAutoBinding.functionWrapper()); functionWrappers.addAll(RenderDecoratedBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderTransformAutoBinding.functionWrapper()); functionWrappers.addAll(RenderFittedBoxAutoBinding.functionWrapper()); functionWrappers .addAll(RenderFractionalTranslationAutoBinding.functionWrapper()); functionWrappers.addAll(RenderPointerListenerAutoBinding.functionWrapper()); functionWrappers.addAll(RenderMouseRegionAutoBinding.functionWrapper()); functionWrappers.addAll(RenderRepaintBoundaryAutoBinding.functionWrapper()); functionWrappers.addAll(RenderIgnorePointerAutoBinding.functionWrapper()); functionWrappers.addAll(RenderOffstageAutoBinding.functionWrapper()); functionWrappers.addAll(RenderAbsorbPointerAutoBinding.functionWrapper()); functionWrappers.addAll(RenderMetaDataAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSemanticsGestureHandlerAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSemanticsAnnotationsAutoBinding.functionWrapper()); functionWrappers.addAll(RenderBlockSemanticsAutoBinding.functionWrapper()); functionWrappers.addAll(RenderMergeSemanticsAutoBinding.functionWrapper()); functionWrappers .addAll(RenderExcludeSemanticsAutoBinding.functionWrapper()); functionWrappers .addAll(RenderIndexedSemanticsAutoBinding.functionWrapper()); functionWrappers.addAll(RenderLeaderLayerAutoBinding.functionWrapper()); functionWrappers.addAll(RenderFollowerLayerAutoBinding.functionWrapper()); functionWrappers.addAll(RenderSliverOpacityAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSliverIgnorePointerAutoBinding.functionWrapper()); functionWrappers.addAll(RenderSliverOffstageAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSliverAnimatedOpacityAutoBinding.functionWrapper()); functionWrappers.addAll(RenderRotatedBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderPaddingAutoBinding.functionWrapper()); functionWrappers.addAll(RenderPositionedBoxAutoBinding.functionWrapper()); functionWrappers .addAll(RenderConstrainedOverflowBoxAutoBinding.functionWrapper()); functionWrappers .addAll(RenderUnconstrainedBoxAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSizedOverflowBoxAutoBinding.functionWrapper()); functionWrappers.addAll( RenderFractionallySizedOverflowBoxAutoBinding.functionWrapper()); functionWrappers .addAll(RenderCustomSingleChildLayoutBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderBaselineAutoBinding.functionWrapper()); functionWrappers.addAll(SliverConstraintsAutoBinding.functionWrapper()); functionWrappers.addAll(SliverGeometryAutoBinding.functionWrapper()); functionWrappers.addAll(SliverHitTestResultAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSliverToBoxAdapterAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSliverFillViewportAutoBinding.functionWrapper()); functionWrappers.addAll( RenderSliverFillRemainingWithScrollableAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSliverFillRemainingAutoBinding.functionWrapper()); functionWrappers.addAll( RenderSliverFillRemainingAndOverscrollAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSliverFixedExtentListAutoBinding.functionWrapper()); functionWrappers.addAll(RenderSliverGridAutoBinding.functionWrapper()); functionWrappers.addAll(RenderSliverListAutoBinding.functionWrapper()); functionWrappers.addAll(RenderSliverPaddingAutoBinding.functionWrapper()); functionWrappers.addAll( OverScrollHeaderStretchConfigurationAutoBinding.functionWrapper()); functionWrappers.addAll(RenderStackAutoBinding.functionWrapper()); functionWrappers.addAll(RenderIndexedStackAutoBinding.functionWrapper()); functionWrappers.addAll(RenderTableAutoBinding.functionWrapper()); functionWrappers.addAll(TextureBoxAutoBinding.functionWrapper()); functionWrappers.addAll(RenderViewAutoBinding.functionWrapper()); functionWrappers.addAll(RenderViewportAutoBinding.functionWrapper()); functionWrappers .addAll(RenderShrinkWrappingViewportAutoBinding.functionWrapper()); functionWrappers.addAll(ViewportOffsetAutoBinding.functionWrapper()); functionWrappers.addAll(RenderWrapAutoBinding.functionWrapper()); functionWrappers.addAll(TickerAutoBinding.functionWrapper()); functionWrappers.addAll(TickerFutureAutoBinding.functionWrapper()); functionWrappers.addAll(SemanticsPropertiesAutoBinding.functionWrapper()); functionWrappers.addAll(SemanticsNodeAutoBinding.functionWrapper()); functionWrappers.addAll(SemanticsOwnerAutoBinding.functionWrapper()); functionWrappers .addAll(SemanticsConfigurationAutoBinding.functionWrapper()); functionWrappers.addAll(PlatformViewsServiceAutoBinding.functionWrapper()); functionWrappers.addAll(RestorationManagerAutoBinding.functionWrapper()); functionWrappers.addAll(TextInputFormatterAutoBinding.functionWrapper()); functionWrappers.addAll(ActionListenerAutoBinding.functionWrapper()); functionWrappers.addAll(DoNothingActionAutoBinding.functionWrapper()); functionWrappers.addAll(PrioritizedActionAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedCrossFadeAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedListAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedListStateAutoBinding.functionWrapper()); functionWrappers.addAll(SliverAnimatedListAutoBinding.functionWrapper()); functionWrappers .addAll(SliverAnimatedListStateAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedSwitcherAutoBinding.functionWrapper()); functionWrappers.addAll(WidgetsAppAutoBinding.functionWrapper()); functionWrappers.addAll(KeepAliveHandleAutoBinding.functionWrapper()); functionWrappers.addAll(BannerPainterAutoBinding.functionWrapper()); functionWrappers.addAll(ShaderMaskAutoBinding.functionWrapper()); functionWrappers .addAll(WidgetToRenderBoxAdapterAutoBinding.functionWrapper()); functionWrappers.addAll(ListenerAutoBinding.functionWrapper()); functionWrappers.addAll(MouseRegionAutoBinding.functionWrapper()); functionWrappers.addAll(SemanticsAutoBinding.functionWrapper()); functionWrappers.addAll(BuilderAutoBinding.functionWrapper()); functionWrappers.addAll(StatefulBuilderAutoBinding.functionWrapper()); functionWrappers.addAll(WidgetsFlutterBindingAutoBinding.functionWrapper()); functionWrappers.addAll(DismissibleAutoBinding.functionWrapper()); functionWrappers .addAll(DraggableScrollableSheetAutoBinding.functionWrapper()); functionWrappers.addAll(DualTransitionBuilderAutoBinding.functionWrapper()); functionWrappers.addAll(TextEditingControllerAutoBinding.functionWrapper()); functionWrappers.addAll(EditableTextAutoBinding.functionWrapper()); functionWrappers.addAll(EditableTextStateAutoBinding.functionWrapper()); functionWrappers.addAll(FadeInImageAutoBinding.functionWrapper()); functionWrappers.addAll(FocusNodeAutoBinding.functionWrapper()); functionWrappers.addAll(FocusScopeNodeAutoBinding.functionWrapper()); functionWrappers.addAll(FocusAutoBinding.functionWrapper()); functionWrappers.addAll(FocusScopeAutoBinding.functionWrapper()); functionWrappers.addAll(RequestFocusActionAutoBinding.functionWrapper()); functionWrappers.addAll(NextFocusActionAutoBinding.functionWrapper()); functionWrappers.addAll(PreviousFocusActionAutoBinding.functionWrapper()); functionWrappers .addAll(DirectionalFocusActionAutoBinding.functionWrapper()); functionWrappers.addAll(FormAutoBinding.functionWrapper()); functionWrappers.addAll(BuildOwnerAutoBinding.functionWrapper()); functionWrappers.addAll(StatelessElementAutoBinding.functionWrapper()); functionWrappers.addAll(StatefulElementAutoBinding.functionWrapper()); functionWrappers.addAll(InheritedElementAutoBinding.functionWrapper()); functionWrappers .addAll(LeafRenderObjectElementAutoBinding.functionWrapper()); functionWrappers .addAll(SingleChildRenderObjectElementAutoBinding.functionWrapper()); functionWrappers .addAll(MultiChildRenderObjectElementAutoBinding.functionWrapper()); functionWrappers.addAll(GestureDetectorAutoBinding.functionWrapper()); functionWrappers.addAll(HeroAutoBinding.functionWrapper()); functionWrappers.addAll(HeroControllerAutoBinding.functionWrapper()); functionWrappers.addAll(ImageAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedContainerAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedPaddingAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedAlignAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedPositionedAutoBinding.functionWrapper()); functionWrappers .addAll(AnimatedPositionedDirectionalAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedOpacityAutoBinding.functionWrapper()); functionWrappers.addAll(SliverAnimatedOpacityAutoBinding.functionWrapper()); functionWrappers .addAll(AnimatedDefaultTextStyleAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedPhysicalModelAutoBinding.functionWrapper()); functionWrappers.addAll(InteractiveViewerAutoBinding.functionWrapper()); functionWrappers .addAll(TransformationControllerAutoBinding.functionWrapper()); functionWrappers.addAll(LayoutBuilderAutoBinding.functionWrapper()); functionWrappers .addAll(ListWheelChildBuilderDelegateAutoBinding.functionWrapper()); functionWrappers .addAll(FixedExtentScrollControllerAutoBinding.functionWrapper()); functionWrappers.addAll(ListWheelElementAutoBinding.functionWrapper()); functionWrappers.addAll(NavigatorAutoBinding.functionWrapper()); functionWrappers.addAll(NavigatorStateAutoBinding.functionWrapper()); functionWrappers.addAll(NestedScrollViewAutoBinding.functionWrapper()); functionWrappers .addAll(SliverOverlapAbsorberHandleAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSliverOverlapAbsorberAutoBinding.functionWrapper()); functionWrappers .addAll(RenderSliverOverlapInjectorAutoBinding.functionWrapper()); functionWrappers .addAll(RenderNestedScrollViewViewportAutoBinding.functionWrapper()); functionWrappers.addAll(OrientationBuilderAutoBinding.functionWrapper()); functionWrappers.addAll(OverlayEntryAutoBinding.functionWrapper()); functionWrappers.addAll(OverlayStateAutoBinding.functionWrapper()); functionWrappers .addAll(GlowingOverscrollIndicatorAutoBinding.functionWrapper()); functionWrappers.addAll(PageControllerAutoBinding.functionWrapper()); functionWrappers.addAll(PageViewAutoBinding.functionWrapper()); functionWrappers.addAll(AndroidViewAutoBinding.functionWrapper()); functionWrappers.addAll(UiKitViewAutoBinding.functionWrapper()); functionWrappers.addAll(PlatformViewLinkAutoBinding.functionWrapper()); functionWrappers.addAll(ReorderableListAutoBinding.functionWrapper()); functionWrappers.addAll(SliverReorderableListAutoBinding.functionWrapper()); functionWrappers .addAll(SliverReorderableListStateAutoBinding.functionWrapper()); functionWrappers.addAll(RestorableDoubleAutoBinding.functionWrapper()); functionWrappers.addAll(RestorableIntAutoBinding.functionWrapper()); functionWrappers.addAll(RestorableStringAutoBinding.functionWrapper()); functionWrappers.addAll(RestorableBoolAutoBinding.functionWrapper()); functionWrappers.addAll(RestorableBoolNAutoBinding.functionWrapper()); functionWrappers.addAll(RestorableDoubleNAutoBinding.functionWrapper()); functionWrappers.addAll(RestorableIntNAutoBinding.functionWrapper()); functionWrappers.addAll(RestorableStringNAutoBinding.functionWrapper()); functionWrappers .addAll(RestorableTextEditingControllerAutoBinding.functionWrapper()); functionWrappers .addAll(PlatformRouteInformationProviderAutoBinding.functionWrapper()); functionWrappers.addAll(LocalHistoryEntryAutoBinding.functionWrapper()); functionWrappers.addAll(ScrollableAutoBinding.functionWrapper()); functionWrappers.addAll(ScrollableStateAutoBinding.functionWrapper()); functionWrappers.addAll(ScrollActionAutoBinding.functionWrapper()); functionWrappers.addAll(ScrollbarPainterAutoBinding.functionWrapper()); functionWrappers.addAll(RawScrollbarAutoBinding.functionWrapper()); functionWrappers.addAll(HoldScrollActivityAutoBinding.functionWrapper()); functionWrappers.addAll(ScrollDragControllerAutoBinding.functionWrapper()); functionWrappers.addAll(ScrollControllerAutoBinding.functionWrapper()); functionWrappers .addAll(TrackingScrollControllerAutoBinding.functionWrapper()); functionWrappers .addAll(ScrollPositionWithSingleContextAutoBinding.functionWrapper()); functionWrappers.addAll(ListViewAutoBinding.functionWrapper()); functionWrappers.addAll(GridViewAutoBinding.functionWrapper()); functionWrappers.addAll(ShortcutManagerAutoBinding.functionWrapper()); functionWrappers .addAll(SliverChildBuilderDelegateAutoBinding.functionWrapper()); functionWrappers .addAll(SliverChildListDelegateAutoBinding.functionWrapper()); functionWrappers .addAll(SliverMultiBoxAdaptorElementAutoBinding.functionWrapper()); functionWrappers.addAll(SliverLayoutBuilderAutoBinding.functionWrapper()); functionWrappers.addAll(TextSelectionOverlayAutoBinding.functionWrapper()); functionWrappers .addAll(TextSelectionGestureDetectorAutoBinding.functionWrapper()); functionWrappers .addAll(ClipboardStatusNotifierAutoBinding.functionWrapper()); functionWrappers.addAll(AnimatedBuilderAutoBinding.functionWrapper()); functionWrappers.addAll(WidgetInspectorAutoBinding.functionWrapper()); functionWrappers.addAll(WidgetSpanAutoBinding.functionWrapper()); functionWrappers.addAll(WillPopScopeAutoBinding.functionWrapper()); functionWrappers.forEach((key, value) { interpreter.bindExternalFunctionType(key, value); }); } @override @mustCallSuper void loadExternalClasses() { var externalClasses = [ ChannelBuffersAutoBinding(), SceneBuilderAutoBinding(), SceneHostAutoBinding(), OffsetAutoBinding(), SizeAutoBinding(), RectAutoBinding(), RadiusAutoBinding(), RRectAutoBinding(), RSTransformAutoBinding(), IsolateNameServerAutoBinding(), ColorAutoBinding(), PaintAutoBinding(), PathAutoBinding(), TangentAutoBinding(), MaskFilterAutoBinding(), ColorFilterAutoBinding(), ImageFilterAutoBinding(), ImageShaderAutoBinding(), VerticesAutoBinding(), CanvasAutoBinding(), PictureRecorderAutoBinding(), ShadowAutoBinding(), ImmutableBufferAutoBinding(), ImageDescriptorAutoBinding(), BlendModeAutoBinding(), FilterQualityAutoBinding(), StrokeCapAutoBinding(), StrokeJoinAutoBinding(), PaintingStyleAutoBinding(), ClipAutoBinding(), ImageByteFormatAutoBinding(), PixelFormatAutoBinding(), PathFillTypeAutoBinding(), PathOperationAutoBinding(), BlurStyleAutoBinding(), TileModeAutoBinding(), VertexModeAutoBinding(), PointModeAutoBinding(), ClipOpAutoBinding(), PlatformDispatcherAutoBinding(), FrameTimingAutoBinding(), WindowPaddingAutoBinding(), LocaleAutoBinding(), FramePhaseAutoBinding(), AppLifecycleStateAutoBinding(), CallbackHandleAutoBinding(), PluginUtilitiesAutoBinding(), PointerDataAutoBinding(), PointerDataPacketAutoBinding(), PointerChangeAutoBinding(), PointerDeviceKindAutoBinding(), PointerSignalKindAutoBinding(), SemanticsActionAutoBinding(), SemanticsFlagAutoBinding(), SemanticsUpdateBuilderAutoBinding(), FontWeightAutoBinding(), FontFeatureAutoBinding(), TextDecorationAutoBinding(), TextHeightBehaviorAutoBinding(), ParagraphStyleAutoBinding(), TextBoxAutoBinding(), TextPositionAutoBinding(), TextRangeAutoBinding(), ParagraphConstraintsAutoBinding(), LineMetricsAutoBinding(), ParagraphBuilderAutoBinding(), FontStyleAutoBinding(), TextAlignAutoBinding(), TextBaselineAutoBinding(), TextDecorationStyleAutoBinding(), TextDirectionAutoBinding(), TextAffinityAutoBinding(), BoxHeightStyleAutoBinding(), BoxWidthStyleAutoBinding(), PlaceholderAlignmentAutoBinding(), BrightnessAutoBinding(), RandomAutoBinding(), AsyncErrorAutoBinding(), DeferredLoadExceptionAutoBinding(), TimeoutExceptionAutoBinding(), TimerAutoBinding(), ZoneSpecificationAutoBinding(), ZoneAutoBinding(), AsciiCodecAutoBinding(), AsciiEncoderAutoBinding(), AsciiDecoderAutoBinding(), Base64CodecAutoBinding(), Base64EncoderAutoBinding(), Base64DecoderAutoBinding(), ByteConversionSinkAutoBinding(), HtmlEscapeModeAutoBinding(), HtmlEscapeAutoBinding(), JsonUnsupportedObjectErrorAutoBinding(), JsonCyclicErrorAutoBinding(), JsonCodecAutoBinding(), JsonEncoderAutoBinding(), JsonUtf8EncoderAutoBinding(), JsonDecoderAutoBinding(), Latin1CodecAutoBinding(), Latin1EncoderAutoBinding(), Latin1DecoderAutoBinding(), LineSplitterAutoBinding(), StringConversionSinkAutoBinding(), ClosableStringSinkAutoBinding(), Utf8CodecAutoBinding(), Utf8EncoderAutoBinding(), Utf8DecoderAutoBinding(), OSErrorAutoBinding(), ZLibOptionAutoBinding(), ZLibCodecAutoBinding(), GZipCodecAutoBinding(), ZLibEncoderAutoBinding(), ZLibDecoderAutoBinding(), RawZLibFilterAutoBinding(), DirectoryAutoBinding(), FileModeAutoBinding(), FileLockAutoBinding(), FileAutoBinding(), FileSystemExceptionAutoBinding(), FileSystemEntityTypeAutoBinding(), FileStatAutoBinding(), FileSystemEntityAutoBinding(), FileSystemEventAutoBinding(), IOSinkAutoBinding(), LinkAutoBinding(), IOOverridesAutoBinding(), PlatformAutoBinding(), ProcessInfoAutoBinding(), ProcessStartModeAutoBinding(), ProcessAutoBinding(), ProcessResultAutoBinding(), ProcessSignalAutoBinding(), SignalExceptionAutoBinding(), ProcessExceptionAutoBinding(), SecureServerSocketAutoBinding(), RawSecureServerSocketAutoBinding(), SecureSocketAutoBinding(), RawSecureSocketAutoBinding(), TlsExceptionAutoBinding(), HandshakeExceptionAutoBinding(), CertificateExceptionAutoBinding(), SecurityContextAutoBinding(), InternetAddressTypeAutoBinding(), InternetAddressAutoBinding(), NetworkInterfaceAutoBinding(), RawServerSocketAutoBinding(), ServerSocketAutoBinding(), SocketDirectionAutoBinding(), SocketOptionAutoBinding(), RawSocketOptionAutoBinding(), RawSocketEventAutoBinding(), RawSocketAutoBinding(), SocketAutoBinding(), DatagramAutoBinding(), RawDatagramSocketAutoBinding(), SocketExceptionAutoBinding(), StdoutExceptionAutoBinding(), StdinExceptionAutoBinding(), StdioTypeAutoBinding(), SystemEncodingAutoBinding(), RawSynchronousSocketAutoBinding(), BigIntAutoBinding(), DateTimeAutoBinding(), DurationAutoBinding(), FunctionAutoBinding(), InvocationAutoBinding(), RegExpAutoBinding(), StackTraceAutoBinding(), StopwatchAutoBinding(), StringBufferAutoBinding(), SymbolAutoBinding(), UriAutoBinding(), UriDataAutoBinding(), AnimationStatusAutoBinding(), ProxyAnimationAutoBinding(), ReverseAnimationAutoBinding(), CurvedAnimationAutoBinding(), TrainHoppingAnimationAutoBinding(), AnimationMeanAutoBinding(), AnimationControllerAutoBinding(), AnimationBehaviorAutoBinding(), SawToothAutoBinding(), IntervalAutoBinding(), ThresholdAutoBinding(), CubicAutoBinding(), Curve2DSampleAutoBinding(), CatmullRomSplineAutoBinding(), CatmullRomCurveAutoBinding(), FlippedCurveAutoBinding(), ElasticInCurveAutoBinding(), ElasticOutCurveAutoBinding(), ElasticInOutCurveAutoBinding(), CurvesAutoBinding(), ColorTweenAutoBinding(), SizeTweenAutoBinding(), RectTweenAutoBinding(), IntTweenAutoBinding(), StepTweenAutoBinding(), CurveTweenAutoBinding(), FlippedTweenSequenceAutoBinding(), CupertinoActionSheetAutoBinding(), CupertinoActionSheetActionAutoBinding(), CupertinoActivityIndicatorAutoBinding(), CupertinoAppAutoBinding(), CupertinoTabBarAutoBinding(), CupertinoButtonAutoBinding(), CupertinoColorsAutoBinding(), CupertinoDynamicColorAutoBinding(), CupertinoContextMenuAutoBinding(), CupertinoContextMenuActionAutoBinding(), CupertinoDatePickerAutoBinding(), CupertinoTimerPickerAutoBinding(), CupertinoDatePickerModeAutoBinding(), CupertinoTimerPickerModeAutoBinding(), CupertinoAlertDialogAutoBinding(), CupertinoPopupSurfaceAutoBinding(), CupertinoDialogActionAutoBinding(), CupertinoFormRowAutoBinding(), CupertinoFormSectionAutoBinding(), CupertinoIconsAutoBinding(), CupertinoIconThemeDataAutoBinding(), CupertinoUserInterfaceLevelAutoBinding(), CupertinoUserInterfaceLevelDataAutoBinding(), CupertinoLocalizationsAutoBinding(), DefaultCupertinoLocalizationsAutoBinding(), DatePickerDateTimeOrderAutoBinding(), DatePickerDateOrderAutoBinding(), CupertinoNavigationBarAutoBinding(), CupertinoSliverNavigationBarAutoBinding(), CupertinoNavigationBarBackButtonAutoBinding(), CupertinoPageScaffoldAutoBinding(), CupertinoPickerAutoBinding(), CupertinoPickerDefaultSelectionOverlayAutoBinding(), CupertinoSliverRefreshControlAutoBinding(), RefreshIndicatorModeAutoBinding(), CupertinoPageTransitionAutoBinding(), CupertinoFullscreenDialogTransitionAutoBinding(), CupertinoScrollbarAutoBinding(), CupertinoSearchTextFieldAutoBinding(), CupertinoSliderAutoBinding(), CupertinoSwitchAutoBinding(), CupertinoTabControllerAutoBinding(), CupertinoTabScaffoldAutoBinding(), RestorableCupertinoTabControllerAutoBinding(), CupertinoTabViewAutoBinding(), CupertinoTextFieldAutoBinding(), OverlayVisibilityModeAutoBinding(), CupertinoTextFormFieldRowAutoBinding(), CupertinoTextSelectionControlsAutoBinding(), CupertinoTextSelectionToolbarAutoBinding(), CupertinoTextSelectionToolbarButtonAutoBinding(), CupertinoTextThemeDataAutoBinding(), CupertinoThemeAutoBinding(), CupertinoThemeDataAutoBinding(), NoDefaultCupertinoThemeDataAutoBinding(), CupertinoThumbPainterAutoBinding(), CategoryAutoBinding(), DocumentationIconAutoBinding(), SummaryAutoBinding(), PartialStackFrameAutoBinding(), RepetitiveStackFrameFilterAutoBinding(), ErrorDescriptionAutoBinding(), ErrorSummaryAutoBinding(), ErrorHintAutoBinding(), ErrorSpacerAutoBinding(), FlutterErrorDetailsAutoBinding(), FlutterErrorAutoBinding(), DiagnosticsStackTraceAutoBinding(), ListenableAutoBinding(), ChangeNotifierAutoBinding(), TextTreeConfigurationAutoBinding(), TextTreeRendererAutoBinding(), DiagnosticsNodeAutoBinding(), MessagePropertyAutoBinding(), StringPropertyAutoBinding(), DoublePropertyAutoBinding(), IntPropertyAutoBinding(), PercentPropertyAutoBinding(), FlagPropertyAutoBinding(), DiagnosticableTreeNodeAutoBinding(), DiagnosticPropertiesBuilderAutoBinding(), DiagnosticsBlockAutoBinding(), DiagnosticsSerializationDelegateAutoBinding(), DiagnosticLevelAutoBinding(), DiagnosticsTreeStyleAutoBinding(), KeyAutoBinding(), LicenseParagraphAutoBinding(), LicenseEntryWithLineBreaksAutoBinding(), LicenseRegistryAutoBinding(), AbstractNodeAutoBinding(), TargetPlatformAutoBinding(), WriteBufferAutoBinding(), ReadBufferAutoBinding(), StackFrameAutoBinding(), UnicodeAutoBinding(), GestureArenaManagerAutoBinding(), GestureDispositionAutoBinding(), FlutterErrorDetailsForPointerEventDispatcherAutoBinding(), PointerEventConverterAutoBinding(), DragDownDetailsAutoBinding(), DragStartDetailsAutoBinding(), DragUpdateDetailsAutoBinding(), DragEndDetailsAutoBinding(), EagerGestureRecognizerAutoBinding(), PointerAddedEventAutoBinding(), PointerRemovedEventAutoBinding(), PointerHoverEventAutoBinding(), PointerEnterEventAutoBinding(), PointerExitEventAutoBinding(), PointerDownEventAutoBinding(), PointerMoveEventAutoBinding(), PointerUpEventAutoBinding(), PointerScrollEventAutoBinding(), PointerCancelEventAutoBinding(), ForcePressDetailsAutoBinding(), ForcePressGestureRecognizerAutoBinding(), HitTestEntryAutoBinding(), HitTestResultAutoBinding(), LongPressStartDetailsAutoBinding(), LongPressMoveUpdateDetailsAutoBinding(), LongPressEndDetailsAutoBinding(), LongPressGestureRecognizerAutoBinding(), PolynomialFitAutoBinding(), LeastSquaresSolverAutoBinding(), VerticalDragGestureRecognizerAutoBinding(), HorizontalDragGestureRecognizerAutoBinding(), PanGestureRecognizerAutoBinding(), ImmediateMultiDragGestureRecognizerAutoBinding(), HorizontalMultiDragGestureRecognizerAutoBinding(), VerticalMultiDragGestureRecognizerAutoBinding(), DelayedMultiDragGestureRecognizerAutoBinding(), DoubleTapGestureRecognizerAutoBinding(), MultiTapGestureRecognizerAutoBinding(), PointerRouterAutoBinding(), PointerSignalResolverAutoBinding(), OffsetPairAutoBinding(), DragStartBehaviorAutoBinding(), GestureRecognizerStateAutoBinding(), PointerEventResamplerAutoBinding(), ScaleStartDetailsAutoBinding(), ScaleUpdateDetailsAutoBinding(), ScaleEndDetailsAutoBinding(), ScaleGestureRecognizerAutoBinding(), TapDownDetailsAutoBinding(), TapUpDetailsAutoBinding(), TapGestureRecognizerAutoBinding(), GestureArenaTeamAutoBinding(), VelocityAutoBinding(), VelocityEstimateAutoBinding(), VelocityTrackerAutoBinding(), IOSScrollViewFlingVelocityTrackerAutoBinding(), AboutListTileAutoBinding(), AboutDialogAutoBinding(), LicensePageAutoBinding(), AnimatedIconAutoBinding(), AnimatedIconsAutoBinding(), MaterialAppAutoBinding(), ThemeModeAutoBinding(), AppBarAutoBinding(), SliverAppBarAutoBinding(), AppBarThemeAutoBinding(), MaterialPointArcTweenAutoBinding(), MaterialRectArcTweenAutoBinding(), MaterialRectCenterArcTweenAutoBinding(), BackButtonIconAutoBinding(), BackButtonAutoBinding(), CloseButtonAutoBinding(), MaterialBannerAutoBinding(), MaterialBannerThemeDataAutoBinding(), MaterialBannerThemeAutoBinding(), BottomAppBarAutoBinding(), BottomAppBarThemeAutoBinding(), BottomNavigationBarAutoBinding(), BottomNavigationBarTypeAutoBinding(), BottomNavigationBarThemeDataAutoBinding(), BottomNavigationBarThemeAutoBinding(), BottomSheetAutoBinding(), BottomSheetThemeDataAutoBinding(), RawMaterialButtonAutoBinding(), ButtonBarAutoBinding(), ButtonBarThemeDataAutoBinding(), ButtonBarThemeAutoBinding(), ButtonStyleAutoBinding(), ButtonThemeAutoBinding(), ButtonThemeDataAutoBinding(), ButtonTextThemeAutoBinding(), ButtonBarLayoutBehaviorAutoBinding(), CalendarDatePickerAutoBinding(), YearPickerAutoBinding(), CardAutoBinding(), CardThemeAutoBinding(), CheckboxAutoBinding(), CheckboxListTileAutoBinding(), CheckboxThemeDataAutoBinding(), CheckboxThemeAutoBinding(), ChipAutoBinding(), InputChipAutoBinding(), ChoiceChipAutoBinding(), FilterChipAutoBinding(), ActionChipAutoBinding(), RawChipAutoBinding(), ChipThemeAutoBinding(), ChipThemeDataAutoBinding(), CircleAvatarAutoBinding(), MaterialColorAutoBinding(), MaterialAccentColorAutoBinding(), ColorsAutoBinding(), ColorSchemeAutoBinding(), DataColumnAutoBinding(), DataRowAutoBinding(), DataCellAutoBinding(), DataTableAutoBinding(), TableRowInkWellAutoBinding(), DataTableThemeDataAutoBinding(), DataTableThemeAutoBinding(), DateUtilsAutoBinding(), DateTimeRangeAutoBinding(), DatePickerEntryModeAutoBinding(), DatePickerModeAutoBinding(), DialogAutoBinding(), AlertDialogAutoBinding(), SimpleDialogOptionAutoBinding(), SimpleDialogAutoBinding(), DialogThemeAutoBinding(), DividerAutoBinding(), VerticalDividerAutoBinding(), DividerThemeDataAutoBinding(), DividerThemeAutoBinding(), DrawerAutoBinding(), DrawerControllerAutoBinding(), DrawerControllerStateAutoBinding(), DrawerAlignmentAutoBinding(), DrawerHeaderAutoBinding(), DropdownButtonHideUnderlineAutoBinding(), ElevatedButtonAutoBinding(), ElevatedButtonThemeDataAutoBinding(), ElevatedButtonThemeAutoBinding(), ElevationOverlayAutoBinding(), ExpandIconAutoBinding(), ExpansionPanelAutoBinding(), ExpansionPanelRadioAutoBinding(), ExpansionPanelListAutoBinding(), ExpansionTileAutoBinding(), FeedbackAutoBinding(), FlexibleSpaceBarAutoBinding(), FlexibleSpaceBarSettingsAutoBinding(), CollapseModeAutoBinding(), StretchModeAutoBinding(), FloatingActionButtonAutoBinding(), FloatingActionButtonThemeDataAutoBinding(), FlutterLogoAutoBinding(), GridTileAutoBinding(), GridTileBarAutoBinding(), IconsAutoBinding(), IconButtonAutoBinding(), InkAutoBinding(), InkDecorationAutoBinding(), InkHighlightAutoBinding(), InkRippleAutoBinding(), InkSplashAutoBinding(), InkResponseAutoBinding(), InkWellAutoBinding(), UnderlineInputBorderAutoBinding(), OutlineInputBorderAutoBinding(), InputDatePickerFormFieldAutoBinding(), InputDecoratorAutoBinding(), InputDecorationAutoBinding(), InputDecorationThemeAutoBinding(), FloatingLabelBehaviorAutoBinding(), ListTileThemeAutoBinding(), ListTileAutoBinding(), ListTileStyleAutoBinding(), ListTileControlAffinityAutoBinding(), MaterialAutoBinding(), ShapeBorderTweenAutoBinding(), MaterialTypeAutoBinding(), MaterialButtonAutoBinding(), MaterialLocalizationsAutoBinding(), DefaultMaterialLocalizationsAutoBinding(), MaterialStateAutoBinding(), MaterialSliceAutoBinding(), MaterialGapAutoBinding(), MergeableMaterialAutoBinding(), NavigationRailAutoBinding(), NavigationRailDestinationAutoBinding(), NavigationRailLabelTypeAutoBinding(), NavigationRailThemeDataAutoBinding(), NavigationRailThemeAutoBinding(), OutlinedButtonAutoBinding(), OutlinedButtonThemeDataAutoBinding(), OutlinedButtonThemeAutoBinding(), FadeUpwardsPageTransitionsBuilderAutoBinding(), OpenUpwardsPageTransitionsBuilderAutoBinding(), ZoomPageTransitionsBuilderAutoBinding(), CupertinoPageTransitionsBuilderAutoBinding(), PageTransitionsThemeAutoBinding(), PaginatedDataTableAutoBinding(), PaginatedDataTableStateAutoBinding(), PopupMenuDividerAutoBinding(), PopupMenuThemeDataAutoBinding(), PopupMenuThemeAutoBinding(), LinearProgressIndicatorAutoBinding(), CircularProgressIndicatorAutoBinding(), RefreshProgressIndicatorAutoBinding(), RadioThemeDataAutoBinding(), RadioThemeAutoBinding(), RangeSliderAutoBinding(), RefreshIndicatorAutoBinding(), RefreshIndicatorStateAutoBinding(), RefreshIndicatorTriggerModeAutoBinding(), ReorderableListViewAutoBinding(), ScaffoldMessengerAutoBinding(), ScaffoldMessengerStateAutoBinding(), ScaffoldPrelayoutGeometryAutoBinding(), ScaffoldGeometryAutoBinding(), ScaffoldAutoBinding(), ScaffoldStateAutoBinding(), ScrollbarAutoBinding(), ScrollbarThemeDataAutoBinding(), ScrollbarThemeAutoBinding(), SelectableTextAutoBinding(), SliderAutoBinding(), SliderThemeAutoBinding(), SliderThemeDataAutoBinding(), RectangularSliderTrackShapeAutoBinding(), RoundedRectSliderTrackShapeAutoBinding(), RectangularRangeSliderTrackShapeAutoBinding(), RoundedRectRangeSliderTrackShapeAutoBinding(), RoundSliderTickMarkShapeAutoBinding(), RoundRangeSliderTickMarkShapeAutoBinding(), RoundSliderThumbShapeAutoBinding(), RoundRangeSliderThumbShapeAutoBinding(), RoundSliderOverlayShapeAutoBinding(), RectangularSliderValueIndicatorShapeAutoBinding(), RectangularRangeSliderValueIndicatorShapeAutoBinding(), PaddleSliderValueIndicatorShapeAutoBinding(), PaddleRangeSliderValueIndicatorShapeAutoBinding(), RangeValuesAutoBinding(), RangeLabelsAutoBinding(), ShowValueIndicatorAutoBinding(), ThumbAutoBinding(), SnackBarActionAutoBinding(), SnackBarAutoBinding(), SnackBarClosedReasonAutoBinding(), SnackBarThemeDataAutoBinding(), SnackBarBehaviorAutoBinding(), StepAutoBinding(), StepperAutoBinding(), StepStateAutoBinding(), StepperTypeAutoBinding(), SwitchAutoBinding(), SwitchListTileAutoBinding(), SwitchThemeDataAutoBinding(), SwitchThemeAutoBinding(), TabAutoBinding(), TabBarAutoBinding(), TabBarViewAutoBinding(), TabPageSelectorIndicatorAutoBinding(), TabPageSelectorAutoBinding(), TabBarIndicatorSizeAutoBinding(), TabBarThemeAutoBinding(), TabControllerAutoBinding(), DefaultTabControllerAutoBinding(), UnderlineTabIndicatorAutoBinding(), TextButtonAutoBinding(), TextButtonThemeDataAutoBinding(), TextButtonThemeAutoBinding(), TextFieldAutoBinding(), TextFormFieldAutoBinding(), MaterialTextSelectionControlsAutoBinding(), TextSelectionThemeDataAutoBinding(), TextSelectionThemeAutoBinding(), TextSelectionToolbarAutoBinding(), TextSelectionToolbarTextButtonAutoBinding(), TextThemeAutoBinding(), ThemeAutoBinding(), ThemeDataTweenAutoBinding(), AnimatedThemeAutoBinding(), ThemeDataAutoBinding(), MaterialBasedCupertinoThemeDataAutoBinding(), VisualDensityAutoBinding(), MaterialTapTargetSizeAutoBinding(), TimeOfDayAutoBinding(), DayPeriodAutoBinding(), TimeOfDayFormatAutoBinding(), HourFormatAutoBinding(), TimePickerEntryModeAutoBinding(), TimePickerThemeDataAutoBinding(), TimePickerThemeAutoBinding(), ToggleButtonsAutoBinding(), ToggleButtonsThemeDataAutoBinding(), ToggleButtonsThemeAutoBinding(), TooltipAutoBinding(), TooltipThemeDataAutoBinding(), TooltipThemeAutoBinding(), TypographyAutoBinding(), ScriptCategoryAutoBinding(), UserAccountsDrawerHeaderAutoBinding(), AlignmentAutoBinding(), AlignmentDirectionalAutoBinding(), TextAlignVerticalAutoBinding(), RenderComparisonAutoBinding(), AxisAutoBinding(), VerticalDirectionAutoBinding(), AxisDirectionAutoBinding(), BeveledRectangleBorderAutoBinding(), BorderSideAutoBinding(), BorderStyleAutoBinding(), BorderRadiusAutoBinding(), BorderRadiusDirectionalAutoBinding(), BorderAutoBinding(), BorderDirectionalAutoBinding(), BoxShapeAutoBinding(), BoxDecorationAutoBinding(), FittedSizesAutoBinding(), BoxFitAutoBinding(), BoxShadowAutoBinding(), CircleBorderAutoBinding(), HSVColorAutoBinding(), HSLColorAutoBinding(), ColorPropertyAutoBinding(), ContinuousRectangleBorderAutoBinding(), ImageSizeInfoAutoBinding(), DecorationImageAutoBinding(), ImageRepeatAutoBinding(), EdgeInsetsAutoBinding(), EdgeInsetsDirectionalAutoBinding(), FlutterLogoDecorationAutoBinding(), FlutterLogoStyleAutoBinding(), FractionalOffsetAutoBinding(), GradientRotationAutoBinding(), LinearGradientAutoBinding(), RadialGradientAutoBinding(), SweepGradientAutoBinding(), ImageCacheAutoBinding(), ImageConfigurationAutoBinding(), AssetBundleImageKeyAutoBinding(), ResizeImageAutoBinding(), NetworkImageAutoBinding(), FileImageAutoBinding(), MemoryImageAutoBinding(), ExactAssetImageAutoBinding(), NetworkImageLoadExceptionAutoBinding(), AssetImageAutoBinding(), ImageInfoAutoBinding(), ImageStreamListenerAutoBinding(), ImageChunkEventAutoBinding(), ImageStreamAutoBinding(), OneFrameImageStreamCompleterAutoBinding(), MultiFrameImageStreamCompleterAutoBinding(), AccumulatorAutoBinding(), InlineSpanSemanticsInformationAutoBinding(), MatrixUtilsAutoBinding(), TransformPropertyAutoBinding(), CircularNotchedRectangleAutoBinding(), AutomaticNotchedShapeAutoBinding(), RoundedRectangleBorderAutoBinding(), DefaultShaderWarmUpAutoBinding(), ShapeDecorationAutoBinding(), StadiumBorderAutoBinding(), StrutStyleAutoBinding(), PlaceholderDimensionsAutoBinding(), TextPainterAutoBinding(), TextWidthBasisAutoBinding(), TextSpanAutoBinding(), TextStyleAutoBinding(), ClampedSimulationAutoBinding(), FrictionSimulationAutoBinding(), BoundedFrictionSimulationAutoBinding(), GravitySimulationAutoBinding(), SpringDescriptionAutoBinding(), SpringSimulationAutoBinding(), ScrollSpringSimulationAutoBinding(), SpringTypeAutoBinding(), ToleranceAutoBinding(), RenderAnimatedSizeAutoBinding(), RenderingFlutterBindingAutoBinding(), BoxConstraintsAutoBinding(), BoxHitTestResultAutoBinding(), BoxHitTestEntryAutoBinding(), BoxParentDataAutoBinding(), MultiChildLayoutParentDataAutoBinding(), RenderCustomMultiChildLayoutBoxAutoBinding(), CustomPainterSemanticsAutoBinding(), RenderCustomPaintAutoBinding(), TextSelectionPointAutoBinding(), RenderEditableAutoBinding(), SelectionChangedCauseAutoBinding(), RenderErrorBoxAutoBinding(), FlexParentDataAutoBinding(), RenderFlexAutoBinding(), FlexFitAutoBinding(), MainAxisSizeAutoBinding(), MainAxisAlignmentAutoBinding(), CrossAxisAlignmentAutoBinding(), FlowParentDataAutoBinding(), RenderFlowAutoBinding(), RenderImageAutoBinding(), PictureLayerAutoBinding(), TextureLayerAutoBinding(), PlatformViewLayerAutoBinding(), PerformanceOverlayLayerAutoBinding(), ContainerLayerAutoBinding(), OffsetLayerAutoBinding(), ClipRectLayerAutoBinding(), ClipRRectLayerAutoBinding(), ClipPathLayerAutoBinding(), ColorFilterLayerAutoBinding(), ImageFilterLayerAutoBinding(), TransformLayerAutoBinding(), OpacityLayerAutoBinding(), ShaderMaskLayerAutoBinding(), BackdropFilterLayerAutoBinding(), PhysicalModelLayerAutoBinding(), LayerLinkAutoBinding(), LeaderLayerAutoBinding(), FollowerLayerAutoBinding(), ChildLayoutHelperAutoBinding(), ListBodyParentDataAutoBinding(), RenderListBodyAutoBinding(), ListWheelParentDataAutoBinding(), RenderListWheelViewportAutoBinding(), SystemMouseCursorsAutoBinding(), MouseTrackerAnnotationAutoBinding(), MouseTrackerUpdateDetailsAutoBinding(), MouseTrackerAutoBinding(), ParentDataAutoBinding(), PaintingContextAutoBinding(), PipelineOwnerAutoBinding(), DiagnosticsDebugCreatorAutoBinding(), TextParentDataAutoBinding(), PlaceholderSpanIndexSemanticsTagAutoBinding(), RenderParagraphAutoBinding(), TextOverflowAutoBinding(), RenderPerformanceOverlayAutoBinding(), PerformanceOverlayOptionAutoBinding(), RenderAndroidViewAutoBinding(), RenderUiKitViewAutoBinding(), PlatformViewRenderBoxAutoBinding(), PlatformViewHitTestBehaviorAutoBinding(), RenderProxyBoxAutoBinding(), RenderConstrainedBoxAutoBinding(), RenderLimitedBoxAutoBinding(), RenderAspectRatioAutoBinding(), RenderIntrinsicWidthAutoBinding(), RenderIntrinsicHeightAutoBinding(), RenderOpacityAutoBinding(), RenderAnimatedOpacityAutoBinding(), RenderShaderMaskAutoBinding(), RenderBackdropFilterAutoBinding(), ShapeBorderClipperAutoBinding(), RenderClipRectAutoBinding(), RenderClipRRectAutoBinding(), RenderClipOvalAutoBinding(), RenderClipPathAutoBinding(), RenderPhysicalModelAutoBinding(), RenderPhysicalShapeAutoBinding(), RenderDecoratedBoxAutoBinding(), RenderTransformAutoBinding(), RenderFittedBoxAutoBinding(), RenderFractionalTranslationAutoBinding(), RenderPointerListenerAutoBinding(), RenderMouseRegionAutoBinding(), RenderRepaintBoundaryAutoBinding(), RenderIgnorePointerAutoBinding(), RenderOffstageAutoBinding(), RenderAbsorbPointerAutoBinding(), RenderMetaDataAutoBinding(), RenderSemanticsGestureHandlerAutoBinding(), RenderSemanticsAnnotationsAutoBinding(), RenderBlockSemanticsAutoBinding(), RenderMergeSemanticsAutoBinding(), RenderExcludeSemanticsAutoBinding(), RenderIndexedSemanticsAutoBinding(), RenderLeaderLayerAutoBinding(), RenderFollowerLayerAutoBinding(), HitTestBehaviorAutoBinding(), DecorationPositionAutoBinding(), RenderSliverOpacityAutoBinding(), RenderSliverIgnorePointerAutoBinding(), RenderSliverOffstageAutoBinding(), RenderSliverAnimatedOpacityAutoBinding(), RenderRotatedBoxAutoBinding(), RenderPaddingAutoBinding(), RenderPositionedBoxAutoBinding(), RenderConstrainedOverflowBoxAutoBinding(), RenderUnconstrainedBoxAutoBinding(), RenderSizedOverflowBoxAutoBinding(), RenderFractionallySizedOverflowBoxAutoBinding(), RenderCustomSingleChildLayoutBoxAutoBinding(), RenderBaselineAutoBinding(), SliverConstraintsAutoBinding(), SliverGeometryAutoBinding(), SliverHitTestResultAutoBinding(), SliverHitTestEntryAutoBinding(), SliverLogicalParentDataAutoBinding(), SliverLogicalContainerParentDataAutoBinding(), SliverPhysicalParentDataAutoBinding(), SliverPhysicalContainerParentDataAutoBinding(), RenderSliverToBoxAdapterAutoBinding(), GrowthDirectionAutoBinding(), RenderSliverFillViewportAutoBinding(), RenderSliverFillRemainingWithScrollableAutoBinding(), RenderSliverFillRemainingAutoBinding(), RenderSliverFillRemainingAndOverscrollAutoBinding(), RenderSliverFixedExtentListAutoBinding(), SliverGridGeometryAutoBinding(), SliverGridRegularTileLayoutAutoBinding(), SliverGridDelegateWithFixedCrossAxisCountAutoBinding(), SliverGridDelegateWithMaxCrossAxisExtentAutoBinding(), SliverGridParentDataAutoBinding(), RenderSliverGridAutoBinding(), RenderSliverListAutoBinding(), SliverMultiBoxAdaptorParentDataAutoBinding(), RenderSliverPaddingAutoBinding(), OverScrollHeaderStretchConfigurationAutoBinding(), PersistentHeaderShowOnScreenConfigurationAutoBinding(), FloatingHeaderSnapConfigurationAutoBinding(), RelativeRectAutoBinding(), StackParentDataAutoBinding(), RenderStackAutoBinding(), RenderIndexedStackAutoBinding(), StackFitAutoBinding(), TableCellParentDataAutoBinding(), IntrinsicColumnWidthAutoBinding(), FixedColumnWidthAutoBinding(), FractionColumnWidthAutoBinding(), FlexColumnWidthAutoBinding(), MaxColumnWidthAutoBinding(), MinColumnWidthAutoBinding(), RenderTableAutoBinding(), TableCellVerticalAlignmentAutoBinding(), TableBorderAutoBinding(), TextureBoxAutoBinding(), FractionalOffsetTweenAutoBinding(), AlignmentTweenAutoBinding(), AlignmentGeometryTweenAutoBinding(), ViewConfigurationAutoBinding(), RenderViewAutoBinding(), RenderAbstractViewportAutoBinding(), RevealedOffsetAutoBinding(), RenderViewportAutoBinding(), RenderShrinkWrappingViewportAutoBinding(), CacheExtentStyleAutoBinding(), ViewportOffsetAutoBinding(), ScrollDirectionAutoBinding(), WrapParentDataAutoBinding(), RenderWrapAutoBinding(), WrapAlignmentAutoBinding(), WrapCrossAlignmentAutoBinding(), SchedulerPhaseAutoBinding(), PriorityAutoBinding(), TickerAutoBinding(), TickerFutureAutoBinding(), TickerCanceledAutoBinding(), SemanticsTagAutoBinding(), CustomSemanticsActionAutoBinding(), SemanticsDataAutoBinding(), SemanticsHintOverridesAutoBinding(), SemanticsPropertiesAutoBinding(), SemanticsNodeAutoBinding(), SemanticsOwnerAutoBinding(), SemanticsConfigurationAutoBinding(), OrdinalSortKeyAutoBinding(), DebugSemanticsDumpOrderAutoBinding(), AnnounceSemanticsEventAutoBinding(), TooltipSemanticsEventAutoBinding(), LongPressSemanticsEventAutoBinding(), TapSemanticEventAutoBinding(), SemanticsServiceAutoBinding(), NetworkAssetBundleAutoBinding(), PlatformAssetBundleAutoBinding(), AutofillHintsAutoBinding(), AutofillConfigurationAutoBinding(), ClipboardDataAutoBinding(), ClipboardAutoBinding(), DeferredComponentAutoBinding(), FontLoaderAutoBinding(), HapticFeedbackAutoBinding(), LogicalKeyboardKeyAutoBinding(), PhysicalKeyboardKeyAutoBinding(), MethodCallAutoBinding(), PlatformExceptionAutoBinding(), MissingPluginExceptionAutoBinding(), BinaryCodecAutoBinding(), StringCodecAutoBinding(), JSONMessageCodecAutoBinding(), JSONMethodCodecAutoBinding(), StandardMessageCodecAutoBinding(), StandardMethodCodecAutoBinding(), MethodChannelAutoBinding(), OptionalMethodChannelAutoBinding(), EventChannelAutoBinding(), PlatformViewsServiceAutoBinding(), AndroidPointerPropertiesAutoBinding(), AndroidPointerCoordsAutoBinding(), AndroidMotionEventAutoBinding(), AndroidViewControllerAutoBinding(), RawKeyEventAutoBinding(), RawKeyDownEventAutoBinding(), RawKeyUpEventAutoBinding(), RawKeyboardAutoBinding(), KeyboardSideAutoBinding(), ModifierKeyAutoBinding(), RawKeyEventDataAndroidAutoBinding(), RawKeyEventDataFuchsiaAutoBinding(), RawKeyEventDataIosAutoBinding(), RawKeyEventDataLinuxAutoBinding(), KeyHelperAutoBinding(), GLFWKeyHelperAutoBinding(), GtkKeyHelperAutoBinding(), RawKeyEventDataMacOsAutoBinding(), RawKeyEventDataWebAutoBinding(), RawKeyEventDataWindowsAutoBinding(), RestorationManagerAutoBinding(), RestorationBucketAutoBinding(), SystemChannelsAutoBinding(), ApplicationSwitcherDescriptionAutoBinding(), SystemUiOverlayStyleAutoBinding(), SystemChromeAutoBinding(), DeviceOrientationAutoBinding(), SystemUiOverlayAutoBinding(), SystemNavigatorAutoBinding(), SystemSoundAutoBinding(), SystemSoundTypeAutoBinding(), TextSelectionAutoBinding(), TextInputFormatterAutoBinding(), FilteringTextInputFormatterAutoBinding(), LengthLimitingTextInputFormatterAutoBinding(), MaxLengthEnforcementAutoBinding(), TextInputTypeAutoBinding(), TextInputConfigurationAutoBinding(), RawFloatingCursorPointAutoBinding(), TextEditingValueAutoBinding(), TextInputAutoBinding(), SmartDashesTypeAutoBinding(), SmartQuotesTypeAutoBinding(), TextInputActionAutoBinding(), TextCapitalizationAutoBinding(), FloatingCursorDragStateAutoBinding(), ActionListenerAutoBinding(), ActionDispatcherAutoBinding(), ActionsAutoBinding(), FocusableActionDetectorAutoBinding(), DoNothingIntentAutoBinding(), DoNothingAndStopPropagationIntentAutoBinding(), DoNothingActionAutoBinding(), ActivateIntentAutoBinding(), ButtonActivateIntentAutoBinding(), SelectIntentAutoBinding(), DismissIntentAutoBinding(), PrioritizedIntentsAutoBinding(), PrioritizedActionAutoBinding(), AnimatedCrossFadeAutoBinding(), CrossFadeStateAutoBinding(), AnimatedListAutoBinding(), AnimatedListStateAutoBinding(), SliverAnimatedListAutoBinding(), SliverAnimatedListStateAutoBinding(), AnimatedSizeAutoBinding(), AnimatedSwitcherAutoBinding(), WidgetsAppAutoBinding(), ConnectionStateAutoBinding(), AutofillGroupAutoBinding(), AutofillGroupStateAutoBinding(), AutofillContextActionAutoBinding(), AutomaticKeepAliveAutoBinding(), KeepAliveNotificationAutoBinding(), KeepAliveHandleAutoBinding(), BannerPainterAutoBinding(), BannerAutoBinding(), CheckedModeBannerAutoBinding(), BannerLocationAutoBinding(), DirectionalityAutoBinding(), OpacityAutoBinding(), ShaderMaskAutoBinding(), BackdropFilterAutoBinding(), CustomPaintAutoBinding(), ClipRectAutoBinding(), ClipRRectAutoBinding(), ClipOvalAutoBinding(), ClipPathAutoBinding(), PhysicalModelAutoBinding(), PhysicalShapeAutoBinding(), TransformAutoBinding(), CompositedTransformTargetAutoBinding(), CompositedTransformFollowerAutoBinding(), FittedBoxAutoBinding(), FractionalTranslationAutoBinding(), RotatedBoxAutoBinding(), PaddingAutoBinding(), AlignAutoBinding(), CenterAutoBinding(), CustomSingleChildLayoutAutoBinding(), LayoutIdAutoBinding(), CustomMultiChildLayoutAutoBinding(), SizedBoxAutoBinding(), ConstrainedBoxAutoBinding(), UnconstrainedBoxAutoBinding(), FractionallySizedBoxAutoBinding(), LimitedBoxAutoBinding(), OverflowBoxAutoBinding(), SizedOverflowBoxAutoBinding(), OffstageAutoBinding(), AspectRatioAutoBinding(), IntrinsicWidthAutoBinding(), IntrinsicHeightAutoBinding(), BaselineAutoBinding(), SliverToBoxAdapterAutoBinding(), SliverPaddingAutoBinding(), ListBodyAutoBinding(), StackAutoBinding(), IndexedStackAutoBinding(), PositionedAutoBinding(), PositionedDirectionalAutoBinding(), FlexAutoBinding(), RowAutoBinding(), ColumnAutoBinding(), FlexibleAutoBinding(), ExpandedAutoBinding(), WrapAutoBinding(), FlowAutoBinding(), RichTextAutoBinding(), RawImageAutoBinding(), DefaultAssetBundleAutoBinding(), WidgetToRenderBoxAdapterAutoBinding(), ListenerAutoBinding(), MouseRegionAutoBinding(), RepaintBoundaryAutoBinding(), IgnorePointerAutoBinding(), AbsorbPointerAutoBinding(), MetaDataAutoBinding(), SemanticsAutoBinding(), MergeSemanticsAutoBinding(), BlockSemanticsAutoBinding(), ExcludeSemanticsAutoBinding(), IndexedSemanticsAutoBinding(), KeyedSubtreeAutoBinding(), BuilderAutoBinding(), StatefulBuilderAutoBinding(), ColoredBoxAutoBinding(), WidgetsFlutterBindingAutoBinding(), BottomNavigationBarItemAutoBinding(), ColorFilteredAutoBinding(), DecoratedBoxAutoBinding(), ContainerAutoBinding(), DesktopTextSelectionToolbarLayoutDelegateAutoBinding(), DismissibleAutoBinding(), DismissDirectionAutoBinding(), DraggableScrollableSheetAutoBinding(), DraggableScrollableNotificationAutoBinding(), DraggableScrollableActuatorAutoBinding(), DraggableDetailsAutoBinding(), DragAnchorAutoBinding(), DualTransitionBuilderAutoBinding(), TextEditingControllerAutoBinding(), ToolbarOptionsAutoBinding(), EditableTextAutoBinding(), EditableTextStateAutoBinding(), FadeInImageAutoBinding(), FocusNodeAutoBinding(), FocusScopeNodeAutoBinding(), FocusManagerAutoBinding(), KeyEventResultAutoBinding(), UnfocusDispositionAutoBinding(), FocusHighlightModeAutoBinding(), FocusHighlightStrategyAutoBinding(), FocusAutoBinding(), FocusScopeAutoBinding(), ExcludeFocusAutoBinding(), WidgetOrderTraversalPolicyAutoBinding(), ReadingOrderTraversalPolicyAutoBinding(), NumericFocusOrderAutoBinding(), LexicalFocusOrderAutoBinding(), OrderedTraversalPolicyAutoBinding(), FocusTraversalOrderAutoBinding(), FocusTraversalGroupAutoBinding(), RequestFocusIntentAutoBinding(), RequestFocusActionAutoBinding(), NextFocusIntentAutoBinding(), NextFocusActionAutoBinding(), PreviousFocusIntentAutoBinding(), PreviousFocusActionAutoBinding(), DirectionalFocusIntentAutoBinding(), DirectionalFocusActionAutoBinding(), TraversalDirectionAutoBinding(), FormAutoBinding(), FormStateAutoBinding(), AutovalidateModeAutoBinding(), UniqueKeyAutoBinding(), ObjectKeyAutoBinding(), BuildOwnerAutoBinding(), ErrorWidgetAutoBinding(), StatelessElementAutoBinding(), StatefulElementAutoBinding(), InheritedElementAutoBinding(), LeafRenderObjectElementAutoBinding(), SingleChildRenderObjectElementAutoBinding(), MultiChildRenderObjectElementAutoBinding(), DebugCreatorAutoBinding(), GestureDetectorAutoBinding(), RawGestureDetectorAutoBinding(), RawGestureDetectorStateAutoBinding(), GridPaperAutoBinding(), HeroAutoBinding(), HeroControllerAutoBinding(), HeroModeAutoBinding(), HeroFlightDirectionAutoBinding(), IconAutoBinding(), IconDataAutoBinding(), IconDataPropertyAutoBinding(), IconThemeAutoBinding(), IconThemeDataAutoBinding(), ImageAutoBinding(), ImageFilteredAutoBinding(), ImageIconAutoBinding(), BoxConstraintsTweenAutoBinding(), DecorationTweenAutoBinding(), EdgeInsetsTweenAutoBinding(), EdgeInsetsGeometryTweenAutoBinding(), BorderRadiusTweenAutoBinding(), BorderTweenAutoBinding(), Matrix4TweenAutoBinding(), TextStyleTweenAutoBinding(), AnimatedContainerAutoBinding(), AnimatedPaddingAutoBinding(), AnimatedAlignAutoBinding(), AnimatedPositionedAutoBinding(), AnimatedPositionedDirectionalAutoBinding(), AnimatedOpacityAutoBinding(), SliverAnimatedOpacityAutoBinding(), AnimatedDefaultTextStyleAutoBinding(), AnimatedPhysicalModelAutoBinding(), InteractiveViewerAutoBinding(), TransformationControllerAutoBinding(), LayoutBuilderAutoBinding(), ListWheelChildListDelegateAutoBinding(), ListWheelChildLoopingListDelegateAutoBinding(), ListWheelChildBuilderDelegateAutoBinding(), FixedExtentScrollControllerAutoBinding(), FixedExtentMetricsAutoBinding(), FixedExtentScrollPhysicsAutoBinding(), ListWheelScrollViewAutoBinding(), ListWheelElementAutoBinding(), ListWheelViewportAutoBinding(), WidgetsLocalizationsAutoBinding(), DefaultWidgetsLocalizationsAutoBinding(), LocalizationsAutoBinding(), MediaQueryDataAutoBinding(), MediaQueryAutoBinding(), OrientationAutoBinding(), NavigationModeAutoBinding(), ModalBarrierAutoBinding(), AnimatedModalBarrierAutoBinding(), NavigationToolbarAutoBinding(), RouteSettingsAutoBinding(), NavigatorObserverAutoBinding(), HeroControllerScopeAutoBinding(), NavigatorAutoBinding(), NavigatorStateAutoBinding(), RoutePopDispositionAutoBinding(), NestedScrollViewAutoBinding(), NestedScrollViewStateAutoBinding(), SliverOverlapAbsorberHandleAutoBinding(), SliverOverlapAbsorberAutoBinding(), RenderSliverOverlapAbsorberAutoBinding(), SliverOverlapInjectorAutoBinding(), RenderSliverOverlapInjectorAutoBinding(), NestedScrollViewViewportAutoBinding(), RenderNestedScrollViewViewportAutoBinding(), LayoutChangedNotificationAutoBinding(), OrientationBuilderAutoBinding(), OverflowBarAutoBinding(), OverflowBarAlignmentAutoBinding(), OverlayEntryAutoBinding(), OverlayAutoBinding(), OverlayStateAutoBinding(), GlowingOverscrollIndicatorAutoBinding(), OverscrollIndicatorNotificationAutoBinding(), PageStorageBucketAutoBinding(), PageStorageAutoBinding(), PageControllerAutoBinding(), PageMetricsAutoBinding(), PageScrollPhysicsAutoBinding(), PageViewAutoBinding(), PerformanceOverlayAutoBinding(), PlaceholderAutoBinding(), AndroidViewAutoBinding(), UiKitViewAutoBinding(), HtmlElementViewAutoBinding(), PlatformViewLinkAutoBinding(), PlatformViewSurfaceAutoBinding(), AndroidViewSurfaceAutoBinding(), PreferredSizeAutoBinding(), PrimaryScrollControllerAutoBinding(), RawKeyboardListenerAutoBinding(), ReorderableListAutoBinding(), ReorderableListStateAutoBinding(), SliverReorderableListAutoBinding(), SliverReorderableListStateAutoBinding(), ReorderableDragStartListenerAutoBinding(), ReorderableDelayedDragStartListenerAutoBinding(), RestorationScopeAutoBinding(), UnmanagedRestorationScopeAutoBinding(), RootRestorationScopeAutoBinding(), RestorableDoubleAutoBinding(), RestorableIntAutoBinding(), RestorableStringAutoBinding(), RestorableBoolAutoBinding(), RestorableBoolNAutoBinding(), RestorableDoubleNAutoBinding(), RestorableIntNAutoBinding(), RestorableStringNAutoBinding(), RestorableTextEditingControllerAutoBinding(), RouteInformationAutoBinding(), RootBackButtonDispatcherAutoBinding(), ChildBackButtonDispatcherAutoBinding(), PlatformRouteInformationProviderAutoBinding(), LocalHistoryEntryAutoBinding(), SafeAreaAutoBinding(), SliverSafeAreaAutoBinding(), ScrollableAutoBinding(), ScrollableStateAutoBinding(), ScrollIncrementDetailsAutoBinding(), ScrollIntentAutoBinding(), ScrollActionAutoBinding(), ScrollIncrementTypeAutoBinding(), ScrollbarPainterAutoBinding(), RawScrollbarAutoBinding(), IdleScrollActivityAutoBinding(), HoldScrollActivityAutoBinding(), ScrollDragControllerAutoBinding(), DragScrollActivityAutoBinding(), BallisticScrollActivityAutoBinding(), DrivenScrollActivityAutoBinding(), ScrollBehaviorAutoBinding(), ScrollConfigurationAutoBinding(), ScrollControllerAutoBinding(), TrackingScrollControllerAutoBinding(), FixedScrollMetricsAutoBinding(), ScrollStartNotificationAutoBinding(), ScrollUpdateNotificationAutoBinding(), OverscrollNotificationAutoBinding(), ScrollEndNotificationAutoBinding(), UserScrollNotificationAutoBinding(), ScrollPhysicsAutoBinding(), RangeMaintainingScrollPhysicsAutoBinding(), BouncingScrollPhysicsAutoBinding(), ClampingScrollPhysicsAutoBinding(), AlwaysScrollableScrollPhysicsAutoBinding(), NeverScrollableScrollPhysicsAutoBinding(), ScrollPositionAlignmentPolicyAutoBinding(), ScrollPositionWithSingleContextAutoBinding(), BouncingScrollSimulationAutoBinding(), ClampingScrollSimulationAutoBinding(), CustomScrollViewAutoBinding(), ListViewAutoBinding(), GridViewAutoBinding(), ScrollViewKeyboardDismissBehaviorAutoBinding(), SemanticsDebuggerAutoBinding(), LogicalKeySetAutoBinding(), ShortcutMapPropertyAutoBinding(), ShortcutManagerAutoBinding(), ShortcutsAutoBinding(), SingleChildScrollViewAutoBinding(), SizeChangedLayoutNotificationAutoBinding(), SizeChangedLayoutNotifierAutoBinding(), SliverChildBuilderDelegateAutoBinding(), SliverChildListDelegateAutoBinding(), SliverListAutoBinding(), SliverFixedExtentListAutoBinding(), SliverGridAutoBinding(), SliverMultiBoxAdaptorElementAutoBinding(), SliverOpacityAutoBinding(), SliverIgnorePointerAutoBinding(), SliverOffstageAutoBinding(), KeepAliveAutoBinding(), SliverFillViewportAutoBinding(), SliverFillRemainingAutoBinding(), SliverLayoutBuilderAutoBinding(), SliverPersistentHeaderAutoBinding(), SliverPrototypeExtentListAutoBinding(), SpacerAutoBinding(), TableRowAutoBinding(), TableAutoBinding(), TableCellAutoBinding(), DefaultTextStyleAutoBinding(), DefaultTextHeightBehaviorAutoBinding(), TextAutoBinding(), TextureAutoBinding(), ToolbarItemsParentDataAutoBinding(), TextSelectionOverlayAutoBinding(), TextSelectionGestureDetectorBuilderAutoBinding(), TextSelectionGestureDetectorAutoBinding(), ClipboardStatusNotifierAutoBinding(), TextSelectionHandleTypeAutoBinding(), ClipboardStatusAutoBinding(), TextSelectionToolbarLayoutDelegateAutoBinding(), TickerModeAutoBinding(), TitleAutoBinding(), SlideTransitionAutoBinding(), ScaleTransitionAutoBinding(), RotationTransitionAutoBinding(), SizeTransitionAutoBinding(), FadeTransitionAutoBinding(), SliverFadeTransitionAutoBinding(), RelativeRectTweenAutoBinding(), PositionedTransitionAutoBinding(), RelativePositionedTransitionAutoBinding(), DecoratedBoxTransitionAutoBinding(), AlignTransitionAutoBinding(), DefaultTextStyleTransitionAutoBinding(), AnimatedBuilderAutoBinding(), ViewportAutoBinding(), ShrinkWrappingViewportAutoBinding(), VisibilityAutoBinding(), SliverVisibilityAutoBinding(), WidgetInspectorAutoBinding(), InspectorSelectionAutoBinding(), DevToolsDeepLinkPropertyAutoBinding(), WidgetSpanAutoBinding(), WillPopScopeAutoBinding(), ]; externalClasses.forEach((value) { interpreter.bindExternalClass(value); }); } @override @mustCallSuper Future importScripts() { var futures = <Future>[]; futures.add(interpreter.import('dart://ui/channel_buffers.ht')); futures.add(interpreter.import('dart://ui/compositing.ht')); futures.add(interpreter.import('dart://ui/geometry.ht')); futures.add(interpreter.import('dart://ui/isolate_name_server.ht')); futures.add(interpreter.import('dart://ui/painting.ht')); futures.add(interpreter.import('dart://ui/platform_dispatcher.ht')); futures.add(interpreter.import('dart://ui/plugins.ht')); futures.add(interpreter.import('dart://ui/pointer.ht')); futures.add(interpreter.import('dart://ui/semantics.ht')); futures.add(interpreter.import('dart://ui/text.ht')); futures.add(interpreter.import('dart://ui/window.ht')); futures.add(interpreter.import('dart://math/random.ht')); futures.add(interpreter.import('dart://async/async_error.ht')); futures.add(interpreter.import('dart://async/deferred_load.ht')); futures.add(interpreter.import('dart://async/future.ht')); futures.add(interpreter.import('dart://async/timer.ht')); futures.add(interpreter.import('dart://async/zone.ht')); futures.add(interpreter.import('dart://convert/ascii.ht')); futures.add(interpreter.import('dart://convert/base64.ht')); futures.add(interpreter.import('dart://convert/byte_conversion.ht')); futures.add(interpreter.import('dart://convert/html_escape.ht')); futures.add(interpreter.import('dart://convert/json.ht')); futures.add(interpreter.import('dart://convert/latin1.ht')); futures.add(interpreter.import('dart://convert/line_splitter.ht')); futures.add(interpreter.import('dart://convert/string_conversion.ht')); futures.add(interpreter.import('dart://convert/utf.ht')); futures.add(interpreter.import('dart://io/common.ht')); futures.add(interpreter.import('dart://io/data_transformer.ht')); futures.add(interpreter.import('dart://io/directory.ht')); futures.add(interpreter.import('dart://io/file.ht')); futures.add(interpreter.import('dart://io/file_system_entity.ht')); futures.add(interpreter.import('dart://io/io_sink.ht')); futures.add(interpreter.import('dart://io/link.ht')); futures.add(interpreter.import('dart://io/overrides.ht')); futures.add(interpreter.import('dart://io/platform.ht')); futures.add(interpreter.import('dart://io/process.ht')); futures.add(interpreter.import('dart://io/secure_server_socket.ht')); futures.add(interpreter.import('dart://io/secure_socket.ht')); futures.add(interpreter.import('dart://io/security_context.ht')); futures.add(interpreter.import('dart://io/socket.ht')); futures.add(interpreter.import('dart://io/stdio.ht')); futures.add(interpreter.import('dart://io/string_transformer.ht')); futures.add(interpreter.import('dart://io/sync_socket.ht')); futures.add(interpreter.import('dart://core/bigint.ht')); futures.add(interpreter.import('dart://core/date_time.ht')); futures.add(interpreter.import('dart://core/duration.ht')); futures.add(interpreter.import('dart://core/function.ht')); futures.add(interpreter.import('dart://core/invocation.ht')); futures.add(interpreter.import('dart://core/regexp.ht')); futures.add(interpreter.import('dart://core/stacktrace.ht')); futures.add(interpreter.import('dart://core/stopwatch.ht')); futures.add(interpreter.import('dart://core/string_buffer.ht')); futures.add(interpreter.import('dart://core/symbol.ht')); futures.add(interpreter.import('dart://core/uri.ht')); futures.add(interpreter.import('flutter://animation/animation.ht')); futures.add(interpreter.import('flutter://animation/animations.ht')); futures .add(interpreter.import('flutter://animation/animation_controller.ht')); futures.add(interpreter.import('flutter://animation/curves.ht')); futures.add(interpreter.import('flutter://animation/tween.ht')); futures.add(interpreter.import('flutter://animation/tween_sequence.ht')); futures.add(interpreter.import('flutter://cupertino/action_sheet.ht')); futures .add(interpreter.import('flutter://cupertino/activity_indicator.ht')); futures.add(interpreter.import('flutter://cupertino/app.ht')); futures.add(interpreter.import('flutter://cupertino/bottom_tab_bar.ht')); futures.add(interpreter.import('flutter://cupertino/button.ht')); futures.add(interpreter.import('flutter://cupertino/colors.ht')); futures.add(interpreter.import('flutter://cupertino/context_menu.ht')); futures .add(interpreter.import('flutter://cupertino/context_menu_action.ht')); futures.add(interpreter.import('flutter://cupertino/date_picker.ht')); futures.add(interpreter.import('flutter://cupertino/dialog.ht')); futures.add(interpreter.import('flutter://cupertino/form_row.ht')); futures.add(interpreter.import('flutter://cupertino/form_section.ht')); futures.add(interpreter.import('flutter://cupertino/icons.ht')); futures.add(interpreter.import('flutter://cupertino/icon_theme_data.ht')); futures.add(interpreter.import('flutter://cupertino/interface_level.ht')); futures.add(interpreter.import('flutter://cupertino/localizations.ht')); futures.add(interpreter.import('flutter://cupertino/nav_bar.ht')); futures.add(interpreter.import('flutter://cupertino/page_scaffold.ht')); futures.add(interpreter.import('flutter://cupertino/picker.ht')); futures.add(interpreter.import('flutter://cupertino/refresh.ht')); futures.add(interpreter.import('flutter://cupertino/route.ht')); futures.add(interpreter.import('flutter://cupertino/scrollbar.ht')); futures.add(interpreter.import('flutter://cupertino/search_field.ht')); futures.add(interpreter.import('flutter://cupertino/slider.ht')); futures.add(interpreter.import('flutter://cupertino/switch.ht')); futures.add(interpreter.import('flutter://cupertino/tab_scaffold.ht')); futures.add(interpreter.import('flutter://cupertino/tab_view.ht')); futures.add(interpreter.import('flutter://cupertino/text_field.ht')); futures .add(interpreter.import('flutter://cupertino/text_form_field_row.ht')); futures.add(interpreter.import('flutter://cupertino/text_selection.ht')); futures.add( interpreter.import('flutter://cupertino/text_selection_toolbar.ht')); futures.add(interpreter .import('flutter://cupertino/text_selection_toolbar_button.ht')); futures.add(interpreter.import('flutter://cupertino/text_theme.ht')); futures.add(interpreter.import('flutter://cupertino/theme.ht')); futures.add(interpreter.import('flutter://cupertino/thumb_painter.ht')); futures.add(interpreter.import('flutter://foundation/annotations.ht')); futures.add(interpreter.import('flutter://foundation/assertions.ht')); futures.add(interpreter.import('flutter://foundation/change_notifier.ht')); futures.add(interpreter.import('flutter://foundation/diagnostics.ht')); futures.add(interpreter.import('flutter://foundation/key.ht')); futures.add(interpreter.import('flutter://foundation/licenses.ht')); futures.add(interpreter.import('flutter://foundation/node.ht')); futures.add(interpreter.import('flutter://foundation/platform.ht')); futures.add(interpreter.import('flutter://foundation/serialization.ht')); futures.add(interpreter.import('flutter://foundation/stack_frame.ht')); futures.add(interpreter.import('flutter://foundation/unicode.ht')); futures.add(interpreter.import('flutter://gestures/arena.ht')); futures.add(interpreter.import('flutter://gestures/binding.ht')); futures.add(interpreter.import('flutter://gestures/converter.ht')); futures.add(interpreter.import('flutter://gestures/drag_details.ht')); futures.add(interpreter.import('flutter://gestures/eager.ht')); futures.add(interpreter.import('flutter://gestures/events.ht')); futures.add(interpreter.import('flutter://gestures/force_press.ht')); futures.add(interpreter.import('flutter://gestures/hit_test.ht')); futures.add(interpreter.import('flutter://gestures/long_press.ht')); futures.add(interpreter.import('flutter://gestures/lsq_solver.ht')); futures.add(interpreter.import('flutter://gestures/monodrag.ht')); futures.add(interpreter.import('flutter://gestures/multidrag.ht')); futures.add(interpreter.import('flutter://gestures/multitap.ht')); futures.add(interpreter.import('flutter://gestures/pointer_router.ht')); futures.add( interpreter.import('flutter://gestures/pointer_signal_resolver.ht')); futures.add(interpreter.import('flutter://gestures/recognizer.ht')); futures.add(interpreter.import('flutter://gestures/resampler.ht')); futures.add(interpreter.import('flutter://gestures/scale.ht')); futures.add(interpreter.import('flutter://gestures/tap.ht')); futures.add(interpreter.import('flutter://gestures/team.ht')); futures.add(interpreter.import('flutter://gestures/velocity_tracker.ht')); futures.add(interpreter.import('flutter://material/about.ht')); futures.add(interpreter.import('flutter://material/animated_icons.ht')); futures .add(interpreter.import('flutter://material/animated_icons_data.ht')); futures.add(interpreter.import('flutter://material/app.ht')); futures.add(interpreter.import('flutter://material/app_bar.ht')); futures.add(interpreter.import('flutter://material/app_bar_theme.ht')); futures.add(interpreter.import('flutter://material/arc.ht')); futures.add(interpreter.import('flutter://material/back_button.ht')); futures.add(interpreter.import('flutter://material/banner.ht')); futures.add(interpreter.import('flutter://material/banner_theme.ht')); futures.add(interpreter.import('flutter://material/bottom_app_bar.ht')); futures .add(interpreter.import('flutter://material/bottom_app_bar_theme.ht')); futures .add(interpreter.import('flutter://material/bottom_navigation_bar.ht')); futures.add(interpreter .import('flutter://material/bottom_navigation_bar_theme.ht')); futures.add(interpreter.import('flutter://material/bottom_sheet.ht')); futures.add(interpreter.import('flutter://material/bottom_sheet_theme.ht')); futures.add(interpreter.import('flutter://material/button.ht')); futures.add(interpreter.import('flutter://material/button_bar.ht')); futures.add(interpreter.import('flutter://material/button_bar_theme.ht')); futures.add(interpreter.import('flutter://material/button_style.ht')); futures.add(interpreter.import('flutter://material/button_theme.ht')); futures .add(interpreter.import('flutter://material/calendar_date_picker.ht')); futures.add(interpreter.import('flutter://material/card.ht')); futures.add(interpreter.import('flutter://material/card_theme.ht')); futures.add(interpreter.import('flutter://material/checkbox.ht')); futures.add(interpreter.import('flutter://material/checkbox_list_tile.ht')); futures.add(interpreter.import('flutter://material/checkbox_theme.ht')); futures.add(interpreter.import('flutter://material/chip.ht')); futures.add(interpreter.import('flutter://material/chip_theme.ht')); futures.add(interpreter.import('flutter://material/circle_avatar.ht')); futures.add(interpreter.import('flutter://material/colors.ht')); futures.add(interpreter.import('flutter://material/color_scheme.ht')); futures.add(interpreter.import('flutter://material/data_table.ht')); futures.add(interpreter.import('flutter://material/data_table_theme.ht')); futures.add(interpreter.import('flutter://material/date.ht')); futures.add( interpreter.import('flutter://material/date_picker_deprecated.ht')); futures.add(interpreter.import('flutter://material/dialog.ht')); futures.add(interpreter.import('flutter://material/dialog_theme.ht')); futures.add(interpreter.import('flutter://material/divider.ht')); futures.add(interpreter.import('flutter://material/divider_theme.ht')); futures.add(interpreter.import('flutter://material/drawer.ht')); futures.add(interpreter.import('flutter://material/drawer_header.ht')); futures.add(interpreter.import('flutter://material/dropdown.ht')); futures.add(interpreter.import('flutter://material/elevated_button.ht')); futures .add(interpreter.import('flutter://material/elevated_button_theme.ht')); futures.add(interpreter.import('flutter://material/elevation_overlay.ht')); futures.add(interpreter.import('flutter://material/expand_icon.ht')); futures.add(interpreter.import('flutter://material/expansion_panel.ht')); futures.add(interpreter.import('flutter://material/expansion_tile.ht')); futures.add(interpreter.import('flutter://material/feedback.ht')); futures.add(interpreter.import('flutter://material/flat_button.ht')); futures.add(interpreter.import('flutter://material/flexible_space_bar.ht')); futures.add( interpreter.import('flutter://material/floating_action_button.ht')); futures.add(interpreter .import('flutter://material/floating_action_button_theme.ht')); futures.add(interpreter.import('flutter://material/flutter_logo.ht')); futures.add(interpreter.import('flutter://material/grid_tile.ht')); futures.add(interpreter.import('flutter://material/grid_tile_bar.ht')); futures.add(interpreter.import('flutter://material/icons.ht')); futures.add(interpreter.import('flutter://material/icon_button.ht')); futures.add(interpreter.import('flutter://material/ink_decoration.ht')); futures.add(interpreter.import('flutter://material/ink_highlight.ht')); futures.add(interpreter.import('flutter://material/ink_ripple.ht')); futures.add(interpreter.import('flutter://material/ink_splash.ht')); futures.add(interpreter.import('flutter://material/ink_well.ht')); futures.add(interpreter.import('flutter://material/input_border.ht')); futures.add(interpreter .import('flutter://material/input_date_picker_form_field.ht')); futures.add(interpreter.import('flutter://material/input_decorator.ht')); futures.add(interpreter.import('flutter://material/list_tile.ht')); futures.add(interpreter.import('flutter://material/material.ht')); futures.add(interpreter.import('flutter://material/material_button.ht')); futures.add( interpreter.import('flutter://material/material_localizations.ht')); futures.add(interpreter.import('flutter://material/material_state.ht')); futures.add(interpreter.import('flutter://material/mergeable_material.ht')); futures.add(interpreter.import('flutter://material/navigation_rail.ht')); futures .add(interpreter.import('flutter://material/navigation_rail_theme.ht')); futures.add(interpreter.import('flutter://material/outlined_button.ht')); futures .add(interpreter.import('flutter://material/outlined_button_theme.ht')); futures.add(interpreter.import('flutter://material/outline_button.ht')); futures.add( interpreter.import('flutter://material/page_transitions_theme.ht')); futures .add(interpreter.import('flutter://material/paginated_data_table.ht')); futures.add(interpreter.import('flutter://material/popup_menu.ht')); futures.add(interpreter.import('flutter://material/popup_menu_theme.ht')); futures.add(interpreter.import('flutter://material/progress_indicator.ht')); futures.add(interpreter.import('flutter://material/radio_theme.ht')); futures.add(interpreter.import('flutter://material/raised_button.ht')); futures.add(interpreter.import('flutter://material/range_slider.ht')); futures.add(interpreter.import('flutter://material/refresh_indicator.ht')); futures.add(interpreter.import('flutter://material/reorderable_list.ht')); futures.add(interpreter.import('flutter://material/scaffold.ht')); futures.add(interpreter.import('flutter://material/scrollbar.ht')); futures.add(interpreter.import('flutter://material/scrollbar_theme.ht')); futures.add(interpreter.import('flutter://material/selectable_text.ht')); futures.add(interpreter.import('flutter://material/slider.ht')); futures.add(interpreter.import('flutter://material/slider_theme.ht')); futures.add(interpreter.import('flutter://material/snack_bar.ht')); futures.add(interpreter.import('flutter://material/snack_bar_theme.ht')); futures.add(interpreter.import('flutter://material/stepper.ht')); futures.add(interpreter.import('flutter://material/switch.ht')); futures.add(interpreter.import('flutter://material/switch_list_tile.ht')); futures.add(interpreter.import('flutter://material/switch_theme.ht')); futures.add(interpreter.import('flutter://material/tabs.ht')); futures.add(interpreter.import('flutter://material/tab_bar_theme.ht')); futures.add(interpreter.import('flutter://material/tab_controller.ht')); futures.add(interpreter.import('flutter://material/tab_indicator.ht')); futures.add(interpreter.import('flutter://material/text_button.ht')); futures.add(interpreter.import('flutter://material/text_button_theme.ht')); futures.add(interpreter.import('flutter://material/text_field.ht')); futures.add(interpreter.import('flutter://material/text_form_field.ht')); futures.add(interpreter.import('flutter://material/text_selection.ht')); futures .add(interpreter.import('flutter://material/text_selection_theme.ht')); futures.add( interpreter.import('flutter://material/text_selection_toolbar.ht')); futures.add(interpreter .import('flutter://material/text_selection_toolbar_text_button.ht')); futures.add(interpreter.import('flutter://material/text_theme.ht')); futures.add(interpreter.import('flutter://material/theme.ht')); futures.add(interpreter.import('flutter://material/theme_data.ht')); futures.add(interpreter.import('flutter://material/time.ht')); futures.add(interpreter.import('flutter://material/time_picker.ht')); futures.add(interpreter.import('flutter://material/time_picker_theme.ht')); futures.add(interpreter.import('flutter://material/toggle_buttons.ht')); futures .add(interpreter.import('flutter://material/toggle_buttons_theme.ht')); futures.add(interpreter.import('flutter://material/tooltip.ht')); futures.add(interpreter.import('flutter://material/tooltip_theme.ht')); futures.add(interpreter.import('flutter://material/typography.ht')); futures.add(interpreter .import('flutter://material/user_accounts_drawer_header.ht')); futures.add(interpreter.import('flutter://painting/alignment.ht')); futures.add(interpreter.import('flutter://painting/basic_types.ht')); futures.add( interpreter.import('flutter://painting/beveled_rectangle_border.ht')); futures.add(interpreter.import('flutter://painting/borders.ht')); futures.add(interpreter.import('flutter://painting/border_radius.ht')); futures.add(interpreter.import('flutter://painting/box_border.ht')); futures.add(interpreter.import('flutter://painting/box_decoration.ht')); futures.add(interpreter.import('flutter://painting/box_fit.ht')); futures.add(interpreter.import('flutter://painting/box_shadow.ht')); futures.add(interpreter.import('flutter://painting/circle_border.ht')); futures.add(interpreter.import('flutter://painting/colors.ht')); futures.add(interpreter .import('flutter://painting/continuous_rectangle_border.ht')); futures.add(interpreter.import('flutter://painting/debug.ht')); futures.add(interpreter.import('flutter://painting/decoration_image.ht')); futures.add(interpreter.import('flutter://painting/edge_insets.ht')); futures.add(interpreter.import('flutter://painting/flutter_logo.ht')); futures.add(interpreter.import('flutter://painting/fractional_offset.ht')); futures.add(interpreter.import('flutter://painting/gradient.ht')); futures.add(interpreter.import('flutter://painting/image_cache.ht')); futures.add(interpreter.import('flutter://painting/image_provider.ht')); futures.add(interpreter.import('flutter://painting/image_resolution.ht')); futures.add(interpreter.import('flutter://painting/image_stream.ht')); futures.add(interpreter.import('flutter://painting/inline_span.ht')); futures.add(interpreter.import('flutter://painting/matrix_utils.ht')); futures.add(interpreter.import('flutter://painting/notched_shapes.ht')); futures.add( interpreter.import('flutter://painting/rounded_rectangle_border.ht')); futures.add(interpreter.import('flutter://painting/shader_warm_up.ht')); futures.add(interpreter.import('flutter://painting/shape_decoration.ht')); futures.add(interpreter.import('flutter://painting/stadium_border.ht')); futures.add(interpreter.import('flutter://painting/strut_style.ht')); futures.add(interpreter.import('flutter://painting/text_painter.ht')); futures.add(interpreter.import('flutter://painting/text_span.ht')); futures.add(interpreter.import('flutter://painting/text_style.ht')); futures.add(interpreter.import('flutter://physics/clamped_simulation.ht')); futures.add(interpreter.import('flutter://physics/friction_simulation.ht')); futures.add(interpreter.import('flutter://physics/gravity_simulation.ht')); futures.add(interpreter.import('flutter://physics/spring_simulation.ht')); futures.add(interpreter.import('flutter://physics/tolerance.ht')); futures.add(interpreter.import('flutter://rendering/animated_size.ht')); futures.add(interpreter.import('flutter://rendering/binding.ht')); futures.add(interpreter.import('flutter://rendering/box.ht')); futures.add(interpreter.import('flutter://rendering/custom_layout.ht')); futures.add(interpreter.import('flutter://rendering/custom_paint.ht')); futures.add(interpreter.import('flutter://rendering/editable.ht')); futures.add(interpreter.import('flutter://rendering/error.ht')); futures.add(interpreter.import('flutter://rendering/flex.ht')); futures.add(interpreter.import('flutter://rendering/flow.ht')); futures.add(interpreter.import('flutter://rendering/image.ht')); futures.add(interpreter.import('flutter://rendering/layer.ht')); futures.add(interpreter.import('flutter://rendering/layout_helper.ht')); futures.add(interpreter.import('flutter://rendering/list_body.ht')); futures .add(interpreter.import('flutter://rendering/list_wheel_viewport.ht')); futures.add(interpreter.import('flutter://rendering/mouse_cursor.ht')); futures.add(interpreter.import('flutter://rendering/mouse_tracking.ht')); futures.add(interpreter.import('flutter://rendering/object.ht')); futures.add(interpreter.import('flutter://rendering/paragraph.ht')); futures .add(interpreter.import('flutter://rendering/performance_overlay.ht')); futures.add(interpreter.import('flutter://rendering/platform_view.ht')); futures.add(interpreter.import('flutter://rendering/proxy_box.ht')); futures.add(interpreter.import('flutter://rendering/proxy_sliver.ht')); futures.add(interpreter.import('flutter://rendering/rotated_box.ht')); futures.add(interpreter.import('flutter://rendering/shifted_box.ht')); futures.add(interpreter.import('flutter://rendering/sliver.ht')); futures.add(interpreter.import('flutter://rendering/sliver_fill.ht')); futures.add( interpreter.import('flutter://rendering/sliver_fixed_extent_list.ht')); futures.add(interpreter.import('flutter://rendering/sliver_grid.ht')); futures.add(interpreter.import('flutter://rendering/sliver_list.ht')); futures.add( interpreter.import('flutter://rendering/sliver_multi_box_adaptor.ht')); futures.add(interpreter.import('flutter://rendering/sliver_padding.ht')); futures.add( interpreter.import('flutter://rendering/sliver_persistent_header.ht')); futures.add(interpreter.import('flutter://rendering/stack.ht')); futures.add(interpreter.import('flutter://rendering/table.ht')); futures.add(interpreter.import('flutter://rendering/table_border.ht')); futures.add(interpreter.import('flutter://rendering/texture.ht')); futures.add(interpreter.import('flutter://rendering/tweens.ht')); futures.add(interpreter.import('flutter://rendering/view.ht')); futures.add(interpreter.import('flutter://rendering/viewport.ht')); futures.add(interpreter.import('flutter://rendering/viewport_offset.ht')); futures.add(interpreter.import('flutter://rendering/wrap.ht')); futures.add(interpreter.import('flutter://scheduler/binding.ht')); futures.add(interpreter.import('flutter://scheduler/priority.ht')); futures.add(interpreter.import('flutter://scheduler/ticker.ht')); futures.add(interpreter.import('flutter://semantics/semantics.ht')); futures.add(interpreter.import('flutter://semantics/semantics_event.ht')); futures.add(interpreter.import('flutter://semantics/semantics_service.ht')); futures.add(interpreter.import('flutter://services/asset_bundle.ht')); futures.add(interpreter.import('flutter://services/autofill.ht')); futures.add(interpreter.import('flutter://services/clipboard.ht')); futures.add(interpreter.import('flutter://services/deferred_component.ht')); futures.add(interpreter.import('flutter://services/font_loader.ht')); futures.add(interpreter.import('flutter://services/haptic_feedback.ht')); futures.add(interpreter.import('flutter://services/keyboard_key.ht')); futures.add(interpreter.import('flutter://services/message_codec.ht')); futures.add(interpreter.import('flutter://services/message_codecs.ht')); futures.add(interpreter.import('flutter://services/platform_channel.ht')); futures.add(interpreter.import('flutter://services/platform_views.ht')); futures.add(interpreter.import('flutter://services/raw_keyboard.ht')); futures .add(interpreter.import('flutter://services/raw_keyboard_android.ht')); futures .add(interpreter.import('flutter://services/raw_keyboard_fuchsia.ht')); futures.add(interpreter.import('flutter://services/raw_keyboard_ios.ht')); futures.add(interpreter.import('flutter://services/raw_keyboard_linux.ht')); futures.add(interpreter.import('flutter://services/raw_keyboard_macos.ht')); futures.add(interpreter.import('flutter://services/raw_keyboard_web.ht')); futures .add(interpreter.import('flutter://services/raw_keyboard_windows.ht')); futures.add(interpreter.import('flutter://services/restoration.ht')); futures.add(interpreter.import('flutter://services/system_channels.ht')); futures.add(interpreter.import('flutter://services/system_chrome.ht')); futures.add(interpreter.import('flutter://services/system_navigator.ht')); futures.add(interpreter.import('flutter://services/system_sound.ht')); futures.add(interpreter.import('flutter://services/text_editing.ht')); futures.add(interpreter.import('flutter://services/text_formatter.ht')); futures.add(interpreter.import('flutter://services/text_input.ht')); futures.add(interpreter.import('flutter://widgets/actions.ht')); futures.add(interpreter.import('flutter://widgets/animated_cross_fade.ht')); futures.add(interpreter.import('flutter://widgets/animated_list.ht')); futures.add(interpreter.import('flutter://widgets/animated_size.ht')); futures.add(interpreter.import('flutter://widgets/animated_switcher.ht')); futures.add(interpreter.import('flutter://widgets/app.ht')); futures.add(interpreter.import('flutter://widgets/async.ht')); futures.add(interpreter.import('flutter://widgets/autofill.ht')); futures .add(interpreter.import('flutter://widgets/automatic_keep_alive.ht')); futures.add(interpreter.import('flutter://widgets/banner.ht')); futures.add(interpreter.import('flutter://widgets/basic.ht')); futures.add(interpreter.import('flutter://widgets/binding.ht')); futures.add( interpreter.import('flutter://widgets/bottom_navigation_bar_item.ht')); futures.add(interpreter.import('flutter://widgets/color_filter.ht')); futures.add(interpreter.import('flutter://widgets/container.ht')); futures.add(interpreter.import( 'flutter://widgets/desktop_text_selection_toolbar_layout_delegate.ht')); futures.add(interpreter.import('flutter://widgets/dismissible.ht')); futures.add( interpreter.import('flutter://widgets/draggable_scrollable_sheet.ht')); futures.add(interpreter.import('flutter://widgets/drag_target.ht')); futures.add( interpreter.import('flutter://widgets/dual_transition_builder.ht')); futures.add(interpreter.import('flutter://widgets/editable_text.ht')); futures.add(interpreter.import('flutter://widgets/fade_in_image.ht')); futures.add(interpreter.import('flutter://widgets/focus_manager.ht')); futures.add(interpreter.import('flutter://widgets/focus_scope.ht')); futures.add(interpreter.import('flutter://widgets/focus_traversal.ht')); futures.add(interpreter.import('flutter://widgets/form.ht')); futures.add(interpreter.import('flutter://widgets/framework.ht')); futures.add(interpreter.import('flutter://widgets/gesture_detector.ht')); futures.add(interpreter.import('flutter://widgets/grid_paper.ht')); futures.add(interpreter.import('flutter://widgets/heroes.ht')); futures.add(interpreter.import('flutter://widgets/icon.ht')); futures.add(interpreter.import('flutter://widgets/icon_data.ht')); futures.add(interpreter.import('flutter://widgets/icon_theme.ht')); futures.add(interpreter.import('flutter://widgets/icon_theme_data.ht')); futures.add(interpreter.import('flutter://widgets/image.ht')); futures.add(interpreter.import('flutter://widgets/image_filter.ht')); futures.add(interpreter.import('flutter://widgets/image_icon.ht')); futures.add(interpreter.import('flutter://widgets/implicit_animations.ht')); futures.add(interpreter.import('flutter://widgets/interactive_viewer.ht')); futures.add(interpreter.import('flutter://widgets/layout_builder.ht')); futures .add(interpreter.import('flutter://widgets/list_wheel_scroll_view.ht')); futures.add(interpreter.import('flutter://widgets/localizations.ht')); futures.add(interpreter.import('flutter://widgets/media_query.ht')); futures.add(interpreter.import('flutter://widgets/modal_barrier.ht')); futures.add(interpreter.import('flutter://widgets/navigation_toolbar.ht')); futures.add(interpreter.import('flutter://widgets/navigator.ht')); futures.add(interpreter.import('flutter://widgets/nested_scroll_view.ht')); futures .add(interpreter.import('flutter://widgets/notification_listener.ht')); futures.add(interpreter.import('flutter://widgets/orientation_builder.ht')); futures.add(interpreter.import('flutter://widgets/overflow_bar.ht')); futures.add(interpreter.import('flutter://widgets/overlay.ht')); futures .add(interpreter.import('flutter://widgets/overscroll_indicator.ht')); futures.add(interpreter.import('flutter://widgets/page_storage.ht')); futures.add(interpreter.import('flutter://widgets/page_view.ht')); futures.add(interpreter.import('flutter://widgets/performance_overlay.ht')); futures.add(interpreter.import('flutter://widgets/placeholder.ht')); futures.add(interpreter.import('flutter://widgets/platform_view.ht')); futures.add(interpreter.import('flutter://widgets/preferred_size.ht')); futures.add( interpreter.import('flutter://widgets/primary_scroll_controller.ht')); futures .add(interpreter.import('flutter://widgets/raw_keyboard_listener.ht')); futures.add(interpreter.import('flutter://widgets/reorderable_list.ht')); futures.add(interpreter.import('flutter://widgets/restoration.ht')); futures .add(interpreter.import('flutter://widgets/restoration_properties.ht')); futures.add(interpreter.import('flutter://widgets/router.ht')); futures.add(interpreter.import('flutter://widgets/routes.ht')); futures.add(interpreter.import('flutter://widgets/safe_area.ht')); futures.add(interpreter.import('flutter://widgets/scrollable.ht')); futures.add(interpreter.import('flutter://widgets/scrollbar.ht')); futures.add(interpreter.import('flutter://widgets/scroll_activity.ht')); futures .add(interpreter.import('flutter://widgets/scroll_configuration.ht')); futures.add(interpreter.import('flutter://widgets/scroll_controller.ht')); futures.add(interpreter.import('flutter://widgets/scroll_metrics.ht')); futures.add(interpreter.import('flutter://widgets/scroll_notification.ht')); futures.add(interpreter.import('flutter://widgets/scroll_physics.ht')); futures.add(interpreter.import('flutter://widgets/scroll_position.ht')); futures.add(interpreter .import('flutter://widgets/scroll_position_with_single_context.ht')); futures.add(interpreter.import('flutter://widgets/scroll_simulation.ht')); futures.add(interpreter.import('flutter://widgets/scroll_view.ht')); futures.add(interpreter.import('flutter://widgets/semantics_debugger.ht')); futures.add(interpreter.import('flutter://widgets/shortcuts.ht')); futures.add( interpreter.import('flutter://widgets/single_child_scroll_view.ht')); futures.add(interpreter .import('flutter://widgets/size_changed_layout_notifier.ht')); futures.add(interpreter.import('flutter://widgets/sliver.ht')); futures.add(interpreter.import('flutter://widgets/sliver_fill.ht')); futures .add(interpreter.import('flutter://widgets/sliver_layout_builder.ht')); futures.add( interpreter.import('flutter://widgets/sliver_persistent_header.ht')); futures.add(interpreter .import('flutter://widgets/sliver_prototype_extent_list.ht')); futures.add(interpreter.import('flutter://widgets/spacer.ht')); futures.add(interpreter.import('flutter://widgets/table.ht')); futures.add(interpreter.import('flutter://widgets/text.ht')); futures.add(interpreter.import('flutter://widgets/texture.ht')); futures.add(interpreter.import('flutter://widgets/text_selection.ht')); futures.add(interpreter .import('flutter://widgets/text_selection_toolbar_layout_delegate.ht')); futures.add(interpreter.import('flutter://widgets/ticker_provider.ht')); futures.add(interpreter.import('flutter://widgets/title.ht')); futures.add(interpreter.import('flutter://widgets/transitions.ht')); futures.add(interpreter.import('flutter://widgets/viewport.ht')); futures.add(interpreter.import('flutter://widgets/visibility.ht')); futures.add(interpreter.import('flutter://widgets/widget_inspector.ht')); futures.add(interpreter.import('flutter://widgets/widget_span.ht')); futures.add(interpreter.import('flutter://widgets/will_pop_scope.ht')); return Future.wait(futures); } }
48.217818
80
0.761703
53fc833b1ab6b04aa3cd4e39178aac8b7468c034
3,126
kt
Kotlin
graphene-common/src/main/kotlin/com/graphene/common/store/data/cassandra/CassandraFactory.kt
jerome89/graphene
6cee86e47888fde6cb50dde412a4042e62e9f6cd
[ "MIT" ]
49
2019-09-16T06:19:06.000Z
2022-01-10T15:36:51.000Z
graphene-common/src/main/kotlin/com/graphene/common/store/data/cassandra/CassandraFactory.kt
jerome89/graphene
6cee86e47888fde6cb50dde412a4042e62e9f6cd
[ "MIT" ]
33
2019-10-12T04:28:30.000Z
2020-12-28T17:08:54.000Z
graphene-common/src/main/kotlin/com/graphene/common/store/data/cassandra/CassandraFactory.kt
jerome89/graphene
6cee86e47888fde6cb50dde412a4042e62e9f6cd
[ "MIT" ]
5
2019-11-30T08:15:08.000Z
2020-07-05T05:13:30.000Z
package com.graphene.common.store.data.cassandra import com.datastax.driver.core.Cluster import com.datastax.driver.core.HostDistance import com.datastax.driver.core.PoolingOptions import com.datastax.driver.core.ProtocolOptions import com.datastax.driver.core.QueryOptions import com.datastax.driver.core.SocketOptions import com.graphene.common.store.data.cassandra.property.CassandraDataHandlerProperty import org.apache.logging.log4j.LogManager import org.springframework.stereotype.Component @Component class CassandraFactory { private val logger = LogManager.getLogger(CassandraFactory::class.java) fun createCluster(cassandraDataHandlerProperty: CassandraDataHandlerProperty): Cluster { var builder = Cluster.builder() .withSocketOptions(socketOptions(cassandraDataHandlerProperty)) .withCompression(ProtocolOptions.Compression.LZ4) .withLoadBalancingPolicy(CassandraLoadBalancingPolicy.createLoadBalancingPolicy(cassandraDataHandlerProperty.loadBalancingPolicyName)) .withPoolingOptions(poolingOptions(cassandraDataHandlerProperty)) .withQueryOptions(QueryOptions().setConsistencyLevel(cassandraDataHandlerProperty.consistencyLevel)) .withProtocolVersion(cassandraDataHandlerProperty.protocolVersion) // TODO Enable jmx reporting .withoutJMXReporting() .withPort(cassandraDataHandlerProperty.port) if (cassandraDataHandlerProperty.userName != null && cassandraDataHandlerProperty.userPassword != null) { builder = builder.withCredentials(cassandraDataHandlerProperty.userName, cassandraDataHandlerProperty.userPassword) } for (cp in cassandraDataHandlerProperty.cluster) { builder.addContactPoint(cp) } val cluster = builder.build() val metadata = cluster.metadata logger.debug("Connected to cluster: " + metadata.clusterName) for (host in metadata.allHosts) { logger.debug(String.format("Datacenter: %s; Host: %s; Rack: %s", host.datacenter, host.address, host.rack)) } return cluster } private fun poolingOptions(cassandraDataHandlerProperty: CassandraDataHandlerProperty): PoolingOptions { val poolingOptions = PoolingOptions() poolingOptions.maxQueueSize = cassandraDataHandlerProperty.maxQueueSize poolingOptions.setMaxConnectionsPerHost(HostDistance.LOCAL, cassandraDataHandlerProperty.maxConnections) poolingOptions.setMaxConnectionsPerHost(HostDistance.REMOTE, cassandraDataHandlerProperty.maxConnections) poolingOptions.setMaxRequestsPerConnection(HostDistance.REMOTE, cassandraDataHandlerProperty.maxRequests) poolingOptions.setMaxRequestsPerConnection(HostDistance.LOCAL, cassandraDataHandlerProperty.maxRequests) return poolingOptions } private fun socketOptions(cassandraDataHandlerProperty: CassandraDataHandlerProperty): SocketOptions? { return SocketOptions() .setReceiveBufferSize(1024 * 1024) .setSendBufferSize(1024 * 1024) .setTcpNoDelay(false) .setReadTimeoutMillis(cassandraDataHandlerProperty.readTimeout * 1000) .setConnectTimeoutMillis(cassandraDataHandlerProperty.connectTimeout * 1000) } }
47.363636
140
0.810301
cb7e1a1c3636655265efdabcdac8c2a5e1228ef5
4,971
html
HTML
javascript/auth/public/auth.html
kheeyaa/TIL
70c5a0c6f5ace294feba08914bd9768b35a269b3
[ "MIT" ]
2
2021-07-14T12:13:14.000Z
2021-09-30T03:51:03.000Z
javascript/auth/public/auth.html
kheeyaa/TIL
70c5a0c6f5ace294feba08914bd9768b35a269b3
[ "MIT" ]
null
null
null
javascript/auth/public/auth.html
kheeyaa/TIL
70c5a0c6f5ace294feba08914bd9768b35a269b3
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <title>Form validation</title> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;500;900&display=swap" rel="stylesheet" /> <link href="https://unpkg.com/boxicons@latest/css/boxicons.min.css" rel="stylesheet" /> <link href="/css/style.css" rel="stylesheet" /> <link href="/css/toaster.css" rel="stylesheet" /> <script defer src="/js/auth.bundle.js"></script> </head> <body> <form class="form signin" novalidate> <div class="title">SIGN IN</div> <div class="input-container"> <input type="text" id="signin-userid" name="userid" required autocomplete="off" /> <label for="signin-userid">email</label> <span class="bar"></span> <i class="icon icon-success bx bxs-check-circle hidden"></i> <i class="icon icon-error bx bxs-x-circle hidden"></i> <div class="error"></div> </div> <div class="input-container"> <input type="password" id="signin-password" name="password" required autocomplete="off" /> <label for="signin-password">Password</label> <span class="bar"></span> <i class="icon icon-success bx bxs-check-circle hidden"></i> <i class="icon icon-error bx bxs-x-circle hidden"></i> <div class="error"></div> </div> <button class="signin button" disabled>SIGN IN</button> <div class="link">Not a member? <a href="javascript:void(0);">Sign up now</a></div> </form> <form class="form signup hidden" novalidate> <div class="title">SIGN UP</div> <div class="input-container"> <input type="text" id="signup-userid" name="userid" required autocomplete="off" /> <label for="signup-userid">email</label> <span class="bar"></span> <i class="icon icon-success bx bxs-check-circle hidden"></i> <i class="icon icon-error bx bxs-x-circle hidden"></i> <div class="error"></div> </div> <div class="error-message"></div> <div class="input-container"> <input type="text" id="signup-name" name="username" required autocomplete="off" /> <label for="signup-name">Name</label> <span class="bar"></span> <i class="icon icon-success bx bxs-check-circle hidden"></i> <i class="icon icon-error bx bxs-x-circle hidden"></i> <div class="error"></div> </div> <div class="input-container"> <input type="password" id="signup-password" name="password" required autocomplete="off" /> <label for="signup-password">Password</label> <span class="bar"></span> <i class="icon icon-success bx bxs-check-circle hidden"></i> <i class="icon icon-error bx bxs-x-circle hidden"></i> <div class="error"></div> </div> <div class="input-container"> <input type="password" id="signup-confirm-password" name="confirm-password" required autocomplete="off" /> <label for="signup-confirm-password">Confirm Password</label> <span class="bar"></span> <i class="icon icon-success bx bxs-check-circle hidden"></i> <i class="icon icon-error bx bxs-x-circle hidden"></i> <div class="error"></div> </div> <button class="signup button" disabled>SIGN UP</button> <div class="link">Already a member? <a href="javascript:void(0);">Sign in</a></div> </form> <!-- local SVG sprite --> <svg xmlns="http://www.w3.org/2000/svg" style="display: none"> <symbol id="success" fill="currentColor" viewBox="0 0 16 16"> <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z" /> </symbol> <symbol id="error" fill="currentColor" viewBox="0 0 16 16"> <path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" /> </symbol> <symbol id="warning" fill="currentColor" viewBox="0 0 16 16"> <path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z" /> </symbol> </svg> </body> </html>
46.896226
287
0.596661
f1a595757c6b05f354ff34d814f4b8d40f04ef9f
871
kt
Kotlin
src/app/src/test/kotlin/org/imperial/mrc/mint/unit/controllers/StrategiseControllerTests.kt
mrc-ide/mint
d1374438a3d03d4f397f92728c7af11f84e16bff
[ "MIT" ]
2
2020-05-07T21:21:09.000Z
2022-03-02T19:05:47.000Z
src/app/src/test/kotlin/org/imperial/mrc/mint/unit/controllers/StrategiseControllerTests.kt
mrc-ide/mint
d1374438a3d03d4f397f92728c7af11f84e16bff
[ "MIT" ]
73
2020-03-27T09:34:50.000Z
2022-03-31T12:28:16.000Z
src/app/src/test/kotlin/org/imperial/mrc/mint/unit/controllers/StrategiseControllerTests.kt
mrc-ide/mint
d1374438a3d03d4f397f92728c7af11f84e16bff
[ "MIT" ]
null
null
null
package org.imperial.mrc.mint.unit.controllers; import com.nhaarman.mockito_kotlin.doReturn import com.nhaarman.mockito_kotlin.mock import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test; import org.imperial.mrc.mint.APIClient import org.imperial.mrc.mint.controllers.ImpactController import org.imperial.mrc.mint.controllers.StrategiseController import org.springframework.http.ResponseEntity class StrategiseControllerTests { private val mockResponse = mock<ResponseEntity<String>>() private val options = mapOf("option" to "value") @Test fun `gets strategies from the api`() { val mockAPI = mock<APIClient>{ on { getStrategies(options) } doReturn mockResponse } val sut = StrategiseController(mockAPI) assertThat(sut.strategise(options)).isSameAs(mockResponse) } }
30.034483
66
0.753157
d16ba3df47b63de0fa78d120adab7aa840d5b8cd
82
rs
Rust
src/test/ui/methods/method-call-lifetime-args-unresolved.rs
Eric-Arellano/rust
0f6f2d681b39c5f95459cd09cb936b6ceb27cd82
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
66,762
2015-01-01T08:32:03.000Z
2022-03-31T23:26:40.000Z
src/test/ui/methods/method-call-lifetime-args-unresolved.rs
Eric-Arellano/rust
0f6f2d681b39c5f95459cd09cb936b6ceb27cd82
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
76,993
2015-01-01T00:06:33.000Z
2022-03-31T23:59:15.000Z
src/test/ui/methods/method-call-lifetime-args-unresolved.rs
Eric-Arellano/rust
0f6f2d681b39c5f95459cd09cb936b6ceb27cd82
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11,787
2015-01-01T00:01:19.000Z
2022-03-31T19:03:42.000Z
fn main() { 0.clone::<'a>(); //~ ERROR use of undeclared lifetime name `'a` }
20.5
67
0.560976
6cb0d347b640827380f615e25abe4f7cbdca87dd
16,003
sql
SQL
pet_shop.sql
M-BOUJRAF/Pet-Shop-Project
19fbbc01b5e043cade6c7d10364ff1ffae35c927
[ "Apache-2.0" ]
null
null
null
pet_shop.sql
M-BOUJRAF/Pet-Shop-Project
19fbbc01b5e043cade6c7d10364ff1ffae35c927
[ "Apache-2.0" ]
null
null
null
pet_shop.sql
M-BOUJRAF/Pet-Shop-Project
19fbbc01b5e043cade6c7d10364ff1ffae35c927
[ "Apache-2.0" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : lun. 15 mars 2021 à 22:50 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de données : `pet_shop` -- -- -------------------------------------------------------- -- -- Structure de la table `category_tab_p` -- DROP TABLE IF EXISTS `category_tab_p`; CREATE TABLE IF NOT EXISTS `category_tab_p` ( `category_id_p` int(11) NOT NULL, `category_name_p` varchar(30) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`category_id_p`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Déchargement des données de la table `category_tab_p` -- INSERT INTO `category_tab_p` (`category_id_p`, `category_name_p`) VALUES (1, 'Accesories'), (2, 'Dogs'), (3, 'Cats'), (4, 'Food'); -- -------------------------------------------------------- -- -- Structure de la table `contact` -- DROP TABLE IF EXISTS `contact`; CREATE TABLE IF NOT EXISTS `contact` ( `nom` varchar(20) COLLATE utf8mb4_bin NOT NULL, `email` varchar(20) COLLATE utf8mb4_bin NOT NULL, `phone` varchar(11) COLLATE utf8mb4_bin NOT NULL, `company` varchar(20) COLLATE utf8mb4_bin NOT NULL, `message` text COLLATE utf8mb4_bin NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Déchargement des données de la table `contact` -- INSERT INTO `contact` (`nom`, `email`, `phone`, `company`, `message`) VALUES ('', '', '', '', ''), ('', '', '', '', ''), ('', '', '', '', ''), ('', '', '', '', ''), ('petshop', 'petshop@gmail.com', '0560628975', 'animalsshop', 'merci'), ('', '', '', '', ''), ('', '', '', '', ''), ('', '', '', '', ''), ('', '', '', '', ''), ('', '', '', '', ''), ('', '', '', '', ''), ('', '', '', '', ''); -- -------------------------------------------------------- -- -- Structure de la table `order` -- DROP TABLE IF EXISTS `order`; CREATE TABLE IF NOT EXISTS `order` ( `id_order` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `id_p` int(11) NOT NULL, PRIMARY KEY (`id_order`), KEY `id_user` (`id_user`), KEY `id_p` (`id_p`) ) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Déchargement des données de la table `order` -- INSERT INTO `order` (`id_order`, `id_user`, `id_p`) VALUES (1, 3, 2), (2, 7, 24), (3, 7, 24), (4, 7, 24), (12, 7, 30), (22, 7, 29), (25, 2, 1), (47, 7, 1), (48, 7, 29), (111, 3, 22); -- -------------------------------------------------------- -- -- Structure de la table `pet_tab` -- DROP TABLE IF EXISTS `pet_tab`; CREATE TABLE IF NOT EXISTS `pet_tab` ( `id_p` int(11) NOT NULL, `description_p` varchar(500) COLLATE utf8mb4_bin NOT NULL, `category_id_p` int(11) NOT NULL, `imgs_p` varchar(50) COLLATE utf8mb4_bin NOT NULL, `status_p` varchar(30) COLLATE utf8mb4_bin NOT NULL, `price` double NOT NULL, `name_p` varchar(30) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`id_p`), KEY `tbl_pet_ibfk_2` (`category_id_p`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Déchargement des données de la table `pet_tab` -- INSERT INTO `pet_tab` (`id_p`, `description_p`, `category_id_p`, `imgs_p`, `status_p`, `price`, `name_p`) VALUES (1, 'Ecuelle pour chiens et chats, inox antiroutille, avec caoutchouc antiderapant - 30cm\r\nCette ecuelle en inox allie esthetisme et commodite. Antiderapante, elle permettra a votre chien de manger en toute stabilite et tranquillite.', 1, 'acc1.png', 'promo', 59.99, 'Gamelle Inox '), (2, 'Retro est une gamme de cages inspiree de l’histoire de Zolux, adaptee aux besoins de notre époque. Fabriquees en metal et fixees sur un plateau en bois, ces cages pour oiseaux adoptent un style vintage unique qui participera a la décoration de la maison.\r\n', 1, 'acc2.png', 'void', 66.99, 'ZOLUX CAGE RETRO'), (4, 'Very attractive 2 stainless steel bowls with stand\r\nPowder coated black metal stand\r\nNon-slip due to rubber feet\r\nDishwasher safe feed bowls\r\nCapacity: 2.8 litre', 1, 'acc4.png', 'promo', 70.99, 'Gamelle Inox double'), (12, 'The Afador is a mixed breed dog–a cross between the Afghan Hound and Labrador Retriever dog breeds. Loyal, energetic, and affectionate, these pups inherited some of the best qualities from both of their parents.', 2, 'dog7.png', 'new', 209.99, ' Afador '), (17, '【MULTIPURPOSE】A great decoration to your pet cage or just a hand craft desk decoration.\r\n❤【SAFE】Made with pine, and containing no toxic additives. It is safe for your little friend.\r\n❤【A POPULAR SLEEPING SPOT】Your little friend can sleep in, play in and on, and pack their bedding around and inside this house.\r\n❤【FUN TO PLAY】Cottage is beautiful and attractive for your pet. Your small pets will have hours of fun exploring the way into and out of the house.', 1, 'acc6.png', 'new', 229.99, 'Hamster Wooden House'), (32, 'The Himalayan Cat is a sweet and mild-tempered feline. She’s affectionate but selective. Although she loves lying in your lap and being pet, she may be reserved around guests. Serene, quiet environments with few day-to-day changes are best for the Himmie.', 3, 'dog7.png', 'spec', 600.9, 'Himalayan Cat Breed'), (33, 'un fabricant français et fournisseur mondial de nourriture spécialisée pour chats et chiens appartenant au groupe agroalimentaire américain Mars Incorporated. Son siège social est à Aimargues en France.', 4, 'alim1.png', 'promo', 150.9, 'ROYAL CANIN'), (37, '#1 Ingredient Is Organic, Free-Range Chicken\r\nCookie That Delivers The Taste Dogs Crave\r\nNo Artificial Preservatives, Added Growth Hormones Or Antibiotics\r\nNo Chemical Pesticides Or Synthetic Fertilizers\r\nCooked In An Organically Certified Usa Kitchen', 4, 'dog13.png', 'void', 280.9, 'Pollux Organic Dog Cookies'), (38, 'This dry food recipe helps maintain a healthy lifestyle with antioxidants, vitamins, and minerals, in the delicious, meaty steak flavor dogs love\r\nProvides whole grains and helps support healthy digestion\r\nDelivers complete and balanced nutrition enriched with omega-6 fatty acids to help nourish your dog’s skin and coat', 4, 'dog12.png', 'void', 150.9, 'Pedigree Adult Dry Dog Food'), (42, 'The Australian Stumpy Tail Cattle Dog, named for their characteristic short or sometimes non-existent tail, is a descendant of wild dingoes and domesticated herding dogs from the late 19th century. Although similar to the popular Australian Cattle Dog, the Australian Stumpy Tail Cattle Dog is leaner, tailless, and more alert when it comes to strangers and new situations', 2, 'dog4.png', 'spec', 150, 'Australian Stumpy Tail'), (43, 'Hard sided pet carrier; Spree Pet Carrier is suitable as a small breed dog carrier or cat carrier and is perfect for quick trips to the Veterinarian, dog park, pet store, etc.\r\nPerfect pet carrier for small dog breeds with an adult length up to 20 inches & weight of 24 pounds. Pet carrier measurements are: Overall carrier 23.55L x 15.56W x 15.04H, Interior 22.55 x 15.2W x 14.9H, Doorway 9.75W x 11H inches', 1, 'dog8.png', 'new', 800.99, 'Midwest Travel Pet Carrier'), (44, 'La nutrition responsable des animaux domestiques\" est la devise de la marque Dr Clauder\'s. Dr Clauder\'s assume la responsabilité de l\'ensemble de ses produits et crée des aliments, des suppléments nutritionnels et des produits de soin de haute qualité pour vos animaux de compagnie.', 4, 'alim6.png', 'promo', 89.99, 'Dr Clauder\'s'), (45, 'Prevent leash-burn - The soft comfortable padded traffic handle on this training dog leash makes it perfect for people with arthritis, or just someone that wants a comfortable grip for extra control for pulling dogs.\r\nGreat for strong dogs – this no pull dog leash with a solid handle is great for walking and training medium or large, powerful dogs that pull. Also works well with two dog leash couplers, as a service dog leash, when training dogs to walk in heel position or during vet visits.', 1, 'mm.png', 'promo', 70.99, 'Handle for Large Dogs'), (46, 'Called “the dog beautiful” by admirers, the American Eskimo Dog, or “Eskie,” is a striking canine with their white coat, sweet expression, and black eyes. They’re a Nordic dog breed, a member of the Spitz family.\r\n\r\nEven though these are purebred dogs, you may find them in the care of shelters or rescue groups. Remember to adopt! Don’t shop if you want to bring a dog home\r\n', 2, 'dog5.png', 'spec', 600.9, 'American Eskimo Dog'), (47, 'Glass terrarium for reptiles or amphibians\r\nPatented front window ventilation\r\nRaised bottom frame in order to fit a substrate heater and has a waterproof bottom\r\nEscape-proof dual doors lock to prevent escape)', 1, 'dog10.png', 'spec', 700.99, ' Glass Terrarium Reptiles '), (48, 'A dog breed named for the Azawakh Valley in the Sahara desert where they originated, this is a lean and swift hunter with a regal presence. They’re proud but loyal and protective of their home and family.\r\n\r\nAlthough these are rare, purebred dogs, you may find them in the care of shelters or rescue groups. Remember to adopt! Don’t shop if you want to bring one of these dogs home.', 2, 'acc23.png', 'new', 59.99, 'Azawakh'), (55, 'Fort d\'une expérience de plus de 30 années en nutrition, Mastery vous propose une gamme d\'aliments super premium pour toutes les races de chiens et chats.', 4, 'alim2.png', 'promo', 100.99, 'Mastery'), (59, 'Spacious & Versatile Fun Center - No matter your kitten wants to overlook the world on the top perch, melt into the luxury deep hammock, or feel spoiled in the cozy cradle, this multi-purpose cat playground works perfectly as a recreation paradise! Your furry friends can play with the interactive hanging ball and loop, tour freely in their castle across the platforms, or just be lazy inside the warm condo - Exploration never ends!', 1, 'dog10.png', 'spec', 829.99, 'rabbitgoo Cat Tree'), (64, 'Small, smart, and energetic, the Alaskan Klee Kai is a relatively new breed that looks like a smaller version of the Siberian Husky. Even the name “Klee Kai” comes from an Inuit term meaning “small dog.”', 2, 'dog6.png', 'promo', 909.99, 'Alaskan Klee Kai'), (66, 'La recette du Menu a été élaborée avec les ingrédients de la nature comme la luzerne, riche en fibres, ou la pomme fruitée\r\nAnimaux : lapins\r\nPoids : 5 kg\r\nLes fibres alimentaires brutes stimulent la mastication et la combinaison de principes actifs contribue à limiter la formation d’odeurs désagréables', 4, 'alim8.png', 'promo', 109.99, 'VITAKRAFT Menu'), (70, 'The Basset Retriever is a mixed breed dog–a cross between the Basset Hound and Golden Retriever dog breeds. Friendly, affectionate, and intelligent, these pups inherited some of the best qualities from both of their parents.\r\n\r\nYou can find these mixed breed dogs in shelters and breed specific rescues, so remember to always adopt! Don’t shop if you’re looking to add one of these pups to your home!', 2, 'acc21.png', 'new', 100.99, 'Basset Retriever'), (77, 'Often called the smiling cat of France, the Chartreux has a sweet, smiling expression. This sturdy, powerful cat has a distinctive blue coat with a resilient wooly undercoat. Historically known as fine mousers with strong hunting instincts, the Chartreux enjoys toys that move. This is a slow-maturing breed that reaches adulthood in three to five years. A loving, gentle companion, the Chartreux forms a close bond with her family.', 3, 'dog1.png', 'spec', 800.99, 'Chartreux Cat Breed'), (80, 'An extraordinarily social cat, the Devon Rex is a wonderful family pet who gets along well with cats and cat-friendly dogs. She loves being with her people and learning new tricks.\r\n\r\nHighly intelligent and active, this pixie-like breed is charmingly mischievous and playful. Devon Rex cats are also outstanding jumpers—so if you’re looking for her, look up!', 3, 'acc20.png', 'new', 200.99, 'Devon Rex Cat Breed'), (84, 'The British Shorthair is an easygoing feline. She enjoys affection but isn’t needy and dislikes being carried. She’ll follow you from room to room, though, out of curiosity. British Shorthairs aren’t lap cats, but they do enjoy snuggling next to their people on the couch.', 3, 'dog2.png', 'new', 200.99, 'British Shorthair Cat Breed'), (91, 'The Birman is a cat of distinction as well as legend. With their exotic ancestry, luxurious pointed coats, “white gloved” paws and mesmerizing blue eyes, this is a breed with undeniable charisma.The Birman’s sweet and gentle nature makes her an ideal companion and pet. Birmans are playful and love to be with people, and are also patient and social with children and other pets.', 3, 'dog3.png', 'spec', 600.9, 'Birman Cat Breed'), (96, 'Ruddy, red, blue, fawn\r\nAbyssinians are highly intelligent and intensely inquisitive. They love to investigate and will leave no nook or cranny unexplored. They’re sometimes referred to as “Aby-grabbys” because they tend to take things that grab their interest. The playful Aby loves to jump and climb. Keep a variety of toys on hand to keep her occupied, including puzzle toys that challenge her intelligence', 3, 'cat7.png', 'new', 160.99, 'Abyssinian Cat'), (98, 'Bengal Cats are curious and confident with the tameness of a domestic tabby and the beauty of an Asian Leopard Cat. Learn more about Bengals and their playful personality, plus information on their health and how to feed them.', 3, 'cat6.png', 'new', 590.99, 'Bengal Cat'), (99, 'Convenient, compact design | durable sturdy construction, this cozy cat Cube is fast to assemble & collapses flat when not in use for easy storage & travel\r\nPeaceful & cozy hideout for your pet | CAT Cube provides a private den for your cat or small dog (entry-way measures 7. 3W x 10H inches) & includes a comfortable cushioned cat bed top to promote relaxation\r\nEngages your cat\'s playful nature | CAT Cube includes plush hanging ball with \"hide & seek\" Cut-outs to promote hours of curious play', 1, 'acc8.png', 'promo', 309.99, 'Cat Home'); -- -------------------------------------------------------- -- -- Structure de la table `user_tab` -- DROP TABLE IF EXISTS `user_tab`; CREATE TABLE IF NOT EXISTS `user_tab` ( `id_user` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(30) NOT NULL, `password` varchar(30) NOT NULL, `email` varchar(30) NOT NULL, `phone` varchar(30) NOT NULL, `company` varchar(30) NOT NULL, `address` varchar(30) NOT NULL, PRIMARY KEY (`id_user`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; -- -- Déchargement des données de la table `user_tab` -- INSERT INTO `user_tab` (`id_user`, `username`, `password`, `email`, `phone`, `company`, `address`) VALUES (5, 'BOUJRAF', 'hello', 'boujraf@gmail.com', '0622812281', 'SELF', 'hay almatar, nador'), (8, 'HAMDAOUI', 'RAJAE', 'hamdaouirajae99@gmail.com', '0651801605', 'SELF', 'hay sedik,berkane'), (9, 'bah', 'MADANY', 'BAHMADANY@gmail.com', '06895476521', 'SELF', 'DOHA,oujda'), (10, 'abir', 'el asouti', 'elasoutiabir@gmail.com', '06895789625', 'SELF', 'hey zitoune,oujda'), (11, 'youssra', 'jaadna', 'youssrajaadna@gmail.com', '0689745698', 'SELF', 'hey qods,oujda'), (12, 'bah', 'abderahmane', 'bahabderahmane@gmail.com', '069874563', 'SELF', 'doha,oujda'); -- -- Contraintes pour les tables déchargées -- -- -- Contraintes pour la table `pet_tab` -- ALTER TABLE `pet_tab` ADD CONSTRAINT `pet_tab_ibfk_2` FOREIGN KEY (`category_id_p`) REFERENCES `category_tab_p` (`category_id_p`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
76.204762
560
0.71824
868cace897dab5a582c20a699f81be848d7ca457
687
go
Go
artisan/art/cmd/envCmd.go
Gennavar/onix
e67266e6a575922ad2d21e98ebe7358697ad2ad5
[ "Apache-2.0" ]
91
2018-04-26T19:12:39.000Z
2022-03-26T08:53:39.000Z
artisan/art/cmd/envCmd.go
Gennavar/onix
e67266e6a575922ad2d21e98ebe7358697ad2ad5
[ "Apache-2.0" ]
12
2019-08-23T00:57:13.000Z
2022-03-04T06:42:54.000Z
artisan/art/cmd/envCmd.go
Gennavar/onix
e67266e6a575922ad2d21e98ebe7358697ad2ad5
[ "Apache-2.0" ]
59
2018-07-01T20:15:47.000Z
2022-03-10T14:34:56.000Z
/* Onix Config Manager - Artisan Copyright (c) 2018-Present by www.gatblau.org Licensed under the Apache License, Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0 Contributors to this project, hereby assign copyright in this code to the project, to be licensed under the same terms as the rest of the code. */ package cmd import ( "github.com/spf13/cobra" ) // list local packages type EnvCmd struct { cmd *cobra.Command } func NewEnvCmd() *EnvCmd { c := &EnvCmd{ cmd: &cobra.Command{ Use: "env", Short: "extract environment information from packages and flows", Long: `extract environment information from packages and flows`, }, } return c }
23.689655
94
0.716157
a0f50d43cbfb55dcc1095da0f7ab01fd12ae7e58
574
swift
Swift
Turn Touch iOS/Models/TTModeDirection.swift
samuelclay/turntouch-ios
f0cc0e3819cd1e7ca568c4fe55c37c8dddad02ff
[ "MIT" ]
8
2019-01-06T15:38:15.000Z
2021-07-31T15:19:08.000Z
Turn Touch iOS/Models/TTModeDirection.swift
samuelclay/turntouch-ios
f0cc0e3819cd1e7ca568c4fe55c37c8dddad02ff
[ "MIT" ]
10
2019-07-31T23:35:51.000Z
2020-11-19T00:45:01.000Z
Turn Touch iOS/Models/TTModeDirection.swift
samuelclay/turntouch-ios
f0cc0e3819cd1e7ca568c4fe55c37c8dddad02ff
[ "MIT" ]
null
null
null
// // TTModeDirection.swift // Turn Touch iOS // // Created by Samuel Clay on 5/19/16. // Copyright © 2016 Turn Touch. All rights reserved. // import UIKit @objc enum TTModeDirection: Int { case no_DIRECTION = 0 case north = 1 case east = 2 case west = 3 case south = 4 case info = 5 case single = 6 case double = 7 case hold = 8 } enum TTButtonMoment: Int { case button_MOMENT_OFF = 0 case button_MOMENT_PRESSDOWN = 1 case button_MOMENT_PRESSUP = 2 case button_MOMENT_HELD = 3 case button_MOMENT_DOUBLE = 4 }
18.516129
53
0.651568
0488ecdd335218b461392b4c1f2c235d6bff5749
2,969
java
Java
src/commons/api/parsers/SteamAchievementParser.java
Naeregwen/games-librarian
a35171945e1d0a909be0dd5bdf3c17b7eb099761
[ "Apache-2.0" ]
null
null
null
src/commons/api/parsers/SteamAchievementParser.java
Naeregwen/games-librarian
a35171945e1d0a909be0dd5bdf3c17b7eb099761
[ "Apache-2.0" ]
null
null
null
src/commons/api/parsers/SteamAchievementParser.java
Naeregwen/games-librarian
a35171945e1d0a909be0dd5bdf3c17b7eb099761
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2012-2014 Naeregwen * * 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 commons.api.parsers; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import commons.api.SteamAchievement; /** * @author Naeregwen * */ public class SteamAchievementParser extends DefaultHandler { /** * Temporary parsing containers */ private String characters; /** * Final parsing container */ SteamAchievement steamAchievement; /** * @return the steamAchievement */ public SteamAchievement getSteamAchievement() { return steamAchievement; } /*/ * (non-Javadoc) * @see org.xml.sax.helpers.DefaultHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) */ @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { // Reset characters container characters = ""; // Create data containers if (qName.equalsIgnoreCase("achievement")) { steamAchievement = new SteamAchievement(); } } /*/ * (non-Javadoc) * @see org.xml.sax.helpers.DefaultHandler#characters(char[], int, int) */ @Override public void characters(char[] ch, int start, int length) throws SAXException { characters = new String(ch, start, length).trim(); } /*/ * (non-Javadoc) * @see org.xml.sax.helpers.DefaultHandler#endElement(java.lang.String, java.lang.String, java.lang.String) */ @Override public void endElement(String uri, String localName, String qName) throws SAXException { if (qName.equalsIgnoreCase("iconClosed")) { if (steamAchievement != null) steamAchievement.setIconClosed(characters); } else if (qName.equalsIgnoreCase("iconOpen")) { if (steamAchievement != null) steamAchievement.setIconOpen(characters); } else if(qName.equalsIgnoreCase("name")) { if (steamAchievement != null) steamAchievement.setName(characters); } else if (qName.equalsIgnoreCase("apiname")) { if (steamAchievement != null) steamAchievement.setApiname(characters); } else if (qName.equalsIgnoreCase("description")) { if (steamAchievement != null) steamAchievement.setDescription(characters); } else if (qName.equalsIgnoreCase("unlockTimestamp")) { if (steamAchievement != null) steamAchievement.setUnlockTimestamp(characters); } } }
30.927083
135
0.708993
db0279a201f3a6d01ce2944cdb3d413447d38930
1,533
sql
SQL
server/database/queries/tables.sql
BryceStPierre/skeam
2b5dffec51ec3ec7ac95f26c28bd6bcbe14443bd
[ "MIT" ]
null
null
null
server/database/queries/tables.sql
BryceStPierre/skeam
2b5dffec51ec3ec7ac95f26c28bd6bcbe14443bd
[ "MIT" ]
null
null
null
server/database/queries/tables.sql
BryceStPierre/skeam
2b5dffec51ec3ec7ac95f26c28bd6bcbe14443bd
[ "MIT" ]
null
null
null
DROP TABLE users; DROP TABLE skeams; DROP TABLE templates; DROP TABLE categories; CREATE TABLE users ( id SERIAL PRIMARY KEY NOT NULL, email VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, provider VARCHAR(15) DEFAULT 'email', display_name VARCHAR(50), actual_name JSON, created TIMESTAMP DEFAULT clock_timestamp() ); CREATE TABLE categories ( id SERIAL PRIMARY KEY NOT NULL, category VARCHAR(30) NOT NULL ); CREATE TABLE templates ( id SERIAL PRIMARY KEY NOT NULL, category INTEGER REFERENCES categories(id) NOT NULL, description VARCHAR(250) NOT NULL, structure JSON, edited TIMESTAMP DEFAULT clock_timestamp(), created TIMESTAMP DEFAULT clock_timestamp() ); CREATE TABLE skeams ( id SERIAL PRIMARY KEY NOT NULL, category INTEGER REFERENCES categories(id) NOT NULL, template INTEGER REFERENCES templates(id), title VARCHAR(50) NOT NULL, description VARCHAR(250) NOT NULL, access BOOLEAN NOT NULL, data JSON, edited TIMESTAMP DEFAULT clock_timestamp(), created TIMESTAMP DEFAULT clock_timestamp() ); INSERT INTO users (email, password, display_name) VALUES ('test','test','test'); INSERT INTO categories (category) VALUES ('Recipes'), ('Tutorials'), ('Ideas'); INSERT INTO skeams (category, title, description, access) VALUES (1, 'Sample1', 'Sample description 1.', true), (2, 'Sample2', 'Sample description 2.', false), (3, 'Sample3', 'Sample description 3.', false); INSERT INTO skeams (category, title, description, access) VALUES (2, 'Test', 'Test.', true) RETURNING id;
25.983051
58
0.741683
3d4866f94e3ba9f67dc177d2e933b7899db18340
1,278
rs
Rust
server/src/service/misc/search/audit_event.rs
gematik/ref-eRp-FD-Server
94d6245829a08d03c8d872ba71c5d8cae0d9dccf
[ "Apache-2.0" ]
47
2020-09-04T15:13:08.000Z
2022-01-15T23:22:52.000Z
server/src/service/misc/search/audit_event.rs
gematik/ref-eRp-FD-Server
94d6245829a08d03c8d872ba71c5d8cae0d9dccf
[ "Apache-2.0" ]
30
2020-09-24T06:50:25.000Z
2021-09-18T06:41:11.000Z
server/src/service/misc/search/audit_event.rs
gematik/ref-eRp-FD-Server
94d6245829a08d03c8d872ba71c5d8cae0d9dccf
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2021 gematik GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ use resources::audit_event::SubType; use super::{Comperator, Parameter}; impl Parameter for SubType { type Storage = SubType; fn parse(s: &str) -> Result<Self::Storage, String> { s.parse() } fn compare(&self, comperator: Comperator, param: &Self::Storage) -> bool { match comperator { Comperator::Equal => self == param, Comperator::NotEqual => self != param, Comperator::GreaterThan => self > param, Comperator::LessThan => self < param, Comperator::GreaterEqual => self >= param, Comperator::LessEqual => self <= param, _ => false, } } }
31.170732
78
0.641628
edebf986481ee54d2ba479bfd0788b4e5e64affe
7,169
swift
Swift
FirstCitizen/FirstCitizen/Controller/Incident/IncidentView.swift
furydeveloper/2019SeoulContest-iOS
0f2c90dadcb7465c6b05963ca7c1f030c3b74a2a
[ "MIT" ]
1
2019-08-29T09:29:31.000Z
2019-08-29T09:29:31.000Z
FirstCitizen/FirstCitizen/Controller/Incident/IncidentView.swift
hyeoktae/2019SeoulContest
8a2921dd3c925472ed3eb75f1d23aa1d56bccdad
[ "MIT" ]
8
2019-08-21T06:25:08.000Z
2019-09-22T08:39:51.000Z
FirstCitizen/FirstCitizen/Controller/Incident/IncidentView.swift
hyeoktae/2019SeoulContest
8a2921dd3c925472ed3eb75f1d23aa1d56bccdad
[ "MIT" ]
8
2019-08-21T05:54:27.000Z
2019-09-20T12:46:24.000Z
// // IncidentView.swift // FirstCitizen // // Created by Fury on 24/09/2019. // Copyright © 2019 Kira. All rights reserved. // import UIKit import Kingfisher protocol IncidentViewDelegate: class { func touchUpBackButton() func touchUpHelpButton(category: String) } class IncidentView: UIView { var category: String = "" weak var delegate: IncidentViewDelegate! var detailIncidentData: IncidentData? var categoryShared = CategoryDataManager.shared private let backButton = UIButton(type: .custom) private let helpButton = UIButton(type: .custom) private let incidentTableView = UITableView() override init(frame: CGRect) { super.init(frame: frame) attribute() layout() } override func layoutSubviews() { super.layoutSubviews() incidentTableView.rowHeight = UITableView.automaticDimension incidentTableView.estimatedRowHeight = 180 } @objc private func touchUpBackButton() { delegate?.touchUpBackButton() } @objc private func touchUpHelpButton() { delegate?.touchUpHelpButton(category: category) } private func attribute() { backButton.setImage(#imageLiteral(resourceName: "Back_Button"), for: .normal) backButton.addTarget(self, action: #selector(touchUpBackButton), for: .touchUpInside) helpButton.setTitle("도와주기", for: .normal) helpButton.setTitleColor(#colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0), for: .normal) helpButton.titleLabel?.dynamicFont(fontSize: 26, weight: .bold) helpButton.layer.cornerRadius = 10 helpButton.backgroundColor = UIColor.appColor(.appButtonColor) helpButton.addTarget(self, action: #selector(touchUpHelpButton), for: .touchUpInside) incidentTableView.allowsSelection = false incidentTableView.separatorStyle = .none incidentTableView.dataSource = self incidentTableView.delegate = self incidentTableView.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0) incidentTableView.register(MapCell.self, forCellReuseIdentifier: MapCell.identifier) incidentTableView.register(TitleCell.self, forCellReuseIdentifier: TitleCell.identifier) incidentTableView.register(ExtraInfomaitionCell.self, forCellReuseIdentifier: ExtraInfomaitionCell.identifier) incidentTableView.register(ContentsCell.self, forCellReuseIdentifier: ContentsCell.identifier) if category != "똥휴지" { incidentTableView.register(OccurredTimeCell.self, forCellReuseIdentifier: OccurredTimeCell.identifier) incidentTableView.register(AttatchedFileCell.self, forCellReuseIdentifier: AttatchedFileCell.identifier) } } private func layout() { let margin: CGFloat = 10 [incidentTableView, backButton, helpButton].forEach { self.addSubview($0) } backButton.snp.makeConstraints { $0.top.equalTo(self.safeAreaLayoutGuide.snp.top) $0.leading.equalTo(self.safeAreaLayoutGuide.snp.leading).offset(margin.dynamic(1)) $0.width.height.equalTo(margin.dynamic(3) + 5) } helpButton.snp.makeConstraints { $0.leading.equalTo(self).offset(margin.dynamic(2)) $0.trailing.equalTo(self).offset(-margin.dynamic(2)) $0.bottom.equalTo(self).offset(-margin.dynamic(2)) $0.height.equalTo(margin.dynamic(5)) } incidentTableView.snp.makeConstraints { $0.top.leading.trailing.equalTo(self) $0.bottom.equalTo(helpButton.snp.top).offset(-margin.dynamic(1)) } } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } } extension IncidentView: UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 6 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { if indexPath.row == 0 { let cell = tableView.dequeueReusableCell(withIdentifier: MapCell.identifier, for: indexPath) as! MapCell let pinImageUrlStr = categoryShared.categoryData[(detailIncidentData?.category)! - 1].pinImage cell.modifyProperties(detailIncidentData!.latitude, detailIncidentData!.longitude, pinImageUrlStr: pinImageUrlStr) return cell } else if indexPath.row == 1 { let cell = tableView.dequeueReusableCell(withIdentifier: TitleCell.identifier, for: indexPath) as! TitleCell cell.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0) let urlStr = categoryShared.categoryData[(detailIncidentData?.category)! - 1].image cell.modifyProperties(detailIncidentData!.title, urlStr) return cell } else if indexPath.row == 2 { let cell = tableView.dequeueReusableCell(withIdentifier: ExtraInfomaitionCell.identifier, for: indexPath) as! ExtraInfomaitionCell cell.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0) let mainAddress = detailIncidentData?.mainAddress ?? "" let detailAddress = detailIncidentData?.detailAddress ?? "" let fullAddress = "\(mainAddress), \(detailAddress)" let point = "Point \(detailIncidentData!.categoryScore) + Bonus \(detailIncidentData!.score)" let uploadTime = "\(detailIncidentData?.createdAt ?? "")" cell.modifyProperties(fullAddress, point, uploadTime) return cell } else if indexPath.row == 3 { let cell = tableView.dequeueReusableCell(withIdentifier: OccurredTimeCell.identifier, for: indexPath) as! OccurredTimeCell cell.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0) if category == "똥휴지" { cell.isHidden = true } else { cell.modifyProperties(detailIncidentData!.occurredAt!) } return cell } else if indexPath.row == 4 { let cell = tableView.dequeueReusableCell(withIdentifier: AttatchedFileCell.identifier, for: indexPath) as! AttatchedFileCell cell.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0) if category == "똥휴지" { cell.isHidden = true } else { cell.modifyProperties(imagesStr: detailIncidentData!.images) } return cell } else { let cell = tableView.dequeueReusableCell(withIdentifier: ContentsCell.identifier, for: indexPath) as! ContentsCell cell.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0) cell.modifyProperties(detailIncidentData!.content) return cell } } } extension IncidentView: UITableViewDelegate { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { if category == "똥휴지" { if indexPath.row == 3 || indexPath.row == 4 { return 0 } } return UITableView.automaticDimension } func scrollViewDidScroll(_ scrollView: UIScrollView) { if scrollView.bounds.minY < 0 { scrollView.contentOffset.y = 0 } let heightHarf = (UIScreen.main.bounds.height / 3) if scrollView.bounds.minY < heightHarf { backButton.isHidden = false } else { backButton.isHidden = true } } }
36.576531
136
0.703864
72fbd6338f60c01d42403fa635c07506c990c291
3,503
html
HTML
_layouts/default.html
prateekkumarweb/website-jekyll
5d05620a65360f93c686f31e73b04f8f9457f9c1
[ "MIT" ]
null
null
null
_layouts/default.html
prateekkumarweb/website-jekyll
5d05620a65360f93c686f31e73b04f8f9457f9c1
[ "MIT" ]
null
null
null
_layouts/default.html
prateekkumarweb/website-jekyll
5d05620a65360f93c686f31e73b04f8f9457f9c1
[ "MIT" ]
null
null
null
--- --- <!DOCTYPE html> <html lang="en-IN"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> {% seo %} <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous"> <!-- Custom fonts for this template --> <link href="https://fonts.googleapis.com/css?family=Saira+Extra+Condensed:100,200,300,400,500,600,700,800,900" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet"> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <!-- Custom styles for this template --> <link href="{{'css/resume.css'|relative_url}}" rel="stylesheet"> {% if jekyll.environment == 'production' %} {% include google-analytics.html %} {% endif %} </head> <body id="page-top"> <nav class="navbar navbar-expand-lg navbar-dark bg-primary fixed-top" id="sideNav"> <a class="navbar-brand js-scroll-trigger" href="#page-top"> <span class="d-block d-lg-none">{{site.title}}</span> <span class="d-none d-lg-block"> <img class="img-fluid img-profile rounded-circle mx-auto mb-2" src="https://www.gravatar.com/avatar/{{site.data.me.email | downcase | md5}}?s=400" alt="{{site.data.me.name}}"> </span> </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav"> {% for link in page.nav %} <li class="nav-item"> <a class="nav-link js-scroll-trigger" href="{{link.href}}">{{link.title}}</a> </li> {% endfor %} </ul> </div> </nav> <div class="container-fluid p-0">{{content}}</div> <footer class="footer text-center"> <div class="container"> <p class="text-muted mb-1">Copyright &copy; {{site.time|date:"%Y"}} {{site.title}}.<br> <span class="small">Last updated: {{'now'|date_to_rfc822}}</span> </p> </div> </footer> <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js" integrity="sha256-H3cjtrm/ztDeuhCN9I4yh4iN2Ybx/y1RM7rMmAesA0k=" crossorigin="anonymous"></script> <!-- Custom scripts for this template --> <script src="{{'js/resume.js'|relative_url}}"></script> </body> </html>
47.337838
219
0.675421
6cd0c7fe3d3a31ad08caa6b7f9cf71b997090d6a
2,038
swift
Swift
Example/FlexboxSwift/ViewControllers/FlexboxTableViewController.swift
djs66256/DDFlexbox
0846f4fc62e10ec661d9a0c063458a6e32b4542e
[ "MIT" ]
13
2021-09-13T02:05:58.000Z
2022-03-23T15:17:02.000Z
Example/FlexboxSwift/ViewControllers/FlexboxTableViewController.swift
djs66256/DDFlexbox
0846f4fc62e10ec661d9a0c063458a6e32b4542e
[ "MIT" ]
null
null
null
Example/FlexboxSwift/ViewControllers/FlexboxTableViewController.swift
djs66256/DDFlexbox
0846f4fc62e10ec661d9a0c063458a6e32b4542e
[ "MIT" ]
2
2021-09-22T11:30:44.000Z
2022-03-23T15:17:04.000Z
// // File.swift // Example // // Created by daniel on 2021/9/15. // Copyright © 2021 daniel. All rights reserved. // import Foundation import UIKit import DDFlexbox typealias FlexboxTableViewCell = UITableViewCell & FlexboxView class FlexboxTableViewController : UITableViewController { var cellClasses: [FlexboxTableViewCell.Type] = [] init() { super.init(style: .plain) } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func viewDidLoad() { super.viewDidLoad() cellClasses = [TableLikeCell.self] for cls in cellClasses { self.tableView.register(cls, forCellReuseIdentifier: String(reflecting: cls)) } } override func numberOfSections(in tableView: UITableView) -> Int { return 1 } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return cellClasses.count } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: String(reflecting: cellClasses[indexPath.row])) as! FlexboxTableViewCell cell.setNeedsUpdateFlexboxLayout() cell.updateFlexboxLayoutIfNeeded() return cell } override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { let cell = tableView.dequeueReusableCell(withIdentifier: String(reflecting: cellClasses[indexPath.row])) as! FlexboxTableViewCell cell.setNeedsUpdateFlexboxLayout() cell.updateFlexboxLayoutIfNeeded() let size = cell.sizeThatFits(CGSize(width: tableView.frame.width, height: CGFloat.greatestFiniteMagnitude)) return size.height } override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { tableView.deselectRow(at: indexPath, animated: true) } }
32.349206
137
0.68842
876e1d8c6b8f76dab8f7e79f349e435da47f2f3c
707
rs
Rust
src/knock01.rs
toku345/nlp-rust
0f50358fde8afcffd8abddeb6fcba59ad7e823f0
[ "MIT" ]
null
null
null
src/knock01.rs
toku345/nlp-rust
0f50358fde8afcffd8abddeb6fcba59ad7e823f0
[ "MIT" ]
null
null
null
src/knock01.rs
toku345/nlp-rust
0f50358fde8afcffd8abddeb6fcba59ad7e823f0
[ "MIT" ]
null
null
null
pub fn extract_and_concat_chracters(input_string: &str) -> String { let mut chars = input_string.chars(); let char1 = chars.next().unwrap(); chars.next(); let char3 = chars.next().unwrap(); chars.next(); let char5 = chars.next().unwrap(); chars.next(); let char7 = chars.next().unwrap(); chars.next(); format!("{}{}{}{}", char1, char3, char5, char7) } #[cfg(test)] mod test { use super::*; #[test] fn test_extract_and_concat_chracters() { let input_string = String::from("パタトクカシーー"); let result = extract_and_concat_chracters(&input_string); let exptected = String::from("パトカー"); assert_eq!(result, exptected); } }
25.25
67
0.606789
cb0a220efdde6c698be83acfe526aa16fde66422
218
h
C
SJDevice/ViewController.h
zhoushejun/SJDevice
04b50e358f14e2159b6aed9b320eaadcf78dcb39
[ "MIT" ]
null
null
null
SJDevice/ViewController.h
zhoushejun/SJDevice
04b50e358f14e2159b6aed9b320eaadcf78dcb39
[ "MIT" ]
null
null
null
SJDevice/ViewController.h
zhoushejun/SJDevice
04b50e358f14e2159b6aed9b320eaadcf78dcb39
[ "MIT" ]
null
null
null
// // ViewController.h // SJDevice // // Created by jocentzhou on 2017/11/18. // Copyright © 2017年 jocentzhou. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
13.625
54
0.697248
874dca67fd51652f8e1de2a9b0f6c710b28476ff
2,978
html
HTML
apps/bouygue/templates/bouygue/data-policy.html
GuillaumeM92/La-Bouygue
a402efbc9746acb51cd7fc66ccdac4a45b854a22
[ "MIT" ]
null
null
null
apps/bouygue/templates/bouygue/data-policy.html
GuillaumeM92/La-Bouygue
a402efbc9746acb51cd7fc66ccdac4a45b854a22
[ "MIT" ]
null
null
null
apps/bouygue/templates/bouygue/data-policy.html
GuillaumeM92/La-Bouygue
a402efbc9746acb51cd7fc66ccdac4a45b854a22
[ "MIT" ]
null
null
null
{% extends "bouygue/base.html" %} {% load static %} {% block content %} <section class="bg-light py-10"> <div class="container"> <a href="{% url "bouygue-home" %}" style="cursor: pointer"><i class="fas fa-arrow-left mr-1"></i> Accueil</a> <h1 class="mb-4 mt-4">Traitement des données utilisateurs</h1> <h4 class="mb-4"> <div class="icon-stack bg-primary text-white mt-3 mr-2"><i data-feather="arrow-right"></i></div> Adresses Email </h4> <p>Pour garantir son bon fonctionnement, ce site recueille les adresses email des utilisateurs dans sa base de données.</p> <p>Les adresses email sont uniquement utilisées pour le fonctionnement interne du site, et ne sont à aucun moment divulguées à des fins commerciales.</p> <hr class="my-4" /> <h4 class="mb-4"> <div class="icon-stack bg-primary text-white mt-3 mr-2"><i data-feather="arrow-right"></i></div> Mots de passe </h4> <p >Les mots de passe sont également stockés dans la base de données, mais ils sont automatiquement masqués à l'aide de l'algorithme d'encryption SHA-256.</p> <p class="mb-0">Grâce à cette encrpytion, ni l'administrateur de ce site, ni un pirate informatique, ne peuvent être en mesure de prendre connaissance de votre mot de passe.</p> <hr class="my-4" /> <h4 class="mb-4"> <div class="icon-stack bg-primary text-white mt-3 mr-2"><i data-feather="arrow-right"></i></div> Cookies </h4> <p>Ce site ne génère aucun cookie, autre que ceux nécessaires au bon fonctionnement de l'application.</p> <div class="card bg-light shadow-none"> <div class="card-body"> <h6>Par exemple :</h6> <ul class="mb-0"> <li class="font-italic">Le cookie d'identification de session, qui permet de ne pas avoir à se reconnecter à chaque visite.</li> <li class="font-italic">Le cookie de jeton CSRF, qui vérifie qu'un pirate n'a pas usurpé votre identité sur le site.</li> <li class="font-italic">Le cookie de première connexion, qui affiche la fenêtre d'information à la première connexion.</li> </ul> </div> </div> <hr class="my-4" /> <h4 class="mb-4"> <div class="icon-stack bg-primary text-white mt-3 mr-2"><i data-feather="arrow-right"></i></div> Un problème ? </h4> <p>Pour tout problème technique rencontré lors de l'utilisation du site, merci d'adresser un email à <b>gemacx@gmail.com</b></p> <div class="svg-border-rounded text-dark"> <!-- Rounded SVG Border--><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144.54 17.34" preserveAspectRatio="none" fill="#1e2c41"><path d="M144.54,17.34H0V0H144.54ZM0,0S32.36,17.34,72.27,17.34,144.54,0,144.54,0"></path></svg> </div> </section> {% endblock content %}
62.041667
238
0.615178
04312c4dacf1a54da5433f066033e9382edf5bb0
2,092
java
Java
1.JavaSyntax/src/Test/Shildt_G/stream_API/StreamDemo.java
BelousAI/JavaRush
da1fc267fbcfbc32e4e86886fcac11d10fe86ce0
[ "Apache-2.0" ]
null
null
null
1.JavaSyntax/src/Test/Shildt_G/stream_API/StreamDemo.java
BelousAI/JavaRush
da1fc267fbcfbc32e4e86886fcac11d10fe86ce0
[ "Apache-2.0" ]
null
null
null
1.JavaSyntax/src/Test/Shildt_G/stream_API/StreamDemo.java
BelousAI/JavaRush
da1fc267fbcfbc32e4e86886fcac11d10fe86ce0
[ "Apache-2.0" ]
null
null
null
package Test.Shildt_G.stream_API; import java.util.ArrayList; import java.util.Optional; import java.util.stream.Stream; public class StreamDemo { public static void main(String[] args) { ArrayList<Integer> myList = new ArrayList<>(); myList.add(7); myList.add(18); myList.add(10); myList.add(24); myList.add(17); myList.add(5); System.out.println("Исходный список: " + myList); //Получить поток элементов списочного массива Stream<Integer> myStream = myList.stream(); //Получить мин и макс значения Optional<Integer> minVal = myStream.min(Integer::compare); if(minVal.isPresent()) { System.out.println("Минимальное значение: " + minVal.get()); } //непременно получить новый поток данных, поскольку //предыдущий вызов метода min() стал оконечной операцией, //употребившей поток данных myStream = myList.stream(); Optional<Integer> maxVal = myStream.max(Integer::compare); if(maxVal.isPresent()) { System.out.println("Максимальное значение: " + maxVal.get()); } //Отсортировать поток данных Stream<Integer> sortedStream = myList.stream().sorted(); //Отобразить отсортированный поток данных System.out.print("Отсортированный поток данных: "); sortedStream.forEach((n) -> System.out.print(n + " ")); System.out.println(); //Вывести только нечетные целочисленные значения Stream<Integer> oddVals = myList.stream().filter((n) -> (n % 2) == 1); System.out.print("Нечетные значения: "); oddVals.forEach((n) -> System.out.print(n + " ")); System.out.println(); //Вывести нечетные целочисленные значения > 5 (конвейеризация) oddVals = myList.stream().filter((n) -> (n % 2) == 1) .filter((n) -> n > 5); System.out.print("Нечетные значения больше 5: "); oddVals.forEach((n) -> System.out.print(n + " ")); System.out.println(); } }
34.866667
78
0.599426
c7ef5f92e6adf6d010a5d711f67ed347e469af71
6,583
java
Java
Corpus/birt/6143.java
JamesCao2048/BlizzardData
a524bec4f0d297bb748234eeb1c2fcdee3dce7d7
[ "MIT" ]
1
2022-01-15T02:47:45.000Z
2022-01-15T02:47:45.000Z
Corpus/birt/6143.java
JamesCao2048/BlizzardData
a524bec4f0d297bb748234eeb1c2fcdee3dce7d7
[ "MIT" ]
null
null
null
Corpus/birt/6143.java
JamesCao2048/BlizzardData
a524bec4f0d297bb748234eeb1c2fcdee3dce7d7
[ "MIT" ]
null
null
null
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Actuate Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.birt.report.model.extension; import org.eclipse.birt.report.model.api.DesignEngine; import org.eclipse.birt.report.model.api.DesignFileException; import org.eclipse.birt.report.model.api.OdaDataSetHandle; import org.eclipse.birt.report.model.api.OdaDataSourceHandle; import org.eclipse.birt.report.model.api.command.ExtendsException; import org.eclipse.birt.report.model.elements.interfaces.IOdaExtendableElementModel; import org.eclipse.birt.report.model.util.BaseTestCase; import com.ibm.icu.util.ULocale; /** * Tests ODA element extension. */ public class OdaElementExtensionTest extends BaseTestCase { private final static String DATASOURCE_EXTENSION_ID = "org.eclipse.birt.report.data.oda.jdbc"; //$NON-NLS-1$ private final static String DATASET_EXTENSION_ID = "org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet"; //$NON-NLS-1$ /* * @see BaseTestCase#setUp() */ protected void setUp( ) throws Exception { super.setUp( ); } /** * Tests the parsing function. * * @throws DesignFileException */ public void testParser( ) throws DesignFileException { openDesign( "ODAElementExtensionTest.xml" ); //$NON-NLS-1$ OdaDataSourceHandle dataSourceHandle = (OdaDataSourceHandle) designHandle .findDataSource( "dataSource" );//$NON-NLS-1$ assertEquals( "org.eclipse.birt.report.data.oda.jdbc", dataSourceHandle.getExtensionID( ) );//$NON-NLS-1$ assertEquals( "User", dataSourceHandle.getStringProperty( "odaUser" ) );//$NON-NLS-1$ //$NON-NLS-2$ assertEquals( "DoNotKnow", dataSourceHandle.getStringProperty( "odaPassword" ) );//$NON-NLS-1$ //$NON-NLS-2$ assertEquals( "URL", dataSourceHandle.getStringProperty( "odaURL" ) );//$NON-NLS-1$ //$NON-NLS-2$ assertEquals( "DriverClass", dataSourceHandle.getStringProperty( "odaDriverClass" ) );//$NON-NLS-1$ //$NON-NLS-2$ OdaDataSetHandle dataSetHandle = (OdaDataSetHandle) designHandle .findDataSet( "dataSet" );//$NON-NLS-1$ assertEquals( DATASET_EXTENSION_ID, dataSetHandle.getExtensionID( ) ); assertEquals( "dataSource", dataSetHandle.getStringProperty( OdaDataSetHandle.DATA_SOURCE_PROP ) );//$NON-NLS-1$ assertEquals( "select * from customers", dataSetHandle.getStringProperty( OdaDataSetHandle.QUERY_TEXT_PROP ) );//$NON-NLS-1$ assertEquals( "30", dataSetHandle.getStringProperty( "queryTimeOut" ) );//$NON-NLS-1$ //$NON-NLS-2$ } /** * Tests the writing function. * * @throws Exception */ public void testWriter( ) throws Exception { openDesign( "ODAElementExtensionTest.xml" ); //$NON-NLS-1$ OdaDataSourceHandle dataSourceHandle = (OdaDataSourceHandle) designHandle .findDataSource( "dataSource" );//$NON-NLS-1$ dataSourceHandle.setProperty( "odaUser", "NewUser" );//$NON-NLS-1$ //$NON-NLS-2$ dataSourceHandle.setProperty( "odaPassword", "NewPassword" );//$NON-NLS-1$ //$NON-NLS-2$ dataSourceHandle.setProperty( "odaURL", "NewURL" );//$NON-NLS-1$ //$NON-NLS-2$ dataSourceHandle.setProperty( "odaDriverClass", "NewDriverClass" );//$NON-NLS-1$ //$NON-NLS-2$ OdaDataSetHandle dataSetHandle = (OdaDataSetHandle) designHandle .findDataSet( "dataSet" );//$NON-NLS-1$ dataSetHandle.setProperty( OdaDataSetHandle.QUERY_TEXT_PROP, "select * from cities" );//$NON-NLS-1$ dataSetHandle.setProperty( "queryTimeOut", "60" );//$NON-NLS-1$ //$NON-NLS-2$ save( ); assertTrue( compareFile( "ODAElementExtensionTest_golden.xml") );//$NON-NLS-1$ } /** * Test cases: * * <ul> * <li>to create an oda data set from an existed oda data set. extension id * should not be null. * <li>to create an oda data source from an existed oda data source. * extension id should not be null. * </ul> * * @throws Exception */ public void testNewElementFrom( ) throws Exception { openDesign( "ODAElementExtensionTest.xml" ); //$NON-NLS-1$ OdaDataSourceHandle dataSource = (OdaDataSourceHandle) designHandle .findDataSource( "dataSource" );//$NON-NLS-1$ assertEquals( DATASOURCE_EXTENSION_ID, dataSource.getExtensionID( ) ); OdaDataSourceHandle extendsSource = (OdaDataSourceHandle) designHandle .getElementFactory( ) .newElementFrom( dataSource, "dataSource1" ); //$NON-NLS-1$ assertEquals( DATASOURCE_EXTENSION_ID, extendsSource.getExtensionID( ) ); OdaDataSetHandle dataSet = (OdaDataSetHandle) designHandle .findDataSet( "dataSet" );//$NON-NLS-1$ assertEquals( DATASET_EXTENSION_ID, dataSet.getExtensionID( ) ); OdaDataSetHandle extendsSet = (OdaDataSetHandle) designHandle .getElementFactory( ).newElementFrom( dataSet, "dataSet1" ); //$NON-NLS-1$ assertEquals( DATASET_EXTENSION_ID, extendsSet.getExtensionID( ) ); } /** * Tests to extends for the oda datasource * * <ul> * <li>dataSource1 has extendsion id, dataSource1 hasn't. Exception is * thrown. * <li>if both have extension id, no exception. * </ul> * * @throws Exception */ public void testSetExtends( ) throws Exception { sessionHandle = DesignEngine.newSession( ULocale.ENGLISH ); designHandle = sessionHandle.createDesign( ); OdaDataSourceHandle dataSource1 = designHandle.getElementFactory( ) .newOdaDataSource( "ds1", DATASOURCE_EXTENSION_ID ); //$NON-NLS-1$ designHandle.getDataSources( ).add( dataSource1 ); OdaDataSourceHandle dataSource2 = designHandle.getElementFactory( ) .newOdaDataSource( "ds2", null ); //$NON-NLS-1$ designHandle.getDataSources( ).add( dataSource2 ); try { dataSource2.setExtends( dataSource1 ); fail( ); } catch ( ExtendsException e ) { assertEquals( ExtendsException.DESIGN_EXCEPTION_WRONG_EXTENSION_TYPE, e .getErrorCode( ) ); } try { dataSource1.setExtends( dataSource2 ); fail( ); } catch ( ExtendsException e ) { assertEquals( ExtendsException.DESIGN_EXCEPTION_WRONG_EXTENSION_TYPE, e .getErrorCode( ) ); } dataSource2.getElement( ).setProperty( IOdaExtendableElementModel.EXTENSION_ID_PROP, DATASOURCE_EXTENSION_ID ); dataSource2.setExtends( dataSource1 ); } }
33.758974
124
0.705302
758effd74dad3965c680f6bebef25e3142e8697c
1,427
h
C
code/include/State.h
Pridexs/projectM
a189c543763f1eff8fa0dcfda6162e3c5b8faf00
[ "MIT" ]
null
null
null
code/include/State.h
Pridexs/projectM
a189c543763f1eff8fa0dcfda6162e3c5b8faf00
[ "MIT" ]
null
null
null
code/include/State.h
Pridexs/projectM
a189c543763f1eff8fa0dcfda6162e3c5b8faf00
[ "MIT" ]
null
null
null
/* * This code is from projectM a 2D side scroller using SFML. * It was made using the help of the SFML Game Development Book * * If you have any questions, please contact me at * pridexs.com * * For more information visit the repo for this project at: * github.com/pridexs * * Alexandre Maros - 2016 */ #ifndef STATE_HPP #define STATE_HPP #include <StateIdentifiers.h> #include <ResourceIdentifiers.h> #include <Player.h> #include <SFML\System\Time.hpp> #include <SFML\Window\Event.hpp> #include <SFML\Graphics\RenderWindow.hpp> #include <memory> class StateStack; class State { public: typedef std::unique_ptr<State> Ptr; struct Context { Context(sf::RenderWindow& window, TextureHolder& textures, FontHolder& fonts, Player& player); sf::RenderWindow* window; TextureHolder* textures; FontHolder* fonts; Player* player; }; public: State(StateStack& stack, Context context); virtual ~State(); virtual void draw() = 0; virtual bool update(sf::Time dt) = 0; virtual bool handleEvent(const sf::Event& event) = 0; protected: void requestStackPush(States::ID stateID); void requestStackPop(); void requestStateClear(); Context getContext() const; private: StateStack* mStack; Context mContext; }; #endif
22.296875
103
0.639103
3c2b8f11cb5b146f67f2700d0af88abe43a51a6c
780
sql
SQL
data_collection/sofa/sofa.sql
chloride-management/chloride-management
17e0ad151779a4c241c9da1e2d8d194f926780e8
[ "MIT" ]
5
2020-12-24T18:33:54.000Z
2022-03-30T07:26:22.000Z
src/SQL/sofa/sofa_pan.sql
geickelb/mimiciii-antibiotics-opensource
51384971905fe107031b7362d5682d79a2532ede
[ "MIT" ]
null
null
null
src/SQL/sofa/sofa_pan.sql
geickelb/mimiciii-antibiotics-opensource
51384971905fe107031b7362d5682d79a2532ede
[ "MIT" ]
1
2021-06-22T07:27:13.000Z
2021-06-22T07:27:13.000Z
DROP MATERIALIZED VIEW IF EXISTS SOFA_pan CASCADE; CREATE MATERIALIZED VIEW SOFA_pan AS ( select ie.subject_id, ie.hadm_id, ie.icustay_id,day -- Combine all the scores to get SOFA -- Impute 0 if the score is missing , coalesce(respiration,0) + coalesce(coagulation,0) + coalesce(liver,0) + coalesce(cardiovascular,0) + coalesce(cns,0) + coalesce(renal,0) as SOFA , respiration,PaO2FiO2_vent_min,PaO2FiO2_novent_min , coagulation,platelet_min , liver,Bilirubin_Max , cardiovascular,rate_dopamine,rate_epinephrine,rate_norepinephrine,rate_dobutamine, MeanBP_Min , cns, MinGCS , renal,Creatinine_Max,UrineOutput from mimiciii.icustays ie inner join scorecalc s on ie.icustay_id = s.icustay_id where day <= 28 order by ie.subject_id,ie.hadm_id, ie.icustay_id,day)
32.5
95
0.785897
080ab4c48e85939e92e9a2eb7228a300c7e76a4e
641
html
HTML
site/_layouts/doc.html
ceefour/fusionauth-site
8213dc8b0d42bb77e94533341a065869bb1ee66a
[ "Apache-2.0" ]
null
null
null
site/_layouts/doc.html
ceefour/fusionauth-site
8213dc8b0d42bb77e94533341a065869bb1ee66a
[ "Apache-2.0" ]
1
2022-02-21T20:47:27.000Z
2022-02-21T20:47:27.000Z
site/_layouts/doc.html
ceefour/fusionauth-site
8213dc8b0d42bb77e94533341a065869bb1ee66a
[ "Apache-2.0" ]
null
null
null
<!doctype html> <html lang="en"> <head> {% include docs/_head.html %} </head> <body> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KFGZT3Q" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> {% include docs/_navigation.html %} <div class="main prime-side-menu-body"> {% include docs/_header.html %} <article> {% if page.markdown == 1 %} {{ content | markdownify }} {% else %} {{ content }} {% endif %} {% include docs/_footer.html %} </article> </div> </body> </html>
26.708333
160
0.620905
0f49ac3a58cc4280273d2f0bf36ff0276c313e46
84
sql
SQL
src/test/resources/sql/insert/30fcf054.sql
Shuttl-Tech/antlr_psql
fcf83192300abe723f3fd3709aff5b0c8118ad12
[ "MIT" ]
66
2018-06-15T11:34:03.000Z
2022-03-16T09:24:49.000Z
src/test/resources/sql/insert/30fcf054.sql
Shuttl-Tech/antlr_psql
fcf83192300abe723f3fd3709aff5b0c8118ad12
[ "MIT" ]
13
2019-03-19T11:56:28.000Z
2020-08-05T04:20:50.000Z
src/test/resources/sql/insert/30fcf054.sql
Shuttl-Tech/antlr_psql
fcf83192300abe723f3fd3709aff5b0c8118ad12
[ "MIT" ]
28
2019-01-05T19:59:02.000Z
2022-03-24T11:55:50.000Z
-- file:numeric_big.sql ln:238 expect:true INSERT INTO num_exp_mul VALUES (5,0,'0')
28
42
0.75
f4e4c51fc28a75c039e23b4e1dec2a31ab662c4a
1,584
lua
Lua
premake5.lua
azon04/ZooRayTracer
8a1cb905bc4b0bb28d2498bd4906f45a8038a0f0
[ "MIT" ]
null
null
null
premake5.lua
azon04/ZooRayTracer
8a1cb905bc4b0bb28d2498bd4906f45a8038a0f0
[ "MIT" ]
null
null
null
premake5.lua
azon04/ZooRayTracer
8a1cb905bc4b0bb28d2498bd4906f45a8038a0f0
[ "MIT" ]
null
null
null
-- premake5.lua -- Actions newaction { trigger = "clean", description = "clean up project files", execute = function() os.rmdir("./Projects") end } workspace "ZooRayTracer" location ("./") configurations { "Debug", "Release" } project "ZooRayTracer" location ("Projects/".. _ACTION .."/ZooRayTracer") kind "ConsoleApp" language "C++" targetdir "Binaries/%{cfg.buildcfg}" includedirs { "Source", "Source/Framework", "Source/Math", "Source/Lib/Include", "3rdParty/Build/assimp/include", "3rdParty/RapidJSON/include" } files { "Source/**.h", "Source/**.cpp", "Source/**.c" } debugdir "./" debugargs { "> Output/output.ppm" } filter "configurations:Debug" defines { "DEBUG" } symbols "On" filter "configurations:Release" defines { "NDEBUG" } optimize "On" filter { "Debug", "action:vs2017" } syslibdirs { "3rdParty/Build/assimp/Debug/x86-vs141" } links { "assimp-vc141-mtd" } postbuildcommands { "{COPY} " .. path.getabsolute("3rdParty/Build/assimp/Debug/x86-vs141/assimp-vc141-mtd.dll") .." %{cfg.targetdir}" } filter { "Debug", "action:vs2015" } syslibdirs { "3rdParty/Build/assimp/Debug/x86-vs140" } links { "assimp-vc140-mtd" } postbuildcommands { "{COPY} " .. path.getabsolute("3rdParty/Build/assimp/Debug/x86-vs140/assimp-vc140-mtd.dll") .." %{cfg.targetdir}" } group "Tools"
25.142857
125
0.566919
1d5cfe052c1f9173f2ccbfc2512dd872f3211bff
4,740
dart
Dart
snapLoop/lib/ui/Widget/AnimatingFlatButton/AnimatingFlatButton.dart
sanchitmonga22/SnapLoop
49686eea007a573eae3331385a71a4b4648ca773
[ "MIT" ]
null
null
null
snapLoop/lib/ui/Widget/AnimatingFlatButton/AnimatingFlatButton.dart
sanchitmonga22/SnapLoop
49686eea007a573eae3331385a71a4b4648ca773
[ "MIT" ]
null
null
null
snapLoop/lib/ui/Widget/AnimatingFlatButton/AnimatingFlatButton.dart
sanchitmonga22/SnapLoop
49686eea007a573eae3331385a71a4b4648ca773
[ "MIT" ]
null
null
null
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import '../../../app/constants.dart'; class AnimatingFlatButton extends StatefulWidget { AnimatingFlatButton( {Key key, this.labelText = "", this.onClicked, @required this.isAnimating, this.innerWidget}) : super(key: key); final String labelText; final Function onClicked; final bool isAnimating; final Widget innerWidget; @override _AnimatingFlatButtonState createState() => _AnimatingFlatButtonState(); } class _AnimatingFlatButtonState extends State<AnimatingFlatButton> with SingleTickerProviderStateMixin { AnimationController _resizableController; // static Color colorVariation(int note) { // if (note <= 1) { // // return Colors.greenAccent[50]; // return Colors.greenAccent[100]; // } else if (note > 1 && note <= 2) { // // return Colors.greenAccent[100]; // return Colors.greenAccent; // } else if (note > 2 && note <= 3) { // // return Colors.greenAccent[200]; // return Colors.greenAccent; // } else if (note > 3 && note <= 4) { // return Colors.greenAccent[400]; // } else if (note > 4 && note <= 5) { // return Colors.greenAccent[700]; // } // // else if (note > 5 && note <= 6) { // // return Colors.greenAccent[400]; // // } else if (note > 6 && note <= 7) { // // return Colors.greenAccent[400]; // // } else if (note > 7 && note <= 8) { // // return Colors.greenAccent[700]; // // } else if (note > 8 && note <= 9) { // // return Colors.greenAccent[700]; // // } else if (note > 9 && note <= 10) { // // return Colors.greenAccent[700]; // // } // return null; // } static Color colorVariation(int note) { if (note <= 1) { // return Colors.greenAccent[50]; return Colors.greenAccent[100]; } else if (note > 1 && note <= 2) { // return Colors.greenAccent[100]; return Colors.greenAccent; } else if (note > 2 && note <= 3) { // return Colors.greenAccent[200]; return Colors.greenAccent[400]; } else if (note > 3 && note <= 4) { return Colors.greenAccent[700]; } else if (note > 4 && note <= 5) { return Colors.greenAccent[700]; } // else if (note > 5 && note <= 6) { // return Colors.greenAccent[400]; // } else if (note > 6 && note <= 7) { // return Colors.greenAccent[400]; // } else if (note > 7 && note <= 8) { // return Colors.greenAccent[700]; // } else if (note > 8 && note <= 9) { // return Colors.greenAccent[700]; // } else if (note > 9 && note <= 10) { // return Colors.greenAccent[700]; // } return null; } @override void initState() { _resizableController = new AnimationController( vsync: this, duration: new Duration( seconds: 2, ), ); _resizableController.addStatusListener((animationStatus) { switch (animationStatus) { case AnimationStatus.completed: _resizableController.reverse(); break; case AnimationStatus.dismissed: _resizableController.forward(); break; case AnimationStatus.forward: break; case AnimationStatus.reverse: break; } }); _resizableController.forward(); super.initState(); } Widget getInnerWidget({GlobalKey<FormState> formkey}) { return OutlineButton( padding: EdgeInsets.symmetric(vertical: 15), focusColor: CupertinoColors.activeOrange, textTheme: ButtonTextTheme.primary, onPressed: widget.onClicked, child: Text( widget.labelText, style: kTextFormFieldStyle, ), ); } @override void dispose() { // TODO: implement dispose _resizableController.dispose(); super.dispose(); } @override Widget build(BuildContext context) { Widget innerWidget = widget.innerWidget; if (widget.innerWidget == null) { innerWidget = getInnerWidget(); } return widget.isAnimating ? AnimatedBuilder( animation: _resizableController, builder: (context, child) { return Container( padding: EdgeInsets.zero, child: innerWidget, decoration: BoxDecoration( shape: BoxShape.rectangle, borderRadius: BorderRadius.all(Radius.circular(12)), border: Border.all( color: colorVariation( (_resizableController.value * 5).round()), width: 5), ), ); }) : innerWidget; } }
30.384615
73
0.572363
b44a870ab6bd33bafe985fa1901a573299b4e370
4,074
swift
Swift
Sources/MadDisplay/Shapes/RoundRect.swift
seeaya/MadDisplay
679710dd56d7cfc77b5d5a867f8e42047f4f2c62
[ "MIT" ]
null
null
null
Sources/MadDisplay/Shapes/RoundRect.swift
seeaya/MadDisplay
679710dd56d7cfc77b5d5a867f8e42047f4f2c62
[ "MIT" ]
null
null
null
Sources/MadDisplay/Shapes/RoundRect.swift
seeaya/MadDisplay
679710dd56d7cfc77b5d5a867f8e42047f4f2c62
[ "MIT" ]
1
2021-06-30T00:45:18.000Z
2021-06-30T00:45:18.000Z
public class RoundRect: TileGrid { public init(x: Int, y: Int, width: Int, height: Int, radius r: Int, fill: UInt32! = nil, outline: UInt32! = nil, stroke: Int = 1) { let _bitmap = Bitmap(width: width, height: height, bitCount: 4) let _palette = Palette(count: 3) super.init(bitmap: _bitmap, palette: _palette, x: x, y: y) palette.makeTransparent(0) for i in 0..<width { for j in r..<(height - r) { bitmap[i, j] = 2 } } helper(r, r, r, color: 2, xOffset: width - 2 * r - 1, yOffset: height - 2 * r - 1, fill: true) if let value = fill { palette[2] = value } else { palette[2] = 0 palette.makeTransparent(2) } if let outline = outline { palette[1] = outline for w in r..<(width - r) { for line in 0..<stroke { bitmap[w, line] = 1 bitmap[w, height - line - 1] = 1 } } for h in r..<(height - r) { for line in 0..<stroke { bitmap[line, h] = 1 bitmap[width - line - 1, h] = 1 } } helper(r, r, r, color: 1, xOffset: width - 2 * r - 1, yOffset: height - 2 * r - 1, stroke: stroke) } } func helper(_ x0: Int, _ y0: Int, _ r: Int, color: UInt32, xOffset: Int = 0, yOffset: Int = 0, stroke: Int = 1, cornerFlag: UInt8 = 0x0F, fill: Bool = false) { var f = 1 - r var ddFX = 1 var ddFY = -2 * r var x = 0 var y = r while x < y { if f >= 0 { y -= 1 ddFY += 2 f += ddFY } x += 1 ddFX += 2 f += ddFX if (cornerFlag & 0x08) != 0 { if fill { for w in (x0 - y)..<(x0 + y + xOffset) { bitmap[w, y0 + x + yOffset] = color } for w in (x0 - x)..<(x0 + x + xOffset) { bitmap[w, y0 + y + yOffset] = color } } else { for line in 0..<stroke { bitmap[x0 - y + line, y0 + x + yOffset] = color bitmap[x0 - x, y0 + y + yOffset - line] = color } } } if (cornerFlag & 0x01) != 0 { if fill { for w in (x0 - y)..<(x0 + y + xOffset) { bitmap[w, y0 - x] = color } for w in (x0 - x)..<(x0 + x + xOffset) { bitmap[w, y0 - y] = color } } else { for line in 0..<stroke { bitmap[x0 - y + line, y0 - x] = color bitmap[x0 - x, y0 - y + line] = color } } } if (cornerFlag & 0x04) != 0 { for line in 0..<stroke { bitmap[x0 + x + xOffset, y0 + y + yOffset - line] = color bitmap[x0 + y + xOffset - line, y0 + x + yOffset] = color } } if (cornerFlag & 0x02) != 0 { for line in 0..<stroke { bitmap[x0 + x + xOffset, y0 - y + line] = color bitmap[x0 + y + xOffset - line, y0 - x] = color } } } } public func fill(color: UInt32?) { if let color = color { palette[2] = color palette.makeOpaque(2) } else { palette[2] = 0 palette.makeTransparent(2) } } public func outline(color: UInt32?) { if let color = color { palette[1] = color palette.makeOpaque(1) } else { palette[1] = 0 palette.makeTransparent(1) } } }
31.099237
163
0.37408
e3cfaecd592db77134667e3962477cba0953484e
2,414
go
Go
lib_test.go
boxtown/tflags
f1cb21c6009e50e28350d3516c5bb875f7b2ada7
[ "MIT" ]
2
2016-10-21T09:04:07.000Z
2016-10-21T09:39:13.000Z
lib_test.go
boxtown/tflags
f1cb21c6009e50e28350d3516c5bb875f7b2ada7
[ "MIT" ]
null
null
null
lib_test.go
boxtown/tflags
f1cb21c6009e50e28350d3516c5bb875f7b2ada7
[ "MIT" ]
null
null
null
package gotag import "testing" func TestSkip(t *testing.T) { tc := New() tc.Skip("tagA", "tagB") mock := &mockT{} tc.Test("tagA", mock, func(t T) {}) tc.Test("tagB", mock, func(t T) {}) tc.Test("taga", mock, func(t T) {}) if mock.skipped != 2 { t.Error("Wrong number of tests skipped") t.Fail() } } func TestSkipFuzzy(t *testing.T) { tc := New() tc.Skip("tagA") tc.Fuzzy = true mock := &mockT{} tc.Test("tagA", mock, func(t T) {}) tc.Test("taga", mock, func(t T) {}) if mock.skipped != 2 { t.Error("Wrong number of tests skipped") t.Fail() } } func TestRunOnly(t *testing.T) { tc := New() tc.RunOnly("tagA") mock := &mockT{} tc.Test("tagA", mock, func(t T) {}) tc.Test("tagB", mock, func(t T) {}) tc.Test("taga", mock, func(t T) {}) if mock.skipped != 2 { t.Error("Wrong number of tests skipped") t.Fail() } } func TestRunOnlyFuzzy(t *testing.T) { tc := New() tc.RunOnly("tagA") tc.Fuzzy = true mock := &mockT{} tc.Test("tagA", mock, func(t T) {}) tc.Test("taga", mock, func(t T) {}) if mock.skipped != 0 { t.Error("Wrong number of tests skipped") t.Fail() } } func TestRunOverridesSkip(t *testing.T) { tc := New() tc.Skip("tagA") tc.RunOnly("tagA") mock := &mockT{} tc.Test("tagA", mock, func(t T) {}) if mock.skipped != 0 { t.Error("Wrong number of tests skipped") t.Fail() } tc.Fuzzy = true tc.Test("taga", mock, func(t T) {}) if mock.skipped != 0 { t.Error("Wrong number of tests skipped") t.Fail() } } type mockT struct { skipped int } func (t *mockT) Error(...interface{}) {} func (t *mockT) Errorf(string, ...interface{}) {} func (t *mockT) Fail() {} func (t *mockT) FailNow() {} func (t *mockT) Failed() bool { return false } func (t *mockT) Fatal(...interface{}) {} func (t *mockT) Fatalf(string, ...interface{}) {} func (t *mockT) Log(...interface{}) {} func (t *mockT) Logf(string, ...interface{}) {} func (t *mockT) Parallel() {} func (t *mockT) Run(string, func(*testing.T)) bool { return false } func (t *mockT) Skip(...interface{}) { t.skipped++ } func (t *mockT) SkipNow() { t.skipped++ } func (t *mockT) Skipf(string, ...interface{}) { t.skipped++ } func (t *mockT) Skipped() bool { return false }
24.14
67
0.543496
10d2a210ea457b54eda0baa966fd83c5ab327c9d
913
dart
Dart
idomuss/lib/components/feed_clipper.dart
gitzel/IDOMUSS
6a8106207f9fc126f0506177643d05922c02602a
[ "MIT" ]
null
null
null
idomuss/lib/components/feed_clipper.dart
gitzel/IDOMUSS
6a8106207f9fc126f0506177643d05922c02602a
[ "MIT" ]
null
null
null
idomuss/lib/components/feed_clipper.dart
gitzel/IDOMUSS
6a8106207f9fc126f0506177643d05922c02602a
[ "MIT" ]
1
2021-09-17T20:04:15.000Z
2021-09-17T20:04:15.000Z
import 'package:flutter/material.dart'; class FeedClipper extends CustomClipper<Path> { final double distanceFromWall = 12; final double controlPointDistanceFromWall = 2; @override Path getClip(Size size) { final double height = size.height; final double halfHeight = size.height * 0.5; final double width = size.width; Path clippedPath = Path(); clippedPath.moveTo(0, halfHeight); clippedPath.lineTo(0, height - distanceFromWall); clippedPath.quadraticBezierTo(0 + controlPointDistanceFromWall, height - controlPointDistanceFromWall, 0 + distanceFromWall, height); clippedPath.lineTo(width, height); clippedPath.lineTo(width, 0 + 30.0); clippedPath.quadraticBezierTo(width - 5, 0 + 5.0, width - 35, 0 + 15.0); clippedPath.close(); return clippedPath; } @override bool shouldReclip(CustomClipper<Path> oldClipper) { return true; } }
30.433333
77
0.711939
fff6071199275e216c3fd9d0aeab8b5af3863d8e
2,854
html
HTML
Project/Web/MusicHub.Web/ClientApp/src/app/components/song/song-list-template/song-list-template.component.html
dimitarkole/MusicHub
86894afea1cdc3be636a186f9dc4b02ccd47b94d
[ "MIT" ]
null
null
null
Project/Web/MusicHub.Web/ClientApp/src/app/components/song/song-list-template/song-list-template.component.html
dimitarkole/MusicHub
86894afea1cdc3be636a186f9dc4b02ccd47b94d
[ "MIT" ]
null
null
null
Project/Web/MusicHub.Web/ClientApp/src/app/components/song/song-list-template/song-list-template.component.html
dimitarkole/MusicHub
86894afea1cdc3be636a186f9dc4b02ccd47b94d
[ "MIT" ]
null
null
null
<div class="row"> <div class="col-md-12"> <div class="featured_list"> <div id="jp_container_2" class="jp-audio" role="application" aria-label="media player"> <div class="jp-type-playlist"> <div class="jp-playlist"> <ul class="d-flex flex-row align-items-start justify-content-start flex-wrap row" style=""> <li class="jp-playlist-current col-md-3" *ngFor="let song of songs; index as i"> <div> <div class="container"> <div class="row"> <div class="col-sm-1"> </div> <div class="col-sm-8"> <div class="featured_album"> {{song.name?.substring(0, 25)}} </div> <div class="featured_title"> <small>{{song.user?.username}}</small> </div> </div> <div class="col-sm-1" *ngIf="type=='own'"> <div class="dropdown"> <button class="btn text-white" type="button" id="dropdownSettingsButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-three-dots-vertical" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" /> </svg> </button> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownSettingsButton"> <button class="dropdown-item" href="#" (click)="openEdit(song)"> Edit </button> <button class="dropdown-item" href="#" (click)="openDelete(song.id)"> Delete </button> </div> </div> </div> </div> </div> </div> <div class="featured_song_image"> <img src="{{'../../../../assets/resources/song/images/' + song.imageFilePath}}" alt="logo" class="song_image"> </div> <div class="album_play_button" aria-hidden="true" routerLink="/home/play/{{song.id}}"> </div> </li> </ul> </div> </div> </div> </div> </div> </div>
47.566667
189
0.413805
143b93caa97429061eedd4d2e35d958a4df0a858
905
css
CSS
src/components/assets/css/ArtMediums.css
SnkrFr3sh/react-portfolio
998175ad140118ec60115d3d674c488cd2488673
[ "MIT" ]
null
null
null
src/components/assets/css/ArtMediums.css
SnkrFr3sh/react-portfolio
998175ad140118ec60115d3d674c488cd2488673
[ "MIT" ]
null
null
null
src/components/assets/css/ArtMediums.css
SnkrFr3sh/react-portfolio
998175ad140118ec60115d3d674c488cd2488673
[ "MIT" ]
1
2022-02-18T01:04:42.000Z
2022-02-18T01:04:42.000Z
:root { --black: #000000; --white: #fff; --dark-brown: #3c1c14fb; --khaki: #E7C896; --med-brown: #85684A; --light-brown: #A48467; --grey-brown: #9C7C74; --dark-grey: #212529; --lightgrey: rgb(167, 167, 167); --white: white; --green: #284328; --medgreen: #357335; --medgrey: rgb(95, 95, 95); --red: red; --blue: blue; } .ArtMediumWrapper { max-width: 900px; padding: 0px 0px; margin: 0px auto; } .ArtMediumTitleBox { /* margin-left: 100px; */ margin-top: 50px; background-color: var(--blue); padding: 5px 30px 30px 30px; max-width: 300px; color: var(--white); position: absolute } .ArtMediumContent{ position: absolute; background-color: var(--white); min-width: 850px; min-height: 550px; margin-left: 30px; margin-top: 90px; padding: 20px; color: var(--white); }
18.1
36
0.569061
11efc391784110afd8341f6da6fa203cc800cbbb
479
asm
Assembly
programs/oeis/267/A267612.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/267/A267612.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/267/A267612.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A267612: Triangle read by rows giving successive states of cellular automaton generated by "Rule 185" initiated with a single ON (black) cell. ; 1,0,0,1,0,1,0,1,1,0,1,0,1,1,1,1,0,1,0,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 mov $1,$0 lpb $1 mov $0,16 sub $1,1 add $3,2 sub $1,$3 mov $2,2 lpe lpb $0 mov $0,$1 pow $0,$2 lpe add $0,1 mod $0,2
26.611111
201
0.584551
87b1b4f4d0f7ce80b02180665bf75770c7f8e663
1,420
lua
Lua
lua/kivi/core/source.lua
notomo/kivi.nvim
003081474815d493f8b4f4c220d4172121c50f40
[ "MIT" ]
4
2020-10-18T15:07:29.000Z
2021-04-24T08:24:16.000Z
lua/kivi/core/source.lua
notomo/kivi.nvim
003081474815d493f8b4f4c220d4172121c50f40
[ "MIT" ]
null
null
null
lua/kivi/core/source.lua
notomo/kivi.nvim
003081474815d493f8b4f4c220d4172121c50f40
[ "MIT" ]
1
2021-07-03T14:01:11.000Z
2021-07-03T14:01:11.000Z
local modulelib = require("kivi.lib.module") local pathlib = require("kivi.lib.path") local filelib = require("kivi.lib.file") local HighlighterFactory = require("kivi.lib.highlight").HighlighterFactory local base = require("kivi.source.base") local M = {} local Source = {} M.Source = Source function Source.new(source_name, source_opts) vim.validate({source_name = {source_name, "string"}, source_opts = {source_opts, "table", true}}) source_opts = source_opts or {} local source = modulelib.find("kivi.source." .. source_name) if source == nil then return nil, "not found source: " .. source_name end local tbl = { name = source_name, bufnr = vim.api.nvim_get_current_buf(), filetype = ("kivi-%s"):format(source_name), highlights = HighlighterFactory.new("kivi-highlight"), pathlib = pathlib, filelib = filelib, opts = vim.tbl_extend("force", source.opts, source_opts), _source = source, } return setmetatable(tbl, Source), nil end function Source.__index(self, k) return rawget(Source, k) or self._source[k] or base[k] end function Source.start(self, opts, setup_opts) vim.validate({opts = {opts, "table"}, setup_opts = {setup_opts, "table", true}}) if setup_opts then local new_opts = self:setup(opts, vim.tbl_extend("force", self._source.setup_opts, setup_opts)) return self:collect(new_opts) end return self:collect(opts) end return M
29.583333
99
0.705634
b407c21d0f038b1bc6361539959b47508ffa41d8
5,916
kt
Kotlin
core/src/main/kotlin/dev/entao/keb/core/HttpFilter.kt
yangentao/KebCore
9df2f204e161d1c212b014f696f1e03d20d3f03a
[ "MIT" ]
null
null
null
core/src/main/kotlin/dev/entao/keb/core/HttpFilter.kt
yangentao/KebCore
9df2f204e161d1c212b014f696f1e03d20d3f03a
[ "MIT" ]
null
null
null
core/src/main/kotlin/dev/entao/keb/core/HttpFilter.kt
yangentao/KebCore
9df2f204e161d1c212b014f696f1e03d20d3f03a
[ "MIT" ]
null
null
null
@file:Suppress("MemberVisibilityCanBePrivate", "unused") package dev.entao.keb.core import dev.entao.kava.base.hasAnnotation import dev.entao.kava.base.ownerClass import dev.entao.kava.log.Yog import dev.entao.kava.log.YogDir import dev.entao.kava.log.YogPrinter import dev.entao.kava.log.logd import dev.entao.keb.core.account.LoginCheckSlice import dev.entao.keb.core.account.TokenSlice import java.util.* import javax.servlet.* import javax.servlet.annotation.WebFilter import javax.servlet.http.HttpServletRequest import javax.servlet.http.HttpServletResponse import kotlin.collections.ArrayList import kotlin.reflect.KClass import kotlin.reflect.KFunction import kotlin.reflect.full.findAnnotation /** * Created by entaoyang@163.com on 2016/12/21. */ typealias HttpAction = KFunction<*> // @WebFilter中的urlPatterns = "/*" abstract class HttpFilter : Filter { open var sessionTimeoutSeconds: Int = 3600 open var loginUri: String = "" open var logoutUri: String = "" open var accountInfoUri: String = "" open var appName: String = "主页" private lateinit var filterConfig: FilterConfig var contextPath: String = "" private set // /* => "" , /person/* => person @WebFilter中的urlPatterns var patternPath: String = "" private set val webDir = WebDir() val routeManager = HttpActionManager() val timerSlice = TimerSlice() val sliceList: ArrayList<HttpSlice> = ArrayList() val allGroups: ArrayList<KClass<out HttpGroup>> get() = routeManager.allGroups val infoMap = HashMap<String, Any>() fun addSlice(hs: HttpSlice) { sliceList += hs } abstract fun onInit() abstract fun cleanThreadLocals() open fun createTokenPassword(): String { return System.currentTimeMillis().toString() } open fun createLogPrinter(): YogPrinter { return YogDir(webDir.logDir, 15) } open fun onDestroy() { } final override fun init(filterConfig: FilterConfig) { this.filterConfig = filterConfig sliceList.clear() contextPath = filterConfig.servletContext.contextPath val pat = this::class.findAnnotation<WebFilter>()?.urlPatterns?.toList()?.firstOrNull() ?: throw IllegalArgumentException("urlPatterns只能设置一条, 比如: /* 或 /person/*") patternPath = pat.filter { it.isLetterOrDigit() || it == '_' } webDir.onConfig(this, filterConfig) Yog.setPrinter(createLogPrinter()) logd("Server Start!") this.sliceList.clear() routeManager.filter = this addSlice(this.routeManager) addSlice(this.timerSlice) addSlice(MethodAcceptor) addSlice(LoginCheckSlice) addSlice(TokenSlice(createTokenPassword())) try { addRouterOfThis() onInit() for (hs in sliceList) { hs.onInit(this, filterConfig) } if (this.loginUri.isEmpty()) { this.loginUri = findRouter { it.function.hasAnnotation<LoginAction>() }?.uri?.toLowerCase() ?: "" } if (this.logoutUri.isEmpty()) { this.logoutUri = findRouter { it.function.hasAnnotation<LogoutAction>() }?.uri?.toLowerCase() ?: "" } if (this.accountInfoUri.isEmpty()) { this.accountInfoUri = findRouter { it.function.hasAnnotation<AccountInfoAction>() }?.uri?.toLowerCase() ?: "" } } catch (ex: Exception) { ex.printStackTrace() } finally { cleanThreadLocals() } } fun findRouter(block: (Router) -> Boolean): Router? { return routeManager.routeMap.values.firstOrNull(block) } final override fun destroy() { for (hs in sliceList) { hs.onDestory() } sliceList.clear() onDestroy() Yog.flush() Yog.clearPrinter() cleanThreadLocals() } fun resUri(res: String): String { return buildPath(contextPath, res) } fun actionUri(ac: KFunction<*>): String { val cls = ac.ownerClass!! if (cls == this::class) { return buildPath(contextPath, patternPath, ac.actionName) } return buildPath(contextPath, patternPath, cls.pageName, ac.actionName) } fun groupUri(g: KClass<*>): String { return buildPath(contextPath, patternPath, g.pageName) } private fun addRouterOfThis() { val ls = this::class.actionList for (f in ls) { val uri = actionUri(f) val info = Router(uri, this::class, f, this) routeManager.addRouter(info) } } fun addGroup(vararg clses: KClass<out HttpGroup>) { this.routeManager.addGroup(*clses) } final override fun doFilter(request: ServletRequest, response: ServletResponse, chain: FilterChain) { try { if (request is HttpServletRequest && response is HttpServletResponse) { request.characterEncoding = "UTF-8" response.characterEncoding = "UTF-8" val c = HttpContext(this, request, response, chain) for (hs in sliceList) { hs.beforeRequest(c) } val r = routeManager.find(c) if (r == null) { chain.doFilter(request, response) } else { doHttpFilter(c, r) } for (hs in sliceList) { hs.afterRequest(c) } } else { chain.doFilter(request, response) } } catch (ex: Exception) { logd(ex) throw ex } finally { cleanThreadLocals() } } fun doHttpFilter(c: HttpContext, r: Router) { for (hs in sliceList) { if (!hs.acceptRouter(c, r)) { return } } r.dispatch(c) for (hs in sliceList) { hs.afterRouter(c, r) } } fun addTimer(t: HttpTimer) { this.timerSlice.addTimer(t) } //dayOfMonth [0-31] //hour [0-23] //minute [0-59] open fun onHttpTimer(dayOfMonth: Int, hour: Int, minute: Int) { } //hour [0-23] open fun onHour(hour: Int) { } //m一直自增 , 会大于60 open fun onMinute(m: Int) { } val navControlerList: List<Pair<String, KClass<*>>> by lazy { val navConList = ArrayList<Pair<String, KClass<*>>>() // for (c in allPages) { // val ni = c.findAnnotation<NavItem>() // if (ni != null) { // val lb = if (ni.group.isNotEmpty()) { // ni.group // } else { // c.userLabel // } // navConList.add(lb to c) // } // } navConList } companion object { const val GROUP_SUFFIX = "Group" const val ACTION = "Action" const val INDEX = "index" } }
23.759036
113
0.687627
5851b8b2a79028d3891b6557cb0537d4faf9fd6a
8,031
lua
Lua
clipper.lua
krdcnn/Lua-clipper
045746b88157d90fdf796a0f8d95865e21913f0d
[ "Unlicense" ]
1
2021-06-26T08:35:54.000Z
2021-06-26T08:35:54.000Z
clipper.lua
krdcnn/Lua-clipper
045746b88157d90fdf796a0f8d95865e21913f0d
[ "Unlicense" ]
null
null
null
clipper.lua
krdcnn/Lua-clipper
045746b88157d90fdf796a0f8d95865e21913f0d
[ "Unlicense" ]
1
2021-01-27T02:55:20.000Z
2021-01-27T02:55:20.000Z
local ffi = require("ffi") local C_6 = ffi.load("clipper") ffi.cdef([[ typedef struct __zf_int_point { int64_t x, y; } zf_int_point; typedef struct __zf_int_rect { int64_t left; int64_t top; int64_t right; int64_t bottom; } zf_int_rect; typedef signed long long cInt; typedef struct __zf_path zf_path; typedef struct __zf_paths zf_paths; typedef struct __zf_offset zf_offset; typedef struct __zf_clipper zf_clipper; const char* zf_err_msg(); zf_path* zf_path_new(); void zf_path_free(zf_path *self); zf_int_point* zf_path_get(zf_path *self, int i); bool zf_path_add(zf_path *self, cInt x, cInt y); int zf_path_size(zf_path *self); double zf_path_area(const zf_path *self); bool zf_path_orientation(const zf_path *self); void zf_path_reverse(zf_path *self); int zf_path_point_in_polygon(zf_path *self,cInt x, cInt y); zf_paths* zf_path_simplify(zf_path *self,int fillType); zf_path* zf_path_clean_polygon(const zf_path *in, double distance); zf_paths* zf_paths_new(); void zf_paths_free(zf_paths *self); zf_path* zf_paths_get(zf_paths *self, int i); bool zf_paths_add(zf_paths *self, zf_path *path); zf_paths* zf_paths_simplify(zf_paths *self, int fillType); zf_paths* zf_paths_clean_polygon(zf_paths *self, double distance); int zf_paths_size(zf_paths *self); zf_offset* zf_offset_new(double miterLimit, double roundPrecision); void zf_offset_free(zf_offset *self); zf_paths* zf_offset_path(zf_offset *self, zf_path *subj, double delta, int jointType, int endType); zf_paths* zf_offset_paths(zf_offset *self, zf_paths *subj, double delta, int jointType, int endType); void zf_offset_clear(zf_offset *self); zf_clipper* zf_clipper_new(); void zf_clipper_free(zf_clipper *CLP); void zf_clipper_clear(zf_clipper *CLP); bool zf_clipper_add_path(zf_clipper *CLP,zf_path *path, int pt, bool closed,const char *err); bool zf_clipper_add_paths(zf_clipper *CLP,zf_paths *paths, int pt, bool closed,const char *err); void zf_clipper_reverse_solution(zf_clipper *CLP, bool value); void zf_clipper_preserve_collinear(zf_clipper *CLP, bool value); void zf_clipper_strictly_simple(zf_clipper *CLP, bool value); zf_paths* zf_clipper_execute(zf_clipper *CLP,int clipType,int subjFillType,int clipFillType); zf_int_rect zf_clipper_get_bounds(zf_clipper *CLP); ]]) local Path, Paths, ClipperOffset, Clipper = {}, {}, {}, {} local ClipType = { intersection = 0, union = 1, difference = 2, xor = 3 } local JoinType = { square = 0, round = 1, miter = 2 } local EndType = { closed_polygon = 0, closed_line = 1, open_butt = 2, open_square = 3, open_round = 4 } local InitOptions = { reverse_solution = 1, strictly_simple = 2, preserve_collinear = 4 } local PolyType = { subject = 0, clip = 1 } local PolyFillType = { none = 0, even_odd = 1, non_zero = 2, positive = 3, negative = 4 } Path.new = function() return ffi.gc(C_6.zf_path_new(), C_6.zf_path_free) end Path.add = function(self, x, y) return C_6.zf_path_add(self, x, y) end Path.get = function(self, i) return C_6.zf_path_get(self, i - 1) end Path.size = function(self) return C_6.zf_path_size(self) end Path.area = function(self) return C_6.zf_path_area(self) end Path.reverse = function(self) return C_6.zf_path_reverse(self) end Path.orientation = function(self) return C_6.zf_path_orientation(self) end Path.contains = function(self, x, y) return C_6.zf_path_point_in_polygon(self, x, y) end Path.simplify = function(self, fillType) fillType = fillType or "non_zero" fillType = assert(PolyFillType[fillType], "unknown fill type") return C_6.zf_path_simplify(self, fillType) end Path.clean_polygon = function(self, distance) distance = distance or 1.415 return C_6.zf_path_clean_polygon(self, distance) end Paths.new = function() return ffi.gc(C_6.zf_paths_new(), C_6.zf_paths_free) end Paths.add = function(self, path) return C_6.zf_paths_add(self, path) end Paths.get = function(self, i) return C_6.zf_paths_get(self, i - 1) end Paths.simplify = function(self, fillType) fillType = fillType or "even_odd" fillType = assert(PolyFillType[fillType], "unknown fill type") return C_6.zf_paths_simplify(self, fillType) end Paths.clean_polygon = function(self, distance) distance = distance or 1.415 return C_6.zf_paths_clean_polygon(self, distance) end Paths.size = function(self) return C_6.zf_paths_size(self) end ClipperOffset.new = function(miter_limite, arc_tolerance) local co = C_6.zf_offset_new(miter_limite or 2, arc_tolerance or 0.25) return ffi.gc(co, C_6.zf_offset_free) end ClipperOffset.offset_path = function(self, path, delta, jt, et) jt, et = jt or "square", et or "open_butt" assert(JoinType[jt]) assert(EndType[et]) local out = C_6.zf_offset_path(self, path, delta, JoinType[jt], EndType[et]) if out == nil then error(ffi.string(C_6.zf_err_msg())) end return out end ClipperOffset.offset_paths = function(self, paths, delta, jt, et) jt, et = jt or "square", et or "open_butt" assert(JoinType[jt]) assert(EndType[et]) local out = C_6.zf_offset_paths(self, paths, delta, JoinType[jt], EndType[et]) if out == nil then error(ffi.string(C_6.zf_err_msg())) end return out end ClipperOffset.clear = function(self) return C_6.zf_offset_clear(self) end Clipper.new = function(...) for _, opt in ipairs({...}) do assert(InitOptions[opt]) local _exp_0 = opt if "strictly_simple" == _exp_0 then C_6.zf_clipper_strictly_simple(true) elseif "reverse_solution" == _exp_0 then C_6.zf_clipper_reverse_solution(true) else C_6.zf_clipper_preserve_collinear(true) end end return ffi.gc(C_6.zf_clipper_new(), C_6.zf_clipper_free) end Clipper.clear = function(self) return C_6.zf_clipper_clear(self) end Clipper.add_path = function(self, path, pt, closed) assert(path, "path is nil") assert(PolyType[pt], "unknown polygon type") if closed == nil then closed = true end return C_6.zf_clipper_add_path(self, path, PolyType[pt], closed, err) end Clipper.add_paths = function(self, paths, pt, closed) assert(paths, "paths is nil") assert(PolyType[pt], "unknown polygon type") if closed == nil then closed = true end if not (C_6.zf_clipper_add_paths(self, paths, PolyType[pt], closed, err)) then return error(ffi.string(C_6.zf_err_msg())) end end Clipper.execute = function(self, clipType, subjFillType, clipFillType) subjFillType = subjFillType or "even_odd" clipFillType = clipFillType or "even_odd" clipType = assert(ClipType[clipType], "unknown clip type") subjFillType = assert(PolyFillType[subjFillType], "unknown fill type") clipFillType = assert(PolyFillType[clipFillType], "unknown fill type") local out = C_6.zf_clipper_execute(self, clipType, subjFillType, clipFillType) if out == nil then error(ffi.string(C_6.zf_err_msg())) end return out end Clipper.get_bounds = function(self) local r = C_6.zf_clipper_get_bounds(self) return tonumber(r.left), tonumber(r.top), tonumber(r.right), tonumber(r.bottom) end ffi.metatype("zf_path", { __index = Path }) ffi.metatype("zf_paths", { __index = Paths }) ffi.metatype("zf_offset", { __index = ClipperOffset }) ffi.metatype("zf_clipper", { __index = Clipper }) return { Path = Path.new, Paths = Paths.new, ClipperOffset = ClipperOffset.new, Clipper = Clipper.new }
29.525735
108
0.676628
c1a83bbab44eaea4a5949bd93ba48e98ef147fbc
1,147
dart
Dart
lib/modules/soccer/containers/SoccerCalendar.dart
zrg-team/flutter_redux
cb8b8600f0ce3ffb5f732bb7f89cf40199c39b35
[ "MIT" ]
27
2018-12-07T12:16:32.000Z
2021-09-17T01:26:24.000Z
lib/modules/soccer/containers/SoccerCalendar.dart
zrg-team/flutter_redux
cb8b8600f0ce3ffb5f732bb7f89cf40199c39b35
[ "MIT" ]
1
2019-01-05T16:33:17.000Z
2019-02-10T05:49:22.000Z
lib/modules/soccer/containers/SoccerCalendar.dart
zrg-team/flutter_redux
cb8b8600f0ce3ffb5f732bb7f89cf40199c39b35
[ "MIT" ]
12
2018-12-12T13:58:37.000Z
2021-04-04T08:47:33.000Z
import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; import 'package:redux/redux.dart'; import 'package:cat_dog/common/state.dart'; import 'package:cat_dog/modules/soccer/components/SoccerCalendarView.dart'; import 'package:cat_dog/modules/soccer/actions.dart'; class SoccerCalendar extends StatelessWidget { final BuildContext scaffoldContext; SoccerCalendar({Key key, BuildContext scaffoldContext}) : scaffoldContext = scaffoldContext, super(key: key); @override Widget build(BuildContext context) { return new StoreConnector<AppState, dynamic>( converter: (Store<AppState> store) { return { 'getTodaySoccerCalendar': () => getTodaySoccerCalendarAction(store), 'getSoccerCalendarAction': (url) => getSoccerCalendarAction(url) }; }, builder: (BuildContext context, props) { return new SoccerCalendarView( key: key, scaffoldContext: scaffoldContext, getSoccerCalendar: props['getSoccerCalendarAction'], getTodaySoccerCalendar: props['getTodaySoccerCalendar'] ); } ); } }
35.84375
78
0.707062
b63680f81b925878b2b4ea8dfee213a6693f75f0
586
swift
Swift
YouTaskMe/Common/YTMFirebaseDataService.swift
mdflores/YouTaskMe
20b3797a4b399216df630345f841a8951a146567
[ "MIT" ]
1
2016-09-09T08:45:40.000Z
2016-09-09T08:45:40.000Z
YouTaskMe/Common/YTMFirebaseDataService.swift
mdflores/YouTaskMe
20b3797a4b399216df630345f841a8951a146567
[ "MIT" ]
null
null
null
YouTaskMe/Common/YTMFirebaseDataService.swift
mdflores/YouTaskMe
20b3797a4b399216df630345f841a8951a146567
[ "MIT" ]
null
null
null
// // YTMFirebaseDataService.swift // YouTaskMe // // Created by Mark Dominick Flores on 08/09/2016. // Copyright © 2016 Mark Dominick Flores. All rights reserved. // import Foundation import Firebase import FirebaseDatabase import FirebaseStorage struct TaskGroup { var taskGroupId: String! } struct Task { var date: NSDate! var taskId: String! } class YTMFirebaseDataService { private var database: FIRDatabase! private var storage: FIRStorage! init() { database = FIRDatabase.database() storage = FIRStorage.storage() } }
18.3125
63
0.691126
28b1321931654a7e06b82e144d6ee6962909f093
2,440
swift
Swift
iTunes-API-ios/Api/Api.swift
konojunya/iTunes-API-ios
1b43369fb78ddd4129cc322ed76c9f01fa925ff8
[ "MIT" ]
null
null
null
iTunes-API-ios/Api/Api.swift
konojunya/iTunes-API-ios
1b43369fb78ddd4129cc322ed76c9f01fa925ff8
[ "MIT" ]
null
null
null
iTunes-API-ios/Api/Api.swift
konojunya/iTunes-API-ios
1b43369fb78ddd4129cc322ed76c9f01fa925ff8
[ "MIT" ]
null
null
null
// // Api.swift // iTunes-API-ios // // Created by konojunya on 2018/01/24. // Copyright © 2018年 konojunya. All rights reserved. // import Foundation import Alamofire protocol ApiRouter { var path: String { get } var method: ApiMethod { get } } enum ApiMethod { case Get case Post } enum Result<T, E> { case success(T) case failure(E) } class Api { private var router: ApiRouter private var parameters: [String: Any] = [String: Any]() private var host: String { return "https://itunes.apple.com" } private var request: URLRequest? { let baseUrl = self.host + self.router.path guard let url: URL = .init(string: baseUrl)! else { return nil } let request: URLRequest = .init(url: url) return request } private init(router: ApiRouter) { self.router = router } static func Create(router: ApiRouter) -> Api { return .init(router: router) } func parameters(_ params: [String: Any]) -> Self { self.parameters = params } func request<T>(response: T) -> Result<T, Error> { Alamofire.request(self.request!) .response { result, _, _ in if let result = result { return .success(T) } else { return .failure(Error) } } } } extension Api { struct Feed { enum Router: ApiRouter { case music var path: String { switch self { case .music: return "/search" } } var method: ApiMethod { switch self { case .music: return .Get } } } static func getMusics() -> Result<[Music], Error> { var params = [String: Any]() params["term"] = "AAA" params["media"] = "music" params["entity"] = "musicTrack" params["country"] = "jp" params["lang"] = "jp_JP" return Api.Create(router: self.Router.music) .parameters(params) .request() } } } struct Music: Codable { var artistName: String var musicName: String var artworkUrl: String }
22.592593
59
0.487295
b88c4832800573935bcf485e30ef306dc2d4df83
469
html
HTML
topshot-alert-ui/src/app/ui/quick-graph/quick-graph.component.html
NoChopFoundation/topshot-alert
3eaa527bb8cf5d7c6263098576961cb560d4b1ea
[ "MIT" ]
null
null
null
topshot-alert-ui/src/app/ui/quick-graph/quick-graph.component.html
NoChopFoundation/topshot-alert
3eaa527bb8cf5d7c6263098576961cb560d4b1ea
[ "MIT" ]
null
null
null
topshot-alert-ui/src/app/ui/quick-graph/quick-graph.component.html
NoChopFoundation/topshot-alert
3eaa527bb8cf5d7c6263098576961cb560d4b1ea
[ "MIT" ]
null
null
null
<div [hidden]="!isLoading"> <span>Loading....</span> </div> <div [hidden]="isLoading"> <div [hidden]="isGraphable"> <span>No recent purchase data available, choose another set.</span> </div> <div *ngIf="isGraphable"> <google-chart #chart [data]="data" [columns]="columns" [type]="type" [options]="options" [width]="width" [height]="height"> </google-chart> <span>{{ serialNumberGuid }}</span> </div> </div>
23.45
71
0.577825
fb99b77290691248c3bc1b94af19a8d8f7052caa
2,625
java
Java
youliao-web/src/main/java/com/seahorse/youliao/controller/EsDocSearchRecordController.java
gitSina9468/youliao
d8d91c858d38b26aeabdf903724f8aa45a889322
[ "Apache-2.0" ]
6
2020-07-13T19:29:36.000Z
2022-03-27T09:55:54.000Z
youliao-web/src/main/java/com/seahorse/youliao/controller/EsDocSearchRecordController.java
gitSina9468/youliao
d8d91c858d38b26aeabdf903724f8aa45a889322
[ "Apache-2.0" ]
6
2020-07-09T03:08:12.000Z
2022-02-01T01:03:10.000Z
youliao-web/src/main/java/com/seahorse/youliao/controller/EsDocSearchRecordController.java
gitSina9468/youliao
d8d91c858d38b26aeabdf903724f8aa45a889322
[ "Apache-2.0" ]
4
2020-07-13T19:29:38.000Z
2022-03-27T09:55:55.000Z
package com.seahorse.youliao.controller; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import com.seahorse.youliao.service.EsDocSearchRecordService; import com.seahorse.youliao.service.entity.EsDocSearchRecordDTO; import com.seahorse.youliao.utils.BeanUtil; import com.seahorse.youliao.vo.request.EsDocSearchRecordQueryVO; import com.seahorse.youliao.vo.response.EsDocSearchRecordPageInfoVO; import com.seahorse.youliao.vo.response.EsDocSearchRecordResponseVO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; import java.util.List; /** * es 文档搜索 * @author gitsina * @date 2020-06-23 03:09:37.330 **/ @RestController @Api(tags = "es 文档搜索") @RequestMapping("esDocSearchRecord") public class EsDocSearchRecordController { private static final Logger LOGGER = LoggerFactory.getLogger(EsDocSearchRecordController.class); @Autowired private EsDocSearchRecordService esDocSearchRecordService; /** * 分页查询 * @param esDocSearchRecordQueryVO 分页查询参数 * @return 分页参数 */ @ApiOperation("分页查询") @PostMapping("getPageList") public EsDocSearchRecordPageInfoVO selectPageList(@RequestBody @Valid EsDocSearchRecordQueryVO esDocSearchRecordQueryVO) { String info = String.format("The method name[selectPageList] params:%s", esDocSearchRecordQueryVO.toString()); LOGGER.info(info); EsDocSearchRecordDTO esDocSearchRecord = BeanUtil.convert(esDocSearchRecordQueryVO, EsDocSearchRecordDTO.class); Page<EsDocSearchRecordResponseVO> page = PageHelper.startPage(esDocSearchRecordQueryVO.getPageNum(), esDocSearchRecordQueryVO.getPageSize()); List<EsDocSearchRecordDTO> esDocSearchRecordList = esDocSearchRecordService.getList(esDocSearchRecord); EsDocSearchRecordPageInfoVO esDocSearchRecordPageInfo = new EsDocSearchRecordPageInfoVO(); BeanUtils.copyProperties(page.toPageInfo(), esDocSearchRecordPageInfo); List<EsDocSearchRecordResponseVO> voList = BeanUtil.convert(esDocSearchRecordList, EsDocSearchRecordResponseVO.class); esDocSearchRecordPageInfo.setList(voList); return esDocSearchRecordPageInfo; } }
41.666667
149
0.80419
b1cd15d47d640ce6bf2b7d1f505129cc9af4b102
148
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/islessgreater.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/islessgreater.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/islessgreater.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC _islessgreater EXTERN cm48_sdccix_islessgreater defc _islessgreater = cm48_sdccix_islessgreater
14.8
47
0.885135
4e799f6c53ca8b0d4ad6ed9f61e17cd9b0ecb8f5
1,137
ps1
PowerShell
windows/install_ruby.ps1
squishysquirter-69/datadog-agent-buildimages
59a56dcdecefcc810dc6dde15f7d6324fafc9525
[ "Apache-2.0" ]
null
null
null
windows/install_ruby.ps1
squishysquirter-69/datadog-agent-buildimages
59a56dcdecefcc810dc6dde15f7d6324fafc9525
[ "Apache-2.0" ]
1
2021-01-27T05:06:37.000Z
2021-01-27T05:11:10.000Z
windows/install_ruby.ps1
ConnectionMaster/datadog-agent-buildimages
1b1bf9c0930a02f825a1287acb288339b0c350d2
[ "Apache-2.0" ]
null
null
null
param ( [Parameter(Mandatory=$true)][string]$Version ) # Enabled TLS12 $ErrorActionPreference = 'Stop' # Script directory is $PSScriptRoot [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.3-1/rubyinstaller-2.4.3-1-x64.exe $splitver = $Version.split(".") $majmin = "$($splitver[0]).$($splitver[1]).$($splitver[2])-$($splitver[3])" $rubyexe = "https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-$($majmin)/rubyinstaller-$($majmin)-x64.exe" Write-Host -ForegroundColor Green starting with Ruby $out = "$($PSScriptRoot)\rubyinstaller.exe" (New-Object System.Net.WebClient).DownloadFile($rubyexe, $out) Write-Host -ForegroundColor Green Done downloading Ruby, installing Start-Process $out -ArgumentList '/verysilent /dir="c:\tools\ruby24" /tasks="assocfiles,noridkinstall,modpath"' -Wait $Env:PATH="$Env:PATH;c:\tools\ruby24\bin" setx RIDK ((Get-Command ridk).Path) Start-Process gem -ArgumentList 'install bundler' -Wait Remove-Item $out Write-Host -ForegroundColor Green Done with Ruby
35.53125
131
0.753738
96388df5880a46cdaf31ab53032bcda68ec7360c
21,480
swift
Swift
BaseProject/BaseProject/View Controller/QA Main VC/Ask Question/AskQuestionViewController.swift
HEALINGBUDZ/healingbudzios
7167240dbd7e042a887795c84167fd66500f622e
[ "Apache-2.0" ]
1
2021-06-18T04:12:20.000Z
2021-06-18T04:12:20.000Z
BaseProject/BaseProject/View Controller/QA Main VC/Ask Question/AskQuestionViewController.swift
HEALINGBUDZ/healingbudzios
7167240dbd7e042a887795c84167fd66500f622e
[ "Apache-2.0" ]
null
null
null
BaseProject/BaseProject/View Controller/QA Main VC/Ask Question/AskQuestionViewController.swift
HEALINGBUDZ/healingbudzios
7167240dbd7e042a887795c84167fd66500f622e
[ "Apache-2.0" ]
null
null
null
// // AskQuestionViewController.swift // BaseProject // // Created by macbook on 11/08/2017. // Copyright © 2017 Wave. All rights reserved. // import UIKit import SDWebImage class AskQuestionViewController: BaseViewController, CameraDelegate { @IBOutlet var lbl_Question_Count : UILabel! @IBOutlet var lbl_Detail_Count : UILabel! @IBOutlet var btn_askYourBudz : UIButton! @IBOutlet var txtView_Question : UITextView! @IBOutlet var txtView_Detail : UITextView! @IBOutlet var attachemntHeight: NSLayoutConstraint! @IBOutlet weak var video_icon_one: UIImageView! @IBOutlet weak var video_icon_two: UIImageView! @IBOutlet weak var video_icon_three: UIImageView! @IBOutlet var view_Main_One : UIView! @IBOutlet var view_Main_Two : UIView! @IBOutlet var view_Main_Three : UIView! @IBOutlet var imgView_One : UIImageView! @IBOutlet var imgView_Two : UIImageView! @IBOutlet var imgView_Three : UIImageView! var array_Attachment = [Attachment]() var delegate = QAMainVC() let constantCountString = "/300 characters" let constantCountString_question = "/150 characters" var chooseQuestion = QA() var isViewWillApear : Bool = true override func viewDidLoad() { super.viewDidLoad() self.txtView_Question.tag = 100 self.txtView_Detail.tag = 110 } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } override func viewWillAppear(_ animated: Bool) { if isViewWillApear{ if chooseQuestion.id > 0 { self.btn_askYourBudz.setTitle("UPDATE YOUR QUESTION", for: .normal) self.array_Attachment = self.chooseQuestion.attachments self.ShowImageView(answer_Attachments: self.chooseQuestion.attachments) self.txtView_Question.text = self.chooseQuestion.Question.trimmingCharacters(in: .whitespacesAndNewlines) self.txtView_Detail.text = self.chooseQuestion.Question_description.trimmingCharacters(in: .whitespacesAndNewlines) if self.txtView_Detail.text.count >= 300{ self.lbl_Detail_Count.text = String(300) + constantCountString }else{ self.lbl_Detail_Count.text = String(self.txtView_Detail.text.count) + constantCountString } if self.txtView_Question.text.count >= 150 { self.lbl_Question_Count.text = String(150) + constantCountString_question }else{ self.lbl_Question_Count.text = String(self.txtView_Question.text.count) + constantCountString_question } }else { self.btn_askYourBudz.setTitle("ASK YOUR BUDZ", for: .normal) self.lbl_Detail_Count.text = "0" + constantCountString self.lbl_Question_Count.text = "0" + constantCountString_question } } self.tabBarController?.tabBar.isHidden = false } @IBAction func AskQuestion(sender : UIButton){ if self.txtView_Question.text.count == 0 || self.txtView_Question.text == "Type your question here..."{ self.ShowErrorAlert(message: "Please enter question!") return } if self.txtView_Detail.text.count == 0 || self.txtView_Detail.text == "Add a description..."{ self.ShowErrorAlert(message: "Please enter description!") return } self.view.showLoading() var mainParam = [String : AnyObject]() mainParam["question"] = self.txtView_Question.text as AnyObject mainParam["description"] = self.txtView_Detail.text as AnyObject var index = 0 var attach_array = [[String:Any]]() for indexObj in self.array_Attachment { if indexObj.is_Video { if indexObj.ID == "-1" { attach_array.append(["path" : indexObj.server_URL as Any , "media_type" : "video" as Any , "poster" : indexObj.image_URL as Any ]) }else{ attach_array.append(["path" : indexObj.video_URL as Any , "media_type" : "video" as Any , "poster" : indexObj.image_URL as Any ]) } }else { if indexObj.ID == "-1" { attach_array.append(["path" : indexObj.server_URL as Any , "media_type" : "image" as Any , "poster" : "" as Any ]) }else{ attach_array.append(["path" : indexObj.image_URL as Any , "media_type" : "image" as Any , "poster" : "" as Any ]) } } index = index + 1 } mainParam["file"] = attach_array as AnyObject if self.chooseQuestion.id > 0 { mainParam["question_id"] = String(self.chooseQuestion.id) as AnyObject } print(mainParam) NetworkManager.PostCall(UrlAPI: WebServiceName.add_question.rawValue, params: mainParam) { (successResponse, successMessage, mainResponse) in self.view.hideLoading() if successResponse { if (mainResponse["status"] as! String) == "success" { if self.chooseQuestion.id > 0 { if self.delegate != nil{ self.delegate.questionAdded = true } self.oneBtnCustomeAlert(title: "", discription: "Question updated successfully!") { (isComp, btn) in _ = self.navigationController?.popViewController(animated: true) } }else{ if self.delegate != nil{ self.delegate.questionAdded = true } self.oneBtnCustomeAlert(title: "", discription: mainResponse["successMessage"] as! String) { (isComp, btn) in _ = self.navigationController?.popViewController(animated: true) } } }else { self.ShowErrorAlert(message: mainResponse["errorMessage"] as! String) } }else { self.ShowErrorAlert(message: successMessage) } } } @IBAction func CloseButton(_ sender: Any) { self.navigationController?.popViewController(animated: true) } } extension AskQuestionViewController : UITextViewDelegate{ func textViewDidEndEditing(_ textView: UITextView) { if textView.text == "" { if textView.tag == 100 { textView.text = "Type your question here..." }else{ textView.text = "Add a description..." } } } func textViewDidBeginEditing(_ textView: UITextView) { if textView.tag == 100 { if textView.text == "Type your question here..."{ textView.text = "" } }else{ if textView.text == "Add a description..."{ textView.text = "" } } } func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool { if text.count > 0 { if textView == txtView_Detail { if txtView_Detail.text.count > 299 { return false }else { self.lbl_Detail_Count.text = String(txtView_Detail.text.count + 1) + self.constantCountString } }else { if txtView_Question.text.count > 149 { return false }else { self.lbl_Question_Count.text = String(txtView_Question.text.count + 1) + self.constantCountString_question } } }else { if textView == txtView_Detail { if txtView_Detail.text.count > 0 { self.lbl_Detail_Count.text = String(txtView_Detail.text.count - 1) + self.constantCountString } }else { if (txtView_Question.text?.count)! > 0 { self.lbl_Question_Count.text = String(txtView_Question.text.count - 1) + self.constantCountString_question } } } return true } // func CheckTexgt(){ // self.txtView_Question.text = self.getColoredText(textArray: ["Me" , "me"]) // } } extension AskQuestionViewController{ @IBAction func AddNewImages(sender : UIButton){ if self.array_Attachment.count > 2 { self.ShakeView(viewMain: self.view_Main_Three) self.ShakeView(viewMain: self.view_Main_One) self.ShakeView(viewMain: self.view_Main_Two) }else { self.isViewWillApear = false let vcCamera = self.GetView(nameViewController: "CameraVC", nameStoryBoard: "Main") as! CameraVC vcCamera.delegate = self vcCamera.isOnlyImage = false self.navigationController?.pushViewController(vcCamera, animated: true) } } func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { picker.dismiss(animated: true) { } } func VideoOutPulURL(videoURL: URL, image: UIImage) { let newAttachment = Attachment() newAttachment.is_Video = true newAttachment.image_Attachment = image newAttachment.video_URL = videoURL.absoluteString newAttachment.ID = "-1" self.array_Attachment.append(newAttachment) self.ShowImageView(answer_Attachments: self.array_Attachment) if self.array_Attachment.count == 1 { self.imgView_One.image = image }else if self.array_Attachment.count == 2 { self.imgView_Two.image = image }else if self.array_Attachment.count == 3 { self.imgView_Three.image = image } self.UploadVideoFiles(videoUrl: videoURL) } func gifData(gifURL: URL, image: UIImage) { let newAttachment = Attachment() newAttachment.is_Video = false newAttachment.image_Attachment = image newAttachment.ID = "-1" self.array_Attachment.append(newAttachment) self.ShowImageView(answer_Attachments: self.array_Attachment) if self.array_Attachment.count == 1 { self.imgView_One.image = image }else if self.array_Attachment.count == 2 { self.imgView_Two.image = image }else if self.array_Attachment.count == 3 { self.imgView_Three.image = image } self.UploadFiles(imageMain: image,gif_url: gifURL) } func captured(image: UIImage) { let newAttachment = Attachment() newAttachment.is_Video = false newAttachment.image_Attachment = image newAttachment.ID = "-1" self.array_Attachment.append(newAttachment) self.ShowImageView(answer_Attachments: self.array_Attachment) if self.array_Attachment.count == 1 { self.imgView_One.image = image }else if self.array_Attachment.count == 2 { self.imgView_Two.image = image }else if self.array_Attachment.count == 3 { self.imgView_Three.image = image } self.UploadFiles(imageMain: image) } @IBAction func RemoveImage(sender : UIButton){ self.array_Attachment.remove(at: sender.tag) if sender.tag == 0 { self.imgView_One.image = self.imgView_Two.image self.imgView_Two.image = self.imgView_Three.image }else if sender.tag == 1 { self.imgView_Two.image = self.imgView_Three.image }else if sender.tag == 2 { self.imgView_Three.image = nil } self.ShowImageView(answer_Attachments: self.array_Attachment) } func UploadFiles(imageMain : UIImage , gif_url:URL? = nil){ self.showLoading() NetworkManager.UploadFiles(kBaseURLString + WebServiceName.add_image.rawValue, image: imageMain,gif_url:gif_url, onView: self) { (MainResponse) in print(MainResponse) self.hideLoading() if (MainResponse["status"] as! String) == "success" { let mainData = MainResponse["successData"] as! [String : AnyObject] self.array_Attachment.last?.server_URL = mainData["path"] as! String print( self.array_Attachment.last?.server_URL ) }else { self.ShowErrorAlert(message:kNetworkNotAvailableMessage) } } } func UploadVideoFiles(videoUrl : URL){ self.showLoading() NetworkManager.UploadVideo(WebServiceName.add_video.rawValue, urlVideo: videoUrl, onView: self) { (MainResponse) in print(MainResponse) self.hideLoading() if (MainResponse["status"] as! String) == "success" { let mainData = MainResponse["successData"] as! [String : AnyObject] self.array_Attachment.last?.server_URL = mainData["path"] as! String self.array_Attachment.last?.image_URL = mainData["poster"] as! String print( self.array_Attachment.last?.server_URL ) print( self.array_Attachment.last?.image_URL ) }else { self.ShowErrorAlert(message:kNetworkNotAvailableMessage) } } } func ShowImageView(answer_Attachments : [Attachment]){ self.view_Main_Three.isHidden = true self.view_Main_Two.isHidden = true self.view_Main_One.isHidden = true self.video_icon_three.isHidden = true self.video_icon_two.isHidden = true self.video_icon_one.isHidden = true switch answer_Attachments.count { case 3: // 1 print(answer_Attachments[2].image_URL) self.view_Main_Three.isHidden = false if answer_Attachments[2].is_Video { self.video_icon_three.isHidden = false if answer_Attachments[2].ID == "-1" { self.imgView_Three.image = answer_Attachments[2].image_Attachment }else{ self.imgView_Three.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[2].image_URL), completed: { (image, error, chache, url) in }) } }else{ self.video_icon_three.isHidden = true if answer_Attachments[2].ID == "-1" { self.imgView_Three.image = answer_Attachments[2].image_Attachment }else{ self.imgView_Three.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[2].image_URL), completed: { (image, error, chache, url) in }) } } // 2 self.view_Main_Two.isHidden = false if answer_Attachments[1].is_Video { self.video_icon_two.isHidden = false if answer_Attachments[1].ID == "-1" { self.imgView_Three.image = answer_Attachments[1].image_Attachment }else{ self.imgView_Two.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[1].image_URL), completed: { (image, error, chache, url) in }) } }else{ self.video_icon_two.isHidden = true if answer_Attachments[1].ID == "-1" { self.imgView_Three.image = answer_Attachments[1].image_Attachment }else{ self.imgView_Two.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[1].image_URL), completed: { (image, error, chache, url) in }) } } //3 self.view_Main_One.isHidden = false if answer_Attachments[0].is_Video { self.video_icon_one.isHidden = false if answer_Attachments[0].ID == "-1" { self.imgView_Three.image = answer_Attachments[0].image_Attachment }else{ self.imgView_One.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[0].image_URL), completed: { (image, error, chache, url) in }) } }else{ self.video_icon_one.isHidden = true if answer_Attachments[0].ID == "-1" { self.imgView_Three.image = answer_Attachments[0].image_Attachment }else{ self.imgView_One.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[0].image_URL), completed: { (image, error, chache, url) in }) } } break; case 2: // 2 self.view_Main_Two.isHidden = false if answer_Attachments[1].is_Video { self.video_icon_two.isHidden = false if answer_Attachments[1].ID == "-1" { self.imgView_Three.image = answer_Attachments[1].image_Attachment }else{ self.imgView_Two.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[1].image_URL), completed: { (image, error, chache, url) in print(url) }) } }else{ self.video_icon_two.isHidden = true if answer_Attachments[1].ID == "-1" { self.imgView_Three.image = answer_Attachments[1].image_Attachment }else{ self.imgView_Two.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[1].image_URL), completed: { (image, error, chache, url) in }) } } //3 self.view_Main_One.isHidden = false if answer_Attachments[0].is_Video { self.video_icon_one.isHidden = false if answer_Attachments[0].ID == "-1" { self.imgView_Three.image = answer_Attachments[0].image_Attachment }else{ self.imgView_One.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[0].image_URL), completed: { (image, error, chache, url) in }) } }else{ self.video_icon_one.isHidden = true if answer_Attachments[0].ID == "-1" { self.imgView_Three.image = answer_Attachments[0].image_Attachment }else{ self.imgView_One.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[0].image_URL), completed: { (image, error, chache, url) in print(url) }) } } break; case 1: print(answer_Attachments[0].image_URL) //3 self.view_Main_One.isHidden = false if answer_Attachments[0].is_Video { self.video_icon_one.isHidden = false if answer_Attachments[0].ID == "-1" { self.imgView_Three.image = answer_Attachments[0].image_Attachment }else{ print("path ==> \(WebServiceName.images_baseurl.rawValue+answer_Attachments[0].image_URL)") self.imgView_One.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[0].image_URL), completed: { (image, error, chache, url) in print(url) if error != nil { print(error.debugDescription) } }) } }else{ self.video_icon_one.isHidden = true if answer_Attachments[0].ID == "-1" { self.imgView_Three.image = answer_Attachments[0].image_Attachment }else{ self.imgView_One.sd_setImage(with: URL.init(string: WebServiceName.images_baseurl.rawValue+answer_Attachments[0].image_URL), completed: { (image, error, chache, url) in print(url) if error != nil { print(error.debugDescription) } }) } } break; default: break } } }
41.467181
190
0.55959
9a43f5912e0479e8231246d6791b2065a92e3304
5,746
swift
Swift
i2app/i2app/RoomSelectionViewController.swift
wl-net/arcusios
9ab7cfe04555c72212ffb9073c7919d1f910849e
[ "Apache-2.0" ]
null
null
null
i2app/i2app/RoomSelectionViewController.swift
wl-net/arcusios
9ab7cfe04555c72212ffb9073c7919d1f910849e
[ "Apache-2.0" ]
1
2020-07-13T01:02:56.000Z
2020-07-13T01:02:56.000Z
i2app/i2app/RoomSelectionViewController.swift
t1minator/arcus-smart-home-arcusios
7d432f6911db74d36f7d19a342f81850b414a6c5
[ "Apache-2.0" ]
null
null
null
// // RoomSelectionViewController.swift // i2app // // Created by Arcus Team on 4/17/18. /* * Copyright 2019 Arcus Project * * 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 Foundation import RxSwift class RoomSelectionViewController: UIViewController { /** Required by PairingCustomizationStepPresenter */ var disposeBag = DisposeBag() /** Required by PairingCustomizationStepPresenter */ var deviceAddress = "" /** Required by PairingCustomizationStepPresenter */ @IBOutlet weak var actionButton: UIButton! /** Required by PairingCustomizationStepPresenter */ var pairingCustomizationViewModel = PairingCustomizationViewModel() /** Required by PairingCustomizationStepPresenter */ var stepIndex = 0 /** Required by RoomSelectionPresenter */ var roomSelectionData = CustomizationRoomSelectionViewModel() let tableViewContentSizeKey = "contentSize" @IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var descriptionLabel: UILabel! @IBOutlet weak var tableView: UITableView! @IBOutlet weak var tableViewHeight: NSLayoutConstraint! static func create() -> RoomSelectionViewController? { let storyboard = UIStoryboard(name: "RoomSelection", bundle: nil) let id = "RoomSelectionViewController" guard let viewController = storyboard.instantiateViewController(withIdentifier: id) as? RoomSelectionViewController else { return nil } return viewController } deinit { tableView.removeObserver(self, forKeyPath: tableViewContentSizeKey) } override func viewDidLoad() { super.viewDidLoad() // Configure Views configureViews() roomSelectionFetchData() } override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) { if keyPath == tableViewContentSizeKey { updateTableViewHeight() } } @IBAction func actionButtonPressed(_ sender: Any) { roomSelectionSaveSelectedRoom() addCustomization(PairingCustomizationStepType.room.rawValue) ArcusAnalytics.tag(named: AnalyticsTags.DevicePairingCustomizeRoom) if isLastStep() { addCustomization(PairingCustomizationStepType.complete.rawValue) dismiss(animated: true, completion: nil) } else { if let nextStep = nextStepViewController() { navigationController?.pushViewController(nextStep, animated: true) } } } private func configureViews() { addScleraBackButton() addScleraStyleToNavigationTitle() updateActionButtonText() actionButton.isEnabled = roomSelectionData.selectedRoomIdentifier != "" tableView.tableFooterView = UIView() tableView.addObserver(self, forKeyPath: tableViewContentSizeKey, options: .new, context: nil) // Set platform fields if avaiable if let header = currentStepViewModel()?.header { navigationItem.title = header } if let title = currentStepViewModel()?.title { titleLabel.text = title } if let descriptionParagraphs = currentStepViewModel()?.description, descriptionParagraphs.count > 0 { descriptionLabel.text = descriptionParagraphs.joined(separator: "\n\n") } } fileprivate func updateViews() { actionButton.isEnabled = roomSelectionData.selectedRoomIdentifier != "" tableView.reloadData() } fileprivate func updateTableViewHeight() { guard tableViewHeight.constant != tableView.contentSize.height else { return } tableViewHeight.constant = tableView.contentSize.height } } extension RoomSelectionViewController: PairingCustomizationStepPresenter { } extension RoomSelectionViewController: RoomSelectionPresenter { func roomSelectionUpdated() { updateViews() } } extension RoomSelectionViewController: UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return roomSelectionData.rooms.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { guard roomSelectionData.rooms.count > indexPath.row, let cell = tableView.dequeueReusableCell(withIdentifier: "RoomSelectionCell") as? RoomSelectionCell else { return UITableViewCell() } let room = roomSelectionData.rooms[indexPath.row] let selected = roomSelectionData.selectedRoomIdentifier let check = room.identifier == selected ? "check_teal_30x30" : "uncheck_30x30" cell.roomLabel.text = room.name cell.checkmarkImageView.image = UIImage(named: check) return cell } } extension RoomSelectionViewController: UITableViewDelegate { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { guard roomSelectionData.rooms.count > indexPath.row else { return } roomSelectionData.selectedRoomIdentifier = roomSelectionData.rooms[indexPath.row].identifier updateViews() } }
28.166667
105
0.704316
855fb1625e836725340630d82a3f73bc9a7e590d
1,019
rs
Rust
crates/rome_json_syntax/src/syntax_node.rs
mrkldshv/tools
c173b0c01ee499fcb49d6ae328f1229daa183868
[ "MIT" ]
4,843
2020-07-08T12:06:37.000Z
2020-10-24T19:45:05.000Z
crates/rome_json_syntax/src/syntax_node.rs
mrkldshv/tools
c173b0c01ee499fcb49d6ae328f1229daa183868
[ "MIT" ]
373
2020-07-08T07:48:35.000Z
2020-10-22T20:24:04.000Z
crates/rome_json_syntax/src/syntax_node.rs
mrkldshv/tools
c173b0c01ee499fcb49d6ae328f1229daa183868
[ "MIT" ]
131
2020-07-08T09:47:45.000Z
2020-10-20T22:30:55.000Z
//! This module defines the Concrete Syntax Tree used by RSLint. //! //! The tree is entirely lossless, whitespace, comments, and errors are preserved. //! It also provides traversal methods including parent, children, and siblings of nodes. //! //! This is a simple wrapper around the `rowan` crate which does most of the heavy lifting and is language agnostic. use crate::JsonSyntaxKind; use rome_rowan::Language; #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] pub struct JsonLanguage; impl Language for JsonLanguage { type Kind = JsonSyntaxKind; } pub type JsonSyntaxNode = rome_rowan::SyntaxNode<JsonLanguage>; pub type JsonSyntaxToken = rome_rowan::SyntaxToken<JsonLanguage>; pub type JsonSyntaxElement = rome_rowan::SyntaxElement<JsonLanguage>; pub type JsonSyntaxNodeChildren = rome_rowan::SyntaxNodeChildren<JsonLanguage>; pub type JsonSyntaxElementChildren = rome_rowan::SyntaxElementChildren<JsonLanguage>; pub type JsonSyntaxList = rome_rowan::SyntaxList<JsonLanguage>;
42.458333
116
0.791953
7cf6f1f0bac9a91db47e7cdd6f3ddd72f6c593f4
884
swift
Swift
Source/SingleChildContainingViewController.swift
wajeeha-khalid/McKA-iOS
eed58c62352b2c2dde14e13d7d89171862a3f46a
[ "Apache-2.0" ]
1
2017-11-07T18:25:44.000Z
2017-11-07T18:25:44.000Z
Source/SingleChildContainingViewController.swift
wajeeha-khalid/McKA-iOS
eed58c62352b2c2dde14e13d7d89171862a3f46a
[ "Apache-2.0" ]
null
null
null
Source/SingleChildContainingViewController.swift
wajeeha-khalid/McKA-iOS
eed58c62352b2c2dde14e13d7d89171862a3f46a
[ "Apache-2.0" ]
null
null
null
// // SingleChildContainingViewController.swift // edX // // Created by Akiva Leffert on 2/23/16. // Copyright © 2016 edX. All rights reserved. // import Foundation class SingleChildContainingViewController : UIViewController { override var childViewControllerForStatusBarStyle : UIViewController? { return self.childViewControllers.last } override var childViewControllerForStatusBarHidden : UIViewController? { return self.childViewControllers.last } // override func shouldAutorotate() -> Bool { // return true //self.childViewControllers.last?.shouldAutorotate() ?? super.shouldAutorotate() // } // override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask { // return .Portrait //self.childViewControllers.last?.supportedInterfaceOrientations() ?? super.supportedInterfaceOrientations() // } }
32.740741
135
0.738688
5655138bc3557569c578c7a156a24d46a892a49f
637
go
Go
components/automate-cli/cmd/chef-automate/info-ha.go
timothygwright/automate
ce887f6a02b011f57a4d6c3e0a5bea710a345a70
[ "Apache-2.0" ]
191
2019-04-16T15:04:53.000Z
2022-03-21T14:10:44.000Z
components/automate-cli/cmd/chef-automate/info-ha.go
timothygwright/automate
ce887f6a02b011f57a4d6c3e0a5bea710a345a70
[ "Apache-2.0" ]
4,882
2019-04-16T16:16:01.000Z
2022-03-31T15:39:35.000Z
components/automate-cli/cmd/chef-automate/info-ha.go
timothygwright/automate
ce887f6a02b011f57a4d6c3e0a5bea710a345a70
[ "Apache-2.0" ]
114
2019-04-16T15:21:27.000Z
2022-03-26T09:50:08.000Z
// Copyright © 2017 Chef Software package main import ( "errors" "github.com/spf13/cobra" ) func init() { infoCmd.SetUsageTemplate(infoHelpDocs) RootCmd.AddCommand(infoCmd) } var infoCmd = &cobra.Command{ Use: "info", Short: "Info about Automate HA", Long: "Info for Automate HA cluster", Annotations: map[string]string{ NoCheckVersionAnnotation: NoCheckVersionAnnotation, }, RunE: runInfoConfigCmd, } func runInfoConfigCmd(cmd *cobra.Command, args []string) error { if isA2HARBFileExist() { return executeAutomateClusterCtlCommand("info", args, infoHelpDocs) } return errors.New(AUTOMATE_HA_INVALID_BASTION) }
19.90625
69
0.750392
966434fee69aa30b6b465d4a7f3103bfd5417cd4
1,912
php
PHP
app/Http/Controllers/Front/PurchaseController.php
tri898/ecommerce-laravel
254eee0a7ea3ba91107a17411cb402be31163386
[ "MIT" ]
null
null
null
app/Http/Controllers/Front/PurchaseController.php
tri898/ecommerce-laravel
254eee0a7ea3ba91107a17411cb402be31163386
[ "MIT" ]
null
null
null
app/Http/Controllers/Front/PurchaseController.php
tri898/ecommerce-laravel
254eee0a7ea3ba91107a17411cb402be31163386
[ "MIT" ]
null
null
null
<?php namespace App\Http\Controllers\Front; use App\Http\Controllers\Controller; use App\Http\Requests\OrderRequest; use App\Models\{State, Order}; use App\Services\CartService; class PurchaseController extends Controller { protected $cartService; public function __construct(CartService $cartService) { $this->cartService = $cartService; } public function index() { $cart = session()->get('cart', []); if(empty($cart)) { return redirect()->route('front.cart.index'); } $this->cartService->checkProduct(); $states = State::get(['id', 'name']); return view('front.purchase', compact('states')); } public function store(OrderRequest $request) { $this->cartService->checkProduct(); $cart = session()->get('cart', []); if ($cart) { $subtotal = 0; foreach($cart as $value) { $subtotal += $value['quantity'] * $value['price']; } $address = $request->address . ' - ' . $request->state . ' - ' . $request->city; $order = Order::create([ 'name' => $request->name, 'address' => $address, 'phone' => $request->phone, 'user_id' => auth()->user()->id, 'shipping_fee' => 15, 'subtotal' => $subtotal, 'total' => $subtotal + 15, 'note' => $request->note ]); foreach($cart as $value) { $order->products()->attach($value['id'],[ 'options' => $value['options'], 'quantity' => $value['quantity'], 'price' => $value['price'], 'total' => $value['quantity'] * $value['price'], ]); } session()->forget('cart'); } return redirect()->route('front.cart.index') ->with('success','Create order successfully'); } }
26.929577
92
0.513075
1ff6466c48e24251bd8d1a1b7980462bd13b63a5
224
css
CSS
ReadItLater.Web/Client/Shared/Breadcrumbs.razor.css
Grigorenko/ReadItLater
94b6d93b13e81889c2fb0407404ba1c1e9107fa3
[ "MIT" ]
5
2021-04-19T09:15:29.000Z
2022-03-02T21:48:34.000Z
ReadItLater.Web/Client/Shared/Breadcrumbs.razor.css
Grigorenko/ReadItLater
94b6d93b13e81889c2fb0407404ba1c1e9107fa3
[ "MIT" ]
null
null
null
ReadItLater.Web/Client/Shared/Breadcrumbs.razor.css
Grigorenko/ReadItLater
94b6d93b13e81889c2fb0407404ba1c1e9107fa3
[ "MIT" ]
1
2022-01-03T02:32:15.000Z
2022-01-03T02:32:15.000Z
.breadcrumbs { min-height: 5em; } .breadcrumb { font-size: 0.8em; margin: 0.2em 0; color: #a9a9a9; } .breadcrumb a { text-decoration: none; color: #a9a9a9; } .breadcrumb-active { cursor: pointer; }
11.789474
26
0.607143
162cc9768f3f1d973bbd46e58fff11d6c7d309cb
1,177
c
C
strings/strnlen.c
hervewenjie/mysql
49a37eda4e2cc87e20ba99e2c29ffac2fc322359
[ "BSD-3-Clause" ]
42
2015-01-05T10:00:07.000Z
2022-02-18T14:51:33.000Z
dep/mysqllite/strings/strnlen.c
Frankenhooker/ArkCORE
0a7be7fc0b67e9ef3de421ab5de6012eac7dec6d
[ "OpenSSL" ]
null
null
null
dep/mysqllite/strings/strnlen.c
Frankenhooker/ArkCORE
0a7be7fc0b67e9ef3de421ab5de6012eac7dec6d
[ "OpenSSL" ]
31
2015-01-09T02:04:29.000Z
2021-09-01T13:20:20.000Z
/* Copyright (c) 2000, 2001, 2006, 2007 MySQL AB Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* File : strnlen.c Author : Michael Widenius Updated: 20 April 1984 Defines: strnlen. strnlen(s, len) returns the length of s or len if s is longer than len. */ #include <my_global.h> #include "m_string.h" #ifndef HAVE_STRNLEN size_t strnlen(register const char *s, register size_t maxlen) { const char *end= (const char *)memchr(s, '\0', maxlen); return end ? (size_t) (end - s) : maxlen; } #endif
32.694444
79
0.720476
591af1ecb8c40b65b023d73f816888bbd663dffc
9,110
kt
Kotlin
ConvexHull.kt
makaronis/Concave-Hull-Algorithm
891fcc91b32ae729ea1e66b77edcf5c6385263a6
[ "Apache-2.0" ]
null
null
null
ConvexHull.kt
makaronis/Concave-Hull-Algorithm
891fcc91b32ae729ea1e66b77edcf5c6385263a6
[ "Apache-2.0" ]
null
null
null
ConvexHull.kt
makaronis/Concave-Hull-Algorithm
891fcc91b32ae729ea1e66b77edcf5c6385263a6
[ "Apache-2.0" ]
null
null
null
import androidx.core.util.Pair import java.util.* import kotlin.math.abs import kotlin.math.atan2 import kotlin.math.pow import kotlin.math.sqrt /** * ConcaveHull.kt - 5/11/20 * * @author Daniil Pozdnyakov https://github.com/makaronis * @version 1.0 * * This is an implementation of the algorithm described by Adriano Moreira and Maribel Yasmina Santos: * CONCAVE HULL: A K-NEAREST NEIGHBOURS APPROACH FOR THE COMPUTATION OF THE REGION OCCUPIED BY A SET OF POINTS. * GRAPP 2007 - International Conference on Computer Graphics Theory and Applications; pp 61-68. * * https://repositorium.sdum.uminho.pt/bitstream/1822/6429/1/ConcaveHull_ACM_MYS.pdf * * Based on https://github.com/Merowech/java-concave-hull/blob/master/ConcaveHull.java */ class ConcaveHull { class Point(val x: Double, val y: Double) { override fun toString(): String { return "($x $y)" } override fun equals(obj: Any?): Boolean { return if (obj is Point) { x == obj.x && y == obj.y } else { false } } override fun hashCode(): Int { // http://stackoverflow.com/questions/22826326/good-hashcode-function-for-2d-coordinates // http://www.cs.upc.edu/~alvarez/calculabilitat/enumerabilitat.pdf val tmp = (y + (x + 1) / 2).toInt() return abs((x + tmp * tmp).toInt()) } } private fun euclideanDistance(a: Point, b: Point): Double { return sqrt((a.x - b.x).pow(2.0) + (a.y - b.y).pow(2.0)) } private fun kNearestNeighbors( points: ArrayList<Point>, centerPoint: Point, k: Int ): ArrayList<Pair<Double, Point>> { val nearestList = ArrayList<Pair<Double, Point>>() for (point in points) { nearestList.add(Pair(euclideanDistance(centerPoint, point), point)) } nearestList.sortBy { it.first } val result = ArrayList<Pair<Double, Point>>() for (i in 0 until k.coerceAtMost(nearestList.size)) { val neighbour = nearestList.getOrNull(i) ?: continue result.add(neighbour) } return result } private fun findMinYPoint(points: ArrayList<Point>): Point { points.sortWith { o1, o2 -> o1.y.compareTo(o2.y) } return points[0] } private fun calculateAngle(o1: Point?, o2: Point?): Double { return atan2(o2!!.y - o1!!.y, o2.x - o1.x) } private fun angleDifference(a1: Double, a2: Double): Double { // calculate angle difference in clockwise directions as radians return if (a1 > 0 && a2 >= 0 && a1 > a2) { abs(a1 - a2) } else if (a1 >= 0 && a2 > 0 && a1 < a2) { 2 * Math.PI + a1 - a2 } else if (a1 < 0 && a2 <= 0 && a1 < a2) { 2 * Math.PI + a1 + abs(a2) } else if (a1 <= 0 && a2 < 0 && a1 > a2) { abs(a1 - a2) } else if (a1 <= 0 && 0 < a2) { 2 * Math.PI + a1 - a2 } else if (a1 >= 0 && 0 >= a2) { a1 + abs(a2) } else { 0.0 } } private fun sortByAngle( nearestPoints: ArrayList<Pair<Double, Point>>, currentPoint: Point, prevAngle: Double ): List<Point> { // Sort by angle descending val sortedList = nearestPoints.toMutableList().asReversed() sortedList.sortWith { o1, o2 -> val a1 = angleDifference(prevAngle, calculateAngle(currentPoint, o1.second)) val a2 = angleDifference(prevAngle, calculateAngle(currentPoint, o2.second)) val compare = a2.compareTo(a1) // if two angle a same, select one that more closely if (compare == 0) { val firstDistance = o1.first ?: 0.0 val secondDistance = o2.first ?: 0.0 firstDistance.compareTo(secondDistance) ?: 0 } else { compare } } return sortedList.map { it.second ?: Point(0.0, 0.0) } } private fun intersect(l1p1: Point?, l1p2: Point?, l2p1: Point?, l2p2: Point?): Boolean { // calculate part equations for line-line intersection val a1 = l1p2!!.y - l1p1!!.y val b1 = l1p1.x - l1p2.x val c1 = a1 * l1p1.x + b1 * l1p1.y val a2 = l2p2!!.y - l2p1!!.y val b2 = l2p1.x - l2p2.x val c2 = a2 * l2p1.x + b2 * l2p1.y // calculate the divisor val tmp = a1 * b2 - a2 * b1 // calculate intersection point x coordinate val pX = (c1 * b2 - c2 * b1) / tmp if (pX.isNaN()) return false // check if intersection x coordinate lies in line line segment if (pX > l1p1.x && pX > l1p2.x || pX > l2p1.x && pX > l2p2.x || pX < l1p1.x && pX < l1p2.x || pX < l2p1.x && pX < l2p2.x ) { return false } // calculate intersection point y coordinate val pY = (a1 * c2 - a2 * c1) / tmp if (pY.isNaN()) return false // check if intersection y coordinate lies in line line segment return !(pY > l1p1.y && pY > l1p2.y || pY > l2p1.y && pY > l2p2.y || pY < l1p1.y && pY < l1p2.y || pY < l2p1.y && pY < l2p2.y) } private fun pointInPolygon(p: Point?, pp: ArrayList<Point>): Boolean { var result = false var i = 0 var j = pp.size - 1 while (i < pp.size) { if (pp[i].y > p!!.y != pp[j].y > p.y && p.x < (pp[j].x - pp[i].x) * (p.y - pp[i].y) / (pp[j].y - pp[i].y) + pp[i].x ) { result = !result } j = i++ } return result } fun calculateConcaveHull( pointArrayList: ArrayList<Point>, k: Int ): ArrayList<Point> { // the resulting concave hull val concaveHull = ArrayList<Point>() // optional remove duplicates val set = HashSet(pointArrayList) val pointArraySet = ArrayList(set) // k has to be greater than 3 to execute the algorithm var kk = k.coerceAtLeast(3) // return Points if already Concave Hull if (pointArraySet.size < 3) { return pointArraySet } // make sure that k neighbors can be found kk = kk.coerceAtMost(pointArraySet.size - 1) // find first point and remove from point list val firstPoint = findMinYPoint(pointArraySet) concaveHull.add(firstPoint) var currentPoint = firstPoint pointArraySet.remove(firstPoint) var previousAngle = 0.0 var step = 2 while ((currentPoint !== firstPoint || step == 2) && pointArraySet.size > 0) { // after 3 steps add first point to dataset, otherwise hull cannot be closed if (step == 5) { pointArraySet.add(firstPoint) } // get k nearest neighbors of current point val kNearestPoints = kNearestNeighbors(pointArraySet, currentPoint, kk) // sort points by angle clockwise val clockwisePoints = sortByAngle(kNearestPoints, currentPoint, previousAngle) // check if clockwise angle nearest neighbors are candidates for concave hull var its = true var i = -1 while (its && i < clockwisePoints.size - 1) { i++ var lastPoint = 0 if (clockwisePoints[i] === firstPoint) { lastPoint = 1 } // check if possible new concave hull point intersects with others var j = 2 its = false while (!its && j < concaveHull.size - lastPoint) { its = intersect( currentPoint, clockwisePoints[i], concaveHull[step - 2 - j], concaveHull[step - 1 - j] ) j++ } } // if there is no candidate increase k - try again if (its) { return calculateConcaveHull(pointArrayList, k + 1); } // add candidate to concave hull and remove from dataset currentPoint = clockwisePoints[i] concaveHull.add(currentPoint) pointArraySet.remove(currentPoint) // calculate last angle of the concave hull line previousAngle = calculateAngle(concaveHull[step - 1], concaveHull[step - 2]) step++ } // Check if all points are contained in the concave hull var insideCheck = true var i = pointArraySet.size - 1 while (insideCheck && i > 0) { insideCheck = pointInPolygon(pointArraySet[i], concaveHull) i-- } // if not all points inside - try again return if (!insideCheck) { calculateConcaveHull(pointArrayList, k + 1) } else { return concaveHull } } }
34.507576
111
0.536114
1f97b43b0f557cc807acc02bcf4feffc32c57c27
15,051
psd1
PowerShell
tools/AzureRM/AzureRM.psd1
yugangw-msft/azure-powershell
6f20bae04775e385bf3e10b77a43c2a753ebb428
[ "MIT" ]
null
null
null
tools/AzureRM/AzureRM.psd1
yugangw-msft/azure-powershell
6f20bae04775e385bf3e10b77a43c2a753ebb428
[ "MIT" ]
null
null
null
tools/AzureRM/AzureRM.psd1
yugangw-msft/azure-powershell
6f20bae04775e385bf3e10b77a43c2a753ebb428
[ "MIT" ]
null
null
null
# # Module manifest for module 'PSGet_AzureRM' # # Generated by: Microsoft Corporation # # Generated on: 8/7/2017 # @{ # Script module or binary module file associated with this manifest. RootModule = '.\AzureRM.psm1' # Version number of this module. ModuleVersion = '4.3.1' # Supported PSEditions # CompatiblePSEditions = @() # ID used to uniquely identify this module GUID = 'b433e830-b479-4f7f-9c80-9cc6c28e1b51' # Author of this module Author = 'Microsoft Corporation' # Company or vendor of this module CompanyName = 'Microsoft Corporation' # Copyright statement for this module Copyright = 'Microsoft Corporation. All rights reserved.' # Description of the functionality provided by this module Description = 'Azure Resource Manager Module' # Minimum version of the Windows PowerShell engine required by this module PowerShellVersion = '3.0' # Name of the Windows PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the Windows PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. DotNetFrameworkVersion = '4.5.2' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. CLRVersion = '4.0' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @(@{ModuleName = 'AzureRM.Profile'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'Azure.Storage'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.AnalysisServices'; RequiredVersion = '0.4.4'; }, @{ModuleName = 'Azure.AnalysisServices'; RequiredVersion = '0.4.4'; }, @{ModuleName = 'AzureRM.ApiManagement'; RequiredVersion = '4.3.1'; }, @{ModuleName = 'AzureRM.Automation'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Backup'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Batch'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Billing'; RequiredVersion = '0.13.4'; }, @{ModuleName = 'AzureRM.Cdn'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.CognitiveServices'; RequiredVersion = '0.8.4'; }, @{ModuleName = 'AzureRM.Compute'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Consumption'; RequiredVersion = '0.2.4'; }, @{ModuleName = 'AzureRM.ContainerRegistry'; RequiredVersion = '0.2.4'; }, @{ModuleName = 'AzureRM.DataFactories'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.DataLakeAnalytics'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.DataLakeStore'; RequiredVersion = '4.3.1'; }, @{ModuleName = 'AzureRM.DevTestLabs'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Dns'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.EventHub'; RequiredVersion = '0.4.4'; }, @{ModuleName = 'AzureRM.HDInsight'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Insights'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.IoTHub'; RequiredVersion = '2.3.1'; }, @{ModuleName = 'AzureRM.KeyVault'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.LogicApp'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.MachineLearning'; RequiredVersion = '0.15.4'; }, @{ModuleName = 'AzureRM.Media'; RequiredVersion = '0.7.4'; }, @{ModuleName = 'AzureRM.Network'; RequiredVersion = '4.3.1'; }, @{ModuleName = 'AzureRM.NotificationHubs'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.OperationalInsights'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.PowerBIEmbedded'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.RecoveryServices'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.RecoveryServices.Backup'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.RedisCache'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Relay'; RequiredVersion = '0.2.4'; }, @{ModuleName = 'AzureRM.Resources'; RequiredVersion = '4.3.1'; }, @{ModuleName = 'AzureRM.Scheduler'; RequiredVersion = '0.15.4'; }, @{ModuleName = 'AzureRM.ServerManagement'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.ServiceBus'; RequiredVersion = '0.4.4'; }, @{ModuleName = 'AzureRM.ServiceFabric'; RequiredVersion = '0.2.4'; }, @{ModuleName = 'AzureRM.SiteRecovery'; RequiredVersion = '4.3.1'; }, @{ModuleName = 'AzureRM.Sql'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Storage'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.StreamAnalytics'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Tags'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.TrafficManager'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.UsageAggregates'; RequiredVersion = '3.3.1'; }, @{ModuleName = 'AzureRM.Websites'; RequiredVersion = '3.3.1'; }) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = @() # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() # Variables to export from this module # VariablesToExport = @() # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = @() # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. # Tags = @() # A URL to the license for this module. LicenseUri = 'https://raw.githubusercontent.com/Azure/azure-powershell/dev/LICENSE.txt' # A URL to the main website for this project. ProjectUri = 'https://github.com/Azure/azure-powershell' # A URL to an icon representing this module. # IconUri = '' # ReleaseNotes of this module ReleaseNotes = '## 2017.08.07 - Version 4.3.0 * AnalysisServices * Fixed bug in Set-AzureRmAnalysisServciesServer - When admin was not provided, the admin will be removed. * Added BackupBlobContainerUri in New-AzureRmAnalysisServicesServer and Set-AzureRmAnalysisServicesServer - Enable to set/disable backup blob container for backup/restore Azure Analysis Services Server * Updated Sku lookup in New-AzureRmAnalysisServicesServer and Set-AzureRmAnalysisServicesServer - Changed hard coded Sku into dynamic lookup. * Add-AzureAnalysisServicesAccount to support login with Service Principal * Automation * Made changes to AutomationDSC* cmdlets to pull more than 100 records * Resolved the issue where the Verbose streams stop working after calling some Automation cmdlets (for example Get-AzureRmAutomationVariable, Get-AzureRmAutomationJob). * Support for NodeConfiguration Build versioning added in StartAzureAutomationDscCompilationJob and ImportAzureAutomationDscNodeConfiguration. * Bug fixes for existing issues - Fixes the alias issue is #3775 and the runOn alias and support for HybridWorkers. * Compute * Set-AzureRmVMAEMExtension: Add support for new Premium Disk sizes * Set-AzureRmVMAEMExtension: Add support for M series * Add ForceUpdateTag parameter to Add-AzureRmVmssExtension * Add Primary parameter to New-AzureRmVmssIpConfig * Add EnableAcceleratedNetworking parameter to Add-AzureRmVmssNetworkInterfaceConfig * Add InstanceId to Set-AzureRmVmss * Expose MaintenanceRedeployStatus to Get-AzureRmVM -Status output * Expose Restriction and Capability to the table format of Get-AzureRmComputeResourceSku * DataLakeStore * Fix for issue: https://github.com/Azure/azure-powershell/issues/4323 * EventHub * added ResourceGroup property to NamespaceAttributes - ''ResourceGroup'' Gets the name of the resource group the Namespace is in * updated commandlets with new parameter and parameter alias - below cmdlets updated with Parametersets for Namespace and EventHub for operation of AuthorizationRule - New-AzureRmEventHubAuthorizationRule + Adds a new AuthorizationRule to the existing NameSpace or EventHub. - Get-AzureRmEventHubAuthorizationRule + Gets AuthorizationRule / List of AuthorizationRules for the existing NameSpace or EventHub. - Set-AzureRmEventHubAuthorizationRule + Updates properties of existing AuthorizationRule of EventHub NameSpace. - Remove-AzureRmEventHubAuthorizationRule + Deletes the existing AuthorizationRule of existing NameSpace or EventHub. - New-AzureRmEventHubKey + Generates a new Primary/Secondary Key for AuthorizationRule of existing NameSpace or EventHub. - Get-AzureRmEventHubKey + Gets Primary/Secondary Key for AuthorizationRule of existing NameSpace or EventHub. * Network * New-AzureRmExpressRouteCircuitPeeringConfig: Added IPv6 support. New optional parameter added - PeerAddressType * Set-AzureRmExpressRouteCircuitPeeringConfig: Added IPv6 support. New optional parameter added - PeerAddressType * Remove-AzureRmExpressRouteCircuitPeeringConfig: Added IPv6 support. New optional parameter added - PeerAddressType * Marked parameter -ProbeEnabled as obsolete - Add-AzureRmApplicationGatewayBackendHttpSettings - New-AzureRmApplicationGatewayBackendHttpSettings - Set-AzureRmApplicationGatewayBackendHttpSettings * Profile * Data collection has been enabled by default. Usage data is collected by Microsoft in order to improve the user experience. The data is anonymous and does not include command-line argument values. - Use the Disable-AzureRmDataCollection cmdlet to turn the feature off - Use the Enable-AzureRmDataCollection cmdlet to turn this feature on * Resources * Add Support for validation of scopes for the following roledefinition and roleassignment commandlets before sending the request to ARM - Get-AzureRMRoleAssignment - New-AzureRMRoleAssignment - Remove-AzureRMRoleAssignment - Get-AzureRMRoleDefinition - New-AzureRMRoleDefinition - Remove-AzureRMRoleDefinition - Set-AzureRMRoleDefinition * ServiceBus * Added below new commandlets for AuthorizationRules for NameSpace, Queue and Topic. according to parameter set the authorization rule orperations are perfomed. - New-AzureRmServiceBusAuthorizationRule - Adds a new AuthorizationRule to the existing ServiceBus NameSpace/Queue/Topic. - Get-AzureRmServiceBusAuthorizationRule - Gets AuthorizationRule / List of AuthorizationRules for the existing ServiceBus NameSpace/Queue/Topic. - Set-AzureRmServiceBusAuthorizationRule - Updates properties of existing AuthorizationRule of Servicebus NameSpace/Queue/Topic. - New-AzureRmServiceBusKey - Generates a new Primary/Secondary Key for AuthorizationRule of existing ServiceBus NameSpace/Queue/Topic. - Get-AzureRmServiceBusKey - Gets Primary/Secondary Key for AuthorizationRule of existing ServiceBus NameSpace/Queue/Topic. - Remove-AzureRmServiceBusNamespaceAuthorizationRule - Deletes the existing AuthorizationRule of ServiceBus NameSpace/Queue/Topic. * Added Resource Group property to NamespceAttributes * Sql * Updating Set-AzureRmSqlServerTransparentDataEncryptionProtector to display a warning and require confirmation if the Encryption Protector Type is being set to AzureKeyVault * Adding new updated cmdlets for Auditing settings - Adding Get-AzureRmSqlDatabaseAuditing cmdlet which gets the auditing settings of an Azure SQL database. - Adding Get-AzureRmSqlServerAuditing cmdlet which gets the auditing settings of an Azure SQL server. - Adding Set-AzureRmSqlDatabaseAuditing cmdlet which changes the auditing settings for an Azure SQL database. - Adding Set-AzureRmSqlServerAuditing cmdlet which changes the auditing settings of an Azure SQL server. * Deprecating the existing Auditing policy cmdlets - Deprecating Get-AzureRmSqlDatabaseAuditingPolicy - Deprecating Get-AzureRmSqlServerAuditingPolicy - Deprecating Set-AzureRmSqlDatabaseAuditingPolicy - Deprecating Set-AzureRmSqlServerAuditingPolicy - Deprecating Use-AzureRmSqlServerAuditingPolicy - Deprecating Remove-AzureRmSqlDatabaseAuditing - Deprecating Remove-AzureRmSqlServerAuditing * Schema file parsing for Update-AzureRmSqlSyncGroup is now case insensitive. * Storage * Add NeworkRule support to resource mode storage account cmdlets - New-AzureRmStorageAccount - Set-AzureRmStorageAccount - Get-AzureRmStorageAccountNetworkRuleSet - Update-AzureRmStorageAccountNetworkRuleSet - Add-AzureRmStorageAccountNetworkRule - Remove-AzureRmStorageAccountNetworkRule' # External dependent modules of this module # ExternalModuleDependencies = '' } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' }
54.140288
201
0.705269
5fff2c9210860167de6ce5b9f2178f18a9c8070a
831
css
CSS
src/components/SearchContainer.css
openmohan/react-test-zion
d2cd613425d4d826eb2c383f69f0674ac3fd9d56
[ "Apache-2.0" ]
null
null
null
src/components/SearchContainer.css
openmohan/react-test-zion
d2cd613425d4d826eb2c383f69f0674ac3fd9d56
[ "Apache-2.0" ]
null
null
null
src/components/SearchContainer.css
openmohan/react-test-zion
d2cd613425d4d826eb2c383f69f0674ac3fd9d56
[ "Apache-2.0" ]
null
null
null
.clickable{ cursor: pointer; } ul, li { padding: 0; margin: 0; list-style: none; } ul { margin: 2em 0; } li { margin: 1em; margin-left: 3em; } li:before { content: '\f006'; font-family: 'FontAwesome'; float: left; margin-left: -1.5em; color: #0074D9; } #label1{ display: block; padding-left: 2px; padding-bottom: 2px; font-weight: 700; font-size: 13px; color: #111; } #search-bar { padding: 3px 7px; min-width:300px; color: #111; font-size: 14px; line-height: 23px; border: 1px solid #a6a6a6; border-top-color: #949494; box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 1px 0 rgba(0,0,0,.07) inset; border-radius: 3px; outline: 0; } #search-bar:focus{ /* glowing effect */ /* box-shadow: 0 0 5px hsl(217, 71%, 53%); */ border: 1px solid hsl(217, 71%, 53%); }
14.327586
74
0.600481
cb2e703299b636c4784319ed9146a869b710159a
703
go
Go
time.go
saj/ffind-mtime
fce2ae92d27200a153463a3308fa5dd3e0612c13
[ "MIT" ]
null
null
null
time.go
saj/ffind-mtime
fce2ae92d27200a153463a3308fa5dd3e0612c13
[ "MIT" ]
null
null
null
time.go
saj/ffind-mtime
fce2ae92d27200a153463a3308fa5dd3e0612c13
[ "MIT" ]
null
null
null
package main import ( "fmt" "regexp" "strconv" "time" ) var durationRE = regexp.MustCompile("^([0-9]+)(y|w|d|h|m|s)?$") func ParseDuration(s string) (time.Duration, error) { matches := durationRE.FindStringSubmatch(s) if len(matches) != 3 { return 0, fmt.Errorf("invalid duration string: %q", s) } var ( n, _ = strconv.Atoi(matches[1]) d = time.Duration(n) * time.Second ) switch unit := matches[2]; unit { case "y": d *= 60 * 60 * 24 * 365 case "w": d *= 60 * 60 * 24 * 7 case "d": d *= 60 * 60 * 24 case "h": d *= 60 * 60 case "m": d *= 60 case "s": case "": default: return 0, fmt.Errorf("invalid time unit in duration string: %q", unit) } return d, nil }
18.025641
72
0.583215
9ba2b03c124a78dbba0389ce9204e49a18e9c57f
1,999
js
JavaScript
addon/components/ev-scatter.js
schrodingersket/ember-visualization
6331910f4b63d1ecc230df24e53f2a12fa2051b2
[ "MIT" ]
null
null
null
addon/components/ev-scatter.js
schrodingersket/ember-visualization
6331910f4b63d1ecc230df24e53f2a12fa2051b2
[ "MIT" ]
null
null
null
addon/components/ev-scatter.js
schrodingersket/ember-visualization
6331910f4b63d1ecc230df24e53f2a12fa2051b2
[ "MIT" ]
null
null
null
/* * Copyright (c) 2015 Urbane Innovation, LLC */ import LabeledGraph from 'ember-visualization/components/labeled-graph'; export default LabeledGraph.extend({ /** * Specifies the radius for each plot point. */ pointRadius: 3.5, /** * Renders supporting components. */ svgRender: function(self) { self._renderXAxis(); self._renderYAxis(); self._renderTitle(); self._renderXAxisTitle(); self._renderYAxisTitle(); self._renderLegend(); }, /** * Renders each point found in `dataSource` as an SVG "circle" element. If `dataSource` is null, * or if it contains no elements, all already-rendered points are removed. */ renderPlot: function() { if (this.get('dataSource') && this.get('dataSource').length > 0 && this.get('svg')) { var xScale = this.get('xScale')(this); var yScale = this.get('yScale')(this); var self = this; // Remove all points // this.get('svg').selectAll('circle.ev-point').remove(); var $points = this.get('svg').selectAll('circle.ev-point'); // Update currently rendered points // this.get('dataSource').forEach(function(dataSet) { var color = dataSet.color || 'black'; // Add any new points // $points .data(dataSet.data) .enter() .append('svg:circle') .attr('data-series', 'foo') .attr('class', 'ev-point') .attr('r', self.get('pointRadius')) .attr('cx', function(d) { return xScale(d.x); }) .attr('cy', function(d) { return yScale(d.y); }) .attr('fill', color); }); } else { // Remove when no data source is specified, if it exists. // this.get('svg') .select('circle.ev-point') .transition() .remove(); } }.observes('dataSource', 'dataSource.[]', 'margin.left', 'margin.right', 'margin.top', 'margin.bottom') });
24.9875
105
0.561781
1fe1e75a7e9e01c25b9d7482baaf5285d5091687
378
kt
Kotlin
modules/core/arrow-test/src/main/kotlin/arrow/test/laws/MonadCombineLaws.kt
katielevy1/arrow
89ec2787dd09c9298376b427bb013ef3258505a2
[ "Apache-2.0" ]
null
null
null
modules/core/arrow-test/src/main/kotlin/arrow/test/laws/MonadCombineLaws.kt
katielevy1/arrow
89ec2787dd09c9298376b427bb013ef3258505a2
[ "Apache-2.0" ]
null
null
null
modules/core/arrow-test/src/main/kotlin/arrow/test/laws/MonadCombineLaws.kt
katielevy1/arrow
89ec2787dd09c9298376b427bb013ef3258505a2
[ "Apache-2.0" ]
null
null
null
package arrow.test.laws import arrow.Kind import arrow.mtl.typeclasses.MonadCombine import arrow.typeclasses.Eq object MonadCombineLaws { fun <F> laws( MCF: MonadCombine<F>, cf: (Int) -> Kind<F, Int>, cff: (Int) -> Kind<F, (Int) -> Int>, EQ: Eq<Kind<F, Int>> ): List<Law> = MonadFilterLaws.laws(MCF, cf, EQ) + AlternativeLaws.laws(MCF, cf, cff, EQ) }
22.235294
78
0.650794
39620ab7acc505301006be5ebd23021b9bb0dba2
59
sql
SQL
inttest/good_conf/list.sql
simi-so/sql2json
f60ed473aa82e0c0772a5bc18294d1982321d376
[ "MIT" ]
null
null
null
inttest/good_conf/list.sql
simi-so/sql2json
f60ed473aa82e0c0772a5bc18294d1982321d376
[ "MIT" ]
null
null
null
inttest/good_conf/list.sql
simi-so/sql2json
f60ed473aa82e0c0772a5bc18294d1982321d376
[ "MIT" ]
null
null
null
SELECT now()::varchar AS stamp FROM generate_series(1,5)
11.8
24
0.745763