blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 390 | content_id stringlengths 40 40 | detected_licenses listlengths 0 35 | license_type stringclasses 2 values | repo_name stringlengths 6 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 539 values | visit_date timestamp[us]date 2016-08-02 21:09:20 2023-09-06 10:10:07 | revision_date timestamp[us]date 1990-01-30 01:55:47 2023-09-05 21:45:37 | committer_date timestamp[us]date 2003-07-12 18:48:29 2023-09-05 21:45:37 | github_id int64 7.28k 684M ⌀ | star_events_count int64 0 77.7k | fork_events_count int64 0 48k | gha_license_id stringclasses 13 values | gha_event_created_at timestamp[us]date 2012-06-11 04:05:37 2023-09-14 21:59:18 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-28 02:39:21 ⌀ | gha_language stringclasses 62 values | src_encoding stringclasses 26 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 128 12.8k | extension stringclasses 11 values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 79 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c29fe5da4e44c5770e567f51e9f29d27834110e | a4f7ff95c302b92eefe4a93f2977db55c9b5b3bc | /src/test/java/com/codeborne/selenide/impl/DummyClock.java | 860d8e7180186a157851aa22e04f12aa94a05a1b | [
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | selenide/selenide | d33e10a99f7df9578c478e279f051ec936851078 | 1fe877055966288f95e6c8c3c2853878f86141e5 | refs/heads/main | 2023-08-25T15:03:16.734406 | 2023-08-24T17:24:48 | 2023-08-24T17:24:48 | 3,376,848 | 1,075 | 399 | MIT | 2023-09-13T06:35:14 | 2012-02-07T11:44:33 | Java | UTF-8 | Java | false | false | 250 | java | package com.codeborne.selenide.impl;
class DummyClock extends Clock {
private final long currentTime;
DummyClock(long currentTime) {
this.currentTime = currentTime;
}
@Override
public long timestamp() {
return currentTime;
}
}
| [
"andrei.solntsev@gmail.com"
] | andrei.solntsev@gmail.com |
646dbc2f87816d8b927d6862c7b9019fb205e9b0 | 00b01530c085ba23b197eb7702daeadb5402c4f5 | /src/main/java/io/dorune/book/dp/headfirst/ducks/DuckTestDrive.java | 039e02f2c8cf749bc50b03b207e1775a016ee1b4 | [] | no_license | piyoro/book | 119e79e856fe6f8766b794ca69379595ee184092 | 8aa0ec67d57a245f7ea208534d82eb3655386b76 | refs/heads/master | 2020-12-08T19:40:08.145469 | 2020-05-07T14:17:21 | 2020-05-07T14:17:21 | 233,076,350 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 552 | java | package io.dorune.book.dp.headfirst.ducks;
public class DuckTestDrive {
public static void main(String[] args) {
MallardDuck duck = new MallardDuck();
WildTurkey turkey = new WildTurkey();
Duck turkeyAdapter = new TurkeyAdapter(turkey);
System.out.println("The Turkey says...");
turkey.gobble();
turkey.fly();
System.out.println("\nThe Duck says...");
testDuck(duck);
System.out.println("\nThe TurkeyAdapter says...");
testDuck(turkeyAdapter);
}
static void testDuck(Duck duck) {
duck.quack();
duck.fly();
}
}
| [
"piyor@DESKTOP-2M514K4"
] | piyor@DESKTOP-2M514K4 |
cc63b596cc835f44e877d711ab488dc8fa70e962 | 6253283b67c01a0d7395e38aeeea65e06f62504b | /decompile/app/HwPowerGenieEngine3/src/main/java/com/huawei/powergenie/api/IAppManager.java | 340afa1907cc2fc05e1699d2efa0063eb6337f8a | [] | no_license | sufadi/decompile-hw | 2e0457a0a7ade103908a6a41757923a791248215 | 4c3efd95f3e997b44dd4ceec506de6164192eca3 | refs/heads/master | 2023-03-15T15:56:03.968086 | 2017-11-08T03:29:10 | 2017-11-08T03:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,068 | java | package com.huawei.powergenie.api;
import android.content.Context;
import com.huawei.powergenie.core.app.AppInfoRecord;
import java.util.ArrayList;
import java.util.List;
public interface IAppManager {
ArrayList<String> getActiveHighPowerLocationApps(Context context);
AppInfoRecord getAppInfoRecord(String str);
ArrayList<String> getAudioPlayingPkg();
ArrayList<String> getCleanProtectApps();
ArrayList<String> getCleanUnprotectApps();
ArrayList<String> getCurScrOffAlarmApps(int i, int i2);
int getCurScrOffAlarmCount(String str);
int getCurScrOffAlarmFreq(String str);
int getCurUserId();
ArrayList<String> getExtrModeV2ReserveApps();
List<String> getHibernateApps();
String getNFCPayApp();
int getPidByUid(int i);
ArrayList<Integer> getPidsByPkg(String str);
ArrayList<String> getPkgFromSystem(int i);
ArrayList<String> getPkgNameByUid(Context context, int i);
String getPlayingPkg();
ArrayList<String> getRuningApp(Context context);
int getSignature(Context context, String str);
ArrayList<String> getTopTasksApps(int i);
ArrayList<String> getTotalScrOffAlarmApps(int i, int i2, int i3);
int getTotalScrOffAlarmCount(String str);
int getTotalScrOffAlarmFreq(String str);
long getTotalWakeupsSinceScrOff();
int getUidByPid(int i);
int getUidByPkg(String str);
int getUidByPkgFromOwner(String str);
ArrayList<String> getUsingLocationServicePkgs();
void handleNonActiveTimeout();
boolean hasLauncherIcon(Context context, String str);
boolean hasNotification(String str);
boolean hibernateApps(List<String> list, String str);
boolean isAbnormalPowerAppClsSwitchOn();
boolean isAlarmFreqEmpty();
boolean isBleApp(Context context, String str);
boolean isCleanDBExist();
boolean isCleanProtectApp(String str);
boolean isCleanUnprotectApp(String str);
boolean isDependedByFrontApp(String str);
boolean isDependedByOtherApp(ArrayList<Integer> arrayList);
boolean isDependsAudioActiveApp(ArrayList<Integer> arrayList);
boolean isExtrModeV2ReserveApp(String str);
boolean isForceCleanApp(String str);
boolean isForeignSuperApp(String str);
boolean isForeignSuperAppPolicy();
boolean isIAwareProtectNotCleanApp(String str);
boolean isIgnoreAudioApp(String str);
boolean isIgnoreAudioApps(String[] strArr);
boolean isIgnoreFrontApp(String str);
boolean isIgnoreGpsApp(String str);
boolean isPermitRestrictNetApp(String str);
boolean isShowTopView(int i, int i2, String str);
boolean isSimplifiedChinese();
boolean isStandbyDBExist();
boolean isStandbyProtectApp(String str);
boolean isStandbyUnprotectApp(String str);
boolean isSystemApp(Context context, String str);
void loadAppWidget(ArrayList<String> arrayList);
void removeProcessDependency(int i);
void removeProtectAppsFromIAware(ArrayList<String> arrayList);
boolean wakeupApps(List<String> list, String str);
}
| [
"liming@droi.com"
] | liming@droi.com |
a651205cd494d165b03be57fe7af109e865767c9 | 7f33367ee21309d66c5a8d2c26a05dc2ed1f6a17 | /src/main/java/com/bytatech/ayoos/service/DMSRecordService.java | 62353a56f0f80c4b3c1e1dc5b36c59cf9d2a83f5 | [] | no_license | AyoosByta/PATIENT-MICROSERVICE | d2e64e834f36e822ca49f130ba66a9c249d9d75e | adbb1af1191030485caccd56b77ffc138bc5734d | refs/heads/develop | 2022-12-23T11:18:32.589102 | 2019-12-23T06:28:48 | 2019-12-23T06:28:48 | 215,268,820 | 0 | 1 | null | 2022-12-10T05:39:52 | 2019-10-15T10:16:04 | Java | UTF-8 | Java | false | false | 1,250 | java | package com.bytatech.ayoos.service;
import com.bytatech.ayoos.service.dto.DMSRecordDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
/**
* Service Interface for managing DMSRecord.
*/
public interface DMSRecordService {
/**
* Save a dMSRecord.
*
* @param dMSRecordDTO the entity to save
* @return the persisted entity
*/
DMSRecordDTO save(DMSRecordDTO dMSRecordDTO);
/**
* Get all the dMSRecords.
*
* @param pageable the pagination information
* @return the list of entities
*/
Page<DMSRecordDTO> findAll(Pageable pageable);
/**
* Get the "id" dMSRecord.
*
* @param id the id of the entity
* @return the entity
*/
Optional<DMSRecordDTO> findOne(Long id);
/**
* Delete the "id" dMSRecord.
*
* @param id the id of the entity
*/
void delete(Long id);
/**
* Search for the dMSRecord corresponding to the query.
*
* @param query the query of the search
*
* @param pageable the pagination information
* @return the list of entities
*/
Page<DMSRecordDTO> search(String query, Pageable pageable);
}
| [
"abdul.rafeek@lxisoft.com"
] | abdul.rafeek@lxisoft.com |
23e78aa215922a0c111c0ce4b84c3eeddf95ff7b | 29b66284348c179f49681da783937a10f86ce9b0 | /broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/ReceivingLinkListener.java | 448f7e3973d748a32aa9a9eba8d02410d8256f12 | [
"Apache-2.0",
"MIT"
] | permissive | scholzj/qpid-java | 8da01d46f28b478520fdcf1def24b3946cf38c86 | 47d7a5064a2a49a2b5c107a340a7b5e1a9d7dbfe | refs/heads/trunk | 2022-06-16T21:32:19.633099 | 2016-05-18T12:28:41 | 2016-05-18T12:28:41 | 59,192,059 | 0 | 0 | Apache-2.0 | 2022-06-08T06:30:54 | 2016-05-19T09:19:18 | Java | UTF-8 | Java | false | false | 1,413 | java | /*
* 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 org.apache.qpid.server.protocol.v1_0;
import org.apache.qpid.server.protocol.v1_0.type.transport.*;
public interface ReceivingLinkListener extends LinkEventListener
{
void messageTransfer(Transfer xfr);
class DefaultLinkEventListener implements ReceivingLinkListener
{
public void messageTransfer(final Transfer xfr)
{
}
public void remoteDetached(final LinkEndpoint endpoint, final Detach detach)
{
endpoint.detach();
}
}
public static final ReceivingLinkListener DEFAULT = new DefaultLinkEventListener();
}
| [
"rgodfrey@apache.org"
] | rgodfrey@apache.org |
859914e0796f72d5874fbc5a4aa83010d70d5a3a | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/9/9_73b733e32d7dbb1e1c141ec959e780d460aed00e/JDINullValue/9_73b733e32d7dbb1e1c141ec959e780d460aed00e_JDINullValue_s.java | 2035db02a8252ed87f7329e46981199d118af642 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 1,879 | java | /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.debug.core.model;
import java.util.Collections;
import java.util.List;
import org.eclipse.jdt.debug.core.IJavaType;
/**
* Represents a value of "null"
*/
public class JDINullValue extends JDIValue {
public JDINullValue(JDIDebugTarget target) {
super(target, null);
}
protected List getVariablesList() {
return Collections.EMPTY_LIST;
}
/**
* @see IValue#getReferenceTypeName()
*/
public String getReferenceTypeName() {
return "null"; //$NON-NLS-1$
}
/**
* @see IValue#getValueString()
*/
public String getValueString() {
return "null"; //$NON-NLS-1$
}
/**
* @see IJavaValue#getSignature()
*/
public String getSignature() {
return null;
}
/**
* @see IJavaValue#getArrayLength()
*/
public int getArrayLength() {
return -1;
}
/**
* @see IJavaValue#getJavaType()
*/
public IJavaType getJavaType() {
return null;
}
/**
* @see Object#equals(Object)
*/
public boolean equals(Object obj) {
return obj instanceof JDINullValue;
}
/**
* @see Object#hashCode()
*/
public int hashCode() {
return getClass().hashCode();
}
/**
* @see java.lang.Object#toString()
*/
public String toString() {
return "null"; //$NON-NLS-1$
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
85d21c79f11bd38d6d950b8ff9b69a6ac97aabef | 993a4b71475061978574f361a703204fc37f5138 | /phoneme_advanced-mr1-rel-b06/src/share/classes/sun/text/resources/DateFormatZoneData_en.java | a4118bd14a5032c57e2f176f8fdec5060117f3da | [] | no_license | PhoneJ2ME/releases | 1d93e51e0081a1d331ea0cf1c1f1e5d55f0914cc | 6585f23149f090e0ff3a94ee61cae6bf2394e78b | refs/heads/master | 2021-01-19T10:39:17.955758 | 2008-12-17T20:32:36 | 2008-12-17T20:32:36 | 82,216,780 | 4 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,264 | java | /*
* Portions Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License version 2 for more details (a copy is included at
* /legal/license.txt).
*
* You should have received a copy of the GNU General Public
* License version 2 along with this work; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 or visit www.sun.com if you need additional information or have
* any questions.
*/
/*
* (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
* (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
*
* The original version of this source code and documentation
* is copyrighted and owned by Taligent, Inc., a wholly-owned
* subsidiary of IBM. These materials are provided under terms
* of a License Agreement between Taligent and Sun. This technology
* is protected by multiple US and International patents.
*
* This notice and attribution to Taligent may not be removed.
* Taligent is a registered trademark of Taligent, Inc.
*
*/
package sun.text.resources;
/**
* Supplement package private date-time formatting zone data for DateFormat.
* DateFormatData used in DateFormat will be initialized by loading the data
* from LocaleElements and DateFormatZoneData resources. The zone data are
* represented with the following form:
* {ID, new String[] {ID, long zone string, short zone string, long daylight
* string, short daylight string, representative city of zone}}, where ID is
* NOT localized, but is used to look up the localized timezone data
* internally. Localizers can localize any zone strings except
* for the ID of the timezone.
* Also, localizer should not touch "localPatternChars" entry.
*
* @see Format
* @see DateFormatData
* @see LocaleElements
* @see SimpleDateFormat
* @see TimeZone
* @version 1.18 08/28/01
* @author Chen-Lieh Huang
* @author Alan Liu
*/
// US DateFormatZoneData
//
public final class DateFormatZoneData_en extends DateFormatZoneData
{
public Object[][] getContents() {
return new Object[][] {
// Zones should have unique names and abbreviations within this locale.
// Names and abbreviations may be identical if the corresponding zones
// really are identical. E.g.: America/Phoenix and America/Denver both
// use MST; these zones differ only in that America/Denver uses MDT as
// well.
//
// We list both short and long IDs. Short IDs come first so that they
// are chosen preferentially during parsing of zone names.
{"localPatternChars", "GyMdkHmsSEDFwWahKzZ"},
};
}
}
| [
"hinkmond@6dfe35fe-931f-0410-af5f-a91b034811cd"
] | hinkmond@6dfe35fe-931f-0410-af5f-a91b034811cd |
8c7a3210bf411aa8185d1a57a8b0ed6e9669b9a5 | a88404e860f9e81f175d80c51b8e735fa499c93c | /hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/EventCapabilityMode.java | f6125f8b84b88da06cc952e26f4cf1783620a916 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sabri0/hapi-fhir | 4a53409d31b7f40afe088aa0ee8b946860b8372d | c7798fee4880ee8ffc9ed2e42c29c3b8f6753a1c | refs/heads/master | 2020-06-07T20:02:33.258075 | 2019-06-18T09:40:00 | 2019-06-18T09:40:00 | 193,081,738 | 2 | 0 | Apache-2.0 | 2019-06-21T10:46:17 | 2019-06-21T10:46:17 | null | UTF-8 | Java | false | false | 3,357 | java | package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* 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.
* Neither the name of HL7 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 HOLDER 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.
*/
// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
import org.hl7.fhir.exceptions.FHIRException;
public enum EventCapabilityMode {
/**
* The application sends requests and receives responses.
*/
SENDER,
/**
* The application receives requests and sends responses.
*/
RECEIVER,
/**
* added to help the parsers
*/
NULL;
public static EventCapabilityMode fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("sender".equals(codeString))
return SENDER;
if ("receiver".equals(codeString))
return RECEIVER;
throw new FHIRException("Unknown EventCapabilityMode code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case SENDER: return "sender";
case RECEIVER: return "receiver";
default: return "?";
}
}
public String getSystem() {
return "http://hl7.org/fhir/event-capability-mode";
}
public String getDefinition() {
switch (this) {
case SENDER: return "The application sends requests and receives responses.";
case RECEIVER: return "The application receives requests and sends responses.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case SENDER: return "Sender";
case RECEIVER: return "Receiver";
default: return "?";
}
}
}
| [
"jamesagnew@gmail.com"
] | jamesagnew@gmail.com |
647a4b2b40e070d9bf60e090926d82dd59bd5782 | db1d29246f3a02d1ea9a13552fcf330164979b6e | /alpaca-common/src/main/java/cn/ucaner/alpaca/framework/utils/tools/db/handler/NumberHandler.java | a4bc0ebf40145f02d69e28f71b8136a2a61fd882 | [
"Apache-2.0"
] | permissive | Jasonandy/alpaca | ceace4cb9662996a36daf471a826f4ede56bd105 | 08514459b4d3ab02cded0d45c321140aff406950 | refs/heads/master | 2020-03-17T05:46:01.106620 | 2018-06-25T06:54:58 | 2018-06-25T06:54:58 | 132,857,096 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,050 | java | /**
* <html>
* <body>
* <P> Copyright 1994 JsonInternational</p>
* <p> All rights reserved.</p>
* <p> Created on 19941115</p>
* <p> Created by Jason</p>
* </body>
* </html>
*/
package cn.ucaner.alpaca.framework.utils.tools.db.handler;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* @Package:cn.ucaner.alpaca.framework.utils.tools.db.handler
* @ClassName:NumberHandler
* @Description: <p> 处理为数字结果,当查询结果为单个数字时使用此处理器(例如select count(1)) </p>
* @Author: - wubin
* @CreatTime:2018年5月25日 下午2:37:27
* @Modify By:
* @ModifyTime: 2018年5月25日
* @Modify marker:
* @version V1.0
*/
public class NumberHandler implements RsHandler<Number>{
/**
* 创建一个 NumberHandler对象
* @return NumberHandler对象
*/
public static NumberHandler create() {
return new NumberHandler();
}
@Override
public Number handle(ResultSet rs) throws SQLException {
return rs.next() ? rs.getBigDecimal(1) : null;
}
}
| [
"jasonandy@hotmail.com"
] | jasonandy@hotmail.com |
290239fe918e8a28a499f41e91217cd4d3635f7c | 385c61a2d158bae1c4749432c6633abeb3fb298e | /com/google/android/gms/maps/model/C0190d.java | a6e283ec4961e87c46c3c5619326dda050714e0f | [] | no_license | niketpatel2525/Tic-Tac-Toe | a17b84a242aac0ab084b99fb8e98e11955235291 | 123bcea632dc03b4e3f85a766ade71dbed1e4a66 | refs/heads/master | 2021-01-21T08:08:47.747336 | 2017-02-27T17:56:06 | 2017-02-27T17:56:06 | 83,339,606 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 564 | java | package com.google.android.gms.maps.model;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.C0067b;
/* renamed from: com.google.android.gms.maps.model.d */
public class C0190d {
static void m748a(LatLngBounds latLngBounds, Parcel parcel, int i) {
int k = C0067b.m133k(parcel);
C0067b.m131c(parcel, 1, latLngBounds.getVersionCode());
C0067b.m120a(parcel, 2, latLngBounds.southwest, i, false);
C0067b.m120a(parcel, 3, latLngBounds.northeast, i, false);
C0067b.m112C(parcel, k);
}
}
| [
"niketpatel2525@gmail.com"
] | niketpatel2525@gmail.com |
dd5a502b5f41149269759575bd2fc01b8e48b4f1 | ed5159d056e98d6715357d0d14a9b3f20b764f89 | /src/irvine/oeis/a077/A077831.java | 521a6dc230affe9e2f4d22d891159012736cf77b | [] | no_license | flywind2/joeis | c5753169cf562939b04dd246f8a2958e97f74558 | e5efd6971a0062ac99f4fae21a7c78c9f9e74fea | refs/heads/master | 2020-09-13T18:34:35.080552 | 2019-11-19T05:40:55 | 2019-11-19T05:40:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 402 | java | package irvine.oeis.a077;
// Generated by gen_pattern.pl - DO NOT EDIT here!
import irvine.oeis.GeneratingFunctionSequence;
/**
* A077831 Expansion of <code>1/(1-3*x-2*x^2-2*x^3)</code>.
* @author Georg Fischer
*/
public class A077831 extends GeneratingFunctionSequence {
/** Construct the sequence. */
public A077831() {
super(0, new long[] {1},
new long[] {1, -3, -2, -2});
}
}
| [
"sean.irvine@realtimegenomics.com"
] | sean.irvine@realtimegenomics.com |
72e3858332b50b88f332166a588229be78ac85e1 | 79c83a09bb8227683cec96ad80c9529abab3e215 | /mybatis-demo/src/main/java/com/kkb/mybatis/dao/UserDao.java | 566db7998c2bbad61b78e6082c75ac1b17e9d8bd | [] | no_license | Wilsoncyf/mybatis2 | 5924eea0a90985dc153a951c42e3fcf70ef7db45 | bdf5ef38c7438fc360315657c495b64f9061af6d | refs/heads/master | 2023-03-15T05:53:35.433807 | 2021-03-22T16:01:33 | 2021-03-22T16:01:33 | 350,403,036 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 331 | java | package com.kkb.mybatis.dao;
import com.kkb.mybatis.po.User;
public interface UserDao {
/**
* 根据用户Id查询用户信息
* @param param
* @return
*/
User queryUserById(User param);
/**
* 根据用户Id查询用户信息
* @param param
* @return
*/
User queryUserById2(User param);
}
| [
"417187306@qq.com"
] | 417187306@qq.com |
71c968e7bc64ea7ebe3f63d60de638fb1bf759b5 | 13c2d3db2d49c40c74c2e6420a9cd89377f1c934 | /program_data/JavaProgramData/24/2266.java | 659661e5ad87828f09d25f2a23bbbbd968a59668 | [
"MIT"
] | permissive | qiuchili/ggnn_graph_classification | c2090fefe11f8bf650e734442eb96996a54dc112 | 291ff02404555511b94a4f477c6974ebd62dcf44 | refs/heads/master | 2021-10-18T14:54:26.154367 | 2018-10-21T23:34:14 | 2018-10-21T23:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 906 | java | package <missing>;
public class GlobalMembers
{
public static void Main()
{
String a = new String(new char[10000]);
int[] k = new int[200];
int l;
int i;
int j = 1;
int[] m = new int[200];
int max = 1;
int min = 1;
a = new Scanner(System.in).nextLine();
for (i = 0;i < a.length();i++)
{
if (a.charAt(i) != ' ' && a.charAt(i) != ',')
{
k[j]++;
}
else
{
if (a.charAt(i) == ' ')
{
m[j] = i;
j++;
}
}
}
m[j] = a.length();
for (i = 1;i <= j;i++)
{
if (k[max] < k[i])
{
max = i;
}
}
for (l = m[max] - k[max];l < m[max] && a.charAt(l) != ',';l++)
{
System.out.printf("%c",a.charAt(l));
}
System.out.print('\n');
for (i = 1;i <= j;i++)
{
if (k[min] > k[i])
{
min = i;
}
}
for (l = m[min] - k[min];l < m[min] && a.charAt(l) != ',';l++)
{
System.out.printf("%c",a.charAt(l));
}
}
}
| [
"y.yu@open.ac.uk"
] | y.yu@open.ac.uk |
de7b000a2ff7bdac76c9f03bba9e56fbdb0b05e6 | cf8e1797728e8f6a18c3d8e4889cdf141b3c620f | /dboe-quack/src/main/java/org/seaborne/dboe/engine/join2/QueryIterHashJoin.java | bd744038eb8e6d7700f4f9f3279045f57da6d3ab | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | anukat2015/mantis | 2a74e6786e6ef2c98f57d1b893da2f0921cf56f3 | 7c062f3f3b15da42948c42c0d9f36c3ff4e253e9 | refs/heads/master | 2021-01-16T00:04:51.840293 | 2015-10-16T20:48:02 | 2015-10-16T20:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,927 | java | /*
* 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.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*/
package org.seaborne.dboe.engine.join2;
import java.util.Iterator ;
import org.apache.jena.atlas.logging.Log ;
import org.seaborne.dboe.engine.* ;
import org.seaborne.dboe.engine.join.Hasher ;
import org.seaborne.dboe.engine.join.JL ;
/** Hash left join.
* This code materializes the right into a probe table
* then hash joins from the left.
*/
//* This code materializes the left into a probe table
//* then hash joins from the right.
public class QueryIterHashJoin<X> extends AbstractIterHashJoin<X> {
/**
* Create a hashjoin QueryIterator.
* @param joinKey Join key - if null, one is guessed by snooping the input QueryIterators
* @param left
* @param right
* @param builder
* @return QueryIterator
*/
public static <X> RowList<X> create(JoinKey joinKey, RowList<X> left, RowList<X> right, RowBuilder<X> builder) {
// // Easy cases.
// if ( ! left.hasNext() || ! right.hasNext() ) {
// left.close() ;
// right.close() ;
// return QueryIterNullIterator.create(execCxt) ;
// }
if ( joinKey != null && joinKey.length() > 1 )
Log.warn(QueryIterHashJoin.class, "Multivariable join key") ;
Iterator<Row<X>> r = new QueryIterHashJoin<>(joinKey, left, right, JL.hash(), builder) ;
return RowLib.createRowList(left.vars(), right.vars(), r) ;
}
/**
* Create a hashjoin QueryIterator.
* @param left
* @param right
* @param builder
* @return QueryIterator
*/
public static <X> RowList<X> create(RowList<X> left, RowList<X> right, RowBuilder<X> builder) {
return create(null, left, right, builder) ;
}
private QueryIterHashJoin(JoinKey joinKey, RowList<X> left, RowList<X> right, Hasher<X> hasher, RowBuilder<X> builder) {
super(joinKey, left, right, hasher, builder) ;
}
@Override
protected Row<X> yieldOneResult(Row<X> rowCurrentProbe, Row<X> rowStream, Row<X> rowResult) {
return rowResult ;
}
@Override
protected Row<X> noYieldedRows(Row<X> rowCurrentProbe) {
return null;
}
@Override
protected Iterator<Row<X>> joinFinished() {
return null;
}
}
| [
"andy@seaborne.org"
] | andy@seaborne.org |
fcf1b49c04c43b9c46495e952b89d56d94a01fc9 | 7e1511cdceeec0c0aad2b9b916431fc39bc71d9b | /flakiness-predicter/input_data/original_tests/activiti-activiti/nonFlakyMethods/org.activiti.engine.test.api.task.TaskVariablesTest-testGetVariablesLocalByTaskIdsForSerializableType.java | 533488750b293f22caa320c6bc249d6f2bd322ea | [
"BSD-3-Clause"
] | permissive | Taher-Ghaleb/FlakeFlagger | 6fd7c95d2710632fd093346ce787fd70923a1435 | 45f3d4bc5b790a80daeb4d28ec84f5e46433e060 | refs/heads/main | 2023-07-14T16:57:24.507743 | 2021-08-26T14:50:16 | 2021-08-26T14:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 764 | java | @Deployment(resources={"org/activiti/engine/test/api/task/TaskVariablesTest.testTaskExecutionVariables.bpmn20.xml"}) public void testGetVariablesLocalByTaskIdsForSerializableType(){
runtimeService.startProcessInstanceByKey("oneTaskProcess").getId();
String taskId=taskService.createTaskQuery().singleResult().getId();
StringBuilder sb=new StringBuilder("a");
for (int i=0; i < 4001; i++) {
sb.append("a");
}
String serializableTypeVar=sb.toString();
taskService.setVariableLocal(taskId,"taskVar1",serializableTypeVar);
Set<String> taskIds=new HashSet<String>();
taskIds.add(taskId);
List<VariableInstance> variables=taskService.getVariableInstancesLocalByTaskIds(taskIds);
assertEquals(serializableTypeVar,variables.get(0).getValue());
}
| [
"aalsha2@masonlive.gmu.edu"
] | aalsha2@masonlive.gmu.edu |
2fe29bf720bd89a7e5041cc5c97b498a5126933d | ca24516288eb8f6fcaa4be94859f01d8254395a2 | /src/main/java/com/xm/testaction/qualitycheck/sum/LoadAllTimeCBean.java | 28a15e9baa7a39c29dea1c5dedf9f6537acdd9ec | [] | no_license | ML-dream/SSM | b462c20afac798b70fcde36b3c721ad5ce981272 | 1d298680f0e54e456ff3cc59aefcf30c19f59e45 | refs/heads/master | 2020-04-10T08:54:46.131359 | 2018-12-12T08:27:30 | 2018-12-12T08:27:30 | 160,919,226 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 946 | java | package com.xm.testaction.qualitycheck.sum;
public class LoadAllTimeCBean {
private String fono;
private String foname;
private String fotype;
private String price;
private String timec;
private String timem; //工时金额
public String getFono() {
return fono;
}
public void setFono(String fono) {
this.fono = fono;
}
public String getFoname() {
return foname;
}
public void setFoname(String foname) {
this.foname = foname;
}
public String getFotype() {
return fotype;
}
public void setFotype(String fotype) {
this.fotype = fotype;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getTimec() {
return timec;
}
public void setTimec(String timec) {
this.timec = timec;
}
public String getTimem() {
return timem;
}
public void setTimem(String timem) {
this.timem = timem;
}
}
| [
"daizhiqiang1001@qq.com"
] | daizhiqiang1001@qq.com |
ebc66c62546c265263442d46b6180ed6de123469 | e5882c6b3e2656e3e2f5b0c7027f12df583241b5 | /minolta/cm2600d/src/main/java/my/opencolor/spectro/minolta/cm2600d/IDRCommand.java | 0cdf8311f97e92e8a7185e6847bc4eeb43ec159e | [] | no_license | opencolor/instrumentation | a32464e78934359094176827a601aad4c941ef96 | 50c4af5ed1cef5f6a135929533e39844e720417a | refs/heads/master | 2021-01-23T03:48:29.233815 | 2009-07-13T10:19:29 | 2009-07-13T10:19:29 | 254,785 | 0 | 0 | null | 2020-10-13T09:15:40 | 2009-07-19T06:20:45 | Java | UTF-8 | Java | false | false | 3,704 | java | /*
* Copyright 2009 Niclas Hedhman.
*
* 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.
*/
/*
* IDRCommand.java
*
* Created on March 18, 2007, 5:14 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package my.opencolor.spectro.minolta.cm2600d;
import my.opencolor.spectro.spi.SpectroCommand;
import my.opencolor.spectro.spi.SpectroEvent;
import java.util.StringTokenizer;
/**
* @author Robin Lee
*/
public class IDRCommand
implements SpectroCommand, CommandStruc
{
private String m_ProductType;
private String m_ROMVersion;
private String m_BodyNumber;
private String m_Geometry;
private int m_MinWaveLength;
private int m_MaxWaveLength;
private int m_WaveLengthPitch;
/**
* Creates a new instance of IDRCommand
*/
public IDRCommand()
{
}
public String construct()
{
return "IDR" + DELIM;
}
public String getName()
{
return "Read Device Identification Command";
}
public SpectroEvent interpret( byte[] valuesin )
{
String response = new String( valuesin );
StringTokenizer sTok = new StringTokenizer( response, "," + DELIM );
if( sTok.countTokens() == 8 )
{
String returnCode = sTok.nextToken();
CM2600dStatus status = CM2600dStatus.create( returnCode );
String str = sTok.nextToken();
if( str.equals( "03" ) )
{
m_ProductType = "CM-2600d";
}
else if( str.equals( "13" ) )
{
m_ProductType = "CM-2500d";
}
str = sTok.nextToken();
if( str.length() == 3 )
{
m_ROMVersion = "" + str.charAt( 0 ) + "." + str.substring( 1 );
}
m_BodyNumber = sTok.nextToken();
str = sTok.nextToken(); // Remove the "0" from the result list, which
m_Geometry = "d/8"; /// means the geometer which is fixed.
m_MinWaveLength = Integer.parseInt( sTok.nextToken() );
m_MaxWaveLength = Integer.parseInt( sTok.nextToken() );
m_WaveLengthPitch = Integer.parseInt( sTok.nextToken() );
return new SpectroEvent( this, status );
}
else
{
CM2600dStatus errstatus = CM2600dStatus.create( "INVALID_RETURN" );
return new SpectroEvent( this, errstatus );
}
}
public String getProductType()
{
return m_ProductType;
}
public String getRomVersion()
{
return m_ROMVersion;
}
public String getBodyNumber()
{
return m_BodyNumber;
}
public String getGeometry()
{
return m_Geometry;
}
public int getMinWaveLength()
{
return m_MinWaveLength;
}
public int getMaxWaveLength()
{
return m_MaxWaveLength;
}
public int getWaveLengthPitch()
{
return m_WaveLengthPitch;
}
}
| [
"niclas@hedhman.org"
] | niclas@hedhman.org |
55dba67bf2b3ca8c9c74fb9f7b9bffea8c54578d | 5479e441b1430b5301298119b3ad637b5e9a9a9a | /openapi-sdk-core/src/main/java/com/yiji/openapi/sdk/exception/ApiServerException.java | 7f260042b8be63e32118243fa40f838df2094667 | [] | no_license | weichk/yiji-sdk | 4e3c0252a10eec91c6f14220994e9be903b68317 | 7715e3feabb3aef32ea8ee0103cafa774204d928 | refs/heads/master | 2022-12-22T12:47:16.898108 | 2019-06-20T07:56:23 | 2019-06-20T07:56:23 | 192,875,193 | 0 | 0 | null | 2022-12-15T23:31:31 | 2019-06-20T07:53:07 | Java | UTF-8 | Java | false | false | 1,570 | java | package com.yiji.openapi.sdk.exception;
/**
* OpenApi服务器端异常
*
* @author zhike@yiji.com
* @date 2014年6月12日
*/
public class ApiServerException extends RuntimeException {
/** UID */
private static final long serialVersionUID = 2148374270769534530L;
private String resultCode;
private String resultMessage;
public ApiServerException() {
super();
}
/**
* @param resultMessage
*/
public ApiServerException(String resultMessage) {
super(resultMessage);
this.resultMessage = resultMessage;
}
/**
* @param resultCode
* @param resultMessage
*/
public ApiServerException(String resultCode, String resultMessage) {
super(resultMessage);
this.resultCode = resultCode;
this.resultMessage = resultMessage;
}
public ApiServerException(String resultCode, String resultMessage, Throwable cause) {
super(resultMessage, cause);
this.resultCode = resultCode;
this.resultMessage = resultMessage;
}
@Override
public String getMessage() {
return "服务端异常:" + super.getMessage();
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("服务端异常:").append(resultCode).append(":").append(resultMessage);
return builder.toString();
}
public String getResultCode() {
return resultCode;
}
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
public String getResultMessage() {
return resultMessage;
}
public void setResultMessage(String resultMessage) {
this.resultMessage = resultMessage;
}
}
| [
"539603511@qq.com"
] | 539603511@qq.com |
eb1332e25984fe44e3681c510603e3fe134f479f | 95d4872b1b625f6c1ff483df2261ed6057232ba3 | /LQian-springboot-algorithm/src/main/java/com/zl/lqian/jianzhi/Solution11.java | 2e8be6dc8c94e150311c5aa8591aeb74a346025c | [] | no_license | dailyenrich/LQian | f01c45f99e45b058ba23939a7f021a905b75006c | 95258df6c15e5e9072d178d877f91e5e64c4fae8 | refs/heads/master | 2021-05-24T18:48:35.751910 | 2020-04-06T09:26:18 | 2020-04-06T09:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 352 | java | package com.zl.lqian.jianzhi;
/**
* @Author zl
* @Date 2020-04-06
* @Des ${todo}
*/
public class Solution11 {
public static void main(String[] args) {
count(10);
}
public static Integer count(int n){
int count=0;
while(n!=0){
count++;
n=n&(n-1);
}
return count;
}
}
| [
"1198902364@qq.com"
] | 1198902364@qq.com |
251763042afcf32a9227d3c9533eca71a10e2873 | e99494bd528e54c33dbada1ac76f63fa41e1b7ab | /src/main/java/upgrade/MainWindow.java | ff032da00d6ae79f76a5b3fd5b857c5e6c255428 | [] | no_license | meteor-007/scanDemo | 6c9cdf605512e2a3c3e5ec9744543db545e3bbe9 | c82fc2bb9b9f918d1043fcd54200fcdd358674c7 | refs/heads/master | 2022-12-25T07:30:44.395472 | 2019-05-24T07:14:12 | 2019-05-24T07:14:12 | 176,655,346 | 0 | 1 | null | 2022-12-06T00:31:06 | 2019-03-20T04:45:16 | Java | UTF-8 | Java | false | false | 3,560 | java | package upgrade;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.JarURLConnection;
import java.net.URL;
import java.util.Properties;
import java.util.jar.JarFile;
import java.util.jar.Manifest;
/**
* @program: 漏洞扫描
* @description: 升级功能
* @author: czwei
* @create: 2019-01-04 11:52
*/
public class MainWindow {
public static void main(String[] args) {
Properties properties = new Properties();
String localVersion;
String serverVision;
String ServerURL;
String jarName;
char i = 'a';
JarURLConnection jarConnection = null;
String configFile = "./config/config.properties";
try {
properties.load(
new InputStreamReader(new FileInputStream(new File(configFile).getAbsolutePath()), "UTF-8"));
ServerURL = properties.getProperty("url");
jarName = properties.getProperty("jarname");
} catch (IOException e) {
System.out.println("读取更新配置文件失败");
return;
}
System.out.println("正在检查更新……");
try {
//检查本地文件的版本信息
JarFile localJarFile = new JarFile("./lib/"+jarName);
localVersion = localJarFile.getManifest().getMainAttributes().getValue("Manifest-Version");
localJarFile.close();
System.out.println("当前版本:"+localVersion);
} catch (IOException e) {
System.out.println("【警告】获取不到本地文件信息,正在创建新的本地文件……");
localVersion = "";
}
try {
// 检查服务器上的文件信息,查看是否有更新
URL url = new URL("jar:"+ServerURL+"!/");
jarConnection = (JarURLConnection)url.openConnection();
Manifest manifest = jarConnection.getManifest();
serverVision = manifest.getMainAttributes().getValue("Manifest-Version");
System.out.println("最新版本:"+serverVision);
} catch (IOException e) {
System.out.println("加载更新失败……请检查网络后再试!");
System.out.println("url:"+e.getMessage());
return;
}
if (!localVersion.equals("")){
if(localVersion.equals(serverVision)){
System.out.println("当前版本已是最新!");
return;
}else if (Double.parseDouble(localVersion)>Double.parseDouble(serverVision)){
System.out.println("发现旧的版本,是否还原?(y/n)");
while (true){
try {
i = (char)System.in.read();
} catch (IOException e) {
System.out.println("请输入正确格式!");
}
if(i=='y'){
break;
}else if(i=='n')
return;
}
}
}
System.out.println("下载中……请稍后……");
FileTool.downloadByNIO2(ServerURL,"./lib", jarName);
System.out.println("更新成功...");
}
}
| [
"you@example.com"
] | you@example.com |
90d5f94c3a735ee9c4471a2cd3b29910d8be15e8 | 1b1bbc90da22aea7b0369288f3e0b16ad659d9f4 | /src/com/syntax/class01/FirstProgram.java | 3088c324442920fb1caea7c9dce82b2c1ecddebc | [] | no_license | samuelwoldegiorgis/JavaBatch8Review | 1191d21826f9c8ec3f17349081d9e3e92a9c979f | 762dfce1626af5e1727305eed3550660c4ee0c6a | refs/heads/main | 2023-02-21T05:26:33.956968 | 2021-01-10T15:20:30 | 2021-01-10T15:20:30 | 304,908,369 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 248 | java | package com.syntax.class01;
public class FirstProgram {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("I am a programmer now !!! Yay");
System.out.println("Hello Moneer");
}
}
| [
"samgmil19@gmail.com"
] | samgmil19@gmail.com |
4cb35327ecaf4e2d72e5bcbe392f10fc7488097b | 38c3180624ffa0ab5ae90ffb8ccdaea70734295d | /scm-master_date/src/main/java/com/winway/scm/persistence/dao/ScmZsjTXCompanyDao.java | 972380e6a38f1297b3f54c01a2d15584fc2f871a | [] | no_license | cwy329233832/scm_code | e88fe0296638202443643941fbfca58dc1abf3f0 | fbd3e56af615ce39bca96ce12d71dc5487c51515 | refs/heads/master | 2021-04-17T16:02:51.463958 | 2019-09-05T08:22:39 | 2019-09-05T08:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 457 | java | package com.winway.scm.persistence.dao;
import com.hotent.base.dao.MyBatisDao;
import com.winway.scm.model.ScmZsjTXCompany;
/**
*
* <pre>
* 描述:天祥信息 DAO接口
* 构建组:x7
* 作者:原浩
* 邮箱:PRD-jun.he@winwayworld.com
* 日期:2019-01-03 09:41:54
* 版权:美达开发小组
* </pre>
*/
public interface ScmZsjTXCompanyDao extends MyBatisDao<String, ScmZsjTXCompany> {
ScmZsjTXCompany getByOwnerId(String ownerId);
}
| [
"1540307734@qq.com"
] | 1540307734@qq.com |
0a3dd763b59f34a2f9aa5e8993fa3072f1697e37 | 659221adea3d6fb508f9c21bddd3273f08d31e4e | /work-information/work-information-app/src/main/java/com/solutions/business/label/entity/LabelSummary.java | 6c2aef57b98619a8f2ceb36d46e2ecda2e25062b | [] | no_license | jskno/workInformationApp | 04ba12df19b88d321fc39b4982c12a7b9347dc98 | da9f261d21a4b48fe64743acaeccc8a8cc661791 | refs/heads/master | 2021-01-18T19:48:24.685944 | 2016-10-09T20:45:19 | 2016-10-09T20:56:43 | 69,666,588 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,432 | java | package com.solutions.business.label.entity;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.solutions.common.Pair;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by Jose on 24/09/2016.
*/
public class LabelSummary {
private Long id;
private String labelText;
private Integer order;
private Long labelParentId;
private List<LabelSummary> children;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getLabelText() {
return labelText;
}
public void setLabelText(String labelText) {
this.labelText = labelText;
}
public Integer getOrder() {
return order;
}
public void setOrder(Integer order) {
this.order = order;
}
public Long getLabelParentId() {
return labelParentId;
}
public void setLabelParentId(Long labelParentId) {
this.labelParentId = labelParentId;
}
public List<LabelSummary> getChildren() {
if(children == null) {
children = new ArrayList<>();
}
return children;
}
public void setChildren(List<LabelSummary> children) {
this.children = children;
}
}
| [
"lodmnos@gmail.com"
] | lodmnos@gmail.com |
bf80a56de016a6d46c6b8a18a283e5a620f49dae | ebc3a4a62ce3c2f313f029b2f70fc21bdc7f8bc1 | /servers/dist/gameserver/data/scripts/quests/Q00033_MakeAPairOfDressShoes.java | 2cb050cd3c574d3d6c40d6617d353c8888d37af8 | [] | no_license | MaskedRiders/L2Jmobius_jp_pvp | 9804fc4c26aa0a05e5b0fe6932ea8793895b6994 | f74276128f7cd04b876d740ac4518335a9c295dd | refs/heads/gh-pages | 2020-12-22T05:27:07.208114 | 2014-12-08T12:44:09 | 2014-12-08T12:44:09 | 27,674,627 | 0 | 1 | null | 2015-12-01T22:37:21 | 2014-12-07T15:32:04 | Java | UTF-8 | Java | false | false | 4,417 | java | /*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package quests;
import lineage2.gameserver.model.instances.NpcInstance;
import lineage2.gameserver.model.quest.Quest;
import lineage2.gameserver.model.quest.QuestState;
import lineage2.gameserver.scripts.ScriptFile;
public class Q00033_MakeAPairOfDressShoes extends Quest implements ScriptFile
{
// Npcs
private final static int WOODLEY = 30838;
private final static int IAN = 30164;
private final static int LEIKAR = 31520;
// Items
private final static int LEATHER = 1882;
private final static int THREAD = 1868;
private final static int DRESS_SHOES_BOX = 7113;
public Q00033_MakeAPairOfDressShoes()
{
super(false);
addStartNpc(WOODLEY);
addTalkId(WOODLEY, IAN, LEIKAR);
}
@Override
public String onEvent(String event, QuestState qs, NpcInstance npc)
{
String htmltext = event;
switch (event)
{
case "30838-1.htm":
qs.setCond(1);
qs.setState(STARTED);
qs.playSound(SOUND_ACCEPT);
break;
case "31520-1.htm":
qs.setCond(2);
break;
case "30838-3.htm":
qs.setCond(3);
break;
case "30838-5.htm":
if ((qs.getQuestItemsCount(LEATHER) >= 200) && (qs.getQuestItemsCount(THREAD) >= 600) && (qs.getQuestItemsCount(ADENA_ID) >= 200000))
{
qs.takeItems(LEATHER, 200);
qs.takeItems(THREAD, 600);
qs.takeItems(ADENA_ID, 200000);
qs.setCond(4);
}
else
{
htmltext = "You don't have enough materials";
}
break;
case "30164-1.htm":
if (qs.getQuestItemsCount(ADENA_ID) >= 300000)
{
qs.takeItems(ADENA_ID, 300000);
qs.setCond(5);
}
else
{
htmltext = "30164-havent.htm";
}
break;
case "30838-7.htm":
qs.giveItems(DRESS_SHOES_BOX, 1);
qs.playSound(SOUND_FINISH);
qs.exitCurrentQuest(true);
break;
}
return htmltext;
}
@Override
public String onTalk(NpcInstance npc, QuestState qs)
{
if (qs.isCompleted())
{
return "completed";
}
String htmltext = "noquest";
final int cond = qs.getCond();
final int npcId = npc.getId();
switch (npcId)
{
case WOODLEY:
switch (cond)
{
case 0:
if (qs.getQuestItemsCount(DRESS_SHOES_BOX) == 0)
{
if (qs.getPlayer().getLevel() >= 60)
{
QuestState fwear = qs.getPlayer().getQuestState(Q00037_MakeFormalWear.class);
if ((fwear != null) && (fwear.getCond() == 7))
{
htmltext = "30838-0.htm";
}
else
{
qs.exitCurrentQuest(true);
}
}
else
{
htmltext = "30838-00.htm";
}
}
break;
case 1:
htmltext = "30838-1.htm";
break;
case 2:
htmltext = "30838-2.htm";
break;
case 3:
if ((qs.getQuestItemsCount(LEATHER) >= 200) && (qs.getQuestItemsCount(THREAD) >= 600) && (qs.getQuestItemsCount(ADENA_ID) >= 200000))
{
htmltext = "30838-4.htm";
}
else if ((qs.getQuestItemsCount(LEATHER) < 200) || (qs.getQuestItemsCount(THREAD) < 600) || (qs.getQuestItemsCount(ADENA_ID) < 200000))
{
htmltext = "30838-4r.htm";
}
break;
case 4:
htmltext = "30838-5r.htm";
break;
case 5:
htmltext = "30838-6.htm";
break;
}
break;
case LEIKAR:
if (cond == 1)
{
htmltext = "31520-0.htm";
}
else if (cond == 2)
{
htmltext = "31520-1r.htm";
}
break;
case IAN:
if (cond == 4)
{
htmltext = "30164-0.htm";
}
else if (cond == 5)
{
htmltext = "30164-2.htm";
}
break;
}
return htmltext;
}
@Override
public void onLoad()
{
}
@Override
public void onReload()
{
}
@Override
public void onShutdown()
{
}
}
| [
"nakamura.shingo+l2j@gmail.com"
] | nakamura.shingo+l2j@gmail.com |
ab669f18e32429a51fc9e1f00af4e1937ee12239 | 61d8b7c6efc2a595a1db2a0abe42c432d935deba | /metrics/src/main/java/tech/qijin/study/metrics/StudyMetricsApplication.java | 85e8d928f88eb0b2672e1ca43141557ff1533537 | [] | no_license | my1free/qijin-tech-study-java | 9392a72aca285064d3945e24c0ea7585f4aaedd5 | 1e799abd8717b17acb43196b02fd3ca3392c3c41 | refs/heads/master | 2022-06-23T16:58:28.751238 | 2021-03-10T03:31:06 | 2021-03-10T03:31:06 | 250,989,327 | 0 | 0 | null | 2022-06-21T04:15:17 | 2020-03-29T08:48:31 | Java | UTF-8 | Java | false | false | 676 | java | package tech.qijin.study.metrics;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
@Slf4j
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class StudyMetricsApplication {
public static void main(String[] args) throws ParseException {
SpringApplication.run(StudyMetricsApplication.class, args);
}
}
| [
"yangshangqiang@inke.cn"
] | yangshangqiang@inke.cn |
9a53a2ff0360fdad0cbda0653c09e096781d405f | 86db324c6a039369ef9d904defd9a15c944c429c | /thrift/compiler/test/fixtures/adapter/gen-android/test/fixtures/adapter/CircularStruct.java | f62f64f94cbdc4d4728fb990bba20a4618e72270 | [
"Apache-2.0"
] | permissive | curoky/fbthrift | 1eb3cecfee5f72748a5787e792c63276f7734f76 | 199ca4b1807a705fc55e6fa099c39b7e90ef03e0 | refs/heads/master | 2023-04-29T21:19:41.027102 | 2023-04-25T16:23:11 | 2023-04-25T16:23:11 | 242,927,696 | 0 | 0 | Apache-2.0 | 2020-02-25T06:31:35 | 2020-02-25T06:31:34 | null | UTF-8 | Java | false | false | 3,860 | java | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package test.fixtures.adapter;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import java.util.Collections;
import java.util.BitSet;
import java.util.Arrays;
import com.facebook.thrift.*;
import com.facebook.thrift.annotations.*;
import com.facebook.thrift.async.*;
import com.facebook.thrift.meta_data.*;
import com.facebook.thrift.server.*;
import com.facebook.thrift.transport.*;
import com.facebook.thrift.protocol.*;
@SuppressWarnings({ "unused", "serial" })
public class CircularStruct implements TBase, java.io.Serializable, Cloneable {
private static final TStruct STRUCT_DESC = new TStruct("CircularStruct");
private static final TField FIELD_FIELD_DESC = new TField("field", TType.STRUCT, (short)1);
public final CircularAdaptee field;
public static final int FIELD = 1;
public CircularStruct(
CircularAdaptee field) {
this.field = field;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public CircularStruct(CircularStruct other) {
if (other.isSetField()) {
this.field = TBaseHelper.deepCopy(other.field);
} else {
this.field = null;
}
}
public CircularStruct deepCopy() {
return new CircularStruct(this);
}
public CircularAdaptee getField() {
return this.field;
}
// Returns true if field field is set (has been assigned a value) and false otherwise
public boolean isSetField() {
return this.field != null;
}
@Override
public boolean equals(Object _that) {
if (_that == null)
return false;
if (this == _that)
return true;
if (!(_that instanceof CircularStruct))
return false;
CircularStruct that = (CircularStruct)_that;
if (!TBaseHelper.equalsNobinary(this.isSetField(), that.isSetField(), this.field, that.field)) { return false; }
return true;
}
@Override
public int hashCode() {
return Arrays.deepHashCode(new Object[] {field});
}
// This is required to satisfy the TBase interface, but can't be implemented on immutable struture.
public void read(TProtocol iprot) throws TException {
throw new TException("unimplemented in android immutable structure");
}
public static CircularStruct deserialize(TProtocol iprot) throws TException {
CircularAdaptee tmp_field = null;
TField __field;
iprot.readStructBegin();
while (true)
{
__field = iprot.readFieldBegin();
if (__field.type == TType.STOP) {
break;
}
switch (__field.id)
{
case FIELD:
if (__field.type == TType.STRUCT) {
tmp_field = CircularAdaptee.deserialize(iprot);
} else {
TProtocolUtil.skip(iprot, __field.type);
}
break;
default:
TProtocolUtil.skip(iprot, __field.type);
break;
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
CircularStruct _that;
_that = new CircularStruct(
tmp_field
);
_that.validate();
return _that;
}
public void write(TProtocol oprot) throws TException {
validate();
oprot.writeStructBegin(STRUCT_DESC);
if (this.field != null) {
if (isSetField()) {
oprot.writeFieldBegin(FIELD_FIELD_DESC);
this.field.write(oprot);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@Override
public String toString() {
return toString(1, true);
}
@Override
public String toString(int indent, boolean prettyPrint) {
return TBaseHelper.toStringHelper(this, indent, prettyPrint);
}
public void validate() throws TException {
// check for required fields
}
}
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f54bf421dde67857ca7cb5b1efcda752c4f62965 | 11fb574a1cc92b2c81da5f347786f581313a417e | /sf-excel/src/main/java/cn/sf/excel/utils/ExcelUtils.java | c8bfeb2bb0f9dce85b5289a0f6bdfaf3e7065ce7 | [] | no_license | nigel1000/sf-code | 9f30aec4d9fea45d56aa1c563f4857951b67649f | 387ca985895e6de764c012c8dacec631e85d787e | refs/heads/master | 2021-01-12T01:25:05.815327 | 2018-07-31T09:08:46 | 2018-07-31T09:08:46 | 78,382,915 | 3 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,785 | java | package cn.sf.excel.utils;
import lombok.NonNull;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.ss.util.NumberToTextConverter;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Iterator;
@Slf4j
public class ExcelUtils {
// 设置cell编码解决中文高位字节截断
private static short XLS_ENCODING = HSSFCell.ENCODING_UTF_16;
// 定制浮点数格式
private static String NUMBER_FORMAT = " #,##0.00 ";
///////////////////////////////////////////////////////////
//逻辑操作
///////////////////////////////////////////////////////////
public static boolean isRowEmpty(@NonNull Row row) {
Iterator<Cell> cellIter = row.cellIterator();
boolean isRowEmpty = true;
while (cellIter.hasNext()) {
Cell cell = cellIter.next();
String value = getValueOfCell(cell);
if(!"".equals(value)){
isRowEmpty = false;
break;
}
}
return isRowEmpty;
}
public static String getValueOfCell(@NonNull Cell cell) {
String value;
if (Cell.CELL_TYPE_NUMERIC == cell.getCellType()) {
value = NumberToTextConverter.toText(cell.getNumericCellValue());
} else {
value = cell.toString();
}
return value.trim();
}
///////////////////////////////////////////////////////////
//workbook操作
///////////////////////////////////////////////////////////
public static Workbook createWorkBook(@NonNull String filePath) {
Workbook workbook;
try {
workbook = WorkbookFactory.create(new FileInputStream(new File(filePath)));
} catch (Exception e) {
throw new RuntimeException("请上传xlsx文件!",e);
}
return workbook;
}
public static Workbook createWorkBook(@NonNull InputStream inputStream) {
Workbook workbook;
try {
workbook = WorkbookFactory.create(inputStream);
} catch (Exception e) {
throw new RuntimeException("xlsx文件流有误!",e);
}
return workbook;
}
///////////////////////////////////////////////////////////
//cell操作
///////////////////////////////////////////////////////////
public static void setCell(@NonNull Row row,@NonNull int index, String value, CellStyle style) {
Cell cell = row.createCell(index);
cell.setCellType(Cell.CELL_TYPE_STRING);
cell.setCellType(XLS_ENCODING);
if(style!=null) {
cell.setCellStyle(style);
}
cell.setCellValue(value);
}
//设置单元格填充值
public static void setCell(@NonNull Row row,@NonNull int index, String value) {
Cell cell = row.createCell(index);
cell.setCellType(Cell.CELL_TYPE_STRING);
cell.setCellType(XLS_ENCODING);
cell.setCellValue(value);
}
//设置单元格填充值
public static void setCell(@NonNull Row row, @NonNull int index, Integer value) {
Cell cell = row.createCell(index);
cell.setCellType(Cell.CELL_TYPE_NUMERIC);
cell.setCellValue(value);
}
//设置单元格填充值
public static void setCell(@NonNull Row row, @NonNull int index, Long value) {
Cell cell = row.createCell(index);
cell.setCellType(Cell.CELL_TYPE_NUMERIC);
cell.setCellValue(value);
}
//设置单元格填充值
public static void setCell(@NonNull Workbook workbook, @NonNull Row row,@NonNull int index, Double value) {
Cell cell = row.createCell(index);
cell.setCellType(Cell.CELL_TYPE_NUMERIC);
cell.setCellValue(value);
CellStyle cellStyle = workbook.createCellStyle(); // 建立新的cell样式
DataFormat format = workbook.createDataFormat();
cellStyle.setDataFormat(format.getFormat(NUMBER_FORMAT)); // 设置cell样式为定制的浮点数格式
cell.setCellStyle(cellStyle); // 设置该cell浮点数的显示格式
}
}
| [
"xiaodangjia@gov.cn"
] | xiaodangjia@gov.cn |
c379ca16bca33ec049b0583dcb75f13df9407b17 | 88421b7172f7634d56e2d29edfc8e2f67ec1d9ac | /Day29/src/kh/student/model/vo/Student.java | 427925147bd7d7595cc174a9e30373243133ac27 | [] | no_license | ajtwls1256/JDBC-exam | 6ceda95fe46fc49bc6c7a24dea7ee7359ebf821b | cb2a23bd4da401c386396a74d9622f0214e6b70a | refs/heads/master | 2020-09-18T06:37:04.273474 | 2019-11-26T08:05:02 | 2019-11-26T08:05:02 | 224,136,070 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,042 | java | package kh.student.model.vo;
public class Student
{
private int studentNo;
private String studentName;
private int studentGrade;
private int age;
private String email;
private String phone;
private int activation;
public Student()
{
super();
// TODO Auto-generated constructor stub
}
public Student(int studentNo, String studentName, int studentGrade, int age,
String email, String phone, int activation)
{
super();
this.studentNo = studentNo;
this.studentName = studentName;
this.studentGrade = studentGrade;
this.age = age;
this.email = email;
this.phone = phone;
this.activation = activation;
}
public int getStudentNo()
{
return studentNo;
}
public void setStudentNo(int studentNo)
{
this.studentNo = studentNo;
}
public String getStudentName()
{
return studentName;
}
public void setStudentName(String studentName)
{
this.studentName = studentName;
}
public int getStudentGrade()
{
return studentGrade;
}
public void setStudentGrade(int studentGrade)
{
this.studentGrade = studentGrade;
}
public int getAge()
{
return age;
}
public void setAge(int age)
{
this.age = age;
}
public String getEmail()
{
return email;
}
public void setEmail(String email)
{
this.email = email;
}
public String getPhone()
{
return phone;
}
public void setPhone(String phone)
{
this.phone = phone;
}
public int getActivation()
{
return activation;
}
public void setActivation(int activation)
{
this.activation = activation;
}
@Override
public String toString()
{
return studentNo + "\t" + studentName + "\t" + studentGrade + "\t" + age + "\t" + email + "\t" + phone + "\t" + activation;
}
}
| [
"ajtwls1256@gmail.com"
] | ajtwls1256@gmail.com |
74ab7941ba2727c97a6f85f15a55d3303c45308d | 07faeaab515163f3493f86805e50f0b0d1aa258a | /src_edoc/com/seeyon/v3x/edoc/manager/EdocFormManager.java | 5ef742c7355a7c8792ff3c0ee7464ac421e7e9bc | [] | no_license | zhengxyzw/seeyon_v3x | 033563e558794eb3d3c6d14b65fc3bd985f24e03 | f2f91c1db65c93681ef504d410d517e77048deec | refs/heads/master | 2020-06-12T20:33:08.873703 | 2017-07-11T01:21:52 | 2017-07-11T01:21:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,732 | java | package com.seeyon.v3x.edoc.manager;
import java.util.List;
import java.util.Set;
import java.util.Hashtable;
import www.seeyon.com.v3x.form.controller.pageobject.SessionObject;
import com.seeyon.v3x.edoc.domain.EdocForm;
import com.seeyon.v3x.edoc.domain.EdocFormAcl;
import com.seeyon.v3x.edoc.domain.EdocFormElement;
import com.seeyon.v3x.edoc.domain.EdocFormExtendInfo;
import com.seeyon.v3x.edoc.domain.EdocFormFlowPermBound;
import com.seeyon.v3x.edoc.domain.EdocSummary;
import com.seeyon.v3x.edoc.exception.EdocException;
import com.seeyon.v3x.edoc.webmodel.EdocFormModel;
import com.seeyon.v3x.edoc.webmodel.EdocOpinionDisplayConfig;
import com.seeyon.v3x.common.authenticate.domain.User;
public interface EdocFormManager
{
public void initialize();
public void createEdocForm(EdocForm edocForm,List<Long> elementIdList);
public void updateEdocForm(EdocForm edocForm) throws Exception;
public void updateEdocFormExtendInfo(EdocFormExtendInfo edocForm) throws Exception;
public EdocForm getEdocForm(long id);
public EdocForm getDefaultEdocForm(Long domainId,int edocType);
public void setDefaultEdocForm(Long domainId,int edocType,EdocForm edocForm);
public List<EdocForm> getAllEdocForms(Long domainId);
public List<EdocForm> getAllEdocFormsForWeb(User user,Long domainId);
public EdocFormExtendInfo getEdocFormExtendInfo(Long id);
public List<EdocForm> getAllEdocFormsByStatus(Long domainId,int status);
public List<EdocForm> getAllEdocFormsByName(User user ,Long domainId,String name);
public List<EdocForm> getAllEdocFormsByType(Long domainId,int type);
public List<EdocForm> getAllEdocFormsByTypeAndStatus(Long domainId,int type, int status);
public List<EdocForm> getEdocForms(long domainId,String domainIds, int type);
public void removeEdocForm(long id) throws Exception;
public List<EdocFormElement> getAllEdocFormElements();
public List<EdocFormElement> getEdocFormElementByFormId(long formId);
public String getEdocFormXmlData(long formId,EdocSummary edocSummary,long actorId, int edocType);//新增公文单类型
public EdocFormModel getEdocFormModel(long formId,EdocSummary edocSummary,long actorId) throws EdocException;
public EdocFormModel getEdocFormModel(long formId,EdocSummary edocSummary,long actorId,boolean isTemplete ,boolean isCallTemplete) throws EdocException;
public EdocFormModel getEdocFormModel(long formId,long actorId) throws EdocException;
public void saveEdocXmlData(long id,List<Long> elementIdList);
public void deleteFormElementByFormId(long formId);
public String deleteForm(long id) throws Exception;
public void updateForm(EdocForm edocForm);
public String getDirectory(String[] urls,String[] createDates,String[] mimeTypes,String[] names)throws Exception;
public void updateDefaultEdocForm(long domainId,int type);
/**
* 新建立单位后,生成默认公文单
* @param accountId
* @throws Exception
*/
public void initAccountEdocForm(long accountId) throws Exception;
/**
* 复制公文单到当前单位
* @param formIds:逗号分割的公文单id
* @throws Exception
*/
public void importEdocForm(String formIds) throws Exception;
/**
* 检查公文单是否有重名
* @param name 名称
* @param type 类型(发文,收文,签报)
* @param status 状态,是否为启用
* @param domainId 单位标识
* @return
*/
public boolean checkHasName(String name,int type);
/**
* 绑定公文单处理意见与节点权限
*
* @param name
* 处理意见: shenpi,fuhe,niban...
* @param boundName
* 节点权限名称 : shenpi, fuhe, niban...
* @param edocFormId
* : 公文单ID
* @param sortType
* 处理意见排序方式 0,1,2,3
* @param orgAccountId
* : 单位Id
* @throws Exception
*/
public void bound(String name, String boundName, String boundNameLabel, long edocFormId, String sortType,Long accoutId)throws Exception;
/**
* 公文单Id
* @param edocFormId
* @return:返回节点权限为KEY,公文元素名称为value的Hashtable
*/
public Hashtable<String,String> getOpinionLocation(Long edocFormId);
/**
* 公文单Id
* @param edocFormId
* @param aclAccountId :公文单被授权使用的单位
* @return:返回节点权限为KEY,公文元素名称为value的Hashtable
*/
public Hashtable<String,String> getOpinionLocation(Long edocFormId,Long aclAccountId);
/**
* 返回公文单中,意见绑定元素的名称
* @param edocFormId
* @return
*/
public List<String> getOpinionElementLocationNames(Long edocFormId);
/**
* 返回公文单中,意见绑定元素的名称
* @param edocFormId
* @param aclAccountId :公文单被授权使用的单位
* @return
*/
public List<String> getOpinionElementLocationNames(Long edocFormId,Long aclAccountId);
public List<EdocFormFlowPermBound> findBoundByFormId(long edocFormId)throws Exception;
public List<EdocFormFlowPermBound> findBoundByFormIdAndDomainId(long edocFormId,Long accountId)throws Exception;
public List<EdocFormFlowPermBound> findBoundByFormId(long edocFormId,String processName,long accountId)throws Exception;
public List<EdocFormFlowPermBound> findBoundByFormId(long edocFormId, String processName)throws Exception;
public void deleteEdocFormFlowPermBoundByFormId(long edocFormId)throws Exception;
public void deleteEdocFormFlowPermBoundByFormIdAndAccountId(long edocFormId,long AccountId)throws Exception;
public String ajaxIsReferenced(String id)throws Exception;
public void saveEdocForm(EdocForm form);
public void updateFormContentToDBOnlyForOracle1();
public SessionObject getElementByEdocForm(EdocForm edocForm);
/**
* 方法描述:ajax方法,动态判断是否重名
*
*/
public boolean ajaxCheckDuplicatedName(String name, String type, String id);
public void removeDefaultEdocForm(Long domainId,int edocType);
public boolean ajaxCheckFormIsIdealy(String edocFormId, String isDefault, String isEnabled);
public void saveEdocFormExtendInfo(EdocFormExtendInfo form);
public List<EdocForm> getEdocFormByAcl(String domainIds);
public boolean isExsit(Long formId);
/**
* 取得公文单意见显示设置
* @param formId : 公文单ID
* @param accountId :单位ID
* @return
*/
public EdocOpinionDisplayConfig getEdocOpinionDisplayConfig(Long formId,Long accountId);
}
| [
"839428881@qq.com"
] | 839428881@qq.com |
53c84406360edf1ae06eaf342e00eb953beb0efd | 02f363a8e59eec4f7f6e1403a30408644fea9d76 | /src/main/java/org/springframework/beans/factory/BeanNotOfRequiredTypeException.java | 41563c590a88ce6490d62e4a5b21af84426d9556 | [
"Apache-2.0"
] | permissive | liudebin/zero-springframework | 43a7dee3569f38b6e62b36b45270b4259b3e8148 | dcb6b11b1a17bd4f934527edccf8d1dc8ff4fb4f | refs/heads/master | 2021-07-04T10:55:36.695965 | 2019-03-21T08:21:13 | 2019-03-21T08:21:13 | 107,293,540 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,249 | java | /*
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.beans.factory;
import org.springframework.util.ClassUtils;
import org.springframework.beans.BeansException;
import org.springframework.util.ClassUtils;
/**
* Thrown when a bean doesn't match the expected type.
*
* @author Rod Johnson
* @author Juergen Hoeller
*/
@SuppressWarnings("serial")
public class BeanNotOfRequiredTypeException extends BeansException {
/** The name of the instance that was of the wrong type */
private String beanName;
/** The required type */
private Class<?> requiredType;
/** The offending type */
private Class<?> actualType;
/**
* Create a new BeanNotOfRequiredTypeException.
* @param beanName the name of the bean requested
* @param requiredType the required type
* @param actualType the actual type returned, which did not match
* the expected type
*/
public BeanNotOfRequiredTypeException(String beanName, Class<?> requiredType, Class<?> actualType) {
super("Bean named '" + beanName + "' is expected to be of type '" + ClassUtils.getQualifiedName(requiredType) +
"' but was actually of type '" + ClassUtils.getQualifiedName(actualType) + "'");
this.beanName = beanName;
this.requiredType = requiredType;
this.actualType = actualType;
}
/**
* Return the name of the instance that was of the wrong type.
*/
public String getBeanName() {
return this.beanName;
}
/**
* Return the expected type for the bean.
*/
public Class<?> getRequiredType() {
return this.requiredType;
}
/**
* Return the actual type of the instance found.
*/
public Class<?> getActualType() {
return this.actualType;
}
}
| [
"liuguobin@nonobank.com"
] | liuguobin@nonobank.com |
b3a5da972533d4c7b0dd3cdff8fd1d4698df7184 | 421f0a75a6b62c5af62f89595be61f406328113b | /generated_tests/model_seeding/5_templateit-org.templateit.OpMatcher-1.0-8/org/templateit/OpMatcher_ESTest_scaffolding.java | 0914032ff36063cabf3bbb2e7a71bc8c90d6469e | [] | no_license | tigerqiu712/evosuite-model-seeding-empirical-evaluation | c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6 | 11a920b8213d9855082d3946233731c843baf7bc | refs/heads/master | 2020-12-23T21:04:12.152289 | 2019-10-30T08:02:29 | 2019-10-30T08:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 530 | java | /**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Oct 25 23:11:51 GMT 2019
*/
package org.templateit;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
import org.evosuite.runtime.sandbox.Sandbox;
import org.evosuite.runtime.sandbox.Sandbox.SandboxMode;
@EvoSuiteClassExclude
public class OpMatcher_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
| [
"pderakhshanfar@bsr01.win.tue.nl"
] | pderakhshanfar@bsr01.win.tue.nl |
0342f57266335baff4cbb809b57959cd71c7d371 | d3cee18b4e2eaa34ce4587533b6916200da72fd8 | /discrete/problems/src/main/java/problems/leet100/challenges/c2020_05/w4/CountingBitsSolution.java | 3626e2684694e2188d2ec1e31296e3694ae3e030 | [] | no_license | avshabanov/math | df4a179ee21ef2d0aff22998c484f6e99935f215 | 2e58079d678d7c626e746ed96540fb2a55c94e58 | refs/heads/master | 2023-03-08T00:24:47.185382 | 2023-02-19T20:30:30 | 2023-02-19T20:30:30 | 12,113,475 | 0 | 0 | null | 2022-11-16T00:40:47 | 2013-08-14T16:16:19 | Java | UTF-8 | Java | false | false | 1,275 | java | package problems.leet100.challenges.c2020_05.w4;
import java.util.Arrays;
/**
* https://leetcode.com/explore/challenge/card/may-leetcoding-challenge/537/week-4-may-22nd-may-28th/3343/
* <p>Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's
* in their binary representation and return them as an array.</p>
* <p>Follow up:
* It is very easy to come up with a solution with run time O(n*sizeof(integer)). But can you do it in linear time O(n) /possibly in a single pass?
* Space complexity should be O(n).
* Can you do it like a boss? Do it without using any builtin function like __builtin_popcount in c++ or in any other language.</p>
*/
public class CountingBitsSolution {
public static final class Demo {
public static void main(String[] args) {
System.out.println(Arrays.toString(countBits(5)));
System.out.println(Arrays.toString(countBits(4)));
}
}
private static int[] countBits(int num) {
final int[] result = new int[num + 1];
for (int i = 1; i <= num; ++i) {
int bitCount = 0;
for (int k = i; k > 0; k = k >> 1) {
if ((k & 1) == 1) {
++bitCount;
}
}
result[i] = bitCount;
}
return result;
}
}
| [
"avshabanov@gmail.com"
] | avshabanov@gmail.com |
e4c2c3b415354eb415b453ebb4334292eaa9d1b6 | bdb5d205d56ef9e0f523be1c3fd683400f7057a5 | /app/src/main/java/com/tgf/kcwc/mvp/presenter/IntegralOrderPaysPresenter.java | e808d0f9ec23058387a086f44d03274f5542b576 | [] | no_license | yangyusong1121/Android-car | f8fbd83b8efeb2f0e171048103f2298d96798f9e | d6215e7a59f61bd7f15720c8e46423045f41c083 | refs/heads/master | 2020-03-11T17:25:07.154083 | 2018-04-19T02:18:15 | 2018-04-19T02:20:19 | 130,146,301 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,918 | java | package com.tgf.kcwc.mvp.presenter;
import com.tgf.kcwc.mvp.ServiceFactory;
import com.tgf.kcwc.mvp.model.BaseArryBean;
import com.tgf.kcwc.mvp.model.BaseBean;
import com.tgf.kcwc.mvp.model.IntegralOrderDetailBean;
import com.tgf.kcwc.mvp.model.IntegralOrderPayParam;
import com.tgf.kcwc.mvp.model.IntegralService;
import com.tgf.kcwc.mvp.model.OrderPayParam;
import com.tgf.kcwc.mvp.model.ResponseMessage;
import com.tgf.kcwc.mvp.view.IntegraOrderPaysView;
import com.tgf.kcwc.mvp.view.IntegralOrderDetailView;
import com.tgf.kcwc.util.CommonUtils;
import com.tgf.kcwc.util.RXUtil;
import rx.Observer;
import rx.Subscription;
/**
* Author:Jenny
* Date:2016/12/14 15:55
* E-mail:fishloveqin@gmail.com
* 订单
*/
public class IntegralOrderPaysPresenter extends WrapPresenter<IntegraOrderPaysView> {
private IntegraOrderPaysView mView;
private Subscription mSubscription;
private IntegralService mService = null;
@Override
public void attachView(IntegraOrderPaysView view) {
this.mView = view;
mService = ServiceFactory.getIntegralService();
}
/**
* 订单是否成功
*
* @param id
* @param token
*/
public void getIsPayStatus(String token, String id) {
mSubscription = RXUtil.execute(mService.getIsPayStatus(id, token),
new Observer<BaseArryBean>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
mView.showLoadingTasksError();
}
@Override
public void onNext(BaseArryBean orderModelResponseMessage) {
mView.showIntegralOrderDetail(orderModelResponseMessage);
}
});
mSubscriptions.add(mSubscription);
}
}
| [
"328797668@qq.com"
] | 328797668@qq.com |
6f5b7dd45506b5b56344efbd23fa7dfc6e4c0cc7 | 6903d3e6bd56fb9708e4b9b29fffd4c57f101cb9 | /com/alipay/oceanbase/jdbc/JDBC4ClientInfoProvider.java | 15afde5fa5c3c165cd9518052e443074235112e5 | [] | no_license | Qi4ngY/oceanbase-client | 8d12273156ed3477ad5720052880de2640717d48 | 0988f778d2a00800e80d30314ac4ef99344ff70e | refs/heads/master | 2022-11-18T12:58:07.105603 | 2020-07-20T07:52:11 | 2020-07-20T07:52:11 | 281,045,860 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 717 | java | package com.alipay.oceanbase.jdbc;
import java.sql.SQLClientInfoException;
import java.sql.SQLException;
import java.util.Properties;
import java.sql.Connection;
public interface JDBC4ClientInfoProvider
{
void initialize(final Connection p0, final Properties p1) throws SQLException;
void destroy() throws SQLException;
Properties getClientInfo(final Connection p0) throws SQLException;
String getClientInfo(final Connection p0, final String p1) throws SQLException;
void setClientInfo(final Connection p0, final Properties p1) throws SQLClientInfoException;
void setClientInfo(final Connection p0, final String p1, final String p2) throws SQLClientInfoException;
}
| [
"qiaoye.zqy@mybank.cn"
] | qiaoye.zqy@mybank.cn |
584212556dce45ee7010403def7000ee67c2d047 | 2f78afd987cec9378279d11eea57b47ba08275a1 | /src/main/java/leet_202204/PlatesBetweenCandles.java | cca97fe69db1d25deb910f625568e2d1af03176d | [] | no_license | wanyinsheng/leetcode | 73368231744a80fdb0311e69f6989eb7a1fd9410 | dd102a76280cff7578366fd53f75726ff3755052 | refs/heads/master | 2023-04-30T19:27:53.251273 | 2023-04-25T07:46:40 | 2023-04-25T07:46:40 | 575,824,207 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 224 | java | package leet_202204;
/**
* @Author wanys
* @Date 2022/4/1 5:41 PM
* @Version 1.0
**/
public class PlatesBetweenCandles {
public int[] platesBetweenCandles(String s, int[][] queries) {
return null;
}
}
| [
"wan_yinsheng@163.com"
] | wan_yinsheng@163.com |
40cefce70d7a0860daa59bfb02dfad1209fa45f4 | 88b451d56a1efb29c8fe1749bc406f44db948664 | /src/com/geocento/webapps/eobroker/common/shared/entities/Message.java | 66dc827d49ddc6860425021e591a2a803b12a819 | [] | no_license | geocento/EOBroker | cfd0566a18f963f0a7652ca5ae22dbafc50f25eb | b6385644f9e042c87de359146a5baa298a36e93e | refs/heads/master | 2020-05-22T02:46:57.449591 | 2018-02-12T12:20:02 | 2018-02-12T12:20:02 | 60,792,366 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 983 | java | package com.geocento.webapps.eobroker.common.shared.entities;
import javax.persistence.*;
import java.util.Date;
/**
* Created by thomas on 06/06/2016.
*/
@Entity
public class Message {
@Id
@GeneratedValue
Long id;
@ManyToOne
User from;
@Column(length = 1000)
private String message;
@Temporal(TemporalType.TIMESTAMP)
private Date creationDate;
public Message() {
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public User getFrom() {
return from;
}
public void setFrom(User from) {
this.from = from;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Date getCreationDate() {
return creationDate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
}
| [
"leforthomas@gmail.com"
] | leforthomas@gmail.com |
a3b079ec56f924d6603e8d610696f4ac12cfacd9 | a7c85a1e89063038e17ed2fa0174edf14dc9ed56 | /spring-aop-perf-tests/src/main/java/coas/perf/ComplexCondition300/Advice39.java | cdab9e6a41e0fcd114bc7f2e1fee18a516a32684 | [] | no_license | pmaslankowski/java-contracts | 28b1a3878f68fdd759d88b341c8831716533d682 | 46518bb9a83050956e631faa55fcdf426589830f | refs/heads/master | 2021-03-07T13:15:28.120769 | 2020-09-07T20:06:31 | 2020-09-07T20:06:31 | 246,267,189 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,642 | java |
package coas.perf.ComplexCondition300;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
import coas.perf.ComplexCondition300.Subject300;
@Aspect
@Component("Advice_300_39_cc")
public class Advice39 {
@Around("execution(* coas.perf.ComplexCondition300.Subject300.*(..)) and (execution(* *.junk0(..)) or execution(* *.junk1(..)) or execution(* *.junk2(..)) or execution(* *.junk3(..)) or execution(* *.junk4(..)) or execution(* *.junk5(..)) or execution(* *.junk6(..)) or execution(* *.junk7(..)) or execution(* *.junk8(..)) or execution(* *.junk9(..)) or execution(* *.junk10(..)) or execution(* *.junk11(..)) or execution(* *.junk12(..)) or execution(* *.junk13(..)) or execution(* *.junk14(..)) or execution(* *.junk15(..)) or execution(* *.junk16(..)) or execution(* *.junk17(..)) or execution(* *.junk18(..)) or execution(* *.junk19(..)) or execution(* *.junk20(..)) or execution(* *.junk21(..)) or execution(* *.junk22(..)) or execution(* *.junk23(..)) or execution(* *.junk24(..)) or execution(* *.junk25(..)) or execution(* *.junk26(..)) or execution(* *.junk27(..)) or execution(* *.junk28(..)) or execution(* *.junk29(..)) or execution(* *.target(..)))")
public Object onTarget(ProceedingJoinPoint joinPoint) throws Throwable {
int res = (int) joinPoint.proceed();
for (int i=0; i < 1000; i++) {
if (res % 2 == 0) {
res /= 2;
} else {
res = 2 * res + 1;
}
}
return res;
}
}
| [
"pmaslankowski@gmail.com"
] | pmaslankowski@gmail.com |
f51a445c88916518cc561f30449451bb686105cb | 6392035b0421990479baf09a3bc4ca6bcc431e6e | /projects/docx4j-e29924b3/prev/src/main/java/org/apache/poi/poifs/crypt/binaryrc4/BinaryRC4EncryptionVerifier.java | 1fc9e2227380ffc15ebd64ad2c962ac465b9811c | [] | no_license | ameyaKetkar/RMinerEvaluationTools | 4975130072bf1d4940f9aeb6583eba07d5fedd0a | 6102a69d1b78ae44c59d71168fc7569ac1ccb768 | refs/heads/master | 2020-09-26T00:18:38.389310 | 2020-05-28T17:34:39 | 2020-05-28T17:34:39 | 226,119,387 | 3 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,233 | java | /* ====================================================================
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 org.apache.poi.poifs.crypt.binaryrc4;
//import org.apache.poi.EncryptedDocumentException;
import org.apache.poi.EncryptedDocumentException;
import org.apache.poi.poifs.crypt.*;
import org.apache.poi.poifs.crypt.standard.EncryptionRecord;
import org.apache.poi.util.LittleEndianByteArrayOutputStream;
import org.apache.poi.util.LittleEndianInput;
public class BinaryRC4EncryptionVerifier extends EncryptionVerifier implements EncryptionRecord {
protected BinaryRC4EncryptionVerifier() {
setSpinCount(-1);
setCipherAlgorithm(CipherAlgorithm.rc4);
setChainingMode(null);
setEncryptedKey(null);
setHashAlgorithm(HashAlgorithm.md5);
}
protected BinaryRC4EncryptionVerifier(LittleEndianInput is) {
byte salt[] = new byte[16];
is.readFully(salt);
setSalt(salt);
byte encryptedVerifier[] = new byte[16];
is.readFully(encryptedVerifier);
setEncryptedVerifier(encryptedVerifier);
byte encryptedVerifierHash[] = new byte[16];
is.readFully(encryptedVerifierHash);
setEncryptedVerifierHash(encryptedVerifierHash);
setSpinCount(-1);
setCipherAlgorithm(CipherAlgorithm.rc4);
setChainingMode(null);
setEncryptedKey(null);
setHashAlgorithm(HashAlgorithm.md5);
}
protected void setSalt(byte salt[]) {
if (salt == null || salt.length != 16) {
throw new EncryptedDocumentException("invalid verifier salt");
}
super.setSalt(salt);
}
protected void setEncryptedVerifier(byte encryptedVerifier[]) {
super.setEncryptedVerifier(encryptedVerifier);
}
protected void setEncryptedVerifierHash(byte encryptedVerifierHash[]) {
super.setEncryptedVerifierHash(encryptedVerifierHash);
}
public void write(LittleEndianByteArrayOutputStream bos) {
byte salt[] = getSalt();
assert (salt.length == 16);
bos.write(salt);
byte encryptedVerifier[] = getEncryptedVerifier();
assert (encryptedVerifier.length == 16);
bos.write(encryptedVerifier);
byte encryptedVerifierHash[] = getEncryptedVerifierHash();
assert (encryptedVerifierHash.length == 16);
bos.write(encryptedVerifierHash);
}
}
| [
"ask1604@gmail.com"
] | ask1604@gmail.com |
a1cbdb02779f50c5a8f1f31e8cee683c2f9abe2b | 069db98b04c2c2b306ca6d0911ecfaa9d3484291 | /BS-PHIS2.322/src/main/java/phis/application/war/source/ConsultationApplyModel.java | 0a8a44f7385f6d000df762773d8119bbd4d88f1a | [] | no_license | zhouhui521/his | 59270696d3667c8c6eb8f7104af0a9501a90942a | 8d26b62e73d6ec95111eff66ab9d7aee61674f73 | refs/heads/master | 2023-02-03T16:20:57.561243 | 2020-12-24T06:33:46 | 2020-12-24T06:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,339 | java | /**
* @(#)ConsultationApplyModel.java Created on 2013-5-2 下午9:06:09
*
* 版权:版权所有 bsoft 保留所有权力。
*/
package phis.application.war.source;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import phis.source.BSPHISEntryNames;
import phis.source.BaseDAO;
import phis.source.Constants;
import phis.source.ModelDataOperationException;
import phis.source.PersistentDataOperationException;
/**
* @description
*
* @author <a href="mailto:chenxr@bsoft.com.cn">ChenXianRui</a>
*/
public class ConsultationApplyModel implements BSPHISEntryNames {
private BaseDAO dao;
public ConsultationApplyModel(BaseDAO dao) {
this.dao = dao;
}
/**
* 获取病人信息
*
* @param zyh
* @param jgid
* @return
* @throws ModelDataOperationException
*/
public Map<String, Object> getBRInfo(long zyh, String jgid)
throws ModelDataOperationException {
String hql = "SELECT a.ZYHM as ZYHM,a.BRXM as BRXM,a.BRKS as BRKS,a.BRXB as BRXB,a.BRCH as BRCH,a.ZYH as ZYH,b.KSDM as KSDM "
+ " FROM ZY_BRRY a, ZY_CWSZ b "
+ " WHERE a.BRCH = b.BRCH AND a.JGID = b.JGID AND a.ZYH = :al_zyh and a.JGID = :al_jgid ";
Map<String, Object> paraMap = new HashMap<String, Object>();
paraMap.put("al_zyh", zyh);
paraMap.put("al_jgid", jgid);
Map<String, Object> rsMap = null;
try {
rsMap = dao.doLoad(hql, paraMap);
} catch (PersistentDataOperationException e) {
throw new ModelDataOperationException(
Constants.CODE_DATABASE_ERROR, "获取病人信息失败!", e);
}
return rsMap;
}
/**
* 获取病区信息
*
* @Description:
* @param jgid
* @return
* @throws ModelDataOperationException
* @author ChenXianRui 2013-5-3 上午9:50:10
* @Modify:
*/
public List<Map<String, Object>> getBQInfo(String jgid)
throws ModelDataOperationException {
String hql = "SELECT a.OFFICENAME as OFFICENAME, a.PYCODE as PYCODE, a.ID as ID, a.PARENTID as PARENTID "
+ " FROM SYS_Office a "
+ " WHERE a.HOSPITALAREA = '1' AND a.ORGANIZCODE = :al_jgid1 "
+ " AND a.ID NOT IN (SELECT b.PARENTID as PARENTID FROM SYS_Office b WHERE b.ID <> b.PARENTID AND b.ORGANIZCODE = :al_jgid2)";
Map<String, Object> paraMap = new HashMap<String, Object>();
paraMap.put("al_jgid1", jgid);
paraMap.put("al_jgid2", jgid);
List<Map<String, Object>> rsList = null;
try {
rsList = dao.doQuery(hql, paraMap);
} catch (PersistentDataOperationException e) {
throw new ModelDataOperationException(
Constants.CODE_DATABASE_ERROR, "获取病区信息失败!", e);
}
return rsList;
}
/**
*
* @Description:更新会诊科室
* @param HZKS
* @param ZYH
* @param JGID
* @throws ModelDataOperationException
* @author ChenXianRui 2013-5-4 下午5:11:46
* @Modify:
*/
public void updateConsApply(long HZKS, long ZYH, String JGID)
throws ModelDataOperationException {
String hql = "UPDATE ZY_BRRY SET HZKS=:ll_bq1 WHERE ZYH=:ll_zyh and JGID = :gl_jgid";
Map<String, Object> paraMap = new HashMap<String, Object>();
paraMap.put("ll_bq1", HZKS);
paraMap.put("ll_zyh", ZYH);
paraMap.put("gl_jgid", JGID);
try {
dao.doUpdate(hql, paraMap);
} catch (PersistentDataOperationException e) {
throw new ModelDataOperationException(
Constants.CODE_DATABASE_ERROR, "更新会诊科室失败!", e);
}
}
}
| [
"renw1@bsoft.com.cn"
] | renw1@bsoft.com.cn |
6db7ea81515edd875404537287a2a58db78b30b2 | 3f87c28506a4912f29d4c29d6c9cd1355f51ddea | /src/main/java/rim/job/afa/AfaApp.java | c9df1cc6d222ad90f1be92d985ae7784e0f2f472 | [] | no_license | fodie95/job-platform | 12904210149a41bf3b0eb2303c05ef4058807bc6 | d94f275e15de4fcc204107532b22c87746e6c167 | refs/heads/master | 2023-01-04T20:27:52.005994 | 2020-11-03T11:11:59 | 2020-11-03T11:11:59 | 309,660,875 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,931 | java | package rim.job.afa;
import io.github.jhipster.config.DefaultProfileUtil;
import io.github.jhipster.config.JHipsterConstants;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.Collection;
import javax.annotation.PostConstruct;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.core.env.Environment;
import rim.job.afa.config.ApplicationProperties;
@SpringBootApplication
@EnableConfigurationProperties({ ApplicationProperties.class })
public class AfaApp {
private static final Logger log = LoggerFactory.getLogger(AfaApp.class);
private final Environment env;
public AfaApp(Environment env) {
this.env = env;
}
/**
* Initializes afa.
* <p>
* Spring profiles can be configured with a program argument --spring.profiles.active=your-active-profile
* <p>
* You can find more information on how profiles work with JHipster on <a href="https://www.jhipster.tech/profiles/">https://www.jhipster.tech/profiles/</a>.
*/
@PostConstruct
public void initApplication() {
Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());
if (
activeProfiles.contains(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT) &&
activeProfiles.contains(JHipsterConstants.SPRING_PROFILE_PRODUCTION)
) {
log.error(
"You have misconfigured your application! It should not run " + "with both the 'dev' and 'prod' profiles at the same time."
);
}
if (
activeProfiles.contains(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT) &&
activeProfiles.contains(JHipsterConstants.SPRING_PROFILE_CLOUD)
) {
log.error(
"You have misconfigured your application! It should not " + "run with both the 'dev' and 'cloud' profiles at the same time."
);
}
}
/**
* Main method, used to run the application.
*
* @param args the command line arguments.
*/
public static void main(String[] args) {
SpringApplication app = new SpringApplication(AfaApp.class);
DefaultProfileUtil.addDefaultProfile(app);
Environment env = app.run(args).getEnvironment();
logApplicationStartup(env);
}
private static void logApplicationStartup(Environment env) {
String protocol = "http";
if (env.getProperty("server.ssl.key-store") != null) {
protocol = "https";
}
String serverPort = env.getProperty("server.port");
String contextPath = env.getProperty("server.servlet.context-path");
if (StringUtils.isBlank(contextPath)) {
contextPath = "/";
}
String hostAddress = "localhost";
try {
hostAddress = InetAddress.getLocalHost().getHostAddress();
} catch (UnknownHostException e) {
log.warn("The host name could not be determined, using `localhost` as fallback");
}
log.info(
"\n----------------------------------------------------------\n\t" +
"Application '{}' is running! Access URLs:\n\t" +
"Local: \t\t{}://localhost:{}{}\n\t" +
"External: \t{}://{}:{}{}\n\t" +
"Profile(s): \t{}\n----------------------------------------------------------",
env.getProperty("spring.application.name"),
protocol,
serverPort,
contextPath,
protocol,
hostAddress,
serverPort,
contextPath,
env.getActiveProfiles()
);
}
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
af0f90beca95c80faed37e9704b1e8c11b35556a | ac72641cacd2d68bd2f48edfc511f483951dd9d6 | /opscloud-service/src/main/java/com/baiyi/opscloud/service/profile/OcProfileSubscriptionService.java | 57f5f57c872fc949172a46533a1e1f52eb7703ac | [] | no_license | fx247562340/opscloud-demo | 6afe8220ce6187ac4cc10602db9e14374cb14251 | b608455cfa5270c8c021fbb2981cb8c456957ccb | refs/heads/main | 2023-05-25T03:33:22.686217 | 2021-06-08T03:17:32 | 2021-06-08T03:17:32 | 373,446,042 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 887 | java | package com.baiyi.opscloud.service.profile;
import com.baiyi.opscloud.domain.DataTable;
import com.baiyi.opscloud.domain.generator.opscloud.OcProfileSubscription;
import com.baiyi.opscloud.domain.param.profile.ProfileSubscriptionParam;
import java.util.List;
/**
* @Author baiyi
* @Date 2020/7/9 9:05 上午
* @Version 1.0
*/
public interface OcProfileSubscriptionService {
DataTable<OcProfileSubscription> queryOcProfileSubscriptionParam(ProfileSubscriptionParam.PageQuery pageQuery);
void addOcProfileSubscription(OcProfileSubscription ocProfileSubscription);
void updateOcProfileSubscription(OcProfileSubscription ocProfileSubscription);
void deleteOcProfileSubscriptionById(int id);
OcProfileSubscription queryOcProfileSubscriptionById(int id);
List<OcProfileSubscription> queryOcProfileSubscriptionBySubscriptionType(String subscriptionType);
}
| [
"fanxin01@longfor.com"
] | fanxin01@longfor.com |
b2d70f209d5708048a348008a06c17f59e8b9dee | ea296be7e0a3be487c08dd08809054cf5b978d52 | /src/cn/ucai/kind/domain/VideoEntity.java | c86925870d1d5c6409b558782790b7be7f0d2390 | [] | no_license | SuJiang007/ucai-git-Kind | 18238c6be324706227eb84c1e0c9bc331eda6201 | a5e03d19c4b7978ef578598fc113224838d93caa | refs/heads/master | 2021-01-17T16:20:24.379615 | 2016-06-08T10:04:27 | 2016-06-08T10:04:27 | 60,239,718 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 162 | java | package cn.ucai.kind.domain;
public class VideoEntity {
public int ID;
public String title;
public String filePath;
public int size;
public int duration;
}
| [
"402034990@qq.com"
] | 402034990@qq.com |
a19420b1e2d8e03e7a50b4275d1a4df377c7eb0b | ad2563d56f4581bf5ac73890360fafb0fc900d66 | /snaa/src/main/java/de/uniluebeck/itm/tr/snaa/dummy/DummySNAAModule.java | c33dc981bb91edd885a08390604284936b501ec8 | [
"BSD-3-Clause"
] | permissive | newtonmwai/testbed-runtime | b1c73a07c3791ac1593354e48aad728291a0b9c7 | 0f3fd9ccaa93410bd9ba3b007fd25d801bcdd035 | refs/heads/master | 2021-05-28T20:56:48.592750 | 2015-04-21T13:42:24 | 2015-04-21T13:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 854 | java | package de.uniluebeck.itm.tr.snaa.dummy;
import com.google.inject.PrivateModule;
import com.google.inject.Scopes;
import de.uniluebeck.itm.servicepublisher.ServicePublisher;
import de.uniluebeck.itm.tr.snaa.SNAAServiceConfig;
import de.uniluebeck.itm.tr.snaa.SNAAService;
import eu.wisebed.api.v3.snaa.SNAA;
public class DummySNAAModule extends PrivateModule {
private final SNAAServiceConfig snaaServiceConfig;
public DummySNAAModule(final SNAAServiceConfig snaaServiceConfig) {
this.snaaServiceConfig = snaaServiceConfig;
}
@Override
protected void configure() {
requireBinding(SNAAServiceConfig.class);
requireBinding(ServicePublisher.class);
bind(DummySNAA.class).in(Scopes.SINGLETON);
bind(SNAA.class).to(DummySNAA.class);
bind(SNAAService.class).to(DummySNAA.class);
expose(SNAA.class);
expose(SNAAService.class);
}
}
| [
"daniel@bimschas.com"
] | daniel@bimschas.com |
00be1144855192b18ec04939167159e86e5a4d2b | 19ef0cac77793c3c3e71e7c2b07f04cd8c638fd6 | /src/main/java/net/tce/model/Automovil.java | d3b370befd0e706f4c64f61e8bb459e6dd841d1a | [] | no_license | evalle-mx/SpringB-Notifier | 0b36ffdf04b991eabd5b411e15ee09f49ff32861 | f46cd59c5bb4d83dfa1c3f6b6bb2d19c76acb002 | refs/heads/main | 2023-02-05T01:07:02.000591 | 2020-12-01T02:15:04 | 2020-12-01T02:15:04 | 317,377,520 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,179 | java | package net.tce.model;
// Generated Sep 26, 2017 2:27:37 PM by Hibernate Tools 3.4.0.CR1
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
/**
* Automovil generated by hbm2java
*/
@Entity
@Table(name = "automovil")
@DynamicUpdate
public class Automovil implements java.io.Serializable {
private long idPersona;
private Compensacion compensacion;
private Boolean perteneceCompania;
private String marca;
private String modelo;
private Boolean gastosPagados;
private Boolean opcionCompra;
private Short tiempoCambio;
public Automovil() {
}
public Automovil(Compensacion compensacion) {
this.compensacion = compensacion;
}
public Automovil(Compensacion compensacion, Boolean perteneceCompania,
String marca, String modelo, Boolean gastosPagados,
Boolean opcionCompra, Short tiempoCambio) {
this.compensacion = compensacion;
this.perteneceCompania = perteneceCompania;
this.marca = marca;
this.modelo = modelo;
this.gastosPagados = gastosPagados;
this.opcionCompra = opcionCompra;
this.tiempoCambio = tiempoCambio;
}
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "compensacion"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "id_persona", unique = true, nullable = false)
public long getIdPersona() {
return this.idPersona;
}
public void setIdPersona(long idPersona) {
this.idPersona = idPersona;
}
@OneToOne(fetch = FetchType.LAZY)
@PrimaryKeyJoinColumn
public Compensacion getCompensacion() {
return this.compensacion;
}
public void setCompensacion(Compensacion compensacion) {
this.compensacion = compensacion;
}
@Column(name = "pertenece_compania")
public Boolean getPerteneceCompania() {
return this.perteneceCompania;
}
public void setPerteneceCompania(Boolean perteneceCompania) {
this.perteneceCompania = perteneceCompania;
}
@Column(name = "marca", length = 100)
public String getMarca() {
return this.marca;
}
public void setMarca(String marca) {
this.marca = marca;
}
@Column(name = "modelo", length = 100)
public String getModelo() {
return this.modelo;
}
public void setModelo(String modelo) {
this.modelo = modelo;
}
@Column(name = "gastos_pagados")
public Boolean getGastosPagados() {
return this.gastosPagados;
}
public void setGastosPagados(Boolean gastosPagados) {
this.gastosPagados = gastosPagados;
}
@Column(name = "opcion_compra")
public Boolean getOpcionCompra() {
return this.opcionCompra;
}
public void setOpcionCompra(Boolean opcionCompra) {
this.opcionCompra = opcionCompra;
}
@Column(name = "tiempo_cambio")
public Short getTiempoCambio() {
return this.tiempoCambio;
}
public void setTiempoCambio(Short tiempoCambio) {
this.tiempoCambio = tiempoCambio;
}
}
| [
"netto.speed@gmail.com"
] | netto.speed@gmail.com |
3e5b7be474efb041f70eae1676aadddeeef017c6 | c15b74e50f249df767047dcb2564faf6b8166c51 | /src/main/java/com/xwy/mashibing/disruptor/v2/Main.java | db6550346ad5750ff435c2471214c388d8df8dfb | [] | no_license | never123450/thread | 09c469e97ea1e81d1fdec96bd0784808982540ca | d5727a1643de3a10130166b3b396bac0d294ca63 | refs/heads/master | 2022-07-22T20:06:05.124971 | 2022-07-21T02:33:41 | 2022-07-21T02:33:41 | 204,009,094 | 0 | 0 | null | 2022-07-11T21:09:34 | 2019-08-23T13:57:56 | Java | UTF-8 | Java | false | false | 1,213 | java | package com.xwy.mashibing.disruptor.v2;
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.dsl.Disruptor;
import java.nio.ByteBuffer;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Main {
public static void main(String[] args) {
//ExecutorService executor = Executors.newCachedThreadPool();
LongEventFactory factory = new LongEventFactory();
//must be power of 2
int ringBufferSize = 1024;
Disruptor<LongEvent> disruptor = new Disruptor<LongEvent>(factory, ringBufferSize, Executors.defaultThreadFactory());
disruptor.handleEventsWith(new LongEventHandler());
disruptor.start();
RingBuffer<LongEvent> ringBuffer = disruptor.getRingBuffer();
LongEventProducer producer = new LongEventProducer(ringBuffer);
ByteBuffer bb = ByteBuffer.allocate(8);
for(long l = 0; true; l++) {
bb.putLong(0, 1);
producer.onData(bb);
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}
| [
"845619585@qq.com"
] | 845619585@qq.com |
b07bb840b9067b572403bdcb6651e0cdf97a2a79 | d4c3659ac9ddb5e3c0010b326f3bcc7e33ce0bed | /ren-automation-ui/src/main/java/com/exigen/ren/rest/dxp/model/CustomerRenContact.java | fffb95f1237c7fc9884cdbec4619a5737ea622e4 | [] | no_license | NandiniDR29/regression-test | cbfdae60e8b462cf32485afb3df0d9504200d0e1 | c4acbc3488195217f9d6a780130d2e5dfe01d6e5 | refs/heads/master | 2023-07-03T14:35:40.673146 | 2021-08-11T07:03:13 | 2021-08-11T07:03:13 | 369,527,619 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,240 | java | package com.exigen.ren.rest.dxp.model;
import com.exigen.ipb.eisa.ws.rest.model.Model;
import java.util.List;
import java.util.Objects;
public class CustomerRenContact extends Model {
private List<String> communicationPreferences;
private String id;
public List<String> getCommunicationPreferences() {
return communicationPreferences;
}
public void setCommunicationPreferences(List<String> communicationPreferences) {
this.communicationPreferences = communicationPreferences;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
if (!super.equals(o)) {
return false;
}
CustomerRenContact that = (CustomerRenContact) o;
return Objects.equals(communicationPreferences, that.communicationPreferences) &&
Objects.equals(id, that.id);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), communicationPreferences, id);
}
}
| [
"Nramachandra@previseit.com"
] | Nramachandra@previseit.com |
2a133b2fdf6393551884350cdc07fba7494b6d1a | c80288d71628bc5c4a91fc790a755df4f540c065 | /src/main/java/com/feed_the_beast/ftbquests/quest/task/FTBQuestsTasks.java | 218249e4811a6aa7b979d90d6f76fc93d74ff5db | [] | no_license | ragnardragus/FTB-Quests | f2b1b6bd45d71dd3122b249b4fb73eb1f28ec4d7 | ce61b4c3425eca4fd016c2df2fb75440df71e91d | refs/heads/master | 2022-11-13T10:16:48.958807 | 2020-06-28T11:14:46 | 2020-06-28T11:14:46 | 276,996,134 | 0 | 0 | null | 2020-07-03T22:17:19 | 2020-07-03T22:17:19 | null | UTF-8 | Java | false | false | 511 | java | package com.feed_the_beast.ftbquests.quest.task;
/**
* @author LatvianModder
*/
public class FTBQuestsTasks
{
public static TaskType ITEM;
public static TaskType FLUID;
public static TaskType FORGE_ENERGY;
public static TaskType CUSTOM;
public static TaskType XP;
public static TaskType DIMENSION;
public static TaskType STAT;
public static TaskType KILL;
public static TaskType LOCATION;
public static TaskType CHECKMARK;
public static TaskType ADVANCEMENT;
public static TaskType OBSERVATION;
} | [
"latvianmodder@gmail.com"
] | latvianmodder@gmail.com |
ec927dc90451bebb46020e6103f9a8d06bacbe00 | ef589b3133a38e3ccf47087a3976f8ff83c47e90 | /FaultyVersions/AORB_14/BillCalculation.java | 9cf2435d36a43022fffcd4b7848b3b83021a449b | [] | no_license | liubaoli-and/ChinaUnionBillService | 59f9ff171ed9004c7ab4f7b021dcd6c2d3151e82 | 2e329b3fda45be93f036dfcda7c477cdba68b293 | refs/heads/main | 2023-07-22T10:54:10.698669 | 2021-09-09T11:56:25 | 2021-09-09T11:56:25 | 306,785,290 | 4 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,853 | java | // This is mutant program.
// Author : ysma
package ustb.edu.cn.bill.AORB_14;
import java.io.IOException;
public class BillCalculation
{
private java.lang.String planType = "";
private int planFee = 0;
private int talkTime = 0;
private int flow = 0;
private int callViewTime = 0;
private double talkTimePer = 0;
private double flowPer = 0.3;
private double viewPer = 0.6;
private int talkTimeBench = 0;
private int flowBench = 0;
private double bill = 0;
public double phoneBillCalculation( java.lang.String planType, int planFee, int talkTime, int flow, int callViewTime )
{
if (planType == "A" || planType == "a") {
switch (planFee) {
case 46 :
talkTimeBench = 50;
flowBench = 150;
talkTimePer = 0.25;
break;
case 96 :
talkTimeBench = 96;
flowBench = 240;
talkTimePer = 0.15;
break;
case 286 :
talkTimeBench = 286;
flowBench = 900;
talkTimePer = 0.15;
break;
case 886 :
talkTimeBench = 3000;
flowBench = 3000;
talkTimePer = 0.15;
break;
default :
new java.io.IOException( "Invalid planFee!" );
}
} else {
if (planType == "B" || planType == "b") {
switch (planFee) {
case 46 :
talkTimeBench = 120;
flowBench = 40;
talkTimePer = 0.25;
break;
case 96 :
talkTimeBench = 450;
flowBench = 80;
talkTimePer = 0.15;
break;
case 126 :
talkTimeBench = 680;
flowBench = 100;
talkTimePer = 0.15;
break;
case 186 :
talkTimeBench = 1180;
flowBench = 150;
talkTimePer = 0.15;
break;
default :
new java.io.IOException( "Invalid planFee" );
}
} else {
new java.io.IOException( "Invalid planType!" );
}
}
if (talkTime < talkTimeBench) {
talkTime = talkTimeBench;
}
if (flow < flowBench) {
flow = flowBench;
}
bill = (talkTime - talkTimeBench) * talkTimePer + (flow - flowBench) % flowPer + planFee;
return bill;
}
}
| [
"57534835+liubaoli-and@users.noreply.github.com"
] | 57534835+liubaoli-and@users.noreply.github.com |
07eaea6c493c29454c6f17bf19e5773ec0d72bb3 | 0eedecfa934534d6c57d1318fa5cce31ab400055 | /app/src/main/java/com/example/xpoup/custom/QQMsgPopup.java | a070c570da82ce362490ae501bc8a8ae9bc3b4f5 | [] | no_license | yufeilong92/Xpoup | 5b0580b68091fd4fc83f772b5f9b0dc4cb43a68f | 5b9c087150a426615d5d77d379533b7f0a40b73b | refs/heads/master | 2023-01-04T15:44:39.938335 | 2020-10-28T07:49:07 | 2020-10-28T07:49:07 | 307,941,937 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 504 | java | package com.example.xpoup.custom;
import android.content.Context;
import androidx.annotation.NonNull;
import com.example.xpoup.R;
import com.lxj.xpopup.core.PositionPopupView;
/**
* Description: 自定义自由定位Position弹窗
* Create by dance, at 2019/6/14
*/
public class QQMsgPopup extends PositionPopupView {
public QQMsgPopup(@NonNull Context context) {
super(context);
}
@Override
protected int getImplLayoutId() {
return R.layout.popup_qq_msg;
}
}
| [
"931697478@qq.com"
] | 931697478@qq.com |
b350d0a6c4a95395d38847a22eb7a833728a9438 | a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb | /oss-20190517/src/main/java/com/aliyun/oss20190517/models/UploadPartCopyResponseBody.java | 0bf5c6a22a20082e70a5e912235760354b811914 | [
"Apache-2.0"
] | permissive | aliyun/alibabacloud-java-sdk | 83a6036a33c7278bca6f1bafccb0180940d58b0b | 008923f156adf2e4f4785a0419f60640273854ec | refs/heads/master | 2023-09-01T04:10:33.640756 | 2023-09-01T02:40:45 | 2023-09-01T02:40:45 | 288,968,318 | 40 | 45 | null | 2023-06-13T02:47:13 | 2020-08-20T09:51:08 | Java | UTF-8 | Java | false | false | 921 | java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.oss20190517.models;
import com.aliyun.tea.*;
public class UploadPartCopyResponseBody extends TeaModel {
@NameInMap("ETag")
public String ETag;
@NameInMap("LastModified")
public String lastModified;
public static UploadPartCopyResponseBody build(java.util.Map<String, ?> map) throws Exception {
UploadPartCopyResponseBody self = new UploadPartCopyResponseBody();
return TeaModel.build(map, self);
}
public UploadPartCopyResponseBody setETag(String ETag) {
this.ETag = ETag;
return this;
}
public String getETag() {
return this.ETag;
}
public UploadPartCopyResponseBody setLastModified(String lastModified) {
this.lastModified = lastModified;
return this;
}
public String getLastModified() {
return this.lastModified;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
56414ac88f1f7efe863fd98e878fcaabf7363530 | 7909e4ad012fcda9bd33c7f01fca2ff05a7fa9dc | /Spring/Security/StartProject/src/main/java/org/itstep/security/domain/entities/Appointment.java | 858c4c0de3f85e0682d5af0660fccc223c4e32d7 | [] | no_license | maxchv/JavaLessons | 96cdf624c8156ae6dc2b79a5375f4dead6265e52 | 6501afa5e8f86c2a412f8e178985a69f74a20a7c | refs/heads/master | 2021-05-04T11:37:40.641849 | 2018-10-24T13:43:19 | 2018-10-24T13:43:33 | 51,415,816 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,393 | java | package org.itstep.security.domain.entities;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.ElementCollection;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.itstep.security.domain.entities.util.LocalDateConverter;
import org.springframework.format.annotation.DateTimeFormat;
@Entity
@Table(name = "APPOINTMENT")
public class Appointment {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "APPOINTMENT_ID")
private Long appointmentId;
@ManyToOne(fetch=FetchType.EAGER, cascade=CascadeType.PERSIST)
@JoinColumn(name = "USER_ID")
private AutoUser user;
@Embedded
private Automobile automobile;
@Column(name = "APPOINTMENT_DT")
@Convert(converter = LocalDateConverter.class)
@DateTimeFormat(pattern = "dd-MM-yyyy")
private LocalDate appointmentDt;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "SERVICES", joinColumns = { @JoinColumn(name = "APPOINTMENT_ID") })
@Column(name = "NAME")
private List<String> services = new ArrayList<String>();
@Column(name = "STATUS")
private String status;
public Long getAppointmentId() {
return appointmentId;
}
public void setAppointmentId(Long appointmentId) {
this.appointmentId = appointmentId;
}
public AutoUser getUser() {
return user;
}
public void setUser(AutoUser user) {
this.user = user;
}
public Automobile getAutomobile() {
return automobile;
}
public void setAutomobile(Automobile automobile) {
this.automobile = automobile;
}
public LocalDate getAppointmentDt() {
return appointmentDt;
}
public void setAppointmentDt(LocalDate appointmentDt) {
this.appointmentDt = appointmentDt;
}
public List<String> getServices() {
return services;
}
public void setServices(List<String> services) {
this.services = services;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}
| [
"maxshaptala@gmail.com"
] | maxshaptala@gmail.com |
c1c9e13feb8d7bfeac3bb5daae75f4bd17418fd8 | d3fa8ded9d393ba9b03388ba7f05fc559cf31d1e | /Codes/probe/monitor/impl/src/com/broada/carrier/monitor/impl/mw/websphere/entity/was/Item.java | 83e934599b8f96b9ccbff7d1bb36c2ab9c37cfaa | [] | no_license | lengxu/YouYun | e20c4d8f553ccb245e96de177a67f776666e986f | b0ad8fd0b0e70dd2445cecb9ae7b00f7e0a20815 | refs/heads/master | 2020-09-13T22:30:49.642980 | 2017-11-27T03:13:34 | 2017-11-27T03:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,475 | java | package com.broada.carrier.monitor.impl.mw.websphere.entity.was;
import java.util.ArrayList;
import java.util.List;
import com.broada.carrier.monitor.impl.common.convertor.MonResultConvertor;
/**
* @author lixy Sep 16, 2008 2:34:03 PM
*/
public class Item {
private String id;
private String code;
private String name;
private String eleId;
private String attr;
private String value;
private String bsh;
private List<MonResultConvertor> convertors = new ArrayList<MonResultConvertor>();
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEleId() {
return eleId;
}
public void setEleId(String eleId) {
this.eleId = eleId;
}
public String getAttr() {
return attr;
}
public void setAttr(String attr) {
this.attr = attr;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getBsh() {
return bsh;
}
public void setBsh(String bsh) {
this.bsh = bsh;
}
public List<MonResultConvertor> getConvertors() {
return convertors;
}
public void addConvertor(MonResultConvertor convertor) {
this.convertors.add(convertor);
}
}
| [
"smartbrandnew@163.com"
] | smartbrandnew@163.com |
e517d436aa29e8457981b3bf51a5702e42ad001c | 656ce78b903ef3426f8f1ecdaee57217f9fbc40e | /src/o/qe.java | 9d6de4e47adfbba235907ae6f91f5601ec69848b | [] | no_license | zhuharev/periscope-android-source | 51bce2c1b0b356718be207789c0b84acf1e7e201 | 637ab941ed6352845900b9d465b8e302146b3f8f | refs/heads/master | 2021-01-10T01:47:19.177515 | 2015-12-25T16:51:27 | 2015-12-25T16:51:27 | 48,586,306 | 8 | 10 | null | null | null | null | UTF-8 | Java | false | false | 647 | java | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package o;
import java.util.HashMap;
// Referenced classes of package o:
// qd
public final class qe extends qd
{
public qe()
{
super("None");
}
public final String getName()
{
return "None";
}
public final HashMap _mth03A4()
{
return new HashMap();
}
public final boolean _mth03BF()
{
return true;
}
public final boolean _mth03C5()
{
return false;
}
}
| [
"hostmaster@zhuharev.ru"
] | hostmaster@zhuharev.ru |
396bbcb59e2b5f572313e784288a9d5c6987ccf2 | f7fbc015359f7e2a7bae421918636b608ea4cef6 | /base-one/tags/hsqldb_1_8_0_RC8/src/org/hsqldb/lib/HsqlList.java | 5b9c8a87ce42c2bb0bd117ec5a86d728e0411e4d | [] | no_license | svn2github/hsqldb | cdb363112cbdb9924c816811577586f0bf8aba90 | 52c703b4d54483899d834b1c23c1de7173558458 | refs/heads/master | 2023-09-03T10:33:34.963710 | 2019-01-18T23:07:40 | 2019-01-18T23:07:40 | 155,365,089 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,171 | java | /* Copyright (c) 2001-2005, The HSQL Development Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 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.
*
* Neither the name of the HSQL Development Group 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 HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
* 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.
*/
package org.hsqldb.lib;
/**
* This should be used as the datatype for parameters and instance variables
* instead of HsqlArrayList or HsqlLinkedList to allow interchangable use of the
* two.
*
* @author dnordahl@users
* @version 1.7.2
* @since 1.7.2
*/
public interface HsqlList {
void add(int index, Object element);
boolean add(Object element);
Object get(int index);
Object remove(int index);
Object set(int index, Object element);
boolean isEmpty();
int size();
Iterator iterator();
}
| [
"(no author)@7c7dc5f5-a22d-0410-a3af-b41755a11667"
] | (no author)@7c7dc5f5-a22d-0410-a3af-b41755a11667 |
f36d1fdbc71dca4173f2fefcf8abffc734d6072d | 9254e7279570ac8ef687c416a79bb472146e9b35 | /sas-20181203/src/main/java/com/aliyun/sas20181203/models/DescribeSummaryInfoResponseBody.java | 054da14f2970b24d293864364cb7ecef9af4f946 | [
"Apache-2.0"
] | permissive | lquterqtd/alibabacloud-java-sdk | 3eaa17276dd28004dae6f87e763e13eb90c30032 | 3e5dca8c36398469e10cdaaa34c314ae0bb640b4 | refs/heads/master | 2023-08-12T13:56:26.379027 | 2021-10-19T07:22:15 | 2021-10-19T07:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,021 | java | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sas20181203.models;
import com.aliyun.tea.*;
public class DescribeSummaryInfoResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
@NameInMap("Success")
public Boolean success;
@NameInMap("AegisClientOfflineCount")
public Integer aegisClientOfflineCount;
@NameInMap("AegisClientOnlineCount")
public Integer aegisClientOnlineCount;
@NameInMap("SecurityScore")
public Integer securityScore;
public static DescribeSummaryInfoResponseBody build(java.util.Map<String, ?> map) throws Exception {
DescribeSummaryInfoResponseBody self = new DescribeSummaryInfoResponseBody();
return TeaModel.build(map, self);
}
public DescribeSummaryInfoResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public DescribeSummaryInfoResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public DescribeSummaryInfoResponseBody setAegisClientOfflineCount(Integer aegisClientOfflineCount) {
this.aegisClientOfflineCount = aegisClientOfflineCount;
return this;
}
public Integer getAegisClientOfflineCount() {
return this.aegisClientOfflineCount;
}
public DescribeSummaryInfoResponseBody setAegisClientOnlineCount(Integer aegisClientOnlineCount) {
this.aegisClientOnlineCount = aegisClientOnlineCount;
return this;
}
public Integer getAegisClientOnlineCount() {
return this.aegisClientOnlineCount;
}
public DescribeSummaryInfoResponseBody setSecurityScore(Integer securityScore) {
this.securityScore = securityScore;
return this;
}
public Integer getSecurityScore() {
return this.securityScore;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
86714dd97776a4239e2891e8bc39417b0c817d25 | 22b9c697e549de334ac354dfc1d14223eff99121 | /PaaS_SaaS_Accelerator_RESTFulFacade/XJC_Beans/src/com/oracle/xmlns/apps/marketing/leadmgmt/leads/leadservice/types/FindSalesLeadResource.java | 61dec73ec78256f6cd1e482499d7698194328333 | [
"BSD-3-Clause"
] | permissive | digideskio/oracle-cloud | 50e0d24e937b3afc991ad9cb418aa2bb263a4372 | 80420e9516290e5d5bfd6c0fa2eaacbc11762ec7 | refs/heads/master | 2021-01-22T13:57:21.947497 | 2016-05-13T06:26:16 | 2016-05-13T06:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,856 | java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.10.24 at 02:08:17 PM BST
//
package com.oracle.xmlns.apps.marketing.leadmgmt.leads.leadservice.types;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import com.oracle.xmlns.adf.svc.types.FindControl;
import com.oracle.xmlns.adf.svc.types.FindCriteria;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="findCriteria" type="{http://xmlns.oracle.com/adf/svc/types/}FindCriteria"/>
* <element name="findControl" type="{http://xmlns.oracle.com/adf/svc/types/}FindControl"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"findCriteria",
"findControl"
})
@XmlRootElement(name = "findSalesLeadResource")
public class FindSalesLeadResource {
@XmlElement(required = true)
protected FindCriteria findCriteria;
@XmlElement(required = true)
protected FindControl findControl;
/**
* Gets the value of the findCriteria property.
*
* @return
* possible object is
* {@link FindCriteria }
*
*/
public FindCriteria getFindCriteria() {
return findCriteria;
}
/**
* Sets the value of the findCriteria property.
*
* @param value
* allowed object is
* {@link FindCriteria }
*
*/
public void setFindCriteria(FindCriteria value) {
this.findCriteria = value;
}
/**
* Gets the value of the findControl property.
*
* @return
* possible object is
* {@link FindControl }
*
*/
public FindControl getFindControl() {
return findControl;
}
/**
* Sets the value of the findControl property.
*
* @param value
* allowed object is
* {@link FindControl }
*
*/
public void setFindControl(FindControl value) {
this.findControl = value;
}
}
| [
"shailendrapradhan@Shailendras-MacBook-Pro.local"
] | shailendrapradhan@Shailendras-MacBook-Pro.local |
747a3647b7417d992762a95719ea1f08a4dba9c0 | 3dd35c0681b374ce31dbb255b87df077387405ff | /generated/com/guidewire/_generated/productmodel/GL7SeedMerchantsCovForErroneousDeliveryMixtureAnd1InternalAccess.java | e9bb8cafc238618b03355db1a8425ac2df47fb61 | [] | no_license | walisashwini/SBTBackup | 58b635a358e8992339db8f2cc06978326fed1b99 | 4d4de43576ec483bc031f3213389f02a92ad7528 | refs/heads/master | 2023-01-11T09:09:10.205139 | 2020-11-18T12:11:45 | 2020-11-18T12:11:45 | 311,884,817 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 946 | java | package com.guidewire._generated.productmodel;
@javax.annotation.Generated(comments = "config/resources/productmodel/policylinepatterns/GL7Line/coveragepatterns/GL7SeedMerchantsCovForErroneousDeliveryMixtureAnd1.xml", date = "", value = "com.guidewire.pc.productmodel.codegen.ProductModelCodegen")
public class GL7SeedMerchantsCovForErroneousDeliveryMixtureAnd1InternalAccess {
public static final com.guidewire.pl.system.internal.FriendAccessor<com.guidewire.pc.domain.productmodel.ProductModelFriendAccess<productmodel.GL7SeedMerchantsCovForErroneousDeliveryMixtureAnd1>> FRIEND_ACCESSOR = new com.guidewire.pl.system.internal.FriendAccessor<com.guidewire.pc.domain.productmodel.ProductModelFriendAccess<productmodel.GL7SeedMerchantsCovForErroneousDeliveryMixtureAnd1>>(productmodel.GL7SeedMerchantsCovForErroneousDeliveryMixtureAnd1.class);
private GL7SeedMerchantsCovForErroneousDeliveryMixtureAnd1InternalAccess() {
}
} | [
"ashwini@cruxxtechnologies.com"
] | ashwini@cruxxtechnologies.com |
5ec13849165a06b2d197a3a09d3ea12ebfd48826 | d1a6d1e511df6db8d8dd0912526e3875c7e1797d | /genny_JavaWithoutLambdasApi21_ReducedClassCount/applicationModule/src/main/java/applicationModulepackageJava5/Foo946.java | 56eabd51fb4df28e997aab6b2a547f8080d8b5e6 | [] | no_license | NikitaKozlov/generated-project-for-desugaring | 0bc1443ab3ddc84cd289331c726761585766aea7 | 81506b3711004185070ca4bb9a93482b70011d36 | refs/heads/master | 2020-03-20T00:35:06.996525 | 2018-06-12T09:30:37 | 2018-06-12T09:30:37 | 137,049,317 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 506 | java | package applicationModulepackageJava5;
public class Foo946 {
public void foo0() {
new applicationModulepackageJava5.Foo945().foo9();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
public void foo5() {
foo4();
}
public void foo6() {
foo5();
}
public void foo7() {
foo6();
}
public void foo8() {
foo7();
}
public void foo9() {
foo8();
}
}
| [
"nikita.e.kozlov@gmail.com"
] | nikita.e.kozlov@gmail.com |
500408a014a51026025ac49c2d8caa363c27fdeb | 77ab75ce8218c4949fd51fe6a5d6664bab2925e1 | /debezium-connector-cassandra/src/test/java/io/debezium/connector/cassandra/SchemaProcessorTest.java | ee90134565ca3d70ee9a7d3820f567ce54ec9988 | [
"Apache-2.0"
] | permissive | SeanRooooney/DBZ-695-debezium-db2-connector | 9cd3ce2aed9d099568fa6cca78d6a96dec9bcedc | 6adcc8458a17b76504954d26d4408d2f1d83a3ba | refs/heads/master | 2020-08-06T04:15:05.312642 | 2020-01-31T08:31:29 | 2020-01-31T08:31:29 | 212,829,699 | 1 | 0 | Apache-2.0 | 2020-01-31T08:31:30 | 2019-10-04T14:08:55 | Java | UTF-8 | Java | false | false | 2,958 | java | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.connector.cassandra;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import org.junit.Test;
import com.datastax.driver.core.TableMetadata;
public class SchemaProcessorTest extends EmbeddedCassandraConnectorTestBase {
@Test
public void testProcess() throws Exception {
CassandraConnectorContext context = generateTaskContext();
SchemaProcessor schemaProcessor = new SchemaProcessor(context);
assertEquals(0, context.getSchemaHolder().getCdcEnabledTableMetadataSet().size());
context.getCassandraClient().execute("CREATE TABLE IF NOT EXISTS " + keyspaceTable("table1") + " (a int, b text, PRIMARY KEY(a)) WITH cdc = false;");
schemaProcessor.process();
assertEquals(0, context.getSchemaHolder().getCdcEnabledTableMetadataSet().size());
assertNull(context.getSchemaHolder().getOrUpdateKeyValueSchema(new KeyspaceTable(TEST_KEYSPACE, "table1")));
context.getCassandraClient().execute("ALTER TABLE " + keyspaceTable("table1") + " WITH cdc = true;");
schemaProcessor.process();
assertEquals(1, context.getSchemaHolder().getCdcEnabledTableMetadataSet().size());
assertNotNull(context.getSchemaHolder().getOrUpdateKeyValueSchema(new KeyspaceTable(TEST_KEYSPACE, "table1")));
context.getCassandraClient().execute("CREATE TABLE IF NOT EXISTS " + keyspaceTable("table2") + " (a int, b text, PRIMARY KEY(a)) WITH cdc = true;");
schemaProcessor.process();
assertEquals(2, context.getSchemaHolder().getCdcEnabledTableMetadataSet().size());
assertNotNull(context.getSchemaHolder().getOrUpdateKeyValueSchema(new KeyspaceTable(TEST_KEYSPACE, "table1")));
assertNotNull(context.getSchemaHolder().getOrUpdateKeyValueSchema(new KeyspaceTable(TEST_KEYSPACE, "table2")));
context.getCassandraClient().execute("ALTER TABLE " + keyspaceTable("table2") + " ADD c text");
schemaProcessor.process();
assertEquals(2, context.getSchemaHolder().getCdcEnabledTableMetadataSet().size());
TableMetadata expectedTm1 = context.getCassandraClient().getCdcEnabledTableMetadata(TEST_KEYSPACE, "table1");
TableMetadata expectedTm2 = context.getCassandraClient().getCdcEnabledTableMetadata(TEST_KEYSPACE, "table2");
TableMetadata tm1 = context.getSchemaHolder().getOrUpdateKeyValueSchema(new KeyspaceTable(TEST_KEYSPACE, "table1")).tableMetadata();
TableMetadata tm2 = context.getSchemaHolder().getOrUpdateKeyValueSchema(new KeyspaceTable(TEST_KEYSPACE, "table2")).tableMetadata();
assertEquals(expectedTm1, tm1);
assertEquals(expectedTm2, tm2);
deleteTestKeyspaceTables();
context.cleanUp();
}
}
| [
"gunnar.morling@googlemail.com"
] | gunnar.morling@googlemail.com |
ea794ff3253a6f8618075d1fca296dd58a00a239 | dd90264bbfb79700d1d32effc207b555c29f3bcf | /mybatis-plus1/mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/injector/SqlRunnerInjector.java | a80ca275e80e33e154f93a78d9709587e0e5467b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tomzhang/other_workplace | 8cead3feda7e9f067412da8252d83da56a000b51 | 9b5beaf4ed3586e6037bd84968c6a407a8635e16 | refs/heads/master | 2020-04-22T22:18:23.913665 | 2019-01-26T03:36:19 | 2019-01-26T03:36:19 | 170,703,419 | 1 | 0 | null | 2019-02-14T14:23:21 | 2019-02-14T14:23:20 | null | UTF-8 | Java | false | false | 6,309 | java | /*
* Copyright (c) 2011-2020, hubin (jobob@qq.com).
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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.baomidou.mybatisplus.core.injector;
import java.util.ArrayList;
import java.util.Map;
import org.apache.ibatis.logging.Log;
import org.apache.ibatis.logging.LogFactory;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.ResultMap;
import org.apache.ibatis.mapping.ResultMapping;
import org.apache.ibatis.mapping.SqlCommandType;
import org.apache.ibatis.mapping.SqlSource;
import org.apache.ibatis.scripting.LanguageDriver;
import org.apache.ibatis.session.Configuration;
import com.baomidou.mybatisplus.core.assist.ISqlRunner;
/**
* <p>
* SqlRunner 注入器
* </p>
*
* @author hubin
* @since 2018-04-08
*/
public class SqlRunnerInjector {
private static final Log logger = LogFactory.getLog(SqlRunnerInjector.class);
protected Configuration configuration;
protected LanguageDriver languageDriver;
public void inject(Configuration configuration) {
this.configuration = configuration;
this.languageDriver = configuration.getDefaultScriptingLanguageInstance();
this.initSelectList();
this.initSelectObjs();
this.initInsert();
this.initUpdate();
this.initDelete();
this.initCount();
}
/**
* 是否已经存在MappedStatement
*
* @param mappedStatement
* @return
*/
private boolean hasMappedStatement(String mappedStatement) {
return configuration.hasStatement(mappedStatement, false);
}
/**
* 创建查询MappedStatement
*
* @param mappedStatement
* @param sqlSource 执行的sqlSource
* @param resultType 返回的结果类型
*/
@SuppressWarnings("serial")
private void createSelectMappedStatement(String mappedStatement, SqlSource sqlSource, final Class<?> resultType) {
MappedStatement ms = new MappedStatement.Builder(configuration, mappedStatement, sqlSource, SqlCommandType.SELECT)
.resultMaps(new ArrayList<ResultMap>() {
{
add(new ResultMap.Builder(configuration, "defaultResultMap", resultType, new ArrayList<>(0))
.build());
}
}).build();
// 缓存
configuration.addMappedStatement(ms);
}
/**
* 创建一个MappedStatement
*
* @param mappedStatement
* @param sqlSource 执行的sqlSource
* @param sqlCommandType 执行的sqlCommandType
*/
@SuppressWarnings("serial")
private void createUpdateMappedStatement(String mappedStatement, SqlSource sqlSource, SqlCommandType sqlCommandType) {
MappedStatement ms = new MappedStatement.Builder(configuration, mappedStatement, sqlSource, sqlCommandType).resultMaps(
new ArrayList<ResultMap>() {
{
add(new ResultMap.Builder(configuration, "defaultResultMap", int.class, new ArrayList<>(0))
.build());
}
}).build();
// 缓存
configuration.addMappedStatement(ms);
}
/**
* initSelectList
*/
private void initSelectList() {
if (hasMappedStatement(ISqlRunner.SELECT_LIST)) {
logger.warn("MappedStatement 'SqlRunner.SelectList' Already Exists");
return;
}
SqlSource sqlSource = languageDriver.createSqlSource(configuration, ISqlRunner.SQL_SCRIPT, Map.class);
createSelectMappedStatement(ISqlRunner.SELECT_LIST, sqlSource, Map.class);
}
/**
* initSelectObjs
*/
private void initSelectObjs() {
if (hasMappedStatement(ISqlRunner.SELECT_OBJS)) {
logger.warn("MappedStatement 'SqlRunner.SelectObjs' Already Exists");
return;
}
SqlSource sqlSource = languageDriver.createSqlSource(configuration, ISqlRunner.SQL_SCRIPT, Object.class);
createSelectMappedStatement(ISqlRunner.SELECT_OBJS, sqlSource, Object.class);
}
/**
* initCount
*/
private void initCount() {
if (hasMappedStatement(ISqlRunner.COUNT)) {
logger.warn("MappedStatement 'SqlRunner.Count' Already Exists");
return;
}
SqlSource sqlSource = languageDriver.createSqlSource(configuration, ISqlRunner.SQL_SCRIPT, Map.class);
createSelectMappedStatement(ISqlRunner.COUNT, sqlSource, Integer.class);
}
/**
* initInsert
*/
private void initInsert() {
if (hasMappedStatement(ISqlRunner.INSERT)) {
logger.warn("MappedStatement 'SqlRunner.Insert' Already Exists");
return;
}
SqlSource sqlSource = languageDriver.createSqlSource(configuration, ISqlRunner.SQL_SCRIPT, Map.class);
createUpdateMappedStatement(ISqlRunner.INSERT, sqlSource, SqlCommandType.INSERT);
}
/**
* initUpdate
*/
private void initUpdate() {
if (hasMappedStatement(ISqlRunner.UPDATE)) {
logger.warn("MappedStatement 'SqlRunner.Update' Already Exists");
return;
}
SqlSource sqlSource = languageDriver.createSqlSource(configuration, ISqlRunner.SQL_SCRIPT, Map.class);
createUpdateMappedStatement(ISqlRunner.UPDATE, sqlSource, SqlCommandType.UPDATE);
}
/**
* initDelete
*/
private void initDelete() {
if (hasMappedStatement(ISqlRunner.DELETE)) {
logger.warn("MappedStatement 'SqlRunner.Delete' Already Exists");
return;
}
SqlSource sqlSource = languageDriver.createSqlSource(configuration, ISqlRunner.SQL_SCRIPT, Map.class);
createUpdateMappedStatement(ISqlRunner.DELETE, sqlSource, SqlCommandType.DELETE);
}
}
| [
"Pj879227577"
] | Pj879227577 |
07f79306c079650b1c9e2ba6583663c05647fe34 | cded08c92cd17d66eaf5c412eaa4ce0f11f4c54a | /inference-framework/checker-framework/checkers/inference-tests/sflow/iterator/Main.java | 42fa6d286359783f44cdf4840f073bd93858fc8e | [
"Apache-2.0"
] | permissive | ANter-xidian/type-inference | 77aa54f5fa93abc8dfcdbc93be4654cfebaa5ad9 | 90d002a1e2d0a3d160ab204084da9d5be5fdd971 | refs/heads/master | 2020-09-27T14:53:33.530140 | 2019-01-22T21:26:11 | 2019-01-22T21:26:11 | 226,540,844 | 1 | 0 | NOASSERTION | 2019-12-07T16:12:36 | 2019-12-07T16:12:35 | null | UTF-8 | Java | false | false | 777 | java | /*>>>
import checkers.inference.sflow.quals.*;
*/
class C {
X arr[] = new X[10];
void put(X x) {
arr[0] = x;
}
X get() {
return arr[0];
}
I iter() {
I i = new I(this);
return i;
}
}
class I {
C c;
I(C c) {
this.c = c;
}
X next() {
X ret = c.arr[0];
return ret;
}
}
class X {}
class Main {
public static void main() {
/*@Tainted*/ X x = new X();
C c = new C();
c.put(x);
I i = c.iter();
/*@Safe*/ X x2 = i.next();
}
}
/*
There should be a type error due to the flow x => x2. Look for linear constraints
x <: this in C.put
this <: ret in C.get
c <: this in I.I
this <: ret in C.iter
*/
| [
"csweihuang@gmail.com@e039eaa7-eea3-5927-096b-721137851c37"
] | csweihuang@gmail.com@e039eaa7-eea3-5927-096b-721137851c37 |
14392d0184ff0d0941684f0be0cee12d5141e558 | a6e2cd9ea01bdc5cfe58acce25627786fdfe76e9 | /src/main/java/com/alipay/api/response/AntMerchantExpandAssetinfoDeliverySyncResponse.java | 908b13cb2521eea45825b8a310ea73c31ef93c50 | [
"Apache-2.0"
] | permissive | cc-shifo/alipay-sdk-java-all | 38b23cf946b73768981fdeee792e3dae568da48c | 938d6850e63160e867d35317a4a00ed7ba078257 | refs/heads/master | 2022-12-22T14:06:26.961978 | 2020-09-23T04:00:10 | 2020-09-23T04:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 891 | java | package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.AssetResult;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: ant.merchant.expand.assetinfo.delivery.sync response.
*
* @author auto create
* @since 1.0, 2020-09-14 20:31:49
*/
public class AntMerchantExpandAssetinfoDeliverySyncResponse extends AlipayResponse {
private static final long serialVersionUID = 2229438841898221758L;
/**
* 物料信息反馈处理结果
*/
@ApiListField("info_results")
@ApiField("asset_result")
private List<AssetResult> infoResults;
public void setInfoResults(List<AssetResult> infoResults) {
this.infoResults = infoResults;
}
public List<AssetResult> getInfoResults( ) {
return this.infoResults;
}
}
| [
"ben.zy@antfin.com"
] | ben.zy@antfin.com |
025140fbc554feb597532c71a3c9165533ad6a79 | 5d6c374a2518d469d674a1327d21d8e0cf2b54f7 | /modules/plugin/jdbc/jdbc-sqlserver/src/test/java/org/geotools/data/sqlserver/SQLServerDataStoreFactoryTest.java | 6a476f2bbe2463f2727a5025a27493013757e090 | [] | no_license | HGitMaster/geotools-osgi | 648ebd9343db99a1e2688d9aefad857f6521898d | 09f6e327fb797c7e0451e3629794a3db2c55c32b | refs/heads/osgi | 2021-01-19T08:33:56.014532 | 2014-03-19T18:04:03 | 2014-03-19T18:04:03 | 4,750,321 | 3 | 0 | null | 2014-03-19T13:50:54 | 2012-06-22T11:21:01 | Java | UTF-8 | Java | false | false | 2,813 | java | /*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2002-2008, Open Source Geospatial Foundation (OSGeo)
*
* 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;
* version 2.1 of the License.
*
* 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.
*/
package org.geotools.data.sqlserver;
import static org.geotools.jdbc.JDBCDataStoreFactory.DATABASE;
import static org.geotools.jdbc.JDBCDataStoreFactory.DBTYPE;
import static org.geotools.jdbc.JDBCDataStoreFactory.HOST;
import static org.geotools.jdbc.JDBCDataStoreFactory.PASSWD;
import static org.geotools.jdbc.JDBCDataStoreFactory.PORT;
import static org.geotools.jdbc.JDBCDataStoreFactory.USER;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.geotools.jdbc.JDBCDataStore;
import org.geotools.jdbc.JDBCTestSetup;
import org.geotools.jdbc.JDBCTestSupport;
public class SQLServerDataStoreFactoryTest extends JDBCTestSupport {
@Override
protected JDBCTestSetup createTestSetup() {
return new SQLServerTestSetup();
}
public void testCreateDataStore() throws Exception {
checkConnection(false);
}
public void testCreateDataStoreWithDatabase() throws Exception {
checkConnection(true);
}
void checkConnection(boolean includedb) throws Exception {
Properties db = new Properties();
db.load(getClass().getResourceAsStream("factory.properties"));
Map<String, Object> params = new HashMap<String, Object>();
params.put(HOST.key, db.getProperty(HOST.key));
if (includedb) {
params.put(DATABASE.key, db.getProperty(DATABASE.key));
}
params.put(PORT.key, db.getProperty(PORT.key));
params.put(USER.key, db.getProperty(USER.key));
params.put(PASSWD.key, db.getProperty(PASSWD.key));
SQLServerDataStoreFactory factory = new SQLServerDataStoreFactory();
params.put(DBTYPE.key, factory.getDatabaseID());
assertTrue(factory.canProcess(params));
JDBCDataStore store = factory.createDataStore(params);
assertNotNull(store);
try {
// check dialect
assertTrue(store.getSQLDialect() instanceof SQLServerDialect);
// force connection usage
assertNotNull(store.getSchema("ft1"));
} finally {
store.dispose();
}
}
}
| [
"devnull@localhost"
] | devnull@localhost |
a84578b09fd6df70fc5262d8972bdfe7d638056e | 3470bff16f74b053ea284552f37f798be97764b7 | /jps/jps-builders/src/org/jetbrains/jps/incremental/artifacts/instructions/CopyToDirectoryInstructionCreator.java | d7acc17c29709de0a67cac10a2374bea418770f2 | [
"Apache-2.0"
] | permissive | gshakhn/intellij-community | 707dc4cd0951a43221aa78a569232cf1cd41d20d | f1402616a3b23db8802a5571d0bcc4f2880d1f65 | refs/heads/master | 2021-01-15T19:39:34.792819 | 2012-07-27T12:58:56 | 2012-07-27T12:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,253 | java | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.jps.incremental.artifacts.instructions;
import org.jetbrains.annotations.NotNull;
import java.io.File;
/**
* @author nik
*/
public class CopyToDirectoryInstructionCreator extends ArtifactCompilerInstructionCreatorBase {
private final String myOutputPath;
public CopyToDirectoryInstructionCreator(ArtifactInstructionsBuilderImpl builder, String outputPath) {
super(builder);
myOutputPath = outputPath;
}
public void addFileCopyInstruction(@NotNull File file, @NotNull String outputFileName) {
myInstructionsBuilder.addDestination(myInstructionsBuilder.createFileBasedRoot(file, SourceFileFilter.ALL), new ExplodedDestinationInfo(myOutputPath + "/" + outputFileName));
}
@Override
protected void addDirectoryCopyInstructions(ArtifactSourceRoot root) {
myInstructionsBuilder.addDestination(root, new ExplodedDestinationInfo(myOutputPath));
}
public CopyToDirectoryInstructionCreator subFolder(@NotNull String directoryName) {
return new CopyToDirectoryInstructionCreator(myInstructionsBuilder, myOutputPath + "/" + directoryName);
}
public ArtifactCompilerInstructionCreator archive(@NotNull String archiveFileName) {
String jarOutputPath = myOutputPath + "/" + archiveFileName;
final ExplodedDestinationInfo destination = new ExplodedDestinationInfo(jarOutputPath);
final JarInfo jarInfo = new JarInfo(destination);
if (!myInstructionsBuilder.registerJarFile(jarInfo, jarOutputPath)) {
return new SkipAllInstructionCreator(myInstructionsBuilder);
}
return new PackIntoArchiveInstructionCreator(myInstructionsBuilder, jarInfo, "", destination);
}
}
| [
"Nikolay.Chashnikov@jetbrains.com"
] | Nikolay.Chashnikov@jetbrains.com |
5b4b16c11eb0973c8a4c6460b963cd321bd42ec3 | f1b39c85dfa176c82a241fb0da39c482ce5e5725 | /src/jp/nichicom/ac/lib/care/claim/calculation/QP001PrintEvent.java | 67b0e642fcf83984f7ad0270e0e9321b51a17599 | [] | no_license | linuxmaniajp/qkan | 114bb9665a6b2e6b278d2fd7ed5619d74e5c2337 | 30c0513399e49828ca951412e21a22a058868729 | refs/heads/master | 2021-05-23T18:48:48.477599 | 2018-04-23T04:27:09 | 2018-04-23T04:27:09 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | Java | false | false | 1,866 | java |
/*
* Project code name "ORCA"
* 給付管理台帳ソフト QKANCHO(JMA care benefit management software)
* Copyright(C) 2002 JMA (Japan Medical Association)
*
* This program is part of "QKANCHO (JMA care benefit management software)".
*
* This program is distributed in the hope that it will be useful
* for further advancement in medical care, according to JMA Open
* Source License, but WITHOUT ANY WARRANTY.
* Everyone is granted permission to use, copy, modify and
* redistribute this program, but only under the conditions described
* in the JMA Open Source License. You should have received a copy of
* this license along with this program. If not, stop using this
* program and contact JMA, 2-28-16 Honkomagome, Bunkyo-ku, Tokyo,
* 113-8621, Japan.
*****************************************************************
* アプリ: QKANCHO
* 開発者: 藤原 伸
* 作成日: 2006/01/24 日本コンピューター株式会社 藤原 伸 新規作成
* 更新日: ----/--/--
* システム 給付管理台帳 (Q)
* サブシステム 請求書出力 (P)
* プロセス 給付管理票 (001)
* プログラム 給付管理票 (QP001P02)
*
*****************************************************************
*/
package jp.nichicom.ac.lib.care.claim.calculation;
import jp.nichicom.ac.pdf.ACChotarouXMLWriter;
import jp.nichicom.vr.util.VRMap;
/**
* 実績集計 印刷イベント定義
*/
public abstract class QP001PrintEvent {
/**
* コンストラクタです。
*/
public QP001PrintEvent(){
}
/**
* 印刷します。
* @param writer 印刷管理クラス
* @param printParam 印刷パラメタ
* @throws Exception 処理例外
*/
public abstract boolean doPrint(ACChotarouXMLWriter writer, VRMap printParam) throws Exception;
}
| [
"yoshida@cvs.orca.med.or.jp"
] | yoshida@cvs.orca.med.or.jp |
beb254bb88932828748a35c1d801406a764d593e | 3e096dc4bd4df011aadaf236831fb2f5ba2f31f9 | /src/com/hotent/platform/service/bpm/impl/BpmNodeUserCalculationSameNode.java | 4b31537cf9e8fed4102e3229a73ff429746972bc | [] | no_license | hollykunge/newnewcosim | 2a42d99e7337263df4d53e0fadf20cb6c6381362 | dc3f86711a003f2608c75761792ea49c3da805d1 | refs/heads/master | 2020-03-29T09:15:05.705190 | 2019-07-22T08:48:09 | 2019-07-22T08:48:09 | 149,748,589 | 1 | 5 | null | 2019-07-22T08:48:10 | 2018-09-21T10:29:04 | JavaScript | UTF-8 | Java | false | false | 1,803 | java | package com.hotent.platform.service.bpm.impl;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.Resource;
import com.hotent.core.model.TaskExecutor;
import com.hotent.core.util.ContextUtil;
import com.hotent.platform.auth.ISysUser;
import com.hotent.platform.model.bpm.BpmNodeUser;
import com.hotent.platform.model.bpm.TaskOpinion;
import com.hotent.platform.service.bpm.IBpmNodeUserCalculation;
import com.hotent.platform.service.bpm.TaskOpinionService;
import com.hotent.platform.service.system.SysUserService;
/**
* 根据节点用户设置为“与其他节点相同执行人”,计算执行人员。
*
* @author Raise
*/
public class BpmNodeUserCalculationSameNode implements IBpmNodeUserCalculation {
@Resource
private SysUserService sysUserService;
@Resource
private TaskOpinionService taskOpinionService;
@Override
public String getTitle() {
return "与其他节点相同执行人";
}
@Override
public Set<TaskExecutor> getExecutor(BpmNodeUser bpmNodeUser, CalcVars vars) {
Set<TaskExecutor> uIdSet = new HashSet<TaskExecutor>();
String actInstId = vars.actInstId;
List<ISysUser> sysUsers = new ArrayList<ISysUser>();
String nodeId = bpmNodeUser.getCmpIds();
TaskOpinion taskOpinion = taskOpinionService.getLatestTaskOpinion(
actInstId, nodeId);
if (taskOpinion != null) {
Long userId =taskOpinion.getExeUserId();
if(userId==null){
userId = ContextUtil.getCurrentUserId();
}
if(userId==null){
return uIdSet;
}
ISysUser user = sysUserService.getById(userId);
sysUsers.add(user);
}
for (ISysUser sysUser : sysUsers) {
uIdSet.add(TaskExecutor.getTaskUser(sysUser.getUserId().toString(),
sysUser.getFullname()));
}
return uIdSet;
}
}
| [
"hollykunge@163.com"
] | hollykunge@163.com |
540448356c2acecca8c4cbfc012d1f8f0414cd82 | d5f09c7b0e954cd20dd613af600afd91b039c48a | /sources/org/apache/commons/io/IOExceptionWithCause.java | b21ebaae2b3685ee723875d434d1a3ddb297ed97 | [] | no_license | t0HiiBwn/CoolapkRelease | af5e00c701bf82c4e90b1033f5c5f9dc8526f4b3 | a6a2b03e32cde0e5163016e0078391271a8d33ab | refs/heads/main | 2022-07-29T23:28:35.867734 | 2021-03-26T11:41:18 | 2021-03-26T11:41:18 | 345,290,891 | 5 | 2 | null | null | null | null | UTF-8 | Java | false | false | 348 | java | package org.apache.commons.io;
import java.io.IOException;
@Deprecated
public class IOExceptionWithCause extends IOException {
private static final long serialVersionUID = 1;
public IOExceptionWithCause(String str, Throwable th) {
super(str, th);
}
public IOExceptionWithCause(Throwable th) {
super(th);
}
}
| [
"test@gmail.com"
] | test@gmail.com |
5abfdae81f6722a2eba341877b46a79130b85b00 | 2905e6745a67004580aa70a3fa246aa47c0eee97 | /netscript/src/jprime/ICMPTraffic/IICMPTrafficAlias.java | 7d6f684bf17f459633270e6f24b05c5aa166d06d | [] | no_license | summonersRift/primogeni | 32cbf949f62e6442d0748258dfdff2dd63199a3b | 763cf746dcd7c9c4d3d20d328899cb96efe6da69 | refs/heads/master | 2020-12-25T00:08:58.727433 | 2015-01-30T18:13:36 | 2015-01-30T18:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,184 | java | package jprime.ICMPTraffic;
/*
* Copyright (c) 2011 Florida International University.
*
* Permission is hereby granted, free of charge, to any individual or
* institution obtaining a copy of this software and associated
* documentation files (the "software"), to use, copy, modify, and
* distribute without restriction.
*
* The software is provided "as is", without warranty of any kind,
* express or implied, including but not limited to the warranties of
* merchantability, fitness for a particular purpose and
* non-infringement. In no event shall Florida International
* University be liable for any claim, damages or other liability,
* whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other
* dealings in the software.
*
* This software is developed and maintained by
*
* Modeling and Networking Systems Research Group
* School of Computing and Information Sciences
* Florida International University
* Miami, Florida 33199, USA
*
* You can find our research at http://www.primessf.net/.
*/
public interface IICMPTrafficAlias extends jprime.gen.IICMPTrafficAlias {
}
| [
"obaida007@gmail.com"
] | obaida007@gmail.com |
2cb6c194b5d5b0c51b5d8feab4e9f629b3c4c8df | c7135ea6f892b91b1c4a2e8fd17f1a3aba65e0f6 | /herddb-core/src/main/java/herddb/cluster/LedgersInfo.java | 0bdd757ecbb7f918d39c6320dd6ed25bc9eeea0b | [
"Apache-2.0"
] | permissive | dhilip89/herddb | 5469acc549299ec5403fd6d612c2ded44f413c92 | 70ca3a82f230ecf5b8e0c49d23d6524bd0aafe04 | refs/heads/master | 2020-03-09T14:54:34.129496 | 2018-03-30T13:08:29 | 2018-03-30T13:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,534 | java | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. 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 herddb.cluster;
import herddb.utils.SimpleByteArrayInputStream;
import herddb.utils.VisibleByteArrayOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.codehaus.jackson.map.ObjectMapper;
/**
* Information on ledgers user by the broker
*
* @author enrico.olivelli
*/
public class LedgersInfo {
private List<Long> activeLedgers = new ArrayList<>();
private List<Long> ledgersTimestamps = new ArrayList<>();
private long firstLedger = -1;
private int zkVersion = -1;
@Override
public synchronized String toString() {
return "LedgersInfo{" + "activeLedgers=" + activeLedgers + ", firstLedger=" + firstLedger + ", zkVersion=" + zkVersion + '}';
}
public synchronized List<Long> getLedgersTimestamps() {
return ledgersTimestamps;
}
public synchronized void setLedgersTimestamps(List<Long> ledgersTimestamps) {
this.ledgersTimestamps = ledgersTimestamps;
}
public synchronized int getZkVersion() {
return zkVersion;
}
public synchronized void setZkVersion(int zkVersion) {
this.zkVersion = zkVersion;
}
public synchronized byte[] serialize() {
try {
ObjectMapper mapper = new ObjectMapper();
VisibleByteArrayOutputStream oo = new VisibleByteArrayOutputStream();
mapper.writeValue(oo, this);
return oo.toByteArray();
} catch (IOException impossible) {
throw new RuntimeException(impossible);
}
}
public static LedgersInfo deserialize(byte[] data, int zkVersion) {
if (data == null || data.length == 0) {
LedgersInfo info = new LedgersInfo();
info.setZkVersion(zkVersion);
return info;
}
try {
ObjectMapper mapper = new ObjectMapper();
LedgersInfo info = mapper.readValue(new SimpleByteArrayInputStream(data), LedgersInfo.class);
info.setZkVersion(zkVersion);
return info;
} catch (Exception impossible) {
throw new RuntimeException(impossible);
}
}
public synchronized void addLedger(long id) {
activeLedgers.add(id);
ledgersTimestamps.add(System.currentTimeMillis());
if (firstLedger < 0) {
firstLedger = id;
}
}
public synchronized void removeLedger(long id) throws IllegalArgumentException {
int index = -1;
for (int i = 0; i < activeLedgers.size(); i++) {
if (activeLedgers.get(i) == id) {
index = i;
break;
}
}
if (index < 0) {
throw new IllegalArgumentException("ledger " + id + " not in list " + activeLedgers);
}
activeLedgers.remove(index);
ledgersTimestamps.remove(index);
}
public synchronized List<Long> getOldLedgers(long timestamp) throws IllegalArgumentException {
List<Long> res = new ArrayList<>();
for (int i = 0; i < activeLedgers.size(); i++) {
long id = activeLedgers.get(i);
long ledgerTimestamp = ledgersTimestamps.get(i);
if (ledgerTimestamp < timestamp) {
res.add(id);
}
}
return res;
}
public synchronized List<Long> getActiveLedgers() {
return new ArrayList<>(activeLedgers);
}
public synchronized void setActiveLedgers(List<Long> activeLedgers) {
this.activeLedgers = activeLedgers;
}
public synchronized long getFirstLedger() {
return firstLedger;
}
public synchronized void setFirstLedger(long firstLedger) {
this.firstLedger = firstLedger;
}
}
| [
"eolivelli@gmail.com"
] | eolivelli@gmail.com |
a742bada6b6d8f0cd61fc4811ecc13e6276e5461 | 27c7dd4b228458c88801e33d651aa7adca2097b8 | /app/src/main/java/com/company/forturetelling/ui/activity/sixfunction/fortune/presenter/FortuneView.java | 2f58d53e667796e3508a2cadfe36fec24fcdacad | [] | no_license | ILoveLin/FortureTelling | ebc07aa7a4fb5b90d1bce4b5a44c97c2e81eecdc | e38143dae9ddac96c969ff7a0db743575c1c210e | refs/heads/master | 2021-12-23T12:51:26.423276 | 2021-12-13T03:04:36 | 2021-12-13T03:04:36 | 234,703,457 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 408 | java | package com.company.forturetelling.ui.activity.sixfunction.fortune.presenter;
/**
* Created by Lovelin on 2019/12/23
* <p>
* Describe:
*/
public interface FortuneView {
void showLoadingView();
void showContentView();
void showEmptyView();
void showErrorView();
void showToast(String string);
void updateFinish(String oid, String title, String wechat_price, String ali_price);
}
| [
"tongzhengtong@126.com"
] | tongzhengtong@126.com |
6c673a7e4070a01f9e326757121ec82bf37b05e5 | af7971dc37a64bdd407d05752ba7733f986f16ee | /src/main/java/com/hotplace25/domain/Notice.java | c425c0735ee1b2d51e87417f0323e7bd4b2a374d | [] | no_license | kihoon76/hotplace25 | f3f2a77c97cd790b0668f385756cb97465152cfa | 15ecc88bdf277ad97372d9e50cb7328e44b699b1 | refs/heads/master | 2018-10-05T07:37:29.952723 | 2018-08-31T08:31:30 | 2018-08-31T08:31:30 | 117,029,939 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 553 | java | package com.hotplace25.domain;
import org.apache.ibatis.type.Alias;
@Alias("Notice")
public class Notice {
private String num; //글번호
private String title; //제목
private String content; //내용
public String getNum() {
return num;
}
public void setNum(String num) {
this.num = num;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
| [
"you@example.com"
] | you@example.com |
bdba1a884e3df86945465ce1475c8d818f799434 | aa76cf92ee6799d9017be42df991f5ebb465a49f | /ahome-touch/src/main/java/com/ait/toolkit/sencha/touch/charts/client/Toolbar.java | bc175ac27b8664202cc2923ec339948e0c4e47b4 | [
"Apache-2.0"
] | permissive | dikalo/ahome-touch | b5386cf52cd0189954d6ddde3cfe4f78d5c56b37 | 97ba4dec2921769fc73828b3c221d0bc788fac91 | refs/heads/master | 2021-05-29T12:44:50.523085 | 2015-07-15T00:15:57 | 2015-07-15T00:15:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,473 | java | /*
Copyright (c) 2014 Ahomé Innovation Technologies. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.ait.toolkit.sencha.touch.charts.client;
import com.ait.toolkit.sencha.touch.client.ui.Container;
import com.google.gwt.core.client.JavaScriptObject;
/**
* The chart toolbar is a container that is docked to one side of the chart,
* that is intended to hold buttons for performing user actions without taking
* up valuable screen real estate from the chart. This is used internally for
* things like the button for showing the legend when the legend is docked, or
* the pan/zoom interaction's button for switching between pan and zoom mode in
* non-multi-touch environments.
*
* An instance of this class is created automatically by the chart when it is
* needed; authors should not need to instantiate it directly.
*/
public class Toolbar extends Container {
protected Toolbar(JavaScriptObject jsObj) {
super(jsObj);
}
}
| [
"jazzmatadazz@gmail.com"
] | jazzmatadazz@gmail.com |
3d184cf92a022f229dbf82565949f97a059fa6b2 | 0606cf494e12067367580095addd4ebf6281a53a | /app/src/main/java/com/ace/member/adapter/LVNewFriendsAdapter.java | 9517ff57ea9586ec0a3644621ca2b34d472b0824 | [] | no_license | kothsada/ace_member_android | d870d4a32e4e1cb669ee95f33fd0df0f4c60629c | f256216f8e5c49d2b00db0a39eecab6ed68a3257 | refs/heads/master | 2022-04-18T16:20:07.548800 | 2020-04-18T16:07:05 | 2020-04-18T16:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,638 | java | package com.ace.member.adapter;
import android.content.Context;
import android.support.v7.widget.AppCompatImageView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.ace.member.R;
import com.ace.member.bean.NewFriendsInfo;
import com.ace.member.utils.GlideUtil;
import com.ace.member.view.RoundRectImageView;
import com.og.utils.FileUtils;
import com.og.utils.Utils;
import java.util.ArrayList;
import java.util.List;
public class LVNewFriendsAdapter extends BaseAdapter {
private static final int VIEW_TYPE_0_TITLE = 0;
private static final int VIEW_TYPE_1_DEFAULT = 1;
private static final int COUNT_2_VIEW_TYPE = 2;
private static final int STATUS_1_REQUEST_PENDING = 1;
private static final int STATUS_2_REQUEST_ACCEPTED = 2;
private static final int STATUS_4_REQUEST_REJECTED = 4;
private static final int TYPE_NEW_FRIENDS_1_TITLE = 1;
private final Context mContext;
private List<NewFriendsInfo> mData;
private LayoutInflater mInflater;
private boolean isFirstWhite;
public interface OnImageClickListener {
void onImageClick(int position, AppCompatImageView image);
}
private OnImageClickListener mOnImageClickListener;
public void setImageClickListener(OnImageClickListener onImageClickListener) {
mOnImageClickListener = onImageClickListener;
}
private View.OnClickListener mImageListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
if (mOnImageClickListener != null) {
int position = (Integer) v.getTag();
AppCompatImageView image = (AppCompatImageView) v;
mOnImageClickListener.onImageClick(position, image);
}
}
};
public interface OnButtonClickListener {
void onButtonClick(int position, Button button);
}
private OnButtonClickListener mOnButtonClickListener;
public void setButtonClickListener(OnButtonClickListener buttonClickListener) {
mOnButtonClickListener = buttonClickListener;
}
private View.OnClickListener mButtonListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
if (mOnButtonClickListener != null) {
int position = (Integer) v.getTag();
Button button = (Button) v;
mOnButtonClickListener.onButtonClick(position, button);
}
}
};
public LVNewFriendsAdapter(List<NewFriendsInfo> data, Context context) {
this.mContext = context;
mData = data;
mInflater = LayoutInflater.from(context);
}
public LVNewFriendsAdapter(List<NewFriendsInfo> data, Context context, boolean isFirstWhite) {
this.mContext = context;
mData = data;
mInflater = LayoutInflater.from(context);
this.isFirstWhite = isFirstWhite;
}
@Override
public int getCount() {
return mData == null ? 0 : mData.size();
}
@Override
public NewFriendsInfo getItem(int position) {
return mData.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public int getViewTypeCount() {
return COUNT_2_VIEW_TYPE;
}
@Override
public int getItemViewType(int position) {
if (getItem(position).getType() == TYPE_NEW_FRIENDS_1_TITLE) {
return VIEW_TYPE_0_TITLE;
} else {
return VIEW_TYPE_1_DEFAULT;
}
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
NewFriendsInfo newFriendsInfo = mData.get(position);
if (getItemViewType(position) == VIEW_TYPE_0_TITLE) {
View titleView = null;
try {
titleView = mInflater.inflate(R.layout.view_new_friends_item_title, null);
RelativeLayout rlTitle = (RelativeLayout) titleView.findViewById(R.id.rl_new_friends_title);
TextView tvTitle = (TextView) titleView.findViewById(R.id.tv_new_friends_title);
tvTitle.setText(newFriendsInfo.getContent());
if (position == 0 && isFirstWhite)
rlTitle.setBackgroundColor(Utils.getColor(R.color.white));
} catch (Exception e) {
FileUtils.addErrorLog(e);
}
return titleView;
} else {
try {
ViewHolder viewHolder;
if (convertView == null) {
convertView = mInflater.inflate(R.layout.view_friend_request_item, null);
viewHolder = new ViewHolder();
viewHolder.mIvIcon = (RoundRectImageView) convertView.findViewById(R.id.iv_friend_request_head);
viewHolder.mTvName = (TextView) convertView.findViewById(R.id.tv_friend_request_name);
viewHolder.mTvContent = (TextView) convertView.findViewById(R.id.tv_friend_request_content);
viewHolder.mBtnStatus = (Button) convertView.findViewById(R.id.btn_friend_request_status);
convertView.setTag(viewHolder);
} else {
viewHolder = (ViewHolder) convertView.getTag();
}
int status = newFriendsInfo.getStatus();
viewHolder.mTvName.setText(newFriendsInfo.getName());
viewHolder.mTvContent.setText(newFriendsInfo.getPhone());
GlideUtil.loadThumbnailPortrait(mContext, newFriendsInfo.getPortrait(), viewHolder.mIvIcon);
switch (status) {
case STATUS_1_REQUEST_PENDING:
viewHolder.mBtnStatus.setEnabled(true);
viewHolder.mBtnStatus.setText(R.string.accept);
viewHolder.mBtnStatus.setTextColor(Utils.getColor(R.color.white));
break;
case STATUS_2_REQUEST_ACCEPTED:
viewHolder.mBtnStatus.setEnabled(false);
viewHolder.mBtnStatus.setText(R.string.added);
viewHolder.mBtnStatus.setTextColor(Utils.getColor(R.color.clr_chat_tv_hint));
break;
case STATUS_4_REQUEST_REJECTED:
viewHolder.mBtnStatus.setEnabled(false);
viewHolder.mBtnStatus.setText(R.string.rejected);
viewHolder.mBtnStatus.setTextColor(Utils.getColor(R.color.clr_chat_tv_hint));
break;
default:
viewHolder.mBtnStatus.setEnabled(true);
viewHolder.mBtnStatus.setText(R.string.add);
viewHolder.mBtnStatus.setTextColor(Utils.getColor(R.color.white));
}
// viewHolder.mIvIcon.setTag(position);
// viewHolder.mIvIcon.setOnClickListener(mImageListener);
viewHolder.mBtnStatus.setTag(position);
viewHolder.mBtnStatus.setTag(R.string.status, status);
viewHolder.mBtnStatus.setOnClickListener(mButtonListener);
} catch (Exception e) {
FileUtils.addErrorLog(e);
}
return convertView;
}
}
public List<NewFriendsInfo> getData() {
return mData;
}
public void addData(List<NewFriendsInfo> list) {
if (list != null) {
if (mData == null) {
mData = new ArrayList<NewFriendsInfo>();
}
mData.addAll(list);
this.notifyDataSetChanged();
}
}
class ViewHolder {
TextView mTvName, mTvContent;
RoundRectImageView mIvIcon;
Button mBtnStatus;
}
}
| [
"771613512@qq.com"
] | 771613512@qq.com |
781efd658a6fc8061c61fab33a9e896afaa52feb | 6ba87dec02b657bbecff6d7efa34cb7e1fd07f17 | /app/src/main/java/ir/orangehat/movieinfo/application/ui/home/HomeViewModel.java | 86071e2bc78aae02822dfbd139b8dd81009f6427 | [] | no_license | Kareem7assan/mvvm_sample | b863c0e00aecf6bb730eeac5851b121925ea7844 | 849a9d284c20f7948bcbdac51e898a8018c40cd1 | refs/heads/master | 2020-04-10T00:25:50.945856 | 2018-12-06T14:19:46 | 2018-12-06T14:19:46 | 160,685,158 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,481 | java | package ir.orangehat.movieinfo.application.ui.home;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.support.annotation.NonNull;
import java.util.List;
import ir.orangehat.movieinfo.bussines.model.Movie;
import ir.orangehat.movieinfo.bussines.networking.api.Resource;
import ir.orangehat.movieinfo.bussines.repository.MovieRepository;
/**
* HomeViewModel
*/
class HomeViewModel extends AndroidViewModel {
private final MutableLiveData<String> currencyBase =new MutableLiveData<>();
private final MutableLiveData<Resource> status;
private MovieRepository movieRepository;
/**this method to get listen on the updated value from view
then perform action
**/
//public final LiveData <T> mCurrencyData=Transformations.switchMap(currencyBase,(mBase)-> movieRepository.getMovies(mBase));
HomeViewModel(@NonNull Application application) {
super(application);
movieRepository = new MovieRepository(application.getApplicationContext());
movieRepository.getMovies();
status=movieRepository.getState();
}
LiveData<List<Movie>> getMovies() {
return movieRepository.getMovies();
}
public MutableLiveData<Resource> getState() {
return status;
}
public void setCurrencyBase(String mBase){
currencyBase.setValue(mBase);
}
}
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
e273c42305d55476d0c6a4709067701ea9cae8b8 | 028cbe18b4e5c347f664c592cbc7f56729b74060 | /external/modules/xerces/2.6.2/src/org/apache/xerces/xs/XSAttributeUse.java | b47e0115ecfef3b76b20d3b0150ac72479c1ad61 | [
"SAX-PD",
"Apache-1.1",
"W3C-19980720",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | dmatej/Glassfish-SVN-Patched | 8d355ff753b23a9a1bd9d7475fa4b2cfd3b40f9e | 269e29ba90db6d9c38271f7acd2affcacf2416f1 | refs/heads/master | 2021-05-28T12:55:06.267463 | 2014-11-11T04:21:44 | 2014-11-11T04:21:44 | 23,610,469 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,633 | java | /*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2003 The Apache Software Foundation. All rights
* reserved.
*
* 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. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Xerces" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR
* ITS 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation and was
* originally based on software copyright (c) 2003, International
* Business Machines, Inc., http://www.apache.org. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
package org.apache.xerces.xs;
/**
* This interface represents the Attribute Use schema component.
*/
public interface XSAttributeUse extends XSObject {
/**
* [required]: determines whether this use of an attribute declaration
* requires an appropriate attribute information item to be present, or
* merely allows it.
*/
public boolean getRequired();
/**
* [attribute declaration]: provides the attribute declaration itself,
* which will in turn determine the simple type definition used.
*/
public XSAttributeDeclaration getAttrDeclaration();
/**
* Value Constraint: one of default, fixed.
*/
public short getConstraintType();
/**
* Value Constraint: The constraint value, otherwise <code>null</code>.
*/
public String getConstraintValue();
/**
* Value Constraint: Binding specific actual constraint value or
* <code>null</code> if the value is in error or there is no value
* constraint.
* @exception XSException
* NOT_SUPPORTED_ERR: Raised if the implementation does not support this
* method.
*/
public Object getActualVC()
throws XSException;
/**
* The actual constraint value built-in datatype, e.g.
* <code>STRING_DT, SHORT_DT</code>. If the type definition of this
* value is a list type definition, this method returns
* <code>LIST_DT</code>. If the type definition of this value is a list
* type definition whose item type is a union type definition, this
* method returns <code>LISTOFUNION_DT</code>. To query the actual
* constraint value of the list or list of union type definitions use
* <code>itemValueTypes</code>. If the <code>actualNormalizedValue</code>
* is <code>null</code>, this method returns <code>UNAVAILABLE_DT</code>
* .
* @exception XSException
* NOT_SUPPORTED_ERR: Raised if the implementation does not support this
* method.
*/
public short getActualVCType()
throws XSException;
/**
* In the case the actual constraint value represents a list, i.e. the
* <code>actualValueType</code> is <code>LIST_DT</code>, the returned
* array consists of one type kind which represents the itemType. If the
* actual constraint value represents a list type definition whose item
* type is a union type definition, i.e. <code>LISTOFUNION_DT</code>,
* for each actual constraint value in the list the array contains the
* corresponding memberType kind. For examples, see
* <code>ItemPSVI.itemValueTypes</code>.
* @exception XSException
* NOT_SUPPORTED_ERR: Raised if the implementation does not support this
* method.
*/
public ShortList getItemValueTypes()
throws XSException;
}
| [
"snajper@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5"
] | snajper@6f3ba3e3-413c-0410-a8aa-90bee3ab43b5 |
ce6d6eb6121419827f4055813d083acc2979b267 | 960218c71b56e83debdedd03b666601efdfc8bb5 | /amadeus-stub/src/main/java/com/amadeus/xml/tibnrr_15_1_1a/AdditionalFareQualifierDetailsTypeI.java | 8668e84bc6836a302ce9bd60a58e4260bf090dd6 | [] | no_license | gaurav-rupnar/xtravel | 4d823a64c0ac2e870c78fd19ab229c89870bc2a0 | 827942629739d187c4d579bc45cc2c150624b205 | refs/heads/master | 2021-09-03T19:19:24.912249 | 2018-01-11T09:58:56 | 2018-01-11T09:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,072 | java |
package com.amadeus.xml.tibnrr_15_1_1a;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* To specify the fare basis and ticket designator codes.
*
* <p>Java class for AdditionalFareQualifierDetailsTypeI complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AdditionalFareQualifierDetailsTypeI">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="rateClass" type="{http://xml.amadeus.com/TIBNRR_15_1_1A}AlphaNumericString_Length1To35" minOccurs="0"/>
* <element name="commodityCategory" type="{http://xml.amadeus.com/TIBNRR_15_1_1A}AlphaNumericString_Length1To18" minOccurs="0"/>
* <element name="pricingGroup" type="{http://xml.amadeus.com/TIBNRR_15_1_1A}AlphaNumericString_Length1To35" minOccurs="0"/>
* <element name="secondRateClass" type="{http://xml.amadeus.com/TIBNRR_15_1_1A}AlphaNumericString_Length1To35" maxOccurs="29" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AdditionalFareQualifierDetailsTypeI", propOrder = {
"rateClass",
"commodityCategory",
"pricingGroup",
"secondRateClass"
})
public class AdditionalFareQualifierDetailsTypeI {
protected String rateClass;
protected String commodityCategory;
protected String pricingGroup;
protected List<String> secondRateClass;
/**
* Gets the value of the rateClass property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRateClass() {
return rateClass;
}
/**
* Sets the value of the rateClass property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRateClass(String value) {
this.rateClass = value;
}
/**
* Gets the value of the commodityCategory property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCommodityCategory() {
return commodityCategory;
}
/**
* Sets the value of the commodityCategory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCommodityCategory(String value) {
this.commodityCategory = value;
}
/**
* Gets the value of the pricingGroup property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPricingGroup() {
return pricingGroup;
}
/**
* Sets the value of the pricingGroup property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPricingGroup(String value) {
this.pricingGroup = value;
}
/**
* Gets the value of the secondRateClass property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the secondRateClass property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSecondRateClass().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getSecondRateClass() {
if (secondRateClass == null) {
secondRateClass = new ArrayList<String>();
}
return this.secondRateClass;
}
}
| [
"gauravrupnar@gmail.com"
] | gauravrupnar@gmail.com |
8456cf76e650b3fd82ee0cf2f26237bbebffd827 | 4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849 | /aliyun-java-sdk-swas-open/src/main/java/com/aliyuncs/swas_open/model/v20200601/StartInstanceResponse.java | 59801bb2e6fc5e85d48653ff31fdc7a176d757a1 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-java-sdk | a263fa08e261f12d45586d1b3ad8a6609bba0e91 | e19239808ad2298d32dda77db29a6d809e4f7add | refs/heads/master | 2023-09-03T12:28:09.765286 | 2023-09-01T09:03:00 | 2023-09-01T09:03:00 | 39,555,898 | 1,542 | 1,317 | NOASSERTION | 2023-09-14T07:27:05 | 2015-07-23T08:41:13 | Java | UTF-8 | Java | false | false | 1,302 | java | /*
* 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.aliyuncs.swas_open.model.v20200601;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.swas_open.transform.v20200601.StartInstanceResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
/**
* @author auto create
* @version
*/
public class StartInstanceResponse extends AcsResponse {
private String requestId;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
}
@Override
public StartInstanceResponse getInstance(UnmarshallerContext context) {
return StartInstanceResponseUnmarshaller.unmarshall(this, context);
}
@Override
public boolean checkShowJsonItemName() {
return false;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
529896e83397d6bc7b787d53487cb39080e96f08 | a2fe7d32ece2a1a7e00d29d83ce185fd745f3ea5 | /HelloSpring01/src/main/java/com/swjtu/spring/beans/factory/StaticCarFactory.java | e0d9e8b47295804e291aec8ce352b3a73b84c53c | [] | no_license | pacosonTang/spring_in_action_eclipse | ac7e7de98d5372d294c0046f688d42d25c4a545f | e01efb07e08c52980b93b3e4f115d161bb685f1f | refs/heads/master | 2021-12-01T20:15:17.513279 | 2021-11-19T00:28:22 | 2021-11-19T00:28:22 | 140,902,005 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 519 | java | package com.swjtu.spring.beans.factory;
import java.util.Map;
import java.util.HashMap;
/**
* 静态工厂方法: 直接调用某一个类的静态方法就可以返回bean的实例
*/
public class StaticCarFactory {
private static Map<String, Car> cars = new HashMap<>();
static {
cars.put("audi", new Car("audi", 300000));
cars.put("ford", new Car("ford", 400000));
}
/**
* 静态工厂方法
* @param name
* @return
*/
public static Car getCar(String name) {
return cars.get(name);
}
}
| [
"pacoson@163.com"
] | pacoson@163.com |
5c9eb708e646185e13deca38f598e50b0a5fa908 | aaa7d14f5f2b4fca7cb5ad40b3e0dff8aa998fd2 | /FXMLTableView/src/fxmltableview/FXMLTableView.java | fe1e8423fd88fa90c82b3be487fbbb08280e870e | [
"BSD-3-Clause"
] | permissive | danecek/bie-pjv-lectures | 142cb9dea752d775f825a168aee5b189ae84edb4 | fe437b7ce0b453dbaca4ba44cfabc58e4f32417b | refs/heads/master | 2020-05-27T02:21:58.411280 | 2019-10-22T10:39:57 | 2019-10-22T10:39:57 | 31,675,352 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 678 | java | package fxmltableview;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
public class FXMLTableView extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("FXML TableView Example");
Pane myPane = (Pane)FXMLLoader.load(getClass().getResource("fxml_tableview.fxml"));
Scene myScene = new Scene(myPane);
primaryStage.setScene(myScene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
| [
"danecek@fit.cvut.cz"
] | danecek@fit.cvut.cz |
cf0257004c86b81e55631e8fa8b3e02352d0c762 | 51c5675c3c9b5bfd3276e05f939f1a77e0b79d56 | /src/main/java/com/epam/infrastartermavenir/CustomPointcut.java | 30624788fe5719198ae3c21913abf77a65d58666 | [] | no_license | mmalyutin/infra-starter-mavenir | 8b6b302d4acc336939aa8bebee30d575ff07a902 | c9a312a80233b934e9d02ae5dcc9bb53472a27ad | refs/heads/master | 2023-02-10T14:17:09.877100 | 2021-01-11T11:47:12 | 2021-01-11T11:47:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 700 | java | package com.epam.infrastartermavenir;
import org.springframework.aop.ClassFilter;
import org.springframework.aop.support.DynamicMethodMatcherPointcut;
import org.springframework.beans.factory.annotation.Autowired;
import java.lang.reflect.Method;
/**
* @author Evgeny Borisov
*/
public class CustomPointcut extends DynamicMethodMatcherPointcut {
@Autowired
private StarterProps props;
@Override
public boolean matches(Method method, Class<?> aClass, Object... objects) {
return true;
}
@Override
public ClassFilter getClassFilter() {
return aClass -> aClass.getPackage().getName().contains(props.getPackageToScanForException());
}
}
| [
"kit2009"
] | kit2009 |
7a82dd62d9f0bc4ad1be49dd2331f4b75a4a2050 | 7419747495950f420cc85c4944cf4778e84c3dbb | /01/javassist1/src/test.java | 184494fef1c9b8726eaa2afcac41b8a6122bafe4 | [] | no_license | hexiaoq/ideaworkspace2 | bc5cb70959c0873900706e94b27643307e76203f | 3ad3605b6da8eebcfac96894357d7753929d532a | refs/heads/master | 2023-04-08T08:52:49.261392 | 2021-04-22T15:15:07 | 2021-04-22T15:15:07 | 360,560,815 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 488 | java | public class test {
private int op;
private String ob;
public test() {
}
public test(int op, String ob) {
this.op = op;
this.ob = ob;
}
public void sayhello(int i){
System.out.println(i+"hello");
}
public int getOp() {
return op;
}
public void setOp(int op) {
this.op = op;
}
public String getOb() {
return ob;
}
public void setOb(String ob) {
this.ob = ob;
}
}
| [
"156437734@qq.com"
] | 156437734@qq.com |
2ecba808aeee1cb91e44a0959b38174491675421 | 47df1174f012b744d3f077973b0aaf96bafa5a76 | /app/src/main/java/greencode/ir/pillcci/retrofit/reqobject/SendedPhone.java | c6aea1fbb594d5e0f3b43a1cd55d308b8fa575c3 | [] | no_license | alirezat66/pillcci | bb164cb21742cce86cf29eb791df239454428141 | 1cce001f119d4793fd9eabc08b3bd80450927f41 | refs/heads/master | 2022-01-08T21:24:48.676200 | 2019-06-13T11:12:14 | 2019-06-13T11:12:14 | 191,747,701 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 608 | java | package greencode.ir.pillcci.retrofit.reqobject;
import greencode.ir.pillcci.database.PhoneBook;
import greencode.ir.pillcci.utils.ToJsonClass;
public class SendedPhone extends ToJsonClass {
public SendedPhone(PhoneBook phoneBook) {
this.id = phoneBook.getid();
this.fName = phoneBook.getfName();
this.lName = phoneBook.getlName();
this.img = phoneBook.getImg();
this.relation = phoneBook.getRelation();
this.phone = phoneBook.getPhone();
}
long id;
String fName;
String lName;
String img;
String phone;
String relation;
}
| [
"alirezataghizadeh66@gmail.com"
] | alirezataghizadeh66@gmail.com |
9369d9f78f60e252877f1fb3fda61054bd76346a | 421f0a75a6b62c5af62f89595be61f406328113b | /generated_tests/no_seeding/84_ifx-framework-org.sourceforge.ifx.framework.pain004.simpletype.CashAccountTypeCode-1.0-5/org/sourceforge/ifx/framework/pain004/simpletype/CashAccountTypeCode_ESTest.java | 129791787d1e339b90945eed97ba6b4b72d19548 | [] | no_license | tigerqiu712/evosuite-model-seeding-empirical-evaluation | c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6 | 11a920b8213d9855082d3946233731c843baf7bc | refs/heads/master | 2020-12-23T21:04:12.152289 | 2019-10-30T08:02:29 | 2019-10-30T08:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 692 | java | /*
* This file was automatically generated by EvoSuite
* Mon Oct 28 18:41:20 GMT 2019
*/
package org.sourceforge.ifx.framework.pain004.simpletype;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class CashAccountTypeCode_ESTest extends CashAccountTypeCode_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
| [
"pderakhshanfar@bsr01.win.tue.nl"
] | pderakhshanfar@bsr01.win.tue.nl |
b666c88b52cb3f55825ed8431d056ebeb8db9099 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2692487_1/java/jteosw/A.java | 2e46f5d372bfb574806921cb7ac9fdf319821417 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Java | false | false | 1,474 | java | import java.util.*;
public class A{
static Scanner s;
public static void main(String[] args){
s = new Scanner(System.in);
int cases = s.nextInt();
for(int i = 0; i < cases; i++) {
int result = solve();
System.out.printf("Case #%d: %d\n", i+1, result);
}
}
public static int solve() {
int self = s.nextInt();
int num = s.nextInt();
List<Integer> arr = new ArrayList<Integer>();
List<Integer> track = new ArrayList<Integer>();
for(int i = 0; i < num; i++) {
arr.add(s.nextInt());
}
int result = 0;
int temp = 0;
boolean remove = false;
if(self <= 1) {
return arr.size();
}
while(arr.size() > 0) {
remove = false;
outerloop:
if(!remove) {
for (Integer curr : arr) {
if (curr < self) {
temp = curr;
self += curr;
remove = true;
break outerloop;
}
}
}
if(remove) {
arr.remove((int) arr.indexOf((Integer)temp));
} else {
self = (self * 2) - 1;
track.add(result + arr.size());
result++;
}
}
track.add(result);
return Collections.min(track);
}
}
| [
"eewestman@gmail.com"
] | eewestman@gmail.com |
d32b5f9206293a13bf7fe6cb70b5114dd463cf78 | 6baa09045c69b0231c35c22b06cdf69a8ce227d6 | /modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201601/cm/StringFormatError.java | a01149c81107df08aee6d2720a3a19b948bd4c06 | [
"Apache-2.0"
] | permissive | remotejob/googleads-java-lib | f603b47117522104f7df2a72d2c96ae8c1ea011d | a330df0799de8d8de0dcdddf4c317d6b0cd2fe10 | refs/heads/master | 2020-12-11T01:36:29.506854 | 2016-07-28T22:13:24 | 2016-07-28T22:13:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,278 | java | /**
* StringFormatError.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201601.cm;
/**
* A list of error code for reporting invalid content of input strings.
*/
public class StringFormatError extends com.google.api.ads.adwords.axis.v201601.cm.ApiError implements java.io.Serializable {
private com.google.api.ads.adwords.axis.v201601.cm.StringFormatErrorReason reason;
public StringFormatError() {
}
public StringFormatError(
java.lang.String fieldPath,
java.lang.String trigger,
java.lang.String errorString,
java.lang.String apiErrorType,
com.google.api.ads.adwords.axis.v201601.cm.StringFormatErrorReason reason) {
super(
fieldPath,
trigger,
errorString,
apiErrorType);
this.reason = reason;
}
/**
* Gets the reason value for this StringFormatError.
*
* @return reason
*/
public com.google.api.ads.adwords.axis.v201601.cm.StringFormatErrorReason getReason() {
return reason;
}
/**
* Sets the reason value for this StringFormatError.
*
* @param reason
*/
public void setReason(com.google.api.ads.adwords.axis.v201601.cm.StringFormatErrorReason reason) {
this.reason = reason;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof StringFormatError)) return false;
StringFormatError other = (StringFormatError) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj) &&
((this.reason==null && other.getReason()==null) ||
(this.reason!=null &&
this.reason.equals(other.getReason())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getReason() != null) {
_hashCode += getReason().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(StringFormatError.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "StringFormatError"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("reason");
elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "reason"));
elemField.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201601", "StringFormatError.Reason"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
| [
"jradcliff@google.com"
] | jradcliff@google.com |
10b3f51cc11a265de76c10ee0d23fda5e9412035 | 29f78bfb928fb6f191b08624ac81b54878b80ded | /generated_SPs_SCs/IAD/SCs/SC_radar1/src/main/java/SP_command/soap/ServiceName7.java | dcadc8e8f55f78619ea62032f139acaf297230d2 | [] | no_license | MSPL4SOA/MSPL4SOA-tool | 8a78e73b4ac7123cf1815796a70f26784866f272 | 9f3419e416c600cba13968390ee89110446d80fb | refs/heads/master | 2020-04-17T17:30:27.410359 | 2018-07-27T14:18:55 | 2018-07-27T14:18:55 | 66,304,158 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,683 | java | package SP_command.soap;
import SP_command.output.*;
import SP_command.input.*;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 3.1.4
* 2017-03-24T20:28:24.156+01:00
* Generated source version: 3.1.4
*
*/
@WebServiceClient(name = "ServiceName_7", wsdlLocation = "http://localhost:8080/SP_command/ServiceName_7/ServiceName_7?wsdl", targetNamespace = "urn:SP_command:SP_command:1.0")
public class ServiceName7 extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName(
"urn:SP_command:SP_command:1.0", "ServiceName_7");
public final static QName ServiceName7Port = new QName(
"urn:SP_command:SP_command:1.0", "ServiceName_7Port");
static {
URL url = null;
try {
url = new URL(
"http://localhost:8080/SP_command/ServiceName_7/ServiceName_7?wsdl");
} catch (MalformedURLException e) {
java.util.logging.Logger
.getLogger(ServiceName7.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}",
"http://localhost:8080/SP_command/ServiceName_7/ServiceName_7?wsdl");
}
WSDL_LOCATION = url;
}
public ServiceName7(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public ServiceName7(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public ServiceName7() {
super(WSDL_LOCATION, SERVICE);
}
public ServiceName7(WebServiceFeature... features) {
super(WSDL_LOCATION, SERVICE, features);
}
public ServiceName7(URL wsdlLocation, WebServiceFeature... features) {
super(wsdlLocation, SERVICE, features);
}
public ServiceName7(URL wsdlLocation, QName serviceName,
WebServiceFeature... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns ServiceName7PortType
*/
@WebEndpoint(name = "ServiceName_7Port")
public ServiceName7PortType getServiceName7Port() {
return super.getPort(ServiceName7Port, ServiceName7PortType.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns ServiceName7PortType
*/
@WebEndpoint(name = "ServiceName_7Port")
public ServiceName7PortType getServiceName7Port(
WebServiceFeature... features) {
return super.getPort(ServiceName7Port, ServiceName7PortType.class,
features);
}
}
| [
"akram.kamoun@gmail.com"
] | akram.kamoun@gmail.com |
7e5f5457fa0581f58a8a87dc35e18f7d394d5890 | 4cdbbdbfafbe4cc4e851d483a19c632e028d0c7c | /src/main/java/com/summit/sdk/huawei/PU_VIDEODIAGNOSIS_PARA.java | 0801940db1938d5656aaed7c1d1fe0957c0519a5 | [] | no_license | jeerper/nb_smart_lock_backend | cb3ca41d51e6a66d1a18451f9715c234c70077ec | 1ada6d1eaa5ec92d7d770cfff2313f0d5cd6cecc | refs/heads/master | 2023-01-31T19:28:59.354522 | 2020-12-16T08:40:40 | 2020-12-16T08:40:40 | 321,919,599 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,007 | java | package com.summit.sdk.huawei;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* <i>native declaration : E:\video\HWPuSDK.h</i><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>.
*/
public class PU_VIDEODIAGNOSIS_PARA extends Structure {
/** \u0368\ufffd\ufffd\ufffd\ufffd */
public NativeLong ulChnID;
/**
* \ufffd\u6faf\ufffd\ufffd\ufffd\ufffd<br>
* C type : PU_ALARM_VIDEODIAGNOSIS_TYPE_E
*/
public int enAlarmType;
/** \u02b9\ufffd\ufffd */
public boolean bEnable;
/** \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd */
public NativeLong ulSensitivity;
/** \ufffd\u6faf\ufffd\u03f1\ufffd\ufffd\ufffd\ufffd */
public NativeLong ulAlarmInterval;
/**
* \ufffd\ufffd\ufffd\ufffd\u02b1\ufffd\ufffd\ufffd\u0431\ufffd<br>
* C type : PU_ALARM_TIME_LIST_S
*/
public PU_ALARM_TIME_PARA_LIST stAlarmTimeList;
/** C type : CHAR[32] */
public byte[] szReserved = new byte[32];
public PU_VIDEODIAGNOSIS_PARA() {
super();
}
protected List<String > getFieldOrder() {
return Arrays.asList("ulChnID", "enAlarmType", "bEnable", "ulSensitivity", "ulAlarmInterval", "stAlarmTimeList", "szReserved");
}
/**
* @param ulChnID \u0368\ufffd\ufffd\ufffd\ufffd<br>
* @param enAlarmType \ufffd\u6faf\ufffd\ufffd\ufffd\ufffd<br>
* C type : PU_ALARM_VIDEODIAGNOSIS_TYPE_E<br>
* @param bEnable \u02b9\ufffd\ufffd<br>
* @param ulSensitivity \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd<br>
* @param ulAlarmInterval \ufffd\u6faf\ufffd\u03f1\ufffd\ufffd\ufffd\ufffd<br>
* @param stAlarmTimeList \ufffd\ufffd\ufffd\ufffd\u02b1\ufffd\ufffd\ufffd\u0431\ufffd<br>
* C type : PU_ALARM_TIME_LIST_S<br>
* @param szReserved C type : CHAR[32]
*/
public PU_VIDEODIAGNOSIS_PARA(NativeLong ulChnID, int enAlarmType, boolean bEnable, NativeLong ulSensitivity, NativeLong ulAlarmInterval, PU_ALARM_TIME_PARA_LIST stAlarmTimeList, byte szReserved[]) {
super();
this.ulChnID = ulChnID;
this.enAlarmType = enAlarmType;
this.bEnable = bEnable;
this.ulSensitivity = ulSensitivity;
this.ulAlarmInterval = ulAlarmInterval;
this.stAlarmTimeList = stAlarmTimeList;
if ((szReserved.length != this.szReserved.length))
throw new IllegalArgumentException("Wrong array size !");
this.szReserved = szReserved;
}
public PU_VIDEODIAGNOSIS_PARA(Pointer peer) {
super(peer);
}
public static class ByReference extends PU_VIDEODIAGNOSIS_PARA implements Structure.ByReference {
};
public static class ByValue extends PU_VIDEODIAGNOSIS_PARA implements Structure.ByValue {
};
}
| [
"ly405653510@gmail.com"
] | ly405653510@gmail.com |
5e4d7ae59577b6a3ccb480159cb3f9e8fed5ce31 | 42ed12696748a102487c2f951832b77740a6b70d | /Mage.Sets/src/mage/sets/shardsofalara/KeeperOfProgenitus.java | b22e676f5c8a9683f554538b43aa6973feacd731 | [] | no_license | p3trichor/mage | fcb354a8fc791be4713e96e4722617af86bd3865 | 5373076a7e9c2bdabdabc19ffd69a8a567f2188a | refs/heads/master | 2021-01-16T20:21:52.382334 | 2013-05-09T21:13:25 | 2013-05-09T21:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,858 | java | /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* 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.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``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 BetaSteward_at_googlemail.com 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.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.shardsofalara;
import java.util.UUID;
import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.Constants.Zone;
import mage.MageInt;
import mage.Mana;
import mage.abilities.Abilities;
import mage.abilities.Ability;
import mage.abilities.effects.common.ManaEffect;
import mage.abilities.mana.ManaAbility;
import mage.abilities.mana.TriggeredManaAbility;
import mage.cards.CardImpl;
import mage.choices.Choice;
import mage.choices.ChoiceImpl;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.targetpointer.FixedTarget;
/**
*
* @author Plopman
*/
public class KeeperOfProgenitus extends CardImpl<KeeperOfProgenitus> {
public KeeperOfProgenitus(UUID ownerId) {
super(ownerId, 135, "Keeper of Progenitus", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{3}{G}");
this.expansionSetCode = "ALA";
this.subtype.add("Elf");
this.subtype.add("Druid");
this.color.setGreen(true);
this.power = new MageInt(1);
this.toughness = new MageInt(3);
// Whenever a player taps a Mountain, Forest, or Plains for mana, that player adds one mana to his or her mana pool of any type that land produced.
this.addAbility(new HeartbeatOfSpringAbility());
}
public KeeperOfProgenitus(final KeeperOfProgenitus card) {
super(card);
}
@Override
public KeeperOfProgenitus copy() {
return new KeeperOfProgenitus(this);
}
}
class HeartbeatOfSpringAbility extends TriggeredManaAbility<HeartbeatOfSpringAbility> {
private static final String staticText = "Whenever a player taps a Mountain, Forest, or Plains for mana, that player adds one mana to his or her mana pool of any type that land produced.";
public HeartbeatOfSpringAbility() {
super(Zone.BATTLEFIELD, new HeartbeatOfSpringEffect());
}
public HeartbeatOfSpringAbility(HeartbeatOfSpringAbility ability) {
super(ability);
}
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.TAPPED_FOR_MANA ) {
Permanent permanent = game.getPermanent(event.getSourceId());
if (permanent == null) {
permanent = (Permanent) game.getLastKnownInformation(event.getSourceId(), Zone.BATTLEFIELD);
}
if (permanent != null && permanent.getCardType().contains(CardType.LAND)){
if(permanent.getSubtype().contains("Mountain") || permanent.getSubtype().contains("Forest") || permanent.getSubtype().contains("Plains")){
getEffects().get(0).setTargetPointer(new FixedTarget(permanent.getId()));
return true;
}
}
}
return false;
}
@Override
public HeartbeatOfSpringAbility copy() {
return new HeartbeatOfSpringAbility(this);
}
@Override
public String getRule() {
return staticText;
}
}
class HeartbeatOfSpringEffect extends ManaEffect<HeartbeatOfSpringEffect> {
public HeartbeatOfSpringEffect() {
super();
staticText = "that player adds one mana to his or her mana pool of any type that land produced";
}
public HeartbeatOfSpringEffect(final HeartbeatOfSpringEffect effect) {
super(effect);
}
@Override
public boolean apply(Game game, Ability source) {
Permanent land = game.getPermanent(this.targetPointer.getFirst(game, source));
Player player = game.getPlayer(land.getControllerId());
Abilities<ManaAbility> mana = land.getAbilities().getManaAbilities(Zone.BATTLEFIELD);
Mana types = new Mana();
for (ManaAbility ability: mana) {
types.add(ability.getNetMana(game));
}
Choice choice = new ChoiceImpl(true);
choice.setMessage("Pick a mana color");
if (types.getBlack() > 0) {
choice.getChoices().add("Black");
}
if (types.getRed() > 0) {
choice.getChoices().add("Red");
}
if (types.getBlue() > 0) {
choice.getChoices().add("Blue");
}
if (types.getGreen() > 0) {
choice.getChoices().add("Green");
}
if (types.getWhite() > 0) {
choice.getChoices().add("White");
}
if (types.getColorless() > 0) {
choice.getChoices().add("Colorless");
}
if (choice.getChoices().size() > 0) {
if (choice.getChoices().size() == 1) {
choice.setChoice(choice.getChoices().iterator().next());
}
else {
player.choose(outcome, choice, game);
}
if (choice.getChoice().equals("Black")) {
player.getManaPool().addMana(Mana.BlackMana, game, source);
return true;
}
else if (choice.getChoice().equals("Blue")) {
player.getManaPool().addMana(Mana.BlueMana, game, source);
return true;
}
else if (choice.getChoice().equals("Red")) {
player.getManaPool().addMana(Mana.RedMana, game, source);
return true;
}
else if (choice.getChoice().equals("Green")) {
player.getManaPool().addMana(Mana.GreenMana, game, source);
return true;
}
else if (choice.getChoice().equals("White")) {
player.getManaPool().addMana(Mana.WhiteMana, game, source);
return true;
}
else if (choice.getChoice().equals("Colorless")) {
player.getManaPool().addMana(Mana.ColorlessMana, game, source);
return true;
}
}
return true;
}
@Override
public HeartbeatOfSpringEffect copy() {
return new HeartbeatOfSpringEffect(this);
}
} | [
"Plopman@hotmail.ch"
] | Plopman@hotmail.ch |
e98efd518c9bb7a35960df363096e4f0db07d68f | 447520f40e82a060368a0802a391697bc00be96f | /apks/playstore_apps/de_number26_android/source/de/number26/machete/android/refactor/data/premium_content/ae.java | 2a080095e287d6769f8f58b6a127ab87b0cabe43 | [
"Apache-2.0"
] | permissive | iantal/AndroidPermissions | 7f3343a9c29d82dbcd4ecd98b3a50ddf8d179465 | d623b732734243590b5f004d167e542e2e2ae249 | refs/heads/master | 2023-07-19T01:29:26.689186 | 2019-09-30T19:01:42 | 2019-09-30T19:01:42 | 107,239,248 | 0 | 0 | Apache-2.0 | 2023-07-16T07:41:38 | 2017-10-17T08:22:57 | null | UTF-8 | Java | false | false | 580 | java | package de.number26.machete.android.refactor.data.premium_content;
import java.util.List;
public class ae
{
private final n a;
private final com.n26.a.b.b<String, y> b;
ae(n paramN, com.n26.a.b.b<String, y> paramB)
{
this.a = paramN;
this.b = paramB;
}
public rx.e<h.a.b<List<y>>> a()
{
return this.b.a();
}
public rx.e<h.a.b<y>> a(String paramString)
{
return this.b.b(paramString);
}
public rx.e<h.a.e> a(String paramString1, String paramString2)
{
return this.a.a(h.a.b.a(new n.a(paramString1, paramString2)));
}
}
| [
"antal.micky@yahoo.com"
] | antal.micky@yahoo.com |
c30d855bd2c0971d19db1facbf7f4f9a88c8ba90 | 885e9d4ea69ffcd7bd30cdb8e0c13d112589e06e | /lib/src/main/java/com/payneteasy/http/request/HttpRequestMessageBody.java | a90a428454f064a85aefb01d9f4b1c2f8efa3551 | [] | no_license | evsinev/reader-example-http-pay | 90fabdf683ed2e85d4286612ea92c5b2596255ae | 6efc0141046a87c6efbfd2ed456a3d0a2ae3a7ba | refs/heads/master | 2020-07-23T11:41:15.035305 | 2019-09-10T11:59:07 | 2019-09-10T11:59:07 | 207,546,623 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 486 | java | package com.payneteasy.http.request;
import java.nio.charset.Charset;
public class HttpRequestMessageBody {
private final byte[] body;
public HttpRequestMessageBody(byte[] body) {
this.body = body;
}
@Override
public String toString() {
return "HttpRequestMessageBody{" +
"body.length=" + body.length +
'}';
}
public String asString(Charset aCharset) {
return new String(body, aCharset);
}
}
| [
"es@payneteasy.com"
] | es@payneteasy.com |
3e538945c7fcf5d01a3a31ec1be004abce0ea576 | 0af8b92686a58eb0b64e319b22411432aca7a8f3 | /single-large-project/src/test/java/org/gradle/test/performancenull_167/Testnull_16648.java | a8572d06a47f64fe08be5cede2c554702eeb4aaf | [] | no_license | gradle/performance-comparisons | b0d38db37c326e0ce271abebdb3c91769b860799 | e53dc7182fafcf9fedf07920cbbea8b40ee4eef4 | refs/heads/master | 2023-08-14T19:24:39.164276 | 2022-11-24T05:18:33 | 2022-11-24T05:18:33 | 80,121,268 | 17 | 15 | null | 2022-09-30T08:04:35 | 2017-01-26T14:25:33 | null | UTF-8 | Java | false | false | 308 | java | package org.gradle.test.performancenull_167;
import static org.junit.Assert.*;
public class Testnull_16648 {
private final Productionnull_16648 production = new Productionnull_16648("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
} | [
"cedric.champeau@gmail.com"
] | cedric.champeau@gmail.com |
297011428ec0c9614eb833c13a6d17e86f8b8b51 | 875d88ee9cf7b40c9712178d1ee48f0080fa0f8a | /geronimo-javamail_1.5_spec/src/main/java/org/apache/geronimo/mail/MailProviderRegistry.java | e6980d5ac34f722b33a94d7a1ae1af00f1d2ad79 | [
"W3C",
"W3C-19980720",
"Apache-2.0"
] | permissive | jgallimore/geronimo-specs | b152164488692a7e824c73a9ba53e6fb72c6a7a3 | 09c09bcfc1050d60dcb4656029e957837f851857 | refs/heads/trunk | 2022-12-15T14:02:09.338370 | 2020-09-14T18:21:46 | 2020-09-14T18:21:46 | 284,994,475 | 0 | 1 | Apache-2.0 | 2020-09-14T18:21:47 | 2020-08-04T13:51:47 | Java | UTF-8 | Java | false | false | 3,409 | java | /**
* 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 org.apache.geronimo.mail;
import java.net.URL;
import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import org.osgi.framework.Bundle;
/**
* The activator that starts and manages the tracking of
* JAF activation command maps
*/
public class MailProviderRegistry {
// a list of all active mail provider config files
static ConcurrentMap<Long, URL> providers = new ConcurrentHashMap<Long, URL>();
// a list of all active default provider config files
static ConcurrentMap<Long, URL> defaultProviders = new ConcurrentHashMap<Long, URL>();
/**
* Perform the check for an existing mailcap file when
* a bundle is registered.
*
* @param bundle The potential provider bundle.
*
* @return A URL object if this bundle contains a mailcap file.
*/
static Object registerBundle(final Bundle bundle) {
// potential tracker return result
Object result = null;
// a given bundle might have a javamail.providers definition and/or a
// default providers definition.
URL url = bundle.getResource("META-INF/javamail.providers");
if (url != null) {
providers.put(bundle.getBundleId(), url);
// this indicates our interest
result = url;
}
url = bundle.getResource("META-INF/javamail.default.providers");
if (url != null) {
defaultProviders.put(bundle.getBundleId(), url);
// this indicates our interest
result = url;
}
// the url marks our interest in additional activity for this
// bundle.
return result;
}
/**
* Remove a bundle from our potential mailcap pool.
*
* @param bundle The potential source bundle.
*/
static void unregisterBundle(final Bundle bundle) {
// remove these items
providers.remove(bundle.getBundleId());
defaultProviders.remove(bundle.getBundleId());
}
/**
* Retrieve any located provider definitions
* from bundles.
*
* @return A collection of the provider definition file
* URLs.
*/
public static Collection<URL> getProviders() {
return providers.values();
}
/**
* Retrieve any located default provider definitions
* from bundles.
*
* @return A collection of the default provider definition file
* URLs.
*/
public static Collection<URL> getDefaultProviders() {
return defaultProviders.values();
}
}
| [
"rmannibucau@apache.org"
] | rmannibucau@apache.org |
de6bff80d32ed34b0ccab0154d57e47450bb8bce | 139960e2d7d55e71c15e6a63acb6609e142a2ace | /mobile_app1/module548/src/main/java/module548packageJava0/Foo13.java | dc289cd6a80ee25f9f4bcf79b5227d9a42fbd983 | [
"Apache-2.0"
] | permissive | uber-common/android-build-eval | 448bfe141b6911ad8a99268378c75217d431766f | 7723bfd0b9b1056892cef1fef02314b435b086f2 | refs/heads/master | 2023-02-18T22:25:15.121902 | 2023-02-06T19:35:34 | 2023-02-06T19:35:34 | 294,831,672 | 83 | 7 | Apache-2.0 | 2021-09-24T08:55:30 | 2020-09-11T23:27:37 | Java | UTF-8 | Java | false | false | 332 | java | package module548packageJava0;
import java.lang.Integer;
public class Foo13 {
Integer int0;
public void foo0() {
new module548packageJava0.Foo12().foo4();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
foo3();
}
}
| [
"oliviern@uber.com"
] | oliviern@uber.com |
270eef821e04fc8f215b47b6857e021e6f2d723f | 479d9471a522e64f9d12eef6dec15558c8ee82cd | /android/helloworld/media/src/main/java/com/example/media/service/CaptureService.java | 08203d4d583c4b62b99baf40740f54cd9668efe1 | [
"MIT"
] | permissive | mario2100/Spring_All | fd76f6b9cca2276d1c308f7d9167930a304dcaf5 | e32a74293926a5110f7329af5d3d2c0e4f7ad2a5 | refs/heads/master | 2023-08-27T17:07:43.238356 | 2021-11-05T06:54:07 | 2021-11-05T06:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,640 | java | package com.example.media.service;
import android.annotation.TargetApi;
import android.app.Service;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.PixelFormat;
import android.hardware.display.DisplayManager;
import android.hardware.display.VirtualDisplay;
import android.media.Image;
import android.media.ImageReader;
import android.media.projection.MediaProjection;
import android.media.projection.MediaProjectionManager;
import android.os.Build;
import android.os.Environment;
import android.os.Handler;
import android.os.IBinder;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.example.media.MainApplication;
import com.example.media.R;
import com.example.media.util.DateUtil;
import com.example.media.util.FileUtil;
import com.example.media.util.Utils;
import com.example.media.widget.FloatWindow;
import com.example.media.widget.FloatWindow.FloatClickListener;
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public class CaptureService extends Service implements FloatClickListener {
private static final String TAG = "CaptureService";
private MediaProjectionManager mMpMgr; // 声明一个媒体投影管理器对象
private MediaProjection mMP; // 声明一个媒体投影对象
private ImageReader mImageReader; // 声明一个图像读取器对象
private String mImagePath, mImageName; // 文件路径,文件名
private int mScreenWidth, mScreenHeight, mScreenDensity; // 屏幕宽度,屏幕高度,每英寸中的像素数
private VirtualDisplay mVirtualDisplay; // 声明一个虚拟显示层对象
private FloatWindow mFloatWindow; // 声明一个悬浮窗对象
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public void onCreate() {
super.onCreate();
// 生成截图文件的保存路径
mImagePath = Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_DOWNLOADS).getAbsolutePath() + "/ScreenShots/";
// 从全局变量中获取媒体投影管理器
mMpMgr = MainApplication.getInstance().getMpMgr();
// 获得屏幕的宽度
mScreenWidth = Utils.getScreenWidth(this);
// 获得屏幕的高度
mScreenHeight = Utils.getScreenHeight(this);
// 获得屏幕每英寸中的像素数
mScreenDensity = Utils.getScreenDensityDpi(this);
// 根据屏幕宽高创建一个新的图像读取器
mImageReader = ImageReader.newInstance(mScreenWidth, mScreenHeight, PixelFormat.RGBA_8888, 2);
if (mFloatWindow == null) {
// 创建一个新的悬浮窗
mFloatWindow = new FloatWindow(MainApplication.getInstance());
// 设置悬浮窗的布局内容
mFloatWindow.setLayout(R.layout.float_capture);
}
// 设置悬浮窗的点击监听器
mFloatWindow.setOnFloatListener(this);
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if (mFloatWindow != null && !mFloatWindow.isShow()) {
mFloatWindow.show(); // 显示悬浮窗
}
return super.onStartCommand(intent, flags, startId);
}
// 在点击悬浮窗时触发
public void onFloatClick(View v) {
Toast.makeText(this, "准备截图", Toast.LENGTH_SHORT).show();
// 延迟100毫秒后启动屏幕准备任务
mHandler.postDelayed(mStartVirtual, 100); // 准备屏幕
// 延迟500毫秒后启动屏幕截取任务
mHandler.postDelayed(mCapture, 500); // 进行截图
// 延迟1000毫秒后启动屏幕释放任务
mHandler.postDelayed(mStopVirtual, 1000); // 释放屏幕
}
// 创建一个处理器对象
private Handler mHandler = new Handler();
// 定义一个屏幕准备任务
private Runnable mStartVirtual = new Runnable() {
@Override
public void run() {
// 截图过程中先隐藏悬浮窗
mFloatWindow.mContentView.setVisibility(View.INVISIBLE);
if (mMP == null) {
// 根据结果代码和结果意图,从媒体投影管理器中创建一个新的媒体投影
mMP = mMpMgr.getMediaProjection(MainApplication.getInstance().getResultCode(),
MainApplication.getInstance().getResultIntent());
}
// 从媒体投影管理器中创建一个新的虚拟显示层
mVirtualDisplay = mMP.createVirtualDisplay("capture_screen", mScreenWidth, mScreenHeight,
mScreenDensity, DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR,
mImageReader.getSurface(), null, null);
}
};
// 定义一个屏幕截取任务
private Runnable mCapture = new Runnable() {
@Override
public void run() {
// 生成截图的文件名
mImageName = DateUtil.getNowDateTime() + ".png";
Log.d(TAG, "mImageName=" + mImageName);
// 从图像读取器中获取最近的一个Image对象
Image image = mImageReader.acquireLatestImage();
// 把Image对象转换成位图对象
Bitmap bitmap = FileUtil.getBitmap(image);
if (bitmap != null) {
// 创建文件。如果文件所在的目录不存在,就先创建目录
FileUtil.createFile(mImagePath, mImageName);
// 把位图对象保存为图片文件
FileUtil.saveBitmap(mImagePath + mImageName, bitmap, "PNG", 100);
Toast.makeText(CaptureService.this, "截图成功:" + mImagePath + mImageName, Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(CaptureService.this, "截图失败:未截到屏幕图片", Toast.LENGTH_SHORT).show();
}
}
};
// 定义一个屏幕释放任务
private Runnable mStopVirtual = new Runnable() {
@Override
public void run() {
// 完成截图后再恢复悬浮窗
mFloatWindow.mContentView.setVisibility(View.VISIBLE);
if (mVirtualDisplay != null) {
mVirtualDisplay.release(); // 释放虚拟显示层资源
mVirtualDisplay = null;
}
}
};
@Override
public void onDestroy() {
if (mFloatWindow != null && mFloatWindow.isShow()) {
mFloatWindow.close(); // 关闭悬浮窗
}
if (mMP != null) {
mMP.stop(); // 停止媒体投影
}
super.onDestroy();
}
}
| [
"jjh_steed@163.com"
] | jjh_steed@163.com |
993a6189f8105bb51cca4e679dabbe423d1504dc | 55e2a0ab60693b041e1532fdb91f800d8729aea4 | /src/com/zjuee/exceptions/LoggingExceptions.java | 4700b53602a5af26458098202bc3014eb534077e | [] | no_license | lisixun-fighting/TIJ4 | 4901378a893bb5c22049ac24f749f640f0526c74 | 88ae65f6fbfa6f97abde3875f4c495aeb8daa1d1 | refs/heads/main | 2023-05-13T15:57:12.647494 | 2021-05-30T04:45:13 | 2021-05-30T04:45:13 | 361,686,878 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 818 | java | package com.zjuee.exceptions;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.logging.Logger;
class LoggingException extends Exception {
private static Logger logger = Logger.getLogger("LoggingException");
public LoggingException() {
StringWriter trace = new StringWriter();
printStackTrace(new PrintWriter(trace));
logger.severe(trace.toString());
}
}
public class LoggingExceptions {
public static void main(String[] args) {
try {
throw new LoggingException();
} catch (LoggingException e) {
System.err.println("Caught " + e);
}
// try {
// throw new LoggingException();
// } catch (LoggingException e) {
// System.err.println("Caught " + e);
// }
}
}
| [
"lsixun@zju.edu.cn"
] | lsixun@zju.edu.cn |
805c1b32bca4854b77bf6d6b5f851f89f7eb3d3c | 4d41728f620d6be9916b3c8446da9e01da93fa4c | /src/main/java/org/ultramine/mods/bukkit/interfaces/entity/projectile/IMixinEntityFireball.java | 983c3ab4fc9b272b693680a989e5e88d2cbf9c58 | [] | no_license | TechCatOther/um_bukkit | a634f6ccf7142b2103a528bba1c82843c0bc4e44 | 836ed7a890b2cb04cd7847eff2c59d7a2f6d4d7b | refs/heads/master | 2020-03-22T03:13:57.898936 | 2018-07-02T09:20:00 | 2018-07-02T09:20:00 | 139,420,415 | 3 | 2 | null | null | null | null | UTF-8 | Java | false | false | 295 | java | package org.ultramine.mods.bukkit.interfaces.entity.projectile;
public interface IMixinEntityFireball
{
void setDirection(double x, double y, double z);
float getBukkitYield();
void setBukkitYield(float bukkitYield);
boolean isIncendiary();
void setIncendiary(boolean isIncendiary);
}
| [
"alone.inbox@gmail.com"
] | alone.inbox@gmail.com |
a129e092ff951093612e34b65424e466f8ccdd56 | 58a8ed34f613c281a5faaaefe5da1788f5739d17 | /Application_code_source/eMybaby/sources/com/tuya/sdk/home/bean/HomeResponseBean.java | e41534e0e2281ae4e4ad8ae9f4a7a95d88e61046 | [] | no_license | wagnerwave/Dossier_Hacking_de_peluche | 01c78629e52a94ed6a208e11ff7fcd268e10956e | 514f81b1e72d88e2b8835126b2151e368dcad7fb | refs/heads/main | 2023-03-31T13:28:06.247243 | 2021-03-25T23:03:38 | 2021-03-25T23:03:38 | 351,597,654 | 5 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,941 | java | package com.tuya.sdk.home.bean;
import java.util.List;
public class HomeResponseBean {
public boolean admin;
public String background;
public int dealStatus;
public String geoName;
public long gid;
public long id;
public double lat;
public double lon;
public String name;
public String nickName;
public List<RoomResponseBean> rooms;
public String getBackground() {
return this.background;
}
public int getDealStatus() {
return this.dealStatus;
}
public String getGeoName() {
return this.geoName;
}
public long getGid() {
return this.gid;
}
@Deprecated
public long getId() {
return this.id;
}
public double getLat() {
return this.lat;
}
public double getLon() {
return this.lon;
}
public String getName() {
return this.name;
}
public String getNickName() {
return this.nickName;
}
public List<RoomResponseBean> getRooms() {
return this.rooms;
}
public boolean isAdmin() {
return this.admin;
}
public void setAdmin(boolean z) {
this.admin = z;
}
public void setBackground(String str) {
this.background = str;
}
public void setDealStatus(int i) {
this.dealStatus = i;
}
public void setGeoName(String str) {
this.geoName = str;
}
public void setGid(long j) {
this.gid = j;
}
@Deprecated
public void setId(long j) {
this.id = j;
}
public void setLat(double d2) {
this.lat = d2;
}
public void setLon(double d2) {
this.lon = d2;
}
public void setName(String str) {
this.name = str;
}
public void setNickName(String str) {
this.nickName = str;
}
public void setRooms(List<RoomResponseBean> list) {
this.rooms = list;
}
}
| [
"alexandre1.wagner@epitech.eu"
] | alexandre1.wagner@epitech.eu |
53674bbb7911dc6e250f9896d8808e473ca610cf | eb631c27bcb96246e97e61478311ca6b2f28bfe8 | /Programming/Assessed Exercise 1/AE1Reattempt/TransactionLogger.java | e1b8e9a1ad0b78dc3366a6a80dd90ef115121965 | [] | no_license | kevin0110w/Coursework | ec2d36b2b6b7a6959749a831d731cbb0701b1528 | 776dfa1705b918d1cf2130815c4f4074a471a8ea | refs/heads/master | 2020-03-29T00:01:20.099605 | 2019-05-24T16:23:11 | 2019-05-24T16:23:11 | 149,320,620 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,669 | java | import java.util.Scanner;
import java.util.ArrayList;
public class TransactionLogger {
private Log log;
private boolean isValid;
private Customer customer;
private double balance;
private ArrayList<Transaction> transactions;
public TransactionLogger() {
this.isValid = true;
this.transactions = new ArrayList<Transaction>();
}
public void start() {
Scanner reader = new Scanner(System.in);
getCustomerDetails(reader);
while (isValid) {
getWineOrder(reader);
}
this.log.write();
}
public void getCustomerDetails(Scanner reader) {
System.out.println("Welcome to Lilybank Wine Merchants.");
System.out.print("Please enter your name: ");
String name = reader.nextLine();
System.out.print("Please enter your starting balance: ");
double balance = Double.parseDouble(reader.nextLine());
this.customer = new Customer(name, balance);
this.log = new Log(customer.toString() + "\n");
}
public void getWineOrder(Scanner reader) {
System.out.print("Please enter a wine name: ");
String wineName = reader.nextLine();
if (wineName.equals(" ")) {
this.isValid = false;
return;
}
int wineQuantity = getWineQuantity(reader);
double wineCost = getWineCost(reader);
Wine newWine = new Wine(wineName, wineQuantity, wineCost);
Transaction transaction = new Transaction(newWine, this.customer);
double transactionCost = getCost(wineQuantity, wineCost);
this.log.addLine(transaction.toString());
}
public int getWineQuantity(Scanner reader) {
int wineQuantity = 0;
System.out.print("Please enter quantity (Integer): ");
while (true) {
try {
wineQuantity = Integer.parseInt(reader.nextLine());
} catch (Exception e) {
System.out.println("Please try again! ");
}
break;
}
return wineQuantity;
}
public double getWineCost(Scanner reader) {
double winePrice = 0.0;
System.out.print("Please enter the price of the wine: ");
while (true) {
try {
winePrice = Double.parseDouble(reader.nextLine());
} catch (Exception e) {
System.out.println("Please try again! ");
}
break;
}
return winePrice;
}
public double getCost(int quantity, double price) {
double transaction = quantity * price;
return transaction;
}
public void setStartingBalance() {
this.balance = customer.getCustomerBalance();
}
public void setCustomerBalanceAfterPurchase(double wineTransaction) {
this.balance += wineTransaction;
}
public void setCustomerBalanceAfterRefund(double wineTransaction) {
this.balance -= wineTransaction;
}
}
| [
"kevin0110w@gmail.com"
] | kevin0110w@gmail.com |
8c90f8e9706102867434104f1e657142ddf543ea | d1dea6217a38ff6f92bc955504a82d8da62d49c2 | /PepCodingInterviewBatch/src/String/Q080_SmallestWindowContainsAllUniqueCharacter.java | 0a998b4bbe53a6306e83155689bf6cd32e144733 | [] | no_license | rajneeshkumar146/java_workspace | fbdf12d0a8f8a99f6a800d3a9fa37dac9ec81ac5 | f77fbbb82dccbb3762fd27618dd366388724cf9b | refs/heads/master | 2020-03-31T04:51:22.151046 | 2018-10-27T11:54:20 | 2018-10-27T11:54:20 | 151,922,604 | 5 | 1 | null | null | null | null | UTF-8 | Java | false | false | 6,333 | java |
package String;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.util.HashMap;
import java.util.InputMismatchException;
public class Q080_SmallestWindowContainsAllUniqueCharacter {
// public static Scanner scn = new Scanner(System.in);
private static Scan scn = new Scan(System.in);
private static Print pnter = new Print();
public static void main(String[] args) throws Exception {
solve();
pnter.close();
}
public static void solve() throws Exception {
String str = scn.scanString();
}
private static void SmallestWindowForUniqueCharacter(String str) {
HashMap<Character, Integer> map = new HashMap<>();
boolean[] arr = new boolean[26];
for (int i = 0; i < 26; i++) {
int index = str.charAt(i) - 'a';
arr[index] = true;
}
int count = 0;
for (int i = 0; i < arr.length; i++) {
if (arr[i] == true) {
count++;
}
}
int i = 0;
for (; i < str.length() && map.size() != count; i++) {
if (!map.containsKey(str.charAt(i))) {
map.put(str.charAt(i), 1);
} else {
int val = map.get(str.charAt(i));
map.put(str.charAt(i), val + 1);
}
}
int st = 0;
int en = i;
int max = en - st;
while (st < en) {
if (map.containsKey(str.charAt(st))) { // Remove_or_Frequency_Decrease.
int val = map.get(str.charAt(st));
if (val > 1) {
map.put(str.charAt(i), val - 1);
} else {
map.remove(str.charAt(st));
}
}
if (map.size() < count) {
while (en < str.length() && str.charAt(en)) {
}
}
st++;
}
}
// -------------------------------------------------------------------------------------------------------------
private static int NumberLength(int n) {
int length = 0;
while (n != 0) {
length++;
n = n / 10;
}
return length;
}
private static void ReverseArray(int[] arr, int st, int en) {
for (int i = st; st <= en; st++, en--) {
swap(arr, st, en);
}
}
private static int[] PrifixSumArray(int[] arr) {
for (int i = 1; i < arr.length; i++) {
arr[i] += arr[i - 1];
}
return arr;
}
private static void swap(int[] arr, int i, int j) {
int temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
private static void Swap2DEle(int[][] arr, int i1, int j1, int i2, int j2) {
int temp = arr[i1][j1];
arr[i1][j1] = arr[i2][j2];
arr[i2][j2] = temp;
}
private static int maxInArray(int[] arr) {
int max = arr[0];
for (int i : arr) {
if (i > max) {
max = i;
}
}
return max;
}
private static int[] takeArrayInput(int n) throws IOException {
int[] arr = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = scn.scanInt();
// arr[i] = scn.nextInt();
}
return arr;
}
private static int[][] takeMatrixInput(int n, int m) throws IOException {
int[][] arr = new int[n][m];
for (int row = 0; row < n; row++) {
for (int col = 0; col < m; col++) {
arr[row][col] = scn.scanInt();
// arr[row][col] = scn.nextInt();
}
}
return arr;
}
private static void displayArray(int[] arr) throws IOException {
for (int i = 0; i < arr.length; i++) {
pnter.print(arr[i] + " ");
// System.out.print(arr[i]+" ");
}
pnter.printLine("");
// System.out.println();
}
private static void displayMatrix(int[][] arr) throws IOException {
for (int[] i : arr) {
for (int el : i) {
pnter.print(el + " ");
// System.out.print(el+" ");
}
pnter.printLine("");
// System.out.println();
}
}
private static void cloneArray(int[] arr, int[] Oarr, int n) {
for (int i = 0; i < n; i++) {
arr[i] = Oarr[i];
}
}
static class Scan {
private InputStream in;
private byte[] buf = new byte[1024 * 1024];
private int index;
private int total;
public Scan(InputStream in) {
this.in = in;
}
public int scan() throws IOException {
if (total < 0)
throw new InputMismatchException();
if (index >= total) {
index = 0;
total = in.read(buf);
if (total <= 0)
return -1;
}
return buf[index++];
}
public int scanInt() throws IOException {
int integer = 0;
int n = scan();
while (isWhiteSpace(n))
n = scan();
int neg = 1;
if (n == '-') {
neg = -1;
n = scan();
}
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
integer *= 10;
integer += n - '0';
n = scan();
} else
throw new InputMismatchException();
}
return neg * integer;
}
public long scanLong() throws IOException {
long integer = 0;
int n = scan();
while (isWhiteSpace(n))
n = scan();
int neg = 1;
if (n == '-') {
neg = -1;
n = scan();
}
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
integer *= 10;
integer += n - '0';
n = scan();
} else
throw new InputMismatchException();
}
return neg * integer;
}
public double scanDouble() throws IOException {
double doub = 0;
int n = scan();
while (isWhiteSpace(n))
n = scan();
int neg = 1;
if (n == '-') {
neg = -1;
n = scan();
}
while (!isWhiteSpace(n) && n != '.') {
if (n >= '0' && n <= '9') {
doub *= 10;
doub += n - '0';
n = scan();
} else
throw new InputMismatchException();
}
if (n == '.') {
n = scan();
double temp = 1;
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
temp /= 10;
doub += (n - '0') * temp;
n = scan();
} else
throw new InputMismatchException();
}
}
return doub * neg;
}
public String scanString() throws IOException {
StringBuilder sb = new StringBuilder();
int n = scan();
while (isWhiteSpace(n))
n = scan();
while (!isWhiteSpace(n)) {
sb.append((char) n);
n = scan();
}
return sb.toString();
}
private boolean isWhiteSpace(int n) {
if (n == ' ' || n == '\n' || n == '\r' || n == '\t' || n == -1)
return true;
return false;
}
}
static class Print {
private final BufferedWriter bw;
public Print() {
bw = new BufferedWriter(new OutputStreamWriter(System.out));
}
public void print(String str) throws IOException {
bw.append(str);
}
public void printLine(String str) throws IOException {
print(str);
bw.append("\n");
}
public void close() throws IOException {
bw.close();
}
}
}
| [
"rajneeshkumar146@gmail.com"
] | rajneeshkumar146@gmail.com |
de29d021913e04fbe94796f5b6fec066f79baeef | ee7e3a88c571e6a59d500035a357645c5ce69593 | /PacManLike/src/org/cyrano/pacman/pathfinder/PathCalculator.java | e2b39ed00fae97079e47c405a426af9808a5a9da | [] | no_license | DiegOliveros/foo-org-ve | 6c91638d31570971f543968ccfbe92bc7cdef707 | fef2c796d8c22cbf236500f94055c4006a61ddd2 | refs/heads/master | 2021-01-10T18:00:54.701851 | 2013-11-06T21:06:54 | 2013-11-06T21:06:54 | 55,300,195 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,056 | java | package org.cyrano.pacman.pathfinder;
import java.io.PrintStream;
import java.text.NumberFormat;
import java.util.LinkedList;
import java.util.List;
import org.cyrano.pacman.map.CharMap;
import org.cyrano.util.misc.PointInt;
public class PathCalculator {
private EmptySpaceStrategy ess;
private double/**/[][] dist;
private boolean diagonals;
private int w;
private int h;
// --------------------------------------------------------------------------------
public PathCalculator(EmptySpaceStrategy ess, //
int w, int h, boolean diagonals) {
this.ess = ess;
this.w = w;
this.h = h;
this.diagonals = diagonals;
}
// --------------------------------------------------------------------------------
public List<PointInt> calculate(PointInt src, PointInt tgt) {
dist = new double[w][h];
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {
dist[x][y] = Double.MAX_VALUE;
}
}
dist[src.x][src.y] = 0;
List<PointInt> nextPoints = new LinkedList<PointInt>();
nextPoints.add(src);
while (!nextPoints.isEmpty()) {
PointInt cp = nextPoints.remove(0);
for (int dy = -1; dy <= 1; dy++) {
for (int dx = -1; dx <= 1; dx++) {
if (!diagonals && dx != 0 && dy != 0) {
continue;
}
if (dx == 0 && dy == 0) {
continue;
}
if (cp.x + dx < 0 || cp.x + dx >= w || //
cp.y + dy < 0 || cp.y + dy >= h) {
continue;
}
if (!ess.isEmptySpace(cp.x + dx, cp.y + dy)) {
continue;
}
double dst = //
dist[cp.x][cp.y] + Math.sqrt(dx * dx + dy * dy);
if (dst < dist[cp.x + dx][cp.y + dy]) {
dist[cp.x + dx][cp.y + dy] = dst;
PointInt np = new PointInt();
np.x = cp.x + dx;
np.y = cp.y + dy;
nextPoints.add(np);
}
}
}
}
PointInt cp = tgt;
List<PointInt> ret = new LinkedList<PointInt>();
while (cp.x != src.x || cp.y != src.y) {
ret.add(0, cp);
PointInt mp = null;
for (int dy = -1; dy <= 1; dy++) {
for (int dx = -1; dx <= 1; dx++) {
if (!diagonals && dx != 0 && dy != 0) {
continue;
}
if (dx == 0 && dy == 0) {
continue;
}
if (cp.x + dx < 0 || cp.x + dx >= w || //
cp.y + dy < 0 || cp.y + dy >= h) {
continue;
}
if (!ess.isEmptySpace(cp.x + dx, cp.y + dy)) {
continue;
}
if (mp == null) {
mp = new PointInt();
mp.x = cp.x + dx;
mp.y = cp.y + dy;
} else {
if (dist[cp.x + dx][cp.y + dy] < dist[mp.x][mp.y]) {
mp.x = cp.x + dx;
mp.y = cp.y + dy;
}
}
}
}
cp = mp;
}
return ret;
}
// --------------------------------------------------------------------------------
public void dump(PrintStream ps) {
NumberFormat nf = NumberFormat.getInstance();
nf.setMaximumFractionDigits(2);
nf.setMinimumFractionDigits(2);
nf.setMaximumIntegerDigits(4);
nf.setMinimumIntegerDigits(4);
nf.setGroupingUsed(false);
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {
if (dist[x][y] != Double.MAX_VALUE) {
ps.print(nf.format(dist[x][y]));
} else {
ps.print("XXXX.XX");
}
ps.print(" | ");
}
ps.println();
}
}
// --------------------------------------------------------------------------------
public static void main(String[] args) throws Exception {
CharMap charMap = new CharMap();
charMap.load(PathCalculator.class.getResource("map.txt").getPath());
//textMap.dump(System.err);
char[][] data = charMap.getData();
PathCalculator pathCalculator = new PathCalculator( //
new TestESS(data), charMap.getW(), charMap.getH(), false);
PointInt src = new PointInt();
src.x = 1;
src.y = 1;
PointInt tgt = new PointInt();
tgt.x = 9;
tgt.y = 11;
List<PointInt> path = pathCalculator.calculate(src, tgt);
pathCalculator.dump(System.err);
System.err.println("--------------------------------------------------------------------------------");
for (PointInt intPoint : path) {
System.err.println(intPoint.x + ";" + intPoint.y);
data[intPoint.x][intPoint.y] = '#';
}
System.err.println("--------------------------------------------------------------------------------");
//textMap.dump(System.err);
}
// --------------------------------------------------------------------------------
private static class TestESS implements EmptySpaceStrategy {
private char[][] data;
public TestESS(char[][] data) {
this.data = data;
}
@Override
public boolean isEmptySpace(int x, int y) {
return data[x][y] != 'X';
}
}
}
| [
"piojosnos@gmail.com"
] | piojosnos@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.