content
stringlengths
7
2.61M
<filename>media_shuffle.py import math import random import os import os.path import argparse def create_list(files_count, max_digits): list = [] for i in range(1, files_count + 1): # Append file number # Use the same number of digits as # the number of files in local dir file_number = (max_digits - (int(math.log10(i))+1)) * str(0) + str(i) list.append(file_number) # Randomize file number order random.shuffle(list) return list def rename_files(file_number_list, separator, new_order): for number, file_name in zip(file_number_list, os.listdir(".")): if(file_name != "media_shuffle.py"): file_name_without_number = " " + file_name if(not new_order): # Finds previous file ordering if it exists # Removes it so only the file's name remains if(file_name[0] == "["): end = file_name.find(']') file_name_without_number = file_name[end+1:] elif(file_name[0] == "("): end = file_name.find(')') file_name_without_number = file_name[end+1:] elif(file_name[0].isdecimal()): end = 1 while file_name[end].isdecimal(): end = end + 1 file_name_without_number = file_name[end:] # Selects separator from args (default: no separator) if(separator == "pa"): separator_start = "(" separator_end = ")" elif(separator == "br"): separator_start = "[" separator_end = "]" else: separator_start = "" separator_end = "" # Rename the file with selected separator and order os.rename(file_name, separator_start + number + separator_end + file_name_without_number) return parser = argparse.ArgumentParser( description='Shuffles your media files in the current directory') parser.add_argument('-n', dest='new_order', default=False, action='store_true', help='adds ordering numbers without checking for preexisting ones') parser.add_argument('-s', dest='separator', default="", help='separator for the file number (br for "[]", pa for "()") (default: none)') args = parser.parse_args() files_count = len([name for name in os.listdir('.') if os.path.isfile(name)]) max_digits = int(math.log10(files_count))+1 file_number_list = create_list(files_count, max_digits) rename_files(file_number_list, args.separator, args.new_order)
Inspired by Moth Story Slam, a storytelling competition in the United States, Ms Elina Lim founded Story Slam Singapore two years ago. The monthly event is a platform for participants to share real-life stories and experiences. On Jan 29, Ms Lim, 26, and Story Slam Singapore will be holding the inaugural Grand Slam (www.storyslamsingapore.com) at the Esplanade Recital Studio, billed as the first competitive local live storytelling event. Tickets cost $30 online and $42 at the door. Ms Lim, a project manager for an advertising agency, is based in Portland, Oregon, and is returning to Singapore for the event. She lives with her partner Orvis Evans, 28, a fabricator for a puppet company, and their two pet rats. What are your weekends like? They are very relaxed. Often, I go to Planet Granite in the morning, a climbing gym that has huge rock walls, to work out. After that, I clean up the apartment, buy groceries and catch a movie or attend an event. What do you do for leisure? Every Sunday, I go to this place called the Secret Society, a 1907 Victorian-era hall that used to host diverse old-school events. There, I dance the lindy hop, an arm of swing dancing. Who do you spend your weekends with? Mostly, I spend it with Orvis, but when I go dancing, I go with Walt Schademan, my lindy hop dance partner. If you could spend your weekend with anyone, dead or alive, who would it be? I would take the opportunity to spend more time with my friend Nicola Andrews, who passed away last year while climbing Mount Cook in New Zealand. She is a woman I have tremendous respect for and she is a huge inspiration to me. She climbed Mount Everest at the age of 26 and was a good friend of mine in university. If you could go overseas for a weekend getaway, where would it be? I would love to go to London for swing dancing. Going on dates with Orvis and dancing.
<gh_stars>1-10 // // MintegralCustomEventInterstitial.h // MediationExample // // Copyright © 2017年 Mintegral. All rights reserved. // #import <Foundation/Foundation.h> #import <GoogleMobileAds/GoogleMobileAds.h> @interface MintegralCustomEventInterstitial : NSObject<GADCustomEventInterstitial> @end
def value_or( self, default_value: _NewValueType, ) -> Union[_ValueType, _NewValueType]:
<gh_stars>10-100 #ifndef _ROS_SERVICE_StartRapp_h #define _ROS_SERVICE_StartRapp_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "rocon_std_msgs/Remapping.h" #include "rocon_std_msgs/KeyValue.h" namespace rocon_app_manager_msgs { static const char STARTRAPP[] = "rocon_app_manager_msgs/StartRapp"; class StartRappRequest : public ros::Msg { public: typedef const char* _name_type; _name_type name; uint32_t remappings_length; typedef rocon_std_msgs::Remapping _remappings_type; _remappings_type st_remappings; _remappings_type * remappings; uint32_t parameters_length; typedef rocon_std_msgs::KeyValue _parameters_type; _parameters_type st_parameters; _parameters_type * parameters; StartRappRequest(): name(""), remappings_length(0), remappings(NULL), parameters_length(0), parameters(NULL) { } virtual int serialize(unsigned char *outbuffer) const { int offset = 0; uint32_t length_name = strlen(this->name); varToArr(outbuffer + offset, length_name); offset += 4; memcpy(outbuffer + offset, this->name, length_name); offset += length_name; *(outbuffer + offset + 0) = (this->remappings_length >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (this->remappings_length >> (8 * 1)) & 0xFF; *(outbuffer + offset + 2) = (this->remappings_length >> (8 * 2)) & 0xFF; *(outbuffer + offset + 3) = (this->remappings_length >> (8 * 3)) & 0xFF; offset += sizeof(this->remappings_length); for( uint32_t i = 0; i < remappings_length; i++){ offset += this->remappings[i].serialize(outbuffer + offset); } *(outbuffer + offset + 0) = (this->parameters_length >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (this->parameters_length >> (8 * 1)) & 0xFF; *(outbuffer + offset + 2) = (this->parameters_length >> (8 * 2)) & 0xFF; *(outbuffer + offset + 3) = (this->parameters_length >> (8 * 3)) & 0xFF; offset += sizeof(this->parameters_length); for( uint32_t i = 0; i < parameters_length; i++){ offset += this->parameters[i].serialize(outbuffer + offset); } return offset; } virtual int deserialize(unsigned char *inbuffer) { int offset = 0; uint32_t length_name; arrToVar(length_name, (inbuffer + offset)); offset += 4; for(unsigned int k= offset; k< offset+length_name; ++k){ inbuffer[k-1]=inbuffer[k]; } inbuffer[offset+length_name-1]=0; this->name = (char *)(inbuffer + offset-1); offset += length_name; uint32_t remappings_lengthT = ((uint32_t) (*(inbuffer + offset))); remappings_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); remappings_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); remappings_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); offset += sizeof(this->remappings_length); if(remappings_lengthT > remappings_length) this->remappings = (rocon_std_msgs::Remapping*)realloc(this->remappings, remappings_lengthT * sizeof(rocon_std_msgs::Remapping)); remappings_length = remappings_lengthT; for( uint32_t i = 0; i < remappings_length; i++){ offset += this->st_remappings.deserialize(inbuffer + offset); memcpy( &(this->remappings[i]), &(this->st_remappings), sizeof(rocon_std_msgs::Remapping)); } uint32_t parameters_lengthT = ((uint32_t) (*(inbuffer + offset))); parameters_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); parameters_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); parameters_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); offset += sizeof(this->parameters_length); if(parameters_lengthT > parameters_length) this->parameters = (rocon_std_msgs::KeyValue*)realloc(this->parameters, parameters_lengthT * sizeof(rocon_std_msgs::KeyValue)); parameters_length = parameters_lengthT; for( uint32_t i = 0; i < parameters_length; i++){ offset += this->st_parameters.deserialize(inbuffer + offset); memcpy( &(this->parameters[i]), &(this->st_parameters), sizeof(rocon_std_msgs::KeyValue)); } return offset; } const char * getType(){ return STARTRAPP; }; const char * getMD5(){ return "cb167056946b89b371dab6e226563482"; }; }; class StartRappResponse : public ros::Msg { public: typedef bool _started_type; _started_type started; typedef int32_t _error_code_type; _error_code_type error_code; typedef const char* _message_type; _message_type message; typedef const char* _application_namespace_type; _application_namespace_type application_namespace; StartRappResponse(): started(0), error_code(0), message(""), application_namespace("") { } virtual int serialize(unsigned char *outbuffer) const { int offset = 0; union { bool real; uint8_t base; } u_started; u_started.real = this->started; *(outbuffer + offset + 0) = (u_started.base >> (8 * 0)) & 0xFF; offset += sizeof(this->started); union { int32_t real; uint32_t base; } u_error_code; u_error_code.real = this->error_code; *(outbuffer + offset + 0) = (u_error_code.base >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (u_error_code.base >> (8 * 1)) & 0xFF; *(outbuffer + offset + 2) = (u_error_code.base >> (8 * 2)) & 0xFF; *(outbuffer + offset + 3) = (u_error_code.base >> (8 * 3)) & 0xFF; offset += sizeof(this->error_code); uint32_t length_message = strlen(this->message); varToArr(outbuffer + offset, length_message); offset += 4; memcpy(outbuffer + offset, this->message, length_message); offset += length_message; uint32_t length_application_namespace = strlen(this->application_namespace); varToArr(outbuffer + offset, length_application_namespace); offset += 4; memcpy(outbuffer + offset, this->application_namespace, length_application_namespace); offset += length_application_namespace; return offset; } virtual int deserialize(unsigned char *inbuffer) { int offset = 0; union { bool real; uint8_t base; } u_started; u_started.base = 0; u_started.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); this->started = u_started.real; offset += sizeof(this->started); union { int32_t real; uint32_t base; } u_error_code; u_error_code.base = 0; u_error_code.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); u_error_code.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); u_error_code.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); u_error_code.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); this->error_code = u_error_code.real; offset += sizeof(this->error_code); uint32_t length_message; arrToVar(length_message, (inbuffer + offset)); offset += 4; for(unsigned int k= offset; k< offset+length_message; ++k){ inbuffer[k-1]=inbuffer[k]; } inbuffer[offset+length_message-1]=0; this->message = (char *)(inbuffer + offset-1); offset += length_message; uint32_t length_application_namespace; arrToVar(length_application_namespace, (inbuffer + offset)); offset += 4; for(unsigned int k= offset; k< offset+length_application_namespace; ++k){ inbuffer[k-1]=inbuffer[k]; } inbuffer[offset+length_application_namespace-1]=0; this->application_namespace = (char *)(inbuffer + offset-1); offset += length_application_namespace; return offset; } const char * getType(){ return STARTRAPP; }; const char * getMD5(){ return "4e0ddce154da40da8b63b887f1d049e8"; }; }; class StartRapp { public: typedef StartRappRequest Request; typedef StartRappResponse Response; }; } #endif
Fast framing imaging and modelling of vapour formation and discharge initiation in electrolyte solutions The formation of vapour and initiation of electrical discharges in normal saline and other NaCl solutions has been observed and modelled. Millisecond pulses of −160 to −300 V were applied to a sharp tungsten carbide electrode immersed in the liquid. A fast framing camera was used to observe vapour layer growth around the electrode by shadowgraphy. Images were also taken without backlighting to observe emission accompanying breakdown. The conductivity of the vapour layer has been estimated by comparison of experimentally measured impedances with impedances calculated by finite element modelling of the liquid and vapour around the electrode observed by shadowgraphy. The conductivity of the vapour layer is estimated to vary between ∼1 and 10−3 S m−1, which are orders of magnitude higher than expected for water vapour. The reason for the high conductivity is not clear, but may be due to injection of charge carriers into the vapour by corona discharge at the sharp tip and/or the presence of cluster ions in the vapour. Alternatively, the vapour layer may be a foam mixture of high conductivity liquid and low conductivity vapour bubbles. Discharge formation does not occur primarily at the sharp tip of the electrode, but rather at the side. Finite element models of the vapour layer show that the highest electric fields are found close to the sharp tip of the electrode but that the field strength drops rapidly moving away from the tip. By contrast slightly lower, but consistently high, electric fields are often observed between the side of the electrode and the liquid vapour boundary where plasma emission is mostly observed due to the shape of the vapour liquid boundary. The electron number density in the discharge is estimated to be ∼1021 m−3. There is evidence from the shadowgraphy for different boiling mechanisms; nucleate boiling at lower voltages and film boiling at higher voltages. A rule of thumb based on a simplistic model is suggested to predict the time to discharge based on electrode area, initial current, and electrolyte temperature, density, conductivity and heat capacity.
import java.util.*; public class D{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int max = 0; int r1 = 0; int r2 = 0; int r3 = 0; int r4 = 0; int r5 = 0; r1 = a+b+c; if( r1 > max) max = r1; r2 = a+b*c; if( r2 > max) max = r2; r3 = a*(b+c); if( r3 > max) max = r3; r4 = a*b*c; if( r4 > max) max = r4; r5 = (a+b)*c; if( r5 > max) max = r5; System.out.println(max); } }
<gh_stars>0 /* eslint-disable no-param-reassign */ import { exitCodes, setExitCode } from '../lib/setExitCode'; import { createTask, transitionTo } from '../lib/tasks'; import { delay } from '../lib/utils'; import { Context, Task } from '../types'; import buildHasChanges from '../ui/messages/errors/buildHasChanges'; import buildHasErrors from '../ui/messages/errors/buildHasErrors'; import buildPassedMessage from '../ui/messages/info/buildPassed'; import speedUpCI from '../ui/messages/info/speedUpCI'; import { buildComplete, buildPassed, buildBroken, buildFailed, buildCanceled, initial, dryRun, skipped, pending, } from '../ui/tasks/snapshot'; const BuildQuery = ` query BuildQuery($buildNumber: Int!) { app { build(number: $buildNumber) { id status(legacy: false) autoAcceptChanges inProgressCount: testCount(statuses: [IN_PROGRESS]) testCount changeCount errorCount: testCount(statuses: [BROKEN]) } } } `; interface BuildQueryResult { app: { build: { id: string; status: string; autoAcceptChanges: boolean; inProgressCount: number; testCount: number; changeCount: number; errorCount: number; }; }; } export const takeSnapshots = async (ctx: Context, task: Task) => { const { client, log, options } = ctx; const { number: buildNumber, tests, testCount, actualTestCount } = ctx.build; if (ctx.build.app.repository && ctx.uploadedBytes && !options.junitReport) { log.info(speedUpCI(ctx.build.app.repository.provider)); } const testLabels = options.interactive && testCount === actualTestCount && tests.map(({ spec, parameters }) => { const suffix = parameters.viewportIsDefault ? '' : ` [${parameters.viewport}px]`; return `${spec.component.displayName} › ${spec.name}${suffix}`; }); const waitForBuild = async (): Promise<Context['build']> => { const { app } = await client.runQuery<BuildQueryResult>(BuildQuery, { buildNumber }); ctx.build = { ...ctx.build, ...app.build }; if (app.build.status !== 'IN_PROGRESS') { return ctx.build; } if (options.interactive) { const { inProgressCount } = ctx.build; const cursor = actualTestCount - inProgressCount + 1; const label = testLabels && testLabels[cursor - 1]; task.output = pending(ctx, { cursor, label }).output; } await delay(ctx.env.CHROMATIC_POLL_INTERVAL); return waitForBuild(); }; const build = await waitForBuild(); switch (build.status) { case 'PASSED': setExitCode(ctx, exitCodes.OK); ctx.log.info(buildPassedMessage(ctx)); transitionTo(buildPassed, true)(ctx, task); break; // They may have sneakily looked at the build while we were waiting case 'ACCEPTED': case 'PENDING': case 'DENIED': { if (build.autoAcceptChanges || ctx.git.matchesBranch(options.exitZeroOnChanges)) { setExitCode(ctx, exitCodes.OK); ctx.log.info(buildPassedMessage(ctx)); } else { setExitCode(ctx, exitCodes.BUILD_HAS_CHANGES, true); ctx.log.error(buildHasChanges(ctx)); } transitionTo(buildComplete, true)(ctx, task); break; } case 'BROKEN': setExitCode(ctx, exitCodes.BUILD_HAS_ERRORS, true); ctx.log.error(buildHasErrors(ctx)); transitionTo(buildBroken, true)(ctx, task); break; case 'FAILED': setExitCode(ctx, exitCodes.BUILD_FAILED, true); transitionTo(buildFailed, true)(ctx, task); break; case 'CANCELLED': setExitCode(ctx, exitCodes.BUILD_WAS_CANCELED, true); transitionTo(buildCanceled, true)(ctx, task); break; default: throw new Error(`Unexpected build status: ${build.status}`); } }; export default createTask({ title: initial.title, skip: (ctx: Context) => { if (ctx.skip) return true; if (ctx.skipSnapshots) return skipped(ctx).output; if (ctx.options.dryRun) return dryRun().output; return false; }, steps: [transitionTo(pending), takeSnapshots], });
<filename>ios/chrome/browser/ui/download/legacy_download_manager_controller.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_UI_DOWNLOAD_LEGACY_DOWNLOAD_MANAGER_CONTROLLER_H_ #define IOS_CHROME_BROWSER_UI_DOWNLOAD_LEGACY_DOWNLOAD_MANAGER_CONTROLLER_H_ #import <UIKit/UIKit.h> #import "ios/chrome/browser/ui/native_content_controller.h" namespace web { class WebState; } // namespace web // This controller shows the native download manager. It shows the user basic // information about the file (namely its type, size, and name), and gives them // the option to download it and open it in another app. This controller is // displayed when a URL is loaded that contains a file type that UIWebView // cannot display itself. @interface LegacyDownloadManagerController : NativeContentController<UIDocumentInteractionControllerDelegate> // Initializes a controller for content from |url| using |webState| to provide // the context to open a controller that allows the user to install Google Drive // if they don't have it installed. Present UI from |baseViewController|. - (instancetype)initWithWebState:(web::WebState*)webState downloadURL:(const GURL&)url baseViewController:(UIViewController*)baseViewController; // Starts loading the data for the file at the url passed into the // initializer. This should only be called once, immediately after // initialization. - (void)start; @end #endif // IOS_CHROME_BROWSER_UI_DOWNLOAD_LEGACY_DOWNLOAD_MANAGER_CONTROLLER_H_
<reponame>lmartinezsch/operacion-fuego-quasar<filename>api/v1.0/swagger/swagger.go package swagger import ( "github.com/gin-gonic/gin" ginSwagger "github.com/swaggo/gin-swagger" "github.com/swaggo/gin-swagger/swaggerFiles" _ "github.com/lmartinezsch/operacion-fuego-quasar/docs" // docs is generated by Swag CLI, you have to import it. ) // ApplyRoutes applies router to the gin Engine func ApplyRoutes(r *gin.RouterGroup) { swagger := r.Group("/swagger") { swagger.GET("/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) } }
/* This is the same approach to pinning user memory * as used in Infiniband drivers. * Refer to drivers/inifiniband/core/umem.c */ static int tzdev_get_user_pages(struct task_struct *task, struct mm_struct *mm, unsigned long start, unsigned long nr_pages, int write, int force, struct page **pages, struct vm_area_struct **vmas) { unsigned long i, locked, lock_limit, nr_pinned; if (!can_do_mlock()) return -EPERM; down_write(&mm->mmap_sem); locked = nr_pages + mm->pinned_vm; lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { up_write(&mm->mmap_sem); return -ENOMEM; } nr_pinned = __tzdev_get_user_pages(task, mm, start, nr_pages, write, force, pages, vmas); if (nr_pinned != nr_pages) goto fail; mm->pinned_vm = locked; up_write(&mm->mmap_sem); return 0; fail: for (i = 0; i < nr_pinned; i++) put_page(pages[i]); up_write(&mm->mmap_sem); return -EFAULT; }
/* CP07_13.C */ /* Using return statement */ #include<stdio.h> #include<conio.h> void main() { printf("This is before return statement \n"); return; printf("This is after return statement "); }
Newsarama has the first look at four titles from Marvel's upcoming August 2016 solicitations. Look for the full solicitations Tuesday at noon. • When Wanda’s brother PIETRO comes to visit, it’s not the happy family reunion they imagined. • ...but what happens when the SCARLET WITCH and QUICKSILVER are on opposing sides? • PHIL COULSON, agent of S.H.I.E.L.D. no more! • Coulson has chosen a side in this war...HIS OWN! • The THIRD FACTION begins here. You are not going to want to miss this seismic-change issue. • When things get rough for CAPTAIN MARVEL she calls in some friends from out of town. • Iron Man doesn’t stand a chance! • Venom versus the Amazing Spider-Man! without the conflict that’s tearing the Marvel Universe apart! IRON MAN Arrested & COULSON Out Of A Job As CIVIL WAR II Shakes Up AGENTS OF S.H.I.E.L.D.
Estimation of Underground MV Network Failure Types by Applying Machine Learning Methods to Indirect Observations Electrical utilities performance is measured by various indicators, of which the most important are very dependent on the interruption time after a failure in the network has occurred, such as SAIDI. Therefore, they are constantly looking for new techniques to decrease the fault location and repair times. A possibility to innovate in this field is to estimate the failed network component when a fault occurs. This paper presents the conclusion of an analysis carried out by the authors with the aim to estimate failure types of underground MV networks based on observable indirect variables. The variables needed to carry out the analysis must be available shortly after the failure occurrence, which is facilitated by a smart-grid infrastructure, to allow for a quick estimation. This paper uses the groundwork already carried out by the authors on ambient variables, historical variables, and disturbance recordings to design an estimator to predict between four MV cable network failure types. The paper presents relevant analyses on the design and performance of various machine learning classification algorithms for estimation of the types of MV cable network failures using real-world data. Optimization of performance was carried out, resulting in an estimator with an overall 68% accuracy rate. Accuracy rates of 94% for cable failure, 63% for excavations, and 79% secondary busbar failures were achieved; as for cable joints, the accuracy was poor due to the difficulty to identify a feature that can be used to separate this failure type from cable failures. Future work to improve that accuracy is discussed.
import { Base } from '../base/base'; import { Boat } from '../boat/boat'; import { BoatChecklistItem } from './boat-checklist-item'; export interface BoatChecklist extends Base { boatId: string boat: Boat items: BoatChecklistItem[] }
from __future__ import print_function version = '0.0.6a2' if __name__ == '__main__': print(version)
ROME, Sept 22 (Reuters) - An “error of procedure” at the Vatican bank is being exploited to attack the Vatican with a money-laundering investigation, the bank’s president said in an interview published on Wednesday. Vatican bank officials are under investigation for suspected money laundering and police have frozen 23 million euros ($30.21 million) of its funds, Italian judicial sources said on Tuesday. The bank’s president Ettore Gotti Tedeschi told financial daily Il Sole 24 Ore he felt humiliated by the investigation and that it was all centered around a mistake. “An error of procedure is being used as an excuse to attack the institute, its president and the Vatican in general,” Gotti Tedeschi told the paper. He said the operation in question “was a normal treasury operation and it involved a transfer from accounts of the Vatican bank to other accounts of the Vatican bank.” He added that in the past 10 months the bank “has been adapting all its internal procedures to be in harmony with international transparency standards.” Gotti Tedeschi and the bank’s director-general Paolo Cipriani have been put under investigation by Rome magistrates Nello Rossi and Stefano Fava in a case involving alleged violations of European Union money laundering regulations. The Vatican expressed “perplexity and amazement” at the actions by the Rome magistrates and “utmost faith” in the two men who head the bank, officially known as the Institute for Religious Works (IOR). The judicial sources said Italy’s financial police had preventively frozen 23 million euros of the IOR’s funds in an account in an Italian bank in Rome. Two recent transfers from an IOR account in the Italian bank were deemed suspicious by financial police and blocked. One was a transfer of 20 million euros to a German branch of a U.S. bank and another of 3 million euros to an Italian bank. The IOR principally manages funds for the Vatican and religious institutions around the world, such as charity organisations and religious orders of priests and nuns. (Reporting by Catherine Hornby; Editing by Peter Graff)
<gh_stars>1-10 import { Component, ElementRef, ViewChild, } from '@angular/core'; import { ShowHideIcon, ShowHideState, } from '../../core'; @Component({ selector: 'fiz-check', templateUrl: './fiz-check.component.html', styleUrls: ['./fiz-check.component.scss'], }) export class FizCheckComponent extends ShowHideIcon { @ViewChild('vector') public vector: ElementRef; @ViewChild('polygon') public polygon: ElementRef; private pathStep = [ '6 18.50590891 6 18.50590891 6 18.50590891', '6 18.50590891 14.52484413 30 14.52484413 30', '6 18.50590891 14.52484413 30 34 10', ]; constructor() { super(); } protected _show(duration) { const { polygon, pathStep } = this; const nextTimeline = this.initNextTimeline(ShowHideState.SHOW, duration); /* Manually set isHide false since anime.js has bug which on begin is not called when duration is very short. */ this.isHide = false; nextTimeline.add({ targets: polygon.nativeElement, points: pathStep, }); return this.endAnimation(ShowHideState.SHOW, nextTimeline); } protected _hide(duration) { const { polygon, pathStep } = this; const reverseStep = Object.assign([], pathStep).reverse(); const nextTimeline = this.initNextTimeline(ShowHideState.HIDE, duration); nextTimeline.add({ targets: polygon.nativeElement, points: reverseStep, }); return this.endAnimation(ShowHideState.HIDE, nextTimeline); } }
A novel luminol-based chemiluminescence method for detecting acetylcholine Aim. To develop new simple non-enzymatic method for the determination of acetylcholine (ACh) by the chemiluminescent reaction of luminol under conditions of the enzymatic hydrolysis of acetylcholine (pH 8.5). Experimental part. The method proposed is based on the perhydrolysis reaction of ACh by the excess of hydrogen peroxide with the formation of peracetic acid. The latter was further determined by the activation effect of the luminol chemiluminescent oxidation reaction in the presence of hydrogen peroxide. The analytical signal was the summary luminescence () registered within certain time. Results and discussion. The pH range of the analytically applicable system was from 8.2 to 8.5. The effect of ACh + H2O2 incubation period on the reaction progress was also studied. The increase of the incubation period enhanced the sensitivity of the method (the limit of detection (LOD)), but because of practical reasons (especially the detection speed) and practical experience the incubation period was set to 30 min. The linear dependence was observed in the acetylcholine chloride concentration range of (0.8 2.8) 10-4 mol/L. While determining acetylcholine chloride in the concentration range of (1.1 2.2) 10-4 mol/L the relative standard deviation (RSD) did not exceed 3 % ((X ) 100 %/ = 0.5...+0.5 %). The Limit of Quantitation (LOQ, 10S) was 7.7 10-5 mol/L. Conclusions. A new non-enzymatic kinetic method for the chemiluminescent determination of ACh in aqueous solutions and the pharmaceutical formulation Acetylcholinchlorid Injeel® has been proposed. This method is simple, fast, inexpensive, and thus appropriate for the routine ACh quality control in the laboratories of hospitals, pharmaceutical industries and research institutions. ISSN 2308-8303 (Print) ISSN 2518-1548 discontinued as a result of its hydrolysis catalyzed by the cholinesterase enzyme presented in living tissues (Scheme 1). In order to study various disorders mentioned above and develop new medicines, it is important to measure the ACh concentration with simple, fast, inexpensive, and accurate methods. For the quantitative determination of acetylcholine chloride the European Pharmacopoeia and US Pharmacopoeia use the method of acidimetry. According to the current analytical normative documentation, the content of the main substance is argentometrically determined by Folgard or LC. The titrimetric procedures are highly accurate, but are not specific to ACh. A colorimetric method widely used in the practice of biological researches for determining Ah concentration was proposed by Hestrin. HPLC on microdialysis samples has very high resolution in the pM range. However, this method has disadvantages, namely the tedious sample pretreatment and high cost (a microdialysis probe costs about $200). simple, rapid and sensitive optical biosensor for detection of choline and ACh based on the hydrogen peroxide (H 2 O 2 )-sensitive quantum dots (QDs) was constructed. The detection limit for ACh was found to be 10 M, and the linear range was 10 -5000 M. The wide linear ranges were shown to be suitable for routine analyses of choline and ACh. The detection linear range of ACh in the serum was 10 -140 M. The excellent performance of this biosensor showed that the method can be used in practice detection of choline and ACh. The performance of the device exceeds most reported ACh microsensors. However, the characteristic curve is not linear, and calibration is required for this device. Ternaux and Chamoin described an enhanced chemiluminescence assay method for the determination of ACh. In some methods ACh was hydrolyzed by acetylcholinesterase before the analysis. Electron transfer and oxidation by hydrogen peroxide were facilitated by immobilizing the enzyme on a redox polymer. ACh is not electroactive, thus, it cannot be analyzed by electrochemical methods. Therefore, methods recently published for monitoring ACh involve either biosensor or MS detection. Biosensors were used for the direct detection of ACh or preceded by LC. A common biosensor scheme requires co-immobilization of acetylcholinesterase and choline oxidase. ACh is converted to choline, and choline is further oxidized by choline oxidase to produce hydrogen peroxide, which is detected. Since choline is a normal metabolite of ACh in vivo, another biosensor coated only with choline oxidase is often used together with the ACh biosensor to measure and subtract out the signal due to endogenously occurring choline. As with all biosensors or microelectrodes, major concerns are their selectivity and sensitivity in relation to a target molecule. Therefore, interfering electroactive species were excluded from ACh electrodes with permiselective membranes composed of over oxidized poly(pyrrole)-poly(2-naphthol) films. Carballo et all demonstrated liquid chromatography with the electrochemical detection (LC-EC) system using an electrode for the detection of ACh. Those methods published for the determination of ACh by LC-MS in dialysate or cell culture samples sought rapid separations and a sensitive detection with the minimal ion suppression during ESI . In some new enzymatic methods based on the use of two sequential reactions involving acetylcholinesterase and choline oxidase, the control of the content of hydrogen peroxide is carried out by the chemiluminescent method following the catalytic oxidation reaction of the chemiluminescent luminol indicator in the presence of the enzyme peroxidase. In this article a new kinetic-chemiluminescent method for the determination of acetylcholine chloride has been proposed. It is based on the application of a conjugated system of two successive reactions -ACh perhydrolysis and oxidation reaction of the chemiluminescence indicator luminol (H 2 L) induced by peracetic acid formed at the first stage. Peracetic acid formed as the result of ACh perhydrolysis reacts with luminol in the presence of hydrogen peroxide with the generation of chemiluminescence measured by the chemiluminescence method of the fixed time. The scheme of luminol oxidation is given in Scheme 2. Based on the experimental data it was found that within the pH range of 8.2 -8.5 the intensity of chemi- The stock solution of acetylcholine chloride (2.75 10 -2 mol/L) was prepared daily and stored at 4 °C. The analyte was weighed using a calibrated scale (model AG204, Mettler-Toledo, Greifensee, Switzerland). The experiment conditions used in the research were selected based on the literature sources . Preparation of the Working Standard Solution of acetylcholine chloride, 5.07 mg/mL. Dissolve 0.50717 g of acetylcholine chloride reference standard ex tempore in degassed double distilled water to make 100.00 mL of solution. Store in a high-density polyethylene or polypropylene bottle at 4 °C. The content of ACh in the solution was controlled by argentometric titration. Working solutions with a smaller amount of acetylcholine chloride were prepared daily by diluting accurately the stock solution. Preparation of phosphate buffer, pH 8.5 To 250.0 ml of 0.2 mol/L solution of disodium phosphate add 8.0 mL of 0.1 mol/L of hydrogen chloride solution. The pH control was carried out potentiometrically using a glass electrode ELS-43-07 and I-130 ionomer. Preparation of hydrogen peroxide solution, 5 % (1.5 mol/L). Dissolve 16.5 g of 30 % hydrogen peroxide in water in a 100 mL volumetric flask and dilute the solution to the volume with water. The content of hydrogen peroxide in the solution was controlled by the method of permanganometry. Preparation of 0.01 mol/L stock solution of luminol in 0.01 mol/L solution of sodium hydroxide. Dissolve 0.1772 g of luminol in 100.0 mL of 0.01 mol/L solution of sodium hydroxide. Dilute the resulting solution of luminol 10 times with double distilled water. The procedure for the quantitative determination of acetylcholine by the chemiluminescence method. When studying the impact of the ACh concentration on chemiluminescence in the (ACh + buffer + H 2 O 2 ) + 2 L system, an order of operations was as follows. A sample of the test solution of ACh (from 0.10 to 1.00 mL), 1.00 mL of 5 % solution of hydrogen peroxide and (10 -Y) mL of 0.2 mol/L of the phosphate buffer solution (pH 8.5) (where «Y is the total volume of all other components in the solution) were added into a flask with a lapped stopper, and all components were mixed thoroughly. The flask was left in the thermostat at 40 °C for 15 min. Then 1.00 mL of the resulting mixture was taken and placed in a quartz cuvette, with stirring, 8.5 mL of phosphate buffer solution (pH 8.5) was added, and the cuvette was placed in a measuring cell of a chemiluminescent photometer. After that the curtain was opened and 0.5 mL of 1 10 -3 mol/L of luminol solution was added to the cuvette. The total luminescence was recorded using an I-02 digital automatic integrator for 20 sec. The dependence of the chemiluminescence intensity on time (sec) was registered on the kinetic graph (Fig. 2). The experiment was repeated five times. The desired signal was the area under the curvethe integral of the chemiluminescence over time period (20 sec) (, relative units (rel. un.)) obtained by averaging the values of five experiments. The sensitivity was 2 mV, and the chart speed was v = 0.6 cm/min. All experiments were conducted at 18 to 20°. The content of acetylcholine was found on the calibration graph. The control experiment was performed as follows: 9.0 mL of 0.2 mol/L phosphate buffer solution (pH 8.5) and 1.0 mL of 5 % solution of hydrogen peroxide were added to a 10 mL tube with a lapped stopper with stirring. 1.00 mL of the solution was introduced into the cuvette, stirred with 8.5 mL of phosphate buffer (pH 8.5), and the cell was placed in a chemiluminescent photometer. The curtain was opened, and the value of integral chemiluminescence was registered using an I-02 digital automatic integrator for 20 sec (, rel. un.). The method of obtaining the data for the calibration curve. In a tube with a lapped stopper, (10 -Y) mL of 0.2 mol/L phosphate buffer solution (pH 8.5) (where "Y" is the total volume of all other components in the solution), 1.00 mL of 5 % solution of hydrogen peroxide and a sample of the test solution of ACh (0.10; 0.20; 0.40; 0.50; 0.70 and 1.00 mL) were added. The analysis was performed in the same way as when testing model solutions (see the procedure above). Results and discussion A series of experiments allowed us to determine the dependence of integral chemiluminescence (, rel. un.) on the concentration of ACh in the cell (c, mol/L) (Fig. 4). The linear dependence was observed on the acetylcholine chloride concentration range of (0.8 -2.8) 10 -4 mol/L ( Table 1). The concentration of ACh was calculated using the following formula: in the working and control (without ACh) experiments, in relative light units; V a -is the volume of the sample solution taken for testing, mL; 10, 10 -is the dilution. The results of determining acetylcholine chloride in model solutions by the chemiluminescence method using the reaction with hydrogen peroxide and luminol is presented in Table 2. The procedure of the ACh assay in Acetylcholinchlorid Injeel ® (Biologische Heilmittel Heel GmbH). The procedure was as follows: 1.00 mL solution contained in an ampoule of Acetylcholinchlorid Injeel ® (Biologische Heilmittel Heel GmbH) (0.367 g (on dried base) in 1.1 mL) was quantitatively transferred into a 100 mL volumetric flask, and double distillated water was added to make 100 mL solution. The micropipettes were used to introduce a sample of the test solution of ACh prepared (1.00 mL), 1.00 mL of 5 % solution of hydrogen peroxide and (10 -Y) mL of 0.2 mol/L phosphate buffer solution (pH 8.5) (where "Y" is the total volume of all other components of the solution) into a tube with a lapped stopper, and the content was mixed thoroughly. The analysis was performed in the same way as when testing model solutions (see the procedure above "The procedure for the quantitative determination of acetylcholine by the chemiluminescence method"). Accurately weighed 0.367 g of acetylcholine chloride reference standard was dissolved ex tempore in degassed double distilled water to make 100.00 mL of solution. The micropipettes were used to introduce a sample of standard solution of acetylcholine (1.00 mL), 1.00 mL of 5 % solution of hydrogen peroxide and (10 -Y) mL of 0.2 mol/L phosphate buffer solution (pH 8.5) (where «Y is the total volume of all other components of the solution) into a tube with a lapped stopper, and all the components were mixed thoroughly. The flask was left in the thermostat at 40 °C for 15 min. 1.00 mL of the resulting mixture was collected and placed in a quartz cuvette, with stirring, 8.5 mL of phosphate buffer solution (pH 8.5) was added, and the cuvette was placed in a measuring cell of a chemiluminescent photometer. After the curtain opening 0.5 mL of 1 10 -3 mol/L of luminol solution was added. The total luminescence was registered using an I-02 digital automatic integrator for 20 sec. The expe- Table 2 The results of the acetylcholine chloride determination in model solutions by the chemiluminescence method using the reaction with hydrogen peroxide and luminol (P = 0.95, n = 5) C taken, 10 -4 mol/L C found, 10 -4 mol/L Recovered, mol/L RSD, % d, % riment was repeated five times. The control experiment was performed as it was mentioned above (see "Procedure for the quantitative determination of acetylcholine by the chemiluminescence method"). The content of ACh ( (g) of a dried substance) in one ampoule was calculated by the following formula: where: m st -is the standard sample weight, g; w st -is the content of anhydrous ACh, %; 1.00 -is the volume of the test solution taken for analysis, mL; V -is the average volume of the solution in ampoules, mL; x -is the difference in values of integral chemiluminescence in the working and control (without ACh) experiments in relative light units; st -is the difference in values of integral chemiluminescence in the standard solution and control (without ACh) experiment in relative light units. The results of the Ah analysis in the pharmaceutical formulation Acetylcholinchlorid Injeel ® (Biologische Heilmittel Heel GmbH) by the method proposed (n = 7, = 0.95) are presented in Table 3. From the results given above, we can conclude that this chemiluminescent method is a fast, simple and non-enzymatic approach for the quantitative determination of ACh in aqueous solutions; it is based on the reaction of perhydrolysis of ACh to peracetic acid and the subsequent chemiluminescent de-termination of its amount by the reaction of chemiluminescent oxidation of luminol. While determining acetylcholine chloride in the concentration range of (1.1 -2.2) 10 -4 mol/L the relative standard deviation did not exceed 3 % (RSD ≤ 3 %, ((X -) 100 %/ = -0.5+0.5 %)). The limit of quantitation (LOQ, 10 S) was 7.7 10 -5 mol/L. Conclusions A new non-enzymatic kinetic method for the chemiluminescent determination of acetylcholine in aqueous solutions and the pharmaceutical formulation Acetylcholinchlorid Injeel ® has been proposed. This method is simple, fast, inexpensive, and thus appropriate for the routine acetylcholine quality control in the laboratories of hospitals, pharmaceutical industries and research institutions.
<reponame>muffato/ensj-healthcheck /* * Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute * Copyright [2016-2020] EMBL-European Bioinformatics Institute * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.ensembl.healthcheck.testcase.generic; import java.sql.Connection; import java.util.Iterator; import java.util.List; import org.ensembl.healthcheck.DatabaseRegistryEntry; import org.ensembl.healthcheck.DatabaseType; import org.ensembl.healthcheck.ReportManager; import org.ensembl.healthcheck.Team; import org.ensembl.healthcheck.testcase.Priority; import org.ensembl.healthcheck.testcase.SingleDatabaseTestCase; import org.ensembl.healthcheck.util.DBUtils; /** * Check for columns of type ENUM that have blank values - probably means there was a problem importing them. */ public class BlankEnums extends SingleDatabaseTestCase { /** * Create a new BlankEnums testcase. */ public BlankEnums() { setDescription("Check for columns of type ENUM that have blank values - probably means there was a problem importing them."); setPriority(Priority.AMBER); setEffect("Will have blank values where NULL or one of the enum values is expected."); setFix("Re-import after identifying source of problem - possibly the word NULL in import files instead of \\N"); setTeamResponsible(Team.GENEBUILD); } public void types() { addAppliesToType(DatabaseType.FUNCGEN); } /** * Run the test. * * @param dbre * The database to use. * @return true if the test passed. * */ public boolean run(DatabaseRegistryEntry dbre) { boolean result = true; Connection con = dbre.getConnection(); String[] tables = DBUtils.getTableNames(con); for (int i = 0; i < tables.length; i++) { String table = tables[i]; List columnsAndTypes = DBUtils.getTableInfo(con, table, "enum"); Iterator it = columnsAndTypes.iterator(); while (it.hasNext()) { String[] columnAndType = (String[]) it.next(); String column = columnAndType[0]; int rows = DBUtils.getRowCount(con, "SELECT COUNT(*) FROM " + table + " WHERE " + column + "=''"); if (rows > 0) { ReportManager.problem(this, con, rows + " rows in " + table + "." + column + " are blank, should be NULL or one of the ENUM values"); result = false; } } } return result; } // run } // BlankEnums
<reponame>Harpagonming/SpringCloud package com.zhenming.demo.cloud.eureka.web; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController public class BaseController { public static final Logger log = LoggerFactory.getLogger(BaseController.class); @GetMapping("/base/test") public Object home(@RequestParam("id") String id) { log.info("/base/test\tparameter: id = {}", id); return id; } }
Ischemic Lesion Location Based on the ASPECT Score for Risk Assessment of Neurogenic Dysphagia Dysphagia is common in patients with middle cerebral artery (MCA) infarctions and associated with malnutrition, pneumonia, and mortality. Besides bedside screening tools, brain imaging findings may help to timely identify patients with swallowing disorders. We investigated whether the Alberta stroke program early CT score (ASPECTS) allows for the correlation of distinct ischemic lesion patterns with dysphagia. We prospectively examined 113 consecutive patients with acute MCA infarctions. Fiberoptic endoscopic evaluation of swallowing (FEES) was performed within 24 h after admission for validation of dysphagia. Brain imaging (CT or MRI) was rated for ischemic changes according to the ASPECT score. 62 patients (54.9%) had FEES-proven dysphagia. In left hemispheric strokes, the strongest associations between the ASPECTS sectors and dysphagia were found for the lentiform nucleus (odds ratio 0.113 [CI 0.0280.433; p=0.001), the insula (0.275 ; p=0.011), and the frontal operculum (0.280 ; p=0.022). A combination of two or even all three of these sectors together increased relative dysphagia frequency up to 100%. For right hemispheric strokes, only non-significant associations were found which were strongest for the insula region. The distribution of early ischemic changes in the MCA territory according to ASPECTS may be used as risk indicator of neurogenic dysphagia in MCA infarction, particularly when the left hemisphere is affected. However, due to the exploratory nature of this research, external validation studies of these findings are warranted in future. Electronic supplementary material The online version of this article (10.1007/s00455-020-10204-0) contains supplementary material, which is available to authorized users. Introduction Dysphagia is common among patients with acute ischemic stroke with a reported incidence of up to 78%. It is associated with an increased rate of in-hospital complications (such as malnutrition and aspiration pneumonia) and with unfavorable long-term functional outcome. Therefore, early identification of patients with post-stroke dysphagia is of utmost importance in order to guide decisions concerning nutrition status, drug administration and necessity of further instrumental diagnostics (e.g., fiberoptic endoscopic evaluation of swallowing and/or videofluoroscopic swallowing study). Consequently, the current standard of stroke care requires that all patients should undergo a standardized dysphagia screening. Although many different swallowing screening tests, which have been validated in the stroke population, provide acceptable sensitivity, no single test has been accepted as the gold standard yet. Hence, there is an urgent need to establish additional clinical parameters, e.g., radiological findings, to raise diagnostic accuracy in identifying dysphagic patients. Individuals with acute infarctions involving brain areas highly related to dysphagia could be targeted for expedited referral to a Speech and Language Pathologist (SLP) and/or instrumental swallowing assessment. Several studies have shown that volume, location, and lateralization of the lesion are associated with dysphagia incidence, severity, and characteristics of swallowing dysfunction. While right hemispheric stroke was linked to pharyngeal-stage dysfunction, aspiration, and higher dysphagia frequency, left hemispheric stroke was connected to oral-stage dysfunction and less severe dysphagia. Furthermore, lesions in distinct brain areas such as the pre-and post-central gyri, opercular region, supramarginal gyrus, and adjacent subcortical white matter tracts were identified to be related to dysphagia, with post-central lesions being especially associated with severe swallowing impairment. Although considered to be a valuable information, the implementation of such radiological findings into clinical routine is challenging. In this context, the Alberta stroke program early CT score (ASPECTS) can provide a tailored remedy: ASPECTS is a 10-point quantitative topographic CT scan score originally designed to quantify the degree of early ischemic changes in the brain parenchyma of patients with middle cerebral artery (MCA) stroke. By dividing the MCA territory in ten segments, it might allow for a standardized correlation between certain brain areas and dysphagia. A particular advantage of ASPECTS is its quick and easy applicability without the need for additional imaging processing steps, while offering simultaneously high reliability and reproducibility. Given that evaluation according to the ASPECTS criteria is routinely performed in acute stroke care, a detailed investigation whether individually affected segments or the sum score might help to identify stroke patients at risk for dysphagia is of high practical importance. Since swallowing is a midline function with bilateral cortical activation, it remains controversial to what extent swallowing function is lateralized. Therefore, it would be particularly interesting to know whether differences regarding the association of affected ASPECT segments or the sum score exist between the right and the left hemisphere. Study Design 113 consecutive patients with acute ischemic stroke in the MCA territory were included in this study. A sub-cohort had been previously analyzed. The study was approved by the ethics committee of the Goethe University Hospital Frankfurt and was conducted according to the principles of the Declaration of Helsinki. All patients, resp. their legal representatives, gave their informed consent prior to their inclusion in the study. Patients Patients were included within 72 h after symptom onset if they had clinical and imaging evidence (computed tomography including CT angiography or magnetic resonance imaging including MR angiography) of MCA infarction. Exclusion criteria were: age younger than 18 years, imaging evidence of intracerebral hemorrhage, imaging evidence of ischemic stroke also in other vascular territories, resolution of symptoms within 24 h (i.e., transitory ischemic attack), impaired level of consciousness, need for immediate orotracheal intubation or neurosurgical interventions. Patients having pre-existing dysphagia or any concomitant disease likely to cause dysphagia were also excluded. Dysphagia Assessment All patients received a full assessment of speech, voice, language, and swallowing function including instrumental swallowing assessment within 24 h after admission. For the purpose of this study fiberoptic endoscopic evaluation of swallowing (FEES) was used to assess dysphagia. It has been shown to be an excellent objective method for a quick, safe, and precise dysphagia assessment in the first days after stroke. FEES can be performed bedside at short notice at the intensive care unit (ICU) and/ or stroke unit, enabling evaluation of patients in critical medical conditions, which frequently applies to patients with severe stroke. In a first step, the presence of dysarthria, dysphonia, abnormal volitional cough, abnormal gag reflex, aphasia, and buccofacial apraxia were evaluated. In a second step, all patients underwent FEES to assess the presence of dysphagia (primary endpoint) and to classify dysphagia severity (secondary endpoint). Patients were rated as being dysphagic when one or more of the following signs of swallowing dysfunction were detected during endoscopic swallowing examination: disturbed management of secretions (i.e., pooling or aspiration of saliva), penetration or aspiration of any food consistency, relevant pharyngeal food residue after the swallow, or premature spillage with delayed initiation of the swallowing reflex. Dysphagia severity was rated according to the fiberoptic dysphagia severity scale (FEDSS) with 1 scoring best and 6 being worst. Patients were categorized in mildly dysphagic and severely dysphagic. FEES equipment consisted of a 3.1-mm-diameter flexible fiberoptic rhinolaryngoscope (ENF-P4, Olympus, Hamburg Germany), a 150 W light source for endoscopic application (rp-150), a camera (rpCam62, S/N), a color monitor (7-TFT-EIZO, 1500:1), and a video recorder (1/2" CCD-Kamera, rp Cam62). All examinations were videotaped. FEES procedures were performed from a neurologist and a SLP, both having several years of experience with the diagnostic tool. We followed a standardized FEES protocol. In brief, the examination started with rating the severity of oropharyngeal secretions. Next, different food consistencies were applied to the patient starting with thickened water followed by semisolid (pudding), liquid, and solid (white bread) textures. All food was dyed with blue food coloring for better contrast with pharyngeal and laryngeal mucosa. Each consistency was regularly tested three times, but we refrained from further examinations with the respective texture in case of aspiration without total ejection of the material (PAS 7 and 8). In addition, patients were evaluated for the occurrence of (aspiration) pneumonia using the same criteria as the ones employed in a previous study : Pneumonia was defined as nosocomial, hospital-acquired pneumonia occurring during hospitalization, at least ≥ 48 h after admission, documented by a physician, and requiring antibiotic treatment. Brain Imaging Assessment Brain images were independently rated by a blinded neuroradiologist (EH) and a blinded neurologist (OCS), both experienced in the evaluation of brain imaging in stroke patients. If ASPECTS differed ≤ 1 point, the neuroradiologist's judgment was followed. If ASPECTS deviated ≥ 2 points between the two raters (n = 22), a joint re-evaluation was performed. The ASPECT score was determined either on the first CT scan with clear visible ischemic changes or, if available, on the first MRI scan (to assess DWI-ASPECTS). Median time interval between hospital admission and the brain imaging used for ASPECTS evaluation was 1 day (IQR 0-4). In brief, the MCA territory in both hemispheres was divided into 10 regions (see Table 2), each representing 1 point on the 10-point ASPECT score. A single point was subtracted for an area of ischemic changes on CT, respectively, on MRI. On CT scans (n = 76 patients), ischemic changes were evaluated according the recommendations of the Alberta stroke program (https ://www.aspec tsins troke.com/). On CT scans, ischemic changes were defined as any or all of hypoattenuation of the basal ganglia, loss of insular ribbon (insular ribbon sign), loss of grey-white matter differentiation due to cortical hypodensity, hemispheric sulcus effacement due to cortical swelling. All MRI scans (in n = 37 patients) included axial diffusion-weighted images on which the DWI-ASPECT score was evaluated. For DWI sequences, focal ischemia was defined by hyperintense signal. Statistical Analysis The t-test (for parametric data), the Mann-Whitney U test (for non-parametric data) and the chi-square test (for binary variables) were used to test for differences between patients with and without dysphagia. Odds ratios (OR) for the occurrence of dysphagia (vs. no dysphagia) were calculated for each of the 10 ASPECTS segments, separately for the left and the right hemisphere using individual regression analyses. In addition, a stepwise multivariate regression model was used to identify ASPECTS segments that were independently associated with dysphagia. A second multivariate regression model was used to evaluate if the ASPECT sum score adjusted for age and sex (and NIHSS explorative) was independently associated with dysphagia. A third multivariate regression analysis adjusted for age and sex was performed to analyze potential associations between ASPECT sum scores and the occurrence of pneumonia. A significance level of alpha = 0.05 was chosen for all tests. Data were analyzed using SPSS 19 (IBM Corporation, Somers, N.Y., USA). A heat map was created using Office Excel 2017 (Microsoft Corporation, Redmond, USA) to visually display the OR values derived from the individual regression analyses (see above). For doing so the location of each of the 10 ASPECTS segments was manually marked on both hemispheres of the sample CT scan. Subsequently, for each ASPECTS segment, the software tool assigns a color tone from a defined continuous color range according to the given OR values (from 1.0 to 0.1). Results 113 patients with an acute ischemic stroke in the MCA territory were included in this study. Mean age was 69 ± 13 years, and 40% were female. Baseline data and clinical variables of the study population are displayed in Table 1. According to FEES, 62 patients (54.9%) were classified as having dysphagia. Dysphagic patients more often had aphasia, were mutistic, had an abnormal gag reflex, and suffered from buccofacial apraxia than non-dysphagic patients. NIHSS at hospital admission was significantly higher in the dysphagic group as compared to the non-dysphagic group ( Table 1). The frequency of dysphagia was not different between left-and right-sided MCA infarctions (40 out of 72 patients vs. 22 out of 41 patients; p = 0.500). Moreover, no difference in ASPECT sum scores was observed between strokes affecting the left or the right hemisphere (median 7 vs. 7 ; p = 0.579). In the left hemisphere the strongest associations between the ASPECTS segments and dysphagia were found for the lentiform nucleus Table 2 and heat map ). For the right hemisphere, the strongest association was found for the insula region Table 3 shows the relative frequency of dysphagia rising up to 100% with respect to the number and location ("hot spots", see Table 2) of affected areas in patients with left hemispheric strokes as illustrated by the heat map. ASPECT sum scores were lower in patients with dysphagia compared to patients without dysphagia (median 8 [IQR 6.0-9.0) vs. 7 ; p = 0.001; see Table 1). We found a steady increase of dysphagia risk with lower ASPECT scores for the left hemisphere. This was much less present in the right hemisphere (bar chart, Fig. 2). Likewise, for unaffected "hot spots", the risk of dysphagia increased with decreasing ASPECT scores; however, for affected "hot spots" a relevant risk of dysphagia already existed with higher ASPECT scores (see Suppl. significant association between pneumonia and the three "hot spot" segments of the left hemisphere could not be observed. Discussion The main finding of this study is that a standardized neuroanatomical lesion map based on the ASPECTS can be used in the acute phase of stroke to identify ischemic "hot spot" lesions associated with dysphagia. Our analysis revealed different associations between ASPECTS segments and dysphagia for both the left and the right hemisphere, thus providing interesting insights into the cortical and subcortical representation of swallowing within the MCA territory. In the right hemisphere, only the involvement of the insular cortex tended to be associated with swallowing dysfunction. In contrast, involvement of the lentiform nucleus, the insular cortex and the frontal operculum in the left hemisphere were predictive for dysphagia. Our findings are in line with results from previous studies. The inferior precentral gyrus and the insular cortex are known to represent critical nodes of the supratentorial deglutition network. The insular cortex has been associated with related swallowing and nutritional properties such as coordination of oral musculature gustation, and autonomic functions, through connectivity or inherent ability of its own. Its general involvement in swallowing has been consistently demonstrated over many studies, while findings are diverse as to whether there is a right or left hemisphere lateralization of this region. Several authors suggest that the left insula strongly contributes to the initiation of the swallow by processing sensory elements and interacting with widespread brain regions in both hemispheres. Although not as pronounced as for the insula, a leftsided lateralization of the frontal operculum during swallowing has been reported. The strong association between the lentiform nucleus and dysphagia within the left hemisphere needs to be highlighted as an interesting finding. Although data on the role of the lentiform nucleus as part of the basal ganglia are scarce, neuroimaging studies have confirmed its involvement in swallowing. To what extend lentiform nucleus lesions contribute to the development of post-stroke dysphagia remains unclear. Our data attribute a more profound role of the left lentiform nucleus in swallowing. Looking at the frequency of dysphagia in those patients with afflicted "hot spot" areas (Table 3) in the left hemisphere, the involvement of the lentiform nucleus solely was associated with a relative dysphagia frequency of about 80%. Considering a combination of the lentiform nucleus with either the frontal operculum and/or the insula increases the relative frequency of dysphagia up to 100%. Those patients with infarction involving one or more of these ASPECTS segments (frontal operculum, insular cortex, lentiform nucleus) should be targeted for a more profound evaluation by a SLP or instrumental swallowing assessment independently from swallowing screening result. We observed an inverse correlation between dysphagia risk and ASPECT sum score, which was much stronger for the left than for the right hemisphere (Fig. 2). As a potential explanation, a more widespread representation of swallowing within the left hemisphere can be assumed. This is in accordance with available literature describing greater anatomical connectivity for swallowing in the left hemisphere. We enriched the analysis by the additional evaluation of pneumonia incidence in our patients. A trend towards an association between lower ASPECT scores and pneumonia was observed for the left hemisphere. The severity of neurological deficits in terms of NIHSS has been identified as an important clinical predictor of poststroke dysphagia. For example, a NIHSS score of > 13 is used as a triage instrument to facilitate the choice of an alternative feeding route within 48 h after stroke. However, NIHSS scoring underlies a hemispheric bias as it over-represents comprehension-dependent (left hemisphereassociated) tasks rather than tasks relying on right hemisphere functions. For example, imaging studies have shown that patients with right hemispheric stroke can have low NIHSS scores despite substantial infarct volumes. Here, ASPECTS enables a more objective assessment of stroke magnitude. Consequently, no difference was found for the ASPECT sum score between left-and right-sided MCA strokes. Strengths of our study are the prospective recruitment of a homogeneous collective of patients with MCA infarctions. We consistently used FEES which is considered to be an objective swallowing assessment tool that offers an excellent diagnostic accuracy and inter-rater reliability in acute. Shortcomings include the limited number of patients, thereby leaving the statistical evaluation of the right MCA infarction group underpowered. Moreover, the results for the frontal operculum (M1) have to be interpreted with caution, since the statistically significance did not withstand after adjustment for multiple comparisons. In order to accurately detect the extent of ischemic changes in CT scans according to ASPECTS, we analyzed the first CT scan with clear ischemic changes. Therefore, our findings might be limited regarding CT brain imaging in the very early phase of stroke, where ischemic changes still might be missing. Moreover, brain imaging consisted of both CT and MR scans, which might have caused heterogeneity in the determination of the ASPECT score. However, previous data showed that the differences between CT and MR imaging (DWI) in visualizing early infarction are small when using ASPECTS. Conclusion In summary, the distribution and extent of ischemic changes in the MCA territory according to ASPECTS may be used as risk indicator of neurogenic dysphagia in MCA infarction, particularly when the left hemisphere is affected. Although hitherto radiological findings are not frequently used in acute dysphagia management our data show that lesion location defined via ASPECTS provide additional predictive information. However, due to the exploratory nature of this research external validation studies of these findings are warranted in future. Nevertheless, we believe that this work might stimulate further research to transfer radiological parameters in acute dysphagia management. Author Contributions SL (first author): Major role in the acquisition of data; designed and conceptualized the study; analyzed and interpreted the data; and drafted the manuscript for intellectual content. CF: Analyzed and interpreted the data and revised the manuscript for intellectual content. OCS: Analyzed the imaging data; revised the manuscript for intellectual content. EH: Analyzed the imaging data and revised the manuscript for intellectual content. SL (senior author, corresponding author): Designed and conceptualized the study; analyzed and interpreted the data; and drafted the manuscript for intellectual content. Funding Open Access funding enabled and organized by Projekt DEAL. No special funding for this study. Data Availability Anonymized data used in this study are available on request from Dr. Sriramya Lapa.
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2006 <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA <NAME> <EMAIL> */ #include "SDL_config.h" /* Simple error handling in SDL */ #include "SDL_error.h" #include "SDL_error_c.h" #define SDL_THREADS_DISABLED 1 /* Routine to get the thread-specific error variable */ #if SDL_THREADS_DISABLED /* The SDL_arraysize(The ),default (non-thread-safe) global error variable */ static SDL_error SDL_global_error; #define SDL_GetErrBuf() (&SDL_global_error) #else extern SDL_error *SDL_GetErrBuf(void); #endif /* SDL_THREADS_DISABLED */ #define SDL_ERRBUFIZE 1024 /* Private functions */ static const char *SDL_LookupString(const char *key) { /* FIXME: Add code to lookup key in language string hash-table */ return key; } /* Public functions */ void SDL_SetError (const char *fmt, ...) { va_list ap; SDL_error *error; /* Copy in the key, mark error as valid */ error = SDL_GetErrBuf(); error->error = 1; SDL_strlcpy((char *)error->key, fmt, sizeof(error->key)); va_start(ap, fmt); error->argc = 0; while ( *fmt ) { if ( *fmt++ == '%' ) { while ( *fmt == '.' || (*fmt >= '0' && *fmt <= '9') ) { ++fmt; } switch (*fmt++) { case 0: /* Malformed format string.. */ --fmt; break; case 'c': case 'i': case 'd': case 'u': case 'o': case 'x': case 'X': error->args[error->argc++].value_i = va_arg(ap, int); break; case 'f': error->args[error->argc++].value_f = va_arg(ap, double); break; case 'p': error->args[error->argc++].value_ptr = va_arg(ap, void *); break; case 's': { int i = error->argc; const char *str = va_arg(ap, const char *); if (str == NULL) str = "(null)"; SDL_strlcpy((char *)error->args[i].buf, str, ERR_MAX_STRLEN); error->argc++; } break; default: break; } if ( error->argc >= ERR_MAX_ARGS ) { break; } } } va_end(ap); /* If we are in debug mode, print out an error message */ #ifdef DEBUG_ERROR fprintf(stderr, "SDL_SetError: %s\n", SDL_GetError()); #endif } /* This function has a bit more overhead than most error functions so that it supports internationalization and thread-safe errors. */ char *SDL_GetErrorMsg(char *errstr, unsigned int maxlen) { SDL_error *error; /* Clear the error string */ *errstr = '\0'; --maxlen; /* Get the thread-safe error, and print it out */ error = SDL_GetErrBuf(); if ( error->error ) { const char *fmt; char *msg = errstr; int len; int argi; fmt = SDL_LookupString(error->key); argi = 0; while ( *fmt && (maxlen > 0) ) { if ( *fmt == '%' ) { char tmp[32], *spot = tmp; *spot++ = *fmt++; while ( (*fmt == '.' || (*fmt >= '0' && *fmt <= '9')) && spot < (tmp+SDL_arraysize(tmp)-2) ) { *spot++ = *fmt++; } *spot++ = *fmt++; *spot++ = '\0'; switch (spot[-2]) { case '%': *msg++ = '%'; maxlen -= 1; break; case 'c': case 'i': case 'd': case 'u': case 'o': case 'x': case 'X': len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_i); msg += len; maxlen -= len; break; case 'f': len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_f); msg += len; maxlen -= len; break; case 'p': len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_ptr); msg += len; maxlen -= len; break; case 's': len = SDL_snprintf(msg, maxlen, tmp, SDL_LookupString(error->args[argi++].buf)); msg += len; maxlen -= len; break; } } else { *msg++ = *fmt++; maxlen -= 1; } } *msg = 0; /* NULL terminate the string */ } return(errstr); } /* Available for backwards compatibility */ char *SDL_GetError (void) { static char errmsg[SDL_ERRBUFIZE]; return((char *)SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE)); } void SDL_ClearError(void) { SDL_error *error; error = SDL_GetErrBuf(); error->error = 0; } /* Very common errors go here */ void SDL_Error(SDL_errorcode code) { switch (code) { case SDL_ENOMEM: SDL_SetError("Out of memory"); break; case SDL_EFREAD: SDL_SetError("Error reading from datastream"); break; case SDL_EFWRITE: SDL_SetError("Error writing to datastream"); break; case SDL_EFSEEK: SDL_SetError("Error seeking in datastream"); break; default: SDL_SetError("Unknown SDL error"); break; } } #ifdef TEST_ERROR int main(int argc, char *argv[]) { char buffer[BUFSIZ+1]; SDL_SetError("Hi there!"); printf("Error 1: %s\n", SDL_GetError()); SDL_ClearError(); SDL_memset(buffer, '1', BUFSIZ); buffer[BUFSIZ] = 0; SDL_SetError("This is the error: %s (%f)", buffer, 1.0); printf("Error 2: %s\n", SDL_GetError()); exit(0); } #endif
/* * Copyright 2019 wjybxx * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.wjybxx.fastjgame.findpath; import com.wjybxx.fastjgame.scene.MapGrid; import com.wjybxx.fastjgame.shape.Point2D; import com.wjybxx.fastjgame.utils.MathUtils; import java.util.Arrays; import java.util.List; /** * 寻路过程中的一些辅助方法 * * @author wjybxx * @version 1.0 * date - 2019/6/12 15:13 * github - https://github.com/hl845740757 */ public class FindPathUtils { /** * 邻居节点偏移量 */ public static final NeighborOffSet[] neighborOffsetArray = { new NeighborOffSet(-1, 1), new NeighborOffSet(0, 1), new NeighborOffSet(1, 1), new NeighborOffSet(-1, 0), new NeighborOffSet(1, 0), new NeighborOffSet(-1, -1), new NeighborOffSet(0, -1), new NeighborOffSet(1, -1) }; private FindPathUtils() { } /** * 如果指定格子可行走,则添加到neighbor中 * * @param context 寻路上下文 * @param nx neighborX * @param ny neighborY * @param neighbors 邻居节点容器,传入以方便使用缓存 * @return true/false 添加成功则返回true,失败返回false */ public static boolean addNeighborIfWalkable(FindPathContext context, int nx, int ny, List<MapGrid> neighbors) { if (context.isWalkable(nx, ny)) { neighbors.add(context.getGrid(nx, ny)); return true; } else { return false; } } /** * 获取当前节点的所有邻居节点 * * @param context 寻路上下文 * @param x 当前x坐标 * @param y 当前y坐标 * @param diagonalMovement 对角线行走策略 * @param neighbors 邻居节点容器,传入以方便使用缓存 */ public static void statisticsNeighbors(FindPathContext context, final int x, final int y, DiagonalMovement diagonalMovement, List<MapGrid> neighbors) { boolean up = false, leftUpper = false, right = false, rightUpper = false, down = false, rightLower = false, left = false, leftLower = false; // 上 if (context.isWalkable(x, y + 1)) { neighbors.add(context.getGrid(x, y + 1)); up = true; } // 右 if (context.isWalkable(x + 1, y)) { neighbors.add(context.getGrid(x + 1, y)); right = true; } // 下 if (context.isWalkable(x, y - 1)) { neighbors.add(context.getGrid(x, y - 1)); down = true; } // 左 if (context.isWalkable(x - 1, y)) { neighbors.add(context.getGrid(x - 1, y)); left = true; } switch (diagonalMovement) { case Never: // 不必执行后面部分 return; case Always: leftUpper = true; rightUpper = true; rightLower = true; leftLower = true; break; case AtLeastOneWalkable: leftUpper = left || up; rightUpper = right || up; rightLower = right || down; leftLower = left || down; break; case OnlyWhenNoObstacles: leftUpper = left && up; rightUpper = right && up; rightLower = right && down; leftLower = left && down; break; default: break; } // 左上 if (leftUpper && context.isWalkable(x - 1, y + 1)) { neighbors.add(context.getGrid(x - 1, y + 1)); } // 右上 if (rightUpper && context.isWalkable(x + 1, y + 1)) { neighbors.add(context.getGrid(x + 1, y + 1)); } // 右下 if (rightLower && context.isWalkable(x + 1, y - 1)) { neighbors.add(context.getGrid(x + 1, y - 1)); } // 左下 if (leftLower && context.isWalkable(x - 1, y - 1)) { neighbors.add(context.getGrid(x - 1, y - 1)); } } /** * 构建最终路径 * * @param context 寻路信息 * @param finalPathNode 寻到的最终节点 * @return 去除了冗余节点的路径 */ public static List<Point2D> buildFinalPath(FindPathContext context, final FindPathNode finalPathNode) { Point2D[] pathArray = new Point2D[finalPathNode.getDepth() + 1]; for (FindPathNode tempNode = finalPathNode; tempNode != null; tempNode = tempNode.getParent()) { MapGrid mapGrid = context.getGrid(tempNode.getX(), tempNode.getY()); pathArray[tempNode.getDepth()] = Point2D.newPoint2D(mapGrid.getCenter()); } return Arrays.asList(pathArray); } /** * 路径平滑处理(暂时只是去掉冗余点,还未真正做到完全平滑) * - https://blog.csdn.net/lqk1985/article/details/6679754 */ public static List<Point2D> buildSmoothPath(FindPathContext context, final FindPathNode finalPathNode) { deleteRedundantNode(context, finalPathNode); return buildFinalPath(context, finalPathNode); } /** * 删除路径中的冗余节点(不存在三点共线) */ private static void deleteRedundantNode(FindPathContext context, FindPathNode finalPathNode) { FindPathNode startNode = null; FindPathNode midNode = null; Point2D a; Point2D b; Point2D c; for (FindPathNode tempNode = finalPathNode; tempNode != null; tempNode = tempNode.getParent()) { if (null == startNode) { startNode = tempNode; continue; } if (null == midNode) { midNode = tempNode; continue; } a = context.getGrid(startNode.getX(), startNode.getY()).getCenter(); b = context.getGrid(midNode.getX(), midNode.getY()).getCenter(); c = context.getGrid(tempNode.getX(), tempNode.getY()).getCenter(); if (MathUtils.isOneLine(a, b, c) || isNoObstacle(context, a, c)) { // 如果三点共线,或者a可以跳过b直达c // delete mid node startNode.setParent(tempNode); midNode = tempNode; } else { // 从tempNode重新开始 startNode = tempNode; midNode = null; } } } /** * 两点之间是否没有遮挡(可直达) * * @param context * @return */ public static boolean isNoObstacle(FindPathContext context, Point2D a, Point2D b) { // TODO return false; } }
A Comparative Study between the Effect of Combined Local Anesthetic and Low-dose Ketamine with Local Anesthetic on Postoperative Complications after Impacted Third Molar Surgery. BACKGROUND Postoperative pain, swelling and trismus are the most common outcome after third molar surgery. Many methods have been tried to improve postoperative comfort after surgery. Ketamine is a phencyclidine derivative that induces a state of dissociative anesthesia. It is a noncompetitive N-methyl-D-aspartate (NMDA) receptor antagonist and has a distinct suppression effect on central nervous system (CNS) sensitization. Ketamine in a subanesthetic dose is set to produce analgesic and anti-inflammatory effect. MATERIALS AND METHODS Sixty patients, between the age group of 18 and 38 years, undergoing the extraction of impacted mandibular third molar, reporting to the department of oral and maxillofacial surgery were included in the study. Patients were divided randomly into two groups: local anesthetic alone (LAA) and local anesthetic and ketamine (LAK). STATISTICAL ANALYSIS Statistical analysis was performed using the Mann-Whitney U/unpaired--t-test and Wilcoxon signed-rank test. RESULT There was a significant difference in mouth opening in the LAA and LAK group in the immediate postoperative period. There was a significant difference between the two groups after 1 hour (LAA: 2.37; LAK: 1.40), and 4 hours (LAA: 2.37; LAK: 1.40). There was a significant difference in terms of facial swelling in the immediate postoperative period and day 1 between the LAA and LAK group. CLINICAL SIGNIFICANCE Use of subanesthetic dose of ketamine is not only safe but also valuable in reducing patient morbidity after third molar surgery. CONCLUSION Combination of a local anesthetic and subanesthetic dose of ketamine during surgical extraction of third molars provides good postoperative analgesia with less swelling and significantly less trismus.
<filename>core/src/main/java/eu/fasten/core/index/ExtractProperties.java<gh_stars>0 package eu.fasten.core.index; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 java.io.File; import java.io.IOException; import org.rocksdb.RocksDBException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.martiansoftware.jsap.FlaggedOption; import com.martiansoftware.jsap.JSAP; import com.martiansoftware.jsap.JSAPException; import com.martiansoftware.jsap.JSAPResult; import com.martiansoftware.jsap.Parameter; import com.martiansoftware.jsap.SimpleJSAP; import com.martiansoftware.jsap.UnflaggedOption; import eu.fasten.core.data.KnowledgeBase; import eu.fasten.core.data.KnowledgeBase.CallGraph; import eu.fasten.core.data.KnowledgeBase.CallGraphData; import it.unimi.dsi.logging.ProgressLogger; public class ExtractProperties { private static final Logger LOGGER = LoggerFactory.getLogger(ExtractProperties.class); public static void main(final String[] args) throws JSAPException, ClassNotFoundException, RocksDBException, IOException { final SimpleJSAP jsap = new SimpleJSAP(ExtractProperties.class.getName(), "Extract properties files from a knowledge base.", new Parameter[] { new FlaggedOption("min", JSAP.INTEGER_PARSER, "0", JSAP.NOT_REQUIRED, 'm', "min", "Consider only graphs with at least this number of internal nodes."), new FlaggedOption("n", JSAP.LONG_PARSER, Long.toString(Long.MAX_VALUE), JSAP.NOT_REQUIRED, 'n', "n", "Analyze just this number of graphs."), new UnflaggedOption("kb", JSAP.STRING_PARSER, JSAP.NO_DEFAULT, JSAP.REQUIRED, JSAP.NOT_GREEDY, "The directory of the RocksDB instance containing the knowledge base." ), new UnflaggedOption("kbmeta", JSAP.STRING_PARSER, JSAP.NO_DEFAULT, JSAP.REQUIRED, JSAP.NOT_GREEDY, "The file containing the knowledge base metadata." ), }); final JSAPResult jsapResult = jsap.parse(args); if ( jsap.messagePrinted() ) return; final int minNodes = jsapResult.getInt("min"); final long n = jsapResult.getLong("n"); final String kbDir = jsapResult.getString("kb"); if (!new File(kbDir).exists()) throw new IllegalArgumentException("No such directory: " + kbDir); final String kbMetadataFilename = jsapResult.getString("kbmeta"); if (!new File(kbMetadataFilename).exists()) throw new IllegalArgumentException("No such file: " + kbMetadataFilename); LOGGER.info("Loading KnowledgeBase metadata"); final KnowledgeBase kb = KnowledgeBase.getInstance(kbDir, kbMetadataFilename, true); final ProgressLogger pl = new ProgressLogger(); pl.count = kb.callGraphs.size(); pl.itemsName = "graphs"; pl.start("Enumerating graphs"); long i = 0; for(final CallGraph callGraph: kb.callGraphs.values()) { if (i++ >= n) break; pl.update(); if (callGraph.nInternal < minNodes) continue; final CallGraphData callGraphData = callGraph.callGraphData(); System.out.print(callGraph.index); System.out.print('\t'); System.out.print(callGraph.product); System.out.print('\t'); System.out.print(callGraph.version); System.out.print('\t'); System.out.print(callGraphData.graphProperties); System.out.print('\t'); System.out.print(callGraphData.transposeProperties); System.out.println(); } LOGGER.info("Closing KnowledgeBase"); kb.close(); } }
// "Add constructor parameter" "true" public class A { private final A field;<caret> }
NGR-hTNF in previously treated patients with malignant pleural mesothelioma (MPM). 7089 Background: NGR-hTNF exploits the tumor-homing peptide NGR for selectively targeting tumor necrosis factor to tumor blood vessels. METHODS Here we report the long-term results of a phase II trial testing NGR-hTNF in 57 MPM patients (pts) who had failed a pemetrexed-based regimen. NGR-hTNF was given as 1-hour infusion at 0.8 g/m2 every 3 weeks (q3w; n=43) or weekly (q1w; n=14) in a subsequent cohort. Moreover, we assessed the impact on outcome of the systemic neutrophil-to-lymphocyte ratio (NLR), an index of the host immune response to tumor. Median baseline NLR was 3 (range 1-23). RESULTS In the whole study population (n=57), one grade 3 drug-related toxicity was observed and common grades 1-2 were transient chills (75% of pts). There was no higher toxicity using the q1w schedule. Median progression-free survival (PFS) was 2.8 months (95% CI 2.2-3.3). The disease control rate was 46% (26/57 pts; 95% CI 33-60%) and was maintained for a median time of 4.7 months (95% CI 4.0-5.4). With a median follow up of 28.6 months, the overall survival (OS) rates at 1 and 2 years were 47% and 15%, respectively. The 6-month PFS and 2-year OS rates were 11% and 10% in q3w cohort vs 36% and 29% in q1w cohort, respectively. In pts with disease control (n=26), median PFS and 2-year OS rate were 4.4 months and 11% in q3w cohort vs 9.1 months and 57% in q1w cohort, respectively. In a landmark analysis set at 2 months (1st restaging), median OS was longer in pts who had achieved disease control compared with those who had progressed (14.7 vs 6.8 months; p=0.03). By multivariate analyses, a PS of 0 (HR=0.38; p=0.02) and a baseline NLR ≤ 3 (HR=0.40; p=0.005) were associated with longer survival, while no associations were detected between OS and age, sex, histology, EORTC score and treatment-free interval on prior therapy. Median OS were 17.4 vs 8.0 months in pts with PS 0 or PS 1-2 and 15.7 vs 5.6 months in pts with NLR ≤ or > 3, respectively. CONCLUSIONS Based on these results, NGR-hTNF 0.8 g/m2 q1w is currently tested in a placebo-controlled phase II trial as a maintenance treatment in MPM pts who did not progress after 6 cycles of first-line chemotherapy and in a double-blind phase III trial evaluating best investigator's choice ± NGR-hTNF in relapsed MPM.
import AbstractError from './AbstractError' export default class UnreachableError extends AbstractError {}
I’ll just say it: turkey burgers can be pretty blah. Sure, they’re a healthier choice because they’re lower in fat and calories than the traditional ground beef burger. But doesn’t it still add up to a big waste of calories when the food is boring, bland, and flavorless? So I’ve got this recipe that changes all that. First, I stuffed the turkey patties with lots of salty crumbled feta. Then I added smoky roasted red peppers and a fresh and peppery arugula pesto. These turkey burgers happen to offer a tasty and savory combo of flavors in every cheesy, nutty, peppery bite. They are so, so yummy. My husband Chris officially loves turkey burgers now, which was not always the case! Here are the step-by-step instructions for Feta-Stuffed Turkey Burgers with Pesto and Roasted Red Peppers: Here, I unlock all the not-so-secret ingredients to making turkey burgers that actually taste amazing. The first step is to make the roasted red peppers. This is something that should be prepared at least a couple of hours ahead of time. I’m not the type of individual to properly plan a meal 24 hours in advance, let alone remembering ahead of time to make a topping for a burger. But in this case, the extra planning is so worth it. There is just nothing like the flavor of fresh, homemade roasted red peppers on a burger. And roasted red peppers are actually very easy to make. They just require some “inactive” time to really absorb all the delicious garlic and olive oil that’s added to them. Start by preparing your grill for medium heat and charring a red bell pepper. After the first side has blackened, rotate the pepper to the next side, and so on. After about 15 minutes or so, your pepper should be completely charred on all sides. Now place it in a bowl, cover it, and allow it to sit for about 45 minutes. When the bell pepper has reached room temperature, peel off the charred outer skin. The skin should peel away easily if the pepper has had enough time to sit and cool (you can’t rush this process, as I’ve learned). Once all the char is peeled away, you’ll end up with a tender, vivid red roasted pepper. Cut it into thin strips. Place the strips in a bowl and season with salt and pepper. Mince up a clove of garlic and add it to the bowl. Then add just a bit of extra virgin olive oil and stir to combine. Cover and store in the fridge for at least two hours and up to 24 hours. Amazing flavor that also happens to be very fresh and healthy will soon be yours! Next up: the arugula pesto. Preheat the oven to 375 degrees F. Place some pine nuts on a parchment-lined baking sheet and toast them in the oven for about 5 minutes. Watch them carefully so you end up with golden, lightly toasted pine nuts (they burn fast!) Place some fresh arugula, one clove of garlic, and the toasted pine nuts in a food processor. Grate some fresh parmesan and add that as well. Season with salt and pepper and pulse until you end up with a thick paste. Add some extra virgin olive oil and pulse again until everything is well combined. Tip: while you’re at it, make extra! This pesto tastes delicious on pizza or with pasta. (Those recipes TBP (To Be Posted) at a later date.) (Yup, just made up my own acronym. You’re pretty impressed now, right?) (CK (Completely Kidding).) Next, grab some 95 percent lean ground turkey and divide it into four equally portioned balls. Season well with salt and pepper. Press down into the center of each, flattening the bottom and pushing the outer edges up to form a bowl shape. Toss some crumbled feta cheese into each “bowl.” I love feta. It’s salty, it’s mild, and it happens to be a healthier cheese. (One ounce has 75 calories and four grams of saturated fat, as compared to cheddar at 110 calories and six grams of saturated fat in one ounce.) So it’s a healthy choice for a burger topping. And stuffing the burgers with feta add tons of flavor to each bite. Fold the sides of the patties up and over the cheese until the feta is completely sealed in the center. Next, grab some whole wheat burger buns. The secret to making these turkey burgers taste so flavorful is to season every last thing, including the bread! So brush on just a bit of extra virgin olive oil. And add just a bit of salt and pepper. Last, sprinkle on some garlic powder. Next, prepare the grill for medium heat. Place the turkey burgers on the grill and let them cook, untouched for about 7 minutes. Be sure not to flip, move, or press down on the burgers during this time. This is the key to a burger that is nicely browned on the outside, but still juicy and tender inside. When the first side is lightly browned, it should easily separate from the grill. Flip, and cook the second side for another 7 minutes or so. When the meat is fully cooked through, your burgers are ready to serve. (If you’re unsure, you can use a meat thermometer to check for a temperature of 165 degrees F in the very center of the burgers.) Place the burger buns on the grill for just a couple of minutes to toast them. And (finally!) assemble your burgers. Pile on the fresh arugula pesto and the homemade roasted red pepper strips. The toppings for this burger are bright, colorful, and full of healthy nutrients. But the most important thing: they add so much deliciousness. The pepper, arugula, garlic, and feta flavors all work so perfectly together in this big, hearty, juicy burger. This is one flavorful and satisfying dish! Here is the complete, printable recipe for Feta-Stuffed Turkey Burgers with Pesto and Roasted Red Peppers:
import { Ability } from "./ability"; import { StatusAbility } from "./statusTransform"; export type StatusGroup = "atk_mod" | "def_mod" | "other" ; export type StatusTag = Status["tag"]; /** * A status is a lingering effect on the gamestate. */ export type Status = Weak | Strong | Armor | Fragile | OnDeath ; export class Weak { public readonly tag: "Weak" = "Weak"; public readonly maxHp: number; public readonly hp: number; constructor( public readonly value: number, hp?: number, ) { this.maxHp = statusModifier(this.tag) * value; if (hp !== undefined) { this.hp = hp; } else { this.hp = this.maxHp; } } } export class Strong { public readonly tag: "Strong" = "Strong"; public readonly maxHp: number; public readonly hp: number; constructor( public readonly value: number, hp?: number, ) { this.maxHp = statusModifier(this.tag) * value; if (hp !== undefined) { this.hp = hp; } else { this.hp = this.maxHp; } } } export class Armor { public readonly tag: "Armor" = "Armor"; public readonly maxHp: number; public readonly hp: number; constructor( public readonly value: number, hp?: number, ) { this.maxHp = statusModifier(this.tag) * value; if (hp !== undefined) { this.hp = hp; } else { this.hp = this.maxHp; } } } export class Fragile { public readonly tag: "Fragile" = "Fragile"; public readonly maxHp: number; public readonly hp: number; constructor( public readonly value: number, hp?: number, ) { this.maxHp = statusModifier(this.tag) * value; if (hp !== undefined) { this.hp = hp; } else { this.hp = this.maxHp; } } } export class OnDeath { public readonly tag: "OnDeath" = "OnDeath"; public readonly maxHp: number; public readonly hp: number; constructor( public readonly ability: StatusAbility, public readonly value: number, hp?: number, ) { this.maxHp = statusModifier(this.tag) * value; if (hp !== undefined) { this.hp = hp; } else { this.hp = this.maxHp; } } } export function statusModifier( statusTag: StatusTag, ): number { switch (statusTag) { case "Armor": return 1; case "Fragile": return 1; case "Strong": return 7; case "Weak": return 7; // TODO: find a fitting value // this should depend on the content of the OnDeath status case "OnDeath": return 10; } }
1/f noise in carbon nanotubes The low-frequency electronic noise properties of individual single-wall metallic carbon nanotubes are investigated. The noise exhibits a 1/f frequency dependence and a V 2 voltage dependence. The noise power at 8 K appears to be three orders of magnitude smaller than at 300 K. As a demonstration of how these noise properties affect nanotube devices, a preliminary investigation of the noise characteristics of a fabricated intramolecular carbon nanotube single-electron transistor is presented.
Adult protection and intimate citizenship for people with learning difficulties: empowering and protecting in light of the No Secrets review The government are consulting on the introduction of legislation to give professionals powers to enter the homes of vulnerable adults where abuse is suspected and remove the victim without their consent. This article considers the consequences of such legislation for the intimate citizenship of people with learning difficulties who have capacity to consent to sexual relationships. Proposals of the consultation are considered in terms of their practical relevance, finding that changes can be made with better guidance, resources, policy implementation and a sound evidence base for adult protection. A case is made that proposals contravene human rights, mental capacity laws and the ethos of personalisation, increasing the focus on risk in practice. An ecological model of vulnerability is supported, which offers an approach that can prevent sexual abuse through empowerment without the need for new legislation.
Synergistic Therapy for Cervical Cancer by Codelivery of Cisplatin and JQ1 Inhibiting Plk1-Mutant Trp53 Axis. JQ1, a specific inhibitor of bromodomain-containing protein 4 (BRD4), could have great potential in the treatment of cervical cancer. However, its clinical application is limited by its short plasma half-life and limited antitumor efficacy. In this work, cisplatin (CDDP) was first utilized as the stabilizer and cooperator in the nanosystem (mPEG113-b-P(Glu10-co-Phe10)-CDDP/JQ1, called PGP-CDDP/JQ1) to break through the efficiency limitation of JQ1. The PGP-CDDP/JQ1 had a combination index (CI) of 0.21, exerting a strong cytotoxic synergistic effect. In vivo experiments revealed that PGP-CDDP/JQ1 had a significantly higher tumor inhibition effect (tumor inhibition rate: 85% vs 14%) and plasma stability of JQ1 (area under the curve (AUC0-∞): 335.97 vs 16.88 g h/mL) than free JQ1. The mechanism underling the synergism of JQ1 with CDDP in PGP-CDDP/JQ1 was uncovered to be inhibiting Plk1-mutant Trp53 axis. Thus, this study provides an optional method for improving the clinical application of JQ1 in cervical cancer.
Gauging the Welfare Effects of Shocks in Rural Tanzania Studies of risk and its consequences tend to focus on one risk factor, such as a drought or an economic crisis. Yet 2003 household surveys in rural Kilimanjaro and Ruvuma, two cash-crop-growing regions in Tanzania that experienced a precipitous coffee price decline around the turn of the millennium, identified health and drought shocks as well as commodity price declines as major risk factors, suggesting the need for a comprehensive approach to analyzing household vulnerability. In fact, most coffee growers, except the smaller ones in Kilimanjaro, weathered the coffee price declines rather well, at least to the point of not being worse off than non-coffee growers. Conversely, improving health conditions and reducing the effect of droughts emerge as critical to reduce vulnerability. One-third of the rural households in Kilimanjaro experienced a drought or health shocks, resulting in an estimated 8 percent welfare loss on average, after using savings and aid. Rainfall is more reliable in Ruvuma, and drought there did not affect welfare. Surprisingly, neither did health shocks, plausibly because of lower medical expenditures given limited health care provisions.
In vitro antioxidant activity and in vivo photoprotective effect of a red orange extract Ultraviolet radiation causes damage to the skin, which may result in both precancerous and cancerous skinlesions and acceleration of skin ageing. Topical administration of enzymatic and nonenzymatic antioxidants is an effective strategy for protecting the skin against UVmediated oxidative damage. Hence, a systematic study to evaluate the in vitro antioxidant activity and in vivo photoprotective effect of a standardized red orange extract (ROE) has been undertaken, where the main active ingredients are anthocyanins, hydroxycinnamic acids, flavanones and ascorbic acid. For the in vitro experiments, the ROE was tested in three models: bleaching of the stable 1,1diphenyl2picrylhydrazyl radical (DPPH test); peroxidation, induced by the watersoluble radical initiator 2,2azobis(2amidinopropane) hydrochloride, of mixed dipalmitoylphosphatidylcholine/linoleic acid unilamellar vesicles (LUVs) (LPLUV test); and UVinduced peroxidation of phospatidylcholine multilamellar vesicles (UVIP test). The in vivo antioxidant/radical scavenger activity was assessed by determining the ability of topically applied ROE to reduce UVBinduced skin erythema in healthy human volunteers. The results obtained in the DPPH, LPLUV and UVIP tests demonstrated the strong antioxidant properties of ROE, with a clear relationship between ROE scavenger efficiency and its content in antioxidant compounds. In particular, the findings obtained in the UVIP test provide a strong rationale for using this extract as a photoprotective agent. During in vivo experiments, ROE provided to efficiently protect against photooxidative skin damage when topically applied immediately after skin exposure to UVB radiations. Interestingly, the protective effect of ROE appears higher than that elicited by another natural antioxidant (tocopherol) commonly employed in cosmetic formulations. In conclusion, the present findings demonstrate that ROE affords excellent skin photoprotection, which is very likely a result of the antioxidant/radical scavenger activity of its active ingredients. Thus, ROE might have interesting applications in both antiphotoageing and aftersun cosmetic products.
<reponame>pedro823/AutomatonCrypto<gh_stars>0 #include <stdio.h> #include "error_handler.h" #define ll long long ll fact(int x) { add_to_stack("error_tester -> fact"); if(x == 0) { pop_stack(); return 1; } if(x == 1) { kill("x is %d\n", x); } ll a = x * fact(x - 1); pop_stack(); return a; } void h() { add_to_stack("error_tester -> h"); kill("Exception test"); } void g() { add_to_stack("error_tester -> g"); h(); } void f() { add_to_stack("error_tester -> f"); g(); } int main() { set_program_name("tester"); set_debug_priority(0); debug_print(0, "YOOOO"); debug_print(1, "YOOO"); set_debug_priority(1); debug_print(0, "YOOOO"); debug_print(1, "YOOO"); f(); printf("%lld\n", fact(15)); return 0; }
<reponame>zyjohn0822/asn1-uper-v2x-se package com.hisense.hiatmp.asn.v2x.basic; import lombok.Getter; import lombok.Setter; import net.gcdc.asn1.datatypes.*; import java.util.Arrays; import java.util.Collection; /** * PathHistory ::= SEQUENCE {<br/> * initialPosition FullPositionVector OPTIONAL,<br/> * currGNSSstatus GNSSstatus OPTIONAL,<br/> * crumbData PathHistoryPointList,<br/> * ...<br/> * }<br/> * * @author zhangyong * @date 2020/11/5 14:13 */ @Sequence @Setter @Getter @HasExtensionMarker public class PathHistory { @Component(0) @Asn1Optional public FullPositionVector initialPosition; @Component(1) @Asn1Optional public GNSSstatus currGNSSstatus; @Component(2) public PathHistoryPointList crumbData; public PathHistory() { } public PathHistory(FullPositionVector initialPosition, GNSSstatus currGNSSstatus, PathHistoryPointList crumbData) { this.initialPosition = initialPosition; this.currGNSSstatus = currGNSSstatus; this.crumbData = crumbData; } @Override public String toString() { final StringBuilder sb = new StringBuilder("{"); sb.append("\"initialPosition\":") .append(initialPosition); sb.append(",\"currGNSSstatus\":") .append(currGNSSstatus); sb.append(",\"crumbData\":") .append(crumbData); sb.append('}'); return sb.toString(); } /** * PathHistoryPointList ::= SEQUENCE (SIZE(1..23)) OF PathHistoryPoint<br/> * * @author zhangyong * @date 2020-12-19 12:10 */ @SizeRange(minValue = 1, maxValue = 23) public static class PathHistoryPointList extends Asn1SequenceOf<PathHistoryPoint> { public PathHistoryPointList(PathHistoryPoint... pathHistoryPoints) { this(Arrays.asList(pathHistoryPoints)); } public PathHistoryPointList(Collection<PathHistoryPoint> coll) { super(coll); } } }
Ouse Valley Eagles Milton Keynes Pathfinders The Pathfinders were formed in their first guise as a youth flag football team, but only began participation in senior kitted football in 2006, before joining the BAFL in 2008. They played their home games at the Emerson Valley Sports Pavilion in Milton Keynes. Their first match was in 2006, away to the Cambridgeshire Cats and was followed by a 0–35 defeat at home to the Bedfordshire Blue Raiders, at the time, another associate team looking to join the league. In their first season as a league team, they posted a 0-9-1 record, conceding 445 points, the highest total since the 464 points conceded by the Andover Thrashers in 2005. In 2011, they recorded their first ever winning season, going 7-2-1, which saw them clinch the final Division 2 play off spot, losing to eventual finalists, the West Coast Trojans. They reached the play offs again in the final season in 2012, this time reaching the Southern Final, before losing to the Peterborough Saxons. Their overall regular season league record at the time of the merger with Bedfordshire was 25-34-2, with a post season record of 1-2. Bedfordshire Blue Raiders The Blue Raiders were formed in 2006 by locals Dave Pankhurst and Steve Guy, and began the BAFL associate process in 2007. They played their first game against Maidstone Pumas, winning 18-8. One month after their first contest with the Pathfinders, they were accepted into the league. The Blue Raiders were placed in the Eastern Conference of Division Two. By 2013, lack of interest lead to reduced player participation, and the squad size was approximately half of that which started the season, with no healthy quarterbacks. This meant that the Blue Raiders had to forfeit a game against the Kent Exiles, and ruined their chances of appearing in another play off game. They only managed to fulfill their final fixture by registering coaches as players. Their overall regular season league record at the time of the merger with Milton Keynes was 32-30 with a post season record of 0-1. Merger At the end of the Bedfordshire Blue Raiders' final game, an EGM was called to discuss the future of the club going forward. Neale McMaster stepped forward as chairman, and proposed a merger with the Pathfinders. On 3 November 2013, a joint EGM was called by both clubs, and the constitution and articles of merger were approved by all in attendance. Recent Years The Eagles began their inaugural season in 2014, under the guidance of Head Coach Will White. They lost their first game to the Watford Cheetahs 19-0. However, they easily won their second game to the rookie London Hornets, finishing 37-0. In their first season's penultimate game, the Eagles beat the Kent Exiles in a game that would see the winning team reach the play offs. After finishing the regular season 8-2, they lost to the Solent Thrashers in the first round. Going into their second season, a league realignment saw them placed in the Division One Southern Football Conference, in the North division. Logos & Uniforms Their "O" logo and uniforms are heavily inspired by that of the Oregon Ducks. Their logo features a bold "O" contained by wing graphics. Their first jerseys are manufactured by DNA Sports. They are primarily white, with silver wing details on the shoulders and black uniform numbers. Their helmets are white and also feature the chrome wing design. Bedford International Athletic Stadium The Eagles play their home games at Bedford International Athletic Stadium, a multi-use sport facility, that includes a purpose built American Football field.
King George, the talking magpie, is missing. He disappeared last week from his west Modesto home. Kathy Bankson rescued the bird when it was just a hatchling blown out of a nest on Bankson's ranch. Bankson suspects something foul may be afoot. "I let him out (last Wednesday)," said Bankson. "I saw him at 8:30 and the neighbor across the street saw him last at 9 a.m. I let him out like I do every day, he was hanging around like he does every morning, but disappeared." George has a vocabulary of several phrases and seems to use them at appropriate times. They included "Whatcha doing?" "Don't shoot me!" and "Bye-bye." He also barks like a dog and laughs. George also has a damaged right leg. Through tears, she added: "Dang it, I'm so attached to the little guy. ... I told my husband that I wouldn't panic for a couple of days to see if he is just lost ... but something tells me I may never get to see him again." Bankson said she isn't the only one who misses George. "The kids across the street and their parents are heartbroken, too. He was loved by everyone here." Neighboring rancher Bart Honeycutt told Bankson that George had made this the most enjoyable summer in memory. "We had just finished gathering the walnuts and I heard the magpies chattering in the trees," Honeycutt told Bankson before George went missing. "Then I heard this gibberish and I yelled out, 'Is that you George?' The reply came right back, 'Don't shoot me.' " George's fame and loss has spread far and wide. Bankson's relatives in Napa and Fresno are saying prayers for the bird. So is former Sen. Bob Dole, a family friend, who knew Bankson's late son, Bo. "Mr. Dole ... said he hoped George would find his way home again," said Bankson. Bankson's father, John Boere Jr. owns a ranch in Southern California and told her he would post a $1,000 reward. Bankson worries whether the two-legged human varmint who might have taken George knows how to care for him. "He lived free," she said. "I worry they'll feed him bird seed and kill him. He only eats bugs." Roger W. Hoskins can be reached at [email protected] or 578-2311.
// Test that successive DeliverTx can see each others' effects // on the store, both within and across blocks. func TestDeliverTx(t *testing.T) { app := newBaseApp(t.Name()) capKey := sdk.NewKVStoreKey("main") app.MountStoresIAVL(capKey) err := app.LoadLatestVersion(capKey) assert.Nil(t, err) counter := 0 txPerHeight := 2 app.SetAnteHandler(func(ctx sdk.Context, tx sdk.Tx) (newCtx sdk.Context, res sdk.Result, abort bool) { return }) app.Router().AddRoute(msgType, func(ctx sdk.Context, msg sdk.Msg) sdk.Result { store := ctx.KVStore(capKey) if counter > 0 { counterBytes := []byte{byte(counter - 1)} prevBytes := store.Get(counterBytes) assert.Equal(t, prevBytes, counterBytes) } counterBytes := []byte{byte(counter)} store.Set(counterBytes, counterBytes) thisHeader := ctx.BlockHeader() height := int64((counter / txPerHeight) + 1) assert.Equal(t, height, thisHeader.Height) counter += 1 return sdk.Result{} }) tx := testUpdatePowerTx{} header := abci.Header{AppHash: []byte("apphash")} nBlocks := 3 for blockN := 0; blockN < nBlocks; blockN++ { header.Height = int64(blockN + 1) app.BeginBlock(abci.RequestBeginBlock{Header: header}) for i := 0; i < txPerHeight; i++ { app.Deliver(tx) } app.EndBlock(abci.RequestEndBlock{}) app.Commit() } }
package bpcobar; import java.math.BigInteger; import java.io.*; import java.util.*; import java.util.Map.Entry; class BPCobarMain { static final int P = 2; static final boolean DEBUG = false; public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); while(true) { System.out.print("bpcobar> "); String line = in.readLine(); line = line.trim(); if(line.length() == 0) break; RSet<BPCobar> initial = parse(line); if(initial == null) { System.err.println("Syntax error."); continue; } System.out.println("Parsed as "+initial); System.out.println(); System.out.println(vToVBoundary(initial)); if(DEBUG) { System.out.println(); System.out.println("Cache stats:"); System.out.println("diagonalCache: "+Monom.diagonalCache.size()); System.out.println("rightUnitCache: "+Monom.rightUnitCache.size()); System.out.println("mToVCache: "+Monom.mToVCache.size()); System.out.println("vToMCache: "+Monom.vToMCache.size()); } } } static RSet<BPCobar> vToVBoundary(RSet<BPCobar> initial) { RSet<BPCobar> inM = new RSet<BPCobar>(); for(Entry<BPCobar,Q> e : initial.entrySet()) inM.add(e.getKey().vToM(), e.getValue()); if(DEBUG) System.out.println("In m: "+inM); RSet<BPCobar> bound = new RSet<BPCobar>(); for(Entry<BPCobar,Q> e : inM.entrySet()) bound.add(e.getKey().boundary(), e.getValue()); if(DEBUG) System.out.println("Boundary in m: "+bound); RSet<BPCobar> inV = new RSet<BPCobar>(); for(Entry<BPCobar,Q> e : bound.entrySet()) inV.add(e.getKey().mToV(), e.getValue()); if(DEBUG) System.out.println("Boundary in v: "+inV + "\n"); return inV; } static RSet<BPCobar> parse(String line) { String[] tok = line.split("\\+"); RSet<BPCobar> ret = new RSet<BPCobar>(); for(String s : tok) { s = s.trim(); int idx = s.indexOf('*'); Q coeff = Q.ONE; if(idx > 0) coeff = Q.parse(s.substring(0,idx)); BPCobar cobar = BPCobar.parse(s.substring(idx+1), true); if(cobar == null) return null; ret.add(cobar, coeff); } return ret; } } class BPCobar implements Comparable<BPCobar> { Monom/*M or V*/ coeff; Monom/*T*/[] entries; boolean inV = false; BPCobar(Monom/*M*/ coeff, Monom/*T*/[] entries) { this.coeff = coeff; this.entries = entries; } BPCobar(Monom/*M or V*/ coeff, Monom/*T*/[] entries, boolean inV) { this(coeff, entries); this.inV = inV; } BPCobar(Monom/*M*/ a, Monom/*T*/ b, Monom/*T*/[] c) { coeff = a; entries = new Monom/*T*/[c.length + 1]; entries[0] = b; for(int i = 0; i < c.length; i++) entries[i+1] = c[i]; } RSet<BPCobar> boundary() { RSet<BPCobar> ret = new RSet<BPCobar>(); /* first coface: 1 | right-unit of coeff */ RSet<MonomInMT> ru = coeff.rightUnit(); for(Entry<MonomInMT,Q> e : ru.entrySet()) { MonomInMT mon = e.getKey(); ret.add(new BPCobar(mon.m, mon.t, entries), e.getValue()); } /* middle cofaces: use the diagonal and then reduce with right unit */ for(int i = 0; i < entries.length; i++) { RSet<DiagonalEntry> des = entries[i].diagonal(); for(Entry<DiagonalEntry,Q> dee : des.entrySet()) { DiagonalEntry de = dee.getKey(); Monom/*T*/[] after = new Monom/*T*/[entries.length - i + 1]; after[0] = de.a; after[1] = de.b; for(int j = i+1; j < entries.length; j++) after[j-i+1] = entries[j]; ret.add(normalizeCobar(coeff, Arrays.copyOf(entries,i), de.coeff, after), Q.sign(i+1).times(dee.getValue())); } } /* last coface: 1 | 1 */ ret.add(extendByOne(), Q.sign(entries.length+1)); return ret; } static RSet<BPCobar> normalizeCobar(Monom/*M*/ coeff, Monom/*T*/[] before, Monom/*M*/ mid, Monom/*T*/[] after) { /* base case */ if(before.length == 0) { Monom/*M*/ c = coeff.times(mid); return new RSet<BPCobar>(new BPCobar(c,after)); } RSet<BPCobar> ret = new RSet<BPCobar>(); /* reduction */ RSet<MonomInMT> ru = mid.rightUnit(); Monom/*T*/[] newbefore = Arrays.copyOf(before, before.length - 1); Monom/*T*/ b = before[before.length - 1]; for(Entry<MonomInMT,Q> e : ru.entrySet()) { MonomInMT mon = e.getKey(); Monom/*T*/[] newafter = new Monom/*T*/[after.length + 1]; for(int i = 0; i < after.length; i++) newafter[i+1] = after[i]; newafter[0] = b.times(mon.t); RSet<BPCobar> red = normalizeCobar(coeff, newbefore, mon.m, newafter); ret.add(red, e.getValue()); } return ret; } RSet<BPCobar> mToV() { if(inV) { System.err.println("Cobar already in v form!"); System.exit(1); } RSet<BPCobar> ret = new RSet<BPCobar>(); RSet<Monom/*V*/> vcoeff = coeff.mToV(); for(Entry<Monom/*V*/,Q> ent : vcoeff.entrySet()) ret.add(new BPCobar(ent.getKey(), entries, true), ent.getValue()); return ret; } RSet<BPCobar> vToM() { if(! inV) { System.err.println("Cobar already in m form!"); System.exit(1); } RSet<BPCobar> ret = new RSet<BPCobar>(); RSet<Monom/*M*/> mcoeff = coeff.vToM(); for(Entry<Monom/*M*/,Q> ent : mcoeff.entrySet()) ret.add(new BPCobar(ent.getKey(), entries, false), ent.getValue()); return ret; } BPCobar extendByOne() { Monom/*T*/[] newentries = Arrays.copyOf(entries, entries.length + 1); newentries[entries.length] = Monom.ONE; return new BPCobar(coeff, newentries); } @Override public String toString() { String ret = ""; if(! coeff.isOne()) ret += coeff.toString(inV ? 'v' : 'm') + " "; ret += "[ "; boolean first = true; for(Monom e : entries) { if(!first) ret += " | "; first = false; ret += e.toString('t'); } ret += " ]"; return ret; } @Override public int compareTo(BPCobar o) { int c; c = entries.length - o.entries.length; if(c != 0) return c; c = coeff.compareTo(o.coeff); if(c != 0) return c; for(int i = 0; i < entries.length; i++) { c = entries[i].compareTo(o.entries[i]); if(c != 0) return c; } return 0; } static BPCobar parse(String s, boolean isV) { s = s.trim(); Monom coeff = Monom.ONE; int idx = s.indexOf('['); if(idx > 0) { coeff = Monom.parse(s.substring(0,idx), isV ? "v" : "m"); if(coeff == null) return null; s = s.substring(idx+1, s.length()-1); } else if(idx == 0) { s = s.substring(1,s.length()-1); } else { coeff = Monom.parse(s, isV ? "v" : "m"); if(coeff == null) return null; return new BPCobar(coeff, new Monom[] {}, isV); } String[] tok = s.split("\\|"); ArrayList<Monom> entries = new ArrayList<Monom>(); for(String ent : tok) { ent = ent.trim(); if(ent.length() == 0) continue; Monom m = Monom.parse(ent, "t"); if(m == null) return null; entries.add(m); } return new BPCobar(coeff, entries.toArray(new Monom[] {}), isV); } } class Monom implements Comparable<Monom> { public final static Monom ONE = new Monom(new int[] {}); public int[] exp; Monom(int[] exp) { this.exp = exp; } static Monom singleton(int k, int e) { if(k == 0) return ONE; int[] exp = new int[k]; exp[k-1] = e; return new Monom(exp); } Monom times(Monom o) { int[] a, b; if(exp.length > o.exp.length) { a = exp; b = o.exp; } else { a = o.exp; b = exp; } int[] c = Arrays.copyOf(a, a.length); for(int i = 0; i < b.length; i++) c[i] += b[i]; return new Monom(c); } /* removes one degree of the highest entry, and returns the result. if the result is 1, returns identically ONE */ Monom reduce() { if(exp[exp.length-1] > 1) { int[] newexp = Arrays.copyOf(exp, exp.length); newexp[exp.length-1]--; return new Monom(newexp); } /* find the next smallest entry */ int i; for(i = exp.length-2; i >= 0 && exp[i] == 0; i--); if(i == -1) return ONE; int[] newexp = Arrays.copyOf(exp, i+1); return new Monom(newexp); } /* for monom in T */ static Map<Monom,RSet<DiagonalEntry>> diagonalCache = new TreeMap<Monom,RSet<DiagonalEntry>>(); RSet<DiagonalEntry> diagonal() { int n = exp.length; if(n == 0) return new RSet<DiagonalEntry>(new DiagonalEntry(Monom.ONE, Monom.ONE, Monom.ONE)); RSet<DiagonalEntry> ret = diagonalCache.get(this); if(ret != null) return ret; ret = new RSet<DiagonalEntry>(); Monom/*T*/ next = reduce(); if(next == ONE) { /* we're already a singleton; apply the singleton formula */ for(int i = 0; i < n; i++) for(int j = 0; j <= n-i; j++) ret.add(new DiagonalEntry(singleton(i,1), singleton(j, Q.pow(Q.P, i)), singleton(n-i-j, Q.pow(Q.P, i+j))), Q.ONE); for(int i = 1; i < n; i++) { RSet<DiagonalEntry> old = singleton(n-i,1).diagonal(); old = DiagonalEntry.pow(old, Q.P, i); Monom/*M*/ mi = singleton(i,1); for(Entry<DiagonalEntry,Q> e : old.entrySet()) { DiagonalEntry de = e.getKey(); ret.add(new DiagonalEntry(mi.times(de.coeff), de.a, de.b), e.getValue().times(Q.MINUSONE)); } } diagonalCache.put(this,ret); return ret; } /* otherwise, peel a singleton off, compute on the factors */ Monom/*T*/ single = singleton(exp.length,1); RSet<DiagonalEntry> nextret = next.diagonal(); RSet<DiagonalEntry> singleret = single.diagonal(); /* and multiply */ for(Entry<DiagonalEntry,Q> e1 : nextret.entrySet()) for(Entry<DiagonalEntry,Q> e2 : singleret.entrySet()) ret.add(e1.getKey().times(e2.getKey()), e1.getValue().times(e2.getValue())); diagonalCache.put(this,ret); return ret; } /* for monom in M */ static Map<Monom,RSet<MonomInMT>> rightUnitCache = new TreeMap<Monom,RSet<MonomInMT>>(); RSet<MonomInMT> rightUnit() { int n = exp.length; if(n == 0) return new RSet<MonomInMT>(new MonomInMT(Monom.ONE, Monom.ONE)); RSet<MonomInMT> ret = rightUnitCache.get(this); if(ret != null) return ret; ret = new RSet<MonomInMT>(); Monom/*M*/ next = reduce(); if(next == ONE) { /* we're already a singleton; apply the singleton formula */ for(int i = 0; i <= n; i++) ret.add(new MonomInMT(singleton(i,1), singleton(n-i, Q.pow(Q.P, i))), Q.ONE); rightUnitCache.put(this, ret); return ret; } /* otherwise, peel a singleton off, compute on the factors */ Monom/*M*/ single = singleton(exp.length,1); RSet<MonomInMT> nextret = next.rightUnit(); RSet<MonomInMT> singleret = single.rightUnit(); /* and multiply */ for(Entry<MonomInMT,Q> e1 : nextret.entrySet()) for(Entry<MonomInMT,Q> e2 : singleret.entrySet()) ret.add(e1.getKey().times(e2.getKey()), e1.getValue().times(e2.getValue())); rightUnitCache.put(this, ret); return ret; } static Map<Monom,RSet<Monom>> mToVCache = new TreeMap<Monom,RSet<Monom>>(); RSet<Monom/*V*/> mToV() { int n = exp.length; if(n == 0) return new RSet<Monom/*V*/>(Monom.ONE); RSet<Monom/*V*/> ret = mToVCache.get(this); if(ret != null) return ret; ret = new RSet<Monom/*V*/>(); Monom/*M*/ next = reduce(); if(next == ONE) { /* we're already a singleton; apply the singleton formula */ ret.add(singleton(n,1), Q.ONEOVERP); for(int i = 1; i < n; i++) { RSet<Monom/*V*/> sub = singleton(i,1).mToV(); Monom/*V*/ subsing = singleton(n-i, Q.pow(Q.P, i)); for(Entry<Monom/*V*/,Q> sube : sub.entrySet()) ret.add(sube.getKey().times(subsing), sube.getValue().times(Q.ONEOVERP)); } mToVCache.put(this,ret); return ret; } /* otherwise, peel a singleton off, compute on the factors */ Monom/*M*/ single = singleton(exp.length,1); RSet<Monom/*V*/> nextret = next.mToV(); RSet<Monom/*V*/> singleret = single.mToV(); /* and multiply */ for(Entry<Monom/*V*/,Q> e1 : nextret.entrySet()) for(Entry<Monom/*V*/,Q> e2 : singleret.entrySet()) ret.add(e1.getKey().times(e2.getKey()), e1.getValue().times(e2.getValue())); mToVCache.put(this,ret); return ret; } static Map<Monom,RSet<Monom>> vToMCache = new TreeMap<Monom,RSet<Monom>>(); RSet<Monom/*M*/> vToM() { int n = exp.length; if(n == 0) return new RSet<Monom/*M*/>(Monom.ONE); RSet<Monom/*M*/> ret = vToMCache.get(this); if(ret != null) return ret; ret = new RSet<Monom/*M*/>(); Monom/*V*/ next = reduce(); if(next == ONE) { /* we're already a singleton; apply the singleton formula */ ret.add(singleton(n,1), Q.PASQ); for(int i = 1; i < n; i++) { RSet<Monom/*M*/> sub = singleton(n-i,Q.pow(Q.P,i)).vToM(); Monom/*M*/ subsing = singleton(i,1); for(Entry<Monom/*M*/,Q> sube : sub.entrySet()) ret.add(sube.getKey().times(subsing), sube.getValue().times(Q.MINUSONE)); } vToMCache.put(this,ret); return ret; } /* otherwise, peel a singleton off, compute on the factors */ Monom/*V*/ single = singleton(exp.length,1); RSet<Monom/*M*/> nextret = next.vToM(); RSet<Monom/*M*/> singleret = single.vToM(); /* and multiply */ for(Entry<Monom/*M*/,Q> e1 : nextret.entrySet()) for(Entry<Monom/*M*/,Q> e2 : singleret.entrySet()) ret.add(e1.getKey().times(e2.getKey()), e1.getValue().times(e2.getValue())); vToMCache.put(this,ret); return ret; } public String toString(char c) { if(exp.length == 0) return "1"; String ret = ""; for(int i = 0; i < exp.length; i++) { if(exp[i] == 0) continue; ret += c; ret += (i+1); if(exp[i] > 1) ret += "^" + exp[i]; } return ret; } @Override public String toString() { return toString('x'); } boolean isOne() { return (exp.length == 0); } @Override public int compareTo(Monom o) { int c; c = exp.length - o.exp.length; if(c != 0) return c; for(int i = 0; i < exp.length; i++) { c = exp[i] - o.exp[i]; if(c != 0) return c; } return 0; } static Monom parse(String s, String c) { s = s.trim(); if(s.equals("1")) return Monom.ONE; String[] tok = s.split(c); Monom ret = Monom.ONE; for(String t : tok) { t = t.trim(); if(t.length() == 0) continue; int idx = t.indexOf('^'); Monom next; try { if(idx == -1) next = Monom.singleton(Integer.parseInt(t), 1); else next = Monom.singleton(Integer.parseInt(t.substring(0,idx)), Integer.parseInt(t.substring(idx+1))); } catch(NumberFormatException err) { System.err.println("Error parsing monomial in "+c+": "+s+" --- tripped on token '"+t+"'"); return null; } ret = ret.times(next); } return ret; } } class MonomInMT implements Comparable<MonomInMT> { Monom/*M*/ m; Monom/*T*/ t; MonomInMT(Monom/*M*/ m, Monom/*T*/ t) { this.m = m; this.t = t; } MonomInMT times(MonomInMT o) { return new MonomInMT(m.times(o.m), t.times(o.t)); } @Override public int compareTo(MonomInMT o) { int c = m.compareTo(o.m); if(c != 0) return c; return t.compareTo(o.t); } @Override public String toString() { return m.toString('m') + " " + t.toString('t'); } } class DiagonalEntry implements Comparable<DiagonalEntry> { Monom/*M*/ coeff; Monom/*T*/ a; Monom/*T*/ b; DiagonalEntry(Monom/*M*/ coeff, Monom/*T*/ a, Monom/*T*/ b) { this.coeff = coeff; this.a = a; this.b = b; } DiagonalEntry times(DiagonalEntry o) { return new DiagonalEntry(coeff.times(o.coeff), a.times(o.a), b.times(o.b)); } @Override public int compareTo(DiagonalEntry o) { int c = coeff.compareTo(o.coeff); if(c != 0) return c; c = a.compareTo(o.a); if(c != 0) return c; return b.compareTo(o.b); } @Override public String toString() { return coeff.toString('m') + " " + a.toString('t') + " \u2297 " + b.toString('t'); } static RSet<DiagonalEntry> pow(RSet<DiagonalEntry> in, int p, int i) { if(i == 0) return in; if(p != 2) { System.err.println("DiagonalEntry.pow() not supported for p != 2"); System.exit(1); } RSet<DiagonalEntry> prev = pow(in, p, i-1); return times(prev, prev); } static RSet<DiagonalEntry> times(RSet<DiagonalEntry> a, RSet<DiagonalEntry> b) { RSet<DiagonalEntry> ret = new RSet<DiagonalEntry>(); for(Entry<DiagonalEntry,Q> ea : a.entrySet()) for(Entry<DiagonalEntry,Q> eb : b.entrySet()) ret.add( ea.getKey().times(eb.getKey()), ea.getValue().times(eb.getValue()) ); return ret; } } class Q { final static Q ONE = new Q(1L); final static Q MINUSONE = new Q(-1L); final static int P = 2; /* XXX CONFIG */ final static Q PASQ = new Q(P); final static Q ONEOVERP = new Q(1,P); private final static long BIG = (1L << 32); BigInteger n, d; Q(long n) { this(n,1L); } Q(long n, long d) { this.n = BigInteger.valueOf(n); this.d = BigInteger.valueOf(d); } Q(BigInteger n, BigInteger d) { this.n = n; this.d = d; } Q reduce() { BigInteger gcd = n.gcd(d); if(gcd.equals(BigInteger.ONE)) return this; return new Q(n.divide(gcd), d.divide(gcd)); } Q plus(Q o) { return new Q(d.multiply(o.n).add(o.d.multiply(n)), d.multiply(o.d)); } Q times(Q o) { if(o == ONE) return this; if(this == ONE) return o; return new Q(n.multiply(o.n), d.multiply(o.d)); } static Q sign(int i) { if((i & 1) == 0) return Q.ONE; return Q.MINUSONE; } boolean isZero() { return (n.equals(BigInteger.ZERO)); } boolean isOne() { return (n.equals(d)); } static int pow(int a, int b) { if(b > 30) System.err.println("crazy power "+b); if(b == 0) return 1; if(a == 2) return (1<<b); return a * pow(a,b-1); } @Override public String toString() { Q red = reduce(); if(red.d.equals(BigInteger.ONE)) return red.n.toString(); else return n + "/" + d; } static Q parse(String s) { s = s.trim(); int idx = s.indexOf('/'); try { if(idx == -1) return new Q(Integer.parseInt(s)); else return new Q(Integer.parseInt(s.substring(0,idx)), Integer.parseInt(s.substring(idx+1))); } catch(NumberFormatException err) { System.err.println("Error parsing rational: "+s); return null; } } } class RSet<T> extends TreeMap<T,Q> { RSet() { } RSet(T t) { add(t,Q.ONE); } public void add(T t, Q q) { if(q.isZero()) return; Q oldq = get(t); if(oldq == null) { put(t,q); return; } Q newq = oldq.plus(q); if(newq.isZero()) remove(t); else put(t,newq); } public void add(RSet<T> r, Q q) { for(Entry<T,Q> e : r.entrySet()) add(e.getKey(), e.getValue().times(q)); } @Override public String toString() { String ret = ""; boolean first = true; for(Entry<T,Q> e : entrySet()) { if(!first) ret += "\n + "; first = false; if(! e.getValue().isOne()) ret += e.getValue().toString() + " "; ret += e.getKey().toString(); } return ret; } }
The improved method to determine the nucleation region of Si nanoparticles formed during pulsed laser ablation The determination of the nucleation region for Si nanoparticles synthesized by pulsed laser ablation was helpful to find proper parameter to obtain the high quality nanocrystalline silicon (nc-Si) thin films. A XeCl excimer laser was used to ablate high-resistively single crystalline Si target under a deposition pressure of 10 Pa. Glass or single crystalline Si substrates, in parallel with the axial direction of silicon target, were located at a distance of 2.0 cm under the plasma to collect a series of nc-Si thin films. The Raman spectra, X-ray diffraction spectra (XRD) and Scanning electron microscopy (SEM) images show that Si nanoparticles deposited in substrates were only formed in the range 0.3~3.0cm away from the target. In this area, the size of the nanoparticles increased firstly and then reduced, meanwhile, the distributions for the size of the nanoparticles were also changed. According to the character of the beginning and the terminus of "nucleation area", combining with the "Horizontal Projectile Motion", the range and position of "nucleation area" were determination.
Back in the 1970s, when my mom wanted to lose weight, she turned to her palm-sized calorie counter book. She dutifully looked up, wrote down and added up the calorie counts for all the things she ate each day. I, on the other hand, can use an app on my smartphone for dieting help. I can use one programmed with my favorite snacks. There's one that can help me when I dine out and another that alphabetizes my favorite recipes, like an ingredients-only weight loss cookbook. I have hundreds of weight loss and fitness apps at my disposal. And herein lies my problem: How am I — how are any of us — supposed to choose? Luckily, a physician at the University of Texas has done some research on this question. "The best apps are the ones that engage people more," said Dr. John P. Higgins, a sports cardiologist at McGovern Medical School at the University of Texas Health Science Center at Houston. In a paper published last year in the American Journal of Medicine, Higgins reviewed dozens of weight loss and fitness apps. One finding: "With respect to apps," he said, "new is not necessarily better." For those just entering the weight loss app world, Higgins has a counterintuitive suggestion: Start with an older app with a proven track record, such as Lose It! or MyFitnessPal (which, despite its title, is very much a nutrition and weight loss app). Those apps will help you figure out what you like and don't like — and will ultimately help you decide what you really want in a weight loss app. "The apps that have been around a little while and are high on most lists, they are the ones that have gotten the most feedback from their customers and gotten better over time," he said. Noom Coach: This app takes its title seriously. It is as close to a coach as an electronic clipboard can be. It offers users articles on weight loss and healthful eating. It asks users to set exercise goals, then reminds them to do their workouts. It also sends inspirational tips. The basic version is free; users can pay $9.99 a month for access to recipes and a community forum, or $39.99 a month to communicate with a personal trainer. Weight Loss Coach by Fooducate: This app uses a scanner to grade food brands. I scanned the bar code on my Milton's Gluten-Free Baked Crackers. The app gave the chips a B-minus. "Highly processed!" it warned. "Contains MSG-like ingredients." The basic version is free; a one-time payment of $39.99 tailors the program for specific diets like vegan, paleo or gluten-free. HealthyOut: This app addresses one specific challenge of the determined dieter: How to know where to eat, and what to order, when eating out? A quick search in my West L.A. neighborhood did not include fine dining eatery Valentino but did turn up a Thai place, Chan Dara, a few blocks away. I could filter the menu there by ingredients or dietary preference. For those weary of lettuce, you can filter for "Not a Salad." At a national chain restaurant like the Counter, I could get calorie counts as well. The app is free. Diet Point: If you want to lose weight without strategizing, this is the app for you. It allows you to select a diet from a long list (some are free; some are one-time, in-app purchases), then gives you a meal-by-meal plan for that diet, along with a shopping list for the week. The app is free, but in-app diet purchases run around $5.
PHILIPPE COUTINHO has arrived for Brazil's World Cup 2018 training session in a helicopter. Barcelona superstar Philippe Coutinho arrived for a Brazil training session in style today after touching down in a helicopter at the Granja Comary centre in Rio de Janeiro. The Brazilian ace was whisked away by national team officials as he begins preparations for the 2018 World Cup which kicks off in just 23 days time. Coutinho completed his first La Liga campaign with Barcelona on Sunday after making a mid-season switch from Liverpool, and now his attention will turn to international duty. He is expected to be reunited with former team-mate Roberto Firmino in Brazil's starting XI with ex-Barcelona hero Neymar set to spearhead the attack. Take a look through the gallery to reveal the best snaps of Barcelona star Philippe Coutinho arriving for training in a helicopter.
A Notts man sat on his back garden patio and performed a sexual act which was spotted by members of a neighbouring family, a court heard. Allister Thomson admitted not being “careful enough to ensure people couldn’t see”, between May 1 and May 26, in his back garden at Thoresby Close, Meden Vale, said prosecutor Ann Barrett. The court heard his activities were screened by a fence on one side, and conifers and a shed on the other, but that he was still seen by neighbours at the end of the garden. A teenage witness said she was “disgusted”, adding: “He was on his own land but was clearly visible. Thomson, 48, admitted causing a public nuisance, when he appeared at Mansfield Magistrates Court, on Wednesday. “He felt that nobody would be able to see,” she added. He was fined £305, and must pay £85 court costs with a £31 victim surcharge.
The role of the district nurse in managing blocked urinary catheters. This article will investigate the district nurse's role in managing urinary catheter blockages, looking at why people require long-term catheterisation and the causes of blockages and then reviewing treatment methods. Current practice will be critically analysed and compared to the most up to date research and literature to inform district nurses of best evidence-based practice in the hopes of improving service user outcomes and quality of life and reducing the impact this problem has upon district nursing services with regards to time and resources.
Resolution and stability analysis in acousto-electric imaging We consider the optimization approach to the acousto-electric imaging problem. Assuming that the electric conductivity distribution is a small perturbation of a constant, we investigate the least-squares estimate analytically using (multiple) Fourier series, and confirm the widely observed fact that acousto-electric imaging has high resolution and is statistically stable. We also analyze the case of partial data and the case of limited-view data, in which some singularities of the conductivity can still be imaged.
NU READY: A Web and Mobile Application Framework for School Emergency Response Disasters are catastrophic occurrences that wreak property damages and take thousands of lives. Disasters may strike at any moment and in any location. It disrupts ordinary societal functioning and results in a degree of distress that surpasses the involved population. Educational Institutions are not exempted from disasters. Students are prone to emergencies that may threaten their lives and being prepared in an emergency situation may help reduce casualties and ensure a timely response. This study proposes a framework that seeks to assist institutions, particularly the National University - Manila, in being better prepared by providing information about disasters and emergency-related modules that cater to the requirements of students and employees. The mobile application aims to minimize disaster casualties. Students and employees can report accidents, hazards and ask for help from the appropriate authorities responsible inside the campus.
For Banks 'Too Big To Jail,' Prosecutors Count On A Promise To Behave Enlarge this image toggle caption Arnd Wiegmann/Reuters/Landov Arnd Wiegmann/Reuters/Landov Last week, a top Justice Department official issued a tough warning to banks and other corporations that repeatedly commit crimes. She said U.S. officials could do away with their deferred-prosecution agreements. Such deals allow companies that have broken the law to escape criminal convictions by promising to clean up their act. A new book looks at the role these agreements play in the corporate world. It may not always seem like it but in recent decades U.S. officials have charged a lot more companies with crimes such as bribery, insider trading and fraud. And that has raised a question: How do you punish a company that's done wrong? Criminal convictions can be a death sentence for big companies, as the 2002 guilty verdict of Arthur Andersen showed. So U.S. officials have increasingly turned to the deferred prosecution agreement. It works like this: Prosecutors hold off on charging a company with a crime. In return, the company promises to reform, and in most cases also promises to cooperate with investigators and pay a big fine. Brandon Garrett of the University of Virginia law school says prosecutors have long struck deals like these with individuals who commit crimes, such as first-time shoplifters or drug users. "It's a chance for a low-level criminal to show good conduct," he says. "Now, the idea that really serious corporate offenders would benefit from that kind of treatment was certainly a creative move." Garrett set out to find out how widespread these agreements have become in corporate cases. It wasn't easy because there's no central registry keeping track of them, and some prosecutors even seal them to spare companies embarrassment. Garrett discovered there have been more than 300 in the past decade, and a lot of them involve big publicly traded companies. In his book, Too Big to Jail, Garrett writes that the agreements with companies are sometimes vaguely written. "They just say, 'Do some compliance, fix things. Maybe create an anti-money laundering program that satisfies all the best industry standards, ' " Garrett says. "It's often very generic language: 'Do some best practices, please.' " And he says in most cases no one outside the company is appointed to monitor its compliance to make sure it has lived up to its side of the agreement. "That's a huge job, and typically prosecutors just depend on the company to update them on, 'Yes, oh yes, we've made good progress over the last year,' " Garrett says. In recent years a few federal judges have pushed back against these agreements, demanding more of a role in overseeing them. Former federal prosecutor Dan Richman says deferred prosecution agreements in general are often more nuanced than they appear to the public. For instance, he says, there may be no outside monitor appointed in many cases. But outsiders aren't always well-equipped to police big, complex companies. It may make more sense to rely on a company's internal compliance department to monitor a deal — especially when the wrongdoing was limited to a few rogue employees. Richman says white collar crimes can be hard cases, and prosecutors struggle to figure out how to keep companies accountable. "Whether that accountability needs to take the form of an actual conviction or something short of conviction is I think a close question once you recognize that companies can't be put in jail and that as an economy we would like many of these companies, if not all of them, to continue to play useful roles in the productive world," he says. Richman says the goal for prosecutors is to find a way to make meaningful change at a company where crimes have been committed. But U.S. officials acknowledge that companies can resist such efforts and deferred prosecution agreements haven't stopped some companies from becoming repeat offenders. U.S. officials are now investigating whether UBS and Barclays manipulated currency rates at a time when they were already operating under a deferred prosecution agreement for manipulating interest rates.
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.pinterest.secor.io.impl; import static org.junit.Assert.assertArrayEquals; import java.util.HashMap; import java.util.Map; import org.apache.parquet.hadoop.ParquetWriter; import org.json.simple.JSONObject; import org.json.simple.JSONValue; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.powermock.core.classloader.annotations.PowerMockIgnore; import org.powermock.modules.junit4.PowerMockRunner; import com.google.common.io.Files; import com.pinterest.secor.common.LogFilePath; import com.pinterest.secor.common.SecorConfig; import com.pinterest.secor.io.FileReader; import com.pinterest.secor.io.FileWriter; import com.pinterest.secor.io.KeyValue; import com.pinterest.secor.protobuf.Messages.UnitTestMessage3; import com.pinterest.secor.util.ParquetUtil; import com.pinterest.secor.util.ReflectionUtil; import junit.framework.TestCase; @RunWith(PowerMockRunner.class) @PowerMockIgnore({ "com.ctc.wstx.stax.*", "com.ctc.wstx.io.*", "com.sun.*", "com.sun.org.apache.xalan.", "com.sun.org.apache.xerces.", "com.sun.xml.internal.stream.*", "javax.activation.*", "javax.management.", "javax.xml.", "javax.xml.stream.*", "javax.security.auth.login.*", "javax.security.auth.spi.*", "org.apache.hadoop.security.*", "org.codehaus.stax2.*", "org.w3c.", "org.xml.", "org.w3c.dom."}) public class ProtobufParquetFileReaderWriterFactoryTest extends TestCase { private SecorConfig config; @Override public void setUp() throws Exception { config = Mockito.mock(SecorConfig.class); } @Test public void testProtobufParquetReadWriteRoundTrip() throws Exception { Map<String, String> classPerTopic = new HashMap<String, String>(); classPerTopic.put("test-pb-topic", UnitTestMessage3.class.getName()); Mockito.when(config.getProtobufMessageClassPerTopic()).thenReturn(classPerTopic); Mockito.when(config.getFileReaderWriterFactory()) .thenReturn(ProtobufParquetFileReaderWriterFactory.class.getName()); Mockito.when(ParquetUtil.getParquetBlockSize(config)) .thenReturn(ParquetWriter.DEFAULT_BLOCK_SIZE); Mockito.when(ParquetUtil.getParquetPageSize(config)) .thenReturn(ParquetWriter.DEFAULT_PAGE_SIZE); Mockito.when(ParquetUtil.getParquetEnableDictionary(config)) .thenReturn(ParquetWriter.DEFAULT_IS_DICTIONARY_ENABLED); Mockito.when(ParquetUtil.getParquetValidation(config)) .thenReturn(ParquetWriter.DEFAULT_IS_VALIDATING_ENABLED); LogFilePath tempLogFilePath = new LogFilePath(Files.createTempDir().toString(), "test-pb-topic", new String[] { "part-1" }, 0, 1, 23232, ".log"); FileWriter fileWriter = ReflectionUtil.createFileWriter(config.getFileReaderWriterFactory(), tempLogFilePath, null, config); UnitTestMessage3 msg1 = UnitTestMessage3.newBuilder().setData("abc").setTimestamp(1467176315L).build(); UnitTestMessage3 msg2 = UnitTestMessage3.newBuilder().setData("XYZ").setTimestamp(1467176344L).build(); KeyValue kv1 = (new KeyValue(23232, msg1.toByteArray())); KeyValue kv2 = (new KeyValue(23233, msg2.toByteArray())); fileWriter.write(kv1); fileWriter.write(kv2); fileWriter.close(); FileReader fileReader = ReflectionUtil.createFileReader(config.getFileReaderWriterFactory(), tempLogFilePath, null, config); KeyValue kvout = fileReader.next(); assertEquals(kv1.getOffset(), kvout.getOffset()); assertArrayEquals(kv1.getValue(), kvout.getValue()); assertEquals(msg1.getData(), UnitTestMessage3.parseFrom(kvout.getValue()).getData()); kvout = fileReader.next(); assertEquals(kv2.getOffset(), kvout.getOffset()); assertArrayEquals(kv2.getValue(), kvout.getValue()); assertEquals(msg2.getData(), UnitTestMessage3.parseFrom(kvout.getValue()).getData()); } @Test public void testJsonParquetReadWriteRoundTrip() throws Exception { Map<String, String> classPerTopic = new HashMap<String, String>(); classPerTopic.put("test-pb-topic", UnitTestMessage3.class.getName()); Map<String, String> formatForAll = new HashMap<String, String>(); formatForAll.put("*", "JSON"); Mockito.when(config.getProtobufMessageClassPerTopic()).thenReturn(classPerTopic); Mockito.when(config.getMessageFormatPerTopic()).thenReturn(formatForAll); Mockito.when(config.getFileReaderWriterFactory()) .thenReturn(ProtobufParquetFileReaderWriterFactory.class.getName()); Mockito.when(ParquetUtil.getParquetBlockSize(config)) .thenReturn(ParquetWriter.DEFAULT_BLOCK_SIZE); Mockito.when(ParquetUtil.getParquetPageSize(config)) .thenReturn(ParquetWriter.DEFAULT_PAGE_SIZE); Mockito.when(ParquetUtil.getParquetEnableDictionary(config)) .thenReturn(ParquetWriter.DEFAULT_IS_DICTIONARY_ENABLED); Mockito.when(ParquetUtil.getParquetValidation(config)) .thenReturn(ParquetWriter.DEFAULT_IS_VALIDATING_ENABLED); LogFilePath tempLogFilePath = new LogFilePath(Files.createTempDir().toString(), "test-pb-topic", new String[] { "part-1" }, 0, 1, 23232, ".log"); FileWriter fileWriter = ReflectionUtil.createFileWriter(config.getFileReaderWriterFactory(), tempLogFilePath, null, config); UnitTestMessage3 protomsg1 = UnitTestMessage3.newBuilder().setData("abc").setTimestamp(1467176315L).build(); UnitTestMessage3 protomsg2 = UnitTestMessage3.newBuilder().setData("XYZ").setTimestamp(1467176344L).build(); Map jsonValues = new HashMap(); jsonValues.put("data", "abc"); jsonValues.put("timestamp", 1467176315L); JSONObject json = new JSONObject(); json.putAll(jsonValues); String msg1 = json.toJSONString(); jsonValues.put("data", "XYZ"); jsonValues.put("timestamp", 1467176344L); json.putAll(jsonValues); String msg2 = json.toJSONString(); KeyValue kv1 = (new KeyValue(23232, msg1.getBytes())); KeyValue kv2 = (new KeyValue(23233, msg2.getBytes())); fileWriter.write(kv1); fileWriter.write(kv2); fileWriter.close(); FileReader fileReader = ReflectionUtil.createFileReader(config.getFileReaderWriterFactory(), tempLogFilePath, null, config); KeyValue kvout = fileReader.next(); assertEquals(kv1.getOffset(), kvout.getOffset()); assertEquals(protomsg1.getData(), UnitTestMessage3.parseFrom(kvout.getValue()).getData()); kvout = fileReader.next(); assertEquals(kv2.getOffset(), kvout.getOffset()); assertEquals(protomsg2.getData(), UnitTestMessage3.parseFrom(kvout.getValue()).getData()); } }
import React from "react"; import { Helmet } from "react-helmet"; import { Container, Row } from "react-bootstrap"; import "./homePage.css"; function HomePage() { return ( <Container style={{ minHeight: "calc(100vh - 86px)" }}> <Helmet> <meta name="description" content="Landing Page of the halp website" /> <title>HALP | Create</title> </Helmet> <Row style={{ height: "calc(100vh - 86px)" }} className="align-items-center justify-content-center" > <div className="text-center"> <h2 className="slogan">Make Work Work Better</h2> <h3 className="site-description"> Assign, track, manage, and resolve tickets effortlessly </h3> </div> </Row> </Container> ); } export default HomePage;
<reponame>poteat/kata-sandbox type Filter<T extends unknown[], N> = T extends [] ? [] : T extends [infer H, ...infer R] ? H extends N ? Filter<R, N> : [H, ...Filter<R, N>] : T; type Has<T extends unknown[], X> = X extends T[number] ? true : false; export class Set<Elements extends number[] = []> { private elements: number[] = []; public insert<SpecificValue extends number>( x: SpecificValue ): asserts this is Has< this extends Set<infer E> ? E : never, SpecificValue > extends true ? Set<Elements> : Set<[...Elements, SpecificValue]> { this.elements.push(x); } public remove<SpecificValue extends number>( x: SpecificValue ): asserts this is Set<Filter<Elements, SpecificValue>> { this.elements = this.elements.filter((y) => x === y); } public has<SpecificValue extends number>( x: SpecificValue ): Has<this extends Set<infer E> ? E : never, SpecificValue> { return this.elements.includes(x) as any; } public value(): this extends Set<infer E> ? E : never { return this.elements as any; } } const set: Set = new Set(); set.insert(2); set.insert(4); set.insert(8); set.remove(4); const hasResult1 = set.has(8); // true const hasResult2 = set.has(4); // false const result = set.value(); // [2, 8]
<gh_stars>0 /* * Copyright (c) 2015-2017, Dell EMC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.emc.metalnx.integration.test.metadata; import com.emc.metalnx.core.domain.exceptions.DataGridException; import com.emc.metalnx.integration.test.utils.CollectionUtils; import com.emc.metalnx.integration.test.utils.FileUtils; import com.emc.metalnx.integration.test.utils.MetadataUtils; import com.emc.metalnx.test.generic.UiTestUtilities; import org.apache.commons.lang3.RandomStringUtils; import org.junit.*; import org.openqa.selenium.By; import org.openqa.selenium.TimeoutException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Date; import java.util.List; import static org.junit.Assert.fail; @Deprecated @Ignore public class MetadataTest { private static final Logger logger = LoggerFactory.getLogger(MetadataTest.class); private static WebDriver driver = null; @BeforeClass public static void setUpBeforeClass() throws Exception { UiTestUtilities.init(); driver = UiTestUtilities.getDriver(); FileUtils.forceRemoveFilesFromHomeAsAdmin(MetadataUtils.METADATA_SEARCH_FILES); FileUtils.uploadToHomeDirAsAdmin(MetadataUtils.METADATA_SEARCH_FILES); UiTestUtilities.login(); WebDriverWait wait = new WebDriverWait(driver, 10); MetadataUtils.realWaitMethod(driver); driver.get(UiTestUtilities.COLLECTIONS_URL); wait.until(ExpectedConditions.elementToBeClickable(MetadataUtils.TAB_LINKS)); wait.until(ExpectedConditions.elementToBeClickable(CollectionUtils.COLLS_TABLE)); MetadataUtils.addMetadata(driver, MetadataUtils.SELENIUM_ATTR, MetadataUtils.SELENIUM_VALUE, "", MetadataUtils.METADATA_SEARCH_FILES[0]); MetadataUtils.realWaitMethod(driver); driver.get(UiTestUtilities.COLLECTIONS_URL); wait.until(ExpectedConditions.elementToBeClickable(MetadataUtils.TAB_LINKS)); wait.until(ExpectedConditions.elementToBeClickable(CollectionUtils.COLLS_TABLE)); MetadataUtils.addMetadata(driver, MetadataUtils.SELENIUM_ATTR, MetadataUtils.SELENIUM_VALUE, "", MetadataUtils.METADATA_SEARCH_FILES[1]); MetadataUtils.realWaitMethod(driver); driver.get(UiTestUtilities.COLLECTIONS_URL); wait.until(ExpectedConditions.elementToBeClickable(MetadataUtils.TAB_LINKS)); wait.until(ExpectedConditions.elementToBeClickable(CollectionUtils.COLLS_TABLE)); MetadataUtils.addMetadata(driver, MetadataUtils.SELENIUM_ATTR, MetadataUtils.SELENIUM_VALUE, "", MetadataUtils.METADATA_SEARCH_FILES[2]); MetadataUtils.realWaitMethod(driver); MetadataUtils.addMetadataToSpecificFiles(driver); UiTestUtilities.logout(); } /** * Logs in before each test. */ @Before public void setUp() throws Exception { UiTestUtilities.login(); } /** * After each test the user is logged out. */ @After public void tearDown() throws Exception { UiTestUtilities.logout(); } /** * After all tests are done, the test must quit the driver. This will close every window * associated with the current driver instance. * * @throws DataGridException */ @AfterClass public static void tearDownAfterClass() throws DataGridException { FileUtils.forceRemoveFilesFromHomeAsAdmin(MetadataUtils.METADATA_SEARCH_FILES); if (driver != null) { driver.quit(); driver = null; UiTestUtilities.setDriver(null); } } /** * Test metadata search using "Selenium" as attribute and "Test" as value. * Number of results expected: 3. All files in {@code metadataSearchFiles} have this piece of * metadata. * Results expected: 1SeleniumTestMetadataSearch.png, 2SeleniumTestMetadataSearch.png, and * 3SeleniumTestMetadataSearch.png. The results must appear in this particular order. */ @Test public void testSeleniumAsAttrAndTestAsValue() { logger.info("Testing Metadata search"); driver.get(UiTestUtilities.METADATA_SEARCH_URL); MetadataUtils.fillInMetadataSearchAttrVal(driver, MetadataUtils.SELENIUM_ATTR, MetadataUtils.SELENIUM_VALUE); MetadataUtils.submitMetadataSearch(driver); MetadataUtils.waitForSearchResults(driver); List<WebElement> results = driver.findElements(MetadataUtils.METADATA_SEARCH_RESULTS); Assert.assertNotNull(results); // check if the number of results found matches the number of files used for testing Assert.assertEquals(MetadataUtils.TOTAL_FILES_METADATA_SEARCH, results.size()); // check if each file found is the file used for testing int index = 0; for (WebElement metadataSearchResult : results) { Assert.assertEquals(metadataSearchResult.getText().trim(), MetadataUtils.METADATA_SEARCH_FILES[index]); index++; } } /** * Test metadata search on the file 1SeleniumTestMetadataSearch. * Search parameters: SeleniumTest (attribute) and 1 (value) * Number of results expected: 1 (only this file should have this particular piece of metadata) * Results expected: 1SeleniumTestMetadataSearch.png */ @Test public void testSeleniumTestAsAttrAnd1AsValue() { logger.info("Testing Metadata search using Selenium Test as the attribute and 1 as the value"); driver.get(UiTestUtilities.METADATA_SEARCH_URL); MetadataUtils.fillInMetadataSearchAttrVal(driver, MetadataUtils.SELENIUM_TEST_ATTR, MetadataUtils.SELENIUM_TEST_VAL1); MetadataUtils.submitMetadataSearch(driver); MetadataUtils.waitForSearchResults(driver); List<WebElement> results = driver.findElements(MetadataUtils.METADATA_SEARCH_RESULTS); Assert.assertNotNull(results); // check if the number of results found matches the number of files used for testing Assert.assertEquals(1, results.size()); // check if each file found is the file used for testing Assert.assertEquals(results.get(0).getText().trim(), MetadataUtils.METADATA_SEARCH_FILES[0]); } /** * Test metadata search on the file 2SeleniumTestMetadataSearch. * Search parameters: SeleniumTest (attribute) and 2 (value) * Number of results expected: 1 (only this file should have this particular piece of metadata) * Results expected: 2SeleniumTestMetadataSearch.png */ @Test public void testSeleniumTestAsAttrAnd2AsValue() { logger.info("Testing Metadata search using Selenium Test as the attribute and 2 as the value"); driver.get(UiTestUtilities.METADATA_SEARCH_URL); MetadataUtils.fillInMetadataSearchAttrVal(driver, MetadataUtils.SELENIUM_TEST_ATTR, MetadataUtils.SELENIUM_TEST_VAL2); MetadataUtils.submitMetadataSearch(driver); MetadataUtils.waitForSearchResults(driver); List<WebElement> results = driver.findElements(MetadataUtils.METADATA_SEARCH_RESULTS); Assert.assertNotNull(results); Assert.assertEquals(1, results.size()); // check if each file found is the file used for testing Assert.assertEquals(results.get(0).getText().trim(), MetadataUtils.METADATA_SEARCH_FILES[1]); } /** * Test metadata search on the file 3SeleniumTestMetadataSearch. * Search parameters: SeleniumTest (attribute) and 3 (value) * Number of results expected: 1 (only this file should have this particular piece of metadata) * Results expected: 3SeleniumTestMetadataSearch.png */ @Test public void testSeleniumTestAsAttrAnd3AsValue() { logger.info("Testing Metadata search using Selenium Test as the attribute and 3 as the value"); driver.get(UiTestUtilities.METADATA_SEARCH_URL); MetadataUtils.fillInMetadataSearchAttrVal(driver, MetadataUtils.SELENIUM_TEST_ATTR, MetadataUtils.SELENIUM_TEST_VAL3); MetadataUtils.submitMetadataSearch(driver); MetadataUtils.waitForSearchResults(driver); List<WebElement> results = driver.findElements(MetadataUtils.METADATA_SEARCH_RESULTS); Assert.assertNotNull(results); // check if the number of results found matches the number of files used for testing Assert.assertEquals(1, results.size()); // check if each file found is the file used for testing Assert.assertEquals(results.get(0).getText().trim(), MetadataUtils.METADATA_SEARCH_FILES[2]); } /** * Test metadata search on the file 1SeleniumTestMetadataSearch and 2SeleniumTestMetadataSearch. * Search parameters: SeleniumTest (attribute) and 12 (value) * Number of results expected: 2 (both 1SeleniumTestMetadataSearch and * 2SeleniumTestMetadataSearch files should have this particular piece of metadata) * Results expected: 1SeleniumTestMetadataSearch.png and 2SeleniumTestMetadataSearch.png in this * order. */ @Test public void testSeleniumTestAsAttrAnd12AsValue() { logger.info("Testing Metadata search using Selenium Test as the attribute and 12 as the value"); driver.get(UiTestUtilities.METADATA_SEARCH_URL); MetadataUtils.fillInMetadataSearchAttrVal(driver, MetadataUtils.SELENIUM_TEST_ATTR, MetadataUtils.SELENIUM_TEST_VAL12); MetadataUtils.submitMetadataSearch(driver); MetadataUtils.waitForSearchResults(driver); List<WebElement> results = driver.findElements(MetadataUtils.METADATA_SEARCH_RESULTS); Assert.assertNotNull(results); // check if the number of results matches the number of files used for testing Assert.assertEquals(2, results.size()); // check if each file found is the file used for testing int index = 0; for (WebElement metadataSearchResult : results) { Assert.assertEquals(metadataSearchResult.getText().trim(), MetadataUtils.METADATA_SEARCH_FILES[index]); index++; } } /** * Test looking for a piece of metadata that does not exist. * Search parameters: Random string (attribute) and random string (value) * Number of results expected: 0 * Results expected: None * Expected Exceptions: {@link TimeoutException} */ @Test(expected = TimeoutException.class) public void testSearchUsingNonExistentMetadataTags() { logger.info("Testing Metadata search using non-existent metadata tags"); driver.get(UiTestUtilities.METADATA_SEARCH_URL); String attr = RandomStringUtils.randomAlphanumeric(4096); String val = RandomStringUtils.randomAlphanumeric(4096); MetadataUtils.fillInMetadataSearchAttrVal(driver, attr, val); MetadataUtils.submitMetadataSearch(driver); // Expecting a Timeout exception to happen here since Metalnx is supposed to return // nothing. Then, the metadata results table will not be displayed. MetadataUtils.waitForSearchResults(driver); fail("Non-existing metadata is actually returning something from the search."); } /** * Test searching for metadata without giving any search criteria. In other words, testing a * search without giving any attribute or value as the search criteria. * Search parameters: None * Number of results expected: 0 * Results expected: None * Expected Exceptions: {@link TimeoutException} */ @Test(expected = TimeoutException.class) public void testSearchWithoutSearchCriteria() { logger.info("Testing Metadata search using non-existent metadata tags"); driver.get(UiTestUtilities.METADATA_SEARCH_URL); MetadataUtils.submitMetadataSearch(driver); // Expecting a Timeout exception to happen here since Metalnx is supposed to return // nothing. Then, the metadata results table will not be displayed. MetadataUtils.waitForSearchResults(driver); fail("Blank metadata search is actually returning something."); } /** * Test the number of matches shown for each file used in the search. * Search parameters: * 1) Selenium Test * 2) SeleniumTest 1 * 3) SeleniumTest 12 * Number of results expected: 3 * Results expected: * 1) 1SeleniumTestMetadataSearch.png (Number of matches: 3) * 2) 2SeleniumTestMetadataSearch.png (Number of matches: 2) * 3) 3SeleniumTestMetadataSearch.png (Number of matches: 1) */ @Test public void testNumberOfMatchesDisplayedForEachFileAfterSearching() { logger.info("Testing the number of matches displayed for each file after doing a search."); WebElement inputAttr = null; WebElement inputValue = null; WebElement addMetadataSearchRowBtn = null; WebElement metadataSearchMatchColumn = null; int[] expectedMatchingCounts = { 3, 2, 1 }; driver.get(UiTestUtilities.METADATA_SEARCH_URL); logger.info("Entering search criteria."); // adding multiples search criteria to the search inputAttr = driver.findElement(By.id("metadataAttr0")); inputAttr.sendKeys(MetadataUtils.SELENIUM_ATTR); inputValue = driver.findElement(By.id("metadataValue0")); inputValue.sendKeys(MetadataUtils.SELENIUM_VALUE); addMetadataSearchRowBtn = driver.findElement(By.id("addMetadataSearchRow")); addMetadataSearchRowBtn.click(); inputAttr = driver.findElement(By.id("metadataAttr1")); inputAttr.sendKeys(MetadataUtils.SELENIUM_TEST_ATTR); inputValue = driver.findElement(By.id("metadataValue1")); inputValue.sendKeys(MetadataUtils.SELENIUM_TEST_VAL1); addMetadataSearchRowBtn.click(); inputAttr = driver.findElement(By.id("metadataAttr2")); inputAttr.sendKeys(MetadataUtils.SELENIUM_TEST_ATTR); inputValue = driver.findElement(By.id("metadataValue2")); inputValue.sendKeys(MetadataUtils.SELENIUM_TEST_VAL12); MetadataUtils.submitMetadataSearch(driver); MetadataUtils.waitForSearchResults(driver); List<WebElement> results = driver.findElements(MetadataUtils.METADATA_SEARCH_RESULTS); List<WebElement> metadataSearchResultsMatchesCount = driver.findElements(By.cssSelector("#treeViewTable tbody tr td:last-child")); logger.info("Checking if any result was found", new Date()); Assert.assertNotNull(results); // check if the number of results found matches the number of files used for testing Assert.assertEquals(MetadataUtils.TOTAL_FILES_METADATA_SEARCH, results.size()); logger.info("Checking if the number of matches of each file is the same as expected."); int index = 0; int matchingCount = 0; for (WebElement r : results) { Assert.assertEquals(r.getText().trim(), MetadataUtils.METADATA_SEARCH_FILES[index]); metadataSearchMatchColumn = metadataSearchResultsMatchesCount.get(index); matchingCount = metadataSearchMatchColumn.findElements(By.tagName("i")).size(); Assert.assertEquals(expectedMatchingCounts[index], matchingCount); index++; } } /** * Adds number maximum of parameters for the metadata search, which is five, and assures that * add button is hidden when the maximum is reached */ @Test public void testAddMaxNumOfSearchParams() { MetadataUtils.addMaxNumberOfSearchParams(driver); List<WebElement> metadataSearchParameters = driver.findElements(By.className("metadataSearchRow")); Assert.assertEquals(metadataSearchParameters.size(), 5); } /** * Adds number maximum of parameters for the metadata search, which is five, and assures that * add button is hidden when the maximum is reached */ @Test public void testRmvMaxNumOfSearchParams() { MetadataUtils.addMaxNumberOfSearchParams(driver); List<WebElement> metadataSearchParameters = driver.findElements(By.className("metadataSearchRow")); Assert.assertEquals(metadataSearchParameters.size(), 5); WebElement rmSearchParam = driver.findElement(By.className("rmMetadataSearchRow")); rmSearchParam.click(); WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("addMetadataSearchRow"))); } }
Q: How can Fantomex be an anomaly? In Uncanny X-Force #20, a member of the Captain Britain Corps claims that Fantomex is an anomaly and does not exist in any other dimension. Yet, alternate reality version of Fantomex have been shown numerous times. Days of Future Now (Earth-5700): Fantomex became the host of Sublime. Here Comes Tomorrow (Earth-15104): Fantomex has become one of Sublime's U-Men and is known as Apollyon the Destroyer. Even in an earlier issue of Uncanny X-Force we see Fantomex fighting a Deathlok version of himself. Is there an in-universe explanation for this or is it simply a retcon? A: Considering Uncanny X-Force #20 is the most recent of those comics and the Captain Britain Corps is a multi-dimensional organisation I would trust them and say that they are right to consider Fantomex to be an anomaly (And accept the writers ret-con). Though, on the other hand, from my cursory search I cannot find a single Captain Britain from any of the universes you mention. If their primary sources for 'Who's Who across the multiverse' is personal experience and there is no one Captain Britain from Earth-5700 or Earth 15105, how would they know? It may simply be rhetoric to disparage Fantomex. Without more details it's impossible to decide, but this is the best answer I think we can manage with what we have, I.e this is a retcon.
A Republican candidate for governor used the beginning of the holiday weekend as occasion to disclose publicly some youthful indiscretions that he’s hoping will not become fodder for the upcoming political campaign. In a press release sent to media outlets across Vermont, Scott Milne said that during an 18-month period in college 35 years ago, he was arrested twice for driving under the influence and once for possession of a small amount of marijuana and cocaine. "Though I was academically successful, I was making poor choices. These were embarrassing and powerful life lessons of which I am not proud,” Milne said in a written statement. "Shortly after these incidents, I stopped using drugs and committed to only consume alcohol in moderation. As an adult, I have used these lessons, and others, as the foundation of a life dedicated to personal responsibility and improvement, and for understanding and talking with others who may need a hand up or a shoulder to lean on.” Milne, owner of Milne Travel, also disclosed Thursday that he suffered a stroke in 2006. He said that, thanks in part to the quick action of his 16-year-old daughter, who was home with him at the time, “I have made a full recovery, have very little residual effect and I have my doctor's medical clearance for the rigors of both a vigorous campaign and serving as governor.” Since announcing his candidacy June 12, Milne’s campaign has been slow getting off the ground. He still doesn’t have a campaign website, for example. Milne said that in exposing his skeletons now, he hopes not only to “demonstrate that transparency is more than just a talking point,” but to “let folks know more about me, including my mistakes, so they can fully evaluate which candidate they will elect as governor for the next two years.” Milne said he also wants to diminish the prospect that his arrests record or health history would be used against him by the Democratic incumbent, Gov. Peter Shumlin. "From this point forward,” Milne said, “our campaign will focus on the challenges Vermont faces and on convincing Vermonters that I can better manage state government and be a stronger advocate for job creation, an economy that ensures the economic security of every family and making our state--including healthcare and property taxes--much more affordable."
1. Field of the Invention The present invention concerns antitumor compounds. More particularly, the invention provides novel paclitaxel derivatives, pharmaceutical formulations thereof, and their use as antitumor agents. 2. Background Art Paclitaxel is a natural product extracted from the bark of Pacific yew trees, Taxus brevifolia and the active constituent of the anticancer agent TAXOL(copyright). It has been shown to have excellent antitumor activity in in vivo animal models, and recent studies have elucidated its unique mode of action, which involves abnormal polymerization of tubulin and disruption of mitosis. It is used clinically against a number of human cancers. It is an important cancer agent both therapeutically and commercially. Numerous clinical trials are in progress to expand the increase the utility of this agent for the treatment of human proliferative diseases. The results of TAXOL(copyright) clinical studies have been reviewed by numerous authors. A very recent compilation of articles by a number of different authors is contained in the entire issue of Seminars in Oncology 1999, 26 (1, Suppl 2). Other examples are such as by Rowinsky et al. in TAXOL(copyright): A Novel Investigational Antimicrotubule Agent, J. Natl. Cancer Inst., 82: pp 1247-1259, 1990; by Rowinsky and Donehower in xe2x80x9cThe Clinical Pharmacology and Use of Antimicrotubule Agents in Cancer Chemotherapeutics,xe2x80x9d Pharmac. Ther., 52:35-84,1991; by Spencer and Faulds in xe2x80x9cPaclitaxel, A Review of its Pharmacodynamic and Pharmacokinetic Properties and Therapeutic Potential in the Treatment of Cancer,xe2x80x9d Drugs, 48 (5) 794-847,1994; by K. C. Nicolaou et al. in xe2x80x9cChemistry and Biology of TAXOL(copyright),xe2x80x9d Angew. Chem., Int. Ed. Engl., 33: 15-44, 1994: by F. A. Holmes, A. P. Kudelka, J. J. Kavanaugh, M. H. Huber. J. A. Ajani, V. Valero in the book xe2x80x9cTaxane Anticancer Agents Basic Science and Current Statusxe2x80x9d edited by Gunda 1. Georg, Thomas T. Chen, lwao Ojima, and Dolotrai M. Vyas, 1995, American Chemical Society, Washington, D.C., 31-57; by Susan G. Arbuck and Barbara Blaylock in the book xe2x80x9cTAXOL(copyright) Science and Applicationsxe2x80x9d edited by Mathew Suffness, 1995, CRC Press Inc., Boca Raton, Fla., 379-416; and also in the references cited therein. A semi-synthetic analog of paclitaxel named docetaxel has also been found to have good antitumor activity and is the active ingredient of the commercially available cancer agent TAXOTERE(copyright). See, Biologically Active Taxol Analogues with Deleted A-Ring Side Chain Substitutents and Variable C-2xe2x80x2 Configurations, J. Med. Chem., 34, pp 1176-1184 (1991); Relationships between the Structure of Taxol Analogues and Their Antimitotic Activity, J. Med. Chem., 34. pp 992-998 (1991). A review of the clinical activity of TAXOTERE(copyright) by Jorge E. Cortes and Richard Pazdur has appeared in Journal of Clinical Oncology 1995, 13(10), 2643 to 2655. The structures of paclitaxel and docetaxel are shown below along with the conventional numbering system for molecules belonging to the class; such numbering system is also employed in this application. paclitaxel (TAXOL(copyright)): R=Ph; Rxe2x80x2=acetyl docetaxel (TAXOTERE(copyright)): R=t-butoxy; Rxe2x80x2=hydrogen The intention of this invention is to provide new 7-deoxy taxane analogs with useful anticancer properties. Some of the background art pertaining to this invention are shown below. Several Publications have described the synthesis or attempted synthesis of the 7-deoxy analog of paclitaxel. These are: Chen, Shu Hui; Huang, Stella; Kant, Joydeep; Fairchild, Craig Wei, Jianmei; Farina, Vittorio. xe2x80x9cSynthesis of 7-deoxy- and 7,10-dideoxytaxol via radical intermediatesxe2x80x9d. J. Org. Chem., 58(19). 5028-9, 1993. Chaudhary, Ashok G.; Rimoldi, John M.; Kingston, David G. I. xe2x80x9cModified taxols. 10. Preparation of 7-deoxytaxol, a highly bioactive taxol derivative, and interconversion of taxol and 7-epi-taxolxe2x80x9d. J. Org. Chem., 58(15), 3798-9, 1993. Matovic, Radomir; Saicic, Radomir N. xe2x80x9cAn efficient semisynthesis of 7-deoxypaclitaxel from taxinexe2x80x9d. Chem. Commun. (Cambridge). (16), 1745-1746, 1998. A U.S. patent (U.S. Pat. No. 5,478,854) covering certain deoxy taxanes issued on Dec 26th 1995 by Farina et. al. A published PCT international application (WO 94/17050) from Holton et. al. discloses 7-deoxy taxane derivatives. Other than actual supporting examples already claimed in the above mentioned U.S. patent, this application discloses many multitudes of hypothetical 7-deoxy taxane analogs with no indication of which compounds would really be useful. This application also does not provide details of the preparation of any C-7 deoxy taxanes which are not covered by the above mentioned U.S. patent. Corresponding U.S. Pat. No. 5,271,268 to Holton et al was granted. An issued U.S. patent (U.S. Pat. No. 5773461) by Wittman et. al. claims 7-deoxy taxane analogs with unique functional groups at the 6 position as antitumor agents. A published PCT application (WO 9828288) by Staab et. al. published Jul. 2, 1998, corresponding to U.S. Pat. No. 5,977,386 granted Nov. 2, 1999, describes C-7 deoxy taxanes with thio substituents at the 6 position. A published PCT application (WO 9838862) by Wittman et. al. published Sep. 11, 1998, corresponding to U.S. Pat. No. 5,912,264 granted Jun. 15, 1998, describes C-7 deoxy taxanes with halogen or nitro substituents on C-6. Nondeoxy analogs with a 3xe2x80x2 furyl amide substituent on the sidechain have appeared in both the patent (U.S. Pat. No. 5227,400 and U.S. Pat. No. 5,283,253) and chemistry literature Georg, Gunda I.; Harriman, Geraldine C. B.; Hepperle, Michael; Clowers, Jamie S.; Vander Velde, David G.; Himes, Richard H. Synthesis, Conformational Analysis, and Biological Evaluation of Heteroaromatic Taxanes. J. Org. Chem. (1996), 61(8), 2664-76. Importantly, we are unaware of any reports describing the synthesis of a 7-deoxy analog with this 3xe2x80x2N furoylamide sidechain or any of their novel, useful anticancer properties such as those described by this invention. Hydroxylation of the 3xe2x80x2 sidechain phenyl group of paclitaxel has been reported to lead to reduced potency and thus has been inferred to result in less activity as discussed in the following examples: Wright, M.; Monsarrat, B.; Royer, I.; Rowinsky, E. K.; Donehower, R. C.; Cresteil, T.; Guenard, D. Metabolism and pharmacology of taxoids. Pharmacochem. Libr. (1995), Volume Date 1995, 22 131-64; Sparreboom, Alexander; Huizing, Manon T.; Boesen, Jan J. B.; Nooijen, Willem J.; van Tellingen, Olaf; Beijnen, Jos H. Isolation, purification, and biological activity of mono- and dihydroxylated paclitaxel metabolites from human feces. Cancer Chemother. Pharmacol. (1995). 36(4), 299-304. Monsarrat, Bernard; Mariel, Eric; Cros, Suzie; Gares, Michele, Guenard, Daniel; Gueritte-Voegelein, Francoise; Wright, Michel. Taxol metabolism. Isolation and identification of three major metabolites of taxol in rat bile. Drug Metab. Dispos. (1990), 18(6), 895-901. The synthetic preparation of the parahydroxylated 3xe2x80x2phenyl metabolite has been described in the literature. Park, Haeil; Hepperle, Michael; Boge, Thomas C.; Himes, Richard H.; Georg, Gunda I. Preparation of Phenolic Paclitaxel Metabolites. J. Med. Chem. (1996), 39(14), 2705-2709. We are not aware of any published reports of synthetic analogs with phydroxy phenyl 3xe2x80x2 sidechains that are purported to have activity advantages. However, one reference in the patent literature mentions in passing that the para hydroxy phenyl metabolite might have an improved therapeutic index despite reduced potency and thus it""s formation in vivo may be fortuitous. Broder et.al. PCT Int. Appl. WO 9715269 published May 1, 1997. However, this patent does not describe the synthesis or administration of para-hydroxyphenyl taxanes nor any actual efficacy results. Thus, the art clearly shows that the phydroxy phenyl sidechain analog of paclitaxel will be less potent than the parent drug. Most significantly, we are unaware of any prior art which describes the synthesis of novel 7-deoxy taxanes with a 3xe2x80x2parahydroxyphenyl containing sidechain or which describes their novel and unexpected antitumor properties such as those contained in this application. Both TAXOL(copyright) and TAXOTERE(copyright) have no oral activity in human or animal models as mentioned in the following prior art on taxanes and modulators. Methods for administering taxanes in the presence of modulators have been been reported to increase the amount of taxanes in the plasma after oral administration: Terwogt, Jetske M. Meerum; Beijnen, Jos H.; Ten Bokkel Huinink, Wim W.; Rosing, Hilde; Schellens, Jan H. M. Co-administration of cyclosporin enables oral therapy with paclitaxel. Lancet (1998), 352(9124), 285. Hansel, Steven B. A method of making taxanes orally bioavailable by coadministration with cinchonine. PCT Int. Appl. WO 9727855 published Aug. 7, 1997. Broder, Samuel; Duchin, Kenneth L.; Selim, Sami. Method and compositions for administering taxanes orally to human patients using a cyclosporin to enhance bioavailability. PCT Int. Appl. WO 9853811 published Dec. 3, 1998. These reports contain no antitumor efficacy data but the presence of taxanes in the plasma is extrapolated to show their potential for anaticancer utility. At least one report of oral activity of taxane analogs or prodrugs in preclinical animal models has appeared in the prior art: Scola, Paul M.; Kadow, John F.; Vyas, Dolatrai M. Preparation of paclitaxel prodrug derivatives. Eur. Pat. Appl. EP 747385 published Dec. 11, 1996. The oral bioavailability of the prodrug which had oral efficacy was not disclosed and no further reports of these compounds progressing to man have appeared. Thus it is clear that taxanes with both good oral bioavailability and good oral efficacy are at minimum, exceedingly rare. There are no such compounds which have been reported to demonstrate both oral bioavailbility and anticancer activity in man. Several Publications have described the synthesis or attempted synthesis of some 7-deoxy taxane analogs and these are included only because they are additional references in the area of 7-deoxy taxanes. Chen, Shu Hui; Huang, Stella; Kant, Joydeep; Fairchild, Craig; Wei, Jianmei; Farina, Vittorio. xe2x80x9cSynthesis of 7-deoxy- and 7,10-dideoxytaxol via radical intermediatesxe2x80x9d. J. Org. Chem., 58(19), 5028-9, 1993. Chaudhary, Ashok G.; Rimoldi, John M.; Kingston, David G. I. xe2x80x9cModified taxols. 10. Preparation of 7-deoxytaxol, a highly bioactive taxol derivative, and interconversion of taxol and 7-epi-taxolxe2x80x9d. J. Org. Chem., 58(15). 3798-9, 1993. Matovic, Radomir; Saicic, Radomir N. xe2x80x9cAn efficient semisynthesis of 7-deoxypaclitaxel from taxinexe2x80x9d. Chem. Commun. (Cambridge), (16), 1745-1746, 1998. Chen, Shu Hui; Wei, Jian Mei; Vyas, Dolatrai M.; Doyle, Terrence W.; Farina, Vittorio. xe2x80x9cA facile synthesis of 7,10-dideoxytaxol and 7-epi-10-deoxytaxolxe2x80x9d. Tetrahedron Lett., 34(43), 6845-8, 1993. Poujol, Helene; Al Mourabit, Ali; Ahond, Alain; Poupat, Christiane; Potier, Pierre. xe2x80x9cTaxoids: 7-dehydroxy-10-acetyldocetaxel and novel analogs prepared from yew alkaloidsxe2x80x9d. Tetrahedron, 53(37), 12575-12594, 1997. Poujol, Helene; Ahond, Alain; Mourabit, Ali Al; Chiaroni, Angele; Poupat, Christiane; Potier, Claude Riche Et Pierre xe2x80x9cTaxoids: novel 7-dehydroxydocetaxel analogs prepared from yew alkaloidsxe2x80x9d. Tetrahedron, 53(14), 5169-5184, 1997. Wiegerinck, Peter H. G.; Fluks, Lizette; Hammink, Jeannet B.; Mulders, Suzanne J. E.; de Groot, Franciscus M. H.; van Rozendaal, Hendrik L. M.; Scheeren, Hans W. xe2x80x9cSemisynthesis of Some 7-Deoxypaclitaxel Analogs from Taxine Bxe2x80x9d. J. Org. Chem., 61(20), 7092-7100, 1996. Magnus, Philip; Booth, John; Diorazio, Louis; Donohoe, Timothy; Lynch, Vince; Magnus, Nicholas; Mendoza, Jose; Pye, Philip; Tarrant, James. xe2x80x9cTaxane diterpenes. 2: Synthesis of the 7-deoxy ABC taxane skeleton, and reactions of the A-ringxe2x80x9d. Tetrahedron, 52(45), 14103-14146, 1996. Magnus, Philip; Booth, John; Diorazio, Louis; Donohoe, Timothy; Lynch, Vince; Magnus, Nicholas; Mendoza, Jose; Pye, Philip; Tarrant, James. xe2x80x9cTaxane diterpenes. 2: Synthesis of the 7-deoxy ABC taxane skeleton and reactions of the A-ringxe2x80x9d. Tetrahedron, 52(45), 14103-14146, 1996. Tarrant, James Giles. xe2x80x9cStudies directed towards the total synthesis of 7-deoxytaxol: synthesis of the tricyclic core of taxolxe2x80x9d. (1995), 303 pp. CAN 125:168367; AN 1996:406672 CAPLUS. This invention relates to novel antitumor compounds represented by formula I, or pharmaceutical salts thereof wherein R1 is xe2x80x94CORz in which Rz is ROxe2x80x94, R, or heteroaryl, with the proviso that Rz must be heteroaryl unless either (1) Rg is Rk or R2 is xe2x80x94OCORb, or (2) Rg is Rk and R2 is xe2x80x94OC(O)Rb; Rg is C3-6 alkyl, C3-6 alkenyl, C3-6 alkynyl C3-6 cycloalkyl, Rk, or a radical of the formula xe2x80x94Wxe2x80x94Rx in which W is a bond, or xe2x80x94(CH2)txe2x80x94, in which t is one or 2; Rx is phenyl or heteroaryl, and furthermore Rx can be optionally substituted with one to three same or different C1-6alkyl, C1-6alkoxy, halogen or xe2x80x94CF3 groups; Rk is a radical of the formula xe2x80x94Wxe2x80x94Rs in which W is a bond, or xe2x80x94(CH2)txe2x80x94, in which t is one or 2; and Rs is phenyl substituted with hydroxy; R2 is xe2x80x94OCOR, H, OH, xe2x80x94OR, xe2x80x94OSO2R, xe2x80x94OCONRoR, xe2x80x94OCONHR, xe2x80x94OCOO(CH2)tR, xe2x80x94OCOOR, orxe2x80x94OCORb; R and Ro are independently C1-6 alkyl, C3-6 cycloalkyl, benzyl, or phenyl, optionally substituted with either one hydroxy group or with one to three same or different C1-6 alkyl, C1-6 alkoxy, halogen or xe2x80x94CF3 groups; and Rb is -morpholino, -nheptyl, xe2x80x94CH2OPh,xe2x80x94(2-nitrophenyl), xe2x80x94CHxe2x95x90CHPhenyl or xe2x80x94(2-aminophenyl). Another aspect of the present invention provides a method for inhibiting tumor in a mammalian host which comprises administering to said mammalian host an antitumor effective amount of a compound of formula I. The method of administration may be oral or intravenous or any other suitable route. Yet, another aspect of the present invention provides a pharmaceutical formulation which comprises an antitumor effective amount of a compound of formula I in combination with one or more pharmaceutically acceptable carriers, excipients, diluents or adjuvants. Yet, another aspect of the present invention provides a process for preparing 7-deoxy taxanes or baccatins by hydrogneation of the corresponding 6,7-olefin taxane intermediates. In the application, unless otherwise specified explicitly or in context, the following definitions apply. In this application, the symbols once defined retain the same meaning throughout the application, until they are redefined. The numbers in the subscript after the symbol xe2x80x9cCxe2x80x9d define the number of carbon atoms a particular group can contain. For example xe2x80x9cC1-6 alkylxe2x80x9d means a straight or branched saturated carbon chain having from one to six carbon atoms; examples include methyl, ethyl, n-propyl, isopropyl, n-butyl, sec-butyl, isobutyl, t-butyl, n-pentyl, sec-pentyl, isopentyl, and n-hexyl. Depending on the context, xe2x80x9cC1-6 alkylxe2x80x9d can also refer to C1-6alkylene which bridges two groups; examples include propane-1,3-diyl, butane-1,4-diyl, 2-methyl-butane-1,4-diyl, etc. xe2x80x9cC2-6 alkenylxe2x80x9d means a straight or branched carbon chain having at least one carbon-carbon double bond, and having from two to six carbon atoms; examples include ethenyl, propenyl, isopropenyl, butenyl, isobutenyl, pentenyl, and hexenyl. Depending on the context, xe2x80x9cC2-6 alkenylxe2x80x9d can also refer to C2-6 alkenediyl which bridges two groups; examples include ethylene-1,2-diyl (vinylene), 2-methyl-2-butene-1,4-diyl, 2-hexene-1,6-diyl, etc. xe2x80x9cC2-6 alkynylxe2x80x9d means a straight or branched carbon chain having at least one carbon-carbon triple bond, and from two to six carbon atoms. examples include ethynyl, propynyl, butynyl, and hexynyl. As used herein t-butyloxy and t-butoxy are used interchangeably. xe2x80x9cArylxe2x80x9d means aromatic hydrocarbon having from six to ten carbon atoms; examples include phenyl and naphthyl. xe2x80x9cSubstituted arylxe2x80x9d means aryl independently substituted with one to five (but preferably one to three) groups selected from C1-6 alkanoyloxy, hydroxy, halogen, C1-6 alkyl, trifluoromethyl, C1-6 alkoxy, aryl, C2-6 alkenyl, C1-6 alkanoyl, nitro, amino, cyano, azido, C1-6 alkylamino, di-C1-6 alkylamino, and amido. xe2x80x9cHalogenxe2x80x9d means fluorine, chlorine, bromine, and iodine. xe2x80x9cHeteroarylxe2x80x9d means a five- or six-membered aromatic ring containing at least one and up to four non-carbon atoms selected from oxygen, sulfur and nitrogen. Examples of heteroaryl include thienyl, furyl, pyrrolyl, imidazolyl, pyrazolyl, thiazolyl, isothiazolyl, oxazolyl, isoxazolyl, triazolyl, thiadiazolyl, oxadiazolyl, tetrazolyl, thiatriazolyl, oxatriazolyl, pyridyl, pyrimidyl, pyrazinyl, pyridazinyl, triazinyl, tetrazinyl, and like rings xe2x80x9cHydroxy protecting groupsxe2x80x9d include, but are not limited to, ethers such as methyl, t-butyl, benzyl, p-methoxybenzyl, p-nitrobenzyl, allyl, trityl, methoxymethyl, methoxyethoxymethyl, ethoxyethyl, 1-methyl-1-methoxyethyl, tetrahydropyranyl, tetrahydrothiopyranyl, dialkylsilylethers, such as dimethylsilyl ether, and trialkylsilyl ethers such as trimethylsilyl ether, triethylsilyl ether, and t-butyldimethylsilyl ether, dialkyl alkoxy silyl ethers such as diisopropyl methoxy silyl ethers; esters such as benzoyl, acetyl, phenylacetyl, formyl, mono-, di-, and trihaloacetyl such as chloroacetyl, dichloroacetyl, trichloroacetyl, trifluoroacetyl; and carbonates such as methyl, ethyl, 2,2,2-trichloroethyl, allyl, benzyl, and p-nitrophenyl. Additional examples of hydroxy protecting groups may be found in standard reference works such as Greene and Wuts, Protective Groups in Organic Synthesis, 3rd Ed., 1999, John Wiley and Sons, and McOmie; and Protective Groups in Organic Chemistry, 1975, Plenum Press. xe2x80x9cPhxe2x80x9d means phenyl; xe2x80x9ciprxe2x80x9d means isopropyl; The substituents of the substituted alkyl, alkenyl, alkynyl, aryl, and heteroaryl groups and moieties described herein, may be alkyl, alkenyl, alkynyl, aryl, heteroaryl and/or may contain nitrogen, oxygen, sulfur, halogens and include, for example, lower alkoxy such as methoxy, ethoxy, butoxy, halogen such as chloro or fluoro, nitro, amino, and keto. A preferred embodiment are compounds I, or pharmaceutically acceptable salts thereof in which R2 is xe2x80x94OC(O)Rb; and Rg is phenyl, 2-furyl, 2-thienyl C3-6 alkyl, C3-6 alkenyl, C3-6 cycloalkyl,or Rs; where t=0 and Rs is parahydroxyphenyl; and Rz is tBuOxe2x80x94, phenyl, or 2-Furyl. Another preferred embodiment are compounds I, or pharmaceutically acceptable salts thereof in which R2 is xe2x80x94OCOR, H, OH, xe2x80x94OR, or xe2x80x94OCOOR; and Rg is Rs; and Rz is C1-6alkyloxy, phenyl, or heteroaryl. An even more preferred embodiment are compounds I, or pharmaceutically acceptable salts thereof in which R2 is hydrogen, hydroxy, or acetyloxy; Rg is parahydroxyphenyl; and R1 is C3-6alkyloxycarbonyl. Another preferred embodiment are compounds I, or pharmaceutically acceptable salts thereof in which Rz is 2-furyl, 3-furyl, 2-thienyl, or 3-thienyl; R2 is hydrogen, hydroxy or acetyloxy; and Rg is phenyl, 2-furyl, 2-thienyl C3-6 alkyl, C3-6 alkenyl, C3-6 cycloalkyl, or Rk where t=0 and Rs is parahydroxyphenyl; A most preferred embodiment are compounds I, or pharmaceutically acceptable salts thereof in which Rz is 2-furyl or 3-furyl; and R2 is acetyloxy; and Rg is phenyl, C3-6 alkyl, or C3-6 cycloalkyl; The new products that have the general formula I display a significant inhibitory effect with regard to abnormal cell proliferation, and have therapeutic properties that make it possible to treat patients who have pathological conditions associated with an abnormal cell proliferation. The pathological conditions include the abnormal cellular proliferation of malignant or non-malignant cells in various tissues and/or organs, including, non-limitatively, muscle, bone and/or conjunctive tissues; the skin, brain, lungs and sexual organs; the lymphatic and/or renal system; mammary cells and/or blood cells; the liver, digestive system, and pancreas; and the thyroid and/or adrenal glands. These pathological conditions can also include psoriasis: solid tumors; ovarian, breast, brain, prostate, colon, stomach, kidney, and/or testicular cancer, Karposi""s sarcoma; cholangiocarcinoma; choriocarcinoma: neuroblastoma; Wilm""s tumor, Hodgkin""s disease; melanomas; multiple myelomas; chronic lymphocytic leukemias; and acute or chronic granulocytic lymphomas. The novel products in accordance with the invention are particularly useful in the treatment of non-Hodgkin""s lymphoma, multiple myeloma, melanoma, and ovarian, urothelial, oesophageal, lung, and breast cancers. The products in accordance with the invention can be utilized to prevent or delay the appearance or reappearance, or to treat these pathological conditions. In addition, the compounds of formula I are useful in treating and/or preventing polycystic kidney diseases (PKD) and rheumatoid arthritis. The compounds of this invention may also be useful for the treatment of Alzheimer""s disease. While some of the products of general formula I are of interest due to advantages over commercial taxanes following iv administration others are of interest due to their unique properties after oral administration. The compounds of this invention can be made by techniques from the conventional organic chemistry repertoire. Schemes I-V, which depict processes that compounds within the scope of formula I can be made, are only shown for the purpose of illustration and are not to be construed as limiting the processes to make the compounds by any other methods. A compound of formula I may be produced by the processes as depicted in Schemes I-IV which follow. The methods can be readily adapted to variations in order to produce compounds within the scope of formula but not specifically disclosed. Further variations of the methods to produce the same compounds in somewhat different fashion will also be evident to one skilled in the art. One of the ways the compounds of this invention can be made is by the general method which shown is Scheme I. In Step (a) of the scheme, azetidinone IV is reacted with a compound of formula II (a baccatin III derivative(copyright). The general class of azetidinones (xcex2-lactams) of formula IV are well known. Methods for preparing suitably substituted xcex2-lactams can be found in U.S. Pat. No. 5,175,315, European patent application 0 590 267 A2, the other U.S. patents or literature mentioned above, or references therein by Ojima et al. in Tetrahedron, 48, No. 34, pp 6985-7012 (1992); Journal of Organic Chemistry, 56, pp 1681-1683 (1991); and Tetrahedron Letters, 33. No. 39, pp 5737-5740 (1992); by Brieva et al. in J. Org. Chem., 58, pp 1068-1075; by Palomo et al. in Tetrahedron Letters, 31, No. 44, pp 6429-6432 (1990); and in Rey, Allan W.; Droghini, Robert; Douglas, James L.; Vemishetti, Purushotham; Boettger, Susan D.; Racha, Saibaba; Dillon, John L. Can. J. Chem. 72(10), 2131-6 (1994). All disclosures are herein incorporated by reference in their entirety. The methods that can be adapted to variations in order to produce other azetidinones within the scope of formula IV, but not specifically disclosed herein or in the above references or reported elsewhere, will be obvious to anyone skilled in the art. The baccatin III derivatives (II) can be attached to a sidechain using any of the methodology which is now already well known in the art. The many references cited in this invention disclosure and Tetrahedron, 48, No. 34, pp 6985-7012 (1992) describe processes whereby the class of azetidinones of formula IV are reacted with (C)13-hydroxy group of baccatin III derivatives or metal alkoxide thereof to afford taxane analogues with a variety of (C)13-side chains. In Step (a) of Scheme I, it is advantageous to convert the hydroxy group on the (C)13-carbon into a metal alkoxide before the coupling. The formation of a desired metal alkoxide may be done by reacting a compound of formula II with a strong metal base, such as lithium diisopropylamide, C1-6 alkyllithium, lithium bis(trimethylsilyl)amide, phenyllithium, sodium hydride, potassium hydrides lithium hydride, or the like base. For example when lithium alkoxide is desired, a compound of formula II may be reacted with n-butyllithium in an inert solvent such as tetrahydrofuran. For examples of attachment of substituted baccatins with a suitably substituted lactam via the method of Holton see U.S. Pat. No. 5,175,315; U.S. Pat. No. 5,466,834; U.S Pat. No. 5,229,526; U.S. Pat. No. 5,274,124; U.S. Pat. No. 5,243,045; U.S. Pat. No. 5,227,400; U.S. Pat. No. 5,336,785, and U.S. Pat. No. 5,254,580, U.S. Pat. No. 5,294,637, or EP 0 590 267 A2. Some examples of using xcex2-lactams to prepare other substituted taxane derivatives are n PCT WO94/14787. This patent also describes an alternative method for attaching substituted isoserine sidechains to substituted baccatins which would be applicable for the compounds of this invention. This same alternate method is described in another publication by Kingston et. al. Tetrahedron Lett. (1994), 35(26), 4483-4. Further information on alternative methods to attach sidechains to baccatins are contained in Thottathil, et.al Eur. Pat. AppI. EP 735036 published Oct. 2, 1996. The numbering on baccatin III derivative of formula II as used in this application is as follows: As used herein, R3 is a conventional hydroxy protecting group. Conventional hydroxy protecting groups are moieties which can be employed to block or protect a hydroxy function, and they are well known to those skilled in the art. Preferably, said groups are those which can be removed by methods which result in no appreciable destruction to the remaining portion of the molecule. Examples of such readily removable hydroxy protecting groups include chloroacetyl, methoxymethyl, 1-methyl-1-methoxyethyl, tetrahydropyranyl, tetrahydrothiopyranyl, dialkylsilylethers, such as dimethylsilyl ether, and trialkylsilyl ethers such as trimethylsilyl ether, triethylsilyl ether, and t-butyidimethylsily ether, dialkyl alkoxy silyl ethers such as diisopropyl methoxy silyl ethers; 2,2,2-trichloroethyoxymethyl, 2,2,2-trichloroethyloxycarbonyl (or simply trichloroethyloxycarbonyl), benyloxycarbonyl and the like. Other suitable protecting groups which may be used are found in Chapter 2 of xe2x80x9cProtecting Groups in Organic Synthesisxe2x80x9d, 3rd Ed., by Theodora W. Greene and Peter G. M. Wuts (1999, John Wiley and Sons). A protecting group for formula IV compounds which has been used frequently in the literature is trialkylsilyl. In Step (b), the protecting group R3 is removed. If R3 equals triC1-6alkylsilyl, such as triethylsilyl, it can be removed with fluoride ion or with mineral acid in alcohol or acetonitrile. The removal with fluoride ion is conducted in an inert solvent such as tetrahydrofuran, methylene chloride, 1,4-dioxane, DMF, chloroform, or in the like solvent; and the reaction medium may be buffered with a weak acid such as acetic acid. An example of mineral acid is hydrochloric acid. In compounds of this invention R2 may also be hydroxy. in compounds where R2 is hydroxy, a suitable protecting group must be utilized prior to sidechain cleavage or installed selectively on the C-10 hydroxy group prior to the coupling reaction. Trialkylsilyl, dialkylalkoxysilyl, CBz, or Troc protecting groups are suitable for this protecting group step and can be attached using methodology which is well known in the art. The protecting groups can ideally be removed simultaneously in step (b) or or in a separate deprotection step immediately preceding or following step (b). The simple 7-deoxy baccatin core 11 can be prepared as described in the previously mentioned U.S. patent, U.S. Pat. No. 5,478,854 by Farina et al. Alternatively, the desired 7-deoxy baccatin core can be obtained using the chemistry shown in Scheme II. One likely example of a starting material for such a scheme would be paclitaxel in which R=benzoyl, Rg=phenyl and R2=acetoxy. As shown in Scheme II, the starting material is a known taxane analog. The 2xe2x80x2 hydroxy group of a taxane analog with an intact sidechain is suitably protected to leave the most reactive hydroxy group at C-7. Compound 1 in Scheme I is protected at the 2xe2x80x2 hydroxy group at the sidechain. Step c describes the protection of the 2xe2x80x2 hydroxy group and uses as a 2xe2x80x2 tertbutyldimethylsilyl ether as an example. This protecting group is by now well known in the taxane art and has been described by several authors including Kingston and George. The example of compound 1 actually described utilizes this silyl protecting group at the 2xe2x80x2 position. Although this group is preferred, other protecting groups can be utilized. The preparation of intermediates arising from step c and step d are now well known in the art. The synthesis of the 7-trifluoromethanesulfonate (triflate) intermediate is shown in step d and is by now well known in the art. The preparation of 7-O triflates and their conversion into cyclopropane and olefin has been divulged by Johnson, R. A., et al., Taxol chemistry. 7-O-Triflates as precursors to olefins and cyclopropanes. Tetrahedron Letters, 1994. 35(43): p. 7893-7896 and by the same authors in WO 94/29288. The preferred synthesis utilizes DMAP as the base and triflic anhydride as the activating agent. Experimental details for the preparation of the olefin arising from step d are contained in U.S. Pat. No. 5,773,461. Hydrogenation of the olefin is carried out in step f to provide the 7-deoxy taxane intermediate. Many hydrogenation catalysts could be used for this hydrogenation reaction. Palladium based catalysts such as palladium on carbon or palladium hydroxide are suitable as well as Rhodium, Iridium, or platinum based catalysts. Solvents such as lower molecular weight alcohols are suitable for the reaction. Other inert solvents such as ethyl acetate used alone or as a cosolvent may also be utilized. The hydrogenation may be carried out from 1 to 5 atmospheres of hydrogen. The preferred conditions are using 10% palladium on carbon catalyst, in ethanol under 65 PSI of hydrogen. The reaction may be run until theoretical amounts of hydrogen are consumed or more typically for excess time such as 48 h or longer, Removal of the 2xe2x80x2 TBS protecting group in these compounds as depicted by step g, is effected by triethylamine trihydrofluoride in THF solvent. Other fluoride sources could also be utilized. For example tetrabutyl ammonium fluoride, pyridinium hydrofluoride, potassium fluoride, or cesium fluoride may find utility. The potassium fluoride may be utilized in combination with a complexing agent such as 18-crown-6 or the like to aid in desilylation. A solvent such as acetonitrile is typically used under these conditions. Other conditions such as mild aqueous hydrochloric acid and a cosolvent such as acetonitrile or THF may be useful for deprotection. The same conditions work equally are applicable for other silicon based protecting groups. Many of the schemes refer to a hydroxy protecting group, preferably a trialkylsilyl group. It is to be understood that hydroxy protecting group may be a carbonate or ester group xe2x80x94C(O)ORx or xe2x80x94C(O)Rx or substituted methyl, ethyl, or benzyl ethers. Thus when such a group is employed as a hydroxy protecting group, it may be removed to generate the free hydroxy protecting group. Many suitable protecting groups can be found in the book xe2x80x9cProtective Groups in Organic Synthesis: 3rd ed. by Thedora W. Greene and Peter G. M. Wuts Copyright 1999 by John Wiley and Sons Inc.xe2x80x9d Thus deprotection as shown in step g generates compounds I from nondeoxy taxanes. However, removal of the sidechain as shown in step h provides baccatin intermediates II which can be attached to a novel sidechain as shown in Scheme I to generate additional novel compounds I. As depicted in step h, reaction of I with tetrabutylammonium borohydride via the method of Magri et. al. in J. Org. Chem. 1986, 51, pp. 3239-3242 provides the substituted baccatin derivatives. For examples of the use of the Magri methodology to prepare other 7-substituted baccatins see U.S. Pat. No. 5,254,580 or U.S. Pat. No. 5,294.637. Another aspect of the invention involves the synthesis of compounds I with novel substituents R2 at the C-10 position. As shown in Scheme III, these compounds can be prepared by selective hydrolysis of a C-10 acetyl group of compounds I to generate compounds IV. Alternatively, compounds IV can be directly prepared as described in Scheme I by utilizing a C-10 protecting group on the baccatin core II and then deprotecting the protecting group after sidechain attachment. The selective deesterification of taxanes at the C-10 position via hydrazinolysis has been published: Datta, Apurba; Hepperle, Michael; Georg, Gunda I. Selective Deesterification Studies on Taxanes: Simple and Efficient Hydrazinolysis of C-10 and C-13 Ester Functionalities. J. Org. Chem. (1995), 60(3), 761-3. An alternate reference in the literature describes the use of basic hydrogen peroxide with similar results. Several references for the prepartion of C-10 analogs have appeared in the art and these are, Holton, Robert A.; Chai, Ki Byung. C-10 Taxane derivatives and pharmaceutical compositions containing them as antileukemia and antitumor agents. PCT Int. Appl. 60 pp WO 9415599 Jul. 21, 1994. Rao, K. V.; Bhakuni, R. S.; Oruganti, R. S. J. Med. Chem. 1995 38, 3411-3414. Kant, J.; O""Keeffe, W. S.; Chen, S-H.; Farina, V.; Fairchild, C.; Johnston, K.; Kadow, J. F; Long, B. H.; Vyas, D. A. Tetrahedron Letts. 1994, 35, 5543-5546. Ojima, I.; Slater, J. C.; Michaud, E.; Kuduk, S. D.; Bounaud, P-Y.; Vrignaud, P.; Bissery, M-C.; Veith, J. M. Pera, P. Bernacki. R. J. J. Med. Chem. 1996, 39, 3889-3896. Using the methodology described in Scheme III or the abovementioned art, C-10 substituents covered by this invention were installed. A base is normally required in Step (L) to initially deprotonate a proton from C-10 hydroxy group. A particularly useful base for Step (a) is a strong base such as C1-6alkyllithium, lithium bis(trimethylsily)amide, or the like base used in about 1.1 equivalent amount. The deprotonation by base is preferably conducted in aprotic solvent, such as tetrahydrofuran, at low temperature, usually in the range from xe2x88x9240xc2x0 to 0xc2x0 C. The substituents are attached to the C-10 deprotonated hydroxyl group (alkoxide)in step L using RfC(O)Cl or the corresponding acid bromide or anhydride. Compounds III are then converted to I by the methodology described previously. An alternative preparation of compounds I is depicted in Scheme IV. The preparation of the amine intermediate VI is described in the examples and is carried out by methodology which is well known in the art. The amine intermediate VI is dissolved in an inert solvent such as ethyl acetate and a base such as sodium bicarbonate is added. A stoichiometric or slightly greater amount of most preferably an acid chloride or alternatively acid anhydride is added to provide compound I directly. The specific examples that follow illustrate the syntheses of the compounds of the instant invention, and is not to be construed as limiting the invention in sphere or scope. The method may be adapted to variations in order to produce the compound embraced by this invention but not specifically disclosed. Further, variations of the methods to produce the same compound in somewhat different manner will also be evident to one skilled in the art. In the following experimental procedures, all temperatures are understood to be in Centigrade (C) when not specified. The nuclear magnetic resonance (NMR) spectral characteristics refer to chemical shifts (d) expressed in parts per million (ppm) versus tetramethylsilane (TMS) as reference standard. The relative area reported for the various shifts in the proton NMR spectral data corresponds to the number of hydrogen atoms of a particular functional type in the molecule. The nature of the shifts as to multiplicity is reported as broad singlet (bs or br s), broad doublet (bd or br d), broad triplet (bt or br t), broad quartet (bq or br q), singlet (s), multiplet (m), doublet (d), quartet (q), triplet (t), doublet of doublet (dd), doublet of triplet (dt), and doublet of quartet (dq). The solvents employed for taking NMR spectra are acetone-d6 (deuterated acetone). DMSO-d6 (perdeuterodimethylsulfoxide), D2O (deuterated water), CDCl3 (deuterochloroform) and other conventional deuterated solvents. The infrared (IR) spectral description include only absorption wave numbers (cmxe2x88x921) having functional group identification value Celite is a registered trademark of the Johns-Manville Products Corporation for diatomaceous earth. Silica gel used in the following experimentals is silica gel 60 with a particle size 230-400 mesh obtained from EM Separations Technology. The abbreviations used herein are conventional abbreviations widely employed in the art. Some of which are: DAB (deacetylbaccatin III); MS (mass spectrometry); HRMS (high resolution mass spectrometry); Ac (acetyl); Ph (phenyl); v/v (volume/volume); FAB (fast atom bombardment); NOBA (m-nitrobenzyl alcohol); min (minute(s)); h or hr(s) (hour(s)); DCC (1,3-dicyclohexylcarbodiimide); BOC (t-butoxycarbonyl); CBZ or Cbz (benzyloxycarbonyl); Bn (benzyl); Bz (benzoyl); Troc (2,2,2-trichloroethyloxycarbonyl), DMS (dimethylsilyl), TBAF (tetrabutylammonium fluoride), DMAP (4-dimethylaminopyridine); TES (triethylsilyl); DMSO (dimethylsulfoxide); THF (tetrahydrofuran); HMDS (hexamethyidisilazane); MeOTf (methyltriflate); NMO (morpholine-N-oxide); (DHQ)2PHAL (hydroquinine 1,4-phthalazinediyl diether). Tf=triflate=trifluoromethanesulfonate; LRMS (low resolution mass spectrometry); ESI (electrospray ionization); TEMPO (2,2,6,6-tetramethyl-1-piperidinyloxy, free radical); DBU (diazobicycloundecene); MOMCl (chloromethyl methyl ether); Ac (acetyl); (Ar, aryl); Bz (benzoyl); Cbz (benzyloxycarbonyl); DCI (desorption chemical ionization); DMF (dimethylformamide); DMSO (dimethyl sulfoxide); FAB (fast atom bombardment); H (hour(s)); HRMS (high resolution mass spectrometry); LiHMDS (lithium hexamethyidisilazane or lithium bis(trimethylsilyl)amide); HMDS (hexamethyldisilazane); i-PrOH (isopropylalcohol): min (minute(s)); MS (mass spectrometry); Ph (phenyl); rt (room temperature); tBu (tertiarybutyl); TES (triethylsilyl), THF (tetrahydrofuran)TLC (thin layer chromatography) Y (yield) TPAP (tetrapropyl ammonium peruthenate); MCPBA (meta chloroperoxy benzoic acid); LDA (lithium diisopropyl amide); DMF (dimethylformamide); TBS (tert-butyl-dimethylsilyl); 18-crown-6 (1, 4, 7, 10, 13, 16-hexaoxacyclo-octadecane); DEAD (diethylazodicarboxylate).
/* * Copyright 2000-2013 JetBrains s.r.o. * Copyright 2014-2014 AS3Boyan * Copyright 2014-2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.intellij.plugins.haxe.config.sdk.ui; import com.intellij.openapi.fileChooser.FileChooser; import com.intellij.openapi.fileChooser.FileChooserDescriptor; import com.intellij.openapi.ui.TextFieldWithBrowseButton; import com.intellij.openapi.util.io.FileUtil; import com.intellij.openapi.vfs.VirtualFile; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; /** * @author: Fedor.Korotkov */ public class HaxeAdditionalConfigurablePanel { private TextFieldWithBrowseButton myNekoTextField; private JPanel myPanel; private JLabel myNekoLabel; private TextFieldWithBrowseButton myHaxelibTextField; private JLabel myHaxelibLabel; private JPanel myCompletionPanel; private JLabel myCompletionLabel; private JCheckBox myUseCompilerCheckBox; private JCheckBox myRemoveDuplicatesCheckbox; private JTextArea myNoteWhenUsingCompilerTextArea; public HaxeAdditionalConfigurablePanel() { myNekoTextField.getButton().addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, false, false, false); final VirtualFile file = FileChooser.chooseFile(descriptor, myPanel, null, null); if (file != null) { setNekoBinPath(FileUtil.toSystemIndependentName(file.getPath())); } } }); myNekoLabel.setLabelFor(myNekoTextField.getTextField()); myHaxelibTextField.getButton().addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, false, false, false); final VirtualFile file = FileChooser.chooseFile(descriptor, myPanel, null, null); if (file != null) { setHaxelibPath(FileUtil.toSystemIndependentName(file.getPath())); } } }); myHaxelibLabel.setLabelFor(myHaxelibTextField.getTextField()); myCompletionLabel.setLabelFor(myUseCompilerCheckBox); // Text area for the note. myNoteWhenUsingCompilerTextArea.setFocusable(false); myNoteWhenUsingCompilerTextArea.setOpaque(true); myNoteWhenUsingCompilerTextArea.setBorder(BorderFactory.createEmptyBorder()); myNoteWhenUsingCompilerTextArea.setBackground(new Color(myCompletionLabel.getBackground().getRGB())); Font labelFont = myCompletionLabel.getFont(); myNoteWhenUsingCompilerTextArea.setFont(new Font(labelFont.getName(), labelFont.getStyle(), labelFont.getSize())); } public JComponent getPanel() { return myPanel; } public void setNekoBinPath(String path) { myNekoTextField.setText(FileUtil.toSystemDependentName(path)); } public String getNekoBinPath() { return FileUtil.toSystemIndependentName(myNekoTextField.getText()); } public void setHaxelibPath(String path) { myHaxelibTextField.setText(FileUtil.toSystemDependentName(path)); } public String getHaxelibPath() { return FileUtil.toSystemIndependentName(myHaxelibTextField.getText()); } public void setUseCompilerCompletionFlag(boolean state) { myUseCompilerCheckBox.setSelected(state); } public boolean getUseCompilerCompletionFlag() { return myUseCompilerCheckBox.isSelected(); } public void setRemoveCompletionDuplicatesFlag(boolean state) { myRemoveDuplicatesCheckbox.setSelected(state); } public boolean getRemoveCompletionDuplicatesFlag() { return myRemoveDuplicatesCheckbox.isSelected(); } }
High clinical and molecular response rates with fludarabine, cyclophosphamide and mitoxantrone in previously untreated patients with advanced stage follicular lymphoma Combination chemotherapy with fludarabine, cyclophosphamide and mitoxantrone results in high complete and molecular response rates with prolonged response duration in previously untreated patients with advanced stage follicular lymphoma. Background Purine analogs have demonstrated significant activity in patients with follicular lymphoma. The aim of this study was to analyze the efficacy and toxicity of a fludarabine combination as first-line treatment in patients with advanced-stage disease. Design and Methods This is a phase II trial including 120 patients (≤65 years) treated with 6 cycles of fludarabine, cyclophosphamide and mitoxantrone (FCM). Molecular response was assessed by q-PCR in peripheral blood. Results Of 119 patients with an assessable response, complete response was achieved in 99 (83%) partial response in 13 (11%) and 7 (6%) did not respond. After treatment, 37 out of 46 (81%) patients achieved molecular response. After a median follow-up of 3.9 years, 32 patients have relapsed. The 5-year progression-free survival was 58% (95% confidence interval: 4769). Variables associated with a shorter progression-free survival were a poor performance status (ECOG≥2), ≥2 extranodal sites and high 2-microglobulin. Sixteen episodes of grade 34 infections were observed. Two patients died during therapy (of progressive multifocal leukoencephalopathy and bronchoaspiration respectively). No late toxicity has been observed. Twelve patients died during follow-up (9 after relapse, 2 during chemotherapy, 1 in complete remission after surgery for meningioma). The overall survival at 5 years was 89%. ECOG ≥2 and high 2-microglobulin were associated with a shorter survival. Conclusions FCM results in high complete and molecular response rates, with prolonged response duration in younger patients with advanced-stage follicular lymphoma. The combination of FCM with rituximab as front-line treatment warrants further investigation.
Mueller Not Seeking Jail Time for Flynn, Cites “Substantial Assistance” | Democracy Now! In a sentencing memo filed Tuesday evening, special counsel Robert Mueller said he is not seeking jail time for former Trump national security adviser Michael Flynn, citing “substantial assistance” given to the ongoing probe into Russian meddling in the 2016 election and at least one other investigation. Large portions of the memo were heavily redacted, meaning Mueller’s team is continuing to hide details of what it has uncovered. The memo also references Flynn’s cooperation in a separate, unidentified criminal investigation, details of which were blacked out.
<reponame>nadeemmar/react-native-pager<gh_stars>0 import React from 'react'; import { ViewStyle } from 'react-native'; import { iPageInterpolation } from './pager'; interface iPagination { children: React.ReactNode; pageInterpolation: iPageInterpolation; style?: ViewStyle; } declare function Pagination({ children, pageInterpolation, style, }: iPagination): JSX.Element; interface iSlider { numberOfScreens: number; style: ViewStyle; } declare function Slider({ numberOfScreens, style }: iSlider): JSX.Element; declare function Progress({ numberOfScreens, style }: iSlider): JSX.Element; export { Pagination, Slider, Progress };
<gh_stars>0 import { trim } from './trim' export function isEqual<T extends Record<string, unknown>>( reference?: T, partial?: Partial<T>, ): partial is T { if (!reference || !partial) { return false } return Object.keys(reference).every((k) => { let a = reference[k] let b = partial[k] as string | undefined if (typeof a === 'string') a = trim(a) if (typeof b === 'string') b = trim(b) return a === b }) } export function isNotEqual<T extends Record<string, unknown>>(reference?: T, partial?: Partial<T>) { return !isEqual(reference, partial) }
/** @addtogroup Consumers */ /*@{*/ #ifndef OZ_MP4_FILE_OUTPUT_H #define OZ_MP4_FILE_OUTPUT_H #include "../base/ozFeedConsumer.h" #include "../libgen/libgenThread.h" #include "../base/ozFfmpeg.h" /// /// Video generation parameters /// struct VideoParms { public: uint16_t mWidth; uint16_t mHeight; FrameRate mFrameRate; public: VideoParms( uint16_t width=320, uint16_t height=240, const FrameRate &frameRate=FrameRate(1,25) ) : mWidth( width ), mHeight( height ), mFrameRate( frameRate ) { } uint16_t width() const { return( mWidth ); } uint16_t height() const { return( mHeight ); } FrameRate frameRate() const { return( mFrameRate ); } }; struct AudioParms { public: AVSampleFormat mSampleFormat; ///< The ffmpeg sample format of this frame uint32_t mBitRate; uint32_t mSampleRate; ///< Sample rate (samples per second) of this frame uint8_t mChannels; ///< Number of audio channels public: AudioParms( AVSampleFormat sampleFormat=AV_SAMPLE_FMT_S16, uint32_t bitRate=22050, uint32_t sampleRate=16000, uint8_t channels=1 ) : mSampleFormat( sampleFormat ), mBitRate( bitRate ), mSampleRate( sampleRate ), mChannels( channels ) { } AVSampleFormat sampleFormat() const { return( mSampleFormat ); } uint16_t bitRate() const { return( mBitRate ); } uint32_t sampleRate() const { return( mSampleRate ); } uint8_t channels() const { return( mChannels ); } }; //class AudioVideoParms : public AudioParms, public VideoParms //{ //AudioVideoParms( PixelFormat pixelFormat, uint16_t width=320, uint16_t height=240, const FrameRate &frameRate=FrameRate(1,25), uint32_t bitRate=90000, uint8_t quality=70 ) : //} /// /// Consumer that just just writes received video frames to files on the local filesystem. /// The file will be written to the given location and be called <instance name>-<timestamp>.<format> /// class Mp4FileOutput : public DataConsumer, public Thread { CLASSID(Mp4FileOutput); protected: std::string mLocation; ///< Path to directory in which to write movie file std::string mExtension; ///< File extension for movie file uint32_t mMaxLength; ///< Maximum length of each movie file, files will be timestamped in name VideoParms mVideoParms; ///< Video parameters AudioParms mAudioParms; ///< Audio parameters protected: AVFormatContext *openFile( AVOutputFormat *outputFormat ); void closeFile( AVFormatContext *outputContext ); int run(); public: Mp4FileOutput( const std::string &name, const std::string &location, uint32_t maxLength, const VideoParms &videoParms, const AudioParms &audioParms ) : DataConsumer( cClass(), name, 2 ), Thread( identity() ), mLocation( location ), mExtension( "mp4" ), mMaxLength( maxLength ), mVideoParms( videoParms ), mAudioParms( audioParms ) { } ~Mp4FileOutput() { } }; #endif // OZ_MP4_FILE_OUTPUT_H /*@}*/
// AddGenesisValidatorCmd returns add-genesis-validator cobra Command. func AddGenesisValidatorCmd( mbm module.BasicManager, smbh ValidatorMsgBuildingHelpers, defaultNodeHome, defaultCLIHome string, ) *cobra.Command { ipDefault, _ := server.ExternalIP() fsCreateValidator, flagCert, _, defaultsDesc := smbh.CreateValidatorMsgHelpers(ipDefault) cmd := &cobra.Command{ Use: "add-genesis-validator", Short: "Generate a genesis tx to create a validator", Args: cobra.NoArgs, Long: fmt.Sprintf( "This command is an alias of the 'tx validator create' command'.\n\n"+ "It creates a genesis transaction to create a validator.\n"+ "The following default parameters are included:\n %s", defaultsDesc, ), RunE: func(cmd *cobra.Command, args []string) error { clientCtx := client.GetClientContextFromCmd(cmd) clientCtx, err := client.ReadTxCommandFlags(clientCtx, cmd.Flags()) if err != nil { return err } depCdc := clientCtx.JSONMarshaler cdc := depCdc.(codec.Marshaler) serverCtx := server.GetServerContextFromCmd(cmd) config := serverCtx.Config nodeKey, _, err := genutil.InitializeNodeValidatorFiles(config) if err != nil { return errors.Wrap(err, "failed to initialize node validator files") } nodeID := string(nodeKey.ID()) genDoc, err := tmtypes.GenesisDocFromFile(config.GenesisFile()) if err != nil { return errors.Wrapf(err, "failed to read genesis doc file %s", config.GenesisFile()) } var genesisState map[string]json.RawMessage if err = json.Unmarshal(genDoc.AppState, &genesisState); err != nil { return errors.Wrap(err, "failed to unmarshal genesis state") } if err = mbm.ValidateGenesis(cdc, clientCtx.TxConfig, genesisState); err != nil { return errors.Wrap(err, "failed to validate genesis state") } viper.Set(flags.FlagHome, viper.GetString(flagClientHome)) smbh.PrepareFlagsForTxCreateValidator(config, nodeID, genDoc.ChainID, viper.GetString(flagCert)) TODO: Consider removing the manual setting of generate-only in favor of a 'gentx' flag in the create-validator command. viper.Set(flags.FlagGenerateOnly, true) txf := tx.NewFactoryCLI(clientCtx, cmd.Flags()). WithTxConfig(clientCtx.TxConfig). WithAccountRetriever(clientCtx.AccountRetriever) create a 'create-validator' message _, msg, err := smbh.BuildCreateValidatorMsg(clientCtx, txf) if err != nil { return errors.Wrap(err, "failed to build create-validator message") } if msg, ok := msg.(*node.MsgCreateValidator); ok { validatorGenState := node.GetGenesisStateFromAppState(cdc, genesisState) cert, err := cautil.ReadCertificateFromMem([]byte(msg.Certificate)) if err != nil { return errors.Wrap(err, "failed to convert certificate") } rootCert, err := cautil.ReadCertificateFromMem([]byte(validatorGenState.RootCert)) if err != nil { return errors.Wrap(err, "failed to convert root certificate") } if err = cert.VerifyCertFromRoot(rootCert); err != nil { return errors.Wrap(err, "invalid certificate, cannot be verified by root certificate") } pk, err := cautil.GetPubkeyFromCert(cert) if err != nil { return err } operator, err := sdk.AccAddressFromBech32(msg.Operator) if err != nil { return err } validatorGenState.Validators = append( validatorGenState.Validators, node.NewValidator( tmhash.Sum(msg.GetSignBytes()), msg.Name, msg.Description, pk, msg.Certificate, msg.Power, operator, ), ) validatorGenStateBz, err := cdc.MarshalJSON(&validatorGenState) if err != nil { return fmt.Errorf("failed to marshal validator genesis state: %w", err) } genesisState[node.ModuleName] = validatorGenStateBz } if err = mbm.ValidateGenesis(cdc, clientCtx.TxConfig, genesisState); err != nil { return errors.Wrap(err, "failed to validate genesis state") } appState, err := json.MarshalIndent(genesisState, "", " ") if err != nil { return err } genDoc.AppState = appState return genutil.ExportGenesisFile(genDoc, config.GenesisFile()) }, } cmd.Flags().String(flags.FlagHome, defaultNodeHome, "node's home directory") cmd.Flags().String(flagClientHome, defaultCLIHome, "client's home directory") cmd.Flags().String(flags.FlagOutputDocument, "", "write the genesis transaction JSON document to the given file instead of the default location") cmd.Flags().AddFlagSet(fsCreateValidator) cmd.Flags().String(flags.FlagFrom, "", "Name or address of private key with which to sign") cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|test)") _ = viper.BindPFlag(flags.FlagKeyringBackend, cmd.Flags().Lookup(flags.FlagKeyringBackend)) _ = cmd.MarkFlagRequired(flags.FlagName) _ = cmd.MarkFlagRequired(flags.FlagFrom) return cmd }
/** * @param messageString message, will be read as UTF-8 * @param keyString encryption key * @return encrypted string in base-64 format */ public static String encrypt(String messageString, String keyString) { checkNotNull(messageString, "Provided message is null"); checkArgument(isNotEmpty(keyString), "Provided key is empty"); byte[] key = createKey(keyString); byte[] message = messageString.getBytes(UTF8_CHARSET); byte[] encrypted = encrypt(message, key); byte[] res = Base64.encode(encrypted); return new String(res, UTF8_CHARSET); }
<reponame>SuperConfuserUser/javascript-sdk import { DistributedFirewallRestorePointDetailsJson } from './__json__/distributed-firewall-restore-point-details-json'; import { DistributedFirewallLayer3 } from './distributed-firewall-layer3'; /* istanbul ignore next: autogenerated */ export class DistributedFirewallLayer3RestorePointDetails { constructor(private _json: DistributedFirewallRestorePointDetailsJson) { } /** * Get description. * @returns {string} */ get description(): string { return this._json.description; } /** * Get restore point time. * @returns {number} */ get restorePointTime(): number { return this._json.restore_point_time; } /** * Get data. * @returns {DistributedFirewallLayer3} */ get data(): DistributedFirewallLayer3 { return new DistributedFirewallLayer3(this._json.data); } /** * Get the json representation of this class. * @returns {DistributedFirewallRestorePointDetailsJson} */ get json(): DistributedFirewallRestorePointDetailsJson { return Object.assign({}, this._json); } /** * Get the string representation of this class. * @returns {string} */ toString(): string { return JSON.stringify(this._json, undefined, 2); } }
package controller import ( "encoding/json" "net/http" "github.com/gorilla/mux" "github.com/urfave/negroni" ) func (e *env) setupRouter() *negroni.Negroni { router := mux.NewRouter().StrictSlash(true) router.HandleFunc("/health", e.healthCheck) // user operations userRouter := router.PathPrefix("/user").Subrouter() userRouter.HandleFunc("/", e.createUser).Methods("POST") userRouter.HandleFunc("/", e.getUser).Methods("GET") // game operations gameRouter := router.PathPrefix("/game").Subrouter() gameRouter.HandleFunc("/", e.createGame).Methods("POST") // gameRouter.HandleFunc("/", e.createGame).Methods("POST") gameRouter.HandleFunc("/leaderboard", e.getGameLeaderboard).Methods("GET") n := negroni.Classic() n.UseHandler(router) return n } // health check endpoint func (e *env) healthCheck(w http.ResponseWriter, r *http.Request) { json.NewEncoder(w).Encode(map[string]bool{"ok": true}) }
1. Field of the Invention The present invention relates to a digital TV (television receiver), and more particularly to a digital TV and a driving method thereof which enable a user to view the digital TV without interruption even if the presently used operating system is in an abnormal state. 2. Description of the Related Art Web boxes or Internet TVs mainly use Windows™ or Linux™ as their operating system for the convenience of users. However, if the operating system becomes unstable, the system should be rebooted. If the operating system is rebooted as above, all application programs, which are operating in the present system, should be terminated. In order to solve this problem, the existing digital TV receivers heighten their reliability by using an embedded operating system having a high stability. However, such an embedded operating system has the drawbacks in that it cannot provide a user-friendly interface. Also, the embedded operation system has many difficulties in implementing functions, which electric home appliances should necessarily have, by a web browser and so on. Accordingly, in order to solve the problems, many manufacturers have developed many PC-based digital TVs having the operating system such as Windows™ or Linux™. However, if many applications are simultaneously driven under the above-described operating system, the reliability of the operating system may deteriorate. That is, due to an error of the operating system, the operation of the PC system may be stopped. As a result, if the rebooting of the PC causes any problem in a receiving part of the digital TV, the use value of the PC-based digital TV may deteriorate. Accordingly, even if the operating system operates in error, it is required for the user to continuously view the PC-based digital TV. In the PC-based digital TV operating system, due to the error of the applications programs, the system is stopped more frequently than the embedded operating system. Accordingly, if the receiving part of the digital TV can be controlled even though the system is stopped due to the error of the application programs, the viewer will be able to view the digital TV without interruption.
// Test environment with valid suggest and search URL. class SearchProviderTest : public BaseSearchProviderTest { public: SearchProviderTest( const absl::optional<bool> warm_up_on_focus = absl::nullopt, const bool command_line_overrides = false) : BaseSearchProviderTest(warm_up_on_focus, command_line_overrides) {} void SetUp() override { CustomizableSetUp( "http://defaultturl/{searchTerms}", "http://defaultturl2/{searchTerms}"); } }
Value of 3-T Magnetic Resonance Imaging in Local Staging of Prostate Cancer Whole-body 3-T magnetic resonance (MR) scanners are presently becoming more widely available in the clinical setting. The increased signal-to-noise ratio inherent at 3 T as compared with 1.5 T offers potentials for clinical MR imaging such as shortening of imaging time and increased spatial, spectral, or temporal resolution or a combination of these. As a result, high-in-plane-resolution anatomic MR images can be obtained. This review will address the advantages and drawbacks of local staging with MR imaging at 3 T in patients with prostate cancer. Furthermore, the current diagnostic performance of prostate MR imaging in staging prostate cancer at high field strength is discussed.
<filename>src/main/java/gigaherz/packingtape/PackingTapeMod.java<gh_stars>0 package gigaherz.packingtape; import com.google.common.collect.ImmutableList; import com.mojang.datafixers.util.Pair; import gigaherz.packingtape.tape.PackagedBlock; import gigaherz.packingtape.tape.PackagedBlockEntity; import gigaherz.packingtape.tape.TapeItem; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.data.*; import net.minecraft.data.loot.BlockLootTables; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraft.item.Items; import net.minecraft.tileentity.TileEntityType; import net.minecraft.util.ResourceLocation; import net.minecraft.world.storage.loot.*; import net.minecraft.world.storage.loot.functions.CopyName; import net.minecraft.world.storage.loot.functions.CopyNbt; import net.minecraftforge.common.crafting.conditions.IConditionBuilder; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.ModLoadingContext; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.config.ModConfig; import net.minecraftforge.fml.event.lifecycle.GatherDataEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import java.util.List; import java.util.Map; import java.util.function.BiConsumer; import java.util.function.Consumer; import java.util.function.Supplier; import java.util.stream.Collectors; @Mod(PackingTapeMod.MODID) public class PackingTapeMod { public static final String MODID = "packingtape"; private static final DeferredRegister<Block> BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, MODID); private static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, MODID); private static final DeferredRegister<TileEntityType<?>> TILE_ENTITIES = new DeferredRegister<>(ForgeRegistries.TILE_ENTITIES, MODID); public static final RegistryObject<PackagedBlock> PACKAGED_BLOCK = BLOCKS.register("packaged_block", () -> new PackagedBlock(Block.Properties.create(Material.WOOL).hardnessAndResistance(0.5f, 0.5f).sound(SoundType.WOOD))); static { ITEMS.register(PACKAGED_BLOCK.getId().getPath(), () -> new BlockItem(PACKAGED_BLOCK.get(), new Item.Properties().maxStackSize(16).group(ItemGroup.MISC))); TILE_ENTITIES.register(PACKAGED_BLOCK.getId().getPath(), () -> TileEntityType.Builder.create(PackagedBlockEntity::new, PACKAGED_BLOCK.get()).build(null)); } public static final RegistryObject<TapeItem> TAPE = ITEMS.register("tape", () -> new TapeItem(new Item.Properties().maxStackSize(16).group(ItemGroup.MISC))); public static Logger logger = LogManager.getLogger(MODID); public PackingTapeMod() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); BLOCKS.register(modEventBus); ITEMS.register(modEventBus); TILE_ENTITIES.register(modEventBus); modEventBus.addListener(this::serverConfig); modEventBus.addListener(this::gatherData); ModLoadingContext.get().registerConfig(ModConfig.Type.SERVER, ConfigValues.SERVER_SPEC); } private void gatherData(GatherDataEvent event) { DataGen.gatherData(event); } public void serverConfig(ModConfig.ModConfigEvent event) { if (event.getConfig().getSpec() == ConfigValues.SERVER_SPEC) ConfigValues.bake(); } public static ResourceLocation location(String path) { return new ResourceLocation(MODID, path); } public static class DataGen { public static void gatherData(GatherDataEvent event) { DataGenerator gen = event.getGenerator(); if (event.includeServer()) { gen.addProvider(new LootTables(gen)); gen.addProvider(new Recipes(gen)); } } private static class Recipes extends RecipeProvider implements IDataProvider, IConditionBuilder { public Recipes(DataGenerator gen) { super(gen); } @Override protected void registerRecipes(Consumer<IFinishedRecipe> consumer) { ShapelessRecipeBuilder.shapelessRecipe(PackingTapeMod.TAPE.get()) .addIngredient(Items.SLIME_BALL) .addIngredient(Items.STRING) .addIngredient(Items.PAPER) .addCriterion("has_slime_ball", hasItem(Items.SLIME_BALL)) .build(consumer); } } private static class LootTables extends LootTableProvider implements IDataProvider { public LootTables(DataGenerator gen) { super(gen); } private final List<Pair<Supplier<Consumer<BiConsumer<ResourceLocation, LootTable.Builder>>>, LootParameterSet>> tables = ImmutableList.of( Pair.of(BlockTables::new, LootParameterSets.BLOCK) //Pair.of(FishingLootTables::new, LootParameterSets.FISHING), //Pair.of(ChestLootTables::new, LootParameterSets.CHEST), //Pair.of(EntityLootTables::new, LootParameterSets.ENTITY), //Pair.of(GiftLootTables::new, LootParameterSets.GIFT) ); @Override protected List<Pair<Supplier<Consumer<BiConsumer<ResourceLocation, LootTable.Builder>>>, LootParameterSet>> getTables() { return tables; } @Override protected void validate(Map<ResourceLocation, LootTable> map, ValidationTracker validationtracker) { map.forEach((p_218436_2_, p_218436_3_) -> { LootTableManager.func_227508_a_(validationtracker, p_218436_2_, p_218436_3_); }); } public static class BlockTables extends BlockLootTables { @Override protected void addTables() { this.registerLootTable(PackingTapeMod.PACKAGED_BLOCK.get(), BlockTables::dropWithPackagedContents); } protected static LootTable.Builder dropWithPackagedContents(Block p_218544_0_) { return LootTable.builder() .addLootPool(withSurvivesExplosion(p_218544_0_, LootPool.builder() .rolls(ConstantRange.of(1)) .addEntry(ItemLootEntry.builder(p_218544_0_) .acceptFunction(CopyName.builder(CopyName.Source.BLOCK_ENTITY)) .acceptFunction(CopyNbt.builder(CopyNbt.Source.BLOCK_ENTITY) .replaceOperation("Block", "BlockEntityTag.Block") .replaceOperation("BlockEntity", "BlockEntityTag.BlockEntity") .replaceOperation("PreferredDirection", "BlockEntityTag.PreferredDirection"))))); } @Override protected Iterable<Block> getKnownBlocks() { return ForgeRegistries.BLOCKS.getValues().stream() .filter(b -> b.getRegistryName().getNamespace().equals(PackingTapeMod.MODID)) .collect(Collectors.toList()); } } } } }
Ethan Zuckerman says new media not helping us transcend national barriers as much as hoped. Though Ethan Zuckerman did not coin the term "bridge blogger," in the years since he co-founded Global Voices Online with Rebecca MacKinnon, he has quite possibly become the world's foremost expert on - and proponent of - the idea. As a blogger and researcher at the Berkman Center for Internet & Society at Harvard University, Zuckerman's work is rooted in the idea that we, as global citizens, should be listening to what others have to say. In a recent talk at TEDGlobal 2010 in Oxford, Zuckerman expounded the idea that new media, in its current incarnation, is not helping us reach across national barriers as much as we think. Presenting a variety of statistics on media consumption, Zuckerman demonstrates that the Internet has not - as we had hoped - become the great leveller ... yet. The solution, in Zuckerman's opinion? "You need someone to bump you out of your flock and into another flock - you need a guide." Taking the audience through an array of what he calls xenophiles and bridge figures -"someone who literally has feet in both worlds" - Zuckerman makes the case that, in order to view the world more broadly, it is necessary to cultivate these types. Or in his own words: "It's not enough to make a personal decision that you want a wider world - we need to fix the systems that we have." Click here for more information on TEDGlobal. This video is licensed under Creative Commons BY-NC-ND.Outside image from Flickr and also under CC.
<reponame>jaytmiller/calcloud<gh_stars>1-10 from calcloud import lambda_submit from calcloud import io from calcloud import s3 def lambda_handler(event, context): bucket_name, ipst = s3.parse_s3_event(event) comm = io.get_io_bundle(bucket_name) overrides = comm.messages.get(f"placed-{ipst}") comm.xdata.delete(ipst) # biggest difference between "placed" and "rescue" # comm.messages.delete(f"placed-{ipst}") lambda_submit.main(comm, ipst, bucket_name, overrides)
<filename>app/src/main/java/com/zjzy/morebit/info/ui/fragment/MsgEarningsFragment2.java package com.zjzy.morebit.info.ui.fragment; import android.os.Bundle; import android.view.View; import com.github.jdsjlzx.interfaces.OnLoadMoreListener; import com.zjzy.morebit.Module.common.View.ReUseListView; import com.zjzy.morebit.R; import com.zjzy.morebit.info.adapter.MsgEarningsAdapter; import com.zjzy.morebit.info.contract.MsgContract; import com.zjzy.morebit.info.model.InfoModel; import com.zjzy.morebit.info.presenter.MsgPresenter; import com.zjzy.morebit.mvp.base.base.BaseView; import com.zjzy.morebit.mvp.base.frame.MvpFragment; import com.zjzy.morebit.network.CommonEmpty; import com.zjzy.morebit.pojo.EarningsMsg; import com.zjzy.morebit.utils.C; import com.zjzy.morebit.utils.DateTimeUtils; import com.zjzy.morebit.view.ToolbarHelper; import java.util.ArrayList; import java.util.List; import butterknife.BindView; import butterknife.OnClick; /** * Created by fengrs on 2018/12/4. * 收益消息 */ public class MsgEarningsFragment2 extends MvpFragment<MsgPresenter> implements MsgContract.View { private static final int REQUEST_COUNT = 10; @BindView(R.id.mListView) ReUseListView mReUseListView; private int page = 1; private MsgEarningsAdapter mAdapter; private CommonEmpty mEmptyView; private int mtype; public static MsgEarningsFragment2 newInstance(int type) { Bundle args = new Bundle(); MsgEarningsFragment2 fragment = new MsgEarningsFragment2(); args.putInt(C.UserType.ORDERTYPE,type); fragment.setArguments(args); return fragment; } @Override protected void initData() { refreshData(); } @Override protected void initView(View view) { Bundle arguments = getArguments(); if (arguments != null) { mtype = arguments.getInt(C.UserType.ORDERTYPE); } mEmptyView = new CommonEmpty(view, getString(R.string.no_msg), R.drawable.image_meiyouxiaoxi); mAdapter = new MsgEarningsAdapter(getActivity(),mtype); mReUseListView.getSwipeList().setOnRefreshListener(new com.zjzy.morebit.Module.common.widget.SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { page = 1; refreshData(); } }); mReUseListView.getListView().setOnLoadMoreListener(new OnLoadMoreListener() { @Override public void onLoadMore() { if (!mReUseListView.getSwipeList().isRefreshing()) { mPresenter.getMsg(MsgEarningsFragment2.this, InfoModel.msgAwardType, page, mEmptyView); } } }); mReUseListView.setAdapter(mAdapter); } private void refreshData() { mReUseListView.getSwipeList().post(new Runnable() { @Override public void run() { mReUseListView.getSwipeList().setRefreshing(true); } }); page = 1; mReUseListView.getListView().setNoMore(false); mReUseListView.getListView().setMarkermallNoMore(true); mReUseListView.getListView().setFootViewVisibility(View.GONE); mReUseListView.getListView().setFooterViewHint("","仅支持查看近3个月订单",""); mPresenter.getMsg2(this, InfoModel.msgAwardType, page,mtype, mEmptyView); } @Override protected int getViewLayout() { return R.layout.fragment_msg_list; } @Override public BaseView getBaseView() { return this; } @OnClick({R.id.empty_view}) public void Onclick(View v) { switch (v.getId()) { case R.id.empty_view: refreshData(); break; } } @Override public void onMsgSuccessful(List<EarningsMsg> data) { if (page == 1) { mAdapter.replace(data); mAdapter.notifyDataSetChanged(); if(data.size()<10){ mReUseListView.getListView().setFootViewVisibility(View.VISIBLE); mReUseListView.getListView().setNoMore(true); } } else { mAdapter.add(data); mAdapter.notifyDataSetChanged(); } page++; } @Override public void onMsgfailure() { if (page != 1) { mReUseListView.getListView().setNoMore(true); } } @Override public void onMsgFinally() { mReUseListView.getListView().refreshComplete(REQUEST_COUNT); mReUseListView.getSwipeList().setRefreshing(false); } }
Acupressure for Prevention of Emesis in Patients Receiving Activated Charcoal Objective: Vomiting after activated charcoal decontamination is problematic. Acupressure (traditional Chinese medicine) is an effective treatment for emesis, but has not been tested in overdose patients. We sought to determine the incidence of emesis after activated charcoal and the ability of acupressure to prevent emesis due to activated charcoal. Methods: Consecutive overdose patients were enrolled in a preliminary, prospective study to determine the incidence of emesis after activated charcoal. Awake patients, >18 years, received 1 g/kg activated charcoal orally or via nasogastric tube, and then observed for 1 hour. These patients served as controls for part 2 of the study, where acupressure bands were placed on overdose patients at the Nei-Guan P-6 point of both wrists prior to activated charcoal, followed by 1 hour observation. Exclusion criteria included: ipecac decontamination, antiemetic drug ingestion, antiemetic drug therapy within 1 hour of activated charcoal, or intubation. Results: Eighty-one patients were included in the control group and 106 patients in the acupressure treatment group. Demographics and ingested substances were similar in both groups. 21/81 (25.9%) in the control group vomited and 15/106 (14.2%) in the acupressure group vomited. Acupressure reduced emesis by 46% (p=0.043; 2). Within the acupressure group, the median duration of prophylactic acupressure was 5 minutes in those patients without vomiting compared to 4 minutes in those patients with vomiting (NS; Wilcoxon rank sum test). Conclusion: The incidence of emesis after activated charcoal at our institution was 26%. Prophylactic acupressure reduced activated charcoal-induced vomiting by 46%. Investigators suggest 5 minutes of acupressure prior to activated charcoal.
<gh_stars>10-100 // Template Source: BaseEntity.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ package com.microsoft.graph.models; import com.microsoft.graph.serializer.ISerializer; import com.microsoft.graph.serializer.IJsonBackedObject; import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; import com.microsoft.graph.models.AssignmentFilterOperator; import com.google.gson.JsonObject; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import javax.annotation.Nullable; import javax.annotation.Nonnull; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** * The class for the Assignment Filter Supported Property. */ public class AssignmentFilterSupportedProperty implements IJsonBackedObject { /** the OData type of the object as returned by the service */ @SerializedName("@odata.type") @Expose @Nullable public String oDataType; private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); @Override @Nonnull public final AdditionalDataManager additionalDataManager() { return additionalDataManager; } /** * The Data Type. * The data type of the property. */ @SerializedName(value = "dataType", alternate = {"DataType"}) @Expose @Nullable public String dataType; /** * The Is Collection. * Indicates whether the property is a collection type or not. */ @SerializedName(value = "isCollection", alternate = {"IsCollection"}) @Expose @Nullable public Boolean isCollection; /** * The Name. * Name of the property. */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @Nullable public String name; /** * The Property Regex Constraint. * Regex string to do validation on the property value. */ @SerializedName(value = "propertyRegexConstraint", alternate = {"PropertyRegexConstraint"}) @Expose @Nullable public String propertyRegexConstraint; /** * The Supported Operators. * List of all supported operators on this property. */ @SerializedName(value = "supportedOperators", alternate = {"SupportedOperators"}) @Expose @Nullable public java.util.List<AssignmentFilterOperator> supportedOperators; /** * The Supported Values. * List of all supported values for this propery, empty if everything is supported. */ @SerializedName(value = "supportedValues", alternate = {"SupportedValues"}) @Expose @Nullable public java.util.List<String> supportedValues; /** * Sets the raw JSON object * * @param serializer the serializer * @param json the JSON object to set this object to */ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { } }
Malignant hyperphenylalaninemia: CT and MR of the brain. A defect in biopterin synthesis not only prevents the transformation of phenylalanine to tyrosine (as in classical phenylketonuria, PKU) but also blocks the biosynthesis of the neurotransmitters dopamine, norepinephrine, and serotonin, causing severe neurologic disturbances. The brain CT and MR findings in this rare disorder have not been described. In the present series, eight patients with PKU were all examined with CT, three were also examined with MR imaging. In spite of severe clinical findings, CT was normal or almost normal in three patients; in three other children, moderate loss of brain volume was found. White matter disease was found in three patients (moderate in two and severe in one) and was also found in an additional patient with classical PKU. PKU should therefore be added to the list of possible causes for white matter disease. Furthermore, biopterin-dependent PKU should be considered when the CT examination in a child with severe neurologic manifestation only shows discrete pathology.
<reponame>kudlatyCode/SwapAppDelegateForUnitTests // // ViewController.h // App Delegate Swap // // Created by <NAME> on 06/11/15. // Copyright © 2015 Kudlaty. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
SAO PAULO, April 16 Brazilian energy company Vila Energia Renovável said on Tuesday it sold 90 percent of wind power complex Terra Santa to France's Total SA. SAO PAULO State-run oil company Petroleo Brasileiro SA is preparing to sell three more gas pipelines after successfully selling its larger TAG unit to France's Engie for $8.6 billion (6.58 billion pounds), according to three sources with knowledge of the matter. SAO PAULO State-run oil company Petroleo Brasileiro SA is preparing to sell three more gas pipelines after successfully selling its larger TAG unit to France's Engie for $8.6 billion, according to three sources with knowledge of the matter. April 9 Australia's Oil Search, France's Total SA and Exxon Mobil have signed an agreement with Papua New Guinea for the Papua LNG Project, Oil Search said on Tuesday, enabling initial work to begin on the development. LONDON, April 3 The field of prospective bidders for Dutch energy company Eneco has narrowed as initial interest from big electricity players including France's Engie and Austria's Verbund has fizzled out, sources close to the matter said. SHANGHAI, April 3 French oil and gas major Total SA and U.S. company Tellurian Inc have signed several deals to develop the Driftwood liquefied natural gas (LNG) project in Louisiana, they said on Wednesday. BUENOS AIRES, March 20 Argentina's energy secretariat said on Wednesday it authorized oil companies YPF and Total to make new gas exports to neighboring Chile.
Surgical treatment of orbital floor fractures. Ninety patients with orbital floor fractures were treated by the Otolaryngology Service of the Columbia-Presbyterian Medical Center. Of these 90 patients, 58 were classified as coexisting and 32 as isolated. All fractures with clinical symptoms and demonstrable x-ray evidence should be explored. Despite negative findings by routine techniques, laminography may confirm fractures in all clinically suspicious cases. In this series, 100% of the patients explored had definitive fractures. A direct infraorbital approach adequately exposes the floor of the orbit. An effective and cosmetic subtarsal incision was utilized. Implants were employed when the floor could not be anatomically reapproximated or the periorbita was destroyed.
Copyright by WVNS - All rights reserved By JOHN RABY Associated Press CHARLESTON, W.Va. (AP) - A West Virginia delegate says he'd like to see serious studies at the state Capitol on legalizing medical marijuana despite the House speaker's recent declaration that such legislation won't gain a foothold this year. Kanawha County Democrat Mike Pushkin was part of a panel discussion Friday at the West Virginia Associated Press Legislative Lookahead. Pushkin says the potential medical benefits and the state's current budget crisis are some reasons why West Virginia needs to join 28 other states that have comprehensive medical marijuana programs. But another panelist, Charleston police Lt. Eric Johnson, says West Virginia leads the nation in too many negative areas already. During the 2016 election campaign, Gov. Jim Justice said he is open to legalizing medical marijuana. But House Speaker Tim Armstead said Thursday the time isn't right to advance such legislation. Copyright 2017 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.
import org.robwork.sdurw.*; public class ExFrameToFrameTransform { public static Transform3Dd frameToFrameTransform( Frame a, Frame b, State state) { FKRange fk = new FKRange(a, b, state); return fk.get(state); } }
package adx type Indicator struct { }
. In our previous investigations it was found that nociceptive sensitization is followed by a long-term facilitation of synaptic transmission in command neuron of defence behavior. The facilitation is translation- and transcription-dependent. Features of plasticity neurochemical mechanisms of different sensory inputs in the neural cells were determined. NMDA glutamate receptors, serotonin receptors, cAMP as well as serotonin-modulated protein SMP-69 are involved in mechanisms of induction of neural response facilitation in LPl 1 neuron evoked by chemical sensory stimulation of snail head. Protein kinase C is involved in synaptic facilitation-induction mechanisms from other sensory neural input--tactile receptors of snail "head". In this work, participation of C/EBP (CCAAT-enhancing-binding protein) immediate early gene transcription factor was established in mechanisms of synapse-specific plasticity during sensitization in LPl 1 neuron in snail Helix lucorum. Specific binding with C/EBP oligonucleotides were used as C/EBP inhibitors. It was found that sensitization during intracellular oligonucleotide injection selectively suppressed synaptic facilitation in LPl 1 neuron responses evoked by chemical sensory stimulation of snail "head". At the same time, development of synaptic facilitation of the neuron responses evoked by tactile stimulation of snail head or foot was the same as in control sensitized snails. It seems that C/EBP transcription factor is selectively involved in mechanisms of synapse-specific plasticity of sensory input in LPl 1 neuron from snail head chemoreceptors.
Rearing Male Layer Chickens: A German Perspective The killing of male layer hybrids in the hatcheries, at a day-old, is common practice but it also raises strong socio-ethical concerns. In recent years, three different approaches to avoid this killing have been developedthe in ovo sex determination, the rearing of male layers for meat, and the use of dual-purpose breeds. In Germany, about one million male layers are raised each year in the organic and conventional sector. Regarding animal health and welfare, this concept seems favourable. However, the main challenge, that is, to what extent these animals can be kept in a resource-friendly and ecologically sustainable way, remains yet to be solved. Currently, for a niche, this approach contributes to the diversification of the German market. It serves as an example for reacting to societal concerns immediately, before feasible solutions are available for the entire system of modern poultry production.
A woman was stabbed to death near a playground in Orizaba Park today, and a suspect was in custody, police said. Witnesses said the victim was a teacher at a private preschool across the street from the park and that the incident happened in front of children on the playground. Police responded at 1:30 p.m. to Orizaba Avenue and Spaulding Street just north of Anaheim Street for reports of a stabbing, according to Long Beach Police spokeswoman Nancy Pratt. Officers discovered a woman who had suffered a stab wound to the upper body. She was transported to a hospital where she died from her injuries, Pratt said. A short time later near Anaheim and Redondo Avenue a man was taken into custody in connection with the stabbing. The woman’s identity wasn’t released. Police didn’t release further details. Witnesses, who asked not to be identified, said the woman was a preschool teacher at the private Huntington Academy School. They said she was sitting on a bench watching students on the playground when the incident occurred. A women who answered the phone at the school this afternoon declined to comment. Yellow police tape could be seen surrounding the park’s playground. Resident Doug Hunt said he spoke with the victim’s sister, who was shaking and crying as she arrived at the scene. Hunt said the park has had recent problems with drugs and crime. “It’s sad and unbelievable that something like this could happen,” he said. “When a school teacher can’t even be safe in a park, it’s just ridiculous.” Penny Flint, a neighborhood watch captain for the area who has lived near Orizaba Park since 1975, said the preschool is owned by a local family. Flint said the park has seen improvements in recent years, although it has been a “roller coaster ride.” “For something like this to happen, it’s very sad,” she said. Contact the writer: [email protected]
/** */ package CIM15.IEC61970.Core; import CIM15.IEC61970.Domain.UnitMultiplier; import CIM15.IEC61970.Domain.UnitSymbol; import java.util.Collection; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.util.BasicInternalEList; import org.eclipse.emf.ecore.util.InternalEList; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Curve</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link CIM15.IEC61970.Core.Curve#getXUnit <em>XUnit</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getY1Multiplier <em>Y1 Multiplier</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getY2Unit <em>Y2 Unit</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getY3Multiplier <em>Y3 Multiplier</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getCurveDatas <em>Curve Datas</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getY1Unit <em>Y1 Unit</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getXMultiplier <em>XMultiplier</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getY3Unit <em>Y3 Unit</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getY2Multiplier <em>Y2 Multiplier</em>}</li> * <li>{@link CIM15.IEC61970.Core.Curve#getCurveStyle <em>Curve Style</em>}</li> * </ul> * </p> * * @generated */ public class Curve extends IdentifiedObject { /** * The default value of the '{@link #getXUnit() <em>XUnit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getXUnit() * @generated * @ordered */ protected static final UnitSymbol XUNIT_EDEFAULT = UnitSymbol.N; /** * The cached value of the '{@link #getXUnit() <em>XUnit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getXUnit() * @generated * @ordered */ protected UnitSymbol xUnit = XUNIT_EDEFAULT; /** * This is true if the XUnit attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean xUnitESet; /** * The default value of the '{@link #getY1Multiplier() <em>Y1 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY1Multiplier() * @generated * @ordered */ protected static final UnitMultiplier Y1_MULTIPLIER_EDEFAULT = UnitMultiplier.M; /** * The cached value of the '{@link #getY1Multiplier() <em>Y1 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY1Multiplier() * @generated * @ordered */ protected UnitMultiplier y1Multiplier = Y1_MULTIPLIER_EDEFAULT; /** * This is true if the Y1 Multiplier attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean y1MultiplierESet; /** * The default value of the '{@link #getY2Unit() <em>Y2 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY2Unit() * @generated * @ordered */ protected static final UnitSymbol Y2_UNIT_EDEFAULT = UnitSymbol.N; /** * The cached value of the '{@link #getY2Unit() <em>Y2 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY2Unit() * @generated * @ordered */ protected UnitSymbol y2Unit = Y2_UNIT_EDEFAULT; /** * This is true if the Y2 Unit attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean y2UnitESet; /** * The default value of the '{@link #getY3Multiplier() <em>Y3 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY3Multiplier() * @generated * @ordered */ protected static final UnitMultiplier Y3_MULTIPLIER_EDEFAULT = UnitMultiplier.M; /** * The cached value of the '{@link #getY3Multiplier() <em>Y3 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY3Multiplier() * @generated * @ordered */ protected UnitMultiplier y3Multiplier = Y3_MULTIPLIER_EDEFAULT; /** * This is true if the Y3 Multiplier attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean y3MultiplierESet; /** * The cached value of the '{@link #getCurveDatas() <em>Curve Datas</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getCurveDatas() * @generated * @ordered */ protected EList<CurveData> curveDatas; /** * The default value of the '{@link #getY1Unit() <em>Y1 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY1Unit() * @generated * @ordered */ protected static final UnitSymbol Y1_UNIT_EDEFAULT = UnitSymbol.N; /** * The cached value of the '{@link #getY1Unit() <em>Y1 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY1Unit() * @generated * @ordered */ protected UnitSymbol y1Unit = Y1_UNIT_EDEFAULT; /** * This is true if the Y1 Unit attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean y1UnitESet; /** * The default value of the '{@link #getXMultiplier() <em>XMultiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getXMultiplier() * @generated * @ordered */ protected static final UnitMultiplier XMULTIPLIER_EDEFAULT = UnitMultiplier.M; /** * The cached value of the '{@link #getXMultiplier() <em>XMultiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getXMultiplier() * @generated * @ordered */ protected UnitMultiplier xMultiplier = XMULTIPLIER_EDEFAULT; /** * This is true if the XMultiplier attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean xMultiplierESet; /** * The default value of the '{@link #getY3Unit() <em>Y3 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY3Unit() * @generated * @ordered */ protected static final UnitSymbol Y3_UNIT_EDEFAULT = UnitSymbol.N; /** * The cached value of the '{@link #getY3Unit() <em>Y3 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY3Unit() * @generated * @ordered */ protected UnitSymbol y3Unit = Y3_UNIT_EDEFAULT; /** * This is true if the Y3 Unit attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean y3UnitESet; /** * The default value of the '{@link #getY2Multiplier() <em>Y2 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY2Multiplier() * @generated * @ordered */ protected static final UnitMultiplier Y2_MULTIPLIER_EDEFAULT = UnitMultiplier.M; /** * The cached value of the '{@link #getY2Multiplier() <em>Y2 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY2Multiplier() * @generated * @ordered */ protected UnitMultiplier y2Multiplier = Y2_MULTIPLIER_EDEFAULT; /** * This is true if the Y2 Multiplier attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean y2MultiplierESet; /** * The default value of the '{@link #getCurveStyle() <em>Curve Style</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getCurveStyle() * @generated * @ordered */ protected static final CurveStyle CURVE_STYLE_EDEFAULT = CurveStyle.FORMULA; /** * The cached value of the '{@link #getCurveStyle() <em>Curve Style</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getCurveStyle() * @generated * @ordered */ protected CurveStyle curveStyle = CURVE_STYLE_EDEFAULT; /** * This is true if the Curve Style attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean curveStyleESet; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Curve() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return CorePackage.Literals.CURVE; } /** * Returns the value of the '<em><b>XUnit</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Domain.UnitSymbol}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>XUnit</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>XUnit</em>' attribute. * @see CIM15.IEC61970.Domain.UnitSymbol * @see #isSetXUnit() * @see #unsetXUnit() * @see #setXUnit(UnitSymbol) * @generated */ public UnitSymbol getXUnit() { return xUnit; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getXUnit <em>XUnit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>XUnit</em>' attribute. * @see CIM15.IEC61970.Domain.UnitSymbol * @see #isSetXUnit() * @see #unsetXUnit() * @see #getXUnit() * @generated */ public void setXUnit(UnitSymbol newXUnit) { xUnit = newXUnit == null ? XUNIT_EDEFAULT : newXUnit; xUnitESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getXUnit <em>XUnit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetXUnit() * @see #getXUnit() * @see #setXUnit(UnitSymbol) * @generated */ public void unsetXUnit() { xUnit = XUNIT_EDEFAULT; xUnitESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getXUnit <em>XUnit</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>XUnit</em>' attribute is set. * @see #unsetXUnit() * @see #getXUnit() * @see #setXUnit(UnitSymbol) * @generated */ public boolean isSetXUnit() { return xUnitESet; } /** * Returns the value of the '<em><b>Y1 Multiplier</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Domain.UnitMultiplier}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Y1 Multiplier</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Y1 Multiplier</em>' attribute. * @see CIM15.IEC61970.Domain.UnitMultiplier * @see #isSetY1Multiplier() * @see #unsetY1Multiplier() * @see #setY1Multiplier(UnitMultiplier) * @generated */ public UnitMultiplier getY1Multiplier() { return y1Multiplier; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getY1Multiplier <em>Y1 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Y1 Multiplier</em>' attribute. * @see CIM15.IEC61970.Domain.UnitMultiplier * @see #isSetY1Multiplier() * @see #unsetY1Multiplier() * @see #getY1Multiplier() * @generated */ public void setY1Multiplier(UnitMultiplier newY1Multiplier) { y1Multiplier = newY1Multiplier == null ? Y1_MULTIPLIER_EDEFAULT : newY1Multiplier; y1MultiplierESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getY1Multiplier <em>Y1 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetY1Multiplier() * @see #getY1Multiplier() * @see #setY1Multiplier(UnitMultiplier) * @generated */ public void unsetY1Multiplier() { y1Multiplier = Y1_MULTIPLIER_EDEFAULT; y1MultiplierESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getY1Multiplier <em>Y1 Multiplier</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Y1 Multiplier</em>' attribute is set. * @see #unsetY1Multiplier() * @see #getY1Multiplier() * @see #setY1Multiplier(UnitMultiplier) * @generated */ public boolean isSetY1Multiplier() { return y1MultiplierESet; } /** * Returns the value of the '<em><b>Y2 Unit</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Domain.UnitSymbol}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Y2 Unit</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Y2 Unit</em>' attribute. * @see CIM15.IEC61970.Domain.UnitSymbol * @see #isSetY2Unit() * @see #unsetY2Unit() * @see #setY2Unit(UnitSymbol) * @generated */ public UnitSymbol getY2Unit() { return y2Unit; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getY2Unit <em>Y2 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Y2 Unit</em>' attribute. * @see CIM15.IEC61970.Domain.UnitSymbol * @see #isSetY2Unit() * @see #unsetY2Unit() * @see #getY2Unit() * @generated */ public void setY2Unit(UnitSymbol newY2Unit) { y2Unit = newY2Unit == null ? Y2_UNIT_EDEFAULT : newY2Unit; y2UnitESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getY2Unit <em>Y2 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetY2Unit() * @see #getY2Unit() * @see #setY2Unit(UnitSymbol) * @generated */ public void unsetY2Unit() { y2Unit = Y2_UNIT_EDEFAULT; y2UnitESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getY2Unit <em>Y2 Unit</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Y2 Unit</em>' attribute is set. * @see #unsetY2Unit() * @see #getY2Unit() * @see #setY2Unit(UnitSymbol) * @generated */ public boolean isSetY2Unit() { return y2UnitESet; } /** * Returns the value of the '<em><b>Y3 Multiplier</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Domain.UnitMultiplier}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Y3 Multiplier</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Y3 Multiplier</em>' attribute. * @see CIM15.IEC61970.Domain.UnitMultiplier * @see #isSetY3Multiplier() * @see #unsetY3Multiplier() * @see #setY3Multiplier(UnitMultiplier) * @generated */ public UnitMultiplier getY3Multiplier() { return y3Multiplier; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getY3Multiplier <em>Y3 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Y3 Multiplier</em>' attribute. * @see CIM15.IEC61970.Domain.UnitMultiplier * @see #isSetY3Multiplier() * @see #unsetY3Multiplier() * @see #getY3Multiplier() * @generated */ public void setY3Multiplier(UnitMultiplier newY3Multiplier) { y3Multiplier = newY3Multiplier == null ? Y3_MULTIPLIER_EDEFAULT : newY3Multiplier; y3MultiplierESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getY3Multiplier <em>Y3 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetY3Multiplier() * @see #getY3Multiplier() * @see #setY3Multiplier(UnitMultiplier) * @generated */ public void unsetY3Multiplier() { y3Multiplier = Y3_MULTIPLIER_EDEFAULT; y3MultiplierESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getY3Multiplier <em>Y3 Multiplier</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Y3 Multiplier</em>' attribute is set. * @see #unsetY3Multiplier() * @see #getY3Multiplier() * @see #setY3Multiplier(UnitMultiplier) * @generated */ public boolean isSetY3Multiplier() { return y3MultiplierESet; } /** * Returns the value of the '<em><b>Curve Datas</b></em>' reference list. * The list contents are of type {@link CIM15.IEC61970.Core.CurveData}. * It is bidirectional and its opposite is '{@link CIM15.IEC61970.Core.CurveData#getCurve <em>Curve</em>}'. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Curve Datas</em>' reference list isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Curve Datas</em>' reference list. * @see CIM15.IEC61970.Core.CurveData#getCurve * @generated */ public EList<CurveData> getCurveDatas() { if (curveDatas == null) { curveDatas = new BasicInternalEList<CurveData>(CurveData.class); } return curveDatas; } /** * Returns the value of the '<em><b>Y1 Unit</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Domain.UnitSymbol}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Y1 Unit</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Y1 Unit</em>' attribute. * @see CIM15.IEC61970.Domain.UnitSymbol * @see #isSetY1Unit() * @see #unsetY1Unit() * @see #setY1Unit(UnitSymbol) * @generated */ public UnitSymbol getY1Unit() { return y1Unit; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getY1Unit <em>Y1 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Y1 Unit</em>' attribute. * @see CIM15.IEC61970.Domain.UnitSymbol * @see #isSetY1Unit() * @see #unsetY1Unit() * @see #getY1Unit() * @generated */ public void setY1Unit(UnitSymbol newY1Unit) { y1Unit = newY1Unit == null ? Y1_UNIT_EDEFAULT : newY1Unit; y1UnitESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getY1Unit <em>Y1 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetY1Unit() * @see #getY1Unit() * @see #setY1Unit(UnitSymbol) * @generated */ public void unsetY1Unit() { y1Unit = Y1_UNIT_EDEFAULT; y1UnitESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getY1Unit <em>Y1 Unit</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Y1 Unit</em>' attribute is set. * @see #unsetY1Unit() * @see #getY1Unit() * @see #setY1Unit(UnitSymbol) * @generated */ public boolean isSetY1Unit() { return y1UnitESet; } /** * Returns the value of the '<em><b>XMultiplier</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Domain.UnitMultiplier}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>XMultiplier</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>XMultiplier</em>' attribute. * @see CIM15.IEC61970.Domain.UnitMultiplier * @see #isSetXMultiplier() * @see #unsetXMultiplier() * @see #setXMultiplier(UnitMultiplier) * @generated */ public UnitMultiplier getXMultiplier() { return xMultiplier; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getXMultiplier <em>XMultiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>XMultiplier</em>' attribute. * @see CIM15.IEC61970.Domain.UnitMultiplier * @see #isSetXMultiplier() * @see #unsetXMultiplier() * @see #getXMultiplier() * @generated */ public void setXMultiplier(UnitMultiplier newXMultiplier) { xMultiplier = newXMultiplier == null ? XMULTIPLIER_EDEFAULT : newXMultiplier; xMultiplierESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getXMultiplier <em>XMultiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetXMultiplier() * @see #getXMultiplier() * @see #setXMultiplier(UnitMultiplier) * @generated */ public void unsetXMultiplier() { xMultiplier = XMULTIPLIER_EDEFAULT; xMultiplierESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getXMultiplier <em>XMultiplier</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>XMultiplier</em>' attribute is set. * @see #unsetXMultiplier() * @see #getXMultiplier() * @see #setXMultiplier(UnitMultiplier) * @generated */ public boolean isSetXMultiplier() { return xMultiplierESet; } /** * Returns the value of the '<em><b>Y3 Unit</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Domain.UnitSymbol}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Y3 Unit</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Y3 Unit</em>' attribute. * @see CIM15.IEC61970.Domain.UnitSymbol * @see #isSetY3Unit() * @see #unsetY3Unit() * @see #setY3Unit(UnitSymbol) * @generated */ public UnitSymbol getY3Unit() { return y3Unit; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getY3Unit <em>Y3 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Y3 Unit</em>' attribute. * @see CIM15.IEC61970.Domain.UnitSymbol * @see #isSetY3Unit() * @see #unsetY3Unit() * @see #getY3Unit() * @generated */ public void setY3Unit(UnitSymbol newY3Unit) { y3Unit = newY3Unit == null ? Y3_UNIT_EDEFAULT : newY3Unit; y3UnitESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getY3Unit <em>Y3 Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetY3Unit() * @see #getY3Unit() * @see #setY3Unit(UnitSymbol) * @generated */ public void unsetY3Unit() { y3Unit = Y3_UNIT_EDEFAULT; y3UnitESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getY3Unit <em>Y3 Unit</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Y3 Unit</em>' attribute is set. * @see #unsetY3Unit() * @see #getY3Unit() * @see #setY3Unit(UnitSymbol) * @generated */ public boolean isSetY3Unit() { return y3UnitESet; } /** * Returns the value of the '<em><b>Y2 Multiplier</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Domain.UnitMultiplier}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Y2 Multiplier</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Y2 Multiplier</em>' attribute. * @see CIM15.IEC61970.Domain.UnitMultiplier * @see #isSetY2Multiplier() * @see #unsetY2Multiplier() * @see #setY2Multiplier(UnitMultiplier) * @generated */ public UnitMultiplier getY2Multiplier() { return y2Multiplier; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getY2Multiplier <em>Y2 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Y2 Multiplier</em>' attribute. * @see CIM15.IEC61970.Domain.UnitMultiplier * @see #isSetY2Multiplier() * @see #unsetY2Multiplier() * @see #getY2Multiplier() * @generated */ public void setY2Multiplier(UnitMultiplier newY2Multiplier) { y2Multiplier = newY2Multiplier == null ? Y2_MULTIPLIER_EDEFAULT : newY2Multiplier; y2MultiplierESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getY2Multiplier <em>Y2 Multiplier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetY2Multiplier() * @see #getY2Multiplier() * @see #setY2Multiplier(UnitMultiplier) * @generated */ public void unsetY2Multiplier() { y2Multiplier = Y2_MULTIPLIER_EDEFAULT; y2MultiplierESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getY2Multiplier <em>Y2 Multiplier</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Y2 Multiplier</em>' attribute is set. * @see #unsetY2Multiplier() * @see #getY2Multiplier() * @see #setY2Multiplier(UnitMultiplier) * @generated */ public boolean isSetY2Multiplier() { return y2MultiplierESet; } /** * Returns the value of the '<em><b>Curve Style</b></em>' attribute. * The literals are from the enumeration {@link CIM15.IEC61970.Core.CurveStyle}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Curve Style</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Curve Style</em>' attribute. * @see CIM15.IEC61970.Core.CurveStyle * @see #isSetCurveStyle() * @see #unsetCurveStyle() * @see #setCurveStyle(CurveStyle) * @generated */ public CurveStyle getCurveStyle() { return curveStyle; } /** * Sets the value of the '{@link CIM15.IEC61970.Core.Curve#getCurveStyle <em>Curve Style</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Curve Style</em>' attribute. * @see CIM15.IEC61970.Core.CurveStyle * @see #isSetCurveStyle() * @see #unsetCurveStyle() * @see #getCurveStyle() * @generated */ public void setCurveStyle(CurveStyle newCurveStyle) { curveStyle = newCurveStyle == null ? CURVE_STYLE_EDEFAULT : newCurveStyle; curveStyleESet = true; } /** * Unsets the value of the '{@link CIM15.IEC61970.Core.Curve#getCurveStyle <em>Curve Style</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetCurveStyle() * @see #getCurveStyle() * @see #setCurveStyle(CurveStyle) * @generated */ public void unsetCurveStyle() { curveStyle = CURVE_STYLE_EDEFAULT; curveStyleESet = false; } /** * Returns whether the value of the '{@link CIM15.IEC61970.Core.Curve#getCurveStyle <em>Curve Style</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Curve Style</em>' attribute is set. * @see #unsetCurveStyle() * @see #getCurveStyle() * @see #setCurveStyle(CurveStyle) * @generated */ public boolean isSetCurveStyle() { return curveStyleESet; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case CorePackage.CURVE__CURVE_DATAS: return ((InternalEList<InternalEObject>)(InternalEList<?>)getCurveDatas()).basicAdd(otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case CorePackage.CURVE__CURVE_DATAS: return ((InternalEList<?>)getCurveDatas()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case CorePackage.CURVE__XUNIT: return getXUnit(); case CorePackage.CURVE__Y1_MULTIPLIER: return getY1Multiplier(); case CorePackage.CURVE__Y2_UNIT: return getY2Unit(); case CorePackage.CURVE__Y3_MULTIPLIER: return getY3Multiplier(); case CorePackage.CURVE__CURVE_DATAS: return getCurveDatas(); case CorePackage.CURVE__Y1_UNIT: return getY1Unit(); case CorePackage.CURVE__XMULTIPLIER: return getXMultiplier(); case CorePackage.CURVE__Y3_UNIT: return getY3Unit(); case CorePackage.CURVE__Y2_MULTIPLIER: return getY2Multiplier(); case CorePackage.CURVE__CURVE_STYLE: return getCurveStyle(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case CorePackage.CURVE__XUNIT: setXUnit((UnitSymbol)newValue); return; case CorePackage.CURVE__Y1_MULTIPLIER: setY1Multiplier((UnitMultiplier)newValue); return; case CorePackage.CURVE__Y2_UNIT: setY2Unit((UnitSymbol)newValue); return; case CorePackage.CURVE__Y3_MULTIPLIER: setY3Multiplier((UnitMultiplier)newValue); return; case CorePackage.CURVE__CURVE_DATAS: getCurveDatas().clear(); getCurveDatas().addAll((Collection<? extends CurveData>)newValue); return; case CorePackage.CURVE__Y1_UNIT: setY1Unit((UnitSymbol)newValue); return; case CorePackage.CURVE__XMULTIPLIER: setXMultiplier((UnitMultiplier)newValue); return; case CorePackage.CURVE__Y3_UNIT: setY3Unit((UnitSymbol)newValue); return; case CorePackage.CURVE__Y2_MULTIPLIER: setY2Multiplier((UnitMultiplier)newValue); return; case CorePackage.CURVE__CURVE_STYLE: setCurveStyle((CurveStyle)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case CorePackage.CURVE__XUNIT: unsetXUnit(); return; case CorePackage.CURVE__Y1_MULTIPLIER: unsetY1Multiplier(); return; case CorePackage.CURVE__Y2_UNIT: unsetY2Unit(); return; case CorePackage.CURVE__Y3_MULTIPLIER: unsetY3Multiplier(); return; case CorePackage.CURVE__CURVE_DATAS: getCurveDatas().clear(); return; case CorePackage.CURVE__Y1_UNIT: unsetY1Unit(); return; case CorePackage.CURVE__XMULTIPLIER: unsetXMultiplier(); return; case CorePackage.CURVE__Y3_UNIT: unsetY3Unit(); return; case CorePackage.CURVE__Y2_MULTIPLIER: unsetY2Multiplier(); return; case CorePackage.CURVE__CURVE_STYLE: unsetCurveStyle(); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case CorePackage.CURVE__XUNIT: return isSetXUnit(); case CorePackage.CURVE__Y1_MULTIPLIER: return isSetY1Multiplier(); case CorePackage.CURVE__Y2_UNIT: return isSetY2Unit(); case CorePackage.CURVE__Y3_MULTIPLIER: return isSetY3Multiplier(); case CorePackage.CURVE__CURVE_DATAS: return curveDatas != null && !curveDatas.isEmpty(); case CorePackage.CURVE__Y1_UNIT: return isSetY1Unit(); case CorePackage.CURVE__XMULTIPLIER: return isSetXMultiplier(); case CorePackage.CURVE__Y3_UNIT: return isSetY3Unit(); case CorePackage.CURVE__Y2_MULTIPLIER: return isSetY2Multiplier(); case CorePackage.CURVE__CURVE_STYLE: return isSetCurveStyle(); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (xUnit: "); if (xUnitESet) result.append(xUnit); else result.append("<unset>"); result.append(", y1Multiplier: "); if (y1MultiplierESet) result.append(y1Multiplier); else result.append("<unset>"); result.append(", y2Unit: "); if (y2UnitESet) result.append(y2Unit); else result.append("<unset>"); result.append(", y3Multiplier: "); if (y3MultiplierESet) result.append(y3Multiplier); else result.append("<unset>"); result.append(", y1Unit: "); if (y1UnitESet) result.append(y1Unit); else result.append("<unset>"); result.append(", xMultiplier: "); if (xMultiplierESet) result.append(xMultiplier); else result.append("<unset>"); result.append(", y3Unit: "); if (y3UnitESet) result.append(y3Unit); else result.append("<unset>"); result.append(", y2Multiplier: "); if (y2MultiplierESet) result.append(y2Multiplier); else result.append("<unset>"); result.append(", curveStyle: "); if (curveStyleESet) result.append(curveStyle); else result.append("<unset>"); result.append(')'); return result.toString(); } } // Curve
Identification and phenology of Hyalesthes obsoletus (Hemiptera: Auchenorrhyncha: Cixiidae) nymphal instars Abstract Urtica dioica and Convolvulus arvensis are the main host plants of Hyalesthes obsoletus and play an important role in the epidemiology of Bois noir of grapevines. The earliest survey, which was carried out to compare the phenology of nymphal instars on U. dioica and C. arvensis, had highlighted some problems in the identification of the instars. Therefore, the correct identification of nymphs to species and instar level became a preliminary aim of this research. Adults and nymphs attributable to H. obsoletus were collected during 20082010 in three flatland vineyard habitats of northern Italy on U. dioica, C. arvensis and Artemisia verlotorum. Nymphs and morphologically identified adults of H. obsoletus were submitted to molecular identification. Morphometric and morphological studies were carried out on nymphs collected in the field or obtained in laboratory rearings. Molecular methods not only confirmed the identity of adults, but also allowed the assignment of the nymphs to this species. Morphometric and morphological characteristics (e.g. body and head-thoracic lengths, number of thoracic pits) showed the existence of five nymphal instars. Morphometric differences between newly hatched and older first-instar nymphs were observed. A key to distinguish the five instars was proposed. Evident differences between H. obsoletus nymphs studied here and elsewhere were identified. According to differences in adult-flight period, an earlier phenology of nymphs on C. arvensis than on U. dioica was observed. In particular, the typical overwintering instar was the second on U. dioica and the third on C. arvensis.
package be.wegenenverkeer.rxhttp; import org.junit.Assert; import org.junit.Test; /** * Created by <NAME>, Geovise BVBA on 31/03/16. */ public class TestBuilder { @Test(expected = IllegalStateException.class) public void testBuilderThrowsIllegalArgumentExceptionOnMissingBaseUrl(){ new RxHttpClient.Builder().build(); } @Test public void testRequestSignersAreAdded(){ RequestSigner requestSigner = clientRequest -> {}; RxHttpClient client = new RxHttpClient.Builder().setBaseUrl("http://foo.com").addRequestSigner(requestSigner).build(); Assert.assertTrue(client.getRequestSigners().contains(requestSigner)); } }
5PSQ-085Medication errors and pharmaceutical interventions for drugs administered by feeding tube Background and importance Enteral nutrition (EN) through a feeding tube is a frequent method of nutrition support in the hospital environment. This method of delivering nutrition is also commonly used for administering medications when patients cannot swallow safely. An incorrect administration may alter the efficacy and/or adverse effects of the drug, and could even compromise patient safety. Aim and objectives To detect potential medication errors in patients receiving EN and drugs at the same time by enteral feeding tube and to describe pharmaceutical interventions and acceptance rate. Material and methods A prospective study was conducted in a tertiary level hospital between September and October 2019. All prescriptions of drugs administered by enteral feeding tube were assessed. Patient demographics, number of prescriptions analysed and administration data (route, pharmaceutical form) were collected. Pharmaceutical interventions were carried out through the validation programme and by telephone. The acceptance rate of the performed interventions was also evaluated. Results Forty-eight patients with an enteral feeding tube were included, 27% were women and mean age was 61 years (range 3285). A total of 174 prescriptions of drugs administered by tube were assessed and 37 medication errors were detected: 16.22% were drugs that cannot be administered by tube and 83.78% were physical incompatibilities between drugs and EN. A total of 46 interventions were performed. The interventions were: to avoid simultaneous administration of EN and medication (67.39%), to change pharmaceutical form (4.35%), to change the route (6.52%), to propose a therapeutic alternative due to incompatibility between the medication and the tube (13.04%) and to advise about the correct administration of hazardous drugs (8.70%). All of the interventions (100%) were accepted by doctors and nurses. Conclusion and relevance Successful drug delivery through enteral feeding tubes requires careful selection and appropriate administration of drug dosage forms. Pharmacists play an important role in making recommendations about handling medications and selecting the most suitable pharmaceutical form to administer through an enteral tube. This leads to a reduction in the risk of medication errors, improving the effectiveness and safety of the treatment. References and/or acknowledgements No conflict of interest.
<filename>src/block_generation/mirror_generator.hpp /* * Copyright (c) 2020 ETH Zurich, <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef SPLA_MIRROR_DISTRIBUTION_HPP #define SPLA_MIRROR_DISTRIBUTION_HPP #include <algorithm> #include <cassert> #include "block_generation/block.hpp" #include "spla/config.h" #include "util/common_types.hpp" namespace spla { class MirrorGenerator { public: MirrorGenerator(IntType rowsInBlock, IntType colsInBlock, IntType globalNumRows, IntType globalNumCols, IntType globalRowOffset, IntType globalColOffset) : rowsInBlock_(rowsInBlock), colsInBlock_(colsInBlock), globalNumRows_(globalNumRows), globalNumCols_(globalNumCols), globalRowOffset_(globalRowOffset), globalColOffset_(globalColOffset), numBlockRows_((globalNumRows + rowsInBlock - 1) / rowsInBlock), numBlockCols_((globalNumCols + colsInBlock - 1) / colsInBlock) {} auto create_sub_generator(Block block) -> MirrorGenerator { return MirrorGenerator(rowsInBlock_, colsInBlock_, block.numRows, block.numCols, block.row + globalRowOffset_, block.col + globalColOffset_); } auto get_block_info(IntType blockIdx) -> BlockInfo { const IntType blockRowIdx = blockIdx % numBlockRows_; const IntType blockColIdx = blockIdx / numBlockRows_; return this->get_block_info(blockRowIdx, blockColIdx); } auto get_block_info(IntType blockRowIdx, IntType blockColIdx) -> BlockInfo { assert(blockRowIdx < rowsInBlock_); assert(blockColIdx < colsInBlock_); const IntType globalRowIdx = blockRowIdx * rowsInBlock_ + globalRowOffset_; const IntType globalColIdx = blockColIdx * colsInBlock_ + globalColOffset_; const IntType numRows = std::min(globalNumRows_ - blockRowIdx * rowsInBlock_, rowsInBlock_); const IntType numCols = std::min(globalNumCols_ - blockColIdx * colsInBlock_, colsInBlock_); const IntType mpiRank = -1; BlockInfo info{globalRowIdx, globalColIdx, globalRowIdx - globalRowOffset_, globalColIdx - globalColOffset_, globalRowIdx, globalColIdx, numRows, numCols, mpiRank}; return info; } auto get_mpi_rank(IntType blockIdx) -> IntType { return -1; } auto get_mpi_rank(IntType blockRowIdx, IntType blockColIdx) -> IntType { return -1; } auto num_blocks() -> IntType { return numBlockRows_ * numBlockCols_; } auto num_block_rows() -> IntType { return numBlockRows_; } auto num_block_cols() -> IntType { return numBlockCols_; } auto max_rows_in_block() -> IntType { return rowsInBlock_; } auto max_cols_in_block() -> IntType { return colsInBlock_; } auto local_rows(IntType rank) -> IntType { return globalNumRows_; } auto local_cols(IntType rank) -> IntType { return globalNumCols_; } private: IntType rowsInBlock_, colsInBlock_; IntType globalNumRows_, globalNumCols_; IntType globalRowOffset_, globalColOffset_; IntType numBlockRows_, numBlockCols_; }; } // namespace spla #endif
<reponame>TransbankDevelopers/transbank-sdk-nodejs import RequestBase from '../../../common/request_base'; import TransactionDetail from '../../common/transaction_detail'; class MallCreateRequest extends RequestBase { buyOrder: string; sessionId: string; cvv: number | undefined; cardNumber: string; cardExpirationDate: string; details: Array<TransactionDetail>; constructor( buyOrder: string, sessionId: string, cvv: number | undefined, cardNumber: string, cardExpirationDate: string, details: Array<TransactionDetail> ) { super('/rswebpaytransaction/api/webpay/v1.0/transactions', 'POST'); this.buyOrder = buyOrder; this.sessionId = sessionId; this.cvv = cvv; this.cardNumber = cardNumber.replace(/\s/g, ''); this.cardExpirationDate = cardExpirationDate.replace(/\s/g, ''); this.details = details; } toJson(): string { return JSON.stringify({ buy_order: this.buyOrder, session_id: this.sessionId, cvv: this.cvv, card_number: this.cardNumber, card_expiration_date: this.cardExpirationDate, details: this.details.map((detail) => detail.toPlainObject()), }); } } export { MallCreateRequest };
import random import constants class Team(object): def __init__(self, team_number): self.team_number=team_number self.matches=[] self.monkeys=[] self.match_weights=[] self.point_diff=0 def add_match(self,match): self.matches.append(match) def calc_point_diff(self): for match in self.matches: if (match.score[0]>match.score[1] and self in match.A_teams) or (match.score[0]<match.score[1] and self in match.B_teams): self.match_weights.append(constants.WIN_WEIGHT) else: self.match_weights.append(constants.LOSS_WEIGHT) if self in match.A_teams: self.point_diff+= match.score[0] - match.score[1] else: self.point_diff += match.score[1] - match.score[0] self.point_diff/=float(len(self.matches)) def get_random_match(self): return random.choices(self.matches, weights=self.match_weights)[0] def add_monkey(self, monkey): self.monkeys.append(monkey) def num_monkeys(self): return len(self.monkeys) def __eq__(self, other): return self.team_number==other.team_number def __str__(self): ans= str(self.team_number) +"\t" + str(self.point_diff) + "\t" + str(self.num_monkeys()) return ans
Prediction of frequency parameters in short wave radio communications based on chaos and neural networks In order to improve the reliability of short-wave communication, a hybrid method of prediction based on chaos phase reconstruction and neural networks is proposed and used in frequency parameters prediction. We use the chaos method to reconstruct attractors in phase spaces, fit the attractors' global map by multi-layer feedforward neural networks, and thus construct a hybrid model of prediction. Experimental results show that the hybrid model can achieve good results in predicting frequency parameters of short-wave communications such as foF2, and has promising applications. We also show the efficiency of a noise-suppressing method based on single value decomposition (SVD).
""" Expositors Serializer """ # Django REST Framework from rest_framework import serializers # Models from eventup.events.models import Expositor class ExpositorModelSerializer(serializers.HyperlinkedModelSerializer): """ Expositor model serializer """ id = serializers.CharField(source='pk', read_only=True) class Meta: model = Expositor fields = ( 'id', 'name', 'bio', 'twitter', 'picture' ) def validate(self, data): """Verify rating hasn't been emitted before.""" # expositor = self.context['request'].expositor # if not expositor.exists(): # raise serializers.ValidationError('User is not a passenger') response = data return response def create(self, data): return Expositor.objects.create(**data) def update(self, instance, validated_data): user_validated_data = validated_data.pop('user', None) user = instance.user user.username = user_validated_data.get('username', user.username) user.email = user_validated_data.get('email', user.email) user.first_name = user_validated_data.get('first_name', user.first_name) user.last_name = user_validated_data.get('last_name', user.last_name) if user_validated_data.get('last_name'): user.set_password(user_validated_data.get('last_name')) user.save() instance.points = validated_data.get('points', instance.points) instance.last_login_date = validated_data.get('last_login_date', instance.last_login_date) instance.save() return instance
<filename>include/SpringBoard/SBTransientOverlayViewController.h // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 22 2020 01:47:48). // // Copyright (C) 1997-2019 <NAME>. // #import <UIKit/UIViewController.h> #import <SpringBoard/BSDescriptionProviding-Protocol.h> #import <SpringBoard/SBButtonEventsHandler-Protocol.h> #import <SpringBoard/SBFIdleTimerBehaviorProviding-Protocol.h> #import <SpringBoard/SBHomeGrabberDelegate-Protocol.h> #import <SpringBoard/SBIdleTimerProviding-Protocol.h> @class FBDisplayLayoutElement, NSNumber, NSString, SBDisplayItem, SBFHomeGrabberSettings, SBHomeGrabberView, SBKeyboardHomeAffordanceAssertion, UIStatusBar, UIStatusBarStyleRequest, UIView, UIWindow, _UILegibilitySettings; @protocol SBIdleTimerCoordinating, SBTransientOverlayViewControllerDelegate; @interface SBTransientOverlayViewController : UIViewController <SBHomeGrabberDelegate, BSDescriptionProviding, SBButtonEventsHandler, SBFIdleTimerBehaviorProviding, SBIdleTimerProviding> { long long _appearanceUpdateIgnoreCount; UIView *_contentContainerView; long long _contentOverlayInsetUpdateIgnoreCount; SBHomeGrabberView *_grabberView; SBFHomeGrabberSettings *_grabberSettings; BOOL _hasPreservedInputViews; BOOL _isDisplayLayoutElementActive; SBKeyboardHomeAffordanceAssertion *_keyboardHomeAffordanceAssertion; UIWindow *_keyboardHomeAffordanceAssertionWindow; UIView *_presentationBackgroundView; long long _presentationPrefersHomeGrabberHidden; UIStatusBar *_statusBar; long long _keyboardVisible; BOOL _allowsStackingOverlayContentAbove; BOOL _contentOpaque; BOOL _prefersProximityDetectionEnabled; BOOL _prefersStatusBarActivityItemVisible; BOOL _shouldDisableBanners; BOOL _shouldDisableControlCenter; BOOL _shouldDisableReachability; BOOL _shouldDisableInteractiveScreenshotGesture; BOOL _shouldDisableSiri; BOOL _shouldPendAlertItems; BOOL _shouldDisableOrientationUpdates; BOOL _presentationAllowsHomeGrabberAutoHide; BOOL _presentationPrefersStatusBarHidden; int _preferredStatusBarStyleOverridesToCancel; int _pictureInPictureProcessIdentifier; UIView *_contentView; UIView *_backgroundView; _UILegibilitySettings *_preferredStatusBarLegibilitySettings; id <SBIdleTimerCoordinating> _idleTimerCoordinator; long long _containerOrientation; long long _preferredLockedGestureDismissalStyle; long long _preferredUnlockedGestureDismissalStyle; SBDisplayItem *_representedDisplayItem; FBDisplayLayoutElement *_displayLayoutElement; id <SBTransientOverlayViewControllerDelegate> _transientOverlayDelegate; UIStatusBarStyleRequest *_currentStatusBarStyleRequest; double _presentationContentCornerRadius; double _presentationHomeGrabberAlpha; double _presentationHomeGrabberAdditionalEdgeSpacing; CGAffineTransform _presentationContentTransform; } @property(readonly, nonatomic) BOOL presentationPrefersStatusBarHidden; // @synthesize presentationPrefersStatusBarHidden=_presentationPrefersStatusBarHidden; @property(nonatomic) double presentationHomeGrabberAdditionalEdgeSpacing; // @synthesize presentationHomeGrabberAdditionalEdgeSpacing=_presentationHomeGrabberAdditionalEdgeSpacing; @property(nonatomic) double presentationHomeGrabberAlpha; // @synthesize presentationHomeGrabberAlpha=_presentationHomeGrabberAlpha; @property(nonatomic) CGAffineTransform presentationContentTransform; // @synthesize presentationContentTransform=_presentationContentTransform; @property(nonatomic) double presentationContentCornerRadius; // @synthesize presentationContentCornerRadius=_presentationContentCornerRadius; @property(nonatomic) BOOL presentationAllowsHomeGrabberAutoHide; // @synthesize presentationAllowsHomeGrabberAutoHide=_presentationAllowsHomeGrabberAutoHide; @property(readonly, copy, nonatomic) UIStatusBarStyleRequest *currentStatusBarStyleRequest; // @synthesize currentStatusBarStyleRequest=_currentStatusBarStyleRequest; @property(nonatomic) __weak id <SBTransientOverlayViewControllerDelegate> transientOverlayDelegate; // @synthesize transientOverlayDelegate=_transientOverlayDelegate; @property(readonly, nonatomic) int pictureInPictureProcessIdentifier; // @synthesize pictureInPictureProcessIdentifier=_pictureInPictureProcessIdentifier; @property(retain, nonatomic) FBDisplayLayoutElement *displayLayoutElement; // @synthesize displayLayoutElement=_displayLayoutElement; @property(readonly, copy, nonatomic) SBDisplayItem *representedDisplayItem; // @synthesize representedDisplayItem=_representedDisplayItem; @property(readonly, nonatomic) long long preferredUnlockedGestureDismissalStyle; // @synthesize preferredUnlockedGestureDismissalStyle=_preferredUnlockedGestureDismissalStyle; @property(readonly, nonatomic) long long preferredLockedGestureDismissalStyle; // @synthesize preferredLockedGestureDismissalStyle=_preferredLockedGestureDismissalStyle; @property(readonly, nonatomic) BOOL shouldDisableOrientationUpdates; // @synthesize shouldDisableOrientationUpdates=_shouldDisableOrientationUpdates; @property(nonatomic) long long containerOrientation; // @synthesize containerOrientation=_containerOrientation; @property(nonatomic) __weak id <SBIdleTimerCoordinating> idleTimerCoordinator; // @synthesize idleTimerCoordinator=_idleTimerCoordinator; @property(readonly, nonatomic) BOOL shouldPendAlertItems; // @synthesize shouldPendAlertItems=_shouldPendAlertItems; @property(readonly, nonatomic) BOOL shouldDisableSiri; // @synthesize shouldDisableSiri=_shouldDisableSiri; @property(readonly, nonatomic) BOOL shouldDisableInteractiveScreenshotGesture; // @synthesize shouldDisableInteractiveScreenshotGesture=_shouldDisableInteractiveScreenshotGesture; @property(readonly, nonatomic) BOOL shouldDisableReachability; // @synthesize shouldDisableReachability=_shouldDisableReachability; @property(readonly, nonatomic) BOOL shouldDisableControlCenter; // @synthesize shouldDisableControlCenter=_shouldDisableControlCenter; @property(readonly, nonatomic) BOOL shouldDisableBanners; // @synthesize shouldDisableBanners=_shouldDisableBanners; @property(readonly, nonatomic) BOOL prefersStatusBarActivityItemVisible; // @synthesize prefersStatusBarActivityItemVisible=_prefersStatusBarActivityItemVisible; @property(readonly, nonatomic) int preferredStatusBarStyleOverridesToCancel; // @synthesize preferredStatusBarStyleOverridesToCancel=_preferredStatusBarStyleOverridesToCancel; @property(readonly, copy, nonatomic) _UILegibilitySettings *preferredStatusBarLegibilitySettings; // @synthesize preferredStatusBarLegibilitySettings=_preferredStatusBarLegibilitySettings; @property(readonly, nonatomic) BOOL prefersProximityDetectionEnabled; // @synthesize prefersProximityDetectionEnabled=_prefersProximityDetectionEnabled; @property(readonly, nonatomic, getter=isContentOpaque) BOOL contentOpaque; // @synthesize contentOpaque=_contentOpaque; @property(readonly, nonatomic) BOOL allowsStackingOverlayContentAbove; // @synthesize allowsStackingOverlayContentAbove=_allowsStackingOverlayContentAbove; @property(readonly, nonatomic) UIView *backgroundView; // @synthesize backgroundView=_backgroundView; // - (void).cxx_destruct; - (void)_setDisplayLayoutElementActive:(BOOL)arg1; - (void)_updateGrabberViewHiddenConfigurationAnimated:(BOOL)arg1; - (void)_updateGrabberViewConfiguration; - (void)_invalidateKeyboardHomeAffordanceAssertion; - (CGRect)_currentStatusBarFrameForStyle:(long long)arg1; - (void)_applyStatusBarStyleRequestWithInitialStatusBarSettings:(id)arg1; - (id)_newHomeGrabberViewWithFrame:(CGRect)arg1; - (void)_keyboardWillShowNotification:(id)arg1; - (void)_keyboardWillHideNotification:(id)arg1; - (void)removePresentationBackgroundView:(id)arg1; - (void)addPresentationBackgroundView:(id)arg1; - (void)setPresentationPrefersStatusBarHidden:(BOOL)arg1 initialStatusBarSettings:(id)arg2; - (void)setPresentationPrefersHomeGrabberHidden:(BOOL)arg1 animated:(BOOL)arg2; - (void)setNeedsSceneDeactivationUpdate; - (void)setNeedsProximityDetectionUpdate; - (void)setNeedsOrientationUpdatesDisabledUpdate; - (void)setNeedsIdleTimerReset; - (void)setNeedsGestureDismissalStyleUpdate; - (void)setNeedsFeaturePolicyUpdate; - (void)setNeedsContentOpaqueUpdate; - (void)restoreInputViewsAnimated:(BOOL)arg1; - (void)preserveInputViewsAnimated:(BOOL)arg1; - (id)newTransientOverlayPresentationTransitionCoordinator; - (id)newTransientOverlayDismissalTransitionCoordinator; - (void)handlePictureInPictureDidBegin; - (BOOL)handleDoubleHeightStatusBarTap; - (void)endIgnoringContentOverlayInsetUpdates; - (void)beginIgnoringContentOverlayInsetUpdates; - (void)endIgnoringAppearanceUpdates; - (void)beginIgnoringAppearanceUpdates; @property(readonly, copy, nonatomic) id /* CDUnknownBlockType */ sceneDeactivationPredicate; @property(readonly, copy, nonatomic) NSNumber *preferredSceneDeactivationReasonValue; @property(readonly, copy, nonatomic) NSString *preferredDisplayLayoutElementIdentifier; @property(readonly, nonatomic) BOOL isIgnoringContentOverlayInsetUpdates; @property(readonly, nonatomic) BOOL isIgnoringAppearanceUpdates; @property(readonly, nonatomic) BOOL hasVisibleStatusBar; @property(readonly, nonatomic) UIView *contentView; // @synthesize contentView=_contentView; - (UIEdgeInsets)_edgeInsetsForChildViewController:(id)arg1 insetsAreAbsolute:(BOOL )arg2; - (void)viewDidMoveToWindow:(id)arg1 shouldAppearOrDisappear:(BOOL)arg2; - (void)viewWillTransitionToSize:(CGSize)arg1 withTransitionCoordinator:(id)arg2; - (void)viewDidLoad; - (void)viewDidLayoutSubviews; - (void)viewDidDisappear:(BOOL)arg1; - (void)viewDidAppear:(BOOL)arg1; - (BOOL)shouldAutorotate; - (NSUInteger)supportedInterfaceOrientations; - (void)setNeedsWhitePointAdaptivityStyleUpdate; - (void)setNeedsUpdateOfHomeIndicatorAutoHidden; - (void)setNeedsUpdateOfScreenEdgesDeferringSystemGestures; - (void)setNeedsStatusBarAppearanceUpdate; - (long long)preferredInterfaceOrientationForPresentation; - (id)coordinatorRequestedIdleTimerBehavior:(id)arg1; @property(readonly, nonatomic) long long idleWarnMode; @property(readonly, nonatomic) long long idleTimerMode; @property(readonly, nonatomic) long long idleTimerDuration; - (BOOL)shouldAllowAutoHideForHomeGrabberView:(id)arg1; - (BOOL)shouldAllowThinStyleForHomeGrabberView:(id)arg1; - (double)additionalEdgeSpacingForHomeGrabberView:(id)arg1; - (BOOL)handleVolumeDownButtonPress; - (BOOL)handleVolumeUpButtonPress; - (BOOL)handleLockButtonPress; - (BOOL)handleHomeButtonLongPress; - (BOOL)handleHomeButtonDoublePress; - (BOOL)handleHomeButtonPress; - (BOOL)handleHeadsetButtonPress:(BOOL)arg1; - (id)descriptionBuilderWithMultilinePrefix:(id)arg1; - (id)descriptionWithMultilinePrefix:(id)arg1; - (id)succinctDescriptionBuilder; - (id)succinctDescription; @property(readonly, copy) NSString *description; - (void)dealloc; - (id)initWithNibName:(id)arg1 bundle:(id)arg2; @end
Medication refusal by psychiatric inpatients in the military. Military psychiatrists must occasionally treat mentally ill active duty patients who refuse medications. Unlike their civilian counterparts, military psychiatrists have no established procedure to allow for involuntary treatment under non-emergency conditions. The following case and discussion is presented to illustrate how existing guidelines do not allow for optimal care of some of these patients.
If food has the "USDA Organic" seal, it means that it is certified organic and has met all of the standards necessary when inspected by a government-approved certified inspector. For crops (i.e., corn, wheat), that means no synthetic fertilizers, sewage sludge, prohibited pesticides, irradiation or genetically modified organisms were used. For livestock, it means antibiotics and growth hormones were not used, and health and welfare standards were met for the animals. For other multi-ingredient foods, it means that it has at least 95 percent certified organic content. � Cut it up and make napkins out of it. � Use as a dropcloth. � Keep in the back of a car to put pets and plants on. � Wrap big presents with it. � Use for a picnic. DEAR HELOISE: As a soon-to-be new mom, I received a lot of good advice on what to put in the diaper bag. One thing mentioned was to recycle the bags that your newspaper comes in and use them to transport soiled clothing or toss a smelly diaper. I also found that other baby items (sheets) came in clear, heavy plastic bags that have snaps and can easily be reused. Best of all, both options are free! - Jennifer K., Fort Wayne, Ind. DEAR HELOISE: Here is a hint for those disposable pie tins, butter tubs, baby-food jars and round oatmeal containers: Give them to a preschool. Pie tins and butter tubs can be used for paint, glue, feathers or sequins for art projects. Somebody's trash is another person's treasure. I know we appreciate them. - Christine in Fillmore, Calif.
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Oracle Batch Service // // This is a Oracle Batch Service. You can find out more about at // wiki (https://confluence.oraclecorp.com/confluence/display/C9QA/OCI+Batch+Service+-+Core+Functionality+Technical+Design+and+Explanation+for+Phase+I). // package batch import ( "github.com/erikcai/oci-go-sdk/v33/common" ) // CreateBatchInstanceDetails Details for creating a new batch instance. // Batch instance is a definition that associate an OKE cluster with Batch Service, // customer can create Compute environment, Job definition and submit Job upon Batch instance. type CreateBatchInstanceDetails struct { // The OCID of the cmpartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID of the cluster. ClusterId *string `mandatory:"true" json:"clusterId"` // The name of the batch instance must consist of lower case alphanumeric characters or ‘-’, // start with an alphabetic character, and end with an alphanumeric character, // (e.g.’my-name’ or ‘abc-123’ or 'batchinstance') // When not provided, the system generate value using the format "<resourceType><timestamp>", example: batchinstance20181211220642. DisplayName *string `mandatory:"false" json:"displayName"` // Free-form tags associated with this resource. Each tag is a key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } func (m CreateBatchInstanceDetails) String() string { return common.PointerString(m) }
A Potential Causal Association Mining Algorithm for Screening Adverse Drug Reactions in Postmarketing Surveillance Early detection of unknown adverse drug reactions (ADRs) in postmarketing surveillance saves lives and prevents harmful consequences. We propose a novel data mining approach to signaling potential ADRs from electronic health databases. More specifically, we introduce potential causal association rules (PCARs) to represent the potential causal relationship between a drug and ICD-9 (CDC.. International Classification of Diseases, Ninth Revision (ICD-9). . Available: http://www.cdc.gov/nchs/icd/icd9.html) coded signs or symptoms representing potential ADRs. Due to the infrequent nature of ADRs, the existing frequency-based data mining methods cannot effectively discover PCARs. We introduce a new interestingness measure, potential causal leverage, to quantify the degree of association of a PCAR. This measure is based on the computational, experience-based fuzzy recognition-primed decision (RPD) model that we developed previously (Y. Ji, R. M. Massanari, J. Ager, J. Yen, R. E. Miller, and H. Ying, A fuzzy logic-based computational recognition-primed decision model, Inf. Sci., vol. 177, pp. 4338-4353, 2007) on the basis of the well-known, psychology-originated qualitative RPD model (G. A. Klein, A recognition-primed decision making model of rapid decision making, in Decision Making in Action: Models and Methods, 1993, pp. 138-147). The potential causal leverage assesses the strength of the association of a drug-symptom pair given a collection of patient cases. To test our data mining approach, we retrieved electronic medical data for 16 206 patients treated by one or more than eight drugs of our interest at the Veterans Affairs Medical Center in Detroit between 2007 and 2009. We selected enalapril as the target drug for this ADR signal generation study. We used our algorithm to preliminarily evaluate the associations between enalapril and all the ICD-9 codes associated with it. The experimental results indicate that our approach has a potential to better signal potential ADRs than risk ratio and leverage, two traditional frequency-based measures. Among the top 50 signal pairs (i.e., enalapril versus symptoms) ranked by the potential causal-leverage measure, the physicians on the project determined that eight of them probably represent true causal associations.