content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
package org.applause.specification.codegen.ios; import org.applause.specification.codegen.ios.EntityGeneratorGeneratingEntityAttributesSpec; import org.eclipse.xtend2.lib.StringConcatenation; import org.eclipse.xtext.xbase.lib.Functions.Function0; import org.jnario.runner.ExampleGroupRunner; import org.jnario.runner.N...
__label__POS
0.778696
// Copyright (c) 2023 Apple Inc. Licensed under MIT License. package com.apple.itunes.storekit.migration; import com.apple.itunes.storekit.util.TestingUtility; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import java.io.IOException; public class ReceiptUtilityTest { private stati...
__label__POS
0.896918
// Copyright (c) 2025 Apple Inc. Licensed under MIT License. package com.apple.itunes.storekit.offers; import com.apple.itunes.storekit.signature.JWSSignatureCreator; import java.util.HashMap; import java.util.Map; public class PromotionalOfferV2SignatureCreator extends JWSSignatureCreator { private static fin...
__label__POS
0.872063
// Copyright (c) 2025 Apple Inc. Licensed under MIT License. package com.apple.itunes.storekit.offers; import com.apple.itunes.storekit.signature.JWSSignatureCreator; import java.util.HashMap; import java.util.Map; public class IntroductoryOfferEligibilitySignatureCreator extends JWSSignatureCreator { private ...
__label__POS
0.781101
package org.applause.specification; import org.eclipse.xtext.junit4.IInjectorProvider; import org.eclipse.xtext.junit4.IRegistryConfigurator; import org.jnario.lib.AbstractSpecCreator; import com.google.inject.Injector; public class ApplauseDslTestCreator extends AbstractSpecCreator{ protected Injector injector; ...
__label__POS
0.95246
/* * generated by Xtext */ package org.applause.specification; import org.applause.lang.ApplauseDslStandaloneSetup; import org.eclipse.xtext.junit4.GlobalRegistries; import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento; import org.eclipse.xtext.junit4.IInjectorProvider; import org.eclipse.xtext.junit4.I...
__label__POS
0.632364
<?php namespace OEModule\OphCiExamination\models; use OEModule\OphCiExamination\widgets\ContrastSensitivity as ContrastSensitivityWidget; class ContrastSensitivity extends \BaseEventTypeElement { use traits\CustomOrdering; public $widgetClass = ContrastSensitivityWidget::class; protected $auto_update_re...
__label__POS
0.934331
<?php namespace OEModule\OphCiExamination\models; class InvoiceStatus extends \BaseActiveRecord { public static function model($className = __CLASS__) { return parent::model($className); } /** * @return string the associated database table name */ public function tableName() ...
__label__POS
0.998839
<?php use Swoole\Coroutine\Lock; class Database { private $dirPath; public function __construct() { if (!$this->dirPath) { $base_dir = api::getconfig(); $this->dirPath = $base_dir['file']['database_dir']; } } public function initializeDatabase() { $filen...
__label__POS
0.678698
<?php class PluginsManager{ private $pluginsPath = './plugins'; public function __construct() { if (!is_dir($this->pluginsPath)) { mkdir($this->pluginsPath, 0777, true); } } public function loadPlugins(&$server) { $pluginsInfo = []; $files = scandir(...
__label__POS
0.873073
package com.apple.spark.core; import static com.apple.spark.core.ZoneManager.ROUND_ROBIN_ZONE_PICKER_NAME; import com.apple.spark.AppConfig; import com.apple.spark.api.SubmitApplicationRequest; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.testng.Assert; import org.testng...
__label__POS
0.944592
<?php class m170505_145600_antseg_v2 extends CDbMigration { public function up() { $this->addColumn('et_ophciexamination_anteriorsegment', 'right_eyedraw2', 'text'); $this->addColumn('et_ophciexamination_anteriorsegment', 'left_eyedraw2', 'text'); $this->addColumn('et_ophciexamination_a...
__label__POS
0.763972
<?php class m140804_090552_create_iop_and_va_defaults extends OEMigration { public function up() { $reading = $this->dbConnection->createCommand('SELECT id FROM ophciexamination_intraocularpressure_reading WHERE value = 17')->queryRow(); $this->insert('setting_metadata', array( ...
__label__POS
0.8402
<?php class m180409_113833_create_table_sysdiag_check extends OEMigration { public function up() { $this->createOETable('ophciexamination_systemic_diagnoses_req_diag_check', array( 'id' => 'pk', 'element_id' => 'int', 'side_id' => 'int(10) unsigned', 'dis...
__label__POS
0.902078
<?php class m180409_104752_observations_remove_default_values extends OEMigration { public function up() { $this->alterColumn('et_ophciexamination_observations', 'blood_pressure_systolic', 'INT(3) UNSIGNED DEFAULT NULL'); $this->alterColumn('et_ophciexamination_observations', 'blood_pressure_di...
__label__POS
0.973724
/* * * This source file is part of the Batch Processing Gateway open source project * * Copyright 2022 Apple Inc. and the Batch Processing Gateway project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
__label__POS
0.750901
/* * * This source file is part of the Batch Processing Gateway open source project * * Copyright 2022 Apple Inc. and the Batch Processing Gateway project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
__label__POS
0.988223
package com.apple.spark.core; import java.util.Collections; import java.util.List; import java.util.Objects; import java.util.concurrent.atomic.AtomicInteger; public class RoundRobinZonePicker implements ZonePicker { private List<String> allowedZones; private final AtomicInteger index = new AtomicInteger(0); ...
__label__POS
0.980052
package com.apple.spark.core; import com.apple.spark.AppConfig; import com.apple.spark.AppConfig.QueueConfig; import com.apple.spark.api.SubmitApplicationRequest; import java.util.List; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import org.slf4j...
__label__POS
0.672803
<?php class m180413_124140_alter_view_patient_allergy_assignment extends OEMigration { private $_current_definition = "select `aa`.`id` AS `id`,`latest`.`patient_id` AS `patient_id`,`aa`.`allergy_id` AS `allergy_id`,`aa`.`other` AS `other`,`aa`.`comments` AS `comments`,`aa`.`last_modified_user_id` AS `last_modifie...
__label__POS
0.954903
<?php class m221024_112200_enhance_patient_views extends OEMigration { public function safeUp() { $this->execute("CREATE OR REPLACE VIEW v_patient_appointments AS SELECT wp.patient_id AS patient_id, w.name AS worklist_name, wp.id AS worklist_patient_id, ...
__label__POS
0.999586
<?php class m200128_111511_add_guarded_prognosis_to_cataract_surgical_management extends CDbMigration { public function up() { $this->addColumn('et_ophciexamination_cataractsurgicalmanagement', 'left_guarded_prognosis', 'TINYINT(1) NOT NULL DEFAULT 0'); $this->addColumn('et_ophciexamination_cat...
__label__POS
0.998671
<?php class m191115_145450_create_v2_cataractsurgicalmanagement_table extends OEMigration { public function safeUp() { $this->execute('RENAME TABLE et_ophciexamination_cataractsurgicalmanagement TO et_ophciexamination_cataractsurgicalmanagement_archive'); $this->execute('RENAME TABLE et_ophciex...
__label__POS
0.654321
<?php class m220801_175602_new_patient_views extends OEMigration { public function safeUp() { $this->execute(" CREATE OR REPLACE ALGORITHM = UNDEFINED VIEW `v_patient_events` AS select `p`.`id` AS `patient_id`, `ev`.`id` AS `event_id`, `ep`.`id` AS `episode_id`, `ev`.`event_type_id` A...
__label__POS
0.998521
<?php class m170422_124217_add_csm_shortcode extends CDbMigration { private function _getEventType() { return $this->dbConnection->createCommand()->select('*')->from('event_type')->where('class_name = :class_name', array(':class_name' => 'OphCiExamination'))->queryRow(); } public function up(...
__label__POS
0.768844
<?php class m190303_184800_add_report_views extends CDbMigration { public function safeUp() { $this->execute("CREATE OR REPLACE VIEW `v_patient_va` AS SELECT `pe`.`patient_id` AS `patient_id`, `eva`.`event_id` AS `event_id`, `pe`.`event_date` AS `reading_date`, `eva`...
__label__POS
0.997473
<?php class m160420_120232_add_indexes_to_NOD_tables extends CDbMigration { public function up() { //EpisodeDrug $this->createIndex('medication_prescription_item_id', 'medication', 'prescription_item_id'); $this->createIndex('medication_last_modified_date', 'medication', 'last_modif...
__label__POS
0.994091
package util import ( "os/exec" "strings" ) // IsCommandAvailable checks if a given command is available in the system's PATH. // It takes a string argument 'cmd' which represents the command to check. // It returns true if the command is found, otherwise false. func IsCommandAvailable(cmd string) bool { _, err :=...
__label__POS
0.90611
<?php class m190221_144912_change_sidebar_label_pupils_to_visual_function extends CDbMigration { function get_event_type_id(){ return $this->dbConnection->createCommand() ->select('id') ->from('event_type') ->where('class_name = :class_name', [':class_name' => 'OphCiExa...
__label__POS
0.64686
package core import ( "testing" "github.com/sashabaranov/go-openai" ) func TestUsageString(t *testing.T) { tests := []struct { name string usage Usage expected string }{ { name: "without details", usage: Usage{ PromptTokens: 10, CompletionTokens: 20, TotalTokens: 30, ...
__label__POS
0.738574
<?php class m200414_154048_observations_version_remove_default_values extends OEMigration { public function safeUp() { $this->alterColumn('et_ophciexamination_observations_version', 'blood_pressure_systolic', 'INT(3) UNSIGNED DEFAULT NULL'); $this->alterColumn('et_ophciexamination_observations_...
__label__POS
0.995252
<?php class m140611_070311_current_management_dropdown_changes extends CDbMigration { public function up() { $this->update('ophciexamination_managementdrops', array('display_order' => 1), 'id=2'); $this->update('ophciexamination_managementdrops', array('display_order' => 2), 'id=1'); $t...
__label__POS
0.710725
<?php class m170404_084439_optometrist_fields extends CDbMigration { public function up() { $this->addColumn('automatic_examination_event_log', 'optometrist', 'varchar(255)'); $this->addColumn('automatic_examination_event_log', 'goc_number', 'varchar(255)'); $this->addColumn('automatic_...
__label__POS
0.696142
package transport import ( "net/http" "reflect" "testing" ) func TestNewHeaders_NormalInput(t *testing.T) { input := []string{"Content-Type=application/json", "Accept=*/*"} want := http.Header{ "Content-Type": {"application/json"}, "Accept": {"*/*"}, } got := NewHeaders(input) if !reflect.DeepEqual(...
__label__POS
0.94811
<?php class m200213_111658_fix_columns_with_no_defaults_that_arent_set extends OEMigration { public function up() { $this->alterOEColumn('et_ophciexamination_visualacuity', 'left_unable_to_assess', 'TINYINT(1) UNSIGNED NULL DEFAULT NULL'); $this->alterOEColumn('et_ophciexamination_visualacuity'...
__label__POS
0.992836
<?php class m160519_102017_automatic_examination_event_log extends OEMigration { public function up() { $this->createOETable('automatic_examination_event_log', array( 'id' => 'pk', 'event_id' => 'int(10) unsigned', 'unique_code' => 'varchar(6) NOT NULL', ...
__label__POS
0.774833
<?php class m220114_142918_add_reason_unknown_to_meds_without_stop_reason extends OEMigration { private function getReasonUnknownId() { return $this->dbConnection->createCommand() ->select('id') ->from('ophciexamination_medication_stop_reason') ->where('name = :name', array(':n...
__label__POS
0.719909
<?php class m210816_030736_add_safeguarding_parental_responsibility_columns extends OEMigration { // Use safeUp/safeDown to do migration with transaction public function safeUp() { $this->addOEColumn('et_ophciexamination_safeguarding', 'has_social_worker', 'tinyint(1) unsigned', true); $thi...
__label__POS
0.968755
<?php class m140617_123338_rename_management_plan_elements extends CDbMigration { public function up() { $this->dbConnection->createCommand("update element_type set name = 'Glaucoma Current Management plan' where class_name = 'OEModule\\\\OphCiExamination\\\\models\\\\Element_OphCiExamination_CurrentMa...
__label__POS
0.70252
<?php class m191002_003710_add_display_on_whiteboard_column extends OEMigration { public function alterView($view_name, $select) { $this->dbConnection->createCommand('CREATE OR REPLACE VIEW ' . $view_name . ' as ' . $select)->execute(); } public function up() { $result = $this->dbC...
__label__POS
0.690323
<?php class m131127_113657_remove_visual_fields_element extends CDbMigration { public function up() { $this->dropTable('et_ophciexamination_visual_fields'); } public function down() { $this->execute("CREATE TABLE `et_ophciexamination_visual_fields` ( `id` int(10) unsigned NOT N...
__label__POS
0.729863
<?php class m140620_175100_modify_gonio extends CDbMigration { public function up() { $this->dropForeignKey('et_ophciexam_overallmanagementplan_lgonio_id_fk', 'et_ophciexamination_overallmanagementplan'); $this->dropForeignKey('et_ophciexam_overallmanagementplan_rgonio_id_fk', 'et_ophciexaminat...
__label__POS
0.963169
<?php class m210621_080815_create_observation_widget_tables extends OEMigration { public function safeUp() { // Archive the original et_ophciexamination_observations and et_ophciexamination_observations_version // tables, which are being split into two tables to allow for multiple observation e...
__label__POS
0.692057
<?php class m180510_093825_import_examination_events_to_medications extends CDbMigration { /* * Insert Examination events to 'event_medication_use' table */ public function up() { echo "> The import may take a several seconds...\n"; /* * Import Examination events wit...
__label__POS
0.94268
<?php class m210330_091516_add_defaults_fix_portalexamscommand extends OEMigration { private $nva_columns = ['left_unable_to_assess', 'right_unable_to_assess', 'left_eye_missing', 'right_eye_missing']; public function safeUp() { foreach ($this->nva_columns as $nva_column) { $this->alter...
__label__POS
0.876005
<?php class m230112_154700_update_v_patient_investigations extends OEMigration { public function safeUp() { $this->execute("CREATE OR REPLACE ALGORITHM = UNDEFINED VIEW `v_patient_investigations` AS SELECT `p`.`id` AS `patient_id` , `ev`.`id` AS `event_id` ...
__label__POS
0.959972
<?php class m180412_153258_tbl_secondary_diagnosis_not_present extends OEMigration { private static $_tbl = 'secondary_diagnosis_not_present'; public function up() { $this->createOETable(self::$_tbl, array( 'id' => 'pk', 'disorder_id' => 'bigint(20) unsigned', '...
__label__POS
0.865478
<?php /** * Class m180510093824_prescription_events_import * * This is not the right place for this migration, but we must ensure * that it runs right before the examination import. */ class m180510_093824_prescription_events_import extends OEMigration { public function safeUp() { echo "> This mi...
__label__POS
0.959334
<?php class m181127_150004_examination_surgical_history_rename_surgical_history_set_id extends CDbMigration { public function safeUp() { $this->dropForeignKey('surgical_history_set_entry_surgical_history', 'ophciexamination_surgical_history_set_entry'); $this->renameColumn('ophciexamination_su...
__label__POS
0.999891
<?php class m140107_100553_fix_workflow_rule_table_name extends CDbMigration { public function up() { $this->dropForeignKey('ophciexamination_element_set_rule_created_user_id_fk', 'ophciexamination_element_set_rule'); $this->dropForeignKey('ophciexamination_element_set_rule_last_modified_user_i...
__label__POS
0.968677
<?php class m210729_052338_rework_workflow_tables_for_mt extends OEMigration { // Use safeUp/safeDown to do migration with transaction public function safeUp() { $this->dropOEColumn('ophciexamination_workflow_rule', 'institution_id', true); $connection = $this->getDbConnection(); $...
__label__POS
0.794729
<?php class m180405_101352_observations_table extends OEMigration { public function up() { $this->createOETable('et_ophciexamination_observations', array( 'id' => 'pk', 'event_id' => 'INT(10) UNSIGNED NOT NULL DEFAULT 0', 'blood_pressure_systolic' => 'INT(3) UNSIGNED...
__label__POS
0.722328
<?php class m220124_161045_add_social_history_views extends OEMigration { public function safeUp() { $this->dbConnection->createCommand("CREATE OR REPLACE ALGORITHM = UNDEFINED VIEW `socialhistory_examination_events` AS ...
__label__POS
0.607267
<?php class m140611_072921_current_management_field_changes extends CDbMigration { public function up() { $this->renameColumn('et_ophciexamination_currentmanagementplan', 'left_other-service', 'left_other_service'); $this->renameColumn('et_ophciexamination_currentmanagementplan', 'right_other-s...
__label__POS
0.96825
<?php /** * Created by Mike Smith <mike.smith@camc-ltd.co.uk>. */ namespace OEModule\OphCiExamination\widgets; use OEModule\OphCiExamination\models\SocialHistory as SocialHistoryElement; class SocialHistory extends \BaseEventElementWidget { public static $moduleName = 'OphCiExamination'; /** * @par...
__label__POS
0.995953
<?php namespace OEModule\OphCiExamination\widgets; use OEModule\OphCiExamination\models\Synoptophore_ReadingForGaze; class Synoptophore extends \BaseEventElementWidget { public function getAllReadingGazeTypes() { return [ [Synoptophore_ReadingForGaze::RIGHT_UP, Synoptophore_ReadingForGaze...
__label__POS
0.786398
<?php namespace OEModule\OphCiExamination\widgets; use OEModule\OphCiExamination\models\ContrastSensitivity_Result; class ContrastSensitivity extends \BaseEventElementWidget { public function renderEntriesForElement($results) { foreach ($results as $i => $result) { $this->render($this->ge...
__label__POS
0.997511
<?php namespace OEModule\OphCiExamination\widgets; use OEModule\OphCiExamination\models\PrismReflex_Entry; class PrismReflex extends \BaseEventElementWidget { public function renderEntriesForElement($entries) { foreach ($entries as $i => $entry) { $this->render($this->getViewForEntry(), $...
__label__POS
0.997533
--- layout: app permalink: /trader/ description: Play Star Traders, a simple game of interstellar trading license: GPL-3.0+ icons: - trader/icons/scalable/trader.svg screenshots: - https://www.zap.org.au/projects/trader/screenshot.png authors: links: desktop: Desktop Entry: Name[en@quot]: Star Traders ...
__label__POS
0.756089
<?php /** * OpenEyes * * (C) OpenEyes Foundation, 2019 * This file is part of OpenEyes. * OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any l...
__label__POS
0.912028
<table id="<?= $id ?>"> <colgroup> <col class="cols-8"> <col> </colgroup> <thead style="display:none;"> <!-- These hidden headers are required for Katalon / automated tests to find corect columns --> <tr> <th>Drug</th> <th>Tooltip</th> <th>...
__label__POS
0.956827
<?php use OEModule\OphCiExamination\models\AllergyEntry; use OEModule\OphCiExamination\models\OphCiExaminationAllergy; ?> <div class="element-data full-width"> <div class="flex-layout flex-top"> <div class="cols-12"> <?php if (!count($element->entries)) : ?> <div class="data-val...
__label__POS
0.997965
<?php /** * @var \OEModule\OphCiExamination\models\PrismReflex $element * @var \OEModule\OphCiExamination\widgets\PrismReflex $this */ $prefix_attributes = ['with_head_posture']; ?> <div class="element-data full-width"> <div class="pro-data-view"> <div id="js-listview-prismreflex-pro" class="listview-...
__label__POS
0.847118
<?php /** * (C) OpenEyes Foundation, 2019 * This file is part of OpenEyes. * OpenEyes 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 versi...
__label__POS
0.78293
<table id="<?= $id ?>"> <colgroup> <col class="cols-8"> <col> </colgroup> <thead style="display:none;"> <!-- These hidden headers are required for Katalon tests to find corect columns --> <tr> <th>Drug</th> <th></th> <th>Tooltip</th> ...
__label__POS
0.970083
<?php use OEModule\OphCiExamination\models\AllergyEntry; ?> <div class="element-data full-width"> <div class="flex-layout flex-top"> <div class="cols-11"> <?php if ($element->no_allergies_date) { echo 'Patient has no allergies (confirmed)'; } else { ?> ...
__label__POS
0.998347
package com.appium.webtest; import com.test.site.UserBaseTest; import org.junit.Assert; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.testng.annotations.Test; @Test(groups = { "end-to-end-test" }) public class LoginFailureTest extends UserBaseTest { @Test public void login...
__label__POS
0.982236
package com.test.site; import com.appium.manager.ATDRunner; import net.lingala.zip4j.ZipFile; import net.lingala.zip4j.exception.ZipException; import org.testng.Assert; import org.testng.annotations.Test; import java.io.File; import java.nio.file.FileSystems; import java.nio.file.Path; import java.util.ArrayList; imp...
__label__POS
0.963242
package com.context; import org.apache.log4j.Logger; import java.util.HashMap; import java.util.Map; public class TestExecutionContext { private final String testName; private final HashMap<String, Object> testExecutionState; private final String NOT_SET = "NOT-YET-SET"; private static final Logger L...
__label__POS
0.950206
package com.cucumber.listener; import com.appium.manager.AppiumDriverManager; import com.appium.manager.AppiumServerManager; import com.epam.reportportal.cucumber.ScenarioReporter; import com.epam.reportportal.utils.MemoizingSupplier; import com.epam.ta.reportportal.ws.model.StartTestItemRQ; import org.apache.log4j.Lo...
__label__POS
0.969441
package com.appium.device; import com.appium.manager.AppiumServerManager; import com.appium.utils.Api; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.SneakyThrows; import java.net.URL; import java.util.Arrays; import java.util.List; public class Devices { private static List<Device> instance; ...
__label__POS
0.993937
package graphqlbenchmark import ( "context" "testing" "github.com/graphql-go/graphql" thunder "github.com/samsarahq/thunder/graphql" ) func BenchmarkGoGraphQLMaster(b *testing.B) { // Disable SpecifiedRules // graphql.SpecifiedRules = []graphql.ValidationRuleFn{} b.ResetTimer() for i := 0; i < b.N; i++ { g...
__label__POS
0.951449
package graphqlbenchmark import ( "io/ioutil" "net/http" "net/http/httptest" "strings" "testing" "github.com/appleboy/golang-graphql-benchmark/golang/gqlgen" gqlH "github.com/99designs/gqlgen/handler" "github.com/gin-gonic/gin" "github.com/graph-gophers/graphql-go/relay" "github.com/graphql-go/handler" t...
__label__POS
0.698733
package com.appium.capabilities; import com.fasterxml.jackson.annotation.JsonAlias; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; import lombok.Setter; @JsonIgnoreProperties(ignoreUnknown = true) @Getter @Setter public class D...
__label__POS
0.873932
<?php /** * @var \OEModule\OphCiExamination\models\ContrastSensitivity $element * @var \OEModule\OphCiExamination\widgets\ContrastSensitivity $this */ use OEModule\OphCiExamination\models\ContrastSensitivity_Result; ?> <div class="element-data full-width"> <div class="cols-10"> <table class="last-lef...
__label__POS
0.671842
<?php /** * @var \OEModule\OphCiExamination\models\BirthHistory $element * @var \OEModule\OphCiExamination\widgets\BirthHistory $this */ $pro_attr_display_map = [ 'weight_recorded_units' => 'display_weight', 'delivery_type' => 'delivery_type', 'gestation_weeks' => 'display_gestation_weeks...
__label__POS
0.660652
package main import ( "fmt" "github.com/gin-gonic/gin" "github.com/samsarahq/thunder/graphql" "github.com/samsarahq/thunder/graphql/introspection" "github.com/samsarahq/thunder/graphql/schemabuilder" ) type thunderServer struct{} // registerQuery registers the root query type. func (s *thunderServer) registerQ...
__label__POS
0.92501
package com.appium.filelocations; import java.io.File; import static com.appium.utils.OverriddenVariable.getOverriddenStringValue; public interface FileLocations { String OUTPUT_DIRECTORY = getOverriddenStringValue("OUTPUT_DIRECTORY") != null ? File.separator + getOverriddenStringValue("O...
__label__POS
0.656891
package com.appium.plugin; import com.fasterxml.jackson.annotation.JsonAlias; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.JsonNode; import lombok.Getter; import lombok.SneakyThrows; import java.util.ArrayList...
__label__POS
0.998364
package main import ( "fmt" "github.com/gin-gonic/gin" "github.com/graphql-go/graphql" "github.com/graphql-go/handler" ) // Schema var fields = graphql.Fields{ "hello": &graphql.Field{ Type: graphql.String, Resolve: func(p graphql.ResolveParams) (interface{}, error) { return "world", nil }, }, } var r...
__label__POS
0.769957
package com.appium.utils; public class OverriddenVariable { public static String getOverriddenStringValue(String key) { return getValueFromEnvOrProperty(key); } public static String getOverriddenStringValue(String key, String defaultValue) { return (isKeyProvidedInEnvOrProperty(key)) ...
__label__POS
0.999975
package com.appium.utils; /** * Command Prompt - this class contains method to run windows and mac commands */ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.Map; public clas...
__label__POS
0.901735
<?php if (!$element || !$element->id) { ?> <div class="nil-recorded">Nil recorded</div> <?php } else { ?> <table class="plain patient-data"> <tbody> <?php if ($element->occupation) { ?> <tr> <td><?= CHtml::encode($element->getAttributeLabel('occupation_id')) ?></td> ...
__label__POS
0.994157
package com.video.recorder; import com.appium.filelocations.FileLocations; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import java.io.File; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import java...
__label__POS
0.916589
<?php /** * (C) OpenEyes Foundation, 2019 * This file is part of OpenEyes. * OpenEyes 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 versi...
__label__POS
0.751026
<?php /** * @var \OEModule\OphCiExamination\models\SensoryFunction $element * @var \OEModule\OphCiExamination\widgets\SensoryFunction $this */ ?> <div class="element-data full-width"> <div class="pro-data-view"> <div id="js-listview-sensoryfunction-pro" class="listview-pro" s...
__label__POS
0.728705
package main import ( "context" "log/slog" "net/http" "time" "github.com/appleboy/graceful" "github.com/gin-gonic/gin" ) func main() { r := gin.New() // Example route: GET /ping returns {"message": "pong"} r.GET("/ping", func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "message": "pong", }) }) ...
__label__POS
0.648374
<?php /** * @var \OEModule\OphCiExamination\models\StereoAcuity $element * @var \OEModule\OphCiExamination\widgets\StereoAcuity $this */ ?> <div class="element-data full-width"> <div class="pro-data-view"> <div id="js-listview-stereoacuity-pro" class="listview-pro"> <ul class="dot-list lar...
__label__POS
0.872947
package leveldb import ( "sync" "testing" "github.com/appleboy/gorush/core" "github.com/stretchr/testify/assert" ) func TestLevelDBEngine(t *testing.T) { var val int64 levelDB := New("") err := levelDB.Init() assert.Nil(t, err) // reset the value of the key to 0 levelDB.Set(core.HuaweiSuccessKey, 0) va...
__label__POS
0.940893
package boltdb import ( "sync" "testing" "github.com/appleboy/gorush/core" "github.com/stretchr/testify/assert" ) func TestBoltDBEngine(t *testing.T) { var val int64 boltDB := New("", "gorush") err := boltDB.Init() assert.Nil(t, err) // reset the value of the key to 0 boltDB.Set(core.HuaweiSuccessKey, 0...
__label__POS
0.941511
<?php /** * @var \OEModule\OphCiExamination\models\Element_OphCiExamination_ColourVision $element * @var \OEModule\OphCiExamination\widgets\ColourVision $this */ ?> <?php $model_name = CHtml::modelName($element); ?> <script type="text/javascript" src="<?= $this->getJsPublishedPath("ColourVision.js") ?>"></script> <...
__label__POS
0.836278
<?php /** * @var \OEModule\OphCiExamination\models\Synoptophore $element * @var \OEModule\OphCiExamination\widgets\Synoptophore $this */ ?> <div class="element-data full-width"> <div class="element-both-eyes"> <div class="cols-2"> <?= $this->element->getAttributeLabel('angle_f...
__label__POS
0.988924
<?php /** * @var \OEModule\OphCiExamination\models\Element_OphCiExamination_ColourVision $element * @var \OEModule\OphCiExamination\widgets\ColourVision $this */ ?> <div class="element-data element-eyes flex-layout"> <div class="js-element-eye right-eye cols-6"> <div class="data-group"> <?p...
__label__POS
0.987212
<?php $el_id = CHtml::modelName($element) . '_element'; ?> <?php $visible_sections = ['current_entries' => 'Current', "closed_entries" => "Stopped"]; ?> <header class=" element-header"> <h3 class="element-title">Eye medications</h3> </header> <?php foreach ($visible_sections as $key => $section_name) : ...
__label__POS
0.998398
<?php /** * @var \OEModule\OphCiExamination\models\CoverAndPrismCover $element * @var \OEModule\OphCiExamination\widgets\CoverAndPrismCover $this */ $prefix_attributes = ['with_head_posture']; ?> <div class="element-data full-width"> <div class="pro-data-view"> <div id="js-listview-coverandprismcover-...
__label__POS
0.630599
<?php use OEModule\OphCiExamination\models\Element_OphCiExamination_DR_Maculopathy; /** * @var $element Element_OphCiExamination_DR_Maculopathy */ ?> <div class="element-data element-eyes"> <?php foreach (array('left' => 'right', 'right' => 'left') as $page_side => $eye_side) { ?> <div class="<?= $eye_side ?...
__label__POS
0.993414
<div class="element-data element-eyes"> <?php $pcr = new PcrRisk(); foreach (['left' => 'right', 'right' => 'left'] as $page_side => $eye_side) { ?> <div class="js-element-eye <?= $eye_side ?>-eye <?= $page_side ?>" data-side="<?= $eye_side ?>"> <?php if ($element->{$eye_side . '_...
__label__POS
0.755313
<?php use OEModule\OphCiExamination\models; // The history element won't be displayed if it doesn't exist $historyElement = $this->event->getElementByClass(models\Element_OphCiExamination_History::class); // Find the elements for each tile, or create dummy elements so they will still render, but without any data $pa...
__label__POS
0.93234
<?php use OEModule\OphCiExamination\models\Element_OphCiExamination_DR_Retinopathy; /** * @var $element Element_OphCiExamination_DR_Retinopathy */ ?> <div class="element-data element-eyes"> <?php foreach (array('left' => 'right', 'right' => 'left') as $page_side => $eye_side) { ?> <div class="<?= $eye_side ?...
__label__POS
0.991158
;;; $Id: after.scm,v 1.1 1994/09/03 16:18:20 queinnec Exp $ ;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is derived from the files that accompany the book: ;;; LISP Implantation Semantique Programmation (InterEditions, France) ;;; or Lisp In Small Pieces (Cambridg...
__label__POS
0.664807