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
sequencelengths
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
sequencelengths
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
sequencelengths
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
e222bb549871caf566e70aacde64efb736b5161f
3,082
py
Python
termux-version.py
pyaf/reduce-kaggle-frustation
f43c34ab5ab1b4ff9ccb55f03b547d5c916cffb9
[ "MIT" ]
7
2019-11-24T14:18:47.000Z
2020-04-27T11:55:44.000Z
termux-version.py
pyaf/reduce-kaggle-frustation
f43c34ab5ab1b4ff9ccb55f03b547d5c916cffb9
[ "MIT" ]
null
null
null
termux-version.py
pyaf/reduce-kaggle-frustation
f43c34ab5ab1b4ff9ccb55f03b547d5c916cffb9
[ "MIT" ]
null
null
null
import time import json import requests import subprocess import smtplib, ssl def get_leaderboard_status(): URL = "https://www.kaggle.com/c/3d-object-detection-for-autonomous-vehicles/leaderboard" client = requests.session() # create a session client.get(URL) # sets cookie # prepare cookie string for headers str_cookies = "" for k, v in client.cookies.get_dict().items(): str_cookies += f"{k}={v}; " # prepare headers headers = { "sec-fetch-mode": "cors", "origin": "https://www.kaggle.com", "x-xsrf-token": client.cookies["XSRF-TOKEN"], "accept-language": "en,hi;q=0.9", "accept-encoding": "gzip, deflate", "cookie": str_cookies, "content-type": "application/json", "accept": "application/json", "referer": URL, "authority": "www.kaggle.com", "sec-fetch-site": "same-origin", "dnt": "1", } # payload data = { "competitionId": 0, "competitionName": "3d-object-detection-for-autonomous-vehicles", } # this url is used by kaggle to check competition status api_url = "https://www.kaggle.com/requests/CompetitionService/GetCompetition" # get response from api url response = requests.post(api_url, headers=headers, data=json.dumps(data)) data = json.loads(response.text.strip()) status = data["result"]["finalLeaderboardHasBeenVerified"] return status def send_email(credentials): URL = "https://www.kaggle.com/c/3d-object-detection-for-autonomous-vehicles/leaderboard" smtp_server = "smtp.gmail.com" port = 587 # For starttls sender_email = credentials["sender_email"] password = credentials["password"] receiver_email = credentials["receiver_email"] SUBJECT = "Kaggle's Lyft Competition" TEXT = f"Hi there! \n\nTHE LEADERBOARD HAS BEEN FINALIZED!, check it out: {URL}" message = "Subject: {}\n\n{}".format(SUBJECT, TEXT) context = ssl.create_default_context() with smtplib.SMTP(smtp_server, port) as server: server.ehlo() # Can be omitted server.starttls(context=context) server.ehlo() # Can be omitted server.login(sender_email, password) server.sendmail(sender_email, receiver_email, message) if __name__ == "__main__": interval = 30 # interval between to checks, in minutes message = "THE LEADERBOARD HAS BEEN FINALIZED 🎉🎉🎉" # credentials to be used for email notification credentials = {"sender_email": "", "password": "", "receiver_email": ""} while True: # check if LB is finalized status = get_leaderboard_status() if status: print(message) # send system notification subprocess.Popen(["termux-notification", "-c", message]) # send email send_email(credentials) break # sleep for `interval` minutes clock = time.strftime("%H:%M%p %Z on %b %d, %Y") print(f"{clock} | Still not finalized :(") time.sleep(interval * 60)
30.82
92
0.631408
433fb0a9c30fc8d30d403422c641d6dee4c47fae
134
ts
TypeScript
models/shared/Picture.ts
tamaskutiod/aac-frontend-api-design
31d3c530e3436fce9e558cee81e7428c1fd5046f
[ "MIT" ]
null
null
null
models/shared/Picture.ts
tamaskutiod/aac-frontend-api-design
31d3c530e3436fce9e558cee81e7428c1fd5046f
[ "MIT" ]
null
null
null
models/shared/Picture.ts
tamaskutiod/aac-frontend-api-design
31d3c530e3436fce9e558cee81e7428c1fd5046f
[ "MIT" ]
null
null
null
import ImageSources from "./ImageSources"; interface Picture { alt: string, sources: ImageSources } export default Picture;
14.888889
42
0.731343
a32ce39579e01fa5d2b5c144863ee02561be9774
2,128
java
Java
src/main/java/com/thinkgem/jeesite/modules/affair/dao/AffairPartyRewardPunishDao.java
FIG5229/Only
7e8bd304524b90f3368b5f0b0c8cf3451735b69a
[ "Apache-2.0" ]
null
null
null
src/main/java/com/thinkgem/jeesite/modules/affair/dao/AffairPartyRewardPunishDao.java
FIG5229/Only
7e8bd304524b90f3368b5f0b0c8cf3451735b69a
[ "Apache-2.0" ]
null
null
null
src/main/java/com/thinkgem/jeesite/modules/affair/dao/AffairPartyRewardPunishDao.java
FIG5229/Only
7e8bd304524b90f3368b5f0b0c8cf3451735b69a
[ "Apache-2.0" ]
null
null
null
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.affair.dao; import com.thinkgem.jeesite.common.persistence.CrudDao; import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao; import com.thinkgem.jeesite.modules.affair.entity.AffairPartyRewardPunish; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; import org.apache.ibatis.annotations.Param; /** * 党员奖惩信息DAO接口 * @author eav.liu * @version 2019-11-12 */ @MyBatisDao public interface AffairPartyRewardPunishDao extends CrudDao<AffairPartyRewardPunish> { Integer selectNumber(@Param("lastYearDate")Date lastYearDate,@Param("nowYearDate")Date nowYearDate,@Param("idNumber") String idNumber,@Param("level") String level); Integer selectNumberTwo(@Param("lastYearDate")Date lastYearDate,@Param("nowYearDate")Date nowYearDate,@Param("idNumber") String idNumber,@Param("level") String level,@Param("levelTwo") String levelTwo); Integer selectNumberMonth(@Param("lastMonthDate")Date lastMonthDate,@Param("nowMonthDate")Date nowMonthDate,@Param("idNumber") String idNumber,@Param("level") String level); Integer selectNumberMonthTwo(@Param("lastMonthDate")Date lastMonthDate,@Param("nowMonthDate")Date nowMonthDate,@Param("idNumber") String idNumber,@Param("level") String level,@Param("levelTwo")String levelTwo); List<AffairPartyRewardPunish> selectPerson(@Param("lastYearDate") Date lastYearDate,@Param("nowYearDate") Date nowYearDate, @Param("unitId") String unitId); List<AffairPartyRewardPunish> selectPersonMonth(@Param("lastMonthDate") Date lastMonthDate,@Param("nowMonthDate") Date nowMonthDate,@Param("unitId") String unitId); List<AffairPartyRewardPunish> selectAssessPersonAward(@Param("lastYearDate")Date lastYearDate,@Param("nowYearDate")Date nowYearDate,@Param("idNumber") String idNumber); List<AffairPartyRewardPunish> selectAssessPersonAwardMonth(@Param("lastMonthDate")Date lastMonthDate,@Param("nowMonthDate")Date nowMonthDate,@Param("idNumber") String idNumber); }
60.8
214
0.792293
22ad27938c55d7e3230d846aab93b3163c282f8d
2,604
dart
Dart
lib/apiModel/logistics.dart
wlbwrx/bale_shop
ee63f6251c842ed1fd082efeb99c77b235270317
[ "Apache-2.0" ]
null
null
null
lib/apiModel/logistics.dart
wlbwrx/bale_shop
ee63f6251c842ed1fd082efeb99c77b235270317
[ "Apache-2.0" ]
null
null
null
lib/apiModel/logistics.dart
wlbwrx/bale_shop
ee63f6251c842ed1fd082efeb99c77b235270317
[ "Apache-2.0" ]
null
null
null
import 'package:json_annotation/json_annotation.dart'; part 'logistics.g.dart'; @JsonSerializable() class logistics extends Object { @JsonKey(name: 'body') Body body; @JsonKey(name: 'headers') Headers headers; @JsonKey(name: 'statusCode') String statusCode; @JsonKey(name: 'statusCodeValue') int statusCodeValue; logistics(this.body,this.headers,this.statusCode,this.statusCodeValue,); factory logistics.fromJson(Map<String, dynamic> srcJson) => _$logisticsFromJson(srcJson); Map<String, dynamic> toJson() => _$logisticsToJson(this); } @JsonSerializable() class Body extends Object { @JsonKey(name: 'eventInfos') List<EventInfos> eventInfos; @JsonKey(name: 'trackerInfo') TrackerInfo trackerInfo; Body(this.eventInfos,this.trackerInfo,); factory Body.fromJson(Map<String, dynamic> srcJson) => _$BodyFromJson(srcJson); Map<String, dynamic> toJson() => _$BodyToJson(this); } @JsonSerializable() class EventInfos extends Object { @JsonKey(name: 'created_at') String createdAt; @JsonKey(name: 'event_name') String eventName; EventInfos(this.createdAt,this.eventName,); factory EventInfos.fromJson(Map<String, dynamic> srcJson) => _$EventInfosFromJson(srcJson); Map<String, dynamic> toJson() => _$EventInfosToJson(this); } @JsonSerializable() class TrackerInfo extends Object { @JsonKey(name: 'id') int id; @JsonKey(name: 'agencyCompany') String agencyCompany; @JsonKey(name: 'trackingNumber') String trackingNumber; @JsonKey(name: 'carrierCode') String carrierCode; @JsonKey(name: 'orderCode') String orderCode; @JsonKey(name: 'destinationCode') String destinationCode; @JsonKey(name: 'status') String status; @JsonKey(name: 'settlementStatus') int settlementStatus; @JsonKey(name: 'createdBy') String createdBy; @JsonKey(name: 'updatedBy') String updatedBy; @JsonKey(name: 'updatedAt') String updatedAt; @JsonKey(name: 'createdAt') String createdAt; TrackerInfo(this.id,this.agencyCompany,this.trackingNumber,this.carrierCode,this.orderCode,this.destinationCode,this.status,this.settlementStatus,this.createdBy,this.updatedBy,this.updatedAt,this.createdAt,); factory TrackerInfo.fromJson(Map<String, dynamic> srcJson) => _$TrackerInfoFromJson(srcJson); Map<String, dynamic> toJson() => _$TrackerInfoToJson(this); } @JsonSerializable() class Headers extends Object { Headers(); factory Headers.fromJson(Map<String, dynamic> srcJson) => _$HeadersFromJson(srcJson); Map<String, dynamic> toJson() => _$HeadersToJson(this); }
20.666667
210
0.72619
25a5ba30ad8b5c9307807ec76b02b2fc7651179b
2,122
cs
C#
tests/ContosoUniversity.Application.Tests/Validators/DepartmentValidatorTests.cs
theMickster/contoso-university-razor-pages
a845387e6c743a42b9c69ad752661696a5462074
[ "MIT" ]
1
2020-02-09T21:54:22.000Z
2020-02-09T21:54:22.000Z
tests/ContosoUniversity.Application.Tests/Validators/DepartmentValidatorTests.cs
theMickster/contoso-university-razor-pages
a845387e6c743a42b9c69ad752661696a5462074
[ "MIT" ]
null
null
null
tests/ContosoUniversity.Application.Tests/Validators/DepartmentValidatorTests.cs
theMickster/contoso-university-razor-pages
a845387e6c743a42b9c69ad752661696a5462074
[ "MIT" ]
1
2019-09-06T18:06:38.000Z
2019-09-06T18:06:38.000Z
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ContosoUniversity.Application.Validators; using ContosoUniversity.Common; using FluentValidation.TestHelper; using Xunit; namespace ContosoUniversity.Application.Tests.Validators { public class DepartmentValidatorTests { private readonly DepartmentValidator _departmentValidator; public DepartmentValidatorTests() { _departmentValidator = new DepartmentValidator(); } [Fact] public void ValidationFailsWhenDepartmentTitleNull() { _departmentValidator.ShouldHaveValidationErrorFor(m => m.DepartmentName, null as string); } [Fact] public void ValidationFailsWhenDepartmentTitleEmpty() { _departmentValidator.ShouldHaveValidationErrorFor(m => m.DepartmentName, string.Empty); } [Fact] public void ValidationFailsWhenDepartmentTitleTooShort() { _departmentValidator.ShouldHaveValidationErrorFor(m => m.DepartmentName, StringGenerator.GenerateRandomString(2)); } [Fact] public void ValidationFailsWhenDepartmentTitleTooLong() { _departmentValidator.ShouldHaveValidationErrorFor(m => m.DepartmentName, StringGenerator.GenerateRandomString(101)); } [Fact] public void ValidationSucceedsWhenDepartmentTitleShortLength() { _departmentValidator.ShouldNotHaveValidationErrorFor(m => m.DepartmentName, StringGenerator.GenerateRandomString(3)); } [Fact] public void ValidationSucceedsWhenDepartmentTitleAverageLength() { _departmentValidator.ShouldNotHaveValidationErrorFor(m => m.DepartmentName, StringGenerator.GenerateRandomString(25)); } [Fact] public void ValidationSucceedsWhenDepartmentTitleLongLength() { _departmentValidator.ShouldNotHaveValidationErrorFor(m => m.DepartmentName, StringGenerator.GenerateRandomString(100)); } } }
32.646154
131
0.701225
030fa06aaad142d79f4ef91d92ed8a61746c242a
70
rb
Ruby
www/public/medias/rubies/examples/vr_display.rb
atomecorp/atome
c5a50f29282ce2ee0efcf858db33b0c8e6afecbb
[ "MIT" ]
2
2020-10-04T11:52:29.000Z
2022-03-19T19:57:46.000Z
www/public/medias/rubies/examples/vr_display.rb
atomecorp/atome
c5a50f29282ce2ee0efcf858db33b0c8e6afecbb
[ "MIT" ]
9
2021-03-20T11:31:22.000Z
2022-02-27T18:44:49.000Z
www/public/medias/rubies/examples/vr_display.rb
atomecorp/atome
c5a50f29282ce2ee0efcf858db33b0c8e6afecbb
[ "MIT" ]
1
2020-10-05T06:30:59.000Z
2020-10-05T06:30:59.000Z
# vr example i=image(:beach) i.display(:vr) i.width(600) i.height(900)
14
15
0.7
433aec82e7b9b6cc232f933a9adfab307e594f3e
3,777
tsx
TypeScript
src/BouncingBallsDiv.tsx
joejensen/react-bouncing-balls
2bdaaecad4ca9c6396fb93a3d335d75ac0c515b1
[ "Unlicense" ]
null
null
null
src/BouncingBallsDiv.tsx
joejensen/react-bouncing-balls
2bdaaecad4ca9c6396fb93a3d335d75ac0c515b1
[ "Unlicense" ]
null
null
null
src/BouncingBallsDiv.tsx
joejensen/react-bouncing-balls
2bdaaecad4ca9c6396fb93a3d335d75ac0c515b1
[ "Unlicense" ]
1
2020-09-06T07:26:21.000Z
2020-09-06T07:26:21.000Z
/** * @class BouncingBallsDivComponent */ import * as React from 'react'; import {RefObject} from "react"; import {PointCollection} from "./PointCollection"; export type BouncingBallsDivProps = { src: string; width: number; height: number; cellSize: number; } export default class BouncingBallsDivComponent extends React.Component<BouncingBallsDivProps> { static defaultProps: BouncingBallsDivProps = { src: '', width: 512, height: 512, cellSize: 20 }; private readonly containerRef: RefObject<HTMLDivElement>; private readonly pointCollection: PointCollection = new PointCollection(); constructor(props: BouncingBallsDivProps) { super(props); this.containerRef = React.createRef(); } render() { return ( <div ref={this.containerRef} className="BouncingBallsDiv_container"/> ) } public componentDidMount(): void { const containerEl: HTMLDivElement | null = this.containerRef.current; if( !containerEl) { return; } containerEl.ontouchstart = e => { e.preventDefault(); }; containerEl.ontouchmove = e => { e.preventDefault(); let mPosx = 0; let mPosy = 0; let ePosx = 0; let ePosy = 0; if (e.targetTouches[0].pageX || e.targetTouches[0].pageY) { mPosx = e.targetTouches[0].pageX; mPosy = e.targetTouches[0].pageY; } else if (e.targetTouches[0].clientX || e.targetTouches[0].clientY) { mPosx = e.targetTouches[0].clientX + document.body.scrollLeft + document.documentElement.scrollLeft; mPosy = e.targetTouches[0].clientY + document.body.scrollTop + document.documentElement.scrollTop; } let currentObject: any = containerEl; if ( currentObject.offsetParent) { do { ePosx += currentObject.offsetLeft; ePosy += currentObject.offsetTop; currentObject = currentObject.offsetParent; } while ( currentObject.offsetParent); } this.pointCollection.mousePos.setValue(mPosx - ePosx, mPosy - ePosy, 0); }; containerEl.ontouchend = e => { e.preventDefault(); this.pointCollection.mousePos.setValue(-999, -999, -999); }; containerEl.ontouchcancel = e => { e.preventDefault(); this.pointCollection.mousePos.setValue(-999, -999, -999); }; containerEl.onmousemove = e => { let mPosx = 0; let mPosy = 0; let ePosx = 0; let ePosy = 0; if (e.pageX || e.pageY) { mPosx = e.pageX; mPosy = e.pageY; } else if (e.clientX || e.clientY) { mPosx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; mPosy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } let currentObject: any = containerEl; if ( currentObject.offsetParent) { do { ePosx += currentObject.offsetLeft; ePosy += currentObject.offsetTop; currentObject = currentObject.offsetParent; } while ( currentObject.offsetParent); } this.pointCollection.mousePos.setValue(mPosx - ePosx, mPosy - ePosy, 0); }; containerEl.onmouseleave = _e => { this.pointCollection.mousePos.setValue(-999, -999, -999); }; containerEl.setAttribute('style', `width:${this.props.width}px; height:${this.props.height}px`); this.pointCollection.loadFromSource( this.props.src, this.props.width, this.props.height, this.props.cellSize); this.timeout(); } private timeout(): void { const container: HTMLDivElement | null = this.containerRef.current; if( !container) { return; } this.pointCollection.drawDiv(container); this.pointCollection.update(); setTimeout(() => this.timeout(), 30); } }
29.27907
115
0.644427
a5193594c5b20a70fcdadf248bf65c1783c0d666
1,311
sh
Shell
Services_dev/MonoApp/run_bash.sh
samuelxu999/Microservices_dev
70d5845fdedbcaecb7f7cf8bc7a623053c57b136
[ "MIT" ]
null
null
null
Services_dev/MonoApp/run_bash.sh
samuelxu999/Microservices_dev
70d5845fdedbcaecb7f7cf8bc7a623053c57b136
[ "MIT" ]
2
2021-03-17T23:27:00.000Z
2021-03-17T23:27:01.000Z
Services_dev/MonoApp/run_bash.sh
samuelxu999/Microservices_dev
70d5845fdedbcaecb7f7cf8bc7a623053c57b136
[ "MIT" ]
2
2019-04-23T22:13:18.000Z
2019-08-19T01:39:51.000Z
#!/bin/bash # -i sets up an interactive session; -t allocates a pseudo tty; --rm makes this container ephemeral # -u specify the process should be run by root. This step is important (v.i.)! # -v @volume:@docker path. use volume to save data # -v /etc/localtime:/etc/localtime:ro make sure docker's time syncs with that of the host # --name=@ specify the name of the container (here rdev); the image you want to run the container from (here ubuntu-r); the process you want to run in the container (here bash). (The last step of specifying a process is only necessary if you have not set a default CMD or ENTRYPOINT for your image.) IMAGE_NAME="mono_node" CONTAINER_NAME="mono-service" VOLUME_ACCOUNT="gethAccount" RPC_PORT=$1 PORT=$2 # arguments validation if [[ 2 -ne $# ]]; then echo "Usage $0 -rpcport -port!" exit 0 fi if ! [[ $RPC_PORT =~ ^[0-9]+$ ]]; then echo "Error: rpcport should be integer!" exit 0 fi if ! [[ $PORT =~ ^[0-9]+$ ]]; then echo "Error: port should be integer!" exit 0 fi # execute docker run command docker run -i -t --rm \ -p 8080:80 \ -p $RPC_PORT:8042 \ -p $PORT:30303 \ --privileged=true \ -v /etc/localtime:/etc/localtime:ro \ -v $VOLUME_ACCOUNT:/home/docker/account \ -v $(pwd)/node_data:/home/docker/node_data \ --name=$CONTAINER_NAME $IMAGE_NAME /bin/bash
31.214286
299
0.698703
a3c6f57dfd23638a9fa7ae98f20e5978e71a2198
268
java
Java
gulimall-member/src/main/java/cn/lxtkj/gulimall/member/vo/MemberUserLoginVo.java
leiphp/gulimall
6c53e6db69444cac73899f97e1d5c47b8d5fb43a
[ "Apache-2.0" ]
null
null
null
gulimall-member/src/main/java/cn/lxtkj/gulimall/member/vo/MemberUserLoginVo.java
leiphp/gulimall
6c53e6db69444cac73899f97e1d5c47b8d5fb43a
[ "Apache-2.0" ]
null
null
null
gulimall-member/src/main/java/cn/lxtkj/gulimall/member/vo/MemberUserLoginVo.java
leiphp/gulimall
6c53e6db69444cac73899f97e1d5c47b8d5fb43a
[ "Apache-2.0" ]
null
null
null
package cn.lxtkj.gulimall.member.vo; import lombok.Data; /** * @Description: * @Created: By IntelliJ IDEA. * @author: 雷小天 * @createTime: 2021/9/24 14:52 **/ @Data public class MemberUserLoginVo { private String loginacct; private String password; }
13.4
36
0.682836
9eed519cc396dc27082eba57c0af72ebcfa8780c
6,126
lua
Lua
gamemodes/ix_cotz/schema/items/gear/sh_xm40.lua
kristofferth/cotz
7d76c0214fbe8bbda6a8996697154d0feaf50f44
[ "MIT" ]
null
null
null
gamemodes/ix_cotz/schema/items/gear/sh_xm40.lua
kristofferth/cotz
7d76c0214fbe8bbda6a8996697154d0feaf50f44
[ "MIT" ]
null
null
null
gamemodes/ix_cotz/schema/items/gear/sh_xm40.lua
kristofferth/cotz
7d76c0214fbe8bbda6a8996697154d0feaf50f44
[ "MIT" ]
null
null
null
ITEM.name = "XM-40" ITEM.description = "A newer gasmask." ITEM.longdesc = "A regular plastic and rubber respirator, used to protect the wearer from inhaling harmful dusts, fumes, vapours or gases. Widely used by rookies and veterans of all factions due to its universal functionality. Does not provide any physical protection." ITEM.model = "models/kek1ch/helm_respirator.mdl" ITEM.price = 10000 --ITEM.busflag = {"ARMOR4", "SPECIAL6_1"} ITEM.busflag = {"gasmask1_1"} ITEM.br = 0 ITEM.fbr = 0 ITEM.ar = 0.2 ITEM.far = 1 ITEM.radProt = 1 ITEM.isGasmask = true ITEM.isHelmet = nil ITEM.ballisticlevels = {"0"} ITEM.overlayPath = "vgui/overlays/hud_merc" ITEM.img = ix.util.GetMaterial("vgui/hud/xm40.png") ITEM.repairCost = ITEM.price/100*1 ITEM.weight = 2.300 ITEM.pacData = { [1] = { ["children"] = { [1] = { ["children"] = { }, ["self"] = { ["Skin"] = 0, ["Invert"] = false, ["LightBlend"] = 1, ["CellShade"] = 0, ["OwnerName"] = "self", ["AimPartName"] = "", ["IgnoreZ"] = false, ["AimPartUID"] = "", ["Passes"] = 1, ["Name"] = "", ["NoTextureFiltering"] = false, ["DoubleFace"] = false, ["PositionOffset"] = Vector(0, 0, 0), ["IsDisturbing"] = false, ["Fullbright"] = false, ["EyeAngles"] = false, ["DrawOrder"] = 0, ["TintColor"] = Vector(0, 0, 0), ["UniqueID"] = "xm40_body", ["Translucent"] = false, ["LodOverride"] = -1, ["BlurSpacing"] = 0, ["Alpha"] = 1, ["Material"] = "", ["UseWeaponColor"] = false, ["UsePlayerColor"] = false, ["UseLegacyScale"] = false, ["Bone"] = "head", ["Color"] = Vector(255, 255, 255), ["Brightness"] = 1, ["BoneMerge"] = false, ["BlurLength"] = 0, ["Position"] = Vector(-77.764999389648, -18.541999816895, -0.17399999499321), ["AngleOffset"] = Angle(0, 0, 0), ["AlternativeScaling"] = false, ["Hide"] = false, ["OwnerEntity"] = false, ["Scale"] = Vector(1, 1, 1), ["ClassName"] = "model", ["EditorExpand"] = true, ["Size"] = 1.2200000286102, ["ModelFallback"] = "", ["Angles"] = Angle(-1.2999999523163, -76.300003051758, -90), ["TextureFilter"] = 3, ["Model"] = "models/projectpt/mask_io7a.mdl", ["BlendMode"] = "", }, }, }, ["self"] = { ["DrawOrder"] = 0, ["UniqueID"] = "xm40_outfit", ["AimPartUID"] = "", ["Hide"] = false, ["Duplicate"] = false, ["ClassName"] = "group", ["OwnerName"] = "self", ["IsDisturbing"] = false, ["Name"] = "xm40", ["EditorExpand"] = false, }, }, } ITEM.pacDataExpedition = { [1] = { ["children"] = { [1] = { ["children"] = { }, ["self"] = { ["Skin"] = 0, ["Invert"] = false, ["LightBlend"] = 1, ["CellShade"] = 0, ["OwnerName"] = "self", ["AimPartName"] = "", ["IgnoreZ"] = false, ["AimPartUID"] = "", ["Passes"] = 1, ["Name"] = "", ["NoTextureFiltering"] = false, ["DoubleFace"] = false, ["PositionOffset"] = Vector(0, 0, 0), ["IsDisturbing"] = false, ["Fullbright"] = false, ["EyeAngles"] = false, ["DrawOrder"] = 0, ["TintColor"] = Vector(0, 0, 0), ["UniqueID"] = "xm40_body", ["Translucent"] = false, ["LodOverride"] = -1, ["BlurSpacing"] = 0, ["Alpha"] = 1, ["Material"] = "", ["UseWeaponColor"] = false, ["UsePlayerColor"] = false, ["UseLegacyScale"] = false, ["Bone"] = "head", ["Color"] = Vector(255, 255, 255), ["Brightness"] = 1, ["BoneMerge"] = false, ["BlurLength"] = 0, ["Position"] = Vector(-64.724998474121, -22.238000869751, -0.17379760742188), ["AngleOffset"] = Angle(0, 0, 0), ["AlternativeScaling"] = false, ["Hide"] = false, ["OwnerEntity"] = false, ["Scale"] = Vector(1, 1, 1), ["ClassName"] = "model", ["EditorExpand"] = true, ["Size"] = 1.0499999523163, ["ModelFallback"] = "", ["Angles"] = Angle(-1.2999999523163, -72.300003051758, -90), ["TextureFilter"] = 3, ["Model"] = "models/projectpt/mask_io7a.mdl", ["BlendMode"] = "", }, }, }, ["self"] = { ["DrawOrder"] = 0, ["UniqueID"] = "xm40_outfit", ["AimPartUID"] = "", ["Hide"] = true, ["Duplicate"] = false, ["ClassName"] = "group", ["OwnerName"] = "self", ["IsDisturbing"] = false, ["Name"] = "xm40", ["EditorExpand"] = false, }, }, } ITEM.pacDataBerill1 = { [1] = { ["children"] = { [1] = { ["children"] = { }, ["self"] = { ["Skin"] = 0, ["Invert"] = false, ["LightBlend"] = 1, ["CellShade"] = 0, ["OwnerName"] = "self", ["AimPartName"] = "", ["IgnoreZ"] = false, ["AimPartUID"] = "", ["Passes"] = 1, ["Name"] = "", ["NoTextureFiltering"] = false, ["DoubleFace"] = false, ["PositionOffset"] = Vector(0, 0, 0), ["IsDisturbing"] = false, ["Fullbright"] = false, ["EyeAngles"] = false, ["DrawOrder"] = 0, ["TintColor"] = Vector(0, 0, 0), ["UniqueID"] = "xm40_body", ["Translucent"] = false, ["LodOverride"] = -1, ["BlurSpacing"] = 0, ["Alpha"] = 1, ["Material"] = "", ["UseWeaponColor"] = false, ["UsePlayerColor"] = false, ["UseLegacyScale"] = false, ["Bone"] = "head", ["Color"] = Vector(255, 255, 255), ["Brightness"] = 1, ["BoneMerge"] = false, ["BlurLength"] = 0, ["Position"] = Vector(-69.964996337891, -17.312000274658, -0.17399999499321), ["AngleOffset"] = Angle(0, 0, 0), ["AlternativeScaling"] = false, ["Hide"] = false, ["OwnerEntity"] = false, ["Scale"] = Vector(1, 1, 1), ["ClassName"] = "model", ["EditorExpand"] = true, ["Size"] = 1.1, ["ModelFallback"] = "", ["Angles"] = Angle(-1.2999999523163, -76.300003051758, -90), ["TextureFilter"] = 3, ["Model"] = "models/projectpt/mask_io7a.mdl", ["BlendMode"] = "", }, }, }, ["self"] = { ["DrawOrder"] = 0, ["UniqueID"] = "xm40_outfit", ["AimPartUID"] = "", ["Hide"] = false, ["Duplicate"] = false, ["ClassName"] = "group", ["OwnerName"] = "self", ["IsDisturbing"] = false, ["Name"] = "xm40", ["EditorExpand"] = false, }, }, } ITEM.pacDataNBC = { }
25.848101
269
0.52873
445904e69f1f77fff1669cc9a5cf4413c6b7aa50
1,532
py
Python
fython/instruction/lexiruc.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
41
2016-01-21T05:14:45.000Z
2021-11-24T20:37:21.000Z
fython/instruction/lexiruc.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
5
2016-01-21T05:36:37.000Z
2016-08-22T19:26:51.000Z
fython/instruction/lexiruc.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
3
2016-01-23T04:03:44.000Z
2016-08-21T15:58:38.000Z
from ..config import * from ..module import * from ..resolve import * from ..yacc import * def lexiruc(linecod): s = linecod ibol = s.modifier[-1] new_name = ibol.target funbol = ibol.rest[0] t = funbol.targetted_ast if not ( t.is_routpec or t.is_classpec ): s.throw(err.lexical_interpolation_is_only_on_routine_or_class) t = t.clone(s.module) interpolation = get_interpolation(funbol) m = FyModule(1) m.lexem = [s.module.lexem_raw[0]] + t.lexem + [s.module.lexem_raw[-1]] m.expanded_lexem = [] m.interpolant = s.module.interpolant m.stack = s.module.stack m.verbose = s.module.verbose m.source = s.module.source m.source_lines = s.module.source_lines m.debug = s.module.debug m.release = s.module.release m.url = s.url m.line_offset = s.lineno m.value = s.module.value m.package_interpolation.add_lexiruc_interpolation(interpolation) yacc(m) m.package_interpolation.pop_lexiruc_interpolation() interpolated = m.code[0] change_name(s, interpolated, new_name) interpolated.is_solid_element = 1 resolve(interpolated) def change_name(s, t, new_name): if t.is_rout: t.modifier[-2] = new_name elif t.is_class: n = t.modifier[-2] if n.is_namex: t.modifier[-2] = new_name else: n.value = new_name.value n.funx.value = new_name.value t.modifier[-2] = n def get_interpolation(t): if t.is_namex: r = {} else: r = {} for a in t.args: x = a.modifier[0].pre_interpolation_value y = [] for u in a.modifier[2:]: y.extend(u.lexem) r[x] = y return r
19.896104
71
0.695822
7ed698270726c9f6acf53d35581cebc4d08275a1
487
rb
Ruby
app/controllers/session.rb
torihuang/checkers
81ed7a3d5a6b511b9fbb0b21633b6c6a6f39c3b4
[ "MIT" ]
null
null
null
app/controllers/session.rb
torihuang/checkers
81ed7a3d5a6b511b9fbb0b21633b6c6a6f39c3b4
[ "MIT" ]
null
null
null
app/controllers/session.rb
torihuang/checkers
81ed7a3d5a6b511b9fbb0b21633b6c6a6f39c3b4
[ "MIT" ]
null
null
null
get '/' do erb :'session/index' end get '/session/new' do erb :'session/_new', layout: false end post '/session' do puts params[:user_credentials] user = User.authenticate(params[:user_credentials]) if user session[:user_id] = user.id content_type :json {user_id: user.id}.to_json else status 400 erb :_errors, layout: false, locals: {errors: ["Please enter a valid username and password"]} end end delete '/session' do session[:user_id] = nil end
19.48
97
0.681725
33cdeb4d19974ab2110e14330a9b9c0cde86c84c
1,782
h
C
lib/pyre/viz/colormaps/HL.h
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
lib/pyre/viz/colormaps/HL.h
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
lib/pyre/viz/colormaps/HL.h
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
// -*- c++ -*- // // michael a.g. aïvázis <[email protected]> // (c) 1998-2022 all rights reserved // code guard #if !defined(pyre_viz_colormaps_HL_h) #define pyre_viz_colormaps_HL_h // interpret three input sources as {hue, saturation, luminosity} and generate {rgb_t} color template <class hueSourceT, class luminositySourceT> class pyre::viz::colormaps::HL { // types public: // my template parameters using hue_source_type = hueSourceT; using luminosity_source_type = luminositySourceT; // and their reference types using hue_source_const_reference = const hue_source_type &; using luminosity_source_const_reference = const luminosity_source_type &; // i generate {r,g,b} triplets using rgb_type = viz::rgb_t; // metamethods public: inline HL( // the sources hue_source_const_reference hue, luminosity_source_const_reference luminosity, // the free parameters double threshold = 0.4); // interface: pretend to be an iterator public: // map the current data value to a color inline auto operator*() const -> rgb_type; // get the next value from the source; only support the prefix form, if possible inline auto operator++() -> void; // implementation details: data private: // the data source hue_source_type _hue; luminosity_source_type _luminosity; double _threshold; // default metamethods public: // destructor ~HL() = default; // constructors HL(const HL &) = default; HL(HL &&) = default; HL & operator=(const HL &) = default; HL & operator=(HL &&) = default; }; // get the inline definitions #define pyre_viz_colormaps_HL_icc #include "HL.icc" #undef pyre_viz_colormaps_HL_icc #endif // end of file
25.457143
92
0.690797
33ce8a2615af698781446f814ab587e074c227b3
441
h
C
jni/sdk/v2_0_1/ARDroneLib/VLIB/Platform/x86/video_config.h
hatpick/DroneMyoGlass
d1a7a0d9ebd71a62f54f4356a47a0eb6b98474ee
[ "Apache-2.0" ]
46
2015-02-11T13:56:53.000Z
2021-03-25T20:46:14.000Z
jni/sdk/v2_0_1/ARDroneLib/VLIB/Platform/x86/video_config.h
hatpick/DroneMyoGlass
d1a7a0d9ebd71a62f54f4356a47a0eb6b98474ee
[ "Apache-2.0" ]
2
2018-02-23T02:22:51.000Z
2020-07-17T03:57:09.000Z
jni/sdk/v2_0_1/ARDroneLib/VLIB/Platform/x86/video_config.h
hatpick/DroneMyoGlass
d1a7a0d9ebd71a62f54f4356a47a0eb6b98474ee
[ "Apache-2.0" ]
20
2015-03-03T16:03:07.000Z
2020-01-23T14:48:49.000Z
#ifndef _VIDEO_CONFIG_X86_H_ #define _VIDEO_CONFIG_X86_H_ /* Default configuration for x86 platform */ #if (TARGET_CPU_X86 == 1) || defined (_WIN32) #define DEFAULT_QUANTIZATION (6) #define MAX_NUM_MACRO_BLOCKS_PER_CALL (1) #define DEFAULT_INTERNAL_STREAM_SIZE (1024 * 8) #define VLIB_ALLOC_ALIGN (16) /* Default alignement for using SIMD instruction */ #endif // TARGET_CPU_X86 #endif // _VIDEO_CONFIG_X86_H_
23.210526
94
0.739229
1a688412a3db94e5aa0c2e4f45550052b3d82fe6
7,019
py
Python
windows/utils/winutils.py
sogeti-esec-lab/LKD
f388b5f8c08b7bba2a31c5a16ea64add6cc2dd1a
[ "BSD-3-Clause" ]
102
2015-10-21T10:58:06.000Z
2021-06-07T17:59:52.000Z
windows/utils/winutils.py
a1ext/LKD
f388b5f8c08b7bba2a31c5a16ea64add6cc2dd1a
[ "BSD-3-Clause" ]
1
2019-09-24T20:45:57.000Z
2019-09-24T20:45:57.000Z
windows/utils/winutils.py
w4kfu/LKD
f388b5f8c08b7bba2a31c5a16ea64add6cc2dd1a
[ "BSD-3-Clause" ]
16
2015-10-29T14:10:14.000Z
2019-10-27T18:58:52.000Z
import ctypes import msvcrt import os import sys import code import windows from .. import winproxy from ..generated_def import windef from ..generated_def.winstructs import * # Function resolution ! def get_func_addr(dll_name, func_name): # Load the DLL ctypes.WinDLL(dll_name) modules = windows.current_process.peb.modules if not dll_name.lower().endswith(".dll"): dll_name += ".dll" mod = [x for x in modules if x.name == dll_name][0] return mod.pe.exports[func_name] def get_remote_func_addr(target, dll_name, func_name): name_modules = [m for m in target.peb.modules if m.name == dll_name] if not len(name_modules): raise ValueError("Module <{0}> not loaded in target <{1}>".format(dll_name, target)) mod = name_modules[0] return mod.pe.exports[func_name] def is_wow_64(hProcess): try: fnIsWow64Process = get_func_addr("kernel32.dll", "IsWow64Process") except winproxy.Kernel32Error: return False IsWow64Process = ctypes.WINFUNCTYPE(BOOL, HANDLE, ctypes.POINTER(BOOL))(fnIsWow64Process) Wow64Process = BOOL() res = IsWow64Process(hProcess, ctypes.byref(Wow64Process)) if res: return bool(Wow64Process) raise ctypes.WinError() def create_file_from_handle(handle, mode="r"): """Return a Python :class:`file` arround a windows HANDLE""" fd = msvcrt.open_osfhandle(handle, os.O_TEXT) return os.fdopen(fd, mode, 0) def get_handle_from_file(f): """Get the windows HANDLE of a python :class:`file`""" return msvcrt.get_osfhandle(f.fileno()) def create_console(): """Create a new console displaying STDOUT Useful in injection of GUI process""" winproxy.AllocConsole() stdout_handle = winproxy.GetStdHandle(windef.STD_OUTPUT_HANDLE) console_stdout = create_file_from_handle(stdout_handle, "w") sys.stdout = console_stdout stdin_handle = winproxy.GetStdHandle(windef.STD_INPUT_HANDLE) console_stdin = create_file_from_handle(stdin_handle, "r+") sys.stdin = console_stdin stderr_handle = winproxy.GetStdHandle(windef.STD_ERROR_HANDLE) console_stderr = create_file_from_handle(stderr_handle, "w") sys.stderr = console_stderr def create_process(path, show_windows=False): proc_info = PROCESS_INFORMATION() lpStartupInfo = None if show_windows: StartupInfo = STARTUPINFOA() StartupInfo.cb = ctypes.sizeof(StartupInfo) StartupInfo.dwFlags = 0 lpStartupInfo = ctypes.byref(StartupInfo) windows.winproxy.CreateProcessA(path, lpProcessInformation=ctypes.byref(proc_info), lpStartupInfo=lpStartupInfo) proc = [p for p in windows.system.processes if p.pid == proc_info.dwProcessId][0] return proc def enable_privilege(lpszPrivilege, bEnablePrivilege): """Enable of disable a privilege: enable_privilege(SE_DEBUG_NAME, True)""" tp = TOKEN_PRIVILEGES() luid = LUID() hToken = HANDLE() winproxy.OpenProcessToken(winproxy.GetCurrentProcess(), TOKEN_ALL_ACCESS, byref(hToken)) winproxy.LookupPrivilegeValueA(None, lpszPrivilege, byref(luid)) tp.PrivilegeCount = 1 tp.Privileges[0].Luid = luid if bEnablePrivilege: tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED else: tp.Privileges[0].Attributes = 0 winproxy.AdjustTokenPrivileges(hToken, False, byref(tp), sizeof(TOKEN_PRIVILEGES)) winproxy.CloseHandle(hToken) if winproxy.GetLastError() == windef.ERROR_NOT_ALL_ASSIGNED: raise ValueError("Failed to get privilege {0}".format(lpszPrivilege)) return True def check_is_elevated(): """Return True if process is Admin""" hToken = HANDLE() elevation = TOKEN_ELEVATION() cbsize = DWORD() winproxy.OpenProcessToken(winproxy.GetCurrentProcess(), TOKEN_ALL_ACCESS, byref(hToken)) winproxy.GetTokenInformation(hToken, TokenElevation, byref(elevation), sizeof(elevation), byref(cbsize)) winproxy.CloseHandle(hToken) return elevation.TokenIsElevated def check_debug(): """Check that kernel is in debug mode beware of NOUMEX (https://msdn.microsoft.com/en-us/library/windows/hardware/ff556253(v=vs.85).aspx#_______noumex______)""" hkresult = HKEY() cbsize = DWORD(1024) bufferres = (c_char * cbsize.value)() winproxy.RegOpenKeyExA(HKEY_LOCAL_MACHINE, "System\\CurrentControlSet\\Control", 0, KEY_READ, byref(hkresult)) winproxy.RegGetValueA(hkresult, None, "SystemStartOptions", RRF_RT_REG_SZ, None, byref(bufferres), byref(cbsize)) winproxy.RegCloseKey(hkresult) control = bufferres[:] if "DEBUG" not in control: # print "[-] Enable debug boot!" # print "> bcdedit /debug on" return False if "DEBUG=NOUMEX" not in control: pass # print "[*] Warning noumex not set!" # print "> bcdedit /set noumex on" return True class FixedInteractiveConsole(code.InteractiveConsole): def raw_input(self, prompt=">>>"): sys.stdout.write(prompt) return raw_input("") def pop_shell(): """Pop a console with an InterativeConsole""" create_console() FixedInteractiveConsole(locals()).interact() def get_kernel_modules(): cbsize = DWORD() winproxy.NtQuerySystemInformation(SystemModuleInformation, None, 0, byref(cbsize)) raw_buffer = (cbsize.value * c_char)() buffer = SYSTEM_MODULE_INFORMATION.from_address(ctypes.addressof(raw_buffer)) winproxy.NtQuerySystemInformation(SystemModuleInformation, byref(raw_buffer), sizeof(raw_buffer), byref(cbsize)) modules = (SYSTEM_MODULE * buffer.ModulesCount).from_address(addressof(buffer) + SYSTEM_MODULE_INFORMATION.Modules.offset) return list(modules) class VirtualProtected(object): """A context manager usable like `VirtualProtect` that will restore the old protection at exit Example:: with utils.VirtualProtected(IATentry.addr, ctypes.sizeof(PVOID), windef.PAGE_EXECUTE_READWRITE): IATentry.value = 0x42424242 """ def __init__(self, addr, size, new_protect): if (addr % 0x1000): addr = addr - addr % 0x1000 self.addr = addr self.size = size self.new_protect = new_protect def __enter__(self): self.old_protect = DWORD() winproxy.VirtualProtect(self.addr, self.size, self.new_protect, ctypes.byref(self.old_protect)) return self def __exit__(self, exc_type, exc_value, traceback): winproxy.VirtualProtect(self.addr, self.size, self.old_protect.value, ctypes.byref(self.old_protect)) return False class DisableWow64FsRedirection(object): """A context manager that disable the Wow64 Fs Redirection""" def __enter__(self): self.OldValue = PVOID() winproxy.Wow64DisableWow64FsRedirection(ctypes.byref(self.OldValue)) return self def __exit__(self, exc_type, exc_value, traceback): winproxy.Wow64RevertWow64FsRedirection(self.OldValue) return False
35.095
129
0.707366
b26e3b7682286081bc6024de93c99d433e164ada
52
rb
Ruby
app/models/type.rb
renoirsousa/Snout
394287bd042640ea26c5a6237d0c1f803b33b930
[ "MIT" ]
null
null
null
app/models/type.rb
renoirsousa/Snout
394287bd042640ea26c5a6237d0c1f803b33b930
[ "MIT" ]
5
2018-04-30T14:57:49.000Z
2018-05-04T22:04:29.000Z
app/models/type.rb
renoirsousa/Snout
394287bd042640ea26c5a6237d0c1f803b33b930
[ "MIT" ]
null
null
null
class Type < ApplicationRecord has_one :pet end
13
30
0.75
ccb854cef4dea211204473ec1570b5b0eddc0c2b
911
ps1
PowerShell
omd/versions/1.2.8p15.cre/share/check_mk/agents/windows/plugins/windows_os_bonding.ps1
NCAR/spol-nagios
4f88bef953983050bc6568d3f1027615fbe223fb
[ "BSD-3-Clause" ]
null
null
null
omd/versions/1.2.8p15.cre/share/check_mk/agents/windows/plugins/windows_os_bonding.ps1
NCAR/spol-nagios
4f88bef953983050bc6568d3f1027615fbe223fb
[ "BSD-3-Clause" ]
null
null
null
omd/versions/1.2.8p15.cre/share/check_mk/agents/windows/plugins/windows_os_bonding.ps1
NCAR/spol-nagios
4f88bef953983050bc6568d3f1027615fbe223fb
[ "BSD-3-Clause" ]
null
null
null
# Windows Bonding interfaces # you need this agent plugin if you want to monitor bonding interfaces # on windows configured on operating system level try { $teams = Get-NetLbfoTeam } catch {} if ($teams) { Write-Host "<<<windows_os_bonding:sep(58)>>>" foreach ($team in $teams){ Write-Host Team Name: $team.Name Write-Host Bonding Mode: $team.LoadBalancingAlgorithm Write-Host Status: $team.Status $bondspeed = (Get-NetAdapter | where {$_.InterfaceDescription -match "Multiplex"}).LinkSpeed Write-Host Speed: $bondspeed `n foreach ($slave in $team.members){ Write-Host Slave Name: $slave $net = Get-Netadapter $slave Write-Host Slave Interface: $net.ifName Write-Host Slave Description: $net.interfaceDescription Write-Host Slave Status: $net.Status Write-Host Slave Speed: $net.LinkSpeed Write-Host Slave MAC address: $net.MacAddress `n } } }
33.740741
95
0.706915
35b021f454c020b2bb6cee40dc3b0ef16fedc948
67
asm
Assembly
Fire Alarm - Smoke Detector/assets/alarm_2.asm
sanils2002/ASSEMBLY-PROJECTS
6974af24bb70c5b710733f5e1cef015f8dc4d708
[ "MIT" ]
null
null
null
Fire Alarm - Smoke Detector/assets/alarm_2.asm
sanils2002/ASSEMBLY-PROJECTS
6974af24bb70c5b710733f5e1cef015f8dc4d708
[ "MIT" ]
null
null
null
Fire Alarm - Smoke Detector/assets/alarm_2.asm
sanils2002/ASSEMBLY-PROJECTS
6974af24bb70c5b710733f5e1cef015f8dc4d708
[ "MIT" ]
null
null
null
LXI SP,0000H MVI A SIM EI HLT <Sub-Routine> MVI A,CCH SIM EI RET
5.153846
13
0.701493
a39bd2e4f32c1a72e75924fd96eef699646f664a
4,352
java
Java
com.b2international.snomed.ql.ui/src/com/b2international/snomed/ql/ui/QLUiPlugin.java
b2ihealthcare/snomed-ql
1e49e49c9670f55248b0cc0e4d14f14449bed7e9
[ "Apache-2.0" ]
4
2021-04-19T14:10:01.000Z
2021-10-11T16:28:34.000Z
com.b2international.snomed.ql.ui/src/com/b2international/snomed/ql/ui/QLUiPlugin.java
b2ihealthcare/snomed-ql
1e49e49c9670f55248b0cc0e4d14f14449bed7e9
[ "Apache-2.0" ]
null
null
null
com.b2international.snomed.ql.ui/src/com/b2international/snomed/ql/ui/QLUiPlugin.java
b2ihealthcare/snomed-ql
1e49e49c9670f55248b0cc0e4d14f14449bed7e9
[ "Apache-2.0" ]
1
2021-04-13T22:11:57.000Z
2021-04-13T22:11:57.000Z
/* * Copyright 2021 B2i Healthcare Pte Ltd, http://b2i.sg * * 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 com.b2international.snomed.ql.ui; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.collect.Lists.newArrayList; import static com.google.common.collect.Sets.newHashSet; import java.util.Collection; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.Platform; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.swt.graphics.Image; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.eclipse.xtext.util.Modules2; import com.b2international.snomed.ql.ui.internal.QlActivator; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.Module; /** * @since 0.1.0 */ public class QLUiPlugin extends QlActivator { public static QLUiPlugin getDefault() { return (QLUiPlugin) getInstance(); } @Override protected Injector createInjector(String language) { try { com.google.inject.Module runtimeModule = getRuntimeModule(language); // additional core language bindings go here via extension point for (Module additionalRuntimeModule : getExtensions("com.b2international.snomed.ecl.ui.eclAdditionalModules", "class", Module.class)) { runtimeModule = Modules2.mixin(runtimeModule, additionalRuntimeModule); } com.google.inject.Module sharedStateModule = getSharedStateModule(); com.google.inject.Module uiModule = getUiModule(language); com.google.inject.Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule); return Guice.createInjector(mergedModule); } catch (Exception e) { throw new RuntimeException("Failed to create injector for " + language, e); } } private static final <T> Collection<T> getExtensions(final String extensionPoint, final String classAttributeName, final Class<T> type) { checkNotNull(extensionPoint, "extensionPoint"); checkNotNull(classAttributeName, "classAttributeName"); checkNotNull(type, "type"); final Collection<T> extensions = newArrayList(); final IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(extensionPoint); for (final IConfigurationElement element : elements) { try { if (hasAttributeOf(element, classAttributeName)) { final Object object = checkNotNull(element, "element").createExecutableExtension(classAttributeName); extensions.add(type.cast(object)); } } catch (final CoreException e) { throw new RuntimeException(String.format("Exception happened when creating element from %s bundle's extension: %s", element .getContributor().getName(), extensionPoint), e); } } return extensions; } /*Returns with true if the configuration element has the given attribute. Otherwise returns with false.*/ private static boolean hasAttributeOf(final IConfigurationElement element, final String attributeName) { return newHashSet(element.getAttributeNames()).contains(attributeName); } public final Image getImage(String relativePath) { Image image = getImageRegistry().get(relativePath); if (image == null) { final ImageDescriptor imageDescriptor = getImageDescriptor(relativePath); if (imageDescriptor != null) { image = imageDescriptor.createImage(); } } return image; } public final ImageDescriptor getImageDescriptor(String relativePath) { if (relativePath == null) return null; ImageDescriptor descriptor = getImageRegistry().getDescriptor(relativePath); if (descriptor == null) { descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(getBundle().getSymbolicName(), relativePath); getImageRegistry().put(relativePath, descriptor); } return descriptor; } }
38.513274
138
0.766774
3f06288bd92fb2faf6e100f5d0b7c48ff36c45e5
1,566
lua
Lua
exercises/practice/roman-numerals/roman-numerals_spec.lua
GriffinMaxwell/lua
637803384da1c0a7b7162ac6db436acf37baa27b
[ "MIT" ]
23
2017-10-26T19:33:20.000Z
2021-11-06T14:23:02.000Z
exercises/practice/roman-numerals/roman-numerals_spec.lua
GriffinMaxwell/lua
637803384da1c0a7b7162ac6db436acf37baa27b
[ "MIT" ]
59
2017-06-18T17:12:43.000Z
2022-03-19T10:50:13.000Z
exercises/practice/roman-numerals/roman-numerals_spec.lua
GriffinMaxwell/lua
637803384da1c0a7b7162ac6db436acf37baa27b
[ "MIT" ]
37
2017-06-21T13:40:10.000Z
2022-03-19T10:37:34.000Z
local to_roman = require('roman-numerals').to_roman describe('roman-numerals', function() it('converts 1', function() assert.are.equal('I', to_roman(1)) end) it('converts 2', function() assert.are.equal('II', to_roman(2)) end) it('converts 3', function() assert.are.equal('III', to_roman(3)) end) it('converts 4', function() assert.are.equal('IV', to_roman(4)) end) it('converts 5', function() assert.are.equal('V', to_roman(5)) end) it('converts 6', function() assert.are.equal('VI', to_roman(6)) end) it('converts 9', function() assert.are.equal('IX', to_roman(9)) end) it('converts 27', function() assert.are.equal('XXVII', to_roman(27)) end) it('converts 48', function() assert.are.equal('XLVIII', to_roman(48)) end) it('converts 59', function() assert.are.equal('LIX', to_roman(59)) end) it('converts 93', function() assert.are.equal('XCIII', to_roman(93)) end) it('converts 141', function() assert.are.equal('CXLI', to_roman(141)) end) it('converts 163', function() assert.are.equal('CLXIII', to_roman(163)) end) it('converts 402', function() assert.are.equal('CDII', to_roman(402)) end) it('converts 575', function() assert.are.equal('DLXXV', to_roman(575)) end) it('converts 911', function() assert.are.equal('CMXI', to_roman(911)) end) it('converts 1024', function() assert.are.equal('MXXIV', to_roman(1024)) end) it('converts 3000', function() assert.are.equal('MMM', to_roman(3000)) end) end)
20.605263
51
0.62963
f8b3c17f1c057a48ff43c40e11e40e84feec5ae6
443
c
C
04_2020-10-21/1-4-palindrome.c
sgorblex-unimi/algolab
9ea6cdf120788ad0d1111195ac9cf65cf6b424d6
[ "MIT" ]
1
2021-06-05T13:09:59.000Z
2021-06-05T13:09:59.000Z
04_2020-10-21/1-4-palindrome.c
aclerici-unimi/algolab
9ea6cdf120788ad0d1111195ac9cf65cf6b424d6
[ "MIT" ]
null
null
null
04_2020-10-21/1-4-palindrome.c
aclerici-unimi/algolab
9ea6cdf120788ad0d1111195ac9cf65cf6b424d6
[ "MIT" ]
null
null
null
#include <stdbool.h> #include <stdio.h> #include <string.h> bool isPalindrome(const char *str) { int len = strlen(str); const char *last = str + len - 1; while (last > str) if (*str++ != *last--) return false; return true; } int main(int argc, char *argv[]) { for (int i = 1; i < argc; i++) { printf("%s:\t", argv[i]); if (isPalindrome(argv[i])) printf("palindrome\n"); else printf("not palindrome\n"); } return 0; }
18.458333
36
0.593679
57f449bb9ca440a11c8dd490083a5169abca242d
672
php
PHP
framework/factory/app/BaseAppFactory.php
drthomas21/PHP-Webserver
7796dc33b1cbfd51a373b77f50e6fe5bd9956909
[ "MIT" ]
1
2017-04-21T14:59:48.000Z
2017-04-21T14:59:48.000Z
framework/factory/app/BaseAppFactory.php
drthomas21/PHP-Webserver
7796dc33b1cbfd51a373b77f50e6fe5bd9956909
[ "MIT" ]
null
null
null
framework/factory/app/BaseAppFactory.php
drthomas21/PHP-Webserver
7796dc33b1cbfd51a373b77f50e6fe5bd9956909
[ "MIT" ]
null
null
null
<?php namespace Framework\Factory\App; abstract class BaseAppFactory { const APPLICATION_NAME = "Prophpet"; const APPLICATION_VERSION = "0.3a"; private static $Instances = array(); public static function getInstance(string $appName, \stdClass $config = null): \Framework\App\BaseApp { if(!array_key_exists($appName, self::$Instances)) { self::$Instances[$appName] = null; if(is_subclass_of($appName, "\\Framework\\App\\BaseApp",true)) { self::$Instances[$appName] = new $appName($config); } } if(self::$Instances[$appName] == null) { throw new \Framework\Exception\InvalidClassException($appName); } return self::$Instances[$appName]; } }
30.545455
104
0.702381
142ff577e221f05d917630196d4fd237caeb63a7
16,874
ts
TypeScript
__tests__/tokenizer.spec.ts
flowwishthebest/tfp
2b650dc1e1086fcc47775d1a6d12f502004c7409
[ "MIT" ]
null
null
null
__tests__/tokenizer.spec.ts
flowwishthebest/tfp
2b650dc1e1086fcc47775d1a6d12f502004c7409
[ "MIT" ]
16
2020-01-02T19:29:36.000Z
2021-05-10T17:35:18.000Z
__tests__/tokenizer.spec.ts
flowwishthebest/tfp
2b650dc1e1086fcc47775d1a6d12f502004c7409
[ "MIT" ]
null
null
null
import { Tokenizer } from '../src/tokenizer'; import { ETokenType } from '../src/types'; import { PlusToken, MinusToken, MulToken, FloatDivToken, EOFToken, LParenToken, RParenToken, IdToken, SemicolonToken, LBracketToken, AssignToken, RBracketToken, IntegerConstToken, ColonToken, IntegerTypeToken, } from '../src/tokens'; import { ProcedureToken } from '../src/tokens/procedure.token'; import { IfToken } from '../src/tokens/if.token'; import { ElseToken } from '../src/tokens/else.token'; import { WhileToken } from '../src/tokens/while.token'; import { FuncToken } from '../src/tokens/func.token'; describe('Tokenizer tests', () => { test('Recognize simplest expression', () => { const tokenizer = new Tokenizer('1+3'); let token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(1)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(1); token = tokenizer.getNextToken(); expect(token).toEqual(new PlusToken()); expect(token.getType()).toBe(ETokenType.PLUS); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(3)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(3); }); test('Can skip whitespaces', () => { const tokenizer = new Tokenizer('1 + 3'); let token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(1)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(1); token = tokenizer.getNextToken(); expect(token).toEqual(new PlusToken()); expect(token.getType()).toBe(ETokenType.PLUS); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(3)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(3); }); test('Can handle multidigit numbers', () => { const tokenizer = new Tokenizer('123 + 324'); let token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new PlusToken()); expect(token.getType()).toBe(ETokenType.PLUS); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(324)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(324); }); test('Can handle minus', () => { const tokenizer = new Tokenizer(' 123 - 324 '); let token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new MinusToken()); expect(token.getType()).toBe(ETokenType.MINUS); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(324)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(324); }); test('Can handle mul', () => { const tokenizer = new Tokenizer(' 123 * 324 '); let token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new MulToken()); expect(token.getType()).toBe(ETokenType.MUL); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(324)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(324); }); test('Can handle div', () => { const tokenizer = new Tokenizer(' 123 / 324 '); let token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new FloatDivToken()); expect(token.getType()).toBe(ETokenType.FLOAT_DIV); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(324)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(324); }); test('Unknown char throws exception', () => { const tokenizer = new Tokenizer(' 123 % 324 '); const token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); // TODO: Parse the error in detail expect(() => tokenizer.getNextToken()).toThrowError(Error); }); test('Expect that last token is EOF', () => { const tokenizer = new Tokenizer(' 123 + 324 '); let token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new PlusToken()); expect(token.getType()).toBe(ETokenType.PLUS); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(324)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(324); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('Can handle multiple factors', () => { const tokenizer = new Tokenizer(' 123 - 324 * 435 '); let token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new MinusToken()); expect(token.getType()).toBe(ETokenType.MINUS); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(324)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(324); token = tokenizer.getNextToken(); expect(token).toEqual(new MulToken()); expect(token.getType()).toBe(ETokenType.MUL); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(435)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(435); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('Can handle multiple factors', () => { const tokenizer = new Tokenizer(' ( 123 - 324 ) * 435 '); let token = tokenizer.getNextToken(); expect(token).toEqual(new LParenToken()); expect(token.getType()).toBe(ETokenType.LPAREN); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new MinusToken()); expect(token.getType()).toBe(ETokenType.MINUS); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(324)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(324); token = tokenizer.getNextToken(); expect(token).toEqual(new RParenToken()); expect(token.getType()).toBe(ETokenType.RPAREN); token = tokenizer.getNextToken(); expect(token).toEqual(new MulToken()); expect(token.getType()).toBe(ETokenType.MUL); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(435)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(435); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('Can recognize brackets', () => { const tokenizer = new Tokenizer('{}'); let token = tokenizer.getNextToken(); expect(token).toEqual(new LBracketToken()); expect(token.getType()).toBe(ETokenType.LBRACKET); token = tokenizer.getNextToken(); expect(token).toEqual(new RBracketToken()); expect(token.getType()).toBe(ETokenType.RBRACKET); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('Can recognize assign', () => { const tokenizer = new Tokenizer('{ := }'); let token = tokenizer.getNextToken(); expect(token).toEqual(new LBracketToken()); expect(token.getType()).toBe(ETokenType.LBRACKET); token = tokenizer.getNextToken(); expect(token).toEqual(new AssignToken); expect(token.getType()).toBe(ETokenType.ASSIGN); token = tokenizer.getNextToken(); expect(token).toEqual(new RBracketToken()); expect(token.getType()).toBe(ETokenType.RBRACKET); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('Can recognize hard expr', () => { const tokenizer = new Tokenizer('{ age := 18; count :=42 ; }'); let token = tokenizer.getNextToken(); expect(token).toEqual(new LBracketToken()); expect(token.getType()).toBe(ETokenType.LBRACKET); token = tokenizer.getNextToken(); expect(token).toEqual(new IdToken('age', 1, 6)); expect(token.getType()).toBe(ETokenType.ID); expect(token.getValue()).toBe('age'); token = tokenizer.getNextToken(); expect(token).toEqual(new AssignToken); expect(token.getType()).toBe(ETokenType.ASSIGN); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(18)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(18); token = tokenizer.getNextToken(); expect(token).toEqual(new SemicolonToken()); expect(token.getType()).toBe(ETokenType.SEMICOLON); token = tokenizer.getNextToken(); expect(token).toEqual(new IdToken('count', 1, 19)); expect(token.getType()).toBe(ETokenType.ID); expect(token.getValue()).toBe('count'); token = tokenizer.getNextToken(); expect(token).toEqual(new AssignToken); expect(token.getType()).toBe(ETokenType.ASSIGN); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(42)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(42); token = tokenizer.getNextToken(); expect(token).toEqual(new SemicolonToken()); expect(token.getType()).toBe(ETokenType.SEMICOLON); token = tokenizer.getNextToken(); expect(token).toEqual(new RBracketToken()); expect(token.getType()).toBe(ETokenType.RBRACKET) token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('Will skip comments "// comment"', () => { const tokenizer = new Tokenizer( `{// My single line comment; a := 123;}` ); let token = tokenizer.getNextToken(); expect(token).toEqual(new LBracketToken()); expect(token.getType()).toBe(ETokenType.LBRACKET); token = tokenizer.getNextToken(); expect(token.getType()).toBe('ID'); expect(token.getValue()).toBe('a'); token = tokenizer.getNextToken(); expect(token).toEqual(new AssignToken); expect(token.getType()).toBe(ETokenType.ASSIGN); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new SemicolonToken()); expect(token.getType()).toBe(ETokenType.SEMICOLON); token = tokenizer.getNextToken(); expect(token).toEqual(new RBracketToken()); expect(token.getType()).toBe(ETokenType.RBRACKET); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('Can recognize colon and type tokens', () => { const tokenizer = new Tokenizer(`{ a: integer := 123; }`); let token = tokenizer.getNextToken(); expect(token).toEqual(new LBracketToken()); expect(token.getType()).toBe(ETokenType.LBRACKET); token = tokenizer.getNextToken(); expect(token.getType()).toBe(ETokenType.ID); expect(token.getValue()).toBe('a'); token = tokenizer.getNextToken(); expect(token).toEqual(new ColonToken()); expect(token.getType()).toBe(ETokenType.COLON); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerTypeToken()); expect(token.getType()).toBe(ETokenType.INTEGER); token = tokenizer.getNextToken(); expect(token).toEqual(new AssignToken); expect(token.getType()).toBe(ETokenType.ASSIGN); token = tokenizer.getNextToken(); expect(token).toEqual(new IntegerConstToken(123)); expect(token.getType()).toBe(ETokenType.INTEGER_CONST); expect(token.getValue()).toBe(123); token = tokenizer.getNextToken(); expect(token).toEqual(new SemicolonToken()); expect(token.getType()).toBe(ETokenType.SEMICOLON); token = tokenizer.getNextToken(); expect(token).toEqual(new RBracketToken()); expect(token.getType()).toBe(ETokenType.RBRACKET); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('can recognize procedure token', () => { const tokenizer = new Tokenizer(`procedure p1;`); let token = tokenizer.getNextToken(); expect(token).toEqual(new ProcedureToken()); expect(token.getType()).toBe(ETokenType.PROCEDURE); token = tokenizer.getNextToken(); expect(token.getType()).toBe(ETokenType.ID); expect(token.getValue()).toBe('p1'); token = tokenizer.getNextToken(); expect(token).toEqual(new SemicolonToken()); expect(token.getType()).toBe(ETokenType.SEMICOLON); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('can recognize if else tokens', () => { const tokenizer = new Tokenizer( `if else`, ); let token = tokenizer.getNextToken(); expect(token).toEqual(new IfToken()); expect(token.getType()).toBe(ETokenType.IF); token = tokenizer.getNextToken(); expect(token).toEqual(new ElseToken()); expect(token.getType()).toBe(ETokenType.ELSE); }); test('can recognize while token', () => { const tokenizer = new Tokenizer( `while`, ); let token = tokenizer.getNextToken(); expect(token).toEqual(new WhileToken()); expect(token.getType()).toBe(ETokenType.WHILE); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); test('can recognize func token', () => { const tokenizer = new Tokenizer( `func`, ); let token = tokenizer.getNextToken(); expect(token).toEqual(new FuncToken()); expect(token.getType()).toBe(ETokenType.FUNC); token = tokenizer.getNextToken(); expect(token).toEqual(new EOFToken()); expect(token.getType()).toBe(ETokenType.EOF); }); });
36.288172
77
0.620837
d6e0acabcf751b3c4acd96a934f8e1b4b0669897
5,403
nse
Lua
source_code/host_agents/windows/binaries_for_windows_host_agent/nmap_utils/scripts/http-useragent-tester.nse
Doctor-Venom/Cyber-Oracle
0cc3475416ea552704f4b1086d850fa90117ccc6
[ "MIT" ]
16
2020-09-20T22:32:54.000Z
2021-04-02T17:14:25.000Z
source_code/host_agents/windows/binaries_for_windows_host_agent/nmap_utils/scripts/http-useragent-tester.nse
Doctor-Venom/Cyber-Oracle
0cc3475416ea552704f4b1086d850fa90117ccc6
[ "MIT" ]
3
2020-09-30T11:41:49.000Z
2021-12-19T23:27:19.000Z
source_code/host_agents/windows/binaries_for_windows_host_agent/nmap_utils/scripts/http-useragent-tester.nse
Doctor-Venom/Cyber-Oracle
0cc3475416ea552704f4b1086d850fa90117ccc6
[ "MIT" ]
2
2018-10-12T18:34:38.000Z
2019-03-28T03:36:12.000Z
description = [[ Checks if various crawling utilities are allowed by the host. ]] --- -- @usage nmap -p80 --script http-useragent-tester.nse <host> -- -- This script sets various User-Agent headers that are used by different -- utilities and crawling libraries (for example CURL or wget). If the request is -- redirected to a page different than a (valid) browser request would be, that -- means that this utility is banned. -- -- @args http-useragent-tester.useragents A table with more User-Agent headers. -- Default: nil -- -- @output -- PORT STATE SERVICE REASON -- 80/tcp open http syn-ack -- | http-useragent-tester: -- | Status for browser useragent: 200 -- | Redirected To: https://www.example.com/ -- | Allowed User Agents: -- | Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html) -- | libwww -- | lwp-trivial -- | libcurl-agent/1.0 -- | PHP/ -- | GT::WWW -- | Snoopy -- | MFC_Tear_Sample -- | HTTP::Lite -- | PHPCrawl -- | URI::Fetch -- | Zend_Http_Client -- | http client -- | PECL::HTTP -- | WWW-Mechanize/1.34 -- | Change in Status Code: -- | Python-urllib/2.5: 403 -- |_ Wget/1.13.4 (linux-gnu): 403 -- -- @xmloutput -- <elem key="Status for browser useragent">200</elem> -- <elem key="Redirected To">https://www.example.com/</elem> -- <table key="Allowed User Agents"> -- <elem>Mozilla/5.0 (compatible; Nmap Scripting Engine; -- https://nmap.org/book/nse.html)</elem> -- <elem>libwww</elem> -- <elem>lwp-trivial</elem> -- <elem>libcurl-agent/1.0</elem> -- <elem>PHP/</elem> -- <elem>GT::WWW</elem> -- <elem>Snoopy</elem> -- <elem>MFC_Tear_Sample</elem> -- <elem>HTTP::Lite</elem> -- <elem>PHPCrawl</elem> -- <elem>URI::Fetch</elem> -- <elem>Zend_Http_Client</elem> -- <elem>http client</elem> -- <elem>PECL::HTTP</elem> -- <elem>WWW-Mechanize/1.34</elem> -- </table> -- <table key="Change in Status Code"> -- <elem key="Python-urllib/2.5">403</elem> -- <elem key="Wget/1.13.4 (linux-gnu)">403</elem> -- </table> --- categories = {"discovery", "safe"} author = "George Chatzisofroniou" license = "Same as Nmap--See https://nmap.org/book/man-legal.html" local http = require "http" local target = require "target" local httpspider = require "httpspider" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" local url = require "url" getLastLoc = function(host, port, useragent) local options options = {header={}, no_cache=true, bypass_cache=true, redirect_ok=function(host,port) local c = 3 return function(url) if ( c==0 ) then return false end c = c - 1 return true end end } options['header']['User-Agent'] = useragent stdnse.debug2("Making a request with User-Agent: " .. useragent) local response = http.get(host, port, '/', options) if response.location then return response.location[#response.location],response.status or false, response.status end return false, response.status end portrule = shortport.port_or_service( {80, 443}, {"http", "https"}, "tcp", "open") action = function(host, port) local moreagents = stdnse.get_script_args("http-useragent-tester.useragents") or nil local newtargets = stdnse.get_script_args("newtargets") or nil local output = stdnse.output_table() -- We don't crawl any site. We initialize a crawler to use its iswithinhost method. local crawler = httpspider.Crawler:new(host, port, '/', { scriptname = SCRIPT_NAME } ) local HTTPlibs = { http.USER_AGENT, "libwww", "lwp-trivial", "libcurl-agent/1.0", "PHP/", "Python-urllib/2.5", "GT::WWW", "Snoopy", "MFC_Tear_Sample", "HTTP::Lite", "PHPCrawl", "URI::Fetch", "Zend_Http_Client", "http client", "PECL::HTTP", "Wget/1.13.4 (linux-gnu)", "WWW-Mechanize/1.34" } if moreagents then for _, l in ipairs(moreagents) do table.insert(HTTPlibs, l) end end -- We perform a normal browser request and get the returned location local loc, status = getLastLoc(host, port, "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17") output['Status for browser useragent'] = status if loc then output['Redirected To'] = loc end local allowed, forb, status_changed = {}, {}, {} for _, l in ipairs(HTTPlibs) do local libloc, libstatus = getLastLoc(host, port, l) -- If the library's request returned a different location, that means the request was redirected somewhere else, hence is forbidden. if libloc and loc ~= libloc then forb[l] = {} local libhost = url.parse(libloc) if not crawler:iswithinhost(libhost.host) then forb[l]['Different Host'] = tostring(libloc) if newtargets then target.add(libhost.host) end else forb[l]['Same Host'] = tostring(libloc) end elseif status ~= libstatus then status_changed[l] = libstatus else table.insert(allowed, l) end end if next(allowed) ~= nil then output['Allowed User Agents'] = allowed end if next(forb) ~= nil then output['Forbidden/Redirected User Agents'] = forb end if next(status_changed) ~= nil then output['Change in Status Code'] = status_changed end return output end
27.850515
150
0.647603
af92aea286d2904c7eed09915f510854a72ead55
345
py
Python
ACM-Solution/fibonaccitool.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
2
2016-04-26T15:40:40.000Z
2018-07-18T10:16:42.000Z
ACM-Solution/fibonaccitool.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2016-04-26T15:44:15.000Z
2016-04-29T14:44:40.000Z
ACM-Solution/fibonaccitool.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2018-10-02T16:12:19.000Z
2018-10-02T16:12:19.000Z
import sys def fib(n): i=h=1 k=j=0 while n>0: if n%2==1: t=j*h j=i*h+j*k+t i=i*k+t t=h*h h=2*k*h+t k=k*k+t n=n//2 return j def main(): i=0 while i<50: print(fib(i)) i+=1 if __name__=="__main__":main()
13.8
31
0.344928
050b0252294d85e3c88e73e2dfb160263ca12672
45,858
css
CSS
web/app/themes/illdy/layout/css/main.css
phelippe/aikido_2017
45107a8c7015e74b27a9dbdd7976a0e94cc13b9f
[ "MIT" ]
null
null
null
web/app/themes/illdy/layout/css/main.css
phelippe/aikido_2017
45107a8c7015e74b27a9dbdd7976a0e94cc13b9f
[ "MIT" ]
null
null
null
web/app/themes/illdy/layout/css/main.css
phelippe/aikido_2017
45107a8c7015e74b27a9dbdd7976a0e94cc13b9f
[ "MIT" ]
null
null
null
/** * 01. General * 02. Header * 03. About * 04. Projects * 05. Testimonials * 06. Services * 07. Latest News * 08. Counter * 09. Team * 10. Contact Us * 11. Footer * 12. Blog * 13. Sidebar * 14. Markup Format * 15. Related Posts * 16. Comments * 17. Responsive * 18. Gallery */ /* 01. General */ html, body { width: 100%; height: 100%; display: block; } body { line-height: 1.5; background-color: #fff; font-family: "Source Sans Pro", sans-serif; font-weight: 400; font-size: 15px; color: #888; } textarea, input { -webkit-appearance: none; border-radius: 0; } .front-page-section { width: 100%; } .front-page-section .section-header { width: 100%; } .front-page-section .section-header h3 { margin: 0 0 30px 0; line-height: 0.6; font-weight: 900; font-size: 30px; color: #000; text-transform: uppercase; } .front-page-section .section-header p { margin-bottom: 0; line-height: 1.6; font-size: 15px; color: #888; } .front-page-section .section-content { width: 100%; } .no-padding { padding: 0; } .wp-caption-text, .sticky, .gallery-caption, .bypostauthor { margin: 0; } .open-responsive-menu { display: none; } .responsive-menu { display: none; } .customizer-display-none { display: none; } .customizer-display-block { display: block; } /* 02. Header */ #header { width: 100%; background-position: center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } #header .top-header { width: 100%; padding-top: 40px; } #header .top-header .header-logo { display: block; font-size: 38px; color: #fff; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; float: left; } #header .top-header .header-logo:hover { color: #f1d204; text-decoration: none; } #header .top-header .header-navigation { float: right; } #header .top-header .header-navigation ul { width: 100%; margin: 35px 0 0 0; padding: 0; list-style-type: none; } #header .top-header .header-navigation ul li { margin-left: 40px; line-height: 1.375; font-weight: 700; font-size: 16px; color: #fff; text-transform: uppercase; position: relative; float: left; } #header .top-header .header-navigation ul li:first-child { margin-left: 0; } #header .top-header .header-navigation ul li.menu-item-has-children a { padding-right: 16px; position: relative; } #header .top-header .header-navigation ul li.menu-item-has-children a:after { content: "\f0d7"; font-family: "FontAwesome"; font-size: 16px; position: absolute; top: 0; right: 0; } #header .top-header .header-navigation ul li.menu-item-has-children .sub-menu { width: 250px; margin: 0; padding: 10px 0 0 0; position: absolute; left: 0; display: none; z-index: 10; } #header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li { width: 100%; margin: 0; padding: 0; } #header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li:first-child a { padding-top: 10px; } #header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li:last-child a { padding-bottom: 10px; } #header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li a { width: 100%; background-color: #fff; margin: 0; padding: 5px 10px; line-height: 1.6; font-weight: 600; font-size: 16px; color: #333; text-transform: none; display: block; } #header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li a:hover { color: #f1d204; } #header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li a:after { display: none; } #header .top-header .header-navigation ul li a { color: #fff; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #header .top-header .header-navigation ul li a:hover { color: #ffde00; text-decoration: none; } #header .bottom-header { width: 100%; padding-top: 240px; padding-bottom: 280px; text-align: center; } #header .bottom-header.blog { padding: 130px 0; } #header .bottom-header.blog p { margin-bottom: 0; } #header .bottom-header h2 { margin: 0 0 50px 0; line-height: 0.74; font-weight: 900; font-size: 81px; color: #fff; text-transform: uppercase; } #header .bottom-header span.span-dot { color: #ffde00; } #header .bottom-header p { line-height: 1.6; margin-bottom: 60px; font-size: 15px; color: #fff; } #header .bottom-header .header-button-one { width: auto; height: 63px; line-height: 57px; background: rgba(255, 255, 255, 0.2); margin: 0 15px; padding: 0 70px; display: inline-block; border: 3px solid #fff; border-radius: 3px; font-weight: 700; font-size: 18px; color: #fff; text-transform: uppercase; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #header .bottom-header .header-button-one:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; } #header .bottom-header .header-button-two { width: auto; height: 63px; line-height: 63px; background: #f1d204; margin: 0 15px; padding: 0 70px; display: inline-block; border-radius: 3px; font-weight: 700; font-size: 18px; color: #fff; text-transform: uppercase; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #header .bottom-header .header-button-two:hover { background: rgba(241, 210, 4, 0.9); text-decoration: none; } /* 03. About */ #about, #static-page-content { width: 100%; background: #fff; padding: 65px 0 85px 0; text-align: center; } #about .section-header { margin-bottom: 110px; } #about .skill { width: 100%; } #about .skill .skill-top { width: 100%; margin-bottom: 25px; } #about .skill .skill-top .skill-progress-bar { width: 100%; height: 2px; background-color: #ebebeb; position: relative; } #about .skill .skill-top .skill-progress-bar .ui-progressbar-value { height: 4px; position: absolute; top: -1px; left: 0; } #about .skill .skill-top .skill-progress-bar .ui-progressbar-value .ui-progressbar-value-circle { content: ""; width: 9px; height: 9px; position: absolute; top: -2.5px; right: 0; border-radius: 50%; } #about .skill .skill-top .skill-progress-bar .ui-progressbar-value .ui-progressbar-value-top { content: ""; width: 64px; height: 29px; line-height: 29px; background-color: #000; position: absolute; top: -45px; right: -28px; border-radius: 3px; font-weight: 700; font-size: 17px; color: #fff; } #about .skill .skill-top .skill-progress-bar .ui-progressbar-value .ui-progressbar-value-top .ui-progressbar-value-triangle { width: 0; height: 0; margin-right: auto; margin-left: auto; border-style: solid; border-width: 5px 4.5px 0 4.5px; line-height: 0px; position: absolute; right: 0; bottom: -5px; left: 0; } #about .skill .skill-bottom { width: 100%; text-align: left; } #about .skill .skill-bottom .fa { font-size: 22px; } #about .skill .skill-bottom span { margin-left: 8px; line-height: 1.294; font-size: 17px; } #about .widget_illdy_skill { margin-top: 106px; } #about .widget_illdy_skill:nth-child(1), #about .widget_illdy_skill:nth-child(2), #about .widget_illdy_skill:nth-child(3) { margin-top: 0; } /* 04. Projects */ #projects { width: 100%; background-color: #fbfbfb; padding: 65px 0 0 0; text-align: center; } #projects .container-fluid { max-width: 1920px; } #projects .section-header { margin-bottom: 65px; } #projects .project { width: 100%; height: 200px; display: block; position: relative; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } #projects .project:hover .project-overlay { opacity: 0.3; } #projects .project .project-overlay { width: 100%; height: 100%; background-color: #fff; opacity: 0; position: absolute; top: 0; left: 0; z-index: 1; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } /* 05. Testimonials */ #testimonials { width: 100%; padding: 50px 0 30px 0; text-align: center; position: relative; background: #6a305e; background: -moz-linear-gradient(top, #6a305e 0%, #451c56 100%); background: -webkit-linear-gradient(top, #6a305e 0%, #451c56 100%); background: linear-gradient(to bottom, #6a305e 0%, #451c56 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6a305e', endColorstr='#451c56', GradientType=0); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-attachment: fixed; background-position: center center; } #testimonials .section-header { width: 100%; margin-bottom: 40px; } #testimonials .section-header h3 { color: #fff; } #testimonials .section-content { width: 100%; } #testimonials .section-content .testimonials-carousel { width: 100%; } #testimonials .section-content .testimonials-carousel .carousel-testimonial { text-align: center; } #testimonials .section-content .testimonials-carousel .carousel-testimonial .testimonial-image { width: 100%; margin-bottom: 25px; } #testimonials .section-content .testimonials-carousel .carousel-testimonial .testimonial-image img { width: 127px; height: 127px; display: inline; border-radius: 50%; } #testimonials .section-content .testimonials-carousel .carousel-testimonial .testimonial-content { width: 100%; background-color: #682e66; margin-bottom: 55px; padding: 25px 50px; position: relative; } #testimonials .section-content .testimonials-carousel .carousel-testimonial .testimonial-content blockquote { line-height: 1.6; margin: 0; padding: 0; border-left: none; color: #fff; } #testimonials .section-content .testimonials-carousel .carousel-testimonial .testimonial-content:after { content: ""; width: 0; height: 0; margin-right: auto; margin-left: auto; border-style: solid; border-width: 19px 18px 0 18px; border-color: #682e66 transparent transparent transparent; position: absolute; right: 0; bottom: -19px; left: 0; } #testimonials .section-content .testimonials-carousel .carousel-testimonial .testimonial-meta { width: 100%; line-height: normal; font-weight: 900; font-size: 20px; color: #fff; text-transform: uppercase; } #testimonials .section-content .testimonials-carousel .owl-controls { width: 100%; margin-top: 20px; } #testimonials .section-content .testimonials-carousel .owl-controls .owl-dots { width: 100%; } #testimonials .section-content .testimonials-carousel .owl-controls .owl-dots .owl-dot { width: 10px; height: 10px; background-color: #fff; margin: 0 7.5px; display: inline-block; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; border-radius: 50%; } #testimonials .section-content .testimonials-carousel .owl-controls .owl-dots .owl-dot:hover, #testimonials .section-content .testimonials-carousel .owl-controls .owl-dots .owl-dot.active { background: transparent; border: 1px solid #fff; } /* 06. Services */ #services { width: 100%; background: #fff; padding: 65px 0 75px 0; text-align: center; } #services .section-header { width: 100%; margin-bottom: 65px; } #services .section-content { width: 100%; } #services .section-content .service { width: 100%; } #services .section-content .service .service-icon { width: 100%; margin-bottom: 10px; font-size: 34px; } #services .section-content .service .service-icon .fa { display: block; } #services .section-content .service .service-title { width: 100%; margin-bottom: 30px; line-height: 1.611; font-weight: 700; font-size: 18px; text-transform: uppercase; } #services .section-content .service .service-entry { width: 100%; line-height: 1.6; color: #888; } #services .widget_illdy_service { margin-top: 40px; } #services .widget_illdy_service:nth-child(1), #services .widget_illdy_service:nth-child(2), #services .widget_illdy_service:nth-child(3) { margin-top: 0; } /* 07. Latest News */ #latest-news { width: 100%; background-color: #f6f6f6; padding: 75px 0 85px 0; text-align: center; } #latest-news .section-header { margin-bottom: 55px; } #latest-news .section-content { width: 100%; } #latest-news .section-content .post { width: 100%; background-color: #fff; padding-bottom: 40px; text-align: left; } #latest-news .illdy-blog-post { margin-top: 30px; } #latest-news .section-content .post .post-image { width: 100%; height: 213px; background-position: center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; margin-bottom: 58px; } #latest-news .section-content .post .post-title { width: 100%; line-height: 1.388; padding: 0 30px; font-weight: 700; font-size: 18px; color: #333; text-transform: uppercase; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; display: block; } #latest-news .section-content .post .post-title:hover { color: #f1d204; text-decoration: none; } #latest-news .section-content .post .post-entry { margin: 30px 0 55px 0; padding: 0 30px; line-height: 1.6; color: #888; } #latest-news .section-content .post .post-button { line-height: 1.388; padding: 0 30px; font-size: 18px; color: #f1d204; text-transform: uppercase; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #latest-news .section-content .post .post-button:hover { text-decoration: none; color: #333; } #latest-news .section-content .post .post-button .fa { margin-right: 13px; } #latest-news .latest-news-button { width: auto; height: 56px; line-height: 56px; background: #f1d204; margin-bottom: 50px; padding: 0 70px; display: inline-block; font-weight: 900; font-size: 18px; color: #f7f7f7; text-transform: uppercase; border-radius: 3px; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #latest-news .latest-news-button:hover { text-decoration: none; opacity: 0.9; } #latest-news .latest-news-button .fa { margin-right: 12px; } /* 08. Counter */ #counter { width: 100%; padding: 55px 0; text-align: center; position: relative; background-attachment: fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-position: center; } #counter .col-sm-4 { border-right: 1px solid #fff; } #counter .col-sm-4:last-child { border-right: none; } #counter .counter-overlay { width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); position: absolute; top: 0; left: 0; } #counter .counter-number { width: 100%; display: block; margin-bottom: 10px; line-height: 0.9; font-weight: 900; font-size: 50px; color: #fff; } #counter .counter-description { width: 100%; line-height: 2.25; display: block; font-size: 20px; color: #fff; text-transform: uppercase; } #counter .widget_illdy_counter { margin-top: 40px; } #counter .widget_illdy_counter:nth-child(1), #counter .widget_illdy_counter:nth-child(2), #counter .widget_illdy_counter:nth-child(3) { margin-top: 0; } /* 09. Team */ #team { width: 100%; background: #fff; padding: 80px 0 100px 0; text-align: center; } #team .section-header { width: 100%; margin-bottom: 85px; } #team .section-content { width: 100%; } #team .section-content .person { width: 100%; } #team .section-content .person .person-image { width: 125px; margin-right: 25px; float: left; } #team .section-content .person .person-image img { max-width: 100%; height: auto; border-radius: 50%; } #team .section-content .person .person-content { text-align: left; } #team .section-content .person .person-content h4 { width: 100%; margin: 12px 0 5px 0; line-height: 1.25; font-size: 20px; color: #333; text-transform: uppercase; } #team .section-content .person .person-content h5 { width: 100%; margin: 0 0 10px 0; font-weight: 700; font-size: 15px; text-transform: uppercase; } #team .section-content .person .person-content p { width: 100%; margin: 0 0 10px 0; line-height: 1.5; font-weight: 300; font-size: 15px; font-style: italic; color: #888; } #team .section-content .person .person-content .person-content-social { width: 100%; margin: 0; padding: 0; list-style-type: none; } #team .section-content .person .person-content .person-content-social li { margin-left: 10px; float: left; } #team .section-content .person .person-content .person-content-social li:first-child { margin-left: 0; } #team .section-content .person .person-content .person-content-social li a { width: 22px; height: 22px; line-height: 22px; display: inline-block; border-radius: 50%; font-size: 12px; color: #fff; text-align: center; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #team .section-content .person .person-content .person-content-social li a:hover { opacity: 0.9; } #team .widget_illdy_person { margin-top: 40px; } #team .widget_illdy_person:nth-child(1), #team .widget_illdy_person:nth-child(2), #team .widget_illdy_person:nth-child(3) { margin-top: 0; } /* 10. Contact Us */ #contact-us label { width: 100% !important; } #contact-us { width: 100%; background-color: #dda06f; padding: 40px 0 50px 0; text-align: center; } #contact-us .section-header { width: 100%; margin-bottom: 80px; } #contact-us .section-header h3, #contact-us .section-header p { color: #fff; } #contact-us .section-content { width: 100%; } #contact-us .section-content .contact-us-box { width: 100%; display: inline-block; text-align: left; } #contact-us .section-content .contact-us-box .box-left { width: auto; margin: 0; padding: 0 20px 0 0; border-right: 1px solid #fff; line-height: normal; display: table-cell; font-weight: 700; font-size: 18px; color: #fff; text-transform: uppercase; } #contact-us .section-content .contact-us-box .box-right { width: auto; margin: 0; padding: 0 0 0 20px; display: table-cell; } #contact-us .section-content .contact-us-box .box-right span { width: 100%; display: block; line-height: 1.6; font-size: 15px; color: #fee3bf; } #contact-us .section-content .contact-us-box .box-right span a { color: #fee3bf; text-decoration: none; } #contact-us .section-content .contact-us-box .box-right span a:hover { text-decoration: underline; } #contact-us .section-content .contact-us-social { width: 100%; text-align: right; } #contact-us .section-content .contact-us-social a { margin-left: 15px; font-size: 17px; color: #fff; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #contact-us .section-content .contact-us-social a:hover { color: #333; } #contact-us .section-content .contact-us-social a:first-child { margin-left: 0; } #contact-us .section-content .wpcf7-form { width: 100%; text-align: left; } #contact-us .section-content .wpcf7-form p { color: #fff; } #contact-us .section-content .wpcf7-form p span { width: 100%; display: block; } #contact-us .section-content .wpcf7-form p:nth-of-type(1), #contact-us .section-content .wpcf7-form p:nth-of-type(2), #contact-us .section-content .wpcf7-form p:nth-of-type(3) { width: 33.33333333%; margin: 0; position: relative; min-height: 1px; display: block; float: left; } #contact-us .section-content .wpcf7-form p:nth-of-type(1) { padding-right: 15px; } #contact-us .section-content .wpcf7-form p:nth-of-type(2) { padding-right: 15px; padding-left: 15px; } #contact-us .section-content .wpcf7-form p:nth-of-type(3) { padding-left: 15px; } #contact-us .section-content .wpcf7-form p:nth-of-type(4) { width: 100%; margin: 26px 0 0 0; padding: 0; display: block; float: left; } #contact-us .section-content .wpcf7-form p:nth-of-type(5) { margin: 0; padding: 0; display: block; float: right; width: auto; } #contact-us .section-content .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ng { color: #fff; } #contact-us .section-content .wpcf7-form .wpcf7-response-output { margin-top: 40px !important; float: left; } #contact-us div.wpcf7 img.ajax-loader { margin-top: 50px; margin-right: 10px; } #contact-us .section-content .wpcf7-form p .wpcf7-text { width: 100%; height: 46px; background-color: #df955b; padding: 0 20px; border: 1px solid #d08b55; outline: 0; font-family: "Source Sans Pro", sans-serif; font-size: 15px; color: #fff; display: block; } #contact-us .section-content .wpcf7-form p .wpcf7-text::-webkit-input-placeholder { color: #fff; } #contact-us .section-content .wpcf7-form p .wpcf7-text::-moz-placeholder { color: #fff; } #contact-us .section-content .wpcf7-form p .wpcf7-text:-ms-input-placeholder { color: #fff; } #contact-us .section-content .wpcf7-form p .wpcf7-text:-moz-placeholder { color: #fff; } #contact-us .section-content .wpcf7-form p .wpcf7-textarea { width: 100%; height: 217px; background-color: #df955b; margin: 0; padding: 10px 20px 10px 20px; border: 1px solid #d08b55; outline: 0; resize: none; display: block; } #contact-us .section-content .wpcf7-form p .wpcf7-textarea::-webkit-input-placeholder { color: #fff; } #contact-us .section-content .wpcf7-form p .wpcf7-textarea::-moz-placeholder { color: #fff; } #contact-us .section-content .wpcf7-form p .wpcf7-textarea:-ms-input-placeholder { color: #fff; } #contact-us .section-content .wpcf7-form p .wpcf7-textarea:-moz-placeholder { color: #fff; } #contact-us .section-content .wpcf7-form p .wpcf7-submit { width: auto; height: 44px; background-color: #fff; margin: 40px 0 0 0; padding: 0 60px; border: none; border-radius: 2px; display: inline-block; font-weight: 700; color: #e69f67; text-transform: uppercase; float: right; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; outline: 0; } #contact-us .section-content .wpcf7-form p .wpcf7-submit:hover { opacity: 0.9; } #contact-us .section-content .wpcf7-form .wpcf7-response-output.wpcf7-display-none.wpcf7-validation-errors { margin: 0; padding: 10px 20px; color: #fff; float: left; } /* 11. Footer */ #footer { width: 100%; background-color: #f5f5f5; padding: 40px 0; } #footer .footer-logo { width: 100%; margin-bottom: 20px; display: block; text-align: right; } #footer .footer-logo img { max-width: 100%; height: auto; } #footer .copyright { width: 100%; line-height: 0.933; color: #888; } #footer .copyright a { color: #888; text-decoration: none; } #footer .copyright a:hover { text-decoration: underline; } #footer .widget .widget-title { margin: 0 0 20px 0; padding: 0; } #footer .widget .widget-title:before { display: none; } #footer .widget .widget-title h3 { line-height: 1.15; color: #888; } #footer .widget ul li { margin: 0 0 10px 0; padding-top: 0; padding-right: 0; padding-bottom: 0; border-bottom: none; } #footer .widget ul li:last-child { margin-bottom: 0; } #footer .widget ul li a { line-height: 1.5; color: #888; } #footer .widget ul li a:hover { color: #f1d204; } #footer .widget ul li:before { color: #888; } /* 12. Blog */ #blog { width: 100%; padding: 50px 0 40px 0; } #blog .blog-post { width: 100%; margin-bottom: 100px; } #blog .blog-post .blog-post-title { width: 100%; margin-top: 0; margin-bottom: 10px; line-height: 1.4; font-weight: 700; font-size: 25px; color: #333; text-transform: uppercase; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; display: block; } #blog .blog-post .blog-post-title:hover { text-decoration: none; color: #f1d204; } #blog .blog-post h2.blog-post-title:hover { color: #333 !important; } #blog .blog-post .blog-post-image { width: 100%; margin-bottom: 10px; text-align: center; } #blog .blog-post .blog-post-image img { width: 100%; max-width: 100%; height: auto; } #blog .blog-post .blog-post-meta { width: 100%; margin-bottom: 10px; line-height: 2.428; font-size: 14px; } #blog .blog-post .blog-post-meta .post-meta-author { color: #f1d204; } #blog .blog-post .blog-post-meta .post-meta-author .fa { margin-right: 6px; color: #f1d204; } #blog .blog-post .blog-post-meta .post-meta-time, #blog .blog-post .blog-post-meta .post-meta-categories { margin-left: 20px; color: #888; } #blog .blog-post .blog-post-meta .post-meta-categories a { color: #888; } #blog .blog-post .blog-post-meta .post-meta-time .fa, #blog .blog-post .blog-post-meta .post-meta-categories .fa { margin-right: 6px; color: #f1d204; } #blog .blog-post .blog-post-meta .post-meta-comments { margin-left: 40px; color: #888; } #blog .blog-post .blog-post-meta .post-meta-comments .fa { margin-right: 6px; color: #f1d204; } #blog .blog-post .blog-post-meta .post-meta-comments a { color: #888; } #blog .blog-post .blog-post-entry { width: 100%; margin-bottom: 40px; } #blog .blog-post .blog-post-entry p { line-height: 1.6; color: #888; } #blog .blog-post .blog-post-button { height: 45px; line-height: 45px; background-color: #f1d204; padding: 0 30px; display: inline-block; border-radius: 3px; font-weight: 700; font-size: 18px; color: #fff; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; text-transform: uppercase; } #blog .blog-post .blog-post-button:hover { text-decoration: none; opacity: 0.9; } #blog .blog-post .blog-post-tags { width: 100%; margin-bottom: 40px; padding: 0; list-style-type: none; } #blog .blog-post .blog-post-tags li { margin: 0; display: inline-block; color: #888; } #blog .blog-post .blog-post-tags li a { color: #888; } #blog .blog-post .social-links-list { width: 100%; margin: 0 0 55px 0; padding: 0; list-style-type: none; } #blog .blog-post .social-links-list li { margin-left: 30px; float: left; } #blog .blog-post .social-links-list li.links-list-title { margin-left: 0; line-height: 34px; font-weight: 700; color: #333; text-transform: uppercase; } #blog .blog-post .social-links-list li[data-customizer="twitter"] a { background-color: #2a7dca; } #blog .blog-post .social-links-list li[data-customizer="facebook"] a { background-color: #06bef4; } #blog .blog-post .social-links-list li[data-customizer="linkedin"] a { background-color: #0077b5; } #blog .blog-post .social-links-list li a { width: 34px; height: 34px; line-height: 34px; display: block; border-radius: 50%; color: #fff; font-size: 17px; text-align: center; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #blog .blog-post .social-links-list li a:hover { opacity: 0.9; } #blog .blog-post .blog-post-author { width: 100%; background: #f9f9f9; margin-bottom: 45px; padding: 20px 40px; } #blog .blog-post .blog-post-author .avatar { margin-right: 30px; border-radius: 50%; float: left; } #blog .blog-post .blog-post-author h4 { line-height: 1.7; margin: 10px 0 0 0; display: inline-block; font-size: 20px; color: #f1d204; } #blog .blog-post .blog-post-author p { line-height: 1.6; color: #888; } #blog .nav-links { width: 100%; } .navigation .screen-reader-text { display: none; } #blog .nav-links .page-numbers { width: 34px; height: 34px; line-height: 32px; display: inline-block; color: #000; text-align: center; } #blog .nav-links .page-numbers.current, #blog .nav-links .page-numbers:hover { text-decoration: none; border: 1px solid #000; } /* 13. Sidebar */ #sidebar { width: 90%; margin: 50px 0 40px 0; padding-left: 10%; border-left: 1px solid #ebebeb; float: right; } .page-template-left-sidebar #sidebar { padding-right: 10%; padding-left: 0; border-right: 1px solid #ebebeb; border-left: none; float: left; } .widget { width: 100%; margin-bottom: 75px; } .widget:last-child { margin-bottom: 0; } .widget .widget-title { width: 100%; margin-bottom: 20px; padding-bottom: 12px; position: relative; } .widget .widget-title:before { content: ""; width: 41px; height: 3px; background-color: #f1d204; position: absolute; bottom: 0; left: 0; } .widget .widget-title h3 { line-height: 2.55; margin: 0; padding: 0; font-weight: 700; font-size: 20px; color: #333; text-transform: uppercase; } .widget a { color: #333; } .widget img { max-width: 100%; height: auto; } .widget ul { margin: 0; padding: 0; list-style-type: none; } .widget ul.children li, .widget ul.sub-menu li { padding-bottom: 0; border-bottom: none; } .widget ul li { width: 100%; padding: 20px 0 20px 20px; border-bottom: 1px solid #ebebeb; position: relative; } .widget ul li:before { content: "\f105"; font-family: "FontAwesome"; color: #f1d204; position: absolute; left: 0; } .widget ul li a { line-height: 1.6; color: #888; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } .widget ul li a:hover { color: #f1d204; text-decoration: none; } .widget .screen-reader-text { width: 100%; } .widget select { width: 100%; } .widget table { width: 100%; } .widget table caption { color: #888; margin-bottom: 10px; font-weight: 700; } .widget table thead { color: #888; } .widget table thead th { padding-bottom: 5px; border-right: 1px solid #eee; border-bottom: 1px solid #eee; text-align: center; } .widget table thead th:last-child { border-right: none; } .widget table tbody { color: #888; text-align: center; font-size: 12px; font-weight: 300; } .widget table tbody a { font-weight: 700; } .widget table tbody tr { border-bottom: 1px solid #eee; } .widget table tbody tr:last-child { border-bottom: none; } .widget table tbody tr td { border-right: 1px solid #eee; padding: 7px; } .widget table tbody tr td:last-child { border-right: none; } .widget table tfoot { font-size: 14px; color: #888; } .widget table tfoot #next { text-align: right; } .widget table a { color: #888; text-decoration: underline; } .widget table a:hover { text-decoration: none; } .widget table td#prev { padding-top: 10px; } .widget table td#prev a { color: #888; } .widget table td#next { padding-top: 10px; } .widget table td#next a { color: #888; } .widget .search-form { width: 100%; } .widget .search-form .search-form-box { width: 100%; height: 39px; padding: 0 20px; border: 1px solid #000; } .widget .search-form .search-form-box #searchsubmit { height: 37px; line-height: 37px; background: transparent; margin-right: 10px; padding: 0; border: none; font-family: "FontAwesome"; color: #000; float: left; } .widget .search-form .search-form-box #s { height: 37px; background: transparent; border: none; color: #333; text-transform: uppercase; outline: 0; } .widget .search-form .search-form-box #s::-webkit-input-placeholder { color: #000; } .widget .search-form .search-form-box #s::-moz-placeholder { color: #000; } .widget .search-form .search-form-box #s:-ms-input-placeholder { color: #000; } .widget .search-form .search-form-box #s:-moz-placeholder { color: #000; } .widget .widget-recent-post { width: 100%; margin-bottom: 37px; } .widget .widget-recent-post:last-of-type { margin-bottom: 0; } .widget .widget-recent-post .recent-post-image { width: 70px; margin-right: 22px; float: left; } .widget .widget-recent-post .recent-post-image img { max-width: 100%; height: auto; border-radius: 50%; } .widget .widget-recent-post .recent-post-title { width: 100%; line-height: 1.466; display: block; color: #333; text-transform: uppercase; } .widget .widget-recent-post .recent-post-button { width: 100%; line-height: 1.466; color: #f1d204; text-transform: lowercase; } /* 14. Markup Format */ .markup-format h1, .markup-format h2, .markup-format h3, .markup-format h4, .markup-format h5, .markup-format h6 { margin: 30px 0; } .markup-format h1 { line-height: 92px; } .markup-format h2 { line-height: 32px; } .markup-format h3 { line-height: 30px; font-weight: 500; } .markup-format h4 { line-height: 18px; } .markup-format h5 { line-height: 16px; } .markup-format h6 { line-height: 14px; } .markup-format p { line-height: 25px; margin: 30px 0; } .markup-format a { color: #e2c504; text-decoration: underline; } .markup-format a:hover { text-decoration: none; } .markup-format img { max-width: 100% !important; height: auto; } .markup-format img.alignright { float: right; margin: 0 0 1em 1em; } .markup-format img.alignleft { float: left; margin: 0 1em 1em 0; } .markup-format img.aligncenter { display: block; margin-left: auto; margin-right: auto; } .markup-format .alignright { float: right; } .markup-format .alignleft { float: left; } .markup-format .aligncenter { display: block; margin-left: auto; margin-right: auto; } .markup-format .wp-caption { max-width: 100%; height: auto; } .markup-format .post-password-form { width: 100%; } .markup-format .post-password-form label { float: left; } .markup-format .post-password-form label input[type="password"] { height: 40px; margin: 0 10px 0 5px; padding: 0 20px; border: 1px solid #e6e6e6; border-radius: 0; outline: 0; appearance: none; } .markup-format .post-password-form input[type="submit"] { height: 40px; margin: 0; } .markup-format .gallery-item { width: 25%; padding: 10px; float: left; } .markup-format .gallery-columns-1 .gallery-item { width: 100%; } .markup-format .gallery-columns-2 .gallery-item { width: 50%; } .markup-format .gallery-columns-3 .gallery-item { width: 33.33%; } .markup-format .link-pages { width: 100%; margin-bottom: 40px; float: left; } .markup-format iframe { max-width: 100%; } .markup-format blockquote, .markup-format q { margin: 0; padding: 0; line-height: 50px; font-size: 30px; color: #888; border-left: none; } .markup-format blockquote:before, .markup-format blockquote:after { content: "\""; } .markup-format cite { font-style: normal; font-size: 14px; color: #888; } .markup-format blockquote p { margin: 0; } .markup-format ul { list-style-position: inside; list-style-type: disc; } .markup-format ul li { list-style-position: inside; list-style-type: disc; } .markup-format ul li ul { padding-left: 20px; } .markup-format ol { list-style-position: inside; list-style-type: decimal; } .markup-format ol li { list-style-position: inside; list-style-type: decimal; } .markup-format ol li ol { padding-left: 20px; } .markup-format table { width: 100%; } .markup-format table caption { color: #888; margin-bottom: 10px; font-weight: 700; } .markup-format table thead { color: #888; } .markup-format table thead th { padding-bottom: 5px; border-right: 1px solid #eee; border-bottom: 1px solid #eee; text-align: center; } .markup-format table thead th:last-child { border-right: none; } .markup-format table tbody { color: #888; text-align: center; font-size: 12px; font-weight: 300; } .markup-format table tbody a { font-weight: 700; } .markup-format table tbody tr { border-bottom: 1px solid #eee; } .markup-format table tbody tr:last-child { border-bottom: none; } .markup-format table tbody tr td { border-right: 1px solid #eee; padding: 7px; } .markup-format table tbody tr td:last-child { border-right: none; } .markup-format table tfoot { font-size: 14px; color: #888; } .markup-format table tfoot #next { text-align: right; } .markup-format table a { color: #888; text-decoration: underline; } .markup-format table a:hover { text-decoration: none; } .markup-format table td#prev { padding-top: 10px; } .markup-format table td#prev a { color: #888; } .markup-format table td#next { padding-top: 10px; } .markup-format table td#next a { color: #888; } /* 15. Related Posts */ .blog-post-related-articles { width: 100%; margin-bottom: 50px; } .blog-post-related-articles .related-article-title { width: 100%; margin-bottom: 20px; font-weight: 700; color: #333; text-transform: uppercase; line-height: 1.6; } .blog-post-related-articles .related-post { width: 100%; height: 203px; background-position: center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; display: block; position: relative; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } .blog-post-related-articles .related-post:hover .related-post-title { color: #f1d204; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } .blog-post-related-articles .related-post .related-post-title { width: 100%; background-color: rgba(0, 0, 0, 0.5); padding: 15px 20px; position: absolute; bottom: 0; left: 0; color: #fff; line-height: 1.6; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } /* 16. Comments */ #comments { width: 100%; } #comments #comments-list { width: 100%; margin-bottom: 50px; } #comments #comments-list h3.medium { width: 100%; margin: 0 0 15px 0; line-height: 1.5; font-weight: 700; font-size: 17px; color: #333; text-transform: uppercase; } #comments #comments-list ul.comments { width: 100%; margin: 0; padding: 0; list-style-type: none; } #comments #comments-list ul.comments .comment { width: 100%; } #comments #comments-list ul.comments .comment > div { margin-bottom: 30px; } #comments #comments-list ul.comments .comment .comment-gravatar { width: 100%; } #comments #comments-list ul.comments .comment .comment-gravatar img { max-width: 100%; height: auto; } #comments #comments-list ul.comments .comment .url { color: #f1d204; } #comments #comments-list ul.comments .comment .comment-entry p { margin: 15px 0; } #comments #comments-list ul.comments .comment .comment-reply-link { color: #f1d204; } #comments #comments-list ul.comments .comment ul.children { width: 100%; margin: 0; padding: 0 0 0 40px; list-style-type: none; } #comments #respond { width: 100%; } #comments #respond #reply-title { width: 100%; margin: 0 0 15px 0; line-height: 1.5; font-weight: 700; font-size: 17px; color: #333; text-transform: uppercase; } #comments #respond .comment-form { width: 100%; } #comments #respond .comment-form .comment-notes { display: none; } #comments #respond .comment-form .input-full { width: 100%; height: 37px; margin: 0 0 30px 0; padding: 0 10px; border: 1px solid #d7d7d7; outline: 0; font-family: "Source Sans Pro", sans-serif; font-weight: 400; color: #888; } #comments #respond .comment-form textarea { width: 100%; height: 125px; margin-bottom: 30px; padding: 10px; border: 1px solid #d7d7d7; outline: 0; font-family: "Source Sans Pro", sans-serif; font-weight: 400; color: #888; resize: none; display: block; } input { width: 100%; padding: 10px; border: 1px solid rgb(169, 169, 169);; outline: 0; font-family: "Source Sans Pro", sans-serif; font-weight: 400; color: #888; resize: none; display: block; } #comments #respond .comment-form #input-submit, input[type=submit] { width: auto; height: 36px; background-color: #f1d204; padding: 0 40px; display: inline-block; color: #fff; border: 1px solid #d7d7d7; font-family: "Source Sans Pro", sans-serif; font-weight: 700; color: #fff; text-transform: uppercase; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; } #comments #respond .comment-form #input-submit:hover { opacity: 0.9; } @media only screen and (max-width: 992px) { #header .top-header .header-navigation { display: none; } .open-responsive-menu { height: 100%; background: 0 0; padding: 26px 0; border: none; outline: 0; display: block; float: right; } .open-responsive-menu .fa { font-size: 22px; color: #fff; } .responsive-menu { width: 100%; background-color: #fff; margin-top: 20px; display: none; } .responsive-menu ul { width: 100%; margin: 0; padding: 0; } .responsive-menu ul li { width: 100%; } .responsive-menu ul li a { width: 100%; padding: 15px; display: block; border-bottom: 1px solid #e4e4e4; color: #000; text-align: center; } .responsive-menu.active { display: block; } #header .bottom-header .header-button-one, #header .bottom-header .header-button-two { margin-top: 10px; margin-bottom: 10px; } } /* 17. Responsive */ @media only screen and (max-width: 767px) { #header .top-header .header-logo img { max-width: 320px; } #header .bottom-header h2 { font-size: 60px; } #about .widget_illdy_skill:nth-child(1) { margin-top: 0; } #about .widget_illdy_skill:nth-child(2), #about .widget_illdy_skill:nth-child(3) { margin-top: 66px; } #services .widget_illdy_service:nth-child(1) { margin-top: 0; } #services .widget_illdy_service:nth-child(2), #services .widget_illdy_service:nth-child(3) { margin-top: 40px; } #counter .col-sm-4 { border-right: none; } #counter .widget_illdy_counter:nth-child(1) { margin-top: 0; } #counter .widget_illdy_counter:nth-child(2), #counter .widget_illdy_counter:nth-child(3) { margin-top: 40px; } #team .widget_illdy_person:nth-child(1) { margin-top: 0; } #team .widget_illdy_person:nth-child(2), #team .widget_illdy_person:nth-child(3) { margin-top: 40px; } #contact-us .section-content .contact-us-box .box-left { width: 50%; } #contact-us .section-content .contact-us-box .box-left { width: 50%; } #contact-us .section-content .col-sm-5, #contact-us .section-content .col-sm-3 { margin-top: 40px; } #contact-us .section-content .contact-us-social { text-align: left; } #contact-us .section-content .wpcf7-form p:nth-of-type(1) { margin-top: 0; } #contact-us .section-content .wpcf7-form p:nth-of-type(1), #contact-us .section-content .wpcf7-form p:nth-of-type(2), #contact-us .section-content .wpcf7-form p:nth-of-type(3) { width: 100%; margin: 26px 0 0 0; padding: 0; } #footer .footer-logo { text-align: left; } #footer .col-sm-3 { margin-top: 40px; } #footer .col-sm-3:first-child { margin-top: 0; } #sidebar { width: 100%; margin-top: 0; padding-left: 0; border-left: none; } .blog-post-related-articles .related-post { margin: 40px 0; } #comments #comments-list ul.comments .comment .comment-gravatar { margin-bottom: 20px; } #blog { padding-bottom: 0; } } @media only screen and (max-width: 320px) { #header .bottom-header h2 { font-size: 40px; } #team .section-content .person .person-image { width: 100%; margin-right: 0; margin-bottom: 20px; } #team .section-content .person .person-content { text-align: center; } #team .section-content .person .person-content .person-content-social li { display: inline-block; float: none; } } /* 18. Gallery */ .gallery.gallery-columns-4 .gallery-item:nth-child(4n+1), .gallery.gallery-columns-3 .gallery-item:nth-child(3n+1) { clear: left; } .gallery:after { content: ""; display: block; clear: both; } .inline-columns { text-align: center; } .inline-columns > div { display: inline-block; float: none; } /*# sourceMappingURL=main.css.map */
18.786563
190
0.647564
6b5b1db0bdff9c92fefd3244fc89ac2dff579d54
4,694
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2.log_13213_588.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2.log_13213_588.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2.log_13213_588.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x10a01, %r12 nop sub $3952, %rbx mov $0x6162636465666768, %rax movq %rax, (%r12) nop nop nop nop dec %rax lea addresses_normal_ht+0x118f5, %r13 nop nop nop nop sub $59029, %r10 movups (%r13), %xmm7 vpextrq $0, %xmm7, %rax add $51357, %rax lea addresses_A_ht+0x8619, %rsi lea addresses_A_ht+0x1a501, %rdi nop nop add $36145, %r10 mov $0, %rcx rep movsq nop nop cmp $11823, %r12 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %rbx push %rdx push %rsi // Faulty Load mov $0x6b68400000000a01, %rsi and %rbx, %rbx vmovups (%rsi), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r14 lea oracles, %r13 and $0xff, %r14 shlq $12, %r14 mov (%r13,%r14,1), %r14 pop %rsi pop %rdx pop %rbx pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}} {'00': 13213} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
52.155556
2,999
0.662974
a46302e93ffa310798f9d7d73f4ade5341398dea
50
php
PHP
tests/data/some_file.php
vikijel/joomla-extensions-packager
2a9799c6ebe366cbe0553cb0df2f5e1f529b6173
[ "MIT" ]
3
2016-05-20T17:57:33.000Z
2019-10-28T08:04:58.000Z
tests/data/some_file.php
vikijel/joomla-extensions-packager
2a9799c6ebe366cbe0553cb0df2f5e1f529b6173
[ "MIT" ]
null
null
null
tests/data/some_file.php
vikijel/joomla-extensions-packager
2a9799c6ebe366cbe0553cb0df2f5e1f529b6173
[ "MIT" ]
null
null
null
<?php /** * @author: Viktor Jelínek (VikiJel) */
12.5
36
0.58
6da6a4652d4c43b52ecd5833858dd3206baacfe9
1,956
c
C
xen/xen-4.2.2/tools/libxc/xc_csched2.c
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/libxc/xc_csched2.c
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/libxc/xc_csched2.c
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
/**************************************************************************** * (C) 2006 - Emmanuel Ackaouy - XenSource Inc. **************************************************************************** * * File: xc_csched.c * Author: Emmanuel Ackaouy * * Description: XC Interface to the credit scheduler * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "xc_private.h" int xc_sched_credit2_domain_set( xc_interface *xch, uint32_t domid, struct xen_domctl_sched_credit2 *sdom) { DECLARE_DOMCTL; domctl.cmd = XEN_DOMCTL_scheduler_op; domctl.domain = (domid_t) domid; domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_CREDIT2; domctl.u.scheduler_op.cmd = XEN_DOMCTL_SCHEDOP_putinfo; domctl.u.scheduler_op.u.credit2 = *sdom; return do_domctl(xch, &domctl); } int xc_sched_credit2_domain_get( xc_interface *xch, uint32_t domid, struct xen_domctl_sched_credit2 *sdom) { DECLARE_DOMCTL; int err; domctl.cmd = XEN_DOMCTL_scheduler_op; domctl.domain = (domid_t) domid; domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_CREDIT2; domctl.u.scheduler_op.cmd = XEN_DOMCTL_SCHEDOP_getinfo; err = do_domctl(xch, &domctl); if ( err == 0 ) *sdom = domctl.u.scheduler_op.u.credit2; return err; }
30.5625
81
0.663599
e84a2604e2d432090ab0b1c8d7f366cbb8dc8973
4,651
cs
C#
Assets/Space Graphics Toolkit/Features/Shared/Scripts/SgtCamera.cs
wdj294/Virgil
e250986b0fb6e128820480e85a674c3928ae9c74
[ "MIT" ]
1
2017-11-07T05:24:22.000Z
2017-11-07T05:24:22.000Z
Assets/Space Graphics Toolkit/Features/Shared/Scripts/SgtCamera.cs
wdj294/Virgil
e250986b0fb6e128820480e85a674c3928ae9c74
[ "MIT" ]
null
null
null
Assets/Space Graphics Toolkit/Features/Shared/Scripts/SgtCamera.cs
wdj294/Virgil
e250986b0fb6e128820480e85a674c3928ae9c74
[ "MIT" ]
1
2020-02-24T05:43:41.000Z
2020-02-24T05:43:41.000Z
using UnityEngine; #if UNITY_EDITOR using UnityEditor; namespace SpaceGraphicsToolkit { [CanEditMultipleObjects] [CustomEditor(typeof(SgtCamera))] public class SgtCamera_Editor : SgtEditor<SgtCamera> { protected override void OnInspector() { DrawDefault("UseOrigin", ""); DrawDefault("RollAngle", "The amount of degrees this camera has rolled (used to counteract billboard non-rotation)."); } } } #endif namespace SpaceGraphicsToolkit { /// <summary>This component monitors the attached Camera for modifications in roll angle, and stores the total change.</summary> [ExecuteInEditMode] [DisallowMultipleComponent] [RequireComponent(typeof(Camera))] [HelpURL(SgtHelper.HelpUrlPrefix + "SgtCamera")] [AddComponentMenu(SgtHelper.ComponentMenuPrefix + "Camera")] public class SgtCamera : SgtLinkedBehaviour<SgtCamera> { public static System.Action<SgtCamera> OnCameraPreCull; public static System.Action<SgtCamera> OnCameraPreRender; public static System.Action<SgtCamera> OnCameraPostRender; public bool UseOrigin; /// <summary>The amount of degrees this camera has rolled (used to counteract billboard non-rotation).</summary> public float RollAngle; // A quaternion of the current roll angle public Quaternion RollQuaternion = Quaternion.identity; // A matrix of the current roll angle public Matrix4x4 RollMatrix = Matrix4x4.identity; // The change in position of this GameObject over the past frame [System.NonSerialized] public Vector3 DeltaPosition; // The current velocity of this GameObject per second [System.NonSerialized] public Vector3 Velocity; // Previous frame rotation [System.NonSerialized] public Quaternion OldRotation = Quaternion.identity; // Previous frame position [System.NonSerialized] public Vector3 OldPosition; // The camera this camera is attached to [System.NonSerialized] public Camera cachedCamera; [System.NonSerialized] public bool cachedCameraSet; [System.NonSerialized] private SgtPosition expectedPosition; [System.NonSerialized] private bool expectedPositionSet; public Camera CachedCamera { get { if (cachedCameraSet == false) { cachedCamera = GetComponent<Camera>(); cachedCameraSet = true; } return cachedCamera; } } // Find the camera attached to a specific camera, if it exists public static bool TryFind(Camera unityCamera, ref SgtCamera foundCamera) { var camera = FirstInstance; for (var i = 0; i < InstanceCount; i++) { if (camera.CachedCamera == unityCamera) { foundCamera = camera; return true; } camera = camera.NextInstance; } return false; } protected override void OnEnable() { base.OnEnable(); OldRotation = transform.rotation; OldPosition = transform.position; SgtFloatingCamera.OnSnap += FloatingCameraSnap; } protected override void OnDisable() { base.OnDisable(); SgtFloatingCamera.OnSnap -= FloatingCameraSnap; } protected virtual void OnPreCull() { if (OnCameraPreCull != null) OnCameraPreCull(this); } protected virtual void OnPreRender() { if (OnCameraPreRender != null) OnCameraPreRender(this); } protected virtual void OnPostRender() { if (OnCameraPostRender != null) OnCameraPostRender(this); } protected virtual void LateUpdate() { var newRotation = transform.rotation; var newPosition = transform.position; var deltaRotation = Quaternion.Inverse(OldRotation) * newRotation; RollAngle = (RollAngle - deltaRotation.eulerAngles.z) % 360.0f; RollQuaternion = Quaternion.Euler(0.0f, 0.0f, RollAngle); RollMatrix = Matrix4x4.Rotate(RollQuaternion); if (UseOrigin == true) { var currentPosition = SgtFloatingOrigin.CurrentPoint.Position; if (expectedPositionSet == false) { expectedPosition = currentPosition; expectedPositionSet = true; } var deltaPosition = SgtPosition.Vector(ref expectedPosition, ref currentPosition); DeltaPosition = deltaPosition; Velocity = SgtHelper.Reciprocal(Time.deltaTime) * deltaPosition; expectedPosition = currentPosition; } else { var deltaPosition = OldPosition - newPosition; DeltaPosition = deltaPosition; Velocity = SgtHelper.Reciprocal(Time.deltaTime) * deltaPosition; expectedPositionSet = false; } OldRotation = newRotation; OldPosition = newPosition; } private void FloatingCameraSnap(SgtFloatingCamera floatingCamera, Vector3 delta) { if (floatingCamera.CachedCamera == CachedCamera) { OldPosition += delta; } } } }
24.608466
129
0.722855
0c17efd15172a56c10663f485c9b856115aab0e6
589
rb
Ruby
test/test_helper.rb
nfedyashev/statsd-instrument
3c9bf8675e97d98ebeb778a146168cc940b2fc8d
[ "MIT" ]
273
2015-01-14T05:52:05.000Z
2022-03-31T14:09:24.000Z
test/test_helper.rb
nfedyashev/statsd-instrument
3c9bf8675e97d98ebeb778a146168cc940b2fc8d
[ "MIT" ]
126
2015-02-28T13:04:35.000Z
2021-10-06T15:35:49.000Z
test/test_helper.rb
nfedyashev/statsd-instrument
3c9bf8675e97d98ebeb778a146168cc940b2fc8d
[ "MIT" ]
78
2015-01-12T09:36:54.000Z
2022-03-25T05:15:15.000Z
# frozen_string_literal: true if Warning.respond_to?(:[]=) Warning[:deprecated] = true end ENV["ENV"] = "test" require "minitest/autorun" require "minitest/pride" require "mocha/minitest" require "statsd-instrument" require_relative "helpers/rubocop_helper" module StatsD module Instrument def self.strict_mode_enabled? StatsD::Instrument.const_defined?(:Strict) && StatsD.singleton_class.ancestors.include?(StatsD::Instrument::Strict) end end end StatsD.logger = Logger.new(File::NULL) Thread.abort_on_exception = true Thread.report_on_exception = true
20.310345
77
0.752122
e5c097e287f51ae08c81e0137bf4fc748860866a
645
dart
Dart
lib/models/conference_agenda_item.dart
BK1031/VC-DECA
8f04626ab4b17140e0385dafc7222f9ac4a6ba18
[ "MIT" ]
5
2019-02-26T22:49:23.000Z
2020-06-30T19:45:19.000Z
lib/models/conference_agenda_item.dart
mydeca/VC-DECA-flutter
8f04626ab4b17140e0385dafc7222f9ac4a6ba18
[ "MIT" ]
1
2018-10-04T06:02:19.000Z
2018-10-10T02:53:43.000Z
lib/models/conference_agenda_item.dart
mydeca/VC-DECA-flutter
8f04626ab4b17140e0385dafc7222f9ac4a6ba18
[ "MIT" ]
2
2019-02-18T12:47:53.000Z
2019-10-12T11:43:45.000Z
import 'package:firebase_database/firebase_database.dart'; class ConferenceAgendaItem { String key; String title; String desc; String date; String time; String endTime; String location; ConferenceAgendaItem(this.title, this.desc, this.date, this.time, this.endTime, this.location); ConferenceAgendaItem.fromSnapshot(DataSnapshot snapshot) : key = snapshot.key, title = snapshot.value["title"], desc = snapshot.value["desc"], date = snapshot.value["date"], time = snapshot.value["time"], endTime = snapshot.value["endTime"], location = snapshot.value["location"]; }
28.043478
67
0.677519
e2742aa100293e8bc24646f6efc58fdaac1362f0
4,404
py
Python
manager/numbers.py
yeleman/lakalici
44a112a966dffb58cc150ff91527e5d6da224529
[ "MIT" ]
null
null
null
manager/numbers.py
yeleman/lakalici
44a112a966dffb58cc150ff91527e5d6da224529
[ "MIT" ]
null
null
null
manager/numbers.py
yeleman/lakalici
44a112a966dffb58cc150ff91527e5d6da224529
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu from __future__ import (unicode_literals, absolute_import, division, print_function) import re from py3compat import string_types from django.conf import settings # default country prefix COUNTRY_PREFIX = getattr(settings, 'COUNTRY_PREFIX', 223) ALL_COUNTRY_CODES = [1242, 1246, 1264, 1268, 1284, 1340, 1345, 1441, 1473, 1599, 1649, 1664, 1670, 1671, 1684, 1758, 1767, 1784, 1809, 1868, 1869, 1876, 1, 20, 212, 213, 216, 218, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 27, 290, 291, 297, 298, 299, 30, 31, 32, 33, 34, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 36, 370, 371, 372, 373, 374, 375, 376, 377, 378, 380, 381, 382, 385, 386, 387, 389, 39, 40, 41, 420, 421, 423, 43, 44, 45, 46, 47, 48, 49, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 51, 52, 53, 54, 55, 56, 57, 58, 590, 591, 592, 593, 595, 597, 598, 599, 60, 61, 62, 63, 64, 65, 66, 670, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 685, 686, 687, 688, 689, 690, 691, 692, 7, 81, 82, 84, 850, 852, 853, 855, 856, 86, 870, 880, 886, 90, 91, 92, 93, 94, 95, 960, 961, 962, 963, 964, 965, 966, 967, 968, 970, 971, 972, 973, 974, 975, 976, 977, 98, 992, 993, 994, 995, 996, 998] def phonenumber_isint(number): ''' whether number is in international format ''' if re.match(r'^[+|(]', number): return True if re.match(r'^\d{1,4}\.\d+$', number): return True return False def phonenumber_indicator(number): ''' extract indicator from number or "" ''' for indic in ALL_COUNTRY_CODES: if number.startswith("%{}".format(indic)) \ or number.startswith("+{}".format(indic)): return str(indic) return "" def phonenumber_cleaned(number): ''' return (indicator, number) cleaned of space and other ''' # clean up if not isinstance(number, string_types): number = number.__str__() # cleanup markup clean_number = re.sub(r'[^\d\+]', '', number) if phonenumber_isint(clean_number): h, indicator, clean_number = \ clean_number.partition(phonenumber_indicator(clean_number)) return (indicator, clean_number) return (None, clean_number) def join_phonenumber(prefix, number, force_intl=True): if not number: return None if not prefix and force_intl: prefix = COUNTRY_PREFIX return "+{prefix}{number}".format(prefix=prefix, number=number) def phonenumber_repr(number, skip_indicator=str(COUNTRY_PREFIX)): ''' properly formated for visualization: (xxx) xx xx xx xx ''' def format(number): if len(number) % 2 == 0: span = 2 else: span = 3 # use NBSP return " ".join(["".join(number[i:i + span]) for i in range(0, len(number), span)]) indicator, clean_number = phonenumber_cleaned(number) if indicator and indicator != skip_indicator: return "(%(ind)s) %(num)s" \ % {'ind': indicator, 'num': format(clean_number)} return format(clean_number) def normalized_phonenumber(number_text): if number_text is None or not number_text.strip(): return None return join_phonenumber(*phonenumber_cleaned(number_text)) def operator_from_malinumber(number, default=settings.FOREIGN): ''' ORANGE or MALITEL based on the number prefix ''' indicator, clean_number = phonenumber_cleaned( normalized_phonenumber(number)) if indicator is not None and indicator != str(COUNTRY_PREFIX): return default for operator, opt in settings.OPERATORS.items(): for prefix in opt[1]: if clean_number.startswith(str(prefix)): return operator return default
36.7
77
0.569936
c99cd027a67a3db1180f88f14ea5ea4628f04612
444
ts
TypeScript
zhangjie/@ucarinc/ulib-utils/lib/crypto.d.ts
dreamSeekerYu/study
8545ff108ce031c8754d57b92fcea34766c014db
[ "CC-BY-4.0" ]
2
2020-09-02T05:40:03.000Z
2020-09-02T07:36:31.000Z
zhangjie/@ucarinc/ulib-utils/lib/crypto.d.ts
dreamSeekerYu/study
8545ff108ce031c8754d57b92fcea34766c014db
[ "CC-BY-4.0" ]
null
null
null
zhangjie/@ucarinc/ulib-utils/lib/crypto.d.ts
dreamSeekerYu/study
8545ff108ce031c8754d57b92fcea34766c014db
[ "CC-BY-4.0" ]
null
null
null
import { Base64 } from 'js-base64'; /** * 加解密相关 */ declare class Crypto { en(oldStr: string, enKey?: string): string | { str: string; key: string; } | undefined; de(denStr: string, key: string): string; random(num?: number): string; } /** * 加解密实例 */ export declare const crypto: Crypto; /** * base64实例 */ export declare const base64: typeof Base64; declare const _default: Crypto; export default _default;
19.304348
50
0.632883
1f134c7853353536a9f6a42d687ad26d6a4805ce
377
dart
Dart
lib/src/models/scoped_function_declaration.dart
zmeggyesi/dart-code-metrics
4b3ebb9a900b0b431a0c52d8d6d6cf18da458a2d
[ "MIT" ]
null
null
null
lib/src/models/scoped_function_declaration.dart
zmeggyesi/dart-code-metrics
4b3ebb9a900b0b431a0c52d8d6d6cf18da458a2d
[ "MIT" ]
null
null
null
lib/src/models/scoped_function_declaration.dart
zmeggyesi/dart-code-metrics
4b3ebb9a900b0b431a0c52d8d6d6cf18da458a2d
[ "MIT" ]
null
null
null
import 'package:analyzer/dart/ast/ast.dart'; import 'package:meta/meta.dart'; import 'function_type.dart'; @immutable class ScopedFunctionDeclaration { final FunctionType type; final Declaration declaration; final CompilationUnitMember enclosingDeclaration; const ScopedFunctionDeclaration( this.type, this.declaration, this.enclosingDeclaration, ); }
20.944444
51
0.777188
3f2c374e7c40bdb1f95be9a36b69d444113b8fb1
564
php
PHP
semana4/autoloader.php
arzola/PHPZceTestPreparation
99e23d462475d61f4053a34db9fa0089b16b30f9
[ "MIT" ]
null
null
null
semana4/autoloader.php
arzola/PHPZceTestPreparation
99e23d462475d61f4053a34db9fa0089b16b30f9
[ "MIT" ]
null
null
null
semana4/autoloader.php
arzola/PHPZceTestPreparation
99e23d462475d61f4053a34db9fa0089b16b30f9
[ "MIT" ]
null
null
null
<?php //Definimos la ruta base del código define('APP_PATH', dirname(__FILE__)); //Definimos las rutas que vamos a utilizar define('CONTROLLER_PATH', APP_PATH . '/controllers'); define('MODEL_PATH', APP_PATH . '/model'); define('VIEW_PATH', APP_PATH . '/view'); function mi_autoload($class_name) { $className = strtolower($class_name); $paths = array( CONTROLLER_PATH, MODEL_PATH, VIEW_PATH ); foreach ($paths as $path) { if (file_exists("$path/$className.php")) require_once("$path/$className.php"); } } spl_autoload_register('mi_autoload');
21.692308
53
0.707447
6ceefbc0a14dc44a731c8a9a98b8a5525a9040d7
321
css
CSS
assets/css/optimize.css
S20P/Codeigeniter-Meta-Dynamic
dd234ff085a0ea0fa6048ef81e88a77ead3bfc66
[ "MIT" ]
1
2019-07-08T14:24:38.000Z
2019-07-08T14:24:38.000Z
assets/css/optimize.css
S20P/PayPal-Integration-in-CodeIgniter
0805dbe60d2ed33650c36d02198527b672114c35
[ "MIT" ]
null
null
null
assets/css/optimize.css
S20P/PayPal-Integration-in-CodeIgniter
0805dbe60d2ed33650c36d02198527b672114c35
[ "MIT" ]
null
null
null
body { background-color: aliceblue; } .btn { background: #3b5998; border-radius: 3px; font-weight: 600; padding: 5px 10px; display: inline-block; position: static; border-color: #4966a6; color: #ffff; font-size: 16px; } .btn:hover { cursor: pointer; background: #213A6F }
16.05
32
0.610592
d3c0f8a7c13d63c9c262327895bac1a15e9e391a
590
asm
Assembly
oeis/156/A156641.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/156/A156641.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/156/A156641.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A156641: a(n) = 13*(100^(n+1) - 1)/99. ; 13,1313,131313,13131313,1313131313,131313131313,13131313131313,1313131313131313,131313131313131313,13131313131313131313,1313131313131313131313,131313131313131313131313,13131313131313131313131313,1313131313131313131313131313,131313131313131313131313131313,13131313131313131313131313131313,1313131313131313131313131313131313,131313131313131313131313131313131313,13131313131313131313131313131313131313,1313131313131313131313131313131313131313,131313131313131313131313131313131313131313 mov $1,100 pow $1,$0 div $1,99 mul $1,1300 add $1,13 mov $0,$1
59
484
0.877966
e28a0585beeb6b5e91b96d829be099a7f44601bb
8,828
py
Python
00_UAVRTK_a_UpdateCameraPositionWithPPK_ToCSV.py
adille/P4RTK-PPK
04d0977c48d934ac791d526a5ef5cc158932a311
[ "MIT" ]
3
2019-10-28T03:16:34.000Z
2020-04-18T13:28:28.000Z
00_UAVRTK_a_UpdateCameraPositionWithPPK_ToCSV.py
adille/P4RTK-PPK
04d0977c48d934ac791d526a5ef5cc158932a311
[ "MIT" ]
null
null
null
00_UAVRTK_a_UpdateCameraPositionWithPPK_ToCSV.py
adille/P4RTK-PPK
04d0977c48d934ac791d526a5ef5cc158932a311
[ "MIT" ]
1
2019-06-30T15:58:01.000Z
2019-06-30T15:58:01.000Z
# -*- coding: utf-8 -*- # June 2019 # AD # This code aims at updating the position of the camera of Phantom 4 RTK based on RINEX flight info (PPK processing) # It requires a .pos file (output of RTKLIB after processing) and a .MRK file containing timestamps of acqusitions as # well as the pictures (for naming purpose) # V.1.0 import os import pandas as pd import numpy as np from astropy.time import Time from math import cos, radians pd.options.mode.chained_assignment = None # default='warn' # ----------------------------- # Variables [--> to adapt accordingly] PictureFolder=r"C:\Users\adille\Desktop\Tests\Test_UAV_RTK\Flight2" # Folder with pictures POSFile=r"C:\Users\adille\Desktop\Tests\Test_UAV_RTK\Flight2\100_0011_Rinex-V2.pos" # RTKLIB output .pos file MRKFile=r"C:\Users\adille\Desktop\Tests\Test_UAV_RTK\Flight2\100_0011_Timestamp.MRK" # DJI output .MRK file # provide path and name of output CSV file with New camera locations OutputCSVFile=r"C:\Users\adille\Desktop\Tests\Test_UAV_RTK\Flight2\Test_UAV-RTK_RMCA_Flight2_UpdatedPos.csv" # ----------------------------- # ----------------------------- # A. Read New GPS Data from CSV # ----------------------------- cols_pos = ['GPST_Date','GPST_Local','latitude','longitude', 'height','Q', 'ns', 'sdn(m)', 'sde(m)', 'sdu(m)', 'sdne(m)', 'sdeu(m)', 'sdun(m)', 'age(s)', 'ratio'] # create some col names df_pos= pd.read_csv(POSFile, index_col=False, delim_whitespace=True,names=cols_pos,skiprows=range(0,25),engine="python") cols_mrk = ['GPST_Time','GPST_week', 'PhaseCompNS','NS', 'PhaseCompEW','EW','PhaseCompV','V','latitude','lat', 'longitude','lon', 'height','hgt','a','b','c','d','e','f','g'] # create some col names df_mrk= pd.read_csv(MRKFile,index_col=0, sep = "\s+|\t+|\s+\t+|\t+\s+|,", engine='python',names=cols_mrk) df_mrk=df_mrk.drop(columns=['NS','EW','V','lat','lon','hgt','a','b','c','d','e','f','g']) # ----------------------------- # B. GPS Time / Local Time # ----------------------------- # a. From GPS to Local Time def GPSTime2Local(time): timeLocal0 = [] for i in range(len(time)): tgps0= time[i] tgps=tgps0-19 # Added correction t = Time(tgps, format='gps',precision=3) t = Time(t, format='iso',precision=3) t = t.strftime("%H:%M:%S") timeLocal0.append(t) # print(str(tgps) + ' --> ' + str(t)) return timeLocal0 timeGPS=df_mrk['GPST_Time'].values timeLocal=GPSTime2Local(timeGPS) df_mrk.insert(2,'GPST_Local',timeLocal) # b. From iso to GPS def Local2GPSTime(time): timeGPS0 = [] for i in range(len(time)): tiso0= time[i] tiso='1980-01-08 '+ tiso0 #if GPS week not included --> start at 1980-01-08 t = Time(tiso, format='iso',precision=4) t = Time(t, format='gps',precision=4) # print(str(tiso) + ' --> ' + str(t)) timeGPS0.append(t) return timeGPS0 timeLocal=df_pos['GPST_Local'].values timeGPS=Local2GPSTime(timeLocal) df_pos.insert(2,'GPST_Time',timeGPS) # ----------------------------- # C. Search for closest GPS point to Photo # ----------------------------- print('\nSearch for closest GPS point to photo') print("Photo #" + ' --> ' + " ID closest " + ' | ' " ID 2nd closest " ) df_mrk['GPST_Time']=Time(df_mrk['GPST_Time'],scale='utc', format='gps') # from float64 to Time Object df_mrk.insert(3,'ClosestID',0) df_mrk.insert(4,'ClosestTimeStamps',0.0) df_mrk.insert(5,'ClosestLat',0.0) df_mrk.insert(6,'ClosestLon',0.0) df_mrk.insert(7,'ClosestHgt',0.0) df_mrk.insert(8,'SndClosestID',0) df_mrk.insert(9,'SndClosestTimeStamps',0.0) df_mrk.insert(10,'SndClosestLat',0.0) df_mrk.insert(11,'SndClosestLon',0.0) df_mrk.insert(12,'SndClosestHgt',0.0) # Search nearest time between Photo and GPS measures def nearest_ind(items, pivot): time_diff = np.abs([date - pivot for date in items]) return time_diff.argmin(0) for i in range(1, (len(df_mrk['GPST_Time'])+1)): # a) Closest first = nearest_ind(df_pos['GPST_Time'], df_mrk['GPST_Time'][i]) df_mrk['ClosestID'][i]=first df_mrk['ClosestTimeStamps'][i] = df_pos['GPST_Time'][first] df_mrk['ClosestLat'][i] = df_pos['latitude'][first] df_mrk['ClosestLon'][i] = df_pos['longitude'][first] df_mrk['ClosestHgt'][i] = df_pos['height'][first] # b) Second closest dta = df_pos['GPST_Time'][first - 1] - df_mrk['GPST_Time'][i] dtb = df_pos['GPST_Time'][first + 1] - df_mrk['GPST_Time'][i] dt = (abs(dta), abs(dtb)) second0 = dt.index(min(dt)) # index of second closest if second0 == 0: second=first - 1 elif second0 == 1: second = first + 1 df_mrk['SndClosestID'][i] = second df_mrk['SndClosestTimeStamps'][i] = df_pos['GPST_Time'][second] df_mrk['SndClosestLat'][i] = df_pos['latitude'][second] df_mrk['SndClosestLon'][i] = df_pos['longitude'][second] df_mrk['SndClosestHgt'][i] = df_pos['height'][second] # Print print(str(i) + ' --> ' + str(first) + ' | '+ str(second)) # ----------------------------- # D. Position calculation # ----------------------------- print('\nCalculate corrected photo positions') # Create some new cols df_mrk.insert(13,'TS_Diff',0.0) df_mrk.insert(14,'InterpLat',0.0) df_mrk.insert(15,'InterpLon',0.0) df_mrk.insert(16,'InterpHgt',0.0) df_mrk.insert(17,'PhaseCompNS_deg',0.0) df_mrk.insert(18,'PhaseCompEW_deg',0.0) df_mrk.insert(19,'PhaseCompV_m',0.0) df_mrk.insert(20,'UpdatedLat',0.0) df_mrk.insert(21,'UpdatedLon',0.0) df_mrk.insert(22,'UpdatedHgt',0.0) # 1 degree of Longitude = cosine (latitude in decimal degrees) * length of degree at equator (111.321 km) degLon = cos(radians(df_mrk['latitude'][1])) * 111.321 for i in range(1, (len(df_mrk['GPST_Time'])+1)): df_mrk['TS_Diff'][i] = (df_mrk['GPST_Time'][i] - df_mrk['ClosestTimeStamps'][i]) / \ ( df_mrk['SndClosestTimeStamps'][i] - df_mrk['ClosestTimeStamps'][i]) # Interpolation of position between the two closest points (in function of timing) df_mrk['InterpLat'][i] = (df_mrk['ClosestLat'][i] * (1 - df_mrk['TS_Diff'][i])) + \ ( df_mrk['SndClosestLat'][i] * df_mrk['TS_Diff'][i]) df_mrk['InterpLon'][i] = (df_mrk['ClosestLon'][i] * (1 - df_mrk['TS_Diff'][i])) + \ ( df_mrk['SndClosestLon'][i] * df_mrk['TS_Diff'][i]) df_mrk['InterpHgt'][i] = (df_mrk['ClosestHgt'][i] * (1 - df_mrk['TS_Diff'][i])) + \ ( df_mrk['SndClosestHgt'][i] * df_mrk['TS_Diff'][i]) # Conversion of phase compensation between antennae and antennae to CMOS centre (in mm --> in degrees) df_mrk['PhaseCompNS_deg'][i] = df_mrk['PhaseCompNS'][i] / 1000000 / 111.111 df_mrk['PhaseCompEW_deg'][i] = df_mrk['PhaseCompEW'][i] / 1000000 / degLon df_mrk['PhaseCompV_m'][i] = df_mrk['PhaseCompV'][i] / 1000 # Calulate the updated positions df_mrk['UpdatedLat'][i]= df_mrk['InterpLat'][i] + df_mrk['PhaseCompNS_deg'][i] df_mrk['UpdatedLon'][i] = df_mrk['InterpLon'][i] + df_mrk['PhaseCompEW_deg'][i] df_mrk['UpdatedHgt'][i] = df_mrk['InterpHgt'][i] - df_mrk['PhaseCompV_m'][i] # minus because downward is positive print("Photo #" + str(i) + " --> " + str(df_mrk['UpdatedLat'][i]) + " ; " + str(df_mrk['UpdatedLon'][i]) + " ; " + str(df_mrk['UpdatedHgt'][i])) # Calculate some statistics df_mrk['DiffLat']=df_mrk['latitude'] - df_mrk['UpdatedLat'] df_mrk['DiffLon']=df_mrk['longitude'] - df_mrk['UpdatedLon'] df_mrk['DiffHgt']=df_mrk['height'] - df_mrk['UpdatedHgt'] print('\n--> I updated ' + str(i) + ' camera positions') print('The mean change in NS location is ' + str(df_mrk['DiffLat'].mean()) + ' degrees (' + str(df_mrk['DiffLat'].mean()*1000 * 111) + ' m)' ) print('The mean change in EW location is ' + str(df_mrk['DiffLon'].mean()) + ' degrees (' + str(df_mrk['DiffLon'].mean()*1000 * degLon) + ' m)' ) print('The mean change in Vert location is ' + str(df_mrk['DiffHgt'].mean()) + ' m ') # ----------------------------- # E. Output CSV # ----------------------------- # Create a final CSV file df_final = df_mrk[['UpdatedLat', 'UpdatedLon', 'UpdatedHgt']].copy() df_final.rename(columns={'UpdatedLat': 'Latitude', 'UpdatedLon': 'Longitude','UpdatedHgt': 'Elevation'}, inplace=True) df_final.insert(0,'Photo','name') imagelist=[] for file in os.listdir(PictureFolder): if file.lower().endswith(('.png', '.jpg', '.jpeg', '.tif')): imagelist.append(file) df_final['Photo']=imagelist df_final.to_csv(OutputCSVFile,index = None) print('\nI created a CSV files with the updated positions names located in :\n'+ str(OutputCSVFile))
43.487685
121
0.611917
5611abb9c1467e8569e0b0fbf60813372cbaba72
3,629
rs
Rust
marwood/tests/predicate.rs
strtok/marwood
21b80ec1373ea6520bac5c02cf136fc4d88e31d3
[ "Apache-2.0", "MIT" ]
11
2022-01-02T22:29:17.000Z
2022-03-06T21:32:54.000Z
marwood/tests/predicate.rs
strtok/lisp
2a33501c603beebfe000c40f9da681185ecf3662
[ "Apache-2.0", "MIT" ]
2
2022-02-23T20:50:58.000Z
2022-02-24T17:15:36.000Z
marwood/tests/predicate.rs
strtok/marwood
21b80ec1373ea6520bac5c02cf136fc4d88e31d3
[ "Apache-2.0", "MIT" ]
1
2021-12-29T04:08:46.000Z
2021-12-29T04:08:46.000Z
#[macro_use] mod common; use marwood::cell::Cell; use marwood::lex; use marwood::parse; use marwood::vm::Vm; #[test] fn eqv() { evals![ "(define foo '(1 2 3))" => "#<void>", "(define bar '(1 2 3))" => "#<void>", "(define baz foo)" => "#<void>", "(eq? foo bar)" => "#f", "(eq? bar baz)" => "#f", "(eq? foo baz)" => "#t", "(eq? (cdr foo) (cdr baz))" => "#t", "(eq? (cons foo bar) (cons foo bar))" => "#t" ]; evals![ "(eq? 0 0)" => "#t", "(eq? #\\a #\\a)" => "#t", "(eq? '() '())" => "#t", "(eq? #f #f)" => "#t", "(eq? #t #t)" => "#t", "(eq? 'foo 'foo)" => "#t", "(eq? '(1 2 3) '(1 2 3))" => "#f", "(eq? #(1 2 3) #(1 2 3))" => "#f" ]; } #[test] fn equal() { evals![ "(define foo '(1 2 3))" => "#<void>", "(define bar '(1 2 3))" => "#<void>", "(define baz foo)" => "#<void>", "(equal? foo bar)" => "#t", "(equal? bar baz)" => "#t", "(equal? foo baz)" => "#t", "(equal? (cdr foo) (cdr baz))" => "#t", "(equal? (cons foo bar) (cons foo bar))" => "#t", "(equal? 0 0)" => "#t", "(equal? '() '())" => "#t", "(equal? #f #f)" => "#t", "(equal? #t #t)" => "#t", "(equal? 'foo 'foo)" => "#t", "(equal? #(1 2 3) #(1 2 3))" => "#t", "(equal? \"foo\" \"foo\")" => "#t", "(equal? #\\a #\\a)" => "#t" ]; } #[test] fn not() { evals![ "(not #t)" => "#f", "(not #f)" => "#t", "(not 'apples)" => "#f" ]; } #[test] fn unary_predicate() { evals![ "(number? 10)" => "#t", "(number? '10)" => "#t", "(number? 'apples)" => "#f", "(integer? 10)" => "#t", "(integer? 10/5)" => "#t", "(integer? 10/3)" => "#f", "(integer? 10.3)" => "#f", "(integer? 10)" => "#t", "(integer? 10/5)" => "#t", "(integer? 10/3)" => "#f", "(integer? 10.3)" => "#f", "(real? 10)" => "#t", "(real? 10/5)" => "#t", "(real? 10/3)" => "#t", "(real? 10.3)" => "#t", "(complex? 10)" => "#t", "(complex? 10/5)" => "#t", "(complex? 10/3)" => "#t", "(complex? 10.3)" => "#t", "(rational? 10)" => "#t", "(rational? 10/5)" => "#t", "(rational? 10/3)" => "#t", "(rational? 10.3)" => "#f" ]; evals![ "(boolean? #t)" => "#t", "(boolean? #f)" => "#t", "(boolean? '#t)" => "#t", "(boolean? '#f)" => "#t", "(boolean? 10)" => "#f" ]; evals![ "(symbol? 'apples)" => "#t", "(symbol? 10)" => "#f" ]; evals![ "(string? \"foo\")" => "#t", "(symbol? 10)" => "#f" ]; evals![ "(char? #\\a)" => "#t", "(char? 10)" => "#f" ]; evals![ "(symbol? 'apples)" => "#t", "(symbol? 10)" => "#f" ]; evals![ "(null? '())" => "#t", "(null? (cdr '(apples)))" => "#t", "(null? #f)" => "#f" ]; evals![ "(procedure? (lambda (x) x))" => "#t", "(define identity (lambda (x) x))" => "#<void>", "(procedure? identity)" => "#t" ]; evals![ "(pair? '(1 2 3))" => "#t", "(pair? '(1. 2))" => "#t", "(pair? (cons 1 2))" => "#t", "(pair? 'apples)" => "#f" ]; evals![ "(list? '())" => "#t", "(list? '(1 2))" => "#t", "(list? '(1 3 4))" => "#t", "(list? '(1 2 . 3))" => "#f" ]; evals![ "(vector? #(1 2 3))" => "#t" ]; }
23.718954
57
0.305869
be497bb8f903442ebae6932051b383590f2c06b5
656
ts
TypeScript
src/app/storage-service.service.ts
teja618/Barclays-eBookStore-Hackathon
0fa2ab79a96a50268960bde367df8e7259209e46
[ "MIT" ]
1
2021-01-24T06:52:15.000Z
2021-01-24T06:52:15.000Z
src/app/storage-service.service.ts
teja618/Barclays-Hackathon
0fa2ab79a96a50268960bde367df8e7259209e46
[ "MIT" ]
1
2021-02-13T15:38:30.000Z
2021-02-13T15:38:30.000Z
src/app/storage-service.service.ts
teja618/Barclays-eBookStore-Hackathon
0fa2ab79a96a50268960bde367df8e7259209e46
[ "MIT" ]
null
null
null
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class StorageServiceService { private cartList:any[]=[]; cartValue:number=0; private bookList:any[]=[]; cartCount:BehaviorSubject<number>=new BehaviorSubject<number>(0); constructor() { } setCartValue(val:any){ this.cartValue=val; } getCartValue(){ return this.cartValue; } setBookList(bookList:any){ this.bookList=bookList; } getBookList(){ return this.bookList; } getCartList(){ return this.cartList } setCartList(cartList:any){ this.cartList=cartList; } }
16
67
0.672256
74f502e43b0ae6eecd15e725a9d3a3d3ac51cb5f
4,596
css
CSS
homepage.css
highiqkid/wonderwomen
b40dab7d590d59194d463d30294e2dcf6a75007b
[ "MIT" ]
null
null
null
homepage.css
highiqkid/wonderwomen
b40dab7d590d59194d463d30294e2dcf6a75007b
[ "MIT" ]
null
null
null
homepage.css
highiqkid/wonderwomen
b40dab7d590d59194d463d30294e2dcf6a75007b
[ "MIT" ]
null
null
null
@import url(http://fonts.googleapis.com/css?family=Raleway:400,,800,900); html{ width:100%; height: 100%; } body{ width: 100%; height: 100%; font-family: 'Raleway', sans-serif; font-size: 20px; background-color:black; } .container{ position:relative; left: 0%; right: 0%; top: 35%; } .title{ font-weight: 600; color: white; font-size:120px; /* background: white;*/ /* background-position: 40% 50%;*/ /* position: static; -webkit-background-clip: text; position: static; */ text-align:center; line-height:100px; letter-spacing: -8px; } .subtitle{ display: block; text-align: center; text-transform: uppercase; padding-top:0px; font-size: 18px } ul { list-style-type: none; margin: 0; padding: 0; overflow: visible; background: rgba(0,0,0,0.75); position: fixed; width: 100%; left: 0%; right: 0%; margin: 0px; width: 100%; z-index: 500; } li { position: sticky; float: left; /* background: rgba(255,255,255,0.5);*/ } li a { display: block; color: white; text-align: center; padding: 30px 40px; /* background:rgba(255,255,255,0.5);*/ } li a:hover:not(.active) { font-style: bold; transform: scale(1.5); } li a, .dropbtn { display: inline-block; color: white; text-align: center; text-decoration: none; } li a:hover, .dropdown:hover .dropbtn { background-color: transparent; } li.dropdown { display: inline-block; } .dropdown-content { display: none; position: absolute; background-color: rgba(0,0,0,0.75); min-width: 160px; box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.2) } .dropdown-content a { color: white; padding: 7px 9px; text-decoration: none; display: block; text-align: left; } .dropdown-content a:hover {background-color: black} .dropdown:hover .dropdown-content { display: block; } .active { transform: #; } body{ background-image: url(http://cliparts.co/cliparts/ki8/5rn/ki85rn75T.jpg); background-size: cover; background-repeat: no-repeat; } #logo{ max-height: 105px; max-width: 165px; position: sticky; } #background{ position:absolute; z-index:-1; left:0px; right: 0px; top:875px; max-height:900px; max-width:1500px; } #image1{ position: absolute; left:40px; top:825px; max-height:400px; max-width: 500px; padding:5px; border:1px solid white; } #image2{ position: absolute; left:300px; top:825px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image3{ position: absolute; left:825px; top:825px; max-height: 250px; max-width: 250px; padding:5px; border:1px solid white; } #image4{ position: absolute; left:400px; top:1100px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image5{ position: absolute; left:40px; top:1775px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image6{ position: absolute; left:40px; top:1440px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image7{ position: absolute; left:40px; top:1100px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image8{ position: absolute; left:825px; top:1050px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image9{ position: absolute; left:325px; top:1750px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image13{ position: absolute; left:575px; top:1425px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image10{ position: absolute; left:1090px; top:825px; max-height: 175px; max-width: 250px; padding:5px; border:1px solid white; } #image11{ position: absolute; left:900px; top:1425px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image12{ position: absolute; left:850px; top:1750px; max-height: 300px; max-width: 500px; padding:5px; border:1px solid white; } #image14{ position: absolute; left:1150px; top:1000px; max-height: 400px; max-width: 600px; padding:5px; border:1px solid white; } .box { cursor: pointer; height: 168px; float: left; margin: 5px; position: relative; overflow: hidden; width: 168px; }
16.240283
78
0.622715
da41c64e6ec6ef024beb9d079b9211f97966c3ca
1,957
php
PHP
resources/views/frontend/news.blade.php
mukesh977/youth-club
735b33220936d41b72d97b8d65051b316c02bfeb
[ "MIT" ]
null
null
null
resources/views/frontend/news.blade.php
mukesh977/youth-club
735b33220936d41b72d97b8d65051b316c02bfeb
[ "MIT" ]
null
null
null
resources/views/frontend/news.blade.php
mukesh977/youth-club
735b33220936d41b72d97b8d65051b316c02bfeb
[ "MIT" ]
null
null
null
@extends('frontend.layout.app') @section('title') News @endsection @section('content') <section class="inner-page-banner"> <div class="inner-page-banner-image" style="background-image: url({{ asset('frontend/images/help.jpg') }});"> <div class="inner-page-banner-breadcrumb"> <div class="container"> <h2>{{ trans('data.news') }} </h2> <span><a href="{{ route('frontend_index') }}">{{ trans('data.home') }}</a> {{ trans('data.news') }}</span> </div> </div> </div> </section> <section class="main-news sec-padding"> <div class="container"> <div class="sec-title"> <span>{{ trans('data.stay_updated') }}</span> <h2><strong> {{ trans('data.our') }}</strong> {{ trans('data.latest_news') }}</h2> </div> <div class="main-news-inner"> <div class="row"> @foreach ($news as $item) <div class="col-lg-4 col-md-6 col-12"> <div class="main-news-single"> <div class="mns-img"> <a href="{{ route('frontend.newsSingle', $item->news_url) }}"><img src="{{ asset(Storage::url($item->featured_image)) }}" alt=""></a> </div> <div class="mns-text"> <i class="{{ $item->badge }}"></i> <span>{{ $item->created_at->format('d-M Y') }}</span> <h3><a href="{{ route('frontend.newsSingle', $item->news_url) }}">{{ $item->news_title }}</a> </h3> </div> </div> </div> @endforeach </div> {{ $news->links('vendor.pagination.rajeeb') }} </div> </div> </section> @endsection
37.634615
122
0.432294
b101a5c9390efb3b3774b4f66ffac1ceb8fcb3cd
1,094
ps1
PowerShell
PembrokePSwman/bin/Invoke-NewConsole.ps1
jpsider/PembrokePStman
18172e21ad4f049b2c9406b1d1d2988a02927cd6
[ "MIT" ]
null
null
null
PembrokePSwman/bin/Invoke-NewConsole.ps1
jpsider/PembrokePStman
18172e21ad4f049b2c9406b1d1d2988a02927cd6
[ "MIT" ]
7
2018-03-25T15:47:07.000Z
2018-04-06T17:25:52.000Z
PembrokePSwman/bin/Invoke-NewConsole.ps1
jpsider/PembrokePStman
18172e21ad4f049b2c9406b1d1d2988a02927cd6
[ "MIT" ]
null
null
null
<# .DESCRIPTION This Script will Execute a specified task, and submit any needed subtasks. .PARAMETER PropertyFilePath A Rest PropertyFilePath is required. .PARAMETER FunctionName A Rest PropertyFilePath is required. .EXAMPLE Start-Process -WindowStyle Normal powershell.exe -ArgumentList "-file Invoke-NewConsole.ps1", "-PropertyFilePath $PropertyFilePath" .NOTES This will execute a task against a specific target defined in the PembrokePS database. #> param( [Parameter(Mandatory=$true)][string]$PropertyFilePath, [Parameter(Mandatory=$true)][ValidateSet("Invoke-Wman", "Invoke-WmanKicker")] [string]$FunctionName ) # Import required Modules Get-Module -ListAvailable PembrokePS* | Import-Module try { switch ($FunctionName) { Invoke-WmanKicker { Invoke-WmanKicker -PropertyFilePath $PropertyFilePath } Invoke-Wman { Invoke-Wman -PropertyFilePath $PropertyFilePath } } } catch { $ErrorMessage = $_.Exception.Message $FailedItem = $_.Exception.ItemName Throw "Invoke-NewConsole: $ErrorMessage $FailedItem" }
29.567568
132
0.736746
97342a372937c988fbb8d1345d6dffd3e3705535
1,649
sql
SQL
database/init.sql
mckennalusk7/bbbs_bridge-it
608507dfb5bdd843b6ae28eabb08a2272cc082f9
[ "MIT" ]
1
2020-06-18T21:43:01.000Z
2020-06-18T21:43:01.000Z
database/init.sql
mckennalusk7/bbbs_bridge-it
608507dfb5bdd843b6ae28eabb08a2272cc082f9
[ "MIT" ]
null
null
null
database/init.sql
mckennalusk7/bbbs_bridge-it
608507dfb5bdd843b6ae28eabb08a2272cc082f9
[ "MIT" ]
null
null
null
-- USER is a reserved keyword with Postgres -- You must use double quotes in every query that user is in: -- ex. SELECT * FROM "user"; -- Otherwise you will have errors! CREATE TABLE "profile" ( "id" SERIAL PRIMARY KEY, "profile_type" int, "first_name" varchar(64), "last_name" varchar(64), "sex" int, "dob_or_age" text, "race" text, "address" text, "latitude" double precision, "longitude" double precision, "ems" text, "summary" text, "preference" jsonb, "interest" text, "l_parent" text, "l_parent_relationship_to_child" text, "b_employer" text, "b_occupation" text, "b_marital_status" text, "ready" boolean DEFAULT FALSE ); CREATE TABLE "status" ( "id" SERIAL PRIMARY KEY, "big_id" int, "little_id" int, "match" boolean DEFAULT NULL, "review" int DEFAULT NULL, "comment" text ); ALTER TABLE "status" ADD CONSTRAINT "unique_relationship_key" UNIQUE (big_id, little_id); CREATE TABLE "user" ( "id" SERIAL PRIMARY KEY, "email" varchar(128), "password" varchar(1000), "admin" boolean DEFAULT FALSE ); CREATE TABLE "review_type" ( "id" SERIAL PRIMARY KEY, "type" text ); CREATE TABLE "sex_type" ( "id" SERIAL PRIMARY KEY, "type" text ); CREATE TABLE "profile_type" ( "id" SERIAL PRIMARY KEY, "type" text ); INSERT INTO "review_type" ("type") VALUES ('unlikely'), ('maybe'), ('likely'); INSERT INTO "sex_type" ("type") VALUES ('female'), ('male'), ('couple m/f'); INSERT INTO "profile_type" ("type") VALUES ('big'), ('little'), ('couple');
18.120879
61
0.618557
666f72981abdf3d6d67d6cf430f4a9f597978a3e
15,273
sql
SQL
db/postgres/migrations/V1.0__baseline.sql
ricecooker/backend
38f1b874d84d3f50d3deed0f59ef4d189dcc5bb3
[ "Apache-2.0" ]
null
null
null
db/postgres/migrations/V1.0__baseline.sql
ricecooker/backend
38f1b874d84d3f50d3deed0f59ef4d189dcc5bb3
[ "Apache-2.0" ]
null
null
null
db/postgres/migrations/V1.0__baseline.sql
ricecooker/backend
38f1b874d84d3f50d3deed0f59ef4d189dcc5bb3
[ "Apache-2.0" ]
null
null
null
drop role if exists ${roles.primary}; create role ${roles.primary}; create extension if not exists "pgcrypto"; create schema audit authorization ${users.superuser.name}; create table audit.user ( op char(1) , ts timestamp , username text , id uuid , first_name text , last_name text , password_digest text , created_at timestamp , created_by uuid , updated_at timestamp , updated_by uuid ); create or replace function audit.user_audit() returns trigger as $$ begin if (TG_OP = 'DELETE') then insert into audit.user select 'D', now(), user, old.*; return old; elsif (TG_OP = 'UPDATE') then insert into audit.user select 'U', now(), user, new.*; return new; elsif (TG_OP = 'INSERT') then insert into audit.user select 'I', now(), user, new.*; return new; end if; return null; end; $$ language plpgsql; create table audit.channel ( op char(1) , ts timestamp , username text , id uuid , user_id uuid , channel_type_id uuid , identifier text , token text , token_expiration timestamp , verified_at timestamp , created_at timestamp , created_by uuid , updated_at timestamp , updated_by uuid ); create or replace function audit.channel_audit() returns trigger as $$ begin if (TG_OP = 'DELETE') then insert into audit.channel select 'D', now(), user, old.*; return old; elsif (TG_OP = 'UPDATE') then insert into audit.channel select 'U', now(), user, new.*; return new; elsif (TG_OP = 'INSERT') then insert into audit.channel select 'I', now(), user, new.*; return new; end if; return null; end; $$ language plpgsql; create table audit.address ( op char(1) , ts timestamp , username text , id uuid , street_number text , street text , unit text , city text , state text , postal_code text , lat decimal(9,6) , lng decimal(9,6) , created_at timestamp , created_by uuid , updated_at timestamp , updated_by uuid ); create or replace function audit.address_audit() returns trigger as $$ begin if (TG_OP = 'DELETE') then insert into audit.address select 'D', now(), user, old.*; return old; elsif (TG_OP = 'UPDATE') then insert into audit.address select 'U', now(), user, new.*; return new; elsif (TG_OP = 'INSERT') then insert into audit.address select 'I', now(), user, new.*; return new; end if; return null; end; $$ language plpgsql; create table audit.user_address ( op char(1) , ts timestamp , username text , id uuid , user_id uuid , address_id uuid , created_at timestamp , created_by uuid ); create or replace function audit.user_address_audit() returns trigger as $$ begin if (TG_OP = 'DELETE') then insert into audit.user_address select 'D', now(), user, old.*; return old; elsif (TG_OP = 'UPDATE') then insert into audit.user_address select 'U', now(), user, new.*; return new; elsif (TG_OP = 'INSERT') then insert into audit.user_address select 'I', now(), user, new.*; return new; end if; return null; end; $$ language plpgsql; -- -- Auth -- create table audit.permission ( op char(1) , ts timestamp , username text , id uuid , name text , description text , created_at timestamp , created_by uuid , updated_at timestamp , updated_by uuid ); create or replace function audit.permission_audit() returns trigger as $$ begin if (TG_OP = 'DELETE') then insert into audit.permission select 'D', now(), user, old.*; return old; elsif (TG_OP = 'UPDATE') then insert into audit.permission select 'U', now(), user, new.*; return new; elsif (TG_OP = 'INSERT') then insert into audit.permission select 'I', now(), user, new.*; return new; end if; return null; end; $$ language plpgsql; create table audit.role ( op char(1) , ts timestamp , username text , id uuid , name text , description text , created_at timestamp , created_by uuid , updated_at timestamp , updated_by uuid ); create or replace function audit.role_audit() returns trigger as $$ begin if (TG_OP = 'DELETE') then insert into audit.role select 'D', now(), user, old.*; return old; elsif (TG_OP = 'UPDATE') then insert into audit.role select 'U', now(), user, new.*; return new; elsif (TG_OP = 'INSERT') then insert into audit.role select 'I', now(), user, new.*; return new; end if; return null; end; $$ language plpgsql; create table audit.role_permission ( op char(1) , ts timestamp , username text , id uuid , role_id uuid , permission_id uuid , created_at timestamp , created_by uuid ); create or replace function audit.role_permission_audit() returns trigger as $$ begin if (TG_OP = 'DELETE') then insert into audit.role_permission select 'D', now(), user, old.*; return old; elsif (TG_OP = 'UPDATE') then insert into audit.role_permission select 'U', now(), user, new.*; return new; elsif (TG_OP = 'INSERT') then insert into audit.role_permission select 'I', now(), user, new.*; return new; end if; return null; end; $$ language plpgsql; create table audit.user_role ( op char(1) , ts timestamp , username text , id uuid , user_id uuid , role_id uuid , created_at timestamp , created_by uuid ); create or replace function audit.user_role_audit() returns trigger as $$ begin if (TG_OP = 'DELETE') then insert into audit.user_role select 'D', now(), user, old.*; return old; elsif (TG_OP = 'UPDATE') then insert into audit.user_role select 'U', now(), user, new.*; return new; elsif (TG_OP = 'INSERT') then insert into audit.user_role select 'I', now(), user, new.*; return new; end if; return null; end; $$ language plpgsql; -- end user-audit -- begin user info create table "user" ( id uuid primary key default gen_random_uuid() , first_name text not null , last_name text not null , password_digest text null -- nullable ie if you use social login , created_at timestamp not null default now() , created_by uuid null , updated_at timestamp not null default now() , updated_by uuid null ); insert into "user"(first_name, last_name, created_by, updated_by) values ('System', 'User'); update "user" set created_by = id, updated_by = id; alter table "user" alter column created_by set not null, alter column updated_by set not null; create trigger tg_user_audit before insert or update or delete on "user" for each row execute procedure audit.user_audit(); create table channel_type ( id uuid primary key default gen_random_uuid() , name text not null , created_at timestamp not null default now() , created_by uuid not null references "user"(id) ); create unique index unq_channel_type_name on channel_type(name); insert into channel_type (id, name, created_by) select c.id, c.name, u.id from (values ('4e3c5337-7d7d-4398-bfa7-c4e17bbffa21', 'email') , ('b9e260b7-72ce-4b38-9689-9f45266eff43', 'mobile')) as c(id, name) cross join "user" u; create table channel ( id uuid primary key default gen_random_uuid() , user_id uuid not null references "user"(id) , channel_type_id uuid not null references channel_type(id) , identifier text not null -- email address, google id, phone #, etc , token text null -- token used for verification , token_expiration timestamp null , verified_at timestamp null , created_at timestamp not null default now() , created_by uuid not null references "user"(id) , updated_at timestamp not null default now() , updated_by uuid not null references "user"(id) ); create unique index unq_channel_channel_type_identifier on channel(channel_type_id,identifier); create index idx_channel_user_id on channel(user_id); create unique index unq_channel_token on channel(token); create trigger tg_channel_audit before insert or update or delete on channel for each row execute procedure audit.channel_audit(); create table address ( id uuid primary key default gen_random_uuid() , street_number text , street text , unit text , city text not null , state text not null , postal_code text , lat decimal(9,6) , lng decimal(9,6) , created_at timestamp not null default now() , created_by uuid not null references "user"(id) , updated_at timestamp not null default now() , updated_by uuid not null references "user"(id) ); create trigger tg_address_audit before insert or update or delete on address for each row execute procedure audit.address_audit(); create table user_address ( id uuid primary key default gen_random_uuid() , user_id uuid not null references "user"(id) , address_id uuid not null references address(id) , created_at timestamp not null default now() , created_by uuid not null references "user"(id) ); create unique index unq_user_address on user_address(user_id, address_id); create trigger tg_user_address_audit before insert or update or delete on user_address for each row execute procedure audit.user_address_audit(); -- -- Auth -- create table "permission" ( id uuid primary key default gen_random_uuid() , name text not null , description text not null , created_at timestamp not null default now() , created_by uuid not null references "user"(id) , updated_at timestamp not null default now() , updated_by uuid not null references "user"(id) ); create unique index unq_permission_name on "permission"(name); create trigger tg_permission_audit before insert or update or delete on "permission" for each row execute procedure audit.permission_audit(); create table "role" ( id uuid primary key default gen_random_uuid() , name text not null , description text not null , created_at timestamp not null default now() , created_by uuid not null references "user"(id) , updated_at timestamp not null default now() , updated_by uuid not null references "user"(id) ); create unique index unq_role_name on "role"(name); create trigger tg_role_audit before insert or update or delete on "role" for each row execute procedure audit.role_audit(); create table role_permission ( id uuid primary key default gen_random_uuid() , role_id uuid not null references role(id) , permission_id uuid not null references permission(id) , created_at timestamp not null default now() , created_by uuid not null references "user"(id) ); create unique index unq_role_permission on role_permission(role_id, permission_id); create trigger tg_role_permission_audit before insert or update or delete on role_permission for each row execute procedure audit.role_permission_audit(); create table user_role ( id uuid primary key default gen_random_uuid() , user_id uuid not null references "user"(id) , role_id uuid not null references role(id) , created_at timestamp not null default now() , created_by uuid not null references "user"(id) ); create unique index unq_user_role on user_role(user_id, role_id); create trigger tg_user_role_audit before insert or update or delete on user_role for each row execute procedure audit.user_role_audit(); -- -- Access Tracking --- create table access_log ( id uuid primary key default gen_random_uuid() , action text not null , user_id uuid null references "user"(id) -- not all access requires login , params jsonb not null , remote_addr text not null , x_forwarded_for text null , server_name text not null , request_method text not null , uri text not null , headers jsonb not null , created_at timestamp not null default now() ); drop role if exists readonly; create role readonly login inherit password '${users.readonly.pass}'; grant usage on schema audit to ${roles.primary}; grant usage on schema public to ${roles.primary}; grant select, insert, update, delete on all tables in schema public to ${roles.primary}; grant select, insert on all tables in schema audit to ${roles.primary}; grant usage, select on all sequences in schema public to ${roles.primary}; grant usage on schema audit to readonly; grant usage on schema public to readonly; grant select on all tables in schema audit to readonly; grant select on all tables in schema public to readonly; revoke update, delete on access_log from ${roles.primary}; revoke truncate on access_log from ${roles.primary}; drop role if exists ${users.app.name}; create role ${users.app.name} with login inherit encrypted password '${users.app.pass}'; grant ${roles.primary} to ${users.app.name}; revoke connect on database ${database.name} from public; grant connect on database ${database.name} to ${users.app.name}; ------------------------------------------------------------------------ -- Clojure flavored JSONB Functions ------------------------------------------------------------------------ create or replace function array_last(xs anyarray) returns anyelement immutable as $$ begin return xs[array_length(xs, 1)]; end; $$ language plpgsql; create or replace function array_butlast(xs anyarray) returns anyarray immutable as $$ begin return xs[1:array_length(xs, 1) - 1]; end; $$ language plpgsql; create or replace function array_rest(xs anyarray) returns anyarray immutable as $$ begin return xs[2:]; end; $$ language plpgsql; -- nb if v is text you probably need to ::text it otherwise you get -- ERROR: could not determine polymorphic type because input has type "unknown" -- must make sure the last item is a map otherwise if vector won't do what you want -- no way of checking the type of the document element create or replace function jsonb_assoc_in(doc jsonb, path text[], v anyelement) returns jsonb immutable as $$ declare k text; -- the key actual_path text[]; new_val jsonb; begin k := array_last(path); actual_path := array_butlast(path); new_val := (doc #> actual_path) || jsonb_build_object(k, v); return jsonb_set(doc, actual_path, new_val); end; $$ language plpgsql;
30.668675
109
0.64506
ccb6e48d8b87f604e03f27418d9e33d774a5441d
164
ru
Ruby
config.ru
j-a-m-l/jewellery.rb
5e851dda972c23468fb2af9849994c084c38df70
[ "MIT" ]
3
2015-11-03T19:19:19.000Z
2015-12-14T14:03:39.000Z
config.ru
j-a-m-l/jewellery.rb
5e851dda972c23468fb2af9849994c084c38df70
[ "MIT" ]
1
2015-11-30T14:55:17.000Z
2015-12-14T16:33:08.000Z
config.ru
j-a-m-l/jewellery.rb
5e851dda972c23468fb2af9849994c084c38df70
[ "MIT" ]
null
null
null
require 'rubygems' require 'geminabox' Geminabox.data = '/geminabox/' Geminabox.rubygems_proxy = true Geminabox.allow_remote_failure = true run Geminabox::Server
18.222222
37
0.79878
da2812dc4d3893db86d90d4d3cdaeff539ef911b
1,311
dart
Dart
lib/domain/news_content.dart
tnews/news_crawl
a46b6a4615126bf5ac9b82822eba5a760c89e12a
[ "BSD-3-Clause" ]
null
null
null
lib/domain/news_content.dart
tnews/news_crawl
a46b6a4615126bf5ac9b82822eba5a760c89e12a
[ "BSD-3-Clause" ]
11
2019-10-08T16:32:55.000Z
2020-08-16T17:48:23.000Z
lib/domain/news_content.dart
tnews/news_crawl
a46b6a4615126bf5ac9b82822eba5a760c89e12a
[ "BSD-3-Clause" ]
null
null
null
part of tvc_crawl.domain; /** * @author tvc12 * @email [email protected] * @create date 2019-10-31 23:13:18 * @modify date 2019-10-31 23:13:18 * @desc BaseContent */ @immutable abstract class BaseNewsContent { static const String textType = 'text_content'; static const String imageType = 'text_content'; final String contentType; BaseNewsContent(this.contentType); @mustCallSuper Map<String, dynamic> toJson() { final Map<String, dynamic> data = <String, dynamic>{ 'content_type': contentType, }; return data; } } class TextContent extends BaseNewsContent { final String text; TextContent(this.text) : super(BaseNewsContent.textType); Map<String, dynamic> toJson() { final Map<String, dynamic> data = super.toJson(); addValueToMap('text', text, data); return data; } @override String toString() => text; } class ImageContent extends BaseNewsContent { final String text; final String imageUrl; ImageContent(this.imageUrl, this.text) : super(BaseNewsContent.imageType); Map<String, dynamic> toJson() { final Map<String, dynamic> data = super.toJson(); addValueToMap('text', text, data); addValueToMap('image', imageUrl, data); return data; } @override String toString() => 'url: $imageUrl, text: $text'; }
22.603448
76
0.690313
8294b790188200fef284527f8065575d6b965ae3
2,898
dart
Dart
global_wars/lib/models/play_card/play_card_settings.dart
LeoVen/FlutterApps
601215118db2bb23e4bf510187c194c6807d9ebb
[ "MIT" ]
null
null
null
global_wars/lib/models/play_card/play_card_settings.dart
LeoVen/FlutterApps
601215118db2bb23e4bf510187c194c6807d9ebb
[ "MIT" ]
null
null
null
global_wars/lib/models/play_card/play_card_settings.dart
LeoVen/FlutterApps
601215118db2bb23e4bf510187c194c6807d9ebb
[ "MIT" ]
null
null
null
import 'package:flutter/material.dart'; import 'package:global_wars/models/play_card/play_card_types.dart'; class PlayCardSettings { // Rarity static final colorRarity = { PlayCardRarity.common: Colors.grey, PlayCardRarity.uncommon: Colors.blue, PlayCardRarity.rare: Colors.purple, PlayCardRarity.legendary: Colors.amber, }; // Effectiveness static final colorEffectiveness = { PlayCardEffectiveness.noEffect: Colors.red[800], PlayCardEffectiveness.normalEffect: Colors.blue[800], PlayCardEffectiveness.goodEffect: Colors.green[800], PlayCardEffectiveness.highEffect: Colors.amber[800], }; static final effectIconsByIndex = typeIconsByIndex; static final typeIcons = { PlayCardType.highAir: Icons.cloud, PlayCardType.lowAir: Icons.filter_drama, PlayCardType.ground: Icons.landscape, PlayCardType.water: Icons.opacity, PlayCardType.underWater: Icons.bubble_chart, }; static final typeIconsByIndex = [ typeIcons[PlayCardType.highAir], typeIcons[PlayCardType.lowAir], typeIcons[PlayCardType.ground], typeIcons[PlayCardType.water], typeIcons[PlayCardType.underWater], ]; // Temporary // PlayCard subtype icons static final subtypeIcons = { PlayCardSubType.artillery: Icon(Icons.accessibility_new), PlayCardSubType.boat: Icon(Icons.ac_unit), PlayCardSubType.bomber: Icon(Icons.label), PlayCardSubType.helicopter: Icon(Icons.healing), PlayCardSubType.infantry: Icon(Icons.group), PlayCardSubType.plane: Icon(Icons.airplanemode_active), PlayCardSubType.submarine: Icon(Icons.fiber_smart_record), }; // Stats static final nameStats = { PlayCardStats.hitpoints: "Hitpoints", PlayCardStats.armor: "Armor", PlayCardStats.firepower: "Firepower", PlayCardStats.precision: "Precision", PlayCardStats.evasion: "Evasion", }; static const minStat = 0; static const maxStat = 10; // PlayCard cost static final costIcons = { PlayCardCosts.manpower: Icon(Icons.person, color: Colors.pink[200]), PlayCardCosts.equipment: Icon(Icons.build, color: Colors.brown), PlayCardCosts.metal: Icon(Icons.dehaze, color: Colors.blueGrey[700]), PlayCardCosts.electronics: Icon(Icons.settings_input_component, color: Colors.red[400]), }; static final costIconsByIndex = [ costIcons[PlayCardCosts.manpower], costIcons[PlayCardCosts.equipment], costIcons[PlayCardCosts.metal], costIcons[PlayCardCosts.electronics], ]; static final nameCosts = { PlayCardCosts.manpower: "Manpower", PlayCardCosts.equipment: "Equipment", PlayCardCosts.metal: "Metal", PlayCardCosts.electronics: "Electronics", }; static final nameCostsByIndex = [ nameCosts[PlayCardCosts.manpower], nameCosts[PlayCardCosts.equipment], nameCosts[PlayCardCosts.metal], nameCosts[PlayCardCosts.electronics], ]; }
31.16129
73
0.73706
3b6d361ed986a56b4dc325cd81cc2a59f5abe8fe
374,684
rs
Rust
sdk/lambda/src/operation_deser.rs
DreamStageLive/aws-sdk-rust
112463db6195c0b8c052495a1794e07bf0e2f274
[ "Apache-2.0" ]
null
null
null
sdk/lambda/src/operation_deser.rs
DreamStageLive/aws-sdk-rust
112463db6195c0b8c052495a1794e07bf0e2f274
[ "Apache-2.0" ]
null
null
null
sdk/lambda/src/operation_deser.rs
DreamStageLive/aws-sdk-rust
112463db6195c0b8c052495a1794e07bf0e2f274
[ "Apache-2.0" ]
null
null
null
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(clippy::unnecessary_wraps)] pub fn parse_add_layer_version_permission_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::AddLayerVersionPermissionOutput, crate::error::AddLayerVersionPermissionError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::AddLayerVersionPermissionError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::AddLayerVersionPermissionError { meta: generic, kind: crate::error::AddLayerVersionPermissionErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "PolicyLengthExceededException" => crate::error::AddLayerVersionPermissionError { meta: generic, kind: crate::error::AddLayerVersionPermissionErrorKind::PolicyLengthExceededException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::policy_length_exceeded_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_policy_length_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "PreconditionFailedException" => { crate::error::AddLayerVersionPermissionError { meta: generic, kind: crate::error::AddLayerVersionPermissionErrorKind::PreconditionFailedException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } "ResourceConflictException" => { crate::error::AddLayerVersionPermissionError { meta: generic, kind: crate::error::AddLayerVersionPermissionErrorKind::ResourceConflictException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } "ResourceNotFoundException" => { crate::error::AddLayerVersionPermissionError { meta: generic, kind: crate::error::AddLayerVersionPermissionErrorKind::ResourceNotFoundException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } "ServiceException" => crate::error::AddLayerVersionPermissionError { meta: generic, kind: crate::error::AddLayerVersionPermissionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::AddLayerVersionPermissionError { meta: generic, kind: crate::error::AddLayerVersionPermissionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_add_layer_version_permission_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::AddLayerVersionPermissionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::AddLayerVersionPermissionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_add_layer_version_permission_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::AddLayerVersionPermissionOutput, crate::error::AddLayerVersionPermissionError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::add_layer_version_permission_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_add_layer_version_permission( response.body().as_ref(), output, ) .map_err(crate::error::AddLayerVersionPermissionError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_add_permission_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::AddPermissionOutput, crate::error::AddPermissionError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::AddPermissionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::AddPermissionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::AddPermissionError { meta: generic, kind: crate::error::AddPermissionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "PolicyLengthExceededException" => crate::error::AddPermissionError { meta: generic, kind: crate::error::AddPermissionErrorKind::PolicyLengthExceededException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::policy_length_exceeded_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_policy_length_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "PreconditionFailedException" => { crate::error::AddPermissionError { meta: generic, kind: crate::error::AddPermissionErrorKind::PreconditionFailedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ResourceConflictException" => crate::error::AddPermissionError { meta: generic, kind: crate::error::AddPermissionErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::AddPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::AddPermissionError { meta: generic, kind: crate::error::AddPermissionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::AddPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::AddPermissionError { meta: generic, kind: crate::error::AddPermissionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::AddPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::AddPermissionError { meta: generic, kind: crate::error::AddPermissionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::AddPermissionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_add_permission_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::AddPermissionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::AddPermissionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_add_permission_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::AddPermissionOutput, crate::error::AddPermissionError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::add_permission_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_add_permission(response.body().as_ref(), output) .map_err(crate::error::AddPermissionError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_create_alias_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::CreateAliasOutput, crate::error::CreateAliasError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::CreateAliasError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::CreateAliasError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::CreateAliasError { meta: generic, kind: crate::error::CreateAliasErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::CreateAliasError { meta: generic, kind: crate::error::CreateAliasErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::CreateAliasError { meta: generic, kind: crate::error::CreateAliasErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::CreateAliasError { meta: generic, kind: crate::error::CreateAliasErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::CreateAliasError { meta: generic, kind: crate::error::CreateAliasErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateAliasError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_create_alias_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateAliasError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::CreateAliasError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_create_alias_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::CreateAliasOutput, crate::error::CreateAliasError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::create_alias_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_create_alias(response.body().as_ref(), output) .map_err(crate::error::CreateAliasError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_create_code_signing_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::CreateCodeSigningConfigOutput, crate::error::CreateCodeSigningConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::CreateCodeSigningConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::CreateCodeSigningConfigError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::CreateCodeSigningConfigError { meta: generic, kind: crate::error::CreateCodeSigningConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::CreateCodeSigningConfigError { meta: generic, kind: crate::error::CreateCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::CreateCodeSigningConfigError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_create_code_signing_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::CreateCodeSigningConfigOutput, crate::error::CreateCodeSigningConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::create_code_signing_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_create_code_signing_config( response.body().as_ref(), output, ) .map_err(crate::error::CreateCodeSigningConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_create_event_source_mapping_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::CreateEventSourceMappingOutput, crate::error::CreateEventSourceMappingError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::CreateEventSourceMappingError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::CreateEventSourceMappingError { meta: generic, kind: crate::error::CreateEventSourceMappingErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceConflictException" => crate::error::CreateEventSourceMappingError { meta: generic, kind: crate::error::CreateEventSourceMappingErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::CreateEventSourceMappingError { meta: generic, kind: crate::error::CreateEventSourceMappingErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::CreateEventSourceMappingError { meta: generic, kind: crate::error::CreateEventSourceMappingErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::CreateEventSourceMappingError { meta: generic, kind: crate::error::CreateEventSourceMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_create_event_source_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::CreateEventSourceMappingError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_create_event_source_mapping_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::CreateEventSourceMappingOutput, crate::error::CreateEventSourceMappingError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::create_event_source_mapping_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_create_event_source_mapping( response.body().as_ref(), output, ) .map_err(crate::error::CreateEventSourceMappingError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_create_function_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::CreateFunctionOutput, crate::error::CreateFunctionError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::CreateFunctionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::CreateFunctionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "CodeSigningConfigNotFoundException" => crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::CodeSigningConfigNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::code_signing_config_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "CodeStorageExceededException" => { crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::CodeStorageExceededException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::code_storage_exceeded_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_storage_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "CodeVerificationFailedException" => crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::CodeVerificationFailedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::code_verification_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_verification_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidCodeSignatureException" => crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::InvalidCodeSignatureException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_code_signature_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_code_signature_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidParameterValueException" => crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::CreateFunctionError { meta: generic, kind: crate::error::CreateFunctionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::CreateFunctionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_create_function_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::CreateFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::CreateFunctionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_create_function_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::CreateFunctionOutput, crate::error::CreateFunctionError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::create_function_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_create_function(response.body().as_ref(), output) .map_err(crate::error::CreateFunctionError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_alias_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::DeleteAliasOutput, crate::error::DeleteAliasError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteAliasError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::DeleteAliasError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteAliasError { meta: generic, kind: crate::error::DeleteAliasErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::DeleteAliasError { meta: generic, kind: crate::error::DeleteAliasErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::DeleteAliasError { meta: generic, kind: crate::error::DeleteAliasErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::DeleteAliasError { meta: generic, kind: crate::error::DeleteAliasErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteAliasError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_delete_alias_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteAliasError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::DeleteAliasError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_alias_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::DeleteAliasOutput, crate::error::DeleteAliasError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_alias_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_code_signing_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteCodeSigningConfigOutput, crate::error::DeleteCodeSigningConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteCodeSigningConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::DeleteCodeSigningConfigError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteCodeSigningConfigError { meta: generic, kind: crate::error::DeleteCodeSigningConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::DeleteCodeSigningConfigError { meta: generic, kind: crate::error::DeleteCodeSigningConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::DeleteCodeSigningConfigError { meta: generic, kind: crate::error::DeleteCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::DeleteCodeSigningConfigError { meta: generic, kind: crate::error::DeleteCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::DeleteCodeSigningConfigError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_code_signing_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteCodeSigningConfigOutput, crate::error::DeleteCodeSigningConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_code_signing_config_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_event_source_mapping_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteEventSourceMappingOutput, crate::error::DeleteEventSourceMappingError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::DeleteEventSourceMappingError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteEventSourceMappingError { meta: generic, kind: crate::error::DeleteEventSourceMappingErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceInUseException" => crate::error::DeleteEventSourceMappingError { meta: generic, kind: crate::error::DeleteEventSourceMappingErrorKind::ResourceInUseException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_in_use_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::DeleteEventSourceMappingError { meta: generic, kind: crate::error::DeleteEventSourceMappingErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::DeleteEventSourceMappingError { meta: generic, kind: crate::error::DeleteEventSourceMappingErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::DeleteEventSourceMappingError { meta: generic, kind: crate::error::DeleteEventSourceMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_delete_event_source_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::DeleteEventSourceMappingError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_event_source_mapping_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteEventSourceMappingOutput, crate::error::DeleteEventSourceMappingError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_event_source_mapping_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_delete_event_source_mapping( response.body().as_ref(), output, ) .map_err(crate::error::DeleteEventSourceMappingError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_function_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::DeleteFunctionOutput, crate::error::DeleteFunctionError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteFunctionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::DeleteFunctionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteFunctionError { meta: generic, kind: crate::error::DeleteFunctionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::DeleteFunctionError { meta: generic, kind: crate::error::DeleteFunctionErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::DeleteFunctionError { meta: generic, kind: crate::error::DeleteFunctionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::DeleteFunctionError { meta: generic, kind: crate::error::DeleteFunctionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::DeleteFunctionError { meta: generic, kind: crate::error::DeleteFunctionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteFunctionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_delete_function_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::DeleteFunctionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_function_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::DeleteFunctionOutput, crate::error::DeleteFunctionError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_function_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_function_code_signing_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteFunctionCodeSigningConfigOutput, crate::error::DeleteFunctionCodeSigningConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "CodeSigningConfigNotFoundException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::code_signing_config_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "InvalidParameterValueException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceConflictException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::DeleteFunctionCodeSigningConfigError { meta: generic, kind: crate::error::DeleteFunctionCodeSigningConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionCodeSigningConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_delete_function_code_signing_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteFunctionCodeSigningConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::DeleteFunctionCodeSigningConfigError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_function_code_signing_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteFunctionCodeSigningConfigOutput, crate::error::DeleteFunctionCodeSigningConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_function_code_signing_config_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_function_concurrency_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteFunctionConcurrencyOutput, crate::error::DeleteFunctionConcurrencyError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::DeleteFunctionConcurrencyError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteFunctionConcurrencyError { meta: generic, kind: crate::error::DeleteFunctionConcurrencyErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceConflictException" => { crate::error::DeleteFunctionConcurrencyError { meta: generic, kind: crate::error::DeleteFunctionConcurrencyErrorKind::ResourceConflictException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } "ResourceNotFoundException" => { crate::error::DeleteFunctionConcurrencyError { meta: generic, kind: crate::error::DeleteFunctionConcurrencyErrorKind::ResourceNotFoundException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } "ServiceException" => crate::error::DeleteFunctionConcurrencyError { meta: generic, kind: crate::error::DeleteFunctionConcurrencyErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::DeleteFunctionConcurrencyError { meta: generic, kind: crate::error::DeleteFunctionConcurrencyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteFunctionConcurrencyError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_delete_function_concurrency_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteFunctionConcurrencyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::DeleteFunctionConcurrencyError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_function_concurrency_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteFunctionConcurrencyOutput, crate::error::DeleteFunctionConcurrencyError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_function_concurrency_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_function_event_invoke_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteFunctionEventInvokeConfigOutput, crate::error::DeleteFunctionEventInvokeConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceConflictException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::DeleteFunctionEventInvokeConfigError { meta: generic, kind: crate::error::DeleteFunctionEventInvokeConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteFunctionEventInvokeConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_delete_function_event_invoke_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteFunctionEventInvokeConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::DeleteFunctionEventInvokeConfigError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_function_event_invoke_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteFunctionEventInvokeConfigOutput, crate::error::DeleteFunctionEventInvokeConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_function_event_invoke_config_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_layer_version_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteLayerVersionOutput, crate::error::DeleteLayerVersionError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteLayerVersionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::DeleteLayerVersionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "ServiceException" => crate::error::DeleteLayerVersionError { meta: generic, kind: crate::error::DeleteLayerVersionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteLayerVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::DeleteLayerVersionError { meta: generic, kind: crate::error::DeleteLayerVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::DeleteLayerVersionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_delete_layer_version_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteLayerVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::DeleteLayerVersionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_layer_version_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteLayerVersionOutput, crate::error::DeleteLayerVersionError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_layer_version_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_provisioned_concurrency_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteProvisionedConcurrencyConfigOutput, crate::error::DeleteProvisionedConcurrencyConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled(generic)) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceConflictException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::DeleteProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::DeleteProvisionedConcurrencyConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::DeleteProvisionedConcurrencyConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_delete_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::DeleteProvisionedConcurrencyConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::DeleteProvisionedConcurrencyConfigError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_delete_provisioned_concurrency_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::DeleteProvisionedConcurrencyConfigOutput, crate::error::DeleteProvisionedConcurrencyConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::delete_provisioned_concurrency_config_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_account_settings_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetAccountSettingsOutput, crate::error::GetAccountSettingsError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetAccountSettingsError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetAccountSettingsError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "ServiceException" => crate::error::GetAccountSettingsError { meta: generic, kind: crate::error::GetAccountSettingsErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAccountSettingsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetAccountSettingsError { meta: generic, kind: crate::error::GetAccountSettingsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAccountSettingsError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_account_settings_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetAccountSettingsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetAccountSettingsError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_account_settings_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetAccountSettingsOutput, crate::error::GetAccountSettingsError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_account_settings_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_account_settings( response.body().as_ref(), output, ) .map_err(crate::error::GetAccountSettingsError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_alias_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::GetAliasOutput, crate::error::GetAliasError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetAliasError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetAliasError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetAliasError { meta: generic, kind: crate::error::GetAliasErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetAliasError { meta: generic, kind: crate::error::GetAliasErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetAliasError { meta: generic, kind: crate::error::GetAliasErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetAliasError { meta: generic, kind: crate::error::GetAliasErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetAliasError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_alias_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetAliasError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetAliasError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_alias_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::GetAliasOutput, crate::error::GetAliasError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_alias_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_alias(response.body().as_ref(), output) .map_err(crate::error::GetAliasError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_code_signing_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetCodeSigningConfigOutput, crate::error::GetCodeSigningConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetCodeSigningConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetCodeSigningConfigError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetCodeSigningConfigError { meta: generic, kind: crate::error::GetCodeSigningConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetCodeSigningConfigError { meta: generic, kind: crate::error::GetCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetCodeSigningConfigError { meta: generic, kind: crate::error::GetCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetCodeSigningConfigError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_code_signing_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetCodeSigningConfigOutput, crate::error::GetCodeSigningConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_code_signing_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_code_signing_config( response.body().as_ref(), output, ) .map_err(crate::error::GetCodeSigningConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_event_source_mapping_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetEventSourceMappingOutput, crate::error::GetEventSourceMappingError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetEventSourceMappingError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetEventSourceMappingError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetEventSourceMappingError { meta: generic, kind: crate::error::GetEventSourceMappingErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetEventSourceMappingError { meta: generic, kind: crate::error::GetEventSourceMappingErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetEventSourceMappingError { meta: generic, kind: crate::error::GetEventSourceMappingErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetEventSourceMappingError { meta: generic, kind: crate::error::GetEventSourceMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetEventSourceMappingError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_event_source_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetEventSourceMappingError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_event_source_mapping_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetEventSourceMappingOutput, crate::error::GetEventSourceMappingError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_event_source_mapping_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_event_source_mapping( response.body().as_ref(), output, ) .map_err(crate::error::GetEventSourceMappingError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::GetFunctionOutput, crate::error::GetFunctionError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetFunctionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetFunctionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetFunctionError { meta: generic, kind: crate::error::GetFunctionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetFunctionError { meta: generic, kind: crate::error::GetFunctionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetFunctionError { meta: generic, kind: crate::error::GetFunctionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetFunctionError { meta: generic, kind: crate::error::GetFunctionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_function_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetFunctionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::GetFunctionOutput, crate::error::GetFunctionError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_function_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_function(response.body().as_ref(), output) .map_err(crate::error::GetFunctionError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_code_signing_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetFunctionCodeSigningConfigOutput, crate::error::GetFunctionCodeSigningConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::GetFunctionCodeSigningConfigError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetFunctionCodeSigningConfigError { meta: generic, kind: crate::error::GetFunctionCodeSigningConfigErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceNotFoundException" => crate::error::GetFunctionCodeSigningConfigError { meta: generic, kind: crate::error::GetFunctionCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::GetFunctionCodeSigningConfigError { meta: generic, kind: crate::error::GetFunctionCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => { crate::error::GetFunctionCodeSigningConfigError { meta: generic, kind: crate::error::GetFunctionCodeSigningConfigErrorKind::TooManyRequestsException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_function_code_signing_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetFunctionCodeSigningConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } _ => crate::error::GetFunctionCodeSigningConfigError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_code_signing_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetFunctionCodeSigningConfigOutput, crate::error::GetFunctionCodeSigningConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_function_code_signing_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_function_code_signing_config( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionCodeSigningConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_concurrency_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetFunctionConcurrencyOutput, crate::error::GetFunctionConcurrencyError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::GetFunctionConcurrencyError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetFunctionConcurrencyError { meta: generic, kind: crate::error::GetFunctionConcurrencyErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetFunctionConcurrencyError { meta: generic, kind: crate::error::GetFunctionConcurrencyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetFunctionConcurrencyError { meta: generic, kind: crate::error::GetFunctionConcurrencyErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetFunctionConcurrencyError { meta: generic, kind: crate::error::GetFunctionConcurrencyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_function_concurrency_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetFunctionConcurrencyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetFunctionConcurrencyError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_concurrency_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetFunctionConcurrencyOutput, crate::error::GetFunctionConcurrencyError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_function_concurrency_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_function_concurrency( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionConcurrencyError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_configuration_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetFunctionConfigurationOutput, crate::error::GetFunctionConfigurationError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetFunctionConfigurationError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::GetFunctionConfigurationError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetFunctionConfigurationError { meta: generic, kind: crate::error::GetFunctionConfigurationErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionConfigurationError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceNotFoundException" => { crate::error::GetFunctionConfigurationError { meta: generic, kind: crate::error::GetFunctionConfigurationErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionConfigurationError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetFunctionConfigurationError { meta: generic, kind: crate::error::GetFunctionConfigurationErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionConfigurationError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetFunctionConfigurationError { meta: generic, kind: crate::error::GetFunctionConfigurationErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionConfigurationError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_function_configuration_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetFunctionConfigurationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetFunctionConfigurationError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_configuration_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetFunctionConfigurationOutput, crate::error::GetFunctionConfigurationError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_function_configuration_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_function_configuration( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionConfigurationError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_event_invoke_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetFunctionEventInvokeConfigOutput, crate::error::GetFunctionEventInvokeConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::GetFunctionEventInvokeConfigError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetFunctionEventInvokeConfigError { meta: generic, kind: crate::error::GetFunctionEventInvokeConfigErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceNotFoundException" => crate::error::GetFunctionEventInvokeConfigError { meta: generic, kind: crate::error::GetFunctionEventInvokeConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::GetFunctionEventInvokeConfigError { meta: generic, kind: crate::error::GetFunctionEventInvokeConfigErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => { crate::error::GetFunctionEventInvokeConfigError { meta: generic, kind: crate::error::GetFunctionEventInvokeConfigErrorKind::TooManyRequestsException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_function_event_invoke_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetFunctionEventInvokeConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } _ => crate::error::GetFunctionEventInvokeConfigError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_function_event_invoke_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetFunctionEventInvokeConfigOutput, crate::error::GetFunctionEventInvokeConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_function_event_invoke_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_function_event_invoke_config( response.body().as_ref(), output, ) .map_err(crate::error::GetFunctionEventInvokeConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_layer_version_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::GetLayerVersionOutput, crate::error::GetLayerVersionError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetLayerVersionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetLayerVersionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetLayerVersionError { meta: generic, kind: crate::error::GetLayerVersionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetLayerVersionError { meta: generic, kind: crate::error::GetLayerVersionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetLayerVersionError { meta: generic, kind: crate::error::GetLayerVersionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetLayerVersionError { meta: generic, kind: crate::error::GetLayerVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_layer_version_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetLayerVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetLayerVersionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_layer_version_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::GetLayerVersionOutput, crate::error::GetLayerVersionError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_layer_version_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_layer_version(response.body().as_ref(), output) .map_err(crate::error::GetLayerVersionError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_layer_version_by_arn_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetLayerVersionByArnOutput, crate::error::GetLayerVersionByArnError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetLayerVersionByArnError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetLayerVersionByArnError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetLayerVersionByArnError { meta: generic, kind: crate::error::GetLayerVersionByArnErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionByArnError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetLayerVersionByArnError { meta: generic, kind: crate::error::GetLayerVersionByArnErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionByArnError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetLayerVersionByArnError { meta: generic, kind: crate::error::GetLayerVersionByArnErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionByArnError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetLayerVersionByArnError { meta: generic, kind: crate::error::GetLayerVersionByArnErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionByArnError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_layer_version_by_arn_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetLayerVersionByArnError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetLayerVersionByArnError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_layer_version_by_arn_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetLayerVersionByArnOutput, crate::error::GetLayerVersionByArnError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_layer_version_by_arn_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_layer_version_by_arn( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionByArnError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_layer_version_policy_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetLayerVersionPolicyOutput, crate::error::GetLayerVersionPolicyError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetLayerVersionPolicyError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetLayerVersionPolicyError { meta: generic, kind: crate::error::GetLayerVersionPolicyErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetLayerVersionPolicyError { meta: generic, kind: crate::error::GetLayerVersionPolicyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetLayerVersionPolicyError { meta: generic, kind: crate::error::GetLayerVersionPolicyErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetLayerVersionPolicyError { meta: generic, kind: crate::error::GetLayerVersionPolicyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_layer_version_policy_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetLayerVersionPolicyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetLayerVersionPolicyError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_layer_version_policy_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetLayerVersionPolicyOutput, crate::error::GetLayerVersionPolicyError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_layer_version_policy_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_layer_version_policy( response.body().as_ref(), output, ) .map_err(crate::error::GetLayerVersionPolicyError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_policy_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::GetPolicyOutput, crate::error::GetPolicyError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetPolicyError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetPolicyError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetPolicyError { meta: generic, kind: crate::error::GetPolicyErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetPolicyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::GetPolicyError { meta: generic, kind: crate::error::GetPolicyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetPolicyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::GetPolicyError { meta: generic, kind: crate::error::GetPolicyErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetPolicyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::GetPolicyError { meta: generic, kind: crate::error::GetPolicyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::GetPolicyError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_policy_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetPolicyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::GetPolicyError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_policy_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::GetPolicyOutput, crate::error::GetPolicyError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_policy_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_policy(response.body().as_ref(), output) .map_err(crate::error::GetPolicyError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_provisioned_concurrency_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetProvisionedConcurrencyConfigOutput, crate::error::GetProvisionedConcurrencyConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::GetProvisionedConcurrencyConfigError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ProvisionedConcurrencyConfigNotFoundException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ProvisionedConcurrencyConfigNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::provisioned_concurrency_config_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_provisioned_concurrency_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::GetProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::GetProvisionedConcurrencyConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_get_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::GetProvisionedConcurrencyConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::GetProvisionedConcurrencyConfigError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_get_provisioned_concurrency_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::GetProvisionedConcurrencyConfigOutput, crate::error::GetProvisionedConcurrencyConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::get_provisioned_concurrency_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_get_provisioned_concurrency_config( response.body().as_ref(), output, ) .map_err(crate::error::GetProvisionedConcurrencyConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_invoke_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::InvokeOutput, crate::error::InvokeError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::InvokeError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::InvokeError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "EC2AccessDeniedException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::Ec2AccessDeniedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::ec2_access_denied_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_ec2_access_denied_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "EC2ThrottledException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::Ec2ThrottledException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::ec2_throttled_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_ec2_throttled_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "EC2UnexpectedException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::Ec2UnexpectedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::ec2_unexpected_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_ec2_unexpected_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "EFSIOException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::EfsioException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::efsio_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_efsio_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "EFSMountConnectivityException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::EfsMountConnectivityException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::efs_mount_connectivity_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_efs_mount_connectivity_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "EFSMountFailureException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::EfsMountFailureException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::efs_mount_failure_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_efs_mount_failure_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "EFSMountTimeoutException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::EfsMountTimeoutException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::efs_mount_timeout_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_efs_mount_timeout_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ENILimitReachedException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::EniLimitReachedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::eni_limit_reached_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_eni_limit_reached_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidParameterValueException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidRequestContentException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::InvalidRequestContentException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_request_content_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_request_content_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidRuntimeException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::InvalidRuntimeException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_runtime_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_runtime_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidSecurityGroupIDException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::InvalidSecurityGroupIdException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_security_group_id_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_security_group_id_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidSubnetIDException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::InvalidSubnetIdException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_subnet_id_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_subnet_id_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidZipFileException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::InvalidZipFileException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_zip_file_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_zip_file_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "KMSAccessDeniedException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::KmsAccessDeniedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::kms_access_denied_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_kms_access_denied_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "KMSDisabledException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::KmsDisabledException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::kms_disabled_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_kms_disabled_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "KMSInvalidStateException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::KmsInvalidStateException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::kms_invalid_state_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_kms_invalid_state_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "KMSNotFoundException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::KmsNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::kms_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_kms_not_found_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "RequestTooLargeException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::RequestTooLargeException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::request_too_large_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_request_too_large_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ResourceNotReadyException" => { crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::ResourceNotReadyException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_ready_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_ready_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "SubnetIPAddressLimitReachedException" => { crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::SubnetIpAddressLimitReachedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::subnet_ip_address_limit_reached_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_subnet_ip_address_limit_reached_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "TooManyRequestsException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_invoke_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::InvokeError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "UnsupportedMediaTypeException" => crate::error::InvokeError { meta: generic, kind: crate::error::InvokeErrorKind::UnsupportedMediaTypeException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::unsupported_media_type_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_unsupported_media_type_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::InvokeError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_invoke_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::InvokeOutput, crate::error::InvokeError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::invoke_output::Builder::default(); let _ = response; output = output.set_executed_version( crate::http_serde::deser_header_invoke_invoke_output_executed_version( response.headers(), ) .map_err(|_| { crate::error::InvokeError::unhandled( "Failed to parse ExecutedVersion from header `X-Amz-Executed-Version", ) })?, ); output = output.set_function_error( crate::http_serde::deser_header_invoke_invoke_output_function_error(response.headers()) .map_err(|_| { crate::error::InvokeError::unhandled( "Failed to parse FunctionError from header `X-Amz-Function-Error", ) })?, ); output = output.set_log_result( crate::http_serde::deser_header_invoke_invoke_output_log_result(response.headers()) .map_err(|_| { crate::error::InvokeError::unhandled( "Failed to parse LogResult from header `X-Amz-Log-Result", ) })?, ); output = output.set_payload( crate::http_serde::deser_payload_invoke_invoke_output_payload( response.body().as_ref(), )?, ); output = output.set_status_code(Some(response.status().as_u16() as _)); output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_invoke_async_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::InvokeAsyncOutput, crate::error::InvokeAsyncError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::InvokeAsyncError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::InvokeAsyncError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidRequestContentException" => crate::error::InvokeAsyncError { meta: generic, kind: crate::error::InvokeAsyncErrorKind::InvalidRequestContentException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_request_content_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_request_content_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeAsyncError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidRuntimeException" => crate::error::InvokeAsyncError { meta: generic, kind: crate::error::InvokeAsyncErrorKind::InvalidRuntimeException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_runtime_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_runtime_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeAsyncError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::InvokeAsyncError { meta: generic, kind: crate::error::InvokeAsyncErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeAsyncError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::InvokeAsyncError { meta: generic, kind: crate::error::InvokeAsyncErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::InvokeAsyncError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::InvokeAsyncError { meta: generic, kind: crate::error::InvokeAsyncErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::InvokeAsyncError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::InvokeAsyncError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_invoke_async_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::InvokeAsyncOutput, crate::error::InvokeAsyncError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::invoke_async_output::Builder::default(); let _ = response; output = output.set_status(Some(response.status().as_u16() as _)); output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_aliases_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListAliasesOutput, crate::error::ListAliasesError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListAliasesError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::ListAliasesError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListAliasesError { meta: generic, kind: crate::error::ListAliasesErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListAliasesError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::ListAliasesError { meta: generic, kind: crate::error::ListAliasesErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListAliasesError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::ListAliasesError { meta: generic, kind: crate::error::ListAliasesErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListAliasesError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::ListAliasesError { meta: generic, kind: crate::error::ListAliasesErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListAliasesError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_aliases_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListAliasesError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::ListAliasesError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_aliases_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListAliasesOutput, crate::error::ListAliasesError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_aliases_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_aliases(response.body().as_ref(), output) .map_err(crate::error::ListAliasesError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_code_signing_configs_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListCodeSigningConfigsOutput, crate::error::ListCodeSigningConfigsError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListCodeSigningConfigsError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::ListCodeSigningConfigsError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListCodeSigningConfigsError { meta: generic, kind: crate::error::ListCodeSigningConfigsErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListCodeSigningConfigsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::ListCodeSigningConfigsError { meta: generic, kind: crate::error::ListCodeSigningConfigsErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListCodeSigningConfigsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::ListCodeSigningConfigsError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_code_signing_configs_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListCodeSigningConfigsOutput, crate::error::ListCodeSigningConfigsError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_code_signing_configs_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_code_signing_configs( response.body().as_ref(), output, ) .map_err(crate::error::ListCodeSigningConfigsError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_event_source_mappings_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListEventSourceMappingsOutput, crate::error::ListEventSourceMappingsError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListEventSourceMappingsError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::ListEventSourceMappingsError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListEventSourceMappingsError { meta: generic, kind: crate::error::ListEventSourceMappingsErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListEventSourceMappingsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::ListEventSourceMappingsError { meta: generic, kind: crate::error::ListEventSourceMappingsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListEventSourceMappingsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::ListEventSourceMappingsError { meta: generic, kind: crate::error::ListEventSourceMappingsErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListEventSourceMappingsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::ListEventSourceMappingsError { meta: generic, kind: crate::error::ListEventSourceMappingsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListEventSourceMappingsError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_event_source_mappings_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListEventSourceMappingsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::ListEventSourceMappingsError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_event_source_mappings_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListEventSourceMappingsOutput, crate::error::ListEventSourceMappingsError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_event_source_mappings_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_event_source_mappings( response.body().as_ref(), output, ) .map_err(crate::error::ListEventSourceMappingsError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_function_event_invoke_configs_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListFunctionEventInvokeConfigsOutput, crate::error::ListFunctionEventInvokeConfigsError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::ListFunctionEventInvokeConfigsError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListFunctionEventInvokeConfigsError { meta: generic, kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::ListFunctionEventInvokeConfigsError { meta: generic, kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::ListFunctionEventInvokeConfigsError { meta: generic, kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::ListFunctionEventInvokeConfigsError { meta: generic, kind: crate::error::ListFunctionEventInvokeConfigsErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_function_event_invoke_configs_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListFunctionEventInvokeConfigsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::ListFunctionEventInvokeConfigsError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_function_event_invoke_configs_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListFunctionEventInvokeConfigsOutput, crate::error::ListFunctionEventInvokeConfigsError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_function_event_invoke_configs_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_function_event_invoke_configs( response.body().as_ref(), output, ) .map_err(crate::error::ListFunctionEventInvokeConfigsError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_functions_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListFunctionsOutput, crate::error::ListFunctionsError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListFunctionsError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::ListFunctionsError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListFunctionsError { meta: generic, kind: crate::error::ListFunctionsErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::ListFunctionsError { meta: generic, kind: crate::error::ListFunctionsErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListFunctionsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::ListFunctionsError { meta: generic, kind: crate::error::ListFunctionsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListFunctionsError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_functions_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListFunctionsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::ListFunctionsError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_functions_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListFunctionsOutput, crate::error::ListFunctionsError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_functions_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_functions(response.body().as_ref(), output) .map_err(crate::error::ListFunctionsError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_functions_by_code_signing_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListFunctionsByCodeSigningConfigOutput, crate::error::ListFunctionsByCodeSigningConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled(generic)) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListFunctionsByCodeSigningConfigError { meta: generic, kind: crate::error::ListFunctionsByCodeSigningConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::ListFunctionsByCodeSigningConfigError { meta: generic, kind: crate::error::ListFunctionsByCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::ListFunctionsByCodeSigningConfigError { meta: generic, kind: crate::error::ListFunctionsByCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::ListFunctionsByCodeSigningConfigError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_functions_by_code_signing_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListFunctionsByCodeSigningConfigOutput, crate::error::ListFunctionsByCodeSigningConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_functions_by_code_signing_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_functions_by_code_signing_config( response.body().as_ref(), output, ) .map_err(crate::error::ListFunctionsByCodeSigningConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_layers_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListLayersOutput, crate::error::ListLayersError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListLayersError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::ListLayersError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListLayersError { meta: generic, kind: crate::error::ListLayersErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListLayersError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::ListLayersError { meta: generic, kind: crate::error::ListLayersErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListLayersError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::ListLayersError { meta: generic, kind: crate::error::ListLayersErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListLayersError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_layers_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListLayersError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::ListLayersError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_layers_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListLayersOutput, crate::error::ListLayersError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_layers_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_layers(response.body().as_ref(), output) .map_err(crate::error::ListLayersError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_layer_versions_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListLayerVersionsOutput, crate::error::ListLayerVersionsError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListLayerVersionsError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::ListLayerVersionsError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListLayerVersionsError { meta: generic, kind: crate::error::ListLayerVersionsErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListLayerVersionsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::ListLayerVersionsError { meta: generic, kind: crate::error::ListLayerVersionsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListLayerVersionsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::ListLayerVersionsError { meta: generic, kind: crate::error::ListLayerVersionsErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListLayerVersionsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::ListLayerVersionsError { meta: generic, kind: crate::error::ListLayerVersionsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListLayerVersionsError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_layer_versions_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListLayerVersionsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::ListLayerVersionsError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_layer_versions_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListLayerVersionsOutput, crate::error::ListLayerVersionsError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_layer_versions_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_layer_versions( response.body().as_ref(), output, ) .map_err(crate::error::ListLayerVersionsError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_provisioned_concurrency_configs_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListProvisionedConcurrencyConfigsOutput, crate::error::ListProvisionedConcurrencyConfigsError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled(generic)) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListProvisionedConcurrencyConfigsError { meta: generic, kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::ListProvisionedConcurrencyConfigsError { meta: generic, kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::ListProvisionedConcurrencyConfigsError { meta: generic, kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::ListProvisionedConcurrencyConfigsError { meta: generic, kind: crate::error::ListProvisionedConcurrencyConfigsErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_provisioned_concurrency_configs_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListProvisionedConcurrencyConfigsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::ListProvisionedConcurrencyConfigsError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_provisioned_concurrency_configs_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListProvisionedConcurrencyConfigsOutput, crate::error::ListProvisionedConcurrencyConfigsError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_provisioned_concurrency_configs_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_provisioned_concurrency_configs( response.body().as_ref(), output, ) .map_err(crate::error::ListProvisionedConcurrencyConfigsError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_tags_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListTagsOutput, crate::error::ListTagsError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListTagsError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::ListTagsError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListTagsError { meta: generic, kind: crate::error::ListTagsErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListTagsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::ListTagsError { meta: generic, kind: crate::error::ListTagsErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListTagsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::ListTagsError { meta: generic, kind: crate::error::ListTagsErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListTagsError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::ListTagsError { meta: generic, kind: crate::error::ListTagsErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListTagsError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_tags_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListTagsError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::ListTagsError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_tags_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::ListTagsOutput, crate::error::ListTagsError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_tags_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_tags(response.body().as_ref(), output) .map_err(crate::error::ListTagsError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_versions_by_function_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListVersionsByFunctionOutput, crate::error::ListVersionsByFunctionError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::ListVersionsByFunctionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::ListVersionsByFunctionError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::ListVersionsByFunctionError { meta: generic, kind: crate::error::ListVersionsByFunctionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListVersionsByFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::ListVersionsByFunctionError { meta: generic, kind: crate::error::ListVersionsByFunctionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::ListVersionsByFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::ListVersionsByFunctionError { meta: generic, kind: crate::error::ListVersionsByFunctionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListVersionsByFunctionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::ListVersionsByFunctionError { meta: generic, kind: crate::error::ListVersionsByFunctionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::ListVersionsByFunctionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_list_versions_by_function_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::ListVersionsByFunctionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::ListVersionsByFunctionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_list_versions_by_function_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::ListVersionsByFunctionOutput, crate::error::ListVersionsByFunctionError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::list_versions_by_function_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_list_versions_by_function( response.body().as_ref(), output, ) .map_err(crate::error::ListVersionsByFunctionError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_publish_layer_version_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PublishLayerVersionOutput, crate::error::PublishLayerVersionError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::PublishLayerVersionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::PublishLayerVersionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "CodeStorageExceededException" => { crate::error::PublishLayerVersionError { meta: generic, kind: crate::error::PublishLayerVersionErrorKind::CodeStorageExceededException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::code_storage_exceeded_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_storage_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishLayerVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "InvalidParameterValueException" => crate::error::PublishLayerVersionError { meta: generic, kind: crate::error::PublishLayerVersionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishLayerVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::PublishLayerVersionError { meta: generic, kind: crate::error::PublishLayerVersionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishLayerVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::PublishLayerVersionError { meta: generic, kind: crate::error::PublishLayerVersionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PublishLayerVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::PublishLayerVersionError { meta: generic, kind: crate::error::PublishLayerVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PublishLayerVersionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_publish_layer_version_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PublishLayerVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::PublishLayerVersionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_publish_layer_version_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PublishLayerVersionOutput, crate::error::PublishLayerVersionError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::publish_layer_version_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_publish_layer_version( response.body().as_ref(), output, ) .map_err(crate::error::PublishLayerVersionError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_publish_version_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::PublishVersionOutput, crate::error::PublishVersionError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::PublishVersionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::PublishVersionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "CodeStorageExceededException" => { crate::error::PublishVersionError { meta: generic, kind: crate::error::PublishVersionErrorKind::CodeStorageExceededException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::code_storage_exceeded_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_storage_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "InvalidParameterValueException" => crate::error::PublishVersionError { meta: generic, kind: crate::error::PublishVersionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "PreconditionFailedException" => { crate::error::PublishVersionError { meta: generic, kind: crate::error::PublishVersionErrorKind::PreconditionFailedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ResourceConflictException" => crate::error::PublishVersionError { meta: generic, kind: crate::error::PublishVersionErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PublishVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::PublishVersionError { meta: generic, kind: crate::error::PublishVersionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PublishVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::PublishVersionError { meta: generic, kind: crate::error::PublishVersionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PublishVersionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::PublishVersionError { meta: generic, kind: crate::error::PublishVersionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PublishVersionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_publish_version_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PublishVersionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::PublishVersionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_publish_version_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::PublishVersionOutput, crate::error::PublishVersionError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::publish_version_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_publish_version(response.body().as_ref(), output) .map_err(crate::error::PublishVersionError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_put_function_code_signing_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PutFunctionCodeSigningConfigOutput, crate::error::PutFunctionCodeSigningConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::PutFunctionCodeSigningConfigError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "CodeSigningConfigNotFoundException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::CodeSigningConfigNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::code_signing_config_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "InvalidParameterValueException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceConflictException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::PutFunctionCodeSigningConfigError { meta: generic, kind: crate::error::PutFunctionCodeSigningConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_put_function_code_signing_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutFunctionCodeSigningConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::PutFunctionCodeSigningConfigError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_put_function_code_signing_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PutFunctionCodeSigningConfigOutput, crate::error::PutFunctionCodeSigningConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::put_function_code_signing_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_put_function_code_signing_config( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionCodeSigningConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_put_function_concurrency_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PutFunctionConcurrencyOutput, crate::error::PutFunctionConcurrencyError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::PutFunctionConcurrencyError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::PutFunctionConcurrencyError { meta: generic, kind: crate::error::PutFunctionConcurrencyErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::PutFunctionConcurrencyError { meta: generic, kind: crate::error::PutFunctionConcurrencyErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::PutFunctionConcurrencyError { meta: generic, kind: crate::error::PutFunctionConcurrencyErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::PutFunctionConcurrencyError { meta: generic, kind: crate::error::PutFunctionConcurrencyErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::PutFunctionConcurrencyError { meta: generic, kind: crate::error::PutFunctionConcurrencyErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_put_function_concurrency_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutFunctionConcurrencyError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::PutFunctionConcurrencyError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_put_function_concurrency_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PutFunctionConcurrencyOutput, crate::error::PutFunctionConcurrencyError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::put_function_concurrency_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_put_function_concurrency( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionConcurrencyError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_put_function_event_invoke_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PutFunctionEventInvokeConfigOutput, crate::error::PutFunctionEventInvokeConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::PutFunctionEventInvokeConfigError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::PutFunctionEventInvokeConfigError { meta: generic, kind: crate::error::PutFunctionEventInvokeConfigErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceConflictException" => crate::error::PutFunctionEventInvokeConfigError { meta: generic, kind: crate::error::PutFunctionEventInvokeConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => crate::error::PutFunctionEventInvokeConfigError { meta: generic, kind: crate::error::PutFunctionEventInvokeConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::PutFunctionEventInvokeConfigError { meta: generic, kind: crate::error::PutFunctionEventInvokeConfigErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => { crate::error::PutFunctionEventInvokeConfigError { meta: generic, kind: crate::error::PutFunctionEventInvokeConfigErrorKind::TooManyRequestsException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_put_function_event_invoke_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutFunctionEventInvokeConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } _ => crate::error::PutFunctionEventInvokeConfigError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_put_function_event_invoke_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PutFunctionEventInvokeConfigOutput, crate::error::PutFunctionEventInvokeConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::put_function_event_invoke_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_put_function_event_invoke_config( response.body().as_ref(), output, ) .map_err(crate::error::PutFunctionEventInvokeConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_put_provisioned_concurrency_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PutProvisionedConcurrencyConfigOutput, crate::error::PutProvisionedConcurrencyConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::PutProvisionedConcurrencyConfigError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceConflictException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::PutProvisionedConcurrencyConfigError { meta: generic, kind: crate::error::PutProvisionedConcurrencyConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_put_provisioned_concurrency_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::PutProvisionedConcurrencyConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::PutProvisionedConcurrencyConfigError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_put_provisioned_concurrency_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::PutProvisionedConcurrencyConfigOutput, crate::error::PutProvisionedConcurrencyConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::put_provisioned_concurrency_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_put_provisioned_concurrency_config( response.body().as_ref(), output, ) .map_err(crate::error::PutProvisionedConcurrencyConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_remove_layer_version_permission_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::RemoveLayerVersionPermissionOutput, crate::error::RemoveLayerVersionPermissionError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::RemoveLayerVersionPermissionError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::RemoveLayerVersionPermissionError { meta: generic, kind: crate::error::RemoveLayerVersionPermissionErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "PreconditionFailedException" => crate::error::RemoveLayerVersionPermissionError { meta: generic, kind: crate::error::RemoveLayerVersionPermissionErrorKind::PreconditionFailedException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceNotFoundException" => crate::error::RemoveLayerVersionPermissionError { meta: generic, kind: crate::error::RemoveLayerVersionPermissionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ServiceException" => crate::error::RemoveLayerVersionPermissionError { meta: generic, kind: crate::error::RemoveLayerVersionPermissionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => { crate::error::RemoveLayerVersionPermissionError { meta: generic, kind: crate::error::RemoveLayerVersionPermissionErrorKind::TooManyRequestsException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemoveLayerVersionPermissionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_remove_layer_version_permission_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::RemoveLayerVersionPermissionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), } } _ => crate::error::RemoveLayerVersionPermissionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_remove_layer_version_permission_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::RemoveLayerVersionPermissionOutput, crate::error::RemoveLayerVersionPermissionError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::remove_layer_version_permission_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_remove_permission_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::RemovePermissionOutput, crate::error::RemovePermissionError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::RemovePermissionError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::RemovePermissionError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::RemovePermissionError { meta: generic, kind: crate::error::RemovePermissionErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemovePermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "PreconditionFailedException" => { crate::error::RemovePermissionError { meta: generic, kind: crate::error::RemovePermissionErrorKind::PreconditionFailedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemovePermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ResourceNotFoundException" => { crate::error::RemovePermissionError { meta: generic, kind: crate::error::RemovePermissionErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::RemovePermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::RemovePermissionError { meta: generic, kind: crate::error::RemovePermissionErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::RemovePermissionError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::RemovePermissionError { meta: generic, kind: crate::error::RemovePermissionErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::RemovePermissionError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_remove_permission_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::RemovePermissionError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::RemovePermissionError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_remove_permission_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::RemovePermissionOutput, crate::error::RemovePermissionError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::remove_permission_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_tag_resource_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::TagResourceOutput, crate::error::TagResourceError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::TagResourceError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::TagResourceError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::TagResourceError { meta: generic, kind: crate::error::TagResourceErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::TagResourceError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::TagResourceError { meta: generic, kind: crate::error::TagResourceErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::TagResourceError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::TagResourceError { meta: generic, kind: crate::error::TagResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::TagResourceError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::TagResourceError { meta: generic, kind: crate::error::TagResourceErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::TagResourceError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::TagResourceError { meta: generic, kind: crate::error::TagResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::TagResourceError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_tag_resource_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::TagResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::TagResourceError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_tag_resource_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::TagResourceOutput, crate::error::TagResourceError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::tag_resource_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_untag_resource_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::UntagResourceOutput, crate::error::UntagResourceError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::UntagResourceError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::UntagResourceError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::UntagResourceError { meta: generic, kind: crate::error::UntagResourceErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UntagResourceError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceConflictException" => crate::error::UntagResourceError { meta: generic, kind: crate::error::UntagResourceErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::UntagResourceError { meta: generic, kind: crate::error::UntagResourceErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UntagResourceError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::UntagResourceError { meta: generic, kind: crate::error::UntagResourceErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UntagResourceError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::UntagResourceError { meta: generic, kind: crate::error::UntagResourceErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UntagResourceError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_untag_resource_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UntagResourceError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::UntagResourceError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_untag_resource_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::UntagResourceOutput, crate::error::UntagResourceError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::untag_resource_output::Builder::default(); let _ = response; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_alias_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::UpdateAliasOutput, crate::error::UpdateAliasError> { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::UpdateAliasError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::UpdateAliasError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::UpdateAliasError { meta: generic, kind: crate::error::UpdateAliasErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "PreconditionFailedException" => { crate::error::UpdateAliasError { meta: generic, kind: crate::error::UpdateAliasErrorKind::PreconditionFailedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ResourceConflictException" => crate::error::UpdateAliasError { meta: generic, kind: crate::error::UpdateAliasErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::UpdateAliasError { meta: generic, kind: crate::error::UpdateAliasErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::UpdateAliasError { meta: generic, kind: crate::error::UpdateAliasErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateAliasError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::UpdateAliasError { meta: generic, kind: crate::error::UpdateAliasErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateAliasError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_update_alias_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateAliasError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::UpdateAliasError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_alias_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result<crate::output::UpdateAliasOutput, crate::error::UpdateAliasError> { Ok({ #[allow(unused_mut)] let mut output = crate::output::update_alias_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_update_alias(response.body().as_ref(), output) .map_err(crate::error::UpdateAliasError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_code_signing_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateCodeSigningConfigOutput, crate::error::UpdateCodeSigningConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::UpdateCodeSigningConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::UpdateCodeSigningConfigError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::UpdateCodeSigningConfigError { meta: generic, kind: crate::error::UpdateCodeSigningConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::UpdateCodeSigningConfigError { meta: generic, kind: crate::error::UpdateCodeSigningConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::UpdateCodeSigningConfigError { meta: generic, kind: crate::error::UpdateCodeSigningConfigErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateCodeSigningConfigError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::UpdateCodeSigningConfigError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_code_signing_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateCodeSigningConfigOutput, crate::error::UpdateCodeSigningConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::update_code_signing_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_update_code_signing_config( response.body().as_ref(), output, ) .map_err(crate::error::UpdateCodeSigningConfigError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_event_source_mapping_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateEventSourceMappingOutput, crate::error::UpdateEventSourceMappingError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::UpdateEventSourceMappingError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::UpdateEventSourceMappingError { meta: generic, kind: crate::error::UpdateEventSourceMappingErrorKind::InvalidParameterValueException( { #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }, ), }, "ResourceConflictException" => crate::error::UpdateEventSourceMappingError { meta: generic, kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceInUseException" => crate::error::UpdateEventSourceMappingError { meta: generic, kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceInUseException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_in_use_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_in_use_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::UpdateEventSourceMappingError { meta: generic, kind: crate::error::UpdateEventSourceMappingErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::UpdateEventSourceMappingError { meta: generic, kind: crate::error::UpdateEventSourceMappingErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::UpdateEventSourceMappingError { meta: generic, kind: crate::error::UpdateEventSourceMappingErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_update_event_source_mapping_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateEventSourceMappingError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::UpdateEventSourceMappingError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_event_source_mapping_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateEventSourceMappingOutput, crate::error::UpdateEventSourceMappingError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::update_event_source_mapping_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_update_event_source_mapping( response.body().as_ref(), output, ) .map_err(crate::error::UpdateEventSourceMappingError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_function_code_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateFunctionCodeOutput, crate::error::UpdateFunctionCodeError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::UpdateFunctionCodeError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "CodeSigningConfigNotFoundException" => crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::CodeSigningConfigNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::code_signing_config_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "CodeStorageExceededException" => { crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::CodeStorageExceededException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::code_storage_exceeded_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_storage_exceeded_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "CodeVerificationFailedException" => crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::CodeVerificationFailedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::code_verification_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_verification_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidCodeSignatureException" => crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::InvalidCodeSignatureException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_code_signature_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_code_signature_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "InvalidParameterValueException" => crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::InvalidParameterValueException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "PreconditionFailedException" => { crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::PreconditionFailedException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ResourceConflictException" => crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::ResourceConflictException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "ResourceNotFoundException" => { crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), } } "ServiceException" => crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::ServiceException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, "TooManyRequestsException" => crate::error::UpdateFunctionCodeError { meta: generic, kind: crate::error::UpdateFunctionCodeErrorKind::TooManyRequestsException({ #[allow(unused_mut)] let mut tmp = { #[allow(unused_mut)] let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err( response.body().as_ref(), output, ) .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_update_function_code_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateFunctionCodeError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() }; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp }), }, _ => crate::error::UpdateFunctionCodeError::generic(generic), }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_function_code_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateFunctionCodeOutput, crate::error::UpdateFunctionCodeError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::update_function_code_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_update_function_code( response.body().as_ref(), output, ) .map_err(crate::error::UpdateFunctionCodeError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_function_configuration_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateFunctionConfigurationOutput, crate::error::UpdateFunctionConfigurationError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => { return Err(crate::error::UpdateFunctionConfigurationError::unhandled( generic, )) } }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "CodeSigningConfigNotFoundException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::CodeSigningConfigNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::code_signing_config_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_signing_config_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "CodeVerificationFailedException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::CodeVerificationFailedException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::code_verification_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_code_verification_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "InvalidCodeSignatureException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::InvalidCodeSignatureException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_code_signature_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_code_signature_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "InvalidParameterValueException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "PreconditionFailedException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::PreconditionFailedException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::precondition_failed_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_precondition_failed_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceConflictException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::ResourceConflictException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::UpdateFunctionConfigurationError { meta: generic, kind: crate::error::UpdateFunctionConfigurationErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_update_function_configuration_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateFunctionConfigurationError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::UpdateFunctionConfigurationError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_function_configuration_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateFunctionConfigurationOutput, crate::error::UpdateFunctionConfigurationError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::update_function_configuration_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_update_function_configuration( response.body().as_ref(), output, ) .map_err(crate::error::UpdateFunctionConfigurationError::unhandled)?; output.build() }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_function_event_invoke_config_error( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateFunctionEventInvokeConfigOutput, crate::error::UpdateFunctionEventInvokeConfigError, > { let generic = crate::json_deser::parse_generic_error(&response) .map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; let error_code = match generic.code() { Some(code) => code, None => return Err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled(generic)), }; let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { "InvalidParameterValueException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::InvalidParameterValueException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::invalid_parameter_value_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_invalid_parameter_value_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceConflictException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::ResourceConflictException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_conflict_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_conflict_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ResourceNotFoundException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::ResourceNotFoundException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::resource_not_found_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_resource_not_found_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "ServiceException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::ServiceException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::service_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_service_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, "TooManyRequestsException" => crate::error::UpdateFunctionEventInvokeConfigError { meta: generic, kind: crate::error::UpdateFunctionEventInvokeConfigErrorKind::TooManyRequestsException({ #[allow(unused_mut)]let mut tmp = { #[allow(unused_mut)]let mut output = crate::error::too_many_requests_exception::Builder::default(); let _ = response; output = crate::json_deser::deser_structure_too_many_requests_exceptionjson_err(response.body().as_ref(), output).map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; output = output.set_retry_after_seconds( crate::http_serde::deser_header_update_function_event_invoke_config_too_many_requests_exception_retry_after_seconds(response.headers()) .map_err(|_|crate::error::UpdateFunctionEventInvokeConfigError::unhandled("Failed to parse retryAfterSeconds from header `Retry-After"))? ); output.build() } ; if (&tmp.message).is_none() { tmp.message = _error_message; } tmp })}, _ => crate::error::UpdateFunctionEventInvokeConfigError::generic(generic) }) } #[allow(clippy::unnecessary_wraps)] pub fn parse_update_function_event_invoke_config_response( response: &http::Response<bytes::Bytes>, ) -> std::result::Result< crate::output::UpdateFunctionEventInvokeConfigOutput, crate::error::UpdateFunctionEventInvokeConfigError, > { Ok({ #[allow(unused_mut)] let mut output = crate::output::update_function_event_invoke_config_output::Builder::default(); let _ = response; output = crate::json_deser::deser_operation_update_function_event_invoke_config( response.body().as_ref(), output, ) .map_err(crate::error::UpdateFunctionEventInvokeConfigError::unhandled)?; output.build() }) }
46.590898
236
0.53045
21df1cbc671fa06be5d643a018fe6c7e92d4fbb3
547
dart
Dart
lib/primitive_types/boolean.dart
drcdev/fhir
e5e3f72bea70c289b65cdb73d1d9e1ba04174d7d
[ "MIT" ]
1
2020-10-06T16:39:34.000Z
2020-10-06T16:39:34.000Z
lib/primitive_types/boolean.dart
drcdev/fhir
e5e3f72bea70c289b65cdb73d1d9e1ba04174d7d
[ "MIT" ]
null
null
null
lib/primitive_types/boolean.dart
drcdev/fhir
e5e3f72bea70c289b65cdb73d1d9e1ba04174d7d
[ "MIT" ]
null
null
null
import 'package:dartz/dartz.dart'; import 'primitive_failures.dart'; import 'primitive_objects.dart'; class Boolean extends PrimitiveObject<bool> { @override final Either<PrimitiveFailure<String>, bool> value; factory Boolean(dynamic value) { assert(value != null); return Boolean._( validateBoolean(value), ); } const Boolean._(this.value); factory Boolean.fromJson(dynamic json) => Boolean(json); @override dynamic toJson() => value.fold( (l) => '${l.errorMessage()}', (r) => r, ); }
21.038462
58
0.652651
965446421b4f57a3d463765248e47189ca9ec021
290
sql
SQL
freeipa/src/main/resources/schema/app/20191203144540_CB-4548_alter_stack_add_column_minasshdserviceid.sql
anmolnar/cloudbreak
81e18cca143c30389ecf4958b1a4dcae211bddf4
[ "Apache-2.0" ]
174
2017-07-14T03:20:42.000Z
2022-03-25T05:03:18.000Z
freeipa/src/main/resources/schema/app/20191203144540_CB-4548_alter_stack_add_column_minasshdserviceid.sql
anmolnar/cloudbreak
81e18cca143c30389ecf4958b1a4dcae211bddf4
[ "Apache-2.0" ]
2,242
2017-07-12T05:52:01.000Z
2022-03-31T15:50:08.000Z
freeipa/src/main/resources/schema/app/20191203144540_CB-4548_alter_stack_add_column_minasshdserviceid.sql
anmolnar/cloudbreak
81e18cca143c30389ecf4958b1a4dcae211bddf4
[ "Apache-2.0" ]
172
2017-07-12T08:53:48.000Z
2022-03-24T12:16:33.000Z
-- // CB-4548 alter stack add column minasshdserviceid -- Migration SQL that makes the change goes here. ALTER TABLE stack ADD COLUMN IF NOT EXISTS minasshdserviceid VARCHAR(255); -- //@UNDO -- SQL to undo the change goes here. ALTER TABLE stack DROP COLUMN IF EXISTS minasshdserviceid;
29
74
0.765517
d1129ff31d9c19c715752b64c663a47c8907fbbc
522
dart
Dart
examples/dart/fuchsia_modular/slider_mod/lib/src/widgets/app.dart
gnoliyil/fuchsia
a98c2d6ae44b7c485c2ee55855d0441da422f4cf
[ "BSD-2-Clause" ]
4
2020-02-23T09:02:06.000Z
2022-01-08T17:06:28.000Z
examples/dart/fuchsia_modular/slider_mod/lib/src/widgets/app.dart
gnoliyil/fuchsia
a98c2d6ae44b7c485c2ee55855d0441da422f4cf
[ "BSD-2-Clause" ]
null
null
null
examples/dart/fuchsia_modular/slider_mod/lib/src/widgets/app.dart
gnoliyil/fuchsia
a98c2d6ae44b7c485c2ee55855d0441da422f4cf
[ "BSD-2-Clause" ]
1
2021-08-23T11:33:57.000Z
2021-08-23T11:33:57.000Z
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // TODO(https://fxbug.dev/84961): Fix null safety and remove this language version. // @dart=2.9 import 'package:flutter/material.dart' hide Intent; import 'slider_scaffold.dart'; class App extends StatelessWidget { const App({ Key key, }) : super(key: key); @override Widget build(BuildContext context) { return SliderScaffold(); } }
23.727273
83
0.714559
c01b7b6572797ca882f21752de284f9cf69fdf2e
366
cs
C#
Assets/Scripts/ParentHandler.cs
Arose-Niazi/Sky-Shooter
89abe43464423d732440811d5765efba6118bc6d
[ "MIT" ]
7
2021-04-18T17:58:35.000Z
2022-01-20T14:13:55.000Z
Assets/Scripts/ParentHandler.cs
Arose-Niazi/Sky-Shooter
89abe43464423d732440811d5765efba6118bc6d
[ "MIT" ]
null
null
null
Assets/Scripts/ParentHandler.cs
Arose-Niazi/Sky-Shooter
89abe43464423d732440811d5765efba6118bc6d
[ "MIT" ]
null
null
null
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ParentHandler : MonoBehaviour { private GameObject _parent; // Start is called before the first frame update void Start() { _parent = GameObject.FindWithTag("MainParentForSpawn"); transform.SetParent(_parent.transform, false); } }
22.875
63
0.710383
b88bfe5cf9ae072d54b30496d1e2b4dc1270b435
970
c
C
src/h4/cons/c/main.c
archibate/h2os
04bf2a16519969eeb605ec97d8cb04d16da93ee9
[ "MIT" ]
1
2020-07-06T02:44:00.000Z
2020-07-06T02:44:00.000Z
src/h4/cons/c/main.c
archibate/h2os
04bf2a16519969eeb605ec97d8cb04d16da93ee9
[ "MIT" ]
null
null
null
src/h4/cons/c/main.c
archibate/h2os
04bf2a16519969eeb605ec97d8cb04d16da93ee9
[ "MIT" ]
null
null
null
#include <h4/sys/types.h> #include <h4/sys/ipc.h> #include <h4/servers.h> #include <h4/file/sysnr.h> #include <l4/stdafx.h> #include <l4/api/hello.h> #include <l4/api/asyncep.h> #include <l4/api/softirq.h> #include <l4/enum/irq-nrs.h> #include <conio.h> #include <fifo.h> #include <errno.h> #include <numtools.h> #include <console.h> void con_serve_ipc(void) { unsigned int nr = ipc_getw(); switch (nr) { case _FILE_read: { ipc_rewindw(-EPERM); } break; case _FILE_write: { size_t len = ipc_getw(); //printk("con_write(%d)", len); const void *buf = ipc_getbuf(&len); //printk("buf=%p!!!!", buf); ssize_t ret = con_write(buf, len); //printk("ret=%d!!!!", ret); ipc_rewindw(ret); } break; case _FILE_pread: case _FILE_pwrite: case _FILE_lseek: { ipc_rewindw(-ESPIPE); } break; default: ipc_putw(-ENOTSUP); } ipc_reply(); } const int libh4_serve_id = SVID_CONS; int main(void) { while (1) { ipc_recv(); con_serve_ipc(); } }
16.440678
37
0.651546
5808b53b1857609060243a319b4f1dfc17631db4
1,510
css
CSS
public/assets/css/style2.css
fadilahyulia2/project-tracerstudy
b81c026afc6054ffc499943a20523c0eef65b444
[ "MIT" ]
null
null
null
public/assets/css/style2.css
fadilahyulia2/project-tracerstudy
b81c026afc6054ffc499943a20523c0eef65b444
[ "MIT" ]
null
null
null
public/assets/css/style2.css
fadilahyulia2/project-tracerstudy
b81c026afc6054ffc499943a20523c0eef65b444
[ "MIT" ]
null
null
null
body { padding: 0; margin: 0; background-size: cover; font-family: "Montserrat", sans-serif; } .overlay { position: absolute; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); } .box { position: absolute; width: 400px; background-color: white; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 25px; box-shadow: 0 10px 10px 10px rgba(0, 0, 0, 0.2); } .header { background-image: url(/assets/img/bg.jpg); background-size: cover; padding: 50px 30px; color: rgb(29, 24, 24); border-radius: 15px 15px 0 0; } .header p { font-size: medium; } .login-area { text-align: center; padding: 50px 50px 30px 50px; } .username, .password { width: 100%; text-align: center; padding: 13px 0; border-radius: 20px; outline: none; border: none; color: white; background-color: rgba(55, 10, 114, 0.5); margin-bottom: 15px; transition: 0.5s; } .username::placeholder, .password::placeholder { color: rgba(255, 255, 255, 0.7); } .username:focus, .password:focus { background-color: rgba(55, 10, 114, 0.7); } .submit { width: 150px; padding: 10px; background-color: rgba(55, 10, 114, 1); border-radius: 10px; font-weight: bold; color: white; border: none; outline: none; margin: 10px; transition: 2; cursor: pointer; } .submit:hover { background-color: #1f0344; } a { display: block; font-size: x-small; text-decoration: none; color: rgba(55, 10, 14, 1); margin-top: 10px; }
16.966292
50
0.637086
8dcc1267b0f3a19f9f6a98816a069e6e7b33f056
2,273
js
JavaScript
src/js/controllers/tracker/NutritionCtrl.js
ProjectGinsberg/dashboard-open
0c50e4712b7d5d673c76e4192c9120a55c133e57
[ "MIT" ]
null
null
null
src/js/controllers/tracker/NutritionCtrl.js
ProjectGinsberg/dashboard-open
0c50e4712b7d5d673c76e4192c9120a55c133e57
[ "MIT" ]
null
null
null
src/js/controllers/tracker/NutritionCtrl.js
ProjectGinsberg/dashboard-open
0c50e4712b7d5d673c76e4192c9120a55c133e57
[ "MIT" ]
null
null
null
controllers.controller('NutritionController', ['$scope', '$log', '$http', '$route', 'Popover', 'Utils', function NutritionController($scope, $log, $http, $route, Popover, Utils) { 'use strict'; var NUTRITION_UPPER_LIMIT = 10000; $scope.nutrition = ''; $scope.calories = 0; $scope.submitting = false; $scope.error = ''; $scope.isDefined = function(v) { var defined = angular.isDefined(v); var empty; if (defined) empty = !(eval("$scope." + v) || eval("$scope." + v) == 0); return (defined && !empty); } $scope.disableSubmit = function() { var canSubmit = ($scope.nutrition); return !canSubmit; }; $scope.submit = function() { var datum = { 'timestamp': Utils.dayTimestamp($scope.date), 'calories': $scope.calories //'mood': $scope.currentMood() }; if (datum.calories > NUTRITION_UPPER_LIMIT) { $scope.error = 'Please double check your calories entry as it appears to be too high.'; return; } else if (isNaN(parseFloat(datum.calories)) && !isFinite(datum.calories)){ $scope.error = 'Calories must be entered as a numeric value between 0 and 10,000'; return; } else { $scope.error = ''; } $scope.submitting = true; Popover.lock(); // FIXME: Use service $http.post('/data/o/nutrition', datum) .success(function(data, status, headers, config) { $scope.fetchGraphData(); }) .error(function(data, status, headers, config) { $scope.error = 'FAILED! Please reload the page and try again'; }).then(function() { Popover.unlock(); $scope.hide(); $scope.submitting = false; }); }; $scope.moods = [{ text: 'Bad', selected: false, value: 20 }, { text: 'Meh', selected: false, value: 40 }, { text: 'Ok', selected: false, value: 60 }, { text: 'Good', selected: false, value: 80 }, { text: 'Great', selected: false, value: 100 }]; $scope.changeMood = function(moodText) { angular.forEach($scope.moods, function(mood) { mood.selected = (mood.text === moodText); }); }; $scope.currentMood = function() { var curMood = 0; angular.forEach($scope.moods, function(mood) { if (mood.selected) curMood = mood.value; }); return curMood; }; } ])
24.44086
103
0.602288
53f7d466e3251622c5068538d8ddac857aa5820b
43,340
tab
SQL
results/data_analysis/autocorrelation_results/chen.autocorrelation.tab
lareaulab/SingleCell_paper
5c2c82583376946d73f13e97af22dfe7dd202123
[ "MIT" ]
null
null
null
results/data_analysis/autocorrelation_results/chen.autocorrelation.tab
lareaulab/SingleCell_paper
5c2c82583376946d73f13e97af22dfe7dd202123
[ "MIT" ]
null
null
null
results/data_analysis/autocorrelation_results/chen.autocorrelation.tab
lareaulab/SingleCell_paper
5c2c82583376946d73f13e97af22dfe7dd202123
[ "MIT" ]
null
null
null
C_score pval 0610010K14Rik_1 0.015680442328209976 0.2585870706464677 0610010K14Rik_2 0.005293919681461423 0.8215089245537723 0610010K14Rik_3 0.06162983894320251 0.00014999250037498125 0610010K14Rik_4 0.026080887372428974 0.06649667516624169 0610010K14Rik_6 0.05573643499796144 0.02384880755962202 1110038B12Rik_1 0.14359971204438793 4.999750012499375e-05 1110038B12Rik_8 0.024584139020447093 0.4279786010699465 1110059E24Rik_3 0.04508286910566428 0.0247987600619969 1110059G10Rik_1 0.04042796805019122 0.25143742812859354 2410002F23Rik_1 0.08942674198634737 4.999750012499375e-05 2410002F23Rik_10 0.051810447662590464 0.020348982550872457 2410002F23Rik_11 0.04977612581016666 0.02534873256337183 2410002F23Rik_2 0.06373049225881267 4.999750012499375e-05 2410002F23Rik_3 0.06701672065114106 4.999750012499375e-05 2410004B18Rik_nmdSE_1 0.05326870150067986 0.003749812509374531 2610318N02Rik_1 0.05218343032507877 0.004499775011249437 2700099C18Rik_1 0.026607740704687632 0.05529723513824309 3110009E18Rik_1 0.02880306541707478 0.463626818659067 4833439L19Rik_2 0.014876331068749638 0.6286185690715465 4833439L19Rik_4 0.010050513471272615 0.7712614369281536 5530601H04Rik_1 0.010686206806965859 0.4389280535973201 9430038I01Rik_1 0.022300607590664767 0.38768061596920156 9430038I01Rik_2 0.04455146257966436 0.12364381780910955 A430005L14Rik_1 0.028097367986804844 0.3688815559222039 Aamdc_12 0.0069640688003228535 0.7175141242937854 Aamdc_4 0.01759768847599985 0.5627718614069297 Aar2_2 0.001160173102287887 0.9663516824158792 Aar2_3 0.0001740747215736027 0.9952002399880006 Abcd3_1 0.013403939865419323 0.5205739713014349 Abhd10_2 0.0799488494508449 0.03974801259937003 Abhd14a_1 0.015885489048762302 0.35823208839558024 Abhd14a_4 0.023830528134745177 0.1647417629118544 Abi1_2 0.106089634131599 0.0014999250037498126 Abi1_5 0.37577582350526806 4.999750012499375e-05 Acin1_2 0.024037794563329773 0.12649367531623418 Acin1_8 0.026565090569953376 0.2071396430178491 Acly_1 0.0055914667275968055 0.703164841757912 Acot8_1 0.09309506562122194 0.0008499575021248938 Actr3b_5 0.02157665651586782 0.536023198840058 Add1_1 0.03697153873631176 0.2889355532223389 Add1_3 0.11863262544057107 4.999750012499375e-05 Add1_9 0.1715469326058705 4.999750012499375e-05 Add3_1 0.38225178609355215 4.999750012499375e-05 Adpgk_1 0.033136245900517336 0.3405329733513324 Adprm_2 0.07664258958331949 0.01454927253637318 Akap2_1 1.7058894146271264e-05 0.99950002499875 Akap9_6 0.15991168320344007 9.99950002499875e-05 Aldoa_1 0.23083991088101652 4.999750012499375e-05 Alg13_10 0.09514966519039447 0.0020998950052497373 Alg3_1 0.010941621627835407 0.7513624318784061 Alg3_3 0.03080371593536535 0.30993450327483624 Alg3_6 0.02083335592426483 0.5696215189240538 Alkbh1_nmdSE_1 0.014993016132431647 0.35303234838258085 Alkbh3_1 0.053944894946941324 0.045097745112744364 Alkbh3_2 0.02389083630635014 0.048047597620118995 Alkbh7_1 0.024000594348612903 0.43882805859707014 Amn1_1 0.048735006688147675 0.043447827608619566 Anapc15_3 0.035332158274269165 0.31078446077696115 Anapc16_1 0.025199404922333635 0.07214639268036598 Anapc16_4 0.03130506270339262 0.31798410079496026 Angel2_2 0.03453364418071203 0.25738713064346785 Ankra2_1 0.009870442527148415 0.7076646167691616 Ankrd10_nmdSE_1 0.017993517716035634 0.31268436578171094 Ankrd10_nmdSE_2 0.09474571530747422 0.002199890005499725 Ankrd17_2 0.01901368044464935 0.14734263286835658 Anks3_12 0.028687519464062228 0.5149242537873107 Anxa6_1 0.06334622002351042 0.00044997750112494374 Ap2b1_2 0.025474505068601938 0.035948202589870505 Aplp2_2 0.044707410257531666 0.0018499075046247689 Arfgap1_2 0.10113160739326199 0.01184940752962352 Arfgap1_4 0.03797312354736915 0.21658917054147292 Arfgap1_7 0.02266877674582235 0.6038198090095496 Arfrp1_17 0.12133574791467527 0.0013499325033748313 Armc8_2 0.022929472797478256 0.37478126093695313 Armcx1_2 0.035294210924321945 0.0030998450077496125 Armcx1_3 0.027703857653358588 0.029648517574121295 Armcx1_5 0.022823716031211583 0.0750962451877406 Asph_7 0.3623506592649952 4.999750012499375e-05 Aspscr1_1 0.003545508679506648 0.9086045697715114 Atat1_6 0.04084426391171103 0.005749712514374282 Atg13_1 0.20935811288836326 4.999750012499375e-05 Atg13_4 0.023970868310658977 0.35293235338233087 Atg16l1_2 0.051059757919754256 0.021798910054497276 Atp5h_4 0.0034108642243397824 0.8554072296385181 Atp5j_1 0.13074346865945197 0.000599970001499925 Atp5s_1 0.05604831502121177 0.21178941052947353 Atp6v1h_1 0.15433122538271504 4.999750012499375e-05 Atrx_10 0.044766878112596276 0.002849857507124644 Atrx_4 0.05134493303662413 0.00519974001299935 Atrx_5 0.06137029461151566 0.018699065046747662 Atxn2_1 0.023703199616155746 0.08659567021648917 Atxn2_2 0.03276075875000917 0.09179541022948852 BC004004_4 0.031658946745510286 0.3913304334783261 BC004004_5 0.042365584388300626 0.2898855057247138 Bag6_1 0.012324198190409863 0.47417629118544075 Bag6_2 0.05177315093776491 0.24538773061346933 Banp_1 0.045275021347216615 0.08904554772261387 Banp_3 0.016215477783230958 0.4356282185890705 Bbx_5 0.08262257827014363 0.07479626018699065 Bcl2l12_1 0.004596139576654168 0.9047047647617619 Bcl2l12_2 0.045842660017128445 0.1143442827858607 Bcl2l12_4 0.04296943581249457 0.24843757812109393 Bclaf1_3 0.03975497307300957 0.0031498425078746064 Bclaf1_nmdSE_1 0.025751964714992637 0.408079596020199 Bex1_1 0.015082657954600731 0.23513824308784562 Bin1_1 0.09765795870834881 4.999750012499375e-05 Bin1_3 0.06329561467694034 0.03719814009299535 Bin1_4 0.0416997486228432 0.005649717514124294 Bin1_5 0.10613821089269504 4.999750012499375e-05 Birc5_1 0.038691185745113876 0.22278886055697214 Bnip1_2 0.15141159475733612 0.00024998750062496874 Bnip2_2 0.11540675697646496 0.00039998000099995 Bpnt1_1 0.11480037471042015 0.00279986000699965 Bpnt1_3 0.043849363863673 0.00024998750062496874 Bptf_12 0.0153680003025789 0.1968401579921004 Brd8_1 0.001416964329304049 0.936053197340133 Brd8_2 0.025342528181324098 0.464226788660567 Btbd10_4 0.010491148327072763 0.5151742412879357 Btrc_1 0.05939070258670143 0.11644417779111045 Cacul1_1 0.019822220568049054 0.4790260486975651 Cad_1 0.024169018950796484 0.5098245087745613 Cadm1_2 0.037868384772001384 0.0016499175041247937 Cadm1_6 0.47843016399555727 4.999750012499375e-05 Camta1_3 0.047014137782013465 0.1855407229638518 Car4_4 0.1629984901037611 4.999750012499375e-05 Carm1_5 0.014785588997781929 0.6904154792260387 Cars_1 0.06297572517632666 0.0007499625018749063 Casp8ap2_4 0.07205007849725242 0.08314584270786461 Cbx5_2 0.012046229865192992 0.4712764361781911 Cbx5_3 0.018270379021439687 0.24913754312284386 Ccdc130_2 0.06645629912958928 0.0407979601019949 Ccm2_1 0.07407039449976771 0.07604619769011549 Ccnc_2 0.014169239341816797 0.2970851457427129 Ccnl1_nmdSE_1 0.011979277736196448 0.3877306134693265 Ccnl1_nmdSE_3 0.01324331274349333 0.27903604819759015 Ccnl2_nmdSE_1 0.04726166743582405 0.0014499275036248187 Cdc123_3 0.06491330376924531 0.05639718014099295 Cdc7_9 0.016194836865406792 0.5954202289885506 Cdk11b_2 0.0030867125529633332 0.8680065996700165 Cdk11b_3 0.07409372202546238 0.04259787010649468 Cdk2_1 0.05436487802373069 4.999750012499375e-05 Cdk4_1 0.11732915264563526 0.0018499075046247689 Cenpa_6 0.13425802858905256 4.999750012499375e-05 Cenpa_nmdSE_1 0.09232750392544553 4.999750012499375e-05 Cenpc1_3 0.15460035513281112 0.0025498725063746812 Cenpi_1 0.02582664299952664 0.0999950002499875 Cenpm_3 0.07679293249498909 0.0271986400679966 Cenpu_nmdSE_1 0.0026827412424008656 0.927953602319884 Cers5_1 0.38611103725237195 4.999750012499375e-05 Chchd3_6 0.47241770482136947 4.999750012499375e-05 Chek2_6 0.0179948195214239 0.1911904404779761 Chka_5 0.01118986373468478 0.4521273936303185 Chtf8_2 0.05465511627780617 0.04224788760561972 Chtf8_3 0.06993824154459505 0.00814959252037398 Chtop_2 0.07864168188080778 4.999750012499375e-05 Cib1_2 0.00042539325455059895 0.9895005249737513 Cib1_3 0.004835302528212071 0.8776561171941403 Cldn6_1 0.071271969926198 0.03854807259637018 Cldnd1_1 0.12540939530844775 4.999750012499375e-05 Cldnd1_2 0.15431010753536756 4.999750012499375e-05 Cldnd1_4 0.14387152829472483 4.999750012499375e-05 Clk1_1 0.06198725262299609 9.99950002499875e-05 Clk1_2 0.06277160225268008 0.06344682765861707 Clk3_1 0.022611088275900748 0.5149742512874357 Clk4_10 0.009625758719515098 0.5642717864106794 Clk4_5 0.003836063494377262 0.8410579471026449 Cln8_1 0.018825643193106978 0.2352382380880956 Clta_4 0.5108089202535605 4.999750012499375e-05 Cmc2_3 0.044285780837788336 0.17034148292585372 Cnot10_4 0.07114605824360343 4.999750012499375e-05 Cnot2_10 0.029464431034974314 0.22913854307284637 Cnot2_nmdSE_1 0.032780808988615906 0.37563121843907804 Cnot2_nmdSE_2 0.03879163920335471 0.13939303034848258 Coasy_1 0.0006815342418150516 0.9799510024498775 Commd10_4 0.0626989656781487 0.06354682265886706 Commd7_2 0.03808404810762356 0.3047347632618369 Comt_1 0.029500620257370325 0.10449477526123693 Cox19_2 0.05543237048072058 0.14009299535023248 Cpsf6_6 0.021578739891326193 0.37238138093095347 Crcp_1 0.003958150618272427 0.9090545472726363 Crlf2_2 0.05794594180062551 0.1977401129943503 Crlf2_3 0.03568357776812847 0.36753162341882906 Csde1_6 0.021729110376274008 0.12429378531073447 Csnk1a1_3 0.008993160793974053 0.6985150742462877 Csnk1d_2 0.008040584164856646 0.5618719064046798 Cstf2_4 0.292779458959915 4.999750012499375e-05 Ctbp1_1 0.14793837443508673 0.0034498275086245686 Ctbp2_7 0.0013116909935958487 0.9580520973951302 Ctnnd1_1 0.05557395782246488 0.0015999200039998 Ctnnd1_3 0.0065642848244150676 0.7424128793560322 Ctsa_4 0.07625737844374914 0.03659817009149543 Ctsa_6 0.06973850455487995 0.05419729013549322 Cttn_1 0.09558794061634202 0.010749462526873657 Cuedc2_1 0.03553826513414171 0.009349532523373831 Cuta_1 0.037370045015492015 0.009499525023748812 Cuta_2 0.007724008832386775 0.8031098445077746 Cwc22_1 0.018063839163769302 0.3821808909554522 Dap3_15 0.003574520531054781 0.9079546022698866 Dars2_3 0.07503687394817948 0.07254637268136593 Dctn1_2 0.45538670507135526 4.999750012499375e-05 Ddit3_1 0.08231506436659586 0.013749312534373281 Ddx59_1 0.07968953237528409 0.08359582020898955 Ddx59_3 0.09932456323683725 0.022648867556622168 Dguok_2 0.009716570353095921 0.4936753162341883 Dhcr7_2 0.023924162153713624 0.5423228838558072 Dhdds_1 0.06375427106053222 0.11954402279886006 Dkc1_1 0.16158990207342594 4.999750012499375e-05 Dkc1_8 0.011441252219196674 0.7109144542772862 Dmtf1_2 0.04219780095338588 0.2914354282285886 Dmtf1_4 0.011420894556252947 0.46192690365481726 Dmwd_2 0.010844237187387029 0.4950752462376881 Dnaja3_2 0.02544572774938314 0.13879306034698266 Dnajc13_3 0.11547846006303741 0.009449527523623819 Dnajc5_3 0.01056627504666241 0.6212189390530474 Dnal4_1 0.02679043315452656 0.035548222588870554 Dnlz_1 0.03572006786659199 0.12829358532073395 Dnm1l_2 0.004820035978159831 0.7898105094745262 Dnm1l_5 0.07347703007112105 0.07814609269536524 Dnm2_3 0.14431022272285743 4.999750012499375e-05 Dnmt3b_1 0.02934987661835009 0.016199190040497975 Dpf2_2 0.48182910715064997 4.999750012499375e-05 Dph3_1 0.05244503814591439 0.03169841507924604 Dph3_2 0.02863352077072867 0.0447977601119944 Dph6_1 0.08263849146751057 0.033548322583870804 Dpp7_3 0.027306321368409048 0.45967701614919254 Dscc1_1 0.00624587529106535 0.8623568821558922 Dst_6 0.49430708118406796 4.999750012499375e-05 Dync1i2_2 0.29052970384658605 4.999750012499375e-05 Ect2_2 0.45543954352429883 4.999750012499375e-05 Edc3_1 0.020059814765248762 0.4739763011849408 Eef1d_3 0.06831922961357806 0.00904954752262387 Eef1d_6 0.06195849208292237 0.08509574521273937 Egfl7_1 0.01563857964397286 0.6503674816259187 Egfl7_5 0.02517853473737175 0.46652667366631667 Egfl7_6 0.013608961549257614 0.7126643667816609 Eif4a2_1 0.03706453843557389 0.010049497525123744 Eif4e2_1 0.15466006334295268 4.999750012499375e-05 Eif4g1_1 0.07510866659855997 0.07234638268086596 Eif4g2_1 0.02917697478422021 0.20508974551272435 Eif4h_1 0.07495964775994524 4.999750012499375e-05 Eif5a_1 0.10927728867510733 0.0031498425078746064 Eif5a_3 0.06275461270497651 0.06344682765861707 Elmo2_2 0.29182371770396265 4.999750012499375e-05 Emsy_1 0.11665363627656677 0.0006999650017499125 Epb41l3_1 0.0771344845297035 0.000599970001499925 Epb41l3_2 0.10725817769748791 4.999750012499375e-05 Eps15_1 0.03770312668325715 0.21943902804859758 Eps15l1_2 0.04807672062671753 0.0008999550022498875 Eps15l1_6 0.02590307531262037 0.04269786510674466 Ercc8_5 0.015752019858389366 0.18329083545822708 Ercc8_nmdSE_1 0.02503326723844712 0.3726313684315784 Erh_1 0.04805871652432514 0.0014499275036248187 Ewsr1_1 0.000905107708472519 0.9771011449427529 Exo1_2 0.12799124447042542 0.0023498825058747065 Exoc1_4 0.05152909861568589 0.02069896505174741 Exoc7_1 0.09498145196632368 0.000199990000499975 Exoc7_2 0.444806791019429 4.999750012499375e-05 Ezh2_3 0.02395321449383425 0.07029648517574122 Faim_1 0.18550290735877895 4.999750012499375e-05 Fam49b_5 0.01848138769012253 0.6174191290435478 Fam53a_12 0.016058932433615447 0.6654667266636668 Fance_2 0.047996208551916664 0.2326383680815959 Fance_3 0.040486679501714806 0.04189790510474476 Fat1_2 0.08956975823239122 4.999750012499375e-05 Fbxo25_1 0.29922405714218603 4.999750012499375e-05 Fbxw5_6 0.034866931197714446 0.25308734563271834 Fez2_1 0.23377204614124092 0.00014999250037498125 Fhl1_1 0.17654625207240104 4.999750012499375e-05 Fhl1_3 0.004867644504159552 0.8739563021848907 Fibp_1 0.029744769994626608 0.3409829508524574 Fignl1_3 0.0238667740668862 0.5152742362881856 Fip1l1_1 0.02806150200130053 0.03444827758612069 Fip1l1_6 0.019914341417051507 0.08444577771111444 Fis1_3 0.04009615563350144 0.08909554522273887 Flot2_2 0.06808146232432055 0.04679766011699415 Fmr1nb_1 0.16521963152102104 4.999750012499375e-05 Fn1_10 0.11973457972527746 0.003949802509874506 Fntb_1 0.08361669932206028 0.01814909254537273 Fopnl_11 0.0659136456523105 0.017649117544122794 Fopnl_6 0.08737751013420425 0.003799810009499525 Fubp1_1 0.021577832315267553 0.4845757712114394 Fxr1_1 0.04772522474218921 0.00039998000099995 G3bp2_1 0.09567251969720214 9.99950002499875e-05 Gab1_1 0.06457031662489954 0.005799710014499275 Gabpb1_1 0.0021216643221599885 0.9605519724013799 Ganab_2 0.0238866389161303 0.04814759262036898 Gas5_4 0.042431874759188304 0.020298985050747464 Gatad2a_1 0.2642679743356823 4.999750012499375e-05 Gemin7_1 0.1618229896718123 4.999750012499375e-05 Gm21992_1 0.15524900356750015 0.0023998800059997 Gm28036_1 0.02167041994525798 0.07319634018299086 Gm28036_13 0.032497163440612487 0.024348782560871956 Gm28036_3 0.10835237585641688 4.999750012499375e-05 Gm28036_9 0.10416831198023191 0.00014999250037498125 Gm28042_1 0.08865458467394394 0.008499575021248937 Gm28042_3 0.05961286335585536 0.11564421778911055 Gm43809_1 0.030752597919916136 0.3266336683165842 Gm6483_1 0.08541424300060108 0.007799610019499025 Gmppa_3 0.007646973209096575 0.7264636768161592 Gnas_2 0.07140678969454406 0.012199390030498474 Gng12_1 0.002834560684605969 0.9142542872856357 Gosr2_1 0.018370514793088266 0.5965201739913004 Gosr2_2 0.015171841409130638 0.527823608819559 Gpatch11_1 0.06703421682897015 0.08019599020048998 Gpbp1_1 0.025189414521668896 0.056297185140742965 Gprasp1_1 0.0988797716923262 0.00014999250037498125 Gtf2h1_1 0.07607403831231696 0.004749762511874406 Gtf2i_13 0.011596553332844928 0.5431728413579321 Gtf2i_2 0.22952124217257264 4.999750012499375e-05 Gtf2i_4 0.001458286579769319 0.9717514124293786 Gtf2ird1_2 0.011044801319332387 0.6055197240137993 Gtf2ird1_4 0.00140350875398354 0.9505024748762562 Gtf3c2_1 0.009166361406106383 0.6137693115344233 H13_3 0.1588242452656874 0.0002999850007499625 H2afv_2 0.08808680848930339 0.014249287535623219 Haus2_3 0.047871282038355445 0.17804109794510276 Haus8_4 0.05460647186392753 0.12609369531523423 Hnrnpa2b1_1 0.08680469385711054 0.00014999250037498125 Hnrnpa2b1_2 0.0708142596290875 4.999750012499375e-05 Hnrnpa2b1_4 0.032376484679443984 0.16339183040847957 Hnrnpab_1 0.034065533361314904 0.012149392530373481 Hnrnpc_1 0.08430577264193351 4.999750012499375e-05 Hnrnpd_3 0.058382409065573126 0.0002999850007499625 Hnrnpd_6 0.011477184628112314 0.5220738963051847 Hnrnpdl_nmdSE_1 0.12044799273657525 9.99950002499875e-05 Hnrnph3_2 0.14235349513471174 4.999750012499375e-05 Hnrnpr_1 0.011966316143712685 0.33458327083645817 Hnrnpr_2 0.0070718607124882205 0.6116694165291735 Hp1bp3_1 0.09171032491268127 4.999750012499375e-05 Hp1bp3_4 0.0733412624951093 0.025398730063496824 Hras_2 0.06529917310168798 0.08729563521823909 Idh3g_1 0.28501843045995934 4.999750012499375e-05 Idnk_1 0.047671263454490465 0.07459627018649068 Ift20_1 0.0079041492094305 0.6127693615319234 Ift46_5 0.0028834931662110597 0.9356032198390081 Ift52_4 0.02425121750984971 0.48427578621068945 Immt_1 0.11208902823424527 4.999750012499375e-05 Immt_2 0.17745473512105592 9.99950002499875e-05 Immt_3 0.010735166526761541 0.7713114344282785 Inip_1 0.016216601187842072 0.3473326333683316 Ino80e_1 0.09163929118301928 0.001799910004499775 Ino80e_6 0.1799215460703233 9.99950002499875e-05 Inppl1_2 0.08851837508878968 0.013949302534873257 Ints10_1 0.0947932459002766 0.011549422528873556 Ints7_4 0.02480308101154105 0.5703214839258037 Ip6k2_4 0.07418174616111894 4.999750012499375e-05 Ip6k2_7 0.032589032560634945 0.24853757312134395 Ip6k2_8 0.055424399305077476 0.00034998250087495624 Ipo9_nmdSE_2 0.05960370328684117 0.14344282785860707 Irak1bp1_1 0.10935944250482832 0.013299335033248337 Isca2_1 0.0027495732732053524 0.8854057297135143 Itfg2_4 0.033734471680568645 0.3938303084845758 Jmjd7_1 0.10441117153643897 0.01749912504374781 Josd2_7 0.11875680888050699 0.004149792510374482 Kars_1 0.09473928393836317 0.001399930003499825 Kars_2 0.0006697214555824171 0.9787010649467527 Kat5_1 0.0077695137857237695 0.6280685965701714 Kat7_1 0.04670929604658958 0.05184740762961852 Kat7_2 0.018646645444935217 0.16364181790910454 Kif20b_6 0.052356276207765284 0.09784510774461277 Kif23_1 0.014256082729462105 0.32058397080145995 Kifap3_1 0.0548457258516436 0.08374581270936453 Kmt2e_7 0.02968743315695377 0.32763361831908405 Kras_1 0.053308585530970176 0.15509224538773062 Krit1_2 0.08418504479579603 0.004599770011499425 Ktn1_2 2.2599805958201102e-05 0.9993500324983751 Ktn1_9 0.011021140872234603 0.3924303784810759 Ldhb_1 0.029828007322738048 0.19634018299085046 Lef1_1 0.0010880915931152924 0.9622018899055047 Lhpp_4 0.04980496766092979 0.264086795660217 Lias_4 0.12495033403321953 0.0013499325033748313 Llgl2_2 0.11145841865399087 0.0005499725013749313 Lrch4_5 0.017033154050122068 0.6603169841507924 Lrr1_1 0.07696389342209842 0.000599970001499925 Lrrc40_3 0.01923912703316899 0.6014199290035498 Lrrfip1_2 0.06745792320938848 4.999750012499375e-05 Lrrfip1_3 0.09225661248038886 0.00679966001699915 Lrrfip1_6 0.18745411201069262 0.0002999850007499625 Lrrfip1_8 0.17850569272631545 4.999750012499375e-05 Lrrfip2_6 0.019141015581458976 0.3558322083895805 Lsg1_2 0.011295171649344904 0.743912804359782 Lsm14a_1 0.016230829319540452 0.6759662016899155 Lsm14a_4 0.10642777741574594 4.999750012499375e-05 Lsm5_2 0.04559943915366593 0.15819209039548024 Lsm5_5 0.02050275427228554 0.3721813909304535 Lsm5_6 0.04489489340565045 0.16454177291135444 Lsm6_2 0.06168840041974699 4.999750012499375e-05 Lsr_5 0.11623520615199423 4.999750012499375e-05 Luc7l_nmdSE_1 0.04742495042954875 0.04954752262386881 Luzp1_1 0.010982471923365322 0.383830808459577 Lyar_2 0.0348594427011677 0.1824908754562272 Lyar_4 0.2540664772554615 4.999750012499375e-05 Lyar_5 0.263661590073738 4.999750012499375e-05 Macf1_1 0.046786487705117175 0.020898955052247387 Malsu1_1 0.0459061723046541 0.15604219789010548 Map4_1 0.4217623824650283 4.999750012499375e-05 March7_1 0.18185267792646886 4.999750012499375e-05 Mark2_2 0.27422211134625063 4.999750012499375e-05 Mark3_2 0.019675170625681693 0.2999350032498375 Mbtps2_1 0.007034417764188228 0.7076646167691616 Mcee_1 0.10591152936200277 0.004149792510374482 Mcee_2 0.07583705156097809 0.004849757512124394 Meaf6_5 0.5877362566811781 4.999750012499375e-05 Meaf6_nmdSE_1 0.06488321269527975 0.000199990000499975 Med15_8 0.05587702687693552 0.21318934053297336 Med25_6 0.06136279835994496 0.015249237538123094 Med7_1 0.07523403934845108 0.02974851257437128 Med7_2 0.04130811141745139 0.14969251537423128 Med7_3 0.096596724797402 0.0030998450077496125 Med8_8 0.010155788924663511 0.743962801859907 Meg3_3 0.06556493586682921 4.999750012499375e-05 Meg3_5 0.15827828344248973 4.999750012499375e-05 Memo1_1 0.03248289859378306 0.3497325133743313 Mettl16_nmdSE_1 0.0416578068113993 0.1465926703664817 Mettl17_3 0.12825489988891192 0.0002999850007499625 Mettl17_4 0.1529709425152248 0.00039998000099995 Mettl22_2 0.040768244051015534 0.27148642567871606 Mettl3_3 0.04332280011945211 0.2448377581120944 Mettl5_1 0.08001303877176102 0.02909854507274636 Mettl6_1 0.05214718413047881 0.1432428378581071 Mff_1 0.10879633852624848 0.02294885255737213 Mff_3 0.129093535573234 4.999750012499375e-05 Mff_4 0.4117995347877569 4.999750012499375e-05 Mff_5 0.07586236091160525 0.0006499675016249188 Mfge8_1 0.007293994687835426 0.6219189040547972 Mgrn1_2 0.011598808481957823 0.39003049847507626 Mia3_1 0.014643392299824032 0.735613219339033 Miip_1 0.10670290615532596 0.0002999850007499625 Mis18bp1_2 0.031106151552800276 0.2312884355782211 Mllt10_11 0.09258959445454773 0.004199790010499475 Mllt10_2 0.11457495380047134 0.017299135043247836 Mllt10_3 0.028651100655365802 0.07099645017749112 Mlx_1 0.03954805292135444 0.2600869956502175 Morf4l2_2 0.44777547205334167 4.999750012499375e-05 Mpdu1_1 0.11081501955329276 0.00279986000699965 Mpdu1_2 0.1554958712210358 9.99950002499875e-05 Mpv17_2 0.19285349472021274 4.999750012499375e-05 Mpzl1_1 0.014516295467078333 0.2287385630718464 Mrpl24_1 0.03305726987447222 0.020498975051247436 Mrpl30_3 0.021570643882617202 0.21168941552922355 Mrpl55_1 0.036641825623026314 0.11939403029848508 Mrpl55_7 0.01909242233516062 0.40412979351032446 Mrpl55_8 0.009798083565164206 0.5880205989700515 Mrps17_1 0.001950350370212961 0.9177041147942603 Mrps17_2 0.000446933794544524 0.9812509374531273 Mrps17_4 0.0012477520661673402 0.9469026548672567 Mrps18c_1 0.011913850038175577 0.7002149892505375 Mta1_1 0.30601871212607146 4.999750012499375e-05 Mtch2_1 0.048560864516442814 0.13794310284485775 Mtch2_2 0.04739901054721707 0.049647517624118793 Mtdh_2 0.09115017255398938 0.011399430028498575 Mtdh_4 0.1844817172978097 4.999750012499375e-05 Mtf2_2 0.04126236082680801 0.0004999750012499375 Mtf2_3 0.023012598982533827 0.08184590770461476 Mtf2_4 0.023235042893772984 0.17564121793910303 Mtf2_6 0.0425440812547172 0.02384880755962202 Mtf2_7 0.01703278887512305 0.21713914304284787 Mtg2_8 0.03488778608210141 0.09879506024698766 Mtif2_3 0.05231030191230279 0.1960401979901005 Mtmr14_5 0.011066326581056884 0.5373731313434328 Mtmr14_8 0.03199101791122261 0.06599670016499175 Mtmr2_1 0.008002523618569124 0.6152192390380481 Mtmr2_2 0.028489899001447272 0.17549122543872805 Mtrr_1 0.0060459371007416385 0.8900054997250137 Mutyh_5 0.12286608240051289 0.00039998000099995 Mvk_1 0.020630666767471273 0.24768761561921904 Myef2_9 0.009094742958818958 0.5254737263136843 Myo1b_1 0.06004696022289058 0.0010499475026248687 N6amt1_1 0.0445721281696454 0.012549372531373431 Naa25_nmdSE_1 0.04420827178768638 0.09514524273786311 Nadk_7 0.010209693545880194 0.7426628668566572 Naga_1 0.005371961883067655 0.8608569571521424 Naga_2 0.05581812558581767 0.21333933303334834 Nap1l4_1 0.007598418557652309 0.6232188390580471 Nasp_1 0.39518947627432777 4.999750012499375e-05 Ncor1_2 0.020402998651215976 0.14284285785710715 Ndel1_1 0.01435679163390191 0.2606869656517174 Ndrg3_1 0.04135401894859447 0.14924253787310635 Ndufa7_1 0.07755319432904773 0.025948702564871758 Ndufaf3_1 0.11439414076691423 0.0022998850057497125 Ndufaf6_1 0.01660776201263714 0.49077546122693866 Ndufs1_5 0.008272189503734206 0.5686715664216789 Ndufs1_6 0.018408606033028962 0.11534423278836058 Ndufs7_3 0.04009802200539958 0.207939603019849 Necap2_2 0.14617874841292156 0.0014999250037498126 Necap2_3 0.18897498683398106 4.999750012499375e-05 Nhej1_1 0.04991388697650623 0.2629368531573421 Nipa2_2 0.007507626607169748 0.7905104744762762 Nktr_5 0.024022535257350763 0.583870806459677 Nme6_3 0.06823102410845916 0.05944702764861757 Nme6_4 0.06671773873495379 0.009949502524873756 Nmt2_2 0.07749889605245752 0.09069546522673866 Nnat_1 0.3138014932328643 4.999750012499375e-05 Nnat_2 0.29794282404636296 4.999750012499375e-05 Nnat_3 0.31447549924168827 4.999750012499375e-05 Nnat_4 0.031226918570142814 0.304034798260087 Nop58_14 0.08303305051277199 0.018749062546872655 Nop58_4 0.07037783399245345 0.040897955102244886 Nqo2_4 0.06843975805263236 0.0039998000099995 Nr2c2ap_1 0.047007113676081014 0.06299685015749212 Nrf1_5 0.06483253630995078 0.000199990000499975 Nsfl1c_2 0.09091608972467624 4.999750012499375e-05 Nt5c3_2 0.012132877729456037 0.5645217739113044 Nt5m_3 0.1097578320324748 0.021548922553872307 Ntan1_1 0.1372674029146761 0.00034998250087495624 Ntan1_11 0.0880342370583359 0.002599870006499675 Ntan1_12 0.11586191128985124 9.99950002499875e-05 Ntan1_2 0.12252286577222471 0.0012999350032498376 Ntan1_8 0.07299661903824317 0.034698265086745665 Nudt14_1 0.006766844931203386 0.7720613969301535 Nudt1_1 0.06311174179166168 0.012999350032498375 Nudt5_4 0.04524263522766381 0.1616419179041048 Nusap1_1 0.023618832015639857 0.35928203589820507 Nxt1_1 0.13593941536616938 0.00034998250087495624 Oaz2_1 0.03621879525342009 0.2994350282485876 Odf2_1 0.030918278685301503 0.07419629018549073 Odf2_2 0.0173096445309997 0.21778911054447278 Ogg1_1 0.22800917883664296 0.00014999250037498125 Opa1_1 0.005657381848928389 0.7707614619269036 Opa1_2 0.00338593027003653 0.8733063346832658 Orc6_2 0.044431417365877746 0.06244687765611719 Ormdl2_1 0.04768051470431478 0.14364281785910704 Osgepl1_2 0.055829746574125316 0.16989150542472875 Papola_6 0.07648618279118014 0.004999750012499375 Patz1_1 0.08437395793632718 0.0002999850007499625 Patz1_2 0.08862294220244094 0.006099695015249237 Patz1_3 0.023002454717178877 0.095995200239988 Pbrm1_1 0.03458609219980335 0.0035498225088745564 Pbrm1_11 0.06857984506902559 0.0006499675016249188 Pcbp2_7 0.02595120397503048 0.055147242637868105 Pcyox1_2 0.04563266773975039 0.30128493575321236 Pcyt2_2 0.012389778989260525 0.3213339333033348 Pdcd2l_1 0.006942933494521908 0.8234088295585221 Pdlim7_10 0.2709623835351531 4.999750012499375e-05 Pdlim7_11 0.019841491700976932 0.24843757812109393 Pdss1_2 0.04351922709556144 0.09949502524873756 Pdxdc1_1 0.033645979781373514 0.3631318434078296 Pex2_1 0.011438277130075059 0.5904704764761762 Pex2_2 0.05169350337812306 0.10199490025498725 Phc1_1 0.07725333638362442 4.999750012499375e-05 Phc1_2 0.055539987524789614 0.00039998000099995 Pigs_2 0.05148171975620819 0.14829258537073145 Pigx_nmdSE_1 0.007121225307449075 0.8006599670016499 Pitpnb_1 0.1930793841146755 4.999750012499375e-05 Pja2_1 0.031021826754413118 0.0303984800759962 Pkig_1 0.006887468235161842 0.8191090445477726 Pkig_2 0.03565138013395053 0.336083195840208 Pld3_1 0.0021692992938107114 0.9385530723463826 Plekha1_2 0.020024695323708874 0.3344832758362082 Plekha1_3 0.012330397205956412 0.5175241237938103 Plekha1_4 0.007377925205307778 0.736013199340033 Plekha5_1 0.005302135798865626 0.8162591870406479 Plekhj1_2 0.011253333756929051 0.7151142442877856 Plekhj1_3 0.007591363917272553 0.8063596820158992 Plpp5_2 0.015114700247492285 0.7266136693165341 Poldip3_1 0.04484707604366678 0.012199390030498474 Pou2f1_2 0.008878020480192483 0.6199690015499225 Pphln1_1 0.0549506515545467 0.175791210439478 Pphln1_4 0.026334148012216896 0.1432928353582321 Pphln1_6 0.057379514812261556 4.999750012499375e-05 Ppig_1 0.04912257046260882 0.16704164791760412 Ppig_2 0.04657946880206443 0.009649517524123795 Ppig_4 0.06466523437673832 0.0006499675016249188 Ppil3_1 0.07431790402921423 0.03129843507824609 Ppip5k2_2 0.25752736247591057 4.999750012499375e-05 Ppip5k2_5 0.06967611105884808 0.0031998400079996 Ppip5k2_7 0.12376748648009916 0.0007499625018749063 Ppp6r3_7 0.016205308439470212 0.5651717414129294 Pradc1_2 0.0894566549456366 0.036348182590870456 Prc1_3 0.04958519970227271 0.0012999350032498376 Prc1_6 0.012237652741343696 0.40592970351482427 Prepl_1 0.24535303269548392 4.999750012499375e-05 Prmt1_3 0.0250767674007204 0.16209189540522975 Prmt1_6 0.01934003163409803 0.45627718614069296 Prorsd1_1 0.06790247755368872 0.009249537523123843 Prpf38b_nmdSE_2 0.08522911768427655 0.0015499225038748063 Prpf39_nmdSE_1 0.03296153368229282 0.03884805759712014 Prpf3_nmdSE_1 0.14237370301953556 0.0006999650017499125 Prpsap2_6 0.0011194173878501523 0.9573021348932553 Prr13_1 0.006852609989967284 0.6616669166541673 Prr3_1 0.1337103066184755 4.999750012499375e-05 Prrc2b_5 0.036750933120546114 0.00519974001299935 Psap_1 0.38307009876288844 4.999750012499375e-05 Psmg4_1 0.09840500590199552 9.99950002499875e-05 Pstk_1 0.011648529956688636 0.4013799310034498 Pstk_2 0.04987606117637655 0.16024198790060498 Ptbp1_6 0.07625269738024487 4.999750012499375e-05 Ptbp2_2 0.1015211261387946 0.031948402579871006 Ptgr2_nmdSE_1 0.0077616982673524015 0.84060796960152 Ptma_2 0.01185665850611095 0.5077246137693116 Ptma_5 0.15995783720079226 0.0004999750012499375 Puf60_1 0.023539537756901874 0.08444577771111444 Pum2_2 0.04390850490592568 0.0031998400079996 Pycr1_5 0.05860936535278327 0.12154392280385981 Qrich1_2 0.017040150970600076 0.22578871056447178 Qrich1_6 0.004239576433663461 0.8120093995300235 Qrich1_8 0.010590914660322914 0.4818759062046898 Rab28_1 0.09250267027577985 0.048597570121493926 Rabggtb_nmdSE_1 0.0434253546278176 0.001399930003499825 Rad18_2 0.025569130222991232 0.035248237588120596 Rad52_1 0.12279221115587147 0.00039998000099995 Rad54b_5 0.03216689029181197 0.2553872306384681 Ralgps2_nmdSE_1 0.05669717705991195 0.055997200139993 Raly_6 0.11027240060855625 0.00024998750062496874 Raly_7 0.018441889931721578 0.44442777861106947 Rbm10_4 0.013054433878644356 0.3566821658917054 Rbm25_11 0.046287774155633676 0.0024998750062496873 Rbm25_2 0.003411158864852215 0.8842557872106395 Rbm25_7 0.04749060279803807 0.0014499275036248187 Rbm25_8 0.024877267498668032 0.27783610819459026 Rbm34_1 0.014379527317053609 0.5268236588170592 Rbm39_13 0.06400509555994938 0.0007999600019999 Rbm39_14 0.04862444266650179 0.11944402779861008 Rbm39_nmdSE_2 0.2478623098235857 4.999750012499375e-05 Rbm39_nmdSE_3 0.09624626575639295 0.007849607519624019 Rbm4_1 0.05774272036524608 0.0034498275086245686 Rbms1_1 0.025837282400310135 0.15014249287535622 Rbpms_15 0.03715776500714907 0.03214839258037098 Rcbtb2_1 0.11897897827704629 9.99950002499875e-05 Rcbtb2_4 0.04378838291388243 0.32028398580071 Rcc1_3 0.0417783419413964 0.09454527273636318 Rer1_2 0.057655926148042935 0.002849857507124644 Rer1_3 0.06780220346203358 4.999750012499375e-05 Rexo4_1 0.04956967950111779 0.2175891205439728 Rfng_1 0.0033291389389425996 0.9133543322833858 Rgs19_2 0.03177383878942297 0.19454027298635068 Rgs19_4 0.0001784360989535161 0.9961501924903755 Rhbdd2_nmdSE_1 0.006158857945567697 0.8281585920703964 Rhno1_1 0.062094096095067886 0.0004999750012499375 Rhot1_3 0.038232981393560794 0.07414629268536573 Rhot1_5 0.006217830375735867 0.7562621868906555 Rif1_5 0.17681387181862385 4.999750012499375e-05 Rnaseh2b_1 0.0023046700780849916 0.9028048597570122 Rnaseh2b_2 0.0003130235140881288 0.9889505524723764 Rnf138_1 0.003399274668831387 0.9226538673066347 Rnf138_3 0.0841290605638535 4.999750012499375e-05 Rnpep_1 0.009793679546365786 0.7774111294435279 Rnps1_1 0.019480288618889507 0.17129143542822858 Rpain_2 0.014022625096387187 0.6846657667116645 Rpain_5 0.06273757856660545 0.08184590770461476 Rpl13a_9 0.007992939604100524 0.8193090345482726 Rpl18_1 0.02066061742782843 0.11084445777711115 Rpn2_1 0.4502545520728307 4.999750012499375e-05 Rprd1b_1 0.03688577495298484 0.22983850807459627 Rps19_nmdSE_1 0.0038085763364612557 0.8871556422178891 Rps26_1 0.015384867767747501 0.22308884555772213 Rps27l_1 0.07215589848954418 0.03664816759162042 Rps6kb1_1 0.09165877204672623 0.020098995050247488 Rps6kb2_nmdSE_1 0.06509003025033622 0.14974251287435628 Rsrc2_11 0.08612395824604824 0.00014999250037498125 Rsrc2_6 0.09303897600170441 0.00014999250037498125 Rsrc2_nmdSE_1 0.15866742009220514 9.99950002499875e-05 Rsrp1_1 0.08507604584222128 9.99950002499875e-05 Samhd1_2 0.0016081217022027028 0.9685515724213789 Sapcd2_1 0.044665717462176846 0.1502424878756062 Sbno1_6 0.049118799047261685 0.0002999850007499625 Scarb1_1 0.010926493590764808 0.39728013599320033 Scnm1_1 0.015208596024995358 0.6202689865506724 Scrib_2 0.34951424458845015 4.999750012499375e-05 Sdccag3_9 0.01664651674792983 0.1815909204539773 Serpinb6a_1 0.06545838366863999 0.11249437528123594 Setd5_2 0.020678132843676478 0.27803609819509023 Sf1_2 0.0005621720414589193 0.9742512874356282 Sfswap_1 0.02041978998412486 0.19544022798860056 Sgce_4 0.16083700662059586 4.999750012499375e-05 Sh2b1_2 0.15357596894901915 0.0026498675066246686 Sh3glb2_2 0.25371639629674825 4.999750012499375e-05 Sh3glb2_3 0.1448166164033523 9.99950002499875e-05 Sirt3_2 0.07207886952342879 0.11349432528373582 Slc25a19_10 0.043411235266181736 0.2789360531973401 Slc25a38_nmdSE_1 0.006718557059711139 0.824308784560772 Slc25a38_nmdSE_2 0.005437626072759105 0.8589070546472677 Slc25a39_6 0.0038665592248320335 0.9002049897505124 Slc29a1_1 0.1309631775300676 4.999750012499375e-05 Slc31a2_1 0.00776047997426299 0.8610069496525173 Slc35a1_1 0.0072158980137895234 0.7983100844957752 Slc35a1_2 0.028605278951924884 0.5156742162891855 Slc4a1ap_3 0.04533513035990466 0.0012999350032498376 Slc7a3_1 0.11529050597467494 0.005299735013249337 Slc9a3r2_2 0.06532098118690843 0.14834258287085647 Slu7_1 0.04663213132727062 0.00014999250037498125 Slx1b_2 0.1217616395243748 0.0008499575021248938 Smad2_2 0.09872715515203823 0.013299335033248337 Smarcad1_3 0.04328037395064477 0.0002999850007499625 Smc6_1 0.031648736908838626 0.31268436578171094 Smc6_2 0.011857619326155144 0.7304134793260337 Smpd4_10 0.07625518871895065 0.096045197740113 Smpd4_4 0.04333380062700776 0.27948602569871506 Smtn_4 0.020523790362761085 0.4985750712464377 Snf8_1 0.01262445049412253 0.7126143692815359 Snx11_2 0.005195937055893385 0.8127593620318984 Snx16_2 0.0570822527562852 0.0744462776861157 Son_nmdSE_1 0.040492092994470985 0.15734213289335533 Spata5_1 0.04888061888304496 0.011699415029248537 Spc25_1 0.0786916907538332 0.031248437578121093 Spint2_2 0.14747250532245648 9.99950002499875e-05 Sptan1_3 0.48425858636368846 4.999750012499375e-05 Srek1_1 0.1114071878859465 0.0005499725013749313 Srpk2_4 0.03202310779905826 0.09799510024498775 Srsf10_nmdSE_1 0.005743261309574588 0.8075596220188991 Srsf7_3 0.05867339625936818 0.018199090045497725 Ss18_1 0.07708213366300276 0.004249787510624469 Ss18_11 0.08342464551460427 0.02249887505624719 Ssbp3_3 0.10375140664510207 4.999750012499375e-05 Stag1_11 0.05476366986884351 0.1768411579421029 Stag2_1 0.032142163124111 0.025748712564371782 Sumf2_5 0.01725237482235753 0.6414179291035448 Sun1_17 0.03888983832119619 0.20598970051497426 Supt5_3 0.0805025465839776 0.006149692515374231 Syce2_2 0.10744819203462352 4.999750012499375e-05 Szrd1_1 0.031086312770434388 0.005699715014249288 Szrd1_2 0.033585293491893764 0.06764661766911655 Tada3_2 0.08468097556856535 4.999750012499375e-05 Taf6l_5 0.0409943199584073 0.26908654567271634 Taf8_1 0.04549490609339013 0.30278486075696215 Tamm41_2 0.07939721509382003 0.02984850757462127 Tars2_1 0.017027593540417163 0.5118744062796861 Tars2_10 0.059681658534037174 0.09459527023648817 Tars2_12 0.06837429187002542 0.07504624768761561 Tars2_15 0.07741409021873824 0.033548322583870804 Tars2_2 0.002125360575126023 0.9401529923503825 Tars2_8 0.05068478454050429 0.1752412379381031 Taz_1 0.012225895547089083 0.3579321033948303 Tbce_7 0.09340122818170038 0.018049097545122742 Tbp_2 0.021990928378734953 0.05399730013499325 Tbp_4 0.009564145068628571 0.5045747712614369 Tbp_5 0.03529749441453178 0.013499325033748313 Tbp_8 0.016361856829284815 0.16269186540672967 Tcerg1_5 0.028558938644272613 0.03149842507874606 Tcf7l2_10 0.019811066515789344 0.2087895605219739 Tcof1_1 0.032170434190664454 0.21573921303934804 Tcof1_2 0.03748100430530532 0.0009499525023748813 Tcp1_1 0.020647049230604453 0.503974801259937 Tctex1d2_2 0.01842715063879008 0.4791260436978151 Tdgf1_nmdSE_1 0.007309302121307648 0.8418579071046448 Tecr_4 0.2133174610926768 4.999750012499375e-05 Tex264_1 0.044734869569187374 0.23078846057697114 Tex30_4 0.0053357172799192165 0.8616569171541423 Tex30_5 0.04050065522052626 0.0005499725013749313 Tfdp1_nmdSE_1 0.09882795832761537 0.008699565021748913 Tfdp2_14 0.03542761589146448 0.0696465176741163 Tfdp2_9 0.0023360495134699955 0.9376031198440078 Tfe3_2 0.004501008132265283 0.8998050097495125 Tgfb1i1_1 0.15018786119412753 4.999750012499375e-05 Tgif1_1 0.035887420011433746 0.303984800759962 Thap3_1 0.06489102763301313 0.03319834008299585 Thap7_2 0.020302464648508378 0.28523573821308934 Thap7_3 0.10194748810766097 0.002199890005499725 Thrap3_5 0.01587984865006542 0.23708814559272037 Thyn1_1 0.01651078085814406 0.23898805059747014 Timm9_2 0.03242012800034988 0.023098845057747112 Tjap1_2 0.03893497983484173 0.0023498825058747065 Tk1_3 0.021255669787943243 0.5423728813559322 Tmem134_1 0.11866978390511584 4.999750012499375e-05 Tmem14c_2 0.015234932070681384 0.5045247737613119 Tmem161a_1 0.016409593305849568 0.42977851107444626 Tmem183a_nmdSE_1 0.1485563980911323 0.00024998750062496874 Tmem209_1 0.062435530531597117 0.10059497025148742 Tmem222_2 0.0528712229837488 0.10874456277186141 Tmem234_3 0.009243541158335478 0.7256137193140343 Tmem234_4 0.010844962848634454 0.5366231688415579 Tmem234_6 0.009821932002222922 0.5792210389480525 Tmem63b_1 0.20313872289957768 4.999750012499375e-05 Tmpo_3 0.0006472493829801085 0.9860506974651267 Tmub2_1 0.007151423765826892 0.7442627868606569 Tnip1_2 0.028529286043704416 0.17504124793760312 Tnks2_2 0.006673427397366316 0.7372631368431578 Top3b_1 0.03658923844625017 0.0038998050097495125 Top3b_2 0.03998559434517235 0.0018999050047497626 Top3b_7 0.12157795533616844 4.999750012499375e-05 Top3b_8 0.12987994166861017 4.999750012499375e-05 Tor1aip2_3 0.009377762702010073 0.511724413779311 Tpd52_6 0.5988638187559083 4.999750012499375e-05 Tpd52l1_1 0.08298441367551423 0.009149542522873857 Tpd52l1_4 0.08061779164681115 0.011499425028748563 Tpd52l2_2 0.3244893645404877 4.999750012499375e-05 Tpd52l2_4 0.07184701047943098 4.999750012499375e-05 Tpd52l2_7 0.1486576403829074 4.999750012499375e-05 Tpm1_5 0.13360535253155736 0.0008499575021248938 Tpm3_1 0.07849266233366026 0.017649117544122794 Tprkb_1 0.06596209860572244 0.11024448777561122 Traf7_1 0.022162171120077123 0.5240737963101845 Traf7_7 0.040117310714693044 0.2543872806359682 Trappc13_1 0.027275888994585662 0.01559922003899805 Trim26_3 0.03439962157361165 0.10359482025898704 Trip4_1 0.05835745212023269 0.15219239038048096 Trit1_5 0.05347888375020615 0.09174541272936353 Trmt10b_2 0.04031768364852162 0.35808209589520523 Trmt11_1 0.056304411150697176 0.13474326283685817 Trnau1ap_9 0.007553443874580568 0.7541622918854057 Trnau1ap_nmdSE_1 0.018295375301137895 0.5980200989950503 Trub2_1 0.11954497794061991 0.00034998250087495624 Trub2_2 0.005974627820717782 0.7447127643617819 Tsacc_1 0.0894691204561534 0.02269886505674716 Tsen54_2 0.23931973521242433 4.999750012499375e-05 Tsr2_1 0.011766651404699902 0.7029148542572872 Ttc13_2 0.05791155989369923 0.0012999350032498376 Ttc14_2 0.14294566511217366 0.0006999650017499125 Ttc9c_1 0.024541043261524398 0.5031248437578121 Txnrd1_1 0.06398822465627219 0.00039998000099995 Txnrd2_1 0.05577914614501589 0.2136393180340983 Tyw5_1 0.0036764874590947683 0.9180540972951352 Tyw5_2 0.00655151479199001 0.8063596820158992 U2af1l4_4 0.07909630541756596 0.023498825058747064 U2af1l4_6 0.019953532618881775 0.24863756812159393 U2surp_1 0.030115129402538354 0.0863956802159892 U2surp_2 0.01929050365395224 0.40017999100045 Uba3_2 0.07418177185581953 0.005649717514124294 Uba3_5 0.03211219671709176 0.06494675266236688 Ubac1_4 0.0360764785254567 0.30138493075346234 Ubap2l_1 0.11305019963763041 4.999750012499375e-05 Ubap2l_2 0.09013206695482767 9.99950002499875e-05 Ubap2l_3 0.13571437690945776 4.999750012499375e-05 Ubap2l_4 0.1316285910429048 4.999750012499375e-05 Ube2d-ps_3 0.014873029034936258 0.43612819359032046 Ube2f_4 0.012673251475379566 0.6531673416329183 Ube2i_1 0.1398488268330036 4.999750012499375e-05 Ube2i_2 0.025264494866837017 0.05529723513824309 Ube2j1_1 0.058545241392298 0.01064946752662367 Ubqln1_3 0.04302846796551785 0.014849257537123144 Ubtf_5 0.09673915662985755 4.999750012499375e-05 Urm1_1 0.018119148951113884 0.6757662116894155 Usp15_3 0.035623537394929516 0.012849357532123394 Usp16_4 0.24537598900527402 4.999750012499375e-05 Usp1_1 0.009765128151403069 0.575821208939553 Usp1_3 0.007505902855688196 0.6845657717114144 Usp3_6 0.025869719887123277 0.35713214339283034 Usp48_1 0.0508655282746473 0.00024998750062496874 Usp4_3 0.005921136930212234 0.8493575321233938 Uspl1_1 0.06706543773567708 0.0005499725013749313 Uspl1_2 0.10650929592847491 4.999750012499375e-05 Vps29_2 0.0614678997940824 0.0015499225038748063 Vrk1_4 0.03190597744910306 0.06664666766661667 Vrk1_5 0.07624472728972043 4.999750012499375e-05 Vta1_1 0.04044105592397562 0.20443977801109944 Wbp2_1 0.0140929502845335 0.5356232188390581 Wdr73_1 0.06476732960449794 0.013349332533373332 Wdr82_2 0.037071976148053576 0.35003249837508127 Wdyhv1_1 0.07281731809734737 0.02654867256637168 Wfdc2_1 0.05911261415127966 0.000199990000499975 Wfdc2_2 0.057906438949215544 0.0002999850007499625 Wfdc2_3 0.0767041484873392 0.007999600019999 Wsb1_nmdSE_1 0.10515870100718538 0.00034998250087495624 Xpnpep1_2 0.006660016617242026 0.6750162491875407 Yaf2_1 0.11479833107749593 4.999750012499375e-05 Ybx3_1 0.06320538476627258 0.015399230038498074 Ythdc1_nmdSE_1 0.022341054603290944 0.050197490125493724 Ythdf2_1 0.08531744344393077 0.00014999250037498125 Ythdf2_2 0.08589746569168133 0.00014999250037498125 Zcchc10_nmdSE_1 0.013442382886954651 0.6957152142392881 Zcchc17_1 0.015197725189838418 0.5053247337633119 Zcchc17_2 0.02199760592459521 0.5271236438178091 Zdhhc3_nmdSE_1 0.001108111839533632 0.9756012199390031 Zfand6_2 0.11001317286048762 0.0010499475026248687 Zfp207_1 0.2695952784207758 4.999750012499375e-05 Zfp266_5 0.05637978927569898 0.20938953052347384 Zfp322a_1 0.020816295552874342 0.18594070296485177 Zfp414_1 0.006383276461097154 0.7250637468126594 Zfp444_2 0.011437048481596435 0.42997850107494623 Zfp512_4 0.016235308724608655 0.4351282435878206 Zfp638_15 0.02094160552156854 0.5939203039848008 Zfp638_2 0.010094311804664358 0.472126393680316 Zfp688_2 0.0500383072613928 0.024298785060746963 Zfp688_nmdSE_1 0.008836070450867761 0.6110694465276736 Zfp932_1 0.06826756628056307 0.026098695065246737 Zfp961_1 0.06695170916966575 0.02854857257137143 Zfp961_2 0.1602275636284929 9.99950002499875e-05 Zfp961_3 0.2213215230121809 4.999750012499375e-05 Zfp961_4 0.0731480091806399 0.018999050047497624 Zfp961_6 0.06003510370208298 0.004849757512124394 Zfp961_8 0.1676933012871814 9.99950002499875e-05 Zmym3_3 0.05193469368894443 0.002999850007499625 Zmynd8_10 0.2154722947089237 4.999750012499375e-05 Znhit1_1 0.07829827521638966 0.04384780760961952 Zscan10_3 0.02928564047070703 0.42942852857357133 Zswim7_4 0.02406521142379825 0.16044197790110495 Zyx_1 0.026923731841916987 0.4925753712314384
49.30603
62
0.895385
93e20a161e8975dc26d1eec2063859c5f52b168b
265
cs
C#
checkers/svghost/src/IChecker.cs
tinh-sau-di-v/hitbsecconf-ctf-2021
cbf2f3c8cb3493989f5dcc8dedd353c03f1f5506
[ "MIT" ]
16
2021-08-27T23:13:06.000Z
2022-01-13T06:09:04.000Z
checkers/svghost/src/IChecker.cs
tinh-sau-di-v/hitbsecconf-ctf-2021
cbf2f3c8cb3493989f5dcc8dedd353c03f1f5506
[ "MIT" ]
3
2021-03-31T19:21:51.000Z
2021-06-08T20:31:48.000Z
checkers/svghost/src/IChecker.cs
tinh-sau-di-v/hitbsecconf-ctf-2021
cbf2f3c8cb3493989f5dcc8dedd353c03f1f5506
[ "MIT" ]
3
2021-08-28T10:17:01.000Z
2021-12-10T09:33:44.000Z
using System.Threading.Tasks; namespace checker { internal interface IChecker { Task<string> Info(); Task Check(string host); Task<string> Put(string host, string id, string flag, int vuln); Task Get(string host, string id, string flag, int vuln); } }
20.384615
66
0.713208
06ef7325a186d60b3af12c787a6a37759f766bd5
10,400
py
Python
planeShooter.py
mparshorov/Py-Games
f0199456024e0f332cab1ccc498edb3eb2e0463c
[ "MIT" ]
null
null
null
planeShooter.py
mparshorov/Py-Games
f0199456024e0f332cab1ccc498edb3eb2e0463c
[ "MIT" ]
null
null
null
planeShooter.py
mparshorov/Py-Games
f0199456024e0f332cab1ccc498edb3eb2e0463c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pygame from pygame.locals import * import sys, random BLACK = ( 0, 0, 0) GREEN = ( 0, 255, 0) WHITE = (255, 255, 255) GRAY = (100, 100, 100) NAVYBLUE = ( 60, 60, 100) RED = (255, 0, 0) BLUE = ( 0, 0, 255) YELLOW = (255, 255, 0) ORANGE = (255, 128, 0) PURPLE = (255, 0, 255) CYAN = ( 0, 255, 255) WINDOWH=600 WINDOWW=400 pygame.init() screen=pygame.display.set_mode((WINDOWW,WINDOWH),0,32) pygame.display.set_caption('Plane Shooter!') clock = pygame.time.Clock() def displayFadingText(fontSize, text, windowSurface, clock, sec, FPS): alpha=255 alphatick=(255/FPS) alphatick=alphatick/(sec-0.5) basicFont = pygame.font.SysFont(None, fontSize) text = basicFont.render(text, True, (255, 0, 0)) textRect = text.get_rect() sur = pygame.Surface(textRect.size) surrec = sur.get_rect() surrec.center = windowSurface.get_rect().center textRect.center = sur.get_rect().center while alpha>0: sur.set_alpha(alpha) sur.blit(text,textRect) windowSurface.fill(BLACK) windowSurface.blit(sur,surrec) pygame.display.update() alpha-=alphatick clock.tick(FPS) class Livebar(pygame.sprite.Sprite): def __init__(self, enemy): pygame.sprite.Sprite.__init__(self) self.enemy = enemy self.image = pygame.Surface([self.enemy.rect.width,7]) self.image.set_colorkey((0,0,0)) pygame.draw.rect(self.image, (0,255,0), (0,0, self.enemy.rect.width,7),1) self.rect = self.image.get_rect() self.part=float(self.enemy.rect.width)/100 def update(self): self.percent = (100 * float(self.enemy.health)) / float(self.enemy.fullhealth) pygame.draw.rect(self.image, (0,0,0), (1,1,self.enemy.rect.width-2,5)) pygame.draw.rect(self.image, (0,255,0), (1,1,int(self.part*self.percent),5),0) self.rect.centerx = self.enemy.rect.centerx self.rect.centery = self.enemy.rect.centery - self.enemy.rect.height /2 - 10 class Bullet(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.image = pygame.Surface([4, 6]) self.image.fill(BLACK) self.image.set_colorkey(BLACK) pygame.draw.ellipse(self.image,YELLOW,[0, 0, 4, 6]) pygame.draw.ellipse(self.image,RED,[1, 2, 2, 3]) self.rect = self.image.get_rect() class Rocket(pygame.sprite.Sprite): def __init__(self): # Call the parent class (Sprite) constructor pygame.sprite.Sprite.__init__(self) img = pygame.image.load('./resources/'+"rocket.png").convert() img.set_colorkey(WHITE) imgrect = img.get_rect() imgst = pygame.transform.scale(img,[imgrect.width/4,imgrect.height/4]) self.image = imgst self.rect = self.image.get_rect() class Enemy(pygame.sprite.Sprite): boss=False def __init__(self, image, health, speed, ratio): pygame.sprite.Sprite.__init__(self) img = pygame.image.load('./resources/'+image).convert() img.set_colorkey(BLACK) imgrect = img.get_rect() imgst = pygame.transform.scale(img,[imgrect.width/ratio,imgrect.height/ratio]) self.image = imgst self.rect = self.image.get_rect() self.fullhealth=health self.health=health self.life=Livebar(self) self.speed = speed self.ratio = ratio def update(self): self.life.update() if self.ratio > 10: self.rect.y += self.speed else: self.rect.x+= self.speed if self.rect.right>=WINDOWW or self.rect.left<=0: self.speed = -self.speed class Player(pygame.sprite.Sprite): change_x=0 change_y=0 def __init__(self,x,y): pygame.sprite.Sprite.__init__(self) img = pygame.image.load('./resources/'+"mig.png").convert() img.set_colorkey(WHITE) imgr=img.get_rect() imgst = pygame.transform.scale(img,[imgr.width/11,imgr.height/11]) self.image = imgst self.rect = self.image.get_rect() self.rect.x = x self.rect.y = y self.fullhealth=200 self.health=200 self.life=Livebar(self) def changespeed_x(self,x): self.change_x=x def changespeed_y(self,y): self.change_y=y def update(self): self.life.update() old_x=self.rect.x new_x=old_x+self.change_x self.rect.x = new_x if self.rect.left<0 or self.rect.right>WINDOWW: self.rect.x=old_x old_y=self.rect.y new_y=old_y+self.change_y self.rect.y = new_y if self.rect.top < 0 or self.rect.bottom > WINDOWH: self.rect.y=old_y player = Player(WINDOWW/2,WINDOWH-100) enemy_list = pygame.sprite.Group() enemy_bullet = pygame.sprite.Group() bullet_list = pygame.sprite.Group() rocket_list = pygame.sprite.Group() player_list = pygame.sprite.Group(player) all_sprites = pygame.sprite.Group() all_sprites.add(player) all_sprites.add(player.life) shoot=False bg = pygame.image.load('./resources/'+"bgFULL.png") bgrec = bg.get_rect() FPS=45 # .05 - fastest 1 - slowest fireRate=.05 bullettick=0 ebullettick=0 playerSPEED=5 enemytick=0 NEWENEMY=FPS*2 enemy = Enemy('alienEnemy.png',20, 2, 12) enemy.rect.x = random.randint(0+enemy.rect.width,WINDOWW-enemy.rect.width) enemy.rect.y = 0+enemy.rect.height enemy_list.add(enemy) all_sprites.add(enemy) all_sprites.add(enemy.life) score=0 y=bgrec.height-WINDOWH while True: for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit(0) if event.type == KEYDOWN: if event.key == K_ESCAPE: pygame.quit() sys.exit(0) if event.key == K_LEFT: player.changespeed_x(-playerSPEED) if event.key == K_RIGHT: player.changespeed_x(playerSPEED) if event.key == K_UP: player.changespeed_y(-playerSPEED) if event.key == K_DOWN: player.changespeed_y(playerSPEED) if event.key == K_SPACE: shoot=True if event.key == ord('r'): rocket = Rocket() rocket1 = Rocket() rocket.rect.centerx = player.rect.left rocket1.rect.centerx = player.rect.right rocket.rect.y = player.rect.centery rocket1.rect.y = player.rect.centery rocket_list.add(rocket1) all_sprites.add(rocket1) rocket_list.add(rocket) all_sprites.add(rocket) if event.type == KEYUP: if event.key == K_LEFT: player.changespeed_x(0) if event.key == K_RIGHT: player.changespeed_x(0) if event.key == K_UP: player.changespeed_y(0) if event.key == K_DOWN: player.changespeed_y(-0) if event.key == K_SPACE: shoot=False bullettick+=1 enemytick+=1 if shoot: if bullettick>=FPS*fireRate: bullet = Bullet() bullet.rect.x = player.rect.centerx bullet.rect.y = player.rect.top+2 bullet_list.add(bullet) all_sprites.add(bullet) bullettick=0 if score>=10: enemytick=0 enemy = Enemy('alienEnemy.png',70, 1, 4) enemy.rect.x = WINDOWW/2 enemy.rect.top = 0+enemy.rect.height enemy_list.add(enemy) Enemy.boss = True all_sprites.add(enemy) all_sprites.add(enemy.life) score=0 if enemytick==NEWENEMY: if not Enemy.boss: score+=1 enemytick=0 enemy = Enemy('alienEnemy.png',20, 2, 12) enemy.rect.x = random.randint(0+enemy.rect.width,WINDOWW-enemy.rect.width) enemy.rect.y = 0+enemy.rect.height enemy_list.add(enemy) all_sprites.add(enemy) all_sprites.add(enemy.life) for bullet in bullet_list: bullet.rect.y -= 5 enemy_hit_list = pygame.sprite.spritecollide(bullet, enemy_list, False) for enemy in enemy_hit_list: enemy.health-=1 bullet_list.remove(bullet) all_sprites.remove(bullet) if bullet.rect.y < -10: bullet_list.remove(bullet) all_sprites.remove(bullet) for rocket in rocket_list: rocket.rect.y -= 5 enemy_hit_list = pygame.sprite.spritecollide(rocket, enemy_list, False) for enemy in enemy_hit_list: enemy.health-=10 rocket_list.remove(rocket) all_sprites.remove(rocket) if rocket.rect.y < -10: rocket_list.remove(rocket) all_sprites.remove(rocket) for enemy in enemy_list: enemy.update() if enemy.health>=20: ebullettick+=1 if ebullettick>=FPS: bullet = Bullet() bullet.rect.x = enemy.rect.centerx bullet.rect.y = enemy.rect.bottom+4 enemy_bullet.add(bullet) all_sprites.add(bullet) ebullettick=0 if enemy.rect.top > WINDOWH: enemy_list.remove(enemy) all_sprites.remove(enemy) all_sprites.remove(enemy.life) if enemy.health<=0: enemy_list.remove(enemy) all_sprites.remove(enemy) all_sprites.remove(enemy.life) for bullet in enemy_bullet: bullet.rect.y += 3 player_hit_list = pygame.sprite.spritecollide(bullet, player_list, False) for player in player_hit_list: player.health-=10 enemy_bullet.remove(bullet) all_sprites.remove(bullet) if bullet.rect.y > WINDOWH: enemy_bullet.remove(bullet) all_sprites.remove(bullet) screen.fill(BLUE) y-=1 if y<=0: screen.blit(bg,bgrec,area=(0,y+bgrec.height,WINDOWW,WINDOWH+10)) screen.blit(bg,bgrec,area=(0,y,WINDOWW,WINDOWH+10)) if y<-WINDOWH: y=bgrec.height-WINDOWH player_list.update() all_sprites.draw(screen) pygame.display.flip() clock.tick(FPS)
35.616438
86
0.591346
bd995177138838d9808d26585a687ab880a24fa0
148,977
sql
SQL
database/laravel.sql
hackeralistarsays/chaki
a139b0161169f96ad702f9042f0b0da96811bae5
[ "MIT" ]
null
null
null
database/laravel.sql
hackeralistarsays/chaki
a139b0161169f96ad702f9042f0b0da96811bae5
[ "MIT" ]
null
null
null
database/laravel.sql
hackeralistarsays/chaki
a139b0161169f96ad702f9042f0b0da96811bae5
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 08, 2021 at 05:39 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 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 */; -- -- Database: `laravel` -- -- -------------------------------------------------------- -- -- Table structure for table `addresses` -- CREATE TABLE `addresses` ( `id` bigint(20) UNSIGNED NOT NULL, `postal_code` int(11) NOT NULL, `postal_address` int(11) NOT NULL, `street` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `town` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `country` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `addresses` -- INSERT INTO `addresses` (`id`, `postal_code`, `postal_address`, `street`, `town`, `country`, `created_at`, `updated_at`) VALUES (1, 99, 90130, 'Kavatanzou', 'Nunguni', 'Kenya', '2020-02-28 06:14:52', '2020-02-28 06:14:52'), (2, 89, 90132, 'Nzaui', 'Emali', 'Kenya', '2020-02-28 06:17:50', '2020-02-28 06:17:50'), (3, 78, 10003, 'mumbuni', 'Mbooni', 'Kenya', '2020-03-01 05:34:22', '2020-03-01 05:34:22'), (4, 45, 8392, 'Kagumo', 'Kitundumo', 'Kenya', '2020-03-02 23:05:48', '2020-03-02 23:05:48'), (5, 10, 46624, 'Imatra', 'Imara daima', 'Kenya', '2020-03-02 23:44:58', '2020-03-02 23:44:58'), (6, 90, 29212, 'Sultan', 'Sultan Hamud', 'Kenya', '2020-03-05 19:26:55', '2020-03-05 19:26:55'), (7, 21, 370, 'Kathangathini', 'Nunguni', 'Kenya', '2020-03-05 19:32:17', '2020-03-05 19:32:17'), (8, 76, 31234, 'kivandini', 'Masaku', 'Kenya', '2020-03-05 19:36:11', '2020-03-05 19:36:11'), (9, 90, 32942, 'mwea', 'Embu', 'Kenya', '2020-03-05 19:42:02', '2020-03-05 19:42:02'), (10, 83, 74242, 'kibwezi', 'Kibwezi', 'Kenya', '2020-03-05 19:46:26', '2020-03-05 19:46:26'), (11, 67, 90743, 'njoro', 'Nakuru', 'Kenya', '2020-03-07 05:46:51', '2020-03-07 05:46:51'), (12, 73, 90323, 'Kateki', 'Mwea', 'Kenya', '2020-03-08 21:13:50', '2020-03-08 21:13:50'), (13, 52, 1000, 'kawangware', 'Nairobi', 'Kenya', '2020-10-20 08:37:09', '2020-10-20 08:37:09'), (14, 90, 7987, 'Njoro', 'Nakuru', 'Kenya', '2020-10-20 10:13:38', '2020-10-20 10:13:38'), (15, 78, 7433, 'sultan', 'Makueni', 'Kenya', '2020-10-20 10:36:22', '2020-10-20 10:36:22'), (16, 73, 10223, 'Kavatanzou', 'Nunguni', 'Kenya', '2020-10-20 10:46:40', '2020-10-20 10:46:40'), (17, 53, 67903, 'njoro', 'Nunguni', 'Kenya', '2020-10-21 11:32:17', '2020-10-21 11:32:17'), (18, 987, 76543, 'kawangware', 'Nairobi', 'Kenya', '2020-10-22 10:39:12', '2020-10-22 10:39:12'), (19, 99, 90130, 'Nunguni', 'Nunguni', 'Kenya', '2020-11-12 10:55:45', '2020-11-12 10:55:45'), (20, 67, 87646, 'Nunguni', 'Nunguni', 'Kenya', '2020-11-15 07:23:57', '2020-11-15 07:23:57'), (21, 73, 39483, 'Kangemi', 'Nairobi', 'Kenya', '2020-11-15 07:25:48', '2020-11-15 07:25:48'), (22, 78, 30283, 'meru', 'Meru', 'Kenya', '2020-11-28 08:38:56', '2020-11-28 08:38:56'), (23, 56, 84823, 'Meru', 'Meru', 'Kenya', '2020-12-06 14:18:41', '2020-12-06 14:18:41'), (24, 78, 38372, 'Nunguni', 'Nunguni', 'Kenya', '2020-12-16 16:25:15', '2020-12-16 16:25:15'), (25, 45, 43049, 'Kangemi', 'Nairobi', 'Kenya', '2020-12-16 16:37:38', '2020-12-16 16:37:38'), (26, 78, 87657, 'Kangemi', 'Nairobi', 'Kenya', '2020-12-17 02:14:52', '2020-12-17 02:14:52'), (27, 93, 49482, 'Kibwezi', 'Makueni', 'Kenya', '2020-12-17 03:00:44', '2020-12-17 03:00:44'), (28, 99, 90130, 'Nunguni', 'Nunguni', 'Kenya', '2020-12-17 03:04:23', '2020-12-17 03:04:23'), (29, 34, 84042, 'Nunguni', 'Nairobi', 'Kenya', '2020-12-17 03:06:10', '2020-12-17 03:06:10'), (30, 48, 93091, 'Nyando', 'Kisumu', 'Kenya', '2020-12-17 03:08:06', '2020-12-17 03:08:06'), (31, 67, 94932, 'Kangemi', 'Nunguni', 'Kenya', '2020-12-17 03:09:57', '2020-12-17 03:09:57'), (32, 49, 95931, 'Kangemi', 'Nunguni', 'Kenya', '2020-12-17 03:11:42', '2020-12-17 03:11:42'), (33, 44, 56442, 'Nunguni', 'Nairobi', 'Kenya', '2020-12-17 03:14:17', '2020-12-17 03:14:17'), (34, 565, 56642, 'Kangemi', 'Nairobi', 'Kenya', '2020-12-17 03:15:43', '2020-12-17 03:15:43'), (35, 44, 44333, 'Kangemi', 'Nairobi', 'Kenya', '2020-12-17 03:19:26', '2020-12-17 03:19:26'), (36, 65, 74742, 'Kangemi', 'Nunguni', 'Kenya', '2020-12-17 03:22:33', '2020-12-17 03:22:33'), (37, 445, 79453, 'Kangemi', 'Nunguni', 'Kenya', '2020-12-17 03:24:11', '2020-12-17 03:24:11'), (38, 56, 54453, 'Nunguni', 'Nunguni', 'Kenya', '2020-12-17 03:26:16', '2020-12-17 03:26:16'), (39, 56, 54453, 'Nunguni', 'Nunguni', 'Kenya', '2020-12-17 03:26:17', '2020-12-17 03:26:17'), (40, 433, 35434, 'Nunguni', 'Makueni', 'Kenya', '2020-12-17 03:27:52', '2020-12-17 03:27:52'), (41, 43, 78874, 'Kangemi', 'Nunguni', 'Kenya', '2020-12-17 03:29:24', '2020-12-17 03:29:24'), (42, 90, 44434, 'Nunguni', 'Nunguni', 'Kenya', '2020-12-17 03:33:45', '2020-12-17 03:33:45'), (43, 54, 45455, 'meru', 'Meru', 'Kenya', '2020-12-17 03:37:15', '2020-12-17 03:37:15'), (44, 566, 57334, 'Kangemi', 'Nairobi', 'Kenya', '2020-12-17 03:38:55', '2020-12-17 03:38:55'), (45, 45, 77097, 'Nunguni', 'Nunguni', 'Kenya', '2020-12-17 03:40:26', '2020-12-17 03:40:26'), (46, 76, 76559, 'Kangemi', 'Nairobi', 'Kenya', '2020-12-17 03:42:00', '2020-12-17 03:42:00'), (47, 62, 37372, 'meru', 'Nunguni', 'Kenya', '2020-12-17 09:04:59', '2020-12-17 09:04:59'), (48, 100, 100, 'nope', 'Nairobi', 'Kenya', '2021-03-08 13:55:42', '2021-03-08 13:55:42'); -- -------------------------------------------------------- -- -- Table structure for table `classes` -- CREATE TABLE `classes` ( `id` bigint(20) UNSIGNED NOT NULL, `class_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `disciplinary_cases` -- CREATE TABLE `disciplinary_cases` ( `case_id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `student_class` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `teacher_id` bigint(20) UNSIGNED NOT NULL, `case_category` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `case_description` text COLLATE utf8mb4_unicode_ci NOT NULL, `date_reported` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `action_taked` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `date_action_taken` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `action_taken_by` bigint(20) UNSIGNED DEFAULT NULL, `case_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'uncleared', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `disciplinary_cases` -- INSERT INTO `disciplinary_cases` (`case_id`, `student_id`, `student_class`, `teacher_id`, `case_category`, `case_description`, `date_reported`, `action_taked`, `date_action_taken`, `action_taken_by`, `case_status`, `created_at`, `updated_at`) VALUES (1, 8, '1E', 1, 'Absentism', 'Student absent on date 21/09/2019', '2020-09-26', 'Brought parent', '28-09-2020', 1, 'cleared', NULL, NULL), (2, 10, '1E', 1, 'Bullying', 'The student bullied a fellow form 1 student.', '2020-09-26', 'Brought parent', '28-09-2020', 1, 'cleared', NULL, NULL), (3, 11, '1W', 1, 'Theft', 'stole money belonging to another student.', '2020-09-26', 'Brought parent', '28-09-2020', 1, 'cleared', NULL, NULL), (4, 1, '1W', 1, 'Making noise', 'Student disturbs others during personal studies.', '2020-09-26', 'Brought parent', '28-09-2020', 1, 'cleared', NULL, NULL), (5, 6, '1E', 1, 'Making noise', 'Student makes noise in class', '2020-09-28', 'given punishment', '28-09-2020', 1, 'cleared', NULL, NULL), (6, 8, '1E', 1, 'Absentism', 'Student was absent on 2/09/2020', '2020-09-28', NULL, NULL, NULL, 'uncleared', NULL, NULL), (7, 10, '1E', 1, 'Theft', 'Student stole money belonging to another student', '2020-09-28', 'Student repaid', '28-09-2020', 1, 'cleared', NULL, NULL), (8, 8, '1E', 1, 'Absentism', 'The student was absent on date 24-11-2020', '2020-11-28', NULL, NULL, NULL, 'uncleared', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `dormitories` -- CREATE TABLE `dormitories` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `preferred_gender` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `dormitories` -- INSERT INTO `dormitories` (`id`, `name`, `preferred_gender`, `status`, `created_at`, `updated_at`) VALUES (1, 'Tsavo', 'female', 'Good', '2020-04-07 14:00:08', '2020-04-07 14:00:08'), (2, 'Turkana', 'female', 'Good', '2020-04-07 14:06:57', '2020-04-07 14:06:57'), (3, 'Victoria', 'male', 'Good', '2020-12-10 17:26:59', '2020-12-10 17:26:59'); -- -------------------------------------------------------- -- -- Table structure for table `dormitories_rooms` -- CREATE TABLE `dormitories_rooms` ( `id` bigint(20) UNSIGNED NOT NULL, `dorm_id` bigint(20) UNSIGNED NOT NULL, `room_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `room_capacity` int(11) NOT NULL, `room_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `deleted` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'NO', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `dormitories_rooms` -- INSERT INTO `dormitories_rooms` (`id`, `dorm_id`, `room_no`, `room_capacity`, `room_status`, `deleted`, `created_at`, `updated_at`) VALUES (1, 1, '1', 22, 'Good', 'YES', NULL, NULL), (2, 1, '2', 2, 'Good', 'NO', NULL, NULL), (3, 1, '3', 20, 'Good', 'NO', NULL, NULL), (4, 1, '2', 20, 'Good', 'YES', NULL, NULL), (5, 2, 'T1', 10, 'Good', 'NO', NULL, NULL), (6, 2, 'T2', 12, 'Good', 'NO', NULL, NULL), (7, 2, 'T3', 10, 'Good', 'NO', NULL, NULL), (8, 1, '1', 35, 'Good', 'NO', NULL, NULL), (9, 1, '5', 25, 'Good', 'NO', NULL, NULL), (10, 1, '10', 5, 'Good', 'NO', NULL, NULL), (11, 3, '1', 10, 'Good', 'NO', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `exam_sessions` -- CREATE TABLE `exam_sessions` ( `exam_id` bigint(20) UNSIGNED NOT NULL, `term_id` bigint(20) UNSIGNED NOT NULL, `exam_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `exam_start_date` date NOT NULL, `exam_end_date` date NOT NULL, `exam_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `exam_sessions` -- INSERT INTO `exam_sessions` (`exam_id`, `term_id`, `exam_type`, `exam_start_date`, `exam_end_date`, `exam_status`, `created_at`, `updated_at`) VALUES (3, 1, 'Opener exam', '2020-10-12', '2020-11-28', 'past', NULL, NULL), (4, 1, 'Mid term exam', '2020-11-29', '2020-11-30', 'past', NULL, NULL), (6, 1, 'End term exam', '2020-12-05', '2020-12-17', 'past', NULL, NULL), (7, 2, 'Mid term exam', '2021-03-08', '2021-03-10', 'active', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `fee_balances` -- CREATE TABLE `fee_balances` ( `id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `total_fees` decimal(15,2) NOT NULL, `amount_paid` decimal(15,2) NOT NULL, `balance` decimal(15,2) NOT NULL, `overpay` decimal(15,2) NOT NULL DEFAULT 0.00, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `fee_balances` -- INSERT INTO `fee_balances` (`id`, `student_id`, `total_fees`, `amount_paid`, `balance`, `overpay`, `created_at`, `updated_at`) VALUES (1, 7, '25300.00', '24800.00', '500.00', '0.00', NULL, NULL), (2, 8, '52000.00', '35005.00', '16995.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (3, 4, '52000.00', '125300.00', '0.00', '73300.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (4, 10, '52000.00', '26000.00', '26000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (5, 9, '52000.00', '29302.00', '22698.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (6, 1, '50000.00', '12000.00', '38000.00', '0.00', '2021-01-09 07:35:41', '2021-01-09 07:35:41'), (7, 11, '52000.00', '27400.00', '24600.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (8, 5, '52000.00', '35500.00', '16500.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (9, 2, '52000.00', '25000.00', '27000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (10, 12, '52000.00', '8000.00', '44000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (11, 6, '52000.00', '25000.00', '27000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (12, 15, '25000.00', '6000.00', '19000.00', '0.00', NULL, NULL), (13, 17, '25000.00', '30000.00', '0.00', '5000.00', NULL, NULL), (14, 18, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (15, 19, '25000.00', '7000.00', '18000.00', '0.00', NULL, NULL), (16, 21, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (17, 20, '30000.00', '0.00', '30000.00', '0.00', NULL, NULL), (18, 14, '30000.00', '2.00', '29998.00', '0.00', NULL, NULL), (19, 13, '30000.00', '0.00', '30000.00', '0.00', NULL, NULL), (20, 22, '50000.00', '0.00', '50000.00', '0.00', '2021-01-09 07:35:41', '2021-01-09 07:35:41'), (21, 23, '30000.00', '0.00', '30000.00', '0.00', NULL, NULL), (22, 24, '30000.00', '0.00', '30000.00', '0.00', NULL, NULL), (23, 25, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (24, 26, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (25, 27, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (26, 28, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (27, 29, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (28, 30, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (29, 31, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (30, 32, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (31, 33, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (32, 34, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (33, 35, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (34, 36, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (35, 37, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (36, 38, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (37, 39, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (38, 40, '52000.00', '0.00', '52000.00', '0.00', '2021-01-09 07:34:59', '2021-01-09 07:34:59'), (39, 41, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (40, 42, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (41, 43, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (42, 44, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (43, 45, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (44, 46, '30000.00', '0.00', '30000.00', '0.00', NULL, NULL), (45, 47, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (46, 48, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (47, 49, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (48, 50, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (49, 51, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL), (50, 52, '50000.00', '0.00', '50000.00', '0.00', '2021-01-09 07:35:41', '2021-01-09 07:35:41'), (51, 53, '25000.00', '0.00', '25000.00', '0.00', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `fee_structures` -- CREATE TABLE `fee_structures` ( `id` bigint(20) UNSIGNED NOT NULL, `year` year(4) NOT NULL, `class` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `term` int(11) NOT NULL, `fee` decimal(15,2) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `fee_structures` -- INSERT INTO `fee_structures` (`id`, `year`, `class`, `term`, `fee`, `created_at`, `updated_at`) VALUES (1, 2020, 'Form 1', 1, '27000.00', '2020-03-18 06:22:54', '2020-03-18 06:22:54'), (2, 2020, 'Form 2', 1, '24000.00', '2020-03-18 06:22:54', '2020-03-18 06:22:54'), (3, 2020, 'Form 3', 1, '30000.00', '2020-03-18 06:22:54', '2020-03-18 06:22:54'), (4, 2020, 'Form 4', 1, '25000.00', '2020-03-18 06:22:54', '2020-03-18 06:22:54'), (5, 2021, 'Form 1', 2, '25000.00', '2021-01-09 07:34:58', '2021-01-09 07:34:58'), (6, 2021, 'Form 2', 2, '26000.00', '2021-01-09 07:35:41', '2021-01-09 07:35:41'); -- -------------------------------------------------------- -- -- Table structure for table `fee_transactions` -- CREATE TABLE `fee_transactions` ( `id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `branch` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `transaction_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `date_paid` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `amount` decimal(15,2) NOT NULL, `date_recorded` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `emp_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `fee_transactions` -- INSERT INTO `fee_transactions` (`id`, `student_id`, `branch`, `transaction_no`, `date_paid`, `amount`, `date_recorded`, `emp_id`, `created_at`, `updated_at`) VALUES (1, 7, 'KCB Egerton University', '35543rffd3523', '2020-03-11', '4500.00', '2020-03-29 01:03:13', 3, NULL, NULL), (2, 7, 'KCB Egerton University', 'hkgvsdfkhd443', '2020-03-04', '800.00', '2020-03-29 01:03:35', 3, NULL, NULL), (4, 8, 'KCB Egerton University', 'hgfhxgd4224', '2020-03-10', '21000.00', '2020-03-29 01:03:04', 3, NULL, NULL), (5, 4, 'KCB Industrial area Nairobi', 'rtfgr463tf4t433', '2020-03-09', '6000.00', '2020-03-29 01:03:08', 3, NULL, NULL), (6, 4, 'KCB Egerton University', 'kjfhdxgs5733', '2020-03-18', '1300.00', '2020-03-29 01:03:23', 3, NULL, NULL), (7, 8, 'KCB Egerton University', 'gyjtyrts3653', '2020-03-18', '10000.00', '2020-03-29 01:03:59', 3, NULL, NULL), (8, 10, 'KCB Egerton University', 'rexswtyty454', '2020-03-11', '18000.00', '2020-03-29 01:03:34', 3, NULL, NULL), (9, 9, 'KCB Egerton University', '646546dfgdt44', '2020-03-19', '5000.00', '2020-03-29 09:03:56', 3, NULL, NULL), (10, 7, 'KCB Egerton University', 'yftq3773gdu33', '2020-03-18', '7000.00', '2020-03-29 09:03:30', 3, NULL, NULL), (11, 1, 'KCB Industrial area Nairobi', 'jf46533zwawa', '2020-03-26', '12000.00', '2020-03-29 09:03:28', 3, NULL, NULL), (12, 11, 'KCB Moi Avenue Nairobi', 'gfdr456xrfe3', '2020-03-10', '15000.00', '2020-03-29 09:03:01', 3, NULL, NULL), (13, 5, 'KCB Industrial area Nairobi', 'dvgdd34w5223', '2020-03-19', '6300.00', '2020-03-29 09:03:28', 3, NULL, NULL), (14, 7, 'KCB Nakuru', 'jhjgsf73834sd', '2020-03-18', '6000.00', '2020-03-29 09:03:05', 3, NULL, NULL), (15, 7, 'KCB Nakuru', '3287yr38w94', '2020-03-04', '5000.00', '2020-03-29 10:03:17', 3, NULL, NULL), (16, 9, 'KCB Nakuru', '6327db3h7328', '2020-03-18', '18000.00', '2020-03-29 10:03:08', 3, NULL, NULL), (17, 10, 'KCB Nakuru', 'hukds8249422', '2020-03-17', '7000.00', '2020-03-29 10:03:40', 3, NULL, NULL), (18, 5, 'KCB Industrial area Nairobi', 'hghgf382632d', '2020-03-25', '18000.00', '2020-03-30 12:03:15', 3, NULL, NULL), (19, 2, 'KCB Egerton University', '1dghg78s3sh3', '2020-03-19', '15000.00', '2020-03-30 12:03:43', 3, NULL, NULL), (20, 12, 'KCB Nakuru', '76i5g55v88h', '2020-03-19', '8000.00', '2020-03-30 12:03:43', 3, NULL, NULL), (21, 2, 'KCB Eldoret', 'jhbsfc83jnd83d2', '2020-03-04', '10000.00', '2020-03-30 01:03:39', 3, NULL, NULL), (22, 4, 'KCB Moi Avenue Nairobi', 'fdgh5632zvdz3', '2020-03-11', '12000.00', '2020-03-30 05:03:58', 3, NULL, NULL), (23, 11, 'KCB Moi Avenue Nairobi', 'dsg4f4g4ggfh5', '2020-03-18', '9300.00', '2020-03-31 12:03:02', 3, NULL, NULL), (24, 6, 'KCB Egerton University', 'khxje9dj39432n', '2020-03-19', '6000.00', '2020-03-31 12:03:48', 3, NULL, NULL), (25, 7, 'KCB Moi Avenue Nairobi', 'liefuie8488493jj', '2020-03-12', '1000.00', '2020-03-31 11:03:57', 3, NULL, NULL), (26, 6, 'KCB Industrial area Nairobi', 'lijjhsa7o378d3', '2020-04-01', '7000.00', '2020-04-06 04:04:06', 3, NULL, NULL), (27, 6, 'KCB Eldoret', '6738dj367t3dd', '2020-04-03', '3000.00', '2020-04-06 04:04:11', 3, NULL, NULL), (28, 5, 'KCB Industrial area Nairobi', 'hjgttyyyt5776', '2020-10-16', '7000.00', '2020-10-23 08:10:34', 1, NULL, NULL), (29, 5, 'KCB Kenyatta Avenue Nakuru', '67543sdfgh87', '2020-10-15', '1200.00', '2020-10-23 08:10:26', 1, NULL, NULL), (30, 6, 'KCB Industrial area Nairobi', 'hfgd544aszx', '2020-10-01', '6000.00', '2020-10-23 09:10:06', 1, NULL, NULL), (31, 9, 'KCB Egerton University', 'gf45673454', '2020-10-02', '6300.00', '2020-10-23 09:10:05', 1, NULL, NULL), (32, 7, 'KCB Nakuru', 'kwsyuiow9832', '2020-10-22', '300.00', '2020-10-23 10:10:35', 1, NULL, NULL), (33, 7, 'KCB Nakuru', 'hjgf56789v', '2020-10-07', '200.00', '2020-10-23 10:10:34', 1, NULL, NULL), (34, 10, 'KCB Industrial area Nairobi', 'ytrr6548876', '2020-10-07', '1000.00', '2020-10-23 11:10:41', 1, NULL, NULL), (35, 5, 'KCB Egerton University', 't7765rfgtr45', '2020-10-09', '3000.00', '2020-10-23 11:10:45', 1, NULL, NULL), (36, 11, 'KCB Moi Avenue Nairobi', 'uykqw6743893', '2020-10-08', '3100.00', '2020-10-23 11:10:18', 1, NULL, NULL), (37, 8, 'KCB Nakuru', 'hku5673jds', '2020-10-08', '4000.00', '2020-10-24 09:10:35', 1, NULL, NULL), (38, 4, 'KCB Industrial area Nairobi', 'jluyfmi76ye', '2020-10-30', '6000.00', '2020-10-30 07:10:34', 1, NULL, NULL), (39, 6, 'KCB Egerton University', 'jkhg23456gf', '2020-11-03', '3000.00', '2020-11-10 08:11:50', 1, NULL, NULL), (40, 15, 'KCB Industrial area Nairobi', 'jhgfd34567hg', '2020-11-04', '6000.00', '2020-11-10 08:11:50', 1, NULL, NULL), (41, 17, 'KCB Moi Avenue Nairobi', 'ngfds3456jhg', '2020-11-07', '15000.00', '2020-11-10 08:11:18', 1, NULL, NULL), (42, 17, 'KCB Eldoret', '9986fgy4s5', '2020-11-07', '15000.00', '2020-11-10 08:11:37', 1, NULL, NULL), (43, 19, 'KCB Egerton University', '8765vbjyt45', '2020-11-06', '7000.00', '2020-11-10 08:11:37', 1, NULL, NULL), (44, 4, 'KCB Egerton University', 'jhgf34567ggg', '2020-11-04', '100000.00', '2020-11-15 06:11:39', 1, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `mailtostudentmessages` -- CREATE TABLE `mailtostudentmessages` ( `message_id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `from_teacher_id` bigint(20) UNSIGNED NOT NULL, `to_parent_id` bigint(20) UNSIGNED NOT NULL, `subject` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `message_body` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `date_send` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `mailtostudentmessages` -- INSERT INTO `mailtostudentmessages` (`message_id`, `student_id`, `from_teacher_id`, `to_parent_id`, `subject`, `message_body`, `date_send`, `created_at`, `updated_at`) VALUES (1, 6, 1, 9, 'Form 1E meeting', 'There will be form 1E parents meeting on 31/11/2020 for purposes of academic discussion. You are thereby requested to attend.', '2020-10-22 11:49:03am', NULL, NULL), (3, 4, 1, 6, 'Form 1 meeting', 'There will be a form 1 meeting on 22/11/2020. Kindly purpose to attend.', '2020-10-22 12:14:03pm', NULL, NULL), (4, 8, 1, 13, 'Form 1 meeting', '123456', '2020-12-17 10:23:34', '2020-12-17 07:23:34', '2020-12-17 07:23:34'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2019_08_19_000000_create_failed_jobs_table', 1), (2, '2020_02_16_045401_classes', 1), (3, '2020_02_16_050934_subjects', 1), (4, '2020_02_16_051840_addresses', 1), (5, '2020_02_16_052604_school_details', 1), (6, '2020_02_16_190918_password_resets', 1), (7, '2020_02_22_180452_non_teaching_staff', 1), (8, '2020_02_24_051317_parents', 1), (9, '2020_02_24_141011_students', 1), (10, '2020_02_24_141150_student_parent', 1), (11, '2020_02_24_141315_student_address', 1), (12, '2020_02_28_020821_teachers', 1), (13, '2020_02_28_021621_roles_and_responsibilities', 1), (14, '2020_02_29_002933_teacher_classes', 1), (15, '2020_03_01_213831_student_marks', 1), (16, '2020_03_05_044822_student_marks_ranking', 1), (17, '2020_03_18_043753_fee_structures', 1), (18, '2020_03_28_231420_fee_transactions', 1), (19, '2020_03_28_232421_fee_balances', 1), (20, '2020_04_06_211700_dormitories', 1), (21, '2020_04_17_191118_dormitories_rooms', 1), (22, '2020_04_22_182740_student_dorm_rooms', 1), (23, '2020_09_26_202349_disciplinary_cases', 1), (24, '2020_09_30_190707_student_classes', 1), (25, '2020_10_06_144521_term_sessions', 1), (26, '2020_10_09_032002_exam_session', 1), (27, '2020_10_22_114819_mail_to_student_messages', 1), (28, '2020_10_24_192631_users', 1), (29, '2020_11_10_200124_out_of_sessions', 1), (30, '2020_11_10_200257_mpesa_transactions', 1); -- -------------------------------------------------------- -- -- Table structure for table `mpesa_transactions` -- CREATE TABLE `mpesa_transactions` ( `transaction_id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `parent_id` int(11) NOT NULL, `transaction_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `transaction_date` datetime DEFAULT NULL, `amount` decimal(15,2) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `mpesa_transactions` -- INSERT INTO `mpesa_transactions` (`transaction_id`, `student_id`, `parent_id`, `transaction_code`, `phone_no`, `transaction_date`, `amount`, `created_at`, `updated_at`) VALUES (1, 1, 1, 'OE234ODVFR', '25418422812', '2020-10-31 12:03:05', '100.00', NULL, NULL), (2, 8, 13, 'OL1939Z2AF', '254718422812', '2020-12-01 13:38:24', '2.00', '2020-12-01 07:38:24', '2020-12-01 07:38:24'), (3, 8, 13, 'OL193AAIJ9', '254718422812', '2020-12-01 13:44:43', '1.00', '2020-12-01 07:44:43', '2020-12-01 07:44:43'), (6, 8, 13, 'OLH7N87NDX', '254718422812', '2020-12-17 09:26:54', '2.00', '2020-12-17 06:26:54', '2020-12-17 06:26:54'), (7, 14, 13, 'OLH1NG32N9', '254718422812', '2020-12-17 12:21:58', '2.00', '2020-12-17 09:21:58', '2020-12-17 09:21:58'), (8, 9, 13, 'OLH7NI6QIL', '254704332234', '2020-12-17 13:07:08', '2.00', '2020-12-17 10:07:08', '2020-12-17 10:07:08'), (9, 20, 25, NULL, NULL, NULL, NULL, NULL, NULL), (10, 20, 25, NULL, NULL, NULL, NULL, NULL, NULL), (11, 20, 25, NULL, NULL, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `non_teaching_staff` -- CREATE TABLE `non_teaching_staff` ( `id` bigint(20) UNSIGNED NOT NULL, `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `middle_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_no` int(11) NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `emp_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `category` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `religion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `nationality` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `profile_pic` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, `salary` int(11) NOT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active', `hired_date` date NOT NULL, `date_left` date DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `non_teaching_staff` -- INSERT INTO `non_teaching_staff` (`id`, `first_name`, `middle_name`, `last_name`, `phone_no`, `email`, `id_no`, `password`, `emp_no`, `category`, `gender`, `religion`, `nationality`, `profile_pic`, `salary`, `status`, `hired_date`, `date_left`, `created_at`, `updated_at`) VALUES (1, 'victor', 'kipla', 'Bet', '0736293732', '[email protected]', 33928767, '$2y$10$NdgNuVCWpkJ91rmwnjM03eE88OayGYhDvZtRtyUNhkgJRJsVEYC1O', 'emp020', 'bursar', 'Male', 'Christian', 'Kenyan', '1_1603488017.jpeg', 30000, 'active', '2020-03-05', NULL, '2020-03-05 18:41:54', '2020-03-05 18:41:54'), (2, 'samson', 'kimole', 'mutangili', '0737863629', '[email protected]', 33893468, '$2y$10$JruR.vtKZEtBZhYYzmrZ2.QElSmXKv62.QMFy11Dz9qBlAHmt/hVK', 'emp021', 'bursar', 'Male', 'Christian', 'Kenyan', NULL, 18000, 'active', '2020-03-05', NULL, '2020-03-05 18:43:03', '2020-03-05 18:43:03'), (3, 'Justus', 'Muoka', 'Peter', '0722938432', '[email protected]', 12345678, '$2y$10$Ue5Iwkvvxw/d3BB3pGEAV.VgR9LPYfPUXcWuGGAL7jYIyUhbvgNx6', 'emp003', 'bursar', 'Male', 'Christian', 'Kenyan', NULL, 30000, 'active', '2020-03-28', NULL, '2020-03-28 15:11:36', '2020-03-28 15:11:36'), (4, 'Faith', 'mutai', 'samson', '0776543223', '[email protected]', 87654322, '$2y$10$Lty73NAa6OSRtX9iRwMYI.vnqbt/Ys6VH/6PPULOiIvyU6WqFOAC6', '673212', 'bursar', 'Male', 'Christian', 'Kenyan', NULL, 46789, 'active', '2020-10-22', NULL, '2020-10-22 10:21:35', '2020-10-22 10:21:35'), (5, 'Brenda', 'Mukui', 'Thomas', '0749823490', '[email protected]', 76546789, '$2y$10$dzbbmoj81byHD5tisUDRW.5VHd0Ik/ShNOxP2z2TtzjBMXwez.1E.', '987654', 'bursar', 'Male', 'Christian', 'Kenyan', '5_1603465560.jpeg', 15000, 'active', '2020-10-22', NULL, '2020-10-22 10:26:17', '2020-10-22 10:26:17'), (6, 'gedion', 'Justus', 'John', '0754345678', '[email protected]', 39876556, '$2y$10$WBlNld.LdrqwAvPs3pggVOEAmzGKPS2UL3g5KJk2iLNtnrekbO5US', 'emp006', 'bursar', 'Male', 'Christian', 'Kenyan', NULL, 20000, 'active', '2020-11-13', NULL, '2020-11-13 16:03:13', '2020-11-13 16:03:13'); -- -------------------------------------------------------- -- -- Table structure for table `out_of_sessions` -- CREATE TABLE `out_of_sessions` ( `id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `date_from` date NOT NULL, `date_to` date DEFAULT NULL, `session_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `out_of_sessions` -- INSERT INTO `out_of_sessions` (`id`, `student_id`, `date_from`, `date_to`, `session_status`, `created_at`, `updated_at`) VALUES (1, 14, '2020-11-14', '2020-11-28', 'in', '2020-11-14 06:54:41', '2020-11-28 09:57:39'), (2, 14, '2020-11-28', NULL, 'out', '2020-11-28 09:59:50', '2020-11-28 09:59:50'); -- -------------------------------------------------------- -- -- Table structure for table `parents` -- CREATE TABLE `parents` ( `id` bigint(20) UNSIGNED NOT NULL, `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `middle_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `occupation` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `parents` -- INSERT INTO `parents` (`id`, `first_name`, `middle_name`, `last_name`, `phone_no`, `email`, `id_no`, `password`, `gender`, `occupation`, `created_at`, `updated_at`) VALUES (1, 'kim', 'Mutangili', 'Mutangili', '0738097489', '[email protected]', '23943932', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'Software engineer', '2020-02-28 06:16:16', '2020-02-28 06:16:16'), (2, 'Mary', 'Nduku', 'Mutangili', '0734897433', '[email protected]', '74374573', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Lecturer', '2020-02-28 06:16:16', '2020-02-28 06:16:16'), (3, 'Josphat', 'Justus', 'Justus', '0738748244', '[email protected]', '88959323', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'Teacher', '2020-02-28 06:20:25', '2020-02-28 06:20:25'), (4, 'Christine', 'Mukami', 'Nkatha', '0718422888', '[email protected]', '79697333', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Engineer', '2020-02-28 06:20:25', '2020-02-28 06:20:25'), (5, 'Brian', 'Justus', 'Justus', '0734978444', '[email protected]', '56789473', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'farmer', '2020-03-01 05:35:02', '2020-03-01 05:35:02'), (6, 'Joseph', 'Matheka', 'Matheka', '0748874627', '[email protected]', '38299321', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'farmer', '2020-03-02 23:07:37', '2020-03-02 23:07:37'), (7, 'Eve', 'Wambui', 'Ngungi', '0749857637', '[email protected]', '68437742', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Teacher', '2020-03-02 23:07:37', '2020-03-02 23:07:37'), (8, 'Christine', 'Nduku', 'Musau', '0739847443', '[email protected]', '56757389', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Teacher', '2020-03-02 23:45:49', '2020-03-02 23:45:49'), (9, 'David', 'Kituku', 'Kituku', '0738276483', '[email protected]', '38299043', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'Civil servant', '2020-03-05 19:30:11', '2020-03-05 19:30:11'), (10, 'Faith', 'Mutinda', 'Kilitu', '0749274812', '[email protected]', '32494223', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Farmer', '2020-03-05 19:30:11', '2020-03-05 19:30:11'), (11, 'Betty', 'Kalekye', 'Stephen', '0749828329', '[email protected]', '68373229', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Cabinet secretary', '2020-03-05 19:34:05', '2020-03-05 19:34:05'), (12, 'Joseph', 'Muthoka', 'Muthoka', '0747328339', '[email protected]', '86783833', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'Teacher', '2020-03-05 19:34:05', '2020-11-16 06:47:26'), (13, 'Samson', 'Musyoka', 'Musyoka', '0718422812', '[email protected]', '64743989', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'Pilot', '2020-03-05 19:39:28', '2020-12-17 09:18:15'), (14, 'Eunice', 'Ndunge', 'Mutisya', '0738764623', '[email protected]', '78374563', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Software engineer', '2020-03-05 19:39:29', '2020-03-05 19:39:29'), (15, 'Josphat', 'Kioko', 'Kioko', '0749482311', '[email protected]', '87835874', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'Pastor', '2020-03-05 19:44:32', '2020-03-05 19:44:32'), (16, 'Catherine', 'Mutheu', 'Ndungi', '0739846380', '[email protected]', '88045831', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Farmer', '2020-03-05 19:44:32', '2020-03-05 19:44:32'), (17, 'Justina', 'Mwikali', 'Mutonde', '0742731003', '[email protected]', '87434943', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Farmer', '2020-03-05 19:47:28', '2020-03-05 19:47:28'), (18, 'Samson', 'Mutangili', 'Mutangili', '0794928432', '[email protected]', '76374322', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'teacher', '2020-03-07 05:49:09', '2020-03-07 05:49:09'), (19, 'Mulili', 'Musyoka', 'Musyoka', '0709482321', '[email protected]', '34929421', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'Teacher', '2020-03-08 21:15:09', '2020-03-08 21:15:09'), (20, 'Makiti', 'Ndawa', 'Ndawa', '0739428421', '[email protected]', '74763822', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'farmer', '2020-10-20 08:40:21', '2020-10-20 08:40:21'), (21, 'Jane', 'Mwende', 'Makiti', '0798429499', '[email protected]', '73023239', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Teacher', '2020-10-20 08:40:21', '2020-10-20 08:40:21'), (22, 'Mary', 'shiku', 'Mwangi', '0793911243', '[email protected]', '63942323', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Engineer', '2020-10-20 10:14:38', '2020-10-20 10:14:38'), (23, 'Jonas', 'John', 'John', '0793922873', '[email protected]', '63842229', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'Professor', '2020-10-20 10:37:21', '2020-10-20 10:37:21'), (24, 'Mary', 'Mutheu', 'Mutua', '0739322323', '[email protected]', '80933233', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'female', 'Teacher', '2020-10-20 10:47:33', '2020-10-20 10:47:33'), (25, 'jon', 'mutua', 'mutua', '0794397389', '[email protected]', '33044360', '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'male', 'teacher', '2020-10-21 11:34:16', '2020-10-21 11:34:16'), (26, 'meri', 'shiku', 'wanjiku', '0794903280', '[email protected]', '74938216', '$2y$10$2oKoOnVjY0ITE9OzNaiAf.v3APjQNn2l..UygLjU5KbL28AmcExp2', 'female', 'teacher', '2020-10-21 11:34:16', '2020-10-21 11:34:16'), (27, 'Kembi', 'Mutangili', 'Mutangili', '0739873211', '[email protected]', '87654521', '$2y$10$2oKoOnVjY0ITE9OzNaiAf.v3APjQNn2l..UygLjU5KbL28AmcExp2', 'male', 'Engineer', '2020-10-22 10:48:59', '2020-12-11 13:50:11'), (28, 'Mary', 'Nduku', 'Ngungi', '0749827369', '[email protected]', '87334328', '$2y$10$2oKoOnVjY0ITE9OzNaiAf.v3APjQNn2l..UygLjU5KbL28AmcExp2', 'female', 'teacher', '2020-10-22 10:48:59', '2020-10-22 10:48:59'), (29, 'Mutai', 'Chege', 'Chege', '0793209879', '[email protected]', '23456543', '$2y$10$2oKoOnVjY0ITE9OzNaiAf.v3APjQNn2l..UygLjU5KbL28AmcExp2', 'male', 'farmer', '2020-10-22 10:48:59', '2020-10-22 10:48:59'), (30, 'Zack', 'Ogoma', 'Otieno', '0703908072', '[email protected]', '34233592', '$2y$10$Jp7PIacxY352g/QOjS4W6eJwKM98lIuovQ7SY4Gufm0roWu.aiE0G', 'male', 'Engineer', '2020-11-12 07:12:02', '2020-11-12 13:17:03'), (31, 'Daniel', 'Kibui', 'Kagotho', '0740847840', '[email protected]', '46636222', '$2y$10$D5QC5fVMa49rGhbRCoQ5eu.Ax242MoD26kZ/uDxAkyaYBfl8msMPq', 'male', 'Engineer', '2020-12-17 05:56:47', '2020-12-17 05:56:47'), (32, 'Daniel', 'Kibui', 'Kagotho', '0740847840', '[email protected]', '89484722', '$2y$10$g1qJYQCEdCJOAnCE9qv.0OF2YS4QIOyIXgVhbg0BdZAUYjKqYMwoK', 'male', 'Engineer', '2020-12-17 05:59:03', '2020-12-17 05:59:03'), (33, 'Glo', 'Mia', 'Shylyne', '0777388210', '[email protected]', '68339211', '$2y$10$mV0THZPZ5UZkXtOjuwjr4OZuEfgJmvV4Sz788sftJcSy272JHvuJS', 'female', 'Engineer', '2020-12-17 06:02:09', '2020-12-17 06:03:34'), (34, 'Jonie', 'Stones', 'Thumba', '0728337372', '[email protected]', '45678003', '$2y$10$5BGMBxF5rghornt4zQ5zJeNhwiVzjsYiceduJsu41pxkaGSmgxngK', 'male', 'Engineer', '2020-12-17 06:04:37', '2020-12-17 06:44:04'), (35, 'Brian', 'John', 'Mbugua', '0739837371', '[email protected]', '54332222', '$2y$10$yPgRTkq30v8hXaKcMBxRYeXcWoMFvAFrf69ZMtuNVf2bLbMkQKMeW', 'male', 'Engineer', '2020-12-17 07:28:50', '2020-12-17 09:06:59'), (36, 'Justus', 'Muoka', 'Peter', '0716373728', '[email protected]', '53736532', '$2y$10$X4YmjV016EkrjVn7TxnI4.5vcHWPQHAhK7Pmuymlf24AxuaujOsie', 'male', 'Engineer', '2020-12-17 07:40:36', '2020-12-17 09:06:30'), (37, 'Walter', 'Okeyo', 'Mwalo', '0721698574', '[email protected]', '45678987', '$2y$10$vKEnXHYhm9pwZJknIa7oR.SkZWj4U12wB7h.YVsoPyZetfyGdQaqu', 'male', 'Doctor', '2021-03-08 13:58:40', '2021-03-08 13:58:40'); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `id` bigint(20) UNSIGNED NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `roles_and_responsibilities` -- CREATE TABLE `roles_and_responsibilities` ( `id` bigint(20) UNSIGNED NOT NULL, `teacher_id` bigint(20) UNSIGNED NOT NULL, `special_role` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `responsibility` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `class_teacher` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `roles_and_responsibilities` -- INSERT INTO `roles_and_responsibilities` (`id`, `teacher_id`, `special_role`, `responsibility`, `class_teacher`, `created_at`, `updated_at`) VALUES (1, 3, 'Examination and student admission', 'Class teacher', '1E', '2020-02-28 04:36:50', '2020-02-28 04:36:50'), (2, 1, 'Principal', NULL, NULL, '2020-02-28 04:37:43', '2020-02-28 04:37:43'), (3, 7, NULL, 'Class teacher', '1W', '2020-03-07 05:42:37', '2020-03-07 05:42:37'), (4, 2, NULL, NULL, NULL, '2020-04-06 09:43:57', '2020-04-06 09:43:57'), (5, 19, NULL, 'Class teacher', '4W', '2021-03-08 14:08:11', '2021-03-08 14:08:11'); -- -------------------------------------------------------- -- -- Table structure for table `school_details` -- CREATE TABLE `school_details` ( `id` bigint(20) UNSIGNED NOT NULL, `school_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `contact no_1` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `contact_no_2` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `website_link` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `location` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `address_id` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `students` -- CREATE TABLE `students` ( `id` bigint(20) UNSIGNED NOT NULL, `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `middle_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `admission_number` int(11) NOT NULL, `date_of_admission` date NOT NULL, `gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `DOB` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `birth_cert_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `religion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `kcpe_index_no` int(11) NOT NULL, `residence` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `class` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `nationality` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `profile_pic` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, `year_of_study` int(11) NOT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active', `date_left` date DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `students` -- INSERT INTO `students` (`id`, `first_name`, `middle_name`, `last_name`, `admission_number`, `date_of_admission`, `gender`, `DOB`, `birth_cert_no`, `religion`, `kcpe_index_no`, `residence`, `class`, `nationality`, `profile_pic`, `year_of_study`, `status`, `date_left`, `created_at`, `updated_at`) VALUES (1, 'Josephine', 'Mwende', 'Nzioka', 1000, '2020-02-28', 'female', '2006-06-05', '8798398', 'Christian', 169394002, 'Njokerio', '1W', 'Kenyan', NULL, 1, 'active', NULL, '2020-02-28 06:14:32', '2020-02-28 06:14:32'), (2, 'Brenton', 'Kanini', 'Musembi', 1001, '2020-02-28', 'male', '2004-06-17', '8734842', 'Christian', 193348003, 'Gate', '1W', 'Kenyan', '1603300132.jpeg', 1, 'active', NULL, '2020-02-28 06:17:30', '2020-02-28 06:17:30'), (3, 'Josephine', 'Kanini', 'Nzioka', 1003, '2020-03-01', 'female', '1999-06-15', '8765346', 'Christian', 985367832, 'Gate', '4E', 'Kenyan', NULL, 4, 'active', NULL, '2020-03-01 05:33:54', '2020-03-01 05:33:54'), (4, 'Jackline', 'Mwende', 'Katumo', 1004, '2020-03-02', 'female', '2000-02-22', '6773897', 'Christian', 293949004, 'Njoro', '1W', 'Kenyan', '1603356826.jpeg', 1, 'active', NULL, '2020-03-02 23:05:24', '2020-03-02 23:05:24'), (5, 'Cate', 'Mbinya', 'Mutanu', 1005, '2020-03-02', 'female', '2000-10-23', '2345678', 'Christian', 765433007, 'Gate', '1W', 'Kenyan', '1603356867.jpeg', 1, 'active', NULL, '2020-03-02 23:44:31', '2020-03-02 23:44:31'), (6, 'Everlyne', 'Kanini', 'Katumbi', 1006, '2020-03-05', 'female', '2002-06-10', '9834630', 'Christian', 833929010, 'Njokerio', '1E', 'Kenyan', '1607717044.jpeg', 1, 'active', NULL, '2020-03-05 19:26:25', '2020-03-05 19:26:25'), (7, 'Samuel', 'Musembi', 'Mutua', 1007, '2020-03-05', 'male', '1999-03-23', '7398347', 'Christian', 183029015, 'Gate', '1E', 'Kenyan', NULL, 1, 'cleared', '2020-10-20', '2020-03-05 19:31:56', '2020-03-05 19:31:56'), (8, 'Mary', 'Mwende', 'Kyalo', 1012, '2020-03-05', 'female', '2003-07-20', '6332542', 'Christian', 545622022, 'Gate', '1E', 'Kenyan', '1603300864.jpeg', 1, 'active', NULL, '2020-03-05 19:35:50', '2020-03-05 19:35:50'), (9, 'Grace', 'Nzenyo', 'Mulinge', 1009, '2020-03-05', 'female', '2010-06-05', '5348472', 'Christian', 849239002, 'Njoro', '1E', 'Kenyan', '1603358508.jpeg', 1, 'active', NULL, '2020-03-05 19:41:39', '2020-03-05 19:41:39'), (10, 'Jacky', 'Nduku', 'Mutonde', 1020, '2020-03-05', 'female', '2001-10-01', '7392822', 'Christian', 793013003, 'Gate', '1E', 'Kenyan', '1603356784.jpeg', 1, 'active', NULL, '2020-03-05 19:46:08', '2020-03-05 19:46:08'), (11, 'Mary', 'Wanjiku', 'Mwangi', 1022, '2020-03-07', 'female', '1999-07-13', '6392942', 'Christian', 749294001, 'Njokerio', '1W', 'Kenyan', '1603300899.jpeg', 1, 'active', NULL, '2020-03-07 05:46:23', '2020-03-07 05:46:23'), (12, 'Mirriam', 'Mutanu', 'Mwini', 1026, '2020-03-08', 'female', '2002-06-16', '5348320', 'Christian', 290429003, 'Njokerio', '1W', 'Kenyan', '1603356914.jpeg', 1, 'active', NULL, '2020-03-08 21:13:26', '2020-03-08 21:13:26'), (13, 'Violet', 'Mutindi', 'Mutava', 1023, '2020-10-20', 'female', '2004-07-13', '7878032', 'Christian', 780426001, 'Nakuru', '3E', 'Kenyan', NULL, 3, 'active', NULL, '2020-10-20 08:36:04', '2020-10-20 08:36:04'), (14, 'Faith', 'Jep', 'John', 1056, '2020-10-20', 'male', '2006-12-04', '8798345', 'Christian', 169394008, 'Nakuru', '3W', 'Kenyan', NULL, 3, 'out of session', NULL, '2020-10-20 09:08:39', '2020-10-20 09:08:39'), (15, 'Anita', 'Katunge', 'Muindi', 1031, '2020-10-20', 'female', '2006-11-23', '2838329', 'Christian', 894221001, 'Nakuru', '4W', 'Kenyan', NULL, 4, 'active', NULL, '2020-10-20 10:12:59', '2020-10-20 10:12:59'), (17, 'jons', 'stones', 'Katua', 1045, '2020-10-20', 'female', '2002-07-16', '6623896', 'Christian', 897304080, 'Nakuru', '4W', 'Somalian', NULL, 4, 'active', NULL, '2020-10-20 10:35:36', '2020-10-20 10:35:36'), (18, 'Jonathan', 'Kioko', 'Mutua', 1046, '2020-10-20', 'male', '2003-06-12', '5673298', 'Christian', 876237002, 'nairobi', '4W', 'Kenyan', NULL, 4, 'active', NULL, '2020-10-20 10:43:44', '2020-10-20 10:43:44'), (19, 'Jonathan', 'Kioko', 'Mutua', 1047, '2020-10-20', 'female', '2003-06-12', '5673290', 'Other', 876237056, 'nairobi', '4W', 'Somalian', NULL, 4, 'active', NULL, '2020-10-20 10:45:18', '2020-10-20 10:45:18'), (20, 'miriam', 'Mutanu', 'kimole', 1050, '2020-10-21', 'female', '2005-06-22', '5678397', 'Christian', 762398001, 'nairobi', '3E', 'Kenyan', '1603301691.jpeg', 3, 'active', NULL, '2020-10-21 11:31:52', '2020-10-21 11:31:52'), (21, 'Stephens', 'Mulwa', 'Mutua', 1057, '2020-10-22', 'female', '2020-10-21', '8765423', 'Other', 234564532, 'nairobi', '4W', 'Somalian', '1603384620.jpeg', 4, 'cleared', '2020-12-12', '2020-10-22 10:37:00', '2020-10-22 10:37:00'), (22, 'Yvone', 'Nduku', 'Muoka', 1058, '2020-11-12', 'female', '2006-07-06', '9876739', 'Christian', 986732010, 'Nakuru', '2W', 'Kenyan', '1605200124.jpeg', 2, 'active', NULL, '2020-11-12 10:55:24', '2020-11-12 10:55:24'), (23, 'Joan', 'Jully', 'Maweu', 1059, '2020-11-15', 'female', '2004-10-23', '5973728', 'Christian', 737391002, 'Nakuru', '3W', 'Kenyan', '1605446620.jpeg', 3, 'active', NULL, '2020-11-15 07:23:40', '2020-11-15 07:23:40'), (24, 'Gloria', 'Glory', 'Muthenya', 1060, '2020-11-15', 'female', '2005-03-21', '7656921', 'Christian', 893919010, 'Nairobi', '3W', 'Kenyan', '1605446724.jpeg', 3, 'active', NULL, '2020-11-15 07:25:24', '2020-11-15 07:25:24'), (25, 'David', 'Mwinja', 'Ominde', 1061, '2020-11-28', 'male', '2005-12-02', '6384732', 'Christian', 837293002, 'Nakuru', '1E', 'Kenyan', '1606573708.jpeg', 1, 'active', NULL, '2020-11-28 08:28:28', '2020-11-28 08:28:28'), (26, 'Evans', 'Mugendi', 'Kirema', 1062, '2020-12-06', 'male', '2006-02-09', '3456762', 'Christian', 654345001, 'Nakuru', '1E', 'Kenyan', '1607275093.jpeg', 1, 'active', NULL, '2020-12-06 14:18:13', '2020-12-06 14:18:13'), (27, 'Evans', 'Thumbi', 'Mwangi', 1063, '2020-12-16', 'Male', '2004-03-06', '4567362', 'Christian', 887321010, 'Nakuru', '1E', 'Kenyan', '1608146653.jpeg', 1, 'active', NULL, '2020-12-16 16:24:13', '2020-12-16 16:24:13'), (28, 'Gloria', 'Muliro', 'Thigha', 1064, '2020-12-16', 'female', '2006-02-12', '5456783', 'Christian', 936293012, 'Nairobi', '1E', 'Kenyan', '1608146957.jpeg', 1, 'active', NULL, '2020-12-16 16:29:17', '2020-12-16 16:29:17'), (29, 'Gloria', 'Muliro', 'Thumba', 1065, '2020-12-16', 'female', '2005-12-31', '6553731', 'Christian', 903932021, 'Eldoret', '1E', 'Kenyan', '1608147398.jpeg', 1, 'active', NULL, '2020-12-16 16:36:38', '2020-12-16 16:36:38'), (30, 'Fancy', 'Janet', 'John', 1066, '2020-12-17', 'female', '2006-10-08', '5773848', 'Christian', 456732002, 'Nakuru', '1E', 'Kenyan', '1608182060.jpeg', 1, 'active', NULL, '2020-12-17 02:14:20', '2020-12-17 02:14:20'), (31, 'Benjamin', 'Makau', 'Maingi', 1067, '2020-12-17', 'Male', '2005-04-06', '6883831', 'Christian', 384842034, 'Nakuru', '1W', 'Kenyan', '1608184821.jpeg', 1, 'active', NULL, '2020-12-17 03:00:21', '2020-12-17 03:00:21'), (32, 'Lorna', 'Wairimu', 'Maina', 1068, '2020-12-17', 'female', '2006-09-08', '6780391', 'Christian', 637382002, 'Nairobi', '1W', 'Kenyan', '1608185039.jpeg', 1, 'active', NULL, '2020-12-17 03:03:59', '2020-12-17 03:03:59'), (33, 'Colin', 'Mburugu', 'Otieno', 1069, '2020-12-17', 'Male', '2007-04-03', '4947293', 'Christian', 948482034, 'Eldoret', '1E', 'Kenyan', '1608185154.jpeg', 1, 'active', NULL, '2020-12-17 03:05:54', '2020-12-17 03:05:54'), (34, 'David', 'Malamu', 'Muthuure', 1070, '2020-12-17', 'Male', '2007-09-04', '4747321', 'Christian', 799319007, 'Nyanza', '1W', 'Kenyan', '1608185250.jpeg', 1, 'active', NULL, '2020-12-17 03:07:30', '2020-12-17 03:07:30'), (35, 'Dedan', 'Msafari', 'Mbugu', 1071, '2020-12-17', 'Male', '2006-04-09', '3837171', 'Christian', 484821043, 'Nyahururu', '1W', 'Kenyan', '1608185377.jpeg', 1, 'active', NULL, '2020-12-17 03:09:37', '2020-12-17 03:09:37'), (36, 'Doris', 'Nyawira', 'Kibui', 1072, '2020-12-17', 'female', '2007-08-06', '4563983', 'Christian', 494838051, 'Nyanza', '1E', 'Kenyan', '1608185485.jpeg', 1, 'active', NULL, '2020-12-17 03:11:25', '2020-12-17 03:11:25'), (37, 'Emonyi', 'Elias', 'mutangili', 1073, '2020-12-17', 'Male', '2006-04-08', '8842012', 'Christian', 384848061, 'Eldoret', '1E', 'Kenyan', '1608185644.jpeg', 1, 'active', NULL, '2020-12-17 03:14:04', '2020-12-17 03:14:04'), (38, 'Risper', 'Bevalyne', 'Oyaro', 1074, '2020-12-17', 'female', '2006-05-04', '9474992', 'Christian', 193948002, 'Nairobi', '1W', 'Kenyan', '1608185726.jpeg', 1, 'active', NULL, '2020-12-17 03:15:26', '2020-12-17 03:15:26'), (39, 'Sam', 'Macharia', 'Kiteru', 1075, '2020-12-17', 'Male', '2007-05-06', '4849421', 'Christian', 138382009, 'Nakuru', '1W', 'Kenyan', '1608185821.jpeg', 1, 'active', NULL, '2020-12-17 03:17:01', '2020-12-17 03:17:01'), (40, 'Hillary', 'Ian', 'Wanjala', 1076, '2020-12-17', 'Male', '2008-12-09', '4847371', 'Christian', 433233048, 'Nakuru', '1W', 'Kenyan', '1608185935.jpeg', 1, 'active', NULL, '2020-12-17 03:18:55', '2020-12-17 03:18:55'), (41, 'Jackiline', 'Mboya', 'Giteru', 1077, '2020-12-17', 'Male', '2007-04-06', '4344224', 'Christian', 748481020, 'Nairobi', '4W', 'Kenyan', '1608186134.jpeg', 4, 'active', NULL, '2020-12-17 03:22:15', '2020-12-17 03:22:15'), (42, 'Adeny', 'Joakim', 'Mbuvi', 1078, '2020-12-17', 'Male', '2008-06-06', '3464362', 'Christian', 984829011, 'Eldoret', '4W', 'Kenyan', '1608186234.jpeg', 4, 'active', NULL, '2020-12-17 03:23:54', '2020-12-17 03:23:54'), (43, 'Brian', 'Alamin', 'Bassam', 1079, '2020-12-17', 'Male', '2005-04-06', '4344533', 'Christian', 595932042, 'Eldoret', '4E', 'Kenyan', '1608186359.jpeg', 4, 'active', NULL, '2020-12-17 03:25:59', '2020-12-17 03:25:59'), (44, 'Chrispine', 'Otieno', 'Ariga', 1080, '2020-12-17', 'Male', '2007-04-09', '3243233', 'Christian', 748429004, 'Eldoret', '4E', 'Kenyan', '1608186451.jpeg', 4, 'active', NULL, '2020-12-17 03:27:31', '2020-12-17 03:27:31'), (45, 'Emmanuel', 'Kadenge', 'Nyawira', 1081, '2020-12-17', 'Male', '2007-03-05', '4747382', 'Christian', 484742012, 'Nyanza', '4E', 'Kenyan', '1608186553.jpeg', 4, 'active', NULL, '2020-12-17 03:29:13', '2020-12-17 03:29:13'), (46, 'Edwin', 'Onwoki', 'Ondiek', 1082, '2020-12-17', 'Male', '2008-03-25', '3654553', 'Christian', 344543041, 'Eldoret', '3E', 'Kenyan', '1608186636.jpeg', 3, 'active', NULL, '2020-12-17 03:30:36', '2020-12-17 03:30:36'), (47, 'Edwin', 'Onwoki', 'Ondiek', 1083, '2020-12-17', 'Male', '2007-02-08', '7474922', 'Christian', 847448048, 'Nyanza', '4E', 'Kenyan', '1608186805.jpeg', 4, 'active', NULL, '2020-12-17 03:33:25', '2020-12-17 03:33:25'), (48, 'Eva', 'Wanjiru', 'Githinji', 1084, '2020-12-17', 'female', '2006-04-09', '3988432', 'Christian', 488482056, 'Nakuru', '4E', 'Kenyan', '1608187020.jpeg', 4, 'active', NULL, '2020-12-17 03:37:00', '2020-12-17 03:37:00'), (49, 'Gerald', 'Giteru', 'Graham', 1085, '2020-12-17', 'Male', '2007-03-05', '4884748', 'Christian', 568544021, 'Nairobi', '4E', 'Kenyan', '1608187119.jpeg', 4, 'active', NULL, '2020-12-17 03:38:39', '2020-12-17 03:38:39'), (50, 'Brenda', 'Nyaswa', 'Mburugu', 1086, '2020-12-17', 'female', '2007-04-02', '3335342', 'Christian', 658384001, 'Nairobi', '4W', 'Kenyan', '1608187214.jpeg', 4, 'active', NULL, '2020-12-17 03:40:14', '2020-12-17 03:40:14'), (51, 'Caroline', 'Gakii', 'Alexandar', 1087, '2020-12-17', 'female', '2008-03-04', '4567987', 'Christian', 434446008, 'Nakuru', '4W', 'Kenyan', '1608187302.jpeg', 4, 'active', NULL, '2020-12-17 03:41:42', '2020-12-17 03:41:42'), (52, 'Elvis', 'Mutau', 'Gitau', 1088, '2020-12-17', 'female', '2006-12-31', '7373732', 'Christian', 367373002, 'Eldoret', '2E', 'Kenyan', '1608206681.jpeg', 2, 'active', NULL, '2020-12-17 09:04:42', '2020-12-17 09:04:42'), (53, 'Mary', 'Someone', 'Admin', 1089, '2021-03-08', 'female', '1998-05-02', '1234536', 'Islam', 123456773, 'Nairobi', '1W', 'Somalian', '1615182896.jpg', 1, 'active', NULL, '2021-03-08 13:54:56', '2021-03-08 13:54:56'); -- -------------------------------------------------------- -- -- Table structure for table `student_address` -- CREATE TABLE `student_address` ( `id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `address_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `student_address` -- INSERT INTO `student_address` (`id`, `student_id`, `address_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, NULL, NULL), (2, 2, 2, NULL, NULL), (3, 3, 3, NULL, NULL), (4, 4, 4, NULL, NULL), (5, 5, 5, NULL, NULL), (6, 6, 6, NULL, NULL), (7, 7, 7, NULL, NULL), (8, 8, 8, NULL, NULL), (9, 9, 9, NULL, NULL), (10, 10, 10, NULL, NULL), (11, 11, 11, NULL, NULL), (12, 12, 12, NULL, NULL), (13, 13, 13, NULL, NULL), (14, 15, 14, NULL, NULL), (15, 17, 15, NULL, NULL), (16, 19, 16, NULL, NULL), (17, 20, 17, NULL, NULL), (18, 21, 18, NULL, NULL), (19, 22, 19, NULL, NULL), (20, 23, 20, NULL, NULL), (21, 24, 21, NULL, NULL), (22, 25, 22, NULL, NULL), (23, 26, 23, NULL, NULL), (24, 27, 24, NULL, NULL), (25, 29, 25, NULL, NULL), (26, 30, 26, NULL, NULL), (27, 31, 27, NULL, NULL), (28, 32, 28, NULL, NULL), (29, 33, 29, NULL, NULL), (30, 34, 30, NULL, NULL), (31, 35, 31, NULL, NULL), (32, 36, 32, NULL, NULL), (33, 37, 33, NULL, NULL), (34, 38, 34, NULL, NULL), (35, 40, 35, NULL, NULL), (36, 41, 36, NULL, NULL), (37, 42, 37, NULL, NULL), (38, 43, 38, NULL, NULL), (39, 43, 39, NULL, NULL), (40, 44, 40, NULL, NULL), (41, 45, 41, NULL, NULL), (42, 47, 42, NULL, NULL), (43, 48, 43, NULL, NULL), (44, 49, 44, NULL, NULL), (45, 50, 45, NULL, NULL), (46, 51, 46, NULL, NULL), (47, 52, 47, NULL, NULL), (48, 53, 48, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `student_classes` -- CREATE TABLE `student_classes` ( `class_id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `year` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `class_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `stream` text COLLATE utf8mb4_unicode_ci NOT NULL, `trial` int(11) NOT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `student_classes` -- INSERT INTO `student_classes` (`class_id`, `student_id`, `year`, `class_name`, `stream`, `trial`, `status`, `created_at`, `updated_at`) VALUES (1, 1, '2020', 'Form 1', '1W', 1, 'past', '2020-09-30 16:22:26', '2020-09-30 16:22:26'), (2, 2, '2020', 'Form 1', '1W', 1, 'active', '2020-09-30 16:22:51', '2020-09-30 16:22:51'), (3, 4, '2020', 'Form 1', '1W', 1, 'active', '2020-09-30 16:23:12', '2020-09-30 16:23:12'), (4, 5, '2020', 'Form 1', '1W', 1, 'active', '2020-09-30 16:23:37', '2020-09-30 16:23:37'), (5, 6, '2020', 'Form 1', '1E', 1, 'active', '2020-09-30 16:24:40', '2020-09-30 16:24:40'), (6, 7, '2020', 'Form 1', '1E', 1, 'completed', '2020-09-30 16:24:53', '2020-09-30 16:24:53'), (8, 8, '2020', 'Form 1', '1E', 1, 'active', '2020-09-30 16:25:29', '2020-09-30 16:25:29'), (9, 9, '2020', 'Form 1', '1E', 1, 'active', '2020-09-30 16:25:45', '2020-09-30 16:25:45'), (10, 10, '2020', 'Form 1', '1E', 1, 'active', '2020-09-30 16:26:00', '2020-09-30 16:26:00'), (11, 11, '2020', 'Form 1', '1W', 1, 'active', '2020-09-30 16:26:15', '2020-09-30 16:26:15'), (12, 12, '2020', 'Form 1', '1W', 1, 'active', '2020-09-30 16:26:31', '2020-09-30 16:26:31'), (13, 1, '2020', 'Form 2', '2W', 1, 'active', NULL, NULL), (15, 7, '2020', 'Form 2', '2E', 1, 'completed', NULL, NULL), (16, 15, '2020', 'Form 4', '4W', 1, 'active', NULL, NULL), (17, 17, '2020', 'Form 4', '4W', 1, 'active', NULL, NULL), (18, 18, '2020', 'Form 4', '4W', 1, 'active', NULL, NULL), (19, 19, '2020', 'Form 4', '4W', 1, 'active', NULL, NULL), (20, 20, '2020', 'Form 3', '3E', 1, 'active', NULL, NULL), (21, 21, '2019', 'Form 4', '4W', 1, 'completed', NULL, NULL), (22, 14, '2020', 'Form 3', '3W', 1, 'past', NULL, NULL), (23, 13, '2019', 'Form 3', '3E', 1, 'completed', NULL, NULL), (24, 22, '2020', 'Form 2', '2W', 1, 'active', NULL, NULL), (25, 23, '2020', 'Form 3', '3W', 1, 'active', NULL, NULL), (26, 24, '2020', 'Form 3', '3W', 1, 'active', NULL, NULL), (27, 25, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (28, 14, '2020', 'Form 1', '1E', 1, 'past', '2020-11-28 09:57:38', '2020-11-28 09:57:38'), (29, 26, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (30, 13, '2020', 'Form 4', '4E', 1, 'active', '2020-12-12 13:17:27', '2020-12-12 13:17:27'), (31, 21, '2020', 'Form 4', '4W', 2, 'completed', '2020-12-12 13:31:36', '2020-12-12 13:31:36'), (32, 27, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (33, 28, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (34, 29, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (35, 30, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (36, 31, '2020', 'Form 1', '1W', 1, 'active', NULL, NULL), (37, 32, '2020', 'Form 1', '1W', 1, 'active', NULL, NULL), (38, 33, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (39, 34, '2020', 'Form 1', '1W', 1, 'active', NULL, NULL), (40, 35, '2020', 'Form 1', '1W', 1, 'active', NULL, NULL), (41, 36, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (42, 37, '2020', 'Form 1', '1E', 1, 'active', NULL, NULL), (43, 38, '2020', 'Form 1', '1W', 1, 'active', NULL, NULL), (44, 39, '2020', 'Form 1', '1W', 1, 'active', NULL, NULL), (45, 40, '2020', 'Form 1', '1W', 1, 'active', NULL, NULL), (46, 41, '2020', 'Form 4', '4W', 1, 'active', NULL, NULL), (47, 42, '2020', 'Form 4', '4W', 1, 'active', NULL, NULL), (48, 43, '2020', 'Form 4', '4E', 1, 'active', NULL, NULL), (49, 44, '2020', 'Form 4', '4E', 1, 'active', NULL, NULL), (50, 45, '2020', 'Form 4', '4E', 1, 'active', NULL, NULL), (51, 46, '2020', 'Form 3', '3E', 1, 'active', NULL, NULL), (52, 47, '2020', 'Form 4', '4E', 1, 'active', NULL, NULL), (53, 48, '2020', 'Form 4', '4E', 1, 'active', NULL, NULL), (54, 49, '2020', 'Form 4', '4E', 1, 'active', NULL, NULL), (55, 50, '2020', 'Form 4', '4W', 1, 'active', NULL, NULL), (56, 51, '2020', 'Form 4', '4W', 1, 'active', NULL, NULL), (57, 52, '2020', 'Form 2', '2E', 1, 'active', NULL, NULL), (58, 53, '2021', 'Form 1', '1W', 1, 'active', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `student_dorm_rooms` -- CREATE TABLE `student_dorm_rooms` ( `id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `room_id` bigint(20) UNSIGNED NOT NULL, `date_from` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `date_to` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `allocation_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `student_dorm_rooms` -- INSERT INTO `student_dorm_rooms` (`id`, `student_id`, `room_id`, `date_from`, `date_to`, `allocation_status`, `created_at`, `updated_at`) VALUES (1, 8, 1, '20/04/2020', '25-04-2020', 'changed', NULL, NULL), (2, 9, 2, '20/4/2020', '25-04-2020', 'changed', NULL, NULL), (3, 10, 1, '20/4/2020', '04-23-2020', 'deallocated', NULL, NULL), (4, 6, 6, '24-04-2020', '27-10-2020', 'changed', NULL, NULL), (6, 11, 6, '24-04-2020', NULL, 'active', NULL, NULL), (7, 4, 2, '24-04-2020', '24-10-2020', 'changed', NULL, NULL), (8, 9, 7, '25-04-2020', '10-12-2020', 'deallocated', NULL, NULL), (9, 8, 2, '25-04-2020', NULL, 'active', NULL, NULL), (10, 10, 3, '24-10-2020', NULL, 'active', NULL, NULL), (11, 6, 3, '24-10-2020', '27-10-2020', 'changed', NULL, NULL), (12, 5, 7, '24-10-2020', NULL, 'active', NULL, NULL), (13, 2, 5, '24-10-2020', '10-12-2020', 'changed', NULL, NULL), (14, 4, 6, '24-10-2020', NULL, 'active', NULL, NULL), (15, 6, 6, '27-10-2020', NULL, 'active', NULL, NULL), (16, 15, 2, '10-11-2020', NULL, 'active', NULL, NULL), (17, 17, 9, '10-11-2020', NULL, 'active', NULL, NULL), (18, 18, 6, '10-11-2020', NULL, 'active', NULL, NULL), (19, 19, 6, '10-11-2020', NULL, 'active', NULL, NULL), (20, 20, 10, '10-12-2020', '10-12-2020', 'changed', NULL, NULL), (21, 20, 7, '10-12-2020', NULL, 'active', NULL, NULL), (22, 24, 6, '10-12-2020', NULL, 'active', NULL, NULL), (23, 1, 11, '10-12-2020', NULL, 'active', NULL, NULL), (24, 25, 11, '10-12-2020', NULL, 'active', NULL, NULL), (25, 2, 11, '10-12-2020', NULL, 'active', NULL, NULL), (26, 22, 10, '10-12-2020', NULL, 'active', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `student_marks` -- CREATE TABLE `student_marks` ( `id` bigint(20) UNSIGNED NOT NULL, `year` year(4) NOT NULL, `term` int(11) NOT NULL, `exam_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `class_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `subject` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `marks_obtained` int(11) NOT NULL, `grade` char(2) COLLATE utf8mb4_unicode_ci NOT NULL, `comments` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `teacher_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `student_marks` -- INSERT INTO `student_marks` (`id`, `year`, `term`, `exam_type`, `student_id`, `class_name`, `subject`, `marks_obtained`, `grade`, `comments`, `teacher_id`, `created_at`, `updated_at`) VALUES (5, 2020, 1, 'End term', 3, '4E', 'chemistry', 60, 'B-', 'Good', 1, NULL, NULL), (14, 2020, 1, 'End term', 1, '1W', 'chemistry', 70, 'B+', 'Very good', 1, NULL, NULL), (15, 2020, 1, 'End term', 2, '1W', 'chemistry', 78, 'A-', 'Excellent. Keep up', 1, NULL, NULL), (16, 2020, 1, 'End term', 1, '1W', 'mathematics', 90, 'A', 'Excellent. Keep up', 1, NULL, NULL), (17, 2020, 1, 'End term', 2, '1W', 'mathematics', 80, 'A', 'Excellent. Keep up', 1, NULL, NULL), (18, 2020, 1, 'End term', 4, '1W', 'chemistry', 45, 'C-', 'Work hard', 1, NULL, NULL), (19, 2020, 1, 'End term', 4, '1W', 'mathematics', 67, 'B', 'Good', 1, NULL, NULL), (20, 2020, 1, 'End term', 5, '1W', 'chemistry', 76, 'A-', 'Very good', 1, NULL, NULL), (21, 2020, 1, 'End term', 5, '1W', 'mathematics', 83, 'A', 'Excellent. Keep up', 1, NULL, NULL), (22, 2020, 1, 'End term', 6, '1E', 'kiswahili', 78, 'A-', 'Very good', 8, NULL, NULL), (23, 2020, 1, 'End term', 7, '1E', 'kiswahili', 56, 'C+', 'Can do better', 8, NULL, NULL), (24, 2020, 1, 'End term', 8, '1E', 'kiswahili', 83, 'A', 'Excellent. Keep up', 8, NULL, NULL), (25, 2020, 1, 'End term', 9, '1E', 'kiswahili', 69, 'B', 'Very good', 8, NULL, NULL), (26, 2020, 1, 'End term', 10, '1E', 'kiswahili', 45, 'C-', 'Work hard', 8, NULL, NULL), (27, 2020, 1, 'End term', 1, '1W', 'kiswahili', 78, 'A-', 'Very good', 8, NULL, NULL), (28, 2020, 1, 'End term', 2, '1W', 'kiswahili', 56, 'C+', 'Can do better', 8, NULL, NULL), (29, 2020, 1, 'End term', 4, '1W', 'kiswahili', 77, 'A-', 'Very good', 8, NULL, NULL), (30, 2020, 1, 'End term', 5, '1W', 'kiswahili', 90, 'A', 'Excellent. Keep up', 8, NULL, NULL), (31, 2020, 1, 'End term', 1, '1W', 'geography', 57, 'C+', 'Can do better', 7, NULL, NULL), (32, 2020, 1, 'End term', 1, '1W', 'business_studies', 78, 'A-', 'Very good', 7, NULL, NULL), (33, 2020, 1, 'End term', 2, '1W', 'geography', 78, 'A-', 'Very good', 7, NULL, NULL), (34, 2020, 1, 'End term', 2, '1W', 'business_studies', 70, 'B+', 'Very good', 7, NULL, NULL), (35, 2020, 1, 'End term', 4, '1W', 'geography', 90, 'A', 'Excellent. Keep up', 7, NULL, NULL), (36, 2020, 1, 'End term', 4, '1W', 'business_studies', 63, 'B-', 'Good', 7, NULL, NULL), (37, 2020, 1, 'End term', 5, '1W', 'geography', 78, 'A-', 'Very good', 7, NULL, NULL), (38, 2020, 1, 'End term', 5, '1W', 'business_studies', 82, 'A', 'Excellent. Keep up', 7, NULL, NULL), (39, 2020, 1, 'End term', 6, '1E', 'geography', 59, 'C+', 'Work hard', 7, NULL, NULL), (40, 2020, 1, 'End term', 6, '1E', 'business_studies', 69, 'B', 'Good', 7, NULL, NULL), (41, 2020, 1, 'End term', 7, '1E', 'geography', 73, 'B+', 'Good', 7, NULL, NULL), (42, 2020, 1, 'End term', 7, '1E', 'business_studies', 67, 'B', 'Good', 7, NULL, NULL), (43, 2020, 1, 'End term', 8, '1E', 'geography', 84, 'A', 'Excellent. Keep up', 7, NULL, NULL), (44, 2020, 1, 'End term', 8, '1E', 'business_studies', 67, 'B', 'Good', 7, NULL, NULL), (45, 2020, 1, 'End term', 9, '1E', 'geography', 55, 'C+', 'Can do better', 7, NULL, NULL), (46, 2020, 1, 'End term', 9, '1E', 'business_studies', 63, 'B-', 'Good', 7, NULL, NULL), (47, 2020, 1, 'End term', 10, '1E', 'geography', 66, 'B', 'Good', 7, NULL, NULL), (48, 2020, 1, 'End term', 10, '1E', 'business_studies', 78, 'A-', 'Very good', 7, NULL, NULL), (49, 2020, 1, 'End term', 6, '1E', 'english', 67, 'B', 'Good', 4, NULL, NULL), (50, 2020, 1, 'End term', 7, '1E', 'english', 53, 'C', 'Can do better', 4, NULL, NULL), (51, 2020, 1, 'End term', 8, '1E', 'english', 59, 'C+', 'Good', 4, NULL, NULL), (52, 2020, 1, 'End term', 9, '1E', 'english', 48, 'C-', 'Can do better', 4, NULL, NULL), (53, 2020, 1, 'End term', 10, '1E', 'english', 78, 'A-', 'Very good', 4, NULL, NULL), (54, 2020, 1, 'End term', 1, '1W', 'english', 70, 'B+', 'Very good', 4, NULL, NULL), (55, 2020, 1, 'End term', 2, '1W', 'english', 62, 'B-', 'Good', 4, NULL, NULL), (56, 2020, 1, 'End term', 4, '1W', 'english', 57, 'C+', 'Good', 4, NULL, NULL), (57, 2020, 1, 'End term', 5, '1W', 'english', 73, 'B+', 'Very good', 4, NULL, NULL), (58, 2020, 1, 'End term', 6, '1E', 'agriculture', 56, 'C+', 'Good', 6, NULL, NULL), (59, 2020, 1, 'End term', 7, '1E', 'agriculture', 49, 'C-', 'Work hard', 6, NULL, NULL), (60, 2020, 1, 'End term', 8, '1E', 'agriculture', 78, 'A-', 'Very good', 6, NULL, NULL), (61, 2020, 1, 'End term', 9, '1E', 'agriculture', 56, 'C+', 'Good', 6, NULL, NULL), (62, 2020, 1, 'End term', 10, '1E', 'agriculture', 77, 'A-', 'Very good', 6, NULL, NULL), (63, 2020, 1, 'End term', 1, '1W', 'agriculture', 69, 'B', 'Good', 6, NULL, NULL), (64, 2020, 1, 'End term', 2, '1W', 'agriculture', 58, 'C+', 'Good', 6, NULL, NULL), (65, 2020, 1, 'End term', 4, '1W', 'agriculture', 81, 'A', 'Excellent. Keep up', 6, NULL, NULL), (66, 2020, 1, 'End term', 5, '1W', 'agriculture', 44, 'D+', 'Work hard', 6, NULL, NULL), (67, 2020, 1, 'End term', 6, '1E', 'physics', 68, 'B', 'Good', 9, NULL, NULL), (68, 2020, 1, 'End term', 7, '1E', 'physics', 75, 'A-', 'Very good', 9, NULL, NULL), (69, 2020, 1, 'End term', 8, '1E', 'physics', 59, 'C+', 'Good', 9, NULL, NULL), (70, 2020, 1, 'End term', 9, '1E', 'physics', 83, 'A', 'Excellent. Keep up', 9, NULL, NULL), (71, 2020, 1, 'End term', 10, '1E', 'physics', 83, 'A', 'Excellent. Keep up', 9, NULL, NULL), (72, 2020, 1, 'End term', 1, '1W', 'physics', 68, 'B', 'Good', 9, NULL, NULL), (73, 2020, 1, 'End term', 2, '1W', 'physics', 79, 'A-', 'Very good', 9, NULL, NULL), (74, 2020, 1, 'End term', 4, '1W', 'physics', 63, 'B-', 'Good', 9, NULL, NULL), (75, 2020, 1, 'End term', 5, '1W', 'physics', 45, 'C-', 'Can do better', 9, NULL, NULL), (76, 2020, 1, 'End term', 6, '1E', 'biology', 60, 'B-', 'Good', 2, NULL, NULL), (77, 2020, 1, 'End term', 7, '1E', 'biology', 52, 'C', 'Can do better', 2, NULL, NULL), (78, 2020, 1, 'End term', 8, '1E', 'biology', 67, 'B', 'Good', 2, NULL, NULL), (79, 2020, 1, 'End term', 9, '1E', 'biology', 73, 'B+', 'Very good', 2, NULL, NULL), (80, 2020, 1, 'End term', 10, '1E', 'biology', 77, 'A-', 'Very good', 2, NULL, NULL), (81, 2020, 1, 'End term', 1, '1W', 'biology', 76, 'A-', 'Very good', 2, NULL, NULL), (82, 2020, 1, 'End term', 2, '1W', 'biology', 74, 'B+', 'Very good', 2, NULL, NULL), (83, 2020, 1, 'End term', 4, '1W', 'biology', 59, 'C+', 'Good', 2, NULL, NULL), (84, 2020, 1, 'End term', 5, '1W', 'biology', 45, 'C-', 'Work hard', 2, NULL, NULL), (85, 2020, 1, 'End term', 6, '1E', 'cre', 88, 'A', 'Excellent. Keep up', 3, NULL, NULL), (86, 2020, 1, 'End term', 6, '1E', 'history', 71, 'B+', 'Very good', 3, NULL, NULL), (87, 2020, 1, 'End term', 7, '1E', 'cre', 69, 'B', 'Good', 3, NULL, NULL), (88, 2020, 1, 'End term', 7, '1E', 'history', 79, 'A-', 'Very good', 3, NULL, NULL), (89, 2020, 1, 'End term', 8, '1E', 'cre', 55, 'C+', 'Good', 3, NULL, NULL), (90, 2020, 1, 'End term', 8, '1E', 'history', 68, 'B', 'Good', 3, NULL, NULL), (91, 2020, 1, 'End term', 9, '1E', 'cre', 60, 'B-', 'Good', 3, NULL, NULL), (92, 2020, 1, 'End term', 9, '1E', 'history', 78, 'A-', 'Very good', 3, NULL, NULL), (93, 2020, 1, 'End term', 10, '1E', 'cre', 63, 'B-', 'Good', 3, NULL, NULL), (94, 2020, 1, 'End term', 10, '1E', 'history', 54, 'C', 'Good', 3, NULL, NULL), (95, 2020, 1, 'End term', 1, '1W', 'cre', 77, 'A-', 'Very good', 3, NULL, NULL), (96, 2020, 1, 'End term', 2, '1W', 'cre', 73, 'B+', 'Very good', 3, NULL, NULL), (97, 2020, 1, 'End term', 4, '1W', 'cre', 56, 'C+', 'Can do better', 3, NULL, NULL), (98, 2020, 1, 'End term', 5, '1W', 'cre', 68, 'B', 'Good', 3, NULL, NULL), (99, 2020, 1, 'End term', 6, '1E', 'chemistry', 56, 'C+', 'Good', 1, NULL, NULL), (100, 2020, 1, 'End term', 7, '1E', 'chemistry', 89, 'A', 'Excellent. Keep up', 1, NULL, NULL), (101, 2020, 1, 'End term', 8, '1E', 'chemistry', 67, 'B', 'Very good', 1, NULL, NULL), (102, 2020, 1, 'End term', 9, '1E', 'chemistry', 59, 'C+', 'Good', 1, NULL, NULL), (103, 2020, 1, 'End term', 10, '1E', 'chemistry', 77, 'A-', 'Very good', 1, NULL, NULL), (104, 2020, 1, 'End term', 1, '1W', 'history', 67, 'B', 'Good', 3, NULL, NULL), (105, 2020, 1, 'End term', 2, '1W', 'history', 78, 'A-', 'Very good', 3, NULL, NULL), (106, 2020, 1, 'End term', 4, '1W', 'history', 65, 'B', 'Good', 3, NULL, NULL), (107, 2020, 1, 'End term', 5, '1W', 'history', 56, 'C+', 'Can do better', 3, NULL, NULL), (108, 2020, 1, 'End term', 6, '1E', 'mathematics', 78, 'A-', 'Very good', 5, NULL, NULL), (109, 2020, 1, 'End term', 7, '1E', 'mathematics', 55, 'C+', 'Good', 5, NULL, NULL), (110, 2020, 1, 'End term', 8, '1E', 'mathematics', 49, 'C-', 'Work hard', 5, NULL, NULL), (111, 2020, 1, 'End term', 9, '1E', 'mathematics', 69, 'B', 'Good', 5, NULL, NULL), (112, 2020, 1, 'End term', 10, '1E', 'mathematics', 49, 'C-', 'Can do better', 5, NULL, NULL), (113, 2020, 1, 'End term', 11, '1W', 'chemistry', 67, 'B', 'Good', 1, NULL, NULL), (114, 2020, 1, 'End term', 11, '1W', 'mathematics', 77, 'A-', 'Very good', 1, NULL, NULL), (115, 2020, 1, 'End term', 12, '1W', 'chemistry', 45, 'C-', 'Can do better', 1, NULL, NULL), (116, 2020, 1, 'End term', 12, '1W', 'mathematics', 61, 'B-', 'Good', 1, NULL, NULL), (131, 2020, 1, 'Opener exam', 7, '1E', 'chemistry', 78, 'A-', 'Very good', 1, NULL, NULL), (132, 2020, 1, 'Opener exam', 8, '1E', 'chemistry', 49, 'C-', 'Can do better', 1, NULL, NULL), (133, 2020, 1, 'Opener exam', 9, '1E', 'chemistry', 81, 'A', 'Excellent. Keep up', 1, NULL, NULL), (134, 2020, 1, 'Opener exam', 10, '1E', 'chemistry', 60, 'B-', 'Good', 1, NULL, NULL), (135, 2020, 1, 'Opener exam', 1, '1W', 'chemistry', 81, 'A', 'Excellent. Keep up', 1, NULL, NULL), (136, 2020, 1, 'Opener exam', 2, '1W', 'chemistry', 36, 'D', 'Work hard', 1, NULL, NULL), (137, 2020, 1, 'Opener exam', 2, '1W', 'mathematics', 70, 'B+', 'Very good', 1, NULL, NULL), (138, 2020, 1, 'Opener exam', 1, '1W', 'mathematics', 77, 'A-', 'Very good', 1, NULL, NULL), (139, 2020, 1, 'Opener exam', 4, '1W', 'chemistry', 58, 'C+', 'Good', 1, NULL, NULL), (140, 2020, 1, 'Opener exam', 4, '1W', 'mathematics', 78, 'A-', 'Very good', 1, NULL, NULL), (141, 2020, 1, 'Opener exam', 5, '1W', 'chemistry', 45, 'C-', 'Work hard', 1, NULL, NULL), (142, 2020, 1, 'Opener exam', 5, '1W', 'mathematics', 65, 'B', 'Good', 1, NULL, NULL), (143, 2020, 1, 'Opener exam', 11, '1W', 'chemistry', 89, 'A', 'Excellent. Keep up', 1, NULL, NULL), (144, 2020, 1, 'Opener exam', 11, '1W', 'mathematics', 74, 'B+', 'Very good', 1, NULL, NULL), (145, 2020, 1, 'Opener exam', 12, '1W', 'chemistry', 66, 'B', 'Good', 1, NULL, NULL), (146, 2020, 1, 'Opener exam', 12, '1W', 'mathematics', 52, 'C', 'Can do better', 1, NULL, NULL), (147, 2020, 1, 'Opener exam', 6, '1E', 'chemistry', 75, 'A-', 'Very good', 1, NULL, NULL), (148, 2020, 1, 'Opener exam', 6, '1E', 'biology', 56, 'C+', 'Can do better', 2, NULL, NULL), (149, 2020, 1, 'Opener exam', 7, '1E', 'biology', 86, 'A', 'Excellent. Keep up', 2, NULL, NULL), (150, 2020, 1, 'Opener exam', 8, '1E', 'biology', 71, 'B+', 'Very good', 2, NULL, NULL), (151, 2020, 1, 'Opener exam', 9, '1E', 'biology', 44, 'D+', 'Work hard', 2, NULL, NULL), (152, 2020, 1, 'Opener exam', 10, '1E', 'biology', 58, 'C+', 'Good', 2, NULL, NULL), (153, 2020, 1, 'Opener exam', 1, '1W', 'biology', 39, 'D', 'Work hard', 2, NULL, NULL), (154, 2020, 1, 'Opener exam', 2, '1W', 'biology', 68, 'B', 'Good', 2, NULL, NULL), (155, 2020, 1, 'Opener exam', 4, '1W', 'biology', 76, 'A-', 'Very good', 2, NULL, NULL), (156, 2020, 1, 'Opener exam', 5, '1W', 'biology', 88, 'A', 'Very good', 2, NULL, NULL), (157, 2020, 1, 'Opener exam', 11, '1W', 'biology', 63, 'B-', 'Good', 2, NULL, NULL), (158, 2020, 1, 'Opener exam', 12, '1W', 'biology', 49, 'C-', 'Can do better', 2, NULL, NULL), (159, 2020, 1, 'Opener exam', 6, '1E', 'cre', 88, 'A', 'Excellent. Keep up', 3, NULL, NULL), (160, 2020, 1, 'Opener exam', 6, '1E', 'history', 72, 'B+', 'Very good', 3, NULL, NULL), (161, 2020, 1, 'Opener exam', 7, '1E', 'cre', 56, 'C+', 'Good', 3, NULL, NULL), (162, 2020, 1, 'Opener exam', 7, '1E', 'history', 68, 'B', 'Very good', 3, NULL, NULL), (163, 2020, 1, 'Opener exam', 8, '1E', 'cre', 46, 'C-', 'Work hard', 3, NULL, NULL), (164, 2020, 1, 'Opener exam', 8, '1E', 'history', 59, 'C+', 'Good', 3, NULL, NULL), (165, 2020, 1, 'Opener exam', 9, '1E', 'cre', 67, 'B', 'Good', 3, NULL, NULL), (166, 2020, 1, 'Opener exam', 9, '1E', 'history', 58, 'C+', 'Good', 3, NULL, NULL), (167, 2020, 1, 'Opener exam', 10, '1E', 'cre', 69, 'B', 'Very good', 3, NULL, NULL), (168, 2020, 1, 'Opener exam', 10, '1E', 'history', 50, 'C', 'Can do better', 3, NULL, NULL), (169, 2020, 1, 'Opener exam', 1, '1W', 'cre', 64, 'B-', 'Good', 3, NULL, NULL), (170, 2020, 1, 'Opener exam', 1, '1W', 'history', 72, 'B+', 'Very good', 3, NULL, NULL), (171, 2020, 1, 'Opener exam', 2, '1W', 'cre', 77, 'A-', 'Very good', 3, NULL, NULL), (172, 2020, 1, 'Opener exam', 2, '1W', 'history', 48, 'C-', 'Can do better', 3, NULL, NULL), (173, 2020, 1, 'Opener exam', 4, '1W', 'cre', 57, 'C+', 'Good', 3, NULL, NULL), (174, 2020, 1, 'Opener exam', 4, '1W', 'history', 78, 'A-', 'Very good', 3, NULL, NULL), (175, 2020, 1, 'Opener exam', 5, '1W', 'cre', 56, 'C+', 'Good', 3, NULL, NULL), (176, 2020, 1, 'Opener exam', 5, '1W', 'history', 63, 'B-', 'Good', 3, NULL, NULL), (177, 2020, 1, 'Opener exam', 11, '1W', 'cre', 70, 'B+', 'Very good', 3, NULL, NULL), (178, 2020, 1, 'Opener exam', 11, '1W', 'history', 65, 'B', 'Good', 3, NULL, NULL), (179, 2020, 1, 'Opener exam', 12, '1W', 'cre', 49, 'C-', 'Work hard', 3, NULL, NULL), (180, 2020, 1, 'Opener exam', 12, '1W', 'history', 68, 'B', 'Good', 3, NULL, NULL), (181, 2020, 1, 'Opener exam', 6, '1E', 'english', 55, 'C+', 'Good', 4, NULL, NULL), (182, 2020, 1, 'Opener exam', 7, '1E', 'english', 70, 'B+', 'Very good', 4, NULL, NULL), (183, 2020, 1, 'Opener exam', 8, '1E', 'english', 63, 'B-', 'Good', 4, NULL, NULL), (184, 2020, 1, 'Opener exam', 9, '1E', 'english', 48, 'C-', 'Can do better', 4, NULL, NULL), (185, 2020, 1, 'Opener exam', 10, '1E', 'english', 67, 'B', 'Very good', 4, NULL, NULL), (186, 2020, 1, 'Opener exam', 1, '1W', 'english', 78, 'A-', 'Very good', 4, NULL, NULL), (187, 2020, 1, 'Opener exam', 2, '1W', 'english', 58, 'C+', 'Good', 4, NULL, NULL), (188, 2020, 1, 'Opener exam', 4, '1W', 'english', 38, 'D', 'Work hard', 4, NULL, NULL), (189, 2020, 1, 'Opener exam', 5, '1W', 'english', 61, 'B-', 'Good', 4, NULL, NULL), (190, 2020, 1, 'Opener exam', 11, '1W', 'english', 52, 'C', 'Good', 4, NULL, NULL), (191, 2020, 1, 'Opener exam', 12, '1W', 'english', 71, 'B+', 'Very good', 4, NULL, NULL), (192, 2020, 1, 'Opener exam', 6, '1E', 'mathematics', 45, 'C-', 'Can do better', 5, NULL, NULL), (193, 2020, 1, 'Opener exam', 7, '1E', 'mathematics', 78, 'A-', 'Very good', 5, NULL, NULL), (194, 2020, 1, 'Opener exam', 8, '1E', 'mathematics', 48, 'C-', 'Work hard', 5, NULL, NULL), (195, 2020, 1, 'Opener exam', 9, '1E', 'mathematics', 77, 'A-', 'Very good', 5, NULL, NULL), (196, 2020, 1, 'Opener exam', 10, '1E', 'mathematics', 64, 'B-', 'Good', 5, NULL, NULL), (197, 2020, 1, 'Opener exam', 6, '1E', 'agriculture', 56, 'C+', 'Good', 6, NULL, NULL), (198, 2020, 1, 'Opener exam', 7, '1E', 'agriculture', 67, 'B', 'Very good', 6, NULL, NULL), (199, 2020, 1, 'Opener exam', 8, '1E', 'agriculture', 60, 'B-', 'Good', 6, NULL, NULL), (200, 2020, 1, 'Opener exam', 9, '1E', 'agriculture', 70, 'B+', 'Very good', 6, NULL, NULL), (201, 2020, 1, 'Opener exam', 10, '1E', 'agriculture', 45, 'C-', 'Work hard', 6, NULL, NULL), (202, 2020, 1, 'Opener exam', 1, '1W', 'agriculture', 57, 'C+', 'Good', 6, NULL, NULL), (203, 2020, 1, 'Opener exam', 2, '1W', 'agriculture', 66, 'B', 'Good', 6, NULL, NULL), (204, 2020, 1, 'Opener exam', 4, '1W', 'agriculture', 49, 'C-', 'Can do better', 6, NULL, NULL), (205, 2020, 1, 'Opener exam', 5, '1W', 'agriculture', 38, 'D', 'Work hard', 6, NULL, NULL), (206, 2020, 1, 'Opener exam', 12, '1W', 'agriculture', 67, 'B', 'Very good', 6, NULL, NULL), (207, 2020, 1, 'Opener exam', 11, '1W', 'agriculture', 73, 'B+', 'Very good', 6, NULL, NULL), (208, 2020, 1, 'Opener exam', 6, '1E', 'geography', 72, 'B+', 'Very good', 7, NULL, NULL), (209, 2020, 1, 'Opener exam', 6, '1E', 'business_studies', 78, 'A-', 'Very good', 7, NULL, NULL), (210, 2020, 1, 'Opener exam', 7, '1E', 'geography', 81, 'A', 'Excellent. Keep up', 7, NULL, NULL), (211, 2020, 1, 'Opener exam', 7, '1E', 'business_studies', 80, 'A', 'Excellent. Keep up', 7, NULL, NULL), (212, 2020, 1, 'Opener exam', 8, '1E', 'geography', 81, 'A', 'Excellent. Keep up', 7, NULL, NULL), (213, 2020, 1, 'Opener exam', 8, '1E', 'business_studies', 58, 'C+', 'Good', 7, NULL, NULL), (214, 2020, 1, 'Opener exam', 9, '1E', 'geography', 58, 'C+', 'Good', 7, NULL, NULL), (215, 2020, 1, 'Opener exam', 9, '1E', 'business_studies', 49, 'C-', 'Good', 7, NULL, NULL), (216, 2020, 1, 'Opener exam', 10, '1E', 'geography', 49, 'C-', 'Can do better', 7, NULL, NULL), (217, 2020, 1, 'Opener exam', 10, '1E', 'business_studies', 68, 'B', 'Good', 7, NULL, NULL), (218, 2020, 1, 'Opener exam', 1, '1W', 'geography', 48, 'C-', 'Can do better', 7, NULL, NULL), (219, 2020, 1, 'Opener exam', 1, '1W', 'business_studies', 69, 'B', 'Very good', 7, NULL, NULL), (220, 2020, 1, 'Opener exam', 2, '1W', 'geography', 69, 'B', 'Good', 7, NULL, NULL), (221, 2020, 1, 'Opener exam', 2, '1W', 'business_studies', 54, 'C', 'Can do better', 7, NULL, NULL), (222, 2020, 1, 'Opener exam', 4, '1W', 'geography', 73, 'B+', 'Very good', 7, NULL, NULL), (223, 2020, 1, 'Opener exam', 4, '1W', 'business_studies', 69, 'B', 'Very good', 7, NULL, NULL), (224, 2020, 1, 'Opener exam', 5, '1W', 'geography', 45, 'C-', 'Can do better', 7, NULL, NULL), (225, 2020, 1, 'Opener exam', 5, '1W', 'business_studies', 72, 'B+', 'Very good', 7, NULL, NULL), (226, 2020, 1, 'Opener exam', 12, '1W', 'geography', 49, 'C-', 'Can do better', 7, NULL, NULL), (227, 2020, 1, 'Opener exam', 12, '1W', 'business_studies', 73, 'B+', 'Very good', 7, NULL, NULL), (228, 2020, 1, 'Opener exam', 11, '1W', 'geography', 58, 'C+', 'Good', 7, NULL, NULL), (229, 2020, 1, 'Opener exam', 11, '1W', 'business_studies', 60, 'B-', 'Good', 7, NULL, NULL), (230, 2020, 1, 'Opener exam', 6, '1E', 'kiswahili', 55, 'C+', 'Good', 8, NULL, NULL), (231, 2020, 1, 'Opener exam', 7, '1E', 'kiswahili', 73, 'B+', 'Very good', 8, NULL, NULL), (232, 2020, 1, 'Opener exam', 8, '1E', 'kiswahili', 56, 'C+', 'Good', 8, NULL, NULL), (233, 2020, 1, 'Opener exam', 9, '1E', 'kiswahili', 68, 'B', 'Very good', 8, NULL, NULL), (234, 2020, 1, 'Opener exam', 10, '1E', 'kiswahili', 65, 'B', 'Good', 8, NULL, NULL), (235, 2020, 1, 'Opener exam', 1, '1W', 'kiswahili', 77, 'A-', 'Excellent. Keep up', 8, NULL, NULL), (236, 2020, 1, 'Opener exam', 2, '1W', 'kiswahili', 59, 'C+', 'Good', 8, NULL, NULL), (237, 2020, 1, 'Opener exam', 4, '1W', 'kiswahili', 45, 'C-', 'Work hard', 8, NULL, NULL), (238, 2020, 1, 'Opener exam', 5, '1W', 'kiswahili', 51, 'C', 'Good', 8, NULL, NULL), (239, 2020, 1, 'Opener exam', 11, '1W', 'kiswahili', 63, 'B-', 'Very good', 8, NULL, NULL), (240, 2020, 1, 'Opener exam', 12, '1W', 'kiswahili', 69, 'B', 'Very good', 8, NULL, NULL), (241, 2020, 1, 'Opener exam', 6, '1E', 'physics', 77, 'A-', 'Very good', 9, NULL, NULL), (242, 2020, 1, 'Opener exam', 7, '1E', 'physics', 64, 'B-', 'Good', 9, NULL, NULL), (243, 2020, 1, 'Opener exam', 8, '1E', 'physics', 48, 'C-', 'Can do better', 9, NULL, NULL), (244, 2020, 1, 'Opener exam', 9, '1E', 'physics', 61, 'B-', 'Good', 9, NULL, NULL), (245, 2020, 1, 'Opener exam', 10, '1E', 'physics', 70, 'B+', 'Very good', 9, NULL, NULL), (246, 2020, 1, 'Opener exam', 1, '1W', 'physics', 48, 'C-', 'Can do better', 9, NULL, NULL), (247, 2020, 1, 'Opener exam', 2, '1W', 'physics', 74, 'B+', 'Very good', 9, NULL, NULL), (248, 2020, 1, 'Opener exam', 4, '1W', 'physics', 58, 'C+', 'Good', 9, NULL, NULL), (249, 2020, 1, 'Opener exam', 5, '1W', 'physics', 79, 'A-', 'Excellent. Keep up', 9, NULL, NULL), (250, 2020, 1, 'Opener exam', 11, '1W', 'physics', 75, 'A-', 'Very good', 9, NULL, NULL), (251, 2020, 1, 'Opener exam', 12, '1W', 'physics', 49, 'C-', 'Work hard', 9, NULL, NULL), (252, 2020, 1, 'Opener exam', 20, '3E', 'biology', 79, 'A-', 'Excellent. Keep up', 2, NULL, NULL), (253, 2020, 1, 'Opener exam', 13, '3E', 'biology', 67, 'B', 'Good', 2, NULL, NULL), (254, 2020, 1, 'Opener exam', 20, '3E', 'mathematics', 70, 'B+', 'Good', 5, NULL, NULL), (255, 2020, 1, 'Opener exam', 20, '3E', 'chemistry', 64, 'B-', 'Good', 5, NULL, NULL), (256, 2020, 1, 'Opener exam', 13, '3E', 'mathematics', 90, 'A', 'Excellent. Keep up', 5, NULL, NULL), (257, 2020, 1, 'Opener exam', 13, '3E', 'chemistry', 75, 'A-', 'Excellent. Keep up', 5, NULL, NULL), (258, 2020, 1, 'Opener exam', 23, '3W', 'mathematics', 56, 'C+', 'Can do better', 5, NULL, NULL), (259, 2020, 1, 'Opener exam', 23, '3W', 'chemistry', 88, 'A', 'Excellent. Keep up', 5, NULL, NULL), (260, 2020, 1, 'Opener exam', 24, '3W', 'mathematics', 78, 'A-', 'Excellent. Keep up', 5, NULL, NULL), (261, 2020, 1, 'Opener exam', 24, '3W', 'chemistry', 70, 'B+', 'Very good', 5, NULL, NULL), (262, 2020, 1, 'Opener exam', 23, '3W', 'history', 67, 'B', 'Good', 3, NULL, NULL), (263, 2020, 1, 'Opener exam', 24, '3W', 'cre', 89, 'A', 'Excellent. Keep up', 3, NULL, NULL), (264, 2020, 1, 'Opener exam', 20, '3E', 'cre', 72, 'B+', 'Very good', 3, NULL, NULL), (265, 2020, 1, 'Opener exam', 13, '3E', 'history', 76, 'A-', 'Excellent. Keep up', 3, NULL, NULL), (266, 2020, 1, 'Opener exam', 20, '3E', 'business_studies', 56, 'C+', 'Can do better', 7, NULL, NULL), (267, 2020, 1, 'Opener exam', 20, '3E', 'geography', 67, 'B', 'Good', 7, NULL, NULL), (268, 2020, 1, 'Opener exam', 13, '3E', 'business_studies', 80, 'A', 'Excellent. Keep up', 7, NULL, NULL), (269, 2020, 1, 'Opener exam', 23, '3W', 'business_studies', 77, 'A-', 'Very good', 7, NULL, NULL), (270, 2020, 1, 'Opener exam', 24, '3W', 'geography', 79, 'A-', 'Excellent. Keep up', 7, NULL, NULL), (271, 2020, 1, 'Opener exam', 20, '3E', 'english', 54, 'C', 'Can do better', 4, NULL, NULL), (272, 2020, 1, 'Opener exam', 13, '3E', 'english', 67, 'B', 'Good', 4, NULL, NULL), (273, 2020, 1, 'Opener exam', 23, '3W', 'english', 71, 'B+', 'Very good', 4, NULL, NULL), (274, 2020, 1, 'Opener exam', 24, '3W', 'english', 77, 'A-', 'Excellent. Keep up', 4, NULL, NULL), (275, 2020, 1, 'Opener exam', 23, '3W', 'physics', 75, 'A-', 'Excellent. Keep up', 9, NULL, NULL), (276, 2020, 1, 'Opener exam', 24, '3W', 'physics', 68, 'B', 'Good', 9, NULL, NULL), (277, 2020, 1, 'Opener exam', 20, '3E', 'kiswahili', 66, 'B', 'Good', 8, NULL, NULL), (278, 2020, 1, 'Opener exam', 13, '3E', 'kiswahili', 72, 'B+', 'Very good', 8, NULL, NULL), (279, 2020, 1, 'Opener exam', 23, '3W', 'kiswahili', 72, 'B+', 'Very good', 8, NULL, NULL), (280, 2020, 1, 'Opener exam', 24, '3W', 'kiswahili', 56, 'C+', 'Can do better', 8, NULL, NULL), (281, 2020, 1, 'Mid term exam', 6, '1E', 'chemistry', 70, 'B+', 'Very good', 1, NULL, NULL), (282, 2020, 1, 'End term exam', 6, '1E', 'chemistry', 78, 'A-', 'Very good', 1, NULL, NULL), (283, 2020, 1, 'End term exam', 8, '1E', 'chemistry', 64, 'B-', 'Good', 1, NULL, NULL), (284, 2020, 1, 'End term exam', 9, '1E', 'chemistry', 46, 'C-', 'Can do better', 1, NULL, NULL), (285, 2020, 1, 'End term exam', 10, '1E', 'chemistry', 80, 'A', 'Excellent. Keep up', 1, NULL, NULL), (286, 2020, 1, 'End term exam', 26, '1E', 'chemistry', 10, 'E', 'Work hard', 1, NULL, NULL), (287, 2020, 1, 'End term exam', 4, '1W', 'chemistry', 67, 'B', 'Good', 1, NULL, NULL), (288, 2020, 1, 'End term exam', 4, '1W', 'mathematics', 78, 'A-', 'Excellent. Keep up', 1, NULL, NULL), (289, 2020, 1, 'End term exam', 2, '1W', 'chemistry', 65, 'B', 'Good', 1, NULL, NULL), (290, 2020, 1, 'End term exam', 2, '1W', 'mathematics', 45, 'C-', 'Can do better', 1, NULL, NULL), (291, 2020, 1, 'End term exam', 5, '1W', 'chemistry', 55, 'C+', 'Good', 1, NULL, NULL), (292, 2020, 1, 'End term exam', 5, '1W', 'mathematics', 67, 'B', 'Good', 1, NULL, NULL), (293, 2020, 1, 'End term exam', 11, '1W', 'chemistry', 78, 'A-', 'Excellent. Keep up', 1, NULL, NULL), (294, 2020, 1, 'End term exam', 11, '1W', 'mathematics', 67, 'B', 'Very good', 1, NULL, NULL), (295, 2020, 1, 'End term exam', 12, '1W', 'chemistry', 46, 'C-', 'Work hard', 1, NULL, NULL), (296, 2020, 1, 'End term exam', 12, '1W', 'mathematics', 78, 'A-', 'Excellent. Keep up', 1, NULL, NULL), (297, 2020, 1, 'End term exam', 32, '1W', 'chemistry', 68, 'B', 'Very good', 1, NULL, NULL), (298, 2020, 1, 'End term exam', 32, '1W', 'mathematics', 70, 'B+', 'Very good', 1, NULL, NULL), (299, 2020, 1, 'End term exam', 38, '1W', 'chemistry', 79, 'A-', 'Very good', 1, NULL, NULL), (300, 2020, 1, 'End term exam', 38, '1W', 'mathematics', 61, 'B-', 'Good', 1, NULL, NULL), (301, 2020, 1, 'End term exam', 35, '1W', 'chemistry', 49, 'C-', 'Can do better', 1, NULL, NULL), (302, 2020, 1, 'End term exam', 35, '1W', 'mathematics', 73, 'B+', 'Very good', 1, NULL, NULL), (303, 2020, 1, 'End term exam', 31, '1W', 'chemistry', 58, 'C+', 'Good', 1, NULL, NULL), (304, 2020, 1, 'End term exam', 31, '1W', 'mathematics', 45, 'C-', 'Good', 1, NULL, NULL), (305, 2020, 1, 'End term exam', 39, '1W', 'chemistry', 39, 'D', 'Work hard', 1, NULL, NULL), (306, 2020, 1, 'End term exam', 39, '1W', 'mathematics', 50, 'C', 'Can do better', 1, NULL, NULL), (307, 2020, 1, 'End term exam', 40, '1W', 'chemistry', 52, 'C', 'Good', 1, NULL, NULL), (308, 2020, 1, 'End term exam', 40, '1W', 'mathematics', 76, 'A-', 'Very good', 1, NULL, NULL), (309, 2020, 1, 'End term exam', 6, '1E', 'biology', 89, 'A', 'Excellent. Keep up', 2, NULL, NULL), (310, 2020, 1, 'End term exam', 8, '1E', 'biology', 45, 'C-', 'Can do better', 2, NULL, NULL), (311, 2020, 1, 'End term exam', 9, '1E', 'biology', 78, 'A-', 'Good', 2, NULL, NULL), (312, 2020, 1, 'End term exam', 10, '1E', 'biology', 61, 'B-', 'Good', 2, NULL, NULL), (313, 2020, 1, 'End term exam', 25, '1E', 'biology', 55, 'C+', 'Good', 2, NULL, NULL), (314, 2020, 1, 'End term exam', 26, '1E', 'biology', 72, 'B+', 'Good', 2, NULL, NULL), (315, 2020, 1, 'End term exam', 28, '1E', 'biology', 65, 'B', 'Good', 2, NULL, NULL), (316, 2020, 1, 'End term exam', 37, '1E', 'biology', 48, 'C-', 'Can do better', 2, NULL, NULL), (317, 2020, 1, 'End term exam', 30, '1E', 'biology', 49, 'C-', 'Can do better', 2, NULL, NULL), (318, 2020, 1, 'End term exam', 29, '1E', 'biology', 67, 'B', 'Good', 2, NULL, NULL), (319, 2020, 1, 'End term exam', 27, '1E', 'biology', 51, 'C', 'Good', 2, NULL, NULL), (320, 2020, 1, 'End term exam', 33, '1E', 'biology', 43, 'D+', 'Can do better', 2, NULL, NULL), (321, 2020, 1, 'End term exam', 36, '1E', 'biology', 61, 'B-', 'Good', 2, NULL, NULL), (322, 2020, 1, 'End term exam', 2, '1W', 'biology', 63, 'B-', 'Good', 2, NULL, NULL), (323, 2020, 1, 'End term exam', 4, '1W', 'biology', 89, 'A', 'Excellent. Keep up', 2, NULL, NULL), (324, 2020, 1, 'End term exam', 5, '1W', 'biology', 51, 'C', 'Can do better', 2, NULL, NULL), (325, 2020, 1, 'End term exam', 12, '1W', 'biology', 66, 'B', 'Good', 2, NULL, NULL), (326, 2020, 1, 'End term exam', 32, '1W', 'biology', 49, 'C-', 'Can do better', 2, NULL, NULL), (327, 2020, 1, 'End term exam', 34, '1W', 'biology', 77, 'A-', 'Very good', 2, NULL, NULL), (328, 2020, 1, 'End term exam', 40, '1W', 'biology', 30, 'D-', 'Work hard', 2, NULL, NULL), (329, 2020, 1, 'End term exam', 38, '1W', 'biology', 69, 'B', 'Very good', 2, NULL, NULL), (330, 2020, 1, 'End term exam', 35, '1W', 'biology', 48, 'C-', 'Can do better', 2, NULL, NULL), (331, 2020, 1, 'End term exam', 39, '1W', 'biology', 65, 'B', 'Good', 2, NULL, NULL), (332, 2020, 1, 'End term exam', 6, '1E', 'cre', 67, 'B', 'Very good', 3, NULL, NULL), (333, 2020, 1, 'End term exam', 6, '1E', 'history', 83, 'A', 'Excellent. Keep up', 3, NULL, NULL), (334, 2020, 1, 'End term exam', 8, '1E', 'cre', 65, 'B', 'Good', 3, NULL, NULL), (335, 2020, 1, 'End term exam', 8, '1E', 'history', 67, 'B', 'Good', 3, NULL, NULL), (336, 2020, 1, 'End term exam', 9, '1E', 'cre', 63, 'B-', 'Good', 3, NULL, NULL), (337, 2020, 1, 'End term exam', 9, '1E', 'history', 76, 'A-', 'Very good', 3, NULL, NULL), (338, 2020, 1, 'End term exam', 10, '1E', 'cre', 67, 'B', 'Good', 3, NULL, NULL), (339, 2020, 1, 'End term exam', 10, '1E', 'history', 56, 'C+', 'Good', 3, NULL, NULL), (340, 2020, 1, 'End term exam', 26, '1E', 'cre', 49, 'C-', 'Can do better', 3, NULL, NULL), (341, 2020, 1, 'End term exam', 26, '1E', 'history', 67, 'B', 'Very good', 3, NULL, NULL), (342, 2020, 1, 'End term exam', 28, '1E', 'cre', 78, 'A-', 'Good', 3, NULL, NULL), (343, 2020, 1, 'End term exam', 28, '1E', 'history', 89, 'A', 'Excellent. Keep up', 3, NULL, NULL), (344, 2020, 1, 'End term exam', 29, '1E', 'cre', 57, 'C+', 'Good', 3, NULL, NULL), (345, 2020, 1, 'End term exam', 29, '1E', 'history', 74, 'B+', 'Very good', 3, NULL, NULL), (346, 2020, 1, 'End term exam', 36, '1E', 'cre', 46, 'C-', 'Can do better', 3, NULL, NULL), (347, 2020, 1, 'End term exam', 36, '1E', 'history', 78, 'A-', 'Excellent. Keep up', 3, NULL, NULL), (348, 2020, 1, 'End term exam', 30, '1E', 'cre', 48, 'C-', 'Good', 3, NULL, NULL), (349, 2020, 1, 'End term exam', 30, '1E', 'history', 65, 'B', 'Good', 3, NULL, NULL), (350, 2020, 1, 'End term exam', 27, '1E', 'cre', 71, 'B+', 'Good', 3, NULL, NULL), (351, 2020, 1, 'End term exam', 27, '1E', 'history', 83, 'A', 'Excellent. Keep up', 3, NULL, NULL), (352, 2020, 1, 'End term exam', 33, '1E', 'cre', 77, 'A-', 'Excellent. Keep up', 3, NULL, NULL), (353, 2020, 1, 'End term exam', 33, '1E', 'history', 61, 'B-', 'Very good', 3, NULL, NULL), (354, 2020, 1, 'End term exam', 37, '1E', 'cre', 56, 'C+', 'Good', 3, NULL, NULL), (355, 2020, 1, 'End term exam', 37, '1E', 'history', 82, 'A', 'Good', 3, NULL, NULL), (356, 2020, 1, 'End term exam', 2, '1W', 'cre', 73, 'B+', 'Very good', 3, NULL, NULL), (357, 2020, 1, 'End term exam', 2, '1W', 'history', 67, 'B', 'Good', 3, NULL, NULL), (358, 2020, 1, 'End term exam', 4, '1W', 'cre', 56, 'C+', 'Good', 3, NULL, NULL), (359, 2020, 1, 'End term exam', 4, '1W', 'history', 51, 'C', 'Good', 3, NULL, NULL), (360, 2020, 1, 'End term exam', 5, '1W', 'cre', 64, 'B-', 'Good', 3, NULL, NULL), (361, 2020, 1, 'End term exam', 5, '1W', 'history', 63, 'B-', 'Very good', 3, NULL, NULL), (362, 2020, 1, 'End term exam', 11, '1W', 'cre', 72, 'B+', 'Good', 3, NULL, NULL), (363, 2020, 1, 'End term exam', 11, '1W', 'history', 89, 'A', 'Very good', 3, NULL, NULL), (364, 2020, 1, 'End term exam', 12, '1W', 'cre', 90, 'A', 'Excellent. Keep up', 3, NULL, NULL), (365, 2020, 1, 'End term exam', 12, '1W', 'history', 59, 'C+', 'Can do better', 3, NULL, NULL), (366, 2020, 1, 'End term exam', 31, '1W', 'cre', 40, 'D+', 'Work hard', 3, NULL, NULL), (367, 2020, 1, 'End term exam', 31, '1W', 'history', 32, 'D-', 'Work hard', 3, NULL, NULL), (368, 2020, 1, 'End term exam', 32, '1W', 'cre', 65, 'B', 'Good', 3, NULL, NULL), (369, 2020, 1, 'End term exam', 32, '1W', 'history', 71, 'B+', 'Very good', 3, NULL, NULL), (370, 2020, 1, 'End term exam', 34, '1W', 'cre', 78, 'A-', 'Very good', 3, NULL, NULL), (371, 2020, 1, 'End term exam', 34, '1W', 'history', 63, 'B-', 'Good', 3, NULL, NULL), (372, 2020, 1, 'End term exam', 35, '1W', 'cre', 55, 'C+', 'Good', 3, NULL, NULL), (373, 2020, 1, 'End term exam', 35, '1W', 'history', 78, 'A-', 'Good', 3, NULL, NULL), (374, 2020, 1, 'End term exam', 38, '1W', 'cre', 77, 'A-', 'Very good', 3, NULL, NULL), (375, 2020, 1, 'End term exam', 38, '1W', 'history', 39, 'D', 'Work hard', 3, NULL, NULL), (376, 2020, 1, 'End term exam', 40, '1W', 'cre', 66, 'B', 'Good', 3, NULL, NULL), (377, 2020, 1, 'End term exam', 40, '1W', 'history', 70, 'B+', 'Very good', 3, NULL, NULL), (378, 2020, 1, 'End term exam', 6, '1E', 'english', 56, 'C+', 'Good', 4, NULL, NULL), (379, 2020, 1, 'End term exam', 10, '1E', 'english', 67, 'B', 'Very good', 4, NULL, NULL), (380, 2020, 1, 'End term exam', 9, '1E', 'english', 57, 'C+', 'Good', 4, NULL, NULL), (381, 2020, 1, 'End term exam', 26, '1E', 'english', 76, 'A-', 'Excellent. Keep up', 4, NULL, NULL), (382, 2020, 1, 'End term exam', 29, '1E', 'english', 67, 'B', 'Very good', 4, NULL, NULL), (383, 2020, 1, 'End term exam', 30, '1E', 'english', 56, 'C+', 'Good', 4, NULL, NULL), (384, 2020, 1, 'End term exam', 28, '1E', 'english', 71, 'B+', 'Excellent. Keep up', 4, NULL, NULL), (385, 2020, 1, 'End term exam', 25, '1E', 'english', 67, 'B', 'Good', 4, NULL, NULL), (386, 2020, 1, 'End term exam', 27, '1E', 'english', 66, 'B', 'Good', 4, NULL, NULL), (387, 2020, 1, 'End term exam', 33, '1E', 'english', 56, 'C+', 'Very good', 4, NULL, NULL), (388, 2020, 1, 'End term exam', 36, '1E', 'english', 43, 'D+', 'Can do better', 4, NULL, NULL), (389, 2020, 1, 'End term exam', 37, '1E', 'english', 72, 'B+', 'Good', 4, NULL, NULL), (390, 2020, 1, 'End term exam', 2, '1W', 'english', 56, 'C+', 'Good', 4, NULL, NULL), (391, 2020, 1, 'End term exam', 4, '1W', 'english', 67, 'B', 'Very good', 4, NULL, NULL), (392, 2020, 1, 'End term exam', 5, '1W', 'english', 73, 'B+', 'Very good', 4, NULL, NULL), (393, 2020, 1, 'End term exam', 11, '1W', 'english', 78, 'A-', 'Very good', 4, NULL, NULL), (394, 2020, 1, 'End term exam', 12, '1W', 'english', 67, 'B', 'Very good', 4, NULL, NULL), (395, 2020, 1, 'End term exam', 32, '1W', 'english', 64, 'B-', 'Good', 4, NULL, NULL), (396, 2020, 1, 'End term exam', 35, '1W', 'english', 72, 'B+', 'Very good', 4, NULL, NULL), (397, 2020, 1, 'End term exam', 38, '1W', 'english', 64, 'B-', 'Good', 4, NULL, NULL), (398, 2020, 1, 'End term exam', 34, '1W', 'english', 76, 'A-', 'Very good', 4, NULL, NULL), (399, 2020, 1, 'End term exam', 39, '1W', 'english', 65, 'B', 'Very good', 4, NULL, NULL), (400, 2020, 1, 'End term exam', 40, '1W', 'english', 56, 'C+', 'Good', 4, NULL, NULL), (401, 2020, 1, 'End term exam', 6, '1E', 'mathematics', 78, 'A-', 'Very good', 5, NULL, NULL), (402, 2020, 1, 'End term exam', 8, '1E', 'mathematics', 67, 'B', 'Good', 5, NULL, NULL), (403, 2020, 1, 'End term exam', 9, '1E', 'mathematics', 56, 'C+', 'Good', 5, NULL, NULL), (404, 2020, 1, 'End term exam', 6, '1E', 'kiswahili', 78, 'A-', 'Excellent. Keep up', 8, NULL, NULL), (405, 2020, 1, 'End term exam', 8, '1E', 'kiswahili', 56, 'C+', 'Excellent. Keep up', 8, NULL, NULL), (406, 2020, 1, 'End term exam', 9, '1E', 'kiswahili', 67, 'B', 'Very good', 8, NULL, NULL), (407, 2020, 1, 'End term exam', 10, '1E', 'kiswahili', 49, 'C-', 'Can do better', 8, NULL, NULL), (408, 2020, 1, 'End term exam', 25, '1E', 'kiswahili', 74, 'B+', 'Very good', 8, NULL, NULL), (409, 2020, 1, 'End term exam', 26, '1E', 'kiswahili', 46, 'C-', 'Can do better', 8, NULL, NULL), (410, 2020, 1, 'End term exam', 37, '1E', 'kiswahili', 66, 'B', 'Good', 8, NULL, NULL), (411, 2020, 1, 'End term exam', 28, '1E', 'kiswahili', 58, 'C+', 'Good', 8, NULL, NULL), (412, 2020, 1, 'End term exam', 27, '1E', 'kiswahili', 79, 'A-', 'Excellent. Keep up', 8, NULL, NULL), (413, 2020, 1, 'End term exam', 29, '1E', 'kiswahili', 71, 'B+', 'Very good', 8, NULL, NULL), (414, 2020, 1, 'End term exam', 30, '1E', 'kiswahili', 51, 'C', 'Excellent. Keep up', 8, NULL, NULL), (415, 2020, 1, 'End term exam', 36, '1E', 'kiswahili', 49, 'C-', 'Excellent. Keep up', 8, NULL, NULL), (416, 2020, 1, 'End term exam', 33, '1E', 'kiswahili', 55, 'C+', 'Good', 8, NULL, NULL), (417, 2020, 1, 'End term exam', 2, '1W', 'kiswahili', 61, 'B-', 'Good', 8, NULL, NULL), (418, 2020, 1, 'End term exam', 4, '1W', 'kiswahili', 56, 'C+', 'Good', 8, NULL, NULL), (419, 2020, 1, 'End term exam', 5, '1W', 'kiswahili', 63, 'B-', 'Good', 8, NULL, NULL), (420, 2020, 1, 'End term exam', 12, '1W', 'kiswahili', 71, 'B+', 'Very good', 8, NULL, NULL), (421, 2020, 1, 'End term exam', 31, '1W', 'kiswahili', 63, 'B-', 'Good', 8, NULL, NULL), (422, 2020, 1, 'End term exam', 34, '1W', 'kiswahili', 60, 'B-', 'Very good', 8, NULL, NULL), (423, 2020, 1, 'End term exam', 38, '1W', 'kiswahili', 66, 'B', 'Good', 8, NULL, NULL), (424, 2020, 1, 'End term exam', 39, '1W', 'kiswahili', 39, 'D', 'Work hard', 8, NULL, NULL), (425, 2020, 1, 'End term exam', 35, '1W', 'kiswahili', 48, 'C-', 'Can do better', 8, NULL, NULL), (426, 2020, 1, 'End term exam', 32, '1W', 'kiswahili', 71, 'B+', 'Very good', 8, NULL, NULL), (427, 2020, 1, 'End term exam', 40, '1W', 'kiswahili', 59, 'C+', 'Can do better', 8, NULL, NULL), (428, 2020, 1, 'End term exam', 6, '1E', 'geography', 61, 'B-', 'Good', 7, NULL, NULL), (429, 2020, 1, 'End term exam', 6, '1E', 'business_studies', 67, 'B', 'Good', 7, NULL, NULL), (430, 2020, 1, 'End term exam', 8, '1E', 'geography', 57, 'C+', 'Good', 7, NULL, NULL), (431, 2020, 1, 'End term exam', 8, '1E', 'business_studies', 78, 'A-', 'Very good', 7, NULL, NULL), (432, 2020, 1, 'End term exam', 9, '1E', 'geography', 58, 'C+', 'Can do better', 7, NULL, NULL), (433, 2020, 1, 'End term exam', 9, '1E', 'business_studies', 67, 'B', 'Good', 7, NULL, NULL), (434, 2020, 1, 'End term exam', 10, '1E', 'geography', 77, 'A-', 'Very good', 7, NULL, NULL), (435, 2020, 1, 'End term exam', 10, '1E', 'business_studies', 56, 'C+', 'Good', 7, NULL, NULL), (436, 2020, 1, 'End term exam', 25, '1E', 'geography', 67, 'B', 'Very good', 7, NULL, NULL), (437, 2020, 1, 'End term exam', 25, '1E', 'business_studies', 69, 'B', 'Good', 7, NULL, NULL), (438, 2020, 1, 'End term exam', 26, '1E', 'geography', 74, 'B+', 'Very good', 7, NULL, NULL), (439, 2020, 1, 'End term exam', 26, '1E', 'business_studies', 60, 'B-', 'Good', 7, NULL, NULL), (440, 2020, 1, 'End term exam', 27, '1E', 'geography', 49, 'C-', 'Can do better', 7, NULL, NULL), (441, 2020, 1, 'End term exam', 27, '1E', 'business_studies', 74, 'B+', 'Excellent. Keep up', 7, NULL, NULL), (442, 2020, 1, 'End term exam', 30, '1E', 'geography', 56, 'C+', 'Very good', 7, NULL, NULL), (443, 2020, 1, 'End term exam', 30, '1E', 'business_studies', 58, 'C+', 'Very good', 7, NULL, NULL), (444, 2020, 1, 'End term exam', 29, '1E', 'geography', 62, 'B-', 'Good', 7, NULL, NULL), (445, 2020, 1, 'End term exam', 29, '1E', 'business_studies', 67, 'B', 'Good', 7, NULL, NULL), (446, 2020, 1, 'End term exam', 25, '1E', 'mathematics', 78, 'A-', 'Very good', 5, NULL, NULL), (447, 2020, 1, 'End term exam', 28, '1E', 'geography', 75, 'A-', 'Excellent. Keep up', 7, NULL, NULL), (448, 2020, 1, 'End term exam', 28, '1E', 'business_studies', 39, 'D', 'Can do better', 7, NULL, NULL), (449, 2020, 1, 'End term exam', 27, '1E', 'mathematics', 56, 'C+', 'Good', 5, NULL, NULL), (450, 2020, 1, 'End term exam', 33, '1E', 'geography', 66, 'B', 'Very good', 7, NULL, NULL), (451, 2020, 1, 'End term exam', 33, '1E', 'business_studies', 69, 'B', 'Very good', 7, NULL, NULL), (452, 2020, 1, 'End term exam', 36, '1E', 'geography', 64, 'B-', 'Good', 7, NULL, NULL), (453, 2020, 1, 'End term exam', 36, '1E', 'business_studies', 73, 'B+', 'Very good', 7, NULL, NULL), (454, 2020, 1, 'End term exam', 30, '1E', 'mathematics', 45, 'C-', 'Can do better', 5, NULL, NULL), (455, 2020, 1, 'End term exam', 37, '1E', 'geography', 56, 'C+', 'Good', 7, NULL, NULL), (456, 2020, 1, 'End term exam', 37, '1E', 'business_studies', 63, 'B-', 'Good', 7, NULL, NULL), (457, 2020, 1, 'End term exam', 26, '1E', 'mathematics', 80, 'A', 'Excellent. Keep up', 5, NULL, NULL), (458, 2020, 1, 'End term exam', 28, '1E', 'mathematics', 80, 'A', 'Very good', 5, NULL, NULL), (459, 2020, 1, 'End term exam', 2, '1W', 'geography', 49, 'C-', 'Can do better', 7, NULL, NULL), (460, 2020, 1, 'End term exam', 2, '1W', 'business_studies', 43, 'D+', 'Can do better', 7, NULL, NULL), (461, 2020, 1, 'End term exam', 4, '1W', 'geography', 67, 'B', 'Good', 7, NULL, NULL), (462, 2020, 1, 'End term exam', 4, '1W', 'business_studies', 71, 'B+', 'Very good', 7, NULL, NULL), (463, 2020, 1, 'End term exam', 5, '1W', 'geography', 72, 'B+', 'Very good', 7, NULL, NULL), (464, 2020, 1, 'End term exam', 5, '1W', 'business_studies', 56, 'C+', 'Good', 7, NULL, NULL), (465, 2020, 1, 'End term exam', 32, '1W', 'geography', 64, 'B-', 'Good', 7, NULL, NULL), (466, 2020, 1, 'End term exam', 32, '1W', 'business_studies', 47, 'C-', 'Can do better', 7, NULL, NULL), (467, 2020, 1, 'End term exam', 11, '1W', 'geography', 67, 'B', 'Good', 7, NULL, NULL), (468, 2020, 1, 'End term exam', 11, '1W', 'business_studies', 49, 'C-', 'Can do better', 7, NULL, NULL), (469, 2020, 1, 'End term exam', 12, '1W', 'geography', 69, 'B', 'Very good', 7, NULL, NULL), (470, 2020, 1, 'End term exam', 12, '1W', 'business_studies', 61, 'B-', 'Good', 7, NULL, NULL), (471, 2020, 1, 'End term exam', 31, '1W', 'geography', 81, 'A', 'Excellent. Keep up', 7, NULL, NULL), (472, 2020, 1, 'End term exam', 31, '1W', 'business_studies', 74, 'B+', 'Excellent. Keep up', 7, NULL, NULL), (473, 2020, 1, 'End term exam', 38, '1W', 'geography', 56, 'C+', 'Good', 7, NULL, NULL), (474, 2020, 1, 'End term exam', 38, '1W', 'business_studies', 67, 'B', 'Very good', 7, NULL, NULL), (475, 2020, 1, 'End term exam', 35, '1W', 'geography', 63, 'B-', 'Good', 7, NULL, NULL), (476, 2020, 1, 'End term exam', 35, '1W', 'business_studies', 58, 'C+', 'Good', 7, NULL, NULL), (477, 2020, 1, 'End term exam', 34, '1W', 'geography', 71, 'B+', 'Very good', 7, NULL, NULL), (478, 2020, 1, 'End term exam', 34, '1W', 'business_studies', 70, 'B+', 'Good', 7, NULL, NULL), (479, 2020, 1, 'End term exam', 39, '1W', 'geography', 48, 'C-', 'Can do better', 7, NULL, NULL), (480, 2020, 1, 'End term exam', 39, '1W', 'business_studies', 78, 'A-', 'Very good', 7, NULL, NULL), (481, 2020, 1, 'End term exam', 40, '1W', 'geography', 34, 'D-', 'Work hard', 7, NULL, NULL), (482, 2020, 1, 'End term exam', 40, '1W', 'business_studies', 48, 'C-', 'Work hard', 7, NULL, NULL), (483, 2020, 1, 'End term exam', 6, '1E', 'physics', 67, 'B', 'Very good', 9, NULL, NULL), (484, 2020, 1, 'End term exam', 8, '1E', 'physics', 56, 'C+', 'Good', 9, NULL, NULL), (485, 2020, 1, 'End term exam', 9, '1E', 'physics', 45, 'C-', 'Can do better', 9, NULL, NULL), (486, 2020, 1, 'End term exam', 10, '1E', 'physics', 57, 'C+', 'Good', 9, NULL, NULL), (487, 2020, 1, 'End term exam', 25, '1E', 'physics', 78, 'A-', 'Excellent. Keep up', 9, NULL, NULL), (488, 2020, 1, 'End term exam', 27, '1E', 'physics', 68, 'B', 'Very good', 9, NULL, NULL), (489, 2020, 1, 'End term exam', 37, '1E', 'physics', 73, 'B+', 'Very good', 9, NULL, NULL), (490, 2020, 1, 'End term exam', 29, '1E', 'physics', 78, 'A-', 'Excellent. Keep up', 9, NULL, NULL), (491, 2020, 1, 'End term exam', 28, '1E', 'physics', 73, 'B+', 'Excellent. Keep up', 9, NULL, NULL), (492, 2020, 1, 'End term exam', 26, '1E', 'physics', 32, 'D-', 'Can do better', 9, NULL, NULL), (493, 2020, 1, 'End term exam', 33, '1E', 'physics', 59, 'C+', 'Very good', 9, NULL, NULL), (494, 2020, 1, 'End term exam', 36, '1E', 'physics', 48, 'C-', 'Very good', 9, NULL, NULL), (495, 2020, 1, 'End term exam', 2, '1W', 'physics', 78, 'A-', 'Excellent. Keep up', 9, NULL, NULL), (496, 2020, 1, 'End term exam', 4, '1W', 'physics', 59, 'C+', 'Very good', 9, NULL, NULL), (497, 2020, 1, 'End term exam', 5, '1W', 'physics', 60, 'B-', 'Very good', 9, NULL, NULL), (498, 2020, 1, 'End term exam', 11, '1W', 'physics', 49, 'C-', 'Can do better', 9, NULL, NULL), (499, 2020, 1, 'End term exam', 12, '1W', 'physics', 76, 'A-', 'Excellent. Keep up', 9, NULL, NULL), (500, 2020, 1, 'End term exam', 38, '1W', 'physics', 54, 'C', 'Good', 9, NULL, NULL), (501, 2020, 1, 'End term exam', 35, '1W', 'physics', 61, 'B-', 'Good', 9, NULL, NULL), (502, 2020, 1, 'End term exam', 34, '1W', 'physics', 67, 'B', 'Good', 9, NULL, NULL), (503, 2020, 1, 'End term exam', 31, '1W', 'physics', 76, 'A-', 'Very good', 9, NULL, NULL), (504, 2020, 1, 'End term exam', 32, '1W', 'physics', 71, 'B+', 'Excellent. Keep up', 9, NULL, NULL), (505, 2020, 1, 'End term exam', 39, '1W', 'physics', 41, 'D+', 'Can do better', 9, NULL, NULL), (506, 2020, 1, 'End term exam', 40, '1W', 'physics', 64, 'B-', 'Good', 9, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `student_marks_ranking` -- CREATE TABLE `student_marks_ranking` ( `id` bigint(20) UNSIGNED NOT NULL, `year` year(4) NOT NULL, `term` int(11) NOT NULL, `exam_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `class_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `english` int(11) DEFAULT NULL, `kiswahili` int(11) DEFAULT NULL, `mathematics` int(11) DEFAULT NULL, `chemistry` int(11) DEFAULT NULL, `physics` int(11) DEFAULT NULL, `biology` int(11) DEFAULT NULL, `business_studies` int(11) DEFAULT NULL, `geography` int(11) DEFAULT NULL, `cre` int(11) DEFAULT NULL, `agriculture` int(11) DEFAULT NULL, `history` int(11) DEFAULT NULL, `total` int(11) DEFAULT NULL, `average_marks` double(4,2) DEFAULT NULL, `average_grade` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `student_marks_ranking` -- INSERT INTO `student_marks_ranking` (`id`, `year`, `term`, `exam_type`, `class_name`, `student_id`, `english`, `kiswahili`, `mathematics`, `chemistry`, `physics`, `biology`, `business_studies`, `geography`, `cre`, `agriculture`, `history`, `total`, `average_marks`, `average_grade`, `created_at`, `updated_at`) VALUES (1, 2020, 1, 'End term', '1W', 1, 70, 78, 77, 70, 68, 76, 78, 57, 77, 69, 67, 800, 72.73, 'B+', NULL, NULL), (2, 2020, 1, 'End term', '1W', 2, 62, 56, 70, 78, 79, 74, 70, 78, 73, 58, 78, 775, 70.45, 'B+', NULL, NULL), (3, 2020, 1, 'End term', '1W', 4, 57, 77, 78, 45, 63, 59, 63, 90, 56, 81, 65, 723, 65.73, 'B', NULL, NULL), (4, 2020, 1, 'End term', '1W', 5, 73, 90, 65, 76, 45, 45, 82, 78, 68, 44, 56, 740, 67.27, 'B', NULL, NULL), (5, 2020, 1, 'End term', '1E', 6, 67, 78, 78, 56, 68, 60, 69, 59, 88, 56, 71, 750, 68.18, 'B', NULL, NULL), (6, 2020, 1, 'End term', '1E', 7, 53, 56, 55, 89, 75, 52, 67, 73, 69, 49, 79, 717, 65.18, 'B', NULL, NULL), (7, 2020, 1, 'End term', '1E', 8, 59, 83, 49, 67, 59, 67, 67, 84, 55, 78, 68, 736, 66.91, 'B', NULL, NULL), (8, 2020, 1, 'End term', '1E', 9, 48, 69, 69, 59, 83, 73, 63, 55, 60, 56, 78, 713, 64.82, 'B-', NULL, NULL), (9, 2020, 1, 'End term', '1E', 10, 78, 45, 49, 77, 83, 77, 78, 66, 63, 77, 54, 747, 67.91, 'B', NULL, NULL), (10, 2020, 1, 'End term', '1W', 11, NULL, NULL, 74, 67, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 144, 13.09, 'E', NULL, NULL), (11, 2020, 1, 'End term', '1W', 12, NULL, NULL, 52, 45, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 106, 9.64, 'E', NULL, NULL), (21, 2020, 1, 'Opener exam', '1E', 6, 55, 55, 45, 75, 77, 56, 78, 72, 88, 56, 72, 729, 66.27, 'B', NULL, NULL), (22, 2020, 1, 'Opener exam', '1E', 7, 70, 73, 78, 78, 64, 86, 80, 81, 56, 67, 68, 801, 72.82, 'B+', NULL, NULL), (23, 2020, 1, 'Opener exam', '1E', 8, 63, 56, 48, 49, 48, 71, 58, 81, 46, 60, 59, 639, 58.09, 'C+', NULL, NULL), (24, 2020, 1, 'Opener exam', '1E', 9, 48, 68, 77, 81, 61, 44, 49, 58, 67, 70, 58, 681, 61.91, 'B-', NULL, NULL), (25, 2020, 1, 'Opener exam', '1E', 10, 67, 65, 64, 60, 70, 58, 68, 49, 69, 45, 50, 665, 60.45, 'B-', NULL, NULL), (26, 2020, 1, 'Opener exam', '1W', 1, 78, 77, 77, 81, 48, 39, 69, 48, 64, 57, 72, 710, 64.55, 'B-', NULL, NULL), (27, 2020, 1, 'Opener exam', '1W', 2, 58, 59, 70, 36, 74, 68, 54, 69, 77, 66, 48, 679, 61.73, 'B-', NULL, NULL), (28, 2020, 1, 'Opener exam', '1W', 4, 38, 45, 78, 58, 58, 76, 69, 73, 57, 49, 78, 679, 61.73, 'B-', NULL, NULL), (29, 2020, 1, 'Opener exam', '1W', 5, 61, 51, 65, 45, 79, 88, 72, 45, 56, 38, 63, 663, 60.27, 'B-', NULL, NULL), (30, 2020, 1, 'Opener exam', '1W', 11, 52, 63, 74, 89, 75, 63, 60, 58, 70, 73, 65, 742, 67.45, 'B', NULL, NULL), (31, 2020, 1, 'Opener exam', '1W', 12, 71, 69, 52, 66, 49, 49, 73, 49, 49, 67, 68, 662, 60.18, 'B-', NULL, NULL), (32, 2020, 1, 'Opener exam', '3E', 20, 54, 66, 70, 64, NULL, 79, 56, 67, 72, NULL, NULL, 528, 66.00, 'B', NULL, NULL), (33, 2020, 1, 'Opener exam', '3E', 13, 67, 72, 90, 75, NULL, 67, 80, NULL, NULL, NULL, 76, 527, 75.29, 'A-', NULL, NULL), (34, 2020, 1, 'Opener exam', '3W', 23, 71, 72, 56, 88, 75, NULL, 77, NULL, NULL, NULL, 67, 506, 72.29, 'B+', NULL, NULL), (35, 2020, 1, 'Opener exam', '3W', 24, 77, 56, 78, 70, 68, NULL, NULL, 79, 89, NULL, NULL, 517, 73.86, 'B+', NULL, NULL), (36, 2020, 1, 'Mid term exam', '1E', 6, NULL, NULL, NULL, 70, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 70, 6.36, 'E', NULL, NULL), (37, 2020, 1, 'End term exam', '1E', 6, 56, 78, 78, 78, 67, 89, 67, 61, 67, NULL, 83, 724, 65.82, 'B', NULL, NULL), (38, 2020, 1, 'End term exam', '1E', 8, NULL, 56, 67, 64, 56, 45, 78, 57, 65, NULL, 67, 555, 50.45, 'C', NULL, NULL), (39, 2020, 1, 'End term exam', '1E', 9, 57, 67, 56, 46, 45, 78, 67, 58, 63, NULL, 76, 613, 55.73, 'C+', NULL, NULL), (40, 2020, 1, 'End term exam', '1E', 10, 67, 49, NULL, 80, 57, 61, 56, 77, 67, NULL, 56, 570, 51.82, 'C', NULL, NULL), (41, 2020, 1, 'End term exam', '1E', 26, 76, 46, 80, 10, 32, 72, 60, 74, 49, NULL, 67, 566, 51.45, 'C', NULL, NULL), (42, 2020, 1, 'End term exam', '1W', 4, 67, 56, 78, 67, 59, 89, 71, 67, 56, NULL, 51, 661, 60.09, 'B-', NULL, NULL), (43, 2020, 1, 'End term exam', '1W', 2, 56, 61, 45, 65, 78, 63, 43, 49, 73, NULL, 67, 600, 54.55, 'C', NULL, NULL), (44, 2020, 1, 'End term exam', '1W', 5, 73, 63, 67, 55, 60, 51, 56, 72, 64, NULL, 63, 624, 56.73, 'C+', NULL, NULL), (45, 2020, 1, 'End term exam', '1W', 11, 78, NULL, 67, 78, 49, NULL, 49, 67, 72, NULL, 89, 549, 49.91, 'C-', NULL, NULL), (46, 2020, 1, 'End term exam', '1W', 12, 67, 71, 78, 46, 76, 66, 61, 69, 90, NULL, 59, 683, 62.09, 'B-', NULL, NULL), (47, 2020, 1, 'End term exam', '1W', 32, 64, 71, 70, 68, 71, 49, 47, 64, 65, NULL, 71, 640, 58.18, 'C+', NULL, NULL), (48, 2020, 1, 'End term exam', '1W', 38, 64, 66, 61, 79, 54, 69, 67, 56, 77, NULL, 39, 632, 57.45, 'C+', NULL, NULL), (49, 2020, 1, 'End term exam', '1W', 35, 72, 48, 73, 49, 61, 48, 58, 63, 55, NULL, 78, 605, 55.00, 'C+', NULL, NULL), (50, 2020, 1, 'End term exam', '1W', 31, NULL, 63, 45, 58, 76, NULL, 74, 81, 40, NULL, 32, 469, 42.64, 'D+', NULL, NULL), (51, 2020, 1, 'End term exam', '1W', 39, 65, 39, 50, 39, 41, 65, 78, 48, NULL, NULL, NULL, 425, 38.64, 'D', NULL, NULL), (52, 2020, 1, 'End term exam', '1W', 40, 56, 59, 76, 52, 64, 30, 48, 34, 66, NULL, 70, 555, 50.45, 'C', NULL, NULL), (53, 2020, 1, 'End term exam', '1E', 25, 67, 74, 78, NULL, 78, 55, 69, 67, NULL, NULL, NULL, 488, 44.36, 'D+', NULL, NULL), (54, 2020, 1, 'End term exam', '1E', 28, 71, 58, 80, NULL, 73, 65, 39, 75, 78, NULL, 89, 628, 57.09, 'C+', NULL, NULL), (55, 2020, 1, 'End term exam', '1E', 37, 72, 66, NULL, NULL, 73, 48, 63, 56, 56, NULL, 82, 516, 46.91, 'C-', NULL, NULL), (56, 2020, 1, 'End term exam', '1E', 30, 56, 51, 45, NULL, NULL, 49, 58, 56, 48, NULL, 65, 428, 38.91, 'D', NULL, NULL), (57, 2020, 1, 'End term exam', '1E', 29, 67, 71, NULL, NULL, 78, 67, 67, 62, 57, NULL, 74, 543, 49.36, 'C-', NULL, NULL), (58, 2020, 1, 'End term exam', '1E', 27, 66, 79, 56, NULL, 68, 51, 74, 49, 71, NULL, 83, 597, 54.27, 'C', NULL, NULL), (59, 2020, 1, 'End term exam', '1E', 33, 56, 55, NULL, NULL, 59, 43, 69, 66, 77, NULL, 61, 486, 44.18, 'D+', NULL, NULL), (60, 2020, 1, 'End term exam', '1E', 36, 43, 49, NULL, NULL, 48, 61, 73, 64, 46, NULL, 78, 462, 42.00, 'D+', NULL, NULL), (61, 2020, 1, 'End term exam', '1W', 34, 76, 60, NULL, NULL, 67, 77, 70, 71, 78, NULL, 63, 562, 51.09, 'C', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `student_parent` -- CREATE TABLE `student_parent` ( `id` bigint(20) UNSIGNED NOT NULL, `student_id` bigint(20) UNSIGNED NOT NULL, `parent_id` bigint(20) UNSIGNED NOT NULL, `relationship` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `student_parent` -- INSERT INTO `student_parent` (`id`, `student_id`, `parent_id`, `relationship`, `created_at`, `updated_at`) VALUES (1, 1, 1, NULL, NULL, NULL), (2, 1, 2, NULL, NULL, NULL), (3, 2, 3, 'Father', NULL, NULL), (4, 2, 4, 'Mother', NULL, NULL), (5, 3, 5, NULL, NULL, NULL), (6, 4, 6, 'Father', NULL, NULL), (7, 4, 7, 'Mother', NULL, NULL), (8, 5, 8, 'Mother', NULL, NULL), (9, 6, 9, 'Father', NULL, NULL), (10, 6, 10, 'Mother', NULL, NULL), (11, 7, 11, 'Mother', NULL, NULL), (12, 7, 12, 'Father', NULL, NULL), (13, 8, 13, 'Father', NULL, NULL), (14, 8, 14, 'Mother', NULL, NULL), (15, 9, 15, 'Father', NULL, NULL), (16, 9, 16, 'Mother', NULL, NULL), (17, 10, 17, 'Mother', NULL, NULL), (18, 11, 18, 'Guardian', NULL, NULL), (19, 12, 19, 'Father', NULL, NULL), (20, 13, 20, NULL, NULL, NULL), (21, 13, 21, NULL, NULL, NULL), (22, 15, 22, NULL, NULL, NULL), (23, 17, 23, NULL, NULL, NULL), (24, 19, 24, NULL, NULL, NULL), (25, 20, 25, NULL, NULL, NULL), (26, 20, 26, NULL, NULL, NULL), (27, 21, 27, NULL, NULL, NULL), (28, 21, 28, NULL, NULL, NULL), (29, 21, 29, NULL, NULL, NULL), (30, 20, 30, 'Father', NULL, NULL), (31, 5, 30, 'Guardian', NULL, NULL), (32, 26, 18, 'Guardian', NULL, NULL), (33, 24, 20, 'Guardian', NULL, NULL), (35, 9, 13, 'Guardian', NULL, NULL), (36, 53, 37, 'Father', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `subjects` -- CREATE TABLE `subjects` ( `id` bigint(20) UNSIGNED NOT NULL, `subject_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `teachers` -- CREATE TABLE `teachers` ( `id` bigint(20) UNSIGNED NOT NULL, `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `middle_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `tsc_no` int(11) NOT NULL, `id_no` int(11) NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `gender` char(191) COLLATE utf8mb4_unicode_ci NOT NULL, `subject_1` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `subject_2` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `religion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `nationality` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `date_hired` date NOT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active', `profile_pic` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, `date_left` date DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `teachers` -- INSERT INTO `teachers` (`id`, `first_name`, `middle_name`, `last_name`, `email`, `phone_no`, `tsc_no`, `id_no`, `password`, `gender`, `subject_1`, `subject_2`, `religion`, `nationality`, `date_hired`, `status`, `profile_pic`, `date_left`, `created_at`, `updated_at`) VALUES (1, 'Brentone', 'Alistar', 'Okeyo', '[email protected]', '0740096095', 6773275, 33064829, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'mathematics', 'chemistry', 'Christian', 'Kenyan', '2020-02-28', 'active', '1_1615182587.jpg', NULL, '2020-02-28 04:26:36', '2020-02-28 04:26:36'), (2, 'Shantel', 'Kamanthe', 'Matheka', '[email protected]', '0718300201', 6732483, 12345678, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'biology', 'agriculture', 'Islam', 'Kenyan', '2020-02-28', 'active', '2_1603456271.jpeg', NULL, '2020-02-28 04:27:22', '2020-02-28 04:27:22'), (3, 'Justus', 'Omondi', 'Otieno', '[email protected]', '0739847233', 7836463, 73475643, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'cre', 'history', 'Christian', 'Kenyan', '2020-02-28', 'active', '3_1603577030.jpeg', NULL, '2020-02-28 04:28:23', '2020-02-28 04:28:23'), (4, 'Eve', 'Wambui', 'Mangi', '[email protected]', '0798973724', 6327467, 23934863, '$2y$10$ZBfQbslPEXoqvYPY/9fg0ODKSVbsydTnERCvc5gBi0VKAjFN2GHfy', 'Male', 'english', 'literature', 'Christian', 'Kenyan', '2020-02-28', 'active', NULL, NULL, '2020-02-28 04:29:20', '2020-02-28 04:29:20'), (5, 'Brian', 'Musyoki', 'Kimatu', '[email protected]', '0734873744', 2683763, 33894673, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'mathematics', 'chemistry', 'Christian', 'Kenyan', '2020-02-29', 'active', '5_1603456491.jpeg', NULL, '2020-02-29 02:53:09', '2020-02-29 02:53:09'), (6, 'Eve', 'Mbinya', 'Peter', '[email protected]', '0718422812', 6873473, 23483332, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Female', 'biology', 'agriculture', 'Christian', 'Kenyan', '2020-02-29', 'active', NULL, NULL, '2020-02-29 06:34:32', '2020-02-29 06:34:32'), (7, 'McDonald', 'Kimani', 'Mwangi', '[email protected]', '0739843420', 9837433, 36483423, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'business_studies', 'geography', 'Christian', 'Kenyan', '2020-03-05', 'active', NULL, NULL, '2020-03-05 19:52:57', '2020-03-05 19:52:57'), (8, 'Precious', 'Mbinya', 'Kimole', '[email protected]', '0738423356', 8359532, 34942795, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Female', 'kiswahili', 'cre', 'Christian', 'Kenyan', '2020-03-05', 'active', NULL, NULL, '2020-03-05 19:54:30', '2020-03-05 19:54:30'), (9, 'Justus', 'Muoka', 'Mawili', '[email protected]', '0740483323', 7484294, 38442943, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'physics', 'mathematics', 'Christian', 'Kenyan', '2020-03-05', 'active', NULL, NULL, '2020-03-05 19:56:02', '2020-03-05 19:56:02'), (11, 'DAVID', 'MALAMU', 'Mikai', '[email protected]', '0739283792', 9089899, 67676767, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'chemistry', 'physics', 'Other', 'Tanzania', '2020-03-10', 'active', NULL, NULL, '2020-03-10 19:58:54', '2020-03-10 19:58:54'), (12, 'Pius', 'Mutonde', 'Kinyanjui', '[email protected]', '0749384282', 7646783, 83882932, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'physics', 'chemistry', 'Christian', 'Kenyan', '2020-03-24', 'active', NULL, NULL, '2020-03-24 05:43:24', '2020-03-24 05:43:24'), (13, 'judy', 'mwongeli', 'mutangili', '[email protected]', '0793429822', 9876587, 76542345, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'mathematics', 'chemistry', 'Christian', 'Kenyan', '2020-10-22', 'active', NULL, NULL, '2020-10-22 09:16:33', '2020-10-22 09:16:33'), (14, 'Jonas', 'Kimtai', 'Kipchoge', '[email protected]', '0701765678', 6732431, 70987651, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'mathematics', 'chemistry', 'Other', 'Somalian', '2020-10-26', 'active', NULL, NULL, '2020-10-26 15:18:18', '2020-10-26 15:18:18'), (15, 'Kims', 'Wambua', 'Julius', '[email protected]', '0798743212', 5678221, 98765322, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'cre', 'history', 'Christian', 'Kenyan', '2020-10-26', 'archived', NULL, '2020-11-12', '2020-10-26 15:33:43', '2020-10-26 15:33:43'), (16, 'Florida', 'Mutheu', 'John', '[email protected]', '0738372290', 5453334, 54433266, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Female', 'mathematics', 'chemistry', 'Christian', 'Kenyan', '2020-12-17', 'active', NULL, NULL, '2020-12-17 01:50:48', '2020-12-17 01:50:48'), (17, 'Florida', 'Mutheu', 'Kiko', '[email protected]', '0718422812', 5678882, 76543458, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'mathematics', 'chemistry', 'Christian', 'Kenyan', '2020-12-17', 'active', NULL, NULL, '2020-12-17 07:46:44', '2020-12-17 07:46:44'), (18, 'Victor', 'Kiplabet', 'Bett', '[email protected]', '0793837321', 7494824, 64736262, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'kiswahili', 'history', 'Christian', 'Kenyan', '2020-12-17', 'active', NULL, NULL, '2020-12-17 07:58:50', '2020-12-17 07:58:50'), (19, 'Brentone', 'Noor', 'Alistar', '[email protected]', '0740096095', 2345678, 35886769, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'physics', 'mathematics', 'Christian', 'Kenyan', '2021-03-08', 'active', NULL, NULL, '2021-03-08 13:51:07', '2021-03-08 13:51:07'), (20, 'Merol', 'Akinyi', 'Okotto', '[email protected]', '0722913478', 1232123, 12312314, '$2y$10$ouKoY0ZhBkZkz56alpoc8OkWvWUPEzbgjtqYuV73LO.Q0/QYCZO0y', 'Male', 'business_studies', 'geography', 'Christian', 'Kenyan', '2021-03-08', 'active', NULL, NULL, '2021-03-08 22:30:29', '2021-03-08 22:30:29'); -- -------------------------------------------------------- -- -- Table structure for table `teacher_classes` -- CREATE TABLE `teacher_classes` ( `id` bigint(20) UNSIGNED NOT NULL, `teacher_id` bigint(20) UNSIGNED NOT NULL, `class_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `subject1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `subject2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `year` year(4) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `teacher_classes` -- INSERT INTO `teacher_classes` (`id`, `teacher_id`, `class_name`, `subject1`, `subject2`, `year`, `created_at`, `updated_at`) VALUES (5, 2, '1E', 'biology', NULL, 2020, '2020-02-29 06:47:17', '2020-02-29 06:47:17'), (8, 5, '4E', 'mathematics', NULL, 2020, '2020-02-29 06:59:49', '2020-02-29 06:59:49'), (18, 1, '1W', 'chemistry', 'mathematics', 2020, '2020-02-29 19:14:21', '2020-02-29 19:14:21'), (21, 5, '1E', 'mathematics', NULL, 2020, '2020-03-05 19:57:09', '2020-03-05 19:57:09'), (22, 1, '1E', 'chemistry', NULL, 2020, '2020-03-05 19:57:53', '2020-03-05 19:57:53'), (23, 3, '1E', 'cre', 'history', 2020, '2020-03-05 19:58:25', '2020-03-05 19:58:25'), (24, 3, '1W', 'cre', 'history', 2020, '2020-03-05 19:58:34', '2020-03-05 19:58:34'), (25, 6, '1W', 'agriculture', NULL, 2020, '2020-03-05 19:59:18', '2020-03-05 19:59:18'), (26, 6, '1E', 'agriculture', NULL, 2020, '2020-03-05 19:59:28', '2020-03-05 19:59:28'), (27, 8, '1E', 'kiswahili', NULL, 2020, '2020-03-05 19:59:46', '2020-03-05 19:59:46'), (28, 8, '1W', 'kiswahili', NULL, 2020, '2020-03-05 19:59:55', '2020-03-05 19:59:55'), (29, 9, '1E', 'physics', NULL, 2020, '2020-03-05 20:00:21', '2020-03-05 20:00:21'), (30, 9, '1W', 'physics', NULL, 2020, '2020-03-05 20:00:29', '2020-03-05 20:00:29'), (31, 7, '1E', 'geography', 'business_studies', 2020, '2020-03-05 20:01:04', '2020-03-05 20:01:04'), (32, 7, '1W', 'geography', 'business_studies', 2020, '2020-03-05 20:01:14', '2020-03-05 20:01:14'), (33, 4, '1E', 'english', NULL, 2020, '2020-03-05 20:02:28', '2020-03-05 20:02:28'), (34, 4, '1W', 'english', NULL, 2020, '2020-03-05 20:02:40', '2020-03-05 20:02:40'), (35, 2, '1W', 'biology', NULL, 2020, '2020-03-05 20:30:03', '2020-03-05 20:30:03'), (36, 8, '3W', 'kiswahili', NULL, 2020, '2020-10-20 07:32:39', '2020-10-20 07:32:39'), (37, 2, '3E', 'biology', NULL, 2020, '2020-11-14 07:44:04', '2020-11-14 07:44:04'), (38, 3, '3E', 'cre', 'history', 2020, '2020-11-15 07:14:55', '2020-11-15 07:14:55'), (39, 3, '3W', 'history', 'cre', 2020, '2020-11-15 07:15:35', '2020-11-15 07:15:35'), (40, 5, '3E', 'mathematics', 'chemistry', 2020, '2020-11-15 07:16:41', '2020-11-15 07:16:41'), (41, 5, '3W', 'mathematics', 'chemistry', 2020, '2020-11-15 07:16:58', '2020-11-15 07:16:58'), (42, 7, '3E', 'business_studies', 'geography', 2020, '2020-11-15 07:32:20', '2020-11-15 07:32:20'), (43, 7, '3W', 'business_studies', 'geography', 2020, '2020-11-15 07:32:33', '2020-11-15 07:32:33'), (44, 4, '3W', 'english', NULL, 2020, '2020-11-15 07:36:23', '2020-11-15 07:36:23'), (45, 4, '3E', 'english', NULL, 2020, '2020-11-15 07:36:36', '2020-11-15 07:36:36'), (46, 2, '3W', 'biology', NULL, 2020, '2020-11-15 07:39:40', '2020-11-15 07:39:40'), (47, 9, '3W', 'physics', NULL, 2020, '2020-11-15 07:41:38', '2020-11-15 07:41:38'), (48, 8, '3E', 'kiswahili', NULL, 2020, '2020-11-15 07:43:57', '2020-11-15 07:43:57'), (49, 8, '4E', 'kiswahili', NULL, 2020, '2020-11-15 11:58:20', '2020-11-15 11:58:20'); -- -------------------------------------------------------- -- -- Table structure for table `term_sessions` -- CREATE TABLE `term_sessions` ( `term_id` bigint(20) UNSIGNED NOT NULL, `year` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `term` int(11) NOT NULL, `term_start_date` date NOT NULL, `term_end_date` date NOT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `term_sessions` -- INSERT INTO `term_sessions` (`term_id`, `year`, `term`, `term_start_date`, `term_end_date`, `status`, `created_at`, `updated_at`) VALUES (1, '2020', 1, '2020-10-12', '2021-01-08', 'past', NULL, NULL), (2, '2021', 2, '2021-01-08', '2021-04-02', 'active', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `user_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `password`, `user_type`, `created_at`, `updated_at`) VALUES (2, 'admin', '[email protected]', '$2y$10$XkZacWD7hVqEGkV.PMpM9eAIagJf6YVpdj//PfxhZryGWjihNIu9m', 'admin', '2020-10-24 13:34:54', '2020-10-24 13:34:54'); -- -- Indexes for dumped tables -- -- -- Indexes for table `addresses` -- ALTER TABLE `addresses` ADD PRIMARY KEY (`id`); -- -- Indexes for table `classes` -- ALTER TABLE `classes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `disciplinary_cases` -- ALTER TABLE `disciplinary_cases` ADD PRIMARY KEY (`case_id`), ADD KEY `disciplinary_cases_student_id_foreign` (`student_id`), ADD KEY `disciplinary_cases_teacher_id_foreign` (`teacher_id`), ADD KEY `disciplinary_cases_action_taken_by_foreign` (`action_taken_by`); -- -- Indexes for table `dormitories` -- ALTER TABLE `dormitories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `dormitories_rooms` -- ALTER TABLE `dormitories_rooms` ADD PRIMARY KEY (`id`), ADD KEY `dormitories_rooms_dorm_id_foreign` (`dorm_id`); -- -- Indexes for table `exam_sessions` -- ALTER TABLE `exam_sessions` ADD PRIMARY KEY (`exam_id`), ADD KEY `exam_sessions_term_id_foreign` (`term_id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `fee_balances` -- ALTER TABLE `fee_balances` ADD PRIMARY KEY (`id`), ADD KEY `fee_balances_student_id_foreign` (`student_id`); -- -- Indexes for table `fee_structures` -- ALTER TABLE `fee_structures` ADD PRIMARY KEY (`id`); -- -- Indexes for table `fee_transactions` -- ALTER TABLE `fee_transactions` ADD PRIMARY KEY (`id`), ADD KEY `fee_transactions_student_id_foreign` (`student_id`), ADD KEY `fee_transactions_emp_id_foreign` (`emp_id`); -- -- Indexes for table `mailtostudentmessages` -- ALTER TABLE `mailtostudentmessages` ADD PRIMARY KEY (`message_id`), ADD KEY `mailtostudentmessages_student_id_foreign` (`student_id`), ADD KEY `mailtostudentmessages_from_teacher_id_foreign` (`from_teacher_id`), ADD KEY `mailtostudentmessages_to_parent_id_foreign` (`to_parent_id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mpesa_transactions` -- ALTER TABLE `mpesa_transactions` ADD PRIMARY KEY (`transaction_id`), ADD KEY `mpesa_transactions_student_id_foreign` (`student_id`); -- -- Indexes for table `non_teaching_staff` -- ALTER TABLE `non_teaching_staff` ADD PRIMARY KEY (`id`); -- -- Indexes for table `out_of_sessions` -- ALTER TABLE `out_of_sessions` ADD PRIMARY KEY (`id`), ADD KEY `out_of_sessions_student_id_foreign` (`student_id`); -- -- Indexes for table `parents` -- ALTER TABLE `parents` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD PRIMARY KEY (`id`); -- -- Indexes for table `roles_and_responsibilities` -- ALTER TABLE `roles_and_responsibilities` ADD PRIMARY KEY (`id`), ADD KEY `roles_and_responsibilities_teacher_id_foreign` (`teacher_id`); -- -- Indexes for table `school_details` -- ALTER TABLE `school_details` ADD PRIMARY KEY (`id`); -- -- Indexes for table `students` -- ALTER TABLE `students` ADD PRIMARY KEY (`id`); -- -- Indexes for table `student_address` -- ALTER TABLE `student_address` ADD PRIMARY KEY (`id`), ADD KEY `student_address_student_id_foreign` (`student_id`), ADD KEY `student_address_address_id_foreign` (`address_id`); -- -- Indexes for table `student_classes` -- ALTER TABLE `student_classes` ADD PRIMARY KEY (`class_id`), ADD KEY `student_classes_student_id_foreign` (`student_id`); -- -- Indexes for table `student_dorm_rooms` -- ALTER TABLE `student_dorm_rooms` ADD PRIMARY KEY (`id`), ADD KEY `student_dorm_rooms_student_id_foreign` (`student_id`), ADD KEY `student_dorm_rooms_room_id_foreign` (`room_id`); -- -- Indexes for table `student_marks` -- ALTER TABLE `student_marks` ADD PRIMARY KEY (`id`), ADD KEY `student_marks_student_id_foreign` (`student_id`), ADD KEY `student_marks_teacher_id_foreign` (`teacher_id`); -- -- Indexes for table `student_marks_ranking` -- ALTER TABLE `student_marks_ranking` ADD PRIMARY KEY (`id`), ADD KEY `student_marks_ranking_student_id_foreign` (`student_id`); -- -- Indexes for table `student_parent` -- ALTER TABLE `student_parent` ADD PRIMARY KEY (`id`), ADD KEY `student_parent_student_id_foreign` (`student_id`), ADD KEY `student_parent_parent_id_foreign` (`parent_id`); -- -- Indexes for table `subjects` -- ALTER TABLE `subjects` ADD PRIMARY KEY (`id`); -- -- Indexes for table `teachers` -- ALTER TABLE `teachers` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `teachers_email_unique` (`email`), ADD UNIQUE KEY `teachers_tsc_no_unique` (`tsc_no`); -- -- Indexes for table `teacher_classes` -- ALTER TABLE `teacher_classes` ADD PRIMARY KEY (`id`), ADD KEY `teacher_classes_teacher_id_foreign` (`teacher_id`); -- -- Indexes for table `term_sessions` -- ALTER TABLE `term_sessions` ADD PRIMARY KEY (`term_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `addresses` -- ALTER TABLE `addresses` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; -- -- AUTO_INCREMENT for table `classes` -- ALTER TABLE `classes` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `disciplinary_cases` -- ALTER TABLE `disciplinary_cases` MODIFY `case_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `dormitories` -- ALTER TABLE `dormitories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `dormitories_rooms` -- ALTER TABLE `dormitories_rooms` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `exam_sessions` -- ALTER TABLE `exam_sessions` MODIFY `exam_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `fee_balances` -- ALTER TABLE `fee_balances` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52; -- -- AUTO_INCREMENT for table `fee_structures` -- ALTER TABLE `fee_structures` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `fee_transactions` -- ALTER TABLE `fee_transactions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45; -- -- AUTO_INCREMENT for table `mailtostudentmessages` -- ALTER TABLE `mailtostudentmessages` MODIFY `message_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; -- -- AUTO_INCREMENT for table `mpesa_transactions` -- ALTER TABLE `mpesa_transactions` MODIFY `transaction_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `non_teaching_staff` -- ALTER TABLE `non_teaching_staff` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `out_of_sessions` -- ALTER TABLE `out_of_sessions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `parents` -- ALTER TABLE `parents` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38; -- -- AUTO_INCREMENT for table `password_resets` -- ALTER TABLE `password_resets` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `roles_and_responsibilities` -- ALTER TABLE `roles_and_responsibilities` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `school_details` -- ALTER TABLE `school_details` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `students` -- ALTER TABLE `students` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54; -- -- AUTO_INCREMENT for table `student_address` -- ALTER TABLE `student_address` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; -- -- AUTO_INCREMENT for table `student_classes` -- ALTER TABLE `student_classes` MODIFY `class_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59; -- -- AUTO_INCREMENT for table `student_dorm_rooms` -- ALTER TABLE `student_dorm_rooms` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; -- -- AUTO_INCREMENT for table `student_marks` -- ALTER TABLE `student_marks` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=507; -- -- AUTO_INCREMENT for table `student_marks_ranking` -- ALTER TABLE `student_marks_ranking` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62; -- -- AUTO_INCREMENT for table `student_parent` -- ALTER TABLE `student_parent` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37; -- -- AUTO_INCREMENT for table `subjects` -- ALTER TABLE `subjects` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `teachers` -- ALTER TABLE `teachers` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `teacher_classes` -- ALTER TABLE `teacher_classes` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50; -- -- AUTO_INCREMENT for table `term_sessions` -- ALTER TABLE `term_sessions` MODIFY `term_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Constraints for dumped tables -- -- -- Constraints for table `disciplinary_cases` -- ALTER TABLE `disciplinary_cases` ADD CONSTRAINT `disciplinary_cases_action_taken_by_foreign` FOREIGN KEY (`action_taken_by`) REFERENCES `teachers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `disciplinary_cases_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `disciplinary_cases_teacher_id_foreign` FOREIGN KEY (`teacher_id`) REFERENCES `teachers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `dormitories_rooms` -- ALTER TABLE `dormitories_rooms` ADD CONSTRAINT `dormitories_rooms_dorm_id_foreign` FOREIGN KEY (`dorm_id`) REFERENCES `dormitories` (`id`); -- -- Constraints for table `exam_sessions` -- ALTER TABLE `exam_sessions` ADD CONSTRAINT `exam_sessions_term_id_foreign` FOREIGN KEY (`term_id`) REFERENCES `term_sessions` (`term_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `fee_balances` -- ALTER TABLE `fee_balances` ADD CONSTRAINT `fee_balances_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `fee_transactions` -- ALTER TABLE `fee_transactions` ADD CONSTRAINT `fee_transactions_emp_id_foreign` FOREIGN KEY (`emp_id`) REFERENCES `non_teaching_staff` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `fee_transactions_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `mailtostudentmessages` -- ALTER TABLE `mailtostudentmessages` ADD CONSTRAINT `mailtostudentmessages_from_teacher_id_foreign` FOREIGN KEY (`from_teacher_id`) REFERENCES `teachers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `mailtostudentmessages_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `mailtostudentmessages_to_parent_id_foreign` FOREIGN KEY (`to_parent_id`) REFERENCES `parents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `mpesa_transactions` -- ALTER TABLE `mpesa_transactions` ADD CONSTRAINT `mpesa_transactions_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `out_of_sessions` -- ALTER TABLE `out_of_sessions` ADD CONSTRAINT `out_of_sessions_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `roles_and_responsibilities` -- ALTER TABLE `roles_and_responsibilities` ADD CONSTRAINT `roles_and_responsibilities_teacher_id_foreign` FOREIGN KEY (`teacher_id`) REFERENCES `teachers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `student_address` -- ALTER TABLE `student_address` ADD CONSTRAINT `student_address_address_id_foreign` FOREIGN KEY (`address_id`) REFERENCES `addresses` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `student_address_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `student_classes` -- ALTER TABLE `student_classes` ADD CONSTRAINT `student_classes_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`); -- -- Constraints for table `student_dorm_rooms` -- ALTER TABLE `student_dorm_rooms` ADD CONSTRAINT `student_dorm_rooms_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `dormitories_rooms` (`id`), ADD CONSTRAINT `student_dorm_rooms_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`); -- -- Constraints for table `student_marks` -- ALTER TABLE `student_marks` ADD CONSTRAINT `student_marks_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `student_marks_teacher_id_foreign` FOREIGN KEY (`teacher_id`) REFERENCES `teachers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `student_marks_ranking` -- ALTER TABLE `student_marks_ranking` ADD CONSTRAINT `student_marks_ranking_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `student_parent` -- ALTER TABLE `student_parent` ADD CONSTRAINT `student_parent_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `parents` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `student_parent_student_id_foreign` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `teacher_classes` -- ALTER TABLE `teacher_classes` ADD CONSTRAINT `teacher_classes_teacher_id_foreign` FOREIGN KEY (`teacher_id`) REFERENCES `teachers` (`id`) 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 */;
63.747112
319
0.622264
14247be8b2254a65b7f61989e79e122622f7d71c
490
ts
TypeScript
src/ops/gates/FlushGate.ts
tearsofphoenix/Q-js
b930c6f1c6e379a218513ceffa18f63bcadd077d
[ "Apache-2.0" ]
1
2018-08-14T14:30:29.000Z
2018-08-14T14:30:29.000Z
src/ops/gates/FlushGate.ts
tearsofphoenix/Q-js
b930c6f1c6e379a218513ceffa18f63bcadd077d
[ "Apache-2.0" ]
null
null
null
src/ops/gates/FlushGate.ts
tearsofphoenix/Q-js
b930c6f1c6e379a218513ceffa18f63bcadd077d
[ "Apache-2.0" ]
null
null
null
import { FastForwardingGate } from '../basics'; /** * @class FlushGate * @desc Flush gate (denotes the end of the circuit). Note: All compiler engines (cengines) which cache/buffer gates are obligated to flush and send all gates to the next compiler engine (followed by the flush command). Note: This gate is sent when calling @example eng.flush() on the MainEngine `eng`. */ export class FlushGate extends FastForwardingGate { toString() { return '' } }
17.5
74
0.693878
bbbc1f8a707261cf968ebc03626e8339031e154d
929
sql
SQL
sql/Tables/ResultsGSSSA.sql
JoelBondurant/RandomCodeSamples
1caed5d1dc2768576dddf915b4b01bf3e9b491ab
[ "Apache-2.0" ]
1
2017-04-11T18:05:06.000Z
2017-04-11T18:05:06.000Z
sql/Tables/ResultsGSSSA.sql
JoelBondurant/RandomCodeSamples
1caed5d1dc2768576dddf915b4b01bf3e9b491ab
[ "Apache-2.0" ]
null
null
null
sql/Tables/ResultsGSSSA.sql
JoelBondurant/RandomCodeSamples
1caed5d1dc2768576dddf915b4b01bf3e9b491ab
[ "Apache-2.0" ]
null
null
null
-- drop table ResultsGSSSA; create table ResultsGSSSA ( ID INT IDENTITY(1, 1), PROCESSBATCH_ID NUMERIC(19, 0) NOT NULL, PRODUCT_ID NUMERIC(19, 0) NOT NULL, STEP_ID NUMERIC(19, 0) NOT NULL, SAMPLINGMETHOD_ID NUMERIC(19, 0) NOT NULL, f_AcLotSamp FLOAT, f_AcWafSamp FLOAT, f_AcWafLotSamp FLOAT, PRIMARY KEY CLUSTERED (ID) ); ALTER TABLE ResultsGSSSA WITH CHECK ADD CONSTRAINT FK_RESULTSGSSSA_PRODUCT_ID FOREIGN KEY (PRODUCT_ID) REFERENCES PRODUCT (ID); ALTER TABLE ResultsGSSSA WITH CHECK ADD CONSTRAINT FK_RESULTSGSSSA_STEP_ID FOREIGN KEY (STEP_ID) REFERENCES STEP (ID); ALTER TABLE ResultsGSSSA WITH CHECK ADD CONSTRAINT FK_RESULTSGSSSA_SAMPLINGMETHOD_ID FOREIGN KEY (SAMPLINGMETHOD_ID) REFERENCES SAMPLINGMETHOD (ID); ALTER TABLE ResultsGSSSA WITH CHECK ADD CONSTRAINT FK_RESULTSGSSSA_PROCESSBATCH_ID FOREIGN KEY (PROCESSBATCH_ID) REFERENCES PROCESSBATCH (ID); -- select * from im..ResultsGSSSA
42.227273
149
0.791173
51758bc596155fe39d27a294beb9f8b7d9260ddc
574
sql
SQL
database_objects/tables/dbo_sql_health_check.sql
TheRockStarDBA/SQLServerHealthChecker
bbf8623a60bdbafcb2cbd9c97919e59211673a75
[ "Apache-2.0" ]
1
2021-05-14T13:40:09.000Z
2021-05-14T13:40:09.000Z
database_objects/tables/dbo_sql_health_check.sql
TheRockStarDBA/SQLServerHealthChecker
bbf8623a60bdbafcb2cbd9c97919e59211673a75
[ "Apache-2.0" ]
null
null
null
database_objects/tables/dbo_sql_health_check.sql
TheRockStarDBA/SQLServerHealthChecker
bbf8623a60bdbafcb2cbd9c97919e59211673a75
[ "Apache-2.0" ]
null
null
null
create table dbo.sql_health_check ( id bigint identity(1,1) NOT NULL, insertDate datetime2(7) CONSTRAINT DF_insertDate Default (getdate()), applicationServerName varchar(50) NULL, -- primary key NONCLUSTERED index is created to avoid last key insert issue. -- This is an append only table but N number of application servers will simultaneously write to it ! PRIMARY KEY NONCLUSTERED ( id ASC ) ON [PRIMARY] GO -- change here [application_user] as the actual user that you have GRANT SELECT on dbo.sql_health_check to [application_user]
44.153846
104
0.743902
5eeff3b6b08869931ea91656d3aa35083e54d50b
1,750
php
PHP
src/HydratingArrayPaginator.php
damor4321/expenseslib
bd4a81f1fe426dc3e3404f1db537feb341149c9c
[ "BSD-3-Clause" ]
null
null
null
src/HydratingArrayPaginator.php
damor4321/expenseslib
bd4a81f1fe426dc3e3404f1db537feb341149c9c
[ "BSD-3-Clause" ]
null
null
null
src/HydratingArrayPaginator.php
damor4321/expenseslib
bd4a81f1fe426dc3e3404f1db537feb341149c9c
[ "BSD-3-Clause" ]
null
null
null
<?php /** * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://www.zend.com) */ namespace ExpensesLib; use stdClass; use Zend\Paginator\Adapter\ArrayAdapter as ArrayPaginator; use Zend\Hydrator\HydratorInterface; /** * Specialized Zend\Paginator\Adapter\ArrayAdapter instance for returning * hydrated entities. */ class HydratingArrayPaginator extends ArrayPaginator { /** * @var object */ protected $entityPrototype; /** * @var HydratorInterface */ protected $hydrator; /** * @param array $array * @param null|HydratorInterface $hydrator * @param null|mixed $entityPrototype A prototype entity to use with the hydrator */ public function __construct(array $array = array(), HydratorInterface $hydrator = null, $entityPrototype = null) { parent::__construct($array); $this->hydrator = $hydrator; $this->entityPrototype = $entityPrototype ?: new stdClass; } /** * Override getItems() * * Overrides getItems() to return a collection of entities based on the * provided Hydrator and entity prototype, if available. * * @param int $offset * @param int $itemCountPerPage * @return array */ public function getItems($offset, $itemCountPerPage) { $set = parent::getItems($offset, $itemCountPerPage); if (! $this->hydrator instanceof HydratorInterface) { return $set; } $collection = array(); foreach ($set as $item) { $collection[] = $this->hydrator->hydrate($item, clone $this->entityPrototype); } return $collection; } }
26.923077
116
0.638857
2b36ffc29479a7588c9474744effe64fc1aec740
122
swift
Swift
Tests/LinuxMain.swift
iOSDigital/STTLibrary
5b3d952db64b45bd4c4fb247043851edcc9014f8
[ "MIT" ]
1
2021-04-12T09:32:48.000Z
2021-04-12T09:32:48.000Z
Tests/LinuxMain.swift
iOSDigital/SSTLibrary
5118897fc7a08e7bf0c2add6132c6292c9a01cfd
[ "MIT" ]
null
null
null
Tests/LinuxMain.swift
iOSDigital/SSTLibrary
5118897fc7a08e7bf0c2add6132c6292c9a01cfd
[ "MIT" ]
1
2021-11-04T22:29:16.000Z
2021-11-04T22:29:16.000Z
import XCTest import STTLibraryTests var tests = [XCTestCaseEntry]() tests += STTLibraryTests.allTests() XCTMain(tests)
15.25
35
0.786885
bb4abc8a8084626bad2ae8125fd50affed2327e5
4,435
cs
C#
Scripts/Autopilot/Aerodynamics/RotorPicker.cs
zrisher/ARMS
bc651e6d5be463fd5763157f464ab7810722ea0e
[ "CC0-1.0" ]
17
2015-03-13T04:39:52.000Z
2016-06-24T20:49:48.000Z
Scripts/Autopilot/Aerodynamics/RotorPicker.cs
Rynchodon/Autopilot
bc651e6d5be463fd5763157f464ab7810722ea0e
[ "CC0-1.0" ]
49
2015-03-13T02:51:00.000Z
2016-08-19T14:12:24.000Z
Scripts/Autopilot/Aerodynamics/RotorPicker.cs
Rynchodon/Autopilot
bc651e6d5be463fd5763157f464ab7810722ea0e
[ "CC0-1.0" ]
19
2015-03-13T07:44:40.000Z
2016-09-23T02:43:59.000Z
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sandbox.Common.ObjectBuilders; using Sandbox.Game.Entities; using Sandbox.Game.Gui; using Sandbox.Graphics.GUI; using Sandbox.ModAPI; using Sandbox.ModAPI.Interfaces.Terminal; using VRage.Game.ModAPI; using VRage.Utils; using VRageMath; namespace Rynchodon.Autopilot.Aerodynamics { class RotorPicker { public delegate void ControlRotorParams(out IEnumerable<IMyMotorStator> rotors, out float sensitivity, out float trim); public delegate void SetControlRotors(IEnumerable<IMyMotorStator> rotors, float sensitivity, float trim); private IMyCubeBlock m_block; private SetControlRotors m_onComplete; private MyTerminalControlListbox<MyCockpit> m_listbox; private List<MyGuiControlListbox.Item> m_allItems = new List<MyGuiControlListbox.Item>(); private List<MyGuiControlListbox.Item> m_selected = new List<MyGuiControlListbox.Item>(); private MyTerminalControlSlider<MyCockpit> m_sensitivitySlider; private float m_sensitivity = 1f; private MyTerminalControlSlider<MyCockpit> m_trimSlider; private float m_trim = 0f; private MyTerminalControlButton<MyCockpit> m_save; public RotorPicker(IMyTerminalBlock cockpit, string rotorName, ControlRotorParams rotorParams, SetControlRotors onComplete) { m_block = cockpit; m_onComplete = onComplete; IEnumerable<IMyMotorStator> selected; rotorParams(out selected, out m_sensitivity, out m_trim); m_trim = MathHelper.ToDegrees(m_trim); m_listbox = new MyTerminalControlListbox<MyCockpit>("Arms_RotorPicker", MyStringId.GetOrCompute(rotorName + " Rotors"), MyStringId.NullOrEmpty, true, 14); m_listbox.ListContent = ListContent; m_listbox.ItemSelected = ItemSelected; m_sensitivitySlider = new MyTerminalControlSlider<MyCockpit>("Arms_RotorPickerSensitivity", MyStringId.GetOrCompute("Control Sensitivity"), MyStringId.GetOrCompute("How sensitive the ship will be to input")); m_sensitivitySlider.DefaultValue = 1f; m_sensitivitySlider.Getter = b => m_sensitivity; m_sensitivitySlider.Setter = (b, value) => m_sensitivity = value; m_sensitivitySlider.SetLogLimits(0.01f, 100f); m_sensitivitySlider.Writer = (b, sb) => sb.Append(m_sensitivity); m_trimSlider = new MyTerminalControlSlider<MyCockpit>("Arms_RotorPickerTrim", MyStringId.GetOrCompute("Trim"), MyStringId.GetOrCompute("Default angle of rotors")); m_trimSlider.DefaultValue = 0f; m_trimSlider.Getter = b => m_trim; m_trimSlider.Setter = (b, value) => m_trim = value; m_trimSlider.SetLimits(-45f, 45f); m_trimSlider.Writer = (b, sb) => { sb.Append(m_trim); sb.Append('°'); }; m_save = new MyTerminalControlButton<MyCockpit>("Arms_RotorPickerSave", MyStringId.GetOrCompute("Save & Exit"), MyStringId.NullOrEmpty, SaveAndExit); CubeGridCache cache = CubeGridCache.GetFor(m_block.CubeGrid); if (cache == null) return; foreach (IMyMotorStator stator in cache.BlocksOfType(typeof(MyObjectBuilder_MotorStator))) { MyGuiControlListbox.Item item = new MyGuiControlListbox.Item(new StringBuilder(stator.DisplayNameText), userData: stator); m_allItems.Add(item); if (selected.Contains(stator)) m_selected.Add(item); } MyTerminalControls.Static.CustomControlGetter += CustomControlGetter; cockpit.RebuildControls(); } private void CustomControlGetter(IMyTerminalBlock block, List<IMyTerminalControl> controls) { if (block != m_block) return; controls.Clear(); controls.Add(m_listbox); controls.Add(m_sensitivitySlider); controls.Add(m_trimSlider); controls.Add(m_save); } private void ListContent(MyCockpit cockpit, ICollection<MyGuiControlListbox.Item> items, ICollection<MyGuiControlListbox.Item> selected) { foreach (MyGuiControlListbox.Item item in m_allItems) items.Add(item); foreach (MyGuiControlListbox.Item item in m_selected) selected.Add(item); } private void ItemSelected(MyCockpit cockpit, List<MyGuiControlListbox.Item> selected) { m_selected.Clear(); foreach (MyGuiControlListbox.Item item in selected) m_selected.Add(item); } private void SaveAndExit(MyCockpit cockpit) { MyTerminalControls.Static.CustomControlGetter -= CustomControlGetter; cockpit.RebuildControls(); m_onComplete(m_selected.Select(item => (IMyMotorStator)item.UserData), m_sensitivity, MathHelper.ToRadians(m_trim)); } } }
36.056911
211
0.772041
387db8136a3143d88a42abc1b3b6dab55b838523
785
php
PHP
layout/sub/characters.php
PokemonOT/website
ecd924e856b0df3fdb6bd18a15d6418ae33fe557
[ "MIT" ]
null
null
null
layout/sub/characters.php
PokemonOT/website
ecd924e856b0df3fdb6bd18a15d6418ae33fe557
[ "MIT" ]
null
null
null
layout/sub/characters.php
PokemonOT/website
ecd924e856b0df3fdb6bd18a15d6418ae33fe557
[ "MIT" ]
null
null
null
<h1>Characters</h1> <p>here you can search for a character, or view a list of all characters.</p> <h2>Search for character</h2> <form action="characterprofile.php" method="GET"> <input type="text" name="name"> <input type="submit" value="Search"> </form><br> <h2>Character list</h2> <?php $players = mysql_select_multi("SELECT `name`, `level`, `lastlogin` FROM `players` ORDER BY `name` ASC;"); ?> <table> <tr> <th>Name</th> <th>Level</th> <th>Last login</th> </tr> <?php foreach ($players as $player) { ?> <tr> <td><a href="characterprofile.php?name=<?php echo $player['name']; ?>"><?php echo $player['name']; ?></a></td> <td><?php echo $player['level']; ?></td> <td><?php echo getClock($player['lastlogin'], true, true); ?></td> </tr> <?php } ?> </table>
27.068966
113
0.617834
074642c4c7c0debefb21f60263fb062e48488a5a
1,719
css
CSS
style.css
BenCosso/github
38c70658c6eff8885cf5ee729a734313dc77f6af
[ "MIT" ]
null
null
null
style.css
BenCosso/github
38c70658c6eff8885cf5ee729a734313dc77f6af
[ "MIT" ]
null
null
null
style.css
BenCosso/github
38c70658c6eff8885cf5ee729a734313dc77f6af
[ "MIT" ]
null
null
null
html, body { min-height: 100vh; /*fits screen*/ text-align: center; background: linear-gradient(#c69005, red) no-repeat; } h1 { font-family: Bungee Shade, Times New Roman; background: rgba(244, 185, 66, 0.8); } h2 { font-family: Arima Madurai, Helvetica; background: rgba(244, 185, 66, 0.8); } .quote { font-family: Permanent Marker, Helvetica; font-size: 2em; padding: 1em 10em 10em 10em; background: radial-gradient(white 40%, gray); margin: 2em; border: 5px solid black; border-radius: 10px; } button { margin: 0.5em; } /*background images on Dropbox*/ .brooklyn { background-image: url("https://www.dropbox.com/s/6kgzjjlpr1d3oid/brooklyn.jpg?raw=1"); background-repeat: no-repeat; background-size: cover; } .colorado { background-image: url("https://www.dropbox.com/s/r02c372hqqo7q3p/colorado.jpg?raw=1"); background-repeat: no-repeat; background-size: cover; } .grandcanyon { background-image: url("https://www.dropbox.com/s/g7olv6qkmnjf482/grandcanyon.jpg?raw=1"); background-repeat: no-repeat; background-size: cover; } .desert { background-image: url("https://www.dropbox.com/s/161tsfmxst20tic/desert.jpg?raw=1"); background-repeat: no-repeat; background-size: cover; } .paris { background-image: url("https://www.dropbox.com/s/qfjyclnvvduo752/paris.jpg?raw=1"); background-repeat: no-repeat; background-size: cover; } .trumptower { background-image: url("https://www.dropbox.com/s/zxoya5jidy461q0/trumptower.jpg?raw=1"); background-repeat: no-repeat; background-size: cover; } .whitehouse { background-image: url("https://www.dropbox.com/s/hj989alfiy78nxd/whitehouse.jpg?raw=1"); background-repeat: no-repeat; background-size: cover; }
27.725806
91
0.713787
7f94c653900d32a7aaccf65a6b270c9caca727e4
2,441
php
PHP
app/Views/response/table/home.php
codeigniter-kr/ci4sample
5a0a4439c86ef99692b5ba99e3505cd63a7f0582
[ "MIT" ]
null
null
null
app/Views/response/table/home.php
codeigniter-kr/ci4sample
5a0a4439c86ef99692b5ba99e3505cd63a7f0582
[ "MIT" ]
null
null
null
app/Views/response/table/home.php
codeigniter-kr/ci4sample
5a0a4439c86ef99692b5ba99e3505cd63a7f0582
[ "MIT" ]
1
2021-10-21T04:33:45.000Z
2021-10-21T04:33:45.000Z
<?= $this->extend('sample/layout') ?> <?= $this->section('content') ?> <div class="page-wrapper"> <?= tabler_page_title($title) ?> <div class="page-body"> <?= tabler_card_start() ?> <p>테이블 클래스는 배열 또는 데이터베이스 결과 세트에서 HTML 테이블을 자동 생성할 수있는 메소드를 제공합니다.</p> <h2>클래스 초기화</h2> <p>Table 클래스는 서비스로 제공되지 않으며 “일반적으로” 인스턴스화해야 합니다.</p> <pre>$table = new \CodeIgniter\View\Table();</pre> <p>다음은 다차원 배열에서 테이블을 만드는 방법을 보여주는 예입니다. 배열의 첫 번째 열은 테이블 제목이 됩니다.</p> <p>`setHeading()` 메소드를 사용하면 제목을 설정할 수 있습니다.</p> <?= tabler_card_end() ?> <?= tabler_iframe_tabs([ [ 'id' => 'Example', 'title' => 'Example.php', 'href' => '/sample/home/view/Controllers/Response/Table/Example', ], [ 'id' => 'ExampleShow', 'title' => '/response/table/example', 'href' => '/response/table/example', ], [ 'id' => 'ExampleUseParamShow', 'title' => '/response/table/example/useParam', 'href' => '/response/table/example/useParam', ], [ 'id' => 'ExampleUseArrayShow', 'title' => '/response/table/example/useArray', 'href' => '/response/table/example/useArray', ], ]) ?> <?= tabler_card_start() ?> <h2>테이블 모양 변경</h2> <p>`setTemplate()`를 사용하면 테이블 템플릿을 설정할 수 있습니다.</p> <?= tabler_card_end() ?> <?= tabler_iframe_tabs([ [ 'id' => 'Custom', 'title' => 'Custom.php', 'href' => '/sample/home/view/Controllers/Response/Table/Custom', ], [ 'id' => 'CustomShow', 'title' => '/response/table/custom', 'href' => '/response/table/custom', ], [ 'id' => 'CustomUsePartialShow', 'title' => '/response/table/custom/usePartial', 'href' => '/response/table/custom/usePartial', ], [ 'id' => 'CustomUseInitShow', 'title' => '/response/table/custom/useInit', 'href' => '/response/table/custom/useInit', ], ]) ?> </div> </div> <?= $this->endSection() ?>
32.986486
81
0.440393
88979026a94261de9613385bd75733adbc8fec0f
1,866
ps1
PowerShell
src/BareMetal/test/AzBareMetal.Tests.ps1
Aviv-Yaniv/azure-powershell
cd12623240e06f54c74ad820d5c85410e3651c23
[ "MIT" ]
1
2022-03-30T13:51:37.000Z
2022-03-30T13:51:37.000Z
src/BareMetal/test/AzBareMetal.Tests.ps1
Aviv-Yaniv/azure-powershell
cd12623240e06f54c74ad820d5c85410e3651c23
[ "MIT" ]
1
2022-03-18T21:01:39.000Z
2022-03-18T21:01:39.000Z
src/BareMetal/test/AzBareMetal.Tests.ps1
yanfa317/azure-powershell
8b0e3334fa5b3cac182612a0663a4216af7ded4f
[ "MIT" ]
null
null
null
if(($null -eq $TestName) -or ($TestName -contains 'AzBareMetal')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) $TestRecordingFile = Join-Path $PSScriptRoot 'AzBareMetal.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File $currentPath = Split-Path -Path $currentPath -Parent } . ($mockingPath | Select-Object -First 1).FullName } Describe 'AzBareMetal' { It 'List' { { $config = Get-AzBareMetal $config.Count | Should -BeGreaterThan 0 } | Should -Not -Throw } It 'Get' { { $config = Get-AzBareMetal -Name $env.BareMetalName1 -ResourceGroupName $env.ResourceGroupName $config.Name | Should -Be $env.BareMetalName1 } | Should -Not -Throw } It 'List1' { { $config = Get-AzBareMetal -ResourceGroupName $env.ResourceGroupName $config.Count | Should -BeGreaterThan 0 } | Should -Not -Throw } It 'UpdateExpanded' { { $config = Update-AzBareMetal -Name $env.BareMetalName1 -ResourceGroupName $env.ResourceGroupName -Tag @{"env"="test"} $config.Name | Should -Be $env.BareMetalName1 } | Should -Not -Throw } It 'UpdateViaIdentityExpanded' { { $config = Get-AzBareMetal -Name $env.BareMetalName2 -ResourceGroupName $env.ResourceGroupName $config = Update-AzBareMetal -InputObject $config -Tag @{"env"="test"} $config.Name | Should -Be $env.BareMetalName2 } | Should -Not -Throw } }
34.555556
130
0.598071
6441c3eafe57996bbd20512fa526314490daaf87
8,100
py
Python
dialog_py/helpers.py
Pasha13666/dialog_py
c54a0e06dc0a5f86d9791b8cbd6fcfacb5b644ff
[ "MIT" ]
1
2021-02-17T07:38:01.000Z
2021-02-17T07:38:01.000Z
dialog_py/helpers.py
Pasha13666/dialog_py
c54a0e06dc0a5f86d9791b8cbd6fcfacb5b644ff
[ "MIT" ]
null
null
null
dialog_py/helpers.py
Pasha13666/dialog_py
c54a0e06dc0a5f86d9791b8cbd6fcfacb5b644ff
[ "MIT" ]
null
null
null
import ctypes import functools from .exceptions import Aborted, NeedHelp, NeedExtra from .native import FUNCTIONS Any = object() def native_bridge(name: str, bases: tuple, dct: dict): dct2 = {} while dct: k, v = dct.popitem() if k.startswith('_') or (not isinstance(v, type) and v is not Any): dct2[k] = v continue if v is str: def _set(self, value, name=k): if value is None: setattr(self._o, name, 0) delattr(self, '_v_' + name) else: value = ctypes.c_char_p(str(value).encode()) setattr(self, '_v_' + name, value) setattr(self._o, name, value) def _get(self, typ=v, name=k): value = getattr(self._o, name) return None if not value else typ(value).decode() dct2[k] = property(_get, _set) elif v is bytearray: def _set(self, value, name=k): if value is None: setattr(self._o, name, 0) delattr(self, '_v_' + name) else: value = ctypes.c_char_p(bytearray(value)) setattr(self, '_v_' + name, value) setattr(self._o, name, value) def _get(self, name=k): value = getattr(self._o, name) return None if not value else bytearray(value) dct2[k] = property(_get, _set) elif v is bytes: def _set(self, value, name=k): if value is None: setattr(self._o, name, 0) delattr(self, '_v_' + name) else: value = ctypes.c_char_p(bytes(value)) setattr(self, '_v_' + name, value) setattr(self._o, name, value) def _get(self, name=k): value = getattr(self._o, name) return None if not value else bytes(value) dct2[k] = property(_get, _set) elif v is Any: dct2[k] = property(lambda self, name=k: getattr(self._o, name), lambda self, value, name=k: setattr(self._o, name, value)) else: dct2[k] = property(lambda self, typ=v, name=k: typ(getattr(self._o, name)), lambda self, value, typ=v, name=k: setattr(self._o, name, typ(value))) return type(name, bases, dct2) def _to_native(self, obj): # Member is not protected, this function is method of `self' # noinspection PyProtectedMember for i, (k, typ) in enumerate(type(self)._fields): if typ is str: setattr(obj, k, str(self[i]).encode()) else: setattr(obj, k, typ(self[i])) def _from_native(cls, obj): args = [] # Member is not protected, this method is method of `cls' # noinspection PyProtectedMember for k, typ in cls._fields: if typ is str: args.append(bytes(getattr(obj, k)).decode()) else: args.append(typ(getattr(obj, k))) return cls(*args) def extended_named_tuple(name: str, fields: dict, module=None): dct = { '__name__': name, '__slots__': (), '_fields': tuple(fields.items()), 'from_native': classmethod(_from_native), 'to_native': _to_native } exec('def __new__(cls, {0}):\n return tuple.__new__(cls, ({0}))'.format(', '.join(fields)), dct, dct) if module is not None: dct['__module__'] = module for i, (k, t) in enumerate(fields.items()): dct[k] = property(lambda self, index=i, typ=t: typ(self[index])) return type(name, (tuple,), dct) def res_check(status, result=None): if status == 0: return None if result is None else result.value if status == 255: raise Aborted(True) if status < 0: raise OSError(-status) if status == 1: raise Aborted(False) if status == 2 or status == 4: raise NeedHelp() if status == 3: raise NeedExtra() def wrap_input_menu(fn, items): def wrapper(_, current, new_text): r = fn(items, current.value) if isinstance(r, str): r = r.encode() if isinstance(r, (bytes, bytearray)): new_text[:] = r return 0 return -1 return wrapper def to_native(obj, dst, name=None): """ :param obj: Source object :param dst: Target object :param name: Field name in dst or None if dst is structure :return: Result (if name is None, None elsewhere) """ if name is None: if hasattr(dst, '_type_'): typ = dst._type_ if isinstance(typ, str): if typ == 'h': typ = ctypes.c_short elif typ == 'H': typ = ctypes.c_ushort elif typ == 'l': typ = ctypes.c_long elif typ == 'L': typ = ctypes.c_ulong elif typ == 'i': typ = ctypes.c_int elif typ == 'L': typ = ctypes.c_uint elif typ == 'f': typ = ctypes.c_float elif typ == 'd': typ = ctypes.c_double elif typ == 'g': typ = ctypes.c_longdouble elif typ == 'q': typ = ctypes.c_longlong elif typ == 'Q': typ = ctypes.c_ulonglong elif typ == 'b': typ = ctypes.c_byte elif typ == 'B': typ = ctypes.c_ubyte elif typ == 'c': typ = ctypes.c_char elif typ == '?': typ = ctypes.c_bool elif typ == 'z': typ = ctypes.c_char_p else: typ = dst if issubclass(typ, ctypes.Structure): for name, typ in type(dst)._fields_: to_native(getattr(obj, name), dst, name) elif issubclass(typ, ctypes.Array): for i, x in zip(range(len(dst)), obj): to_native(x, dst[i]) elif hasattr(dst, 'contents') or issubclass(typ, ctypes.c_char_p): # pointer if issubclass(typ, ctypes.c_char_p): typ = ctypes.c_char if not dst: try: v = (typ * (len(obj) + 1))() except TypeError: v = (typ * 1)() dst = ctypes.cast(v, ctypes.POINTER(typ)) if hasattr(obj, '__iter__'): for i, x in enumerate(obj): v = dst[i] dst[i] = to_native(x, v if hasattr(v, '_type_') else typ) if typ == ctypes.c_char: dst[len(obj)] = 0 else: to_native(obj, dst, 'contents') elif isinstance(obj, bool): return typ(int(obj)) elif isinstance(obj, str): return typ(obj.encode()) else: return typ(obj) return dst v = getattr(dst, name, None) if isinstance(v, (ctypes.Structure, ctypes.Array)) or hasattr(v, 'contents'): # pointer if not v: try: v = (v._type_ * len(v))() except TypeError: v = (v._type_ * 1)() setattr(dst, name, v) to_native(obj, v) elif v is not None: v = to_native(obj, v) setattr(dst, name, v) else: v = to_native(obj, getattr(dst._type_, name)) setattr(dst, name, v) return getattr(dst, name) def make_wrapper(fn): ft = FUNCTIONS[fn.__name__] @functools.wraps(fn) def wrapper(*args): r = fn(*(to_native(v, ft[i + 1]()) for i, v in enumerate(args))) if isinstance(r, (bytes, bytearray)): return r.decode() res_check(r) return wrapper
29.67033
108
0.486173
c3d11963df072c51bb6b2ce971eea52c0de4d61e
12,865
cs
C#
RipAdmin/MainForm.Designer.cs
schlomer/ripper
6d0f23dc4916afebc3c5e77d0b9819f0bc551a27
[ "MIT" ]
null
null
null
RipAdmin/MainForm.Designer.cs
schlomer/ripper
6d0f23dc4916afebc3c5e77d0b9819f0bc551a27
[ "MIT" ]
null
null
null
RipAdmin/MainForm.Designer.cs
schlomer/ripper
6d0f23dc4916afebc3c5e77d0b9819f0bc551a27
[ "MIT" ]
null
null
null
namespace RipAdmin { partial class MainForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.mainToolStrip = new System.Windows.Forms.ToolStrip(); this.miAction = new System.Windows.Forms.ToolStripDropDownButton(); this.miActionConnectRipper = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.miActionExit = new System.Windows.Forms.ToolStripMenuItem(); this.panel1 = new System.Windows.Forms.Panel(); this.tvConnections = new System.Windows.Forms.TreeView(); this.tvConnectionsImageList = new System.Windows.Forms.ImageList(this.components); this.panel2 = new System.Windows.Forms.Panel(); this.label1 = new System.Windows.Forms.Label(); this.splitter1 = new System.Windows.Forms.Splitter(); this.recordsTextBox = new System.Windows.Forms.TextBox(); this.cmRecords = new System.Windows.Forms.ContextMenuStrip(this.components); this.miRecordsGetRecords = new System.Windows.Forms.ToolStripMenuItem(); this.mainToolStrip.SuspendLayout(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.cmRecords.SuspendLayout(); this.SuspendLayout(); // // statusStrip1 // this.statusStrip1.BackColor = System.Drawing.SystemColors.ControlDark; this.statusStrip1.Location = new System.Drawing.Point(0, 698); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(1039, 22); this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; // // mainToolStrip // this.mainToolStrip.BackColor = System.Drawing.SystemColors.Control; this.mainToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.mainToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.miAction}); this.mainToolStrip.Location = new System.Drawing.Point(0, 0); this.mainToolStrip.Name = "mainToolStrip"; this.mainToolStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; this.mainToolStrip.Size = new System.Drawing.Size(1039, 25); this.mainToolStrip.TabIndex = 2; this.mainToolStrip.Text = "toolStrip1"; // // miAction // this.miAction.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.miAction.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.miActionConnectRipper, this.exitToolStripMenuItem1, this.miActionExit}); this.miAction.Image = global::RipAdmin.Properties.Resources.Action_16x; this.miAction.ImageTransparentColor = System.Drawing.Color.Magenta; this.miAction.Name = "miAction"; this.miAction.Size = new System.Drawing.Size(55, 22); this.miAction.Text = "&Action"; // // miActionConnectRipper // this.miActionConnectRipper.Image = global::RipAdmin.Properties.Resources.ConnectFilled_grey_16x; this.miActionConnectRipper.Name = "miActionConnectRipper"; this.miActionConnectRipper.Size = new System.Drawing.Size(165, 22); this.miActionConnectRipper.Text = "&Connect Ripper..."; this.miActionConnectRipper.Click += new System.EventHandler(this.miActionConnectRipper_Click); // // exitToolStripMenuItem1 // this.exitToolStripMenuItem1.Name = "exitToolStripMenuItem1"; this.exitToolStripMenuItem1.Size = new System.Drawing.Size(162, 6); // // miActionExit // this.miActionExit.Image = global::RipAdmin.Properties.Resources.Exit_16x; this.miActionExit.Name = "miActionExit"; this.miActionExit.Size = new System.Drawing.Size(165, 22); this.miActionExit.Text = "E&xit"; this.miActionExit.Click += new System.EventHandler(this.miActionExit_Click); // // panel1 // this.panel1.Controls.Add(this.tvConnections); this.panel1.Controls.Add(this.panel2); this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Location = new System.Drawing.Point(0, 25); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(200, 673); this.panel1.TabIndex = 3; // // tvConnections // this.tvConnections.BorderStyle = System.Windows.Forms.BorderStyle.None; this.tvConnections.ContextMenuStrip = this.cmRecords; this.tvConnections.Dock = System.Windows.Forms.DockStyle.Fill; this.tvConnections.ImageIndex = 0; this.tvConnections.ImageList = this.tvConnectionsImageList; this.tvConnections.Location = new System.Drawing.Point(0, 19); this.tvConnections.Name = "tvConnections"; this.tvConnections.SelectedImageIndex = 0; this.tvConnections.Size = new System.Drawing.Size(200, 654); this.tvConnections.TabIndex = 1; this.tvConnections.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.tvConnections_NodeMouseClick); // // tvConnectionsImageList // this.tvConnectionsImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("tvConnectionsImageList.ImageStream"))); this.tvConnectionsImageList.TransparentColor = System.Drawing.Color.Transparent; this.tvConnectionsImageList.Images.SetKeyName(0, "DatabaseRun_16x.png"); this.tvConnectionsImageList.Images.SetKeyName(1, "DatabaseGroup_16x.png"); this.tvConnectionsImageList.Images.SetKeyName(2, "DatabaseTableGroup_16x.png"); this.tvConnectionsImageList.Images.SetKeyName(3, "Datalist_16x.png"); this.tvConnectionsImageList.Images.SetKeyName(4, "Partition_16x.png"); this.tvConnectionsImageList.Images.SetKeyName(5, "Guid_16x.png"); this.tvConnectionsImageList.Images.SetKeyName(6, "Indexer_16x.png"); // // panel2 // this.panel2.BackColor = System.Drawing.SystemColors.ControlDark; this.panel2.Controls.Add(this.label1); this.panel2.Dock = System.Windows.Forms.DockStyle.Top; this.panel2.Location = new System.Drawing.Point(0, 0); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(200, 19); this.panel2.TabIndex = 0; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.SystemColors.HighlightText; this.label1.Location = new System.Drawing.Point(3, 3); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(66, 13); this.label1.TabIndex = 0; this.label1.Text = "Connections"; // // splitter1 // this.splitter1.BackColor = System.Drawing.SystemColors.Control; this.splitter1.Location = new System.Drawing.Point(200, 25); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(5, 673); this.splitter1.TabIndex = 4; this.splitter1.TabStop = false; // // recordsTextBox // this.recordsTextBox.Dock = System.Windows.Forms.DockStyle.Fill; this.recordsTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.recordsTextBox.Location = new System.Drawing.Point(205, 25); this.recordsTextBox.Multiline = true; this.recordsTextBox.Name = "recordsTextBox"; this.recordsTextBox.ReadOnly = true; this.recordsTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.recordsTextBox.Size = new System.Drawing.Size(834, 673); this.recordsTextBox.TabIndex = 5; this.recordsTextBox.WordWrap = false; // // cmRecords // this.cmRecords.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.miRecordsGetRecords}); this.cmRecords.Name = "cmRecords"; this.cmRecords.ShowImageMargin = false; this.cmRecords.Size = new System.Drawing.Size(113, 26); this.cmRecords.Opening += new System.ComponentModel.CancelEventHandler(this.cmRecords_Opening); // // miRecordsGetRecords // this.miRecordsGetRecords.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.miRecordsGetRecords.Name = "miRecordsGetRecords"; this.miRecordsGetRecords.Size = new System.Drawing.Size(180, 22); this.miRecordsGetRecords.Text = "Get Records"; this.miRecordsGetRecords.Click += new System.EventHandler(this.miRecordsGetRecords_Click); // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Window; this.ClientSize = new System.Drawing.Size(1039, 720); this.Controls.Add(this.recordsTextBox); this.Controls.Add(this.splitter1); this.Controls.Add(this.panel1); this.Controls.Add(this.mainToolStrip); this.Controls.Add(this.statusStrip1); this.Name = "MainForm"; this.Text = "Ripper Admin"; this.mainToolStrip.ResumeLayout(false); this.mainToolStrip.PerformLayout(); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); this.cmRecords.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.StatusStrip statusStrip1; private System.Windows.Forms.ToolStrip mainToolStrip; private System.Windows.Forms.ToolStripDropDownButton miAction; private System.Windows.Forms.ToolStripMenuItem miActionConnectRipper; private System.Windows.Forms.ToolStripSeparator exitToolStripMenuItem1; private System.Windows.Forms.ToolStripMenuItem miActionExit; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Splitter splitter1; private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Label label1; private System.Windows.Forms.TreeView tvConnections; private System.Windows.Forms.ImageList tvConnectionsImageList; private System.Windows.Forms.TextBox recordsTextBox; private System.Windows.Forms.ContextMenuStrip cmRecords; private System.Windows.Forms.ToolStripMenuItem miRecordsGetRecords; } }
51.666667
168
0.629382
f3f840c4c6eb5fc95c93ded72ae1aa02aa024201
533
tsx
TypeScript
src/features/wallet/root/ActivityCard/ActivityCardLoading.tsx
controllinohelium/hotspot-app
40b44f4952178c6ad3fe8c254c935b5b692427d7
[ "Apache-2.0" ]
132
2020-11-13T01:50:46.000Z
2022-03-31T22:22:06.000Z
src/features/wallet/root/ActivityCard/ActivityCardLoading.tsx
controllinohelium/hotspot-app
40b44f4952178c6ad3fe8c254c935b5b692427d7
[ "Apache-2.0" ]
737
2020-11-12T21:15:59.000Z
2022-03-31T09:16:54.000Z
src/features/wallet/root/ActivityCard/ActivityCardLoading.tsx
controllinohelium/hotspot-app
40b44f4952178c6ad3fe8c254c935b5b692427d7
[ "Apache-2.0" ]
117
2020-11-24T00:40:52.000Z
2022-03-31T22:23:27.000Z
import React from 'react' import { useTranslation } from 'react-i18next' import Text from '../../../../components/Text' const ActivityCardLoading = ({ hasNoResults = false, }: { hasNoResults?: boolean }) => { const { t } = useTranslation() if (hasNoResults) { return ( <Text padding="l" variant="body1" color="black" width="100%" textAlign="center" > {t('transactions.no_results')} </Text> ) } return null } export default ActivityCardLoading
17.766667
46
0.581614
7288325baa49c12292aec6299fbb9ae305cc6d06
376
cs
C#
src/SFA.DAS.Campaign.Web/Models/CreateAccountModel.cs
SkillsFundingAgency/das-campaign
5b1e6caffc81ad9894306f5403b6b9dc56bd8af1
[ "MIT" ]
3
2019-03-26T10:08:48.000Z
2021-02-22T15:09:34.000Z
src/SFA.DAS.Campaign.Web/Models/CreateAccountModel.cs
SkillsFundingAgency/das-campaign
5b1e6caffc81ad9894306f5403b6b9dc56bd8af1
[ "MIT" ]
45
2019-01-08T17:06:54.000Z
2021-08-13T13:15:20.000Z
src/SFA.DAS.Campaign.Web/Models/CreateAccountModel.cs
SkillsFundingAgency/das-campaign
5b1e6caffc81ad9894306f5403b6b9dc56bd8af1
[ "MIT" ]
1
2021-04-11T08:36:57.000Z
2021-04-11T08:36:57.000Z
using System.Collections.Generic; using SFA.DAS.Campaign.Domain.Content; using SFA.DAS.Campaign.Domain.Content.HtmlControl; namespace SFA.DAS.Campaign.Web.Models { public class CreateAccountModel { public string BaseEmployerAccountUrl { get; set; } public Menu Menu { get; set; } public IEnumerable<Banner> BannerModels { get; set; } } }
26.857143
61
0.707447
c326da010dd823dbbf028eb54e0124bec3bc973e
106
kt
Kotlin
Android/core-network-api/src/main/java/ru/iandreyshev/coreNetworkApi/data/NetworkState.kt
iandreyshev/Dreamland
5791228f3d7568883058f414a7cbafff561d58d5
[ "MIT" ]
1
2018-10-14T20:35:06.000Z
2018-10-14T20:35:06.000Z
Android/core-network-api/src/main/java/ru/iandreyshev/coreNetworkApi/data/NetworkState.kt
iandreyshev/Dreamland
5791228f3d7568883058f414a7cbafff561d58d5
[ "MIT" ]
null
null
null
Android/core-network-api/src/main/java/ru/iandreyshev/coreNetworkApi/data/NetworkState.kt
iandreyshev/Dreamland
5791228f3d7568883058f414a7cbafff561d58d5
[ "MIT" ]
null
null
null
package ru.iandreyshev.coreNetworkApi.data enum class NetworkState { MOBILE, WIFI, DISABLED }
15.142857
42
0.726415
385e7430ebec9bcf45939e8eb4e0a60a4d18630f
277
cs
C#
Code/Beskova.Ontology/Beskova.Ontology.Interfaces/ISpecialityRepository.cs
MikhailApsalikov/Veronika
808142f3b308449046d3a2e437342fe832408d1c
[ "MIT" ]
null
null
null
Code/Beskova.Ontology/Beskova.Ontology.Interfaces/ISpecialityRepository.cs
MikhailApsalikov/Veronika
808142f3b308449046d3a2e437342fe832408d1c
[ "MIT" ]
34
2017-03-05T12:52:55.000Z
2017-06-26T18:42:46.000Z
Code/Beskova.Ontology/Beskova.Ontology.Interfaces/ISpecialityRepository.cs
MikhailApsalikov/Veronika
808142f3b308449046d3a2e437342fe832408d1c
[ "MIT" ]
null
null
null
namespace Beskova.Ontology.Interfaces { using System.Collections.Generic; using Entities; using Entities.Filters; public interface ISpecialityRepository { List<Speciality> GetAll(SpecialityFilter filter); Speciality GetById(string id); void Remove(string id); } }
21.307692
51
0.783394
427914f3e5999f4abe83add22e89ee3571f6004a
45,379
tab
SQL
data_raw/datatool_manual/processed/videoinfo_NUfRRckdDGA_2021_03_17-12_14_32_comments.tab
Alioio/social_media_youtube_analysis_project
a38f2da7d5c4f6a4ab3b2525348748b617f5a3bf
[ "MIT" ]
null
null
null
data_raw/datatool_manual/processed/videoinfo_NUfRRckdDGA_2021_03_17-12_14_32_comments.tab
Alioio/social_media_youtube_analysis_project
a38f2da7d5c4f6a4ab3b2525348748b617f5a3bf
[ "MIT" ]
null
null
null
data_raw/datatool_manual/processed/videoinfo_NUfRRckdDGA_2021_03_17-12_14_32_comments.tab
Alioio/social_media_youtube_analysis_project
a38f2da7d5c4f6a4ab3b2525348748b617f5a3bf
[ "MIT" ]
null
null
null
id replyCount likeCount publishedAt authorName text authorChannelId authorChannelUrl isReply isReplyTo isReplyToName UgxzMjclHiwjBdpZrJJ4AaABAg 15 7 2021-01-26 20:04:51 The Damage Report Become a TDR YouTube Member: <a href="http://youtube.com/thedamagereport/join">youtube.com/thedamagereport/join</a> UCl9roQQwv4o4OuBj3FhQdDQ http://www.youtube.com/channel/UCl9roQQwv4o4OuBj3FhQdDQ 0 UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JE_Mz3c6T5 0 2021-02-01 22:41:31 GlueFactoryBJJ @Charles Roger Martin ROFL! That is great conspiracy theory trolling! UCg6ipDTvpVat22oKQVkDwXQ http://www.youtube.com/channel/UCg6ipDTvpVat22oKQVkDwXQ 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JE_GmK8GRH 0 2021-02-01 22:40:40 GlueFactoryBJJ @Jack Garrison You tagged me in your comment, but I don't know why... I never mentioned Al Gore in any of my comments here. UCg6ipDTvpVat22oKQVkDwXQ http://www.youtube.com/channel/UCg6ipDTvpVat22oKQVkDwXQ 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JEO5-gyS4I 0 2021-02-01 20:54:12 Jack Garrison @Shade Bleu I'm not Lying to Anyone I'm telling The TRUTH and Yes Joe BIDEN has Broken His Promise on that well at least for now anyway He could still make that Yes I know that He is Human and can't keep every Promise that He makes but it was ridiculous how many PROMISES TRUMP broke as The PRESIDENT UCAiZOpMhaPj1Rbebit1dRMw http://www.youtube.com/channel/UCAiZOpMhaPj1Rbebit1dRMw 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JENc_dTqQv 0 2021-02-01 20:50:11 Shade Bleu You're lying to your audience. Biden also promised 2k checks. UCNyDTp6YvfDGsWzvZHff_Dg http://www.youtube.com/channel/UCNyDTp6YvfDGsWzvZHff_Dg 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBw-eD8dKs 0 2021-01-31 22:01:35 Jack Garrison @GlueFactoryBJJ Yes Al Gore did drop out of The Election for President which was really Stupid but He is 100% Correct about Global Warming it has been Affecting Earth since The Day it came into existence and Unfortunately will probably be always A problem until The Earth Dies whether that is and Who knows it will be A Problem centuries after Earth dies as well and Yes it was Hilarious on SOUTHPARK when Had Al Gore going crazy about Man Bear Pig UCAiZOpMhaPj1Rbebit1dRMw http://www.youtube.com/channel/UCAiZOpMhaPj1Rbebit1dRMw 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBsXS67gec 0 2021-01-31 21:31:15 GlueFactoryBJJ @Tommy Bushenger For many reasons, which are easily found through a quick search, that "private jet" criticism is BS. It has been thoroughly debunked. The only way to deal with climate change is through SOCIETAL LEVEL, not individual change. And if your protest is that "elites" enjoy privileges "We, the People" don't, well, I agree, but so of "true" communism I don't know how we'll change that... or if we even should. As the old saying goes, "Rank hath it's privileges." UCg6ipDTvpVat22oKQVkDwXQ http://www.youtube.com/channel/UCg6ipDTvpVat22oKQVkDwXQ 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBrNhHRryj 0 2021-01-31 21:21:11 GlueFactoryBJJ @Jack Garrison I agree. UCg6ipDTvpVat22oKQVkDwXQ http://www.youtube.com/channel/UCg6ipDTvpVat22oKQVkDwXQ 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBoCEcvjZ6 1 2021-01-31 20:53:24 Jack Garrison @GlueFactoryBJJ Yes He does but He is right about taking Climate change Seriously UCAiZOpMhaPj1Rbebit1dRMw http://www.youtube.com/channel/UCAiZOpMhaPj1Rbebit1dRMw 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBnxNLUhx7 0 2021-01-31 20:51:14 GlueFactoryBJJ Sen Schumer is such a weak sauce, wimp "leader". Dang! He definitely needs to be voted out of the leadership position. Oh, I agree that Pres Biden can do more on his own. BUT Sen Schumer needs to do some of the heavy lifting himself. Ugh! P.S. Bernie for majority leader! UCg6ipDTvpVat22oKQVkDwXQ http://www.youtube.com/channel/UCg6ipDTvpVat22oKQVkDwXQ 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBlDNrUC6E 0 2021-01-31 20:27:20 CD @Stephen Ingle I do that sometimes! Along with spelling errors that are seldom called out. You're the first in actually getting confused by a demand for real action before blindly following the left because it appears to be opposite of the right. There is a systematic objection that's a valid objection to how things are not getting done by the environment created long before Trump. Are you more confused now by my reply? I do that sometimes... UCu1XbbF3UkdrUTQ4hxx2luA http://www.youtube.com/channel/UCu1XbbF3UkdrUTQ4hxx2luA 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBkA48P_Wq 0 2021-01-31 20:18:09 Stephen Ingle @CD Sorry, but I find your analysis confusing... 🤔 UCy2vaJhoAgtE80IZnW3yhpw http://www.youtube.com/channel/UCy2vaJhoAgtE80IZnW3yhpw 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBk7qPhFgJ 1 2021-01-31 20:17:51 Jack Garrison @Marié telléz Or I should say perhaps most of what Chuck said is The right thing anyway UCAiZOpMhaPj1Rbebit1dRMw http://www.youtube.com/channel/UCAiZOpMhaPj1Rbebit1dRMw 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBjyrNmPAP 2 2021-01-31 20:16:29 Jack Garrison @Marié telléz Yes Joe Biden is well at least He is trying really hard anyway I don't know if I agree with Anything else that Chuck Says or does but He is Correct in this case UCAiZOpMhaPj1Rbebit1dRMw http://www.youtube.com/channel/UCAiZOpMhaPj1Rbebit1dRMw 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBju3DEsit 2 2021-01-31 20:15:50 CD Left was together enough to stand by and let it happen. We maybe right and we maybe left and want the same thing with no option to choose it. We ended up being wrong doing nothing. Let's see action before we act cultish and back no change. Democracy, wealth distribution, racist policies, injustice, global warming and pandemic are still issues delayed by the love affair of left and right. That needs to stop. I'm for pressuring the left to actually stand up. Ex Republican Biden voter UCu1XbbF3UkdrUTQ4hxx2luA http://www.youtube.com/channel/UCu1XbbF3UkdrUTQ4hxx2luA 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report UgxzMjclHiwjBdpZrJJ4AaABAg.9IzqfF6G0OF9JBj50O7C_z 1 2021-01-31 20:08:43 Marié telléz At This point we all Democrats have to work together against the Republican enemies , Joe Biden is doing an awesome job for thé people , Schumer have a very different role in all this climate change issue UC0_ftapZ1wElWzOwOqYTExQ http://www.youtube.com/channel/UC0_ftapZ1wElWzOwOqYTExQ 1 UgxzMjclHiwjBdpZrJJ4AaABAg The Damage Report Ugzty43v9mKt9M7LOhF4AaABAg 0 8 2021-01-31 22:39:00 TheodoreJay Schumer should know that climate change crisis won&#39;t be cured overnight. UCpDns0wEMLDDaUgnPoj8jiQ http://www.youtube.com/channel/UCpDns0wEMLDDaUgnPoj8jiQ 0 UgwMh_hcx4Dz_QV0-Jx4AaABAg 1 14 2021-01-31 20:03:46 Mark Childers Flint Michigan is a fine example shameful shameful shameful UCx6HV6wgK_l8L9xcobfSTZg http://www.youtube.com/channel/UCx6HV6wgK_l8L9xcobfSTZg 0 UgwMh_hcx4Dz_QV0-Jx4AaABAg.9JBiWks252R9JBqypR1G3G 0 2021-01-31 21:17:39 jane freeman I recently listened to Erin Brocovich and there are so many more munucipalities with awful water. UCyiqaiN74E1X8FHU8skCLvw http://www.youtube.com/channel/UCyiqaiN74E1X8FHU8skCLvw 1 UgwMh_hcx4Dz_QV0-Jx4AaABAg Mark Childers Ugy5GKA9-1vXXdr-gmx4AaABAg 0 8 2021-01-31 20:39:03 Apollo For a Better Future The threat of a primary has made Schumer improve his policy so much it’s astonishing. Progressives are winning like crazy UCxuch_k39zusbRZMbAWGcEQ http://www.youtube.com/channel/UCxuch_k39zusbRZMbAWGcEQ 0 UgxRf4Ce1D2BJ4ZLIX94AaABAg 0 6 2021-01-31 21:49:51 Tyg Rahof Tear down that &quot;stupid wall&quot;. He is right on point! UCmGW-6F-Em9SNvxHEsg3ZIw http://www.youtube.com/channel/UCmGW-6F-Em9SNvxHEsg3ZIw 0 UgyFLm34L-d2QBMV9Vt4AaABAg 0 5 2021-01-31 22:37:17 Michael Ulbricht There is only one chosen person or people, and that is Mother Earth. We must help our Mother out, because if she goes, then we go. UCWiZFHZxolEtbrl-htc9c8A http://www.youtube.com/channel/UCWiZFHZxolEtbrl-htc9c8A 0 UgwnSVg0oycjaFXaEq94AaABAg 1 6 2021-01-31 20:23:27 Charles Hermetix Adrienne (is that how u spell it?IDK) looks how I imagine Nefertiti or Cleopatra would have looked like..stunning egyptian royalty UCbs1OKX9JiFoAGn_S2LhoDw http://www.youtube.com/channel/UCbs1OKX9JiFoAGn_S2LhoDw 0 UgwnSVg0oycjaFXaEq94AaABAg.9JBklvZcRJH9JBrdy-Lv88 1 2021-01-31 21:23:32 jane freeman I was just thinking she looks a little like Joanna Gaines. Both are gorgeous and exotic looking. Egyptian, agreed. 😊 UCyiqaiN74E1X8FHU8skCLvw http://www.youtube.com/channel/UCyiqaiN74E1X8FHU8skCLvw 1 UgwnSVg0oycjaFXaEq94AaABAg Charles Hermetix Ugyxqe22JYkb4WmwQn14AaABAg 0 4 2021-02-01 00:59:37 John Vogel Push them. Get behind them at all costs, time, and energy, . UCjCC5yzw-tu-i-QzMzAHdeQ http://www.youtube.com/channel/UCjCC5yzw-tu-i-QzMzAHdeQ 0 Ugx9573PkgRIAUTIaGl4AaABAg 0 4 2021-02-01 12:53:18 Chris Fox TIME TO CHANGE THE INTRO. Get rid of Trump embracing the flag. NOW. UCcR4Klfi70L49yn8X9oooRQ http://www.youtube.com/channel/UCcR4Klfi70L49yn8X9oooRQ 0 UgwfZHwpodWdTGeWVjF4AaABAg 0 3 2021-01-31 20:13:40 James Hair He looks more like The Penguin every day. UCM9Sb92elmnjwqVjK0Qs8sw http://www.youtube.com/channel/UCM9Sb92elmnjwqVjK0Qs8sw 0 Ugzj0kpSdE2MGNRHi-B4AaABAg 0 2 2021-02-01 00:42:02 Kimberly Ward-Evans Excellent “tirade”, John (if with you, we can even call it that. I mean, you’re no Ana)! Your take on Schumer is 💯🔥 UCRVQkIQ_JMvJ6_GjQtrY1Rw http://www.youtube.com/channel/UCRVQkIQ_JMvJ6_GjQtrY1Rw 0 UgyDqHLW_4r9K5GvI5h4AaABAg 0 6 2021-01-31 20:05:46 Marié telléz Ok then just let’s put to work our Democracy and help President Biden on Climate change , remember Is just not what the government can do for you , it is also how you can help your government UC0_ftapZ1wElWzOwOqYTExQ http://www.youtube.com/channel/UC0_ftapZ1wElWzOwOqYTExQ 0 UgwPHSG3bh1CgJo8Hwh4AaABAg 1 5 2021-01-31 21:17:31 Richard MacLean Don’t pass the buck Schumer… Use your powers… To the winner goes the spoils. UCPK347NKA45y-9SzWFevuVg http://www.youtube.com/channel/UCPK347NKA45y-9SzWFevuVg 0 UgwPHSG3bh1CgJo8Hwh4AaABAg.9JBqxpDwG8y9JC1KNyOYli 0 2021-01-31 22:56:51 Me Off Democrats in Congress won the ability to pass two bills. Pick, can't have it all. UC6Onk0s389b-mQRIs5Y6MGw http://www.youtube.com/channel/UC6Onk0s389b-mQRIs5Y6MGw 1 UgwPHSG3bh1CgJo8Hwh4AaABAg Richard MacLean UgyeyFXwxP4xBslFqLB4AaABAg 10 5 2021-01-31 20:57:45 Carol Edwards I have been watching in the UK the BBC programs &quot;The Perfect Planet&quot; 5 episodes I challenge anyone to watch all 5 episodes and not feel ashamed of what we are doing to our planet. Keep safe and look after our planet. UCDbgSvQXD78gpV10ocrBZJA http://www.youtube.com/channel/UCDbgSvQXD78gpV10ocrBZJA 0 UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JCFGO72Onx 1 2021-02-01 00:58:38 Carol Edwards Michael RCH in 9 years time we in the UK will not be able to buy a new petrol or diesel engine car ..they will all be electric powered car vans and lorries...most bus are now charging to electric..l dont know how that would go down in the USA ? The pollution from theses engines is horrific and every house will have electric heating, as mine is now, no gas fired boilers or wood burning fires or fossil fuels...keep safe and let's look after each other. UCDbgSvQXD78gpV10ocrBZJA http://www.youtube.com/channel/UCDbgSvQXD78gpV10ocrBZJA 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JC5Jg7op9h 1 2021-01-31 23:31:42 Adam Taylor @Wanda Setzer Yup. Right until you Capitalism the country out of existence. Then all your rich folks will head to other countries... and find out that such shit isn't tolerated there. UC7LgDOjWYusQpZf4lTwy0zQ http://www.youtube.com/channel/UC7LgDOjWYusQpZf4lTwy0zQ 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JC1cfXVGFY 2 2021-01-31 22:59:29 Wanda Setzer @Adam Taylor I know your government is independent, but as you say, you still honor the Queen. Anybody is welcome to our channels, as long as they pay for them, or watch the commercials for them, or however somebody makes a dollar from you for them. That's us. All capitalism all day. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JC0mgT9NDO 1 2021-01-31 22:52:06 Adam Taylor @Wanda Setzer We're really not. Though we still honor the Queen and all. But we also get all the American channels. We're not part of the US either. :p UC7LgDOjWYusQpZf4lTwy0zQ http://www.youtube.com/channel/UC7LgDOjWYusQpZf4lTwy0zQ 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JBxR_mWpUQ 1 2021-01-31 22:14:08 Wanda Setzer @Michael RCH It's amazing how much of the agriculture in the US is devoted to either animals or animal feed. The Mississippi is a drainage ditch for all the chemicals sprayed onto the thousands of square miles devoted to that. Are you old enough to remember Diet For a Small Planet? UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JBx35vDcfE 1 2021-01-31 22:10:48 Wanda Setzer @Adam Taylor Of course you do, because you are still part of the British Commonwealth. We are not. It's a whole different ballgame. And I love the BBC. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JBw6mgTMa7 1 2021-01-31 22:02:33 Michael RCH Remember that one of the most effective ways to reduce your impact on the environment and climate is to switch to a plant-based diet. The science now shows that the only pathway to net zero emissions requires us to switch away from animal agriculture and to plant-rich diets. I would post links to the studies but my comment is deleted if I try!!! UCyYpBpFWQWN1ZhL4JJaiZJw http://www.youtube.com/channel/UCyYpBpFWQWN1ZhL4JJaiZJw 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JBvxYLnUVv 1 2021-01-31 22:01:10 Carol Edwards Sir David Attenborough introduced it and narrated it UCDbgSvQXD78gpV10ocrBZJA http://www.youtube.com/channel/UCDbgSvQXD78gpV10ocrBZJA 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JBudRtE3Xz 0 2021-01-31 21:49:41 Adam Taylor @Wanda Setzer In Canada we have dedicated BBC channels for news, nature, etc... UC7LgDOjWYusQpZf4lTwy0zQ http://www.youtube.com/channel/UC7LgDOjWYusQpZf4lTwy0zQ 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyeyFXwxP4xBslFqLB4AaABAg.9JBoh7R15Uf9JBt0IsTr8p 1 2021-01-31 21:35:28 Wanda Setzer It's hard for us to see BBC programming over here, unless PBS has it on. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 UgyeyFXwxP4xBslFqLB4AaABAg Carol Edwards UgyRMEq2uHp9sE4HRDN4AaABAg 0 3 2021-01-31 20:04:33 Thomas Surette Stop all the pollution State of Maine Needs to stop polluting UCZ1rp0GAwruPKRoqqKWmJeQ http://www.youtube.com/channel/UCZ1rp0GAwruPKRoqqKWmJeQ 0 UgyLpQN3VvzfJiJSjHd4AaABAg 0 5 2021-01-31 20:31:30 Chaninification That&#39;s a perfect chess move that it would serve America well for President Biden to take Majority Leader Schumer&#39;s advice. Everything that we need to get busy doing immediately will be easily required under the climate emergency. AND Schumer needs to end the fillibuster like YESTERDAY!!! UCnwwWNqcFqtcJmr5b_-TUNA http://www.youtube.com/channel/UCnwwWNqcFqtcJmr5b_-TUNA 0 UgxjVaaSROiDe97U7BJ4AaABAg 0 2 2021-02-01 13:14:52 Tozias Silverfang Thumbs up and an additional comment to beat the algorithm. Thanks for the video! 👍🔥👍 UC2BlCGrgE6masM9U4LYO4Vg http://www.youtube.com/channel/UC2BlCGrgE6masM9U4LYO4Vg 0 UgzvBacDVbD65eQz-6V4AaABAg 0 3 2021-01-31 21:12:34 leafy one I think schumer has a great idea since republicans have proven they are going to fight any legislation biden wants to pass. UCvHwJzMhD1HIodgeCnbstCQ http://www.youtube.com/channel/UCvHwJzMhD1HIodgeCnbstCQ 0 UgzsQ9zROXh7LJ6U7_54AaABAg 2 7 2021-01-31 20:33:27 Shankari Rise Yes! Declare a state of emergency and bypass the ridiculous Repubs because they won&#39;t agree with anything and have not ousted the demented and dangerous MT Greene. UCUQcOk7ZT2XOwmJYuojRD0A http://www.youtube.com/channel/UCUQcOk7ZT2XOwmJYuojRD0A 0 UgzsQ9zROXh7LJ6U7_54AaABAg.9JBlv61l3fd9JDd1xHqdAK 0 2021-02-01 13:54:21 Wanda Setzer @LizzieGirlsMom Joe Manchin isn't the center. He should have been a Republican, and not elected. He spends too much time aligning with Republican votes. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 UgzsQ9zROXh7LJ6U7_54AaABAg Shankari Rise UgzsQ9zROXh7LJ6U7_54AaABAg.9JBlv61l3fd9JBrfIjZK59 1 2021-01-31 21:23:43 LizzieGirlsMom Not only would that allow him to ignore the crazies in the Republican party it would also allow him to ignore the extreme Center in the Democratic party such as Joe manchin UC7VG91wu9JJ7kDLUjrnuL_A http://www.youtube.com/channel/UC7VG91wu9JJ7kDLUjrnuL_A 1 UgzsQ9zROXh7LJ6U7_54AaABAg Shankari Rise UgzD05x3EQtv0uo9yPh4AaABAg 0 0 2021-01-31 22:03:37 Suhail Salim Wow, Chuck came up with a good one there! UCbluou0YISwWMKhCmgdjVcA http://www.youtube.com/channel/UCbluou0YISwWMKhCmgdjVcA 0 UgzRw-tLNp9TlLy3OpJ4AaABAg 0 1 2021-01-31 20:02:16 James Campbell 40+ year&#39;s behind in deep coco crispy treats or sh t UCQ8oqA4l0_aG-C3iOf-4aLg http://www.youtube.com/channel/UCQ8oqA4l0_aG-C3iOf-4aLg 0 UgyYLjepTP9yhicOb0B4AaABAg 0 0 2021-02-02 23:06:27 lasso atrain &quot; I told you so &quot;<br /> ~ Donald Trump ~ UCqS1mfYCirPoM8_eeA7ay6w http://www.youtube.com/channel/UCqS1mfYCirPoM8_eeA7ay6w 0 Ugwi6Q4D1aM23G4CvN94AaABAg 0 1 2021-01-31 21:49:25 Q Baggett I like chuck shummer UCu7RvDl-e8XgTA6bYRPT9tg http://www.youtube.com/channel/UCu7RvDl-e8XgTA6bYRPT9tg 0 Ugy_R0l_lnE4JJiujud4AaABAg 0 0 2021-01-31 20:52:26 gjolau What?!<br />When did Schumer turn hard left?!<br />Was I under a rock without noticing??<br />Please wake me up somebody! UC5vmN6Uboa7XkNus1nF3_SA http://www.youtube.com/channel/UC5vmN6Uboa7XkNus1nF3_SA 0 UgyHnR42f5yXEsDV7Vh4AaABAg 0 1 2021-02-02 20:30:40 J5 Nephews Halt that hideous gold mine in Alaska in one of the last natural places on earth. Horribly destructive to wildlife who are already struggling with climate change UCUursq3BF7bfwBvgJVsMh6w http://www.youtube.com/channel/UCUursq3BF7bfwBvgJVsMh6w 0 Ugw7LGsHU-BCAf3m5894AaABAg 6 5 2021-01-31 23:03:12 mavssami41 But he won&#39;t throw them 2k checks...what a fruad UCcPw3WHf_6559rCeGZZ2O9A http://www.youtube.com/channel/UCcPw3WHf_6559rCeGZZ2O9A 0 Ugw7LGsHU-BCAf3m5894AaABAg.9JC22saHDQ49JFm69YTtM6 0 2021-02-02 09:52:03 Wanda Setzer @teammm The point is also that you accuse me of living in Russia for no reason. Don't talk down to me as if you know everything, when you resort to such accusations. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 Ugw7LGsHU-BCAf3m5894AaABAg mavssami41 Ugw7LGsHU-BCAf3m5894AaABAg.9JC22saHDQ49JFkBUbXslK 0 2021-02-02 09:35:18 teammm @Wanda Setzer The point is your wrong about who qualifies for the money. Thanks. UCAnruZ51PalmW4U10u7zxOQ http://www.youtube.com/channel/UCAnruZ51PalmW4U10u7zxOQ 1 Ugw7LGsHU-BCAf3m5894AaABAg mavssami41 Ugw7LGsHU-BCAf3m5894AaABAg.9JC22saHDQ49JFjYfIpkV8 0 2021-02-02 09:29:44 Wanda Setzer @teammm Just because Putin is bad does not make us so wonderful. I live here in the US, and we just missed being ruled by a dictator. Trump would have had no reason to restrain himself if he had been re-elected. And I want a check as much as anybody else. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 Ugw7LGsHU-BCAf3m5894AaABAg mavssami41 Ugw7LGsHU-BCAf3m5894AaABAg.9JC22saHDQ49JF0KLlqj5G 0 2021-02-02 02:45:49 teammm @Wanda Setzer only Individuals making less than $75,000 a year qualified for the stimulus checks. You don’t know what you’re talking about, probably because you’re not an American. Stay in Russia and mind their business. Tell Putin to stop murdering his own citizens and locking tens of thousands of protesters up. He is a murderous dictator who poisons his challengers because he’s the devil. UCAnruZ51PalmW4U10u7zxOQ http://www.youtube.com/channel/UCAnruZ51PalmW4U10u7zxOQ 1 Ugw7LGsHU-BCAf3m5894AaABAg mavssami41 Ugw7LGsHU-BCAf3m5894AaABAg.9JC22saHDQ49JDdR3IAQdZ 0 2021-02-01 13:57:47 Wanda Setzer @teammm If people with $300K incomes weren't also getting checks, if only the needy were getting checks, they could be $2000. That's just a supposition - I didn't do the math. But it's clear to me that money goes to people who aren't doing without. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 Ugw7LGsHU-BCAf3m5894AaABAg mavssami41 Ugw7LGsHU-BCAf3m5894AaABAg.9JC22saHDQ49JC4ho08wLZ 2 2021-01-31 23:26:24 teammm Biden’s stimulus package is going to Congress within the next two weeks or less. He’s only been in office for 10 days. Don’t accuse people of things if you don’t know what’s going on. Thanks. UCAnruZ51PalmW4U10u7zxOQ http://www.youtube.com/channel/UCAnruZ51PalmW4U10u7zxOQ 1 Ugw7LGsHU-BCAf3m5894AaABAg mavssami41 Ugys_QUcekBiu2j1q2V4AaABAg 0 1 2021-01-31 21:02:59 Rory Gay It is an emergency. UCr1g8pGilL-4YhD3cM5LhKQ http://www.youtube.com/channel/UCr1g8pGilL-4YhD3cM5LhKQ 0 UgzMHg7Fc9u-KcyXMch4AaABAg 3 3 2021-01-31 20:12:31 Blake the Drake How come every single issue here has to devolve into a racial thing with this lady...... UCJR5ssDlHw7DUoAeJwg3mzw http://www.youtube.com/channel/UCJR5ssDlHw7DUoAeJwg3mzw 0 UgzMHg7Fc9u-KcyXMch4AaABAg.9JBjWlNFRgA9JBnGZCVUcF 1 2021-01-31 20:45:15 Michael Lamp How the fuck am I a hypocrite for pointing out her prejudice? I'm not racist. You're an idiot. UC5_cQ7zamb5wg1FPCG3v2uA http://www.youtube.com/channel/UC5_cQ7zamb5wg1FPCG3v2uA 1 UgzMHg7Fc9u-KcyXMch4AaABAg Blake the Drake UgzMHg7Fc9u-KcyXMch4AaABAg.9JBjWlNFRgA9JBmr2KtM0D 1 2021-01-31 20:41:38 Michael Lamp @All you Fascists Are bound to lose you're an idiot. That extra kinda special. Stop eating all of your crayons 🖍 UC5_cQ7zamb5wg1FPCG3v2uA http://www.youtube.com/channel/UC5_cQ7zamb5wg1FPCG3v2uA 1 UgzMHg7Fc9u-KcyXMch4AaABAg Blake the Drake UgzMHg7Fc9u-KcyXMch4AaABAg.9JBjWlNFRgA9JBkLEb-lw8 2 2021-01-31 20:19:41 Michael Lamp I was just about to post the same thing. A video about climate change flipped to "what about me" real quick. UC5_cQ7zamb5wg1FPCG3v2uA http://www.youtube.com/channel/UC5_cQ7zamb5wg1FPCG3v2uA 1 UgzMHg7Fc9u-KcyXMch4AaABAg Blake the Drake UgyQkqyZwfehMFOCmvp4AaABAg 0 1 2021-02-01 17:47:31 Antoine Simpson Schumer: You want to help the President? Get rid of the Filterbuster and allow the Green New Deal bill to pass! You have the leader&#39;s role in the Senate! USE IT!!!! UCRnZev6SN0OouPuG1T0Th-Q http://www.youtube.com/channel/UCRnZev6SN0OouPuG1T0Th-Q 0 UgyOS3ULoULLHz3okRd4AaABAg 0 0 2021-02-01 01:07:10 John Vogel If there is really too much high value plastic, then build them with a big electric machine to form them on site. Fire proof them I inside and out. Good to go. UCjCC5yzw-tu-i-QzMzAHdeQ http://www.youtube.com/channel/UCjCC5yzw-tu-i-QzMzAHdeQ 0 Ugwb2fNzz8G3V6aRUh14AaABAg 0 1 2021-01-31 20:17:11 krumble104 ‘’Nothing to do with me’’ says Schumer... no surprises there then. UC-MMB9yKppQM1RN4_fPQLVw http://www.youtube.com/channel/UC-MMB9yKppQM1RN4_fPQLVw 0 Ugz2_HKEMi3n6WHVgZJ4AaABAg 0 0 2021-02-15 18:28:26 Jeffrey Lee Adrienne (<a href="https://www.youtube.com/watch?v=NUfRRckdDGA&amp;t=2m03s">2:03</a>-<a href="https://www.youtube.com/watch?v=NUfRRckdDGA&amp;t=2m50s">2:50</a>) appears to have mixed up pollution with climate change. They are both related to the environment, but the impact and solutions are quite different. The environmentalist audience would be quite confused or maybe even turned off a bit by this commentary. UCsKuCaehinrvy_xh3pG1dEQ http://www.youtube.com/channel/UCsKuCaehinrvy_xh3pG1dEQ 0 UgyEYP3Bkavo-yS55_R4AaABAg 0 0 2021-02-02 02:52:58 Sweger Shanna Trump hugging the flag needs to go UCHvPUOdtKh7hr2hFZVrHzzw http://www.youtube.com/channel/UCHvPUOdtKh7hr2hFZVrHzzw 0 UgxBUY6z6_VSlqRyg_Z4AaABAg 0 0 2021-01-31 22:04:35 Tammy Edwards Yes New York is one of the worst UC_oOt2z8AurpX8ZWvoEeOcw http://www.youtube.com/channel/UC_oOt2z8AurpX8ZWvoEeOcw 0 Ugw9VhgTQsxMIrkTo6B4AaABAg 1 0 2021-02-01 02:28:51 Jerome Walker Schumer is the perfect picture for beyond Weak UCgCjf_rD86FzwSTab_2OihQ http://www.youtube.com/channel/UCgCjf_rD86FzwSTab_2OihQ 0 Ugw9VhgTQsxMIrkTo6B4AaABAg.9JCPaBB3KDE9JGvmMt6W4U 1 2021-02-02 20:35:50 J5 Nephews Oh, get over the maga crap already. You wanna see weak, look at LINDSEY GRAHAM UCUursq3BF7bfwBvgJVsMh6w http://www.youtube.com/channel/UCUursq3BF7bfwBvgJVsMh6w 1 Ugw9VhgTQsxMIrkTo6B4AaABAg Jerome Walker UgyBkws5umAMVRQUYtF4AaABAg 1 2 2021-02-01 21:27:23 Jean Alton Please please please lose that opening clip with Trump and the flag. 😠😠😠😠 UCs9OV-u0kEXYo-xvMy2bF0w http://www.youtube.com/channel/UCs9OV-u0kEXYo-xvMy2bF0w 0 UgyBkws5umAMVRQUYtF4AaABAg.9JERt1adxWD9JE_VsQeE8F 0 2021-02-01 22:42:44 MR Howard just watch on 1.5 speed. i didn't even notice it until you said something. UCNbZ30ewIkTj6TXtVRFS4MQ http://www.youtube.com/channel/UCNbZ30ewIkTj6TXtVRFS4MQ 1 UgyBkws5umAMVRQUYtF4AaABAg Jean Alton UgyqDfE0g2zHlqlEBcR4AaABAg 6 3 2021-01-31 20:19:12 krumble104 ‘’Nothing to do with me’’ says Schumer... no surprises there then. UC-MMB9yKppQM1RN4_fPQLVw http://www.youtube.com/channel/UC-MMB9yKppQM1RN4_fPQLVw 0 UgyqDfE0g2zHlqlEBcR4AaABAg.9JBkHkS-mmg9JE4zUGR4VR 0 2021-02-01 18:07:17 Kitter Duhn @Wanda Setzer still acting like he is and shumeer is letting him UC4cxpr06ZhrPm4WkkRNbyhQ http://www.youtube.com/channel/UC4cxpr06ZhrPm4WkkRNbyhQ 1 UgyqDfE0g2zHlqlEBcR4AaABAg krumble104 UgyqDfE0g2zHlqlEBcR4AaABAg.9JBkHkS-mmg9JDdnvDJ3gK 0 2021-02-01 14:01:02 Wanda Setzer @Kitter Duhn Mitch is not the leader any more, and eventually he might get his wishes denied. We have to make changes as fast as possible, since everything was chaos and craziness for the last four years. That is why we voted for Biden, to put the fires out. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 UgyqDfE0g2zHlqlEBcR4AaABAg krumble104 UgyqDfE0g2zHlqlEBcR4AaABAg.9JBkHkS-mmg9JC4dKznMAc 0 2021-01-31 23:25:47 Kitter Duhn @Me Off mitch says otherwise UC4cxpr06ZhrPm4WkkRNbyhQ http://www.youtube.com/channel/UC4cxpr06ZhrPm4WkkRNbyhQ 1 UgyqDfE0g2zHlqlEBcR4AaABAg krumble104 UgyqDfE0g2zHlqlEBcR4AaABAg.9JBkHkS-mmg9JC1pn8l4LW 0 2021-01-31 23:01:16 Me Off @Kitter Duhn no actually Schumer held the line and Mitch caved. Mitch wanted guarantees the filibuster wouldn't end. Schumer said no. That is a fact. UC6Onk0s389b-mQRIs5Y6MGw http://www.youtube.com/channel/UC6Onk0s389b-mQRIs5Y6MGw 1 UgyqDfE0g2zHlqlEBcR4AaABAg krumble104 UgyqDfE0g2zHlqlEBcR4AaABAg.9JBkHkS-mmg9JC1d-U_HSp 0 2021-01-31 22:59:31 Me Off He gave the president a solution that can happen at the stroke if a pen. Otherwise Schumer has to get how many Republicans on board. Oh that right, more zero than making it impossible, because Republicans. He only has half of the Senate. UC6Onk0s389b-mQRIs5Y6MGw http://www.youtube.com/channel/UC6Onk0s389b-mQRIs5Y6MGw 1 UgyqDfE0g2zHlqlEBcR4AaABAg krumble104 UgyqDfE0g2zHlqlEBcR4AaABAg.9JBkHkS-mmg9JBmxOSyOQ4 0 2021-01-31 20:42:30 Kitter Duhn Why is he in leadership again? Oh right he is sharing power with moscow mitch lol UC4cxpr06ZhrPm4WkkRNbyhQ http://www.youtube.com/channel/UC4cxpr06ZhrPm4WkkRNbyhQ 1 UgyqDfE0g2zHlqlEBcR4AaABAg krumble104 UgwA_JmMBtQkbOkTQYd4AaABAg 1 4 2021-01-31 20:09:07 aspookyfox Stupid wall. UCpIxts7_5PlQOiVrUsfOmKg http://www.youtube.com/channel/UCpIxts7_5PlQOiVrUsfOmKg 0 UgwA_JmMBtQkbOkTQYd4AaABAg.9JBj7rpBG2e9JBjK47_tq- 0 2021-01-31 20:10:47 Mark Childers Batshit crazy UCx6HV6wgK_l8L9xcobfSTZg http://www.youtube.com/channel/UCx6HV6wgK_l8L9xcobfSTZg 1 UgwA_JmMBtQkbOkTQYd4AaABAg aspookyfox Ugze0uAwrj3nNq9iKB14AaABAg 0 0 2021-01-31 20:36:00 Lubi Bliss Lots of people with being butt hurt BECAUSE there cult leader trump let them down lol 😆 or should I say the farrrr right ...lol 😆🤣🤣🤣🤣🤣 UC4tdEcUWkT9yXGkR8Pum90g http://www.youtube.com/channel/UC4tdEcUWkT9yXGkR8Pum90g 0 UgzYlep0CMCFldkuIk54AaABAg 4 4 2021-01-31 22:04:27 Michael RCH Remember that one of the most effective ways to reduce your impact on the environment and climate is to switch to a plant-based diet. <br /><br />The science now shows that the only pathway to net zero emissions requires us to switch away from animal agriculture and to plant-rich diets.<br /><br />I would post links to the studies but my comment is deleted if I try!!! UCyYpBpFWQWN1ZhL4JJaiZJw http://www.youtube.com/channel/UCyYpBpFWQWN1ZhL4JJaiZJw 0 UgzYlep0CMCFldkuIk54AaABAg.9JBwKc13uv-9JC5qgJa5ZJ 0 2021-01-31 23:36:21 Michael RCH @teammm Beans, rice, legumes, fruit and vegetables are the most affordable food available. The poorest people in the world are eating almost entirely plant-based in most cases. And a diet based on these foods dramatically reduces the risks of pretty much all the main killers in developed countries such as heart disease, cancer and diabetes. UCyYpBpFWQWN1ZhL4JJaiZJw http://www.youtube.com/channel/UCyYpBpFWQWN1ZhL4JJaiZJw 1 UgzYlep0CMCFldkuIk54AaABAg Michael RCH UgzYlep0CMCFldkuIk54AaABAg.9JBwKc13uv-9JC5IXGTq-- 0 2021-01-31 23:31:33 teammm Most people are not going to do that because it’s not economically feasible for everyone yet. We can do more by changing fuel consumption, cars, planes, energy. Plant-based foods are not affordable for many. UCAnruZ51PalmW4U10u7zxOQ http://www.youtube.com/channel/UCAnruZ51PalmW4U10u7zxOQ 1 UgzYlep0CMCFldkuIk54AaABAg Michael RCH UgzYlep0CMCFldkuIk54AaABAg.9JBwKc13uv-9JC58FvyF96 1 2021-01-31 23:30:08 Michael RCH @shawn mckernan And it's amazing what you can get for your money ;) UCyYpBpFWQWN1ZhL4JJaiZJw http://www.youtube.com/channel/UCyYpBpFWQWN1ZhL4JJaiZJw 1 UgzYlep0CMCFldkuIk54AaABAg Michael RCH UgzYlep0CMCFldkuIk54AaABAg.9JBwKc13uv-9JBwlXIAycT 0 2021-01-31 22:08:16 shawn mckernan Also wear used clothing because clothing is one of our major greenhouse footprint factors as well as water and land use. UCgMsJ_xm6PlNtCaCnSjyqJw http://www.youtube.com/channel/UCgMsJ_xm6PlNtCaCnSjyqJw 1 UgzYlep0CMCFldkuIk54AaABAg Michael RCH Ugx3FvgH1p6gqlQypNJ4AaABAg 2 2 2021-01-31 20:24:35 voidofreason To combat climate change the entire energy infrastructure of the country and even the world needs to be changed over to green energy. How the eff can an executive order do that!!! Congress needs to pass policies, laws and create programs to do that and that&#39;s congresses job!!! UCgHZqUEuM--ThdfMSqDUH7w http://www.youtube.com/channel/UCgHZqUEuM--ThdfMSqDUH7w 0 Ugx3FvgH1p6gqlQypNJ4AaABAg.9JBkuBxEFuu9JCfJVKengD 0 2021-02-01 04:54:59 Jcewazhere Order half of America's active duty military to join the engineering corps. Then spend some of that nearly trillion dollars a year sticking green power production and energy storage onto every square meter of federally owned property. Convert every mail truck to electric. That was planned long ago, and some say it was the reason the post office gutting bill was passed. Bring the aircraft carriers and submarines into port and use their powerplants to help offset a (tiny) part of the grid until they're actually needed for violence. That's just off the top of my head and I don't have a team of motivated specialists to call on. UC-ZnjRKydrcnpoBYLpqh89w http://www.youtube.com/channel/UC-ZnjRKydrcnpoBYLpqh89w 1 Ugx3FvgH1p6gqlQypNJ4AaABAg voidofreason Ugx3FvgH1p6gqlQypNJ4AaABAg.9JBkuBxEFuu9JBmh9C8wqi 0 2021-01-31 20:40:17 voidofreason He & the rest of Congress is in the pocket of dirty energy, that's why they will not do this. They are afraid of losing their bribes, they are all corrupt!!!!! UCgHZqUEuM--ThdfMSqDUH7w http://www.youtube.com/channel/UCgHZqUEuM--ThdfMSqDUH7w 1 Ugx3FvgH1p6gqlQypNJ4AaABAg voidofreason UgzPDnRzE0dWDAEi_pV4AaABAg 0 0 2021-02-01 20:49:45 Shade Bleu Biden isn&#39;t going to do anything big. UCNyDTp6YvfDGsWzvZHff_Dg http://www.youtube.com/channel/UCNyDTp6YvfDGsWzvZHff_Dg 0 Ugw5JeD3YpefB_f96Eh4AaABAg 1 2 2021-01-31 20:18:56 CD Left was lame enough to stand by and let it happen. We maybe right and we maybe left and want the same thing with no option to choose it. We ended up being wrong doing nothing. Let&#39;s see action before we act cultish and back no change. Democracy, wealth distribution, racist policies, injustice, global warming and pandemic are still issues delayed by the love affair of left and right. That needs to stop. I&#39;m for pressuring the left to actually stand up. Ex Republican Biden voter UCu1XbbF3UkdrUTQ4hxx2luA http://www.youtube.com/channel/UCu1XbbF3UkdrUTQ4hxx2luA 0 Ugw5JeD3YpefB_f96Eh4AaABAg.9JBkFlHc0ES9JBl_HtdqAH 0 2021-01-31 20:30:28 CD @All you Fascists Are bound to lose maybe. Let's see... UCu1XbbF3UkdrUTQ4hxx2luA http://www.youtube.com/channel/UCu1XbbF3UkdrUTQ4hxx2luA 1 Ugw5JeD3YpefB_f96Eh4AaABAg CD UgwAxEExW7ViHgL8B8x4AaABAg 6 0 2021-02-01 16:22:05 lasso atrain If ice is melting at an alarming rate in the northern latitudes, how come the planet is spinning faster. They have always taught us that the more ice at the caps and you spin faster .like an ice skater who pulls their arms in loser too the body spins faster? UCqS1mfYCirPoM8_eeA7ay6w http://www.youtube.com/channel/UCqS1mfYCirPoM8_eeA7ay6w 0 UgwAxEExW7ViHgL8B8x4AaABAg.9JDtwuBZZLD9JHAkNzyf1o 0 2021-02-02 22:55:23 lasso atrain That wasn't nice but because your of no consequences or that is unimportant in this adult conversation why dont you go out side and play or do your homework .better yet go practice the national anthem and if you dont know the words then say the pledge of aligence 100 times and think about it. Try concentrating about the sounds that come out of your mouth .see if you can make sense out of them. UCqS1mfYCirPoM8_eeA7ay6w http://www.youtube.com/channel/UCqS1mfYCirPoM8_eeA7ay6w 1 UgwAxEExW7ViHgL8B8x4AaABAg lasso atrain UgwAxEExW7ViHgL8B8x4AaABAg.9JDtwuBZZLD9JGvUqGf53X 0 2021-02-02 20:33:18 J5 Nephews @lasso atrain You have to confusing and stupid theory. Tell it to the polar bears UCUursq3BF7bfwBvgJVsMh6w http://www.youtube.com/channel/UCUursq3BF7bfwBvgJVsMh6w 1 UgwAxEExW7ViHgL8B8x4AaABAg lasso atrain UgwAxEExW7ViHgL8B8x4AaABAg.9JDtwuBZZLD9JFLX0EqPHZ 0 2021-02-02 05:51:03 lasso atrain I am not in denial but there is something that I find a little unscientific . And something a little radical and subverted about the people that refuse to listen to any other discussion about climate. To them they will label me everything from being on meds , my political party they will attack . They will threaten me , insult me , label me an uneducated bla bla bla but they refuse to give me a rational answer to this. If they base there case for climate change on scientific data then how can it be valid when they don't include the world wide 24/7 use of weather modification how can they claim the climate is changing when scientist and private companies stake claims on weather systems ? State and county pay these geo engineer's to push these weather systems over water sheds then use silver iodine to dump the water into these water sheds so they can use the water for hydro electric and sell the customers the water. Not only does that leave farmers who rely first on rain to water crops .especially small farmers but there is a whole list of other problems it creates. Then there is the solar radiation management who intentionally try and block sunlight by ionizing the atmosphere or by releasing aerosols into the atmosphere that in turn creates water vapor (water vapor is the strongest of all green house gases) and I won't get into the increase in U/v light it causes. There is to many types of weather modification to list and evidence of it I can submit if you dont believe me. But how valid is their data when weather modification is taking place world wide? UCqS1mfYCirPoM8_eeA7ay6w http://www.youtube.com/channel/UCqS1mfYCirPoM8_eeA7ay6w 1 UgwAxEExW7ViHgL8B8x4AaABAg lasso atrain UgwAxEExW7ViHgL8B8x4AaABAg.9JDtwuBZZLD9JEyFUzE-5X 0 2021-02-02 02:18:57 lasso atrain They taught us that in 6th grade . They told us that it was like an ice skater who pulls their arms in close to the body and they spin faster. That was the only point I was making is if we are losing ice at alarming rates why is the earth breaking all time records for spin rate. Wouldn't the planet be slowing down ? UCqS1mfYCirPoM8_eeA7ay6w http://www.youtube.com/channel/UCqS1mfYCirPoM8_eeA7ay6w 1 UgwAxEExW7ViHgL8B8x4AaABAg lasso atrain UgwAxEExW7ViHgL8B8x4AaABAg.9JDtwuBZZLD9JDyzh9SI_N 1 2021-02-01 17:06:09 Xyz Same The easiest way to know about melting ice is to MEASURE it. Not to theorize abour the spin of the earth. UCr51HmsgC03OLi1a-TUlIUQ http://www.youtube.com/channel/UCr51HmsgC03OLi1a-TUlIUQ 1 UgwAxEExW7ViHgL8B8x4AaABAg lasso atrain UgwAxEExW7ViHgL8B8x4AaABAg.9JDtwuBZZLD9JDyqg4DNDi 1 2021-02-01 17:04:55 Xyz Same Who has taught you _that ?_ That is the first time I ever heard that claim and I can't imagine WHY that should impact rotation speed IF the poles would be ice free. (The ice caps have an impressive height but it is not the Himalaya). The amount melted right now would not prompt such effects anyway. The problem is that you get at a point of no return, the melting itself of ALL the ice would take a a few hundred years. Bad enough to raise sea levels within a few decades and different weather patterns, the fresh water affecting ocean currents etc. - and it does not matter what humans do then, it cannot be stopped. UCr51HmsgC03OLi1a-TUlIUQ http://www.youtube.com/channel/UCr51HmsgC03OLi1a-TUlIUQ 1 UgwAxEExW7ViHgL8B8x4AaABAg lasso atrain Ugy_LInwGgs9llIDujh4AaABAg 0 4 2021-01-31 20:28:53 Rodney Rucker Where the f*** is that $2,000 Democrat UC2uK1GwUR8O4IxyLdqfMFzA http://www.youtube.com/channel/UC2uK1GwUR8O4IxyLdqfMFzA 0 UgwQeoN4GdfvL3ViTa94AaABAg 6 1 2021-01-31 21:20:03 infomationiskey Racism is the 1st Emergency we should be caring about. That’s what’s going to hurt us all when everything’s said and done. UCx_i4cskmW6XcNf2h8eKPTg http://www.youtube.com/channel/UCx_i4cskmW6XcNf2h8eKPTg 0 UgwQeoN4GdfvL3ViTa94AaABAg.9JBrFNbUbn29JD10c58Ve0 0 2021-02-01 08:13:23 infomationiskey @Wanda Setzer climate crisis and Racism/WS are directly linked. “Getting Racist to treat us better” is a shallow way of putting it. We’re used to seeing (our) world on fire. Thanks for your comment. UCx_i4cskmW6XcNf2h8eKPTg http://www.youtube.com/channel/UCx_i4cskmW6XcNf2h8eKPTg 1 UgwQeoN4GdfvL3ViTa94AaABAg infomationiskey UgwQeoN4GdfvL3ViTa94AaABAg.9JBrFNbUbn29JD-z-kNIBp 0 2021-02-01 08:04:17 infomationiskey @Wanda Setzer you left out the part about how we’ll get these disasters first. Intentionally at that. UCx_i4cskmW6XcNf2h8eKPTg http://www.youtube.com/channel/UCx_i4cskmW6XcNf2h8eKPTg 1 UgwQeoN4GdfvL3ViTa94AaABAg infomationiskey UgwQeoN4GdfvL3ViTa94AaABAg.9JBrFNbUbn29JCzg119Uhf 0 2021-02-01 07:52:58 infomationiskey @ELIZABETH LEE absolutely!! UCx_i4cskmW6XcNf2h8eKPTg http://www.youtube.com/channel/UCx_i4cskmW6XcNf2h8eKPTg 1 UgwQeoN4GdfvL3ViTa94AaABAg infomationiskey UgwQeoN4GdfvL3ViTa94AaABAg.9JBrFNbUbn29JC2zRGhtBK 1 2021-01-31 23:11:19 ELIZABETH LEE To pretend black and brown people wont get fucked over by pollution first. Oh and those climate refugees arent coming from Sweden. Maybe reparations can be rolled into a government initiative to end the job gaps between unemployed blacks and whites. Like instead of straight reparations and cash, maybe some kind of energy plan. Pretending racism and exploitation arent linked and we can solve everything one at a time like a deranged Easter bunny. UCkjDC4a2CmM2K84-mbZdtcg http://www.youtube.com/channel/UCkjDC4a2CmM2K84-mbZdtcg 1 UgwQeoN4GdfvL3ViTa94AaABAg infomationiskey UgwQeoN4GdfvL3ViTa94AaABAg.9JBrFNbUbn29JBuWgus7Ey 3 2021-01-31 21:48:37 Adam Taylor We get it. Racism is ONE of America's biggest problems. And Biden has started some work on that. But without working to fix climate change, there won't be much of a country left to worry about how racist it is. Also, as more areas of the US get destroyed, farmland fails, disease spread, resources dwindle... and people start fighting each other to survive... I'm pretty sure that's going to bring racists out of the woodwork. White folks who will try to make black people slaves again, and refuse to give them their fair share of the resources. So it's most definitely a massive issue that needs immediate attention. UC7LgDOjWYusQpZf4lTwy0zQ http://www.youtube.com/channel/UC7LgDOjWYusQpZf4lTwy0zQ 1 UgwQeoN4GdfvL3ViTa94AaABAg infomationiskey UgwQeoN4GdfvL3ViTa94AaABAg.9JBrFNbUbn29JBsmyFNia- 3 2021-01-31 21:33:30 Wanda Setzer Destroying racism isn't going to do you much good if the country is covered in wildfires, drought, hurricanes, tornadoes and lord knows what all. They're trading water rights on the stock exchange! Which do you want more? Air and water, or trying to get racists to treat you better, which we cannot legislate? I thought we took care of that when I was a kid, and look how far we haven't come. UCYiLILhQjqJUjwpts13AYjg http://www.youtube.com/channel/UCYiLILhQjqJUjwpts13AYjg 1 UgwQeoN4GdfvL3ViTa94AaABAg infomationiskey UgwedaL-n0uKfk-8qfp4AaABAg 0 2 2021-02-01 10:40:32 Marcy Grennell There are poor white people that are impacted by the climate!!!!<br />Just saying😁✌❤ UCo0pkiD6pnr2Lma3KdCpGog http://www.youtube.com/channel/UCo0pkiD6pnr2Lma3KdCpGog 0 UgzDCNDUUzUXgpEuyPV4AaABAg 1 1 2021-01-31 20:26:33 Alan Smith General Motors: Americans DO NOT need Stimulus Checks, despite the fact that the US Gov&#39;t bailed GM out using American Tax Payers Money. Back in the day, GM paid a Billion Dollars in taxes. Thanks to Trump, we get a refund! UCAlaxony171sHf4dDxgwdDA http://www.youtube.com/channel/UCAlaxony171sHf4dDxgwdDA 0 UgzDCNDUUzUXgpEuyPV4AaABAg.9JBl7ckzUl79JBpxUgytnK 0 2021-01-31 21:08:43 jaykay415 I didn't get a refund. I paid WAY more taxes this past year. UC-wR0D50R6eh-V5bR9CvadA http://www.youtube.com/channel/UC-wR0D50R6eh-V5bR9CvadA 1 UgzDCNDUUzUXgpEuyPV4AaABAg Alan Smith Ugw2i00e9UelQh3GMrt4AaABAg 1 1 2021-01-31 20:29:38 Wild eagle Yeah the Democrats are full of S....T. UC2bh2dZCDdG_6NLRdSuIoBQ http://www.youtube.com/channel/UC2bh2dZCDdG_6NLRdSuIoBQ 0 Ugw2i00e9UelQh3GMrt4AaABAg.9JBlU9-XnVN9JBp_ylVi3j 0 2021-01-31 21:05:31 Rory Gay Wild eagle: you got the wrong party, pal UCr1g8pGilL-4YhD3cM5LhKQ http://www.youtube.com/channel/UCr1g8pGilL-4YhD3cM5LhKQ 1 Ugw2i00e9UelQh3GMrt4AaABAg Wild eagle Ugwm45_3YQTQ5JQsnux4AaABAg 0 1 2021-01-31 20:36:47 Mplay1983 Senator Schumer has been acting like he has no power as soon as he found out he became majority leader. Thanks for calling this BS out John. Just like Pelosi needs to go so does Schumer. The guy ONLY cares about repealing the SALT cap deduction because it helps his rich donors. UCt-X7G9dnd6TF3rNltvZcOw http://www.youtube.com/channel/UCt-X7G9dnd6TF3rNltvZcOw 0 UgzcaH9MLJxEl-lUJ6l4AaABAg 2 0 2021-01-31 21:03:14 jaykay415 Actually, &quot;wealthy white people&quot; are feeling the effects of climate emergencies too. It&#39;s all around you, Adrienne, in the hills surrounding Los Angeles, which are especially vulnerable to fires. Also, you seem to conflate climate change with pollution, and it&#39;s really not the same thing. UC-wR0D50R6eh-V5bR9CvadA http://www.youtube.com/channel/UC-wR0D50R6eh-V5bR9CvadA 0 UgzcaH9MLJxEl-lUJ6l4AaABAg.9JBpKG8dE3N9JCeiRj1pRP 1 2021-02-01 04:49:47 Jcewazhere Wealthy people can afford fire insurance and second/third homes. Sure climate change affects them somewhat, but nowhere near the same extent it does to poor people. UC-ZnjRKydrcnpoBYLpqh89w http://www.youtube.com/channel/UC-ZnjRKydrcnpoBYLpqh89w 1 UgzcaH9MLJxEl-lUJ6l4AaABAg jaykay415 UgzcaH9MLJxEl-lUJ6l4AaABAg.9JBpKG8dE3N9JBrAVEtGn- 3 2021-01-31 21:19:22 Ashley Mcgaha I think the reason she mentions pollution is because it is causing the climate crisis to worsen faster. So to deal with pollution you are working on the climate crisis. UC0BVM4U0JntIv0-RjSp1vsA http://www.youtube.com/channel/UC0BVM4U0JntIv0-RjSp1vsA 1 UgzcaH9MLJxEl-lUJ6l4AaABAg jaykay415 UgyrODOSaF0vqpDT4LF4AaABAg 1 0 2021-02-01 10:15:27 Wout V It&#39;s always nice to know that as a white person, I won&#39;t be harmed by climate change and pollution. UC-RxVVxqT3CH8Fkv9dFmEkA http://www.youtube.com/channel/UC-RxVVxqT3CH8Fkv9dFmEkA 0 UgyrODOSaF0vqpDT4LF4AaABAg.9JDEzZUyHTJ9JESGIkQxA9 0 2021-02-01 21:30:42 Jean Alton Racist or what? Climate change is ready to kill us all ; it doesn't care what color our skin is or where we live. the world is changing fast and if we're going to survive we have to change with it. How about joining us? UCs9OV-u0kEXYo-xvMy2bF0w http://www.youtube.com/channel/UCs9OV-u0kEXYo-xvMy2bF0w 1 UgyrODOSaF0vqpDT4LF4AaABAg Wout V
360.150794
1,787
0.82536
b30898332bbcce7ab093777e1a5032e081651c67
21,898
swift
Swift
Kebab/RootViewController.swift
minikin/Kebab-Swift
3753307c87eedf4813224c8451fb7bcc25c9c74e
[ "Apache-2.0" ]
2
2019-05-31T18:40:49.000Z
2020-06-20T17:39:10.000Z
Kebab/RootViewController.swift
minikin/Kebab-Swift
3753307c87eedf4813224c8451fb7bcc25c9c74e
[ "Apache-2.0" ]
4
2019-06-03T14:25:16.000Z
2019-06-03T14:25:17.000Z
Kebab/RootViewController.swift
minikin/Kebab-Swift
3753307c87eedf4813224c8451fb7bcc25c9c74e
[ "Apache-2.0" ]
1
2021-07-13T09:56:53.000Z
2021-07-13T09:56:53.000Z
// // RootViewController.swift // Kebab // // Created by Sasha Prokhorenko on 9/24/15. // Copyright © 2015 Minikin. All rights reserved. // import UIKit import CoreLocation import PSOperations import Mapbox import RealmSwift import Kingfisher import GSMessages class RootViewController: UIViewController { /// Outlet for the collectionView (bottom) @IBOutlet weak var venueCollectionView: UICollectionView! /// Outlet for the map view @IBOutlet weak var mapView: MGLMapView! // MARK: Properties /// Operation queue let operationQueue = OperationQueue() /// stopUpdateLocation BOOL var stopUpdateLocation = false /// Convenient property to remember the last location var lastLocation: MGLUserLocation? /// Location manager to get the user's location var locationManager:CLLocationManager? // Realm properties let realm = try! Realm() var venuesArray = [PlaceModel]() var notificationToken: NotificationToken? // NSUserDefaults let defaults = NSUserDefaults.standardUserDefaults() var userLocation : CLLocation? var annotationImage : MGLAnnotationImage? override func viewDidLoad() { super.viewDidLoad() // Set Mapbox mapView.styleURL = NSURL(string: "mapbox://styles/mapbox/dark-v8") mapView.delegate = self mapView.showsUserLocation = true mapView.userTrackingMode = .FollowWithHeading mapView.attributionButton.hidden = true annotationImage = self.mapView.dequeueReusableAnnotationImageWithIdentifier("nonSelectedImage") // Set collectionView delegate & datasource self.venueCollectionView.delegate = self self.venueCollectionView.dataSource = self self.venueCollectionView.backgroundColor = UIColor.clearColor() // Set navigation bar style setNavigationBarStyle() // Realm instances send out notifications to other instances on other threads every time a write transaction is committed. notificationToken = realm.addNotificationBlock { notification, realm in // RELOAD ALL THE DATA! self.venueCollectionView.reloadData() } // Observer : NSUserDefaultsDidChangeNotification NSNotificationCenter.defaultCenter().addObserverForName(NSUserDefaultsDidChangeNotification, object: nil, queue: NSOperationQueue.mainQueue()){ _ in self.refreshVenues(self.userLocation) } /* We can use a `KebabLocationOperation` to retrieve the user's current location. Once we have the location, we can compute how far they currently are from the epicenter of the earthquake. If this operation fails (ie, we are denied access to their location), then the text in the `UILabel` will remain as what it is defined to be in the storyboard. */ let locationOperation = KebabLocationOperation(accuracy: kCLLocationAccuracyKilometer) { location in self.userLocation = location if self.userLocation != nil { self.refreshVenues(self.userLocation) } else { self.locationError() } } let networkObserver = NetworkObserver() locationOperation.addObserver(networkObserver) operationQueue.addOperation(locationOperation) } override func viewWillAppear(animated: Bool) { super.viewWillAppear(false) NSNotificationCenter.defaultCenter().addObserver(self, selector:"loadingDataMsg", name: Notifications.kebabGetPlaceOperationStarted, object: nil) NSNotificationCenter.defaultCenter().addObserver(self, selector:"locatingUser", name: Notifications.kebabDidStartLocatingUser, object: nil) NSNotificationCenter.defaultCenter().addObserver(self, selector:"locationError", name: Notifications.kebabDidFinishLocatingUserWithError, object:nil) } override func viewWillDisappear(animated: Bool) { super.viewDidAppear(false) // Remove realm notification notification realm.removeNotification(notificationToken!) } // Populate view with data private func refreshVenues(location: CLLocation?) { // If location isn't nil, set it as the last location else show error message to user if location != nil { userLocation = location } else { return locationError() } // If the last location isn't nil, i.e. if a lastLocation was set OR parameter location wasn't nil guard let location = userLocation else { return } let venueCategory = defaults.stringForKey("Junkfood categories")! let searchRadius = defaults.stringForKey("Search radius")! print(venueCategory, searchRadius) /* Algorithm for offsetting a latitude/longitude by some amount of meters http://gis.stackexchange.com/questions/2951/algorithm-for-offsetting-a-latitude-longitude-by-some-amount-of-meters */ let dLat = ((Double(searchRadius)! / Utils.earthRadius ) * 180.0/M_PI ).roundToPlaces(4) let dLon = ((Double(searchRadius)! / (Utils.earthRadius * cos(M_PI * location.coordinate.latitude/180.0))) * 180.0/M_PI).roundToPlaces(4) // Set up predicate that ensures the fetched venues are within the region let predicate = NSPredicate(format:"latitude > %f AND latitude < %f AND longitude > %f AND longitude < %f AND venueCategory == %@", location.coordinate.latitude - dLat, location.coordinate.latitude + dLat, location.coordinate.longitude - dLon, location.coordinate.longitude + dLon, venueCategory) // Download data from the internet and save to Realm. // Please, check GetPlaces.swift, ParsePlace.swift, DownloadPlaces.swift let getPlaceOperation = GetPlacesOperation (location: userLocation!) { dispatch_async(dispatch_get_main_queue()) { // Get the venues from Realm. Note that the "sort" isn't part of Realm, it's Swift, and it defeats Realm's lazy loading nature! self.venuesArray = self.realm.objects(PlaceModel).filter(predicate).sort{ $0.venueRating > $1.venueRating } self.updateUI() } } operationQueue.addOperation(getPlaceOperation) } /// Updtae UI func updateUI() { if venuesArray.count == 0 { removeAllAnnotations() venueCollectionView.reloadData() self.showMessage("Sorry, we can't find any venues.", type: .Warning , options: [.Animation(.Fade), .AnimationDuration(0.3), .AutoHide(true), .AutoHideDelay(8.0), .Height(44.0), .Position(.Top), .TextColor(UIColor.blackColor())]) } else { removeAllAnnotations() venueCollectionView.reloadData() mapView.addAnnotations(venuesArray) zoomToFitAllAnnotation() self.hideMessage() } } /// Remove all annotation from mapView (MapBox) func removeAllAnnotations() { guard let annotations = mapView.annotations else { return } if annotations.count != 0 { for annotation in annotations { mapView.removeAnnotation(annotation) } } else { return } } /// Zoom out mapView to fit all annotations on screen func zoomToFitAllAnnotation() { if mapView.annotations != nil { let annotations = mapView.annotations! guard annotations.count > 1 else { return } let firstCoordinate = mapView.annotations![0].coordinate //Find the southwest and northeast point var northEastLatitude = firstCoordinate.latitude var northEastLongitude = firstCoordinate.longitude var southWestLatitude = firstCoordinate.latitude var southWestLongitude = firstCoordinate.longitude // for annotation in mapView.annotations!{ let coordinate = annotation.coordinate northEastLatitude = max(northEastLatitude, coordinate.latitude) northEastLongitude = max(northEastLongitude, coordinate.longitude) southWestLatitude = min(southWestLatitude, coordinate.latitude) southWestLongitude = min(southWestLongitude, coordinate.longitude) } let verticalMarginInPixels = 80.0 let horizontalMarginInPixels = 40.0 let verticalMarginPercentage = verticalMarginInPixels/Double(self.view.bounds.size.height) let horizontalMarginPercentage = horizontalMarginInPixels/Double(self.view.bounds.size.width) let verticalMargin = (northEastLatitude-southWestLatitude)*verticalMarginPercentage let horizontalMargin = (northEastLongitude-southWestLongitude)*horizontalMarginPercentage southWestLatitude -= verticalMargin southWestLongitude -= horizontalMargin northEastLatitude += verticalMargin northEastLongitude += horizontalMargin if (southWestLatitude < -85.0) { southWestLatitude = -85.0 } if (southWestLongitude < -180.0) { southWestLongitude = -180.0 } if (northEastLatitude > 85) { northEastLatitude = 85.0 } if (northEastLongitude > 180.0) { northEastLongitude = 180.0 } // Final step let rectToDisplay = MGLCoordinateBounds(sw: CLLocationCoordinate2DMake(southWestLatitude, southWestLongitude), ne: CLLocationCoordinate2DMake(northEastLatitude, northEastLongitude)) mapView.setVisibleCoordinateBounds(rectToDisplay, edgePadding: UIEdgeInsetsMake(0, 0, 140, 0), animated: true) } else if mapView.annotations?.count <= 2 { mapView.setCenterCoordinate(CLLocationCoordinate2DMake((lastLocation?.coordinate.latitude)!, (lastLocation?.coordinate.longitude)!), zoomLevel: 15, animated: true) } else { print("No annotations yet") } } // Get new data and zoom to fit all annotations @IBAction func centerOnUser(sender: AnyObject) { // When a new location update comes in, reload from Realm and from Foursquare if userLocation != nil { refreshVenues(userLocation) } else { locationError() } } // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. guard let indexPaths = venueCollectionView.indexPathsForSelectedItems(), detailVC = segue.destinationViewController as? DetailsTableViewController else { return } // Send data to Deatails View Controller detailVC.venueModel = venuesArray[indexPaths[0].row] detailVC.queue = operationQueue } // Style for navigationBar func setNavigationBarStyle() { // Set navigation bar title, back button image and navigation bar appareance navigationController!.navigationBar.barTintColor = UIColor(red: 0.13, green:0.13, blue: 0.13, alpha: 1.0) navigationController!.navigationBar.tintColor = .whiteColor() navigationItem.titleView = UIImageView(image: UIImage(named: "kebab")) navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName : UIColor.whiteColor()] let backItem = UIBarButtonItem(title: "", style:.Plain, target: nil, action: nil) navigationItem.backBarButtonItem = backItem navigationController?.navigationBar.backIndicatorImage = UIImage(named: "Back") navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage(named: "Back") } // MARK: - Error & Info messages // Display location error func locationError() { switch CLLocationManager.authorizationStatus() { case .Denied: showNoPermissionsAlert() case .Restricted: showNoPermissionsAlert() default: self.showMessage("Sorry, we can't determine your location.", type: .Error, options: [.Animation(.Slide), .AnimationDuration(0.3), .AutoHide(true), .AutoHideDelay(10.0), .Height(44.0), .Position(.Top), .TextColor(UIColor.blackColor())]) } } // Hide loading data message after operation is finished func hideMsg() { self.hideMessage() } // ShowNoPermissionsAlert func showNoPermissionsAlert() { let alertController = UIAlertController(title: "Sorry, we can't determine your location.", message: "Please, enable location updates in settings and restart the app.", preferredStyle: .Alert) let openSettings = UIAlertAction(title: "Open settings", style: .Default, handler: { (action) -> Void in let URL = NSURL(string: UIApplicationOpenSettingsURLString) defer { dispatch_async( dispatch_get_main_queue(),{ UIApplication.sharedApplication().openURL(URL!) }) } }) let okAction = UIAlertAction(title: "Cancel", style: .Default, handler: { (action) -> Void in self.dismissViewControllerAnimated(true, completion: nil) }) alertController.addAction(okAction) alertController.addAction(openSettings) presentViewController(alertController, animated: true, completion: nil) } func loadingDataMsg() { self.showMessage("Loading data ...", type: .Info, options: [.Animation(.Fade), .AnimationDuration(0.3), .Height(44.0), .AutoHide(false), .Position(.Top), .TextColor(UIColor.blackColor())]) } func locatingUser() { self.showMessage("Determining your location ...", type: .Info, options: [.Animation(.Fade), .AnimationDuration(0.3), .Height(44.0), .AutoHide(false), .Position(.Top), .TextColor(UIColor.blackColor())]) } } // MARK: - MGLMapViewDelegate extension RootViewController: MGLMapViewDelegate { // Load data after we get user location func mapView(mapView: MGLMapView, didUpdateUserLocation userLocation: MGLUserLocation?) { if stopUpdateLocation { return } stopUpdateLocation = true lastLocation = userLocation } // Set custom image for imageForAnnotation func mapView(mapView: MGLMapView, imageForAnnotation annotation: MGLAnnotation) -> MGLAnnotationImage? { // Attempt to reuse a cached image if annotationImage == nil { let image = UIImage(named: "Pin") // Instantiate MGLAnnotationImage with our image and use it for this annotation annotationImage = MGLAnnotationImage(image: image!, reuseIdentifier: "nonSelectedImage") } return annotationImage } func mapView(mapView: MGLMapView, didSelectAnnotation annotation: MGLAnnotation) { if let title = annotation.title where title == "Some Annotation" { annotationImage!.image = UIImage(named: "selectedPin")! } } // Show callout func mapView(mapView: MGLMapView, annotationCanShowCallout annotation: MGLAnnotation) -> Bool { return true } func mapView(mapView: MGLMapView, didFailToLocateUserWithError error: NSError) { locationError() } // In case we can't load a mapView show an error func mapViewDidFailLoadingMap(mapView: MGLMapView, withError error: NSError) { self.showMessage("Sorry, we can't load map. Check you internet connection.", type: .Error, options: [.Animation(.Slide), .AnimationDuration(0.3), .AutoHide(true), .AutoHideDelay(5.0), .Height(88.0), .Position(.Top), .TextNumberOfLines(2), .TextColor(UIColor.blackColor())]) } } // MARK: - UICollectionViewDataSource & UICollectionViewDelegate extension RootViewController : UICollectionViewDataSource, UICollectionViewDelegate { func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int { return 1 } func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { // When venues is nil, this will return 0 (nil-coalescing operator ??) return venuesArray.count ?? 0 } func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCellWithReuseIdentifier("venueCell", forIndexPath: indexPath) as! PlaceCollectionViewCell // Make Venue picture round and add border cell.venueImage.layer.cornerRadius = cell.venueImage.frame.size.width / 2 cell.venueImage.clipsToBounds = true cell.venueImage.layer.borderWidth = 2 cell.venueImage.layer.borderColor = Theme.ImageHelper.mainColor.CGColor // Set data for cell let venue = venuesArray[indexPath.row] cell.venueName.text = venue.venueName cell.venueAddress.text = venue.venueAddress // Setting cell image with Kingfisher guard let imgUrl = NSURL(string: venue.featuredPhoto) else { KebabError.NoPhotoUrl return cell } cell.venueImage.kf_showIndicatorWhenLoading = true cell.venueImage.kf_indicator?.color = Theme.ImageHelper.mainColor cell.venueImage.kf_setImageWithURL(imgUrl, placeholderImage: UIImage(contentsOfFile: "noImage"), optionsInfo: [.Transition(ImageTransition.Fade(0.5))]) { (_, error, _, imageURL) in if error != nil { print("PRINT ERROR:", error) } } return cell } func collectionView(collectionView: UICollectionView, didEndDisplayingCell cell: UICollectionViewCell, forItemAtIndexPath indexPath: NSIndexPath) { let cell = collectionView.dequeueReusableCellWithReuseIdentifier("venueCell", forIndexPath: indexPath) as! PlaceCollectionViewCell // This will cancel all unfinished downloading task when the cell disappearing. cell.venueImage.kf_cancelDownloadTask() } // TODO: - ADD ERROR CONDITIONS OR NOT func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) { /* Instead of performing the segue directly, we can wrap it in a `BlockOperation`. This allows us to attach conditions to the operation. For example, you could make it so that you could only perform the segue if the network is reachable and you have access to the user's Photos library. If you decide to use this pattern in your apps, choose conditions that are sensible and do not place onerous requirements on the user. It's also worth noting that the Observer attached to the `BlockOperation` will cause the tableview row to be deselected automatically if the `Operation` fails. You may choose to add your own observer to introspect the errors reported as the operation finishes. Doing so would allow you to present a message to the user about why you were unable to perform the requested action. */ let operation = BlockOperation { self.performSegueWithIdentifier("showVenue", sender: nil) } operation.addCondition(MutuallyExclusive<UIViewController>()) let blockObserver = BlockObserver { _, errors in /* If the operation errored (ex: a condition failed) then the segue isn't going to happen. We shouldn't leave the row selected. */ if !errors.isEmpty { dispatch_async(dispatch_get_main_queue()) { self.venueCollectionView.deselectItemAtIndexPath(indexPath, animated: true) } } } operation.addObserver(blockObserver) operationQueue.addOperation(operation) } // MARK: - Show callout on map func scrollViewDidEndDecelerating(scrollView: UIScrollView) { // This works especially well when each item in your collection view takes up the whole screen. let visibleRect = CGRect(origin:venueCollectionView.contentOffset, size:venueCollectionView.bounds.size) let visiblePoint = CGPointMake(CGRectGetMidX(visibleRect), CGRectGetMidY(visibleRect)) guard let visibileIndexPath = venueCollectionView.indexPathForItemAtPoint(visiblePoint) else { return print("No cells to display")} let selectedCell = venueCollectionView.cellForItemAtIndexPath(visibileIndexPath) as! PlaceCollectionViewCell if self.mapView.annotations!.count > 0 { let cellTitle = selectedCell.venueName.text for annotation in self.mapView.annotations! { let annotationTitle = annotation.title! if cellTitle == annotationTitle { self.mapView.selectAnnotation(annotation, animated: true) } } } else { return } } }
33.432061
193
0.654991
1a632a07e8691440a813140fd18dc3a975e65b61
961
py
Python
act/tests/__init__.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
9
2019-03-11T19:41:34.000Z
2019-09-17T08:34:19.000Z
act/tests/__init__.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
127
2019-03-18T12:24:17.000Z
2020-01-06T20:53:06.000Z
act/tests/__init__.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
15
2019-03-11T15:30:56.000Z
2019-11-01T19:10:11.000Z
""" This module contains sample files used for testing the ARM Community Toolkit. Files in this module should only be used for testing, not production. """ from .sample_files import ( EXAMPLE_AERI, EXAMPLE_ANL_CSV, EXAMPLE_AOSMET, EXAMPLE_BRS, EXAMPLE_CEIL1, EXAMPLE_CEIL_WILDCARD, EXAMPLE_CO2FLX4M, EXAMPLE_DLPPI, EXAMPLE_EBBR1, EXAMPLE_EBBR2, EXAMPLE_IRTSST, EXAMPLE_LCL1, EXAMPLE_MET1, EXAMPLE_MET_CONTOUR, EXAMPLE_MET_CSV, EXAMPLE_MET_TEST1, EXAMPLE_MET_TEST2, EXAMPLE_MET_WILDCARD, EXAMPLE_METE40, EXAMPLE_MFRSR, EXAMPLE_MPL_1SAMPLE, EXAMPLE_NAV, EXAMPLE_NOAA_PSL, EXAMPLE_RL1, EXAMPLE_SIGMA_MPLV5, EXAMPLE_SIRS, EXAMPLE_SONDE1, EXAMPLE_SONDE_WILDCARD, EXAMPLE_STAMP_WILDCARD, EXAMPLE_SURFSPECALB1MLAWER, EXAMPLE_TWP_SONDE_20060121, EXAMPLE_IRT25m20s, EXAMPLE_HK, EXAMPLE_INI, EXAMPLE_SP2B, EXAMPLE_MET_YAML )
21.355556
77
0.729448
7530071f6b5cc99ee706ae7fb74f71740673ce73
111
css
CSS
test/case/test-0008-0.css
livibetter-backup/css-prop-sorter
3895146d9ecda3bc0d1c73ad6b38b3ae2a74bf3e
[ "MIT" ]
1
2015-03-10T06:21:24.000Z
2015-03-10T06:21:24.000Z
test/case/test-0008-0.css
livibetter/css-prop-sorter
3895146d9ecda3bc0d1c73ad6b38b3ae2a74bf3e
[ "MIT" ]
null
null
null
test/case/test-0008-0.css
livibetter/css-prop-sorter
3895146d9ecda3bc0d1c73ad6b38b3ae2a74bf3e
[ "MIT" ]
null
null
null
/* spaces/tabs before brackets */ nav.right-side span.item span { width: 100px; margin: auto; }
15.857143
33
0.612613
9697442555372730c348975979ac5cbd4a86a519
1,374
rb
Ruby
app/controllers/moves_controller.rb
hjwylde/scotland-yard
8721273ed711965bd9fa7f438c0b43bd6da337a6
[ "BSD-3-Clause" ]
1
2020-01-14T18:02:06.000Z
2020-01-14T18:02:06.000Z
app/controllers/moves_controller.rb
hjwylde/scotland-yard
8721273ed711965bd9fa7f438c0b43bd6da337a6
[ "BSD-3-Clause" ]
6
2015-01-05T23:03:51.000Z
2015-01-05T23:03:51.000Z
app/controllers/moves_controller.rb
hjwylde/scotland-yard
8721273ed711965bd9fa7f438c0b43bd6da337a6
[ "BSD-3-Clause" ]
null
null
null
class MovesController < GamesControllerBase before_action :load_player, only: [:index, :create] before_action :load_moves, only: :index before_action :validate_player, only: :create respond_to :json def index render json: @moves end def create to_node = Node.find(move_params[:to_node_id]) ticket = move_params[:ticket] token = move_params[:token] unless move_params[:token].nil? || move_params[:token].try!(:empty?) ticket_counts = CountPlayerTicketsService.new(game: @game).call token_counts = CountPlayerTokensService.new(game: @game).call make_move = MakeMoveService.new(player: @player, to_node: to_node, ticket: ticket, token: token, cache: { ticket_counts: ticket_counts, token_counts: token_counts }) make_move.on :success do |move| render json: move, status: :created end make_move.on :fail do |errors| render json: { errors: errors }, status: :unprocessable_entity end make_move.call end private def load_player @player = Player.find(params[:player_id]) end def load_moves @moves = @player.moves end def validate_player head :unauthorized if @player.game != @game head :unauthorized if @player.user != @current_user end def move_params params.require(:move).permit(:to_node_id, :ticket, :token) end end
26.941176
104
0.689956
dca421bd28f8de07a8f1e9036f4e24cd6d5cf79a
85
ts
TypeScript
app/_models/person.ts
vnk222/samplerepo
c0add26bbdafa13ba9e74790cb62030be54a7cf5
[ "MIT" ]
null
null
null
app/_models/person.ts
vnk222/samplerepo
c0add26bbdafa13ba9e74790cb62030be54a7cf5
[ "MIT" ]
null
null
null
app/_models/person.ts
vnk222/samplerepo
c0add26bbdafa13ba9e74790cb62030be54a7cf5
[ "MIT" ]
null
null
null
export class Person { count: number; next: string; previous: string; }
17
21
0.611765
12e117c8f5d4d250c7d4a7b32f4d81c1c5c3f99b
3,879
cs
C#
sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CommitmentTier.cs
gjy5885/azure-sdk-for-net
5491b723c94176509a91c340485f10009189ac72
[ "MIT" ]
3,268
2015-01-08T04:21:52.000Z
2022-03-31T11:10:48.000Z
sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CommitmentTier.cs
gjy5885/azure-sdk-for-net
5491b723c94176509a91c340485f10009189ac72
[ "MIT" ]
18,748
2015-01-06T00:12:22.000Z
2022-03-31T23:55:50.000Z
sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CommitmentTier.cs
gjy5885/azure-sdk-for-net
5491b723c94176509a91c340485f10009189ac72
[ "MIT" ]
4,179
2015-01-07T20:13:22.000Z
2022-03-31T09:09:02.000Z
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Microsoft.Azure.Management.CognitiveServices.Models { using Newtonsoft.Json; using System.Linq; /// <summary> /// Cognitive Services account commitment tier. /// </summary> public partial class CommitmentTier { /// <summary> /// Initializes a new instance of the CommitmentTier class. /// </summary> public CommitmentTier() { CustomInit(); } /// <summary> /// Initializes a new instance of the CommitmentTier class. /// </summary> /// <param name="kind">The Kind of the resource.</param> /// <param name="skuName">The name of the SKU. Ex - P3. It is typically /// a letter+number code</param> /// <param name="hostingModel">Account hosting model. Possible values /// include: 'Web', 'ConnectedContainer', /// 'DisconnectedContainer'</param> /// <param name="planType">Commitment plan type.</param> /// <param name="tier">Commitment period commitment tier.</param> /// <param name="maxCount">Commitment period commitment max /// count.</param> public CommitmentTier(string kind = default(string), string skuName = default(string), string hostingModel = default(string), string planType = default(string), string tier = default(string), int? maxCount = default(int?), CommitmentQuota quota = default(CommitmentQuota), CommitmentCost cost = default(CommitmentCost)) { Kind = kind; SkuName = skuName; HostingModel = hostingModel; PlanType = planType; Tier = tier; MaxCount = maxCount; Quota = quota; Cost = cost; CustomInit(); } /// <summary> /// An initialization method that performs custom operations like setting defaults /// </summary> partial void CustomInit(); /// <summary> /// Gets or sets the Kind of the resource. /// </summary> [JsonProperty(PropertyName = "kind")] public string Kind { get; set; } /// <summary> /// Gets or sets the name of the SKU. Ex - P3. It is typically a /// letter+number code /// </summary> [JsonProperty(PropertyName = "skuName")] public string SkuName { get; set; } /// <summary> /// Gets or sets account hosting model. Possible values include: 'Web', /// 'ConnectedContainer', 'DisconnectedContainer' /// </summary> [JsonProperty(PropertyName = "hostingModel")] public string HostingModel { get; set; } /// <summary> /// Gets or sets commitment plan type. /// </summary> [JsonProperty(PropertyName = "planType")] public string PlanType { get; set; } /// <summary> /// Gets or sets commitment period commitment tier. /// </summary> [JsonProperty(PropertyName = "tier")] public string Tier { get; set; } /// <summary> /// Gets or sets commitment period commitment max count. /// </summary> [JsonProperty(PropertyName = "maxCount")] public int? MaxCount { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "quota")] public CommitmentQuota Quota { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "cost")] public CommitmentCost Cost { get; set; } } }
35.263636
327
0.587007
7c91c8c3bb852e30e3b2c5507d34f337369f8f26
1,008
js
JavaScript
test/.eslintrc.js
agilepixel/pixelate
80a888d0f4220b6364cd078eeed9c9217e3a82a4
[ "MIT" ]
null
null
null
test/.eslintrc.js
agilepixel/pixelate
80a888d0f4220b6364cd078eeed9c9217e3a82a4
[ "MIT" ]
6
2021-01-05T14:16:40.000Z
2022-03-08T18:42:50.000Z
test/.eslintrc.js
agilepixel/pixelate
80a888d0f4220b6364cd078eeed9c9217e3a82a4
[ "MIT" ]
null
null
null
/*! Agile Pixel https://agilepixel.io - 2021*/ module.exports = { root: true, globals: { wp: true }, env: { node: true, es6: true, amd: true, browser: true, jquery: true, }, parser: 'vue-eslint-parser', extends: ['agilepixel', 'prettier'], 'parserOptions': { 'parser': 'babel-eslint', 'ecmaFeatures': { 'globalReturn': true, 'generators': false, 'objectLiteralDuplicateProperties': false, 'experimentalObjectRestSpread': true, }, 'ecmaVersion': 2017, 'sourceType': 'module', 'allowImportExportEverywhere': true, }, plugins: ['import'], settings: { 'import/core-modules': [], 'import/ignore': [ 'node_modules', '\\.(coffee|scss|css|less|hbs|svg|json)$', ], polyfills: ['Promise', 'IntersectionObserver', 'fetch', 'Array.from'], }, rules: { 'max-len': 'off' }, };
25.846154
78
0.509921
323690b72c0ee8da5fc0d6c224f85489c13a7c69
2,660
rs
Rust
lib/engine_proc_macro/src/lib.rs
OrangeBacon/opengl-rust
842354c929db9d60b73fb54781420d41f8e99f23
[ "MIT" ]
1
2021-05-30T22:32:47.000Z
2021-05-30T22:32:47.000Z
lib/engine_proc_macro/src/lib.rs
OrangeBacon/opengl-rust
842354c929db9d60b73fb54781420d41f8e99f23
[ "MIT" ]
null
null
null
lib/engine_proc_macro/src/lib.rs
OrangeBacon/opengl-rust
842354c929db9d60b73fb54781420d41f8e99f23
[ "MIT" ]
null
null
null
use proc_macro::TokenStream; use quote::quote; use syn::{ parse::{Parse, ParseStream}, parse_macro_input, punctuated::Punctuated, Expr, Ident, ItemStruct, Result, Token, }; /// The inputs to the attribute #[derive(Debug)] struct Attrs { accessor: Expr, globals: Vec<Ident>, } impl Parse for Attrs { /// parses `$ident => #($ident,)+` fn parse(input: ParseStream) -> Result<Self> { let accessor = input.parse()?; input.parse::<Token![=]>()?; input.parse::<Token![>]>()?; let globals = Punctuated::<Ident, Token![,]>::parse_terminated(input)?; Ok(Self { accessor, globals: globals.into_iter().collect(), }) } } #[proc_macro_attribute] pub fn context_globals(attr: TokenStream, input: TokenStream) -> TokenStream { let attr = parse_macro_input!(attr as Attrs); let input = parse_macro_input!(input as ItemStruct); let name = input.ident.clone(); let accessor = attr.accessor; let vis = input.vis.clone(); let mut methods = vec![]; // create the implementations for all the globals for global in attr.globals { // the input name e.g. `inputs` is the field name, remove the `s` to // make it not a plural for the method names let global_name = global.to_string(); let global_name = &global_name[..global_name.len() - 1]; // infer the name of the GlobalAllocationContext enum varient let mut allocation = String::from( global_name .chars() .next() .unwrap_or_default() .to_ascii_uppercase(), ); allocation.push_str(&global_name[1..]); let allocation = Ident::new(&allocation, global.span()); let global_name = Ident::new(global_name, global.span()); methods.push(quote! { #vis fn #global_name(&mut self, name: &str, ty: Type) -> Expression { let id = self.#accessor.#global.len(); self.#accessor.#global.push(Variable { name: name.to_string(), ty, }); Expression::GetVariable { variable: VariableId { id, kind: VariableAllocationContext::#allocation }, } } }); } let (impl_generics, ty_generics, where_clause) = input.generics.split_for_impl(); TokenStream::from(quote! { #input impl #impl_generics #name #ty_generics #where_clause { #(#methods)* } }) }
28.602151
85
0.552256
57f1594f8e12b15d9fbaae89eade06d2acd45155
2,662
go
Go
pkg/server/debug/pprofui/storage_mem.go
IliaRusin/cockroach
66a2b55f2f83679dc5cac32284dfe1ebade0a5da
[ "MIT", "BSD-3-Clause" ]
2
2020-02-28T02:40:42.000Z
2020-02-28T04:08:48.000Z
pkg/server/debug/pprofui/storage_mem.go
IliaRusin/cockroach
66a2b55f2f83679dc5cac32284dfe1ebade0a5da
[ "MIT", "BSD-3-Clause" ]
10
2020-09-06T14:29:19.000Z
2022-03-02T04:56:13.000Z
pkg/server/debug/pprofui/storage_mem.go
rohany/cockroach
12c640b74f8a16a27eb5ba03df9628cec4c99400
[ "MIT", "BSD-3-Clause" ]
2
2019-11-12T13:38:48.000Z
2020-02-02T09:38:19.000Z
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, Version 2.0, included in the file // licenses/APL.txt. package pprofui import ( "bytes" "fmt" "io" "sort" "sync/atomic" "time" "github.com/cockroachdb/cockroach/pkg/util/syncutil" "github.com/cockroachdb/cockroach/pkg/util/timeutil" "github.com/pkg/errors" ) type record struct { id string t time.Time b []byte } // A MemStorage is a Storage implementation that holds recent profiles in memory. type MemStorage struct { mu struct { syncutil.Mutex records []record // sorted by record.t } idGen int32 // accessed atomically keepDuration time.Duration // zero for disabled keepNumber int // zero for disabled } var _ Storage = &MemStorage{} // NewMemStorage creates a MemStorage that retains the most recent n records // as long as they are less than d old. // // Records are dropped only when there is activity (i.e. an old record will // only be dropped the next time the storage is accessed). func NewMemStorage(n int, d time.Duration) *MemStorage { return &MemStorage{ keepNumber: n, keepDuration: d, } } // ID implements Storage. func (s *MemStorage) ID() string { return fmt.Sprint(atomic.AddInt32(&s.idGen, 1)) } func (s *MemStorage) cleanLocked() { if l, m := len(s.mu.records), s.keepNumber; l > m && m != 0 { s.mu.records = append([]record(nil), s.mu.records[l-m:]...) } now := timeutil.Now() if pos := sort.Search(len(s.mu.records), func(i int) bool { return s.mu.records[i].t.Add(s.keepDuration).After(now) }); pos < len(s.mu.records) && s.keepDuration != 0 { s.mu.records = append([]record(nil), s.mu.records[pos:]...) } } // Store implements Storage. func (s *MemStorage) Store(id string, write func(io.Writer) error) error { var b bytes.Buffer if err := write(&b); err != nil { return err } s.mu.Lock() defer s.mu.Unlock() s.mu.records = append(s.mu.records, record{id: id, t: timeutil.Now(), b: b.Bytes()}) sort.Slice(s.mu.records, func(i, j int) bool { return s.mu.records[i].t.Before(s.mu.records[j].t) }) s.cleanLocked() return nil } // Get implements Storage. func (s *MemStorage) Get(id string, read func(io.Reader) error) error { s.mu.Lock() defer s.mu.Unlock() for _, v := range s.mu.records { if v.id == id { return read(bytes.NewReader(v.b)) } } return errors.Errorf("profile not found; it may have expired") }
26.356436
85
0.681443
5d932fae9acbe884480123b136f824626fa03bda
17,557
cpp
C++
library/uapki/src/api/verify.cpp
DJm00n/UAPKI
7ced3adc6d2990c88cc48b273d44ec99489a0282
[ "BSD-2-Clause" ]
null
null
null
library/uapki/src/api/verify.cpp
DJm00n/UAPKI
7ced3adc6d2990c88cc48b273d44ec99489a0282
[ "BSD-2-Clause" ]
null
null
null
library/uapki/src/api/verify.cpp
DJm00n/UAPKI
7ced3adc6d2990c88cc48b273d44ec99489a0282
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2021, The UAPKI Project Authors. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "api-json-internal.h" #include "content-info.h" #include "global-objects.h" #include "parson-helper.h" #include "store-utils.h" #include "time-utils.h" #include "uapki-errors.h" #include "verify-signer-info.h" #include "verify-utils.h" #include <vector> #undef FILE_MARKER #define FILE_MARKER "api/verify.c" #define DEBUG_OUTCON(expression) #ifndef DEBUG_OUTCON #define DEBUG_OUTCON(expression) expression #endif using namespace std; typedef struct VerifyOptions_S { bool encodeCert; bool validateCertByOCSP; bool validateCertByCRL; VerifyOptions_S (void) : encodeCert(true), validateCertByOCSP(false), validateCertByCRL(false) {} } VerifyOptions; static int decode_signed_data (const ByteArray* baEncoded, SignedData_t** signedData, ByteArray** baEncapContent) { int ret = RET_OK; ContentInfo_t* cinfo = nullptr; SignedData_t* sdata = nullptr; long version = 0; CHECK_NOT_NULL(cinfo = (ContentInfo_t*)asn_decode_ba_with_alloc(get_ContentInfo_desc(), baEncoded)); DO(cinfo_get_signed_data(cinfo, &sdata)); DO(asn_INTEGER2long(&sdata->version, &version)); if ((version < 1) || (version > 5) || (version == 2)) { SET_ERROR(RET_UAPKI_INVALID_STRUCT_VERSION); } if (sdata->signerInfos.list.count == 0) { SET_ERROR(RET_UAPKI_INVALID_STRUCT); } if (sdata->encapContentInfo.eContent != nullptr) { DO(asn_OCTSTRING2ba(sdata->encapContentInfo.eContent, baEncapContent)); } *signedData = sdata; sdata = nullptr; cleanup: asn_free(get_ContentInfo_desc(), cinfo); asn_free(get_SignedData_desc(), sdata); return ret; } static int get_digest_algorithms (SignedData_t* signedData, vector<char*>& dgstAlgos) { int ret = RET_OK; char* s_dgstalgo = nullptr; if (signedData->digestAlgorithms.list.count == 0) { SET_ERROR(RET_UAPKI_INVALID_STRUCT); } for (size_t i = 0; i < signedData->digestAlgorithms.list.count; i++) { DO(asn_oid_to_text(&signedData->digestAlgorithms.list.array[i]->algorithm, &s_dgstalgo)); dgstAlgos.push_back(s_dgstalgo); s_dgstalgo = nullptr; } cleanup: if (ret != RET_OK) { for (size_t i = 0; i < dgstAlgos.size(); i++) { ::free(dgstAlgos[i]); } dgstAlgos.clear(); } ::free(s_dgstalgo); return ret; } static int get_certs_to_store (SignedData_t* signedData, vector<const CerStore::Item*>& certs) { int ret = RET_OK; CerStore* cer_store = nullptr; ByteArray* ba_cert = nullptr; cer_store = get_cerstore(); if (!cer_store) { SET_ERROR(RET_UAPKI_GENERAL_ERROR); } DEBUG_OUTCON(printf("get_certs_to_store(), count certs in cert-store (before): %d\n", (int)cer_store->count())); if (signedData->certificates) { if (signedData->certificates->list.count == 0) { SET_ERROR(RET_UAPKI_INVALID_STRUCT); } for (size_t i = 0; i < signedData->certificates->list.count; i++) { bool is_unique; const CerStore::Item* cer_item = nullptr; DO(asn_encode_ba(get_CertificateChoices_desc(), signedData->certificates->list.array[i], &ba_cert)); DO(cer_store->addCert(ba_cert, false, false, false, is_unique, &cer_item)); ba_cert = nullptr; certs.push_back(cer_item); } } DEBUG_OUTCON(printf("get_certs_to_store(), count certs in cert-store (after) : %d\n", (int)cer_store->count())); cleanup: ba_free(ba_cert); return ret; } static int result_set_content (JSON_Object* joContent, const OBJECT_IDENTIFIER_t* eContentType, ByteArray* baContent) { if (joContent == nullptr) return RET_UAPKI_GENERAL_ERROR; int ret = RET_OK; char* s_contype = nullptr; DO(asn_oid_to_text(eContentType, &s_contype)); ret = (json_object_set_string(joContent, "type", s_contype) == JSONSuccess) ? RET_OK : RET_UAPKI_GENERAL_ERROR; if ((ret == RET_OK) && (baContent != nullptr)) { DO(json_object_set_base64(joContent, "bytes", baContent)); } cleanup: free(s_contype); return ret; } static int result_set_list_attrs (JSON_Object* joResult, const char* key, const vector<AttrItem>& attrItems) { if (attrItems.empty()) return RET_OK; int ret = RET_OK; json_object_set_value(joResult, key, json_value_init_array()); JSON_Array* ja_attrs = json_object_get_array(joResult, key); for (size_t i = 0; i < attrItems.size(); i++) { const AttrItem& attr_item = attrItems[i]; json_array_append_value(ja_attrs, json_value_init_object()); JSON_Object* jo_attr = json_array_get_object(ja_attrs, i); DO_JSON(json_object_set_string(jo_attr, "type", attr_item.attrType)); DO_JSON(json_object_set_base64(jo_attr, "bytes", attr_item.baAttrValue)); } cleanup: return ret; } static int parse_attr_sigpolicy (JSON_Object* joResult, const ByteArray* baEncoded) { int ret = RET_OK; SignaturePolicyIdentifier_t* spi = nullptr; char* s_policyid = nullptr; CHECK_NOT_NULL(spi = (SignaturePolicyIdentifier_t*)asn_decode_ba_with_alloc(get_SignaturePolicyIdentifier_desc(), baEncoded)); if (spi->present == SignaturePolicyIdentifier_PR_signaturePolicyId) { DO(asn_oid_to_text(&spi->choice.signaturePolicyId.sigPolicyId, &s_policyid)); DO_JSON(json_object_set_string(joResult, "sigPolicyId", s_policyid)); } cleanup: asn_free(get_SignaturePolicyIdentifier_desc(), spi); free(s_policyid); return ret; } static int result_set_parsed_signedattrs (JSON_Object* joResult, const vector<AttrItem>& attrItems) { int ret = RET_OK; for (auto& it : attrItems) { if (strcmp(it.attrType, OID_PKCS9_SIG_POLICY_ID) == 0) { DO_JSON(json_object_set_value(joResult, "signaturePolicy", json_value_init_object())); DO(parse_attr_sigpolicy(json_object_get_object(joResult, "signaturePolicy"), it.baAttrValue)); } } cleanup: return ret; } static int result_set_parsed_unsignedattrs (JSON_Object* joResult, const vector<AttrItem>& attrItems) { int ret = RET_OK; //TODO: here process unsigned attrs //for (auto& it : attrItems) { //if (strcmp(it.attrType, OID_any_attr) == 0) {} //} //cleanup: return ret; } static void parse_verify_options (JSON_Object* joOptions, VerifyOptions& options) { options.encodeCert = ParsonHelper::jsonObjectGetBoolean(joOptions, "encodeCert", true); options.validateCertByOCSP = ParsonHelper::jsonObjectGetBoolean(joOptions, "validateCertByOCSP", false); options.validateCertByCRL = ParsonHelper::jsonObjectGetBoolean(joOptions, "validateCertByCRL", false); } static int attr_timestamp_to_json (JSON_Object* joSignerInfo, const char* attrName, const AttrTimeStamp* attrTS) { int ret = RET_OK; JSON_Object* jo_attrts = nullptr; if (attrTS == nullptr) return ret; DO_JSON(json_object_set_value(joSignerInfo, attrName, json_value_init_object())); jo_attrts = json_object_get_object(joSignerInfo, attrName); DO_JSON(json_object_set_string(jo_attrts, "genTime", TimeUtils::mstimeToFormat(attrTS->msGenTime).c_str())); DO_JSON(json_object_set_string(jo_attrts, "policyId", attrTS->policy)); DO_JSON(json_object_set_string(jo_attrts, "hashAlgo", attrTS->hashAlgo)); DO_JSON(json_object_set_base64(jo_attrts, "hashedMessage", attrTS->baHashedMessage)); DO_JSON(json_object_set_string(jo_attrts, "statusDigest", SIGNATURE_VERIFY::toStr(attrTS->statusDigest))); //TODO: need impl "statusSign" (statusSignedData) cleanup: return ret; } static int verify_cms (const ByteArray* baSignature, const ByteArray* baContent, const bool isDigest, JSON_Object* joOptions, JSON_Object* joResult) { int ret = RET_OK; CerStore* cer_store = nullptr; VerifyOptions options; uint32_t version = 0; SignedData_t* sdata = nullptr; ByteArray* ba_content = nullptr; const ByteArray* ref_content = nullptr; vector<char*> dgst_algos; vector<const CerStore::Item*> certs; vector<const VerifyInfo*> verify_infos; JSON_Array* ja = nullptr; JSON_Object* jo = nullptr; cer_store = get_cerstore(); if (!cer_store) { SET_ERROR(RET_UAPKI_GENERAL_ERROR); } parse_verify_options(joOptions, options); DO(decode_signed_data(baSignature, &sdata, &ba_content)); ref_content = (ba_content != nullptr) ? ba_content : baContent; DO(get_digest_algorithms(sdata, dgst_algos)); DO(get_certs_to_store(sdata, certs)); // For each signerInfo for (size_t i = 0; i < sdata->signerInfos.list.count; i++) { VerifyInfo* verify_info = new VerifyInfo(); if (!verify_info) { SET_ERROR(RET_UAPKI_GENERAL_ERROR); } DO(verify_signer_info(sdata->signerInfos.list.array[0], dgst_algos, ref_content, isDigest, verify_info)); verify_infos.push_back(verify_info); } // Out param 'content', object DO_JSON(json_object_set_value(joResult, "content", json_value_init_object())); DO(result_set_content(json_object_get_object(joResult, "content"), &sdata->encapContentInfo.eContentType, ba_content)); // Out param 'certIds' (certificates), array DO_JSON(json_object_set_value(joResult, "certIds", json_value_init_array())); ja = json_object_get_array(joResult, "certIds"); for (auto& it: certs) { DO_JSON(json_array_append_base64(ja, it->baCertId)); } // Out param 'signatureInfos', array DO_JSON(json_object_set_value(joResult, "signatureInfos", json_value_init_array())); ja = json_object_get_array(joResult, "signatureInfos"); for (size_t i = 0; i < verify_infos.size(); i++) { bool is_valid = false; DO_JSON(json_array_append_value(ja, json_value_init_object())); jo = json_array_get_object(ja, i); const VerifyInfo* verify_info = verify_infos[i]; DO(json_object_set_base64(jo, "signerCertId", verify_info->cerStoreItem->baCertId)); is_valid = (verify_info->statusSignature == SIGNATURE_VERIFY::STATUS::VALID) && (verify_info->statusMessageDigest == SIGNATURE_VERIFY::STATUS::VALID); if (is_valid && (verify_info->statusEssCert != SIGNATURE_VERIFY::STATUS::NOT_PRESENT)) { is_valid = (verify_info->statusEssCert == SIGNATURE_VERIFY::STATUS::VALID); } if (is_valid && verify_info->contentTS) { is_valid = (verify_info->contentTS->statusDigest == SIGNATURE_VERIFY::STATUS::VALID); //TODO: verify_info->contentTS->statusSign } if (is_valid && verify_info->signatureTS) { is_valid = (verify_info->signatureTS->statusDigest == SIGNATURE_VERIFY::STATUS::VALID); //TODO: verify_info->signatureTS->statusSign } SIGNATURE_VALIDATION::STATUS status = is_valid ? SIGNATURE_VALIDATION::STATUS::TOTAL_VALID : SIGNATURE_VALIDATION::STATUS::TOTAL_FAILED; //TODO: check options.validateCertByCRL and options.validateCertByOCSP // added status SIGNATURE_VALIDATION::STATUS::INDETERMINATE DO_JSON(json_object_set_string(jo, "status", SIGNATURE_VALIDATION::toStr(status))); DO_JSON(json_object_set_string(jo, "statusSignature", SIGNATURE_VERIFY::toStr(verify_info->statusSignature))); DO_JSON(json_object_set_string(jo, "statusMessageDigest", SIGNATURE_VERIFY::toStr(verify_info->statusMessageDigest))); DO_JSON(json_object_set_string(jo, "statusEssCert", SIGNATURE_VERIFY::toStr(verify_info->statusEssCert))); if (verify_info->signingTime > 0) { DO_JSON(json_object_set_string(jo, "signingTime", TimeUtils::mstimeToFormat(verify_info->signingTime).c_str())); } DO(result_set_parsed_signedattrs(jo, verify_info->signedAttrs)); DO(result_set_parsed_unsignedattrs(jo, verify_info->unsignedAttrs)); DO_JSON(attr_timestamp_to_json(jo, "contentTS", verify_info->contentTS)); DO_JSON(attr_timestamp_to_json(jo, "signatureTS", verify_info->signatureTS)); DO(result_set_list_attrs(jo, "signedAttributes", verify_info->signedAttrs)); DO(result_set_list_attrs(jo, "unsignedAttributes", verify_info->unsignedAttrs)); } cleanup: for (size_t i = 0; i < dgst_algos.size(); i++) { ::free(dgst_algos[i]); } for (size_t i = 0; i < verify_infos.size(); i++) { delete verify_infos[i]; } asn_free(get_SignedData_desc(), sdata); ba_free(ba_content); return ret; } static int verify_raw (const ByteArray* baSignature, const ByteArray* baContent, const bool isDigest, JSON_Object* joSignParams, JSON_Object* joSignerPubkey, JSON_Object* joResult) { int ret = RET_OK; CerStore::Item* cer_parsed = nullptr; ByteArray* ba_certid = nullptr; ByteArray* ba_encoded = nullptr; ByteArray* ba_spki = nullptr; const CerStore::Item* cer_item = nullptr; const char* s_signalgo = nullptr; SIGNATURE_VERIFY::STATUS status_sign = SIGNATURE_VERIFY::STATUS::UNDEFINED; bool is_digitalsign = true; s_signalgo = json_object_get_string(joSignParams, "signAlgo"); if (s_signalgo == nullptr) return RET_UAPKI_INVALID_PARAMETER; ba_encoded = json_object_get_base64(joSignerPubkey, "certificate"); if (ba_encoded) { DO(CerStore::parseCert(ba_encoded, &cer_parsed)); ba_encoded = nullptr; cer_item = (const CerStore::Item*)cer_parsed; } else { ba_certid = json_object_get_base64(joSignerPubkey, "certId"); if (ba_certid) { CerStore* cer_store = get_cerstore(); if (!cer_store) { SET_ERROR(RET_UAPKI_GENERAL_ERROR); } DO(cer_store->getCertByCertId(ba_certid, &cer_item)); } else { ba_spki = json_object_get_base64(joSignerPubkey, "spki"); if (!ba_spki) { SET_ERROR(RET_UAPKI_INVALID_PARAMETER); } } } ret = verify_signature(s_signalgo, baContent, isDigest, (cer_item != nullptr) ? cer_item->baSPKI : ba_spki, baSignature); switch (ret) { case RET_OK: status_sign = SIGNATURE_VERIFY::STATUS::VALID; break; case RET_VERIFY_FAILED: status_sign = SIGNATURE_VERIFY::STATUS::INVALID; break; default: status_sign = SIGNATURE_VERIFY::STATUS::FAILED; } DO_JSON(json_object_set_string(joResult, "statusSignature", SIGNATURE_VERIFY::toStr(status_sign))); ret = RET_OK; cleanup: delete cer_parsed; ba_free(ba_certid); ba_free(ba_encoded); ba_free(ba_spki); return ret; } int uapki_verify_signature (JSON_Object* joParams, JSON_Object* joResult) { int ret = RET_OK; ByteArray* ba_content = nullptr; ByteArray* ba_signature = nullptr; JSON_Object* jo_options = nullptr; JSON_Object* jo_signature = nullptr; JSON_Object* jo_signparams = nullptr; JSON_Object* jo_signerpubkey = nullptr; bool is_digest, is_raw = false; jo_options = json_object_get_object(joParams, "options"); jo_signature = json_object_get_object(joParams, "signature"); ba_signature = json_object_get_base64(jo_signature, "bytes"); ba_content = json_object_get_base64(jo_signature, "content"); is_digest = ParsonHelper::jsonObjectGetBoolean(jo_signature, "isDigest", false); if (!ba_signature) { SET_ERROR(RET_UAPKI_INVALID_PARAMETER); } jo_signparams = json_object_get_object(joParams, "signParams"); jo_signerpubkey = json_object_get_object(joParams, "signerPubkey"); is_raw = (jo_signparams != nullptr) || (jo_signerpubkey != nullptr); if (!is_raw) { DO(verify_cms(ba_signature, ba_content, is_digest, jo_options, joResult)); } else { if ((ba_content == nullptr) || (jo_signparams == nullptr) || (jo_signerpubkey == nullptr)) { SET_ERROR(RET_UAPKI_INVALID_PARAMETER); } DO(verify_raw(ba_signature, ba_content, is_digest, jo_signparams, jo_signerpubkey, joResult)); } cleanup: ba_free(ba_content); ba_free(ba_signature); return ret; }
37.040084
144
0.695734
5f2e2571cfcb5ee93d8095575e7b7f0e0d6a2a5d
545
dart
Dart
lesson_21/cocktails_mobx/lib/app/core/src/model/ingredient_definition.dart
CheshirskiyCat/otus-cocktails-application
d51121ea0dca2d32a1b13dd1c6c49892cb8cc05f
[ "MIT" ]
null
null
null
lesson_21/cocktails_mobx/lib/app/core/src/model/ingredient_definition.dart
CheshirskiyCat/otus-cocktails-application
d51121ea0dca2d32a1b13dd1c6c49892cb8cc05f
[ "MIT" ]
8
2021-01-31T23:25:23.000Z
2021-11-29T08:49:59.000Z
lesson_21/cocktails_mobx/lib/app/core/src/model/ingredient_definition.dart
CheshirskiyCat/otus-cocktails-application
d51121ea0dca2d32a1b13dd1c6c49892cb8cc05f
[ "MIT" ]
26
2021-03-28T21:20:34.000Z
2022-02-21T18:19:42.000Z
import 'package:json_annotation/json_annotation.dart'; /// /// Ingredient definition used to describe Cocktail instruction depending on measurement /// part 'ingredient_definition.g.dart'; @JsonSerializable() class IngredientDefinition { final String ingredientName; final String measure; IngredientDefinition(this.ingredientName, this.measure); factory IngredientDefinition.fromJson(Map<String, dynamic> json) => _$IngredientDefinitionFromJson(json); Map<String, dynamic> toJson() => _$IngredientDefinitionToJson(this); }
25.952381
88
0.781651
c549102cb2c66a5a019eac2232ffcf448f40fde0
502
css
CSS
estilos.css
GuilhermeChaves26/unigranhtmlproject
17487d26a4444438697f471977a7b3ce9d0196cc
[ "Unlicense" ]
null
null
null
estilos.css
GuilhermeChaves26/unigranhtmlproject
17487d26a4444438697f471977a7b3ce9d0196cc
[ "Unlicense" ]
null
null
null
estilos.css
GuilhermeChaves26/unigranhtmlproject
17487d26a4444438697f471977a7b3ce9d0196cc
[ "Unlicense" ]
null
null
null
body{ font-family: verdana; background-color: #666666; } div#container { background-color: white; width: 90%; padding: 20px; margin: 0 auto; border: black 1px solid; box-shadow: 0px 0px 10px black; } h1 { font-weight: normal; color: #000066; } h2 { font-weight: normal; color: #0080C0; } p { font-size: 11pt; text-align: justify; text-indent: 50px; line-height: 16pt; } address { font-size: 10pt; text-align: center; font-style: normal; }
13.210526
34
0.61753
d39575b51ce694b6efe5bb3a84cb97fdc610f852
5,644
rb
Ruby
lib/fortuneteller/simulator.rb
HarborEng/fortuneteller
1f4397b1c5817c471d77a5da55acfa06b0f31695
[ "MIT" ]
2
2017-11-21T14:52:07.000Z
2017-12-04T03:02:45.000Z
lib/fortuneteller/simulator.rb
HarborEng/fortuneteller
1f4397b1c5817c471d77a5da55acfa06b0f31695
[ "MIT" ]
1
2018-02-12T01:25:08.000Z
2018-02-12T03:58:17.000Z
lib/fortuneteller/simulator.rb
HarborEng/fortuneteller
1f4397b1c5817c471d77a5da55acfa06b0f31695
[ "MIT" ]
1
2017-12-14T03:32:22.000Z
2017-12-14T03:32:22.000Z
module FortuneTeller # Simulates personal finances. class Simulator OBJECT_TYPES = %i[account job social_security guaranteed_income spending_strategy tax_strategy] USER_TYPES = %i[primary partner] STRATEGIES = %i[allocation debit] attr_reader :beginning USER_TYPES.each do |user_type| attr_reader user_type define_method :"add_#{user_type}" do |**kwargs| raise FortuneTeller::PlanSetupError.new(:plan_finalized) if @finalized instance_variable_set( :"@#{user_type}", FortuneTeller::Person.new(**kwargs) ) end end OBJECT_TYPES.each do |object_type| attr_reader object_type.to_s.pluralize.to_sym define_method :"add_#{object_type}" do |holder=nil, &block| raise FortuneTeller::PlanSetupError.new(:plan_finalized) if @finalized component = "fortune_teller/#{object_type}/component".classify.constantize key = @available_keys.shift obj = component.new(key, @beginning, holder, &block) collection = send(object_type.to_s.pluralize.to_sym)[key] = obj obj end end STRATEGIES.each do |strategy| attr_reader "#{strategy}_strategy".to_sym define_method :"set_#{strategy}_strategy" do |s, *args| raise FortuneTeller::PlanSetupError.new(:plan_finalized) if @finalized instance_variable_set( :"@#{strategy}_strategy", "fortune_teller/strategies/#{strategy}/#{s}".classify.constantize.new(*args) ) end end def initialize(beginning, end_age=100) @beginning = beginning @end_age = end_age @available_keys = ('AA'..'ZZ').to_a @finalized = false OBJECT_TYPES.each do |object_type| send("#{object_type.to_s.pluralize}=".to_sym, {}) end set_allocation_strategy(:none) set_debit_strategy(:proportional) end def initial_take_home_pay jobs.values.map do |job| plan = job.plan.to_reader.on(@beginning) monthly_base = (plan.base.initial_value / 12.0).round plan.savings_plans.each do |savings| monthly_base -= (savings[:percent]/100.0 * monthly_base).round end (FortuneTeller::Utils::TaxCalculator::FLAT[:w2] * monthly_base).round end.sum.round end def all_transforms @all_transforms ||= years.map { |year| year_transforms(year) } end def all_guaranteed_cashflows @all_guaranteed_cashflows ||= years.map { |year| year_guaranteed_cashflows(year) } end def simulate(growth_rates:, result_serializer: FortuneTeller::ResultSerializers::Test) finalize_plan! unless @finalized growth_rates = GrowthRateSet.new(growth_rates, start_year: @beginning.year) FortuneTeller::Simulation.run( growth_rates: growth_rates, initial_state: initial_state, transforms: all_transforms, guaranteed_cashflows: all_guaranteed_cashflows, allocation_strategy: @allocation_strategy, debit_strategy: @debit_strategy, result_serializer: result_serializer ) end def start_year beginning.year end def end_year @end_year end def years (start_year..end_year) end private OBJECT_TYPES.each do |object_type| attr_writer object_type.to_s.pluralize.to_sym end def finalize_plan! validate_plan! #finalize end_date @end_year = oldest_birthday.year + @end_age plan_components.each do |c| c.build_generators(self) end @finalized = true end # Note: there is a potential efficiency boost for couples by merging InflatingInts of the # same key before returning. That may result in some rounding errors in the tests. def year_guaranteed_cashflows(year) guaranteed_cashflow_components .map{ |c| c.generators[year].gen_cashflows } .transpose .map { |month| month.delete_if(&:nil?) } end def guaranteed_cashflow_components @guaranteed_cashflow_components ||= %i[job social_security guaranteed_income].map do |object_type| send(object_type.to_s.pluralize.to_sym) end .flat_map(&:values) end def year_transforms(year) plan_components .flat_map do |component| component.generators[year].gen_transforms end .sort end def plan_components @plan_components ||= %i[job social_security guaranteed_income spending_strategy].map do |object_type| send(object_type.to_s.pluralize.to_sym) end .flat_map(&:values) end def oldest_birthday return @primary.birthday if no_partner? [@primary.birthday, @partner.birthday].max end def strategies FortuneTeller::Strategies end def initial_state @initial_state ||= begin accounts_state = accounts.transform_values do |a| r = a.plan.to_reader.on(@beginning) { date: @beginning, total_balance: r.balances.values.sum, type: r.type, balances: r.balances.dup } end { date: @beginning, accounts: accounts_state } end end def no_partner? @partner.nil? end def no_primary? @primary.nil? end def validate_plan! if no_primary? and no_partner? raise setup_error(:no_person) elsif no_primary? raise setup_error(:no_primary_person) end end def setup_error(token) FortuneTeller::PlanSetupError.new(token) end end end
28.079602
99
0.650248
cd57c4107a106ab4c9e4f2958b3b31c65898a81d
2,972
dart
Dart
lib/app_host_target.dart
tekartik/app_utils.dart
7a952a0beed5924c0b49c6bffc410d4ba5d40835
[ "BSD-3-Clause" ]
null
null
null
lib/app_host_target.dart
tekartik/app_utils.dart
7a952a0beed5924c0b49c6bffc410d4ba5d40835
[ "BSD-3-Clause" ]
null
null
null
lib/app_host_target.dart
tekartik/app_utils.dart
7a952a0beed5924c0b49c6bffc410d4ba5d40835
[ "BSD-3-Clause" ]
null
null
null
import 'package:tekartik_common_utils/string_enum.dart'; //Version appVersion = new Version(0, 1, 0); bool _isLocalhost(String host) { return host.contains('localhost'); } bool _isHostStaging(String host) { return host.contains('-staging.'); } bool _isHostDev(String host) { return host.contains('-dev.'); } bool _isPathStaging(String path) { return path.contains('-staging/'); } bool _isPathDev(String path) { return path.contains('-dev/'); } class AppHostTarget extends StringEnum { AppHostTarget(String name) : super(name); static final AppHostTarget local = AppHostTarget('local'); static final AppHostTarget dev = AppHostTarget('dev'); static final AppHostTarget staging = AppHostTarget('staging'); static final AppHostTarget prod = AppHostTarget('prod'); static List<AppHostTarget> all = [local, dev, staging, prod]; static AppHostTarget? fromTargetName(String? targetName) { if (targetName != null) { final tmpTarget = AppHostTarget(targetName); for (final target in all) { if (tmpTarget == target) { return target; } } } return null; } // will never return prod static AppHostTarget? fromHost(String? host) { if (host != null) { if (_isLocalhost(host)) { return local; } if (_isHostDev(host)) { return dev; } if (_isHostStaging(host)) { return staging; } } return null; } // will never return prod nor local static AppHostTarget? fromPath(String? path) { if (path != null) { if (_isPathStaging(path)) { return staging; } if (_isPathDev(path)) { return dev; } } return null; } static AppHostTarget? fromArguments(Map<String, String?>? arguments) { if (arguments != null && arguments.isNotEmpty) { for (final target in all) { if (arguments.containsKey(target.name)) { return target; } } } return null; } // Allow to check with arguments first static AppHostTarget? fromHostAndPath(String? host, String? path) { final target = fromHost(host) ?? fromPath(path); return target; } static AppHostTarget? fromLocationInfo(LocationInfo? locationInfo) { if (locationInfo != null) { final target = fromArguments(locationInfo.arguments) ?? fromHostAndPath(locationInfo.host, locationInfo.path); return target; } return null; } } abstract class LocationInfo { String? get host; String? get path; Map<String, String?>? get arguments; } /// Typically the argument is window.location.search Map<String, String> locationSearchGetArguments(String? search) { final params = <String, String>{}; if (search != null) { final questionMarkIndex = search.indexOf('?'); if (questionMarkIndex != -1) { search = search.substring(questionMarkIndex + 1); } return Uri.splitQueryString(search); } return params; }
23.776
72
0.646366
05e30602f2e92da59a954b819fa4b92134edd9c4
7,471
py
Python
tasks/geoquery_comment_request.py
aiddata/geo-hpc
8f684e72c14795f2e1532896a4b0999fe6c14d24
[ "MIT" ]
5
2020-02-14T14:21:51.000Z
2021-08-22T19:47:48.000Z
tasks/geoquery_comment_request.py
aiddata/geo-hpc
8f684e72c14795f2e1532896a4b0999fe6c14d24
[ "MIT" ]
1
2017-11-05T20:56:21.000Z
2017-12-08T17:22:13.000Z
tasks/geoquery_comment_request.py
aiddata/geo-hpc
8f684e72c14795f2e1532896a4b0999fe6c14d24
[ "MIT" ]
3
2020-02-27T11:33:43.000Z
2021-08-22T19:47:57.000Z
"""process geoquery request for comment emails called by cronjob on server for branch """ # ----------------------------------------------------------------------------- import sys import os branch = sys.argv[1] utils_dir = os.path.join( os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'utils') sys.path.insert(0, utils_dir) from config_utility import BranchConfig config = BranchConfig(branch=branch) config.test_connection() # ------------------------------------------------------------------------- if config.connection_status != 0: raise Exception('Could not connect to mongodb') import textwrap import time import pandas as pd # # used for logging # sys.stdout = sys.stderr = open( # os.path.dirname(os.path.abspath(__file__)) + '/processing.log', 'a') from email_utility import GeoEmail from geoquery_requests import QueueToolBox # ============================================================================= print '\n=======================================' print '\nRequest for Comments Script' print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()) # ------------------------------------- # modifiable parameters # mode = "auto" mode = "manual" # dry_run = True dry_run = False # maximum number of emails to send per batch (should really be per day for gmail limits, but we only run this once a week+ 1 ) email_limit = 50 # filters for searching requests f = { "n_days": 365, # number of days to search for any requests "request_count": 3, # minimum number of requests in n_days required for an email "earliest_request": 14, # minimum number of days since earliest request "latest_request": 7, # minimum number of days since latest request } # ------------------------------------- queue = QueueToolBox() # load config setting for branch script is running on branch_info = queue.set_branch_info(config) print "`{0}` branch on {1}".format(branch_info.name, branch_info.database) current_timestamp = int(time.time()) def to_seconds(days): """convert days to seconds""" return days*24*60*60 # get timestamp for ndays before present time # used to get requests for past n days search_timestamp = current_timestamp - to_seconds(f["n_days"]) try: search = queue.c_queue.find( { "stage.0.time": {"$gt": search_timestamp} }, { "release_data": 0, "raster_data": 0, "boundary": 0 } ) request_objects = list(search) except Exception as e: print "Error while searching for requests in queue" raise # verify that we have some requests if not request_objects: print "Request queue is empty" else: # convert to dataframe request_df_data = [] for r in request_objects: request_dict = { 'email': r['email'], 'request_time': r['stage'][0]['time'], 'complete_time': r['stage'][3]['time'], 'status': r['status'], 'count': 1 } if 'comments_requested' in r: request_dict['comments_requested'] = r['comments_requested'] else: request_dict['comments_requested'] = 0 if 'contact_flag' in r: request_dict['contact_flag'] = r['contact_flag'] else: request_dict['contact_flag'] = 0 request_df_data.append(request_dict) request_df = pd.DataFrame(request_df_data) # time_field = "request_time" time_field = "complete_time" request_df["earliest_time"] = request_df[time_field] request_df["latest_time"] = request_df[time_field] # convert to user aggregated dataframe user_df = request_df.groupby('email', as_index=False).agg({ "count": "sum", "comments_requested": "sum", "contact_flag": "sum", "earliest_time": "min", "latest_time": "max" }) # filter valid_df = user_df.loc[ (user_df["comments_requested"] == 0) & (user_df["contact_flag"] == 0) & (user_df["count"] > f["request_count"]) & (current_timestamp - user_df["earliest_time"] > to_seconds(f["earliest_request"])) & (current_timestamp - user_df["latest_time"] > to_seconds(f["latest_request"])) ] valid_user_count = len(valid_df) print "\n{} valid users found:\n".format(valid_user_count) valid_df.reset_index(drop=True, inplace=True) # send list of users to staff emails if not dry_run and mode == "manual" and valid_user_count > 0: email_list = valid_df["email"].tolist() email_list_str = "\n\t".join(email_list) mail_to = "[email protected], [email protected], [email protected]" dev = " (dev) " if branch == "develop" else " " mail_subject = ("Your weekly list of GeoQuery{0} user emails").format(dev) mail_message = ( """ Hello there team! Below you will find the list of users who satisfy the criteria for contact. For details on what these criteria actually are, contact your GeoQuery Admin. At the end of this email is some sample language for contacting users. -------------------- {} -------------------- Hello there! We would like to hear about your experience using AidData's GeoQuery tool. Would you please respond to this email with a couple sentences about how GeoQuery has helped you? We are able to make GeoQuery freely available thanks to the generosity of donors and open source data providers. These people love to hear about new research enabled by GeoQuery, and what kind of difference this research is making in the world. Also, we love feedback of all kinds. If something did not go the way you expected, we want to hear about that too. Thanks! \tAidData's GeoQuery Team """).format(email_list_str) mail_message = textwrap.dedent(mail_message) email = GeoEmail(config) mail_status = email.send_email(mail_to, mail_subject, mail_message) if not mail_status[0]: print mail_status[1] raise mail_status[2] # email any users who pass above filtering with request for comments # add "comments_requested" = 1 flag to all of their existing requests for ix, user_info in valid_df.iterrows(): user_email = user_info["email"] if mode == "auto" and ix >= email_limit: print "\n Warning: maximum emails reached. Exiting." break print '\t{}: {}'.format(ix, user_email) # automated request for comments if not dry_run and mode == "auto": print "sending emails..." # avoid gmail email per second limits time.sleep(1) queue.notify_comments(user_email) queue.c_queue.update_many( {"email": user_email}, {"$set": {"comments_requested": 1}} ) # flag as being included in list for staff to manually email elif not dry_run and mode == "manual": queue.c_queue.update_many( {"email": user_email}, {"$set": {"contact_flag": 1}} ) print '\n---------------------------------------' print "\nFinished checking requests" print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())
27.568266
126
0.591755
d6243969be1997f2387e14efda201c10217cf393
3,303
cs
C#
UiPlus/Library/Charts/UiChartHeat.cs
interopxyz/UiPlus
929579c0932b0be3f36d3b63a1da1acc16d324db
[ "MIT" ]
1
2022-03-20T23:30:49.000Z
2022-03-20T23:30:49.000Z
UiPlus/Library/Charts/UiChartHeat.cs
interopxyz/UiPlus
929579c0932b0be3f36d3b63a1da1acc16d324db
[ "MIT" ]
null
null
null
UiPlus/Library/Charts/UiChartHeat.cs
interopxyz/UiPlus
929579c0932b0be3f36d3b63a1da1acc16d324db
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Rg = Rhino.Geometry; using Gk = Grasshopper.Kernel; using Sw = System.Windows; using Wm = System.Windows.Media; using Sd = System.Drawing; using Wpf = System.Windows.Controls; using Mat = MaterialDesignThemes.Wpf; using Mah = MahApps.Metro.Controls; using Xcd = Xceed.Wpf.Toolkit; using Ldf = LiveCharts.Defaults; using Lch = LiveCharts.Wpf; namespace UiPlus.Elements { public class UiChartHeat : UiDataVis { #region Members public List<Sd.Color> Colors = new List<Sd.Color>(); #endregion #region Constructors public UiChartHeat() : base() { SetInputs(); } public UiChartHeat(UiChartHeat uiControl) : base(uiControl) { this.control = uiControl.Control; } #endregion #region Properties #endregion #region Methods protected override void SetData() { chart.Series.Clear(); if (dataSets.Count > 0) { Lch.HeatSeries series = new Lch.HeatSeries(); List<Ldf.HeatPoint> points = new List<Ldf.HeatPoint>(); int i = 0; foreach (UiDataSet dataSet in dataSets) { int j = 0; foreach (double number in dataSet.NumberItems) { points.Add(new Ldf.HeatPoint(i, j, number)); j++; } i++; } if (Colors.Count > 1) { List<Wm.GradientStop> stops = new List<Wm.GradientStop>(); for(int c =0;c< Colors.Count;c++) { stops.Add(new Wm.GradientStop(Colors[c].ToMediaColor(),1.0/Colors.Count*c)); } series.Stroke = dataSets[0].SecondaryColor.ToSolidColorBrush(); series.StrokeThickness = dataSets[0].Weight; series.GradientStopCollection = new Wm.GradientStopCollection(stops); } series.Values = new LiveCharts.ChartValues<Ldf.HeatPoint>(points); chart.Series.Add(series); chart.Update(false, true); } } public void SetColors(List<Sd.Color> colors) { } #endregion #region Overrides public override void SetInputs() { chart.Series.Clear(); chart.DisableAnimations = true; chart.HorizontalAlignment = Sw.HorizontalAlignment.Stretch; chart.MinHeight = 300; SetData(); this.control = chart; } public override void SetLegend(Locations location) { } public override void Update(Gk.GH_Component component) { } public override List<object> GetValues() { return new List<object> { null }; } public override string ToString() { return "Ui Heat Chart | " + this.Name; } #endregion } }
23.76259
100
0.517106
5bc6511d2202a568de84aae53a3cf5b4ed64bf99
3,074
css
CSS
public/layout/styles/navi.css
aanadhila/Quiz1_Annisa-Aulia-Nadhila_2C
b85aa53db856c1464b784463f222116e0b92f962
[ "MIT" ]
null
null
null
public/layout/styles/navi.css
aanadhila/Quiz1_Annisa-Aulia-Nadhila_2C
b85aa53db856c1464b784463f222116e0b92f962
[ "MIT" ]
null
null
null
public/layout/styles/navi.css
aanadhila/Quiz1_Annisa-Aulia-Nadhila_2C
b85aa53db856c1464b784463f222116e0b92f962
[ "MIT" ]
null
null
null
@charset "utf-8"; /* Template Name: Realistic Author: <a href="http://www.os-templates.com/">OS Templates</a> Author URI: http://www.os-templates.com/ Licence: Free to use under our free template licence terms Licence URI: http://www.os-templates.com/template-terms File: Navigation CSS */ #topnav{z-index:1000; font-size:14px; text-align:center; text-transform:uppercase; border-top:1px solid #999999; border-bottom:1px solid #999999;} /* ESSENTIAL STYLES */ .nav, .nav *{margin:0; padding:0; list-style:none;} .nav ul{position:absolute; top:-999em; width:10em;} .nav ul li{width:100%;} .nav li:hover{visibility:inherit;} .nav li{position:relative; display:inline-block; zoom:1; *display:inline;} .nav a{display:block; position:relative;} .nav li:hover ul, .nav li.sfHover ul{left:0; top:2.5em; z-index:99;} ul.nav li:hover li ul, ul.nav li.sfHover li ul{top:-999em;} ul.nav li li:hover ul, ul.nav li li.sfHover ul{left:10em; top:0;} ul.nav li li:hover li ul, ul.nav li li.sfHover li ul{top:-999em;} ul.nav li li li:hover ul, ul.nav li li li.sfHover ul{left:10em; top:0;} /* Default Colours */ .nav a{padding:.75em 1em; text-decoration:none; background-color:#E0E0E0;} .nav li.active a{color:#999999;} .nav a, .nav a:visited, .nav li.active li a{color:#333333;} .nav li{background:#E0E0E0;} .nav li li{background:#E0E0E0;} .nav li li li{background:#E0E0E0;} .nav li:hover, .nav li.sfHover, .nav a:focus, .nav a:hover, .nav a:active{background:#C0C0C0;} /* arrows */ .nav li a{padding-left:1.5em; text-align:left;} .nav a.sf-with-ul{background:url("images/nav_arrows.png") no-repeat 5px 16px;} /* ----------------------------------------------Column Navigation------------------------------------- */ .column .subnav{display:block; padding:25px; background-color:#F9F9F9; margin-bottom:30px;} .column .subnav h2{margin:0 0 20px 0; padding:0 0 14px 0; font-size:20px; font-weight:normal; font-family:Georgia, "Times New Roman", Times, serif; color:#666666; background-color:#F9F9F9; line-height:normal; border-bottom:1px dotted #666666;} .column .subnav ul{margin:0; padding:0; list-style:none;} .column .subnav li{margin:0 0 3px 0; padding:0;} .column .subnav ul ul, .column .subnav ul ul ul, .column .subnav ul ul ul ul, .column .subnav ul ul ul ul ul{border-top:none; padding-top:0;} .column .subnav a{display:block; margin:0; padding:5px 10px 5px 20px; color:#666666; background:url("images/red_file.gif") no-repeat 10px center #F9F9F9; text-decoration:none; border-bottom:1px dotted #666666;} .column .subnav a:hover{color:#A3443E; background-color:#F9F9F9;} .column .subnav ul ul a, .column .subnav ul ul ul a, .column .subnav ul ul ul ul a, .column .subnav ul ul ul ul ul a{background:url("images/black_file.gif") no-repeat #F9F9F9;} .column .subnav ul ul a{padding-left:40px; background-position:30px center;} .column .subnav ul ul ul a{padding-left:50px; background-position:40px center;} .column .subnav ul ul ul ul a{padding-left:60px; background-position:50px center;} .column .subnav ul ul ul ul ul a{padding-left:70px; background-position:60px center;}
55.890909
243
0.710475
ed1766c006f90c3b91f2d5a3626a94f8bb85e9d4
1,124
h
C
crypto32/idea.h
ab300819/applied-cryptography
3fddc4cda2e1874e978608259034d36c60a4dbba
[ "MIT", "Unlicense" ]
1
2021-04-17T05:01:00.000Z
2021-04-17T05:01:00.000Z
crypto32/idea.h
ab300819/applied-cryptography
3fddc4cda2e1874e978608259034d36c60a4dbba
[ "MIT", "Unlicense" ]
null
null
null
crypto32/idea.h
ab300819/applied-cryptography
3fddc4cda2e1874e978608259034d36c60a4dbba
[ "MIT", "Unlicense" ]
null
null
null
#ifndef CRYPTOPP_IDEA_H #define CRYPTOPP_IDEA_H #include "cryptlib.h" #include "misc.h" NAMESPACE_BEGIN(CryptoPP) class IDEA : public BlockTransformation { public: IDEA(const byte *userKey, CipherDir dir); void ProcessBlock(byte * inoutBlock) const {IDEA::ProcessBlock(inoutBlock, inoutBlock);} void ProcessBlock(const byte *inBlock, byte * outBlock) const; enum {KEYLENGTH=16, BLOCKSIZE=8, ROUNDS=8}; unsigned int BlockSize() const {return BLOCKSIZE;}; static unsigned int KeyLength(unsigned int keylength) {return KEYLENGTH;} private: void EnKey(const byte *); void DeKey(); SecBlock<word> key; #ifdef IDEA_LARGECACHE static inline void LookupMUL(word &a, word b); void LookupKeyLogs(); static void BuildLogTables(); static bool tablesBuilt; static word16 log[0x10000], antilog[0x10000]; #endif }; class IDEAEncryption : public IDEA { public: IDEAEncryption(const byte * userKey, unsigned int = 0) : IDEA (userKey, ENCRYPTION) {} }; class IDEADecryption : public IDEA { public: IDEADecryption(const byte * userKey, unsigned int = 0) : IDEA (userKey, DECRYPTION) {} }; NAMESPACE_END #endif
21.207547
74
0.746441
ff3afbecb35e337cd5d91f1b208344641966e6d1
2,606
py
Python
pipelinePhase.py
armbrustsamuel/PythonPipelineEmulator
d242fd51da4607eebb9e33feaaf8a8d9466d709d
[ "MIT" ]
null
null
null
pipelinePhase.py
armbrustsamuel/PythonPipelineEmulator
d242fd51da4607eebb9e33feaaf8a8d9466d709d
[ "MIT" ]
null
null
null
pipelinePhase.py
armbrustsamuel/PythonPipelineEmulator
d242fd51da4607eebb9e33feaaf8a8d9466d709d
[ "MIT" ]
null
null
null
# PIPELINE PHASES import re import miscellaneous as misc import calculator as calc instructionMemory = [] # Search phase # @param program counter # @return a instruction such as "dadd","daddi","dsub" ... def search(pc): # Retrieve next instruction in memory instruction = misc.readInstructions("inputfile.txt") dummyReturn = [" "," "," "] if pc >= len(instruction): return dummyReturn return instruction[pc] #returnIntruction = ["lw", "$s1", "$s2", "$s3"] #return returnIntruction # Decode phase # @param # @return def decode(pc): # Decode instruction and call execute instructionMemory = misc.readInstructions("inputfile.txt") dummyDecode = [" "," "," "," "," "] # Adjust length if pc >= len(instructionMemory): return dummyDecode else: instructionMemory[pc].append(" ") # -- print(len(instructionMemory[pc])) if len(instructionMemory[pc]) > 3 : instructionMemory[pc][3] = instructionMemory[pc][2] if len(instructionMemory[pc]) > 2: instructionMemory[pc][2] = instructionMemory[pc][1] instructionMemory[pc][1] = instructionMemory[pc][0][5:].strip() instructionMemory[pc][0] = instructionMemory[pc][0][:5].strip() return instructionMemory[pc] # To be removed #misc.printInstruction(instructionMemory,pc) # Execute phase # @param # @return exit[code, message] # - 0 - correct execution , result of calculation # - 1 - wrong execution , "Wrong instruction" # - 2 - shift address , "ok" or "nok" def execute(opCode,reg1,reg2): # Read registers registers = misc.readRegisters('registers.txt') if reg1 != " ": op1 = registers[int(reg1)] if reg1 != " ": op2 = registers[int(reg2)] if opCode.find("dadd") != -1: return calc.sum(op1,op2) elif opCode.find("daddi") != -1: return calc.daddi(op1,op2) elif opCode.find("dsub") != -1: return calc.sub(op1,op2) elif opCode.find("lw") != -1: return "LW" elif opCode.find("dsubi") != -1: return calc.sub(int(op1),int(op2)) elif opCode.find("beqz") != -1: return calc.beqz(op1) elif opCode.find("bnez") != -1: return calc.bnez(op1) elif opCode.find("beq") != -1: return calc.beq(op1,op2) elif opCode.find("bne") != -1: return calc.bne(op1,op2) elif opCode.find("j") != -1: return "JUMP" elif opCode.find(" ") != -1: return 0 else: #print("Wrong instruction - review code") return 1 # MEMORY phase # Reuse already created function # Writeback # @param # @return def saveAtRegister(data, address, registers): registers[address] = data if ( misc.writeRegisters('registers.txt', registers) == 0): return 0 else: print("Error saving registers") return 1
24.819048
65
0.671527
2ffe152461479a0e332286f87c289621a42e7337
2,966
py
Python
eclipse-mosquitto/test/broker/06-bridge-b2br-late-connection.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
2
2021-04-20T14:28:59.000Z
2021-05-06T07:46:53.000Z
eclipse-mosquitto/test/broker/06-bridge-b2br-late-connection.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
null
null
null
eclipse-mosquitto/test/broker/06-bridge-b2br-late-connection.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # Does a bridge queue up messages correctly if the remote broker starts up late? from mosq_test_helper import * def write_config(filename, port1, port2, protocol_version): with open(filename, 'w') as f: f.write("port %d\n" % (port2)) f.write("allow_anonymous true\n") f.write("\n") f.write("connection bridge_sample\n") f.write("address 127.0.0.1:%d\n" % (port1)) f.write("topic bridge/# out 1\n") f.write("notifications false\n") f.write("bridge_attempt_unsubscribe false\n") f.write("bridge_protocol_version %s\n" % (protocol_version)) def do_test(proto_ver): if proto_ver == 4: bridge_protocol = "mqttv311" proto_ver_connect = 128+4 else: bridge_protocol = "mqttv50" proto_ver_connect = 5 (port1, port2) = mosq_test.get_port(2) conf_file = os.path.basename(__file__).replace('.py', '.conf') write_config(conf_file, port1, port2, bridge_protocol) rc = 1 keepalive = 60 client_id = socket.gethostname()+".bridge_sample" connect_packet = mosq_test.gen_connect(client_id, keepalive=keepalive, clean_session=False, proto_ver=proto_ver_connect) connack_packet = mosq_test.gen_connack(rc=0, proto_ver=proto_ver) c_connect_packet = mosq_test.gen_connect("client", keepalive=keepalive, proto_ver=proto_ver) c_connack_packet = mosq_test.gen_connack(rc=0, proto_ver=proto_ver) mid = 1 publish_packet = mosq_test.gen_publish("bridge/test", qos=1, mid=mid, payload="message", proto_ver=proto_ver) puback_packet = mosq_test.gen_puback(mid, proto_ver=proto_ver) ssock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ssock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) ssock.settimeout(40) ssock.bind(('', port1)) ssock.listen(5) broker = mosq_test.start_broker(filename=os.path.basename(__file__), port=port2, use_conf=True) try: (bridge, address) = ssock.accept() bridge.settimeout(20) client = mosq_test.do_client_connect(c_connect_packet, c_connack_packet, timeout=20, port=port2) mosq_test.do_send_receive(client, publish_packet, puback_packet, "puback") client.close() # We've now sent a message to the broker that should be delivered to us via the bridge mosq_test.expect_packet(bridge, "connect", connect_packet) bridge.send(connack_packet) mosq_test.expect_packet(bridge, "publish", publish_packet) rc = 0 bridge.close() except mosq_test.TestError: pass finally: os.remove(conf_file) try: bridge.close() except NameError: pass broker.terminate() broker.wait() (stdo, stde) = broker.communicate() ssock.close() if rc: print(stde.decode('utf-8')) exit(rc) do_test(proto_ver=4) do_test(proto_ver=5) exit(0)
32.955556
124
0.666217
13732b8a0d547482667a228ccc1113b8bfe6f1ec
1,375
swift
Swift
Sources/Controllers/DitoTrack.swift
ditointernet/dito_ios
807709c6ee5bd4bd51599ac1b2987ef98d1ca9bb
[ "MIT" ]
null
null
null
Sources/Controllers/DitoTrack.swift
ditointernet/dito_ios
807709c6ee5bd4bd51599ac1b2987ef98d1ca9bb
[ "MIT" ]
null
null
null
Sources/Controllers/DitoTrack.swift
ditointernet/dito_ios
807709c6ee5bd4bd51599ac1b2987ef98d1ca9bb
[ "MIT" ]
null
null
null
// // DTTrack.swift // DitoSDK // // Created by Rodrigo Damacena Gamarra Maciel on 24/12/20. // import Foundation class DitoTrack { private let service: DitoTrackService private let trackOffline: DitoTrackOffline init(service: DitoTrackService = .init(), trackOffline: DitoTrackOffline = .init()) { self.service = service self.trackOffline = trackOffline } func track(data: DitoEvent) { DispatchQueue.global().async { let eventRequest = DitoEventRequest(platformApiKey: Dito.apiKey, sha1Signature: Dito.signature, event: data) if let reference = self.trackOffline.reference, !reference.isEmpty { self.service.event(reference: reference, data: eventRequest) { (track, error) in if let error = error { self.trackOffline.track(event: eventRequest) DitoLogger.error(error.localizedDescription) } else { DitoLogger.information("Track - Evento enviado") } } } else { self.trackOffline.track(event: eventRequest) DitoLogger.warning("Track - Antes de enviar um evento é preciso identificar o usuário.") } } } }
31.976744
120
0.563636
c8e16e3ef461bbc1a433d51f5e11044d1a5d0afa
1,321
css
CSS
css/aula17.css
montalvas/front-end-completo-2.0
dbba484050a7c549e6de005651c948ace927349d
[ "MIT" ]
null
null
null
css/aula17.css
montalvas/front-end-completo-2.0
dbba484050a7c549e6de005651c948ace927349d
[ "MIT" ]
null
null
null
css/aula17.css
montalvas/front-end-completo-2.0
dbba484050a7c549e6de005651c948ace927349d
[ "MIT" ]
null
null
null
* { margin: 0; padding: 0; border: 0; } body { font-family: sans-serif; background-color: dimgray; margin: 0px; } header { background-color: white; padding: 10px; margin: 10px; } header > h1 { margin-bottom: 20px; text-align: center; } nav { background-color: gray; padding: 5px; box-shadow: 5px 3px 7px 1px rgba(0, 0, 0, 0.432); } nav > a { text-decoration: none; color: white; font-weight: bold; margin-right: 30px; } nav > a:hover { text-decoration: underline; } main { background-color: white; padding: 10px; margin: 10px; } article { background-color: lightgray; box-shadow: 5px 7px 7px 1px #00000066; padding: 10px; margin: 30px; border-radius: 15px; } article > h2 { margin-bottom: 20px; } article > p { margin-bottom: 10px; padding: 15px; text-align: justify; } article > aside { background-color: rgb(160, 158, 158); font-style: italic; padding: 3px; } aside > p { margin-left: 15px; } footer { background-color: black; color: white; padding: 4px; margin: 0px; text-align: center; } footer > p { margin: 0px; } #bola { margin: 30px auto; width: 100px; height: 100px; background-color: white; border-radius: 50%; }
14.204301
53
0.590462