hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
7fb6ad43a58157016e980d039fc27e84f795bde8
110
go
Go
vendor/github.com/containerd/containerd/content/local/store_windows.go
AkihiroSuda/containerd-example-custom-daemon
40a19a7450fd6f19f70d26db688ee0dee610e8ba
[ "Apache-2.0" ]
1
2018-09-18T07:44:43.000Z
2018-09-18T07:44:43.000Z
vendor/github.com/containerd/containerd/content/local/store_windows.go
AkihiroSuda/containerd-example-custom-daemon
40a19a7450fd6f19f70d26db688ee0dee610e8ba
[ "Apache-2.0" ]
null
null
null
vendor/github.com/containerd/containerd/content/local/store_windows.go
AkihiroSuda/containerd-example-custom-daemon
40a19a7450fd6f19f70d26db688ee0dee610e8ba
[ "Apache-2.0" ]
1
2017-03-26T21:42:40.000Z
2017-03-26T21:42:40.000Z
package local import ( "os" "time" ) func getStartTime(fi os.FileInfo) time.Time { return fi.ModTime() }
10
45
0.681818
43c897a03bd60f30ab86f5f91df3e6b6602a9437
1,360
sql
SQL
ats_sql/mca_coupon.sql
lanlianjiu/ATS
248648c30085a3e5bca89bba4cd341d39afc6011
[ "BSD-3-Clause" ]
null
null
null
ats_sql/mca_coupon.sql
lanlianjiu/ATS
248648c30085a3e5bca89bba4cd341d39afc6011
[ "BSD-3-Clause" ]
null
null
null
ats_sql/mca_coupon.sql
lanlianjiu/ATS
248648c30085a3e5bca89bba4cd341d39afc6011
[ "BSD-3-Clause" ]
null
null
null
/* Navicat MySQL Data Transfer Source Server : 本地连接 Source Server Version : 50505 Source Host : localhost:3306 Source Database : mca Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2018-03-31 14:46:26 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `mca_coupon` -- ---------------------------- DROP TABLE IF EXISTS `mca_coupon`; CREATE TABLE `mca_coupon` ( `coupon_id` int(11) NOT NULL, `coupon_name` varchar(20) DEFAULT NULL, `is_used` int(11) DEFAULT NULL, `coupon_value` int(11) DEFAULT NULL, `coupon_type_id` int(11) DEFAULT NULL, `create_date` date DEFAULT NULL, `create_uid` int(11) DEFAULT NULL, `update_date` date DEFAULT NULL, `update_uid` int(11) DEFAULT NULL, PRIMARY KEY (`coupon_id`), KEY `coupon_type_id` (`coupon_type_id`), KEY `create_uid` (`create_uid`), KEY `update_uid` (`update_uid`), CONSTRAINT `mca_coupon_ibfk_1` FOREIGN KEY (`coupon_type_id`) REFERENCES `coupon_type` (`coupon_type_id`), CONSTRAINT `mca_coupon_ibfk_2` FOREIGN KEY (`create_uid`) REFERENCES `web_user` (`id`), CONSTRAINT `mca_coupon_ibfk_3` FOREIGN KEY (`update_uid`) REFERENCES `web_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of mca_coupon -- ----------------------------
30.909091
108
0.649265
101f5406a70a1dba7a502d10f219d041a97bdd5d
656
kt
Kotlin
app/src/main/java/com/dartharrmi/weathery/base/BaseViewModel.kt
dartharrmi/weathery
cb7baa67ba30e7d76731df77a9eaf93be29e3396
[ "MIT" ]
null
null
null
app/src/main/java/com/dartharrmi/weathery/base/BaseViewModel.kt
dartharrmi/weathery
cb7baa67ba30e7d76731df77a9eaf93be29e3396
[ "MIT" ]
null
null
null
app/src/main/java/com/dartharrmi/weathery/base/BaseViewModel.kt
dartharrmi/weathery
cb7baa67ba30e7d76731df77a9eaf93be29e3396
[ "MIT" ]
null
null
null
package com.dartharrmi.weathery.base import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.dartharrmi.weathery.coroutines.CoroutineContextProvider import com.dartharrmi.weathery.coroutines.ICoroutineContextProvider import com.dartharrmi.weathery.ui.livedata.Event abstract class BaseViewModel : ViewModel() { val contextProvider: ICoroutineContextProvider = CoroutineContextProvider() val isLoadingEvent = MutableLiveData<Event<Boolean>>() fun showProgress() { isLoadingEvent.value = Event.success(true) } fun hideProgress() { isLoadingEvent.value = Event.success(false) } }
28.521739
79
0.783537
38a7bb3fc4bcf60a709b08f84f74df479cb73419
712
h
C
Example/Pods/DBCategoryKit/DBCategoryKit/Classes/QuartzCore/DBQuartzCore.h
TylerDB/DBDatePickerView
dddae1db9fdf33ff0034c558b9c0c0167b85d775
[ "MIT" ]
1
2022-03-16T13:58:55.000Z
2022-03-16T13:58:55.000Z
Example/Pods/DBCategoryKit/DBCategoryKit/Classes/QuartzCore/DBQuartzCore.h
TylerDB/DBDatePickerView
dddae1db9fdf33ff0034c558b9c0c0167b85d775
[ "MIT" ]
null
null
null
Example/Pods/DBCategoryKit/DBCategoryKit/Classes/QuartzCore/DBQuartzCore.h
TylerDB/DBDatePickerView
dddae1db9fdf33ff0034c558b9c0c0167b85d775
[ "MIT" ]
null
null
null
// // DBQuartzCore.h // DBCategoryKit_Example // // Created by DB on 2018/12/26. // Copyright © 2018年 DB. All rights reserved. // #if __has_include(<DBCategoryKit/DBQuartzCore.h>) #import <DBCategoryKit/CAAnimation+DBEasingEquations.h> #import <DBCategoryKit/CALayer+DBBorderColor.h> #import <DBCategoryKit/CAMediaTimingFunction+DBAdditionalEquations.h> #import <DBCategoryKit/CAShapeLayer+DBUIBezierPath.h> #import <DBCategoryKit/CATransaction+DBAnimateWithDuration.h> #else #import "CAAnimation+DBEasingEquations.h" #import "CALayer+DBBorderColor.h" #import "CAMediaTimingFunction+DBAdditionalEquations.h" #import "CAShapeLayer+DBUIBezierPath.h" #import "CATransaction+DBAnimateWithDuration.h" #endif
27.384615
69
0.804775
2f304895ca1ccf2a3499187451418f58c4ad4f7b
5,986
php
PHP
resources/views/content/care/buyers-guide.blade.php
bhasink/OmRealEstateProject
9a68a73b4c2d3a261552699998f24ef2992df0bc
[ "MIT" ]
null
null
null
resources/views/content/care/buyers-guide.blade.php
bhasink/OmRealEstateProject
9a68a73b4c2d3a261552699998f24ef2992df0bc
[ "MIT" ]
null
null
null
resources/views/content/care/buyers-guide.blade.php
bhasink/OmRealEstateProject
9a68a73b4c2d3a261552699998f24ef2992df0bc
[ "MIT" ]
null
null
null
@extends('layouts.layout') @section('content') @include('layouts.header') <style> .top-content{ margin-bottom: 0px; height: 515px; } </style> <div class="top-content buyers-guide-banner"> </div> <header> <nav id='cssmenu'> <div id="head-mobile"></div> <div class="button-cont button" onclick="myFunction(this)"> <div class="bar1"></div> <div class="bar2"></div> <div class="bar3"></div> </div> <ul> <li><a href='/care/omaxe-care'>OMAXE CARE</a></li> <li><a href='/care/nri-care'>NRI CARE</a></li> <li><a href='/care/associate'>ASSOCIATES</a></li> <li><a href='/care/vendors'>VENDORS</a></li> <li class='active'><a href='/care/buyers-guide'>BUYERS GUIDE</a></li> </ul> </nav> </header> {{--{{ Breadcrumbs::render('disclaimer', "/about-us/awards-and-honors","Current Openings") }}--}} <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="{{url('/')}}">Home</a></li> <li class="breadcrumb-item active">Care</li> <li class="breadcrumb-item active">Buyers Guide</li> </ol> <section class="invcon"> <div class="container omaxe-care-page buyers-guide2"> <div class="row"> <div class="col-md-12"> <h4 class="nri-form-title">Check list</h4> </div> </div> <div class="row"> <div class="col-md-3 rep"> <figure> <a target="_blank" href="/images/buyers-guide/Definitions-and-Interpretation.pdf"> <img src="/images/static/PDF.png" alt=""></a> <figcaption class="repdata"> <p>Definitions and Interpretations.</p> </figcaption> </figure> </div> <div class="col-md-3 rep"> <figure> <a target="_blank" href="/images/buyers-guide/points.pdf"> <img src="/images/static/PDF.png" alt=""></a> <figcaption class="repdata"> <p> Documents Required for Booking a Property.</p> </figcaption> </figure> </div> <div class="col-md-3 rep"> <figure> <a target="_blank" href="/images/buyers-guide/Downloads_14_Change-Correspondence-Address.pdf"> <img src="/images/static/PDF.png" alt=""></a> <figcaption class="repdata"> <p> Documents Required for change of Correspondence Address . </p> </figcaption> </figure> </div> <div class="col-md-3 rep"> <figure> <a target="_blank" href="/images/buyers-guide/Downloads_15_Change-permanent-Address-before-execution-of-Agreement.pdf"> <img src="/images/static/PDF.png" alt=""></a> <figcaption class="repdata"> <p>Documents Required for change of Permanent Address, before Execution of Agreement. </p> </figcaption> </figure> </div> </div> <div class="row"> <div class="col-md-3 rep"> <figure> <a target="_blank" href="/images/buyers-guide/Downloads_16_Correction-of-Name-before-Execution-of-Agreement.pdf"> <img src="/images/static/PDF.png" alt=""></a> <figcaption class="repdata"> <p>Documents Required for Correction of Name (say, spelling) before Execution of Agreement.</p> </figcaption> </figure> </div> <div class="col-md-3 rep"> <figure> <a target="_blank" href="/images/buyers-guide/Downloads_9_Home-Loan-documents.pdf"> <img src="/images/static/PDF.png" alt=""></a> <figcaption class="repdata"> <p> Home Loan documents.</p> </figcaption> </figure> </div> <div class="col-md-3 rep"> <figure> <a target="_blank" href="/images/buyers-guide/points.pdf"> <img src="/images/static/PDF.png" alt=""></a> <figcaption class="repdata"> <p> Registry and Endorsement. </p> </figcaption> </figure> </div> {{--<div class="col-md-3 rep">--}} {{--<figure>--}} {{--<a target="_blank" href="/images/buyers-guide/Downloads_13_Registry-Endorsement.pdf"> <img src="/images/static/PDF.png" alt=""></a>--}} {{--<figcaption class="repdata">--}} {{--<p>Documents Required for Booking a Property.</p>--}} {{--</figcaption>--}} {{--</figure>--}} {{--</div>--}} </div> </div> </section> <script src="{{ asset('js/projectstatic.js') }}"></script> <script> var iScroll = $(window).scrollTop(); iScroll = iScroll + 300; $('html, body').animate({ scrollTop: iScroll }, 50); </script> @include('layouts.footer') @endsection
32.356757
190
0.432843
700a33b26cb5ebec2176f87473a8d59b94f3bfdf
1,085
go
Go
internal/elastic/add.go
tuliptools/bcdhub
a612c8a78b157d128c6b19deb2d3cb6cd4eafe45
[ "MIT" ]
null
null
null
internal/elastic/add.go
tuliptools/bcdhub
a612c8a78b157d128c6b19deb2d3cb6cd4eafe45
[ "MIT" ]
null
null
null
internal/elastic/add.go
tuliptools/bcdhub
a612c8a78b157d128c6b19deb2d3cb6cd4eafe45
[ "MIT" ]
null
null
null
package elastic import ( "bytes" "context" "encoding/json" "github.com/elastic/go-elasticsearch/v8/esapi" ) // AddDocument - func (e *Elastic) AddDocument(v interface{}, index string) (s string, err error) { b, err := json.Marshal(v) if err != nil { return } req := esapi.IndexRequest{ Index: index, Body: bytes.NewReader(b), Refresh: "true", } res, err := req.Do(context.Background(), e) if err != nil { return } defer res.Body.Close() r, err := e.getResponse(res) if err != nil { return } return r.Get("_id").String(), nil } // AddDocumentWithID - func (e *Elastic) AddDocumentWithID(v interface{}, index, docID string) (string, error) { b, err := json.Marshal(v) if err != nil { return "", err } req := esapi.IndexRequest{ Index: index, Body: bytes.NewReader(b), Refresh: "true", DocumentID: docID, } res, err := req.Do(context.Background(), e) if err != nil { return "", err } defer res.Body.Close() r, err := e.getResponse(res) if err != nil { return "", err } return r.Get("_id").String(), nil }
17.786885
89
0.61659
1614fa7b08a4c85277fb4535cd613e25c0d021b4
3,679
ts
TypeScript
app/services/theme.ts
andwoo/homescreen-browser-extension
01aa71fa901a5f89efdb749852fffc007b00275b
[ "MIT" ]
null
null
null
app/services/theme.ts
andwoo/homescreen-browser-extension
01aa71fa901a5f89efdb749852fffc007b00275b
[ "MIT" ]
13
2021-01-10T17:24:58.000Z
2021-07-18T18:06:15.000Z
app/services/theme.ts
andwoo/homescreen-browser-extension
01aa71fa901a5f89efdb749852fffc007b00275b
[ "MIT" ]
2
2020-04-23T14:43:38.000Z
2020-04-24T17:48:25.000Z
import Service from '@ember/service'; import { tracked } from '@glimmer/tracking' export enum Theme { Light = 'Light', Dark = 'Dark' } const themeKey = 'themeName' const cssVariables: {[key: string]: {Light: string, Dark: string}} = { /* Header */ '--h-font-family': {Light: "'Open Sans', sans-serif", Dark: 'VT323, monospace'}, /* Header */ '--h-header-background': {Light: '#f1dcd1', Dark: '#09141b'}, '--h-header-text': {Light: '#242537', Dark: '#839395'}, /* Content */ '--h-content-background': {Light: '#ffeee4', Dark: '#122733'}, '--h-content-text': {Light: '#242537', Dark: '#839395'}, /* Button Default */ '--h-btn-bg-default': {Light: '#242537', Dark: 'rgba(138, 155, 0, 0.35)'}, '--h-btn-txt-default': {Light: '#f3e8eb', Dark: '#8A9B00'}, '--h-btn-bg-hover-default': {Light: '#53547f', Dark: '#8A9B00'}, '--h-btn-txt-hover-default': {Light: '#f3e8eb', Dark: '#122733'}, /* Button Ghost */ '--h-btn-bg-ghost': {Light: '#242537', Dark: '#839395'}, '--h-btn-txt-ghost': {Light: '#242537', Dark: '#839395'}, '--h-btn-bg-hover-ghost': {Light: '#53547f', Dark: '#c8cfd0'}, '--h-btn-txt-hover-ghost': {Light: '#53547f', Dark: '#c8cfd0'}, /* Button Transparent */ '--h-btn-bg-transparent': {Light: 'transparent', Dark: 'transparent'}, '--h-btn-txt-transparent': {Light: '#242537', Dark: '#839395'}, '--h-btn-bg-hover-transparent': {Light: '#53547f', Dark: '#8A9B00'}, '--h-btn-txt-hover-transparent': {Light: '#f3e8eb', Dark: '#122733'}, /* Button Danger */ '--h-btn-bg-danger': {Light: '#fc6454', Dark: 'rgba(189, 59, 51, 0.35)'}, '--h-btn-txt-danger': {Light: '#fffffc', Dark: '#BD3B33'}, '--h-btn-bg-hover-danger': {Light: '#fa7869', Dark: '#BD3B33'}, '--h-btn-txt-hover-danger': {Light: '#fffffc', Dark: '#122733'}, /* Input */ '--h-input-bg': {Light: '#f9f0eb', Dark: '#09141b'}, '--h-input-bd': {Light: '#f9f0eb', Dark: '#112836'}, '--h-input-txt': {Light: '#242537', Dark: '#c8cfd0'}, /* Boxes */ '--h-box-bg-default': {Light: '#f1dcd1', Dark: 'rgb(26, 52, 65)'}, '--h-box-txt-default': {Light: '#242537', Dark: '#839395'}, '--h-box-bg-info': {Light: '#e6ac9e', Dark: 'rgba(103, 114, 23, 0.35)'}, '--h-box-txt-info': {Light: '#242537', Dark: '#8A9B00'}, /* Media Box */ '--h-box-bg-media': {Light: '#f1dcd1', Dark: 'rgb(26, 52, 65)'}, '--h-box-txt-media': {Light: '#242537', Dark: '#839395'}, '--h-box-bg-hover-media': {Light: '#ecd0c0', Dark: 'rgb(26, 52, 65)'}, '--h-box-txt-hover-media': {Light: '#242537', Dark: '#c8cfd0'}, '--h-box-bg-media-image' : {Light: '#f1dcd1', Dark: 'rgb(26, 52, 65)'}, /* Media Box Colours */ '--h-text-red' : {Light: '#fc6454', Dark: '#BD3B33'}, '--h-text-green': {Light: '#df7ec8', Dark: '#8A9B00'}, '--h-text-blue': {Light: '#5b6efb', Dark: '#5787D2'}, } export default class ThemeService extends Service { @tracked name: Theme = Theme.Light get isLightTheme(): boolean { return this.name === Theme.Light } async initialize(): Promise<void> { const value = window.localStorage.getItem(themeKey) //@ts-ignore this.setTheme(Theme[value] ?? Theme.Light) } setTheme(name: Theme): void { this.name = name window.localStorage.setItem(themeKey, this.name) this.setThemeValues() } setThemeValues(): void { const element = document.documentElement if(element) { Object.keys(cssVariables).forEach(key => element.style.setProperty(key, cssVariables[key][this.isLightTheme ? Theme.Light : Theme.Dark])) } } } // DO NOT DELETE: this is how TypeScript knows how to look up your services. declare module '@ember/service' { interface Registry { 'theme': ThemeService; } }
39.138298
143
0.59663
c1232b96216f361bcbbb17239a35607ec27021f0
5,952
asm
Assembly
nasm/Reference/main.asm
wbwiltshire/LinuxAssembler
7832553b0fab63c2446432ca60a5f9435c2c920d
[ "Apache-2.0" ]
1
2022-01-11T16:06:43.000Z
2022-01-11T16:06:43.000Z
nasm/Reference/main.asm
wbwiltshire/LinuxAssembler
7832553b0fab63c2446432ca60a5f9435c2c920d
[ "Apache-2.0" ]
null
null
null
nasm/Reference/main.asm
wbwiltshire/LinuxAssembler
7832553b0fab63c2446432ca60a5f9435c2c920d
[ "Apache-2.0" ]
null
null
null
; Reference impelementation for X86_64 assembler on Linux ; using Netwide Assembler (nasm) and Intel syntax ; ; Written for Linux x86_64 ; %r prefix means 64 bit registers ; %e prefix means 32 bit registers ; ; Linux x86_64 system calls: http://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/ ; ; BUFFER SECTION ; CONSTANTS STDIN equ 0 STDOUT equ 1 STDERR equ 2 SYS_WRITE equ 1 SYS_EXIT equ 60 FOUR_PLUS_FOUR equ 4 + 4 BUFFER_SIZE equ 512 ARG_COUNT equ 2 SYS_GET_TOD equ 96 ; BUFFER SECTION section .bss ;local storage allocated at runtime BUFFER_DATA: resb BUFFER_SIZE ;reserve BUFFER_SIZE bytes destination: resb 11 destinationRep: resb 11 destinationStos: resb 11 ; CODE SECTION section .text ;--- Start of main program --- global _start, print extern printf, printElapsed _start: ; Initialiize mov rbp, rsp ; Capture start time lea rdi, [startTime] ; pointer to timeval structure xor rsi, rsi ; pointer to timezone structure (should be null) mov rax, SYS_GET_TOD ; sys/gettimeofday system call syscall ; Make system call ; Get command line arguments pop rcx ; pop the argument count into rcx mov [argC], rcx ; store the count cmp rcx, ARG_COUNT jnz usage lea rsi, [startMsg] call print ; Handle command line arguments %include "getclarguments.inc" examples: ; Examples of moving data and address modes %include "addressingModes.inc" ; Examples of different jumps and compares %include "compareAndJump.inc" ; Example of strings %include "stringStuff.inc" ; Examples of math instructions (addition, subtraction, multiplication, and division) %include "mathinstructions.inc" ; Call printf "C" library function ;Note: printf may destroy rax and rcx, so we'll save them before the call push rax push rcx lea rdi, [cMessage2] ; set 1st parameter (format string) lea rsi, [cParm2] ; set 2st parameter (first variable) xor rax, rax ; because printf is varargs call printf pop rcx pop rax lea rsi, [endMsg] call print exit: ; Capture end time lea rsi, [newline] call print lea rsi, [elapsedMsg] call print lea rdi, [endTime] ; pointer to timeval structure xor rsi, rsi ; pointer to timezone structure (should be null) mov rax, SYS_GET_TOD ; sys/gettimeofday system call syscall ; Make system call mov rax, [endSecs] ; Move seconds for substract sub rax, [startSecs] ; Difference is elapsed time in usecs mov rcx, 1000000 ; Adjust for 1M microseconds/second mul rcx ; mul will multiplie rcx * rax ; result in rax (least significant) and rdx mov rdi, [endMSecs] ; Move for substract sub rdi, [startMSecs] ; Difference is elapsed time in usecs add rdi, rax ; Add in the difference in seconds call printElapsed lea rsi, [newline] ; rdi has elapsed time call print ; exit(0) mov eax, SYS_EXIT ; system call 60 is exit xor rdi, rdi ; exit code 0 syscall ; ---------------------------------------------------------------------------------------- ; Prints a null terminated string with pointer in RSI ; ---------------------------------------------------------------------------------------- print: push rax ; save calling registers push rbx push rcx push rdx push rdi push rsi xor rax, rax ; search for '\0' null terminator mov rdi, rsi ; source to search xor rcx, rcx ; set max search length not rcx cld ; search forward repne scasb ; search until found or end jnz printExit not rcx dec rcx ; compute length ; write(message, length) - source is rsi mov rax, SYS_WRITE ; system call 1 is write mov rdi, STDOUT ; file handle 1 is stdout mov rdx, rcx ; length of string syscall printExit: pop rsi ; restore calling registers pop rdi pop rdx pop rcx pop rbx pop rax ret usage: lea rsi, [usageMsg] call print jmp exit ; Far jump for compareAndJump ;org 0x9000 farJump: lea rsi, [farJumpMsg] call print jmp nearConditional ; ---------------------------------------------------------------------------------------- ; DATA SECTION ; ---------------------------------------------------------------------------------------- section .data argC: dq 0 ; hold command line argument count argPtrs: ; table of argument addresses TIMES ARG_COUNT dq 0 startTime: startSecs: dq 0 startMSecs: dq 0 endTime: endSecs: dq 0 endMSecs: dq 0 oneb: db 1 ; 1 byte onew: dw 1 ; 2 bytes oned: dd 1 ; 4 bytes oneq: dq 1 ; 8 bytes listb: db 1, 2, 3 ; 3 bytes listw: dw 1, 2, 3 ; 6 bytes listd: dd 1, 2, 3 ; 12 bytes listq: dq 1, 2, 3 ; 24 bytes newline: db 10, 0 ; newline byteMsg: db "0x" ; 1 byte is 2 hex digits db 10, 10, 0 ; newline startMsg: db "Starting reference..." ; Start message db 10, 0 ; newline endMsg: db 10 ; newline db "Reference ended." ; End messagee db 10, 0 ; newline dontrun: db "Oops!" ; shouldn't run message db 10, 0 farJumpMsg: db "Jumped far!" ; far jump message db 10, 0 cMessage: db 10, "Printed from C library!" db 10, 0 cMessage2: db "Hello %s!" db 10, 0 cParm2: db "World" db 0 elapsedMsg: db "Elapsed time(us): " db 0 usageMsg: db "Usage: reference <infile>" db 10, 0 sourceString: db "012345689" ; string
27.178082
96
0.574093
0a2c6131825ff7bd4d9aec80f183362aa9c60f86
470
ts
TypeScript
packages/rc-hooks/use/src/hooks/useRefCallback.ts
yi-tuan/hooks
b4e343f267073a52e6a544a32c6719971d633187
[ "Apache-2.0" ]
45
2020-07-14T07:01:13.000Z
2020-10-12T08:45:20.000Z
packages/rc-hooks/use/src/hooks/useRefCallback.ts
yi-tuan/hooks
b4e343f267073a52e6a544a32c6719971d633187
[ "Apache-2.0" ]
1
2021-05-05T15:08:32.000Z
2021-05-05T18:08:04.000Z
packages/rc-hooks/use/src/hooks/useRefCallback.ts
yi-tuan/hooks
b4e343f267073a52e6a544a32c6719971d633187
[ "Apache-2.0" ]
13
2020-07-14T11:05:59.000Z
2020-10-13T08:59:31.000Z
/** * @file useRefGetter 引用获取 */ import {useCallback} from 'react'; import {FunctionAny, FunctionParams} from '@co-hooks/util'; import {useRefGetter} from './useRefGetter'; export function useRefCallback<T extends FunctionAny>(callback?: T): (...args: FunctionParams<T>) => void { const refGetter = useRefGetter(callback); return useCallback((...args: FunctionParams<T>) => { const fn = refGetter(); return fn && fn(...args); }, []); }
26.111111
107
0.648936
feca8904e76bbd72725656c5c3d4f2c4efb48b77
554
html
HTML
LogViewer.Client/views/components/loader.html
warrenbuckley/LogViewer
dd47e10927af6c9546cf80e47744c608e6bcfcfc
[ "MIT" ]
88
2019-03-07T22:33:11.000Z
2022-03-28T21:17:00.000Z
LogViewer.Client/views/components/loader.html
warrenbuckley/LogViewer
dd47e10927af6c9546cf80e47744c608e6bcfcfc
[ "MIT" ]
458
2019-03-19T11:52:27.000Z
2022-03-28T16:12:06.000Z
LogViewer.Client/views/components/loader.html
warrenbuckley/LogViewer
dd47e10927af6c9546cf80e47744c608e6bcfcfc
[ "MIT" ]
27
2019-03-19T12:11:32.000Z
2021-12-09T19:26:54.000Z
<svg width="200px" height="200px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"> <g transform="rotate(287.844 50 50)"> <path d="M50 15A35 35 0 1 0 74.787 25.213" fill="none" stroke="#bbb" stroke-width="12"></path> <path d="M49 3L49 27L61 15L49 3" fill="#bbb"></path> <animateTransform attributeName="transform" type="rotate" calcMode="linear" values="0 50 50;360 50 50" keyTimes="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animateTransform> </g> </svg> <div>Loading</div>
69.25
190
0.66426
c2d378ef8650d25b7d61c6f27e69b6443edd9866
17,217
swift
Swift
SwiftDataProvider/Classes/SwiftDataProvider.swift
EMart86/SwiftDataProvider
347dd2219b24be573739f6c401a4f9eadbda32e4
[ "MIT" ]
1
2018-11-01T14:16:57.000Z
2018-11-01T14:16:57.000Z
SwiftDataProvider/Classes/SwiftDataProvider.swift
EMart86/SwiftDataProvider
347dd2219b24be573739f6c401a4f9eadbda32e4
[ "MIT" ]
2
2018-12-10T10:04:01.000Z
2018-12-17T08:01:49.000Z
SwiftDataProvider/Classes/SwiftDataProvider.swift
EMart86/SwiftDataProvider
347dd2219b24be573739f6c401a4f9eadbda32e4
[ "MIT" ]
1
2018-11-01T14:16:59.000Z
2018-11-01T14:16:59.000Z
// // DataProvider.swift // DynamicTableView // // Created by Martin Eberl on 07.10.18. // import UIKit open class SwiftDataProvider: NSObject, UITableViewDataSource, UITableViewDelegate { private var registeredCellsForContentType = [String: Assemblable]() private var registeredHeaderFooterForContentType = [String: AssemblableHeaderFooter]() public weak var tableViewDelegate: UITableViewDelegate? public weak var contentAdapter: ContentProviderAdapter? { didSet { contentAdapter?.delegate = self recyclerView?.reloadData() } } fileprivate weak var recyclerView: RecyclerView? public init(recyclerView: RecyclerView) { self.recyclerView = recyclerView super.init() recyclerView.dataSource = self tableViewDelegate = recyclerView.delegate recyclerView.delegate = self } var numberOfSections: Int { return contentAdapter?.sections.count ?? 0 } func numberOfItems(at section: Int) -> Int { return contentAdapter?.sections[section].rows.count ?? 0 } func item(at indexPath: IndexPath) -> Any? { guard let section = section(at: indexPath.section), section.rows.indices.contains(indexPath.row) else { return nil } return section.rows[indexPath.row] } func sectionHeader(at section: Int) -> TypeAndObject? { return self.section(at: section)?.header } func sectionFooter(at section: Int) -> TypeAndObject? { return self.section(at: section)?.footer } // MARK: - Public public func register<Content, TableViewCell: UITableViewCell>(cell: TableViewCell.Type, for content: Content.Type, assemble: @escaping ((TableViewCell, Content) -> Void)) { let className = String.string(from: content) let reuseIdentifier = String.string(from: cell) recyclerView?.register(cell, forCellReuseIdentifier: reuseIdentifier) registeredCellsForContentType[className] = Assemble(reuseIdentifier: reuseIdentifier, cellType: cell, assembler: assemble) } public func register<Content, TableViewCell: UITableViewCell>(nib: UINib?, as cell: TableViewCell.Type, for content: Content.Type, assemble: @escaping ((TableViewCell, Content) -> Void)) { let className = String.string(from: content) let reuseIdentifier = String.string(from: cell) recyclerView?.register(nib, forCellReuseIdentifier: reuseIdentifier) registeredCellsForContentType[className] = Assemble(reuseIdentifier: reuseIdentifier, cellType: cell, assembler: assemble) } public func register<Content, TableViewCell: UITableViewCell>(cellReuseIdentifier: String, as cell: TableViewCell.Type, for content: Content.Type, assemble: @escaping ((TableViewCell, Content) -> Void)) { let className = String.string(from: content) registeredCellsForContentType[className] = Assemble(reuseIdentifier: cellReuseIdentifier, cellType: cell, assembler: assemble) } public func dequeueReusableCell<Content>(for content: Content, as className: String) -> UITableViewCell? { let assembler = registeredCellsForContentType[className] guard let cell = recyclerView?.dequeueReusableCell(withIdentifier: assembler?.reuseIdentifier ?? className) else { return nil } assembler?.assemble(cell: cell, with: content) return cell } public func registerHeaderFooter<Content, TableHeaderView: UITableViewHeaderFooterView>(view: TableHeaderView.Type, for content: Content.Type, assemble: @escaping ((TableHeaderView, Content) -> Void)) { let className = String.string(from: content) let reuseIdentifier = String.string(from: view) recyclerView?.register(view, forHeaderFooterViewReuseIdentifier: reuseIdentifier) registeredHeaderFooterForContentType[className] = AssembleHeaderFooter(reuseIdentifier: reuseIdentifier, viewType: view, assembler: assemble) } public func registerHeaderFooter<Content, TableHeaderView: UITableViewHeaderFooterView>(nib: UINib, as view: TableHeaderView.Type, for content: Content.Type, assemble: @escaping ((TableHeaderView, Content) -> Void)) { let className = String.string(from: content) let reuseIdentifier = String.string(from: view) recyclerView?.register(nib, forHeaderFooterViewReuseIdentifier: reuseIdentifier) registeredHeaderFooterForContentType[className] = AssembleHeaderFooter(reuseIdentifier: reuseIdentifier, viewType: view, assembler: assemble) } public func dequeueReusableHeaderFooterView<Content>(for content: Content, as className: String) -> UITableViewHeaderFooterView? { if className == String(describing: type(of: className)) { let view = UITableViewHeaderFooterView() view.textLabel?.text = content as! String return view } let assembler = registeredHeaderFooterForContentType[className] guard let view = recyclerView?.dequeueReusableHeaderFooterView(withIdentifier: assembler?.reuseIdentifier ?? className) else { return nil } assembler?.assemble(view: view, with: content) return view } // MARK: - Helper private func section(at index: Int) -> Section? { guard let sections = contentAdapter?.sections, sections.indices.contains(index) else { return nil } return contentAdapter?.sections[index] } private func section<Content: Equatable>(containing content: Content) -> Section? { return contentAdapter?.sections.first { return $0.rows.compactMap { $0 as? Content }.contains(where: { $0 == content }) } } // MARK - // MARK: TableView DataSource public func numberOfSections(in tableView: UITableView) -> Int { return numberOfSections } public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return numberOfItems(at: section) } public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { guard let content = item(at: indexPath) else { return UITableViewCell() } return dequeueReusableCell(for: content, as: content is String ? "String" : String.string(from: content)) ?? UITableViewCell() } public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { guard let header = sectionHeader(at: section) else { return nil } return dequeueReusableHeaderFooterView(for: header.object, as: header.type) } public func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { guard let footer = sectionFooter(at: section) else { return nil } return dequeueReusableHeaderFooterView(for: footer.object, as: footer.type) } public func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {return false} public func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool {return false} public func sectionIndexTitles(for tableView: UITableView) -> [String]? {return nil} public func tableView(_ tableView: UITableView, sectionForSectionIndexTitle title: String, at index: Int) -> Int {return 0} public func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {} public func tableView(_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath) {} // MARK: - UITableViewDelegate public func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { tableViewDelegate?.tableView?(tableView, willDisplay: cell, forRowAt: indexPath) } public func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) { tableViewDelegate?.tableView?(tableView, willDisplayHeaderView: view, forSection: section) } public func tableView(_ tableView: UITableView, willDisplayFooterView view: UIView, forSection section: Int) { tableViewDelegate?.tableView?(tableView, willDisplayFooterView: view, forSection: section) } public func tableView(_ tableView: UITableView, didEndDisplaying cell: UITableViewCell, forRowAt indexPath: IndexPath) { tableViewDelegate?.tableView?(tableView, didEndDisplaying: cell, forRowAt: indexPath) } public func tableView(_ tableView: UITableView, didEndDisplayingHeaderView view: UIView, forSection section: Int) { tableViewDelegate?.tableView?(tableView, didEndDisplayingHeaderView: view, forSection: section) } public func tableView(_ tableView: UITableView, didEndDisplayingFooterView view: UIView, forSection section: Int) { tableViewDelegate?.tableView?(tableView, didEndDisplayingFooterView: view, forSection: section) } public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { return tableViewDelegate?.tableView?(tableView, heightForRowAt: indexPath) ?? UITableView.automaticDimension } public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { guard let _ = sectionHeader(at: section) else { return 0 } return tableViewDelegate?.tableView?(tableView, heightForHeaderInSection: section) ?? UITableView.automaticDimension } public func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { guard let _ = sectionFooter(at: section) else { return 0 } return tableViewDelegate?.tableView?(tableView, heightForFooterInSection: section) ?? UITableView.automaticDimension } public func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat { return tableViewDelegate?.tableView?(tableView, estimatedHeightForRowAt: indexPath) ?? 44 } public func tableView(_ tableView: UITableView, estimatedHeightForHeaderInSection section: Int) -> CGFloat { return tableViewDelegate?.tableView?(tableView, estimatedHeightForHeaderInSection: section) ?? 20 } public func tableView(_ tableView: UITableView, estimatedHeightForFooterInSection section: Int) -> CGFloat { return tableViewDelegate?.tableView?(tableView, estimatedHeightForFooterInSection: section) ?? 20 } public func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) { tableViewDelegate?.tableView?(tableView, accessoryButtonTappedForRowWith: indexPath) } public func tableView(_ tableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool { return tableViewDelegate?.tableView?(tableView, shouldHighlightRowAt: indexPath) ?? true } public func tableView(_ tableView: UITableView, didHighlightRowAt indexPath: IndexPath) { tableViewDelegate?.tableView?(tableView, didHighlightRowAt: indexPath) } public func tableView(_ tableView: UITableView, didUnhighlightRowAt indexPath: IndexPath) { tableViewDelegate?.tableView?(tableView, didUnhighlightRowAt: indexPath) } public func tableView(_ tableView: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath? { return tableViewDelegate?.tableView?(tableView, willSelectRowAt: indexPath) ?? indexPath } public func tableView(_ tableView: UITableView, willDeselectRowAt indexPath: IndexPath) -> IndexPath? { return tableViewDelegate?.tableView?(tableView, willDeselectRowAt: indexPath) ?? indexPath } public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { tableViewDelegate?.tableView?(tableView, didSelectRowAt: indexPath) } public func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) { tableViewDelegate?.tableView?(tableView, didDeselectRowAt: indexPath) } public func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCell.EditingStyle { return tableViewDelegate?.tableView?(tableView, editingStyleForRowAt: indexPath) ?? .none } public func tableView(_ tableView: UITableView, titleForDeleteConfirmationButtonForRowAt indexPath: IndexPath) -> String? { return tableViewDelegate?.tableView?(tableView, titleForDeleteConfirmationButtonForRowAt: indexPath) } public func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { return tableViewDelegate?.tableView?(tableView, editActionsForRowAt: indexPath) } @available(iOS 11.0, *) public func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { return tableViewDelegate?.tableView?(tableView, leadingSwipeActionsConfigurationForRowAt: indexPath) } @available(iOS 11.0, *) public func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { return tableViewDelegate?.tableView?(tableView, trailingSwipeActionsConfigurationForRowAt: indexPath) } public func tableView(_ tableView: UITableView, shouldIndentWhileEditingRowAt indexPath: IndexPath) -> Bool { return tableViewDelegate?.tableView?(tableView, shouldIndentWhileEditingRowAt: indexPath) ?? false } public func tableView(_ tableView: UITableView, willBeginEditingRowAt indexPath: IndexPath) { tableViewDelegate?.tableView?(tableView, willBeginEditingRowAt: indexPath) } public func tableView(_ tableView: UITableView, didEndEditingRowAt indexPath: IndexPath?) { tableViewDelegate?.tableView?(tableView, didEndEditingRowAt: indexPath) } public func tableView(_ tableView: UITableView, targetIndexPathForMoveFromRowAt sourceIndexPath: IndexPath, toProposedIndexPath proposedDestinationIndexPath: IndexPath) -> IndexPath { return tableViewDelegate?.tableView?(tableView, targetIndexPathForMoveFromRowAt: sourceIndexPath, toProposedIndexPath: proposedDestinationIndexPath) ?? proposedDestinationIndexPath } public func tableView(_ tableView: UITableView, indentationLevelForRowAt indexPath: IndexPath) -> Int { return tableViewDelegate?.tableView?(tableView, indentationLevelForRowAt: indexPath) ?? 0 } public func tableView(_ tableView: UITableView, shouldShowMenuForRowAt indexPath: IndexPath) -> Bool { return tableViewDelegate?.tableView?(tableView, shouldShowMenuForRowAt: indexPath) ?? false } public func tableView(_ tableView: UITableView, canPerformAction action: Selector, forRowAt indexPath: IndexPath, withSender sender: Any?) -> Bool { return tableViewDelegate?.tableView?(tableView, canPerformAction: action, forRowAt: indexPath, withSender: sender) ?? false } public func tableView(_ tableView: UITableView, performAction action: Selector, forRowAt indexPath: IndexPath, withSender sender: Any?) { tableViewDelegate?.tableView?(tableView, performAction: action, forRowAt: indexPath, withSender: sender) } @available(iOS 9.0, *) public func tableView(_ tableView: UITableView, canFocusRowAt indexPath: IndexPath) -> Bool { return tableViewDelegate?.tableView?(tableView, canFocusRowAt: indexPath) ?? true } @available(iOS 9.0, *) public func tableView(_ tableView: UITableView, shouldUpdateFocusIn context: UITableViewFocusUpdateContext) -> Bool { return tableViewDelegate?.tableView?(tableView, shouldUpdateFocusIn: context) ?? true } @available(iOS 9.0, *) public func tableView(_ tableView: UITableView, didUpdateFocusIn context: UITableViewFocusUpdateContext, with coordinator: UIFocusAnimationCoordinator) { tableViewDelegate?.tableView?(tableView, didUpdateFocusIn: context, with: coordinator) } @available(iOS 9.0, *) public func indexPathForPreferredFocusedView(in tableView: UITableView) -> IndexPath? { return tableViewDelegate?.indexPathForPreferredFocusedView?(in: tableView) } @available(iOS 11.0, *) public func tableView(_ tableView: UITableView, shouldSpringLoadRowAt indexPath: IndexPath, with context: UISpringLoadedInteractionContext) -> Bool { return tableViewDelegate?.tableView?(tableView, shouldSpringLoadRowAt: indexPath, with: context) ?? false } } extension SwiftDataProvider: ContentProviderAdapterDelegate { public func commit(modifications: CellModifications) { recyclerView?.update(modifications: modifications) } public func reload() { recyclerView?.reloadData() } }
49.904348
221
0.72138
0b9ff21662fde4d991d952e6a81287147181af9f
760
py
Python
prep_scripts/0_join_data.py
linas-p/EVDPEP
2062e20ef784a76eebaf71ebbe4f9006cde5bbd5
[ "CC0-1.0" ]
5
2021-10-05T14:02:52.000Z
2021-11-23T07:59:06.000Z
prep_scripts/0_join_data.py
patrickiswwgp/EVDPEP
2062e20ef784a76eebaf71ebbe4f9006cde5bbd5
[ "CC0-1.0" ]
1
2021-10-31T14:41:48.000Z
2021-10-31T16:23:45.000Z
prep_scripts/0_join_data.py
patrickiswwgp/EVDPEP
2062e20ef784a76eebaf71ebbe4f9006cde5bbd5
[ "CC0-1.0" ]
3
2021-11-23T07:59:17.000Z
2022-03-31T09:09:03.000Z
import pandas as pd import numpy as np DATA_PATH = "./data/EVconsumption/" weather = pd.read_csv(DATA_PATH + "dimweathermeasure.csv", sep = "|") osm = pd.read_csv(DATA_PATH + "osm_dk_20140101.csv", sep = "|") data0 = pd.read_csv(DATA_PATH + "2020_11_25_aal_viterbi.csv", sep = ",") data1 = pd.read_csv(DATA_PATH + "2021_04_06_aal_north_viterbi.csv", sep = ",") data2 = pd.read_csv(DATA_PATH + "2021_04_06_aal_south_viterbi.csv", sep = ",") data = pd.concat([data0, data1, data2], axis=0) data = data.drop_duplicates() result = pd.merge(data, weather, how="left", on=["weathermeasurekey", "datekey"]) result = pd.merge(result, osm, how="left", on=["segmentkey"]) result.to_csv(DATA_PATH + "data_0_joined_data.csv") print("Results {}".format(result.shape))
38
81
0.711842
0cf9f78c1ecb148ea8cc9e86512596f09bae6846
1,403
py
Python
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
6
2016-10-10T09:26:07.000Z
2018-09-20T08:59:42.000Z
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
11
2016-10-10T12:11:07.000Z
2018-05-09T22:11:02.000Z
tests/test_find_deployment.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
16
2016-09-28T16:00:58.000Z
2019-02-25T16:52:12.000Z
# Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. from os.path import join import unittest from mock import patch from agent.find_deployment import find_deployment_dir_win class Fake(object): def __init__(self, **kwargs): self.__dict__.update(kwargs) class TestFindDeployment(unittest.TestCase): def test_find_deployment_dir_win_finds_none_returns_none(self): with patch('agent.find_deployment.exists', return_value=False): expected = None actual = find_deployment_dir_win('/deployments', 'my_service', 'my_deployment_id') self.assertEqual(actual, expected) def test_find_deployment_dir_win_finds_both_returns_new(self): with patch('agent.find_deployment.exists', return_value=True): expected = join('/deployments', 'my_service', 'my_deployment_id') actual = find_deployment_dir_win('/deployments', 'my_service', 'my_deployment_id') self.assertEqual(actual, expected) def test_find_deployment_dir_win_finds_old_returns_old(self): expected = join('/deployments', 'my_deployment_id') with patch('agent.find_deployment.exists', lambda x: x == expected): actual = find_deployment_dir_win('/deployments', 'my_service', 'my_deployment_id') self.assertEqual(actual, expected)
48.37931
127
0.726301
ac2b57c23fda13db0873569724dfceb94013860e
211
sql
SQL
polishing-db/src/main/resources/schema.sql
vegaasen/polish-pad-overview
47b76b21a3d98f7bde31c7911f6eba34b7fec065
[ "Unlicense" ]
null
null
null
polishing-db/src/main/resources/schema.sql
vegaasen/polish-pad-overview
47b76b21a3d98f7bde31c7911f6eba34b7fec065
[ "Unlicense" ]
null
null
null
polishing-db/src/main/resources/schema.sql
vegaasen/polish-pad-overview
47b76b21a3d98f7bde31c7911f6eba34b7fec065
[ "Unlicense" ]
null
null
null
DROP TABLE IF EXISTS Brand; CREATE TABLE Brand ( ID INT NOT NULL AUTO_INCREMENT, NAME VARCHAR2(100), DESCRIPTION TEXT, URL TEXT, UPDATED DATETIME, CREATED DATETIME );
21.1
42
0.620853
6bc316e082fac03b73fd0dade3291a8d041c23e4
63
kt
Kotlin
idea/idea-completion/testData/smartMultiFile/CallableReferenceNotImported/CallableReferenceNotImported.dependency.kt
qussarah/declare
c83b764c7394efa3364915d973ae79c4ebed2437
[ "Apache-2.0" ]
337
2020-05-14T00:40:10.000Z
2022-02-16T23:39:07.000Z
idea/idea-completion/testData/smartMultiFile/CallableReferenceNotImported/CallableReferenceNotImported.dependency.kt
qussarah/declare
c83b764c7394efa3364915d973ae79c4ebed2437
[ "Apache-2.0" ]
92
2020-06-10T23:17:42.000Z
2020-09-25T10:50:13.000Z
idea/idea-completion/testData/smartMultiFile/CallableReferenceNotImported/CallableReferenceNotImported.dependency.kt
qussarah/declare
c83b764c7394efa3364915d973ae79c4ebed2437
[ "Apache-2.0" ]
54
2016-02-29T16:27:38.000Z
2020-12-26T15:02:23.000Z
package dependency fun topLevelFun(){} fun String.extFun(){}
10.5
21
0.730159
ceda25ea2a85ee6c6ec4d9502ddcb73c2e6bcae8
925
dart
Dart
.dart_tool/build/generated/angular_compiler/lib/v1/src/compiler/ast_directive_normalizer.template.dart
kortby/AngularDart
871c9559786f0e8fbf67f7865b577bff6aaf2d8b
[ "MIT" ]
null
null
null
.dart_tool/build/generated/angular_compiler/lib/v1/src/compiler/ast_directive_normalizer.template.dart
kortby/AngularDart
871c9559786f0e8fbf67f7865b577bff6aaf2d8b
[ "MIT" ]
null
null
null
.dart_tool/build/generated/angular_compiler/lib/v1/src/compiler/ast_directive_normalizer.template.dart
kortby/AngularDart
871c9559786f0e8fbf67f7865b577bff6aaf2d8b
[ "MIT" ]
null
null
null
// ************************************************************************** // Generator: AngularDart Compiler // ************************************************************************** import 'ast_directive_normalizer.dart'; import 'compile_metadata.template.dart' as _ref0; import 'package:angular/src/meta.template.dart' as _ref1; import 'package:angular_compiler/v1/angular_compiler.template.dart' as _ref2; import 'package:angular_compiler/v1/cli.template.dart' as _ref3; import 'package:angular_compiler/v2/context.template.dart' as _ref4; import 'parse_util.template.dart' as _ref5; import 'style_url_resolver.template.dart' as _ref6; var _visited = false; void initReflector() { if (_visited) { return; } _visited = true; _ref0.initReflector(); _ref1.initReflector(); _ref2.initReflector(); _ref3.initReflector(); _ref4.initReflector(); _ref5.initReflector(); _ref6.initReflector(); }
31.896552
77
0.637838
752bd37a5816a4b1a15a2ea9673a3d0798749778
597
h
C
TestStation/Temprory/RequestResult.h
doNormalThing/testStation
427e2575bec8e4a501985c53e4ae685ab945d9b3
[ "MIT" ]
1
2021-03-04T13:32:15.000Z
2021-03-04T13:32:15.000Z
TestStation/Temprory/RequestResult.h
doNormalThing/testStation
427e2575bec8e4a501985c53e4ae685ab945d9b3
[ "MIT" ]
null
null
null
TestStation/Temprory/RequestResult.h
doNormalThing/testStation
427e2575bec8e4a501985c53e4ae685ab945d9b3
[ "MIT" ]
null
null
null
// // RequestResult.h // TestStation // // Created by 胡翔 on 2021/3/1. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface RequestResult : NSObject typedef enum : NSUInteger { AjaxStateSuccess = 0, // 成功 } AjaxState; /** * 对应的状态 */ @property(assign,nonatomic) AjaxState code; /** * 字典数据(业务数据) */ @property(strong,nonatomic) id data; /** * 信息提示 */ @property(strong,nonatomic) NSString *message; /** * 请求回来的原生数据 */ @property (nonatomic, strong) id originDatas; @property (nonatomic, assign) int status; @end NS_ASSUME_NONNULL_END
12.4375
46
0.659966
36ff0520720c04961c2a2867799c497fee315694
141
sql
SQL
mysql/sqls/002_create_db.sql
hs14/docker_swarm
1fc020e74b135565dbda71fac89a9a820b771741
[ "MIT" ]
null
null
null
mysql/sqls/002_create_db.sql
hs14/docker_swarm
1fc020e74b135565dbda71fac89a9a820b771741
[ "MIT" ]
null
null
null
mysql/sqls/002_create_db.sql
hs14/docker_swarm
1fc020e74b135565dbda71fac89a9a820b771741
[ "MIT" ]
null
null
null
CREATE DATABASE IF NOT EXISTS mydb; use mydb; CREATE TABLE user( id int, username varchar(255), address varchar(255) );
15.666667
36
0.64539
ef49bf6fd60a36821c4075a412520a1d4ee4be6f
64
asm
Assembly
asm/noop.asm
eviltrout/rubycpu
9750753bab8b5b26761d7960e26e58d8e43c1d26
[ "MIT" ]
13
2015-01-26T15:41:10.000Z
2022-03-21T14:34:26.000Z
asm/noop.asm
eviltrout/rubycpu
9750753bab8b5b26761d7960e26e58d8e43c1d26
[ "MIT" ]
1
2021-03-23T16:00:22.000Z
2021-03-23T16:00:22.000Z
asm/noop.asm
eviltrout/rubycpu
9750753bab8b5b26761d7960e26e58d8e43c1d26
[ "MIT" ]
1
2016-10-12T12:48:05.000Z
2016-10-12T12:48:05.000Z
mov eax, 0 loop: nop inc eax cmp eax, 1000000 jl loop
9.142857
18
0.609375
9894b8e0c50d76e42ef0c98cc6e6e1ce33752695
813
sql
SQL
macros/plugins/redshift/helpers/is_ext_tbl.sql
dmnpignaud/dbt-external-tables
fb06e38c17cfa8708dab75984b4e5c0af83efd3a
[ "Apache-2.0" ]
86
2019-10-20T05:45:32.000Z
2021-06-29T12:13:52.000Z
macros/plugins/redshift/helpers/is_ext_tbl.sql
dmnpignaud/dbt-external-tables
fb06e38c17cfa8708dab75984b4e5c0af83efd3a
[ "Apache-2.0" ]
58
2019-10-21T06:43:39.000Z
2021-06-29T12:51:15.000Z
macros/plugins/redshift/helpers/is_ext_tbl.sql
dmnpignaud/dbt-external-tables
fb06e38c17cfa8708dab75984b4e5c0af83efd3a
[ "Apache-2.0" ]
32
2019-11-02T15:08:49.000Z
2021-06-01T13:44:05.000Z
{% macro redshift_is_ext_tbl(node) %} {% set existing_relation = load_relation(node) %} {# external tables don't appear in information_schema.tables, so dbt doesn't cache them #} {% if existing_relation is none %} {% set find_ext_tbl %} select count(*) from svv_external_tables where schemaname = '{{node.schema}}' and tablename = '{{node.identifier}}' {% endset %} {% if execute %} {% set result = run_query(find_ext_tbl)[0][0] %} {% else %} {% set result = 0 %} {% endif %} {% set is_ext_tbl = (result > 0) %} {% do return(is_ext_tbl) %} {% else %} {% do return(false) %} {% endif %} {% endmacro %}
24.636364
66
0.484625
6f64ada9829c13318da92c77d5b92e81dcf61181
1,654
sql
SQL
Database/Stored Procedures/uspGetEntityFileRepositoryByIdent.sql
gianadda/ZenPRM
3fb4ef986ad01d3a1604226282dcb81892f145d0
[ "WTFPL" ]
1
2021-07-31T19:02:54.000Z
2021-07-31T19:02:54.000Z
Database/Stored Procedures/uspGetEntityFileRepositoryByIdent.sql
gianadda/ZenPRM
3fb4ef986ad01d3a1604226282dcb81892f145d0
[ "WTFPL" ]
null
null
null
Database/Stored Procedures/uspGetEntityFileRepositoryByIdent.sql
gianadda/ZenPRM
3fb4ef986ad01d3a1604226282dcb81892f145d0
[ "WTFPL" ]
2
2016-09-19T01:59:48.000Z
2016-09-21T13:28:18.000Z
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspGetEntityFileRepositoryByIdent') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE uspGetEntityFileRepositoryByIdent GO /* uspGetEntityFileRepositoryByIdent * * * * */ CREATE PROCEDURE uspGetEntityFileRepositoryByIdent @bntAnswerIdent BIGINT, @bntEntityIdent BIGINT, @bntASUserIdent BIGINT AS SET NOCOUNT ON SELECT EPR.EntityIdent, EPR.AnswerIdent, EPR.ProjectIdent, EPR.ProjectName, EPR.[FileName], EPR.MimeType, EPR.FileKey, dbo.ufnCalculateFileSize(EPR.FileSize) as [FileSize], CONVERT(NVARCHAR(50),EPR.AddDateTime,100) as [AddDateTime] FROM EntityFileRepository EPR WITH (NOLOCK) WHERE EPR.AnswerIdent = @bntAnswerIdent AND EPR.EntityIdent = @bntEntityIdent AND EPR.EntityIdent = @bntASUserIdent -- ensure the user has access to this file UNION -- or ensuer that the user is the customer SELECT EPR.EntityIdent, EPR.AnswerIdent, EPR.ProjectIdent, EPR.ProjectName, EPR.[FileName], EPR.MimeType, EPR.FileKey, dbo.ufnCalculateFileSize(EPR.FileSize) as [FileSize], CONVERT(NVARCHAR(50),EPR.AddDateTime,100) as [AddDateTime] FROM EntityFileRepository EPR WITH (NOLOCK) INNER JOIN EntityProjectEntityAnswer A WITH (NOLOCK) ON A.Ident = EPR.AnswerIdent INNER JOIN EntityProjectEntity EPE WITH (NOLOCK) ON EPE.Ident = A.EntityProjectEntityIdent INNER JOIN EntityProject EP WITH (NOLOCK) ON EP.Ident = EPE.EntityProjectIdent WHERE EPR.AnswerIdent = @bntAnswerIdent AND EPR.EntityIdent = @bntEntityIdent AND EP.EntityIdent = @bntASUserIdent -- ensure the user has access to this file GO
25.446154
99
0.762394
bb7d7ef65eff1732126b5969df9bc3866b5f8ef2
950
dart
Dart
lib/sources/medias/remote/models/ipfs/ipfs_upload_response.dart
social-game/mooncake
79ea10dd4a1ba5a5d2684d733c92791175491ba1
[ "MIT" ]
42
2020-01-17T18:50:00.000Z
2022-03-14T07:51:10.000Z
lib/sources/medias/remote/models/ipfs/ipfs_upload_response.dart
desmos-labs/dwitter
007c6df3b4b5be65340e9bc29c92a4728021e904
[ "MIT" ]
153
2020-01-18T04:43:27.000Z
2021-05-28T11:16:58.000Z
lib/sources/medias/remote/models/ipfs/ipfs_upload_response.dart
desmos-labs/dwitter
007c6df3b4b5be65340e9bc29c92a4728021e904
[ "MIT" ]
9
2020-02-29T04:35:51.000Z
2021-09-15T03:51:43.000Z
import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:meta/meta.dart'; part 'ipfs_upload_response.g.dart'; /// Represents the response that is returned from an IPFS node after /// a /api/v0/add call has ended properly. @immutable @JsonSerializable(explicitToJson: true) class IpfsUploadResponse extends Equatable { @JsonKey(name: 'Name') final String name; @JsonKey(name: 'Hash') final String hash; @JsonKey(name: 'Size') final String size; IpfsUploadResponse({ @required this.name, @required this.hash, @required this.size, }) : assert(name != null), assert(hash != null), assert(size != null); @override List<Object> get props => [name, hash, size]; factory IpfsUploadResponse.fromJson(Map<String, dynamic> json) => _$IpfsUploadResponseFromJson(json); Map<String, dynamic> toJson() => _$IpfsUploadResponseToJson(this); }
25.675676
68
0.707368
c7c92ab0ea1e5a954ff4f8f2296601275aa8fd00
3,944
py
Python
pysnmp/CISCO-FIPS-STATS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-FIPS-STATS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-FIPS-STATS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-FIPS-STATS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-FIPS-STATS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:41:23 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") NotificationType, Bits, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Integer32, IpAddress, iso, Gauge32, MibIdentifier, ModuleIdentity, Unsigned32, ObjectIdentity, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Bits", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Integer32", "IpAddress", "iso", "Gauge32", "MibIdentifier", "ModuleIdentity", "Unsigned32", "ObjectIdentity", "Counter32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ciscoFipsStatsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 999999)) ciscoFipsStatsMIB.setRevisions(('2003-03-10 00:00',)) if mibBuilder.loadTexts: ciscoFipsStatsMIB.setLastUpdated('200303100000Z') if mibBuilder.loadTexts: ciscoFipsStatsMIB.setOrganization('Cisco Systems, Inc.') ciscoFipsStatsMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 999999, 0)) ciscoFipsStatsMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 999999, 1)) ciscoFipsStatsMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 999999, 2)) cfipsStats = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 999999, 1, 1)) cfipsStatsGlobal = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 999999, 1, 1, 1)) cfipsPostStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 999999, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("running", 1), ("passed", 2), ("failed", 3), ("notAvailable", 4))).clone('notAvailable')).setMaxAccess("readonly") if mibBuilder.loadTexts: cfipsPostStatus.setStatus('current') ciscoFipsStatsMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 999999, 2, 1)) ciscoFipsStatsMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 999999, 2, 2)) ciscoFipsStatsMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 999999, 2, 1, 1)).setObjects(("CISCO-FIPS-STATS-MIB", "ciscoFipsStatsMIBGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoFipsStatsMIBCompliance = ciscoFipsStatsMIBCompliance.setStatus('current') ciscoFipsStatsMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 999999, 2, 2, 1)).setObjects(("CISCO-FIPS-STATS-MIB", "cfipsPostStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoFipsStatsMIBGroup = ciscoFipsStatsMIBGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-FIPS-STATS-MIB", PYSNMP_MODULE_ID=ciscoFipsStatsMIB, ciscoFipsStatsMIBObjects=ciscoFipsStatsMIBObjects, ciscoFipsStatsMIB=ciscoFipsStatsMIB, ciscoFipsStatsMIBNotifs=ciscoFipsStatsMIBNotifs, ciscoFipsStatsMIBGroup=ciscoFipsStatsMIBGroup, cfipsPostStatus=cfipsPostStatus, ciscoFipsStatsMIBCompliance=ciscoFipsStatsMIBCompliance, ciscoFipsStatsMIBGroups=ciscoFipsStatsMIBGroups, ciscoFipsStatsMIBConform=ciscoFipsStatsMIBConform, ciscoFipsStatsMIBCompliances=ciscoFipsStatsMIBCompliances, cfipsStats=cfipsStats, cfipsStatsGlobal=cfipsStatsGlobal)
109.555556
575
0.768509
5fdef005eec2e875da2a00b7290a04643759527c
73
css
CSS
assets/css/style.css
dttan-php-projects/new-jobjackets
0b8fceb5ef3fe485f071dc0d0315cc3e31001c29
[ "MIT" ]
null
null
null
assets/css/style.css
dttan-php-projects/new-jobjackets
0b8fceb5ef3fe485f071dc0d0315cc3e31001c29
[ "MIT" ]
null
null
null
assets/css/style.css
dttan-php-projects/new-jobjackets
0b8fceb5ef3fe485f071dc0d0315cc3e31001c29
[ "MIT" ]
null
null
null
.dhtmlx_message_area { left: auto; right: 5px; width: auto; }
14.6
22
0.60274
a729424732f37c54a29133ceda655ad504a5a401
749
sql
SQL
src/main/resources/dbmigrate/mysql/humantask/V1_6_0_5__task_def_deadline.sql
GEDS1990/szyoa
b646384c1cd995e8812455885228b4347bffe5b9
[ "Apache-2.0" ]
1
2019-06-29T01:55:54.000Z
2019-06-29T01:55:54.000Z
src/main/resources/dbmigrate/mysql/humantask/V1_6_0_5__task_def_deadline.sql
GEDS1990/szyoa
b646384c1cd995e8812455885228b4347bffe5b9
[ "Apache-2.0" ]
2
2020-09-09T19:44:28.000Z
2022-01-21T23:30:20.000Z
src/main/resources/dbmigrate/mysql/humantask/V1_6_0_5__task_def_deadline.sql
GEDS1990/szyoa
b646384c1cd995e8812455885228b4347bffe5b9
[ "Apache-2.0" ]
3
2019-02-18T12:08:54.000Z
2019-10-15T05:55:20.000Z
------------------------------------------------------------------------------- -- task def deadline ------------------------------------------------------------------------------- CREATE TABLE TASK_DEF_DEADLINE( ID BIGINT NOT NULL, TYPE VARCHAR(50), DURATION VARCHAR(100), STATUS VARCHAR(50), ESCALATION_TYPE VARCHAR(50), NOTIFICATION_CONDITION VARCHAR(200), NOTIFICATION_TYPE VARCHAR(200), NOTIFICATION_RECEIVER VARCHAR(200), NOTIFICATION_TEMPLATE_CODE VARCHAR(200), REASSGINMENT VARCHAR(200), OPERATION VARCHAR(200), BASE_ID BIGINT, CONSTRAINT PK_TASK_DEF_DEADLINE PRIMARY KEY(ID), CONSTRAINT FK_TASK_DEF_DEADLINE_BASE FOREIGN KEY(BASE_ID) REFERENCES TASK_DEF_BASE(ID) ) ENGINE=INNODB CHARSET=UTF8;
19.710526
94
0.600801
ce8e7269d08ac5f101fe298efebed7cd1323f930
4,381
swift
Swift
Messenger/Classes/Utilities/media/MediaDownload.swift
turlodales/Messenger
7f56110ff4630e08a102a388afcec749345dc093
[ "MIT" ]
1
2021-03-13T07:10:05.000Z
2021-03-13T07:10:05.000Z
Messenger/Classes/Utilities/media/MediaDownload.swift
turlodales/Messenger
7f56110ff4630e08a102a388afcec749345dc093
[ "MIT" ]
null
null
null
Messenger/Classes/Utilities/media/MediaDownload.swift
turlodales/Messenger
7f56110ff4630e08a102a388afcec749345dc093
[ "MIT" ]
1
2020-11-21T11:57:21.000Z
2020-11-21T11:57:21.000Z
// // Copyright (c) 2020 Related Code - http://relatedcode.com // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. import UIKit //------------------------------------------------------------------------------------------------------------------------------------------------- class MediaDownload: NSObject { //--------------------------------------------------------------------------------------------------------------------------------------------- class func user(_ name: String, pictureAt: Int, completion: @escaping (UIImage?, Error?) -> Void) { if (pictureAt != 0) { start(dir: "user", name: name, ext: "jpg", manual: false) { path, error in if (error == nil) { completion(UIImage(path: path), nil) } else { completion(nil, error) } } } else { completion(nil, NSError("Missing picture.", 100)) } } // MARK: - //--------------------------------------------------------------------------------------------------------------------------------------------- class func photo(_ name: String, completion: @escaping (String, Error?) -> Void) { start(dir: "media", name: name, ext: "jpg", manual: true, completion: completion) } //--------------------------------------------------------------------------------------------------------------------------------------------- class func video(_ name: String, completion: @escaping (String, Error?) -> Void) { start(dir: "media", name: name, ext: "mp4", manual: true, completion: completion) } //--------------------------------------------------------------------------------------------------------------------------------------------- class func audio(_ name: String, completion: @escaping (String, Error?) -> Void) { start(dir: "media", name: name, ext: "m4a", manual: true, completion: completion) } // MARK: - //--------------------------------------------------------------------------------------------------------------------------------------------- private class func start(dir: String, name: String, ext: String, manual: Bool, completion: @escaping (String, Error?) -> Void) { let file = "\(name).\(ext)" let path = Dir.document(dir, and: file) let fileManual = file + ".manual" let pathManual = Dir.document(dir, and: fileManual) let fileLoading = file + ".loading" let pathLoading = Dir.document(dir, and: fileLoading) // Check if file is already downloaded //----------------------------------------------------------------------------------------------------------------------------------------- if (File.exist(path: path)) { completion(path, nil) return } // Check if manual download is required //----------------------------------------------------------------------------------------------------------------------------------------- if (manual) { if (File.exist(path: pathManual)) { completion("", NSError("Manual download required.", 101)) return } try? "manual".write(toFile: pathManual, atomically: false, encoding: .utf8) } // Check if file is currently downloading //----------------------------------------------------------------------------------------------------------------------------------------- let time = Int(Date().timeIntervalSince1970) if (File.exist(path: pathLoading)) { if let temp = try? String(contentsOfFile: pathLoading, encoding: .utf8) { if let check = Int(temp) { if (time - check < 60) { completion("", NSError("Already downloading.", 102)) return } } } } try? "\(time)".write(toFile: pathLoading, atomically: false, encoding: .utf8) // Download the file //----------------------------------------------------------------------------------------------------------------------------------------- FireStorage.download(dir: dir, name: name, ext: ext) { path, error in File.remove(path: pathLoading) DispatchQueue.main.async { completion(path, error) } } } }
40.564815
147
0.445332
3eafb7f10b2133448bbbc6dc0968b24e3b4ed86c
24,592
c
C
libs/qmlglsink/gst-plugins-good/ext/vpx/gstvpxdec.c
ant-nihil/routen-qgroundcontrol
0868aa1d6aba3f066dbaa55c53c943fc77eb8ff7
[ "Apache-2.0" ]
2
2021-05-24T14:18:37.000Z
2022-03-04T06:59:42.000Z
libs/qmlglsink/gst-plugins-good/ext/vpx/gstvpxdec.c
ant-nihil/routen-qgroundcontrol
0868aa1d6aba3f066dbaa55c53c943fc77eb8ff7
[ "Apache-2.0" ]
null
null
null
libs/qmlglsink/gst-plugins-good/ext/vpx/gstvpxdec.c
ant-nihil/routen-qgroundcontrol
0868aa1d6aba3f066dbaa55c53c943fc77eb8ff7
[ "Apache-2.0" ]
null
null
null
/* VPX * Copyright (C) 2006 David Schleef <ds@schleef.org> * Copyright (C) 2008,2009,2010 Entropy Wave Inc * Copyright (C) 2010-2012 Sebastian Dröge <sebastian.droege@collabora.co.uk> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #if defined(HAVE_VP8_DECODER) || defined(HAVE_VP9_DECODER) #include <string.h> #include "gstvpxdec.h" #include "gstvp8utils.h" #include <gst/video/gstvideometa.h> #include <gst/video/gstvideopool.h> GST_DEBUG_CATEGORY_STATIC (gst_vpxdec_debug); #define GST_CAT_DEFAULT gst_vpxdec_debug #define DEFAULT_POST_PROCESSING FALSE #define DEFAULT_POST_PROCESSING_FLAGS (VP8_DEBLOCK | VP8_DEMACROBLOCK | VP8_MFQE) #define DEFAULT_DEBLOCKING_LEVEL 4 #define DEFAULT_NOISE_LEVEL 0 #define DEFAULT_THREADS 0 #define DEFAULT_VIDEO_CODEC_TAG NULL #define DEFAULT_CODEC_ALGO NULL enum { PROP_0, PROP_POST_PROCESSING, PROP_POST_PROCESSING_FLAGS, PROP_DEBLOCKING_LEVEL, PROP_NOISE_LEVEL, PROP_THREADS }; #define C_FLAGS(v) ((guint) v) #define GST_VPX_DEC_TYPE_POST_PROCESSING_FLAGS (gst_vpx_dec_post_processing_flags_get_type()) static GType gst_vpx_dec_post_processing_flags_get_type (void) { static const GFlagsValue values[] = { {C_FLAGS (VP8_DEBLOCK), "Deblock", "deblock"}, {C_FLAGS (VP8_DEMACROBLOCK), "Demacroblock", "demacroblock"}, {C_FLAGS (VP8_ADDNOISE), "Add noise", "addnoise"}, #ifndef HAVE_VPX_1_8 {C_FLAGS (VP8_DEBUG_TXT_FRAME_INFO), "Print frame information", "visualize-frame-info"}, {C_FLAGS (VP8_DEBUG_TXT_MBLK_MODES), "Show macroblock mode selection overlaid on image", "visualize-macroblock-modes"}, {C_FLAGS (VP8_DEBUG_TXT_DC_DIFF), "Show dc diff for each macro block overlaid on image", "visualize-dc-diff"}, {C_FLAGS (VP8_DEBUG_TXT_RATE_INFO), "Print video rate info", "visualize-rate-info"}, #endif {C_FLAGS (VP8_MFQE), "Multi-frame quality enhancement", "mfqe"}, {0, NULL, NULL} }; static volatile GType id = 0; if (g_once_init_enter ((gsize *) & id)) { GType _id; _id = g_flags_register_static ("GstVPXDecPostProcessingFlags", values); g_once_init_leave ((gsize *) & id, _id); } return id; } #undef C_FLAGS static void gst_vpx_dec_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_vpx_dec_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static gboolean gst_vpx_dec_start (GstVideoDecoder * decoder); static gboolean gst_vpx_dec_stop (GstVideoDecoder * decoder); static gboolean gst_vpx_dec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state); static gboolean gst_vpx_dec_flush (GstVideoDecoder * decoder); static GstFlowReturn gst_vpx_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame); static gboolean gst_vpx_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query); static void gst_vpx_dec_image_to_buffer (GstVPXDec * dec, const vpx_image_t * img, GstBuffer * buffer); static GstFlowReturn gst_vpx_dec_open_codec (GstVPXDec * dec, GstVideoCodecFrame * frame); static void gst_vpx_dec_default_send_tags (GstVPXDec * dec); static void gst_vpx_dec_set_stream_info (GstVPXDec * dec, vpx_codec_stream_info_t * stream_info); static void gst_vpx_dec_set_default_format (GstVPXDec * dec, GstVideoFormat fmt, int width, int height); static gboolean gst_vpx_dec_default_frame_format (GstVPXDec * dec, vpx_image_t * img, GstVideoFormat * fmt); static void gst_vpx_dec_handle_resolution_change (GstVPXDec * dec, vpx_image_t * img, GstVideoFormat fmt); #define parent_class gst_vpx_dec_parent_class G_DEFINE_TYPE (GstVPXDec, gst_vpx_dec, GST_TYPE_VIDEO_DECODER); static void gst_vpx_dec_class_init (GstVPXDecClass * klass) { GObjectClass *gobject_class; GstVideoDecoderClass *base_video_decoder_class; gobject_class = G_OBJECT_CLASS (klass); base_video_decoder_class = GST_VIDEO_DECODER_CLASS (klass); gobject_class->set_property = gst_vpx_dec_set_property; gobject_class->get_property = gst_vpx_dec_get_property; g_object_class_install_property (gobject_class, PROP_POST_PROCESSING, g_param_spec_boolean ("post-processing", "Post Processing", "Enable post processing", DEFAULT_POST_PROCESSING, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_POST_PROCESSING_FLAGS, g_param_spec_flags ("post-processing-flags", "Post Processing Flags", "Flags to control post processing", GST_VPX_DEC_TYPE_POST_PROCESSING_FLAGS, DEFAULT_POST_PROCESSING_FLAGS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DEBLOCKING_LEVEL, g_param_spec_uint ("deblocking-level", "Deblocking Level", "Deblocking level", 0, 16, DEFAULT_DEBLOCKING_LEVEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_NOISE_LEVEL, g_param_spec_uint ("noise-level", "Noise Level", "Noise level", 0, 16, DEFAULT_NOISE_LEVEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_THREADS, g_param_spec_uint ("threads", "Max Threads", "Maximum number of decoding threads", 0, 16, DEFAULT_THREADS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); base_video_decoder_class->start = GST_DEBUG_FUNCPTR (gst_vpx_dec_start); base_video_decoder_class->stop = GST_DEBUG_FUNCPTR (gst_vpx_dec_stop); base_video_decoder_class->flush = GST_DEBUG_FUNCPTR (gst_vpx_dec_flush); base_video_decoder_class->set_format = GST_DEBUG_FUNCPTR (gst_vpx_dec_set_format); base_video_decoder_class->handle_frame = GST_DEBUG_FUNCPTR (gst_vpx_dec_handle_frame);; base_video_decoder_class->decide_allocation = GST_DEBUG_FUNCPTR (gst_vpx_dec_decide_allocation); klass->video_codec_tag = DEFAULT_VIDEO_CODEC_TAG; klass->codec_algo = DEFAULT_CODEC_ALGO; klass->open_codec = GST_DEBUG_FUNCPTR (gst_vpx_dec_open_codec); klass->send_tags = GST_DEBUG_FUNCPTR (gst_vpx_dec_default_send_tags); klass->set_stream_info = NULL; klass->set_default_format = NULL; klass->handle_resolution_change = NULL; klass->get_frame_format = GST_DEBUG_FUNCPTR (gst_vpx_dec_default_frame_format); GST_DEBUG_CATEGORY_INIT (gst_vpxdec_debug, "vpxdec", 0, "VPX Decoder"); } static void gst_vpx_dec_init (GstVPXDec * gst_vpx_dec) { GstVideoDecoder *decoder = (GstVideoDecoder *) gst_vpx_dec; GST_DEBUG_OBJECT (gst_vpx_dec, "gst_vpx_dec_init"); gst_video_decoder_set_packetized (decoder, TRUE); gst_vpx_dec->post_processing = DEFAULT_POST_PROCESSING; gst_vpx_dec->post_processing_flags = DEFAULT_POST_PROCESSING_FLAGS; gst_vpx_dec->deblocking_level = DEFAULT_DEBLOCKING_LEVEL; gst_vpx_dec->noise_level = DEFAULT_NOISE_LEVEL; gst_video_decoder_set_needs_format (decoder, TRUE); gst_video_decoder_set_use_default_pad_acceptcaps (decoder, TRUE); GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_DECODER_SINK_PAD (decoder)); } static void gst_vpx_dec_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) { GstVPXDec *dec; g_return_if_fail (GST_IS_VPX_DEC (object)); dec = GST_VPX_DEC (object); GST_DEBUG_OBJECT (object, "gst_vpx_dec_set_property"); switch (prop_id) { case PROP_POST_PROCESSING: dec->post_processing = g_value_get_boolean (value); break; case PROP_POST_PROCESSING_FLAGS: dec->post_processing_flags = g_value_get_flags (value); break; case PROP_DEBLOCKING_LEVEL: dec->deblocking_level = g_value_get_uint (value); break; case PROP_NOISE_LEVEL: dec->noise_level = g_value_get_uint (value); break; case PROP_THREADS: dec->threads = g_value_get_uint (value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void gst_vpx_dec_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) { GstVPXDec *dec; g_return_if_fail (GST_IS_VPX_DEC (object)); dec = GST_VPX_DEC (object); switch (prop_id) { case PROP_POST_PROCESSING: g_value_set_boolean (value, dec->post_processing); break; case PROP_POST_PROCESSING_FLAGS: g_value_set_flags (value, dec->post_processing_flags); break; case PROP_DEBLOCKING_LEVEL: g_value_set_uint (value, dec->deblocking_level); break; case PROP_NOISE_LEVEL: g_value_set_uint (value, dec->noise_level); break; case PROP_THREADS: g_value_set_uint (value, dec->threads); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static gboolean gst_vpx_dec_start (GstVideoDecoder * decoder) { GstVPXDec *gst_vpx_dec = GST_VPX_DEC (decoder); GST_DEBUG_OBJECT (gst_vpx_dec, "start"); gst_vpx_dec->decoder_inited = FALSE; return TRUE; } static gboolean gst_vpx_dec_stop (GstVideoDecoder * base_video_decoder) { GstVPXDec *gst_vpx_dec = GST_VPX_DEC (base_video_decoder); GST_DEBUG_OBJECT (gst_vpx_dec, "stop"); if (gst_vpx_dec->output_state) { gst_video_codec_state_unref (gst_vpx_dec->output_state); gst_vpx_dec->output_state = NULL; } if (gst_vpx_dec->input_state) { gst_video_codec_state_unref (gst_vpx_dec->input_state); gst_vpx_dec->input_state = NULL; } if (gst_vpx_dec->decoder_inited) vpx_codec_destroy (&gst_vpx_dec->decoder); gst_vpx_dec->decoder_inited = FALSE; if (gst_vpx_dec->pool) { gst_buffer_pool_set_active (gst_vpx_dec->pool, FALSE); gst_object_unref (gst_vpx_dec->pool); gst_vpx_dec->pool = NULL; gst_vpx_dec->buf_size = 0; } return TRUE; } static gboolean gst_vpx_dec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state) { GstVPXDec *gst_vpx_dec = GST_VPX_DEC (decoder); GST_DEBUG_OBJECT (gst_vpx_dec, "set_format"); if (gst_vpx_dec->decoder_inited) vpx_codec_destroy (&gst_vpx_dec->decoder); gst_vpx_dec->decoder_inited = FALSE; if (gst_vpx_dec->output_state) { gst_video_codec_state_unref (gst_vpx_dec->output_state); gst_vpx_dec->output_state = NULL; } if (gst_vpx_dec->input_state) { gst_video_codec_state_unref (gst_vpx_dec->input_state); } gst_vpx_dec->input_state = gst_video_codec_state_ref (state); return TRUE; } static gboolean gst_vpx_dec_flush (GstVideoDecoder * base_video_decoder) { GstVPXDec *decoder; GST_DEBUG_OBJECT (base_video_decoder, "flush"); decoder = GST_VPX_DEC (base_video_decoder); if (decoder->output_state) { gst_video_codec_state_unref (decoder->output_state); decoder->output_state = NULL; } if (decoder->decoder_inited) vpx_codec_destroy (&decoder->decoder); decoder->decoder_inited = FALSE; return TRUE; } static void gst_vpx_dec_default_send_tags (GstVPXDec * dec) { GstTagList *list; GstVPXDecClass *vpxclass = GST_VPX_DEC_GET_CLASS (dec); if (vpxclass->video_codec_tag == NULL) return; list = gst_tag_list_new_empty (); gst_tag_list_add (list, GST_TAG_MERGE_REPLACE, GST_TAG_VIDEO_CODEC, vpxclass->video_codec_tag, NULL); gst_pad_push_event (GST_VIDEO_DECODER_SRC_PAD (dec), gst_event_new_tag (list)); } struct Frame { GstMapInfo info; GstBuffer *buffer; }; static GstBuffer * gst_vpx_dec_prepare_image (GstVPXDec * dec, const vpx_image_t * img) { gint comp; GstVideoMeta *vmeta; GstBuffer *buffer; struct Frame *frame = img->fb_priv; GstVideoInfo *info = &dec->output_state->info; buffer = gst_buffer_ref (frame->buffer); vmeta = gst_buffer_get_video_meta (buffer); vmeta->format = GST_VIDEO_INFO_FORMAT (info); vmeta->width = GST_VIDEO_INFO_WIDTH (info); vmeta->height = GST_VIDEO_INFO_HEIGHT (info); vmeta->n_planes = GST_VIDEO_INFO_N_PLANES (info); for (comp = 0; comp < 4; comp++) { vmeta->stride[comp] = img->stride[comp]; vmeta->offset[comp] = img->planes[comp] ? img->planes[comp] - frame->info.data : 0; } /* FIXME This is a READ/WRITE mapped buffer see bug #754826 */ return buffer; } static int gst_vpx_dec_get_buffer_cb (gpointer priv, gsize min_size, vpx_codec_frame_buffer_t * fb) { GstVPXDec *dec = priv; GstBuffer *buffer = NULL; struct Frame *frame; GstFlowReturn ret; if (!dec->pool || dec->buf_size != min_size) { GstBufferPool *pool; GstStructure *config; GstCaps *caps; GstAllocator *allocator; GstAllocationParams params; if (dec->pool) { gst_buffer_pool_set_active (dec->pool, FALSE); gst_object_unref (dec->pool); dec->pool = NULL; dec->buf_size = 0; } gst_video_decoder_get_allocator (GST_VIDEO_DECODER (dec), &allocator, &params); if (allocator && GST_OBJECT_FLAG_IS_SET (allocator, GST_ALLOCATOR_FLAG_CUSTOM_ALLOC)) { gst_object_unref (allocator); allocator = NULL; } pool = gst_buffer_pool_new (); config = gst_buffer_pool_get_config (pool); gst_buffer_pool_config_set_allocator (config, allocator, &params); caps = gst_caps_from_string ("video/internal"); gst_buffer_pool_config_set_params (config, caps, min_size, 2, 0); gst_caps_unref (caps); gst_buffer_pool_set_config (pool, config); if (allocator) gst_object_unref (allocator); if (!gst_buffer_pool_set_active (pool, TRUE)) { GST_WARNING ("Failed to create internal pool"); gst_object_unref (pool); return -1; } dec->pool = pool; dec->buf_size = min_size; } ret = gst_buffer_pool_acquire_buffer (dec->pool, &buffer, NULL); if (ret != GST_FLOW_OK) { GST_WARNING ("Failed to acquire buffer from internal pool."); return -1; } /* Add it now, while the buffer is writable */ gst_buffer_add_video_meta (buffer, GST_VIDEO_FRAME_FLAG_NONE, GST_VIDEO_FORMAT_ENCODED, 0, 0); frame = g_new0 (struct Frame, 1); if (!gst_buffer_map (buffer, &frame->info, GST_MAP_READWRITE)) { gst_buffer_unref (buffer); g_free (frame); GST_WARNING ("Failed to map buffer from internal pool."); return -1; } fb->size = frame->info.size; fb->data = frame->info.data; frame->buffer = buffer; fb->priv = frame; GST_TRACE_OBJECT (priv, "Allocated buffer %p", frame->buffer); return 0; } static int gst_vpx_dec_release_buffer_cb (gpointer priv, vpx_codec_frame_buffer_t * fb) { struct Frame *frame = fb->priv; /* We're sometimes called without a frame */ if (!frame) return 0; GST_TRACE_OBJECT (priv, "Release buffer %p", frame->buffer); gst_buffer_unmap (frame->buffer, &frame->info); gst_buffer_unref (frame->buffer); g_free (frame); fb->priv = NULL; return 0; } static void gst_vpx_dec_image_to_buffer (GstVPXDec * dec, const vpx_image_t * img, GstBuffer * buffer) { int deststride, srcstride, height, width, line, comp; guint8 *dest, *src; GstVideoFrame frame; GstVideoInfo *info = &dec->output_state->info; if (!gst_video_frame_map (&frame, info, buffer, GST_MAP_WRITE)) { GST_ERROR_OBJECT (dec, "Could not map video buffer"); return; } for (comp = 0; comp < 3; comp++) { dest = GST_VIDEO_FRAME_COMP_DATA (&frame, comp); src = img->planes[comp]; width = GST_VIDEO_FRAME_COMP_WIDTH (&frame, comp) * GST_VIDEO_FRAME_COMP_PSTRIDE (&frame, comp); height = GST_VIDEO_FRAME_COMP_HEIGHT (&frame, comp); deststride = GST_VIDEO_FRAME_COMP_STRIDE (&frame, comp); srcstride = img->stride[comp]; if (srcstride == deststride) { GST_TRACE_OBJECT (dec, "Stride matches. Comp %d: %d, copying full plane", comp, srcstride); memcpy (dest, src, srcstride * height); } else { GST_TRACE_OBJECT (dec, "Stride mismatch. Comp %d: %d != %d, copying " "line by line.", comp, srcstride, deststride); for (line = 0; line < height; line++) { memcpy (dest, src, width); dest += deststride; src += srcstride; } } } gst_video_frame_unmap (&frame); } static GstFlowReturn gst_vpx_dec_open_codec (GstVPXDec * dec, GstVideoCodecFrame * frame) { int flags = 0; vpx_codec_stream_info_t stream_info; vpx_codec_caps_t caps; vpx_codec_dec_cfg_t cfg; vpx_codec_err_t status; GstMapInfo minfo; GstVPXDecClass *vpxclass = GST_VPX_DEC_GET_CLASS (dec); g_return_val_if_fail (vpxclass->codec_algo != NULL, GST_FLOW_ERROR); memset (&stream_info, 0, sizeof (stream_info)); memset (&cfg, 0, sizeof (cfg)); stream_info.sz = sizeof (stream_info); if (!gst_buffer_map (frame->input_buffer, &minfo, GST_MAP_READ)) { GST_ERROR_OBJECT (dec, "Failed to map input buffer"); return GST_FLOW_ERROR; } status = vpx_codec_peek_stream_info (vpxclass->codec_algo, minfo.data, minfo.size, &stream_info); gst_buffer_unmap (frame->input_buffer, &minfo); if (status != VPX_CODEC_OK) { GST_WARNING_OBJECT (dec, "VPX preprocessing error: %s", gst_vpx_error_name (status)); return GST_FLOW_CUSTOM_SUCCESS_1; } if (!stream_info.is_kf) { GST_WARNING_OBJECT (dec, "No keyframe, skipping"); return GST_FLOW_CUSTOM_SUCCESS_1; } gst_vpx_dec_set_stream_info (dec, &stream_info); gst_vpx_dec_set_default_format (dec, GST_VIDEO_FORMAT_I420, stream_info.w, stream_info.h); cfg.w = stream_info.w; cfg.h = stream_info.h; if (dec->threads > 0) cfg.threads = dec->threads; else cfg.threads = g_get_num_processors (); caps = vpx_codec_get_caps (vpxclass->codec_algo); if (dec->post_processing) { if (!(caps & VPX_CODEC_CAP_POSTPROC)) { GST_WARNING_OBJECT (dec, "Decoder does not support post processing"); } else { flags |= VPX_CODEC_USE_POSTPROC; } } status = vpx_codec_dec_init (&dec->decoder, vpxclass->codec_algo, &cfg, flags); if (status != VPX_CODEC_OK) { GST_ELEMENT_ERROR (dec, LIBRARY, INIT, ("Failed to initialize VP8 decoder"), ("%s", gst_vpx_error_name (status))); return GST_FLOW_ERROR; } if ((caps & VPX_CODEC_CAP_POSTPROC) && dec->post_processing) { vp8_postproc_cfg_t pp_cfg = { 0, }; pp_cfg.post_proc_flag = dec->post_processing_flags; pp_cfg.deblocking_level = dec->deblocking_level; pp_cfg.noise_level = dec->noise_level; status = vpx_codec_control (&dec->decoder, VP8_SET_POSTPROC, &pp_cfg); if (status != VPX_CODEC_OK) { GST_WARNING_OBJECT (dec, "Couldn't set postprocessing settings: %s", gst_vpx_error_name (status)); } } vpx_codec_set_frame_buffer_functions (&dec->decoder, gst_vpx_dec_get_buffer_cb, gst_vpx_dec_release_buffer_cb, dec); dec->decoder_inited = TRUE; return GST_FLOW_OK; } static GstFlowReturn gst_vpx_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame) { GstVPXDec *dec; GstFlowReturn ret = GST_FLOW_OK; vpx_codec_err_t status; vpx_codec_iter_t iter = NULL; vpx_image_t *img; long decoder_deadline = 0; GstClockTimeDiff deadline; GstMapInfo minfo; GstVPXDecClass *vpxclass; GstVideoFormat fmt; GST_LOG_OBJECT (decoder, "handle_frame"); dec = GST_VPX_DEC (decoder); vpxclass = GST_VPX_DEC_GET_CLASS (dec); if (!dec->decoder_inited) { ret = vpxclass->open_codec (dec, frame); if (ret == GST_FLOW_CUSTOM_SUCCESS_1) { gst_video_decoder_drop_frame (decoder, frame); return GST_FLOW_OK; } else if (ret != GST_FLOW_OK) { gst_video_codec_frame_unref (frame); return ret; } } deadline = gst_video_decoder_get_max_decode_time (decoder, frame); if (deadline < 0) { decoder_deadline = 1; } else if (deadline == G_MAXINT64) { decoder_deadline = 0; } else { decoder_deadline = MAX (1, deadline / GST_MSECOND); } if (!gst_buffer_map (frame->input_buffer, &minfo, GST_MAP_READ)) { GST_ERROR_OBJECT (dec, "Failed to map input buffer"); gst_video_codec_frame_unref (frame); return GST_FLOW_ERROR; } status = vpx_codec_decode (&dec->decoder, minfo.data, minfo.size, NULL, decoder_deadline); gst_buffer_unmap (frame->input_buffer, &minfo); if (status) { GST_VIDEO_DECODER_ERROR (decoder, 1, LIBRARY, ENCODE, ("Failed to decode frame"), ("%s", gst_vpx_error_name (status)), ret); gst_video_codec_frame_unref (frame); return ret; } img = vpx_codec_get_frame (&dec->decoder, &iter); if (img) { if (vpxclass->get_frame_format (dec, img, &fmt) == FALSE) { vpx_img_free (img); GST_ELEMENT_ERROR (decoder, LIBRARY, ENCODE, ("Failed to decode frame"), ("Unsupported color format %d", img->fmt)); gst_video_codec_frame_unref (frame); return GST_FLOW_ERROR; } if (deadline < 0) { GST_LOG_OBJECT (dec, "Skipping late frame (%f s past deadline)", (double) -deadline / GST_SECOND); gst_video_decoder_drop_frame (decoder, frame); } else { gst_vpx_dec_handle_resolution_change (dec, img, fmt); if (img->fb_priv && dec->have_video_meta) { frame->output_buffer = gst_vpx_dec_prepare_image (dec, img); ret = gst_video_decoder_finish_frame (decoder, frame); } else { ret = gst_video_decoder_allocate_output_frame (decoder, frame); if (ret == GST_FLOW_OK) { gst_vpx_dec_image_to_buffer (dec, img, frame->output_buffer); ret = gst_video_decoder_finish_frame (decoder, frame); } else { gst_video_decoder_drop_frame (decoder, frame); } } } vpx_img_free (img); while ((img = vpx_codec_get_frame (&dec->decoder, &iter))) { GST_WARNING_OBJECT (decoder, "Multiple decoded frames... dropping"); vpx_img_free (img); } } else { /* Invisible frame */ GST_VIDEO_CODEC_FRAME_SET_DECODE_ONLY (frame); gst_video_decoder_finish_frame (decoder, frame); } return ret; } static gboolean gst_vpx_dec_decide_allocation (GstVideoDecoder * bdec, GstQuery * query) { GstVPXDec *dec = GST_VPX_DEC (bdec); GstBufferPool *pool; GstStructure *config; if (!GST_VIDEO_DECODER_CLASS (parent_class)->decide_allocation (bdec, query)) return FALSE; g_assert (gst_query_get_n_allocation_pools (query) > 0); gst_query_parse_nth_allocation_pool (query, 0, &pool, NULL, NULL, NULL); g_assert (pool != NULL); config = gst_buffer_pool_get_config (pool); if (gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL)) { gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META); dec->have_video_meta = TRUE; } gst_buffer_pool_set_config (pool, config); gst_object_unref (pool); return TRUE; } static void gst_vpx_dec_set_stream_info (GstVPXDec * dec, vpx_codec_stream_info_t * stream_info) { GstVPXDecClass *vpxclass = GST_VPX_DEC_GET_CLASS (dec); if (vpxclass->set_stream_info != NULL) { vpxclass->set_stream_info (dec, stream_info); } } static void gst_vpx_dec_set_default_format (GstVPXDec * dec, GstVideoFormat fmt, int width, int height) { GstVPXDecClass *vpxclass = GST_VPX_DEC_GET_CLASS (dec); if (vpxclass->set_default_format != NULL) { vpxclass->set_default_format (dec, fmt, width, height); } } static gboolean gst_vpx_dec_default_frame_format (GstVPXDec * dec, vpx_image_t * img, GstVideoFormat * fmt) { if (img->fmt == VPX_IMG_FMT_I420) { *fmt = GST_VIDEO_FORMAT_I420; return TRUE; } else { return FALSE; } } static void gst_vpx_dec_handle_resolution_change (GstVPXDec * dec, vpx_image_t * img, GstVideoFormat fmt) { GstVPXDecClass *vpxclass = GST_VPX_DEC_GET_CLASS (dec); if (vpxclass->handle_resolution_change != NULL) { vpxclass->handle_resolution_change (dec, img, fmt); } } #endif /* HAVE_VP8_DECODER || HAVE_VP9_DECODER */
30.137255
93
0.719909
e9db0a0f1aeaa8156d92e58fb3c0e3fe352132a2
2,827
go
Go
x/reports/keeper/common_test.go
anilCSE/desmos
f33333fdf1e4a1736bbdc42fe1052fa6a3bd8343
[ "Apache-2.0" ]
null
null
null
x/reports/keeper/common_test.go
anilCSE/desmos
f33333fdf1e4a1736bbdc42fe1052fa6a3bd8343
[ "Apache-2.0" ]
11
2022-02-14T17:30:47.000Z
2022-03-30T20:29:31.000Z
x/reports/keeper/common_test.go
dadamu/desmos
225afd5676160ab608737482d81ab69dac82e4d5
[ "Apache-2.0" ]
null
null
null
package keeper_test // NOLINT import ( "testing" "time" relationshipskeeper "github.com/desmos-labs/desmos/x/relationships/keeper" paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" "github.com/desmos-labs/desmos/app" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/libs/log" db "github.com/tendermint/tm-db" postskeeper "github.com/desmos-labs/desmos/x/posts/keeper" poststypes "github.com/desmos-labs/desmos/x/posts/types" "github.com/desmos-labs/desmos/x/reports/keeper" "github.com/desmos-labs/desmos/x/reports/types" ) type KeeperTestSuite struct { suite.Suite cdc codec.Marshaler legacyAminoCdc *codec.LegacyAmino ctx sdk.Context keeper keeper.Keeper storeKey sdk.StoreKey postsKeeper postskeeper.Keeper testData TestData } type TestData struct { postID string creationDate time.Time creator string } func (suite *KeeperTestSuite) SetupTest() { // Define store keys postsKey := sdk.NewKVStoreKey(poststypes.StoreKey) paramsKey := sdk.NewKVStoreKey("params") paramsTKey := sdk.NewTransientStoreKey("transient_params") reportsKey := sdk.NewKVStoreKey(types.StoreKey) relationshipsKey := sdk.NewKVStoreKey("relationships") suite.storeKey = reportsKey // Create an in-memory db for the reports memDB := db.NewMemDB() ms := store.NewCommitMultiStore(memDB) ms.MountStoreWithDB(postsKey, sdk.StoreTypeIAVL, memDB) ms.MountStoreWithDB(reportsKey, sdk.StoreTypeIAVL, memDB) ms.MountStoreWithDB(paramsKey, sdk.StoreTypeIAVL, memDB) ms.MountStoreWithDB(paramsTKey, sdk.StoreTypeTransient, memDB) ms.MountStoreWithDB(relationshipsKey, sdk.StoreTypeIAVL, memDB) if err := ms.LoadLatestVersion(); err != nil { panic(err) } suite.ctx = sdk.NewContext(ms, tmproto.Header{ChainID: "test-chain-id"}, false, log.NewNopLogger()) suite.cdc, suite.legacyAminoCdc = app.MakeCodecs() // Define keepers rk := relationshipskeeper.NewKeeper(suite.cdc, relationshipsKey) paramsKeeper := paramskeeper.NewKeeper(suite.cdc, suite.legacyAminoCdc, paramsKey, paramsTKey) suite.postsKeeper = postskeeper.NewKeeper(suite.cdc, postsKey, paramsKeeper.Subspace("poststypes"), rk) suite.keeper = keeper.NewKeeper(suite.cdc, suite.storeKey, suite.postsKeeper) // Setup data date, _ := time.Parse(time.RFC3339, "2020-01-01T15:15:00.000Z") suite.testData = TestData{ postID: "19de02e105c68a60e45c289bff19fde745bca9c63c38f2095b59e8e8090ae1af", creationDate: date, creator: "cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns", } } func TestKeeperTestSuite(t *testing.T) { suite.Run(t, new(KeeperTestSuite)) }
31.764045
104
0.760877
492db5764033b1e3f255acc8408ae5ab29e67774
932
asm
Assembly
programs/oeis/237/A237516.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/237/A237516.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/237/A237516.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A237516: Pyramidal centered square numbers. ; 1,15,91,325,861,1891,3655,6441,10585,16471,24531,35245,49141,66795,88831,115921,148785,188191,234955,289941,354061,428275,513591,611065,721801,846951,987715,1145341,1321125,1516411,1732591,1971105,2233441,2521135,2835771,3178981,3552445,3957891,4397095,4871881,5384121,5935735,6528691,7165005,7846741,8576011,9354975,10185841,11070865,12012351,13012651,14074165,15199341,16390675,17650711,18982041,20387305,21869191,23430435,25073821,26802181,28618395,30525391,32526145,34623681,36821071,39121435,41527941,44043805,46672291,49416711,52280425,55266841,58379415,61621651,64997101,68509365,72162091,75958975,79903761,84000241,88252255,92663691,97238485,101980621,106894131,111983095,117251641,122703945,128344231,134176771,140205885,146435941,152871355,159516591,166376161,173454625,180756591,188286715,196049701 mul $0,2 add $0,1 pow $0,2 add $0,2 pow $0,2 div $0,16 mul $0,2 add $0,1
77.666667
811
0.845494
5f927b441cc2f8b8056725a85012141ba7918cca
508
swift
Swift
sources/PageTabBarSupplementaryView.swift
keithcml/PageTabBarController
a52978713d78f72437f66d4329d6ce180b3365e7
[ "MIT" ]
1
2017-09-06T20:45:32.000Z
2017-09-06T20:45:32.000Z
sources/PageTabBarSupplementaryView.swift
keithcml/PageTabBarController
a52978713d78f72437f66d4329d6ce180b3365e7
[ "MIT" ]
2
2019-04-26T08:38:05.000Z
2019-04-26T09:16:36.000Z
sources/PageTabBarSupplementaryView.swift
keithcml/PageTabBarController
a52978713d78f72437f66d4329d6ce180b3365e7
[ "MIT" ]
2
2017-09-06T20:45:33.000Z
2018-04-17T10:37:19.000Z
// // PageTabBarSupplementaryView.swift // PageTabBarController // // Created by Keith Chan on 18/10/2017. // Copyright © 2017 com.mingloan. All rights reserved. // import Foundation import UIKit @objc public final class PageTabBarSupplementaryView: UIView { override init(frame: CGRect) { super.init(frame: frame) backgroundColor = .clear } required public init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
20.32
59
0.67126
911396eea591b5ed51badaf277aae1f1199a93a4
647
asm
Assembly
programs/oeis/070/A070375.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/070/A070375.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/070/A070375.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A070375: a(n) = 5^n mod 22. ; 1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9,1,5,3,15,9 mov $1,1 mov $2,$0 lpb $2 mul $1,5 mod $1,22 sub $2,1 lpe
58.818182
551
0.539413
7e88d2bc61f347b451847c09e21484276773389a
27
sql
SQL
db/migrations/20211120034000_create_uuid_extension.down.sql
felipecrs/thunderdome-planning-poker
e52d0344e2f558e55d6dd661e13b456ea59d5193
[ "Apache-2.0" ]
null
null
null
db/migrations/20211120034000_create_uuid_extension.down.sql
felipecrs/thunderdome-planning-poker
e52d0344e2f558e55d6dd661e13b456ea59d5193
[ "Apache-2.0" ]
null
null
null
db/migrations/20211120034000_create_uuid_extension.down.sql
felipecrs/thunderdome-planning-poker
e52d0344e2f558e55d6dd661e13b456ea59d5193
[ "Apache-2.0" ]
null
null
null
DROP extension "uuid-ossp";
27
27
0.777778
1611d33b9cfd6dfe85686e3485fcf88de696e49b
591
ts
TypeScript
examples/web-components-kitchen-sink/src/stories/addons/toolbars/addon-toolbars.stories.ts
asksyllable/storybook
af4ef831fc1ffe4756bb0744921f8dcd25f67375
[ "MIT" ]
34,857
2019-05-30T22:29:14.000Z
2022-03-31T22:36:01.000Z
examples/web-components-kitchen-sink/src/stories/addons/toolbars/addon-toolbars.stories.ts
asksyllable/storybook
af4ef831fc1ffe4756bb0744921f8dcd25f67375
[ "MIT" ]
10,039
2019-05-30T23:23:09.000Z
2022-03-31T23:47:28.000Z
examples/web-components-kitchen-sink/src/stories/addons/toolbars/addon-toolbars.stories.ts
asksyllable/storybook
af4ef831fc1ffe4756bb0744921f8dcd25f67375
[ "MIT" ]
5,457
2019-05-30T22:33:54.000Z
2022-03-31T17:29:50.000Z
import { html } from 'lit'; import { Story, Meta } from '@storybook/web-components'; export default { title: 'Addons / Toolbars', } as Meta; const getCaptionForLocale = (locale: string) => { switch (locale) { case 'es': return 'Hola!'; case 'fr': return 'Bonjour !'; case 'zh': return '你好!'; case 'kr': return '안녕하세요!'; case 'en': default: return 'Hello'; } }; export const Locale: Story = (args, { globals: { locale } }) => { return html` <div>Your locale is '${locale}', so I say: ${getCaptionForLocale(locale)}</div> `; };
21.888889
97
0.571912
7ce12ed678d7b023e8da8b01d3a9491a0d6b94fa
220
swift
Swift
MaterialDesign/Classes/TextField.swift
mattiaberretti/MaterialDesign
5fa32cd3e89e0ea668477fd4e44d7f5337812af0
[ "MIT" ]
null
null
null
MaterialDesign/Classes/TextField.swift
mattiaberretti/MaterialDesign
5fa32cd3e89e0ea668477fd4e44d7f5337812af0
[ "MIT" ]
null
null
null
MaterialDesign/Classes/TextField.swift
mattiaberretti/MaterialDesign
5fa32cd3e89e0ea668477fd4e44d7f5337812af0
[ "MIT" ]
null
null
null
// // TextField.swift // MaterialDesign // // Created by Mattia on 29/05/18. // import Foundation @objc public protocol TextField { func resignFirstResponder() -> Bool func becomeFirstResponder() -> Bool }
14.666667
40
0.681818
dd74684f2addd38692217e895bb1381c1c49e829
6,286
php
PHP
mobileLearning/res/httdocs/moodle/admin/report/unittest/ex_simple_test.php
RizkyKhapidsyah/Mobile-Machine-Learning_v1.0__JVm
5d7b00c455874b668742f1b58f042b1e456b7c38
[ "Unlicense" ]
null
null
null
mobileLearning/res/httdocs/moodle/admin/report/unittest/ex_simple_test.php
RizkyKhapidsyah/Mobile-Machine-Learning_v1.0__JVm
5d7b00c455874b668742f1b58f042b1e456b7c38
[ "Unlicense" ]
null
null
null
mobileLearning/res/httdocs/moodle/admin/report/unittest/ex_simple_test.php
RizkyKhapidsyah/Mobile-Machine-Learning_v1.0__JVm
5d7b00c455874b668742f1b58f042b1e456b7c38
[ "Unlicense" ]
null
null
null
<?php /** * A SimpleTest GroupTest that automatically finds all the * test files in a directory tree according to certain rules. * * @copyright &copy; 2006 The Open University * @author N.D.Freear@open.ac.uk, T.J.Hunt@open.ac.uk * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * @version $Id: ex_simple_test.php,v 1.1.2.5 2009/11/30 01:16:23 andyjdavis Exp $ * @package SimpleTestEx */ if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page } require_once($CFG->libdir . '/simpletestlib/test_case.php'); /** * This is a composite test class for finding test cases and * other RunnableTest classes in a directory tree and combining * them into a group test. * @package SimpleTestEx */ class AutoGroupTest extends TestSuite { var $thorough; var $showsearch; function AutoGroupTest($showsearch, $thorough, $test_name = null) { $this->TestSuite($test_name); $this->showsearch = $showsearch; $this->thorough = $thorough; } function setLabel($test_name) { //:HACK: there is no GroupTest::setLabel, so access parent::_label. $this->_label = $test_name; } function addIgnoreFolder($ignorefolder) { $this->ignorefolders[]=$ignorefolder; } function _recurseFolders($path) { if ($this->showsearch) { echo '<li>' . basename(realpath($path)) . '<ul>'; } $files = scandir($path); static $s_count = 0; foreach ($files as $file) { if ($file == '.' || $file == '..') { continue; } $file_path = $path . '/' . $file; if (is_dir($file_path)) { if ($file != 'CVS' && $file != '.git' && !in_array($file_path, $this->ignorefolders)) { $this->_recurseFolders($file_path); } } elseif (preg_match('/simpletest(\/|\\\\)test.*\.php$/', $file_path) || ($this->thorough && preg_match('/simpletest(\/|\\\\)slowtest.*\.php$/', $file_path))) { $s_count++; // OK, found: this shows as a 'Notice' for any 'simpletest/test*.php' file. $this->addTestCase(new FindFileNotice($file_path, 'Found unit test file, '. $s_count)); // addTestFile: Unfortunately this doesn't return fail/success (bool). $this->addTestFile($file_path, true); } } if ($this->showsearch) { echo '</ul></li>'; } return $s_count; } function findTestFiles($dir) { if ($this->showsearch) { echo '<p>Searching folder: ' . realpath($dir) . '</p><ul>'; } $path = $dir; $count = $this->_recurseFolders($path); if ($count <= 0) { $this->addTestCase(new BadAutoGroupTest($path, 'Search complete. No unit test files found')); } else { $this->addTestCase(new AutoGroupTestNotice($path, 'Search complete. Total unit test files found: '. $count)); } if ($this->showsearch) { echo '</ul>'; } return $count; } function addTestFile($file, $internalcall = false) { if ($this->showsearch) { if ($internalcall) { echo '<li><b>' . basename($file) . '</b></li>'; } else { echo '<p>Adding test file: ' . realpath($file) . '</p>'; } // Make sure that syntax errors show up suring the search, otherwise you often // get blank screens because evil people turn down error_reporting elsewhere. error_reporting(E_ALL); } if(!is_file($file) ){ parent::addTestCase(new BadTest($file, 'Not a file or does not exist')); } parent::addTestFile($file); } } /* ======================================================================= */ // get_class_ex: Insert spaces to prettify the class-name. function get_class_ex($object) { return preg_replace('/(.?)([A-Z])/', '${1} ${2}', get_class($object)); } /** * A failing test base-class for when a test suite has NOT loaded properly. * See class, simple_test.php: BadGroupTest. * @package SimpleTestEx */ class BadTest { var $label; var $error; function BadTest($label, $error) { $this->label = $label; $this->error = $error; } function getLabel() { return $this->label; } function run(&$reporter) { $reporter->paintGroupStart(basename(__FILE__), $this->getSize()); $reporter->paintFail(get_class_ex($this) .' [' . $this->getLabel() . '] with error [' . $this->error . ']'); $reporter->paintGroupEnd($this->getLabel()); return $reporter->getStatus(); } /** * @return int the number of test cases starting. */ function getSize() { return 0; } } /** * An informational notice base-class for when a test suite is being processed. * See class, simple_test.php: BadGroupTest. * @package SimpleTestEx */ class Notice { var $label; var $status; function Notice($label, $error) { $this->label = $label; $this->status = $error; } function getLabel() { return $this->label; } function run(&$reporter) { $reporter->paintGroupStart(basename(__FILE__), $this->getSize()); $reporter->paintNotice(get_class_ex($this) . ' ['. $this->getLabel() .'] with status [' . $this->status . ']'); $reporter->paintGroupEnd($this->getLabel()); return $reporter->getStatus(); } function getSize() { return 0; } } /** * A failing folder test for when the test-user specifies an invalid directory * (run.php?folder=woops). * @package SimpleTestEx */ class BadFolderTest extends BadTest { } /** * A failing auto test for when no unit test files are found. * @package SimpleTestEx */ class BadAutoGroupTest extends BadTest { } /** * Auto group test notices - 1. Search complete. 2. A test file has been found. * @package SimpleTestEx */ class AutoGroupTestNotice extends Notice { } class FindFileNotice extends Notice { } ?>
29.933333
121
0.566338
c2ea17036efcdcef216d042e9bb8c82898fd4f44
278
go
Go
builtin/principals/Principals.go
HammerZ3it/signmykey
8e380979e7fc1e8e8a55f564ff00c96e0bcf75ad
[ "MIT" ]
null
null
null
builtin/principals/Principals.go
HammerZ3it/signmykey
8e380979e7fc1e8e8a55f564ff00c96e0bcf75ad
[ "MIT" ]
null
null
null
builtin/principals/Principals.go
HammerZ3it/signmykey
8e380979e7fc1e8e8a55f564ff00c96e0bcf75ad
[ "MIT" ]
null
null
null
package principals import ( "context" "github.com/spf13/viper" ) // Principals is the interface that wrap the get of SMK Principals. type Principals interface { Init(config *viper.Viper) error Get(ctx context.Context, payload []byte) (context.Context, []string, error) }
19.857143
76
0.741007
3fbc7f64fd59b1b43367468727006ca6af97da42
6,665
h
C
DataFormats/L1TParticleFlow/interface/HPSPFTau.h
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
4
2020-06-27T23:27:21.000Z
2020-11-19T09:17:01.000Z
DataFormats/L1TParticleFlow/interface/HPSPFTau.h
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
524
2018-01-29T15:50:45.000Z
2021-08-04T14:03:21.000Z
DataFormats/L1TParticleFlow/interface/HPSPFTau.h
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
7
2018-02-19T11:17:13.000Z
2020-10-12T21:57:00.000Z
#ifndef DataFormats_L1TParticleFlow_HPSPFTau_H #define DataFormats_L1TParticleFlow_HPSPFTau_H #include "DataFormats/L1TParticleFlow/interface/PFCandidate.h" // l1t::PFCandidate, l1t::PFCandidateRef, l1t::PFCandidateRefVector #include "DataFormats/L1TParticleFlow/interface/PFJet.h" // l1t::PFJet, l1t::PFJetCollection, l1t::PFJetRef #include "DataFormats/Candidate/interface/LeafCandidate.h" // reco::LeafCandidate #include "DataFormats/Candidate/interface/Particle.h" // reco::Particle::LorentzVector #include "DataFormats/L1TCorrelator/interface/TkPrimaryVertex.h" #include <ostream> namespace l1t { class HPSPFTau : public reco::LeafCandidate { public: /// default constructor HPSPFTau(); /// destructor ~HPSPFTau() override; /// accessor functions for reco level quantities bool isChargedPFCandSeeded() const { return seedChargedPFCand_.isNonnull(); } bool isPFJetSeeded() const { return seedPFJet_.isNonnull(); } const l1t::PFCandidateRef& seedChargedPFCand() const { return seedChargedPFCand_; } const l1t::PFJetRef& seedPFJet() const { return seedPFJet_; } const l1t::PFCandidateRef& leadChargedPFCand() const { return leadChargedPFCand_; } const l1t::PFCandidateRefVector& signalAllL1PFCandidates() const { return signalAllL1PFCandidates_; } const l1t::PFCandidateRefVector& signalChargedHadrons() const { return signalChargedHadrons_; } const l1t::PFCandidateRefVector& signalElectrons() const { return signalElectrons_; } const l1t::PFCandidateRefVector& signalNeutralHadrons() const { return signalNeutralHadrons_; } const l1t::PFCandidateRefVector& signalPhotons() const { return signalPhotons_; } const l1t::PFCandidateRefVector& signalMuons() const { return signalMuons_; } const l1t::PFCandidateRefVector& stripAllL1PFCandidates() const { return stripAllL1PFCandidates_; } const l1t::PFCandidateRefVector& stripElectrons() const { return stripElectrons_; } const l1t::PFCandidateRefVector& stripPhotons() const { return stripPhotons_; } const l1t::PFCandidateRefVector& isoAllL1PFCandidates() const { return isoAllL1PFCandidates_; } const l1t::PFCandidateRefVector& isoChargedHadrons() const { return isoChargedHadrons_; } const l1t::PFCandidateRefVector& isoElectrons() const { return isoElectrons_; } const l1t::PFCandidateRefVector& isoNeutralHadrons() const { return isoNeutralHadrons_; } const l1t::PFCandidateRefVector& isoPhotons() const { return isoPhotons_; } const l1t::PFCandidateRefVector& isoMuons() const { return isoMuons_; } const l1t::PFCandidateRefVector& sumAllL1PFCandidates() const { return sumAllL1PFCandidates_; } const l1t::PFCandidateRefVector& sumChargedHadrons() const { return sumChargedHadrons_; } const l1t::PFCandidateRefVector& sumElectrons() const { return sumElectrons_; } const l1t::PFCandidateRefVector& sumNeutralHadrons() const { return sumNeutralHadrons_; } const l1t::PFCandidateRefVector& sumPhotons() const { return sumPhotons_; } const l1t::PFCandidateRefVector& sumMuons() const { return sumMuons_; } const l1t::TkPrimaryVertexRef& primaryVertex() const { return primaryVertex_; } enum Kind { kUndefined, kOneProng0Pi0, kOneProng1Pi0, kThreeProng0Pi0, kThreeProng1Pi0 }; Kind tauType() const { return tauType_; } const reco::Particle::LorentzVector& strip_p4() const { return strip_p4_; } float sumAllL1PFCandidates_pt() const { return sumAllL1PFCandidates_pt_; } float signalConeSize() const { return signalConeSize_; } float isolationConeSize() const { return signalConeSize_; } float sumChargedIso() const { return sumChargedIso_; } float sumNeutralIso() const { return sumNeutralIso_; } float sumCombinedIso() const { return sumCombinedIso_; } float sumChargedIsoPileup() const { return sumChargedIsoPileup_; } float rhoCorr() const { return rhoCorr_; } bool passTightIso() const { return passTightIso_; } bool passMediumIso() const { return passMediumIso_; } bool passLooseIso() const { return passLooseIso_; } bool passVLooseIso() const { return passVLooseIso_; } bool passTightRelIso() const { return passTightRelIso_; } bool passMediumRelIso() const { return passMediumRelIso_; } bool passLooseRelIso() const { return passLooseRelIso_; } bool passVLooseRelIso() const { return passVLooseRelIso_; } private: l1t::PFCandidateRef seedChargedPFCand_; l1t::PFJetRef seedPFJet_; l1t::PFCandidateRef leadChargedPFCand_; l1t::PFCandidateRefVector signalAllL1PFCandidates_; l1t::PFCandidateRefVector signalChargedHadrons_; l1t::PFCandidateRefVector signalElectrons_; l1t::PFCandidateRefVector signalNeutralHadrons_; l1t::PFCandidateRefVector signalPhotons_; l1t::PFCandidateRefVector signalMuons_; l1t::PFCandidateRefVector stripAllL1PFCandidates_; l1t::PFCandidateRefVector stripElectrons_; l1t::PFCandidateRefVector stripPhotons_; l1t::PFCandidateRefVector isoAllL1PFCandidates_; l1t::PFCandidateRefVector isoChargedHadrons_; l1t::PFCandidateRefVector isoElectrons_; l1t::PFCandidateRefVector isoNeutralHadrons_; l1t::PFCandidateRefVector isoPhotons_; l1t::PFCandidateRefVector isoMuons_; l1t::PFCandidateRefVector sumAllL1PFCandidates_; l1t::PFCandidateRefVector sumChargedHadrons_; l1t::PFCandidateRefVector sumElectrons_; l1t::PFCandidateRefVector sumNeutralHadrons_; l1t::PFCandidateRefVector sumPhotons_; l1t::PFCandidateRefVector sumMuons_; l1t::TkPrimaryVertexRef primaryVertex_; Kind tauType_; reco::Particle::LorentzVector strip_p4_; float sumAllL1PFCandidates_pt_; float signalConeSize_; float isolationConeSize_; float sumChargedIso_; float sumNeutralIso_; float sumCombinedIso_; float sumChargedIsoPileup_; // charged PFCands failing dz cut (maybe useful to correct neutral isolation for pile-up contributions by applying delta-beta corrections) float rhoCorr_; // rho correction (maybe useful for applying pile-up corrections to neutral isolation) bool passTightIso_; bool passMediumIso_; bool passLooseIso_; bool passVLooseIso_; bool passTightRelIso_; bool passMediumRelIso_; bool passLooseRelIso_; bool passVLooseRelIso_; }; void printPFCand(ostream& os, const l1t::PFCandidate& l1PFCand, const l1t::TkPrimaryVertexRef& primaryVertex); void printPFCand(ostream& os, const l1t::PFCandidate& l1PFCand, float primaryVertex_z); } // namespace l1t /// print to stream std::ostream& operator<<(std::ostream& os, const l1t::HPSPFTau& l1PFTau); #endif
45.650685
171
0.765341
3fbc67d9e19739edbf5be625a68c5f7e34153771
2,088
h
C
kernel_dvfs/linux-linaro-tracking-gem5/arch/s390/include/asm/dma-mapping.h
lokeshjindal15/pd-gem5_transformer
f8eb40dc65a5d7e15c8aa0756b1b48dd104bd54f
[ "BSD-3-Clause" ]
55
2019-12-20T03:25:14.000Z
2022-01-16T07:19:47.000Z
kernel_dvfs/linux-linaro-tracking-gem5/arch/s390/include/asm/dma-mapping.h
lokeshjindal15/pd-gem5_transformer
f8eb40dc65a5d7e15c8aa0756b1b48dd104bd54f
[ "BSD-3-Clause" ]
2
2020-11-02T08:01:00.000Z
2022-03-27T02:59:18.000Z
kernel_dvfs/linux-linaro-tracking-gem5/arch/s390/include/asm/dma-mapping.h
lokeshjindal15/pd-gem5_transformer
f8eb40dc65a5d7e15c8aa0756b1b48dd104bd54f
[ "BSD-3-Clause" ]
11
2020-08-06T03:59:45.000Z
2022-02-25T02:31:59.000Z
#ifndef _ASM_S390_DMA_MAPPING_H #define _ASM_S390_DMA_MAPPING_H #include <linux/kernel.h> #include <linux/types.h> #include <linux/mm.h> #include <linux/scatterlist.h> #include <linux/dma-attrs.h> #include <linux/dma-debug.h> #include <linux/io.h> #define DMA_ERROR_CODE (~(dma_addr_t) 0x0) extern struct dma_map_ops s390_dma_ops; static inline struct dma_map_ops *get_dma_ops(struct device *dev) { return &s390_dma_ops; } extern int dma_set_mask(struct device *dev, u64 mask); static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction) { } #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) #include <asm-generic/dma-mapping-common.h> static inline int dma_supported(struct device *dev, u64 mask) { struct dma_map_ops *dma_ops = get_dma_ops(dev); if (dma_ops->dma_supported == NULL) return 1; return dma_ops->dma_supported(dev, mask); } static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) { if (!dev->dma_mask) return 0; return addr + size - 1 <= *dev->dma_mask; } static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) { struct dma_map_ops *dma_ops = get_dma_ops(dev); debug_dma_mapping_error(dev, dma_addr); if (dma_ops->mapping_error) return dma_ops->mapping_error(dev, dma_addr); return dma_addr == DMA_ERROR_CODE; } static inline void *dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag) { struct dma_map_ops *ops = get_dma_ops(dev); void *ret; ret = ops->alloc(dev, size, dma_handle, flag, NULL); debug_dma_alloc_coherent(dev, size, *dma_handle, ret); return ret; } static inline void dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle) { struct dma_map_ops *dma_ops = get_dma_ops(dev); debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); dma_ops->free(dev, size, cpu_addr, dma_handle, NULL); } #endif /* _ASM_S390_DMA_MAPPING_H */
26.1
80
0.747126
dd91d89154bb27c4d1a73771fba61dcd62c2410c
555
php
PHP
app/config/error_handling.php
cloudzombie/scam
284f608ed36f9719efa55d5d9d2c2754e42dfe9a
[ "MIT" ]
27
2016-05-31T16:15:45.000Z
2020-02-12T22:48:05.000Z
app/config/error_handling.php
cloudzombie/scam
284f608ed36f9719efa55d5d9d2c2754e42dfe9a
[ "MIT" ]
8
2016-06-02T23:08:09.000Z
2020-05-10T16:18:38.000Z
app/config/error_handling.php
cloudzombie/scam
284f608ed36f9719efa55d5d9d2c2754e42dfe9a
[ "MIT" ]
32
2016-05-31T19:22:14.000Z
2020-05-13T13:37:04.000Z
<?php // holds error handling related things /* http://www.phptherightway.com/#php_and_utf8 */ // Tell PHP that we're using UTF-8 strings until the end of the script mb_internal_encoding('UTF-8'); // Tell PHP that we'll be outputting UTF-8 to the browser mb_http_output('UTF-8'); // throw all php errors as exceptions so that our exception handler catches them function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler("exception_error_handler");
34.6875
80
0.751351
d4dd3e3d0cc1b0e9b890ed758faefd3b7919a7de
1,837
sql
SQL
app/SQL/RetentionCompletion/Queries/retention_with_degree_completion_query_for_aggregation.sql
rashmi8105/Synapse
1213821588b459b81f6ca73f7a4be023f5ee28fe
[ "MIT" ]
null
null
null
app/SQL/RetentionCompletion/Queries/retention_with_degree_completion_query_for_aggregation.sql
rashmi8105/Synapse
1213821588b459b81f6ca73f7a4be023f5ee28fe
[ "MIT" ]
null
null
null
app/SQL/RetentionCompletion/Queries/retention_with_degree_completion_query_for_aggregation.sql
rashmi8105/Synapse
1213821588b459b81f6ca73f7a4be023f5ee28fe
[ "MIT" ]
null
null
null
SELECT opsrbtgv.organization_id, opsrbtgv.person_id, opsrbtgv.retention_tracking_year, opsrbtgv.year_id, opsrbtgv.year_name, opsrbtgv.is_enrolled_beginning_year, opsrbtgv.is_enrolled_midyear, (CASE WHEN opsrbtgv.is_degree_completed = 1 THEN 1 WHEN ((SELECT opsr1.year_id FROM org_person_student_retention_view opsr1 WHERE opsr1.person_id = opsrbtgv.person_id AND opsr1.organization_id = opsrbtgv.organization_id AND opsr1.is_degree_completed = 1 AND opsr1.year_id >= opsrbtgv.retention_tracking_year ORDER BY opsr1.year_id LIMIT 1) <= opsrbtgv.year_id) THEN 1 ELSE 0 END) AS is_degree_completed, opsrbtgv.years_from_retention_track AS years_from_retention_track FROM org_person_student_retention_by_tracking_group_view opsrbtgv WHERE retention_tracking_year = :retentionTrackingYear AND organization_id = :organizationId
57.40625
101
0.387044
189e6b18644d971a91fff5e01c20a7b445462bc1
24,545
asm
Assembly
audio/music/suicunebattle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
audio/music/suicunebattle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
audio/music/suicunebattle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
Music_SuicuneBattle: musicheader 3, 1, Music_SuicuneBattle_Ch1 musicheader 1, 2, Music_SuicuneBattle_Ch2 musicheader 1, 3, Music_SuicuneBattle_Ch3 Music_SuicuneBattle_Ch1: tempo 101 volume $77 dutycycle $3 tone $0002 vibrato $12, $15 notetype $c, $b7 octave 4 note A_, 1 note G#, 1 note G_, 4 note E_, 2 note D#, 1 note D_, 1 note C#, 4 octave 3 note A#, 2 note A_, 1 note G#, 1 note G_, 4 note E_, 2 note D#, 1 note D_, 1 note C#, 4 octave 2 note A#, 2 notetype $c, $b2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 2 notetype $c, $b3 octave 4 note F_, 4 note E_, 2 notetype $c, $b2 octave 2 note A_, 4 note A_, 2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 2 notetype $c, $b3 octave 4 note F_, 4 note E_, 2 notetype $c, $b2 octave 2 note A_, 4 note A_, 2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 2 notetype $c, $b3 octave 4 note F_, 4 note E_, 2 notetype $c, $b2 octave 2 note A_, 4 note A_, 2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 4 note A_, 2 note A_, 2 note A_, 2 note A_, 1 note B_, 1 octave 3 note E_, 1 note G#, 1 Music_SuicuneBattle_branch_178bfc: notetype $c, $b4 octave 2 note A_, 2 note B_, 2 note E_, 2 octave 3 note E_, 4 octave 2 note B_, 2 note A_, 2 note E_, 2 note D_, 2 note E_, 2 note D_, 2 note A_, 4 note E_, 2 note D_, 2 note E_, 2 octave 3 note D_, 2 octave 2 note A_, 2 octave 3 note D_, 2 note E_, 2 note A_, 2 note E_, 2 note D_, 2 octave 2 note A_, 2 octave 3 note D_, 2 note E_, 2 note A_, 2 note E_, 2 note D_, 2 octave 2 note A_, 2 octave 3 note D_, 2 note E_, 2 note C_, 2 note D_, 2 octave 2 note G_, 2 octave 3 note G_, 4 note D_, 2 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 note D_, 2 octave 2 note G_, 2 octave 3 note F_, 4 note E_, 2 note D_, 2 note F_, 2 note G_, 2 note E_, 2 octave 2 note G_, 2 octave 3 note E_, 2 note G_, 2 note A_, 6 note G_, 4 note F_, 4 note E_, 2 note D_, 6 octave 2 note A_, 2 note B_, 2 note E_, 2 octave 3 note E_, 4 octave 2 note B_, 2 note A_, 2 note E_, 2 note D_, 2 note E_, 2 note D_, 2 note A_, 4 note E_, 2 note D_, 2 note E_, 2 octave 3 note D_, 2 octave 2 note A_, 2 octave 3 note D_, 2 note E_, 2 note A_, 2 note E_, 2 note D_, 2 octave 2 note A_, 2 octave 3 note D_, 2 note E_, 2 note A_, 2 note E_, 2 note D_, 2 octave 2 note A_, 2 octave 3 note D_, 2 note E_, 2 note C_, 2 note D_, 2 octave 2 note G_, 2 octave 3 note G_, 4 note D_, 2 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 note D_, 2 octave 2 note G_, 2 octave 3 note F_, 4 note E_, 2 note D_, 2 note F_, 2 octave 4 note C_, 2 octave 3 note G_, 2 note C_, 2 note A_, 4 note G_, 2 note F_, 2 note A_, 2 note G_, 2 note A_, 2 note C_, 2 octave 4 note C_, 4 octave 3 note A_, 2 note G_, 2 note C_, 2 notetype $c, $b3 octave 2 note B_, 2 octave 3 note C_, 2 note __, 2 note E_, 4 note D_, 2 note C_, 2 octave 2 note B_, 2 note B_, 2 octave 3 note C_, 2 note E_, 2 note D_, 2 note C_, 2 octave 2 note B_, 2 note A_, 2 note B_, 2 octave 3 note C_, 2 octave 2 note G_, 2 note __, 2 notetype $c, $b6 octave 3 note G_, 10 notetype $c, $b3 note C_, 2 octave 2 note G_, 2 note __, 2 notetype $c, $b7 octave 3 note G_, 10 notetype $c, $b3 octave 2 note B_, 2 octave 3 note C_, 2 note __, 2 note E_, 4 note D_, 2 note C_, 2 octave 2 note B_, 2 note B_, 2 octave 3 note C_, 2 note E_, 2 note D_, 2 note C_, 2 octave 2 note B_, 2 note A_, 2 note B_, 2 octave 3 note G_, 2 note C_, 2 octave 4 note C_, 2 octave 3 note G_, 2 note F#, 2 octave 2 note B_, 2 octave 3 note B_, 2 note F#, 2 note E_, 2 octave 2 note A_, 2 octave 3 note A_, 2 note E_, 2 note C_, 2 note G_, 2 octave 4 note C_, 2 octave 3 note G_, 2 notetype $c, $b2 octave 2 note B_, 2 note B_, 6 note B_, 2 note B_, 6 note B_, 2 note B_, 6 note B_, 2 notetype $c, $b4 octave 3 note C_, 6 notetype $c, $b2 octave 2 note B_, 2 note B_, 2 notetype $c, $b5 octave 1 note F#, 4 notetype $c, $b2 octave 2 note B_, 2 note B_, 2 notetype $c, $b5 octave 1 note F#, 4 notetype $c, $b2 octave 2 note B_, 2 note B_, 2 notetype $c, $b5 octave 1 note F#, 4 notetype $c, $b2 octave 2 note B_, 2 octave 3 note C_, 2 octave 2 note B_, 1 octave 3 note F#, 1 note A_, 1 octave 4 note C_, 1 notetype $c, $b2 octave 3 note B_, 2 note B_, 2 notetype $c, $b5 octave 1 note F#, 4 notetype $c, $b2 octave 3 note B_, 2 note B_, 2 notetype $c, $b5 octave 1 note F#, 4 notetype $c, $b2 octave 3 note B_, 2 note B_, 2 notetype $c, $b5 octave 1 note F#, 4 notetype $c, $b2 octave 3 note B_, 2 notetype $c, $b5 octave 4 note C_, 6 notetype $c, $b2 octave 3 note B_, 2 note B_, 2 notetype $c, $b4 octave 1 note F#, 4 notetype $c, $b2 octave 3 note B_, 2 note B_, 2 notetype $c, $b4 octave 1 note F#, 4 notetype $c, $b2 octave 3 note B_, 2 note B_, 2 notetype $c, $b4 octave 1 note F#, 4 notetype $c, $b2 octave 3 note B_, 2 notetype $c, $b5 octave 4 note C_, 6 notetype $c, $b7 octave 2 note B_, 8 note E_, 8 octave 3 note C_, 8 octave 2 note A_, 8 note B_, 8 note E_, 8 note F_, 10 note C_, 2 note D_, 2 note C_, 2 notetype $c, $a0 octave 1 note F#, 8 note B_, 8 note G_, 8 octave 2 note C_, 8 octave 1 note B_, 8 note E_, 8 note F_, 8 notetype $c, $a7 note F_, 8 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 notetype $c, $b2 note __, 4 octave 3 note D_, 8 note D_, 8 note D_, 8 note D_, 8 note D_, 8 note D_, 8 note D_, 8 note D_, 8 note F_, 8 note F_, 8 note F_, 8 note F_, 8 note F_, 8 note F_, 8 note F_, 8 note F_, 4 note E_, 8 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 note __, 16 vibrato $8, $24 dutycycle $2 notetype $c, $96 octave 4 note E_, 6 note F#, 6 octave 3 note A_, 4 octave 4 note A_, 16 vibrato $12, $15 dutycycle $3 loopchannel 0, Music_SuicuneBattle_branch_178bfc Music_SuicuneBattle_Ch2: dutycycle $3 vibrato $14, $34 tone $0001 notetype $c, $c3 octave 5 note E_, 1 octave 4 note E_, 1 note A_, 2 octave 5 note E_, 1 octave 4 note E_, 1 note A_, 2 octave 5 note E_, 1 octave 4 note E_, 1 note A_, 2 octave 5 note E_, 1 octave 4 note E_, 1 note A_, 2 octave 5 note E_, 1 octave 4 note E_, 1 note A_, 2 octave 5 note E_, 1 octave 4 note E_, 1 note A_, 2 octave 5 note E_, 1 octave 4 note E_, 1 note A_, 2 octave 5 note E_, 1 octave 4 note E_, 1 note A_, 6 notetype $c, $c2 octave 2 note E_, 8 note E_, 8 note E_, 8 notetype $c, $c3 octave 4 note A#, 4 notetype $c, $c2 note A_, 4 octave 2 note E_, 8 note E_, 8 note E_, 8 notetype $c, $c3 octave 4 note A#, 4 notetype $c, $c2 note A_, 4 octave 4 note E_, 8 note E_, 8 note E_, 8 notetype $c, $c3 octave 4 note A#, 4 notetype $c, $c2 note A_, 4 octave 4 note E_, 8 note E_, 8 note E_, 8 note E_, 4 Music_SuicuneBattle_branch_178e4e: notetype $c, $c7 octave 3 note A_, 8 note B_, 8 note D_, 8 notetype $c, $b0 octave 4 note D_, 8 notetype $c, $b6 note D_, 8 vibrato $10, $24 dutycycle $2 notetype $c, $a4 octave 5 note A_, 6 note B_, 6 note D_, 4 octave 6 note D_, 8 vibrato $14, $34 dutycycle $3 notetype $c, $c7 octave 4 note C_, 8 note D_, 8 octave 3 note G_, 8 octave 4 note F_, 8 notetype $c, $b0 note E_, 10 notetype $c, $b7 note E_, 6 notetype $c, $a5 octave 2 note G_, 4 note A_, 4 note G_, 4 note B_, 4 notetype $c, $c7 octave 3 note A_, 8 note B_, 8 note D_, 8 notetype $c, $c7 octave 4 note D_, 8 notetype $c, $4c note D_, 4 notetype $c, $c6 note D_, 4 notetype $c, $a4 vibrato $8, $24 dutycycle $2 octave 5 note A_, 6 note B_, 6 note D_, 4 octave 6 note D_, 8 vibrato $14, $34 notetype $c, $c7 dutycycle $3 octave 4 note C_, 8 note D_, 8 octave 3 note G_, 8 octave 4 note F_, 8 notetype $c, $4c note E_, 8 notetype $c, $c7 note E_, 8 notetype $c, $c6 note C_, 8 note G_, 8 notetype $c, $c2 octave 3 note F#, 2 note G_, 2 note __, 2 note B_, 4 note A_, 2 note G_, 2 note F#, 2 note F#, 2 note G_, 2 note B_, 2 note A_, 2 note G_, 2 note F#, 2 note E_, 2 note F#, 2 note G_, 2 note C_, 2 note __, 2 notetype $c, $c7 octave 4 note C_, 10 notetype $c, $c3 octave 4 note G_, 2 note C_, 2 note __, 2 notetype $c, $c7 octave 5 note C_, 10 notetype $c, $c3 octave 4 note F#, 2 note G_, 2 note __, 2 note B_, 4 note A_, 2 note G_, 2 note F#, 2 note F#, 2 note G_, 2 note B_, 2 note A_, 2 note G_, 2 note F#, 2 note E_, 2 note F#, 2 notetype $c, $c7 note G_, 8 note F#, 8 note E_, 8 note G_, 8 notetype $c, $c2 octave 3 note F#, 2 note F#, 6 note F#, 2 note F#, 6 note F#, 2 note F#, 6 note F#, 2 notetype $c, $b7 note G_, 6 notetype $c, $c2 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 3 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 3 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 3 note F#, 2 notetype $c, $c7 note G_, 6 notetype $c, $c2 octave 4 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 4 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 4 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 4 note F#, 2 notetype $c, $c7 note G_, 6 notetype $c, $c2 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 4 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 4 note F#, 2 note F#, 2 notetype $c, $c7 octave 1 note B_, 4 notetype $c, $c2 octave 4 note F#, 2 notetype $c, $c7 note G_, 6 notetype $c, $b0 octave 3 note F#, 8 octave 2 note B_, 8 octave 3 note G_, 8 note E_, 8 note F#, 8 octave 2 note B_, 8 octave 3 note C_, 8 notetype $c, $b7 octave 3 note C_, 8 notetype $c, $c7 octave 1 note B_, 8 octave 2 note E_, 8 note C_, 8 note F_, 8 note E_, 8 octave 1 note B_, 8 notetype $c, $b0 octave 2 note C_, 10 notetype $c, $b7 octave 2 note C_, 6 notetype $c, $c3 octave 1 note B_, 2 octave 2 note E_, 2 octave 1 note F_, 2 octave 2 note F_, 4 note E_, 2 octave 1 note B_, 2 note F_, 2 note B_, 2 octave 2 note E_, 2 note F_, 2 note E_, 2 octave 1 note B_, 2 note F_, 2 note B_, 2 octave 2 note E_, 2 octave 1 note B_, 2 octave 2 note E_, 2 octave 1 note F_, 2 octave 2 note F_, 4 note E_, 2 octave 1 note B_, 2 note F_, 2 note B_, 2 octave 2 note E_, 2 note F_, 2 note E_, 2 octave 1 note B_, 2 note F_, 2 note B_, 2 octave 2 note E_, 2 note B_, 2 octave 3 note E_, 2 octave 2 note F_, 2 octave 3 note F_, 4 note E_, 2 octave 2 note B_, 2 note F_, 2 note B_, 2 octave 3 note E_, 2 note F_, 2 note E_, 2 octave 2 note B_, 2 note F_, 2 note B_, 2 octave 3 note E_, 2 octave 2 note B_, 2 octave 3 note E_, 2 octave 2 note F_, 2 octave 3 note F_, 4 note E_, 2 octave 2 note B_, 2 note F_, 2 note B_, 2 octave 3 note E_, 2 note F_, 2 note E_, 2 octave 2 note B_, 2 note F_, 2 note B_, 2 octave 3 note E_, 2 note D_, 2 note G_, 2 octave 2 note G#, 2 octave 3 note G#, 4 note G_, 2 note D_, 2 octave 2 note G#, 2 octave 3 note D_, 2 note G_, 2 note G#, 2 note G_, 2 note D_, 2 octave 2 note G#, 2 octave 3 note D_, 2 note G_, 2 note D_, 2 note G_, 2 octave 2 note G#, 2 octave 3 note G#, 4 note G_, 2 note D_, 2 octave 2 note G#, 2 octave 3 note D_, 2 note G_, 2 note G#, 2 note G_, 2 note D_, 2 octave 2 note G#, 2 octave 3 note D_, 2 note G_, 2 note B_, 2 octave 4 note E_, 2 octave 3 note F_, 2 octave 4 note F_, 4 note E_, 2 octave 3 note B_, 2 note F_, 2 note B_, 2 octave 4 note E_, 2 note F_, 2 note E_, 2 octave 3 note B_, 2 note F_, 2 note B_, 2 octave 4 note E_, 2 octave 3 note B_, 2 octave 4 note E_, 2 octave 3 note F_, 2 octave 4 note F_, 4 note E_, 2 octave 3 note B_, 2 note F_, 2 note B_, 2 octave 4 note E_, 2 note F_, 2 note E_, 2 octave 3 note B_, 2 note F_, 2 note B_, 2 octave 4 note E_, 2 note D_, 2 note G_, 2 octave 3 note G#, 2 octave 4 note G#, 4 note G_, 2 note D_, 2 octave 3 note G#, 2 octave 4 note D_, 2 note G_, 2 note G#, 2 note G_, 2 note D_, 2 octave 3 note G#, 2 octave 4 note D_, 2 note G_, 2 note D_, 2 note G_, 2 octave 3 note G#, 2 octave 4 note G#, 4 note G_, 2 note D_, 2 octave 3 note G#, 2 octave 4 note D_, 2 note G_, 2 note G#, 2 note G_, 2 note D_, 2 octave 3 note G#, 2 octave 4 note D_, 2 note G_, 2 notetype $c, $c2 note A_, 8 notetype $c, $c3 octave 2 note A_, 2 note B_, 2 note E_, 2 octave 3 note E_, 4 octave 2 note B_, 2 note A_, 2 note E_, 2 note A_, 2 note B_, 2 octave 3 note E_, 2 octave 2 note B_, 2 note A_, 2 note E_, 2 note A_, 2 note B_, 2 note A_, 2 note B_, 2 note E_, 2 octave 3 note E_, 4 octave 2 note B_, 2 note A_, 2 note E_, 2 note A_, 2 note B_, 2 octave 3 note E_, 2 octave 2 note B_, 2 note A_, 2 note E_, 2 note A_, 2 note B_, 2 octave 3 note C_, 2 note D_, 2 octave 2 note G_, 2 octave 3 note G_, 4 note D_, 2 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 note D_, 2 note G_, 2 note D_, 2 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 note D_, 2 note C_, 2 note D_, 2 octave 2 note G_, 2 octave 3 note G_, 4 note D_, 2 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 note D_, 2 note G_, 2 note D_, 2 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 note D_, 2 octave 2 note A_, 2 note B_, 2 note E_, 2 octave 3 note E_, 4 octave 2 note B_, 2 note A_, 2 note E_, 2 note A_, 2 note B_, 2 octave 3 note E_, 2 octave 2 note B_, 2 note A_, 2 note E_, 2 note A_, 2 note B_, 2 note A_, 2 note B_, 2 note E_, 2 octave 3 note E_, 4 octave 2 note B_, 2 note A_, 2 note E_, 2 note A_, 2 note B_, 2 octave 3 note E_, 2 octave 2 note B_, 2 note A_, 2 note E_, 2 note A_, 2 note B_, 2 loopchannel 0, Music_SuicuneBattle_branch_178e4e Music_SuicuneBattle_Ch3: notetype $c, $18 note __, 16 note __, 4 octave 2 note A_, 4 note D_, 2 note E_, 2 note A#, 2 note G_, 2 note D_, 2 note E_, 2 octave 1 note A_, 2 octave 2 note A_, 4 note E_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note E_, 2 note A_, 2 note E_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note E_, 2 note D_, 2 note E_, 2 octave 1 note A_, 2 octave 2 note A_, 4 note E_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note E_, 2 note A_, 4 note E_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note E_, 2 note D_, 2 note E_, 2 octave 1 note A_, 2 octave 2 note A_, 4 note E_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note E_, 2 note A_, 2 note E_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note E_, 2 note D_, 2 note E_, 2 octave 1 note A_, 2 octave 2 note A_, 4 note E_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note E_, 2 note A_, 4 note E_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note E_, 2 notetype $c, $16 Music_SuicuneBattle_branch_179182: octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note A_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note A_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note A_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note A_, 2 note D_, 2 note A_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 octave 3 note C_, 4 octave 2 note G_, 2 note F_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note A_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note A_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note A_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note A_, 2 note D_, 2 note A_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 octave 3 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 octave 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 note C_, 2 octave 3 note C_, 4 octave 2 note G_, 2 note C_, 2 note G_, 2 octave 1 note B_, 2 octave 2 note F#, 2 note B_, 2 note F#, 2 octave 1 note B_, 2 octave 2 note F#, 2 octave 1 note B_, 2 octave 2 note F#, 2 octave 1 note B_, 2 octave 2 note F#, 2 note B_, 2 note F#, 2 octave 1 note B_, 2 octave 2 note F#, 2 octave 1 note B_, 2 octave 2 note F#, 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note G_, 4 note C_, 2 octave 3 note C_, 2 octave 2 note G_, 2 note D_, 2 note A_, 2 octave 3 note D_, 2 octave 2 note A_, 2 note D_, 2 note A_, 2 note D_, 2 note A_, 2 note D_, 2 note A_, 2 octave 3 note D_, 2 octave 2 note A_, 2 note D_, 2 note A_, 2 note D_, 2 note A_, 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note G_, 2 octave 1 note B_, 2 octave 2 note F#, 2 octave 1 note B_, 2 octave 2 note F#, 2 octave 1 note A_, 2 octave 2 note E_, 2 note A_, 2 note E_, 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 note F#, 2 note F#, 2 note __, 4 note F#, 2 note F#, 2 note __, 4 note F#, 2 note F#, 2 note __, 4 note F#, 2 note G_, 6 note F#, 2 note F#, 2 note __, 4 note F#, 2 note F#, 2 note __, 4 note F#, 2 note F#, 2 note __, 4 note F#, 2 note G_, 6 note B_, 2 note B_, 2 octave 1 note B_, 4 octave 2 note B_, 2 note B_, 2 octave 1 note B_, 4 octave 2 note B_, 2 note B_, 2 octave 1 note B_, 4 octave 2 note B_, 2 octave 3 note C_, 6 note F#, 2 note F#, 2 octave 1 note B_, 4 octave 3 note F#, 2 note F#, 2 octave 1 note B_, 4 octave 3 note F#, 2 note F#, 2 octave 1 note B_, 4 octave 3 note F#, 2 note G_, 6 octave 2 note F#, 8 octave 1 note B_, 8 octave 2 note G_, 8 note E_, 8 note F#, 8 octave 1 note B_, 8 octave 2 note C_, 10 note C_, 2 note D_, 2 note C_, 2 octave 1 note B_, 8 octave 2 note E_, 8 note C_, 8 note F_, 8 note E_, 8 octave 1 note B_, 8 octave 2 note C_, 16 note __, 4 octave 1 note B_, 2 note __, 6 note B_, 2 note __, 2 note __, 4 note B_, 2 note __, 6 note B_, 2 note __, 2 note __, 4 note B_, 2 note __, 6 note B_, 2 note __, 2 note __, 4 note B_, 2 note __, 6 note B_, 2 note __, 2 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 note F_, 2 note B_, 2 note F_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note D_, 2 note G#, 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note D_, 2 note G#, 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note D_, 2 note G#, 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note G#, 2 octave 3 note D_, 2 octave 2 note G#, 2 note D_, 2 note G#, 2 note B_, 2 note F_, 2 octave 1 note B_, 2 octave 2 note B_, 2 note F_, 2 octave 1 note B_, 2 octave 2 note B_, 2 note F_, 2 note B_, 2 note F_, 2 octave 1 note B_, 2 octave 2 note B_, 2 note F_, 2 octave 1 note B_, 2 octave 2 note B_, 2 note F_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 note B_, 2 octave 1 note B_, 2 octave 2 note F_, 2 octave 3 note D_, 2 octave 2 note G#, 2 note D_, 2 octave 3 note D_, 2 octave 2 note G#, 2 note D_, 2 octave 3 note D_, 2 octave 2 note G#, 2 octave 3 note D_, 2 octave 2 note G#, 2 note D_, 2 octave 3 note D_, 2 octave 2 note G#, 2 note D_, 2 octave 3 note D_, 2 octave 2 note G#, 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note D_, 2 note G#, 2 note D_, 2 note G#, 2 octave 3 note D_, 2 octave 2 note G#, 2 octave 3 note D_, 2 octave 2 note G#, 2 note D_, 2 note G#, 2 note A_, 4 note __, 4 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note A_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note A_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note A_, 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 octave 1 note A_, 2 octave 2 note D_, 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 octave 3 note C_, 2 octave 2 note C_, 2 note G_, 2 octave 1 note A_, 2 octave 2 note E_, 2 note A_, 2 octave 1 note A_, 2 octave 2 note E_, 2 note A_, 2 octave 1 note A_, 2 octave 2 note E_, 2 octave 1 note A_, 2 octave 2 note E_, 2 note A_, 2 octave 1 note A_, 2 octave 2 note E_, 2 note A_, 2 octave 1 note A_, 2 octave 2 note E_, 2 octave 1 note A_, 2 octave 2 note E_, 2 note A_, 2 octave 1 note A_, 2 octave 2 note E_, 2 note A_, 2 octave 1 note A_, 2 octave 2 note E_, 2 octave 1 note A_, 2 octave 2 note E_, 2 octave 1 note A_, 2 octave 2 note A_, 4 note E_, 2 note D_, 2 note E_, 2 loopchannel 0, Music_SuicuneBattle_branch_179182
11.932426
49
0.615115
e512cf3f13dbf9f4c83284fdae3b161771ba3e4a
98,415
html
HTML
Academia Website UI/index.html
Dezenix/frontend-html-css-js
e68c6860b4b5f43983a5d60ac94641e29bcff51d
[ "MIT" ]
25
2021-11-10T06:58:55.000Z
2022-03-02T05:46:43.000Z
Academia Website UI/index.html
Dezenix/frontend-html-css-js
e68c6860b4b5f43983a5d60ac94641e29bcff51d
[ "MIT" ]
109
2021-12-07T02:59:22.000Z
2022-03-27T07:47:47.000Z
Academia Website UI/index.html
Dezenix/frontend-html-css-js
e68c6860b4b5f43983a5d60ac94641e29bcff51d
[ "MIT" ]
59
2021-11-02T16:05:50.000Z
2022-03-22T15:58:08.000Z
<html lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" class="wf-loading"><head prefix="og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# academia: https://ogp.me/ns/fb/academia#"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta rel="search" type="application/opensearchdescription+xml" href="/open_search.xml" title="Academia.edu"> <title>Academia.edu - Share research</title> <link href="https://a.academia-assets.com/images/favicons/favicon-production.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"> <link rel="apple-touch-icon" sizes="57x57" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="https://a.academia-assets.com/images/favicons/apple-touch-icon-180x180.png"> <link rel="icon" type="image/png" href="https://a.academia-assets.com/images/favicons/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="https://a.academia-assets.com/images/favicons/favicon-194x194.png" sizes="194x194"> <link rel="icon" type="image/png" href="https://a.academia-assets.com/images/favicons/favicon-96x96.png" sizes="96x96"> <link rel="icon" type="image/png" href="https://a.academia-assets.com/images/favicons/android-chrome-192x192.png" sizes="192x192"> <link rel="icon" type="image/png" href="https://a.academia-assets.com/images/favicons/favicon-16x16.png" sizes="16x16"> <link rel="manifest" href="https://a.academia-assets.com/images/favicons/manifest.json"> <meta name="msapplication-TileColor" content="#2b5797"> <meta name="msapplication-TileImage" content="//a.academia-assets.com/images/favicons/mstile-144x144.png"> <meta name="theme-color" content="#ffffff"> <script src="./Academia.edu - Share research_files/cb=gapi.loaded_1" async=""></script><script type="text/javascript" async="" src="./Academia.edu - Share research_files/f.txt"></script><script src="./Academia.edu - Share research_files/cb=gapi.loaded_0" async=""></script><script src="./Academia.edu - Share research_files/sdk.js.download" async="" crossorigin="anonymous"></script><script async="" src="./Academia.edu - Share research_files/beacon.js.download"></script><script id="google-jssdk" async="" src="./Academia.edu - Share research_files/api_client.js.download" gapi_processed="true"></script><script id="facebook-jssdk" src="./Academia.edu - Share research_files/sdk.js(1).download"></script><script async="" src="./Academia.edu - Share research_files/gtm.js.download"></script><script async="" src="./Academia.edu - Share research_files/analytics.js.download"></script><script> window.performance && window.performance.measure && window.performance.measure("Time To First Byte", "requestStart", "responseStart"); </script> <script> (function() { if (!window.URLSearchParams || !window.history || !window.history.replaceState) { return; } var searchParams = new URLSearchParams(window.location.search); var paramsToDelete = [ 'fs', 'sm', 'swp', 'iid', 'nbs', 'rcc', // related content category 'rcpos', // related content carousel position 'rcpg', // related carousel page 'rchid', // related content hit id ]; if (paramsToDelete.every((key) => !searchParams.get(key))) { return; } paramsToDelete.forEach((key) => { searchParams.delete(key); }); var cleanUrl = new URL(window.location.href); cleanUrl.search = searchParams.toString(); history.replaceState({}, document.title, cleanUrl); })(); </script> <script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', { trackingId: 'UA-2111171-1', cookieDomain: 'academia.edu', }); ga('set', 'dimension1', "home"); ga('set', 'dimension2', "show"); ga('set', 'dimension6', 'home#show'); ga('set', 'dimension3', 'false'); ga('set', 'dimension5', 'unknown'); ga('send', 'pageview'); </script> <script type="text/javascript"> window.sendUserTiming = function(timingName) { if (!(window.performance && window.performance.measure)) return; var entries = window.performance.getEntriesByName(timingName, "measure"); if (entries.length !== 1) return; var timingValue = Math.round(entries[0].duration); ga('send', { hitType: 'timing', timingCategory: 'User-centric', timingVar: timingName, timingValue: timingValue, }); if (window.newsFeedStats) { // e.g. 'Time To Interactive' -> 'tti' var shortTimingName = timingName.toLowerCase().split(' ').map(function (word) { return word[0]; }).join(''); window.newsFeedStats[shortTimingName] = timingValue; } }; window.sendUserTiming("Time To First Byte"); </script> <meta name="csrf-param" content="authenticity_token"> <meta name="csrf-token" content="yfL4oGLrwdEF8a/RW1J43tddYAaEkJEBWJE/NMWl8xClHUF6yheWU/F91yR+kBEjvIIQYmcUJptyXIW6Lj0C4Q=="> <link rel="stylesheet" media="all" href="./Academia.edu - Share research_files/landing-7e0d973ae38f545d569559e15bed8ff08ed3a270f6988506ea6d4365a0ecf3f6.css"> <meta name="description" content="Academia.edu is a place to share and follow research."> <meta name="google-site-verification" content="bKJMBZA7E43xhDOopFZkssMMkBRjvYERV-NaN4R6mrs"> <script> var $controller_name = 'home'; var $action_name = "show"; var $rails_env = 'production'; var $app_rev = '522d9a89b02a7120d3cd914bdaae8e854af68a16'; var $domain = 'academia.edu'; var $app_host = "academia.edu"; var $asset_host = "academia-assets.com"; var $start_time = new Date().getTime(); var $recaptcha_key = "6LdxlRMTAAAAADnu_zyLhLg0YF9uACwz78shpjJB"; var $recaptcha_invisible_key = "6Lf3KHUUAAAAACggoMpmGJdQDtiyrjVlvGJ6BbAj"; </script> <script> window.Aedu = { hit_data: null }; window.Aedu.SiteStats = {"premium_universities_count":17014,"monthly_visitors":"95 million","monthly_visitor_count":95986734,"monthly_visitor_count_in_millions":95,"user_count":183836036,"paper_count":36526928,"paper_count_in_millions":36,"page_count":432000000,"page_count_in_millions":432,"pdf_count":16500000,"pdf_count_in_millions":16}; window.Aedu.serverRenderTime = new Date(1654076054000); window.Aedu.isUsingCssV1 = false; window.Aedu.enableLocalization = true; window.Aedu.activateFullstory = false; window.Aedu.serviceAvailability = { status: {"redshift":"on","attention_db":"on","bibliography_db":"on","contacts_db":"on","email_db":"on","news_db":"on","notifications_db":"on","mentions_db":"on","errors_redis":"on"}, serviceEnabled: function(service) { return this.status[service] === "on"; }, readEnabled: function(service) { return this.serviceEnabled(service) || this.status[service] === "read_only"; }, }; </script> <!--[if lt IE 9]> <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script> <![endif]--> <link rel="stylesheet" media="all" href="./Academia.edu - Share research_files/shared_minimal-0c5f47ce3c271ec89150ffd667c983d789b4b3c4c507aebecd34972bf114af7e.css"> <script src="./Academia.edu - Share research_files/runtime-bundle-85e165765ce1adf0cec7ea78829eef6dcd87b26bc4da5c258ced5b5e731c7a2b.js.download"></script> <script src="./Academia.edu - Share research_files/webpack_libraries_and_infrequently_changed.wjs-bundle-eef024d0cf71e8265d699e176b5cfa125700e026f93a1a589e5bc8ec39e73840.js.download"></script><style></style> <script src="./Academia.edu - Share research_files/core_webpack.wjs-bundle-c1e9aad0c74b5d24bc2dc9db0ed6e337bbc504561628cab354b84d77f3dc2cfd.js.download"></script><style type="text/css">.AcademiaIcon-Link-cls1-1jbb{/*!*/}.AcademiaIcon-Link-cls2-3W--{margin-right:24px;cursor:pointer;height:24px;width:24px}@media(max-width: 625px){.AcademiaIcon-Link-cls2-3W--{margin-right:16px}}</style><style type="text/css">.AcademiaIcon-Image-cls1-JtX_{/*!*/}.AcademiaIcon-Image-cls2-2N2G{}.AcademiaIcon-Image-cls2-2N2G.AcademiaIcon-Image-darkMode-1ic2{filter:brightness(0) saturate(100%) invert(99%) sepia(0%) saturate(0%) hue-rotate(321deg) brightness(102%) contrast(102%)}</style><style type="text/css">.AutoCompleteResultRow-Row-cls1-3Gv2{/*!*/}.AutoCompleteResultRow-Row-cls2-2MnK{border-bottom:1px solid rgba(0,0,0,.15);display:flex;justify-content:left;align-items:center;padding:7px;cursor:pointer;width:100%}.AutoCompleteResultRow-Row-cls2-2MnK:hover,.AutoCompleteResultRow-Row-cls2-2MnK:focus,.AutoCompleteResultRow-Row-cls2-2MnK:active{color:inherit;text-decoration:none}</style><style type="text/css">.AutoCompleteResultRow-ResultIcon-cls1-21sG{/*!*/}.AutoCompleteResultRow-ResultIcon-cls2-1XCF{border-radius:3px;width:30px;height:30px;display:flex;justify-content:center;align-items:center;flex-shrink:0;margin-right:10px;background-color:#ccc;color:#fff}.AutoCompleteResultRow-ResultIcon-cls2-1XCF.AutoCompleteResultRow-ResultIcon-blue-2pNf{background-color:#0954d3}</style><style type="text/css">.AutoCompleteResultRow-EntityContent-cls1-agzx{/*!*/}.AutoCompleteResultRow-EntityContent-cls2-2iae{display:flex;flex-direction:column;font-size:12px;width:calc(100% - 40px);padding-right:10px}</style><style type="text/css">.AutoCompleteResultRow-Name-cls1-1Njv{/*!*/}.AutoCompleteResultRow-Name-cls2-2pnY{font-weight:700;line-height:1.1;color:#000;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}</style><style type="text/css">.AutoCompleteResultRow-Description-cls1-2TNz{/*!*/}.AutoCompleteResultRow-Description-cls2-3HeE{font-weight:300;line-height:20px;color:#ccc;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}</style><style type="text/css">.AutoCompleteResultRow-ResultImage-cls1-3xto{/*!*/}.AutoCompleteResultRow-ResultImage-cls2-2_t6{border-radius:3px;width:30px;height:30px;margin-right:10px}</style><style type="text/css">.AutoCompleteResults-Container-cls1-3WqY{/*!*/}.AutoCompleteResults-Container-cls2-iF1I{display:none;position:absolute;z-index:60;top:48px;left:0px;flex-direction:column;background-color:transparent;width:100%;font-family:"Roboto",Helvetica,Arial,sans-serif}.AutoCompleteResults-Container-cls2-iF1I.AutoCompleteResults-Container-show-9YxL{display:flex}</style><style type="text/css">.AutoCompleteResults-ContentWrapper-cls1-vaCp{/*!*/}.AutoCompleteResults-ContentWrapper-cls2-2BlC{background-color:#fff;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 1px 8px rgba(0,0,0,.15);position:relative}.AutoCompleteResults-ContentWrapper-cls2-2BlC:before{position:absolute;content:"";left:50%;top:-10px;border-right:9px solid transparent;border-bottom:9px solid rgba(0,0,0,.15);border-left:9px solid transparent}.AutoCompleteResults-ContentWrapper-cls2-2BlC:after{position:absolute;top:-9px;left:50%;content:"";border-right:9px solid transparent;border-bottom:9px solid #fff;border-left:9px solid transparent}</style><style type="text/css">.AutoCompleteResults-ScrollableContent-cls1-1aRZ{/*!*/}.AutoCompleteResults-ScrollableContent-cls2-ccJb{display:flex;flex-direction:column;max-height:200px;overflow:scroll}</style><style type="text/css">.AutoCompleteResults-LoadingContainer-cls1-Ybh-{/*!*/}.AutoCompleteResults-LoadingContainer-cls2-2pX8{display:flex;flex-direction:column;justify-content:center;align-items:center}</style><style type="text/css">.AutoCompleteResults-Row-cls1-ttwC{/*!*/}.AutoCompleteResults-Row-cls2-1Gbh{display:flex;width:100%;justify-content:center;align-items:center;flex-direction:row;padding:12px 0px;border-top:1px solid rgba(0,0,0,.15)}</style><style type="text/css">.AutoCompleteResults-ZeroStateContainer-cls1-e9WX{/*!*/}.AutoCompleteResults-ZeroStateContainer-cls2-1O_k{display:flex;justify-content:center;align-items:center;padding:30px;color:#333;font-size:14px;text-align:center}</style><style type="text/css">.AutoCompleteResults-ViewAllButton-cls1-1Cul{/*!*/}.AutoCompleteResults-ViewAllButton-cls2-2k3Q{font-weight:700;font-size:13px;padding:12px 0px;width:100%;color:#428bca;background-color:inherit;border-left:none;border-right:none;border-bottom:none;border-top:1px solid rgba(0,0,0,.15);border-bottom-right-radius:4px;border-bottom-left-radius:4px;text-transform:uppercase}</style><style type="text/css">.AutoCompleteResults-Spinner-cls1-1q4M{/*!*/}.AutoCompleteResults-Spinner-cls2-2P0K{margin-right:8px}</style><style type="text/css">.SearchUpsell-Title-cls1-22Ba{/*!*/}.SearchUpsell-Title-cls2-2gW7{text-transform:uppercase;letter-spacing:.5px;color:#999;margin-bottom:26px}</style><style type="text/css">.SearchUpsell-Body-cls1-1g-T{/*!*/}.SearchUpsell-Body-cls2-3gKe{letter-spacing:normal;line-height:1.3em}</style><style type="text/css">.SearchUpsell-CtaButton-cls1-r6sW{/*!*/}.SearchUpsell-CtaButton-cls2-3iC4{background-color:#0954d3;color:#fff;height:36px;letter-spacing:1.15px;border:1px solid rgba(0,0,0,.15);font-weight:bold;border-radius:3px;text-align:center;margin-top:30px;padding:0 20px;text-transform:uppercase;align-self:center}.SearchUpsell-CtaButton-cls2-3iC4:hover,.SearchUpsell-CtaButton-cls2-3iC4:focus,.SearchUpsell-CtaButton-cls2-3iC4:active{color:#fff;text-decoration:none}</style><style type="text/css">.SearchBar-SearchInput-cls1-2dOB{/*!*/}.SearchBar-SearchInput-cls2-16dU{border:none;background-color:#eee;border-radius:3px;color:#222;width:100%;padding:6px 40px 6px 34px;height:34px}.SearchBar-SearchInput-cls2-16dU::-moz-placeholder{color:#999;opacity:1}.SearchBar-SearchInput-cls2-16dU::placeholder{color:#999;opacity:1}.SearchBar-SearchInput-cls2-16dU::-ms-input-placeholder{color:#999}.SearchBar-SearchInput-cls2-16dU:focus{outline:0}.SearchBar-SearchInput-cls2-16dU.SearchBar-SearchInput-darkMode-2v2l{background-color:#fff}</style><style type="text/css">.SearchBar-SearchContainer-cls1-35SB{/*!*/}.SearchBar-SearchContainer-cls2-3O77{width:100%;position:relative;font-size:16px;line-height:19px;margin-right:12px}</style><style type="text/css">.SearchBar-SearchIcon-cls1-2M6-{/*!*/}.SearchBar-SearchIcon-cls2-1mpM{filter:brightness(0) saturate(100%) invert(56%) sepia(0%) saturate(49%) hue-rotate(173deg) brightness(105%) contrast(115%);font-weight:700;position:absolute;left:10px;top:10px;width:14px}.SearchBar-SearchIcon-cls2-1mpM.SearchBar-SearchIcon-darkMode-58WW{filter:brightness(0) saturate(100%) invert(23%) sepia(91%) saturate(0%) hue-rotate(239deg) brightness(90%) contrast(93%)}</style><style type="text/css">.SearchBar-SearchUpsellWrapper-cls1-DztZ{/*!*/}.SearchBar-SearchUpsellWrapper-cls2-1W0I{letter-spacing:.5px;position:absolute;top:6px;right:6px;font-size:10px;line-height:2;padding:1px 8px 0;border-radius:3px;background-color:transparent;transition:all .25s ease;width:28px}.SearchBar-SearchUpsellWrapper-cls2-1W0I:hover{background-color:#0954d3}.SearchBar-SearchUpsellWrapper-cls2-1W0I:hover img{filter:invert(93%) sepia(94%) saturate(0%) hue-rotate(248deg) brightness(106%) contrast(106%)}</style><style type="text/css">.SearchBar-SearchUpsellIcon-cls1-3WEp{/*!*/}.SearchBar-SearchUpsellIcon-cls2-24c4{width:12px;filter:invert(37%) sepia(100%) saturate(7500%) hue-rotate(215deg) brightness(91%) contrast(93%)}</style><style type="text/css">.SearchBar-DropdownContainer-cls1-2ait{/*!*/}.SearchBar-DropdownContainer-cls2-1uOa{position:relative}</style><style type="text/css">.SearchPopup-Container-cls1-1h_e{/*!*/}.SearchPopup-Container-cls2-238W{background-color:#0954d3;border-radius:6px;box-shadow:0px 2px 6px rgba(0,0,0,.39628);color:#fff;display:none;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;letter-spacing:.02em;position:absolute;top:39px;left:-48px}.SearchPopup-Container-cls2-238W.SearchPopup-Container-show-wOD3{display:block}.SearchPopup-Container-cls2-238W:before{position:absolute;top:-5px;left:50%;content:"";transform:rotate(45deg);width:18px;height:18px;box-shadow:0px 0px 4px 0px rgba(0,0,0,.5)}.SearchPopup-Container-cls2-238W:after{position:absolute;top:-9px;left:50%;content:"";border-right:9px solid transparent;border-bottom:9px solid #0954d3;border-left:9px solid transparent}</style><style type="text/css">.SearchPopup-watcher-2C2X{background-color:inherit;border-radius:6px;display:flex;position:relative;justify-content:space-between;align-items:center;padding:21px 22px 23px}</style><style type="text/css">.ToolsMenu-Header-cls1-3ORa{/*!*/}.ToolsMenu-Header-cls2-mC4z{display:block;margin:24px 12px 12px;padding:12px 0;border-bottom:1px solid #dddfe2;text-transform:uppercase;font-size:16px;font-weight:500}</style><style type="text/css">.ToolsMenu-HighlightList-cls1-1yso{/*!*/}.ToolsMenu-HighlightList-cls2-26NS{list-style:none;padding:0;margin:0}</style><style type="text/css">.ToolsMenu-Description-cls1-2q08{/*!*/}.ToolsMenu-Description-cls2-3i88{margin:0px 12px;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:18px;color:#888}</style><style type="text/css">.ToolsMenu-ButtonishAnchor-cls1-33DB{/*!*/}.ToolsMenu-ButtonishAnchor-cls2-2D7C{color:#000}.ToolsMenu-ButtonishAnchor-cls2-2D7C:hover,.ToolsMenu-ButtonishAnchor-cls2-2D7C:active,.ToolsMenu-ButtonishAnchor-cls2-2D7C:visited{color:#000;text-decoration:none}.ToolsMenu-ButtonishAnchor-cls2-2D7C:hover>*,.ToolsMenu-ButtonishAnchor-cls2-2D7C:hover>*>*,.ToolsMenu-ButtonishAnchor-cls2-2D7C:active>*,.ToolsMenu-ButtonishAnchor-cls2-2D7C:active>*>*,.ToolsMenu-ButtonishAnchor-cls2-2D7C:visited>*,.ToolsMenu-ButtonishAnchor-cls2-2D7C:visited>*>*{text-decoration:underline}.ToolsMenu-ButtonishAnchor-cls2-2D7C:hover>p,.ToolsMenu-ButtonishAnchor-cls2-2D7C:active>p,.ToolsMenu-ButtonishAnchor-cls2-2D7C:visited>p{text-decoration:none}</style><style type="text/css">.ToolsMenu-ProminentLinkIcon-cls1-3t0r{/*!*/}.ToolsMenu-ProminentLinkIcon-cls2-2ccX{margin-right:12px;height:20px;width:20px}</style><style type="text/css">.ToolsMenu-NotificationDot-cls1-2olh{/*!*/}.ToolsMenu-NotificationDot-cls2-1rmG{position:absolute;top:0;right:-8px;margin-left:4px;width:6px;height:6px;border-radius:50%;background:#bb0202}</style><style type="text/css">.ToolsMenu-ProminentLink-cls1-ubH4{/*!*/}.ToolsMenu-ProminentLink-cls2-3-iZ{display:flex;align-items:center;margin:12px 8px;padding:8px 8px 8px 0;border-radius:2px;color:#000;font-size:16px;font-weight:400}.ToolsMenu-ProminentLink-cls2-3-iZ:hover,.ToolsMenu-ProminentLink-cls2-3-iZ:active,.ToolsMenu-ProminentLink-cls2-3-iZ:visited{color:#000;cursor:pointer}.ToolsMenu-ProminentLink-cls2-3-iZ>img{margin:8px}.ToolsMenu-ProminentLink-cls2-3-iZ>div{flex:1 0 auto}.ToolsMenu-ProminentLink-cls2-3-iZ>div>div{display:inline-block;position:relative}</style><style type="text/css">.ToolsMenu-DescriptionList-cls1-QamA{/*!*/}.ToolsMenu-DescriptionList-cls2-yGrN{list-style:none;padding:0;margin:0}</style><style type="text/css">.ToolsMenu-Subheader-cls1-t6LG{/*!*/}.ToolsMenu-Subheader-cls2-u6EC{margin:22px 12px 4px;font-size:16px;font-weight:400;line-height:22px;letter-spacing:0em;display:flex;align-items:center;justify-content:space-between}</style><style type="text/css">.ToolsSidebar-Background-cls1-3oeS{/*!*/}.ToolsSidebar-Background-cls2-3nFY{position:absolute;top:80px;left:0;width:100vw;overflow:auto;background-color:rgba(0,0,0,.6);z-index:-1}</style><style type="text/css">.ToolsSidebar-Container-cls1-3kzf{/*!*/}.ToolsSidebar-Container-cls2-vbtG{position:absolute;min-height:100%;width:400px;max-width:80vw;right:0;background:#fff;padding:12px 12px 48px}</style><style type="text/css">.Timer-NumberContainer-cls1-1a30{/*!*/}.Timer-NumberContainer-cls2-3Qzf{box-shadow:0px 2px 4px rgba(0,0,0,.3);border-radius:2.5px;color:#0954d3;font-size:38px;font-weight:500;height:45px;perspective:130px;position:relative;width:40px;line-height:25px}.Timer-NumberContainer-cls2-3Qzf:not(:last-of-type){margin-right:4px}.Timer-NumberContainer-cls2-3Qzf.Timer-NumberContainer-mini-29bD{height:30px;width:30px;font-size:22px;line-height:18px}</style><style type="text/css">.Timer-NumberHalf-cls1-3Aq2{/*!*/}.Timer-NumberHalf-cls2-uWrB{background:#fff;display:grid;height:50%;left:0;overflow:hidden;place-items:center;position:absolute;right:0}.Timer-NumberHalf-cls2-uWrB.Timer-NumberHalf-bottom-ud35{border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;bottom:0;z-index:0}.Timer-NumberHalf-cls2-uWrB.Timer-NumberHalf-top-4GxR{background:#f9f9f9;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;top:0;transform-origin:bottom;z-index:3}.Timer-NumberHalf-cls2-uWrB.Timer-NumberHalf-top-4GxR::after,.Timer-NumberHalf-cls2-uWrB.Timer-NumberHalf-topBack-3jce::after{border-bottom:1px solid #ddd;bottom:0;content:"";height:100%;left:0;position:absolute;width:100%;z-index:-1}.Timer-NumberHalf-cls2-uWrB.Timer-NumberHalf-topBack-3jce{border-top-left-radius:2.5px;border-top-right-radius:2.5px;height:50%;top:0;transform-origin:bottom;z-index:2}.Timer-NumberHalf-cls2-uWrB.Timer-NumberHalf-topBehind-3jsH{background:#f9f9f9;border-top-left-radius:2.5px;border-top-right-radius:2.5px;height:50%;top:0;z-index:1}</style><style type="text/css">.Timer-NumberText-cls1-3_rO{/*!*/}.Timer-NumberText-cls2-2aa6{position:absolute;left:0;margin:auto;right:0;text-align:center;color:#0954d3}.Timer-NumberText-cls2-2aa6.Timer-NumberText-top-2EEN{top:50%}.Timer-NumberText-cls2-2aa6.Timer-NumberText-topBack-1g2D{top:60%;transform:scaleY(-1)}.Timer-NumberText-cls2-2aa6.Timer-NumberText-bottom-2qMl{top:-50%}</style><style type="text/css">.Timer-Group-cls1-1NJw{/*!*/}.Timer-Group-cls2-38l6{display:flex}</style><style type="text/css">.Timer-Indicator-cls1-1ynh{/*!*/}.Timer-Indicator-cls2-fBfS{color:#fff;font-weight:500;font-size:10px;letter-spacing:.16em;margin:0;text-align:center;text-transform:uppercase}.Timer-Indicator-cls2-fBfS.Timer-Indicator-mini-1zca{font-size:8px}.Timer-Indicator-cls2-fBfS.Timer-Indicator-dark-2kjh{color:#4b4b4b}</style><style type="text/css">.Timer-StaticNumberContainer-cls1-tNPp{/*!*/}.Timer-StaticNumberContainer-cls2-11m9{background:#fff;border-radius:2.5px;box-shadow:0px 2px 4px rgba(0,0,0,.3);color:#0954d3;display:grid;font-size:38px;font-weight:500;height:45px;perspective:130px;place-items:center;position:relative;width:40px}.Timer-StaticNumberContainer-cls2-11m9:not(:last-of-type){margin-right:4px}.Timer-StaticNumberContainer-cls2-11m9::after{content:"";height:1px;background:#ddd;left:0;position:absolute;top:50%;width:100%;z-index:-1}</style><style type="text/css">.Timer-TimerContainer-cls1-3B16{/*!*/}.Timer-TimerContainer-cls2-1bf3{display:grid;grid-gap:3px 13px;gap:3px 13px;grid-template-columns:repeat(3, auto);justify-content:center;padding-top:16px}.Timer-TimerContainer-cls2-1bf3.Timer-TimerContainer-withoutHours-1P-D{grid-template-columns:repeat(2, auto)}.Timer-TimerContainer-cls2-1bf3.Timer-TimerContainer-mini-Yp72{grid-gap:3px 8px;gap:3px 8px}</style><style type="text/css">.CoralNewUserDiscountButton-Button-cls1-29zN{/*!*/}.CoralNewUserDiscountButton-Button-cls2-1c6a{display:flex;flex-direction:column;align-items:center;justify-content:center;height:36px;padding:0 18px;cursor:pointer;flex-shrink:0;margin-right:12px}</style><style type="text/css">.CoralNewUserDiscountButton-ButtonText-cls1-Z1-4{/*!*/}.CoralNewUserDiscountButton-ButtonText-cls2-2uK-{letter-spacing:1.15px;font-size:12px;text-transform:uppercase;color:#4b4b4b;font-family:"Roboto",Helvetica,Arial,sans-serif;font-weight:normal;text-align:center}.CoralNewUserDiscountButton-ButtonText-cls2-2uK-.CoralNewUserDiscountButton-ButtonText-blue-IaJ6{color:#0954d3}</style><style type="text/css">.PremiumButton-PremiumButtonAnchor-cls1-1UyS{/*!*/}.PremiumButton-PremiumButtonAnchor-cls2-1pdy{height:48px;padding:12px 16px;border-radius:4px;box-shadow:0px 2px 2px 0px #00000033;font-size:16px;font-weight:500;background-color:#0645b1;color:#fff;text-decoration:none;display:flex;align-items:center}.PremiumButton-PremiumButtonAnchor-cls2-1pdy:hover,.PremiumButton-PremiumButtonAnchor-cls2-1pdy:active,.PremiumButton-PremiumButtonAnchor-cls2-1pdy:visited{color:#fff !important;text-decoration:none}</style><style type="text/css">.PremiumButton-Icon-cls1-30Ej{/*!*/}.PremiumButton-Icon-cls2-1OvF{margin-right:8px;width:22px}</style><style type="text/css">.DoubleDigitCountBubble-CountBubble-cls1-2pmI{/*!*/}.DoubleDigitCountBubble-CountBubble-cls2-AE4S{box-sizing:content-box;border-radius:50%;background:#bb0202;color:#fff;border:1.62px solid #fff;font-size:10px;font-weight:500;text-align:center;width:18px;height:18px;line-height:18px}</style><style type="text/css">.AccountMenu-MenuProfilePic-cls1-1i0w{/*!*/}.AccountMenu-MenuProfilePic-cls2-18rN{border-radius:50%}</style><style type="text/css">.AccountMenu-Header-cls1-a3ea{/*!*/}.AccountMenu-Header-cls2-3Yj5{margin:8px;padding:12px 0;border-bottom:1px solid #dddfe2;display:flex;align-items:center;color:#222;font-size:12px;font-weight:500;line-height:17px;letter-spacing:.1em;text-transform:uppercase}.AccountMenu-Header-cls2-3Yj5:hover,.AccountMenu-Header-cls2-3Yj5:active,.AccountMenu-Header-cls2-3Yj5:visited{color:#222;text-decoration:none}.AccountMenu-Header-cls2-3Yj5>img{width:20px;height:20px;margin-right:8px}</style><style type="text/css">.AccountMenu-UpgradeAnchor-cls1-3S67{/*!*/}.AccountMenu-UpgradeAnchor-cls2-1E9r{border-radius:4px;border:none;background:#f67e00;margin:0 8px;padding:6px 24px;display:flex;align-items:center;justify-content:center;color:#fff;text-transform:uppercase;font-size:12px;font-weight:500}.AccountMenu-UpgradeAnchor-cls2-1E9r:hover,.AccountMenu-UpgradeAnchor-cls2-1E9r:focus,.AccountMenu-UpgradeAnchor-cls2-1E9r:active{background:#c36400;text-decoration:none;color:#fff !important}.AccountMenu-UpgradeAnchor-cls2-1E9r>img{height:14px;margin-right:8px}</style><style type="text/css">.AccountMenu-MenuList-cls1-1aco{/*!*/}.AccountMenu-MenuList-cls2-2IZt{margin:18px 0;padding:0;list-style:none;color:#111}</style><style type="text/css">.AccountMenu-AnchorItem-cls1-2eBR{/*!*/}.AccountMenu-AnchorItem-cls2-1Zj3{min-width:100%;margin:0;padding:5px 8px;padding-left:36px;display:flex;justify-content:space-between;align-items:center;color:#111}.AccountMenu-AnchorItem-cls2-1Zj3:hover,.AccountMenu-AnchorItem-cls2-1Zj3:active,.AccountMenu-AnchorItem-cls2-1Zj3:visited{color:#111}</style><style type="text/css">.AccountMenu-ItemName-cls1-2vZU{/*!*/}.AccountMenu-ItemName-cls2-15WB{position:relative}</style><style type="text/css">.AccountMenu-AnchorishButtonItem-cls1-3lAg{/*!*/}.AccountMenu-AnchorishButtonItem-cls2-2tSx{min-width:100%;margin:0;padding:5px 8px;border:none;background:none;padding-left:36px;display:flex;justify-content:space-between;align-items:center;color:#111}.AccountMenu-AnchorishButtonItem-cls2-2tSx:hover,.AccountMenu-AnchorishButtonItem-cls2-2tSx:active{text-decoration:underline}</style><style type="text/css">.AccountMenu-LanguageIcon-cls1-1dGC{/*!*/}.AccountMenu-LanguageIcon-cls2-3GNy{height:14px}</style><style type="text/css">.AccountMenu-NotificationDot-cls1-3mMy{/*!*/}.AccountMenu-NotificationDot-cls2-2rei{position:absolute;top:0;right:-8px;margin-left:4px;width:6px;height:6px;border-radius:50%;background:#bb0202}</style><style type="text/css">.DoubleDigitCountBubble-CountBubble-cls1-2pmI{/*!*/}.DoubleDigitCountBubble-CountBubble-cls2-AE4S{box-sizing:content-box;border-radius:50%;background:#bb0202;color:#fff;border:1.62px solid #fff;font-size:10px;font-weight:500;text-align:center;width:18px;height:18px;line-height:18px}</style><style type="text/css">.AccountMenuButton-UserButton-cls1-34gW{/*!*/}.AccountMenuButton-UserButton-cls2-CF43{position:relative;height:48px;padding:4px 16px;border-radius:4px;font-size:16px;font-weight:500;background:#e4ebf7;border:1px solid #cedbf1;color:#0645b1;display:flex;align-items:center}.AccountMenuButton-UserButton-cls2-CF43:hover,.AccountMenuButton-UserButton-cls2-CF43:active,.AccountMenuButton-UserButton-cls2-CF43:visited{color:#0645b1}.AccountMenuButton-UserButton-cls2-CF43:hover,.AccountMenuButton-UserButton-cls2-CF43:focus{background:#0057eb;color:#fff}.AccountMenuButton-UserButton-cls2-CF43 .DoubleDigitCountBubble-CountBubble-cls1-2pmI{position:absolute;top:2px;left:30px}</style><style type="text/css">.AccountMenuButton-ButtonProfilePic-cls1-2Gz1{/*!*/}.AccountMenuButton-ButtonProfilePic-cls2-3YUo{width:26px;height:26px;border-radius:50%;margin-right:10px}</style><style type="text/css">.AccountMenuButton-Caret-cls1-2lCU{/*!*/}.AccountMenuButton-Caret-cls2-3sEe{margin-left:6px}</style><style type="text/css">.AccountMenuButton-MenuContainer-cls1-2Xlz{/*!*/}.AccountMenuButton-MenuContainer-cls2-3Z-a{position:absolute;right:0;top:56px;width:240px;box-shadow:0px 20px 40px 0px #00000033;border-radius:4px;background:#fff;padding:8px;font-size:14px;font-style:normal;font-weight:400;line-height:18px;color:#111;text-align:left;text-align:initial}.AccountMenuButton-MenuContainer-cls2-3Z-a>*{margin:8px}</style><style type="text/css">.Modal-Backdrop-cls1-2Elw{/*!*/}.Modal-Backdrop-cls2-1n9w{background:rgba(0,0,0,.6);display:grid;height:100vh;left:0;place-items:center;position:fixed;top:0;width:100vw;z-index:10;overflow-y:auto}</style><style type="text/css">.Modal-Container-cls1-12yP{/*!*/}.Modal-Container-cls2-1su9{background:#fff;border-radius:6px;box-shadow:0px 3px 7px rgba(0,0,0,.5);padding:32px;position:relative;max-width:100%}@media(min-width: 430px){.Modal-Container-cls2-1su9{max-width:90%}}@media(min-width: 780px){.Modal-Container-cls2-1su9{max-width:80%}}@media(min-width: 1140px){.Modal-Container-cls2-1su9{max-width:900px}}</style><style type="text/css">.Modal-CloseButton-cls1-3etj{/*!*/}.Modal-CloseButton-cls2-3IAe{color:#777;cursor:pointer;font-size:16px;position:absolute;top:32px;right:32px;background:none;border:none}</style><style type="text/css">.Modal-BackButton-cls1-WCwZ{/*!*/}.Modal-BackButton-cls2-1H9i{color:#777;cursor:pointer;font-size:20px;position:absolute;top:32px;left:32px;background:none;border:none}</style><style type="text/css">.LanguageSwitcherModal-StyledModal-cls1-2G2Q{/*!*/}.LanguageSwitcherModal-StyledModal-cls2-nbjI{display:flex;flex-direction:column;justify-content:space-around;width:560px;height:268px;background:#fff;border-radius:4px;margin-bottom:35vh}@media only screen and (max-width: 560px){.LanguageSwitcherModal-StyledModal-cls2-nbjI{max-width:80vw;max-height:40vh}}</style><style type="text/css">.LanguageSwitcherModal-CloseButton-cls1-OQ07{/*!*/}.LanguageSwitcherModal-CloseButton-cls2-19aK{color:#777;cursor:pointer;font-size:16px;position:absolute;top:20px;right:20px;background:none;border:none}</style><style type="text/css">.LanguageSwitcherModal-Heading-cls1-3b4U{/*!*/}.LanguageSwitcherModal-Heading-cls2-ru-L{font-family:Roboto;font-size:32px;font-style:normal;font-weight:500;line-height:42px;letter-spacing:0em;text-align:center;color:#000;margin-bottom:25px}@media only screen and (max-width: 560px){.LanguageSwitcherModal-Heading-cls2-ru-L{font-size:2rem;margin-bottom:0px}}</style><style type="text/css">.LanguageSwitcherModal-BetaText-cls1-1B5_{/*!*/}.LanguageSwitcherModal-BetaText-cls2-JlT0{width:39px;height:16px;font-family:Roboto;font-style:normal;font-weight:500;font-size:14px;line-height:16px;letter-spacing:.1em;text-transform:uppercase;color:#6b6b82}@media only screen and (max-width: 560px){.LanguageSwitcherModal-BetaText-cls2-JlT0{font-size:1rem}}</style><style type="text/css">.LanguageSwitcherModal-ButtonContainer-cls1-1vvr{/*!*/}.LanguageSwitcherModal-ButtonContainer-cls2-1oBp{display:flex;flex-direction:row;justify-content:space-around}</style><style type="text/css">.LanguageSwitcherModal-LanguageButton-cls1--etB{/*!*/}.LanguageSwitcherModal-LanguageButton-cls2-25_Y{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:59px;width:223px;background:#fff;border:1px solid rgba(153,153,153,.5);border-radius:4px}@media only screen and (max-width: 560px){.LanguageSwitcherModal-LanguageButton-cls2-25_Y{font-size:1rem;height:40px;width:100px}}</style><style type="text/css">.LanguageSwitcherModal-LanguageText-cls1-26T7{/*!*/}.LanguageSwitcherModal-LanguageText-cls2-qIiU{font-family:Roboto;font-style:normal;font-weight:normal;font-size:16px;line-height:140%;-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#000;margin-left:8px}@media only screen and (max-width: 560px){.LanguageSwitcherModal-LanguageText-cls2-qIiU{font-size:1em;margin-left:.2em}}</style><style type="text/css">.LanguageSwitcherModal-LanguageIcon-cls1-1uHM{/*!*/}.LanguageSwitcherModal-LanguageIcon-cls2-NR9I{width:40px;height:26px;margin:15px 8px}@media only screen and (max-width: 560px){.LanguageSwitcherModal-LanguageIcon-cls2-NR9I{width:8vw;height:5.2vh;margin:1em .5em}}</style><style type="text/css">.LanguageSwitcherModal-Disclaimer-cls1-7grJ{/*!*/}.LanguageSwitcherModal-Disclaimer-cls2-3UDx{font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:0em;text-align:center;color:#6b6b82;margin:35px 39px 55px 39px}@media only screen and (max-width: 560px){.LanguageSwitcherModal-Disclaimer-cls2-3UDx{justify-content:space-around;font-size:1rem;margin:0px}}</style><style type="text/css">.SmallAccountMenuButton-UserButton-cls1-3VQU{/*!*/}.SmallAccountMenuButton-UserButton-cls2-Se3W{position:relative;height:42px;padding:4px;border-radius:4px;font-size:16px;font-weight:500;background:transparent;border:none;color:#0645b1;display:flex;align-items:center}.SmallAccountMenuButton-UserButton-cls2-Se3W:hover,.SmallAccountMenuButton-UserButton-cls2-Se3W:active,.SmallAccountMenuButton-UserButton-cls2-Se3W:visited{color:#0645b1}.SmallAccountMenuButton-UserButton-cls2-Se3W:hover,.SmallAccountMenuButton-UserButton-cls2-Se3W:focus{background:transparent;color:#0645b1}.SmallAccountMenuButton-UserButton-cls2-Se3W .DoubleDigitCountBubble-CountBubble-cls1-2pmI{position:absolute;top:2px;left:24px}</style><style type="text/css">.SmallAccountMenuButton-ButtonProfilePic-cls1-24L9{/*!*/}.SmallAccountMenuButton-ButtonProfilePic-cls2-1jUo{width:30px;height:30px;border-radius:50%}</style><style type="text/css">.PremiumText-PremiumTextAnchor-cls1-mPkh{/*!*/}.PremiumText-PremiumTextAnchor-cls2-BeJ9{font-size:14px;font-weight:500;color:#0645b1}.PremiumText-PremiumTextAnchor-cls2-BeJ9:hover,.PremiumText-PremiumTextAnchor-cls2-BeJ9:active,.PremiumText-PremiumTextAnchor-cls2-BeJ9:visited{color:#0645b1;text-decoration:none}</style><style type="text/css">.PremiumText-Icon-cls1-FQU3{/*!*/}.PremiumText-Icon-cls2-1oxj{margin-right:8px;width:22px}</style><style type="text/css">.FocusedNav-NavAndTools-cls1-2rZH{/*!*/}.FocusedNav-NavAndTools-cls2-2BP5{position:relative;z-index:10;height:80}.FocusedNav-NavAndTools-cls2-2BP5.FocusedNav-NavAndTools-isMobileNav-1NXX{height:56}</style><style type="text/css">.FocusedNav-NavContainer-cls1-1TWG{/*!*/}.FocusedNav-NavContainer-cls2-aQNf{max-width:100vw;background-color:#fff;padding:16px;box-shadow:0px 2px 2px 0px #00000033}.FocusedNav-NavContainer-cls2-aQNf.FocusedNav-NavContainer-inDevStyle-2C8o{background-color:aqua}</style><style type="text/css">.FocusedNav-MobileNavContainer-cls1-oBGh{/*!*/}.FocusedNav-MobileNavContainer-cls2-2Hrk{padding:4px 12px}</style><style type="text/css">.FocusedNav-MobileSearchContainer-cls1-EpJ0{/*!*/}.FocusedNav-MobileSearchContainer-cls2-3YFm{flex-grow:1}</style><style type="text/css">.FocusedNav-WidthContainer-cls1-116G{/*!*/}.FocusedNav-WidthContainer-cls2-31FN{position:relative;margin:0 auto;display:flex;align-items:center;justify-content:space-between}.FocusedNav-WidthContainer-cls2-31FN>*{margin:0;white-space:nowrap}.FocusedNav-WidthContainer-cls2-31FN>*>*{white-space:normal;white-space:initial}.FocusedNav-WidthContainer-cls2-31FN>*~*{margin:0 0 0 16px}</style><style type="text/css">.FocusedNav-SearchBarContainer-cls1-2rhm{/*!*/}.FocusedNav-SearchBarContainer-cls2-3fOZ{flex:1 1 auto}</style><style type="text/css">.FocusedNav-SearchBarMaxWidth-cls1-1OPo{/*!*/}.FocusedNav-SearchBarMaxWidth-cls2-2PME{max-width:600px}</style><style type="text/css">.FocusedNav-IconAnchorsContainer-cls1-ae0J{/*!*/}.FocusedNav-IconAnchorsContainer-cls2-2WQ7{flex:1 1 auto;display:flex;justify-content:space-between;max-width:380px}.FocusedNav-IconAnchorsContainer-cls2-2WQ7>*{margin:0 8px}@media(max-width: 700px){.FocusedNav-IconAnchorsContainer-cls2-2WQ7>*:nth-child(2){display:none}}@media(max-width: 650px){.FocusedNav-IconAnchorsContainer-cls2-2WQ7>*:nth-child(3){display:none}}@media(max-width: 600px){.FocusedNav-IconAnchorsContainer-cls2-2WQ7>*:nth-child(1){display:none}}@media(max-width: 1000px){.FocusedNav-IconAnchorsContainer-cls2-2WQ7.FocusedNav-IconAnchorsContainer-compact-1wv3>*:nth-child(2){display:none}}@media(max-width: 950px){.FocusedNav-IconAnchorsContainer-cls2-2WQ7.FocusedNav-IconAnchorsContainer-compact-1wv3>*:nth-child(3){display:none}}@media(max-width: 900px){.FocusedNav-IconAnchorsContainer-cls2-2WQ7.FocusedNav-IconAnchorsContainer-compact-1wv3>*:nth-child(1){display:none}}</style><style type="text/css">.FocusedNav-IconAnchor-cls1-1chm{/*!*/}.FocusedNav-IconAnchor-cls2-1tUO{padding:0;color:#6b6b82;text-decoration:none;text-transform:uppercase;font-size:12px;font-weight:500;display:flex;flex-direction:column;align-items:center}.FocusedNav-IconAnchor-cls2-1tUO:hover,.FocusedNav-IconAnchor-cls2-1tUO:active,.FocusedNav-IconAnchor-cls2-1tUO:hover>*,.FocusedNav-IconAnchor-cls2-1tUO:active>*{color:#0057eb;text-decoration:none}.FocusedNav-IconAnchor-cls2-1tUO:hover>div>svg>path,.FocusedNav-IconAnchor-cls2-1tUO:active>div>svg>path,.FocusedNav-IconAnchor-cls2-1tUO:hover>*>div>svg>path,.FocusedNav-IconAnchor-cls2-1tUO:active>*>div>svg>path{fill:#0057eb}.FocusedNav-IconAnchor-cls2-1tUO:hover>div>svg>path[stroke],.FocusedNav-IconAnchor-cls2-1tUO:active>div>svg>path[stroke],.FocusedNav-IconAnchor-cls2-1tUO:hover>*>div>svg>path[stroke],.FocusedNav-IconAnchor-cls2-1tUO:active>*>div>svg>path[stroke]{stroke:#0057eb}.FocusedNav-IconAnchor-cls2-1tUO:visited{color:#6b6b82}</style><style type="text/css">.FocusedNav-IconButton-cls1-1oQj{/*!*/}.FocusedNav-IconButton-cls2-1d3r{padding:0;border:0;background:none;color:#6b6b82;text-decoration:none;text-transform:uppercase;font-size:12px;font-weight:500;display:flex;flex-direction:column;align-items:center}.FocusedNav-IconButton-cls2-1d3r:hover,.FocusedNav-IconButton-cls2-1d3r:active,.FocusedNav-IconButton-cls2-1d3r:hover>*,.FocusedNav-IconButton-cls2-1d3r:active>*{color:#0057eb;text-decoration:none}.FocusedNav-IconButton-cls2-1d3r:hover>div>svg>path,.FocusedNav-IconButton-cls2-1d3r:active>div>svg>path,.FocusedNav-IconButton-cls2-1d3r:hover>*>div>svg>path,.FocusedNav-IconButton-cls2-1d3r:active>*>div>svg>path{fill:#0057eb}.FocusedNav-IconButton-cls2-1d3r:hover>div>svg>path[stroke],.FocusedNav-IconButton-cls2-1d3r:active>div>svg>path[stroke],.FocusedNav-IconButton-cls2-1d3r:hover>*>div>svg>path[stroke],.FocusedNav-IconButton-cls2-1d3r:active>*>div>svg>path[stroke]{stroke:#0057eb}</style><style type="text/css">.FocusedNav-IconContainer-cls1-2PgI{/*!*/}.FocusedNav-IconContainer-cls2-1Im6{margin:2px;flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:24px}.FocusedNav-IconContainer-cls2-1Im6>img{max-height:20px;max-width:18px}</style><style type="text/css">.FocusedNav-IconLabel-cls1-2T_q{/*!*/}.FocusedNav-IconLabel-cls2-1ts3{position:relative}</style><style type="text/css">.FocusedNav-NotificationDot-cls1-l0jF{/*!*/}.FocusedNav-NotificationDot-cls2-177E{position:absolute;top:0;right:-8px;margin-left:4px;width:6px;height:6px;border-radius:50%;background:#bb0202}</style><style type="text/css">.FocusedNav-FullViewMenu-cls1-1Pd-{/*!*/}.FocusedNav-FullViewMenu-cls2-34RI{position:absolute;top:58px;left:0;width:100vw;height:calc(100vh - 58px);overflow-y:scroll;overflow-x:hidden;background:#fff;padding:16px;padding-bottom:64px}</style><style type="text/css">.FocusedNav-CloseMenuButton-cls1-3z9j{/*!*/}.FocusedNav-CloseMenuButton-cls2-3B3M{position:absolute;top:0;right:0;margin:0;padding:12px 16px;border:none;background:transparent}</style><style type="text/css">.FocusedNav-BottomMenu-cls1-2B7Y{/*!*/}.FocusedNav-BottomMenu-cls2-11cP{box-shadow:0px -2px 4px 0px #00000014;position:fixed;bottom:0;left:0;width:100vw;background:#fff;flex:1 1 auto;display:flex;justify-content:space-evenly}@media(max-width: 300px){.FocusedNav-BottomMenu-cls2-11cP>*:nth-child(3){display:none}}</style><style type="text/css">.CloseButton-Button-cls1-G_6D{/*!*/}.CloseButton-Button-cls2-lArd{background:transparent;border:0;color:#fff;font-size:14px;opacity:.6;padding:15px;position:absolute}.CloseButton-Button-cls2-lArd.CloseButton-Button-dark-1wX8{color:#000}</style><style type="text/css">.CollapsibleList-Button-cls1-32nn{/*!*/}.CollapsibleList-Button-cls2-1pu-{background:transparent;border:0;color:#1e2a40;font-size:14px;line-height:1.3;padding:2px}</style><style type="text/css">.CollapsibleText-Button-cls1-2bMI{/*!*/}.CollapsibleText-Button-cls2-1OKJ{background:transparent;border:0;color:#111;font-size:14px;line-height:130%;padding:0 2px;text-decoration:underline}</style><style type="text/css">.common-Button-cls1-3JA8{/*!*/}.common-Button-cls2-1wtj{align-items:center;background:#fff;border:0;border-radius:4px;box-shadow:0px 2px 4px rgba(0,0,0,.08);color:#0954d3;display:flex;font-weight:500;font-size:16px;height:32px;padding:0 30px;white-space:nowrap}.common-Button-cls2-1wtj:hover{text-decoration:none}</style><style type="text/css">.common-Container-cls1-1cqr{/*!*/}.common-Container-cls2-3xUk{align-items:center;background:#0954d3;display:flex;height:92px;justify-content:center;padding:0 100px;position:relative}@media(max-width: 955px){.common-Container-cls2-3xUk.common-Container-variantA-lGZ_{display:block;height:156px;padding:0 10px}}@media(max-width: 541px){.common-Container-cls2-3xUk.common-Container-variantA-lGZ_{height:175px}}@media(max-width: 391px){.common-Container-cls2-3xUk.common-Container-variantA-lGZ_{display:none}}.common-Container-cls2-3xUk.common-Container-variantB-1R2G{align-items:center;justify-content:space-between;padding:0 51px 0 50px}@media(max-width: 1160px){.common-Container-cls2-3xUk.common-Container-variantB-1R2G{padding:0 35px 0 11px}}@media(max-width: 990px){.common-Container-cls2-3xUk.common-Container-variantB-1R2G{height:156px}}@media(max-width: 813px){.common-Container-cls2-3xUk.common-Container-variantB-1R2G{flex-direction:column;height:180px;justify-content:center}}@media(max-width: 570px){.common-Container-cls2-3xUk.common-Container-variantB-1R2G{display:none}}</style><style type="text/css">.SeasonalDiscountUnibrow-Group-cls1-Mp0J{/*!*/}.SeasonalDiscountUnibrow-Group-cls2-JTBG{align-items:center;display:flex}</style><style type="text/css">.SeasonalDiscountUnibrow-Message-cls1-1YOq{/*!*/}.SeasonalDiscountUnibrow-Message-cls2-2Z0P{color:#fff;font-size:20px;font-weight:400;letter-spacing:.03em;margin:0 20px 0 10px;opacity:.8;text-transform:uppercase}</style><style type="text/css">.SeasonalDiscountUnibrow-Subtitle-cls1-3XZr{/*!*/}.SeasonalDiscountUnibrow-Subtitle-cls2-TZVD{color:#fff;font-size:12px;font-weight:400;margin:0 0 3px;opacity:.8;text-transform:uppercase}</style><style type="text/css">.SeasonalDiscountUnibrow-Title-cls1-1Xju{/*!*/}.SeasonalDiscountUnibrow-Title-cls2-1dqK{color:#fff;font-size:32px;font-weight:500;letter-spacing:.03em;margin:0 27px 0 0;text-shadow:0px 2px 4px rgba(0,0,0,.15);text-transform:uppercase}@media(max-width: 813px){.SeasonalDiscountUnibrow-Title-cls2-1dqK{font-size:28px}}.SeasonalDiscountUnibrow-Title-cls2-1dqK.SeasonalDiscountUnibrow-Title-mini-1kY4{font-size:14px;font-weight:400;margin-right:12px}</style><style type="text/css">.SeasonalDiscountUnibrow-MinibrowHider-cls1-2cot{/*!*/}.SeasonalDiscountUnibrow-MinibrowHider-cls2-2Kof{}@media(min-width: 570px){.SeasonalDiscountUnibrow-MinibrowHider-cls2-2Kof.SeasonalDiscountUnibrow-MinibrowHider-hideOnBigScreen-3vbo{display:none}}</style><style type="text/css">.common-Button-cls1-3Cc0{/*!*/}.common-Button-cls2-1h7I{border:1px solid #fff;border-radius:18px;background-color:#000;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;height:26px;padding:0 10px;position:relative;margin-right:8px}.common-Button-cls2-1h7I.common-Button-active-VY79,.common-Button-cls2-1h7I:hover{background-color:#fff;color:#000}</style><style type="text/css">.common-ButtonIcon-cls1-1V0P{/*!*/}.common-ButtonIcon-cls2-Kiwv{margin-right:8px}.common-ButtonIcon-cls2-Kiwv.common-ButtonIcon-green-2L0x{color:#28a745}.common-ButtonIcon-cls2-Kiwv.common-ButtonIcon-red-3HoR{color:#dc3545}</style><style type="text/css">.common-Label-cls1-38WI{/*!*/}.common-Label-cls2-2Zfg{color:#fff;line-height:1;margin:0 8px 0 0}[class^=c-profiles] .common-Label-cls2-2Zfg:hover,.common-Label-cls2-2Zfg:hover{color:#fff}.common-Label-cls2-2Zfg.common-Label-bigMargin-3xBp{margin:0 20px 0 0}.common-Label-cls2-2Zfg.common-Label-bold-2_jQ{line-height:16px;font-weight:500}.common-Label-cls2-2Zfg.common-Label-mono-YRSq{font-family:"Roboto Mono",monospace;letter-spacing:.05em}</style><style type="text/css">.common-MenuContainer-cls1-3IIB{/*!*/}.common-MenuContainer-cls2-3P_T{background:#000;bottom:59px;color:#fff;display:flex;flex-direction:column;font-family:"Roboto Mono",monospace;left:0;line-height:1.4;list-style:none;max-height:70vh;min-width:420px;overflow:scroll;position:absolute;text-align:left}.common-MenuContainer-cls2-3P_T:hover{cursor:auto}.common-MenuContainer-cls2-3P_T.common-MenuContainer-wide-1BDy{width:520px}.common-MenuContainer-cls2-3P_T.common-MenuContainer-widest-rL0g{width:600px}.common-MenuContainer-cls2-3P_T.common-MenuContainer-right-1kIw{left:auto;right:0}</style><style type="text/css">.common-MenuList-cls1-1ayS{/*!*/}.common-MenuList-cls2-me7f{flex:0 1 auto;margin:0;overflow:scroll;padding:0}</style><style type="text/css">.common-Item-cls1-25eE{/*!*/}.common-Item-cls2-3_ir{align-items:center;display:flex;padding:5px 7px;white-space:pre}.common-Item-cls2-3_ir:hover:not(.common-Item-cls2-3_ir.common-Item-noClick-1gyp),.common-Item-cls2-3_ir:hover:nth-of-type(odd):not(.common-Item-cls2-3_ir.common-Item-noClick-1gyp){background:#333;cursor:pointer}.common-Item-cls2-3_ir:nth-of-type(odd){background:#111}</style><style type="text/css">.AbTests-Bucket-cls1-2UhT{/*!*/}.AbTests-Bucket-cls2-3xoT{font-weight:400}</style><style type="text/css">.AbTests-ButtonGroup-cls1-3pb3{/*!*/}.AbTests-ButtonGroup-cls2-21kz{align-items:center;display:flex;flex-wrap:wrap;grid-gap:8px 0;gap:8px 0;margin-top:8px}</style><style type="text/css">.AbTests-DateBucketed-cls1-1L2_{/*!*/}.AbTests-DateBucketed-cls2-2wTU{color:#ccc;margin-bottom:10px}</style><style type="text/css">.AbTests-Input-cls1-25Ws{/*!*/}.AbTests-Input-cls2-iFMQ{background:transparent;border:0;border-bottom:1px solid #eee;margin-left:7px;width:100%}</style><style type="text/css">.AbTests-Item-cls1-Y_1f{/*!*/}.AbTests-Item-cls2-2RVO{padding:22px 14px}.AbTests-Item-cls2-2RVO:nth-of-type(odd):not(:last-of-type){background:#111}</style><style type="text/css">.AbTests-Name-cls1-25ou{/*!*/}.AbTests-Name-cls2-2NZf{font-weight:600;font-size:14px;margin:0 0 2px}</style><style type="text/css">.AbTests-SearchContainer-cls1-3GOz{/*!*/}.AbTests-SearchContainer-cls2-aMjK{align-items:flex-end;display:flex;padding:14px}</style><style type="text/css">.AbTests-Bucketing-cls1-3iON{/*!*/}.AbTests-Bucketing-cls2-2jbN{display:flex;justify-content:space-between}</style><style type="text/css">.AdminFlags-Icon-cls1-39cY{/*!*/}.AdminFlags-Icon-cls2-3rLO{margin-right:3px}.AdminFlags-Icon-cls2-3rLO.AdminFlags-Icon-green-YXn6{color:#28a745}.AdminFlags-Icon-cls2-3rLO.AdminFlags-Icon-red-1PtF{color:#dc3545;width:14px}</style><style type="text/css">.Info-Item-cls1-1ZM_{/*!*/}.Info-Item-cls2-azyI{font-weight:600;margin:0 20px 0 0;position:relative}.Info-Item-cls2-azyI.Info-Item-hasTooltip-1odH{cursor:help}</style><style type="text/css">.Info-Tooltip-cls1-3x2H{/*!*/}.Info-Tooltip-cls2-3jyg{background:#000;bottom:22px;right:0;padding:14px;position:absolute;text-align:center;white-space:pre}</style><style type="text/css">.Info-Value-cls1-rF3v{/*!*/}.Info-Value-cls2-m13G{font-weight:400;margin-left:3px}</style><style type="text/css">.LocaleMenu-Container-cls1-11n6{/*!*/}.LocaleMenu-Container-cls2-38Pv{min-width:150px}</style><style type="text/css">.LocaleMenu-Row-cls1-39Gl{/*!*/}.LocaleMenu-Row-cls2-4JxL{border:0;cursor:pointer;padding:5px 7px;text-align:center;background-color:inherit}.LocaleMenu-Row-cls2-4JxL.LocaleMenu-Row-selected-1RpX{color:#28a745}.LocaleMenu-Row-cls2-4JxL:hover{background:#333}</style><style type="text/css">.CopyrightManagementMenu-Item-cls1-1lE0{/*!*/}.CopyrightManagementMenu-Item-cls2-1L9b{align-items:center;display:flex;justify-content:space-between;padding:7px 7px;right:0;white-space:pre}.CopyrightManagementMenu-Item-cls2-1L9b:nth-of-type(odd):not(:last-of-type){background:#111}</style><style type="text/css">.CopyrightManagementMenu-ButtonGroup-cls1-3qwO{/*!*/}.CopyrightManagementMenu-ButtonGroup-cls2-22U7{display:flex}</style><style type="text/css">.WorkQualityMenu-Container-cls1-1HdP{/*!*/}.WorkQualityMenu-Container-cls2-8sm0{left:unset;min-width:unset;right:-16px}</style><style type="text/css">.WorkQualityMenu-Item-cls1-29Fw{/*!*/}.WorkQualityMenu-Item-cls2-31G0{}.WorkQualityMenu-Item-cls2-31G0.WorkQualityMenu-Item-selected-2bWt{color:#28a745}</style><style type="text/css">.UserActionsMenu-Container-cls1-2g_h{/*!*/}.UserActionsMenu-Container-cls2-3Z_X{left:unset;min-width:unset;right:-16px}</style><style type="text/css">.SpamHandler-Container-cls1-xP5-{/*!*/}.SpamHandler-Container-cls2-1FrG{left:unset;min-width:unset;right:-16px}</style><style type="text/css">.AdminBar-Actions-cls1-79q1{/*!*/}.AdminBar-Actions-cls2-2yXw{display:flex;align-items:center;justify-content:space-between;height:46px;width:100%}</style><style type="text/css">.AdminBar-ActionGroup-cls1-3p6M{/*!*/}.AdminBar-ActionGroup-cls2-3VeV{align-items:center;display:flex}</style><style type="text/css">.AdminBar-InfoContainer-cls1-q3Vd{/*!*/}.AdminBar-InfoContainer-cls2-1q8P{display:flex;align-items:flex-end;min-height:24px;width:100%}</style><style type="text/css">.AdminBar-Container-cls1-37Ee{/*!*/}.AdminBar-Container-cls2-RKO4{background-color:#000;z-index:1000;position:fixed;left:0;right:0;bottom:0;color:#fff;font-size:14px;padding:0 8px}</style><style type="text/css">.AdminBar-PremiumStatus-cls1-3MXi{/*!*/}.AdminBar-PremiumStatus-cls2-1omu{font-weight:600;margin:0;min-width:127px;margin-right:auto}</style><style type="text/css">.AdminBar-DataInfo-cls1-2dws{/*!*/}.AdminBar-DataInfo-cls2-3osB{display:flex;align-items:flex-end;flex-direction:row-reverse;flex-wrap:wrap}</style><style type="text/css">.AdminBar-ButtonMenuContainer-cls1-CYxW{/*!*/}.AdminBar-ButtonMenuContainer-cls2-2-7W{position:relative}</style> <!--[if lt IE 10]> <script src="//a.academia-assets.com/assets/ie9_polyfills-ccb518f0850bf8f4a890a1be8d6c94fae535ed9d8e753c88bd1b054d85c96929.js"></script> <![endif]--> <script src="./Academia.edu - Share research_files/sentry.wjs-bundle-5a346e9517083a2ae2d49410bec2250252ebc66fd28ce0e08509cfba877a019d.js.download"></script> <script> jade.split = window.Aedu.Split; jade.helpers = window.$h; jade._ = window._; jade.Modernizr = window.Modernizr; </script> <!-- Google Tag Manager --> <script id="tag-manager-head-root">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5G9JF7Z');</script> <!-- End Google Tag Manager --> <script type="text/javascript"> // TODO(jacob): This should be defined, may be rare load order problem. // Checking if null is just a quick fix, will default to en if unset. // Better fix is to run this immedietely after I18n is set. if (window.I18n != null) { I18n.defaultLocale = "en"; I18n.locale = "en"; I18n.fallbacks = true; } </script> <link rel="canonical" href="https://www.academia.edu/"> <meta http-equiv="origin-trial" content="A9wkrvp9y21k30U9lU7MJMjBj4USjLrGwV+Z8zO3J3ZBH139DOnCv3XLK2Ii40S94HG1SZ/Zeg2GSHOD3wlWngYAAAB7eyJvcmlnaW4iOiJodHRwczovL3d3dy5nb29nbGV0YWdtYW5hZ2VyLmNvbTo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjYxMjk5MTk5LCJpc1RoaXJkUGFydHkiOnRydWV9"><script src="./Academia.edu - Share research_files/f(1).txt"></script><link id="googleidentityservice" type="text/css" media="all" rel="stylesheet" href="./Academia.edu - Share research_files/style"><style id="googleidentityservice_button_styles">.qJTHM{-webkit-user-select:none;color:#202124;direction:ltr;-webkit-touch-callout:none;font-family:"Roboto-Regular",arial,sans-serif;-webkit-font-smoothing:antialiased;font-weight:400;margin:0;overflow:hidden;-webkit-text-size-adjust:100%}.ynRLnc{left:-9999px;position:absolute;top:-9999px}.L6cTce{display:none}.bltWBb{word-break:break-all}.hSRGPd{color:#1a73e8;cursor:pointer;font-weight:500;text-decoration:none}.Bz112c-W3lGp{height:16px;width:16px}.Bz112c-E3DyYd{height:20px;width:20px}.Bz112c-r9oPif{height:24px;width:24px}.Bz112c-uaxL4e{-webkit-border-radius:10px;border-radius:10px}.LgbsSe-Bz112c{display:block}.S9gUrf-YoZ4jf,.S9gUrf-YoZ4jf *{border:none;margin:0;padding:0}.fFW7wc-ibnC6b>.aZ2wEe>div{border-color:#4285f4}.P1ekSe-ZMv3u>div:nth-child(1){background-color:#1a73e8!important}.P1ekSe-ZMv3u>div:nth-child(2),.P1ekSe-ZMv3u>div:nth-child(3){background-image:linear-gradient(to right,rgba(255,255,255,.7),rgba(255,255,255,.7)),linear-gradient(to right,#1a73e8,#1a73e8)!important}.haAclf{display:inline-block}.nsm7Bb-HzV7m-LgbsSe{-webkit-border-radius:4px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color .218s,border-color .218s;transition:background-color .218s,border-color .218s;-webkit-user-select:none;-webkit-appearance:none;background-color:#fff;background-image:none;border:1px solid #dadce0;color:#3c4043;cursor:pointer;font-family:"Google Sans",arial,sans-serif;font-size:14px;height:40px;letter-spacing:0.25px;outline:none;overflow:hidden;padding:0 12px;position:relative;text-align:center;vertical-align:middle;white-space:nowrap;width:auto}@media screen and (-ms-high-contrast:active){.nsm7Bb-HzV7m-LgbsSe{border:2px solid windowText;color:windowText}}.nsm7Bb-HzV7m-LgbsSe.pSzOP-SxQuSe{font-size:14px;height:32px;letter-spacing:0.25px;padding:0 10px}.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe{font-size:11px;height:20px;letter-spacing:0.3px;padding:0 8px}.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe{padding:0;width:40px}.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe.pSzOP-SxQuSe{width:32px}.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe.purZT-SxQuSe{width:20px}.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK{-webkit-border-radius:20px;border-radius:20px}.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK.pSzOP-SxQuSe{-webkit-border-radius:16px;border-radius:16px}.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK.purZT-SxQuSe{-webkit-border-radius:10px;border-radius:10px}.nsm7Bb-HzV7m-LgbsSe.MFS4be-Ia7Qfc{border:none;color:#fff}.nsm7Bb-HzV7m-LgbsSe.MFS4be-v3pZbf-Ia7Qfc{background-color:#1a73e8}.nsm7Bb-HzV7m-LgbsSe.MFS4be-JaPV2b-Ia7Qfc{background-color:#202124;color:#e8eaed}.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c{height:18px;margin-right:8px;min-width:18px;width:18px}.nsm7Bb-HzV7m-LgbsSe.pSzOP-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c{height:14px;min-width:14px;width:14px}.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c{height:10px;min-width:10px;width:10px}.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-Bz112c{margin-left:8px;margin-right:-4px}.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c{margin:0;padding:10px}.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe.pSzOP-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c{padding:8px}.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe.purZT-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c{padding:4px}.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{-webkit-border-top-left-radius:3px;border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;display:-webkit-box;display:-webkit-flex;display:flex;justify-content:center;-webkit-align-items:center;align-items:center;background-color:#fff;height:36px;margin-left:-10px;margin-right:12px;min-width:36px;width:36px}.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf .nsm7Bb-HzV7m-LgbsSe-Bz112c,.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf .nsm7Bb-HzV7m-LgbsSe-Bz112c{margin:0;padding:0}.nsm7Bb-HzV7m-LgbsSe.pSzOP-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{height:28px;margin-left:-8px;margin-right:10px;min-width:28px;width:28px}.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{height:16px;margin-left:-6px;margin-right:8px;min-width:16px;width:16px}.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{-webkit-border-radius:3px;border-radius:3px;margin-left:2px;margin-right:0;padding:0}.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{-webkit-border-radius:18px;border-radius:18px}.nsm7Bb-HzV7m-LgbsSe.pSzOP-SxQuSe.JGcpL-RbRzK .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{-webkit-border-radius:14px;border-radius:14px}.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe.JGcpL-RbRzK .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{-webkit-border-radius:8px;border-radius:8px}.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-bN97Pc-sM5MNb{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-flex-direction:row;flex-direction:row;justify-content:space-between;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;position:relative;width:100%}.nsm7Bb-HzV7m-LgbsSe .oXtfBe-l4eHX{justify-content:center}.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-BPrWId{-webkit-flex-grow:1;flex-grow:1;font-family:"Google Sans",arial,sans-serif;font-weight:500;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe .nsm7Bb-HzV7m-LgbsSe-BPrWId{font-weight:300}.nsm7Bb-HzV7m-LgbsSe .oXtfBe-l4eHX .nsm7Bb-HzV7m-LgbsSe-BPrWId{-webkit-flex-grow:0;flex-grow:0}.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-MJoBVe{-webkit-transition:background-color .218s;transition:background-color .218s;bottom:0;left:0;position:absolute;right:0;top:0}.nsm7Bb-HzV7m-LgbsSe:hover,.nsm7Bb-HzV7m-LgbsSe:focus{-webkit-box-shadow:none;box-shadow:none;border-color:#d2e3fc;outline:none}.nsm7Bb-HzV7m-LgbsSe:hover .nsm7Bb-HzV7m-LgbsSe-MJoBVe,.nsm7Bb-HzV7m-LgbsSe:focus .nsm7Bb-HzV7m-LgbsSe-MJoBVe{background:rgba(66,133,244,.04)}.nsm7Bb-HzV7m-LgbsSe:active .nsm7Bb-HzV7m-LgbsSe-MJoBVe{background:rgba(66,133,244,.1)}.nsm7Bb-HzV7m-LgbsSe.MFS4be-Ia7Qfc:hover .nsm7Bb-HzV7m-LgbsSe-MJoBVe,.nsm7Bb-HzV7m-LgbsSe.MFS4be-Ia7Qfc:focus .nsm7Bb-HzV7m-LgbsSe-MJoBVe{background:rgba(255,255,255,.24)}.nsm7Bb-HzV7m-LgbsSe.MFS4be-Ia7Qfc:active .nsm7Bb-HzV7m-LgbsSe-MJoBVe{background:rgba(255,255,255,.32)}.nsm7Bb-HzV7m-LgbsSe .n1UuX-DkfjY{-webkit-border-radius:50%;border-radius:50%;display:-webkit-box;display:-webkit-flex;display:flex;height:20px;margin-left:-4px;margin-right:8px;min-width:20px;width:20px}.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId{font-family:"Roboto";font-size:12px;text-align:left}.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .ssJRIf,.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .K4efff .fmcmS{overflow:hidden;text-overflow:ellipsis}.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .K4efff{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;color:#5f6368;fill:#5f6368;font-size:11px;font-weight:400}.nsm7Bb-HzV7m-LgbsSe.jVeSEe.MFS4be-Ia7Qfc .nsm7Bb-HzV7m-LgbsSe-BPrWId .K4efff{color:#e8eaed;fill:#e8eaed}.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .K4efff .Bz112c{height:18px;margin:-3px -3px -3px 2px;min-width:18px;width:18px}.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{-webkit-border-top-left-radius:0;border-top-left-radius:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px;margin-left:12px;margin-right:-10px}.nsm7Bb-HzV7m-LgbsSe.jVeSEe.JGcpL-RbRzK .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf{-webkit-border-radius:18px;border-radius:18px}.L5Fo6c-sM5MNb{border:0;display:block;left:0;position:relative;top:0}.L5Fo6c-bF1uUb{-webkit-border-radius:4px;border-radius:4px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0}.L5Fo6c-bF1uUb:focus{border:none;outline:none}sentinel{}</style><style type="text/css" data-fbcssmodules="css:fb.css.base css:fb.css.dialog css:fb.css.iframewidget css:fb.css.customer_chat_plugin_iframe">.fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}@keyframes fb_transform{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards} .fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}.fb_dialog_advanced{border-radius:8px;padding:10px}.fb_dialog_content{background:#fff;color:#373737}.fb_dialog_close_icon{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{left:5px;right:auto;top:5px}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent}.fb_dialog_close_icon:active{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #365899;color:#fff;font-size:14px;font-weight:bold;margin:0}.fb_dialog_content .dialog_title>span{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yd/r/Cou7n-nqK52.gif) no-repeat 5px 50%;float:left;padding:5px 0 7px 26px}body.fb_hidden{height:100%;left:0;margin:0;overflow:visible;position:absolute;top:-10000px;transform:none;width:100%}.fb_dialog.fb_dialog_mobile.loading{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ya/r/3rhSv5V8j3o.gif) white no-repeat 50% 50%;min-height:100%;min-width:100%;overflow:hidden;position:absolute;top:0;z-index:10001}.fb_dialog.fb_dialog_mobile.loading.centered{background:none;height:auto;min-height:initial;min-width:initial;width:auto}.fb_dialog.fb_dialog_mobile.loading.centered #fb_dialog_loader_spinner{width:100%}.fb_dialog.fb_dialog_mobile.loading.centered .fb_dialog_content{background:none}.loading.centered #fb_dialog_loader_close{clear:both;color:#fff;display:block;font-size:18px;padding-top:20px}#fb-root #fb_dialog_ipad_overlay{background:rgba(0, 0, 0, .4);bottom:0;left:0;min-height:100%;position:absolute;right:0;top:0;width:100%;z-index:10000}#fb-root #fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}.fb_dialog_mobile .fb_dialog_iframe{position:sticky;top:0}.fb_dialog_content .dialog_header{background:linear-gradient(from(#738aba), to(#2c4987));border-bottom:1px solid;border-color:#043b87;box-shadow:white 0 1px 1px -1px inset;color:#fff;font:bold 14px Helvetica, sans-serif;text-overflow:ellipsis;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0;vertical-align:middle;white-space:nowrap}.fb_dialog_content .dialog_header table{height:43px;width:100%}.fb_dialog_content .dialog_header td.header_left{font-size:12px;padding-left:5px;vertical-align:middle;width:60px}.fb_dialog_content .dialog_header td.header_right{font-size:12px;padding-right:5px;vertical-align:middle;width:60px}.fb_dialog_content .touchable_button{background:linear-gradient(from(#4267B2), to(#2a4887));background-clip:padding-box;border:1px solid #29487d;border-radius:3px;display:inline-block;line-height:18px;margin-top:3px;max-width:85px;padding:4px 12px;position:relative}.fb_dialog_content .dialog_header .touchable_button input{background:none;border:none;color:#fff;font:bold 12px Helvetica, sans-serif;margin:2px -12px;padding:2px 6px 3px 6px;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog_content .dialog_header .header_center{color:#fff;font-size:16px;font-weight:bold;line-height:18px;text-align:center;vertical-align:middle}.fb_dialog_content .dialog_content{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/y9/r/jKEcVPZFk-2.gif) no-repeat 50% 50%;border:1px solid #4a4a4a;border-bottom:0;border-top:0;height:150px}.fb_dialog_content .dialog_footer{background:#f5f6f7;border:1px solid #4a4a4a;border-top-color:#ccc;height:40px}#fb_dialog_loader_close{float:left}.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}#fb_dialog_loader_spinner{animation:rotateSpinner 1.2s linear infinite;background-color:transparent;background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/t-wz8gw1xG1.png);background-position:50% 50%;background-repeat:no-repeat;height:24px;width:24px}@keyframes rotateSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} .fb_iframe_widget{display:inline-block;position:relative}.fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}.fb_iframe_widget iframe{position:absolute}.fb_iframe_widget_fluid_desktop,.fb_iframe_widget_fluid_desktop span,.fb_iframe_widget_fluid_desktop iframe{max-width:100%}.fb_iframe_widget_fluid_desktop iframe{min-width:220px;position:relative}.fb_iframe_widget_lift{z-index:1}.fb_iframe_widget_fluid{display:inline}.fb_iframe_widget_fluid span{width:100%} .fb_mpn_mobile_landing_page_slide_out{animation-duration:200ms;animation-name:fb_mpn_landing_page_slide_out;transition-timing-function:ease-in}.fb_mpn_mobile_landing_page_slide_out_from_left{animation-duration:200ms;animation-name:fb_mpn_landing_page_slide_out_from_left;transition-timing-function:ease-in}.fb_mpn_mobile_landing_page_slide_up{animation-duration:500ms;animation-name:fb_mpn_landing_page_slide_up;transition-timing-function:ease-in}.fb_mpn_mobile_bounce_in{animation-duration:300ms;animation-name:fb_mpn_bounce_in;transition-timing-function:ease-in}.fb_mpn_mobile_bounce_out{animation-duration:300ms;animation-name:fb_mpn_bounce_out;transition-timing-function:ease-in}.fb_mpn_mobile_bounce_out_v2{animation-duration:300ms;animation-name:fb_mpn_fade_out;transition-timing-function:ease-in}.fb_customer_chat_bounce_in_v2{animation-duration:300ms;animation-name:fb_bounce_in_v2;transition-timing-function:ease-in}.fb_customer_chat_bounce_in_from_left{animation-duration:300ms;animation-name:fb_bounce_in_from_left;transition-timing-function:ease-in}.fb_customer_chat_bounce_out_v2{animation-duration:300ms;animation-name:fb_bounce_out_v2;transition-timing-function:ease-in}.fb_customer_chat_bounce_out_from_left{animation-duration:300ms;animation-name:fb_bounce_out_from_left;transition-timing-function:ease-in}.fb_invisible_flow{display:inherit;height:0;overflow-x:hidden;width:0}@keyframes fb_mpn_landing_page_slide_out{0%{margin:0 12px;width:100% - 24px}60%{border-radius:18px}100%{border-radius:50%;margin:0 24px;width:60px}}@keyframes fb_mpn_landing_page_slide_out_from_left{0%{left:12px;width:100% - 24px}60%{border-radius:18px}100%{border-radius:50%;left:12px;width:60px}}@keyframes fb_mpn_landing_page_slide_up{0%{bottom:0;opacity:0}100%{bottom:24px;opacity:1}}@keyframes fb_mpn_bounce_in{0%{opacity:.5;top:100%}100%{opacity:1;top:0}}@keyframes fb_mpn_fade_out{0%{bottom:30px;opacity:1}100%{bottom:0;opacity:0}}@keyframes fb_mpn_bounce_out{0%{opacity:1;top:0}100%{opacity:.5;top:100%}}@keyframes fb_bounce_in_v2{0%{opacity:0;transform:scale(0, 0);transform-origin:bottom right}50%{transform:scale(1.03, 1.03);transform-origin:bottom right}100%{opacity:1;transform:scale(1, 1);transform-origin:bottom right}}@keyframes fb_bounce_in_from_left{0%{opacity:0;transform:scale(0, 0);transform-origin:bottom left}50%{transform:scale(1.03, 1.03);transform-origin:bottom left}100%{opacity:1;transform:scale(1, 1);transform-origin:bottom left}}@keyframes fb_bounce_out_v2{0%{opacity:1;transform:scale(1, 1);transform-origin:bottom right}100%{opacity:0;transform:scale(0, 0);transform-origin:bottom right}}@keyframes fb_bounce_out_from_left{0%{opacity:1;transform:scale(1, 1);transform-origin:bottom left}100%{opacity:0;transform:scale(0, 0);transform-origin:bottom left}}@keyframes slideInFromBottom{0%{opacity:.1;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideInFromBottomDelay{0%{opacity:0;transform:translateY(100%)}97%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}</style></head> <!--[if gte IE 9 ]> <body class='ie ie9 c-home a-show logged_out'> <![endif]--> <!--[if !(IE) ]><!--> <body class="c-home a-show logged_out" data-new-gr-c-s-check-loaded="14.1062.0" data-gr-ext-installed="" data-new-gr-c-s-loaded="14.1062.0"> <!--<![endif]--> <div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; width: 0px; height: 0px;"><div></div></div></div><script>window.fbAsyncInit = function() { FB.init({ appId: "2369844204", version: "v8.0", status: true, cookie: true, xfbml: true }); // Additional initialization code. if (window.InitFacebook) { // facebook.ts already loaded, set it up. window.InitFacebook(); } else { // Set a flag for facebook.ts to find when it loads. window.academiaAuthReadyFacebook = true; } };</script><script>window.fbAsyncLoad = function() { // Protection against double calling of this function if (window.FB) { return; } (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); } if (!window.defer_facebook) { // Autoload if not deferred window.fbAsyncLoad(); } else { // Defer loading by 5 seconds setTimeout(function() { window.fbAsyncLoad(); }, 5000); }</script> <div id="google-root"></div><script>window.loadGoogle = function() { if (window.InitGoogle) { // google.ts already loaded, set it up. window.InitGoogle("331998490334-rsn3chp12mbkiqhl6e7lu2q0mlbu0f1b"); } else { // Set a flag for google.ts to use when it loads. window.GoogleClientID = "331998490334-rsn3chp12mbkiqhl6e7lu2q0mlbu0f1b"; } };</script><script>window.googleAsyncLoad = function() { // Protection against double calling of this function if (window.gapi) { return; } (function(d) { var js; var id = 'google-jssdk'; var ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) { return; } js = d.createElement('script'); js.id = id; js.async = true; js.src = "https://apis.google.com/js/api:client.js?onload=loadGoogle" ref.parentNode.insertBefore(js, ref); }(document)); } if (!window.defer_google) { // Autoload if not deferred window.googleAsyncLoad(); } else { // Defer loading by 5 seconds setTimeout(function() { window.googleAsyncLoad(); }, 5000); }</script> <div id="tag-manager-body-root"> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5G9JF7Z" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <!-- Event listeners for analytics --> <script> window.addEventListener('load', function() { if (document.querySelector('input[name="commit"]')) { document.querySelector('input[name="commit"]').addEventListener('click', function() { ga('send', 'event', 'button', 'click', 'Log In'); }) } }); </script> </div> <script>var _comscore = _comscore || []; _comscore.push({ c1: "2", c2: "26766707" }); (function() { var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true; s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js"; el.parentNode.insertBefore(s, el); })();</script><img src="./Academia.edu - Share research_files/p" style="position: absolute; visibility: hidden"> <div class="DesignSystem"> <a class="u-showOnFocus" href="https://www.academia.edu/#site"> Skip to main content </a> </div> <div id="upgrade_ie_banner" style="display: none;"><p>Academia.edu no longer supports Internet Explorer.</p><p>To browse Academia.edu and the wider internet faster and more securely, please take a few seconds to&nbsp;<a href="https://www.academia.edu/upgrade-browser">upgrade your browser</a>.</p></div><script>// Show this banner for all versions of IE if (!!window.MSInputMethodContext || /(MSIE)/.test(navigator.userAgent)) { document.getElementById('upgrade_ie_banner').style.display = 'block'; }</script> <div class="DesignSystem"></div> <div id="site" class="fixed"> <div id="content" class="clearfix"> <div class="DesignSystem" style="overflow-x: hidden;"><div class="container"><div class="new-lohp-header new-lohp-header-padding row"><div class="col-xs-12"><div class="u-floatLeft"><img class="Logo new-lohp-logo" onerror="this.src=&#39;//a.academia-assets.com/images/academia-logo-redesign-2015.png&#39;" style="width: 127px;" src="./Academia.edu - Share research_files/academia-logo-redesign-2015-45ae31566d1421084023fae986d81b06469982455d4be698a5226a904e7836a9.svg"></div><div class="u-floatRight"><a class="Button new-lohp-button new-lohp-button-inverse header-login-button" href="https://www.academia.edu/login?lhpb=tp" style="z-index: 1;">Login</a></div></div></div><div class="new-lohp-header new-lohp-header-padding fixed-floating hidden-xs row js-landing-desktop-floater"><div class="col-xs-12"><div class="u-floatLeft"><img class="Logo new-lohp-logo" onerror="this.src=&#39;//a.academia-assets.com/images/academia-logo-redesign-2015.png&#39;" style="width: 127px;" src="./Academia.edu - Share research_files/academia-logo-redesign-2015-45ae31566d1421084023fae986d81b06469982455d4be698a5226a904e7836a9.svg"></div><div class="u-floatRight"><a class="Button floaty-header-signup-button new-lohp-button Button--lg Button--block u-taCenter" href="https://www.academia.edu/signup?lhpb=fh">Sign Up</a><a class="Button header-login-button floaty-header-login-button new-lohp-button new-lohp-button-inverse" href="https://www.academia.edu/login?lhpb=fh" style="z-index: 1;">Login</a></div></div></div><div class="new-lohp-header fixed-floating hidden-lg hidden-md hidden-sm js-landing-mobile-floater"><a class="Button floaty-footer-signup-button new-lohp-button Button--lg Button--block u-taCenter" href="https://www.academia.edu/signup?lhpb=ff">Sign Up</a></div><div class="new-lohp-container"><div class="landing-hero new-lohp-header-padding row"><img class="landing-hero-image hidden-xs" src="./Academia.edu - Share research_files/student-desktop.png"><div class="landing-mobile-image-container hidden-lg hidden-md hidden-sm"><img class="landing-hero-image" src="./Academia.edu - Share research_files/student-mobile.png"></div><div class="headline-col col-xs-12 col-sm-7 col-lg-5"><h1 class="Headline text-off-black">Download&nbsp;<br class="hidden-xs hidden-sm hidden-md">36 million PDFs for free</h1><div class="row"><div class="col-xs-12 col-sm-6"><a class="Button top-hero-signup-button new-lohp-button Button--lg Button--block u-taCenter" href="https://www.academia.edu/signup?lhpb=tp">Sign Up</a></div></div></div><div class="list-group-col col-xs-12 col-sm-5 col-lg-4"><div class="list-group-top-spacer hidden-lg"></div><ul class="list-group fat-list-group"><li class="list-group-item fat-list-group-item"><div class="row flex-v-center"><div class="list-group-icon-col col-xs-2"><img class="list-group-icon" src="./Academia.edu - Share research_files/icon-blue-user.svg"></div><div class="list-group-label col-xs-6 u-fw400 text-secondary-grey nowrap">Registered Users</div><div class="list-group-number col-xs-4 text-right u-fw700 text-off-black">183m+</div></div></li><li class="list-group-item fat-list-group-item"><div class="row flex-v-center"><div class="list-group-icon-col col-xs-2"><img class="list-group-icon" src="./Academia.edu - Share research_files/icon-gold-paper.svg"></div><div class="list-group-label col-xs-6 u-fw400 text-secondary-grey nowrap">Uploaded Papers</div><div class="list-group-number col-xs-4 text-right u-fw700 text-off-black">36m+</div></div></li><li class="list-group-item fat-list-group-item"><div class="row flex-v-center"><div class="list-group-icon-col col-xs-2"><img class="list-group-icon" src="./Academia.edu - Share research_files/icon-green-star.svg"></div><div class="list-group-label col-xs-6 u-fw400 text-secondary-grey nowrap">Daily Recommendations</div><div class="list-group-number col-xs-4 text-right u-fw700 text-off-black">20m</div></div></li></ul></div></div><div class="benefits-section row u-taCenter flex-h-center js-benefits-section"><h2 class="benefits-headline text-off-black">Join&nbsp;183 million academics and researchers</h2><div class="benefit-box-container"><div class="benefit-box"><div class="benefit-image-container"><img class="bounded-image" loading="lazy" src="./Academia.edu - Share research_files/accelerate-research.svg"></div><div class="benefit-text-box"><h6 class="benefit-text u-textUppercase u-fw500 deci-em-spacing">Accelerate Your Research</h6><h2 class="benefit-box-headline benefit-text u-fw500 u-lineHeight1_2 text-off-black">Streamline your discovery of relevant research</h2><p class="benefit-text u-fs16 text-secondary-grey">Get access to&nbsp;36+ million research papers and stay informed with important topics through courses.</p></div></div><div class="benefit-box"><div class="benefit-image-container"><img class="bounded-image" loading="lazy" src="./Academia.edu - Share research_files/grow-audience.svg"></div><div class="benefit-text-box"><h6 class="benefit-text u-textUppercase u-fw500 deci-em-spacing">Grow Your Audience</h6><h2 class="benefit-box-headline benefit-text u-fw500 u-lineHeight1_2 text-off-black">Build your success and track your impact</h2><p class="benefit-text u-fs16 text-secondary-grey">Share your work with other academics, grow your audience, and track your impact on your field with our robust analytics.</p></div></div></div></div><div class="featured-tool-section row"><div class="row u-taCenter flex-h-center"><h2 class="featured-tool-title u-lineHeight1_2 text-off-black-alt">Unlock the most powerful tools with Academia Premium</h2><a class="Button new-lohp-button Button--lg upgrade-now-button" href="https://www.academia.edu/signup?lhpb=su&amp;post_signup_redirect_url=https%3A%2F%2Fwww.academia.edu%2Fupgrade%3Ffeature%3DDEFAULT%26trigger%3Dlohp">Sign Up and Upgrade to Premium</a></div><div class="row featured-tool-container flex-h-center"><div class="featured-tool-row row"><div class="featured-tool-graphic-col col-xs-12 col-sm-6 col-md-7"><img class="bounded-image" loading="lazy" src="./Academia.edu - Share research_files/research-example.png"></div><div class="featured-tool-text-col col-xs-12 col-sm-6 col-md-5"><div class="featured-tool-box"><h3 class="u-lineHeight1_2 text-off-black-alt">Work faster and smarter with advanced research discovery tools</h3><p class="u-fs16 text-secondary-grey">Search the full text and citations of our millions of papers. Download groups of related papers to jumpstart your research. Save time with detailed summaries and search alerts.</p><ul class="checkmark-ul text-secondary-grey"><li class="u-fs16">Advanced Search</li><li class="u-fs16">PDF Packages of&nbsp;37 papers</li><li class="u-fs16">Summaries and Search Alerts</li></ul></div></div></div><div class="featured-tool-row row"><div class="featured-tool-graphic-col col-xs-12 hidden-sm hidden-md hidden-lg"><img class="bounded-image" loading="lazy" src="./Academia.edu - Share research_files/impact-example.png"></div><div class="featured-tool-text-col col-xs-12 col-sm-6 col-md-5"><div class="featured-tool-box"><h3 class="u-lineHeight1_2 text-off-black-alt">Share your work, track your impact, and grow your audience</h3><p class="u-fs16 text-secondary-grey">Get notified when other academics mention you or cite your papers. Track your impact with in-depth analytics and network with members of your field.</p><ul class="checkmark-ul text-secondary-grey"><li class="u-fs16">Mentions and Citations Tracking</li><li class="u-fs16">Advanced Analytics</li><li class="u-fs16">Publishing Tools</li></ul></div></div><div class="featured-tool-graphic-col hidden-xs col-sm-6 col-md-7"><img class="bounded-image" loading="lazy" src="./Academia.edu - Share research_files/impact-example.png"></div></div></div></div><div class="testimonial-section row"><img class="testimonial-background-image hidden-xs" src="./Academia.edu - Share research_files/testimonial-background.svg"><div class="testimonial-column-container row"><div class="testimonial-column t-col-left col-lg-4 col-sm-6 col-xs-12 flex-h-center"><h2 class="real-stories-title testimonial-column-item u-taCenter u-lineHeight1_2 text-off-black">Real stories from real people</h2><div class="testimonial-card testimonial-column-item flex-h-center"><div class="testimonial-top flex-h-center"><h6 class="u-textUppercase u-taCenter deci-em-spacing">Researcher</h6><img class="testimonial-portrait" loading="lazy" src="./Academia.edu - Share research_files/t-alisdair.png"><div class="name-label u-fw700">Alisdair</div><div class="name-label">University of Highlands</div><div class="name-label">and Islands</div></div><img class="testimonial-divider" loading="lazy" src="./Academia.edu - Share research_files/t-divider.svg"><div class="testimonial-bottom"><div class="story-text u-lineHeight1_2">“I go through all the articles in the bulk download, save the ones that are clearly going to be useful and discard the remainder. This saves loads of time but also points me in directions I might not otherwise have thought of looking.”</div></div></div><div class="testimonial-card testimonial-column-item flex-h-center hidden-sm hidden-md hidden-lg"><div class="testimonial-top flex-h-center"><h6 class="u-textUppercase u-taCenter deci-em-spacing">Researcher</h6><img class="testimonial-portrait" loading="lazy" src="./Academia.edu - Share research_files/t-trevor.png"><div class="name-label u-fw700">Trevor</div><div class="name-label">University of Sydney</div></div><img class="testimonial-divider" loading="lazy" src="./Academia.edu - Share research_files/t-divider.svg"><div class="testimonial-bottom"><div class="story-text u-lineHeight1_2">“The bulk downloads give me the chance to read more related articles as well as seeing what research is citing the article I am looking at. It also helps me rapidly expand my personal digital library of references.”</div></div></div></div><div class="testimonial-column t-col-mid col-lg-4 col-sm-6 hidden-xs flex-h-center"><div class="testimonial-card testimonial-column-item flex-h-center"><div class="testimonial-top flex-h-center"><h6 class="u-textUppercase u-taCenter deci-em-spacing">Researcher</h6><img class="testimonial-portrait" loading="lazy" src="./Academia.edu - Share research_files/t-trevor.png"><div class="name-label u-fw700">Trevor</div><div class="name-label">University of Sydney</div></div><img class="testimonial-divider" loading="lazy" src="./Academia.edu - Share research_files/t-divider.svg"><div class="testimonial-bottom"><div class="story-text u-lineHeight1_2">“The bulk downloads give me the chance to read more related articles as well as seeing what research is citing the article I am looking at. It also helps me rapidly expand my personal digital library of references.”</div></div></div><div class="testimonial-card testimonial-column-item flex-h-center"><div class="testimonial-top flex-h-center"><h6 class="u-textUppercase u-taCenter deci-em-spacing">Researcher</h6><img class="testimonial-portrait" loading="lazy" src="./Academia.edu - Share research_files/t-paul-ee.png"><div class="name-label u-fw700">Paul</div><div class="name-label">Electrical Engineer</div></div><img class="testimonial-divider" loading="lazy" src="./Academia.edu - Share research_files/t-divider.svg"><div class="testimonial-bottom"><div class="story-text u-lineHeight1_2">“Bulk download provides me limitless opportunities to access books and research materials which I cannot ordinarily access.”</div></div></div></div><div class="testimonial-column t-col-right col-lg-4 hidden-md hidden-sm hidden-xs flex-h-center"><div class="testimonial-spacer"></div><div class="testimonial-card testimonial-column-item flex-h-center"><div class="testimonial-top flex-h-center"><h6 class="u-textUppercase u-taCenter deci-em-spacing">Researcher</h6><img class="testimonial-portrait" loading="lazy" src="./Academia.edu - Share research_files/t-steve.png"><div class="name-label u-fw700">Steve</div><div class="name-label">Clinical Psychologist</div></div><img class="testimonial-divider" loading="lazy" src="./Academia.edu - Share research_files/t-divider.svg"><div class="testimonial-bottom"><div class="story-text u-lineHeight1_2">“The value of Bulk Download is in providing a fairly comprehensive overview of almost any topic within Academia.”</div></div></div><div class="testimonial-card testimonial-column-item flex-h-center"><div class="testimonial-top flex-h-center"><h6 class="u-textUppercase u-taCenter deci-em-spacing">Researcher</h6><img class="testimonial-portrait" loading="lazy" src="./Academia.edu - Share research_files/t-wojtek.png"><div class="name-label u-fw700">Wojtek</div><div class="name-label">University of Business and</div><div class="name-label">Administration in Gdynia</div></div><img class="testimonial-divider" loading="lazy" src="./Academia.edu - Share research_files/t-divider.svg"><div class="testimonial-bottom"><div class="story-text u-lineHeight1_2">“Bulk Download helps me get papers from younger scholars. It also surfaces teaching texts that assist in the development of my own hand-out materials for my students.”</div></div></div></div></div><h3 class="university-title u-fw700 u-taCenter text-tertiary-grey">Used by academics at over&nbsp;17,000 universities</h3><div class="university-container"><div class="uni-logo-row row hidden-xs"><img class="uni-logo" loading="lazy" src="./Academia.edu - Share research_files/uni-logo-oxford.svg"><img class="uni-logo" loading="lazy" src="./Academia.edu - Share research_files/uni-logo-mit.svg"><img class="uni-logo" loading="lazy" src="./Academia.edu - Share research_files/uni-logo-berkeley.svg"><img class="uni-logo uni-logo-nyu" loading="lazy" src="./Academia.edu - Share research_files/uni-logo-nyu.svg"></div><div class="uni-logo-double-rows hidden-sm hidden-md hidden-lg"><div class="uni-logo-row uni-logo-row-1"><img class="uni-logo" loading="lazy" src="./Academia.edu - Share research_files/uni-logo-oxford.svg"><img class="uni-logo" loading="lazy" src="./Academia.edu - Share research_files/uni-logo-mit.svg"></div><div class="uni-logo-row uni-logo-row-2"><img class="uni-logo" loading="lazy" src="./Academia.edu - Share research_files/uni-logo-berkeley.svg"><img class="uni-logo uni-logo-nyu" loading="lazy" src="./Academia.edu - Share research_files/uni-logo-nyu.svg"></div></div></div></div><div class="mobile-application-hero row"><div class="mobile-phone-image-col col-xs-12 hidden-sm hidden-md hidden-lg"><img class="phone-application-image" loading="lazy" src="./Academia.edu - Share research_files/phone-application-image.png"></div><div class="mobile-application-text-col col-xs-12 col-sm-6"><h2 class="u-lineHeight1_2 text-off-black">The world's largest open access library in your pocket</h2><p class="text-off-black-alt">Academia.edu has over&nbsp;36 million academic papers to explore from by millions of researchers around the world. Access your Academia.edu account whenever and wherever your curiosity strikes.</p><div class="mobile-store-button-container row"><div class="mobile-store-button-col col-xs-12 col-lg-5"><a href="https://www.academia.edu/install-mobile-app-link/lohp/web"><img class="apple-app-store-button" loading="lazy" src="./Academia.edu - Share research_files/button-apple-app-store.png"></a></div><div class="mobile-store-button-col col-xs-12 col-lg-7"><a href="https://www.academia.edu/install-mobile-app-link/lohp/web"><img class="google-play-store-button" loading="lazy" src="./Academia.edu - Share research_files/button-google-play-store.png"></a></div></div></div><div class="mobile-phone-image-col hidden-xs col-sm-6"><img class="phone-application-image" loading="lazy" src="./Academia.edu - Share research_files/phone-application-image.png"></div></div><div class="closing-hero row"><div class="closing-hero-inner row"><div class="c-pair-col col-xs-12 col-sm-6"><img class="landing-closing-portrait" src="./Academia.edu - Share research_files/colleague-pair.png"></div><div class="closing-hero-headline-col col-xs-12 col-sm-6"><h1 class="Headline text-off-black-alt">Get started and find the best quality research</h1><div class="row hidden-xs"><div class="bottom-hero-button-col col-xs-12"><a class="bottom-hero-signup-button Button new-lohp-button Button--lg Button--block u-taCenter" href="https://www.academia.edu/signup?lhpb=bt">Sign Up</a></div></div></div></div></div></div><div class="row" style="margin-top:auto;"><div class="col-xs-12"><div class="Footer hidden-xs u-taCenter"><div class="bootstrap" id="footer"><div class="footer-content clearfix text-center padding-top-7x" style="width:100%;"><ul class="footer-links-secondary footer-links-wide list-inline margin-bottom-1x"><li><a href="https://www.academia.edu/about">About</a></li><li><a href="https://www.academia.edu/press">Press</a></li><li><a rel="nofollow" href="https://medium.com/academia">Blog</a></li><li><a href="https://www.academia.edu/Directory/People">People</a></li><li><a href="https://www.academia.edu/Directory/Papers">Papers</a></li><li><a href="https://www.academia.edu/letters/about">Academia Letters</a></li><li><a rel="nofollow" href="https://www.academia.edu/Jobs">Job Board</a></li><li><a rel="nofollow" href="https://www.academia.edu/hiring"><svg style="width: 13px; height: 13px; position: relative; bottom: -1px;" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="briefcase" class="svg-inline--fa fa-briefcase fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"></path></svg>&nbsp;<strong>We're Hiring!</strong></a></li><li><a rel="nofollow" href="https://support.academia.edu/"><svg style="width: 12px; height: 12px; position: relative; bottom: -1px;" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="question-circle" class="svg-inline--fa fa-question-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"></path></svg>&nbsp;<strong>Help Center</strong></a></li></ul><ul class="footer-links-tertiary list-inline margin-bottom-1x"><li class="small">Find new research papers in:</li><li class="small"><a href="https://www.academia.edu/Documents/in/Physics">Physics</a></li><li class="small"><a href="https://www.academia.edu/Documents/in/Chemistry">Chemistry</a></li><li class="small"><a href="https://www.academia.edu/Documents/in/Biology">Biology</a></li><li class="small"><a href="https://www.academia.edu/Documents/in/Health_Sciences">Health Sciences</a></li><li class="small"><a href="https://www.academia.edu/Documents/in/Ecology">Ecology</a></li><li class="small"><a href="https://www.academia.edu/Documents/in/Earth_Sciences">Earth Sciences</a></li><li class="small"><a href="https://www.academia.edu/Documents/in/Cognitive_Science">Cognitive Science</a></li><li class="small"><a href="https://www.academia.edu/Documents/in/Mathematics">Mathematics</a></li><li class="small"><a href="https://www.academia.edu/Documents/in/Computer_Science">Computer Science</a></li></ul></div></div><div class="DesignSystem" id="credit" style="width:100%;"><ul class="u-pl0x footer-links-legal list-inline"><li><a rel="nofollow" href="https://www.academia.edu/terms">Terms</a></li><li><a rel="nofollow" href="https://www.academia.edu/privacy">Privacy</a></li><li><a rel="nofollow" href="https://www.academia.edu/copyright">Copyright</a></li><li>Academia ©2022</li></ul></div><script> //<![CDATA[ window.detect_gmtoffset = true; window.Academia && window.Academia.set_gmtoffset && Academia.set_gmtoffset('/gmtoffset'); //]]> </script></div><div class="Footer visible-xs"><div class="u-fs14 u-fw400 u-taCenter u-displayFlex u-justifyContentCenter u-mb5x"><div class="u-mh2x"><a rel="nofollow" class="u-tcGrayDarkest" href="https://www.academia.edu/about">About</a></div><div class="u-mh2x"><a class="u-tcGrayDarkest" href="https://www.academia.edu/press">Press</a></div><div class="u-displayFlex u-justifyContentCenter u-mh2x"><a rel="nofollow" class="u-tcGrayDarkest" href="https://www.academia.edu/hiring"><i class="fa fa-briefcase u-pr1x"></i>We're Hiring!</a></div><div class="u-displayFlex u-justifyContentCenter u-mh2x"><a rel="nofollow" class="u-tcGrayDarkest" href="https://support.academia.edu/"><i class="fa fa-question-circle u-pr1x"></i>Help</a></div></div></div></div></div></div></div><script>if (window.performance && window.performance.measure) { window.performance.mark("FMP"); window.performance.measure( "Time To First Meaningful Paint", "requestStart", "FMP" ); window.sendUserTiming("Time To First Meaningful Paint"); }</script><div data-auto_select="false" data-client_id="331998490334-rsn3chp12mbkiqhl6e7lu2q0mlbu0f1b" data-landing_url="https://www.academia.edu/" data-login_uri="https://www.academia.edu/registrations/google_one_tap" data-moment_callback="onGoogleOneTapEvent" id="g_id_onload"></div><script>function onGoogleOneTapEvent(event) { var momentType = event.getMomentType(); var momentReason = null; if (event.isNotDisplayed()) { momentReason = event.getNotDisplayedReason(); } else if (event.isSkippedMoment()) { momentReason = event.getSkippedReason(); } else if (event.isDismissedMoment()) { momentReason = event.getDismissedReason(); } Aedu.arbitraryEvents.write('GoogleOneTapEvent', { moment_type: momentType, moment_reason: momentReason, }); }</script><script src="./Academia.edu - Share research_files/client" async="" defer=""></script> <script>$(document).ready(function(){ var $dismissible = $(".dismissible_banner"); $dismissible.click(function(ev) { $dismissible.hide(); }); });</script> </div> <div class="DesignSystem"></div> <div id="overlay_background"></div> <div id="bootstrap-modal-container" class="bootstrap"></div> <div id="ds-modal-container" class="bootstrap DesignSystem"></div> <div id="full-screen-modal"></div> </div> <script src="./Academia.edu - Share research_files/logged_out_home.wjs-bundle-833021983a275ae9968dd5c665e24c5bb28f4d04d7fd666f077f5bf08e65de0a.js.download"></script> <iframe id="ssIFrame_google" sandbox="allow-scripts allow-same-origin" aria-hidden="true" frame-border="0" style="position: absolute; width: 1px; height: 1px; inset: -9999px; display: none;" src="./Academia.edu - Share research_files/iframe.html"></iframe></body><grammarly-desktop-integration data-grammarly-shadow-root="true"></grammarly-desktop-integration></html>
236.574519
43,093
0.772768
e67ee8bc4781ca5f06e48c7cc12d96118df59c8b
861
swift
Swift
OpenSim/Runtime.swift
johndpope/OpenSim
c00d7cb44f9f3963394052dcef68c0bff03bfcc8
[ "MIT" ]
null
null
null
OpenSim/Runtime.swift
johndpope/OpenSim
c00d7cb44f9f3963394052dcef68c0bff03bfcc8
[ "MIT" ]
null
null
null
OpenSim/Runtime.swift
johndpope/OpenSim
c00d7cb44f9f3963394052dcef68c0bff03bfcc8
[ "MIT" ]
null
null
null
// // Runtime.swift // OpenSim // // Created by Luo Sheng on 11/12/15. // Copyright © 2015 Luo Sheng. All rights reserved. // import Foundation final class Runtime: CustomStringConvertible { let name: String var devices: [Device] = [] var description: String { // current version is format "iOS major.minir" // old versions of iOS are com.Apple.CoreSimulator.SimRuntime.iOS-major-minor let characterSet = CharacterSet(charactersIn: " -.") let components = name.components(separatedBy: characterSet) guard components.count > 2 else { return name } return "\(components[components.count - 3]) \(components[components.count - 2]).\(components[components.count - 1])" } init(name: String) { self.name = name } }
24.6
124
0.602787
d5b3435995540bfafbce6b1ee67ab56b48e96bc7
733
h
C
YLCleaner/Xcode-RuntimeHeaders/DevToolsInterface/XCCleanAlert.h
liyong03/YLCleaner
7453187a884c8e783bda1af82cbbb51655ec41c6
[ "MIT" ]
1
2019-02-15T02:16:35.000Z
2019-02-15T02:16:35.000Z
YLCleaner/Xcode-RuntimeHeaders/DevToolsInterface/XCCleanAlert.h
liyong03/YLCleaner
7453187a884c8e783bda1af82cbbb51655ec41c6
[ "MIT" ]
null
null
null
YLCleaner/Xcode-RuntimeHeaders/DevToolsInterface/XCCleanAlert.h
liyong03/YLCleaner
7453187a884c8e783bda1af82cbbb51655ec41c6
[ "MIT" ]
null
null
null
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "NSWindowController.h" @class NSButton, NSTextField; @interface XCCleanAlert : NSWindowController { NSTextField *_title; NSTextField *_message; NSButton *_okButton; NSButton *_cancelButton; NSButton *_removePrecompsCheckbox; NSButton *_cleanDependenciesCheckbox; } - (void)cancelAction:(id)arg1; - (void)okAction:(id)arg1; - (void)cleanDependenciesCheckboxAction:(id)arg1; - (void)removePrecompsCheckboxAction:(id)arg1; - (void)setMessage:(id)arg1; - (void)setOKButtonTitle:(id)arg1; - (void)setTitle:(id)arg1; - (id)initWithWindowNibName:(id)arg1; @end
22.90625
83
0.720327
775780bd1cd88773158b12a8d0b0e4c6047f19a7
213
html
HTML
docs/index.html
NDevTK/AutoPause
fcb225ec056d76becfe2a33d53f5487ce806356c
[ "MIT" ]
16
2020-12-04T07:29:40.000Z
2022-03-24T02:31:01.000Z
docs/index.html
NDevTK/AutoPause
fcb225ec056d76becfe2a33d53f5487ce806356c
[ "MIT" ]
15
2020-12-04T08:06:38.000Z
2022-03-26T23:54:19.000Z
docs/index.html
NDevTK/AutoPause
fcb225ec056d76becfe2a33d53f5487ce806356c
[ "MIT" ]
5
2020-12-16T06:03:50.000Z
2021-07-13T07:01:04.000Z
<html> <head> <title>AutoPause - testing</title> <script src="main.js"></script> </head> <body> <button type="button" onclick="test()">Click Me!</button> <a id="result"></a> </body> <html>
19.363636
61
0.568075
0d0ad926cb4eee590aed5f63ac311f7785b52b8d
46,671
asm
Assembly
wc.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
wc.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
wc.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp int i, n; int l, w, c, inword; l = w = c = 0; 6: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) d: 8b 45 e8 mov -0x18(%ebp),%eax 10: 89 45 ec mov %eax,-0x14(%ebp) 13: 8b 45 ec mov -0x14(%ebp),%eax 16: 89 45 f0 mov %eax,-0x10(%ebp) inword = 0; 19: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) while((n = read(fd, buf, sizeof(buf))) > 0){ 20: eb 69 jmp 8b <wc+0x8b> for(i=0; i<n; i++){ 22: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 29: eb 58 jmp 83 <wc+0x83> c++; 2b: 83 45 e8 01 addl $0x1,-0x18(%ebp) if(buf[i] == '\n') 2f: 8b 45 f4 mov -0xc(%ebp),%eax 32: 05 40 0c 00 00 add $0xc40,%eax 37: 0f b6 00 movzbl (%eax),%eax 3a: 3c 0a cmp $0xa,%al 3c: 75 04 jne 42 <wc+0x42> l++; 3e: 83 45 f0 01 addl $0x1,-0x10(%ebp) if(strchr(" \r\t\n\v", buf[i])) 42: 8b 45 f4 mov -0xc(%ebp),%eax 45: 05 40 0c 00 00 add $0xc40,%eax 4a: 0f b6 00 movzbl (%eax),%eax 4d: 0f be c0 movsbl %al,%eax 50: 83 ec 08 sub $0x8,%esp 53: 50 push %eax 54: 68 51 09 00 00 push $0x951 59: e8 35 02 00 00 call 293 <strchr> 5e: 83 c4 10 add $0x10,%esp 61: 85 c0 test %eax,%eax 63: 74 09 je 6e <wc+0x6e> inword = 0; 65: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 6c: eb 11 jmp 7f <wc+0x7f> else if(!inword){ 6e: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 72: 75 0b jne 7f <wc+0x7f> w++; 74: 83 45 ec 01 addl $0x1,-0x14(%ebp) inword = 1; 78: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ for(i=0; i<n; i++){ 7f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 83: 8b 45 f4 mov -0xc(%ebp),%eax 86: 3b 45 e0 cmp -0x20(%ebp),%eax 89: 7c a0 jl 2b <wc+0x2b> int i, n; int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ 8b: 83 ec 04 sub $0x4,%esp 8e: 68 00 02 00 00 push $0x200 93: 68 40 0c 00 00 push $0xc40 98: ff 75 08 pushl 0x8(%ebp) 9b: e8 8c 03 00 00 call 42c <read> a0: 83 c4 10 add $0x10,%esp a3: 89 45 e0 mov %eax,-0x20(%ebp) a6: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) aa: 0f 8f 72 ff ff ff jg 22 <wc+0x22> w++; inword = 1; } } } if(n < 0){ b0: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) b4: 79 17 jns cd <wc+0xcd> printf(1, "wc: read error\n"); b6: 83 ec 08 sub $0x8,%esp b9: 68 57 09 00 00 push $0x957 be: 6a 01 push $0x1 c0: e8 d6 04 00 00 call 59b <printf> c5: 83 c4 10 add $0x10,%esp exit(); c8: e8 47 03 00 00 call 414 <exit> } printf(1, "%d %d %d %s\n", l, w, c, name); cd: 83 ec 08 sub $0x8,%esp d0: ff 75 0c pushl 0xc(%ebp) d3: ff 75 e8 pushl -0x18(%ebp) d6: ff 75 ec pushl -0x14(%ebp) d9: ff 75 f0 pushl -0x10(%ebp) dc: 68 67 09 00 00 push $0x967 e1: 6a 01 push $0x1 e3: e8 b3 04 00 00 call 59b <printf> e8: 83 c4 20 add $0x20,%esp } eb: 90 nop ec: c9 leave ed: c3 ret 000000ee <main>: int main(int argc, char *argv[]) { ee: 8d 4c 24 04 lea 0x4(%esp),%ecx f2: 83 e4 f0 and $0xfffffff0,%esp f5: ff 71 fc pushl -0x4(%ecx) f8: 55 push %ebp f9: 89 e5 mov %esp,%ebp fb: 53 push %ebx fc: 51 push %ecx fd: 83 ec 10 sub $0x10,%esp 100: 89 cb mov %ecx,%ebx int fd, i; if(argc <= 1){ 102: 83 3b 01 cmpl $0x1,(%ebx) 105: 7f 17 jg 11e <main+0x30> wc(0, ""); 107: 83 ec 08 sub $0x8,%esp 10a: 68 74 09 00 00 push $0x974 10f: 6a 00 push $0x0 111: e8 ea fe ff ff call 0 <wc> 116: 83 c4 10 add $0x10,%esp exit(); 119: e8 f6 02 00 00 call 414 <exit> } for(i = 1; i < argc; i++){ 11e: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 125: e9 83 00 00 00 jmp 1ad <main+0xbf> if((fd = open(argv[i], 0)) < 0){ 12a: 8b 45 f4 mov -0xc(%ebp),%eax 12d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 134: 8b 43 04 mov 0x4(%ebx),%eax 137: 01 d0 add %edx,%eax 139: 8b 00 mov (%eax),%eax 13b: 83 ec 08 sub $0x8,%esp 13e: 6a 00 push $0x0 140: 50 push %eax 141: e8 0e 03 00 00 call 454 <open> 146: 83 c4 10 add $0x10,%esp 149: 89 45 f0 mov %eax,-0x10(%ebp) 14c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 150: 79 29 jns 17b <main+0x8d> printf(1, "wc: cannot open %s\n", argv[i]); 152: 8b 45 f4 mov -0xc(%ebp),%eax 155: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 15c: 8b 43 04 mov 0x4(%ebx),%eax 15f: 01 d0 add %edx,%eax 161: 8b 00 mov (%eax),%eax 163: 83 ec 04 sub $0x4,%esp 166: 50 push %eax 167: 68 75 09 00 00 push $0x975 16c: 6a 01 push $0x1 16e: e8 28 04 00 00 call 59b <printf> 173: 83 c4 10 add $0x10,%esp exit(); 176: e8 99 02 00 00 call 414 <exit> } wc(fd, argv[i]); 17b: 8b 45 f4 mov -0xc(%ebp),%eax 17e: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 185: 8b 43 04 mov 0x4(%ebx),%eax 188: 01 d0 add %edx,%eax 18a: 8b 00 mov (%eax),%eax 18c: 83 ec 08 sub $0x8,%esp 18f: 50 push %eax 190: ff 75 f0 pushl -0x10(%ebp) 193: e8 68 fe ff ff call 0 <wc> 198: 83 c4 10 add $0x10,%esp close(fd); 19b: 83 ec 0c sub $0xc,%esp 19e: ff 75 f0 pushl -0x10(%ebp) 1a1: e8 96 02 00 00 call 43c <close> 1a6: 83 c4 10 add $0x10,%esp if(argc <= 1){ wc(0, ""); exit(); } for(i = 1; i < argc; i++){ 1a9: 83 45 f4 01 addl $0x1,-0xc(%ebp) 1ad: 8b 45 f4 mov -0xc(%ebp),%eax 1b0: 3b 03 cmp (%ebx),%eax 1b2: 0f 8c 72 ff ff ff jl 12a <main+0x3c> exit(); } wc(fd, argv[i]); close(fd); } exit(); 1b8: e8 57 02 00 00 call 414 <exit> 000001bd <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 1bd: 55 push %ebp 1be: 89 e5 mov %esp,%ebp 1c0: 57 push %edi 1c1: 53 push %ebx asm volatile("cld; rep stosb" : 1c2: 8b 4d 08 mov 0x8(%ebp),%ecx 1c5: 8b 55 10 mov 0x10(%ebp),%edx 1c8: 8b 45 0c mov 0xc(%ebp),%eax 1cb: 89 cb mov %ecx,%ebx 1cd: 89 df mov %ebx,%edi 1cf: 89 d1 mov %edx,%ecx 1d1: fc cld 1d2: f3 aa rep stos %al,%es:(%edi) 1d4: 89 ca mov %ecx,%edx 1d6: 89 fb mov %edi,%ebx 1d8: 89 5d 08 mov %ebx,0x8(%ebp) 1db: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 1de: 90 nop 1df: 5b pop %ebx 1e0: 5f pop %edi 1e1: 5d pop %ebp 1e2: c3 ret 000001e3 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1e3: 55 push %ebp 1e4: 89 e5 mov %esp,%ebp 1e6: 83 ec 10 sub $0x10,%esp char *os; os = s; 1e9: 8b 45 08 mov 0x8(%ebp),%eax 1ec: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 1ef: 90 nop 1f0: 8b 45 08 mov 0x8(%ebp),%eax 1f3: 8d 50 01 lea 0x1(%eax),%edx 1f6: 89 55 08 mov %edx,0x8(%ebp) 1f9: 8b 55 0c mov 0xc(%ebp),%edx 1fc: 8d 4a 01 lea 0x1(%edx),%ecx 1ff: 89 4d 0c mov %ecx,0xc(%ebp) 202: 0f b6 12 movzbl (%edx),%edx 205: 88 10 mov %dl,(%eax) 207: 0f b6 00 movzbl (%eax),%eax 20a: 84 c0 test %al,%al 20c: 75 e2 jne 1f0 <strcpy+0xd> ; return os; 20e: 8b 45 fc mov -0x4(%ebp),%eax } 211: c9 leave 212: c3 ret 00000213 <strcmp>: int strcmp(const char *p, const char *q) { 213: 55 push %ebp 214: 89 e5 mov %esp,%ebp while(*p && *p == *q) 216: eb 08 jmp 220 <strcmp+0xd> p++, q++; 218: 83 45 08 01 addl $0x1,0x8(%ebp) 21c: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 220: 8b 45 08 mov 0x8(%ebp),%eax 223: 0f b6 00 movzbl (%eax),%eax 226: 84 c0 test %al,%al 228: 74 10 je 23a <strcmp+0x27> 22a: 8b 45 08 mov 0x8(%ebp),%eax 22d: 0f b6 10 movzbl (%eax),%edx 230: 8b 45 0c mov 0xc(%ebp),%eax 233: 0f b6 00 movzbl (%eax),%eax 236: 38 c2 cmp %al,%dl 238: 74 de je 218 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 23a: 8b 45 08 mov 0x8(%ebp),%eax 23d: 0f b6 00 movzbl (%eax),%eax 240: 0f b6 d0 movzbl %al,%edx 243: 8b 45 0c mov 0xc(%ebp),%eax 246: 0f b6 00 movzbl (%eax),%eax 249: 0f b6 c0 movzbl %al,%eax 24c: 29 c2 sub %eax,%edx 24e: 89 d0 mov %edx,%eax } 250: 5d pop %ebp 251: c3 ret 00000252 <strlen>: uint strlen(char *s) { 252: 55 push %ebp 253: 89 e5 mov %esp,%ebp 255: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 258: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 25f: eb 04 jmp 265 <strlen+0x13> 261: 83 45 fc 01 addl $0x1,-0x4(%ebp) 265: 8b 55 fc mov -0x4(%ebp),%edx 268: 8b 45 08 mov 0x8(%ebp),%eax 26b: 01 d0 add %edx,%eax 26d: 0f b6 00 movzbl (%eax),%eax 270: 84 c0 test %al,%al 272: 75 ed jne 261 <strlen+0xf> ; return n; 274: 8b 45 fc mov -0x4(%ebp),%eax } 277: c9 leave 278: c3 ret 00000279 <memset>: void* memset(void *dst, int c, uint n) { 279: 55 push %ebp 27a: 89 e5 mov %esp,%ebp stosb(dst, c, n); 27c: 8b 45 10 mov 0x10(%ebp),%eax 27f: 50 push %eax 280: ff 75 0c pushl 0xc(%ebp) 283: ff 75 08 pushl 0x8(%ebp) 286: e8 32 ff ff ff call 1bd <stosb> 28b: 83 c4 0c add $0xc,%esp return dst; 28e: 8b 45 08 mov 0x8(%ebp),%eax } 291: c9 leave 292: c3 ret 00000293 <strchr>: char* strchr(const char *s, char c) { 293: 55 push %ebp 294: 89 e5 mov %esp,%ebp 296: 83 ec 04 sub $0x4,%esp 299: 8b 45 0c mov 0xc(%ebp),%eax 29c: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 29f: eb 14 jmp 2b5 <strchr+0x22> if(*s == c) 2a1: 8b 45 08 mov 0x8(%ebp),%eax 2a4: 0f b6 00 movzbl (%eax),%eax 2a7: 3a 45 fc cmp -0x4(%ebp),%al 2aa: 75 05 jne 2b1 <strchr+0x1e> return (char*)s; 2ac: 8b 45 08 mov 0x8(%ebp),%eax 2af: eb 13 jmp 2c4 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 2b1: 83 45 08 01 addl $0x1,0x8(%ebp) 2b5: 8b 45 08 mov 0x8(%ebp),%eax 2b8: 0f b6 00 movzbl (%eax),%eax 2bb: 84 c0 test %al,%al 2bd: 75 e2 jne 2a1 <strchr+0xe> if(*s == c) return (char*)s; return 0; 2bf: b8 00 00 00 00 mov $0x0,%eax } 2c4: c9 leave 2c5: c3 ret 000002c6 <gets>: char* gets(char *buf, int max) { 2c6: 55 push %ebp 2c7: 89 e5 mov %esp,%ebp 2c9: 83 ec 18 sub $0x18,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 2cc: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 2d3: eb 42 jmp 317 <gets+0x51> cc = read(0, &c, 1); 2d5: 83 ec 04 sub $0x4,%esp 2d8: 6a 01 push $0x1 2da: 8d 45 ef lea -0x11(%ebp),%eax 2dd: 50 push %eax 2de: 6a 00 push $0x0 2e0: e8 47 01 00 00 call 42c <read> 2e5: 83 c4 10 add $0x10,%esp 2e8: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 2eb: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 2ef: 7e 33 jle 324 <gets+0x5e> break; buf[i++] = c; 2f1: 8b 45 f4 mov -0xc(%ebp),%eax 2f4: 8d 50 01 lea 0x1(%eax),%edx 2f7: 89 55 f4 mov %edx,-0xc(%ebp) 2fa: 89 c2 mov %eax,%edx 2fc: 8b 45 08 mov 0x8(%ebp),%eax 2ff: 01 c2 add %eax,%edx 301: 0f b6 45 ef movzbl -0x11(%ebp),%eax 305: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 307: 0f b6 45 ef movzbl -0x11(%ebp),%eax 30b: 3c 0a cmp $0xa,%al 30d: 74 16 je 325 <gets+0x5f> 30f: 0f b6 45 ef movzbl -0x11(%ebp),%eax 313: 3c 0d cmp $0xd,%al 315: 74 0e je 325 <gets+0x5f> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 317: 8b 45 f4 mov -0xc(%ebp),%eax 31a: 83 c0 01 add $0x1,%eax 31d: 3b 45 0c cmp 0xc(%ebp),%eax 320: 7c b3 jl 2d5 <gets+0xf> 322: eb 01 jmp 325 <gets+0x5f> cc = read(0, &c, 1); if(cc < 1) break; 324: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 325: 8b 55 f4 mov -0xc(%ebp),%edx 328: 8b 45 08 mov 0x8(%ebp),%eax 32b: 01 d0 add %edx,%eax 32d: c6 00 00 movb $0x0,(%eax) return buf; 330: 8b 45 08 mov 0x8(%ebp),%eax } 333: c9 leave 334: c3 ret 00000335 <stat>: int stat(char *n, struct stat *st) { 335: 55 push %ebp 336: 89 e5 mov %esp,%ebp 338: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 33b: 83 ec 08 sub $0x8,%esp 33e: 6a 00 push $0x0 340: ff 75 08 pushl 0x8(%ebp) 343: e8 0c 01 00 00 call 454 <open> 348: 83 c4 10 add $0x10,%esp 34b: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 34e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 352: 79 07 jns 35b <stat+0x26> return -1; 354: b8 ff ff ff ff mov $0xffffffff,%eax 359: eb 25 jmp 380 <stat+0x4b> r = fstat(fd, st); 35b: 83 ec 08 sub $0x8,%esp 35e: ff 75 0c pushl 0xc(%ebp) 361: ff 75 f4 pushl -0xc(%ebp) 364: e8 03 01 00 00 call 46c <fstat> 369: 83 c4 10 add $0x10,%esp 36c: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 36f: 83 ec 0c sub $0xc,%esp 372: ff 75 f4 pushl -0xc(%ebp) 375: e8 c2 00 00 00 call 43c <close> 37a: 83 c4 10 add $0x10,%esp return r; 37d: 8b 45 f0 mov -0x10(%ebp),%eax } 380: c9 leave 381: c3 ret 00000382 <atoi>: int atoi(const char *s) { 382: 55 push %ebp 383: 89 e5 mov %esp,%ebp 385: 83 ec 10 sub $0x10,%esp int n; n = 0; 388: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 38f: eb 25 jmp 3b6 <atoi+0x34> n = n*10 + *s++ - '0'; 391: 8b 55 fc mov -0x4(%ebp),%edx 394: 89 d0 mov %edx,%eax 396: c1 e0 02 shl $0x2,%eax 399: 01 d0 add %edx,%eax 39b: 01 c0 add %eax,%eax 39d: 89 c1 mov %eax,%ecx 39f: 8b 45 08 mov 0x8(%ebp),%eax 3a2: 8d 50 01 lea 0x1(%eax),%edx 3a5: 89 55 08 mov %edx,0x8(%ebp) 3a8: 0f b6 00 movzbl (%eax),%eax 3ab: 0f be c0 movsbl %al,%eax 3ae: 01 c8 add %ecx,%eax 3b0: 83 e8 30 sub $0x30,%eax 3b3: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 3b6: 8b 45 08 mov 0x8(%ebp),%eax 3b9: 0f b6 00 movzbl (%eax),%eax 3bc: 3c 2f cmp $0x2f,%al 3be: 7e 0a jle 3ca <atoi+0x48> 3c0: 8b 45 08 mov 0x8(%ebp),%eax 3c3: 0f b6 00 movzbl (%eax),%eax 3c6: 3c 39 cmp $0x39,%al 3c8: 7e c7 jle 391 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 3ca: 8b 45 fc mov -0x4(%ebp),%eax } 3cd: c9 leave 3ce: c3 ret 000003cf <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 3cf: 55 push %ebp 3d0: 89 e5 mov %esp,%ebp 3d2: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 3d5: 8b 45 08 mov 0x8(%ebp),%eax 3d8: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 3db: 8b 45 0c mov 0xc(%ebp),%eax 3de: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 3e1: eb 17 jmp 3fa <memmove+0x2b> *dst++ = *src++; 3e3: 8b 45 fc mov -0x4(%ebp),%eax 3e6: 8d 50 01 lea 0x1(%eax),%edx 3e9: 89 55 fc mov %edx,-0x4(%ebp) 3ec: 8b 55 f8 mov -0x8(%ebp),%edx 3ef: 8d 4a 01 lea 0x1(%edx),%ecx 3f2: 89 4d f8 mov %ecx,-0x8(%ebp) 3f5: 0f b6 12 movzbl (%edx),%edx 3f8: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 3fa: 8b 45 10 mov 0x10(%ebp),%eax 3fd: 8d 50 ff lea -0x1(%eax),%edx 400: 89 55 10 mov %edx,0x10(%ebp) 403: 85 c0 test %eax,%eax 405: 7f dc jg 3e3 <memmove+0x14> *dst++ = *src++; return vdst; 407: 8b 45 08 mov 0x8(%ebp),%eax } 40a: c9 leave 40b: c3 ret 0000040c <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 40c: b8 01 00 00 00 mov $0x1,%eax 411: cd 40 int $0x40 413: c3 ret 00000414 <exit>: SYSCALL(exit) 414: b8 02 00 00 00 mov $0x2,%eax 419: cd 40 int $0x40 41b: c3 ret 0000041c <wait>: SYSCALL(wait) 41c: b8 03 00 00 00 mov $0x3,%eax 421: cd 40 int $0x40 423: c3 ret 00000424 <pipe>: SYSCALL(pipe) 424: b8 04 00 00 00 mov $0x4,%eax 429: cd 40 int $0x40 42b: c3 ret 0000042c <read>: SYSCALL(read) 42c: b8 05 00 00 00 mov $0x5,%eax 431: cd 40 int $0x40 433: c3 ret 00000434 <write>: SYSCALL(write) 434: b8 10 00 00 00 mov $0x10,%eax 439: cd 40 int $0x40 43b: c3 ret 0000043c <close>: SYSCALL(close) 43c: b8 15 00 00 00 mov $0x15,%eax 441: cd 40 int $0x40 443: c3 ret 00000444 <kill>: SYSCALL(kill) 444: b8 06 00 00 00 mov $0x6,%eax 449: cd 40 int $0x40 44b: c3 ret 0000044c <exec>: SYSCALL(exec) 44c: b8 07 00 00 00 mov $0x7,%eax 451: cd 40 int $0x40 453: c3 ret 00000454 <open>: SYSCALL(open) 454: b8 0f 00 00 00 mov $0xf,%eax 459: cd 40 int $0x40 45b: c3 ret 0000045c <mknod>: SYSCALL(mknod) 45c: b8 11 00 00 00 mov $0x11,%eax 461: cd 40 int $0x40 463: c3 ret 00000464 <unlink>: SYSCALL(unlink) 464: b8 12 00 00 00 mov $0x12,%eax 469: cd 40 int $0x40 46b: c3 ret 0000046c <fstat>: SYSCALL(fstat) 46c: b8 08 00 00 00 mov $0x8,%eax 471: cd 40 int $0x40 473: c3 ret 00000474 <link>: SYSCALL(link) 474: b8 13 00 00 00 mov $0x13,%eax 479: cd 40 int $0x40 47b: c3 ret 0000047c <mkdir>: SYSCALL(mkdir) 47c: b8 14 00 00 00 mov $0x14,%eax 481: cd 40 int $0x40 483: c3 ret 00000484 <chdir>: SYSCALL(chdir) 484: b8 09 00 00 00 mov $0x9,%eax 489: cd 40 int $0x40 48b: c3 ret 0000048c <dup>: SYSCALL(dup) 48c: b8 0a 00 00 00 mov $0xa,%eax 491: cd 40 int $0x40 493: c3 ret 00000494 <getpid>: SYSCALL(getpid) 494: b8 0b 00 00 00 mov $0xb,%eax 499: cd 40 int $0x40 49b: c3 ret 0000049c <sbrk>: SYSCALL(sbrk) 49c: b8 0c 00 00 00 mov $0xc,%eax 4a1: cd 40 int $0x40 4a3: c3 ret 000004a4 <sleep>: SYSCALL(sleep) 4a4: b8 0d 00 00 00 mov $0xd,%eax 4a9: cd 40 int $0x40 4ab: c3 ret 000004ac <uptime>: SYSCALL(uptime) 4ac: b8 0e 00 00 00 mov $0xe,%eax 4b1: cd 40 int $0x40 4b3: c3 ret 000004b4 <settickets>: SYSCALL(settickets) 4b4: b8 16 00 00 00 mov $0x16,%eax 4b9: cd 40 int $0x40 4bb: c3 ret 000004bc <gettime>: 4bc: b8 17 00 00 00 mov $0x17,%eax 4c1: cd 40 int $0x40 4c3: c3 ret 000004c4 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 4c4: 55 push %ebp 4c5: 89 e5 mov %esp,%ebp 4c7: 83 ec 18 sub $0x18,%esp 4ca: 8b 45 0c mov 0xc(%ebp),%eax 4cd: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 4d0: 83 ec 04 sub $0x4,%esp 4d3: 6a 01 push $0x1 4d5: 8d 45 f4 lea -0xc(%ebp),%eax 4d8: 50 push %eax 4d9: ff 75 08 pushl 0x8(%ebp) 4dc: e8 53 ff ff ff call 434 <write> 4e1: 83 c4 10 add $0x10,%esp } 4e4: 90 nop 4e5: c9 leave 4e6: c3 ret 000004e7 <printint>: static void printint(int fd, int xx, int base, int sgn) { 4e7: 55 push %ebp 4e8: 89 e5 mov %esp,%ebp 4ea: 53 push %ebx 4eb: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 4ee: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 4f5: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 4f9: 74 17 je 512 <printint+0x2b> 4fb: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 4ff: 79 11 jns 512 <printint+0x2b> neg = 1; 501: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 508: 8b 45 0c mov 0xc(%ebp),%eax 50b: f7 d8 neg %eax 50d: 89 45 ec mov %eax,-0x14(%ebp) 510: eb 06 jmp 518 <printint+0x31> } else { x = xx; 512: 8b 45 0c mov 0xc(%ebp),%eax 515: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 518: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 51f: 8b 4d f4 mov -0xc(%ebp),%ecx 522: 8d 41 01 lea 0x1(%ecx),%eax 525: 89 45 f4 mov %eax,-0xc(%ebp) 528: 8b 5d 10 mov 0x10(%ebp),%ebx 52b: 8b 45 ec mov -0x14(%ebp),%eax 52e: ba 00 00 00 00 mov $0x0,%edx 533: f7 f3 div %ebx 535: 89 d0 mov %edx,%eax 537: 0f b6 80 fc 0b 00 00 movzbl 0xbfc(%eax),%eax 53e: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 542: 8b 5d 10 mov 0x10(%ebp),%ebx 545: 8b 45 ec mov -0x14(%ebp),%eax 548: ba 00 00 00 00 mov $0x0,%edx 54d: f7 f3 div %ebx 54f: 89 45 ec mov %eax,-0x14(%ebp) 552: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 556: 75 c7 jne 51f <printint+0x38> if(neg) 558: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 55c: 74 2d je 58b <printint+0xa4> buf[i++] = '-'; 55e: 8b 45 f4 mov -0xc(%ebp),%eax 561: 8d 50 01 lea 0x1(%eax),%edx 564: 89 55 f4 mov %edx,-0xc(%ebp) 567: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 56c: eb 1d jmp 58b <printint+0xa4> putc(fd, buf[i]); 56e: 8d 55 dc lea -0x24(%ebp),%edx 571: 8b 45 f4 mov -0xc(%ebp),%eax 574: 01 d0 add %edx,%eax 576: 0f b6 00 movzbl (%eax),%eax 579: 0f be c0 movsbl %al,%eax 57c: 83 ec 08 sub $0x8,%esp 57f: 50 push %eax 580: ff 75 08 pushl 0x8(%ebp) 583: e8 3c ff ff ff call 4c4 <putc> 588: 83 c4 10 add $0x10,%esp buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 58b: 83 6d f4 01 subl $0x1,-0xc(%ebp) 58f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 593: 79 d9 jns 56e <printint+0x87> putc(fd, buf[i]); } 595: 90 nop 596: 8b 5d fc mov -0x4(%ebp),%ebx 599: c9 leave 59a: c3 ret 0000059b <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 59b: 55 push %ebp 59c: 89 e5 mov %esp,%ebp 59e: 83 ec 28 sub $0x28,%esp char *s; int c, i, state; uint *ap; state = 0; 5a1: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 5a8: 8d 45 0c lea 0xc(%ebp),%eax 5ab: 83 c0 04 add $0x4,%eax 5ae: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 5b1: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 5b8: e9 59 01 00 00 jmp 716 <printf+0x17b> c = fmt[i] & 0xff; 5bd: 8b 55 0c mov 0xc(%ebp),%edx 5c0: 8b 45 f0 mov -0x10(%ebp),%eax 5c3: 01 d0 add %edx,%eax 5c5: 0f b6 00 movzbl (%eax),%eax 5c8: 0f be c0 movsbl %al,%eax 5cb: 25 ff 00 00 00 and $0xff,%eax 5d0: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 5d3: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 5d7: 75 2c jne 605 <printf+0x6a> if(c == '%'){ 5d9: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 5dd: 75 0c jne 5eb <printf+0x50> state = '%'; 5df: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 5e6: e9 27 01 00 00 jmp 712 <printf+0x177> } else { putc(fd, c); 5eb: 8b 45 e4 mov -0x1c(%ebp),%eax 5ee: 0f be c0 movsbl %al,%eax 5f1: 83 ec 08 sub $0x8,%esp 5f4: 50 push %eax 5f5: ff 75 08 pushl 0x8(%ebp) 5f8: e8 c7 fe ff ff call 4c4 <putc> 5fd: 83 c4 10 add $0x10,%esp 600: e9 0d 01 00 00 jmp 712 <printf+0x177> } } else if(state == '%'){ 605: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 609: 0f 85 03 01 00 00 jne 712 <printf+0x177> if(c == 'd'){ 60f: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 613: 75 1e jne 633 <printf+0x98> printint(fd, *ap, 10, 1); 615: 8b 45 e8 mov -0x18(%ebp),%eax 618: 8b 00 mov (%eax),%eax 61a: 6a 01 push $0x1 61c: 6a 0a push $0xa 61e: 50 push %eax 61f: ff 75 08 pushl 0x8(%ebp) 622: e8 c0 fe ff ff call 4e7 <printint> 627: 83 c4 10 add $0x10,%esp ap++; 62a: 83 45 e8 04 addl $0x4,-0x18(%ebp) 62e: e9 d8 00 00 00 jmp 70b <printf+0x170> } else if(c == 'x' || c == 'p'){ 633: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 637: 74 06 je 63f <printf+0xa4> 639: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 63d: 75 1e jne 65d <printf+0xc2> printint(fd, *ap, 16, 0); 63f: 8b 45 e8 mov -0x18(%ebp),%eax 642: 8b 00 mov (%eax),%eax 644: 6a 00 push $0x0 646: 6a 10 push $0x10 648: 50 push %eax 649: ff 75 08 pushl 0x8(%ebp) 64c: e8 96 fe ff ff call 4e7 <printint> 651: 83 c4 10 add $0x10,%esp ap++; 654: 83 45 e8 04 addl $0x4,-0x18(%ebp) 658: e9 ae 00 00 00 jmp 70b <printf+0x170> } else if(c == 's'){ 65d: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 661: 75 43 jne 6a6 <printf+0x10b> s = (char*)*ap; 663: 8b 45 e8 mov -0x18(%ebp),%eax 666: 8b 00 mov (%eax),%eax 668: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 66b: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 66f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 673: 75 25 jne 69a <printf+0xff> s = "(null)"; 675: c7 45 f4 89 09 00 00 movl $0x989,-0xc(%ebp) while(*s != 0){ 67c: eb 1c jmp 69a <printf+0xff> putc(fd, *s); 67e: 8b 45 f4 mov -0xc(%ebp),%eax 681: 0f b6 00 movzbl (%eax),%eax 684: 0f be c0 movsbl %al,%eax 687: 83 ec 08 sub $0x8,%esp 68a: 50 push %eax 68b: ff 75 08 pushl 0x8(%ebp) 68e: e8 31 fe ff ff call 4c4 <putc> 693: 83 c4 10 add $0x10,%esp s++; 696: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 69a: 8b 45 f4 mov -0xc(%ebp),%eax 69d: 0f b6 00 movzbl (%eax),%eax 6a0: 84 c0 test %al,%al 6a2: 75 da jne 67e <printf+0xe3> 6a4: eb 65 jmp 70b <printf+0x170> putc(fd, *s); s++; } } else if(c == 'c'){ 6a6: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 6aa: 75 1d jne 6c9 <printf+0x12e> putc(fd, *ap); 6ac: 8b 45 e8 mov -0x18(%ebp),%eax 6af: 8b 00 mov (%eax),%eax 6b1: 0f be c0 movsbl %al,%eax 6b4: 83 ec 08 sub $0x8,%esp 6b7: 50 push %eax 6b8: ff 75 08 pushl 0x8(%ebp) 6bb: e8 04 fe ff ff call 4c4 <putc> 6c0: 83 c4 10 add $0x10,%esp ap++; 6c3: 83 45 e8 04 addl $0x4,-0x18(%ebp) 6c7: eb 42 jmp 70b <printf+0x170> } else if(c == '%'){ 6c9: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 6cd: 75 17 jne 6e6 <printf+0x14b> putc(fd, c); 6cf: 8b 45 e4 mov -0x1c(%ebp),%eax 6d2: 0f be c0 movsbl %al,%eax 6d5: 83 ec 08 sub $0x8,%esp 6d8: 50 push %eax 6d9: ff 75 08 pushl 0x8(%ebp) 6dc: e8 e3 fd ff ff call 4c4 <putc> 6e1: 83 c4 10 add $0x10,%esp 6e4: eb 25 jmp 70b <printf+0x170> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 6e6: 83 ec 08 sub $0x8,%esp 6e9: 6a 25 push $0x25 6eb: ff 75 08 pushl 0x8(%ebp) 6ee: e8 d1 fd ff ff call 4c4 <putc> 6f3: 83 c4 10 add $0x10,%esp putc(fd, c); 6f6: 8b 45 e4 mov -0x1c(%ebp),%eax 6f9: 0f be c0 movsbl %al,%eax 6fc: 83 ec 08 sub $0x8,%esp 6ff: 50 push %eax 700: ff 75 08 pushl 0x8(%ebp) 703: e8 bc fd ff ff call 4c4 <putc> 708: 83 c4 10 add $0x10,%esp } state = 0; 70b: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 712: 83 45 f0 01 addl $0x1,-0x10(%ebp) 716: 8b 55 0c mov 0xc(%ebp),%edx 719: 8b 45 f0 mov -0x10(%ebp),%eax 71c: 01 d0 add %edx,%eax 71e: 0f b6 00 movzbl (%eax),%eax 721: 84 c0 test %al,%al 723: 0f 85 94 fe ff ff jne 5bd <printf+0x22> putc(fd, c); } state = 0; } } } 729: 90 nop 72a: c9 leave 72b: c3 ret 0000072c <free>: static Header base; static Header *freep; void free(void *ap) { 72c: 55 push %ebp 72d: 89 e5 mov %esp,%ebp 72f: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 732: 8b 45 08 mov 0x8(%ebp),%eax 735: 83 e8 08 sub $0x8,%eax 738: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 73b: a1 28 0c 00 00 mov 0xc28,%eax 740: 89 45 fc mov %eax,-0x4(%ebp) 743: eb 24 jmp 769 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 745: 8b 45 fc mov -0x4(%ebp),%eax 748: 8b 00 mov (%eax),%eax 74a: 3b 45 fc cmp -0x4(%ebp),%eax 74d: 77 12 ja 761 <free+0x35> 74f: 8b 45 f8 mov -0x8(%ebp),%eax 752: 3b 45 fc cmp -0x4(%ebp),%eax 755: 77 24 ja 77b <free+0x4f> 757: 8b 45 fc mov -0x4(%ebp),%eax 75a: 8b 00 mov (%eax),%eax 75c: 3b 45 f8 cmp -0x8(%ebp),%eax 75f: 77 1a ja 77b <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 761: 8b 45 fc mov -0x4(%ebp),%eax 764: 8b 00 mov (%eax),%eax 766: 89 45 fc mov %eax,-0x4(%ebp) 769: 8b 45 f8 mov -0x8(%ebp),%eax 76c: 3b 45 fc cmp -0x4(%ebp),%eax 76f: 76 d4 jbe 745 <free+0x19> 771: 8b 45 fc mov -0x4(%ebp),%eax 774: 8b 00 mov (%eax),%eax 776: 3b 45 f8 cmp -0x8(%ebp),%eax 779: 76 ca jbe 745 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 77b: 8b 45 f8 mov -0x8(%ebp),%eax 77e: 8b 40 04 mov 0x4(%eax),%eax 781: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 788: 8b 45 f8 mov -0x8(%ebp),%eax 78b: 01 c2 add %eax,%edx 78d: 8b 45 fc mov -0x4(%ebp),%eax 790: 8b 00 mov (%eax),%eax 792: 39 c2 cmp %eax,%edx 794: 75 24 jne 7ba <free+0x8e> bp->s.size += p->s.ptr->s.size; 796: 8b 45 f8 mov -0x8(%ebp),%eax 799: 8b 50 04 mov 0x4(%eax),%edx 79c: 8b 45 fc mov -0x4(%ebp),%eax 79f: 8b 00 mov (%eax),%eax 7a1: 8b 40 04 mov 0x4(%eax),%eax 7a4: 01 c2 add %eax,%edx 7a6: 8b 45 f8 mov -0x8(%ebp),%eax 7a9: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 7ac: 8b 45 fc mov -0x4(%ebp),%eax 7af: 8b 00 mov (%eax),%eax 7b1: 8b 10 mov (%eax),%edx 7b3: 8b 45 f8 mov -0x8(%ebp),%eax 7b6: 89 10 mov %edx,(%eax) 7b8: eb 0a jmp 7c4 <free+0x98> } else bp->s.ptr = p->s.ptr; 7ba: 8b 45 fc mov -0x4(%ebp),%eax 7bd: 8b 10 mov (%eax),%edx 7bf: 8b 45 f8 mov -0x8(%ebp),%eax 7c2: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 7c4: 8b 45 fc mov -0x4(%ebp),%eax 7c7: 8b 40 04 mov 0x4(%eax),%eax 7ca: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 7d1: 8b 45 fc mov -0x4(%ebp),%eax 7d4: 01 d0 add %edx,%eax 7d6: 3b 45 f8 cmp -0x8(%ebp),%eax 7d9: 75 20 jne 7fb <free+0xcf> p->s.size += bp->s.size; 7db: 8b 45 fc mov -0x4(%ebp),%eax 7de: 8b 50 04 mov 0x4(%eax),%edx 7e1: 8b 45 f8 mov -0x8(%ebp),%eax 7e4: 8b 40 04 mov 0x4(%eax),%eax 7e7: 01 c2 add %eax,%edx 7e9: 8b 45 fc mov -0x4(%ebp),%eax 7ec: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 7ef: 8b 45 f8 mov -0x8(%ebp),%eax 7f2: 8b 10 mov (%eax),%edx 7f4: 8b 45 fc mov -0x4(%ebp),%eax 7f7: 89 10 mov %edx,(%eax) 7f9: eb 08 jmp 803 <free+0xd7> } else p->s.ptr = bp; 7fb: 8b 45 fc mov -0x4(%ebp),%eax 7fe: 8b 55 f8 mov -0x8(%ebp),%edx 801: 89 10 mov %edx,(%eax) freep = p; 803: 8b 45 fc mov -0x4(%ebp),%eax 806: a3 28 0c 00 00 mov %eax,0xc28 } 80b: 90 nop 80c: c9 leave 80d: c3 ret 0000080e <morecore>: static Header* morecore(uint nu) { 80e: 55 push %ebp 80f: 89 e5 mov %esp,%ebp 811: 83 ec 18 sub $0x18,%esp char *p; Header *hp; if(nu < 4096) 814: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 81b: 77 07 ja 824 <morecore+0x16> nu = 4096; 81d: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 824: 8b 45 08 mov 0x8(%ebp),%eax 827: c1 e0 03 shl $0x3,%eax 82a: 83 ec 0c sub $0xc,%esp 82d: 50 push %eax 82e: e8 69 fc ff ff call 49c <sbrk> 833: 83 c4 10 add $0x10,%esp 836: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 839: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 83d: 75 07 jne 846 <morecore+0x38> return 0; 83f: b8 00 00 00 00 mov $0x0,%eax 844: eb 26 jmp 86c <morecore+0x5e> hp = (Header*)p; 846: 8b 45 f4 mov -0xc(%ebp),%eax 849: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 84c: 8b 45 f0 mov -0x10(%ebp),%eax 84f: 8b 55 08 mov 0x8(%ebp),%edx 852: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 855: 8b 45 f0 mov -0x10(%ebp),%eax 858: 83 c0 08 add $0x8,%eax 85b: 83 ec 0c sub $0xc,%esp 85e: 50 push %eax 85f: e8 c8 fe ff ff call 72c <free> 864: 83 c4 10 add $0x10,%esp return freep; 867: a1 28 0c 00 00 mov 0xc28,%eax } 86c: c9 leave 86d: c3 ret 0000086e <malloc>: void* malloc(uint nbytes) { 86e: 55 push %ebp 86f: 89 e5 mov %esp,%ebp 871: 83 ec 18 sub $0x18,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 874: 8b 45 08 mov 0x8(%ebp),%eax 877: 83 c0 07 add $0x7,%eax 87a: c1 e8 03 shr $0x3,%eax 87d: 83 c0 01 add $0x1,%eax 880: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 883: a1 28 0c 00 00 mov 0xc28,%eax 888: 89 45 f0 mov %eax,-0x10(%ebp) 88b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 88f: 75 23 jne 8b4 <malloc+0x46> base.s.ptr = freep = prevp = &base; 891: c7 45 f0 20 0c 00 00 movl $0xc20,-0x10(%ebp) 898: 8b 45 f0 mov -0x10(%ebp),%eax 89b: a3 28 0c 00 00 mov %eax,0xc28 8a0: a1 28 0c 00 00 mov 0xc28,%eax 8a5: a3 20 0c 00 00 mov %eax,0xc20 base.s.size = 0; 8aa: c7 05 24 0c 00 00 00 movl $0x0,0xc24 8b1: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 8b4: 8b 45 f0 mov -0x10(%ebp),%eax 8b7: 8b 00 mov (%eax),%eax 8b9: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 8bc: 8b 45 f4 mov -0xc(%ebp),%eax 8bf: 8b 40 04 mov 0x4(%eax),%eax 8c2: 3b 45 ec cmp -0x14(%ebp),%eax 8c5: 72 4d jb 914 <malloc+0xa6> if(p->s.size == nunits) 8c7: 8b 45 f4 mov -0xc(%ebp),%eax 8ca: 8b 40 04 mov 0x4(%eax),%eax 8cd: 3b 45 ec cmp -0x14(%ebp),%eax 8d0: 75 0c jne 8de <malloc+0x70> prevp->s.ptr = p->s.ptr; 8d2: 8b 45 f4 mov -0xc(%ebp),%eax 8d5: 8b 10 mov (%eax),%edx 8d7: 8b 45 f0 mov -0x10(%ebp),%eax 8da: 89 10 mov %edx,(%eax) 8dc: eb 26 jmp 904 <malloc+0x96> else { p->s.size -= nunits; 8de: 8b 45 f4 mov -0xc(%ebp),%eax 8e1: 8b 40 04 mov 0x4(%eax),%eax 8e4: 2b 45 ec sub -0x14(%ebp),%eax 8e7: 89 c2 mov %eax,%edx 8e9: 8b 45 f4 mov -0xc(%ebp),%eax 8ec: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 8ef: 8b 45 f4 mov -0xc(%ebp),%eax 8f2: 8b 40 04 mov 0x4(%eax),%eax 8f5: c1 e0 03 shl $0x3,%eax 8f8: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 8fb: 8b 45 f4 mov -0xc(%ebp),%eax 8fe: 8b 55 ec mov -0x14(%ebp),%edx 901: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 904: 8b 45 f0 mov -0x10(%ebp),%eax 907: a3 28 0c 00 00 mov %eax,0xc28 return (void*)(p + 1); 90c: 8b 45 f4 mov -0xc(%ebp),%eax 90f: 83 c0 08 add $0x8,%eax 912: eb 3b jmp 94f <malloc+0xe1> } if(p == freep) 914: a1 28 0c 00 00 mov 0xc28,%eax 919: 39 45 f4 cmp %eax,-0xc(%ebp) 91c: 75 1e jne 93c <malloc+0xce> if((p = morecore(nunits)) == 0) 91e: 83 ec 0c sub $0xc,%esp 921: ff 75 ec pushl -0x14(%ebp) 924: e8 e5 fe ff ff call 80e <morecore> 929: 83 c4 10 add $0x10,%esp 92c: 89 45 f4 mov %eax,-0xc(%ebp) 92f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 933: 75 07 jne 93c <malloc+0xce> return 0; 935: b8 00 00 00 00 mov $0x0,%eax 93a: eb 13 jmp 94f <malloc+0xe1> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 93c: 8b 45 f4 mov -0xc(%ebp),%eax 93f: 89 45 f0 mov %eax,-0x10(%ebp) 942: 8b 45 f4 mov -0xc(%ebp),%eax 945: 8b 00 mov (%eax),%eax 947: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 94a: e9 6d ff ff ff jmp 8bc <malloc+0x4e> } 94f: c9 leave 950: c3 ret
34.291697
60
0.421868
eff5b244edb8db210aa4604b0512b66c6f6eb188
67
sql
SQL
prisma/migrations/20220307014050_change_users/migration.sql
tadatakuho/nest-todolist-graphql
3cb3f9b05941c523914eb28ab4ce27e170b8d6b6
[ "MIT" ]
null
null
null
prisma/migrations/20220307014050_change_users/migration.sql
tadatakuho/nest-todolist-graphql
3cb3f9b05941c523914eb28ab4ce27e170b8d6b6
[ "MIT" ]
null
null
null
prisma/migrations/20220307014050_change_users/migration.sql
tadatakuho/nest-todolist-graphql
3cb3f9b05941c523914eb28ab4ce27e170b8d6b6
[ "MIT" ]
null
null
null
-- AlterTable ALTER TABLE `users` MODIFY `name` VARCHAR(191) NULL;
22.333333
52
0.731343
4658734c8caca52346b923301a33cb75af282826
2,701
kt
Kotlin
app/src/main/java/com/pandulapeter/beagle/appDemo/feature/main/examples/overlay/OverlayFragment.kt
dandycheung/beagle
4496c6fb45db9f01453357aaf44c412385217a05
[ "Apache-2.0" ]
380
2019-10-03T07:15:59.000Z
2022-03-31T12:11:49.000Z
app/src/main/java/com/pandulapeter/beagle/appDemo/feature/main/examples/overlay/OverlayFragment.kt
dandycheung/beagle
4496c6fb45db9f01453357aaf44c412385217a05
[ "Apache-2.0" ]
95
2019-10-15T09:20:31.000Z
2022-03-31T23:17:27.000Z
app/src/main/java/com/pandulapeter/beagle/appDemo/feature/main/examples/overlay/OverlayFragment.kt
dandycheung/beagle
4496c6fb45db9f01453357aaf44c412385217a05
[ "Apache-2.0" ]
22
2019-10-12T01:39:06.000Z
2022-03-25T11:25:12.000Z
package com.pandulapeter.beagle.appDemo.feature.main.examples.overlay import android.graphics.Canvas import android.graphics.Paint import android.os.Bundle import android.view.View import androidx.lifecycle.viewModelScope import com.pandulapeter.beagle.Beagle import com.pandulapeter.beagle.appDemo.R import com.pandulapeter.beagle.appDemo.feature.main.examples.ExamplesDetailFragment import com.pandulapeter.beagle.appDemo.feature.shared.list.BaseAdapter import com.pandulapeter.beagle.appDemo.feature.shared.list.ListItem import com.pandulapeter.beagle.appDemo.utils.createTextModule import com.pandulapeter.beagle.common.configuration.Insets import com.pandulapeter.beagle.common.contracts.module.Module import com.pandulapeter.beagle.common.listeners.OverlayListener import com.pandulapeter.beagle.modules.SwitchModule import com.pandulapeter.beagle.utils.extensions.color import org.koin.androidx.viewmodel.ext.android.viewModel import kotlin.math.min class OverlayFragment : ExamplesDetailFragment<OverlayViewModel, ListItem>(R.string.case_study_overlay_title), OverlayListener { override val viewModel by viewModel<OverlayViewModel>() private val paint by lazy { Paint().apply { style = Paint.Style.FILL color = requireContext().color(R.color.brand_dark) alpha = 192 } } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) Beagle.addOverlayListener( listener = this, lifecycleOwner = viewLifecycleOwner ) } override fun createAdapter() = object : BaseAdapter<ListItem>( scope = viewModel.viewModelScope ) {} override fun getBeagleModules(): List<Module<*>> = listOf( createTextModule(R.string.case_study_overlay_hint), SwitchModule( text = getText(R.string.case_study_overlay_enable), initialValue = viewModel.isSwitchEnabled, onValueChanged = { viewModel.isSwitchEnabled = it Beagle.invalidateOverlay() } ) ) override fun onDrawOver(canvas: Canvas, insets: Insets) { if (viewModel.isSwitchEnabled) { val usableWidth = canvas.width - insets.left - insets.right val usableHeight = canvas.height - insets.top - insets.bottom canvas.drawCircle( insets.left + usableWidth * 0.5f, insets.top + usableHeight * 0.5f, min(usableWidth, usableHeight) * 0.25f, paint ) } } companion object { fun newInstance() = OverlayFragment() } }
37
128
0.69789
0b6eaa68175183e78cc2a72bb734ce612395335a
341
py
Python
flask_webpack_bundle/config.py
briancappello/flask-webpack-bundle
67896e6ade345e34721a8f9da156b65fc0646984
[ "MIT" ]
null
null
null
flask_webpack_bundle/config.py
briancappello/flask-webpack-bundle
67896e6ade345e34721a8f9da156b65fc0646984
[ "MIT" ]
null
null
null
flask_webpack_bundle/config.py
briancappello/flask-webpack-bundle
67896e6ade345e34721a8f9da156b65fc0646984
[ "MIT" ]
null
null
null
import os from flask_unchained import AppConfig class Config(AppConfig): WEBPACK_MANIFEST_PATH = os.path.join( AppConfig.STATIC_FOLDER, 'assets', 'manifest.json') class ProdConfig: # use relative paths by default, ie, the same host as the backend WEBPACK_ASSETS_HOST = '' class StagingConfig(ProdConfig): pass
18.944444
69
0.730205
bf0e645b4fcaea5ff0e294a82f359f25262cb249
18,780
rs
Rust
src/state.rs
vrrb-io/vrrb_main
0cc208b8c7051d35879a04b996368efa50869314
[ "MIT" ]
1
2021-05-27T18:38:34.000Z
2021-05-27T18:38:34.000Z
src/state.rs
vrrb-io/vrrb_main
0cc208b8c7051d35879a04b996368efa50869314
[ "MIT" ]
null
null
null
src/state.rs
vrrb-io/vrrb_main
0cc208b8c7051d35879a04b996368efa50869314
[ "MIT" ]
null
null
null
use crate::network::chunkable::Chunkable; use crate::network::node::MAX_TRANSMIT_SIZE; use crate::pool::Pool; use crate::txn::Txn; use crate::{block::Block, claim::Claim, reward::RewardState}; use pickledb::{PickleDb, PickleDbDumpPolicy, SerializationMethod}; use ritelinked::LinkedHashMap; use serde::{Deserialize, Serialize}; use sha256::digest_bytes; use log::info; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct Ledger { pub credits: LinkedHashMap<String, u128>, pub debits: LinkedHashMap<String, u128>, pub claims: LinkedHashMap<String, Claim>, } #[derive(Debug, Serialize, Deserialize, Clone)] pub struct Components { pub genesis: Option<Vec<u8>>, pub child: Option<Vec<u8>>, pub parent: Option<Vec<u8>>, pub blockchain: Option<Vec<u8>>, pub ledger: Option<Vec<u8>>, pub network_state: Option<Vec<u8>>, pub archive: Option<Vec<u8>>, } #[derive(Debug, Serialize, Deserialize)] pub struct NetworkState { // Path to database pub path: String, // hash of the state of credits in the network pub credits: Option<String>, // hash of the state of debits in the network pub debits: Option<String>, //reward state of the network pub reward_state: RewardState, // the last state hash -> sha256 hash of credits, debits & reward state. pub state_hash: Option<String>, } impl NetworkState { pub fn restore(path: &str) -> NetworkState { let db = match PickleDb::load_bin(path, PickleDbDumpPolicy::DumpUponRequest) { Ok(nst) => nst, Err(_) => PickleDb::new( path, PickleDbDumpPolicy::DumpUponRequest, SerializationMethod::Bin, ), }; let (credits_map, debits_map, reward_state, _claims) = NetworkState::restore_state_objects(&db); let credits = digest_bytes(format!("{:?}", &credits_map).as_bytes()); let debits = digest_bytes(format!("{:?}", &credits_map).as_bytes()); NetworkState { path: path.to_string(), credits: { if credits_map.is_empty() { None } else { Some(credits) } }, debits: { if debits_map.is_empty() { None } else { Some(debits) } }, reward_state, state_hash: None, } } pub fn get_balance(&self, address: &str) -> u128 { let credits = self.get_account_credits(address); let debits = self.get_account_debits(address); if let Some(balance) = credits.checked_sub(debits) { return balance; } else { return 0u128; } } pub fn credit_hash(self, block: &Block) -> String { let mut credits = LinkedHashMap::new(); block.txns.iter().for_each(|(_txn_id, txn)| { if let Some(entry) = credits.get_mut(&txn.receiver_address) { *entry += txn.clone().txn_amount } else { credits.insert(txn.clone().receiver_address, txn.clone().txn_amount); } }); if let Some(entry) = credits.get_mut(&block.header.block_reward.miner.clone().unwrap()) { *entry += block.header.block_reward.amount } else { credits.insert( block.header.block_reward.miner.clone().unwrap(), block.header.block_reward.amount, ); } if let Some(chs) = self.credits { return digest_bytes(format!("{},{:?}", chs, credits).as_bytes()); } else { return digest_bytes(format!("{:?},{:?}", self.credits, credits).as_bytes()); } } pub fn debit_hash(self, block: &Block) -> String { let mut debits = LinkedHashMap::new(); block.txns.iter().for_each(|(_txn_id, txn)| { if let Some(entry) = debits.get_mut(&txn.sender_address) { *entry += txn.clone().txn_amount } else { debits.insert(txn.clone().sender_address, txn.clone().txn_amount); } }); if let Some(dhs) = self.debits { return digest_bytes(format!("{},{:?}", dhs, debits).as_bytes()); } else { return digest_bytes(format!("{:?},{:?}", self.debits, debits).as_bytes()); } } pub fn hash(&mut self, block: Block) -> String { let credit_hash = self.clone().credit_hash(&block); let debit_hash = self.clone().debit_hash(&block); let reward_state_hash = digest_bytes(format!("{:?}", self.reward_state).as_bytes()); let payload = format!( "{:?},{:?},{:?},{:?}", self.state_hash, credit_hash, debit_hash, reward_state_hash ); let new_state_hash = digest_bytes(payload.as_bytes()); new_state_hash } pub fn restore_state_objects( db: &PickleDb, ) -> ( LinkedHashMap<String, u128>, LinkedHashMap<String, u128>, RewardState, LinkedHashMap<String, Claim>, ) { let credits: LinkedHashMap<String, u128> = if let Some(map) = db.get("credits") { map } else { LinkedHashMap::new() }; let debits: LinkedHashMap<String, u128> = if let Some(map) = db.get("debits") { map } else { LinkedHashMap::new() }; let reward_state: RewardState = if let Some(reward_state) = db.get("rewardstate") { reward_state } else { RewardState::start() }; let claims: LinkedHashMap<String, Claim> = if let Some(claims) = db.get("claims") { claims } else { LinkedHashMap::new() }; (credits, debits, reward_state, claims) } pub fn dump(&mut self, block: &Block) { let mut db = self.get_ledger_db(); let (mut credits, mut debits, mut reward_state, mut claims) = NetworkState::restore_state_objects(&db); block.txns.iter().for_each(|(_txn_id, txn)| { if let Some(entry) = credits.get_mut(&txn.receiver_address) { *entry += txn.clone().txn_amount } else { credits.insert(txn.clone().receiver_address, txn.clone().txn_amount); } if let Some(entry) = debits.get_mut(&txn.clone().sender_address) { *entry += txn.txn_amount } else { debits.insert(txn.clone().sender_address, txn.clone().txn_amount); } }); block.claims.iter().for_each(|(k, v)| { claims.insert(k.clone(), v.clone()); }); claims.insert( block.header.claim.clone().pubkey, block.header.claim.clone(), ); if let Some(entry) = credits.get_mut(&block.header.block_reward.miner.clone().unwrap()) { *entry += block.header.block_reward.amount.clone() } else { credits.insert( block.header.block_reward.miner.clone().unwrap().clone(), block.header.block_reward.amount.clone(), ); } reward_state.update(block.header.block_reward.category.clone()); self.update_state_hash(&block); self.update_reward_state(&block); self.update_credits_and_debits(&block); if let Err(_) = db.set("credits", &credits) { println!("Error setting credits to state") }; if let Err(_) = db.set("debits", &debits) { println!("Error setting debits to state") }; if let Err(_) = db.set("rewardstate", &reward_state) { println!("Error setting reward state to state") }; if let Err(_) = db.set("claims", &claims) { println!("Error setting claims to state"); }; if let Err(e) = db.dump() { info!("Error dumping state to file: {:?}", e) } } pub fn nonce_up(&mut self) { let mut new_claim_map = LinkedHashMap::new(); self.get_claims().clone().iter().for_each(|(pk, claim)| { let mut new_claim = claim.clone(); new_claim.nonce_up(); new_claim_map.insert(pk.clone(), new_claim.clone()); }); let mut db = self.get_ledger_db(); if let Err(e) = db.set("claims", &new_claim_map) { println!("Error setting nonced up claims to database: {:?}", e); } } pub fn abandoned_claim(&mut self, hash: String) { let mut db = self.get_ledger_db(); let (_, _, _, mut claims) = NetworkState::restore_state_objects(&db); claims.retain(|_, v| { v.hash != hash }); if let Err(_) = db.set("claims", &claims) { println!("Error setting claims to state") }; if let Err(e) = db.dump() { info!("Error dumping state to file: {:?}", e) } } pub fn get_ledger_db(&self) -> PickleDb { match PickleDb::load_bin(self.path.clone(), PickleDbDumpPolicy::DumpUponRequest) { Ok(nst) => return nst, Err(_) => { return PickleDb::new( self.path.clone(), PickleDbDumpPolicy::DumpUponRequest, SerializationMethod::Bin, ) } }; } pub fn update_credits_and_debits(&mut self, block: &Block) { let chs = self.clone().credit_hash(block); let dhs = self.clone().debit_hash(block); self.credits = Some(chs); self.debits = Some(dhs); } pub fn update_reward_state(&mut self, block: &Block) { self.reward_state.update(block.header.block_reward.category); } pub fn update_state_hash(&mut self, block: &Block) { self.state_hash = Some(block.hash.clone()); } pub fn get_credits(&self) -> LinkedHashMap<String, u128> { let db = self.get_ledger_db(); let credits: LinkedHashMap<String, u128> = if let Some(map) = db.get("credits") { map } else { LinkedHashMap::new() }; credits } pub fn get_debits(&self) -> LinkedHashMap<String, u128> { let db = self.get_ledger_db(); let debits: LinkedHashMap<String, u128> = if let Some(map) = db.get("debits") { map } else { LinkedHashMap::new() }; debits } pub fn get_claims(&self) -> LinkedHashMap<String, Claim> { let db = self.get_ledger_db(); let claims: LinkedHashMap<String, Claim> = if let Some(map) = db.get("claims") { map } else { LinkedHashMap::new() }; claims } pub fn get_reward_state(&self) -> RewardState { let db = self.get_ledger_db(); if let Some(reward_state) = db.get("rewardstate") { return reward_state; } else { RewardState::start() } } pub fn get_last_block(&self) -> Option<Block> { let db = self.get_ledger_db(); if let Some(last_block) = db.get("lastblock") { return last_block; } else { None } } pub fn get_block_archive(&self) -> LinkedHashMap<u128, Block> { let db = self.get_ledger_db(); if let Some(block_archive) = db.get("blockarchive") { return block_archive; } else { return LinkedHashMap::new(); } } pub fn get_account_credits(&self, address: &str) -> u128 { let credits = self.get_credits(); if let Some(amount) = credits.get(address) { return *amount; } else { return 0u128; } } pub fn get_account_debits(&self, address: &str) -> u128 { let debits = self.get_debits(); if let Some(amount) = debits.get(address) { return *amount; } else { return 0u128; } } pub fn update_ledger(&mut self, ledger: Ledger, reward_state: RewardState) { let mut db = self.get_ledger_db(); if let Err(_) = db.set("credits", &ledger.credits) { println!("Error setting credits to ledger"); } if let Err(_) = db.set("debits", &ledger.debits) { println!("Error setting debits to ledger"); } if let Err(_) = db.set("rewardstate", &reward_state) { println!("Error setting reward state to ledger"); } if let Err(_) = db.set("claims", &ledger.claims) { println!("Error setting claims to ledger"); } if let Err(_) = db.dump() { info!("Error dumping ledger to db"); } } pub fn get_lowest_pointer(&self, nonce: u128) -> Option<(String, u128)> { let claim_map = self.get_claims(); let mut pointers = claim_map .iter() .map(|(_, claim)| return (claim.clone().hash, claim.clone().get_pointer(nonce))) .collect::<Vec<_>>(); pointers.retain(|(_, v)| !v.is_none()); let mut raw_pointers = pointers .iter() .map(|(k, v)| { return (k.clone(), v.unwrap()); }) .collect::<Vec<_>>(); if let Some(min) = raw_pointers.clone().iter().min_by_key(|(_, v)| v) { raw_pointers.retain(|(_, v)| *v == min.1); Some(raw_pointers[0].clone()) } else { None } } pub fn slash_claims(&mut self, bad_validators: Vec<String>) { let mut db = self.get_ledger_db(); let (_, _, _, mut claims) = NetworkState::restore_state_objects(&db); bad_validators.iter().for_each(|k| { if let Some(claim) = claims.get_mut(&k.to_string()) { claim.eligible = false; } }); if let Err(_) = db.set("claims", &claims) { println!("Error setting claims to state") }; if let Err(e) = db.dump() { info!("Error dumping state to file: {:?}", e) } } pub fn pending_balance( &self, _address: String, _txn_pool: &Pool<String, Txn>, ) -> Option<(u128, u128)> { None } pub fn credits_as_bytes(credits: &LinkedHashMap<String, u128>) -> Vec<u8> { NetworkState::credits_to_string(credits).as_bytes().to_vec() } pub fn credits_to_string(credits: &LinkedHashMap<String, u128>) -> String { serde_json::to_string(credits).unwrap() } pub fn credits_from_bytes(data: &[u8]) -> LinkedHashMap<String, u128> { serde_json::from_slice::<LinkedHashMap<String, u128>>(data).unwrap() } pub fn debits_as_bytes(debits: &LinkedHashMap<String, u128>) -> Vec<u8> { NetworkState::debits_to_string(debits).as_bytes().to_vec() } pub fn debits_to_string(debits: &LinkedHashMap<String, u128>) -> String { serde_json::to_string(debits).unwrap() } pub fn debits_from_bytes(data: &[u8]) -> LinkedHashMap<String, u128> { serde_json::from_slice::<LinkedHashMap<String, u128>>(data).unwrap() } pub fn claims_as_bytes(claims: &LinkedHashMap<u128, Claim>) -> Vec<u8> { NetworkState::claims_to_string(claims).as_bytes().to_vec() } pub fn claims_to_string(claims: &LinkedHashMap<u128, Claim>) -> String { serde_json::to_string(claims).unwrap() } pub fn claims_from_bytes(data: &[u8]) -> LinkedHashMap<u128, Claim> { serde_json::from_slice::<LinkedHashMap<u128, Claim>>(data).unwrap() } pub fn last_block_from_bytes(data: &[u8]) -> Block { serde_json::from_slice::<Block>(data).unwrap() } pub fn as_bytes(&self) -> Vec<u8> { self.to_string().as_bytes().to_vec() } pub fn from_bytes(data: &[u8]) -> NetworkState { serde_json::from_slice::<NetworkState>(data).unwrap() } pub fn to_string(&self) -> String { serde_json::to_string(self).unwrap() } pub fn from_string(string: &String) -> NetworkState { serde_json::from_str::<NetworkState>(&string).unwrap() } pub fn db_to_ledger(&self) -> Ledger { let credits = self.get_credits(); let debits = self.get_debits(); let claims = self.get_claims(); Ledger { credits, debits, claims, } } } impl Ledger { pub fn as_bytes(&self) -> Vec<u8> { self.to_string().as_bytes().to_vec() } pub fn from_bytes(data: &[u8]) -> Ledger { serde_json::from_slice::<Ledger>(data).unwrap() } pub fn to_string(&self) -> String { serde_json::to_string(self).unwrap() } pub fn from_string(string: &String) -> Ledger { serde_json::from_str::<Ledger>(&string).unwrap() } } impl Components { pub fn as_bytes(&self) -> Vec<u8> { self.to_string().as_bytes().to_vec() } pub fn from_bytes(data: &[u8]) -> Components { serde_json::from_slice::<Components>(data).unwrap() } pub fn to_string(&self) -> String { serde_json::to_string(self).unwrap() } pub fn from_string(string: &String) -> Components { serde_json::from_str::<Components>(&string).unwrap() } } impl Chunkable for Components { fn chunk(&self) -> Option<Vec<Vec<u8>>> { let bytes_len = self.as_bytes().len(); if bytes_len > MAX_TRANSMIT_SIZE { let mut n_chunks = bytes_len / MAX_TRANSMIT_SIZE; if bytes_len % MAX_TRANSMIT_SIZE != 0 { n_chunks += 1; } let mut chunks_vec = vec![]; let mut last_slice_end = 0; (1..=n_chunks) .map(|n| n * MAX_TRANSMIT_SIZE) .enumerate() .for_each(|(index, slice_end)| { if index + 1 == n_chunks { chunks_vec.push(self.clone().as_bytes()[last_slice_end..].to_vec()); } else { chunks_vec .push(self.clone().as_bytes()[last_slice_end..slice_end].to_vec()); last_slice_end = slice_end; } }); Some(chunks_vec) } else { Some(vec![self.clone().as_bytes()]) } } } impl Clone for NetworkState { fn clone(&self) -> NetworkState { NetworkState { path: self.path.clone(), credits: self.credits.clone(), debits: self.debits.clone(), reward_state: self.reward_state.clone(), state_hash: self.state_hash.clone(), } } }
31.616162
97
0.544462
22fcabda8a9082350fbddc65b864a7b7773ac547
4,324
kt
Kotlin
library/src/test/java/ru/yandex/money/android/sdk/impl/metrics/ActionYaLoginAuthorizationReporterTest.kt
daineal/yandex-checkout-android-sdk
790333af0599362e78a7051c63cf2e9773bca7b4
[ "MIT" ]
null
null
null
library/src/test/java/ru/yandex/money/android/sdk/impl/metrics/ActionYaLoginAuthorizationReporterTest.kt
daineal/yandex-checkout-android-sdk
790333af0599362e78a7051c63cf2e9773bca7b4
[ "MIT" ]
null
null
null
library/src/test/java/ru/yandex/money/android/sdk/impl/metrics/ActionYaLoginAuthorizationReporterTest.kt
daineal/yandex-checkout-android-sdk
790333af0599362e78a7051c63cf2e9773bca7b4
[ "MIT" ]
1
2021-09-17T13:02:55.000Z
2021-09-17T13:02:55.000Z
/* * The MIT License (MIT) * Copyright © 2018 NBCO Yandex.Money LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the “Software”), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is furnished to do so, subject to the * following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial * portions of the Software. * * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ package ru.yandex.money.android.sdk.impl.metrics import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.mockito.Mock import org.mockito.Mockito.inOrder import org.mockito.junit.MockitoJUnitRunner import ru.yandex.money.android.sdk.impl.userAuth.UserAuthCancelledViewModel import ru.yandex.money.android.sdk.impl.userAuth.UserAuthNoWalletViewModel import ru.yandex.money.android.sdk.impl.userAuth.UserAuthSuccessViewModel import ru.yandex.money.android.sdk.impl.userAuth.UserAuthViewModel import ru.yandex.money.android.sdk.model.AuthorizedUser import ru.yandex.money.android.sdk.model.Presenter import ru.yandex.money.android.sdk.on import ru.yandex.money.android.sdk.userAuth.UserAuthCancelledOutputModel import ru.yandex.money.android.sdk.userAuth.UserAuthNoWalletOutputModel import ru.yandex.money.android.sdk.userAuth.UserAuthOutputModel import ru.yandex.money.android.sdk.userAuth.UserAuthSuccessOutputModel @RunWith(MockitoJUnitRunner.StrictStubs::class) class ActionYaLoginAuthorizationReporterTest { private val name = "actionYaLoginAuthorization" @Mock private lateinit var presenter: Presenter<UserAuthOutputModel, UserAuthViewModel> @Mock private lateinit var reporter: Reporter private lateinit var actionReporter: ActionYaLoginAuthorizationReporter @Before fun setUp() { actionReporter = ActionYaLoginAuthorizationReporter(presenter, reporter) } @Test fun `should report AuthYaLoginStatusSuccess when UserAuthSuccessOutputModel`() { // prepare val outputModel = UserAuthSuccessOutputModel(AuthorizedUser("name")) on(presenter(outputModel)).thenReturn(UserAuthSuccessViewModel(outputModel.authorizedUser)) // invoke actionReporter(outputModel) // assert inOrder(presenter, reporter).apply { verify(presenter).invoke(outputModel) verify(reporter).report(name, listOf(AuthYaLoginStatusSuccess())) verifyNoMoreInteractions() } } @Test fun `should report AuthYaLoginStatusCanceled when UserAuthCancelledOutputModel`() { // prepare val outputModel = UserAuthCancelledOutputModel() on(presenter(outputModel)).thenReturn(UserAuthCancelledViewModel) // invoke actionReporter(outputModel) // assert inOrder(presenter, reporter).apply { verify(presenter).invoke(outputModel) verify(reporter).report(name, listOf(AuthYaLoginStatusCanceled())) verifyNoMoreInteractions() } } @Test fun `should report AuthYaLoginStatusWithoutWallet when UserAuthNoWalletOutputModel`() { // prepare val outputModel = UserAuthNoWalletOutputModel("name") on(presenter(outputModel)).thenReturn(UserAuthNoWalletViewModel(outputModel.accountName)) // invoke actionReporter(outputModel) // assert inOrder(presenter, reporter).apply { verify(presenter).invoke(outputModel) verify(reporter).report(name, listOf(AuthYaLoginStatusWithoutWallet())) verifyNoMoreInteractions() } } }
39.669725
113
0.745837
ddf9f04e4e2df062b8e9dcab6893a7b48a3ef149
4,111
h
C
disc0ver-Engine/disc0ver-Engine/UGM/transform.h
Kpure1000/disc0ver-Engine
e2aeec3984aa6cd8ecbaa0da539bf53e37846602
[ "MIT" ]
5
2020-09-19T03:34:09.000Z
2021-04-10T07:39:53.000Z
disc0ver-Engine/disc0ver-Engine/UGM/transform.h
wncka/disc0ver-Engine
0817df4c9062cb3919164d01ff2b96a563f76437
[ "MIT" ]
null
null
null
disc0ver-Engine/disc0ver-Engine/UGM/transform.h
wncka/disc0ver-Engine
0817df4c9062cb3919164d01ff2b96a563f76437
[ "MIT" ]
3
2020-10-25T10:58:18.000Z
2021-03-26T01:08:54.000Z
#pragma once #include "bbox.h" #include "line.h" #include "ray.h" #include "euler.h" #include "quat.h" #include "scale.h" #include "mat.h" #include "point.h" #include "normal.h" #include "vec.h" #include "hvec.h" #include "Interfaces/IMatrix/IMatrixMul.h" #include "Interfaces/IMatrix/IMatrixInOut.h" namespace Ubpa { template<typename F> struct ImplTraits<transform<F>> : ArrayTraits<vec<F, 4>, 4, F>, IListTraits<IMatrixInOut, IMatrixMul> {}; // TODO: distinguish different kinds of transformations // - basic transformation: translation, reflection, rotation, scaling, shearing, projection (projective transformation) // - rigid transformation: translation + rotation + reflection // - similarity transformation: translation + rotation + reflection + scaling // - linear transformation: rotation + reflection + scaling + shearing // - affine transformation: translation + linear transformation // - transformation: affine transformation + projection template<typename F> struct transform : SI<transform<F>> { using Base = SI<transform<F>>; using Base::Base; using Base::operator*; inline explicit transform(const mat<F, 4>& m) noexcept; inline explicit transform(const mat<F, 3>& m) noexcept; inline explicit transform(const vec<F, 3>& translation) noexcept; inline explicit transform(const quat<F>& rot) noexcept; inline explicit transform(const euler<F>& euler) noexcept; inline transform(const vec<F, 3>& axis, F radian) noexcept; inline explicit transform(const scale<F, 3>& scale) noexcept; inline explicit transform(F scale) noexcept; inline transform(const vec<F, 3>& translation, const scale<F, 3>& scale) noexcept; inline transform(const vec<F, 3>& translation, const quat<F>& rot) noexcept; inline transform(const quat<F>& rot, const scale<F, 3>& scale) noexcept; inline transform(const vec<F, 3>& translation, const quat<F>& rot, const scale<F, 3>& scale) noexcept; // world space -> camera space // right hand, forward is camera's back inline static const transform look_at( const point<F, 3>& pos, const point<F, 3>& target, const vec<F, 3>& up = vec<F, 3>(0, 1, 0) ) noexcept; // orthographic, camera space -> clip space inline static const transform orthographic(F width, F height, F zNear, F zFar) noexcept; // perspective, camera space -> clip space // fovy: verticle field of view in radian // aspect : width / height inline static const transform perspective(F fovy, F aspect, F zNear, F zFar, F near_clip_vlaue = UBPA_DEFAULT_NEAR_CLIP_VALUE) noexcept; // sample: rotate_with<Axis::X>(to_radian(theta)) template<Axis axis> inline static const transform rotate_with(F theta) noexcept; inline const vec<F, 3> decompose_translation() const noexcept; inline const mat<F, 3> decompose_rotation_matrix() const noexcept; inline const quat<F> decompose_quatenion() const noexcept; inline const euler<F> decompose_euler() const noexcept; inline const mat<F, 3> decompose_mat3() const noexcept; inline const scale<F, 3> decompose_scale() const noexcept; // faster than IMatrixMul::inverse // "sim" : similarity (translation, scaling, rotation [reflection]) // ref: https://en.wikipedia.org/wiki/Similarity_(geometry) inline const transform inverse_sim() const noexcept; // TODO: transform::inverse_rigid // const transform inverse_rigid() const noexcept; inline const hvec<F, 4> operator*(const hvec<F, 4>& hv) const noexcept; inline const point<F, 3> operator*(const point<F, 3>& p) const noexcept; inline const vec<F, 3> operator*(const vec<F, 3>& v) const noexcept; // result isn't normalized inline const normal<F> operator*(const normal<F>& n) const noexcept; inline const bbox<F, 3> operator*(const bbox<F, 3>& b) const noexcept; inline const line<F, 3> operator*(const line<F, 3>& r) const noexcept; inline const ray<F, 3> operator*(const ray<F, 3>& r) const noexcept; }; using transformf = transform<float>; // maybe error in editor, but no compile error static_assert(sizeof(transformf) == 16 * sizeof(float)); } #include "details/transform.inl"
39.912621
120
0.724398
b194a2edcf0523e62f0c89d6ef8fa70df9451ff8
2,480
lua
Lua
resources/words/ket.lua
terrabythia/alfabeter
da422481ba223ebc6c4ded63fed8f75605193d44
[ "MIT" ]
null
null
null
resources/words/ket.lua
terrabythia/alfabeter
da422481ba223ebc6c4ded63fed8f75605193d44
[ "MIT" ]
null
null
null
resources/words/ket.lua
terrabythia/alfabeter
da422481ba223ebc6c4ded63fed8f75605193d44
[ "MIT" ]
null
null
null
return {'ketamine','ketchup','ketel','ketelaar','ketelbikker','ketelbink','ketelbinkie','ketelboeter','ketelbouw','ketelbouwer','keteldal','ketelhuis','ketelinstallatie','ketelkoek','ketellapper','ketelmuziek','ketelruim','ketelsteen','keteltrom','keten','ketenaansprakelijkheid','ketenbeheer','ketenbeheersing','ketenbewaking','ketendicht','ketenen','ketengebergte','ketenkaart','ketenvorming','ketjap','ketje','ketoembar','kets','ketsen','ketter','ketteren','kettergericht','ketterij','ketterjacht','ketterjager','ketters','kettervervolging','ketting','kettingbak','kettingbakken','kettingbeding','kettingbotsing','kettingbreuk','kettingbreukontwikkeling','kettingbrief','kettingbrug','kettingdraad','kettingformulier','kettingganger','kettinggaren','kettinghandel','kettinghond','kettingkast','kettingkogel','kettingloos','kettingmechanisme','kettingmolen','kettingpapier','kettingrad','kettingreactie','kettingregel','kettingrijm','kettingroken','kettingroker','kettingrookster','kettingslot','kettingspanner','kettingsteek','kettingstopper','kettingzaag','kettingzijde','kettingzin','kettingzinnen','ketelpak','ketentest','ketenzorg','ketensamenwerking','ketenintegratie','ketenmanagement','ketenaanpak','ketenbenadering','ketenhandhaving','ketenorganisatie','ketenproject','kettingmail','ketenlengte','ketenmobiliteit','ketenregie','ketenregisseur','ketenverantwoordelijkheid','ketendenken','keteninformatisering','ketenomkering','ketenproces','ketenverband','kettinglijn','kettingschijf','ket','ket','ketelaar','kettenis','ketwaru','ketelaars','ketelbikkers','ketelboeters','keteldalen','ketelhuizen','ketelkoeken','ketellappers','ketelruimen','ketels','keteltje','keteltjes','keteltrommels','keteltrommen','ketende','ketenden','ketens','ketent','ketentje','ketentjes','ketjes','ketst','ketste','ketsten','ketterde','ketterijen','ketterjagers','ketterplakkaten','ketterse','kettert','kettervervolgingen','kettingbotsingen','kettingbreuken','kettingbrieven','kettingbruggen','kettingdraden','kettingen','kettingformulieren','kettinggangers','kettinghonden','kettingkasten','kettingkogels','kettinglabels','kettingloze','kettingreacties','kettingrokers','kettingrooksters','kettingspanners','kettingsteken','kettingstoppers','kettinkje','kettinkjes','ketelbinken','kettingbedingen','kettingrijmen','kettingzagen','kettingraderen','ketelpakken','kettingsloten','ketentesten','kettingmails','ketenprojecten','ketenprocessen','kettinglijnen','ketenorganisaties','kettinggarens'}
2,480
2,480
0.791129
6c8ff2518577df12bf4c2005911a6281246ad5cd
3,603
go
Go
controllers/vmuser_controller.go
fatsheep9146/operator
6acb85ec3daf39f11bd6f5cf8f374285258e4478
[ "Apache-2.0" ]
null
null
null
controllers/vmuser_controller.go
fatsheep9146/operator
6acb85ec3daf39f11bd6f5cf8f374285258e4478
[ "Apache-2.0" ]
null
null
null
controllers/vmuser_controller.go
fatsheep9146/operator
6acb85ec3daf39f11bd6f5cf8f374285258e4478
[ "Apache-2.0" ]
null
null
null
/* 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 controllers import ( "context" "github.com/VictoriaMetrics/operator/controllers/factory" "github.com/VictoriaMetrics/operator/controllers/factory/finalize" "github.com/VictoriaMetrics/operator/internal/config" "github.com/go-logr/logr" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" operatorv1beta1 "github.com/VictoriaMetrics/operator/api/v1beta1" ) // VMUserReconciler reconciles a VMUser object type VMUserReconciler struct { client.Client BaseConf *config.BaseOperatorConf Log logr.Logger OriginScheme *runtime.Scheme } // Scheme implements interface. func (r *VMUserReconciler) Scheme() *runtime.Scheme { return r.OriginScheme } // Reconcile implements interface // +kubebuilder:rbac:groups=operator.victoriametrics.com,resources=vmusers,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=operator.victoriametrics.com,resources=vmusers/status,verbs=get;update;patch func (r *VMUserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { l := r.Log.WithValues("vmuser", req.NamespacedName) var instance operatorv1beta1.VMUser err := r.Get(ctx, req.NamespacedName, &instance) if err != nil { if errors.IsNotFound(err) { return ctrl.Result{}, nil } // Error reading the object - requeue the request. return ctrl.Result{}, err } // lock vmauth sync. vmAuthSyncMU.Lock() defer vmAuthSyncMU.Unlock() if instance.DeletionTimestamp == nil { if err := finalize.AddFinalizer(ctx, r.Client, &instance); err != nil { l.Error(err, "cannot add finalizer") return ctrl.Result{}, err } l.Info("added fin") } var vmauthes operatorv1beta1.VMAuthList if err := r.List(ctx, &vmauthes); err != nil { l.Error(err, "cannot list VMAuth at cluster wide.") return ctrl.Result{}, err } for _, vmauth := range vmauthes.Items { // reconcile users for given vmauth. currentVMAuth := &vmauth l = l.WithValues("vmauth", vmauth.Name) match, err := isSelectorsMatches(&instance, currentVMAuth, currentVMAuth.Spec.UserNamespaceSelector, currentVMAuth.Spec.UserSelector) if err != nil { l.Error(err, "cannot match vmauth and VMUser") continue } // fast path if !match { continue } l.Info("reconciling vmuser for vmauth") if err := factory.CreateOrUpdateVMAuth(ctx, currentVMAuth, r, r.BaseConf); err != nil { l.Error(err, "cannot create or update vmauth deploy") return ctrl.Result{}, err } } if !instance.DeletionTimestamp.IsZero() { // need to remove finalizer and delete related resources. if err := finalize.OnVMUserDelete(ctx, r, &instance); err != nil { l.Error(err, "cannot remove finalizer") return ctrl.Result{}, err } } return ctrl.Result{}, nil } // SetupWithManager inits object func (r *VMUserReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). For(&operatorv1beta1.VMUser{}). Owns(&v1.Secret{}). Complete(r) }
31.060345
135
0.738274
e0b61ac7c665b9395b20d86cfc4c33dfc33e572d
220
dart
Dart
lib/utils/sizeUtil.dart
mishijima/covid19-app-tracker-au
53c00a0e20f102593dae3fe4c7818585d8e18bed
[ "MIT" ]
null
null
null
lib/utils/sizeUtil.dart
mishijima/covid19-app-tracker-au
53c00a0e20f102593dae3fe4c7818585d8e18bed
[ "MIT" ]
null
null
null
lib/utils/sizeUtil.dart
mishijima/covid19-app-tracker-au
53c00a0e20f102593dae3fe4c7818585d8e18bed
[ "MIT" ]
null
null
null
import 'package:flutter/widgets.dart'; class SizeUtil { static getHeight(context) { return MediaQuery.of(context).size.height; } static getWidth(context) { return MediaQuery.of(context).size.width; } }
18.333333
46
0.709091
4bdc444fae55db8a907b9068ea209975d072e55d
6,365
dart
Dart
lib/ui/home_page.dart
Wuerta/contacts-01-flutter
423b285978870df75b7ce06934db9c4652469f69
[ "MIT" ]
null
null
null
lib/ui/home_page.dart
Wuerta/contacts-01-flutter
423b285978870df75b7ce06934db9c4652469f69
[ "MIT" ]
null
null
null
lib/ui/home_page.dart
Wuerta/contacts-01-flutter
423b285978870df75b7ce06934db9c4652469f69
[ "MIT" ]
null
null
null
import 'dart:io'; import 'package:contatos_biel/helpers/contact_helper.dart'; import 'package:contatos_biel/ui/contact_page.dart'; import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher.dart'; enum OrderOptions { orderaz, orderza } class HomePage extends StatefulWidget { @override _HomePageState createState() => _HomePageState(); } class _HomePageState extends State<HomePage> { ContactHelper helper = ContactHelper(); List<Contact> contacts = List(); @override void initState() { super.initState(); _getAllContacts(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("Contacts"), centerTitle: true, backgroundColor: Colors.red, actions: [ PopupMenuButton<OrderOptions>( itemBuilder: (BuildContext context) { return <PopupMenuEntry<OrderOptions>>[ const PopupMenuItem<OrderOptions>( child: Text("Order by A-Z"), value: OrderOptions.orderaz, ), const PopupMenuItem<OrderOptions>( child: Text("Order by de Z-A"), value: OrderOptions.orderza, ), ]; }, onSelected: _orderList, ), ], ), backgroundColor: Colors.white, floatingActionButton: FloatingActionButton( child: Icon(Icons.add), onPressed: () { _showContactPage(); }, backgroundColor: Colors.red, ), body: ListView.builder( padding: EdgeInsets.all(10.0), itemCount: contacts.length, itemBuilder: _contactsCard, ), ); } Widget _contactsCard(BuildContext context, int index) { return GestureDetector( child: Card( child: Padding( padding: EdgeInsets.all(10.0), child: Row( children: <Widget>[ Container( width: 80.0, height: 80.0, decoration: BoxDecoration( shape: BoxShape.circle, image: DecorationImage( image: contacts[index].img != null ? FileImage(File(contacts[index].img)) : AssetImage("images/person.png"), fit: BoxFit.cover, ), ), ), Padding(padding: EdgeInsets.only(left: 10.0)), Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Text( contacts[index].name ?? "", style: TextStyle(fontSize: 22.0, fontWeight: FontWeight.bold), ), Text( contacts[index].email ?? "", style: TextStyle(fontSize: 18.0), ), Text( contacts[index].phone ?? "", style: TextStyle(fontSize: 18.0), ), ], ), ], ), ), ), onTap: () { _showOptions(context, index); }, ); } void _showOptions(BuildContext context, int index) { showModalBottomSheet( context: context, builder: (BuildContext context) { return BottomSheet( onClosing: () {}, builder: (BuildContext context) { return Container( padding: EdgeInsets.all(10.0), child: Column( mainAxisSize: MainAxisSize.min, children: <Widget>[ Padding( padding: EdgeInsets.all(10.0), child: FlatButton( onPressed: () { launch("tel:${contacts[index].phone}"); }, child: Text( "Call", style: TextStyle(color: Colors.red, fontSize: 20.0), ), ), ), Padding( padding: EdgeInsets.all(10.0), child: FlatButton( onPressed: () { Navigator.pop(context); _showContactPage(contact: contacts[index]); }, child: Text( "Edit", style: TextStyle(color: Colors.red, fontSize: 20.0), ), ), ), Padding( padding: EdgeInsets.all(10.0), child: FlatButton( onPressed: () { helper.deleteContact(contacts[index].id); setState(() { contacts.removeAt(index); Navigator.pop(context); }); }, child: Text( "Delete", style: TextStyle(color: Colors.red, fontSize: 20.0), ), ), ), ], ), ); }, ); }, ); } void _showContactPage({Contact contact}) async { final recContact = await Navigator.push(context, MaterialPageRoute(builder: (context) => ContactPage(contact: contact))); if (recContact != null) { if (contact != null) { await helper.updateContact(recContact); } else { await helper.saveContact(recContact); } _getAllContacts(); } } void _getAllContacts() { helper.getAllContacts().then((list) { setState(() { contacts = list; }); }); } void _orderList(OrderOptions result) { switch (result) { case OrderOptions.orderaz: contacts.sort((a, b) => a.name.toLowerCase().compareTo(b.name.toLowerCase()) ); break; case OrderOptions.orderza: contacts.sort((a, b) => b.name.toLowerCase().compareTo(a.name.toLowerCase()) ); break; } setState(() {}); } }
29.604651
80
0.456245
21a02be2a2d8b451e273ff2bb88b093ade5f8318
971
sql
SQL
database_files/Scripts parciais/insert xml proc v2.sql
rafaribe/dw
cf6e5935caca5c9e9d7ecf36e0c61b3942f94933
[ "MIT" ]
null
null
null
database_files/Scripts parciais/insert xml proc v2.sql
rafaribe/dw
cf6e5935caca5c9e9d7ecf36e0c61b3942f94933
[ "MIT" ]
null
null
null
database_files/Scripts parciais/insert xml proc v2.sql
rafaribe/dw
cf6e5935caca5c9e9d7ecf36e0c61b3942f94933
[ "MIT" ]
1
2018-12-08T02:58:22.000Z
2018-12-08T02:58:22.000Z
with sample_data as (select 'a' dish_name, 'b' dish_type, 'c' dish_image from dual) select xmlelement("xml", xmlelement("item", xmlforest(XML_TAB_SEQ.nextval as dish_id, dish_name, dish_type, dish_image))) xmldata from sample_data; CREATE OR REPLACE PROCEDURE insert_xml_v2_proc ( dish_name IN VARCHAR2, dish_type IN VARCHAR2, dish_image IN VARCHAR2 ) AS BEGIN insert into xml_tab (xml_data) select xmlelement("xml", xmlelement("item", xmlforest(XML_TAB_SEQ.nextval as dish_id, dish_name, dish_type, dish_image))) xmldata from dual ; --INSERT INTO DISHES VALUES(DISHES_SEQ.NEXTVAL,dish_name,dish_type,dish_image); END; /
44.136364
83
0.509784
ddb6322a8d6091ef6e9ebc1a7fd08620da2d3bd3
123
php
PHP
src/ID/Identifier.php
mhilker/commander
19f5f4eb6789476d65977dec74432d6aeb259f1b
[ "MIT" ]
null
null
null
src/ID/Identifier.php
mhilker/commander
19f5f4eb6789476d65977dec74432d6aeb259f1b
[ "MIT" ]
null
null
null
src/ID/Identifier.php
mhilker/commander
19f5f4eb6789476d65977dec74432d6aeb259f1b
[ "MIT" ]
null
null
null
<?php declare(strict_types=1); namespace Commander\ID; interface Identifier { public function asString(): string; }
11.181818
39
0.731707
7bd403ce6f790fc23d5820347a82517b6eb98bce
644
swift
Swift
01-ex.swift
pepincho/Swift-Course-FMI
39230d56937b2e3937fc9839d69f484ea8d3c437
[ "MIT" ]
null
null
null
01-ex.swift
pepincho/Swift-Course-FMI
39230d56937b2e3937fc9839d69f484ea8d3c437
[ "MIT" ]
null
null
null
01-ex.swift
pepincho/Swift-Course-FMI
39230d56937b2e3937fc9839d69f484ea8d3c437
[ "MIT" ]
null
null
null
// task 1 func maxNumber1(a: Int, b: Int) -> Int { return ((a + b) + abs(a - b)) / 2; } print(maxNumber1(a: -3, b: -2)); // -2 // task 2 import Foundation func sumNumbersFromString(str: String) -> Int { let strArr = str.components(separatedBy: " ") let numbers = strArr.map { Int($0) ?? 0 } // let numbers = strArr.flatMap { Int($0) } // let numbers = strArr.map { Int($0) } // let numbers = strArr.map { Int($0)! // let numbers = strArr.map { Int($0)! ?? 0 } return numbers.reduce(0, +) } // print(sumNumbersFromString(str: "0 1 2 3dd 4 5 6 7 8 9 10")) // 52 print(sumNumbersFromString(str: "0 1 2 3 4 5 6 7 8 9 10")) // 55
24.769231
69
0.591615
4d1a477d94a71534c2551d2e58bee4f6eaa164dd
729
swift
Swift
secant/Features/Welcome/Welcome.swift
adamstener/secant-ios-wallet
e2d973b98428bad8322cb53368fa6c51db9707e6
[ "MIT" ]
null
null
null
secant/Features/Welcome/Welcome.swift
adamstener/secant-ios-wallet
e2d973b98428bad8322cb53368fa6c51db9707e6
[ "MIT" ]
null
null
null
secant/Features/Welcome/Welcome.swift
adamstener/secant-ios-wallet
e2d973b98428bad8322cb53368fa6c51db9707e6
[ "MIT" ]
null
null
null
// // Welcome.swift // secant-testnet // // Created by Lukáš Korba on 04.04.2022. // import Foundation import ComposableArchitecture struct WelcomeState: Equatable {} extension WelcomeState { static let placeholder = WelcomeState() } enum WelcomeAction: Equatable { case debugMenuStartup case debugMenuHome } typealias WelcomeReducer = Reducer<WelcomeState, WelcomeAction, Void> extension WelcomeReducer { static let `default` = WelcomeReducer { _, _, _ in return .none } } typealias WelcomeStore = Store<WelcomeState, WelcomeAction> extension WelcomeStore { static var demo = WelcomeStore( initialState: .placeholder, reducer: .default, environment: () ) }
18.692308
69
0.703704
2153a1f6497b8e965d71798fb6465c557a23e841
3,349
dart
Dart
lib/store/gov/governance.dart
jiangfuyao/polkawallet-flutter
18267976be8d071cb0ed86fd845058441e722871
[ "Apache-2.0" ]
null
null
null
lib/store/gov/governance.dart
jiangfuyao/polkawallet-flutter
18267976be8d071cb0ed86fd845058441e722871
[ "Apache-2.0" ]
null
null
null
lib/store/gov/governance.dart
jiangfuyao/polkawallet-flutter
18267976be8d071cb0ed86fd845058441e722871
[ "Apache-2.0" ]
null
null
null
import 'package:mobx/mobx.dart'; import 'package:polka_wallet/store/app.dart'; import 'package:polka_wallet/store/gov/types/proposalInfoData.dart'; import 'package:polka_wallet/store/gov/types/referendumInfoData.dart'; import 'package:polka_wallet/store/gov/types/councilInfoData.dart'; import 'package:polka_wallet/store/gov/types/treasuryOverviewData.dart'; import 'package:polka_wallet/store/gov/types/treasuryTipData.dart'; part 'governance.g.dart'; class GovernanceStore extends _GovernanceStore with _$GovernanceStore { GovernanceStore(AppStore store) : super(store); } abstract class _GovernanceStore with Store { _GovernanceStore(this.rootStore); final AppStore rootStore; final String cacheCouncilKey = 'council'; String _getCacheKey(String key) { return '${rootStore.settings.endpoint.info}_$key'; } @observable int cacheCouncilTimestamp = 0; @observable int bestNumber = 0; @observable CouncilInfoData council = CouncilInfoData(); @observable List<CouncilMotionData> councilMotions = []; @observable Map<String, Map<String, dynamic>> councilVotes; @observable Map<String, dynamic> userCouncilVotes; @observable List<ReferendumInfo> referendums; @observable List<ProposalInfoData> proposals = []; @observable TreasuryOverviewData treasuryOverview = TreasuryOverviewData(); @observable List<TreasuryTipData> treasuryTips; @action void setCouncilInfo(Map info, {bool shouldCache = true}) { council = CouncilInfoData.fromJson(info); if (shouldCache) { cacheCouncilTimestamp = DateTime.now().millisecondsSinceEpoch; rootStore.localStorage.setObject(_getCacheKey(cacheCouncilKey), {'data': info, 'cacheTime': cacheCouncilTimestamp}); } } @action void setCouncilVotes(Map votes) { councilVotes = Map<String, Map<String, dynamic>>.from(votes); } @action void setUserCouncilVotes(Map votes) { userCouncilVotes = Map<String, dynamic>.from(votes); } @action void setBestNumber(int number) { bestNumber = number; } @action void setReferendums(List ls) { referendums = List.of(ls.map((i) => ReferendumInfo.fromJson( i as Map<String, dynamic>, rootStore.account.currentAddress))); } @action void setProposals(List ls) { proposals = ls .map((i) => ProposalInfoData.fromJson(Map<String, dynamic>.of(i))) .toList(); } @action Future<void> loadCache() async { Map data = await rootStore.localStorage.getObject(_getCacheKey(cacheCouncilKey)); if (data != null) { setCouncilInfo(data['data'], shouldCache: false); cacheCouncilTimestamp = data['cacheTime']; } } @action void setTreasuryOverview(Map data) { treasuryOverview = TreasuryOverviewData.fromJson(data); } @action void setTreasuryTips(List data) { treasuryTips = data .map((e) => TreasuryTipData.fromJson(Map<String, dynamic>.of(e))) .toList(); } @action void setCouncilMotions(List data) { councilMotions = data .map((e) => CouncilMotionData.fromJson(Map<String, dynamic>.of(e))) .toList(); } @action void clearState() { referendums = []; proposals = []; council = CouncilInfoData(); councilMotions = []; treasuryOverview = TreasuryOverviewData(); treasuryTips = []; } }
24.992537
78
0.702598
30c7db434109147bf77ca32c152662d69e3ebfd9
522
swift
Swift
iOS/Helpers/Crashlytics.swift
Domileo/xikolo-ios
27ef1049307146b7c7732ce5ade467c41535eaff
[ "MIT" ]
null
null
null
iOS/Helpers/Crashlytics.swift
Domileo/xikolo-ios
27ef1049307146b7c7732ce5ade467c41535eaff
[ "MIT" ]
null
null
null
iOS/Helpers/Crashlytics.swift
Domileo/xikolo-ios
27ef1049307146b7c7732ce5ade467c41535eaff
[ "MIT" ]
null
null
null
// // Created for xikolo-ios under MIT license. // Copyright © HPI. All rights reserved. // import Common import Crashlytics extension Crashlytics: ErrorReporter { public func report(_ error: Error) { self.recordError(error) } public func reportStoryboardError(reason: String) { self.recordCustomExceptionName("Storyboard Error", reason: reason, frameArray: []) } public func remember(_ value: Any?, forKey key: String) { self.setObjectValue(value, forKey: key) } }
21.75
90
0.680077
dff85e8e63c28c9a06a922da4a700754244ae262
288
ts
TypeScript
src/lib/core/column-type/pivot.column.d.ts
qgrid/ng2-rollup
2afe5697e7f3fdc8122e13eda9d0582eb5da1fbb
[ "MIT" ]
null
null
null
src/lib/core/column-type/pivot.column.d.ts
qgrid/ng2-rollup
2afe5697e7f3fdc8122e13eda9d0582eb5da1fbb
[ "MIT" ]
null
null
null
src/lib/core/column-type/pivot.column.d.ts
qgrid/ng2-rollup
2afe5697e7f3fdc8122e13eda9d0582eb5da1fbb
[ "MIT" ]
null
null
null
import {ColumnView} from '../scene/view/column.view'; import {ColumnModel} from './column.model'; export declare class PivotColumnModel extends ColumnModel { constructor(); rowIndex: number; } export declare class PivotColumn extends ColumnView { constructor(model: ColumnModel); }
22.153846
59
0.767361
4ca9f3825fced97f84573486ad883a51a53ec153
1,694
sql
SQL
src/test/resources/randexpr1.test_766.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
131
2015-03-31T18:59:14.000Z
2022-03-09T09:51:06.000Z
src/test/resources/randexpr1.test_766.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
20
2015-03-31T21:35:38.000Z
2018-07-02T16:15:51.000Z
src/test/resources/randexpr1.test_766.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
43
2015-04-28T02:01:55.000Z
2021-06-06T09:33:38.000Z
-- randexpr1.test -- -- db eval {SELECT t1.b+case when e+(select abs(abs(min(d+case 11 when t1.d+19 & b & case when e<=b+coalesce((select 11 from t1 where 11<>13),17)-17 then t1.d else d end+19 then 11 else d end))) from t1)- -d-(t1.e) in (select 17 from t1 union select 11 from t1) then t1.e when exists(select 1 from t1 where e>t1.c) then t1.b else 13 end FROM t1 WHERE NOT (e in (select count(*) from t1 union select min(case when (select abs(cast(avg(+17) AS integer)) from t1) not between t1.e and 17+t1.f then f when ((case when ((select cast(avg(t1.d) AS integer) from t1)=17) then 19 else t1.f end)<>t1.c or t1.a in (select -+abs(cast(avg(t1.b) AS integer)) from t1 union select +((cast(avg(11) AS integer)))+ -min(b) from t1)) or not exists(select 1 from t1 where ((t1.d in (b,a,17)) and f<=t1.a)) and t1.f<> - -t1.a then d else - -t1.d end) from t1))} SELECT t1.b+case when e+(select abs(abs(min(d+case 11 when t1.d+19 & b & case when e<=b+coalesce((select 11 from t1 where 11<>13),17)-17 then t1.d else d end+19 then 11 else d end))) from t1)- -d-(t1.e) in (select 17 from t1 union select 11 from t1) then t1.e when exists(select 1 from t1 where e>t1.c) then t1.b else 13 end FROM t1 WHERE NOT (e in (select count(*) from t1 union select min(case when (select abs(cast(avg(+17) AS integer)) from t1) not between t1.e and 17+t1.f then f when ((case when ((select cast(avg(t1.d) AS integer) from t1)=17) then 19 else t1.f end)<>t1.c or t1.a in (select -+abs(cast(avg(t1.b) AS integer)) from t1 union select +((cast(avg(11) AS integer)))+ -min(b) from t1)) or not exists(select 1 from t1 where ((t1.d in (b,a,17)) and f<=t1.a)) and t1.f<> - -t1.a then d else - -t1.d end) from t1))
423.5
842
0.672373
739c65571af805f85a5801b750a1b69cf98b5815
249
swift
Swift
TrafficCameras/TrafficCameras/TrafficCamerasApp.swift
DzmitryHerasiuk/TrafficCameras
0146c6d5d23cac6ebfaebab47b8da259c0f8277e
[ "MIT" ]
null
null
null
TrafficCameras/TrafficCameras/TrafficCamerasApp.swift
DzmitryHerasiuk/TrafficCameras
0146c6d5d23cac6ebfaebab47b8da259c0f8277e
[ "MIT" ]
null
null
null
TrafficCameras/TrafficCameras/TrafficCamerasApp.swift
DzmitryHerasiuk/TrafficCameras
0146c6d5d23cac6ebfaebab47b8da259c0f8277e
[ "MIT" ]
null
null
null
// // TrafficCamerasApp.swift // TrafficCameras // // Created by Dzmitry Herasiuk on 16.06.21. // import SwiftUI @main struct TrafficCamerasApp: App { var body: some Scene { WindowGroup { ContentView() } } }
13.833333
44
0.598394
5740f286632e668940d285a99c8cc5d7a8f25dde
386
h
C
Source/Curvature/Interfaces/RenameableInterface.h
hotgluegames/Curvature
ea41374337e7c50d0770c5659fd77009206b0ce6
[ "Unlicense" ]
3
2018-09-20T07:17:21.000Z
2021-07-23T14:59:09.000Z
Source/Curvature/Interfaces/RenameableInterface.h
hotgluegames/Curvature
ea41374337e7c50d0770c5659fd77009206b0ce6
[ "Unlicense" ]
null
null
null
Source/Curvature/Interfaces/RenameableInterface.h
hotgluegames/Curvature
ea41374337e7c50d0770c5659fd77009206b0ce6
[ "Unlicense" ]
null
null
null
#pragma once #include "RenameableInterface.generated.h" UINTERFACE(BlueprintType, meta = (CannotImplementInterfaceInBlueprint)) class CURVATURE_API URenameableInterface : public UInterface { GENERATED_UINTERFACE_BODY() }; class CURVATURE_API IRenameableInterface { GENERATED_IINTERFACE_BODY() virtual FName GetName() const = 0; virtual void Rename(FName string) = 0; };
27.571429
71
0.787565
2f4edf5b49c64429cbe7ba8217a60268a5b51459
129
php
PHP
project/Login_OSS/lib/Exception/DuplicateEmail.php
Atio716/ToDoList_OSS
843d7ecbcbdc65026a3fa296bb783f4a6f54459f
[ "MIT" ]
null
null
null
project/Login_OSS/lib/Exception/DuplicateEmail.php
Atio716/ToDoList_OSS
843d7ecbcbdc65026a3fa296bb783f4a6f54459f
[ "MIT" ]
null
null
null
project/Login_OSS/lib/Exception/DuplicateEmail.php
Atio716/ToDoList_OSS
843d7ecbcbdc65026a3fa296bb783f4a6f54459f
[ "MIT" ]
null
null
null
<?php namespace MyApp\Exception; class DuplicateEmail extends \Exception { protected $message = 'Duplicate Email!'; }
16.125
43
0.705426
600fbe542769009ec4352fc9e6e4b7bddba80608
87
sql
SQL
spring-xd-batch/src/main/resources/org/springframework/xd/batch/schema/registry-schema-drop-hsqldb.sql
wwjiang007/spring-xd
ec106725c51d245109b2e5055d9f65e43228ecc1
[ "Apache-2.0" ]
332
2015-01-03T23:47:23.000Z
2022-02-06T17:09:21.000Z
spring-xd-batch/src/main/resources/org/springframework/xd/batch/schema/registry-schema-drop-hsqldb.sql
wwjiang007/spring-xd
ec106725c51d245109b2e5055d9f65e43228ecc1
[ "Apache-2.0" ]
518
2015-01-01T16:41:07.000Z
2021-06-18T13:47:43.000Z
spring-xd-batch/src/main/resources/org/springframework/xd/batch/schema/registry-schema-drop-hsqldb.sql
wwjiang007/spring-xd
ec106725c51d245109b2e5055d9f65e43228ecc1
[ "Apache-2.0" ]
229
2015-01-03T23:47:31.000Z
2022-02-25T06:30:35.000Z
DROP TABLE XD_JOB_REGISTRY IF EXISTS; DROP TABLE XD_JOB_REGISTRY_STEP_NAMES IF EXISTS;
29
48
0.862069
d02a089efed693a151940f6c5523810a86c1fcea
812
css
CSS
src/MiniCover.Reports/Html/Shared.css
lucaslorentz/minicover
30a16e40a2fab9812aeb48e362a7f3ebe7390c76
[ "MIT" ]
212
2017-04-16T21:46:50.000Z
2022-03-05T05:03:29.000Z
src/MiniCover.Reports/Html/Shared.css
Illia-M/minicover
30a16e40a2fab9812aeb48e362a7f3ebe7390c76
[ "MIT" ]
118
2017-12-04T20:51:30.000Z
2022-02-02T20:43:38.000Z
src/MiniCover.Reports/Html/Shared.css
Illia-M/minicover
30a16e40a2fab9812aeb48e362a7f3ebe7390c76
[ "MIT" ]
42
2017-12-01T16:13:59.000Z
2022-03-05T05:05:51.000Z
* { box-sizing: border-box; } body { font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; font-size: 14px; color: #24292e; } table { border-collapse: collapse; font-size: 14px; } th { font-weight: 600; background-color: #fafafa; } th, td { text-align: left; padding: 5px; border: 1px solid #aaa; } tr.total { font-weight: bold; } th.value { text-align: center; } td.value { text-align: right; } .green { background-color: #e8f5e9; } .red { background-color: #ffebee; } h2 { font-weight: 600; } a, a:visited, a:active { color: #0078D4; text-decoration: none; } a:hover { text-decoration: underline; }
14
120
0.570197
a9a0a479b579cd5c94ccbd37d2f9ef9a815b97c6
41,413
html
HTML
_volume_pages/0496.html
sarepal/Descrizione-2020-03-10
0bc4e7d7f8015b9585825f2f6abad2ab494889ec
[ "MIT" ]
null
null
null
_volume_pages/0496.html
sarepal/Descrizione-2020-03-10
0bc4e7d7f8015b9585825f2f6abad2ab494889ec
[ "MIT" ]
3
2021-05-20T14:24:09.000Z
2022-02-26T06:50:20.000Z
_volume_pages/0496.html
jcmundy/testing_updates_20200421
7f76497bcce6f3d55a93acde3857fb288af0949b
[ "MIT" ]
null
null
null
--- sort_order: 496 canvas_id: https://readux.ecdsdev.org/iiif/15210893.5622.emory.edu/canvas/15210893.5622.emory.edu$497 annotation_count: 0 images: small-thumbnail: https://iiif.archivelab.org/iiif//15210893.5622.emory.edu$497/full/200,/0/default.jpg json: https://iiif.archivelab.org/iiif//15210893.5622.emory.edu$497/info.json full: https://iiif.archivelab.org/iiif//15210893.5622.emory.edu$497/full/full/0/default.jpg page: https://iiif.archivelab.org/iiif//15210893.5622.emory.edu$497/full/full/0/default.jpg thumbnail: https://iiif.archivelab.org/iiif//15210893.5622.emory.edu$497/full/200,/0/default.jpg title: '498' number: 497 --- <div class="ocr-line ocrtext" style="left:19.14%;top:13.66%;width:40.66%;height:2.02%;text-align:left;font-size:63px" data-vhfontsize="2"> <span> <span id='5687dbad-196e-4c82-ab12-12ca87033644' style='height: 51px; width: 63px; font-size: 31.875px; letter-spacing: 15.5625px' data-letter-spacing='0.24702380952380953'>de</span> <span id='ecfb81e2-3e69-472d-b9fd-45c7836340e9' style='height: 73px; width: 373px; font-size: 45.625px; letter-spacing: 11.096590909090908px' data-letter-spacing='0.029749573482817447'>Hierofotyma</span> <span id='f108784c-f333-4758-b51f-b2007c634fef' style='height: 66px; width: 366px; font-size: 41.25px; letter-spacing: 12.647727272727273px' data-letter-spacing='0.03455663189269747'>recuperanda</span> </span> </div> <div class="ocr-line ocrtext" style="left:10.29%;top:13.85%;width:59.71%;height:1.49%;text-align:left;font-size:45px" data-vhfontsize="2"> <span> <span id='f8125a60-7d85-4f26-a6ee-9a7fdbf57a01' style='height: 37px; width: 148px; font-size: 23.125px; letter-spacing: 25.4375px' data-letter-spacing='0.171875'>crum</span> <span id='a01231d3-20db-4aa7-a135-2a2ddd27c955' style='height: 54px; width: 186px; font-size: 33.75px; letter-spacing: 14.125px' data-letter-spacing='0.07594086021505377'>decer"</span> </span> </div> <div class="ocr-line ocrtext" style="left:10.25%;top:15.79%;width:47.53%;height:2.05%;text-align:left;font-size:64px" data-vhfontsize="2"> <span> <span id='b606dfce-ce51-499a-a177-5485a9053a40' style='height: 49px; width: 57px; font-size: 30.625px; letter-spacing: 13.1875px' data-letter-spacing='0.23135964912280702'>ni</span> <span id='c7f618d9-4928-45e1-95e7-bf57f0e617ca' style='height: 74px; width: 371px; font-size: 46.25px; letter-spacing: 7.791666666666667px' data-letter-spacing='0.021001796945193173'>Crucejìgnati</span> <span id='3944d92e-53dd-464f-b3ee-872c9f6492a5' style='height: 71px; width: 358px; font-size: 44.375px; letter-spacing: 5.350961538461538px' data-letter-spacing='0.0149468199398367'>'vijìituuntur</span> </span> </div> <div class="ocr-line ocrtext" style="left:13.15%;top:16.26%;width:46.27%;height:1.3%;text-align:left;font-size:22px" data-vhfontsize="2"> <span> <span id='149753a6-9d7a-457d-a2b5-2575ba321dc7' style='height: 40px; width: 94px; font-size: 25.0px; letter-spacing: 18.833333333333332px' data-letter-spacing='0.200354609929078'>tur</span> <span id='7a42de80-79c6-4edf-aeef-df987813fd50' style='height: 13px; width: 14px; font-size: 8.125px; letter-spacing: 9.9375px' data-letter-spacing='0.7098214285714286'>.</span> <span id='82c4dd8e-6aeb-43c7-9e7f-dba16b36e246' style='height: 14px; width: 13px; font-size: 8.75px; letter-spacing: 8.625px' data-letter-spacing='0.6634615384615384'>.</span> </span> </div> <div class="ocr-line ocrtext" style="left:10.05%;top:20.03%;width:59.62%;height:2.13%;text-align:left;font-size:58px" data-vhfontsize="2"> <span> <span id='15689895-a3bc-4e9e-b5d5-5f3416304623' style='height: 57px; width: 73px; font-size: 35.625px; letter-spacing: 18.6875px' data-letter-spacing='0.2559931506849315'>Di</span> <span id='38b06e55-75e3-4a81-8cb4-d9a69fe1c602' style='height: 60px; width: 182px; font-size: 37.5px; letter-spacing: 11.583333333333334px' data-letter-spacing='0.06364468864468865'>fianco</span> <span id='d3452ef7-4b5a-459c-a340-898d79db063c' style='height: 57px; width: 39px; font-size: 35.625px; letter-spacing: 1.6875px' data-letter-spacing='0.04326923076923077'>fi</span> <span id='20f7b23c-79dc-4bbd-ba4f-2c499b9d3240' style='height: 58px; width: 145px; font-size: 36.25px; letter-spacing: 18.125px' data-letter-spacing='0.125'>vede</span> <span id='26d2eacb-0aa5-4c62-8381-61b12260fe23' style='height: 57px; width: 34px; font-size: 35.625px; letter-spacing: -0.8125px' data-letter-spacing='-0.02389705882352941'>iJ</span> <span id='ec1c90d8-bfce-4a13-99fe-47ccbfe0f2ab' style='height: 72px; width: 147px; font-size: 45.0px; letter-spacing: 14.25px' data-letter-spacing='0.09693877551020408'>Papa</span> <span id='585b693e-49a5-4d72-bbec-cfa776712f88' style='height: 64px; width: 307px; font-size: 40.0px; letter-spacing: 18.375px' data-letter-spacing='0.05985342019543974'>dormente</span> <span id='5807f6fe-5562-434c-838f-a17b41c5689d' style='height: 41px; width: 31px; font-size: 25.625px; letter-spacing: 18.1875px' data-letter-spacing='0.5866935483870968'>a</span> </span> </div> <div class="ocr-line ocrtext" style="left:65.61%;top:21.5%;width:0.87%;height:0.72%;text-align:left;font-size:26px" data-vhfontsize="2"> <span> <span id='b6d7eb31-a99f-45f2-9d0d-c0993d1303a2' style='height: 26px; width: 18px; font-size: 16.25px; letter-spacing: 9.875px' data-letter-spacing='0.5486111111111112'>,</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.72%;top:22.25%;width:49.75%;height:1.77%;text-align:left;font-size:56px" data-vhfontsize="2"> <span> <span id='b1824391-0321-433a-b5c2-60322528ece9' style='height: 60px; width: 78px; font-size: 37.5px; letter-spacing: 7.25px' data-letter-spacing='0.09294871794871795'>cui</span> <span id='ea53aeb4-0a44-432b-8fb2-adf67e9e73a5' style='height: 56px; width: 52px; font-size: 35.0px; letter-spacing: 8.5px' data-letter-spacing='0.16346153846153846'>in</span> <span id='6c327a83-4f71-4cfb-8db3-037c690fd05f' style='height: 57px; width: 208px; font-size: 35.625px; letter-spacing: 11.901785714285714px' data-letter-spacing='0.057220123626373624'>vifìone</span> <span id='6619ca3d-aa5f-4083-a9e3-b9eac85def91' style='height: 56px; width: 53px; font-size: 35.0px; letter-spacing: 9.0px' data-letter-spacing='0.16981132075471697'>S.</span> <span id='a62148b7-be24-48cd-8071-e66b187c9992' style='height: 55px; width: 305px; font-size: 34.375px; letter-spacing: 16.70138888888889px' data-letter-spacing='0.05475865209471767'>brancefeo</span> </span> </div> <div class="ocr-line ocrtext" style="left:26.98%;top:22.58%;width:42.69%;height:1.57%;text-align:left;font-size:52px" data-vhfontsize="2"> <span> <span id='77daf477-cfd1-46d6-aa84-68ae45bba955' style='height: 49px; width: 204px; font-size: 30.625px; letter-spacing: 18.6875px' data-letter-spacing='0.09160539215686274'>appare</span> <span id='2a0ba0ff-01b1-499a-82ab-83d8d2f7f54c' style='height: 56px; width: 84px; font-size: 35.0px; letter-spacing: 10.5px' data-letter-spacing='0.125'>fo-</span> </span> </div> <div class="ocr-line ocrtext" style="left:59.18%;top:22.86%;width:5.22%;height:1.24%;text-align:left;font-size:45px" data-vhfontsize="2"> <span> <span id='4e9c6ddc-eda7-48ed-859f-06e5448c8ffb' style='height: 45px; width: 108px; font-size: 28.125px; letter-spacing: 21.9375px' data-letter-spacing='0.203125'>cne</span> </span> </div> <div class="ocr-line ocrtext" style="left:57.49%;top:23.61%;width:0.82%;height:0.74%;text-align:left;font-size:27px" data-vhfontsize="2"> <span> <span id='734c7de1-1c5a-4217-b948-776bf9d4706c' style='height: 27px; width: 17px; font-size: 16.875px; letter-spacing: 8.5625px' data-letter-spacing='0.5036764705882353'>,</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.72%;top:24.44%;width:62.76%;height:1.99%;text-align:left;font-size:58px" data-vhfontsize="2"> <span> <span id='7aba4de5-dd7b-4f98-9f96-023ebb1a870a' style='height: 58px; width: 159px; font-size: 36.25px; letter-spacing: 8.375px' data-letter-spacing='0.05267295597484277'>ftiene</span> <span id='8935ec98-d2c2-4f23-a5cf-ab8053fa93ee' style='height: 49px; width: 53px; font-size: 30.625px; letter-spacing: 11.1875px' data-letter-spacing='0.21108490566037735'>Je</span> <span id='07ea0ef5-8079-4da0-9d62-8bd059ef2006' style='height: 71px; width: 163px; font-size: 44.375px; letter-spacing: 4.979166666666667px' data-letter-spacing='0.03054703476482618'>fpalie</span> <span id='c6b3ba55-e06c-4e1f-b8f8-7d8630b8cf42' style='height: 55px; width: 52px; font-size: 34.375px; letter-spacing: 8.8125px' data-letter-spacing='0.16947115384615385'>Ja</span> <span id='d04f1dc0-eb5d-4e06-9355-198d1c79ca5f' style='height: 58px; width: 229px; font-size: 36.25px; letter-spacing: 10.5px' data-letter-spacing='0.04585152838427948'>Bafilica</span> <span id='7a1b2ed4-8d30-4b10-90f0-1d517642eb08' style='height: 62px; width: 405px; font-size: 38.75px; letter-spacing: 14.375px' data-letter-spacing='0.035493827160493825'>Lateranenfe.</span> </span> </div> <div class="ocr-line ocrtext" style="left:15.28%;top:24.94%;width:5.17%;height:1.05%;text-align:left;font-size:38px" data-vhfontsize="2"> <span> <span id='55380dd5-7951-49f6-a44a-a51158563658' style='height: 38px; width: 107px; font-size: 23.75px; letter-spacing: 23.791666666666668px' data-letter-spacing='0.2223520249221184'>con</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.67%;top:26.57%;width:47.58%;height:1.8%;text-align:left;font-size:57px" data-vhfontsize="2"> <span> <span id='514aa7b7-5227-43c2-95c4-a9d958ad69ab' style='height: 60px; width: 139px; font-size: 37.5px; letter-spacing: 9.05px' data-letter-spacing='0.06510791366906475'>Dall'</span> <span id='2220ef78-79cc-421b-a7f0-06d276c23e40' style='height: 55px; width: 132px; font-size: 34.375px; letter-spacing: 9.2125px' data-letter-spacing='0.06979166666666667'>altra</span> <span id='b045ecbb-2ee5-4d39-a8c3-823f6c709341' style='height: 55px; width: 54px; font-size: 34.375px; letter-spacing: 9.8125px' data-letter-spacing='0.18171296296296297'>S.</span> <span id='d0800b1f-2992-40c6-a05c-b3d789714d6b' style='height: 60px; width: 327px; font-size: 37.5px; letter-spacing: 22.125px' data-letter-spacing='0.0676605504587156'>Domenico</span> </span> </div> <div class="ocr-line ocrtext" style="left:22.0%;top:26.94%;width:47.38%;height:1.66%;text-align:left;font-size:47px" data-vhfontsize="2"> <span> <span id='6b4f6e55-f8b8-416c-a113-5add7f1be1cb' style='height: 56px; width: 156px; font-size: 35.0px; letter-spacing: 13.7px' data-letter-spacing='0.08782051282051281'>parte</span> <span id='999e6c6e-a2e2-4260-b960-1795693f944a' style='height: 41px; width: 31px; font-size: 25.625px; letter-spacing: 18.1875px' data-letter-spacing='0.5866935483870968'>e</span> <span id='2d2dde16-191a-4820-b6fa-3bd1a4dd9eec' style='height: 54px; width: 106px; font-size: 33.75px; letter-spacing: 18.458333333333332px' data-letter-spacing='0.17413522012578614'>che</span> <span id='6ec77816-44be-4226-8c7b-96fdd3ec6445' style='height: 37px; width: 101px; font-size: 23.125px; letter-spacing: 22.104166666666668px' data-letter-spacing='0.21885313531353137'>co-</span> </span> </div> <div class="ocr-line ocrtext" style="left:55.51%;top:27.93%;width:0.82%;height:0.77%;text-align:left;font-size:28px" data-vhfontsize="2"> <span> <span id='312819e8-a618-4772-9861-32862b2c1089' style='height: 28px; width: 17px; font-size: 17.5px; letter-spacing: 8.25px' data-letter-spacing='0.4852941176470588'>,</span> </span> </div> <div class="ocr-line ocrtext" style="left:11.65%;top:28.76%;width:42.79%;height:2.05%;text-align:left;font-size:61px" data-vhfontsize="2"> <span> <span id='6071de62-be54-491a-a661-cc3b0b0cff42' style='height: 74px; width: 325px; font-size: 46.25px; letter-spacing: 6.420454545454546px' data-letter-spacing='0.019755244755244757'>Inquifìtore</span> <span id='8881d2c8-17cb-437e-9094-b9c3680d4b24' style='height: 58px; width: 152px; font-size: 36.25px; letter-spacing: 12.275px' data-letter-spacing='0.08075657894736843'>tiene</span> <span id='11f37e73-7411-46b7-9a34-9d7f9bd163f2' style='height: 56px; width: 56px; font-size: 35.0px; letter-spacing: 10.5px' data-letter-spacing='0.1875'>in</span> <span id='8634bc0c-e38b-4179-9291-0b3dbe232faa' style='height: 57px; width: 52px; font-size: 35.625px; letter-spacing: 8.1875px' data-letter-spacing='0.15745192307692307'>la</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.57%;top:29.01%;width:57.01%;height:1.94%;text-align:left;font-size:55px" data-vhfontsize="2"> <span> <span id='b2f3d100-81ab-4eb8-ab13-bc3aabd57a8b' style='height: 40px; width: 85px; font-size: 25.0px; letter-spacing: 30.0px' data-letter-spacing='0.35294117647058826'>me</span> <span id='b245e7af-c9c3-4163-ae2d-8611facbec38' style='height: 70px; width: 165px; font-size: 43.75px; letter-spacing: 11.125px' data-letter-spacing='0.06742424242424243'>feopa</span> </span> </div> <div class="ocr-line ocrtext" style="left:41.92%;top:29.35%;width:27.36%;height:1.35%;text-align:left;font-size:41px" data-vhfontsize="2"> <span> <span id='99fe48a8-704f-4926-b68f-674654a5e4cd' style='height: 40px; width: 172px; font-size: 25.0px; letter-spacing: 30.5px' data-letter-spacing='0.17732558139534885'>mano</span> <span id='138784e4-41bc-4af8-9d7b-fa03948a12b9' style='height: 42px; width: 33px; font-size: 26.25px; letter-spacing: 19.875px' data-letter-spacing='0.6022727272727273'>e</span> </span> </div> <div class="ocr-line ocrtext" style="left:64.84%;top:30.23%;width:0.82%;height:0.72%;text-align:left;font-size:26px" data-vhfontsize="2"> <span> <span id='a972cc1e-ba72-40e5-96b1-4f3b6b0ee84b' style='height: 26px; width: 17px; font-size: 16.25px; letter-spacing: 8.875px' data-letter-spacing='0.5220588235294118'>,</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.81%;top:30.87%;width:62.57%;height:2.46%;text-align:left;font-size:62px" data-vhfontsize="2"> <span> <span id='33be46c9-e297-4263-a865-a759bea39b98' style='height: 58px; width: 44px; font-size: 36.25px; letter-spacing: 3.875px' data-letter-spacing='0.08806818181818182'>(a</span> <span id='1e262dfa-4aff-49b1-9559-b86d240cd213' style='height: 59px; width: 238px; font-size: 36.875px; letter-spacing: 11.3125px' data-letter-spacing='0.047531512605042014'>bruciare</span> <span id='51f29460-1df4-4f61-9403-5803bf0e2aa0' style='height: 58px; width: 16px; font-size: 36.25px; letter-spacing: -2.125px' data-letter-spacing='-0.1328125'>i</span> <span id='29cd8c48-b215-478f-a947-0b4c8197f652' style='height: 58px; width: 120px; font-size: 36.25px; letter-spacing: 5.875px' data-letter-spacing='0.04895833333333333'>libri</span> <span id='86e9756c-81bd-4178-8d7c-6b45aa352b29' style='height: 69px; width: 128px; font-size: 43.125px; letter-spacing: 4.0375px' data-letter-spacing='0.03154296875'>ciegl</span> <span id='3f94abda-0d73-4827-93c2-aa6e3206d9ec' style='height: 57px; width: 16px; font-size: 35.625px; letter-spacing: -1.8125px' data-letter-spacing='-0.11328125'>i</span> <span id='70b80bad-ffba-4daa-b411-6a2ab0be39c2' style='height: 60px; width: 215px; font-size: 37.5px; letter-spacing: 8.125px' data-letter-spacing='0.0377906976744186'>eretici.</span> <span id='f68c8728-f2c6-4583-9077-d84cc88f133a' style='height: 80px; width: 383px; font-size: 50.0px; letter-spacing: 4.461538461538462px' data-letter-spacing='0.011648925487045592'>I/ifcrizione,</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.62%;top:33.12%;width:29.3%;height:1.6%;text-align:left;font-size:55px" data-vhfontsize="2"> <span> <span id='0d1bad85-4fa8-46fc-9e12-5ca532e868dd' style='height: 55px; width: 95px; font-size: 34.375px; letter-spacing: 14.479166666666666px' data-letter-spacing='0.1524122807017544'>che</span> <span id='81e25152-ef20-4df8-8219-196f951b6617' style='height: 54px; width: 67px; font-size: 33.75px; letter-spacing: 16.625px' data-letter-spacing='0.24813432835820895'>ha</span> <span id='9c8baeb0-1002-45d8-a685-08ecdcff7759' style='height: 57px; width: 80px; font-size: 35.625px; letter-spacing: 8.854166666666666px' data-letter-spacing='0.11067708333333333'>fot</span> <span id='98c49f1b-f0c7-4273-915a-2f5d4e9fa865' style='height: 57px; width: 162px; font-size: 35.625px; letter-spacing: 14.5875px' data-letter-spacing='0.0900462962962963'>dice:</span> </span> </div> <div class="ocr-line ocrtext" style="left:20.59%;top:33.56%;width:4.93%;height:1.52%;text-align:left;font-size:55px" data-vhfontsize="2"> <span> <span id='fe437679-4eea-4489-a86d-9df570cfbc67' style='height: 55px; width: 102px; font-size: 34.375px; letter-spacing: 16.8125px' data-letter-spacing='0.16482843137254902'>to,</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.52%;top:37.44%;width:56.91%;height:2.32%;text-align:left;font-size:64px" data-vhfontsize="2"> <span> <span id='65080124-6f92-421d-9edf-d582abec3170' style='height: 57px; width: 47px; font-size: 35.625px; letter-spacing: 5.6875px' data-letter-spacing='0.12101063829787234'>S.</span> <span id='260b79dd-6713-4b2f-9565-336de9f2f96d' style='height: 53px; width: 283px; font-size: 33.125px; letter-spacing: 23.866071428571427px' data-letter-spacing='0.0843324078748107'>Domìnko</span> <span id='f3cef3c4-24d4-4c7b-bcf8-d1ed419d664c' style='height: 72px; width: 265px; font-size: 45.0px; letter-spacing: 10.625px' data-letter-spacing='0.04009433962264151'>fuadente</span> <span id='107123ed-84cf-433b-be39-24ae45066887' style='height: 76px; width: 330px; font-size: 47.5px; letter-spacing: 9.25px' data-letter-spacing='0.02803030303030303'>Albigenfei</span> </span> </div> <div class="ocr-line ocrtext" style="left:37.52%;top:37.91%;width:31.76%;height:1.44%;text-align:left;font-size:45px" data-vhfontsize="2"> <span> <span id='e79e0a42-0ea6-4333-91fa-2ae7da44b642' style='height: 39px; width: 188px; font-size: 24.375px; letter-spacing: 14.669642857142858px' data-letter-spacing='0.07803001519756839'>contro,</span> <span id='43d3e405-9ea3-4a5e-b302-e2f397fcacd7' style='height: 52px; width: 100px; font-size: 32.5px; letter-spacing: 8.75px' data-letter-spacing='0.0875'>h<e~</span> </span> </div> <div class="ocr-line ocrtext" style="left:9.57%;top:39.68%;width:59.71%;height:2.38%;text-align:left;font-size:58px" data-vhfontsize="2"> <span> <span id='2d601cf8-d52f-437b-b24f-4f356eafd923' style='height: 49px; width: 195px; font-size: 30.625px; letter-spacing: 12.544642857142858px' data-letter-spacing='0.06433150183150184'>reticos</span> <span id='dddbd516-c102-441c-bbee-7432f064f14d' style='height: 54px; width: 189px; font-size: 33.75px; letter-spacing: 20.925px' data-letter-spacing='0.11071428571428572'>Simo»</span> <span id='952c8272-fc91-4ba6-b16f-b773018329ee' style='height: 56px; width: 185px; font-size: 35.0px; letter-spacing: 19.5px' data-letter-spacing='0.10540540540540541'>Comes</span> <span id='7f55e503-a7bb-4623-bf39-00d7465fd311' style='height: 73px; width: 380px; font-size: 45.625px; letter-spacing: 11.732954545454545px' data-letter-spacing='0.030876196172248804'>Mmtìforten.</span> <span id='04606416-fce3-4f7d-9bf5-f73453a78266' style='height: 60px; width: 106px; font-size: 37.5px; letter-spacing: 16.583333333333332px' data-letter-spacing='0.15644654088050314'>pu-</span> </span> </div> <div class="ocr-line ocrtext" style="left:8.99%;top:41.76%;width:48.83%;height:2.18%;text-align:left;font-size:57px" data-vhfontsize="2"> <span> <span id='5ca7eefc-d0ed-4a77-b3a1-d791dbab3a6d' style='height: 76px; width: 401px; font-size: 47.5px; letter-spacing: 9.666666666666666px' data-letter-spacing='0.024106400665004156'>gnamjufcipit</span> <span id='1e4410b7-e5a8-46e3-8022-d9ff285018f8' style='height: 68px; width: 318px; font-size: 42.5px; letter-spacing: 10.55px' data-letter-spacing='0.03317610062893082'>egregieque</span> <span id='f9ad84a3-4970-472f-afd1-56e5dbaaf195' style='height: 70px; width: 214px; font-size: 43.75px; letter-spacing: 4.875px' data-letter-spacing='0.0227803738317757'>conficit</span> <span id='2c797c34-b2b4-412b-96c9-19eb60b27248' style='height: 16px; width: 15px; font-size: 10.0px; letter-spacing: 10.0px' data-letter-spacing='0.6666666666666666'>.</span> </span> </div> <div class="ocr-line ocrtext" style="left:9.81%;top:46.03%;width:41.05%;height:2.18%;text-align:left;font-size:68px" data-vhfontsize="2"> <span> <span id='dcf3165e-95f1-4fd0-a157-846a34d06579' style='height: 79px; width: 210px; font-size: 49.375px; letter-spacing: 10.3125px' data-letter-spacing='0.049107142857142856'>Quindi</span> <span id='d123971a-2a35-4ed2-ac28-4a2abcb46a2d' style='height: 73px; width: 170px; font-size: 45.625px; letter-spacing: 11.1875px' data-letter-spacing='0.06580882352941177'>fegue</span> <span id='2a088406-8b42-4583-9d0c-7a10180673c3' style='height: 56px; width: 54px; font-size: 35.0px; letter-spacing: 9.5px' data-letter-spacing='0.17592592592592593'>le</span> <span id='4b5af5e1-64bf-4655-8747-91070d3d4dc6' style='height: 65px; width: 224px; font-size: 40.625px; letter-spacing: 7.6875px' data-letter-spacing='0.03431919642857143'>fineftre</span> </span> </div> <div class="ocr-line ocrtext" style="left:31.28%;top:46.34%;width:37.76%;height:1.91%;text-align:left;font-size:56px" data-vhfontsize="2"> <span> <span id='4e570af8-789d-42b1-b9a7-3af632edb67f' style='height: 45px; width: 85px; font-size: 28.125px; letter-spacing: 14.270833333333334px' data-letter-spacing='0.1678921568627451'>tra</span> <span id='6c159b4a-9275-475b-b471-ebef378309a4' style='height: 59px; width: 37px; font-size: 36.875px; letter-spacing: 0.0625px' data-letter-spacing='0.0016891891891891893'>il</span> <span id='1cd40508-084f-4297-8e89-5aaeeb9b8563' style='height: 65px; width: 268px; font-size: 40.625px; letter-spacing: 13.1875px' data-letter-spacing='0.049207089552238806'>Concilio</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.09%;top:48.19%;width:63.0%;height:2.21%;text-align:left;font-size:61px" data-vhfontsize="2"> <span> <span id='a4720e0b-ea41-4442-b03f-23c97fe5760a' style='height: 74px; width: 170px; font-size: 46.25px; letter-spacing: 10.875px' data-letter-spacing='0.06397058823529411'>primo</span> <span id='0b8fb6ac-0dab-47c4-8cb2-49dc047b9aa2' style='height: 58px; width: 55px; font-size: 36.25px; letter-spacing: 9.375px' data-letter-spacing='0.17045454545454544'>di</span> <span id='9be1e8e4-fccf-4c91-bba5-f54a2bec265c' style='height: 60px; width: 221px; font-size: 37.5px; letter-spacing: 18.083333333333332px' data-letter-spacing='0.08182503770739065'>Lione.</span> <span id='4a621f46-c204-41bd-b4ae-b176761e8cab' style='height: 60px; width: 157px; font-size: 37.5px; letter-spacing: 12.65px' data-letter-spacing='0.08057324840764331'>Dall'</span> <span id='3f43bc05-fbbb-4c9a-906f-d033aefe4ff3' style='height: 62px; width: 290px; font-size: 38.75px; letter-spacing: 12.847222222222221px' data-letter-spacing='0.0443007662835249'>Scrizione</span> <span id='4b8ae306-6d7d-4af8-9b3f-9e829d9d4f53' style='height: 58px; width: 54px; font-size: 36.25px; letter-spacing: 8.875px' data-letter-spacing='0.16435185185185186'>fé</span> <span id='48e38c95-c72c-4927-b2d7-67817f9515e2' style='height: 58px; width: 74px; font-size: 36.25px; letter-spacing: 6.541666666666667px' data-letter-spacing='0.0884009009009009'>ri-</span> </span> </div> <div class="ocr-line ocrtext" style="left:60.83%;top:49.19%;width:3.38%;height:1.16%;text-align:left;font-size:42px" data-vhfontsize="2"> <span> <span id='9830dceb-35c6-412c-a49c-8c804c3f9b80' style='height: 42px; width: 70px; font-size: 26.25px; letter-spacing: 21.875px' data-letter-spacing='0.3125'>ne</span> </span> </div> <div class="ocr-line ocrtext" style="left:12.42%;top:50.44%;width:26.3%;height:2.05%;text-align:left;font-size:67px" data-vhfontsize="2"> <span> <span id='8cc08677-9a01-454f-ad3e-fbbdca22fc49' style='height: 74px; width: 210px; font-size: 46.25px; letter-spacing: 6.875px' data-letter-spacing='0.03273809523809524'>quello,</span> <span id='6d355aca-a98e-42a9-bae3-bd70481a93fe' style='height: 61px; width: 113px; font-size: 38.125px; letter-spacing: 9.1875px' data-letter-spacing='0.08130530973451328'>elfo</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.28%;top:50.49%;width:54.11%;height:2.21%;text-align:left;font-size:53px" data-vhfontsize="2"> <span> <span id='833bb8af-27b9-4270-83d9-b32bf5ab2d4c' style='height: 47px; width: 108px; font-size: 29.375px; letter-spacing: 12.3125px' data-letter-spacing='0.11400462962962964'>trae</span> <span id='7c73feb8-c1f7-4ca4-a644-61be079e52a1' style='height: 57px; width: 107px; font-size: 35.625px; letter-spacing: 17.854166666666668px' data-letter-spacing='0.16686137071651092'>che</span> <span id='3510564e-9ceb-46d3-98d5-050fb77e3e78' style='height: 59px; width: 55px; font-size: 36.875px; letter-spacing: 9.0625px' data-letter-spacing='0.16477272727272727'>in</span> <span id='940cd17c-cc14-4ae9-9062-a524fd30de00' style='height: 60px; width: 135px; font-size: 37.5px; letter-spacing: 8.25px' data-letter-spacing='0.06111111111111111'>folle</span> <span id='2d076915-1226-4625-ba54-d4e261e06845' style='height: 57px; width: 238px; font-size: 35.625px; letter-spacing: 16.1875px' data-letter-spacing='0.06801470588235294'>operato</span> <span id='c3323abf-7952-401b-af4d-b14a5176cb1b' style='height: 39px; width: 14px; font-size: 24.375px; letter-spacing: 1.8125px' data-letter-spacing='0.12946428571428573'>:</span> </span> </div> <div class="ocr-line ocrtext" style="left:6.04%;top:54.76%;width:62.95%;height:2.18%;text-align:left;font-size:56px" data-vhfontsize="2"> <span> <span id='b99b7893-b666-450c-a553-ac53f67cfd3b' style='height: 60px; width: 293px; font-size: 37.5px; letter-spacing: 10.55px' data-letter-spacing='0.03600682593856656'>Innocentio</span> <span id='dfeee9e6-3aa0-457f-bfc6-d48eb69c43dd' style='height: 53px; width: 103px; font-size: 33.125px; letter-spacing: 17.770833333333332px' data-letter-spacing='0.17253236245954692'>IV.</span> <span id='f7753bd8-0226-457d-883e-e2054387a84a' style='height: 58px; width: 168px; font-size: 36.25px; letter-spacing: 15.475px' data-letter-spacing='0.09211309523809523'>Pont.</span> <span id='7dc134fc-ac82-4cbe-b38b-ab72be30e965' style='height: 57px; width: 160px; font-size: 35.625px; letter-spacing: 22.1875px' data-letter-spacing='0.138671875'>Max,</span> <span id='143b4262-c37c-4d66-aa3e-e690356a5f20' style='height: 53px; width: 34px; font-size: 33.125px; letter-spacing: 17.4375px' data-letter-spacing='0.5128676470588235'>l</span> <span id='abc7708b-c2db-4878-bbfe-fd2f457a3388' style='height: 60px; width: 221px; font-size: 37.5px; letter-spacing: 12.821428571428571px' data-letter-spacing='0.05801551389786684'>Federi-</span> </span> </div> <div class="ocr-line ocrtext" style="left:51.35%;top:55.79%;width:2.41%;height:0.94%;text-align:left;font-size:34px" data-vhfontsize="2"> <span> <span id='5a089d18-79c6-4c43-90b4-cc24f191cd04' style='height: 34px; width: 50px; font-size: 21.25px; letter-spacing: 39.375px' data-letter-spacing='0.7875'>m</span> </span> </div> <div class="ocr-line ocrtext" style="left:53.48%;top:55.54%;width:2.75%;height:1.63%;text-align:left;font-size:59px" data-vhfontsize="2"> <span> <span id='0dd189cf-1974-42c5-b224-86c2aaa65ba3' style='height: 59px; width: 57px; font-size: 36.875px; letter-spacing: 10.0625px' data-letter-spacing='0.17653508771929824'>p.</span> </span> </div> <div class="ocr-line ocrtext" style="left:14.6%;top:57.03%;width:41.97%;height:2.27%;text-align:left;font-size:68px" data-vhfontsize="2"> <span> <span id='a2796584-6169-4450-8646-aaa5c4927cb7' style='height: 55px; width: 72px; font-size: 34.375px; letter-spacing: 18.8125px' data-letter-spacing='0.2612847222222222'>IL</span> <span id='0033fb01-0fcb-459d-8555-0a6439b5fedc' style='height: 72px; width: 149px; font-size: 45.0px; letter-spacing: 2.3333333333333335px' data-letter-spacing='0.015659955257270694'>boftìs</span> <span id='5c81aa3b-19e7-4a18-a5b1-2cdab7c421a5' style='height: 73px; width: 238px; font-size: 45.625px; letter-spacing: 3.6319444444444446px' data-letter-spacing='0.015260270774976659'>Eccle/ìce</span> <span id='36d2dfeb-7fce-4db2-ad29-3750a34ea360' style='height: 73px; width: 336px; font-size: 45.625px; letter-spacing: 7.732954545454546px' data-letter-spacing='0.023014745670995672'>declaratur,</span> </span> </div> <div class="ocr-line ocrtext" style="left:9.42%;top:57.48%;width:59.62%;height:1.96%;text-align:left;font-size:53px" data-vhfontsize="2"> <span> <span id='4db55845-e119-41ad-9a85-531eb14a8819' style='height: 35px; width: 87px; font-size: 21.875px; letter-spacing: 18.0625px' data-letter-spacing='0.20761494252873564'>cus</span> <span id='6968ef2c-d65f-4104-a722-c625a52c26cb' style='height: 71px; width: 252px; font-size: 44.375px; letter-spacing: 9.3125px' data-letter-spacing='0.03695436507936508'>Imperio*</span> </span> </div> <div class="ocr-line ocrtext" style="left:15.23%;top:59.34%;width:30.46%;height:1.88%;text-align:left;font-size:59px" data-vhfontsize="2"> <span> <span id='eed65b77-0c5e-457d-ba25-d775c1e44378' style='height: 67px; width: 263px; font-size: 41.875px; letter-spacing: 11.9375px' data-letter-spacing='0.04538973384030418'>privatur</span> <span id='a0d3a919-b1fa-49b4-8972-f1f4d92afd8c' style='height: 55px; width: 61px; font-size: 34.375px; letter-spacing: 13.3125px' data-letter-spacing='0.2182377049180328'>de</span> <span id='7e5bd7c6-92da-4a02-a8cc-ea18a004adfd' style='height: 57px; width: 175px; font-size: 35.625px; letter-spacing: 17.1875px' data-letter-spacing='0.09821428571428571'>Terra</span> </span> </div> <div class="ocr-line ocrtext" style="left:9.04%;top:59.53%;width:60.1%;height:2.21%;text-align:left;font-size:52px" data-vhfontsize="2"> <span> <span id='23f06bff-77b8-4a62-850b-611546d5fcc2' style='height: 53px; width: 99px; font-size: 33.125px; letter-spacing: 16.4375px' data-letter-spacing='0.16603535353535354'>que</span> <span id='d6e056fa-ba1e-49cd-91de-6445fbc75c36' style='height: 39px; width: 14px; font-size: 24.375px; letter-spacing: 1.8125px' data-letter-spacing='0.12946428571428573'>:</span> <span id='44fb7fbe-ff5a-44df-994c-7b3780b70d04' style='height: 57px; width: 205px; font-size: 35.625px; letter-spacing: 23.1875px' data-letter-spacing='0.11310975609756098'>San&a</span> <span id='8c329b4a-dfad-48cf-9414-ad7c7b75409d' style='height: 59px; width: 222px; font-size: 36.875px; letter-spacing: 13.276785714285714px' data-letter-spacing='0.05980534105534105'>recupa-</span> </span> </div> <div class="ocr-line ocrtext" style="left:9.13%;top:61.44%;width:54.15%;height:2.27%;text-align:left;font-size:65px" data-vhfontsize="2"> <span> <span id='37bfa66b-0265-4f6c-86d1-e9f32f5f10dd' style='height: 49px; width: 140px; font-size: 30.625px; letter-spacing: 12.6875px' data-letter-spacing='0.090625'>tione</span> <span id='f0686cf5-e69d-4896-bfac-0510c5afea23' style='height: 70px; width: 346px; font-size: 43.75px; letter-spacing: 6.958333333333333px' data-letter-spacing='0.020110789980732176'>conftituitur</span> <span id='bfb1e27e-d520-4efd-82fb-7748327c185d' style='height: 76px; width: 508px; font-size: 47.5px; letter-spacing: 12.535714285714286px' data-letter-spacing='0.024676602924634423'>HierofAymitana</span> </span> </div> <div class="ocr-line ocrtext" style="left:36.07%;top:61.97%;width:32.93%;height:1.46%;text-align:left;font-size:36px" data-vhfontsize="2"> <span> <span id='d008b4f2-6a5f-42ff-b9dc-e5ccebbedb87' style='height: 39px; width: 14px; font-size: 24.375px; letter-spacing: 1.8125px' data-letter-spacing='0.12946428571428573'>:</span> <span id='f73db15f-96b1-4018-8120-3deb7256db4f' style='height: 34px; width: 95px; font-size: 21.25px; letter-spacing: 21.041666666666668px' data-letter-spacing='0.22149122807017546'>ex-</span> </span> </div> <div class="ocr-line ocrtext" style="left:8.55%;top:63.6%;width:60.2%;height:2.07%;text-align:left;font-size:50px" data-vhfontsize="2"> <span> <span id='c6d43002-205c-4cb6-b74b-3d0db2c1899d' style='height: 65px; width: 288px; font-size: 40.625px; letter-spacing: 8.4875px' data-letter-spacing='0.029470486111111114'>peditionis</span> <span id='31ae5d23-adc8-454c-b25d-a0a832098221' style='height: 53px; width: 139px; font-size: 33.125px; letter-spacing: 29.770833333333332px' data-letter-spacing='0.21417865707434053'>Dux</span> <span id='c300c015-0c6b-40f8-a677-89f812bbb689' style='height: 60px; width: 310px; font-size: 37.5px; letter-spacing: 15.694444444444445px' data-letter-spacing='0.050627240143369175'>Ludovicui</span> <span id='2680afca-8411-41db-8ecd-2fb5a3217a4d' style='height: 54px; width: 74px; font-size: 33.75px; letter-spacing: 20.125px' data-letter-spacing='0.2719594594594595'>Fr</span> <span id='7e620014-1880-4aa3-b82c-e1487969ac36' style='height: 37px; width: 162px; font-size: 23.125px; letter-spacing: 20.8375px' data-letter-spacing='0.12862654320987654'>ancor</span> <span id='ef51148d-8789-43f9-b77d-868364a61e5c' style='height: 36px; width: 90px; font-size: 22.5px; letter-spacing: 33.75px' data-letter-spacing='0.375'>um</span> </span> </div> <div class="ocr-line ocrtext" style="left:9.23%;top:65.71%;width:54.69%;height:2.07%;text-align:left;font-size:58px" data-vhfontsize="2"> <span> <span id='2b2efc41-cdb3-4293-b3e2-ea35c57ba1dc' style='height: 54px; width: 115px; font-size: 33.75px; letter-spacing: 21.458333333333332px' data-letter-spacing='0.18659420289855072'>Rex</span> <span id='7134c693-aaae-4bf4-a1d3-afcd3e29fc70' style='height: 69px; width: 320px; font-size: 43.125px; letter-spacing: 7.528409090909091px' data-letter-spacing='0.023526278409090908'>dejignatur:</span> <span id='0b8c8d5a-6706-4db4-a632-0da07d06111d' style='height: 56px; width: 201px; font-size: 35.0px; letter-spacing: 16.0px' data-letter-spacing='0.07960199004975124'>Galero</span> <span id='78051f17-c892-4b36-9615-e466373161c1' style='height: 53px; width: 164px; font-size: 33.125px; letter-spacing: 16.2375px' data-letter-spacing='0.09900914634146342'>rubro</span> <span id='9889c233-2549-49bc-812b-1eb147c44658' style='height: 61px; width: 68px; font-size: 38.125px; letter-spacing: 3.6041666666666665px' data-letter-spacing='0.053002450980392156'>cir</span> <span id='73d4b7fd-a0f1-461a-aa07-4b04797820e8' style='height: 56px; width: 121px; font-size: 35.0px; letter-spacing: 22.833333333333332px' data-letter-spacing='0.1887052341597796'>Pur</span> </span> </div> <div class="ocr-line ocrtext" style="left:63.78%;top:66.62%;width:5.07%;height:1.63%;text-align:left;font-size:59px" data-vhfontsize="2"> <span> <span id='d4e129e9-8fa1-4953-94e8-568effe42e79' style='height: 59px; width: 105px; font-size: 36.875px; letter-spacing: 16.5625px' data-letter-spacing='0.15773809523809523'>pu-</span> </span> </div> <div class="ocr-line ocrtext" style="left:52.03%;top:67.12%;width:0.82%;height:0.83%;text-align:left;font-size:30px" data-vhfontsize="2"> <span> <span id='749bbd1b-5819-4af0-9e78-05d7f74e228c' style='height: 30px; width: 17px; font-size: 18.75px; letter-spacing: 7.625px' data-letter-spacing='0.4485294117647059'>,</span> </span> </div> <div class="ocr-line ocrtext" style="left:12.95%;top:67.9%;width:15.42%;height:1.6%;text-align:left;font-size:58px" data-vhfontsize="2"> <span> <span id='7bf743c5-f07c-4c22-8c0b-f1e097c13775' style='height: 58px; width: 319px; font-size: 36.25px; letter-spacing: 13.775px' data-letter-spacing='0.04318181818181818'>Cardinales</span> </span> </div> <div class="ocr-line ocrtext" style="left:9.13%;top:68.04%;width:34.76%;height:1.63%;text-align:left;font-size:35px" data-vhfontsize="2"> <span> <span id='87a69d9e-c141-4e96-b10f-5f64e2ff6625' style='height: 36px; width: 60px; font-size: 22.5px; letter-spacing: 18.75px' data-letter-spacing='0.3125'>ra</span> <span id='f7bbeac7-bd77-4692-9a95-97afbf6f174d' style='height: 55px; width: 267px; font-size: 34.375px; letter-spacing: 16.1875px' data-letter-spacing='0.06062734082397004'>donantur</span> <span id='c5da2b5c-5383-40ac-be7f-3d8767959d45' style='height: 15px; width: 15px; font-size: 9.375px; letter-spacing: 10.3125px' data-letter-spacing='0.6875'>.</span> </span> </div> <div class="ocr-line ocrtext" style="left:8.51%;top:72.11%;width:59.86%;height:2.41%;text-align:left;font-size:61px" data-vhfontsize="2"> <span> <span id='8e135b7b-4491-4893-b098-7968856e5627' style='height: 74px; width: 277px; font-size: 46.25px; letter-spacing: 11.5px' data-letter-spacing='0.04151624548736462'>Apprettò</span> <span id='c7b270e8-c9fa-4af3-b8e8-f9784bc1824a' style='height: 58px; width: 38px; font-size: 36.25px; letter-spacing: 0.875px' data-letter-spacing='0.023026315789473683'>fi</span> <span id='6572ecd0-78aa-4024-9ea5-e3772781ddfb' style='height: 60px; width: 142px; font-size: 37.5px; letter-spacing: 16.75px' data-letter-spacing='0.11795774647887323'>vede</span> <span id='b087cc62-e9af-465e-903c-1e8c2da97fc0' style='height: 62px; width: 230px; font-size: 38.75px; letter-spacing: 13.482142857142858px' data-letter-spacing='0.05861801242236025'>intorno</span> <span id='7b92336c-60a5-4800-9522-ffd9e0cbfcf3' style='height: 58px; width: 106px; font-size: 36.25px; letter-spacing: 8.375px' data-letter-spacing='0.07900943396226415'>alla</span> <span id='548755ed-710b-4b3e-8eab-0b67d4a48f5f' style='height: 60px; width: 165px; font-size: 37.5px; letter-spacing: 14.25px' data-letter-spacing='0.08636363636363636'>porta</span> <span id='a0beac4e-d58d-41b6-86ae-8b32c46aed3d' style='height: 57px; width: 106px; font-size: 35.625px; letter-spacing: 17.520833333333332px' data-letter-spacing='0.16529088050314464'>che</span> </span> </div> <div class="ocr-line ocrtext" style="left:5.99%;top:73.61%;width:55.99%;height:0.85%;text-align:left;font-size:15px" data-vhfontsize="2"> <span> <span id='cea6ccac-7763-43fd-92b8-b72a72aeeb51' style='height: 4px; width: 4px; font-size: 2.5px; letter-spacing: 2.75px' data-letter-spacing='0.6875'>.</span> <span id='9e6ecdb8-b9dd-413c-8ebe-d3f6d1ea9625' style='height: 27px; width: 17px; font-size: 16.875px; letter-spacing: 8.5625px' data-letter-spacing='0.5036764705882353'>,</span> </span> </div> <div class="ocr-line ocrtext" style="left:5.65%;top:74.05%;width:62.81%;height:2.35%;text-align:left;font-size:59px" data-vhfontsize="2"> <span> <span id='a651bb5a-598f-45fb-a45b-eb4909894165' style='height: 72px; width: 280px; font-size: 45.0px; letter-spacing: 8.61111111111111px' data-letter-spacing='0.030753968253968252'>introduce</span> <span id='257ce653-6831-45e9-8dca-5a05c23aac06' style='height: 57px; width: 145px; font-size: 35.625px; letter-spacing: 11.1875px' data-letter-spacing='0.0771551724137931'>nella</span> <span id='db5c6cc3-ff70-4e7e-802b-ca3d49c722d0' style='height: 56px; width: 175px; font-size: 35.0px; letter-spacing: 11.666666666666666px' data-letter-spacing='0.06666666666666667'>corfia</span> <span id='5eea0fb7-1789-4a6e-9e8f-56075e09db54' style='height: 61px; width: 209px; font-size: 38.125px; letter-spacing: 7.0625px' data-letter-spacing='0.03379186602870814'>fìniftra</span> <span id='86352179-b57f-4533-a4b4-9dd4e513e78e' style='height: 52px; width: 35px; font-size: 32.5px; letter-spacing: 1.25px' data-letter-spacing='0.03571428571428571'>il</span> <span id='222ef7a7-f5a2-404d-ab1a-8933f4edb691' style='height: 60px; width: 246px; font-size: 37.5px; letter-spacing: 16.392857142857142px' data-letter-spacing='0.0666376306620209'>fecondo</span> </span> </div> <div class="ocr-line ocrtext" style="left:5.41%;top:76.24%;width:63.05%;height:2.38%;text-align:left;font-size:62px" data-vhfontsize="2"> <span> <span id='d76a24be-053a-4210-9229-36499a03eda3' style='height: 69px; width: 248px; font-size: 43.125px; letter-spacing: 9.4375px' data-letter-spacing='0.03805443548387097'>Concilio</span> <span id='147d2392-38c4-4dab-a98a-1bacf431f447' style='height: 73px; width: 264px; font-size: 45.625px; letter-spacing: 10.1875px' data-letter-spacing='0.03858901515151515'>generale</span> <span id='52cc4c00-2ff7-4f80-8624-e57f720212e8' style='height: 58px; width: 56px; font-size: 36.25px; letter-spacing: 9.875px' data-letter-spacing='0.17633928571428573'>di</span> <span id='426aec8a-a9ca-4ef3-8779-809df8942c1a' style='height: 62px; width: 184px; font-size: 38.75px; letter-spacing: 17.425px' data-letter-spacing='0.09470108695652174'>Lione</span> <span id='6427a098-ec63-453b-8bcb-44d8626ded4d' style='height: 59px; width: 152px; font-size: 36.875px; letter-spacing: 19.5625px' data-letter-spacing='0.12870065789473684'>dove</span> <span id='e3107083-d0cd-4a8b-9ec0-f98eaae08ef2' style='height: 57px; width: 57px; font-size: 35.625px; letter-spacing: 10.6875px' data-letter-spacing='0.1875'>fa</span> <span id='acbf6fd5-8044-453c-adc8-7b5a1c2b2ae7' style='height: 57px; width: 157px; font-size: 35.625px; letter-spacing: 13.5875px' data-letter-spacing='0.08654458598726116'>deci-</span> </span> </div> <div class="ocr-line ocrtext" style="left:46.03%;top:77.85%;width:1.01%;height:0.88%;text-align:left;font-size:32px" data-vhfontsize="2"> <span> <span id='81098377-f3e8-4ff3-8658-074e8e2834a4' style='height: 32px; width: 21px; font-size: 20.0px; letter-spacing: 11.0px' data-letter-spacing='0.5238095238095238'>,</span> </span> </div> <div class="ocr-line ocrtext" style="left:63.53%;top:79.01%;width:4.78%;height:2.02%;text-align:left;font-size:73px" data-vhfontsize="2"> <span> <span id='da3723c8-f2b0-431a-9cb8-55679d4510e5' style='height: 73px; width: 99px; font-size: 45.625px; letter-spacing: 10.1875px' data-letter-spacing='0.1029040404040404'>fo,</span> </span> </div>
181.635965
1,471
0.746046
bc73dc5966a408df70b8e82d1ff43d5185618baa
1,075
swift
Swift
KarhooSDK/Network/KarhooEnvironmentDetails.swift
karhoo/karhoo-ios-sdk
17b528c68ef8320c32e9f60f7f805fb4a6b729f2
[ "BSD-2-Clause" ]
9
2020-04-15T11:59:15.000Z
2021-05-28T06:50:56.000Z
KarhooSDK/Network/KarhooEnvironmentDetails.swift
karhoo/karhoo-ios-sdk
17b528c68ef8320c32e9f60f7f805fb4a6b729f2
[ "BSD-2-Clause" ]
16
2020-07-14T16:59:35.000Z
2021-11-26T13:41:55.000Z
KarhooSDK/Network/KarhooEnvironmentDetails.swift
karhoo/karhoo-ios-sdk
17b528c68ef8320c32e9f60f7f805fb4a6b729f2
[ "BSD-2-Clause" ]
2
2020-07-24T01:12:06.000Z
2020-09-22T11:25:02.000Z
import Foundation public struct KarhooEnvironmentDetails { public let host: String public let guestHost: String public let authHost: String public init(host: String, authHost: String, guestHost: String) { self.host = host self.authHost = authHost self.guestHost = guestHost } } internal extension KarhooEnvironmentDetails { init(environment: KarhooEnvironment) { switch environment { case .custom(let environment): self.host = environment.host self.authHost = environment.authHost self.guestHost = environment.guestHost case .sandbox: self.host = "https://rest.sandbox.karhoo.com" self.authHost = "https://sso.sandbox.karhoo.com" self.guestHost = "https://public-api.sandbox.karhoo.com" case .production: self.host = "https://rest.karhoo.com" self.authHost = "https://sso.karhoo.com" self.guestHost = "https://public-api.karhoo.com" } } }
29.861111
68
0.604651
fb979efafb4bfe74496a283b536857de7a8dc14f
1,179
h
C
KBBubblePopping/KBBubbleItemView.h
LKeBing/KBBubblePopping
87087d2da408450f05e58105e62fe46c2fe9a60b
[ "MIT" ]
1
2018-09-14T08:12:26.000Z
2018-09-14T08:12:26.000Z
KBBubblePopping/KBBubbleItemView.h
LKeBing/KBBubblePopping
87087d2da408450f05e58105e62fe46c2fe9a60b
[ "MIT" ]
null
null
null
KBBubblePopping/KBBubbleItemView.h
LKeBing/KBBubblePopping
87087d2da408450f05e58105e62fe46c2fe9a60b
[ "MIT" ]
null
null
null
// // KBBubbleItemView.h // KBBubblePopView // // Created by KB on 2017/4/28. // Copyright © 2017年 KB. All rights reserved. // #import <UIKit/UIKit.h> #import "KBBubbleUtilities.h" @class KBBubbleItemView; typedef void(^DidSelctedCompletedBlock)(KBBubbleItemView *itemView); @interface KBBubbleItemView : UIView @property (nonatomic, strong) UIImage *image; @property (nonatomic, copy) NSString *text; /** UIImageView和UILabel距离边框的距离 */ @property (nonatomic, assign) CGFloat edgeMargin; /** UIImageView和UILabel之间的间隔距离 */ @property (nonatomic, assign) CGFloat separator; /** UIImageView和UILabel的位置摆放方式,例如:图片在左文字在又,图片在上文字在下 */ @property (nonatomic, assign) ContentAlignment contentAlignment; /** UIImageView的宽高尺寸 */ @property (nonatomic, assign) CGSize imageSize; /** UIImageView的圆角大小 */ @property (nonatomic, assign) CGFloat imageCornerRadius; /** 文字字体大小 */ @property (nonatomic, strong) UIFont *textFont; /** 文字颜色 */ @property (nonatomic, strong) UIColor *textColor; /** 文字摆放位置 */ @property(nonatomic) NSTextAlignment textAlignment; /** itemView的点击事件 */ @property (nonatomic, copy) DidSelctedCompletedBlock didSelctedCompleted; @end
17.597015
73
0.737065
26f76acbb688454e4db47946cd88aeb3ccd5482f
4,757
asm
Assembly
dda_data.asm
artrag/mz3d2
c7c1af26213e19c7e336382cb0ac841ebfd0bcdb
[ "BSD-3-Clause" ]
1
2020-10-29T00:51:20.000Z
2020-10-29T00:51:20.000Z
dda_data.asm
artrag/mz3d2
c7c1af26213e19c7e336382cb0ac841ebfd0bcdb
[ "BSD-3-Clause" ]
null
null
null
dda_data.asm
artrag/mz3d2
c7c1af26213e19c7e336382cb0ac841ebfd0bcdb
[ "BSD-3-Clause" ]
2
2020-10-29T00:51:32.000Z
2022-03-10T04:18:14.000Z
psect ddaconst,RELOC=100h,class=CODE global cosine_low cosine_low: ; // 256 x lower 8-bits db 255,253,248,241,231,219,204,187,167,145,120, 93, 63, 31,253,216 db 176,135, 90, 43,250,199,144, 88, 29,223,160, 93, 24,209,136, 60 db 237,156, 73,243,155, 65,228,133, 35,191, 88,239,132, 22,166, 52 db 191, 72,207, 83,213, 84,210, 76,197, 59,175, 33,144,253,104,208 db 54,154,252, 91,184, 19,107,194, 22,103,183, 4, 80,153,223, 36 db 103,167,229, 33, 91,146,200,251, 44, 92,137,180,220, 3, 40, 75 db 107,138,166,193,217,240, 4, 23, 39, 53, 66, 77, 85, 92, 97, 99 db 100, 99, 96, 92, 85, 76, 66, 54, 40, 24, 6,243,221,198,173,147 db 119, 88, 57, 23,244,207,168,128, 86, 42,253,206,158,108, 56, 3 db 204,148, 90, 30,225,163, 99, 33,222,154, 84, 12,196,121, 46,225 db 147, 67,242,159, 76,247,160, 73,240,149, 58,221,127, 32,192, 95 db 252,152, 51,205,102,254,148, 42,190, 82,228,118, 6,149, 36,177 db 62,201, 84,222,102,238,117,252,129, 6,137, 12,142, 16,144, 16 db 144, 14,140, 9,133, 1,124,247,113,234, 99,219, 83,202, 64,183 db 44,161, 22,138,254,113,228, 87,201, 59,173, 30,143,255,112,224 db 80,191, 46,158, 13,123,234, 89,199, 53,163, 17,127,237, 91,201 ; // 256 x upper 8-bits db 255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,254 db 254,254,254,254,253,253,253,253,253,252,252,252,252,251,251,251 db 250,250,250,249,249,249,248,248,248,247,247,246,246,246,245,245 db 244,244,243,243,242,242,241,241,240,240,239,239,238,237,237,236 db 236,235,234,234,233,233,232,231,231,230,229,229,228,227,226,226 db 225,224,223,223,222,221,220,219,219,218,217,216,215,215,214,213 db 212,211,210,209,208,207,207,206,205,204,203,202,201,200,199,198 db 197,196,195,194,193,192,191,190,189,188,187,185,184,183,182,181 db 180,179,178,177,175,174,173,172,171,170,168,167,166,165,164,163 db 161,160,159,158,156,155,154,153,151,150,149,148,146,145,144,142 db 141,140,138,137,136,134,133,132,130,129,128,126,125,124,122,121 db 119,118,117,115,114,112,111,110,108,107,105,104,103,101,100, 98 db 97, 95, 94, 92, 91, 89, 88, 86, 85, 84, 82, 81, 79, 78, 76, 75 db 73, 72, 70, 69, 67, 66, 64, 62, 61, 59, 58, 56, 55, 53, 52, 50 db 49, 47, 46, 44, 42, 41, 39, 38, 36, 35, 33, 32, 30, 28, 27, 25 db 24, 22, 21, 19, 18, 16, 14, 13, 11, 10, 8, 7, 5, 3, 2, 0 global secant_low secant_low: ; // 256 x lower 8-bits db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 db 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5 db 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11 db 12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 17, 18, 19, 19, 20, 21 db 21, 22, 23, 24, 24, 25, 26, 27, 28, 28, 29, 30, 31, 32, 33, 34 db 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 48, 49, 50, 51 db 53, 54, 55, 56, 58, 59, 61, 62, 63, 65, 66, 68, 70, 71, 73, 74 db 76, 78, 79, 81, 83, 85, 87, 89, 90, 92, 94, 96, 99,101,103,105 db 107,109,112,114,116,119,121,124,126,129,132,135,137,140,143,146 db 149,152,155,158,162,165,168,172,176,179,183,187,191,194,199,203 db 207,211,216,220,225,230,234,239,245,250,255, 5, 10, 16, 22, 28 db 34, 41, 47, 54, 61, 68, 75, 83, 91, 99,107,115,124,133,142,152 db 162,172,183,194,205,217,229,241,254, 12, 26, 41, 56, 72, 88,105 db 123,142,161,181,203,225,248, 17, 43, 70, 98,129,161,194,230, 12 db 53, 96,142,191,244, 45,107,173,246, 68,154,249, 97,212, 85,229 db 136, 65, 22, 13, 47,136, 42, 47,189, 20,163, 57,145, 49,167,255 ; // 256 x upper 8-bits db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 db 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 db 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 db 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 db 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5 db 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9 db 10, 11, 12, 13, 14, 15, 17, 19, 21, 25, 29, 36, 46, 65,108,127 psect ddadata,RELOC=100h,class=DATA global _lineheight,_RLEData _lineheight: defs 256 _RLEData: defs 256
55.964706
68
0.533319
5e43e1a2d3f62618c2e7f2d7173e85a74208fe45
147
asm
Assembly
8_kyu/Quarter_of_the_year.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
8_kyu/Quarter_of_the_year.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
8_kyu/Quarter_of_the_year.asm
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
section .text global quarter_of quarter_of: ; int quarter_of(int month) mov eax, edi add eax, 2 xor rdx, rdx mov ecx, 3 div ecx ret
16.333333
43
0.673469
d29eab7653e2f9d14f4f4ace004cfc06964a6013
3,355
php
PHP
resources/views/Asistensi/permohonan.blade.php
nrriandika/sistasapp
6c780ce6ff2a036cd0dd108b0acae5de495f6cf4
[ "MIT" ]
null
null
null
resources/views/Asistensi/permohonan.blade.php
nrriandika/sistasapp
6c780ce6ff2a036cd0dd108b0acae5de495f6cf4
[ "MIT" ]
8
2021-02-02T21:56:47.000Z
2022-03-30T02:17:04.000Z
sisbwapp/resources/views/Asistensi/permohonan.blade.php
nrriandika/nrriandika.github.io
b19ba973e4a6ee4672a8f633db53bebc84fd2a52
[ "MIT" ]
null
null
null
@extends('layouts.app') @push('css') @endpush @section('content') <!-- page-wrapper Start--> <div class="page-wrapper box-layout box-layout"> @include('NavigationBar.index') <div class="page-body-wrapper"> @include('MenuBar.index') @include('ControlBar.advance') <div class="page-body"> <!-- START SPECIFIC CONTENT--> <div class="container-fluid"> <div class="page-header"> <div class="row"> <div class="col"> <div class="page-header-left"> <h3>Permohonan Asistensi</h3> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="{{ route('map') }}"><i data-feather="home"></i></a></li> <li class="breadcrumb-item active">Permohonan Asistensi</li> </ol> </div> </div> </div> </div> </div> <!-- Container-fluid starts--> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <div class="col-lg-10"> <form action="{{ route('upload_permohonan_asistensi') }}" class="form theme-form" method="post" enctype="multipart/form-data"> @csrf <div class="form-group"> <label class="form-label">Unggah surat permohonan asistensi</label> <input accept=".pdf" class="form-control" name="surat_permohonan" id="surat_permohonan" type="file" onchange="readUploadedPdf(this);"> </div> <div class="form-group"> <label class="form-label">Jenis Pengajuan</label> <select class="form-control digits" name="jenis_pengajuan" id="jenis_pengajuan"> @foreach($jenisPengajuan as $item) <option value="{{ $item->id }}">{{ $item->nama }}</option> @endforeach </select> </div> <button id="surat_permohonan_upload" type="submit" class="btn btn-success" disabled> <i class="icofont icofont-upload-alt"></i> Unggah Surat Permohonan </button> <br> <embed id="surat_permohonan_embed" src="" class="img-thumbnail pdf-embed" type="application/pdf"> </form> </div> </div> </div> </div> </div> </div> <!-- ./END SPECIFIC CONTENT --> </div> </div> </div> @endsection @push('js') <script> function readUploadedPdf(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#surat_permohonan_embed') .text(e.target) .attr('src', e.target.result) .width('100%') .height(750); $('#surat_permohonan_upload').prop('disabled', false); }; reader.readAsDataURL(input.files[0]); } } </script> @endpush
37.696629
160
0.46766
5fb479e510c577543533edb4af7077278016dc08
5,728
h
C
Utilities/Flu/FLU/Flu_Collapsable_Group.h
NIRALUser/BatchMake
1afeb15fa5bd18be6e4a56f4349eb6368a91441e
[ "Unlicense" ]
null
null
null
Utilities/Flu/FLU/Flu_Collapsable_Group.h
NIRALUser/BatchMake
1afeb15fa5bd18be6e4a56f4349eb6368a91441e
[ "Unlicense" ]
null
null
null
Utilities/Flu/FLU/Flu_Collapsable_Group.h
NIRALUser/BatchMake
1afeb15fa5bd18be6e4a56f4349eb6368a91441e
[ "Unlicense" ]
null
null
null
// Id /*************************************************************** * FLU - FLTK Utility Widgets * Copyright (C) 2002 Ohio Supercomputer Center, Ohio State University * * This file and its content is protected by a software license. * You should have received a copy of this license with this file. * If not, please contact the Ohio Supercomputer Center immediately: * Attn: Jason Bryan Re: FLU 1224 Kinnear Rd, Columbus, Ohio 43212 * ***************************************************************/ #ifndef _FLU_COLLAPSABLE_GROUP_H #define _FLU_COLLAPSABLE_GROUP_H #include <stdio.h> #include <string.h> /* fltk includes */ #include <FL/Fl.H> #include <FL/fl_draw.H> #include <FL/Fl_Group.H> #include <FL/Fl_Box.H> #include "FLU/FluSimpleString.h" #include "FLU/Flu_Button.h" //! This widget implements a collapsable group with a configurable framerate /*! This class is a group with a button and an \b Fl_Group inside (both publicly exposed). The \b Fl_Group contains the actual child widgets of this group. Most of the \b Fl_Group member functions are reimplemented here in a pass-through fashion to the internal group. This means that casual use of a descendent instance will be almost exactly the same as for a regular \b Fl_Group, with any additional access provided directly through member \b group. The goal of this class is to provide a dynamically collapsable group similar to those available in other GUI toolkits. The callback is invoked whenever the button is pressed to open/close the group. */ class FLU_EXPORT Flu_Collapsable_Group : public Fl_Group { public: //! Normal FLTK constructor Flu_Collapsable_Group( int x, int y, int w, int h, const char *l = 0 ); //! Get the amount of time to take when animating a collapse inline float collapse_time() const { return _collapseTime; } //! Set the amount of time to take when animating a collapse inline void collapse_time( float t ) { _collapseTime = t; } //! Get the frame rate to aim for during a collapse animation inline float frame_rate() const { return _fps; } //! Set the frame rate to aim for during a collapse animation inline void frame_rate( float f ) { _fps = f; } //! Set the position of the controller widget along the top edge of the group. This only has an effect if fit() is not set. Default value is \c FL_ALIGN_LEFT /*! Accepted values are \c FL_ALIGN_LEFT, \c FL_ALIGN_CENTER, and \c FL_ALIGN_RIGHT */ inline void align( unsigned char a ) { _align = a; } //! Get the position of the controller widget along the top edge of the group inline unsigned char align() const { return _align; } //! Pass \c true to force the button to be the same width as the group, \c false to leave it its default size. Default value is \c false inline void fit( bool b ) { _fit = b; } //! Get whether the button is being forced to fit the width of the group inline bool fit() const { return _fit; } //! Get whether the group is closed or open (i.e. collapsed or not) inline bool open() const { return _open; } //! Set whether the group is closed or open (i.e. collapsed or not). Default is \c true void open( bool o ); //! Get whether the group is closed or open (i.e. collapsed or not) inline bool closed() const { return !_open; } //! Get whether the group is in the process of opening or closing inline bool changing() const { return _changing; } //! Override of Fl_Group::resize() void resize( int x, int y, int w, int h ); //! Override of Fl_Group::label() inline void label( const char *l ) { if( l ) _label = l; else _label = ""; } //! Override of Fl_Group::label() inline const char *label() { return _label.c_str(); } ////////////////////// /*! \name Pass-through functions for the internal Fl_Group * These are strictly for convenience. Only the most commonly called functions have been re-implemented. * You can also explicitly access the group object for more control. */ //@{ inline void clear() { group.clear(); } inline Fl_Widget *child(int n) const { return group.child(n); } inline int children() const { return group.children(); } inline void begin() { group.begin(); } inline void end() { group.end(); Fl_Group::end(); } inline void resizable(Fl_Widget *box) { group.resizable(box); } inline void resizable(Fl_Widget &box) { group.resizable(box); } inline Fl_Widget *resizable() const { return group.resizable(); } inline void add( Fl_Widget &w ) { group.add( w ); } inline void add( Fl_Widget *w ) { group.add( w ); } inline void insert( Fl_Widget &w, int n ) { group.insert( w, n ); } inline void insert( Fl_Widget &w, Fl_Widget* beforethis ) { group.insert( w, beforethis ); } inline void remove( Fl_Widget &w ) { group.remove( w ); } inline void add_resizable( Fl_Widget &box ) { group.add_resizable( box ); } //@} Flu_Button button; Fl_Group group; protected: ////////////////////////// void draw(); inline static void _collapseCB( Fl_Widget* w, void* arg ) { ((Flu_Collapsable_Group*)arg)->open( !((Flu_Collapsable_Group*)arg)->open() ); } inline static void _updateCB( void *arg ) { ((Flu_Collapsable_Group*)arg)->updateCB(); } void updateCB(); void (*_callback)(Fl_Widget*,void*); void *_callbackData; void (*_collapseCallback)(void*); void *_collapseCallbackData; int _originalHeight, _newHeight; float _deltaHeight, _currentHeight, _collapseTime, _timeout, _fps; Fl_Widget *_oldResizable; bool _open, _changing, _fit; unsigned char _align; FluSimpleString _label; }; #endif
29.076142
159
0.668122
a3576fe5c1076e2bf2abac5103b01d4bd31b81ad
4,352
asm
Assembly
test/autogen/gen_tms32010.asm
tgtakaoka/libasm
41ae8dcca3924c20eb482dc9e034120d8ee966a7
[ "Apache-2.0" ]
15
2020-01-24T14:15:08.000Z
2022-03-29T15:13:16.000Z
test/autogen/gen_tms32010.asm
tgtakaoka/libasm
41ae8dcca3924c20eb482dc9e034120d8ee966a7
[ "Apache-2.0" ]
23
2020-05-31T14:13:53.000Z
2021-09-22T17:06:29.000Z
test/autogen/gen_tms32010.asm
tgtakaoka/libasm
41ae8dcca3924c20eb482dc9e034120d8ee966a7
[ "Apache-2.0" ]
null
null
null
;;; AUTO GENERATED FILE ;;; generated by: gen_tms32010 -u -C 32010 -o gen_tms32010.asm -l gen_tms32010.lst CPU 32010 ORG 100H ADD 00H, 1 ADD *, 1, AR0 ADD *, 1 ADD *-, 1, AR0 ADD *-, 1 ADD *+, 1, AR0 ADD *+, 1 SUB 00H SUB *, 0, AR0 SUB * SUB *-, 0, AR0 SUB *- SUB *+, 0, AR0 SUB *+ SUB 00H, 1 SUB *, 1 SUB *-, 1 SUB *+, 1 LAC 00H LAC *, 0, AR0 LAC * LAC *-, 0, AR0 LAC *- LAC *+, 0, AR0 LAC *+ LAC 00H, 1 LAC *, 1 LAC *-, 1 LAC *+, 1 SAR AR0, 00H SAR AR0, *, AR0 SAR AR0, * SAR AR0, *-, AR0 SAR AR0, *- SAR AR0, *+, AR0 SAR AR0, *+ LAR AR0, 00H LAR AR0, *, AR0 LAR AR0, * LAR AR0, *-, AR0 LAR AR0, *- LAR AR0, *+, AR0 LAR AR0, *+ IN 00H, PA0 IN *, PA0, AR0 IN *, PA0 IN *-, PA0, AR0 IN *-, PA0 IN *+, PA0, AR0 IN *+, PA0 OUT 00H, PA0 OUT *, PA0, AR0 OUT *, PA0 OUT *-, PA0, AR0 OUT *-, PA0 OUT *+, PA0, AR0 OUT *+, PA0 SACL 00H SACL *, 0, AR0 SACL * SACL *-, 0, AR0 SACL *- SACL *+, 0, AR0 SACL *+ SACH 00H SACH *, 0, AR0 SACH * SACH *-, 0, AR0 SACH *- SACH *+, 0, AR0 SACH *+ SACH 00H, 1 SACH *, 1 SACH *-, 1 SACH *+, 1 ADDH 00H ADDH *, AR0 ADDH * ADDH *-, AR0 ADDH *- ADDH *+, AR0 ADDH *+ ADDS 00H ADDS *, AR0 ADDS * ADDS *-, AR0 ADDS *- ADDS *+, AR0 ADDS *+ SUBH 00H SUBH *, AR0 SUBH * SUBH *-, AR0 SUBH *- SUBH *+, AR0 SUBH *+ SUBS 00H SUBS *, AR0 SUBS * SUBS *-, AR0 SUBS *- SUBS *+, AR0 SUBS *+ SUBC 00H SUBC *, AR0 SUBC * SUBC *-, AR0 SUBC *- SUBC *+, AR0 SUBC *+ ZALH 00H ZALH *, AR0 ZALH * ZALH *-, AR0 ZALH *- ZALH *+, AR0 ZALH *+ ZALS 00H ZALS *, AR0 ZALS * ZALS *-, AR0 ZALS *- ZALS *+, AR0 ZALS *+ TBLR 00H TBLR *, AR0 TBLR * TBLR *-, AR0 TBLR *- TBLR *+, AR0 TBLR *+ MAR 00H LARP AR0 MAR * MAR *-, AR0 MAR *- MAR *+, AR0 MAR *+ DMOV 00H DMOV *, AR0 DMOV * DMOV *-, AR0 DMOV *- DMOV *+, AR0 DMOV *+ LT 00H LT *, AR0 LT * LT *-, AR0 LT *- LT *+, AR0 LT *+ LTD 00H LTD *, AR0 LTD * LTD *-, AR0 LTD *- LTD *+, AR0 LTD *+ LTA 00H LTA *, AR0 LTA * LTA *-, AR0 LTA *- LTA *+, AR0 LTA *+ MPY 00H MPY *, AR0 MPY * MPY *-, AR0 MPY *- MPY *+, AR0 MPY *+ LDPK 0 LDP 00H LDP *, AR0 LDP * LDP *-, AR0 LDP *- LDP *+, AR0 LDP *+ LARK AR0, 0 XOR 00H XOR *, AR0 XOR * XOR *-, AR0 XOR *- XOR *+, AR0 XOR *+ AND 00H AND *, AR0 AND * AND *-, AR0 AND *- AND *+, AR0 AND *+ OR 00H OR *, AR0 OR * OR *-, AR0 OR *- OR *+, AR0 OR *+ LST 00H LST *, AR0 LST * LST *-, AR0 LST *- LST *+, AR0 LST *+ SST 80H SST *, AR0 SST * SST *-, AR0 SST *- SST *+, AR0 SST *+ TBLW 00H TBLW *, AR0 TBLW * TBLW *-, AR0 TBLW *- TBLW *+, AR0 TBLW *+ LACK 0 NOP DINT EINT ABS ZAC ROVM SOVM CALA RET PAC APAC SPAC PUSH POP MPYK 0 MPYK -4096 BANZ 0FFH BV 0FFH BIOZ 0FFH CALL 0FFH B 0FFH BLZ 0FFH BLEZ 0FFH BGZ 0FFH BGEZ 0FFH BNZ 0FFH BZ 100H ADD 00H ADD * ADD *- ADD *+
16.67433
82
0.341452
d22c90252051bfea5364105ae9898057e8d8be52
231
swift
Swift
Example-Project/Shared/GGMSwiftApp.swift
mgrider/GGMSwift
0e69d86d48aae527a3322cdc237aad0d65cbee35
[ "MIT" ]
null
null
null
Example-Project/Shared/GGMSwiftApp.swift
mgrider/GGMSwift
0e69d86d48aae527a3322cdc237aad0d65cbee35
[ "MIT" ]
null
null
null
Example-Project/Shared/GGMSwiftApp.swift
mgrider/GGMSwift
0e69d86d48aae527a3322cdc237aad0d65cbee35
[ "MIT" ]
null
null
null
// // GGMSwiftApp.swift // Shared // // Created by Martin Grider on 7/2/21. // import SwiftUI @main struct GGMSwiftApp: App { var body: some Scene { WindowGroup { ExampleContentView() } } }
12.833333
39
0.5671
9b736b06fd3edd9e4519f5554e3cb42ecfaad954
5,196
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_943.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_943.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_943.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 %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1a613, %rsi lea addresses_WC_ht+0x14cc9, %rdi nop nop nop sub %rbx, %rbx mov $127, %rcx rep movsb nop and $65010, %rsi lea addresses_normal_ht+0x17ac9, %rbp and %rbx, %rbx vmovups (%rbp), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rcx nop nop nop nop nop add $21991, %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_UC+0x1bca9, %rsi lea addresses_WC+0x19da9, %rdi nop nop nop nop nop add $40688, %r11 mov $78, %rcx rep movsb nop nop nop nop add %rbp, %rbp // Store lea addresses_WT+0x141a9, %r11 nop nop nop xor %r10, %r10 movl $0x51525354, (%r11) nop nop xor %r11, %r11 // Load lea addresses_normal+0x21a9, %rbp nop nop nop nop add $32834, %rsi mov (%rbp), %r11d nop nop nop nop sub $12842, %r10 // Faulty Load lea addresses_WC+0x19da9, %rbp nop nop nop nop nop add %r10, %r10 mov (%rbp), %r12w lea oracles, %rcx and $0xff, %r12 shlq $12, %r12 mov (%rcx,%r12,1), %r12 pop %rsi pop %rdi pop %rcx pop %rbp pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_WC', 'congruent': 0}} {'dst': {'same': True, 'congruent': 0, 'type': 'addresses_WC'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_UC'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 8}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_normal', 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': True, 'size': 2, 'type': 'addresses_WC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': True, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 4}} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
41.568
2,999
0.659738
6e37857b7fcf4196bc40d936a910a8cb8d8cbbbe
162
html
HTML
imports/ui/components/partyAddButton/partyAddButton.html
jeffchiu605/meteor-angular-socially-master
1e07d2e5db83a05ab7baf4f0fe686d04f8454a4b
[ "MIT" ]
null
null
null
imports/ui/components/partyAddButton/partyAddButton.html
jeffchiu605/meteor-angular-socially-master
1e07d2e5db83a05ab7baf4f0fe686d04f8454a4b
[ "MIT" ]
1
2016-10-28T18:14:54.000Z
2016-10-28T18:14:54.000Z
imports/ui/components/partyAddButton/partyAddButton.html
jeffchiu605/meteor-angular-socially-master
1e07d2e5db83a05ab7baf4f0fe686d04f8454a4b
[ "MIT" ]
null
null
null
<md-button class="md-fab" aria-label="Add new party" ng-click="partyAddButton.open($event)"> <md-icon md-svg-icon="content:ic_add_24px"></md-icon> </md-button>
40.5
92
0.709877
9ed1efa078d9c936586f85f763aad926a6c1dbf8
11,520
sql
SQL
DMS_Capture/GetJobParamTable.sql
viswaratha12/dbwarden
3931accda4fb401d21b6cb272fe3d6959915ceb8
[ "Apache-2.0" ]
2
2018-04-03T05:18:15.000Z
2020-04-23T04:00:25.000Z
DMS_Capture/GetJobParamTable.sql
viswaratha12/dbwarden
3931accda4fb401d21b6cb272fe3d6959915ceb8
[ "Apache-2.0" ]
null
null
null
DMS_Capture/GetJobParamTable.sql
viswaratha12/dbwarden
3931accda4fb401d21b6cb272fe3d6959915ceb8
[ "Apache-2.0" ]
4
2016-05-14T17:56:55.000Z
2020-01-23T12:02:25.000Z
/****** Object: StoredProcedure [dbo].[GetJobParamTable] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[GetJobParamTable] /**************************************************** ** ** Desc: ** Returns a table filled with the parameters for the ** given job (from #Jobs) in Section/Name/Value rows ** ** The calling procedure must create table #Jobs ** ** CREATE TABLE #Jobs ( ** [Job] int NOT NULL, ** [Priority] int NULL, ** [Script] varchar(64) NULL, ** [State] int NOT NULL, ** [Dataset] varchar(128) NULL, ** [Dataset_ID] int NULL, ** [Results_Directory_Name] varchar(128) NULL, ** Storage_Server varchar(64) NULL, ** Instrument varchar(24) NULL, ** Instrument_Class VARCHAR(32), ** Max_Simultaneous_Captures int NULL, ** Capture_Subdirectory varchar(255) NULL ** ) ** ** Auth: grk ** Date: 09/05/2009 grk - Initial release (http://prismtrac.pnl.gov/trac/ticket/746) ** 01/14/2010 grk - Removed path ID fields ** 05/04/2010 grk - Added instrument class params ** 03/23/2012 mem - Now including EUS_Instrument_ID ** 04/09/2013 mem - Now looking up Perform_Calibration from S_DMS_T_Instrument_Name ** 08/20/2013 mem - Now looking up EUS_Proposal_ID ** 09/04/2013 mem - Now including TransferFolderPath ** 05/29/2015 mem - Add support for column Capture_Subfolder ** 11/16/2015 mem - Now including EUS_Operator_ID and Operator_PRN ** 05/17/2019 mem - Switch from folder to directory in temp tables ** - Add parameter SHA1_Hash ** *****************************************************/ ( @job int, @datasetID int ) AS Declare @myError int = 0 Declare @myRowCount int = 0 Declare @message varchar(512) = '' --------------------------------------------------- -- Table variable to hold job parameters --------------------------------------------------- -- Declare @paramTab TABLE ( [Step_Number] varchar(24), [Section] varchar(128), [Name] varchar(128), [Value] varchar(2000) ) --------------------------------------------------- -- locally cached params --------------------------------------------------- -- Declare @dataset varchar(255), @storage_server_name varchar(255), @instrument_name varchar(255), @instrument_class varchar(255), @max_simultaneous_captures varchar(255), @capture_subdirectory varchar(255) -- SELECT @dataset = Dataset, @storage_server_name = Storage_Server, @instrument_name = Instrument, @instrument_class = Instrument_Class, @max_simultaneous_captures = Max_Simultaneous_Captures, @capture_subdirectory = Capture_Subdirectory FROM #Jobs WHERE Dataset_ID = @datasetID AND Job = @job -- SELECT @myError = @@error, @myRowCount = @@rowcount INSERT INTO @paramTab ([Step_Number], [Section], [Name], [Value]) VALUES (NULL, 'JobParameters', 'Dataset_ID', @datasetID) INSERT INTO @paramTab ([Step_Number], [Section], [Name], [Value]) VALUES (NULL, 'JobParameters', 'Dataset', @dataset) INSERT INTO @paramTab ([Step_Number], [Section], [Name], [Value]) VALUES (NULL, 'JobParameters', 'Storage_Server_Name', @storage_server_name) INSERT INTO @paramTab ([Step_Number], [Section], [Name], [Value]) VALUES (NULL, 'JobParameters', 'Instrument_Name', @instrument_name) INSERT INTO @paramTab ([Step_Number], [Section], [Name], [Value]) VALUES (NULL, 'JobParameters', 'Instrument_Class', @instrument_class) INSERT INTO @paramTab ([Step_Number], [Section], [Name], [Value]) VALUES (NULL, 'JobParameters', 'Max_Simultaneous_Captures', @max_simultaneous_captures) INSERT INTO @paramTab ([Step_Number], [Section], [Name], [Value]) VALUES (NULL, 'JobParameters', 'Capture_Subdirectory', @capture_subdirectory) --------------------------------------------------- -- Dataset Parameters -- -- Convert columns of data from V_DMS_Capture_Job_Parameters into rows added to @paramTab -- -- Note that by using Unpivot, any columns from V_DMS_Capture_Job_Parameters that are null -- will not be entered into@paramTab --------------------------------------------------- -- INSERT INTO @paramTab SELECT NULL AS Step_Number, 'JobParameters' AS [Section], TP.Name, TP.Value FROM ( SELECT CONVERT(varchar(2000), Type) AS Dataset_Type, CONVERT(varchar(2000), Folder) AS Directory, CONVERT(varchar(2000), Method) AS Method, CONVERT(varchar(2000), Capture_Exclusion_Window) AS Capture_Exclusion_Window, CONVERT(varchar(2000), Created) AS Created , CONVERT(varchar(2000), sourceVol) AS Source_Vol, CONVERT(varchar(2000), sourcePath) AS Source_Path, CONVERT(varchar(2000), Storage_Vol) AS Storage_Vol, CONVERT(varchar(2000), Storage_Path) AS Storage_Path, CONVERT(varchar(2000), Storage_Vol_External) AS Storage_Vol_External, CONVERT(varchar(2000), Archive_Server) AS Archive_Server, CONVERT(varchar(2000), Archive_Path) AS Archive_Path, CONVERT(varchar(2000), Archive_Network_Share_Path) AS Archive_Network_Share_Path, CONVERT(varchar(2000), EUS_Instrument_ID) AS EUS_Instrument_ID, CONVERT(varchar(2000), EUS_Proposal_ID) AS EUS_Proposal_ID, CONVERT(varchar(2000), EUS_Operator_ID) AS EUS_Operator_ID, CONVERT(varchar(2000), Operator_PRN) AS Operator_PRN FROM V_DMS_Capture_Job_Parameters WHERE Dataset_ID = @datasetID ) TD UNPIVOT ( Value FOR [Name] IN ( Dataset_Type, Directory, Method, Capture_Exclusion_Window, Created , Source_Vol, Source_Path, Storage_Vol, Storage_Path, Storage_Vol_External, Archive_Server, Archive_Path, Archive_Network_Share_Path, EUS_Instrument_ID, EUS_Proposal_ID, EUS_Operator_ID, Operator_PRN ) ) as TP -- SELECT @myError = @@error, @myRowCount = @@rowcount --------------------------------------------------- -- Instrument class params from V_DMS_Instrument_Class -- -- This includes all of the DatasetQC parameters, typically including: -- -- SaveTICAndBPIPlots, default True -- SaveLCMS2DPlots, default True -- ComputeOverallQualityScores, default True -- CreateDatasetInfoFile, default True -- LCMS2DPlotMZResolution, default 0.4 -- LCMS2DPlotMaxPointsToPlot, default 200000 -- LCMS2DPlotMinPointsPerSpectrum, default 2 -- LCMS2DPlotMinIntensity, default 0 -- LCMS2DOverviewPlotDivisor, default 10 -- --------------------------------------------------- -- Declare @paramXML XML Declare @rawDataType varchar(32) -- SELECT @rawDataType = raw_data_type, @paramXML = Params FROM V_DMS_Instrument_Class WHERE InstrumentClass = @instrument_class INSERT INTO @paramTab (Step_Number, [Section], [Name], Value ) SELECT NULL AS [Step_Number], xmlNode.value('../@name', 'nvarchar(256)') [Section], xmlNode.value('@key', 'nvarchar(256)') [Name], xmlNode.value('@value', 'nvarchar(4000)') [Value] FROM @paramXML.nodes('//item') AS R(xmlNode) INSERT INTO @paramTab ( Step_Number, [Section], [Name], Value ) VALUES (NULL, 'JobParameters', 'RawDataType', @rawDataType) --------------------------------------------------- -- Determine whether calibration should be performed -- (as of April 2013, only applies to IMS instruments) --------------------------------------------------- Declare @PerformCalibration tinyint Declare @PerformCalibrationText varchar(12) SELECT @PerformCalibration = Perform_Calibration FROM S_DMS_T_Instrument_Name WHERE IN_Name = @instrument_name If IsNull(@PerformCalibration, 0) = 0 Set @PerformCalibrationText = 'False' Else Set @PerformCalibrationText = 'True' INSERT INTO @paramTab ( Step_Number, [Section], [Name], Value ) VALUES (NULL, 'JobParameters', 'PerformCalibration', @PerformCalibrationText) --------------------------------------------------- -- Lookup the Analysis Transfer directory (e.g. \\proto-6\DMS3_Xfer) -- This directory is used to store metadata.txt files for dataset archive and archive update jobs -- Those files are used by the ArchiveVerify tool to confirm that files were successfully imported into MyEMSL --------------------------------------------------- -- Declare @StorageVolExternal varchar(128) Declare @TransferDirectoryPath varchar(128) SELECT @StorageVolExternal = Value FROM @paramTab WHERE [Name] = 'Storage_Vol_External' SELECT @TransferDirectoryPath = Transfer_Directory_Path FROM ( SELECT DISTINCT TStor.SP_vol_name_client AS Storage_Vol_External, dbo.udfCombinePaths(TStor.SP_vol_name_client, Xfer.Client) AS Transfer_Directory_Path FROM S_DMS_t_storage_path AS TStor CROSS JOIN ( SELECT TOP 1 Client FROM S_DMS_V_MiscPaths WHERE [Function] = 'AnalysisXfer' ) AS Xfer WHERE ISNULL(TStor.SP_vol_name_client, '') <> '' AND TStor.SP_vol_name_client <> '(na)' ) DirectoryQ WHERE Storage_Vol_External = @StorageVolExternal Set @TransferDirectoryPath = IsNull(@TransferDirectoryPath, '') INSERT INTO @paramTab ( Step_Number, [Section], [Name], Value ) VALUES (NULL, 'JobParameters', 'TransferDirectoryPath', @TransferDirectoryPath) --------------------------------------------------- -- Add the SHA-1 hash for the first instrument file, if defined --------------------------------------------------- Declare @fileHash Varchar(64) = '' SELECT @fileHash = file_hash FROM S_DMS_T_Dataset_Files WHERE Dataset_ID = @datasetID AND Deleted = 0 AND File_Size_Rank = 1 -- SELECT @myError = @@error, @myRowCount = @@rowcount If @myRowCount > 0 Begin INSERT INTO @paramTab ( Step_Number, [Section], [Name], Value ) VALUES (NULL, 'JobParameters', 'Instrument_File_Hash', @fileHash) End --------------------------------------------------- -- output the table of parameters --------------------------------------------------- SELECT @job AS Job, [Step_Number], [Section], [Name], [Value] FROM @paramTab ORDER BY [Section], [Name] RETURN @myError GO GRANT VIEW DEFINITION ON [dbo].[GetJobParamTable] TO [DDL_Viewer] AS [dbo] GO
40.139373
158
0.567448
3ef0771a0c54034d2300008e009b10da4e1b6211
712
dart
Dart
lib/src/train_set.dart
gnudles/tfann_dart
b9d93ddaf8ba975fb4f1b45e766657879ce1903f
[ "BSD-3-Clause" ]
3
2021-07-16T13:05:53.000Z
2022-02-09T19:29:32.000Z
lib/src/train_set.dart
gnudles/tfann_dart
b9d93ddaf8ba975fb4f1b45e766657879ce1903f
[ "BSD-3-Clause" ]
null
null
null
lib/src/train_set.dart
gnudles/tfann_dart
b9d93ddaf8ba975fb4f1b45e766657879ce1903f
[ "BSD-3-Clause" ]
null
null
null
import 'dart:typed_data'; import 'linalg.dart'; abstract class TrainSet { FVector input; TrainSet(this.input); } class TrainSetInputError extends TrainSet { FVector error; TrainSetInputError(FVector input, this.error) : super(input); TrainSetInputError.lists(List<double> inputList, List<double> errorList) : error = FVector.fromList(errorList), super(FVector.fromList(inputList)); } class TrainSetInputOutput extends TrainSet { FVector output; TrainSetInputOutput(FVector input, this.output) : super(input); TrainSetInputOutput.lists(List<double> inputList, List<double> outputList) : output = FVector.fromList(outputList), super(FVector.fromList(inputList)); }
27.384615
76
0.744382
bfbeb6efcb1c21753b2f72a2dd92fde17153762b
1,341
sql
SQL
kamera.sql
Diki1818044/1818044-Restclient
5d3ad29644ddd6290874968a5df10c204278d7c2
[ "MIT" ]
null
null
null
kamera.sql
Diki1818044/1818044-Restclient
5d3ad29644ddd6290874968a5df10c204278d7c2
[ "MIT" ]
null
null
null
kamera.sql
Diki1818044/1818044-Restclient
5d3ad29644ddd6290874968a5df10c204278d7c2
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 22, 2021 at 02:01 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 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: `rental_kamera` -- -- -------------------------------------------------------- -- -- Table structure for table `kamera` -- CREATE TABLE `kamera` ( `kode_barang` varchar(20) NOT NULL, `merek` varchar(100) NOT NULL, `sewa_hari` varchar(100) NOT NULL, `harga` int(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `kamera` -- INSERT INTO `kamera` (`kode_barang`, `merek`, `sewa_hari`, `harga`) VALUES ('01', 'konon', '2hari', 5000); -- -- Indexes for dumped tables -- -- -- Indexes for table `kamera` -- ALTER TABLE `kamera` ADD PRIMARY KEY (`kode_barang`); 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 */;
23.12069
74
0.672632
d08afacccf137edf0b1c92beeec789f9317decbd
692
sql
SQL
src/Store/Sql/schema/sagas_store.sql
mmasiukevich/sagas
bc2be3f462fad061f644e05a9c230b6c9dd5100b
[ "MIT" ]
null
null
null
src/Store/Sql/schema/sagas_store.sql
mmasiukevich/sagas
bc2be3f462fad061f644e05a9c230b6c9dd5100b
[ "MIT" ]
null
null
null
src/Store/Sql/schema/sagas_store.sql
mmasiukevich/sagas
bc2be3f462fad061f644e05a9c230b6c9dd5100b
[ "MIT" ]
null
null
null
CREATE TABLE IF NOT EXISTS sagas_store ( id UUID, identifier_class VARCHAR NOT NULL, saga_class VARCHAR NOT NULL, payload BYTEA NOT NULL, state_id VARCHAR NOT NULL, created_at TIMESTAMP NOT NULL, expiration_date TIMESTAMP NOT NULL, closed_at TIMESTAMP, CONSTRAINT saga_identifier PRIMARY KEY (id, identifier_class) ); CREATE TABLE IF NOT EXISTS sagas_association ( id UUID, saga_id uuid not null, identifier_class varchar(255) not null, saga_class varchar(255) not null, property_name varchar(255) not null, property_value varchar(255) not null, CONSTRAINT sagas_association_pk PRIMARY KEY (id) );
30.086957
65
0.705202
3e28f3e0829403f2147247170ce5170daf92d15c
4,112
h
C
platform/windows/Corona.Simulator/Rtt/Rtt_WinSimulatorServices.h
agramonte/corona
3a6892f14eea92fdab5fa6d41920aa1e97bc22b1
[ "MIT" ]
1,968
2018-12-30T21:14:22.000Z
2022-03-31T23:48:16.000Z
platform/windows/Corona.Simulator/Rtt/Rtt_WinSimulatorServices.h
agramonte/corona
3a6892f14eea92fdab5fa6d41920aa1e97bc22b1
[ "MIT" ]
303
2019-01-02T19:36:43.000Z
2022-03-31T23:52:45.000Z
platform/windows/Corona.Simulator/Rtt/Rtt_WinSimulatorServices.h
agramonte/corona
3a6892f14eea92fdab5fa6d41920aa1e97bc22b1
[ "MIT" ]
254
2019-01-02T19:05:52.000Z
2022-03-30T06:32:28.000Z
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: support@coronalabs.com // ////////////////////////////////////////////////////////////////////////////// #pragma once #include "Rtt_MSimulatorServices.h" #include "Rtt_LuaResource.h" #pragma region Forward Declarations class CSimulatorView; #pragma endregion namespace Rtt { /// <summary> /// <para> /// Provides access to the simulator window's project services such as "New Project", "Open Project", /// "Show Sample Code", etc. /// </para> /// <para>These services can be registered into Lua which is used by the "Home Screen" Corona project.</para> /// </summary> class WinSimulatorServices : public MSimulatorServices { public: /// <summary>Creates a new Simulator Services object for the given view.</summary> /// <param name="simulatorViewPointer"> /// Reference to the view that this object will use to create new projects, open projects, and do builds for. /// </param> WinSimulatorServices(CSimulatorView& simulatorView); /// <summary>Destroys this object and its owned objects.</summary> virtual ~WinSimulatorServices(); /// <summary>Displays a "New Project" window for creating a new Corona project.</summary> virtual bool NewProject() const; /// <summary>Opens a Corona project for simulation.</summary> /// <param name="name"> /// <para>Set to the absolute path to the Corona project directory to open and simulate.</para> /// <para>Set to null or empty string to display the "Open File" dialog for selecting a project.</para> /// </param> virtual bool OpenProject(const char *name) const; /// <summary>Display the "Build" window for the currently open Corona project.</summary> /// <param name="platformName">The name of the platform to build for such as iOS, Android, etc.</param> virtual bool BuildProject(const char *platformName) const; /// <summary>Displays an "Open File" dialog which default to the sample projects directory.</summary> virtual void ShowSampleCode() const; virtual void SelectOpenFilename(const char* currDirectory, const char* extn, LuaResource* resource) const; virtual void SelectSaveFilename(const char* newFilename, const char* currDirectory, const char* extn, LuaResource* resource) const; virtual const char* GetCurrProjectPath( ) const; virtual void RunExtension(const char *extName) const; virtual void SetProjectResourceDirectory(const char *projectResourceDirectory); virtual void SetWindowCloseListener(LuaResource* resource) const; virtual void CloseWindow( ) const; virtual void GetRecentDocs(LightPtrArray<RecentProjectInfo> *list) const; virtual const char* GetPreference(const char *prefName) const; virtual void SetPreference(const char *prefName, const char *prefValue) const; virtual void SetDocumentEdited(bool value) const; virtual bool GetDocumentEdited( ) const; virtual void SetCursorRect(const char *cursorName, int x, int y, int width, int height) const; virtual void SetWindowResizeListener(LuaResource* resource) const; virtual void SetWindowTitle(const char *title) const; virtual void OpenTextEditor(const char *filename) const; virtual void OpenColorPanel(double r, double g, double b, double a, LuaResource* callback) const; virtual void SetBuildMessage(const char *message) const; virtual void SendAnalytics(const char *eventName, const char *keyName, const char *value) const; virtual bool RelaunchProject() const; virtual bool EditProject(const char *name) const; virtual bool ShowProjectFiles(const char *name) const; virtual bool ShowProjectSandbox(const char *name) const; private: /// <summary> /// Reference to the simulator application's view that will will implement this class' services /// such as "New Project", "Open Project", etc. /// </summary> CSimulatorView& fSimulatorView; }; } // namespace Rtt
43.744681
133
0.715953
49930cbf2faa513eeb7a6e4fa820d0176ad0cc01
1,584
sql
SQL
src/sql/cdm_death.sql
ypinzon/ClinicalTrialsWGETL
4edd6b6868915ab8e3408f6e8f6e625dd3003d40
[ "Apache-2.0" ]
null
null
null
src/sql/cdm_death.sql
ypinzon/ClinicalTrialsWGETL
4edd6b6868915ab8e3408f6e8f6e625dd3003d40
[ "Apache-2.0" ]
null
null
null
src/sql/cdm_death.sql
ypinzon/ClinicalTrialsWGETL
4edd6b6868915ab8e3408f6e8f6e625dd3003d40
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------- -- Observational Health Data Sciences and Informatics -- Clinical Trials Workgroup ------------------------------------------------------------------- TRUNCATE TABLE cdm.death; INSERT INTO cdm.death SELECT DISTINCT per.person_id AS person_id, Cast(src.dthdtc AS date) AS death_date, NULL AS death_datetime, 32809 AS death_type_concept_id, -- 'Case Report Form' Coalesce(msc.target_concept_id, 0) AS cause_concept_id, ce.event_source_value AS cause_source_value, msc.source_concept_id AS cause_source_concept_id, 'death' AS rule_id, 'dm' AS src_tbl, src.row_id AS src_row FROM src.dm src INNER JOIN cdm.person per ON per.person_source_value = src.usubjid LEFT JOIN temp.clinical_events ce ON ce.person_source_value = src.usubjid AND ce.stop_reason = 'FATAL' AND ce.rule_id = 'ae.1.aellt' LEFT JOIN temp.source_codes_mapped msc ON msc.source_vocabulary_id IN ( ce.source_vocabulary_id, ce.default_vocabulary_id ) AND msc.source_code = ce.event_source_value WHERE src.dthfl = 'Y' AND src.dthdtc IS NOT NULL;
49.5
100
0.479798
f485f942894435b0eabdc41afb87caaeef8c75b0
679
go
Go
point/main.go
suryaiu/go-examples
062303edfc2a28da4a2138eb11d52716992ac792
[ "MIT" ]
null
null
null
point/main.go
suryaiu/go-examples
062303edfc2a28da4a2138eb11d52716992ac792
[ "MIT" ]
null
null
null
point/main.go
suryaiu/go-examples
062303edfc2a28da4a2138eb11d52716992ac792
[ "MIT" ]
null
null
null
package main import "fmt" // 指针 func main() { // & 取地址 // * 根据地址取值 n := 18 p := &n // p 是指向n的指针 fmt.Println(p) // 输出n的内存地址 fmt.Printf("%T\n", p) // p 的类型是 *int 表示类型为 int 型指针 fmt.Println(*p) // *p 输出指针指向内存上存储的值 var a *int // 指针的空值为 nil // *a = 100 // 对 nil 进行取值操作,报错:runtime error: invalid memory address or nil pointer dereference fmt.Println(a) // output: <nil> newFunc() } // new 是一个内置函数,接受一个参数(是一个类型),返回值是一个指针 // func new(Type) *Type func newFunc() { // 使用 new 来申请一块内存地址 var a = new(int) // a 是指针 fmt.Println(a) // a 所指向的内存地址 output: 0xc0000100e8 fmt.Println(*a) // a 所指向的内存上存储的值,int 的零值 0 fmt.Println(&a) // 指针 a 的内存地址 }
21.903226
98
0.605302
0ee6c550ce69a5a1159b066ddc049f43f0079394
539
tsx
TypeScript
example/index.tsx
kitze/react-genie-emotion
449a5d6c7de9a666c58d8e031818c018279bf8eb
[ "MIT" ]
8
2020-04-28T13:22:20.000Z
2020-08-27T14:42:26.000Z
example/index.tsx
kitze/react-genie-emotion
449a5d6c7de9a666c58d8e031818c018279bf8eb
[ "MIT" ]
2
2021-03-10T16:14:40.000Z
2021-05-11T12:13:36.000Z
example/index.tsx
kitze/react-genie-emotion
449a5d6c7de9a666c58d8e031818c018279bf8eb
[ "MIT" ]
1
2020-05-30T00:00:03.000Z
2020-05-30T00:00:03.000Z
import * as React from 'react'; import 'react-app-polyfill/ie11'; import * as ReactDOM from 'react-dom'; import { Reveal } from 'react-genie'; import { Animation, ReactGenieAnimations } from '../.'; const App = () => { return ( <div> <ReactGenieAnimations /> <Reveal animation={Animation.FadeInUp}>Hello</Reveal> <Reveal animation={Animation.FadeInLeft}>World</Reveal> <Reveal animation={Animation.FadeInRight}>Alrighty</Reveal> </div> ); }; ReactDOM.render(<App />, document.getElementById('root'));
28.368421
65
0.669759
99905b9a680031176fa69ce6a41fa560647a58c4
967
swift
Swift
Sources/Model/Push/Notification/Badge.swift
wmcginty/UrbanVapor
7bc0ef03261af8a69c42ef0ff13f57dd02e668f2
[ "MIT" ]
null
null
null
Sources/Model/Push/Notification/Badge.swift
wmcginty/UrbanVapor
7bc0ef03261af8a69c42ef0ff13f57dd02e668f2
[ "MIT" ]
null
null
null
Sources/Model/Push/Notification/Badge.swift
wmcginty/UrbanVapor
7bc0ef03261af8a69c42ef0ff13f57dd02e668f2
[ "MIT" ]
null
null
null
// // Badge.swift // // Created by William McGinty on 9/19/18. // import Foundation // MARK: Badge public struct Badge: Codable { // MARK: Properties private let stringValue: String // MARK: Initializers private init(value: String) { stringValue = value } init(value: Int) { stringValue = "\(value)" } // MARK: Codable public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() self.init(value: try container.decode(String.self)) } public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() try container.encode(stringValue) } // MARK: Predefined public static let auto = Badge(value: "auto") public static func incrementBy(_ value: Int) -> Badge { return Badge(value: "+\(value)") } public static func decrementBy(_ value: Int) -> Badge { return Badge(value: "-\(value)") } }
27.628571
94
0.638056
b8716b794231716cec9cb920fbb6b0859ff3e04c
4,178
rs
Rust
src/command_line.rs
fcard/MGL
9d41d30ce58451b80aa6e0d255b0c398c679b86b
[ "MIT" ]
null
null
null
src/command_line.rs
fcard/MGL
9d41d30ce58451b80aa6e0d255b0c398c679b86b
[ "MIT" ]
5
2019-08-18T07:30:01.000Z
2019-08-30T19:50:44.000Z
src/command_line.rs
fcard/MGL
9d41d30ce58451b80aa6e0d255b0c398c679b86b
[ "MIT" ]
null
null
null
use std::env; use std::path::{Path, PathBuf}; use clap::{App, AppSettings, ArgMatches, Arg, SubCommand, crate_version}; pub struct Command { pub action: Action, pub files: Vec<PathBuf>, pub project_file: Option<PathBuf>, } pub enum Action { Compile, ShowAst(bool), Project(bool), Scripts, } fn generate_app<'a, 'b>() -> App<'a, 'b> { let pretty = Arg::with_name("pretty") .long("pretty") .takes_value(true) .value_name("value") .possible_values(&["yes", "true", "no", "false"]) .help("Pretty printing"); App::new("MGL") .version(&crate_version!()[..]) .about("Compiles code into a Game Maker project") .setting(AppSettings::GlobalVersion) .setting(AppSettings::SubcommandRequiredElseHelp) .setting(AppSettings::ArgRequiredElseHelp) .arg(Arg::with_name("no-project") .short("n") .long("no-project") .takes_value(false) .conflicts_with("project-file") .help("Don't read any project")) .arg(Arg::with_name("project-file") .short("p") .long("project-file") .value_name("FILE") .takes_value(true) .help("Select project file")) .arg(Arg::with_name("input") .short("i") .long("input") .value_name("FILE(,FILE)*") .takes_value(true) .help("Select additional files as input")) .subcommand(SubCommand::with_name("compile") .about("Compile current project (still non-functional)")) .subcommand(SubCommand::with_name("ast") .about("Show AST for all input files") .arg(pretty.clone())) .subcommand(SubCommand::with_name("project") .about("Show final project output as text") .arg(pretty)) .subcommand(SubCommand::with_name("scripts") .about("compile just the scripts and print them")) } pub fn interpret_arguments() -> Command { let matches = generate_app().get_matches(); Command { project_file: interpret_project_argument(&matches), files: interpret_input_argument(&matches), action: interpret_subcommand(&matches), } } fn interpret_subcommand(matches: &ArgMatches) -> Action { match matches.subcommand() { ("compile", _) => Action::Compile, ("project", m) => Action::Project(interpret_pretty(&m.unwrap())), ("ast", m) => Action::ShowAst(interpret_pretty(&m.unwrap())), ("scripts", _) => Action::Scripts, _ => unreachable!() } } fn interpret_pretty(matches: &ArgMatches) -> bool { match matches.value_of("pretty").unwrap_or("yes") { "yes" | "true" => true, "no" | "false" => false, _ => unreachable!() } } fn interpret_input_argument(matches: &ArgMatches) -> Vec<PathBuf> { let mut input = Vec::new(); if let Some(files) = matches.value_of("input") { for file in files.split(",") { input.push(Path::new(file).to_path_buf()); } } return input; } fn interpret_project_argument(matches: &ArgMatches) -> Option<PathBuf> { if matches.is_present("no-project") { return None } match matches.value_of("project-file") { None => find_project_file(), Some(file) => { let path = Path::new(file).to_path_buf(); if path.exists() { Some(path) } else { eprintln!("NOTE: The given project file was not found, looking for one...\n"); find_project_file() } } } } fn find_project_file() -> Option<PathBuf> { if let Ok(mut directory) = env::current_dir() { if let Some(path) = find_project_file_in(&directory) { return Some(path) } else { while let Some(parent) = directory.parent() { directory = parent.to_path_buf(); if let Some(path) = find_project_file_in(&directory) { return Some(path) } } return None } } else { return None } } fn find_project_file_in(directory: &PathBuf) -> Option<PathBuf> { let mut path = directory.clone(); path.push("Project.mgl.toml"); if path.exists() { return Some(path) } else { return None } }
24.576471
86
0.595022
f061361346e5c53e6f9bfc725e3bc9a264fe2453
9,053
py
Python
archon/__init__.py
HyechurnJang/archon
2cda56436ed6dea65d38774f7c9ed6c3315dbc03
[ "Apache-2.0" ]
1
2018-03-07T08:33:23.000Z
2018-03-07T08:33:23.000Z
archon/__init__.py
HyechurnJang/archon
2cda56436ed6dea65d38774f7c9ed6c3315dbc03
[ "Apache-2.0" ]
2
2017-03-14T01:02:55.000Z
2017-03-14T01:07:29.000Z
archon/__init__.py
HyechurnJang/archon
2cda56436ed6dea65d38774f7c9ed6c3315dbc03
[ "Apache-2.0" ]
4
2017-02-03T04:53:07.000Z
2020-04-20T07:52:47.000Z
# -*- coding: utf-8 -*- ################################################################################ # _____ _ _____ _ # # / ____(_) / ____| | | # # | | _ ___ ___ ___ | (___ _ _ ___| |_ ___ _ __ ___ ___ # # | | | / __|/ __/ _ \ \___ \| | | / __| __/ _ \ '_ ` _ \/ __| # # | |____| \__ \ (_| (_) | ____) | |_| \__ \ || __/ | | | | \__ \ # # \_____|_|___/\___\___/ |_____/ \__, |___/\__\___|_| |_| |_|___/ # # __/ | # # |___/ # # _ __ _____ _ _____ ______ # # | |/ / / ____| | |/ ____| ____| # # | ' / ___ _ __ ___ __ _ | (___ ___ | | (___ | |__ # # | < / _ \| '__/ _ \/ _` | \___ \ / _ \| |\___ \| __| # # | . \ (_) | | | __/ (_| | ____) | (_) | |____) | |____ # # |_|\_\___/|_| \___|\__,_| |_____/ \___/|_|_____/|______| # # # ################################################################################ # # # Copyright (c) 2016 Cisco Systems # # All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"); you may # # not use this file except in compliance with the License. You may obtain # # a copy of the License at # # # # http://www.apache.org/licenses/LICENSE-2.0 # # # # Unless required by applicable law or agreed to in writing, software # # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # # License for the specific language governing permissions and limitations # # under the License. # # # ################################################################################ import re import json from pygics import Burst from django.contrib import admin from django.contrib.auth.decorators import login_required from django.http import JsonResponse from archon.settings import SESSION_COOKIE_AGE from archon.view import * ARCHON_DEBUG = False class ManagerAbstraction: __MANAGER__ = None @classmethod def instance(cls, *argv, **kargs): if cls.__MANAGER__ == None: cls.__MANAGER__ = cls(*argv, **kargs) return cls.__MANAGER__ def getSummary(self, r, m, v): return { 'name' : '?', 'icon' : 'Default.png', 'desc' : 'This is Unknown Manager', 'link' : '/dashboard', 'view' : DIV() } class ArchonReq: def __init__(self, request, method, path, query, data): self.Request = request self.Method = method self.Path = path self.Query = query self.Data = data def __str__(self): return '%s:%s\nQuery:%s\nData:%s' % (self.Method, self.Path, self.Query, self.Data) class ArchonView: class PageContent(TAG): def __init__(self): TAG.__init__(self, 'div', CLASS='pagecontent') def __init__(self, app, lang): self.Menu = DIV() self.Page = ArchonView.PageContent() self._app = app self._lang = lang def __call__(self, key): glb_locale = archon_locales['GLOBAL'] if self._app in archon_locales: app_locale = archon_locales[self._app] if key in app_locale: key_locale = app_locale[key] for lang in self._lang: if lang in key_locale: return key_locale[lang] if key in glb_locale: key_locale = glb_locale[key] for lang in self._lang: if lang in key_locale: return key_locale[lang] return key def __render__(self): return {'menu' : self.Menu, 'page' : self.Page} @classmethod def __error__(cls, title, msg): return {'menu' : DIV(), 'page' : ALERT(title, msg, CLASS='alert-danger')} def pageview(manager_class, **async_path): def wrapper(view): @login_required def decofunc(request): request.session.set_expiry(SESSION_COOKIE_AGE) method = request.method path = filter(None, request.path.split('/')) lang = filter(None, re.split(';|,|q=0.\d', request.META['HTTP_ACCEPT_LANGUAGE'])) app = view.__module__.split('.')[1] v = ArchonView(app, lang) try: m = manager_class.instance() except Exception as e: return JsonResponse(ArchonView.__error__(v('manager allocation error'), str(e))) try: if method == 'GET': query = dict(request.GET) data = {} elif method == 'POST': query = dict(request.POST) if not hasattr(request, '_body') and request._read_started: data = request.FILES else: data = json.loads(request.body) elif method == 'PUT': query = dict(request.PUT) if not hasattr(request, '_body') and request._read_started: data = request.FILES else: data = json.loads(request.body) elif method == 'DELETE': query = {} data = {} else: query = {} data = {} except Exception as e: return JsonResponse(ArchonView.__error__(v('request error'), str(e))) r = ArchonReq(request, method, path, query, data) async_path_names = async_path.keys() for async_path_name in async_path_names: if async_path_name in path: try: return JsonResponse(async_path[async_path_name](r, m, v)) except Exception as e: return JsonResponse(ArchonView.__error__(v('application error'), str(e))) try: view(r, m, v) except Exception as e: return JsonResponse(ArchonView.__error__(v('application error'), str(e))) return JsonResponse(v.__render__()) def decofunc_debug(request): method = request.method path = filter(None, request.path.split('/')) lang = filter(None, re.split(';|,|q=0.\d', request.META['HTTP_ACCEPT_LANGUAGE'])) app = view.__module__.split('.')[1] v = ArchonView(app, lang) m = manager_class.instance() if method == 'GET': query = dict(request.GET) data = {} elif method == 'POST': query = dict(request.POST) if not hasattr(request, '_body') and request._read_started: data = request.FILES else: data = json.loads(request.body) elif method == 'PUT': query = dict(request.PUT) if not hasattr(request, '_body') and request._read_started: data = request.FILES else: data = json.loads(request.body) elif method == 'DELETE': query = {} data = {} else: query = {} data = {} r = ArchonReq(request, method, path, query, data) async_path_names = async_path.keys() for async_path_name in async_path_names: if async_path_name in path: return JsonResponse(async_path[async_path_name](r, m, v)) view(r, m, v) return JsonResponse(v.__render__()) if ARCHON_DEBUG: return decofunc_debug else: return decofunc return wrapper def modelview(model): admin.site.register(model, admin.ModelAdmin)
43.946602
117
0.435436
4e4856436e6592bffcbec17793c7119f53806de6
3,682
dart
Dart
lib/sk_alert_dialog.dart
senthilece01/SKAlertDialog
7d746e5bafc63f7ddc71d2ab2875b23a462742ca
[ "MIT" ]
5
2020-08-28T08:44:59.000Z
2021-04-20T18:03:16.000Z
lib/sk_alert_dialog.dart
senthilece01/SKAlertDialog
7d746e5bafc63f7ddc71d2ab2875b23a462742ca
[ "MIT" ]
2
2021-04-26T03:22:23.000Z
2021-09-24T05:32:53.000Z
lib/sk_alert_dialog.dart
senthilece01/SKAlertDialog
7d746e5bafc63f7ddc71d2ab2875b23a462742ca
[ "MIT" ]
5
2020-08-31T05:14:38.000Z
2021-04-10T09:03:07.000Z
library sk_alertdialog; import 'package:flutter/material.dart'; import 'src/model/sk_alert_model.dart'; import 'src/widgets/sk_alert_checkbox.dart'; import 'src/widgets/sk_alert_customwidget.dart'; import 'src/widgets/sk_alert_message.dart'; import 'src/widgets/sk_alert_radiobutton.dart'; import 'src/widgets/sk_alert_textfield.dart'; enum SKAlertType { info, buttons, loginform, checkbox, radiobutton, custom, } class SKAlertDialog { static Future show({ @required BuildContext context, String title, String message, Color titleTxtColor = Colors.black, Color messageTxtColor = Colors.black, Color closeBtnColor = Colors.black, @required SKAlertType type, bool barrierDismissible = false, ValueChanged<String> onOkBtnTap, String okBtnText = "OK", Color okBtnColor = const Color(0xFF50A1FF), Color okBtnTxtColor = Colors.white, ValueChanged<String> onCancelBtnTap, String cancelBtnText = "CANCEL", Color cancelBtnColor = const Color(0xFFEAECF0), Color cancelBtnTxtColor = Colors.black, bool showCancelBtn = false, double borderRadius = 5.0, ValueChanged<String> onEmailTextFieldChanged, ValueChanged<String> onPasswordTextFieldChanged, Widget customWidget, Map<String, bool> checkBoxAry, ValueChanged<Map<String, bool>> onCheckBoxSelection, Map<String, int> radioButtonAry, ValueChanged<String> onRadioButtonSelection, }) { // 1 // Default Child Widget defaultChild = AlertDialog( contentPadding: EdgeInsets.zero, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(borderRadius), ), content: Container(), ); // 2 // Assing the value to the model SKAlertModel skAlertModel = SKAlertModel( title: title, message: message, titleTxtColor: titleTxtColor, messageTxtColor: messageTxtColor, closeBtnColor: closeBtnColor, type: type, barrierDismissible: barrierDismissible, onOkBtnTap: onOkBtnTap, okBtnText: okBtnText, okBtnColor: okBtnColor, okBtnTxtColor: okBtnTxtColor, onCancelBtnTap: onCancelBtnTap, cancelBtnText: cancelBtnText, cancelBtnColor: cancelBtnColor, cancelBtnTxtColor: cancelBtnTxtColor, showCancelBtn: showCancelBtn, borderRadius: borderRadius, onEmailTextFieldChanged: onEmailTextFieldChanged, onPasswordTextFieldChanged: onPasswordTextFieldChanged, customWidget: customWidget, checkBoxAry: checkBoxAry, onCheckBoxSelection: onCheckBoxSelection, radioButtonAry: radioButtonAry, onRadioButtonSelection: onRadioButtonSelection); return showGeneralDialog( barrierColor: Colors.black.withOpacity(0.5), transitionDuration: Duration(milliseconds: 200), barrierDismissible: barrierDismissible, barrierLabel: '', context: context, pageBuilder: (context, anim1, anim2) { switch (type) { case SKAlertType.info: case SKAlertType.buttons: return SKAlertMessage(model: skAlertModel); break; case SKAlertType.loginform: return SKAlertTextField(model: skAlertModel); case SKAlertType.custom: return SKAlertCustomWidget(model: skAlertModel); case SKAlertType.checkbox: return SKAlertCheckbox(model: skAlertModel); case SKAlertType.radiobutton: return SKAlertRadioButton(model: skAlertModel); default: return defaultChild; } }); } }
32.584071
63
0.682238
0f9a9fa0573ebaf1e469bc0ccade637171ee0b14
591
dart
Dart
lib/endpoint.dart
swentzel/cantine-app-flutter
45d1c59ae60039172ff6537b2c0943a8937833a6
[ "MIT" ]
null
null
null
lib/endpoint.dart
swentzel/cantine-app-flutter
45d1c59ae60039172ff6537b2c0943a8937833a6
[ "MIT" ]
null
null
null
lib/endpoint.dart
swentzel/cantine-app-flutter
45d1c59ae60039172ff6537b2c0943a8937833a6
[ "MIT" ]
null
null
null
import 'dart:core'; class Endpoint { static const apiScheme = 'https'; // static const apiHost = 'swentzel.github.io'; // static const prefix = '/cantine-app/mocks'; static const apiHost = 'wadhr23uxa.execute-api.eu-central-1.amazonaws.com'; static const prefix = '/dev/cantines'; static Uri uri(String path, {Map<String, dynamic> queryParameters}) { final uri = new Uri( scheme: apiScheme, host: apiHost, // path: '$prefix$path', path: '$prefix', queryParameters: queryParameters, ); print('${uri.toString()}'); return uri; } }
26.863636
77
0.639594
dc047fd858075996b3945324de7414bb2c62dcbd
715
py
Python
lang/py/pylib/code/xmlrpclib/xmlrpclib_types_nested.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
lang/py/pylib/code/xmlrpclib/xmlrpclib_types_nested.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
lang/py/pylib/code/xmlrpclib/xmlrpclib_types_nested.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import xmlrpclib import datetime import pprint server = xmlrpclib.ServerProxy('http://localhost:9000') data = { 'boolean':True, 'integer': 1, 'floating-point number': 2.5, 'string': 'some text', 'datetime': datetime.datetime.now(), 'array': ['a', 'list'], 'array': ('a', 'tuple'), 'structure': {'a':'dictionary'}, } arg = [] for i in range(3): d = {} d.update(data) d['integer'] = i arg.append(d) print 'Before:' pprint.pprint(arg) print print 'After:' pprint.pprint(server.show_type(arg)[-1])
18.815789
55
0.58042
5b0ff7c386a4dccb83066a7ead21a9251f9d4304
251
h
C
SMCustomViewXIB/Class/Custom2/Controller/SMCustom2VC.h
asiosldh/SMCustomViewXIB
c47598e6070d0f37051c13c1fb43d8d75d319f0f
[ "MIT" ]
7
2017-04-23T17:19:07.000Z
2017-10-24T16:57:16.000Z
SMCustomViewXIB/Class/Custom2/Controller/SMCustom2VC.h
liangdahong/SMCustomViewXIB
c47598e6070d0f37051c13c1fb43d8d75d319f0f
[ "MIT" ]
null
null
null
SMCustomViewXIB/Class/Custom2/Controller/SMCustom2VC.h
liangdahong/SMCustomViewXIB
c47598e6070d0f37051c13c1fb43d8d75d319f0f
[ "MIT" ]
null
null
null
// // SMCustom2VC.h // SMCustomViewXIB // // Created by __liangdahong on 2017/4/23. // Copyright © 2017年 https://github.com/asiosldh/SMCustomViewXIB All rights reserved. // #import <UIKit/UIKit.h> @interface SMCustom2VC : UIViewController @end
17.928571
86
0.7251
b1eb00fc8a32c400358415b2a136fffa842506f7
7,542
asm
Assembly
tests/testsuite-2.15/ascii-src/start.asm
meesokim/chips-test
1fb7003ed96bc444820c8f7872ea7e3af2cf65d4
[ "MIT" ]
330
2017-12-11T21:20:28.000Z
2022-03-26T08:56:51.000Z
tests/testsuite-2.15/ascii-src/start.asm
meesokim/chips-test
1fb7003ed96bc444820c8f7872ea7e3af2cf65d4
[ "MIT" ]
28
2015-11-14T09:21:03.000Z
2018-04-04T22:36:17.000Z
tests/testsuite-2.15/ascii-src/start.asm
meesokim/chips-test
1fb7003ed96bc444820c8f7872ea7e3af2cf65d4
[ "MIT" ]
31
2018-07-02T06:13:31.000Z
2022-02-18T16:50:56.000Z
*= $0801 .byte $4c,$16,$08,$00,$97,$32 .byte $2c,$30,$3a,$9e,$32,$30 .byte $37,$30,$00,$00,$00,$a9 .byte $01,$85,$02 jsr print .byte 147,14,13 .text "Commodore 64 " .text "Emulator Test Suite" .byte 13 .text "Public Domain, " .text "no Copyright" .byte 13,13 .null "basic commands" e .macro jsr print .text " - block " .text "`1" .text " failed" .byte 13,0 rts .endm cli cld l00 lda #0 l01 cmp #0 beq l02 #e "01" l02 inc l00+1 inc l01+1 bne l00 lda #0 beq l03 #e "02" l03 lda #0 bpl l04 #e "03" l04 lda #$80 bmi l05 #e "04" l05 lda #0 sec asl a bcs l06 cmp #0 bne l06 lda #1 asl a bcs l06 cmp #2 bne l06 asl a bcs l06 cmp #4 bne l06 asl a bcs l06 cmp #8 bne l06 asl a bcs l06 cmp #16 bne l06 asl a bcs l06 cmp #32 bne l06 asl a bcs l06 cmp #64 bne l06 asl a bcs l06 cmp #128 bne l06 asl a bcc l06 beq l07 l06 #e "05" l07 clc bcc l08 #e "06" l08 sec bcs l09 #e "07" l09 lda #0 sec lsr a bcs l10 cmp #0 bne l10 lda #128 lsr a bcs l10 cmp #64 bne l10 lsr a bcs l10 cmp #32 bne l10 lsr a bcs l10 cmp #16 bne l10 lsr a bcs l10 cmp #8 bne l10 lsr a bcs l10 cmp #4 bne l10 lsr a bcs l10 cmp #2 bne l10 lsr a bcs l10 cmp #1 bne l10 lsr a bcc l10 beq l11 l10 #e "08" lda #1 sta l11+1 l11 lda #1 bne l12 #e "09" l12 inc l11+1 bne l11 lda #0 sta l14+1 l13 inc l14+1 clc adc #1 l14 cmp #1 beq l15 #e "10" l15 ldx l14+1 bne l13 lda #0 sta l17+1 l16 inc l17+1 sec adc #0 l17 cmp #1 beq l18 #e "11" l18 ldx l17+1 bne l16 lda #255 clc adc #1 bne l19 bmi l19 bcs l20 l19 #e "12" l20 lda #0 sta 172 lda 172 l21 cmp #0 beq l22 #e "13" l22 inc l20+1 inc l21+1 bne l20 lda #78 tax lda #0 txa cmp #78 beq l23 #e "14" l23 lda #0 ora #$01 cmp #$01 bne l24 ora #$02 cmp #$03 bne l24 ora #$04 cmp #$07 bne l24 ora #$08 cmp #$0f bne l24 ora #$10 cmp #$1f bne l24 ora #$20 cmp #$3f bne l24 ora #$40 cmp #$7f bne l24 ora #$80 cmp #$ff beq l25 l24 #e "15" l25 lda #$ff and #$fe cmp #$fe bne l26 and #$fd cmp #$fc bne l26 and #$fb cmp #$f8 bne l26 and #$f7 cmp #$f0 bne l26 and #$ef cmp #$e0 bne l26 and #$df cmp #$c0 bne l26 and #$bf cmp #$80 bne l26 and #$7f cmp #$00 beq l27 l26 #e "16" l27 ldx #0 l28 txa asl a cmp l0tab,x beq l29 #e "17" l29 inx bne l28 ldx #0 l30 txa clc rol a cmp l0tab,x beq l31 #e "18" l31 inx bne l30 ldx #0 l32 txa sec rol a cmp l1tab,x beq l33 #e "19" l33 inx bne l32 ldx #0 l34 txa lsr a cmp r0tab,x beq l35 #e "20" l35 inx bne l34 ldx #0 l36 txa clc ror a cmp r0tab,x beq l37 #e "21" l37 inx bne l36 ldx #0 l38 txa sec ror a cmp r1tab,x beq l39 #e "22" l39 inx bne l38 ldy #0 l40 tya tax inx txa cmp i0tab,y beq l41 #e "23" l41 iny bne l40 ldx #0 l42 txa tay iny tya cmp i0tab,x beq l43 #e "24" l43 inx bne l42 ldx #0 l44 txa clc adc #1 cmp i0tab,x beq l45 #e "25" l45 inx bne l44 ldx #0 l46 txa sec adc #1 cmp i1tab,x beq l47 #e "26" l47 inx bne l46 ldx #0 l48 txa sec sbc #1 cmp d0tab,x beq l49 #e "27" l49 inx bne l48 ldx #0 l50 txa clc sbc #1 cmp d1tab,x beq l51 #e "28" l51 inx bne l50 jsr print .text " - ok" .byte 13,0 lda 2 beq load wait jsr $ffe4 beq wait jmp $8000 load jsr print name .text "ldab" namelen = *-name .byte 0 lda #0 sta $0a sta $b9 lda #namelen sta $b7 lda #<name sta $bb lda #>name sta $bc pla pla jmp $e16f l0tab x .var 0 l0t .lbl .byte x*2&255 x .var x+1&255 .if x .goto l0t .endif l1tab x .var 0 l1t .lbl .byte x*2&255.1 x .var x+1&255 .if x .goto l1t .endif r0tab x .var 0 r0t .lbl .byte x/2&255 x .var x+1&255 .if x .goto r0t .endif r1tab x .var 0 r1t .lbl .byte x/2&255.128 x .var x+1&255 .if x .goto r1t .endif i0tab x .var 0 i0t .lbl .byte x+1&255 x .var x+1&255 .if x .goto i0t .endif i1tab x .var 0 i1t .lbl .byte x+2&255 x .var x+1&255 .if x .goto i1t .endif d0tab x .var 0 d0t .lbl .byte x-1&255 x .var x+1&255 .if x .goto d0t .endif d1tab x .var 0 d1t .lbl .byte x-2&255 x .var x+1&255 .if x .goto d1t .endif print pla sta print0+1 pla sta print0+2 ldx #1 print0 lda !*,x beq print1 jsr $ffd2 inx bne print0 print1 sec txa adc print0+1 sta print2+1 lda #0 adc print0+2 sta print2+2 print2 jmp !*
15.550515
38
0.343808
40c578048ab3091b69f156652c07101bd9aec6a1
1,809
py
Python
tutorial/shapes/text-metrics.py
sthagen/martinmcbride-generativepy
0467f2c5d91c71f797304efcb763761fbd0f9162
[ "MIT" ]
null
null
null
tutorial/shapes/text-metrics.py
sthagen/martinmcbride-generativepy
0467f2c5d91c71f797304efcb763761fbd0f9162
[ "MIT" ]
null
null
null
tutorial/shapes/text-metrics.py
sthagen/martinmcbride-generativepy
0467f2c5d91c71f797304efcb763761fbd0f9162
[ "MIT" ]
null
null
null
# Author: Martin McBride # Created: 2022-01-04 # Copyright (C) 2022, Martin McBride # License: MIT from generativepy.drawing import make_image, setup from generativepy.color import Color from generativepy.geometry import Text, Rectangle def draw(ctx, pixel_width, pixel_height, frame_no, frame_count): setup(ctx, pixel_width, pixel_width, background=Color(0.8)) x, y = 50, 100 text = Text(ctx).of("Text size", (x, y)).font("Times").size(100).fill(Color('blue')) width, height = text.get_size() Text(ctx).of('{} by {}'.format(width, height), (x+400, y))\ .font("Times").size(40).fill(Color('black')) x, y = 50, 200 text = Text(ctx).of("xyz", (x, y)).font("Times").size(100).fill(Color('blue')) width, height = text.get_size() Text(ctx).of('{} by {}'.format(width, height), (x+400, y))\ .font("Times").size(40).fill(Color('black')) x, y = 50, 300 text = Text(ctx).of("Text extents", (x, y)).font("Times").size(100).fill(Color('blue')) x_bearing, y_bearing, width, height, x_advance, y_advance = text.get_metrics() Rectangle(ctx).of_corner_size((x + x_bearing, y+y_bearing), width, height).stroke(Color('red')) x, y = 50, 400 text = Text(ctx).of("xyz", (x, y)).font("Times").size(100).fill(Color('blue')) x_bearing, y_bearing, width, height, x_advance, y_advance = text.get_metrics() Rectangle(ctx).of_corner_size((x + x_bearing, y + y_bearing), width, height).stroke(Color('red')) x, y = 300, 400 text = Text(ctx).of("'''", (x, y)).font("Times").size(100).fill(Color('blue')) x_bearing, y_bearing, width, height, x_advance, y_advance = text.get_metrics() Rectangle(ctx).of_corner_size((x + x_bearing, y + y_bearing), width, height).stroke(Color('red')) make_image("text-metrics.png", draw, 700, 500)
42.069767
101
0.648425
f15eb5c4723dddbba97c49b638b66c22f776f22f
1,892
swift
Swift
ACKit/Classes/Utilities/ACLog.swift
austinzmchen/ACKit
531e84fa7e2292801b3e7e8bdcdd2b11e46b04ed
[ "MIT" ]
1
2018-06-05T21:05:21.000Z
2018-06-05T21:05:21.000Z
ACKit/Classes/Utilities/ACLog.swift
austinzmchen/ACKit
531e84fa7e2292801b3e7e8bdcdd2b11e46b04ed
[ "MIT" ]
null
null
null
ACKit/Classes/Utilities/ACLog.swift
austinzmchen/ACKit
531e84fa7e2292801b3e7e8bdcdd2b11e46b04ed
[ "MIT" ]
1
2018-02-01T18:44:02.000Z
2018-02-01T18:44:02.000Z
// // ACLog.swift // <?>App // // Created by Austin Chen on 2017-06-19. // Copyright © 2016 10.1. All rights reserved. // import Foundation // MARK: global func public func acLog(error msg: String = "", function: String = #function, file: String = #file, line: Int = #line) { acLog(msg: msg, logLevel: .error) } public func acLog(info msg: String = "", function: String = #function, file: String = #file, line: Int = #line) { acLog(msg: msg, logLevel: .info) } public func acLog(debug msg: String = "", function: String = #function, file: String = #file, line: Int = #line) { acLog(msg: msg, logLevel: .debug) } public func acLog(msg: String = "", logLevel: ACLogLevel, function: String = #function, file: String = #file, line: Int = #line) { let f = file.components(separatedBy: "/").last ?? "" let msg = "\"\(msg)\" - (File: \(f), Function: \(function), Line: \(line))" ACLog.shared.log(msg: msg, level: logLevel) } // MARK: class open class ACLog: NSObject { public static let shared = ACLog() open var logLevel: ACLogLevel = .info public override init() { super.init() } open func log(msg: String, level: ACLogLevel) { if logLevel.rawValue >= level.rawValue { print("ACLog: \(level.name) - \(msg)") } } } public enum ACLogLevel: Int { case none = 0 case error case warning case info case debug } extension ACLogLevel { public var name: String { switch self { case .error: return "Error" case .warning: return "Warning" case .info: return "Info" case .debug: return "Debug" default: return "None" } } }
21.258427
79
0.535412
dc130b3a75d9382171a82d15f51f6a186aa95d2d
1,175
py
Python
catalyst/examples/simple_loop.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
1
2018-01-25T23:49:06.000Z
2018-01-25T23:49:06.000Z
catalyst/examples/simple_loop.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
null
null
null
catalyst/examples/simple_loop.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
null
null
null
import pandas as pd import talib from catalyst import run_algorithm from catalyst.api import symbol def initialize(context): print('initializing') context.asset = symbol('xrp_btc') def handle_data(context, data): print('handling bar: {}'.format(data.current_dt)) price = data.current(context.asset, 'close') print('got price {price}'.format(price=price)) prices = data.history( context.asset, fields='price', bar_count=15, frequency='1d' ) rsi = talib.RSI(prices.values, timeperiod=14)[-1] print('got rsi: {}'.format(rsi)) pass # run_algorithm( # capital_base=250, # start=pd.to_datetime('2015-08-01', utc=True), # end=pd.to_datetime('2017-9-30', utc=True), # data_frequency='daily', # initialize=initialize, # handle_data=handle_data, # analyze=None, # exchange_name='poloniex', # algo_namespace='simple_loop', # base_currency='eth' # ) run_algorithm( initialize=initialize, handle_data=handle_data, analyze=None, exchange_name='bitfinex', live=True, algo_namespace='simple_loop', base_currency='eth', live_graph=False )
22.596154
53
0.657872
b379e0fd2b6d006b2c75a013e3ac95171403a8a3
4,559
dart
Dart
examples/material_gallery/lib/demo/cards_demo.dart
midoringo8823/test
30ff6ba8f8a473e64742dcbbb79c424380219ed3
[ "BSD-3-Clause" ]
null
null
null
examples/material_gallery/lib/demo/cards_demo.dart
midoringo8823/test
30ff6ba8f8a473e64742dcbbb79c424380219ed3
[ "BSD-3-Clause" ]
null
null
null
examples/material_gallery/lib/demo/cards_demo.dart
midoringo8823/test
30ff6ba8f8a473e64742dcbbb79c424380219ed3
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; class TravelDestination { const TravelDestination({ this.assetName, this.title, this.description }); final String assetName; final String title; final List<String> description; bool get isValid => assetName != null && title != null && description?.length == 3; } final List<TravelDestination> destinations = <TravelDestination>[ const TravelDestination( assetName: 'packages/flutter_gallery_assets/top_10_australian_beaches.png', title: 'Top 10 Australian beaches', description: const <String>[ 'Number 10', 'Whitehaven Beach', 'Whitsunday Island, Whitsunday Islands' ] ), const TravelDestination( assetName: 'packages/flutter_gallery_assets/kangaroo_valley_safari.png', title: 'Kangaroo Valley Safari', description: const <String>[ '2031 Moss Vale Road', 'Kangaroo Valley 2577', 'New South Wales' ] ) ]; class TravelDestinationItem extends StatelessWidget { TravelDestinationItem({ Key key, this.destination }) : super(key: key) { assert(destination != null && destination.isValid); } final TravelDestination destination; @override Widget build(BuildContext context) { ThemeData theme = Theme.of(context); TextStyle titleStyle = theme.textTheme.headline.copyWith(color: Colors.white); TextStyle descriptionStyle = theme.textTheme.subhead; TextStyle buttonStyle = theme.textTheme.button.copyWith(color: theme.primaryColor); return new Card( child: new SizedBox( height: 328.0, child: new Column( children: <Widget>[ // photo and title new SizedBox( height: 184.0, child: new Stack( children: <Widget>[ new Positioned( left: 0.0, top: 0.0, bottom: 0.0, right: 0.0, child: new AssetImage( name: destination.assetName, fit: ImageFit.cover ) ), new Positioned( bottom: 16.0, left: 16.0, child: new Text(destination.title, style: titleStyle) ) ] ) ), // description and share/expore buttons new Flexible( child: new Padding( padding: const EdgeInsets.all(16.0), child: new Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ // three line description new Text(destination.description[0], style: descriptionStyle), new Text(destination.description[1], style: descriptionStyle), new Text(destination.description[2], style: descriptionStyle), // share, explore buttons new Flexible( child: new Row( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.end, children: <Widget>[ new Padding( padding: const EdgeInsets.only(right: 16.0), child: new Text('SHARE', style: buttonStyle) ), new Text('EXPLORE', style: buttonStyle) ] ) ) ] ) ) ) ] ) ) ); } } class CardsDemo extends StatelessWidget { @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( title: new Text("Travel Stream") ), body: new Block( padding: const EdgeInsets.only(top: 8.0, left: 8.0, right: 8.0), children: destinations.map((TravelDestination destination) { return new Container( margin: const EdgeInsets.only(bottom: 8.0), child: new TravelDestinationItem(destination: destination) ); }) .toList() ) ); } }
33.036232
87
0.544637