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
63efed8b34301091589fcd7b638eeeb7b2bdd38e
807
rs
Rust
rust/display-sim-native/src/lib.rs
theypsilon/crt-3d-sim
e96d1f7f32c753da9febe34b2aed4e26b6381877
[ "MIT" ]
1
2018-10-19T13:17:03.000Z
2018-10-19T13:17:03.000Z
rust/display-sim-native/src/lib.rs
theypsilon/crt-3d-sim
e96d1f7f32c753da9febe34b2aed4e26b6381877
[ "MIT" ]
null
null
null
rust/display-sim-native/src/lib.rs
theypsilon/crt-3d-sim
e96d1f7f32c753da9febe34b2aed4e26b6381877
[ "MIT" ]
1
2018-12-02T19:17:53.000Z
2018-12-02T19:17:53.000Z
/* Copyright (c) 2019-2021 José manuel Barroso Galindo <theypsilon@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ mod native_entrypoint; pub use native_entrypoint::*;
42.473684
78
0.753408
06ca9d498dc76d142eed9040b57170f95b5ba2f5
533
py
Python
Physics250-ME27/accelerationMagnitude.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME27/accelerationMagnitude.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME27/accelerationMagnitude.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
import numpy as np import math def accelerationMag(): velcoity = input("Input velocity: ") magField = input("Input the magnetic field (nT): ") angle = input("Input the angle: ") velocity = float(velcoity) magField = float(magField) angle = float(angle) magField = magField * pow(10,-9) #consants q = 1.6 * pow(10,-19) Me = 9.11 * pow(10,-31) acceleration = (math.sin(math.radians(angle))*velocity*q*magField)/Me print(acceleration*pow(10,-6)) accelerationMag()
26.65
74
0.617261
4cd34283dccc789b0c3fd555d4e00db450efe4e1
195
py
Python
7_kyu/Number_to_Bytes.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
7_kyu/Number_to_Bytes.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
7_kyu/Number_to_Bytes.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
from typing import List def to_bytes(n: int) -> List[str]: result = [] while n > 0 or not result: result.insert( 0, format(n & 0xff, '08b') ) n = n >> 8 return result
24.375
51
0.553846
69a6b2f332911a0e34146d6b7f2ce6b7b2e0b47d
203
rb
Ruby
spec/kp_jwt/tokens/auth_spec.rb
kevinponce/kp_jwt
74f3f730bc003b16720e902e848f7d7bffdaa49f
[ "MIT" ]
null
null
null
spec/kp_jwt/tokens/auth_spec.rb
kevinponce/kp_jwt
74f3f730bc003b16720e902e848f7d7bffdaa49f
[ "MIT" ]
null
null
null
spec/kp_jwt/tokens/auth_spec.rb
kevinponce/kp_jwt
74f3f730bc003b16720e902e848f7d7bffdaa49f
[ "MIT" ]
null
null
null
# frozen_string_literal: true require 'spec_helper_integration' require 'kp_jwt/tokens/auth' describe KpJwt::Tokens::Auth do it { expect(KpJwt::Tokens::Auth.new(1, 'user').build).to_not be_nil } end
22.555556
71
0.758621
8da2abff895201cb36e305b3944672d0e7897e84
125
js
JavaScript
curso/unidade IV - arrays/08 - forEach.js
yoruichi-sama/javascript
13d7f40ae1ef08568b6b9210f8194646e9d6b2f3
[ "MIT" ]
null
null
null
curso/unidade IV - arrays/08 - forEach.js
yoruichi-sama/javascript
13d7f40ae1ef08568b6b9210f8194646e9d6b2f3
[ "MIT" ]
null
null
null
curso/unidade IV - arrays/08 - forEach.js
yoruichi-sama/javascript
13d7f40ae1ef08568b6b9210f8194646e9d6b2f3
[ "MIT" ]
null
null
null
const numeros = [1, 2, 3, 4, 5, 6]; numeros.forEach((element, index, array) => { console.log(element, index, array); });
25
44
0.608
af2d38414276ce72f6fa6e049df7497fc3b47045
927
py
Python
upload_to_github.py
RayJiang16/JHExtension
e6cf5dd3631828b6c4e66c1b5e8811b54118792c
[ "MIT" ]
null
null
null
upload_to_github.py
RayJiang16/JHExtension
e6cf5dd3631828b6c4e66c1b5e8811b54118792c
[ "MIT" ]
null
null
null
upload_to_github.py
RayJiang16/JHExtension
e6cf5dd3631828b6c4e66c1b5e8811b54118792c
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 import os import subprocess import shutil name = os.getcwd().split('/')[-1] spec = name + '.podspec' def pushToGit(desc): url = "git@github.com:RayJiang16/"+name+".git" subprocess.call(["git", "add", "."]) subprocess.call(["git", "commit", "-m", desc]) subprocess.call(["git", "remote", "add", "origin", url]) subprocess.call(["git", "push", "origin", "master"]) def tagToGit(ver): subprocess.call(["git", "tag", ver]) subprocess.call(["git", "push", "--tags"]) def pushToRepo(spec): subprocess.call(["pod", "trunk", "push", spec, "--verbose", "--allow-warnings"]) if __name__ == '__main__': desc = raw_input("请输入备注:") ver = raw_input("请输入版本:") pushToGit(desc) print("========= 已提交到远程库 =========") tagToGit(ver) print("========= 已打上Tag:" + ver + " =========") pushToRepo(spec) print("========= 已提交到索引库 =========")
28.090909
84
0.556634
35b03ae23f6960c4389bbaa16aa983bc876104e0
845
dart
Dart
xml_serializable/lib/builder.dart
a-eniou-pvotal/dart-xml-serializable
f318245585e96e574904444dd2046dc47a326126
[ "MIT" ]
2
2021-11-17T13:16:02.000Z
2022-01-24T14:20:12.000Z
xml_serializable/lib/builder.dart
a-eniou-pvotal/dart-xml-serializable
f318245585e96e574904444dd2046dc47a326126
[ "MIT" ]
2
2022-01-05T16:06:32.000Z
2022-03-23T19:28:34.000Z
xml_serializable/lib/builder.dart
a-eniou-pvotal/dart-xml-serializable
f318245585e96e574904444dd2046dc47a326126
[ "MIT" ]
1
2022-01-05T16:59:29.000Z
2022-01-05T16:59:29.000Z
/// Configuration for using `package:build`-compatible build systems. /// /// See: /// * [build_runner](https://pub.dev/packages/build_runner) /// /// This library is **not** intended to be imported by typical end-users unless /// you are creating a custom compilation pipeline. See documentation for /// details, and `build.yaml` for how these builders are configured by default. library xml_serializable.builder; import 'package:build/build.dart'; import 'package:source_gen/source_gen.dart'; import 'package:xml_serializable/xml_serializable.dart'; /// Supports `package:build_runner` creation and configuration of /// `xml_serializable`. /// /// Not meant to be invoked by hand-authored code. Builder xmlSerializableBuilder(BuilderOptions options) => SharedPartBuilder( [XmlSerializableGenerator()], 'xml_serializable', );
36.73913
79
0.751479
a5c7b77c3b6ea4daacf7c4b6f9eb20edc8c3faa6
397
rs
Rust
crates/socket/src/error.rs
infinyon/fluvio-socket
229ff6cf4e74fa59017a502c939fb4b574aa5959
[ "Apache-2.0" ]
2
2020-10-08T17:06:59.000Z
2020-11-03T16:53:59.000Z
crates/socket/src/error.rs
infinyon/fluvio-socket
229ff6cf4e74fa59017a502c939fb4b574aa5959
[ "Apache-2.0" ]
6
2020-10-07T19:41:26.000Z
2021-01-30T02:04:24.000Z
crates/socket/src/error.rs
infinyon/fluvio-socket
229ff6cf4e74fa59017a502c939fb4b574aa5959
[ "Apache-2.0" ]
5
2020-09-29T10:25:03.000Z
2021-01-26T22:24:13.000Z
use fluvio_future::zero_copy::SendFileError; use std::io::Error as IoError; use thiserror::Error; #[derive(Error, Debug)] pub enum FlvSocketError { #[error(transparent)] IoError { #[from] source: IoError, }, #[error("Socket closed")] SocketClosed, #[error("Zero-copy IO error")] SendFileError { #[from] source: SendFileError, }, }
18.904762
44
0.602015
66092108e8b606cca9cf1fc796c8925db4ea81e5
731
py
Python
start.py
OrangeFlare/HHUD
87d41b43b844a12d68fa1473c8b307861da0ffb4
[ "Apache-2.0" ]
null
null
null
start.py
OrangeFlare/HHUD
87d41b43b844a12d68fa1473c8b307861da0ffb4
[ "Apache-2.0" ]
null
null
null
start.py
OrangeFlare/HHUD
87d41b43b844a12d68fa1473c8b307861da0ffb4
[ "Apache-2.0" ]
null
null
null
from tkinter import Tk, Label from obd import OBD, commands root = Tk() root.configure(background='black') # https://gist.github.com/TravisJoe/5576258 root.overrideredirect(True) root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight())) root.focus_set() root.bind("<Escape>", lambda e: e.widget.quit()) speed = Label(root) speed.pack() def speedometer(): speedData = OBD().query(commands.SPEED).value.to("mph") speedText = str(speedData)+" mph" speed.config(text=speedText, bg='black', fg='#F4511E', font=("Helvetica", 72, "bold")) speed.place(anchor='center', relx=0.5, rely=0.5) root.after(1000, speedometer) # Update speedometer every second speedometer() root.mainloop()
29.24
90
0.709986
6b6af11a5342ab53b1e556c2c7111e9894b00dcf
369
cpp
C++
DearPyGui/src/ui/AppItems/misc/mvSpacer.cpp
geekbozu/DearPyGui
bc7e7ca98e9b047a6fde727608f1e109b49b3ee2
[ "MIT" ]
null
null
null
DearPyGui/src/ui/AppItems/misc/mvSpacer.cpp
geekbozu/DearPyGui
bc7e7ca98e9b047a6fde727608f1e109b49b3ee2
[ "MIT" ]
null
null
null
DearPyGui/src/ui/AppItems/misc/mvSpacer.cpp
geekbozu/DearPyGui
bc7e7ca98e9b047a6fde727608f1e109b49b3ee2
[ "MIT" ]
null
null
null
#include "mvSpacer.h" #include "mvItemRegistry.h" namespace Marvel { mvSpacer::mvSpacer(mvUUID uuid) : mvAppItem(uuid) { } void mvSpacer::draw(ImDrawList* drawlist, float x, float y) { if(_width == 0 && _height == 0) ImGui::Spacing(); else ImGui::Dummy({ (float)_width, (float)_height }); } }
18.45
63
0.552846
ddb317a3fe3c68298f442a2990433b401ae7e28d
2,214
java
Java
src/main/java/ar/com/unpaz/organizerddd/presentation/consoleview/ConsoleAdminView.java
lucasfrias0612/organizer-DDD
bcef786e5297a993d78b4635a5db9a71011b8666
[ "MIT" ]
null
null
null
src/main/java/ar/com/unpaz/organizerddd/presentation/consoleview/ConsoleAdminView.java
lucasfrias0612/organizer-DDD
bcef786e5297a993d78b4635a5db9a71011b8666
[ "MIT" ]
null
null
null
src/main/java/ar/com/unpaz/organizerddd/presentation/consoleview/ConsoleAdminView.java
lucasfrias0612/organizer-DDD
bcef786e5297a993d78b4635a5db9a71011b8666
[ "MIT" ]
null
null
null
package ar.com.unpaz.organizerddd.presentation.consoleview; import java.util.List; import java.util.Scanner; import ar.com.unpaz.organizerddd.domain.entitys.User; import ar.com.unpaz.organizerddd.presentation.controllers.IController; import ar.com.unpaz.organizerddd.presentation.mainview.MainViewOperations; import ar.com.unpaz.organizerddd.transversalinfrastructure.login.LoginController; public class ConsoleAdminView implements MainViewOperations<User> { private IController<User> controller; private int option; private Scanner scan; private ArtCreator art; private List<User> userList; public ConsoleAdminView() { // TODO Auto-generated constructor stub art = new ArtCreator(); scan = new Scanner(System.in); } @Override public void setVisible() { // TODO Auto-generated method stub art.ShowArt("Bienvenido al modulo admin"); System.out.println("\n"); do { showMenu(); loadOptions(); } while (option != 4); } private void showMenu() { System.out.println("1-MOSTRAR USUARIOS"); System.out.println("2-CREAR UN NUEVO USUARIO"); System.out.println("3-BORRAR UN USUARIO"); System.out.println("4-SALIR"); } private void loadOptions() { System.out.println("Seleccionar una opcion"); option = scan.nextInt(); switch (option) { case 1: showPasswordList(); break; case 2: System.out.println("Falta implementar"); break; case 3: System.out.println("Falta implementar"); break; case 4: System.out.println("Aplicacion cerrada"); break; } } private void showPasswordList() { // TODO Auto-generated method stub for (User us : userList) { System.out.println(us); } System.out.println("\n"); } @Override public void setController(IController<User> controller) { // TODO Auto-generated method stub this.controller = controller; } @Override public void setLogOut(LoginController login) { // TODO Auto-generated method stub } @Override public void load() { // TODO Auto-generated method stub userList = controller.get(); } @Override public void update() { // TODO Auto-generated method stub } @Override public void showInMemWarning() { // TODO Auto-generated method stub } }
21.085714
81
0.715899
83610a3dca1235e92d79b92147553645a5fdb9c6
9,194
ts
TypeScript
src/app/shared/decorators/module-aware.decorator.ts
design-automation/mobius-parametric-modeller-dev-0-8
f3c14bc2a8dd705724bbfad4998e65bcf80e1a39
[ "MIT" ]
null
null
null
src/app/shared/decorators/module-aware.decorator.ts
design-automation/mobius-parametric-modeller-dev-0-8
f3c14bc2a8dd705724bbfad4998e65bcf80e1a39
[ "MIT" ]
null
null
null
src/app/shared/decorators/module-aware.decorator.ts
design-automation/mobius-parametric-modeller-dev-0-8
f3c14bc2a8dd705724bbfad4998e65bcf80e1a39
[ "MIT" ]
1
2021-12-27T19:13:41.000Z
2021-12-27T19:13:41.000Z
import { Injectable } from '@angular/core'; import { IModule, IFunction } from '@models/procedure'; import { IArgument } from '@models/code'; import doc from '@assets/typedoc-json/doc.json'; // const doc = require('@assets/typedoc-json/doc.json'); import * as showdown from 'showdown'; // @ts-ignore import * as Modules from 'assets/core/modules'; const mdConverter = new showdown.Converter({literalMidWordUnderscores: true}); const module_list = []; const extraMods = [ 'variable', 'comment', 'expression', 'control_flow', 'global_func', 'local_func', 'dashboard', 'editor', 'flowchart', 'gallery', 'menu', 'console', 'geoviewer', 'cadviewer', 'vrviewer']; const extraModPaths = { variable: 'docCF/variable', comment: 'docCF/comment', expression: 'docCF/expression', control_flow: 'docCF/control_flow', local_func: 'docCF/local_func', global_func: 'docCF/global_func', dashboard: 'docUI/dashboard', editor: 'docUI/editor', flowchart: 'docUI/flowchart', gallery: 'docUI/gallery', menu: 'docUI/menu', console: 'docVW/console', geoviewer: 'docVW/geo-viewer', cadviewer: 'docVW/cad-viewer', vrviewer: 'docVW/vr-viewer', vrviewerhotspot: 'docVW/vr-viewer-hotspots', }; const asyncFuncList = ['io.Read', 'io.Write', 'io.Import', 'io.Export', 'io._getFile', 'util.ModelCompare', 'util.ModelMerge']; // todo: bug fix for defaults function extract_params(func: Function): [IArgument[], boolean] { const fnStr = func.toString().replace( /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg, ''); let result = fnStr.slice(fnStr.indexOf('(') + 1, fnStr.indexOf(')')).split(','); // .match( /([^\s,]+)/g); if (result === null || result[0] === '') { result = []; } const final_result = result.map(function(r) { r = r.trim(); const r_value = r.split('='); if (r_value.length === 1) { return { name: r_value[0].trim(), value: undefined}; } else { return { name: r_value[0].trim(), value: undefined}; } }); let hasReturn = true; if (fnStr.indexOf('return') === -1 || fnStr.indexOf('return;') !== -1) { hasReturn = false; } return [final_result, hasReturn]; } for ( const m_name in Modules ) { if (!Modules[m_name] || (typeof Modules[m_name] !== 'object')) { continue; } // if (m_name[0] === '_') { continue; } const modObj = <IModule>{}; modObj.module = m_name; modObj.functions = []; for ( const fn_name of Object.keys(Modules[m_name])) { // if (fn_name[0] === '_') { continue; } const func = Modules[m_name][fn_name]; const fnObj = <IFunction>{}; fnObj.module = m_name; fnObj.name = fn_name; if (asyncFuncList.indexOf(`${m_name}.${fn_name}`) !== -1) { const paramFunc = Modules[m_name]['_Async_Param_' + fn_name] fnObj.argCount = paramFunc.length; const args = extract_params(paramFunc); fnObj.args = args[0]; fnObj.hasReturn = args[1]; modObj.functions.push(fnObj); } else { fnObj.argCount = func.length; const args = extract_params(func); fnObj.args = args[0]; fnObj.hasReturn = args[1]; modObj.functions.push(fnObj); } } module_list.push(modObj); } function analyzeParamType(fn, paramType) { if (paramType.type === 'array') { return `${analyzeParamType(fn, paramType.elementType)}[]`; } else if (paramType.type === 'intrinsic' || paramType.type === 'reference') { return paramType.name; } else if (paramType.type === 'union') { return paramType.types.map((tp: any) => analyzeParamType(fn, tp)).join(' | '); } else if (paramType.type === 'tuple') { return '[' + paramType.elements.map((tp: any) => analyzeParamType(fn, tp)).join(', ') + ']'; } else { /** * TODO: Update unrecognized param type here */ console.log('param type requires updating:', paramType); console.log('in function:', fn.module + '.' + fn.name); return paramType.type; } } function addDoc(mod, modName, docs) { const moduleDoc = {}; if (mod.comment && mod.comment.shortText) { moduleDoc['description'] = mod.comment.shortText; } if (!mod.children) { return; } for (const func of mod.children) { const fn = {}; fn['name'] = func.name; fn['module'] = modName; if (modName === 'constants') { fn['description'] = func['comment'].shortText; moduleDoc[func.name] = fn; } if (!func['signatures']) { continue; } if (func['signatures'][0].comment) { const cmmt = func['signatures'][0].comment; fn['description'] = cmmt.shortText; if (cmmt.text) { fn['description'] = fn['description'] + cmmt.text; } if (cmmt.tags) { for (const fnTag of cmmt.tags) { if (fnTag.tag === 'summary') { fn['summary'] = fnTag.text; } else { if (fn[fnTag.tag]) { fn[fnTag.tag].push(fnTag.text); } else { fn[fnTag.tag] = [fnTag.text]; } } } } fn['returns'] = cmmt.returns; if (fn['returns']) { fn['returns'] = fn['returns'].trim(); } } fn['parameters'] = []; if (func['signatures'][0].parameters) { for (const param of func['signatures'][0].parameters) { let namecheck = true; for (const systemVarName in Modules._parameterTypes) { if (param.name === Modules._parameterTypes[systemVarName]) { namecheck = false; break; } } if (!namecheck) { fn['parameters'].push(undefined); continue; } const pr = {}; pr['name'] = param.name; if (param.comment) { pr['description'] = param.comment.shortText || param.comment.text; // if (pr['description']) { // pr['description'] = mdConverter.makeHtml(pr['description']).replace(/\n/g, '<br/>') // } } pr['type'] = analyzeParamType(fn, param.type); fn['parameters'].push(pr); } } if (fn['description']) { fn['description'] = mdConverter.makeHtml(fn['description']).replace(/\\n/g, '<br/>'); } moduleDoc[func.name] = fn; } docs[modName] = moduleDoc; } function addModFuncDoc(modDoc, modUrl, modName) { fetch(modUrl).then(res => { if (!res.ok) { console.log('HTTP Request Error: Unable to retrieve documentation for ' + modName); return ''; } const mod = {}; modDoc[modName] = mod; res.text().then(docText => { const splitText = docText.split('## '); if (splitText.length === 1) { const funcText = docText.split('# ')[1]; const funcName = funcText.split('\n')[0].trim().toLowerCase(); if (extraMods.indexOf(modName) !== -1) { mod[funcName] = '## ' + funcText.trim(); } else { mod[funcName] = '## ' + modName + '.' + funcText.trim(); } } else { for (const funcText of splitText) { if (funcText[0] === '#') { continue; } const funcName = funcText.split('\n')[0].trim().toLowerCase(); if (extraMods.indexOf(modName) !== -1) { mod[funcName] = '## ' + funcText.trim(); } else { mod[funcName] = '## ' + modName + '.' + funcText.trim(); } } } }); }); } const moduleDocs = {}; const inlineDocs = {}; // const functionDocs = {}; for (const mod of doc.children) { let modName: any = mod.sources[0].fileName.replace(/"/g, '').replace(/'/g, '').split('/'); if (modName[0] === 'inline') { modName = modName[modName.length - 1]; addDoc(mod, mod.name, inlineDocs); } else if (modName[0] === 'modules') { modName = modName[modName.length - 1]; if (modName.substr(0, 1) === '_' || modName === 'index' || modName === 'categorization') { continue; } addDoc(mod, mod.name, moduleDocs); // addModFuncDoc(functionDocs, `assets/typedoc-json/docMD/${modName}.md`, modName); } } for (const i of extraMods) { // addModFuncDoc(functionDocs, `assets/typedoc-json/${extraModPaths[i]}.md`, i); } export const ModuleList = module_list; export const ModuleDocList = moduleDocs; export const InlineDocList = inlineDocs;
36.629482
110
0.513705
1f46bd93ee7c0e54b7e842c3a3fc89e54323f163
1,198
cs
C#
Epi.Web.Common/BusinessObject/OrganizationBO.cs
82ndAirborneDiv/Epi-Info-Cloud-Data-Capture
bf60a3fd50d9d658b2a9069f7634b95ba6fc4a2e
[ "Apache-2.0" ]
4
2020-01-21T14:49:57.000Z
2021-06-21T11:12:58.000Z
Epi.Web.Common/BusinessObject/OrganizationBO.cs
82ndAirborneDiv/Epi-Info-Cloud-Data-Capture
bf60a3fd50d9d658b2a9069f7634b95ba6fc4a2e
[ "Apache-2.0" ]
5
2018-09-19T17:54:16.000Z
2020-06-09T13:17:16.000Z
Epi.Web.Common/BusinessObject/OrganizationBO.cs
82ndAirborneDiv/Epi-Info-Cloud-Data-Capture
bf60a3fd50d9d658b2a9069f7634b95ba6fc4a2e
[ "Apache-2.0" ]
6
2020-01-21T21:18:41.000Z
2021-06-21T11:13:00.000Z
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace Epi.Web.Enter.Common.BusinessObject { [DataContract(Namespace = "http://www.yourcompany.com/types/")] public class OrganizationBO { private string _Organization; private string _OrganizationKey; private bool _IsEnabled; private int _OrganizationId; private List<UserBO> _OrganizationUserList; [DataMember] public string Organization { get { return _Organization; } set { _Organization = value; } } [DataMember] public string OrganizationKey { get { return _OrganizationKey; } set { _OrganizationKey = value; } } [DataMember] public bool IsEnabled { get { return _IsEnabled; } set { _IsEnabled = value; } } [DataMember] public int OrganizationId { get { return _OrganizationId; } set { _OrganizationId = value; } } } }
25.489362
68
0.551753
3f53566befcea42f0ee01f4c6a7b11c467f68f05
804
swift
Swift
Shared/MainView.swift
foxweb/tinker
f7ec6457fd506b08837caee9bbf7897de404b77b
[ "MIT" ]
null
null
null
Shared/MainView.swift
foxweb/tinker
f7ec6457fd506b08837caee9bbf7897de404b77b
[ "MIT" ]
null
null
null
Shared/MainView.swift
foxweb/tinker
f7ec6457fd506b08837caee9bbf7897de404b77b
[ "MIT" ]
null
null
null
// // MainView.swift // Tinker // // Created by Aleksey Kurepin on 23.10.2021. // import SwiftUI struct MainView: View { var body: some View { TabView { NavigationView { ContentView() }.tabItem { Label("Портфель", systemImage: "briefcase.fill") }.tag(0) NavigationView { StatisticsView() }.tabItem { Label("Статистика", systemImage: "chart.bar.xaxis") }.tag(0) NavigationView { SettingsView() }.tabItem { Label("Настройки", systemImage: "gear") }.tag(0) } } } struct MainView_Previews: PreviewProvider { static var previews: some View { MainView() } }
20.615385
67
0.488806
f657235d328c6925462f7c4b577082034446ce78
1,758
cc
C++
tsdf_plusplus/src/core/segment.cc
TheMangalex/tsdf-plusplus
aefb7fa40b53475ce424d5082b3045587bbb5de3
[ "MIT" ]
91
2021-05-18T03:15:18.000Z
2022-03-28T01:53:02.000Z
tsdf_plusplus/src/core/segment.cc
ali-robot/tsdf-plusplus
602f2aeec267a82ac3c5d88ef3eabba2ea2f3c04
[ "MIT" ]
4
2021-05-18T06:10:20.000Z
2022-01-25T11:38:33.000Z
tsdf_plusplus/src/core/segment.cc
cmrobotics/tsdf-plusplus
9cb15273b2bd5e7b13f67ef563856d2f92cd34dd
[ "MIT" ]
16
2021-05-18T02:17:48.000Z
2022-03-07T02:57:01.000Z
// Copyright (c) 2020- Margarita Grinvald, Autonomous Systems Lab, ETH Zurich // Licensed under the MIT License (see LICENSE for details) #include "tsdf_plusplus/core/segment.h" #include <pcl/common/centroid.h> Segment::Segment(const pcl::PointCloud<InputPointType>& pointcloud_pcl, const voxblox::Transformation& T_G_C) : T_G_C_(T_G_C), semantic_class_(pointcloud_pcl.points[0].semantic_class) { pointcloud_ = pointcloud_pcl; convertPointcloud(); } Segment::Segment(const pcl::PointCloud<GTInputPointType>& pointcloud_pcl, const voxblox::Transformation& T_G_C) : T_G_C_(T_G_C), object_id_(pointcloud_pcl.points[0].label + 1), semantic_class_(BackgroundClass) { pcl::copyPointCloud(pointcloud_pcl, pointcloud_); convertPointcloud(); } void Segment::convertPointcloud() { points_C_.clear(); colors_.clear(); points_C_.reserve(pointcloud_.points.size()); colors_.reserve(pointcloud_.points.size()); for (size_t i = 0u; i < pointcloud_.points.size(); ++i) { if (!std::isfinite(pointcloud_.points[i].x) || !std::isfinite(pointcloud_.points[i].y) || !std::isfinite(pointcloud_.points[i].z)) { continue; } points_C_.push_back(voxblox::Point(pointcloud_.points[i].x, pointcloud_.points[i].y, pointcloud_.points[i].z)); colors_.push_back( voxblox::Color(pointcloud_.points[i].r, pointcloud_.points[i].g, pointcloud_.points[i].b, pointcloud_.points[i].a)); } Eigen::Vector4f centroid_c; pcl::compute3DCentroid(pointcloud_, centroid_c); centroid_ = T_G_C_ * voxblox::Point(centroid_c.x(), centroid_c.y(), centroid_c.z()); }
33.169811
79
0.661547
57e953a7bdb823644e26ca16162799956dc75120
1,755
php
PHP
queue.php
mariolenis/KDQuery2.8_64
a74d8cd7825fd079ff72c87ec2cc30ba88ea14da
[ "Apache-2.0" ]
2
2016-07-10T18:49:48.000Z
2017-03-01T01:22:57.000Z
queue.php
mariolenis/KDQuery2.8_64
a74d8cd7825fd079ff72c87ec2cc30ba88ea14da
[ "Apache-2.0" ]
null
null
null
queue.php
mariolenis/KDQuery2.8_64
a74d8cd7825fd079ff72c87ec2cc30ba88ea14da
[ "Apache-2.0" ]
null
null
null
<script language="javascript1.2" type="text/javascript"> var identificador = ""; var url = "serverSide.php?"; function control(){ if (identificador > 0) clearInterval(identificador); identificador = setInterval("hilo()", 900); document.getElementById('content').innerHTML = "<br><br><img src='images/ajaxWait.gif'><br>Un momento por favor...<br><br><br>"; } function hilo(){ http.open("GET", url + "tipo=queueControl&dummy=" + Math.random(), true); http.onreadystatechange = HttpResponse; http.send(null); } function removeAgent(agente){ if (confirm('Desea desloguear al agente ' + agente)){ http.open("GET", url + "tipo=queueLogout&agente="+ agente +"&dummy=" + Math.random(), true); http.onreadystatechange = HttpRes; http.send(null); } } function HttpRes() { if (http.readyState == 4) { if(http.status==200) { var results=http.responseText; alert(results); } } } function HttpResponse() { if (http.readyState == 4) { if(http.status==200) { var results=http.responseText; document.getElementById('content').innerHTML = results; } } } function getHTTPObject() { var xmlhttp; if(window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); } else if (window.ActiveXObject){ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); if (!xmlhttp){ xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); } } return xmlhttp; } var http = getHTTPObject(); </script> <div align="center" style="background: url(images/bkg.jpg); border: 1px solid #9D9D59"> <div id="content" style="margin: 5px 5px 5px 5px"> </div> </div> <br> Mejor visto con Mozilla Firefox 3.0 | Internet Explorer 6.0<br><br> <script> control(); </script>
25.434783
131
0.648433
254f2e1472bb1af47aec62c988e312c67dd902ba
1,955
cs
C#
test/ZendeskTicketExporter.Core.Tests/TicketRetrieverTests.cs
kendaleiv/zendesk-ticket-exporter
9d3fae826011ba56e0e914aa05aedefd9f6a0d65
[ "MIT" ]
22
2015-01-13T22:12:10.000Z
2021-04-29T10:23:38.000Z
test/ZendeskTicketExporter.Core.Tests/TicketRetrieverTests.cs
kendaleiv/zendesk-ticket-exporter
9d3fae826011ba56e0e914aa05aedefd9f6a0d65
[ "MIT" ]
11
2015-01-13T22:16:12.000Z
2021-12-18T23:57:29.000Z
test/ZendeskTicketExporter.Core.Tests/TicketRetrieverTests.cs
kendaleiv/zendesk-ticket-exporter
9d3fae826011ba56e0e914aa05aedefd9f6a0d65
[ "MIT" ]
12
2015-01-14T12:37:57.000Z
2020-05-11T15:55:31.000Z
using Moq; using System; using System.Threading.Tasks; using Xunit; namespace ZendeskTicketExporter.Core.Tests { public class TicketRetrieverTests { private static readonly DateTime Jan1_2014 = new DateTime(2014, 1, 1); private readonly IWait _wait; private readonly IZendeskApi _zendeskApi; private readonly Func<DateTime> _utcNowProvider; private readonly ITicketRetriever _sut; public TicketRetrieverTests() { _wait = Mock.Of<IWait>(); _zendeskApi = Mock.Of<IZendeskApi>(); _utcNowProvider = Mock.Of<Func<DateTime>>(); _sut = new TicketRetriever(_wait, _zendeskApi, _utcNowProvider); SetupDefaultMocks(); } private void SetupDefaultMocks() { Mock.Get(_utcNowProvider).Setup(x => x()).Returns(Jan1_2014); } [Fact] public async Task GetBatchAsync_calls_ZendeskApi_IncrementalTicketExport_using_marker() { await _sut.GetBatchAsync(marker: 123); Mock.Get(_zendeskApi).Verify( x => x.IncrementalTicketExport(123), Times.Once()); } [Fact] public async Task GetBatchAsync_does_not_wait_for_first_call() { await _sut.GetBatchAsync(marker: 123); Mock.Get(_wait).Verify( x => x.UntilAsync(It.IsAny<DateTime>(), /* now */ It.IsAny<Nullable<DateTime>>()), Times.Never()); } [Fact] public async Task GetBatchAsync_waits_correct_duration_for_second_call() { await _sut.GetBatchAsync(marker: 123); await _sut.GetBatchAsync(marker: 456); Mock.Get(_wait).Verify( x => x.UntilAsync(Jan1_2014.Add(Configuration.ZendeskRequiredCooloffBetweenIncrementalTicketExportResults), /* now */ null), Times.Once()); } } }
30.546875
140
0.602558
e233086d5d92ae89e9ef3e975c6f0b8ba7432e46
1,747
js
JavaScript
soundwaves/third_party/tone/Tone/signal/Min.js
sharpninja/chrome-music-lab
4e265bef4ce2f8dfce30048a61123ba25a1cd95e
[ "Apache-2.0" ]
1,824
2016-03-09T00:47:23.000Z
2022-03-31T11:40:10.000Z
soundwaves/third_party/tone/Tone/signal/Min.js
sharpninja/chrome-music-lab
4e265bef4ce2f8dfce30048a61123ba25a1cd95e
[ "Apache-2.0" ]
54
2016-03-09T11:12:31.000Z
2022-03-29T12:43:30.000Z
soundwaves/third_party/tone/Tone/signal/Min.js
sharpninja/chrome-music-lab
4e265bef4ce2f8dfce30048a61123ba25a1cd95e
[ "Apache-2.0" ]
482
2016-03-09T07:23:25.000Z
2022-03-28T09:17:33.000Z
define(["Tone/core/Tone", "Tone/signal/LessThan", "Tone/signal/IfThenElse", "Tone/signal/Signal"], function(Tone){ "use strict"; /** * @class Outputs the lesser of two signals. If a number is given * in the constructor, it will use a signal and a number. * * @constructor * @extends {Tone.Signal} * @param {number} min The minimum to compare to the incoming signal * @example * var min = new Tone.Min(2); * var sig = new Tone.Signal(3).connect(min); * //min outputs 2 * sig.value = 1; * //min outputs 1 * @example * var min = new Tone.Min(); * var sigA = new Tone.Signal(3); * var sigB = new Tone.Signal(4); * sigA.connect(min, 0, 0); * sigB.connect(min, 0, 1); * //output of min is 3. */ Tone.Min = function(min){ Tone.call(this, 2, 0); this.input[0] = this.context.createGain(); /** * @type {Tone.Select} * @private */ this._ifThenElse = this.output = new Tone.IfThenElse(); /** * @type {Tone.Select} * @private */ this._lt = new Tone.LessThan(); /** * the min signal * @type {Tone.Signal} * @private */ this._param = this.input[1] = new Tone.Signal(min); //connections this.input[0].chain(this._lt, this._ifThenElse.if); this.input[0].connect(this._ifThenElse.then); this._param.connect(this._ifThenElse.else); this._param.connect(this._lt, 0, 1); }; Tone.extend(Tone.Min, Tone.Signal); /** * clean up * @returns {Tone.Min} this */ Tone.Min.prototype.dispose = function(){ Tone.prototype.dispose.call(this); this._param.dispose(); this._ifThenElse.dispose(); this._lt.dispose(); this._param = null; this._ifThenElse = null; this._lt = null; return this; }; return Tone.Min; });
23.293333
114
0.616485
fda9a465a5066e2af8d734ce175e19fe7a1cfe67
620
swift
Swift
Sources/Kumo/Blobs/Types/Conversion/ThrowingDataConvertible.swift
jay18001/Kumo
173f1d0883c3618a5b0f476d86de79db653741f1
[ "MIT" ]
null
null
null
Sources/Kumo/Blobs/Types/Conversion/ThrowingDataConvertible.swift
jay18001/Kumo
173f1d0883c3618a5b0f476d86de79db653741f1
[ "MIT" ]
null
null
null
Sources/Kumo/Blobs/Types/Conversion/ThrowingDataConvertible.swift
jay18001/Kumo
173f1d0883c3618a5b0f476d86de79db653741f1
[ "MIT" ]
null
null
null
import Foundation public protocol ThrowingDataConvertible: _DataConvertible where _ConversionArguments == ConversionArguments { associatedtype ConversionArguments func data(using arguments: ConversionArguments) throws -> Data } public protocol DirectThrowingDataConvertible: ThrowingDataConvertible where ConversionArguments == Void { func data() throws -> Data } public extension DirectThrowingDataConvertible { public func data(using arguments: Void) throws -> Data? { return try data() } public func data(using arguments: Void) throws -> Data { return try data() } }
26.956522
109
0.746774
96f64e3ab8d2b6c6a7b72e7592526adb8179f492
1,116
cs
C#
VRCEventUtil/Models/Logger/UserLog.cs
rioil/VRCEventUtil
d46ee971e89c42e311651726557134fc95c1f292
[ "MIT" ]
null
null
null
VRCEventUtil/Models/Logger/UserLog.cs
rioil/VRCEventUtil
d46ee971e89c42e311651726557134fc95c1f292
[ "MIT" ]
null
null
null
VRCEventUtil/Models/Logger/UserLog.cs
rioil/VRCEventUtil
d46ee971e89c42e311651726557134fc95c1f292
[ "MIT" ]
null
null
null
using Livet; using System; using System.Collections.Generic; using System.Text; namespace VRCEventUtil.Models { public class UserLog : NotificationObject { /// <summary> /// ログ情報を作成します. /// </summary> /// <param name="msg"></param> /// <param name="dateTime"></param> public UserLog(string msg, DateTime dateTime) { Message = msg; Time = dateTime; } /// <summary> /// ログ情報を作成します. /// </summary> /// <param name="msg"></param> public UserLog(string msg) : this(msg, DateTime.Now) { } /// <summary> /// メッセージ /// </summary> public string Message { get => _message; set => RaisePropertyChangedIfSet(ref _message, value); } private string _message = default!; /// <summary> /// 時間 /// </summary> public DateTime Time { get => _time; set => RaisePropertyChangedIfSet(ref _time, value); } private DateTime _time; } }
23.25
66
0.498208
c3549d115f8f55b5c83a5ddc72af7f8320488043
416
cs
C#
CallContextNotWorking/BehaviourExtension.cs
malindasuhash/CallContextIssue
a07be9f7ab0c2b86c5bc5e86006dce119acebd8e
[ "Unlicense" ]
null
null
null
CallContextNotWorking/BehaviourExtension.cs
malindasuhash/CallContextIssue
a07be9f7ab0c2b86c5bc5e86006dce119acebd8e
[ "Unlicense" ]
null
null
null
CallContextNotWorking/BehaviourExtension.cs
malindasuhash/CallContextIssue
a07be9f7ab0c2b86c5bc5e86006dce119acebd8e
[ "Unlicense" ]
null
null
null
using System; using System.ServiceModel.Configuration; namespace CallContextNotWorking { public class BehaviourExtension : BehaviorExtensionElement { protected override object CreateBehavior() { return new EndpointBehaviuor(); } public override Type BehaviorType { get { return typeof(EndpointBehaviuor); } } } }
23.111111
63
0.612981
da9645e135bb27108628bf4170e7b77541f4c841
64
php
PHP
app/Services/Wechat/MessageService.php
justForLu/www.escort.com
b3151ac7937b5974b1f64fd33b2ea077802ec250
[ "MIT" ]
null
null
null
app/Services/Wechat/MessageService.php
justForLu/www.escort.com
b3151ac7937b5974b1f64fd33b2ea077802ec250
[ "MIT" ]
null
null
null
app/Services/Wechat/MessageService.php
justForLu/www.escort.com
b3151ac7937b5974b1f64fd33b2ea077802ec250
[ "MIT" ]
null
null
null
<?php namespace App\Services\Wechat; class MessageService { }
8
30
0.75
662057c9683c1f05c398b8b012a7d714c4ab909d
4,076
py
Python
apps/product/management/commands/parse_stroymag.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
apps/product/management/commands/parse_stroymag.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
7
2020-06-05T23:36:01.000Z
2022-01-13T01:42:07.000Z
apps/product/management/commands/parse_stroymag.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
import requests import urllib.request from functools import reduce from django.core.management.base import BaseCommand from bs4 import BeautifulSoup from django.http import Http404 from django.utils.html import strip_tags from slugify import slugify from xlwt import Workbook class Command(BaseCommand): help = "Parser products from www.stroymag-bishkek.kg" def handle(self, *args, **options): url = "https://www.stroymag-bishkek.com/shop/page/{page}/?s" html = requests.get(url.format(page=1)).content soup = BeautifulSoup(html, "lxml") page_list = soup.find("nav", class_="page-nav").findAll("li") max_pages = int(page_list[-2].find("a").string) + 1 wb = Workbook(encoding="utf-8") products_list = wb.add_sheet(u"Товары", cell_overwrite_ok=True) l = 0 for page in range(1, max_pages): page_html = requests.get(url.format(page=page)).content page_soup = BeautifulSoup(page_html, 'lxml') content_div = page_soup.find("div", class_="art_details") product_div = content_div.find("div", class_="article") if product_div: product_list = product_div.findAll("a", class_="woocommerce-LoopProduct-link") products_links = [link.get("href") for link in product_list] for product in products_links: product_html = requests.get(product).content product_soup = BeautifulSoup(product_html, "lxml") categories = [cat.find("a").string for cat in product_soup.find("ul", class_="breadcrumbs").findAll("li") if cat.find("a")][2:] product_content = product_soup.find("div", class_="art_details") if product_content: prod_details = product_content.find("div", class_="cart_details") product_upper = prod_details.find("div", class_="cart_upper") image = product_upper.find("div", class_="imgHldr").find("a", class_="woocommerce-main-image").get("href") title = product_upper.find("div", class_="txtHldr").find("h2", class_="product_title").string code = "" price_p = product_upper.find("p", class_="offer-price") price = str(price_p.find("span", class_="woocommerce-Price-amount").next).replace(",", "") \ if price_p else "" short_desc = "" available = "Есть" slug = slugify(title) + "-stroymag-" + str(l) variables = "" desc = product_upper.find("div", itemprop="description") prod_lower = prod_details.find("div", class_="descript") desc2 = prod_lower.find("div", id="tabone") if desc2 and desc: new_tag = product_soup.new_tag("p") new_tag.string = desc2.string if desc2.string else "" desc.append(new_tag) product_fields = [title, code, short_desc, price, variables, available, image, str(slug), str(desc)] endrange = 3 + len(product_fields) write_cats = list( map(lambda r, c: products_list.write(l, c, r), categories, [c for c in range(len(categories))])) write_products = list( map(lambda r, c: products_list.write(l, c, r), product_fields, [c for c in range(3, endrange)])) l += 1 self.stdout.write(self.style.SUCCESS("%s записан. По счету %s" % (title, str(l)))) file_name = "stroymag.xls" wb.save("dump/" + file_name) self.stdout.write(self.style.SUCCESS("Done!"))
54.346667
130
0.537291
a51c293c40dc8971fe4c6e9b592bf8394369c75d
194
h
C
iPad/WebViewController.h
Lisapple/iVerb
226be6b2bbcf0f3011ecbf00097f5b4bb72f5d93
[ "MIT" ]
1
2015-07-29T01:38:32.000Z
2015-07-29T01:38:32.000Z
iPad/WebViewController.h
Lisapple/iVerb
226be6b2bbcf0f3011ecbf00097f5b4bb72f5d93
[ "MIT" ]
null
null
null
iPad/WebViewController.h
Lisapple/iVerb
226be6b2bbcf0f3011ecbf00097f5b4bb72f5d93
[ "MIT" ]
null
null
null
// // WebViewController.h // iVerb // // Created by Max on 09/03/16. // // @interface WebViewController : UIViewController @property (nonatomic, assign) IBOutlet UIWebView * webView; @end
13.857143
59
0.695876
ddebad2d0a230c962f3a36b86b336514beab379b
1,381
lua
Lua
tests/impl/uJIT-tests-Lua/suite/chunks/math/frexp.lua
luavela/luavela
56c6e8d833cad56ae524ae82d6ae370bedcd2a45
[ "MIT" ]
64
2020-08-18T18:44:47.000Z
2022-03-30T23:14:30.000Z
tests/impl/uJIT-tests-Lua/suite/chunks/math/frexp.lua
luavela/luavela
56c6e8d833cad56ae524ae82d6ae370bedcd2a45
[ "MIT" ]
5
2020-08-24T08:15:24.000Z
2021-01-13T08:49:02.000Z
tests/impl/uJIT-tests-Lua/suite/chunks/math/frexp.lua
luavela/luavela
56c6e8d833cad56ae524ae82d6ae370bedcd2a45
[ "MIT" ]
3
2020-09-09T09:12:49.000Z
2021-03-19T11:56:07.000Z
-- This is a part of uJIT's testing suite. -- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT -- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT local m, e -- -- Trivial cases -- m, e = math.frexp(65536) assert(m == 0.5 and e == 17) m, e = math.frexp(0.5) assert(m == 0.5 and e == 0) m, e = math.frexp(1) assert(m == 0.5 and e == 1) m, e = math.frexp(0.0078125) -- 1 / (2 ^ 7) == (2 ^ (-1)) * (2 ^ (-6)) assert(m == 0.5 and e == -6) -- -- Trivial cases, negative numbers -- m, e = math.frexp(-65536) assert(m == -0.5 and e == 17) m, e = math.frexp(-0.5) assert(m == -0.5 and e == 0) m, e = math.frexp(-1) assert(m == -0.5 and e == 1) m, e = math.frexp(-0.0078125) -- -1 / (2 ^ 7) == -1 * (2 ^ (-1)) * (2 ^ (-6)) assert(m == -0.5 and e == -6) -- Subnormal positive number m, e = math.frexp(0.4E-323) assert(m == 0.5 and e == -1073) -- Subnormal negative number m, e = math.frexp(-0.4E-323) assert(m == -0.5 and e == -1073) -- +infinity local plus_inf = 1 / 0 m, e = math.frexp(plus_inf) assert(m == plus_inf and e == 0) -- -infinity local minus_inf = -1 / 0 m, e = math.frexp(minus_inf) assert(m == minus_inf and e == 0) -- Not a number m, e = math.frexp(0 / 0) assert(m ~= m and e == 0) -- NB! NaN is not self-equal -- Small positive number, less than epsilon m, e = math.frexp(0.4E-500) assert(m == 0 and e == 0)
21.578125
77
0.581463
c4e9965339262a0b3d7df5a134a1a5281b57bcbd
6,490
lua
Lua
data.lua
ArekosAddons/LunarlightPodHelper
15eb4b5fc4b1bf2bbbf63140206ca66075de12ca
[ "BSD-3-Clause" ]
null
null
null
data.lua
ArekosAddons/LunarlightPodHelper
15eb4b5fc4b1bf2bbbf63140206ca66075de12ca
[ "BSD-3-Clause" ]
null
null
null
data.lua
ArekosAddons/LunarlightPodHelper
15eb4b5fc4b1bf2bbbf63140206ca66075de12ca
[ "BSD-3-Clause" ]
null
null
null
local ADDONNAME, ns = ... ns.ARDENWEALD_UIMAPID = 1565 ns.TREASURES = { -- Ardenweald: Lunarpods LARGE = "large", DREAMSHRINE = "Dreamshrine", GLITTERFALL_HEIGHTS_EAST = "Glitterfall Heights (East)", GLITTERFALL_HEIGHTS_WEST = "Glitterfall Heights (West)", GARDEN_OF_NIGHT = "Garden of Night", EVENTIDE_GROVE = "Eventide Grove", } ns.PODS = { LARGE = "large", DREAMSHRINE = "Dreamshrine", GLITTERFALL_HEIGHTS_EAST = "Glitterfall Heights (East)", GLITTERFALL_HEIGHTS_WEST = "Glitterfall Heights (West)", GARDEN_OF_NIGHT = "Garden of Night", EVENTIDE_GROVE = "Eventide Grove", } ns.TREASURE_MAP = { [ns.TREASURES.LARGE] = ns.ARDENWEALD_UIMAPID, [ns.TREASURES.DREAMSHRINE] = ns.ARDENWEALD_UIMAPID, [ns.TREASURES.GLITTERFALL_HEIGHTS_EAST] = ns.ARDENWEALD_UIMAPID, [ns.TREASURES.GLITTERFALL_HEIGHTS_WEST] = ns.ARDENWEALD_UIMAPID, [ns.TREASURES.GARDEN_OF_NIGHT] = ns.ARDENWEALD_UIMAPID, [ns.TREASURES.EVENTIDE_GROVE] = ns.ARDENWEALD_UIMAPID, } local ARDENWEALD_ICON do local ICON_PATH = "Interface/AddOns/" .. ADDONNAME .. "/icons/minimap_icon_ardenweald.blp" ARDENWEALD_ICON = GetFileIDFromPath(ICON_PATH) or ICON_PATH end ns.TREASURE_ICON = { [ns.TREASURES.LARGE] = ARDENWEALD_ICON, [ns.TREASURES.DREAMSHRINE] = ARDENWEALD_ICON, [ns.TREASURES.GLITTERFALL_HEIGHTS_EAST] = ARDENWEALD_ICON, [ns.TREASURES.GLITTERFALL_HEIGHTS_WEST] = ARDENWEALD_ICON, [ns.TREASURES.GARDEN_OF_NIGHT] = ARDENWEALD_ICON, [ns.TREASURES.EVENTIDE_GROVE] = ARDENWEALD_ICON, } ns.TREASURE_DATA = {} ns.POD_DATA = {} ns.ACTIVE_TREASURES = { -- Ardenweald: Lunarpods ["356821"] = ns.TREASURES.LARGE, ["353769"] = ns.TREASURES.EVENTIDE_GROVE, ["353770"] = ns.TREASURES.GARDEN_OF_NIGHT, ["353771"] = ns.TREASURES.GLITTERFALL_HEIGHTS_WEST, ["353772"] = ns.TREASURES.GLITTERFALL_HEIGHTS_EAST, ["353773"] = ns.TREASURES.DREAMSHRINE, } ns.ACTIVE_PODS = { -- ["objectID"] = ns.PODS.NAME, ["356821"] = ns.PODS.LARGE, ["353769"] = ns.PODS.EVENTIDE_GROVE, ["353770"] = ns.PODS.GARDEN_OF_NIGHT, ["353771"] = ns.PODS.GLITTERFALL_HEIGHTS_WEST, ["353772"] = ns.PODS.GLITTERFALL_HEIGHTS_EAST, ["353773"] = ns.PODS.DREAMSHRINE, } ns.FINISHED_TREASURES = { -- Ardenweald: Lunarpods ["356820"] = ns.TREASURES.LARGE, ["353681"] = ns.TREASURES.EVENTIDE_GROVE, ["353683"] = ns.TREASURES.GARDEN_OF_NIGHT, ["353684"] = ns.TREASURES.GLITTERFALL_HEIGHTS_WEST, ["353686"] = ns.TREASURES.DREAMSHRINE, ["353685"] = ns.TREASURES.GLITTERFALL_HEIGHTS_EAST, } ns.FINISHED_PODS = { -- ["objectID"] = ns.PODS.NAME, ["356820"] = ns.PODS.LARGE, ["353681"] = ns.PODS.EVENTIDE_GROVE, ["353683"] = ns.PODS.GARDEN_OF_NIGHT, ["353684"] = ns.PODS.GLITTERFALL_HEIGHTS_WEST, ["353686"] = ns.PODS.DREAMSHRINE, ["353685"] = ns.PODS.GLITTERFALL_HEIGHTS_EAST, } local SET = { ONE = "one", TWO = "two", THREE = "three", FOUR = "four", FIVE = "five", } local LARGE_LUNAR_POD_QUEST_SET_POSISTIONS = { [61692] = { [51183249] = SET.ONE, [49943206] = SET.TWO, [50523181] = SET.THREE, [51013227] = SET.FOUR, [50253163] = SET.FIVE, }, [61693] = { [50863301] = SET.ONE, [50323271] = SET.TWO, [50373295] = SET.THREE, [50593357] = SET.FOUR, [50033325] = SET.FIVE, }, [61694] = { [51423329] = SET.ONE, [51883337] = SET.TWO, [51463408] = SET.THREE, [51813383] = SET.FOUR, [51003438] = SET.FIVE, }, [61695] = { [51793235] = SET.ONE, [52003200] = SET.TWO, [51873145] = SET.THREE, [52323168] = SET.FOUR, [51983091] = SET.FIVE, }, [61696] = { [52513374] = SET.ONE, [52903320] = SET.TWO, [52253243] = SET.THREE, [53093299] = SET.FOUR, [52463340] = SET.FIVE, }, } ns.POD_DATA[ns.PODS.LARGE] = LARGE_LUNAR_POD_QUEST_SET_POSISTIONS ns.TREASURE_DATA[ns.PODS.LARGE] = LARGE_LUNAR_POD_QUEST_SET_POSISTIONS -- Dreamshrine Basin local DREAMSHRINE_QUEST_POSITIONS = { [60820] = { [60515642] = SET.ONE, }, [60821] = { [60405734] = SET.ONE, }, [60822] = { [61895684] = SET.ONE, }, [60823] = { [61455626] = SET.ONE, }, [60824] = { [61415754] = SET.ONE, }, } ns.POD_DATA[ns.PODS.DREAMSHRINE] = DREAMSHRINE_QUEST_POSITIONS ns.TREASURE_DATA[ns.PODS.DREAMSHRINE] = DREAMSHRINE_QUEST_POSITIONS -- Glitterfall Heights local GLITTERFALL_HEIGHTS_EAST_QUEST_POSITIONS = { [60815] = { [55683962] = SET.ONE, }, [60816] = { [56043870] = SET.ONE, }, [60817] = { [55283815] = SET.ONE, }, [60818] = { [56143941] = SET.ONE, }, [60819] = { [55173918] = SET.ONE, }, } ns.POD_DATA[ns.PODS.GLITTERFALL_HEIGHTS_EAST] = GLITTERFALL_HEIGHTS_EAST_QUEST_POSITIONS ns.TREASURE_DATA[ns.PODS.GLITTERFALL_HEIGHTS_EAST] = GLITTERFALL_HEIGHTS_EAST_QUEST_POSITIONS local GLITTERFALL_HEIGHTS_WEST_QUEST_POSITIONS = { [60810] = { [48123582] = true, }, [60811] = { [47643433] = true, }, [60812] = { [48283372] = true, }, [60813] = { [48963447] = true, }, [60814] = { [48503463] = true, }, } ns.POD_DATA[ns.PODS.GLITTERFALL_HEIGHTS_WEST] = GLITTERFALL_HEIGHTS_WEST_QUEST_POSITIONS ns.TREASURE_DATA[ns.PODS.GLITTERFALL_HEIGHTS_WEST] = GLITTERFALL_HEIGHTS_WEST_QUEST_POSITIONS local GARDEN_OF_NIGHT_QUEST_POSITIONS = { [60805] = { [39665351] = SET.ONE, }, [60806] = { [38855363] = SET.ONE, }, [60807] = { [39185366] = SET.ONE, }, [60808] = { [39485444] = SET.ONE, }, [60809] = { [38795424] = SET.ONE, }, } ns.POD_DATA[ns.PODS.GARDEN_OF_NIGHT] = GARDEN_OF_NIGHT_QUEST_POSITIONS ns.TREASURE_DATA[ns.PODS.GARDEN_OF_NIGHT] = GARDEN_OF_NIGHT_QUEST_POSITIONS -- Eventide Grove local EVENTIDE_GROVE_QUEST_POSITIONS = { [60800] = { [47787097] = SET.ONE, }, [60801] = { [48307120] = SET.ONE, }, [60802] = { [48307152] = SET.ONE, }, [60803] = { [48027019] = SET.ONE, }, [60804] = { [48396998] = SET.ONE, }, } ns.POD_DATA[ns.PODS.EVENTIDE_GROVE] = EVENTIDE_GROVE_QUEST_POSITIONS ns.TREASURE_DATA[ns.PODS.EVENTIDE_GROVE] = EVENTIDE_GROVE_QUEST_POSITIONS
26.929461
94
0.620185
54fd637e1446b492d7ac3f5b1c1aa54393e2c083
395
rb
Ruby
lib/ddr/metadata.rb
duke-libraries/ddr-models
1555c436daf8a8370cd7220c65ba1d8008918795
[ "BSD-3-Clause" ]
4
2015-10-20T14:02:04.000Z
2019-02-22T14:05:58.000Z
lib/ddr/metadata.rb
duke-libraries/ddr-models
1555c436daf8a8370cd7220c65ba1d8008918795
[ "BSD-3-Clause" ]
372
2015-01-05T15:21:29.000Z
2018-04-16T19:59:35.000Z
lib/ddr/metadata.rb
duke-libraries/ddr-models
1555c436daf8a8370cd7220c65ba1d8008918795
[ "BSD-3-Clause" ]
2
2015-02-05T16:10:58.000Z
2017-05-11T18:41:03.000Z
module Ddr module Metadata extend ActiveSupport::Autoload autoload :PremisEvent PREDICATES = { "http://projecthydra.org/ns/relations#" => { is_attached_to: "isAttachedTo" }, "http://www.loc.gov/mix/v20/externalTarget#" => { is_external_target_for: "isExternalTargetFor", has_external_target: "hasExternalTarget" } } end end
20.789474
55
0.635443
5efd6b50a78006007893adf097c9d5a81a962e58
66,976
php
PHP
resources/views/Request/view-edit.blade.php
VladislavMukhortov/MCG
3003b1bea58c506b19b590cdd150ecc1d7a4d62d
[ "MIT" ]
null
null
null
resources/views/Request/view-edit.blade.php
VladislavMukhortov/MCG
3003b1bea58c506b19b590cdd150ecc1d7a4d62d
[ "MIT" ]
null
null
null
resources/views/Request/view-edit.blade.php
VladislavMukhortov/MCG
3003b1bea58c506b19b590cdd150ecc1d7a4d62d
[ "MIT" ]
null
null
null
@extends('layouts.master') {{-- Page Title --}} @section('page-title') Requests @endsection {{-- Page CSS --}} @section('page-css') @endsection {{-- Page Content --}} @section('page-content') <div class="nk-block-head nk-block-head-sm"> <div class="nk-block-between"> <div class="nk-block-head-content"> <nav> <ul class="breadcrumb breadcrumb-arrow"> <li class="breadcrumb-item fs-17px"><a href="{{ route('requests.index', $reads->lead) }}">Requests</a></li> <li class="breadcrumb-item active fs-17px">View Requests Details</li> </ul> </nav> </div><!-- .nk-block-head-content --> </div> </div> <div class="nk-block-head nk-block-head-sm ml-2"> @if(session()->has('email-success')) <div class="alert alert-success"> {{ session()->get('email-success') }} </div> @endif <div class="nk-block-between"> <div class="nk-block-head-content"> <div class="toggle-wrap nk-block-tools-toggle"> <a href="#" class="btn btn-icon btn-trigger toggle-expand mr-n1" data-target="pageMenu"><em class="icon ni ni-more-v"></em></a> <div class="toggle-expand-content" data-content="pageMenu"> <ul class="nk-block-tools g-3"> <li class="nk-block-tools-opt"><a href="#" class="btn btn-primary" data-toggle="modal" data-target="#newNote"><em class="icon ni ni-edit"></em><span>New Note</span></a></li> {{-- <li class="nk-block-tools-opt"><a href="#" class="btn btn-primary" data-toggle="modal" data-target="#newAttachment"><em class="icon ni ni-upload-cloud"></em><span>New Attachment</span></a></li>--}} {{-- <li class="nk-block-tools-opt"><a href="#" class="btn btn-primary" data-toggle="modal" data-target="#newLead"><em class="icon ni ni-check-thick"></em><span>Convert to Lead</span></a></li>--}} <li class="nk-block-tools-opt"><a href="javascript:void(0)" class="btn btn-primary upload-attachment" data-toggle="modal" data-target="#newAttachment"><em class="icon ni ni-upload-cloud"></em><span>New Attachment</span></a></li> </ul> </div> </div> </div><!-- .nk-block-head-content --> </div><!-- .nk-block-between --> </div><!-- .nk-block-head --> <div class="col-xxl-6 mb-2"> <div class="progress progress-lg"> @php $status = [1 => 'New', 2 => 'No Answer', 3 => 'Spoke', 4 => 'Unqualified', 5 => 'Qualified']; @endphp @foreach ($status as $key => $statusGet) <div class="progress-bar bg-{{ $key > $reads->status ? 'warning':'success' }} font-weight-bold" data-progress="20">{{ $statusGet }}</div> @if ($key != 5) <em class="icon ni ni-caret-right-fill" style="font-size: 18px;"></em> @endif @endforeach </div> </div> <div class="col-xxl-6"> <div class="card card-bordered h-100"> <div class="card-inner"> <div class="card-title-group align-start gx-3"> <div class="card-title" style="margin-top:15px;"> <h6 class="title"><em class="icon ni ni-info"></em> Details</h6> </div> <div class="card-tools"> <div class="dropdown"> <a href="#" class="btn btn-primary btn-dim d-none d-sm-inline-flex" data-toggle="modal" data-target="#modalTop"><em class="icon ni ni-edit"></em><span class="d-none d-md-inline">Edit</span></a> <a href="#" class="btn btn-icon btn-primary btn-dim d-sm-none" data-toggle="modal" data-target="#modalTop"><em class="icon ni ni-edit"></em></a> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="card-inner"> <div class="card-title-group align-start gx-3 mb-3"> <div class="card-title" style="margin-top:15px;"> <h6 class="title"><em class="icon ni ni-info"></em> Info</h6> </div> </div> <div class="nk-block"> <div class="profile-ud-list"> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">#</span> <span class="profile-ud-value">{{$reads->id}}</span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Created</span> <span class="profile-ud-value">{{ date('m/d/Y h:i A', strtotime($reads->created)) }}</span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Created By</span> <span class="profile-ud-value">{{$reads->user->name}}</span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Request Information</span> <span class="profile-ud-value"> {{$reads->request_information}} </span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Attachment Link Sent </span> <span class="profile-ud-value"> {{$reads->attachment_link_sent}} </span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Building type </span> <span class="profile-ud-value"> {{ $type[$reads->type] }} </span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Building stage </span> <span class="profile-ud-value"> {{ $stage[$reads->stage] }} </span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Project start date </span> <span class="profile-ud-value"> {{ $startDate[$reads->startdate] }} </span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Status </span> <span class="profile-ud-value"> @if($reads->status == 1) New @elseif($reads->status == 2) No Answer @elseif($reads->status == 3) Spoke @elseif($reads->status == 4) Unqualified @elseif($reads->status == 5) Qualified @elseif($reads->status == 6) Attachments Uploaded @elseif($reads->status == 7) Lead @endif </span> </div> </div> </div><!-- .profile-ud-list --> </div><!-- .nk-block --> </div> {{-- <div class="col-md-12"> --}} <div class="card-inner"> <div class="card-title-group align-start gx-3 mb-3"> <div class="card-title" style="margin-top:15px;"> <h6 class="title"><em class="icon ni ni-users-fill"></em> Lead</h6> </div> </div> <div class="nk-block"> <div class="profile-ud-list"> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Name</span> <span class="profile-ud-value"> @isset($lead->name){{ $lead->name }}@endisset @isset($lead->last_name){{ $lead->last_name }}@endisset </span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Phone</span> <span class="profile-ud-value"> @isset($lead->phone){{ $lead->phone }}@endisset </span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Email</span> <span class="profile-ud-value"> @isset($lead->email){{ $lead->email }}@endisset </span> </div> </div> <div class="profile-ud-item"> <div class="profile-ud wider"> <span class="profile-ud-label">Address</span> <span class="profile-ud-value"> @isset($lead->address){{ $lead->address['address']}}{{ $lead->address['street']}}{{ $lead->address['state']}}{{$lead->address['city']}}{{$lead->address['zip'] }}@endisset </span> </div> </div> </div><!-- .profile-ud-list --> </div> </div><!-- .nk-block --> </div> </div> </div> </div> </div> <div class="col-xxl-12 mt-5"> <div class="card card-bordered card-preview"> <div class="card-inner"> <ul class="nav nav-tabs mt-n3"> <li class="nav-item"> <a class="nav-link active" data-toggle="tab" href="#tabItem5"><em class="icon ni ni-edit"></em><span>Notes</span></a> </li> <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#tabItem6"><em class="icon ni ni-upload-cloud"></em><span>Attachments</span></a> </li> <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#tabItem7"><em class="icon ni ni-align-center"></em><span>Activities</span></a> </li> <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#tabItem8"><em class="icon ni ni-home-fill"></em><span>Floor Plan</span></a> </li> <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#tabItem9"><em class="icon ni ni-home-fill"></em><span>Rooms</span></a> </li> </ul> <div class="tab-content"> <div class="tab-pane active" id="tabItem5"> <div class="nk-block nk-block-lg"> <div class="card card-bordered card-preview"> <div class="card-inner"> <div class="card-head"> <h5 class="card-title">Notes</h5> </div> <table class="datatable-init table"> <thead> <tr> <th>Date</th> <th>Notes</th> </tr> </thead> <tbody> @if($reads->requestsNote) @foreach($reads->requestsNote as $list) <tr> <td>{{ Carbon\Carbon::parse($list->notes->created_at)->format('Y-m-d') }}</td> <td>{{ $list->notes->notes }}</td> </tr> @endforeach @endif </tbody> </table> </div> </div><!-- .card-preview --> </div> <!-- nk-block --> </div> <div class="tab-pane" id="tabItem6"> <div class="nk-block nk-block-lg"> <div class="card card-bordered card-preview"> <div class="card-inner"> <div class="card-head"> <h5 class="card-title">Attachments</h5> </div> <table class="datatable-init table"> <thead> <tr> <th>Attachments Description</th> <th>File</th> <th>Uploaded</th> {{-- <th>Delete</th> --}} </tr> </thead> <tbody> @if($attachmentlist) @foreach($attachmentlist as $attach) <tr> <td>{{ $attach->attachment_description }}</td> <td> @if($attach->file) <a href="{{ URL::to($attach->file) }}" download="">File</a></td> @endif </td> <td>{{ Carbon\Carbon::parse($attach->created_at)->format('Y-m-d')}}</td> </tr> @endforeach @endif </tbody> </table> </div> </div><!-- .card-preview --> </div> <!-- nk-block --> </div> <div class="tab-pane" id="tabItem7"> <div class="nk-block nk-block-lg"> <div class="card card-bordered card-preview"> <div class="card-inner"> <div class="card-head"> <h5 class="card-title">Activities</h5> </div> <table class="datatable-init table"> <thead> <tr> <th>Date/Time</th> <th>User</th> <th>Description</th> </tr> </thead> <tbody> @if($reads->requestActivities) @foreach($reads->requestActivities as $activity) <tr> <td>{{ date('m/d/Y h:i A', strtotime($activity->activities->created_at)) }}</td> <td>{{ $activity->activities->getuser['name'] }}</td> <td>{{ $activity->activities->description }}</td> </tr> @endforeach @endif </tbody> </table> </div> </div><!-- .card-preview --> </div> <!-- nk-block --> </div> <div class="tab-pane" id="tabItem8"> <div class="nk-block nk-block-lg"> <div class="card card-bordered card-preview"> <div class="card-inner"> <div class="card-head"> <h5 class="card-title">Floor Plan</h5> </div> @if($attachmentlist) @foreach($attachmentlist as $attach) @if($attach['status'] == 2) <tr> <td>{{ $attach->attachment_description }}</td> <td> @if($attach->file) <img src="{{ URL::to($attach->file) }}"> @endif @endif </tr> @endforeach @endif </div> </div><!-- .card-preview --> </div> <!-- nk-block --> </div> <div class="tab-pane" id="tabItem9"> <div class="nk-block nk-block-lg"> <div class="card card-bordered card-preview"> <div class="card-inner"> <div class="card-head"> <h5 class="card-title">Rooms</h5> </div> <table class="datatable-init table"> <thead> <tr> <th>Room type</th> <th>Ceiling</th> <th>Walls</th> <th>Wall partition</th> <th>Floor</th> <th>Baseboard</th> <th>Crown molding</th> <th>Interior door</th> <th>Closest door</th> <th>Closest organization</th> <th>Window</th> <th>Lightfixture</th> <th>Room size</th> <th>Room info</th> <th>External photos</th> <th>Edit</th> {{-- <th>Delete</th> --}} </tr> </thead> <tbody> @if($rooms) @foreach($rooms as $room) <tr> <td>{{ $roomType[$room->stageroom] }}</td> <td>{{ $roomWorkType[$room->ceiling] }}</td> <td>{{ $roomWorkType[$room->walls] }}</td> <td>{{ $roomWorkType[$room->wallpartition] }}</td> <td>{{ $roomWorkType[$room->floor] }}</td> <td>{{ $roomWorkType[$room->baseboard] }}</td> <td>{{ $roomWorkType[$room->crownmolding] }}</td> <td>{{ $roomWorkType[$room->interiordoor] }}</td> <td>{{ $roomWorkType[$room->closestdoor] }}</td> <td>{{ $roomWorkType[$room->closestorganization] }}</td> <td>{{ $roomWorkType[$room->window] }}</td> <td>{{ $roomWorkType[$room->lightfixture] }}</td> <td>{{ $room->roomsize }}</td> <td>{{ $room->roominfo }}</td> <td>{{ $room->roominspirationexternal }}</td> <td><a href="#" class="btn btn-primary" data-toggle="modal" data-target="#Room{{ $room->id }}">Edit</a></td> </tr> @endforeach @endif </tbody> </table> </div> </div><!-- .card-preview --> </div> <!-- nk-block --> </div> </div> </div> </div><!-- .card-preview --> </div> {{-- Edit Modal --}} <div class="modal fade" tabindex="-1" id="modalTop"> <div class="modal-dialog modal-dialog-top" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Edit Request</h5> <a href="#" class="close" data-dismiss="modal" aria-label="Close"> <em class="icon ni ni-cross"></em> </a> </div> <div class="modal-body"> <form action="" method="post" class="form-validate"> @method('PUT') @csrf <div class="row g-4"> {{-- <div class="col-lg-6">--}} {{-- <div class="form-group">--}} {{-- <label class="form-label">Contact<span style="color: red"> *</span></label>--}} {{-- <div class="form-control-wrap">--}} {{-- <select class="form-select form-control form-control-lg" data-search="on" name="contact" required>--}} {{-- <option selected disabled>Type to search</option>--}} {{-- @foreach($contactslist as $id => $contatname)--}} {{-- <option value="{{ $contatname->id }}" @if($contatname->id==$reads->contact) selected='selected' @endif>--}} {{-- {{ $contatname->display_name }}</option>--}} {{-- @endforeach--}} {{-- --}} {{-- </select>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div> --}} {{-- <div class="row g-4"> --}} <div class="col-lg-6"> <div class="form-group"> <label class="form-label">Status</label> <div class="form-control-wrap"> <select class="form-select" name="status"> <option value="1" {{ $reads->status == 1 ? 'selected':'' }}>New</option> <option value="2" {{ $reads->status == 2 ? 'selected':'' }}>No Answer</option> <option value="3" {{ $reads->status == 3 ? 'selected':'' }}>Spoke</option> <option value="4" {{ $reads->status == 4 ? 'selected':'' }}>Unqualified</option> <option value="5" {{ $reads->status == 5 ? 'selected':'' }}>Qualified</option> {{-- <option value="6" {{ $reads->status == 6 ? 'selected':'' }}>Attachments Uploaded</option>--}} {{-- <option value="7" {{ $reads->status == 7 ? 'selected':'' }}>Lead</option>--}} </select> </div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label">Created Date</label> <div class="form-control-wrap"> <div class="form-icon form-icon-right"> <em class="icon ni ni-calendar-alt"></em> </div> <input type="text" class="form-control date-picker" name="date" placeholder="mm/dd/yyyy" value="{{ date('m/d/Y', strtotime($reads->created)) }}"> </div> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="form-label">Created Time</label> <div class="form-control-wrap"> <input type="time" class="form-control" placeholder="Input placeholder" name="time" value="{{ date('H:i:s', strtotime($reads->created)) }}"> </div> </div> </div> <div class="col-lg-12"> <div class="form-group"> <label class="form-label" for="cf-default-textarea">Request Information</label> <div class="form-control-wrap"> <textarea class="form-control form-control-sm" id="cf-default-textarea" placeholder=" " name="request_information">{{ $reads->request_information }}</textarea> </div> </div> </div> <div class="col-12"> <div class="form-group"> <button type="submit" class="btn btn-lg btn-primary">Update</button> </div> </div> </div> </form> </div> </div> </div> </div> <div class="modal fade" tabindex="-1" id="newNote"> <div class="modal-dialog modal-dialog-top" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">New Note</h5> <a href="#" class="close" data-dismiss="modal" aria-label="Close"> <em class="icon ni ni-cross"></em> </a> </div> <div class="modal-body"> <form action="{{ route('note.store') }}" method="post" class="form-validate"> @csrf <input type="hidden" name="request" value="{{ $reads->id }}"> <div class="row g-4"> <div class="col-lg-12"> <div class="form-group"> <label class="form-label" for="email-address">Notes<span style="color: red"> *</span></label> <div class="form-control-wrap"> <textarea class="form-control form-control-sm" id="cf-default-textarea" name="notes" required></textarea> </div> </div> </div> <div class="col-12"> <div class="form-group"> <button type="submit" class="btn btn-lg btn-primary">Submit</button> </div> </div> </div> </form> </div> </div> </div> </div> @if($rooms) @foreach($rooms as $room) <div class="modal fade" tabindex="-1" id="Room{{ $room->id }}"> <div class="modal-dialog modal-dialog-top" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Edit room</h5> <a href="#" class="close" data-dismiss="modal" aria-label="Close"> <em class="icon ni ni-cross"></em> </a> </div> <div class="modal-body"> <form action="" method="post" class="form-validate"> @csrf @method('PUT') <div class="row g-4"> <div class="col-lg-12"> <div class="form-group"> <div class="form-control-wrap"> <div class="card-inner"> <div class="field"> <div class="form-group"> <label class="form-label">Room {{ $roomType[$room->stageroom] }}</label> <div class="form-control-wrap"> <input hidden name="id" value="{{ $room->id }}"> <table> <tr> <th></th> <th>Do nothing</th> <th>Refinish/Refresh</th> <th>Replace</th> <th>Remove existing</th> <th>Install/Add new</th> </tr> <tr> <td>Ceiling</td> <validation-provider rules="oneOf:1,2,3,4,5" v-validate="required" name="ceiling" v-slot="{ errors, failed }"> <td><input value="1" id="ceiling" type="radio" v-model="ceiling" name="ceiling" {{ ($room->ceiling=="1")? "checked" : "" }}></td> <td><input value="2" id="ceiling" type="radio" v-model="ceiling" name="ceiling" {{ ($room->ceiling=="2")? "checked" : "" }}></td> <td><input value="3" id="ceiling" type="radio" v-model="ceiling" name="ceiling" {{ ($room->ceiling=="3")? "checked" : "" }}></td> <td><input value="4" id="ceiling" type="radio" v-model="ceiling" name="ceiling" {{ ($room->ceiling=="4")? "checked" : "" }}></td> <td><input value="5" id="ceiling" type="radio" v-model="ceiling" name="ceiling" {{ ($room->ceiling=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Walls</td> <validation-provider rules="oneOf:1,2,3,4,5" name="walls" v-slot="{ errors, failed }"> <td><input value="1" type="radio" v-model="walls" name="walls" {{ ($room->walls=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" v-model="walls" name="walls" {{ ($room->walls=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" v-model="walls" name="walls" {{ ($room->walls=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" v-model="walls" name="walls" {{ ($room->walls=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" v-model="walls" name="walls" {{ ($room->walls=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Wall partition</td> <validation-provider rules="oneOf:1,2,3,4,5" name="wallpartition" v-slot="{ errors, failed }"> <td><input value="1" type="radio" v-model="wallpartition" name="wallpartition" {{ ($room->wallpartition=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" v-model="wallpartition" name="wallpartition" {{ ($room->wallpartition=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" v-model="wallpartition" name="wallpartition" {{ ($room->wallpartition=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" v-model="wallpartition" name="wallpartition" {{ ($room->wallpartition=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" v-model="wallpartition" name="wallpartition" {{ ($room->wallpartition=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Floor</td> <validation-provider rules="oneOf:1,2,3,4,5" name="floor" v-slot="{ errors, failed }"> <td><input value="1" type="radio" v-model="floor" name="floor" {{ ($room->floor=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" v-model="floor" name="floor" {{ ($room->floor=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" v-model="floor" name="floor" {{ ($room->floor=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" v-model="floor" name="floor" {{ ($room->floor=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" v-model="floor" name="floor" {{ ($room->floor=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Baseboard</td> <validation-provider rules="oneOf:1,2,3,4,5" name="baseboard" v-slot="{ errors, failed }"> <td><input value="1" type="radio" v-model="baseboard" name="baseboard" {{ ($room->baseboard=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" v-model="baseboard" name="baseboard" {{ ($room->baseboard=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" v-model="baseboard" name="baseboard" {{ ($room->baseboard=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" v-model="baseboard" name="baseboard" {{ ($room->baseboard=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" v-model="baseboard" name="baseboard" {{ ($room->baseboard=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Crown molding</td> <validation-provider rules="oneOf:1,2,3,4,5" name="crownmolding" v-slot="{ errors, failed }"> <td><input value="1" type="radio" v-model="crownmolding" name="crownmolding" {{ ($room->crownmolding=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" v-model="crownmolding" name="crownmolding" {{ ($room->crownmolding=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" v-model="crownmolding" name="crownmolding" {{ ($room->crownmolding=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" v-model="crownmolding" name="crownmolding" {{ ($room->crownmolding=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" v-model="crownmolding" name="crownmolding" {{ ($room->crownmolding=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Interior Door</td> <validation-provider rules="oneOf:1,2,3,4,5" name="interiordoor" v-slot="{ errors, failed }"> <td><input value="1" type="radio" v-model="interiordoor" name="interiordoor" {{ ($room->interiordoor=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" v-model="interiordoor" name="interiordoor" {{ ($room->interiordoor=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" v-model="interiordoor" name="interiordoor" {{ ($room->interiordoor=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" v-model="interiordoor" name="interiordoor" {{ ($room->interiordoor=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" v-model="interiordoor" name="interiordoor" {{ ($room->interiordoor=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Closest door</td> <validation-provider rules="oneOf:1,2,3,4,5" name="closestdoor" v-slot="{ errors, failed }"> <td><input value="1" type="radio" name="closestdoor" {{ ($room->closestdoor=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" name="closestdoor" {{ ($room->closestdoor=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" name="closestdoor" {{ ($room->closestdoor=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" name="closestdoor" {{ ($room->closestdoor=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" name="closestdoor" {{ ($room->closestdoor=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Closest Organization</td> <validation-provider rules="oneOf:1,2,3,4,5" name="closestorganization" v-slot="{ errors, failed }"> <td><input value="1" type="radio" name="closestorganization" {{ ($room->closestorganization=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" name="closestorganization" {{ ($room->closestorganization=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" name="closestorganization" {{ ($room->closestorganization=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" name="closestorganization" {{ ($room->closestorganization=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" name="closestorganization" {{ ($room->closestorganization=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Window</td> <validation-provider rules="oneOf:1,2,3,4,5" name="window" v-slot="{ errors, failed }"> <td><input value="1" type="radio" name="window" {{ ($room->window=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" name="window" {{ ($room->window=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" name="window" {{ ($room->window=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" name="window" {{ ($room->window=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" name="window" {{ ($room->window=="5")? "checked" : "" }}></td> </validation-provider> </tr> <tr> <td>Light fixture</td> <validation-provider rules="oneOf:1,2,3,4,5" name="lightfixture" v-slot="{ errors, failed }"> <td><input value="1" type="radio" name="lightfixture" {{ ($room->lightfixture=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" name="lightfixture" {{ ($room->lightfixture=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" name="lightfixture" {{ ($room->lightfixture=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" name="lightfixture" {{ ($room->lightfixture=="4")? "checked" : "" }}></td> <td><input value="5" type="radio" name="lightfixture" {{ ($room->lightfixture=="5")? "checked" : "" }}></td> </validation-provider> </tr> </table> @if($room->stageroom === 1 || $room->stageroom === 2) <table> <tr> <th>Type</th> <th>1</th> <th>2</th> <th>3</th> <th>4</th> </tr> <tr> <td>Recessed Light</td> <td><input value="1" type="radio" name="recessedlight" {{ ($room->recessedlight=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" name="recessedlight" {{ ($room->recessedlight=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" name="recessedlight" {{ ($room->recessedlight=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" name="recessedlight" {{ ($room->recessedlight=="4")? "checked" : "" }}></td> </tr> <tr> <td>Wall Fixture</td> <td><input value="1" type="radio" name="wallfixture" {{ ($room->wallfixture=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" name="wallfixture" {{ ($room->wallfixture=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" name="wallfixture" {{ ($room->wallfixture=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" name="wallfixture" {{ ($room->wallfixture=="4")? "checked" : "" }}></td> </tr> <tr> <td>Ceiling Fixture</td> <td><input value="1" type="radio" name="ceilingfixture" {{ ($room->ceilingfixture=="1")? "checked" : "" }}></td> <td><input value="2" type="radio" name="ceilingfixture" {{ ($room->ceilingfixture=="2")? "checked" : "" }}></td> <td><input value="3" type="radio" name="ceilingfixture" {{ ($room->ceilingfixture=="3")? "checked" : "" }}></td> <td><input value="4" type="radio" name="ceilingfixture" {{ ($room->ceilingfixture=="4")? "checked" : "" }}></td> </tr> </table> @if($room->bathroomcurrent !== null) <p>Bathroom works</p> <p><bold>Current:</bold></p> <p><span>Bathhub</span><input value="1" type="radio" name="bathroomcurrent" {{ ($room->bathroomcurrent=="1")? "checked" : "" }}></p> <p><span>Walk-in Shower</span><input value="2" type="radio" name="bathroomcurrent" {{ ($room->bathroomcurrent=="2")? "checked" : "" }}></p> <p><span>Bathhub and Walk-in Shower</span><input value="3" type="radio" name="bathroomcurrent" {{ ($room->bathroomcurrent=="3")? "checked" : "" }}></p> <p><bold>Requested:</bold></p> <p><span>New Bathub</span><input value="1" type="radio" name="bathroomreplace" {{ ($room->bathroomreplace=="1")? "checked" : "" }}></p> <p><span>New Walk-in Shower</span><input value="2" type="radio" name="bathroomreplace" {{ ($room->bathroomreplace=="2")? "checked" : "" }}></p> <p><span>Bathhub and Walk-in Shower</span><input value="3" type="radio" name="bathroomreplace" {{ ($room->bathroomreplace=="3")? "checked" : "" }}></p> @endif @endif <div class="col-lg-12"> <div class="form-group"> <label class="form-label" for="email-address">Room size<span style="color: red"></span></label> <div class="form-control-wrap"> <textarea class="form-control form-control-sm" id="cf-default-textarea" name="roomsize">{{ $room->roomsize }}</textarea> </div> </div> </div> <div class="col-lg-12"> <div class="form-group"> <label class="form-label" for="email-address">Room info<span style="color: red"></span></label> <div class="form-control-wrap"> <textarea class="form-control form-control-sm" id="cf-default-textarea" name="roominfo">{{ $room->roominfo }}</textarea> </div> </div> </div> <div class="col-lg-12"> <div class="form-group"> <label class="form-label" for="email-address">Room external link<span style="color: red"></span></label> <div class="form-control-wrap"> <textarea class="form-control form-control-sm" id="cf-default-textarea" name="roominspirationexternal">{{ $room->roominspirationexternal }}</textarea> </div> </div> </div> <div class="col-12"> <div class="form-group"> <button type="submit" class="btn btn-lg btn-primary">Submit</button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </div> </div> </div> @endforeach @endif {{--<div class="modal fade" tabindex="-1" id="newLead">--}} {{-- <div class="modal-dialog modal-dialog-top" role="document">--}} {{-- <div class="modal-content">--}} {{-- <div class="modal-header">--}} {{-- <h5 class="modal-title">Request To Lead</h5>--}} {{-- <a href="#" class="close" data-dismiss="modal" aria-label="Close">--}} {{-- <em class="icon ni ni-cross"></em>--}} {{-- </a>--}} {{-- </div>--}} {{-- <div class="modal-body">--}} {{-- <form action="{{ route('leads.store',['id' => $reads->id]) }}" method="post">--}} {{-- @csrf--}} {{-- <div class="row g-4">--}} {{-- <div class="col-lg-12">--}} {{-- <p>Are you sure you want to convert this request to a lead ?</p>--}} {{-- </div>--}} {{-- <div class="col-12">--}} {{-- <div class="form-group">--}} {{-- <button type="submit" class="btn btn-lg btn-primary">Submit</button>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div> --}} {{-- </form> --}} {{-- --}} {{-- </div>--}} {{-- --}} {{-- </div>--}} {{-- </div>--}} {{--</div>--}} {{--<div class="modal fade" tabindex="-1" id="newAttachment">--}} {{-- <div class="modal-dialog modal-dialog-top" role="document">--}} {{-- <div class="modal-content">--}} {{-- <div class="modal-header">--}} {{-- <h5 class="modal-title">New Attachment</h5>--}} {{-- <a href="#" class="close" data-dismiss="modal" aria-label="Close">--}} {{-- <em class="icon ni ni-cross"></em>--}} {{-- </a>--}} {{-- </div>--}} {{-- <div class="modal-body">--}} {{-- <form action="{{ route('attachments.store') }}" method="post" class="form-validate" enctype="multipart/form-data">--}} {{-- @csrf--}} {{-- <input type="hidden" name="request" value="{{ $reads->id }}">--}} {{-- <div class="row g-4">--}} {{-- --}} {{-- <div class="col-lg-12">--}} {{-- <div class="form-group">--}} {{-- <label class="form-label" for="email-address">Attachment Description</label>--}} {{-- <div class="form-control-wrap">--}} {{-- <textarea class="form-control form-control-sm" id="cf-default-textarea" name="attachment_description"></textarea>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-lg-12">--}} {{-- <div class="form-group">--}} {{-- <label class="form-label" for="default-06">File</label>--}} {{-- <div class="form-control-wrap">--}} {{-- <div class="custom-file">--}} {{-- <input type="file" multiple class="custom-file-input" id="customFile" name="file">--}} {{-- <label class="custom-file-label" for="customFile">Choose file</label>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div> --}} {{-- </div>--}} {{-- <div class="col-12">--}} {{-- <div class="form-group">--}} {{-- <button type="submit" class="btn btn-lg btn-primary">Submit</button>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div> --}} {{-- </form> --}} {{-- --}} {{-- </div>--}} {{-- --}} {{-- </div>--}} {{-- </div>--}} {{--</div>--}} {{--<div class="modal fade" tabindex="-1" id="newAttachment">--}} {{-- <div class="modal-dialog modal-dialog-top" role="document">--}} {{-- <div class="modal-content">--}} {{-- <div class="modal-header">--}} {{-- <h5 class="modal-title">New Attachment</h5>--}} {{-- <a href="#" class="close" data-dismiss="modal" aria-label="Close">--}} {{-- <em class="icon ni ni-cross"></em>--}} {{-- </a>--}} {{-- </div>--}} {{-- <div class="modal-body">--}} {{-- <form action="{{ route('attachments.store') }}" method="post" class="form-validate" enctype="multipart/form-data">--}} {{-- @csrf--}} {{-- <input type="hidden" name="request" value="{{ $reads->id }}">--}} {{-- <div class="row g-4">--}} {{-- <div class="col-lg-12">--}} {{-- <div class="form-group">--}} {{-- <label class="form-label" for="email-address">Attachment Description</label>--}} {{-- <div class="form-control-wrap">--}} {{-- <textarea class="form-control form-control-sm" id="cf-default-textarea" name="attachment_description"></textarea>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-lg-12">--}} {{-- <div class="form-group">--}} {{-- <label class="form-label" for="default-06">File</label>--}} {{-- <div class="form-control-wrap">--}} {{-- <div class="custom-file">--}} {{-- <input type="file" multiple class="custom-file-input" id="customFile" name="file">--}} {{-- <label class="custom-file-label" for="customFile">Choose file</label>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- <div class="col-12">--}} {{-- <div class="form-group">--}} {{-- <button type="submit" class="btn btn-lg btn-primary">Submit</button>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{-- </form>--}} {{-- </div>--}} {{-- </div>--}} {{-- </div>--}} {{--</div>--}} {{--<div class="modal fade" tabindex="-1" id="composeEmail"> <div class="modal-dialog modal-dialog-top" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Send Attachment Link</h5> <a href="#" class="close" data-dismiss="modal" aria-label="Close"> <em class="icon ni ni-cross"></em> </a> </div> <div class="modal-body"> <form action="{{ route('attachment-email') }}" method="post"> @csrf <input type="hidden" name="request" value="{{ $reads->id }}"> <input type="hidden" name="user-id" value="{{ $reads->user->id }}"> <div class="row g-4"> <div class="col-lg-12"> <p>This will send an email to the lead with a link to upload the necessary attachments.</p> </div> <div class="col-12"> <div class="form-group"> <button type="submit" class="btn btn-lg btn-primary">Submit</button> </div> </div> </div> </form> </div> </div> </div> </div>--}} <div class="extra"> <upload-form route="{{ route('attachments.store_json') }}" :user-id="{{ Auth::id() }}" :request-id="{{ $reads->id }}" :with-type="false" ></upload-form> </div> @endsection @section('page-js') {{-- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>--}} <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.2/axios.min.js"></script> @include('attachments.templates.upload-form-template') <script type="text/javascript" src="{{ asset('js/attachments/validation-errors.js') }}"></script> <script type="text/javascript" src="{{ asset('js/attachments/upload-form-modal.js') }}"></script> <script type="text/javascript" src="{{ asset('js/request/line-items.js') }}"></script> @endsection
66.909091
252
0.328162
a23dd83a2241054e4f46bc6784603712bdbb77df
4,247
kt
Kotlin
src/main/kotlin/Main.kt
sureshbabua8/course-explorer-ktor
3dab590119d402a2ba5bea747d11fc979f5e5817
[ "MIT" ]
null
null
null
src/main/kotlin/Main.kt
sureshbabua8/course-explorer-ktor
3dab590119d402a2ba5bea747d11fc979f5e5817
[ "MIT" ]
null
null
null
src/main/kotlin/Main.kt
sureshbabua8/course-explorer-ktor
3dab590119d402a2ba5bea747d11fc979f5e5817
[ "MIT" ]
null
null
null
package hello import com.fasterxml.jackson.core.util.DefaultIndenter import com.fasterxml.jackson.core.util.DefaultPrettyPrinter import com.fasterxml.jackson.databind.SerializationFeature import io.ktor.application.Application import io.ktor.application.call import io.ktor.application.install import io.ktor.client.request.get import io.ktor.features.ContentNegotiation import io.ktor.http.HttpStatusCode import io.ktor.jackson.jackson import io.ktor.request.uri import io.ktor.response.respond import io.ktor.routing.get import io.ktor.routing.routing import io.ktor.server.engine.embeddedServer import io.ktor.server.netty.Netty fun Application.run() { val yearMilli: Long = 31540000000 val monthMilli: Long = 2628000000 val dayMilli: Long = 86400000 val hourMilli: Long = 3600000 install(ContentNegotiation) { jackson { configure(SerializationFeature.INDENT_OUTPUT, true) setDefaultPrettyPrinter(DefaultPrettyPrinter().apply { indentArraysWith(DefaultPrettyPrinter.FixedSpaceIndenter.instance) indentObjectsWith(DefaultIndenter(" ", "\n")) }) } } routing { get("/") { val xml: String? = updateCache(call.request.uri, yearMilli) if (xml != null) { try { call.respond(xml.fromXml<CalendarYears>()) } catch (e: Exception) { call.respond(HttpStatusCode.BadRequest) } } else { call.respond(HttpStatusCode.NotFound) } } get("/courses") { call.respond(getSemesterCourses("2020", "fall")!!) } get("{year}/{term}/courses") { call.respond(getSemesterCourses(call.parameters["year"]!!, call.parameters["term"]!!)!!) } get("/{year}") { val xml: String? = updateCache(call.request.uri, monthMilli) if (xml != null) { try { call.respond(xml.fromXml<ScheduleYear>()) } catch (e: Exception) { call.respond(HttpStatusCode.BadRequest) } } else { call.respond(HttpStatusCode.NotFound) } } get("/{year}/{term}/") { val xml: String? = updateCache(call.request.uri, dayMilli) if (xml != null) { try { call.respond(xml.fromXml<Term>()) } catch (e: Exception) { call.respond(HttpStatusCode.BadRequest) } } else { call.respond(HttpStatusCode.NotFound) } } get("/{year}/{term}/{course}") { val xml: String? = updateCache(call.request.uri, hourMilli) if (xml != null) { try { call.respond(xml.fromXml<Department>()) } catch (e: Exception) { call.respond(HttpStatusCode.BadRequest) } } else { call.respond(HttpStatusCode.NotFound) } } get("/{year}/{term}/{course}/{code}") { val xml: String? = updateCache(call.request.uri, hourMilli) if (xml != null) { try { call.respond(xml.fromXml<SubjectCourse>()) } catch (e: Exception) { call.respond(HttpStatusCode.BadRequest) } } else { call.respond(HttpStatusCode.NotFound) } } get("/{year}/{term}/{course}/{code}/{section}") { val xml: String? = updateCache(call.request.uri, hourMilli) if (xml != null) { try { call.respond(xml.fromXml<Section>()) } catch (e: Exception) { call.respond(HttpStatusCode.BadRequest) } } else { call.respond(HttpStatusCode.NotFound) } } } } suspend fun main(args: Array<String>) { loadSemesterCourses("2020", "fall") embeddedServer(Netty, port = 8080, module = Application::run).start(wait = true) }
33.976
100
0.535672
937e1a1f468ea571f7fb34536de659b11671f799
292
cs
C#
Test/MyResource.cs
esyur/esyur-dotnet
fbae3eb96066e196fed17bf93702ba50cea70ed5
[ "MIT" ]
null
null
null
Test/MyResource.cs
esyur/esyur-dotnet
fbae3eb96066e196fed17bf93702ba50cea70ed5
[ "MIT" ]
null
null
null
Test/MyResource.cs
esyur/esyur-dotnet
fbae3eb96066e196fed17bf93702ba50cea70ed5
[ "MIT" ]
null
null
null
using Esiur.Resource; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Test { [Resource] public partial class MyResource { [Public] string description; [Public] int categoryId; } }
17.176471
36
0.69863
2b9e57490d3d3d77c158aeff38ec3273414ec70d
589
cs
C#
Tetris/Tetris/Program.cs
sarah-rfs/Tetris
28341ee685018634df0077de73f1a30a886a6d41
[ "MIT" ]
null
null
null
Tetris/Tetris/Program.cs
sarah-rfs/Tetris
28341ee685018634df0077de73f1a30a886a6d41
[ "MIT" ]
null
null
null
Tetris/Tetris/Program.cs
sarah-rfs/Tetris
28341ee685018634df0077de73f1a30a886a6d41
[ "MIT" ]
null
null
null
using System; namespace Tetris { class Program { static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Yellow; MainMenu.writeTitle(); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Aperte Enter para começar"); Console.WriteLine("As setas movem para a direita e para a esquerda"); Console.WriteLine("A tecla espaço rotaciona a peça"); Console.WriteLine("Aperte esc para sair"); Console.ReadKey(true); } } }
26.772727
81
0.580645
217336c29150cc346fe25366747ad1ce137fd1ce
1,383
js
JavaScript
app/assets/javascripts/my_jquery.js
linus-young/LostAndFound
180b15f5b9cf68f5e96820a79cd94e8f89523f74
[ "MIT" ]
1
2016-09-23T16:17:15.000Z
2016-09-23T16:17:15.000Z
app/assets/javascripts/my_jquery.js
linus-young/LostAndFound
180b15f5b9cf68f5e96820a79cd94e8f89523f74
[ "MIT" ]
null
null
null
app/assets/javascripts/my_jquery.js
linus-young/LostAndFound
180b15f5b9cf68f5e96820a79cd94e8f89523f74
[ "MIT" ]
null
null
null
$(document).ready(function() { // blue and white altertive for unclaimed items, green for claimed items. $('tr:even').addClass('info'); $('tr > #item_status').each(function() { var $status = $(this).html(); if ($status == '已认领') { $(this).parents('tr').removeClass('info'); $(this).parents('tr').addClass('success'); } $(this).hide(); }); $('.hidden').hide(); // for lost_item click to show original image, fantastic! $("a#single_image").fancybox({ 'titleShow': false, 'transitionIn': 'elastic', 'transitionOut': 'elastic', 'easingIn': 'easeOutBack', 'easingOut': 'easeInBack' }); // for navbar in item category var url = window.location; // Will only work if string in href matches with location $('ul.nav-pills a[href="' + url + '"]').parent().addClass('active'); // Will also work for relative and absolute hrefs $('ul.nav-pills a').filter(function() { return this.href == url; }).parent().addClass('active'); // for datatable $('#lost_item_datatable').dataTable({ "info": false, "pageLength": 15, "bLengthChange": false, "bDestroy": true }); // $('#lost_item_datatable').dataTable({ // //paging: false, // ordering: false // }); });
25.611111
77
0.543022
ae99e9eddceed0ceee8c76c6ac04b2f16058196c
75
lua
Lua
lua/actors2/convars.lua
NickMBR/Actors2
78783060ea81f913711216f439d526a9774bbd70
[ "MIT" ]
null
null
null
lua/actors2/convars.lua
NickMBR/Actors2
78783060ea81f913711216f439d526a9774bbd70
[ "MIT" ]
null
null
null
lua/actors2/convars.lua
NickMBR/Actors2
78783060ea81f913711216f439d526a9774bbd70
[ "MIT" ]
null
null
null
if CLIENT then CreateClientConVar( "ac2_language", "en", true, false ) end
25
56
0.746667
23b379d8321b3a7f9d37c6dd441779d3c758ac9a
1,349
js
JavaScript
src/trie-match.js
roshanjaiswal/google-interview-preparation-problems
bbc34689f95983849b557504c3e01751fcd7ec41
[ "MIT" ]
1,671
2019-04-06T12:56:18.000Z
2022-03-31T07:51:47.000Z
src/trie-match.js
aadaa88/google-interview-preparation-problems
bbc34689f95983849b557504c3e01751fcd7ec41
[ "MIT" ]
1
2020-08-31T11:10:15.000Z
2020-08-31T11:10:15.000Z
src/trie-match.js
aadaa88/google-interview-preparation-problems
bbc34689f95983849b557504c3e01751fcd7ec41
[ "MIT" ]
295
2019-04-06T15:49:42.000Z
2022-03-19T06:18:24.000Z
class Trie { constructor() { this.root = {}; } insert(word, node = this.root, idx = 0) { if (idx >= word.length) { return; } node[word[idx]] = node[word[idx]] || {}; this.insert(word, node[word[idx]], idx + 1); } match(pattern, node = this.root, idx = 0) { if (idx >= pattern.length) { return true; } if (!node) { return false; } if (pattern[idx] === '*') { return Object.keys(node).reduce((accum, key) => { return accum || this.match(pattern, node[key], idx + 1); }, false); } else { if (!node[pattern[idx]]) { return false; } return this.match(pattern, node[pattern[idx]], idx + 1); } } } const trie = new Trie(); trie.insert('foo'); trie.insert('bar'); trie.insert('bar'); trie.insert('quxbar'); console.log(JSON.stringify(trie.root, null, 2)); console.assert(trie.match('')); console.assert(trie.match('foo')); console.assert(trie.match('f*o')); console.assert(trie.match('f**')); console.assert(!trie.match('z**')); console.assert(!trie.match('bay')); console.assert(!trie.match('b*y')); console.assert(!trie.match('b**z')); console.assert(trie.match('quxbar')); console.assert(trie.match('bar')); console.assert(trie.match('qu*ba*')); console.assert(trie.match('******')); console.assert(!trie.match('*******'));
24.089286
64
0.577465
1a358935fc8042b2d2316143582a15fd2dde8f32
724
py
Python
users/migrations/0002_auto_20210408_2227.py
Fastex007/api_yamdb
93fd2054111b86d392f5d5769dbe125c16b06126
[ "BSD-3-Clause" ]
null
null
null
users/migrations/0002_auto_20210408_2227.py
Fastex007/api_yamdb
93fd2054111b86d392f5d5769dbe125c16b06126
[ "BSD-3-Clause" ]
null
null
null
users/migrations/0002_auto_20210408_2227.py
Fastex007/api_yamdb
93fd2054111b86d392f5d5769dbe125c16b06126
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-08 22:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='user', options={'ordering': ('-id',)}, ), migrations.RemoveField( model_name='user', name='confirmation_code', ), migrations.AlterField( model_name='user', name='role', field=models.CharField(choices=[('user', 'User'), ('moderator', 'Moderator'), ('admin', 'Admin')], default='user', max_length=9, verbose_name='Роль пользователя'), ), ]
26.814815
175
0.55663
f54bdb444fb68ce4a9c2269b2a5df6dd7e77c594
145
dart
Dart
book_arklets/build/web/retarget_url_self.dart
Git-Host/pappes
bca8439d9e1557d3a370062e0d15dc42dc17525b
[ "Apache-2.0" ]
null
null
null
book_arklets/build/web/retarget_url_self.dart
Git-Host/pappes
bca8439d9e1557d3a370062e0d15dc42dc17525b
[ "Apache-2.0" ]
null
null
null
book_arklets/build/web/retarget_url_self.dart
Git-Host/pappes
bca8439d9e1557d3a370062e0d15dc42dc17525b
[ "Apache-2.0" ]
null
null
null
import 'dart:html'; import 'package:pappes_web_utility/pappes_web_utility.dart'; void main() { MyHtml.retargetAllHrefs(document, '_self'); }
24.166667
60
0.758621
28db1f5f50d17383eb35267fe902f9e4cf2a82e4
523
dart
Dart
lib/views/home/home_root_page/components/dragonball_component_component/action.dart
1906374092/FRDX_NeteaseMusic
161a700507ce146a9ed1b4b20d60b34877814ab1
[ "MIT" ]
1
2020-12-04T09:44:50.000Z
2020-12-04T09:44:50.000Z
lib/views/home/home_root_page/components/dragonball_component_component/action.dart
1906374092/FRDX_NeteaseMusic
161a700507ce146a9ed1b4b20d60b34877814ab1
[ "MIT" ]
null
null
null
lib/views/home/home_root_page/components/dragonball_component_component/action.dart
1906374092/FRDX_NeteaseMusic
161a700507ce146a9ed1b4b20d60b34877814ab1
[ "MIT" ]
null
null
null
import 'package:fish_redux/fish_redux.dart'; import 'package:zmusic_flutter/models/index.dart'; enum DragonballComponentAction { action, updateItem, convertData } class DragonballComponentActionCreator { static Action onAction() { return const Action(DragonballComponentAction.action); } static Action onUpdateItem() { return const Action(DragonballComponentAction.updateItem); } static Action onConvertData(List<DragonBall> dataList) { return Action(DragonballComponentAction.convertData); } }
27.526316
66
0.785851
0d45fd8c5faa734929146a990d9c82e21118d8d1
3,789
cs
C#
AonWeb.FluentHttp.Mocks/MockHttpRequestMessage.cs
andrewescutia/fluent-http
bcc0566d8eeb50e862a7cc6119781fdf7087e519
[ "MIT" ]
null
null
null
AonWeb.FluentHttp.Mocks/MockHttpRequestMessage.cs
andrewescutia/fluent-http
bcc0566d8eeb50e862a7cc6119781fdf7087e519
[ "MIT" ]
null
null
null
AonWeb.FluentHttp.Mocks/MockHttpRequestMessage.cs
andrewescutia/fluent-http
bcc0566d8eeb50e862a7cc6119781fdf7087e519
[ "MIT" ]
null
null
null
using System; using System.Linq; using System.Net; using System.Net.Http; using System.Text; namespace AonWeb.FluentHttp.Mocks { public class MockHttpRequestMessage: HttpRequestMessage, IMockRequestContext, IFluentConfigurable<MockHttpRequestMessage, MockHttpRequestMessage> { private string _contentType = "application/json"; public MockHttpRequestMessage() { } public MockHttpRequestMessage(HttpRequestMessage request) { Version = request.Version; Content = request.Content; Method = request.Method; RequestUri = request.RequestUri; foreach (var header in request.Headers) { Headers.Add(header.Key, header.Value); } foreach (var props in request.Properties) { Properties.Add(props.Key, props.Value); } } public MockHttpRequestMessage(HttpListenerRequest request) { Content = new StreamContent(request.InputStream); ContentEncoding = request.ContentEncoding; ContentType = request.ContentType; foreach (var headerKey in request.Headers.AllKeys) { var values = request.Headers.GetValues(headerKey); if (!Headers.TryAddWithoutValidation(headerKey, values)) Content.Headers.TryAddWithoutValidation(headerKey, values); } Method = new HttpMethod(request.HttpMethod); RequestUri = request.Url; if (request.UrlReferrer != null) Headers.TryAddWithoutValidation("Referer", request.UrlReferrer.OriginalString); if (request.AcceptTypes != null) { Headers.TryAddWithoutValidation("Accept", string.Join(",", request.AcceptTypes)); } if (!string.IsNullOrWhiteSpace(request.UserAgent)) Headers.TryAddWithoutValidation("User-Agent", request.UserAgent); } public string ContentString { set { if (ContentType != null) { Content = new StringContent(value, ContentEncoding, ContentType); } else { Content = new StringContent(value); } } } public Encoding ContentEncoding { get { return Encoding.GetEncoding(Content?.Headers.ContentEncoding.FirstOrDefault() ?? Encoding.UTF8.WebName); } set { if (value != null) Content?.Headers.TryAddWithoutValidation("Content-Encoding" ,value.WebName); } } public string ContentType { get { return Content?.Headers.ContentType?.MediaType ?? _contentType; } set { if (Content != null) { if (!string.IsNullOrWhiteSpace(value)) Content.Headers.TryAddWithoutValidation("Content-Type", value); else Content.Headers.ContentType = null; } _contentType = value; } } public long RequestCount { get; set; } public long RequestCountForThisUrl { get; set; } public MockHttpRequestMessage WithConfiguration(Action<MockHttpRequestMessage> configuration) { configuration?.Invoke(this); return this; } void IConfigurable<MockHttpRequestMessage>.WithConfiguration(Action<MockHttpRequestMessage> configuration) { WithConfiguration(configuration); } } }
32.110169
149
0.558723
0071910167222bf3af1ca07c01a1e6a0554e36fd
2,639
swift
Swift
Tests/MapToValueTests.swift
combinecommunity/CombineExt
1efb10db29bb8ace53a27dc17d6ccc6cd8861c88
[ "MIT" ]
3
2019-10-22T19:28:53.000Z
2019-10-23T00:17:52.000Z
Tests/MapToValueTests.swift
combinecommunity/CombineExt
1efb10db29bb8ace53a27dc17d6ccc6cd8861c88
[ "MIT" ]
null
null
null
Tests/MapToValueTests.swift
combinecommunity/CombineExt
1efb10db29bb8ace53a27dc17d6ccc6cd8861c88
[ "MIT" ]
null
null
null
// // MapToValueTests.swift // CombineExt // // Created by Dan Halliday on 08/05/2022. // Copyright © 2022 Combine Community. All rights reserved. // import Foundation #if !os(watchOS) import XCTest import Combine import CombineExt @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) final class MapToValueTests: XCTestCase { private var subscription: AnyCancellable! func testMapToConstantValue() { let subject = PassthroughSubject<Int, Never>() var result: Int? = nil subscription = subject .mapToValue(2) .sink(receiveValue: { result = $0 }) subject.send(1) XCTAssertEqual(result, 2) } func testMapToWithMultipleElements() { let expectation = XCTestExpectation() expectation.expectedFulfillmentCount = 3 let subject = PassthroughSubject<Int, Never>() subscription = subject .mapToValue("hello") .sink { element in XCTAssertEqual(element, "hello") expectation.fulfill() } subject.send(1) subject.send(2) subject.send(1) wait(for: [expectation], timeout: 3) } func testMapToVoidType() { let expectation = XCTestExpectation() let subject = PassthroughSubject<Int, Never>() subscription = subject .mapToValue(Void()) .sink { element in XCTAssertTrue(type(of: element) == Void.self) expectation.fulfill() } subject.send(1) wait(for: [expectation], timeout: 3) } func testMapToOptionalType() { let subject = PassthroughSubject<Int, Never>() let value: String? = nil var result: String? = nil subscription = subject .mapToValue(value) .sink(receiveValue: { result = $0 }) subject.send(1) XCTAssertEqual(result, nil) } /// Checks if regular map functions complies and works as expected. func testMapNameCollision() { let fooSubject = PassthroughSubject<Int, Never>() let barSubject = PassthroughSubject<Int, Never>() var result: String? = nil let combinedPublisher = Publishers.CombineLatest(fooSubject, barSubject) .map { fooItem, barItem in fooItem * barItem } subscription = combinedPublisher .map { "\($0)" } .sink(receiveValue: { result = $0 }) fooSubject.send(5) barSubject.send(6) XCTAssertEqual(result, "30") } } #endif
24.663551
80
0.579386
1a5e074173cb40bad19ab51a9d07f7413840fcb1
2,170
lua
Lua
platform/switch/source/scripts/window_button.lua
henlo-birb/lovepotion
3b7128f0683252915cd0178a3e028a553b01fdc1
[ "0BSD" ]
303
2016-06-20T01:07:44.000Z
2021-04-02T09:54:51.000Z
platform/switch/source/scripts/window_button.lua
henlo-birb/lovepotion
3b7128f0683252915cd0178a3e028a553b01fdc1
[ "0BSD" ]
95
2017-09-26T19:17:58.000Z
2021-04-06T00:53:02.000Z
platform/switch/source/scripts/window_button.lua
henlo-birb/lovepotion
3b7128f0683252915cd0178a3e028a553b01fdc1
[ "0BSD" ]
50
2017-07-14T06:06:46.000Z
2020-12-25T18:19:11.000Z
local __metatable = {} local Button = {} function Button.new(text, index, position, width, scale) local button = {} button.text = text button.index = index button.position = position button.size = { width = width * scale, height = 70 * scale } button.highlights = {} button.highlights.light = {0.24, 0.91, 0.82} button.highlights.dark = {0.38, 0.80, 0.89} button.textColors = {} button.textColors.light = {0.21, 0.33, 1.00} button.textColors.dark = {0.00, 1.00, 0.80} button.selected = false function button:getIndex() return self.index end function button:draw(theme, opacity) if self.selected then local r, g, b = unpack(self.highlights[theme]) love.graphics.setColor(r, g, b, math.abs(math.sin(love.timer.getTime() / 0.5))) love.graphics.rectangle("line", self.position.x, self.position.y, self.size.width, self.size.height, 4, 4) end local r, g, b = unpack(self.textColors[theme]) love.graphics.setColor(r, g, b, opacity) local font = love.graphics.getFont() love.graphics.printf(self.text, self.position.x, self.position.y + (self.size.height - font:getHeight()) * 0.5, self.size.width, "center") end local function coordsInside(x, y, w, h, mouse_x, mouse_y) return (mouse_x > x and mouse_x + 1 < x + w and mouse_y > y and mouse_y + 1 < y + h) end function button:setSelected(value) self.selected = value end function button:touchpressed(x, y) if coordsInside(self.position.x, self.position.y, self.size.width, self.size.height, x, y) then -- change text color return true end end function button:touchreleased(x, y) if coordsInside(self.position.x, self.position.y, self.size.width, self.size.height, x, y) then -- change text color return true end end return setmetatable(button, __metatable) end return setmetatable(Button, {__call = function(_, ...) return Button.new(...) end})
30.138889
147
0.599539
83091ef85c0065fb34787e85ecf6a8213ec8798e
1,737
ts
TypeScript
Biz.WebApp/Scripts/DomBehind/Threading/WorkerPool.ts
s-ueno/DomBehind
6a95ed77874d97e9688e682ff42e1574458941ee
[ "MIT" ]
4
2018-05-26T13:33:52.000Z
2019-10-06T23:04:10.000Z
Biz.WebApp/Scripts/DomBehind/Threading/WorkerPool.ts
s-ueno/DomBehind
6a95ed77874d97e9688e682ff42e1574458941ee
[ "MIT" ]
null
null
null
Biz.WebApp/Scripts/DomBehind/Threading/WorkerPool.ts
s-ueno/DomBehind
6a95ed77874d97e9688e682ff42e1574458941ee
[ "MIT" ]
1
2019-03-06T02:27:52.000Z
2019-03-06T02:27:52.000Z
namespace DomBehind.Threading { export class WorkerPool { protected static Pool: WorkerWrapper[] = []; public static Register(type: () => any, defaultPoolCount: number = 2): void { $("body").ready(e => { let factory = new TypedFactory(type()); for (var i = 0; i < defaultPoolCount; i++) { let newThread: WorkerWrapper = factory.CreateInstance() as WorkerWrapper; if ((newThread.PoolType & PoolType.PreLoad) == PoolType.PreLoad) { newThread.Load(); } this.Pool.push(newThread); } }); } public static Do(type: any, arg: any): JQueryPromise<any> { let thread: WorkerWrapper = null; let newPool: WorkerWrapper[] = []; $.each(WorkerPool.Pool, (i, value) => { if (thread) { newPool.push(value); } else { if (value instanceof type) { thread = value; } else { newPool.push(value); } } }); WorkerPool.Pool = newPool; if (!thread) { let factory = new TypedFactory(type); thread = factory.CreateInstance() as WorkerWrapper; thread.Load(); } return thread.Do(arg).always(() => { if (thread.PoolType & PoolType.Reload) { thread.Terminate(); thread.Load(); } WorkerPool.Pool.push(thread); }); } } }
32.773585
93
0.432355
ae7db54e3ac70ff600ef192e55137dfa1fbb07e9
395
cs
C#
examples/Sample.ServiceLayer/Handlers/HelloWorldHandler.cs
scardetto/Agatha
16f7762bdd011366591f5cfe1833799edf6dd8d9
[ "Apache-2.0" ]
21
2015-01-16T05:47:15.000Z
2020-10-06T07:14:04.000Z
examples/Sample.ServiceLayer/Handlers/HelloWorldHandler.cs
scardetto/Agatha
16f7762bdd011366591f5cfe1833799edf6dd8d9
[ "Apache-2.0" ]
3
2015-01-20T17:34:51.000Z
2015-10-19T11:39:14.000Z
examples/Sample.ServiceLayer/Handlers/HelloWorldHandler.cs
scardetto/Agatha
16f7762bdd011366591f5cfe1833799edf6dd8d9
[ "Apache-2.0" ]
22
2015-01-21T07:04:40.000Z
2020-09-17T17:42:34.000Z
using Agatha.Common; using Agatha.ServiceLayer; using Sample.Common.RequestsAndResponses; namespace Sample.ServiceLayer.Handlers { public class HelloWorldHandler : RequestHandler<HelloWorldRequest, HelloWorldResponse> { public override Response Handle(HelloWorldRequest request) { var response = CreateTypedResponse(); response.Message = "Hello World!"; return response; } } }
24.6875
87
0.78481
bf0ac10a51b6252bfd8e3375ef3b757ad1d46cb5
86
rb
Ruby
lib/shopify_api/resources/shipping_zone.rb
RYLabs/shopify_api
241c0bdfaba4ce2be2d414e7b7d71f12ace21fab
[ "MIT" ]
782
2015-01-07T11:09:34.000Z
2022-03-21T14:28:34.000Z
lib/shopify_api/resources/shipping_zone.rb
RYLabs/shopify_api
241c0bdfaba4ce2be2d414e7b7d71f12ace21fab
[ "MIT" ]
592
2015-01-01T23:54:43.000Z
2022-03-28T09:43:28.000Z
lib/shopify_api/resources/shipping_zone.rb
RYLabs/shopify_api
241c0bdfaba4ce2be2d414e7b7d71f12ace21fab
[ "MIT" ]
378
2015-01-08T12:52:02.000Z
2022-03-25T05:14:56.000Z
# frozen_string_literal: true module ShopifyAPI class ShippingZone < Base end end
14.333333
29
0.790698
a32940611db54e273e116a8b5dd7058bf73be28e
2,095
ts
TypeScript
lib/commands/releases.ts
terrorizer1980/balena-cli
cc60e86507c380bcd28d28b51e6bffa82b34d24b
[ "Apache-2.0" ]
null
null
null
lib/commands/releases.ts
terrorizer1980/balena-cli
cc60e86507c380bcd28d28b51e6bffa82b34d24b
[ "Apache-2.0" ]
5
2020-11-27T15:00:40.000Z
2021-11-04T22:15:38.000Z
lib/commands/releases.ts
balenaci/balena-cli
f635f648da88b46b324d9411d33f420a145edad2
[ "Apache-2.0" ]
null
null
null
/** * @license * Copyright 2016-2020 Balena Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { flags } from '@oclif/command'; import Command from '../command'; import * as cf from '../utils/common-flags'; import { getBalenaSdk, getVisuals, stripIndent } from '../utils/lazy'; import { applicationNameNote } from '../utils/messages'; import type * as BalenaSdk from 'balena-sdk'; interface FlagsDef { help: void; } interface ArgsDef { fleet: string; } export default class ReleasesCmd extends Command { public static description = stripIndent` List all releases of a fleet. List all releases of the given fleet. ${applicationNameNote.split('\n').join('\n\t\t')} `; public static examples = ['$ balena releases myorg/myfleet']; public static usage = 'releases <fleet>'; public static flags: flags.Input<FlagsDef> = { help: cf.help, }; public static args = [ { name: 'fleet', description: 'fleet name or slug', required: true, }, ]; public static authenticated = true; public async run() { const { args: params } = this.parse<FlagsDef, ArgsDef>(ReleasesCmd); const fields: Array<keyof BalenaSdk.Release> = [ 'id', 'commit', 'created_at', 'status', 'semver', 'is_final', ]; const balena = getBalenaSdk(); const releases = await balena.models.release.getAllByApplication( params.fleet, { $select: fields }, ); const _ = await import('lodash'); console.log( getVisuals().table.horizontal( releases.map((rel) => _.mapValues(rel, (val) => val ?? 'N/a')), fields, ), ); } }
24.08046
75
0.680191
b3a87f6835e28aacc2fbb59a83c45ec7289e4aa4
1,283
rs
Rust
libenigo/src/mouse_button.rs
feenkcom/gtoolkit-simulator
dbfeffaa9fda235d4f8de89831065ecf14331083
[ "MIT" ]
null
null
null
libenigo/src/mouse_button.rs
feenkcom/gtoolkit-simulator
dbfeffaa9fda235d4f8de89831065ecf14331083
[ "MIT" ]
null
null
null
libenigo/src/mouse_button.rs
feenkcom/gtoolkit-simulator
dbfeffaa9fda235d4f8de89831065ecf14331083
[ "MIT" ]
null
null
null
use boxer::string::BoxerString; use boxer::CBox; use enigo::MouseButton; #[derive(Debug, Copy, Clone)] #[repr(u32)] pub enum EnigoMouseButton { /// Left mouse button Left, /// Middle mouse button Middle, /// Right mouse button Right, /// Scroll up button ScrollUp, /// Left right button ScrollDown, /// Left right button ScrollLeft, /// Left right button ScrollRight, } impl From<EnigoMouseButton> for MouseButton { fn from(button: EnigoMouseButton) -> Self { match button { EnigoMouseButton::Left => MouseButton::Left, EnigoMouseButton::Middle => MouseButton::Middle, EnigoMouseButton::Right => MouseButton::Right, EnigoMouseButton::ScrollUp => MouseButton::ScrollUp, EnigoMouseButton::ScrollDown => MouseButton::ScrollDown, EnigoMouseButton::ScrollLeft => MouseButton::ScrollLeft, EnigoMouseButton::ScrollRight => MouseButton::ScrollRight, } } } #[no_mangle] pub fn enigo_mouse_button_to_string(_enum: EnigoMouseButton, _string_ptr: *mut BoxerString) { CBox::with_optional_raw(_string_ptr, |option| match option { None => {} Some(string) => string.set_string(format!("{:?}", _enum)), }) }
27.891304
93
0.641465
a34ca0cc91aa742870d909e11e770eb4627a209e
5,129
java
Java
src/main/java/net/yetamine/osgi/launcher/deploying/BundleProvisioning.java
yetamine/net.yetamine.osgi.launcher
e5133ba018cf82f1ec9caee67148eec07f88d887
[ "Apache-2.0" ]
null
null
null
src/main/java/net/yetamine/osgi/launcher/deploying/BundleProvisioning.java
yetamine/net.yetamine.osgi.launcher
e5133ba018cf82f1ec9caee67148eec07f88d887
[ "Apache-2.0" ]
null
null
null
src/main/java/net/yetamine/osgi/launcher/deploying/BundleProvisioning.java
yetamine/net.yetamine.osgi.launcher
e5133ba018cf82f1ec9caee67148eec07f88d887
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019 Yetamine * * 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 net.yetamine.osgi.launcher.deploying; import java.io.IOException; import java.io.InputStream; import java.util.Objects; import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; import org.osgi.framework.BundleException; import org.osgi.framework.startlevel.BundleStartLevel; /** * Adapts provisioning operations to provide a more suitable interface. */ final class BundleProvisioning { private BundleProvisioning() { throw new AssertionError(); } /** * Installs the bundle. * * @param context * the context to use for the deployment. It must not be * {@code null} and should be the system bundle context. * @param location * the location of the bundle. It must not be {@code null}. * @param source * the installation source. It must not be {@code null}. * * @return the installed bundle * * @throws BundleException * if the installation fails * @throws IOException * if the source fails to deliver the bundle */ public static Bundle installBundle(BundleContext context, String location, InputStreamSource source) throws BundleException, IOException { try (InputStream is = source.open()) { return context.installBundle(location, is); } } /** * Updates the bundle. * * @param bundle * the bundle to update. It must not be {@code null}. * @param source * the installation source. It must not be {@code null}. * * @return the updated bundle * * @throws BundleException * if the update fails * @throws IOException * if the source fails to deliver the bundle */ public static Bundle updateBundle(Bundle bundle, InputStreamSource source) throws BundleException, IOException { try (InputStream is = source.open()) { bundle.update(is); } return bundle; } /** * Uninstalls the given bundle unconditionally. * * @param bundle * the bundle to uninstall. It must not be {@code null}. * * @return {@code true} if the bundle was actually uninstalled * * @throws BundleException * if the operation fails */ public static boolean uninstallBundle(Bundle bundle) throws BundleException { try { // No need to check the precondition since it may change meanwhile anyway bundle.uninstall(); } catch (IllegalStateException e) { if (BundleState.UNINSTALLED.in(bundle.getState())) { return false; } throw new BundleException("Could not uninstall bundle " + bundle, BundleException.INVALID_OPERATION, e); } return true; } /** * Updates the start level of the bundle. * * @param bundle * the bundle to configure. It must not be {@code null}. * @param startLevel * the start level to set. Zero keeps the current start level. It * must not be negative. * * @throws BundleException * if the operation failed */ public static void updateStartLevel(Bundle bundle, int startLevel) throws BundleException { Objects.requireNonNull(bundle); if (startLevel == 0) { return; } final BundleStartLevel setup = bundle.adapt(BundleStartLevel.class); if (setup == null) { throw new BundleException("Could not set start level of " + bundle, BundleException.UNSUPPORTED_OPERATION); } try { setup.setStartLevel(startLevel); } catch (IllegalStateException e) { throw new BundleException("Could not set start level of " + bundle, BundleException.INVALID_OPERATION); } } /** * Updates the autostart setting to the given bundle if provided. * * @param bundle * the bundle to update. It must not be {@code null}. * @param setting * the setting. It may be {@code null} to no change. * * @throws BundleException * if the operation failed */ public static void updateAutostart(Bundle bundle, BundleAutostart setting) throws BundleException { Objects.requireNonNull(bundle); if (setting != null) { setting.applyTo(bundle); } } }
32.257862
142
0.617469
af837e8f88e369f534ddd3fcd984dea9fd756f87
1,994
py
Python
pylytics/library/warehouse.py
onefinestay/pylytics
b6e77e5d9931244efa6120409a4b97cc73efa4c9
[ "Apache-2.0" ]
5
2015-04-09T15:52:11.000Z
2021-07-18T00:19:14.000Z
pylytics/library/warehouse.py
onefinestay/pylytics
b6e77e5d9931244efa6120409a4b97cc73efa4c9
[ "Apache-2.0" ]
11
2015-02-01T03:56:19.000Z
2016-07-14T16:07:23.000Z
pylytics/library/warehouse.py
onefinestay/pylytics
b6e77e5d9931244efa6120409a4b97cc73efa4c9
[ "Apache-2.0" ]
4
2015-02-01T03:53:42.000Z
2015-08-11T13:14:32.000Z
from contextlib import closing import logging from utils import classproperty log = logging.getLogger("pylytics") class Warehouse(object): """ Global data warehouse pointer singleton. This class avoids having to pass a data warehouse connection into every table operation at the expense of the ability to easily work with multiple data warehouses simultaneously. """ __connection = None __version = None @classmethod def get(cls): """ Get the current data warehouse connection, warning if none has been defined. """ if cls.__connection is None: log.warning("No data warehouse connection defined") elif not cls.__connection.is_connected(): cls.__connection.reconnect(attempts=5) return cls.__connection @classmethod def use(cls, connection): """ Register a new data warehouse connection for use by all table operations. """ cls.__connection = connection cls.__version = None @classproperty def table_names(cls): """ List of names of all the tables (and views) currently defined within the database. """ connection = cls.get() with closing(connection.cursor()) as cursor: cursor.execute("SHOW TABLES") return [record[0] for record in cursor] @classproperty def trigger_names(cls): """ List of trigger names which exist in the database. """ connection = cls.get() with closing(connection.cursor()) as cursor: cursor.execute(""" SELECT trigger_name FROM information_schema.triggers """) return [record[0] for record in cursor] @classproperty def version(cls): """ Returns the MySQL server version number.""" if not cls.__version: cls.__version = "{}.{}.{}".format(*cls.get().get_server_version()) return cls.__version
29.761194
78
0.626379
73f085deb448a080a5f08d3599c7c432d38e7537
890
kt
Kotlin
app/core/src/main/java/com/fsck/k9/CoreKoinModules.kt
Trogel/k-9
c32238149ddf4dc719fe2800fb4783d910c36f11
[ "Apache-2.0" ]
1
2020-09-12T09:32:26.000Z
2020-09-12T09:32:26.000Z
app/core/src/main/java/com/fsck/k9/CoreKoinModules.kt
Trogel/k-9
c32238149ddf4dc719fe2800fb4783d910c36f11
[ "Apache-2.0" ]
null
null
null
app/core/src/main/java/com/fsck/k9/CoreKoinModules.kt
Trogel/k-9
c32238149ddf4dc719fe2800fb4783d910c36f11
[ "Apache-2.0" ]
1
2020-06-13T00:10:59.000Z
2020-06-13T00:10:59.000Z
package com.fsck.k9 import com.fsck.k9.autocrypt.autocryptModule import com.fsck.k9.controller.controllerModule import com.fsck.k9.crypto.openPgpModule import com.fsck.k9.helper.helperModule import com.fsck.k9.job.jobModule import com.fsck.k9.mailstore.mailStoreModule import com.fsck.k9.message.extractors.extractorModule import com.fsck.k9.message.html.htmlModule import com.fsck.k9.message.quote.quoteModule import com.fsck.k9.notification.coreNotificationModule import com.fsck.k9.preferences.preferencesModule import com.fsck.k9.search.searchModule val coreModules = listOf( mainModule, openPgpModule, autocryptModule, mailStoreModule, searchModule, extractorModule, htmlModule, quoteModule, coreNotificationModule, controllerModule, jobModule, helperModule, preferencesModule )
28.709677
54
0.755056
8e602270f9feb8684d7e6dbd0a6a70a72cbd7051
1,198
js
JavaScript
packages/@remocon/client/rollup.config.js
backrunner/remocon
71c5fab4e0f5ddd70cd8453c586d5c2ec8db9fcc
[ "MIT" ]
1
2021-08-15T17:29:15.000Z
2021-08-15T17:29:15.000Z
packages/@remocon/client/rollup.config.js
backrunner/remocon
71c5fab4e0f5ddd70cd8453c586d5c2ec8db9fcc
[ "MIT" ]
null
null
null
packages/@remocon/client/rollup.config.js
backrunner/remocon
71c5fab4e0f5ddd70cd8453c586d5c2ec8db9fcc
[ "MIT" ]
null
null
null
import resolve from '@rollup/plugin-node-resolve'; import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import replace from '@rollup/plugin-replace'; import { terser } from 'rollup-plugin-terser'; import dts from 'rollup-plugin-dts'; import fs from 'fs'; const extensions = ['.js', '.ts']; const pkg = JSON.parse(fs.readFileSync('./package.json')); const external = Object.keys(pkg.dependencies || {}) .concat(Object.keys(pkg.devDependencies || {})) .concat(['fs/promises', 'mysql2/promise']); export default process.env.BUILD_TYPE === 'true' ? { input: './src/index.ts', output: { format: 'es', file: 'types/index.d.ts', }, external, plugins: [ dts(), ] }: { input: './src/index.ts', output: { format: 'esm', file: 'dist/index.js', exports: 'named', sourcemap: true, }, external, plugins: [ replace({ 'process.env.NODE_ENV': JSON.stringify('production'), preventAssignment: true, }), resolve({ extensions, }), commonjs(), babel({ exclude: ['node_modules/**', './history/**'], babelHelpers: 'bundled', extensions, }), terser(), ], };
23.038462
59
0.609349
e47e78513e6239a222dd086f9e9527f3ec74fe5b
290
swift
Swift
FirebaseExplorer/FirebaseExplorerTests/FirebaseExplorerTests.swift
mouselangelo/FirebaseExplorer
64b923a73ce15399571fc488d01f35bc4263046c
[ "Unlicense" ]
null
null
null
FirebaseExplorer/FirebaseExplorerTests/FirebaseExplorerTests.swift
mouselangelo/FirebaseExplorer
64b923a73ce15399571fc488d01f35bc4263046c
[ "Unlicense" ]
null
null
null
FirebaseExplorer/FirebaseExplorerTests/FirebaseExplorerTests.swift
mouselangelo/FirebaseExplorer
64b923a73ce15399571fc488d01f35bc4263046c
[ "Unlicense" ]
null
null
null
// // FirebaseExplorerTests.swift // FirebaseExplorerTests // // Created by Chetan Agarwal on 26/12/17. // Copyright © 2017 deuxlapins. All rights reserved. // import XCTest @testable import FirebaseExplorer class FirebaseExplorerTests: XCTestCase { func testExample() { } }
17.058824
53
0.724138
cd0605cde51bbe014fd2bda4cdf5f020343f2bd5
317
rb
Ruby
Casks/tigerjython.rb
dlawde/homebrew-cask
4a9b403e71f06a83b158e064709b0bb82780f2a8
[ "BSD-2-Clause" ]
7,155
2018-05-25T15:47:29.000Z
2022-03-31T08:07:31.000Z
Casks/tigerjython.rb
dlawde/homebrew-cask
4a9b403e71f06a83b158e064709b0bb82780f2a8
[ "BSD-2-Clause" ]
12,169
2018-05-25T16:50:40.000Z
2022-03-31T20:15:21.000Z
Casks/tigerjython.rb
dlawde/homebrew-cask
4a9b403e71f06a83b158e064709b0bb82780f2a8
[ "BSD-2-Clause" ]
9,309
2018-05-25T14:58:04.000Z
2022-03-31T17:26:02.000Z
cask "tigerjython" do version :latest sha256 :no_check url "https://www.tjgroup.ch/download/TigerJython.dmg" name "TigerJython" desc "Jython-based educational programming environment" homepage "https://www.tjgroup.ch/" suite "TigerJython" zap trash: "~/Library/Caches/org.aplu.TigerJython-Mac" end
22.642857
57
0.741325
bb35992527dd092d5c6e96d535bbaa455d704649
1,097
cs
C#
tests/unit/ygo.domain.unit.tests/ServiceTests/FileSystemServiceTests/DownloadTests.cs
fablecode/ygo-api
346c91728cac0bbe14ea26f74918cd6eec3f1ed9
[ "MIT" ]
5
2018-04-09T21:12:58.000Z
2019-01-07T17:00:21.000Z
tests/unit/ygo.domain.unit.tests/ServiceTests/FileSystemServiceTests/DownloadTests.cs
fablecode/ygo-api
346c91728cac0bbe14ea26f74918cd6eec3f1ed9
[ "MIT" ]
1
2018-07-26T12:40:03.000Z
2019-03-07T12:08:46.000Z
tests/unit/ygo.domain.unit.tests/ServiceTests/FileSystemServiceTests/DownloadTests.cs
fablecode/ygo-api
346c91728cac0bbe14ea26f74918cd6eec3f1ed9
[ "MIT" ]
2
2017-09-07T14:13:01.000Z
2019-01-07T17:00:24.000Z
using System; using System.Threading.Tasks; using NSubstitute; using NUnit.Framework; using ygo.domain.Services; using ygo.domain.SystemIO; using ygo.tests.core; namespace ygo.domain.unit.tests.ServiceTests.FileSystemServiceTests { [TestFixture] [Category(TestType.Unit)] public class DownloadTests { private IFileSystem _fileSystem; private FileSystemService _sut; [SetUp] public void SetUp() { _fileSystem = Substitute.For<IFileSystem>(); _sut = new FileSystemService(_fileSystem); } [Test] public async Task Given_A_RemoteFileUrl_And_A_LocalFileFullPath_Should_Invoke_Download_Method_Once() { // Arrange var remoteFileUrl = new Uri("http://www.google.com"); const string localFileFullPath = @"c:\images\pic.png"; // Act await _sut.Download(remoteFileUrl, localFileFullPath); // Assert await _fileSystem.Received(1).Download(Arg.Is(remoteFileUrl), Arg.Is(localFileFullPath)); } } }
28.128205
108
0.646308
6aeb1137732b07deee03e68088782d79570473e9
1,697
h
C
staging_vespalib/src/vespa/vespalib/metrics/dummy_metrics_manager.h
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2020-06-02T13:28:29.000Z
2020-06-02T13:28:29.000Z
staging_vespalib/src/vespa/vespalib/metrics/dummy_metrics_manager.h
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2021-03-31T22:24:20.000Z
2021-03-31T22:24:20.000Z
staging_vespalib/src/vespa/vespalib/metrics/dummy_metrics_manager.h
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2020-09-03T11:39:52.000Z
2020-09-03T11:39:52.000Z
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <memory> #include <thread> #include <vespa/vespalib/stllike/string.h> #include "name_collection.h" #include "current_samples.h" #include "snapshots.h" #include "metrics_manager.h" #include "clock.h" namespace vespalib { namespace metrics { /** * Dummy manager that discards everything, use * for unit tests where you don't care about * metrics. **/ class DummyMetricsManager : public MetricsManager { protected: DummyMetricsManager() {} public: ~DummyMetricsManager(); static std::shared_ptr<MetricsManager> create() { return std::shared_ptr<MetricsManager>(new DummyMetricsManager()); } Counter counter(const vespalib::string &, const vespalib::string &) override { return Counter(shared_from_this(), MetricId(0)); } Gauge gauge(const vespalib::string &, const vespalib::string &) override { return Gauge(shared_from_this(), MetricId(0)); } Dimension dimension(const vespalib::string &) override { return Dimension(0); } Label label(const vespalib::string &) override { return Label(0); } PointBuilder pointBuilder(Point) override { return PointBuilder(shared_from_this()); } Point pointFrom(PointMap) override { return Point(0); } Snapshot snapshot() override; Snapshot totalSnapshot() override; // for use from Counter only void add(Counter::Increment) override {} // for use from Gauge only void sample(Gauge::Measurement) override {} }; } // namespace vespalib::metrics } // namespace vespalib
26.936508
118
0.692398
c54cfb1125f9acf0287a957d9c959b3040417d9b
3,501
dart
Dart
lib/services/question_database/hive_question_database.dart
defuncart/einbuergerungstest
7da59c8dedf3909b0920b74b77fc7b7085b0c62d
[ "MIT" ]
null
null
null
lib/services/question_database/hive_question_database.dart
defuncart/einbuergerungstest
7da59c8dedf3909b0920b74b77fc7b7085b0c62d
[ "MIT" ]
null
null
null
lib/services/question_database/hive_question_database.dart
defuncart/einbuergerungstest
7da59c8dedf3909b0920b74b77fc7b7085b0c62d
[ "MIT" ]
null
null
null
import 'dart:io'; import 'package:einbuergerungstest/services/question_database/enums/question_type.dart'; import 'package:einbuergerungstest/services/question_database/i_question_database.dart'; import 'package:einbuergerungstest/services/question_database/models/question.dart'; import 'package:flutter/services.dart'; import 'package:hive/hive.dart'; import 'package:path_provider/path_provider.dart'; class HiveQuestionDatabase implements IQuestionDatabase { late Box<Question> _box; static const _boxName = 'questions'; @override List<Question> get questionsForQuiz { const numberQuestions = 33; final questions = <Question>[]; // take as many non-seen questions as possible var notSeen = allQuestions.where((q) => !q.hasBeenSeen); if (notSeen.length >= numberQuestions) { notSeen = notSeen.toList()..shuffle(); return notSeen.take(numberQuestions).toList(); } questions.addAll(notSeen); // take at most numberRemainingQuestions / 2 difficult questions final difficult = allQuestions.where((q) => q.wasAnsweredIncorrectly); difficult.toList().sort((a, b) => a.correctPercentage.compareTo(b.correctPercentage)); var numberRemainingQuestions = numberQuestions - questions.length; final maxNumberDifficultQuestions = (numberRemainingQuestions * 0.5).floor(); questions.addAll(difficult.take(maxNumberDifficultQuestions)); // randomly choose remaining numberRemainingQuestions = numberQuestions - questions.length; final remainingQuestions = allQuestions.where((q) => !questions.contains(q)); remainingQuestions.toList().shuffle(); questions.addAll(remainingQuestions.take(numberRemainingQuestions)); // finally shuffle and return assert(questions.length == numberQuestions); questions.shuffle(); return questions; } @override List<Question> questionsById(List<String> ids) => ids.map(_getQuestion).toList(); Question _getQuestion(String id) => allQuestions.firstWhere((q) => q.id == id); @override List<Question> get allQuestions => _box.values.toList(); @override Stream<List<Question>> get watchAllQuestions => _box.watch().map((_) => allQuestions); @override List<Question> get favorites => allQuestions.where((q) => q.isFavorite).toList(); @override Stream<List<Question>> get watchFavorites => _box.watch().map((_) => favorites); @override List<Question> get difficult => allQuestions.where((q) => q.wasAnsweredIncorrectly).toList() ..sort((a, b) => '${1 - b.correctPercentage}-${b.attempts}'.compareTo('${1 - a.correctPercentage}-${a.attempts}')); @override Stream<List<Question>> get watchDifficult => _box.watch().map((_) => difficult); @override Future<void> initialize() async { Hive.registerAdapter(QuestionTypeAdapter()); Hive.registerAdapter(QuestionAdapter()); final file = File(await _deviceFilepath); if (!await file.exists()) { final asset = await rootBundle.load('assets/database/questions.hive'); await file.writeAsBytes(asset.buffer.asUint8List(asset.offsetInBytes, asset.lengthInBytes)); } _box = await Hive.openBox<Question>(_boxName); } @override Future<void> reset() async { final file = File(await _deviceFilepath); if (await file.exists()) { await file.delete(); } await initialize(); } Future<String> get _deviceFilepath async { final dir = (await getApplicationDocumentsDirectory()).path; return '$dir/questions.hive'; } }
35.01
119
0.719794
716569a916fc895092b9ef6a53b40388430855a5
1,502
lua
Lua
lua/user/lualine.lua
GusChenn/nvim
fb8d2d8ee607bc4f53b436649059475dae8c52cf
[ "MIT" ]
null
null
null
lua/user/lualine.lua
GusChenn/nvim
fb8d2d8ee607bc4f53b436649059475dae8c52cf
[ "MIT" ]
null
null
null
lua/user/lualine.lua
GusChenn/nvim
fb8d2d8ee607bc4f53b436649059475dae8c52cf
[ "MIT" ]
null
null
null
-- Lsp server name . local function getLsp() local msg = 'No Active Lsp' local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') local clients = vim.lsp.get_active_clients() if next(clients) == nil then return msg end for _, client in ipairs(clients) do local filetypes = client.config.filetypes if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then return client.name end end return msg end require('lualine').setup { options = { icons_enabled = true, theme = 'auto', component_separators = { left = '|', right = '|'}, -- section_separators = { left = '', right = ''}, section_separators = { left = '', right = '' }, disabled_filetypes = {}, always_divide_middle = true, }, sections = { lualine_a = {'mode'}, lualine_b = {'branch', 'diff', 'diagnostics'}, lualine_c = {'filename'}, lualine_x = { { getLsp, icon = ' ', color = { fg = '#51A0CF', gui = 'bold' }, }, 'filetype' }, lualine_y = {''}, lualine_z = {'progress'} }, inactive_sections = { lualine_a = {}, lualine_b = {}, lualine_c = {'filename'}, lualine_x = {'location'}, lualine_y = {}, lualine_z = {} }, tabline = {}, extensions = {} }
25.457627
63
0.483356
c963094d3e1c7dc7d8a85120a49a84d5cd9faefd
461
swift
Swift
Sources/ParseSwift/Objects Protocols/ObjectType+Query.swift
drdaz/Parse-Swift
43407e8bf42f58a9617c631a43cfe830672fd78a
[ "MIT" ]
null
null
null
Sources/ParseSwift/Objects Protocols/ObjectType+Query.swift
drdaz/Parse-Swift
43407e8bf42f58a9617c631a43cfe830672fd78a
[ "MIT" ]
null
null
null
Sources/ParseSwift/Objects Protocols/ObjectType+Query.swift
drdaz/Parse-Swift
43407e8bf42f58a9617c631a43cfe830672fd78a
[ "MIT" ]
null
null
null
// // Object+Query.swift // Parse // // Created by Florent Vilmart on 17-07-23. // Copyright © 2017 Parse. All rights reserved. // import Foundation public extension ObjectType { static func find() throws -> [Self] { return try query().find() } static func query() -> Query<Self> { return Query<Self>() } static func query(_ constraints: QueryConstraint...) -> Query<Self> { return Query(constraints) } }
19.208333
73
0.611714
8eb18f01cc5051e3814a48c2ce55f7a59804f4d1
86
sh
Shell
api/gunicorn_start.sh
anbangleo/NlsdeWeb
af019ff074920ed47641ba9bfc406db722813d0f
[ "MIT" ]
10
2015-09-11T03:16:20.000Z
2021-08-11T23:49:01.000Z
api/gunicorn_start.sh
anbangleo/NlsdeWeb
af019ff074920ed47641ba9bfc406db722813d0f
[ "MIT" ]
8
2015-08-29T19:34:02.000Z
2016-02-01T18:15:54.000Z
api/gunicorn_start.sh
anbangleo/NlsdeWeb
af019ff074920ed47641ba9bfc406db722813d0f
[ "MIT" ]
3
2015-12-16T20:57:44.000Z
2020-07-14T17:29:36.000Z
#!/bin/sh WORKERS=${1:-4} gunicorn -b 0.0.0.0:8000 -w $WORKERS 'api.app:config_app()'
21.5
59
0.639535
80b91da56a2ddad6468fe61c2d78480c4a72a1b7
4,011
swift
Swift
ZDComboBox/ZDComboBoxListContent.swift
zdima/ZDComboBox
5eb2e8afaab7d8ef86ac54cda3ead1b2faedaa52
[ "MIT" ]
null
null
null
ZDComboBox/ZDComboBoxListContent.swift
zdima/ZDComboBox
5eb2e8afaab7d8ef86ac54cda3ead1b2faedaa52
[ "MIT" ]
null
null
null
ZDComboBox/ZDComboBoxListContent.swift
zdima/ZDComboBox
5eb2e8afaab7d8ef86ac54cda3ead1b2faedaa52
[ "MIT" ]
null
null
null
// // ZDComboBoxTreeContent.swift // combobox // // Created by Dmitriy Zakharkin on 8/9/15. // Copyright (c) 2015 ZDima. All rights reserved. // import Cocoa class ZDComboBoxList: ZDPopupContent, NSTableViewDelegate { var disableSelectionNotification: Bool = false @IBOutlet var itemController: NSArrayController! @IBOutlet var table: NSTableView! let recordSortDescriptors = [ NSSortDescriptor(key: "title", ascending: true) ] @IBAction func performClick(sender: AnyObject?) { // hide popup when user select item by click ZDPopupWindowManager.popupManager.hidePopup() } override func invalidateFilter() { if !filter.isEmpty { var filteredContent: [ZDComboBoxItem] = [] for item in items { if let filtered = item.selfOrHasChildWithKey( filter.lowercaseString ) { filteredContent.append(filtered) } } itemController.content = filteredContent } else { itemController.content = items } } override func viewWillAppear() { invalidateFilter() super.viewWillAppear() } func makeSelectionVisible() { var selRect: NSRect = table!.rectOfRow( table!.selectedRow ) table.scrollRectToVisible( selRect ) } override func moveSelectionUp(up: Bool) { var i: Int = table!.selectedRow if up { i = i-1 } else { i = i+1 } if i < 0 { return } table.selectRowIndexes( NSIndexSet(index: i), byExtendingSelection: false) makeSelectionVisible() } func tableViewSelectionDidChange(notification: NSNotification) { if disableSelectionNotification == false { let sa: NSArray = itemController.selectedObjects delegate!.selectionDidChange( sa, fromUpDown: true) } } func tableView(tableView: NSTableView, shouldShowCellExpansionForTableColumn tableColumn: NSTableColumn?, row: Int) -> Bool { return false } func childByName(name: String, children: [AnyObject], indexes: NSMutableArray) -> Bool { var i: Int = 0 var ret: Bool = false let maxCount: Int = children.count let stringLength: Int = count(name) as Int let stringRange: NSRange = NSRange(location: 0, length:stringLength) for object in children { if let item: ZDComboBoxItem = object as? ZDComboBoxItem { indexes.addObject(NSNumber(integer: i)) if item.title.lowercaseString.hasPrefix(name.lowercaseString) { ret = true break } else { ret = childByName(name, children: (item.childs as NSArray).sortedArrayUsingDescriptors(recordSortDescriptors), indexes: indexes) if ret == true { break } indexes.removeLastObject() } } i = i+1 } return ret } override func moveSelectionTo(string: String?, filtered: Bool) -> NSString? { disableSelectionNotification = true var indexes: NSMutableArray = NSMutableArray() if filtered { if string != nil { filter = string! } else { filter = "" } } else { filter = "" } if let children = itemController.content as? NSArray { let sortedchildren = children.sortedArrayUsingDescriptors(recordSortDescriptors) if childByName(string!, children:sortedchildren, indexes:indexes) { var selection: NSIndexPath? = nil; for n in indexes { if let num: NSNumber = n as? NSNumber { if selection != nil { selection = selection!.indexPathByAddingIndex(num.integerValue) } else { selection = NSIndexPath(index: num.integerValue ) } } } if let stringIdx = selection { itemController.setSelectionIndex(stringIdx.indexAtPosition(0)) } else { itemController.setSelectionIndex(NSNotFound) } var sa: NSArray = itemController.selectedObjects; if let c: ZDComboBoxItem = sa.firstObject as? ZDComboBoxItem { var s: String = c.title disableSelectionNotification = false return s } } } disableSelectionNotification = false makeSelectionVisible() return nil } override func convertUserObjectToItems() { super.convertUserObjectToItems() itemController.content = items } }
24.759259
93
0.69459
e742399b2fbbae2e7a32023e3685d80ac25c32e2
444
php
PHP
database/seeders/MoveInDocModuleSeeder.php
dilbarshahzada95/4direction
1f2f220707c4e7a920c70e3e3607b1721123fa6d
[ "MIT" ]
null
null
null
database/seeders/MoveInDocModuleSeeder.php
dilbarshahzada95/4direction
1f2f220707c4e7a920c70e3e3607b1721123fa6d
[ "MIT" ]
null
null
null
database/seeders/MoveInDocModuleSeeder.php
dilbarshahzada95/4direction
1f2f220707c4e7a920c70e3e3607b1721123fa6d
[ "MIT" ]
null
null
null
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use DB; class MoveInDocModuleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $status=array("Ejari","DEWA Connection"); foreach ($status as $value) { DB::table('move_in_doc_module')->insert([ 'name' => $value, ]); } } }
17.76
54
0.527027
6f7ef77e3d87a49faa611636e8e8029378ddef35
1,421
rb
Ruby
test/dummy/app/controllers/comments_controller.rb
hayashima/full_metal_body
4c850c63066c6227f1fc9db6331c5316e146b05b
[ "MIT" ]
null
null
null
test/dummy/app/controllers/comments_controller.rb
hayashima/full_metal_body
4c850c63066c6227f1fc9db6331c5316e146b05b
[ "MIT" ]
3
2022-03-01T07:36:08.000Z
2022-03-01T08:27:14.000Z
test/dummy/app/controllers/comments_controller.rb
hayashima/full_metal_body
4c850c63066c6227f1fc9db6331c5316e146b05b
[ "MIT" ]
null
null
null
class CommentsController < ApplicationController before_action :set_article before_action :set_comment, only: %i[ show edit update destroy ] # GET /comments def index @comments = @article.comments end # GET /comments/1 def show end # GET /comments/new def new @comment = @article.comments.build end # GET /comments/1/edit def edit end # POST /comments def create @comment = @article.comments.build(comment_params) if @comment.save redirect_to [@article, @comment], notice: "Comment was successfully created." else render :new, status: :unprocessable_entity end end # PATCH/PUT /comments/1 def update if @comment.update(comment_params) redirect_to [@article, @comment], notice: "Comment was successfully updated." else render :edit, status: :unprocessable_entity end end # DELETE /comments/1 def destroy @comment.destroy redirect_to article_comments_url(@article), notice: "Comment was successfully destroyed." end private def set_article @article = Article.find(params[:article_id]) end # Use callbacks to share common setup or constraints between actions. def set_comment @comment = @article.comments.find(params[:id]) end # Only allow a list of trusted parameters through. def comment_params params.require(:comment).permit(:content) end end
22.203125
93
0.690359
3f8165e9826c2fb2536a5543d0948edb7849b8b1
1,147
php
PHP
database/migrations/2018_05_12_085253_create_dice_duel_stats_table.php
altybayev/razor
7bb66bfffaa9742f3420823818a7d38911a311b6
[ "MIT" ]
null
null
null
database/migrations/2018_05_12_085253_create_dice_duel_stats_table.php
altybayev/razor
7bb66bfffaa9742f3420823818a7d38911a311b6
[ "MIT" ]
null
null
null
database/migrations/2018_05_12_085253_create_dice_duel_stats_table.php
altybayev/razor
7bb66bfffaa9742f3420823818a7d38911a311b6
[ "MIT" ]
null
null
null
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDiceDuelStatsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('dice_duel_stats', function (Blueprint $table) { $table->increments('id'); $table->integer('red_equals_blue')->unsigned(); $table->integer('red_plus_blue_greater_ten')->unsigned(); $table->integer('red_plus_blue_less_four')->unsigned(); $table->integer('red_plus_blue_equals_seven')->unsigned(); $table->integer('red_greater_blue')->unsigned(); $table->integer('blue_greated_red')->unsigned(); $table->integer('red_plus_blue_equals_six')->unsigned(); $table->integer('red_plus_blue_equals_eight')->unsigned(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('dice_duel_stats'); } }
27.309524
71
0.603313
0eb66e58991fcc287481ca107a2f056646d4827b
501
swift
Swift
Sources/swift-add/util.swift
subdigital/swift-add
9eec14efebf8ce08b8709016a7adfc6fd681442d
[ "MIT" ]
20
2022-02-10T18:20:47.000Z
2022-03-21T08:17:34.000Z
Sources/swift-add/util.swift
subdigital/swift-add
9eec14efebf8ce08b8709016a7adfc6fd681442d
[ "MIT" ]
5
2022-02-11T15:12:41.000Z
2022-02-11T16:15:52.000Z
Sources/swift-add/util.swift
subdigital/swift-add
9eec14efebf8ce08b8709016a7adfc6fd681442d
[ "MIT" ]
null
null
null
import Foundation func withTempDirectory<T>(_ block: @escaping (String) throws -> T) throws -> T { let id = UUID().uuidString let dir = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("swift-add-\(id)").path try FileManager.default.createDirectory(atPath: dir, withIntermediateDirectories: true) defer { try? FileManager.default.removeItem(atPath: dir) } do { let result = try block(dir) return result } catch { throw error } }
33.4
105
0.680639
9818270e1257fea45257ac242497825989597de4
1,720
py
Python
tests/test_netbox.py
jvanderaa/nornir_netbox
2bf9c72421a6ea5dbab3d59cf1eba63124552cfb
[ "Apache-2.0" ]
1
2020-06-22T13:49:48.000Z
2020-06-22T13:49:48.000Z
tests/test_netbox.py
jvanderaa/nornir_netbox
2bf9c72421a6ea5dbab3d59cf1eba63124552cfb
[ "Apache-2.0" ]
null
null
null
tests/test_netbox.py
jvanderaa/nornir_netbox
2bf9c72421a6ea5dbab3d59cf1eba63124552cfb
[ "Apache-2.0" ]
null
null
null
import json import os from nornir_netbox.plugins.inventory.netbox import NBInventory from nornir_netbox.plugins.inventory.netbox import NetBoxInventory2 # We need import below to load fixtures import pytest # noqa BASE_PATH = os.path.dirname(__file__) def get_inv(requests_mock, plugin, pagination, **kwargs): if not pagination: with open(f"{BASE_PATH}/mocked/devices.json", "r") as f: requests_mock.get( "http://localhost:8080/api/dcim/devices/?limit=0", json=json.load(f), headers={"Content-type": "application/json"}, ) else: for offset in range(3): with open(f"{BASE_PATH}/mocked/devices-{offset}.json", "r") as f: url = "http://localhost:8080/api/dcim/devices/?limit=0" requests_mock.get( f"{url}&offset={offset}" if offset else url, json=json.load(f), headers={"Content-type": "application/json"}, ) return plugin().load() class TestNBInventory(object): plugin = NBInventory def test_inventory(self, requests_mock): inv = get_inv(requests_mock, self.plugin, False) with open(f"{BASE_PATH}/{self.plugin.__name__}/expected.json", "r") as f: expected = json.load(f) assert expected == inv.dict() def test_inventory_pagination(self, requests_mock): inv = get_inv(requests_mock, self.plugin, False) with open(f"{BASE_PATH}/{self.plugin.__name__}/expected.json", "r") as f: expected = json.load(f) assert expected == inv.dict() class TestNetBoxInventory2(TestNBInventory): plugin = NetBoxInventory2
33.076923
81
0.619186
05f6020db0bcc10d9f724aa2d64857ffa9cf2929
6,433
py
Python
utilities/stretching.py
patcdaniel/heat-content
9be0bca1bb776c5d446945ccf900c943fcb8bae6
[ "MIT" ]
null
null
null
utilities/stretching.py
patcdaniel/heat-content
9be0bca1bb776c5d446945ccf900c943fcb8bae6
[ "MIT" ]
null
null
null
utilities/stretching.py
patcdaniel/heat-content
9be0bca1bb776c5d446945ccf900c943fcb8bae6
[ "MIT" ]
null
null
null
import numpy as np #import numba #@numba.jit(nopython=True) def stretching(Vstretching,theta_s,theta_b,hc,N,kgrid, report): ''' #function [s,C]=stretching(Vstretching, theta_s, theta_b, hc, N, kgrid, ... # report) # # STRETCHING: Compute ROMS vertical coordinate stretching function # # [s,C]=stretching(Vstretching, theta_s, theta_b, hc, N, kgrid, report) # # Given vertical terrain-following vertical stretching parameters, this # this routine computes the vertical stretching function used used in # ROMS vertical coordinate transformation. Check the following link for # details: # # https://www.myroms.org/wiki/index.php/Vertical_S-coordinate # # On Input: # # Vstretching Vertical stretching function: # Vstretching = 1, original (Song and Haidvogel, 1994) # Vstretching = 2, A. Shchepetkin (UCLA-ROMS, 2005) # Vstretching = 3, R. Geyer BBL refinement # Vstretching = 4, A. Shchepetkin (UCLA-ROMS, 2010) # theta_s S-coordinate surface control parameter (scalar) # theta_b S-coordinate bottom control parameter (scalar) # hc Width (m) of surface or bottom boundary layer in which # higher vertical resolution is required during # stretching (scalar) # N Number of vertical levels (scalar) # kgrid Depth grid type logical switch: # kgrid = 0, function at vertical RHO-points # kgrid = 1, function at vertical W-points # report Flag to report detailed information (OPTIONAL): # report = false, do not report # report = true, report information # # On Output: # # s S-coordinate independent variable, [-1 <= s <= 0] at # vertical RHO- or W-points (vector) # C Nondimensional, monotonic, vertical stretching function, # C(s), 1D array, [-1 <= C(s) <= 0] # # svn $Id: stretching.m 595 2012-01-17 19:44:46Z arango $ #=========================================================================# # Copyright (c) 2002-2012 The ROMS/TOMS Group # # Licensed under a MIT/X style license # # See License_ROMS.txt Hernan G. Arango # #=========================================================================# ''' if (Vstretching < 1)or(Vstretching > 4): print('*** Error Stretching-Illegal parameter Vstretching='+str(Vstretching)) return # this code is unnecessary #s=np.array([]) #C=np.array([]) # need code for checking number of arguments Np=N+1 if(Vstretching==1): ds=1.0/N if (kgrid==1): Nlev=Np lev=np.arange(0,N+1) s=(lev-N)*ds else: Nlev=N lev=(np.arange(1,N+1))-0.5 s=(lev-N)*ds if (theta_s > 0): Ptheta=np.sinh(theta_s*s)/np.sinh(theta_s) Rtheta=np.tanh(theta_s*(s+0.5))/(2*np.tanh(0.5*theta_s))-0.5 C=(1.0-theta_b)*Ptheta+theta_b*Rtheta else: C=s elif (Vstretching==2): alfa=1.0 beta=1.0 ds=1.0/N if(kgrid==1): Nlev=Np lev=np.arange(0,N+1) s=(lev-N)*ds else: Nlev=N lev=np.arange(1,N+1)-0.5 s=(lev-N)*ds if (theta_s > 0): Csur=(1.0-np.cosh(theta_s*s))/(np.cosh(theta_s)-1.0) if (theta_b > 0): Cbot=-1.0+np.sinh(theta_b*(s+1.0))/np.sinh(theta_b) weigth=np.power((s+1.0),alfa)*(1+(alfa/bet)*(1.0-np.power((s+1.0),beta))) C=weigth*Csur+(1-weigth)*Cbot else: C=Csur else: C=s # R. Geyer BBL vertical stretching function elif(Vstretching==3): ds=1.0/N if(kgrid==1): Nlev=Np lev=np.arange(0,N+1) s=(lev-N)*ds else: Nlev=N lev=np.arange(1,N+1)-0.5 s=(lev-N)*ds if(theta_s > 0): exp_s=theta_s exp_b=theta_b alpha=3 Cbot=np.log(np.cosh(alpha*np.power((s+1),exp_b)))/np.log(np.cosh(alpha))-1 Csur=-np.log(np.cosh(alpha*np.power(np.abs(s),exp_s)))/np.log(np.cosh(alpha)) weight=(1-np.tanh(alpha*(s+0.5)))/2 C=weight*Cbot+(1-weight)*Csur else: C=s # A. Shchepetkin (UCLA-ROMS, 2010) double vertical stretching function # with bottom refinement elif(Vstretching==4): ds=1.0/N if(kgrid==1): Nlev=Np lev=np.arange(0,N+1) s=(lev-N)*ds else: Nlev=N lev=np.arange(1,N+1)-0.5 s=(lev-N)*ds if (theta_s > 0): Csur=(1.0-np.cosh(theta_s*s))/(np.cosh(theta_s)-1.0) else: Csur=np.power(-s,2) if (theta_b > 0): Cbot=(np.exp(theta_b*Csur)-1.0)/(1.0-np.exp(-theta_b)) C=Cbot else: C=Csur if (report): print(' ') if(Vstretching==1): print('Vstretching='+str(Vstretching)+' Song and Haidvogel (1994)') elif(Vstretching==2): print('Vstretching='+str(Vstretching)+' Shchepetking (2005)') elif(Vstretching==3): print('Vstretching='+str(Vstretching)+' Geyer (2009), BBL') elif(Vstretching==4): print('Vstretching='+str(Vstretching)+' Shchepetkin (2010)') if(kgrid==1): print('kgrid = '+str(kgrid)+' at vertical W-points') else: print('kgrid = '+str(kgrid)+' at vertical RHO-points') print('theta_s= '+str(theta_s)) print('theta_b= '+str(theta_b)) print('hc= '+str(hc)) print(' S-coordinate curves: k, s(k), C(k)') if (kgrid==1): for k in np.arange(Nlev,1,-1): print(' ') print(k-1,s[k],C[k]) else: for k in np.arange(Nlev,1,-1): print(' ') print(k,s[k],C[k]) return [s,C]
37.841176
90
0.487176
a3983b10477b6b8c84b619e04d1322884160d98e
106,127
ts
TypeScript
CFM5.3_4/ts/500m/CRFA-CSBL-ZACA-Zaca_blind_fault-CFM5_500m.ts
SCECcode/CFM
243d2a73f87df7d8fea4ba81026233c76f65300a
[ "BSD-3-Clause" ]
null
null
null
CFM5.3_4/ts/500m/CRFA-CSBL-ZACA-Zaca_blind_fault-CFM5_500m.ts
SCECcode/CFM
243d2a73f87df7d8fea4ba81026233c76f65300a
[ "BSD-3-Clause" ]
null
null
null
CFM5.3_4/ts/500m/CRFA-CSBL-ZACA-Zaca_blind_fault-CFM5_500m.ts
SCECcode/CFM
243d2a73f87df7d8fea4ba81026233c76f65300a
[ "BSD-3-Clause" ]
null
null
null
GOCAD TSurf 1 HEADER { name:CRFA-CSBL-ZACA-Zaca_blind_fault-CFM5_500m *visible:true *solid*color:0.066614 0.583730 0.438033 1 } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME Default AXIS_NAME "X" "Y" "Z" AXIS_UNIT "m" "m" "m" ZPOSITIVE Elevation END_ORIGINAL_COORDINATE_SYSTEM TFACE VRTX 1 190703.59375 3858541.00000 -5230.02783 VRTX 2 190478.90625 3858924.12500 -5006.47217 VRTX 3 190224.18750 3858642.46875 -5314.35010 VRTX 4 190958.31250 3858822.65625 -4922.14990 VRTX 5 190733.62500 3859205.77344 -4698.59424 VRTX 6 191185.65625 3859110.93750 -4618.42871 VRTX 7 190988.34375 3859487.42969 -4390.71631 VRTX 8 191445.93750 3859384.42188 -4315.05664 VRTX 9 191572.15625 3859002.35938 -4571.43701 VRTX 10 191866.84375 3859208.11719 -4299.57666 VRTX 11 191971.18750 3858807.95312 -4583.83057 VRTX 12 192320.34375 3859044.55469 -4259.39160 VRTX 13 192417.40625 3858638.26562 -4551.38086 VRTX 14 192785.09375 3858878.93750 -4216.60303 VRTX 15 192932.90625 3858485.65625 -4478.73340 VRTX 16 193249.81250 3858713.31250 -4173.81445 VRTX 17 193397.65625 3858320.03125 -4435.94482 VRTX 18 193714.56250 3858547.70312 -4131.02588 VRTX 19 193862.37500 3858154.42188 -4393.15625 VRTX 20 194179.28125 3858382.07812 -4088.23755 VRTX 21 194327.09375 3857988.79688 -4350.36768 VRTX 22 194644.00000 3858216.46875 -4045.44922 VRTX 23 194791.84375 3857823.18750 -4307.57910 VRTX 24 194474.93750 3857595.51562 -4612.49805 VRTX 25 194939.65625 3857429.89062 -4569.70947 VRTX 26 194622.75000 3857202.23438 -4874.62793 VRTX 27 194158.03125 3857367.85938 -4917.41650 VRTX 28 194010.18750 3857761.14062 -4655.28662 VRTX 29 193693.28125 3857533.46875 -4960.20508 VRTX 30 193545.46875 3857926.75000 -4698.07471 VRTX 31 193212.93750 3857695.84375 -5011.56494 VRTX 32 193071.03125 3858092.67188 -4744.31641 VRTX 33 192713.65625 3857865.03125 -5064.61914 VRTX 34 192556.78125 3858275.32812 -4792.14893 VRTX 35 192249.25000 3858103.39062 -5044.77295 VRTX 36 192234.68750 3857694.14062 -5370.60107 VRTX 37 192820.93750 3857449.35938 -5360.30713 VRTX 38 192357.15625 3857316.78125 -5624.58398 VRTX 39 191897.96875 3857338.59375 -5764.44531 VRTX 40 192164.34375 3856968.09375 -5963.85596 VRTX 41 192668.56250 3856979.32812 -5782.69922 VRTX 42 193059.46875 3857078.14062 -5570.04248 VRTX 43 193365.37500 3857308.81250 -5266.88770 VRTX 44 193524.21875 3856912.51562 -5527.25391 VRTX 45 193207.84375 3856702.70312 -5815.23389 VRTX 46 192904.12500 3856591.43750 -6006.29102 VRTX 47 193317.28125 3856279.18750 -6109.86035 VRTX 48 192809.18750 3856258.67188 -6299.62793 VRTX 49 192472.31250 3856623.35938 -6128.85693 VRTX 50 192314.62500 3856347.76562 -6398.83057 VRTX 51 192581.96875 3855980.21875 -6595.59082 VRTX 52 193069.65625 3855920.23438 -6475.92188 VRTX 53 193502.87500 3855885.76562 -6354.85205 VRTX 54 193819.50000 3856127.09375 -6057.43457 VRTX 55 193963.96875 3855728.78125 -6320.32861 VRTX 56 194289.53125 3855963.85938 -6024.73828 VRTX 57 194437.75000 3855566.40625 -6285.67578 VRTX 58 194110.21875 3855323.01562 -6588.44092 VRTX 59 194578.15625 3855158.09375 -6557.79102 VRTX 60 194900.81250 3855409.00000 -6250.78906 VRTX 61 195043.40625 3854990.00000 -6530.53369 VRTX 62 194698.18750 3854721.32812 -6859.17773 VRTX 63 195164.09375 3854549.50000 -6834.63867 VRTX 64 195510.90625 3854826.51562 -6498.90967 VRTX 65 195372.71875 3855248.20312 -6215.54980 VRTX 66 195226.56250 3855645.53125 -5954.01758 VRTX 67 195690.12500 3855489.56250 -5917.83057 VRTX 68 195543.81250 3855887.59375 -5655.78662 VRTX 69 195076.87500 3856043.35938 -5693.28271 VRTX 70 194754.90625 3855808.40625 -5987.54248 VRTX 71 194609.31250 3856204.23438 -5726.98096 VRTX 72 194918.40625 3856415.67188 -5398.88818 VRTX 73 194453.68750 3856581.28125 -5441.67676 VRTX 74 194141.71875 3856361.92188 -5763.18164 VRTX 75 193674.21875 3856522.78125 -5796.87305 VRTX 76 193988.93750 3856746.90625 -5484.46533 VRTX 77 194305.84375 3856974.56250 -5179.54688 VRTX 78 193841.12500 3857140.18750 -5222.33496 VRTX 79 194770.59375 3856808.95312 -5136.75830 VRTX 80 195235.31250 3856643.32812 -5093.96973 VRTX 81 195383.12500 3856250.04688 -5356.10010 VRTX 82 195847.96875 3856084.59375 -5313.63281 VRTX 83 195700.03125 3856477.71875 -5051.18115 VRTX 84 195552.21875 3856871.00000 -4789.05127 VRTX 85 196016.93750 3856705.37500 -4746.26270 VRTX 86 195869.12500 3857098.65625 -4484.13232 VRTX 87 195404.40625 3857264.28125 -4526.92090 VRTX 88 195087.50000 3857036.60938 -4831.83936 VRTX 89 195256.56250 3857657.56250 -4264.79102 VRTX 90 195108.75000 3858050.84375 -4002.66064 VRTX 91 195573.46875 3857885.23438 -3959.87207 VRTX 92 195721.31250 3857491.93750 -4222.00244 VRTX 93 196186.03125 3857326.32812 -4179.21387 VRTX 94 196038.21875 3857719.60938 -3917.08374 VRTX 95 195890.37500 3858112.89062 -3654.95361 VRTX 96 196355.12500 3857947.26562 -3612.16504 VRTX 97 196502.93750 3857553.98438 -3874.29517 VRTX 98 196819.84375 3857781.65625 -3569.37646 VRTX 99 196967.65625 3857388.37500 -3831.50659 VRTX 100 197284.56250 3857616.03125 -3526.58813 VRTX 101 197432.40625 3857222.75000 -3788.71826 VRTX 102 197749.31250 3857450.42188 -3483.79956 VRTX 103 197897.12500 3857057.14062 -3745.92969 VRTX 104 198214.03125 3857284.79688 -3441.01099 VRTX 105 198361.87500 3856891.51562 -3703.14136 VRTX 106 198678.78125 3857119.17188 -3398.22266 VRTX 107 198826.59375 3856725.89062 -3660.35278 VRTX 108 199143.50000 3856953.56250 -3355.43408 VRTX 109 199291.34375 3856560.28125 -3617.56421 VRTX 110 199608.25000 3856787.93750 -3312.64575 VRTX 111 199756.06250 3856394.65625 -3574.77588 VRTX 112 200072.96875 3856622.32812 -3269.85718 VRTX 113 200220.78125 3856229.04688 -3531.98730 VRTX 114 200537.68750 3856456.70312 -3227.06860 VRTX 115 200685.53125 3856063.42188 -3489.19873 VRTX 116 201002.43750 3856291.07812 -3184.28027 VRTX 117 201150.25000 3855897.79688 -3446.41040 VRTX 118 201467.15625 3856125.46875 -3141.49170 VRTX 119 201615.00000 3855732.18750 -3403.62183 VRTX 120 201931.90625 3855959.84375 -3098.70312 VRTX 121 202079.71875 3855566.56250 -3360.83325 VRTX 122 202396.62500 3855794.23438 -3055.91479 VRTX 123 202544.46875 3855400.95312 -3318.04492 VRTX 124 202861.37500 3855628.60938 -3013.12622 VRTX 125 203009.18750 3855235.32812 -3275.25635 VRTX 126 203326.09375 3855462.98438 -2970.33765 VRTX 127 203473.90625 3855069.70312 -3232.46802 VRTX 128 203790.81250 3855297.37500 -2927.54932 VRTX 129 203938.65625 3854904.09375 -3189.67944 VRTX 130 204255.56250 3855131.75000 -2884.76074 VRTX 131 204403.37500 3854738.46875 -3146.89087 VRTX 132 204720.28125 3854966.14062 -2841.97241 VRTX 133 204868.12500 3854572.85938 -3104.10254 VRTX 134 205185.03125 3854800.51562 -2799.18384 VRTX 135 205332.84375 3854407.23438 -3061.31396 VRTX 136 205649.75000 3854634.90625 -2756.39526 VRTX 137 205797.59375 3854241.60938 -3018.52539 VRTX 138 206114.50000 3854469.28125 -2713.60693 VRTX 139 206262.31250 3854076.00000 -2975.73706 VRTX 140 206579.21875 3854303.65625 -2670.81836 VRTX 141 206727.03125 3853910.37500 -2932.94849 VRTX 142 207043.93750 3854138.04688 -2628.02979 VRTX 143 207191.78125 3853744.76562 -2890.16016 VRTX 144 207508.68750 3853972.42188 -2585.24146 VRTX 145 207656.50000 3853579.14062 -2847.37158 VRTX 146 207973.40625 3853806.81250 -2542.45288 VRTX 147 208121.25000 3853413.51562 -2804.58301 VRTX 148 208438.15625 3853641.18750 -2499.66455 VRTX 149 208585.96875 3853247.90625 -2761.79468 VRTX 150 208902.87500 3853475.56250 -2456.87598 VRTX 151 209050.68750 3853082.28125 -2719.00610 VRTX 152 209367.62500 3853309.95312 -2414.08740 VRTX 153 209515.43750 3852916.67188 -2676.21753 VRTX 154 209832.34375 3853144.32812 -2371.29907 VRTX 155 209980.15625 3852751.04688 -2633.42920 VRTX 156 210297.06250 3852978.71875 -2328.51050 VRTX 157 210444.90625 3852585.42188 -2590.64062 VRTX 158 210761.81250 3852813.09375 -2285.72192 VRTX 159 210909.62500 3852419.81250 -2547.85205 VRTX 160 211226.53125 3852647.46875 -2242.93359 VRTX 161 211374.37500 3852254.18750 -2505.06372 VRTX 162 211691.28125 3852481.85938 -2200.14502 VRTX 163 211839.09375 3852088.57812 -2462.27515 VRTX 164 212156.00000 3852316.23438 -2157.35645 VRTX 165 212304.84375 3851924.70312 -2422.81616 VRTX 166 212620.71875 3852150.62500 -2114.56812 VRTX 167 212772.62500 3851764.23438 -2389.85522 VRTX 168 213085.46875 3851985.00000 -2071.77954 VRTX 169 213240.37500 3851603.78125 -2356.89429 VRTX 170 213550.18750 3851819.37500 -2028.99109 VRTX 171 213710.18750 3851444.90625 -2321.11230 VRTX 172 214014.93750 3851653.76562 -1986.20264 VRTX 173 214176.18750 3851288.14062 -2284.67773 VRTX 174 214479.65625 3851488.14062 -1943.41418 VRTX 175 214630.96875 3851132.76562 -2251.88525 VRTX 176 214311.65625 3850957.60938 -2606.16431 VRTX 177 214669.18750 3850826.68750 -2607.41846 VRTX 178 215043.56250 3851008.20312 -2209.41187 VRTX 179 214944.40625 3851322.53125 -1900.62561 VRTX 180 215409.12500 3851156.90625 -1857.83716 VRTX 181 215489.71875 3850833.31250 -2243.21240 VRTX 182 215117.03125 3850714.82812 -2558.62964 VRTX 183 215570.31250 3850509.73438 -2628.58765 VRTX 184 215197.62500 3850391.25000 -2944.00464 VRTX 185 214752.18750 3850574.75000 -2898.69873 VRTX 186 214789.25000 3850294.42188 -3246.73169 VRTX 187 215278.21875 3850067.65625 -3329.37988 VRTX 188 215650.90625 3850186.15625 -3013.96289 VRTX 189 215731.50000 3849862.56250 -3399.33813 VRTX 190 215358.81250 3849744.07812 -3714.75513 VRTX 191 214905.53125 3849949.17188 -3644.79712 VRTX 192 214986.12500 3849625.57812 -4030.17236 VRTX 193 215439.40625 3849420.48438 -4100.13037 VRTX 194 215066.71875 3849302.00000 -4415.54736 VRTX 195 214613.40625 3849507.09375 -4345.58936 VRTX 196 214691.93750 3849202.29688 -4707.71826 VRTX 197 214238.81250 3849406.31250 -4639.50635 VRTX 198 214160.12500 3849712.18750 -4275.63135 VRTX 199 213785.21875 3849615.84375 -4564.07959 VRTX 200 213817.93750 3849350.09375 -4906.83789 VRTX 201 213372.68750 3849556.85938 -4831.36426 VRTX 202 213377.96875 3849322.10938 -5144.89209 VRTX 203 213824.53125 3849119.56250 -5214.12158 VRTX 204 213373.59375 3849069.78125 -5486.47656 VRTX 205 213840.56250 3848868.35938 -5544.88916 VRTX 206 213464.78125 3848800.50000 -5807.35449 VRTX 207 213860.28125 3848561.23438 -5949.26270 VRTX 208 213359.75000 3848600.15625 -6124.81641 VRTX 209 213740.75000 3848337.81250 -6304.38135 VRTX 210 214214.43750 3848261.32812 -6191.59229 VRTX 211 214304.46875 3848475.06250 -5862.93506 VRTX 212 214282.40625 3848700.21875 -5569.96680 VRTX 213 214276.50000 3848923.51562 -5272.12305 VRTX 214 214267.06250 3849148.60938 -4973.46582 VRTX 215 214716.25000 3848946.93750 -5040.33496 VRTX 216 214725.53125 3848723.89062 -5336.29297 VRTX 217 214735.71875 3848487.73438 -5649.49609 VRTX 218 214682.18750 3848228.92188 -6022.19434 VRTX 219 214599.53125 3848002.26562 -6364.86230 VRTX 220 214121.46875 3848070.79688 -6490.34912 VRTX 221 214504.81250 3847810.51562 -6666.07031 VRTX 222 214029.00000 3847884.71875 -6782.90137 VRTX 223 214407.43750 3847616.01562 -6972.17676 VRTX 224 213929.78125 3847688.50000 -7092.16309 VRTX 225 214265.68750 3847405.71875 -7319.76855 VRTX 226 213789.40625 3847479.53125 -7437.32617 VRTX 227 214075.40625 3847186.59375 -7701.33252 VRTX 228 213599.62500 3847260.70312 -7818.28174 VRTX 229 213879.03125 3846959.95312 -8095.80273 VRTX 230 213400.56250 3847024.39062 -8226.99219 VRTX 231 213685.12500 3846724.93750 -8500.41016 VRTX 232 213190.71875 3846760.39062 -8677.86523 VRTX 233 212931.18750 3847064.25000 -8387.10938 VRTX 234 212596.96875 3846937.46875 -8707.07227 VRTX 235 212404.71875 3847261.45312 -8361.46777 VRTX 236 212731.96875 3847364.96875 -8073.12305 VRTX 237 213139.28125 3847323.07812 -7943.99805 VRTX 238 212803.53125 3847617.62500 -7700.48633 VRTX 239 212291.15625 3847593.06250 -7966.89551 VRTX 240 211926.59375 3847420.64062 -8352.06836 VRTX 241 212077.62500 3847101.23438 -8706.18945 VRTX 242 212234.93750 3846783.78125 -9055.17480 VRTX 243 211761.18750 3846935.00000 -9051.95898 VRTX 244 211603.87500 3847252.45312 -8702.97363 VRTX 245 211287.43750 3847086.21875 -9048.74316 VRTX 246 211130.12500 3847403.67188 -8699.75781 VRTX 247 210813.68750 3847237.45312 -9045.52734 VRTX 248 210656.37500 3847554.90625 -8696.54297 VRTX 249 210972.81250 3847721.12500 -8350.77344 VRTX 250 211446.56250 3847569.90625 -8353.98926 VRTX 251 211762.96875 3847736.12500 -8008.21973 VRTX 252 211289.21875 3847887.35938 -8005.00391 VRTX 253 210815.46875 3848038.57812 -8001.78809 VRTX 254 210499.06250 3847872.34375 -8347.55762 VRTX 255 210343.00000 3848193.67188 -8002.05176 VRTX 256 210661.87500 3848368.84375 -7664.81006 VRTX 257 211133.53125 3848211.17188 -7662.22363 VRTX 258 210974.56250 3848525.67188 -7311.32764 VRTX 259 210502.93750 3848683.35938 -7313.91406 VRTX 260 210815.59375 3848840.18750 -6960.43213 VRTX 261 211279.56250 3848667.32812 -6981.78711 VRTX 262 211128.28125 3848997.03125 -6606.95264 VRTX 263 210675.15625 3849160.39062 -6593.45264 VRTX 264 211114.00000 3849299.84375 -6205.91260 VRTX 265 211555.12500 3849077.65625 -6304.06055 VRTX 266 211675.37500 3849312.42188 -5933.32324 VRTX 267 211245.84375 3849543.15625 -5818.41553 VRTX 268 210762.93750 3849647.01562 -5898.56152 VRTX 269 211065.90625 3849823.00000 -5523.74805 VRTX 270 210549.96875 3849976.12500 -5552.62695 VRTX 271 210265.68750 3849802.84375 -5915.29492 VRTX 272 210518.87500 3849464.89062 -6254.81738 VRTX 273 210185.00000 3849312.39062 -6612.12598 VRTX 274 210026.03125 3849626.90625 -6261.23291 VRTX 275 209794.81250 3849948.64062 -5933.51660 VRTX 276 209552.34375 3849783.07812 -6266.76367 VRTX 277 209713.37500 3849470.06250 -6614.71289 VRTX 278 209872.31250 3849155.54688 -6965.60547 VRTX 279 209400.68750 3849313.21875 -6968.19189 VRTX 280 209559.65625 3848998.70312 -7319.08740 VRTX 281 210031.28125 3848841.03125 -7316.50049 VRTX 282 210343.96875 3848997.85938 -6963.01855 VRTX 283 210190.25000 3848526.51562 -7667.39648 VRTX 284 209871.28125 3848351.17188 -8004.48145 VRTX 285 209718.59375 3848684.20312 -7669.98291 VRTX 286 209246.96875 3848841.87500 -7672.56934 VRTX 287 209088.00000 3849156.39062 -7321.67383 VRTX 288 208775.31250 3848999.54688 -7675.15625 VRTX 289 208616.37500 3849314.06250 -7324.26025 VRTX 290 208303.68750 3849157.23438 -7677.74268 VRTX 291 208144.71875 3849471.75000 -7326.84668 VRTX 292 207832.03125 3849314.90625 -7680.32910 VRTX 293 207673.06250 3849629.42188 -7329.43311 VRTX 294 207360.40625 3849472.57812 -7682.91553 VRTX 295 207201.43750 3849787.09375 -7332.02002 VRTX 296 206888.75000 3849630.26562 -7685.50195 VRTX 297 206729.78125 3849944.78125 -7334.60645 VRTX 298 206417.12500 3849787.93750 -7688.08838 VRTX 299 206258.15625 3850102.45312 -7337.19287 VRTX 300 205945.46875 3849945.62500 -7690.67480 VRTX 301 205786.50000 3850260.12500 -7339.77930 VRTX 302 205473.84375 3850103.29688 -7693.26123 VRTX 303 205314.87500 3850417.81250 -7342.36572 VRTX 304 205002.18750 3850260.96875 -7695.84766 VRTX 305 204843.21875 3850575.48438 -7344.95215 VRTX 306 204530.56250 3850418.65625 -7698.43408 VRTX 307 204371.59375 3850733.15625 -7347.53906 VRTX 308 204058.90625 3850576.32812 -7701.02051 VRTX 309 203899.93750 3850890.84375 -7350.12549 VRTX 310 203587.25000 3850734.00000 -7703.60693 VRTX 311 203428.31250 3851048.51562 -7352.71191 VRTX 312 203115.62500 3850891.68750 -7706.19336 VRTX 313 202956.65625 3851206.18750 -7355.29834 VRTX 314 202643.96875 3851049.35938 -7708.77979 VRTX 315 202485.03125 3851363.87500 -7357.88477 VRTX 316 202172.34375 3851207.03125 -7711.36621 VRTX 317 202013.37500 3851521.54688 -7360.47119 VRTX 318 201700.68750 3851364.71875 -7713.95264 VRTX 319 201541.75000 3851679.23438 -7363.05762 VRTX 320 201229.06250 3851522.39062 -7716.53955 VRTX 321 201070.09375 3851836.90625 -7365.64404 VRTX 322 200757.40625 3851680.06250 -7719.12598 VRTX 323 200598.43750 3851994.57812 -7368.23047 VRTX 324 200285.78125 3851837.75000 -7721.71240 VRTX 325 200126.81250 3852152.26562 -7370.81689 VRTX 326 199814.12500 3851995.42188 -7724.29883 VRTX 327 199655.15625 3852309.93750 -7373.40381 VRTX 328 199342.50000 3852153.10938 -7726.88525 VRTX 329 199183.53125 3852467.60938 -7375.99023 VRTX 330 198870.84375 3852310.78125 -7729.47168 VRTX 331 198711.87500 3852625.29688 -7378.57666 VRTX 332 198399.21875 3852468.45312 -7732.05811 VRTX 333 198240.25000 3852782.96875 -7381.16309 VRTX 334 197927.56250 3852626.14062 -7734.64453 VRTX 335 197768.59375 3852940.64062 -7383.74951 VRTX 336 197455.93750 3852783.81250 -7737.23096 VRTX 337 197296.96875 3853098.32812 -7386.33594 VRTX 338 196984.28125 3852941.48438 -7739.81738 VRTX 339 196825.31250 3853256.00000 -7388.92236 VRTX 340 196512.62500 3853099.17188 -7742.40381 VRTX 341 196353.68750 3853413.67188 -7391.50879 VRTX 342 196041.00000 3853256.84375 -7744.99023 VRTX 343 195882.03125 3853571.35938 -7394.09521 VRTX 344 195569.34375 3853414.51562 -7747.57666 VRTX 345 195410.40625 3853729.03125 -7396.68164 VRTX 346 195097.71875 3853572.20312 -7750.16309 VRTX 347 194944.84375 3853903.79688 -7415.79199 VRTX 348 194626.06250 3853729.87500 -7752.74951 VRTX 349 194479.90625 3854080.17188 -7436.45508 VRTX 350 194154.43750 3853887.54688 -7755.33594 VRTX 351 194014.93750 3854256.53125 -7457.11816 VRTX 352 194352.81250 3854479.01562 -7167.19824 VRTX 353 193888.21875 3854654.71875 -7188.25488 VRTX 354 193550.78125 3854432.71875 -7477.64355 VRTX 355 193409.87500 3854838.26562 -7207.85742 VRTX 356 193761.59375 3855057.56250 -6915.71484 VRTX 357 193274.31250 3855233.01562 -6944.72949 VRTX 358 193672.25000 3855469.06250 -6623.65039 VRTX 359 193298.28125 3855563.09375 -6677.76465 VRTX 360 192865.90625 3855618.45312 -6782.14648 VRTX 361 192802.06250 3855347.14062 -7016.67432 VRTX 362 192384.59375 3855639.17188 -6930.43506 VRTX 363 192105.46875 3856087.35938 -6674.47607 VRTX 364 191954.56250 3855838.90625 -6920.83154 VRTX 365 191966.03125 3855507.81250 -7176.48193 VRTX 366 192393.93750 3855254.87500 -7228.51953 VRTX 367 192880.34375 3855026.21875 -7241.50928 VRTX 368 193083.03125 3854617.56250 -7492.61816 VRTX 369 193213.68750 3854210.06250 -7767.42725 VRTX 370 192748.75000 3854386.42188 -7788.08984 VRTX 371 192660.56250 3854753.46875 -7530.47705 VRTX 372 192345.43750 3854946.29688 -7487.01367 VRTX 373 192281.59375 3854568.15625 -7805.30225 VRTX 374 192418.34375 3854178.68750 -8094.38672 VRTX 375 192890.03125 3854021.18750 -8091.95654 VRTX 376 193361.75000 3853863.68750 -8089.52686 VRTX 377 193682.78125 3854045.23438 -7757.92236 VRTX 378 193833.43750 3853706.18750 -8087.09717 VRTX 379 193502.84375 3853496.42188 -8393.70898 VRTX 380 193974.53125 3853338.92188 -8391.27930 VRTX 381 194305.15625 3853548.68750 -8084.66699 VRTX 382 194776.84375 3853391.18750 -8082.23730 VRTX 383 195248.53125 3853233.68750 -8079.80762 VRTX 384 195720.25000 3853076.18750 -8077.37744 VRTX 385 196191.93750 3852918.68750 -8074.94775 VRTX 386 196663.65625 3852761.18750 -8072.51758 VRTX 387 197135.34375 3852603.68750 -8070.08789 VRTX 388 197607.06250 3852446.18750 -8067.65820 VRTX 389 198078.75000 3852288.68750 -8065.22803 VRTX 390 198550.46875 3852131.18750 -8062.79834 VRTX 391 199022.15625 3851973.68750 -8060.36865 VRTX 392 199493.87500 3851816.18750 -8057.93848 VRTX 393 199965.56250 3851658.68750 -8055.50879 VRTX 394 200437.25000 3851501.18750 -8053.07861 VRTX 395 200908.96875 3851343.68750 -8050.64893 VRTX 396 201380.65625 3851186.18750 -8048.21924 VRTX 397 201852.37500 3851028.68750 -8045.78906 VRTX 398 202324.06250 3850871.17188 -8043.35938 VRTX 399 202795.78125 3850713.67188 -8040.92969 VRTX 400 203267.46875 3850556.17188 -8038.49951 VRTX 401 203739.18750 3850398.67188 -8036.06982 VRTX 402 204210.87500 3850241.17188 -8033.64014 VRTX 403 204682.56250 3850083.67188 -8031.20996 VRTX 404 205154.28125 3849926.17188 -8028.78027 VRTX 405 205625.96875 3849768.67188 -8026.35010 VRTX 406 206097.68750 3849611.17188 -8023.92041 VRTX 407 206569.37500 3849453.67188 -8021.49072 VRTX 408 207041.09375 3849296.17188 -8019.06055 VRTX 409 207512.78125 3849138.67188 -8016.63086 VRTX 410 207984.50000 3848981.17188 -8014.20117 VRTX 411 208456.18750 3848823.67188 -8011.77100 VRTX 412 208927.90625 3848666.17188 -8009.34131 VRTX 413 209399.59375 3848508.67188 -8006.91162 VRTX 414 209551.56250 3848174.79688 -8341.12598 VRTX 415 209077.81250 3848326.01562 -8337.91113 VRTX 416 208604.06250 3848477.25000 -8334.69531 VRTX 417 208761.37500 3848159.79688 -8683.67969 VRTX 418 209235.12500 3848008.57812 -8686.89551 VRTX 419 209708.87500 3847857.34375 -8690.11133 VRTX 420 210025.31250 3848023.57812 -8344.34180 VRTX 421 210182.62500 3847706.12500 -8693.32715 VRTX 422 209866.18750 3847539.89062 -9039.09668 VRTX 423 210339.93750 3847388.67188 -9042.31250 VRTX 424 210497.25000 3847071.21875 -9391.29688 VRTX 425 210023.53125 3847222.43750 -9388.08105 VRTX 426 210180.84375 3846905.00000 -9737.06641 VRTX 427 210654.59375 3846753.76562 -9740.28223 VRTX 428 210971.00000 3846920.00000 -9394.51270 VRTX 429 211444.75000 3846768.76562 -9397.72852 VRTX 430 211918.50000 3846617.54688 -9400.94434 VRTX 431 212397.00000 3846465.95312 -9402.70898 VRTX 432 212736.87500 3846636.93750 -9041.15723 VRTX 433 213174.31250 3846467.82812 -9079.06348 VRTX 434 213540.50000 3846455.92188 -8928.32910 VRTX 435 213940.25000 3846411.53125 -8806.00781 VRTX 436 213567.56250 3846159.07812 -9315.51465 VRTX 437 212917.84375 3846302.42188 -9402.69141 VRTX 438 212549.56250 3846148.87500 -9753.14453 VRTX 439 212075.81250 3846300.09375 -9749.92871 VRTX 440 211602.06250 3846451.32812 -9746.71289 VRTX 441 211128.31250 3846602.54688 -9743.49805 VRTX 442 210811.90625 3846436.31250 -10089.26660 VRTX 443 211285.65625 3846285.09375 -10092.48242 VRTX 444 211759.40625 3846133.87500 -10095.69824 VRTX 445 212233.12500 3845982.64062 -10098.91406 VRTX 446 212706.87500 3845831.42188 -10102.12988 VRTX 447 213068.28125 3846006.45312 -9726.51270 VRTX 448 213523.56250 3845853.12500 -9740.01562 VRTX 449 214032.46875 3845910.31250 -9438.58203 VRTX 450 214192.56250 3846131.59375 -9067.87207 VRTX 451 214437.84375 3846358.43750 -8650.84473 VRTX 452 214158.43750 3846659.20312 -8373.32324 VRTX 453 214354.81250 3846885.84375 -7978.85303 VRTX 454 214551.18750 3847112.48438 -7584.38281 VRTX 455 214743.06250 3847333.15625 -7200.00439 VRTX 456 214885.53125 3847545.01562 -6849.99951 VRTX 457 214983.31250 3847741.26562 -6541.34863 VRTX 458 215066.06250 3847971.03125 -6194.43018 VRTX 459 215119.46875 3848244.73438 -5801.75146 VRTX 460 215174.12500 3848507.53125 -5423.17822 VRTX 461 215164.65625 3848745.20312 -5107.61377 VRTX 462 215144.93750 3848998.37500 -4776.00732 VRTX 463 215520.00000 3849096.90625 -4485.50537 VRTX 464 215599.71875 3848789.87500 -4849.74512 VRTX 465 215615.00000 3848535.51562 -5184.72998 VRTX 466 215558.81250 3848265.78125 -5573.34717 VRTX 467 215503.06250 3847984.39062 -5977.45068 VRTX 468 215942.18750 3848005.54688 -5748.97705 VRTX 469 215998.03125 3848286.89062 -5344.90820 VRTX 470 216053.87500 3848568.21875 -4940.83887 VRTX 471 215973.28125 3848891.81250 -4555.46387 VRTX 472 215892.68750 3849215.39062 -4170.08838 VRTX 473 215812.09375 3849538.96875 -3784.71313 VRTX 474 215886.34375 3847724.20312 -6153.04248 VRTX 475 215448.96875 3847708.01562 -6374.03857 VRTX 476 215363.34375 3847476.23438 -6724.94189 VRTX 477 215220.78125 3847261.20312 -7079.29834 VRTX 478 215026.96875 3847038.39062 -7467.43359 VRTX 479 214830.59375 3846811.73438 -7861.90381 VRTX 480 214634.21875 3846585.09375 -8256.37402 VRTX 481 214913.62500 3846284.34375 -8533.89453 VRTX 482 215110.00000 3846510.98438 -8139.42480 VRTX 483 215306.37500 3846737.62500 -7744.95410 VRTX 484 215502.75000 3846964.28125 -7350.48389 VRTX 485 215699.12500 3847190.92188 -6956.01367 VRTX 486 215830.50000 3847442.87500 -6557.10645 VRTX 487 214717.25000 3846057.68750 -8928.36523 VRTX 488 214520.87500 3845831.04688 -9322.83594 VRTX 489 214324.50000 3845604.39062 -9717.30566 VRTX 490 213932.25000 3845682.14062 -9791.31250 VRTX 491 213654.37500 3845528.96875 -10108.56055 VRTX 492 213180.62500 3845680.20312 -10105.34473 VRTX 493 214128.12500 3845377.75000 -10111.77637 VRTX 494 210338.15625 3846587.54688 -10086.05176 VRTX 495 209864.40625 3846738.76562 -10082.83594 VRTX 496 209707.09375 3847056.21875 -9733.85059 VRTX 497 209390.65625 3846889.98438 -10079.62012 VRTX 498 209233.34375 3847207.43750 -9730.63477 VRTX 499 209549.78125 3847373.67188 -9384.86621 VRTX 500 209076.03125 3847524.89062 -9381.65039 VRTX 501 208759.59375 3847358.67188 -9727.41992 VRTX 502 208602.28125 3847676.10938 -9378.43457 VRTX 503 208285.84375 3847509.89062 -9724.20410 VRTX 504 208128.53125 3847827.34375 -9375.21875 VRTX 505 207812.09375 3847661.10938 -9720.98828 VRTX 506 207969.40625 3847343.65625 -10069.97363 VRTX 507 208443.15625 3847192.43750 -10073.18848 VRTX 508 208916.90625 3847041.21875 -10076.40430 VRTX 509 207495.68750 3847494.89062 -10066.75781 VRTX 510 207338.34375 3847812.34375 -9717.77246 VRTX 511 207654.78125 3847978.56250 -9372.00293 VRTX 512 207971.21875 3848144.79688 -9026.23438 VRTX 513 207497.46875 3848296.01562 -9023.01855 VRTX 514 207813.90625 3848462.25000 -8677.24902 VRTX 515 207340.15625 3848613.46875 -8674.03320 VRTX 516 207023.71875 3848447.23438 -9019.80273 VRTX 517 206866.40625 3848764.68750 -8670.81738 VRTX 518 206549.96875 3848598.46875 -9016.58691 VRTX 519 206392.65625 3848915.92188 -8667.60254 VRTX 520 206076.21875 3848749.68750 -9013.37109 VRTX 521 205918.90625 3849067.14062 -8664.38672 VRTX 522 205602.46875 3848900.90625 -9010.15625 VRTX 523 205445.15625 3849218.35938 -8661.17090 VRTX 524 205128.71875 3849052.14062 -9006.94043 VRTX 525 204971.40625 3849369.59375 -8657.95508 VRTX 526 204655.00000 3849203.35938 -9003.72461 VRTX 527 204497.65625 3849520.81250 -8654.73926 VRTX 528 204181.25000 3849354.57812 -9000.50879 VRTX 529 204023.93750 3849672.03125 -8651.52441 VRTX 530 203707.50000 3849505.81250 -8997.29297 VRTX 531 203550.18750 3849823.26562 -8648.30859 VRTX 532 203233.75000 3849657.03125 -8994.07812 VRTX 533 203077.93750 3849979.15625 -8649.29395 VRTX 534 202760.00000 3849808.25000 -8990.86230 VRTX 535 202606.25000 3850136.65625 -8651.72363 VRTX 536 202286.25000 3849959.48438 -8987.64648 VRTX 537 202134.56250 3850294.15625 -8654.15332 VRTX 538 201812.50000 3850110.70312 -8984.43066 VRTX 539 201662.84375 3850451.65625 -8656.58398 VRTX 540 201338.75000 3850261.92188 -8981.21484 VRTX 541 201191.15625 3850609.15625 -8659.01367 VRTX 542 200865.03125 3850413.15625 -8978.00000 VRTX 543 200719.43750 3850766.65625 -8661.44336 VRTX 544 200391.28125 3850564.37500 -8974.78418 VRTX 545 200247.75000 3850924.15625 -8663.87305 VRTX 546 199917.53125 3850715.59375 -8971.56836 VRTX 547 199776.03125 3851081.65625 -8666.30273 VRTX 548 199445.43750 3850871.89062 -8972.91504 VRTX 549 199304.34375 3851239.15625 -8668.73242 VRTX 550 198973.71875 3851029.39062 -8975.34473 VRTX 551 198832.62500 3851396.65625 -8671.16309 VRTX 552 198502.03125 3851186.90625 -8977.77441 VRTX 553 198360.93750 3851554.15625 -8673.59277 VRTX 554 198030.31250 3851344.40625 -8980.20508 VRTX 555 197889.21875 3851711.65625 -8676.02246 VRTX 556 197558.62500 3851501.90625 -8982.63477 VRTX 557 197417.53125 3851869.15625 -8678.45215 VRTX 558 197086.90625 3851659.40625 -8985.06445 VRTX 559 196945.84375 3852026.65625 -8680.88184 VRTX 560 196615.21875 3851816.90625 -8987.49414 VRTX 561 196474.12500 3852184.15625 -8683.31250 VRTX 562 196143.53125 3851974.40625 -8989.92383 VRTX 563 196002.43750 3852341.65625 -8685.74219 VRTX 564 195671.81250 3852131.90625 -8992.35449 VRTX 565 195530.71875 3852499.17188 -8688.17188 VRTX 566 195200.12500 3852289.40625 -8994.78418 VRTX 567 195059.03125 3852656.67188 -8690.60156 VRTX 568 194728.40625 3852446.90625 -8997.21387 VRTX 569 194587.31250 3852814.17188 -8693.03125 VRTX 570 194256.71875 3852604.40625 -8999.64355 VRTX 571 194115.62500 3852971.67188 -8695.46094 VRTX 572 193785.00000 3852761.90625 -9002.07324 VRTX 573 193643.90625 3853129.17188 -8697.89160 VRTX 574 193172.21875 3853286.67188 -8700.32129 VRTX 575 193031.12500 3853653.92188 -8396.13867 VRTX 576 192559.43750 3853811.43750 -8398.56836 VRTX 577 192087.71875 3853968.93750 -8400.99902 VRTX 578 191950.65625 3854337.15625 -8108.13037 VRTX 579 191616.03125 3854126.43750 -8403.42871 VRTX 580 191757.12500 3853759.17188 -8707.61035 VRTX 581 192228.81250 3853601.67188 -8705.18066 VRTX 582 192700.53125 3853444.17188 -8702.75098 VRTX 583 192841.59375 3853076.90625 -9006.93359 VRTX 584 192369.90625 3853234.40625 -9009.36328 VRTX 585 192511.00000 3852867.14062 -9313.54492 VRTX 586 192982.68750 3852709.64062 -9311.11523 VRTX 587 193313.31250 3852919.40625 -9004.50293 VRTX 588 193454.40625 3852552.14062 -9308.68555 VRTX 589 193125.96875 3852349.06250 -9621.30371 VRTX 590 193599.71875 3852197.82812 -9624.51953 VRTX 591 193926.09375 3852394.64062 -9306.25586 VRTX 592 194397.81250 3852237.14062 -9303.82617 VRTX 593 194869.50000 3852079.64062 -9301.39551 VRTX 594 195341.21875 3851922.14062 -9298.96582 VRTX 595 195812.90625 3851764.64062 -9296.53613 VRTX 596 196284.87500 3851607.93750 -9294.82812 VRTX 597 196758.62500 3851456.71875 -9298.04395 VRTX 598 197232.37500 3851305.50000 -9301.25977 VRTX 599 197706.09375 3851154.26562 -9304.47559 VRTX 600 198179.84375 3851003.04688 -9307.69141 VRTX 601 198653.59375 3850851.82812 -9310.90625 VRTX 602 199127.34375 3850700.59375 -9314.12207 VRTX 603 199601.09375 3850549.37500 -9317.33789 VRTX 604 200074.84375 3850398.15625 -9320.55371 VRTX 605 200548.59375 3850246.92188 -9323.76953 VRTX 606 201022.34375 3850095.70312 -9326.98438 VRTX 607 201496.09375 3849944.48438 -9330.20020 VRTX 608 201969.81250 3849793.25000 -9333.41602 VRTX 609 202443.56250 3849642.03125 -9336.63184 VRTX 610 202917.31250 3849490.81250 -9339.84668 VRTX 611 203391.06250 3849339.57812 -9343.06250 VRTX 612 203864.81250 3849188.35938 -9346.27832 VRTX 613 204338.56250 3849037.14062 -9349.49414 VRTX 614 204812.31250 3848885.90625 -9352.70996 VRTX 615 205286.06250 3848734.68750 -9355.92480 VRTX 616 205759.81250 3848583.46875 -9359.14062 VRTX 617 206233.53125 3848432.23438 -9362.35645 VRTX 618 206707.28125 3848281.01562 -9365.57227 VRTX 619 207181.03125 3848129.78125 -9368.78809 VRTX 620 206864.62500 3847963.56250 -9714.55664 VRTX 621 207021.93750 3847646.10938 -10063.54199 VRTX 622 206548.18750 3847797.32812 -10060.32617 VRTX 623 206390.87500 3848114.78125 -9711.34180 VRTX 624 205917.12500 3848266.01562 -9708.12598 VRTX 625 206074.43750 3847948.56250 -10057.11133 VRTX 626 205600.68750 3848099.78125 -10053.89551 VRTX 627 205443.37500 3848417.23438 -9704.91016 VRTX 628 204969.62500 3848568.45312 -9701.69434 VRTX 629 205126.93750 3848251.00000 -10050.67969 VRTX 630 204653.18750 3848402.23438 -10047.46387 VRTX 631 204495.87500 3848719.68750 -9698.47949 VRTX 632 204022.12500 3848870.90625 -9695.26367 VRTX 633 204179.43750 3848553.45312 -10044.24805 VRTX 634 203705.68750 3848704.67188 -10041.03320 VRTX 635 203548.37500 3849022.12500 -9692.04785 VRTX 636 203074.62500 3849173.35938 -9688.83203 VRTX 637 203231.96875 3848855.90625 -10037.81738 VRTX 638 202758.21875 3849007.12500 -10034.60156 VRTX 639 202600.90625 3849324.57812 -9685.61621 VRTX 640 202127.15625 3849475.79688 -9682.40137 VRTX 641 202284.46875 3849158.34375 -10031.38574 VRTX 642 201810.71875 3849309.57812 -10028.16992 VRTX 643 201653.40625 3849627.03125 -9679.18555 VRTX 644 201179.65625 3849778.25000 -9675.96973 VRTX 645 201336.96875 3849460.79688 -10024.95508 VRTX 646 200863.21875 3849612.03125 -10021.73926 VRTX 647 200705.90625 3849929.46875 -9672.75391 VRTX 648 200232.15625 3850080.70312 -9669.53809 VRTX 649 200389.46875 3849763.25000 -10018.52344 VRTX 650 199915.71875 3849914.46875 -10015.30762 VRTX 651 199758.40625 3850231.92188 -9666.32324 VRTX 652 199284.65625 3850383.14062 -9663.10742 VRTX 653 199442.00000 3850065.70312 -10012.09180 VRTX 654 198968.25000 3850216.92188 -10008.87695 VRTX 655 198810.90625 3850534.37500 -9659.89160 VRTX 656 198337.18750 3850685.59375 -9656.67578 VRTX 657 198494.50000 3850368.14062 -10005.66113 VRTX 658 198020.75000 3850519.37500 -10002.44531 VRTX 659 197863.43750 3850836.81250 -9653.45996 VRTX 660 197389.68750 3850988.04688 -9650.24512 VRTX 661 197547.00000 3850670.59375 -9999.22949 VRTX 662 197073.25000 3850821.81250 -9996.01367 VRTX 663 196915.93750 3851139.26562 -9647.02930 VRTX 664 196442.18750 3851290.48438 -9643.81348 VRTX 665 196599.50000 3850973.04688 -9992.79883 VRTX 666 196125.75000 3851124.26562 -9989.58301 VRTX 667 195968.43750 3851441.71875 -9640.59766 VRTX 668 195494.68750 3851592.93750 -9637.38184 VRTX 669 195652.00000 3851275.48438 -9986.36719 VRTX 670 195178.28125 3851426.71875 -9983.15137 VRTX 671 195020.93750 3851744.15625 -9634.16699 VRTX 672 194547.18750 3851895.39062 -9630.95117 VRTX 673 194704.53125 3851577.93750 -9979.93652 VRTX 674 194230.78125 3851729.15625 -9976.72070 VRTX 675 194073.46875 3852046.60938 -9627.73535 VRTX 676 193757.03125 3851880.39062 -9973.50488 VRTX 677 193283.28125 3852031.60938 -9970.28906 VRTX 678 192809.53125 3852182.82812 -9967.07324 VRTX 679 192652.21875 3852500.28125 -9618.08887 VRTX 680 192335.78125 3852334.06250 -9963.85840 VRTX 681 192180.37500 3852657.39062 -9620.15723 VRTX 682 192039.28125 3853024.64062 -9315.97559 VRTX 683 191708.68750 3852814.89062 -9622.58691 VRTX 684 191862.03125 3852485.28125 -9960.64258 VRTX 685 191388.28125 3852636.50000 -9957.42676 VRTX 686 191236.96875 3852972.39062 -9625.01758 VRTX 687 191567.59375 3853182.14062 -9318.40527 VRTX 688 191095.87500 3853339.64062 -9320.83496 VRTX 689 190765.28125 3853129.89062 -9627.44727 VRTX 690 190624.18750 3853497.14062 -9323.26465 VRTX 691 190293.56250 3853287.39062 -9629.87695 VRTX 692 190174.37500 3853655.29688 -9317.99219 VRTX 693 190500.96875 3853862.10938 -9021.28320 VRTX 694 190141.93750 3854096.85938 -8959.23340 VRTX 695 189801.25000 3853879.54688 -9260.25977 VRTX 696 189842.31250 3853448.01562 -9622.72363 VRTX 697 189967.06250 3853090.17188 -9947.78027 VRTX 698 190440.81250 3852938.95312 -9950.99512 VRTX 699 190914.56250 3852787.73438 -9954.21094 VRTX 700 189493.31250 3853241.40625 -9944.56445 VRTX 701 189429.46875 3853568.71875 -9648.99609 VRTX 702 189392.90625 3853910.50000 -9382.71875 VRTX 703 188999.50000 3853774.28125 -9636.49414 VRTX 704 188979.43750 3854155.93750 -9331.64062 VRTX 705 189407.12500 3854266.39062 -9086.53320 VRTX 706 189793.12500 3854379.78125 -8854.10938 VRTX 707 189365.93750 3854668.81250 -8772.33594 VRTX 708 189772.50000 3854800.04688 -8517.88574 VRTX 709 190180.62500 3854533.64062 -8588.04004 VRTX 710 190179.06250 3854931.26562 -8263.43652 VRTX 711 190571.15625 3854685.93750 -8322.16016 VRTX 712 190586.37500 3855059.07812 -8011.50049 VRTX 713 190158.06250 3855310.46875 -7960.91748 VRTX 714 190566.50000 3855411.75000 -7730.28564 VRTX 715 190139.78125 3855661.84375 -7680.19922 VRTX 716 190605.03125 3855706.14062 -7486.20898 VRTX 717 190179.34375 3855954.84375 -7436.74463 VRTX 718 190651.37500 3855977.95312 -7257.27148 VRTX 719 190220.00000 3856217.17188 -7217.18457 VRTX 720 190684.68750 3856297.12500 -6995.66455 VRTX 721 190260.40625 3856495.03125 -6985.53662 VRTX 722 190413.46875 3856738.64062 -6742.23486 VRTX 723 190862.65625 3856627.21875 -6676.04932 VRTX 724 190547.15625 3856995.14062 -6495.42969 VRTX 725 191024.84375 3856892.56250 -6412.58496 VRTX 726 191352.31250 3856543.56250 -6574.26172 VRTX 727 191143.00000 3856294.34375 -6841.18848 VRTX 728 191597.68750 3856157.57812 -6792.99268 VRTX 729 191825.68750 3856436.64062 -6496.27490 VRTX 730 191983.62500 3856692.03125 -6242.06445 VRTX 731 191502.50000 3856790.01562 -6329.69531 VRTX 732 191181.65625 3857142.78125 -6162.81152 VRTX 733 191668.90625 3857047.23438 -6071.16260 VRTX 734 191395.50000 3857407.29688 -5882.33057 VRTX 735 191671.62500 3857697.98438 -5560.04688 VRTX 736 191862.59375 3858035.60938 -5230.07715 VRTX 737 191883.25000 3858428.25000 -4915.19629 VRTX 738 191448.50000 3858714.81250 -4839.15137 VRTX 739 191235.68750 3858441.43750 -5126.21094 VRTX 740 191442.50000 3858090.15625 -5330.90527 VRTX 741 191157.56250 3857777.65625 -5673.30664 VRTX 742 190905.50000 3857501.87500 -5975.67480 VRTX 743 190697.34375 3857239.17188 -6252.78223 VRTX 744 190216.25000 3857338.32812 -6339.49463 VRTX 745 190421.96875 3857598.96875 -6064.82471 VRTX 746 190673.59375 3857876.21875 -5761.46143 VRTX 747 190928.31250 3858157.87500 -5453.58301 VRTX 748 190448.87500 3858259.34375 -5537.90576 VRTX 749 190194.15625 3857977.68750 -5845.78369 VRTX 750 189939.43750 3857696.04688 -6153.66162 VRTX 751 189732.00000 3857431.03125 -6432.33545 VRTX 752 190067.75000 3857096.03125 -6580.21387 VRTX 753 189925.59375 3856815.54688 -6848.71143 VRTX 754 189803.53125 3856495.84375 -7141.06445 VRTX 755 189754.37500 3856204.59375 -7386.20410 VRTX 756 189712.50000 3855915.09375 -7627.73047 VRTX 757 189732.40625 3855563.35938 -7908.17822 VRTX 758 189752.43750 3855181.70312 -8213.03223 VRTX 759 189345.90625 3855050.46875 -8467.48242 VRTX 760 189325.84375 3855432.12500 -8162.62842 VRTX 761 189305.78125 3855813.78125 -7857.77441 VRTX 762 189286.53125 3856175.96875 -7568.56543 VRTX 763 189335.81250 3856477.89062 -7315.01709 VRTX 764 189461.81250 3856807.15625 -7013.81836 VRTX 765 189587.40625 3857149.00000 -6702.87158 VRTX 766 189253.65625 3857490.07812 -6549.56055 VRTX 767 189460.03125 3857797.51562 -6237.98389 VRTX 768 189714.75000 3858079.17188 -5930.10596 VRTX 769 189969.46875 3858360.81250 -5622.22803 VRTX 770 189124.31250 3857141.53125 -6867.03320 VRTX 771 188995.00000 3856792.96875 -7184.50000 VRTX 772 188865.65625 3856444.42188 -7501.96436 VRTX 773 188879.18750 3856064.21875 -7807.37061 VRTX 774 188899.21875 3855682.56250 -8112.22461 VRTX 775 188919.28125 3855300.90625 -8417.07812 VRTX 776 188939.34375 3854919.25000 -8721.93262 VRTX 777 188959.40625 3854537.59375 -9026.78613 VRTX 778 191540.43750 3855778.17188 -7109.99512 VRTX 779 191497.68750 3855472.85938 -7363.98193 VRTX 780 191922.62500 3855222.17188 -7415.25049 VRTX 781 191889.59375 3854949.14062 -7640.61084 VRTX 782 191835.40625 3854675.21875 -7873.88330 VRTX 783 191482.06250 3854523.31250 -8125.48486 VRTX 784 191416.71875 3854903.98438 -7837.82129 VRTX 785 191455.90625 3855203.79688 -7589.19434 VRTX 786 191031.00000 3855457.81250 -7535.29199 VRTX 787 191070.65625 3855718.70312 -7317.20508 VRTX 788 191129.34375 3856000.76562 -7076.02393 VRTX 789 190993.46875 3855156.23438 -7784.70654 VRTX 790 191023.06250 3854770.87500 -8089.15381 VRTX 791 191185.62500 3854305.95312 -8410.51953 VRTX 792 191285.40625 3853916.67188 -8710.04102 VRTX 793 191426.50000 3853549.40625 -9014.22266 VRTX 794 190954.81250 3853706.90625 -9016.65234 VRTX 795 190856.43750 3854067.03125 -8725.03809 VRTX 796 190510.84375 3854268.35938 -8685.46484 VRTX 797 190854.90625 3854450.46875 -8412.02539 VRTX 798 191898.21875 3853391.90625 -9011.79297 VRTX 799 189019.56250 3853392.62500 -9941.34863 VRTX 800 194446.21875 3853181.42188 -8388.84961 VRTX 801 194917.93750 3853023.92188 -8386.41992 VRTX 802 195389.62500 3852866.42188 -8383.98926 VRTX 803 195861.34375 3852708.92188 -8381.55957 VRTX 804 196333.03125 3852551.42188 -8379.12988 VRTX 805 196804.75000 3852393.92188 -8376.70020 VRTX 806 197276.43750 3852236.42188 -8374.27051 VRTX 807 197748.15625 3852078.92188 -8371.83984 VRTX 808 198219.84375 3851921.42188 -8369.41016 VRTX 809 198691.56250 3851763.92188 -8366.98047 VRTX 810 199163.25000 3851606.42188 -8364.55078 VRTX 811 199634.93750 3851448.92188 -8362.12109 VRTX 812 200106.65625 3851291.42188 -8359.69141 VRTX 813 200578.34375 3851133.92188 -8357.26074 VRTX 814 201050.06250 3850976.42188 -8354.83105 VRTX 815 201521.75000 3850818.92188 -8352.40137 VRTX 816 201993.46875 3850661.42188 -8349.97168 VRTX 817 202465.15625 3850503.92188 -8347.54199 VRTX 818 202936.87500 3850346.42188 -8345.11133 VRTX 819 203408.56250 3850188.92188 -8342.68164 VRTX 820 203880.25000 3850031.42188 -8340.25195 VRTX 821 204351.96875 3849873.92188 -8337.82227 VRTX 822 204823.65625 3849716.42188 -8335.39258 VRTX 823 205295.37500 3849558.90625 -8332.96191 VRTX 824 205767.06250 3849401.40625 -8330.53223 VRTX 825 206238.78125 3849243.90625 -8328.10254 VRTX 826 206710.46875 3849086.40625 -8325.67285 VRTX 827 207182.84375 3848930.92188 -8325.04785 VRTX 828 207656.56250 3848779.68750 -8328.26367 VRTX 829 208130.31250 3848628.46875 -8331.47949 VRTX 830 208287.65625 3848311.01562 -8680.46484 VRTX 831 208444.96875 3847993.56250 -9029.44922 VRTX 832 208918.71875 3847842.34375 -9032.66504 VRTX 833 209392.43750 3847691.12500 -9035.88086 VRTX 834 194230.81250 3854890.67188 -6886.16309 VRTX 835 194817.78125 3854302.64062 -7146.53516 VRTX 836 195281.93750 3854126.45312 -7126.00977 VRTX 837 195630.34375 3854380.71875 -6807.57617 VRTX 838 195974.28125 3854663.01562 -6468.69824 VRTX 839 195837.78125 3855092.06250 -6178.99072 VRTX 840 196155.34375 3855333.70312 -5881.00488 VRTX 841 196009.56250 3855729.57812 -5620.47168 VRTX 842 196315.75000 3855924.14062 -5280.67188 VRTX 843 196164.78125 3856312.09375 -5008.39258 VRTX 844 196481.68750 3856539.76562 -4703.47412 VRTX 845 196333.84375 3856933.04688 -4441.34375 VRTX 846 196650.75000 3857160.70312 -4136.42529 VRTX 847 197115.50000 3856995.09375 -4093.63696 VRTX 848 196798.59375 3856767.42188 -4398.55566 VRTX 849 196946.40625 3856374.14062 -4660.68555 VRTX 850 196629.50000 3856146.46875 -4965.60449 VRTX 851 197094.25000 3855980.85938 -4922.81592 VRTX 852 197411.15625 3856208.51562 -4617.89697 VRTX 853 197558.96875 3855815.23438 -4880.02734 VRTX 854 197875.87500 3856042.90625 -4575.10889 VRTX 855 198023.71875 3855649.62500 -4837.23877 VRTX 856 198340.62500 3855877.28125 -4532.32031 VRTX 857 198488.43750 3855484.00000 -4794.45020 VRTX 858 198805.34375 3855711.67188 -4489.53174 VRTX 859 198953.15625 3855318.37500 -4751.66162 VRTX 860 199270.06250 3855546.04688 -4446.74316 VRTX 861 199420.00000 3855156.34375 -4715.69287 VRTX 862 199734.81250 3855380.42188 -4403.95459 VRTX 863 199887.78125 3854995.87500 -4682.73193 VRTX 864 200199.53125 3855214.81250 -4361.16602 VRTX 865 200355.53125 3854835.42188 -4649.77100 VRTX 866 200664.28125 3855049.18750 -4318.37793 VRTX 867 200824.93750 3854678.00000 -4612.47754 VRTX 868 201129.00000 3854883.57812 -4275.58936 VRTX 869 201291.34375 3854519.78125 -4577.55469 VRTX 870 201593.75000 3854717.95312 -4232.80078 VRTX 871 201759.09375 3854359.32812 -4544.59375 VRTX 872 202058.46875 3854552.32812 -4190.01221 VRTX 873 202225.59375 3854200.87500 -4509.88379 VRTX 874 202524.28125 3854388.54688 -4150.71387 VRTX 875 202692.34375 3854047.71875 -4468.87891 VRTX 876 202992.03125 3854228.07812 -4117.75293 VRTX 877 203160.12500 3853887.25000 -4435.91797 VRTX 878 203459.81250 3854067.62500 -4084.79224 VRTX 879 203631.53125 3853725.78125 -4402.41602 VRTX 880 203929.59375 3853908.76562 -4049.01025 VRTX 881 204100.09375 3853566.15625 -4368.10693 VRTX 882 204395.59375 3853751.98438 -4012.57568 VRTX 883 204563.65625 3853411.15625 -4330.74072 VRTX 884 204863.37500 3853591.53125 -3979.61475 VRTX 885 205032.18750 3853248.73438 -4299.71875 VRTX 886 204729.84375 3853069.42188 -4650.85400 VRTX 887 205207.81250 3852904.67188 -4618.10010 VRTX 888 205505.59375 3853090.65625 -4261.31104 VRTX 889 205676.31250 3852749.43750 -4578.70020 VRTX 890 205374.62500 3852546.45312 -4914.84131 VRTX 891 204892.90625 3852707.98438 -4952.85889 VRTX 892 204429.84375 3852867.51562 -4986.06934 VRTX 893 204571.90625 3852469.73438 -5249.38037 VRTX 894 205048.68750 3852307.70312 -5213.43457 VRTX 895 205519.06250 3852149.25000 -5176.86523 VRTX 896 205198.87500 3851910.54688 -5473.46729 VRTX 897 204723.37500 3852069.81250 -5511.13623 VRTX 898 204252.37500 3852230.42188 -5546.21777 VRTX 899 204407.12500 3851851.40625 -5826.36914 VRTX 900 204885.31250 3851701.35938 -5810.52832 VRTX 901 205352.81250 3851556.79688 -5792.18018 VRTX 902 205017.31250 3851373.46875 -6191.72217 VRTX 903 205483.53125 3851227.65625 -6175.62939 VRTX 904 205820.81250 3851413.71875 -5771.59766 VRTX 905 205947.93750 3851088.35938 -6151.60596 VRTX 906 206290.75000 3851275.23438 -5743.95361 VRTX 907 206480.50000 3850988.85938 -6042.96533 VRTX 908 206769.12500 3851129.71875 -5721.94189 VRTX 909 206967.31250 3850837.81250 -6024.54150 VRTX 910 207249.84375 3850985.14062 -5697.58447 VRTX 911 207439.71875 3850688.28125 -6010.64941 VRTX 912 207722.28125 3850839.03125 -5679.07178 VRTX 913 207911.78125 3850539.85938 -5995.41357 VRTX 914 208190.65625 3850695.96875 -5658.30908 VRTX 915 208382.31250 3850391.76562 -5980.43652 VRTX 916 208667.21875 3850549.95312 -5637.78174 VRTX 917 208855.25000 3850243.00000 -5965.25781 VRTX 918 209141.62500 3850405.39062 -5616.28076 VRTX 919 209328.65625 3850095.17188 -5948.61426 VRTX 920 209616.62500 3850262.60938 -5592.10400 VRTX 921 210086.21875 3850118.37500 -5572.38086 VRTX 922 210376.78125 3850290.81250 -5207.98779 VRTX 923 209910.71875 3850432.45312 -5229.61621 VRTX 924 209435.84375 3850576.39062 -5252.14062 VRTX 925 208964.03125 3850720.42188 -5273.17285 VRTX 926 208485.93750 3850866.12500 -5294.82959 VRTX 927 208014.40625 3851011.14062 -5314.40771 VRTX 928 207543.78125 3851153.84375 -5336.67676 VRTX 929 207070.62500 3851297.93750 -5358.23535 VRTX 930 206587.50000 3851446.53125 -5378.27734 VRTX 931 206119.81250 3851595.57812 -5405.59521 VRTX 932 205657.53125 3851752.40625 -5440.65918 VRTX 933 205975.65625 3851991.37500 -5144.56641 VRTX 934 205836.62500 3852390.10938 -4879.49121 VRTX 935 206132.75000 3852598.26562 -4540.22998 VRTX 936 205964.68750 3852939.09375 -4222.06494 VRTX 937 205796.62500 3853279.92188 -3903.89990 VRTX 938 206264.37500 3853119.46875 -3870.93896 VRTX 939 206096.31250 3853460.29688 -3552.77417 VRTX 940 205628.56250 3853620.75000 -3585.73511 VRTX 941 205329.87500 3853433.07812 -3944.90479 VRTX 942 205163.78125 3853786.28125 -3628.36279 VRTX 943 205480.68750 3854013.95312 -3323.44409 VRTX 944 205015.93750 3854179.56250 -3366.23267 VRTX 945 204699.03125 3853951.90625 -3671.15137 VRTX 946 204234.31250 3854117.53125 -3713.93970 VRTX 947 203769.56250 3854283.14062 -3756.72827 VRTX 948 203304.84375 3854448.76562 -3799.51660 VRTX 949 202840.09375 3854614.37500 -3842.30518 VRTX 950 202375.37500 3854780.00000 -3885.09375 VRTX 951 201910.65625 3854945.62500 -3927.88208 VRTX 952 201445.90625 3855111.23438 -3970.67065 VRTX 953 200981.18750 3855276.85938 -4013.45923 VRTX 954 200516.43750 3855442.46875 -4056.24756 VRTX 955 200051.71875 3855608.09375 -4099.03613 VRTX 956 199586.96875 3855773.71875 -4141.82471 VRTX 957 199122.25000 3855939.32812 -4184.61328 VRTX 958 198657.53125 3856104.95312 -4227.40137 VRTX 959 198192.78125 3856270.56250 -4270.18994 VRTX 960 197728.06250 3856436.18750 -4312.97852 VRTX 961 197263.31250 3856601.79688 -4355.76709 VRTX 962 197580.21875 3856829.46875 -4050.84839 VRTX 963 198044.96875 3856663.84375 -4008.05981 VRTX 964 198509.68750 3856498.23438 -3965.27148 VRTX 965 198974.43750 3856332.60938 -3922.48291 VRTX 966 199439.15625 3856167.00000 -3879.69434 VRTX 967 199903.87500 3856001.37500 -3836.90601 VRTX 968 200368.62500 3855835.75000 -3794.11743 VRTX 969 200833.34375 3855670.14062 -3751.32886 VRTX 970 201298.09375 3855504.51562 -3708.54053 VRTX 971 201762.81250 3855338.90625 -3665.75195 VRTX 972 202227.56250 3855173.28125 -3622.96362 VRTX 973 202692.28125 3855007.65625 -3580.17505 VRTX 974 203157.00000 3854842.04688 -3537.38647 VRTX 975 203621.75000 3854676.42188 -3494.59814 VRTX 976 204086.46875 3854510.81250 -3451.80957 VRTX 977 204551.21875 3854345.18750 -3409.02100 VRTX 978 205945.40625 3853848.32812 -3280.65576 VRTX 979 206410.12500 3853682.71875 -3237.86719 VRTX 980 206874.87500 3853517.09375 -3195.07861 VRTX 981 206564.09375 3853299.82812 -3519.81323 VRTX 982 206732.15625 3852959.00000 -3837.97827 VRTX 983 206432.43750 3852778.64062 -4189.10400 VRTX 984 206596.78125 3852435.18750 -4512.07568 VRTX 985 206285.56250 3852240.21875 -4843.54736 VRTX 986 206431.15625 3851839.82812 -5107.68359 VRTX 987 206916.18750 3851672.68750 -5072.91846 VRTX 988 207383.34375 3851513.28125 -5038.21191 VRTX 989 207847.96875 3851356.75000 -5002.12207 VRTX 990 208314.28125 3851199.60938 -4965.92188 VRTX 991 208787.75000 3851036.79688 -4931.71924 VRTX 992 209258.62500 3850891.29688 -4909.04443 VRTX 993 209729.96875 3850747.43750 -4887.99561 VRTX 994 210202.84375 3850605.06250 -4864.25635 VRTX 995 210669.46875 3850461.90625 -4844.39795 VRTX 996 210862.43750 3850139.18750 -5190.86035 VRTX 997 211158.03125 3850305.09375 -4832.95068 VRTX 998 211402.00000 3849952.68750 -5196.13965 VRTX 999 211657.65625 3850135.10938 -4834.16846 VRTX 1000 211984.84375 3849737.17188 -5220.74170 VRTX 1001 212113.56250 3850013.85938 -4789.73047 VRTX 1002 212472.12500 3849727.57812 -5011.73535 VRTX 1003 212487.00000 3849477.28125 -5341.81836 VRTX 1004 212156.03125 3849337.29688 -5680.94727 VRTX 1005 212620.78125 3849166.07812 -5699.72900 VRTX 1006 212500.93750 3848957.67188 -6034.77441 VRTX 1007 212042.06250 3849039.32812 -6133.86328 VRTX 1008 211922.06250 3848795.00000 -6517.33643 VRTX 1009 212402.25000 3848744.14062 -6367.11133 VRTX 1010 212881.34375 3848679.34375 -6236.12891 VRTX 1011 212786.28125 3848479.37500 -6548.54248 VRTX 1012 212310.46875 3848553.75000 -6665.14014 VRTX 1013 212693.93750 3848293.51562 -6840.74658 VRTX 1014 213169.81250 3848219.20312 -6724.02930 VRTX 1015 213262.09375 3848405.09375 -6431.81885 VRTX 1016 213006.15625 3848911.35938 -5867.01953 VRTX 1017 212949.37500 3849256.92188 -5427.81738 VRTX 1018 212928.71875 3849521.53125 -5081.09668 VRTX 1019 212952.81250 3849753.93750 -4757.33203 VRTX 1020 212609.09375 3849931.35938 -4675.08496 VRTX 1021 212406.78125 3850196.95312 -4409.77881 VRTX 1022 212933.96875 3850061.93750 -4352.71924 VRTX 1023 213342.09375 3849834.01562 -4472.28320 VRTX 1024 213703.65625 3849951.62500 -4162.45312 VRTX 1025 213276.12500 3850191.73438 -4035.84009 VRTX 1026 212718.90625 3850364.09375 -4053.44189 VRTX 1027 212223.93750 3850527.00000 -4089.73193 VRTX 1028 211925.84375 3850339.75000 -4436.63379 VRTX 1029 211447.62500 3850483.50000 -4460.94629 VRTX 1030 210971.90625 3850643.56250 -4493.43018 VRTX 1031 210504.78125 3850804.54688 -4526.89160 VRTX 1032 210043.81250 3850960.70312 -4562.03320 VRTX 1033 209568.96875 3851120.89062 -4598.76123 VRTX 1034 209108.68750 3851275.14062 -4635.16553 VRTX 1035 208645.59375 3851434.57812 -4668.45459 VRTX 1036 208160.90625 3851601.03125 -4703.63232 VRTX 1037 207700.21875 3851753.15625 -4741.84473 VRTX 1038 207244.68750 3851909.73438 -4774.80176 VRTX 1039 206761.31250 3852073.54688 -4811.60107 VRTX 1040 207078.34375 3852268.73438 -4479.60547 VRTX 1041 206902.78125 3852613.62500 -4160.23877 VRTX 1042 207206.21875 3852796.60938 -3804.30591 VRTX 1043 207377.25000 3852454.87500 -4122.13184 VRTX 1044 207667.93750 3852643.37500 -3765.76147 VRTX 1045 207836.00000 3852302.54688 -4083.92651 VRTX 1046 208135.71875 3852482.90625 -3732.80078 VRTX 1047 208301.87500 3852141.17188 -4052.91406 VRTX 1048 208604.21875 3852320.46875 -3701.77905 VRTX 1049 208779.84375 3851976.42188 -4020.15991 VRTX 1050 209077.65625 3852162.40625 -3663.37109 VRTX 1051 209248.34375 3851821.17188 -3980.76025 VRTX 1052 209536.71875 3852010.84375 -3624.12500 VRTX 1053 209703.15625 3851666.95312 -3946.62256 VRTX 1054 210008.03125 3851846.85938 -3593.58838 VRTX 1055 210178.18750 3851505.89062 -3910.95361 VRTX 1056 210476.40625 3851687.64062 -3558.88647 VRTX 1057 210647.40625 3851346.54688 -3875.97876 VRTX 1058 210945.12500 3851528.90625 -3523.47510 VRTX 1059 211112.56250 3851187.10938 -3843.06201 VRTX 1060 211406.15625 3851373.37500 -3487.93506 VRTX 1061 211577.75000 3851028.43750 -3809.22803 VRTX 1062 211884.09375 3851208.62500 -3455.18091 VRTX 1063 212059.40625 3850868.35938 -3769.27417 VRTX 1064 212352.62500 3851053.37500 -3415.78125 VRTX 1065 212517.43750 3850712.73438 -3735.26025 VRTX 1066 212807.03125 3850900.60938 -3380.13208 VRTX 1067 213033.25000 3850529.07812 -3706.73828 VRTX 1068 213306.68750 3850720.76562 -3354.75146 VRTX 1069 213611.62500 3850346.59375 -3689.30640 VRTX 1070 213795.00000 3850610.93750 -3266.49341 VRTX 1071 214078.18750 3850379.56250 -3444.30566 VRTX 1072 214070.15625 3850056.15625 -3867.84131 VRTX 1073 211758.46875 3850683.37500 -4126.37158 VRTX 1074 211279.90625 3850844.48438 -4163.66602 VRTX 1075 210813.75000 3851003.87500 -4197.11230 VRTX 1076 210348.84375 3851164.31250 -4228.75537 VRTX 1077 209876.21875 3851321.21875 -4268.15332 VRTX 1078 209411.65625 3851480.37500 -4301.12598 VRTX 1079 208955.15625 3851636.15625 -4334.25342 VRTX 1080 208473.50000 3851796.23438 -4374.20703 VRTX 1081 208000.59375 3851959.62500 -4406.15674 VRTX 1082 207546.68750 3852113.62500 -4440.13574 VRTX 1083 214531.12500 3849833.23438 -3957.63354 VRTX 1084 214444.31250 3850189.95312 -3531.90186 VRTX 1085 214258.46875 3850647.03125 -3018.75586 VRTX 1086 213629.28125 3850902.10938 -2991.71948 VRTX 1087 213110.37500 3851079.96875 -3028.46509 VRTX 1088 213412.09375 3851261.93750 -2674.51831 VRTX 1089 213898.18750 3851075.60938 -2663.08398 VRTX 1090 212940.68750 3851423.40625 -2708.02026 VRTX 1091 212641.00000 3851243.04688 -3059.14600 VRTX 1092 212181.90625 3851394.60938 -3098.39209 VRTX 1093 211708.50000 3851552.67188 -3136.80005 VRTX 1094 211239.96875 3851715.10938 -3167.82178 VRTX 1095 210774.53125 3851871.39062 -3204.55981 VRTX 1096 210309.37500 3852030.28125 -3238.12988 VRTX 1097 209836.40625 3852191.20312 -3272.99927 VRTX 1098 209368.65625 3852351.67188 -3305.96021 VRTX 1099 208901.90625 3852504.81250 -3346.96484 VRTX 1100 208435.40625 3852663.26562 -3381.67480 VRTX 1101 207967.62500 3852823.73438 -3414.63574 VRTX 1102 207499.87500 3852984.20312 -3447.59668 VRTX 1103 207031.84375 3853139.35938 -3486.85229 VRTX 1104 207339.59375 3853351.46875 -3152.29028 VRTX 1105 207804.34375 3853185.85938 -3109.50171 VRTX 1106 208269.06250 3853020.23438 -3066.71313 VRTX 1107 208733.78125 3852854.62500 -3023.92480 VRTX 1108 209200.59375 3852692.50000 -2987.79517 VRTX 1109 209668.34375 3852532.03125 -2954.83423 VRTX 1110 210136.12500 3852371.56250 -2921.87329 VRTX 1111 210605.53125 3852214.15625 -2884.57983 VRTX 1112 211071.90625 3852055.93750 -2849.65674 VRTX 1113 211539.68750 3851895.46875 -2816.69580 VRTX 1114 212006.15625 3851737.03125 -2781.98584 VRTX 1115 212472.93750 3851583.87500 -2740.98120 VRTX 1116 213645.65625 3848145.00000 -6607.18945 VRTX 1117 213553.15625 3847959.06250 -6899.55762 VRTX 1118 213077.28125 3848033.26562 -7016.40332 VRTX 1119 213451.62500 3847760.42188 -7213.13330 VRTX 1120 212969.25000 3847831.50000 -7337.16797 VRTX 1121 213304.62500 3847551.32812 -7561.47852 VRTX 1122 212477.40625 3847881.34375 -7494.07959 VRTX 1123 212069.21875 3847892.34375 -7665.17480 VRTX 1124 212051.28125 3848171.95312 -7297.04150 VRTX 1125 211624.06250 3848058.00000 -7644.95947 VRTX 1126 211482.90625 3848357.23438 -7306.50781 VRTX 1127 211812.00000 3848504.45312 -6958.49072 VRTX 1128 211529.59375 3848792.79688 -6699.05420 VRTX 1129 212235.59375 3848353.67188 -6968.50293 VRTX 1130 212588.25000 3848097.98438 -7152.02832 VRTX 1131 211648.15625 3849604.18750 -5553.06396 VRTX 1132 209078.75000 3849938.07812 -6273.85693 VRTX 1133 209241.71875 3849627.73438 -6617.29932 VRTX 1134 208929.03125 3849470.90625 -6970.77832 VRTX 1135 208457.40625 3849628.57812 -6973.36475 VRTX 1136 208770.06250 3849785.42188 -6619.88574 VRTX 1137 208604.84375 3850092.00000 -6282.52100 VRTX 1138 208131.09375 3850245.26562 -6292.00342 VRTX 1139 208298.43750 3849943.09375 -6622.47266 VRTX 1140 207985.75000 3849786.25000 -6975.95117 VRTX 1141 207514.12500 3849943.93750 -6978.53760 VRTX 1142 207826.78125 3850100.76562 -6625.05908 VRTX 1143 207657.40625 3850398.68750 -6301.25000 VRTX 1144 207185.53125 3850553.43750 -6307.87402 VRTX 1145 207355.15625 3850258.45312 -6627.64551 VRTX 1146 207042.46875 3850101.60938 -6981.12402 VRTX 1147 206570.84375 3850259.28125 -6983.71094 VRTX 1148 206883.50000 3850416.12500 -6630.23193 VRTX 1149 206712.62500 3850707.21875 -6316.30176 VRTX 1150 206248.84375 3850856.07812 -6327.17578 VRTX 1151 206411.12500 3850571.21875 -6636.63135 VRTX 1152 206099.18750 3850416.96875 -6986.29736 VRTX 1153 205627.56250 3850574.64062 -6988.88379 VRTX 1154 205941.00000 3850743.17188 -6619.30859 VRTX 1155 205512.00000 3850916.12500 -6581.91943 VRTX 1156 205045.03125 3851067.20312 -6591.28223 VRTX 1157 204573.56250 3851220.39062 -6599.81396 VRTX 1158 204542.53125 3851523.15625 -6206.47803 VRTX 1159 204066.59375 3851674.48438 -6219.56689 VRTX 1160 204099.43750 3851374.75000 -6607.99463 VRTX 1161 204216.62500 3851051.43750 -6989.75098 VRTX 1162 203743.15625 3851207.12500 -6995.85547 VRTX 1163 203625.50000 3851528.12500 -6617.42334 VRTX 1164 203269.34375 3851363.03125 -7001.81641 VRTX 1165 204688.75000 3850894.26562 -6986.26367 VRTX 1166 205161.46875 3850738.85938 -6980.14844 VRTX 1167 202797.68750 3851520.70312 -7004.40283 VRTX 1168 203153.03125 3851681.76562 -6625.81348 VRTX 1169 203599.75000 3851819.21875 -6237.38867 VRTX 1170 203131.03125 3851965.64062 -6253.78613 VRTX 1171 203472.59375 3852149.95312 -5875.85303 VRTX 1172 203928.25000 3852001.65625 -5842.24805 VRTX 1173 203785.93750 3852394.43750 -5577.05811 VRTX 1174 203323.00000 3852546.60938 -5616.00244 VRTX 1175 202998.75000 3852306.48438 -5915.10449 VRTX 1176 202655.87500 3852114.06250 -6270.42871 VRTX 1177 202680.18750 3851835.81250 -6633.84424 VRTX 1178 202326.06250 3851678.39062 -7006.98926 VRTX 1179 202205.81250 3851989.93750 -6642.45020 VRTX 1180 201854.40625 3851836.06250 -7009.57568 VRTX 1181 201732.21875 3852144.06250 -6650.70068 VRTX 1182 201382.78125 3851993.73438 -7012.16211 VRTX 1183 200911.12500 3852151.42188 -7014.74854 VRTX 1184 201259.62500 3852298.42188 -6658.20215 VRTX 1185 200785.59375 3852452.67188 -6666.48584 VRTX 1186 200439.50000 3852309.09375 -7017.33545 VRTX 1187 200306.84375 3852608.10938 -6675.32080 VRTX 1188 199967.84375 3852466.76562 -7019.92188 VRTX 1189 199808.87500 3852781.28125 -6669.02979 VRTX 1190 199496.21875 3852624.45312 -7022.50830 VRTX 1191 199314.87500 3852931.56250 -6691.76562 VRTX 1192 199024.56250 3852782.12500 -7025.09473 VRTX 1193 198853.03125 3853079.84375 -6725.87061 VRTX 1194 198550.18750 3852941.73438 -7026.33984 VRTX 1195 198441.50000 3853357.29688 -6649.02539 VRTX 1196 198085.37500 3853108.06250 -7014.16357 VRTX 1197 197962.37500 3853530.23438 -6677.22412 VRTX 1198 197613.09375 3853264.67188 -7018.47852 VRTX 1199 197494.84375 3853700.57812 -6703.48291 VRTX 1200 197144.21875 3853430.25000 -7035.26318 VRTX 1201 197028.37500 3853870.45312 -6729.74805 VRTX 1202 196677.71875 3853602.40625 -7059.75000 VRTX 1203 196560.75000 3854039.28125 -6757.22754 VRTX 1204 196211.03125 3853773.90625 -7084.82080 VRTX 1205 196095.03125 3854210.15625 -6782.46387 VRTX 1206 195746.09375 3853950.26562 -7105.48389 VRTX 1207 196435.68750 3854498.04688 -6440.32715 VRTX 1208 196300.62500 3854938.01562 -6141.56592 VRTX 1209 196622.84375 3855172.84375 -5847.31348 VRTX 1210 196477.09375 3855568.70312 -5586.77686 VRTX 1211 196783.50000 3855763.67188 -5247.71094 VRTX 1212 196944.62500 3855407.84375 -5553.08252 VRTX 1213 197251.28125 3855603.20312 -5214.75000 VRTX 1214 197419.28125 3855247.70312 -5516.38623 VRTX 1215 197719.28125 3855448.04688 -5175.49463 VRTX 1216 198187.06250 3855287.57812 -5142.53369 VRTX 1217 197880.37500 3855092.14062 -5480.73291 VRTX 1218 197564.06250 3854850.62500 -5778.20264 VRTX 1219 198026.00000 3854696.31250 -5741.27881 VRTX 1220 197707.90625 3854444.89062 -6047.12549 VRTX 1221 197243.31250 3854604.98438 -6080.41943 VRTX 1222 197375.65625 3854164.76562 -6380.31396 VRTX 1223 197840.12500 3854001.90625 -6349.22363 VRTX 1224 196905.90625 3854330.39062 -6411.02637 VRTX 1225 196766.56250 3854771.43750 -6112.88672 VRTX 1226 197095.93750 3855007.00000 -5815.62988 VRTX 1227 198302.53125 3853838.12500 -6319.56689 VRTX 1228 198170.37500 3854285.29688 -6014.16406 VRTX 1229 198494.93750 3854534.56250 -5707.80615 VRTX 1230 198347.90625 3854931.26562 -5447.03857 VRTX 1231 198654.81250 3855127.10938 -5109.57275 VRTX 1232 199121.31250 3854968.67188 -5074.86279 VRTX 1233 198816.84375 3854770.84375 -5412.52051 VRTX 1234 198969.62500 3854371.57812 -5673.31201 VRTX 1235 198638.75000 3854125.46875 -5979.37402 VRTX 1236 198769.75000 3853711.51562 -6259.12939 VRTX 1237 198958.96875 3853343.98438 -6482.58594 VRTX 1238 199265.06250 3853577.00000 -6195.27979 VRTX 1239 199118.00000 3853974.21875 -5934.13623 VRTX 1240 199434.75000 3854216.46875 -5635.93311 VRTX 1241 199290.40625 3854612.95312 -5374.44434 VRTX 1242 199588.06250 3854815.51562 -5033.85791 VRTX 1243 200055.84375 3854655.04688 -5000.89697 VRTX 1244 199748.90625 3854459.15625 -5338.28174 VRTX 1245 199899.25000 3854060.46875 -5599.46729 VRTX 1246 199581.65625 3853819.03125 -5897.30518 VRTX 1247 199728.53125 3853421.50000 -6158.75928 VRTX 1248 199437.50000 3853187.12500 -6441.99316 VRTX 1249 199883.75000 3853055.51562 -6392.63623 VRTX 1250 200313.12500 3852885.10938 -6379.46387 VRTX 1251 200192.25000 3853264.73438 -6123.15381 VRTX 1252 200046.50000 3853662.70312 -5860.97168 VRTX 1253 200365.28125 3853903.53125 -5563.20117 VRTX 1254 200221.09375 3854299.89062 -5301.74072 VRTX 1255 200528.81250 3854494.12500 -4966.02783 VRTX 1256 200993.96875 3854335.23438 -4932.45752 VRTX 1257 200688.84375 3854137.68750 -5269.02393 VRTX 1258 200837.12500 3853741.76562 -5528.74072 VRTX 1259 200512.50000 3853504.34375 -5825.83447 VRTX 1260 200655.71875 3853106.14062 -6089.06982 VRTX 1261 200775.31250 3852723.79688 -6347.94727 VRTX 1262 201244.31250 3852558.67188 -6317.08008 VRTX 1263 201124.87500 3852945.37500 -6054.74219 VRTX 1264 200977.93750 3853343.96875 -5792.46973 VRTX 1265 201299.46875 3853581.62500 -5496.24170 VRTX 1266 201449.09375 3853182.37500 -5758.11475 VRTX 1267 201772.15625 3853421.54688 -5460.16895 VRTX 1268 201617.87500 3853821.35938 -5199.44971 VRTX 1269 201157.46875 3853978.81250 -5233.38477 VRTX 1270 201459.40625 3854178.95312 -4895.71973 VRTX 1271 201927.93750 3854016.51562 -4864.69775 VRTX 1272 202096.65625 3853660.76562 -5161.71191 VRTX 1273 202401.34375 3853858.45312 -4826.29004 VRTX 1274 202860.40625 3853706.89062 -4787.04395 VRTX 1275 202564.21875 3853500.03125 -5127.90186 VRTX 1276 202242.12500 3853265.04688 -5422.22217 VRTX 1277 202708.06250 3853104.50000 -5388.83252 VRTX 1278 202385.81250 3852866.70312 -5685.40625 VRTX 1279 202848.50000 3852707.23438 -5652.26904 VRTX 1280 203167.06250 3852946.32812 -5355.93750 VRTX 1281 203641.90625 3852790.32812 -5315.92529 VRTX 1282 204108.87500 3852628.17188 -5283.43506 VRTX 1283 203962.43750 3853026.37500 -5021.29541 VRTX 1284 203494.78125 3853185.57812 -5056.33350 VRTX 1285 203018.87500 3853349.06250 -5090.84912 VRTX 1286 203329.81250 3853543.81250 -4756.36279 VRTX 1287 203801.28125 3853384.60938 -4720.19482 VRTX 1288 204270.59375 3853224.03125 -4686.64111 VRTX 1289 202527.59375 3852468.96875 -5948.75781 VRTX 1290 202184.43750 3852262.04688 -6285.97754 VRTX 1291 201716.65625 3852408.54688 -6301.84570 VRTX 1292 202065.75000 3852627.89062 -5982.03418 VRTX 1293 201603.37500 3852782.70312 -6018.71533 VRTX 1294 201923.71875 3853025.45312 -5718.89600 VRTX 1295 195425.65625 3858278.51562 -3697.74194 VRTX 1296 194960.90625 3858444.12500 -3740.53052 VRTX 1297 194496.18750 3858609.75000 -3783.31909 VRTX 1298 194031.46875 3858775.35938 -3826.10742 VRTX 1299 193566.71875 3858940.98438 -3868.89600 VRTX 1300 193102.00000 3859106.60156 -3911.68433 VRTX 1301 192637.25000 3859272.21875 -3954.47290 VRTX 1302 192172.53125 3859437.84375 -3997.26147 VRTX 1303 191707.78125 3859603.46094 -4040.04980 VRTX 1304 191243.06250 3859769.07812 -4082.83838 TRGL 33 37 31 TRGL 43 31 37 TRGL 43 29 31 TRGL 8 1303 1304 TRGL 10 1303 8 TRGL 12 1302 10 TRGL 14 1300 1301 TRGL 16 1299 1300 TRGL 18 1299 16 TRGL 22 1296 1297 TRGL 23 90 22 TRGL 1295 90 91 TRGL 240 244 241 TRGL 915 913 1138 TRGL 911 909 1144 TRGL 1159 1163 1160 TRGL 1159 1169 1163 TRGL 1294 1267 1266 TRGL 1267 1294 1276 TRGL 1289 1279 1278 TRGL 1292 1290 1289 TRGL 1292 1289 1278 TRGL 1292 1278 1294 TRGL 1293 1292 1294 TRGL 1263 1266 1264 TRGL 1263 1293 1266 TRGL 1263 1262 1293 TRGL 1184 1182 1181 TRGL 1291 1184 1181 TRGL 1291 1262 1184 TRGL 1262 1291 1293 TRGL 1290 1291 1181 TRGL 1176 1179 1177 TRGL 1290 1176 1289 TRGL 1289 1176 1175 TRGL 1289 1175 1279 TRGL 1284 1286 1285 TRGL 1286 1284 1287 TRGL 1286 879 877 TRGL 1274 1286 877 TRGL 1285 1274 1275 TRGL 1277 1285 1275 TRGL 1277 1280 1285 TRGL 1280 1281 1284 TRGL 1281 1282 1283 TRGL 1282 893 892 TRGL 898 893 1282 TRGL 898 1282 1173 TRGL 1173 1282 1281 TRGL 1174 1281 1280 TRGL 1279 1280 1277 TRGL 1279 1277 1278 TRGL 1276 1275 1272 TRGL 1275 1273 1272 TRGL 1271 873 871 TRGL 1271 1273 873 TRGL 1271 1272 1273 TRGL 1272 1271 1268 TRGL 1268 1270 1269 TRGL 1270 1268 1271 TRGL 1270 1271 871 TRGL 719 721 754 TRGL 178 177 182 TRGL 724 752 722 TRGL 101 100 99 TRGL 1171 1173 1174 TRGL 741 747 746 TRGL 1128 1127 1008 TRGL 742 746 745 TRGL 742 745 743 TRGL 11 10 9 TRGL 819 818 533 TRGL 743 745 744 TRGL 942 943 944 TRGL 1024 198 1072 TRGL 743 744 724 TRGL 736 740 735 TRGL 740 737 739 TRGL 1077 1032 1076 TRGL 17 30 19 TRGL 1274 1285 1286 TRGL 32 15 34 TRGL 635 637 634 TRGL 709 710 708 TRGL 739 4 1 TRGL 36 735 39 TRGL 729 731 726 TRGL 147 146 145 TRGL 729 50 730 TRGL 519 520 518 TRGL 713 715 757 TRGL 50 729 363 TRGL 723 725 724 TRGL 1108 1109 153 TRGL 903 902 1156 TRGL 720 722 721 TRGL 737 738 739 TRGL 718 717 716 TRGL 478 479 483 TRGL 716 717 715 TRGL 706 708 707 TRGL 706 707 705 TRGL 702 705 704 TRGL 628 614 631 TRGL 702 704 703 TRGL 283 285 284 TRGL 702 703 701 TRGL 689 698 699 TRGL 1080 1049 1047 TRGL 692 694 695 TRGL 141 142 140 TRGL 1069 1071 1070 TRGL 1238 1248 1247 TRGL 675 676 674 TRGL 734 741 742 TRGL 575 582 574 TRGL 998 999 997 TRGL 363 729 728 TRGL 690 692 691 TRGL 270 269 996 TRGL 688 689 686 TRGL 943 135 944 TRGL 36 736 735 TRGL 561 562 560 TRGL 1237 1236 1195 TRGL 679 680 678 TRGL 589 678 677 TRGL 745 746 749 TRGL 651 652 653 TRGL 590 677 676 TRGL 28 19 30 TRGL 498 508 497 TRGL 591 590 675 TRGL 592 672 593 TRGL 311 310 309 TRGL 1204 343 341 TRGL 671 673 670 TRGL 855 854 853 TRGL 891 887 886 TRGL 690 691 689 TRGL 648 651 650 TRGL 750 767 751 TRGL 995 1030 1031 TRGL 671 672 673 TRGL 667 595 668 TRGL 872 874 950 TRGL 972 973 123 TRGL 595 667 596 TRGL 752 724 744 TRGL 1020 1001 1002 TRGL 596 664 597 TRGL 752 744 751 TRGL 663 665 662 TRGL 687 686 683 TRGL 343 344 342 TRGL 796 693 795 TRGL 663 664 665 TRGL 258 256 257 TRGL 728 729 726 TRGL 829 514 830 TRGL 597 663 598 TRGL 723 726 725 TRGL 1206 836 345 TRGL 598 660 599 TRGL 849 961 848 TRGL 660 598 663 TRGL 449 489 488 TRGL 32 33 31 TRGL 1124 1123 1122 TRGL 660 662 661 TRGL 659 661 658 TRGL 875 874 873 TRGL 1113 163 161 TRGL 221 223 456 TRGL 359 52 360 TRGL 652 655 654 TRGL 652 654 653 TRGL 1004 1131 266 TRGL 648 604 651 TRGL 764 765 770 TRGL 1048 1099 1100 TRGL 1076 1057 1055 TRGL 660 663 662 TRGL 647 648 649 TRGL 605 647 606 TRGL 608 640 609 TRGL 389 808 390 TRGL 640 608 643 TRGL 280 286 285 TRGL 640 642 641 TRGL 639 641 638 TRGL 639 640 641 TRGL 639 609 640 TRGL 610 636 611 TRGL 1293 1294 1266 TRGL 1137 1138 1139 TRGL 636 639 638 TRGL 1205 1204 1203 TRGL 635 636 637 TRGL 712 710 711 TRGL 632 634 633 TRGL 837 1206 1205 TRGL 631 633 630 TRGL 1182 1183 321 TRGL 628 631 630 TRGL 479 482 483 TRGL 932 895 896 TRGL 1138 1143 1142 TRGL 618 620 619 TRGL 232 434 231 TRGL 1086 1088 1087 TRGL 510 620 621 TRGL 317 316 315 TRGL 510 619 620 TRGL 1025 1023 1024 TRGL 516 618 619 TRGL 1069 1068 1067 TRGL 520 522 616 TRGL 522 524 615 TRGL 732 734 742 TRGL 858 957 958 TRGL 526 613 614 TRGL 729 730 731 TRGL 518 617 618 TRGL 225 227 454 TRGL 534 609 610 TRGL 958 964 959 TRGL 691 697 698 TRGL 536 608 609 TRGL 88 87 25 TRGL 538 607 608 TRGL 540 606 607 TRGL 553 554 552 TRGL 542 544 605 TRGL 9 10 8 TRGL 544 546 604 TRGL 338 340 386 TRGL 340 342 385 TRGL 24 21 28 TRGL 346 348 382 TRGL 552 554 600 TRGL 701 695 702 TRGL 563 564 562 TRGL 241 235 240 TRGL 554 556 599 TRGL 559 560 558 TRGL 696 701 700 TRGL 594 668 595 TRGL 556 558 598 TRGL 548 550 602 TRGL 1240 1244 1241 TRGL 335 336 334 TRGL 566 568 593 TRGL 35 736 36 TRGL 195 194 192 TRGL 643 644 645 TRGL 570 591 592 TRGL 570 572 591 TRGL 591 588 590 TRGL 533 534 532 TRGL 587 586 588 TRGL 795 794 792 TRGL 575 576 582 TRGL 807 557 555 TRGL 577 580 581 TRGL 577 578 579 TRGL 838 1207 1208 TRGL 1216 857 855 TRGL 588 586 589 TRGL 738 9 6 TRGL 620 622 621 TRGL 882 884 945 TRGL 853 852 851 TRGL 379 575 574 TRGL 571 573 572 TRGL 667 668 669 TRGL 571 570 569 TRGL 573 574 587 TRGL 569 570 568 TRGL 59 834 62 TRGL 567 568 566 TRGL 567 566 565 TRGL 798 687 682 TRGL 565 566 564 TRGL 623 617 624 TRGL 1056 1058 1095 TRGL 565 564 563 TRGL 557 556 555 TRGL 728 726 727 TRGL 315 314 313 TRGL 709 708 706 TRGL 627 629 626 TRGL 76 77 78 TRGL 894 890 891 TRGL 895 934 890 TRGL 726 723 727 TRGL 149 148 147 TRGL 551 552 550 TRGL 513 619 511 TRGL 643 645 642 TRGL 318 320 396 TRGL 293 294 292 TRGL 279 1133 1134 TRGL 545 544 543 TRGL 475 476 486 TRGL 620 623 622 TRGL 184 186 187 TRGL 543 544 542 TRGL 1107 151 149 TRGL 541 542 540 TRGL 539 540 538 TRGL 1153 1166 303 TRGL 537 538 536 TRGL 585 681 679 TRGL 537 536 535 TRGL 535 536 534 TRGL 109 108 107 TRGL 611 635 612 TRGL 529 530 528 TRGL 529 528 527 TRGL 37 41 42 TRGL 1244 1242 1241 TRGL 683 686 685 TRGL 1127 1129 1012 TRGL 517 518 516 TRGL 827 408 826 TRGL 515 516 513 TRGL 514 513 512 TRGL 221 456 457 TRGL 1140 293 291 TRGL 222 221 220 TRGL 28 21 19 TRGL 574 583 587 TRGL 1059 1058 1057 TRGL 1076 1031 1075 TRGL 628 630 629 TRGL 360 51 362 TRGL 505 509 506 TRGL 133 132 131 TRGL 583 584 585 TRGL 623 624 625 TRGL 498 501 508 TRGL 1063 1064 1062 TRGL 527 526 525 TRGL 671 593 672 TRGL 305 304 303 TRGL 806 805 559 TRGL 1227 1236 1235 TRGL 503 505 506 TRGL 631 632 633 TRGL 358 55 53 TRGL 759 776 707 TRGL 25 89 23 TRGL 504 503 502 TRGL 502 501 500 TRGL 1225 1209 1208 TRGL 125 126 124 TRGL 732 742 743 TRGL 320 395 396 TRGL 499 498 496 TRGL 64 838 839 TRGL 1186 325 323 TRGL 719 754 755 TRGL 706 705 695 TRGL 426 494 427 TRGL 367 371 368 TRGL 442 427 494 TRGL 728 788 778 TRGL 1148 1146 1145 TRGL 554 599 600 TRGL 589 677 590 TRGL 530 611 612 TRGL 532 534 610 TRGL 490 449 448 TRGL 222 223 221 TRGL 449 490 489 TRGL 206 205 204 TRGL 963 959 964 TRGL 1071 1084 1085 TRGL 30 17 32 TRGL 582 583 574 TRGL 476 485 486 TRGL 308 401 402 TRGL 1124 1125 1123 TRGL 479 480 482 TRGL 480 481 482 TRGL 692 696 691 TRGL 742 741 746 TRGL 480 451 481 TRGL 512 511 504 TRGL 716 715 714 TRGL 1253 1258 1257 TRGL 175 179 174 TRGL 1062 1092 1093 TRGL 686 699 685 TRGL 453 480 479 TRGL 1132 919 917 TRGL 453 479 454 TRGL 360 361 357 TRGL 647 649 646 TRGL 455 478 477 TRGL 1236 1238 1239 TRGL 455 477 456 TRGL 546 603 604 TRGL 1231 859 857 TRGL 457 475 458 TRGL 258 260 259 TRGL 505 510 509 TRGL 237 233 230 TRGL 467 458 475 TRGL 462 463 194 TRGL 1144 1149 1148 TRGL 747 1 748 TRGL 190 473 189 TRGL 972 950 973 TRGL 460 466 465 TRGL 946 977 976 TRGL 190 193 473 TRGL 1287 881 879 TRGL 193 472 473 TRGL 193 463 472 TRGL 163 164 162 TRGL 599 659 600 TRGL 463 464 471 TRGL 317 318 316 TRGL 1113 1114 163 TRGL 457 476 475 TRGL 501 503 507 TRGL 954 968 955 TRGL 636 638 637 TRGL 466 467 468 TRGL 459 466 460 TRGL 682 681 585 TRGL 461 460 465 TRGL 461 464 462 TRGL 215 461 462 TRGL 212 216 213 TRGL 923 993 924 TRGL 902 1158 1157 TRGL 215 216 461 TRGL 413 415 414 TRGL 941 937 940 TRGL 219 221 457 TRGL 1154 1152 1151 TRGL 266 264 265 TRGL 517 516 515 TRGL 381 380 800 TRGL 435 450 451 TRGL 436 449 450 TRGL 33 32 34 TRGL 447 446 492 TRGL 59 58 834 TRGL 448 491 490 TRGL 1092 1115 1114 TRGL 436 448 449 TRGL 447 438 446 TRGL 935 983 936 TRGL 1264 1265 1258 TRGL 438 445 446 TRGL 157 158 156 TRGL 438 439 445 TRGL 624 627 626 TRGL 10 1302 1303 TRGL 307 306 305 TRGL 32 17 15 TRGL 282 281 259 TRGL 428 427 441 TRGL 70 57 60 TRGL 428 441 429 TRGL 276 1133 277 TRGL 429 441 440 TRGL 430 440 439 TRGL 218 219 458 TRGL 207 210 211 TRGL 432 431 437 TRGL 433 432 437 TRGL 151 152 150 TRGL 668 594 671 TRGL 974 127 125 TRGL 232 433 434 TRGL 1270 871 869 TRGL 432 234 242 TRGL 430 242 243 TRGL 243 429 430 TRGL 404 823 405 TRGL 466 469 465 TRGL 1191 1192 1190 TRGL 429 243 245 TRGL 127 126 125 TRGL 1135 1140 291 TRGL 555 556 554 TRGL 424 428 247 TRGL 84 83 85 TRGL 337 338 336 TRGL 1165 307 305 TRGL 424 426 427 TRGL 309 308 307 TRGL 424 425 426 TRGL 207 208 209 TRGL 1134 289 287 TRGL 534 536 609 TRGL 227 453 454 TRGL 423 424 247 TRGL 1273 1274 875 TRGL 456 477 476 TRGL 1016 208 206 TRGL 647 605 648 TRGL 1247 1249 1251 TRGL 805 561 559 TRGL 458 467 459 TRGL 421 422 423 TRGL 989 1036 1037 TRGL 421 420 419 TRGL 635 611 636 TRGL 245 247 428 TRGL 302 404 405 TRGL 200 214 197 TRGL 324 326 393 TRGL 733 734 732 TRGL 523 524 522 TRGL 878 947 948 TRGL 737 11 738 TRGL 87 92 89 TRGL 278 279 280 TRGL 548 602 603 TRGL 207 209 210 TRGL 451 487 481 TRGL 295 296 294 TRGL 311 312 310 TRGL 1081 1036 1080 TRGL 781 785 784 TRGL 838 1208 839 TRGL 206 207 205 TRGL 962 963 103 TRGL 702 695 705 TRGL 531 530 529 TRGL 300 302 405 TRGL 870 872 951 TRGL 57 55 58 TRGL 236 239 235 TRGL 746 748 749 TRGL 192 194 193 TRGL 278 280 281 TRGL 441 427 442 TRGL 303 304 302 TRGL 1220 1218 1221 TRGL 580 793 798 TRGL 1116 222 220 TRGL 435 451 452 TRGL 283 284 255 TRGL 88 84 87 TRGL 819 533 531 TRGL 532 610 611 TRGL 549 550 548 TRGL 614 628 615 TRGL 332 389 390 TRGL 36 38 37 TRGL 1223 1199 1197 TRGL 187 189 188 TRGL 75 44 45 TRGL 255 420 254 TRGL 564 594 595 TRGL 81 68 82 TRGL 840 1209 1210 TRGL 740 739 747 TRGL 42 44 43 TRGL 978 939 979 TRGL 173 175 174 TRGL 1209 1212 1210 TRGL 1242 1244 1243 TRGL 296 407 408 TRGL 815 396 814 TRGL 65 66 60 TRGL 965 966 109 TRGL 354 369 377 TRGL 282 259 260 TRGL 1288 883 881 TRGL 847 962 101 TRGL 203 213 214 TRGL 165 164 163 TRGL 195 196 194 TRGL 790 711 797 TRGL 636 610 639 TRGL 526 528 613 TRGL 984 1040 1041 TRGL 1203 1202 1201 TRGL 914 916 926 TRGL 159 160 158 TRGL 467 475 474 TRGL 820 531 529 TRGL 644 606 647 TRGL 1198 337 335 TRGL 231 435 452 TRGL 801 800 569 TRGL 228 227 226 TRGL 331 330 329 TRGL 153 152 151 TRGL 324 393 394 TRGL 204 205 203 TRGL 1014 1117 1116 TRGL 415 412 416 TRGL 644 646 645 TRGL 361 362 366 TRGL 723 724 722 TRGL 408 827 409 TRGL 477 478 484 TRGL 147 148 146 TRGL 1254 1243 1244 TRGL 1106 1107 149 TRGL 792 794 793 TRGL 624 616 627 TRGL 1081 1080 1047 TRGL 1192 1194 331 TRGL 268 271 272 TRGL 992 993 1033 TRGL 524 526 614 TRGL 55 57 56 TRGL 291 292 290 TRGL 557 558 556 TRGL 1057 1058 1056 TRGL 547 546 545 TRGL 981 979 939 TRGL 37 38 41 TRGL 143 144 142 TRGL 143 142 141 TRGL 267 268 264 TRGL 101 102 100 TRGL 749 769 768 TRGL 713 757 758 TRGL 505 511 510 TRGL 97 98 96 TRGL 545 546 544 TRGL 448 436 447 TRGL 136 135 137 TRGL 968 115 113 TRGL 105 104 103 TRGL 516 518 618 TRGL 758 757 760 TRGL 182 183 181 TRGL 1004 1007 1006 TRGL 273 278 282 TRGL 72 81 80 TRGL 135 134 133 TRGL 892 891 886 TRGL 95 1295 91 TRGL 198 1024 199 TRGL 196 215 462 TRGL 793 688 687 TRGL 131 130 129 TRGL 415 416 417 TRGL 129 130 128 TRGL 71 72 73 TRGL 1002 1019 1020 TRGL 619 510 511 TRGL 1032 1077 1033 TRGL 196 462 194 TRGL 1229 1235 1234 TRGL 288 411 412 TRGL 38 39 40 TRGL 781 372 780 TRGL 814 395 813 TRGL 127 128 126 TRGL 836 347 345 TRGL 735 740 741 TRGL 1231 1232 859 TRGL 583 585 586 TRGL 615 627 616 TRGL 857 856 855 TRGL 672 675 674 TRGL 121 122 120 TRGL 223 455 456 TRGL 211 218 217 TRGL 584 682 585 TRGL 1043 1042 1041 TRGL 1094 1112 1095 TRGL 117 118 116 TRGL 583 582 584 TRGL 1245 1253 1254 TRGL 178 175 177 TRGL 229 452 453 TRGL 38 36 39 TRGL 414 418 419 TRGL 561 560 559 TRGL 252 1125 257 TRGL 123 124 122 TRGL 103 104 102 TRGL 558 597 598 TRGL 115 114 113 TRGL 789 786 714 TRGL 895 932 933 TRGL 339 340 338 TRGL 21 23 22 TRGL 528 530 612 TRGL 119 118 117 TRGL 375 576 575 TRGL 528 612 613 TRGL 609 639 610 TRGL 982 1103 981 TRGL 113 114 112 TRGL 659 599 660 TRGL 159 158 157 TRGL 1110 1111 157 TRGL 838 1205 1207 TRGL 735 741 734 TRGL 1211 1213 851 TRGL 253 256 255 TRGL 1100 1106 1101 TRGL 34 15 13 TRGL 263 273 282 TRGL 113 112 111 TRGL 847 101 99 TRGL 283 255 256 TRGL 336 387 388 TRGL 892 1288 1283 TRGL 94 96 95 TRGL 151 150 149 TRGL 1130 1120 1118 TRGL 374 576 375 TRGL 842 1211 850 TRGL 92 94 91 TRGL 763 764 771 TRGL 72 71 69 TRGL 1172 898 1173 TRGL 339 338 337 TRGL 627 628 629 TRGL 720 719 718 TRGL 448 447 492 TRGL 41 38 40 TRGL 393 812 394 TRGL 344 383 384 TRGL 260 258 261 TRGL 377 369 376 TRGL 889 934 935 TRGL 1086 1089 1088 TRGL 970 119 117 TRGL 184 187 188 TRGL 825 406 824 TRGL 62 835 63 TRGL 1293 1291 1292 TRGL 1142 1140 1139 TRGL 192 190 191 TRGL 778 365 364 TRGL 933 986 985 TRGL 573 587 572 TRGL 229 231 452 TRGL 263 282 260 TRGL 78 27 29 TRGL 94 95 91 TRGL 450 449 488 TRGL 92 93 94 TRGL 1158 1159 1160 TRGL 103 102 101 TRGL 842 850 843 TRGL 52 48 51 TRGL 579 791 792 TRGL 92 86 93 TRGL 199 200 197 TRGL 41 45 42 TRGL 4 2 1 TRGL 115 116 114 TRGL 921 922 923 TRGL 86 92 87 TRGL 89 92 91 TRGL 527 528 526 TRGL 519 518 517 TRGL 42 43 37 TRGL 860 862 956 TRGL 1121 228 226 TRGL 216 217 460 TRGL 6 5 4 TRGL 262 264 263 TRGL 904 931 932 TRGL 89 25 87 TRGL 125 124 123 TRGL 587 583 586 TRGL 180 178 181 TRGL 758 759 708 TRGL 624 626 625 TRGL 79 88 26 TRGL 511 505 504 TRGL 351 377 350 TRGL 230 231 229 TRGL 84 86 87 TRGL 538 540 607 TRGL 1207 1225 1208 TRGL 454 478 455 TRGL 1 2 3 TRGL 944 135 133 TRGL 251 250 240 TRGL 964 965 107 TRGL 83 84 80 TRGL 379 573 380 TRGL 904 906 931 TRGL 246 250 249 TRGL 919 918 917 TRGL 167 168 166 TRGL 314 398 399 TRGL 133 134 132 TRGL 321 320 319 TRGL 266 1007 1004 TRGL 99 100 98 TRGL 53 54 47 TRGL 117 116 115 TRGL 4 5 2 TRGL 6 8 7 TRGL 12 1301 1302 TRGL 72 80 79 TRGL 1141 1146 295 TRGL 77 79 26 TRGL 362 51 363 TRGL 960 962 961 TRGL 1290 1181 1179 TRGL 1155 1153 1154 TRGL 161 162 160 TRGL 199 197 198 TRGL 54 74 75 TRGL 268 272 264 TRGL 77 27 78 TRGL 338 386 387 TRGL 233 234 232 TRGL 78 29 43 TRGL 321 322 320 TRGL 1101 1105 1102 TRGL 61 65 60 TRGL 440 443 444 TRGL 74 76 75 TRGL 356 357 355 TRGL 75 76 44 TRGL 285 413 284 TRGL 887 891 890 TRGL 496 495 426 TRGL 1003 1017 1018 TRGL 1267 1276 1272 TRGL 749 748 769 TRGL 208 207 206 TRGL 551 550 549 TRGL 1273 875 873 TRGL 808 807 555 TRGL 990 1035 1036 TRGL 74 56 71 TRGL 1022 1023 1025 TRGL 668 671 670 TRGL 44 78 43 TRGL 434 435 231 TRGL 236 233 237 TRGL 139 140 138 TRGL 88 25 26 TRGL 803 565 563 TRGL 296 298 407 TRGL 70 71 56 TRGL 1122 238 1120 TRGL 191 190 187 TRGL 834 356 353 TRGL 1249 1250 1251 TRGL 235 239 240 TRGL 560 562 596 TRGL 500 498 499 TRGL 57 70 56 TRGL 36 37 33 TRGL 149 150 148 TRGL 238 237 1121 TRGL 60 66 70 TRGL 1242 1243 863 TRGL 316 397 398 TRGL 220 219 210 TRGL 355 368 354 TRGL 928 989 988 TRGL 182 181 178 TRGL 377 376 378 TRGL 203 205 213 TRGL 334 336 388 TRGL 1086 1087 1068 TRGL 107 108 106 TRGL 66 65 67 TRGL 1261 1187 1185 TRGL 77 26 27 TRGL 521 522 520 TRGL 559 558 557 TRGL 293 292 291 TRGL 66 67 68 TRGL 111 110 109 TRGL 1020 1022 1021 TRGL 464 465 470 TRGL 720 721 719 TRGL 667 669 666 TRGL 85 845 86 TRGL 1219 1230 1217 TRGL 219 457 458 TRGL 461 465 464 TRGL 81 83 80 TRGL 294 408 409 TRGL 1173 1281 1174 TRGL 61 62 63 TRGL 36 33 35 TRGL 433 436 434 TRGL 467 474 468 TRGL 48 46 49 TRGL 1028 1027 1073 TRGL 1199 1200 1198 TRGL 74 73 76 TRGL 59 61 60 TRGL 93 846 97 TRGL 155 156 154 TRGL 1216 1231 857 TRGL 723 722 720 TRGL 804 803 563 TRGL 1276 1277 1275 TRGL 121 120 119 TRGL 690 689 688 TRGL 978 979 139 TRGL 651 603 652 TRGL 348 350 381 TRGL 46 47 45 TRGL 1052 1097 1098 TRGL 299 300 298 TRGL 1193 1192 1191 TRGL 414 419 420 TRGL 1239 1234 1235 TRGL 51 48 50 TRGL 254 248 249 TRGL 952 970 953 TRGL 262 263 260 TRGL 465 469 470 TRGL 739 738 4 TRGL 1278 1276 1294 TRGL 155 154 153 TRGL 1179 1180 1178 TRGL 664 596 667 TRGL 587 588 572 TRGL 996 995 922 TRGL 1112 1113 161 TRGL 576 577 581 TRGL 325 324 323 TRGL 264 262 265 TRGL 432 242 431 TRGL 258 257 1126 TRGL 540 542 606 TRGL 73 79 77 TRGL 440 441 443 TRGL 301 302 300 TRGL 988 1037 1038 TRGL 731 732 725 TRGL 801 382 800 TRGL 1170 1176 1177 TRGL 689 691 698 TRGL 830 831 417 TRGL 747 748 746 TRGL 963 964 105 TRGL 1029 1074 1030 TRGL 664 666 665 TRGL 681 684 680 TRGL 844 848 845 TRGL 1229 1233 1230 TRGL 17 18 16 TRGL 20 1297 1298 TRGL 291 290 289 TRGL 868 952 953 TRGL 46 48 47 TRGL 1174 1280 1279 TRGL 927 990 989 TRGL 297 298 296 TRGL 1207 1224 1225 TRGL 543 542 541 TRGL 42 45 44 TRGL 1061 1062 1060 TRGL 949 973 950 TRGL 659 660 661 TRGL 61 64 65 TRGL 342 384 385 TRGL 61 63 64 TRGL 345 344 343 TRGL 310 312 400 TRGL 518 520 617 TRGL 197 195 198 TRGL 69 81 72 TRGL 14 13 15 TRGL 651 653 650 TRGL 1052 1054 1097 TRGL 145 144 143 TRGL 979 981 980 TRGL 35 34 737 TRGL 169 170 168 TRGL 602 652 603 TRGL 267 264 266 TRGL 209 220 210 TRGL 364 728 778 TRGL 35 33 34 TRGL 542 605 606 TRGL 813 394 812 TRGL 869 870 868 TRGL 194 463 193 TRGL 31 30 32 TRGL 325 326 324 TRGL 195 197 196 TRGL 111 112 110 TRGL 187 190 189 TRGL 370 373 374 TRGL 313 312 311 TRGL 718 787 788 TRGL 382 801 383 TRGL 851 849 850 TRGL 1122 1123 239 TRGL 1287 1283 1288 TRGL 450 488 487 TRGL 13 14 12 TRGL 218 458 459 TRGL 9 8 6 TRGL 736 737 740 TRGL 796 694 693 TRGL 1105 1101 1106 TRGL 173 174 172 TRGL 731 725 726 TRGL 109 110 108 TRGL 375 575 376 TRGL 302 304 404 TRGL 171 172 170 TRGL 24 26 25 TRGL 563 562 561 TRGL 19 20 18 TRGL 1224 1201 1222 TRGL 315 316 314 TRGL 214 196 197 TRGL 1070 1085 1086 TRGL 564 566 594 TRGL 466 468 469 TRGL 173 172 171 TRGL 797 711 796 TRGL 1045 1044 1043 TRGL 306 402 403 TRGL 337 336 335 TRGL 560 596 597 TRGL 921 270 922 TRGL 691 696 697 TRGL 24 25 23 TRGL 420 421 254 TRGL 202 200 201 TRGL 1167 315 313 TRGL 244 243 241 TRGL 214 215 196 TRGL 555 554 553 TRGL 883 885 884 TRGL 198 195 1083 TRGL 16 15 17 TRGL 353 354 351 TRGL 431 438 437 TRGL 578 577 374 TRGL 1212 1211 1210 TRGL 715 756 757 TRGL 984 1039 1040 TRGL 979 141 139 TRGL 861 860 859 TRGL 107 106 105 TRGL 12 11 13 TRGL 89 91 90 TRGL 466 459 467 TRGL 252 250 251 TRGL 780 366 365 TRGL 547 548 546 TRGL 11 12 10 TRGL 1040 1043 1041 TRGL 1087 1066 1068 TRGL 216 460 461 TRGL 1081 1047 1045 TRGL 712 713 710 TRGL 1054 1096 1097 TRGL 74 71 73 TRGL 828 827 515 TRGL 679 681 680 TRGL 977 133 131 TRGL 59 57 58 TRGL 6 7 5 TRGL 246 249 248 TRGL 374 577 576 TRGL 761 773 774 TRGL 721 722 753 TRGL 579 792 580 TRGL 357 361 367 TRGL 213 216 215 TRGL 308 310 401 TRGL 1126 1125 1124 TRGL 341 340 339 TRGL 1231 1233 1232 TRGL 430 439 431 TRGL 212 217 216 TRGL 211 217 212 TRGL 439 440 444 TRGL 503 506 507 TRGL 1168 1164 1163 TRGL 210 218 211 TRGL 870 951 952 TRGL 210 219 218 TRGL 975 947 976 TRGL 39 734 733 TRGL 1067 1066 1065 TRGL 220 221 219 TRGL 251 240 239 TRGL 253 249 252 TRGL 744 750 751 TRGL 569 568 567 TRGL 585 679 586 TRGL 224 223 222 TRGL 1029 1073 1074 TRGL 371 372 373 TRGL 274 272 271 TRGL 310 400 401 TRGL 370 374 375 TRGL 281 285 283 TRGL 352 351 349 TRGL 913 914 912 TRGL 655 656 657 TRGL 819 400 818 TRGL 520 616 617 TRGL 82 841 842 TRGL 523 522 521 TRGL 1210 842 841 TRGL 1226 1221 1218 TRGL 347 348 346 TRGL 477 484 485 TRGL 632 635 634 TRGL 435 436 450 TRGL 864 866 954 TRGL 416 830 417 TRGL 424 423 425 TRGL 1164 313 311 TRGL 1227 1197 1195 TRGL 241 242 234 TRGL 675 590 676 TRGL 1262 1185 1184 TRGL 202 203 200 TRGL 448 492 491 TRGL 241 243 242 TRGL 274 277 273 TRGL 319 318 317 TRGL 826 519 517 TRGL 664 667 666 TRGL 656 600 659 TRGL 378 379 380 TRGL 244 245 243 TRGL 360 362 361 TRGL 242 430 431 TRGL 250 246 244 TRGL 503 504 505 TRGL 262 261 1128 TRGL 240 250 244 TRGL 228 229 227 TRGL 331 332 330 TRGL 1287 1288 881 TRGL 239 236 238 TRGL 1005 1017 1003 TRGL 252 249 250 TRGL 957 965 958 TRGL 223 225 455 TRGL 66 68 69 TRGL 18 17 19 TRGL 217 459 460 TRGL 246 245 244 TRGL 893 891 892 TRGL 282 278 281 TRGL 943 942 940 TRGL 1223 1227 1228 TRGL 272 263 264 TRGL 745 749 750 TRGL 368 355 367 TRGL 318 396 397 TRGL 377 378 350 TRGL 558 560 597 TRGL 496 497 495 TRGL 46 45 41 TRGL 421 419 422 TRGL 711 710 709 TRGL 759 760 775 TRGL 268 267 269 TRGL 437 447 436 TRGL 298 300 406 TRGL 235 241 234 TRGL 1040 1082 1043 TRGL 717 719 755 TRGL 99 98 97 TRGL 398 817 399 TRGL 349 348 347 TRGL 839 67 65 TRGL 757 761 760 TRGL 268 270 271 TRGL 233 236 235 TRGL 348 381 382 TRGL 309 310 308 TRGL 521 520 519 TRGL 644 647 646 TRGL 265 1128 1008 TRGL 813 812 545 TRGL 1169 1171 1170 TRGL 272 274 273 TRGL 253 254 249 TRGL 1151 1147 1148 TRGL 1265 1268 1269 TRGL 701 696 695 TRGL 402 821 403 TRGL 541 540 539 TRGL 951 971 952 TRGL 441 442 443 TRGL 878 880 947 TRGL 863 864 862 TRGL 306 308 402 TRGL 1124 1130 1129 TRGL 345 346 344 TRGL 200 203 214 TRGL 935 985 984 TRGL 603 651 604 TRGL 15 16 14 TRGL 259 281 283 TRGL 850 844 843 TRGL 1227 1235 1228 TRGL 259 283 256 TRGL 1219 1228 1229 TRGL 710 758 708 TRGL 572 588 591 TRGL 356 355 353 TRGL 452 480 453 TRGL 47 75 45 TRGL 157 156 155 TRGL 287 286 280 TRGL 89 90 23 TRGL 601 655 602 TRGL 883 882 881 TRGL 553 552 551 TRGL 803 384 802 TRGL 496 498 497 TRGL 426 495 494 TRGL 11 737 13 TRGL 295 294 293 TRGL 301 300 299 TRGL 931 986 933 TRGL 1193 1194 1192 TRGL 747 739 1 TRGL 663 597 664 TRGL 655 601 656 TRGL 1076 1075 1057 TRGL 217 218 459 TRGL 1242 863 861 TRGL 303 302 301 TRGL 305 306 304 TRGL 385 804 386 TRGL 643 607 644 TRGL 161 160 159 TRGL 287 288 286 TRGL 1162 311 309 TRGL 330 332 390 TRGL 307 308 306 TRGL 1082 1081 1045 TRGL 284 414 420 TRGL 358 356 58 TRGL 319 320 318 TRGL 298 406 407 TRGL 390 809 391 TRGL 323 324 322 TRGL 1132 1136 1133 TRGL 290 292 410 TRGL 955 967 956 TRGL 72 79 73 TRGL 333 334 332 TRGL 1014 1116 1015 TRGL 131 132 130 TRGL 335 334 333 TRGL 368 369 354 TRGL 341 342 340 TRGL 894 895 890 TRGL 55 54 53 TRGL 961 847 848 TRGL 347 346 345 TRGL 525 524 523 TRGL 1005 1016 1017 TRGL 462 464 463 TRGL 1000 1002 1001 TRGL 246 248 247 TRGL 205 212 213 TRGL 744 745 750 TRGL 1003 1018 1002 TRGL 692 695 696 TRGL 369 370 375 TRGL 349 351 350 TRGL 1147 1152 299 TRGL 353 351 352 TRGL 312 399 400 TRGL 868 870 952 TRGL 967 968 113 TRGL 656 659 658 TRGL 353 355 354 TRGL 1007 1009 1006 TRGL 562 564 595 TRGL 681 683 684 TRGL 1195 1194 1193 TRGL 415 417 418 TRGL 55 358 58 TRGL 879 880 878 TRGL 604 648 605 TRGL 1033 1078 1034 TRGL 512 513 511 TRGL 276 919 1132 TRGL 536 538 608 TRGL 304 306 403 TRGL 1176 1290 1179 TRGL 320 322 395 TRGL 627 615 628 TRGL 292 294 409 TRGL 876 948 949 TRGL 759 775 776 TRGL 515 513 514 TRGL 53 52 359 TRGL 360 357 359 TRGL 848 846 845 TRGL 447 437 438 TRGL 863 862 861 TRGL 361 366 367 TRGL 362 365 366 TRGL 292 409 410 TRGL 672 674 673 TRGL 413 414 284 TRGL 368 370 369 TRGL 991 992 1034 TRGL 549 548 547 TRGL 968 954 969 TRGL 97 96 94 TRGL 371 373 370 TRGL 600 656 601 TRGL 248 421 423 TRGL 351 354 377 TRGL 1062 1064 1092 TRGL 24 23 21 TRGL 378 376 379 TRGL 381 378 380 TRGL 379 574 573 TRGL 656 658 657 TRGL 778 788 787 TRGL 286 412 413 TRGL 357 367 355 TRGL 88 79 80 TRGL 1251 1260 1259 TRGL 59 60 57 TRGL 852 960 961 TRGL 346 382 383 TRGL 632 612 635 TRGL 225 454 455 TRGL 328 391 392 TRGL 874 949 950 TRGL 238 236 237 TRGL 717 755 756 TRGL 340 385 386 TRGL 205 207 212 TRGL 1278 1277 1276 TRGL 1133 279 277 TRGL 429 440 430 TRGL 362 364 365 TRGL 811 392 810 TRGL 911 910 909 TRGL 924 992 925 TRGL 336 338 387 TRGL 48 49 50 TRGL 278 277 279 TRGL 733 732 731 TRGL 434 436 435 TRGL 963 105 103 TRGL 251 1123 1125 TRGL 332 334 389 TRGL 123 122 121 TRGL 417 832 418 TRGL 692 693 694 TRGL 1152 1153 301 TRGL 334 388 389 TRGL 328 330 391 TRGL 652 602 655 TRGL 326 328 392 TRGL 322 324 394 TRGL 993 1032 1033 TRGL 312 314 399 TRGL 753 752 765 TRGL 696 700 697 TRGL 556 598 599 TRGL 290 410 411 TRGL 826 825 519 TRGL 648 650 649 TRGL 21 22 20 TRGL 533 532 531 TRGL 941 885 888 TRGL 288 290 411 TRGL 285 286 413 TRGL 412 415 413 TRGL 350 378 381 TRGL 233 235 234 TRGL 414 415 418 TRGL 790 784 789 TRGL 938 981 939 TRGL 67 841 68 TRGL 255 284 420 TRGL 756 761 757 TRGL 272 273 263 TRGL 266 265 1007 TRGL 756 762 761 TRGL 755 762 756 TRGL 175 178 179 TRGL 1245 1254 1244 TRGL 755 763 762 TRGL 754 764 763 TRGL 655 657 654 TRGL 1218 1220 1219 TRGL 711 709 796 TRGL 753 764 754 TRGL 1158 902 900 TRGL 753 765 764 TRGL 425 499 496 TRGL 752 751 765 TRGL 751 767 766 TRGL 901 904 932 TRGL 80 84 88 TRGL 1051 1052 1050 TRGL 995 997 1030 TRGL 750 768 767 TRGL 749 768 750 TRGL 748 3 769 TRGL 1016 206 204 TRGL 748 1 3 TRGL 607 643 608 TRGL 690 794 693 TRGL 1160 1161 1157 TRGL 765 766 770 TRGL 763 771 772 TRGL 1021 1022 1026 TRGL 762 763 772 TRGL 613 631 614 TRGL 762 772 773 TRGL 416 829 830 TRGL 974 948 975 TRGL 531 532 530 TRGL 1070 1086 1068 TRGL 761 762 773 TRGL 376 575 379 TRGL 760 761 774 TRGL 760 774 775 TRGL 1265 1267 1268 TRGL 708 759 707 TRGL 707 776 777 TRGL 707 777 705 TRGL 705 777 704 TRGL 738 6 4 TRGL 535 534 533 TRGL 9 738 11 TRGL 40 39 733 TRGL 730 40 733 TRGL 49 40 730 TRGL 1037 1082 1038 TRGL 1175 1170 1171 TRGL 1261 1262 1263 TRGL 46 41 49 TRGL 49 730 50 TRGL 730 733 731 TRGL 51 50 363 TRGL 593 671 594 TRGL 364 363 728 TRGL 233 232 230 TRGL 365 778 779 TRGL 780 365 779 TRGL 1196 1198 335 TRGL 1149 1151 1148 TRGL 366 780 372 TRGL 372 781 373 TRGL 782 373 781 TRGL 286 288 412 TRGL 373 782 578 TRGL 373 578 374 TRGL 1255 867 865 TRGL 782 783 578 TRGL 1105 147 145 TRGL 439 444 445 TRGL 782 784 783 TRGL 782 781 784 TRGL 781 780 785 TRGL 253 255 254 TRGL 926 990 927 TRGL 780 779 785 TRGL 887 889 888 TRGL 617 623 618 TRGL 1208 840 839 TRGL 779 786 785 TRGL 779 787 786 TRGL 778 787 779 TRGL 728 727 788 TRGL 502 503 501 TRGL 827 517 515 TRGL 788 727 720 TRGL 787 718 716 TRGL 714 713 712 TRGL 925 991 926 TRGL 716 786 787 TRGL 786 716 714 TRGL 785 786 789 TRGL 880 882 946 TRGL 784 790 783 TRGL 525 526 524 TRGL 791 783 790 TRGL 1050 1052 1098 TRGL 783 791 579 TRGL 843 85 83 TRGL 901 900 902 TRGL 901 932 896 TRGL 577 579 580 TRGL 163 162 161 TRGL 1041 982 983 TRGL 783 579 578 TRGL 792 793 580 TRGL 753 722 752 TRGL 694 796 709 TRGL 694 709 706 TRGL 1281 1283 1284 TRGL 694 706 695 TRGL 790 712 711 TRGL 790 789 712 TRGL 790 797 791 TRGL 797 795 791 TRGL 797 796 795 TRGL 16 1300 14 TRGL 725 732 743 TRGL 794 690 688 TRGL 44 76 78 TRGL 1250 1261 1260 TRGL 1260 1264 1259 TRGL 1283 1287 1284 TRGL 793 794 688 TRGL 501 507 508 TRGL 798 793 687 TRGL 946 976 947 TRGL 1161 309 307 TRGL 616 624 617 TRGL 580 798 581 TRGL 581 584 582 TRGL 822 527 525 TRGL 584 798 682 TRGL 1286 1287 879 TRGL 687 683 682 TRGL 52 51 360 TRGL 727 723 720 TRGL 1043 1044 1042 TRGL 701 799 700 TRGL 894 896 895 TRGL 586 679 589 TRGL 800 380 571 TRGL 380 573 571 TRGL 620 618 623 TRGL 941 942 884 TRGL 884 942 945 TRGL 381 800 382 TRGL 1138 1142 1139 TRGL 383 802 384 TRGL 872 950 951 TRGL 384 803 385 TRGL 14 1301 12 TRGL 804 385 803 TRGL 805 386 804 TRGL 386 805 387 TRGL 297 296 295 TRGL 806 387 805 TRGL 387 806 388 TRGL 916 925 926 TRGL 566 593 594 TRGL 874 876 949 TRGL 922 995 994 TRGL 1136 1134 1133 TRGL 807 388 806 TRGL 388 807 389 TRGL 909 908 907 TRGL 808 389 807 TRGL 809 390 808 TRGL 77 76 73 TRGL 909 910 908 TRGL 391 810 392 TRGL 1199 1198 1197 TRGL 392 811 393 TRGL 407 826 408 TRGL 1222 1199 1223 TRGL 237 230 228 TRGL 812 393 811 TRGL 394 813 395 TRGL 395 814 396 TRGL 396 815 397 TRGL 1056 1095 1096 TRGL 816 397 815 TRGL 1010 1015 208 TRGL 915 916 914 TRGL 1291 1290 1292 TRGL 397 816 398 TRGL 299 298 297 TRGL 268 269 270 TRGL 817 398 816 TRGL 1224 1221 1225 TRGL 818 399 817 TRGL 399 818 400 TRGL 400 819 401 TRGL 401 820 402 TRGL 821 402 820 TRGL 714 715 713 TRGL 918 920 924 TRGL 145 146 144 TRGL 1255 1257 1256 TRGL 971 121 119 TRGL 171 170 169 TRGL 1248 1249 1247 TRGL 403 822 404 TRGL 823 404 822 TRGL 405 824 406 TRGL 362 363 364 TRGL 406 825 407 TRGL 826 407 825 TRGL 788 720 718 TRGL 828 409 827 TRGL 894 897 896 TRGL 248 423 247 TRGL 409 828 410 TRGL 513 516 619 TRGL 410 828 829 TRGL 410 829 411 TRGL 411 829 416 TRGL 693 692 690 TRGL 411 416 412 TRGL 1250 1189 1187 TRGL 845 93 86 TRGL 830 512 831 TRGL 230 232 231 TRGL 1245 1252 1253 TRGL 1211 851 850 TRGL 829 828 514 TRGL 1019 201 1023 TRGL 970 952 971 TRGL 827 826 517 TRGL 1119 1121 226 TRGL 824 523 521 TRGL 791 795 792 TRGL 824 823 523 TRGL 823 525 523 TRGL 920 921 923 TRGL 823 822 525 TRGL 1000 1003 1002 TRGL 71 70 69 TRGL 1080 1035 1079 TRGL 821 529 527 TRGL 825 521 519 TRGL 820 819 531 TRGL 201 200 199 TRGL 818 535 533 TRGL 1080 1079 1049 TRGL 818 817 535 TRGL 817 537 535 TRGL 817 816 537 TRGL 422 499 425 TRGL 294 296 408 TRGL 1227 1195 1236 TRGL 1086 1085 1089 TRGL 815 814 541 TRGL 785 789 784 TRGL 814 543 541 TRGL 813 545 543 TRGL 812 547 545 TRGL 812 811 547 TRGL 424 427 428 TRGL 811 549 547 TRGL 20 1298 18 TRGL 811 810 549 TRGL 810 551 549 TRGL 1093 1113 1094 TRGL 681 682 683 TRGL 809 553 551 TRGL 327 328 326 TRGL 865 866 864 TRGL 1243 865 863 TRGL 808 555 553 TRGL 1165 1157 1161 TRGL 807 806 557 TRGL 806 559 557 TRGL 805 804 561 TRGL 276 275 919 TRGL 1162 1164 311 TRGL 612 632 613 TRGL 804 563 561 TRGL 802 567 565 TRGL 1042 1102 1103 TRGL 802 801 567 TRGL 801 569 567 TRGL 831 512 504 TRGL 831 504 502 TRGL 832 831 502 TRGL 452 451 480 TRGL 1002 1018 1019 TRGL 905 1155 1154 TRGL 431 439 438 TRGL 828 515 514 TRGL 1162 1163 1164 TRGL 1004 1006 1005 TRGL 832 417 831 TRGL 833 418 832 TRGL 418 833 419 TRGL 422 419 833 TRGL 422 833 499 TRGL 425 496 426 TRGL 833 500 499 TRGL 833 832 500 TRGL 514 512 830 TRGL 359 357 358 TRGL 277 278 273 TRGL 356 834 58 TRGL 834 353 352 TRGL 591 675 592 TRGL 814 813 543 TRGL 62 352 835 TRGL 1189 1249 1248 TRGL 63 835 836 TRGL 64 63 837 TRGL 274 275 276 TRGL 64 837 838 TRGL 1191 1190 1189 TRGL 64 839 65 TRGL 764 770 771 TRGL 67 840 841 TRGL 841 82 68 TRGL 840 1208 1209 TRGL 82 842 843 TRGL 1218 1217 1214 TRGL 959 963 960 TRGL 256 253 257 TRGL 1165 1161 307 TRGL 85 843 844 TRGL 998 997 996 TRGL 85 844 845 TRGL 1219 1229 1230 TRGL 93 845 846 TRGL 93 97 94 TRGL 846 99 97 TRGL 846 847 99 TRGL 280 285 281 TRGL 850 849 844 TRGL 1169 1170 1168 TRGL 853 854 852 TRGL 41 40 49 TRGL 855 856 854 TRGL 857 858 856 TRGL 530 532 611 TRGL 859 858 857 TRGL 859 860 858 TRGL 861 862 860 TRGL 329 328 327 TRGL 867 866 865 TRGL 969 953 970 TRGL 867 868 866 TRGL 871 870 869 TRGL 871 872 870 TRGL 267 266 1131 TRGL 1224 1222 1221 TRGL 873 872 871 TRGL 873 874 872 TRGL 905 903 1155 TRGL 1190 329 327 TRGL 329 330 328 TRGL 226 227 225 TRGL 875 876 874 TRGL 1280 1284 1285 TRGL 877 878 876 TRGL 28 29 27 TRGL 879 878 877 TRGL 679 678 589 TRGL 815 541 539 TRGL 881 880 879 TRGL 881 882 880 TRGL 887 888 885 TRGL 887 890 889 TRGL 1050 1098 1099 TRGL 894 891 893 TRGL 789 714 712 TRGL 897 894 893 TRGL 1060 1093 1094 TRGL 898 897 893 TRGL 899 897 898 TRGL 900 897 899 TRGL 900 896 897 TRGL 900 901 896 TRGL 935 984 983 TRGL 903 901 902 TRGL 1143 1138 913 TRGL 185 184 182 TRGL 903 904 901 TRGL 1215 1216 855 TRGL 248 254 421 TRGL 832 502 500 TRGL 1157 1165 1156 TRGL 1180 1181 1182 TRGL 913 912 911 TRGL 917 916 915 TRGL 917 918 916 TRGL 835 349 347 TRGL 816 539 537 TRGL 275 920 919 TRGL 1164 1168 1167 TRGL 275 921 920 TRGL 271 921 275 TRGL 53 359 358 TRGL 186 184 185 TRGL 313 314 312 TRGL 905 904 903 TRGL 271 270 921 TRGL 920 923 924 TRGL 931 933 932 TRGL 914 926 927 TRGL 912 914 927 TRGL 910 912 928 TRGL 344 346 383 TRGL 910 928 929 TRGL 840 1210 841 TRGL 908 910 929 TRGL 493 490 491 TRGL 908 929 930 TRGL 977 944 133 TRGL 906 908 930 TRGL 906 930 931 TRGL 895 933 934 TRGL 1042 1044 1102 TRGL 934 889 890 TRGL 889 935 936 TRGL 47 54 75 TRGL 889 936 888 TRGL 349 350 348 TRGL 936 937 888 TRGL 1119 226 224 TRGL 937 936 938 TRGL 1213 1214 1215 TRGL 66 69 70 TRGL 937 938 939 TRGL 816 815 539 TRGL 937 939 940 TRGL 941 888 937 TRGL 885 941 884 TRGL 550 601 602 TRGL 880 946 947 TRGL 640 643 642 TRGL 941 940 942 TRGL 945 942 944 TRGL 882 945 946 TRGL 876 878 948 TRGL 1054 1056 1096 TRGL 1149 1150 1151 TRGL 866 868 953 TRGL 866 953 954 TRGL 323 322 321 TRGL 925 992 991 TRGL 326 392 393 TRGL 864 954 955 TRGL 862 864 955 TRGL 29 28 30 TRGL 862 955 956 TRGL 175 176 177 TRGL 1090 1088 169 TRGL 860 956 957 TRGL 858 860 957 TRGL 976 131 129 TRGL 754 763 755 TRGL 856 958 959 TRGL 999 1028 1029 TRGL 918 924 925 TRGL 1015 209 208 TRGL 854 856 959 TRGL 854 959 960 TRGL 852 854 960 TRGL 849 852 961 TRGL 847 961 962 TRGL 1257 1255 1254 TRGL 962 960 963 TRGL 844 849 848 TRGL 846 848 847 TRGL 964 107 105 TRGL 964 958 965 TRGL 1190 1192 329 TRGL 965 109 107 TRGL 966 111 109 TRGL 966 967 111 TRGL 966 956 967 TRGL 956 966 957 TRGL 967 955 968 TRGL 924 993 992 TRGL 207 211 212 TRGL 1066 1087 1091 TRGL 967 113 111 TRGL 953 969 954 TRGL 916 918 925 TRGL 969 970 117 TRGL 969 117 115 TRGL 35 737 736 TRGL 970 971 119 TRGL 975 129 127 TRGL 971 951 972 TRGL 165 166 164 TRGL 971 972 121 TRGL 905 906 904 TRGL 1028 1073 1029 TRGL 1115 1090 167 TRGL 972 123 121 TRGL 316 318 397 TRGL 1117 1119 224 TRGL 950 972 951 TRGL 973 974 125 TRGL 522 615 616 TRGL 973 125 123 TRGL 974 975 127 TRGL 948 974 949 TRGL 800 571 569 TRGL 1019 1018 201 TRGL 947 975 948 TRGL 975 976 129 TRGL 232 234 432 TRGL 1158 900 899 TRGL 976 977 131 TRGL 945 977 946 TRGL 1214 1213 1212 TRGL 943 137 135 TRGL 274 276 277 TRGL 943 978 137 TRGL 232 432 433 TRGL 943 940 978 TRGL 1256 1270 869 TRGL 939 978 940 TRGL 978 139 137 TRGL 372 371 367 TRGL 289 288 287 TRGL 979 980 141 TRGL 464 470 471 TRGL 1083 195 192 TRGL 1145 1141 1142 TRGL 938 982 981 TRGL 938 983 982 TRGL 227 229 453 TRGL 907 906 905 TRGL 1048 1050 1099 TRGL 983 938 936 TRGL 985 935 934 TRGL 369 375 376 TRGL 933 985 934 TRGL 930 986 931 TRGL 1156 1166 1155 TRGL 1159 899 1172 TRGL 930 987 986 TRGL 929 988 987 TRGL 928 988 929 TRGL 926 991 990 TRGL 809 808 553 TRGL 922 994 923 TRGL 1109 155 153 TRGL 1159 1158 899 TRGL 996 997 995 TRGL 973 949 974 TRGL 1000 999 998 TRGL 169 168 167 TRGL 919 920 918 TRGL 1000 1001 999 TRGL 1087 1090 1091 TRGL 1004 1003 1000 TRGL 524 614 615 TRGL 1004 1005 1003 TRGL 1055 1054 1053 TRGL 715 717 756 TRGL 1007 1008 1009 TRGL 584 581 798 TRGL 1009 1010 1006 TRGL 184 188 183 TRGL 1009 1011 1010 TRGL 1012 1011 1009 TRGL 1011 1012 1013 TRGL 1011 1014 1015 TRGL 546 548 603 TRGL 929 987 930 TRGL 1010 1011 1015 TRGL 27 24 28 TRGL 1016 1010 208 TRGL 1273 1275 1274 TRGL 1186 1188 325 TRGL 209 1116 220 TRGL 1016 1006 1010 TRGL 1179 1178 1177 TRGL 1274 877 875 TRGL 34 13 737 TRGL 1005 1006 1016 TRGL 454 479 478 TRGL 1020 1021 1001 TRGL 1166 1156 1165 TRGL 1022 1020 1019 TRGL 1019 1023 1022 TRGL 907 908 906 TRGL 1018 202 201 TRGL 330 390 391 TRGL 202 1018 1017 TRGL 1017 204 202 TRGL 1017 1016 204 TRGL 1267 1272 1268 TRGL 137 138 136 TRGL 1073 1063 1061 TRGL 718 719 717 TRGL 201 199 1023 TRGL 39 735 734 TRGL 1023 199 1024 TRGL 1022 1025 1026 TRGL 1178 317 315 TRGL 915 914 913 TRGL 1021 1026 1027 TRGL 262 260 261 TRGL 912 927 928 TRGL 1021 1027 1028 TRGL 1028 999 1001 TRGL 62 61 59 TRGL 1029 997 999 TRGL 997 1029 1030 TRGL 1175 1174 1279 TRGL 994 995 1031 TRGL 886 885 883 TRGL 994 1031 1032 TRGL 8 1304 7 TRGL 230 229 228 TRGL 1088 171 169 TRGL 993 994 1032 TRGL 991 1034 1035 TRGL 990 991 1035 TRGL 989 990 1036 TRGL 988 989 1037 TRGL 1011 1013 1014 TRGL 987 988 1038 TRGL 987 1038 1039 TRGL 986 987 1039 TRGL 129 128 127 TRGL 1185 1183 1184 TRGL 135 136 134 TRGL 1039 984 985 TRGL 923 994 993 TRGL 1112 161 159 TRGL 1203 1204 1202 TRGL 456 476 457 TRGL 984 1041 983 TRGL 1041 1042 982 TRGL 1045 1046 1044 TRGL 1288 886 883 TRGL 810 809 551 TRGL 1047 1046 1045 TRGL 552 600 601 TRGL 1047 1048 1046 TRGL 1049 1048 1047 TRGL 892 886 1288 TRGL 683 685 684 TRGL 1049 1050 1048 TRGL 539 538 537 TRGL 1051 1050 1049 TRGL 1053 1052 1051 TRGL 568 570 592 TRGL 1053 1054 1052 TRGL 544 604 605 TRGL 1055 1056 1054 TRGL 1110 1096 1111 TRGL 1057 1056 1055 TRGL 1243 1255 865 TRGL 1059 1060 1058 TRGL 1202 1204 341 TRGL 1061 1060 1059 TRGL 1063 1062 1061 TRGL 1065 1064 1063 TRGL 1065 1066 1064 TRGL 1067 1068 1066 TRGL 1069 1070 1068 TRGL 490 493 489 TRGL 1069 1072 1071 TRGL 192 193 190 TRGL 1069 1024 1072 TRGL 1238 1247 1246 TRGL 1069 1025 1024 TRGL 1025 1069 1067 TRGL 1067 1026 1025 TRGL 701 703 799 TRGL 803 802 565 TRGL 1026 1067 1065 TRGL 1065 1027 1026 TRGL 368 371 370 TRGL 1078 1053 1051 TRGL 1230 1216 1217 TRGL 1027 1065 1063 TRGL 1246 1240 1239 TRGL 1063 1073 1027 TRGL 1074 1073 1061 TRGL 1075 1030 1074 TRGL 463 471 472 TRGL 1030 1075 1031 TRGL 887 885 886 TRGL 1031 1076 1032 TRGL 1078 1033 1077 TRGL 710 713 758 TRGL 1079 1034 1078 TRGL 1034 1079 1035 TRGL 246 247 245 TRGL 198 1083 1072 TRGL 1035 1080 1036 TRGL 825 824 521 TRGL 1036 1081 1037 TRGL 1082 1037 1081 TRGL 1040 1038 1082 TRGL 1079 1078 1051 TRGL 550 552 601 TRGL 1078 1077 1053 TRGL 1077 1055 1053 TRGL 982 1042 1103 TRGL 688 686 687 TRGL 1077 1076 1055 TRGL 1075 1059 1057 TRGL 1121 237 228 TRGL 1075 1074 1059 TRGL 1074 1061 1059 TRGL 1084 1072 1083 TRGL 1070 1071 1085 TRGL 1085 176 1089 TRGL 258 259 256 TRGL 177 176 1085 TRGL 177 1085 185 TRGL 631 613 632 TRGL 185 182 177 TRGL 185 1085 186 TRGL 1084 186 1085 TRGL 213 215 214 TRGL 1084 191 186 TRGL 1206 345 343 TRGL 191 187 186 TRGL 173 1089 176 TRGL 802 383 801 TRGL 1089 173 171 TRGL 1088 1089 171 TRGL 1265 1266 1267 TRGL 1087 1088 1090 TRGL 1091 1064 1066 TRGL 1064 1091 1092 TRGL 475 486 474 TRGL 342 344 384 TRGL 1060 1062 1093 TRGL 1058 1060 1094 TRGL 588 589 590 TRGL 1058 1094 1095 TRGL 304 403 404 TRGL 1046 1048 1100 TRGL 1046 1100 1101 TRGL 1044 1046 1101 TRGL 1044 1101 1102 TRGL 1103 980 981 TRGL 980 1103 1104 TRGL 980 1104 143 TRGL 1008 1127 1012 TRGL 980 143 141 TRGL 1104 145 143 TRGL 986 1039 985 TRGL 1104 1105 145 TRGL 1153 303 301 TRGL 1222 1223 1220 TRGL 68 81 69 TRGL 1104 1102 1105 TRGL 1102 1104 1103 TRGL 1105 1106 147 TRGL 1106 149 147 TRGL 1106 1100 1107 TRGL 1099 1107 1100 TRGL 238 1121 1120 TRGL 571 572 570 TRGL 1107 1108 151 TRGL 1108 153 151 TRGL 1256 1269 1270 TRGL 1108 1098 1109 TRGL 1098 1108 1099 TRGL 48 52 47 TRGL 1097 1109 1098 TRGL 245 428 429 TRGL 1109 1097 1110 TRGL 835 352 349 TRGL 1109 1110 155 TRGL 1110 157 155 TRGL 562 595 596 TRGL 1096 1110 1097 TRGL 1236 1239 1235 TRGL 327 326 325 TRGL 865 864 863 TRGL 1095 1111 1096 TRGL 333 332 331 TRGL 1095 1112 1111 TRGL 1181 1180 1179 TRGL 62 834 352 TRGL 204 203 202 TRGL 1094 1113 1112 TRGL 1093 1114 1113 TRGL 1092 1114 1093 TRGL 90 1295 1296 TRGL 153 154 152 TRGL 1091 1115 1092 TRGL 178 180 179 TRGL 945 944 977 TRGL 1091 1090 1115 TRGL 1115 167 165 TRGL 224 225 223 TRGL 1114 1115 165 TRGL 1114 165 163 TRGL 1111 1112 159 TRGL 84 85 86 TRGL 1264 1258 1259 TRGL 1111 159 157 TRGL 1083 192 191 TRGL 1090 169 167 TRGL 24 27 26 TRGL 1015 1116 209 TRGL 1237 1191 1248 TRGL 139 138 137 TRGL 1118 1117 1014 TRGL 1007 265 1008 TRGL 1118 1119 1117 TRGL 141 140 139 TRGL 167 166 165 TRGL 1120 1119 1118 TRGL 1120 1121 1119 TRGL 1117 224 222 TRGL 1122 239 238 TRGL 856 858 958 TRGL 1126 257 1125 TRGL 623 625 622 TRGL 903 1156 1155 TRGL 422 425 423 TRGL 261 1126 1127 TRGL 1170 1177 1168 TRGL 1127 1128 261 TRGL 262 1128 265 TRGL 276 1132 1133 TRGL 1237 1193 1191 TRGL 1008 1012 1009 TRGL 1124 1127 1126 TRGL 1124 1122 1130 TRGL 1013 1130 1118 TRGL 962 103 101 TRGL 1129 1130 1013 TRGL 1129 1013 1012 TRGL 81 82 83 TRGL 1013 1118 1014 TRGL 1125 252 251 TRGL 877 876 875 TRGL 1123 251 239 TRGL 252 257 253 TRGL 67 839 840 TRGL 1152 301 299 TRGL 1131 1004 1000 TRGL 1240 1245 1244 TRGL 1131 1000 998 TRGL 226 225 224 TRGL 1131 998 269 TRGL 1232 861 859 TRGL 267 1131 269 TRGL 998 996 269 TRGL 911 912 910 TRGL 270 996 922 TRGL 343 342 341 TRGL 279 1134 287 TRGL 279 287 280 TRGL 1197 1196 1195 TRGL 1134 1135 289 TRGL 1079 1051 1049 TRGL 1134 1136 1135 TRGL 917 915 1137 TRGL 1150 1154 1151 TRGL 1138 1137 915 TRGL 1137 1139 1136 TRGL 478 483 484 TRGL 1139 1135 1136 TRGL 1135 1139 1140 TRGL 1135 291 289 TRGL 1140 1141 293 TRGL 1140 1142 1141 TRGL 1130 1122 1120 TRGL 1144 1143 911 TRGL 1143 1144 1145 TRGL 1159 1172 1169 TRGL 1143 1145 1142 TRGL 90 1296 22 TRGL 1141 1145 1146 TRGL 1141 295 293 TRGL 1146 297 295 TRGL 1146 1147 297 TRGL 1188 327 325 TRGL 1146 1148 1147 TRGL 1144 1148 1145 TRGL 1149 1144 909 TRGL 909 907 1149 TRGL 1150 1149 907 TRGL 1147 1151 1152 TRGL 751 766 765 TRGL 1147 299 297 TRGL 289 290 288 TRGL 63 836 837 TRGL 1152 1154 1153 TRGL 1150 905 1154 TRGL 1150 907 905 TRGL 1238 1246 1239 TRGL 902 1157 1156 TRGL 510 621 509 TRGL 1082 1045 1043 TRGL 1132 1137 1136 TRGL 1160 1157 1158 TRGL 1167 1178 315 TRGL 433 437 436 TRGL 1160 1162 1161 TRGL 300 405 406 TRGL 824 405 823 TRGL 1163 1162 1160 TRGL 182 184 183 TRGL 274 271 275 TRGL 1161 1162 309 TRGL 820 401 819 TRGL 1153 1155 1166 TRGL 322 394 395 TRGL 1166 305 303 TRGL 1166 1165 305 TRGL 1164 1167 313 TRGL 1169 1168 1163 TRGL 686 689 699 TRGL 53 47 52 TRGL 1169 1172 1171 TRGL 1172 899 898 TRGL 721 753 754 TRGL 810 391 809 TRGL 1171 1172 1173 TRGL 1175 1171 1174 TRGL 1176 1170 1175 TRGL 1127 1124 1129 TRGL 1177 1167 1168 TRGL 105 106 104 TRGL 1177 1178 1167 TRGL 747 741 740 TRGL 1180 1182 319 TRGL 1260 1261 1263 TRGL 1180 319 317 TRGL 1178 1180 317 TRGL 1182 321 319 TRGL 1107 1099 1108 TRGL 1184 1183 1182 TRGL 82 843 83 TRGL 927 989 928 TRGL 1185 1186 1183 TRGL 500 501 498 TRGL 1038 1040 1039 TRGL 1132 917 1137 TRGL 1252 1245 1246 TRGL 883 884 882 TRGL 1187 1186 1185 TRGL 1187 1188 1186 TRGL 1189 1188 1187 TRGL 1232 1241 1242 TRGL 1189 1190 1188 TRGL 1195 1196 1194 TRGL 1197 1198 1196 TRGL 20 19 21 TRGL 314 316 398 TRGL 992 1033 1034 TRGL 1201 1200 1199 TRGL 1201 1202 1200 TRGL 476 477 485 TRGL 1205 1206 1204 TRGL 668 670 669 TRGL 837 836 1206 TRGL 1282 892 1283 TRGL 1204 1206 343 TRGL 606 644 607 TRGL 356 358 357 TRGL 1202 341 339 TRGL 1200 1202 339 TRGL 1200 339 337 TRGL 55 56 54 TRGL 1222 1220 1221 TRGL 1198 1200 337 TRGL 18 1298 1299 TRGL 1247 1252 1246 TRGL 1196 335 333 TRGL 1194 1196 333 TRGL 1194 333 331 TRGL 1192 331 329 TRGL 1269 1256 1257 TRGL 1116 1117 222 TRGL 1188 1190 327 TRGL 1183 323 321 TRGL 576 581 582 TRGL 869 868 867 TRGL 1232 1242 861 TRGL 836 835 347 TRGL 838 837 1205 TRGL 1210 1211 842 TRGL 1212 1213 1211 TRGL 672 592 675 TRGL 1213 1215 853 TRGL 1213 853 851 TRGL 1215 855 853 TRGL 1215 1217 1216 TRGL 1217 1215 1214 TRGL 1218 1219 1217 TRGL 1222 1201 1199 TRGL 1224 1203 1201 TRGL 1207 1203 1224 TRGL 821 820 529 TRGL 1207 1205 1203 TRGL 372 367 366 TRGL 1209 1225 1226 TRGL 1209 1226 1212 TRGL 758 760 759 TRGL 54 56 74 TRGL 1226 1214 1212 TRGL 1226 1218 1214 TRGL 1221 1226 1225 TRGL 725 743 724 TRGL 1223 1197 1227 TRGL 1223 1228 1220 TRGL 1255 1256 867 TRGL 1228 1219 1220 TRGL 22 1297 20 TRGL 1084 1083 191 TRGL 968 969 115 TRGL 1216 1230 1231 TRGL 1233 1231 1230 TRGL 1229 1234 1233 TRGL 1235 1229 1228 TRGL 1236 1237 1238 TRGL 822 403 821 TRGL 1234 1239 1240 TRGL 965 957 966 TRGL 1234 1240 1241 TRGL 851 852 849 TRGL 1234 1241 1233 TRGL 1241 1232 1233 TRGL 30 31 29 TRGL 1183 1186 323 TRGL 1240 1246 1245 TRGL 451 450 487 TRGL 795 693 794 TRGL 1237 1248 1238 TRGL 119 120 118 TRGL 1237 1195 1193 TRGL 1071 1072 1084 TRGL 1189 1248 1191 TRGL 1250 1249 1189 TRGL 176 175 173 TRGL 1247 1251 1252 TRGL 1243 1254 1255 TRGL 1253 1257 1254 TRGL 1253 1259 1258 TRGL 1259 1253 1252 TRGL 568 592 593 TRGL 1251 1259 1252 TRGL 1251 1250 1260 TRGL 822 821 527 TRGL 1261 1250 1187 TRGL 1262 1261 1185 TRGL 913 911 1143 TRGL 1260 1263 1264 TRGL 258 1126 261 TRGL 1266 1265 1264 TRGL 1258 1265 1269 TRGL 1021 1028 1001 TRGL 1258 1269 1257 TRGL 1256 869 867 END
28.075926
48
0.79614
ed29cd59982f88d4ac3d1d9844c5e768c46522d9
1,143
c
C
assignment9/producer.c
jinsub1999/LinuxSystemProgramming
95f5cbe1d6357de1f9ad1bf91f1dc70a23c3206b
[ "MIT" ]
null
null
null
assignment9/producer.c
jinsub1999/LinuxSystemProgramming
95f5cbe1d6357de1f9ad1bf91f1dc70a23c3206b
[ "MIT" ]
null
null
null
assignment9/producer.c
jinsub1999/LinuxSystemProgramming
95f5cbe1d6357de1f9ad1bf91f1dc70a23c3206b
[ "MIT" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <sys/ipc.h> #include <sys/shm.h> #include <sys/types.h> #include <unistd.h> #include "prodcons.h" int main() { BoundedBufferType *pBuf; int shmid, i, data; if ((shmid = shmget(SHM_KEY, SHM_SIZE, SHM_MODE)) < 0) { // defined in prodcons.h perror("shmget"); // shared with consumer. exit(1); } if ((pBuf = (BoundedBufferType *)shmat(shmid, 0, 0)) == (void *)-1) { perror("shmat"); exit(1); } srand(0x8888); for (i = 0; i < NLOOPS; i++) { if (pBuf->counter == MAX_BUF) { printf("Producer: Buffer full. Waiting.....\n"); while (pBuf->counter == MAX_BUF) // busy wait. ; } printf("Producer: Producing an item.....\n"); data = (rand() % 100) * 10000; pBuf->buf[pBuf->in].data = data; pBuf->in = (pBuf->in + 1) % MAX_BUF; pBuf->counter++; usleep(data); } printf("Producer: Produced %d items.....\n", i); sleep(2); printf("Producer: %d items in buffer.....\n", pBuf->counter); if (shmctl(shmid, IPC_RMID, 0) < 0) { perror("shmctl"); exit(1); } // remove shared memory }
22.86
71
0.557305
daa48ccfb1ea4fa357dc3dc0a6877acf9e26ee0f
82
php
PHP
pusat_bantuan/proses.php
rezafikkri/manport
119ef602532e91e96d581637699b844183ed49a1
[ "MIT" ]
27
2020-03-23T03:38:15.000Z
2020-11-16T07:03:26.000Z
pusat_bantuan/proses.php
rezafikkri/manport
119ef602532e91e96d581637699b844183ed49a1
[ "MIT" ]
1
2020-03-19T05:18:40.000Z
2020-03-19T05:18:40.000Z
pusat_bantuan/proses.php
rezafikkri/manport
119ef602532e91e96d581637699b844183ed49a1
[ "MIT" ]
20
2020-03-20T05:18:38.000Z
2020-11-29T10:26:39.000Z
<?php include '../init.php'; $db = new bantuan; echo $db->add_pusat_bantuan();
13.666667
30
0.634146
f6fce2e25f83df362ccddbe78256883e1bb99f79
3,077
swift
Swift
Sources/Song/Interpreter/Interpreter.swift
dcutting/song
22f042577f6aea8d38420913d2f6505fe7c1d72b
[ "MIT" ]
43
2018-03-04T20:22:59.000Z
2021-11-17T09:58:03.000Z
Sources/Song/Interpreter/Interpreter.swift
dcutting/song
22f042577f6aea8d38420913d2f6505fe7c1d72b
[ "MIT" ]
96
2018-02-21T13:55:14.000Z
2019-07-12T08:56:15.000Z
Sources/Song/Interpreter/Interpreter.swift
dcutting/song
22f042577f6aea8d38420913d2f6505fe7c1d72b
[ "MIT" ]
1
2021-04-04T15:02:28.000Z
2021-04-04T15:02:28.000Z
import Syft public struct InterpreterError: Error { let remainder: String } public struct InterpreterResult { let output: InterpreterOutput let state: InterpreterState } public enum InterpreterOutput { case expression(Expression) case output(String) case error(Error) case none } public enum InterpreterState { case ok case waiting } public class Interpreter { public var context: Context private let interactive: Bool private var multilines = [String]() private let parser = makeParser() private let transformer = makeTransformer() public init(context: Context, interactive: Bool) { self.context = context self.interactive = interactive } public func finish() -> String? { if interactive || multilines.isEmpty { return nil } return multilines.joined() } private var state: InterpreterState { return multilines.isEmpty ? .ok : .waiting } private func makeResult(_ output: InterpreterOutput) -> InterpreterResult { return InterpreterResult(output: output, state: state) } public func interpret(line: String) throws -> InterpreterResult { if line.trimmingCharacters(in: .whitespacesAndNewlines) == "" || line.trimmingCharacters(in: .whitespaces).hasPrefix("#") { return makeResult(.none) } if line.trimmingCharacters(in: .whitespacesAndNewlines) == "?" { return makeResult(.output(describeContext(context))) } if line.trimmingCharacters(in: .whitespacesAndNewlines).hasPrefix("?del ") { var tokens = line.components(separatedBy: .whitespaces) guard tokens.count > 1 else { return makeResult(.output("Try \"?del SYMBOL [...]\"")) } tokens.removeFirst() for token in tokens { context.removeValue(forKey: String(token)) } return makeResult(.none) } multilines.append(line) let joinedLine = multilines.joined(separator: "\n") let result = parser.parse(joinedLine) let (_, remainder) = result if remainder.text.isEmpty { multilines.removeAll() let ast = try transformer.transform(result) let expression = try ast.evaluate(context: context) if case .closure(let name, _, _) = expression { if let name = name { context = extendContext(context: context, name: name, value: expression) } } if case .assign(let variable, let value) = expression { if case .name(let name) = variable { context = extendContext(context: context, name: name, value: value) } } return makeResult(.expression(expression)) } else if !parsedLastCharacter { return makeResult(.error(InterpreterError(remainder: remainder.text))) } return makeResult(.none) } }
30.77
92
0.60286
cd176575219e08de58f9b64d993a3d9066df87b1
1,129
cs
C#
LibKite/Networking/Packets/DataObjects/Item.cs
thomas-crane/Kite
ca30702101d93d4bd41702829628c263c231921a
[ "MIT" ]
2
2019-04-30T18:44:25.000Z
2019-05-12T19:38:18.000Z
LibKite/Networking/Packets/DataObjects/Item.cs
thomas-crane/Kite
ca30702101d93d4bd41702829628c263c231921a
[ "MIT" ]
null
null
null
LibKite/Networking/Packets/DataObjects/Item.cs
thomas-crane/Kite
ca30702101d93d4bd41702829628c263c231921a
[ "MIT" ]
1
2019-05-14T12:36:12.000Z
2019-05-14T12:36:12.000Z
namespace LibKite.Networking.Packets.DataObjects { public class Item : IDataObject { public int ItemItem; public int SlotType; public bool Tradable; public bool Included; public IDataObject Read(PacketReader r) { ItemItem = r.ReadInt32(); SlotType = r.ReadInt32(); Tradable = r.ReadBoolean(); Included = r.ReadBoolean(); return this; } public void Write(PacketWriter w) { w.Write(ItemItem); w.Write(SlotType); w.Write(Tradable); w.Write(Included); } public object Clone() { return new Item { ItemItem = this.ItemItem, SlotType = this.SlotType, Tradable = this.Tradable, Included = this.Included }; } public override string ToString() { return "{ ItemItem=" + ItemItem + ", SlotType=" + SlotType + ", Tradable=" + Tradable + ", Included=" + Included + " }"; } } }
25.088889
132
0.488928
a37054b77646426e94f8beca4f68a41de416dc6e
5,534
java
Java
src/main/java/com/alloyprofiling/characteristics/multifile/constraints/RunCheck.java
WatForm/static-profiling-of-alloy-models
351b6f3a9faf5bb0d2db78a7fcb0e43e94224b8a
[ "MIT" ]
null
null
null
src/main/java/com/alloyprofiling/characteristics/multifile/constraints/RunCheck.java
WatForm/static-profiling-of-alloy-models
351b6f3a9faf5bb0d2db78a7fcb0e43e94224b8a
[ "MIT" ]
null
null
null
src/main/java/com/alloyprofiling/characteristics/multifile/constraints/RunCheck.java
WatForm/static-profiling-of-alloy-models
351b6f3a9faf5bb0d2db78a7fcb0e43e94224b8a
[ "MIT" ]
null
null
null
package com.alloyprofiling.characteristics.multifile.constraints; import com.alloyprofiling.ALLOYLexer; import com.alloyprofiling.ALLOYParser; import com.alloyprofiling.ResultWriter; import org.antlr.v4.runtime.CharStreams; import org.antlr.v4.runtime.CommonTokenStream; import org.antlr.v4.runtime.tree.ParseTree; import org.antlr.v4.runtime.tree.pattern.ParseTreeMatch; import org.antlr.v4.runtime.tree.pattern.ParseTreePattern; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.Scanner; //class that counts the number of run and check commands in Alloy models public class RunCheck { //counter for total number of commands (run + check) in all Alloy models private static int totCmd = 0; public static void main(String[] args) throws FileNotFoundException { //results directory path String directoryName = "Results\\CharacteristicsOfModels\\MultiFile\\Constraints\\"; //creating directory if it doesn't exist File directory = new File(directoryName); if (! directory.exists()){ directory.mkdirs(); } String path = "corpus"; //String path = "expert"; System.out.println("Counting run vs. check for Alloy models in " + path); //file containing number of run commands per model String fp_run = directoryName + "run.txt"; //file containing number of check commands per model String fp_check = directoryName + "check.txt"; //file containing total number of command queries per model String fp_cmd = directoryName + "cmd.txt"; /* //file containing number of run commands per model String fp_run = directoryName + "run_expert.txt"; //file containing number of check commands per model String fp_check = directoryName + "check_expert.txt"; //file containing total number of command queries per model String fp_cmd = directoryName + "cmd_expert.txt"; */ //deleting results file if it already exists try { Files.deleteIfExists(Paths.get(fp_run)); Files.deleteIfExists(Paths.get(fp_check)); Files.deleteIfExists(Paths.get(fp_cmd)); } catch (IOException e) { e.printStackTrace(); } //file containing model names File models = new File("Results\\models.txt"); Scanner sc = new Scanner(models); //iterating over corpus of models while (sc.hasNextLine()) { int runCmds_model = 0; int checkCmds_model = 0; int cmds_model = 0; String model = sc.nextLine(); String[] files_to_parse = model.split(","); for (String file : files_to_parse) { Path file_path = Paths.get(file); if (Files.isRegularFile(file_path)) { try { String source = Files.readString(file_path); ALLOYLexer lexer = new ALLOYLexer(CharStreams.fromString(source)); ALLOYParser parser = new ALLOYParser(new CommonTokenStream(lexer)); ParseTree tree = parser.specification(); System.out.println("File: " + file_path.toFile()); //pattern to find run commands ParseTreePattern p_run = parser.compileParseTreePattern("<name_cmd_opt> run <nameOrBlock> <scope_opt>", ALLOYParser.RULE_cmdDecl); List<ParseTreeMatch> matches_run = p_run.findAll(tree, "//paragraph/*"); //pattern to find check commands ParseTreePattern p_check = parser.compileParseTreePattern("<name_cmd_opt> check <nameOrBlock> <scope_opt>", ALLOYParser.RULE_cmdDecl); List<ParseTreeMatch> matches_check = p_check.findAll(tree, "//paragraph/*"); System.out.println("Number of run commands in file: " + matches_run.size()); System.out.println("Number of check commands in file: " + matches_check.size()); System.out.println("Number of commands in file: " + (matches_check.size() + matches_run.size())); //incrementing model counters runCmds_model += matches_run.size(); checkCmds_model += matches_check.size(); cmds_model += matches_check.size() + matches_run.size(); } catch (Exception e) { e.printStackTrace(); } } } System.out.println("Model: " + model); System.out.println("Number of run commands in model: " + runCmds_model); System.out.println("Number of check commands in model: " + checkCmds_model); System.out.println("Number of commands in model: " + cmds_model + "\n"); //writing result file containing the number of run/checks in each file ResultWriter.writeResults(fp_run, runCmds_model); ResultWriter.writeResults(fp_check, checkCmds_model); ResultWriter.writeResults(fp_cmd, cmds_model); //incrementing total counters (over all models) totCmd += cmds_model; } System.out.println("Total number of commands: " + totCmd); } }
43.920635
158
0.61601
40b9c2c6280adacd6522e76234aba7d4990a0817
517
ts
TypeScript
oracle-app/nodejs/node_modules/@iota/core/typings/core/src/createGetLatestInclusion.d.ts
ivarcontessotto/iota-demonstrator
e1b99ea2cb198cd120eba22c0905671206c9e3d3
[ "MIT" ]
null
null
null
oracle-app/nodejs/node_modules/@iota/core/typings/core/src/createGetLatestInclusion.d.ts
ivarcontessotto/iota-demonstrator
e1b99ea2cb198cd120eba22c0905671206c9e3d3
[ "MIT" ]
2
2021-12-10T01:25:49.000Z
2021-12-14T20:43:24.000Z
oracle-app/nodejs/node_modules/@iota/core/typings/core/src/createGetLatestInclusion.d.ts
ivarcontessotto/iota-demonstrator
e1b99ea2cb198cd120eba22c0905671206c9e3d3
[ "MIT" ]
null
null
null
import * as Promise from 'bluebird'; import { Callback, Provider } from '../../types'; /** * @method createGetLatestInclusion * * @memberof module:core * * @param {Provider} provider - Network provider for accessing IRI * * @return {function} {@link #module_core.getLatestInclusion `getLatestInclusion`} */ export declare const createGetLatestInclusion: (provider: Provider) => (transactions: ReadonlyArray<string>, callback?: Callback<ReadonlyArray<boolean>> | undefined) => Promise<ReadonlyArray<boolean>>;
39.769231
201
0.740812
7f8a767f0b85167c44de26e0ef1c724541944aa9
3,139
php
PHP
Model/Logger/SentryHubManager.php
solvedata/plugins-magento2
fa24444e22c83ce6ba35cd23678c8f54e5573b30
[ "Apache-2.0" ]
null
null
null
Model/Logger/SentryHubManager.php
solvedata/plugins-magento2
fa24444e22c83ce6ba35cd23678c8f54e5573b30
[ "Apache-2.0" ]
14
2021-05-17T02:14:01.000Z
2021-11-16T05:57:39.000Z
Model/Logger/SentryHubManager.php
solvedata/plugins-magento2
fa24444e22c83ce6ba35cd23678c8f54e5573b30
[ "Apache-2.0" ]
null
null
null
<?php declare(strict_types=1); namespace SolveData\Events\Model\Logger; use Jean85\PrettyVersions; use Magento\Framework\Module\ModuleList; use Nyholm\Psr7\Factory\Psr17Factory; use Sentry\Client; use Sentry\ClientBuilder; use Sentry\HttpClient\HttpClientFactory; use Sentry\State\Hub; use Sentry\State\HubInterface; use Sentry\Transport\DefaultTransportFactory; use SolveData\Events\Model\Config; class SentryHubManager { private $config; private $last_dsn; private $sentry_hub; private $moduleList; public function __construct( Config $config, ModuleList $moduleList ) { $this->config = $config; $this->moduleList = $moduleList; $this->last_dsn = null; $this->sentry_hub = null; } public function getHub(): ?HubInterface { try { $dsn = $this->config->getSentryDsn(); if (empty($dsn)) { return null; } $hasValidDsn = !empty($dsn) && filter_var($dsn, FILTER_VALIDATE_URL); $hasDsnChanged = $this->last_dsn !== $dsn; if ($hasValidDsn && (empty($this->last_dsn) || $hasDsnChanged)) { // Set max_value_length, otherwise Sentry defaults to 1kib // which is not even enough for the stacktrace. $client = ClientBuilder::create([ 'dsn' => $dsn, 'release' => $this->getExtensionVersion(), 'max_value_length' => 8 * 1024, ]) ->setTransportFactory($this->createTransportFactory()) ->getClient(); $this->sentry_hub = new Hub($client); $this->last_dsn = $dsn; } return $this->sentry_hub; } catch (\Throwable $t) { // Fail silently if there is an unexpected error creating the Sentry client/hub. // This is to avoid a theoretical situation where the error handling code recursively throws errors. return null; } } private function createTransportFactory(): DefaultTransportFactory { $psr17Factory = new Psr17Factory(); $httpClient = null; $logger = null; $httpClientFactory = new HttpClientFactory( $psr17Factory, $psr17Factory, $psr17Factory, $httpClient, Client::SDK_IDENTIFIER, PrettyVersions::getVersion('sentry/sentry')->getPrettyVersion() ); return new DefaultTransportFactory( $psr17Factory, $psr17Factory, $httpClientFactory, $logger ); } /** * Returns the current Magento plugin's version. * * @return string */ private function getExtensionVersion(): string { try { return $this->moduleList->getOne('SolveData_Events')['setup_version']; } catch (\Throwable $t) { $this->logger->error('Failed to get extension version.', ['exception' => $t]); return 'unknown'; } } }
28.798165
112
0.565467
399383276b1606ae61d79da743caef0374a04dde
4,141
lua
Lua
BGAnimations/ScreenSelectMusic decorations/diff/default.lua
Inorizushi/DDRMAX2-SM5
3dce7bbb5e04c341dbb9aa4bf8545db41bc14515
[ "OLDAP-2.3" ]
1
2021-02-20T17:43:33.000Z
2021-02-20T17:43:33.000Z
BGAnimations/ScreenSelectMusic decorations/diff/default.lua
Inorizushi/DDRMAX2-SM5
3dce7bbb5e04c341dbb9aa4bf8545db41bc14515
[ "OLDAP-2.3" ]
null
null
null
BGAnimations/ScreenSelectMusic decorations/diff/default.lua
Inorizushi/DDRMAX2-SM5
3dce7bbb5e04c341dbb9aa4bf8545db41bc14515
[ "OLDAP-2.3" ]
null
null
null
local t = Def.ActorFrame{} GAMESTATE:Env()["curdir"] = { [PLAYER_1] = nil,[PLAYER_2] = nil } local pn = ... local xPosPlayerIcon = { [PLAYER_1] = SCREEN_CENTER_X-260,[PLAYER_2] = SCREEN_CENTER_X-76 } t[#t+1] = Def.ActorFrame{ InitCommand=function(self) self:x(xPosPlayerIcon[pn]):y(ddrgame=="max_" and _screen.cy+20 or SCREEN_CENTER_Y+15) end, LoadActor(ddrgame.."iconframe "..ToEnumShortString(pn))..{ OnCommand=function(s) s:z(1):cropbottom(1):addy(40):sleep(0.396):linear(0.198):addy(-40):cropbottom(0) end, OffCommand=function(s) s:sleep(0.231):linear(0.198):addy(40):cropbottom(1):sleep(0):addy(-40) end, }; Def.ActorFrame{ InitCommand=function(s) s:x( pn == "PlayerNumber_P2" and 18 or -18) end, Def.Sprite{ Texture="_difficulty icons 1x6.png"; InitCommand=function(s) s:pause() end, OnCommand=function(s) s:z(-1):cropbottom(1):addy(40):sleep(0.396):linear(0.198):addy(-40):cropbottom(0) end, OffCommand=function(s) s:finishtweening():sleep(0.231):linear(0.198):addy(40):cropbottom(1):sleep(0):addy(-40) end, SetCommand=function(self) if GAMESTATE:GetCurrentSong() then local steps = GAMESTATE:GetCurrentSteps(pn) if steps then self:setstate( GetDifficultyIconFrame(steps:GetDifficulty()) ):visible(true) end end end; CurrentSongChangedMessageCommand=function(s) s:playcommand("Set") end, CurrentStepsP1ChangedMessageCommand=function(s) s:playcommand("Set") end, CurrentStepsP2ChangedMessageCommand=function(s) s:playcommand("Set") end, }; LoadActor("_autogen")..{ InitCommand=function(s) s:visible(false) end, BeginCommand=function(s) s:playcommand("Set") end, ShowCommand=function(s) s:visible(true):diffuseshift():effectcolor1( color("1,1,1,0") ):effectcolor2( Color.White ) end, HideCommand=function(s) s:visible(false):stopeffect() end, CurrentSongChangedMessageCommand=function(s) s:playcommand("Set") end, CurrentStepsP1ChangedMessageCommand=function(s) s:playcommand("Set") end, CurrentStepsP2ChangedMessageCommand=function(s) s:playcommand("Set") end, SetCommand=function(self) self:playcommand("Hide") if GAMESTATE:GetCurrentSong() then local steps = GAMESTATE:GetCurrentSteps(pn) if steps and steps:IsAutogen() then self:playcommand("Show") end end end; }; }; }; -- StepsDisplay local function StepsDisplay(pn) local function set(self, player) self:SetFromGameState(player); end local sd = Def.StepsDisplay { InitCommand=function(s) s:Load( "StepsDisplaySelMusic"..ToEnumShortString(pn),GAMESTATE:GetPlayerState(pn) ) end, CurrentSongChangedMessageCommand=function(self) if not GAMESTATE:GetCurrentSong() then -- hacky hack 1: set all feet to nothing! self:GetChild("Ticks"):settext("0000000000"); -- hacky hack 2: diffuse to beginner self:GetChild("Ticks"):diffuse(CustomDifficultyToColor("Beginner")) end end; }; if pn == PLAYER_1 then sd.CurrentStepsP1ChangedMessageCommand=function(self) set(self, pn); end; sd.CurrentTrailP1ChangedMessageCommand=function(self) set(self, pn); end; else sd.CurrentStepsP2ChangedMessageCommand=function(self) set(self, pn); end; sd.CurrentTrailP2ChangedMessageCommand=function(self) set(self, pn); end; end return sd; end if ddrgame=="max2_" then --Meter Frames local framepos = { [PLAYER_1] = _screen.cy+157, [PLAYER_2] = _screen.cy+195 } t[#t+1] = Def.ActorFrame{ LoadActor("_frame ".. ToEnumShortString(pn))..{ InitCommand=function(self) self:visible( (GAMESTATE:IsPlayerEnabled(pn) or SCREENMAN:GetTopScreen() ~= 'ScreenSelectCourse') and true or false ) :xy( _screen.cx-171, framepos[pn] ):valign(pn==PLAYER_2 and 1 or 0) end, OnCommand=function(s) s:cropbottom(1):sleep(0.533):linear(0.184):cropbottom(0) end, OffCommand=function(s) s:sleep(0.183):linear(0.2):cropbottom(1) end, }; }; local MetricsName = "StepsDisplay" .. PlayerNumberToString(pn); t[#t+1] = StepsDisplay(pn) .. { InitCommand=function(self) self:player(pn); self:name(MetricsName); ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen"); end; }; end return t;
37.990826
122
0.716011
cee78d950a59f22f93fc00540a093a1a09122ea7
3,295
lua
Lua
AddOns/RealUI_Skins/Aurora/Skin/AddOns/Blizzard_ItemInteractionUI.lua
mrbandler/wow-ui
1b0eff4a2a90618fd80060433cc5ad7f19621c43
[ "MIT" ]
null
null
null
AddOns/RealUI_Skins/Aurora/Skin/AddOns/Blizzard_ItemInteractionUI.lua
mrbandler/wow-ui
1b0eff4a2a90618fd80060433cc5ad7f19621c43
[ "MIT" ]
null
null
null
AddOns/RealUI_Skins/Aurora/Skin/AddOns/Blizzard_ItemInteractionUI.lua
mrbandler/wow-ui
1b0eff4a2a90618fd80060433cc5ad7f19621c43
[ "MIT" ]
null
null
null
local _, private = ... if private.isClassic then return end --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Base = Aurora.Base local Hook, Skin = Aurora.Hook, Aurora.Skin local Color, Util = Aurora.Color, Aurora.Util do --[[ AddOns\Blizzard_ItemInteractionUI.lua ]] Hook.ItemInteractionMixin = {} function Hook.ItemInteractionMixin:UpdateCostFrame() local costsMoney = self:CostsGold() local costsCurrency = self:CostsCurrency() local hasPrice = costsMoney or costsCurrency local buttonFrame = self.ButtonFrame local bg = self.NineSlice:GetBackdropTexture("bg") if not hasPrice then buttonFrame.ActionButton:SetPoint("BOTTOM", bg, 0, 5) else buttonFrame.ActionButton:SetPoint("BOTTOMRIGHT", bg, -5, 5) end end end --do --[[ AddOns\Blizzard_ItemInteractionUI.xml ]] --end function private.AddOns.Blizzard_ItemInteractionUI() local ItemInteractionFrame = _G.ItemInteractionFrame Util.Mixin(ItemInteractionFrame, Hook.ItemInteractionMixin) Skin.PortraitFrameTemplate(ItemInteractionFrame) ItemInteractionFrame.NineSlice:SetBackdropOption("offsets", { left = 2, right = 2, top = 20, bottom = 0, }) local bg = ItemInteractionFrame.NineSlice:GetBackdropTexture("bg") local titleText = ItemInteractionFrame.TitleText titleText:ClearAllPoints() titleText:SetPoint("TOPLEFT", bg) titleText:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT) ItemInteractionFrame.CloseButton:SetPoint("TOPRIGHT", bg, 5.6, 5) do -- ItemSlot local ItemSlot = ItemInteractionFrame.ItemSlot Base.CreateBackdrop(ItemSlot, { bgFile = [[Interface\PaperDoll\UI-Backpack-EmptySlot]], tile = false, offsets = { left = -1, right = -1, top = -1, bottom = -1, } }) ItemSlot:SetBackdropColor(1, 1, 1, 1) ItemSlot:SetBackdropBorderColor(Color.cyan, 1) Base.CropIcon(ItemSlot:GetBackdropTexture("bg")) ItemSlot:SetSize(58, 58) ItemSlot:ClearAllPoints() ItemSlot:SetPoint("TOPLEFT", 143, -97) ItemSlot.Icon:ClearAllPoints() ItemSlot.Icon:SetPoint("TOPLEFT", 1, -1) ItemSlot.Icon:SetPoint("BOTTOMRIGHT", -1, 1) Base.CropIcon(ItemSlot.Icon) ItemSlot.GlowOverlay:SetAlpha(0) end local ButtonFrame = ItemInteractionFrame.ButtonFrame Skin.MagicButtonTemplate(ButtonFrame.ActionButton) Skin.ThinGoldEdgeTemplate(ButtonFrame.MoneyFrameEdge) ButtonFrame.MoneyFrameEdge:ClearAllPoints() ButtonFrame.MoneyFrameEdge:SetPoint("BOTTOMLEFT", bg, 5, 5) ButtonFrame.MoneyFrameEdge:SetPoint("TOPRIGHT", ButtonFrame.ActionButton, "TOPLEFT", -5, 0) Skin.BackpackTokenTemplate(ButtonFrame.Currency) ButtonFrame.Currency:SetPoint("BOTTOMRIGHT", ButtonFrame.MoneyFrameEdge, -9, 4) Skin.SmallMoneyFrameTemplate(ButtonFrame.MoneyFrame) ButtonFrame.MoneyFrame:SetPoint("BOTTOMRIGHT", ButtonFrame.MoneyFrameEdge, 7, 5) ButtonFrame.BlackBorder:SetAlpha(0) ButtonFrame.ButtonBorder:Hide() ButtonFrame.ButtonBottomBorder:Hide() end
35.053191
95
0.682853
d51d18403efcf6081a81adfa55e165e83d509a53
1,401
php
PHP
tests/ZfDonateTest/Event/ConfirmationRedirectListenerTest.php
nathanjosiah/zf-donate
60865373770ff42303be25df4bf8400bb8cbc22e
[ "MIT" ]
null
null
null
tests/ZfDonateTest/Event/ConfirmationRedirectListenerTest.php
nathanjosiah/zf-donate
60865373770ff42303be25df4bf8400bb8cbc22e
[ "MIT" ]
null
null
null
tests/ZfDonateTest/Event/ConfirmationRedirectListenerTest.php
nathanjosiah/zf-donate
60865373770ff42303be25df4bf8400bb8cbc22e
[ "MIT" ]
null
null
null
<?php namespace ZfDonateTest\Event; use Zend\EventManager\EventManager; use ZfDonate\Controller\DefaultController; use ZfDonate\Event\ConfirmationRedirectListener; use ZfDonate\Event\DonationEvent; use ZfDonate\Model\DonationEntity; class ConfirmationRedirectListenerTest extends \PHPUnit\Framework\TestCase { public function testRedirectsWithCorrectInfo() { $donation = new DonationEntity(); $donation->firstName = 'John'; $donation->lastName = 'Doe'; $donation->email = 'foobar'; $donation->amount = 12.34; $event = new DonationEvent(); $event->setDonationEntity($donation); $event->setName(DefaultController::EVENT_FINISH); $model = new \stdClass(); $controller_mock = new ControllerMock($model); $event->setTarget($controller_mock); $listener = new ConfirmationRedirectListener([ 'routes' => [ 'confirmation' => 'myroute', ] ]); $event_manager = new EventManager(); $listener->attach($event_manager); $result = $event_manager->triggerEvent($event); $this->assertTrue($result->stopped()); $this->assertSame($result->last(),$model); $this->assertSame($controller_mock->getArguments()[0],'myroute'); $this->assertSame($controller_mock->getArguments()[1],[]); $this->assertSame($controller_mock->getArguments()[2],[ 'query' => [ 'amount' => 12.34, 'fname' => 'John', 'lname' => 'Doe', 'email' => 'foobar', ] ]); } }
28.02
76
0.695218
447baaff28e1f04802fc5c18c46accd09170234c
579
py
Python
molo/commenting/wagtail_hooks.py
praekelt/molo.commenting
f48010f575558aabd9deb5f2281df2a61f512a10
[ "BSD-2-Clause" ]
null
null
null
molo/commenting/wagtail_hooks.py
praekelt/molo.commenting
f48010f575558aabd9deb5f2281df2a61f512a10
[ "BSD-2-Clause" ]
68
2015-08-07T08:52:55.000Z
2018-11-15T09:55:49.000Z
molo/commenting/wagtail_hooks.py
praekeltfoundation/molo.commenting
f48010f575558aabd9deb5f2281df2a61f512a10
[ "BSD-2-Clause" ]
null
null
null
from django.conf.urls import re_path from molo.commenting.admin import CommentingModelAdminGroup from molo.commenting.admin_views import MoloCommentsAdminReplyView from wagtail.core import hooks from wagtail.contrib.modeladmin.options import modeladmin_register @hooks.register('register_admin_urls') def register_molo_comments_admin_reply_url(): return [ re_path( r'comment/(?P<parent>\d+)/reply/$', MoloCommentsAdminReplyView.as_view(), name='molo-comments-admin-reply'), ] modeladmin_register(CommentingModelAdminGroup)
30.473684
66
0.763385
3892fefcf2d593da297028c2ff908fb0c4e53d6b
601
phpt
PHP
Zend/tests/bug70012.phpt
thiagooak/php-src
4006c0008e2b9646540a427b830dd46c11458786
[ "PHP-3.01" ]
32,467
2015-01-01T04:00:01.000Z
2022-03-31T20:08:37.000Z
Zend/tests/bug70012.phpt
qmutz/php-src
d519e4500e5e42cf6e2858b78233f256895fd3da
[ "PHP-3.01" ]
6,103
2015-01-01T03:03:43.000Z
2022-03-31T22:38:16.000Z
Zend/tests/bug70012.phpt
qmutz/php-src
d519e4500e5e42cf6e2858b78233f256895fd3da
[ "PHP-3.01" ]
8,715
2015-01-01T02:45:36.000Z
2022-03-31T05:14:20.000Z
--TEST-- Bug #70012 (Exception lost with nested finally block) --FILE-- <?php try { echo "Outer try\n"; try { echo " Middle try\n"; throw new Exception(); } finally { echo " Middle finally\n"; try { echo " Inner try\n"; } finally { echo " Inner finally\n"; } } echo "Outer shouldn't get here\n"; } catch (Exception $e) { echo "Outer catch\n"; } finally { echo "Outer finally\n"; } ?> --EXPECT-- Outer try Middle try Middle finally Inner try Inner finally Outer catch Outer finally
18.212121
53
0.542429
7fc7bf13be1679520c77ca1fd5d7102a8b2f2f54
501
php
PHP
src/view/publish/view.php
leocavalcante/hyperf
a963aafd2f398d0de87a00aa79709a7bfb771478
[ "Apache-2.0", "MIT" ]
3,478
2019-10-22T01:50:59.000Z
2022-03-31T21:33:50.000Z
src/view/publish/view.php
leocavalcante/hyperf
a963aafd2f398d0de87a00aa79709a7bfb771478
[ "Apache-2.0", "MIT" ]
2,670
2019-10-21T15:45:26.000Z
2022-03-31T17:58:28.000Z
src/view/publish/view.php
leocavalcante/hyperf
a963aafd2f398d0de87a00aa79709a7bfb771478
[ "Apache-2.0", "MIT" ]
1,160
2019-10-22T04:01:37.000Z
2022-03-29T10:25:24.000Z
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ use Hyperf\View\Engine\NoneEngine; use Hyperf\View\Mode; return [ 'engine' => NoneEngine::class, 'mode' => Mode::SYNC, 'config' => [ 'view_path' => BASE_PATH . '/storage/view/', 'cache_path' => BASE_PATH . '/runtime/view/', ], ];
21.782609
65
0.61477
ffb9e046df3afdaf1922f1a0e32401aa6f21d465
1,262
py
Python
llsort.py
thanm/devel-scripts
f8777a7c282b4b15f004e22ebf5c6b6751b82f87
[ "Apache-2.0" ]
null
null
null
llsort.py
thanm/devel-scripts
f8777a7c282b4b15f004e22ebf5c6b6751b82f87
[ "Apache-2.0" ]
null
null
null
llsort.py
thanm/devel-scripts
f8777a7c282b4b15f004e22ebf5c6b6751b82f87
[ "Apache-2.0" ]
3
2019-05-18T23:01:33.000Z
2021-09-18T14:17:10.000Z
#!/usr/bin/python3 """Sorts input lines by order of decreasing line length. Read std input, then emit output lines in decreasing/increasing order of line length. """ from collections import defaultdict import getopt import os import sys import script_utils as u flag_reverse = True def usage(msgarg): """Print usage and exit.""" if msgarg: sys.stderr.write("error: %s\n" % msgarg) print("""\ usage: %s [options] options: -d increase debug msg verbosity level -r reverse send of sort (increasing length) """ % os.path.basename(sys.argv[0])) sys.exit(1) def parse_args(): """Command line argument parsing.""" global flag_reverse try: optlist, _ = getopt.getopt(sys.argv[1:], "dr") except getopt.GetoptError as err: # unrecognized option usage(str(err)) for opt, _ in optlist: if opt == "-d": u.increment_verbosity() elif opt == "-r": flag_reverse = False # Setup u.setdeflanglocale() parse_args() # Read d = defaultdict(list) lines = sys.stdin.readlines() for line in lines: ll = len(line) d[ll].append(line) # Sort dkeys = list(d.keys()) dkeys.sort(reverse=flag_reverse) # Output for idx in dkeys: llist = d[idx] for ln in llist: sys.stdout.write(ln)
17.527778
69
0.663233
afe3bc4af1abe3246448a2cdc2244e1f0c43c4fe
143
py
Python
models/tfidf_allinone/plot.py
shayxu-ai/A-Repository-for-Machine-Learning
4b4cea15bb005d1c58f4395fde97cadf44fb0186
[ "Apache-2.0" ]
1
2020-02-04T03:55:07.000Z
2020-02-04T03:55:07.000Z
models/tfidf_allinone/plot.py
NO-PASSWORD-HERE/A-Repository-for-Machine-Learning
4b4cea15bb005d1c58f4395fde97cadf44fb0186
[ "Apache-2.0" ]
null
null
null
models/tfidf_allinone/plot.py
NO-PASSWORD-HERE/A-Repository-for-Machine-Learning
4b4cea15bb005d1c58f4395fde97cadf44fb0186
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1, 1, 50) y = 1.0/(1.0+np.exp(-5*x)) plt.figure() plt.plot(x, y) plt.show()
20.428571
31
0.657343
d68be0c791809d95a638d103db3584119246a79e
1,833
cs
C#
Scrapers/Program.cs
kriczq/flat-announcements
4bce31e00d2515c0c866c51b3e29a6b9a9de2ffc
[ "MIT" ]
null
null
null
Scrapers/Program.cs
kriczq/flat-announcements
4bce31e00d2515c0c866c51b3e29a6b9a9de2ffc
[ "MIT" ]
null
null
null
Scrapers/Program.cs
kriczq/flat-announcements
4bce31e00d2515c0c866c51b3e29a6b9a9de2ffc
[ "MIT" ]
null
null
null
using System; using System.IO; using System.Text; using Scrapers.Logging; using Scrapers.Parsing; using Scrapers.Writing; using ScrapySharp.Network; namespace Scrapers { internal static class Program { private static void Main() { TestScraping(325, 2); // const string url = "https://www.olx.pl/oferta/sprzedam-mieszkanie-m-6-centrum-miasta-oferta-prywatna-CID3-IDEpt3z.html"; // TestParsing(url); } private static void TestScraping(int start, int stopAfter) { var scraper = new OlxScraper { Logger = new CompositeLogger { Loggers = { new ConsoleLogger(), new FileLogger() } }, Writer = new CompositeWriter { Writers = { new ConsoleWriter(), new FileWriter(Path.Combine("Scrapers", "Olx")), new MemoryWriter() } } }; scraper.Start(start, stopAfter); scraper.ScrapeOffers(); } private static void TestParsing(string url) { var uri = new Uri(url); var browser = new ScrapingBrowser { AutoDetectCharsetEncoding = false, Encoding = Encoding.UTF8, IgnoreCookies = true }; var parser = new OlxParser(); var writer = new ConsoleWriter(); var announcement = parser.ParseOffer(url, browser.NavigateToPage(uri).Html); writer.SaveOne(announcement); } } }
29.095238
135
0.471904
0c1adfc6c07fc9ffaffa2d887af0d2c900326e92
168
dart
Dart
flutter_login_auth_example/lib/routes/app_routes.dart
nolcreak/flutter_examples
b7b0b8926c09f4dec3bbd8ae2ea48d44c8d974c1
[ "MIT" ]
null
null
null
flutter_login_auth_example/lib/routes/app_routes.dart
nolcreak/flutter_examples
b7b0b8926c09f4dec3bbd8ae2ea48d44c8d974c1
[ "MIT" ]
null
null
null
flutter_login_auth_example/lib/routes/app_routes.dart
nolcreak/flutter_examples
b7b0b8926c09f4dec3bbd8ae2ea48d44c8d974c1
[ "MIT" ]
null
null
null
class AppRoutes { static const String LOGIN_VIEW = '/login'; static const String DASHBOARD_VIEW = '/dashboard'; static const String INITIAL_VIEW = LOGIN_VIEW; }
24
52
0.744048
9700b1a4927eeb2583fb659b49910b4f1e1b87ab
669
swift
Swift
Examples/Contacts/Contacts/Modules/ContactsList/View/ContactsListView.swift
ssamadgh/FluentCollapsingHeaderView
c55ac8c3f3447af0c6844236cc586d0d14f52478
[ "MIT" ]
1
2022-03-24T04:22:30.000Z
2022-03-24T04:22:30.000Z
Examples/Contacts/Contacts/Modules/ContactsList/View/ContactsListView.swift
ssamadgh/FluentCollapsingHeaderView
c55ac8c3f3447af0c6844236cc586d0d14f52478
[ "MIT" ]
null
null
null
Examples/Contacts/Contacts/Modules/ContactsList/View/ContactsListView.swift
ssamadgh/FluentCollapsingHeaderView
c55ac8c3f3447af0c6844236cc586d0d14f52478
[ "MIT" ]
null
null
null
// // ContactsListView.swift // ContactsList // // Created by Seyed Samad on 9/27/21. // import Foundation import UIKit final class ContactsListView: UITableViewController, ViewInterface { var presenter: ContactsListPresenterViewInterface! // MARK: - Properties // MARK: - Initialize // MARK: - Lifecycle override func viewDidLoad() { super.viewDidLoad() title = "Contacts" self.applyTheme() self.presenter.viewDidLoad() } // MARK: - Theme func applyTheme() { } // MARK: - Actions } extension ContactsListView: ContactsListViewInterface { func reload() { self.tableView.reloadData() } }
13.117647
68
0.657698
8c21115c3976c66d9ad6a64ac8ad470fa94a2216
16,907
cs
C#
Blog.Core.Tasks/QuartzNet/SchedulerCenterServer.cs
Glepooek/Blog.Core
00b717eacc42054cf42c3008caf746390a89836c
[ "Apache-2.0" ]
4,072
2018-08-21T09:09:14.000Z
2022-03-31T11:04:31.000Z
Blog.Core.Tasks/QuartzNet/SchedulerCenterServer.cs
Glepooek/Blog.Core
00b717eacc42054cf42c3008caf746390a89836c
[ "Apache-2.0" ]
218
2018-10-10T03:09:43.000Z
2022-03-25T00:28:44.000Z
Blog.Core.Tasks/QuartzNet/SchedulerCenterServer.cs
Glepooek/Blog.Core
00b717eacc42054cf42c3008caf746390a89836c
[ "Apache-2.0" ]
1,221
2018-08-23T00:40:16.000Z
2022-03-31T13:53:03.000Z
using Blog.Core.Model; using Blog.Core.Model.Models; using Blog.Core.Model.ViewModels; using Quartz; using Quartz.Impl; using Quartz.Impl.Triggers; using Quartz.Spi; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Reflection; using System.Threading.Tasks; namespace Blog.Core.Tasks { /// <summary> /// 任务调度管理中心 /// </summary> public class SchedulerCenterServer : ISchedulerCenter { private Task<IScheduler> _scheduler; private readonly IJobFactory _iocjobFactory; public SchedulerCenterServer(IJobFactory jobFactory) { _iocjobFactory = jobFactory; _scheduler = GetSchedulerAsync(); } private Task<IScheduler> GetSchedulerAsync() { if (_scheduler != null) return this._scheduler; else { // 从Factory中获取Scheduler实例 NameValueCollection collection = new NameValueCollection { { "quartz.serializer.type", "binary" }, }; StdSchedulerFactory factory = new StdSchedulerFactory(collection); return _scheduler = factory.GetScheduler(); } } /// <summary> /// 开启任务调度 /// </summary> /// <returns></returns> public async Task<MessageModel<string>> StartScheduleAsync() { var result = new MessageModel<string>(); try { this._scheduler.Result.JobFactory = this._iocjobFactory; if (!this._scheduler.Result.IsStarted) { //等待任务运行完成 await this._scheduler.Result.Start(); await Console.Out.WriteLineAsync("任务调度开启!"); result.success = true; result.msg = $"任务调度开启成功"; return result; } else { result.success = false; result.msg = $"任务调度已经开启"; return result; } } catch (Exception) { throw; } } /// <summary> /// 停止任务调度 /// </summary> /// <returns></returns> public async Task<MessageModel<string>> StopScheduleAsync() { var result = new MessageModel<string>(); try { if (!this._scheduler.Result.IsShutdown) { //等待任务运行完成 await this._scheduler.Result.Shutdown(); await Console.Out.WriteLineAsync("任务调度停止!"); result.success = true; result.msg = $"任务调度停止成功"; return result; } else { result.success = false; result.msg = $"任务调度已经停止"; return result; } } catch (Exception) { throw; } } /// <summary> /// 添加一个计划任务(映射程序集指定IJob实现类) /// </summary> /// <typeparam name="T"></typeparam> /// <param name="tasksQz"></param> /// <returns></returns> public async Task<MessageModel<string>> AddScheduleJobAsync(TasksQz tasksQz) { var result = new MessageModel<string>(); if (tasksQz != null) { try { JobKey jobKey = new JobKey(tasksQz.Id.ToString(), tasksQz.JobGroup); if (await _scheduler.Result.CheckExists(jobKey)) { result.success = false; result.msg = $"该任务计划已经在执行:【{tasksQz.Name}】,请勿重复启动!"; return result; } #region 设置开始时间和结束时间 if (tasksQz.BeginTime == null) { tasksQz.BeginTime = DateTime.Now; } DateTimeOffset starRunTime = DateBuilder.NextGivenSecondDate(tasksQz.BeginTime, 1);//设置开始时间 if (tasksQz.EndTime == null) { tasksQz.EndTime = DateTime.MaxValue.AddDays(-1); } DateTimeOffset endRunTime = DateBuilder.NextGivenSecondDate(tasksQz.EndTime, 1);//设置暂停时间 #endregion #region 通过反射获取程序集类型和类 Assembly assembly = Assembly.Load(new AssemblyName(tasksQz.AssemblyName)); Type jobType = assembly.GetType(tasksQz.AssemblyName + "." + tasksQz.ClassName); #endregion //判断任务调度是否开启 if (!_scheduler.Result.IsStarted) { await StartScheduleAsync(); } //传入反射出来的执行程序集 IJobDetail job = new JobDetailImpl(tasksQz.Id.ToString(), tasksQz.JobGroup, jobType); job.JobDataMap.Add("JobParam", tasksQz.JobParams); ITrigger trigger; #region 泛型传递 //IJobDetail job = JobBuilder.Create<T>() // .WithIdentity(sysSchedule.Name, sysSchedule.JobGroup) // .Build(); #endregion if (tasksQz.Cron != null && CronExpression.IsValidExpression(tasksQz.Cron) && tasksQz.TriggerType > 0) { trigger = CreateCronTrigger(tasksQz); ((CronTriggerImpl)trigger).MisfireInstruction = MisfireInstruction.CronTrigger.DoNothing; } else { trigger = CreateSimpleTrigger(tasksQz); } // 告诉Quartz使用我们的触发器来安排作业 await _scheduler.Result.ScheduleJob(job, trigger); //await Task.Delay(TimeSpan.FromSeconds(120)); //await Console.Out.WriteLineAsync("关闭了调度器!"); //await _scheduler.Result.Shutdown(); result.success = true; result.msg = $"【{tasksQz.Name}】成功"; return result; } catch (Exception ex) { result.success = false; result.msg = $"任务计划异常:【{ex.Message}】"; return result; } } else { result.success = false; result.msg = $"任务计划不存在:【{tasksQz?.Name}】"; return result; } } /// <summary> /// 任务是否存在? /// </summary> /// <returns></returns> public async Task<bool> IsExistScheduleJobAsync(TasksQz sysSchedule) { JobKey jobKey = new JobKey(sysSchedule.Id.ToString(), sysSchedule.JobGroup); if (await _scheduler.Result.CheckExists(jobKey)) { return true; } else { return false; } } /// <summary> /// 暂停一个指定的计划任务 /// </summary> /// <returns></returns> public async Task<MessageModel<string>> StopScheduleJobAsync(TasksQz sysSchedule) { var result = new MessageModel<string>(); try { JobKey jobKey = new JobKey(sysSchedule.Id.ToString(), sysSchedule.JobGroup); if (!await _scheduler.Result.CheckExists(jobKey)) { result.success = false; result.msg = $"未找到要暂停的任务:【{sysSchedule.Name}】"; return result; } else { await this._scheduler.Result.DeleteJob(jobKey); result.success = true; result.msg = $"【{sysSchedule.Name}】成功"; return result; } } catch (Exception) { throw; } } /// <summary> /// 恢复指定的计划任务 /// </summary> /// <param name="sysSchedule"></param> /// <returns></returns> public async Task<MessageModel<string>> ResumeJob(TasksQz sysSchedule) { var result = new MessageModel<string>(); try { JobKey jobKey = new JobKey(sysSchedule.Id.ToString(), sysSchedule.JobGroup); if (!await _scheduler.Result.CheckExists(jobKey)) { result.success = false; result.msg = $"未找到要恢复的任务:【{sysSchedule.Name}】"; return result; } await this._scheduler.Result.ResumeJob(jobKey); result.success = true; result.msg = $"【{sysSchedule.Name}】成功"; return result; } catch (Exception) { throw; } } /// <summary> /// 暂停指定的计划任务 /// </summary> /// <param name="sysSchedule"></param> /// <returns></returns> public async Task<MessageModel<string>> PauseJob(TasksQz sysSchedule) { var result = new MessageModel<string>(); try { JobKey jobKey = new JobKey(sysSchedule.Id.ToString(), sysSchedule.JobGroup); if (!await _scheduler.Result.CheckExists(jobKey)) { result.success = false; result.msg = $"未找到要暂停的任务:【{sysSchedule.Name}】"; return result; } await this._scheduler.Result.PauseJob(jobKey); result.success = true; result.msg = $"【{sysSchedule.Name}】成功"; return result; } catch (Exception) { throw; } } #region 状态状态帮助方法 public async Task<List<TaskInfoDto>> GetTaskStaus(TasksQz sysSchedule) { var ls = new List<TaskInfoDto>(); var noTask = new List<TaskInfoDto>{ new TaskInfoDto { jobId = sysSchedule.Id.ObjToString(), jobGroup = sysSchedule.JobGroup, triggerId = "", triggerGroup = "", triggerStatus = "不存在" } }; JobKey jobKey = new JobKey(sysSchedule.Id.ToString(), sysSchedule.JobGroup); IJobDetail job = await this._scheduler.Result.GetJobDetail(jobKey); if (job == null) { return noTask; } //info.Append(string.Format("任务ID:{0}\r\n任务名称:{1}\r\n", job.Key.Name, job.Description)); var triggers = await this._scheduler.Result.GetTriggersOfJob(jobKey); if (triggers == null || triggers.Count == 0) { return noTask; } foreach (var trigger in triggers) { var triggerStaus = await this._scheduler.Result.GetTriggerState(trigger.Key); string state = GetTriggerState(triggerStaus.ObjToString()); ls.Add(new TaskInfoDto { jobId = job.Key.Name, jobGroup = job.Key.Group, triggerId = trigger.Key.Name, triggerGroup = trigger.Key.Group, triggerStatus = state }); //info.Append(string.Format("触发器ID:{0}\r\n触发器名称:{1}\r\n状态:{2}\r\n", item.Key.Name, item.Description, state)); } return ls; } public string GetTriggerState(string key) { string state = null; if (key != null) key = key.ToUpper(); switch (key) { case "1": state = "暂停"; break; case "2": state = "完成"; break; case "3": state = "出错"; break; case "4": state = "阻塞"; break; case "0": state = "正常"; break; case "-1": state = "不存在"; break; case "BLOCKED": state = "阻塞"; break; case "COMPLETE": state = "完成"; break; case "ERROR": state = "出错"; break; case "NONE": state = "不存在"; break; case "NORMAL": state = "正常"; break; case "PAUSED": state = "暂停"; break; } return state; } #endregion #region 创建触发器帮助方法 /// <summary> /// 创建SimpleTrigger触发器(简单触发器) /// </summary> /// <param name="sysSchedule"></param> /// <param name="starRunTime"></param> /// <param name="endRunTime"></param> /// <returns></returns> private ITrigger CreateSimpleTrigger(TasksQz sysSchedule) { if (sysSchedule.CycleRunTimes > 0) { ITrigger trigger = TriggerBuilder.Create() .WithIdentity(sysSchedule.Id.ToString(), sysSchedule.JobGroup) .StartAt(sysSchedule.BeginTime.Value) .WithSimpleSchedule(x => x .WithIntervalInSeconds(sysSchedule.IntervalSecond) .WithRepeatCount(sysSchedule.CycleRunTimes - 1)) .EndAt(sysSchedule.EndTime.Value) .Build(); return trigger; } else { ITrigger trigger = TriggerBuilder.Create() .WithIdentity(sysSchedule.Id.ToString(), sysSchedule.JobGroup) .StartAt(sysSchedule.BeginTime.Value) .WithSimpleSchedule(x => x .WithIntervalInSeconds(sysSchedule.IntervalSecond) .RepeatForever() ) .EndAt(sysSchedule.EndTime.Value) .Build(); return trigger; } // 触发作业立即运行,然后每10秒重复一次,无限循环 } /// <summary> /// 创建类型Cron的触发器 /// </summary> /// <param name="m"></param> /// <returns></returns> private ITrigger CreateCronTrigger(TasksQz sysSchedule) { // 作业触发器 return TriggerBuilder.Create() .WithIdentity(sysSchedule.Id.ToString(), sysSchedule.JobGroup) .StartAt(sysSchedule.BeginTime.Value)//开始时间 .EndAt(sysSchedule.EndTime.Value)//结束数据 .WithCronSchedule(sysSchedule.Cron)//指定cron表达式 .ForJob(sysSchedule.Id.ToString(), sysSchedule.JobGroup)//作业名称 .Build(); } #endregion /// <summary> /// 立即执行 一个任务 /// </summary> /// <param name="tasksQz"></param> /// <returns></returns> public async Task<MessageModel<string>> ExecuteJobAsync(TasksQz tasksQz) { var result = new MessageModel<string>(); try { JobKey jobKey = new JobKey(tasksQz.Id.ToString(), tasksQz.JobGroup); //判断任务是否存在,存在则 触发一次,不存在则先添加一个任务,触发以后再 停止任务 if (!await _scheduler.Result.CheckExists(jobKey)) { //不存在 则 添加一个计划任务 await AddScheduleJobAsync(tasksQz); //触发执行一次 await _scheduler.Result.TriggerJob(jobKey); //停止任务 await StopScheduleJobAsync(tasksQz); result.success = true; result.msg = $"立即执行计划任务:【{tasksQz.Name}】成功"; } else { await _scheduler.Result.TriggerJob(jobKey); result.success = true; result.msg = $"立即执行计划任务:【{tasksQz.Name}】成功"; } } catch (Exception ex) { result.msg = $"立即执行计划任务失败:【{ex.Message}】"; } return result; } } }
34.363821
125
0.449991
c2a64ee850b445946525288020a5bf5e9fcc8667
451
c
C
app/test_input_file.c
wysockif/game-of-life
c7ee426da3277ab8a17b78bf1b484d6a4edecd38
[ "Vim", "MIT" ]
null
null
null
app/test_input_file.c
wysockif/game-of-life
c7ee426da3277ab8a17b78bf1b484d6a4edecd38
[ "Vim", "MIT" ]
null
null
null
app/test_input_file.c
wysockif/game-of-life
c7ee426da3277ab8a17b78bf1b484d6a4edecd38
[ "Vim", "MIT" ]
null
null
null
#include <stdio.h> #include <string.h> #include "input_file.h" int main( int argc, char **argv ){ if( argc == 1 ){ printf("Nie podano nazwy pliku wejsciowego!\n"); return 2; } char ** tab = read_data( open(argv[1]) ); for( int i = 0; i < 5; i++){ printf("%s ", tab[i] ); } printf("\n"); printf("Szerokosc jest rowna %d\n", get_width(tab)); printf("Wysokosc jest rowna %d\n", get_height(tab)); return 0; }
19.608696
54
0.56541
cd10df3e9b73a65a4040a22bb702a520163d96e1
7,063
cs
C#
GGGG.NeuralEstimator/NeuralTrainer.cs
MatthewRobertDunn/GGGG
ca2d6f3c0e441864fcf2902d820c003358890a26
[ "MIT" ]
null
null
null
GGGG.NeuralEstimator/NeuralTrainer.cs
MatthewRobertDunn/GGGG
ca2d6f3c0e441864fcf2902d820c003358890a26
[ "MIT" ]
null
null
null
GGGG.NeuralEstimator/NeuralTrainer.cs
MatthewRobertDunn/GGGG
ca2d6f3c0e441864fcf2902d820c003358890a26
[ "MIT" ]
null
null
null
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Encog.Engine.Network.Activation; using Encog.ML.Data; using Encog.MathUtil.Randomize; using Encog.Neural.Data.Basic; using Encog.Neural.Networks; using Encog.Neural.Networks.Layers; using Encog.Neural.Networks.Training; using Encog.Neural.Networks.Training.Propagation.Resilient; using Encog.Neural.NeuralData; using Encog.Persist; using Encog.Util.Simple; using GGGG.Interface; using GGGG.Interface.IO; using ProtoBuf; namespace GGGG.NeuralEstimator { public class NeuralTrainer { public Dictionary<TrainingKey, IList<TrainingData>> trainingData = new Dictionary<TrainingKey, IList<TrainingData>>(); public static string FileName = Properties.NeuralEstimator.Default.FileName; public static string Extention = ".gtrain"; public void LoadTrainingData() { Console.WriteLine("Loading training data"); int count = 0; foreach (var item in GetNextTrainingData()) { //try to remove junky crap if (item.NumberGames < 100) continue; if (item.NumberGames > 50000) continue; int realBoardSize = item.BoardSize - 2; if (item.NumberStones > 20) continue; var key = new TrainingKey { BoardSize = item.BoardSize, NumberStones = item.NumberStones, Player = item.Player, Komi = item.Komi }; if (!trainingData.ContainsKey(key)) trainingData[key] = new List<TrainingData>(); var existingBoard = trainingData[key].FirstOrDefault(x => x.BoardHash == item.BoardHash); if (existingBoard == null) { count++; trainingData[key].Add(item); } else { if (item.NumberGames > existingBoard.NumberGames) { trainingData[key].Remove(item); trainingData[key].Add(item); } } } } public void TrainOnAllData() { for (float komi = 0; komi < 20; komi += 0.5f) foreach (var player in new BoardSquares[] { BoardSquares.White, BoardSquares.Black, }) foreach (var size in new int[] { 11, 13, 15, 21 }) { var key = new TrainingKey() { BoardSize = size, Player = player, Komi = komi }; var data = GetTrainingData(key, 0, 30); if (data.Count < 100) continue; Console.WriteLine("Training network {0} {1} {2}", key.Player, key.BoardSize, key.Komi); var network = TrainNetwork(data, size); var fileName = string.Format("{0}-{1}-{2}", key.Player, key.BoardSize, key.Komi); SaveNetwork(network, fileName + ".nn"); } } public void SaveNetwork(BasicNetwork network, string fileName) { var fullPath = Path.Combine(AppFolder.GetPathToAppFolder(), fileName); EncogDirectoryPersistence.SaveObject(new FileInfo(fullPath), network); } public IList<TrainingData> GetTrainingData(TrainingKey key, int startStones, int endStones) { IList<TrainingData> inputRows = new List<TrainingData>(); for (int i = startStones; i < endStones; i++) { key.NumberStones = i; if (trainingData.ContainsKey(key)) { foreach (var item in trainingData[key]) inputRows.Add(item); } } return inputRows.ToList(); } public BasicNetwork TrainNetwork(IList<TrainingData> inputList, int boardSize) { int realBoardSize = boardSize - 2; //Create new simple layered neural network BasicNetwork network = new BasicNetwork(); //121 inputs (for 11x11 go board) network.AddLayer(new BasicLayer(new ActivationSigmoid(), true, boardSize * boardSize)); //2 middle processing layers network.AddLayer(new BasicLayer(new ActivationSigmoid(), true, (int)(realBoardSize * Properties.NeuralEstimator.Default.HiddenLayer1NeuronMultiplier))); network.AddLayer(new BasicLayer(new ActivationLOG(), true, (int)(realBoardSize * Properties.NeuralEstimator.Default.HiddenLayer1NeuronMultiplier))); //121 outputs network.AddLayer(new BasicLayer(new ActivationSigmoid(), true, boardSize * boardSize)); //finalize network to allow acceleration network.Structure.FinalizeStructure(); //randomize weights before training network.Reset(); var input = new double[inputList.Count][]; var output = new double[inputList.Count][]; for (int i = 0; i < inputList.Count; i++) { var data = inputList[i]; input[i] = data.InputData; output[i] = data.OuputData; } INeuralDataSet trainingSet = new BasicNeuralDataSet(input, output); ITrain train = new ResilientPropagation(network, trainingSet); //EncogUtility.TrainToError(train,0.01); int epoch = 0; do { train.Iteration(); string foo = "Epoch #" + epoch + " Error:" + train.Error; Console.WriteLine(foo); System.Diagnostics.Debug.WriteLine(foo); epoch++; } while ((epoch < Properties.NeuralEstimator.Default.MaxTrainingIterations) && (train.Error > Properties.NeuralEstimator.Default.DesiredError)); return network; } public IEnumerable<TrainingData> GetNextTrainingData() { int count = 0; foreach (var fileName in Directory.EnumerateFiles(AppFolder.GetPathToAppFolder(), "*" + Extention)) { using (var stream = File.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { var results = ProtoBuf.Serializer.DeserializeItems<TrainingData>(stream, PrefixStyle.Fixed32, 0); foreach (var trainingData in results) { count++; yield return trainingData; } } } } } }
35.852792
164
0.54113
1b08d620e8eb24e8121f6428e30fb98c5e6cec78
230
rb
Ruby
db/migrate/20201018184843_create_vinyl_table.rb
jillbowen/Vinyl_Records
7d777e1ebf212730aa4213745969c72b1e74404b
[ "MIT" ]
1
2021-02-09T19:02:59.000Z
2021-02-09T19:02:59.000Z
db/migrate/20201018184843_create_vinyl_table.rb
jillbowen/jshort_sinatra_project_vinylrecords
7d777e1ebf212730aa4213745969c72b1e74404b
[ "MIT" ]
null
null
null
db/migrate/20201018184843_create_vinyl_table.rb
jillbowen/jshort_sinatra_project_vinylrecords
7d777e1ebf212730aa4213745969c72b1e74404b
[ "MIT" ]
null
null
null
class CreateVinylTable < ActiveRecord::Migration def change create_table :vinyls do |t| t.string :album_name t.string :artist_name t.integer :vinyl_condition t.integer :total_vinyl end end end
20.909091
48
0.686957
9258b0e95ecadf2c36a71b24c08d37de487283e8
1,085
rb
Ruby
spec/mailers/mailer_spec.rb
mikiec84/railscasts
010f1927c9ccb9604d0af1c6326419bd5371b56c
[ "MIT" ]
112
2015-01-04T23:46:08.000Z
2022-02-28T12:56:02.000Z
spec/mailers/mailer_spec.rb
macbury/railscasts
010f1927c9ccb9604d0af1c6326419bd5371b56c
[ "MIT" ]
4
2015-04-03T09:12:40.000Z
2021-11-03T01:56:26.000Z
spec/mailers/mailer_spec.rb
macbury/railscasts
010f1927c9ccb9604d0af1c6326419bd5371b56c
[ "MIT" ]
50
2015-01-01T23:20:53.000Z
2022-03-25T04:25:43.000Z
require "spec_helper" describe Mailer do describe "feedback" do let(:message) { Factory(:feedback_message) } let(:mail) { Mailer.feedback(message) } it "includes message with name and email" do mail.subject.should eq("RailsCasts Feedback from #{message.name}") mail.to.should eq(["feedback@railscasts.com"]) mail.from.should eq([message.email]) mail.body.encoded.should match(message.content) end end describe "comment_response" do let(:user) { Factory(:user) } let(:comment) { Factory(:comment) } let(:mail) { Mailer.comment_response(comment, user) } it "includes comment content and link to comment page" do mail.subject.should eq("Comment Response on RailsCasts") mail.to.should eq([user.email]) mail.from.should eq(["noreply@railscasts.com"]) mail.body.encoded.should include(comment.content) mail.body.encoded.should include(episode_url(comment.episode, :view => "comments")) mail.body.encoded.should include(unsubscribe_url(user.generated_unsubscribe_token)) end end end
35
89
0.698618
3f9a1bd602cd66eed611167b076990144b44581c
1,027
php
PHP
app/views/resetpassword.blade.php
manjot96/note-to-myself
d2fe7ca9ad1b49624f2c590b8adc9937283f90ae
[ "MIT" ]
null
null
null
app/views/resetpassword.blade.php
manjot96/note-to-myself
d2fe7ca9ad1b49624f2c590b8adc9937283f90ae
[ "MIT" ]
null
null
null
app/views/resetpassword.blade.php
manjot96/note-to-myself
d2fe7ca9ad1b49624f2c590b8adc9937283f90ae
[ "MIT" ]
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> <link rel="shortcut icon" href="pencil.ico" /> <title>Note to Myself - Reset Password</title> {{HTML::style('css/register2.css')}} </head> <body> <h1>Reset Your Password</h1> <p> Type your email address in the text box below. A new password will be sent to your email address. </p> <form action="/send" method="post"> <ul> <li> <h3>Email address<span id="validEmail"></span></h3> <p> <input type="text" name="email" id="email" tabindex="1" value=""/> </p> </li> <li class="last"> <p> <!--<a id="signup" href="#"> --> <input type="submit" value="Email new password" alt="password-reminder button" style="vertical-align:middle;" tabindex="5" /> <!--</a>--> </p> </li> </ul> </form> </body> </html>
22.326087
130
0.554041
b7815528d74440977d459ae6ccbd5a7b165d6b49
147
cs
C#
Assets/FullSerializer/Testing/RuntimeTests/Providers/ValueHolder.cs
bzwill/fullserializer
dc1662538797280d109506dab4d25c6678c60eaa
[ "MIT" ]
1,019
2015-01-05T09:15:49.000Z
2022-03-29T19:23:21.000Z
Assets/FullSerializer/Testing/RuntimeTests/Providers/ValueHolder.cs
bzwill/fullserializer
dc1662538797280d109506dab4d25c6678c60eaa
[ "MIT" ]
154
2015-01-03T02:54:32.000Z
2022-02-16T23:01:29.000Z
Assets/FullSerializer/Testing/RuntimeTests/Providers/ValueHolder.cs
bzwill/fullserializer
dc1662538797280d109506dab4d25c6678c60eaa
[ "MIT" ]
193
2015-01-14T16:10:00.000Z
2022-03-29T05:27:40.000Z
public class ValueHolder<T> { public T Value; public ValueHolder() { } public ValueHolder(T value) { Value = value; } }
14.7
33
0.578231
4edcab069131d75bfedf8e023cd887cf40c0f694
1,423
asm
Assembly
Transynther/x86/_processed/NONE/_st_zr_un_/i7-7700_9_0x48.log_14_2507.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_zr_un_/i7-7700_9_0x48.log_14_2507.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_zr_un_/i7-7700_9_0x48.log_14_2507.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %rax push %rbp lea addresses_normal_ht+0x414, %r8 nop nop nop sub $52742, %r15 movb $0x61, (%r8) nop xor $26049, %rax pop %rbp pop %rax pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r14 push %r9 push %rbp push %rcx push %rdi push %rdx // Store lea addresses_normal+0x170a, %r9 nop nop nop cmp %rcx, %rcx mov $0x5152535455565758, %r14 movq %r14, %xmm5 movups %xmm5, (%r9) nop nop nop nop nop sub %rdi, %rdi // Faulty Load lea addresses_A+0x22ba, %rdx clflush (%rdx) nop nop inc %rcx vmovups (%rdx), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %r14 lea oracles, %r9 and $0xff, %r14 shlq $12, %r14 mov (%r9,%r14,1), %r14 pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'3c': 1, '04': 1, 'ff': 4, '00': 8} 00 ff ff 00 00 00 04 ff 00 3c 00 00 00 ff */
18.012658
128
0.645116
e2656327bb1d2bde443f4fb17146f05861ccfaf8
1,522
py
Python
augmentation/paraphrase/paraphrasing.py
rit1200/kairon
674a491f6deeae4800825ca93e0726e4fb6e0866
[ "Apache-2.0" ]
97
2020-08-18T10:07:48.000Z
2022-03-26T18:33:37.000Z
augmentation/paraphrase/paraphrasing.py
rit1200/kairon
674a491f6deeae4800825ca93e0726e4fb6e0866
[ "Apache-2.0" ]
276
2020-08-27T23:24:35.000Z
2022-03-31T09:43:30.000Z
augmentation/paraphrase/paraphrasing.py
rit1200/kairon
674a491f6deeae4800825ca93e0726e4fb6e0866
[ "Apache-2.0" ]
46
2020-09-11T13:29:41.000Z
2022-03-08T12:27:17.000Z
import torch from transformers import PegasusForConditionalGeneration, PegasusTokenizer class ParaPhrasing: """Class loads pegasus model for text augmentation""" model_name = 'tuner007/pegasus_paraphrase' torch_device = 'cuda' if torch.cuda.is_available() else 'cpu' tokenizer = PegasusTokenizer.from_pretrained(model_name) model = PegasusForConditionalGeneration.from_pretrained(model_name).to(torch_device) @staticmethod def paraphrases(input_text, num_return_sequences=10, num_beams=10): """ generates variations for a given sentence/text :param input_text: sentence or text :param num_return_sequences: Number of variations to be returned :param num_beams: Number of beams for beam search. 1 means no beam search :return: list of variations of the input text """ if isinstance(input_text, str): input_text = [input_text] batch = ParaPhrasing.tokenizer.prepare_seq2seq_batch(input_text, truncation=True, padding='longest', max_length=60, return_tensors="pt").to( ParaPhrasing.torch_device) translated = ParaPhrasing.model.generate(**batch, max_length=60, num_beams=num_beams, num_return_sequences=num_return_sequences, temperature=1.5) tgt_text = ParaPhrasing.tokenizer.batch_decode(translated, skip_special_tokens=True) return list(set(tgt_text))
46.121212
108
0.679369
7fb8a87bc4a456684cb5d90488257b64692069a6
938
php
PHP
database/migrations/2021_10_03_015259_create_admin_facturas_table.php
AllanMonje12/Pos
1a7c7844777864a470c86b01f12fb83fa651449c
[ "MIT" ]
null
null
null
database/migrations/2021_10_03_015259_create_admin_facturas_table.php
AllanMonje12/Pos
1a7c7844777864a470c86b01f12fb83fa651449c
[ "MIT" ]
null
null
null
database/migrations/2021_10_03_015259_create_admin_facturas_table.php
AllanMonje12/Pos
1a7c7844777864a470c86b01f12fb83fa651449c
[ "MIT" ]
null
null
null
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAdminFacturasTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('admin_facturas', function (Blueprint $table) { $table->id(); $table->string('factura_inicial',); $table->string('factura_final'); $table->string('cai', 100); $table->string('factura_actual'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { DB::statement('SET FOREIGN_KEY_CHECKS = 0'); Schema::dropIfExists('admin_facturas'); DB::statement('SET FOREIGN_KEY_CHECKS = 1'); } }
21.813953
70
0.557569
0d79338228d1e27d3dc8aa0ba6d44868db766396
91,273
c
C
mDNSMacOSX/dnssec_v2/dnssec_v2_retrieval.c
kittywhisker/mDNSResponder
e6f5ae63a47ba8c13c653a440daf8add756a8f19
[ "Apache-2.0" ]
null
null
null
mDNSMacOSX/dnssec_v2/dnssec_v2_retrieval.c
kittywhisker/mDNSResponder
e6f5ae63a47ba8c13c653a440daf8add756a8f19
[ "Apache-2.0" ]
null
null
null
mDNSMacOSX/dnssec_v2/dnssec_v2_retrieval.c
kittywhisker/mDNSResponder
e6f5ae63a47ba8c13c653a440daf8add756a8f19
[ "Apache-2.0" ]
null
null
null
// // dnssec_v2_retrieval.c // mDNSResponder // // Copyright (c) 2020 Apple Inc. All rights reserved. // #include "mDNSEmbeddedAPI.h" #if MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2) #include <string.h> // for strerror #include <errno.h> // for errno #include "DNSCommon.h" #include "dnssec_v2.h" #include "dnssec_v2_helper.h" #include "dnssec_v2_retrieval.h" #include "dnssec_v2_client.h" //====================================================================================================================== // local functions prototypes //====================================================================================================================== mDNSlocal response_type_t determine_response_type(mDNSu16 rr_type, const mDNSu8 *const _Nullable rdata, const mDNSu16 question_type); mDNSlocal mDNSBool domain_name_end_with(const mDNSu8 *const _Nonnull longer, const mDNSu8 *const _Nonnull shorter); mDNSlocal const mDNSu8 *_Nullable get_parent_zone_name(const list_t *const _Nonnull zones, originals_with_rrsig_t *const _Nonnull original); mDNSlocal mDNSBool nsec_nsec3_contains_rrsigs_with_same_signer(const list_t *const nsec_nsec3_list, mDNSu16 type); //====================================================================================================================== // functions //====================================================================================================================== //====================================================================================================================== // initialize_dnssec_status_t //====================================================================================================================== mDNSexport mStatus initialize_dnssec_status_t(dnssec_status_t *const _Nonnull status, const domainname *const _Nonnull qname, const mDNSu16 qtype, const mDNSu32 flags, void *const _Nonnull context) { // Query ends with ".local." and query for RRSIG or ANY type cannot be validated by DNSSEC even if the user sets the // kDNSServiceFlagsEnableDNSSEC flag. mDNSBool enable_dnssec = FLAGS_CONTAIN_DNSOK_BIT(flags) && is_eligible_for_dnssec(qname, qtype); if (enable_dnssec) { status->enable_dnssec = mDNStrue; status->tried_dnssec_but_unsigned = mDNSfalse; status->context = context; } else { // if the question does not enable DNSSEC, only status->enable_dnssec is meaningful. status->enable_dnssec = mDNSfalse; status->tried_dnssec_but_unsigned = mDNSfalse; status->context = mDNSNULL; } return mStatus_NoError; } //====================================================================================================================== // uninitialize_dnssec_status_t //====================================================================================================================== mDNSexport mStatus uninitialize_dnssec_status_t(dnssec_status_t *const _Nonnull __unused status) { status->enable_dnssec = mDNSfalse; status->tried_dnssec_but_unsigned = mDNSfalse; status->context = mDNSNULL; return mStatus_NoError; } #pragma mark - dnssec_context_t functions #pragma mark create_dnssec_context_t mDNSexport mStatus create_dnssec_context_t( QueryRecordClientRequest *const _Nullable request, const mDNSu32 request_id, const domainname *const _Nonnull question_name, const mDNSu16 question_type, const mDNSu16 question_class, const mDNSInterfaceID _Nullable interface_id, const mDNSs32 service_id, const mDNSu32 flags, const mDNSBool append_search_domains, const mDNSs32 pid, const mDNSu8 *_Nullable uuid, const mDNSs32 uid, #if MDNSRESPONDER_SUPPORTS(APPLE, AUDIT_TOKEN) const audit_token_t *_Nullable peer_audit_token_ptr, const audit_token_t *_Nullable delegate_audit_token_ptr, #endif #if MDNSRESPONDER_SUPPORTS(APPLE, QUERIER) const mDNSu8 *_Nullable resolver_uuid, mDNSBool need_encryption, const mdns_dns_service_id_t custom_id, #endif const QueryRecordResultHandler _Nonnull result_handler, void *const _Nullable result_context, dnssec_context_t *const _Nullable primary_dnssec_context, dnssec_context_t *_Nullable *const _Nonnull out_dnssec_context) { mStatus error = mStatus_NoError; dnssec_context_t *context = mDNSNULL; mDNSBool context_created = mDNSfalse; original_request_parameters_t *parameters; context = calloc(1, sizeof(dnssec_context_t)); // must use calloc here to set context to all 0s require_action(context != mDNSNULL, exit, error = mStatus_NoMemoryErr; log_debug("calloc failed; error_description='%s'", strerror(errno))); context_created = mDNStrue; context->me = request; list_init(&context->zone_chain, sizeof(dnssec_zone_t)); // initialize original request fields original_t *const original = &context->original; original->original_result_with_rrsig.type = unknown_response; parameters = &original->original_parameters; parameters->request_id = request_id; memcpy(parameters->question_name.c, question_name->c, DOMAIN_NAME_LENGTH(question_name->c)); parameters->question_name_hash = DomainNameHashValue(&parameters->question_name); parameters->question_type = question_type; parameters->question_class = question_class; parameters->interface_id = interface_id; parameters->service_id = service_id; parameters->flags = flags; parameters->append_search_domains = append_search_domains; parameters->pid = pid; if (uuid != mDNSNULL) { uuid_copy(parameters->uuid, uuid); } else { uuid_clear(parameters->uuid); } parameters->uid = uid; #if MDNSRESPONDER_SUPPORTS(APPLE, AUDIT_TOKEN) if (peer_audit_token_ptr != mDNSNULL) { parameters->peer_audit_token = *peer_audit_token_ptr; parameters->has_peer_audit_token = mDNStrue; } else { parameters->has_peer_audit_token = mDNSfalse; } if (delegate_audit_token_ptr != mDNSNULL) { parameters->delegate_audit_token = *delegate_audit_token_ptr; parameters->has_delegate_audit_token = mDNStrue; } else { parameters->has_delegate_audit_token = mDNSfalse; } #endif #if MDNSRESPONDER_SUPPORTS(APPLE, QUERIER) if (resolver_uuid != mDNSNULL) { uuid_copy(parameters->resolver_uuid, resolver_uuid); } else { uuid_clear(parameters->resolver_uuid); } parameters->need_encryption = need_encryption; parameters->custom_id = custom_id; #endif parameters->user_handler = result_handler; parameters->user_context = result_context; original->original_trust_anchor = mDNSNULL; original->last_time_add = INT_MIN; original->last_time_rmv = INT_MIN; // initialize returned_answers_t initialize_returned_answers_t(&context->returned_answers, dnssec_indeterminate, kDNSServiceErr_Invalid); // initialize denial of existence fields context->denial_of_existence_records = mDNSNULL; context->primary_dnssec_context = primary_dnssec_context; context->subtask_dnssec_context = mDNSNULL; *out_dnssec_context = context; exit: if (error != mStatus_NoError && context_created) { free(context); } return error; } #pragma mark print_dnssec_context_t mDNSexport void print_dnssec_context_t(const dnssec_context_t *const _Nonnull context) { mDNSu8 num_of_tabs = 0; log_debug("\n"); log_debug(TAB_STR "DNSSEC Context:", TAB_PARAM(num_of_tabs)); print_original_request_parameters_t(&context->original.original_parameters, num_of_tabs + 1); log_debug(TAB_STR "--------------------------------------------------", TAB_PARAM(num_of_tabs)); log_debug(TAB_STR "Original Response:", TAB_PARAM(num_of_tabs)); print_originals_with_rrsig_t(&context->original.original_result_with_rrsig, num_of_tabs + 1); log_debug(TAB_STR "--------------------------------------------------", TAB_PARAM(num_of_tabs)); log_debug(TAB_STR "Zones:", TAB_PARAM(num_of_tabs)); for (list_node_t *node = list_get_first(&context->zone_chain); !list_has_ended(&context->zone_chain, node); node = list_next(node)) { dnssec_zone_t *zone = (dnssec_zone_t *)node->data; print_dnssec_zone_t(zone, num_of_tabs + 1); } log_debug(TAB_STR "Returned Response:", TAB_PARAM(num_of_tabs)); print_returned_answers_t(&context->returned_answers, num_of_tabs + 1); log_debug(TAB_STR "--------------------------------------------------", TAB_PARAM(num_of_tabs)); log_debug("\n"); } #pragma mark destroy_dnssec_context_t mDNSexport void destroy_dnssec_context_t(dnssec_context_t *const _Nonnull context) { list_uninit(&context->zone_chain); uninitialize_returned_answers_t(&context->returned_answers); free(context); } #pragma mark - add_no_error_records mDNSlocal mDNSBool is_response_for_original_request( const original_t *const _Nonnull original, const DNSQuestion *const _Nonnull question); mDNSexport dnssec_retrieval_result_t add_no_error_records( mDNS *const _Nonnull m, DNSQuestion *_Nonnull question, const ResourceRecord *const _Nonnull answer, const QC_result add_record, const DNSServiceErrorType dns_result_error, dnssec_context_t *const _Nonnull dnssec_context) { dnssec_retrieval_result_t result; dnssec_zone_t *const zone = find_dnssec_zone_t(&dnssec_context->zone_chain, question->qname.c); if (is_response_for_original_request(&dnssec_context->original, question)) { // original response requested by user result = update_original_from_cache_for_no_error_response(m, question, answer, add_record, dns_result_error, dnssec_context); require_quiet(result == dnssec_retrieval_no_error, exit); } // it is possible that user queries for A record for apple.com, and there is also a zone called "apple.com" if (zone != mDNSNULL) { // DS/DNSKEY response result = update_dnssec_zone_t_from_cache_for_no_error_response(m, question, answer, add_record, zone); require_quiet(result == dnssec_retrieval_no_error, exit); } result = dnssec_retrieval_no_error; exit: return result; } #pragma mark is_response_for_original_request mDNSlocal mDNSBool is_response_for_original_request( const original_t *const _Nonnull original, const DNSQuestion *const _Nonnull question) { mDNSBool is_original_request = mDNSfalse; const original_request_parameters_t *const parameters = &original->original_parameters; if (parameters->question_name_hash != question->qnamehash) { goto exit; } if (parameters->question_type != question->qtype) { goto exit; } if (parameters->question_class != question->qclass) { goto exit; } if (!DOMAIN_NAME_EQUALS(parameters->question_name.c, question->qname.c)) { goto exit; } is_original_request = mDNStrue; exit: return is_original_request; } #pragma mark - add_denial_of_existence_records mDNSexport dnssec_retrieval_result_t add_denial_of_existence_records( const mDNS *const _Nonnull m, const DNSQuestion *_Nonnull question, ResourceRecord *const _Nonnull answer, const QC_result add_record, const DNSServiceErrorType dns_result_error, dnssec_context_t *const _Nonnull dnssec_context) { dnssec_retrieval_result_t result; if (is_response_for_original_request(&dnssec_context->original, question)) { result = update_original_from_cache_for_denial_of_existence_response(m, question, answer, add_record, dns_result_error, dnssec_context); require_quiet(result == dnssec_retrieval_no_error, exit); } else { result = dnssec_retrieval_non_dnskey_ds_record_for_zone; goto exit; } exit: return result; } //====================================================================================================================== // fetch_necessary_dnssec_records //====================================================================================================================== mDNSexport dnssec_retrieval_result_t fetch_necessary_dnssec_records(dnssec_context_t *const _Nonnull context, mDNSBool anchor_reached) { // if we reach here, it means we need at least 1 zone node to finish the validation process // or the current top parent node has a trust anchor that does not pass the validation mStatus error = mStatus_NoError; dnssec_retrieval_result_t retrieval_result = dnssec_retrieval_no_error; list_t *zones = &context->zone_chain; dnssec_zone_t *zone = mDNSNULL; original_request_parameters_t *params = &context->original.original_parameters; const mDNSu8 *parent_zone_name; const mDNSu32 request_id = context->original.original_parameters.request_id; zone = list_empty(zones) ? mDNSNULL : (dnssec_zone_t *)list_get_last(zones)->data; mDNSBool is_root = (zone != mDNSNULL) ? (is_root_domain(zone->domain_name.c)) : mDNSfalse; require_action_quiet(!is_root, exit, retrieval_result = dnssec_retrieval_waiting_for_records); if (zone == mDNSNULL || zone->trust_anchor == mDNSNULL) { // normal case, get new records from the "Signer Name" parent_zone_name = get_parent_zone_name(zones, &context->original.original_result_with_rrsig); require_action_quiet(parent_zone_name != mDNSNULL, exit, retrieval_result = dnssec_retrieval_waiting_for_records); require_action(list_count_node(zones) < MAX_ZONES_ALLOWED, exit, retrieval_result = dnssec_retrieval_too_many_zones); error = list_append_uinitialized(zones, sizeof(dnssec_zone_t), (void **)&zone); require_action(error == mStatus_NoError, exit, retrieval_result = dnssec_retrieval_record_not_added; log_debug("list_add_front_uinitialized failed; error_description='%s'", mStatusDescription(error))); initialize_dnssec_zone_t(zone, parent_zone_name); if (trust_anchor_contains_dnskey(zone->trust_anchor)) { retrieval_result = dnssec_retrieval_validate_again; zone->dnskey_request_started = mDNSfalse; zone->ds_request_started = mDNSfalse; } else if (trust_anchor_contains_ds(zone->trust_anchor)) { zone->dnskey_request_started = mDNStrue; zone->ds_request_started = mDNSfalse; } else { zone->dnskey_request_started = mDNStrue; zone->ds_request_started = mDNStrue; } if (zone->dnskey_request_started) { error = QueryRecordOpStartForClientRequest( &zone->dnskey_request.op, params->request_id, (const domainname *)parent_zone_name, kDNSType_DNSKEY, params->question_class, params->interface_id, params->service_id, params->flags, params->append_search_domains, params->pid, params->uuid, params->uid, #if MDNSRESPONDER_SUPPORTS(APPLE, AUDIT_TOKEN) params->has_peer_audit_token ? &params->peer_audit_token : mDNSNULL, params->has_delegate_audit_token ? &params->delegate_audit_token : mDNSNULL, #endif #if MDNSRESPONDER_SUPPORTS(APPLE, QUERIER) params->resolver_uuid, params->need_encryption, params->custom_id, #endif query_record_result_reply_with_dnssec, context); require_action(error == mStatus_NoError, exit, retrieval_result = dnssec_retrieval_query_failed; log_debug("QueryRecordOpStart failed; error_description='%s'", mStatusDescription(error))); } if (zone->ds_request_started) { error = QueryRecordOpStartForClientRequest( &zone->ds_request.op, params->request_id, (const domainname *)parent_zone_name, kDNSType_DS, params->question_class, params->interface_id, params->service_id, params->flags, params->append_search_domains, params->pid, params->uuid, params->uid, #if MDNSRESPONDER_SUPPORTS(APPLE, AUDIT_TOKEN) params->has_peer_audit_token ? &params->peer_audit_token : mDNSNULL, params->has_delegate_audit_token ? &params->delegate_audit_token : mDNSNULL, #endif #if MDNSRESPONDER_SUPPORTS(APPLE, QUERIER) params->resolver_uuid, params->need_encryption, params->custom_id, #endif query_record_result_reply_with_dnssec, context); require_action(error == mStatus_NoError, exit, retrieval_result = dnssec_retrieval_query_failed; log_debug("QueryRecordOpStart failed; error_description='%s'", mStatusDescription(error))); } } else { // special case where the trust anchor does not verify the records require_action_quiet(anchor_reached, exit, retrieval_result = dnssec_retrieval_waiting_for_records; log_default("[R%u] still waiting for the response from child zones", request_id)); zone->trust_anchor = mDNSNULL; if (!zone->dnskey_request_started) { error = QueryRecordOpStartForClientRequest( &zone->dnskey_request.op, params->request_id, &zone->domain_name, kDNSType_DNSKEY, params->question_class, params->interface_id, params->service_id, params->flags, params->append_search_domains, params->pid, params->uuid, params->uid, #if MDNSRESPONDER_SUPPORTS(APPLE, AUDIT_TOKEN) params->has_peer_audit_token ? &params->peer_audit_token : mDNSNULL, params->has_delegate_audit_token ? &params->peer_audit_token : mDNSNULL, #endif #if MDNSRESPONDER_SUPPORTS(APPLE, QUERIER) params->resolver_uuid, params->need_encryption, params->custom_id, #endif query_record_result_reply_with_dnssec, context); require_action(error == mStatus_NoError, exit, retrieval_result = dnssec_retrieval_query_failed; log_debug("QueryRecordOpStart failed; error_description='%s'", mStatusDescription(error))); zone->dnskey_request_started = mDNStrue; } if (!zone->ds_request_started && !is_root_domain(zone->domain_name.c)) { error = QueryRecordOpStartForClientRequest( &zone->ds_request.op, params->request_id, &zone->domain_name, kDNSType_DS, params->question_class, params->interface_id, params->service_id, params->flags, params->append_search_domains, params->pid, params->uuid, params->uid, #if MDNSRESPONDER_SUPPORTS(APPLE, AUDIT_TOKEN) params->has_peer_audit_token ? &params->peer_audit_token : mDNSNULL, params->has_delegate_audit_token ? &params->delegate_audit_token : mDNSNULL, #endif #if MDNSRESPONDER_SUPPORTS(APPLE, QUERIER) params->resolver_uuid, params->need_encryption, params->custom_id, #endif query_record_result_reply_with_dnssec, context); require_action(error == mStatus_NoError, exit, retrieval_result = dnssec_retrieval_query_failed; log_debug("QueryRecordOpStart failed; error_description='%s'", mStatusDescription(error))); zone->ds_request_started = mDNStrue; } } exit: if (retrieval_result < 0) { if (zone != mDNSNULL) { if (zone->dnskey_request_started || zone->ds_request_started) { // TODO: return correct error code to user and clean the dnssec related structure gracefully } uninitialize_dnssec_zone_t(zone); list_delete_node_with_data_ptr(zones, (void *)zone); } } return retrieval_result; } //====================================================================================================================== // find_dnssec_zone_t //====================================================================================================================== mDNSexport dnssec_zone_t *_Nullable find_dnssec_zone_t(const list_t *const _Nonnull zones, const mDNSu8 *const _Nonnull name) { for (list_node_t *ptr = list_get_first(zones); !list_has_ended(zones, ptr); ptr = list_next(ptr)) { dnssec_zone_t *zone = (dnssec_zone_t *)ptr->data; if (DOMAIN_NAME_EQUALS(&zone->domain_name, name)) { return zone; } } return mDNSNULL; } //====================================================================================================================== // add_to_cname_with_rrsig_t //====================================================================================================================== mDNSexport mStatus add_to_cname_with_rrsig_t(cnames_with_rrsig_t *const _Nonnull cnames_with_rrisg, ResourceRecord *const _Nonnull rr) { mStatus error = mStatus_NoError; list_t *cname_records = &cnames_with_rrisg->cname_records; list_t *rrsig_records = &cnames_with_rrisg->rrsig_records; dnssec_cname_t *cname = mDNSNULL; dnssec_rrsig_t *rrsig = mDNSNULL; if (rr->rrtype == kDNSType_CNAME) { error = list_append_uinitialized(cname_records, sizeof(dnssec_cname_t), (void **)&cname); require_action(error == mStatus_NoError, exit, log_debug("list_append_uinitialized failed; error_description='%s'", mStatusDescription(error))); initialize_dnssec_cname_t(cname, rr); } else { mDNSBool is_rrsig_valid = mDNSfalse; verify(rr->rrtype == kDNSType_RRSIG); error = list_append_uinitialized(&cnames_with_rrisg->rrsig_records, sizeof(dnssec_rrsig_t), (void **)&rrsig); require_action(error == mStatus_NoError, exit, log_debug("list_append_uinitialized failed; error_description='%s'", mStatusDescription(error))); is_rrsig_valid = initialize_dnssec_rrsig_t(rrsig, rr); require_action_quiet(is_rrsig_valid, exit, error = mStatus_BadParamErr; log_debug("When adding RRSIG for CNAME, RRSIG does not pass validation")); } exit: if (error != mStatus_NoError) { if (rrsig != mDNSNULL) { list_delete_node_with_data_ptr(rrsig_records, rrsig); } if (cname != mDNSNULL) { list_delete_node_with_data_ptr(cname_records, cname); } } return error; } //====================================================================================================================== // add_to_nsec_with_rrsig_t //====================================================================================================================== mDNSexport mStatus add_to_nsec_with_rrsig_t(nsecs_with_rrsig_t *const _Nonnull nsecs_with_rrisg, ResourceRecord *const _Nonnull rr) { mStatus error = mStatus_NoError; list_t *const nsec_list = &nsecs_with_rrisg->nsec_and_rrsigs_same_name; const mDNSu8 *const owner_name = rr->name->c; const mDNSu32 name_hash = DomainNameHashValue(rr->name); mDNSBool is_valid = mDNSfalse; const mDNSu8 *owner_name_to_compare; mDNSu32 name_hash_to_compare; if (rr->rrtype == kDNSType_NSEC) { one_nsec_with_rrsigs_t *new_one_nsec = mDNSNULL; for (list_node_t *nsec_node = list_get_first(nsec_list); !list_has_ended(nsec_list, nsec_node); nsec_node = list_next(nsec_node)) { one_nsec_with_rrsigs_t *const one_nsec = (one_nsec_with_rrsigs_t *const)nsec_node->data; if (one_nsec->owner_name != mDNSNULL) { owner_name_to_compare = one_nsec->owner_name; name_hash_to_compare = one_nsec->nsec_record.dnssec_rr.name_hash; require_action_quiet(name_hash_to_compare != name_hash || !DOMAIN_NAME_EQUALS(owner_name_to_compare, owner_name), insert_nsec_exit, error = mStatus_BadParamErr; log_debug("two NSEC records have the same owner name - owner name: " PRI_DM_NAME, DM_NAME_PARAM((const domainname *)owner_name)) ); } else { require_action(!list_empty(&one_nsec->rrsig_records), insert_nsec_exit, error = mStatus_Invalid; log_error("empty one_nsec_with_rrsigs_t created")); const dnssec_rrsig_t *const first_rrsig = (const dnssec_rrsig_t *const)(list_get_first( &one_nsec->rrsig_records)->data); owner_name_to_compare = first_rrsig->dnssec_rr.name.c; name_hash_to_compare = first_rrsig->dnssec_rr.name_hash; if (name_hash_to_compare != name_hash || !DOMAIN_NAME_EQUALS(owner_name_to_compare, owner_name)) { continue; } is_valid = initialize_dnssec_nsec_t(&one_nsec->nsec_record, rr); require_action_quiet(is_valid, insert_nsec_exit, error = mStatus_BadParamErr; log_debug("NSEC record initialization failed because of the malformated resource record")); one_nsec->owner_name = one_nsec->nsec_record.dnssec_rr.name.c; error = mStatus_NoError; goto insert_nsec_exit; } } // insert new one_nsec error = list_append_uinitialized(nsec_list, sizeof(one_nsec_with_rrsigs_t), (void **)&new_one_nsec); require_action(error == mStatus_NoError, insert_nsec_exit, log_error("list_append_uinitialized failed;")); is_valid = initialize_one_nsec_with_rrsigs_t(new_one_nsec, rr); require_action_quiet(is_valid, insert_nsec_exit, error = mStatus_BadParamErr; log_debug("One NSEC structure initialization failed because of malformated resource record - owner name: " PRI_DM_NAME, DM_NAME_PARAM(rr->name)) ); error = mStatus_NoError; insert_nsec_exit: if (error != mStatus_NoError) { if (new_one_nsec != mDNSNULL) { list_delete_node_with_data_ptr(nsec_list, new_one_nsec); } } } else if (rr->rrtype == kDNSType_RRSIG && get_covered_type_of_dns_type_rrsig_t(rr->rdata->u.data) == kDNSType_NSEC) { list_t *list_to_insert = mDNSNULL; one_nsec_with_rrsigs_t *new_one_nsec = mDNSNULL; dnssec_rrsig_t *new_rrsig = mDNSNULL; for (list_node_t *nsec_node = list_get_first(&nsecs_with_rrisg->nsec_and_rrsigs_same_name); !list_has_ended(nsec_list, nsec_node); nsec_node = list_next(nsec_node)) { one_nsec_with_rrsigs_t *const one_nsec = (one_nsec_with_rrsigs_t *const)nsec_node->data; if (one_nsec->owner_name != mDNSNULL) { owner_name_to_compare = one_nsec->owner_name; name_hash_to_compare = one_nsec->nsec_record.dnssec_rr.name_hash; } else if (!list_empty(&one_nsec->rrsig_records)) { const dnssec_rrsig_t *const first_rrsig = (const dnssec_rrsig_t *const)(list_get_first( &one_nsec->rrsig_records)->data); owner_name_to_compare = first_rrsig->dnssec_rr.name.c; name_hash_to_compare = first_rrsig->dnssec_rr.name_hash; } else { error = mStatus_Invalid; log_error("empty one_nsec_with_rrsigs_t created - rr owner name: " PRI_DM_NAME, DM_NAME_PARAM(rr->name)); goto insert_rrsig_exit; } if (name_hash_to_compare == name_hash && DOMAIN_NAME_EQUALS(owner_name_to_compare, owner_name)) { list_to_insert = &one_nsec->rrsig_records; break; } } if (list_to_insert == mDNSNULL) { // insert new one_nsec error = list_append_uinitialized(nsec_list, sizeof(one_nsec_with_rrsigs_t), (void **)&new_one_nsec); require_action(error == mStatus_NoError, insert_rrsig_exit, log_error("list_append_uinitialized failed;")); new_one_nsec->owner_name = mDNSNULL; list_init(&new_one_nsec->rrsig_records, sizeof(dnssec_rrsig_t)); list_to_insert = &new_one_nsec->rrsig_records; } // insert new rrsig error = list_append_uinitialized(list_to_insert, sizeof(dnssec_rrsig_t), (void **)&new_rrsig); require_action(error == mStatus_NoError, insert_rrsig_exit, log_error("list_append_uinitialized failed;")); is_valid = initialize_dnssec_rrsig_t(new_rrsig, rr); require_action_quiet(is_valid, insert_rrsig_exit, error = mStatus_BadParamErr; log_debug("When adding RRSIG for NSEC, RRSIG does not pass validation")); insert_rrsig_exit: if (error != mStatus_NoError) { if (new_rrsig != mDNSNULL) { list_delete_node_with_data_ptr(list_to_insert, new_rrsig); } if (new_one_nsec != mDNSNULL) { list_delete_node_with_data_ptr(nsec_list, new_one_nsec); } } } else { if (rr->rrtype != kDNSType_RRSIG) { // wildcard dnssec_rr_t *dnssec_rr = mDNSNULL; error = list_append_uinitialized(&nsecs_with_rrisg->wildcard_answers, sizeof(dnssec_rr_t), (void **)&dnssec_rr); require_action(error == mStatus_NoError, exit, log_error("list_append_uinitialized failed;")); initialize_dnssec_rr_t(dnssec_rr, rr); } else { // RRSIG dnssec_rrsig_t *dnssec_rrsig = mDNSNULL; error = list_append_uinitialized(&nsecs_with_rrisg->wildcard_rrsigs, sizeof(dnssec_rrsig_t), (void **)&dnssec_rrsig); require_action(error == mStatus_NoError, exit, log_error("list_append_uinitialized failed;")); is_valid = initialize_dnssec_rrsig_t(dnssec_rrsig, rr); require_action_quiet(is_valid, insert_wildcard_rrsig_exit, error = mStatus_BadParamErr; log_debug("When adding RRSIG for wildcard answer, RRSIG does not pass validation")); insert_wildcard_rrsig_exit: if (error != mStatus_NoError) { if (dnssec_rrsig != mDNSNULL) { list_delete_node_with_data_ptr(&nsecs_with_rrisg->wildcard_rrsigs, dnssec_rrsig); } } } } exit: return error; } //====================================================================================================================== // add_to_nsec3_with_rrsig_t //====================================================================================================================== mDNSexport mStatus add_to_nsec3_with_rrsig_t(nsec3s_with_rrsig_t *const _Nonnull nsec3s_with_rrisg, ResourceRecord *const _Nonnull rr) { mStatus error = mStatus_NoError; list_t *const nsec3_list = &nsec3s_with_rrisg->nsec3_and_rrsigs_same_name; const mDNSu8 *const owner_name = rr->name->c; const mDNSu32 name_hash = DomainNameHashValue(rr->name); mDNSBool is_valid = mDNStrue; const mDNSu8 *owner_name_to_compare; mDNSu32 name_hash_to_compare; if (rr->rrtype == kDNSType_NSEC3) { one_nsec3_with_rrsigs_t *new_one_nsec3 = mDNSNULL; for (list_node_t *nsec3_node = list_get_first(nsec3_list); !list_has_ended(nsec3_list, nsec3_node); nsec3_node = list_next(nsec3_node)) { one_nsec3_with_rrsigs_t *const one_nsec3 = (one_nsec3_with_rrsigs_t *const)nsec3_node->data; if (one_nsec3->owner_name != mDNSNULL) { owner_name_to_compare = one_nsec3->owner_name; name_hash_to_compare = one_nsec3->nsec3_record.dnssec_rr.name_hash; require_action_quiet(name_hash_to_compare != name_hash || !DOMAIN_NAME_EQUALS(owner_name_to_compare, owner_name), insert_nsec3_exit, error = mStatus_BadParamErr; log_debug("two NSEC3 records have the same owner name - owner name: " PRI_DM_NAME, DM_NAME_PARAM((const domainname *)owner_name)) ); } else { require_action(!list_empty(&one_nsec3->rrsig_records), exit, error = mStatus_Invalid; log_error("empty one_nsec3_with_rrsigs_t created")); const dnssec_rrsig_t *const first_rrsig = (const dnssec_rrsig_t *const)(list_get_first( &one_nsec3->rrsig_records)->data); owner_name_to_compare = first_rrsig->dnssec_rr.name.c; name_hash_to_compare = first_rrsig->dnssec_rr.name_hash; if (name_hash_to_compare != name_hash || !DOMAIN_NAME_EQUALS(owner_name_to_compare, owner_name)) { continue; } is_valid = initialize_dnssec_nsec3_t(&one_nsec3->nsec3_record, rr); require_action_quiet(is_valid, insert_nsec3_exit, error = mStatus_BadParamErr; log_debug("NSEC record initialization failed because of the malformated resource record")); one_nsec3->owner_name = one_nsec3->nsec3_record.dnssec_rr.name.c; error = mStatus_NoError; goto insert_nsec3_exit; } } // insert new one_nsec3 error = list_append_uinitialized(nsec3_list, sizeof(one_nsec3_with_rrsigs_t), (void **)&new_one_nsec3); require_action(error == mStatus_NoError, insert_nsec3_exit, log_error("list_append_uinitialized failed;")); is_valid = initialize_one_nsec3_with_rrsigs_t(new_one_nsec3, rr); require_action_quiet(is_valid, insert_nsec3_exit, error = mStatus_BadParamErr; log_debug("One NSEC3 structure initialization failed because of malformated resource record - owner name: " PRI_DM_NAME, DM_NAME_PARAM(rr->name)) ); insert_nsec3_exit: if (error != mStatus_NoError) { if (new_one_nsec3 != mDNSNULL) { list_delete_node_with_data_ptr(nsec3_list, new_one_nsec3); } } } else if (rr->rrtype == kDNSType_RRSIG && get_covered_type_of_dns_type_rrsig_t(rr->rdata->u.data) == kDNSType_NSEC3) { list_t *list_to_insert = mDNSNULL; one_nsec3_with_rrsigs_t *new_one_nsec3 = mDNSNULL; dnssec_rrsig_t *new_rrsig = mDNSNULL; for (list_node_t *nsec3_node = list_get_first(nsec3_list); !list_has_ended(nsec3_list, nsec3_node); nsec3_node = list_next(nsec3_node)) { one_nsec3_with_rrsigs_t *const one_nsec3 = (one_nsec3_with_rrsigs_t *const)nsec3_node->data; if (one_nsec3->owner_name != mDNSNULL) { owner_name_to_compare = one_nsec3->owner_name; name_hash_to_compare = one_nsec3->nsec3_record.dnssec_rr.name_hash; } else if (!list_empty(&one_nsec3->rrsig_records)) { const dnssec_rrsig_t *const first_rrsig = (const dnssec_rrsig_t *const)(list_get_first( &one_nsec3->rrsig_records)->data); owner_name_to_compare = first_rrsig->dnssec_rr.name.c; name_hash_to_compare = first_rrsig->dnssec_rr.name_hash; } else { error = mStatus_Invalid; log_error("empty one_nsec3_with_rrsigs_t created - rr owner name: " PRI_DM_NAME, DM_NAME_PARAM(rr->name)); goto insert_rrsig_exit; } if (name_hash_to_compare == name_hash && DOMAIN_NAME_EQUALS(owner_name_to_compare, owner_name)) { list_to_insert = &one_nsec3->rrsig_records; } } if (list_to_insert == mDNSNULL) { // insert new one_nsec3 error = list_append_uinitialized(nsec3_list, sizeof(one_nsec3_with_rrsigs_t), (void **)&new_one_nsec3); require_action(error == mStatus_NoError, insert_rrsig_exit, log_error("list_append_uinitialized failed")); new_one_nsec3->owner_name = mDNSNULL; list_init(&new_one_nsec3->rrsig_records, sizeof(dnssec_rrsig_t)); list_to_insert = &new_one_nsec3->rrsig_records; } // insert new rrsig error = list_append_uinitialized(list_to_insert, sizeof(dnssec_rrsig_t), (void **)&new_rrsig); require_action(error == mStatus_NoError, insert_rrsig_exit, log_error("list_append_uinitialized failed;")); is_valid = initialize_dnssec_rrsig_t(new_rrsig, rr); require_action_quiet(is_valid, insert_rrsig_exit, error = mStatus_BadParamErr; log_debug("When adding RRSIG for NSEC3, RRSIG does not pass validation")); insert_rrsig_exit: if (error != mStatus_NoError) { if (new_rrsig != mDNSNULL) { list_delete_node_with_data_ptr(list_to_insert, new_rrsig); } if (new_one_nsec3 != mDNSNULL) { list_delete_node_with_data_ptr(nsec3_list, new_one_nsec3); } } } else { if (rr->rrtype != kDNSType_RRSIG) { // wildcard dnssec_rr_t *dnssec_rr = mDNSNULL; error = list_append_uinitialized(&nsec3s_with_rrisg->wildcard_answers, sizeof(dnssec_rr_t), (void **)&dnssec_rr); require_action(error == mStatus_NoError, exit, log_error("list_append_uinitialized failed;")); initialize_dnssec_rr_t(dnssec_rr, rr); } else { // RRSIG dnssec_rrsig_t *dnssec_rrsig = mDNSNULL; error = list_append_uinitialized(&nsec3s_with_rrisg->wildcard_rrsigs, sizeof(dnssec_rrsig_t), (void **)&dnssec_rrsig); require_action(error == mStatus_NoError, exit, log_error("list_append_uinitialized failed;")); is_valid = initialize_dnssec_rrsig_t(dnssec_rrsig, rr); require_action_quiet(is_valid, insert_wildcard_rrsig_exit, error = mStatus_BadParamErr; log_debug("When adding RRSIG for wildcard answer, RRSIG does not pass validation")); insert_wildcard_rrsig_exit: if (error != mStatus_NoError) { if (dnssec_rrsig != mDNSNULL) { list_delete_node_with_data_ptr(&nsec3s_with_rrisg->wildcard_rrsigs, dnssec_rrsig); } } } } exit: return error; } //====================================================================================================================== // add_to_originals_with_rrsig_t //====================================================================================================================== mDNSexport mStatus add_to_originals_with_rrsig_t( originals_with_rrsig_t *const _Nonnull originals_with_rrisg, ResourceRecord *const _Nonnull rr, const mDNSBool answer_from_cache, const DNSServiceErrorType dns_error, const QC_result qc_result) { mStatus error = mStatus_NoError; if (originals_with_rrisg->type == original_response) { dnssec_rrsig_t *rrsig = mDNSNULL; dnssec_original_t *original = mDNSNULL; if (rr->rrtype == kDNSType_RRSIG) { // the corresponding RRISG that covers the requested RR, and RRSIG cannot be the requested error = list_append_uinitialized(&originals_with_rrisg->u.original.rrsig_records, sizeof(dnssec_rrsig_t), (void **)&rrsig); require_action(error == mStatus_NoError, original_response_exit, log_debug("list_add_front_uinitialized failed; error_description='%s'", mStatusDescription(error))); mDNSBool is_rrsig_valid= initialize_dnssec_rrsig_t(rrsig, rr); require_action_quiet(is_rrsig_valid, original_response_exit, error = mStatus_BadParamErr; log_debug("When adding RRSIG for original response, RRSIG does not pass validation")); } else { error = list_append_uinitialized(&originals_with_rrisg->u.original.original_records, sizeof(dnssec_original_t), (void **)&original); require_action(error == mStatus_NoError, original_response_exit, log_debug("list_add_front_uinitialized failed; error_description='%s'", mStatusDescription(error))); initialize_dnssec_original_t(original, rr, answer_from_cache, dns_error, qc_result); } original_response_exit: if (error != mStatus_NoError) { if (original != mDNSNULL) { list_delete_node_with_data_ptr(&originals_with_rrisg->u.original.original_records, (void *)original); } if (rrsig != mDNSNULL) { list_delete_node_with_data_ptr(&originals_with_rrisg->u.original.rrsig_records, (void *)rrsig); } goto exit; } } else if (originals_with_rrisg->type == cname_response) { error = add_to_cname_with_rrsig_t(&originals_with_rrisg->u.cname_with_rrsig, rr); require_action(error == mStatus_NoError, exit, log_debug("add_to_cname_with_rrsig_t failed; error_description='%s'", mStatusDescription(error))); } else if (originals_with_rrisg->type == nsec_response) { error = add_to_nsec_with_rrsig_t(&originals_with_rrisg->u.nsecs_with_rrsig, rr); require_action(error == mStatus_NoError, exit, log_debug("add_to_nsec_with_rrsig_t failed; error_description='%s'", mStatusDescription(error))); } else if (originals_with_rrisg->type == nsec3_response) { error = add_to_nsec3_with_rrsig_t(&originals_with_rrisg->u.nsec3s_with_rrsig, rr); require_action(error == mStatus_NoError, exit, log_debug("add_to_nsec3_with_rrsig_t failed; error_description='%s'", mStatusDescription(error))); } else { verify(mDNSfalse); } exit: return error; } //====================================================================================================================== // dnskeys_with_rrsig_t functions //====================================================================================================================== //====================================================================================================================== // add_to_dnskeys_with_rrsig_t //====================================================================================================================== mDNSexport mStatus add_to_dnskeys_with_rrsig_t(dnskeys_with_rrsig_t *const _Nonnull dnskeys_with_rrsig, ResourceRecord *const _Nonnull rr) { // dnskeys_with_rrsig != mDNSNULL && rr != mDNSNULL mStatus error = mStatus_NoError; mDNSBool is_valid = mDNStrue; dnssec_dnskey_t *dnskey = mDNSNULL; dnssec_rrsig_t *rrsig = mDNSNULL; if (rr->rrtype == kDNSType_DNSKEY) { error = list_append_uinitialized(&dnskeys_with_rrsig->dnskey_records, sizeof(dnssec_dnskey_t), (void **)&dnskey); require_action(error == mStatus_NoError, original_response_exit, log_debug("list_append_uinitialized failed; error_description='%s'", mStatusDescription(error))); is_valid = initialize_dnssec_dnskey_t(dnskey, rr); require_action_quiet(is_valid, original_response_exit, error = mStatus_BadParamErr; log_debug("When adding DNSKEY rdata for DNSKEY, rdata does not pass validation and does not get added")); } else { verify(rr->rrtype == kDNSType_RRSIG); error = list_append_uinitialized(&dnskeys_with_rrsig->rrsig_records, sizeof(dnssec_rrsig_t), (void **)&rrsig); require_action(error == mStatus_NoError, original_response_exit, log_debug("list_append_uinitialized failed; error_description='%s'", mStatusDescription(error))); is_valid = initialize_dnssec_rrsig_t(rrsig, rr); require_action_quiet(is_valid, original_response_exit, error = mStatus_BadParamErr; log_debug("When adding RRSIG for DNSKEY, RRSIG does not pass validation and does not get added")); } original_response_exit: if (error != mStatus_NoError) { if (dnskey != mDNSNULL) { list_delete_node_with_data_ptr(&dnskeys_with_rrsig->dnskey_records, dnskey); } if (rrsig != mDNSNULL) { list_delete_node_with_data_ptr(&dnskeys_with_rrsig->rrsig_records, rrsig); } } return error; } //====================================================================================================================== // add_to_dses_with_rrsig_t //====================================================================================================================== mDNSexport mStatus add_to_dses_with_rrsig_t(dses_with_rrsig_t *const _Nonnull dses_with_rrsig, ResourceRecord *const _Nonnull rr) { mStatus error = mStatus_NoError; mDNSBool is_valid = mDNSfalse; if (dses_with_rrsig->type == original_response) { dnssec_ds_t *ds = mDNSNULL; dnssec_rrsig_t *rrsig = mDNSNULL; if (rr->rrtype == kDNSType_DS) { error = list_append_uinitialized(&dses_with_rrsig->u.original.ds_records, sizeof(dnssec_ds_t), (void **)&ds); require_action(error == mStatus_NoError, original_response_exit, log_debug("list_append_uinitialized failed; error_description='%s'", mStatusDescription(error))); is_valid = initialize_dnssec_ds_t(ds, rr); require_action_quiet(is_valid, original_response_exit, error = mStatus_BadParamErr; log_debug("When adding DS rdata for DS, the rdata does not pass validation and does not get added")); } else { verify(rr->rrtype == kDNSType_RRSIG); error = list_append_uinitialized(&dses_with_rrsig->u.original.rrsig_records, sizeof(dnssec_rrsig_t), (void **)&rrsig); require_action(error == mStatus_NoError, original_response_exit, log_debug("list_append_uinitialized failed; error_description='%s'", mStatusDescription(error))); is_valid = initialize_dnssec_rrsig_t(rrsig, rr); require_action_quiet(is_valid, original_response_exit, error = mStatus_BadParamErr; log_debug("When adding RRSIG for DS, RRSIG does not pass validation and does not get added")); } original_response_exit: if (error != mStatus_NoError) { if (ds != mDNSNULL) { list_delete_node_with_data_ptr(&dses_with_rrsig->u.original.ds_records, (void *)ds); } if (rrsig != mDNSNULL) { list_delete_node_with_data_ptr(&dses_with_rrsig->u.original.rrsig_records, (void *)rrsig); } goto exit; } } else if (dses_with_rrsig->type == nsec_response) { error = add_to_nsec_with_rrsig_t(&dses_with_rrsig->u.nsecs_with_rrsig, rr); require_action(error == mStatus_NoError, exit, log_debug("add_to_nsec_with_rrsig_t failed; error_description='%s'", mStatusDescription(error))); } else if (dses_with_rrsig->type == nsec3_response) { error = add_to_nsec3_with_rrsig_t(&dses_with_rrsig->u.nsec3s_with_rrsig, rr); require_action(error == mStatus_NoError, exit, log_debug("add_to_nsec3_with_rrsig_t failed; error_description='%s'", mStatusDescription(error))); } else { error = mStatus_Invalid; log_error("invalid response type for DS record"); } exit: return error; } //====================================================================================================================== // initialize_denial_of_existence_records_t //====================================================================================================================== mDNSexport denial_of_existence_records_t *_Nullable create_denial_of_existence_records_t(void) { denial_of_existence_records_t *denial = malloc(sizeof(denial_of_existence_records_t)); require_quiet(denial != mDNSNULL, exit); list_init(&denial->resource_records, sizeof(ResourceRecord)); exit: return denial; } //====================================================================================================================== // destroy_denial_of_existence_records_t //====================================================================================================================== mDNSexport void destroy_denial_of_existence_records_t(denial_of_existence_records_t *const _Nonnull denial_of_existence_records) { list_t *denial_rrs = &denial_of_existence_records->resource_records; for (const list_node_t *rr_node = list_get_first(denial_rrs); !list_has_ended(denial_rrs, rr_node); rr_node = list_next(rr_node)) { ResourceRecord *const rr = (ResourceRecord *)rr_node->data; free_resource_record_deep_copied(rr); } list_uninit(denial_rrs); free(denial_of_existence_records); } mDNSexport void destroy_denial_of_existence_records_t_if_nonnull(denial_of_existence_records_t *const _Nonnull denial_of_existence_records) { if (denial_of_existence_records == mDNSNULL) { return; } destroy_denial_of_existence_records_t(denial_of_existence_records); } //====================================================================================================================== // add_to_denial_of_existence_records_t //====================================================================================================================== mDNSexport mStatus add_to_denial_of_existence_records_t(denial_of_existence_records_t *const _Nonnull denial_of_existence_records, const ResourceRecord *const _Nonnull rr) { mStatus error = mStatus_NoError; list_t *resource_records = &denial_of_existence_records->resource_records; ResourceRecord *rr_copy; error = list_append_uinitialized(resource_records, sizeof(ResourceRecord), (void **)&rr_copy); require_action(error == mStatus_NoError, exit, log_debug("list_append_uinitialized failed; error_description='%s'", mStatusDescription(error))); error = deep_copy_resource_record(rr_copy, rr); require_action(error == mStatus_NoError, exit, log_error("initialize_dnssec_rr_t failed")); exit: return error; } //====================================================================================================================== // add_to_dnssec_zone_t //====================================================================================================================== mDNSexport mStatus add_to_dnssec_zone_t( dnssec_zone_t *const _Nonnull zone, ResourceRecord *const _Nonnull rr, const mDNSu16 question_type) { mStatus error = mStatus_NoError; if (question_type == kDNSType_DNSKEY) { error = add_to_dnskeys_with_rrsig_t(&zone->dnskeys_with_rrsig, rr); require_action_quiet(error == mStatus_NoError, exit, log_debug("add_to_dnskeys_with_rrsig_t failed; error_description='%s'", mStatusDescription(error))); } else if (question_type == kDNSType_DS) { if (!zone->dses_initialized) { response_type_t type = determine_response_type(rr->rrtype, rr->rdata->u.data, question_type); require_action_quiet(type != unknown_response, exit, error = mStatus_Invalid; log_error("Unrelated response to current query; question_type=" PUB_S ", response_type=" PUB_S, DNS_TYPE_STR(question_type), DNS_TYPE_STR(rr->rrtype))); initialize_dses_with_rrsig_t(&zone->dses_with_rrsig, type); zone->dses_initialized = mDNStrue; } error = add_to_dses_with_rrsig_t(&zone->dses_with_rrsig, rr); require_action_quiet(error == mStatus_NoError, exit, log_debug("add_to_dses_with_rrsig_t failed; error_description='%s'", mStatusDescription(error))); } else { error = mStatus_Invalid; log_error("Non DS/DNSKEY query created for dnssec zone; qtype=" PUB_S, DNS_TYPE_STR(question_type)); } exit: return error; } #pragma mark - Update DNSSEC Records #pragma mark - update_dnssec_zone_t_from_cache_for_no_error_response mDNSlocal mDNSs32 get_time_received_for_answer( const CacheGroup *const _Nonnull cache_group, const ResourceRecord *const _Nonnull answer); mDNSlocal mDNSu16 get_updated_type_from_answer(const ResourceRecord *const _Nonnull answer); mDNSexport dnssec_retrieval_result_t update_dnssec_zone_t_from_cache_for_no_error_response( const mDNS *const _Nonnull m, const DNSQuestion *const _Nonnull question, const ResourceRecord *const _Nonnull answer, const QC_result add_record, dnssec_zone_t *const _Nonnull zone) { dnssec_retrieval_result_t result = dnssec_retrieval_unknown_error; mStatus error; const CacheGroup *cache_group; mDNSs32 last_time_received; mDNSu16 updated_type; const dnssec_context_t *const context = question->DNSSECStatus.context; mDNSu32 request_id = context->original.original_parameters.request_id; mDNSu16 question_id = mDNSVal16(question->TargetQID); require_action_quiet(question->qtype == kDNSType_DS || question->qtype == kDNSType_DNSKEY, exit, result = dnssec_retrieval_non_dnskey_ds_record_for_zone; log_error("Non DS/DNSKEY query created for dnssec zone; qtype=" PUB_S, DNS_TYPE_STR(question->qtype))); cache_group = CacheGroupForName(m, question->qnamehash, &question->qname); require_action_quiet(cache_group != mDNSNULL, exit, log_error("The question deos not have any corresponding cache group; qname=" PRI_DM_NAME, DM_NAME_PARAM(&question->qname))); last_time_received = get_time_received_for_answer(cache_group, answer); require_action_quiet(last_time_received != 0, exit, log_error("Did not find answer in the cache group; qname=" PRI_DM_NAME " answer_name=" PRI_DM_NAME, DM_NAME_PARAM(&question->qname), DM_NAME_PARAM(answer->name))); updated_type = get_updated_type_from_answer(answer); require_action_quiet(question->qtype == updated_type, exit, result = dnssec_retrieval_non_dnskey_ds_record_for_zone; log_error("[R%u->%u] Record type is not what question asked for; qname=" PRI_DM_NAME ", qtype=" PUB_S ", rr_type=" PUB_S, request_id, question_id, DM_NAME_PARAM(&question->qname), DNS_TYPE_STR(question->qtype), DNS_TYPE_STR(updated_type))); if (updated_type == kDNSType_DS) { require_action_quiet(zone->ds_request_started, exit, result = dnssec_retrieval_invalid_internal_state;); if (add_record == QC_add && zone->last_time_ds_add < last_time_received) { // having new records added into the response zone->last_time_ds_add = last_time_received; } else if (add_record == QC_rmv && zone->last_time_ds_rmv < last_time_received) { // having old records removed from the response zone->last_time_ds_rmv = last_time_received; uninitialize_dses_with_rrsig_t(&zone->dses_with_rrsig); zone->dses_initialized = mDNSfalse; result = dnssec_retrieval_waiting_for_records; log_default("[R%u->Q%u] Removing DS record from the zone - hostname: " PRI_DM_NAME, request_id, question_id, DM_NAME_PARAM(&zone->domain_name)); goto exit; } else { result = dnssec_retrieval_no_new_change; goto exit; } } else if (updated_type == kDNSType_DNSKEY) { require_action_quiet(zone->dnskey_request_started, exit, result = dnssec_retrieval_invalid_internal_state;); if (add_record == QC_add && zone->last_time_dnskey_add < last_time_received) { // having new records added into the response zone->last_time_dnskey_add = last_time_received; } else if (add_record == QC_rmv && zone->last_time_dnskey_rmv < last_time_received) { // having old records removed from the response zone->last_time_dnskey_rmv = last_time_received; // uninitialize and initialize to clear all the old contents in zone->dnskeys_with_rrsig uninitialize_dnskeys_with_rrsig_t(&zone->dnskeys_with_rrsig); initialize_dnskeys_with_rrsig_t(&zone->dnskeys_with_rrsig); result = dnssec_retrieval_waiting_for_records; log_default("[R%u->Q%u] Removing DNSKEY record from the zone - hostname: " PRI_DM_NAME, request_id, question_id, DM_NAME_PARAM(&zone->domain_name)); goto exit; } else { result = dnssec_retrieval_no_new_change; goto exit; } } else { result = dnssec_retrieval_non_dnskey_ds_record_for_zone; goto exit; } mDNSu32 now = m->timenow; mDNSBool new_record_added = mDNSfalse; for (CacheRecord *cache_record = cache_group->members; cache_record != mDNSNULL; cache_record = cache_record->next) { ResourceRecord *const rr = &cache_record->resrec; mDNSBool cache_record_answers_question = SameNameCacheRecordAnswersQuestion(cache_record, question); if (!cache_record_answers_question) { continue; } ssize_t remaining_ttl = (size_t)rr->rroriginalttl - (now - cache_record->TimeRcvd) / mDNSPlatformOneSecond; if (remaining_ttl <= 0) { log_default("Ignoring record: name="PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, remaining_ttl=%zd, rdlength=%d", DM_NAME_PARAM(rr->name), DNSTypeName(rr->rrtype), rr->rroriginalttl, remaining_ttl, rr->rdlength); continue; } log_default("[R%u->Q%u] Adding record: name="PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, remaining_ttl=%zd, rdlength=%d", request_id, question_id, DM_NAME_PARAM(rr->name), DNSTypeName(rr->rrtype), rr->rroriginalttl, remaining_ttl, rr->rdlength); error = add_to_dnssec_zone_t(zone, rr, question->qtype); require_action_quiet(error == mStatus_NoError, exit, result = dnssec_retrieval_unknown_error); if (!new_record_added) { new_record_added = mDNStrue; } last_time_received = MAX(last_time_received, cache_record->TimeRcvd); } require_action_quiet(new_record_added, exit, result = dnssec_retrieval_non_dnskey_ds_record_for_zone; log_error("[R%u->Q%u] No new record is being added into validation tree, while the TimeRcvd field has a greater value than the last update time of zone - " "returned rr name: " PRI_DM_NAME ", rr type: " PUB_S ", rr existence type: 0x%X, QC result: %u", request_id, question_id, DM_NAME_PARAM(answer->name), DNSTypeName(answer->rrtype), answer->RecordType, add_record) ); mDNSBool contains_rrsig = mDNSfalse; if (updated_type == kDNSType_DS) { if (new_record_added) { zone->dses_with_rrsig.set_completed = mDNStrue; zone->last_time_ds_add = last_time_received; } require_action_quiet(zone->dses_initialized, exit, result = dnssec_retrieval_invalid_internal_state; log_error("[R%u->Q%u] Have new records added into DS structure while the DS structure is not initialized" "returned rr name: " PRI_DM_NAME ", rr type: " PUB_S ", rr existence type: 0x%X, QC result: %u", request_id, question_id, DM_NAME_PARAM(answer->name), DNSTypeName(answer->rrtype), answer->RecordType, add_record) ); contains_rrsig = contains_rrsig_in_dses_with_rrsig_t(&zone->dses_with_rrsig); } else if (updated_type == kDNSType_DNSKEY) { if (new_record_added) { zone->dnskeys_with_rrsig.set_completed = mDNStrue; zone->last_time_dnskey_add = last_time_received; } contains_rrsig = contains_rrsig_in_dnskeys_with_rrsig_t(&zone->dnskeys_with_rrsig); } else { result = dnssec_retrieval_non_dnskey_ds_record_for_zone; log_error("Non DS/DNSKEY response for DNSSEC zone; rr_type=" PUB_S, DNS_TYPE_STR(updated_type)); goto exit; } require_action_quiet(contains_rrsig, exit, result = dnssec_retrieval_no_rrsig; log_error("No RRSIG records returned for DNSSEC query; qname=" PRI_DM_NAME ", qtype=" PUB_S, DM_NAME_PARAM(&question->qname), DNS_TYPE_STR(question->qtype))); result = dnssec_retrieval_no_error; exit: return result; } #pragma mark get_time_received_for_answer mDNSlocal mDNSs32 get_time_received_for_answer( const CacheGroup *const _Nonnull cache_group, const ResourceRecord *const _Nonnull answer) { mDNSs32 last_time_received = 0; for (CacheRecord *cache_record = cache_group->members; cache_record != mDNSNULL; cache_record = cache_record->next) { if (answer != &cache_record->resrec) { continue; } last_time_received = cache_record->TimeRcvd; goto exit; } exit: return last_time_received; } #pragma mark - update_original_from_cache_for_no_error_response mDNSexport dnssec_retrieval_result_t update_original_from_cache_for_no_error_response( mDNS *const _Nonnull m, const DNSQuestion *const _Nonnull question, const ResourceRecord *const _Nonnull answer, const QC_result add_record, const DNSServiceErrorType dns_result_error, dnssec_context_t *const _Nonnull dnssec_context) { dnssec_retrieval_result_t result = dnssec_retrieval_unknown_error; mStatus error = mStatus_UnknownErr; original_t *const original = &dnssec_context->original; originals_with_rrsig_t *const originals_with_rrsig = &original->original_result_with_rrsig; const CacheGroup *cache_group; mDNSs32 last_time_received; mDNSu32 request_id = dnssec_context->original.original_parameters.request_id; mDNSu16 question_id = mDNSVal16(question->TargetQID); cache_group = CacheGroupForName(m, question->qnamehash, &question->qname); require_action_quiet(cache_group != mDNSNULL, exit, result = dnssec_retrieval_invalid_internal_state; log_error("The question deos not have any corresponding cache group; qname=" PRI_DM_NAME, DM_NAME_PARAM(&question->qname))); last_time_received = get_time_received_for_answer(cache_group, answer); require_action_quiet(last_time_received != 0, exit, result = dnssec_retrieval_invalid_internal_state; log_error("Did not find answer in the cache group; qname=" PRI_DM_NAME " answer_name=" PRI_DM_NAME, DM_NAME_PARAM(&question->qname), DM_NAME_PARAM(answer->name))); if (add_record == QC_add && original->last_time_add < last_time_received) { // having new records added into the response original->last_time_add = last_time_received; if (originals_with_rrsig->type != unknown_response) { // the previous answer is NSEC, NSEC3 or suppressed fake negative cache uninitialize_originals_with_rrsig_t(&original->original_result_with_rrsig); } } else if (add_record == QC_rmv && original->last_time_rmv < last_time_received) { // having old records removed from the response response_type_t original_response_type = originals_with_rrsig->type; original->last_time_rmv = last_time_received; require_action_quiet(original_response_type != unknown_response, exit, result = dnssec_retrieval_invalid_internal_state); uninitialize_originals_with_rrsig_t(&original->original_result_with_rrsig); // check if there is still active sub CNAME request, if so, the CNAME request will be stopped by // handle_retrieval_result later. result = (original_response_type == cname_response) ? dnssec_retrieval_cname_removed : dnssec_retrieval_waiting_for_records; goto exit; } else { result = dnssec_retrieval_no_new_change; goto exit; } mDNSs32 now = m->timenow; mDNSBool new_record_added = mDNSfalse; for (CacheRecord *cache_record = cache_group->members; cache_record != mDNSNULL; cache_record = cache_record->next) { ResourceRecord *const rr = &cache_record->resrec; mDNSBool cache_record_answers_question = SameNameCacheRecordAnswersQuestion(cache_record, question); if (!cache_record_answers_question) { continue; } ssize_t remaining_ttl = (size_t)rr->rroriginalttl - (now - cache_record->TimeRcvd) / mDNSPlatformOneSecond; if (remaining_ttl <= 0) { log_default("Ignoring record: name="PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, remaining_ttl=%zd, rdlength=%d", DM_NAME_PARAM(rr->name), DNSTypeName(rr->rrtype), rr->rroriginalttl, remaining_ttl, rr->rdlength); continue; } log_default("[R%u->Q%u] Adding record: name="PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, remaining_ttl=%zd, rdlength=%d", request_id, question_id, DM_NAME_PARAM(rr->name), DNSTypeName(rr->rrtype), rr->rroriginalttl, remaining_ttl, rr->rdlength); if (originals_with_rrsig->type == unknown_response) { // this is our first time to add the records into the list response_type_t type = determine_response_type(rr->rrtype, rr->rdata->u.data, question->qtype); require_action_quiet(type != unknown_response, exit, result = dnssec_retrieval_invalid_internal_state; log_error("Unrelated response to current query; question_type=" PUB_S ", response_type=" PUB_S, DNS_TYPE_STR(question->qtype), DNS_TYPE_STR(answer->rrtype))); initialize_originals_with_rrsig_t(&original->original_result_with_rrsig, type); if (type == cname_response) { QueryRecordClientRequest *const primary_request = GET_PRIMARY_REQUEST(dnssec_context); require_action_quiet(primary_request != mDNSNULL, exit, result = dnssec_retrieval_invalid_internal_state; log_error("[R%u] primary request has a NULL QueryRecordClientRequest", primary_request->op.reqID)); // increment the referrals. primary_request->op.q.CNAMEReferrals++; } } error = add_to_originals_with_rrsig_t(originals_with_rrsig, rr, !question->InitialCacheMiss, dns_result_error, add_record); require_action_quiet(error == mStatus_NoError, exit, result = dnssec_retrieval_unknown_error); if (!new_record_added) { new_record_added = mDNStrue; } last_time_received = MAX(last_time_received, cache_record->TimeRcvd); } if (new_record_added) { original->last_time_add = last_time_received; } mDNSBool contains_rrsig = mDNSfalse; contains_rrsig = contains_rrsig_in_originals_with_rrsig_t(&original->original_result_with_rrsig); require_action_quiet(contains_rrsig, exit, result = dnssec_retrieval_no_rrsig; log_error("No RRSIG records returned for DNSSEC query; qname=" PRI_DM_NAME ", qtype=" PUB_S, DM_NAME_PARAM(&question->qname), DNS_TYPE_STR(question->qtype))); result = dnssec_retrieval_no_error; exit: return result; } #pragma mark get_updated_type_from_answer mDNSlocal mDNSu16 get_updated_type_from_answer(const ResourceRecord *const _Nonnull answer) { mDNSu16 type = kDNSQType_ANY; if (answer->rrtype == kDNSType_RRSIG) { type = get_covered_type_of_dns_type_rrsig_t(answer->rdata->u.data); } else { type = answer->rrtype; } return type; } #pragma mark - update_original_from_cache_for_denial_of_existence_response mDNSexport dnssec_retrieval_result_t update_original_from_cache_for_denial_of_existence_response( const mDNS *const _Nonnull m, const DNSQuestion *_Nonnull question, ResourceRecord *const _Nonnull answer, const QC_result add_record, const DNSServiceErrorType dns_result_error, dnssec_context_t *const _Nonnull dnssec_context) { dnssec_retrieval_result_t result = dnssec_retrieval_unknown_error; mStatus error; original_t *const original = &dnssec_context->original; originals_with_rrsig_t *const originals_with_rrsig = &original->original_result_with_rrsig; const list_t *denial_rrs; // list_t<dnssec_rr> const ResourceRecord *first_rr = mDNSNULL; const CacheGroup *cache_group; mDNSs32 last_time_received; response_type_t type; mDNSu32 request_id = dnssec_context->original.original_parameters.request_id; mDNSu16 question_id = mDNSVal16(question->TargetQID); mDNSBool suppressed = add_record == QC_suppressed; if (dnssec_context->denial_of_existence_records != mDNSNULL) { denial_rrs = &dnssec_context->denial_of_existence_records->resource_records; require_action_quiet(!list_empty(denial_rrs), exit, result = dnssec_retrieval_invalid_internal_state); } else { denial_rrs = mDNSNULL; } cache_group = CacheGroupForName(m, question->qnamehash, &question->qname); require_action_quiet(cache_group != mDNSNULL || suppressed, exit, result = dnssec_retrieval_invalid_internal_state; log_error("The question deos not have any corresponding cache group; qname=" PRI_DM_NAME, DM_NAME_PARAM(&question->qname))); if (cache_group != mDNSNULL) { last_time_received = get_time_received_for_answer(cache_group, answer); require_action_quiet(last_time_received != 0, exit, result = dnssec_retrieval_invalid_internal_state; log_error("Did not find answer in the cache group; qname=" PRI_DM_NAME " answer_name=" PRI_DM_NAME, DM_NAME_PARAM(&question->qname), DM_NAME_PARAM(answer->name))); } else { last_time_received = INT_MIN; } if ((add_record == QC_add && original->last_time_add < last_time_received) || add_record == QC_suppressed) { // having new records added into the response, since negative answer is mutual exclusive, the previous answer // must be removed original->last_time_add = last_time_received; if (originals_with_rrsig->type != unknown_response) { uninitialize_originals_with_rrsig_t(&original->original_result_with_rrsig); original->last_time_rmv = last_time_received; } } else { result = dnssec_retrieval_no_new_change; goto exit; } require_action_quiet(add_record == QC_add || suppressed, exit, result = dnssec_retrieval_invalid_internal_state); if (denial_rrs != mDNSNULL && !list_empty(denial_rrs)) { first_rr = (ResourceRecord *)(list_get_first(denial_rrs)->data); type = determine_response_type(first_rr->rrtype, first_rr->rdata->u.data, question->qtype); require_action_quiet(type != unknown_response, exit, result = dnssec_retrieval_invalid_internal_state; log_error("Unrelated response to current query; question_type=" PUB_S ", response_type=" PUB_S, DNS_TYPE_STR(question->qtype), DNS_TYPE_STR(first_rr->rrtype))); } else { type = original_response; } initialize_originals_with_rrsig_t(originals_with_rrsig, type); if (type == nsec_response) { original->original_result_with_rrsig.u.nsecs_with_rrsig.negative_rr = answer; log_default("[R%u->Q%u] Adding negative answer verified by NSEC record; name=" PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, rdlength=%d", request_id, question_id, DM_NAME_PARAM(answer->name), DNSTypeName(answer->rrtype), answer->rroriginalttl, answer->rdlength); } else if (type == nsec3_response) { original->original_result_with_rrsig.u.nsec3s_with_rrsig.negative_rr = answer; log_default("[R%u->Q%u] Adding negative answer verified by NSEC3 record; name=" PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, rdlength=%d", request_id, question_id, DM_NAME_PARAM(answer->name), DNSTypeName(answer->rrtype), answer->rroriginalttl, answer->rdlength); } else if (type == original_response) { original->original_result_with_rrsig.u.original.negative_rr = answer; original->original_result_with_rrsig.u.original.suppressed_response = suppressed; if (!suppressed) { log_default("[R%u->Q%u] Adding negative answer not verified by any DNSSEC record; name=" PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, rdlength=%d", request_id, question_id, DM_NAME_PARAM(answer->name), DNSTypeName(answer->rrtype), answer->rroriginalttl, answer->rdlength); } else { log_default("[R%u->Q%u] Adding negative answer suppressed by mDNSResponder; name=" PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, rdlength=%d", request_id, question_id, DM_NAME_PARAM(answer->name), DNSTypeName(answer->rrtype), answer->rroriginalttl, answer->rdlength); print_dnssec_context_t(dnssec_context); } } else { result = dnssec_retrieval_invalid_internal_state; goto exit; } if (denial_rrs != mDNSNULL) { for (const list_node_t *rr_node = list_get_first(denial_rrs); !list_has_ended(denial_rrs, rr_node); rr_node = list_next(rr_node)) { ResourceRecord *const rr = (ResourceRecord *)rr_node->data; log_default("[R%u->Q%u] Adding denial of existence record: name=" PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, rdlength=%d", request_id, question_id, DM_NAME_PARAM(rr->name), DNSTypeName(rr->rrtype), rr->rroriginalttl, rr->rdlength); error = add_to_originals_with_rrsig_t(&original->original_result_with_rrsig, rr, !question->InitialCacheMiss, dns_result_error, add_record); require_action_quiet(error == mStatus_NoError, exit, result = dnssec_retrieval_unknown_error); } } mDNSBool contains_rrsig = mDNSfalse; contains_rrsig = contains_rrsig_in_originals_with_rrsig_t(&original->original_result_with_rrsig); require_action_quiet(contains_rrsig || suppressed, exit, result = dnssec_retrieval_no_rrsig; log_error("No RRSIG records returned for DNSSEC query; qname=" PRI_DM_NAME ", rr_type=" PUB_S, DM_NAME_PARAM(&question->qname), (first_rr != mDNSNULL) ? DNS_TYPE_STR(first_rr->rrtype) : DNS_TYPE_STR(question->qtype))); // add wildcard answer mDNSs32 now = m->timenow; if (answer->RecordType != kDNSRecordTypePacketNegative && cache_group != mDNSNULL) { for (CacheRecord *cache_record = cache_group->members; cache_record != mDNSNULL; cache_record = cache_record->next) { ResourceRecord *const rr = &cache_record->resrec; mDNSBool cache_record_answers_question = SameNameCacheRecordAnswersQuestion(cache_record, question); if (!cache_record_answers_question) { continue; } ssize_t remaining_ttl = (size_t)rr->rroriginalttl - (now - cache_record->TimeRcvd) / mDNSPlatformOneSecond; if (remaining_ttl <= 0) { log_default("Ignoring record: name="PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, remaining_ttl=%zd, rdlength=%d", DM_NAME_PARAM(rr->name), DNSTypeName(rr->rrtype), rr->rroriginalttl, remaining_ttl, rr->rdlength); continue; } log_default("[R%u->Q%u] Adding record: name="PRI_DM_NAME ", rr_type=" PUB_S ", original_ttl=%d, remaining_ttl=%zd, rdlength=%d", request_id, question_id, DM_NAME_PARAM(rr->name), DNSTypeName(rr->rrtype), rr->rroriginalttl, remaining_ttl, rr->rdlength); error = add_to_originals_with_rrsig_t(&original->original_result_with_rrsig, rr, !question->InitialCacheMiss, dns_result_error, add_record); require_action_quiet(error == mStatus_NoError, exit, result = dnssec_retrieval_record_not_added); } } result = suppressed ? dnssec_retrieval_suppressed : dnssec_retrieval_no_error; exit: return result; } //====================================================================================================================== // local function //====================================================================================================================== //====================================================================================================================== // determine_response_type //====================================================================================================================== mDNSlocal response_type_t determine_response_type(mDNSu16 rr_type, const mDNSu8 *const _Nullable rdata, const mDNSu16 question_type) { response_type_t response_type = unknown_response; switch (rr_type) { case kDNSType_CNAME: if (question_type != kDNSType_CNAME) { response_type = cname_response; } else { response_type = original_response; } break; case kDNSType_DS: verify(rr_type == question_type); response_type = original_response; break; case kDNSType_RRSIG: { dns_type_rrsig_t *rrsig_rdata = (dns_type_rrsig_t *)rdata; mDNSu16 type_covered = ntohs(rrsig_rdata->type_covered); require_action(type_covered != kDNSType_RRSIG, exit, response_type = unknown_response; log_error("Malformed RRSIG that covers RRSIG;")); response_type = determine_response_type(type_covered, mDNSNULL, question_type); } break; case kDNSType_NSEC: response_type = nsec_response; break; case kDNSType_DNSKEY: verify(rr_type == question_type); response_type = original_response; break; case kDNSType_NSEC3: response_type = nsec3_response; break; default: if (rr_type == question_type) { response_type = original_response; } else { response_type = unknown_response; } break; } exit: return response_type; } //====================================================================================================================== // domain_name_end_with //====================================================================================================================== mDNSlocal mDNSBool domain_name_end_with(const mDNSu8 *const _Nonnull longer, const mDNSu8 *const _Nonnull shorter) { mDNSu32 longer_length = DOMAIN_NAME_LENGTH(longer); mDNSu32 shorter_length = DOMAIN_NAME_LENGTH(shorter); const mDNSu8 *longer_ptr; const mDNSu8 *shorter_ptr; if (longer_length < shorter_length) { return mDNSfalse; } longer_ptr = longer + longer_length - 1; shorter_ptr = shorter + shorter_length - 1; for (mDNSu32 limit = shorter_length; limit > 0; limit--, longer_ptr--, shorter_ptr--) { if (*longer_ptr != *shorter_ptr) { return mDNSfalse; } } return mDNStrue; } //====================================================================================================================== // get_parent_zone_name //====================================================================================================================== mDNSlocal const mDNSu8 *_Nullable get_parent_zone_name(const list_t *const _Nonnull zones, originals_with_rrsig_t *const _Nonnull original) { const list_t *rrsig_records = mDNSNULL; const dnssec_rrsig_t *rrsig = mDNSNULL; const mDNSu8 *parent_zone_name = mDNSNULL; if (list_empty(zones)) { switch (original->type) { case original_response: rrsig_records = &original->u.original.rrsig_records; break; case cname_response: rrsig_records = &original->u.cname_with_rrsig.rrsig_records; break; case nsec_response: { const list_t *const nsec_list = &original->u.nsecs_with_rrsig.nsec_and_rrsigs_same_name; const one_nsec_with_rrsigs_t *const one_nsec = (one_nsec_with_rrsigs_t *)list_get_first( nsec_list)->data; rrsig_records = &one_nsec->rrsig_records; verify_action(nsec_nsec3_contains_rrsigs_with_same_signer(nsec_list, kDNSType_NSEC), return mDNSNULL); break; } case nsec3_response: { const list_t *const nsec3_list = &original->u.nsec3s_with_rrsig.nsec3_and_rrsigs_same_name; const one_nsec3_with_rrsigs_t *const one_nsec3 = (one_nsec3_with_rrsigs_t *)list_get_first( nsec3_list)->data; rrsig_records = &one_nsec3->rrsig_records; verify_action(nsec_nsec3_contains_rrsigs_with_same_signer(nsec3_list, kDNSType_NSEC3), return mDNSNULL); break; } default: break; } if (rrsig_records != mDNSNULL && !list_empty(rrsig_records)) { rrsig = (dnssec_rrsig_t *)list_get_first(rrsig_records)->data; } } else { dnssec_zone_t *last_zone = (dnssec_zone_t *)(list_get_last(zones)->data); dses_with_rrsig_t *dses_with_rrsig = &last_zone->dses_with_rrsig; if (last_zone->dses_initialized) { switch (dses_with_rrsig->type) { case original_response: rrsig_records = &dses_with_rrsig->u.original.rrsig_records; break; case nsec_response: { const list_t *const nsec_list = &dses_with_rrsig->u.nsecs_with_rrsig.nsec_and_rrsigs_same_name; const one_nsec_with_rrsigs_t *const one_nsec = (one_nsec_with_rrsigs_t *)list_get_first( nsec_list)->data; rrsig_records = &one_nsec->rrsig_records; break; } case nsec3_response: { const list_t *const nsec3_list = &dses_with_rrsig->u.nsec3s_with_rrsig.nsec3_and_rrsigs_same_name; const one_nsec3_with_rrsigs_t *const one_nsec3 = (one_nsec3_with_rrsigs_t *)list_get_first( nsec3_list)->data; rrsig_records = &one_nsec3->rrsig_records; break; } default: break; } } if (rrsig_records != mDNSNULL && !list_empty(rrsig_records)) { rrsig = (dnssec_rrsig_t *)list_get_first(rrsig_records)->data; } } if (rrsig != mDNSNULL && domain_name_end_with(rrsig->dnssec_rr.name.c, rrsig->signer_name)) { parent_zone_name = rrsig->signer_name; } return parent_zone_name; } //====================================================================================================================== // nsec_nsec3_contains_rrsigs_with_same_signer //====================================================================================================================== mDNSlocal mDNSBool nsec_nsec3_contains_rrsigs_with_same_signer(const list_t *const nsec_nsec3_list, mDNSu16 type) { mDNSBool contains_the_same_signer = mDNSfalse; const list_t *first_rrsig_list = mDNSNULL; const dnssec_rrsig_t *first_rrsig = mDNSNULL; const mDNSu8 *signer_name = mDNSNULL; require_action_quiet(type == kDNSType_NSEC || type == kDNSType_NSEC3, exit, contains_the_same_signer = mDNSfalse; log_debug("NSEC/NSEC3 list contains records other than NSEC/NSEC3 - Type: " PUB_S, DNSTypeName(type))); require_action_quiet(!list_empty(nsec_nsec3_list), exit, contains_the_same_signer = mDNSfalse; log_debug("NSEC/NSEC3 list is empty, which should never happens")); if (type == kDNSType_NSEC) { const one_nsec_with_rrsigs_t *const first_one_nsec = (one_nsec_with_rrsigs_t * )(list_get_first( nsec_nsec3_list)->data); first_rrsig_list = &first_one_nsec->rrsig_records; } else { // type == kDNSType_NSEC3 const one_nsec3_with_rrsigs_t *const first_one_nsec3 = (one_nsec3_with_rrsigs_t * )(list_get_first( nsec_nsec3_list)->data); first_rrsig_list = &first_one_nsec3->rrsig_records; } require_action_quiet(!list_empty(first_rrsig_list), exit, contains_the_same_signer = mDNSfalse; log_debug("The RRSIG list of " PUB_S " is empty, such record should never be added into the list", DNSTypeName(type))); first_rrsig = (dnssec_rrsig_t *)(list_get_first(first_rrsig_list)->data); signer_name = first_rrsig->signer_name; for (const list_node_t *one_nsec_nsec3_node = list_get_first(nsec_nsec3_list); !list_has_ended(nsec_nsec3_list, one_nsec_nsec3_node); one_nsec_nsec3_node = list_next(one_nsec_nsec3_node)) { const list_t *rrsig_list = mDNSNULL; if (type == kDNSType_NSEC) { const one_nsec_with_rrsigs_t *const one_nsec = (one_nsec_with_rrsigs_t *)one_nsec_nsec3_node->data; rrsig_list = &one_nsec->rrsig_records; } else { // type == kDNSType_NSEC3 const one_nsec3_with_rrsigs_t *const one_nsec3 = (one_nsec3_with_rrsigs_t *) one_nsec_nsec3_node->data; rrsig_list = &one_nsec3->rrsig_records; } for (const list_node_t *rrsig_node = list_get_first(rrsig_list); !list_has_ended(rrsig_list, rrsig_node); rrsig_node = list_next(rrsig_node)) { const dnssec_rrsig_t *const dnssec_rrsig = (dnssec_rrsig_t *)(rrsig_node->data); const mDNSu8 *const signer_name_to_compare = dnssec_rrsig->signer_name; require_action_quiet(DOMAIN_NAME_EQUALS(signer_name, signer_name_to_compare), exit, contains_the_same_signer = mDNSfalse; log_debug("RRSIGs do not have the same signer name - Signer name 1: " PRI_DM_NAME ", Signer name 2: " PRI_DM_NAME, DM_NAME_PARAM((domainname *)signer_name), DM_NAME_PARAM((domainname *)signer_name_to_compare)) ); } } contains_the_same_signer = mDNStrue; exit: return contains_the_same_signer; } #endif // MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
48.267054
180
0.609293
2499e9c79433707ed70ca6556af6879617a8ac40
823
php
PHP
resources/views/boards/b_estudiante.blade.php
jimy23/temporal
ad8949278ff9bbc3a91c8a2ea70401ac101ca3f3
[ "MIT" ]
null
null
null
resources/views/boards/b_estudiante.blade.php
jimy23/temporal
ad8949278ff9bbc3a91c8a2ea70401ac101ca3f3
[ "MIT" ]
null
null
null
resources/views/boards/b_estudiante.blade.php
jimy23/temporal
ad8949278ff9bbc3a91c8a2ea70401ac101ca3f3
[ "MIT" ]
null
null
null
@extends('board_layout') @section('style') @parent <style type="text/css"> body { background: #2b669a !important; } .top-nav { background: #2b669a !important; } .side-nav { background: #2b669a !important; } .navbar { background: #2b669a !important; } </style> @stop @section('sidebar_menu') @parent <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav side-nav"> <li> <a href="#"><i class="fa fa-fw fa-desktop fa-lg" aria-hidden="true"></i> ESCRITORIO</a> </li> <li> <a href="#"><i class="fa fa-fw fa-file-text-o fa-lg" aria-hidden="true"></i> TEST</a> </li> </ul> </div> <!-- /.navbar-collapse --> @stop
25.71875
99
0.600243
a328e11c9e7e2b38f6b9fc1fdc12a0f2bd75c3d4
1,471
ts
TypeScript
src/lib/render-atom.ts
Lifesgood123/osmosfeed
d7995469aa4c52bf84753501250c4baa23da5e9f
[ "MIT" ]
null
null
null
src/lib/render-atom.ts
Lifesgood123/osmosfeed
d7995469aa4c52bf84753501250c4baa23da5e9f
[ "MIT" ]
null
null
null
src/lib/render-atom.ts
Lifesgood123/osmosfeed
d7995469aa4c52bf84753501250c4baa23da5e9f
[ "MIT" ]
null
null
null
import { Feed } from "feed"; import { cliVersion } from "../utils/version"; import { CACHE_FILENAME } from "./cache"; import type { Config } from "./get-config"; import type { EnrichedArticle } from "./enrich"; export const FEED_FILENAME = "feed.atom"; export const INDEX_FILENAME = "index.html"; export interface RenderAtomInput { articles: EnrichedArticle[]; config: Config; } export function renderAtom({ articles, config }: RenderAtomInput): string { const nowTimestamp = new Date().toISOString(); const siteUrl = config.cacheUrl?.replace(CACHE_FILENAME, INDEX_FILENAME); const feedUrl = config.cacheUrl?.replace(CACHE_FILENAME, FEED_FILENAME); const feedId = siteUrl ?? `urn:${nowTimestamp}`; // cacheUrl is required. Fallback value for testing only. const feedLinks = feedUrl ? { atom: feedUrl } : undefined; const feed = new Feed({ title: config.siteTitle, updated: new Date(), id: feedId, generator: `osmosfeed ${cliVersion}`, link: siteUrl ?? INDEX_FILENAME, feedLinks, description: "", copyright: "", }); articles.forEach((article) => { feed.addItem({ title: article.title, id: article.id, description: article.description, link: article.link, author: [ { name: article.author ?? article.sourceTitle ?? "Unknown author", }, ], date: new Date(article.publishedOn), }); }); const atomXml = feed.atom1(); return atomXml; }
28.288462
108
0.659415
220f592ca348a04749071e5bcc484c9014854c40
509
rs
Rust
src/message.rs
SuliacLEGUILLOU/computor_ru
e3d52661f15130bba606c7254531e3ad3117296f
[ "MIT" ]
null
null
null
src/message.rs
SuliacLEGUILLOU/computor_ru
e3d52661f15130bba606c7254531e3ad3117296f
[ "MIT" ]
5
2017-09-02T10:36:27.000Z
2017-09-02T10:55:56.000Z
src/message.rs
SuliacLEGUILLOU/computor_ru
e3d52661f15130bba606c7254531e3ad3117296f
[ "MIT" ]
null
null
null
pub mod information { pub fn welcome() { println!("Welcome to computorV2."); } pub fn help() { println!("Complexe number are supported"); println!("Assigne variable :\nvar <name> = <R>(+<I>i)?"); println!("printing information :"); println!("print shows everyting recorded in the memory"); println!("print_var shows only variable"); } } pub mod warning { } pub mod error { pub fn no_input() { println!("No user input"); } }
20.36
65
0.56778
3fa32109572aa2de62a6c46bcd589f38f22c9c2d
4,857
php
PHP
App/QueryBuilder.php
AL3X1/Sun-PDO
89dbdad9d5deb5540ff028893f2c30fa7098d3e2
[ "MIT" ]
null
null
null
App/QueryBuilder.php
AL3X1/Sun-PDO
89dbdad9d5deb5540ff028893f2c30fa7098d3e2
[ "MIT" ]
null
null
null
App/QueryBuilder.php
AL3X1/Sun-PDO
89dbdad9d5deb5540ff028893f2c30fa7098d3e2
[ "MIT" ]
null
null
null
<?php namespace App; use App\Config\DB; class QueryBuilder { private $sql; private $pdo; private $host; private $db_name; private $user_name; private $password; /** * QueryBuilder constructor. * @param string $host * @param string $db_name * @param string $user_name * @param string $password */ public function __construct($host = "", $db_name = "", $user_name = "", $password = "") { if (isset($host, $db_name, $user_name, $password)) { $this->host = $host; $this->db_name = base64_encode($db_name); $this->user_name = base64_encode($user_name); $this->password = base64_encode($password); } else { $this->host = DB::$host; $this->db_name = base64_encode(DB::$db_name); $this->user_name =base64_encode( DB::$user_name); $this->password = base64_encode(DB::$password); } try { $dsn = "mysql:host=" . $this->host . ";dbname=" . base64_decode($this->db_name) . ";charset=" . DB::DEFAULT_CHARSET; $this->pdo = new \PDO($dsn, base64_decode($this->user_name), base64_decode($this->password), DB::DEFAULT_SETTINGS); } catch (\PDOException $e) { echo $e->getMessage(); } } /** * Выборка * @param $select - оператор выбора * @param $from * * прим. $query->select("*", "table1"); * Пример аналогичен SQL коду: SELECT * FROM `table1` * @return $this */ public function select($select, $from) { $this->sql = "SELECT $select FROM `$from`"; return $this; } /** * Оператор Where * @param array $data - ассоциативный массив * Прим. $query->select("*", "table1")->where(["name" => "Alex"]) * @return $this */ public function where(array $data) { foreach ($data as $key => $value) { $this->sql .= " WHERE `$key` = '$value'"; } return $this; } /** * Оператор сортировки (ORDER BY) * @param $by * @param string $type - типы сортировки ASC, DESC * * Прим. $query->select("*", "table1")->where(["name" => "Alex"])->orderBy("id", "ASC"); * @return $this */ public function orderBy($by, $type = "") { if ($type) { $this->sql .= " ORDER BY $by $type"; } else { $this->sql .= " ORDER BY $by"; } return $this; } /** * Обновление данных * @param $table * @param array $data * * Прим. $query->update("table1", ["name" => "Alex1"]); * @return $this */ public function update($table, array $data) { foreach ($data as $key => $value) { $this->sql = "UPDATE `$table` SET `$key` = '$value'"; } return $this; } /** * Вставка данных * @param $into * @param array $data * * Прим. $query->insert("table1", ["name" => "Alex"]); * @return $this */ public function insert($into, array $data) { $params = ""; foreach ($data as $key => $value) { $params .= "`$key` = '$value',"; } $this->sql = "INSERT INTO `$into` SET " . mb_substr($params, 0, -1); return $this; } /** * Лимит * @param $number * * Прим. $query->select("*", "table1")->limit(10); * @return $this */ public function limit($number) { $this->sql .= " LIMIT $number"; return $this; } /** * Удаление записи * @param $from * @param array $where * * прим. $sun->delete("users", ["username" => "Alex"])->execute(); * @return $this */ public function delete($from, array $where) { $params = ""; foreach ($where as $row => $value) { $params .= "`$row`='$value'"; } $this->sql = "DELETE FROM `$from` WHERE $params"; return $this; } /** * Выполнение запроса * * Прим. $query->select("*", "table1")->execute(); * @return \PDOStatement */ public function execute() { $exec = $this->pdo->prepare($this->sql); $exec->execute(); return $exec; } /** * Запрос вручную * * @param $sql * * Прим. $select = $query->query("INSERT INTO `users` (username, email) VALUES ('Alex', 'test@gmail.com')")->execute(); * @return \PDOStatement */ public function query($sql) { if ($this->pdo->query($sql)) return true; } public function debug($data, $var_dump = false) { echo "<pre>"; if ($var_dump) { var_dump($data); } else { print_r($data); } echo "</pre>"; } }
23.463768
128
0.484661
7b92279ef2c17eceb5c224ad4a09b600e3c5f6ff
606
rb
Ruby
Chapter03/scriptMathOps.rb
enriqueescobar-askida/Kinito.Ruby
a7bcb048f366cfb9ec2d8f64a63ec4857ace9c1a
[ "MIT" ]
null
null
null
Chapter03/scriptMathOps.rb
enriqueescobar-askida/Kinito.Ruby
a7bcb048f366cfb9ec2d8f64a63ec4857ace9c1a
[ "MIT" ]
null
null
null
Chapter03/scriptMathOps.rb
enriqueescobar-askida/Kinito.Ruby
a7bcb048f366cfb9ec2d8f64a63ec4857ace9c1a
[ "MIT" ]
null
null
null
#!/usr/bin/ruby -w puts x = 5/2 # result is 2 puts y = 5.0/2 # result is 2.5 puts z = 5/2.0 # result is 2.5 puts x = 5%2 # result is 1 puts x = 1.5%0.4 # result is 0.3 puts x**4 # This is the same thing as x*x*x*x puts x**-1 # The same thing as 1/x puts x**(1/3.0) # The cube root of x puts x**(1/4) # Oops! Integer division means this is x**0, which is always 1 puts x**(1.0/4.0) # This is the fourth-root of x puts even = (x[0] == 0) # A number is even if the least-significant bit is 0 puts 0.4 - 0.3 == 0.1 # Evaluates to false in most implementations
30.3
81
0.584158
7facdde219b35894d1405141c66afd89d696abf1
313
lua
Lua
test/preload.lua
solarizedalias/nvim-treesitter-context
2837cd67ccdc50b7c7fe5a6a8cb0ca8cc6e2aae3
[ "MIT" ]
null
null
null
test/preload.lua
solarizedalias/nvim-treesitter-context
2837cd67ccdc50b7c7fe5a6a8cb0ca8cc6e2aae3
[ "MIT" ]
null
null
null
test/preload.lua
solarizedalias/nvim-treesitter-context
2837cd67ccdc50b7c7fe5a6a8cb0ca8cc6e2aae3
[ "MIT" ]
null
null
null
-- Modules loaded here will not be cleared and reloaded by Busted. -- Busted started doing this to help provide more isolation. local global_helpers = require('test.helpers') -- Bypoass CI behaviour logic global_helpers.isCI = function(_) return false end local helpers = require('test.functional.helpers')()
28.454545
66
0.769968