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
f477d14acd0116995a2777e94a2a505c4fb7cc3b
5,800
go
Go
pkg/apiserver/internal/v1/region_test.go
jiachengxu/kubecarrier
337ce9c28aff235e278c5d67557b20d87b3cf67f
[ "Apache-2.0" ]
277
2020-03-12T12:40:12.000Z
2022-03-03T10:01:31.000Z
pkg/apiserver/internal/v1/region_test.go
jiachengxu/kubecarrier
337ce9c28aff235e278c5d67557b20d87b3cf67f
[ "Apache-2.0" ]
341
2020-03-12T13:50:07.000Z
2022-03-31T14:23:17.000Z
pkg/apiserver/internal/v1/region_test.go
jiachengxu/kubecarrier
337ce9c28aff235e278c5d67557b20d87b3cf67f
[ "Apache-2.0" ]
16
2020-03-12T13:49:24.000Z
2022-01-27T02:48:01.000Z
/* Copyright 2020 The KubeCarrier Authors. 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 v1 import ( "context" "testing" "github.com/stretchr/testify/assert" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" fakeclient "sigs.k8s.io/controller-runtime/pkg/client/fake" catalogv1alpha1 "k8c.io/kubecarrier/pkg/apis/catalog/v1alpha1" corev1alpha1 "k8c.io/kubecarrier/pkg/apis/core/v1alpha1" v1 "k8c.io/kubecarrier/pkg/apiserver/api/v1" ) func TestListRegion(t *testing.T) { regions := &catalogv1alpha1.RegionList{ Items: []catalogv1alpha1.Region{ { ObjectMeta: metav1.ObjectMeta{ Name: "test-region-1", Namespace: "test-namespace", Labels: map[string]string{ "test-label": "region1", }, }, Spec: catalogv1alpha1.RegionSpec{ Metadata: corev1alpha1.ServiceClusterMetadata{ Description: "Test Region", DisplayName: "Test Region", }, Provider: catalogv1alpha1.ObjectReference{ Name: "test-provider", }, }, }, { ObjectMeta: metav1.ObjectMeta{ Name: "test-region-2", Namespace: "test-namespace", Labels: map[string]string{ "test-label": "region2", }, }, Spec: catalogv1alpha1.RegionSpec{ Metadata: corev1alpha1.ServiceClusterMetadata{ Description: "Test Region", DisplayName: "Test Region", }, Provider: catalogv1alpha1.ObjectReference{ Name: "test-provider", }, }, }, }, } client := fakeclient.NewFakeClientWithScheme(testScheme, regions) regionServer := regionServer{ client: client, } ctx := context.Background() tests := []struct { name string req *v1.ListRequest expectedError error expectedResult *v1.RegionList }{ { name: "valid request", req: &v1.ListRequest{ Account: "test-namespace", }, expectedError: nil, expectedResult: &v1.RegionList{ Metadata: &v1.ListMeta{ Continue: "", ResourceVersion: "", }, Items: []*v1.Region{ { Metadata: &v1.ObjectMeta{ Name: "test-region-1", Account: "test-namespace", Labels: map[string]string{ "test-label": "region1", }, }, Spec: &v1.RegionSpec{ Metadata: &v1.RegionMetadata{ Description: "Test Region", DisplayName: "Test Region", }, Provider: &v1.ObjectReference{ Name: "test-provider", }, }, }, { Metadata: &v1.ObjectMeta{ Name: "test-region-2", Account: "test-namespace", Labels: map[string]string{ "test-label": "region2", }, }, Spec: &v1.RegionSpec{ Metadata: &v1.RegionMetadata{ Description: "Test Region", DisplayName: "Test Region", }, Provider: &v1.ObjectReference{ Name: "test-provider", }, }, }, }, }, }, { name: "LabelSelector works", req: &v1.ListRequest{ Account: "test-namespace", LabelSelector: "test-label=region1", }, expectedError: nil, expectedResult: &v1.RegionList{ Metadata: &v1.ListMeta{ Continue: "", ResourceVersion: "", }, Items: []*v1.Region{ { Metadata: &v1.ObjectMeta{ Name: "test-region-1", Account: "test-namespace", Labels: map[string]string{ "test-label": "region1", }, }, Spec: &v1.RegionSpec{ Metadata: &v1.RegionMetadata{ Description: "Test Region", DisplayName: "Test Region", }, Provider: &v1.ObjectReference{ Name: "test-provider", }, }, }, }, }, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { regions, err := regionServer.List(ctx, test.req) assert.Equal(t, test.expectedError, err) assert.Equal(t, test.expectedResult, regions) }) } } func TestGetRegion(t *testing.T) { region := &catalogv1alpha1.Region{ ObjectMeta: metav1.ObjectMeta{ Name: "test-region", Namespace: "test-namespace", }, Spec: catalogv1alpha1.RegionSpec{ Metadata: corev1alpha1.ServiceClusterMetadata{ Description: "Test Region", DisplayName: "Test Region", }, Provider: catalogv1alpha1.ObjectReference{ Name: "test-provider", }, }, } client := fakeclient.NewFakeClientWithScheme(testScheme, region) regionServer := regionServer{ client: client, } ctx := context.Background() tests := []struct { name string req *v1.GetRequest expectedError error expectedResult *v1.Region }{ { name: "valid request", req: &v1.GetRequest{ Name: "test-region", Account: "test-namespace", }, expectedError: nil, expectedResult: &v1.Region{ Metadata: &v1.ObjectMeta{ Name: "test-region", Account: "test-namespace", }, Spec: &v1.RegionSpec{ Metadata: &v1.RegionMetadata{ Description: "Test Region", DisplayName: "Test Region", }, Provider: &v1.ObjectReference{ Name: "test-provider", }, }, }, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { region, err := regionServer.Get(ctx, test.req) assert.Equal(t, test.expectedError, err) assert.Equal(t, test.expectedResult, region) }) } }
24.369748
72
0.613621
404ba7de5283f0eb5a0ff28a5dcbe8d8e2a215e2
1,131
py
Python
backend/src/services/tramites-service/src/get-tramites/test/test_get_all_tramites.py
matiasvallejosdev/miregistro-serverless-app
519b7dc43550d2bf3c9e7db4d86155937a9f6f50
[ "Apache-2.0" ]
null
null
null
backend/src/services/tramites-service/src/get-tramites/test/test_get_all_tramites.py
matiasvallejosdev/miregistro-serverless-app
519b7dc43550d2bf3c9e7db4d86155937a9f6f50
[ "Apache-2.0" ]
null
null
null
backend/src/services/tramites-service/src/get-tramites/test/test_get_all_tramites.py
matiasvallejosdev/miregistro-serverless-app
519b7dc43550d2bf3c9e7db4d86155937a9f6f50
[ "Apache-2.0" ]
1
2021-10-01T23:52:40.000Z
2021-10-01T23:52:40.000Z
import pytest import json from get_all_tramites import lambda_function from lambda_handlers.response.wrapper import APIGatewayProxyResult from lambda_handlers.handlers.http_handler import CORSHeaders class TestGetTramites: @pytest.fixture def event(self): # Return JSON configuration file PATH = r"C:\Users\matia\Desktop\Matias A. Vallejos\Github\Github.Work\miregistro-serverless-app\backend\src\services\tramites-service\src\get-tramites\test\event.json" with open(PATH) as f: event = json.load(f) return json.loads(event["event_get_all"]) @pytest.fixture def context(self): return {} @pytest.fixture def headers(self): return CORSHeaders('aws-us-east-2', True) def test_lambda_function_success(self, event, context, headers: CORSHeaders): response = lambda_function(event, context) assert type(response) == str response = json.loads(response) print(json.dumps(response, indent=4)) assert response['HTTPStatus'] == 200 assert response['Headers'] == headers.buildHeaders()
35.34375
175
0.693192
5998eeb6fa4b42c5ce42492aac2bbb591fe5c698
6,113
ps1
PowerShell
Scripts/Download-PSDevApps.ps1
mwgevans115/MyScripts
3e180f092693a2c4e67593740ec1fce356f56f09
[ "MIT" ]
null
null
null
Scripts/Download-PSDevApps.ps1
mwgevans115/MyScripts
3e180f092693a2c4e67593740ec1fce356f56f09
[ "MIT" ]
null
null
null
Scripts/Download-PSDevApps.ps1
mwgevans115/MyScripts
3e180f092693a2c4e67593740ec1fce356f56f09
[ "MIT" ]
null
null
null
function Get-DownloadFolderPath { # Define known folder GUIDs $KnownFolders = @{ 'Downloads' = '374DE290-123F-4565-9164-39C4925E467B'; 'PublicDownloads' = '3D644C9B-1FB8-4f30-9B45-F670235F79C0'; } $GetSignature = @' [DllImport("shell32.dll", CharSet = CharSet.Unicode)]public extern static int SHGetKnownFolderPath( ref Guid folderId, uint flags, IntPtr token, out IntPtr pszProfilePath); '@ $GetType = Add-Type -MemberDefinition $GetSignature -Name 'GetKnownFolders' -Namespace 'SHGetKnownFolderPath' -Using "System.Text" -PassThru $ptr = [intptr]::Zero [void]$GetType::SHGetKnownFolderPath([ref]$KnownFolders['Downloads'], 0, 0, [ref]$ptr) [System.Runtime.InteropServices.Marshal]::PtrToStringUni($ptr) [System.Runtime.InteropServices.Marshal]::FreeCoTaskMem($ptr) } $Repositories = @( @{Repo = 'git-for-windows/git'; Regex = 'Git-\d*\.\d*\.\d*.\d*-64-bit\.exe' , '/VERYSILENT /NORESTART' }, @{Repo = 'microsoft/terminal'; Regex = 'Microsoft.WindowsTerminal_\d*\.\d*\.\d*.\d*_.*\.msixbundle$' }, #Add-AppxPackage Bundle @{Repo = 'PowerShell/PowerShell'; Regex = '^PowerShell-\d*\.\d*\.\d*-win-x64\.msi$' }#, #$ArgumentList=@("/i", $packagePath, "/quiet","ENABLE_PSREMOTING=1","ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1") #Start-Process msiexec -ArgumentList $ArgumentList -Wait -PassThru #@{Repo = 'Microsoft/vscode'; Regex = '.*' } , @{Repo = 'microsoft/cascadia-code'; Regex = 'CascadiaCode-\d*\.\d*\.zip' } ) <# $MSIArguments = @() if($AddExplorerContextMenu) { $MSIArguments += "ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1" } if($EnablePSRemoting) { $MSIArguments += "ENABLE_PSREMOTING=1" } ******************************************************8 if ($UseMSI -and $Quiet) { Write-Verbose "Performing quiet install" $ArgumentList=@("/i", $packagePath, "/quiet","ENABLE_PSREMOTING=1","ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1") if($MSIArguments) { $ArgumentList+=$MSIArguments } $process = Start-Process msiexec -ArgumentList $ArgumentList -Wait -PassThru #> function DownloadFile ($URI) { $fileName = ([uri]$URI).Segments | Select-Object -Last 1 $destination = Join-Path (Get-DownloadFolderPath) $fileName if (-not (Test-Path $destination)) { Invoke-WebRequest -Uri $URI -OutFile $destination -UseBasicParsing } #$fileName = $Response.BaseResponse.ResponseUri.Segments | Select-Object -Last 1 #$destination = Join-Path (Get-DownloadFolderPath) $fileName #Move-Item $temp $destination -Force return (Get-ChildItem $destination) } (Invoke-WebRequest -Method HEAD -Uri https://vscode-update.azurewebsites.net/latest/win32-x64/stable).Header <# # On Windows 'exe' { $exeArgs = '/verysilent /tasks=addtopath' if ($EnableContextMenus) { $exeArgs = '/verysilent /tasks=addcontextmenufiles,addcontextmenufolders,addtopath' } if (-not $PSCmdlet.ShouldProcess("$installerPath $exeArgs", 'Start-Process -Wait')) { break } Start-Process -Wait $installerPath -ArgumentList $exeArgs break } #> <# $FONTS = 0x14 $Path=".\fonts-to-be-installed" $objShell = New-Object -ComObject Shell.Application $objFolder = $objShell.Namespace($FONTS) $Fontdir = dir $Path foreach($File in $Fontdir) { if(!($file.name -match "pfb$")) { $try = $true $installedFonts = @(Get-ChildItem c:\windows\fonts | Where-Object {$_.PSIsContainer -eq $false} | Select-Object basename) $name = $File.baseName foreach($font in $installedFonts) { $font = $font -replace "_", "" $name = $name -replace "_", "" if($font -match $name) { $try = $false } } if($try) { $objFolder.CopyHere($File.fullname) } } } #> function DownloadFileRedirect ($URI) { ((Invoke-WebRequest -Method HEAD -Uri $URI).Headers.'Content-Disposition')[0] -match '".*"' $fileName = $Matches[0].Replace('"', '') $destination = Join-Path (Get-DownloadFolderPath) $fileName if (-not (Test-Path $destination)) { Invoke-WebRequest -Uri $URI -OutFile $destination -UseBasicParsing } #Invoke-WebRequest -Uri $URI -OutFile $destination -UseBasicParsing #$fileName = $Response.BaseResponse.ResponseUri.Segments | Select-Object -Last 1 #$destination = Join-Path (Get-DownloadFolderPath) $fileName #Move-Item $temp $destination -Force } foreach ($Repository in $Repositories) { Write-Warning -Message $Repository.Repo try { $Response = Invoke-WebRequest -Uri "https://api.github.com/repos/$($Repository.Repo)/releases/latest" $RestResponse = $Response.Content | ConvertFrom-Json } catch { $Failure = $_.Exception.Response } If ($Failure) { Write-Output "Error" } If ($Response.StatusCode -eq 200) { $asset = $RestResponse.assets | Where-Object { $_.Name -match $Repository.Regex } Write-Output $asset.name DownloadFile($asset.browser_download_url) } } DownloadFileRedirect('https://vscode-update.azurewebsites.net/latest/win32-x64/stable') #$Response.InputFields | Where-Object { # $_.name -like "* Value*" #} | Select-Object Name, Value <# foreach ($asset in (Invoke-RestMethod "https://api.github.com/repos/$($Repository.Repo)/releases/latest").assets) { sleep -Seconds 5 if ($asset.name -match $Repository.Regex){ $asset.name } elseif ($Repository.Repo.EndsWith('vscode')) { $asset.name } <# if ($asset.name.EndsWith('.zip') -or $asset.name.EndsWith('.exe') -or $asset.name.EndsWith('.msi') -or $asset.name.EndsWith('.msixbundle')){ $asset.name } else { #$asset.name } #> <# if ($asset.name -match 'Git-\d*\.\d*\.\d*.\d*-64-bit\.exe') { $dlurl = $asset.browser_download_url $newver = $asset.name } #> #} #} #>
35.958824
148
0.623589
2f8634d28b3275079d338308bb94f459d1c5b018
51,288
asm
Assembly
pce/player.asm
BlockoS/dmf-player
711be7ab53fcd829765a47e8f941f18a543b4c3b
[ "BSD-3-Clause" ]
16
2015-01-02T17:50:16.000Z
2022-03-13T02:42:13.000Z
pce/player.asm
BlockoS/dmf-player
711be7ab53fcd829765a47e8f941f18a543b4c3b
[ "BSD-3-Clause" ]
7
2015-10-19T09:09:08.000Z
2020-10-27T10:19:31.000Z
pce/player.asm
BlockoS/dmf-player
711be7ab53fcd829765a47e8f941f18a543b4c3b
[ "BSD-3-Clause" ]
1
2021-01-09T17:45:29.000Z
2021-01-09T17:45:29.000Z
; Copyright (c) 2015-2020, Vincent "MooZ" Cruz and other contributors. All rights reserved. ; Copyrights licensed under the New BSD License. ; See the accompanying LICENSE file for terms. ;;------------------------------------------------------------------------------------------ ; [todo] ; porta to note borken? ; pattern_break ; position_jump ; fine_tune ;;------------------------------------------------------------------------------------------ ;; ;; Title: DMF player. ;; DMF_HEADER_SIZE = 12 DMF_CHAN_COUNT = 6 ;;------------------------------------------------------------------------------------------ ; Song effects. Arpeggio = $00 ArpeggioSpeed = $01 PortamentoUp = $02 PortamentoDown = $03 PortamentoToNote = $04 Vibrato = $05 VibratoMode = $06 VibratoDepth = $07 PortToNoteVolSlide = $08 VibratoVolSlide = $09 Tremolo = $0a Panning = $0b SetSpeedValue1 = $0c VolumeSlide = $0d PositionJump = $0e Retrig = $0f PatternBreak = $10 ExtendedCommands = $11 SetSpeedValue2 = $12 SetWav = $13 EnableNoiseChannel = $14 SetLFOMode = $15 SetLFOSpeed = $16 EnableSampleOutput = $17 SetVolume = $18 SetInstrument = $19 Note = $1a ; Set note+octave NoteOff = $1b RestEx = $3f ; For values >= 64 Rest = $40 ; For values between 0 and 63 ;;------------------------------------------------------------------------------------------ PCM_UPDATE = %1000_0000 WAV_UPDATE = %0100_0000 PAN_UPDATE = %0010_0000 FRQ_UPDATE = %0001_0000 NOI_UPDATE = %0000_0001 ;;------------------------------------------------------------------------------------------ INST_VOL = %0000_0001 INST_ARP = %0000_0010 INST_WAV = %0000_0100 ;;------------------------------------------------------------------------------------------ FX_PRT_UP = %0000_0001 FX_PRT_DOWN = %0000_0010 FX_PRT_NOTE_UP = %0000_0100 FX_PRT_NOTE_DOWN = %0000_1000 FX_VIBRATO = %0001_0000 FX_NOTE = %1000_0000 ;;------------------------------------------------------------------------------------------ .zp mul8.lo .ds 4 mul8.hi .ds 4 dmf.zp.begin: dmf.player.si .ds 2 dmf.player.al .ds 1 dmf.player.ah .ds 1 dmf.player.bl .ds 1 dmf.player.bh .ds 1 dmf.player.cl .ds 1 dmf.player.ch .ds 1 dmf.player.dl .ds 1 dmf.player.dh .ds 1 dmf.player.r0 .ds 2 dmf.player.r1 .ds 2 dmf.player.status .ds 1 dmf.player.samples.offset .ds 2 ; PCM samples index dmf.player.ptr .ds 2 dmf.player.psg.main .ds 1 dmf.player.psg.ctrl .ds DMF_CHAN_COUNT dmf.player.psg.freq.lo .ds DMF_CHAN_COUNT dmf.player.psg.freq.hi .ds DMF_CHAN_COUNT dmf.player.psg.pan .ds DMF_CHAN_COUNT dmf.player.flag .ds 1 dmf.player.note .ds DMF_CHAN_COUNT ; [todo] move to bss? dmf.player.volume .ds DMF_CHAN_COUNT ; [todo] move to bss? dmf.player.rest .ds DMF_CHAN_COUNT ; [todo] move to bss? ; 0: backup of header mpr dmf.player.mpr_backup .ds 2 ; 1: backup of data mpr dmf.player.chn .ds 1 ; current psg channel dmf.player.chn.flag .ds DMF_CHAN_COUNT dmf.player.matrix.row .ds 1 ; current matrix row dmf.player.tick .ds 2 ; current time tick (fine/coarse kinda sort off) dmf.player.pattern.pos .ds 1 ; current pattern position dmf.player.detune .ds 1 ; global detune dmf.player.pcm.bank .ds PSG_CHAN_COUNT dmf.player.pcm.ptr .ds PSG_CHAN_COUNT*2 dmf.player.pcm.state .ds 1 dmf.player.note_on .ds 1 ; [todo] rename new_note dmf.zp.end: ;;------------------------------------------------------------------------------------------ .bss dmf.bss.begin: dmf.song.bank .ds 1 dmf.song.id .ds 1 dmf.song.infos: dmf.song.time.base .ds 1 dmf.song.time.tick .ds 2 dmf.song.pattern.rows .ds 1 dmf.song.matrix.rows .ds 1 dmf.song.instrument_count .ds 1 dmf.song.instruments .ds 2 dmf.song.wav .ds 2 dmf.song.matrix .ds 2 dmf.player.pattern.bank .ds DMF_CHAN_COUNT dmf.player.pattern.lo .ds DMF_CHAN_COUNT dmf.player.pattern.hi .ds DMF_CHAN_COUNT dmf.player.wav.id .ds DMF_CHAN_COUNT dmf.player.delay .ds DMF_CHAN_COUNT dmf.player.cut .ds DMF_CHAN_COUNT dmf.player.note.previous .ds DMF_CHAN_COUNT dmf.player.volume.orig .ds DMF_CHAN_COUNT dmf.player.volume.offset .ds DMF_CHAN_COUNT dmf.player.volume.delta .ds DMF_CHAN_COUNT dmf.player.freq.delta.lo .ds DMF_CHAN_COUNT dmf.player.freq.delta.hi .ds DMF_CHAN_COUNT dmf.instrument.flag .ds PSG_CHAN_COUNT dmf.instrument.flag.orig .ds PSG_CHAN_COUNT dmf.instrument.vol.size .ds PSG_CHAN_COUNT dmf.instrument.vol.loop .ds PSG_CHAN_COUNT dmf.instrument.vol.lo .ds PSG_CHAN_COUNT dmf.instrument.vol.hi .ds PSG_CHAN_COUNT dmf.instrument.vol.index .ds PSG_CHAN_COUNT dmf.instrument.arp.size .ds PSG_CHAN_COUNT dmf.instrument.arp.loop .ds PSG_CHAN_COUNT dmf.instrument.arp.lo .ds PSG_CHAN_COUNT dmf.instrument.arp.hi .ds PSG_CHAN_COUNT dmf.instrument.arp.index .ds PSG_CHAN_COUNT dmf.instrument.wav.size .ds PSG_CHAN_COUNT dmf.instrument.wav.loop .ds PSG_CHAN_COUNT dmf.instrument.wav.lo .ds PSG_CHAN_COUNT dmf.instrument.wav.hi .ds PSG_CHAN_COUNT dmf.instrument.wav.index .ds PSG_CHAN_COUNT dmf.fx.flag .ds PSG_CHAN_COUNT dmf.fx.arp.data .ds PSG_CHAN_COUNT dmf.fx.arp.current .ds PSG_CHAN_COUNT dmf.fx.arp.tick .ds PSG_CHAN_COUNT dmf.fx.arp.speed .ds PSG_CHAN_COUNT dmf.fx.vib.data .ds PSG_CHAN_COUNT dmf.fx.vib.tick .ds PSG_CHAN_COUNT dmf.fx.prt.speed .ds PSG_CHAN_COUNT ; portamento speed dmf.pcm.bank .ds PSG_CHAN_COUNT dmf.pcm.src.bank .ds PSG_CHAN_COUNT dmf.pcm.src.ptr .ds PSG_CHAN_COUNT*2 dmf.bss.end: ;;------------------------------------------------------------------------------------------ .code ; Align to 256 .org (* + $ff) & $ff00 .include "mul.inc" .include "sin.inc" ;; ;; Function: dmf_init ;; Initializes player internals. ;; dmf_init: lda #high(sqr0.lo) sta <mul8.lo+1 lda #high(sqr1.lo) sta <mul8.lo+3 lda #high(sqr0.hi) sta <mul8.hi+1 lda #high(sqr1.hi) sta <mul8.hi+3 rts ;; ;; Function: mul8 ;; 8 bits unsigned multiplication 16 bits result. ;; ;; Parameters: ;; A - first operand ;; Y - second operand ;; ;; Return: ;; A - result MSB ;; X - result LSB ;; mul8: sta <mul8.lo sta <mul8.hi eor #$ff sta <mul8.lo+2 sta <mul8.hi+2 sec lda [mul8.lo ], Y sbc [mul8.lo+2], Y tax lda [mul8.hi ], Y sbc [mul8.hi+2], Y rts ;; dmf_update: bbr7 <dmf.player.status, @go rts @go: tma #DMF_HEADER_MPR pha tma #DMF_MATRIX_MPR pha tma #DMF_DATA_MPR pha lda dmf.song.bank tam #DMF_HEADER_MPR inc A tam #DMF_MATRIX_MPR sei clx stx psg_chn ; update PSG control register lda <dmf.player.psg.ctrl+0 sta psg_ctrl ldx #$01 stx psg_chn lda <dmf.player.psg.ctrl+1 sta psg_ctrl ldx #$02 stx psg_chn lda <dmf.player.psg.ctrl+2 sta psg_ctrl ldx #$03 stx psg_chn lda <dmf.player.psg.ctrl+3 sta psg_ctrl ldx #$04 stx psg_chn lda <dmf.player.psg.ctrl+4 sta psg_ctrl ldx #$05 stx psg_chn lda <dmf.player.psg.ctrl+5 sta psg_ctrl cli .macro dmf.update_psg @ch\1: bbr7 <dmf.player.chn.flag+\1, @wav\1 bbr\1 <dmf.player.note_on, @pcm\1 lda dmf.pcm.src.ptr+(2*\1) sta <dmf.player.pcm.ptr+(2*\1) lda dmf.pcm.src.ptr+(1+2*\1) sta <dmf.player.pcm.ptr+(1+2*\1) lda dmf.pcm.src.bank+\1 sta <dmf.player.pcm.bank+\1 rmb\1 <dmf.player.note_on @pcm\1: smb\1 <dmf.player.pcm.state @wav\1: bbr6 <dmf.player.chn.flag+\1, @pan\1 lda dmf.player.wav.id+\1 jsr dmf_wav_upload.ex lda <dmf.player.psg.ctrl+\1 sta psg_ctrl rmb6 <dmf.player.chn.flag+\1 @pan\1: bbr5 <dmf.player.chn.flag+\1, @freq\1 lda <dmf.player.psg.pan+\1 sta psg_pan rmb5 <dmf.player.chn.flag+\1 @freq\1: bbr4 <dmf.player.chn.flag+\1, @next\1 .if \1 > 3 bbr0 <dmf.player.chn.flag+\1, @no_noise\1 lda <dmf.player.psg.freq.lo+\1 sta psg_noise bra @freq.end\1 @no_noise\1: stz psg_noise .endif lda <dmf.player.psg.freq.lo+\1 sta psg_freq_lo lda <dmf.player.psg.freq.hi+\1 sta psg_freq_hi @freq.end\1: rmb4 <dmf.player.chn.flag+\1 @next\1: .endm stz timer_ctrl clx stx <dmf.player.chn stx psg_chn dmf.update_psg 0 ldx #$01 stx <dmf.player.chn stx psg_chn dmf.update_psg 1 ldx #$02 stx <dmf.player.chn stx psg_chn dmf.update_psg 2 ldx #$03 stx <dmf.player.chn stx psg_chn dmf.update_psg 3 ldx #$04 stx <dmf.player.chn stx psg_chn dmf.update_psg 4 ldx #$05 stx <dmf.player.chn stx psg_chn dmf.update_psg 5 lda #1 sta timer_ctrl stz irq_status jsr update_song clx jsr update_state ldx #$01 jsr update_state ldx #$02 jsr update_state ldx #$03 jsr update_state ldx #$04 jsr update_state ldx #$05 jsr update_state pla tam #DMF_DATA_MPR pla tam #DMF_MATRIX_MPR pla tam #DMF_HEADER_MPR rts dmf_wav_upload.ex: tay lda song.wv.lo, Y sta <dmf.player.si lda song.wv.hi, Y sta <dmf.player.si+1 ;; ;; Function: dmf_wav_upload ;; ;; Parameters: ;; ;; Return: ;; dmf_wav_upload: lda #$01 sta psg_ctrl stz psg_ctrl cly @l0: ; [todo] unroll? lda [dmf.player.si], Y iny sta psg_wavebuf cpy #$20 bne @l0 lda #$02 sta psg_ctrl rts ;; ;; Function: dmf_stop_song ;; Stop song. ;; ;; Parameters: ;; ;; Return: ;; dmf_stop_song: ; stop timer ; lda #(INT_IRQ2 | INT_TIMER | INT_NMI) ; sta irq_disable stz timer_ctrl ; set dmf play disable flag smb7 <dmf.player.status ; set main volume to 0 stz psg_mainvol rts ;; ;; Function: dmf_resume_song ;; Resume song. ;; ;; Parameters: ;; ;; Return: ;; dmf_resume_song: ; restart timer lda #$01 sta timer_ctrl ; reset disable flag rmb7 <dmf.player.status ; set main volume to max lda #$ff sta psg_mainvol rts ;; ;; Function: dmf_load_song ;; Initialize player and load song. ;; ;; Parameters: ;; Y - Song index. ;; ;; Return: ;; dmf_load_song: jsr dmf_stop_song lda #%1000_0010 trb <dmf.player.status ; reset PSG clx @psg_reset: stx psg_chn lda #$ff sta psg_mainvol sta psg_pan stz psg_freq_lo stz psg_freq_hi lda #%01_0_00000 sta psg_ctrl lda #%10_0_00000 sta psg_ctrl stz psg_noise inx cpx #PSG_CHAN_COUNT bne @psg_reset tma #DMF_HEADER_MPR pha tma #DMF_MATRIX_MPR pha tma #DMF_DATA_MPR pha lda #bank(songs) sta dmf.song.bank tam #DMF_HEADER_MPR inc A tam #DMF_MATRIX_MPR lda #low(songs) sta <dmf.player.si lda #high(songs) and #$1f ora #DMF_HEADER_MPR<<5 sta <dmf.player.si+1 bsr @load_song pla tam #DMF_DATA_MPR pla tam #DMF_MATRIX_MPR pla tam #DMF_HEADER_MPR rts ;; ;; Function: @load_song ;; Initialize player and load song. ;; The song data rom is assumed to have already been mapped. ;; ;; Parameters: ;; Y - Song index ;; player.si - Pointer to songs infos ;; ;; Return: ;; @load_song: sty dmf.song.id lda song.time_base, Y sta dmf.song.time.base lda song.time_tick_0, Y sta dmf.song.time.tick lda song.time_tick_1, Y sta dmf.song.time.tick+1 lda song.pattern_rows, Y sta dmf.song.pattern.rows lda song.matrix_rows, Y sta dmf.song.matrix.rows lda song.instrument_count, Y sta dmf.song.instrument_count lda song.mat.lo, Y sta dmf.song.matrix lda song.mat.hi, Y sta dmf.song.matrix+1 lda song.wv.lo, Y sta dmf.song.wav lda song.wv.hi, Y sta dmf.song.wav+1 lda song.it.lo, Y sta dmf.song.instruments lda song.it.hi, Y sta dmf.song.instruments+1 lda song.sp.lo, Y sta <dmf.player.samples.offset lda song.sp.hi, Y sta <dmf.player.samples.offset+1 ; initializes player dmf_reset: stz <dmf.player.ptr tii dmf.player.ptr, dmf.player.ptr+1, dmf.zp.end-dmf.player.ptr-1 tai dmf.player.ptr, dmf.player.pattern.bank, dmf.bss.end-dmf.player.pattern.bank ; [todo] cut it if it takes too long lda #$ff sta <dmf.player.psg.main sta <dmf.player.psg.pan sta <dmf.player.psg.pan+1 sta <dmf.player.psg.pan+2 sta <dmf.player.psg.pan+3 sta <dmf.player.psg.pan+4 sta <dmf.player.psg.pan+5 lda #$7c sta <dmf.player.volume sta <dmf.player.volume+1 sta <dmf.player.volume+2 sta <dmf.player.volume+3 sta <dmf.player.volume+4 sta <dmf.player.volume+5 sta dmf.player.volume.orig sta dmf.player.volume.orig+1 sta dmf.player.volume.orig+2 sta dmf.player.volume.orig+3 sta dmf.player.volume.orig+4 sta dmf.player.volume.orig+5 lda #1 sta dmf.fx.arp.speed sta dmf.fx.arp.speed+1 sta dmf.fx.arp.speed+2 sta dmf.fx.arp.speed+3 sta dmf.fx.arp.speed+4 sta dmf.fx.arp.speed+5 sta dmf.fx.arp.tick sta dmf.fx.arp.tick+1 sta dmf.fx.arp.tick+2 sta dmf.fx.arp.tick+3 sta dmf.fx.arp.tick+4 sta dmf.fx.arp.tick+5 ldy dmf.song.id lda song.wv.first, Y tay lda song.wv.lo, Y sta <dmf.player.si lda song.wv.hi, Y sta <dmf.player.si+1 ; preload wav buffers clx stx psg_chn jsr dmf_wav_upload inx stx psg_chn jsr dmf_wav_upload inx stx psg_chn jsr dmf_wav_upload inx stx psg_chn jsr dmf_wav_upload inx stx psg_chn jsr dmf_wav_upload inx stx psg_chn jsr dmf_wav_upload stz dmf.player.matrix.row ;; Function: dmf_update_matrix ;; ;; Parameters: ;; ;; Return: ;; dmf_update_matrix: lda <dmf.player.matrix.row cmp dmf.song.matrix.rows bcc @l0 bbs0 <dmf.player.status, @loop smb1 <dmf.player.status jmp dmf_stop_song @loop: jmp dmf_reset @l0: lda dmf.song.matrix sta <dmf.player.si lda dmf.song.matrix+1 sta <dmf.player.si+1 stz <dmf.player.pattern.pos ldy <dmf.player.matrix.row clx @set_pattern_ptr: lda [dmf.player.si], Y sta dmf.player.pattern.bank, X ; pattern ROM bank clc lda <dmf.player.si adc dmf.song.matrix.rows sta <dmf.player.si lda <dmf.player.si+1 adc #$00 sta <dmf.player.si+1 lda [dmf.player.si], Y sta dmf.player.pattern.lo, X ; pattern ROM offset (LSB) clc lda <dmf.player.si adc dmf.song.matrix.rows sta <dmf.player.si lda <dmf.player.si+1 adc #$00 sta <dmf.player.si+1 lda [dmf.player.si], Y sta dmf.player.pattern.hi, X ; pattern ROM offset (MSB) lda <dmf.player.si clc adc dmf.song.matrix.rows sta <dmf.player.si lda <dmf.player.si+1 adc #$00 sta <dmf.player.si+1 stz <dmf.player.rest, X inx cpx #DMF_CHAN_COUNT bne @set_pattern_ptr lda #1 sta <dmf.player.tick sta <dmf.player.tick+1 inc <dmf.player.matrix.row rts update_state: ; [todo] find a better name stx <dmf.player.chn lda dmf.player.cut, X beq @delay cmp #$80 bne @cut stz dmf.player.cut, X jsr dmf.note_off bra @delay @cut: dec dmf.player.cut, X @delay: lda dmf.player.delay, X beq @run dec dmf.player.delay, X rts @run: lda <dmf.player.chn.flag, X sta <dmf.player.al ; -- instrument wav lda <dmf.player.chn.flag, X bit #NOI_UPDATE bne @no_wav lda dmf.instrument.flag, X bit #INST_WAV beq @no_wav ldy dmf.instrument.wav.index, X lda dmf.instrument.wav.lo, X sta <dmf.player.si lda dmf.instrument.wav.hi, X sta <dmf.player.si+1 lda [dmf.player.si], Y cmp dmf.player.wav.id, X beq @load_wav.skip sta dmf.player.wav.id, X smb6 <dmf.player.al @load_wav.skip: inc dmf.instrument.wav.index, X lda dmf.instrument.wav.index, X cmp dmf.instrument.wav.size, X bcc @no_wav lda dmf.instrument.wav.loop, X cmp #$ff bne @wav.reset lda dmf.instrument.flag, X and #~INST_WAV sta dmf.instrument.flag, X cla @wav.reset: sta dmf.instrument.wav.index, X @no_wav: ; -- global detune fx lda dmf.player.note, X clc adc <dmf.player.detune sta <dmf.player.cl ; -- instrument arpeggio lda dmf.instrument.flag, X bit #INST_ARP beq @no_arp bit #%1000_0000 ; [todo] what is it for ? beq @std.arp @fixed.arp: ldy dmf.instrument.arp.index, X ; [todo] We'll find a clever implementation later. lda dmf.instrument.arp.lo, X sta <dmf.player.si lda dmf.instrument.arp.hi, X sta <dmf.player.si+1 lda [dmf.player.si], Y bra @arp.store @std.arp: ldy dmf.instrument.arp.index, X lda dmf.instrument.arp.lo, X sta <dmf.player.si lda dmf.instrument.arp.hi, X sta <dmf.player.si+1 lda [dmf.player.si], Y sec sbc #$0c ; add an octacve clc adc <dmf.player.cl @arp.store: sta <dmf.player.cl inc dmf.instrument.arp.index, X lda dmf.instrument.arp.index, X cmp dmf.instrument.arp.size, X bcc @no_arp.reset lda dmf.instrument.arp.loop, X cmp #$ff bne @arp.reset lda dmf.instrument.flag, X and #~INST_ARP sta dmf.instrument.flag, X cla @arp.reset: sta dmf.instrument.arp.index, X @no_arp.reset: smb4 <dmf.player.al ; we'll need to update frequency @no_arp: ; -- effect arpeggio ldy dmf.fx.arp.data, X beq @no_arpeggio dec dmf.fx.arp.tick, X bne @no_arpeggio lda dmf.fx.arp.speed, X sta dmf.fx.arp.tick, X tya smb4 <dmf.player.al ; we'll need to update frequency ldy dmf.fx.arp.current, X beq @arpeggio.0 cpy #1 beq @arpeggio.1 @arpeggio.2: ldy #$ff lsr A lsr A lsr A lsr A @arpeggio.1: and #$0f clc adc <dmf.player.cl sta <dmf.player.cl @arpeggio.0: iny tya sta dmf.fx.arp.current, X @no_arpeggio: ; As the PSG control register is updated every frame, we can ; "waste" some cycle rebuilding it every time. lda dmf.player.volume, X clc adc dmf.player.volume.offset, X bpl @vol.plus cla bra @set_volume @vol.plus: cmp #$7c bcc @set_volume lda #$7c @set_volume: sta <dmf.player.ch ; -- instrument volume lda dmf.instrument.flag, X bit #INST_VOL beq @no_volume ldy dmf.instrument.vol.index, X ; fetch envelope value lda dmf.instrument.vol.lo, X sta <dmf.player.si lda dmf.instrument.vol.hi, X sta <dmf.player.si+1 lda [dmf.player.si], Y inc A ldy dmf.player.volume.orig, X ; compute envelope * volume phx jsr mul8 asl A sta <dmf.player.ch plx sta dmf.player.volume, X inc dmf.instrument.vol.index, X ; increment index lda dmf.instrument.vol.index, X cmp dmf.instrument.vol.size, X bcc @no_volume lda dmf.instrument.vol.loop, X cmp #$ff bne @volume.reset ; and reset it to its loop position if needed lda dmf.instrument.flag, X and #~INST_VOL sta dmf.instrument.flag, X cla @volume.reset: sta dmf.instrument.vol.index, X @no_volume: ; -- fx volume slide lda dmf.player.volume.delta, X beq @no_volume_slide clc adc dmf.player.volume.offset, X sta dmf.player.volume.offset, X @no_volume_slide: ; -- fx portamento lda dmf.fx.flag, X sta <dmf.player.ah bit #(FX_PRT_DOWN | FX_PRT_UP | FX_PRT_NOTE_UP | FX_PRT_NOTE_DOWN) beq @no_portamento smb4 <dmf.player.al ; we'll need to update frequency bbr0 <dmf.player.ah, @portamento.1 sec ; portamento up lda dmf.player.freq.delta.lo, X sbc dmf.fx.prt.speed, X sta dmf.player.freq.delta.lo, X lda dmf.player.freq.delta.hi, X sbc #$00 sta dmf.player.freq.delta.hi, X bra @no_portamento @portamento.1: bbr1 <dmf.player.ah, @portamento.2 clc ; portamento down lda dmf.player.freq.delta.lo, X adc dmf.fx.prt.speed, X sta dmf.player.freq.delta.lo, X lda dmf.player.freq.delta.hi, X adc #$00 sta dmf.player.freq.delta.hi, X bra @no_portamento @portamento.2: bbr2 <dmf.player.ah, @portamento.3 sec ; portamento to note (up) lda dmf.player.freq.delta.lo, X sbc dmf.fx.prt.speed, X sta dmf.player.freq.delta.lo, X lda dmf.player.freq.delta.hi, X sbc #$00 sta dmf.player.freq.delta.hi, X bpl @no_portamento stz dmf.player.freq.delta.lo, X stz dmf.player.freq.delta.hi, X rmb2 <dmf.player.ah bra @no_portamento @portamento.3: clc ; portamento to note (down) lda dmf.player.freq.delta.lo, X adc dmf.fx.prt.speed, X sta dmf.player.freq.delta.lo, X lda dmf.player.freq.delta.hi, X adc #$00 sta dmf.player.freq.delta.hi, X bmi @no_portamento stz dmf.player.freq.delta.lo, X stz dmf.player.freq.delta.hi, X rmb3 <dmf.player.ah @no_portamento: lda <dmf.player.ah sta dmf.fx.flag, X lda dmf.player.freq.delta.lo, X sta <dmf.player.dl lda dmf.player.freq.delta.hi, X sta <dmf.player.dh ; -- vibrato bbr4 <dmf.player.ah, @no_vibrato jsr dmf.update_vibrato @no_vibrato: ; rebuild PSG control register lda <dmf.player.psg.ctrl, X and #%11_0_00000 sta <dmf.player.psg.ctrl, X lda <dmf.player.ch beq @skip lsr A lsr A @skip: ora <dmf.player.psg.ctrl, X sta <dmf.player.psg.ctrl, X bbr4 <dmf.player.al, @no_freq_update bbs0 <dmf.player.al, @noise_update ldy <dmf.player.cl lda freq_table.lo, Y clc adc <dmf.player.dl sta <dmf.player.psg.freq.lo, X lda freq_table.hi, Y adc <dmf.player.dh sta <dmf.player.psg.freq.hi, X bne @freq.check.lo @freq.check.hi: lda <dmf.player.psg.freq.lo, X cmp #$16 bcs @no_freq_update lda #$16 sta <dmf.player.psg.freq.lo, X bra @freq.delta.reset @freq.check.lo: cmp #$0c bcc @no_freq_update lda #$0c sta <dmf.player.psg.freq.hi, X lda #$ba sta <dmf.player.psg.freq.lo, X @freq.delta.reset: sec sbc freq_table.lo, Y sta dmf.player.freq.delta.lo, X lda <dmf.player.psg.freq.hi, X sbc freq_table.hi, Y sta dmf.player.freq.delta.hi, X bra @no_freq_update @noise_update: ldy <dmf.player.cl lda noise_table, Y sta <dmf.player.psg.freq.lo, X @no_freq_update: lda <dmf.player.al sta <dmf.player.chn.flag, X lda dmf.fx.flag, X and #~FX_NOTE sta dmf.fx.flag, X rts ;;------------------------------------------------------------------------------------------ dmf.update_vibrato: smb4 <dmf.player.al lda dmf.fx.vib.data, X and #$0f pha lda dmf.fx.vib.tick, X asl A asl A tay lda sin_table, Y sec sbc #$10 sta <dmf.player.r1+1 bpl @plus @neg: eor #$ff inc A pha ldy <dmf.player.cl lda freq_table.lo-1, Y sec sbc freq_table.lo, Y sta <dmf.player.r0 lda freq_table.hi-1, Y sbc freq_table.hi, Y sta <dmf.player.r0+1 bra @go @plus: pha ldy <dmf.player.cl lda freq_table.lo, Y sec sbc freq_table.lo+1, Y sta <dmf.player.r0 lda freq_table.hi, Y sbc freq_table.hi+1, Y sta <dmf.player.r0+1 @go: pla sta <mul8.lo eor #$ff sta <mul8.lo+2 ply sec lda [mul8.lo ], Y sbc [mul8.lo+2], Y sta <mul8.lo sta <mul8.hi eor #$ff sta <mul8.lo+2 sta <mul8.hi+2 ldy <dmf.player.r0 sec ; lda [mul8.lo ], Y ; sbc [mul8.lo+2], Y ; [todo] keep it? ; tax lda [mul8.hi ], Y sbc [mul8.hi+2], Y sta <dmf.player.r0 ldy <dmf.player.r0+1 sec lda [mul8.lo ], Y sbc [mul8.lo+2], Y tax lda [mul8.hi ], Y sbc [mul8.hi+2], Y sax clc adc <dmf.player.r0 sta <dmf.player.r0 sax adc #0 sta <dmf.player.r0+1 ldy <dmf.player.r1+1 bpl @l0 @sub: eor #$ff sax eor #$ff sax inx bne @l0 inc A @l0: clc sax ldy <dmf.player.chn clc adc <dmf.player.dl sta <dmf.player.dl sax adc <dmf.player.dh sta <dmf.player.dh lda dmf.fx.vib.data, Y lsr A lsr A lsr A lsr A clc adc dmf.fx.vib.tick, Y sta dmf.fx.vib.tick, Y sxy rts ;; ;; Function: update_song ;; ;; Parameters: ;; ;; Return: ;; update_song: stz <dmf.player.flag dec <dmf.player.tick beq @l0 bmi @l0 ; Nothing to do here. ; Just go on and update player state. rts @l0: ; Reset base tick. lda dmf.song.time.base sta <dmf.player.tick dec <dmf.player.tick+1 beq @l1 bmi @l1 ; Nothing to do here. rts @l1: ; Fetch next pattern entry. inc <dmf.player.pattern.pos ; 1. reset coarse timer tick. lda <dmf.player.pattern.pos and #$01 tax lda dmf.song.time.tick, X sta <dmf.player.tick+1 clx @loop: stx <dmf.player.chn bsr update_chan ; [todo] name bcc @l2 smb0 <dmf.player.flag @l2: inx cpx #DMF_CHAN_COUNT bne @loop bbs0 <dmf.player.flag, @l3 rts @l3: jsr dmf_update_matrix jmp update_song ;; ;; Function: update_chan ;; ;; Parameters: ;; ;; Return: ;; update_chan: ; [todo] name ldx <dmf.player.chn lda <dmf.player.rest, X bne @dec_rest lda dmf.player.pattern.bank, X tam #DMF_DATA_MPR lda dmf.player.pattern.lo, X sta <dmf.player.ptr lda dmf.player.pattern.hi, X sta <dmf.player.ptr+1 bsr fetch_pattern ; [todo] name bcc @continue rts @continue: ldx <dmf.player.chn lda <dmf.player.ptr sta dmf.player.pattern.lo, X lda <dmf.player.ptr+1 sta dmf.player.pattern.hi, X rts @dec_rest: dec <dmf.player.rest, X @end: clc rts ;; ;; Function: fetch_pattern ;; ;; Parameters: ;; ;; Return: ;; fetch_pattern: ; [todo] name cly @loop: lda [dmf.player.ptr], Y iny cmp #$ff ; [todo] magic value bne @check_rest sec rts @check_rest: pha and #$7f ; [todo] magic value cmp #$3f ; [todo] magic value bcc @fetch beq @rest_ex @rest_std: and #$3f ; [todo] magic value bra @rest_store @rest_ex: lda [dmf.player.ptr], Y iny @rest_store: ldx <dmf.player.chn dec a sta <dmf.player.rest, X pla bra @inc_ptr @fetch asl A tax bsr @fetch_pattern_data pla bpl @loop @inc_ptr: tya clc adc <dmf.player.ptr sta <dmf.player.ptr cla adc <dmf.player.ptr+1 sta <dmf.player.ptr+1 clc rts @fetch_pattern_data: jmp [@pattern_data_func, X] ;;------------------------------------------------------------------------------------------ @pattern_data_func: .dw dmf.arpeggio .dw dmf.arpeggio_speed .dw dmf.portamento_up .dw dmf.portamento_down .dw dmf.portamento_to_note .dw dmf.vibrato .dw dmf.vibrato_mode .dw dmf.vibrato_depth .dw dmf.port_to_note_vol_slide .dw dmf.vibrato_vol_slide .dw dmf.tremolo .dw dmf.panning .dw dmf.set_speed_value1 .dw dmf.volume_slide .dw dmf.position_jump .dw dmf.retrig .dw dmf.pattern_break .dw dmf.set_speed_value2 .dw dmf.set_wav .dw dmf.enable_noise_channel .dw dmf.set_LFO_mode .dw dmf.set_LFO_speed .dw dmf.note_slide_up .dw dmf.note_slide_down .dw dmf.note_cut .dw dmf.note_delay .dw dmf.sync_signal .dw dmf.fine_tune .dw dmf.global_fine_tune .dw dmf.set_sample_bank .dw dmf.set_volume .dw dmf.set_instrument .dw dmf.note_on .dw dmf.note_off .dw dmf.set_samples ; [todo] ; dmf.vibrato_mode ; dmf.vibrato_depth ; dmf.port_to_note_vol_slide ; dmf.vibrato_vol_slide ; dmf.tremolo ; dmf.set_speed_value1 ; dmf.retrig ; dmf.set_speed_value2 ; dmf.set_LFO_mode ; dmf.set_LFO_speed ; dmf.note_slide_up ; dmf.note_slide_down ; dmf.sync_signal ;;------------------------------------------------------------------------------------------ ;dmf.arpeggio: ;dmf.arpeggio_speed: ;dmf.portamento_up: ;dmf.portamento_down: ;dmf.portamento_to_note: ;dmf.vibrato: dmf.vibrato_mode: dmf.vibrato_depth: dmf.port_to_note_vol_slide: dmf.vibrato_vol_slide: dmf.tremolo: dmf.set_speed_value1: ;dmf.volume_slide: dmf.position_jump: dmf.retrig: dmf.pattern_break: dmf.set_speed_value2: ;dmf.set_wav: ;dmf.enable_noise_channel: dmf.set_LFO_mode: dmf.set_LFO_speed: dmf.note_slide_up: dmf.note_slide_down: ;dmf.note_cut: ;dmf.note_delay: dmf.sync_signal: dmf.fine_tune: ;dmf.global_fine_tune: ;dmf.set_sample_bank: ;dmf.set_volume: ;dmf.set_instrument: ;dmf.note_on: ;dmf.set_samples: lda [dmf.player.ptr], Y iny rts ;;------------------------------------------------------------------------------------------ dmf.set_volume: ldx <dmf.player.chn lda [dmf.player.ptr], Y iny sta dmf.player.volume, X sta dmf.player.volume.orig, X stz dmf.player.volume.offset, X rts ;;------------------------------------------------------------------------------------------ dmf.global_fine_tune: ldx <dmf.player.chn lda [dmf.player.ptr], Y iny clc adc <dmf.player.detune sta <dmf.player.detune lda dmf.player.chn.flag, X ora #FRQ_UPDATE sta dmf.player.chn.flag, X rts ;;------------------------------------------------------------------------------------------ dmf.note_cut: lda <dmf.player.pattern.pos and #$01 tax lda [dmf.player.ptr], Y iny cmp dmf.song.time.tick, X bcs @note_cut.reset @note_cut.set: ldx <dmf.player.chn ora #$80 sta dmf.player.cut, X rts @note_cut.reset: ldx <dmf.player.chn stz dmf.player.cut, X rts ;;------------------------------------------------------------------------------------------ dmf.note_delay: lda <dmf.player.pattern.pos and #$01 tax lda [dmf.player.ptr], Y iny cmp dmf.song.time.tick, X bcs @note_delay.reset @note_delay.set: ldx <dmf.player.chn sta dmf.player.delay, X rts @note_delay.reset: ldx <dmf.player.chn stz dmf.player.delay, X rts ;;------------------------------------------------------------------------------------------ dmf.note_off: ldx <dmf.player.chn stz dmf.fx.flag, X stz dmf.fx.arp.data, X stz dmf.fx.vib.data, X stz dmf.instrument.flag, X stz dmf.player.freq.delta.lo, X stz dmf.player.freq.delta.hi, X lda dmf.player.chn.flag, X and #NOI_UPDATE sta dmf.player.chn.flag, X lda dmf.bit, X trb <dmf.player.note_on lda <dmf.player.psg.ctrl, X and #%00_0_11111 sta <dmf.player.psg.ctrl, X rts dmf.bit: .db %0000_0001 .db %0000_0010 .db %0000_0100 .db %0000_1000 .db %0001_0000 .db %0010_0000 .db %0100_0000 .db %1000_0000 ;;------------------------------------------------------------------------------------------ dmf.note_on: ldx <dmf.player.chn lda dmf.player.note, X sta dmf.player.note.previous, X lda dmf.bit, X tsb <dmf.player.note_on lda [dmf.player.ptr], Y sta dmf.player.note, X iny lda <dmf.player.chn.flag, X bmi @pcm_reset lda <dmf.player.chn.flag, X ora #FRQ_UPDATE sta <dmf.player.chn.flag, X lda dmf.fx.flag, X ora #FX_NOTE sta dmf.fx.flag, X bit #(FX_PRT_NOTE_UP | FX_PRT_NOTE_DOWN) bne @end stz dmf.player.freq.delta.lo, X stz dmf.player.freq.delta.hi, X @end: stz dmf.instrument.vol.index, X stz dmf.instrument.arp.index, X stz dmf.instrument.wav.index, X lda <dmf.player.psg.ctrl, X and #%00_0_11111 ora #%10_0_00000 sta <dmf.player.psg.ctrl, X lda dmf.instrument.flag.orig, X sta dmf.instrument.flag, X rts @pcm_reset: ; [todo] hackish stz dmf.instrument.vol.index, X lda #(PSG_CTRL_DDA_ON | PSG_CTRL_FULL_VOLUME) sta <dmf.player.psg.ctrl, X dey jmp dmf.set_samples.ex ;;------------------------------------------------------------------------------------------ dmf.set_wav: ldx <dmf.player.chn lda [dmf.player.ptr], Y iny cmp dmf.player.wav.id, X beq @skip sta dmf.player.wav.id, X lda <dmf.player.chn.flag, X ora #WAV_UPDATE sta <dmf.player.chn.flag, X rts @skip: lda <dmf.player.chn.flag, X and #~WAV_UPDATE sta <dmf.player.chn.flag, X rts ;;------------------------------------------------------------------------------------------ dmf.enable_noise_channel: ldx <dmf.player.chn lda [dmf.player.ptr], Y beq @disable_noise_channel lda <dmf.player.chn.flag, X ora #(FRQ_UPDATE | NOI_UPDATE) sta <dmf.player.chn.flag, X iny rts @disable_noise_channel: lda <dmf.player.chn.flag, X and #~NOI_UPDATE ora #FRQ_UPDATE sta <dmf.player.chn.flag, X iny rts ;;------------------------------------------------------------------------------------------ dmf.set_instrument: ldx <dmf.player.chn lda [dmf.player.ptr], Y iny clc adc dmf.song.instruments sta <dmf.player.si cla adc dmf.song.instruments+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.vol.size, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.vol.loop, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.vol.lo, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.vol.hi, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.arp.size, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.arp.loop, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.arp.lo, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.arp.hi, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.wav.size, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.wav.loop, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.wav.lo, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] sta dmf.instrument.wav.hi, X lda <dmf.player.si clc adc dmf.song.instrument_count sta <dmf.player.si cla adc <dmf.player.si+1 sta <dmf.player.si+1 lda [dmf.player.si] stz dmf.instrument.vol.index, X stz dmf.instrument.arp.index, X stz dmf.instrument.wav.index, X phy ldy dmf.instrument.vol.size, X beq @no_vol ora #INST_VOL @no_vol: ldy dmf.instrument.arp.size, X beq @no_arp ora #INST_ARP @no_arp: ldy dmf.instrument.wav.size, X beq @no_wav ora #INST_WAV @no_wav: sta dmf.instrument.flag, X sta dmf.instrument.flag.orig, X ply rts ;;------------------------------------------------------------------------------------------ dmf.arpeggio_speed: ldx <dmf.player.chn lda [dmf.player.ptr], Y iny sta dmf.fx.arp.speed, X rts ;;------------------------------------------------------------------------------------------ dmf.arpeggio: ldx <dmf.player.chn lda [dmf.player.ptr], Y iny sta dmf.fx.arp.data, X lda dmf.fx.arp.speed, X sta dmf.fx.arp.tick, X stz dmf.fx.arp.current, X rts ;;------------------------------------------------------------------------------------------ dmf.volume_slide: ldx <dmf.player.chn lda [dmf.player.ptr], Y sta dmf.player.volume.delta, X iny rts ;;------------------------------------------------------------------------------------------ dmf.vibrato: ldx <dmf.player.chn stz dmf.fx.vib.tick, X lda [dmf.player.ptr], Y sta dmf.fx.vib.data, X beq @none lda dmf.fx.flag, X ora #FX_VIBRATO sta dmf.fx.flag, X iny rts @none: lda dmf.fx.flag, X and #~FX_VIBRATO sta dmf.fx.flag, X iny rts ;;------------------------------------------------------------------------------------------ dmf.portamento_up: ldx <dmf.player.chn lda [dmf.player.ptr], Y sta dmf.fx.prt.speed, X beq @stop lda dmf.fx.flag, X and #~(FX_PRT_UP|FX_PRT_DOWN) ora #FX_PRT_UP sta dmf.fx.flag, X iny rts @stop: lda dmf.fx.flag, X and #~(FX_PRT_UP|FX_PRT_DOWN) sta dmf.fx.flag, X stz dmf.player.freq.delta.lo, X stz dmf.player.freq.delta.hi, X iny rts ;;------------------------------------------------------------------------------------------ dmf.portamento_down: ldx <dmf.player.chn lda [dmf.player.ptr], Y sta dmf.fx.prt.speed, X beq @stop lda dmf.fx.flag, X and #~(FX_PRT_UP|FX_PRT_DOWN) ora #FX_PRT_DOWN sta dmf.fx.flag, X iny rts @stop: lda dmf.fx.flag, X and #~(FX_PRT_UP|FX_PRT_DOWN) sta dmf.fx.flag, X stz dmf.player.freq.delta.lo, X stz dmf.player.freq.delta.hi, X iny rts ;;------------------------------------------------------------------------------------------ dmf.portamento_to_note: ldx <dmf.player.chn lda [dmf.player.ptr], Y sta dmf.fx.prt.speed, X beq @portamento_to_note.skip ; check if we had a new note was triggered lda dmf.fx.flag, X bpl @portamento_to_note.skip lda dmf.player.note.previous, X cmp dmf.player.note, X beq @portamento_to_note.skip iny phy pha lda dmf.player.psg.freq.lo, X sta <dmf.player.al lda dmf.player.psg.freq.hi, X sta <dmf.player.ah ora <dmf.player.al bne @portamento_to_note.compute ldy dmf.player.note.previous, X lda freq_table.lo, Y sta <dmf.player.al lda freq_table.hi, Y sta <dmf.player.ah @portamento_to_note.compute: ldy dmf.player.note, X sec lda <dmf.player.al sbc freq_table.lo, Y sta dmf.player.freq.delta.lo, X lda <dmf.player.ah sbc freq_table.hi, Y sta dmf.player.freq.delta.hi, X pla cmp dmf.player.note, X bcc @portamento_to_note.up @portamento_to_note.down: lda dmf.fx.flag, X and #~(FX_PRT_NOTE_UP|FX_PRT_NOTE_DOWN) ora #FX_PRT_NOTE_DOWN sta dmf.fx.flag, X ply rts @portamento_to_note.up: lda dmf.fx.flag, X and #~(FX_PRT_NOTE_UP|FX_PRT_NOTE_DOWN) ora #FX_PRT_NOTE_UP sta dmf.fx.flag, X ply rts @portamento_to_note.skip: lda dmf.fx.flag, X and #~(FX_PRT_NOTE_UP|FX_PRT_NOTE_DOWN) sta dmf.fx.flag, X stz dmf.player.freq.delta.lo, X stz dmf.player.freq.delta.hi, X iny rts ;;------------------------------------------------------------------------------------------ dmf.panning: ldx <dmf.player.chn lda [dmf.player.ptr], Y iny sta <dmf.player.psg.pan, X lda <dmf.player.chn.flag, X ora #PAN_UPDATE sta <dmf.player.chn.flag, X rts ;;------------------------------------------------------------------------------------------ dmf.set_sample_bank: ldx <dmf.player.chn lda [dmf.player.ptr], Y ; mul 12 sta dmf.pcm.bank, X asl A clc adc dmf.pcm.bank, X asl A asl A sta dmf.pcm.bank, X lda <dmf.player.chn.flag, X bit #PCM_UPDATE bne dmf.set_samples.ex iny rts ;;------------------------------------------------------------------------------------------ dmf.set_samples: ldx <dmf.player.chn lda [dmf.player.ptr], Y beq dmf.pcm.disable @pcm.enable: lda <dmf.player.chn.flag, X and #PAN_UPDATE ora #PCM_UPDATE sta <dmf.player.chn.flag, X ; deactivate frequency effects stz dmf.instrument.flag, X ; only use instrument volume lda dmf.fx.flag, X ; only use volume slide and vibrato and #FX_VIBRATO sta dmf.fx.flag, X ; enable dda ; [todo] volume lda #$7f sta dmf.player.volume, X ; lsr A ; lsr A ; ora #PSG_CTRL_DDA_ON lda #(PSG_CTRL_DDA_ON | PSG_CTRL_FULL_VOLUME) sta <dmf.player.psg.ctrl, X lda dmf.bit, X bit <dmf.player.note_on bne dmf.set_samples.ex iny rts dmf.set_samples.ex: lda dmf.player.note, X phy tay lda modulo_12, Y clc adc dmf.pcm.bank, X tay lda [dmf.player.samples.offset], Y tay lda song.sp.data.bank, Y sta dmf.pcm.src.bank, X txa asl A tax lda song.sp.data.lo, Y sta dmf.pcm.src.ptr, X lda song.sp.data.hi, Y sta dmf.pcm.src.ptr+1, X ply iny rts dmf.pcm.disable: lda <dmf.player.chn.flag, X and #$7f sta <dmf.player.chn.flag, X lda dmf.bit, X trb <dmf.player.note_on iny rts ;;------------------------------------------------------------------------------------------ .macro dmf_pcm_update.ch @pcm.ch\1: bbr\1 <dmf.player.pcm.state, @pcm.ch\1.end lda <dmf.player.pcm.bank+\1 tam #DMF_DATA_MPR lda [dmf.player.pcm.ptr+(2*\1)] cmp #$ff bne @pcm.ch\1.update bra @pcm.ch\1.end @pcm.ch\1.update: ldx #\1 stx psg_chn sta psg_wavebuf inc <dmf.player.pcm.ptr+(2*\1) bne @l\1 inc <dmf.player.pcm.ptr+(1+2*\1) lda <dmf.player.pcm.ptr+(1+2*\1) and #%111_00000 cmp #(DMF_DATA_MPR << 5) bcc @l\1 beq @l\1 lda <dmf.player.pcm.ptr+(1+2*\1) and #$1f ora #(DMF_DATA_MPR << 5) sta <dmf.player.pcm.ptr+(1+2*\1) inc <dmf.player.pcm.bank+\1 @l\1: @pcm.ch\1.end: .endm ;;------------------------------------------------------------------------------------------ dmf_pcm_update: tma #DMF_DATA_MPR pha dmf_pcm_update.ch 0 dmf_pcm_update.ch 1 dmf_pcm_update.ch 2 dmf_pcm_update.ch 3 dmf_pcm_update.ch 4 dmf_pcm_update.ch 5 pla tam #DMF_DATA_MPR lda <dmf.player.chn sta psg_chn rts ;;------------------------------------------------------------------------------------------ modulo_12: .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0a,$0b .db $00,$01,$02,$03 dmf.player.end:
23.988775
124
0.503081
2408af88fcc477e76e8e3744a6053c1d01a8dc33
342
swift
Swift
box/Metal/Spatial/MetalSpatialDirection.swift
grandiere/box
72c9848017e2fed2b8358e2f52edbc8d21f1a4f0
[ "MIT" ]
7
2017-05-17T15:11:53.000Z
2020-10-14T14:54:52.000Z
box/Metal/Spatial/MetalSpatialDirection.swift
grandiere/box
72c9848017e2fed2b8358e2f52edbc8d21f1a4f0
[ "MIT" ]
22
2017-05-16T15:43:08.000Z
2018-02-26T07:11:18.000Z
box/Metal/Spatial/MetalSpatialDirection.swift
grandiere/box
72c9848017e2fed2b8358e2f52edbc8d21f1a4f0
[ "MIT" ]
7
2017-05-17T15:12:02.000Z
2020-09-09T13:15:44.000Z
import Foundation class MetalSpatialDirection { let top:Float let bottom:Float let left:Float let right:Float init( top:Float, bottom:Float, left:Float, right:Float) { self.top = top self.bottom = bottom self.left = left self.right = right } }
15.545455
28
0.54386
64e2bd5fa92e4c80de4a856fd8b4fb7463be0db8
3,943
java
Java
social/social-entity/src/main/java/br/com/crescer/social/entity/entities/Perfil.java
ArthurLDS/FaceFut-Social-Network
c9883505d4cdf48d6ef96c216904e3cd890564f3
[ "MIT" ]
10
2017-05-03T20:26:28.000Z
2021-06-29T03:14:21.000Z
social/social-entity/src/main/java/br/com/crescer/social/entity/entities/Perfil.java
ArthurLDS/FaceFut
c9883505d4cdf48d6ef96c216904e3cd890564f3
[ "MIT" ]
null
null
null
social/social-entity/src/main/java/br/com/crescer/social/entity/entities/Perfil.java
ArthurLDS/FaceFut
c9883505d4cdf48d6ef96c216904e3cd890564f3
[ "MIT" ]
2
2017-04-10T22:08:22.000Z
2019-01-08T07:32:59.000Z
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package br.com.crescer.social.entity.entities; import br.com.crescer.social.entity.enumeration.Sexo; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.ForeignKey; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToMany; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.SequenceGenerator; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; /** * * @author Arthur */ @Entity @Table(name = "PERFIL") public class Perfil implements Serializable{ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PERFIL") @SequenceGenerator(name = "SEQ_PERFIL", sequenceName = "SEQ_PERFIL", allocationSize = 1) @Basic(optional = false) @Column(name = "ID_PERFIL") private Long id; //@NotNull @Size(min = 1, max = 255, message = "O mínimo de caracteres é 1 e o máximo é 255.") @Basic(optional = false) @Column(name = "NOME") private String nome; //@NotNull @Size(min = 1, max = 255, message = "O mínimo de caracteres é 1 e o máximo é 255.") @Basic(optional = false) @Column(name = "EMAIL", unique = true) private String email; @DateTimeFormat(pattern = "yyyy-MM-dd") @Temporal(TemporalType.TIMESTAMP) @Basic(optional = false) @Column(name = "DATA_NASCIMENTO") private Date dataNascimento; @Basic(optional = false) @Enumerated(EnumType.STRING) private Sexo sexo; //@NotNull @JoinColumn(name = "ID_TIME", nullable = false, foreignKey = @ForeignKey(name="FK_PERFIL_TIME")) @ManyToOne(targetEntity = Time.class) private Time time; @Size(min = 1, max = 255, message = "O mínimo de caracteres é 1 e o máximo é 255.") @Basic(optional = false) @Column(name="IMAGEM_PERFIL") private String imagemPerfil; @Size(min = 1, max = 255, message = "O mínimo de caracteres é 1 e o máximo é 255.") @Basic(optional = false) @Column(name="CAPA_PERFIL") private String capaPerfil; public String getCapaPerfil() { return capaPerfil; } public void setCapaPerfil(String capaPerfil) { this.capaPerfil = capaPerfil; } public void setId(Long id) { this.id = id; } public void setImagemPerfil(String imagemPerfil) { this.imagemPerfil = imagemPerfil; } public Long getId() { return id; } public String getImagemPerfil() { return imagemPerfil; } public String getNome() { return nome; } public String getEmail() { return email; } public Time getTime() { return time; } public void setNome(String nome) { this.nome = nome; } public void setEmail(String email) { this.email = email; } public void setTime(Time time) { this.time = time; } public Date getDataNascimento() { return dataNascimento; } public Sexo getSexo() { return sexo; } public void setDataNascimento(Date dataNascimento) { this.dataNascimento = dataNascimento; } public void setSexo(Sexo sexo) { this.sexo = sexo; } }
26.286667
100
0.676642
8743c8dcca6375e8a286c724d3d0579589ac519d
8,767
html
HTML
resume.html
antonpunith/maria-resume
a8954ecce659c56102cd1310fe86a0435807d993
[ "MIT" ]
null
null
null
resume.html
antonpunith/maria-resume
a8954ecce659c56102cd1310fe86a0435807d993
[ "MIT" ]
1
2021-09-01T23:07:55.000Z
2021-09-01T23:07:55.000Z
resume.html
antonpunith/maria-resume
a8954ecce659c56102cd1310fe86a0435807d993
[ "MIT" ]
null
null
null
<!DOCTYPE html> <!-- saved from url=(0022)http://localhost:4000/ --> <html coupert-item="9AF8D9A4E502F3784AD24272D81F0381" class="gr__localhost"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimal-ui"> <title>Maria Thiloba</title> <link rel="stylesheet" href="./resume_files/bootstrap.min.css"> <link rel="stylesheet" href="./resume_files/octicons.min.css"> <style type="text/css"> @import url( https://fonts.googleapis.com/css?family=Lato:400,700 ); body { background: #fff; font-family: Lato, sans-serif; margin: 0 0 80px; } a { color: #2ecc71; } a:focus, a:hover { color: #f1c40f; text-decoration: none; } p { line-height: 1.5; margin: 0; } p + p { margin-top: 10px; } h1, h2, h3, h4 { margin-top: 0 } section { margin-top: 20px; } li { line-height: 1.8; list-style: none; } li:before { content: "\f052"; float: left; font: 13px Octicons; margin-top: 6px; margin-left: -20px; opacity: .1; position: absolute; } blockquote { border-left: 5px solid #e7e9ec; font-size: 14px; } em { color: #95a5a6; font-weight: normal; font-style: normal; } h4 span:first-child { color: #000; font-weight: bold; } .container { max-width: 750px; padding: 0 30px; } .col-sm-6 { margin-bottom: 10px; } .col-sm-12 h4 { margin-top: 12px; } .col-sm-12 + .col-sm-12 { margin-top: 30px; } #header { background: #eee; padding: 50px 0 20px; margin-bottom: 30px; border-bottom: solid 1px #999; } @media print { #header { background: #eee !important; } } #header h2 { color: #95a5a6; font-size: 24px; } #content h3 { color: #f1c40f; font-size: 26px; margin-top: -4px; } #content aside { text-align: right; padding-right: 30px; } #profiles .network { text-transform: capitalize; } #work .position, #volunteer .position { font-weight: bold; margin-bottom: 8px; position: relative; top: -8px; } .education .area { font-weight: bold; position: relative; top: -8px; } .education .area:before { content: "\f0d7"; font: 16px Octicons; margin-right: 6px; } .education .studyType { margin-left: 25px; } #awards .summary, #publications .summary { margin-top: 8px; } #publications .website a:before { content: attr(href); } @media (min-width: 480px) { .strike-through { border-top: 1px solid #f4f6f6; height: 20px; margin-top: 12px; margin-bottom: -2px; position: relative; } .strike-through + .summary, .strike-through + .summary + .highlights { position: relative; top: -8px; } .strike-through span, .strike-through a { background: #fff !important; position: absolute; } .strike-through span:first-child { padding-right: 20px; margin-top: -12px; } .strike-through span + span { font-size: 14px; margin-top: -10px; padding-left: 20px; right: 0; } } @media (max-width: 768px) { .col-sm-6:last-child { margin-bottom: 0px; } #content aside { margin-bottom: 20px; padding-right: 0; text-align: left; } #publications .website a:before { content: "View publication"; } } @media (max-width: 480px) { h1 { font-size: 26px; } .date { font-size: 14px; margin-bottom: 5px; } .strike-through span:first-child { margin-bottom: 7px; } .strike-through span { display: block; } #header { margin-bottom: 10px; padding: 40px 0; } #actions { display: none; } } ul { margin-left: 0; padding-left: 1rem; } </style> </head> <body data-gr-c-s-loaded="true"> <header id="header"> <div class="container"> <div class="row"> <div class="col-xs-9"> <h1> Maria Thiloba </h1> <div> <strong>Vehicle: </strong> Toyota Corolla 2017 </div> <div> <strong>Transmission: </strong> Automatic </div> </div> <div class="col-sx-3"> <div id="contact"> <strong>Email</strong> <div class="email">maria.thilo@gmail.com</div> <br> <strong>Phone</strong> <div class="phone">0413256655</div> </div> </div> </div> </div> </header> <div id="content" class="container"> <section id="about" class="row"> <aside class="col-xs-3"> <h3>About</h3> </aside> <div class="col-xs-9"> <p>A fun loving, enthusiastic and confident, young female driving instructor who's passionate about driving and loves cars. Would like to make the experience stress free for the new learners and help them become safe drivers with confidence to drive without help.</p> </div> </section> <section class="education row"> <aside class="col-xs-3"> <h3>Training</h3> </aside> <div class="col-xs-9"> <div class="row"> <div class="col-xs-12"> <h4 class="strike-through"> <span>Intelligent Training Solutions, Preston</span> <span class="date"> December 2018 — July 2019 </span> </h4> <div class="area"> Certificate IV in Transport and Logistics (Road Transport - Car Driving Instruction) </div> </div> </div> </div> </section> <section class="education row"> <aside class="col-xs-3"> <h3>Education</h3> </aside> <div class="col-xs-9"> <div class="row"> <div class="col-xs-12"> <h4 class="strike-through"> <span>Pearl Academy Of Fashion, Chennai, India</span> <span class="date"> April 2008 </span> </h4> <div class="area"> Post Diploma in Apparel Merchandising &amp; Production </div> </div> <div class="col-xs-12"> <h4 class="strike-through"> <span>Fatima college, Madurai, India</span> <span class="date"> April 2007 </span> </h4> <div class="area"> Diploma in Fashion designing &amp; Garment Construction </div> </div> <div class="col-xs-12"> <h4 class="strike-through"> <span>Fatima college, Madurai, India</span> <span class="date"> April 2006 </span> </h4> <div class="area"> Bachelor of Arts (English) </div> </div> </div> </div> </section> <section id="work" class="row"> <aside class="col-xs-3"> <h3>Experience</h3> </aside> <div class="col-xs-9"> <div class="row"> <div class="col-xs-12"> <h4 class="strike-through"> <span>Junior Merchandiser</span> <span class="date"> January 2009 — August 2009 </span> </h4> <div class="position"> Dr. Gupta &amp; Co, Chennai, India </div> </div> <div class="col-xs-12"> <h4 class="strike-through"> <span>Junior Merchandiser</span> <span class="date"> May 2008 — July 2008 </span> </h4> <div class="position"> MCCOY CLOTHING, Chennai, India </div> </div> </div> </div> </section> <section id="volunteer" class="row"> <aside class="col-xs-3"> <h3>Volunteer</h3> </aside> <div class="col-xs-9"> <div class="row"> <div class="col-xs-12"> <h4 class="strike-through"> <span>Maytime Fair - Xavier College, Kew</span> <span class="date"> </span> </h4> <div class="summary"> <p>Volunteered at the coffee stall for the Maytime fair, talking with customers and liaising with the barista.</p> </div> <ul class="highlights"> <li class="bullet">Enjoyed talking and interacting with customers.</li> <li class="bullet">Handled high customer volumes and sales which was a high pressure job.</li> </ul> </div> <div class="col-xs-12"> <h4 class="strike-through"> <span>Sacred Heart School, Kew</span> <span class="date"> </span> </h4> <div class="summary"> <p>Volunteered for various events held at school and other locations where I had to interact with Children.</p> </div> <ul class="highlights"> <li class="bullet">Interacted with children in various age groups building my confidence in dealing with youth.</li> </ul> </div> </div> </div> </section> <section id="languages" class="row"> <aside class="col-xs-3"> <h3>Languages</h3> </aside> <div class="col-xs-9"> <div class="row"> <div class="col-xs-4"> <ul class="keywords"> <li>English</li> </ul> </div> <div class="col-xs-4"> <ul class="keywords"> <li>Tamil</li> </ul> </div> </div> </div> </section> <section id="interests" class="row"> <aside class="col-xs-3"> <h3>Interests</h3> </aside> <div class="col-xs-9"> <div class="row"> <div class="col-xs-4"> <ul class="keywords"> <li>Design &amp; creativity</li> </ul> </div> <div class="col-xs-4"> <ul class="keywords"> <li>Cars</li> </ul> </div> <div class="col-xs-4"> <ul class="keywords"> <li>Cooking</li> </ul> </div> </div> </div> </section> </div> </body></html>
19.525612
270
0.607848
9246cc53b4702fe8ea2fdea09d3e73fa8c50a360
483
lua
Lua
examples/client.lua
victorgrey/lua-resty-riak
0a00842afad86258936f57189bc3942e88112f01
[ "Unlicense" ]
1
2015-07-13T16:38:22.000Z
2015-07-13T16:38:22.000Z
examples/client.lua
victorgrey/lua-resty-riak
0a00842afad86258936f57189bc3942e88112f01
[ "Unlicense" ]
null
null
null
examples/client.lua
victorgrey/lua-resty-riak
0a00842afad86258936f57189bc3942e88112f01
[ "Unlicense" ]
null
null
null
local riak = require "resty.riak.client" local client = riak.new() local ok, err = client:connect("127.0.0.1", 8087) if not ok then ngx.log(ngx.ERR, "connect failed: " .. err) end local object = { key = "1", content = { value = "test", content_type = "text/plain" } } local rc, err = client:store_object("test", object) ngx.say(rc) local object, err = client:get_object("test", "1") if not object then ngx.say(err) else ngx.say(object.content[1].value) end client:close()
30.1875
87
0.670807
61e8697b3039562add8605702eb19fbfc55c6ba8
263
lua
Lua
modfiles/data/migrations/migration_1_1_19.lua
RSBat/FactoryPlanner
475513572772ded16188f1231409e0c3d1625a4a
[ "MIT" ]
49
2019-05-31T18:36:00.000Z
2022-03-19T18:16:28.000Z
modfiles/data/migrations/migration_1_1_19.lua
RSBat/FactoryPlanner
475513572772ded16188f1231409e0c3d1625a4a
[ "MIT" ]
8
2019-11-20T19:44:41.000Z
2021-10-02T19:35:07.000Z
modfiles/data/migrations/migration_1_1_19.lua
RSBat/FactoryPlanner
475513572772ded16188f1231409e0c3d1625a4a
[ "MIT" ]
27
2019-06-26T18:22:55.000Z
2022-03-30T10:57:41.000Z
local migration = {} function migration.global() global.nth_tick_events = {} end function migration.player_table(player_table) end function migration.subfactory(subfactory) end function migration.packed_subfactory(packed_subfactory) end return migration
15.470588
55
0.813688
263d63e9c415bb7ce2b194351ce965c05285da41
2,960
java
Java
bonaparte-core-test/src/test/java/testcases/csv/TestMultiRecordTypes.java
jpaw/bonaparte-java
1a165271e43098ff334fa9127a613b1e6bd2ae4a
[ "Apache-2.0" ]
1
2018-04-12T20:49:07.000Z
2018-04-12T20:49:07.000Z
bonaparte-core-test/src/test/java/testcases/csv/TestMultiRecordTypes.java
jpaw/bonaparte-java
1a165271e43098ff334fa9127a613b1e6bd2ae4a
[ "Apache-2.0" ]
null
null
null
bonaparte-core-test/src/test/java/testcases/csv/TestMultiRecordTypes.java
jpaw/bonaparte-java
1a165271e43098ff334fa9127a613b1e6bd2ae4a
[ "Apache-2.0" ]
3
2016-04-05T13:42:55.000Z
2021-02-16T09:59:52.000Z
package testcases.csv; import java.util.HashMap; import java.util.Map; import org.testng.annotations.Test; import de.jpaw.bonaparte.core.BonaPortable; import de.jpaw.bonaparte.core.CSVComposer2; import de.jpaw.bonaparte.core.CSVConfiguration; import de.jpaw.bonaparte.core.StringCSVParser; import de.jpaw.bonaparte.pojos.multiRecordTypes.EdgeRecord; import de.jpaw.bonaparte.pojos.multiRecordTypes.EofRecord; import de.jpaw.bonaparte.pojos.multiRecordTypes.HeadRecord; import de.jpaw.bonaparte.pojos.multiRecordTypes.NodeRecord; import de.jpaw.bonaparte.pojos.multiRecordTypes.RecordType; public class TestMultiRecordTypes { private static final CSVConfiguration cfg = new CSVConfiguration.Builder().usingSeparator(";").usingQuoteCharacter(null).usingZeroPadding(false).build(); private static final String RECORD_ID_HEAD = "HEAD"; private static final String RECORD_ID_NODE = "NODE"; private static final String RECORD_ID_EDGE = "EDGE"; private static final String RECORD_ID_EOF = "EOF"; private static Map<String, Class<? extends BonaPortable>> typeMap = new HashMap<String, Class<? extends BonaPortable>>(4); static { typeMap.put(RECORD_ID_HEAD, HeadRecord.class); typeMap.put(RECORD_ID_NODE, NodeRecord.class); typeMap.put(RECORD_ID_EDGE, EdgeRecord.class); typeMap.put(RECORD_ID_EOF, EofRecord.class); } private static final HeadRecord head = new HeadRecord(RECORD_ID_HEAD); private static final NodeRecord node1 = new NodeRecord(RECORD_ID_NODE, "Node 1"); private static final NodeRecord node2 = new NodeRecord(RECORD_ID_NODE, "Node 2"); private static final EdgeRecord edge = new EdgeRecord(RECORD_ID_EDGE, 1, 2); private static final EofRecord eof = new EofRecord(RECORD_ID_EOF); private static final RecordType [] dataToSerialize = { head, node1, node2, edge, eof }; @Test public void testMultiRecord() throws Exception { // setup composer String [] results = new String [dataToSerialize.length]; StringBuilder buffer = new StringBuilder(200); CSVComposer2 cmp = new CSVComposer2(buffer, cfg); cmp.setWriteCRs(false); for (int i = 0; i < dataToSerialize.length; ++i) { cmp.reset(); buffer.setLength(0); cmp.writeRecord(dataToSerialize[i]); results[i] = buffer.toString(); // System.out.println("Created record " + results[i]); } // setup parser StringCSVParser p = new StringCSVParser(cfg, "", new StringCSVParser.DelimiterBasedObjectTypeDetector(typeMap, cfg.separator)); for (int i = 0; i < dataToSerialize.length; ++i) { p.setSource(results[i]); BonaPortable result = p.readRecord(); assert(result != null); assert(result.getClass() == dataToSerialize[i].getClass()); assert(result.equals(dataToSerialize[i])); } } }
41.690141
157
0.701351
70c679072dc54ace0889cbbe01af359daf998aec
150
c
C
src.clean/servers/vm/physravl.c
ducis/operating-system-labs
7df84f3dae792ee96461497b7d47414d24d233ee
[ "MIT" ]
2
2018-03-01T13:45:41.000Z
2018-03-01T14:11:47.000Z
src.clean/servers/vm/physravl.c
ducis/operating-system-labs
7df84f3dae792ee96461497b7d47414d24d233ee
[ "MIT" ]
null
null
null
src.clean/servers/vm/physravl.c
ducis/operating-system-labs
7df84f3dae792ee96461497b7d47414d24d233ee
[ "MIT" ]
null
null
null
#include "proto.h" #include "sanitycheck.h" #include "phys_region.h" #include "physravl_defs.h" #include "cavl_if.h" #include "cavl_impl.h"
16.666667
27
0.693333
175468bf46a73ece9d6515341ad0e194a4149f8c
368
html
HTML
src/promises.html
BigFun123/PIXI-Shader-Playground
c7670bb8b521f766e97525be435fb5afea4ec94c
[ "MIT" ]
null
null
null
src/promises.html
BigFun123/PIXI-Shader-Playground
c7670bb8b521f766e97525be435fb5afea4ec94c
[ "MIT" ]
1
2021-03-10T07:39:02.000Z
2021-03-10T07:39:02.000Z
src/promises.html
BigFun123/PIXI-Shader-Playground
c7670bb8b521f766e97525be435fb5afea4ec94c
[ "MIT" ]
null
null
null
<html> <style> #tarea { float:left; } </style> <body> <!--<script src="dist/bundle.js"></script>--> <script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.1.3/pixi.min.js"></script> </body> <!--<script type = "module" src="index.js"></script> --> <script type = "module" src="./promises.js"></script> </html>
24.533333
92
0.538043
7fa67af356976ab6205fc8493ea659288c288a0b
1,970
kt
Kotlin
src/main/kotlin/com/jamieswhiteshirt/responsiveinventory/client/DragSplittingSlotsSet.kt
JamiesWhiteShirt/responsive-inventory
02276e0d66b17c57445c50ccd22e79451618deca
[ "MIT" ]
null
null
null
src/main/kotlin/com/jamieswhiteshirt/responsiveinventory/client/DragSplittingSlotsSet.kt
JamiesWhiteShirt/responsive-inventory
02276e0d66b17c57445c50ccd22e79451618deca
[ "MIT" ]
null
null
null
src/main/kotlin/com/jamieswhiteshirt/responsiveinventory/client/DragSplittingSlotsSet.kt
JamiesWhiteShirt/responsive-inventory
02276e0d66b17c57445c50ccd22e79451618deca
[ "MIT" ]
null
null
null
package com.jamieswhiteshirt.responsiveinventory.client import com.jamieswhiteshirt.responsiveinventory.init.ResponsiveInventorySoundEvents import net.minecraft.client.audio.ISound import net.minecraft.client.audio.PositionedSoundRecord import net.minecraft.client.gui.inventory.GuiContainer import net.minecraft.inventory.Slot import net.minecraft.util.SoundCategory import net.minecraftforge.fml.relauncher.ReflectionHelper class DragSplittingSlotsSet(val inner: MutableSet<Slot>, val gui: GuiContainer) : MutableSet<Slot> by inner { companion object { private val DRAG_SPLITTING_FIELD = ReflectionHelper.findField(GuiContainer::class.java, "dragSplitting", "field_147007_t") } override fun add(element: Slot): Boolean { return if (inner.add(element)) { playSound() true } else { false } } override fun addAll(elements: Collection<Slot>): Boolean { return if (inner.addAll(elements)) { playSound() true } else { false } } override fun remove(element: Slot): Boolean { return if (inner.remove(element)) { playSound() true } else { false } } private fun playSound() { if (DRAG_SPLITTING_FIELD[gui] as Boolean) { val player = gui.mc.player val stack = player.inventory.itemStack if (!stack.isEmpty) { val pitch = 0.5F + 1.5F / size val soundHandler = gui.mc.soundHandler soundHandler.playSound(PositionedSoundRecord( ResponsiveInventorySoundEvents.MATERIAL_GENERIC_HANDLE.soundName, SoundCategory.MASTER, 0.5F, pitch, false, 0, ISound.AttenuationType.NONE, player.posX.toFloat(), player.posY.toFloat(), player.posZ.toFloat() )) } } } }
32.833333
130
0.620305
9c150d6117de9500728e951aba84e670066e562c
739
js
JavaScript
static/src/js/pages/Home.js
blackb0x3/Edward
fae35c2bad13a19c7bfb2f0d5d9810762169a086
[ "MIT" ]
2
2019-01-08T00:32:10.000Z
2019-06-24T14:29:24.000Z
static/src/js/pages/Home.js
lukebarker3/Edward
fae35c2bad13a19c7bfb2f0d5d9810762169a086
[ "MIT" ]
5
2021-03-09T01:31:15.000Z
2022-02-17T20:41:27.000Z
static/src/js/pages/Home.js
lukebarker3/Edward
fae35c2bad13a19c7bfb2f0d5d9810762169a086
[ "MIT" ]
null
null
null
import React, { Component } from "react"; import { Button, Jumbotron } from "reactstrap"; export default class Home extends Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { } render() { return ( <Jumbotron> <h1 className="display-3">Edward</h1> <p className="lead">A React x Python application demonstrating time and space complexities of various algorithms and data structures.</p> <hr/> <p>New features are being added to the site regularly!</p> <p className="lead"> <Button color="primary">Learn more.</Button>{' '} <Button color="secondary">Contribute!</Button> </p> </Jumbotron> ); } }
27.37037
145
0.612991
d2e785e4f037e1c9bfeac20acd95233e5b4598e2
4,336
php
PHP
application/controllers/Customer.php
MuhammadSuryono/digitalisasi-marketing
1cc8132dda7f4ce7dbdc336af277139c1557e4ef
[ "MIT" ]
null
null
null
application/controllers/Customer.php
MuhammadSuryono/digitalisasi-marketing
1cc8132dda7f4ce7dbdc336af277139c1557e4ef
[ "MIT" ]
null
null
null
application/controllers/Customer.php
MuhammadSuryono/digitalisasi-marketing
1cc8132dda7f4ce7dbdc336af277139c1557e4ef
[ "MIT" ]
null
null
null
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Customer extends CI_Controller { public function __construct() { parent::__construct(); if ($this->session->userdata('masuk') != true) { $url = base_url(); redirect($url); } role_access(); $this->load->model('Customer_model'); $this->load->model('Dept_model'); $this->load->model('Jabatan_model'); $this->load->model('Perusahaan_model'); $this->load->library('form_validation'); date_default_timezone_set('Asia/Jakarta'); } public function index() { $data['customer'] = $this->Customer_model->getAllCustomer(); $this->load->view('templates/header'); $this->load->view('customer/index', $data); $this->load->view('templates/footer'); } public function tambah() { $id = $this->input->get('id'); if ($id) { $data = ['id' => $id]; } $this->form_validation->set_rules('nama', 'Nama', 'required|trim'); $this->form_validation->set_rules('status', 'Status', 'required|trim'); $this->form_validation->set_rules('perusahaan', 'Perusahaan', 'required|trim'); $this->form_validation->set_rules('dept', 'Dept', 'required|trim'); $this->form_validation->set_rules('jabatan', 'Jabatan', 'required|trim'); if ($this->form_validation->run() == false) { $this->load->view('templates/header'); if (!empty($data)) { $this->load->view('customer/tambah', $data); } else { $this->load->view('customer/tambah'); } $this->load->view('templates/footer'); } else { $this->Customer_model->tambahDataCustomer(); $this->session->set_flashdata('flash', 'Ditambahkan'); redirect('customer'); } } public function hapus($id) { $this->Customer_model->hapusDataCustomer($id); $this->session->set_flashdata('flash', 'Dihapus'); redirect('customer'); } public function ubah($id) { $data['customer'] = $this->Customer_model->getCustomerById($id); $this->form_validation->set_rules('nama', 'Nama', 'required|trim'); $this->form_validation->set_rules('status', 'Status', 'required|trim'); $this->form_validation->set_rules('perusahaan', 'Perusahaan', 'required|trim'); $this->form_validation->set_rules('dept', 'Dept', 'required|trim'); $this->form_validation->set_rules('jabatan', 'Jabatan', 'required|trim'); if ($this->form_validation->run() == false) { $this->load->view('templates/header'); $this->load->view('customer/ubah', $data); $this->load->view('templates/footer'); } else { $this->Customer_model->ubahDataCustomer(); $this->session->set_flashdata('flash', 'Diubah'); redirect('customer'); } } public function perusahaan() { $this->Perusahaan_model->tambahDataPerusahaan(); $this->session->set_flashdata('flash', 'Ditambahkan'); redirect('customer/tambah'); } public function tambahDept() { $this->Dept_model->tambahDataDept(); $this->session->set_flashdata('flash', 'Ditambahkan'); redirect('customer/tambah'); } public function tambahJabatan() { $this->Jabatan_model->tambahDataJabatan(); $this->session->set_flashdata('flash', 'Ditambahkan'); redirect('customer/tambah'); } // TAMBAHAN BY ADAM SANTOSO public function tambahDeptAdam() { error_reporting(0); $data = $this->Dept_model->tambahDataDeptAdam(); echo json_encode($data); } public function tambahJabatanAdam() { error_reporting(0); $data = $this->Jabatan_model->tambahDataJabatanAdam(); echo json_encode($data); } public function tambahPerusahaanAdam() { error_reporting(0); $data = $this->Perusahaan_model->tambahDataPerusahaanAdam(); echo json_encode($data); } }
32.848485
88
0.556504
0bdd1351c1b9be0e3fd8e038805924c002aa47ae
858
js
JavaScript
src/components/header/header.css.js
vmcdesign/vmcdesign-site-2020
6dce8319c9097c9ee527709fdda4970f8f7cb263
[ "MIT" ]
null
null
null
src/components/header/header.css.js
vmcdesign/vmcdesign-site-2020
6dce8319c9097c9ee527709fdda4970f8f7cb263
[ "MIT" ]
null
null
null
src/components/header/header.css.js
vmcdesign/vmcdesign-site-2020
6dce8319c9097c9ee527709fdda4970f8f7cb263
[ "MIT" ]
null
null
null
import styled from '@emotion/styled' export const HeaderContainer = styled.header` display: block; position: absolute; top: 7px; width: 100%; padding: 0 20px; background-color: transparent; border-top: 7px solid linear-gradient(90deg, rgba(241,95,95,1) 0%, rgba(235,155,82,1) 100%); ` export const Content = styled.div` display: flex; align-items: center; align-content: center; flex-direction: column; max-width: 1800px; margin: auto; padding: 30px 0; width: 100%; @media screen and (min-width: 380px) { flex-direction: row; align-items: left; justify-content: space-between; } ` export const Logo = styled.h1` margin-bottom: 12px; font-size: 20px; font-family: 'Roboto'; font-weight: 400; @media screen and (min-width: 380px) { margin-bottom: 0; } `
22
95
0.641026
64f392f0ab4f49c254e615bc47aea75c3f50206e
1,916
lua
Lua
workspace/FDMM/tests/FDMMTEST_UnitTest.lua
NachtRaveVL/FDMM_DCS
1a5c2090d46a0165fff9d46120dec08d555114d6
[ "MIT" ]
4
2020-02-29T09:04:46.000Z
2021-12-20T12:05:24.000Z
workspace/FDMM/tests/FDMMTEST_UnitTest.lua
justin-lovell/FDMM_DCS
1a5c2090d46a0165fff9d46120dec08d555114d6
[ "MIT" ]
null
null
null
workspace/FDMM/tests/FDMMTEST_UnitTest.lua
justin-lovell/FDMM_DCS
1a5c2090d46a0165fff9d46120dec08d555114d6
[ "MIT" ]
2
2020-09-03T11:21:46.000Z
2020-10-25T19:19:28.000Z
--- -- FDMMTEST Unit Test Module. -- @module FDMMTEST_UnitTest env.info("---FDMMTEST_UnitTest Start---") do -- FDMMTESTUnitTest --- Unit test class. -- @type FDMMTESTUnitTest -- @extends FDMMFacility FDMMTESTUnitTest = {} FDMMTESTUnitTest.__index = FDMMTESTUnitTest setmetatable(FDMMTESTUnitTest, { __call = function (cls, ...) return cls.new(...) end }) --- Unit test constructor. -- @param #string name Unit test name. -- @return #FDMMTESTUnitTest New instance of #FDMMTESTUnitTest. function FDMMTESTUnitTest.new(name) local self = setmetatable({}, FDMMTESTUnitTest) self.name = name return self end --- Runs unit tests and returns passes and failures. -- @return #table Table with passes count and failures count. function FDMMTESTUnitTest:runUnitTests() local runPasses = 0 local runFailures = 0 for key,value in pairs(getmetatable(self)) do if key and type(key) == 'string' and string.hasPrefix(key, 'test') and value and type(value) == 'function' then env.info("FDMMTEST: Running test \'" .. key .. "\'...") self:setUp() local status,retVal = pcall(value, self) if status then runPasses = runPasses + 1 env.info("FDMMTEST: ...Test \'" .. key .. "\' passed!") else runFailures = runFailures + 1 env.error("FDMMTEST: ...Test \'".. key .. "\' failed!") env.error("FDMMTEST: Error: " .. retVal) end self:tearDown() end end return { passes = runPasses, failures = runFailures } end --- Sets up unit test. function FDMMTESTUnitTest:setUp() -- Meant to be overridden by derived classes. end --- Tears down unit test. function FDMMTESTUnitTest:tearDown() -- Meant to be overridden by derived classes. end end -- /FDMMTESTUnitTest env.info("---FDMMTEST_UnitTest End---")
26.246575
117
0.629958
c1d545e990146591a2d595f1ba9442d11fc31989
847
sql
SQL
openGaussBase/testcase/KEYWORDS/Constraint_Name/Opengauss_Function_Keyword_Constraint_Name_Case0021.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/Constraint_Name/Opengauss_Function_Keyword_Constraint_Name_Case0021.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/Constraint_Name/Opengauss_Function_Keyword_Constraint_Name_Case0021.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
-- @testpoint: opengauss关键字constraint_name(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists constraint_name; create function constraint_name(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 drop function if exists "constraint_name"; create function "constraint_name"(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带单引号-合理报错 drop function if exists 'constraint_name'; create function 'constraint_name'(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带反引号-合理报错 drop function if exists `constraint_name`; create function `constraint_name`(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --清理环境 drop function if exists constraint_name; drop function if exists "constraint_name";
18.822222
63
0.75915
e4ec0897bf610dd36ed437eccb9b5ac76c4d4832
261
sql
SQL
backend/dbtoaster/examples/queries/simple/rs_simple.sql
fdbresearch/FIVM
e4e5347a92ff5fb949d323c9123e5ceca3b4a3df
[ "Apache-2.0" ]
8
2019-02-13T10:56:44.000Z
2021-10-14T03:31:03.000Z
backend/dbtoaster/examples/queries/simple/rs_simple.sql
fdbresearch/FIVM
e4e5347a92ff5fb949d323c9123e5ceca3b4a3df
[ "Apache-2.0" ]
null
null
null
backend/dbtoaster/examples/queries/simple/rs_simple.sql
fdbresearch/FIVM
e4e5347a92ff5fb949d323c9123e5ceca3b4a3df
[ "Apache-2.0" ]
3
2021-06-13T12:26:40.000Z
2022-03-29T19:58:35.000Z
CREATE STREAM R(A int, B int) FROM FILE 'examples/data/simple/r.dat' LINE DELIMITED CSV (); CREATE STREAM S(B int, C int) FROM FILE 'examples/data/simple/s.dat' LINE DELIMITED CSV (); SELECT r.A, SUM(s.C) FROM R r, S s WHERE r.B = S.B GROUP BY r.A;
20.076923
55
0.662835
749620b8ffe87c96bf6c7ddc43e85658d9423ad0
896
h
C
KeyMouse/utils.h
iscooool/KeyMouse
810943658287b63e999e758dbafb3ccf9f2cc25b
[ "MIT" ]
76
2019-08-20T05:55:36.000Z
2022-03-28T00:58:23.000Z
KeyMouse/utils.h
iscooool/KeyMouse
810943658287b63e999e758dbafb3ccf9f2cc25b
[ "MIT" ]
20
2019-11-27T00:11:06.000Z
2022-03-28T05:32:17.000Z
KeyMouse/utils.h
iscooool/KeyMouse
810943658287b63e999e758dbafb3ccf9f2cc25b
[ "MIT" ]
5
2019-08-20T08:00:41.000Z
2020-11-11T14:14:12.000Z
#pragma once #include "tag.h" #include "ctx.h" inline void throw_if_fail(HRESULT hr); HRESULT InitializeUIAutomation(IUIAutomation **ppAutomation); KeyMouse::Context *GetContext(HWND hMainWnd); KeyMouse::PElementVec CachingElementsFromWindow(HWND hMainWnd, std::vector<HWND> TopWindowVec, KeyMouse::PElementVec(*lpEnumFunc)(HWND, HWND)); void CacheThread(HWND hWnd); HWND CreateTransparentWindow(HINSTANCE hInstance, HWND hMainWnd); KeyMouse::PElementVec EnumConditionedElement(HWND hMainWnd, HWND hForeWnd); KeyMouse::PElementVec EnumConditionedElementForCaching(HWND hMainWnd, HWND hForeWnd); bool isFocusOnEdit(HWND hMainWnd); std::string GetLastErrorAsString(); void DrawTag(HWND hMainWnd, HWND hTransWnd, HDC hdc, POINT point, const TCHAR* psText, KeyMouse::Font font); RECT RectForPerMonitorDPI(HWND hWnd, RECT Rect); KeyMouse::PElementVec EnumTargetWindow(HWND hMainWnd, HWND hForeWnd);
47.157895
143
0.819196
0c91f8beba1444262adffec26a3344ef48edb987
435
py
Python
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
print("I will now count my chickens:") print ("Hens",25+30/6) print ("Roosters",100-25*3%4) print("How I will count the eggs:") print(3+2+1-5+4%2-1/4+6) print("Is it true that 3+2<5-7?") print(3+2<5-7) print("What is 3+2?", 3+2) print("What is 5-7?", 5-7) print("Oh,that's why it's false") print("How about some more.") print("Is it greater?",5>-2) print("Is it greater or equal?",5>=-2) print("Is it less or equal?",5<=-2)
16.730769
38
0.62069
7573e759e50e2c167de6758dfd6ac232f9fed86f
2,101
rs
Rust
math/src/vector_ops.rs
torresguilherme/oni-cv-rs
615e98ad75fde94ffe25a4698c55743a25ae094d
[ "MIT" ]
1
2020-03-17T19:02:34.000Z
2020-03-17T19:02:34.000Z
math/src/vector_ops.rs
torresguilherme/oni-cv-rs
615e98ad75fde94ffe25a4698c55743a25ae094d
[ "MIT" ]
null
null
null
math/src/vector_ops.rs
torresguilherme/oni-cv-rs
615e98ad75fde94ffe25a4698c55743a25ae094d
[ "MIT" ]
null
null
null
use crate::point::{Point2D, Point3D, HPoint2D, EPoint3D}; use crate::point::{homogenize2d, homogenize3d}; /// fn dot2d /// Calculates the dot product between two 2D points, homogenous or not. pub fn dot2d(pa: &Point2D, pb: &Point2D) -> f64 { match (pa, pb) { (Point2D::EuclideanPoint(a), Point2D::EuclideanPoint(b)) => { a.x * b.x + a.y * b.y }, (Point2D::EuclideanPoint(a), Point2D::HomogenousPoint(b)) => { let homo_a = homogenize2d(a); homo_a.x * b.x + homo_a.y * b.y + homo_a.w * b.w } (Point2D::HomogenousPoint(a), Point2D::EuclideanPoint(b)) => { let homo_b = homogenize2d(b); a.x * homo_b.x + a.y * homo_b.y + a.w * homo_b.w }, (Point2D::HomogenousPoint(a), Point2D::HomogenousPoint(b)) => { a.x * b.x + a.y * b.y + a.w * b.w } } } /// fn dot3d /// Calculates the dot product between two 3D points, homogenous or not. pub fn dot3d(pa: &Point3D, pb: &Point3D) -> f64 { match (pa, pb) { (Point3D::EuclideanPoint(a), Point3D::EuclideanPoint(b)) => { a.x * b.x + a.y * b.y + a.z * b.z }, (Point3D::EuclideanPoint(a), Point3D::HomogenousPoint(b)) => { let homo_a = homogenize3d(a); homo_a.x * b.x + homo_a.y * b.y + homo_a.z * b.z + homo_a.w * b.w } (Point3D::HomogenousPoint(a), Point3D::EuclideanPoint(b)) => { let homo_b = homogenize3d(b); a.x * homo_b.x + a.y * homo_b.y + a.z * homo_b.z + a.w * homo_b.w }, (Point3D::HomogenousPoint(a), Point3D::HomogenousPoint(b)) => { a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w } } } /// Vector3 /// Contains any value that can be considered a three-dimensional vector and defines operations for it. /// It can be either a homogeous 2D point (they can be cross-multiplied in order to find line intersections in 2D for example), or an euclidean 3D point. pub enum Vector3 { Homogenous2D(HPoint2D), Euclidean3D(EPoint3D) } pub enum Vector4 { HPoint3D }
36.859649
153
0.566873
04ac5e73ae446dd8291db0da2efd78f475886c53
1,372
java
Java
vaadin/src/main/java/org/jdal/vaadin/ui/bind/FieldAccessor.java
KrzychuJedi/jdal
4bbfcf55ac9b0af912da140074ee2f7c92f5f070
[ "Apache-2.0" ]
20
2015-03-02T22:37:15.000Z
2021-06-20T18:46:49.000Z
vaadin/src/main/java/org/jdal/vaadin/ui/bind/FieldAccessor.java
KrzychuJedi/jdal
4bbfcf55ac9b0af912da140074ee2f7c92f5f070
[ "Apache-2.0" ]
2
2015-01-07T12:05:02.000Z
2017-01-24T20:16:44.000Z
vaadin/src/main/java/org/jdal/vaadin/ui/bind/FieldAccessor.java
KrzychuJedi/jdal
4bbfcf55ac9b0af912da140074ee2f7c92f5f070
[ "Apache-2.0" ]
11
2015-06-17T20:24:30.000Z
2021-08-31T06:54:05.000Z
/* * Copyright 2009-2012 the original author or authors. * * 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 org.jdal.vaadin.ui.bind; import org.jdal.ui.bind.AbstractControlAccessor; import com.vaadin.ui.AbstractField; /** * Field ControlAccessor * * @author Jose Luis Martin - (jlm@joseluismartin.info) * @since 2.0 */ public class FieldAccessor extends AbstractControlAccessor { /** * @param control */ public FieldAccessor(Object control) { super(control); } /** * {@inheritDoc} */ public Object getControlValue() { AbstractField<?> field = (AbstractField<?>) getControl(); return field.getValue(); } /** * {@inheritDoc} */ @SuppressWarnings("unchecked") public void setControlValue(Object value) { AbstractField<Object> field = (AbstractField<Object>) getControl(); field.setValue(value); } }
23.655172
75
0.709913
877b5bd0ff13eee35505bc0364180303f1c8a3af
5,145
html
HTML
WebContent/WEB-INF/views/user_setpassword.html
smrgeoinfo/cyberconnector
e5b8830d8c9b368c9a9e7707994a4075b0b99ebc
[ "MIT" ]
14
2018-12-31T16:55:02.000Z
2020-12-11T05:16:05.000Z
WebContent/WEB-INF/views/user_setpassword.html
smrgeoinfo/cyberconnector
e5b8830d8c9b368c9a9e7707994a4075b0b99ebc
[ "MIT" ]
56
2018-10-19T21:13:22.000Z
2022-01-21T23:42:21.000Z
WebContent/WEB-INF/views/user_setpassword.html
smrgeoinfo/cyberconnector
e5b8830d8c9b368c9a9e7707994a4075b0b99ebc
[ "MIT" ]
9
2019-02-18T22:46:20.000Z
2020-06-29T16:47:01.000Z
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorator="frame"> <head> <title>Sign Up</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" media="screen, projection" href="../css/loginstyle.css" th:href="@{../css/loginstyle.css}" type="text/css"/> <link rel="stylesheet" media="screen, projection" href="../css/font-awesome.css" th:href="@{../css/font-awesome.css}" type="text/css"/> <!-- <link rel="stylesheet" media="screen, projection" href="../css/bootstrap.min.css" type="text/css"/> --> <!-- <link rel='stylesheet' media="screen, projection" href='http://fonts.googleapis.com/css?family=Varela+Round' type='text/css'/> --> <script src="../js/jquery.validate.min.js"></script> <!-- <script src="../js/jquery-1.11.1.3.min.js"></script> <script src="../js/bootstrap.min.js"></script> --> <link rel="stylesheet" href="../css/user-register.css" th:href="@{../css/user-register.css}"/> </head> <body> <!--body--> <div class="clearfix" layout:fragment="content"> <div class="sec-heading font-default"> </div> <section class="container font-default"> <div class="row"> <div class="col-lg-12"> <!-- REGISTRATION FORM --> <div class="text-center" style="padding:50px 0"> <div class="logo">Set New Password</div> <!-- Main Form --><!-- <div class="etc-login-form"> <p style="background-color:red; color:white;" th:text="${message.information}"></p> </div> --> <div class="login-form-1"> <form id="register-form" class="text-left" th:action="@{/web/user_setpassword}" th:object="${user}" method="post"> <div class="login-form-main-message"></div> <div class="main-login-form"> <div class="login-group"> <div class="form-group" style="display: none;"> <label for="name" class="sr-only" >User Name</label> <input type="text" class="form-control" id="name" name="name" th:field="*{name}" th:value="*{name}" placeholder="name" /> </div> <div class="form-group" style="display: none;"> <label for="email" class="sr-only">Email</label> <input type="text" class="form-control" id="email" name="email" th:field="*{email}" th:value="*{email}" placeholder="email" /> </div> <div class="form-group"> <label for="reg_password" class="sr-only">Password</label> <input type="password" class="form-control" id="reg_password" name="reg_password" th:field="*{password}" placeholder="new password"/> </div> <div class="form-group"> <label for="reg_password_confirm" class="sr-only">Password Confirm</label> <input type="password" class="form-control" id="reg_password_confirm" name="reg_password_confirm" placeholder="confirm new password"/> </div> </div> <button type="submit" class="login-button"><i class="fa fa-chevron-right"></i></button> </div> </form> </div> <!-- end:Main Form --> </div> </div> </div> </section> </div> <!-- /container --> <th:block layout:fragment="script"> <script th:inline="javascript"> (function($) { "use strict"; var options = { 'btn-loading': '<i class="fa fa-spinner fa-pulse"></i>', 'btn-success': '<i class="fa fa-check"></i>', 'btn-error': '<i class="fa fa-remove"></i>', 'msg-success': 'All Good! Redirecting...', 'msg-error': 'Wrong login credentials!', 'useAJAX': true, }; $("#register-form").validate({ rules: { name: { required: true, minlength: 5 }, password: { required: true, minlength: 5 }, reg_password_confirm: { required: true, minlength: 5, equalTo: "#register-form [name=password]" }, email: { required: true, email: true }, fullname: { required: true, minlength: 5, }, institute: { required: true }, department: { required: true }, reg_agree: "required", }, errorClass: "form-invalid", errorPlacement: function( label, element ) { if( element.attr( "type" ) === "checkbox" || element.attr( "type" ) === "radio" ) { element.parent().append( label ); } else { label.insertAfter( element ); } } }); $("#register-form").submit(function() { remove_loading($(this)); if(options['useAJAX'] == true) { dummy_submit_form($(this)); return false; } }); })(jQuery); </script> </th:block> </body> </html>
30.264706
149
0.530418
a6da0ba63f7fd7d972870cd0da14d061e4443e15
509
sql
SQL
Dev/Database/Scripts/Tables/Foreign keys. Match.sql
MorozovDamian/DevManuals
0ebaaf7d828273c9f16845a8fc9d3e6a3892dc63
[ "MIT" ]
5
2020-09-17T15:20:27.000Z
2022-02-22T09:19:40.000Z
Dev/Database/Scripts/Tables/Foreign keys. Match.sql
MorozovDamian/DevManuals
0ebaaf7d828273c9f16845a8fc9d3e6a3892dc63
[ "MIT" ]
null
null
null
Dev/Database/Scripts/Tables/Foreign keys. Match.sql
MorozovDamian/DevManuals
0ebaaf7d828273c9f16845a8fc9d3e6a3892dc63
[ "MIT" ]
null
null
null
-- Foreign keys. Match. declare @table_foregin nvarchar(255) = 'LOGS' declare @table_primary nvarchar(255) = 'LOG_TYPES' select [fk_tab].[name] [foreign_table] ,[pk_tab].[name] [primary_table] ,[fk].[name] [fk_constraint_name] from [sys].[foreign_keys] [fk] inner join [sys].[tables] [fk_tab] on [fk_tab].[object_id] = [fk].[parent_object_id] inner join [sys].[tables] [pk_tab] on [pk_tab].[object_id] = [fk].[referenced_object_id] where [fk_tab].[name]=@table_foregin and [pk_tab].[name]=@table_primary
42.416667
88
0.715128
0a1f34ca66a76ba50f9ac845edaadce2c20631cf
814
ts
TypeScript
src/app/services/fetch.service.ts
ahmedHusseinF/payme-demo
518fcf270fd1e53c1aca666b317ae4e4d87495b7
[ "MIT" ]
null
null
null
src/app/services/fetch.service.ts
ahmedHusseinF/payme-demo
518fcf270fd1e53c1aca666b317ae4e4d87495b7
[ "MIT" ]
null
null
null
src/app/services/fetch.service.ts
ahmedHusseinF/payme-demo
518fcf270fd1e53c1aca666b317ae4e4d87495b7
[ "MIT" ]
null
null
null
import { Injectable } from "@angular/core"; import { Http } from '@angular/http'; import 'rxjs/Rx'; @Injectable() export class fetchService{ http: any; baseUrl: string; locationUrl: string; constructor(http:Http){ this.http = http; this.baseUrl = "http://devx.paymeapp.co/api/v2/mobile/home?"; this.locationUrl = "https://maps.googleapis.com/maps/api/geocode/json?"; } fetch(token){ //console.log(token); return this.http.post(this.baseUrl + "token=" + token) .map((res) => { return res.json(); }); } getLocation(lat,long){ return this.http.get(this.locationUrl + "latlng=" + lat + "," + long) .map((res)=>{ console.log(res.json()); return res.json(); }) } }
26.258065
80
0.552826
9635707cfb845f0d576f41fbfbeeaa470f189205
359
php
PHP
app/Reklame.php
Septiandnj/pajak
97c78b2c8cfe2672a716a2342f2879336df1d848
[ "MIT" ]
null
null
null
app/Reklame.php
Septiandnj/pajak
97c78b2c8cfe2672a716a2342f2879336df1d848
[ "MIT" ]
null
null
null
app/Reklame.php
Septiandnj/pajak
97c78b2c8cfe2672a716a2342f2879336df1d848
[ "MIT" ]
null
null
null
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Reklame extends Model { // protected $fillable=['name','dasar1','dasar2','dasar3','ket']; protected $visible=['name','dasar1','dasar2','dasar3','ket']; public $timestamps=true; public function entry() { return $this->hasMany('App\entry', 'jenis_id'); } }
18.894737
66
0.635097
089e6678cbb9f72bace30d96d8a68fb670a7618a
6,690
go
Go
handler.go
ochronus/grimd
7f47b779b04435db96fbf5d5bbb3164306ca0a24
[ "MIT" ]
null
null
null
handler.go
ochronus/grimd
7f47b779b04435db96fbf5d5bbb3164306ca0a24
[ "MIT" ]
null
null
null
handler.go
ochronus/grimd
7f47b779b04435db96fbf5d5bbb3164306ca0a24
[ "MIT" ]
null
null
null
package main import ( "log" "net" "strings" "time" "github.com/miekg/dns" ) const ( notIPQuery = 0 _IP4Query = 4 _IP6Query = 6 ) // Question type type Question struct { Qname string `json:"name"` Qtype string `json:"type"` Qclass string `json:"class"` } // QuestionCacheEntry represents a full query from a client with metadata type QuestionCacheEntry struct { Date int64 `json:"date"` Remote string `json:"client"` Blocked bool `json:"blocked"` Query Question `json:"query"` } // String formats a question func (q *Question) String() string { return q.Qname + " " + q.Qclass + " " + q.Qtype } // DNSHandler type type DNSHandler struct { resolver *Resolver cache Cache negCache Cache } // NewHandler returns a new DNSHandler func NewHandler() *DNSHandler { var ( clientConfig *dns.ClientConfig resolver *Resolver cache Cache negCache Cache ) resolver = &Resolver{clientConfig} cache = &MemoryCache{ Backend: make(map[string]Mesg, Config.Maxcount), Expire: time.Duration(Config.Expire) * time.Second, Maxcount: Config.Maxcount, } negCache = &MemoryCache{ Backend: make(map[string]Mesg), Expire: time.Duration(Config.Expire) * time.Second / 2, Maxcount: Config.Maxcount, } return &DNSHandler{resolver, cache, negCache} } func (h *DNSHandler) do(Net string, w dns.ResponseWriter, req *dns.Msg) { log.SetFlags(log.LstdFlags | log.Lshortfile | log.Lmicroseconds) defer w.Close() q := req.Question[0] Q := Question{UnFqdn(q.Name), dns.TypeToString[q.Qtype], dns.ClassToString[q.Qclass]} var remote net.IP if Net == "tcp" { remote = w.RemoteAddr().(*net.TCPAddr).IP } else { remote = w.RemoteAddr().(*net.UDPAddr).IP } if Config.LogLevel > 0 { log.Printf("%s lookup %s\n", remote, Q.String()) } var grimdActive = grimdActivation.query() if len(Config.ToggleName) >0 && strings.Contains(Q.Qname, Config.ToggleName) { if Config.LogLevel > 0 { log.Printf("Found ToggleName! (%s)\n", Q.Qname) } grimdActive = grimdActivation.toggle() if Config.LogLevel > 0 { if grimdActive { log.Print("Grimd Activated") } else { log.Print("Grimd Deactivated") } } } IPQuery := h.isIPQuery(q) // Only query cache when qtype == 'A'|'AAAA' , qclass == 'IN' key := KeyGen(Q) if IPQuery > 0 { mesg, blocked, err := h.cache.Get(key) if err != nil { if mesg, blocked, err = h.negCache.Get(key); err != nil { if Config.LogLevel > 1 { log.Printf("%s didn't hit cache\n", Q.String()) } } else { if Config.LogLevel > 1 { log.Printf("%s hit negative cache\n", Q.String()) } h.HandleFailed(w, req) return } } else { if blocked && !grimdActive { if Config.LogLevel > 1 { log.Printf("%s hit cache and was blocked: forwarding request\n", Q.String()) } } else { if Config.LogLevel > 1 { log.Printf("%s hit cache\n", Q.String()) } // we need this copy against concurrent modification of Id msg := *mesg msg.Id = req.Id h.WriteReplyMsg(w, &msg) return } } } // Check blocklist var blacklisted bool = false if IPQuery > 0 { blacklisted = BlockCache.Exists(Q.Qname) if grimdActive && blacklisted { m := new(dns.Msg) m.SetReply(req) nullroute := net.ParseIP(Config.Nullroute) nullroutev6 := net.ParseIP(Config.Nullroutev6) switch IPQuery { case _IP4Query: rrHeader := dns.RR_Header{ Name: q.Name, Rrtype: dns.TypeA, Class: dns.ClassINET, Ttl: Config.TTL, } a := &dns.A{Hdr: rrHeader, A: nullroute} m.Answer = append(m.Answer, a) case _IP6Query: rrHeader := dns.RR_Header{ Name: q.Name, Rrtype: dns.TypeAAAA, Class: dns.ClassINET, Ttl: Config.TTL, } a := &dns.AAAA{Hdr: rrHeader, AAAA: nullroutev6} m.Answer = append(m.Answer, a) } h.WriteReplyMsg(w, m) if Config.LogLevel > 0 { log.Printf("%s found in blocklist\n", Q.Qname) } // log query NewEntry := QuestionCacheEntry{Date: time.Now().Unix(), Remote: remote.String(), Query: Q, Blocked: true} go QuestionCache.Add(NewEntry) // cache the block err := h.cache.Set(key, m, true) if err != nil { log.Printf("Set %s block cache failed: %s\n", Q.String(), err.Error()) } return } if Config.LogLevel > 0 { log.Printf("%s not found in blocklist\n", Q.Qname) } } // log query NewEntry := QuestionCacheEntry{Date: time.Now().Unix(), Remote: remote.String(), Query: Q, Blocked: false} go QuestionCache.Add(NewEntry) mesg, err := h.resolver.Lookup(Net, req) if err != nil { log.Printf("resolve query error %s\n", err) h.HandleFailed(w, req) // cache the failure, too! if err = h.negCache.Set(key, nil, false); err != nil { log.Printf("set %s negative cache failed: %v\n", Q.String(), err) } return } if mesg.Truncated && Net == "udp" { mesg, err = h.resolver.Lookup("tcp", req) if err != nil { log.Printf("resolve tcp query error %s\n", err) h.HandleFailed(w, req) // cache the failure, too! if err = h.negCache.Set(key, nil, false); err != nil { log.Printf("set %s negative cache failed: %v\n", Q.String(), err) } return } } h.WriteReplyMsg(w, mesg) if IPQuery > 0 && len(mesg.Answer) > 0 { if !grimdActive && blacklisted { if Config.LogLevel > 0 { log.Printf("%s is blacklisted and grimd not active: not caching\n", Q.String()) } } else { err = h.cache.Set(key, mesg, false) if err != nil { log.Printf("set %s cache failed: %s\n", Q.String(), err.Error()) } if Config.LogLevel > 0 { log.Printf("insert %s into cache\n", Q.String()) } } } } // DoTCP begins a tcp query func (h *DNSHandler) DoTCP(w dns.ResponseWriter, req *dns.Msg) { go h.do("tcp", w, req) } // DoUDP begins a udp query func (h *DNSHandler) DoUDP(w dns.ResponseWriter, req *dns.Msg) { go h.do("udp", w, req) } func (h *DNSHandler) HandleFailed(w dns.ResponseWriter, message *dns.Msg) { m := new(dns.Msg) m.SetRcode(message, dns.RcodeServerFailure) h.WriteReplyMsg(w, m) } func (h *DNSHandler) WriteReplyMsg(w dns.ResponseWriter, message *dns.Msg) { defer func() { if r := recover(); r != nil { log.Printf("Recovered in WriteReplyMsg: %s\n", r) } }() err := w.WriteMsg(message) if err != nil { log.Println(err) } } func (h *DNSHandler) isIPQuery(q dns.Question) int { if q.Qclass != dns.ClassINET { return notIPQuery } switch q.Qtype { case dns.TypeA: return _IP4Query case dns.TypeAAAA: return _IP6Query default: return notIPQuery } } // UnFqdn function func UnFqdn(s string) string { if dns.IsFqdn(s) { return s[:len(s)-1] } return s }
22.525253
108
0.63423
125ea7a76ea24d7ca1ece3c0b53f7affad1c8130
983
c
C
src/clib/u8g2_font_timB10_tn.c
kzhioki/U8g2_Arduino
42bac40675ab7404e6df3444cb01124aa9bd17b2
[ "BSD-2-Clause" ]
null
null
null
src/clib/u8g2_font_timB10_tn.c
kzhioki/U8g2_Arduino
42bac40675ab7404e6df3444cb01124aa9bd17b2
[ "BSD-2-Clause" ]
null
null
null
src/clib/u8g2_font_timB10_tn.c
kzhioki/U8g2_Arduino
42bac40675ab7404e6df3444cb01124aa9bd17b2
[ "BSD-2-Clause" ]
null
null
null
#include "u8g2.h" /* Fontname: -Adobe-Times-Bold-R-Normal--14-100-100-100-P-76-ISO10646-1 Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved. Glyphs: 18/756 BBX Build Mode: 0 */ const uint8_t u8g2_font_timB10_tn[231] U8G2_FONT_SECTION("u8g2_font_timB10_tn") = "\22\0\3\3\3\4\2\4\5\7\14\0\376\12\375\12\375\0\0\0\0\0\312 \5\0s\2*\13\265\371" "*%e\64\311\24\2+\12\77\21/\234v\13\247\1,\7\42m\202\42\1-\6\13\227b\0.\6" "\22q\202\0/\16T\221.I\24\22\305B\242X\14\0\60\15V\361\206\224\42\342\223$\24\242\0\61" "\11V\361JD\324O\6\62\14V\361jd\23\252\251\5\17\5\63\16V\361jd\23\212\206C\32E" "B\1\64\20V\361N\266\24\221\204$!\311\241&\224\0\65\16V\361\246%J*Jg#\11\5\0" "\66\16V\361n$\223\315*\42N\22\12\0\67\16V\361\342`\23\6\205\321`\64(\3\70\17V\361" "\206\42\42U$$\212\210IB\1\71\16V\361\206\42\342$\251\311F#!\0:\6\272\221\202L\0" "\0\0\4\377\377\0";
57.823529
163
0.673449
f4fb2e42869fc7f9c21065a0e9c22befbfc4b648
19,963
asm
Assembly
Firmware/obj/hm_trp/radio~hm_trp/mavlink.asm
mgrunsfeld/SiK
76563efb25620265b47992d7af30cb4de9849941
[ "BSD-2-Clause" ]
null
null
null
Firmware/obj/hm_trp/radio~hm_trp/mavlink.asm
mgrunsfeld/SiK
76563efb25620265b47992d7af30cb4de9849941
[ "BSD-2-Clause" ]
null
null
null
Firmware/obj/hm_trp/radio~hm_trp/mavlink.asm
mgrunsfeld/SiK
76563efb25620265b47992d7af30cb4de9849941
[ "BSD-2-Clause" ]
null
null
null
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.5.0 #9253 (Mar 24 2016) (Linux) ; This file was generated Mon Jul 23 11:34:32 2018 ;-------------------------------------------------------- .module mavlink .optsdcc -mmcs51 --model-large ;-------------------------------------------------------- ; Public variables in this module ;-------------------------------------------------------- .globl _serial_read_space .globl _serial_write_space .globl _serial_write_buf .globl _SDN .globl _NSS1 .globl _IRQ .globl _PIN_ENABLE .globl _PIN_CONFIG .globl _LED_GREEN .globl _LED_RED .globl _SPI0EN .globl _TXBMT0 .globl _NSS0MD0 .globl _NSS0MD1 .globl _RXOVRN0 .globl _MODF0 .globl _WCOL0 .globl _SPIF0 .globl _AD0CM0 .globl _AD0CM1 .globl _AD0CM2 .globl _AD0WINT .globl _AD0BUSY .globl _AD0INT .globl _BURSTEN .globl _AD0EN .globl _CCF0 .globl _CCF1 .globl _CCF2 .globl _CCF3 .globl _CCF4 .globl _CCF5 .globl _CR .globl _CF .globl _P .globl _F1 .globl _OV .globl _RS0 .globl _RS1 .globl _F0 .globl _AC .globl _CY .globl _T2XCLK .globl _T2RCLK .globl _TR2 .globl _T2SPLIT .globl _TF2CEN .globl _TF2LEN .globl _TF2L .globl _TF2H .globl _SI .globl _ACK .globl _ARBLOST .globl _ACKRQ .globl _STO .globl _STA .globl _TXMODE .globl _MASTER .globl _PX0 .globl _PT0 .globl _PX1 .globl _PT1 .globl _PS0 .globl _PT2 .globl _PSPI0 .globl _SPI1EN .globl _TXBMT1 .globl _NSS1MD0 .globl _NSS1MD1 .globl _RXOVRN1 .globl _MODF1 .globl _WCOL1 .globl _SPIF1 .globl _EX0 .globl _ET0 .globl _EX1 .globl _ET1 .globl _ES0 .globl _ET2 .globl _ESPI0 .globl _EA .globl _RI0 .globl _TI0 .globl _RB80 .globl _TB80 .globl _REN0 .globl _MCE0 .globl _S0MODE .globl _CRC0VAL .globl _CRC0INIT .globl _CRC0SEL .globl _IT0 .globl _IE0 .globl _IT1 .globl _IE1 .globl _TR0 .globl _TF0 .globl _TR1 .globl _TF1 .globl _PCA0CP4 .globl _PCA0CP0 .globl _PCA0 .globl _PCA0CP3 .globl _PCA0CP2 .globl _PCA0CP1 .globl _PCA0CP5 .globl _TMR2 .globl _TMR2RL .globl _ADC0LT .globl _ADC0GT .globl _ADC0 .globl _TMR3 .globl _TMR3RL .globl _TOFF .globl _DP .globl _VDM0CN .globl _PCA0CPH4 .globl _PCA0CPL4 .globl _PCA0CPH0 .globl _PCA0CPL0 .globl _PCA0H .globl _PCA0L .globl _SPI0CN .globl _EIP2 .globl _EIP1 .globl _SMB0ADM .globl _SMB0ADR .globl _P2MDIN .globl _P1MDIN .globl _P0MDIN .globl _B .globl _RSTSRC .globl _PCA0CPH3 .globl _PCA0CPL3 .globl _PCA0CPH2 .globl _PCA0CPL2 .globl _PCA0CPH1 .globl _PCA0CPL1 .globl _ADC0CN .globl _EIE2 .globl _EIE1 .globl _FLWR .globl _IT01CF .globl _XBR2 .globl _XBR1 .globl _XBR0 .globl _ACC .globl _PCA0PWM .globl _PCA0CPM4 .globl _PCA0CPM3 .globl _PCA0CPM2 .globl _PCA0CPM1 .globl _PCA0CPM0 .globl _PCA0MD .globl _PCA0CN .globl _P0MAT .globl _P2SKIP .globl _P1SKIP .globl _P0SKIP .globl _PCA0CPH5 .globl _PCA0CPL5 .globl _REF0CN .globl _PSW .globl _P1MAT .globl _PCA0CPM5 .globl _TMR2H .globl _TMR2L .globl _TMR2RLH .globl _TMR2RLL .globl _REG0CN .globl _TMR2CN .globl _P0MASK .globl _ADC0LTH .globl _ADC0LTL .globl _ADC0GTH .globl _ADC0GTL .globl _SMB0DAT .globl _SMB0CF .globl _SMB0CN .globl _P1MASK .globl _ADC0H .globl _ADC0L .globl _ADC0TK .globl _ADC0CF .globl _ADC0MX .globl _ADC0PWR .globl _ADC0AC .globl _IREF0CN .globl _IP .globl _FLKEY .globl _FLSCL .globl _PMU0CF .globl _OSCICL .globl _OSCICN .globl _OSCXCN .globl _SPI1CN .globl _ONESHOT .globl _EMI0TC .globl _RTC0KEY .globl _RTC0DAT .globl _RTC0ADR .globl _EMI0CF .globl _EMI0CN .globl _CLKSEL .globl _IE .globl _SFRPAGE .globl _P2DRV .globl _P2MDOUT .globl _P1DRV .globl _P1MDOUT .globl _P0DRV .globl _P0MDOUT .globl _SPI0DAT .globl _SPI0CKR .globl _SPI0CFG .globl _P2 .globl _CPT0MX .globl _CPT1MX .globl _CPT0MD .globl _CPT1MD .globl _CPT0CN .globl _CPT1CN .globl _SBUF0 .globl _SCON0 .globl _CRC0CNT .globl _DC0CN .globl _CRC0AUTO .globl _DC0CF .globl _TMR3H .globl _CRC0FLIP .globl _TMR3L .globl _CRC0IN .globl _TMR3RLH .globl _CRC0CN .globl _TMR3RLL .globl _CRC0DAT .globl _TMR3CN .globl _P1 .globl _PSCTL .globl _CKCON .globl _TH1 .globl _TH0 .globl _TL1 .globl _TL0 .globl _TMOD .globl _TCON .globl _PCON .globl _TOFFH .globl _SPI1DAT .globl _TOFFL .globl _SPI1CKR .globl _SPI1CFG .globl _DPH .globl _DPL .globl _SP .globl _P0 .globl _MAVLink_report ;-------------------------------------------------------- ; special function registers ;-------------------------------------------------------- .area RSEG (ABS,DATA) .org 0x0000 _P0 = 0x0080 _SP = 0x0081 _DPL = 0x0082 _DPH = 0x0083 _SPI1CFG = 0x0084 _SPI1CKR = 0x0085 _TOFFL = 0x0085 _SPI1DAT = 0x0086 _TOFFH = 0x0086 _PCON = 0x0087 _TCON = 0x0088 _TMOD = 0x0089 _TL0 = 0x008a _TL1 = 0x008b _TH0 = 0x008c _TH1 = 0x008d _CKCON = 0x008e _PSCTL = 0x008f _P1 = 0x0090 _TMR3CN = 0x0091 _CRC0DAT = 0x0091 _TMR3RLL = 0x0092 _CRC0CN = 0x0092 _TMR3RLH = 0x0093 _CRC0IN = 0x0093 _TMR3L = 0x0094 _CRC0FLIP = 0x0095 _TMR3H = 0x0095 _DC0CF = 0x0096 _CRC0AUTO = 0x0096 _DC0CN = 0x0097 _CRC0CNT = 0x0097 _SCON0 = 0x0098 _SBUF0 = 0x0099 _CPT1CN = 0x009a _CPT0CN = 0x009b _CPT1MD = 0x009c _CPT0MD = 0x009d _CPT1MX = 0x009e _CPT0MX = 0x009f _P2 = 0x00a0 _SPI0CFG = 0x00a1 _SPI0CKR = 0x00a2 _SPI0DAT = 0x00a3 _P0MDOUT = 0x00a4 _P0DRV = 0x00a4 _P1MDOUT = 0x00a5 _P1DRV = 0x00a5 _P2MDOUT = 0x00a6 _P2DRV = 0x00a6 _SFRPAGE = 0x00a7 _IE = 0x00a8 _CLKSEL = 0x00a9 _EMI0CN = 0x00aa _EMI0CF = 0x00ab _RTC0ADR = 0x00ac _RTC0DAT = 0x00ad _RTC0KEY = 0x00ae _EMI0TC = 0x00af _ONESHOT = 0x00af _SPI1CN = 0x00b0 _OSCXCN = 0x00b1 _OSCICN = 0x00b2 _OSCICL = 0x00b3 _PMU0CF = 0x00b5 _FLSCL = 0x00b6 _FLKEY = 0x00b7 _IP = 0x00b8 _IREF0CN = 0x00b9 _ADC0AC = 0x00ba _ADC0PWR = 0x00ba _ADC0MX = 0x00bb _ADC0CF = 0x00bc _ADC0TK = 0x00bd _ADC0L = 0x00bd _ADC0H = 0x00be _P1MASK = 0x00bf _SMB0CN = 0x00c0 _SMB0CF = 0x00c1 _SMB0DAT = 0x00c2 _ADC0GTL = 0x00c3 _ADC0GTH = 0x00c4 _ADC0LTL = 0x00c5 _ADC0LTH = 0x00c6 _P0MASK = 0x00c7 _TMR2CN = 0x00c8 _REG0CN = 0x00c9 _TMR2RLL = 0x00ca _TMR2RLH = 0x00cb _TMR2L = 0x00cc _TMR2H = 0x00cd _PCA0CPM5 = 0x00ce _P1MAT = 0x00cf _PSW = 0x00d0 _REF0CN = 0x00d1 _PCA0CPL5 = 0x00d2 _PCA0CPH5 = 0x00d3 _P0SKIP = 0x00d4 _P1SKIP = 0x00d5 _P2SKIP = 0x00d6 _P0MAT = 0x00d7 _PCA0CN = 0x00d8 _PCA0MD = 0x00d9 _PCA0CPM0 = 0x00da _PCA0CPM1 = 0x00db _PCA0CPM2 = 0x00dc _PCA0CPM3 = 0x00dd _PCA0CPM4 = 0x00de _PCA0PWM = 0x00df _ACC = 0x00e0 _XBR0 = 0x00e1 _XBR1 = 0x00e2 _XBR2 = 0x00e3 _IT01CF = 0x00e4 _FLWR = 0x00e5 _EIE1 = 0x00e6 _EIE2 = 0x00e7 _ADC0CN = 0x00e8 _PCA0CPL1 = 0x00e9 _PCA0CPH1 = 0x00ea _PCA0CPL2 = 0x00eb _PCA0CPH2 = 0x00ec _PCA0CPL3 = 0x00ed _PCA0CPH3 = 0x00ee _RSTSRC = 0x00ef _B = 0x00f0 _P0MDIN = 0x00f1 _P1MDIN = 0x00f2 _P2MDIN = 0x00f3 _SMB0ADR = 0x00f4 _SMB0ADM = 0x00f5 _EIP1 = 0x00f6 _EIP2 = 0x00f7 _SPI0CN = 0x00f8 _PCA0L = 0x00f9 _PCA0H = 0x00fa _PCA0CPL0 = 0x00fb _PCA0CPH0 = 0x00fc _PCA0CPL4 = 0x00fd _PCA0CPH4 = 0x00fe _VDM0CN = 0x00ff _DP = 0x8382 _TOFF = 0x8685 _TMR3RL = 0x9392 _TMR3 = 0x9594 _ADC0 = 0xbebd _ADC0GT = 0xc4c3 _ADC0LT = 0xc6c5 _TMR2RL = 0xcbca _TMR2 = 0xcdcc _PCA0CP5 = 0xd3d2 _PCA0CP1 = 0xeae9 _PCA0CP2 = 0xeceb _PCA0CP3 = 0xeeed _PCA0 = 0xfaf9 _PCA0CP0 = 0xfcfb _PCA0CP4 = 0xfefd ;-------------------------------------------------------- ; special function bits ;-------------------------------------------------------- .area RSEG (ABS,DATA) .org 0x0000 _TF1 = 0x008f _TR1 = 0x008e _TF0 = 0x008d _TR0 = 0x008c _IE1 = 0x008b _IT1 = 0x008a _IE0 = 0x0089 _IT0 = 0x0088 _CRC0SEL = 0x0096 _CRC0INIT = 0x0095 _CRC0VAL = 0x0094 _S0MODE = 0x009f _MCE0 = 0x009d _REN0 = 0x009c _TB80 = 0x009b _RB80 = 0x009a _TI0 = 0x0099 _RI0 = 0x0098 _EA = 0x00af _ESPI0 = 0x00ae _ET2 = 0x00ad _ES0 = 0x00ac _ET1 = 0x00ab _EX1 = 0x00aa _ET0 = 0x00a9 _EX0 = 0x00a8 _SPIF1 = 0x00b7 _WCOL1 = 0x00b6 _MODF1 = 0x00b5 _RXOVRN1 = 0x00b4 _NSS1MD1 = 0x00b3 _NSS1MD0 = 0x00b2 _TXBMT1 = 0x00b1 _SPI1EN = 0x00b0 _PSPI0 = 0x00be _PT2 = 0x00bd _PS0 = 0x00bc _PT1 = 0x00bb _PX1 = 0x00ba _PT0 = 0x00b9 _PX0 = 0x00b8 _MASTER = 0x00c7 _TXMODE = 0x00c6 _STA = 0x00c5 _STO = 0x00c4 _ACKRQ = 0x00c3 _ARBLOST = 0x00c2 _ACK = 0x00c1 _SI = 0x00c0 _TF2H = 0x00cf _TF2L = 0x00ce _TF2LEN = 0x00cd _TF2CEN = 0x00cc _T2SPLIT = 0x00cb _TR2 = 0x00ca _T2RCLK = 0x00c9 _T2XCLK = 0x00c8 _CY = 0x00d7 _AC = 0x00d6 _F0 = 0x00d5 _RS1 = 0x00d4 _RS0 = 0x00d3 _OV = 0x00d2 _F1 = 0x00d1 _P = 0x00d0 _CF = 0x00df _CR = 0x00de _CCF5 = 0x00dd _CCF4 = 0x00dc _CCF3 = 0x00db _CCF2 = 0x00da _CCF1 = 0x00d9 _CCF0 = 0x00d8 _AD0EN = 0x00ef _BURSTEN = 0x00ee _AD0INT = 0x00ed _AD0BUSY = 0x00ec _AD0WINT = 0x00eb _AD0CM2 = 0x00ea _AD0CM1 = 0x00e9 _AD0CM0 = 0x00e8 _SPIF0 = 0x00ff _WCOL0 = 0x00fe _MODF0 = 0x00fd _RXOVRN0 = 0x00fc _NSS0MD1 = 0x00fb _NSS0MD0 = 0x00fa _TXBMT0 = 0x00f9 _SPI0EN = 0x00f8 _LED_RED = 0x0096 _LED_GREEN = 0x0095 _PIN_CONFIG = 0x0082 _PIN_ENABLE = 0x0083 _IRQ = 0x0087 _NSS1 = 0x0094 _SDN = 0x00a6 ;-------------------------------------------------------- ; overlayable register banks ;-------------------------------------------------------- .area REG_BANK_0 (REL,OVR,DATA) .ds 8 ;-------------------------------------------------------- ; internal ram data ;-------------------------------------------------------- .area DSEG (DATA) ;-------------------------------------------------------- ; overlayable items in internal ram ;-------------------------------------------------------- .area OSEG (OVR,DATA) _mavlink_crc_length_1_146: .ds 1 _mavlink_crc_tmp_2_147: .ds 1 _mavlink_crc_sloc0_1_0: .ds 2 _mavlink_crc_sloc1_1_0: .ds 1 _mavlink_crc_sloc2_1_0: .ds 1 _mavlink_crc_sloc3_1_0: .ds 2 .area OSEG (OVR,DATA) _swap_bytes_i_1_149: .ds 1 _swap_bytes_tmp_2_150: .ds 1 ;-------------------------------------------------------- ; indirectly addressable internal ram data ;-------------------------------------------------------- .area ISEG (DATA) ;-------------------------------------------------------- ; absolute internal ram data ;-------------------------------------------------------- .area IABS (ABS,DATA) .area IABS (ABS,DATA) ;-------------------------------------------------------- ; bit data ;-------------------------------------------------------- .area BSEG (BIT) ;-------------------------------------------------------- ; paged external ram data ;-------------------------------------------------------- .area PSEG (PAG,XDATA) _seqnum: .ds 1 _mavlink_crc_i_1_146: .ds 1 _swap_bytes_PARM_2: .ds 1 ;-------------------------------------------------------- ; external ram data ;-------------------------------------------------------- .area XSEG (XDATA) ;-------------------------------------------------------- ; absolute external ram data ;-------------------------------------------------------- .area XABS (ABS,XDATA) ;-------------------------------------------------------- ; external initialized ram data ;-------------------------------------------------------- .area XISEG (XDATA) .area HOME (CODE) .area GSINIT0 (CODE) .area GSINIT1 (CODE) .area GSINIT2 (CODE) .area GSINIT3 (CODE) .area GSINIT4 (CODE) .area GSINIT5 (CODE) .area GSINIT (CODE) .area GSFINAL (CODE) .area CSEG (CODE) ;-------------------------------------------------------- ; global & static initialisations ;-------------------------------------------------------- .area HOME (CODE) .area GSINIT (CODE) .area GSFINAL (CODE) .area GSINIT (CODE) ;-------------------------------------------------------- ; Home ;-------------------------------------------------------- .area HOME (CODE) .area HOME (CODE) ;-------------------------------------------------------- ; code ;-------------------------------------------------------- .area CSEG (CODE) ;------------------------------------------------------------ ;Allocation info for local variables in function 'mavlink_crc' ;------------------------------------------------------------ ;crc_extra Allocated to registers r7 ;length Allocated with name '_mavlink_crc_length_1_146' ;tmp Allocated with name '_mavlink_crc_tmp_2_147' ;sloc0 Allocated with name '_mavlink_crc_sloc0_1_0' ;sloc1 Allocated with name '_mavlink_crc_sloc1_1_0' ;sloc2 Allocated with name '_mavlink_crc_sloc2_1_0' ;sloc3 Allocated with name '_mavlink_crc_sloc3_1_0' ;------------------------------------------------------------ ; radio/mavlink.c:58: static void mavlink_crc(register uint8_t crc_extra) ; ----------------------------------------- ; function mavlink_crc ; ----------------------------------------- _mavlink_crc: ar7 = 0x07 ar6 = 0x06 ar5 = 0x05 ar4 = 0x04 ar3 = 0x03 ar2 = 0x02 ar1 = 0x01 ar0 = 0x00 mov r7,dpl ; radio/mavlink.c:60: register uint8_t length = pbuf[1]; mov dptr,#(_pbuf + 0x0001) movx a,@dptr mov _mavlink_crc_length_1_146,a ; radio/mavlink.c:61: __pdata uint16_t sum = 0xFFFF; mov r4,#0xFF mov r5,#0xFF ; radio/mavlink.c:64: stoplen = length + 6; mov a,#0x06 add a,_mavlink_crc_length_1_146 ; radio/mavlink.c:67: pbuf[length+6] = crc_extra; mov r3,a mov r2,a add a,#_pbuf mov dpl,a clr a addc a,#(_pbuf >> 8) mov dph,a mov a,r7 movx @dptr,a ; radio/mavlink.c:68: stoplen++; inc r2 ; radio/mavlink.c:71: while (i<stoplen) { mov r0,#_mavlink_crc_i_1_146 mov a,#0x01 movx @r0,a 00101$: mov r0,#_mavlink_crc_i_1_146 clr c movx a,@r0 subb a,r2 jnc 00103$ ; radio/mavlink.c:73: tmp = pbuf[i] ^ (uint8_t)(sum&0xff); push ar2 mov r0,#_mavlink_crc_i_1_146 movx a,@r0 add a,#_pbuf mov dpl,a clr a addc a,#(_pbuf >> 8) mov dph,a movx a,@dptr mov r3,a mov _mavlink_crc_sloc0_1_0,r4 mov (_mavlink_crc_sloc0_1_0 + 1),#0x00 mov a,_mavlink_crc_sloc0_1_0 mov _mavlink_crc_sloc1_1_0,a xrl a,r3 ; radio/mavlink.c:74: tmp ^= (tmp<<4); mov _mavlink_crc_tmp_2_147,a swap a anl a,#0xF0 mov _mavlink_crc_sloc2_1_0,a xrl _mavlink_crc_tmp_2_147,a ; radio/mavlink.c:75: sum = (sum>>8) ^ (tmp<<8) ^ (tmp<<3) ^ (tmp>>4); mov _mavlink_crc_sloc3_1_0,r5 mov (_mavlink_crc_sloc3_1_0 + 1),#0x00 mov r3,_mavlink_crc_tmp_2_147 mov r6,#0x00 mov ar7,r3 mov r2,#0x00 mov a,_mavlink_crc_sloc3_1_0 xrl ar2,a mov a,(_mavlink_crc_sloc3_1_0 + 1) xrl ar7,a mov a,r6 swap a rr a anl a,#0xF8 xch a,r3 swap a rr a xch a,r3 xrl a,r3 xch a,r3 anl a,#0xF8 xch a,r3 xrl a,r3 mov r6,a mov a,r3 xrl ar2,a mov a,r6 xrl ar7,a mov a,_mavlink_crc_tmp_2_147 swap a anl a,#0x0F mov r6,a mov r3,#0x00 xrl a,r2 mov r4,a mov a,r3 xrl a,r7 mov r5,a ; radio/mavlink.c:76: i++; mov r0,#_mavlink_crc_i_1_146 movx a,@r0 add a,#0x01 movx @r0,a pop ar2 sjmp 00101$ 00103$: ; radio/mavlink.c:79: pbuf[length+6] = sum&0xFF; mov a,#0x06 add a,_mavlink_crc_length_1_146 add a,#_pbuf mov dpl,a clr a addc a,#(_pbuf >> 8) mov dph,a mov ar6,r4 mov a,r6 movx @dptr,a ; radio/mavlink.c:80: pbuf[length+7] = sum>>8; mov a,#0x07 add a,_mavlink_crc_length_1_146 add a,#_pbuf mov dpl,a clr a addc a,#(_pbuf >> 8) mov dph,a mov ar4,r5 mov a,r4 movx @dptr,a ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'swap_bytes' ;------------------------------------------------------------ ;i Allocated with name '_swap_bytes_i_1_149' ;tmp Allocated with name '_swap_bytes_tmp_2_150' ;------------------------------------------------------------ ; radio/mavlink.c:93: static void swap_bytes(__pdata uint8_t ofs, __pdata uint8_t len) __nonbanked ; ----------------------------------------- ; function swap_bytes ; ----------------------------------------- _swap_bytes: mov r7,dpl ; radio/mavlink.c:96: for (i=ofs; i<ofs+len; i+=2) { mov _swap_bytes_i_1_149,r7 00103$: mov ar4,r7 mov r5,#0x00 mov r0,#_swap_bytes_PARM_2 movx a,@r0 mov r3,#0x00 add a,r4 mov r4,a mov a,r3 addc a,r5 mov r5,a mov r2,_swap_bytes_i_1_149 mov r3,#0x00 clr c mov a,r2 subb a,r4 mov a,r3 xrl a,#0x80 mov b,r5 xrl b,#0x80 subb a,b jnc 00105$ ; radio/mavlink.c:97: register uint8_t tmp = pbuf[i]; mov a,_swap_bytes_i_1_149 add a,#_pbuf mov r4,a clr a addc a,#(_pbuf >> 8) mov r5,a mov dpl,r4 mov dph,r5 movx a,@dptr mov _swap_bytes_tmp_2_150,a ; radio/mavlink.c:98: pbuf[i] = pbuf[i+1]; mov a,_swap_bytes_i_1_149 inc a add a,#_pbuf mov r2,a clr a addc a,#(_pbuf >> 8) mov r3,a mov dpl,r2 mov dph,r3 movx a,@dptr mov r6,a mov dpl,r4 mov dph,r5 movx @dptr,a ; radio/mavlink.c:99: pbuf[i+1] = tmp; mov dpl,r2 mov dph,r3 mov a,_swap_bytes_tmp_2_150 movx @dptr,a ; radio/mavlink.c:96: for (i=ofs; i<ofs+len; i+=2) { inc _swap_bytes_i_1_149 inc _swap_bytes_i_1_149 sjmp 00103$ 00105$: ret ;------------------------------------------------------------ ;Allocation info for local variables in function 'MAVLink_report' ;------------------------------------------------------------ ;m Allocated with name '_MAVLink_report_m_1_152' ;------------------------------------------------------------ ; radio/mavlink.c:104: void MAVLink_report(void) ; ----------------------------------------- ; function MAVLink_report ; ----------------------------------------- _MAVLink_report: ; radio/mavlink.c:106: struct mavlink_RADIO_v10 *m = (struct mavlink_RADIO_v10 *)&pbuf[6]; ; radio/mavlink.c:107: pbuf[0] = MAVLINK10_STX; mov dptr,#_pbuf mov a,#0xFE movx @dptr,a ; radio/mavlink.c:108: pbuf[1] = sizeof(struct mavlink_RADIO_v10); mov dptr,#(_pbuf + 0x0001) mov a,#0x09 movx @dptr,a ; radio/mavlink.c:109: pbuf[2] = seqnum++; mov r0,#_seqnum movx a,@r0 mov r7,a mov r0,#_seqnum inc a movx @r0,a mov dptr,#(_pbuf + 0x0002) mov a,r7 movx @dptr,a ; radio/mavlink.c:110: pbuf[3] = RADIO_SOURCE_SYSTEM; mov dptr,#(_pbuf + 0x0003) mov a,#0x33 movx @dptr,a ; radio/mavlink.c:111: pbuf[4] = RADIO_SOURCE_COMPONENT; mov dptr,#(_pbuf + 0x0004) mov a,#0x44 movx @dptr,a ; radio/mavlink.c:112: pbuf[5] = MAVLINK_MSG_ID_RADIO; mov dptr,#(_pbuf + 0x0005) mov a,#0xA6 movx @dptr,a ; radio/mavlink.c:114: m->rxerrors = errors.rx_errors; mov r0,#_errors movx a,@r0 mov r6,a inc r0 movx a,@r0 mov r7,a mov dptr,#(_pbuf + 0x0006) mov a,r6 movx @dptr,a mov a,r7 inc dptr movx @dptr,a ; radio/mavlink.c:115: m->fixed = errors.corrected_packets; mov r0,#(_errors + 0x000a) movx a,@r0 mov r6,a inc r0 movx a,@r0 mov r7,a mov dptr,#(_pbuf + 0x0008) mov b,#0x00 mov a,r6 lcall __gptrput inc dptr mov a,r7 lcall __gptrput ; radio/mavlink.c:116: m->txbuf = serial_read_space(); lcall _serial_read_space mov r7,dpl mov dptr,#(_pbuf + 0x000c) mov b,#0x00 mov a,r7 lcall __gptrput ; radio/mavlink.c:121: mavlink_crc(MAVLINK_RADIO_CRC_EXTRA); mov dpl,#0x15 lcall _mavlink_crc ; radio/mavlink.c:123: if (serial_write_space() < sizeof(struct mavlink_RADIO_v10)+8) { lcall _serial_write_space mov r6,dpl mov r7,dph clr c mov a,r6 subb a,#0x11 mov a,r7 subb a,#0x00 jnc 00102$ ; radio/mavlink.c:125: return; ret 00102$: ; radio/mavlink.c:128: serial_write_buf(pbuf, sizeof(struct mavlink_RADIO_v10)+8); mov r0,#_serial_write_buf_PARM_2 mov a,#0x11 movx @r0,a mov dptr,#_pbuf lcall _serial_write_buf ; radio/mavlink.c:131: pbuf[5] = MAVLINK_MSG_ID_RADIO_STATUS; mov dptr,#(_pbuf + 0x0005) mov a,#0x6D movx @dptr,a ; radio/mavlink.c:132: mavlink_crc(MAVLINK_RADIO_STATUS_CRC_EXTRA); mov dpl,#0xB9 lcall _mavlink_crc ; radio/mavlink.c:134: if (serial_write_space() < sizeof(struct mavlink_RADIO_v10)+8) { lcall _serial_write_space mov r6,dpl mov r7,dph clr c mov a,r6 subb a,#0x11 mov a,r7 subb a,#0x00 jnc 00104$ ; radio/mavlink.c:136: return; ret 00104$: ; radio/mavlink.c:139: serial_write_buf(pbuf, sizeof(struct mavlink_RADIO_v10)+8); mov r0,#_serial_write_buf_PARM_2 mov a,#0x11 movx @r0,a mov dptr,#_pbuf ljmp _serial_write_buf .area CSEG (CODE) .area CONST (CODE) .area XINIT (CODE) .area CABS (ABS,CODE)
20.538066
98
0.618795
32099911272be35f7b6c3e212fc4260b39fd6820
17,004
ps1
PowerShell
Functions/Get-MCASActivity.ps1
gravikumar123/Cloud-App-Security
384f675039f860e0b6adf71487bd2a10fa61ed22
[ "MIT" ]
null
null
null
Functions/Get-MCASActivity.ps1
gravikumar123/Cloud-App-Security
384f675039f860e0b6adf71487bd2a10fa61ed22
[ "MIT" ]
null
null
null
Functions/Get-MCASActivity.ps1
gravikumar123/Cloud-App-Security
384f675039f860e0b6adf71487bd2a10fa61ed22
[ "MIT" ]
null
null
null
<# .Synopsis Gets user activity information from your Cloud App Security tenant. .DESCRIPTION Gets user activity information from your Cloud App Security tenant and requires a credential be provided. Without parameters, Get-MCASActivity gets 100 activity records and associated properties. You can specify a particular activity GUID to fetch a single activity's information or you can pull a list of activities based on the provided filters. Get-MCASActivity returns a single custom PS Object or multiple PS Objects with all of the activity properties. Methods available are only those available to custom objects by default. .EXAMPLE Get-MCASActivity -ResultSetSize 1 This pulls back a single activity record and is part of the 'List' parameter set. .EXAMPLE Get-MCASActivity -Identity 572caf4588011e452ec18ef0 This pulls back a single activity record using the GUID and is part of the 'Fetch' parameter set. .EXAMPLE (Get-MCASActivity -AppName Box).rawJson | ?{$_.event_type -match "upload"} | select ip_address -Unique ip_address ---------- 69.4.151.176 98.29.2.44 This grabs the last 100 Box activities, searches for an event type called "upload" in the rawJson table, and returns a list of unique IP addresses. .FUNCTIONALITY Get-MCASActivity is intended to function as a query mechanism for obtaining activity information from Cloud App Security. #> function Get-MCASActivity { [CmdletBinding()] [Alias('Get-CASActivity')] Param ( # Fetches an activity object by its unique identifier. [Parameter(ParameterSetName='Fetch', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true, Position=0)] [ValidateNotNullOrEmpty()] #[ValidatePattern("[A-Fa-f0-9_\-]{51}|[A-Za-z0-9_\-]{20}")] [alias("_id")] [string]$Identity, # Specifies the URL of your CAS tenant, for example 'contoso.portal.cloudappsecurity.com'. [Parameter(Mandatory=$false)] [ValidateScript({($_.EndsWith('.portal.cloudappsecurity.com') -or $_.EndsWith('.adallom.com'))})] [string]$TenantUri, # Specifies the CAS credential object containing the 64-character hexadecimal OAuth token used for authentication and authorization to the CAS tenant. [Parameter(Mandatory=$false)] [ValidateNotNullOrEmpty()] [System.Management.Automation.PSCredential]$Credential, # Specifies the property by which to sort the results. Possible Values: 'Date','Created'. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateSet('Date','Created')] [string]$SortBy, # Specifies the direction in which to sort the results. Possible Values: 'Ascending','Descending'. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateSet('Ascending','Descending')] [string]$SortDirection, # Specifies the maximum number of results to retrieve when listing items matching the specified filter criteria. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateRange(1,100)] [int]$ResultSetSize = 100, # Specifies the number of records, from the beginning of the result set, to skip. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateScript({$_ -gt -1})] [int]$Skip = 0, ##### FILTER PARAMS ##### # -User limits the results to items related to the specified user/users, for example 'alice@contoso.com','bob@contoso.com'. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [Alias("User")] [string[]]$UserName, # Limits the results to items related to the specified service IDs, such as 11161,11770 (for Office 365 and Google Apps, respectively). [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [Alias("Service","Services")] [int[]]$AppId, # Limits the results to items related to the specified service names, such as 'Office_365' and 'Google_Apps'. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [Alias("ServiceName","ServiceNames")] [mcas_app[]]$AppName, # Limits the results to items not related to the specified service ids, such as 11161,11770 (for Office 365 and Google Apps, respectively). [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [Alias("ServiceNot","ServicesNot")] [int[]]$AppIdNot, # Limits the results to items not related to the specified service names, such as 'Office_365' and 'Google_Apps'. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [Alias("ServiceNameNot","ServiceNamesNot")] [mcas_app[]]$AppNameNot, # Limits the results to items of specified event type name, such as EVENT_CATEGORY_LOGIN,EVENT_CATEGORY_DOWNLOAD_FILE. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [string[]]$EventTypeName, # Limits the results to items not of specified event type name, such as EVENT_CATEGORY_LOGIN,EVENT_CATEGORY_DOWNLOAD_FILE. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [string[]]$EventTypeNameNot, # Limits the results by ip category. Possible Values: 'None','Internal','Administrative','Risky','VPN','Cloud_Provider'. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [ip_category[]]$IpCategory, # Limits the results to items with the specified IP leading digits, such as 10.0. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateLength(1,45)] [string[]]$IpStartsWith, # Limits the results to items without the specified IP leading digits, such as 10.0. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateLength(1,45)] [string]$IpDoesNotStartWith, # Limits the results to items found before specified date. Use Get-Date. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [datetime]$DateBefore, # Limits the results to items found after specified date. Use Get-Date. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [datetime]$DateAfter, # Limits the results by device type. Possible Values: 'Desktop','Mobile','Tablet','Other'. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateSet('Desktop','Mobile','Tablet','Other')] [string[]]$DeviceType, # Limits the results by performing a free text search [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [ValidateScript({$_.Length -ge 5})] [string]$Text, # Limits the results to events listed for the specified File ID. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] #[ValidatePattern("\b[A-Za-z0-9]{24}\b")] [string]$FileID, # Limits the results to events listed for the specified AIP classification labels. Use ^ when denoting (external) labels. Example: @("^Private") [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [array]$FileLabel, # Limits the results to events excluded by the specified AIP classification labels. Use ^ when denoting (external) labels. Example: @("^Private") [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [array]$FileLabelNot, # Limits the results to events listed for the specified IP Tags. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] [validateset("Anonymous_Proxy","Botnet","Darknet_Scanning_IP","Exchange_Online","Exchang_Online_Protection","Malware_CnC_Server","Microsoft_Cloud","Microsoft_Authentication_and_Identity","Office_365","Office_365_Planner","Office_365_ProPlus","Office_Online","Office_Sway","Office_Web_Access_Companion","OneNote","Remote_Connectivity_Analyzer","Satellite_Provider","SharePoint_Online","Skype_for_Business_Online","Smart_Proxy_and_Access_Proxy_Network","Tor","Yammer","Zscaler")] [string[]]$IPTag, # Limits the results to events that include a country code value. [Parameter(ParameterSetName='List', Mandatory=$false)] [switch]$CountryCodePresent, # Limits the results to events listed for the specified IP Tags. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateNotNullOrEmpty()] #[ValidatePattern("[A-Fa-f0-9]{24}")] [string]$PolicyId, # Limits the results to items occuring in the last x number of days. [Parameter(ParameterSetName='List', Mandatory=$false)] [ValidateRange(1,180)] [int]$DaysAgo, # Limits the results to admin events if specified. [Parameter(ParameterSetName='List', Mandatory=$false)] [switch]$AdminEvents, # Limits the results to non-admin events if specified. [Parameter(ParameterSetName='List', Mandatory=$false)] [switch]$NonAdminEvents, # Limits the results to impersonated events if specified. [Parameter(ParameterSetName='List', Mandatory=$false)] [switch]$Impersonated, # Limits the results to non-impersonated events if specified. [Parameter(ParameterSetName='List', Mandatory=$false)] [switch]$ImpersonatedNot ) Begin { Try {$TenantUri = Select-MCASTenantUri} Catch {Throw $_} Try {$Token = Select-MCASToken} Catch {Throw $_} } Process { # Fetch mode should happen once for each item from the pipeline, so it goes in the 'Process' block If ($PSCmdlet.ParameterSetName -eq 'Fetch') { Try { # Fetch the item by its id $Response = Invoke-MCASRestMethod2 -Uri "https://$TenantUri/api/v1/activities/$Identity/" -Method Get -Token $Token } Catch { Throw $_ #Exception handling is in Invoke-MCASRestMethod, so here we just want to throw it back up the call stack, with no additional logic } $Response = $Response.content | ConvertFrom-Json If (($Response | Get-Member).name -contains '_id') { $Response = $Response | Add-Member -MemberType AliasProperty -Name Identity -Value _id -PassThru } $Response } } End { If ($PSCmdlet.ParameterSetName -eq 'List') # Only run remainder of this end block if not in fetch mode { # List mode logic only needs to happen once, so it goes in the 'End' block for efficiency $Body = @{'skip'=$Skip;'limit'=$ResultSetSize} # Base request body #region ----------------------------SORTING---------------------------- If ($SortBy -xor $SortDirection) {Throw 'Error: When specifying either the -SortBy or the -SortDirection parameters, you must specify both parameters.'} # Add sort direction to request body, if specified If ($SortDirection) {$Body.Add('sortDirection',$SortDirection.TrimEnd('ending').ToLower())} # Add sort field to request body, if specified If ($SortBy) { $Body.Add('sortField',$SortBy.ToLower()) } #endregion ----------------------------SORTING---------------------------- #region ----------------------------FILTERING---------------------------- $FilterSet = @() # Filter set array # Additional function for date conversion to unix format. If ($DateBefore) {$DateBefore2 = ([int](Get-Date -Date $DateBefore -UFormat %s)*1000)} If ($DateAfter) {$DateAfter2 = ([int](Get-Date -Date $DateAfter -UFormat %s)*1000)} # Additional parameter validations and mutual exclusions If ($AppName -and ($AppId -or $AppNameNot -or $AppIdNot)) {Throw 'Cannot reconcile app parameters. Only use one of them at a time.'} If ($AppId -and ($AppName -or $AppNameNot -or $AppIdNot)) {Throw 'Cannot reconcile app parameters. Only use one of them at a time.'} If ($AppNameNot -and ($AppId -or $AppName -or $AppIdNot)) {Throw 'Cannot reconcile app parameters. Only use one of them at a time.'} If ($AppIdNot -and ($AppId -or $AppNameNot -or $AppName)) {Throw 'Cannot reconcile app parameters. Only use one of them at a time.'} If (($DateBefore -and $DateAfter) -or ($DateBefore -and $DaysAgo) -or ($DateAfter -and $DaysAgo)){Throw 'Cannot reconcile app parameters. Only use one date parameter.'} If ($Impersonated -and $ImpersonatedNot){Throw 'Cannot reconcile app parameters. Do not combine Impersonated and ImpersonatedNot parameters.'} # Value-mapped filters If ($IpCategory) {$FilterSet += @{'ip.category'=@{'eq'=([int[]]($IpCategory | ForEach-Object {$_ -as [int]}))}}} If ($AppName) {$FilterSet += @{'service'=@{'eq'=([int[]]($AppName | ForEach-Object {$_ -as [int]}))}}} If ($AppNameNot) {$FilterSet += @{'service'=@{'neq'=([int[]]($AppNameNot | ForEach-Object {$_ -as [int]}))}}} If ($IPTag) {$FilterSet += @{'ip.tags'= @{'eq'=($IPTag.GetEnumerator() | ForEach-Object {$IPTagsList.$_ -join ','})}}} # Simple filters If ($UserName) {$FilterSet += @{'user.username'= @{'eq'=$UserName}}} If ($AppId) {$FilterSet += @{'service'= @{'eq'=$AppId}}} If ($AppIdNot) {$FilterSet += @{'service'= @{'neq'=$AppIdNot}}} If ($EventTypeName) {$FilterSet += @{'activity.actionType'= @{'eq'=$EventTypeName}}} If ($EventTypeNameNot) {$FilterSet += @{'activity.actionType'= @{'neq'=$EventTypeNameNot}}} If ($CountryCodePresent) {$FilterSet += @{'location.country'= @{'isset'=$true}}} If ($DeviceType) {$FilterSet += @{'device.type'= @{'eq'=$DeviceType.ToUpper()}}} # CAS API expects upper case here If ($UserAgentContains) {$FilterSet += @{'userAgent.userAgent'= @{'contains'=$UserAgentContains}}} If ($UserAgentNotContains) {$FilterSet += @{'userAgent.userAgent'= @{'ncontains'=$UserAgentNotContains}}} If ($IpStartsWith) {$FilterSet += @{'ip.address'= @{'startswith'=$IpStartsWith}}} If ($IpDoesNotStartWith) {$FilterSet += @{'ip.address'= @{'doesnotstartwith'=$IpStartsWith}}} If ($Text) {$FilterSet += @{'text'= @{'text'=$Text}}} If ($DaysAgo) {$FilterSet += @{'date'= @{'gte_ndays'=$DaysAgo}}} If ($Impersonated) {$FilterSet += @{'activity.impersonated' = @{'eq'=$true}}} If ($ImpersonatedNot) {$FilterSet += @{'activity.impersonated' = @{'eq'=$false}}} If ($FileID) {$FilterSet += @{'fileSelector'= @{'eq'=$FileID}}} If ($FileLabel) {$FilterSet += @{'fileLabels'= @{'eq'=$FileLabel}}} If ($PolicyId) {$FilterSet += @{'policy'= @{'eq'=$PolicyId}}} If ($DateBefore -and (-not $DateAfter)) {$FilterSet += @{'date'= @{'lte'=$DateBefore2}}} If ($DateAfter -and (-not $DateBefore)) {$FilterSet += @{'date'= @{'gte'=$DateAfter2}}} # boolean filters If ($AdminEvents) {$FilterSet += @{'activity.type'= @{'eq'=$true}}} If ($NonAdminEvents) {$FilterSet += @{'activity.type'= @{'eq'=$false}}} #endregion ----------------------------FILTERING---------------------------- # Get the matching items and handle errors Try { $Response = Invoke-MCASRestMethod2 -Uri "https://$TenantUri/api/v1/activities/" -Body $Body -Method Post -Token $Token -FilterSet $FilterSet } Catch { Throw $_ #Exception handling is in Invoke-MCASRestMethod, so here we just want to throw it back up the call stack, with no additional logic } $Response = $Response.content $Response = $Response | ConvertFrom-Json $Response = Invoke-MCASResponseHandling -Response $Response $Response } } }
51.841463
485
0.616267
cb5a7a2a55104663ac7c6b7def797dbebdac4413
17,406
html
HTML
app/content/texts/grc_sblgnt/C19.html
binu-alexander/thevachanonlineproject
33c318bfc8b37de035d9c8e6b2a9bf8dea153b98
[ "MIT" ]
5
2019-12-18T05:17:19.000Z
2020-04-04T07:07:21.000Z
app/content/texts/grc_sblgnt/C19.html
binu-alexander/thevachanonlineproject
33c318bfc8b37de035d9c8e6b2a9bf8dea153b98
[ "MIT" ]
1
2020-04-30T01:25:38.000Z
2020-04-30T01:25:38.000Z
app/content/texts/grc_sblgnt/C19.html
binu-alexander/thevachanonlineproject
33c318bfc8b37de035d9c8e6b2a9bf8dea153b98
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <title>ΚΟΡΙΝΘΙΟΥΣ Α΄ 9 (SBLGNT)</title> <link href="../../../build/mobile.css" rel="stylesheet" /> <script src="../../../build/mobile.js"></script> </head> <body dir="ltr" class="section-document"> <div class="header"><div class="nav"> <a class="name" href="C1.html">SBL Greek New Testament</a><a class="location" href="C1.html">ΚΟΡΙΝΘΙΟΥΣ Α΄ 9</a><a class="prev" href="C18.html">&lt;</a> <a class="home" href="index.html">=</a> <a class="next" href="C110.html">&gt;</a> </div></div> <div class="section chapter C1 C19 grc_sblgnt grc " dir="ltr" lang="el" data-id="C19" data-nextid="C110" data-previd="C18"><br> <div class="c">9</div> <div class="p"> <span class="v-num v-1 " data-id="bibleJsn">1&nbsp;</span><span class="v C19_1" data-id="C19_1"><l m="X-">Οὐκ</l> <l s="G1510" m="V-1PAIS">εἰμὶ</l> <l s="G1658" m="A-NSM">⸂ἐλεύθερος;</l> <l m="X-">οὐκ</l> <l s="G1510" m="V-1PAIS">εἰμὶ</l> <l s="G652" m="N-NSM">ἀπόστολος⸃;</l> <l s="G3780" m="X-">οὐχὶ</l> <l s="G2424" m="N-ASM">⸀Ἰησοῦν</l> <l m="RA-ASM">τὸν</l> <l s="G2962" m="N-ASM">κύριον</l> <l s="G1473" m="RP-GP">ἡμῶν</l> <l s="G3708" m="V-1XAIS">ἑόρακα;</l> <l m="X-">οὐ</l> <l m="RA-NSN">τὸ</l> <l s="G2041" m="N-NSN">ἔργον</l> <l s="G1473" m="RP-GS">μου</l> <l s="G4771" m="RP-NP">ὑμεῖς</l> <l s="G1510" m="V-2PAIP">ἐστε</l> <l s="G1722" m="P-">ἐν</l> <l s="G2962" m="N-DSM">κυρίῳ;</l> </span> <span class="v-num v-2 " data-id="bibleJsn">2&nbsp;</span><span class="v C19_2" data-id="C19_2"><l s="G1487" m="C-">εἰ</l> <l s="G243" m="A-DPM">ἄλλοις</l> <l m="D-">οὐκ</l> <l s="G1510" m="V-1PAIS">εἰμὶ</l> <l s="G652" m="N-NSM">ἀπόστολος,</l> <l s="G235" m="C-">ἀλλά</l> <l s="G1065" m="X-">γε</l> <l s="G4771" m="RP-DP">ὑμῖν</l> <l s="G1510" m="V-1PAIS">εἰμι,</l> <l m="RA-NSF">ἡ</l> <l s="G1063" m="C-">γὰρ</l> <l s="G4973" m="N-NSF">σφραγίς</l> <l s="G1473" m="RP-GS">⸂μου</l> <l m="RA-GSF">τῆς⸃</l> <l s="G651" m="N-GSF">ἀποστολῆς</l> <l s="G4771" m="RP-NP">ὑμεῖς</l> <l s="G1510" m="V-2PAIP">ἐστε</l> <l s="G1722" m="P-">ἐν</l> <l s="G2962" m="N-DSM">κυρίῳ.</l> </span> <span class="v-num v-3 " data-id="bibleJsn">3&nbsp;</span><span class="v C19_3" data-id="C19_3"><l m="RA-NSF">Ἡ</l> <l s="G1699" m="A-NSF">ἐμὴ</l> <l s="G627" m="N-NSF">ἀπολογία</l> <l m="RA-DPM">τοῖς</l> <l s="G1473" m="RP-AS">ἐμὲ</l> <l s="G350" m="V-PAPDPM">ἀνακρίνουσίν</l> <l s="G1510" m="V-3PAIS">⸂ἐστιν</l> <l m="RD-NSF">αὕτη⸃.</l> </span> <span class="v-num v-4 " data-id="bibleJsn">4&nbsp;</span><span class="v C19_4" data-id="C19_4"><l s="G3361" m="X-">μὴ</l> <l m="D-">οὐκ</l> <l m="V-1PAIP">ἔχομεν</l> <l s="G1849" m="N-ASF">ἐξουσίαν</l> <l s="G2068" m="V-AAN">φαγεῖν</l> <l s="G2532" m="C-">καὶ</l> <l s="G4095" m="V-AAN">⸀πεῖν;</l> </span> <span class="v-num v-5 " data-id="bibleJsn">5&nbsp;</span><span class="v C19_5" data-id="C19_5"><l s="G3361" m="X-">μὴ</l> <l m="D-">οὐκ</l> <l m="V-1PAIP">ἔχομεν</l> <l s="G1849" m="N-ASF">ἐξουσίαν</l> <l s="G79" m="N-ASF">ἀδελφὴν</l> <l s="G1135" m="N-ASF">γυναῖκα</l> <l s="G4013" m="V-PAN">περιάγειν,</l> <l s="G5613" m="C-">ὡς</l> <l s="G2532" m="D-">καὶ</l> <l m="RA-NPM">οἱ</l> <l m="A-NPM">λοιποὶ</l> <l s="G652" m="N-NPM">ἀπόστολοι</l> <l s="G2532" m="C-">καὶ</l> <l m="RA-NPM">οἱ</l> <l s="G80" m="N-NPM">ἀδελφοὶ</l> <l m="RA-GSM">τοῦ</l> <l s="G2962" m="N-GSM">κυρίου</l> <l s="G2532" m="C-">καὶ</l> <l s="G2786" m="N-NSM">Κηφᾶς;</l> </span> <span class="v-num v-6 " data-id="bibleJsn">6&nbsp;</span><span class="v C19_6" data-id="C19_6"><l s="G2228" m="C-">ἢ</l> <l s="G3441" m="A-NSM">μόνος</l> <l s="G1473" m="RP-NS">ἐγὼ</l> <l s="G2532" m="C-">καὶ</l> <l m="N-NSM">Βαρναβᾶς</l> <l m="X-">οὐκ</l> <l m="V-1PAIP">ἔχομεν</l> <l s="G1849" m="N-ASF">ἐξουσίαν</l> <l s="G3361" m="D-">⸀μὴ</l> <l s="G2038" m="V-PMN">ἐργάζεσθαι;</l> </span> <span class="v-num v-7 " data-id="bibleJsn">7&nbsp;</span><span class="v C19_7" data-id="C19_7"><l s="G5101" m="RI-NSM">τίς</l> <l s="G4754" m="V-3PMIS">στρατεύεται</l> <l s="G2398" m="A-DPN">ἰδίοις</l> <l s="G3800" m="N-DPN">ὀψωνίοις</l> <l s="G4218" m="X-">ποτέ;</l> <l s="G5101" m="RI-NSM">τίς</l> <l s="G5452" m="V-3PAIS">φυτεύει</l> <l s="G290" m="N-ASM">ἀμπελῶνα</l> <l s="G2532" m="C-">καὶ</l> <l m="RA-ASM">⸂τὸν</l> <l s="G2590" m="N-ASM">καρπὸν⸃</l> <l s="G846" m="RP-GSM">αὐτοῦ</l> <l m="D-">οὐκ</l> <l s="G2068" m="V-3PAIS">ἐσθίει;</l> <l s="G5101" m="RI-NSM">⸀τίς</l> <l s="G4165" m="V-3PAIS">ποιμαίνει</l> <l s="G4167" m="N-ASF">ποίμνην</l> <l s="G2532" m="C-">καὶ</l> <l m="P-">ἐκ</l> <l m="RA-GSN">τοῦ</l> <l s="G1051" m="N-GSN">γάλακτος</l> <l m="RA-GSF">τῆς</l> <l s="G4167" m="N-GSF">ποίμνης</l> <l m="D-">οὐκ</l> <l s="G2068" m="V-3PAIS">ἐσθίει;</l> </span> <span class="v-num v-8 " data-id="bibleJsn">8&nbsp;</span><span class="v C19_8" data-id="C19_8"><l s="G3361" m="X-">Μὴ</l> <l s="G2596" m="P-">κατὰ</l> <l s="G444" m="N-ASM">ἄνθρωπον</l> <l m="RD-APN">ταῦτα</l> <l s="G2980" m="V-1PAIS">λαλῶ</l> <l s="G2228" m="C-">ἢ</l> <l s="G2532" m="D-">⸂καὶ</l> <l m="RA-NSM">ὁ</l> <l s="G3551" m="N-NSM">νόμος</l> <l m="RD-APN">ταῦτα</l> <l m="X-">οὐ⸃</l> <l s="G3004" m="V-3PAIS">λέγει;</l> </span> <span class="v-num v-9 " data-id="bibleJsn">9&nbsp;</span><span class="v C19_9" data-id="C19_9"><l s="G1722" m="P-">ἐν</l> <l s="G1063" m="C-">γὰρ</l> <l m="RA-DSM">τῷ</l> <l s="G3475" m="N-GSM">Μωϋσέως</l> <l s="G3551" m="N-DSM">νόμῳ</l> <l s="G1125" m="V-3XPIS">γέγραπται·</l> <l m="D-">Οὐ</l> <l m="V-2FAIS">⸀κημώσεις</l> <l s="G1016" m="N-ASM">βοῦν</l> <l s="G248" m="V-PAPASM">ἀλοῶντα.</l> <l s="G3361" m="X-">μὴ</l> <l m="RA-GPM">τῶν</l> <l s="G1016" m="N-GPM">βοῶν</l> <l m="V-3PAIS">μέλει</l> <l m="RA-DSM">τῷ</l> <l s="G2316" m="N-DSM">θεῷ,</l> </span> <span class="v-num v-10 " data-id="bibleJsn">10&nbsp;</span><span class="v C19_10" data-id="C19_10"><l s="G2228" m="C-">ἢ</l> <l s="G1223" m="P-">δι’</l> <l s="G1473" m="RP-AP">ἡμᾶς</l> <l s="G3843" m="D-">πάντως</l> <l s="G3004" m="V-3PAIS">λέγει;</l> <l s="G1223" m="P-">δι’</l> <l s="G1473" m="RP-AP">ἡμᾶς</l> <l s="G1063" m="C-">γὰρ</l> <l s="G1125" m="V-3APIS">ἐγράφη,</l> <l s="G3748" m="C-">ὅτι</l> <l m="V-3PAIS">⸂ὀφείλει</l> <l s="G1909" m="P-">ἐπ’</l> <l s="G1680" m="N-DSF">ἐλπίδι⸃</l> <l m="RA-NSM">ὁ</l> <l m="V-PAPNSM">ἀροτριῶν</l> <l m="V-PAN">ἀροτριᾶν,</l> <l s="G2532" m="C-">καὶ</l> <l m="RA-NSM">ὁ</l> <l s="G248" m="V-PAPNSM">ἀλοῶν</l> <l s="G1909" m="P-">⸂ἐπ’</l> <l s="G1680" m="N-DSF">ἐλπίδι</l> <l m="RA-GSN">τοῦ</l> <l s="G3348" m="V-PAN">μετέχειν⸃.</l> </span> <span class="v-num v-11 " data-id="bibleJsn">11&nbsp;</span><span class="v C19_11" data-id="C19_11"><l s="G1487" m="C-">εἰ</l> <l s="G1473" m="RP-NP">ἡμεῖς</l> <l s="G4771" m="RP-DP">ὑμῖν</l> <l m="RA-APN">τὰ</l> <l s="G4152" m="A-APN">πνευματικὰ</l> <l s="G4687" m="V-1AAIP">ἐσπείραμεν,</l> <l s="G3173" m="A-NSN">μέγα</l> <l s="G1487" m="C-">εἰ</l> <l s="G1473" m="RP-NP">ἡμεῖς</l> <l s="G4771" m="RP-GP">ὑμῶν</l> <l m="RA-APN">τὰ</l> <l s="G4559" m="A-APN">σαρκικὰ</l> <l s="G2325" m="V-1FAIP">θερίσομεν;</l> </span> <span class="v-num v-12 " data-id="bibleJsn">12&nbsp;</span><span class="v C19_12" data-id="C19_12"><l s="G1487" m="C-">εἰ</l> <l s="G243" m="A-NPM">ἄλλοι</l> <l m="RA-GSF">τῆς</l> <l s="G4771" m="RP-GP">⸂ὑμῶν</l> <l s="G1849" m="N-GSF">ἐξουσίας⸃</l> <l s="G3348" m="V-3PAIP">μετέχουσιν,</l> <l m="X-">οὐ</l> <l s="G3123" m="D-">μᾶλλον</l> <l s="G1473" m="RP-NP">ἡμεῖς;</l> <l s="G235" m="C-">Ἀλλ’</l> <l m="D-">οὐκ</l> <l s="G5530" m="V-1AMIP">ἐχρησάμεθα</l> <l m="RA-DSF">τῇ</l> <l s="G1849" m="N-DSF">ἐξουσίᾳ</l> <l m="RD-DSF">ταύτῃ,</l> <l s="G235" m="C-">ἀλλὰ</l> <l s="G3956" m="A-APN">πάντα</l> <l s="G4722" m="V-1PAIP">στέγομεν</l> <l s="G2443" m="C-">ἵνα</l> <l s="G3361" m="D-">μή</l> <l m="RI-ASF">⸂τινα</l> <l s="G1464" m="N-ASF">ἐγκοπὴν⸃</l> <l s="G1325" m="V-1AASP">δῶμεν</l> <l m="RA-DSN">τῷ</l> <l s="G2098" m="N-DSN">εὐαγγελίῳ</l> <l m="RA-GSM">τοῦ</l> <l s="G5547" m="N-GSM">Χριστοῦ.</l> </span> <span class="v-num v-13 " data-id="bibleJsn">13&nbsp;</span><span class="v C19_13" data-id="C19_13"><l m="D-">οὐκ</l> <l m="V-2XAIP">οἴδατε</l> <l s="G3748" m="C-">ὅτι</l> <l m="RA-NPM">οἱ</l> <l m="RA-APN">τὰ</l> <l s="G2413" m="A-APN">ἱερὰ</l> <l s="G2038" m="V-PMPNPM">ἐργαζόμενοι</l> <l m="RA-APN">⸀τὰ</l> <l m="P-">ἐκ</l> <l m="RA-GSN">τοῦ</l> <l s="G2413" m="A-GSN">ἱεροῦ</l> <l s="G2068" m="V-3PAIP">ἐσθίουσιν,</l> <l m="RA-NPM">οἱ</l> <l m="RA-DSN">τῷ</l> <l s="G2379" m="N-DSN">θυσιαστηρίῳ</l> <l m="V-PAPNPM">⸀παρεδρεύοντες</l> <l m="RA-DSN">τῷ</l> <l s="G2379" m="N-DSN">θυσιαστηρίῳ</l> <l s="G4829" m="V-3PMIP">συμμερίζονται;</l> </span> <span class="v-num v-14 " data-id="bibleJsn">14&nbsp;</span><span class="v C19_14" data-id="C19_14"><l m="D-">οὕτως</l> <l s="G2532" m="D-">καὶ</l> <l m="RA-NSM">ὁ</l> <l s="G2962" m="N-NSM">κύριος</l> <l s="G1299" m="V-3AAIS">διέταξεν</l> <l m="RA-DPM">τοῖς</l> <l m="RA-ASN">τὸ</l> <l s="G2098" m="N-ASN">εὐαγγέλιον</l> <l s="G2605" m="V-PAPDPM">καταγγέλλουσιν</l> <l m="P-">ἐκ</l> <l m="RA-GSN">τοῦ</l> <l s="G2098" m="N-GSN">εὐαγγελίου</l> <l s="G2198" m="V-PAN">ζῆν.</l> </span> <span class="v-num v-15 " data-id="bibleJsn">15&nbsp;</span><span class="v C19_15" data-id="C19_15"><l s="G1473" m="RP-NS">Ἐγὼ</l> <l s="G1161" m="C-">δὲ</l> <l m="D-">⸂οὐ</l> <l s="G5530" m="V-1XMIS">κέχρημαι</l> <l m="A-DSM">οὐδενὶ⸃</l> <l m="RD-GPN">τούτων.</l> <l m="D-">οὐκ</l> <l s="G1125" m="V-1AAIS">ἔγραψα</l> <l s="G1161" m="C-">δὲ</l> <l m="RD-APN">ταῦτα</l> <l s="G2443" m="C-">ἵνα</l> <l m="D-">οὕτως</l> <l s="G1096" m="V-3AMSS">γένηται</l> <l s="G1722" m="P-">ἐν</l> <l s="G1473" m="RP-DS">ἐμοί,</l> <l s="G2570" m="A-NSN">καλὸν</l> <l s="G1063" m="C-">γάρ</l> <l s="G1473" m="RP-DS">μοι</l> <l s="G3123" m="D-">μᾶλλον</l> <l m="V-AAN">ἀποθανεῖν</l> <l s="G2228" m="C-">ἤ—</l> <l m="RA-ASN">τὸ</l> <l s="G2745" m="N-ASN">καύχημά</l> <l s="G1473" m="RP-GS">μου</l> <l m="A-NSM">⸂οὐδεὶς</l> <l s="G2758" m="V-3FAIS">κενώσει⸃.</l> </span> <span class="v-num v-16 " data-id="bibleJsn">16&nbsp;</span><span class="v C19_16" data-id="C19_16"><l s="G1437" m="C-">ἐὰν</l> <l s="G1063" m="C-">γὰρ</l> <l s="G2097" m="V-1PMSS">εὐαγγελίζωμαι,</l> <l m="D-">οὐκ</l> <l s="G1510" m="V-3PAIS">ἔστιν</l> <l s="G1473" m="RP-DS">μοι</l> <l s="G2745" m="N-NSN">καύχημα,</l> <l s="G318" m="N-NSF">ἀνάγκη</l> <l s="G1063" m="C-">γάρ</l> <l s="G1473" m="RP-DS">μοι</l> <l s="G1945" m="V-3PMIS">ἐπίκειται·</l> <l s="G3759" m="X-">οὐαὶ</l> <l s="G1063" m="C-">⸀γάρ</l> <l s="G1473" m="RP-DS">μοί</l> <l s="G1510" m="V-3PAIS">ἐστιν</l> <l s="G1437" m="C-">ἐὰν</l> <l s="G3361" m="D-">μὴ</l> <l s="G2097" m="V-1AMSS">⸀εὐαγγελίσωμαι.</l> </span> <span class="v-num v-17 " data-id="bibleJsn">17&nbsp;</span><span class="v C19_17" data-id="C19_17"><l s="G1487" m="C-">εἰ</l> <l s="G1063" m="C-">γὰρ</l> <l s="G1635" m="A-NSM">ἑκὼν</l> <l m="RD-ASN">τοῦτο</l> <l s="G4238" m="V-1PAIS">πράσσω,</l> <l s="G3408" m="N-ASM">μισθὸν</l> <l m="V-1PAIS">ἔχω·</l> <l s="G1487" m="C-">εἰ</l> <l s="G1161" m="C-">δὲ</l> <l s="G210" m="A-NSM">ἄκων,</l> <l s="G3622" m="N-ASF">οἰκονομίαν</l> <l s="G4100" m="V-1XPIS">πεπίστευμαι.</l> </span> <span class="v-num v-18 " data-id="bibleJsn">18&nbsp;</span><span class="v C19_18" data-id="C19_18"><l s="G5101" m="RI-NSM">τίς</l> <l s="G3767" m="C-">οὖν</l> <l s="G1473" m="RP-GS">⸀μού</l> <l s="G1510" m="V-3PAIS">ἐστιν</l> <l m="RA-NSM">ὁ</l> <l s="G3408" m="N-NSM">μισθός;</l> <l s="G2443" m="C-">ἵνα</l> <l s="G2097" m="V-PMPNSM">εὐαγγελιζόμενος</l> <l s="G77" m="A-ASN">ἀδάπανον</l> <l s="G5087" m="V-1AASS">θήσω</l> <l m="RA-ASN">τὸ</l> <l s="G2098" m="N-ASN">⸀εὐαγγέλιον,</l> <l s="G1519" m="P-">εἰς</l> <l m="RA-ASN">τὸ</l> <l s="G3361" m="D-">μὴ</l> <l s="G2710" m="V-AMN">καταχρήσασθαι</l> <l m="RA-DSF">τῇ</l> <l s="G1849" m="N-DSF">ἐξουσίᾳ</l> <l s="G1473" m="RP-GS">μου</l> <l s="G1722" m="P-">ἐν</l> <l m="RA-DSN">τῷ</l> <l s="G2098" m="N-DSN">εὐαγγελίῳ.</l> </span> <span class="v-num v-19 " data-id="bibleJsn">19&nbsp;</span><span class="v C19_19" data-id="C19_19"><l s="G1658" m="A-NSM">Ἐλεύθερος</l> <l s="G1063" m="C-">γὰρ</l> <l s="G1510" m="V-PAPNSM">ὢν</l> <l m="P-">ἐκ</l> <l s="G3956" m="A-GPM">πάντων</l> <l s="G3956" m="A-DPM">πᾶσιν</l> <l s="G1683" m="RP-ASM">ἐμαυτὸν</l> <l s="G1402" m="V-1AAIS">ἐδούλωσα,</l> <l s="G2443" m="C-">ἵνα</l> <l m="RA-APM">τοὺς</l> <l s="G4183" m="A-APMC">πλείονας</l> <l s="G2770" m="V-1AASS">κερδήσω·</l> </span> <span class="v-num v-20 " data-id="bibleJsn">20&nbsp;</span><span class="v C19_20" data-id="C19_20"><l s="G2532" m="C-">καὶ</l> <l s="G1096" m="V-1AMIS">ἐγενόμην</l> <l m="RA-DPM">τοῖς</l> <l s="G2453" m="A-DPM">Ἰουδαίοις</l> <l s="G5613" m="C-">ὡς</l> <l s="G2453" m="A-NSM">Ἰουδαῖος,</l> <l s="G2443" m="C-">ἵνα</l> <l s="G2453" m="A-APM">Ἰουδαίους</l> <l s="G2770" m="V-1AASS">κερδήσω·</l> <l m="RA-DPM">τοῖς</l> <l s="G5259" m="P-">ὑπὸ</l> <l s="G3551" m="N-ASM">νόμον</l> <l s="G5613" m="C-">ὡς</l> <l s="G5259" m="P-">ὑπὸ</l> <l s="G3551" m="N-ASM">νόμον,</l> <l s="G3361" m="D-">⸂μὴ</l> <l s="G1510" m="V-PAPNSM">ὢν</l> <l s="G846" m="RP-NSM">αὐτὸς</l> <l s="G5259" m="P-">ὑπὸ</l> <l s="G3551" m="N-ASM">νόμον⸃,</l> <l s="G2443" m="C-">ἵνα</l> <l m="RA-APM">τοὺς</l> <l s="G5259" m="P-">ὑπὸ</l> <l s="G3551" m="N-ASM">νόμον</l> <l s="G2770" m="V-1AASS">κερδήσω·</l> </span> <span class="v-num v-21 " data-id="bibleJsn">21&nbsp;</span><span class="v C19_21" data-id="C19_21"><l m="RA-DPM">τοῖς</l> <l s="G459" m="A-DPM">ἀνόμοις</l> <l s="G5613" m="C-">ὡς</l> <l s="G459" m="A-NSM">ἄνομος,</l> <l s="G3361" m="D-">μὴ</l> <l s="G1510" m="V-PAPNSM">ὢν</l> <l s="G459" m="A-NSM">ἄνομος</l> <l s="G2316" m="N-GSM">⸀θεοῦ</l> <l s="G235" m="C-">ἀλλ’</l> <l s="G1772" m="A-NSM">ἔννομος</l> <l s="G5547" m="N-GSM">⸀Χριστοῦ,</l> <l s="G2443" m="C-">ἵνα</l> <l s="G2770" m="V-1AASS">⸀κερδάνω</l> <l m="RA-APM">⸀τοὺς</l> <l s="G459" m="A-APM">ἀνόμους·</l> </span> <span class="v-num v-22 " data-id="bibleJsn">22&nbsp;</span><span class="v C19_22" data-id="C19_22"><l s="G1096" m="V-1AMIS">ἐγενόμην</l> <l m="RA-DPM">τοῖς</l> <l s="G772" m="A-DPM">⸀ἀσθενέσιν</l> <l s="G772" m="A-NSM">ἀσθενής,</l> <l s="G2443" m="C-">ἵνα</l> <l m="RA-APM">τοὺς</l> <l s="G772" m="A-APM">ἀσθενεῖς</l> <l s="G2770" m="V-1AASS">κερδήσω·</l> <l m="RA-DPM">τοῖς</l> <l s="G3956" m="A-DPM">πᾶσιν</l> <l s="G1096" m="V-1XAIS">⸀γέγονα</l> <l s="G3956" m="A-NPN">πάντα,</l> <l s="G2443" m="C-">ἵνα</l> <l s="G3843" m="D-">πάντως</l> <l m="RI-APM">τινὰς</l> <l m="V-1AASS">σώσω.</l> </span> <span class="v-num v-23 " data-id="bibleJsn">23&nbsp;</span><span class="v C19_23" data-id="C19_23"><l s="G3956" m="A-APN">⸀πάντα</l> <l s="G1161" m="C-">δὲ</l> <l s="G4160" m="V-1PAIS">ποιῶ</l> <l s="G1223" m="P-">διὰ</l> <l m="RA-ASN">τὸ</l> <l s="G2098" m="N-ASN">εὐαγγέλιον,</l> <l s="G2443" m="C-">ἵνα</l> <l s="G4791" m="N-NSM">συγκοινωνὸς</l> <l s="G846" m="RP-GSN">αὐτοῦ</l> <l s="G1096" m="V-1AMSS">γένωμαι.</l> </span> <span class="v-num v-24 " data-id="bibleJsn">24&nbsp;</span><span class="v C19_24" data-id="C19_24"><l m="D-">Οὐκ</l> <l m="V-2XAIP">οἴδατε</l> <l s="G3748" m="C-">ὅτι</l> <l m="RA-NPM">οἱ</l> <l s="G1722" m="P-">ἐν</l> <l m="N-DSN">σταδίῳ</l> <l s="G5143" m="V-PAPNPM">τρέχοντες</l> <l s="G3956" m="A-NPM">πάντες</l> <l s="G3303" m="C-">μὲν</l> <l s="G5143" m="V-3PAIP">τρέχουσιν,</l> <l s="G1520" m="A-NSM">εἷς</l> <l s="G1161" m="C-">δὲ</l> <l s="G2983" m="V-3PAIS">λαμβάνει</l> <l m="RA-ASN">τὸ</l> <l s="G1017" m="N-ASN">βραβεῖον;</l> <l m="D-">οὕτως</l> <l s="G5143" m="V-2PADP">τρέχετε</l> <l s="G2443" m="C-">ἵνα</l> <l s="G2638" m="V-2AASP">καταλάβητε.</l> </span> <span class="v-num v-25 " data-id="bibleJsn">25&nbsp;</span><span class="v C19_25" data-id="C19_25"><l s="G3956" m="A-NSM">πᾶς</l> <l s="G1161" m="C-">δὲ</l> <l m="RA-NSM">ὁ</l> <l s="G75" m="V-PMPNSM">ἀγωνιζόμενος</l> <l s="G3956" m="A-APN">πάντα</l> <l s="G1467" m="V-3PMIS">ἐγκρατεύεται,</l> <l s="G1565" m="RD-NPM">ἐκεῖνοι</l> <l s="G3303" m="C-">μὲν</l> <l s="G3767" m="C-">οὖν</l> <l s="G2443" m="C-">ἵνα</l> <l s="G5349" m="A-ASM">φθαρτὸν</l> <l s="G4735" m="N-ASM">στέφανον</l> <l s="G2983" m="V-3AASP">λάβωσιν,</l> <l s="G1473" m="RP-NP">ἡμεῖς</l> <l s="G1161" m="C-">δὲ</l> <l s="G862" m="A-ASM">ἄφθαρτον.</l> </span> <span class="v-num v-26 " data-id="bibleJsn">26&nbsp;</span><span class="v C19_26" data-id="C19_26"><l s="G1473" m="RP-NS">ἐγὼ</l> <l s="G5106" m="C-">τοίνυν</l> <l m="D-">οὕτως</l> <l s="G5143" m="V-1PAIS">τρέχω</l> <l s="G5613" m="C-">ὡς</l> <l m="D-">οὐκ</l> <l s="G84" m="D-">ἀδήλως,</l> <l m="D-">οὕτως</l> <l m="V-1PAIS">πυκτεύω</l> <l s="G5613" m="C-">ὡς</l> <l m="D-">οὐκ</l> <l s="G109" m="N-ASM">ἀέρα</l> <l s="G1194" m="V-PAPNSM">δέρων·</l> </span> <span class="v-num v-27 " data-id="bibleJsn">27&nbsp;</span><span class="v C19_27" data-id="C19_27"><l s="G235" m="C-">ἀλλὰ</l> <l s="G5299" m="V-1PAIS">ὑπωπιάζω</l> <l s="G1473" m="RP-GS">μου</l> <l m="RA-ASN">τὸ</l> <l s="G4983" m="N-ASN">σῶμα</l> <l s="G2532" m="C-">καὶ</l> <l s="G1396" m="V-1PAIS">δουλαγωγῶ,</l> <l s="G3361" m="C-">μή</l> <l m="D-">πως</l> <l s="G243" m="A-DPM">ἄλλοις</l> <l s="G2784" m="V-AAPNSM">κηρύξας</l> <l s="G846" m="RP-NSM">αὐτὸς</l> <l s="G96" m="A-NSM">ἀδόκιμος</l> <l s="G1096" m="V-1AMSS">γένωμαι.</l> </span> </div> </div><br> <div class="footer"><div class="nav"> <a class="prev" href="C18.html">&lt;</a> <a class="home" href="index.html">=</a> <a class="next" href="C110.html">&gt;</a> </div></div> </body> </html>
316.472727
913
0.555728
240629f5a6bdbad01c3a780fc498e4522ae8b611
456
dart
Dart
lib/commands/fortnite/shop/br.dart
Tiebe/fishstick-dart
4e48b70a0629933022689d41da3ee11796164fcb
[ "BSD-3-Clause" ]
11
2022-02-11T11:27:31.000Z
2022-02-20T20:15:30.000Z
lib/commands/fortnite/shop/br.dart
Tiebe/fishstick-dart
4e48b70a0629933022689d41da3ee11796164fcb
[ "BSD-3-Clause" ]
1
2022-03-30T14:43:02.000Z
2022-03-30T14:43:02.000Z
lib/commands/fortnite/shop/br.dart
Tiebe/fishstick-dart
4e48b70a0629933022689d41da3ee11796164fcb
[ "BSD-3-Clause" ]
8
2022-02-11T11:43:25.000Z
2022-02-23T19:13:01.000Z
import "package:nyxx/nyxx.dart"; import "package:nyxx_commands/nyxx_commands.dart"; import "../../../fishstick_dart.dart"; final ChatCommand brShopCommand = ChatCommand( "br", "View fortnite battle royale item shop.", id( "br_shop_command", (IContext ctx) async { await ctx.respond(MessageBuilder.content( "https://fishstickbot.com/api/shop.png?v=${client.systemJobs.catalogManagerSystemJob.brCatalog.uid}")); }, ), );
28.5
113
0.695175
e51530994611388af094e08cc80077365bfb7a00
2,951
ts
TypeScript
src/server.ts
Bandito11/spending-tracker-server
e90c3088515e349d59e2c7052d0a2708901901b2
[ "MIT" ]
null
null
null
src/server.ts
Bandito11/spending-tracker-server
e90c3088515e349d59e2c7052d0a2708901901b2
[ "MIT" ]
null
null
null
src/server.ts
Bandito11/spending-tracker-server
e90c3088515e349d59e2c7052d0a2708901901b2
[ "MIT" ]
null
null
null
import * as express from 'express' import * as bodyParser from 'body-parser' import * as helmet from 'helmet' import * as passport from 'passport' import { verify } from 'jsonwebtoken' import { Response } from 'express' import * as authenticate from './db/authenticate.db' const app = express() require('dotenv').config() if (!process.env.NODE_ENV) require('dotenv').config() const PORT = process.env.PORT || 5000 if (process.env.NODE_ENV === 'production') { require('http').globalAgent.maxSockets = Infinity } else { require('http').globalAgent.maxSockets = 5 app.use(require('morgan')('dev')) } authenticate.authenticate(passport) app.use(passport.initialize()) app.use(helmet()) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: false })) app.use(function (req, res, next) { if (process.env.NODE_ENV !== 'production') { res.header('Access-Control-Allow-Origin', '*') // uncomment if server is used as API } res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, Authorization, x-access-token') res.header('Access-Control-Allow-Methods', 'GET, POST, PUT') next() }) // Imported routes to be used const authRoutes = require('./routes/auth.routes.js') const transactionRoutes = require('./routes/transaction.routes.js') const profileRoutes = require('./routes/profile.routes.js') const accountRoutes = require('./routes/accounts.routes.js') const categoriesRoutes = require('./routes/categories.routes.js') // Route used to Authenticate // app.use('/authenticate', authRoutes) //Unauthenticated Routes // Route to verify Authentication app.use((req, res, next) => { let authorization try { authorization = req.headers.authorization.slice(6, req.headers.authorization.length).trim() } catch (error) { throw new Error(`Client didn't send a token in the headers.`) } verify(authorization, /*req.query.token.toString(),*/ process.env.JSONWEBTOKEN_SECRET, (error, decoded) => { if (error) { /** * Possible errors as of 4/24/2018: * JsonWebTokenError * NotBeforeError * TokenExpiredError * * Error Params: name, message, expiredAt */ res.send(error) } else { res.locals.decoded = decoded next() } }) }) // Authenticated Route // app.use('/', profileRoutes) app.use('/', transactionRoutes) app.use('/', accountRoutes) app.use('/', categoriesRoutes) //Error Handling, always goes last. app.use(function (error: Error, _req, res: Response, _next) { console.error('*****************SERVER ERROR MESSAGE*****************') console.error(error) console.error('***********************************************') if (error) { res.send({statusCode: 403, error: error.message}) } else { res.send('There was an unknown error in the system, please try again!') } }) app.listen(PORT, function () { console.log(`Listening on port: ${PORT}`) })
29.217822
125
0.664859
c8d81c0761a7d9f0497fe01891e7b371c307a3b3
4,938
dart
Dart
lib/widget/home/sort_navigation.dart
shaodong-wu/LJ_NetDisk
df7a0df0debea707225779c438d165e9dae79e44
[ "MIT" ]
null
null
null
lib/widget/home/sort_navigation.dart
shaodong-wu/LJ_NetDisk
df7a0df0debea707225779c438d165e9dae79e44
[ "MIT" ]
null
null
null
lib/widget/home/sort_navigation.dart
shaodong-wu/LJ_NetDisk
df7a0df0debea707225779c438d165e9dae79e44
[ "MIT" ]
null
null
null
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:lj_netdisk/common/images_data.dart'; import 'package:lj_netdisk/views/search/home.dart'; import 'package:lj_netdisk/widget/common/search.dart'; class SortNavigation extends StatelessWidget { const SortNavigation({Key? key}) : super(key: key); @override Widget build(BuildContext context) { EdgeInsetsGeometry padding = const EdgeInsets.only(left: 15, right: 20); return Row( children: [ Expanded( flex: 1, child: GestureDetector( child: Padding( padding: padding, child: Column( children: [ Image.asset(CommonImagesData.homeNavigationAlbum, fit: BoxFit.contain), const Padding( padding: EdgeInsets.only(top: 6), child: Text('相册', style: TextStyle( color: Colors.black, fontSize: 13, fontWeight: FontWeight.w500 )), ) ], ), ), onTap: () => showCustomSearch( context: context, query: '图片', delegate: HomeSearchDelegate('网盘专属福利') ), ), ), Expanded( flex: 1, child: GestureDetector( child: Padding( padding: padding, child: Column( children: [ Image.asset(CommonImagesData.homeNavigationVideo, fit: BoxFit.contain), const Padding( padding: EdgeInsets.only(top: 6), child: Text('视频', style: TextStyle( color: Colors.black, fontSize: 13, fontWeight: FontWeight.w500 )), ) ], ), ), onTap: () => showCustomSearch( context: context, query: '视频', delegate: HomeSearchDelegate('网盘专属福利') ), ), ), Expanded( flex: 1, child: GestureDetector( child: Padding( padding: padding, child: Column( children: [ Image.asset(CommonImagesData.homeNavigationDocument, fit: BoxFit.contain), const Padding( padding: EdgeInsets.only(top: 6), child: Text('文档', style: TextStyle( color: Colors.black, fontSize: 13, fontWeight: FontWeight.w500 )), ) ], ), ), onTap: () => showCustomSearch( context: context, query: '文档', delegate: HomeSearchDelegate('网盘专属福利') ), ), ), Expanded( flex: 1, child: GestureDetector( child: Padding( padding: padding, child: Column( children: [ Image.asset(CommonImagesData.homeNavigationNovel, fit: BoxFit.contain), const Padding( padding: EdgeInsets.only(top: 6), child: Text('小说', style: TextStyle( color: Colors.black, fontSize: 13, fontWeight: FontWeight.w500 )), ) ], ), ), onTap: () => showCustomSearch( context: context, query: '小说', delegate: HomeSearchDelegate('网盘专属福利') ), ), ), Expanded( flex: 1, child: GestureDetector( child: Padding( padding: padding, child: Column( children: [ Image.asset(CommonImagesData.homeNavigationAudio, fit: BoxFit.contain), const Padding( padding: EdgeInsets.only(top: 6), child: Text('音频', style: TextStyle( color: Colors.black, fontSize: 13, fontWeight: FontWeight.w500 )), ) ], ), ), onTap: () => showCustomSearch( context: context, query: '音频', delegate: HomeSearchDelegate('网盘专属福利') ), ), ), ], ); } }
32.701987
93
0.407655
2d6a4eb474485cfe5425ef43d10b3c781833d70e
2,695
ps1
PowerShell
internal/configurations/settings/tabexpansion.ps1
LetsGoRafting/dbatools
8efcdbe2727c6c53f96a1fddba28d3ba52ecf7ce
[ "MIT" ]
3
2020-05-20T18:34:08.000Z
2021-06-29T04:13:58.000Z
internal/configurations/settings/tabexpansion.ps1
LetsGoRafting/dbatools
8efcdbe2727c6c53f96a1fddba28d3ba52ecf7ce
[ "MIT" ]
2
2018-07-25T09:45:42.000Z
2018-07-25T09:49:06.000Z
internal/configurations/settings/tabexpansion.ps1
NakedPowerShell/dbatools
714edec97214fcc005038bbf1a8fc3bffeeda7a1
[ "MIT" ]
2
2020-05-20T18:34:10.000Z
2020-07-14T07:01:20.000Z
# Sets the default interval and timeout for TEPP updates Set-DbaConfig -FullName 'TabExpansion.UpdateInterval' -Value (New-TimeSpan -Minutes 3) -Initialize -Validation timespan -Handler { [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppUpdateInterval = $args[0] } -Description 'The frequency in which TEPP tries to update each cache for autocompletion' Set-DbaConfig -FullName 'TabExpansion.UpdateTimeout' -Value (New-TimeSpan -Seconds 30) -Initialize -Validation timespan -Handler { [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppUpdateTimeout = $args[0] } -Description 'After this timespan has passed without connections to a server, the TEPP updater will no longer update the cache.' # Disable the management cache entire Set-DbaConfig -FullName 'TabExpansion.Disable' -Value $false -Initialize -Validation bool -Handler { [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppDisabled = $args[0] # Disable Async TEPP runspace if not needed if ([Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppAsyncDisabled -or [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppDisabled) { [Sqlcollaborative.Dbatools.Runspace.RunspaceHost]::Runspaces["dbatools-teppasynccache"].Stop() } else { [Sqlcollaborative.Dbatools.Runspace.RunspaceHost]::Runspaces["dbatools-teppasynccache"].Start() } } -Description 'Globally disables all TEPP functionality by dbatools' Set-DbaConfig -FullName 'TabExpansion.Disable.Asynchronous' -Value $false -Initialize -Validation bool -Handler { [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppAsyncDisabled = $args[0] # Disable Async TEPP runspace if not needed if ([Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppAsyncDisabled -or [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppDisabled) { [Sqlcollaborative.Dbatools.Runspace.RunspaceHost]::Runspaces["dbatools-teppasynccache"].Stop() } else { [Sqlcollaborative.Dbatools.Runspace.RunspaceHost]::Runspaces["dbatools-teppasynccache"].Start() } } -Description 'Globally disables asynchronous TEPP updates in the background' Set-DbaConfig -FullName 'TabExpansion.Disable.Synchronous' -Value $true -Initialize -Validation bool -Handler { [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::TeppSyncDisabled = $args[0] } -Description 'Globally disables synchronous TEPP updates, performed whenever connecting o the server. If this is not disabled, it will only perform updates that are fast to perform, in order to minimize performance impact. This may lead to some TEPP functionality loss if asynchronous updates are disabled.'
96.25
508
0.792579
682d84b3b30e28a97c3caf42f51efa7317bce337
6,339
sql
SQL
frthr_fqe/constraint.sql
openfurther/further-open-db
54e97102db4542ec0996b9f6e2ae79e86a16746f
[ "Apache-2.0" ]
null
null
null
frthr_fqe/constraint.sql
openfurther/further-open-db
54e97102db4542ec0996b9f6e2ae79e86a16746f
[ "Apache-2.0" ]
null
null
null
frthr_fqe/constraint.sql
openfurther/further-open-db
54e97102db4542ec0996b9f6e2ae79e86a16746f
[ "Apache-2.0" ]
null
null
null
-------------------------------------------------------- -- Constraints for Table APP_LOG -------------------------------------------------------- ALTER TABLE FRTHR_FQE.APP_LOG ADD PRIMARY KEY (APP_LOG_ID); -------------------------------------------------------- -- Constraints for Table AUDIT_LOG -------------------------------------------------------- ALTER TABLE FRTHR_FQE.AUDIT_LOG MODIFY (AUDIT_LOG_ID NOT NULL); ALTER TABLE FRTHR_FQE.AUDIT_LOG ADD PRIMARY KEY (AUDIT_LOG_ID); -------------------------------------------------------- -- Constraints for Table COM_AUDIT_TRAIL -------------------------------------------------------- ALTER TABLE FRTHR_FQE.COM_AUDIT_TRAIL ADD CONSTRAINT CAS_AUDIT_PK PRIMARY KEY (ID); ALTER TABLE FRTHR_FQE.COM_AUDIT_TRAIL MODIFY (ID NOT NULL); ALTER TABLE FRTHR_FQE.COM_AUDIT_TRAIL MODIFY (AUD_USER NOT NULL); ALTER TABLE FRTHR_FQE.COM_AUDIT_TRAIL MODIFY (AUD_ACTION NOT NULL); ALTER TABLE FRTHR_FQE.COM_AUDIT_TRAIL MODIFY (AUD_DATE NOT NULL); -------------------------------------------------------- -- Constraints for Table QUERY_ATTR -------------------------------------------------------- ALTER TABLE FRTHR_FQE.QUERY_ATTR ADD PRIMARY KEY (QUERY_ATTR_ID); -------------------------------------------------------- -- Constraints for Table QUERY_CONTEXT -------------------------------------------------------- ALTER TABLE FRTHR_FQE.QUERY_CONTEXT MODIFY (QUERY_ID NOT NULL); ALTER TABLE FRTHR_FQE.QUERY_CONTEXT MODIFY (EXECUTION_ID NOT NULL); ALTER TABLE FRTHR_FQE.QUERY_CONTEXT MODIFY (IS_STALE NOT NULL); ALTER TABLE FRTHR_FQE.QUERY_CONTEXT MODIFY (MAXRESPONDINGDATASOURCES NOT NULL); ALTER TABLE FRTHR_FQE.QUERY_CONTEXT MODIFY (MINRESPONDINGDATASOURCES NOT NULL); ALTER TABLE FRTHR_FQE.QUERY_CONTEXT MODIFY (STALE_DATE NOT NULL); ALTER TABLE FRTHR_FQE.QUERY_CONTEXT MODIFY (STATE NOT NULL); ALTER TABLE FRTHR_FQE.QUERY_CONTEXT ADD PRIMARY KEY (QUERY_ID); -------------------------------------------------------- -- Constraints for Table QUERY_DEF -------------------------------------------------------- ALTER TABLE FRTHR_FQE.QUERY_DEF ADD CONSTRAINT QUERY_DEF_UK1 UNIQUE (QUERY_CONTEXT_ID); ALTER TABLE FRTHR_FQE.QUERY_DEF ADD PRIMARY KEY (QUERY_ID); -------------------------------------------------------- -- Constraints for Table QUERY_NMSPC -------------------------------------------------------- ALTER TABLE FRTHR_FQE.QUERY_NMSPC ADD PRIMARY KEY (QUERY_ID, NAMESPACE_ID); -------------------------------------------------------- -- Constraints for Table QUERY_TEST_ASSERTION -------------------------------------------------------- ALTER TABLE FRTHR_FQE.QUERY_TEST_ASSERTION ADD PRIMARY KEY (QUERY_ID, NAMESPACE_ID); -------------------------------------------------------- -- Constraints for Table QUERY_TEST_SET -------------------------------------------------------- ALTER TABLE FRTHR_FQE.QUERY_TEST_SET ADD PRIMARY KEY (QUERY_ID); -------------------------------------------------------- -- Constraints for Table RESULT_CONTEXT -------------------------------------------------------- ALTER TABLE FRTHR_FQE.RESULT_CONTEXT MODIFY (ID NOT NULL); ALTER TABLE FRTHR_FQE.RESULT_CONTEXT ADD PRIMARY KEY (ID); -------------------------------------------------------- -- Constraints for Table RESULT_VIEWS -------------------------------------------------------- ALTER TABLE FRTHR_FQE.RESULT_VIEWS MODIFY (VIEW_ID NOT NULL); ALTER TABLE FRTHR_FQE.RESULT_VIEWS ADD PRIMARY KEY (VIEW_ID); -------------------------------------------------------- -- Constraints for Table SEARCH_QUERY -------------------------------------------------------- ALTER TABLE FRTHR_FQE.SEARCH_QUERY MODIFY (SEARCH_QUERY_ID NOT NULL); ALTER TABLE FRTHR_FQE.SEARCH_QUERY ADD PRIMARY KEY (SEARCH_QUERY_ID); -------------------------------------------------------- -- Constraints for Table STATUS_META_DATA -------------------------------------------------------- ALTER TABLE FRTHR_FQE.STATUS_META_DATA MODIFY (ID NOT NULL); ALTER TABLE FRTHR_FQE.STATUS_META_DATA ADD PRIMARY KEY (ID); -------------------------------------------------------- -- Constraints for Table VIRTUAL_OBJ_ID_MAP -------------------------------------------------------- ALTER TABLE FRTHR_FQE.VIRTUAL_OBJ_ID_MAP MODIFY (VIRTUAL_OBJ_ID_MAP_ID NOT NULL); ALTER TABLE FRTHR_FQE.VIRTUAL_OBJ_ID_MAP ADD PRIMARY KEY (VIRTUAL_OBJ_ID_MAP_ID); -------------------------------------------------------- -- Ref Constraints for Table QUERY_CONTEXT -------------------------------------------------------- ALTER TABLE FRTHR_FQE.QUERY_CONTEXT ADD CONSTRAINT FK2C94AD3857702D39 FOREIGN KEY (CURRENTSTATUS) REFERENCES FRTHR_FQE.STATUS_META_DATA (ID); ALTER TABLE FRTHR_FQE.QUERY_CONTEXT ADD CONSTRAINT FK2C94AD38647CD91D FOREIGN KEY (RESULTCONTEXT) REFERENCES FRTHR_FQE.RESULT_CONTEXT (ID) ON DELETE CASCADE; ALTER TABLE FRTHR_FQE.QUERY_CONTEXT ADD CONSTRAINT FK2C94AD387724A79E FOREIGN KEY (PARENT) REFERENCES FRTHR_FQE.QUERY_CONTEXT (QUERY_ID) ON DELETE CASCADE; ALTER TABLE FRTHR_FQE.QUERY_CONTEXT ADD CONSTRAINT FK2C94AD38A22ADF97 FOREIGN KEY (ASSOCIATEDRESULT) REFERENCES FRTHR_FQE.QUERY_CONTEXT (QUERY_ID) ON DELETE CASCADE; -------------------------------------------------------- -- Ref Constraints for Table RESULT_VIEWS -------------------------------------------------------- ALTER TABLE FRTHR_FQE.RESULT_VIEWS ADD CONSTRAINT FK1FB8FBCC9C24B876 FOREIGN KEY (QUERY_CONTEXT_ID) REFERENCES FRTHR_FQE.QUERY_CONTEXT (QUERY_ID); ALTER TABLE FRTHR_FQE.RESULT_VIEWS ADD CONSTRAINT FK1FB8FBCCCBCEE79C FOREIGN KEY (VALUE) REFERENCES FRTHR_FQE.RESULT_CONTEXT (ID); -------------------------------------------------------- -- Ref Constraints for Table SEARCH_QUERY -------------------------------------------------------- ALTER TABLE FRTHR_FQE.SEARCH_QUERY ADD CONSTRAINT FK1B7D0371DE01CADB FOREIGN KEY (QUERYCONTEXT) REFERENCES FRTHR_FQE.QUERY_CONTEXT (QUERY_ID) ON DELETE CASCADE; -------------------------------------------------------- -- Ref Constraints for Table STATUS_META_DATA -------------------------------------------------------- ALTER TABLE FRTHR_FQE.STATUS_META_DATA ADD CONSTRAINT FK82C59197DE01CADB FOREIGN KEY (QUERYCONTEXT) REFERENCES FRTHR_FQE.QUERY_CONTEXT (QUERY_ID) ON DELETE CASCADE;
36.641618
81
0.548036
252fc32c24601546a6352647fb65820318f7dac4
1,350
sql
SQL
src/test/resources/randexpr1.test_2157.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
131
2015-03-31T18:59:14.000Z
2022-03-09T09:51:06.000Z
src/test/resources/randexpr1.test_2157.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
20
2015-03-31T21:35:38.000Z
2018-07-02T16:15:51.000Z
src/test/resources/randexpr1.test_2157.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
43
2015-04-28T02:01:55.000Z
2021-06-06T09:33:38.000Z
-- randexpr1.test -- -- db eval {SELECT (abs((select +abs(case count(*) when +max(19) then count(distinct b)*count(distinct (13+(select max(t1.d) from t1)* -a+t1.e*t1.b*a))+cast(avg(13) AS integer) | min(13)*cast(avg(c) AS integer)-count(distinct t1.e)-((min(f))) | cast(avg(17) AS integer)-( -cast(avg(( -t1.d)) AS integer))- -cast(avg(t1.d) AS integer) | count(*) else max(t1.f) end) from t1))/abs(t1.a)) FROM t1 WHERE NOT (b<=e or exists(select 1 from t1 where 17 in (select ~e+coalesce((select d from t1 where 11* -~+case when not (b) not between t1.f and b then -~t1.c-11*+19+((b)) when f not between f and 11 then b else a end+11-(b)-t1.f<>17),d) from t1 union select t1.a from t1)))} SELECT (abs((select +abs(case count(*) when +max(19) then count(distinct b)*count(distinct (13+(select max(t1.d) from t1)* -a+t1.e*t1.b*a))+cast(avg(13) AS integer) | min(13)*cast(avg(c) AS integer)-count(distinct t1.e)-((min(f))) | cast(avg(17) AS integer)-( -cast(avg(( -t1.d)) AS integer))- -cast(avg(t1.d) AS integer) | count(*) else max(t1.f) end) from t1))/abs(t1.a)) FROM t1 WHERE NOT (b<=e or exists(select 1 from t1 where 17 in (select ~e+coalesce((select d from t1 where 11* -~+case when not (b) not between t1.f and b then -~t1.c-11*+19+((b)) when f not between f and 11 then b else a end+11-(b)-t1.f<>17),d) from t1 union select t1.a from t1)))
337.5
670
0.654074
ef6965015de7f67825bcb4b3124cf486a5a2f0a6
1,387
kt
Kotlin
reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/IncrSpecHolder.kt
JetBrains/mps-coderules
96ede52bccaeea1b56b4986027142760a3760909
[ "Apache-2.0" ]
25
2018-09-04T14:29:38.000Z
2022-02-21T02:54:03.000Z
reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/IncrSpecHolder.kt
JetBrains/mps-coderules
96ede52bccaeea1b56b4986027142760a3760909
[ "Apache-2.0" ]
1
2020-10-23T10:00:26.000Z
2020-10-23T10:00:27.000Z
reactor/Core/src/jetbrains/mps/logic/reactor/core/internal/IncrSpecHolder.kt
JetBrains/mps-coderules
96ede52bccaeea1b56b4986027142760a3760909
[ "Apache-2.0" ]
5
2019-02-03T13:07:25.000Z
2022-03-18T16:38:22.000Z
/* * Copyright 2014-2020 JetBrains s.r.o. * * 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 jetbrains.mps.logic.reactor.core.internal import jetbrains.mps.logic.reactor.core.Occurrence import jetbrains.mps.logic.reactor.evaluation.RuleMatch import jetbrains.mps.logic.reactor.program.IncrementalContractViolationException import jetbrains.mps.logic.reactor.program.IncrementalSpec import jetbrains.mps.logic.reactor.program.Rule @Deprecated("obsolete class") interface IncrSpecHolder { val ispec: IncrementalSpec val Occurrence.isPrincipal get() = ispec.isPrincipal(this.constraint()) val RuleMatch.isPrincipal get() = ispec.isPrincipal(this.rule()) val Rule.isPrincipal get() = ispec.isPrincipal(this) val RuleMatch.isWeakPrincipal get() = ispec.isWeakPrincipal(this.rule()) val Rule.isWeakPrincipal get() = ispec.isWeakPrincipal(this) }
36.5
80
0.772891
60cf3a01298f98b099f3933fb393cab1b2c1c40f
2,576
lua
Lua
FairyGUI-Demo/TransitionDemo.lua
fairygui/FairyGUI-solar2d
8fab30578000463cbff34041a1f9b901bada52b3
[ "MIT" ]
10
2021-12-06T08:20:39.000Z
2022-03-28T10:27:27.000Z
FairyGUI-Demo/TransitionDemo.lua
fairygui/FairyGUI-solar2d
8fab30578000463cbff34041a1f9b901bada52b3
[ "MIT" ]
1
2022-03-29T09:48:22.000Z
2022-03-30T08:47:11.000Z
FairyGUI-Demo/TransitionDemo.lua
fairygui/FairyGUI-solar2d
8fab30578000463cbff34041a1f9b901bada52b3
[ "MIT" ]
null
null
null
local composer = require( "composer" ) local scene = composer.newScene() local _groot local _view local _btnGroup local _g1 local _g2 local _g3 local _g4 local _g5 function scene:create( event ) _groot = GRoot.create(self) UIPackage.addPackage('UI/Transition') composer.addCloseButton() _view = UIPackage.createObject("Transition", "Main") _view:makeFullScreen() _groot:addChild(_view) _btnGroup = _view:getChild("g0") _g1 = UIPackage.createObject("Transition", "BOSS") _g2 = UIPackage.createObject("Transition", "BOSS_SKILL") _g3 = UIPackage.createObject("Transition", "TRAP") _g4 = UIPackage.createObject("Transition", "GoodHit") _g5 = UIPackage.createObject("Transition", "PowerUp") --play_num_now是在编辑器里设定的名称,这里表示播放到'play_num_now'这个位置时才开始播放数字变化效果 _g5:getTransition("t0"):setHook("play_num_now", scene._playNum) _view:getChild("btn0"):onClick(function () scene._play(_g1) end) _view:getChild("btn1"):onClick(function () scene._play(_g2) end) _view:getChild("btn2"):onClick(function () scene._play(_g3) end) _view:getChild("btn3"):onClick(scene._play4) _view:getChild("btn4"):onClick(scene._play5) end function scene._play(target) _btnGroup.visible = false _groot:addChild(target) local t = target:getTransition("t0") t:play(function() _btnGroup.visible = true _groot:removeChild(target) end) end function scene._play4() _btnGroup.visible = false _g4.x = _groot.width - _g4.width - 20 _g4.y = 100 _groot:addChild(_g4) local t = _g4:getTransition("t0") --播放3次 t:play(3, 0, function() _btnGroup.visible = true _groot:removeChild(_g4) end) end local _startValue local _endValue function scene._play5() _btnGroup.visible = false _g5.x = 20 _g5.y = _groot.height - _g5.height - 100 _groot:addChild(_g5) local t = _g5:getTransition("t0") _startValue = 10000 local add = math.ceil(math.random(1000, 3000)) _endValue = _startValue + add _g5:getChild("value").text = "".._startValue _g5:getChild("add_value").text = "+"..add t:play(function() _btnGroup.visible = true _groot:removeChild(_g5) end) end function scene._playNum() --这里演示了一个数字变化的过程 GTween.to(_startValue, _endValue, 0.3) :setEase(EaseType.Linear) :onUpdate(function (tweener) _g5:getChild("value").text = ''..math.floor(tweener.value.x) end) end function scene:destroy( event ) _groot:dispose() UIPackage.removePackage('Transition') end scene:addEventListener( "create", scene ) scene:addEventListener( "destroy", scene ) return scene
25.254902
66
0.710016
282a1e0ac93e84167c9e542507c7cdea488f3323
787
rb
Ruby
app/controllers/articles_controller.rb
helman101/Every-Tech2
0cd993c9b687eedf4340117a3877e159c607118a
[ "MIT" ]
3
2021-03-03T19:31:59.000Z
2021-04-23T10:45:06.000Z
app/controllers/articles_controller.rb
helman101/Every-Tech2
0cd993c9b687eedf4340117a3877e159c607118a
[ "MIT" ]
1
2021-03-01T07:31:50.000Z
2021-03-01T07:31:50.000Z
app/controllers/articles_controller.rb
helman101/Every-Tech2
0cd993c9b687eedf4340117a3877e159c607118a
[ "MIT" ]
null
null
null
class ArticlesController < ApplicationController include ArticlesHelper before_action :require_login, only: %i[create new] def new @article = Article.new end def create @article = current_user.authored_articles.build(article_params) if @article.save create_categories(params[:article][:categories], @article) redirect_to article_path(@article), notice: 'Article created succesfully' else flash[:form_errors] = @article.errors redirect_to new_article_path, alert: 'This article can\'t be create' end end def show @article = Article.find(params[:id]) @categories = @article.categories.map(&:name).join(', ') end private def article_params params.require(:article).permit(:title, :content, :image) end end
24.59375
79
0.707751
90b196f6c33c63adb938a7efa6f6eaee4e21cd0e
1,680
sql
SQL
Database Connection/MySQL For DS/3.4_bonus_exercises.sql
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
14
2020-09-17T17:04:04.000Z
2021-08-19T05:08:49.000Z
Database Connection/MySQL For DS/3.4_bonus_exercises.sql
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
85
2020-10-01T16:53:21.000Z
2021-07-08T17:44:17.000Z
Database Connection/MySQL For DS/3.4_bonus_exercises.sql
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
5
2020-09-18T08:53:01.000Z
2021-08-19T05:12:52.000Z
/* ================================================== 3.4 Bonus Exercises Ednalyn C. De Dios 2019-02-19 MySQL Ada Cohort Codeup Data Science Career Accelerator Program ================================================== */ /* Write a query that shows all the information in the `help_topic` table in the `mysql` database. How could you write a query to search for a specific help topic? */ SELECT * FROM mysql.help_topic; /* Take a look at the information in the salaries table in the employees database. What do you notice? */ USE `sakila`; /* Explore the `sakila` database. What do you think this database represents? What kind of company might be using this database? */ SHOW TABLES; /* Write a query that shows all the columns from the `actors` table */ SELECT * FROM `actor`; /* write a query that only shows the last name of the actors from the ` actors` table */ SELECT `last_name` FROM `actor`; /* Write a query that displays the title, description, rating, movie length columns from the `films` table for films that last 3 hours or longer. */ SELECT `title`, `description`, `rating`, `length` FROM `film` WHERE `length` > 180; /* Select the payment id, amount, and payment date columns from the payments table for payments made on or after 05/27/2005. */ SELECT `payment_id`, `amount`, `payment_date` FROM `payment` WHERE `payment_date` >= '05/27/2005'; /* Select the primary key, amount, and payment date columns from the payment table for payments made on 05/27/2005. */ SELECT `payment_id`, `amount`, `payment_date` FROM `payment` WHERE `payment_date` = '05/27/2005';
22.4
77
0.65119
53824efc6f190b32a8637f93c406888dae0380ed
2,408
sql
SQL
tps-forvalteren-config/src/main/resources/db/migration/tpsforvalterenDB/V1.0__Initialize_Tables.sql
navikt/tps-forvalteren
864fa1e19d8fcea53b8acb976b517670d10768eb
[ "MIT" ]
null
null
null
tps-forvalteren-config/src/main/resources/db/migration/tpsforvalterenDB/V1.0__Initialize_Tables.sql
navikt/tps-forvalteren
864fa1e19d8fcea53b8acb976b517670d10768eb
[ "MIT" ]
37
2020-09-23T14:00:49.000Z
2021-11-17T12:19:57.000Z
tps-forvalteren-config/src/main/resources/db/migration/tpsforvalterenDB/V1.0__Initialize_Tables.sql
navikt/tps-forvalteren
864fa1e19d8fcea53b8acb976b517670d10768eb
[ "MIT" ]
1
2022-02-16T13:52:48.000Z
2022-02-16T13:52:48.000Z
----------------- -- T A B L E S -- ----------------- CREATE TABLE T_PERSON ( PERSON_ID NUMBER(9) NOT NULL, IDENT VARCHAR2(11) NOT NULL, IDENTTYPE VARCHAR2(3) NOT NULL, KJONN VARCHAR2(1) NOT NULL, FORNAVN VARCHAR2(50) NOT NULL, MELLOMNAVN VARCHAR2(50), ETTERNAVN VARCHAR2(50) NOT NULL, STATSBORGERSKAP VARCHAR2(3), REGDATO DATE NOT NULL, OPPRETTET_DATO TIMESTAMP NOT NULL, OPPRETTET_AV VARCHAR2(20) NOT NULL, ENDRET_DATO TIMESTAMP NOT NULL, ENDRET_AV VARCHAR2(20) NOT NULL, SPESREG VARCHAR2(4), SPESREG_DATO DATE, GRUPPE_ID NUMBER(9) NOT NULL ); CREATE TABLE T_GATEADRESSE ( ADRESSE_ID NUMBER(9) NOT NULL, PERSON_ID NUMBER(9) NOT NULL, GATEADRESSE VARCHAR2(50), HUSNUMMER VARCHAR2(4), GATEKODE VARCHAR2(5), POSTNR VARCHAR2(4), KOMMUNENR VARCHAR2(4), FLYTTE_DATO DATE ); CREATE TABLE T_POSTADRESSE ( POSTADRESSE_ID NUMBER(9) NOT NULL, PERSON_ID NUMBER(9) NOT NULL, POST_LINJE_1 VARCHAR2(30), POST_LINJE_2 VARCHAR2(30), POST_LINJE_3 VARCHAR2(30), POST_LAND VARCHAR2(3) ); --------------------------------------------------- -- P R I M A R Y K E Y C O N S T R A I N T S -- --------------------------------------------------- ALTER TABLE T_PERSON ADD CONSTRAINT T_PERSON_PK PRIMARY KEY (PERSON_ID); ALTER TABLE T_GATEADRESSE ADD CONSTRAINT T_GATEADRESSE_PK PRIMARY KEY (ADRESSE_ID); ALTER TABLE T_POSTADRESSE ADD CONSTRAINT T_POSTADRESSE_PK PRIMARY KEY (POSTADRESSE_ID); --------------------------------------------------- -- F O R E I G N K E Y C O N S T R A I N T S -- --------------------------------------------------- ALTER TABLE T_GATEADRESSE ADD CONSTRAINT GATEADRESSE_PERSON_FK FOREIGN KEY (PERSON_ID) REFERENCES T_PERSON (PERSON_ID); ALTER TABLE T_POSTADRESSE ADD CONSTRAINT POSTADRESSE_PERSON_FK FOREIGN KEY (PERSON_ID) REFERENCES T_PERSON (PERSON_ID); ----------------------------------------- -- U N I Q U E C O N S T R A I N T S -- ----------------------------------------- ALTER TABLE T_PERSON ADD CONSTRAINT INDENT_UNIQUE UNIQUE (IDENT); ----------------------- -- S E Q U E N C E S -- ----------------------- CREATE SEQUENCE T_PERSON_SEQ START WITH 100000000; CREATE SEQUENCE ADRESSE_SEQ START WITH 100000000; CREATE SEQUENCE T_POSTADRESSE_SEQ START WITH 100000000;
33.444444
95
0.582641
adb14882eea3fb76ea772bbd7ae0bdb7c98b659a
3,734
dart
Dart
lib/features/user_profile/data/dtos/user_dto.dart
hellyab/loan_app
bddd7689dbaf193b0fec5fe27da7b27f9ecfba41
[ "Apache-2.0" ]
null
null
null
lib/features/user_profile/data/dtos/user_dto.dart
hellyab/loan_app
bddd7689dbaf193b0fec5fe27da7b27f9ecfba41
[ "Apache-2.0" ]
null
null
null
lib/features/user_profile/data/dtos/user_dto.dart
hellyab/loan_app
bddd7689dbaf193b0fec5fe27da7b27f9ecfba41
[ "Apache-2.0" ]
null
null
null
import 'dart:convert'; import 'package:loan_app/features/user_profile/data/dtos/dtos.dart'; import 'package:loan_app/features/user_profile/domain/entities/entities.dart'; class UserDTO { UserDTO({ required this.id, required this.city, required this.country, required this.createdAt, required this.dob, required this.gender, required this.phone, required this.status, required this.updatedAt, required this.userid, this.email, }); factory UserDTO.fromMap(Map<String, dynamic> map) { return UserDTO( id: map['_id'], city: map['city'], country: map['country'], createdAt: map['createdAt'], dob: map['dob'], gender: map['gender'], phone: map['phone'], status: map['status'], updatedAt: map['updatedAt'], userid: UserIdDTO.fromMap(map['userid']), email: map['email'], ); } factory UserDTO.fromJson(String source) => UserDTO.fromMap(json.decode(source)); final String id; final String city; final String country; final String createdAt; final String dob; final String gender; final String phone; final String status; final String updatedAt; final UserIdDTO userid; final String? email; User toEntity() { return User( id: id, city: city, country: country, createdAt: createdAt, dob: dob, gender: gender, phone: phone, status: status, updatedAt: updatedAt, userId: userid.toEntity(), email: email, ); } UserDTO copyWith({ String? id, String? city, String? country, String? createdAt, String? dob, String? gender, String? idnumber, String? idtype, String? issuingcountry, String? phone, String? status, String? updatedAt, UserIdDTO? userid, String? email, }) { return UserDTO( id: id ?? this.id, city: city ?? this.city, country: country ?? this.country, createdAt: createdAt ?? this.createdAt, dob: dob ?? this.dob, gender: gender ?? this.gender, phone: phone ?? this.phone, status: status ?? this.status, updatedAt: updatedAt ?? this.updatedAt, userid: userid ?? this.userid, email: email ?? this.email, ); } Map<String, dynamic> toMap() { return { '_id': id, 'city': city, 'country': country, 'createdAt': createdAt, 'dob': dob, 'gender': gender, 'phone': phone, 'status': status, 'updatedAt': updatedAt, 'userid': userid.toMap(), 'email': email, }; } String toJson() => json.encode(toMap()); @override String toString() { return 'Data(_id: $id, city: $city, country: $country,' ' createdAt: $createdAt, dob: $dob, gender: $gender,' ' phone: $phone, status: $status, updatedAt:' ' $updatedAt, userid: $userid, email: $email)'; } @override bool operator ==(Object other) { if (identical(this, other)) return true; return other is UserDTO && other.id == id && other.city == city && other.country == country && other.createdAt == createdAt && other.dob == dob && other.gender == gender && other.phone == phone && other.status == status && other.updatedAt == updatedAt && other.userid == userid && other.email == email; } @override int get hashCode { return id.hashCode ^ city.hashCode ^ country.hashCode ^ createdAt.hashCode ^ dob.hashCode ^ gender.hashCode ^ phone.hashCode ^ status.hashCode ^ updatedAt.hashCode ^ userid.hashCode ^ email.hashCode; } }
23.632911
78
0.58677
400ff23eea96eef52d15f5da1e54e1282902b729
19,636
py
Python
blesuite/cli/blesuite_cli.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
198
2016-08-04T05:45:38.000Z
2022-02-17T08:30:58.000Z
blesuite/cli/blesuite_cli.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
13
2018-02-04T14:16:16.000Z
2020-10-09T02:16:24.000Z
blesuite/cli/blesuite_cli.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
57
2016-08-08T04:24:04.000Z
2022-01-24T08:43:02.000Z
import argparse from blesuite.connection_manager import BLEConnectionManager from blesuite_wrapper import ble_service_read, ble_service_read_async, ble_service_write, \ ble_handle_subscribe, ble_service_scan, ble_service_write_async, ble_run_smart_scan from blesuite import utils from blesuite.utils.print_helper import print_data_and_hex from blesuite.utils import validators import logging __version__ = "2.0" logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) def parse_command(): """ Creates parser and parses command line tool call. :return: parsed arguments """ global __version__ #Dictionary of available commands. Place new commands here cmd_choices = {'scan': "Scan for BTLE devices", 'smartscan': "Scan specified BTLE device for device information, services, characteristics " "(including associated descriptors). Note: This scan takes longer than the service scan", 'servicescan': 'Scan specified address for all services, characteristics, and descriptors. ', 'read': "Read value from specified device and handle", 'write': "Write value to specific handle on a device. Specify the --data or --files options" "to set the payload data. Only data or file data can be specified, not both" "(data submitted using the data flag takes precedence over data in files).", 'subscribe': "Write specified value (0000,0100,0200,0300) to chosen handle and initiate listener.", 'spoof': 'Modify your Bluetooth adapter\'s BT_ADDR. Use --address to set the address. Some chipsets' ' may not be supported.'} address_type_choices = ['public', 'random'] parser = argparse.ArgumentParser(prog="blesuite", description='Bluetooh Low Energy (BTLE) tool set for communicating and ' 'testing BTLE devices on the application layer.') # , # formatter_class=argparse.RawTextHelpFormatter) parser.add_argument('command', metavar='command', type=str, nargs=1, action='store', choices=cmd_choices.keys(), help='BLESuite command you would like to execute.' + 'The following are the currently supported commands:\n' + '\n'.join(['\033[1m{}\033[0m: {}'.format(k, v) for k, v in cmd_choices.iteritems()])) parser.add_argument('--async', action='store_true', help='\033[1m<read, write>\033[0m ' 'Enable asynchronous writing/reading. Any output' 'will be displayed when received. This prevents' 'blocking.') parser.add_argument('--skip-device-info-query', action='store_true', help='\033[1m<smartscan>\033[0m ' 'When scanning a device, specify this flag' 'to force smartscan to skip querying the device' 'for common information such as device name. This' 'is helpful when devices do not implement these services.') parser.add_argument('--smart-read', action='store_true', help='\033[1m<smartscan>\033[0m ' 'When scanning a device, specify this flag' 'to force smartscan to attempt to read' 'from each discovered characteristic descriptor.' 'Note: This will increase scan time to handle' 'each read operation.') parser.add_argument('-m', '--mode', metavar='mode', default=[1], type=int, nargs=1, required=False, action='store', help='\033[1m<subscribe>\033[0m ' 'Selects which configuration to set' 'for a characteristic configuration descriptor.' '0=off,1=notifications,2=indications,' '3=notifications and inidications') parser.add_argument('--timeout', metavar='timeout', default=[5], type=int, nargs=1, required=False, action='store', help='\033[1m<lescan, read, write>\033[0m ' 'Timeout (in seconds) for attempting to retrieve data from a device ' '(ie reading from a descriptor handle). (Default: 5 seconds)') parser.add_argument('--subscribe-timeout', metavar='subscribe-timeout', default=[None], type=int, nargs=1, required=False, action='store', help='\033[1m<subscribe>\033[0m ' 'Time (in seconds) for attempting to retrieve data from a device ' 'when listening for notifications or indications. (Default: Indefinite)') # Device for discovery service can be specified parser.add_argument('-i', '--adapter', metavar='adapter', default=[0], type=int, nargs=1, required=False, action='store', help='\033[1m<all commands>\033[0m ' 'Specify which Bluetooth adapter should be used. ' 'These can be found by running (hcitool dev).') parser.add_argument('-d', '--address', metavar='address', type=validators.validate_bluetooth_address_cli, nargs=1, required=False, action='store', help='\033[1m<all commands>\033[0m ' 'Bluetooth address (BD_ADDR) of the target Bluetooth device') parser.add_argument('-a', '--handles', metavar='handles', type=str, nargs="+", required=False, action='store', default=[], help='\033[1m<read, write>\033[0m ' 'Hexadecimal handel list of characteristics to access (ex: 005a 006b). If ' 'you want to access the value of a characteristic, use the handle_value ' 'value from the service scan.') parser.add_argument('-u', '--uuids', metavar='uuids', type=str, nargs="+", required=False, action='store', default=[], help='\033[1m<read>\033[0m ' 'UUID list of characteristics to access. If ' 'you want to access the value of a characteristic, use the UUID ' 'value from the service scan.') parser.add_argument('--data', metavar='data', type=str, nargs="+", required=False, action='store', default=[], help='\033[1m<write>\033[0m ' 'Strings that you want to write to a handle (separated by spaces).') parser.add_argument('--files', metavar='files', type=str, nargs="+", required=False, action='store', default=[], help='\033[1m<write>\033[0m ' 'Files that contain data to write to handle (separated by spaces)') parser.add_argument('--payload-delimiter', metavar='payload-delimiter', type=str, nargs=1, required=False, action='store', default=["EOF"], help='\033[1m<write>\033[0m ' 'Specify a delimiter (string) to use when specifying data for BLE payloads.' 'For instance, if I want to send packets with payloads in a file separated' 'by a comma, supply \'--payload-delimiter ,\'. Supply EOF if you want the entire contents' 'of a file sent. (Default: EOF)') parser.add_argument("-t", '--address-type', metavar='address-type', type=str, nargs=1, required=False, action='store', default=['public'], choices=address_type_choices, help='\033[1m<all commands>\033[0m ' 'Type of BLE address you want to connect to [public | random].') parser.add_argument('--version', action='version', version='%(prog)s ' + __version__) parser.add_argument('--debug', action='store_true', help='\033[1m<all commands>\033[0m ' 'Enable logging for debug statements.') return parser.parse_args() def process_args(args): """ Process command line tool arguments parsed by argparse and call appropriate bleSuite functions. :param args: parser.parse_args() :return: """ command = args.command[0] if args.debug: logging.basicConfig(level=logging.DEBUG) timeout = args.timeout[0] * 1000 # convert seconds to ms if command == 'spoof': import bdaddr if args.address[0] == "": print "Please specify an address to spoof." else: logger.debug("About to spoof to address %s for adapter %s" % (args.address[0], args.adapter[0])) ret = bdaddr.bdaddr(("hci"+str(args.adapter[0])), args.address[0]) if ret == -1: raise ValueError('Spoofing failed. Your device may not be supported.') if command == 'scan': print "BTLE Scan beginning" with BLEConnectionManager(args.adapter[0], 'central') as connection_manager: discovered = connection_manager.scan(timeout) print "Discovered:" for i in discovered.keys(): print "\t", i, "(public)" if discovered[i][0] == 0 else "(random)" for h, j in enumerate(discovered[i][1]): gap = connection_manager.decode_gap_data(str(discovered[i][1][h])) info = connection_manager.generate_gap_data_dict(gap) for k in info.keys(): print "\t\t", k + ":" print "\t\t\t", info[k] if command == 'smartscan': print "BTLE Smart Scan beginning" device = ble_run_smart_scan(args.address[0], args.adapter[0], args.address_type[0], skip_device_info_query=args.skip_device_info_query, attempt_read=args.smart_read, timeout=timeout) if command == 'servicescan': print "BTLE Scanning Services" ble_service_scan(args.address[0], args.adapter[0], args.address_type[0]) if command == 'read': if len(args.handles) <= 0 and len(args.uuids) <= 0: print "ERROR: No handles or UUIDs supplied for read operation." return print "Reading value from handle or UUID" if args.async: uuidData, handleData = ble_service_read_async(args.address[0], args.adapter[0], args.address_type[0], args.handles, args.uuids, timeout=timeout) for dataTuple in handleData: print "\nHandle:", "0x" + dataTuple[0] print_data_and_hex(dataTuple[1], False) ''' if isinstance(dataTuple[1][0], str): utils.print_helper.print_data_and_hex(dataTuple[1], False) else: utils.print_helper.print_data_and_hex(dataTuple[1][1], False)''' for dataTuple in uuidData: print "\nUUID:", dataTuple[0] print_data_and_hex(dataTuple[1], False) ''' if isinstance(dataTuple[1][0], str): utils.print_helper.print_data_and_hex(dataTuple[1], False) else: utils.print_helper.print_data_and_hex(dataTuple[1][1].received(), True)''' else: uuidData, handleData = ble_service_read(args.address[0], args.adapter[0], args.address_type[0], args.handles, args.uuids, timeout=timeout) for dataTuple in handleData: print "\nHandle:", "0x" + dataTuple[0] print_data_and_hex(dataTuple[1], False) for dataTuple in uuidData: print "\nUUID:", dataTuple[0] print_data_and_hex(dataTuple[1], False) if command == 'write': if len(args.handles) <= 0: print "ERROR: No handles supplied for write operation. Note: Write operation does not support use of UUIDs." return print "Writing value to handle" if args.async: logger.debug("Async Write") if len(args.data) > 0: handleData = ble_service_write_async(args.address[0], args.adapter[0], args.address_type[0], args.handles, args.data, timeout=timeout) elif args.payload_delimiter[0] == 'EOF': logger.debug("Payload Delimiter: EOF") dataSet = [] for dataFile in args.files: if dataFile is None: continue logger.debug("Reading file: %s", dataFile) f = open(dataFile, 'r') dataSet.append(f.read()) f.close() logger.debug("Sending data set: %s" % dataSet) handleData = ble_service_write_async(args.addr[0], args.adapter[0], args.address_type[0], args.handles, dataSet, timeout=timeout) logger.debug("Received data: %s" % handleData) '''for dataTuple in handleData: print "\nHandle:", "0x" + dataTuple[0] utils.print_helper.print_data_and_hex(dataTuple[1], False)''' else: logger.debug("Payload Delimiter: %s", args.payload_delimiter[0]) dataSet = [] for dataFile in args.files: if dataFile is None: continue f = open(dataFile, 'r') data = f.read() f.close() data = data.split(args.payload_delimiter[0]) dataSet.extend(data) logger.debug("Sending dataSet: %s" % dataSet) handleData = ble_service_write_async(args.address[0], args.adapter[0], args.address_type[0], args.handles, dataSet, timeout=timeout) for dataTuple in handleData: print "\nHandle:", "0x" + dataTuple[0] print "Input:" utils.print_helper.print_data_and_hex(dataTuple[2], False, prefix="\t") print "Output:" #if tuple[1][0] is a string, it means our cmdLineToolWrapper removed the GattResponse object #due to a timeout, else we grab the GattResponse and its response data if isinstance(dataTuple[1][0], str): utils.print_helper.print_data_and_hex(dataTuple[1], False, prefix="\t") else: utils.print_helper.print_data_and_hex(dataTuple[1][1].received(), False, prefix="\t") else: logger.debug("Sync Write") print args.data if len(args.data) > 0: handleData = ble_service_write(args.address[0], args.adapter[0], args.address_type[0], args.handles, args.data, timeout=timeout) '''for dataTuple in handleData: print "\nHandle:", "0x" + dataTuple[0] utils.print_helper.print_data_and_hex(dataTuple[1], False)''' elif args.payload_delimiter[0] == 'EOF': logger.debug("Payload Delimiter: EOF") dataSet = [] for dataFile in args.files: if dataFile is None: continue logger.debug("Reading file: %s", dataFile) f = open(dataFile, 'r') dataSet.append(f.read()) f.close() logger.debug("Sending data set: %s" % dataSet) handleData = ble_service_write(args.address[0], args.adapter[0], args.address_type[0], args.handles, dataSet, timeout=timeout) logger.debug("Received data: %s" % handleData) '''for dataTuple in handleData: print "\nHandle:", "0x" + dataTuple[0] utils.print_helper.print_data_and_hex(dataTuple[1], False)''' else: logger.debug("Payload Delimiter: %s", args.payload_delimiter[0]) dataSet = [] for dataFile in args.files: if dataFile is None: continue f = open(dataFile, 'r') data = f.read() f.close() data = data.split(args.payload_delimiter[0]) dataSet.extend(data) logger.debug("Sending dataSet: %s" % dataSet) handleData = ble_service_write(args.address[0], args.adapter[0], args.address_type[0], args.handles, dataSet, timeout=timeout) for dataTuple in handleData: print "\nHandle:", "0x" + dataTuple[0] print "Input:" print_data_and_hex([dataTuple[2]], False, prefix="\t") print "Output:" print_data_and_hex(dataTuple[1], False, prefix="\t") if command == 'subscribe': print "Subscribing to device" if args.subscribe_timeout[0] is not None: timeout = args.subscribe_timeout[0] * 1000 else: timeout = None ble_handle_subscribe(args.address[0], args.handles, args.adapter[0], args.address_type[0], args.mode[0], timeout) return def main(): """ Main loop for BLESuite command line tool. :return: """ args = parse_command() process_args(args) logger.debug("Args: %s" % args)
53.214092
120
0.503718
81e76b593a639f4ccc4339a8a2cd93480b119674
3,905
go
Go
client/user/get_profile_responses.go
prydin/go-fitter
243604ef54c2ab39441858b4fb40971b4794854b
[ "Apache-2.0" ]
null
null
null
client/user/get_profile_responses.go
prydin/go-fitter
243604ef54c2ab39441858b4fb40971b4794854b
[ "Apache-2.0" ]
null
null
null
client/user/get_profile_responses.go
prydin/go-fitter
243604ef54c2ab39441858b4fb40971b4794854b
[ "Apache-2.0" ]
null
null
null
// Code generated by go-swagger; DO NOT EDIT. package user // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" ) // GetProfileReader is a Reader for the GetProfile structure. type GetProfileReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *GetProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetProfileOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 201: result := NewGetProfileCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 401: result := NewGetProfileUnauthorized() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 409: result := NewGetProfileConflict() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) } } // NewGetProfileOK creates a GetProfileOK with default headers values func NewGetProfileOK() *GetProfileOK { return &GetProfileOK{} } /*GetProfileOK handles this case with default header values. A successful request. */ type GetProfileOK struct { } func (o *GetProfileOK) Error() string { return fmt.Sprintf("[GET /1/user/-/profile.json][%d] getProfileOK ", 200) } func (o *GetProfileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewGetProfileCreated creates a GetProfileCreated with default headers values func NewGetProfileCreated() *GetProfileCreated { return &GetProfileCreated{} } /*GetProfileCreated handles this case with default header values. Returned if a new subscription was created in response to your request. */ type GetProfileCreated struct { } func (o *GetProfileCreated) Error() string { return fmt.Sprintf("[GET /1/user/-/profile.json][%d] getProfileCreated ", 201) } func (o *GetProfileCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewGetProfileUnauthorized creates a GetProfileUnauthorized with default headers values func NewGetProfileUnauthorized() *GetProfileUnauthorized { return &GetProfileUnauthorized{} } /*GetProfileUnauthorized handles this case with default header values. The request requires user authentication. */ type GetProfileUnauthorized struct { } func (o *GetProfileUnauthorized) Error() string { return fmt.Sprintf("[GET /1/user/-/profile.json][%d] getProfileUnauthorized ", 401) } func (o *GetProfileUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewGetProfileConflict creates a GetProfileConflict with default headers values func NewGetProfileConflict() *GetProfileConflict { return &GetProfileConflict{} } /*GetProfileConflict handles this case with default header values. Returned if the given user is already subscribed to this stream using a different subscription ID, OR if the given subscription ID is already used to identify a subscription to a different stream. */ type GetProfileConflict struct { } func (o *GetProfileConflict) Error() string { return fmt.Sprintf("[GET /1/user/-/profile.json][%d] getProfileConflict ", 409) } func (o *GetProfileConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil }
27.695035
196
0.762612
0589b4bc24575fc5aaf96966e4e1e5a15cde2ece
91
rb
Ruby
app/controllers/tweets_controller.rb
alex6851/sinatra-fwitter-group-project-online-web-sp-000
5db531cb20d717624ca8490288567fd154dc0fba
[ "RSA-MD" ]
null
null
null
app/controllers/tweets_controller.rb
alex6851/sinatra-fwitter-group-project-online-web-sp-000
5db531cb20d717624ca8490288567fd154dc0fba
[ "RSA-MD" ]
null
null
null
app/controllers/tweets_controller.rb
alex6851/sinatra-fwitter-group-project-online-web-sp-000
5db531cb20d717624ca8490288567fd154dc0fba
[ "RSA-MD" ]
null
null
null
class TweetsController < ApplicationController get '/tweets' do binding.pry end end
10.111111
46
0.758242
46009cf1ce649b8dcce7b2b1bca51f2ee0dfdeae
1,290
kt
Kotlin
src/chapter4/section1/ex8.kt
w1374720640/Algorithms
879885b82ef51d58efe578c9391f04bc54c2531d
[ "MIT" ]
1
2022-01-08T13:57:45.000Z
2022-01-08T13:57:45.000Z
src/chapter4/section1/ex8.kt
w1374720640/Algorithms
879885b82ef51d58efe578c9391f04bc54c2531d
[ "MIT" ]
null
null
null
src/chapter4/section1/ex8.kt
w1374720640/Algorithms
879885b82ef51d58efe578c9391f04bc54c2531d
[ "MIT" ]
1
2021-04-23T11:13:32.000Z
2021-04-23T11:13:32.000Z
package chapter4.section1 import chapter1.section5.CompressionWeightedQuickUnionUF import edu.princeton.cs.algs4.In import extensions.readInt /** * 按照正文中的要求,用union-find算法实现4.1.2.3中搜索的API */ class UnionFindSearch(val graph: Graph, val s: Int) : Search(graph, s) { // 压缩路径、带权重的QuickUnion private val uf = CompressionWeightedQuickUnionUF(graph.V) private var count = 0 init { for (v in 0 until graph.V) { graph.adj(v).forEach { w -> uf.union(v, w) } } // 初始化时统计count值,防止count()方法时间复杂度退化为O(N) val sId = uf.find(s) for (v in 0 until graph.V) { if (uf.find(v) == sId) { count++ } } } override fun marked(v: Int): Boolean { return uf.connected(s, v) } override fun count(): Int { return uf.treeSize[uf.find(s)] } } fun main() { val path = "./data/tinyG.txt" val graph = Graph(In(path)) val s = readInt("search with: ") val search = UnionFindSearch(graph, s) for (i in 0 until graph.V) { if (search.marked(i)) { print("$i ") } } println() println("count=${search.count()}") println("${if (search.count() == graph.V) "" else "NOT"} connected") }
23.888889
72
0.555814
7129b32e0bea1eef1fcd481173045f2db1c095d2
870
ts
TypeScript
clients/node/client-elastic-beanstalk-node/types/DescribeApplicationVersionsOutput.ts
pravgupt/aws-sdk-js-v3
1fd0fab5da141d934eb98624d6c23b347806bb47
[ "Apache-2.0" ]
null
null
null
clients/node/client-elastic-beanstalk-node/types/DescribeApplicationVersionsOutput.ts
pravgupt/aws-sdk-js-v3
1fd0fab5da141d934eb98624d6c23b347806bb47
[ "Apache-2.0" ]
null
null
null
clients/node/client-elastic-beanstalk-node/types/DescribeApplicationVersionsOutput.ts
pravgupt/aws-sdk-js-v3
1fd0fab5da141d934eb98624d6c23b347806bb47
[ "Apache-2.0" ]
null
null
null
import { _UnmarshalledApplicationVersionDescription } from "./_ApplicationVersionDescription"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * <p>Result message wrapping a list of application version descriptions.</p> */ export interface DescribeApplicationVersionsOutput extends __aws_sdk_types.MetadataBearer { /** * <p>List of <code>ApplicationVersionDescription</code> objects sorted in order of creation.</p> */ ApplicationVersions?: Array<_UnmarshalledApplicationVersionDescription>; /** * <p>In a paginated request, the token that you can pass in a subsequent request to get the next response page.</p> */ NextToken?: string; /** * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ $metadata: __aws_sdk_types.ResponseMetadata; }
36.25
139
0.755172
7611b4e07c23867c6f6e359c98ace7513de201ca
1,319
go
Go
src/github.com/st3v/fakesandra/cql/proto/v3/handler.go
st3v/fakesandra
cfc962d29a7b0611cf81a0c097afa864cbee466c
[ "Apache-2.0" ]
1
2016-09-01T00:33:23.000Z
2016-09-01T00:33:23.000Z
src/github.com/st3v/fakesandra/cql/proto/v3/handler.go
st3v/fakesandra
cfc962d29a7b0611cf81a0c097afa864cbee466c
[ "Apache-2.0" ]
null
null
null
src/github.com/st3v/fakesandra/cql/proto/v3/handler.go
st3v/fakesandra
cfc962d29a7b0611cf81a0c097afa864cbee466c
[ "Apache-2.0" ]
null
null
null
package v3 import ( "bytes" "github.com/st3v/fakesandra/cql/proto" ) var StartupFrameHandler = proto.FrameHandlerFunc(startupFrameHandler) var QueryFrameHandler = NewQueryFrameHandler(ResultVoidHandler) var ResultVoidHandler = proto.QueryHandlerFunc(resultVoidHandler) func resultVoidHandler(qry string, req proto.Frame, rw proto.ResponseWriter) { rw.WriteFrame(ResultVoidResponse(req)) } func startupFrameHandler(req proto.Frame, rw proto.ResponseWriter) { // log.Println("Received STARTUP request") rw.WriteFrame(ReadyResponse(req)) } func NewQueryFrameHandler(handler proto.QueryHandler) *queryFrameHandler { return &queryFrameHandler{ queryHandler: handler, } } type queryFrameHandler struct { queryHandler proto.QueryHandler } func (qfm *queryFrameHandler) ServeCQL(req proto.Frame, rw proto.ResponseWriter) { var qry Query if err := readQuery(bytes.NewReader(req.Body()), &qry); err != nil { // TODO: write error to ResponseWriter return } qfm.queryHandler.ServeQuery(qry.TrimmedStatement(), req, rw) } func (qfm *queryFrameHandler) Prepend(handler proto.QueryHandler) { next := qfm.queryHandler qfm.queryHandler = proto.QueryHandlerFunc( func(qry string, req proto.Frame, rw proto.ResponseWriter) { handler.ServeQuery(qry, req, rw) next.ServeQuery(qry, req, rw) }, ) }
24.886792
82
0.769522
48d203b521bf3acaed6a050235d625ef40c8489a
350
sql
SQL
C# DB Fundamentals/Databases Basics - MS SQL Server/Database Programmability and Transactions - Exercise/10. People with Balance Higher Than.sql
DanielBankov/SoftUni
378b55e249cdaa9570b101238c289cf0102ba946
[ "MIT" ]
null
null
null
C# DB Fundamentals/Databases Basics - MS SQL Server/Database Programmability and Transactions - Exercise/10. People with Balance Higher Than.sql
DanielBankov/SoftUni
378b55e249cdaa9570b101238c289cf0102ba946
[ "MIT" ]
null
null
null
C# DB Fundamentals/Databases Basics - MS SQL Server/Database Programmability and Transactions - Exercise/10. People with Balance Higher Than.sql
DanielBankov/SoftUni
378b55e249cdaa9570b101238c289cf0102ba946
[ "MIT" ]
null
null
null
CREATE PROC usp_GetHoldersWithBalanceHigherThan @Number DECIMAL(14, 2) AS SELECT k.FirstName, k.LastName FROM ( SELECT ah.Id, ah.FirstName, ah.LastName FROM Accounts AS a JOIN AccountHolders AS ah ON ah.Id = a.AccountHolderId GROUP BY ah.Id, ah.FirstName, ah.LastName HAVING SUM(a.Balance) > @Number) AS k ORDER BY k.FirstName, k.LastName
38.888889
73
0.76
f9ca93a7ce2def33e191e29bc9321e31112cdae0
1,280
go
Go
transform/process.go
brunopugliese/cas-xog
104a1e45ed2476e2c4634693eaa846c2cb73f228
[ "MIT" ]
12
2017-04-03T18:29:46.000Z
2022-01-31T11:25:45.000Z
transform/process.go
brunopugliese/cas-xog
104a1e45ed2476e2c4634693eaa846c2cb73f228
[ "MIT" ]
22
2017-11-10T12:35:15.000Z
2021-01-15T12:17:34.000Z
transform/process.go
brunopugliese/cas-xog
104a1e45ed2476e2c4634693eaa846c2cb73f228
[ "MIT" ]
2
2020-08-17T17:33:33.000Z
2020-12-22T11:37:28.000Z
package transform import ( "errors" "github.com/andreluzz/cas-xog/model" "github.com/beevik/etree" "regexp" ) func specificProcessTransformations(xog, aux *etree.Document, file *model.DriverFile) error { removeElementFromParent(xog, "//lookups") if file.CopyPermissions != "" { securityElement, err := copyProcessPermissions(aux) if err != nil { return err } removeElementFromParent(xog, "//Security") process := xog.FindElement("//Process") if process == nil { return errors.New("process element not found") } process.AddChild(securityElement) } includeEscapeText(xog) return nil } func copyProcessPermissions(xog *etree.Document) (*etree.Element, error) { element := xog.FindElement("//Security") if element == nil { return nil, errors.New("auxiliary xog to copy security from has no security element") } return element.Copy(), nil } func includeEscapeText(xog *etree.Document) { xogQueryTagString, _ := xog.WriteToString() sqlQueryTagRegexp, _ := regexp.Compile(`(<[^/].*):(query|update)`) sqlTags := sqlQueryTagRegexp.FindAllString(xogQueryTagString, -1) if len(sqlTags) <= 0 { return } for _, tag := range sqlTags { for _, e := range xog.FindElements("//" + tag[1:]) { e.CreateAttr("escapeText", "false") } } }
22.857143
93
0.697656
088191201697751bfa41e3957d29749b0b0d5962
5,804
swift
Swift
ConnectionKit/Classes/Socket/CKSTask.swift
ddrccw/ConnectionKit
7836c8d5781e481679936a24b2b6c77cc01c9e1a
[ "MIT" ]
null
null
null
ConnectionKit/Classes/Socket/CKSTask.swift
ddrccw/ConnectionKit
7836c8d5781e481679936a24b2b6c77cc01c9e1a
[ "MIT" ]
null
null
null
ConnectionKit/Classes/Socket/CKSTask.swift
ddrccw/ConnectionKit
7836c8d5781e481679936a24b2b6c77cc01c9e1a
[ "MIT" ]
null
null
null
// // CKSUDPTask.swift // ConnectionKit-iOS // // Created by ddrccw on 2018/3/17. // Copyright © 2018年 ddrccw. All rights reserved. // import Foundation /// A type that can inspect and optionally adapt a `URLRequest` in some manner if necessary. protocol CKSTaskAdapter { /// Inspects and adapts the specified `URLRequest` in some manner if necessary and returns the result. /// /// - parameter urlRequest: The URL request to adapt. /// /// - throws: An `Error` if the adaptation encounters an error. /// /// - returns: The adapted `URLRequest`. func adapt(_ task: CKSTask) throws -> CKSTask } protocol CKSTaskConvertible { associatedtype Socket associatedtype Task func task(sock: Socket, adapter: CKSTaskAdapter?) throws -> Task } final class CKSAnyTaskConvertible<Socket, Task>: CKSTaskConvertible { private class _AnyTaskConvertibleBase<Socket, Task>: CKSTaskConvertible { func task(sock: Socket, adapter: CKSTaskAdapter?) throws -> Task { fatalError("Must override") } } private final class _AnyTaskConvertibleBox<Base: CKSTaskConvertible>: _AnyTaskConvertibleBase<Base.Socket, Base.Task> { var base: Base init(_ base: Base) { self.base = base } var _base: Any { return base } override func task(sock: Base.Socket, adapter: CKSTaskAdapter?) throws -> Base.Task { return try base.task(sock: sock, adapter: adapter) } } private var _box: _AnyTaskConvertibleBase<Socket, Task> init<Base: CKSTaskConvertible>(_ base: Base) where Base.Socket == Socket, Base.Task == Task { _box = _AnyTaskConvertibleBox<Base>(base) } func task(sock: Socket, adapter: CKSTaskAdapter?) throws -> Task { return try _box.task(sock: sock, adapter: adapter) } func base<Base: CKSTaskConvertible>() -> Base? { let box = _box as? _AnyTaskConvertibleBox<Base> return box?.base } } public protocol PayloadConvertible { func asData() throws -> Data func asFileURL() throws -> URL } extension Data: PayloadConvertible { public func asData() throws -> Data { return self } public func asFileURL() throws -> URL { guard let path = String(data: self, encoding: .utf8) else { throw CKSUDPError.invalidPayload(payload: self) } return URL(fileURLWithPath: path) } } extension String: PayloadConvertible { public func asData() throws -> Data { guard let data = self.data(using: .utf8) else { throw CKSUDPError.invalidPayload(payload: self) } return data } public func asFileURL() throws -> URL { return URL(fileURLWithPath: self) } } extension File: PayloadConvertible { public func asData() throws -> Data { guard let data = self.toJSONString()?.data(using: .utf8) else { throw CKSUDPError.invalidPayload(payload: self) } return data } public func asFileURL() throws -> URL { guard let path = filePath else { throw CKSUDPError.invalidPayload(payload: self) } return URL(fileURLWithPath: path) } } var g_taskUniqueID: Int32 = 0 public class CKSTask { /* an identifier for this task, assigned by and unique to the owning session */ lazy var taskIdentifier: Int = { return Int(OSAtomicIncrement32Barrier(&g_taskUniqueID)) }() var payload: Payload? var sourceAddress: Data? var targetAddress: Data? var expectedContentLength: Int64 = 0 //number of body bytes we expect to send or write enum Payload: PayloadConvertible { case data(Data) case text(String) case file(File) func asData() throws -> Data { switch self { case .data(let data): return try data.asData() case .text(let text): return try text.asData() case .file(let file): return try file.asData() } } func asFileURL() throws -> URL { switch self { case .data(let data): return try data.asFileURL() case .text(let text): return try text.asFileURL() case .file(let file): return try file.asFileURL() } } } init(payload: Payload?, fromAddress: Data? = nil, toAddress: Data? = nil) { self.payload = payload self.sourceAddress = fromAddress self.targetAddress = toAddress } } extension CKSTask { func adapt(using adapter: CKSTaskAdapter?) throws -> CKSTask { guard let adapter = adapter else { return self } return try adapter.adapt(self) } } public class CKSUploadTask: CKSTask { var countOfBytesPerRead: Int64 = 0 convenience init(payload: Payload?, fromAddress: Data? = nil, toAddress: Data? = nil, countOfBytesPerRead: Int64) { self.init(payload: payload, fromAddress: fromAddress, toAddress: toAddress) self.countOfBytesPerRead = countOfBytesPerRead if case .file(let file)? = payload { expectedContentLength = file.size } } } public class CKSDownloadTask: CKSTask { var countOfBytesPerWrite: Int64 = 0 convenience init(payload: Payload?, fromAddress: Data? = nil, toAddress: Data? = nil, countOfBytesPerWrite: Int64) { self.init(payload: payload, fromAddress: fromAddress, toAddress: toAddress) self.countOfBytesPerWrite = countOfBytesPerWrite if case .file(let file)? = payload { expectedContentLength = file.size } } }
26.995349
123
0.61561
eeca1f8d7725cacabf13293b2c96e201a16fc0a5
572
lua
Lua
libuix.lua
octacian/libuix
40844d97206f0672bb1b5ac4ec605fecf5312d72
[ "MIT" ]
6
2020-01-13T08:53:21.000Z
2021-01-06T22:18:16.000Z
libuix.lua
octacian/libuix
40844d97206f0672bb1b5ac4ec605fecf5312d72
[ "MIT" ]
null
null
null
libuix.lua
octacian/libuix
40844d97206f0672bb1b5ac4ec605fecf5312d72
[ "MIT" ]
null
null
null
local types = import("types.lua") local manager = import("formspec/manager.lua") ----------------------- -- UIXInstance Class -- ----------------------- local UIXInstance = types.type("UIXInstance") function UIXInstance:new(modname) types.force({"string"}, modname) local instance = {modname = modname} setmetatable(instance, UIXInstance) instance.formspec = manager:new(instance) return instance -- TODO: This should use the types.static utility, however, it currently clashes with types.type. end ------------- -- Exports -- ------------- return UIXInstance
22.88
114
0.652098
d634b3473739af438b5a31f2a5328ff905962e87
731
swift
Swift
Source/iMindLib/Protocols/InfoPresenter.swift
imindeu/iMindLib.swift
798d9b28959456b0a54a16b7d983e1b2b70209bb
[ "MIT" ]
null
null
null
Source/iMindLib/Protocols/InfoPresenter.swift
imindeu/iMindLib.swift
798d9b28959456b0a54a16b7d983e1b2b70209bb
[ "MIT" ]
null
null
null
Source/iMindLib/Protocols/InfoPresenter.swift
imindeu/iMindLib.swift
798d9b28959456b0a54a16b7d983e1b2b70209bb
[ "MIT" ]
null
null
null
// // ErrorPresenter.swift // iMindLib // // Created by Rezessy Miklós on 2017. 01. 24.. // Copyright © 2017. iMind. All rights reserved. // import Foundation protocol InfoPresenter { /** Presenting information for the user with level and message parts - parameter level: The level of the info. The value can be a LevelType which appears as a string like e.g. "Error" or "Warning" - parameter messsage: The main content of the message. The value can be a custom string. */ func presentInfo(level: LevelType, message: String) } enum LevelType: String { case error = "ERROR" case warning = "WARNING" case info = "INFO" case debug = "DEBUG" case alert = "ALERT" }
24.366667
93
0.660739
855141dd9c7a676552a75f96f4c5092226097171
632
dart
Dart
lib/drawerfiles/map.dart
samrat19/vivarta2019
93ddb9fb84080944d30b5c4f0e85083a42203540
[ "Apache-2.0" ]
1
2020-02-12T04:37:20.000Z
2020-02-12T04:37:20.000Z
lib/drawerfiles/map.dart
samrat19/vivarta2019
93ddb9fb84080944d30b5c4f0e85083a42203540
[ "Apache-2.0" ]
null
null
null
lib/drawerfiles/map.dart
samrat19/vivarta2019
93ddb9fb84080944d30b5c4f0e85083a42203540
[ "Apache-2.0" ]
1
2019-01-22T07:10:22.000Z
2019-01-22T07:10:22.000Z
import 'package:flutter/material.dart'; import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; class Map extends StatefulWidget { @override _MapState createState() => _MapState(); } class _MapState extends State<Map> { @override Widget build(BuildContext context) { return WebviewScaffold( appBar: AppBar( title: Text("Here we are",), backgroundColor: Colors.teal, ), url: "https://www.google.co.in/maps/place/Techno+India+University/@22.5758587,88.4260918,17z/data=!3m1!4b1!4m5!3m4!1s0x39f970ae9a2e19b5:0x16c43b9069f4b159!8m2!3d22.5758538!4d88.4282805", ); } }
27.478261
192
0.716772
17b4272f6fbbe89cd28e4714476a47664f44dce6
309
sql
SQL
SQLBeam.Core/Database/Config/MoveExecutableTaskToRunning.sql
MindFlavor/SQLBeam
27fadbfec69e0434247063440d2fd944d5b97cc2
[ "MIT" ]
5
2018-03-01T03:31:11.000Z
2022-01-19T16:17:35.000Z
SQLBeam.Core/Database/Config/MoveExecutableTaskToRunning.sql
MindFlavor/SQLBeam
27fadbfec69e0434247063440d2fd944d5b97cc2
[ "MIT" ]
null
null
null
SQLBeam.Core/Database/Config/MoveExecutableTaskToRunning.sql
MindFlavor/SQLBeam
27fadbfec69e0434247063440d2fd944d5b97cc2
[ "MIT" ]
null
null
null
BEGIN TRANSACTION INSERT INTO [core].[RunningTasks] SELECT [GUID], [Server], [Destination_ID], [Task_ID], [Parameters], [WaitStartTime], [ScheduledTime], GETDATE() FROM [core].[ScheduledTasks] WITH(XLOCK) WHERE GUID = @GUID; DELETE FROM [core].[ScheduledTasks] WHERE GUID = @GUID; COMMIT TRANSACTION
22.071429
106
0.724919
fe02fe753b35b2c7bf7b3f849b2f0bca447d851d
629
swift
Swift
anotherContains.playground/Contents.swift
DahnaB/ios-another-contains-swift-challenge
cac42d7e453698c0ba2109e1fb41536a44206d8d
[ "MIT" ]
null
null
null
anotherContains.playground/Contents.swift
DahnaB/ios-another-contains-swift-challenge
cac42d7e453698c0ba2109e1fb41536a44206d8d
[ "MIT" ]
null
null
null
anotherContains.playground/Contents.swift
DahnaB/ios-another-contains-swift-challenge
cac42d7e453698c0ba2109e1fb41536a44206d8d
[ "MIT" ]
null
null
null
import Foundation extension String { func anotherContains(_ target: String) -> Bool { let stringA = self.lowercased() let stringB = target.lowercased() var anotherContains: Bool { return stringA.isEqual(stringB) } return anotherContains } } //unfortunately ran out of time to get it working properly D: // test cases print("Where is WaLdO".anotherContains("WALDO")) // true print("Where is WaLdO".anotherContains("where")) // true print("Where is WaLdO".anotherContains("is wA")) // true print("Where is WaLdO".anotherContains("nOPe")) // false
26.208333
62
0.647059
ca062b8fee6ad251119d5ce4d84011ac4eb58bdf
128
java
Java
src/main/java/daggerok/interceptors/events/ResetEvent.java
daggerok/cdi-example
c347619a7cec962abc597a1426923777ec1c802f
[ "MIT" ]
null
null
null
src/main/java/daggerok/interceptors/events/ResetEvent.java
daggerok/cdi-example
c347619a7cec962abc597a1426923777ec1c802f
[ "MIT" ]
null
null
null
src/main/java/daggerok/interceptors/events/ResetEvent.java
daggerok/cdi-example
c347619a7cec962abc597a1426923777ec1c802f
[ "MIT" ]
null
null
null
package daggerok.interceptors.events; import lombok.Value; @Value public class ResetEvent { private final String payload; }
14.222222
37
0.789063
c2bf7d0ae3ccbd60e49ca0af64eec3dfe996eb94
3,445
kt
Kotlin
bootstrap/src/main/kotlin/win.kt
mikehearn/graviton-browser
ce6180b85c627293d22e76073ecf9b06910af310
[ "Apache-2.0" ]
26
2018-03-31T21:58:58.000Z
2018-12-24T14:59:13.000Z
bootstrap/src/main/kotlin/win.kt
mikehearn/graviton-browser
ce6180b85c627293d22e76073ecf9b06910af310
[ "Apache-2.0" ]
69
2018-03-31T16:36:08.000Z
2018-12-29T23:07:13.000Z
bootstrap/src/main/kotlin/win.kt
mikehearn/graviton-browser
ce6180b85c627293d22e76073ecf9b06910af310
[ "Apache-2.0" ]
4
2018-03-31T18:20:37.000Z
2018-10-30T16:30:47.000Z
import kotlinx.cinterop.* import platform.windows.* import platform.posix.* import kotlin.math.max typealias WSTR = CPointer<UShortVar> private fun WSTR.toKString(): String = memScoped { // Figure out how much memory we need after UTF-8 conversion. val sz = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, this@toKString, -1, null, 0, null, null) // Now convert to UTF-8 and from there, a String. val utf8 = allocArray<ByteVar>(sz) val r = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, this@toKString, -1, utf8, sz, null, null) if (r == 0) throw RuntimeException("Could not convert to UTF-8") utf8.toKString() } private val fullBinaryPath: String by lazy { // Get the path to the EXE. val hmodule = GetModuleHandleW(null) val wstr: WSTR = nativeHeap.allocArray<UShortVar>(MAX_PATH) GetModuleFileNameW(hmodule, wstr, MAX_PATH) // Strip the filename leaving just the directory. PathRemoveFileSpecW(wstr) wstr.toKString() } fun error(message: String) { MessageBoxW(null, message, "Error", MB_OK.toUInt() or MB_ICONEXCLAMATION.toUInt()) throw RuntimeException(message) } fun findHighestVersion(): Int = memScoped { val path = "$fullBinaryPath\\*" val findData = alloc<_WIN32_FIND_DATAW>() var hFind = FindFirstFileW(path, findData.ptr) if (hFind.rawValue.toLong() == -1L) { error("Could not list contents of directory $path") } var highestVersion = 0 try { do { val entryName = findData.cFileName.toKString() if (entryName.any { !it.isDigit() }) continue val num: Int = entryName.toInt() highestVersion = max(highestVersion, num) } while (FindNextFileW(hFind, findData.ptr) != 0) } finally { FindClose(hFind) } return highestVersion } fun main(args: Array<String>) { memScoped { val highestVersionFound = findHighestVersion() val execDir = "$fullBinaryPath\\$highestVersionFound" val execPath = "$execDir\\GravitonBrowser.exe" putenv("GRAVITON_PATH=$fullBinaryPath") putenv("GRAVITON_EXE=$execPath") putenv("GRAVITON_VERSION=$highestVersionFound") // Enable VT-100 ANSI escape sequence handling on Windows 10. // This enables coloured terminal output for all apps. val stdout = GetStdHandle((-11).toUInt()) var dwMode = alloc<UIntVar>() GetConsoleMode(stdout, dwMode.ptr) SetConsoleMode(stdout, dwMode.value or 0x0004u or 0x0008u) // Start up the versioned binary. val startupInfo = alloc<_STARTUPINFOW>() startupInfo.cb = sizeOf<_STARTUPINFOW>().toUInt() val processInfo = alloc<_PROCESS_INFORMATION>() val argStr = "\"$execPath\" " + args.joinToString(" ") val result = CreateProcessW(null, argStr.wcstr.ptr, null, null, 1, 0, null, null, startupInfo.ptr, processInfo.ptr) if (result == 0) { val lastError = GetLastError() error("CreateProcess returned $lastError") } // We may want to wait for it, if there's an attached console. Otherwise we should // quit to ensure this binary can be updated in-place by a background update. There's // no point in waiting if there's no cmd.com to keep hanging around. if (GetConsoleWindow() != null) WaitForSingleObject(processInfo.hProcess, INFINITE) } }
38.707865
123
0.661248
74b682029323befbb79b5e699563ff7e49efe9f3
348
js
JavaScript
Documentation/html/d0/d7a/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_continuation63f6925cd849065e1e2c514ce69d6108.js
jamesbrindle/YTMusicUploader
c2c7c7d694275f311932316794d179b44814c4d2
[ "MIT" ]
127
2020-08-30T16:36:03.000Z
2022-02-19T19:17:08.000Z
Documentation/html/d0/d7a/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_continuation63f6925cd849065e1e2c514ce69d6108.js
fcrimins/YTMusicUploader
e90784391398a96e12595dc6fe4dda64ae345cae
[ "MIT" ]
33
2020-08-31T17:17:16.000Z
2021-10-16T11:41:03.000Z
Documentation/html/d0/d7a/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_continuation63f6925cd849065e1e2c514ce69d6108.js
fcrimins/YTMusicUploader
e90784391398a96e12595dc6fe4dda64ae345cae
[ "MIT" ]
22
2020-10-10T19:55:56.000Z
2022-03-08T03:53:59.000Z
var class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_continuation63f6925cd849065e1e2c514ce69d6108 = [ [ "musicVideoType", "d0/d7a/class_y_t_music_uploader_1_1_providers_1_1_request_models_1_1_browse_artist_results_continuation63f6925cd849065e1e2c514ce69d6108.html#ad637d0c485d6a1441167c8fc1f3ee55f", null ] ];
87
208
0.916667
ca14bb007e538580842c77c1360bd7df3de46b36
7,072
java
Java
src/com/innerfunction/choreographer/Process.java
innerfunction/semo-core-and
36e36a6d292da28b183c56e9b44ad5288f609344
[ "Apache-2.0" ]
null
null
null
src/com/innerfunction/choreographer/Process.java
innerfunction/semo-core-and
36e36a6d292da28b183c56e9b44ad5288f609344
[ "Apache-2.0" ]
null
null
null
src/com/innerfunction/choreographer/Process.java
innerfunction/semo-core-and
36e36a6d292da28b183c56e9b44ad5288f609344
[ "Apache-2.0" ]
null
null
null
package com.innerfunction.choreographer; import java.util.List; import java.util.Map; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import com.innerfunction.util.Locals; /** * A process running a procedure. * @author juliangoacher * */ public class Process { /** The process number. */ protected Number pid; /** The name of the procedure being run. */ protected String procedureName; /** The procedure being run. */ private Procedure procedure; /** The parent choreographer. */ private Choreographer choreographer; /** Locals used to record process state. */ private Locals locals; /** * Create a new process. * @param pid * @param choreographer * @param procedureName */ public Process(Number pid, Choreographer choreographer, String procedureName, String procedureID) { this.pid = pid; this.choreographer = choreographer; this.procedureName = procedureName; procedure = choreographer.getProcedure( procedureName ); locals = new Locals( String.format("%s.%s", Process.class.getName(), pid ) ); locals.setString("procedureID", procedureID ); } /** * Re-create a new process. The procedure name is expected to be found in the process' local storage. * @param pid * @param choreographer */ @SuppressWarnings("rawtypes") public Process(Number pid, Choreographer choreographer) throws ProcessException { this.pid = pid; this.choreographer = choreographer; locals = new Locals( String.format("%s.%s", Process.class.getName(), pid ) ); Map procIDData = (Map)locals.getJSON("procedureID"); if( procIDData == null ) { throw new ProcessException("No procedure identity data found for resumed process"); } procedureName = (String)procIDData.get("name"); procedureName = locals.getString("procedureName"); if( procedureName == null ) { throw new ProcessException("No procedure name found for resumed process"); } procedure = choreographer.getProcedure( procedureName ); if( procedure == null ) { throw new ProcessException("Procedure %s not found", procedureName ); } } public Number getPID() { return pid; } public String getProcedureID() { return locals.getString("procedureID"); } /** * Start the process. * Calls the procedure's 'start' step. * @param args */ protected void start(Object... args) { step("start", args ); } /** Test whether the interrupted process is waiting for a procedure call return. */ protected boolean isWaiting() { return locals.getString("$wait") != null; } /** * Resume the process from its wait state. */ @SuppressWarnings("rawtypes") protected void resumeWait() { Map waitData = (Map)locals.getJSON("$wait"); if( waitData != null ) { Number pid = (Number)waitData.get("pid"); choreographer.addWaitingProcess( this, pid ); } } /** * Resume the process from its last recorded step. */ @SuppressWarnings("rawtypes") protected void resume() { if( !isWaiting() ) { Map stepData = (Map)locals.getJSON("$step"); if( stepData != null ) { String step = (String)stepData.get("step"); Object args = ((List)stepData.get("args")).toArray(); step( step, args ); } else { done(); } } } /** * Execute a step in the procedure. * @param name * @param args */ @SuppressWarnings("unchecked") public void step(String name, Object... args) { try { JSONObject stepData = new JSONObject(); stepData.put("step", name ); JSONArray stepArgs = new JSONArray(); if( args != null ) { for( Object arg : args ) { stepArgs.add( arg ); } } stepData.put("args", stepArgs ); locals.setJSON("$step", stepData ); procedure.run( this, name, args ); } catch(Exception e) { error( e ); } } /** * Call another procedure from this process. * @param procedure * @param contStep * @param args */ @SuppressWarnings("unchecked") public void call(String procedure, String contStep, Object... args) { try { Number pid = choreographer.startProcedure( this, procedure, args ); JSONObject waitData = new JSONObject(); waitData.put("pid", pid ); waitData.put("cont", contStep ); locals.setJSON("$wait", waitData ); } catch(ProcessException e) { error( e ); } } /** * Signal process completion. * @param result */ public void done(String result) { choreographer.done( pid, result ); locals.removeAll(); } /** * Signal process completion with no result. */ public void done() { done( null ); } /** * Signal process failure. * @param e */ public void error(Exception e) { choreographer.error( pid, e ); locals.removeAll(); } /** * Signal process failure. * @param message */ public void error(String message, Object... params) { if( params.length > 0 ) { message = String.format( message, params ); } choreographer.error(pid, new Exception( message ) ); locals.removeAll(); } /** * Receive notification that the child process that this process is waiting for has completed. * @param result */ @SuppressWarnings("rawtypes") protected void childProcessCompleted(Object result) { Map waitData = (Map)locals.getJSON("$wait"); if( waitData != null ) { String contStep = (String)waitData.get("cont"); step( contStep, result ); locals.remove("$wait"); } } /** * Get the locals for this process. */ public Locals getLocals() { return locals; } /** * Create a procedure ID from a procedure name and its arguments. */ @SuppressWarnings("unchecked") public static String makeProcedureID(String name, Object... args) { // Create a JSON object containing the procedure ID. // The procedure ID is formed from the JSON representation of the procedure name + // the procedure arguments, and can be used to identify functionally equivalent // procedure calls. JSONObject procIDData = new JSONObject(); procIDData.put("name", name ); procIDData.put("args", args ); return procIDData.toJSONString(); } }
29.466667
105
0.569146
6e9f4b56f2e8c7648787d9d86e89798f3032a256
1,274
kt
Kotlin
android-base/basektlib/src/main/java/com/kangraoo/basektlib/tools/rx/RxTimer.kt
easemob/Task-4-Android
fc094179ed211c28d9c83ef8fda3e1f3b0f5c061
[ "MIT" ]
3
2021-10-01T17:02:09.000Z
2021-11-17T07:08:09.000Z
android-base/basektlib/src/main/java/com/kangraoo/basektlib/tools/rx/RxTimer.kt
easemob/Creative-Challenge-DrawingBoard
bd0cdce2ef682d1059bc888e91923c00024ba91b
[ "MIT" ]
null
null
null
android-base/basektlib/src/main/java/com/kangraoo/basektlib/tools/rx/RxTimer.kt
easemob/Creative-Challenge-DrawingBoard
bd0cdce2ef682d1059bc888e91923c00024ba91b
[ "MIT" ]
1
2021-09-16T07:57:58.000Z
2021-09-16T07:57:58.000Z
package com.kangraoo.basektlib.tools.rx import com.kangraoo.basektlib.tools.rx.RxTransformerHelper.ioToUI import io.reactivex.Observable import io.reactivex.Observer import io.reactivex.disposables.Disposable import java.util.concurrent.TimeUnit object RxTimer { fun interval(seconds: Int, callback: RxIntervalCallback) { // interval对应参数 :首次执行延时时间 、 每次轮询间隔时间 、 时间类型 Observable.interval(1, 1, TimeUnit.SECONDS) .take(seconds + 1L) .map { seconds - it }.ioToUI() .subscribe(object : Observer<Long> { override fun onComplete() { } override fun onSubscribe(d: Disposable) { callback.currentDisposable(d) } override fun onNext(t: Long) { if (t == 0L) { callback.finish() return } callback.interval(t) } override fun onError(e: Throwable) { callback.finish() } }) } } interface RxIntervalCallback { fun currentDisposable(disposable: Disposable) fun interval(t: Long) fun finish() }
26
65
0.531397
4d06edd03f4f174d9cab2b252e04996717f862b7
502
sql
SQL
migrations/sql/V2020.10.22.09.29__add_trigger_to_mine_seq.sql
bcgov/mds
6c427a66a5edb4196222607291adef8fd6677038
[ "Apache-2.0" ]
25
2018-07-09T19:04:37.000Z
2022-03-15T17:27:10.000Z
migrations/sql/V2020.10.22.09.29__add_trigger_to_mine_seq.sql
areyeslo/mds
e8c38e593e09b78e2a57009c0d003d6c4bfa32e6
[ "Apache-2.0" ]
983
2018-04-25T20:08:07.000Z
2022-03-31T21:45:20.000Z
migrations/sql/V2020.10.22.09.29__add_trigger_to_mine_seq.sql
areyeslo/mds
e8c38e593e09b78e2a57009c0d003d6c4bfa32e6
[ "Apache-2.0" ]
58
2018-05-15T22:35:50.000Z
2021-11-29T19:40:52.000Z
CREATE SEQUENCE mine_mine_number_seq; ALTER SEQUENCE mine_mine_number_seq RESTART WITH 2000000; ALTER TABLE mine ALTER COLUMN mine_no_sequence SET DEFAULT nextval('mine_mine_number_seq'); CREATE FUNCTION new_mine_number_function() RETURNS trigger AS ' BEGIN IF NEW.mine_no IS NULL THEN NEW.mine_no := NEW.mine_no_sequence; END IF; RETURN NEW; END' LANGUAGE 'plpgsql'; CREATE TRIGGER new_mine_mine_number BEFORE INSERT ON mine FOR EACH ROW EXECUTE PROCEDURE new_mine_number_function();
27.888889
74
0.808765
81718c84ae657e67be74f4826dfdfb16f9367eaf
34,392
go
Go
pkg/client/zitadel/org/org.pb.go
caos/zitadel-go
ca6b26e4d6e35411560e313f9084ac436c2643e1
[ "Apache-2.0" ]
13
2021-04-27T11:10:37.000Z
2022-03-28T11:37:24.000Z
pkg/client/zitadel/org/org.pb.go
caos/zitadel-go
ca6b26e4d6e35411560e313f9084ac436c2643e1
[ "Apache-2.0" ]
67
2021-04-22T15:29:39.000Z
2022-03-30T18:03:13.000Z
pkg/client/zitadel/org/org.pb.go
caos/zitadel-go
ca6b26e4d6e35411560e313f9084ac436c2643e1
[ "Apache-2.0" ]
1
2021-12-17T20:00:29.000Z
2021-12-17T20:00:29.000Z
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.18.0 // source: zitadel/org.proto package org import ( object "github.com/caos/zitadel-go/pkg/client/zitadel/object" _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type OrgState int32 const ( OrgState_ORG_STATE_UNSPECIFIED OrgState = 0 OrgState_ORG_STATE_ACTIVE OrgState = 1 OrgState_ORG_STATE_INACTIVE OrgState = 2 ) // Enum value maps for OrgState. var ( OrgState_name = map[int32]string{ 0: "ORG_STATE_UNSPECIFIED", 1: "ORG_STATE_ACTIVE", 2: "ORG_STATE_INACTIVE", } OrgState_value = map[string]int32{ "ORG_STATE_UNSPECIFIED": 0, "ORG_STATE_ACTIVE": 1, "ORG_STATE_INACTIVE": 2, } ) func (x OrgState) Enum() *OrgState { p := new(OrgState) *p = x return p } func (x OrgState) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (OrgState) Descriptor() protoreflect.EnumDescriptor { return file_zitadel_org_proto_enumTypes[0].Descriptor() } func (OrgState) Type() protoreflect.EnumType { return &file_zitadel_org_proto_enumTypes[0] } func (x OrgState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use OrgState.Descriptor instead. func (OrgState) EnumDescriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{0} } type DomainValidationType int32 const ( DomainValidationType_DOMAIN_VALIDATION_TYPE_UNSPECIFIED DomainValidationType = 0 DomainValidationType_DOMAIN_VALIDATION_TYPE_HTTP DomainValidationType = 1 DomainValidationType_DOMAIN_VALIDATION_TYPE_DNS DomainValidationType = 2 ) // Enum value maps for DomainValidationType. var ( DomainValidationType_name = map[int32]string{ 0: "DOMAIN_VALIDATION_TYPE_UNSPECIFIED", 1: "DOMAIN_VALIDATION_TYPE_HTTP", 2: "DOMAIN_VALIDATION_TYPE_DNS", } DomainValidationType_value = map[string]int32{ "DOMAIN_VALIDATION_TYPE_UNSPECIFIED": 0, "DOMAIN_VALIDATION_TYPE_HTTP": 1, "DOMAIN_VALIDATION_TYPE_DNS": 2, } ) func (x DomainValidationType) Enum() *DomainValidationType { p := new(DomainValidationType) *p = x return p } func (x DomainValidationType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (DomainValidationType) Descriptor() protoreflect.EnumDescriptor { return file_zitadel_org_proto_enumTypes[1].Descriptor() } func (DomainValidationType) Type() protoreflect.EnumType { return &file_zitadel_org_proto_enumTypes[1] } func (x DomainValidationType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use DomainValidationType.Descriptor instead. func (DomainValidationType) EnumDescriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{1} } type OrgFieldName int32 const ( OrgFieldName_ORG_FIELD_NAME_UNSPECIFIED OrgFieldName = 0 OrgFieldName_ORG_FIELD_NAME_NAME OrgFieldName = 1 ) // Enum value maps for OrgFieldName. var ( OrgFieldName_name = map[int32]string{ 0: "ORG_FIELD_NAME_UNSPECIFIED", 1: "ORG_FIELD_NAME_NAME", } OrgFieldName_value = map[string]int32{ "ORG_FIELD_NAME_UNSPECIFIED": 0, "ORG_FIELD_NAME_NAME": 1, } ) func (x OrgFieldName) Enum() *OrgFieldName { p := new(OrgFieldName) *p = x return p } func (x OrgFieldName) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (OrgFieldName) Descriptor() protoreflect.EnumDescriptor { return file_zitadel_org_proto_enumTypes[2].Descriptor() } func (OrgFieldName) Type() protoreflect.EnumType { return &file_zitadel_org_proto_enumTypes[2] } func (x OrgFieldName) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use OrgFieldName.Descriptor instead. func (OrgFieldName) EnumDescriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{2} } type Org struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Details *object.ObjectDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` State OrgState `protobuf:"varint,3,opt,name=state,proto3,enum=zitadel.org.v1.OrgState" json:"state,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` PrimaryDomain string `protobuf:"bytes,5,opt,name=primary_domain,json=primaryDomain,proto3" json:"primary_domain,omitempty"` } func (x *Org) Reset() { *x = Org{} if protoimpl.UnsafeEnabled { mi := &file_zitadel_org_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Org) String() string { return protoimpl.X.MessageStringOf(x) } func (*Org) ProtoMessage() {} func (x *Org) ProtoReflect() protoreflect.Message { mi := &file_zitadel_org_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Org.ProtoReflect.Descriptor instead. func (*Org) Descriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{0} } func (x *Org) GetId() string { if x != nil { return x.Id } return "" } func (x *Org) GetDetails() *object.ObjectDetails { if x != nil { return x.Details } return nil } func (x *Org) GetState() OrgState { if x != nil { return x.State } return OrgState_ORG_STATE_UNSPECIFIED } func (x *Org) GetName() string { if x != nil { return x.Name } return "" } func (x *Org) GetPrimaryDomain() string { if x != nil { return x.PrimaryDomain } return "" } type Domain struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` Details *object.ObjectDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` DomainName string `protobuf:"bytes,3,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` IsVerified bool `protobuf:"varint,4,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"` IsPrimary bool `protobuf:"varint,5,opt,name=is_primary,json=isPrimary,proto3" json:"is_primary,omitempty"` ValidationType DomainValidationType `protobuf:"varint,6,opt,name=validation_type,json=validationType,proto3,enum=zitadel.org.v1.DomainValidationType" json:"validation_type,omitempty"` } func (x *Domain) Reset() { *x = Domain{} if protoimpl.UnsafeEnabled { mi := &file_zitadel_org_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Domain) String() string { return protoimpl.X.MessageStringOf(x) } func (*Domain) ProtoMessage() {} func (x *Domain) ProtoReflect() protoreflect.Message { mi := &file_zitadel_org_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Domain.ProtoReflect.Descriptor instead. func (*Domain) Descriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{1} } func (x *Domain) GetOrgId() string { if x != nil { return x.OrgId } return "" } func (x *Domain) GetDetails() *object.ObjectDetails { if x != nil { return x.Details } return nil } func (x *Domain) GetDomainName() string { if x != nil { return x.DomainName } return "" } func (x *Domain) GetIsVerified() bool { if x != nil { return x.IsVerified } return false } func (x *Domain) GetIsPrimary() bool { if x != nil { return x.IsPrimary } return false } func (x *Domain) GetValidationType() DomainValidationType { if x != nil { return x.ValidationType } return DomainValidationType_DOMAIN_VALIDATION_TYPE_UNSPECIFIED } type OrgQuery struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Query: // *OrgQuery_NameQuery // *OrgQuery_DomainQuery Query isOrgQuery_Query `protobuf_oneof:"query"` } func (x *OrgQuery) Reset() { *x = OrgQuery{} if protoimpl.UnsafeEnabled { mi := &file_zitadel_org_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *OrgQuery) String() string { return protoimpl.X.MessageStringOf(x) } func (*OrgQuery) ProtoMessage() {} func (x *OrgQuery) ProtoReflect() protoreflect.Message { mi := &file_zitadel_org_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OrgQuery.ProtoReflect.Descriptor instead. func (*OrgQuery) Descriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{2} } func (m *OrgQuery) GetQuery() isOrgQuery_Query { if m != nil { return m.Query } return nil } func (x *OrgQuery) GetNameQuery() *OrgNameQuery { if x, ok := x.GetQuery().(*OrgQuery_NameQuery); ok { return x.NameQuery } return nil } func (x *OrgQuery) GetDomainQuery() *OrgDomainQuery { if x, ok := x.GetQuery().(*OrgQuery_DomainQuery); ok { return x.DomainQuery } return nil } type isOrgQuery_Query interface { isOrgQuery_Query() } type OrgQuery_NameQuery struct { NameQuery *OrgNameQuery `protobuf:"bytes,1,opt,name=name_query,json=nameQuery,proto3,oneof"` } type OrgQuery_DomainQuery struct { DomainQuery *OrgDomainQuery `protobuf:"bytes,2,opt,name=domain_query,json=domainQuery,proto3,oneof"` } func (*OrgQuery_NameQuery) isOrgQuery_Query() {} func (*OrgQuery_DomainQuery) isOrgQuery_Query() {} type OrgNameQuery struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Method object.TextQueryMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.v1.TextQueryMethod" json:"method,omitempty"` } func (x *OrgNameQuery) Reset() { *x = OrgNameQuery{} if protoimpl.UnsafeEnabled { mi := &file_zitadel_org_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *OrgNameQuery) String() string { return protoimpl.X.MessageStringOf(x) } func (*OrgNameQuery) ProtoMessage() {} func (x *OrgNameQuery) ProtoReflect() protoreflect.Message { mi := &file_zitadel_org_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OrgNameQuery.ProtoReflect.Descriptor instead. func (*OrgNameQuery) Descriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{3} } func (x *OrgNameQuery) GetName() string { if x != nil { return x.Name } return "" } func (x *OrgNameQuery) GetMethod() object.TextQueryMethod { if x != nil { return x.Method } return object.TextQueryMethod(0) } type OrgDomainQuery struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` Method object.TextQueryMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.v1.TextQueryMethod" json:"method,omitempty"` } func (x *OrgDomainQuery) Reset() { *x = OrgDomainQuery{} if protoimpl.UnsafeEnabled { mi := &file_zitadel_org_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *OrgDomainQuery) String() string { return protoimpl.X.MessageStringOf(x) } func (*OrgDomainQuery) ProtoMessage() {} func (x *OrgDomainQuery) ProtoReflect() protoreflect.Message { mi := &file_zitadel_org_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use OrgDomainQuery.ProtoReflect.Descriptor instead. func (*OrgDomainQuery) Descriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{4} } func (x *OrgDomainQuery) GetDomain() string { if x != nil { return x.Domain } return "" } func (x *OrgDomainQuery) GetMethod() object.TextQueryMethod { if x != nil { return x.Method } return object.TextQueryMethod(0) } type DomainSearchQuery struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Query: // *DomainSearchQuery_DomainNameQuery Query isDomainSearchQuery_Query `protobuf_oneof:"query"` } func (x *DomainSearchQuery) Reset() { *x = DomainSearchQuery{} if protoimpl.UnsafeEnabled { mi := &file_zitadel_org_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DomainSearchQuery) String() string { return protoimpl.X.MessageStringOf(x) } func (*DomainSearchQuery) ProtoMessage() {} func (x *DomainSearchQuery) ProtoReflect() protoreflect.Message { mi := &file_zitadel_org_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DomainSearchQuery.ProtoReflect.Descriptor instead. func (*DomainSearchQuery) Descriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{5} } func (m *DomainSearchQuery) GetQuery() isDomainSearchQuery_Query { if m != nil { return m.Query } return nil } func (x *DomainSearchQuery) GetDomainNameQuery() *DomainNameQuery { if x, ok := x.GetQuery().(*DomainSearchQuery_DomainNameQuery); ok { return x.DomainNameQuery } return nil } type isDomainSearchQuery_Query interface { isDomainSearchQuery_Query() } type DomainSearchQuery_DomainNameQuery struct { DomainNameQuery *DomainNameQuery `protobuf:"bytes,1,opt,name=domain_name_query,json=domainNameQuery,proto3,oneof"` } func (*DomainSearchQuery_DomainNameQuery) isDomainSearchQuery_Query() {} type DomainNameQuery struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Method object.TextQueryMethod `protobuf:"varint,2,opt,name=method,proto3,enum=zitadel.v1.TextQueryMethod" json:"method,omitempty"` } func (x *DomainNameQuery) Reset() { *x = DomainNameQuery{} if protoimpl.UnsafeEnabled { mi := &file_zitadel_org_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DomainNameQuery) String() string { return protoimpl.X.MessageStringOf(x) } func (*DomainNameQuery) ProtoMessage() {} func (x *DomainNameQuery) ProtoReflect() protoreflect.Message { mi := &file_zitadel_org_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DomainNameQuery.ProtoReflect.Descriptor instead. func (*DomainNameQuery) Descriptor() ([]byte, []int) { return file_zitadel_org_proto_rawDescGZIP(), []int{6} } func (x *DomainNameQuery) GetName() string { if x != nil { return x.Name } return "" } func (x *DomainNameQuery) GetMethod() object.TextQueryMethod { if x != nil { return x.Method } return object.TextQueryMethod(0) } var File_zitadel_org_proto protoreflect.FileDescriptor var file_zitadel_org_proto_rawDesc = []byte{ 0x0a, 0x11, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x6f, 0x72, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x02, 0x0a, 0x03, 0x4f, 0x72, 0x67, 0x12, 0x28, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0x92, 0x41, 0x15, 0x4a, 0x13, 0x22, 0x36, 0x39, 0x36, 0x32, 0x39, 0x30, 0x32, 0x33, 0x39, 0x30, 0x36, 0x34, 0x38, 0x38, 0x33, 0x33, 0x34, 0x22, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x56, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x26, 0x92, 0x41, 0x23, 0x32, 0x21, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x74, 0x61, 0x74, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0x92, 0x41, 0x0b, 0x4a, 0x09, 0x22, 0x43, 0x41, 0x4f, 0x53, 0x20, 0x41, 0x47, 0x22, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x0e, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0x92, 0x41, 0x0b, 0x4a, 0x09, 0x22, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x63, 0x68, 0x22, 0x52, 0x0d, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xc2, 0x03, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x2f, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0x92, 0x41, 0x15, 0x4a, 0x13, 0x22, 0x36, 0x39, 0x36, 0x32, 0x39, 0x30, 0x32, 0x33, 0x39, 0x30, 0x36, 0x34, 0x38, 0x38, 0x33, 0x33, 0x34, 0x22, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0x92, 0x41, 0x0b, 0x4a, 0x09, 0x22, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x63, 0x68, 0x22, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x26, 0x92, 0x41, 0x23, 0x32, 0x21, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x0a, 0x69, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x4f, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x30, 0x92, 0x41, 0x2d, 0x32, 0x2b, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x09, 0x69, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x86, 0x01, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x37, 0x92, 0x41, 0x34, 0x32, 0x32, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x77, 0x61, 0x73, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x9c, 0x01, 0x0a, 0x08, 0x4f, 0x72, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x43, 0x0a, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x0c, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0xa8, 0x01, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x2a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x16, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x92, 0x41, 0x0b, 0x4a, 0x09, 0x22, 0x63, 0x61, 0x6f, 0x73, 0x20, 0x61, 0x67, 0x22, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x6c, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x37, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x92, 0x41, 0x2c, 0x32, 0x2a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, 0x65, 0x78, 0x74, 0x20, 0x65, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0xad, 0x01, 0x0a, 0x0e, 0x4f, 0x72, 0x67, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x2d, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x15, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x92, 0x41, 0x0a, 0x4a, 0x08, 0x22, 0x43, 0x41, 0x4f, 0x53, 0x2e, 0x43, 0x22, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x6c, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x37, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x92, 0x41, 0x2c, 0x32, 0x2a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, 0x65, 0x78, 0x74, 0x20, 0x65, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0x70, 0x0a, 0x11, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x4d, 0x0a, 0x11, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x0c, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0xab, 0x01, 0x0a, 0x0f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x2a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x16, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x92, 0x41, 0x0b, 0x4a, 0x09, 0x22, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x63, 0x68, 0x22, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x6c, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x37, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x92, 0x41, 0x2c, 0x32, 0x2a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x73, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, 0x65, 0x78, 0x74, 0x20, 0x65, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2a, 0x53, 0x0a, 0x08, 0x4f, 0x72, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x52, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x52, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4f, 0x52, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x7f, 0x0a, 0x14, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x22, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4e, 0x53, 0x10, 0x02, 0x2a, 0x47, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x4f, 0x52, 0x47, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x4f, 0x52, 0x47, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x6f, 0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x6f, 0x72, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_zitadel_org_proto_rawDescOnce sync.Once file_zitadel_org_proto_rawDescData = file_zitadel_org_proto_rawDesc ) func file_zitadel_org_proto_rawDescGZIP() []byte { file_zitadel_org_proto_rawDescOnce.Do(func() { file_zitadel_org_proto_rawDescData = protoimpl.X.CompressGZIP(file_zitadel_org_proto_rawDescData) }) return file_zitadel_org_proto_rawDescData } var file_zitadel_org_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_zitadel_org_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_zitadel_org_proto_goTypes = []interface{}{ (OrgState)(0), // 0: zitadel.org.v1.OrgState (DomainValidationType)(0), // 1: zitadel.org.v1.DomainValidationType (OrgFieldName)(0), // 2: zitadel.org.v1.OrgFieldName (*Org)(nil), // 3: zitadel.org.v1.Org (*Domain)(nil), // 4: zitadel.org.v1.Domain (*OrgQuery)(nil), // 5: zitadel.org.v1.OrgQuery (*OrgNameQuery)(nil), // 6: zitadel.org.v1.OrgNameQuery (*OrgDomainQuery)(nil), // 7: zitadel.org.v1.OrgDomainQuery (*DomainSearchQuery)(nil), // 8: zitadel.org.v1.DomainSearchQuery (*DomainNameQuery)(nil), // 9: zitadel.org.v1.DomainNameQuery (*object.ObjectDetails)(nil), // 10: zitadel.v1.ObjectDetails (object.TextQueryMethod)(0), // 11: zitadel.v1.TextQueryMethod } var file_zitadel_org_proto_depIdxs = []int32{ 10, // 0: zitadel.org.v1.Org.details:type_name -> zitadel.v1.ObjectDetails 0, // 1: zitadel.org.v1.Org.state:type_name -> zitadel.org.v1.OrgState 10, // 2: zitadel.org.v1.Domain.details:type_name -> zitadel.v1.ObjectDetails 1, // 3: zitadel.org.v1.Domain.validation_type:type_name -> zitadel.org.v1.DomainValidationType 6, // 4: zitadel.org.v1.OrgQuery.name_query:type_name -> zitadel.org.v1.OrgNameQuery 7, // 5: zitadel.org.v1.OrgQuery.domain_query:type_name -> zitadel.org.v1.OrgDomainQuery 11, // 6: zitadel.org.v1.OrgNameQuery.method:type_name -> zitadel.v1.TextQueryMethod 11, // 7: zitadel.org.v1.OrgDomainQuery.method:type_name -> zitadel.v1.TextQueryMethod 9, // 8: zitadel.org.v1.DomainSearchQuery.domain_name_query:type_name -> zitadel.org.v1.DomainNameQuery 11, // 9: zitadel.org.v1.DomainNameQuery.method:type_name -> zitadel.v1.TextQueryMethod 10, // [10:10] is the sub-list for method output_type 10, // [10:10] is the sub-list for method input_type 10, // [10:10] is the sub-list for extension type_name 10, // [10:10] is the sub-list for extension extendee 0, // [0:10] is the sub-list for field type_name } func init() { file_zitadel_org_proto_init() } func file_zitadel_org_proto_init() { if File_zitadel_org_proto != nil { return } if !protoimpl.UnsafeEnabled { file_zitadel_org_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Org); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_zitadel_org_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Domain); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_zitadel_org_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OrgQuery); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_zitadel_org_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OrgNameQuery); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_zitadel_org_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OrgDomainQuery); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_zitadel_org_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DomainSearchQuery); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_zitadel_org_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DomainNameQuery); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_zitadel_org_proto_msgTypes[2].OneofWrappers = []interface{}{ (*OrgQuery_NameQuery)(nil), (*OrgQuery_DomainQuery)(nil), } file_zitadel_org_proto_msgTypes[5].OneofWrappers = []interface{}{ (*DomainSearchQuery_DomainNameQuery)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_zitadel_org_proto_rawDesc, NumEnums: 3, NumMessages: 7, NumExtensions: 0, NumServices: 0, }, GoTypes: file_zitadel_org_proto_goTypes, DependencyIndexes: file_zitadel_org_proto_depIdxs, EnumInfos: file_zitadel_org_proto_enumTypes, MessageInfos: file_zitadel_org_proto_msgTypes, }.Build() File_zitadel_org_proto = out.File file_zitadel_org_proto_rawDesc = nil file_zitadel_org_proto_goTypes = nil file_zitadel_org_proto_depIdxs = nil }
36.548353
185
0.699843
4ccd767a4bf2e69ffc9c9a8563166a505d79a377
512
kt
Kotlin
src/main/kotlin/ru/inforion/lab403/common/logging/logger/Record.kt
xthebat/logkot
7cc7570b7ec3ace213dea13d1debbc505812f969
[ "MIT" ]
9
2019-03-19T07:39:21.000Z
2022-02-18T23:49:50.000Z
src/main/kotlin/ru/inforion/lab403/common/logging/logger/Record.kt
xthebat/logkot
7cc7570b7ec3ace213dea13d1debbc505812f969
[ "MIT" ]
null
null
null
src/main/kotlin/ru/inforion/lab403/common/logging/logger/Record.kt
xthebat/logkot
7cc7570b7ec3ace213dea13d1debbc505812f969
[ "MIT" ]
2
2020-11-24T21:23:34.000Z
2020-11-25T14:09:29.000Z
package ru.inforion.lab403.common.logging.logger import ru.inforion.lab403.common.logging.Caller import ru.inforion.lab403.common.logging.LogLevel class Record constructor( val logger: Logger, val level: LogLevel, val millis: Long, val caller: Caller ) { val sourceMethodName: String get() = caller.methodName val sourceClassName: String get() = caller.className val sourceLineNumber: Int get() = caller.lineNumber val sourceFileName: String get() = caller.fileName ?: "null" }
30.117647
64
0.738281
ddf6a70d7579e0d25cb0f2cd7f344cc66eb46ecd
292
sql
SQL
Cheburashka/Tests/TestScripts/AvoidWriteOnlyVariablesRule/ProcWithChainedWriteOnlyVariables.sql
dedmedved/cheburashka
8598f37af575907e066b773f5c4c5f010aefbb49
[ "Apache-2.0" ]
1
2017-11-28T11:04:40.000Z
2017-11-28T11:04:40.000Z
Cheburashka/Tests/TestScripts/AvoidWriteOnlyVariablesRule/ProcWithChainedWriteOnlyVariables.sql
dedmedved/cheburashka
8598f37af575907e066b773f5c4c5f010aefbb49
[ "Apache-2.0" ]
4
2021-02-09T17:03:55.000Z
2021-04-06T08:55:07.000Z
Cheburashka/Tests/TestScripts/AvoidWriteOnlyVariablesRule/ProcWithChainedWriteOnlyVariables.sql
dedmedved/cheburashka
8598f37af575907e066b773f5c4c5f010aefbb49
[ "Apache-2.0" ]
null
null
null
create procedure ProcWithChainedWriteOnlyVariables as begin declare @A int -- @A is only written to/used in the setting of @B . This should be flagged as a problem , @B int -- @B is only written to . This should be flagged as a problem set @A = 1 set @B = @A end
32.444444
109
0.657534
adcf02300608ae0e177d1a45f21c2200e233cd7f
3,519
ps1
PowerShell
PPoShTools/Public/FileSystem/Add-Font.ps1
PPOSHGROUP/PPoShTools
73c452a7c79cbe595a2b92291deab40ae1c30cfb
[ "MIT" ]
6
2017-08-01T03:53:37.000Z
2019-06-29T07:17:12.000Z
PPoShTools/Public/FileSystem/Add-Font.ps1
PPOSHGROUP/PPoShTools
73c452a7c79cbe595a2b92291deab40ae1c30cfb
[ "MIT" ]
2
2017-06-14T09:12:07.000Z
2021-04-26T10:18:03.000Z
PPoShTools/Public/FileSystem/Add-Font.ps1
PPOSHGROUP/PPoShTools
73c452a7c79cbe595a2b92291deab40ae1c30cfb
[ "MIT" ]
null
null
null
function Add-Font { <# #requires -Version 2.0 .SYNOPSIS This will install Windows fonts. .DESCRIPTION Requries Administrative privileges. Will copy fonts to Windows Fonts folder and register them. .PARAMETER Path May be either the path to a font file to install or the path to a folder containing font files to install. Valid file types are .fon, .fnt, .ttf,.ttc, .otf, .mmm, .pbf, and .pfm .EXAMPLE Add-Font -Path Value Will get all font files from provided folder and install them in Windows. .EXAMPLE Add-Font -Path Value Will install provided font in Windows. #> [CmdletBinding(DefaultParameterSetName='Directory')] Param( [Parameter(Mandatory=$false, ValueFromPipeline=$True, ValueFromPipelineByPropertyName=$True)] [Parameter(ParameterSetName='Directory')] [ValidateScript({Test-Path $_ -PathType Container })] [System.String[]] $Path, [Parameter(Mandatory=$false, ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)] [Parameter(ParameterSetName='File')] [ValidateScript({Test-Path $_ -PathType Leaf })] [System.String] $FontFile ) begin { Set-Variable Fonts -Value 0x14 -Option ReadOnly $fontRegistryPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" $shell = New-Object -ComObject Shell.Application $folder = $shell.NameSpace($Fonts) $objfontFolder = $folder.self.Path #$copyOptions = 20 $copyFlag = [string]::Format("{0:x}",4+16) $copyFlag } process { switch ($PsCmdlet.ParameterSetName) { "Directory" { ForEach ($fontsFolder in $Path){ Write-Log -Info -Message "Processing folder {$fontsFolder}" $fontFiles = Get-ChildItem -Path $fontsFolder -File -Recurse -Include @("*.fon", "*.fnt", "*.ttf","*.ttc", "*.otf", "*.mmm", "*.pbf", "*.pfm") } } "File" { $fontFiles = Get-ChildItem -Path $FontFile -Include @("*.fon", "*.fnt", "*.ttf","*.ttc", "*.otf", "*.mmm", "*.pbf", "*.pfm") } } if ($fontFiles) { foreach ($item in $fontFiles) { Write-Log -Info -Message "Processing font file {$item}" if(Test-Path (Join-Path -Path $objfontFolder -ChildPath $item.Name)) { Write-Log -Info -Emphasize -Message "Font {$($item.Name)} already exists in {$objfontFolder}" } else { Write-Log -Info -Emphasize -Message "Font {$($item.Name)} does not exists in {$objfontFolder}" Write-Log -Info -Message "Reading font {$($item.Name)} full name" Add-Type -AssemblyName System.Drawing $objFontCollection = New-Object System.Drawing.Text.PrivateFontCollection $objFontCollection.AddFontFile($item.FullName) $FontName = $objFontCollection.Families.Name Write-Log -Info -Message "Font {$($item.Name)} full name is {$FontName}" Write-Log -Info -Emphasize -Message "Copying font file {$($item.Name)} to system Folder {$objfontFolder}" $folder.CopyHere($item.FullName, $copyFlag) $regTest = Get-ItemProperty -Path $fontRegistryPath -Name "*$FontName*" -ErrorAction SilentlyContinue if (-not ($regTest)) { New-ItemProperty -Name $FontName -Path $fontRegistryPath -PropertyType string -Value $item.Name Write-Log -Info -Message "Registering font {$($item.Name)} in registry with name {$FontName}" } } } } } end { } }
35.545455
152
0.62944
176d5ce7fbe41f45c09ea92786503f5e9fc0729b
11,892
html
HTML
i386/usr/share/doc/libxcb1-dev/manual/xcbext_8h_source.html
liberodark/GOG
62c1193e2ce17c4b28f01c15a28bdde58a59fe0f
[ "Unlicense" ]
1
2020-03-05T23:46:18.000Z
2020-03-05T23:46:18.000Z
i386/usr/share/doc/libxcb1-dev/manual/xcbext_8h_source.html
liberodark/steam-runtime
62c1193e2ce17c4b28f01c15a28bdde58a59fe0f
[ "Unlicense" ]
null
null
null
i386/usr/share/doc/libxcb1-dev/manual/xcbext_8h_source.html
liberodark/steam-runtime
62c1193e2ce17c4b28f01c15a28bdde58a59fe0f
[ "Unlicense" ]
null
null
null
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>XCB: xcbext.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">XCB &#160;<span id="projectnumber">1.11.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.6.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="header"> <div class="headertitle"> <div class="title">xcbext.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2001-2004 Bart Massey and Jamey Sharp.</span> <a name="l00003"></a>00003 <span class="comment"> * All Rights Reserved.</span> <a name="l00004"></a>00004 <span class="comment"> *</span> <a name="l00005"></a>00005 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span> <a name="l00006"></a>00006 <span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span> <a name="l00007"></a>00007 <span class="comment"> * to deal in the Software without restriction, including without limitation</span> <a name="l00008"></a>00008 <span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span> <a name="l00009"></a>00009 <span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span> <a name="l00010"></a>00010 <span class="comment"> * Software is furnished to do so, subject to the following conditions:</span> <a name="l00011"></a>00011 <span class="comment"> * </span> <a name="l00012"></a>00012 <span class="comment"> * The above copyright notice and this permission notice shall be included in</span> <a name="l00013"></a>00013 <span class="comment"> * all copies or substantial portions of the Software.</span> <a name="l00014"></a>00014 <span class="comment"> * </span> <a name="l00015"></a>00015 <span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span> <a name="l00016"></a>00016 <span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span> <a name="l00017"></a>00017 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span> <a name="l00018"></a>00018 <span class="comment"> * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN</span> <a name="l00019"></a>00019 <span class="comment"> * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN</span> <a name="l00020"></a>00020 <span class="comment"> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span> <a name="l00021"></a>00021 <span class="comment"> * </span> <a name="l00022"></a>00022 <span class="comment"> * Except as contained in this notice, the names of the authors or their</span> <a name="l00023"></a>00023 <span class="comment"> * institutions shall not be used in advertising or otherwise to promote the</span> <a name="l00024"></a>00024 <span class="comment"> * sale, use or other dealings in this Software without prior written</span> <a name="l00025"></a>00025 <span class="comment"> * authorization from the authors.</span> <a name="l00026"></a>00026 <span class="comment"> */</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#ifndef __XCBEXT_H</span> <a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __XCBEXT_H</span> <a name="l00030"></a>00030 <span class="preprocessor"></span> <a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="xcb_8h.html">xcb.h</a>&quot;</span> <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00034"></a>00034 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> { <a name="l00035"></a>00035 <span class="preprocessor">#endif</span> <a name="l00036"></a>00036 <span class="preprocessor"></span> <a name="l00037"></a>00037 <span class="comment">/* xcb_ext.c */</span> <a name="l00038"></a>00038 <a name="l00039"></a><a class="code" href="structxcb__extension__t.html">00039</a> <span class="keyword">struct </span><a class="code" href="structxcb__extension__t.html">xcb_extension_t</a> { <a name="l00040"></a>00040 <span class="keyword">const</span> <span class="keywordtype">char</span> *name; <a name="l00041"></a>00041 <span class="keywordtype">int</span> global_id; <a name="l00042"></a>00042 }; <a name="l00043"></a>00043 <a name="l00044"></a>00044 <a name="l00045"></a>00045 <span class="comment">/* xcb_out.c */</span> <a name="l00046"></a>00046 <a name="l00047"></a><a class="code" href="structxcb__protocol__request__t.html">00047</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00048"></a>00048 <span class="keywordtype">size_t</span> count; <a name="l00049"></a>00049 <a class="code" href="structxcb__extension__t.html">xcb_extension_t</a> *ext; <a name="l00050"></a>00050 uint8_t opcode; <a name="l00051"></a>00051 uint8_t isvoid; <a name="l00052"></a>00052 } <a class="code" href="structxcb__protocol__request__t.html">xcb_protocol_request_t</a>; <a name="l00053"></a>00053 <a name="l00054"></a>00054 <span class="keyword">enum</span> xcb_send_request_flags_t { <a name="l00055"></a>00055 XCB_REQUEST_CHECKED = 1 &lt;&lt; 0, <a name="l00056"></a>00056 XCB_REQUEST_RAW = 1 &lt;&lt; 1, <a name="l00057"></a>00057 XCB_REQUEST_DISCARD_REPLY = 1 &lt;&lt; 2, <a name="l00058"></a>00058 XCB_REQUEST_REPLY_FDS = 1 &lt;&lt; 3 <a name="l00059"></a>00059 }; <a name="l00060"></a>00060 <a name="l00083"></a>00083 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> xcb_send_request(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <span class="keywordtype">int</span> flags, <span class="keyword">struct</span> <a class="code" href="structiovec.html">iovec</a> *vector, <span class="keyword">const</span> <a class="code" href="structxcb__protocol__request__t.html">xcb_protocol_request_t</a> *request); <a name="l00084"></a>00084 <a name="l00107"></a>00107 uint64_t xcb_send_request64(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <span class="keywordtype">int</span> flags, <span class="keyword">struct</span> <a class="code" href="structiovec.html">iovec</a> *vector, <span class="keyword">const</span> <a class="code" href="structxcb__protocol__request__t.html">xcb_protocol_request_t</a> *request); <a name="l00108"></a>00108 <a name="l00121"></a>00121 <span class="keywordtype">void</span> xcb_send_fd(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <span class="keywordtype">int</span> fd); <a name="l00122"></a>00122 <a name="l00150"></a>00150 <span class="keywordtype">int</span> xcb_take_socket(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <span class="keywordtype">void</span> (*return_socket)(<span class="keywordtype">void</span> *closure), <span class="keywordtype">void</span> *closure, <span class="keywordtype">int</span> flags, uint64_t *sent); <a name="l00151"></a>00151 <a name="l00171"></a>00171 <span class="keywordtype">int</span> xcb_writev(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <span class="keyword">struct</span> <a class="code" href="structiovec.html">iovec</a> *vector, <span class="keywordtype">int</span> count, uint64_t requests); <a name="l00172"></a>00172 <a name="l00173"></a>00173 <a name="l00174"></a>00174 <span class="comment">/* xcb_in.c */</span> <a name="l00175"></a>00175 <a name="l00186"></a>00186 <span class="keywordtype">void</span> *xcb_wait_for_reply(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> request, <a class="code" href="structxcb__generic__error__t.html" title="Generic error.">xcb_generic_error_t</a> **e); <a name="l00187"></a>00187 <a name="l00201"></a>00201 <span class="keywordtype">void</span> *xcb_wait_for_reply64(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, uint64_t request, <a class="code" href="structxcb__generic__error__t.html" title="Generic error.">xcb_generic_error_t</a> **e); <a name="l00202"></a>00202 <a name="l00213"></a>00213 <span class="keywordtype">int</span> xcb_poll_for_reply(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> request, <span class="keywordtype">void</span> **reply, <a class="code" href="structxcb__generic__error__t.html" title="Generic error.">xcb_generic_error_t</a> **error); <a name="l00214"></a>00214 <a name="l00228"></a>00228 <span class="keywordtype">int</span> xcb_poll_for_reply64(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, uint64_t request, <span class="keywordtype">void</span> **reply, <a class="code" href="structxcb__generic__error__t.html" title="Generic error.">xcb_generic_error_t</a> **error); <a name="l00229"></a>00229 <a name="l00237"></a>00237 <span class="keywordtype">int</span> *xcb_get_reply_fds(<a class="code" href="structxcb__connection__t.html">xcb_connection_t</a> *c, <span class="keywordtype">void</span> *reply, <span class="keywordtype">size_t</span> replylen); <a name="l00238"></a>00238 <a name="l00239"></a>00239 <a name="l00240"></a>00240 <span class="comment">/* xcb_util.c */</span> <a name="l00241"></a>00241 <a name="l00246"></a>00246 <span class="keywordtype">int</span> xcb_popcount(uint32_t mask); <a name="l00247"></a>00247 <a name="l00253"></a>00253 <span class="keywordtype">int</span> xcb_sumof(uint8_t *list, <span class="keywordtype">int</span> len); <a name="l00254"></a>00254 <a name="l00255"></a>00255 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00256"></a>00256 <span class="preprocessor"></span>} <a name="l00257"></a>00257 <span class="preprocessor">#endif</span> <a name="l00258"></a>00258 <span class="preprocessor"></span> <a name="l00259"></a>00259 <span class="preprocessor">#endif</span> </pre></div></div><!-- contents --> <hr class="footer"/><address class="footer"><small> Generated on Mon Dec 5 2016 19:53:29 for XCB by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.7.6.1 </small></address> </body> </html>
71.638554
472
0.693996
563cd355ce86ba61a425e7835306678e008034c0
5,161
go
Go
read_writer.go
c4pt0r/iouring-go
e86988586594b53f535fd5054906cfafe4ef163d
[ "MIT" ]
186
2020-03-17T12:23:45.000Z
2022-03-31T14:44:54.000Z
read_writer.go
c4pt0r/iouring-go
e86988586594b53f535fd5054906cfafe4ef163d
[ "MIT" ]
9
2020-05-06T01:17:19.000Z
2021-06-21T14:17:51.000Z
read_writer.go
c4pt0r/iouring-go
e86988586594b53f535fd5054906cfafe4ef163d
[ "MIT" ]
9
2020-04-21T18:51:41.000Z
2021-05-14T14:23:56.000Z
// +build linux package iouring import ( "io" "os" "runtime" "sync/atomic" "syscall" "unsafe" "github.com/pkg/errors" ) // ReadWriteAtCloser supports reading, writing, and closing. type ReadWriteAtCloser interface { io.WriterAt io.ReadWriteCloser } // ringFIO is used for handling file IO. type ringFIO struct { r *Ring f *os.File fd int32 fOffset *int64 c *completer } // getCqe is used for getting a CQE result and will retry up to one time. func (i *ringFIO) getCqe(reqID uint64, count, min int) (int, error) { // TODO: consider adding the submitter interface here, or move out the // submit function from this method all together. if count > 0 || min > 0 { _, err := i.r.Enter(uint(count), uint(min), EnterGetEvents, nil) if err != nil { return 0, err } } cq := i.r.cq foundIdx := 0 findCqe: head := atomic.LoadUint32(cq.Head) tail := atomic.LoadUint32(cq.Tail) mask := atomic.LoadUint32(cq.Mask) end := int(tail & mask) for x := int(head & mask); x < len(cq.Entries); x++ { cqe := cq.Entries[x] if cqe.UserData == reqID { if cqe.Res < 0 { return 0, syscall.Errno(-cqe.Res) } atomic.StoreInt64(i.fOffset, atomic.LoadInt64(i.fOffset)+int64(cqe.Res)) foundIdx = x i.c.complete(foundIdx) return int(cqe.Res), nil } if x == end { goto findCqe } } tail = atomic.LoadUint32(cq.Tail) mask = atomic.LoadUint32(cq.Mask) end = int(tail & mask) for x := 0; x < end; x++ { cqe := cq.Entries[x] if cqe.UserData == reqID { if cqe.Res < 0 { return 0, syscall.Errno(-cqe.Res) } atomic.StoreInt64(i.fOffset, atomic.LoadInt64(i.fOffset)+int64(cqe.Res)) foundIdx = x i.c.complete(foundIdx) return int(cqe.Res), nil } if x == end { goto findCqe } } goto findCqe } // Write implements the io.Writer interface. func (i *ringFIO) Write(b []byte) (int, error) { id, ready, err := i.PrepareWrite(b, 0) if err != nil { return 0, err } ready() n, err := i.getCqe(id, 1, 1) runtime.KeepAlive(b) return n, err } // PrepareWrite is used to prepare a Write SQE. The ring is able to be entered // after the returned callback is called. func (i *ringFIO) PrepareWrite(b []byte, flags uint8) (uint64, func(), error) { sqe, ready := i.r.SubmitEntry() if sqe == nil { return 0, nil, errRingUnavailable } sqe.Opcode = Write sqe.UserData = i.r.ID() sqe.Fd = i.fd sqe.Len = uint32(len(b)) sqe.Flags = flags sqe.Offset = uint64(atomic.LoadInt64(i.fOffset)) sqe.Addr = (uint64)(uintptr(unsafe.Pointer(&b[0]))) return sqe.UserData, ready, nil } // PrepareRead is used to prepare a Read SQE. The ring is able to be entered // after the returned callback is called. func (i *ringFIO) PrepareRead(b []byte, flags uint8) (uint64, func(), error) { sqe, ready := i.r.SubmitEntry() if sqe == nil { return 0, nil, errRingUnavailable } sqe.Opcode = Read sqe.UserData = i.r.ID() sqe.Fd = i.fd sqe.Len = uint32(len(b)) sqe.Flags = flags sqe.Offset = uint64(atomic.LoadInt64(i.fOffset)) sqe.Addr = (uint64)(uintptr(unsafe.Pointer(&b[0]))) return sqe.UserData, ready, nil } // Read implements the io.Reader interface. func (i *ringFIO) Read(b []byte) (int, error) { id, ready, err := i.PrepareRead(b, 0) if err != nil { return 0, err } ready() n, err := i.getCqe(id, 1, 1) runtime.KeepAlive(b) if err != nil { return 0, err } if n == 0 { return n, io.EOF } return n, nil } // WriteAt implements the io.WriterAt interface. func (i *ringFIO) WriteAt(b []byte, o int64) (int, error) { sqe, ready := i.r.SubmitEntry() if sqe == nil { return 0, errRingUnavailable } sqe.Opcode = Write sqe.UserData = i.r.ID() sqe.Fd = i.fd sqe.Len = uint32(len(b)) sqe.Flags = 0 sqe.Offset = uint64(o) sqe.Addr = (uint64)(uintptr(unsafe.Pointer(&b[0]))) ready() n, err := i.getCqe(sqe.UserData, 1, 1) runtime.KeepAlive(b) return n, err } // ReadAt implements the io.ReaderAt interface. func (i *ringFIO) ReadAt(b []byte, o int64) (int, error) { sqe, ready := i.r.SubmitEntry() if sqe == nil { return 0, errRingUnavailable } sqe.Opcode = Read sqe.UserData = i.r.ID() sqe.Fd = i.fd sqe.Len = uint32(len(b)) sqe.Flags = 0 sqe.Offset = uint64(o) sqe.Addr = (uint64)(uintptr(unsafe.Pointer(&b[0]))) ready() n, err := i.getCqe(sqe.UserData, 1, 1) runtime.KeepAlive(b) if err != nil { return 0, err } if n == 0 { return n, io.EOF } return n, nil } // Close implements the io.Closer interface. func (i *ringFIO) Close() error { id, err := i.r.PrepareClose(int(i.fd)) if err != nil { return err } _, err = i.getCqe(id, 1, 1) if err != nil { return err } return nil } // Seek implements the io.Seeker interface. func (i *ringFIO) Seek(offset int64, whence int) (int64, error) { switch whence { case io.SeekStart: atomic.StoreInt64(i.fOffset, offset) return 0, nil case io.SeekCurrent: atomic.StoreInt64(i.fOffset, atomic.LoadInt64(i.fOffset)+offset) return 0, nil case io.SeekEnd: stat, err := i.f.Stat() if err != nil { return 0, err } atomic.StoreInt64(i.fOffset, stat.Size()-offset) return 0, nil default: return 0, errors.New("unknown whence") } }
21.776371
79
0.647936
2a6852aad4e134400d8862bfcb67466a5f9a1c58
10,838
java
Java
src/main/java/act/view/beetl/BeetlRegisterHelper.java
actframework/beetl
8c4a2c13e4364936a32701cadcc00d526eb1a65c
[ "Apache-2.0" ]
null
null
null
src/main/java/act/view/beetl/BeetlRegisterHelper.java
actframework/beetl
8c4a2c13e4364936a32701cadcc00d526eb1a65c
[ "Apache-2.0" ]
13
2016-09-27T05:44:07.000Z
2019-08-27T21:28:53.000Z
src/main/java/act/view/beetl/BeetlRegisterHelper.java
actframework/beetl
8c4a2c13e4364936a32701cadcc00d526eb1a65c
[ "Apache-2.0" ]
1
2020-05-09T00:52:53.000Z
2020-05-09T00:52:53.000Z
package act.view.beetl; /*- * #%L * ACT Beetl * %% * Copyright (C) 2017 - 2019 ActFramework * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import act.Act; import act.app.ActionContext; import act.app.event.SysEventId; import act.job.OnSysEvent; import act.util.SubClassFinder; import act.view.rythm.RythmView; import org.beetl.core.Context; import org.beetl.core.Format; import org.beetl.core.Function; import org.beetl.core.GroupTemplate; import org.beetl.core.tag.TagFactory; import org.osgl.$; import org.osgl.util.C; import org.osgl.util.Keyword; import org.rythmengine.RythmEngine; import org.rythmengine.extension.ICodeType; import org.rythmengine.internal.compiler.TemplateClass; import org.rythmengine.template.ITag; import org.rythmengine.template.ITemplate; import org.rythmengine.template.JavaTagBase; import org.rythmengine.utils.Escape; import org.rythmengine.utils.JSONWrapper; import org.rythmengine.utils.S; import org.rythmengine.utils.TextBuilder; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import java.io.OutputStream; import java.io.Writer; import java.lang.reflect.Field; import java.util.Locale; import java.util.Map; @Singleton public class BeetlRegisterHelper { @Inject private GroupTemplate beetl; @SubClassFinder public void foundFunction(Function function) { beetl.registerFunction(getName(function), function); } @SubClassFinder public void foundFormat(Format format) { beetl.registerFormat(getName(format), format); } @SubClassFinder public void foundTagFactory(TagFactory tagFactory) { beetl.registerTagFactory(getName(tagFactory), tagFactory); } @OnSysEvent(SysEventId.PRE_START) public void bridgeRythmTags() { final RythmView rythmView = Act.getInstance(RythmView.class); final RythmEngine rythm = rythmView.getEngine(Act.app()); final ITemplate modelTemplate = new ITemplate() { @Override public RythmEngine __engine() { return rythm; } @Override public TemplateClass __getTemplateClass(boolean useCaller) { return null; } @Override public ITemplate __setOutputStream(OutputStream os) { return this; } @Override public ITemplate __setWriter(Writer writer) { return this; } @Override public ITemplate __setUserContext(Map<String, Object> userContext) { return this; } @Override public Map<String, Object> __getUserContext() { return C.Map(); } @Override public ITemplate __setRenderArgs(Map<String, Object> args) { return this; } @Override public ITemplate __setRenderArgs(Object... args) { return this; } @Override public ITemplate __setRenderArg(String name, Object arg) { return this; } @Override public <T> T __getRenderArg(String name) { return null; } @Override public ITemplate __setRenderArg(int position, Object arg) { return this; } @Override public ITemplate __setRenderArg(JSONWrapper jsonData) { return this; } @Override public String render() { return null; } @Override public void render(OutputStream os) { } @Override public void render(Writer w) { } @Override public void __init() { } @Override public StringBuilder __getBuffer() { return null; } @Override public ITemplate __setSecureCode(String secureCode) { return this; } @Override public ITemplate __cloneMe(RythmEngine engine, ITemplate caller) { return this; } @Override public Locale __curLocale() { ActionContext ctx = ActionContext.current(); return null == ctx ? Act.appConfig().locale() : ctx.locale(true); } @Override public Escape __curEscape() { return null; } @Override public ICodeType __curCodeType() { return null; } @Override public String __getName() { return null; } @Override public ITag __setBodyContext(__Body body) { return null; } @Override public void __call(int line) { } }; Field tagsField = $.fieldOf(RythmEngine.class, "_tags"); Map<String, JavaTagBase> tags = $.getFieldValue(rythm, tagsField); for (Map.Entry<String, JavaTagBase> entry : tags.entrySet()) { String key = entry.getKey(); final JavaTagBase rythmTag = entry.getValue(); beetl.registerFunction(key, new Function() { @Override public Object call(Object[] paras, Context ctx) { ITag.__ParameterList paramList = new ITag.__ParameterList(); if (null != paras) { for (Object o : paras) { paramList.add(null, o); } } JavaTagBase runTag = $.deepCopy(rythmTag).to((JavaTagBase) rythmTag.clone(null)); runTag.__setRenderArgs0(paramList); return runTag.build().toString(); } }); } beetl.registerFunction("i18n", new Function() { @Override public Object call(Object[] paras, Context ctx) { String key = S.string(paras[0]); Object params = new Object[paras.length - 1]; System.arraycopy(paras, 1, params, 0, paras.length - 1); return S.i18n(modelTemplate, key, params); } }); } @OnSysEvent(SysEventId.PRE_START) public void bridgeRythmFormats() { final RythmView rythmView = Act.getInstance(RythmView.class); final RythmEngine rythm = rythmView.getEngine(Act.app()); final ITemplate modelTemplate = new ITemplate() { @Override public RythmEngine __engine() { return rythm; } @Override public TemplateClass __getTemplateClass(boolean useCaller) { return null; } @Override public ITemplate __setOutputStream(OutputStream os) { return this; } @Override public ITemplate __setWriter(Writer writer) { return this; } @Override public ITemplate __setUserContext(Map<String, Object> userContext) { return this; } @Override public Map<String, Object> __getUserContext() { return C.Map(); } @Override public ITemplate __setRenderArgs(Map<String, Object> args) { return this; } @Override public ITemplate __setRenderArgs(Object... args) { return this; } @Override public ITemplate __setRenderArg(String name, Object arg) { return this; } @Override public <T> T __getRenderArg(String name) { return null; } @Override public ITemplate __setRenderArg(int position, Object arg) { return this; } @Override public ITemplate __setRenderArg(JSONWrapper jsonData) { return this; } @Override public String render() { return null; } @Override public void render(OutputStream os) { } @Override public void render(Writer w) { } @Override public void __init() { } @Override public StringBuilder __getBuffer() { return null; } @Override public ITemplate __setSecureCode(String secureCode) { return this; } @Override public ITemplate __cloneMe(RythmEngine engine, ITemplate caller) { return this; } @Override public Locale __curLocale() { ActionContext ctx = ActionContext.current(); return null == ctx ? Act.appConfig().locale() : ctx.locale(true); } @Override public Escape __curEscape() { return null; } @Override public ICodeType __curCodeType() { return null; } @Override public String __getName() { return null; } @Override public ITag __setBodyContext(__Body body) { return null; } @Override public void __call(int line) { } }; beetl.registerFormat("format", new Format() { @Override public Object format(Object data, String pattern) { return S.format(modelTemplate, data, pattern, modelTemplate.__curLocale(), null); } }); } private String getName(Object target) { Class<?> type = target.getClass(); Named named = type.getAnnotation(Named.class); return null != named ? named.value() : Keyword.of(type.getSimpleName()).javaVariable(); } }
28.596306
101
0.538014
69ac3f03d3f73af2350ce1d66de40196369dfec9
3,977
ps1
PowerShell
D365FOLBDAdmin/functions/Remove-D365LBDSFImageStoreFiles.ps1
stefanland/D365FOLBDAdmin
b9cd322d46bb825ae7582f9fd161307b850c1945
[ "MIT" ]
5
2019-11-21T06:41:33.000Z
2022-01-03T18:02:49.000Z
D365FOLBDAdmin/functions/Remove-D365LBDSFImageStoreFiles.ps1
stefanland/D365FOLBDAdmin
b9cd322d46bb825ae7582f9fd161307b850c1945
[ "MIT" ]
null
null
null
D365FOLBDAdmin/functions/Remove-D365LBDSFImageStoreFiles.ps1
stefanland/D365FOLBDAdmin
b9cd322d46bb825ae7582f9fd161307b850c1945
[ "MIT" ]
3
2019-11-21T08:03:54.000Z
2021-03-01T04:22:29.000Z
function Remove-D365LBDSFImageStoreFiles { <# TODO: Needs more testing .SYNOPSIS Created to clean service fabric image store. needs more testing. .DESCRIPTION Created to clean service fabric image store. needs more testing. .EXAMPLE Remove-D365LBDSFImageStoreFiles Removes Image store files inside of the local environments Service fabric. .EXAMPLE $config = get-d365Config Remove-D365LBDSFImageStoreFiles -config $config Removes Image store files inside of the defined environments Service fabric. .PARAMETER ComputerName String The name of the D365 LBD Server to grab the environment details; needed if a config is not specified and will default to local machine. .PARAMETER Config Custom PSObject Config Object created by either the Get-D365LBDConfig or Get-D365TestConfigData function inside this module #> [alias("Remove-D365SFImageStoreFiles")] [CmdletBinding()] param([Parameter(ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $True, Mandatory = $false, HelpMessage = 'D365FO Local Business Data Server Name')] [PSFComputer]$ComputerName = "$env:COMPUTERNAME", [Parameter(ValueFromPipeline = $True)] [psobject]$Config) BEGIN { } PROCESS { if (!$Config -or $Config.OrchestratorServerNames.Count -eq 0) { Write-PSFMessage -Level VeryVerbose -Message "Config not defined or Config is invalid. Trying to Get new config using $ComputerName" $Config = Get-D365LBDConfig -ComputerName $ComputerName -HighLevelOnly } [int]$count = 0 while (!$connection) { do { $OrchestratorServerName = $Config.OrchestratorServerNames | Select-Object -First 1 -Skip $count Write-PSFMessage -Message "Verbose: Reaching out to $OrchestratorServerName to try and connect to the service fabric" -Level Verbose $SFModuleSession = New-PSSession -ComputerName $OrchestratorServerName if (!$module) { $module = Import-Module -Name ServiceFabric -PSSession $SFModuleSession } $connection = Connect-ServiceFabricCluster -ConnectionEndpoint $config.SFConnectionEndpoint -X509Credential -FindType FindByThumbprint -FindValue $config.SFServerCertificate -ServerCertThumbprint $config.SFServerCertificate -StoreLocation LocalMachine -StoreName My if (!$connection) { $trialEndpoint = "https://$OrchestratorServerName" + ":198000" $connection = Connect-ServiceFabricCluster -ConnectionEndpoint $trialEndpoint -X509Credential -FindType FindByThumbprint -FindValue $config.SFServerCertificate -ServerCertThumbprint $config.SFServerCertificate -StoreLocation LocalMachine -StoreName My } $count = $count + 1 if (!$connection) { Write-PSFMessage -Message "Count of servers tried $count" -Level Verbose } } until ($connection -or ($count -eq $($OrchestratorServerNames).Count) -or ($($OrchestratorServerNames).Count) -eq 0) if (($count -eq $($Config.OrchestratorServerNames).Count) -and (!$connection)) { Stop-PSFFunction -Message "Error: Can't connect to Service Fabric" } } $content = Get-servicefabricimagestorecontent -remoterelativepath "\" -ImageStoreConnectionString fabric:ImageStore foreach ($folder in $content) { if (($folder.StoreRelativePath -ne "Store") -and ($folder.StoreRelativePath -ne "WindowsFabricStore")) { Write-PSFMessage "Deleting $($folder.StoreRelativePath)" -Level VeryVerbose Remove-ServiceFabricApplicationPackage -ApplicationPackagePathInImageStore $folder.StoreRelativePath -ImageStoreConnectionString fabric:ImageStore } } } END { } }
55.236111
281
0.675132
b2bff192f3852a8121825cff9ab0d2dc48bcad15
999
py
Python
esp8266/boot.py
AlexGolovko/UltrasonicDeeper
598020854a1bff433bce1582bf05625a6cb646c8
[ "MIT" ]
3
2020-04-21T10:51:38.000Z
2022-03-10T18:23:56.000Z
esp8266/boot.py
AlexGolovko/UltrasonicDeeper
598020854a1bff433bce1582bf05625a6cb646c8
[ "MIT" ]
5
2020-09-05T22:53:54.000Z
2021-05-05T14:31:35.000Z
esp8266/boot.py
AlexGolovko/UltrasonicDeeper
598020854a1bff433bce1582bf05625a6cb646c8
[ "MIT" ]
2
2021-01-24T19:18:42.000Z
2021-02-26T09:41:54.000Z
# This file is executed on every boot (including wake-boot from deepsleep) import esp import gc import machine import network esp.osdebug(None) # machine.freq(160000000) def do_connect(wifi_name, wifi_pass): ssid = 'microsonar' password = 'microsonar' ap_if = network.WLAN(network.AP_IF) ap_if.active(True) # ap_if.config(essid=ssid, password=password) ap_if.config(essid=ssid, authmode=network.AUTH_OPEN) while not ap_if.active(): pass print('Access Point created') print(ap_if.ifconfig()) wlan = network.WLAN(network.STA_IF) wlan.active(True) wlans = wlan.scan() if wifi_name in str(wlans): print('connecting to network...') wlan.connect(wifi_name, wifi_pass) while not wlan.isconnected(): pass print('network config:', wlan.ifconfig()) else: wlan.active(False) machine.Pin(2, machine.Pin.OUT).off() do_connect('royter', 'traveller22') gc.collect() print('wifi connected')
23.785714
74
0.672673
87db3ed69f3c967777660cf8325ed2f43790d84a
467
dart
Dart
lib/Answer.dart
Sohailm25/Keep-or-Yeet
13b64291d18eb54b5735f8d8163bdd73ff47b35f
[ "MIT" ]
null
null
null
lib/Answer.dart
Sohailm25/Keep-or-Yeet
13b64291d18eb54b5735f8d8163bdd73ff47b35f
[ "MIT" ]
null
null
null
lib/Answer.dart
Sohailm25/Keep-or-Yeet
13b64291d18eb54b5735f8d8163bdd73ff47b35f
[ "MIT" ]
null
null
null
import 'package:flutter/material.dart'; class Answer extends StatelessWidget { final Function selectedFunc; final String buttonName; Answer(this.selectedFunc, this.buttonName); @override Widget build(BuildContext context) { return Container( width: double.infinity, child: RaisedButton( textColor: Colors.white, color: Colors.blue, child: Text(buttonName), onPressed: selectedFunc, ), ); } }
21.227273
45
0.665953
948cdc63f975f72bf32e546a67a58e8308597394
1,934
kt
Kotlin
src/test/kotlin/org/rust/ide/inspections/RsExtraSemicolonInspectionTest.kt
fedochet/intellij-rust
5bc3e1d091d41ef3e20f4a30d32d0d427d5fa830
[ "MIT" ]
null
null
null
src/test/kotlin/org/rust/ide/inspections/RsExtraSemicolonInspectionTest.kt
fedochet/intellij-rust
5bc3e1d091d41ef3e20f4a30d32d0d427d5fa830
[ "MIT" ]
null
null
null
src/test/kotlin/org/rust/ide/inspections/RsExtraSemicolonInspectionTest.kt
fedochet/intellij-rust
5bc3e1d091d41ef3e20f4a30d32d0d427d5fa830
[ "MIT" ]
1
2022-02-27T01:19:02.000Z
2022-02-27T01:19:02.000Z
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.inspections class RsExtraSemicolonInspectionTest : RsInspectionsTestBase(RsExtraSemicolonInspection::class) { fun `test not applicable without return type`() = checkByText(""" fn foo() { 92; } """) fun `test not applicable for let`() = checkByText(""" fn foo() -> i32 { let x = 92; } """) fun `test not applicable with explicit return`() = checkByText(""" fn foo() -> i32 { return 92; } """) fun `test not applicable with explicit unit type`() = checkByText(""" fn fun() -> () { 2 + 2; } """) fun `test not applicable with macro`() = checkByText(""" fn fun() -> i32 { panic!("diverge"); } """) fun `test not applicable with trailing fn`() = checkByText(""" fn foo() -> bool { loop {} fn f() {} } """) fun `test not applicable with diverging if`() = checkByText(""" fn a() -> i32 { if true { return 0; } else { return 6; }; } """) fun `test fix`() = checkFixByText("Remove semicolon", """ fn foo() -> i32 { let x = 92; <warning descr="Function returns () instead of i32">x;<caret></warning> } """, """ fn foo() -> i32 { let x = 92; x } """) fun `test recurse into complex expressions`() = checkFixByText("Remove semicolon", """ fn foo() -> i32 { let x = 92; if true { <warning descr="Function returns () instead of i32">x;<caret></warning> } else { x } } """, """ fn foo() -> i32 { let x = 92; if true { x<caret> } else { x } } """) }
25.447368
97
0.469493
2a6520b5293b6be6252b20e8ea7f93309a39c489
1,141
java
Java
src/main/java/ch/ost/rj/sa/miro2cml/business_logic/BasicInputCorrector.java
miro2cml/generator
f4d9cff91ade6a9c47467bc1f157da13a9a5f648
[ "Apache-2.0" ]
null
null
null
src/main/java/ch/ost/rj/sa/miro2cml/business_logic/BasicInputCorrector.java
miro2cml/generator
f4d9cff91ade6a9c47467bc1f157da13a9a5f648
[ "Apache-2.0" ]
null
null
null
src/main/java/ch/ost/rj/sa/miro2cml/business_logic/BasicInputCorrector.java
miro2cml/generator
f4d9cff91ade6a9c47467bc1f157da13a9a5f648
[ "Apache-2.0" ]
1
2021-07-06T14:52:27.000Z
2021-07-06T14:52:27.000Z
package ch.ost.rj.sa.miro2cml.business_logic; import ch.ost.rj.sa.miro2cml.business_logic.model.InputBoard; import ch.ost.rj.sa.miro2cml.business_logic.model.MappingLog; import ch.ost.rj.sa.miro2cml.data_access.model.miro2cml.widgets.IRelevantText; import ch.ost.rj.sa.miro2cml.data_access.model.miro2cml.widgets.WidgetObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.List; import java.util.stream.Collectors; @Component public class BasicInputCorrector { @Autowired StringUtility stringUtility; public InputBoard prepareInput(InputBoard inputBoard, MappingLog log) { List<WidgetObject> relevantElements = inputBoard.getWidgetObjects().stream().filter(widgetObject -> widgetObject instanceof IRelevantText).collect(Collectors.toList()); for (WidgetObject object: relevantElements) { IRelevantText extendedObject = (IRelevantText) object; extendedObject.setMappingRelevantText(stringUtility.correctInput(extendedObject.getMappingRelevantText(), log)); } return inputBoard; } }
40.75
176
0.7844
1f1294adb2424547ef1cc2ed78a9c59e480130c7
3,703
css
CSS
data/usercss/161829.user.css
33kk/uso-archive
2c4962d1d507ff0eaec6dcca555efc531b37a9b4
[ "MIT" ]
118
2020-08-28T19:59:28.000Z
2022-03-26T16:28:40.000Z
data/usercss/161829.user.css
33kk/uso-archive
2c4962d1d507ff0eaec6dcca555efc531b37a9b4
[ "MIT" ]
38
2020-09-02T01:08:45.000Z
2022-01-23T02:47:24.000Z
data/usercss/161829.user.css
33kk/uso-archive
2c4962d1d507ff0eaec6dcca555efc531b37a9b4
[ "MIT" ]
21
2020-08-19T01:12:43.000Z
2022-03-15T21:55:17.000Z
/* ==UserStyle== @name Reduce Graying of Downvoted Contents @namespace USO Archive @author Matthias Winkelmann @description `Makes downvoted comments on Hacker News readable by either reducing the graying, or replacing it with subtle colored indicators.` @version 20180626.12.34 @license CC-BY-NC-4.0 @preprocessor uso @advanced color comment-c00 "Normal Comment Color" #000000 @advanced color comment-c5a "-1 Comment Color" #666666 @advanced color comment-c73 "-2 Comment Color" #EDCA18 @advanced color comment-c82 "-3 Comment Color" #FFAB3D @advanced color comment-c88 "-4 Comment Color" #FF904F @advanced color comment-c9c "-5 Comment Color" #FF7C3B @advanced color comment-cae "-6 Comment Color" #FF6D57 @advanced color comment-cbe "-7 Comment Color" #FF5D52 @advanced color comment-cce "-8 Comment Color" #FA4444 @advanced color comment-cdd "-9 Comment Color" #FF0000 @advanced dropdown color-element "Apply Color To" { color-border "Left Border*" <<<EOT span.c5a, span.c5a a:link, span.c5a a:visited, span.c73, span.c73 a:link, span.c73 a:visited, span.c82, span.c82 a:link, span.c82 a:visited, span.c88, span.c88 a:link, span.c88 a:visited, span.c9c, span.c9c a:link, span.c9c a:visited, span.cae, span.cae a:link, span.cae a:visited, span.cbe, span.cbe a:link, span.cbe a:visited, span.cce, span.cce a:link, span.cce a:visited, span.cdd, span.cdd a:link, span.cdd a:visited { color: #000000 !important; } span.c5a, span.c73, span.c82, span.c88, span.c9c, span.cae, span.cbe, span.cce, span.cdd, span.cdd { display: block; padding-left: 4px; border-left-width: 1px; border-left-style: /*[[border-style]]*\/ !important; } span.c5a { border-left-color: /*[[comment-c5a]]*\/ !important; } span.c73 { border-left-color: /*[[comment-c73]]*\/ !important; } span.c82 { border-left-color: /*[[comment-c82]]*\/ !important; } span.c88 { border-left-color: /*[[comment-c88]]*\/ !important; } span.c9c { border-left-color: /*[[comment-c9c]]*\/ !important; } span.cae { border-left-color: /*[[comment-cae]]*\/ !important; } span.cbe { border-left-color: /*[[comment-cbe]]*\/ !important; } span.cce { border-left-color: /*[[comment-cce]]*\/ !important; } span.cdd { border-left-color: /*[[comment-cdd]]*\/ !important; } EOT; color-text "Text" <<<EOT span.c00 { color: /*[[comment-c00]]*\/ !important; } span.c5a { color: /*[[comment-c5a]]*\/ !important; } span.c73 { color: /*[[comment-c73]]*\/ !important; } span.c82 { color: /*[[comment-c82]]*\/ !important; } span.c88 { color: /*[[comment-c88]]*\/ !important; } span.c9c { color: /*[[comment-c9c]]*\/ !important; } span.cae { color: /*[[comment-cae]]*\/ !important; } span.cbe { color: /*[[comment-cbe]]*\/ !important; } span.cce { color: /*[[comment-cce]]*\/ !important; } span.cdd { color: /*[[comment-cdd]]*\/ !important; } EOT; } @advanced dropdown border-style "Border Style" { border-dashed "dashed*" <<<EOT dashed EOT; border-solid "solid" <<<EOT solid EOT; border-dotted "dotted" <<<EOT dotted EOT; border-double "double" <<<EOT double EOT; border-groove "groove" <<<EOT groove EOT; border-ridge "ridge" <<<EOT ridge EOT; border-inset "inset" <<<EOT inset EOT; border-outset "outset" <<<EOT outset EOT; } ==/UserStyle== */ @-moz-document domain("news.ycombinator.com") { html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; letter-spacing: normal; word-spacing: normal; } /*[[color-element]]*/ }
31.381356
460
0.642452
7e926a538acd7f7fcc203fffd9b5b2f60bb216bc
232
kt
Kotlin
common/src/main/java/com/ably/tracking/common/LocationMappers.kt
ably/ably-asset-tracking-android
396e02f12ec4ef0d0d6eaefb25b4e1f6ce838b52
[ "Apache-2.0" ]
4
2021-05-18T21:07:53.000Z
2022-02-16T16:44:14.000Z
common/src/main/java/com/ably/tracking/common/LocationMappers.kt
ably/ably-asset-tracking-android
396e02f12ec4ef0d0d6eaefb25b4e1f6ce838b52
[ "Apache-2.0" ]
298
2021-03-11T16:57:57.000Z
2022-03-31T11:41:32.000Z
common/src/main/java/com/ably/tracking/common/LocationMappers.kt
ably/ably-asset-tracking-android
396e02f12ec4ef0d0d6eaefb25b4e1f6ce838b52
[ "Apache-2.0" ]
2
2021-05-06T09:39:58.000Z
2021-05-19T07:50:15.000Z
package com.ably.tracking.common import com.ably.tracking.Location fun android.location.Location.toAssetTracking(timestamp: Long = time): Location = Location(latitude, longitude, altitude, accuracy, bearing, speed, timestamp)
33.142857
81
0.797414
50691f7530f25fe27e484d8f30deb564005638b1
1,062
go
Go
NFs/ausf/internal/sbi/consumer/nf_discovery.go
ChiaChia1114/Free5gc_docker2
5ffb5e7bf3aa902f4737b28cd7d14f1858008e4a
[ "Apache-2.0" ]
null
null
null
NFs/ausf/internal/sbi/consumer/nf_discovery.go
ChiaChia1114/Free5gc_docker2
5ffb5e7bf3aa902f4737b28cd7d14f1858008e4a
[ "Apache-2.0" ]
null
null
null
NFs/ausf/internal/sbi/consumer/nf_discovery.go
ChiaChia1114/Free5gc_docker2
5ffb5e7bf3aa902f4737b28cd7d14f1858008e4a
[ "Apache-2.0" ]
null
null
null
package consumer import ( "context" "fmt" "net/http" "github.com/free5gc/ausf/internal/logger" "github.com/free5gc/openapi/Nnrf_NFDiscovery" "github.com/free5gc/openapi/models" ) func SendSearchNFInstances(nrfUri string, targetNfType, requestNfType models.NfType, param Nnrf_NFDiscovery.SearchNFInstancesParamOpts) (*models.SearchResult, error) { configuration := Nnrf_NFDiscovery.NewConfiguration() configuration.SetBasePath(nrfUri) client := Nnrf_NFDiscovery.NewAPIClient(configuration) result, rsp, rspErr := client.NFInstancesStoreApi.SearchNFInstances(context.TODO(), targetNfType, requestNfType, &param) if rspErr != nil { return nil, fmt.Errorf("NFInstancesStoreApi Response error: %+w", rspErr) } defer func() { if rspCloseErr := rsp.Body.Close(); rspCloseErr != nil { logger.ConsumerLog.Errorf("NFInstancesStoreApi Response cannot close: %v", rspCloseErr) } }() if rsp != nil && rsp.StatusCode == http.StatusTemporaryRedirect { return nil, fmt.Errorf("Temporary Redirect For Non NRF Consumer") } return &result, nil }
31.235294
90
0.760829
c7e86329be034a46e590869f6e7da7a623e1d787
1,275
swift
Swift
src/Shiba/Shiba/ShibaFunctionExecutor.swift
ShibaJS/iOSRuntime
951af75976e3a2f8894191c8ea18c95bf4b7fcde
[ "MIT" ]
31
2018-05-08T17:27:00.000Z
2019-02-02T08:54:12.000Z
iOS/Shiba/Shiba/ShibaFunctionExecutor.swift
Tlaster/Shiba
ae4c4f62e2b6bdbeb0acfe9afaf386ebe27d69d8
[ "MIT" ]
14
2018-08-22T07:54:18.000Z
2019-02-12T03:08:09.000Z
iOS/Shiba/Shiba/ShibaFunctionExecutor.swift
ShibaJS/Shiba
ae4c4f62e2b6bdbeb0acfe9afaf386ebe27d69d8
[ "MIT" ]
1
2018-11-29T19:19:38.000Z
2018-11-29T19:19:38.000Z
// // Created by 高垣朝陽 on 2018/8/16. // Copyright (c) 2018 Tlaster. All rights reserved. // import Foundation class ShibaFunctionExecutor { func execute(function: ShibaFunction, dataContext: Any?) -> Any? { return Shiba.instance.configuration.converterExecutor.execute(name: function.name, parameters: function.parameter.map { it in getParameterValue(parameter: it, dataContext: dataContext) }) } private func getParameterValue(parameter: Any, dataContext: Any?) -> Any? { switch parameter { case is ShibaFunction: return execute(function: parameter as! ShibaFunction, dataContext: dataContext) case is ShibaBinding: return getValueFromDataContext(binding: parameter as! ShibaBinding, dataContext: dataContext) default: return parameter } } func getValueFromDataContext(binding: ShibaBinding, dataContext: Any?) -> Any? { return Shiba.instance.configuration.bindingValueResolver.getValue(dataContext: dataContext, name: binding.path) } } class SingleBindingShibaFunctionExecutor: ShibaFunctionExecutor { override func getValueFromDataContext(binding: ShibaBinding, dataContext: Any?) -> Any? { return dataContext; } }
34.459459
133
0.701176
e57e1af8e96a56c57a0d47f81b98b26bbd87acd6
691
swift
Swift
MineBleeper/Views/RootLabel.swift
WikipediaBrown/MineBleeper
a1cc75274a6d06d8dc123ad879cfcf48df97a8b4
[ "MIT" ]
null
null
null
MineBleeper/Views/RootLabel.swift
WikipediaBrown/MineBleeper
a1cc75274a6d06d8dc123ad879cfcf48df97a8b4
[ "MIT" ]
null
null
null
MineBleeper/Views/RootLabel.swift
WikipediaBrown/MineBleeper
a1cc75274a6d06d8dc123ad879cfcf48df97a8b4
[ "MIT" ]
null
null
null
// // RootLabel.swift // MineBleeper // // Created by Wikipedia Brown on 11/8/19. // Copyright © 2019 IamGoodBad. All rights reserved. // import UIKit class RootLabel: UILabel { override init(frame: CGRect) { super.init(frame: frame) adjustsFontSizeToFitWidth = true font = UIFont.systemFont(ofSize: 500, weight: .black) numberOfLines = 2 preservesSuperviewLayoutMargins = true text = "Mine Bleeper" textColor = .white translatesAutoresizingMaskIntoConstraints = false } @available(*, unavailable) required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
23.827586
61
0.645441
0719e55b86c43ec445422aa87489525c0e86504b
108,506
sql
SQL
Tables/sssproje_benfed.sql
meettan/benfed_fertilizer
23b6f6b95e1a6c96515e504b435742531284f1aa
[ "MIT" ]
null
null
null
Tables/sssproje_benfed.sql
meettan/benfed_fertilizer
23b6f6b95e1a6c96515e504b435742531284f1aa
[ "MIT" ]
null
null
null
Tables/sssproje_benfed.sql
meettan/benfed_fertilizer
23b6f6b95e1a6c96515e504b435742531284f1aa
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 16, 2020 at 10:03 PM -- Server version: 5.7.31 -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `sssproje_benfed` -- -- -------------------------------------------------------- -- -- Table structure for table `mm_category` -- CREATE TABLE `mm_category` ( `sl_no` int(10) NOT NULL, `comp_id` int(10) NOT NULL, `cate_desc` varchar(255) NOT NULL, `created_by` varchar(55) NOT NULL, `created_dt` datetime NOT NULL, `modified_by` varchar(55) NOT NULL, `modified_dt` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `mm_category` -- INSERT INTO `mm_category` (`sl_no`, `comp_id`, `cate_desc`, `created_by`, `created_dt`, `modified_by`, `modified_dt`) VALUES (1, 1, 'Buffered Society(Cash)', 'synergic', '2020-07-31 11:03:25', '', '0000-00-00 00:00:00'), (2, 1, 'Buffered Society(Credit)', 'synergic', '2020-07-31 11:03:37', '', '0000-00-00 00:00:00'), (3, 1, 'Non Buffered Society(Credit)', 'synergic', '2020-07-31 11:03:48', '', '0000-00-00 00:00:00'), (4, 1, 'Non Buffered Society(Cash)', 'synergic', '2020-07-31 11:04:07', '', '0000-00-00 00:00:00'), (5, 2, 'Cash', 'synergic', '2020-07-31 11:07:26', '', '0000-00-00 00:00:00'), (6, 2, 'Credit', 'synergic', '2020-07-31 11:07:34', '', '0000-00-00 00:00:00'), (7, 3, 'EX- Rail', 'synergic', '2020-07-31 11:09:39', '', '0000-00-00 00:00:00'), (8, 3, 'EX Godown', 'synergic', '2020-07-31 11:10:11', '', '0000-00-00 00:00:00'), (9, 3, 'FOL Delivery', 'synergic', '2020-07-31 11:10:31', '', '0000-00-00 00:00:00'), (10, 3, 'SOUTH BENGAL FOL DELIVERY', 'synergic', '2020-07-31 11:11:50', '', '0000-00-00 00:00:00'), (11, 3, 'NORTH BENGAL FOL DELIVERY', 'synergic', '2020-07-31 11:12:19', '', '0000-00-00 00:00:00'), (12, 6, 'Ex-factory', 'synergic', '2020-07-31 11:14:50', 'synergic', '2020-07-31 11:15:25'), (13, 6, 'FOL', 'synergic', '2020-07-31 11:15:12', '', '0000-00-00 00:00:00'), (14, 7, 'FOL Delivery', 'synergic', '2020-07-31 11:16:28', '', '0000-00-00 00:00:00'), (15, 4, 'Ex-Godown & Rail', 'synergic', '2020-07-31 11:19:18', '', '0000-00-00 00:00:00'), (16, 4, 'Ex-Godown', 'synergic', '2020-07-31 11:19:36', '', '0000-00-00 00:00:00'), (17, 4, 'Ex-Rail', 'synergic', '2020-07-31 11:19:55', '', '0000-00-00 00:00:00'), (18, 4, 'Ex-Godown Old Stock', 'synergic', '2020-07-31 11:20:21', '', '0000-00-00 00:00:00'), (19, 4, 'Ex-Rail & Godown', 'synergic', '2020-07-31 11:21:04', '', '0000-00-00 00:00:00'), (20, 3, 'EX RAIL/EX GODOWN/ EX FACTORY', 'samik', '2020-09-15 03:43:42', '', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `mm_company_dtls` -- CREATE TABLE `mm_company_dtls` ( `COMP_ID` int(10) NOT NULL, `COMP_NAME` varchar(100) NOT NULL, `short_name` varchar(100) DEFAULT NULL, `COMP_PN_NO` varchar(30) DEFAULT NULL, `COMP_EMAIL_ID` varchar(50) DEFAULT NULL, `CREATED_BY` varchar(50) DEFAULT NULL, `CREATED_DT` datetime DEFAULT NULL, `MODIFIED_BY` varchar(50) DEFAULT NULL, `MODIFIED_DT` datetime DEFAULT NULL, `COMP_ADD` text, `PAN_NO` varchar(20) NOT NULL, `GST_NO` varchar(20) NOT NULL, `CIN` varchar(50) DEFAULT NULL, `MFMS` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `mm_company_dtls` -- INSERT INTO `mm_company_dtls` (`COMP_ID`, `COMP_NAME`, `short_name`, `COMP_PN_NO`, `COMP_EMAIL_ID`, `CREATED_BY`, `CREATED_DT`, `MODIFIED_BY`, `MODIFIED_DT`, `COMP_ADD`, `PAN_NO`, `GST_NO`, `CIN`, `MFMS`) VALUES (1, 'INDIAN FARMERS FERTILIZER COOPERATIVE LTD.', 'IFFCO', '', '', 'synergic', '2020-03-04 00:00:00', 'synergic', '2020-09-08 10:45:29', '8 A.J.C. BOSE ROAD, CIRCULAR ROAD (1ST Floor), KOLKATA 700017, WEST BENGAL\r\n \r\n \r\n ', 'AAAI0050M', '19AAAAI0050M1ZS', '', '100006'), (2, 'KRISHAK BHARATI COOPERATIVE LIMITED', 'KRIBHCO', '033-25214157', 'KRIBHCOWB06@GMAIL.COM', 'synergic', '2020-03-04 00:00:00', 'synergic', '2020-09-08 10:48:36', '14B,LAKE TOWN BLOCK- A, KOLKATA-700089', 'AAAAK0203G', '19AAAAK0203G1Z8', '', ''), (3, 'INDIAN POTASH LIMITED', 'IPL', '033-22882006', 'plcal@potindia.com', 'synergic', '2020-03-04 00:00:00', 'synergic', '2020-09-08 10:46:35', 'EVEREST HOUSE, 11TH FLOOR, 46-C, JAWAHARLAL NEHRU ROAD,KOLKATA 700071,WEST BENGAL\r\n \r\n ', 'AAAC10888H', '19AAAC10888H1ZD', 'U14219TN1955PLC000961', ''), (4, 'COROMANDEL INTERNATIONAL LTD.', 'CIL', '', '', 'synergic', '2020-03-04 00:00:00', 'synergic', '2020-09-08 11:13:27', 'COSSIMBAZAR DAMAN DAFTARI LANE, NEAR COSSIMBAZAR; WEST BENGAL-742102', 'AAACC7852K', '19AAACC7852K1ZA', 'L24120TG1961PLC000892', ''), (5, 'KHAITAN CHEMICALS AND FERTILIZERS LTD.', 'KCFL', '', '', 'synergic', '2020-03-04 00:00:00', 'synergic', '2020-09-08 11:14:27', '46, C RAFI AHMEND KIDWAI ROAD, KOLKATA\r\n ', 'AAACK2342Q', '19AAACK2342Q1Z7', 'L24219MP1982PLC004937', ''), (6, 'THE JAYASREE CHEMICALS & FERTIL', 'JCF', '033-2282-7531;9827;9436 ', 'JCF@JAYSHREETEA.COM', 'synergic', '2020-03-04 00:00:00', 'synergic', '2020-09-08 10:47:32', 'INDUSTRY , 15TH FLOOR, 10 CAMAC STREET, KOLKATA-700017 ', 'AAACJ7788D', '19AAACJ7788D1Z7', 'L15491WB1945PLCO12771', ''), (7, 'MOSAIC INDIA PRIVATE LTD.', '', '', '', 'synergic', '2020-03-04 00:00:00', 'synergic', '2020-09-08 11:12:39', '11TH FLOOR,DLF CYBER CITY-II ; GURGAON, HARYANA-122002', 'AACCC4033C', '19AACCC4033C1Z6', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `mm_cr_note_category` -- CREATE TABLE `mm_cr_note_category` ( `sl_no` int(5) NOT NULL, `cat_desc` varchar(50) DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `created_dt` datetime DEFAULT NULL, `modified_by` varchar(50) DEFAULT NULL, `modified_dt` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `mm_feri_bank` -- CREATE TABLE `mm_feri_bank` ( `sl_no` int(11) NOT NULL, `dist_cd` int(10) NOT NULL, `acc_code` varchar(10) CHARACTER SET latin1 NOT NULL, `bank_name` varchar(100) CHARACTER SET latin1 NOT NULL, `branch_name` varchar(100) CHARACTER SET latin1 NOT NULL, `ac_no` varchar(50) CHARACTER SET latin1 NOT NULL, `ifsc` varchar(25) NOT NULL, `created_by` varchar(50) CHARACTER SET latin1 DEFAULT NULL, `created_dt` datetime DEFAULT NULL, `modified_by` varchar(50) CHARACTER SET latin1 DEFAULT NULL, `modified_dt` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `mm_ferti_soc` -- CREATE TABLE `mm_ferti_soc` ( `soc_id` int(5) NOT NULL, `soc_name` varchar(100) NOT NULL, `soc_add` text NOT NULL, `district` varchar(20) NOT NULL, `ph_no` varchar(20) DEFAULT NULL, `email` varchar(20) DEFAULT NULL, `pan` varchar(15) DEFAULT NULL, `gstin` varchar(20) DEFAULT NULL, `mfms` varchar(20) DEFAULT NULL, `status` enum('N','O','R') DEFAULT 'N', `stock_point_flag` enum('Y','N') NOT NULL DEFAULT 'N', `buffer_flag` enum('N','B','I') NOT NULL DEFAULT 'N', `created_by` varchar(50) DEFAULT NULL, `created_dt` datetime DEFAULT NULL, `modified_by` varchar(50) DEFAULT NULL, `modified_dt` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `mm_ferti_soc` -- INSERT INTO `mm_ferti_soc` (`soc_id`, `soc_name`, `soc_add`, `district`, `ph_no`, `email`, `pan`, `gstin`, `mfms`, `status`, `stock_point_flag`, `buffer_flag`, `created_by`, `created_dt`, `modified_by`, `modified_dt`) VALUES (1, 'DHARMAPUR SKUS LTD', 'DHARMAPUR, P.O- DHARMAPUR', '337', NULL, NULL, NULL, '19AABAD6387P3ZW', '772292', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (2, 'KADPUR SKUS LTD', 'Kadpur, P.O-Arkhali Amdanga', '337', NULL, NULL, NULL, '19AABTK6017G1ZO', '797662', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (3, 'KOLSUR BAGJOLA L.S CMS LTD', 'BAGJOLA BAZAR P.O KOLSUR', '337', NULL, NULL, NULL, '19AAAAK5956C1ZM', '379306', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (4, 'KULINGRAM O BELER DHANYAKURIA SKUS LTD', 'JOYPUE KALIBARI P.O-SIKIRA KULINGRAM', '337', NULL, NULL, NULL, '19AAAAK6390G1ZG', '289627', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (5, 'RAMCHANDRAPUR UNION LS PACS LTD', 'D.Chatra, P.O- RAMCHANDRAPUR', '337', NULL, NULL, NULL, '19AABAR0180J1ZH', '876166', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (6, 'Uttar 24 Pgs Krishi Samabay Himghar Ltd', 'Bagna, P.O-Gaighata', '337', NULL, NULL, NULL, '19AAAAU6112E2ZP', '289640', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (7, 'Swarup Nagar CoOp. Agrl. MKTG.Socy.', 'Swarupnagar, North 24 Parganas', '337', NULL, NULL, NULL, '19AAABS3093D1ZI', '289638', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (8, 'Madhusudakati S.K.U.S Ltd', 'East Bishnupur, Gaighata', '337', NULL, NULL, NULL, '19AAAAM7591F1ZB', '289628', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (9, 'Deganga C.A.D.P F.S.C.S Ltd', 'Debalaya, North 24 Parganas', '337', NULL, NULL, NULL, '19AAAAD9763A1ZS', '985860', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (10, 'Bagdah Block MKT CO-OP SOCY LTD', 'Helencha colony North 24 Parganas', '337', NULL, NULL, NULL, '19AADAB7061Q1Z7', '289622', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (11, 'Kharki SKUS Ltd', '24 pgs', '337', NULL, NULL, NULL, '19AAALK1316M1Z0', '189340', 'N', 'N', 'N', NULL, NULL, NULL, NULL), (12, 'Hatthuba SKUS Ltd', 'Hatthuba North 24 Parganas', '337', NULL, NULL, NULL, '19AAAH0428E1Z4', '289626', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (13, 'Gaighata Thana Agril. Pry. Mktg. Coop. Socy. Ltd', 'Chandpara Bazer, North 24 Parganas', '337', NULL, NULL, NULL, '19AAAJG0977C1ZC', '289625', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (14, 'WBSSC Ltd', 'Barasat North 24 Parganas', '337', NULL, NULL, NULL, '19AAACW2364A1ZM', '497239', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (15, 'Amdanga L/S Thana L/S PCAMS Ltd.', 'Vill Amdanga, North 24 Parganas', '337', NULL, NULL, NULL, '19AACAA1194Q1ZB', '373442', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (16, 'Bergoom Payragachi SKUS Ltd.', '24 pgs', '337', NULL, NULL, NULL, '19AAAJB0725D1ZT', '226554', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (17, 'Jowdanga S.K.U.S Ltd', 'Jowdanga Gaighata', '337', NULL, NULL, NULL, 'not availale', '226729', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (18, 'Gopalpur Naigachi S.K.U,S Ltd', 'Gopalpur Gaighata', '337', NULL, NULL, NULL, '19AABAG8780H1ZB', '387972', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (19, 'Hasnabad CMS Ltd', 'na', '337', '', '', 'na', 'na', 'na', 'R', 'Y', 'B', 'synergic', '2020-09-16 07:06:18', NULL, NULL), (20, 'BENFED Mirhati', 'na', '337', 'na', '', 'nil', 'na', 'na', 'O', 'Y', 'B', 'synergic', '2020-09-16 07:07:13', NULL, NULL), (21, 'ADABARI SKUS LTD.', 'HARIBOLA HAT SITAI', '329', NULL, NULL, NULL, '19AAFAA3335A1ZA', '419894', 'N', 'N', 'N', NULL, NULL, NULL, NULL), (22, 'BALAPUKURI SKUS LTD.', 'NAGARGIRIDARI SITAI', '329', NULL, NULL, NULL, '19AAEAB0113G1ZC', '419890', 'N', 'N', 'N', NULL, NULL, NULL, NULL), (23, 'BHANUKUMARI SKUS LTD', 'BOXIRHAT TUFANGANJ', '329', NULL, NULL, NULL, '19AACAB6946M1Z8', '252963', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (24, 'BHATIBARI SKUS LTD', 'BHATIBARI ALIPURDUAR', '329', NULL, NULL, NULL, '19AAAAB7961N1Z7', '287605', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (25, 'CHILAKHANA SKUS LTD.', 'CHILAKHANA, TUFANGANJ', '329', NULL, NULL, NULL, '19AACAC7021L1ZP', '228601', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (26, 'DAKSHIN COOCHBEHAR LS CAMS LTD.', 'DEOANHAT COOCH BEHAR', '329', NULL, NULL, NULL, '19AACAD2591E1ZU', '1057479', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (27, 'DAWAGURI JHINAIDANGA SKUS LTD.', 'DAWAGURI COOCH BEHAR', '329', NULL, NULL, NULL, '19AABAD8906C1ZW', '228608', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (28, 'DEOCHARI SKUS LTD.', 'DEOCHARAI TUFANGANJ', '329', NULL, NULL, NULL, '19AABAD1061G1Z4', '228612', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (29, 'GURIARPAR SKUS LTD.', 'CHHATRAMPUR TUFANJGANJ', '329', NULL, NULL, NULL, '19AADAG2325A1ZA', '228636', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (30, 'JAMALDAHA SKUS LTD.', 'JAMALDAHA, MEKHLIGANJ', '329', NULL, NULL, NULL, '19AAAAJ7231M1ZE', '256933', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (31, 'KAMAT PANISHALA SKUS LTD.', 'CHOWRANGEE, MEKHLIGANJ', '329', NULL, NULL, NULL, '19AADAK5208J1ZJ', '913777', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (32, 'KANIBIL KANKANGURI SKUS LTD.', 'SATMILE COOCH BEHAR', '329', NULL, NULL, NULL, '19AADAK0976D1ZN', '649141', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (33, 'KHAGRABARI SKUS LTD.', 'KHAGRABARI COOCH BEHAR', '329', NULL, NULL, NULL, 'NIL', '270266', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (34, 'KHARIJA NALDHANDHARA SKUS LTD.', 'DEURHAT, COOCH BEHAR', '329', NULL, NULL, NULL, '19AABAK3695D1ZJ', '419900', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (35, 'KHARKHARIA SKUS LTD.', 'PUTIMARI DINHATA', '329', NULL, NULL, NULL, '19AACAK3669E1ZI', '419902', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (36, 'KHOLTA SKUS LTD.', 'KHOLTA, COOCH BEHAR', '329', NULL, NULL, NULL, 'NIL', '419906', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (37, 'KISAMAT DASGRAM J.K. SKUS LTD.', 'KISHAMAT DASGRAM DINHATA', '329', NULL, NULL, NULL, '19AADAK7891D1ZB', '982896', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (38, 'MADHUPUR SKUS LTD.', 'MADHUPUR COOCH BEHAR', '329', NULL, NULL, NULL, '19AACAM2877J2Z4', '271206', 'N', 'N', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL), (339, 'MADHYANARARTHALI SKUS LTD.', 'KHOARDANGA ALIPURDUAR', '329', NULL, NULL, NULL, 'NIL', 'nil', 'N', 'Y', 'N', NULL, '2020-09-16 00:00:00', NULL, NULL); -- -- Triggers `mm_ferti_soc` -- DELIMITER $$ CREATE TRIGGER `ai_mm_ferti_soc` AFTER INSERT ON `mm_ferti_soc` FOR EACH ROW If new.stock_point_flag='Y' then Insert into tdf_stock_point_log(trans_dt,dist,soc_id,status) values(new.created_dt,new.district,new.soc_id,new.stock_point_flag); End If $$ DELIMITER ; DELIMITER $$ CREATE TRIGGER `au_mm_ferti_soc` AFTER UPDATE ON `mm_ferti_soc` FOR EACH ROW If old.stock_point_flag='Y' and new.stock_point_flag='N' then Insert into tdf_stock_point_log(trans_dt,dist,soc_id,status) values(new.created_dt,new.district,new.soc_id,new.stock_point_flag); End If $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `mm_product` -- CREATE TABLE `mm_product` ( `PROD_ID` int(10) NOT NULL, `PROD_DESC` varchar(100) DEFAULT NULL, `COMPANY` varchar(30) DEFAULT NULL, `PROD_TYPE` varchar(30) DEFAULT NULL, `CREATED_BY` varchar(30) DEFAULT NULL, `CREATED_DT` datetime DEFAULT NULL, `MODIFIED_BY` varchar(30) DEFAULT NULL, `MODIFIED_DT` datetime DEFAULT NULL, `COMMODITY_ID` varchar(30) DEFAULT NULL, `GST_RT` decimal(10,2) DEFAULT NULL, `HSN_CODE` int(20) DEFAULT NULL, `QTY_PER_BAG` int(10) DEFAULT NULL, `unit` int(5) NOT NULL, `storage` enum('B','T','P') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `mm_product` -- INSERT INTO `mm_product` (`PROD_ID`, `PROD_DESC`, `COMPANY`, `PROD_TYPE`, `CREATED_BY`, `CREATED_DT`, `MODIFIED_BY`, `MODIFIED_DT`, `COMMODITY_ID`, `GST_RT`, `HSN_CODE`, `QTY_PER_BAG`, `unit`, `storage`) VALUES (1, 'Ammonium Sulphate-50 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:03:56', '1', 8.00, 3102, 50, 2, 'B'), (2, 'BORON-14.6-20Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:04:04', '1', 18.00, 3102, 20, 2, 'B'), (3, 'Calcium Nitrate-10Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:04:12', '1', 5.00, 3102, 10, 2, 'B'), (4, 'Calcium Nitrate-1Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:04:20', '1', 5.00, 3101, 1, 2, 'B'), (6, 'City Compost-KRIBHCO-50 Kg', '2', '1', NULL, NULL, 'synergic', '2020-09-16 06:04:37', '1', 5.00, 3101, 50, 2, 'B'), (8, 'D A P (Zn)50 Kg', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:05:07', '1', 5.00, 31053000, 50, 2, 'B'), (9, 'D. A. P. (Paradeep)50 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:05:18', '1', 5.00, 3105, 50, 2, 'B'), (10, 'DAP(KRIBHCO)', '2', '1', NULL, NULL, 'synergic', '2020-09-16 06:06:26', '1', 5.00, 3105, 1, 2, 'B'), (11, 'DAP(IPL)', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:06:37', '1', 5.00, 31053000, 1000, 2, 'B'), (12, 'DAP (Imported)50 Kg', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:06:51', '1', 5.00, 31053000, 50, 2, 'B'), (13, 'DAP (Manufactured)50 Kg', '4', '3', NULL, NULL, 'synergic', '2020-09-16 06:06:58', '1', 5.00, 31053000, 50, 1, 'B'), (14, 'DAP50 Kg', '2', '1', NULL, NULL, 'synergic', '2020-09-16 06:07:12', '1', 5.00, 31053000, 1, 2, 'B'), (15, 'KARBON+50 Kg', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:07:24', '1', 5.00, 31010099, 50, 2, 'B'), (16, 'Liquid Consortia-100ml', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:07:40', '1', 5.00, 3101, 4, 5, 'B'), (17, 'Liquid Consortia-1lit.', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:07:53', '1', 5.00, 3101, 3, 3, 'B'), (18, 'Liquid Consortia-250ml', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:08:07', '1', 5.00, 3101, 4, 5, 'B'), (19, 'Liquid Consortia-500ml', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:08:22', '1', 5.00, 3101, 4, 5, 'B'), (20, 'M.O.P.(IPL)-50 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:09:49', '1', 5.00, 31042000, 50, 2, 'B'), (21, 'Magnesium Sulphate-1Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:10:00', '1', 12.00, 2833, 1, 2, 'B'), (22, 'Magnesium Sulphate-25Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:10:13', '1', 12.00, 2833, 25, 2, 'B'), (23, 'Magnesium Sulphate-2Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:10:32', '1', 12.00, 2833, 2, 2, 'B'), (24, 'Magnesium Sulphate-50Kg.', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:10:45', '1', 12.00, 2833, 50, 2, 'B'), (25, 'MOP(MOSAIC)50 Kg', '7', '1', NULL, NULL, 'synergic', '2020-09-16 06:10:59', '1', 5.00, 31042000, 50, 2, 'B'), (26, 'NPK 18.18.18', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:11:16', '1', 5.00, 3105, 1, 2, 'B'), (27, 'N P K (Zn)-10-26-26(50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:11:29', '1', 5.00, 31052000, 50, 2, 'B'), (28, 'N P K -10-26-26-IFFCO (50 Kg)', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:11:45', '1', 5.00, 3105, 50, 2, 'B'), (29, 'N P K -10-26-26-COROMONDAL (50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:11:56', '1', 0.00, 31052000, 50, 2, 'B'), (30, 'N P K -10-26-26-KRIBCO (50 Kg)', '2', '1', NULL, NULL, 'synergic', '2020-09-16 06:12:14', '1', 0.00, 3105, 50, 2, 'B'), (31, 'N P K -12.32.16(50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:12:25', '1', 5.00, 31052000, 50, 2, 'B'), (32, 'N P K -14-35-14(50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:12:37', '1', 5.00, 31052000, 50, 2, 'B'), (33, 'N P K -20.20.0.13(50 )', '3', '3', NULL, NULL, NULL, NULL, '1', 5.00, 31052000, 50, 0, 'B'), (34, 'N P K -24.24.0.8(50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:12:57', '1', 5.00, 31052000, 50, 2, 'B'), (35, 'N P K -28-28-0(50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:13:10', '1', 5.00, 31052000, 50, 2, 'B'), (36, 'N P K S-15:15:15:09(50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:13:24', '1', 5.00, 31052000, 50, 2, 'B'), (37, 'N P K S-16:20:0:13(50 Kg)', '4', '3', NULL, NULL, NULL, NULL, '1', 5.00, 31052000, 50, 0, 'B'), (38, 'N P K S-20:20:0:13(50 Kg)', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:13:46', '1', 5.00, 31052000, 50, 2, 'B'), (39, 'N P K-17.17.17( 50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:13:58', '1', 5.00, 31052000, 50, 2, 'B'), (40, 'N.P.K.-20.20.0(50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:14:10', '1', 5.00, 3105, 50, 2, 'B'), (41, 'N:P:K:S(IMP) 20.20.0-50 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:14:25', '1', 5.00, 3105, 50, 2, 'B'), (42, 'NPK I-10.26.26( 50 Kg)', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:14:38', '1', 5.00, 3105, 50, 2, 'B'), (43, 'NPK-16.16.16(50 Kg)', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:14:50', '1', 5.00, 31052000, 50, 2, 'B'), (44, 'NPK-II-12:32:16 -50 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:15:06', '1', 5.00, 3105, 50, 2, 'B'), (45, 'NPKS-13.33.0.06(50kg)', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:15:20', '1', 5.00, 3105, 50, 2, 'B'), (46, 'NPKS-20.20.0.13(50 Kg)', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:15:37', '1', 5.00, 31052000, 50, 2, 'B'), (47, 'Phospho Zypsum-10 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:15:49', '1', 5.00, 3824, 10, 2, 'B'), (48, 'Phospho Zypsum-1kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:16:06', '1', 5.00, 3824, 1, 2, 'B'), (49, 'Phospho Zypsum-25 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:16:24', '1', 5.00, 3824, 25, 2, 'B'), (50, 'Phospho Zypsum-5Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:16:41', '1', 5.00, 3824, 5, 2, 'B'), (51, 'PSB Bio Fert.-1kg', '1', '3', NULL, NULL, 'synergic', '2020-09-16 06:17:56', '1', 5.00, 3101, 1, 2, 'B'), (52, 'PSB Bio Fert.-500gm', '1', '3', NULL, NULL, 'synergic', '2020-09-16 06:18:17', '1', 5.00, 3101, 1, 6, 'B'), (53, 'PSB Bio Fert-250gm', '1', '3', NULL, NULL, 'synergic', '2020-09-16 06:18:31', '1', 5.00, 3101, 1, 6, 'B'), (54, 'S S P (G) SAI-50 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:18:50', '1', 5.00, 31031000, 50, 2, 'B'), (55, 'S S P (P) SAI-50 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:19:04', '1', 5.00, 31031000, 50, 2, 'B'), (56, 'S S P- G(Mangalam)-50 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:19:21', '1', 5.00, 31031000, 50, 2, 'B'), (57, 'S S P -P (Mangalam)-50 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:22:00', '1', 5.00, 31031000, 50, 2, 'B'), (58, 'S.S.P (G)-IPL -50 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:21:44', '1', 5.00, 31031000, 50, 2, 'B'), (59, 'S.S.P.(G)-KHAITAN 50 Kg', '5', '1', NULL, NULL, 'synergic', '2020-09-16 06:21:31', '1', 5.00, 31031000, 50, 2, 'B'), (60, 'S.S.P.(P)-IPL 50 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:21:19', '1', 5.00, 31031000, 50, 2, 'B'), (61, 'S.S.P.(P)-KHAITAN 50 Kg', '5', '1', NULL, NULL, 'synergic', '2020-09-16 06:22:23', '1', 5.00, 31031000, 50, 2, 'B'), (62, 'SAGARIKA (Granular)-1 Kg', '1', '2', NULL, NULL, 'synergic', '2020-09-16 06:22:50', '1', 5.00, 31031000, 1, 2, 'B'), (63, 'SAGARIKA (Granular)-10 Kg', '1', '2', NULL, NULL, 'synergic', '2020-09-16 06:23:06', '1', 5.00, 3101, 10, 2, 'B'), (64, 'SAGARIKA (Granular)-25 Kg', '1', '2', NULL, NULL, 'synergic', '2020-09-16 06:23:17', '1', 5.00, 3101, 1, 2, 'B'), (65, 'SAGARIKA (Liquid)-100ml', '1', '2', NULL, NULL, 'synergic', '2020-09-16 06:23:30', '1', 5.00, 3101, 4, 5, 'B'), (66, 'SAGARIKA (Liquid)-1Lit', '1', '2', NULL, NULL, 'synergic', '2020-09-16 06:23:46', '1', 5.00, 3101, 1, 3, 'B'), (67, 'SAGARIKA (Liquid)-250ml', '1', '2', NULL, NULL, 'synergic', '2020-09-16 06:24:01', '1', 5.00, 3101, 3, 5, 'B'), (68, 'SAGARIKA (Liquid)-5 lit', '1', '2', NULL, NULL, 'synergic', '2020-09-16 06:25:01', '1', 5.00, 3101, 5, 3, 'B'), (69, 'SAGARIKA (Liquid)-500 ml', '1', '2', NULL, NULL, 'synergic', '2020-09-16 06:25:16', '1', 5.00, 3101, 4, 5, 'B'), (70, 'SSP (P)(JAYASREE) 50 Kg', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:25:31', '1', 5.00, 31031000, 50, 2, 'B'), (71, 'Sulpher Bentonite-1 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:25:46', '1', 5.00, 25030090, 1, 2, 'B'), (72, 'Sulpher Bentonite-10Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:25:58', '1', 5.00, 25030090, 10, 2, 'B'), (73, 'Sulpher Bentonite-25 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:26:10', '1', 5.00, 25030090, 25, 2, 'B'), (74, 'Sulpher Bentonite-5 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:26:31', '1', 5.00, 25030090, 5, 2, 'B'), (75, 'UREA (Ph-I)45 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:26:50', '1', 5.00, 3102, 45, 2, 'B'), (76, 'UREA (Ph-I)50 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:27:06', '1', 5.00, 3102, 50, 2, 'B'), (77, 'UREA ( NEEM) IPL -50 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:27:21', '1', 5.00, 31021000, 50, 2, 'B'), (78, 'Urea (Imported)-45 Kg', '2', '1', NULL, NULL, 'synergic', '2020-09-16 06:27:31', '1', 5.00, 3102, 45, 2, 'B'), (79, 'Urea (KFL)-45 Kg', '2', '1', NULL, NULL, 'synergic', '2020-09-16 06:27:45', '1', 5.00, 3102, 45, 2, 'B'), (80, 'UREA (Neem)-IFFCO 45 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:27:57', '1', 5.00, 3102, 45, 2, 'B'), (81, 'UREA (Neem)-IFFCO 50 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:32:01', '1', 5.00, 3102, 50, 2, 'B'), (82, 'UREA (NEEM)-COROMONDAL 50 Kg', '4', '1', NULL, NULL, 'synergic', '2020-09-16 06:28:10', '1', 5.00, 31021000, 50, 2, 'B'), (83, 'UREA (Om)45 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:32:24', '1', 5.00, 3102, 45, 2, 'B'), (84, 'UREA (Om)50 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:32:36', '1', 5.00, 3102, 50, 2, 'B'), (85, 'UREA (Ph-II)45Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:32:46', '1', 5.00, 3102, 45, 2, 'B'), (86, 'UREA (Ph-II)50 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:32:57', '1', 5.00, 3102, 50, 2, 'B'), (87, 'Urea Phos-10Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:33:54', '1', 5.00, 3102, 10, 2, 'B'), (88, 'Urea Phos-2 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:34:09', '1', 5.00, 3102, 2, 2, 'B'), (89, 'Urea Phos-25 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:34:21', '1', 5.00, 3102, 25, 2, 'B'), (90, 'Urea Phos-5 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:34:36', '1', 5.00, 3102, 5, 2, 'B'), (91, 'Urea-IPL 45 Kg', '3', '1', NULL, NULL, 'synergic', '2020-09-16 06:34:50', '1', 5.00, 31021000, 45, 2, 'B'), (92, 'WSF SOP-10 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:35:26', '1', 5.00, 3105, 10, 2, 'B'), (93, 'WSF SOP-1kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:35:51', '1', 5.00, 3105, 1, 2, 'B'), (94, 'WSF SOP-25 Kg.', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:36:05', '1', 5.00, 3105, 25, 2, 'B'), (95, 'WSF SOP-5Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:36:17', '1', 5.00, 3105, 5, 2, 'B'), (96, 'WSF-0.0.50- 1 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:36:31', '1', 5.00, 3105, 1, 2, 'B'), (97, 'WSF-0.0.50 - 10Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:36:47', '1', 5.00, 3105, 10, 2, 'B'), (98, 'WSF-0.0.50- 25 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:37:00', '1', 5.00, 3105, 25, 2, 'B'), (99, 'WSF-0.0.50 - 5 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-14 12:02:27', '1', 5.00, 3105, 5, 1, 'B'), (100, 'Zinc Sulphate Mono. (33%)10 Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:37:19', '1', 18.00, 28332990, 10, 2, 'B'), (101, 'Zinc Sulphate Mono. (33%)1kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:37:30', '1', 18.00, 28332990, 1, 2, 'B'), (102, 'Zinc Sulphate Mono. (33%)5Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:37:40', '1', 18.00, 28332990, 5, 2, 'B'), (103, 'Zinc Sulphate-10 Kg.', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:37:52', '1', 5.00, 3102, 10, 2, 'B'), (104, 'Zinc Sulphate-1kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:38:07', '1', 5.00, 3102, 1, 2, 'B'), (105, 'Zinc Sulphate-5Kg', '1', '1', NULL, NULL, 'synergic', '2020-09-16 06:38:19', '1', 5.00, 3102, 5, 2, 'B'), (106, 'SSP(p) 50 KG', '6', '1', 'synergic', '2020-03-20 00:00:00', 'synergic', '2020-09-16 06:38:30', NULL, 0.00, 0, 50, 2, 'B'), (107, 'City Compost-KRIBHCO-50 Kg', NULL, NULL, NULL, '2020-07-15 00:00:00', NULL, NULL, NULL, NULL, NULL, 50, 0, 'B'), (108, 'City Compost-KRIBHCO-50 Kg', NULL, NULL, 'synergic', '2020-07-15 00:00:00', NULL, NULL, NULL, NULL, NULL, 50, 0, 'B'), (115, 'N:P:K:S 20:20:0:13 ', '1', '1', 'synergic', '2020-08-21 10:16:44', 'synergic', '2020-09-16 06:39:01', NULL, 18.00, 88999, 50, 2, 'B'), (116, 'Urea(IMP) ', '1', '1', 'synergic', '2020-08-21 10:17:29', 'synergic', '2020-09-16 06:39:35', NULL, 5.00, 8899666, 50, 2, 'B'), (117, 'WSF 18:18:18 ', '1', '1', 'synergic', '2020-08-21 10:18:01', 'synergic', '2020-09-16 06:39:45', NULL, 5.50, 9666, 50, 2, 'B'), (118, 'WSF 19:19:19 ', '1', '1', 'synergic', '2020-08-21 10:18:29', 'synergic', '2020-09-16 06:39:57', NULL, 5.50, 3333, 50, 2, 'B'), (119, 'ZINC Sulphate-21% ', '2', '1', 'synergic', '2020-08-21 10:24:11', 'synergic', '2020-09-16 06:40:07', NULL, 5.50, 52555, 50, 2, 'B'), (120, 'Urea neem OM', '1', '1', 'synergic', '2020-09-16 06:52:13', NULL, NULL, NULL, 0.00, 111, 50, 2, 'B'); -- -------------------------------------------------------- -- -- Table structure for table `mm_sale_rate` -- CREATE TABLE `mm_sale_rate` ( `bulk_id` int(10) NOT NULL DEFAULT '0', `fin_id` int(10) NOT NULL, `district` int(10) NOT NULL, `frm_dt` date NOT NULL, `to_dt` date NOT NULL, `comp_id` int(10) NOT NULL, `catg_id` int(10) NOT NULL, `prod_id` int(10) NOT NULL, `sp_mt` decimal(10,2) NOT NULL DEFAULT '0.00', `sp_bag` decimal(10,2) NOT NULL DEFAULT '0.00', `sp_govt` decimal(10,2) NOT NULL DEFAULT '0.00', `created_by` varchar(50) DEFAULT NULL, `created_dt` date DEFAULT NULL, `modified_by` varchar(50) DEFAULT NULL, `modified_dt` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `mm_sale_rate` -- INSERT INTO `mm_sale_rate` (`bulk_id`, `fin_id`, `district`, `frm_dt`, `to_dt`, `comp_id`, `catg_id`, `prod_id`, `sp_mt`, `sp_bag`, `sp_govt`, `created_by`, `created_dt`, `modified_by`, `modified_dt`) VALUES (23, 1, 327, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 327, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 327, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 327, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 327, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 327, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 327, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 327, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 327, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 327, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 327, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 327, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 327, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 327, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 327, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 327, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 327, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 327, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 327, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (9, 1, 327, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 328, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 328, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 328, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 328, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 328, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 328, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 328, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 328, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 328, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 328, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 328, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 328, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 328, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 328, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 328, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 328, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 328, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 328, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 328, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (9, 1, 328, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 329, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 329, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 329, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 329, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 329, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 329, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 329, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 329, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 329, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 329, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 329, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 329, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 329, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 329, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 329, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 329, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 329, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 329, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 329, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (9, 1, 329, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 330, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 330, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 330, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 330, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 330, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 330, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 330, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 330, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 330, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 330, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 330, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 330, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 330, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 330, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 330, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 330, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 330, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 330, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 330, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (9, 1, 330, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 331, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 331, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 331, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 331, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 331, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 331, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 331, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 331, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 331, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 331, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 331, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 331, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 331, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 331, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 331, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 331, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 331, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 331, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 331, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (9, 1, 331, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 332, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 332, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 332, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 332, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 332, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 332, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 332, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 332, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 332, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 332, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 332, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 332, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 332, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 332, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 332, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 332, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 332, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 332, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 332, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (9, 1, 332, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 333, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 333, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 333, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 333, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 333, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 333, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 333, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 333, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 333, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 333, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 333, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 333, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 333, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 333, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 333, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 333, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 333, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 333, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 333, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 333, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 333, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 333, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 333, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 333, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 334, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 334, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 334, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 334, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 334, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 334, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 334, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 334, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 334, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 334, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 334, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 334, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 334, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 334, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 334, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 334, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 334, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 334, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 334, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 334, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 334, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 334, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 334, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 334, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 335, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 335, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 335, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 335, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (42, 1, 335, '2020-05-01', '2020-05-30', 3, 8, 11, 22052.14, 22.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (41, 1, 335, '2020-05-01', '2020-05-31', 0, 8, 11, 22052.14, 22.00, 0.00, 'samik', '2020-09-15', 'samik', '2020-09-15'), (40, 1, 335, '2020-05-01', '2020-05-31', 3, 7, 11, 21904.76, 22.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (43, 1, 335, '2020-05-01', '2020-05-31', 3, 9, 11, 22477.14, 22.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (37, 1, 335, '2020-05-01', '2020-05-31', 3, 7, 20, 16761.90, 335.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (38, 1, 335, '2020-05-01', '2020-05-31', 3, 8, 20, 16857.14, 337.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (39, 1, 335, '2020-05-01', '2020-05-31', 3, 9, 20, 17295.24, 346.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (32, 1, 335, '2020-05-01', '2020-05-31', 3, 7, 33, 17041.43, 341.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (31, 1, 335, '2020-05-01', '2020-05-31', 3, 8, 33, 17241.43, 345.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (33, 1, 335, '2020-05-01', '2020-05-31', 3, 9, 33, 17691.43, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (34, 1, 335, '2020-05-01', '2020-05-31', 3, 7, 43, 17636.67, 353.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (35, 1, 335, '2020-05-01', '2020-05-31', 3, 8, 43, 17836.67, 357.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (36, 1, 335, '2020-05-01', '2020-05-31', 3, 9, 43, 18286.67, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 335, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 335, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 335, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 335, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 335, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 335, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (44, 1, 335, '2020-05-01', '2020-05-31', 3, 7, 91, 5061.21, 112.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (45, 1, 335, '2020-05-01', '2020-05-31', 3, 8, 91, 5111.21, 114.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 335, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (4, 1, 335, '2020-06-01', '2020-06-30', 3, 7, 33, 17041.43, 341.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (6, 1, 335, '2020-06-01', '2020-06-30', 3, 7, 43, 17636.67, 353.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 335, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (2, 1, 335, '2020-08-01', '2020-08-31', 3, 7, 11, 21523.80, 21524.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (1, 1, 335, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 335, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 335, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 335, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 335, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 335, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 335, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 335, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 335, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 335, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 335, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 335, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 336, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 336, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 336, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 336, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 336, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 336, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 336, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 336, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 336, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 336, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 336, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 336, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 336, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 336, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 336, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 336, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 336, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 336, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 336, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 336, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 336, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 336, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 336, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 336, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 337, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 337, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 337, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 337, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 337, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 337, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 337, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 337, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 337, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 337, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 337, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 337, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 337, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 337, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 337, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 337, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 337, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 337, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 337, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 337, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 337, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 337, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 337, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (7, 1, 337, '2020-09-01', '2020-09-30', 6, 12, 106, 7077.38, 142.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 337, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 338, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 338, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 338, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 338, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 338, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 338, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 338, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 338, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 338, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 338, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 338, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 338, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 338, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 338, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 338, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 338, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 338, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 338, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 338, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 338, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 338, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 338, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 338, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 338, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 339, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 339, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 339, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 339, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 339, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 339, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 339, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 339, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 339, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 339, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 339, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 339, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 339, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 339, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 339, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 339, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 339, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 339, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 339, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 339, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 339, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 339, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 339, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 339, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 340, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 340, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 340, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 340, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 340, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 340, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 340, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 340, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 340, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 340, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 340, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 340, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 340, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 340, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 340, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 340, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 340, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 340, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 340, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 340, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 340, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 340, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 340, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 340, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 341, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 341, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 341, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 341, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 341, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 341, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 341, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 341, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 341, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 341, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 341, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 341, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 341, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 341, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 341, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 341, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 341, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 341, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 341, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 341, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 341, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 341, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 341, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 341, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 343, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 343, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 343, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 343, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 343, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 343, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 343, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 343, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 343, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 343, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 343, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 343, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 343, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 343, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 343, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 343, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 343, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 343, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 343, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 343, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 343, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 343, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 343, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 343, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 344, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 344, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 344, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 344, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 344, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 344, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 344, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 344, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 344, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 344, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 344, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 344, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 344, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 344, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 344, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 344, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 344, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 344, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 344, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 344, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 344, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 344, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 344, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 344, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 345, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 345, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 345, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 345, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 345, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 345, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 345, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 345, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 345, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 345, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 345, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 345, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 345, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 345, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 345, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 345, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 345, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 345, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 345, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 345, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 345, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 345, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 345, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 345, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 346, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 346, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 346, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 346, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 346, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 346, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 346, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 346, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 346, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 346, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 346, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 346, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 346, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 346, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 346, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 346, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 346, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 346, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 346, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (9, 1, 346, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 347, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 347, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 347, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 347, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (42, 1, 347, '2020-05-01', '2020-05-30', 3, 8, 11, 22052.14, 22.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (41, 1, 347, '2020-05-01', '2020-05-31', 0, 8, 11, 22052.14, 22.00, 0.00, 'samik', '2020-09-15', 'samik', '2020-09-15'), (40, 1, 347, '2020-05-01', '2020-05-31', 3, 7, 11, 21904.76, 22.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (43, 1, 347, '2020-05-01', '2020-05-31', 3, 9, 11, 22477.14, 22.00, 0.00, 'samik', '2020-09-15', NULL, NULL); INSERT INTO `mm_sale_rate` (`bulk_id`, `fin_id`, `district`, `frm_dt`, `to_dt`, `comp_id`, `catg_id`, `prod_id`, `sp_mt`, `sp_bag`, `sp_govt`, `created_by`, `created_dt`, `modified_by`, `modified_dt`) VALUES (37, 1, 347, '2020-05-01', '2020-05-31', 3, 7, 20, 16761.90, 335.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (38, 1, 347, '2020-05-01', '2020-05-31', 3, 8, 20, 16857.14, 337.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (39, 1, 347, '2020-05-01', '2020-05-31', 3, 9, 20, 17295.24, 346.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (32, 1, 347, '2020-05-01', '2020-05-31', 3, 7, 33, 17041.43, 341.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (31, 1, 347, '2020-05-01', '2020-05-31', 3, 8, 33, 17241.43, 345.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (33, 1, 347, '2020-05-01', '2020-05-31', 3, 9, 33, 17691.43, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (34, 1, 347, '2020-05-01', '2020-05-31', 3, 7, 43, 17636.67, 353.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (35, 1, 347, '2020-05-01', '2020-05-31', 3, 8, 43, 17836.67, 357.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (36, 1, 347, '2020-05-01', '2020-05-31', 3, 9, 43, 18286.67, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 347, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 347, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 347, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 347, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 347, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 347, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (44, 1, 347, '2020-05-01', '2020-05-31', 3, 7, 91, 5061.21, 112.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (45, 1, 347, '2020-05-01', '2020-05-31', 3, 8, 91, 5111.21, 114.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 347, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (4, 1, 347, '2020-06-01', '2020-06-30', 3, 7, 33, 17041.43, 341.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (6, 1, 347, '2020-06-01', '2020-06-30', 3, 7, 43, 17636.67, 353.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 347, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (2, 1, 347, '2020-08-01', '2020-08-31', 3, 7, 11, 21523.80, 21524.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (1, 1, 347, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 347, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 347, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 347, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 347, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 347, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 347, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 347, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 347, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 347, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 347, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 347, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (21, 1, 348, '2020-04-01', '2020-04-30', 3, 10, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (23, 1, 348, '2020-04-01', '2020-04-30', 3, 20, 54, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (20, 1, 348, '2020-04-01', '2020-04-30', 3, 10, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (22, 1, 348, '2020-04-01', '2020-04-30', 3, 20, 55, 6691.43, 134.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (27, 1, 348, '2020-05-01', '2020-05-31', 3, 7, 54, 7453.33, 149.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (29, 1, 348, '2020-05-01', '2020-05-31', 3, 8, 54, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (25, 1, 348, '2020-05-01', '2020-05-31', 3, 10, 54, 8024.76, 160.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (26, 1, 348, '2020-05-01', '2020-05-31', 3, 7, 55, 6977.14, 140.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (28, 1, 348, '2020-05-01', '2020-05-31', 3, 8, 55, 7072.38, 141.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (24, 1, 348, '2020-05-01', '2020-05-31', 3, 10, 55, 7548.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (3, 1, 348, '2020-05-16', '2020-05-31', 3, 7, 20, 15636.67, 313.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (5, 1, 348, '2020-06-01', '2020-06-30', 3, 8, 60, 6591.43, 132.00, 0.00, 'samik', '2020-09-10', NULL, NULL), (1, 1, 348, '2020-08-01', '2020-08-31', 4, 15, 27, 22285.71, 446.00, 0.00, 'synergic', '2020-09-09', NULL, NULL), (17, 1, 348, '2020-09-01', '2020-09-30', 4, 15, 8, 23047.62, 461.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (19, 1, 348, '2020-09-01', '2020-09-30', 4, 17, 12, 21904.76, 438.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (18, 1, 348, '2020-09-01', '2020-09-30', 4, 15, 13, 22476.19, 450.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (11, 1, 348, '2020-09-01', '2020-09-30', 4, 15, 27, 22571.43, 451.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (10, 1, 348, '2020-09-01', '2020-09-30', 4, 17, 29, 21619.05, 432.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (12, 1, 348, '2020-09-01', '2020-09-30', 4, 15, 32, 23238.10, 465.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (14, 1, 348, '2020-09-01', '2020-09-30', 4, 15, 35, 23809.52, 476.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (16, 1, 348, '2020-09-01', '2020-09-30', 4, 17, 36, 18285.71, 366.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (15, 1, 348, '2020-09-01', '2020-09-30', 4, 15, 37, 16952.38, 339.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (13, 1, 348, '2020-09-01', '2020-09-30', 4, 15, 46, 17714.29, 354.00, 0.00, 'samik', '2020-09-15', NULL, NULL), (8, 1, 348, '2020-09-01', '2020-09-30', 6, 13, 106, 7553.57, 151.00, 0.00, 'samik', '2020-09-15', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `mm_unit` -- CREATE TABLE `mm_unit` ( `id` int(5) NOT NULL, `unit_name` varchar(100) NOT NULL, `created_by` varchar(50) DEFAULT NULL, `created_dt` datetime DEFAULT NULL, `modified_by` varchar(50) DEFAULT NULL, `modified_dt` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `mm_unit` -- INSERT INTO `mm_unit` (`id`, `unit_name`, `created_by`, `created_dt`, `modified_by`, `modified_dt`) VALUES (1, 'MT', 'synergic', '2020-03-06 00:00:00', 'synergic', '2020-03-06 00:00:00'), (2, 'Kg', 'synergic', '2020-03-06 00:00:00', '', '2020-03-06 00:00:00'), (3, 'Litre', 'synergic', '2020-03-06 00:00:00', 'synergic', '2020-03-18 00:00:00'), (4, 'Quintal', 'synergic', '2020-03-18 00:00:00', '', '2020-03-06 00:00:00'), (5, 'ML', 'synergic', '2020-09-09 10:20:49', NULL, NULL), (6, 'Gm', 'synergic', '2020-09-09 10:21:58', 'synergic', '2020-09-09 10:22:10'); -- -------------------------------------------------------- -- -- Table structure for table `tdf_advance` -- CREATE TABLE `tdf_advance` ( `trans_dt` date NOT NULL, `sl_no` int(5) NOT NULL, `receipt_no` varchar(50) NOT NULL, `fin_yr` int(5) NOT NULL, `branch_id` int(10) NOT NULL, `soc_id` int(10) NOT NULL, `trans_type` enum('I','O') NOT NULL, `adv_amt` decimal(10,0) NOT NULL DEFAULT '0', `inv_no` varchar(50) DEFAULT NULL, `ro_no` varchar(30) DEFAULT NULL, `remarks` text, `created_by` varchar(50) DEFAULT NULL, `created_dt` datetime DEFAULT NULL, `modifed_by` varchar(50) DEFAULT NULL, `modifed_dt` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tdf_company_advance` -- CREATE TABLE `tdf_company_advance` ( `trans_dt` date NOT NULL, `sl_no` int(5) NOT NULL, `receipt_no` varchar(50) CHARACTER SET latin1 NOT NULL, `fin_yr` int(5) NOT NULL, `branch_id` int(10) NOT NULL, `comp_id` int(10) NOT NULL, `trans_type` enum('I','O') CHARACTER SET latin1 NOT NULL, `adv_amt` decimal(10,0) NOT NULL DEFAULT '0', `inv_no` varchar(50) CHARACTER SET latin1 DEFAULT NULL, `ro_no` varchar(30) CHARACTER SET latin1 DEFAULT NULL, `remarks` text CHARACTER SET latin1, `created_by` varchar(50) CHARACTER SET latin1 DEFAULT NULL, `created_dt` datetime DEFAULT NULL, `modifed_by` varchar(50) CHARACTER SET latin1 DEFAULT NULL, `modifed_dt` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `tdf_company_payment` -- CREATE TABLE `tdf_company_payment` ( `sl_no` int(11) NOT NULL, `pay_no` varchar(50) NOT NULL, `pay_dt` datetime NOT NULL, `district` int(10) NOT NULL, `comp_id` int(10) NOT NULL, `prod_id` int(10) NOT NULL, `qty` decimal(20,2) NOT NULL, `sale_inv_no` varchar(50) NOT NULL, `pur_ro` varchar(20) NOT NULL, `pur_inv_no` varchar(20) NOT NULL, `purchase_rt` decimal(20,2) NOT NULL, `bnk_id` int(10) NOT NULL, `pay_mode` int(5) NOT NULL, `paid_amt` decimal(20,2) NOT NULL, `ref_no` varchar(20) DEFAULT NULL, `ref_dt` date DEFAULT NULL, `bnk_ac_no` varchar(20) NOT NULL, `ifsc` varchar(20) NOT NULL, `virtual_ac` varchar(20) DEFAULT NULL, `remarks` varchar(30) DEFAULT NULL, `fin_yr` int(10) NOT NULL, `created_by` varchar(20) NOT NULL, `created_dt` datetime NOT NULL, `modified_by` varchar(20) NOT NULL, `modified_dt` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `tdf_dr_cr_note` -- CREATE TABLE `tdf_dr_cr_note` ( `trans_dt` date NOT NULL, `trans_no` int(10) NOT NULL, `recpt_no` varchar(50) NOT NULL, `soc_id` int(10) NOT NULL DEFAULT '0', `comp_id` int(10) NOT NULL, `invoice_no` varchar(50) DEFAULT NULL, `ro` varchar(30) DEFAULT NULL, `catg` int(5) DEFAULT NULL, `tot_amt` decimal(10,2) NOT NULL DEFAULT '0.00', `trans_flag` enum('R','A') NOT NULL, `note_type` enum('D','C') NOT NULL, `branch_id` int(5) NOT NULL, `fin_yr` int(5) NOT NULL, `remarks` text NOT NULL, `created_by` varchar(30) DEFAULT NULL, `created_dt` datetime DEFAULT NULL, `modified_by` varchar(20) DEFAULT NULL, `modified_dt` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `tdf_payment_recv` -- CREATE TABLE `tdf_payment_recv` ( `sl_no` int(10) NOT NULL, `paid_id` varchar(50) NOT NULL, `paid_dt` date NOT NULL, `soc_id` int(10) NOT NULL, `sale_invoice_no` varchar(50) NOT NULL, `sale_invoice_dt` datetime NOT NULL, `ro_no` varchar(20) NOT NULL, `pay_type` varchar(10) NOT NULL, `ref_no` varchar(20) DEFAULT NULL, `ref_dt` date NOT NULL, `bnk_id` int(5) NOT NULL, `tot_recvble_amt` decimal(10,2) NOT NULL, `adj_dr_note_amt` decimal(10,2) NOT NULL, `adj_adv_amt` decimal(10,2) NOT NULL, `net_recvble_amt` decimal(10,2) NOT NULL, `paid_amt` decimal(10,2) NOT NULL, `created_by` varchar(20) NOT NULL, `created_dt` datetime NOT NULL, `modified_by` varchar(20) NOT NULL, `modified_dt` datetime NOT NULL, `branch_id` int(10) NOT NULL, `fin_yr` int(10) NOT NULL, `remarks` varchar(50) NOT NULL, `approval_status` enum('U','A') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Triggers `tdf_payment_recv` -- DELIMITER $$ CREATE TRIGGER `ad_tdf_py_recv` AFTER DELETE ON `tdf_payment_recv` FOR EACH ROW update td_sale set paid_amt=paid_amt - old.paid_amt where trans_do=old.sale_invoice_no and sale_ro=old.ro_no $$ DELIMITER ; DELIMITER $$ CREATE TRIGGER `ai_td_tdf_py_recv` AFTER INSERT ON `tdf_payment_recv` FOR EACH ROW BEGIN update td_sale set paid_amt=paid_amt + new.paid_amt where trans_do=new.sale_invoice_no and sale_ro=new.ro_no; /*SET @district=(SELECT br_cd FROM td_sale WHERE trans_do=new.sale_invoice_no AND SALE_RO=new.ro_no); SET @qty= (SELECT sum(QTY) FROM td_sale WHERE trans_do=new.sale_invoice_no AND SALE_RO=new.ro_no); set @rate=(SELECT rate FROM td_purchase WHERE ro_no=new.ro_no); set @prod_id=(SELECT prod_id FROM td_purchase WHERE ro_no=new.ro_no); set @comp_id=(SELECT comp_id FROM td_purchase WHERE ro_no=new.ro_no); set @invoice_no=(SELECT invoice_no FROM td_purchase WHERE ro_no=new.ro_no); INSERT INTO tdf_company_payment (comp_id,district,prod_id,qty,sale_inv_no,pur_inv_no,pur_ro,purchase_rt) values(@comp_id,@district,@prod_id,@qty,new.sale_invoice_no,@invoice_no,new.ro_no,@rate); */ END $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `tdf_stock_point_log` -- CREATE TABLE `tdf_stock_point_log` ( `sl_no` int(10) NOT NULL, `trans_dt` date NOT NULL, `dist` int(10) NOT NULL, `soc_id` int(10) NOT NULL, `status` enum('Y','N') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tdf_stock_point_log` -- INSERT INTO `tdf_stock_point_log` (`sl_no`, `trans_dt`, `dist`, `soc_id`, `status`) VALUES (1, '2020-09-16', 337, 1, 'Y'), (2, '2020-09-16', 337, 2, 'Y'), (3, '2020-09-16', 337, 3, 'Y'), (4, '2020-09-16', 337, 4, 'Y'), (5, '2020-09-16', 337, 5, 'Y'), (6, '2020-09-16', 337, 6, 'Y'), (7, '2020-09-16', 337, 7, 'Y'), (8, '2020-09-16', 337, 8, 'Y'), (9, '2020-09-16', 337, 9, 'Y'), (10, '2020-09-16', 337, 10, 'Y'), (11, '2020-09-16', 337, 12, 'Y'), (12, '2020-09-16', 337, 13, 'Y'), (13, '2020-09-16', 337, 19, 'Y'), (14, '2020-09-16', 337, 20, 'Y'), (15, '2020-09-16', 329, 23, 'Y'), (16, '2020-09-16', 329, 24, 'Y'), (17, '2020-09-16', 329, 27, 'Y'), (18, '2020-09-16', 329, 29, 'Y'), (19, '2020-09-16', 329, 30, 'Y'), (20, '2020-09-16', 329, 33, 'Y'), (21, '2020-09-16', 329, 339, 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `tdf_stock_point_trans` -- CREATE TABLE `tdf_stock_point_trans` ( `trans_dt` date NOT NULL, `ro_inv_no` varchar(30) NOT NULL, `branch_id` int(10) NOT NULL, `fin_yr` int(5) NOT NULL, `point_id` int(10) NOT NULL, `trans_type` enum('I','O','R') NOT NULL, `unit` int(5) NOT NULL, `quantity` decimal(10,0) NOT NULL DEFAULT '0', `created_by` varchar(50) DEFAULT NULL, `created_dt` datetime DEFAULT NULL, `modified_by` varchar(50) DEFAULT NULL, `modified_dt` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `td_purchase` -- CREATE TABLE `td_purchase` ( `trans_cd` int(10) NOT NULL, `trans_dt` date NOT NULL, `trans_flag` enum('1','2') DEFAULT NULL, `comp_id` int(10) NOT NULL, `prod_id` int(10) NOT NULL, `ro_no` varchar(30) NOT NULL, `ro_dt` date DEFAULT NULL, `invoice_no` varchar(30) DEFAULT NULL, `invoice_dt` date DEFAULT NULL, `due_dt` date DEFAULT NULL, `qty` decimal(20,3) NOT NULL DEFAULT '0.000', `unit` int(10) NOT NULL, `stock_qty` decimal(10,3) NOT NULL DEFAULT '0.000', `no_of_bags` int(10) NOT NULL DEFAULT '0', `delivery_mode` enum('1','2','3') NOT NULL, `reck_pt_rt` decimal(10,2) NOT NULL DEFAULT '0.00', `reck_pt_n_rt` decimal(10,2) NOT NULL DEFAULT '0.00', `govt_sale_rt` decimal(10,2) NOT NULL DEFAULT '0.00', `iffco_buf_rt` decimal(10,2) NOT NULL DEFAULT '0.00', `iffco_n_buff_rt` decimal(10,2) NOT NULL DEFAULT '0.00', `challan_flag` varchar(5) NOT NULL DEFAULT 'N', `rate` decimal(10,2) NOT NULL DEFAULT '0.00', `base_price` decimal(10,2) NOT NULL DEFAULT '0.00', `cgst` decimal(10,2) NOT NULL DEFAULT '0.00', `sgst` decimal(10,2) NOT NULL DEFAULT '0.00', `retlr_margin` decimal(10,2) NOT NULL DEFAULT '0.00', `spl_rebt` decimal(10,2) NOT NULL DEFAULT '0.00', `rbt_add` decimal(10,2) NOT NULL DEFAULT '0.00', `rbt_less` decimal(10,2) NOT NULL DEFAULT '0.00', `rnd_of_add` decimal(10,2) NOT NULL DEFAULT '0.00', `rnd_of_less` decimal(10,2) NOT NULL DEFAULT '0.00', `tot_amt` decimal(10,2) NOT NULL DEFAULT '0.00', `net_amt` decimal(10,2) NOT NULL DEFAULT '0.00', `add_adj_amt` decimal(10,2) NOT NULL DEFAULT '0.00', `less_adj_amt` decimal(10,2) NOT NULL DEFAULT '0.00', `created_by` varchar(30) DEFAULT NULL, `created_dt` date DEFAULT NULL, `modified_by` varchar(30) DEFAULT NULL, `modified_dt` date DEFAULT NULL, `br` int(11) DEFAULT NULL, `fin_yr` varchar(20) DEFAULT NULL, `stock_point` int(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `td_purchase` -- INSERT INTO `td_purchase` (`trans_cd`, `trans_dt`, `trans_flag`, `comp_id`, `prod_id`, `ro_no`, `ro_dt`, `invoice_no`, `invoice_dt`, `due_dt`, `qty`, `unit`, `stock_qty`, `no_of_bags`, `delivery_mode`, `reck_pt_rt`, `reck_pt_n_rt`, `govt_sale_rt`, `iffco_buf_rt`, `iffco_n_buff_rt`, `challan_flag`, `rate`, `base_price`, `cgst`, `sgst`, `retlr_margin`, `spl_rebt`, `rbt_add`, `rbt_less`, `rnd_of_add`, `rnd_of_less`, `tot_amt`, `net_amt`, `add_adj_amt`, `less_adj_amt`, `created_by`, `created_dt`, `modified_by`, `modified_dt`, `br`, `fin_yr`, `stock_point`) VALUES (49, '2020-04-01', '2', 2, 119, '191103827', '2015-03-20', NULL, NULL, NULL, 2.050, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 20), (50, '2020-04-01', '2', 1, 86, '220094 ', '2000-09-14', NULL, NULL, NULL, 20.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 19), (44, '2020-04-01', '2', 1, 116, '240019', '2030-04-15', NULL, NULL, NULL, 45.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 19), (46, '2020-04-01', '2', 1, 118, '251002', '2008-09-11', NULL, NULL, NULL, 0.080, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 20), (45, '2020-04-01', '2', 1, 117, '253002', '2029-10-13', NULL, NULL, NULL, 0.399, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 20), (34, '2020-04-01', '2', 1, 86, '260012', '2015-05-25', NULL, NULL, NULL, 45.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 3), (33, '2020-04-01', '2', 1, 86, '260014', '2029-05-15', NULL, NULL, NULL, 30.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 12), (36, '2020-04-01', '2', 1, 115, '260060', '2030-07-16', NULL, NULL, NULL, 50.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (41, '2020-04-01', '2', 1, 115, '260063', '2030-07-16', NULL, NULL, NULL, 100.000, 1, 100.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (34, '2020-04-01', '2', 1, 86, '260072', '2030-07-16', NULL, NULL, NULL, 110.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 8), (38, '2020-04-01', '2', 1, 115, '260109', '2016-08-31', NULL, NULL, NULL, 30.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (37, '2020-04-01', '2', 1, 115, '260114', '2016-08-31', NULL, NULL, NULL, 15.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (39, '2020-04-01', '2', 1, 115, '260192', '2030-09-16', NULL, NULL, NULL, 55.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (35, '2020-04-01', '2', 1, 86, '260261', '2030-11-16', NULL, NULL, NULL, 75.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 8), (40, '2020-04-01', '2', 1, 115, '260267', '2030-11-16', NULL, NULL, NULL, 30.000, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (42, '2020-04-01', '2', 1, 115, '260318', '2030-12-16', NULL, NULL, NULL, 120.000, 1, 120.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (31, '2020-04-01', '2', 1, 120, '260443', '2031-01-17', NULL, NULL, NULL, 0.100, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (29, '2020-04-01', '2', 1, 120, '260548', '2031-03-17', NULL, NULL, NULL, 95.400, 1, 0.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (43, '2020-04-01', '2', 1, 115, '260550', '2031-03-17', NULL, NULL, NULL, 35.000, 1, 35.000, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 6), (48, '2020-04-01', '2', 3, 43, '46802', '2031-03-12', NULL, NULL, NULL, 46.500, 1, 46.500, 0, '1', 0.00, 0.00, 0.00, 0.00, 0.00, 'N', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 337, '1', 20); -- -------------------------------------------------------- -- -- Table structure for table `td_sale` -- CREATE TABLE `td_sale` ( `trans_do` varchar(50) NOT NULL, `trans_no` int(10) NOT NULL, `do_dt` date NOT NULL, `sale_due_dt` date DEFAULT NULL, `trans_type` varchar(15) NOT NULL, `soc_id` int(10) NOT NULL, `comp_id` int(10) NOT NULL, `sale_ro` varchar(15) NOT NULL, `prod_id` int(10) NOT NULL, `stock_point` varchar(50) NOT NULL, `gov_sale_rt` enum('Y','N') NOT NULL, `qty` decimal(10,3) NOT NULL DEFAULT '0.000', `sale_rt` decimal(10,2) NOT NULL DEFAULT '0.00', `base_price` decimal(10,2) NOT NULL DEFAULT '0.00', `taxable_amt` decimal(10,2) NOT NULL DEFAULT '0.00', `cgst` decimal(10,2) NOT NULL DEFAULT '0.00', `sgst` decimal(10,2) NOT NULL DEFAULT '0.00', `dis` decimal(10,2) NOT NULL DEFAULT '0.00', `tot_amt` decimal(10,2) NOT NULL DEFAULT '0.00', `paid_amt` decimal(20,2) NOT NULL, `created_by` varchar(30) DEFAULT NULL, `created_dt` date DEFAULT NULL, `modified_by` varchar(30) DEFAULT NULL, `modified_dt` date DEFAULT NULL, `br_cd` int(10) DEFAULT NULL, `fin_yr` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Indexes for dumped tables -- -- -- Indexes for table `mm_category` -- ALTER TABLE `mm_category` ADD PRIMARY KEY (`sl_no`); -- -- Indexes for table `mm_company_dtls` -- ALTER TABLE `mm_company_dtls` ADD PRIMARY KEY (`COMP_ID`); -- -- Indexes for table `mm_cr_note_category` -- ALTER TABLE `mm_cr_note_category` ADD PRIMARY KEY (`sl_no`); -- -- Indexes for table `mm_feri_bank` -- ALTER TABLE `mm_feri_bank` ADD PRIMARY KEY (`sl_no`); -- -- Indexes for table `mm_ferti_soc` -- ALTER TABLE `mm_ferti_soc` ADD PRIMARY KEY (`soc_id`); -- -- Indexes for table `mm_product` -- ALTER TABLE `mm_product` ADD PRIMARY KEY (`PROD_ID`); -- -- Indexes for table `mm_sale_rate` -- ALTER TABLE `mm_sale_rate` ADD PRIMARY KEY (`district`,`frm_dt`,`to_dt`,`comp_id`,`prod_id`,`catg_id`) USING BTREE; -- -- Indexes for table `mm_unit` -- ALTER TABLE `mm_unit` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tdf_advance` -- ALTER TABLE `tdf_advance` ADD PRIMARY KEY (`trans_dt`,`sl_no`) USING BTREE; -- -- Indexes for table `tdf_company_advance` -- ALTER TABLE `tdf_company_advance` ADD PRIMARY KEY (`trans_dt`,`receipt_no`); -- -- Indexes for table `tdf_company_payment` -- ALTER TABLE `tdf_company_payment` ADD PRIMARY KEY (`sl_no`); -- -- Indexes for table `tdf_dr_cr_note` -- ALTER TABLE `tdf_dr_cr_note` ADD PRIMARY KEY (`trans_dt`,`trans_no`) USING BTREE; -- -- Indexes for table `tdf_payment_recv` -- ALTER TABLE `tdf_payment_recv` ADD PRIMARY KEY (`paid_id`,`paid_dt`,`soc_id`,`pay_type`,`paid_amt`); -- -- Indexes for table `tdf_stock_point_log` -- ALTER TABLE `tdf_stock_point_log` ADD PRIMARY KEY (`sl_no`); -- -- Indexes for table `tdf_stock_point_trans` -- ALTER TABLE `tdf_stock_point_trans` ADD PRIMARY KEY (`trans_dt`,`ro_inv_no`); -- -- Indexes for table `td_purchase` -- ALTER TABLE `td_purchase` ADD PRIMARY KEY (`ro_no`,`comp_id`), ADD KEY `trans_cd` (`trans_cd`); -- -- Indexes for table `td_sale` -- ALTER TABLE `td_sale` ADD PRIMARY KEY (`trans_do`,`do_dt`,`sale_ro`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `mm_category` -- ALTER TABLE `mm_category` MODIFY `sl_no` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `mm_cr_note_category` -- ALTER TABLE `mm_cr_note_category` MODIFY `sl_no` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `mm_feri_bank` -- ALTER TABLE `mm_feri_bank` MODIFY `sl_no` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `mm_product` -- ALTER TABLE `mm_product` MODIFY `PROD_ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=121; -- -- AUTO_INCREMENT for table `mm_unit` -- ALTER TABLE `mm_unit` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `tdf_company_payment` -- ALTER TABLE `tdf_company_payment` MODIFY `sl_no` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `tdf_stock_point_log` -- ALTER TABLE `tdf_stock_point_log` MODIFY `sl_no` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `td_purchase` -- ALTER TABLE `td_purchase` MODIFY `trans_cd` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53; 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 */;
73.663272
565
0.581627
7bcd818ab70222373d5c1ced593ca6fe4c2e6054
127
ps1
PowerShell
SecretsManagementExtension/classes/01-init.ps1
JPRuskin/PS.SecretsManagement.LastPass
f58e1afcf83ccc33859f261f2f1a0d7339ec161e
[ "MIT" ]
1
2020-11-18T16:37:52.000Z
2020-11-18T16:37:52.000Z
SecretsManagementExtension/classes/01-init.ps1
JPRuskin/PS.SecretsManagement.LastPass
f58e1afcf83ccc33859f261f2f1a0d7339ec161e
[ "MIT" ]
null
null
null
SecretsManagementExtension/classes/01-init.ps1
JPRuskin/PS.SecretsManagement.LastPass
f58e1afcf83ccc33859f261f2f1a0d7339ec161e
[ "MIT" ]
null
null
null
$BasicEncoding = [System.Text.Encoding]::GetEncoding("iso-8859-1") $TextEncoding = [System.Text.Encoding]::GetEncoding("UTF-8")
63.5
66
0.748031
5068885f321a0f395a18a1ef91a1b1a33fdf0941
1,026
lua
Lua
server/lualib/agent/handler.lua
yangxuan0261/Testmmo-cli
51010a3148d48488321a9da3c885e36b34c46132
[ "MIT" ]
null
null
null
server/lualib/agent/handler.lua
yangxuan0261/Testmmo-cli
51010a3148d48488321a9da3c885e36b34c46132
[ "MIT" ]
null
null
null
server/lualib/agent/handler.lua
yangxuan0261/Testmmo-cli
51010a3148d48488321a9da3c885e36b34c46132
[ "MIT" ]
null
null
null
-- agent所有handler的父类 local syslog = require "syslog" local handler = {} local mt = { __index = handler } function handler.new (rpc, cmd) return setmetatable ({ init_func = {}, rpc = rpc, cmd = cmd, }, mt) end function handler:init (f) table.insert (self.init_func, f) end local function merge (dest, t) -- 复制表元素 if not dest or not t then return end for k, v in pairs (t) do dest[k] = v end end local function merge_safe (dest, t) -- 复制表元素,并检查 if not dest or not t then return end for k, v in pairs (t) do assert(dest[k] == nil, string.format("handler 有个方法重名:%s", k)) dest[k] = v end end function handler:register (user) for _, f in pairs (self.init_func) do f (user) end merge_safe (user.RPC, self.rpc) merge_safe (user.CMD, self.cmd) end local function clean (dest, t) if not dest or not t then return end for k, _ in pairs (t) do dest[k] = nil end end function handler:unregister (user) clean (user.RPC, self.rpc) clean (user.CMD, self.cmd) end return handler
18.654545
69
0.663743
861ff709d12862c88caee11e58968b6fb6d0e7ec
3,164
swift
Swift
Sources/XHTML/Elements/InputElement.swift
YOCKOW/SwiftXHTML
74b871ea4fcf61dec577408462b2a317a484270c
[ "MIT" ]
null
null
null
Sources/XHTML/Elements/InputElement.swift
YOCKOW/SwiftXHTML
74b871ea4fcf61dec577408462b2a317a484270c
[ "MIT" ]
1
2021-02-16T08:19:07.000Z
2021-02-16T08:40:59.000Z
Sources/XHTML/Elements/InputElement.swift
YOCKOW/SwiftXHTML
74b871ea4fcf61dec577408462b2a317a484270c
[ "MIT" ]
null
null
null
/* ************************************************************************************************* InputElement.swift © 2019 YOCKOW. Licensed under MIT License. See "LICENSE.txt" for more information. ************************************************************************************************ */ open class InputElement: PerpetuallyEmptyElement { public override class final var localName: NoncolonizedName { return "input" } public enum TypeValue: String { case button case checkbox case color case date case dateAndTime = "datetime" case email case file case hidden case image case localDateAndTime = "datetime-local" case month case number case password case radio case range case reset case search case submit case telephone = "tel" case text case time case url case week } open var autocomplete: Bool { get { return self.attributes["autocomplete"] == "off" ? false : true } set { self.attributes["autocomplete"] = newValue ? "on" : "off" } } open var autofocus: Bool { get { return self.attributes["autofocus"] == "autofocus" ? true : false } set { self.attributes["autofocus"] = newValue ? "autofocus" : nil } } open var isChecked: Bool { get { return self.attributes["checked"] == "checked" ? true : false } set { self.attributes["checked"] = newValue ? "checked" : nil } } open var isDisabled: Bool { get { return self.attributes["disabled"] == "disabled" ? true : false } set { self.attributes["disabled"] = newValue ? "disabled" : nil } } open var isRequired: Bool { get { return self.attributes["required"] == "required" ? true : false } set { self.attributes["required"] = newValue ? "required" : nil } } open var nameAttribute: String? { get { return self.attributes["name"] } set { self.attributes["name"] = newValue } } open var type: TypeValue { get { guard let value = self.attributes["type"].flatMap(TypeValue.init(rawValue:)) else { fatalError("Unsupported type.") } return value } set { self.attributes["type"] = newValue.rawValue } } open var value: String? { get { return self.attributes["value"] } set { self.attributes["value"] = newValue } } public required init(name: QualifiedName, attributes: Attributes = [:], children: [Node] = []) throws { try super.init(name: name, attributes: attributes, children: children) } public convenience init(xhtmlPrefix: QualifiedName.Prefix = .none, type:TypeValue, nameAttribute:String?, value:String?, attributes: Attributes = [:]) throws { try self.init(name: QualifiedName(prefix: xhtmlPrefix, localName: Swift.type(of: self).localName), attributes:attributes) self.type = type self.nameAttribute = nameAttribute self.value = value } }
24.913386
125
0.554678
56a24585ce72a5d09f99bb2544959775c5ee35a7
588
go
Go
util/assert/_example/example_test.go
sniperkit/snk.fork.corestoreio-pkg
3411558ebd72429134255437e680e2f0e5395d48
[ "Apache-2.0" ]
null
null
null
util/assert/_example/example_test.go
sniperkit/snk.fork.corestoreio-pkg
3411558ebd72429134255437e680e2f0e5395d48
[ "Apache-2.0" ]
null
null
null
util/assert/_example/example_test.go
sniperkit/snk.fork.corestoreio-pkg
3411558ebd72429134255437e680e2f0e5395d48
[ "Apache-2.0" ]
null
null
null
/* Sniperkit-Bot - Status: analyzed */ package example import ( "testing" "github.com/sniperkit/snk.fork.corestoreio-pkg/util/assert" ) type Person struct { Name string Age int } func TestDiff(t *testing.T) { expected := []*Person{{"Alec", 20}, {"Bob", 21}, {"Sally", 22}} actual := []*Person{{"Alex", 20}, {"Bob", 22}, {"Sally", 22}} assert.Equal(t, expected, actual) } func TestStretchrDiff(t *testing.T) { expected := []*Person{{"Alec", 20}, {"Bob", 21}, {"Sally", 22}} actual := []*Person{{"Alex", 20}, {"Bob", 22}, {"Sally", 22}} assert.Equal(t, expected, actual) }
19.6
64
0.612245
f81ac3e6b7bf6607303c42337e036409df2d79e6
903
lua
Lua
src/StarterPlayer/StarterPlayerScripts/contents/coreRenderServices/init.lua
jordytje1/vesteria
b31879b4fb035d47ed88657481e77ffbeea04be4
[ "Apache-2.0" ]
91
2020-10-28T23:25:05.000Z
2022-03-20T23:01:32.000Z
src/StarterPlayer/StarterPlayerScripts/contents/coreRenderServices/init.lua
jordytje1/vesteria
b31879b4fb035d47ed88657481e77ffbeea04be4
[ "Apache-2.0" ]
null
null
null
src/StarterPlayer/StarterPlayerScripts/contents/coreRenderServices/init.lua
jordytje1/vesteria
b31879b4fb035d47ed88657481e77ffbeea04be4
[ "Apache-2.0" ]
32
2020-10-29T00:03:51.000Z
2022-03-30T00:48:42.000Z
local Container = {} do for _, service in pairs(script:GetChildren()) do local success, contents = pcall(function() local module = require(service) if type(module) == "table" and module.init then --module:init() end; return module end) if success then Container[service.Name] = contents else warn("DEBUG:", service.Name, "has failed to load, [Error Message]: \n"..contents) end; end; end; function Container:Hook(tab, mod) return setmetatable(tab, Container[mod]) end; return function(key) if not Container[key] then local iterations = 0 repeat wait(1) iterations = iterations + 1 until Container[key] or iterations > 10 return Container[key] else return Container[key] end; end;
23.763158
93
0.563677
f0226c6808c08f2703acc1926c1c5db646216b9a
1,645
js
JavaScript
platforms/android/platform_www/cordova_plugins.js
deemanthaMediajogger/gyApp
4d88a3e0abadc4cd15c1f8bfc36fe6abac9276bb
[ "Apache-2.0" ]
null
null
null
platforms/android/platform_www/cordova_plugins.js
deemanthaMediajogger/gyApp
4d88a3e0abadc4cd15c1f8bfc36fe6abac9276bb
[ "Apache-2.0" ]
null
null
null
platforms/android/platform_www/cordova_plugins.js
deemanthaMediajogger/gyApp
4d88a3e0abadc4cd15c1f8bfc36fe6abac9276bb
[ "Apache-2.0" ]
null
null
null
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "id": "cordova-plugin-device.device", "file": "plugins/cordova-plugin-device/www/device.js", "pluginId": "cordova-plugin-device", "clobbers": [ "device" ] }, { "id": "cordova-plugin-inappbrowser.inappbrowser", "file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js", "pluginId": "cordova-plugin-inappbrowser", "clobbers": [ "cordova.InAppBrowser.open", "window.open" ] }, { "id": "cordova-plugin-ionic-wkkeyboard.keyboard", "file": "plugins/cordova-plugin-ionic-wkkeyboard/www/keyboard.js", "pluginId": "cordova-plugin-ionic-wkkeyboard", "clobbers": [ "window.Keyboard" ] }, { "id": "cordova-plugin-splashscreen.SplashScreen", "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js", "pluginId": "cordova-plugin-splashscreen", "clobbers": [ "navigator.splashscreen" ] }, { "id": "cordova-plugin-statusbar.statusbar", "file": "plugins/cordova-plugin-statusbar/www/statusbar.js", "pluginId": "cordova-plugin-statusbar", "clobbers": [ "window.StatusBar" ] } ]; module.exports.metadata = // TOP OF METADATA { "cordova-plugin-crosswalk-webview": "2.3.0", "cordova-plugin-device": "1.1.6", "cordova-plugin-inappbrowser": "1.7.1", "cordova-plugin-ionic-webview": "1.1.15", "cordova-plugin-ionic-wkkeyboard": "1.1.11", "cordova-plugin-splashscreen": "4.0.3", "cordova-plugin-statusbar": "2.2.4-dev", "cordova-plugin-whitelist": "1.3.2" }; // BOTTOM OF METADATA });
28.362069
74
0.641945
9d1a97f18a9aca8ffee5565128b9b4d25398c1ae
11,081
html
HTML
src/public/html/help.html
agepoly/Wish
bb3e37d8007870edb794181ab764f1a76d9bca5a
[ "MIT" ]
1
2016-09-30T13:47:24.000Z
2016-09-30T13:47:24.000Z
src/public/html/help.html
agepoly/Wish
bb3e37d8007870edb794181ab764f1a76d9bca5a
[ "MIT" ]
36
2016-10-20T12:26:27.000Z
2020-01-07T17:45:29.000Z
src/public/html/help.html
agepoly/Wish
bb3e37d8007870edb794181ab764f1a76d9bca5a
[ "MIT" ]
3
2016-11-10T10:09:53.000Z
2021-08-31T19:07:55.000Z
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="utf-8"> <title>Wish</title> <link rel="stylesheet" type="text/css" href="/css/lib/normalize.css"> <link rel="stylesheet" type="text/css" href="/css/lib/skeleton.css"> <link rel="stylesheet" type="text/css" href="/css/style.css"> </head> <body> <div class="container"> <h1 style="text-align: center">Help</h1> <h2> What does Wish do? </h2> <h3>Aim of the algorithm</h3> <p>The algorithm takes as input a matrix whose lines are the users and whose columns are the slots.</p> <p>The matrix is filled in with non-negative integers describing the wishes of the users, which we can call "grades". A small number means that the user would be very satisfied if put in this slot, and a high number means that the user would be disappointed if put in this slot. For a given arrangement of the users in the slots, one can determine a "penalty": it is the sum of the squares of the "grades" that each user has considering in which slot he/she is placed.</p> <p>A maximum and minimum number of users is associated to each slot. We use the <a href="https://en.wikipedia.org/wiki/Hungarian_algorithm">Hungarian algorithm</a> to minimize the penalty under these constraints.</p> <h3>Ensuring fair choices</h3> <h4 id="rules-to-ensure-fair-choices">Rules to ensure fair choices</h4> <p>To ensure that everyone has a fair chance of having his/her favorite slot, some rules must be imposed on the choices of the users. Indeed, one could manipulate the results by setting all slots to "hated" but one. A simple solution to this problem is to impose that the user strictly orders all the slots. However, this can be uncomfortable from the user’s point of view, and besides no default value can replace a user who chooses not to set his/her wishes.</p> <p>Therefore, another solution was found. Assume there are n slots. Then, the gradation from wanted to hated is 0, 1, 2,...n-1. Then the rule goes as follows: <ul> <li>Up to 1 slot can be hated (grade n-1)</li> <li>Up to 2 slots can be assigned grades greater or equal to n-2.</li> <li>Up to 3 slots can be assigned grades greater or equal to n-3.</li> <li>….</li> <li>Up to n slots can be assigned grades greater or equal to 0.</li> </ul> </p> <p>Therefore, the default setting of the wishes is to have grade 0 for each slots. This corresponds to somebody having no preferences.</p> <h4>User’s wish page</h4> <p>When the users are setting their wishes, the sliders automatically prevent unfair wishes.</p> <h4>Users with special constraints</h4> <p>Initially this algorithm was intended to put people in slots for an oral exam. It could happen that some people simply mustn't be put in some slots because they have another exam at this time. In such a case, it’s nice to be able to avoid the problem by putting a very high grade to the slots that the person mustn't be put in. Therefore, the administrator has access to the choices of all the users and can modify them upon request (see <a href="#adminpage">Administration page</a>).</p> <!--<p>Therefore, the administrator has special rights to access the user’s wish page and select some slots as "avoided" if he/she judges that the user has sufficient reasons to not be put is this slot (see as well <a href="#administrate-an-event">Administrate an event</a>).</p>--> <h3>Private url</h3> <p>To ensure that the users don’t change their wishes to trick the system, it’s good if they don’t know what the preferences of the other users are. Therefore, a unique key is randomly generated for each user. An url is then created using this key, which gives to the user a private access to his/her wish page.</p> <h3>What Wish doesn't do...</h3> <h4>Wish isn't Doodle</h4> <p>The aim of the algorithm is to arrange people in various slots. It’s not the aim to put all people in the same slot.</p> <h4>Each user is in only one slot in the end</h4> <p>It’s not that easy to modify the algorithm to put each person in two slots.</p> <h2> Recommendations of use </h2> <h3>Tips and tricks</h3> <p>If you are not sure how to use some features on the pages of the wish website, try keeping the mouse on this feature. In most cases, a "tip" can appear informing you about how the feature works.</p> <h3>Set your wishes</h3> <p>Before setting your wishes, you might want to take a look at the <a href="#rules-to-ensure-fair-choices">Rules to ensure fair choices</a> above.</p> <h3 id="administrate-an-event">Administer an event</h3> <h4>Create an event</h4> <p><b>Online/offline</b> When it is not possible to contact the participants by email, the website can still be used in its "offline" shape. The offline page is very similar to the administration page, except the pseudocode is not automatically written down (though there is an example to help). Please have a look at the help about the <a href="#adminpage">admin page</a> for more info.</p> <p><b>Number of slots</b> If you give too many slots, it will become a bit inconvenient for the users to set their wishes. If you are organizing an oral exam with a lot of students, a good solution is to gather three passage times in one slot and fit three people in the slot.</p> <!--<h4>Deadline</h4> <p>The deadline will be on midnight of the selected date. The algorithm will run as soon as the deadline is passed and the administrator will receive a mail informing him/her that the results are available. He or she will have to go to the admin page to send an email to the participants telling them that the results are available.</p>--> <p><b>Mailing list</b> The mailing list should contain the e-mail of each of the participants to the event. If the administrator intends to be put in a slot to, his/her mail should be on the list too.</p> <p>This list will be used to send the following mails: <ul> <li>Invitation mail: provides the user with an access to his/her wish page.</li> <li>Update mail: if the administrator changes something in the event organization.<!--, it is possible to send an update mail to warn the users.--></li> <li>Reminder mail: the administrator can send a reminder to people who didn't set their wishes.</li> <li>Results mail: when the results have been computed, the administrator can inform the users.</li> </ul> </p> <h4>Activate the event and send the invitation mails</h4> <p>Once an event has been created, the administrator receives an e-mail containing a link to the admin page. Once the administrator accesses this page, it is possible to send the invitation mail to all the participants, who will receive a private url to a page allowing them to set their choices. </p> <h4 id="adminpage">Administration page</h4> <p>The administration pages in the online and offline versions are very similar. The main item is a "problem settings" area, allowing to input all the parameters of the problem. There are as well two buttons, one to save the settings and the other ("compute assignation") to perform the computations and assign the participants in various slots. The "Assignation" area presents the results. In the online case, additional features allow to send news to the participants or to send them a reminder if they haven't participated yet.</p> <p><b>Problem settings</b> This area contains both the informations about the slots and the participants. Indeed, the list of the slots names is given along with the minimal and maximal number of participants allowed in each one. The list of the participants names/emails along with their preferences is given as well. In the online case, this area is automatically filled in with the parameters defined when creating the page and automatically updated when the users change their wishes. This area can always be modified by the administrator, who can add and remove slots or participants, change the quotas in the slots and change the wishes of the participants if needed (for instance, when a person has two exams on the same day, the administrator can but a high grade to the slots which are inconvenient for the student, so that he/she cannot fall into these). In the offline case, the administrator must enter the complete settings, including the wishes of the participants. </p> <p><b>Save</b> When the admin modifies the problem settings, it might affect some participants. This button allows to save the settings. In the online case, after saving the new data to the server, it will propose you to send mails to participents that has been added or to inform all the participants that a slot have been modified.</p> <p><b>Send reminder</b> In the online case, the admin can send a reminder to users who didn't yet set their wishes.</p> <p><b>Compute assignation</b> In both the online and offline cases, this button allows to compute the results and display them in the "assignation" area.</p> <p><b>Assignation area</b> This area is split in two parts: the "statistics" and the actual "results". The results give for each participant the title of the slot where he/she has been placed as well as the place it hold in his/her "wish list" (0 is best). The statistics describe for each slot as well as in total <ul> <li>how many participants are assigned</li> <li>how many of them are in their 1st, 2nd, ... choice</li> </ul> and give as well the total score. These results can be copied if necessary. </p> <p><b>Send results</b> This button allows to send a personal email to each participant to give them their result. It will as well send a mail to the admin of the event with all the assignations.</p> <!--<p>If for some reasons a given user must not be in some of the slots, the administrator can make sure that it won’t happen. To do so, click on the admin link to the user’s page and check the "avoided" case in the corresponding slots.</p> <p>This assigns a very high grade to this slot in the user’s wish list and makes it therefore highly unlikely for the user to be in this slot. As a consequence, the choices of the user are made unfair, and therefore the user shouldn’t try to modify his/her wish after this.</p> <p>It is therefore recommended to perform this action shortly before the deadline. It can as well be performed after the deadline, in which case the results have to be computed again using the "Set and Recompute" button on the administrator page.</p> <h4>Change the number of slots</h4> <p>Changing the number of slots is allowed but the administrator should be aware that this can make the choices of the users unfair.</p> <h4>Change the deadline</h4> <p>In case the results have already been computed, changing the deadline suppresses them. They are computed again when the new deadline is over.</p> --> <h2> If you have problems that this page doesn't solve... </h2> <p>Contact us on GitHub: github.com/agepoly/wish</p> </div> </body> </html>
72.424837
536
0.741901
335a4441ef30c33d5cad3d5359502e7ca96e5802
363
asm
Assembly
verify/alfy/1_variable_definition/variable_list_with_value.alfy.asm
alexandruradovici/alf-alfy-asm-public
43a73cc13c38f39125620fb9bd566c261cff1c73
[ "BSD-2-Clause" ]
null
null
null
verify/alfy/1_variable_definition/variable_list_with_value.alfy.asm
alexandruradovici/alf-alfy-asm-public
43a73cc13c38f39125620fb9bd566c261cff1c73
[ "BSD-2-Clause" ]
2
2017-05-18T20:29:57.000Z
2017-05-19T19:03:07.000Z
verify/alfy/1_variable_definition/variable_list_with_value.alfy.asm
alexandruradovici/alf-alfy-asm-language-public
43a73cc13c38f39125620fb9bd566c261cff1c73
[ "BSD-2-Clause" ]
null
null
null
; script start: ; attribution ; value int 3 set r2 3 ; n: r3 set r3 0 store r3 r2 ; attribution ; value real 3.7 set r2 3700 ; r: r3 set r3 4 store r3 r2 ; attribution ; value logic false set r2 0 ; l: r3 set r3 8 store r3 r2 stop
16.5
27
0.435262
f046760db9f9c57e0de347811b277f149a454916
49
py
Python
pluploader/upm/exceptions.py
craftamap/pluploader
c44e683282abb6fba8ced156aa807a66736a4ca1
[ "Apache-2.0" ]
12
2020-04-09T12:50:23.000Z
2020-10-30T14:43:40.000Z
pluploader/upm/exceptions.py
livelyapps/pluploader
39f2f50ba9625c038cdb1f5a7ecf2ad64da5577c
[ "Apache-2.0" ]
40
2020-04-12T15:25:46.000Z
2021-06-04T19:47:44.000Z
pluploader/upm/exceptions.py
craftamap/pluploader
c44e683282abb6fba8ced156aa807a66736a4ca1
[ "Apache-2.0" ]
2
2020-09-16T14:07:49.000Z
2020-10-30T14:45:07.000Z
class UploadFailedException(Exception): pass
16.333333
39
0.795918
4f3b55d7ca7eafee641df01d864608b5dbe97db9
393
ps1
PowerShell
Chapter01/CreateAzureStorage.ps1
PacktPublishing/DP-203-Azure-Data-Engineer-Associate-Certification-Guide
b7c3ccec05bfed5882a50f8705d2dac765ea623c
[ "MIT" ]
1
2022-03-07T15:26:38.000Z
2022-03-07T15:26:38.000Z
Chapter01/CreateAzureStorage.ps1
PacktPublishing/DP-203-Azure-Data-Engineer-Associate-Certification-Guide
b7c3ccec05bfed5882a50f8705d2dac765ea623c
[ "MIT" ]
null
null
null
Chapter01/CreateAzureStorage.ps1
PacktPublishing/DP-203-Azure-Data-Engineer-Associate-Certification-Guide
b7c3ccec05bfed5882a50f8705d2dac765ea623c
[ "MIT" ]
1
2022-03-30T18:24:41.000Z
2022-03-30T18:24:41.000Z
# Creating Azure storage account $resourceGroup = "<INSERT RESOURCE GROUP NAME>" $storageAccount ="<INSERT STORAGE ACCOUNT NAME>" $region = "<INSERT REGION NAME>" # We will have to create an Azure Storage first before we can create queues, shares or files az storage account create --resource-group $resourceGroup --name $storageAccount --location $region --kind StorageV2 --sku Standard_LRS
49.125
135
0.773537
61ff8e5abacca8b6d58aa61bd1f9ba1784abf8f1
10,117
dart
Dart
lib/services/sms_filter/index.dart
sgatibaru/Mpesa-Ledger-Flutter
97529bf16a598094151fb5f3775ac9120703e7e9
[ "MIT" ]
2
2022-02-21T15:55:31.000Z
2022-02-24T11:29:11.000Z
lib/services/sms_filter/index.dart
sgatibaru/Mpesa-Ledger-Flutter
97529bf16a598094151fb5f3775ac9120703e7e9
[ "MIT" ]
null
null
null
lib/services/sms_filter/index.dart
sgatibaru/Mpesa-Ledger-Flutter
97529bf16a598094151fb5f3775ac9120703e7e9
[ "MIT" ]
1
2020-09-30T11:27:46.000Z
2020-09-30T11:27:46.000Z
import 'dart:core'; import 'package:mpesa_ledger_flutter/blocs/counter/counter_bloc.dart'; import 'package:mpesa_ledger_flutter/models/category_model.dart'; import 'package:mpesa_ledger_flutter/models/mpesa_balance_model.dart'; import 'package:mpesa_ledger_flutter/models/summary_model.dart'; import 'package:mpesa_ledger_flutter/models/transaction_category_model.dart'; import 'package:mpesa_ledger_flutter/models/transaction_model.dart'; import 'package:mpesa_ledger_flutter/repository/category_repository.dart'; import 'package:mpesa_ledger_flutter/repository/mpesa_balance_repository.dart'; import 'package:mpesa_ledger_flutter/repository/summary_repository.dart'; import 'package:mpesa_ledger_flutter/repository/transaction_category_repository.dart'; import 'package:mpesa_ledger_flutter/repository/transaction_repository.dart'; import 'package:mpesa_ledger_flutter/services/sms_filter/check_sms_category.dart'; import 'package:mpesa_ledger_flutter/services/sms_filter/check_sms_type.dart'; class SMSFilter { CheckSMSType smsFilters; TransactionRepository transactionRepo = TransactionRepository(); CategoryRepository categoryRepo = CategoryRepository(); TransactionCategoryRepository transactionCategoryRepo = TransactionCategoryRepository(); SummaryRepository summaryRepo = SummaryRepository(); MpesaBalanceRepository mpesaBalanceRepository = MpesaBalanceRepository(); var dummyData = [ { "body": "OC36I5RICG Confirmed. Ksh10.00 sent to Naivas for account acc_12345 on 5/11/19 at 9:30 pm New M-PESA balance is Ksh980. Transaction cost, Ksh10.00", "timestamp": 1578205800000 }, { "body": "NC36I5RICG Confirmed. Ksh50.00 sent to Jama Mohamed 0790749401 on 14/11/19 at 12:02 PM. New M-PESA balance is Ksh923.00. Transaction cost, Ksh7.00.", "timestamp": 1579059180000 }, { "body": "OC3695RICG Confirmed. Ksh5.00 paid to uCHUMI. on 15/11/19 at 12:02 PM. New M-PESA balance is Ksh918.00. Transaction cost, Ksh0.00.", "timestamp": 1579078920000 }, { "body": "OX36I5RICG confirmed. You bought Ksh3.00 of airtime on 15/11/19 at 4:15pm. New M-PESA balance is Ksh915.00. Transaction cost, Ksh0.00.", "timestamp": 1579094100000 }, { "body": "OC3695RICG Confirmed. On 22/11/19 at 1:12pm Give Ksh100.00 cash to Fontana Strathmore New M-PESA balance is Ksh1015.00", "timestamp": 1579687920000 }, { "body": "NC36I5RICG Confirmed. on 3/12/19 at 3:33 pmWithdraw Ksh200.00 from 321321 - Fontana New M-PESA balance is Ksh800.00. Transaction cost, Ksh15.00.", "timestamp": 1580733180000 }, { "body": "OX36I5RICG Confirmed. Ksh220.00 sent to Jon Doe 0712345678 on 4/12/19 at 10:24 am. New M-PESA balance is Ksh560.00. Transaction cost, Ksh20.00.", "timestamp": 1580801040000 }, { "body": "OC3695RICG Confirmed. You have received Ksh550.00 from DIANA DOE 0712345876 on 12/12/19 at 7:23AM New M-PESA balance is Ksh1,110.00.", "timestamp": 1581481380000 }, { "body": "NC36I5RICG confirmed. Reversal of transaction OC3695RICG has been successfully reversed on 12/12/19 at 12:33am and Ksh220.00 is credited to your M-PESA account. New M-PESA account balance is Ksh1,330.00", "timestamp": 1581456780000 }, { "body": "OX36I5RICG Confirmed.Ksh220.00 transferred to M-Shwari account on 13/12/19 at 3:33pm. M-PESA balance is Ksh1,110.00 .New M-Shwari saving account balance is Ksh330.00. Transaction cost Ksh0.00", "timestamp": 1581597180000 }, { "body": "OC3695RICG Confirmed.Ksh220.00 transferred from M-Shwari account on 14/12/19 at 5:23PM. M-Shwari balance is Ksh110.00 .M-PESA balance is Ksh1,330.00 .Transaction cost Ksh0.00", "timestamp": 1581690180000 }, { "body": "NC36I5RICGConfirmed. Ksh10.00 transfered to KCB M-PESA account on 22/12/19 at 3:30AM. New M-PESA balance is Ksh1,320.00, new KCB M-PESA Saving account balance is Ksh20.00.", "timestamp": 1582331400000 }, { "body": "OX36I5RICGConfirmed. Ksh10.00 transfered from KCB M-PESA account on 22/12/19 at 3:32AM. New M-PESA balance is Ksh1,330.00, new KCB M-PESA Saving account balance is Ksh10.00.", "timestamp": 1582331520000 }, { "body": "OC36I5RICG Confirmed. Ksh100.00 sent to Carrefour Galleria for account acc_12345 on 2/1/20 at 9:30 pm New M-PESA balance is Ksh1,220. Transaction cost, Ksh10.00", "timestamp": 1578205800000 }, { "body": "NC36I5RICG Confirmed. Ksh50.00 sent to James Okech 0790749401 on. New M-PESA balance is Ksh1,163.00. Transaction cost, Ksh7.00.", "timestamp": 1579059180000 }, { "body": "OC3695RICG Confirmed. Ksh500.00 paid to Olo Metal Suppliers. on 12/1/20 at 12:02 PM. New M-PESA balance is Ksh636.00. Transaction cost, Ksh27.00.", "timestamp": 1579078920000 }, { "body": "OX36I5RICG confirmed. You bought Ksh20.00 of airtime on 17/1/20 at 4:15pm. New M-PESA balance is Ksh616.00. Transaction cost, Ksh0.00.", "timestamp": 1579094100000 }, { "body": "OC3695RICG Confirmed. On 22/1/20 at 1:12pm Give Ksh650.00 cash to Fontana Strathmore New M-PESA balance is Ksh1,266.00", "timestamp": 1579687920000 }, { "body": "NC36I5RICG Confirmed. on 5/2/20 at 3:33 pmWithdraw Ksh200.00 from 321321 - Fontana Strathmore New M-PESA balance is Ksh1,051.00. Transaction cost, Ksh15.00.", "timestamp": 1580733180000 }, { "body": "OX36I5RICG Confirmed. Ksh220.00 sent to Alan Okello 0712345678 on 5/2/20 at 10:24 am. New M-PESA balance is Ksh811.00. Transaction cost, Ksh20.00.", "timestamp": 1580801040000 }, { "body": "OC3695RICG Confirmed. You have received Ksh550.00 from DIANA DOE 0712345876 on 13/2/20 at 7:23AM New M-PESA balance is Ksh1,361.00.", "timestamp": 1581481380000 }, { "body": "NC36I5RICG confirmed. Reversal of transaction OC3695RICG has been successfully reversed on 13/2/20 at 12:33am and Ksh220.00 is debited from your M-PESA account. New M-PESA account balance is Ksh1,141.00", "timestamp": 1581456780000 }, { "body": "OX36I5RICG Confirmed.Ksh220.00 transferred to M-Shwari account on 14/2/20 at 3:33pm. M-PESA balance is Ksh1,110.00 .New M-Shwari saving account balance is Ksh330.00. Transaction cost Ksh0.00", "timestamp": 1581597180000 }, { "body": "OC3695RICG Confirmed.Ksh220.00 transferred from M-Shwari account on 14/2/20 at 5:23PM. M-Shwari balance is Ksh110.00 .M-PESA balance is Ksh1,361.00 .Transaction cost Ksh0.00", "timestamp": 1581690180000 }, { "body": "NC36I5RICGConfirmed. Ksh10.00 transfered to KCB M-PESA account on 23/2/20 at 3:30AM. New M-PESA balance is Ksh1,351.00, new KCB M-PESA Saving account balance is Ksh20.00.", "timestamp": 1582331400000 }, { "body": "OX36I5RICGConfirmed. Ksh10.00 transfered from KCB M-PESA account on 23/2/20 at 3:32AM. New M-PESA balance is Ksh1,361.00, new KCB M-PESA Saving account balance is Ksh10.00.", "timestamp": 1582331520000 } ]; Future<Map<String, String>> addSMSTodatabase(List<dynamic> bodies) async { try { // dummyData = dummyData.reversed.toList(); // List<dynamic> reversedBodies = dummyData.reversed.toList(); List<dynamic> reversedBodies = bodies.reversed.toList(); var categoryObject = await categoryRepo.select(columns: ["id", "keywords"]); int bodyLength = reversedBodies.length; for (var i = 0; i < bodyLength; i++) { Map<String, dynamic> obj = await _getSMSObject(reversedBodies[i]); if (obj.isNotEmpty && !obj["data"].containsKey("unknown")) { int id = await transactionRepo.insert( TransactionModel.fromMap(Map<String, dynamic>.from(obj["data"])), ); var transactionCategoryObjectList = await CheckSMSCategory(categoryObject, obj["data"]["body"], id) .addCategeoryToTransaction(); for (var j = 0; j < transactionCategoryObjectList.length; j++) { await transactionCategoryRepo.insert( TransactionCategoryModel.fromMap( transactionCategoryObjectList[j]), ); await categoryRepo.incrementNumOfTransactions(CategoryModel.fromMap( {"id": transactionCategoryObjectList[j]["categoryId"]})); } await summaryRepo.insert(SummaryModel.fromMap({ "month": obj["data"]["jiffy"].MMM, "monthInt": obj["data"]["jiffy"].month.toString(), "year": obj["data"]["jiffy"].year, "deposits": obj["data"]["isDeposit"] == 1 ? obj["data"]["amount"] : 0.0, "withdrawals": obj["data"]["isDeposit"] == 0 ? obj["data"]["amount"] : 0.0, "transactionCost": obj["data"]["transactionCost"] })); } if (obj.isNotEmpty && obj["data"]["mpesaBalance"] != null) { await mpesaBalanceRepository.update(MpesaBalanceModel.fromMap( {"mpesaBalance": obj["data"]["mpesaBalance"]})); } counter.counterSink.add(((i / bodyLength) * 100).round()); } return {"success": "Data successfully added to database"}; } catch (e) { return {"error": "There was an error", "msg": e.toString()}; } } Future<Map<String, dynamic>> _getSMSObject(Map<dynamic, dynamic> map) async { Map<String, dynamic> smsObject = {}; smsFilters = CheckSMSType(map["body"], map["timestamp"].toString()); var coreValuesObject = await smsFilters.getCoreValues(); if (!coreValuesObject.containsKey("error")) { smsObject.addAll(coreValuesObject); await smsObject["data"].addAll(smsFilters.checkTypeOfSMS()); } return Future.value(smsObject); } }
46.196347
215
0.662944
dfa477b77658c5bef1368de9f25295a67624b2c8
1,257
lua
Lua
Weld.lua
RedCanaryStudios/Welder-Plugin-Source
4fb78a25aca7df392ca353847020aa8c0ee55190
[ "MIT" ]
null
null
null
Weld.lua
RedCanaryStudios/Welder-Plugin-Source
4fb78a25aca7df392ca353847020aa8c0ee55190
[ "MIT" ]
null
null
null
Weld.lua
RedCanaryStudios/Welder-Plugin-Source
4fb78a25aca7df392ca353847020aa8c0ee55190
[ "MIT" ]
null
null
null
local toolbar = plugin:CreateToolbar("Weld") local selection = game:GetService("Selection") local Weld = toolbar:CreateButton("Weld All", "Weld all parts", "rbxassetid://4458901886") local destroyWelds = toolbar:CreateButton("Destroy Welds", "Destroys all welds", "rbxassetid://4458901886") local weld weld = function(sel) sel = sel or selection:Get() if #sel == 0 then return end if sel[1]:IsA("Model") then weld(sel[1]:GetChildren()) end for i = #sel-1, 1, -1 do if sel[i]:IsA("BasePart") then local WC = Instance.new("WeldConstraint") WC.Parent = sel[i] WC.Part0 = sel[i+1] WC.Part1 = sel[i] else if sel[i]:IsA("Model") then weld(sel[i]:GetChildren()) end table.remove(sel, i) end end Weld:SetActive(false) end Weld.Click:Connect(weld) destroyWelds.Click:Connect(function() local sel = selection:Get() for i, v in ipairs(sel) do for i2, v2 in ipairs(v:GetDescendants()) do if v2:IsA("Weld") or v2:IsA("WeldConstraint") then v2:Destroy() end end end destroyWelds:SetActive(false) end)
24.173077
107
0.570406
39b67495739b36e208ed38a2636321145b7b3ca1
81
js
JavaScript
app/map-tools/identify-visible-marker.js
viatkinviatkin/ember-flexberry-gis
02f0afa2d0275619d4a957b4b25210cc197ac790
[ "MIT" ]
4
2016-11-21T09:48:53.000Z
2019-07-09T07:36:17.000Z
app/map-tools/identify-visible-marker.js
viatkinviatkin/ember-flexberry-gis
02f0afa2d0275619d4a957b4b25210cc197ac790
[ "MIT" ]
75
2016-06-30T12:13:19.000Z
2022-02-13T14:10:46.000Z
app/map-tools/identify-visible-marker.js
viatkinviatkin/ember-flexberry-gis
02f0afa2d0275619d4a957b4b25210cc197ac790
[ "MIT" ]
5
2020-04-20T05:34:54.000Z
2021-12-08T04:27:44.000Z
export { default } from 'ember-flexberry-gis/map-tools/identify-visible-marker';
40.5
80
0.777778
2f26cd19b09be95752d80a63b431d1d65e67be04
172
sql
SQL
migrations/20210319202300_add_users.down.sql
dimfeld/ergo
e8610f0a826378e827d72e51d386839c28fa67d5
[ "Apache-2.0", "MIT" ]
64
2021-03-14T08:50:12.000Z
2022-03-05T16:44:36.000Z
migrations/20210319202300_add_users.down.sql
dimfeld/ergo
e8610f0a826378e827d72e51d386839c28fa67d5
[ "Apache-2.0", "MIT" ]
24
2021-03-17T19:03:16.000Z
2022-02-05T21:27:33.000Z
migrations/20210319202300_add_users.down.sql
dimfeld/ergo
e8610f0a826378e827d72e51d386839c28fa67d5
[ "Apache-2.0", "MIT" ]
4
2021-04-23T22:48:53.000Z
2022-01-21T08:32:59.000Z
BEGIN; DROP TABLE api_keys; DROP TABLE user_roles; DROP TABLE roles; DROP TABLE users; DROP TABLE orgs; DROP TABLE user_entity_permissions; DROP TYPE permission; COMMIT;
14.333333
35
0.802326
a75fb6da20db750c6e2fe7e73bf6cfee2e532243
1,250
swift
Swift
Tests/WeakCollectionTests/WeakCollectionTests.swift
CharonTechnology/SwiftWeakCollection
4efd937b98fb6567c258057351a4d9eeb563f8c9
[ "CC0-1.0" ]
1
2021-10-19T16:43:29.000Z
2021-10-19T16:43:29.000Z
Tests/WeakCollectionTests/WeakCollectionTests.swift
CharonTechnology/SwiftWeakCollection
4efd937b98fb6567c258057351a4d9eeb563f8c9
[ "CC0-1.0" ]
1
2021-11-10T14:24:35.000Z
2021-11-10T14:24:35.000Z
Tests/WeakCollectionTests/WeakCollectionTests.swift
CharonTechnology/SwiftWeakCollection
4efd937b98fb6567c258057351a4d9eeb563f8c9
[ "CC0-1.0" ]
null
null
null
import Foundation import XCTest @testable import WeakCollection class Foo { } class Hello { let msg = "hello" } final class WeakCollectionTests: XCTestCase { func testWeakArray() { var array = WeakArray<Foo>() do { let foo = Foo() array.append(foo) } XCTAssertNil(array[0]) } func testUnownedArray() { var array = UnownedArray<Foo>() weak var weakFoo: Foo? do { let foo = Foo() weakFoo = foo array.append(foo) } XCTAssertNil(weakFoo) } func testUnownedDictionary() { var dict = UnownedDictionary<String, Foo>() weak var weakFoo: Foo? do { let foo = Foo() weakFoo = foo dict["foo"] = foo XCTAssertNotNil(dict["foo"]) } XCTAssertNil(weakFoo) } func testWeakDictionary() { var dict = WeakDictionary<String, Foo>() do { let foo = Foo() dict["foo"] = foo XCTAssertNotNil(dict["foo"]) } XCTAssertNil(dict["foo"]) } static var allTests = [ ("testWeakArray", testWeakArray), ("testUnownedArray", testUnownedArray), ("testWeakDictionary", testWeakDictionary), ("testUnownedDictionary", testUnownedDictionary), ] }
19.230769
57
0.5856
86ba299775f2c0a1e23e9767abe560511aeff4bc
31,391
rs
Rust
src/unix/linux_like/linux/gnu/b32/arm/mod.rs
namib-project/libc
44abe4b82dd19d63e7b2c63578b51b6e76842cd1
[ "Apache-2.0", "MIT" ]
null
null
null
src/unix/linux_like/linux/gnu/b32/arm/mod.rs
namib-project/libc
44abe4b82dd19d63e7b2c63578b51b6e76842cd1
[ "Apache-2.0", "MIT" ]
null
null
null
src/unix/linux_like/linux/gnu/b32/arm/mod.rs
namib-project/libc
44abe4b82dd19d63e7b2c63578b51b6e76842cd1
[ "Apache-2.0", "MIT" ]
null
null
null
pub type c_char = u8; pub type wchar_t = u32; s! { pub struct sigaction { pub sa_sigaction: ::sighandler_t, pub sa_mask: ::sigset_t, pub sa_flags: ::c_int, pub sa_restorer: ::Option<extern fn()>, } pub struct statfs { pub f_type: ::__fsword_t, pub f_bsize: ::__fsword_t, pub f_blocks: ::fsblkcnt_t, pub f_bfree: ::fsblkcnt_t, pub f_bavail: ::fsblkcnt_t, pub f_files: ::fsfilcnt_t, pub f_ffree: ::fsfilcnt_t, pub f_fsid: ::fsid_t, pub f_namelen: ::__fsword_t, pub f_frsize: ::__fsword_t, f_spare: [::__fsword_t; 5], } pub struct flock { pub l_type: ::c_short, pub l_whence: ::c_short, pub l_start: ::off_t, pub l_len: ::off_t, pub l_pid: ::pid_t, } pub struct flock64 { pub l_type: ::c_short, pub l_whence: ::c_short, pub l_start: ::off64_t, pub l_len: ::off64_t, pub l_pid: ::pid_t, } pub struct ipc_perm { pub __key: ::key_t, pub uid: ::uid_t, pub gid: ::gid_t, pub cuid: ::uid_t, pub cgid: ::gid_t, pub mode: ::c_ushort, __pad1: ::c_ushort, pub __seq: ::c_ushort, __pad2: ::c_ushort, __unused1: ::c_ulong, __unused2: ::c_ulong } pub struct stat64 { pub st_dev: ::dev_t, __pad1: ::c_uint, __st_ino: ::ino_t, pub st_mode: ::mode_t, pub st_nlink: ::nlink_t, pub st_uid: ::uid_t, pub st_gid: ::gid_t, pub st_rdev: ::dev_t, __pad2: ::c_uint, pub st_size: ::off64_t, pub st_blksize: ::blksize_t, pub st_blocks: ::blkcnt64_t, pub st_atime: ::time_t, pub st_atime_nsec: ::c_long, pub st_mtime: ::time_t, pub st_mtime_nsec: ::c_long, pub st_ctime: ::time_t, pub st_ctime_nsec: ::c_long, pub st_ino: ::ino64_t, } pub struct statfs64 { pub f_type: ::__fsword_t, pub f_bsize: ::__fsword_t, pub f_blocks: u64, pub f_bfree: u64, pub f_bavail: u64, pub f_files: u64, pub f_ffree: u64, pub f_fsid: ::fsid_t, pub f_namelen: ::__fsword_t, pub f_frsize: ::__fsword_t, pub f_flags: ::__fsword_t, pub f_spare: [::__fsword_t; 4], } pub struct statvfs64 { pub f_bsize: ::c_ulong, pub f_frsize: ::c_ulong, pub f_blocks: u64, pub f_bfree: u64, pub f_bavail: u64, pub f_files: u64, pub f_ffree: u64, pub f_favail: u64, pub f_fsid: ::c_ulong, __f_unused: ::c_int, pub f_flag: ::c_ulong, pub f_namemax: ::c_ulong, __f_spare: [::c_int; 6], } pub struct shmid_ds { pub shm_perm: ::ipc_perm, pub shm_segsz: ::size_t, pub shm_atime: ::time_t, __unused1: ::c_ulong, pub shm_dtime: ::time_t, __unused2: ::c_ulong, pub shm_ctime: ::time_t, __unused3: ::c_ulong, pub shm_cpid: ::pid_t, pub shm_lpid: ::pid_t, pub shm_nattch: ::shmatt_t, __unused4: ::c_ulong, __unused5: ::c_ulong } pub struct msqid_ds { pub msg_perm: ::ipc_perm, pub msg_stime: ::time_t, __glibc_reserved1: ::c_ulong, pub msg_rtime: ::time_t, __glibc_reserved2: ::c_ulong, pub msg_ctime: ::time_t, __glibc_reserved3: ::c_ulong, __msg_cbytes: ::c_ulong, pub msg_qnum: ::msgqnum_t, pub msg_qbytes: ::msglen_t, pub msg_lspid: ::pid_t, pub msg_lrpid: ::pid_t, __glibc_reserved4: ::c_ulong, __glibc_reserved5: ::c_ulong, } pub struct termios2 { pub c_iflag: ::tcflag_t, pub c_oflag: ::tcflag_t, pub c_cflag: ::tcflag_t, pub c_lflag: ::tcflag_t, pub c_line: ::cc_t, pub c_cc: [::cc_t; 19], pub c_ispeed: ::speed_t, pub c_ospeed: ::speed_t, } pub struct siginfo_t { pub si_signo: ::c_int, pub si_errno: ::c_int, pub si_code: ::c_int, #[doc(hidden)] #[deprecated( since="0.2.54", note="Please leave a comment on \ https://github.com/rust-lang/libc/pull/1316 if you're using \ this field" )] pub _pad: [::c_int; 29], _align: [usize; 0], } pub struct stack_t { pub ss_sp: *mut ::c_void, pub ss_flags: ::c_int, pub ss_size: ::size_t } } pub const RLIM_INFINITY: ::rlim_t = !0; pub const VEOF: usize = 4; pub const RTLD_DEEPBIND: ::c_int = 0x8; pub const RTLD_GLOBAL: ::c_int = 0x100; pub const RTLD_NOLOAD: ::c_int = 0x4; pub const O_DIRECT: ::c_int = 0x10000; pub const O_DIRECTORY: ::c_int = 0x4000; pub const O_NOFOLLOW: ::c_int = 0x8000; pub const O_LARGEFILE: ::c_int = 0o400000; pub const O_APPEND: ::c_int = 1024; pub const O_CREAT: ::c_int = 64; pub const O_EXCL: ::c_int = 128; pub const O_NOCTTY: ::c_int = 256; pub const O_NONBLOCK: ::c_int = 2048; pub const O_SYNC: ::c_int = 1052672; pub const O_RSYNC: ::c_int = 1052672; pub const O_DSYNC: ::c_int = 4096; pub const O_FSYNC: ::c_int = 0x101000; pub const O_ASYNC: ::c_int = 0x2000; pub const O_NDELAY: ::c_int = 0x800; pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 7; pub const RLIMIT_NPROC: ::__rlimit_resource_t = 6; pub const RLIMIT_RSS: ::__rlimit_resource_t = 5; pub const RLIMIT_AS: ::__rlimit_resource_t = 9; pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8; pub const MADV_SOFT_OFFLINE: ::c_int = 101; pub const MAP_LOCKED: ::c_int = 0x02000; pub const MAP_NORESERVE: ::c_int = 0x04000; pub const MAP_ANON: ::c_int = 0x0020; pub const MAP_ANONYMOUS: ::c_int = 0x0020; pub const MAP_DENYWRITE: ::c_int = 0x0800; pub const MAP_EXECUTABLE: ::c_int = 0x01000; pub const MAP_POPULATE: ::c_int = 0x08000; pub const MAP_NONBLOCK: ::c_int = 0x010000; pub const MAP_STACK: ::c_int = 0x020000; pub const MAP_HUGETLB: ::c_int = 0x040000; pub const MAP_GROWSDOWN: ::c_int = 0x0100; pub const MAP_SYNC: ::c_int = 0x080000; pub const SOL_SOCKET: ::c_int = 1; pub const EDEADLOCK: ::c_int = 35; pub const EUCLEAN: ::c_int = 117; pub const ENOTNAM: ::c_int = 118; pub const ENAVAIL: ::c_int = 119; pub const EISNAM: ::c_int = 120; pub const EREMOTEIO: ::c_int = 121; pub const EDEADLK: ::c_int = 35; pub const ENAMETOOLONG: ::c_int = 36; pub const ENOLCK: ::c_int = 37; pub const ENOSYS: ::c_int = 38; pub const ENOTEMPTY: ::c_int = 39; pub const ELOOP: ::c_int = 40; pub const ENOMSG: ::c_int = 42; pub const EIDRM: ::c_int = 43; pub const ECHRNG: ::c_int = 44; pub const EL2NSYNC: ::c_int = 45; pub const EL3HLT: ::c_int = 46; pub const EL3RST: ::c_int = 47; pub const ELNRNG: ::c_int = 48; pub const EUNATCH: ::c_int = 49; pub const ENOCSI: ::c_int = 50; pub const EL2HLT: ::c_int = 51; pub const EBADE: ::c_int = 52; pub const EBADR: ::c_int = 53; pub const EXFULL: ::c_int = 54; pub const ENOANO: ::c_int = 55; pub const EBADRQC: ::c_int = 56; pub const EBADSLT: ::c_int = 57; pub const EMULTIHOP: ::c_int = 72; pub const EOVERFLOW: ::c_int = 75; pub const ENOTUNIQ: ::c_int = 76; pub const EBADFD: ::c_int = 77; pub const EBADMSG: ::c_int = 74; pub const EREMCHG: ::c_int = 78; pub const ELIBACC: ::c_int = 79; pub const ELIBBAD: ::c_int = 80; pub const ELIBSCN: ::c_int = 81; pub const ELIBMAX: ::c_int = 82; pub const ELIBEXEC: ::c_int = 83; pub const EILSEQ: ::c_int = 84; pub const ERESTART: ::c_int = 85; pub const ESTRPIPE: ::c_int = 86; pub const EUSERS: ::c_int = 87; pub const ENOTSOCK: ::c_int = 88; pub const EDESTADDRREQ: ::c_int = 89; pub const EMSGSIZE: ::c_int = 90; pub const EPROTOTYPE: ::c_int = 91; pub const ENOPROTOOPT: ::c_int = 92; pub const EPROTONOSUPPORT: ::c_int = 93; pub const ESOCKTNOSUPPORT: ::c_int = 94; pub const EOPNOTSUPP: ::c_int = 95; pub const EPFNOSUPPORT: ::c_int = 96; pub const EAFNOSUPPORT: ::c_int = 97; pub const EADDRINUSE: ::c_int = 98; pub const EADDRNOTAVAIL: ::c_int = 99; pub const ENETDOWN: ::c_int = 100; pub const ENETUNREACH: ::c_int = 101; pub const ENETRESET: ::c_int = 102; pub const ECONNABORTED: ::c_int = 103; pub const ECONNRESET: ::c_int = 104; pub const ENOBUFS: ::c_int = 105; pub const EISCONN: ::c_int = 106; pub const ENOTCONN: ::c_int = 107; pub const ESHUTDOWN: ::c_int = 108; pub const ETOOMANYREFS: ::c_int = 109; pub const ETIMEDOUT: ::c_int = 110; pub const ECONNREFUSED: ::c_int = 111; pub const EHOSTDOWN: ::c_int = 112; pub const EHOSTUNREACH: ::c_int = 113; pub const EALREADY: ::c_int = 114; pub const EINPROGRESS: ::c_int = 115; pub const ESTALE: ::c_int = 116; pub const EDQUOT: ::c_int = 122; pub const ENOMEDIUM: ::c_int = 123; pub const EMEDIUMTYPE: ::c_int = 124; pub const ECANCELED: ::c_int = 125; pub const ENOKEY: ::c_int = 126; pub const EKEYEXPIRED: ::c_int = 127; pub const EKEYREVOKED: ::c_int = 128; pub const EKEYREJECTED: ::c_int = 129; pub const EOWNERDEAD: ::c_int = 130; pub const ENOTRECOVERABLE: ::c_int = 131; pub const EHWPOISON: ::c_int = 133; pub const ERFKILL: ::c_int = 132; pub const SO_REUSEADDR: ::c_int = 2; pub const SO_TYPE: ::c_int = 3; pub const SO_ERROR: ::c_int = 4; pub const SO_DONTROUTE: ::c_int = 5; pub const SO_BROADCAST: ::c_int = 6; pub const SO_SNDBUF: ::c_int = 7; pub const SO_RCVBUF: ::c_int = 8; pub const SO_KEEPALIVE: ::c_int = 9; pub const SO_OOBINLINE: ::c_int = 10; pub const SO_LINGER: ::c_int = 13; pub const SO_REUSEPORT: ::c_int = 15; pub const SO_ACCEPTCONN: ::c_int = 30; pub const SO_PROTOCOL: ::c_int = 38; pub const SO_DOMAIN: ::c_int = 39; pub const SO_PASSCRED: ::c_int = 16; pub const SO_PEERCRED: ::c_int = 17; pub const SO_RCVLOWAT: ::c_int = 18; pub const SO_SNDLOWAT: ::c_int = 19; pub const SO_RCVTIMEO: ::c_int = 20; pub const SO_SNDTIMEO: ::c_int = 21; pub const SO_PEERSEC: ::c_int = 31; pub const SO_SNDBUFFORCE: ::c_int = 32; pub const SO_RCVBUFFORCE: ::c_int = 33; pub const SO_PASSSEC: ::c_int = 34; pub const SA_SIGINFO: ::c_int = 0x00000004; pub const SA_NOCLDWAIT: ::c_int = 0x00000002; pub const SOCK_STREAM: ::c_int = 1; pub const SOCK_DGRAM: ::c_int = 2; pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONCLEX: ::c_ulong = 0x5450; pub const FIONBIO: ::c_ulong = 0x5421; pub const MCL_CURRENT: ::c_int = 0x0001; pub const MCL_FUTURE: ::c_int = 0x0002; pub const POLLWRNORM: ::c_short = 0x100; pub const POLLWRBAND: ::c_short = 0x200; pub const F_GETLK: ::c_int = 5; pub const F_GETOWN: ::c_int = 9; pub const F_SETOWN: ::c_int = 8; pub const EFD_NONBLOCK: ::c_int = 0x800; pub const SFD_NONBLOCK: ::c_int = 0x0800; pub const SIGCHLD: ::c_int = 17; pub const SIGBUS: ::c_int = 7; pub const SIGUSR1: ::c_int = 10; pub const SIGUSR2: ::c_int = 12; pub const SIGCONT: ::c_int = 18; pub const SIGSTOP: ::c_int = 19; pub const SIGTSTP: ::c_int = 20; pub const SIGURG: ::c_int = 23; pub const SIGIO: ::c_int = 29; pub const SIGSYS: ::c_int = 31; pub const SIGSTKFLT: ::c_int = 16; #[deprecated(since = "0.2.55", note = "Use SIGSYS instead")] pub const SIGUNUSED: ::c_int = 31; pub const SIGPOLL: ::c_int = 29; pub const SIGPWR: ::c_int = 30; pub const SIG_SETMASK: ::c_int = 2; pub const SIG_BLOCK: ::c_int = 0x000000; pub const SIG_UNBLOCK: ::c_int = 0x01; pub const SIGTTIN: ::c_int = 21; pub const SIGTTOU: ::c_int = 22; pub const SIGXCPU: ::c_int = 24; pub const SIGXFSZ: ::c_int = 25; pub const SIGVTALRM: ::c_int = 26; pub const SIGPROF: ::c_int = 27; pub const SIGWINCH: ::c_int = 28; pub const SIGSTKSZ: ::size_t = 8192; pub const MINSIGSTKSZ: ::size_t = 2048; pub const CBAUD: ::tcflag_t = 0o0010017; pub const TAB1: ::tcflag_t = 0x00000800; pub const TAB2: ::tcflag_t = 0x00001000; pub const TAB3: ::tcflag_t = 0x00001800; pub const CR1: ::tcflag_t = 0x00000200; pub const CR2: ::tcflag_t = 0x00000400; pub const CR3: ::tcflag_t = 0x00000600; pub const FF1: ::tcflag_t = 0x00008000; pub const BS1: ::tcflag_t = 0x00002000; pub const VT1: ::tcflag_t = 0x00004000; pub const VWERASE: usize = 14; pub const VREPRINT: usize = 12; pub const VSUSP: usize = 10; pub const VSTART: usize = 8; pub const VSTOP: usize = 9; pub const VDISCARD: usize = 13; pub const VTIME: usize = 5; pub const IXON: ::tcflag_t = 0x00000400; pub const IXOFF: ::tcflag_t = 0x00001000; pub const ONLCR: ::tcflag_t = 0x4; pub const CSIZE: ::tcflag_t = 0x00000030; pub const CS6: ::tcflag_t = 0x00000010; pub const CS7: ::tcflag_t = 0x00000020; pub const CS8: ::tcflag_t = 0x00000030; pub const CSTOPB: ::tcflag_t = 0x00000040; pub const CREAD: ::tcflag_t = 0x00000080; pub const PARENB: ::tcflag_t = 0x00000100; pub const PARODD: ::tcflag_t = 0x00000200; pub const HUPCL: ::tcflag_t = 0x00000400; pub const CLOCAL: ::tcflag_t = 0x00000800; pub const ECHOKE: ::tcflag_t = 0x00000800; pub const ECHOE: ::tcflag_t = 0x00000010; pub const ECHOK: ::tcflag_t = 0x00000020; pub const ECHONL: ::tcflag_t = 0x00000040; pub const ECHOPRT: ::tcflag_t = 0x00000400; pub const ECHOCTL: ::tcflag_t = 0x00000200; pub const ISIG: ::tcflag_t = 0x00000001; pub const ICANON: ::tcflag_t = 0x00000002; pub const PENDIN: ::tcflag_t = 0x00004000; pub const NOFLSH: ::tcflag_t = 0x00000080; pub const CIBAUD: ::tcflag_t = 0o02003600000; pub const CBAUDEX: ::tcflag_t = 0o010000; pub const VSWTC: usize = 7; pub const OLCUC: ::tcflag_t = 0o000002; pub const NLDLY: ::tcflag_t = 0o000400; pub const CRDLY: ::tcflag_t = 0o003000; pub const TABDLY: ::tcflag_t = 0o014000; pub const BSDLY: ::tcflag_t = 0o020000; pub const FFDLY: ::tcflag_t = 0o100000; pub const VTDLY: ::tcflag_t = 0o040000; pub const XTABS: ::tcflag_t = 0o014000; pub const B0: ::speed_t = 0o000000; pub const B50: ::speed_t = 0o000001; pub const B75: ::speed_t = 0o000002; pub const B110: ::speed_t = 0o000003; pub const B134: ::speed_t = 0o000004; pub const B150: ::speed_t = 0o000005; pub const B200: ::speed_t = 0o000006; pub const B300: ::speed_t = 0o000007; pub const B600: ::speed_t = 0o000010; pub const B1200: ::speed_t = 0o000011; pub const B1800: ::speed_t = 0o000012; pub const B2400: ::speed_t = 0o000013; pub const B4800: ::speed_t = 0o000014; pub const B9600: ::speed_t = 0o000015; pub const B19200: ::speed_t = 0o000016; pub const B38400: ::speed_t = 0o000017; pub const EXTA: ::speed_t = B19200; pub const EXTB: ::speed_t = B38400; pub const BOTHER: ::speed_t = 0o010000; pub const B57600: ::speed_t = 0o010001; pub const B115200: ::speed_t = 0o010002; pub const B230400: ::speed_t = 0o010003; pub const B460800: ::speed_t = 0o010004; pub const B500000: ::speed_t = 0o010005; pub const B576000: ::speed_t = 0o010006; pub const B921600: ::speed_t = 0o010007; pub const B1000000: ::speed_t = 0o010010; pub const B1152000: ::speed_t = 0o010011; pub const B1500000: ::speed_t = 0o010012; pub const B2000000: ::speed_t = 0o010013; pub const B2500000: ::speed_t = 0o010014; pub const B3000000: ::speed_t = 0o010015; pub const B3500000: ::speed_t = 0o010016; pub const B4000000: ::speed_t = 0o010017; pub const VEOL: usize = 11; pub const VEOL2: usize = 16; pub const VMIN: usize = 6; pub const IEXTEN: ::tcflag_t = 0x00008000; pub const TOSTOP: ::tcflag_t = 0x00000100; pub const FLUSHO: ::tcflag_t = 0x00001000; pub const EXTPROC: ::tcflag_t = 0x00010000; pub const TCGETS: ::c_ulong = 0x5401; pub const TCSETS: ::c_ulong = 0x5402; pub const TCSETSW: ::c_ulong = 0x5403; pub const TCSETSF: ::c_ulong = 0x5404; pub const TCGETA: ::c_ulong = 0x5405; pub const TCSETA: ::c_ulong = 0x5406; pub const TCSETAW: ::c_ulong = 0x5407; pub const TCSETAF: ::c_ulong = 0x5408; pub const TCSBRK: ::c_ulong = 0x5409; pub const TCXONC: ::c_ulong = 0x540A; pub const TCFLSH: ::c_ulong = 0x540B; pub const TIOCINQ: ::c_ulong = 0x541B; pub const TIOCGPGRP: ::c_ulong = 0x540F; pub const TIOCSPGRP: ::c_ulong = 0x5410; pub const TIOCOUTQ: ::c_ulong = 0x5411; pub const TIOCGWINSZ: ::c_ulong = 0x5413; pub const TIOCSWINSZ: ::c_ulong = 0x5414; pub const TIOCGRS485: ::c_int = 0x542E; pub const TIOCSRS485: ::c_int = 0x542F; pub const FIONREAD: ::c_ulong = 0x541B; pub const TIOCGSOFTCAR: ::c_ulong = 0x5419; pub const TIOCSSOFTCAR: ::c_ulong = 0x541A; pub const TIOCEXCL: ::c_ulong = 0x540C; pub const TIOCNXCL: ::c_ulong = 0x540D; pub const TIOCSCTTY: ::c_ulong = 0x540E; pub const TIOCSTI: ::c_ulong = 0x5412; pub const TIOCMGET: ::c_ulong = 0x5415; pub const TIOCMBIS: ::c_ulong = 0x5416; pub const TIOCMBIC: ::c_ulong = 0x5417; pub const TIOCMSET: ::c_ulong = 0x5418; pub const TIOCCONS: ::c_ulong = 0x541D; pub const TCSANOW: ::c_int = 0; pub const TCSADRAIN: ::c_int = 1; pub const TCSAFLUSH: ::c_int = 2; pub const TIOCLINUX: ::c_ulong = 0x541C; pub const TIOCGSERIAL: ::c_ulong = 0x541E; pub const TIOCM_ST: ::c_int = 0x008; pub const TIOCM_SR: ::c_int = 0x010; pub const TIOCM_CTS: ::c_int = 0x020; pub const TIOCM_CAR: ::c_int = 0x040; pub const TIOCM_RNG: ::c_int = 0x080; pub const TIOCM_DSR: ::c_int = 0x100; // Syscall table pub const SYS_restart_syscall: ::c_long = 0; pub const SYS_exit: ::c_long = 1; pub const SYS_fork: ::c_long = 2; pub const SYS_read: ::c_long = 3; pub const SYS_write: ::c_long = 4; pub const SYS_open: ::c_long = 5; pub const SYS_close: ::c_long = 6; pub const SYS_creat: ::c_long = 8; pub const SYS_link: ::c_long = 9; pub const SYS_unlink: ::c_long = 10; pub const SYS_execve: ::c_long = 11; pub const SYS_chdir: ::c_long = 12; pub const SYS_mknod: ::c_long = 14; pub const SYS_chmod: ::c_long = 15; pub const SYS_lchown: ::c_long = 16; pub const SYS_lseek: ::c_long = 19; pub const SYS_getpid: ::c_long = 20; pub const SYS_mount: ::c_long = 21; pub const SYS_setuid: ::c_long = 23; pub const SYS_getuid: ::c_long = 24; pub const SYS_ptrace: ::c_long = 26; pub const SYS_pause: ::c_long = 29; pub const SYS_access: ::c_long = 33; pub const SYS_nice: ::c_long = 34; pub const SYS_sync: ::c_long = 36; pub const SYS_kill: ::c_long = 37; pub const SYS_rename: ::c_long = 38; pub const SYS_mkdir: ::c_long = 39; pub const SYS_rmdir: ::c_long = 40; pub const SYS_dup: ::c_long = 41; pub const SYS_pipe: ::c_long = 42; pub const SYS_times: ::c_long = 43; pub const SYS_brk: ::c_long = 45; pub const SYS_setgid: ::c_long = 46; pub const SYS_getgid: ::c_long = 47; pub const SYS_geteuid: ::c_long = 49; pub const SYS_getegid: ::c_long = 50; pub const SYS_acct: ::c_long = 51; pub const SYS_umount2: ::c_long = 52; pub const SYS_ioctl: ::c_long = 54; pub const SYS_fcntl: ::c_long = 55; pub const SYS_setpgid: ::c_long = 57; pub const SYS_umask: ::c_long = 60; pub const SYS_chroot: ::c_long = 61; pub const SYS_ustat: ::c_long = 62; pub const SYS_dup2: ::c_long = 63; pub const SYS_getppid: ::c_long = 64; pub const SYS_getpgrp: ::c_long = 65; pub const SYS_setsid: ::c_long = 66; pub const SYS_sigaction: ::c_long = 67; pub const SYS_setreuid: ::c_long = 70; pub const SYS_setregid: ::c_long = 71; pub const SYS_sigsuspend: ::c_long = 72; pub const SYS_sigpending: ::c_long = 73; pub const SYS_sethostname: ::c_long = 74; pub const SYS_setrlimit: ::c_long = 75; pub const SYS_getrusage: ::c_long = 77; pub const SYS_gettimeofday: ::c_long = 78; pub const SYS_settimeofday: ::c_long = 79; pub const SYS_getgroups: ::c_long = 80; pub const SYS_setgroups: ::c_long = 81; pub const SYS_symlink: ::c_long = 83; pub const SYS_readlink: ::c_long = 85; pub const SYS_uselib: ::c_long = 86; pub const SYS_swapon: ::c_long = 87; pub const SYS_reboot: ::c_long = 88; pub const SYS_munmap: ::c_long = 91; pub const SYS_truncate: ::c_long = 92; pub const SYS_ftruncate: ::c_long = 93; pub const SYS_fchmod: ::c_long = 94; pub const SYS_fchown: ::c_long = 95; pub const SYS_getpriority: ::c_long = 96; pub const SYS_setpriority: ::c_long = 97; pub const SYS_statfs: ::c_long = 99; pub const SYS_fstatfs: ::c_long = 100; pub const SYS_syslog: ::c_long = 103; pub const SYS_setitimer: ::c_long = 104; pub const SYS_getitimer: ::c_long = 105; pub const SYS_stat: ::c_long = 106; pub const SYS_lstat: ::c_long = 107; pub const SYS_fstat: ::c_long = 108; pub const SYS_vhangup: ::c_long = 111; pub const SYS_wait4: ::c_long = 114; pub const SYS_swapoff: ::c_long = 115; pub const SYS_sysinfo: ::c_long = 116; pub const SYS_fsync: ::c_long = 118; pub const SYS_sigreturn: ::c_long = 119; pub const SYS_clone: ::c_long = 120; pub const SYS_setdomainname: ::c_long = 121; pub const SYS_uname: ::c_long = 122; pub const SYS_adjtimex: ::c_long = 124; pub const SYS_mprotect: ::c_long = 125; pub const SYS_sigprocmask: ::c_long = 126; pub const SYS_init_module: ::c_long = 128; pub const SYS_delete_module: ::c_long = 129; pub const SYS_quotactl: ::c_long = 131; pub const SYS_getpgid: ::c_long = 132; pub const SYS_fchdir: ::c_long = 133; pub const SYS_bdflush: ::c_long = 134; pub const SYS_sysfs: ::c_long = 135; pub const SYS_personality: ::c_long = 136; pub const SYS_setfsuid: ::c_long = 138; pub const SYS_setfsgid: ::c_long = 139; pub const SYS__llseek: ::c_long = 140; pub const SYS_getdents: ::c_long = 141; pub const SYS__newselect: ::c_long = 142; pub const SYS_flock: ::c_long = 143; pub const SYS_msync: ::c_long = 144; pub const SYS_readv: ::c_long = 145; pub const SYS_writev: ::c_long = 146; pub const SYS_getsid: ::c_long = 147; pub const SYS_fdatasync: ::c_long = 148; pub const SYS__sysctl: ::c_long = 149; pub const SYS_mlock: ::c_long = 150; pub const SYS_munlock: ::c_long = 151; pub const SYS_mlockall: ::c_long = 152; pub const SYS_munlockall: ::c_long = 153; pub const SYS_sched_setparam: ::c_long = 154; pub const SYS_sched_getparam: ::c_long = 155; pub const SYS_sched_setscheduler: ::c_long = 156; pub const SYS_sched_getscheduler: ::c_long = 157; pub const SYS_sched_yield: ::c_long = 158; pub const SYS_sched_get_priority_max: ::c_long = 159; pub const SYS_sched_get_priority_min: ::c_long = 160; pub const SYS_sched_rr_get_interval: ::c_long = 161; pub const SYS_nanosleep: ::c_long = 162; pub const SYS_mremap: ::c_long = 163; pub const SYS_setresuid: ::c_long = 164; pub const SYS_getresuid: ::c_long = 165; pub const SYS_poll: ::c_long = 168; pub const SYS_nfsservctl: ::c_long = 169; pub const SYS_setresgid: ::c_long = 170; pub const SYS_getresgid: ::c_long = 171; pub const SYS_prctl: ::c_long = 172; pub const SYS_rt_sigreturn: ::c_long = 173; pub const SYS_rt_sigaction: ::c_long = 174; pub const SYS_rt_sigprocmask: ::c_long = 175; pub const SYS_rt_sigpending: ::c_long = 176; pub const SYS_rt_sigtimedwait: ::c_long = 177; pub const SYS_rt_sigqueueinfo: ::c_long = 178; pub const SYS_rt_sigsuspend: ::c_long = 179; pub const SYS_pread64: ::c_long = 180; pub const SYS_pwrite64: ::c_long = 181; pub const SYS_chown: ::c_long = 182; pub const SYS_getcwd: ::c_long = 183; pub const SYS_capget: ::c_long = 184; pub const SYS_capset: ::c_long = 185; pub const SYS_sigaltstack: ::c_long = 186; pub const SYS_sendfile: ::c_long = 187; pub const SYS_vfork: ::c_long = 190; pub const SYS_ugetrlimit: ::c_long = 191; pub const SYS_mmap2: ::c_long = 192; pub const SYS_truncate64: ::c_long = 193; pub const SYS_ftruncate64: ::c_long = 194; pub const SYS_stat64: ::c_long = 195; pub const SYS_lstat64: ::c_long = 196; pub const SYS_fstat64: ::c_long = 197; pub const SYS_lchown32: ::c_long = 198; pub const SYS_getuid32: ::c_long = 199; pub const SYS_getgid32: ::c_long = 200; pub const SYS_geteuid32: ::c_long = 201; pub const SYS_getegid32: ::c_long = 202; pub const SYS_setreuid32: ::c_long = 203; pub const SYS_setregid32: ::c_long = 204; pub const SYS_getgroups32: ::c_long = 205; pub const SYS_setgroups32: ::c_long = 206; pub const SYS_fchown32: ::c_long = 207; pub const SYS_setresuid32: ::c_long = 208; pub const SYS_getresuid32: ::c_long = 209; pub const SYS_setresgid32: ::c_long = 210; pub const SYS_getresgid32: ::c_long = 211; pub const SYS_chown32: ::c_long = 212; pub const SYS_setuid32: ::c_long = 213; pub const SYS_setgid32: ::c_long = 214; pub const SYS_setfsuid32: ::c_long = 215; pub const SYS_setfsgid32: ::c_long = 216; pub const SYS_getdents64: ::c_long = 217; pub const SYS_pivot_root: ::c_long = 218; pub const SYS_mincore: ::c_long = 219; pub const SYS_madvise: ::c_long = 220; pub const SYS_fcntl64: ::c_long = 221; pub const SYS_gettid: ::c_long = 224; pub const SYS_readahead: ::c_long = 225; pub const SYS_setxattr: ::c_long = 226; pub const SYS_lsetxattr: ::c_long = 227; pub const SYS_fsetxattr: ::c_long = 228; pub const SYS_getxattr: ::c_long = 229; pub const SYS_lgetxattr: ::c_long = 230; pub const SYS_fgetxattr: ::c_long = 231; pub const SYS_listxattr: ::c_long = 232; pub const SYS_llistxattr: ::c_long = 233; pub const SYS_flistxattr: ::c_long = 234; pub const SYS_removexattr: ::c_long = 235; pub const SYS_lremovexattr: ::c_long = 236; pub const SYS_fremovexattr: ::c_long = 237; pub const SYS_tkill: ::c_long = 238; pub const SYS_sendfile64: ::c_long = 239; pub const SYS_futex: ::c_long = 240; pub const SYS_sched_setaffinity: ::c_long = 241; pub const SYS_sched_getaffinity: ::c_long = 242; pub const SYS_io_setup: ::c_long = 243; pub const SYS_io_destroy: ::c_long = 244; pub const SYS_io_getevents: ::c_long = 245; pub const SYS_io_submit: ::c_long = 246; pub const SYS_io_cancel: ::c_long = 247; pub const SYS_exit_group: ::c_long = 248; pub const SYS_lookup_dcookie: ::c_long = 249; pub const SYS_epoll_create: ::c_long = 250; pub const SYS_epoll_ctl: ::c_long = 251; pub const SYS_epoll_wait: ::c_long = 252; pub const SYS_remap_file_pages: ::c_long = 253; pub const SYS_set_tid_address: ::c_long = 256; pub const SYS_timer_create: ::c_long = 257; pub const SYS_timer_settime: ::c_long = 258; pub const SYS_timer_gettime: ::c_long = 259; pub const SYS_timer_getoverrun: ::c_long = 260; pub const SYS_timer_delete: ::c_long = 261; pub const SYS_clock_settime: ::c_long = 262; pub const SYS_clock_gettime: ::c_long = 263; pub const SYS_clock_getres: ::c_long = 264; pub const SYS_clock_nanosleep: ::c_long = 265; pub const SYS_statfs64: ::c_long = 266; pub const SYS_fstatfs64: ::c_long = 267; pub const SYS_tgkill: ::c_long = 268; pub const SYS_utimes: ::c_long = 269; pub const SYS_arm_fadvise64_64: ::c_long = 270; pub const SYS_pciconfig_iobase: ::c_long = 271; pub const SYS_pciconfig_read: ::c_long = 272; pub const SYS_pciconfig_write: ::c_long = 273; pub const SYS_mq_open: ::c_long = 274; pub const SYS_mq_unlink: ::c_long = 275; pub const SYS_mq_timedsend: ::c_long = 276; pub const SYS_mq_timedreceive: ::c_long = 277; pub const SYS_mq_notify: ::c_long = 278; pub const SYS_mq_getsetattr: ::c_long = 279; pub const SYS_waitid: ::c_long = 280; pub const SYS_socket: ::c_long = 281; pub const SYS_bind: ::c_long = 282; pub const SYS_connect: ::c_long = 283; pub const SYS_listen: ::c_long = 284; pub const SYS_accept: ::c_long = 285; pub const SYS_getsockname: ::c_long = 286; pub const SYS_getpeername: ::c_long = 287; pub const SYS_socketpair: ::c_long = 288; pub const SYS_send: ::c_long = 289; pub const SYS_sendto: ::c_long = 290; pub const SYS_recv: ::c_long = 291; pub const SYS_recvfrom: ::c_long = 292; pub const SYS_shutdown: ::c_long = 293; pub const SYS_setsockopt: ::c_long = 294; pub const SYS_getsockopt: ::c_long = 295; pub const SYS_sendmsg: ::c_long = 296; pub const SYS_recvmsg: ::c_long = 297; pub const SYS_semop: ::c_long = 298; pub const SYS_semget: ::c_long = 299; pub const SYS_semctl: ::c_long = 300; pub const SYS_msgsnd: ::c_long = 301; pub const SYS_msgrcv: ::c_long = 302; pub const SYS_msgget: ::c_long = 303; pub const SYS_msgctl: ::c_long = 304; pub const SYS_shmat: ::c_long = 305; pub const SYS_shmdt: ::c_long = 306; pub const SYS_shmget: ::c_long = 307; pub const SYS_shmctl: ::c_long = 308; pub const SYS_add_key: ::c_long = 309; pub const SYS_request_key: ::c_long = 310; pub const SYS_keyctl: ::c_long = 311; pub const SYS_semtimedop: ::c_long = 312; pub const SYS_vserver: ::c_long = 313; pub const SYS_ioprio_set: ::c_long = 314; pub const SYS_ioprio_get: ::c_long = 315; pub const SYS_inotify_init: ::c_long = 316; pub const SYS_inotify_add_watch: ::c_long = 317; pub const SYS_inotify_rm_watch: ::c_long = 318; pub const SYS_mbind: ::c_long = 319; pub const SYS_get_mempolicy: ::c_long = 320; pub const SYS_set_mempolicy: ::c_long = 321; pub const SYS_openat: ::c_long = 322; pub const SYS_mkdirat: ::c_long = 323; pub const SYS_mknodat: ::c_long = 324; pub const SYS_fchownat: ::c_long = 325; pub const SYS_futimesat: ::c_long = 326; pub const SYS_fstatat64: ::c_long = 327; pub const SYS_unlinkat: ::c_long = 328; pub const SYS_renameat: ::c_long = 329; pub const SYS_linkat: ::c_long = 330; pub const SYS_symlinkat: ::c_long = 331; pub const SYS_readlinkat: ::c_long = 332; pub const SYS_fchmodat: ::c_long = 333; pub const SYS_faccessat: ::c_long = 334; pub const SYS_pselect6: ::c_long = 335; pub const SYS_ppoll: ::c_long = 336; pub const SYS_unshare: ::c_long = 337; pub const SYS_set_robust_list: ::c_long = 338; pub const SYS_get_robust_list: ::c_long = 339; pub const SYS_splice: ::c_long = 340; pub const SYS_arm_sync_file_range: ::c_long = 341; pub const SYS_tee: ::c_long = 342; pub const SYS_vmsplice: ::c_long = 343; pub const SYS_move_pages: ::c_long = 344; pub const SYS_getcpu: ::c_long = 345; pub const SYS_epoll_pwait: ::c_long = 346; pub const SYS_kexec_load: ::c_long = 347; pub const SYS_utimensat: ::c_long = 348; pub const SYS_signalfd: ::c_long = 349; pub const SYS_timerfd_create: ::c_long = 350; pub const SYS_eventfd: ::c_long = 351; pub const SYS_fallocate: ::c_long = 352; pub const SYS_timerfd_settime: ::c_long = 353; pub const SYS_timerfd_gettime: ::c_long = 354; pub const SYS_signalfd4: ::c_long = 355; pub const SYS_eventfd2: ::c_long = 356; pub const SYS_epoll_create1: ::c_long = 357; pub const SYS_dup3: ::c_long = 358; pub const SYS_pipe2: ::c_long = 359; pub const SYS_inotify_init1: ::c_long = 360; pub const SYS_preadv: ::c_long = 361; pub const SYS_pwritev: ::c_long = 362; pub const SYS_rt_tgsigqueueinfo: ::c_long = 363; pub const SYS_perf_event_open: ::c_long = 364; pub const SYS_recvmmsg: ::c_long = 365; pub const SYS_accept4: ::c_long = 366; pub const SYS_fanotify_init: ::c_long = 367; pub const SYS_fanotify_mark: ::c_long = 368; pub const SYS_prlimit64: ::c_long = 369; pub const SYS_name_to_handle_at: ::c_long = 370; pub const SYS_open_by_handle_at: ::c_long = 371; pub const SYS_clock_adjtime: ::c_long = 372; pub const SYS_syncfs: ::c_long = 373; pub const SYS_sendmmsg: ::c_long = 374; pub const SYS_setns: ::c_long = 375; pub const SYS_process_vm_readv: ::c_long = 376; pub const SYS_process_vm_writev: ::c_long = 377; pub const SYS_kcmp: ::c_long = 378; pub const SYS_finit_module: ::c_long = 379; pub const SYS_sched_setattr: ::c_long = 380; pub const SYS_sched_getattr: ::c_long = 381; pub const SYS_renameat2: ::c_long = 382; pub const SYS_seccomp: ::c_long = 383; pub const SYS_getrandom: ::c_long = 384; pub const SYS_memfd_create: ::c_long = 385; pub const SYS_bpf: ::c_long = 386; pub const SYS_execveat: ::c_long = 387; pub const SYS_userfaultfd: ::c_long = 388; pub const SYS_membarrier: ::c_long = 389; pub const SYS_mlock2: ::c_long = 390; pub const SYS_copy_file_range: ::c_long = 391; pub const SYS_preadv2: ::c_long = 392; pub const SYS_pwritev2: ::c_long = 393; pub const SYS_pkey_mprotect: ::c_long = 394; pub const SYS_pkey_alloc: ::c_long = 395; pub const SYS_pkey_free: ::c_long = 396; pub const SYS_statx: ::c_long = 397; pub const SYS_pidfd_open: ::c_long = 434; pub const SYS_clone3: ::c_long = 435; cfg_if! { if #[cfg(libc_align)] { mod align; pub use self::align::*; } }
35.590703
79
0.69023
d9d3535cdcef69d9ccb94f45228966940cb512aa
3,497
dart
Dart
packages/json_serializer/test/deserialization_test.dart
dart-backend/server-utilities
a6fad92806ebe134e99f75fbba774ca0adb47174
[ "BSD-3-Clause" ]
2
2021-09-19T10:40:24.000Z
2021-11-06T22:53:06.000Z
packages/json_serializer/test/deserialization_test.dart
dart-backend/server-utilities
a6fad92806ebe134e99f75fbba774ca0adb47174
[ "BSD-3-Clause" ]
null
null
null
packages/json_serializer/test/deserialization_test.dart
dart-backend/server-utilities
a6fad92806ebe134e99f75fbba774ca0adb47174
[ "BSD-3-Clause" ]
null
null
null
import 'package:belatuk_json_serializer/belatuk_json_serializer.dart' as god; import 'package:test/test.dart'; import 'shared.dart'; main() { god.logger.onRecord.listen(printRecord); group('deserialization', () { test('deserialize primitives', testDeserializationOfPrimitives); test('deserialize maps', testDeserializationOfMaps); test('deserialize maps + reflection', testDeserializationOfMapsWithReflection); test('deserialize lists + reflection', testDeserializationOfListsAsWellAsViaReflection); test('deserialize with schema validation', testDeserializationWithSchemaValidation); }); } testDeserializationOfPrimitives() { expect(god.deserialize('1'), equals(1)); expect(god.deserialize('1.4'), equals(1.4)); expect(god.deserialize('"Hi!"'), equals("Hi!")); expect(god.deserialize("true"), equals(true)); expect(god.deserialize("null"), equals(null)); } testDeserializationOfMaps() { String simpleJson = '{"hello":"world", "one": 1, "class": {"hello": "world"}}'; String nestedJson = '{"foo": {"bar": "baz", "funny": {"how": "life", "seems": 2, "hate": "us sometimes"}}}'; var simple = god.deserialize(simpleJson) as Map; var nested = god.deserialize(nestedJson) as Map; expect(simple['hello'], equals('world')); expect(simple['one'], equals(1)); expect(simple['class']['hello'], equals('world')); expect(nested['foo']['bar'], equals('baz')); expect(nested['foo']['funny']['how'], equals('life')); expect(nested['foo']['funny']['seems'], equals(2)); expect(nested['foo']['funny']['hate'], equals('us sometimes')); } class Pokedex { Map<String, int>? pokemon; } testDeserializationOfMapsWithReflection() { var s = '{"pokemon": {"Bulbasaur": 1, "Deoxys": 382}}'; var pokedex = god.deserialize(s, outputType: Pokedex) as Pokedex; expect(pokedex.pokemon, hasLength(2)); expect(pokedex.pokemon!['Bulbasaur'], 1); expect(pokedex.pokemon!['Deoxys'], 382); } testDeserializationOfListsAsWellAsViaReflection() { String json = '''[ { "hello": "world", "nested": [] }, { "hello": "dolly", "nested": [ { "bar": "baz" }, { "bar": "fight" } ] } ] '''; var list = god.deserialize(json, outputType: (<SampleClass>[]).runtimeType) as List<SampleClass>; SampleClass first = list[0]; SampleClass second = list[1]; expect(list.length, equals(2)); expect(first.hello, equals("world")); expect(first.nested.length, equals(0)); expect(second.hello, equals("dolly")); expect(second.nested.length, equals(2)); SampleNestedClass firstNested = second.nested[0]; SampleNestedClass secondNested = second.nested[1]; expect(firstNested.bar, equals("baz")); expect(secondNested.bar, equals("fight")); } testDeserializationWithSchemaValidation() async { String babelRcJson = '{"presets":["es2015","stage-0"],"plugins":["add-module-exports"]}'; var deserialized = god.deserialize(babelRcJson, outputType: BabelRc) as BabelRc; print(deserialized.presets.runtimeType); expect(deserialized.presets is List, equals(true)); expect(deserialized.presets.length, equals(2)); expect(deserialized.presets[0], equals('es2015')); expect(deserialized.presets[1], equals('stage-0')); expect(deserialized.plugins is List, equals(true)); expect(deserialized.plugins.length, equals(1)); expect(deserialized.plugins[0], equals('add-module-exports')); }
30.146552
94
0.663998
bb543d4af2afd677d710d6b0f4d8ef6e55dec4cb
2,878
sql
SQL
emulador/sql-files/upgrades/upgrade_20210308.sql
dattebayoonline/Dattebayo
09526566f63e76b9a5ce80f1f4e3d1918e26cf01
[ "DOC", "OLDAP-2.2.1" ]
1
2022-03-24T17:24:12.000Z
2022-03-24T17:24:12.000Z
emulador/sql-files/upgrades/upgrade_20210308.sql
eluvju/Dattebayo
cc0fc92d8827f4890a8595bc3be0a71ef98767c1
[ "DOC" ]
null
null
null
emulador/sql-files/upgrades/upgrade_20210308.sql
eluvju/Dattebayo
cc0fc92d8827f4890a8595bc3be0a71ef98767c1
[ "DOC" ]
null
null
null
-- 16.1 official variables UPDATE `char_reg_num` SET `key` = 'ep16_royal' WHERE `key` = 'banquet_main_quest' AND `value` < 16; UPDATE `char_reg_num` SET `key` = 'ep16_royal', `value` = `value` - 1 WHERE `key` = 'banquet_main_quest' AND `value` < 20; UPDATE `char_reg_num` SET `key` = 'ep16_royal', `value` = `value` - 2 WHERE `key` = 'banquet_main_quest' AND `value` < 26; UPDATE `char_reg_num` SET `key` = 'ep16_royal', `value` = 25 WHERE `key` = 'banquet_main_quest' AND `value` > 25; DELETE FROM `char_reg_num` WHERE `key` = 'banquet_nerius_quest'; DELETE FROM `char_reg_num` WHERE `key` = 'banquet_heine_quest'; DELETE FROM `char_reg_num` WHERE `key` = 'banquet_richard_quest'; UPDATE `char_reg_num` SET `key` = 'ep16_wal' WHERE `key` = 'banquet_walther_quest' AND `value` < 2; UPDATE `char_reg_num` SET `key` = 'ep16_wal', `value` = `value` - 1 WHERE `key` = 'banquet_walther_quest' AND `value` > 1; UPDATE `char_reg_num` SET `key` = 'ep16_lug' WHERE `key` = 'banquet_roegenburg_quest'; UPDATE `char_reg_num` SET `key` = 'ep16_gaobs' WHERE `key` = 'banquet_geoborg_quest'; UPDATE `char_reg_num` SET `key` = 'ep16_wig' WHERE `key` = 'banquet_wigner_quest' AND `value` < 5; UPDATE `char_reg_num` SET `key` = 'ep16_wig', `value` = `value` + 5 WHERE `key` = 'banquet_wigner_quest' AND `value` > 5; UPDATE `char_reg_num` c, `quest` q SET c.`key` = 'ep16_wig', c.`value` = 10 WHERE c.`key` = 'banquet_wigner_quest' AND c.`value` = 5 AND q.`quest_id` = 14482 AND q.`state` = 1; UPDATE `char_reg_num` c, `quest` q SET c.`key` = 'ep16_wig', c.`value` = 9 WHERE c.`key` = 'banquet_wigner_quest' AND c.`value` = 5 AND q.`quest_id` = 14480 AND q.`state` = 2; UPDATE `char_reg_num` c, `quest` q SET c.`key` = 'ep16_wig', c.`value` = 8 WHERE c.`key` = 'banquet_wigner_quest' AND c.`value` = 5 AND q.`quest_id` = 14480 AND q.`state` = 1; UPDATE `char_reg_num` c, `quest` q SET c.`key` = 'ep16_wig', c.`value` = 7 WHERE c.`key` = 'banquet_wigner_quest' AND c.`value` = 5 AND q.`quest_id` = 14481 AND q.`state` = 2; UPDATE `char_reg_num` c, `quest` q SET c.`key` = 'ep16_wig', c.`value` = 6 WHERE c.`key` = 'banquet_wigner_quest' AND c.`value` = 5 AND q.`quest_id` = 14481 AND q.`state` = 1; UPDATE `char_reg_num` SET `key` = 'ep16_wig' WHERE `key` = 'banquet_wigner_quest' AND `value` = 5; UPDATE `char_reg_num` SET `key` = 'ep16_cookbs' WHERE `key` = 'banquet_quest_cooking' AND `value` < 3; UPDATE `char_reg_num` SET `key` = 'ep16_cookbs', `value` = 2 WHERE `key` = 'banquet_quest_cooking' AND `value` = 3; UPDATE `char_reg_num` SET `key` = 'ep16_cookbs', `value` = `value` + 8 WHERE `key` = 'banquet_quest_cooking' AND `value` > 3; DELETE FROM `quest` WHERE `quest_id` = 11428; DELETE FROM `quest` WHERE `quest_id` = 11429; DELETE FROM `quest` WHERE `quest_id` = 11430; DELETE FROM `quest` WHERE `quest_id` = 11431; DELETE FROM `char_reg_num` WHERE `key` = 'banquet_quest_sauce';
71.95
125
0.680334